@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8

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 (185) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +3 -3
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a144_0x182a22=a144_0x5e9d;(function(_0x1729d2,_0x182c1e){const _0x1a4e80=a144_0x5e9d,_0x50bdc8=_0x1729d2();while(!![]){try{const _0xfd3ebb=-parseInt(_0x1a4e80(0xc6))/0x1+-parseInt(_0x1a4e80(0x14a))/0x2+parseInt(_0x1a4e80(0x10a))/0x3*(-parseInt(_0x1a4e80(0x1a6))/0x4)+parseInt(_0x1a4e80(0xcb))/0x5*(parseInt(_0x1a4e80(0x126))/0x6)+-parseInt(_0x1a4e80(0xc1))/0x7*(parseInt(_0x1a4e80(0x1b2))/0x8)+-parseInt(_0x1a4e80(0x14d))/0x9*(parseInt(_0x1a4e80(0xec))/0xa)+parseInt(_0x1a4e80(0x189))/0xb;if(_0xfd3ebb===_0x182c1e)break;else _0x50bdc8['push'](_0x50bdc8['shift']());}catch(_0x185f6){_0x50bdc8['push'](_0x50bdc8['shift']());}}}(a144_0x8f2d,0x23c30));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x3425f4 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x579a8e from'exceljs';import a144_0x207229 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a144_0x5e9d(_0x1c9cbd,_0xf6afc1){_0x1c9cbd=_0x1c9cbd-0xc0;const _0x8f2d60=a144_0x8f2d();let _0x5e9df3=_0x8f2d60[_0x1c9cbd];return _0x5e9df3;}import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x182a22(0x19e),a144_0x182a22(0x15e),a144_0x182a22(0x188),a144_0x182a22(0x17b),'creatorName',a144_0x182a22(0x1ac),a144_0x182a22(0x157),'createTime','updateTime',a144_0x182a22(0x171)]),TYPES=new Set(['string','text',a144_0x182a22(0xf2),'number',a144_0x182a22(0x13b),a144_0x182a22(0xc0),'boolean',a144_0x182a22(0x1a5),a144_0x182a22(0x141),'image',a144_0x182a22(0x185)]),isImageContainer=_0x46523b=>[a144_0x182a22(0xe4),a144_0x182a22(0x185)][a144_0x182a22(0xe5)](_0x46523b[a144_0x182a22(0x10c)]()),hash=_0x101952=>createHash('sha256')[a144_0x182a22(0x167)](_0x101952)[a144_0x182a22(0xdf)](a144_0x182a22(0x198)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x182a22(0xf6)),nameCoordinates=require(a144_0x182a22(0x15c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x182a22(0x158)](a144_0x182a22(0x1a4))),zipRequire=createRequire(excelRequire['resolve'](a144_0x182a22(0x11b))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x182a22(0x13a)),zipUtf8=zipRequire(a144_0x182a22(0x135)),zipPaths=zipRequire(a144_0x182a22(0x130));function centralDirectoryEnd(_0x48ade1,_0x28e7fb){const _0xe34a02=a144_0x182a22,_0x5ae612=()=>new Error(_0xe34a02(0x12a)),_0x486d37=_0x48ade1['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x486d37<0x0||_0x486d37+0x16>_0x48ade1[_0xe34a02(0xd7)]||_0x486d37+0x16+_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x14)!==_0x48ade1['length'])throw _0x5ae612();let _0x936d95=_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0xa),_0x2fcaf6=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0xc),_0x5dfbfb=_0x48ade1[_0xe34a02(0x111)](_0x486d37+0x10),_0x57453d=_0x486d37;const _0x2f8cac=_0x486d37-0x14,_0x205d72=_0x2f8cac>=0x0&&_0x48ade1['readUInt32LE'](_0x2f8cac)===0x7064b50,_0x16b3f5=[0x4,0x6,0x8,0xa][_0xe34a02(0x108)](_0x4ec568=>_0x48ade1['readUInt16LE'](_0x486d37+_0x4ec568)===0xffff)||_0x2fcaf6===0xffffffff||_0x5dfbfb===0xffffffff;if(_0x205d72!==_0x16b3f5)throw _0x5ae612();if(_0x205d72){if(_0x48ade1[_0xe34a02(0x105)](Buffer[_0xe34a02(0xfe)]([0x50,0x4b,0x6,0x7]))!==_0x2f8cac)throw _0x5ae612();const _0x16fb92=_0x17eb0e=>{const _0x3f1b1b=_0xe34a02,_0x4a98ba=Number(_0x48ade1[_0x3f1b1b(0xde)](_0x17eb0e));if(!Number['isSafeInteger'](_0x4a98ba))throw _0x5ae612();return _0x4a98ba;};_0x57453d=_0x16fb92(_0x2f8cac+0x8);if(_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x4)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x2f8cac+0x10)!==0x1||_0x57453d>_0x2f8cac-0x38||_0x48ade1['readUInt32LE'](_0x57453d)!==0x6064b50||_0x16fb92(_0x57453d+0x4)!==0x2c||_0x57453d+0x38!==_0x2f8cac||_0x48ade1['readUInt32LE'](_0x57453d+0x10)!==0x0||_0x48ade1[_0xe34a02(0x111)](_0x57453d+0x14)!==0x0)throw _0x5ae612();_0x936d95=_0x16fb92(_0x57453d+0x20),_0x2fcaf6=_0x16fb92(_0x57453d+0x28),_0x5dfbfb=_0x16fb92(_0x57453d+0x30);if(_0x16fb92(_0x57453d+0x18)!==_0x936d95)throw _0x5ae612();}else{if(_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x4)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x6)!==0x0||_0x48ade1[_0xe34a02(0x17a)](_0x486d37+0x8)!==_0x936d95)throw _0x5ae612();}const _0x42e5c0=_0x28e7fb[_0xe34a02(0x137)];if(_0x5dfbfb!==_0x42e5c0||_0x936d95!==_0x28e7fb[_0xe34a02(0x15b)]||_0x5dfbfb+_0x2fcaf6!==_0x57453d)throw _0x5ae612();return _0x57453d;}function consumerEntryName(_0x40b638,_0xc7b849){const _0x48e48f=a144_0x182a22;if(_0xc7b849['extraFields'][_0x48e48f(0x1aa)](_0x3dcabb=>_0x3dcabb['id']===0x1)[_0x48e48f(0xd7)]>0x1)throw new Error(_0x48e48f(0x168));const _0x54c748=_0xc7b849,_0x29bb22=_0xc7b849[_0x48e48f(0x143)];if(!Buffer['isBuffer'](_0x54c748[_0x48e48f(0x18c)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x184)])||!Buffer[_0x48e48f(0x1af)](_0x54c748[_0x48e48f(0x181)])||!Number[_0x48e48f(0x153)](_0x29bb22)||_0x29bb22<0x0||_0x29bb22>_0x40b638[_0x48e48f(0xd7)]-0x1e||_0x40b638[_0x48e48f(0x111)](_0x29bb22)!==0x4034b50)throw new Error(_0x48e48f(0x146));const _0x5d0c6d=_0x29bb22+0x1e+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1a),_0x416536=_0x5d0c6d+_0x40b638[_0x48e48f(0x17a)](_0x29bb22+0x1c)+_0xc7b849['compressedSize'];if(!Number[_0x48e48f(0x153)](_0x416536)||_0x416536>_0x40b638[_0x48e48f(0xd7)])throw new Error(_0x48e48f(0x146));if(_0x5d0c6d>_0x40b638[_0x48e48f(0xd7)]||!_0x40b638[_0x48e48f(0xe7)](_0x29bb22+0x1e,_0x5d0c6d)['equals'](_0x54c748[_0x48e48f(0x18c)]))throw new Error(_0x48e48f(0xc4));const _0x47dc24=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x47dc24[_0x48e48f(0xfb)]=_0xc7b849[_0x48e48f(0x178)],_0x47dc24[_0x48e48f(0x1b0)]=_0x54c748[_0x48e48f(0x18c)],_0x47dc24[_0x48e48f(0x1ae)]=_0x54c748[_0x48e48f(0x181)],_0x47dc24[_0x48e48f(0x11f)]=_0x54c748['extraFieldRaw'][_0x48e48f(0xd7)],_0x47dc24['readExtraFields'](zipReader(_0x54c748['extraFieldRaw'])),_0x47dc24[_0x48e48f(0x16b)](),_0x47dc24[_0x48e48f(0x190)]=_0xc7b849[_0x48e48f(0x190)],_0x47dc24[_0x48e48f(0x14e)]=_0xc7b849['externalFileAttributes'],_0x47dc24[_0x48e48f(0x103)]();const _0x50401c=_0x47dc24[_0x48e48f(0x138)]||Boolean((_0x47dc24[_0x48e48f(0x1a9)]??0x0)&0x4000),_0x3b657b=zipPaths[_0x48e48f(0x158)](_0x47dc24[_0x48e48f(0x195)]),_0x12dbf1=_0x3b657b['startsWith']('/')?_0x3b657b[_0x48e48f(0x19f)](0x1):_0x3b657b;return{'name':_0x12dbf1,'original':_0x47dc24[_0x48e48f(0x195)],'directory':_0x50401c};}export function normalizeImportFields(_0x5519ec){const _0x1286e2=a144_0x182a22;if(!_0x5519ec||(_0x5519ec['source']??_0x5519ec[_0x1286e2(0xfd)]?.['sourceType'])!==_0x1286e2(0x18f))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x1e57d2=Array[_0x1286e2(0xcc)](_0x5519ec[_0x1286e2(0x1a8)]),_0x5800d8=_0x1e57d2?_0x5519ec[_0x1286e2(0x1a8)]:_0x5519ec['properties'];if(!Array[_0x1286e2(0xcc)](_0x5800d8)||_0x5800d8['length']===0x0)throw new Error(_0x1286e2(0x100));const _0x3e1474=[],_0x3b9efc=new Set();for(const _0x15bd85 of _0x5800d8){if(_0x15bd85[_0x1286e2(0x171)]===!![])continue;let _0x197600=_0x15bd85[_0x1286e2(0x175)]??{};if(!_0x1e57d2&&typeof _0x197600===_0x1286e2(0xeb)){try{_0x197600=JSON['parse'](_0x197600);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x197600||typeof _0x197600!==_0x1286e2(0x11e)||Array[_0x1286e2(0xcc)](_0x197600))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x17d88c=_0x1e57d2?_0x15bd85['name']:_0x15bd85[_0x1286e2(0x162)],_0x454abf=_0x1e57d2?_0x15bd85['doType']:_0x15bd85[_0x1286e2(0x173)]??_0x15bd85['dataType'];if(typeof _0x17d88c!==_0x1286e2(0xeb)||!_0x17d88c||typeof _0x454abf!==_0x1286e2(0xeb)||_0x3b9efc['has'](_0x17d88c))throw new Error(_0x1286e2(0xe1));if(_0x454abf[_0x1286e2(0x10c)]()==='serial_number')throw new Error(_0x1286e2(0xc5));_0x3b9efc[_0x1286e2(0xc2)](_0x17d88c);const _0x2a9f1c=_0x1e57d2?_0x15bd85:_0x197600,_0x375e05={'code':_0x17d88c,'type':_0x454abf,'required':_0x2a9f1c[_0x1286e2(0x13f)]===!![]};if(RESERVED[_0x1286e2(0x148)](_0x17d88c)||_0x2a9f1c[_0x1286e2(0xe3)]===!![]||_0x2a9f1c['autoIncrement']===!![])_0x375e05[_0x1286e2(0xe3)]=!![];_0x3e1474['push'](_0x375e05);}return _0x3e1474;}async function checkArchive(_0x42634c,_0x4b736f){await new Promise((_0x37798e,_0x4c37f4)=>{a144_0x207229['fromBuffer'](_0x42634c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x71f443,_0x2feecd)=>{const _0x344b0e=a144_0x5e9d;if(_0x71f443||!_0x2feecd){_0x4c37f4(_0x71f443??new Error(_0x344b0e(0x101)));return;}let _0x49793c;try{_0x49793c=centralDirectoryEnd(_0x42634c,_0x2feecd);}catch(_0xdaf800){_0x2feecd[_0x344b0e(0x13c)](),_0x4c37f4(_0xdaf800);return;}let _0x3d1a98=0x0,_0x4ce930=0x0,_0x3a957c=0x0,_0x1f34e1=0x0,_0x207c5b=0x0,_0x33abb1=0x0,_0x392309=0x0,_0x58d65d=0x0,_0x542756=0x0,_0x3ae962=![],_0x34f66d;const _0x174b57=new Set(),_0x20fce0=_0x13ceb7=>{const _0x12d70c=_0x344b0e;if(_0x3ae962)return;_0x3ae962=!![],_0x34f66d?.['destroy'](),_0x2feecd[_0x12d70c(0x13c)](),_0x4c37f4(_0x13ceb7);},_0x425f34=(_0x440a54,_0x51c2ab)=>{const _0x1ac0a4=_0x344b0e;if(!_0x440a54||!/^\d+$/[_0x1ac0a4(0x107)](_0x440a54))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x5eef23=Number(_0x440a54);if(!Number[_0x1ac0a4(0x153)](_0x5eef23)||_0x5eef23<0x1||_0x5eef23>_0x51c2ab)throw new Error(_0x1ac0a4(0x120)+_0x51c2ab+'.');return _0x5eef23;},_0x3ce588=(_0x2acc2d,_0x3a0317=MAX_XML_COLUMNS)=>{const _0x4e9410=_0x344b0e,_0x43cae9=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x4e9410(0x196)](_0x2acc2d);if(!_0x43cae9)throw new Error(_0x4e9410(0x176));let _0x20bda4=0x0;for(const _0x532e7f of _0x43cae9[0x1])_0x20bda4=_0x20bda4*0x1a+_0x532e7f[_0x4e9410(0xff)](0x0)-0x40;if(_0x20bda4>_0x3a0317)throw new Error('Worksheet\x20exceeds\x20'+_0x3a0317+_0x4e9410(0x170));return{'row':_0x425f34(_0x43cae9[0x2],MAX_XML_ROWS),'col':_0x20bda4};},_0x33641f=_0x17b2b3=>{const _0x3bd266=_0x344b0e;if(_0x17b2b3['name']===_0x3bd266(0x15a)||_0x17b2b3[_0x3bd266(0x192)]===_0x3bd266(0x129))return;for(const _0x35fe0a of _0x17b2b3[_0x3bd266(0xef)]){if(!ABSOLUTE_NAME_RANGE[_0x3bd266(0x107)](_0x35fe0a[_0x3bd266(0x144)]('!')[_0x3bd266(0xd0)]()||''))continue;const _0x3e2add=nameCoordinates[_0x3bd266(0xfc)](_0x35fe0a),_0x2d81fa=_0x3bd266(0xd3)in _0x3e2add,_0x369422=_0x2d81fa?[_0x3e2add[_0x3bd266(0xd3)],_0x3e2add[_0x3bd266(0x102)]]:[_0x3e2add[_0x3bd266(0x193)]],_0x3b97ba=_0x2d81fa?[_0x3e2add[_0x3bd266(0x11d)],_0x3e2add[_0x3bd266(0x19b)]]:[_0x3e2add[_0x3bd266(0x163)]],_0x59b957=(_0x1e721c,_0x6d0375)=>Number[_0x3bd266(0x153)](_0x1e721c)&&_0x1e721c>=0x1&&_0x1e721c<=_0x6d0375;if(!_0x369422[_0x3bd266(0x116)](_0x39dc8b=>_0x59b957(_0x39dc8b,MAX_XML_ROWS))||!_0x3b97ba[_0x3bd266(0x116)](_0x5c6cb0=>_0x59b957(_0x5c6cb0,MAX_XML_COLUMNS)))throw new Error(_0x3bd266(0x12c));_0x392309+=_0x2d81fa?(_0x3e2add[_0x3bd266(0x102)]-_0x3e2add[_0x3bd266(0xd3)]+0x1)*(_0x3e2add[_0x3bd266(0x19b)]-_0x3e2add[_0x3bd266(0x11d)]+0x1):0x1;if(_0x392309>MAX_ROWS)throw new Error(_0x3bd266(0x13e));}};_0x2feecd['on']('error',_0x20fce0),_0x2feecd['on'](_0x344b0e(0xf8),_0x1e24c2=>{const _0x118def=_0x344b0e;if(_0x3ae962)return;if(++_0x3a957c>0x2710||(_0x3d1a98+=_0x1e24c2[_0x118def(0xe0)])>MAX_EXPANDED){_0x20fce0(new Error(_0x118def(0x124)));return;}let _0x353c4e;try{_0x353c4e=consumerEntryName(_0x42634c,_0x1e24c2);}catch(_0x77ee42){_0x20fce0(_0x77ee42);return;}if(_0x353c4e[_0x118def(0x1a1)]){_0x2feecd[_0x118def(0x125)]();return;}const _0x1f7ae1=_0x353c4e[_0x118def(0x192)];if(_0x4b736f&&(_0x1f7ae1!==_0x353c4e[_0x118def(0x17e)]||_0x174b57[_0x118def(0x148)](_0x1f7ae1)||_0x1f7ae1[_0x118def(0x11c)]('/')||_0x1f7ae1[_0x118def(0xe5)]('\x5c'))){_0x20fce0(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x1f7ae1!==_0x353c4e['original']&&(_0x1f7ae1==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/['test'](_0x1f7ae1))){_0x20fce0(new Error(_0x118def(0x117)));return;}const _0x561c3d=_0x1f7ae1===_0x118def(0x194);if(_0x561c3d&&_0x174b57[_0x118def(0x148)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x12f)));return;}_0x174b57[_0x118def(0xc2)](_0x1f7ae1);const _0x1794c3=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x118def(0x107)](_0x1f7ae1);if(_0x1794c3&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x118def(0x107)](_0x1f7ae1)){_0x20fce0(new Error(_0x118def(0x110)));return;}_0x2feecd[_0x118def(0x179)](_0x1e24c2,(_0x4ff45e,_0x36aa5f)=>{const _0x2643f5=_0x118def;if(_0x3ae962){_0x36aa5f?.[_0x2643f5(0x152)]();return;}if(_0x4ff45e||!_0x36aa5f){_0x20fce0(_0x4ff45e??new Error(_0x2643f5(0x199)));return;}_0x34f66d=_0x36aa5f;const _0x443ed1=_0x4b736f?[]:undefined,_0x154ced=_0x4b736f&&/[.](xml|rels)$/['test'](_0x1f7ae1)?new StringDecoder(_0x2643f5(0x150)):undefined,_0x1a451e=_0x154ced?new SaxesParser({'xmlns':![]}):undefined,_0x56518a=()=>{const _0x496413=_0x2643f5;if(++_0x542756>0x1e8480)throw Error(_0x496413(0xe8));};_0x1a451e?.['on'](_0x2643f5(0x16f),()=>{const _0x4339d0=_0x2643f5;throw Error(_0x4339d0(0xe9));}),_0x1a451e?.['on']('opentag',()=>{const _0x5e28a5=_0x2643f5;_0x56518a();if(++_0x58d65d>0x7a120)throw Error(_0x5e28a5(0xe2));}),_0x1a451e?.['on'](_0x2643f5(0x115),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd2),_0x56518a),_0x1a451e?.['on'](_0x2643f5(0xd5),_0x3ff7fc=>{throw _0x3ff7fc;});const _0x4419a8=_0x1794c3||_0x561c3d?new StringDecoder(_0x2643f5(0x150)):undefined,_0x2528c6=_0x1794c3||_0x561c3d?new SaxesParser({'xmlns':![]}):undefined;let _0x443ecc,_0x1e67e2=0x0,_0x440105=0x0,_0x387400,_0x3d2bcb,_0x57ee3c=![],_0x463f40=![],_0x49619f,_0x46f60c,_0x7fce0c,_0x49f8d4=![];const _0x34a8b5=[],_0x394e8b=new Set();let _0x257ef4;const _0x2284f9=(_0x3c93b3,_0x487c45=0x0)=>{const _0x5afe40=_0x2643f5;_0x207c5b+=_0x487c45+Math[_0x5afe40(0x12b)](0x0,_0x3c93b3-_0x440105),_0x440105=Math['max'](_0x440105,_0x3c93b3);if(_0x207c5b>MAX_ROWS)throw new Error(_0x5afe40(0x114));};_0x2528c6?.['on'](_0x2643f5(0x104),_0x1ed781=>{const _0x29f63e=_0x2643f5;if(_0x561c3d){if(!_0x443ecc&&_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x113))_0x443ecc=new DefinedNameXform();_0x443ecc?.['parseOpen'](_0x1ed781);return;}if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0x193)){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x425f34(_0x1ed781[_0x29f63e(0x180)]['r'],MAX_XML_ROWS),_0x387400=undefined,_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x1ed781['name']==='c'){if(_0x463f40)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x463f40=!![],_0x57ee3c=Boolean(Number[_0x29f63e(0x174)](_0x1ed781['attributes']['s']??'',0xa)),_0x257ef4=undefined,_0x49619f=_0x1ed781[_0x29f63e(0x180)]['r']||undefined,_0x46f60c=_0x49619f?_0x3ce588(_0x49619f):undefined;if(_0x46f60c)_0x3d2bcb=_0x46f60c;else _0x3d2bcb=_0x387400?{'row':_0x387400[_0x29f63e(0x193)],'col':_0x387400[_0x29f63e(0x163)]+0x1}:undefined;}else{if(_0x463f40&&['f','v','t']['includes'](_0x1ed781['name'])){_0x257ef4=_0x1ed781[_0x29f63e(0x192)];if(_0x1ed781['name']==='f'&&_0x1ed781[_0x29f63e(0x180)]['t'])_0x57ee3c=!![];}else{if(_0x463f40&&_0x1ed781['name']==='r')_0x57ee3c=!![];else{if(_0x1ed781['name']===_0x29f63e(0xf4)){const _0x16d5df=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x16d5df)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x41e3db=_0x16d5df[_0x29f63e(0x144)](':');if(_0x41e3db[_0x29f63e(0xd7)]>0x2)throw new Error(_0x29f63e(0x18e));const _0x34d19e=_0x3ce588(_0x41e3db[0x0]),_0x1ee9c4=_0x3ce588(_0x41e3db[0x1]??_0x41e3db[0x0]);_0x394e8b[_0x29f63e(0xc2)](_0x16d5df),_0x2284f9(Math[_0x29f63e(0x12b)](_0x34d19e['col'],_0x1ee9c4['col']),0x1);}else{if(_0x1ed781['name']===_0x29f63e(0x163)){const _0xfce66c=_0x425f34(_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0xee)],0x4000),_0x174d04=_0x425f34(_0x1ed781['attributes'][_0x29f63e(0x12b)],0x4000);if(_0xfce66c>_0x174d04)throw new Error(_0x29f63e(0x1a0));_0x2284f9(_0x174d04,0x1);}else{if(_0x1ed781[_0x29f63e(0x192)]===_0x29f63e(0xea)){const _0x566794=_0x1ed781[_0x29f63e(0x180)][_0x29f63e(0x127)];if(!_0x566794)throw new Error(_0x29f63e(0x14c));const _0xc3b541=_0x566794['split'](':');if(_0xc3b541['length']>0x2)throw new Error(_0x29f63e(0x14c));const _0xbddad9=_0x3ce588(_0xc3b541[0x0]),_0xad37d4=_0x3ce588(_0xc3b541[0x1]??_0xc3b541[0x0]);_0x2284f9(Math[_0x29f63e(0x12b)](_0xbddad9[_0x29f63e(0x163)],_0xad37d4[_0x29f63e(0x163)]));const _0x4cfe22=(Math[_0x29f63e(0xdb)](_0xad37d4[_0x29f63e(0x193)]-_0xbddad9[_0x29f63e(0x193)])+0x1)*(Math[_0x29f63e(0xdb)](_0xad37d4['col']-_0xbddad9[_0x29f63e(0x163)])+0x1);_0x1f34e1+=_0x4cfe22+_0x1e67e2++;if(_0x1f34e1>MAX_ROWS)throw new Error(_0x29f63e(0x17f));}}}}}}}}),_0x2528c6?.['on']('text',_0x5a4cd0=>{const _0x1de8d9=_0x2643f5;if(_0x561c3d){_0x443ecc?.[_0x1de8d9(0x147)](_0x5a4cd0);return;}if(_0x463f40&&_0x257ef4&&_0x5a4cd0)_0x57ee3c=!![];}),_0x2528c6?.['on']('closetag',_0x17f81d=>{const _0x539c0c=_0x2643f5;if(_0x561c3d){_0x443ecc&&!_0x443ecc[_0x539c0c(0xd4)]()&&(_0x33641f(_0x443ecc[_0x539c0c(0x19a)]),_0x443ecc=undefined);return;}if(_0x17f81d[_0x539c0c(0x192)]==='c'){!_0x57ee3c&&_0x49619f&&!_0x7fce0c&&(_0x7fce0c={'before':_0x387400,'cells':[]});if(_0x7fce0c){if(++_0x33abb1>0xf4240)throw new Error(_0x539c0c(0x19c));_0x7fce0c[_0x539c0c(0x16c)][_0x539c0c(0x136)]({'reference':_0x49619f,'address':_0x46f60c,'materialized':_0x57ee3c});if(!_0x49619f&&_0x57ee3c)_0x49f8d4=!![];}if(_0x57ee3c){if(!_0x7fce0c||_0x49619f){if(!_0x3d2bcb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x3d2bcb[_0x539c0c(0x163)]>MAX_XML_COLUMNS)throw new Error(_0x539c0c(0xfa));_0x2284f9(_0x3d2bcb[_0x539c0c(0x163)]);}_0x387400=_0x3d2bcb;}_0x463f40=![],_0x3d2bcb=undefined,_0x49619f=undefined,_0x46f60c=undefined,_0x257ef4=undefined;}else{if(_0x17f81d[_0x539c0c(0x192)]===_0x539c0c(0x193)){if(_0x7fce0c&&_0x49f8d4)_0x34a8b5['push'](_0x7fce0c);_0x7fce0c=undefined,_0x49f8d4=![];}else{if(_0x17f81d['name']===_0x257ef4)_0x257ef4=undefined;}}}),_0x2528c6?.['on'](_0x2643f5(0xd5),_0x485c92=>{const _0x424312=_0x2643f5;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x485c92[_0x424312(0x16a)]);}),_0x36aa5f['on']('error',_0x20fce0),_0x36aa5f['on'](_0x2643f5(0x182),_0x4622d5=>{const _0x5958e5=_0x2643f5;if(_0x3ae962)return;_0x4ce930+=_0x4622d5[_0x5958e5(0xd7)],_0x443ed1?.[_0x5958e5(0x136)](_0x4622d5);if(_0x4ce930>MAX_EXPANDED){_0x20fce0(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x5958e5(0x10b)](_0x154ced[_0x5958e5(0x10b)](_0x4622d5));if(_0x2528c6&&_0x4419a8)_0x2528c6['write'](_0x4419a8['write'](_0x4622d5));}catch(_0x2f9620){_0x20fce0(_0x2f9620 instanceof Error?_0x2f9620:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x36aa5f['on'](_0x2643f5(0x119),()=>{const _0x16ff9d=_0x2643f5;if(_0x3ae962)return;try{if(_0x1a451e&&_0x154ced)_0x1a451e[_0x16ff9d(0x10b)](_0x154ced['end']())['close']();if(_0x2528c6&&_0x4419a8)_0x2528c6[_0x16ff9d(0x10b)](_0x4419a8['end']())[_0x16ff9d(0x13c)]();for(const _0x5cd88a of _0x34a8b5){let _0x32a23f=_0x5cd88a[_0x16ff9d(0x18a)];for(const _0x411315 of _0x5cd88a['cells']){if(!_0x411315[_0x16ff9d(0x1a3)]&&!(_0x411315['reference']&&_0x394e8b[_0x16ff9d(0x148)](_0x411315[_0x16ff9d(0x109)])))continue;const _0xb6e186=_0x411315[_0x16ff9d(0x17c)]??(_0x32a23f?{'row':_0x32a23f[_0x16ff9d(0x193)],'col':_0x32a23f['col']+0x1}:undefined);if(!_0xb6e186)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0xb6e186[_0x16ff9d(0x163)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x2284f9(_0xb6e186[_0x16ff9d(0x163)]),_0x32a23f=_0xb6e186;}}_0x34a8b5[_0x16ff9d(0xd7)]=0x0,_0x394e8b['clear']();}catch(_0x1d60d6){_0x20fce0(_0x1d60d6 instanceof Error?_0x1d60d6:new Error(_0x16ff9d(0xda)));return;}if(_0x443ed1)_0x4b736f[_0x16ff9d(0xf5)](_0x1f7ae1,Buffer['concat'](_0x443ed1));_0x34f66d=undefined,_0x2feecd[_0x16ff9d(0x125)]();});});}),_0x2feecd['on'](_0x344b0e(0x119),()=>{const _0x24b5a3=_0x344b0e;if(_0x3ae962)return;if(_0x2feecd[_0x24b5a3(0x137)]!==_0x49793c){_0x4c37f4(new Error(_0x24b5a3(0x10d)));return;}if(!_0x174b57[_0x24b5a3(0x148)]('[Content_Types].xml')||!_0x174b57[_0x24b5a3(0x148)]('xl/workbook.xml'))_0x4c37f4(new Error(_0x24b5a3(0xf0)));else _0x37798e();}),_0x2feecd[_0x344b0e(0x125)]();});});}function valueOf(_0x4c335f){const _0x49df75=a144_0x182a22,_0xe4462f=_0x4c335f['value'];if(_0xe4462f&&typeof _0xe4462f===_0x49df75(0x11e)&&(_0x49df75(0x151)in _0xe4462f||_0x49df75(0xf3)in _0xe4462f)){if(!(_0x49df75(0xcd)in _0xe4462f)||_0xe4462f['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0xe4462f[_0x49df75(0xcd)];}return _0xe4462f;}function convert(_0xb8efe9,_0x43e82d){const _0x24e2e3=a144_0x182a22;if(_0xb8efe9===null||_0xb8efe9===undefined||_0xb8efe9===''){if(_0x43e82d[_0x24e2e3(0x13f)]&&!_0x43e82d[_0x24e2e3(0xe3)])throw new Error(_0x24e2e3(0xf9));return null;}if(typeof _0xb8efe9===_0x24e2e3(0xeb)&&Buffer[_0x24e2e3(0x154)](_0xb8efe9,_0x24e2e3(0x150))>MAX_CELL)throw new Error(_0x24e2e3(0x133));switch(_0x43e82d[_0x24e2e3(0x173)][_0x24e2e3(0x10c)]()){case _0x24e2e3(0xeb):case'text':case'textarea':if(typeof _0xb8efe9!=='string')throw new Error(_0x24e2e3(0x10f));return _0xb8efe9;case _0x24e2e3(0x132):case _0x24e2e3(0x13b):case _0x24e2e3(0xc0):if(typeof _0xb8efe9!=='number'||!Number[_0x24e2e3(0x18d)](_0xb8efe9)||Math[_0x24e2e3(0xdb)](_0xb8efe9)>Number['MAX_SAFE_INTEGER']||_0x43e82d['type'][_0x24e2e3(0x10c)]()===_0x24e2e3(0xc0)&&!Number[_0x24e2e3(0xc8)](_0xb8efe9))throw new Error(_0x24e2e3(0x19d));return _0xb8efe9;case _0x24e2e3(0x16d):if(typeof _0xb8efe9!==_0x24e2e3(0x16d))throw new Error(_0x24e2e3(0x139));return _0xb8efe9;case _0x24e2e3(0x1a5):case'datetime':if(!(_0xb8efe9 instanceof Date)||!Number[_0x24e2e3(0x18d)](_0xb8efe9['getTime']()))throw new Error(_0x24e2e3(0x15d));return _0xb8efe9[_0x24e2e3(0xcf)]();default:throw new Error(_0x24e2e3(0x164)+_0x43e82d['type']+'.');}}function a144_0x8f2d(){const _0x572132=['Image\x20XML\x20event\x20budget\x20exceeded.','XML\x20DTD/entities\x20are\x20not\x20supported.','mergeCell','string','22010npgQEU','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','min','ranges','File\x20is\x20not\x20an\x20XLSX\x20workbook.','nativeCell','textarea','sharedFormula','hyperlink','set','exceljs/lib/xlsx/xform/book/defined-name-xform.js','XLSX\x20file\x20exceeds\x2020\x20MB.','entry','Required\x20value\x20is\x20missing.','Worksheet\x20exceeds\x2016384\x20columns.','bitFlag','decodeEx','dataset','from','charCodeAt','Dataset\x20field\x20metadata\x20is\x20missing.','Invalid\x20XLSX\x20archive.','bottom','processAttributes','opentag','lastIndexOf','getRow','test','some','reference','10173gVLYCa','write','toLowerCase','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','imageFields','Expected\x20a\x20text\x20cell.','Non-canonical\x20worksheet\x20ZIP\x20entry.','readUInt32LE','Requested\x20worksheet\x20does\x20not\x20exist.','definedName','Worksheet\x20column\x20objects\x20exceed\x20100000.','text','every','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','extname','end','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','jszip','startsWith','left','object','extraFieldsLength','Worksheet\x20coordinate\x20exceeds\x20','contentHash','Merged\x20cells\x20are\x20not\x20supported.','image/jpeg','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','readEntry','72TqvoYh','ref','dataset-import/','_xlnm.Print_Titles','Invalid\x20ZIP\x20central\x20directory\x20layout.','max','Invalid\x20defined\x20name\x20coordinate.','Workbook','Missing\x20image\x20media:\x20','Duplicate\x20workbook\x20ZIP\x20entry.','./utils','entries','number','Cell\x20exceeds\x2064\x20KB.','Duplicate\x20dataset\x20field\x20codes.','./utf8','push','readEntryCursor','dir','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','decimal','close','eachCell','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','required','map','datetime','merges','relativeOffsetOfLocalHeader','split','jpg','Invalid\x20ZIP\x20local\x20file\x20header.','parseText','has','errors','332172cAVCgX','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20worksheet\x20merge\x20reference.','477TvKMyL','externalFileAttributes','hidden','utf8','formula','destroy','isSafeInteger','byteLength','batchSize','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','modifierName','resolve','trim','_xlnm.Print_Area','entryCount','exceljs/lib/utils/col-cache.js','Expected\x20an\x20Excel\x20date\x20cell.','appCode','getCell','worksheets','media','code','col','Unsupported\x20field\x20type:\x20','get','Unknown\x20or\x20generated\x20mapping\x20field:\x20','update','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','headerRow','message','handleUTF8','cells','boolean','sheet','doctype','\x20columns.','deleted','size','type','parseInt','extend','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','.xlsx','generalPurposeBitFlag','openReadStream','readUInt16LE','creatorId','address','hiddenRow','original','Worksheet\x20merge\x20work\x20exceeds\x20100000.','attributes','fileCommentRaw','data','localeCompare','extraFieldRaw','upload','file','mapping','datasetId','10856615ktfhEj','before','stringify','fileNameRaw','isFinite','Invalid\x20worksheet\x20hyperlink\x20reference.','METADATA','versionMadeBy','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','name','row','xl/workbook.xml','fileNameStr','exec','xlsx','hex','Invalid\x20XLSX\x20entry.','model','right','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','tenantCode','slice','Invalid\x20worksheet\x20column\x20range.','directory','value','materialized','exceljs','date','172bzIdmb','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','fields','unixPermissions','filter','isFile','modifierId','rows','fileComment','isBuffer','fileName','columnCount','2036408WSMvxj','create','integer','7LxBRSW','add','Duplicate\x20mapping\x20target:\x20','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','235058vQiBpb','values','isInteger','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Required\x20image\x20value\x20is\x20missing.','32365AsFRRZ','isArray','result','find','getTime','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','closetag','top','parseClose','error','Unknown\x20Excel\x20header:\x20','length','Duplicate\x20header:\x20','rowCount','Invalid\x20worksheet\x20XML.','abs','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Required\x20field\x20is\x20not\x20mapped:\x20','readBigUInt64LE','digest','uncompressedSize','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Image\x20XML\x20node\x20budget\x20exceeded.','generated','image','includes','parserVersion','subarray'];a144_0x8f2d=function(){return _0x572132;};return a144_0x8f2d();}export async function buildExcelManifest(_0x23e156){const _0x3acd7e=a144_0x182a22,_0x34e273=_0x23e156[_0x3acd7e(0x169)]??0x1;if(!Number[_0x3acd7e(0xc8)](_0x34e273)||_0x34e273<0x1||_0x34e273>MAX_ROWS)throw new Error(_0x3acd7e(0xd1));if(_0x23e156[_0x3acd7e(0x155)]!==undefined&&(!Number['isInteger'](_0x23e156[_0x3acd7e(0x155)])||_0x23e156['batchSize']<0x1||_0x23e156[_0x3acd7e(0x155)]>0x3e8))throw new Error(_0x3acd7e(0x1a7));if(a144_0x3425f4[_0x3acd7e(0x118)](_0x23e156['file'])[_0x3acd7e(0x10c)]()!==_0x3acd7e(0x177))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x153647=await stat(_0x23e156[_0x3acd7e(0x186)]);if(!_0x153647[_0x3acd7e(0x1ab)]()||_0x153647['size']>MAX_FILE)throw new Error(_0x3acd7e(0x11a));const _0x1c1a84=await readFile(_0x23e156[_0x3acd7e(0x186)]);if(_0x1c1a84[_0x3acd7e(0xd7)]>MAX_FILE)throw new Error(_0x3acd7e(0xf7));const _0x3b0c2a=_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x2cc0d9=>isImageContainer(_0x2cc0d9['type'])&&Object[_0x3acd7e(0xc7)](_0x23e156[_0x3acd7e(0x187)])[_0x3acd7e(0xe5)](_0x2cc0d9['code']))?new Map():undefined;await checkArchive(_0x1c1a84,_0x3b0c2a);const _0x507498=new a144_0x579a8e[(_0x3acd7e(0x12d))]();await _0x507498[_0x3acd7e(0x197)]['load'](_0x1c1a84,{'ignoreNodes':['dataValidations']});const _0x525f16=_0x23e156[_0x3acd7e(0x16e)];let _0x16e386;if(_0x525f16===undefined)_0x16e386=_0x507498[_0x3acd7e(0x160)][0x0];else{if(typeof _0x525f16===_0x3acd7e(0xeb)&&_0x507498[_0x3acd7e(0x160)][_0x3acd7e(0x108)](_0x18f199=>_0x18f199['name']===_0x525f16))_0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x55b1ef=>_0x55b1ef[_0x3acd7e(0x192)]===_0x525f16);else{if(typeof _0x525f16===_0x3acd7e(0x132)||/^\d+$/[_0x3acd7e(0x107)](_0x525f16)){const _0xbb05fb=Number(_0x525f16);if(!Number[_0x3acd7e(0xc8)](_0xbb05fb)||_0xbb05fb<0x1)throw new Error(_0x3acd7e(0x14b));_0x16e386=_0x507498[_0x3acd7e(0x160)][_0xbb05fb-0x1];}else _0x16e386=_0x507498['worksheets'][_0x3acd7e(0xce)](_0x3d33a3=>_0x3d33a3['name']===_0x525f16);}}if(!_0x16e386)throw new Error(_0x3acd7e(0x112));if(_0x16e386[_0x3acd7e(0xd9)]>MAX_ROWS||_0x16e386[_0x3acd7e(0x1b1)]>MAX_COLUMNS)throw new Error(_0x3acd7e(0xdc));if((_0x16e386['model'][_0x3acd7e(0x142)]??[])[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x122));const _0x34a369=new Map();_0x16e386[_0x3acd7e(0x106)](_0x34e273)['eachCell']((_0x46538d,_0x55ffb2)=>{const _0x4b19c1=_0x3acd7e,_0x3351bf=valueOf(_0x46538d);if(typeof _0x3351bf!==_0x4b19c1(0xeb)||!_0x3351bf[_0x4b19c1(0x159)]()||Buffer['byteLength'](_0x3351bf)>MAX_CELL)throw new Error(_0x4b19c1(0xed));if(_0x34a369[_0x4b19c1(0x148)](_0x3351bf))throw new Error(_0x4b19c1(0xd8)+_0x3351bf+'.');_0x34a369[_0x4b19c1(0xf5)](_0x3351bf,_0x55ffb2);});const _0x212054=Object[_0x3acd7e(0x131)](_0x23e156[_0x3acd7e(0x187)]);if(!_0x212054[_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x191));const _0x1e8b58=new Map(_0x23e156[_0x3acd7e(0x1a8)]['map'](_0x39f6ec=>[_0x39f6ec[_0x3acd7e(0x162)],_0x39f6ec]));if(_0x1e8b58[_0x3acd7e(0x172)]!==_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0xd7)])throw new Error(_0x3acd7e(0x134));if(_0x23e156[_0x3acd7e(0x1a8)][_0x3acd7e(0x108)](_0x578602=>_0x578602['type'][_0x3acd7e(0x10c)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x2512c6=new Set();for(const [_0x2be918,_0x5d3441]of _0x212054){const _0x3f9e48=_0x1e8b58[_0x3acd7e(0x165)](_0x5d3441);if(!_0x34a369[_0x3acd7e(0x148)](_0x2be918))throw new Error(_0x3acd7e(0xd6)+_0x2be918+'.');if(!_0x3f9e48||RESERVED['has'](_0x5d3441)||_0x3f9e48[_0x3acd7e(0xe3)])throw new Error(_0x3acd7e(0x166)+_0x5d3441+'.');if(_0x2512c6[_0x3acd7e(0x148)](_0x5d3441))throw new Error(_0x3acd7e(0xc3)+_0x5d3441+'.');if(!TYPES[_0x3acd7e(0x148)](_0x3f9e48[_0x3acd7e(0x173)][_0x3acd7e(0x10c)]()))throw new Error(_0x3acd7e(0x164)+_0x3f9e48['type']+'.');_0x2512c6[_0x3acd7e(0xc2)](_0x5d3441);}for(const _0x1b9482 of _0x23e156['fields']){if(_0x1b9482[_0x3acd7e(0x13f)]&&!_0x1b9482[_0x3acd7e(0xe3)]&&!RESERVED[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)])&&!_0x2512c6[_0x3acd7e(0x148)](_0x1b9482[_0x3acd7e(0x162)]))throw new Error(_0x3acd7e(0xdd)+_0x1b9482[_0x3acd7e(0x162)]+'.');}const _0x351763={'fileHash':hash(_0x1c1a84),'mappingHash':hash(JSON['stringify']([..._0x212054]['sort'](([_0x59c64b],[_0x15fab8])=>_0x59c64b[_0x3acd7e(0x183)](_0x15fab8)))),'schemaHash':hash(JSON[_0x3acd7e(0x18b)]([..._0x23e156[_0x3acd7e(0x1a8)]]['sort']((_0x57beb2,_0x1fc3a1)=>_0x57beb2['code']['localeCompare'](_0x1fc3a1[_0x3acd7e(0x162)])))),'sheet':_0x16e386[_0x3acd7e(0x192)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x109819=_0x212054[_0x3acd7e(0x1aa)](([,_0x15eead])=>isImageContainer(_0x1e8b58['get'](_0x15eead)['type'])),_0x43a3fc=_0x109819[_0x3acd7e(0x1aa)](([,_0x48338c])=>_0x1e8b58[_0x3acd7e(0x165)](_0x48338c)['type']['toLowerCase']()===_0x3acd7e(0x185))[_0x3acd7e(0x140)](([,_0x4e541b])=>_0x4e541b);if(_0x43a3fc['length'])_0x351763['uploadFields']=_0x43a3fc;const _0x43c0a3=_0x3b0c2a?resolveWorksheetImages(_0x3b0c2a,_0x16e386[_0x3acd7e(0x192)],new Set(_0x109819['map'](([_0x581114])=>_0x34a369[_0x3acd7e(0x165)](_0x581114)))):[],_0x35be11=new Map();for(const _0x4b346f of _0x43c0a3){const _0x4799e9=_0x4b346f[_0x3acd7e(0x193)]+':'+_0x4b346f[_0x3acd7e(0x163)],_0x207616=_0x35be11['get'](_0x4799e9)??[];_0x207616[_0x3acd7e(0x136)](_0x4b346f),_0x35be11[_0x3acd7e(0xf5)](_0x4799e9,_0x207616);}const _0x3717d2=new Map();let _0x3430f2=0x0;_0x109819[_0x3acd7e(0xd7)]&&(_0x351763[_0x3acd7e(0x10e)]=_0x109819['map'](([,_0x3010f3])=>_0x3010f3),_0x351763['imageCells']=[],_0x351763[_0x3acd7e(0xe6)]=0x1,_0x351763[_0x3acd7e(0x161)]=[]);const _0x5e9fda=Math['max'](0x0,..._0x43c0a3['map'](_0xd33af5=>_0xd33af5[_0x3acd7e(0x193)]));let _0x4219aa=0x0;const _0x4ca81f=new Set(_0x212054[_0x3acd7e(0x140)](([_0x4c7a02])=>_0x34a369['get'](_0x4c7a02)));for(let _0x1cbf7f=_0x34e273+0x1;_0x1cbf7f<=Math[_0x3acd7e(0x12b)](_0x16e386[_0x3acd7e(0xd9)],_0x5e9fda);_0x1cbf7f++){const _0x42c04f=_0x16e386[_0x3acd7e(0x106)](_0x1cbf7f);if(_0x42c04f[_0x3acd7e(0x14f)]||_0x43c0a3[_0x3acd7e(0x108)](_0x919bb8=>_0x919bb8[_0x3acd7e(0x193)]===_0x1cbf7f&&_0x919bb8[_0x3acd7e(0x17d)]))_0x4219aa++;let _0xd21a05=_0x43c0a3[_0x3acd7e(0x108)](_0x14c61e=>_0x14c61e[_0x3acd7e(0x193)]===_0x1cbf7f);_0x42c04f[_0x3acd7e(0x13d)](_0x2e0dcc=>{const _0x4eb3dd=_0x3acd7e;if(_0x2e0dcc[_0x4eb3dd(0x1a2)]!==null&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!==undefined&&_0x2e0dcc[_0x4eb3dd(0x1a2)]!=='')_0xd21a05=!![];});if(!_0xd21a05){_0x351763['emptyRows'][_0x3acd7e(0x136)](_0x1cbf7f);continue;}const _0x4b502e=Object[_0x3acd7e(0x1b3)](null);_0x42c04f['eachCell']((_0x1e2b74,_0x1497fc)=>{const _0x394b47=_0x3acd7e;if(_0x4ca81f[_0x394b47(0x148)](_0x1497fc))return;try{const _0x240dfa=valueOf(_0x1e2b74);if(typeof _0x240dfa==='string'&&Buffer['byteLength'](_0x240dfa,_0x394b47(0x150))>MAX_CELL)throw new Error(_0x394b47(0x133));}catch(_0x49180d){_0x351763[_0x394b47(0x149)][_0x394b47(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x1e2b74[_0x394b47(0x17c)],'message':_0x49180d[_0x394b47(0x16a)]});}});for(const [_0x219c02,_0x19464c]of _0x212054){try{const _0xf0f632=_0x42c04f[_0x3acd7e(0x15f)](_0x34a369[_0x3acd7e(0x165)](_0x219c02)),_0x4eb4db=_0x1e8b58[_0x3acd7e(0x165)](_0x19464c);if(!isImageContainer(_0x4eb4db['type'])){_0x4b502e[_0x19464c]=convert(valueOf(_0xf0f632),_0x4eb4db);continue;}const _0x158a53=_0x35be11['get'](_0x1cbf7f+':'+_0x34a369[_0x3acd7e(0x165)](_0x219c02))??[];if(_0x158a53[_0x3acd7e(0x108)](_0x469889=>_0x469889[_0x3acd7e(0xd5)]))throw Error(_0x158a53['find'](_0x1dc5ab=>_0x1dc5ab[_0x3acd7e(0xd5)])[_0x3acd7e(0xd5)]);if(_0xf0f632[_0x3acd7e(0x1a2)]!=null&&_0xf0f632[_0x3acd7e(0x1a2)]!==''&&!_0x158a53[_0x3acd7e(0x108)](_0x104160=>_0x104160[_0x3acd7e(0xf1)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x1a27a9=[];for(const _0xf88a85 of _0x158a53)for(const _0x58df77 of _0xf88a85[_0x3acd7e(0x161)]){const _0x5b3484=_0x3b0c2a[_0x3acd7e(0x165)](_0x58df77);if(!_0x5b3484)throw Error(_0x3acd7e(0x12e)+_0x58df77+'.');const _0x19501c=hash(_0x5b3484),_0x418d77=_0x3717d2[_0x3acd7e(0x165)](_0x19501c)??validateImageBytes(_0x5b3484);if(!_0x3717d2[_0x3acd7e(0x148)](_0x418d77[_0x3acd7e(0x121)])){_0x3430f2+=_0x418d77[_0x3acd7e(0x172)];if(_0x3430f2>0x32*0x400*0x400)throw Error(_0x3acd7e(0xc9));_0x3717d2['set'](_0x418d77[_0x3acd7e(0x121)],_0x418d77);}_0x1a27a9[_0x3acd7e(0x136)](_0x418d77[_0x3acd7e(0x121)]);}if(!_0x1a27a9[_0x3acd7e(0xd7)]&&_0x4eb4db['required'])throw Error(_0x3acd7e(0xca));if(_0x1a27a9[_0x3acd7e(0xd7)])_0x351763['imageCells']['push']({'rowNumber':_0x1cbf7f,'field':_0x19464c,'hashes':_0x1a27a9});_0x4b502e[_0x19464c]=_0x1a27a9[_0x3acd7e(0x140)](_0x5eee95=>{const _0x141408=_0x3acd7e,_0x224ac3=_0x3717d2['get'](_0x5eee95),_0x5f320f=_0x224ac3['type']===_0x141408(0x123)?_0x141408(0x145):_0x224ac3['type'][_0x141408(0x19f)](0x6),_0x2c9310=_0x5eee95+'.'+_0x5f320f,_0x44f2d2=_0x141408(0x128)+'0'['repeat'](0x40)+'/'+_0x2c9310;return _0x4eb4db['type'][_0x141408(0x10c)]()===_0x141408(0x185)?{'fileName':_0x2c9310,'filePath':_0x44f2d2}:{'key':_0x44f2d2,'name':_0x2c9310,'type':_0x224ac3[_0x141408(0x173)],'size':_0x224ac3['size']};});}catch(_0x585624){_0x351763[_0x3acd7e(0x149)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'field':_0x19464c,'message':_0x585624['message']});}}_0x351763[_0x3acd7e(0x1ad)][_0x3acd7e(0x136)]({'rowNumber':_0x1cbf7f,'values':_0x4b502e});}if(_0x351763[_0x3acd7e(0x161)])_0x351763[_0x3acd7e(0x161)]=[..._0x3717d2[_0x3acd7e(0xc7)]()];if(_0x4219aa)_0x351763['warnings']['push'](_0x4219aa+_0x3acd7e(0x156));return _0x351763;}
1
+ const a144_0x2b6706=a144_0x5749;function a144_0x5749(_0x2b41e5,_0x4efedb){_0x2b41e5=_0x2b41e5-0x98;const _0x59715d=a144_0x5971();let _0x57496d=_0x59715d[_0x2b41e5];return _0x57496d;}(function(_0x5a53f5,_0x477811){const _0x7a2cfa=a144_0x5749,_0x3e09e0=_0x5a53f5();while(!![]){try{const _0xb2917e=-parseInt(_0x7a2cfa(0xf2))/0x1+-parseInt(_0x7a2cfa(0x12e))/0x2+-parseInt(_0x7a2cfa(0x178))/0x3+parseInt(_0x7a2cfa(0x119))/0x4*(-parseInt(_0x7a2cfa(0x135))/0x5)+parseInt(_0x7a2cfa(0x126))/0x6*(parseInt(_0x7a2cfa(0x141))/0x7)+parseInt(_0x7a2cfa(0xd6))/0x8*(-parseInt(_0x7a2cfa(0x170))/0x9)+parseInt(_0x7a2cfa(0x146))/0xa;if(_0xb2917e===_0x477811)break;else _0x3e09e0['push'](_0x3e09e0['shift']());}catch(_0x1c0190){_0x3e09e0['push'](_0x3e09e0['shift']());}}}(a144_0x5971,0xd7180));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1c79cd from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x40fd7d from'exceljs';import a144_0x422172 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x2b6706(0xe0),a144_0x2b6706(0x16d),a144_0x2b6706(0x13d),a144_0x2b6706(0xb9),'creatorName','modifierId',a144_0x2b6706(0x173),a144_0x2b6706(0xa9),a144_0x2b6706(0x13c),a144_0x2b6706(0xc1)]),TYPES=new Set([a144_0x2b6706(0x10d),a144_0x2b6706(0x16e),a144_0x2b6706(0xeb),a144_0x2b6706(0x144),a144_0x2b6706(0xcc),a144_0x2b6706(0xe1),a144_0x2b6706(0x116),a144_0x2b6706(0xfd),a144_0x2b6706(0x122),'image',a144_0x2b6706(0x106)]),isImageContainer=_0x151b18=>[a144_0x2b6706(0xc0),a144_0x2b6706(0x106)][a144_0x2b6706(0x139)](_0x151b18[a144_0x2b6706(0x117)]()),hash=_0x142a66=>createHash('sha256')['update'](_0x142a66)[a144_0x2b6706(0xa7)](a144_0x2b6706(0x147)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x2b6706(0xb1)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve'](a144_0x2b6706(0x112))),zipRequire=createRequire(excelRequire['resolve']('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x2b6706(0xf7)),zipUtf8=zipRequire(a144_0x2b6706(0x11f)),zipPaths=zipRequire(a144_0x2b6706(0x12d));function centralDirectoryEnd(_0x4c1878,_0x31d0d7){const _0x4b04ea=a144_0x2b6706,_0x27e157=()=>new Error(_0x4b04ea(0xca)),_0x47bcb5=_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x5,0x6]));if(_0x47bcb5<0x0||_0x47bcb5+0x16>_0x4c1878[_0x4b04ea(0xd5)]||_0x47bcb5+0x16+_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x14)!==_0x4c1878[_0x4b04ea(0xd5)])throw _0x27e157();let _0x1384dd=_0x4c1878['readUInt16LE'](_0x47bcb5+0xa),_0x40e32d=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0xc),_0x164c8c=_0x4c1878[_0x4b04ea(0x138)](_0x47bcb5+0x10),_0x5a9ef4=_0x47bcb5;const _0x3a084f=_0x47bcb5-0x14,_0x30072b=_0x3a084f>=0x0&&_0x4c1878[_0x4b04ea(0x138)](_0x3a084f)===0x7064b50,_0x5ad7a8=[0x4,0x6,0x8,0xa][_0x4b04ea(0xd4)](_0x3a9d2a=>_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+_0x3a9d2a)===0xffff)||_0x40e32d===0xffffffff||_0x164c8c===0xffffffff;if(_0x30072b!==_0x5ad7a8)throw _0x27e157();if(_0x30072b){if(_0x4c1878['lastIndexOf'](Buffer[_0x4b04ea(0x16b)]([0x50,0x4b,0x6,0x7]))!==_0x3a084f)throw _0x27e157();const _0x41ef02=_0x1366c6=>{const _0x3f2235=_0x4b04ea,_0x517d3b=Number(_0x4c1878[_0x3f2235(0x14e)](_0x1366c6));if(!Number[_0x3f2235(0x183)](_0x517d3b))throw _0x27e157();return _0x517d3b;};_0x5a9ef4=_0x41ef02(_0x3a084f+0x8);if(_0x4c1878['readUInt32LE'](_0x3a084f+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x138)](_0x3a084f+0x10)!==0x1||_0x5a9ef4>_0x3a084f-0x38||_0x4c1878[_0x4b04ea(0x138)](_0x5a9ef4)!==0x6064b50||_0x41ef02(_0x5a9ef4+0x4)!==0x2c||_0x5a9ef4+0x38!==_0x3a084f||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x10)!==0x0||_0x4c1878['readUInt32LE'](_0x5a9ef4+0x14)!==0x0)throw _0x27e157();_0x1384dd=_0x41ef02(_0x5a9ef4+0x20),_0x40e32d=_0x41ef02(_0x5a9ef4+0x28),_0x164c8c=_0x41ef02(_0x5a9ef4+0x30);if(_0x41ef02(_0x5a9ef4+0x18)!==_0x1384dd)throw _0x27e157();}else{if(_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x4)!==0x0||_0x4c1878[_0x4b04ea(0x15a)](_0x47bcb5+0x6)!==0x0||_0x4c1878['readUInt16LE'](_0x47bcb5+0x8)!==_0x1384dd)throw _0x27e157();}const _0x3d6e6b=_0x31d0d7[_0x4b04ea(0xbc)];if(_0x164c8c!==_0x3d6e6b||_0x1384dd!==_0x31d0d7[_0x4b04ea(0x133)]||_0x164c8c+_0x40e32d!==_0x5a9ef4)throw _0x27e157();return _0x5a9ef4;}function consumerEntryName(_0x45915a,_0x4cced4){const _0x48cd6d=a144_0x2b6706;if(_0x4cced4['extraFields']['filter'](_0x2b2238=>_0x2b2238['id']===0x1)[_0x48cd6d(0xd5)]>0x1)throw new Error(_0x48cd6d(0x108));const _0x57c3d2=_0x4cced4,_0xf89796=_0x4cced4[_0x48cd6d(0x17f)];if(!Buffer['isBuffer'](_0x57c3d2[_0x48cd6d(0x9e)])||!Buffer[_0x48cd6d(0x104)](_0x57c3d2[_0x48cd6d(0xad)])||!Buffer['isBuffer'](_0x57c3d2['fileCommentRaw'])||!Number['isSafeInteger'](_0xf89796)||_0xf89796<0x0||_0xf89796>_0x45915a['length']-0x1e||_0x45915a[_0x48cd6d(0x138)](_0xf89796)!==0x4034b50)throw new Error(_0x48cd6d(0x127));const _0xc87fcc=_0xf89796+0x1e+_0x45915a['readUInt16LE'](_0xf89796+0x1a),_0x13f657=_0xc87fcc+_0x45915a['readUInt16LE'](_0xf89796+0x1c)+_0x4cced4['compressedSize'];if(!Number[_0x48cd6d(0x183)](_0x13f657)||_0x13f657>_0x45915a[_0x48cd6d(0xd5)])throw new Error(_0x48cd6d(0x127));if(_0xc87fcc>_0x45915a[_0x48cd6d(0xd5)]||!_0x45915a[_0x48cd6d(0x10b)](_0xf89796+0x1e,_0xc87fcc)[_0x48cd6d(0x145)](_0x57c3d2[_0x48cd6d(0x9e)]))throw new Error(_0x48cd6d(0x121));const _0xd3fcb=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0xd3fcb[_0x48cd6d(0x142)]=_0x4cced4[_0x48cd6d(0x132)],_0xd3fcb[_0x48cd6d(0xb2)]=_0x57c3d2[_0x48cd6d(0x9e)],_0xd3fcb[_0x48cd6d(0x13f)]=_0x57c3d2[_0x48cd6d(0xaa)],_0xd3fcb[_0x48cd6d(0x163)]=_0x57c3d2[_0x48cd6d(0xad)]['length'],_0xd3fcb[_0x48cd6d(0x10c)](zipReader(_0x57c3d2['extraFieldRaw'])),_0xd3fcb[_0x48cd6d(0xbb)](),_0xd3fcb[_0x48cd6d(0x11c)]=_0x4cced4['versionMadeBy'],_0xd3fcb[_0x48cd6d(0xc7)]=_0x4cced4[_0x48cd6d(0xc7)],_0xd3fcb[_0x48cd6d(0x14d)]();const _0x56b876=_0xd3fcb[_0x48cd6d(0x162)]||Boolean((_0xd3fcb[_0x48cd6d(0x158)]??0x0)&0x4000),_0x5744ae=zipPaths[_0x48cd6d(0x168)](_0xd3fcb[_0x48cd6d(0xdc)]),_0x48d92a=_0x5744ae['startsWith']('/')?_0x5744ae[_0x48cd6d(0xe9)](0x1):_0x5744ae;return{'name':_0x48d92a,'original':_0xd3fcb['fileNameStr'],'directory':_0x56b876};}export function normalizeImportFields(_0x49b65c){const _0x54f3a1=a144_0x2b6706;if(!_0x49b65c||(_0x49b65c['source']??_0x49b65c[_0x54f3a1(0xb4)]?.[_0x54f3a1(0x125)])!=='METADATA')throw new Error(_0x54f3a1(0x182));const _0x4b3749=Array[_0x54f3a1(0x15e)](_0x49b65c[_0x54f3a1(0xa8)]),_0x52a99c=_0x4b3749?_0x49b65c['fields']:_0x49b65c[_0x54f3a1(0x11b)];if(!Array[_0x54f3a1(0x15e)](_0x52a99c)||_0x52a99c[_0x54f3a1(0xd5)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x287d44=[],_0x300bee=new Set();for(const _0x5e190a of _0x52a99c){if(_0x5e190a[_0x54f3a1(0xc1)]===!![])continue;let _0x307b92=_0x5e190a[_0x54f3a1(0x13b)]??{};if(!_0x4b3749&&typeof _0x307b92===_0x54f3a1(0x10d)){try{_0x307b92=JSON[_0x54f3a1(0xff)](_0x307b92);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x307b92||typeof _0x307b92!==_0x54f3a1(0x100)||Array[_0x54f3a1(0x15e)](_0x307b92))throw new Error(_0x54f3a1(0x175));}const _0x353461=_0x4b3749?_0x5e190a[_0x54f3a1(0x11d)]:_0x5e190a['code'],_0x511746=_0x4b3749?_0x5e190a[_0x54f3a1(0x187)]:_0x5e190a[_0x54f3a1(0xac)]??_0x5e190a[_0x54f3a1(0xd8)];if(typeof _0x353461!==_0x54f3a1(0x10d)||!_0x353461||typeof _0x511746!==_0x54f3a1(0x10d)||_0x300bee[_0x54f3a1(0x12b)](_0x353461))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x511746['toLowerCase']()===_0x54f3a1(0x17a))throw new Error(_0x54f3a1(0x14f));_0x300bee[_0x54f3a1(0x118)](_0x353461);const _0x1b3100=_0x4b3749?_0x5e190a:_0x307b92,_0x5b39a8={'code':_0x353461,'type':_0x511746,'required':_0x1b3100[_0x54f3a1(0xc2)]===!![]};if(RESERVED[_0x54f3a1(0x12b)](_0x353461)||_0x1b3100[_0x54f3a1(0x174)]===!![]||_0x1b3100[_0x54f3a1(0xf5)]===!![])_0x5b39a8['generated']=!![];_0x287d44['push'](_0x5b39a8);}return _0x287d44;}async function checkArchive(_0x596c56,_0x26412c){await new Promise((_0x3f7414,_0x7804ef)=>{const _0x28c999=a144_0x5749;a144_0x422172[_0x28c999(0xda)](_0x596c56,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x382594,_0x296ae9)=>{const _0x15cb54=_0x28c999;if(_0x382594||!_0x296ae9){_0x7804ef(_0x382594??new Error(_0x15cb54(0xcb)));return;}let _0x24c652;try{_0x24c652=centralDirectoryEnd(_0x596c56,_0x296ae9);}catch(_0x5dae24){_0x296ae9[_0x15cb54(0xa2)](),_0x7804ef(_0x5dae24);return;}let _0x1b716a=0x0,_0x808029=0x0,_0x29dbc0=0x0,_0x4dbcb6=0x0,_0x1b074d=0x0,_0x3d23d7=0x0,_0x5b4e3d=0x0,_0x3f97be=0x0,_0x1afeb2=0x0,_0x116471=![],_0x2d8916;const _0x347256=new Set(),_0x116216=_0x152166=>{const _0x194967=_0x15cb54;if(_0x116471)return;_0x116471=!![],_0x2d8916?.[_0x194967(0xe3)](),_0x296ae9[_0x194967(0xa2)](),_0x7804ef(_0x152166);},_0x7af40c=(_0x438970,_0x1900c0)=>{const _0x2acfde=_0x15cb54;if(!_0x438970||!/^\d+$/[_0x2acfde(0x13a)](_0x438970))throw new Error(_0x2acfde(0x177));const _0xfc2b5c=Number(_0x438970);if(!Number['isSafeInteger'](_0xfc2b5c)||_0xfc2b5c<0x1||_0xfc2b5c>_0x1900c0)throw new Error(_0x2acfde(0x16a)+_0x1900c0+'.');return _0xfc2b5c;},_0x1c1b77=(_0x47e958,_0x33cefe=MAX_XML_COLUMNS)=>{const _0x1d95e3=_0x15cb54,_0x4c4616=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x1d95e3(0xbf)](_0x47e958);if(!_0x4c4616)throw new Error(_0x1d95e3(0x16f));let _0x40fb28=0x0;for(const _0x5bb300 of _0x4c4616[0x1])_0x40fb28=_0x40fb28*0x1a+_0x5bb300[_0x1d95e3(0x160)](0x0)-0x40;if(_0x40fb28>_0x33cefe)throw new Error(_0x1d95e3(0xf8)+_0x33cefe+'\x20columns.');return{'row':_0x7af40c(_0x4c4616[0x2],MAX_XML_ROWS),'col':_0x40fb28};},_0xcc8890=_0xd32a43=>{const _0x5b0605=_0x15cb54;if(_0xd32a43[_0x5b0605(0x11d)]==='_xlnm.Print_Area'||_0xd32a43[_0x5b0605(0x11d)]===_0x5b0605(0x10f))return;for(const _0x425d45 of _0xd32a43[_0x5b0605(0x161)]){if(!ABSOLUTE_NAME_RANGE[_0x5b0605(0x13a)](_0x425d45[_0x5b0605(0x114)]('!')['pop']()||''))continue;const _0x37636a=nameCoordinates['decodeEx'](_0x425d45),_0x132688=_0x5b0605(0x15d)in _0x37636a,_0x221e76=_0x132688?[_0x37636a[_0x5b0605(0x15d)],_0x37636a[_0x5b0605(0xf4)]]:[_0x37636a[_0x5b0605(0xcf)]],_0x12fa42=_0x132688?[_0x37636a[_0x5b0605(0xef)],_0x37636a[_0x5b0605(0x17c)]]:[_0x37636a[_0x5b0605(0x11e)]],_0x37b38a=(_0x44faac,_0x17a592)=>Number[_0x5b0605(0x183)](_0x44faac)&&_0x44faac>=0x1&&_0x44faac<=_0x17a592;if(!_0x221e76[_0x5b0605(0x10a)](_0x382bc7=>_0x37b38a(_0x382bc7,MAX_XML_ROWS))||!_0x12fa42[_0x5b0605(0x10a)](_0x289251=>_0x37b38a(_0x289251,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x5b4e3d+=_0x132688?(_0x37636a[_0x5b0605(0xf4)]-_0x37636a[_0x5b0605(0x15d)]+0x1)*(_0x37636a[_0x5b0605(0x17c)]-_0x37636a[_0x5b0605(0xef)]+0x1):0x1;if(_0x5b4e3d>MAX_ROWS)throw new Error(_0x5b0605(0x123));}};_0x296ae9['on'](_0x15cb54(0x101),_0x116216),_0x296ae9['on'](_0x15cb54(0xc5),_0x4b421e=>{const _0x13629e=_0x15cb54;if(_0x116471)return;if(++_0x29dbc0>0x2710||(_0x1b716a+=_0x4b421e['uncompressedSize'])>MAX_EXPANDED){_0x116216(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}let _0x23316f;try{_0x23316f=consumerEntryName(_0x596c56,_0x4b421e);}catch(_0x3a0077){_0x116216(_0x3a0077);return;}if(_0x23316f[_0x13629e(0x16c)]){_0x296ae9[_0x13629e(0x137)]();return;}const _0x23e76c=_0x23316f[_0x13629e(0x11d)];if(_0x26412c&&(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]||_0x347256['has'](_0x23e76c)||_0x23e76c[_0x13629e(0xcd)]('/')||_0x23e76c[_0x13629e(0x139)]('\x5c'))){_0x116216(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x23e76c!==_0x23316f[_0x13629e(0x17e)]&&(_0x23e76c===_0x13629e(0xf3)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c))){_0x116216(new Error(_0x13629e(0xdb)));return;}const _0x12e8eb=_0x23e76c===_0x13629e(0xf3);if(_0x12e8eb&&_0x347256[_0x13629e(0x12b)](_0x23e76c)){_0x116216(new Error(_0x13629e(0x14a)));return;}_0x347256['add'](_0x23e76c);const _0x46afc6=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x13629e(0x13a)](_0x23e76c);if(_0x46afc6&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x23e76c)){_0x116216(new Error(_0x13629e(0x155)));return;}_0x296ae9['openReadStream'](_0x4b421e,(_0x53efe7,_0x590e48)=>{const _0x55f8a3=_0x13629e;if(_0x116471){_0x590e48?.[_0x55f8a3(0xe3)]();return;}if(_0x53efe7||!_0x590e48){_0x116216(_0x53efe7??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x2d8916=_0x590e48;const _0x5d3505=_0x26412c?[]:undefined,_0x454e28=_0x26412c&&/[.](xml|rels)$/[_0x55f8a3(0x13a)](_0x23e76c)?new StringDecoder(_0x55f8a3(0xa1)):undefined,_0x1f1ede=_0x454e28?new SaxesParser({'xmlns':![]}):undefined,_0x169eb0=()=>{if(++_0x1afeb2>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1f1ede?.['on'](_0x55f8a3(0x17d),()=>{const _0x33594f=_0x55f8a3;throw Error(_0x33594f(0xab));}),_0x1f1ede?.['on'](_0x55f8a3(0x151),()=>{_0x169eb0();if(++_0x3f97be>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x1f1ede?.['on'](_0x55f8a3(0x16e),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0xd1),_0x169eb0),_0x1f1ede?.['on'](_0x55f8a3(0x101),_0x31378b=>{throw _0x31378b;});const _0x9867be=_0x46afc6||_0x12e8eb?new StringDecoder('utf8'):undefined,_0x205c13=_0x46afc6||_0x12e8eb?new SaxesParser({'xmlns':![]}):undefined;let _0x26bf3d,_0x1f60ff=0x0,_0x4ec9ad=0x0,_0x2a382e,_0x1197c5,_0x1a83be=![],_0x42e433=![],_0x12e02b,_0x41f816,_0x31ad1c,_0x1f52dc=![];const _0x196e7c=[],_0x1b7d28=new Set();let _0xa84b01;const _0x3683ec=(_0x2377f7,_0x4889a5=0x0)=>{const _0x41e2ff=_0x55f8a3;_0x1b074d+=_0x4889a5+Math[_0x41e2ff(0x109)](0x0,_0x2377f7-_0x4ec9ad),_0x4ec9ad=Math['max'](_0x4ec9ad,_0x2377f7);if(_0x1b074d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x205c13?.['on'](_0x55f8a3(0x151),_0x317430=>{const _0x56f457=_0x55f8a3;if(_0x12e8eb){if(!_0x26bf3d&&_0x317430['name']===_0x56f457(0xb5))_0x26bf3d=new DefinedNameXform();_0x26bf3d?.[_0x56f457(0x9d)](_0x317430);return;}if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0xcf)){if(_0x42e433)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x7af40c(_0x317430[_0x56f457(0x102)]['r'],MAX_XML_ROWS),_0x2a382e=undefined,_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x317430['name']==='c'){if(_0x42e433)throw new Error(_0x56f457(0xed));_0x42e433=!![],_0x1a83be=Boolean(Number[_0x56f457(0xd9)](_0x317430['attributes']['s']??'',0xa)),_0xa84b01=undefined,_0x12e02b=_0x317430[_0x56f457(0x102)]['r']||undefined,_0x41f816=_0x12e02b?_0x1c1b77(_0x12e02b):undefined;if(_0x41f816)_0x1197c5=_0x41f816;else _0x1197c5=_0x2a382e?{'row':_0x2a382e[_0x56f457(0xcf)],'col':_0x2a382e[_0x56f457(0x11e)]+0x1}:undefined;}else{if(_0x42e433&&['f','v','t'][_0x56f457(0x139)](_0x317430['name'])){_0xa84b01=_0x317430['name'];if(_0x317430['name']==='f'&&_0x317430[_0x56f457(0x102)]['t'])_0x1a83be=!![];}else{if(_0x42e433&&_0x317430['name']==='r')_0x1a83be=!![];else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x107)){const _0x203b07=_0x317430['attributes']['ref'];if(!_0x203b07)throw new Error(_0x56f457(0x111));const _0x16d7f1=_0x203b07[_0x56f457(0x114)](':');if(_0x16d7f1[_0x56f457(0xd5)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1abad3=_0x1c1b77(_0x16d7f1[0x0]),_0xbbf1b7=_0x1c1b77(_0x16d7f1[0x1]??_0x16d7f1[0x0]);_0x1b7d28[_0x56f457(0x118)](_0x203b07),_0x3683ec(Math[_0x56f457(0x109)](_0x1abad3[_0x56f457(0x11e)],_0xbbf1b7[_0x56f457(0x11e)]),0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x11e)){const _0x33f9f3=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0xa0)],0x4000),_0x4926fc=_0x7af40c(_0x317430[_0x56f457(0x102)][_0x56f457(0x109)],0x4000);if(_0x33f9f3>_0x4926fc)throw new Error(_0x56f457(0x124));_0x3683ec(_0x4926fc,0x1);}else{if(_0x317430[_0x56f457(0x11d)]===_0x56f457(0x12a)){const _0x3fde41=_0x317430[_0x56f457(0x102)][_0x56f457(0x120)];if(!_0x3fde41)throw new Error(_0x56f457(0xde));const _0x109dc7=_0x3fde41[_0x56f457(0x114)](':');if(_0x109dc7['length']>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x13ae3c=_0x1c1b77(_0x109dc7[0x0]),_0x1ab6b8=_0x1c1b77(_0x109dc7[0x1]??_0x109dc7[0x0]);_0x3683ec(Math[_0x56f457(0x109)](_0x13ae3c[_0x56f457(0x11e)],_0x1ab6b8[_0x56f457(0x11e)]));const _0x104f8a=(Math['abs'](_0x1ab6b8[_0x56f457(0xcf)]-_0x13ae3c[_0x56f457(0xcf)])+0x1)*(Math['abs'](_0x1ab6b8['col']-_0x13ae3c[_0x56f457(0x11e)])+0x1);_0x4dbcb6+=_0x104f8a+_0x1f60ff++;if(_0x4dbcb6>MAX_ROWS)throw new Error(_0x56f457(0xa5));}}}}}}}}),_0x205c13?.['on'](_0x55f8a3(0x16e),_0x34b6c7=>{if(_0x12e8eb){_0x26bf3d?.['parseText'](_0x34b6c7);return;}if(_0x42e433&&_0xa84b01&&_0x34b6c7)_0x1a83be=!![];}),_0x205c13?.['on']('closetag',_0x3302e9=>{const _0x5eb04b=_0x55f8a3;if(_0x12e8eb){_0x26bf3d&&!_0x26bf3d[_0x5eb04b(0x185)]()&&(_0xcc8890(_0x26bf3d[_0x5eb04b(0xf0)]),_0x26bf3d=undefined);return;}if(_0x3302e9[_0x5eb04b(0x11d)]==='c'){!_0x1a83be&&_0x12e02b&&!_0x31ad1c&&(_0x31ad1c={'before':_0x2a382e,'cells':[]});if(_0x31ad1c){if(++_0x3d23d7>0xf4240)throw new Error(_0x5eb04b(0x176));_0x31ad1c[_0x5eb04b(0x148)][_0x5eb04b(0xc9)]({'reference':_0x12e02b,'address':_0x41f816,'materialized':_0x1a83be});if(!_0x12e02b&&_0x1a83be)_0x1f52dc=!![];}if(_0x1a83be){if(!_0x31ad1c||_0x12e02b){if(!_0x1197c5)throw new Error(_0x5eb04b(0x136));if(_0x1197c5[_0x5eb04b(0x11e)]>MAX_XML_COLUMNS)throw new Error(_0x5eb04b(0xd7));_0x3683ec(_0x1197c5['col']);}_0x2a382e=_0x1197c5;}_0x42e433=![],_0x1197c5=undefined,_0x12e02b=undefined,_0x41f816=undefined,_0xa84b01=undefined;}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0x5eb04b(0xcf)){if(_0x31ad1c&&_0x1f52dc)_0x196e7c[_0x5eb04b(0xc9)](_0x31ad1c);_0x31ad1c=undefined,_0x1f52dc=![];}else{if(_0x3302e9[_0x5eb04b(0x11d)]===_0xa84b01)_0xa84b01=undefined;}}}),_0x205c13?.['on']('error',_0x1bed7b=>{const _0x11491b=_0x55f8a3;throw new Error(_0x11491b(0xbe)+_0x1bed7b[_0x11491b(0x103)]);}),_0x590e48['on'](_0x55f8a3(0x101),_0x116216),_0x590e48['on'](_0x55f8a3(0x159),_0x18dd6b=>{const _0x53c459=_0x55f8a3;if(_0x116471)return;_0x808029+=_0x18dd6b[_0x53c459(0xd5)],_0x5d3505?.[_0x53c459(0xc9)](_0x18dd6b);if(_0x808029>MAX_EXPANDED){_0x116216(new Error(_0x53c459(0xe8)));return;}try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x53c459(0xb6)](_0x454e28['write'](_0x18dd6b));if(_0x205c13&&_0x9867be)_0x205c13[_0x53c459(0xb6)](_0x9867be['write'](_0x18dd6b));}catch(_0xc2d887){_0x116216(_0xc2d887 instanceof Error?_0xc2d887:new Error(_0x53c459(0x10e)));}}),_0x590e48['on'](_0x55f8a3(0xb8),()=>{const _0x5c64c4=_0x55f8a3;if(_0x116471)return;try{if(_0x1f1ede&&_0x454e28)_0x1f1ede[_0x5c64c4(0xb6)](_0x454e28['end']())[_0x5c64c4(0xa2)]();if(_0x205c13&&_0x9867be)_0x205c13['write'](_0x9867be[_0x5c64c4(0xb8)]())[_0x5c64c4(0xa2)]();for(const _0x4d660c of _0x196e7c){let _0x31175d=_0x4d660c[_0x5c64c4(0x131)];for(const _0x492a0b of _0x4d660c[_0x5c64c4(0x148)]){if(!_0x492a0b[_0x5c64c4(0x130)]&&!(_0x492a0b[_0x5c64c4(0x105)]&&_0x1b7d28[_0x5c64c4(0x12b)](_0x492a0b[_0x5c64c4(0x105)])))continue;const _0x1ea43a=_0x492a0b[_0x5c64c4(0x9a)]??(_0x31175d?{'row':_0x31175d[_0x5c64c4(0xcf)],'col':_0x31175d['col']+0x1}:undefined);if(!_0x1ea43a)throw new Error(_0x5c64c4(0x136));if(_0x1ea43a['col']>MAX_XML_COLUMNS)throw new Error(_0x5c64c4(0xd7));_0x3683ec(_0x1ea43a['col']),_0x31175d=_0x1ea43a;}}_0x196e7c[_0x5c64c4(0xd5)]=0x0,_0x1b7d28[_0x5c64c4(0xf9)]();}catch(_0x25a86b){_0x116216(_0x25a86b instanceof Error?_0x25a86b:new Error(_0x5c64c4(0x10e)));return;}if(_0x5d3505)_0x26412c[_0x5c64c4(0xea)](_0x23e76c,Buffer[_0x5c64c4(0x15c)](_0x5d3505));_0x2d8916=undefined,_0x296ae9[_0x5c64c4(0x137)]();});});}),_0x296ae9['on'](_0x15cb54(0xb8),()=>{const _0x425355=_0x15cb54;if(_0x116471)return;if(_0x296ae9[_0x425355(0xbc)]!==_0x24c652){_0x7804ef(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x347256[_0x425355(0x12b)]('[Content_Types].xml')||!_0x347256['has']('xl/workbook.xml'))_0x7804ef(new Error(_0x425355(0x186)));else _0x3f7414();}),_0x296ae9[_0x15cb54(0x137)]();});});}function valueOf(_0x13952a){const _0x20eec9=a144_0x2b6706,_0x473cd7=_0x13952a['value'];if(_0x473cd7&&typeof _0x473cd7===_0x20eec9(0x100)&&(_0x20eec9(0x13e)in _0x473cd7||'sharedFormula'in _0x473cd7)){if(!(_0x20eec9(0xf1)in _0x473cd7)||_0x473cd7[_0x20eec9(0xf1)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x473cd7['result'];}return _0x473cd7;}function convert(_0x3b3259,_0x45398a){const _0x41909a=a144_0x2b6706;if(_0x3b3259===null||_0x3b3259===undefined||_0x3b3259===''){if(_0x45398a['required']&&!_0x45398a[_0x41909a(0x174)])throw new Error(_0x41909a(0xfa));return null;}if(typeof _0x3b3259===_0x41909a(0x10d)&&Buffer[_0x41909a(0xb0)](_0x3b3259,_0x41909a(0xa1))>MAX_CELL)throw new Error(_0x41909a(0xd2));switch(_0x45398a[_0x41909a(0xac)]['toLowerCase']()){case _0x41909a(0x10d):case _0x41909a(0x16e):case'textarea':if(typeof _0x3b3259!==_0x41909a(0x10d))throw new Error('Expected\x20a\x20text\x20cell.');return _0x3b3259;case _0x41909a(0x144):case _0x41909a(0xcc):case'integer':if(typeof _0x3b3259!==_0x41909a(0x144)||!Number[_0x41909a(0xe7)](_0x3b3259)||Math[_0x41909a(0xfc)](_0x3b3259)>Number['MAX_SAFE_INTEGER']||_0x45398a['type']['toLowerCase']()===_0x41909a(0xe1)&&!Number[_0x41909a(0x140)](_0x3b3259))throw new Error(_0x41909a(0x11a));return _0x3b3259;case _0x41909a(0x116):if(typeof _0x3b3259!==_0x41909a(0x116))throw new Error(_0x41909a(0xf6));return _0x3b3259;case _0x41909a(0xfd):case _0x41909a(0x122):if(!(_0x3b3259 instanceof Date)||!Number['isFinite'](_0x3b3259[_0x41909a(0x157)]()))throw new Error(_0x41909a(0xa6));return _0x3b3259[_0x41909a(0x157)]();default:throw new Error(_0x41909a(0xdf)+_0x45398a[_0x41909a(0xac)]+'.');}}export async function buildExcelManifest(_0x40d3af){const _0x3fb5d6=a144_0x2b6706,_0x2c2031=_0x40d3af[_0x3fb5d6(0x180)]??0x1;if(!Number[_0x3fb5d6(0x140)](_0x2c2031)||_0x2c2031<0x1||_0x2c2031>MAX_ROWS)throw new Error(_0x3fb5d6(0x15f));if(_0x40d3af[_0x3fb5d6(0xb3)]!==undefined&&(!Number[_0x3fb5d6(0x140)](_0x40d3af['batchSize'])||_0x40d3af[_0x3fb5d6(0xb3)]<0x1||_0x40d3af[_0x3fb5d6(0xb3)]>0x3e8))throw new Error(_0x3fb5d6(0x15b));if(a144_0x1c79cd[_0x3fb5d6(0x14c)](_0x40d3af['file'])[_0x3fb5d6(0x117)]()!==_0x3fb5d6(0x181))throw new Error(_0x3fb5d6(0xe4));const _0x553ab8=await stat(_0x40d3af[_0x3fb5d6(0x149)]);if(!_0x553ab8[_0x3fb5d6(0x12c)]()||_0x553ab8[_0x3fb5d6(0x9f)]>MAX_FILE)throw new Error(_0x3fb5d6(0x167));const _0x579f6a=await readFile(_0x40d3af[_0x3fb5d6(0x149)]);if(_0x579f6a[_0x3fb5d6(0xd5)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x343fa2=_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x285295=>isImageContainer(_0x285295[_0x3fb5d6(0xac)])&&Object['values'](_0x40d3af[_0x3fb5d6(0x152)])[_0x3fb5d6(0x139)](_0x285295[_0x3fb5d6(0xa4)]))?new Map():undefined;await checkArchive(_0x579f6a,_0x343fa2);const _0x577de3=new a144_0x40fd7d[(_0x3fb5d6(0x98))]();await _0x577de3['xlsx']['load'](_0x579f6a,{'ignoreNodes':[_0x3fb5d6(0x165)]});const _0x31c211=_0x40d3af[_0x3fb5d6(0x179)];let _0xa4cd7f;if(_0x31c211===undefined)_0xa4cd7f=_0x577de3['worksheets'][0x0];else{if(typeof _0x31c211===_0x3fb5d6(0x10d)&&_0x577de3[_0x3fb5d6(0x166)]['some'](_0x50f441=>_0x50f441['name']===_0x31c211))_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0x3fb5d6(0x129)](_0x22e3e5=>_0x22e3e5['name']===_0x31c211);else{if(typeof _0x31c211==='number'||/^\d+$/[_0x3fb5d6(0x13a)](_0x31c211)){const _0xf2b5f7=Number(_0x31c211);if(!Number[_0x3fb5d6(0x140)](_0xf2b5f7)||_0xf2b5f7<0x1)throw new Error(_0x3fb5d6(0xe5));_0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)][_0xf2b5f7-0x1];}else _0xa4cd7f=_0x577de3[_0x3fb5d6(0x166)]['find'](_0x443117=>_0x443117[_0x3fb5d6(0x11d)]===_0x31c211);}}if(!_0xa4cd7f)throw new Error(_0x3fb5d6(0x150));if(_0xa4cd7f[_0x3fb5d6(0xfb)]>MAX_ROWS||_0xa4cd7f[_0x3fb5d6(0x156)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0xa4cd7f[_0x3fb5d6(0xf0)][_0x3fb5d6(0xaf)]??[])[_0x3fb5d6(0xd5)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x2c1e73=new Map();_0xa4cd7f[_0x3fb5d6(0x169)](_0x2c2031)[_0x3fb5d6(0xc6)]((_0x5bde54,_0x386ed3)=>{const _0x237752=_0x3fb5d6,_0x2ec129=valueOf(_0x5bde54);if(typeof _0x2ec129!==_0x237752(0x10d)||!_0x2ec129[_0x237752(0x14b)]()||Buffer[_0x237752(0xb0)](_0x2ec129)>MAX_CELL)throw new Error(_0x237752(0x134));if(_0x2c1e73[_0x237752(0x12b)](_0x2ec129))throw new Error(_0x237752(0x110)+_0x2ec129+'.');_0x2c1e73[_0x237752(0xea)](_0x2ec129,_0x386ed3);});const _0x3b3690=Object[_0x3fb5d6(0x172)](_0x40d3af[_0x3fb5d6(0x152)]);if(!_0x3b3690[_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xae));const _0xded2b7=new Map(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xe2)](_0x53c95e=>[_0x53c95e['code'],_0x53c95e]));if(_0xded2b7[_0x3fb5d6(0x9f)]!==_0x40d3af['fields'][_0x3fb5d6(0xd5)])throw new Error(_0x3fb5d6(0xc4));if(_0x40d3af[_0x3fb5d6(0xa8)][_0x3fb5d6(0xd4)](_0x37d406=>_0x37d406[_0x3fb5d6(0xac)][_0x3fb5d6(0x117)]()===_0x3fb5d6(0x17a)))throw new Error(_0x3fb5d6(0x14f));const _0x537f0f=new Set();for(const [_0x18b8a8,_0x30a3d1]of _0x3b3690){const _0x34d750=_0xded2b7[_0x3fb5d6(0x9c)](_0x30a3d1);if(!_0x2c1e73[_0x3fb5d6(0x12b)](_0x18b8a8))throw new Error(_0x3fb5d6(0x9b)+_0x18b8a8+'.');if(!_0x34d750||RESERVED['has'](_0x30a3d1)||_0x34d750[_0x3fb5d6(0x174)])throw new Error(_0x3fb5d6(0x99)+_0x30a3d1+'.');if(_0x537f0f[_0x3fb5d6(0x12b)](_0x30a3d1))throw new Error(_0x3fb5d6(0xee)+_0x30a3d1+'.');if(!TYPES[_0x3fb5d6(0x12b)](_0x34d750['type'][_0x3fb5d6(0x117)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x34d750[_0x3fb5d6(0xac)]+'.');_0x537f0f[_0x3fb5d6(0x118)](_0x30a3d1);}for(const _0x5bd920 of _0x40d3af[_0x3fb5d6(0xa8)]){if(_0x5bd920['required']&&!_0x5bd920[_0x3fb5d6(0x174)]&&!RESERVED['has'](_0x5bd920[_0x3fb5d6(0xa4)])&&!_0x537f0f['has'](_0x5bd920['code']))throw new Error(_0x3fb5d6(0xfe)+_0x5bd920[_0x3fb5d6(0xa4)]+'.');}const _0x566619={'fileHash':hash(_0x579f6a),'mappingHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x3b3690][_0x3fb5d6(0x184)](([_0x3da41a],[_0x54f8c1])=>_0x3da41a[_0x3fb5d6(0xa3)](_0x54f8c1)))),'schemaHash':hash(JSON[_0x3fb5d6(0x154)]([..._0x40d3af['fields']][_0x3fb5d6(0x184)]((_0x2a8952,_0x2b1745)=>_0x2a8952['code'][_0x3fb5d6(0xa3)](_0x2b1745[_0x3fb5d6(0xa4)])))),'sheet':_0xa4cd7f[_0x3fb5d6(0x11d)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x10aced=_0x3b3690[_0x3fb5d6(0xce)](([,_0x210832])=>isImageContainer(_0xded2b7[_0x3fb5d6(0x9c)](_0x210832)['type'])),_0xee7f53=_0x10aced[_0x3fb5d6(0xce)](([,_0x5361f6])=>_0xded2b7[_0x3fb5d6(0x9c)](_0x5361f6)[_0x3fb5d6(0xac)]['toLowerCase']()==='upload')[_0x3fb5d6(0xe2)](([,_0x2c5b42])=>_0x2c5b42);if(_0xee7f53[_0x3fb5d6(0xd5)])_0x566619['uploadFields']=_0xee7f53;const _0x4d4295=_0x343fa2?resolveWorksheetImages(_0x343fa2,_0xa4cd7f[_0x3fb5d6(0x11d)],new Set(_0x10aced['map'](([_0x69e00a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x69e00a)))):[],_0x7e428c=new Map();for(const _0x51ab5a of _0x4d4295){const _0x2acbed=_0x51ab5a[_0x3fb5d6(0xcf)]+':'+_0x51ab5a[_0x3fb5d6(0x11e)],_0xeed2d5=_0x7e428c[_0x3fb5d6(0x9c)](_0x2acbed)??[];_0xeed2d5['push'](_0x51ab5a),_0x7e428c[_0x3fb5d6(0xea)](_0x2acbed,_0xeed2d5);}const _0x39edb9=new Map();let _0x4119f2=0x0;_0x10aced['length']&&(_0x566619[_0x3fb5d6(0x115)]=_0x10aced['map'](([,_0x467d87])=>_0x467d87),_0x566619[_0x3fb5d6(0xbd)]=[],_0x566619[_0x3fb5d6(0xc3)]=0x1,_0x566619['media']=[]);const _0x3bda3b=Math[_0x3fb5d6(0x109)](0x0,..._0x4d4295['map'](_0x3390cb=>_0x3390cb[_0x3fb5d6(0xcf)]));let _0x3422ff=0x0;const _0x44137f=new Set(_0x3b3690[_0x3fb5d6(0xe2)](([_0x37410a])=>_0x2c1e73[_0x3fb5d6(0x9c)](_0x37410a)));for(let _0x4b4139=_0x2c2031+0x1;_0x4b4139<=Math[_0x3fb5d6(0x109)](_0xa4cd7f[_0x3fb5d6(0xfb)],_0x3bda3b);_0x4b4139++){const _0x4a4c22=_0xa4cd7f['getRow'](_0x4b4139);if(_0x4a4c22[_0x3fb5d6(0xc8)]||_0x4d4295['some'](_0x157f85=>_0x157f85['row']===_0x4b4139&&_0x157f85[_0x3fb5d6(0xba)]))_0x3422ff++;let _0x4de5c5=_0x4d4295[_0x3fb5d6(0xd4)](_0x76160a=>_0x76160a[_0x3fb5d6(0xcf)]===_0x4b4139);_0x4a4c22[_0x3fb5d6(0xc6)](_0x1e6b6b=>{const _0x1af776=_0x3fb5d6;if(_0x1e6b6b[_0x1af776(0xd0)]!==null&&_0x1e6b6b[_0x1af776(0xd0)]!==undefined&&_0x1e6b6b['value']!=='')_0x4de5c5=!![];});if(!_0x4de5c5){_0x566619['emptyRows']['push'](_0x4b4139);continue;}const _0x489198=Object[_0x3fb5d6(0x153)](null);_0x4a4c22[_0x3fb5d6(0xc6)]((_0x206467,_0x17798b)=>{const _0x25b3c3=_0x3fb5d6;if(_0x44137f[_0x25b3c3(0x12b)](_0x17798b))return;try{const _0x482589=valueOf(_0x206467);if(typeof _0x482589==='string'&&Buffer[_0x25b3c3(0xb0)](_0x482589,_0x25b3c3(0xa1))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x424c8a){_0x566619[_0x25b3c3(0xec)][_0x25b3c3(0xc9)]({'rowNumber':_0x4b4139,'field':_0x206467[_0x25b3c3(0x9a)],'message':_0x424c8a[_0x25b3c3(0x103)]});}});for(const [_0x2e6b0a,_0x56c9cd]of _0x3b3690){try{const _0x5e13dd=_0x4a4c22[_0x3fb5d6(0x164)](_0x2c1e73['get'](_0x2e6b0a)),_0x3e639f=_0xded2b7[_0x3fb5d6(0x9c)](_0x56c9cd);if(!isImageContainer(_0x3e639f[_0x3fb5d6(0xac)])){_0x489198[_0x56c9cd]=convert(valueOf(_0x5e13dd),_0x3e639f);continue;}const _0x407754=_0x7e428c[_0x3fb5d6(0x9c)](_0x4b4139+':'+_0x2c1e73[_0x3fb5d6(0x9c)](_0x2e6b0a))??[];if(_0x407754[_0x3fb5d6(0xd4)](_0x237055=>_0x237055[_0x3fb5d6(0x101)]))throw Error(_0x407754['find'](_0x4664ff=>_0x4664ff[_0x3fb5d6(0x101)])[_0x3fb5d6(0x101)]);if(_0x5e13dd[_0x3fb5d6(0xd0)]!=null&&_0x5e13dd['value']!==''&&!_0x407754[_0x3fb5d6(0xd4)](_0x53895e=>_0x53895e[_0x3fb5d6(0x143)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x4a128d=[];for(const _0x220d43 of _0x407754)for(const _0x56e9f9 of _0x220d43[_0x3fb5d6(0xdd)]){const _0x1189ca=_0x343fa2['get'](_0x56e9f9);if(!_0x1189ca)throw Error(_0x3fb5d6(0x171)+_0x56e9f9+'.');const _0x4755e6=hash(_0x1189ca),_0x10e19e=_0x39edb9['get'](_0x4755e6)??validateImageBytes(_0x1189ca);if(!_0x39edb9['has'](_0x10e19e[_0x3fb5d6(0xe6)])){_0x4119f2+=_0x10e19e[_0x3fb5d6(0x9f)];if(_0x4119f2>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x39edb9[_0x3fb5d6(0xea)](_0x10e19e[_0x3fb5d6(0xe6)],_0x10e19e);}_0x4a128d['push'](_0x10e19e[_0x3fb5d6(0xe6)]);}if(!_0x4a128d[_0x3fb5d6(0xd5)]&&_0x3e639f['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x4a128d[_0x3fb5d6(0xd5)])_0x566619[_0x3fb5d6(0xbd)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'hashes':_0x4a128d});_0x489198[_0x56c9cd]=_0x4a128d[_0x3fb5d6(0xe2)](_0x14e05d=>{const _0x3ffb96=_0x3fb5d6,_0x1eafe1=_0x39edb9[_0x3ffb96(0x9c)](_0x14e05d),_0x69f43c=_0x1eafe1['type']===_0x3ffb96(0x128)?_0x3ffb96(0x113):_0x1eafe1[_0x3ffb96(0xac)]['slice'](0x6),_0x5a8752=_0x14e05d+'.'+_0x69f43c,_0x7ff514='dataset-import/'+'0'[_0x3ffb96(0xd3)](0x40)+'/'+_0x5a8752;return _0x3e639f[_0x3ffb96(0xac)][_0x3ffb96(0x117)]()===_0x3ffb96(0x106)?{'fileName':_0x5a8752,'filePath':_0x7ff514}:{'key':_0x7ff514,'name':_0x5a8752,'type':_0x1eafe1[_0x3ffb96(0xac)],'size':_0x1eafe1[_0x3ffb96(0x9f)]};});}catch(_0x1bac1d){_0x566619[_0x3fb5d6(0xec)][_0x3fb5d6(0xc9)]({'rowNumber':_0x4b4139,'field':_0x56c9cd,'message':_0x1bac1d[_0x3fb5d6(0x103)]});}}_0x566619[_0x3fb5d6(0x17b)]['push']({'rowNumber':_0x4b4139,'values':_0x489198});}if(_0x566619[_0x3fb5d6(0xdd)])_0x566619['media']=[..._0x39edb9[_0x3fb5d6(0x12f)]()];if(_0x3422ff)_0x566619[_0x3fb5d6(0xb7)]['push'](_0x3422ff+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x566619;}function a144_0x5971(){const _0x54a4f3=['1965418nSGaLw','values','materialized','before','generalPurposeBitFlag','entryCount','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','10OvtnIj','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','readEntry','readUInt32LE','includes','test','extend','updateTime','datasetId','formula','fileComment','isInteger','224wKwRqo','bitFlag','nativeCell','number','equals','43932580HGyPYB','hex','cells','file','Duplicate\x20workbook\x20ZIP\x20entry.','trim','extname','processAttributes','readBigUInt64LE','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Requested\x20worksheet\x20does\x20not\x20exist.','opentag','mapping','create','stringify','Non-canonical\x20worksheet\x20ZIP\x20entry.','columnCount','getTime','unixPermissions','data','readUInt16LE','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','concat','top','isArray','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','charCodeAt','ranges','dir','extraFieldsLength','getCell','dataValidations','worksheets','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','resolve','getRow','Worksheet\x20coordinate\x20exceeds\x20','from','directory','appCode','text','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','9IyDEoE','Missing\x20image\x20media:\x20','entries','modifierName','generated','Invalid\x20dataset\x20field\x20extension\x20metadata.','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Invalid\x20worksheet\x20coordinate.','4307037lYNIoJ','sheet','serial_number','rows','right','doctype','original','relativeOffsetOfLocalHeader','headerRow','.xlsx','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','isSafeInteger','sort','parseClose','File\x20is\x20not\x20an\x20XLSX\x20workbook.','doType','Workbook','Unknown\x20or\x20generated\x20mapping\x20field:\x20','address','Unknown\x20Excel\x20header:\x20','get','parseOpen','fileNameRaw','size','min','utf8','close','localeCompare','code','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Expected\x20an\x20Excel\x20date\x20cell.','digest','fields','createTime','fileCommentRaw','XML\x20DTD/entities\x20are\x20not\x20supported.','type','extraFieldRaw','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','merges','byteLength','exceljs/lib/xlsx/xform/book/defined-name-xform.js','fileName','batchSize','dataset','definedName','write','warnings','end','creatorId','hiddenRow','handleUTF8','readEntryCursor','imageCells','Invalid\x20worksheet\x20XML:\x20','exec','image','deleted','required','parserVersion','Duplicate\x20dataset\x20field\x20codes.','entry','eachCell','externalFileAttributes','hidden','push','Invalid\x20ZIP\x20central\x20directory\x20layout.','Invalid\x20XLSX\x20archive.','decimal','startsWith','filter','row','value','closetag','Cell\x20exceeds\x2064\x20KB.','repeat','some','length','3695968nkcjzo','Worksheet\x20exceeds\x2016384\x20columns.','dataType','parseInt','fromBuffer','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','fileNameStr','media','Invalid\x20worksheet\x20merge\x20reference.','Unsupported\x20field\x20type:\x20','tenantCode','integer','map','destroy','Only\x20.xlsx\x20files\x20are\x20supported.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','contentHash','isFinite','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','slice','set','textarea','errors','Invalid\x20worksheet\x20nested\x20cell.','Duplicate\x20mapping\x20target:\x20','left','model','result','1071656gpNiZX','xl/workbook.xml','bottom','autoIncrement','Expected\x20a\x20boolean\x20cell.','./reader/readerFor','Worksheet\x20exceeds\x20','clear','Required\x20value\x20is\x20missing.','rowCount','abs','date','Required\x20field\x20is\x20not\x20mapped:\x20','parse','object','error','attributes','message','isBuffer','reference','upload','hyperlink','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','max','every','subarray','readExtraFields','string','Invalid\x20worksheet\x20XML.','_xlnm.Print_Titles','Duplicate\x20header:\x20','Invalid\x20worksheet\x20hyperlink\x20reference.','exceljs','jpg','split','imageFields','boolean','toLowerCase','add','936004LnwgeM','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','properties','versionMadeBy','name','col','./utf8','ref','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','datetime','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Invalid\x20worksheet\x20column\x20range.','sourceType','170214cBaeFG','Invalid\x20ZIP\x20local\x20file\x20header.','image/jpeg','find','mergeCell','has','isFile','./utils'];a144_0x5971=function(){return _0x54a4f3;};return a144_0x5971();}
@@ -1 +1 @@
1
- function a145_0xf6db(_0x2cacbc,_0x498b7e){_0x2cacbc=_0x2cacbc-0x87;const _0x54a7db=a145_0x54a7();let _0xf6db04=_0x54a7db[_0x2cacbc];return _0xf6db04;}(function(_0x5466db,_0x163456){const _0x50c3c7=a145_0xf6db,_0xbc9d8f=_0x5466db();while(!![]){try{const _0x34c15b=parseInt(_0x50c3c7(0xb8))/0x1*(parseInt(_0x50c3c7(0xaf))/0x2)+parseInt(_0x50c3c7(0xb7))/0x3+parseInt(_0x50c3c7(0x8c))/0x4+-parseInt(_0x50c3c7(0xb9))/0x5*(parseInt(_0x50c3c7(0x8b))/0x6)+parseInt(_0x50c3c7(0xa8))/0x7*(-parseInt(_0x50c3c7(0xc2))/0x8)+parseInt(_0x50c3c7(0x98))/0x9+-parseInt(_0x50c3c7(0x8f))/0xa;if(_0x34c15b===_0x163456)break;else _0xbc9d8f['push'](_0xbc9d8f['shift']());}catch(_0x407db9){_0xbc9d8f['push'](_0xbc9d8f['shift']());}}}(a145_0x54a7,0x753a6));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0x54a7(){const _0x419a6d=['Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','message','7779789yrslYa','Invalid\x20GIF\x20trailer.','decode','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','image/gif','Invalid\x20image:\x20','hex','Invalid\x20PNG\x20end.','Invalid\x20GIF\x20block.','includes','toString','Invalid\x20GIF\x20LZW\x20code\x20size.','readUInt16LE','ascii','IEND','395143GSmHuK','update','IDAT','Invalid\x20PNG\x20header.','omggif','Animated\x20PNG\x20is\x20not\x20supported.','GIF\x20frame\x20exceeds\x20canvas.','81820zmnDkt','pngjs','Truncated\x20PNG\x20data.','frameInfo','Invalid\x20PNG\x20decoded\x20scanline\x20size.','equals','height','acTL','1949151VcfxFz','11kDwXLK','65ThhZZV','width','GIF89a','Truncated\x20JPEG.','subarray','sync','Missing\x20PNG\x20data/end.','length','Missing\x20GIF\x20trailer.','88KSACrl','readUInt32BE','Truncated\x20PNG\x20chunk.','concat','jpeg-js','309300lHDjVm','3146456McLzDt','image/jpeg','from','9795070TyKKbD','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','GIF87a','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','max','Invalid\x20GIF\x20LZW\x20pixel\x20data.','ceil'];a145_0x54a7=function(){return _0x419a6d;};return a145_0x54a7();}function dimensions(_0x492466,_0xdf23f7){const _0x586cc6=a145_0xf6db;if(!Number[_0x586cc6(0x9c)](_0x492466)||!Number[_0x586cc6(0x9c)](_0xdf23f7)||_0x492466<0x1||_0xdf23f7<0x1||_0x492466*_0xdf23f7>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x4fc75d){const _0x19d38a=a145_0xf6db;let _0x3c2e7e=0xd,_0x1f4a4d=0x0,_0x4ac6f8=0x0;const _0x1b3447=_0x4fc75d['readUInt16LE'](0x6),_0x1fafb4=_0x4fc75d[_0x19d38a(0xa5)](0x8),_0x397f4d=_0x4fc75d[0xa]&0x80?0x1<<(_0x4fc75d[0xa]&0x7)+0x1:0x0,_0x226b06=_0x5ae2d9=>{if(_0x3c2e7e+_0x5ae2d9>_0x4fc75d['length'])throw Error('Truncated\x20GIF\x20data.');};_0x3c2e7e+=_0x397f4d*0x3,_0x226b06(0x0);const _0x2d5026=()=>{const _0x11df6b=_0x19d38a,_0x59db24=[];while(!![]){_0x226b06(0x1);const _0x9eabb4=_0x4fc75d[_0x3c2e7e++];if(!_0x9eabb4)break;_0x226b06(_0x9eabb4),_0x59db24['push'](_0x4fc75d[_0x11df6b(0xbd)](_0x3c2e7e,_0x3c2e7e+_0x9eabb4)),_0x3c2e7e+=_0x9eabb4;}return Buffer[_0x11df6b(0x89)](_0x59db24);};while(_0x3c2e7e<_0x4fc75d[_0x19d38a(0xc0)]){const _0x515dfa=_0x4fc75d[_0x3c2e7e++];if(_0x515dfa===0x3b){if(!_0x1f4a4d||_0x3c2e7e!==_0x4fc75d[_0x19d38a(0xc0)])throw Error(_0x19d38a(0x99));return;}if(_0x515dfa===0x21){_0x226b06(0x1),_0x3c2e7e++,_0x2d5026();continue;}if(_0x515dfa!==0x2c)throw Error(_0x19d38a(0xa1));_0x226b06(0x9);const _0x4b9ca1=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e),_0x4f8471=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x2),_0x4c887b=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x4),_0x936800=_0x4fc75d[_0x19d38a(0xa5)](_0x3c2e7e+0x6),_0x363303=_0x4fc75d[_0x3c2e7e+0x8];_0x3c2e7e+=0x9,dimensions(_0x4c887b,_0x936800);if(_0x4b9ca1+_0x4c887b>_0x1b3447||_0x4f8471+_0x936800>_0x1fafb4||++_0x1f4a4d>0x2710||(_0x4ac6f8+=_0x1b3447*_0x1fafb4)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x48993b=_0x363303&0x80?0x1<<(_0x363303&0x7)+0x1:_0x397f4d;if(!_0x48993b)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x363303&0x80&&(_0x226b06(_0x48993b*0x3),_0x3c2e7e+=_0x48993b*0x3);_0x226b06(0x1);const _0x2bf8e1=_0x4fc75d[_0x3c2e7e++];if(_0x2bf8e1<0x2||_0x2bf8e1>0x8)throw Error(_0x19d38a(0xa4));const _0x194ec5=_0x2d5026(),_0xea3e5c=0x1<<_0x2bf8e1,_0x556a29=_0xea3e5c+0x1;let _0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x255810=0x0,_0x495068=-0x1,_0x30c946=0x0,_0x5c36aa=![];const _0x30339c=new Uint32Array(0x1000),_0x4393f5=new Uint16Array(0x1000);for(let _0x1888d1=0x0;_0x1888d1<_0xea3e5c;_0x1888d1++){_0x30339c[_0x1888d1]=0x1,_0x4393f5[_0x1888d1]=_0x1888d1;}while(_0x255810+_0x427c3e<=_0x194ec5[_0x19d38a(0xc0)]*0x8){let _0x12c849=0x0;for(let _0x1d20a6=0x0;_0x1d20a6<_0x427c3e;_0x1d20a6++,_0x255810++)_0x12c849|=(_0x194ec5[_0x255810>>0x3]>>(_0x255810&0x7)&0x1)<<_0x1d20a6;if(_0x12c849===_0xea3e5c){_0x427c3e=_0x2bf8e1+0x1,_0x38a3a7=_0x556a29+0x1,_0x495068=-0x1;continue;}if(_0x12c849===_0x556a29){_0x5c36aa=!![];break;}if(_0x12c849>_0x38a3a7||_0x12c849===_0x38a3a7&&_0x495068<0x0||_0x495068<0x0&&_0x12c849>=_0xea3e5c)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1ec8ff=_0x12c849===_0x38a3a7?_0x30339c[_0x495068]+0x1:_0x30339c[_0x12c849],_0x457710=_0x12c849===_0x38a3a7?_0x4393f5[_0x495068]:_0x4393f5[_0x12c849];if(!_0x1ec8ff||_0x457710>=_0x48993b||(_0x30c946+=_0x1ec8ff)>_0x4c887b*_0x936800)throw Error(_0x19d38a(0x94));if(_0x495068>=0x0&&_0x38a3a7<0x1000){_0x30339c[_0x38a3a7]=_0x30339c[_0x495068]+0x1,_0x4393f5[_0x38a3a7]=Math[_0x19d38a(0x93)](_0x4393f5[_0x495068],_0x457710),_0x38a3a7++;if(_0x38a3a7===0x1<<_0x427c3e&&_0x427c3e<0xc)_0x427c3e++;}_0x495068=_0x12c849;}if(!_0x5c36aa||_0x30c946!==_0x4c887b*_0x936800)throw Error(_0x19d38a(0x92));}throw Error(_0x19d38a(0xc1));}export function validateImageBytes(_0x21d733){const _0x139d51=a145_0xf6db;if(!_0x21d733[_0x139d51(0xc0)]||_0x21d733[_0x139d51(0xc0)]>0xa*0x400*0x400)throw Error(_0x139d51(0x96));let _0x3b97c7;try{if(_0x21d733['subarray'](0x0,0x8)[_0x139d51(0xb4)](Buffer[_0x139d51(0x8e)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x21d733[_0x139d51(0xc0)]<0x21||_0x21d733[_0x139d51(0xa3)]('ascii',0xc,0x10)!=='IHDR')throw Error(_0x139d51(0xab));dimensions(_0x21d733['readUInt32BE'](0x10),_0x21d733[_0x139d51(0x87)](0x14));const _0x5f1807=_0x21d733[_0x139d51(0x87)](0x10),_0x1e7950=_0x21d733[_0x139d51(0x87)](0x14),_0x3b9a6e=_0x21d733[0x18],_0x5894e5=_0x21d733[0x19],_0x50fd8c=_0x21d733[0x1c],_0x596cb6={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x5894e5];if(!_0x596cb6||![0x1,0x2,0x4,0x8,0x10][_0x139d51(0xa2)](_0x3b9a6e)||_0x50fd8c>0x1)throw Error(_0x139d51(0x9b));const _0x22213d=_0x3ddd9a=>Math[_0x139d51(0x95)](_0x3ddd9a*_0x596cb6*_0x3b9a6e/0x8)+0x1;let _0x377471=_0x22213d(_0x5f1807)*_0x1e7950;if(_0x50fd8c){_0x377471=0x0;for(const [_0x264478,_0x241687,_0x3a447a,_0x1758ce]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0x1fd6d0=Math[_0x139d51(0x93)](0x0,Math[_0x139d51(0x95)]((_0x5f1807-_0x264478)/_0x3a447a)),_0x3febe1=Math['max'](0x0,Math[_0x139d51(0x95)]((_0x1e7950-_0x241687)/_0x1758ce));if(_0x1fd6d0&&_0x3febe1)_0x377471+=_0x22213d(_0x1fd6d0)*_0x3febe1;}}let _0x3bf85e=0x8,_0x36d7b6=![];const _0x5a2d34=[];while(_0x3bf85e<_0x21d733[_0x139d51(0xc0)]){if(_0x3bf85e+0xc>_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0x88));const _0x5383c0=_0x21d733[_0x139d51(0x87)](_0x3bf85e),_0x201d37=_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),_0x3bf85e+0x4,_0x3bf85e+0x8);if(_0x201d37===_0x139d51(0xb6))throw Error(_0x139d51(0xad));if(_0x3bf85e+_0x5383c0+0xc>_0x21d733['length'])throw Error(_0x139d51(0xb1));if(_0x201d37===_0x139d51(0xaa))_0x5a2d34['push'](_0x21d733[_0x139d51(0xbd)](_0x3bf85e+0x8,_0x3bf85e+0x8+_0x5383c0));_0x3bf85e+=_0x5383c0+0xc;if(_0x201d37===_0x139d51(0xa7)){if(_0x5383c0||_0x3bf85e!==_0x21d733[_0x139d51(0xc0)])throw Error(_0x139d51(0xa0));_0x36d7b6=!![];break;}}if(!_0x36d7b6||!_0x5a2d34[_0x139d51(0xc0)])throw Error(_0x139d51(0xbf));if(inflateSync(Buffer[_0x139d51(0x89)](_0x5a2d34),{'maxOutputLength':_0x377471+0x1})['length']!==_0x377471)throw Error(_0x139d51(0xb3));const {PNG:_0x38da8e}=require(_0x139d51(0xb0)),_0xa96440=_0x38da8e[_0x139d51(0xbe)]['read'](_0x21d733,{'checkCRC':!![]});dimensions(_0xa96440['width'],_0xa96440[_0x139d51(0xb5)]),_0x3b97c7='image/png';}else{if(_0x21d733[0x0]===0xff&&_0x21d733[0x1]===0xd8){if(_0x21d733['at'](-0x2)!==0xff||_0x21d733['at'](-0x1)!==0xd9)throw Error(_0x139d51(0xbc));const _0x45f26b=require(_0x139d51(0x8a)),_0x340376=_0x45f26b[_0x139d51(0x9a)](_0x21d733,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x340376[_0x139d51(0xba)],_0x340376['height']),_0x3b97c7=_0x139d51(0x8d);}else{if([_0x139d51(0x91),_0x139d51(0xbb)][_0x139d51(0xa2)](_0x21d733[_0x139d51(0xa3)](_0x139d51(0xa6),0x0,0x6))){if(_0x21d733[_0x139d51(0xc0)]<0xe||_0x21d733['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x21d733[_0x139d51(0xa5)](0x6),_0x21d733['readUInt16LE'](0x8)),validateGif(_0x21d733);const {GifReader:_0x11008c}=require(_0x139d51(0xac)),_0x1f9174=new _0x11008c(_0x21d733);dimensions(_0x1f9174[_0x139d51(0xba)],_0x1f9174['height']);const _0x34477f=_0x1f9174['numFrames']();if(!_0x34477f||_0x34477f>0x2710||_0x34477f*_0x1f9174['width']*_0x1f9174[_0x139d51(0xb5)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0xdd3500=new Uint8Array(_0x1f9174[_0x139d51(0xba)]*_0x1f9174[_0x139d51(0xb5)]*0x4);for(let _0x941957=0x0;_0x941957<_0x34477f;_0x941957++){const _0x52f1f5=_0x1f9174[_0x139d51(0xb2)](_0x941957);if(_0x52f1f5['x']+_0x52f1f5[_0x139d51(0xba)]>_0x1f9174[_0x139d51(0xba)]||_0x52f1f5['y']+_0x52f1f5[_0x139d51(0xb5)]>_0x1f9174['height'])throw Error(_0x139d51(0xae));_0x1f9174['decodeAndBlitFrameRGBA'](_0x941957,_0xdd3500);}_0x3b97c7=_0x139d51(0x9d);}else throw Error(_0x139d51(0x90));}}}catch(_0x89c8d5){throw Error(_0x139d51(0x9e)+_0x89c8d5[_0x139d51(0x97)]);}return{'contentHash':createHash('sha256')[_0x139d51(0xa9)](_0x21d733)['digest'](_0x139d51(0x9f)),'type':_0x3b97c7,'size':_0x21d733[_0x139d51(0xc0)],'bytes':_0x21d733};}
1
+ (function(_0x100827,_0x4d0897){const _0x5da7c9=a145_0x7d1d,_0x4ef076=_0x100827();while(!![]){try{const _0x14a895=-parseInt(_0x5da7c9(0x9b))/0x1*(-parseInt(_0x5da7c9(0x87))/0x2)+parseInt(_0x5da7c9(0x71))/0x3*(-parseInt(_0x5da7c9(0x83))/0x4)+parseInt(_0x5da7c9(0x89))/0x5+parseInt(_0x5da7c9(0x91))/0x6*(parseInt(_0x5da7c9(0x76))/0x7)+-parseInt(_0x5da7c9(0x98))/0x8+parseInt(_0x5da7c9(0x9f))/0x9*(parseInt(_0x5da7c9(0x66))/0xa)+-parseInt(_0x5da7c9(0x6c))/0xb;if(_0x14a895===_0x4d0897)break;else _0x4ef076['push'](_0x4ef076['shift']());}catch(_0x58d614){_0x4ef076['push'](_0x4ef076['shift']());}}}(a145_0x2a8d,0xea03d));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a145_0x7d1d(_0x28accd,_0x484627){_0x28accd=_0x28accd-0x66;const _0x2a8db7=a145_0x2a8d();let _0x7d1d24=_0x2a8db7[_0x28accd];return _0x7d1d24;}function a145_0x2a8d(){const _0x5072d9=['Invalid\x20PNG\x20decoded\x20scanline\x20size.','Invalid\x20GIF\x20LZW\x20code\x20size.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','image/png','includes','isSafeInteger','update','subarray','Invalid\x20PNG\x20end.','readUInt32BE','Missing\x20PNG\x20data/end.','52244ObDCKX','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','height','digest','1025390jXsIwE','omggif','4943640zBqbHA','Truncated\x20PNG\x20chunk.','Invalid\x20GIF\x20LZW\x20pixel\x20data.','decodeAndBlitFrameRGBA','push','Truncated\x20PNG\x20data.','pngjs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','336FoUeqF','ceil','toString','length','ascii','max','Truncated\x20GIF\x20data.','5155352DrSbNO','GIF\x20frame\x20exceeds\x20canvas.','sha256','3HklJCs','from','concat','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','14561946pYzhxX','Missing\x20GIF\x20trailer.','image/gif','10zbrzOa','numFrames','GIF\x20image\x20has\x20no\x20palette.','hex','IDAT','read','31093898YOyjYL','Invalid\x20GIF\x20trailer.','IHDR','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','327YKtDZW','Truncated\x20JPEG.','Invalid\x20PNG\x20color/depth/interlace.','equals','readUInt16LE','213563InSIwJ','width'];a145_0x2a8d=function(){return _0x5072d9;};return a145_0x2a8d();}import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0xf8482c,_0x901e7b){const _0x461cee=a145_0x7d1d;if(!Number['isSafeInteger'](_0xf8482c)||!Number[_0x461cee(0x7d)](_0x901e7b)||_0xf8482c<0x1||_0x901e7b<0x1||_0xf8482c*_0x901e7b>MAX_PIXELS)throw Error(_0x461cee(0x84));}function validateGif(_0x46a5a9){const _0x5614e1=a145_0x7d1d;let _0x410090=0xd,_0x30647f=0x0,_0x37eab6=0x0;const _0x2f6cc6=_0x46a5a9[_0x5614e1(0x75)](0x6),_0x5cc0c0=_0x46a5a9[_0x5614e1(0x75)](0x8),_0x227333=_0x46a5a9[0xa]&0x80?0x1<<(_0x46a5a9[0xa]&0x7)+0x1:0x0,_0x518e25=_0x5d38e6=>{const _0x29af1b=_0x5614e1;if(_0x410090+_0x5d38e6>_0x46a5a9[_0x29af1b(0x94)])throw Error(_0x29af1b(0x97));};_0x410090+=_0x227333*0x3,_0x518e25(0x0);const _0x120b93=()=>{const _0x12cd7f=_0x5614e1,_0x574707=[];while(!![]){_0x518e25(0x1);const _0x233d5=_0x46a5a9[_0x410090++];if(!_0x233d5)break;_0x518e25(_0x233d5),_0x574707[_0x12cd7f(0x8d)](_0x46a5a9[_0x12cd7f(0x7f)](_0x410090,_0x410090+_0x233d5)),_0x410090+=_0x233d5;}return Buffer[_0x12cd7f(0x9d)](_0x574707);};while(_0x410090<_0x46a5a9[_0x5614e1(0x94)]){const _0x3dccc8=_0x46a5a9[_0x410090++];if(_0x3dccc8===0x3b){if(!_0x30647f||_0x410090!==_0x46a5a9[_0x5614e1(0x94)])throw Error(_0x5614e1(0x6d));return;}if(_0x3dccc8===0x21){_0x518e25(0x1),_0x410090++,_0x120b93();continue;}if(_0x3dccc8!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x518e25(0x9);const _0x2516cb=_0x46a5a9[_0x5614e1(0x75)](_0x410090),_0x45235b=_0x46a5a9['readUInt16LE'](_0x410090+0x2),_0xcf1e95=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x4),_0x458d49=_0x46a5a9[_0x5614e1(0x75)](_0x410090+0x6),_0x8e4f87=_0x46a5a9[_0x410090+0x8];_0x410090+=0x9,dimensions(_0xcf1e95,_0x458d49);if(_0x2516cb+_0xcf1e95>_0x2f6cc6||_0x45235b+_0x458d49>_0x5cc0c0||++_0x30647f>0x2710||(_0x37eab6+=_0x2f6cc6*_0x5cc0c0)>MAX_PIXELS)throw Error(_0x5614e1(0x9e));const _0x2293a2=_0x8e4f87&0x80?0x1<<(_0x8e4f87&0x7)+0x1:_0x227333;if(!_0x2293a2)throw Error(_0x5614e1(0x68));_0x8e4f87&0x80&&(_0x518e25(_0x2293a2*0x3),_0x410090+=_0x2293a2*0x3);_0x518e25(0x1);const _0x53bc47=_0x46a5a9[_0x410090++];if(_0x53bc47<0x2||_0x53bc47>0x8)throw Error(_0x5614e1(0x79));const _0x399289=_0x120b93(),_0x4dbe2b=0x1<<_0x53bc47,_0x46fa44=_0x4dbe2b+0x1;let _0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x2bc0bd=0x0,_0x5ca783=-0x1,_0x2f16dc=0x0,_0x205f4d=![];const _0x505fed=new Uint32Array(0x1000),_0x4a4f34=new Uint16Array(0x1000);for(let _0x12897d=0x0;_0x12897d<_0x4dbe2b;_0x12897d++){_0x505fed[_0x12897d]=0x1,_0x4a4f34[_0x12897d]=_0x12897d;}while(_0x2bc0bd+_0x21877f<=_0x399289['length']*0x8){let _0x21ca46=0x0;for(let _0x89434b=0x0;_0x89434b<_0x21877f;_0x89434b++,_0x2bc0bd++)_0x21ca46|=(_0x399289[_0x2bc0bd>>0x3]>>(_0x2bc0bd&0x7)&0x1)<<_0x89434b;if(_0x21ca46===_0x4dbe2b){_0x21877f=_0x53bc47+0x1,_0x4a34be=_0x46fa44+0x1,_0x5ca783=-0x1;continue;}if(_0x21ca46===_0x46fa44){_0x205f4d=!![];break;}if(_0x21ca46>_0x4a34be||_0x21ca46===_0x4a34be&&_0x5ca783<0x0||_0x5ca783<0x0&&_0x21ca46>=_0x4dbe2b)throw Error(_0x5614e1(0x70));const _0x19dd86=_0x21ca46===_0x4a34be?_0x505fed[_0x5ca783]+0x1:_0x505fed[_0x21ca46],_0x3a6f0f=_0x21ca46===_0x4a34be?_0x4a4f34[_0x5ca783]:_0x4a4f34[_0x21ca46];if(!_0x19dd86||_0x3a6f0f>=_0x2293a2||(_0x2f16dc+=_0x19dd86)>_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x8b));if(_0x5ca783>=0x0&&_0x4a34be<0x1000){_0x505fed[_0x4a34be]=_0x505fed[_0x5ca783]+0x1,_0x4a4f34[_0x4a34be]=Math[_0x5614e1(0x96)](_0x4a4f34[_0x5ca783],_0x3a6f0f),_0x4a34be++;if(_0x4a34be===0x1<<_0x21877f&&_0x21877f<0xc)_0x21877f++;}_0x5ca783=_0x21ca46;}if(!_0x205f4d||_0x2f16dc!==_0xcf1e95*_0x458d49)throw Error(_0x5614e1(0x90));}throw Error(_0x5614e1(0xa0));}export function validateImageBytes(_0x237e6b){const _0x4f664c=a145_0x7d1d;if(!_0x237e6b[_0x4f664c(0x94)]||_0x237e6b['length']>0xa*0x400*0x400)throw Error(_0x4f664c(0x7a));let _0x4c2de6;try{if(_0x237e6b['subarray'](0x0,0x8)[_0x4f664c(0x74)](Buffer[_0x4f664c(0x9c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x237e6b[_0x4f664c(0x94)]<0x21||_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0xc,0x10)!==_0x4f664c(0x6e))throw Error('Invalid\x20PNG\x20header.');dimensions(_0x237e6b['readUInt32BE'](0x10),_0x237e6b[_0x4f664c(0x81)](0x14));const _0xb934c5=_0x237e6b[_0x4f664c(0x81)](0x10),_0x47c00d=_0x237e6b['readUInt32BE'](0x14),_0x47ef4d=_0x237e6b[0x18],_0x400a49=_0x237e6b[0x19],_0x15afbe=_0x237e6b[0x1c],_0x37fe86={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x400a49];if(!_0x37fe86||![0x1,0x2,0x4,0x8,0x10][_0x4f664c(0x7c)](_0x47ef4d)||_0x15afbe>0x1)throw Error(_0x4f664c(0x73));const _0x5171f0=_0x236a2c=>Math[_0x4f664c(0x92)](_0x236a2c*_0x37fe86*_0x47ef4d/0x8)+0x1;let _0x404c16=_0x5171f0(_0xb934c5)*_0x47c00d;if(_0x15afbe){_0x404c16=0x0;for(const [_0x3bc029,_0x1f8b65,_0x5cc3ed,_0x18a6b6]of[[0x0,0x0,0x8,0x8],[0x4,0x0,0x8,0x8],[0x0,0x4,0x4,0x8],[0x2,0x0,0x4,0x4],[0x0,0x2,0x2,0x4],[0x1,0x0,0x2,0x2],[0x0,0x1,0x1,0x2]]){const _0xb0a52=Math[_0x4f664c(0x96)](0x0,Math[_0x4f664c(0x92)]((_0xb934c5-_0x3bc029)/_0x5cc3ed)),_0x319668=Math[_0x4f664c(0x96)](0x0,Math['ceil']((_0x47c00d-_0x1f8b65)/_0x18a6b6));if(_0xb0a52&&_0x319668)_0x404c16+=_0x5171f0(_0xb0a52)*_0x319668;}}let _0x5e1f3b=0x8,_0x3c88eb=![];const _0x2f13d3=[];while(_0x5e1f3b<_0x237e6b[_0x4f664c(0x94)]){if(_0x5e1f3b+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8a));const _0x52ea8d=_0x237e6b[_0x4f664c(0x81)](_0x5e1f3b),_0x4270da=_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),_0x5e1f3b+0x4,_0x5e1f3b+0x8);if(_0x4270da==='acTL')throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x5e1f3b+_0x52ea8d+0xc>_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x8e));if(_0x4270da===_0x4f664c(0x6a))_0x2f13d3['push'](_0x237e6b['subarray'](_0x5e1f3b+0x8,_0x5e1f3b+0x8+_0x52ea8d));_0x5e1f3b+=_0x52ea8d+0xc;if(_0x4270da==='IEND'){if(_0x52ea8d||_0x5e1f3b!==_0x237e6b[_0x4f664c(0x94)])throw Error(_0x4f664c(0x80));_0x3c88eb=!![];break;}}if(!_0x3c88eb||!_0x2f13d3[_0x4f664c(0x94)])throw Error(_0x4f664c(0x82));if(inflateSync(Buffer['concat'](_0x2f13d3),{'maxOutputLength':_0x404c16+0x1})[_0x4f664c(0x94)]!==_0x404c16)throw Error(_0x4f664c(0x78));const {PNG:_0x16ca86}=require(_0x4f664c(0x8f)),_0x20ece4=_0x16ca86['sync'][_0x4f664c(0x6b)](_0x237e6b,{'checkCRC':!![]});dimensions(_0x20ece4[_0x4f664c(0x77)],_0x20ece4[_0x4f664c(0x85)]),_0x4c2de6=_0x4f664c(0x7b);}else{if(_0x237e6b[0x0]===0xff&&_0x237e6b[0x1]===0xd8){if(_0x237e6b['at'](-0x2)!==0xff||_0x237e6b['at'](-0x1)!==0xd9)throw Error(_0x4f664c(0x72));const _0x539a46=require('jpeg-js'),_0x5061cf=_0x539a46['decode'](_0x237e6b,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5061cf['width'],_0x5061cf[_0x4f664c(0x85)]),_0x4c2de6='image/jpeg';}else{if(['GIF87a','GIF89a'][_0x4f664c(0x7c)](_0x237e6b[_0x4f664c(0x93)](_0x4f664c(0x95),0x0,0x6))){if(_0x237e6b[_0x4f664c(0x94)]<0xe||_0x237e6b['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x237e6b[_0x4f664c(0x75)](0x6),_0x237e6b[_0x4f664c(0x75)](0x8)),validateGif(_0x237e6b);const {GifReader:_0x466a60}=require(_0x4f664c(0x88)),_0x550588=new _0x466a60(_0x237e6b);dimensions(_0x550588['width'],_0x550588[_0x4f664c(0x85)]);const _0x4cc58a=_0x550588[_0x4f664c(0x67)]();if(!_0x4cc58a||_0x4cc58a>0x2710||_0x4cc58a*_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]>MAX_PIXELS)throw Error(_0x4f664c(0x9e));const _0x4211a0=new Uint8Array(_0x550588[_0x4f664c(0x77)]*_0x550588[_0x4f664c(0x85)]*0x4);for(let _0x24c3f1=0x0;_0x24c3f1<_0x4cc58a;_0x24c3f1++){const _0x5f08bb=_0x550588[_0x4f664c(0x6f)](_0x24c3f1);if(_0x5f08bb['x']+_0x5f08bb[_0x4f664c(0x77)]>_0x550588['width']||_0x5f08bb['y']+_0x5f08bb[_0x4f664c(0x85)]>_0x550588[_0x4f664c(0x85)])throw Error(_0x4f664c(0x99));_0x550588[_0x4f664c(0x8c)](_0x24c3f1,_0x4211a0);}_0x4c2de6=_0x4f664c(0xa1);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x2a6b70){throw Error('Invalid\x20image:\x20'+_0x2a6b70['message']);}return{'contentHash':createHash(_0x4f664c(0x9a))[_0x4f664c(0x7e)](_0x237e6b)[_0x4f664c(0x86)](_0x4f664c(0x69)),'type':_0x4c2de6,'size':_0x237e6b['length'],'bytes':_0x237e6b};}
@@ -1 +1 @@
1
- const a146_0x353b79=a146_0x2f92;(function(_0x2a6571,_0x1e1eaa){const _0x104bb8=a146_0x2f92,_0x16052e=_0x2a6571();while(!![]){try{const _0x3a505e=parseInt(_0x104bb8(0x165))/0x1+parseInt(_0x104bb8(0x103))/0x2+parseInt(_0x104bb8(0x14a))/0x3*(parseInt(_0x104bb8(0x146))/0x4)+parseInt(_0x104bb8(0x13f))/0x5+parseInt(_0x104bb8(0x130))/0x6+parseInt(_0x104bb8(0xfa))/0x7+-parseInt(_0x104bb8(0x120))/0x8*(parseInt(_0x104bb8(0x16f))/0x9);if(_0x3a505e===_0x1e1eaa)break;else _0x16052e['push'](_0x16052e['shift']());}catch(_0x58e471){_0x16052e['push'](_0x16052e['shift']());}}}(a146_0x4775,0x7c6b4));import a146_0x2b391c from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x353b79(0x136),a146_0x353b79(0xe5)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x353b79(0x176)],DRAWING_MAIN=[a146_0x353b79(0x10d),a146_0x353b79(0xd0)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a146_0x353b79(0xd8)],RICH=[a146_0x353b79(0x172)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a146_0x353b79(0x12a)],DEFAULT_NS=Object[a146_0x353b79(0x118)]([...[a146_0x353b79(0xfb),a146_0x353b79(0xd4),a146_0x353b79(0x14e),'worksheet',a146_0x353b79(0x153),a146_0x353b79(0x11c),'c','f','v',a146_0x353b79(0x116),a146_0x353b79(0xe9),a146_0x353b79(0x14f),'metadataTypes',a146_0x353b79(0x115),a146_0x353b79(0xfe),a146_0x353b79(0x12e),'bk','rc',a146_0x353b79(0x13a)][a146_0x353b79(0x13b)](_0x5192cc=>[_0x5192cc,SHEET]),...['wsDr','oneCellAnchor',a146_0x353b79(0x17e),a146_0x353b79(0x168),a146_0x353b79(0xe1),'to',a146_0x353b79(0x145),a146_0x353b79(0x17b),a146_0x353b79(0xfc),'ext',a146_0x353b79(0x10b),a146_0x353b79(0xd6),a146_0x353b79(0x144),a146_0x353b79(0x164)][a146_0x353b79(0x13b)](_0x1fcaaa=>[_0x1fcaaa,DRAWING]),...[a146_0x353b79(0x11b),'rvData','rv',a146_0x353b79(0x125),'s','k'][a146_0x353b79(0x13b)](_0x56804a=>[_0x56804a,RICH]),[a146_0x353b79(0x16c),DRAWING_MAIN],[a146_0x353b79(0x156),RICH_RELS],[a146_0x353b79(0xea),RICH_RELS],[a146_0x353b79(0x12f),PACKAGE],[a146_0x353b79(0x162),PACKAGE],[a146_0x353b79(0xff),WPS],['cellImage',WPS]]),matches=(_0xd8b9e6,_0x514c79,_0x23cadf=DEFAULT_NS[_0x514c79]??[])=>_0xd8b9e6[a146_0x353b79(0x131)]===_0x514c79&&_0x23cadf[a146_0x353b79(0x14d)](_0xd8b9e6[a146_0x353b79(0x13d)]),children=(_0x529a54,_0x3c49b8,_0x5e7e0b=DEFAULT_NS[_0x3c49b8])=>_0x529a54[a146_0x353b79(0xeb)][a146_0x353b79(0x16b)](_0x1ba5b7=>matches(_0x1ba5b7,_0x3c49b8,_0x5e7e0b)),chain=(_0x424695,..._0x266cc6)=>_0x266cc6[a146_0x353b79(0x110)]((_0x5c00e1,_0x3a9bb3)=>_0x5c00e1['flatMap'](_0x59f6e1=>children(_0x59f6e1,_0x3a9bb3)),[_0x424695]),relationshipTypes=_0x15f2be=>{const _0xd94bfc=a146_0x353b79;if([_0xd94bfc(0x147),_0xd94bfc(0xdb)][_0xd94bfc(0x14d)](_0x15f2be))return[_0xd94bfc(0x155)+_0x15f2be];if(_0x15f2be==='richValueRel')return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x15f2be===_0xd94bfc(0x150)||_0x15f2be===_0xd94bfc(0xff))return[_0xd94bfc(0x113)+_0x15f2be];return OFFICE_RELS['map'](_0x346a79=>_0x346a79+'/'+_0x15f2be);};function one(_0x2aed41,_0x1b6e70){const _0x59a203=a146_0x353b79;if(_0x2aed41[_0x59a203(0x171)]!==0x1)throw Error(_0x59a203(0xf5)+_0x1b6e70+'.');return _0x2aed41[0x0];}function integer(_0x386bb8,_0x6bec6d,_0x13923c=0x186a0){const _0x690198=a146_0x353b79;if(!_0x386bb8||!/^\d+$/['test'](_0x386bb8)||!Number['isSafeInteger'](Number(_0x386bb8))||Number(_0x386bb8)>_0x13923c)throw Error(_0x690198(0x163)+_0x6bec6d+'.');return Number(_0x386bb8);}function a146_0x4775(){const _0x4323d5=['Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Unsupported\x20metadata\x20namespace.','rvb','row','Ambiguous\x20XML\x20attribute.','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','charCodeAt','16DBLKyM','has','xl/workbook.xml','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','sheetMetadata','rvStructures','Shared\x20image\x20formulas\x20are\x20not\x20supported.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','#VALUE!','http://www.wps.cn/officeDocument/2017/etCustomData','set','MAX_SAFE_INTEGER','Missing\x20XLSX\x20part:\x20','valueMetadata','Relationships','661140ztLjBE','name','r:id','future\x20metadata\x20index','XML\x20DTD/entities\x20are\x20not\x20supported.','image\x20formula','http://schemas.openxmlformats.org/spreadsheetml/2006/main','rich\x20value\x20binding','attrs','Image\x20XML\x20node\x20budget\x20exceeded.','extLst','map','shared','uri','add','3221890rIidmB','image\x20cell\x20row','value\x20metadata\x20index','posix','Internal','cNvPr','col','16jofSIB','rdRichValue','join','Missing\x20local\x20image\x20identifier\x20value.','379047AJXNpD','round','.rels','includes','sheet','metadata','cellImage','Unsupported\x20rich\x20image\x20relation\x20namespace.','Unsupported\x20drawing\x20image.','sheetData','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','http://schemas.microsoft.com/office/2017/06/relationships/','richValueRels','error','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','doctype','defaultRowHeight','Unsupported\x20workbook\x20namespace.','_rvRel:LocalImageIdentifier','image\x20height','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','anchor\x20start\x20offset','anchor\x20start','flatMap','Relationship','Invalid\x20','blipFill','644778xrGrDr','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','test','absoluteAnchor','rich\x20structure\x20index','metadata\x20types','filter','blip','wsDr','pop','11494863OAbliL','r:embed','length','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','Value\x20metadata\x20index\x20must\x20be\x20one-based.','../','closetag','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','local','push','get','write','colOff','Missing\x20rich\x20image\x20relationship.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','twoCellAnchor','value','_rels','anchor\x20column','http://purl.oclc.org/ooxml/drawingml/main','Invalid\x20relationship\x20target:\x20','_localImage','\x20relationship\x20in\x20','sheets','metadata\x20type\x20index','nvPicPr','exec','http://schemas.openxmlformats.org/package/2006/relationships','r:link','XLRICHVALUE','rdRichValueStructure','image','utf8','replace','xl/cellimages.xml','opentag','from','slice','rich\x20value\x20index','worksheet','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20rich\x20value\x20namespace.','normalize','text','drawing','rel','children','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','anchor\x20end','toLowerCase','External\x20image\x20links\x20are\x20not\x20supported.','WPS\x20image\x20blip','Duplicate\x20mapped\x20image\x20cell.','basename','Unsupported\x20relationship\x20namespace\x20in\x20','Unsupported\x20rich\x20structure\x20namespace.','Missing\x20or\x20ambiguous\x20','anchor\x20row','isFinite','Relationship\x20target\x20escapes\x20workbook:\x20','toString','6533772GdWWqF','workbook','rowOff','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','futureMetadata','cellImages','type','xl/','Missing\x20rich\x20value.','451792CYsDIv','Unsupported\x20worksheet\x20namespace.','some','rich\x20image\x20relationship\x20index','oneCellAnchor','richValueRel','Missing\x20WPS\x20image\x20ID:\x20','/xl/cellimages.xml','pic','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','http://schemas.openxmlformats.org/drawingml/2006/main','rich\x20metadata\x20record','image\x20row\x20height\x20coordinate','reduce','startsWith','hidden\x20image\x20row','http://www.wps.cn/officeDocument/2017/relationships/','ext','metadataType','sheetFormatPr','dirname','fromEntries'];a146_0x4775=function(){return _0x4323d5;};return a146_0x4775();}function a146_0x2f92(_0x38693b,_0x44d73b){_0x38693b=_0x38693b-0xd0;const _0x47756d=a146_0x4775();let _0x2f9252=_0x47756d[_0x38693b];return _0x2f9252;}export function resolveWorksheetImages(_0xb82792,_0x20332c,_0x46aa0f){const _0x4439d3=a146_0x353b79;let _0x5f4d93=0x0,_0x1d7a9e=0x0,_0x448b9d=0x0;const _0x52142c=new Map(),_0x565ec7=_0x569df7=>{const _0x4fc0ed=a146_0x2f92;if(_0x52142c[_0x4fc0ed(0x121)](_0x569df7))return _0x52142c[_0x4fc0ed(0x179)](_0x569df7);const _0x547de4=_0xb82792[_0x4fc0ed(0x179)](_0x569df7);if(!_0x547de4)throw Error(_0x4fc0ed(0x12d)+_0x569df7+'.');const _0x4ef1f0={'name':'','uri':'','attrs':{},'children':[],'text':''},_0xe7bb59=[_0x4ef1f0],_0x1da35f=new SaxesParser({'xmlns':!![]}),_0x1fb083=()=>{if(++_0x1d7a9e>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x1da35f['on'](_0x4fc0ed(0x159),()=>{const _0x14cd49=_0x4fc0ed;throw Error(_0x14cd49(0x134));}),_0x1da35f['on'](_0x4fc0ed(0xe0),_0x150202=>{const _0x115986=_0x4fc0ed;_0x1fb083();if(++_0x5f4d93>0x7a120||_0xe7bb59[_0x115986(0x171)]>0x40)throw Error(_0x115986(0x139));const _0x160217={};for(const _0x339941 of Object['values'](_0x150202['attributes'])){const _0x5c7c5f=OFFICE_RELS[_0x115986(0x14d)](_0x339941[_0x115986(0x13d)])?'r:'+_0x339941['local']:_0x339941[_0x115986(0x13d)]?'{'+_0x339941[_0x115986(0x13d)]+'}'+_0x339941[_0x115986(0x177)]:_0x339941['local'];if(_0x5c7c5f in _0x160217)throw Error(_0x115986(0x11d));_0x160217[_0x5c7c5f]=_0x339941[_0x115986(0x17f)];}const _0x4721c6={'name':_0x150202[_0x115986(0x177)],'uri':_0x150202[_0x115986(0x13d)],'attrs':_0x160217,'children':[],'text':''};_0xe7bb59['at'](-0x1)[_0x115986(0xeb)][_0x115986(0x178)](_0x4721c6),_0xe7bb59[_0x115986(0x178)](_0x4721c6);}),_0x1da35f['on'](_0x4fc0ed(0xe8),_0x3a465c=>{const _0x4d9e32=_0x4fc0ed;_0x1fb083();const _0x35b4d9=_0xe7bb59['at'](-0x1);_0x35b4d9['text']+=_0x3a465c;if(_0x35b4d9[_0x4d9e32(0xe8)][_0x4d9e32(0x171)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x1da35f['on'](_0x4fc0ed(0x175),()=>{const _0x334488=_0x4fc0ed;_0x1fb083(),_0xe7bb59[_0x334488(0x16e)]();}),_0x1da35f['on'](_0x4fc0ed(0x157),_0x10dfa7=>{throw _0x10dfa7;}),_0x1da35f[_0x4fc0ed(0x17a)](_0x547de4[_0x4fc0ed(0xf9)](_0x4fc0ed(0xdd)))['close']();const _0x38d068=one(_0x4ef1f0['children'],_0x569df7);return _0x52142c[_0x4fc0ed(0x12b)](_0x569df7,_0x38d068),_0x38d068;},_0x1c1b97=new Map(),_0x5a7048=_0x1097eb=>{const _0x64e5ec=a146_0x2f92;if(_0x1c1b97[_0x64e5ec(0x121)](_0x1097eb))return _0x1c1b97[_0x64e5ec(0x179)](_0x1097eb);const _0x304ed1=a146_0x2b391c['posix'][_0x64e5ec(0x148)](a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0x117)](_0x1097eb),_0x64e5ec(0x180),a146_0x2b391c[_0x64e5ec(0x142)][_0x64e5ec(0xf2)](_0x1097eb)+_0x64e5ec(0x14c));if(!_0xb82792[_0x64e5ec(0x121)](_0x304ed1))return[];const _0x3326cb=new Set(),_0x217ad7=_0x565ec7(_0x304ed1);if(!matches(_0x217ad7,_0x64e5ec(0x12f)))throw Error(_0x64e5ec(0xf3)+_0x304ed1+'.');const _0x2f9910=children(_0x217ad7,_0x64e5ec(0x162))[_0x64e5ec(0x13b)](_0x5baa70=>{const _0x24ebde=_0x64e5ec,{Id:_0x3b5f59,Type:_0x3f364a,Target:_0x326832,TargetMode:_0x367dc9}=_0x5baa70[_0x24ebde(0x138)];if(!_0x3b5f59||_0x3326cb[_0x24ebde(0x121)](_0x3b5f59)||!_0x3f364a)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x304ed1+'.');return _0x3326cb[_0x24ebde(0x13e)](_0x3b5f59),{'id':_0x3b5f59,'type':_0x3f364a,'target':_0x326832??'','mode':_0x367dc9};});return _0x1c1b97['set'](_0x1097eb,_0x2f9910),_0x2f9910;},_0x428b50=(_0x1dc3e5,_0x40f07e)=>{const _0x9d20f1=a146_0x2f92,{target:_0x15c725,mode:_0x27fdf8}=_0x40f07e;if(_0x27fdf8&&_0x27fdf8!==_0x9d20f1(0x143))throw Error(_0x9d20f1(0xec)+_0x1dc3e5+'.');if(!_0x15c725||_0x15c725['includes']('\x5c')||/[?#%\x00-\x20]/[_0x9d20f1(0x167)](_0x15c725)||/^[a-z][a-z0-9+.-]*:/i[_0x9d20f1(0x167)](_0x15c725)||_0x15c725[_0x9d20f1(0x111)]('//'))throw Error(_0x9d20f1(0xd1)+_0x1dc3e5+'.');const _0x4c5275=_0x15c725[_0x9d20f1(0x111)]('/')?_0x15c725[_0x9d20f1(0xe2)](0x1):a146_0x2b391c['posix'][_0x9d20f1(0xe7)](a146_0x2b391c['posix'][_0x9d20f1(0x148)](a146_0x2b391c[_0x9d20f1(0x142)][_0x9d20f1(0x117)](_0x1dc3e5),_0x15c725));if(_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x174))||_0x4c5275==='..'||!_0x4c5275[_0x9d20f1(0x111)](_0x9d20f1(0x101)))throw Error(_0x9d20f1(0xf8)+_0x1dc3e5+'.');return _0x4c5275;},_0x1ca1ca=(_0x2d88f7,_0x473c47,_0x2fd857)=>{const _0xf57da8=a146_0x2f92,_0x5dd9b5=_0x5a7048(_0x2d88f7)[_0xf57da8(0x16b)](_0x1eda32=>_0x1eda32['id']===_0x473c47&&relationshipTypes(_0x2fd857)['includes'](_0x1eda32[_0xf57da8(0x100)]));if(_0x5dd9b5[_0xf57da8(0x171)]!==0x1)throw Error(_0xf57da8(0xf5)+_0x2fd857+_0xf57da8(0xd3)+_0x2d88f7+'.');return _0x428b50(_0x2d88f7,_0x5dd9b5[0x0]);},_0x177f52=(_0x595d93,_0x1f3d74)=>{const _0x196aaa=a146_0x2f92,_0x31ed54=_0x5a7048(_0x595d93)[_0x196aaa(0x16b)](_0x1df4c0=>relationshipTypes(_0x1f3d74)[_0x196aaa(0x14d)](_0x1df4c0[_0x196aaa(0x100)]));if(_0x31ed54[_0x196aaa(0x171)]!==0x1)throw Error(_0x196aaa(0xf5)+_0x1f3d74+'\x20relationship\x20in\x20'+_0x595d93+'.');return _0x428b50(_0x595d93,_0x31ed54[0x0]);},_0x1db33f=_0x4439d3(0x122),_0x1c1107=_0x565ec7(_0x1db33f);if(!matches(_0x1c1107,'workbook'))throw Error(_0x4439d3(0x15b));const _0x5bfc6a=one(chain(_0x1c1107,_0x4439d3(0xd4),_0x4439d3(0x14e))[_0x4439d3(0x16b)](_0x6687bb=>_0x6687bb[_0x4439d3(0x138)][_0x4439d3(0x131)]===_0x20332c),_0x4439d3(0xe4)),_0x354dfb=_0x1ca1ca(_0x1db33f,_0x5bfc6a[_0x4439d3(0x138)][_0x4439d3(0x132)],'worksheet'),_0x275bd9=_0x565ec7(_0x354dfb);if(!matches(_0x275bd9,_0x4439d3(0xe4)))throw Error(_0x4439d3(0x104));const _0x9cacdf=chain(_0x275bd9,'sheetData',_0x4439d3(0x11c)),_0x18843a=new Map(),_0x4b7c77=new Set(_0x9cacdf[_0x4439d3(0x16b)](_0x488140=>_0x488140[_0x4439d3(0x138)]['hidden']==='1'||_0x488140['attrs']['hidden']==='true')[_0x4439d3(0x13b)](_0x423ccf=>integer(_0x423ccf[_0x4439d3(0x138)]['r'],_0x4439d3(0x112)))),_0x4ed9d7=_0x126604=>{const _0x8625fe=_0x4439d3,_0x4dcfbf=_0x126604===undefined?0xf:Number(_0x126604);if(!Number[_0x8625fe(0xf7)](_0x4dcfbf)||_0x4dcfbf<=0x0||_0x4dcfbf>409.5)throw Error(_0x8625fe(0x123));return Math[_0x8625fe(0x14b)](_0x4dcfbf*0x319c);},_0x4d9b2c=_0x4ed9d7(children(_0x275bd9,_0x4439d3(0x116))[0x0]?.['attrs'][_0x4439d3(0x15a)]);for(const _0x21c652 of _0x9cacdf)if(_0x21c652[_0x4439d3(0x138)]['ht']!==undefined)_0x18843a[_0x4439d3(0x12b)](integer(_0x21c652['attrs']['r'],_0x4439d3(0x10f)),_0x4ed9d7(_0x21c652['attrs']['ht']));const _0x3da7fc=[],_0x2491ac=_0x2646ae=>{const _0x3a4116=_0x4439d3;if(!_0x46aa0f[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x145)]))return;if(++_0x448b9d>0x2710)throw Error(_0x3a4116(0x119));_0x3da7fc[_0x3a4116(0x178)](_0x4b7c77[_0x3a4116(0x121)](_0x2646ae[_0x3a4116(0x11c)])?{..._0x2646ae,'hiddenRow':!![]}:_0x2646ae);},_0x436f80=_0x1990f4=>({'row':integer(one(children(_0x1990f4,'row',DRAWING),'anchor\x20row')['text'],_0x4439d3(0xf6),0x1869f)+0x1,'col':integer(one(children(_0x1990f4,_0x4439d3(0x145)),_0x4439d3(0x181))[_0x4439d3(0xe8)],_0x4439d3(0x181),0xff)+0x1});for(const _0x1d0fbc of children(_0x275bd9,_0x4439d3(0xe9))){const _0x5efb15=_0x1ca1ca(_0x354dfb,_0x1d0fbc[_0x4439d3(0x138)]['r:id'],'drawing'),_0x3b39f2=_0x565ec7(_0x5efb15);if(!matches(_0x3b39f2,_0x4439d3(0x16d)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x37069d of _0x3b39f2['children']){if(![_0x4439d3(0x107),_0x4439d3(0x17e),'absoluteAnchor'][_0x4439d3(0x105)](_0x277aca=>matches(_0x37069d,_0x277aca)))continue;if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x168))throw Error(_0x4439d3(0x10c)+_0x20332c+'.');const _0x1a6b83=_0x436f80(one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)));if(!_0x46aa0f[_0x4439d3(0x121)](_0x1a6b83[_0x4439d3(0x145)]))continue;let _0x48ae8f;const _0x2b6a29=one(children(_0x37069d,_0x4439d3(0xe1)),_0x4439d3(0x160)),_0x12f686=integer(one(children(_0x2b6a29,_0x4439d3(0xfc)),'anchor\x20start\x20offset')[_0x4439d3(0xe8)],_0x4439d3(0x15f),Number[_0x4439d3(0x12c)]),_0x5bab28=_0x18843a[_0x4439d3(0x179)](_0x1a6b83[_0x4439d3(0x11c)])??_0x4d9b2c;if(_0x12f686>=_0x5bab28)throw Error(_0x4439d3(0xfd)+_0x1a6b83[_0x4439d3(0x11c)]+'.');if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x107)){const _0x3ad760=one(children(_0x37069d,_0x4439d3(0x114)),'image\x20extent'),_0x1089e8=integer(_0x3ad760[_0x4439d3(0x138)]['cy'],_0x4439d3(0x15d),Number['MAX_SAFE_INTEGER']);if(!_0x1089e8||_0x12f686+_0x1089e8>_0x5bab28)_0x48ae8f=_0x4439d3(0x158);}if(_0x37069d[_0x4439d3(0x131)]===_0x4439d3(0x17e)){const _0x250db4=one(children(_0x37069d,'to'),_0x4439d3(0xed)),_0x2d22c4=_0x436f80(_0x250db4),_0x4c6b96=integer(one(children(_0x250db4,'rowOff'),'anchor\x20end\x20offset')[_0x4439d3(0xe8)],'anchor\x20end\x20offset',Number[_0x4439d3(0x12c)]),_0x176d9b=_0x18843a[_0x4439d3(0x179)](_0x2d22c4['row'])??_0x4d9b2c;if(_0x4c6b96>_0x176d9b||_0x2d22c4['row']===_0x1a6b83[_0x4439d3(0x11c)]&&_0x4c6b96<=_0x12f686)_0x48ae8f=_0x4439d3(0x15e);if(_0x2d22c4[_0x4439d3(0x11c)]<_0x1a6b83[_0x4439d3(0x11c)]||_0x2d22c4['row']>_0x1a6b83[_0x4439d3(0x11c)]+0x1||_0x2d22c4[_0x4439d3(0x11c)]===_0x1a6b83[_0x4439d3(0x11c)]+0x1&&_0x4c6b96!==0x0)_0x48ae8f=_0x4439d3(0x158);}const _0x415b8c=chain(_0x37069d,_0x4439d3(0x10b),_0x4439d3(0x164),_0x4439d3(0x16c));for(const _0x91d87f of _0x415b8c){if(_0x91d87f['attrs'][_0x4439d3(0xd9)])throw Error(_0x4439d3(0xef));_0x2491ac({..._0x1a6b83,'media':[_0x1ca1ca(_0x5efb15,_0x91d87f['attrs']['r:embed'],_0x4439d3(0xdc))],..._0x48ae8f?{'error':_0x48ae8f}:{}});}if(!_0x415b8c[_0x4439d3(0x171)])_0x2491ac({..._0x1a6b83,'media':[],'error':_0x4439d3(0x152)});}}const _0x137c91=_0x526d1a=>{const _0x4cb350=_0x4439d3,_0x1ee91a=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x124)));if(!matches(_0x1ee91a,_0x4cb350(0x14f)))throw Error(_0x4cb350(0x11a));const _0x5804b2=integer(_0x526d1a[_0x4cb350(0x138)]['vm'],_0x4cb350(0x141));if(!_0x5804b2)throw Error(_0x4cb350(0x173));const _0x5cd46e=children(one(children(_0x1ee91a,_0x4cb350(0x12e)),_0x4cb350(0x12e)),'bk')[_0x5804b2-0x1];if(!_0x5cd46e)throw Error('Missing\x20value\x20metadata\x20block.');const _0x1f520d=one(children(_0x5cd46e,'rc'),_0x4cb350(0x10e)),_0x34095b=integer(_0x1f520d['attrs']['t'],_0x4cb350(0xd5)),_0x41a9b1=children(one(children(_0x1ee91a,'metadataTypes'),_0x4cb350(0x16a)),'metadataType')[_0x34095b-0x1];if(!_0x34095b||_0x41a9b1?.['attrs']['name']!==_0x4cb350(0xda))throw Error(_0x4cb350(0x128));const _0x18427e=one(children(_0x1ee91a,_0x4cb350(0xfe))[_0x4cb350(0x16b)](_0x129104=>_0x129104[_0x4cb350(0x138)][_0x4cb350(0x131)]===_0x4cb350(0xda)),'rich\x20future\x20metadata'),_0x4c895b=children(_0x18427e,'bk')[integer(_0x1f520d[_0x4cb350(0x138)]['v'],_0x4cb350(0x133))];if(!_0x4c895b)throw Error('Missing\x20future\x20metadata\x20block.');const _0x1c3db7=chain(_0x4c895b,_0x4cb350(0x13a))[_0x4cb350(0x161)](_0xac3494=>children(_0xac3494,_0x4cb350(0x114),SHEET))['filter'](_0x4b370e=>_0x4b370e[_0x4cb350(0x138)][_0x4cb350(0x13d)]?.[_0x4cb350(0xee)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x5e9621=integer(one(_0x1c3db7[_0x4cb350(0x161)](_0x3fbae1=>children(_0x3fbae1,_0x4cb350(0x11b))),_0x4cb350(0x137))[_0x4cb350(0x138)]['i'],_0x4cb350(0xe3)),_0x1da376=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0x147)));if(!matches(_0x1da376,'rvData'))throw Error(_0x4cb350(0xe6));const _0x46052a=children(_0x1da376,'rv')[_0x5e9621];if(!_0x46052a)throw Error(_0x4cb350(0x102));const _0x2d1cf4=_0x565ec7(_0x177f52(_0x1db33f,_0x4cb350(0xdb)));if(!matches(_0x2d1cf4,'rvStructures'))throw Error(_0x4cb350(0xf4));const _0x2576e0=children(_0x2d1cf4,'s')[integer(_0x46052a[_0x4cb350(0x138)]['s'],_0x4cb350(0x169))];if(!_0x2576e0||_0x2576e0[_0x4cb350(0x138)]['t']!==_0x4cb350(0xd2))throw Error(_0x4cb350(0x127));const _0x296b9d=children(_0x2576e0,'k'),_0x5dbf6a=_0x296b9d['map']((_0x2a3e59,_0x48cb96)=>_0x2a3e59[_0x4cb350(0x138)]['n']===_0x4cb350(0x15c)?_0x48cb96:-0x1)[_0x4cb350(0x16b)](_0xd07599=>_0xd07599>=0x0);if(_0x5dbf6a['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x417a84=children(_0x46052a,'v',RICH)[_0x5dbf6a[0x0]];if(!_0x417a84)throw Error(_0x4cb350(0x149));const _0x76894a=_0x177f52(_0x1db33f,_0x4cb350(0x108)),_0x12bfc1=_0x565ec7(_0x76894a);if(!matches(_0x12bfc1,_0x4cb350(0x156)))throw Error(_0x4cb350(0x151));const _0x581851=children(_0x12bfc1,_0x4cb350(0xea))[integer(_0x417a84['text'],_0x4cb350(0x106))];if(!_0x581851)throw Error(_0x4cb350(0x17c));return _0x1ca1ca(_0x76894a,_0x581851[_0x4cb350(0x138)][_0x4cb350(0x132)],'image');};let _0xf55d52;const _0x257738=_0x5b533d=>{const _0x201307=_0x4439d3;if(!_0xf55d52){_0xf55d52=new Map();const _0x2121e7=_0x5a7048(_0x1db33f)[_0x201307(0x16b)](_0x11ebad=>[...relationshipTypes('cellImage'),...relationshipTypes('cellImages')]['includes'](_0x11ebad[_0x201307(0x100)]));if(!_0x2121e7['length']&&_0xb82792[_0x201307(0x121)](_0x201307(0xdf)))_0x2121e7[_0x201307(0x178)]({'id':'','type':'','target':_0x201307(0x10a)});if(_0x2121e7['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x113da7=_0x428b50(_0x1db33f,_0x2121e7[0x0]),_0x4be9db=_0x565ec7(_0x113da7);if(!matches(_0x4be9db,_0x201307(0xff)))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x3253b8 of children(_0x4be9db,'cellImage')){const _0x123789=one(chain(_0x3253b8,_0x201307(0x10b),'nvPicPr',_0x201307(0x144)),'WPS\x20image\x20name')[_0x201307(0x138)][_0x201307(0x131)];if(!_0x123789||_0xf55d52[_0x201307(0x121)](_0x123789))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x585098=one(chain(_0x3253b8,'pic',_0x201307(0x164),_0x201307(0x16c)),_0x201307(0xf0));if(_0x585098[_0x201307(0x138)][_0x201307(0xd9)])throw Error(_0x201307(0x154));_0xf55d52[_0x201307(0x12b)](_0x123789,_0x1ca1ca(_0x113da7,_0x585098[_0x201307(0x138)][_0x201307(0x170)],_0x201307(0xdc)));}}const _0x1034c9=_0xf55d52['get'](_0x5b533d);if(!_0x1034c9)throw Error(_0x201307(0x109)+_0x5b533d+'.');return _0x1034c9;},_0x3b4a57=new Set();for(const _0x5191c0 of _0x9cacdf[_0x4439d3(0x161)](_0x783b7a=>children(_0x783b7a,'c'))){const _0x195441=/^([A-Z]+)([1-9]\d*)$/[_0x4439d3(0xd7)](_0x5191c0[_0x4439d3(0x138)]['r']??'');if(!_0x195441)continue;let _0x1138be=0x0;for(const _0x2cd71b of _0x195441[0x1])_0x1138be=_0x1138be*0x1a+_0x2cd71b[_0x4439d3(0x11f)](0x0)-0x40;if(!_0x46aa0f['has'](_0x1138be))continue;const _0x22d4ce=integer(_0x195441[0x2],_0x4439d3(0x140));if(_0x3b4a57['has'](_0x5191c0[_0x4439d3(0x138)]['r']))throw Error(_0x4439d3(0xf1));_0x3b4a57[_0x4439d3(0x13e)](_0x5191c0[_0x4439d3(0x138)]['r']);const _0x37e086=children(_0x5191c0,'f');if(!_0x5191c0['attrs']['vm']&&!_0x37e086[_0x4439d3(0x171)])continue;try{if(_0x22d4ce<0x1||_0x1138be>0x100)throw Error(_0x4439d3(0x17d));let _0x375e16;if(_0x5191c0[_0x4439d3(0x138)]['vm']){if(_0x37e086[_0x4439d3(0x171)])throw Error(_0x4439d3(0x166));if(_0x5191c0[_0x4439d3(0x138)]['t']!=='e'||children(_0x5191c0,'v')[_0x4439d3(0x171)]!==0x1||children(_0x5191c0,'v')[0x0][_0x4439d3(0xe8)]!==_0x4439d3(0x129))throw Error(_0x4439d3(0x11e));_0x375e16=_0x137c91(_0x5191c0);}else{const _0x606696=one(_0x37e086,_0x4439d3(0x135));if(_0x606696[_0x4439d3(0x138)]['t']===_0x4439d3(0x13c)||_0x606696[_0x4439d3(0x138)]['si'])throw Error(_0x4439d3(0x126));const _0x5f3b09=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x4439d3(0xd7)](_0x606696[_0x4439d3(0xe8)]);if(!_0x5f3b09)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x375e16=_0x257738(_0x5f3b09[0x1][_0x4439d3(0xde)](/""/g,'\x22'));}_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[_0x375e16],'nativeCell':!![]});}catch(_0x3431cb){_0x2491ac({'row':_0x22d4ce,'col':_0x1138be,'media':[],'nativeCell':!![],'error':_0x3431cb['message']});}}return _0x3da7fc;}
1
+ const a146_0x25aeb1=a146_0x39a6;(function(_0x11a90e,_0x443d41){const _0x397c27=a146_0x39a6,_0x247782=_0x11a90e();while(!![]){try{const _0x5983bc=parseInt(_0x397c27(0x14e))/0x1+parseInt(_0x397c27(0x119))/0x2+parseInt(_0x397c27(0xca))/0x3+-parseInt(_0x397c27(0x120))/0x4*(-parseInt(_0x397c27(0x13f))/0x5)+-parseInt(_0x397c27(0x110))/0x6+-parseInt(_0x397c27(0xd6))/0x7+-parseInt(_0x397c27(0xb8))/0x8*(parseInt(_0x397c27(0xc0))/0x9);if(_0x5983bc===_0x443d41)break;else _0x247782['push'](_0x247782['shift']());}catch(_0x2a6810){_0x247782['push'](_0x247782['shift']());}}}(a146_0x46ec,0xa792e));import a146_0x309951 from'node:path';function a146_0x46ec(){const _0x3e53a8=['metadataType','Missing\x20rich\x20image\x20relationship.','futureMetadata','XLRICHVALUE','http://www.wps.cn/officeDocument/2017/etCustomData','blipFill','add','_localImage','Relationships','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','posix','_rels','children','anchor\x20end','Missing\x20value\x20metadata\x20block.','slice','anchor\x20start','dirname','absoluteAnchor','twoCellAnchor','Unsupported\x20worksheet\x20namespace.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','r:link','anchor\x20column','Unsupported\x20workbook\x20namespace.','startsWith','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','get','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','toString','ext','replace','basename','Image\x20XML\x20node\x20budget\x20exceeded.','/xl/cellimages.xml','filter','workbook','exec','message','Unsupported\x20rich\x20value\x20namespace.','local','Missing\x20XLSX\x20part:\x20','rich\x20structure\x20index','anchor\x20end\x20offset','image\x20formula','round','MAX_SAFE_INTEGER','rowOff','sheetMetadata','test','Invalid\x20','metadata\x20type\x20index','r:embed','rel','image','2755524NYflEa','map','xl/','extLst','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','reduce','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/officeDocument/2006/relationships','702842AeTpFJ','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','write','push','Relationship','attributes','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','232TywSqZ','join','utf8','values','hidden','flatMap','pop','isFinite','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','sheets','Unsupported\x20relationship\x20namespace\x20in\x20','pic','richValueRels','rdRichValueStructure','Missing\x20local\x20image\x20identifier\x20value.','../','value','normalize','Shared\x20image\x20formulas\x20are\x20not\x20supported.','set','shared','closetag','toLowerCase','anchor\x20row','rich\x20value\x20index','type','opentag','image\x20extent','cellImage','rdRichValue','Ambiguous\x20XML\x20attribute.','36655OjhVWK','col','drawing','nvPicPr','Missing\x20rich\x20value.','rvData','rvb','\x20relationship\x20in\x20','WPS\x20image\x20name','length','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','.rels','sheetData','image\x20height','xl/workbook.xml','1088313fmCBiF','from','http://schemas.microsoft.com/office/2017/06/relationships/','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','metadataTypes','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20start\x20offset','attrs','defaultRowHeight','Missing\x20or\x20ambiguous\x20','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','XML\x20DTD/entities\x20are\x20not\x20supported.','error','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Unsupported\x20rich\x20image\x20relation\x20namespace.','oneCellAnchor','rvStructures','name','r:id','cNvPr','row','http://purl.oclc.org/ooxml/drawingml/main','http://purl.oclc.org/ooxml/spreadsheetml/main','metadata\x20types','richValueRel','doctype','435504RnqIEK','future\x20metadata\x20index','http://purl.oclc.org/ooxml/officeDocument/relationships','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20rich\x20structure\x20namespace.','blip','Missing\x20WPS\x20image\x20ID:\x20','Missing\x20future\x20metadata\x20block.','54JOpgMs','hidden\x20image\x20row','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','wsDr','worksheet','has','valueMetadata','sheetFormatPr','2364399gAIxBz','text','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Internal','uri','Invalid\x20relationship\x20target:\x20','Unsupported\x20drawing\x20image.','includes','External\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Image\x20XML\x20event\x20budget\x20exceeded.','8265607yKCFyM','metadata'];a146_0x46ec=function(){return _0x3e53a8;};return a146_0x46ec();}import{SaxesParser}from'saxes';const SHEET=[a146_0x25aeb1(0xc3),a146_0x25aeb1(0x164)],DRAWING=[a146_0x25aeb1(0x11a),a146_0x25aeb1(0xe1)],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main',a146_0x25aeb1(0x163)],OFFICE_RELS=[a146_0x25aeb1(0x118),a146_0x25aeb1(0xba)],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a146_0x25aeb1(0x115)],WPS=[a146_0x25aeb1(0xdc)],DEFAULT_NS=Object['fromEntries']([...['workbook',a146_0x25aeb1(0x129),'sheet','worksheet','sheetData',a146_0x25aeb1(0x162),'c','f','v',a146_0x25aeb1(0xc9),'drawing',a146_0x25aeb1(0xd7),a146_0x25aeb1(0x152),a146_0x25aeb1(0xd8),a146_0x25aeb1(0xda),'valueMetadata','bk','rc',a146_0x25aeb1(0x113)]['map'](_0x29cf2e=>[_0x29cf2e,SHEET]),...[a146_0x25aeb1(0xc5),'oneCellAnchor',a146_0x25aeb1(0xeb),a146_0x25aeb1(0xea),a146_0x25aeb1(0x14f),'to',a146_0x25aeb1(0x140),'colOff','rowOff',a146_0x25aeb1(0xf7),a146_0x25aeb1(0x12b),'nvPicPr',a146_0x25aeb1(0x161),a146_0x25aeb1(0xdd)][a146_0x25aeb1(0x111)](_0x44f1f5=>[_0x44f1f5,DRAWING]),...[a146_0x25aeb1(0x145),a146_0x25aeb1(0x144),'rv','rvStructures','s','k'][a146_0x25aeb1(0x111)](_0x3d9e6d=>[_0x3d9e6d,RICH]),['blip',DRAWING_MAIN],[a146_0x25aeb1(0x12c),RICH_RELS],[a146_0x25aeb1(0x10e),RICH_RELS],[a146_0x25aeb1(0xe0),PACKAGE],[a146_0x25aeb1(0x11d),PACKAGE],[a146_0x25aeb1(0xc2),WPS],[a146_0x25aeb1(0x13c),WPS]]),matches=(_0x41139e,_0x6aabb8,_0x2ca48a=DEFAULT_NS[_0x6aabb8]??[])=>_0x41139e[a146_0x25aeb1(0x15f)]===_0x6aabb8&&_0x2ca48a[a146_0x25aeb1(0xd2)](_0x41139e[a146_0x25aeb1(0xcf)]),children=(_0x56f9a1,_0x4149b6,_0x453577=DEFAULT_NS[_0x4149b6])=>_0x56f9a1[a146_0x25aeb1(0xe4)]['filter'](_0x17801f=>matches(_0x17801f,_0x4149b6,_0x453577)),chain=(_0x30b730,..._0xed6da7)=>_0xed6da7[a146_0x25aeb1(0x116)]((_0x901e6f,_0x77f06a)=>_0x901e6f[a146_0x25aeb1(0x125)](_0x4cdaae=>children(_0x4cdaae,_0x77f06a)),[_0x30b730]),relationshipTypes=_0x5b0587=>{const _0x4e2687=a146_0x25aeb1;if([_0x4e2687(0x13d),_0x4e2687(0x12d)]['includes'](_0x5b0587))return[_0x4e2687(0x150)+_0x5b0587];if(_0x5b0587==='richValueRel')return[_0x4e2687(0xf2)];if(_0x5b0587===_0x4e2687(0x13c)||_0x5b0587===_0x4e2687(0xc2))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x5b0587];return OFFICE_RELS[_0x4e2687(0x111)](_0x18933d=>_0x18933d+'/'+_0x5b0587);};function one(_0x359cb6,_0x4199cf){const _0xa818f1=a146_0x25aeb1;if(_0x359cb6[_0xa818f1(0x148)]!==0x1)throw Error(_0xa818f1(0x157)+_0x4199cf+'.');return _0x359cb6[0x0];}function a146_0x39a6(_0x4dba28,_0x4166ee){_0x4dba28=_0x4dba28-0xb8;const _0x46ecb4=a146_0x46ec();let _0x39a66a=_0x46ecb4[_0x4dba28];return _0x39a66a;}function integer(_0xef373b,_0x587111,_0x3b96d8=0x186a0){const _0x263d77=a146_0x25aeb1;if(!_0xef373b||!/^\d+$/[_0x263d77(0x10a)](_0xef373b)||!Number['isSafeInteger'](Number(_0xef373b))||Number(_0xef373b)>_0x3b96d8)throw Error(_0x263d77(0x10b)+_0x587111+'.');return Number(_0xef373b);}export function resolveWorksheetImages(_0x3ab62d,_0x319bb2,_0x37f464){const _0x3f0aea=a146_0x25aeb1;let _0x1208e2=0x0,_0x585edd=0x0,_0x1fb23a=0x0;const _0x1e7206=new Map(),_0x5dc382=_0x3e28e7=>{const _0x475a62=a146_0x39a6;if(_0x1e7206[_0x475a62(0xc7)](_0x3e28e7))return _0x1e7206[_0x475a62(0xf3)](_0x3e28e7);const _0x2d4356=_0x3ab62d['get'](_0x3e28e7);if(!_0x2d4356)throw Error(_0x475a62(0x102)+_0x3e28e7+'.');const _0x239183={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x32aa21=[_0x239183],_0x36f383=new SaxesParser({'xmlns':!![]}),_0x1d456a=()=>{const _0x4eeff7=_0x475a62;if(++_0x585edd>0x1e8480)throw Error(_0x4eeff7(0xd5));};_0x36f383['on'](_0x475a62(0x167),()=>{const _0xc9d90b=_0x475a62;throw Error(_0xc9d90b(0x159));}),_0x36f383['on'](_0x475a62(0x13a),_0x494e98=>{const _0x22cabb=_0x475a62;_0x1d456a();if(++_0x1208e2>0x7a120||_0x32aa21['length']>0x40)throw Error(_0x22cabb(0xfa));const _0x2c14c0={};for(const _0x1b04d3 of Object[_0x22cabb(0x123)](_0x494e98[_0x22cabb(0x11e)])){const _0x448351=OFFICE_RELS[_0x22cabb(0xd2)](_0x1b04d3[_0x22cabb(0xcf)])?'r:'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0xcf)]?'{'+_0x1b04d3[_0x22cabb(0xcf)]+'}'+_0x1b04d3[_0x22cabb(0x101)]:_0x1b04d3[_0x22cabb(0x101)];if(_0x448351 in _0x2c14c0)throw Error(_0x22cabb(0x13e));_0x2c14c0[_0x448351]=_0x1b04d3[_0x22cabb(0x130)];}const _0x4a303a={'name':_0x494e98[_0x22cabb(0x101)],'uri':_0x494e98[_0x22cabb(0xcf)],'attrs':_0x2c14c0,'children':[],'text':''};_0x32aa21['at'](-0x1)[_0x22cabb(0xe4)][_0x22cabb(0x11c)](_0x4a303a),_0x32aa21[_0x22cabb(0x11c)](_0x4a303a);}),_0x36f383['on'](_0x475a62(0xcb),_0x3fba02=>{const _0x4655cb=_0x475a62;_0x1d456a();const _0xf52ca2=_0x32aa21['at'](-0x1);_0xf52ca2[_0x4655cb(0xcb)]+=_0x3fba02;if(_0xf52ca2[_0x4655cb(0xcb)][_0x4655cb(0x148)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x36f383['on'](_0x475a62(0x135),()=>{const _0x5ad48a=_0x475a62;_0x1d456a(),_0x32aa21[_0x5ad48a(0x126)]();}),_0x36f383['on'](_0x475a62(0x15a),_0x205b97=>{throw _0x205b97;}),_0x36f383[_0x475a62(0x11b)](_0x2d4356[_0x475a62(0xf6)](_0x475a62(0x122)))['close']();const _0x2a2418=one(_0x239183['children'],_0x3e28e7);return _0x1e7206[_0x475a62(0x133)](_0x3e28e7,_0x2a2418),_0x2a2418;},_0x49cf41=new Map(),_0x4e1e10=_0x373c6b=>{const _0xfafd4f=a146_0x39a6;if(_0x49cf41[_0xfafd4f(0xc7)](_0x373c6b))return _0x49cf41[_0xfafd4f(0xf3)](_0x373c6b);const _0x38c773=a146_0x309951[_0xfafd4f(0xe2)]['join'](a146_0x309951[_0xfafd4f(0xe2)][_0xfafd4f(0xe9)](_0x373c6b),_0xfafd4f(0xe3),a146_0x309951['posix'][_0xfafd4f(0xf9)](_0x373c6b)+_0xfafd4f(0x14a));if(!_0x3ab62d[_0xfafd4f(0xc7)](_0x38c773))return[];const _0x10f0b3=new Set(),_0x310323=_0x5dc382(_0x38c773);if(!matches(_0x310323,_0xfafd4f(0xe0)))throw Error(_0xfafd4f(0x12a)+_0x38c773+'.');const _0x59a4e5=children(_0x310323,_0xfafd4f(0x11d))[_0xfafd4f(0x111)](_0x3a61d1=>{const _0x4d1431=_0xfafd4f,{Id:_0x1d295d,Type:_0x354cfa,Target:_0xd66461,TargetMode:_0x56578b}=_0x3a61d1[_0x4d1431(0x155)];if(!_0x1d295d||_0x10f0b3['has'](_0x1d295d)||!_0x354cfa)throw Error(_0x4d1431(0x15b)+_0x38c773+'.');return _0x10f0b3[_0x4d1431(0xde)](_0x1d295d),{'id':_0x1d295d,'type':_0x354cfa,'target':_0xd66461??'','mode':_0x56578b};});return _0x49cf41['set'](_0x373c6b,_0x59a4e5),_0x59a4e5;},_0x1b01a4=(_0x205e7f,_0x4402ba)=>{const _0x1fff29=a146_0x39a6,{target:_0x915ede,mode:_0x176fb5}=_0x4402ba;if(_0x176fb5&&_0x176fb5!==_0x1fff29(0xce))throw Error(_0x1fff29(0x11f)+_0x205e7f+'.');if(!_0x915ede||_0x915ede[_0x1fff29(0xd2)]('\x5c')||/[?#%\x00-\x20]/[_0x1fff29(0x10a)](_0x915ede)||/^[a-z][a-z0-9+.-]*:/i[_0x1fff29(0x10a)](_0x915ede)||_0x915ede[_0x1fff29(0xf1)]('//'))throw Error(_0x1fff29(0xd0)+_0x205e7f+'.');const _0x529f6b=_0x915ede['startsWith']('/')?_0x915ede[_0x1fff29(0xe7)](0x1):a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x131)](a146_0x309951[_0x1fff29(0xe2)][_0x1fff29(0x121)](a146_0x309951['posix'][_0x1fff29(0xe9)](_0x205e7f),_0x915ede));if(_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x12f))||_0x529f6b==='..'||!_0x529f6b[_0x1fff29(0xf1)](_0x1fff29(0x112)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x205e7f+'.');return _0x529f6b;},_0x515e30=(_0x11ca29,_0x5363a9,_0x38e5a3)=>{const _0xc8b318=a146_0x39a6,_0x584489=_0x4e1e10(_0x11ca29)[_0xc8b318(0xfc)](_0x2cbc5d=>_0x2cbc5d['id']===_0x5363a9&&relationshipTypes(_0x38e5a3)['includes'](_0x2cbc5d[_0xc8b318(0x139)]));if(_0x584489[_0xc8b318(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x38e5a3+_0xc8b318(0x146)+_0x11ca29+'.');return _0x1b01a4(_0x11ca29,_0x584489[0x0]);},_0xa15584=(_0xc4bb1,_0x44644d)=>{const _0x202a72=a146_0x39a6,_0x13c3a3=_0x4e1e10(_0xc4bb1)[_0x202a72(0xfc)](_0x557172=>relationshipTypes(_0x44644d)['includes'](_0x557172[_0x202a72(0x139)]));if(_0x13c3a3[_0x202a72(0x148)]!==0x1)throw Error(_0x202a72(0x157)+_0x44644d+'\x20relationship\x20in\x20'+_0xc4bb1+'.');return _0x1b01a4(_0xc4bb1,_0x13c3a3[0x0]);},_0x269791=_0x3f0aea(0x14d),_0x5c48fb=_0x5dc382(_0x269791);if(!matches(_0x5c48fb,_0x3f0aea(0xfd)))throw Error(_0x3f0aea(0xf0));const _0x17242c=one(chain(_0x5c48fb,'sheets','sheet')[_0x3f0aea(0xfc)](_0x259b42=>_0x259b42[_0x3f0aea(0x155)][_0x3f0aea(0x15f)]===_0x319bb2),'worksheet'),_0xb2d65a=_0x515e30(_0x269791,_0x17242c[_0x3f0aea(0x155)][_0x3f0aea(0x160)],'worksheet'),_0x230141=_0x5dc382(_0xb2d65a);if(!matches(_0x230141,_0x3f0aea(0xc6)))throw Error(_0x3f0aea(0xec));const _0x12b36f=chain(_0x230141,_0x3f0aea(0x14b),_0x3f0aea(0x162)),_0x152655=new Map(),_0x145f6f=new Set(_0x12b36f[_0x3f0aea(0xfc)](_0x20bc11=>_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='1'||_0x20bc11[_0x3f0aea(0x155)][_0x3f0aea(0x124)]==='true')[_0x3f0aea(0x111)](_0x386804=>integer(_0x386804[_0x3f0aea(0x155)]['r'],_0x3f0aea(0xc1)))),_0x8bdcd=_0xdc79b4=>{const _0x13dcd7=_0x3f0aea,_0x1a5cfa=_0xdc79b4===undefined?0xf:Number(_0xdc79b4);if(!Number[_0x13dcd7(0x127)](_0x1a5cfa)||_0x1a5cfa<=0x0||_0x1a5cfa>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x13dcd7(0x106)](_0x1a5cfa*0x319c);},_0x4c05d1=_0x8bdcd(children(_0x230141,_0x3f0aea(0xc9))[0x0]?.[_0x3f0aea(0x155)][_0x3f0aea(0x156)]);for(const _0x1cf6f9 of _0x12b36f)if(_0x1cf6f9[_0x3f0aea(0x155)]['ht']!==undefined)_0x152655[_0x3f0aea(0x133)](integer(_0x1cf6f9[_0x3f0aea(0x155)]['r'],'image\x20row\x20height\x20coordinate'),_0x8bdcd(_0x1cf6f9['attrs']['ht']));const _0x29068d=[],_0x3fbb56=_0x20b498=>{const _0x341f56=_0x3f0aea;if(!_0x37f464[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x140)]))return;if(++_0x1fb23a>0x2710)throw Error(_0x341f56(0x151));_0x29068d[_0x341f56(0x11c)](_0x145f6f[_0x341f56(0xc7)](_0x20b498[_0x341f56(0x162)])?{..._0x20b498,'hiddenRow':!![]}:_0x20b498);},_0x3f3579=_0x5e2a8d=>({'row':integer(one(children(_0x5e2a8d,_0x3f0aea(0x162),DRAWING),'anchor\x20row')[_0x3f0aea(0xcb)],_0x3f0aea(0x137),0x1869f)+0x1,'col':integer(one(children(_0x5e2a8d,_0x3f0aea(0x140)),'anchor\x20column')[_0x3f0aea(0xcb)],_0x3f0aea(0xef),0xff)+0x1});for(const _0x1d5697 of children(_0x230141,_0x3f0aea(0x141))){const _0x3de3d5=_0x515e30(_0xb2d65a,_0x1d5697[_0x3f0aea(0x155)]['r:id'],_0x3f0aea(0x141)),_0x3cb0a0=_0x5dc382(_0x3de3d5);if(!matches(_0x3cb0a0,_0x3f0aea(0xc5)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x34f26a of _0x3cb0a0[_0x3f0aea(0xe4)]){if(!['oneCellAnchor',_0x3f0aea(0xeb),_0x3f0aea(0xea)]['some'](_0x2cea12=>matches(_0x34f26a,_0x2cea12)))continue;if(_0x34f26a['name']===_0x3f0aea(0xea))throw Error(_0x3f0aea(0x153)+_0x319bb2+'.');const _0x28b248=_0x3f3579(one(children(_0x34f26a,_0x3f0aea(0x14f)),'anchor\x20start'));if(!_0x37f464[_0x3f0aea(0xc7)](_0x28b248[_0x3f0aea(0x140)]))continue;let _0x8909fe;const _0xdf1170=one(children(_0x34f26a,_0x3f0aea(0x14f)),_0x3f0aea(0xe8)),_0x432522=integer(one(children(_0xdf1170,_0x3f0aea(0x108)),'anchor\x20start\x20offset')[_0x3f0aea(0xcb)],_0x3f0aea(0x154),Number[_0x3f0aea(0x107)]),_0x3a9888=_0x152655[_0x3f0aea(0xf3)](_0x28b248[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x432522>=_0x3a9888)throw Error(_0x3f0aea(0xc4)+_0x28b248['row']+'.');if(_0x34f26a['name']===_0x3f0aea(0x15d)){const _0x3584d5=one(children(_0x34f26a,'ext'),_0x3f0aea(0x13b)),_0x53be63=integer(_0x3584d5['attrs']['cy'],_0x3f0aea(0x14c),Number[_0x3f0aea(0x107)]);if(!_0x53be63||_0x432522+_0x53be63>_0x3a9888)_0x8909fe=_0x3f0aea(0x149);}if(_0x34f26a[_0x3f0aea(0x15f)]===_0x3f0aea(0xeb)){const _0x190a1a=one(children(_0x34f26a,'to'),_0x3f0aea(0xe5)),_0x1565a1=_0x3f3579(_0x190a1a),_0x54f70e=integer(one(children(_0x190a1a,_0x3f0aea(0x108)),_0x3f0aea(0x104))[_0x3f0aea(0xcb)],'anchor\x20end\x20offset',Number[_0x3f0aea(0x107)]),_0x5db567=_0x152655[_0x3f0aea(0xf3)](_0x1565a1[_0x3f0aea(0x162)])??_0x4c05d1;if(_0x54f70e>_0x5db567||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']&&_0x54f70e<=_0x432522)_0x8909fe='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x1565a1[_0x3f0aea(0x162)]<_0x28b248['row']||_0x1565a1[_0x3f0aea(0x162)]>_0x28b248['row']+0x1||_0x1565a1[_0x3f0aea(0x162)]===_0x28b248['row']+0x1&&_0x54f70e!==0x0)_0x8909fe=_0x3f0aea(0x149);}const _0x5362e8=chain(_0x34f26a,_0x3f0aea(0x12b),'blipFill',_0x3f0aea(0xbd));for(const _0x1a5e4e of _0x5362e8){if(_0x1a5e4e['attrs'][_0x3f0aea(0xee)])throw Error(_0x3f0aea(0xd3));_0x3fbb56({..._0x28b248,'media':[_0x515e30(_0x3de3d5,_0x1a5e4e['attrs'][_0x3f0aea(0x10d)],_0x3f0aea(0x10f))],..._0x8909fe?{'error':_0x8909fe}:{}});}if(!_0x5362e8[_0x3f0aea(0x148)])_0x3fbb56({..._0x28b248,'media':[],'error':_0x3f0aea(0xd1)});}}const _0x3ae3fc=_0x165c5b=>{const _0x12a8bd=_0x3f0aea,_0x226611=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x109)));if(!matches(_0x226611,'metadata'))throw Error('Unsupported\x20metadata\x20namespace.');const _0x2c4772=integer(_0x165c5b['attrs']['vm'],'value\x20metadata\x20index');if(!_0x2c4772)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x23b0fe=children(one(children(_0x226611,_0x12a8bd(0xc8)),_0x12a8bd(0xc8)),'bk')[_0x2c4772-0x1];if(!_0x23b0fe)throw Error(_0x12a8bd(0xe6));const _0x4583cc=one(children(_0x23b0fe,'rc'),'rich\x20metadata\x20record'),_0x183de1=integer(_0x4583cc[_0x12a8bd(0x155)]['t'],_0x12a8bd(0x10c)),_0x5538dc=children(one(children(_0x226611,'metadataTypes'),_0x12a8bd(0x165)),_0x12a8bd(0xd8))[_0x183de1-0x1];if(!_0x183de1||_0x5538dc?.['attrs'][_0x12a8bd(0x15f)]!==_0x12a8bd(0xdb))throw Error(_0x12a8bd(0xd4));const _0x59c072=one(children(_0x226611,_0x12a8bd(0xda))[_0x12a8bd(0xfc)](_0x40367c=>_0x40367c[_0x12a8bd(0x155)][_0x12a8bd(0x15f)]==='XLRICHVALUE'),'rich\x20future\x20metadata'),_0x2fc66a=children(_0x59c072,'bk')[integer(_0x4583cc[_0x12a8bd(0x155)]['v'],_0x12a8bd(0xb9))];if(!_0x2fc66a)throw Error(_0x12a8bd(0xbf));const _0x17d392=chain(_0x2fc66a,_0x12a8bd(0x113))['flatMap'](_0x39fb2d=>children(_0x39fb2d,_0x12a8bd(0xf7),SHEET))[_0x12a8bd(0xfc)](_0x29f830=>_0x29f830[_0x12a8bd(0x155)][_0x12a8bd(0xcf)]?.[_0x12a8bd(0x136)]()===_0x12a8bd(0x114)),_0x1b81ce=integer(one(_0x17d392[_0x12a8bd(0x125)](_0x4f7e5b=>children(_0x4f7e5b,_0x12a8bd(0x145))),'rich\x20value\x20binding')[_0x12a8bd(0x155)]['i'],_0x12a8bd(0x138)),_0x12733c=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x13d)));if(!matches(_0x12733c,_0x12a8bd(0x144)))throw Error(_0x12a8bd(0x100));const _0x516d41=children(_0x12733c,'rv')[_0x1b81ce];if(!_0x516d41)throw Error(_0x12a8bd(0x143));const _0x7c1e99=_0x5dc382(_0xa15584(_0x269791,_0x12a8bd(0x12d)));if(!matches(_0x7c1e99,_0x12a8bd(0x15e)))throw Error(_0x12a8bd(0xbc));const _0x53454f=children(_0x7c1e99,'s')[integer(_0x516d41[_0x12a8bd(0x155)]['s'],_0x12a8bd(0x103))];if(!_0x53454f||_0x53454f[_0x12a8bd(0x155)]['t']!==_0x12a8bd(0xdf))throw Error(_0x12a8bd(0xcd));const _0x3ab281=children(_0x53454f,'k'),_0x3d11a8=_0x3ab281[_0x12a8bd(0x111)]((_0x31a9ea,_0x32da8e)=>_0x31a9ea['attrs']['n']==='_rvRel:LocalImageIdentifier'?_0x32da8e:-0x1)[_0x12a8bd(0xfc)](_0x4f3449=>_0x4f3449>=0x0);if(_0x3d11a8[_0x12a8bd(0x148)]!==0x1)throw Error(_0x12a8bd(0x158));const _0x48747f=children(_0x516d41,'v',RICH)[_0x3d11a8[0x0]];if(!_0x48747f)throw Error(_0x12a8bd(0x12e));const _0x3b81ce=_0xa15584(_0x269791,_0x12a8bd(0x166)),_0x7d4379=_0x5dc382(_0x3b81ce);if(!matches(_0x7d4379,_0x12a8bd(0x12c)))throw Error(_0x12a8bd(0x15c));const _0x4a1769=children(_0x7d4379,_0x12a8bd(0x10e))[integer(_0x48747f[_0x12a8bd(0xcb)],_0x12a8bd(0x117))];if(!_0x4a1769)throw Error(_0x12a8bd(0xd9));return _0x515e30(_0x3b81ce,_0x4a1769[_0x12a8bd(0x155)][_0x12a8bd(0x160)],_0x12a8bd(0x10f));};let _0x2ca095;const _0x5924a4=_0x20ab03=>{const _0x517ed8=_0x3f0aea;if(!_0x2ca095){_0x2ca095=new Map();const _0x3f8a39=_0x4e1e10(_0x269791)[_0x517ed8(0xfc)](_0x506e60=>[...relationshipTypes(_0x517ed8(0x13c)),...relationshipTypes(_0x517ed8(0xc2))][_0x517ed8(0xd2)](_0x506e60[_0x517ed8(0x139)]));if(!_0x3f8a39['length']&&_0x3ab62d[_0x517ed8(0xc7)]('xl/cellimages.xml'))_0x3f8a39[_0x517ed8(0x11c)]({'id':'','type':'','target':_0x517ed8(0xfb)});if(_0x3f8a39[_0x517ed8(0x148)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0x2f2c31=_0x1b01a4(_0x269791,_0x3f8a39[0x0]),_0x5c4ddb=_0x5dc382(_0x2f2c31);if(!matches(_0x5c4ddb,'cellImages'))throw Error(_0x517ed8(0xf5));for(const _0x5a67a1 of children(_0x5c4ddb,_0x517ed8(0x13c))){const _0x231ff2=one(chain(_0x5a67a1,_0x517ed8(0x12b),_0x517ed8(0x142),_0x517ed8(0x161)),_0x517ed8(0x147))[_0x517ed8(0x155)][_0x517ed8(0x15f)];if(!_0x231ff2||_0x2ca095[_0x517ed8(0xc7)](_0x231ff2))throw Error(_0x517ed8(0xcc));const _0x110d56=one(chain(_0x5a67a1,_0x517ed8(0x12b),'blipFill','blip'),'WPS\x20image\x20blip');if(_0x110d56[_0x517ed8(0x155)][_0x517ed8(0xee)])throw Error(_0x517ed8(0xbb));_0x2ca095[_0x517ed8(0x133)](_0x231ff2,_0x515e30(_0x2f2c31,_0x110d56[_0x517ed8(0x155)][_0x517ed8(0x10d)],_0x517ed8(0x10f)));}}const _0x526a01=_0x2ca095['get'](_0x20ab03);if(!_0x526a01)throw Error(_0x517ed8(0xbe)+_0x20ab03+'.');return _0x526a01;},_0x47f335=new Set();for(const _0x4f65c5 of _0x12b36f[_0x3f0aea(0x125)](_0x9cb671=>children(_0x9cb671,'c'))){const _0x123477=/^([A-Z]+)([1-9]\d*)$/[_0x3f0aea(0xfe)](_0x4f65c5[_0x3f0aea(0x155)]['r']??'');if(!_0x123477)continue;let _0x5838d3=0x0;for(const _0x54b8d4 of _0x123477[0x1])_0x5838d3=_0x5838d3*0x1a+_0x54b8d4['charCodeAt'](0x0)-0x40;if(!_0x37f464['has'](_0x5838d3))continue;const _0x5ece83=integer(_0x123477[0x2],'image\x20cell\x20row');if(_0x47f335[_0x3f0aea(0xc7)](_0x4f65c5[_0x3f0aea(0x155)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x47f335['add'](_0x4f65c5[_0x3f0aea(0x155)]['r']);const _0x59b3d3=children(_0x4f65c5,'f');if(!_0x4f65c5[_0x3f0aea(0x155)]['vm']&&!_0x59b3d3[_0x3f0aea(0x148)])continue;try{if(_0x5ece83<0x1||_0x5838d3>0x100)throw Error(_0x3f0aea(0xed));let _0x376da4;if(_0x4f65c5['attrs']['vm']){if(_0x59b3d3[_0x3f0aea(0x148)])throw Error(_0x3f0aea(0x128));if(_0x4f65c5[_0x3f0aea(0x155)]['t']!=='e'||children(_0x4f65c5,'v')[_0x3f0aea(0x148)]!==0x1||children(_0x4f65c5,'v')[0x0][_0x3f0aea(0xcb)]!=='#VALUE!')throw Error(_0x3f0aea(0xf4));_0x376da4=_0x3ae3fc(_0x4f65c5);}else{const _0x19e883=one(_0x59b3d3,_0x3f0aea(0x105));if(_0x19e883['attrs']['t']===_0x3f0aea(0x134)||_0x19e883[_0x3f0aea(0x155)]['si'])throw Error(_0x3f0aea(0x132));const _0x6da5cb=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3f0aea(0xfe)](_0x19e883['text']);if(!_0x6da5cb)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x376da4=_0x5924a4(_0x6da5cb[0x1][_0x3f0aea(0xf8)](/""/g,'\x22'));}_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[_0x376da4],'nativeCell':!![]});}catch(_0x168f25){_0x3fbb56({'row':_0x5ece83,'col':_0x5838d3,'media':[],'nativeCell':!![],'error':_0x168f25[_0x3f0aea(0xff)]});}}return _0x29068d;}
@@ -1 +1 @@
1
- (function(_0x2e8b3e,_0x2896dd){const _0x358c8a=a147_0x32e0,_0x15c6c5=_0x2e8b3e();while(!![]){try{const _0x5cb8b5=parseInt(_0x358c8a(0xc5))/0x1*(-parseInt(_0x358c8a(0xae))/0x2)+-parseInt(_0x358c8a(0xa1))/0x3*(parseInt(_0x358c8a(0xc8))/0x4)+parseInt(_0x358c8a(0x9a))/0x5*(parseInt(_0x358c8a(0x9d))/0x6)+parseInt(_0x358c8a(0xcc))/0x7+-parseInt(_0x358c8a(0xf0))/0x8+-parseInt(_0x358c8a(0xe7))/0x9*(parseInt(_0x358c8a(0xec))/0xa)+parseInt(_0x358c8a(0xe5))/0xb;if(_0x5cb8b5===_0x2896dd)break;else _0x15c6c5['push'](_0x15c6c5['shift']());}catch(_0x3635cb){_0x15c6c5['push'](_0x15c6c5['shift']());}}}(a147_0x1995,0xc163b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a147_0x1995(){const _0x280bd8=['missing','update','all','parse','ENOENT','resume','types','rows-preparing','contract','strategy','fileName','completed','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','contentHash','35tcnFhx','binding','00000000-0000-4000-8000-000000000000','788694iqKTMC','actorId','Invalid\x20image\x20media\x20descriptor.','image/jpeg','6WLlTBh','fromEntries','Invalid\x20image\x20manifest\x20limits.','appCode','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','report','runtimeDomain','type','imageImport','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','stringify','name','status','1046AMscZL','imageFields','version','phase','filePath','image/png','jpg','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','rowNumber','isSafeInteger','schemaHash','hash','digest','key','includes','uploadId','hex','fileHash','readback','values','utf8','map','inputPaths','538EmaoEx','test','imageApi','187936fbYtOW','sheet','Completed\x20image\x20checkpoint\x20value\x20changed.','datasetCode','1217216ZCwAWy','bytes','value','rows','batchSize','reduce','mappingHash','hashes','importId','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','maxBatchBytes','Image\x20cell\x20references\x20missing\x20media.','size','sha256','manifest','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','isArray','rows-started','schemaFingerprint','succeeded','Invalid\x20image\x20readback\x20digest.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','code','length','png','24000394rPSThY','media','12070431FEhHAk','entries','maxPixels','isInteger','schemaVersion','10pUitMQ','Invalid\x20import\x20batch\x20size.','imageCells','.lock','6138088GZEjbr','get','errors'];a147_0x1995=function(){return _0x280bd8;};return a147_0x1995();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x35b214,_0x350ed7){const _0x3ca3a8=a147_0x32e0;if(!_0x350ed7[_0x3ca3a8(0xe6)]?.['length'])return;const _0xc94b1=_0x35b214[_0x3ca3a8(0xa9)];if(!_0xc94b1||_0xc94b1[_0x3ca3a8(0xb0)]!==0x1||_0xc94b1[_0x3ca3a8(0xbd)]!=='sha256'||_0xc94b1['maxFileBytes']!==0xa00000||_0xc94b1[_0x3ca3a8(0xe9)]!==0x2625a00||!Array[_0x3ca3a8(0xdc)](_0xc94b1['types'])||![_0x3ca3a8(0xb3),_0x3ca3a8(0xa0),'image/gif']['every'](_0x2bd344=>_0xc94b1[_0x3ca3a8(0x91)]['includes'](_0x2bd344)))throw Error(_0x3ca3a8(0xd5));}export function imageObjectValue(_0xfbd4f6,_0x3a0a6a,_0x5de788){const _0x263375=a147_0x32e0,_0x473d7b=createHash(_0x263375(0xd9))[_0x263375(0xf4)](JSON[_0x263375(0xab)]([_0xfbd4f6[_0x263375(0x9e)],_0xfbd4f6[_0x263375(0xa4)],_0xfbd4f6[_0x263375(0xcb)],_0x3a0a6a]))['digest']('hex'),_0x44bf22={'image/png':_0x263375(0xe4),'image/jpeg':_0x263375(0xb4),'image/gif':'gif'}[_0x5de788[_0x263375(0xa8)]];if(!_0x44bf22||!/^[0-9a-f]{64}$/[_0x263375(0xc6)](_0x5de788[_0x263375(0x99)])||!Number[_0x263375(0xb7)](_0x5de788[_0x263375(0xd8)])||_0x5de788['size']<=0x0||_0x5de788[_0x263375(0xd8)]>0xa00000)throw Error(_0x263375(0x9f));const _0x5a2afb=_0x5de788[_0x263375(0x99)]+'.'+_0x44bf22;return{'key':'dataset-import/'+_0x473d7b+'/'+_0x5a2afb,'name':_0x5a2afb,'type':_0x5de788[_0x263375(0xa8)],'size':_0x5de788[_0x263375(0xd8)]};}function a147_0x32e0(_0x3147d0,_0x379512){_0x3147d0=_0x3147d0-0x8f;const _0x1995d2=a147_0x1995();let _0x32e0ce=_0x1995d2[_0x3147d0];return _0x32e0ce;}export function bindImageManifest(_0x4e91c3,_0x2a5c78,_0x528cfe){const _0x16a0b3=a147_0x32e0,_0x5eed98=new Map(_0x4e91c3[_0x16a0b3(0xe6)]?.[_0x16a0b3(0xc3)](_0x243549=>[_0x243549['contentHash'],_0x243549])),_0x277d71=new Map(_0x4e91c3[_0x16a0b3(0xee)]?.[_0x16a0b3(0xc3)](_0x5ace40=>[_0x5ace40[_0x16a0b3(0xb6)]+':'+_0x5ace40['field'],_0x5ace40[_0x16a0b3(0xd3)]]));return{..._0x4e91c3,'rows':_0x4e91c3[_0x16a0b3(0xcf)][_0x16a0b3(0xc3)](_0x1e9160=>({..._0x1e9160,'values':Object[_0x16a0b3(0xa2)](Object[_0x16a0b3(0xe8)](_0x1e9160[_0x16a0b3(0xc1)])[_0x16a0b3(0xc3)](([_0x31bb1d,_0x585c17])=>{const _0x37c415=_0x16a0b3,_0x1652cb=_0x277d71[_0x37c415(0xf1)](_0x1e9160[_0x37c415(0xb6)]+':'+_0x31bb1d);return[_0x31bb1d,_0x1652cb?_0x1652cb['map'](_0x42108e=>{const _0x10b589=_0x37c415,_0x2b7e3a=_0x5eed98[_0x10b589(0xf1)](_0x42108e);if(!_0x2b7e3a)throw Error(_0x10b589(0xd7));const _0x4b802d=imageObjectValue(_0x2a5c78,_0x528cfe,_0x2b7e3a);return _0x4e91c3[_0x10b589(0x98)]?.['includes'](_0x31bb1d)?{'fileName':_0x4b802d[_0x10b589(0xac)],'filePath':_0x4b802d[_0x10b589(0xbb)]}:_0x4b802d;}):_0x585c17];}))}))};}async function exists(_0x4e4059){const _0x511b75=a147_0x32e0;try{return await lstat(_0x4e4059),!![];}catch(_0x3bd060){if(_0x3bd060[_0x511b75(0xe2)]===_0x511b75(0x8f))return![];throw _0x3bd060;}}export async function runImageExcelImport(_0x12ffd8){const _0x1bfc64=a147_0x32e0;assertImportContract(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8[_0x1bfc64(0xa4)],_0x12ffd8[_0x1bfc64(0xcb)]),assertImageImportCapability(_0x12ffd8[_0x1bfc64(0x93)],_0x12ffd8['manifest']);if(!Number[_0x1bfc64(0xea)](_0x12ffd8[_0x1bfc64(0xd0)])||_0x12ffd8[_0x1bfc64(0xd0)]<0x1||_0x12ffd8[_0x1bfc64(0xd0)]>_0x12ffd8[_0x1bfc64(0x93)]['maxBatchSize'])throw Error(_0x1bfc64(0xed));if(_0x12ffd8[_0x1bfc64(0xda)][_0x1bfc64(0xf2)][_0x1bfc64(0xe3)]||!_0x12ffd8['manifest'][_0x1bfc64(0xcf)][_0x1bfc64(0xe3)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x15491d=await resolveImportOutputPath(_0x12ffd8['checkpoint']),_0x13dc24=await resolveImportOutputPath(_0x12ffd8[_0x1bfc64(0xa6)]),_0xb74edb=await resolveImportOutputPath(_0x15491d+'.rows.json'),_0x25dd98=await Promise[_0x1bfc64(0xf5)]([_0xb74edb,_0xb74edb+_0x1bfc64(0xef),_0xb74edb+'.lock.recovery',..._0x12ffd8[_0x1bfc64(0xc4)]??[]][_0x1bfc64(0xc3)](resolveImportOutputPath));for(const _0x13fd47 of[_0x15491d,_0x13dc24,_0x15491d+_0x1bfc64(0xef),_0x15491d+'.lock.recovery'])await resolveImportOutputPath(_0x13fd47);assertImportPaths(_0x15491d,_0x13dc24,_0x25dd98);const {contract:_0x4b51f1,manifest:_0x391aa3}=_0x12ffd8,_0xeb761e=_0x391aa3[_0x1bfc64(0xe6)]??[];if(new Set(_0xeb761e['map'](_0x22a8c6=>_0x22a8c6[_0x1bfc64(0x99)]))[_0x1bfc64(0xd8)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0xeb761e['reduce']((_0x5360f7,_0x3c7140)=>_0x5360f7+_0x3c7140[_0x1bfc64(0xd8)],0x0)>0x32*0x400*0x400||(_0x391aa3['imageCells']??[])['reduce']((_0xf2c99,_0x615190)=>_0xf2c99+_0x615190[_0x1bfc64(0xd3)]['length'],0x0)>0x2710)throw Error(_0x1bfc64(0xa3));for(const _0x1a34ec of _0xeb761e)if(_0x1a34ec[_0x1bfc64(0xd8)]!==_0x1a34ec[_0x1bfc64(0xcd)][_0x1bfc64(0xe3)]||createHash(_0x1bfc64(0xd9))[_0x1bfc64(0xf4)](_0x1a34ec[_0x1bfc64(0xcd)])[_0x1bfc64(0xba)](_0x1bfc64(0xbe))!==_0x1a34ec[_0x1bfc64(0x99)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x391aa3,_0x4b51f1,_0x1bfc64(0x9c)),_0x4b51f1,_0x12ffd8[_0x1bfc64(0xd0)]);const _0x3a5b4f={'appCode':_0x12ffd8['appCode'],'datasetCode':_0x12ffd8[_0x1bfc64(0xcb)],'runtimeDomain':_0x12ffd8[_0x1bfc64(0xa7)],'actorId':_0x4b51f1[_0x1bfc64(0x9e)],'fileHash':_0x391aa3[_0x1bfc64(0xbf)],'mappingHash':_0x391aa3[_0x1bfc64(0xd2)],'schemaHash':_0x391aa3[_0x1bfc64(0xb8)],'remoteSchemaHash':_0x4b51f1[_0x1bfc64(0xde)],'strategy':_0x4b51f1[_0x1bfc64(0x94)],'schemaVersion':_0x4b51f1[_0x1bfc64(0xeb)],'batchSize':_0x12ffd8[_0x1bfc64(0xd0)],'maxBatchBytes':_0x4b51f1[_0x1bfc64(0xd6)],'sheet':_0x391aa3[_0x1bfc64(0xc9)],'parserVersion':_0x391aa3['parserVersion'],'imageFields':_0x391aa3[_0x1bfc64(0xaf)],'cells':_0x391aa3[_0x1bfc64(0xee)],..._0x391aa3[_0x1bfc64(0x98)]?.[_0x1bfc64(0xe3)]?{'uploadFields':_0x391aa3[_0x1bfc64(0x98)]}:{},'media':_0xeb761e[_0x1bfc64(0xc3)](({contentHash:_0x21ea31,type:_0x4b363a,size:_0x34d6e9})=>({'contentHash':_0x21ea31,'type':_0x4b363a,'size':_0x34d6e9})),'rows':_0x391aa3['rows']},_0x58b06a=await acquireLock(_0x15491d);try{let _0x56bda4;if(_0x12ffd8[_0x1bfc64(0x90)]){try{_0x56bda4=JSON[_0x1bfc64(0xf6)](await readFile(_0x15491d,_0x1bfc64(0xc2)));}catch{throw Error('Cannot\x20read\x20the\x20image\x20import\x20checkpoint.');}if(_0x56bda4[_0x1bfc64(0xb0)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x56bda4[_0x1bfc64(0xd4)])||canonical(_0x56bda4[_0x1bfc64(0x9b)])!==canonical(_0x3a5b4f)||![_0x1bfc64(0xe6),_0x1bfc64(0x92),_0x1bfc64(0xdd),'completed'][_0x1bfc64(0xbc)](_0x56bda4['phase'])||!Array[_0x1bfc64(0xdc)](_0x56bda4[_0x1bfc64(0xe6)])||_0x56bda4[_0x1bfc64(0xe6)][_0x1bfc64(0xe3)]!==_0xeb761e[_0x1bfc64(0xe3)]||_0x56bda4['media']['some']((_0x28cc6a,_0xf78389)=>_0x28cc6a[_0x1bfc64(0xb9)]!==_0xeb761e[_0xf78389][_0x1bfc64(0x99)]||!['pending',_0x1bfc64(0xdf)]['includes'](_0x28cc6a[_0x1bfc64(0xad)])))throw Error(_0x1bfc64(0xe1));if([_0x1bfc64(0xdd),_0x1bfc64(0x96)]['includes'](_0x56bda4[_0x1bfc64(0xb1)])&&!await exists(_0xb74edb))throw Error(_0x1bfc64(0xaa));if(_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&await exists(_0xb74edb))throw Error(_0x1bfc64(0xa5));}else{if(await exists(_0x15491d)||await exists(_0xb74edb))throw Error(_0x1bfc64(0xb5));_0x56bda4={'version':0x3,'importId':randomUUID(),'binding':_0x3a5b4f,'phase':_0x1bfc64(0xe6),'media':_0xeb761e[_0x1bfc64(0xc3)](_0x201928=>({'hash':_0x201928['contentHash'],'status':'pending'}))},await saveImportJson(_0x15491d,_0x56bda4);}const _0x44bb7a=(_0x4cb897,_0x154279)=>{const _0x494ed0=_0x1bfc64;if(!_0x4cb897||_0x4cb897[_0x494ed0(0x99)]!==_0x154279[_0x494ed0(0x99)])throw Error(_0x494ed0(0xe0));if(_0x4cb897[_0x494ed0(0xad)]===_0x494ed0(0xf3))return undefined;const _0x15e196=imageObjectValue(_0x4b51f1,_0x56bda4[_0x494ed0(0xd4)],_0x154279);if(_0x4cb897[_0x494ed0(0xad)]!==_0x494ed0(0xdf)||_0x4cb897[_0x494ed0(0xb2)]!==_0x15e196['key']||_0x4cb897[_0x494ed0(0x95)]!==_0x15e196[_0x494ed0(0xac)]||_0x4cb897['type']!==_0x15e196[_0x494ed0(0xa8)]||_0x4cb897[_0x494ed0(0xd8)]!==_0x15e196['size'])throw Error('Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.');return _0x15e196;};for(let _0x435e4d=0x0;_0x435e4d<_0xeb761e[_0x1bfc64(0xe3)];_0x435e4d++){const _0x3cccf6=_0xeb761e[_0x435e4d],_0x39fba6=_0x56bda4[_0x1bfc64(0xe6)][_0x435e4d],_0x2346cd=imageObjectValue(_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6);if(_0x39fba6[_0x1bfc64(0xad)]==='succeeded'&&canonical(_0x39fba6[_0x1bfc64(0xce)])!==canonical(_0x2346cd))throw Error(_0x1bfc64(0xca));let _0x1a86b9;if(_0x12ffd8[_0x1bfc64(0x90)]||_0x39fba6['status']===_0x1bfc64(0xdf))_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9&&_0x39fba6['status']==='succeeded')throw Error(_0x1bfc64(0xdb));if(!_0x1a86b9){try{_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['upload'](_0x56bda4['importId'],_0x3cccf6),_0x3cccf6);}catch(_0x1207b9){_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)][_0x1bfc64(0xc0)](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x1a86b9)_0x1a86b9=_0x44bb7a(await _0x12ffd8[_0x1bfc64(0xc7)]['readback'](_0x56bda4[_0x1bfc64(0xd4)],_0x3cccf6),_0x3cccf6);if(!_0x1a86b9)throw Error(_0x1bfc64(0x97));}_0x39fba6[_0x1bfc64(0xad)]=_0x1bfc64(0xdf),_0x39fba6[_0x1bfc64(0xce)]=_0x1a86b9,await saveImportJson(_0x15491d,_0x56bda4);}const _0x4ffd25=bindImageManifest(_0x391aa3,_0x4b51f1,_0x56bda4[_0x1bfc64(0xd4)]),_0x11b9a0=_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0x92)?await exists(_0xb74edb):_0x56bda4[_0x1bfc64(0xb1)]!==_0x1bfc64(0xe6);_0x56bda4[_0x1bfc64(0xb1)]===_0x1bfc64(0xe6)&&(_0x56bda4[_0x1bfc64(0xb1)]='rows-preparing',await saveImportJson(_0x15491d,_0x56bda4));const _0x5ba374={..._0x12ffd8,'manifest':_0x4ffd25,'checkpoint':_0xb74edb,'report':_0x13dc24,'resume':_0x11b9a0,'onCheckpointReady':async()=>{const _0x41c9d1=_0x1bfc64;_0x56bda4['phase']=_0x41c9d1(0xdd),await saveImportJson(_0x15491d,_0x56bda4);}},_0x78f8ac=_0x4b51f1['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x5ba374,'reconcileImageConflicts':_0x12ffd8[_0x1bfc64(0x90)]===!![]&&_0x11b9a0}):await runExcelImport(_0x5ba374);return _0x56bda4['phase']='completed',await saveImportJson(_0x15491d,_0x56bda4),{..._0x78f8ac,'checkpoint':_0x15491d,'imageCount':_0x391aa3[_0x1bfc64(0xee)]?.[_0x1bfc64(0xd1)]((_0x3e1511,_0xb456a9)=>_0x3e1511+_0xb456a9['hashes']['length'],0x0)??0x0,'uniqueImages':_0xeb761e[_0x1bfc64(0xe3)]};}finally{await _0x58b06a();}}
1
+ (function(_0x1dd1d9,_0x4f05fc){const _0x1ce043=a147_0x14d6,_0x3062f3=_0x1dd1d9();while(!![]){try{const _0x1e4322=parseInt(_0x1ce043(0x1c4))/0x1*(parseInt(_0x1ce043(0x1d4))/0x2)+parseInt(_0x1ce043(0x1b2))/0x3+-parseInt(_0x1ce043(0x1ba))/0x4+parseInt(_0x1ce043(0x1da))/0x5+parseInt(_0x1ce043(0x1c0))/0x6+parseInt(_0x1ce043(0x1a9))/0x7+-parseInt(_0x1ce043(0x1a3))/0x8*(parseInt(_0x1ce043(0x1e2))/0x9);if(_0x1e4322===_0x4f05fc)break;else _0x3062f3['push'](_0x3062f3['shift']());}catch(_0x477bd3){_0x3062f3['push'](_0x3062f3['shift']());}}}(a147_0x2f1c,0x9c38f));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x57229e,_0x3ab9f7){const _0x12e743=a147_0x14d6;if(!_0x3ab9f7[_0x12e743(0x191)]?.[_0x12e743(0x19b)])return;const _0x290ad3=_0x57229e[_0x12e743(0x194)];if(!_0x290ad3||_0x290ad3['version']!==0x1||_0x290ad3[_0x12e743(0x1a0)]!=='sha256'||_0x290ad3['maxFileBytes']!==0xa00000||_0x290ad3['maxPixels']!==0x2625a00||!Array['isArray'](_0x290ad3[_0x12e743(0x1b1)])||!['image/png','image/jpeg','image/gif'][_0x12e743(0x18f)](_0x145b2b=>_0x290ad3[_0x12e743(0x1b1)]['includes'](_0x145b2b)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x5dd008,_0xa2940a,_0x40814a){const _0x1e9675=a147_0x14d6,_0x25d40c=createHash(_0x1e9675(0x1d8))[_0x1e9675(0x1dd)](JSON[_0x1e9675(0x1a4)]([_0x5dd008[_0x1e9675(0x1e0)],_0x5dd008[_0x1e9675(0x19e)],_0x5dd008[_0x1e9675(0x1be)],_0xa2940a]))[_0x1e9675(0x189)](_0x1e9675(0x1cb)),_0x62b0e4={'image/png':'png','image/jpeg':'jpg','image/gif':_0x1e9675(0x1d1)}[_0x40814a[_0x1e9675(0x197)]];if(!_0x62b0e4||!/^[0-9a-f]{64}$/[_0x1e9675(0x1c3)](_0x40814a['contentHash'])||!Number[_0x1e9675(0x1b3)](_0x40814a['size'])||_0x40814a[_0x1e9675(0x1e3)]<=0x0||_0x40814a[_0x1e9675(0x1e3)]>0xa00000)throw Error(_0x1e9675(0x193));const _0x424408=_0x40814a[_0x1e9675(0x1d7)]+'.'+_0x62b0e4;return{'key':_0x1e9675(0x1bf)+_0x25d40c+'/'+_0x424408,'name':_0x424408,'type':_0x40814a[_0x1e9675(0x197)],'size':_0x40814a[_0x1e9675(0x1e3)]};}export function bindImageManifest(_0x391996,_0x472099,_0x2ab0b7){const _0xaca2d2=a147_0x14d6,_0x4de3e0=new Map(_0x391996['media']?.[_0xaca2d2(0x1d5)](_0x2755b9=>[_0x2755b9[_0xaca2d2(0x1d7)],_0x2755b9])),_0x36bf85=new Map(_0x391996[_0xaca2d2(0x1d3)]?.[_0xaca2d2(0x1d5)](_0x20ddea=>[_0x20ddea[_0xaca2d2(0x1a8)]+':'+_0x20ddea[_0xaca2d2(0x199)],_0x20ddea[_0xaca2d2(0x1bc)]]));return{..._0x391996,'rows':_0x391996[_0xaca2d2(0x1b8)][_0xaca2d2(0x1d5)](_0x9e4705=>({..._0x9e4705,'values':Object[_0xaca2d2(0x1a6)](Object['entries'](_0x9e4705[_0xaca2d2(0x18d)])[_0xaca2d2(0x1d5)](([_0x23d0b5,_0x2d4458])=>{const _0x531b0e=_0xaca2d2,_0x5e71cd=_0x36bf85[_0x531b0e(0x18a)](_0x9e4705[_0x531b0e(0x1a8)]+':'+_0x23d0b5);return[_0x23d0b5,_0x5e71cd?_0x5e71cd[_0x531b0e(0x1d5)](_0x316a5a=>{const _0x144540=_0x531b0e,_0x6cd31f=_0x4de3e0[_0x144540(0x18a)](_0x316a5a);if(!_0x6cd31f)throw Error(_0x144540(0x1ab));const _0x4b7fee=imageObjectValue(_0x472099,_0x2ab0b7,_0x6cd31f);return _0x391996['uploadFields']?.['includes'](_0x23d0b5)?{'fileName':_0x4b7fee['name'],'filePath':_0x4b7fee[_0x144540(0x1d0)]}:_0x4b7fee;}):_0x2d4458];}))}))};}function a147_0x14d6(_0x32defc,_0x49fc37){_0x32defc=_0x32defc-0x186;const _0x2f1ce6=a147_0x2f1c();let _0x14d686=_0x2f1ce6[_0x32defc];return _0x14d686;}async function exists(_0xfff907){const _0x40fb3b=a147_0x14d6;try{return await lstat(_0xfff907),!![];}catch(_0x13d8fd){if(_0x13d8fd[_0x40fb3b(0x19a)]===_0x40fb3b(0x1b5))return![];throw _0x13d8fd;}}export async function runImageExcelImport(_0xd628cb){const _0x186f68=a147_0x14d6;assertImportContract(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x19e)],_0xd628cb['datasetCode']),assertImageImportCapability(_0xd628cb[_0x186f68(0x198)],_0xd628cb[_0x186f68(0x186)]);if(!Number[_0x186f68(0x1bd)](_0xd628cb[_0x186f68(0x1c6)])||_0xd628cb[_0x186f68(0x1c6)]<0x1||_0xd628cb[_0x186f68(0x1c6)]>_0xd628cb['contract'][_0x186f68(0x1e9)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0xd628cb['manifest']['errors']['length']||!_0xd628cb['manifest'][_0x186f68(0x1b8)][_0x186f68(0x19b)])throw Error(_0x186f68(0x1b9));const _0xbe1661=await resolveImportOutputPath(_0xd628cb[_0x186f68(0x1e5)]),_0x2c635f=await resolveImportOutputPath(_0xd628cb['report']),_0x29cb81=await resolveImportOutputPath(_0xbe1661+_0x186f68(0x1b7)),_0x41b64c=await Promise[_0x186f68(0x188)]([_0x29cb81,_0x29cb81+_0x186f68(0x1d2),_0x29cb81+_0x186f68(0x187),..._0xd628cb['inputPaths']??[]]['map'](resolveImportOutputPath));for(const _0x3fdd00 of[_0xbe1661,_0x2c635f,_0xbe1661+'.lock',_0xbe1661+'.lock.recovery'])await resolveImportOutputPath(_0x3fdd00);assertImportPaths(_0xbe1661,_0x2c635f,_0x41b64c);const {contract:_0x299b58,manifest:_0x293353}=_0xd628cb,_0x40ff94=_0x293353[_0x186f68(0x191)]??[];if(new Set(_0x40ff94[_0x186f68(0x1d5)](_0x3ad2c5=>_0x3ad2c5[_0x186f68(0x1d7)]))[_0x186f68(0x1e3)]!==_0x40ff94['length']||_0x40ff94['reduce']((_0x5a31ce,_0x37dd44)=>_0x5a31ce+_0x37dd44['size'],0x0)>0x32*0x400*0x400||(_0x293353[_0x186f68(0x1d3)]??[])[_0x186f68(0x1c7)]((_0x5bc00a,_0x5634d0)=>_0x5bc00a+_0x5634d0['hashes'][_0x186f68(0x19b)],0x0)>0x2710)throw Error(_0x186f68(0x1a2));for(const _0x387544 of _0x40ff94)if(_0x387544[_0x186f68(0x1e3)]!==_0x387544[_0x186f68(0x1c1)][_0x186f68(0x19b)]||createHash(_0x186f68(0x1d8))[_0x186f68(0x1dd)](_0x387544[_0x186f68(0x1c1)])[_0x186f68(0x189)](_0x186f68(0x1cb))!==_0x387544[_0x186f68(0x1d7)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0x293353,_0x299b58,_0x186f68(0x1ae)),_0x299b58,_0xd628cb['batchSize']);const _0x5eb288={'appCode':_0xd628cb[_0x186f68(0x19e)],'datasetCode':_0xd628cb[_0x186f68(0x1be)],'runtimeDomain':_0xd628cb['runtimeDomain'],'actorId':_0x299b58[_0x186f68(0x1e0)],'fileHash':_0x293353[_0x186f68(0x1e8)],'mappingHash':_0x293353[_0x186f68(0x1e6)],'schemaHash':_0x293353[_0x186f68(0x190)],'remoteSchemaHash':_0x299b58[_0x186f68(0x1ac)],'strategy':_0x299b58[_0x186f68(0x18e)],'schemaVersion':_0x299b58[_0x186f68(0x19d)],'batchSize':_0xd628cb[_0x186f68(0x1c6)],'maxBatchBytes':_0x299b58['maxBatchBytes'],'sheet':_0x293353[_0x186f68(0x1af)],'parserVersion':_0x293353[_0x186f68(0x195)],'imageFields':_0x293353[_0x186f68(0x1aa)],'cells':_0x293353['imageCells'],..._0x293353[_0x186f68(0x1ce)]?.[_0x186f68(0x19b)]?{'uploadFields':_0x293353[_0x186f68(0x1ce)]}:{},'media':_0x40ff94[_0x186f68(0x1d5)](({contentHash:_0x92b1c5,type:_0x53e624,size:_0x2621ea})=>({'contentHash':_0x92b1c5,'type':_0x53e624,'size':_0x2621ea})),'rows':_0x293353[_0x186f68(0x1b8)]},_0x15abc0=await acquireLock(_0xbe1661);try{let _0x39f796;if(_0xd628cb[_0x186f68(0x192)]){try{_0x39f796=JSON[_0x186f68(0x1d6)](await readFile(_0xbe1661,_0x186f68(0x1ca)));}catch{throw Error(_0x186f68(0x1a7));}if(_0x39f796[_0x186f68(0x1c8)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x39f796[_0x186f68(0x1a1)])||canonical(_0x39f796[_0x186f68(0x1e1)])!==canonical(_0x5eb288)||![_0x186f68(0x191),'rows-preparing',_0x186f68(0x196),_0x186f68(0x1d9)][_0x186f68(0x19f)](_0x39f796['phase'])||!Array[_0x186f68(0x1de)](_0x39f796[_0x186f68(0x191)])||_0x39f796[_0x186f68(0x191)][_0x186f68(0x19b)]!==_0x40ff94[_0x186f68(0x19b)]||_0x39f796['media'][_0x186f68(0x1df)]((_0x57ce51,_0x184075)=>_0x57ce51[_0x186f68(0x1b6)]!==_0x40ff94[_0x184075][_0x186f68(0x1d7)]||![_0x186f68(0x1db),_0x186f68(0x1b0)]['includes'](_0x57ce51[_0x186f68(0x1c9)])))throw Error(_0x186f68(0x1cc));if(['rows-started','completed'][_0x186f68(0x19f)](_0x39f796[_0x186f68(0x1e7)])&&!await exists(_0x29cb81))throw Error(_0x186f68(0x1a5));if(_0x39f796['phase']===_0x186f68(0x191)&&await exists(_0x29cb81))throw Error(_0x186f68(0x1c2));}else{if(await exists(_0xbe1661)||await exists(_0x29cb81))throw Error(_0x186f68(0x1bb));_0x39f796={'version':0x3,'importId':randomUUID(),'binding':_0x5eb288,'phase':_0x186f68(0x191),'media':_0x40ff94[_0x186f68(0x1d5)](_0xed40c3=>({'hash':_0xed40c3[_0x186f68(0x1d7)],'status':'pending'}))},await saveImportJson(_0xbe1661,_0x39f796);}const _0x406de1=(_0x3a9544,_0x3b7496)=>{const _0x2184cb=_0x186f68;if(!_0x3a9544||_0x3a9544['contentHash']!==_0x3b7496[_0x2184cb(0x1d7)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x3a9544[_0x2184cb(0x1c9)]===_0x2184cb(0x1ad))return undefined;const _0x2b2131=imageObjectValue(_0x299b58,_0x39f796[_0x2184cb(0x1a1)],_0x3b7496);if(_0x3a9544[_0x2184cb(0x1c9)]!==_0x2184cb(0x1b0)||_0x3a9544['filePath']!==_0x2b2131[_0x2184cb(0x1d0)]||_0x3a9544['fileName']!==_0x2b2131[_0x2184cb(0x18b)]||_0x3a9544[_0x2184cb(0x197)]!==_0x2b2131[_0x2184cb(0x197)]||_0x3a9544[_0x2184cb(0x1e3)]!==_0x2b2131[_0x2184cb(0x1e3)])throw Error(_0x2184cb(0x18c));return _0x2b2131;};for(let _0x127785=0x0;_0x127785<_0x40ff94[_0x186f68(0x19b)];_0x127785++){const _0x277b62=_0x40ff94[_0x127785],_0x2bc745=_0x39f796['media'][_0x127785],_0x4fa8d8=imageObjectValue(_0x299b58,_0x39f796[_0x186f68(0x1a1)],_0x277b62);if(_0x2bc745['status']===_0x186f68(0x1b0)&&canonical(_0x2bc745[_0x186f68(0x1e4)])!==canonical(_0x4fa8d8))throw Error(_0x186f68(0x1cf));let _0x2b170f;if(_0xd628cb[_0x186f68(0x192)]||_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f&&_0x2bc745[_0x186f68(0x1c9)]===_0x186f68(0x1b0))throw Error(_0x186f68(0x1c5));if(!_0x2b170f){try{_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['upload'](_0x39f796['importId'],_0x277b62),_0x277b62);}catch(_0x3aba05){_0x2b170f=_0x406de1(await _0xd628cb[_0x186f68(0x1b4)]['readback'](_0x39f796['importId'],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x2b170f)_0x2b170f=_0x406de1(await _0xd628cb['imageApi'][_0x186f68(0x19c)](_0x39f796[_0x186f68(0x1a1)],_0x277b62),_0x277b62);if(!_0x2b170f)throw Error(_0x186f68(0x1cd));}_0x2bc745[_0x186f68(0x1c9)]='succeeded',_0x2bc745['value']=_0x2b170f,await saveImportJson(_0xbe1661,_0x39f796);}const _0x1eab03=bindImageManifest(_0x293353,_0x299b58,_0x39f796['importId']),_0x1abfd5=_0x39f796[_0x186f68(0x1e7)]==='rows-preparing'?await exists(_0x29cb81):_0x39f796['phase']!==_0x186f68(0x191);_0x39f796[_0x186f68(0x1e7)]===_0x186f68(0x191)&&(_0x39f796['phase']=_0x186f68(0x1dc),await saveImportJson(_0xbe1661,_0x39f796));const _0x209e49={..._0xd628cb,'manifest':_0x1eab03,'checkpoint':_0x29cb81,'report':_0x2c635f,'resume':_0x1abfd5,'onCheckpointReady':async()=>{const _0x144a00=_0x186f68;_0x39f796['phase']=_0x144a00(0x196),await saveImportJson(_0xbe1661,_0x39f796);}},_0x44c946=_0x299b58[_0x186f68(0x19d)]===0x2?await runAutoIdExcelImport({..._0x209e49,'reconcileImageConflicts':_0xd628cb[_0x186f68(0x192)]===!![]&&_0x1abfd5}):await runExcelImport(_0x209e49);return _0x39f796['phase']=_0x186f68(0x1d9),await saveImportJson(_0xbe1661,_0x39f796),{..._0x44c946,'checkpoint':_0xbe1661,'imageCount':_0x293353[_0x186f68(0x1d3)]?.[_0x186f68(0x1c7)]((_0x20d206,_0x2cf437)=>_0x20d206+_0x2cf437[_0x186f68(0x1bc)][_0x186f68(0x19b)],0x0)??0x0,'uniqueImages':_0x40ff94[_0x186f68(0x19b)]};}finally{await _0x15abc0();}}function a147_0x2f1c(){const _0x5237c7=['imageFields','Image\x20cell\x20references\x20missing\x20media.','schemaFingerprint','missing','00000000-0000-4000-8000-000000000000','sheet','succeeded','types','911106CXDckp','isSafeInteger','imageApi','ENOENT','hash','.rows.json','rows','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','3610360LGcxUP','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','hashes','isInteger','datasetCode','dataset-import/','4432386NlLhRj','bytes','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','test','133141KALpJJ','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','batchSize','reduce','version','status','utf8','hex','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','uploadFields','Completed\x20image\x20checkpoint\x20value\x20changed.','key','gif','.lock','imageCells','14ofAsJy','map','parse','contentHash','sha256','completed','181355ahiNJK','pending','rows-preparing','update','isArray','some','actorId','binding','54LTELDA','size','value','checkpoint','mappingHash','phase','fileHash','maxBatchSize','manifest','.lock.recovery','all','digest','get','name','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','values','strategy','every','schemaHash','media','resume','Invalid\x20image\x20media\x20descriptor.','imageImport','parserVersion','rows-started','type','contract','field','code','length','readback','schemaVersion','appCode','includes','uploadId','importId','Invalid\x20image\x20manifest\x20limits.','842056VVwRoa','stringify','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','fromEntries','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','rowNumber','1143296NgpBKY'];a147_0x2f1c=function(){return _0x5237c7;};return a147_0x2f1c();}
@@ -1 +1 @@
1
- function a148_0x3e03(){const _0xf362de=['50WhnROb','398kMahVU','dataset','some','375NIpkEr','2702700NwHmmD','datasetCode','465553FDKOdo','isArray','3671aovtKh','1629088iXpmhl','6FWFjUW','appCode','Dataset\x20source\x20metadata\x20is\x20inconsistent.','4108rTikbf','1216135yPTmlv','654227KskqCr','object','code','sourceType','modelCode','filter'];a148_0x3e03=function(){return _0xf362de;};return a148_0x3e03();}function a148_0x584b(_0x3ab2d8,_0x29aa65){_0x3ab2d8=_0x3ab2d8-0x1ab;const _0x3e03a5=a148_0x3e03();let _0x584b35=_0x3e03a5[_0x3ab2d8];return _0x584b35;}(function(_0x3078d9,_0x4c8c57){const _0x2e0d1e=a148_0x584b,_0x56a3ec=_0x3078d9();while(!![]){try{const _0x530884=parseInt(_0x2e0d1e(0x1ac))/0x1*(parseInt(_0x2e0d1e(0x1ba))/0x2)+-parseInt(_0x2e0d1e(0x1bd))/0x3*(-parseInt(_0x2e0d1e(0x1b1))/0x4)+-parseInt(_0x2e0d1e(0x1b2))/0x5*(parseInt(_0x2e0d1e(0x1ae))/0x6)+parseInt(_0x2e0d1e(0x1b3))/0x7+-parseInt(_0x2e0d1e(0x1ad))/0x8+-parseInt(_0x2e0d1e(0x1be))/0x9+-parseInt(_0x2e0d1e(0x1b9))/0xa*(-parseInt(_0x2e0d1e(0x1c0))/0xb);if(_0x530884===_0x4c8c57)break;else _0x56a3ec['push'](_0x56a3ec['shift']());}catch(_0x1c6dee){_0x56a3ec['push'](_0x56a3ec['shift']());}}}(a148_0x3e03,0x65c31));export function assertDatasetImportTarget(_0xa35c5c,_0x545420,_0x5bb289){const _0x1e7390=a148_0x584b;if(!_0xa35c5c||typeof _0xa35c5c!==_0x1e7390(0x1b4)||Array[_0x1e7390(0x1ab)](_0xa35c5c))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x5f2e9d=[_0xa35c5c[_0x1e7390(0x1b5)],_0xa35c5c[_0x1e7390(0x1b7)],_0xa35c5c['dataset']?.[_0x1e7390(0x1bf)]][_0x1e7390(0x1b8)](_0x1106a2=>_0x1106a2!=null);if(!_0x5f2e9d['length']||_0x5f2e9d[_0x1e7390(0x1bc)](_0xa3cb9a=>_0xa3cb9a!==_0x5bb289)||_0xa35c5c['appCode']!=null&&_0xa35c5c[_0x1e7390(0x1af)]!==_0x545420||_0xa35c5c[_0x1e7390(0x1bb)]?.[_0x1e7390(0x1af)]!=null&&_0xa35c5c[_0x1e7390(0x1bb)][_0x1e7390(0x1af)]!==_0x545420)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x7ebca7=[_0xa35c5c['source'],_0xa35c5c['dataset']?.[_0x1e7390(0x1b6)]]['filter'](_0xa5d72b=>_0xa5d72b!=null);if(_0x7ebca7[_0x1e7390(0x1bc)](_0x3abaf2=>typeof _0x3abaf2!=='string'||_0x3abaf2!==_0x7ebca7[0x0]))throw Error(_0x1e7390(0x1b0));return _0x7ebca7[0x0];}
1
+ (function(_0x263c50,_0x441b44){const _0x1bd73a=a148_0x4324,_0x3c1b49=_0x263c50();while(!![]){try{const _0x27441b=parseInt(_0x1bd73a(0xd6))/0x1*(-parseInt(_0x1bd73a(0xd8))/0x2)+-parseInt(_0x1bd73a(0xde))/0x3+parseInt(_0x1bd73a(0xd9))/0x4*(parseInt(_0x1bd73a(0xdd))/0x5)+parseInt(_0x1bd73a(0xd3))/0x6+parseInt(_0x1bd73a(0xe5))/0x7+-parseInt(_0x1bd73a(0xd7))/0x8*(parseInt(_0x1bd73a(0xd0))/0x9)+parseInt(_0x1bd73a(0xdf))/0xa;if(_0x27441b===_0x441b44)break;else _0x3c1b49['push'](_0x3c1b49['shift']());}catch(_0x1aabbe){_0x3c1b49['push'](_0x3c1b49['shift']());}}}(a148_0x2bbb,0x2c0dc));function a148_0x4324(_0x393399,_0x2fb8cd){_0x393399=_0x393399-0xce;const _0x2bbbc3=a148_0x2bbb();let _0x4324d5=_0x2bbbc3[_0x393399];return _0x4324d5;}export function assertDatasetImportTarget(_0xa321d0,_0x761745,_0x359934){const _0x2d1178=a148_0x4324;if(!_0xa321d0||typeof _0xa321d0!==_0x2d1178(0xce)||Array[_0x2d1178(0xda)](_0xa321d0))throw Error('Dataset\x20metadata\x20is\x20missing.');const _0x23d22=[_0xa321d0[_0x2d1178(0xd5)],_0xa321d0[_0x2d1178(0xe2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xd4)]][_0x2d1178(0xe0)](_0x7d7a82=>_0x7d7a82!=null);if(!_0x23d22[_0x2d1178(0xe3)]||_0x23d22[_0x2d1178(0xdb)](_0x171b95=>_0x171b95!==_0x359934)||_0xa321d0[_0x2d1178(0xcf)]!=null&&_0xa321d0['appCode']!==_0x761745||_0xa321d0[_0x2d1178(0xd1)]?.['appCode']!=null&&_0xa321d0['dataset'][_0x2d1178(0xcf)]!==_0x761745)throw Error('Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.');const _0x4bed67=[_0xa321d0[_0x2d1178(0xd2)],_0xa321d0[_0x2d1178(0xd1)]?.[_0x2d1178(0xe1)]][_0x2d1178(0xe0)](_0x2e6e34=>_0x2e6e34!=null);if(_0x4bed67[_0x2d1178(0xdb)](_0x303bfd=>typeof _0x303bfd!==_0x2d1178(0xdc)||_0x303bfd!==_0x4bed67[0x0]))throw Error(_0x2d1178(0xe4));return _0x4bed67[0x0];}function a148_0x2bbb(){const _0x82a6be=['4240660aHkTGo','filter','sourceType','modelCode','length','Dataset\x20source\x20metadata\x20is\x20inconsistent.','1167516klkZSR','object','appCode','58761ofyKbr','dataset','source','831936BfrPgi','datasetCode','code','14845xYtdpL','48NUoZfV','34vLBagl','12ewWDzF','isArray','some','string','68695Xjrvyj','896232OLEnpN'];a148_0x2bbb=function(){return _0x82a6be;};return a148_0x2bbb();}
@@ -1 +1 @@
1
- function a149_0x33f2(){const _0x3cc614=['915447QxxiZK','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','414DHHNjZ','schemaFingerprint','push','rows','1015846rzcSkA','values','5783784Tpaunx','4aLOgaF','2185055etWSzV','length','404394JEUWJj','byteLength','stringify','76027ofaAaO','schemaVersion','17445699ApkVwX','Excel\x20row\x20','utf8'];a149_0x33f2=function(){return _0x3cc614;};return a149_0x33f2();}(function(_0x48944a,_0x3583e0){const _0x5c10d8=a149_0x4109,_0x411f3f=_0x48944a();while(!![]){try{const _0x61ad8=parseInt(_0x5c10d8(0xf4))/0x1+-parseInt(_0x5c10d8(0xee))/0x2+parseInt(_0x5c10d8(0xe8))/0x3*(-parseInt(_0x5c10d8(0xf1))/0x4)+parseInt(_0x5c10d8(0xf2))/0x5+-parseInt(_0x5c10d8(0xea))/0x6*(parseInt(_0x5c10d8(0xf7))/0x7)+-parseInt(_0x5c10d8(0xf0))/0x8+parseInt(_0x5c10d8(0xe5))/0x9;if(_0x61ad8===_0x3583e0)break;else _0x411f3f['push'](_0x411f3f['shift']());}catch(_0x400805){_0x411f3f['push'](_0x411f3f['shift']());}}}(a149_0x33f2,0x78b1a));function a149_0x4109(_0x891de4,_0x36970d){_0x891de4=_0x891de4-0xe4;const _0x33f2d7=a149_0x33f2();let _0x410917=_0x33f2d7[_0x891de4];return _0x410917;}export function previewImportBatchCount(_0xf37f43,_0x3b576b,_0x321090){const _0x59ef6a=a149_0x4109,_0x551885=_0x3c0802=>_0x3c0802['map'](_0xb066fc=>_0x3b576b[_0x59ef6a(0xe4)]===0x1?{..._0xf37f43[_0x59ef6a(0xed)][_0xb066fc]['values'],'id':-0x1fffffffffffff}:_0xf37f43['rows'][_0xb066fc][_0x59ef6a(0xef)]),_0x3ce541=_0x2c42c1=>Buffer[_0x59ef6a(0xf5)](JSON[_0x59ef6a(0xf6)]({'schemaFingerprint':_0x3b576b[_0x59ef6a(0xeb)],..._0x3b576b[_0x59ef6a(0xe4)]===0x2?{'taskId':0x2**0x34}:{},'items':_0x551885(_0x2c42c1)}),_0x59ef6a(0xe7));let _0x4e3389=0x0,_0x48a755=[];for(let _0xc2bc78=0x0;_0xc2bc78<_0xf37f43[_0x59ef6a(0xed)][_0x59ef6a(0xf3)];_0xc2bc78++){if(_0x3ce541([_0xc2bc78])>_0x3b576b['maxBatchBytes'])throw Error(_0x59ef6a(0xe6)+_0xf37f43[_0x59ef6a(0xed)][_0xc2bc78]['rowNumber']+_0x59ef6a(0xe9));_0x48a755[_0x59ef6a(0xf3)]&&(_0x48a755['length']===_0x321090||_0x3ce541([..._0x48a755,_0xc2bc78])>_0x3b576b['maxBatchBytes'])&&(_0x4e3389++,_0x48a755=[]),_0x48a755[_0x59ef6a(0xec)](_0xc2bc78);}return _0x4e3389+Number(_0x48a755[_0x59ef6a(0xf3)]>0x0);}
1
+ function a149_0x37d1(_0x4fbea7,_0x22d3ee){_0x4fbea7=_0x4fbea7-0x182;const _0x578c26=a149_0x578c();let _0x37d10b=_0x578c26[_0x4fbea7];return _0x37d10b;}function a149_0x578c(){const _0xd8adb=['6BXOVUk','156141tNSPQJ','1765708jUNThM','push','279485bTHsLu','1047676pzEgIE','6zYwNFK','stringify','schemaFingerprint','4150953tfEntq','rows','schemaVersion','values','rowNumber','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','3071MUlwAn','Excel\x20row\x20','10rMgqnu','length','byteLength','maxBatchBytes','2098064HubBww','utf8'];a149_0x578c=function(){return _0xd8adb;};return a149_0x578c();}(function(_0x2cbeab,_0x1af645){const _0x23c79d=a149_0x37d1,_0xf61905=_0x2cbeab();while(!![]){try{const _0x11f673=parseInt(_0x23c79d(0x186))/0x1*(parseInt(_0x23c79d(0x18e))/0x2)+-parseInt(_0x23c79d(0x18f))/0x3+parseInt(_0x23c79d(0x193))/0x4+-parseInt(_0x23c79d(0x192))/0x5+parseInt(_0x23c79d(0x194))/0x6*(parseInt(_0x23c79d(0x190))/0x7)+parseInt(_0x23c79d(0x18c))/0x8+-parseInt(_0x23c79d(0x197))/0x9*(parseInt(_0x23c79d(0x188))/0xa);if(_0x11f673===_0x1af645)break;else _0xf61905['push'](_0xf61905['shift']());}catch(_0x37b8c9){_0xf61905['push'](_0xf61905['shift']());}}}(a149_0x578c,0x34d99));export function previewImportBatchCount(_0x36a6c8,_0x15bb01,_0xab25d3){const _0x15db31=a149_0x37d1,_0x25b92c=_0x28bb64=>_0x28bb64['map'](_0x4bd377=>_0x15bb01[_0x15db31(0x182)]===0x1?{..._0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)],'id':-0x1fffffffffffff}:_0x36a6c8['rows'][_0x4bd377][_0x15db31(0x183)]),_0x491d38=_0x3dd828=>Buffer[_0x15db31(0x18a)](JSON[_0x15db31(0x195)]({'schemaFingerprint':_0x15bb01[_0x15db31(0x196)],..._0x15bb01['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x25b92c(_0x3dd828)}),_0x15db31(0x18d));let _0x3727eb=0x0,_0x1765c3=[];for(let _0x115fca=0x0;_0x115fca<_0x36a6c8[_0x15db31(0x198)][_0x15db31(0x189)];_0x115fca++){if(_0x491d38([_0x115fca])>_0x15bb01['maxBatchBytes'])throw Error(_0x15db31(0x187)+_0x36a6c8[_0x15db31(0x198)][_0x115fca][_0x15db31(0x184)]+_0x15db31(0x185));_0x1765c3[_0x15db31(0x189)]&&(_0x1765c3['length']===_0xab25d3||_0x491d38([..._0x1765c3,_0x115fca])>_0x15bb01[_0x15db31(0x18b)])&&(_0x3727eb++,_0x1765c3=[]),_0x1765c3[_0x15db31(0x191)](_0x115fca);}return _0x3727eb+Number(_0x1765c3[_0x15db31(0x189)]>0x0);}