@lovrabet/lovrabet-cli 2.3.11-beta.1 → 2.3.12-beta.1
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.d.ts +13 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +3 -2
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1fedd7,_0x387188){const _0x428a53=a141_0x4040,_0x23e687=_0x1fedd7();while(!![]){try{const _0x261921=parseInt(_0x428a53(0x91))/0x1+-parseInt(_0x428a53(0x9a))/0x2*(-parseInt(_0x428a53(0x97))/0x3)+-parseInt(_0x428a53(0x8e))/0x4+parseInt(_0x428a53(0xa3))/0x5*(parseInt(_0x428a53(0x94))/0x6)+parseInt(_0x428a53(0x9c))/0x7+-parseInt(_0x428a53(0x9b))/0x8+-parseInt(_0x428a53(0xa2))/0x9;if(_0x261921===_0x387188)break;else _0x23e687['push'](_0x23e687['shift']());}catch(_0x52b90b){_0x23e687['push'](_0x23e687['shift']());}}}(a141_0x19c0,0x57aad));import a141_0x456268 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a141_0x4040(_0x465642,_0x22d77b){_0x465642=_0x465642-0x8e;const _0x19c0e9=a141_0x19c0();let _0x404008=_0x19c0e9[_0x465642];return _0x404008;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x1fc7e9){const _0x26c31f=a141_0x4040,_0x51724a=a141_0x456268('',{'importMeta':import.meta,'argv':_0x1fc7e9,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xc7010e=[..._0x51724a[_0x26c31f(0x98)]],_0x1886a3=_0x51724a[_0x26c31f(0x90)];await correctFlags(_0x1886a3);const _0x219e7b=_0xc7010e[0x0];if(!_0x219e7b)throw CliErrors[_0x26c31f(0xa5)](_0x26c31f(0xa0));const _0x5029b5=resolveRemovedCommand(_0x219e7b,_0xc7010e[0x1]);if(_0x5029b5)throw CliErrors['validation'](_0x5029b5[_0x26c31f(0x9f)],_0x5029b5[_0x26c31f(0x96)]);if(!isKnownService(_0x219e7b)){const _0x4a2c6a=resolveDynamicServiceCommand(_0xc7010e,_0x1886a3);if(!_0x4a2c6a)throw CliErrors[_0x26c31f(0x92)](_0xc7010e[_0x26c31f(0x8f)]('\x20'));return Object[_0x26c31f(0xa1)](_0x1886a3,_0x4a2c6a[_0x26c31f(0x90)]),{'definition':_0x4a2c6a['definition'],'rawFlags':_0x1886a3,'args':_0x4a2c6a[_0x26c31f(0x9e)]};}const _0x34113e=getServiceEntry(_0x219e7b),_0x291a04=_0xc7010e[0x1]||_0x34113e['defaultCommand'];if(!_0x291a04)throw CliErrors[_0x26c31f(0xa5)](_0x26c31f(0x9d)+_0x219e7b+'\x22.');const _0x1355cf=findDefinition(_0x219e7b,_0x291a04);if(!_0x1355cf)throw CliErrors['unknownCommand'](_0x219e7b+'\x20'+_0x291a04);return{'definition':_0x1355cf,'rawFlags':_0x1886a3,'args':_0xc7010e[_0x26c31f(0x93)](0x2)};}function a141_0x19c0(){const _0x3aca7a=['assign','3890565gVMRYr','1700tcXlhl','../commands/registry.js','validation','2317320tpcnst','join','flags','229354wYTYTH','unknownCommand','slice','11970FPYChU','../framework/preparse.js','hint','535158KQaTKZ','input','flatMap','4zCXvJK','3908600dsWhTZ','4163943Ajqgoa','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','args','message','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.'];a141_0x19c0=function(){return _0x3aca7a;};return a141_0x19c0();}async function correctFlags(_0x332d54){const _0x20cfa7=a141_0x4040;try{const {correctFlags:_0x4b0c87}=await import(_0x20cfa7(0x95)),{getAllDefinitions:_0x2c1fc4}=await import(_0x20cfa7(0xa4)),_0x3dffd8=_0x2c1fc4()[_0x20cfa7(0x99)](_0x141ffa=>_0x141ffa['flags']??[]),_0x154ddb=_0x4b0c87(_0x332d54,_0x3dffd8);Object['assign'](_0x332d54,_0x154ddb[_0x20cfa7(0x90)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143_0x10fef2=a143_0xf328;(function(_0xaea109,_0x507dfd){const _0x32fed3=a143_0xf328,_0x387286=_0xaea109();while(!![]){try{const _0x73606d=parseInt(_0x32fed3(0xd6))/0x1+-parseInt(_0x32fed3(0x103))/0x2*(parseInt(_0x32fed3(0xe8))/0x3)+parseInt(_0x32fed3(0xd7))/0x4+parseInt(_0x32fed3(0xd1))/0x5+parseInt(_0x32fed3(0xdc))/0x6*(parseInt(_0x32fed3(0xdd))/0x7)+-parseInt(_0x32fed3(0xda))/0x8*(parseInt(_0x32fed3(0xdf))/0x9)+parseInt(_0x32fed3(0xdb))/0xa*(-parseInt(_0x32fed3(0xe0))/0xb);if(_0x73606d===_0x507dfd)break;else _0x387286['push'](_0x387286['shift']());}catch(_0x5a255d){_0x387286['push'](_0x387286['shift']());}}}(a143_0x1f01,0xb769b));import{randomBytes,randomUUID}from'node:crypto';function a143_0xf328(_0x63dc8,_0x1d112e){_0x63dc8=_0x63dc8-0xc3;const _0x1f0164=a143_0x1f01();let _0xf32868=_0x1f0164[_0x63dc8];return _0xf32868;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x50fc91=>typeof _0x50fc91==='number'&&Number[a143_0x10fef2(0x112)](_0x50fc91)&&_0x50fc91>0x0;export async function runAutoIdExcelImport(_0x1d63b3){const _0x52c6ad=a143_0x10fef2,_0x13e20c={..._0x1d63b3,'checkpoint':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0x110)]),'report':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0xcd)])},{manifest:_0x200e31,contract:_0x3c6da5,api:_0x8f14bf}=_0x13e20c;assertImportContract(_0x3c6da5,_0x13e20c[_0x52c6ad(0x10c)],_0x13e20c[_0x52c6ad(0x11e)]);if(_0x3c6da5[_0x52c6ad(0xce)]!==0x2||!_0x8f14bf[_0x52c6ad(0xe2)])throw Error(_0x52c6ad(0xfc));if(_0x200e31[_0x52c6ad(0x118)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc9));if(!_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xd9));if(!Number[_0x52c6ad(0xf1)](_0x13e20c['batchSize'])||_0x13e20c[_0x52c6ad(0xc4)]<0x1||_0x13e20c[_0x52c6ad(0xc4)]>_0x3c6da5[_0x52c6ad(0xf6)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x13e20c[_0x52c6ad(0x110)],_0x13e20c['report']);if(_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0x10e)](_0x5bb4bc=>Object['hasOwn'](_0x5bb4bc[_0x52c6ad(0xf5)],'id')))throw Error(_0x52c6ad(0x108));const _0x14442f=(_0x486278,_0x55b1e0)=>Buffer[_0x52c6ad(0xfe)](JSON[_0x52c6ad(0x100)]({'schemaFingerprint':_0x3c6da5[_0x52c6ad(0xf3)],'taskId':_0x55b1e0,'items':_0x486278[_0x52c6ad(0xd8)](_0x18581f=>_0x200e31[_0x52c6ad(0xcf)][_0x18581f][_0x52c6ad(0xf5)])}),_0x52c6ad(0x106)),_0x2ddda6=[];let _0x338360=[];for(let _0x3b9af7=0x0;_0x3b9af7<_0x200e31['rows'][_0x52c6ad(0xe5)];_0x3b9af7++){if(_0x14442f([_0x3b9af7],0x2**0x34)>_0x3c6da5['maxBatchBytes'])throw Error(_0x52c6ad(0xd4)+_0x200e31[_0x52c6ad(0xcf)][_0x3b9af7]['rowNumber']+_0x52c6ad(0xef));_0x338360['length']&&(_0x338360[_0x52c6ad(0xe5)]===_0x13e20c[_0x52c6ad(0xc4)]||_0x14442f([..._0x338360,_0x3b9af7],0x2**0x34)>_0x3c6da5[_0x52c6ad(0x114)])&&(_0x2ddda6[_0x52c6ad(0xff)](_0x338360),_0x338360=[]),_0x338360[_0x52c6ad(0xff)](_0x3b9af7);}if(_0x338360[_0x52c6ad(0xe5)])_0x2ddda6[_0x52c6ad(0xff)](_0x338360);const _0x589060={'appCode':_0x13e20c['appCode'],'datasetCode':_0x13e20c[_0x52c6ad(0x11e)],'runtimeDomain':_0x13e20c['runtimeDomain'],'actorId':_0x3c6da5['actorId'],'fileHash':_0x200e31[_0x52c6ad(0x116)],'mappingHash':_0x200e31[_0x52c6ad(0xd3)],'schemaHash':_0x200e31[_0x52c6ad(0xee)],'remoteSchemaHash':_0x3c6da5[_0x52c6ad(0xf3)],'batchSize':_0x13e20c[_0x52c6ad(0xc4)],'maxBatchBytes':_0x3c6da5[_0x52c6ad(0x114)],'sheet':_0x200e31['sheet'],'strategy':_0x3c6da5[_0x52c6ad(0xd5)]},_0x178ba4=await acquireLock(_0x13e20c[_0x52c6ad(0x110)]);let _0x10b0db;const _0x253f3e=Date[_0x52c6ad(0xe7)]();let _0x3e7255=0x0;const _0x2175b9=[],_0x167c49=_0xa644a2=>_0x10b0db?.['batches'][_0x52c6ad(0xc3)](_0x569c3e=>_0x569c3e[_0x52c6ad(0xea)]===_0xa644a2)[_0x52c6ad(0xf9)]((_0x3be04b,_0x3ef210)=>_0x3be04b+_0x3ef210['rowIndexes'][_0x52c6ad(0xe5)],0x0)??0x0,_0x3786a4=()=>({'importId':_0x10b0db?.[_0x52c6ad(0xc6)],'sourceRows':_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)],'emptyRows':_0x200e31['emptyRows'][_0x52c6ad(0xe5)],'succeeded':_0x167c49(_0x52c6ad(0xcc)),'unknown':_0x167c49(_0x52c6ad(0xc7)),'conflicts':_0x167c49(_0x52c6ad(0x11d)),'notAttempted':_0x167c49('unsent'),'batches':_0x3e7255,'batchResults':_0x2175b9,'elapsedMs':Date[_0x52c6ad(0xe7)]()-_0x253f3e,'checkpoint':_0x13e20c[_0x52c6ad(0x110)],'report':_0x13e20c[_0x52c6ad(0xcd)],'warnings':_0x200e31[_0x52c6ad(0x111)]});try{if(_0x13e20c[_0x52c6ad(0xfa)]){try{_0x10b0db=JSON[_0x52c6ad(0x11c)](await readFile(_0x13e20c[_0x52c6ad(0x110)],_0x52c6ad(0x106)));}catch{throw Error(_0x52c6ad(0x117));}if(!_0x10b0db||_0x10b0db[_0x52c6ad(0xf2)]!==0x2||typeof _0x10b0db[_0x52c6ad(0xc6)]!==_0x52c6ad(0x113)||!_0x10b0db[_0x52c6ad(0xc6)]||canonical(_0x10b0db[_0x52c6ad(0xde)])!==canonical(_0x589060)||!Array[_0x52c6ad(0x10a)](_0x10b0db[_0x52c6ad(0xf0)])||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xe5)]!==_0x2ddda6['length']||new Set(_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xd8)](_0x381a96=>_0x381a96[_0x52c6ad(0xf7)]))[_0x52c6ad(0x109)]!==_0x2ddda6[_0x52c6ad(0xe5)]||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)]((_0x227c8f,_0x5ca1f4)=>!validId(_0x227c8f[_0x52c6ad(0xf7)])||_0x227c8f[_0x52c6ad(0xf7)]>0x2**0x34||canonical(_0x227c8f[_0x52c6ad(0xca)])!==canonical(_0x2ddda6[_0x5ca1f4])||![_0x52c6ad(0xeb),_0x52c6ad(0xc7),_0x52c6ad(0xcc),_0x52c6ad(0x11d)][_0x52c6ad(0x10b)](_0x227c8f[_0x52c6ad(0xea)])||!Array[_0x52c6ad(0x10a)](_0x227c8f[_0x52c6ad(0x115)])||_0x227c8f['ids'][_0x52c6ad(0x10e)](_0x14a8f6=>!validId(_0x14a8f6))||new Set(_0x227c8f['ids'])['size']!==_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]||_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==0x0&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f['rowIndexes']['length']||_0x227c8f[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f[_0x52c6ad(0xca)][_0x52c6ad(0xe5)]||_0x227c8f['status']===_0x52c6ad(0xeb)&&_0x227c8f['ids'][_0x52c6ad(0xe5)]!==0x0))throw Error(_0x52c6ad(0xcb));const _0x27e717=_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x105)](_0xef34e3=>_0xef34e3[_0x52c6ad(0x115)]);if(new Set(_0x27e717)['size']!==_0x27e717[_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc8));}else{try{await lstat(_0x13e20c['checkpoint']);throw Error(_0x52c6ad(0x102));}catch(_0x536499){if(_0x536499[_0x52c6ad(0xf8)]!==_0x52c6ad(0x11a))throw _0x536499;}const _0x18a419=new Set();_0x10b0db={'version':0x2,'importId':randomUUID(),'binding':_0x589060,'batches':_0x2ddda6[_0x52c6ad(0xd8)](_0x116b61=>{const _0x285393=_0x52c6ad;let _0x4810d0;do{_0x4810d0=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x285393(0xec)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x18a419[_0x285393(0x119)](_0x4810d0));return _0x18a419['add'](_0x4810d0),{'taskId':_0x4810d0,'rowIndexes':_0x116b61,'ids':[],'status':_0x285393(0xeb)};})},await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x10b0db);}await _0x13e20c['onCheckpointReady']?.();const _0x5e342f=_0x10b0db,_0x57e9ec=async(_0x7e560a,_0x10faa6)=>{const _0x432f33=_0x52c6ad;_0x7e560a[_0x432f33(0xea)]=_0x432f33(0x11d),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f);throw Error(_0x10faa6);},_0xc773d0=async _0x4889dd=>{const _0x144af3=_0x52c6ad;let _0x4ef1c3=await _0x8f14bf[_0x144af3(0xe2)](_0x4889dd['taskId']);if(!Array[_0x144af3(0x10a)](_0x4ef1c3))throw Error(_0x144af3(0x10d));if(_0x4889dd['status']===_0x144af3(0xeb)&&_0x4ef1c3['length'])return _0x57e9ec(_0x4889dd,_0x144af3(0xfb));if(!_0x4ef1c3[_0x144af3(0xe5)]){if(_0x4889dd[_0x144af3(0xea)]===_0x144af3(0xcc)||_0x4889dd['ids'][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0xe3));return![];}if(_0x4ef1c3[_0x144af3(0xe5)]!==_0x4889dd[_0x144af3(0xca)][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0x10f));const _0x1b478a=_0x4ef1c3[_0x144af3(0xd8)](_0x3df06a=>_0x3df06a?.['id']);if(_0x1b478a[_0x144af3(0x10e)](_0x31a021=>!validId(_0x31a021)))return _0x57e9ec(_0x4889dd,_0x144af3(0x107));if(new Set(_0x1b478a)[_0x144af3(0x109)]!==_0x1b478a['length'])return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');const _0x5dedd7=new Map(_0x4ef1c3['map'](_0x1ae148=>[_0x1ae148['id'],_0x1ae148])),_0x544606=_0x4889dd[_0x144af3(0x115)]['length']?[..._0x4889dd[_0x144af3(0x115)]]:[..._0x1b478a][_0x144af3(0xf4)]((_0x37c25f,_0x5d13cf)=>_0x37c25f-_0x5d13cf);if(_0x544606[_0x144af3(0x10e)](_0x20671f=>!validId(_0x20671f))||_0x544606[_0x144af3(0x10e)]((_0x16884a,_0x184ed6)=>_0x184ed6>0x0&&_0x16884a<=_0x544606[_0x184ed6-0x1])||_0x544606[_0x144af3(0x10e)](_0x4eddfa=>!_0x5dedd7[_0x144af3(0x119)](_0x4eddfa)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');_0x4ef1c3=_0x544606[_0x144af3(0xd8)](_0x4e6ecf=>_0x5dedd7[_0x144af3(0xed)](_0x4e6ecf));const _0x524085=new Set(_0x5e342f[_0x144af3(0xf0)]['filter'](_0x1c34b2=>_0x1c34b2!==_0x4889dd)[_0x144af3(0x105)](_0x3420ce=>_0x3420ce[_0x144af3(0x115)]));if(_0x544606[_0x144af3(0x10e)](_0x3a38bc=>_0x524085[_0x144af3(0x119)](_0x3a38bc)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20collision.');for(let _0x300716=0x0;_0x300716<_0x4ef1c3[_0x144af3(0xe5)];_0x300716++){const _0x274086=_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0xf5)];if(Object[_0x144af3(0xd0)](_0x274086)['some'](_0x44d64c=>!sameImportValue(_0x274086[_0x44d64c],_0x4ef1c3[_0x300716][_0x44d64c],_0x200e31[_0x144af3(0xe9)]?.[_0x144af3(0x10b)](_0x44d64c)&&!_0x200e31[_0x144af3(0xfd)]?.[_0x144af3(0x10b)](_0x44d64c))))return _0x57e9ec(_0x4889dd,_0x144af3(0xe6)+_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0x104)]+'.');}return _0x4889dd['ids']=_0x544606,_0x4889dd[_0x144af3(0xea)]=_0x144af3(0xcc),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f),!![];};if(_0x5e342f[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)](_0x31cdd4=>_0x31cdd4[_0x52c6ad(0xea)]===_0x52c6ad(0x11d)&&!(_0x13e20c[_0x52c6ad(0xfa)]&&_0x13e20c[_0x52c6ad(0xe4)]&&_0x200e31[_0x52c6ad(0xe9)]?.['length']&&_0x31cdd4[_0x52c6ad(0x115)]['length']===_0x31cdd4[_0x52c6ad(0xca)][_0x52c6ad(0xe5)])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0x13e20c['resume']){for(const _0x329deb of _0x5e342f[_0x52c6ad(0xf0)])await _0xc773d0(_0x329deb);}for(const _0x454a63 of _0x5e342f[_0x52c6ad(0xf0)]){if(_0x454a63['status']===_0x52c6ad(0xcc))continue;if(!_0x13e20c[_0x52c6ad(0xfa)])await _0xc773d0(_0x454a63);_0x454a63[_0x52c6ad(0xea)]=_0x52c6ad(0xc7),await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f),_0x3e7255++;const _0x22e8e2=_0x454a63['rowIndexes'][_0x52c6ad(0xd8)](_0x507441=>_0x200e31[_0x52c6ad(0xcf)][_0x507441][_0x52c6ad(0xf5)]),_0x5a23dd=Date[_0x52c6ad(0xe7)](),_0x27b1eb={'batch':_0x3e7255,'rowStart':_0x200e31['rows'][_0x454a63[_0x52c6ad(0xca)][0x0]][_0x52c6ad(0x104)],'rowEnd':_0x200e31[_0x52c6ad(0xcf)][_0x454a63[_0x52c6ad(0xca)]['at'](-0x1)][_0x52c6ad(0x104)],'count':_0x22e8e2[_0x52c6ad(0xe5)],'bytes':_0x14442f(_0x454a63[_0x52c6ad(0xca)],_0x454a63[_0x52c6ad(0xf7)]),'elapsedMs':0x0,'status':'unknown'};_0x2175b9[_0x52c6ad(0xff)](_0x27b1eb);try{const _0x31a48a=await _0x8f14bf[_0x52c6ad(0xc5)](_0x22e8e2,_0x454a63[_0x52c6ad(0xf7)]);if(!_0x31a48a||_0x31a48a[_0x52c6ad(0x11b)]!==_0x22e8e2[_0x52c6ad(0xe5)]||!Array[_0x52c6ad(0x10a)](_0x31a48a[_0x52c6ad(0x115)])||_0x31a48a[_0x52c6ad(0x115)]['length']!==_0x22e8e2[_0x52c6ad(0xe5)]||_0x31a48a[_0x52c6ad(0x115)][_0x52c6ad(0x10e)](_0x17fc9f=>!validId(_0x17fc9f))||new Set(_0x31a48a[_0x52c6ad(0x115)])[_0x52c6ad(0x109)]!==_0x31a48a[_0x52c6ad(0x115)]['length'])throw Error('Invalid\x20write\x20result.');_0x454a63[_0x52c6ad(0x115)]=_0x31a48a['ids'],await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f);if(!await _0xc773d0(_0x454a63))throw Error(_0x52c6ad(0xd2));}catch(_0x45f24a){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x45f24a;try{await _0xc773d0(_0x454a63);}catch(_0x2d75e1){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x2d75e1;}if(_0x454a63[_0x52c6ad(0xea)]!==_0x52c6ad(0xcc))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x27b1eb['elapsedMs']=Date[_0x52c6ad(0xe7)]()-_0x5a23dd,_0x27b1eb['status']=_0x454a63[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)?'succeeded':_0x454a63['status']==='conflict'?_0x52c6ad(0x11d):_0x52c6ad(0x101);}}const _0x4f4086={'status':_0x52c6ad(0xe1),..._0x3786a4()};return await saveImportJson(_0x13e20c['report'],_0x4f4086),_0x4f4086;}catch(_0x570050){if(_0x10b0db)await saveImportJson(_0x13e20c[_0x52c6ad(0xcd)],{'status':'incomplete',..._0x3786a4(),'message':_0x570050['message']});throw _0x570050;}finally{await _0x178ba4();}}function a143_0x1f01(){const _0x55d4e8=['7CPMNRB','binding','9IDXvwi','5949251gkwgZx','completed','readTask','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','reconcileImageConflicts','length','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','now','696216JDPFdV','imageFields','status','unsent','hex','get','schemaHash','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','batches','isInteger','version','schemaFingerprint','sort','values','maxBatchSize','taskId','code','reduce','resume','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','uploadFields','byteLength','push','stringify','unknown','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','10niSmMg','rowNumber','flatMap','utf8','Import\x20generated\x20ID\x20conflict.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','size','isArray','includes','appCode','Invalid\x20import\x20task\x20readback\x20response.','some','Partial\x20import\x20task\x20readback\x20conflict.','checkpoint','warnings','isSafeInteger','string','maxBatchBytes','ids','fileHash','Cannot\x20read\x20the\x20import\x20checkpoint.','errors','has','ENOENT','count','parse','conflict','datasetCode','filter','batchSize','write','importId','pending','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','rowIndexes','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','succeeded','report','schemaVersion','rows','keys','1894215xhzDFI','Incomplete\x20readback.','mappingHash','Excel\x20row\x20','strategy','146102thKJVB','4817560dftuLS','map','Excel\x20contains\x20no\x20valid\x20data\x20rows.','5150096PaVule','10lXcOAo','8201322tmbrYu'];a143_0x1f01=function(){return _0x55d4e8;};return a143_0x1f01();}
|
|
1
|
+
(function(_0x3934e7,_0x1653fe){const _0x266943=a143_0x1dd7,_0x3ac091=_0x3934e7();while(!![]){try{const _0x1062a0=-parseInt(_0x266943(0x116))/0x1*(parseInt(_0x266943(0x142))/0x2)+parseInt(_0x266943(0xfa))/0x3+-parseInt(_0x266943(0x120))/0x4*(parseInt(_0x266943(0x140))/0x5)+-parseInt(_0x266943(0x13a))/0x6*(parseInt(_0x266943(0x113))/0x7)+-parseInt(_0x266943(0x129))/0x8+-parseInt(_0x266943(0x112))/0x9+-parseInt(_0x266943(0x126))/0xa*(-parseInt(_0x266943(0x13b))/0xb);if(_0x1062a0===_0x1653fe)break;else _0x3ac091['push'](_0x3ac091['shift']());}catch(_0x205090){_0x3ac091['push'](_0x3ac091['shift']());}}}(a143_0x4304,0xe702f));import{randomBytes,randomUUID}from'node:crypto';function a143_0x1dd7(_0x541843,_0x731b1d){_0x541843=_0x541843-0xf9;const _0x430444=a143_0x4304();let _0x1dd77c=_0x430444[_0x541843];return _0x1dd77c;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x413e57=>typeof _0x413e57==='number'&&Number['isSafeInteger'](_0x413e57)&&_0x413e57>0x0;export async function runAutoIdExcelImport(_0x5dd42f){const _0x254ca5=a143_0x1dd7,_0x221236={..._0x5dd42f,'checkpoint':await resolveImportOutputPath(_0x5dd42f[_0x254ca5(0x133)]),'report':await resolveImportOutputPath(_0x5dd42f[_0x254ca5(0x14b)])},{manifest:_0x3cf07c,contract:_0x1fd4da,api:_0xb6e340}=_0x221236;assertImportContract(_0x1fd4da,_0x221236['appCode'],_0x221236['datasetCode']);if(_0x1fd4da[_0x254ca5(0x13d)]!==0x2||!_0xb6e340[_0x254ca5(0xfd)])throw Error(_0x254ca5(0x128));if(_0x3cf07c[_0x254ca5(0x119)][_0x254ca5(0x149)])throw Error(_0x254ca5(0x151));if(!_0x3cf07c[_0x254ca5(0x100)][_0x254ca5(0x149)])throw Error(_0x254ca5(0x125));if(!Number[_0x254ca5(0x11c)](_0x221236[_0x254ca5(0x131)])||_0x221236[_0x254ca5(0x131)]<0x1||_0x221236[_0x254ca5(0x131)]>_0x1fd4da[_0x254ca5(0x101)])throw Error(_0x254ca5(0x102));assertImportPaths(_0x221236[_0x254ca5(0x133)],_0x221236['report']);if(_0x3cf07c['rows'][_0x254ca5(0xf9)](_0x55cef9=>Object[_0x254ca5(0xfb)](_0x55cef9['values'],'id')))throw Error(_0x254ca5(0x146));const _0x58c49c=(_0x6a8ae5,_0x5062ce)=>Buffer['byteLength'](JSON['stringify']({'schemaFingerprint':_0x1fd4da[_0x254ca5(0x103)],'taskId':_0x5062ce,'items':_0x6a8ae5[_0x254ca5(0x130)](_0x3dfe01=>_0x3cf07c[_0x254ca5(0x100)][_0x3dfe01][_0x254ca5(0x106)])}),'utf8'),_0x6955d3=[];let _0x51fcee=[];for(let _0xe9167=0x0;_0xe9167<_0x3cf07c['rows'][_0x254ca5(0x149)];_0xe9167++){if(_0x58c49c([_0xe9167],0x2**0x34)>_0x1fd4da[_0x254ca5(0x12e)])throw Error(_0x254ca5(0xff)+_0x3cf07c[_0x254ca5(0x100)][_0xe9167][_0x254ca5(0x10d)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x51fcee['length']&&(_0x51fcee['length']===_0x221236[_0x254ca5(0x131)]||_0x58c49c([..._0x51fcee,_0xe9167],0x2**0x34)>_0x1fd4da[_0x254ca5(0x12e)])&&(_0x6955d3[_0x254ca5(0x10f)](_0x51fcee),_0x51fcee=[]),_0x51fcee[_0x254ca5(0x10f)](_0xe9167);}if(_0x51fcee[_0x254ca5(0x149)])_0x6955d3[_0x254ca5(0x10f)](_0x51fcee);const _0x1fc0a1={'appCode':_0x221236[_0x254ca5(0x144)],'datasetCode':_0x221236[_0x254ca5(0x135)],'runtimeDomain':_0x221236[_0x254ca5(0x11f)],'actorId':_0x1fd4da[_0x254ca5(0x115)],'fileHash':_0x3cf07c[_0x254ca5(0x150)],'mappingHash':_0x3cf07c[_0x254ca5(0x132)],'schemaHash':_0x3cf07c[_0x254ca5(0x14a)],'remoteSchemaHash':_0x1fd4da[_0x254ca5(0x103)],'batchSize':_0x221236[_0x254ca5(0x131)],'maxBatchBytes':_0x1fd4da[_0x254ca5(0x12e)],'sheet':_0x3cf07c[_0x254ca5(0x134)],'strategy':_0x1fd4da[_0x254ca5(0x118)]},_0x428f70=await acquireLock(_0x221236[_0x254ca5(0x133)]);let _0x3386b9;const _0x1b971a=Date['now']();let _0xa51707=0x0;const _0x5822b5=[],_0x3c6f6d=_0x15dce3=>_0x3386b9?.[_0x254ca5(0x147)]['filter'](_0x177e14=>_0x177e14['status']===_0x15dce3)[_0x254ca5(0x107)]((_0x3af9ff,_0x39d6fb)=>_0x3af9ff+_0x39d6fb[_0x254ca5(0x10b)][_0x254ca5(0x149)],0x0)??0x0,_0x5f5f6f=()=>({'importId':_0x3386b9?.['importId'],'sourceRows':_0x3cf07c['rows']['length'],'emptyRows':_0x3cf07c[_0x254ca5(0x12f)][_0x254ca5(0x149)],'succeeded':_0x3c6f6d(_0x254ca5(0x127)),'unknown':_0x3c6f6d(_0x254ca5(0x10e)),'conflicts':_0x3c6f6d(_0x254ca5(0x137)),'notAttempted':_0x3c6f6d(_0x254ca5(0xfe)),'batches':_0xa51707,'batchResults':_0x5822b5,'elapsedMs':Date['now']()-_0x1b971a,'checkpoint':_0x221236['checkpoint'],'report':_0x221236[_0x254ca5(0x14b)],'warnings':_0x3cf07c[_0x254ca5(0x139)]});try{if(_0x221236[_0x254ca5(0x10c)]){try{_0x3386b9=JSON['parse'](await readFile(_0x221236[_0x254ca5(0x133)],_0x254ca5(0x10a)));}catch{throw Error(_0x254ca5(0x124));}if(!_0x3386b9||_0x3386b9['version']!==0x2||typeof _0x3386b9[_0x254ca5(0x13c)]!==_0x254ca5(0x122)||!_0x3386b9[_0x254ca5(0x13c)]||canonical(_0x3386b9[_0x254ca5(0x110)])!==canonical(_0x1fc0a1)||!Array[_0x254ca5(0x153)](_0x3386b9['batches'])||_0x3386b9[_0x254ca5(0x147)][_0x254ca5(0x149)]!==_0x6955d3[_0x254ca5(0x149)]||new Set(_0x3386b9[_0x254ca5(0x147)][_0x254ca5(0x130)](_0x2d2084=>_0x2d2084['taskId']))[_0x254ca5(0x12c)]!==_0x6955d3['length']||_0x3386b9['batches'][_0x254ca5(0xf9)]((_0x259385,_0x4356f4)=>!validId(_0x259385[_0x254ca5(0x123)])||_0x259385[_0x254ca5(0x123)]>0x2**0x34||canonical(_0x259385[_0x254ca5(0x10b)])!==canonical(_0x6955d3[_0x4356f4])||![_0x254ca5(0xfe),_0x254ca5(0x10e),_0x254ca5(0x127),_0x254ca5(0x137)][_0x254ca5(0x12a)](_0x259385['status'])||!Array['isArray'](_0x259385[_0x254ca5(0x114)])||_0x259385['ids'][_0x254ca5(0xf9)](_0x5d6a88=>!validId(_0x5d6a88))||new Set(_0x259385[_0x254ca5(0x114)])[_0x254ca5(0x12c)]!==_0x259385[_0x254ca5(0x114)][_0x254ca5(0x149)]||_0x259385[_0x254ca5(0x114)][_0x254ca5(0x149)]!==0x0&&_0x259385[_0x254ca5(0x114)]['length']!==_0x259385[_0x254ca5(0x10b)][_0x254ca5(0x149)]||_0x259385[_0x254ca5(0x14d)]===_0x254ca5(0x127)&&_0x259385[_0x254ca5(0x114)]['length']!==_0x259385[_0x254ca5(0x10b)]['length']||_0x259385[_0x254ca5(0x14d)]===_0x254ca5(0xfe)&&_0x259385[_0x254ca5(0x114)][_0x254ca5(0x149)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x3d986c=_0x3386b9['batches']['flatMap'](_0x701bd4=>_0x701bd4[_0x254ca5(0x114)]);if(new Set(_0x3d986c)[_0x254ca5(0x12c)]!==_0x3d986c[_0x254ca5(0x149)])throw Error(_0x254ca5(0x108));}else{try{await lstat(_0x221236[_0x254ca5(0x133)]);throw Error(_0x254ca5(0x121));}catch(_0x592350){if(_0x592350[_0x254ca5(0xfc)]!=='ENOENT')throw _0x592350;}const _0x3ada0c=new Set();_0x3386b9={'version':0x2,'importId':randomUUID(),'binding':_0x1fc0a1,'batches':_0x6955d3['map'](_0x36a447=>{const _0x28931a=_0x254ca5;let _0x52a51b;do{_0x52a51b=Number(BigInt('0x'+randomBytes(0x7)['toString']('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x3ada0c[_0x28931a(0x11e)](_0x52a51b));return _0x3ada0c[_0x28931a(0x109)](_0x52a51b),{'taskId':_0x52a51b,'rowIndexes':_0x36a447,'ids':[],'status':_0x28931a(0xfe)};})},await saveImportJson(_0x221236[_0x254ca5(0x133)],_0x3386b9);}await _0x221236['onCheckpointReady']?.();const _0x677f6b=_0x3386b9,_0x3c41b4=async(_0x4b9308,_0x5e8807)=>{const _0x2e1410=_0x254ca5;_0x4b9308['status']=_0x2e1410(0x137),await saveImportJson(_0x221236[_0x2e1410(0x133)],_0x677f6b);throw Error(_0x5e8807);},_0x2d6f9a=async _0x727455=>{const _0x4e7bd0=_0x254ca5;let _0x2b927b=await _0xb6e340['readTask'](_0x727455[_0x4e7bd0(0x123)]);if(!Array['isArray'](_0x2b927b))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x727455[_0x4e7bd0(0x14d)]===_0x4e7bd0(0xfe)&&_0x2b927b[_0x4e7bd0(0x149)])return _0x3c41b4(_0x727455,_0x4e7bd0(0x141));if(!_0x2b927b[_0x4e7bd0(0x149)]){if(_0x727455[_0x4e7bd0(0x14d)]===_0x4e7bd0(0x127)||_0x727455[_0x4e7bd0(0x114)][_0x4e7bd0(0x149)])return _0x3c41b4(_0x727455,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x2b927b[_0x4e7bd0(0x149)]!==_0x727455[_0x4e7bd0(0x10b)][_0x4e7bd0(0x149)])return _0x3c41b4(_0x727455,_0x4e7bd0(0x152));const _0x59ab8d=_0x2b927b[_0x4e7bd0(0x130)](_0x1b2760=>_0x1b2760?.['id']);if(_0x59ab8d['some'](_0x434710=>!validId(_0x434710)))return _0x3c41b4(_0x727455,'Import\x20generated\x20ID\x20conflict.');if(new Set(_0x59ab8d)[_0x4e7bd0(0x12c)]!==_0x59ab8d[_0x4e7bd0(0x149)])return _0x3c41b4(_0x727455,_0x4e7bd0(0x143));const _0x4d0081=new Map(_0x2b927b[_0x4e7bd0(0x130)](_0x33deb3=>[_0x33deb3['id'],_0x33deb3])),_0x3e4e21=_0x727455[_0x4e7bd0(0x114)][_0x4e7bd0(0x149)]?[..._0x727455[_0x4e7bd0(0x114)]]:[..._0x59ab8d][_0x4e7bd0(0x14f)]((_0x266f07,_0x310ffe)=>_0x266f07-_0x310ffe);if(_0x3e4e21[_0x4e7bd0(0xf9)](_0x4be6da=>!validId(_0x4be6da))||_0x3e4e21['some']((_0xf02ac7,_0x197d6c)=>_0x197d6c>0x0&&_0xf02ac7<=_0x3e4e21[_0x197d6c-0x1])||_0x3e4e21[_0x4e7bd0(0xf9)](_0x26279d=>!_0x4d0081[_0x4e7bd0(0x11e)](_0x26279d)))return _0x3c41b4(_0x727455,_0x4e7bd0(0x143));_0x2b927b=_0x3e4e21['map'](_0xd92b61=>_0x4d0081[_0x4e7bd0(0x104)](_0xd92b61));const _0xd228a2=new Set(_0x677f6b[_0x4e7bd0(0x147)][_0x4e7bd0(0x105)](_0x413379=>_0x413379!==_0x727455)[_0x4e7bd0(0x13e)](_0x4c741a=>_0x4c741a[_0x4e7bd0(0x114)]));if(_0x3e4e21['some'](_0x3ee5e8=>_0xd228a2[_0x4e7bd0(0x11e)](_0x3ee5e8)))return _0x3c41b4(_0x727455,_0x4e7bd0(0x111));for(let _0xb6840b=0x0;_0xb6840b<_0x2b927b['length'];_0xb6840b++){const _0x199d3a=_0x3cf07c[_0x4e7bd0(0x100)][_0x727455[_0x4e7bd0(0x10b)][_0xb6840b]]['values'];if(Object[_0x4e7bd0(0x11d)](_0x199d3a)[_0x4e7bd0(0xf9)](_0x1ea2fe=>!sameImportValue(_0x199d3a[_0x1ea2fe],_0x2b927b[_0xb6840b][_0x1ea2fe],_0x3cf07c[_0x4e7bd0(0x11b)]?.[_0x4e7bd0(0x12a)](_0x1ea2fe)&&!_0x3cf07c[_0x4e7bd0(0x14e)]?.[_0x4e7bd0(0x12a)](_0x1ea2fe))))return _0x3c41b4(_0x727455,_0x4e7bd0(0x138)+_0x3cf07c[_0x4e7bd0(0x100)][_0x727455[_0x4e7bd0(0x10b)][_0xb6840b]]['rowNumber']+'.');}return _0x727455[_0x4e7bd0(0x114)]=_0x3e4e21,_0x727455[_0x4e7bd0(0x14d)]=_0x4e7bd0(0x127),await saveImportJson(_0x221236[_0x4e7bd0(0x133)],_0x677f6b),!![];};if(_0x677f6b['batches'][_0x254ca5(0xf9)](_0x694535=>_0x694535[_0x254ca5(0x14d)]===_0x254ca5(0x137)&&!(_0x221236['resume']&&_0x221236[_0x254ca5(0x154)]&&_0x3cf07c['imageFields']?.['length']&&_0x694535[_0x254ca5(0x114)]['length']===_0x694535[_0x254ca5(0x10b)][_0x254ca5(0x149)])))throw Error(_0x254ca5(0x14c));if(_0x221236[_0x254ca5(0x10c)]){for(const _0x30d716 of _0x677f6b[_0x254ca5(0x147)])await _0x2d6f9a(_0x30d716);}for(const _0x18da50 of _0x677f6b['batches']){if(_0x18da50[_0x254ca5(0x14d)]===_0x254ca5(0x127))continue;if(!_0x221236[_0x254ca5(0x10c)])await _0x2d6f9a(_0x18da50);_0x18da50[_0x254ca5(0x14d)]=_0x254ca5(0x10e),await saveImportJson(_0x221236['checkpoint'],_0x677f6b),_0xa51707++;const _0x7beeee=_0x18da50[_0x254ca5(0x10b)][_0x254ca5(0x130)](_0x1b114c=>_0x3cf07c[_0x254ca5(0x100)][_0x1b114c][_0x254ca5(0x106)]),_0x8c1fbd=Date['now'](),_0x22cec7={'batch':_0xa51707,'rowStart':_0x3cf07c[_0x254ca5(0x100)][_0x18da50[_0x254ca5(0x10b)][0x0]][_0x254ca5(0x10d)],'rowEnd':_0x3cf07c['rows'][_0x18da50[_0x254ca5(0x10b)]['at'](-0x1)]['rowNumber'],'count':_0x7beeee[_0x254ca5(0x149)],'bytes':_0x58c49c(_0x18da50[_0x254ca5(0x10b)],_0x18da50[_0x254ca5(0x123)]),'elapsedMs':0x0,'status':_0x254ca5(0x12d)};_0x5822b5[_0x254ca5(0x10f)](_0x22cec7);try{const _0x2cd834=await _0xb6e340[_0x254ca5(0x12b)](_0x7beeee,_0x18da50[_0x254ca5(0x123)]);if(!_0x2cd834||_0x2cd834[_0x254ca5(0x148)]!==_0x7beeee['length']||!Array[_0x254ca5(0x153)](_0x2cd834['ids'])||_0x2cd834[_0x254ca5(0x114)][_0x254ca5(0x149)]!==_0x7beeee[_0x254ca5(0x149)]||_0x2cd834[_0x254ca5(0x114)][_0x254ca5(0xf9)](_0x13b1ca=>!validId(_0x13b1ca))||new Set(_0x2cd834['ids'])[_0x254ca5(0x12c)]!==_0x2cd834[_0x254ca5(0x114)]['length'])throw Error(_0x254ca5(0x145));_0x18da50[_0x254ca5(0x114)]=_0x2cd834[_0x254ca5(0x114)],await saveImportJson(_0x221236[_0x254ca5(0x133)],_0x677f6b);if(!await _0x2d6f9a(_0x18da50))throw Error(_0x254ca5(0x11a));}catch(_0x428483){if(_0x18da50[_0x254ca5(0x14d)]===_0x254ca5(0x137))throw _0x428483;try{await _0x2d6f9a(_0x18da50);}catch(_0x157b2c){if(_0x18da50[_0x254ca5(0x14d)]===_0x254ca5(0x137))throw _0x157b2c;}if(_0x18da50['status']!=='succeeded')throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x22cec7[_0x254ca5(0x13f)]=Date[_0x254ca5(0x117)]()-_0x8c1fbd,_0x22cec7[_0x254ca5(0x14d)]=_0x18da50[_0x254ca5(0x14d)]===_0x254ca5(0x127)?_0x254ca5(0x127):_0x18da50['status']===_0x254ca5(0x137)?_0x254ca5(0x137):_0x254ca5(0x12d);}}const _0x5938ee={'status':'completed',..._0x5f5f6f()};return await saveImportJson(_0x221236[_0x254ca5(0x14b)],_0x5938ee),_0x5938ee;}catch(_0x3ab1d7){if(_0x3386b9)await saveImportJson(_0x221236[_0x254ca5(0x14b)],{'status':'incomplete',..._0x5f5f6f(),'message':_0x3ab1d7[_0x254ca5(0x136)]});throw _0x3ab1d7;}finally{await _0x428f70();}}function a143_0x4304(){const _0x25ed89=['rowIndexes','resume','rowNumber','pending','push','binding','Import\x20generated\x20ID\x20collision.','10043253VNLcpa','8948765COinSY','ids','actorId','128144ZwhrFD','now','strategy','errors','Incomplete\x20readback.','imageFields','isInteger','keys','has','runtimeDomain','4VjShHn','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','string','taskId','Cannot\x20read\x20the\x20import\x20checkpoint.','Excel\x20contains\x20no\x20valid\x20data\x20rows.','10MQVPVW','succeeded','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','3930160QqyWyt','includes','write','size','unknown','maxBatchBytes','emptyRows','map','batchSize','mappingHash','checkpoint','sheet','datasetCode','message','conflict','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','warnings','6WMuAyF','59342943LpEgvO','importId','schemaVersion','flatMap','elapsedMs','7397860XHYLMY','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','26ecDjzJ','Import\x20generated\x20ID\x20conflict.','appCode','Invalid\x20write\x20result.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','batches','count','length','schemaHash','report','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','status','uploadFields','sort','fileHash','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','Partial\x20import\x20task\x20readback\x20conflict.','isArray','reconcileImageConflicts','some','4747308XZfgAn','hasOwn','code','readTask','unsent','Excel\x20row\x20','rows','maxBatchSize','Invalid\x20import\x20batch\x20size.','schemaFingerprint','get','filter','values','reduce','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','add','utf8'];a143_0x4304=function(){return _0x25ed89;};return a143_0x4304();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x1799e9=a144_0x3858;(function(_0x15f67d,_0x158677){const _0x2cebc0=a144_0x3858,_0xb2bf71=_0x15f67d();while(!![]){try{const _0x4c318e=-parseInt(_0x2cebc0(0x145))/0x1*(parseInt(_0x2cebc0(0x70))/0x2)+parseInt(_0x2cebc0(0xf2))/0x3*(parseInt(_0x2cebc0(0x74))/0x4)+parseInt(_0x2cebc0(0xa7))/0x5+-parseInt(_0x2cebc0(0xc7))/0x6*(parseInt(_0x2cebc0(0x6d))/0x7)+-parseInt(_0x2cebc0(0x149))/0x8*(parseInt(_0x2cebc0(0x97))/0x9)+-parseInt(_0x2cebc0(0xa9))/0xa*(parseInt(_0x2cebc0(0x71))/0xb)+parseInt(_0x2cebc0(0xba))/0xc;if(_0x4c318e===_0x158677)break;else _0xb2bf71['push'](_0xb2bf71['shift']());}catch(_0x3d5385){_0xb2bf71['push'](_0xb2bf71['shift']());}}}(a144_0x202b,0xe897c));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0xccf9ab from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0xe61f09 from'exceljs';function a144_0x3858(_0xef3a7,_0x4ee844){_0xef3a7=_0xef3a7-0x67;const _0x202b04=a144_0x202b();let _0x38584d=_0x202b04[_0xef3a7];return _0x38584d;}import a144_0x22731a 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_0x1799e9(0x87),a144_0x1799e9(0x81),a144_0x1799e9(0x147),a144_0x1799e9(0x102),'creatorName',a144_0x1799e9(0x8f),a144_0x1799e9(0xfa),a144_0x1799e9(0xee),a144_0x1799e9(0x143),'deleted']),TYPES=new Set([a144_0x1799e9(0x76),'text',a144_0x1799e9(0x151),'number','decimal',a144_0x1799e9(0x13d),a144_0x1799e9(0x72),a144_0x1799e9(0xb9),a144_0x1799e9(0x67),a144_0x1799e9(0xf0),'upload']),isImageContainer=_0x50424f=>[a144_0x1799e9(0xf0),a144_0x1799e9(0xc2)][a144_0x1799e9(0x154)](_0x50424f[a144_0x1799e9(0x105)]()),hash=_0x417c16=>createHash(a144_0x1799e9(0xdb))[a144_0x1799e9(0x6e)](_0x417c16)[a144_0x1799e9(0xd2)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x1799e9(0xbf)),nameCoordinates=require(a144_0x1799e9(0xfe)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x1799e9(0x91)](a144_0x1799e9(0xc1))),zipRequire=createRequire(excelRequire['resolve']('jszip')),ZipEntry=zipRequire(a144_0x1799e9(0xcc)),zipReader=zipRequire(a144_0x1799e9(0xa3)),zipUtf8=zipRequire(a144_0x1799e9(0xf3)),zipPaths=zipRequire(a144_0x1799e9(0xe1));function a144_0x202b(){const _0xba629f=['find','properties','Duplicate\x20workbook\x20ZIP\x20entry.','fileNameRaw','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','createTime','Duplicate\x20header:\x20','image','Invalid\x20ZIP\x20local\x20file\x20header.','3QQSoSw','./utf8','Merged\x20cells\x20are\x20not\x20supported.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','min','\x20columns.','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','formula','modifierName','values','relativeOffsetOfLocalHeader','isFinite','exceljs/lib/utils/col-cache.js','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','entry','MAX_SAFE_INTEGER','creatorId','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','sourceType','toLowerCase','mergeCell','Unknown\x20Excel\x20header:\x20','ref','XML\x20DTD/entities\x20are\x20not\x20supported.','contentHash','Dataset\x20field\x20metadata\x20is\x20missing.','imageFields','extraFieldsLength','fields','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Invalid\x20XLSX\x20entry.','set','left','has','row','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','readEntry','Workbook','stringify','destroy','Duplicate\x20dataset\x20field\x20codes.','Expected\x20a\x20text\x20cell.','concat','Expected\x20a\x20boolean\x20cell.','Worksheet\x20exceeds\x2016384\x20columns.','from','fromBuffer','length','bottom','doType','byteLength','result','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','serial_number','autoIncrement','map','rows','code','Unsupported\x20field\x20type:\x20','openReadStream','extraFields','cells','ranges','Invalid\x20worksheet\x20XML:\x20','File\x20is\x20not\x20an\x20XLSX\x20workbook.','type','externalFileAttributes','startsWith','extraFieldRaw','compressedSize','Image\x20XML\x20event\x20budget\x20exceeded.','attributes','hyperlink','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','integer','some','Worksheet\x20column\x20objects\x20exceed\x20100000.','processAttributes','write','readUInt16LE','updateTime','Only\x20.xlsx\x20files\x20are\x20supported.','791ZTlBKF','localeCompare','datasetId','versionMadeBy','1504PdThjz','handleUTF8','Required\x20image\x20value\x20is\x20missing.','decodeEx','fileName','warnings','hidden','Missing\x20image\x20media:\x20','textarea','Worksheet\x20exceeds\x20','METADATA','includes','message','clear','repeat','datetime','Unknown\x20or\x20generated\x20mapping\x20field:\x20','max','_xlnm.Print_Titles','isSafeInteger','parseOpen','7wiQtLu','update','slice','1598hdxthN','55QnpdDf','boolean','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','6002488HKjhwq','uncompressedSize','string','load','isBuffer','lastIndexOf','data','right','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','error','fileNameStr','fileComment','Duplicate\x20mapping\x20target:\x20','appCode','dir','isInteger','abs','Requested\x20worksheet\x20does\x20not\x20exist.','parseText','tenantCode','Invalid\x20worksheet\x20merge\x20reference.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','utf8','close','readUInt32LE','size','batchSize','modifierId','xlsx','resolve','add','fileCommentRaw','test','directory','model','60255YMrpZH','merges','readBigUInt64LE','xl/workbook.xml','Cell\x20exceeds\x2064\x20KB.','readEntryCursor','readExtraFields','split','Invalid\x20worksheet\x20XML.','getRow','isArray','Invalid\x20defined\x20name\x20coordinate.','./reader/readerFor','get','dataValidations','XLSX\x20file\x20exceeds\x2020\x20MB.','688770DhXOJP','mapping','482940HUuwUZ','unixPermissions','generated','media','getTime','opentag','value','end','generalPurposeBitFlag','original','top','imageCells','extend','name','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Formula\x20has\x20no\x20cached\x20result.','date','33875004VNdFtd','pop','Invalid\x20worksheet\x20hyperlink\x20reference.','number','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','text','exceljs','upload','push','[Content_Types].xml','required','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','8258724gQMWcz','object','sheet','charCodeAt','exec','./zipEntry','dataset','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','worksheets','col','Invalid\x20worksheet\x20nested\x20row.','digest','Invalid\x20worksheet\x20column\x20range.','Invalid\x20worksheet\x20nested\x20cell.','address','rowCount','materialized','file','equals','Invalid\x20dataset\x20field\x20extension\x20metadata.','sha256','parserVersion','Worksheet\x20merge\x20work\x20exceeds\x20100000.','dataset-import/','every','create','./utils','reference','closetag','Worksheet\x20coordinate\x20exceeds\x20','filter','hiddenRow','Expected\x20an\x20Excel\x20date\x20cell.','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.'];a144_0x202b=function(){return _0xba629f;};return a144_0x202b();}function centralDirectoryEnd(_0xffaf10,_0x255709){const _0x1736ba=a144_0x1799e9,_0x5b6aeb=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x344412=_0xffaf10[_0x1736ba(0x79)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x344412<0x0||_0x344412+0x16>_0xffaf10['length']||_0x344412+0x16+_0xffaf10[_0x1736ba(0x142)](_0x344412+0x14)!==_0xffaf10[_0x1736ba(0x121)])throw _0x5b6aeb();let _0x9d4d68=_0xffaf10[_0x1736ba(0x142)](_0x344412+0xa),_0x952239=_0xffaf10[_0x1736ba(0x8c)](_0x344412+0xc),_0x5b7f56=_0xffaf10[_0x1736ba(0x8c)](_0x344412+0x10),_0x4ff500=_0x344412;const _0x16cea5=_0x344412-0x14,_0x35cbe5=_0x16cea5>=0x0&&_0xffaf10[_0x1736ba(0x8c)](_0x16cea5)===0x7064b50,_0x2510b8=[0x4,0x6,0x8,0xa][_0x1736ba(0x13e)](_0x4ea125=>_0xffaf10[_0x1736ba(0x142)](_0x344412+_0x4ea125)===0xffff)||_0x952239===0xffffffff||_0x5b7f56===0xffffffff;if(_0x35cbe5!==_0x2510b8)throw _0x5b6aeb();if(_0x35cbe5){if(_0xffaf10[_0x1736ba(0x79)](Buffer[_0x1736ba(0x11f)]([0x50,0x4b,0x6,0x7]))!==_0x16cea5)throw _0x5b6aeb();const _0x52a905=_0x491447=>{const _0x3c16a7=_0x1736ba,_0x383ae4=Number(_0xffaf10[_0x3c16a7(0x99)](_0x491447));if(!Number[_0x3c16a7(0x6b)](_0x383ae4))throw _0x5b6aeb();return _0x383ae4;};_0x4ff500=_0x52a905(_0x16cea5+0x8);if(_0xffaf10[_0x1736ba(0x8c)](_0x16cea5+0x4)!==0x0||_0xffaf10[_0x1736ba(0x8c)](_0x16cea5+0x10)!==0x1||_0x4ff500>_0x16cea5-0x38||_0xffaf10[_0x1736ba(0x8c)](_0x4ff500)!==0x6064b50||_0x52a905(_0x4ff500+0x4)!==0x2c||_0x4ff500+0x38!==_0x16cea5||_0xffaf10[_0x1736ba(0x8c)](_0x4ff500+0x10)!==0x0||_0xffaf10[_0x1736ba(0x8c)](_0x4ff500+0x14)!==0x0)throw _0x5b6aeb();_0x9d4d68=_0x52a905(_0x4ff500+0x20),_0x952239=_0x52a905(_0x4ff500+0x28),_0x5b7f56=_0x52a905(_0x4ff500+0x30);if(_0x52a905(_0x4ff500+0x18)!==_0x9d4d68)throw _0x5b6aeb();}else{if(_0xffaf10[_0x1736ba(0x142)](_0x344412+0x4)!==0x0||_0xffaf10['readUInt16LE'](_0x344412+0x6)!==0x0||_0xffaf10[_0x1736ba(0x142)](_0x344412+0x8)!==_0x9d4d68)throw _0x5b6aeb();}const _0x229648=_0x255709[_0x1736ba(0x9c)];if(_0x5b7f56!==_0x229648||_0x9d4d68!==_0x255709['entryCount']||_0x5b7f56+_0x952239!==_0x4ff500)throw _0x5b6aeb();return _0x4ff500;}function consumerEntryName(_0x489bec,_0x502031){const _0x4d3f30=a144_0x1799e9;if(_0x502031[_0x4d3f30(0x12e)][_0x4d3f30(0xe5)](_0xcc56f2=>_0xcc56f2['id']===0x1)[_0x4d3f30(0x121)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x3632fe=_0x502031,_0x1de75c=_0x502031[_0x4d3f30(0xfc)];if(!Buffer[_0x4d3f30(0x78)](_0x3632fe[_0x4d3f30(0xec)])||!Buffer[_0x4d3f30(0x78)](_0x3632fe['extraFieldRaw'])||!Buffer[_0x4d3f30(0x78)](_0x3632fe[_0x4d3f30(0x93)])||!Number['isSafeInteger'](_0x1de75c)||_0x1de75c<0x0||_0x1de75c>_0x489bec['length']-0x1e||_0x489bec[_0x4d3f30(0x8c)](_0x1de75c)!==0x4034b50)throw new Error(_0x4d3f30(0xf1));const _0x5a0785=_0x1de75c+0x1e+_0x489bec[_0x4d3f30(0x142)](_0x1de75c+0x1a),_0xc9166e=_0x5a0785+_0x489bec[_0x4d3f30(0x142)](_0x1de75c+0x1c)+_0x502031[_0x4d3f30(0x137)];if(!Number[_0x4d3f30(0x6b)](_0xc9166e)||_0xc9166e>_0x489bec['length'])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x5a0785>_0x489bec['length']||!_0x489bec['subarray'](_0x1de75c+0x1e,_0x5a0785)[_0x4d3f30(0xd9)](_0x3632fe[_0x4d3f30(0xec)]))throw new Error(_0x4d3f30(0x13b));const _0x302d65=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x302d65['bitFlag']=_0x502031[_0x4d3f30(0xb1)],_0x302d65[_0x4d3f30(0x14d)]=_0x3632fe[_0x4d3f30(0xec)],_0x302d65[_0x4d3f30(0x7f)]=_0x3632fe[_0x4d3f30(0x93)],_0x302d65[_0x4d3f30(0x10d)]=_0x3632fe[_0x4d3f30(0x136)][_0x4d3f30(0x121)],_0x302d65[_0x4d3f30(0x9d)](zipReader(_0x3632fe[_0x4d3f30(0x136)])),_0x302d65[_0x4d3f30(0x14a)](),_0x302d65['versionMadeBy']=_0x502031[_0x4d3f30(0x148)],_0x302d65['externalFileAttributes']=_0x502031[_0x4d3f30(0x134)],_0x302d65[_0x4d3f30(0x140)]();const _0x289e4a=_0x302d65[_0x4d3f30(0x82)]||Boolean((_0x302d65[_0x4d3f30(0xaa)]??0x0)&0x4000),_0x1c5960=zipPaths['resolve'](_0x302d65[_0x4d3f30(0x7e)]),_0x4d6fa3=_0x1c5960[_0x4d3f30(0x135)]('/')?_0x1c5960[_0x4d3f30(0x6f)](0x1):_0x1c5960;return{'name':_0x4d6fa3,'original':_0x302d65[_0x4d3f30(0x7e)],'directory':_0x289e4a};}export function normalizeImportFields(_0x55f0bf){const _0xbbd1a2=a144_0x1799e9;if(!_0x55f0bf||(_0x55f0bf['source']??_0x55f0bf[_0xbbd1a2(0xcd)]?.[_0xbbd1a2(0x104)])!==_0xbbd1a2(0x153))throw new Error(_0xbbd1a2(0x73));const _0x185fa1=Array[_0xbbd1a2(0xa1)](_0x55f0bf[_0xbbd1a2(0x10e)]),_0x2e4e9e=_0x185fa1?_0x55f0bf[_0xbbd1a2(0x10e)]:_0x55f0bf[_0xbbd1a2(0xea)];if(!Array['isArray'](_0x2e4e9e)||_0x2e4e9e[_0xbbd1a2(0x121)]===0x0)throw new Error(_0xbbd1a2(0x10b));const _0x337640=[],_0x113d84=new Set();for(const _0xb03f3d of _0x2e4e9e){if(_0xb03f3d['deleted']===!![])continue;let _0x4aed77=_0xb03f3d[_0xbbd1a2(0xb5)]??{};if(!_0x185fa1&&typeof _0x4aed77==='string'){try{_0x4aed77=JSON['parse'](_0x4aed77);}catch{throw new Error(_0xbbd1a2(0xda));}if(!_0x4aed77||typeof _0x4aed77!==_0xbbd1a2(0xc8)||Array[_0xbbd1a2(0xa1)](_0x4aed77))throw new Error(_0xbbd1a2(0xda));}const _0x139d9d=_0x185fa1?_0xb03f3d[_0xbbd1a2(0xb6)]:_0xb03f3d[_0xbbd1a2(0x12b)],_0x931dc3=_0x185fa1?_0xb03f3d[_0xbbd1a2(0x123)]:_0xb03f3d['type']??_0xb03f3d['dataType'];if(typeof _0x139d9d!==_0xbbd1a2(0x76)||!_0x139d9d||typeof _0x931dc3!==_0xbbd1a2(0x76)||_0x113d84[_0xbbd1a2(0x113)](_0x139d9d))throw new Error(_0xbbd1a2(0xc6));if(_0x931dc3[_0xbbd1a2(0x105)]()===_0xbbd1a2(0x127))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x113d84[_0xbbd1a2(0x92)](_0x139d9d);const _0x28b7fa=_0x185fa1?_0xb03f3d:_0x4aed77,_0x239eca={'code':_0x139d9d,'type':_0x931dc3,'required':_0x28b7fa[_0xbbd1a2(0xc5)]===!![]};if(RESERVED[_0xbbd1a2(0x113)](_0x139d9d)||_0x28b7fa['generated']===!![]||_0x28b7fa[_0xbbd1a2(0x128)]===!![])_0x239eca[_0xbbd1a2(0xab)]=!![];_0x337640['push'](_0x239eca);}return _0x337640;}async function checkArchive(_0x2b6144,_0x4f5281){await new Promise((_0x1b6da5,_0x7ca05)=>{const _0xe1b671=a144_0x3858;a144_0x22731a[_0xe1b671(0x120)](_0x2b6144,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x16825e,_0xeb8dc7)=>{const _0x916902=_0xe1b671;if(_0x16825e||!_0xeb8dc7){_0x7ca05(_0x16825e??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x2b7836;try{_0x2b7836=centralDirectoryEnd(_0x2b6144,_0xeb8dc7);}catch(_0x53b63f){_0xeb8dc7[_0x916902(0x8b)](),_0x7ca05(_0x53b63f);return;}let _0x1a4c5d=0x0,_0x1a27ea=0x0,_0x259d4f=0x0,_0x33f31d=0x0,_0x90fb0d=0x0,_0x39036c=0x0,_0x7bcdd5=0x0,_0x985e52=0x0,_0x402792=0x0,_0x3fa7b2=![],_0x13b71f;const _0x2e37a2=new Set(),_0x160856=_0x418a37=>{const _0x5d7aca=_0x916902;if(_0x3fa7b2)return;_0x3fa7b2=!![],_0x13b71f?.['destroy'](),_0xeb8dc7[_0x5d7aca(0x8b)](),_0x7ca05(_0x418a37);},_0xd60247=(_0x1cc0f3,_0x4ad5d5)=>{const _0x3abe2e=_0x916902;if(!_0x1cc0f3||!/^\d+$/[_0x3abe2e(0x94)](_0x1cc0f3))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x15d801=Number(_0x1cc0f3);if(!Number[_0x3abe2e(0x6b)](_0x15d801)||_0x15d801<0x1||_0x15d801>_0x4ad5d5)throw new Error(_0x3abe2e(0xe4)+_0x4ad5d5+'.');return _0x15d801;},_0x125de0=(_0x57e3bd,_0x14ede6=MAX_XML_COLUMNS)=>{const _0x25cf98=_0x916902,_0x22d866=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x25cf98(0xcb)](_0x57e3bd);if(!_0x22d866)throw new Error(_0x25cf98(0x7c));let _0x86dd24=0x0;for(const _0x1da07d of _0x22d866[0x1])_0x86dd24=_0x86dd24*0x1a+_0x1da07d[_0x25cf98(0xca)](0x0)-0x40;if(_0x86dd24>_0x14ede6)throw new Error(_0x25cf98(0x152)+_0x14ede6+_0x25cf98(0xf7));return{'row':_0xd60247(_0x22d866[0x2],MAX_XML_ROWS),'col':_0x86dd24};},_0x327611=_0x10c031=>{const _0x4e7733=_0x916902;if(_0x10c031[_0x4e7733(0xb6)]==='_xlnm.Print_Area'||_0x10c031[_0x4e7733(0xb6)]===_0x4e7733(0x6a))return;for(const _0x3cd77e of _0x10c031[_0x4e7733(0x130)]){if(!ABSOLUTE_NAME_RANGE[_0x4e7733(0x94)](_0x3cd77e[_0x4e7733(0x9e)]('!')[_0x4e7733(0xbb)]()||''))continue;const _0x21dccc=nameCoordinates[_0x4e7733(0x14c)](_0x3cd77e),_0x12ba85='top'in _0x21dccc,_0x125062=_0x12ba85?[_0x21dccc[_0x4e7733(0xb3)],_0x21dccc[_0x4e7733(0x122)]]:[_0x21dccc[_0x4e7733(0x114)]],_0x2504e2=_0x12ba85?[_0x21dccc[_0x4e7733(0x112)],_0x21dccc['right']]:[_0x21dccc[_0x4e7733(0xd0)]],_0x1e87db=(_0x4cd699,_0x16d1cf)=>Number[_0x4e7733(0x6b)](_0x4cd699)&&_0x4cd699>=0x1&&_0x4cd699<=_0x16d1cf;if(!_0x125062[_0x4e7733(0xdf)](_0x451c15=>_0x1e87db(_0x451c15,MAX_XML_ROWS))||!_0x2504e2[_0x4e7733(0xdf)](_0x4bc9b9=>_0x1e87db(_0x4bc9b9,MAX_XML_COLUMNS)))throw new Error(_0x4e7733(0xa2));_0x7bcdd5+=_0x12ba85?(_0x21dccc[_0x4e7733(0x122)]-_0x21dccc['top']+0x1)*(_0x21dccc[_0x4e7733(0x7b)]-_0x21dccc['left']+0x1):0x1;if(_0x7bcdd5>MAX_ROWS)throw new Error(_0x4e7733(0x10f));}};_0xeb8dc7['on'](_0x916902(0x7d),_0x160856),_0xeb8dc7['on'](_0x916902(0x100),_0x196596=>{const _0xa92b6a=_0x916902;if(_0x3fa7b2)return;if(++_0x259d4f>0x2710||(_0x1a4c5d+=_0x196596[_0xa92b6a(0x75)])>MAX_EXPANDED){_0x160856(new Error(_0xa92b6a(0x126)));return;}let _0x3c3a26;try{_0x3c3a26=consumerEntryName(_0x2b6144,_0x196596);}catch(_0x1f6016){_0x160856(_0x1f6016);return;}if(_0x3c3a26[_0xa92b6a(0x95)]){_0xeb8dc7[_0xa92b6a(0x116)]();return;}const _0x27a57c=_0x3c3a26['name'];if(_0x4f5281&&(_0x27a57c!==_0x3c3a26[_0xa92b6a(0xb2)]||_0x2e37a2[_0xa92b6a(0x113)](_0x27a57c)||_0x27a57c[_0xa92b6a(0x135)]('/')||_0x27a57c['includes']('\x5c'))){_0x160856(new Error(_0xa92b6a(0xff)));return;}if(_0x27a57c!==_0x3c3a26[_0xa92b6a(0xb2)]&&(_0x27a57c===_0xa92b6a(0x9a)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa92b6a(0x94)](_0x27a57c))){_0x160856(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x38bd92=_0x27a57c==='xl/workbook.xml';if(_0x38bd92&&_0x2e37a2[_0xa92b6a(0x113)](_0x27a57c)){_0x160856(new Error(_0xa92b6a(0xeb)));return;}_0x2e37a2[_0xa92b6a(0x92)](_0x27a57c);const _0x523aa1=/xl\/worksheets\/sheet(\d+)[.]xml/[_0xa92b6a(0x94)](_0x27a57c);if(_0x523aa1&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0xa92b6a(0x94)](_0x27a57c)){_0x160856(new Error('Non-canonical\x20worksheet\x20ZIP\x20entry.'));return;}_0xeb8dc7[_0xa92b6a(0x12d)](_0x196596,(_0x3adca1,_0x1ad916)=>{const _0x473894=_0xa92b6a;if(_0x3fa7b2){_0x1ad916?.[_0x473894(0x119)]();return;}if(_0x3adca1||!_0x1ad916){_0x160856(_0x3adca1??new Error(_0x473894(0x110)));return;}_0x13b71f=_0x1ad916;const _0x39a67c=_0x4f5281?[]:undefined,_0x8dd2fb=_0x4f5281&&/[.](xml|rels)$/[_0x473894(0x94)](_0x27a57c)?new StringDecoder(_0x473894(0x8a)):undefined,_0x3f48c3=_0x8dd2fb?new SaxesParser({'xmlns':![]}):undefined,_0x897c90=()=>{const _0x1bb46d=_0x473894;if(++_0x402792>0x1e8480)throw Error(_0x1bb46d(0x138));};_0x3f48c3?.['on']('doctype',()=>{const _0x26ea0c=_0x473894;throw Error(_0x26ea0c(0x109));}),_0x3f48c3?.['on'](_0x473894(0xae),()=>{_0x897c90();if(++_0x985e52>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x3f48c3?.['on']('text',_0x897c90),_0x3f48c3?.['on'](_0x473894(0xe3),_0x897c90),_0x3f48c3?.['on'](_0x473894(0x7d),_0x4fe3b2=>{throw _0x4fe3b2;});const _0x56c7ef=_0x523aa1||_0x38bd92?new StringDecoder(_0x473894(0x8a)):undefined,_0x5d5e7b=_0x523aa1||_0x38bd92?new SaxesParser({'xmlns':![]}):undefined;let _0x87b44,_0x2a4a38=0x0,_0x37336b=0x0,_0x50ac97,_0x3e79a9,_0x9c9e70=![],_0x3d1e6c=![],_0xe5c72e,_0x521681,_0x3c28d1,_0x283fad=![];const _0x3261c3=[],_0x26b58e=new Set();let _0x2a110e;const _0x3621c7=(_0x510ded,_0x11be0d=0x0)=>{const _0x134d11=_0x473894;_0x90fb0d+=_0x11be0d+Math[_0x134d11(0x69)](0x0,_0x510ded-_0x37336b),_0x37336b=Math[_0x134d11(0x69)](_0x37336b,_0x510ded);if(_0x90fb0d>MAX_ROWS)throw new Error(_0x134d11(0x13f));};_0x5d5e7b?.['on'](_0x473894(0xae),_0x4a4302=>{const _0x378ddb=_0x473894;if(_0x38bd92){if(!_0x87b44&&_0x4a4302[_0x378ddb(0xb6)]==='definedName')_0x87b44=new DefinedNameXform();_0x87b44?.[_0x378ddb(0x6c)](_0x4a4302);return;}if(_0x4a4302[_0x378ddb(0xb6)]===_0x378ddb(0x114)){if(_0x3d1e6c)throw new Error(_0x378ddb(0xd1));_0xd60247(_0x4a4302[_0x378ddb(0x139)]['r'],MAX_XML_ROWS),_0x50ac97=undefined,_0x3c28d1=undefined,_0x283fad=![];}else{if(_0x4a4302[_0x378ddb(0xb6)]==='c'){if(_0x3d1e6c)throw new Error(_0x378ddb(0xd4));_0x3d1e6c=!![],_0x9c9e70=Boolean(Number['parseInt'](_0x4a4302[_0x378ddb(0x139)]['s']??'',0xa)),_0x2a110e=undefined,_0xe5c72e=_0x4a4302[_0x378ddb(0x139)]['r']||undefined,_0x521681=_0xe5c72e?_0x125de0(_0xe5c72e):undefined;if(_0x521681)_0x3e79a9=_0x521681;else _0x3e79a9=_0x50ac97?{'row':_0x50ac97[_0x378ddb(0x114)],'col':_0x50ac97[_0x378ddb(0xd0)]+0x1}:undefined;}else{if(_0x3d1e6c&&['f','v','t'][_0x378ddb(0x154)](_0x4a4302['name'])){_0x2a110e=_0x4a4302['name'];if(_0x4a4302[_0x378ddb(0xb6)]==='f'&&_0x4a4302[_0x378ddb(0x139)]['t'])_0x9c9e70=!![];}else{if(_0x3d1e6c&&_0x4a4302[_0x378ddb(0xb6)]==='r')_0x9c9e70=!![];else{if(_0x4a4302['name']===_0x378ddb(0x13a)){const _0x4a7c67=_0x4a4302[_0x378ddb(0x139)]['ref'];if(!_0x4a7c67)throw new Error(_0x378ddb(0xbc));const _0x22b041=_0x4a7c67[_0x378ddb(0x9e)](':');if(_0x22b041[_0x378ddb(0x121)]>0x2)throw new Error(_0x378ddb(0xbc));const _0x383167=_0x125de0(_0x22b041[0x0]),_0x105641=_0x125de0(_0x22b041[0x1]??_0x22b041[0x0]);_0x26b58e[_0x378ddb(0x92)](_0x4a7c67),_0x3621c7(Math['max'](_0x383167[_0x378ddb(0xd0)],_0x105641[_0x378ddb(0xd0)]),0x1);}else{if(_0x4a4302[_0x378ddb(0xb6)]===_0x378ddb(0xd0)){const _0x234068=_0xd60247(_0x4a4302['attributes'][_0x378ddb(0xf6)],0x4000),_0x9b25b1=_0xd60247(_0x4a4302[_0x378ddb(0x139)]['max'],0x4000);if(_0x234068>_0x9b25b1)throw new Error(_0x378ddb(0xd3));_0x3621c7(_0x9b25b1,0x1);}else{if(_0x4a4302['name']===_0x378ddb(0x106)){const _0x35cab0=_0x4a4302[_0x378ddb(0x139)][_0x378ddb(0x108)];if(!_0x35cab0)throw new Error(_0x378ddb(0x88));const _0x27a6cf=_0x35cab0[_0x378ddb(0x9e)](':');if(_0x27a6cf[_0x378ddb(0x121)]>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x5f43ee=_0x125de0(_0x27a6cf[0x0]),_0x5dfbdc=_0x125de0(_0x27a6cf[0x1]??_0x27a6cf[0x0]);_0x3621c7(Math[_0x378ddb(0x69)](_0x5f43ee['col'],_0x5dfbdc[_0x378ddb(0xd0)]));const _0x4e59b6=(Math['abs'](_0x5dfbdc['row']-_0x5f43ee[_0x378ddb(0x114)])+0x1)*(Math[_0x378ddb(0x84)](_0x5dfbdc[_0x378ddb(0xd0)]-_0x5f43ee['col'])+0x1);_0x33f31d+=_0x4e59b6+_0x2a4a38++;if(_0x33f31d>MAX_ROWS)throw new Error(_0x378ddb(0xdd));}}}}}}}}),_0x5d5e7b?.['on'](_0x473894(0xc0),_0x70fa8d=>{const _0x2cd1f4=_0x473894;if(_0x38bd92){_0x87b44?.[_0x2cd1f4(0x86)](_0x70fa8d);return;}if(_0x3d1e6c&&_0x2a110e&&_0x70fa8d)_0x9c9e70=!![];}),_0x5d5e7b?.['on'](_0x473894(0xe3),_0x398f03=>{const _0xea070f=_0x473894;if(_0x38bd92){_0x87b44&&!_0x87b44['parseClose']()&&(_0x327611(_0x87b44[_0xea070f(0x96)]),_0x87b44=undefined);return;}if(_0x398f03[_0xea070f(0xb6)]==='c'){!_0x9c9e70&&_0xe5c72e&&!_0x3c28d1&&(_0x3c28d1={'before':_0x50ac97,'cells':[]});if(_0x3c28d1){if(++_0x39036c>0xf4240)throw new Error(_0xea070f(0xce));_0x3c28d1[_0xea070f(0x12f)]['push']({'reference':_0xe5c72e,'address':_0x521681,'materialized':_0x9c9e70});if(!_0xe5c72e&&_0x9c9e70)_0x283fad=!![];}if(_0x9c9e70){if(!_0x3c28d1||_0xe5c72e){if(!_0x3e79a9)throw new Error(_0xea070f(0x115));if(_0x3e79a9[_0xea070f(0xd0)]>MAX_XML_COLUMNS)throw new Error(_0xea070f(0x11e));_0x3621c7(_0x3e79a9[_0xea070f(0xd0)]);}_0x50ac97=_0x3e79a9;}_0x3d1e6c=![],_0x3e79a9=undefined,_0xe5c72e=undefined,_0x521681=undefined,_0x2a110e=undefined;}else{if(_0x398f03['name']===_0xea070f(0x114)){if(_0x3c28d1&&_0x283fad)_0x3261c3[_0xea070f(0xc3)](_0x3c28d1);_0x3c28d1=undefined,_0x283fad=![];}else{if(_0x398f03[_0xea070f(0xb6)]===_0x2a110e)_0x2a110e=undefined;}}}),_0x5d5e7b?.['on']('error',_0x59ddbf=>{const _0x35b141=_0x473894;throw new Error(_0x35b141(0x131)+_0x59ddbf[_0x35b141(0x155)]);}),_0x1ad916['on'](_0x473894(0x7d),_0x160856),_0x1ad916['on'](_0x473894(0x7a),_0x50d0b8=>{const _0x3d410f=_0x473894;if(_0x3fa7b2)return;_0x1a27ea+=_0x50d0b8[_0x3d410f(0x121)],_0x39a67c?.[_0x3d410f(0xc3)](_0x50d0b8);if(_0x1a27ea>MAX_EXPANDED){_0x160856(new Error(_0x3d410f(0x126)));return;}try{if(_0x3f48c3&&_0x8dd2fb)_0x3f48c3['write'](_0x8dd2fb[_0x3d410f(0x141)](_0x50d0b8));if(_0x5d5e7b&&_0x56c7ef)_0x5d5e7b['write'](_0x56c7ef['write'](_0x50d0b8));}catch(_0x2020b9){_0x160856(_0x2020b9 instanceof Error?_0x2020b9:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1ad916['on'](_0x473894(0xb0),()=>{const _0x325882=_0x473894;if(_0x3fa7b2)return;try{if(_0x3f48c3&&_0x8dd2fb)_0x3f48c3[_0x325882(0x141)](_0x8dd2fb['end']())['close']();if(_0x5d5e7b&&_0x56c7ef)_0x5d5e7b[_0x325882(0x141)](_0x56c7ef['end']())[_0x325882(0x8b)]();for(const _0x2005d5 of _0x3261c3){let _0x3d6a5d=_0x2005d5['before'];for(const _0x1a3bbd of _0x2005d5['cells']){if(!_0x1a3bbd[_0x325882(0xd7)]&&!(_0x1a3bbd[_0x325882(0xe2)]&&_0x26b58e[_0x325882(0x113)](_0x1a3bbd[_0x325882(0xe2)])))continue;const _0x23e630=_0x1a3bbd[_0x325882(0xd5)]??(_0x3d6a5d?{'row':_0x3d6a5d[_0x325882(0x114)],'col':_0x3d6a5d[_0x325882(0xd0)]+0x1}:undefined);if(!_0x23e630)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x23e630[_0x325882(0xd0)]>MAX_XML_COLUMNS)throw new Error(_0x325882(0x11e));_0x3621c7(_0x23e630[_0x325882(0xd0)]),_0x3d6a5d=_0x23e630;}}_0x3261c3['length']=0x0,_0x26b58e[_0x325882(0x156)]();}catch(_0x12ab37){_0x160856(_0x12ab37 instanceof Error?_0x12ab37:new Error(_0x325882(0x9f)));return;}if(_0x39a67c)_0x4f5281[_0x325882(0x111)](_0x27a57c,Buffer[_0x325882(0x11c)](_0x39a67c));_0x13b71f=undefined,_0xeb8dc7[_0x325882(0x116)]();});});}),_0xeb8dc7['on']('end',()=>{const _0x1fd4e9=_0x916902;if(_0x3fa7b2)return;if(_0xeb8dc7[_0x1fd4e9(0x9c)]!==_0x2b7836){_0x7ca05(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x2e37a2[_0x1fd4e9(0x113)](_0x1fd4e9(0xc4))||!_0x2e37a2[_0x1fd4e9(0x113)]('xl/workbook.xml'))_0x7ca05(new Error(_0x1fd4e9(0x132)));else _0x1b6da5();}),_0xeb8dc7['readEntry']();});});}function valueOf(_0x11e270){const _0x34fded=a144_0x1799e9,_0x13c40d=_0x11e270[_0x34fded(0xaf)];if(_0x13c40d&&typeof _0x13c40d===_0x34fded(0xc8)&&(_0x34fded(0xf9)in _0x13c40d||'sharedFormula'in _0x13c40d)){if(!(_0x34fded(0x125)in _0x13c40d)||_0x13c40d[_0x34fded(0x125)]===undefined)throw new Error(_0x34fded(0xb8));return _0x13c40d[_0x34fded(0x125)];}return _0x13c40d;}function convert(_0x4ba8ab,_0x55ff0d){const _0x1226b0=a144_0x1799e9;if(_0x4ba8ab===null||_0x4ba8ab===undefined||_0x4ba8ab===''){if(_0x55ff0d[_0x1226b0(0xc5)]&&!_0x55ff0d[_0x1226b0(0xab)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x4ba8ab===_0x1226b0(0x76)&&Buffer['byteLength'](_0x4ba8ab,_0x1226b0(0x8a))>MAX_CELL)throw new Error(_0x1226b0(0x9b));switch(_0x55ff0d['type'][_0x1226b0(0x105)]()){case'string':case _0x1226b0(0xc0):case _0x1226b0(0x151):if(typeof _0x4ba8ab!=='string')throw new Error(_0x1226b0(0x11b));return _0x4ba8ab;case'number':case'decimal':case'integer':if(typeof _0x4ba8ab!==_0x1226b0(0xbd)||!Number[_0x1226b0(0xfd)](_0x4ba8ab)||Math[_0x1226b0(0x84)](_0x4ba8ab)>Number[_0x1226b0(0x101)]||_0x55ff0d[_0x1226b0(0x133)][_0x1226b0(0x105)]()===_0x1226b0(0x13d)&&!Number[_0x1226b0(0x83)](_0x4ba8ab))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x4ba8ab;case _0x1226b0(0x72):if(typeof _0x4ba8ab!==_0x1226b0(0x72))throw new Error(_0x1226b0(0x11d));return _0x4ba8ab;case _0x1226b0(0xb9):case _0x1226b0(0x67):if(!(_0x4ba8ab instanceof Date)||!Number[_0x1226b0(0xfd)](_0x4ba8ab[_0x1226b0(0xad)]()))throw new Error(_0x1226b0(0xe7));return _0x4ba8ab[_0x1226b0(0xad)]();default:throw new Error(_0x1226b0(0x12c)+_0x55ff0d['type']+'.');}}export async function buildExcelManifest(_0x598f3c){const _0x119274=a144_0x1799e9,_0x122b3f=_0x598f3c['headerRow']??0x1;if(!Number['isInteger'](_0x122b3f)||_0x122b3f<0x1||_0x122b3f>MAX_ROWS)throw new Error(_0x119274(0xed));if(_0x598f3c[_0x119274(0x8e)]!==undefined&&(!Number[_0x119274(0x83)](_0x598f3c[_0x119274(0x8e)])||_0x598f3c['batchSize']<0x1||_0x598f3c[_0x119274(0x8e)]>0x3e8))throw new Error(_0x119274(0xf5));if(a144_0xccf9ab['extname'](_0x598f3c[_0x119274(0xd8)])['toLowerCase']()!=='.xlsx')throw new Error(_0x119274(0x144));const _0x375341=await stat(_0x598f3c[_0x119274(0xd8)]);if(!_0x375341['isFile']()||_0x375341['size']>MAX_FILE)throw new Error(_0x119274(0x89));const _0x50b14a=await readFile(_0x598f3c['file']);if(_0x50b14a['length']>MAX_FILE)throw new Error(_0x119274(0xa6));const _0x337f41=_0x598f3c['fields']['some'](_0x52a087=>isImageContainer(_0x52a087[_0x119274(0x133)])&&Object[_0x119274(0xfb)](_0x598f3c[_0x119274(0xa8)])[_0x119274(0x154)](_0x52a087['code']))?new Map():undefined;await checkArchive(_0x50b14a,_0x337f41);const _0x275990=new a144_0xe61f09[(_0x119274(0x117))]();await _0x275990[_0x119274(0x90)][_0x119274(0x77)](_0x50b14a,{'ignoreNodes':[_0x119274(0xa5)]});const _0x9f268f=_0x598f3c[_0x119274(0xc9)];let _0x4855f3;if(_0x9f268f===undefined)_0x4855f3=_0x275990[_0x119274(0xcf)][0x0];else{if(typeof _0x9f268f==='string'&&_0x275990[_0x119274(0xcf)][_0x119274(0x13e)](_0x3b95c6=>_0x3b95c6[_0x119274(0xb6)]===_0x9f268f))_0x4855f3=_0x275990['worksheets']['find'](_0x55a28c=>_0x55a28c[_0x119274(0xb6)]===_0x9f268f);else{if(typeof _0x9f268f===_0x119274(0xbd)||/^\d+$/['test'](_0x9f268f)){const _0xfcae5=Number(_0x9f268f);if(!Number[_0x119274(0x83)](_0xfcae5)||_0xfcae5<0x1)throw new Error(_0x119274(0xb7));_0x4855f3=_0x275990[_0x119274(0xcf)][_0xfcae5-0x1];}else _0x4855f3=_0x275990[_0x119274(0xcf)][_0x119274(0xe9)](_0x1bed8d=>_0x1bed8d[_0x119274(0xb6)]===_0x9f268f);}}if(!_0x4855f3)throw new Error(_0x119274(0x85));if(_0x4855f3['rowCount']>MAX_ROWS||_0x4855f3['columnCount']>MAX_COLUMNS)throw new Error(_0x119274(0x13c));if((_0x4855f3[_0x119274(0x96)][_0x119274(0x98)]??[])[_0x119274(0x121)])throw new Error(_0x119274(0xf4));const _0x188aac=new Map();_0x4855f3[_0x119274(0xa0)](_0x122b3f)['eachCell']((_0xae0b23,_0x587de5)=>{const _0x3d2fd7=_0x119274,_0x1be37c=valueOf(_0xae0b23);if(typeof _0x1be37c!==_0x3d2fd7(0x76)||!_0x1be37c['trim']()||Buffer['byteLength'](_0x1be37c)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x188aac[_0x3d2fd7(0x113)](_0x1be37c))throw new Error(_0x3d2fd7(0xef)+_0x1be37c+'.');_0x188aac[_0x3d2fd7(0x111)](_0x1be37c,_0x587de5);});const _0x571da9=Object['entries'](_0x598f3c['mapping']);if(!_0x571da9[_0x119274(0x121)])throw new Error(_0x119274(0xf8));const _0xd80209=new Map(_0x598f3c[_0x119274(0x10e)][_0x119274(0x129)](_0x4de434=>[_0x4de434['code'],_0x4de434]));if(_0xd80209['size']!==_0x598f3c[_0x119274(0x10e)][_0x119274(0x121)])throw new Error(_0x119274(0x11a));if(_0x598f3c[_0x119274(0x10e)][_0x119274(0x13e)](_0x351742=>_0x351742[_0x119274(0x133)][_0x119274(0x105)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x1cda49=new Set();for(const [_0x41ad5e,_0x53dc47]of _0x571da9){const _0x3d26e7=_0xd80209[_0x119274(0xa4)](_0x53dc47);if(!_0x188aac[_0x119274(0x113)](_0x41ad5e))throw new Error(_0x119274(0x107)+_0x41ad5e+'.');if(!_0x3d26e7||RESERVED[_0x119274(0x113)](_0x53dc47)||_0x3d26e7['generated'])throw new Error(_0x119274(0x68)+_0x53dc47+'.');if(_0x1cda49[_0x119274(0x113)](_0x53dc47))throw new Error(_0x119274(0x80)+_0x53dc47+'.');if(!TYPES[_0x119274(0x113)](_0x3d26e7[_0x119274(0x133)][_0x119274(0x105)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x3d26e7[_0x119274(0x133)]+'.');_0x1cda49[_0x119274(0x92)](_0x53dc47);}for(const _0x3ac26e of _0x598f3c['fields']){if(_0x3ac26e[_0x119274(0xc5)]&&!_0x3ac26e['generated']&&!RESERVED[_0x119274(0x113)](_0x3ac26e[_0x119274(0x12b)])&&!_0x1cda49[_0x119274(0x113)](_0x3ac26e[_0x119274(0x12b)]))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x3ac26e[_0x119274(0x12b)]+'.');}const _0x143abf={'fileHash':hash(_0x50b14a),'mappingHash':hash(JSON[_0x119274(0x118)]([..._0x571da9]['sort'](([_0x645e43],[_0x1d6c6b])=>_0x645e43[_0x119274(0x146)](_0x1d6c6b)))),'schemaHash':hash(JSON[_0x119274(0x118)]([..._0x598f3c['fields']]['sort']((_0x176847,_0x4a869b)=>_0x176847[_0x119274(0x12b)]['localeCompare'](_0x4a869b[_0x119274(0x12b)])))),'sheet':_0x4855f3[_0x119274(0xb6)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x1d5794=_0x571da9[_0x119274(0xe5)](([,_0x4641fc])=>isImageContainer(_0xd80209['get'](_0x4641fc)[_0x119274(0x133)])),_0xd7c4f1=_0x1d5794[_0x119274(0xe5)](([,_0x1f3bfe])=>_0xd80209['get'](_0x1f3bfe)[_0x119274(0x133)][_0x119274(0x105)]()===_0x119274(0xc2))[_0x119274(0x129)](([,_0x2024e0])=>_0x2024e0);if(_0xd7c4f1[_0x119274(0x121)])_0x143abf['uploadFields']=_0xd7c4f1;const _0xecd678=_0x337f41?resolveWorksheetImages(_0x337f41,_0x4855f3['name'],new Set(_0x1d5794[_0x119274(0x129)](([_0x45ff68])=>_0x188aac[_0x119274(0xa4)](_0x45ff68)))):[],_0x555605=new Map();for(const _0x2e7025 of _0xecd678){const _0x2d95ff=_0x2e7025[_0x119274(0x114)]+':'+_0x2e7025[_0x119274(0xd0)],_0x484ffa=_0x555605[_0x119274(0xa4)](_0x2d95ff)??[];_0x484ffa['push'](_0x2e7025),_0x555605[_0x119274(0x111)](_0x2d95ff,_0x484ffa);}const _0x1c7d2c=new Map();let _0x65a62f=0x0;_0x1d5794[_0x119274(0x121)]&&(_0x143abf[_0x119274(0x10c)]=_0x1d5794['map'](([,_0x23f7a8])=>_0x23f7a8),_0x143abf[_0x119274(0xb4)]=[],_0x143abf[_0x119274(0xdc)]=0x1,_0x143abf[_0x119274(0xac)]=[]);const _0x23a7e1=Math['max'](0x0,..._0xecd678[_0x119274(0x129)](_0x24c747=>_0x24c747['row']));let _0x3fc5b0=0x0;const _0x3c206f=new Set(_0x571da9[_0x119274(0x129)](([_0x19f278])=>_0x188aac[_0x119274(0xa4)](_0x19f278)));for(let _0x5eee24=_0x122b3f+0x1;_0x5eee24<=Math['max'](_0x4855f3[_0x119274(0xd6)],_0x23a7e1);_0x5eee24++){const _0x84185=_0x4855f3[_0x119274(0xa0)](_0x5eee24);if(_0x84185[_0x119274(0x14f)]||_0xecd678[_0x119274(0x13e)](_0xb125e=>_0xb125e[_0x119274(0x114)]===_0x5eee24&&_0xb125e[_0x119274(0xe6)]))_0x3fc5b0++;let _0x1c7488=_0xecd678['some'](_0x428643=>_0x428643['row']===_0x5eee24);_0x84185['eachCell'](_0x4572ae=>{const _0x5b1ef1=_0x119274;if(_0x4572ae[_0x5b1ef1(0xaf)]!==null&&_0x4572ae['value']!==undefined&&_0x4572ae['value']!=='')_0x1c7488=!![];});if(!_0x1c7488){_0x143abf['emptyRows'][_0x119274(0xc3)](_0x5eee24);continue;}const _0x4d5019=Object[_0x119274(0xe0)](null);_0x84185['eachCell']((_0x3d79bd,_0x411bde)=>{const _0x1f5e83=_0x119274;if(_0x3c206f['has'](_0x411bde))return;try{const _0x28f535=valueOf(_0x3d79bd);if(typeof _0x28f535===_0x1f5e83(0x76)&&Buffer[_0x1f5e83(0x124)](_0x28f535,_0x1f5e83(0x8a))>MAX_CELL)throw new Error(_0x1f5e83(0x9b));}catch(_0x116958){_0x143abf['errors']['push']({'rowNumber':_0x5eee24,'field':_0x3d79bd[_0x1f5e83(0xd5)],'message':_0x116958[_0x1f5e83(0x155)]});}});for(const [_0x19ad81,_0x52dca1]of _0x571da9){try{const _0x373258=_0x84185['getCell'](_0x188aac[_0x119274(0xa4)](_0x19ad81)),_0x58500e=_0xd80209[_0x119274(0xa4)](_0x52dca1);if(!isImageContainer(_0x58500e['type'])){_0x4d5019[_0x52dca1]=convert(valueOf(_0x373258),_0x58500e);continue;}const _0x186442=_0x555605[_0x119274(0xa4)](_0x5eee24+':'+_0x188aac[_0x119274(0xa4)](_0x19ad81))??[];if(_0x186442[_0x119274(0x13e)](_0x27bab4=>_0x27bab4[_0x119274(0x7d)]))throw Error(_0x186442[_0x119274(0xe9)](_0x4dc5a8=>_0x4dc5a8['error'])[_0x119274(0x7d)]);if(_0x373258[_0x119274(0xaf)]!=null&&_0x373258[_0x119274(0xaf)]!==''&&!_0x186442[_0x119274(0x13e)](_0x22a7ff=>_0x22a7ff['nativeCell']))throw Error(_0x119274(0xe8));const _0x302fe0=[];for(const _0x4f1d91 of _0x186442)for(const _0x20ab68 of _0x4f1d91[_0x119274(0xac)]){const _0xfa762d=_0x337f41[_0x119274(0xa4)](_0x20ab68);if(!_0xfa762d)throw Error(_0x119274(0x150)+_0x20ab68+'.');const _0x1ddf60=hash(_0xfa762d),_0x15f5a5=_0x1c7d2c['get'](_0x1ddf60)??validateImageBytes(_0xfa762d);if(!_0x1c7d2c['has'](_0x15f5a5[_0x119274(0x10a)])){_0x65a62f+=_0x15f5a5[_0x119274(0x8d)];if(_0x65a62f>0x32*0x400*0x400)throw Error(_0x119274(0x103));_0x1c7d2c[_0x119274(0x111)](_0x15f5a5[_0x119274(0x10a)],_0x15f5a5);}_0x302fe0[_0x119274(0xc3)](_0x15f5a5['contentHash']);}if(!_0x302fe0[_0x119274(0x121)]&&_0x58500e[_0x119274(0xc5)])throw Error(_0x119274(0x14b));if(_0x302fe0[_0x119274(0x121)])_0x143abf[_0x119274(0xb4)][_0x119274(0xc3)]({'rowNumber':_0x5eee24,'field':_0x52dca1,'hashes':_0x302fe0});_0x4d5019[_0x52dca1]=_0x302fe0[_0x119274(0x129)](_0x162c73=>{const _0x151251=_0x119274,_0x1647ac=_0x1c7d2c[_0x151251(0xa4)](_0x162c73),_0x2c86b0=_0x1647ac[_0x151251(0x133)]==='image/jpeg'?'jpg':_0x1647ac['type'][_0x151251(0x6f)](0x6),_0x274568=_0x162c73+'.'+_0x2c86b0,_0x4ad5bb=_0x151251(0xde)+'0'[_0x151251(0x157)](0x40)+'/'+_0x274568;return _0x58500e['type']['toLowerCase']()===_0x151251(0xc2)?{'fileName':_0x274568,'filePath':_0x4ad5bb}:{'key':_0x4ad5bb,'name':_0x274568,'type':_0x1647ac[_0x151251(0x133)],'size':_0x1647ac[_0x151251(0x8d)]};});}catch(_0x5b308e){_0x143abf['errors'][_0x119274(0xc3)]({'rowNumber':_0x5eee24,'field':_0x52dca1,'message':_0x5b308e['message']});}}_0x143abf[_0x119274(0x12a)][_0x119274(0xc3)]({'rowNumber':_0x5eee24,'values':_0x4d5019});}if(_0x143abf[_0x119274(0xac)])_0x143abf[_0x119274(0xac)]=[..._0x1c7d2c['values']()];if(_0x3fc5b0)_0x143abf[_0x119274(0x14e)][_0x119274(0xc3)](_0x3fc5b0+_0x119274(0xbe));return _0x143abf;}
|
|
1
|
+
function a144_0x41e3(_0x4359ef,_0x2b015c){_0x4359ef=_0x4359ef-0x6d;const _0x5a8aa2=a144_0x5a8a();let _0x41e356=_0x5a8aa2[_0x4359ef];return _0x41e356;}const a144_0x910eac=a144_0x41e3;(function(_0x5bf53a,_0x1b6455){const _0x225ee8=a144_0x41e3,_0x28f87d=_0x5bf53a();while(!![]){try{const _0x5f5181=parseInt(_0x225ee8(0xd4))/0x1+-parseInt(_0x225ee8(0x11c))/0x2*(parseInt(_0x225ee8(0x125))/0x3)+-parseInt(_0x225ee8(0x7b))/0x4+parseInt(_0x225ee8(0xca))/0x5+parseInt(_0x225ee8(0x12b))/0x6*(-parseInt(_0x225ee8(0xde))/0x7)+parseInt(_0x225ee8(0x84))/0x8+-parseInt(_0x225ee8(0xaf))/0x9*(-parseInt(_0x225ee8(0x13a))/0xa);if(_0x5f5181===_0x1b6455)break;else _0x28f87d['push'](_0x28f87d['shift']());}catch(_0x5cb7a5){_0x28f87d['push'](_0x28f87d['shift']());}}}(a144_0x5a8a,0xd8f8a));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1614b2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3eec37 from'exceljs';import a144_0x57f54b 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','tenantCode',a144_0x910eac(0x13d),'datasetId',a144_0x910eac(0x122),'creatorName',a144_0x910eac(0x149),a144_0x910eac(0x146),'createTime',a144_0x910eac(0x110),a144_0x910eac(0x90)]),TYPES=new Set([a144_0x910eac(0x117),'text',a144_0x910eac(0x88),'number',a144_0x910eac(0xc2),a144_0x910eac(0xd0),a144_0x910eac(0xe9),a144_0x910eac(0x9a),a144_0x910eac(0xbe),a144_0x910eac(0xb6),a144_0x910eac(0xb7)]),isImageContainer=_0x11545e=>[a144_0x910eac(0xb6),a144_0x910eac(0xb7)]['includes'](_0x11545e['toLowerCase']()),hash=_0x1b5da2=>createHash(a144_0x910eac(0xac))[a144_0x910eac(0x111)](_0x1b5da2)[a144_0x910eac(0x148)](a144_0x910eac(0xce)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x910eac(0x14a)),nameCoordinates=require(a144_0x910eac(0x10a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x910eac(0xaa)](a144_0x910eac(0xf7))),zipRequire=createRequire(excelRequire[a144_0x910eac(0xaa)](a144_0x910eac(0xbf))),ZipEntry=zipRequire(a144_0x910eac(0x139)),zipReader=zipRequire(a144_0x910eac(0x71)),zipUtf8=zipRequire(a144_0x910eac(0x133)),zipPaths=zipRequire(a144_0x910eac(0xb0));function centralDirectoryEnd(_0x2bf872,_0x293136){const _0xbbd85e=a144_0x910eac,_0x5d3783=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0xbd652e=_0x2bf872[_0xbbd85e(0x150)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0xbd652e<0x0||_0xbd652e+0x16>_0x2bf872[_0xbbd85e(0xd2)]||_0xbd652e+0x16+_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x14)!==_0x2bf872[_0xbbd85e(0xd2)])throw _0x5d3783();let _0x48ee73=_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0xa),_0x9694d=_0x2bf872[_0xbbd85e(0xdb)](_0xbd652e+0xc),_0x1acee0=_0x2bf872['readUInt32LE'](_0xbd652e+0x10),_0x598070=_0xbd652e;const _0x8101fb=_0xbd652e-0x14,_0xa165c6=_0x8101fb>=0x0&&_0x2bf872['readUInt32LE'](_0x8101fb)===0x7064b50,_0x1b9c54=[0x4,0x6,0x8,0xa]['some'](_0x472eb0=>_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+_0x472eb0)===0xffff)||_0x9694d===0xffffffff||_0x1acee0===0xffffffff;if(_0xa165c6!==_0x1b9c54)throw _0x5d3783();if(_0xa165c6){if(_0x2bf872[_0xbbd85e(0x150)](Buffer[_0xbbd85e(0xa1)]([0x50,0x4b,0x6,0x7]))!==_0x8101fb)throw _0x5d3783();const _0xc820f0=_0xd6a379=>{const _0x4954ec=_0xbbd85e,_0x4cd973=Number(_0x2bf872[_0x4954ec(0x7f)](_0xd6a379));if(!Number[_0x4954ec(0x8f)](_0x4cd973))throw _0x5d3783();return _0x4cd973;};_0x598070=_0xc820f0(_0x8101fb+0x8);if(_0x2bf872[_0xbbd85e(0xdb)](_0x8101fb+0x4)!==0x0||_0x2bf872[_0xbbd85e(0xdb)](_0x8101fb+0x10)!==0x1||_0x598070>_0x8101fb-0x38||_0x2bf872['readUInt32LE'](_0x598070)!==0x6064b50||_0xc820f0(_0x598070+0x4)!==0x2c||_0x598070+0x38!==_0x8101fb||_0x2bf872[_0xbbd85e(0xdb)](_0x598070+0x10)!==0x0||_0x2bf872[_0xbbd85e(0xdb)](_0x598070+0x14)!==0x0)throw _0x5d3783();_0x48ee73=_0xc820f0(_0x598070+0x20),_0x9694d=_0xc820f0(_0x598070+0x28),_0x1acee0=_0xc820f0(_0x598070+0x30);if(_0xc820f0(_0x598070+0x18)!==_0x48ee73)throw _0x5d3783();}else{if(_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x4)!==0x0||_0x2bf872['readUInt16LE'](_0xbd652e+0x6)!==0x0||_0x2bf872[_0xbbd85e(0x10e)](_0xbd652e+0x8)!==_0x48ee73)throw _0x5d3783();}const _0x1e4664=_0x293136['readEntryCursor'];if(_0x1acee0!==_0x1e4664||_0x48ee73!==_0x293136['entryCount']||_0x1acee0+_0x9694d!==_0x598070)throw _0x5d3783();return _0x598070;}function consumerEntryName(_0x5df918,_0x47ddd5){const _0x3ce647=a144_0x910eac;if(_0x47ddd5[_0x3ce647(0x94)][_0x3ce647(0x113)](_0xbb6f1e=>_0xbb6f1e['id']===0x1)[_0x3ce647(0xd2)]>0x1)throw new Error(_0x3ce647(0xe7));const _0x1184a0=_0x47ddd5,_0x2fb804=_0x47ddd5[_0x3ce647(0x11e)];if(!Buffer['isBuffer'](_0x1184a0[_0x3ce647(0x7d)])||!Buffer['isBuffer'](_0x1184a0[_0x3ce647(0x95)])||!Buffer[_0x3ce647(0x15a)](_0x1184a0['fileCommentRaw'])||!Number[_0x3ce647(0x8f)](_0x2fb804)||_0x2fb804<0x0||_0x2fb804>_0x5df918[_0x3ce647(0xd2)]-0x1e||_0x5df918['readUInt32LE'](_0x2fb804)!==0x4034b50)throw new Error(_0x3ce647(0x86));const _0x240806=_0x2fb804+0x1e+_0x5df918[_0x3ce647(0x10e)](_0x2fb804+0x1a),_0x1bf9b5=_0x240806+_0x5df918['readUInt16LE'](_0x2fb804+0x1c)+_0x47ddd5[_0x3ce647(0xb8)];if(!Number[_0x3ce647(0x8f)](_0x1bf9b5)||_0x1bf9b5>_0x5df918[_0x3ce647(0xd2)])throw new Error(_0x3ce647(0x86));if(_0x240806>_0x5df918[_0x3ce647(0xd2)]||!_0x5df918[_0x3ce647(0x138)](_0x2fb804+0x1e,_0x240806)[_0x3ce647(0xa5)](_0x1184a0[_0x3ce647(0x7d)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x553e8d=new ZipEntry({},{'decodeFileName':zipUtf8[_0x3ce647(0xfd)]});_0x553e8d[_0x3ce647(0xd9)]=_0x47ddd5[_0x3ce647(0x131)],_0x553e8d[_0x3ce647(0x99)]=_0x1184a0['fileNameRaw'],_0x553e8d[_0x3ce647(0x15e)]=_0x1184a0[_0x3ce647(0x83)],_0x553e8d[_0x3ce647(0xf0)]=_0x1184a0[_0x3ce647(0x95)][_0x3ce647(0xd2)],_0x553e8d[_0x3ce647(0x12d)](zipReader(_0x1184a0['extraFieldRaw'])),_0x553e8d[_0x3ce647(0x8a)](),_0x553e8d[_0x3ce647(0xfe)]=_0x47ddd5[_0x3ce647(0xfe)],_0x553e8d[_0x3ce647(0x124)]=_0x47ddd5[_0x3ce647(0x124)],_0x553e8d[_0x3ce647(0x147)]();const _0xbbc959=_0x553e8d[_0x3ce647(0x14c)]||Boolean((_0x553e8d['unixPermissions']??0x0)&0x4000),_0x56a453=zipPaths['resolve'](_0x553e8d[_0x3ce647(0xb4)]),_0x35a4d8=_0x56a453['startsWith']('/')?_0x56a453[_0x3ce647(0x6d)](0x1):_0x56a453;return{'name':_0x35a4d8,'original':_0x553e8d[_0x3ce647(0xb4)],'directory':_0xbbc959};}export function normalizeImportFields(_0x5e65d0){const _0x508f06=a144_0x910eac;if(!_0x5e65d0||(_0x5e65d0[_0x508f06(0x85)]??_0x5e65d0[_0x508f06(0xa2)]?.[_0x508f06(0x6e)])!==_0x508f06(0x13e))throw new Error(_0x508f06(0x12e));const _0x472ae7=Array['isArray'](_0x5e65d0[_0x508f06(0xc3)]),_0x59e258=_0x472ae7?_0x5e65d0['fields']:_0x5e65d0[_0x508f06(0x12f)];if(!Array[_0x508f06(0x9d)](_0x59e258)||_0x59e258[_0x508f06(0xd2)]===0x0)throw new Error(_0x508f06(0xbb));const _0x3fa3a9=[],_0x39b7bb=new Set();for(const _0x52d532 of _0x59e258){if(_0x52d532['deleted']===!![])continue;let _0x2b1e51=_0x52d532[_0x508f06(0xc0)]??{};if(!_0x472ae7&&typeof _0x2b1e51===_0x508f06(0x117)){try{_0x2b1e51=JSON['parse'](_0x2b1e51);}catch{throw new Error(_0x508f06(0xfb));}if(!_0x2b1e51||typeof _0x2b1e51!=='object'||Array[_0x508f06(0x9d)](_0x2b1e51))throw new Error(_0x508f06(0xfb));}const _0x187da7=_0x472ae7?_0x52d532[_0x508f06(0xed)]:_0x52d532[_0x508f06(0x161)],_0x4bae67=_0x472ae7?_0x52d532['doType']:_0x52d532[_0x508f06(0x89)]??_0x52d532['dataType'];if(typeof _0x187da7!==_0x508f06(0x117)||!_0x187da7||typeof _0x4bae67!==_0x508f06(0x117)||_0x39b7bb[_0x508f06(0xee)](_0x187da7))throw new Error(_0x508f06(0xe6));if(_0x4bae67[_0x508f06(0xda)]()===_0x508f06(0x12c))throw new Error(_0x508f06(0xd5));_0x39b7bb[_0x508f06(0x13b)](_0x187da7);const _0x2c11aa=_0x472ae7?_0x52d532:_0x2b1e51,_0x43fb74={'code':_0x187da7,'type':_0x4bae67,'required':_0x2c11aa[_0x508f06(0xf8)]===!![]};if(RESERVED['has'](_0x187da7)||_0x2c11aa[_0x508f06(0x8e)]===!![]||_0x2c11aa[_0x508f06(0xb1)]===!![])_0x43fb74[_0x508f06(0x8e)]=!![];_0x3fa3a9[_0x508f06(0x10d)](_0x43fb74);}return _0x3fa3a9;}async function checkArchive(_0x2aebb5,_0x2771b4){await new Promise((_0x5ce10f,_0x16b294)=>{const _0x2a454b=a144_0x41e3;a144_0x57f54b[_0x2a454b(0xa7)](_0x2aebb5,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x36b18b,_0x3ad93f)=>{const _0x3839b7=_0x2a454b;if(_0x36b18b||!_0x3ad93f){_0x16b294(_0x36b18b??new Error(_0x3839b7(0x76)));return;}let _0xeb71d6;try{_0xeb71d6=centralDirectoryEnd(_0x2aebb5,_0x3ad93f);}catch(_0x42bae9){_0x3ad93f[_0x3839b7(0x118)](),_0x16b294(_0x42bae9);return;}let _0x377c68=0x0,_0x340000=0x0,_0xc8376f=0x0,_0x1f52d9=0x0,_0x4b1a3a=0x0,_0x288bbd=0x0,_0x43a9a1=0x0,_0x4f7f48=0x0,_0x1220e9=0x0,_0x1f6300=![],_0x2af86e;const _0x3b2e1b=new Set(),_0x2b8e76=_0x2ca898=>{const _0x47133b=_0x3839b7;if(_0x1f6300)return;_0x1f6300=!![],_0x2af86e?.[_0x47133b(0x79)](),_0x3ad93f[_0x47133b(0x118)](),_0x16b294(_0x2ca898);},_0x1279d7=(_0x1329a1,_0x1e4d9b)=>{const _0x2f0fe0=_0x3839b7;if(!_0x1329a1||!/^\d+$/[_0x2f0fe0(0x80)](_0x1329a1))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x4f8938=Number(_0x1329a1);if(!Number[_0x2f0fe0(0x8f)](_0x4f8938)||_0x4f8938<0x1||_0x4f8938>_0x1e4d9b)throw new Error(_0x2f0fe0(0xc1)+_0x1e4d9b+'.');return _0x4f8938;},_0x16e4d7=(_0x3692bd,_0x4d1b75=MAX_XML_COLUMNS)=>{const _0x2b3880=_0x3839b7,_0x4f2968=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2b3880(0xe3)](_0x3692bd);if(!_0x4f2968)throw new Error(_0x2b3880(0xf1));let _0x93d1fe=0x0;for(const _0x3f0c3d of _0x4f2968[0x1])_0x93d1fe=_0x93d1fe*0x1a+_0x3f0c3d[_0x2b3880(0x163)](0x0)-0x40;if(_0x93d1fe>_0x4d1b75)throw new Error(_0x2b3880(0x120)+_0x4d1b75+_0x2b3880(0xcc));return{'row':_0x1279d7(_0x4f2968[0x2],MAX_XML_ROWS),'col':_0x93d1fe};},_0x5a9280=_0x3c77b7=>{const _0x51bea3=_0x3839b7;if(_0x3c77b7[_0x51bea3(0xed)]==='_xlnm.Print_Area'||_0x3c77b7[_0x51bea3(0xed)]==='_xlnm.Print_Titles')return;for(const _0x56d1aa of _0x3c77b7[_0x51bea3(0xa6)]){if(!ABSOLUTE_NAME_RANGE[_0x51bea3(0x80)](_0x56d1aa[_0x51bea3(0xb2)]('!')[_0x51bea3(0xa8)]()||''))continue;const _0x26e831=nameCoordinates[_0x51bea3(0xf2)](_0x56d1aa),_0x499136=_0x51bea3(0xad)in _0x26e831,_0x1db0df=_0x499136?[_0x26e831['top'],_0x26e831[_0x51bea3(0xbc)]]:[_0x26e831[_0x51bea3(0x11d)]],_0x478c4b=_0x499136?[_0x26e831[_0x51bea3(0xbd)],_0x26e831['right']]:[_0x26e831[_0x51bea3(0x14f)]],_0x374f91=(_0x28b0bd,_0x4d44e0)=>Number[_0x51bea3(0x8f)](_0x28b0bd)&&_0x28b0bd>=0x1&&_0x28b0bd<=_0x4d44e0;if(!_0x1db0df['every'](_0x4498f6=>_0x374f91(_0x4498f6,MAX_XML_ROWS))||!_0x478c4b[_0x51bea3(0xc4)](_0x42357f=>_0x374f91(_0x42357f,MAX_XML_COLUMNS)))throw new Error(_0x51bea3(0xd7));_0x43a9a1+=_0x499136?(_0x26e831[_0x51bea3(0xbc)]-_0x26e831['top']+0x1)*(_0x26e831[_0x51bea3(0x15c)]-_0x26e831['left']+0x1):0x1;if(_0x43a9a1>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x3ad93f['on'](_0x3839b7(0x107),_0x2b8e76),_0x3ad93f['on'](_0x3839b7(0x159),_0x2fe14c=>{const _0x26e839=_0x3839b7;if(_0x1f6300)return;if(++_0xc8376f>0x2710||(_0x377c68+=_0x2fe14c['uncompressedSize'])>MAX_EXPANDED){_0x2b8e76(new Error(_0x26e839(0xcb)));return;}let _0x2a5717;try{_0x2a5717=consumerEntryName(_0x2aebb5,_0x2fe14c);}catch(_0xc8af8d){_0x2b8e76(_0xc8af8d);return;}if(_0x2a5717['directory']){_0x3ad93f['readEntry']();return;}const _0x310ea4=_0x2a5717[_0x26e839(0xed)];if(_0x2771b4&&(_0x310ea4!==_0x2a5717[_0x26e839(0xf4)]||_0x3b2e1b[_0x26e839(0xee)](_0x310ea4)||_0x310ea4[_0x26e839(0xd8)]('/')||_0x310ea4[_0x26e839(0xdf)]('\x5c'))){_0x2b8e76(new Error(_0x26e839(0x91)));return;}if(_0x310ea4!==_0x2a5717[_0x26e839(0xf4)]&&(_0x310ea4===_0x26e839(0x160)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e839(0x80)](_0x310ea4))){_0x2b8e76(new Error(_0x26e839(0x78)));return;}const _0x31d31f=_0x310ea4===_0x26e839(0x160);if(_0x31d31f&&_0x3b2e1b[_0x26e839(0xee)](_0x310ea4)){_0x2b8e76(new Error(_0x26e839(0x98)));return;}_0x3b2e1b['add'](_0x310ea4);const _0x8dcea6=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e839(0x80)](_0x310ea4);if(_0x8dcea6&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x26e839(0x80)](_0x310ea4)){_0x2b8e76(new Error(_0x26e839(0x157)));return;}_0x3ad93f[_0x26e839(0x77)](_0x2fe14c,(_0x3a96ab,_0x31bf35)=>{const _0x3dd321=_0x26e839;if(_0x1f6300){_0x31bf35?.['destroy']();return;}if(_0x3a96ab||!_0x31bf35){_0x2b8e76(_0x3a96ab??new Error(_0x3dd321(0x129)));return;}_0x2af86e=_0x31bf35;const _0xf43289=_0x2771b4?[]:undefined,_0x56bf38=_0x2771b4&&/[.](xml|rels)$/['test'](_0x310ea4)?new StringDecoder(_0x3dd321(0x128)):undefined,_0x523779=_0x56bf38?new SaxesParser({'xmlns':![]}):undefined,_0x1603f2=()=>{const _0x31ee51=_0x3dd321;if(++_0x1220e9>0x1e8480)throw Error(_0x31ee51(0x104));};_0x523779?.['on'](_0x3dd321(0xe4),()=>{const _0x18a0c6=_0x3dd321;throw Error(_0x18a0c6(0x13f));}),_0x523779?.['on'](_0x3dd321(0x14d),()=>{_0x1603f2();if(++_0x4f7f48>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x523779?.['on']('text',_0x1603f2),_0x523779?.['on'](_0x3dd321(0xae),_0x1603f2),_0x523779?.['on'](_0x3dd321(0x107),_0x1825c9=>{throw _0x1825c9;});const _0x1d2dcc=_0x8dcea6||_0x31d31f?new StringDecoder(_0x3dd321(0x128)):undefined,_0x3e8400=_0x8dcea6||_0x31d31f?new SaxesParser({'xmlns':![]}):undefined;let _0x2e3c7c,_0x427976=0x0,_0x28a9f3=0x0,_0x5933c6,_0x38ea86,_0xe7e802=![],_0x5cd8cd=![],_0x342d62,_0x506910,_0x1026d3,_0x34efc5=![];const _0x51c9ed=[],_0xec2ca9=new Set();let _0x24d89a;const _0x31d24f=(_0x405132,_0x83bb9f=0x0)=>{const _0x1a0f39=_0x3dd321;_0x4b1a3a+=_0x83bb9f+Math['max'](0x0,_0x405132-_0x28a9f3),_0x28a9f3=Math[_0x1a0f39(0xb9)](_0x28a9f3,_0x405132);if(_0x4b1a3a>MAX_ROWS)throw new Error(_0x1a0f39(0xef));};_0x3e8400?.['on'](_0x3dd321(0x14d),_0x5112aa=>{const _0x5606ac=_0x3dd321;if(_0x31d31f){if(!_0x2e3c7c&&_0x5112aa[_0x5606ac(0xed)]==='definedName')_0x2e3c7c=new DefinedNameXform();_0x2e3c7c?.[_0x5606ac(0x114)](_0x5112aa);return;}if(_0x5112aa['name']===_0x5606ac(0x11d)){if(_0x5cd8cd)throw new Error(_0x5606ac(0x14b));_0x1279d7(_0x5112aa[_0x5606ac(0x140)]['r'],MAX_XML_ROWS),_0x5933c6=undefined,_0x1026d3=undefined,_0x34efc5=![];}else{if(_0x5112aa['name']==='c'){if(_0x5cd8cd)throw new Error(_0x5606ac(0xf9));_0x5cd8cd=!![],_0xe7e802=Boolean(Number['parseInt'](_0x5112aa[_0x5606ac(0x140)]['s']??'',0xa)),_0x24d89a=undefined,_0x342d62=_0x5112aa[_0x5606ac(0x140)]['r']||undefined,_0x506910=_0x342d62?_0x16e4d7(_0x342d62):undefined;if(_0x506910)_0x38ea86=_0x506910;else _0x38ea86=_0x5933c6?{'row':_0x5933c6[_0x5606ac(0x11d)],'col':_0x5933c6['col']+0x1}:undefined;}else{if(_0x5cd8cd&&['f','v','t'][_0x5606ac(0xdf)](_0x5112aa['name'])){_0x24d89a=_0x5112aa[_0x5606ac(0xed)];if(_0x5112aa[_0x5606ac(0xed)]==='f'&&_0x5112aa[_0x5606ac(0x140)]['t'])_0xe7e802=!![];}else{if(_0x5cd8cd&&_0x5112aa[_0x5606ac(0xed)]==='r')_0xe7e802=!![];else{if(_0x5112aa[_0x5606ac(0xed)]===_0x5606ac(0xb3)){const _0x40fbf0=_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x9f)];if(!_0x40fbf0)throw new Error(_0x5606ac(0xf3));const _0x402d3e=_0x40fbf0[_0x5606ac(0xb2)](':');if(_0x402d3e[_0x5606ac(0xd2)]>0x2)throw new Error(_0x5606ac(0xf3));const _0x39c4e6=_0x16e4d7(_0x402d3e[0x0]),_0x1d18d5=_0x16e4d7(_0x402d3e[0x1]??_0x402d3e[0x0]);_0xec2ca9['add'](_0x40fbf0),_0x31d24f(Math[_0x5606ac(0xb9)](_0x39c4e6['col'],_0x1d18d5[_0x5606ac(0x14f)]),0x1);}else{if(_0x5112aa[_0x5606ac(0xed)]===_0x5606ac(0x14f)){const _0x54fe84=_0x1279d7(_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x10c)],0x4000),_0x12f3a0=_0x1279d7(_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0xb9)],0x4000);if(_0x54fe84>_0x12f3a0)throw new Error(_0x5606ac(0x13c));_0x31d24f(_0x12f3a0,0x1);}else{if(_0x5112aa['name']===_0x5606ac(0x15d)){const _0x2db3bc=_0x5112aa[_0x5606ac(0x140)][_0x5606ac(0x9f)];if(!_0x2db3bc)throw new Error(_0x5606ac(0x96));const _0x57aee1=_0x2db3bc['split'](':');if(_0x57aee1['length']>0x2)throw new Error(_0x5606ac(0x96));const _0x4672f2=_0x16e4d7(_0x57aee1[0x0]),_0x16edda=_0x16e4d7(_0x57aee1[0x1]??_0x57aee1[0x0]);_0x31d24f(Math['max'](_0x4672f2[_0x5606ac(0x14f)],_0x16edda[_0x5606ac(0x14f)]));const _0x5c8686=(Math[_0x5606ac(0x74)](_0x16edda[_0x5606ac(0x11d)]-_0x4672f2['row'])+0x1)*(Math[_0x5606ac(0x74)](_0x16edda['col']-_0x4672f2['col'])+0x1);_0x1f52d9+=_0x5c8686+_0x427976++;if(_0x1f52d9>MAX_ROWS)throw new Error(_0x5606ac(0xc7));}}}}}}}}),_0x3e8400?.['on'](_0x3dd321(0xc8),_0x4177a0=>{if(_0x31d31f){_0x2e3c7c?.['parseText'](_0x4177a0);return;}if(_0x5cd8cd&&_0x24d89a&&_0x4177a0)_0xe7e802=!![];}),_0x3e8400?.['on'](_0x3dd321(0xae),_0x38d0ce=>{const _0x11de8f=_0x3dd321;if(_0x31d31f){_0x2e3c7c&&!_0x2e3c7c[_0x11de8f(0x102)]()&&(_0x5a9280(_0x2e3c7c['model']),_0x2e3c7c=undefined);return;}if(_0x38d0ce[_0x11de8f(0xed)]==='c'){!_0xe7e802&&_0x342d62&&!_0x1026d3&&(_0x1026d3={'before':_0x5933c6,'cells':[]});if(_0x1026d3){if(++_0x288bbd>0xf4240)throw new Error(_0x11de8f(0xe5));_0x1026d3['cells'][_0x11de8f(0x10d)]({'reference':_0x342d62,'address':_0x506910,'materialized':_0xe7e802});if(!_0x342d62&&_0xe7e802)_0x34efc5=!![];}if(_0xe7e802){if(!_0x1026d3||_0x342d62){if(!_0x38ea86)throw new Error(_0x11de8f(0xd1));if(_0x38ea86[_0x11de8f(0x14f)]>MAX_XML_COLUMNS)throw new Error(_0x11de8f(0xcf));_0x31d24f(_0x38ea86[_0x11de8f(0x14f)]);}_0x5933c6=_0x38ea86;}_0x5cd8cd=![],_0x38ea86=undefined,_0x342d62=undefined,_0x506910=undefined,_0x24d89a=undefined;}else{if(_0x38d0ce[_0x11de8f(0xed)]===_0x11de8f(0x11d)){if(_0x1026d3&&_0x34efc5)_0x51c9ed[_0x11de8f(0x10d)](_0x1026d3);_0x1026d3=undefined,_0x34efc5=![];}else{if(_0x38d0ce[_0x11de8f(0xed)]===_0x24d89a)_0x24d89a=undefined;}}}),_0x3e8400?.['on'](_0x3dd321(0x107),_0x414530=>{const _0x234226=_0x3dd321;throw new Error(_0x234226(0x11f)+_0x414530[_0x234226(0x164)]);}),_0x31bf35['on']('error',_0x2b8e76),_0x31bf35['on']('data',_0x42bb34=>{const _0x5a0e2c=_0x3dd321;if(_0x1f6300)return;_0x340000+=_0x42bb34['length'],_0xf43289?.[_0x5a0e2c(0x10d)](_0x42bb34);if(_0x340000>MAX_EXPANDED){_0x2b8e76(new Error(_0x5a0e2c(0xcb)));return;}try{if(_0x523779&&_0x56bf38)_0x523779[_0x5a0e2c(0xe8)](_0x56bf38[_0x5a0e2c(0xe8)](_0x42bb34));if(_0x3e8400&&_0x1d2dcc)_0x3e8400[_0x5a0e2c(0xe8)](_0x1d2dcc[_0x5a0e2c(0xe8)](_0x42bb34));}catch(_0x33199c){_0x2b8e76(_0x33199c instanceof Error?_0x33199c:new Error(_0x5a0e2c(0xfc)));}}),_0x31bf35['on'](_0x3dd321(0xa4),()=>{const _0x22423d=_0x3dd321;if(_0x1f6300)return;try{if(_0x523779&&_0x56bf38)_0x523779[_0x22423d(0xe8)](_0x56bf38[_0x22423d(0xa4)]())[_0x22423d(0x118)]();if(_0x3e8400&&_0x1d2dcc)_0x3e8400[_0x22423d(0xe8)](_0x1d2dcc['end']())['close']();for(const _0x28f114 of _0x51c9ed){let _0x5a17ff=_0x28f114[_0x22423d(0x137)];for(const _0x214345 of _0x28f114[_0x22423d(0x123)]){if(!_0x214345[_0x22423d(0xc5)]&&!(_0x214345[_0x22423d(0xf6)]&&_0xec2ca9[_0x22423d(0xee)](_0x214345[_0x22423d(0xf6)])))continue;const _0x5151a9=_0x214345['address']??(_0x5a17ff?{'row':_0x5a17ff[_0x22423d(0x11d)],'col':_0x5a17ff[_0x22423d(0x14f)]+0x1}:undefined);if(!_0x5151a9)throw new Error(_0x22423d(0xd1));if(_0x5151a9['col']>MAX_XML_COLUMNS)throw new Error(_0x22423d(0xcf));_0x31d24f(_0x5151a9['col']),_0x5a17ff=_0x5151a9;}}_0x51c9ed[_0x22423d(0xd2)]=0x0,_0xec2ca9['clear']();}catch(_0x1b9878){_0x2b8e76(_0x1b9878 instanceof Error?_0x1b9878:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0xf43289)_0x2771b4[_0x22423d(0x130)](_0x310ea4,Buffer['concat'](_0xf43289));_0x2af86e=undefined,_0x3ad93f[_0x22423d(0x116)]();});});}),_0x3ad93f['on'](_0x3839b7(0xa4),()=>{const _0x5e7d8c=_0x3839b7;if(_0x1f6300)return;if(_0x3ad93f[_0x5e7d8c(0x8c)]!==_0xeb71d6){_0x16b294(new Error(_0x5e7d8c(0x10f)));return;}if(!_0x3b2e1b['has']('[Content_Types].xml')||!_0x3b2e1b[_0x5e7d8c(0xee)](_0x5e7d8c(0x160)))_0x16b294(new Error(_0x5e7d8c(0x8b)));else _0x5ce10f();}),_0x3ad93f[_0x3839b7(0x116)]();});});}function valueOf(_0x2837ff){const _0x3170aa=a144_0x910eac,_0x5dd7eb=_0x2837ff['value'];if(_0x5dd7eb&&typeof _0x5dd7eb==='object'&&(_0x3170aa(0x112)in _0x5dd7eb||'sharedFormula'in _0x5dd7eb)){if(!(_0x3170aa(0xc9)in _0x5dd7eb)||_0x5dd7eb[_0x3170aa(0xc9)]===undefined)throw new Error(_0x3170aa(0x144));return _0x5dd7eb[_0x3170aa(0xc9)];}return _0x5dd7eb;}function convert(_0xb3471f,_0x3ecc46){const _0x462551=a144_0x910eac;if(_0xb3471f===null||_0xb3471f===undefined||_0xb3471f===''){if(_0x3ecc46[_0x462551(0xf8)]&&!_0x3ecc46[_0x462551(0x8e)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0xb3471f==='string'&&Buffer[_0x462551(0x121)](_0xb3471f,_0x462551(0x128))>MAX_CELL)throw new Error(_0x462551(0xa3));switch(_0x3ecc46['type']['toLowerCase']()){case'string':case'text':case _0x462551(0x88):if(typeof _0xb3471f!==_0x462551(0x117))throw new Error(_0x462551(0x81));return _0xb3471f;case _0x462551(0xab):case _0x462551(0xc2):case'integer':if(typeof _0xb3471f!=='number'||!Number[_0x462551(0x92)](_0xb3471f)||Math[_0x462551(0x74)](_0xb3471f)>Number['MAX_SAFE_INTEGER']||_0x3ecc46[_0x462551(0x89)]['toLowerCase']()===_0x462551(0xd0)&&!Number[_0x462551(0x12a)](_0xb3471f))throw new Error(_0x462551(0x158));return _0xb3471f;case _0x462551(0xe9):if(typeof _0xb3471f!==_0x462551(0xe9))throw new Error(_0x462551(0xd6));return _0xb3471f;case'date':case _0x462551(0xbe):if(!(_0xb3471f instanceof Date)||!Number['isFinite'](_0xb3471f[_0x462551(0x8d)]()))throw new Error(_0x462551(0x87));return _0xb3471f['getTime']();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3ecc46[_0x462551(0x89)]+'.');}}export async function buildExcelManifest(_0x2f8bbc){const _0x5a8b0f=a144_0x910eac,_0x2b6076=_0x2f8bbc[_0x5a8b0f(0xa0)]??0x1;if(!Number[_0x5a8b0f(0x12a)](_0x2b6076)||_0x2b6076<0x1||_0x2b6076>MAX_ROWS)throw new Error(_0x5a8b0f(0x100));if(_0x2f8bbc[_0x5a8b0f(0x72)]!==undefined&&(!Number[_0x5a8b0f(0x12a)](_0x2f8bbc[_0x5a8b0f(0x72)])||_0x2f8bbc[_0x5a8b0f(0x72)]<0x1||_0x2f8bbc[_0x5a8b0f(0x72)]>0x3e8))throw new Error(_0x5a8b0f(0x134));if(a144_0x1614b2[_0x5a8b0f(0xba)](_0x2f8bbc[_0x5a8b0f(0x145)])[_0x5a8b0f(0xda)]()!==_0x5a8b0f(0x153))throw new Error(_0x5a8b0f(0xb5));const _0x499b49=await stat(_0x2f8bbc[_0x5a8b0f(0x145)]);if(!_0x499b49[_0x5a8b0f(0x103)]()||_0x499b49[_0x5a8b0f(0xd3)]>MAX_FILE)throw new Error(_0x5a8b0f(0x143));const _0x2907c6=await readFile(_0x2f8bbc['file']);if(_0x2907c6[_0x5a8b0f(0xd2)]>MAX_FILE)throw new Error(_0x5a8b0f(0x127));const _0x31febe=_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0xe2)](_0x2ee547=>isImageContainer(_0x2ee547[_0x5a8b0f(0x89)])&&Object[_0x5a8b0f(0xe1)](_0x2f8bbc['mapping'])['includes'](_0x2ee547[_0x5a8b0f(0x161)]))?new Map():undefined;await checkArchive(_0x2907c6,_0x31febe);const _0x205d4d=new a144_0x3eec37[(_0x5a8b0f(0x106))]();await _0x205d4d[_0x5a8b0f(0x15b)][_0x5a8b0f(0x10b)](_0x2907c6,{'ignoreNodes':[_0x5a8b0f(0x151)]});const _0x3112c3=_0x2f8bbc[_0x5a8b0f(0x132)];let _0x4d6df8;if(_0x3112c3===undefined)_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][0x0];else{if(typeof _0x3112c3===_0x5a8b0f(0x117)&&_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0xe2)](_0x36a995=>_0x36a995[_0x5a8b0f(0xed)]===_0x3112c3))_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0x154)](_0x2ec732=>_0x2ec732[_0x5a8b0f(0xed)]===_0x3112c3);else{if(typeof _0x3112c3===_0x5a8b0f(0xab)||/^\d+$/['test'](_0x3112c3)){const _0x232bc3=Number(_0x3112c3);if(!Number[_0x5a8b0f(0x12a)](_0x232bc3)||_0x232bc3<0x1)throw new Error(_0x5a8b0f(0x141));_0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x232bc3-0x1];}else _0x4d6df8=_0x205d4d[_0x5a8b0f(0x119)][_0x5a8b0f(0x154)](_0x2673bc=>_0x2673bc[_0x5a8b0f(0xed)]===_0x3112c3);}}if(!_0x4d6df8)throw new Error(_0x5a8b0f(0x162));if(_0x4d6df8['rowCount']>MAX_ROWS||_0x4d6df8[_0x5a8b0f(0x9c)]>MAX_COLUMNS)throw new Error(_0x5a8b0f(0x14e));if((_0x4d6df8['model'][_0x5a8b0f(0xf5)]??[])[_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x7c));const _0x5a7ffb=new Map();_0x4d6df8[_0x5a8b0f(0x115)](_0x2b6076)[_0x5a8b0f(0x15f)]((_0x4c7ff3,_0xc9eea7)=>{const _0x320e8a=_0x5a8b0f,_0x2c448a=valueOf(_0x4c7ff3);if(typeof _0x2c448a!=='string'||!_0x2c448a[_0x320e8a(0x109)]()||Buffer[_0x320e8a(0x121)](_0x2c448a)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x5a7ffb['has'](_0x2c448a))throw new Error(_0x320e8a(0x155)+_0x2c448a+'.');_0x5a7ffb[_0x320e8a(0x130)](_0x2c448a,_0xc9eea7);});const _0x195e0c=Object[_0x5a8b0f(0x73)](_0x2f8bbc[_0x5a8b0f(0xea)]);if(!_0x195e0c[_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x93));const _0x4524de=new Map(_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0x11a)](_0x258d7d=>[_0x258d7d[_0x5a8b0f(0x161)],_0x258d7d]));if(_0x4524de['size']!==_0x2f8bbc[_0x5a8b0f(0xc3)][_0x5a8b0f(0xd2)])throw new Error(_0x5a8b0f(0x70));if(_0x2f8bbc[_0x5a8b0f(0xc3)]['some'](_0x1c2d73=>_0x1c2d73[_0x5a8b0f(0x89)]['toLowerCase']()===_0x5a8b0f(0x12c)))throw new Error(_0x5a8b0f(0xd5));const _0x24e49c=new Set();for(const [_0xe4f7ed,_0x54c33d]of _0x195e0c){const _0x4e854c=_0x4524de[_0x5a8b0f(0xdc)](_0x54c33d);if(!_0x5a7ffb['has'](_0xe4f7ed))throw new Error(_0x5a8b0f(0x101)+_0xe4f7ed+'.');if(!_0x4e854c||RESERVED[_0x5a8b0f(0xee)](_0x54c33d)||_0x4e854c[_0x5a8b0f(0x8e)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x54c33d+'.');if(_0x24e49c[_0x5a8b0f(0xee)](_0x54c33d))throw new Error(_0x5a8b0f(0x97)+_0x54c33d+'.');if(!TYPES['has'](_0x4e854c[_0x5a8b0f(0x89)]['toLowerCase']()))throw new Error(_0x5a8b0f(0x142)+_0x4e854c[_0x5a8b0f(0x89)]+'.');_0x24e49c[_0x5a8b0f(0x13b)](_0x54c33d);}for(const _0x42515f of _0x2f8bbc['fields']){if(_0x42515f['required']&&!_0x42515f[_0x5a8b0f(0x8e)]&&!RESERVED['has'](_0x42515f[_0x5a8b0f(0x161)])&&!_0x24e49c['has'](_0x42515f['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x42515f[_0x5a8b0f(0x161)]+'.');}const _0x3d5089={'fileHash':hash(_0x2907c6),'mappingHash':hash(JSON[_0x5a8b0f(0xe0)]([..._0x195e0c][_0x5a8b0f(0xff)](([_0x148a29],[_0x39053e])=>_0x148a29[_0x5a8b0f(0x156)](_0x39053e)))),'schemaHash':hash(JSON['stringify']([..._0x2f8bbc[_0x5a8b0f(0xc3)]]['sort']((_0x28ac1c,_0x4feca6)=>_0x28ac1c[_0x5a8b0f(0x161)][_0x5a8b0f(0x156)](_0x4feca6['code'])))),'sheet':_0x4d6df8[_0x5a8b0f(0xed)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x5a1b7f=_0x195e0c['filter'](([,_0x2c3807])=>isImageContainer(_0x4524de['get'](_0x2c3807)[_0x5a8b0f(0x89)])),_0x1e3c0c=_0x5a1b7f[_0x5a8b0f(0x113)](([,_0x3e2b0c])=>_0x4524de[_0x5a8b0f(0xdc)](_0x3e2b0c)[_0x5a8b0f(0x89)]['toLowerCase']()===_0x5a8b0f(0xb7))[_0x5a8b0f(0x11a)](([,_0x2992ab])=>_0x2992ab);if(_0x1e3c0c[_0x5a8b0f(0xd2)])_0x3d5089[_0x5a8b0f(0x9e)]=_0x1e3c0c;const _0x149250=_0x31febe?resolveWorksheetImages(_0x31febe,_0x4d6df8[_0x5a8b0f(0xed)],new Set(_0x5a1b7f[_0x5a8b0f(0x11a)](([_0x503b22])=>_0x5a7ffb[_0x5a8b0f(0xdc)](_0x503b22)))):[],_0x2af00e=new Map();for(const _0x41a3b5 of _0x149250){const _0x42c91a=_0x41a3b5[_0x5a8b0f(0x11d)]+':'+_0x41a3b5[_0x5a8b0f(0x14f)],_0x5bb7fe=_0x2af00e[_0x5a8b0f(0xdc)](_0x42c91a)??[];_0x5bb7fe[_0x5a8b0f(0x10d)](_0x41a3b5),_0x2af00e[_0x5a8b0f(0x130)](_0x42c91a,_0x5bb7fe);}const _0x200f48=new Map();let _0x50c0cb=0x0;_0x5a1b7f['length']&&(_0x3d5089['imageFields']=_0x5a1b7f[_0x5a8b0f(0x11a)](([,_0x54f5e1])=>_0x54f5e1),_0x3d5089[_0x5a8b0f(0x7e)]=[],_0x3d5089[_0x5a8b0f(0x82)]=0x1,_0x3d5089[_0x5a8b0f(0x105)]=[]);const _0x5c61fc=Math[_0x5a8b0f(0xb9)](0x0,..._0x149250[_0x5a8b0f(0x11a)](_0x484a37=>_0x484a37['row']));let _0x39182c=0x0;const _0x9214cc=new Set(_0x195e0c[_0x5a8b0f(0x11a)](([_0x5c5ca4])=>_0x5a7ffb['get'](_0x5c5ca4)));for(let _0x1c0b82=_0x2b6076+0x1;_0x1c0b82<=Math[_0x5a8b0f(0xb9)](_0x4d6df8[_0x5a8b0f(0xcd)],_0x5c61fc);_0x1c0b82++){const _0xbc2b27=_0x4d6df8[_0x5a8b0f(0x115)](_0x1c0b82);if(_0xbc2b27['hidden']||_0x149250['some'](_0x38ca73=>_0x38ca73['row']===_0x1c0b82&&_0x38ca73['hiddenRow']))_0x39182c++;let _0x95dcf4=_0x149250[_0x5a8b0f(0xe2)](_0x3f77a2=>_0x3f77a2[_0x5a8b0f(0x11d)]===_0x1c0b82);_0xbc2b27['eachCell'](_0x2925de=>{const _0x1fc93a=_0x5a8b0f;if(_0x2925de['value']!==null&&_0x2925de[_0x1fc93a(0x108)]!==undefined&&_0x2925de[_0x1fc93a(0x108)]!=='')_0x95dcf4=!![];});if(!_0x95dcf4){_0x3d5089[_0x5a8b0f(0x6f)][_0x5a8b0f(0x10d)](_0x1c0b82);continue;}const _0x9eb5c=Object[_0x5a8b0f(0x135)](null);_0xbc2b27[_0x5a8b0f(0x15f)]((_0x36fc00,_0x1d8b80)=>{const _0x54435b=_0x5a8b0f;if(_0x9214cc[_0x54435b(0xee)](_0x1d8b80))return;try{const _0x1c18ea=valueOf(_0x36fc00);if(typeof _0x1c18ea===_0x54435b(0x117)&&Buffer[_0x54435b(0x121)](_0x1c18ea,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x54f5b7){_0x3d5089[_0x54435b(0x9b)]['push']({'rowNumber':_0x1c0b82,'field':_0x36fc00[_0x54435b(0x75)],'message':_0x54f5b7[_0x54435b(0x164)]});}});for(const [_0x584cab,_0x2ad3a1]of _0x195e0c){try{const _0x8ce569=_0xbc2b27[_0x5a8b0f(0xeb)](_0x5a7ffb[_0x5a8b0f(0xdc)](_0x584cab)),_0x2a31ba=_0x4524de[_0x5a8b0f(0xdc)](_0x2ad3a1);if(!isImageContainer(_0x2a31ba[_0x5a8b0f(0x89)])){_0x9eb5c[_0x2ad3a1]=convert(valueOf(_0x8ce569),_0x2a31ba);continue;}const _0x2d1753=_0x2af00e['get'](_0x1c0b82+':'+_0x5a7ffb[_0x5a8b0f(0xdc)](_0x584cab))??[];if(_0x2d1753['some'](_0x431b42=>_0x431b42[_0x5a8b0f(0x107)]))throw Error(_0x2d1753[_0x5a8b0f(0x154)](_0x7c822d=>_0x7c822d[_0x5a8b0f(0x107)])[_0x5a8b0f(0x107)]);if(_0x8ce569[_0x5a8b0f(0x108)]!=null&&_0x8ce569[_0x5a8b0f(0x108)]!==''&&!_0x2d1753[_0x5a8b0f(0xe2)](_0x2badb1=>_0x2badb1[_0x5a8b0f(0xa9)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x2a09fc=[];for(const _0xf2ad7a of _0x2d1753)for(const _0x289e58 of _0xf2ad7a['media']){const _0x4b8a91=_0x31febe[_0x5a8b0f(0xdc)](_0x289e58);if(!_0x4b8a91)throw Error(_0x5a8b0f(0xfa)+_0x289e58+'.');const _0x9ae744=hash(_0x4b8a91),_0x2b641b=_0x200f48[_0x5a8b0f(0xdc)](_0x9ae744)??validateImageBytes(_0x4b8a91);if(!_0x200f48['has'](_0x2b641b[_0x5a8b0f(0xdd)])){_0x50c0cb+=_0x2b641b[_0x5a8b0f(0xd3)];if(_0x50c0cb>0x32*0x400*0x400)throw Error(_0x5a8b0f(0x11b));_0x200f48[_0x5a8b0f(0x130)](_0x2b641b['contentHash'],_0x2b641b);}_0x2a09fc[_0x5a8b0f(0x10d)](_0x2b641b[_0x5a8b0f(0xdd)]);}if(!_0x2a09fc[_0x5a8b0f(0xd2)]&&_0x2a31ba[_0x5a8b0f(0xf8)])throw Error(_0x5a8b0f(0xec));if(_0x2a09fc['length'])_0x3d5089['imageCells'][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'field':_0x2ad3a1,'hashes':_0x2a09fc});_0x9eb5c[_0x2ad3a1]=_0x2a09fc[_0x5a8b0f(0x11a)](_0x4e447a=>{const _0x3f7bce=_0x5a8b0f,_0x4239a8=_0x200f48[_0x3f7bce(0xdc)](_0x4e447a),_0x1847ca=_0x4239a8[_0x3f7bce(0x89)]===_0x3f7bce(0x136)?_0x3f7bce(0x126):_0x4239a8[_0x3f7bce(0x89)][_0x3f7bce(0x6d)](0x6),_0x1d63f2=_0x4e447a+'.'+_0x1847ca,_0x554633=_0x3f7bce(0x152)+'0'['repeat'](0x40)+'/'+_0x1d63f2;return _0x2a31ba[_0x3f7bce(0x89)][_0x3f7bce(0xda)]()===_0x3f7bce(0xb7)?{'fileName':_0x1d63f2,'filePath':_0x554633}:{'key':_0x554633,'name':_0x1d63f2,'type':_0x4239a8[_0x3f7bce(0x89)],'size':_0x4239a8[_0x3f7bce(0xd3)]};});}catch(_0x376530){_0x3d5089['errors'][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'field':_0x2ad3a1,'message':_0x376530['message']});}}_0x3d5089[_0x5a8b0f(0xc6)][_0x5a8b0f(0x10d)]({'rowNumber':_0x1c0b82,'values':_0x9eb5c});}if(_0x3d5089[_0x5a8b0f(0x105)])_0x3d5089[_0x5a8b0f(0x105)]=[..._0x200f48[_0x5a8b0f(0xe1)]()];if(_0x39182c)_0x3d5089['warnings'][_0x5a8b0f(0x10d)](_0x39182c+_0x5a8b0f(0x7a));return _0x3d5089;}function a144_0x5a8a(){const _0x3632cf=['utf8decode','versionMadeBy','sort','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Unknown\x20Excel\x20header:\x20','parseClose','isFile','Image\x20XML\x20event\x20budget\x20exceeded.','media','Workbook','error','value','trim','exceljs/lib/utils/col-cache.js','load','min','push','readUInt16LE','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','updateTime','update','formula','filter','parseOpen','getRow','readEntry','string','close','worksheets','map','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2tJgzwz','row','relativeOffsetOfLocalHeader','Invalid\x20worksheet\x20XML:\x20','Worksheet\x20exceeds\x20','byteLength','creatorId','cells','externalFileAttributes','1448175hCHucu','jpg','XLSX\x20file\x20exceeds\x2020\x20MB.','utf8','Invalid\x20XLSX\x20entry.','isInteger','6ZRnCXo','serial_number','readExtraFields','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','properties','set','generalPurposeBitFlag','sheet','./utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','create','image/jpeg','before','subarray','./zipEntry','318350AgTsta','add','Invalid\x20worksheet\x20column\x20range.','appCode','METADATA','XML\x20DTD/entities\x20are\x20not\x20supported.','attributes','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Unsupported\x20field\x20type:\x20','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Formula\x20has\x20no\x20cached\x20result.','file','modifierName','processAttributes','digest','modifierId','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Invalid\x20worksheet\x20nested\x20row.','dir','opentag','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','col','lastIndexOf','dataValidations','dataset-import/','.xlsx','find','Duplicate\x20header:\x20','localeCompare','Non-canonical\x20worksheet\x20ZIP\x20entry.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','entry','isBuffer','xlsx','right','mergeCell','fileComment','eachCell','xl/workbook.xml','code','Requested\x20worksheet\x20does\x20not\x20exist.','charCodeAt','message','slice','sourceType','emptyRows','Duplicate\x20dataset\x20field\x20codes.','./reader/readerFor','batchSize','entries','abs','address','Invalid\x20XLSX\x20archive.','openReadStream','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','destroy','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','6460904xvxgsG','Merged\x20cells\x20are\x20not\x20supported.','fileNameRaw','imageCells','readBigUInt64LE','test','Expected\x20a\x20text\x20cell.','parserVersion','fileCommentRaw','8617952lvpxzq','source','Invalid\x20ZIP\x20local\x20file\x20header.','Expected\x20an\x20Excel\x20date\x20cell.','textarea','type','handleUTF8','File\x20is\x20not\x20an\x20XLSX\x20workbook.','readEntryCursor','getTime','generated','isSafeInteger','deleted','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','isFinite','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','extraFields','extraFieldRaw','Invalid\x20worksheet\x20merge\x20reference.','Duplicate\x20mapping\x20target:\x20','Duplicate\x20workbook\x20ZIP\x20entry.','fileName','date','errors','columnCount','isArray','uploadFields','ref','headerRow','from','dataset','Cell\x20exceeds\x2064\x20KB.','end','equals','ranges','fromBuffer','pop','nativeCell','resolve','number','sha256','top','closetag','351xQsKNX','./utils','autoIncrement','split','hyperlink','fileNameStr','Only\x20.xlsx\x20files\x20are\x20supported.','image','upload','compressedSize','max','extname','Dataset\x20field\x20metadata\x20is\x20missing.','bottom','left','datetime','jszip','extend','Worksheet\x20coordinate\x20exceeds\x20','decimal','fields','every','materialized','rows','Worksheet\x20merge\x20work\x20exceeds\x20100000.','text','result','7614090GmNjiv','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','\x20columns.','rowCount','hex','Worksheet\x20exceeds\x2016384\x20columns.','integer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','length','size','820497Nymnpp','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Expected\x20a\x20boolean\x20cell.','Invalid\x20defined\x20name\x20coordinate.','startsWith','bitFlag','toLowerCase','readUInt32LE','get','contentHash','11728213vZOXeK','includes','stringify','values','some','exec','doctype','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','write','boolean','mapping','getCell','Required\x20image\x20value\x20is\x20missing.','name','has','Worksheet\x20column\x20objects\x20exceed\x20100000.','extraFieldsLength','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','decodeEx','Invalid\x20worksheet\x20hyperlink\x20reference.','original','merges','reference','exceljs','required','Invalid\x20worksheet\x20nested\x20cell.','Missing\x20image\x20media:\x20','Invalid\x20dataset\x20field\x20extension\x20metadata.','Invalid\x20worksheet\x20XML.'];a144_0x5a8a=function(){return _0x3632cf;};return a144_0x5a8a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3e56b3,_0x328baa){const _0x964ddf=a145_0x3557,_0x2548bf=_0x3e56b3();while(!![]){try{const _0x50cee5=parseInt(_0x964ddf(0x1f3))/0x1*(parseInt(_0x964ddf(0x1f7))/0x2)+-parseInt(_0x964ddf(0x204))/0x3*(parseInt(_0x964ddf(0x209))/0x4)+-parseInt(_0x964ddf(0x1e3))/0x5*(parseInt(_0x964ddf(0x205))/0x6)+parseInt(_0x964ddf(0x1db))/0x7*(parseInt(_0x964ddf(0x1f1))/0x8)+parseInt(_0x964ddf(0x208))/0x9*(parseInt(_0x964ddf(0x1f8))/0xa)+parseInt(_0x964ddf(0x1e2))/0xb+parseInt(_0x964ddf(0x200))/0xc*(-parseInt(_0x964ddf(0x1d6))/0xd);if(_0x50cee5===_0x328baa)break;else _0x2548bf['push'](_0x2548bf['shift']());}catch(_0x4f9e42){_0x2548bf['push'](_0x2548bf['shift']());}}}(a145_0x5219,0x981bb));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x3557(_0x4a47b4,_0x197d64){_0x4a47b4=_0x4a47b4-0x1d6;const _0x521906=a145_0x5219();let _0x3557e6=_0x521906[_0x4a47b4];return _0x3557e6;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a145_0x5219(){const _0x56d289=['digest','hex','concat','Truncated\x20PNG\x20data.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Invalid\x20PNG\x20color/depth/interlace.','Invalid\x20GIF\x20trailer.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Invalid\x20GIF\x20block.','112fpjQgJ','isSafeInteger','3970JfyaPg','read','Missing\x20PNG\x20data/end.','IDAT','546HdpftU','70FZGYlo','image/jpeg','equals','IEND','GIF87a','IHDR','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','decode','1686708rmKKQB','omggif','Invalid\x20GIF\x20LZW\x20pixel\x20data.','Missing\x20GIF\x20trailer.','3297102LgZbco','126SeLeuE','numFrames','GIF\x20image\x20has\x20no\x20palette.','903537BHXgbF','4YfAWOD','pngjs','max','readUInt16LE','sha256','height','frameInfo','ascii','includes','decodeAndBlitFrameRGBA','sync','Truncated\x20PNG\x20chunk.','push','jpeg-js','Invalid\x20PNG\x20decoded\x20scanline\x20size.','width','65NEStvq','Invalid\x20PNG\x20header.','Truncated\x20GIF.','length','GIF89a','613984LNOuZI','readUInt32BE','Invalid\x20PNG\x20end.','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20image:\x20','subarray','Truncated\x20GIF\x20data.','6602838SaRMSg','283315XnQGUc','ceil','message','Truncated\x20JPEG.','toString'];a145_0x5219=function(){return _0x56d289;};return a145_0x5219();}function dimensions(_0x4daab0,_0x2e1279){const _0x533382=a145_0x3557;if(!Number['isSafeInteger'](_0x4daab0)||!Number[_0x533382(0x1f2)](_0x2e1279)||_0x4daab0<0x1||_0x2e1279<0x1||_0x4daab0*_0x2e1279>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x2fbf7e){const _0x1f7acc=a145_0x3557;let _0xc82def=0xd,_0x17f010=0x0,_0x449267=0x0;const _0x3e907c=_0x2fbf7e['readUInt16LE'](0x6),_0x3ae07f=_0x2fbf7e[_0x1f7acc(0x20c)](0x8),_0x12befa=_0x2fbf7e[0xa]&0x80?0x1<<(_0x2fbf7e[0xa]&0x7)+0x1:0x0,_0x3b4add=_0x232335=>{const _0x522ed4=_0x1f7acc;if(_0xc82def+_0x232335>_0x2fbf7e[_0x522ed4(0x1d9)])throw Error(_0x522ed4(0x1e1));};_0xc82def+=_0x12befa*0x3,_0x3b4add(0x0);const _0x303495=()=>{const _0x23bced=[];while(!![]){_0x3b4add(0x1);const _0x410696=_0x2fbf7e[_0xc82def++];if(!_0x410696)break;_0x3b4add(_0x410696),_0x23bced['push'](_0x2fbf7e['subarray'](_0xc82def,_0xc82def+_0x410696)),_0xc82def+=_0x410696;}return Buffer['concat'](_0x23bced);};while(_0xc82def<_0x2fbf7e[_0x1f7acc(0x1d9)]){const _0x565da2=_0x2fbf7e[_0xc82def++];if(_0x565da2===0x3b){if(!_0x17f010||_0xc82def!==_0x2fbf7e[_0x1f7acc(0x1d9)])throw Error(_0x1f7acc(0x1ee));return;}if(_0x565da2===0x21){_0x3b4add(0x1),_0xc82def++,_0x303495();continue;}if(_0x565da2!==0x2c)throw Error(_0x1f7acc(0x1f0));_0x3b4add(0x9);const _0x2ccad8=_0x2fbf7e[_0x1f7acc(0x20c)](_0xc82def),_0x292d1d=_0x2fbf7e['readUInt16LE'](_0xc82def+0x2),_0x14bb7d=_0x2fbf7e[_0x1f7acc(0x20c)](_0xc82def+0x4),_0x5970bf=_0x2fbf7e[_0x1f7acc(0x20c)](_0xc82def+0x6),_0x39669d=_0x2fbf7e[_0xc82def+0x8];_0xc82def+=0x9,dimensions(_0x14bb7d,_0x5970bf);if(_0x2ccad8+_0x14bb7d>_0x3e907c||_0x292d1d+_0x5970bf>_0x3ae07f||++_0x17f010>0x2710||(_0x449267+=_0x3e907c*_0x3ae07f)>MAX_PIXELS)throw Error(_0x1f7acc(0x1ef));const _0x397fb5=_0x39669d&0x80?0x1<<(_0x39669d&0x7)+0x1:_0x12befa;if(!_0x397fb5)throw Error(_0x1f7acc(0x207));_0x39669d&0x80&&(_0x3b4add(_0x397fb5*0x3),_0xc82def+=_0x397fb5*0x3);_0x3b4add(0x1);const _0x299885=_0x2fbf7e[_0xc82def++];if(_0x299885<0x2||_0x299885>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x76b1c8=_0x303495(),_0x5aa6db=0x1<<_0x299885,_0x2d04ad=_0x5aa6db+0x1;let _0xce7ccf=_0x299885+0x1,_0x133f7d=_0x2d04ad+0x1,_0x140c40=0x0,_0x50fbba=-0x1,_0x1728fe=0x0,_0x5ebca=![];const _0x1a14f4=new Uint32Array(0x1000),_0x26aa43=new Uint16Array(0x1000);for(let _0x5c33c1=0x0;_0x5c33c1<_0x5aa6db;_0x5c33c1++){_0x1a14f4[_0x5c33c1]=0x1,_0x26aa43[_0x5c33c1]=_0x5c33c1;}while(_0x140c40+_0xce7ccf<=_0x76b1c8[_0x1f7acc(0x1d9)]*0x8){let _0x3d8bfe=0x0;for(let _0x3e7a14=0x0;_0x3e7a14<_0xce7ccf;_0x3e7a14++,_0x140c40++)_0x3d8bfe|=(_0x76b1c8[_0x140c40>>0x3]>>(_0x140c40&0x7)&0x1)<<_0x3e7a14;if(_0x3d8bfe===_0x5aa6db){_0xce7ccf=_0x299885+0x1,_0x133f7d=_0x2d04ad+0x1,_0x50fbba=-0x1;continue;}if(_0x3d8bfe===_0x2d04ad){_0x5ebca=!![];break;}if(_0x3d8bfe>_0x133f7d||_0x3d8bfe===_0x133f7d&&_0x50fbba<0x0||_0x50fbba<0x0&&_0x3d8bfe>=_0x5aa6db)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x2ca82d=_0x3d8bfe===_0x133f7d?_0x1a14f4[_0x50fbba]+0x1:_0x1a14f4[_0x3d8bfe],_0x564a24=_0x3d8bfe===_0x133f7d?_0x26aa43[_0x50fbba]:_0x26aa43[_0x3d8bfe];if(!_0x2ca82d||_0x564a24>=_0x397fb5||(_0x1728fe+=_0x2ca82d)>_0x14bb7d*_0x5970bf)throw Error(_0x1f7acc(0x202));if(_0x50fbba>=0x0&&_0x133f7d<0x1000){_0x1a14f4[_0x133f7d]=_0x1a14f4[_0x50fbba]+0x1,_0x26aa43[_0x133f7d]=Math[_0x1f7acc(0x20b)](_0x26aa43[_0x50fbba],_0x564a24),_0x133f7d++;if(_0x133f7d===0x1<<_0xce7ccf&&_0xce7ccf<0xc)_0xce7ccf++;}_0x50fbba=_0x3d8bfe;}if(!_0x5ebca||_0x1728fe!==_0x14bb7d*_0x5970bf)throw Error(_0x1f7acc(0x1ec));}throw Error(_0x1f7acc(0x203));}export function validateImageBytes(_0x2eb341){const _0x437797=a145_0x3557;if(!_0x2eb341['length']||_0x2eb341[_0x437797(0x1d9)]>0xa*0x400*0x400)throw Error('Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.');let _0x1fab9f;try{if(_0x2eb341[_0x437797(0x1e0)](0x0,0x8)[_0x437797(0x1fa)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x2eb341[_0x437797(0x1d9)]<0x21||_0x2eb341[_0x437797(0x1e7)](_0x437797(0x210),0xc,0x10)!==_0x437797(0x1fd))throw Error(_0x437797(0x1d7));dimensions(_0x2eb341[_0x437797(0x1dc)](0x10),_0x2eb341[_0x437797(0x1dc)](0x14));const _0x309132=_0x2eb341[_0x437797(0x1dc)](0x10),_0x1223b5=_0x2eb341[_0x437797(0x1dc)](0x14),_0x1c2a15=_0x2eb341[0x18],_0x50afde=_0x2eb341[0x19],_0x156827=_0x2eb341[0x1c],_0x3d1268={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x50afde];if(!_0x3d1268||![0x1,0x2,0x4,0x8,0x10][_0x437797(0x211)](_0x1c2a15)||_0x156827>0x1)throw Error(_0x437797(0x1ed));const _0x312f08=_0x4d1f47=>Math[_0x437797(0x1e4)](_0x4d1f47*_0x3d1268*_0x1c2a15/0x8)+0x1;let _0xb5c52b=_0x312f08(_0x309132)*_0x1223b5;if(_0x156827){_0xb5c52b=0x0;for(const [_0x48d9b9,_0x7415c1,_0x46b89c,_0x51c27e]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 _0x8ee6f1=Math['max'](0x0,Math['ceil']((_0x309132-_0x48d9b9)/_0x46b89c)),_0x4f0e75=Math[_0x437797(0x20b)](0x0,Math[_0x437797(0x1e4)]((_0x1223b5-_0x7415c1)/_0x51c27e));if(_0x8ee6f1&&_0x4f0e75)_0xb5c52b+=_0x312f08(_0x8ee6f1)*_0x4f0e75;}}let _0x2362ff=0x8,_0x50ca8e=![];const _0x26119a=[];while(_0x2362ff<_0x2eb341[_0x437797(0x1d9)]){if(_0x2362ff+0xc>_0x2eb341[_0x437797(0x1d9)])throw Error(_0x437797(0x214));const _0x3a634d=_0x2eb341[_0x437797(0x1dc)](_0x2362ff),_0x211be1=_0x2eb341[_0x437797(0x1e7)](_0x437797(0x210),_0x2362ff+0x4,_0x2362ff+0x8);if(_0x211be1==='acTL')throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x2362ff+_0x3a634d+0xc>_0x2eb341['length'])throw Error(_0x437797(0x1eb));if(_0x211be1===_0x437797(0x1f6))_0x26119a[_0x437797(0x215)](_0x2eb341[_0x437797(0x1e0)](_0x2362ff+0x8,_0x2362ff+0x8+_0x3a634d));_0x2362ff+=_0x3a634d+0xc;if(_0x211be1===_0x437797(0x1fb)){if(_0x3a634d||_0x2362ff!==_0x2eb341[_0x437797(0x1d9)])throw Error(_0x437797(0x1dd));_0x50ca8e=!![];break;}}if(!_0x50ca8e||!_0x26119a[_0x437797(0x1d9)])throw Error(_0x437797(0x1f5));if(inflateSync(Buffer[_0x437797(0x1ea)](_0x26119a),{'maxOutputLength':_0xb5c52b+0x1})[_0x437797(0x1d9)]!==_0xb5c52b)throw Error(_0x437797(0x217));const {PNG:_0x3bb3c}=require(_0x437797(0x20a)),_0x1960bd=_0x3bb3c[_0x437797(0x213)][_0x437797(0x1f4)](_0x2eb341,{'checkCRC':!![]});dimensions(_0x1960bd[_0x437797(0x218)],_0x1960bd[_0x437797(0x20e)]),_0x1fab9f='image/png';}else{if(_0x2eb341[0x0]===0xff&&_0x2eb341[0x1]===0xd8){if(_0x2eb341['at'](-0x2)!==0xff||_0x2eb341['at'](-0x1)!==0xd9)throw Error(_0x437797(0x1e6));const _0xa4774e=require(_0x437797(0x216)),_0x3c2bd9=_0xa4774e[_0x437797(0x1ff)](_0x2eb341,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x3c2bd9[_0x437797(0x218)],_0x3c2bd9['height']),_0x1fab9f=_0x437797(0x1f9);}else{if([_0x437797(0x1fc),_0x437797(0x1da)][_0x437797(0x211)](_0x2eb341['toString'](_0x437797(0x210),0x0,0x6))){if(_0x2eb341[_0x437797(0x1d9)]<0xe||_0x2eb341['at'](-0x1)!==0x3b)throw Error(_0x437797(0x1d8));dimensions(_0x2eb341[_0x437797(0x20c)](0x6),_0x2eb341['readUInt16LE'](0x8)),validateGif(_0x2eb341);const {GifReader:_0xee5674}=require(_0x437797(0x201)),_0x57b8ab=new _0xee5674(_0x2eb341);dimensions(_0x57b8ab['width'],_0x57b8ab[_0x437797(0x20e)]);const _0x107173=_0x57b8ab[_0x437797(0x206)]();if(!_0x107173||_0x107173>0x2710||_0x107173*_0x57b8ab[_0x437797(0x218)]*_0x57b8ab[_0x437797(0x20e)]>MAX_PIXELS)throw Error(_0x437797(0x1ef));const _0x4d8661=new Uint8Array(_0x57b8ab[_0x437797(0x218)]*_0x57b8ab[_0x437797(0x20e)]*0x4);for(let _0x2a9244=0x0;_0x2a9244<_0x107173;_0x2a9244++){const _0x887fa2=_0x57b8ab[_0x437797(0x20f)](_0x2a9244);if(_0x887fa2['x']+_0x887fa2[_0x437797(0x218)]>_0x57b8ab[_0x437797(0x218)]||_0x887fa2['y']+_0x887fa2[_0x437797(0x20e)]>_0x57b8ab['height'])throw Error(_0x437797(0x1de));_0x57b8ab[_0x437797(0x212)](_0x2a9244,_0x4d8661);}_0x1fab9f='image/gif';}else throw Error(_0x437797(0x1fe));}}}catch(_0xdc39d1){throw Error(_0x437797(0x1df)+_0xdc39d1[_0x437797(0x1e5)]);}return{'contentHash':createHash(_0x437797(0x20d))['update'](_0x2eb341)[_0x437797(0x1e8)](_0x437797(0x1e9)),'type':_0x1fab9f,'size':_0x2eb341[_0x437797(0x1d9)],'bytes':_0x2eb341};}
|
|
1
|
+
(function(_0x199887,_0xa90c20){const _0xa4c8b1=a145_0x54af,_0x374340=_0x199887();while(!![]){try{const _0x1f4d57=parseInt(_0xa4c8b1(0x210))/0x1+parseInt(_0xa4c8b1(0x20a))/0x2+-parseInt(_0xa4c8b1(0x1f8))/0x3*(parseInt(_0xa4c8b1(0x1df))/0x4)+-parseInt(_0xa4c8b1(0x21d))/0x5*(-parseInt(_0xa4c8b1(0x1e4))/0x6)+-parseInt(_0xa4c8b1(0x21a))/0x7+-parseInt(_0xa4c8b1(0x20e))/0x8*(-parseInt(_0xa4c8b1(0x217))/0x9)+-parseInt(_0xa4c8b1(0x1ff))/0xa*(parseInt(_0xa4c8b1(0x1eb))/0xb);if(_0x1f4d57===_0xa90c20)break;else _0x374340['push'](_0x374340['shift']());}catch(_0x1377a1){_0x374340['push'](_0x374340['shift']());}}}(a145_0x44ca,0xa44cb));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 dimensions(_0x29d785,_0x4ad81f){const _0x2e33e8=a145_0x54af;if(!Number[_0x2e33e8(0x205)](_0x29d785)||!Number[_0x2e33e8(0x205)](_0x4ad81f)||_0x29d785<0x1||_0x4ad81f<0x1||_0x29d785*_0x4ad81f>MAX_PIXELS)throw Error(_0x2e33e8(0x1ed));}function a145_0x54af(_0x260d21,_0x4e9d62){_0x260d21=_0x260d21-0x1df;const _0x44caa1=a145_0x44ca();let _0x54af9c=_0x44caa1[_0x260d21];return _0x54af9c;}function a145_0x44ca(){const _0x51075c=['3ssIOqH','width','sha256','Invalid\x20PNG\x20color/depth/interlace.','IEND','concat','Truncated\x20PNG\x20chunk.','10320370PrRgNs','pngjs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','jpeg-js','Invalid\x20image:\x20','omggif','isSafeInteger','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Truncated\x20GIF\x20data.','height','from','2478202ilQzkA','includes','GIF89a','Invalid\x20GIF\x20block.','272HKTYXi','decode','870671CknVrb','Missing\x20PNG\x20data/end.','acTL','message','Animated\x20PNG\x20is\x20not\x20supported.','toString','numFrames','115551DGMJLw','max','GIF\x20frame\x20exceeds\x20canvas.','5310529hLqrTS','Missing\x20GIF\x20trailer.','Invalid\x20PNG\x20end.','19365iSgYzL','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','2298056hovNnB','Invalid\x20GIF\x20trailer.','ceil','IHDR','readUInt32BE','762eViTXn','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','update','readUInt16LE','equals','11SWMjTR','Invalid\x20PNG\x20header.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','push','length','image/gif','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','decodeAndBlitFrameRGBA','Invalid\x20GIF\x20LZW\x20pixel\x20data.','ascii','image/jpeg','image/png','subarray'];a145_0x44ca=function(){return _0x51075c;};return a145_0x44ca();}function validateGif(_0x385764){const _0x322f28=a145_0x54af;let _0xd4f7c6=0xd,_0x3f53e3=0x0,_0xd3f039=0x0;const _0x55d02e=_0x385764[_0x322f28(0x1e9)](0x6),_0xcf346e=_0x385764[_0x322f28(0x1e9)](0x8),_0x448154=_0x385764[0xa]&0x80?0x1<<(_0x385764[0xa]&0x7)+0x1:0x0,_0x1e88a6=_0x11fcea=>{const _0xf6efc4=_0x322f28;if(_0xd4f7c6+_0x11fcea>_0x385764[_0xf6efc4(0x1ef)])throw Error(_0xf6efc4(0x207));};_0xd4f7c6+=_0x448154*0x3,_0x1e88a6(0x0);const _0x312dcc=()=>{const _0x2a7735=_0x322f28,_0x269810=[];while(!![]){_0x1e88a6(0x1);const _0x29ea1f=_0x385764[_0xd4f7c6++];if(!_0x29ea1f)break;_0x1e88a6(_0x29ea1f),_0x269810[_0x2a7735(0x1ee)](_0x385764[_0x2a7735(0x1f7)](_0xd4f7c6,_0xd4f7c6+_0x29ea1f)),_0xd4f7c6+=_0x29ea1f;}return Buffer[_0x2a7735(0x1fd)](_0x269810);};while(_0xd4f7c6<_0x385764[_0x322f28(0x1ef)]){const _0x3cfeb8=_0x385764[_0xd4f7c6++];if(_0x3cfeb8===0x3b){if(!_0x3f53e3||_0xd4f7c6!==_0x385764[_0x322f28(0x1ef)])throw Error(_0x322f28(0x1e0));return;}if(_0x3cfeb8===0x21){_0x1e88a6(0x1),_0xd4f7c6++,_0x312dcc();continue;}if(_0x3cfeb8!==0x2c)throw Error(_0x322f28(0x20d));_0x1e88a6(0x9);const _0x21c6f6=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6),_0x5a6447=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x2),_0x123aef=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x4),_0x494c6d=_0x385764[_0x322f28(0x1e9)](_0xd4f7c6+0x6),_0x46cf3e=_0x385764[_0xd4f7c6+0x8];_0xd4f7c6+=0x9,dimensions(_0x123aef,_0x494c6d);if(_0x21c6f6+_0x123aef>_0x55d02e||_0x5a6447+_0x494c6d>_0xcf346e||++_0x3f53e3>0x2710||(_0xd3f039+=_0x55d02e*_0xcf346e)>MAX_PIXELS)throw Error(_0x322f28(0x1f1));const _0x11c48e=_0x46cf3e&0x80?0x1<<(_0x46cf3e&0x7)+0x1:_0x448154;if(!_0x11c48e)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x46cf3e&0x80&&(_0x1e88a6(_0x11c48e*0x3),_0xd4f7c6+=_0x11c48e*0x3);_0x1e88a6(0x1);const _0x1469c2=_0x385764[_0xd4f7c6++];if(_0x1469c2<0x2||_0x1469c2>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x55445b=_0x312dcc(),_0x5dcacf=0x1<<_0x1469c2,_0x5e9fc3=_0x5dcacf+0x1;let _0x54273f=_0x1469c2+0x1,_0x1a406c=_0x5e9fc3+0x1,_0x1670d9=0x0,_0x4d2952=-0x1,_0x46f221=0x0,_0x381f53=![];const _0x1e2d40=new Uint32Array(0x1000),_0x2d12e5=new Uint16Array(0x1000);for(let _0xbe2582=0x0;_0xbe2582<_0x5dcacf;_0xbe2582++){_0x1e2d40[_0xbe2582]=0x1,_0x2d12e5[_0xbe2582]=_0xbe2582;}while(_0x1670d9+_0x54273f<=_0x55445b[_0x322f28(0x1ef)]*0x8){let _0x28dd5b=0x0;for(let _0x46f438=0x0;_0x46f438<_0x54273f;_0x46f438++,_0x1670d9++)_0x28dd5b|=(_0x55445b[_0x1670d9>>0x3]>>(_0x1670d9&0x7)&0x1)<<_0x46f438;if(_0x28dd5b===_0x5dcacf){_0x54273f=_0x1469c2+0x1,_0x1a406c=_0x5e9fc3+0x1,_0x4d2952=-0x1;continue;}if(_0x28dd5b===_0x5e9fc3){_0x381f53=!![];break;}if(_0x28dd5b>_0x1a406c||_0x28dd5b===_0x1a406c&&_0x4d2952<0x0||_0x4d2952<0x0&&_0x28dd5b>=_0x5dcacf)throw Error(_0x322f28(0x1e6));const _0x174842=_0x28dd5b===_0x1a406c?_0x1e2d40[_0x4d2952]+0x1:_0x1e2d40[_0x28dd5b],_0x342ea2=_0x28dd5b===_0x1a406c?_0x2d12e5[_0x4d2952]:_0x2d12e5[_0x28dd5b];if(!_0x174842||_0x342ea2>=_0x11c48e||(_0x46f221+=_0x174842)>_0x123aef*_0x494c6d)throw Error(_0x322f28(0x1f3));if(_0x4d2952>=0x0&&_0x1a406c<0x1000){_0x1e2d40[_0x1a406c]=_0x1e2d40[_0x4d2952]+0x1,_0x2d12e5[_0x1a406c]=Math[_0x322f28(0x218)](_0x2d12e5[_0x4d2952],_0x342ea2),_0x1a406c++;if(_0x1a406c===0x1<<_0x54273f&&_0x54273f<0xc)_0x54273f++;}_0x4d2952=_0x28dd5b;}if(!_0x381f53||_0x46f221!==_0x123aef*_0x494c6d)throw Error(_0x322f28(0x201));}throw Error(_0x322f28(0x21b));}export function validateImageBytes(_0x504557){const _0x28d17f=a145_0x54af;if(!_0x504557[_0x28d17f(0x1ef)]||_0x504557['length']>0xa*0x400*0x400)throw Error(_0x28d17f(0x1e7));let _0x447f86;try{if(_0x504557[_0x28d17f(0x1f7)](0x0,0x8)[_0x28d17f(0x1ea)](Buffer[_0x28d17f(0x209)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x504557[_0x28d17f(0x1ef)]<0x21||_0x504557[_0x28d17f(0x215)]('ascii',0xc,0x10)!==_0x28d17f(0x1e2))throw Error(_0x28d17f(0x1ec));dimensions(_0x504557['readUInt32BE'](0x10),_0x504557[_0x28d17f(0x1e3)](0x14));const _0x510275=_0x504557[_0x28d17f(0x1e3)](0x10),_0x55f175=_0x504557[_0x28d17f(0x1e3)](0x14),_0x2bd978=_0x504557[0x18],_0x545259=_0x504557[0x19],_0x5f32e5=_0x504557[0x1c],_0xeafe84={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x545259];if(!_0xeafe84||![0x1,0x2,0x4,0x8,0x10][_0x28d17f(0x20b)](_0x2bd978)||_0x5f32e5>0x1)throw Error(_0x28d17f(0x1fb));const _0x3b66d9=_0x8809cf=>Math[_0x28d17f(0x1e1)](_0x8809cf*_0xeafe84*_0x2bd978/0x8)+0x1;let _0x1323dd=_0x3b66d9(_0x510275)*_0x55f175;if(_0x5f32e5){_0x1323dd=0x0;for(const [_0x5e05c4,_0x59ead5,_0x1d7b2d,_0x255c1a]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 _0x370f3d=Math[_0x28d17f(0x218)](0x0,Math[_0x28d17f(0x1e1)]((_0x510275-_0x5e05c4)/_0x1d7b2d)),_0x4542e9=Math[_0x28d17f(0x218)](0x0,Math['ceil']((_0x55f175-_0x59ead5)/_0x255c1a));if(_0x370f3d&&_0x4542e9)_0x1323dd+=_0x3b66d9(_0x370f3d)*_0x4542e9;}}let _0x1a3cb1=0x8,_0x2ee162=![];const _0x587466=[];while(_0x1a3cb1<_0x504557[_0x28d17f(0x1ef)]){if(_0x1a3cb1+0xc>_0x504557[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x1fe));const _0x47049b=_0x504557[_0x28d17f(0x1e3)](_0x1a3cb1),_0x3e4b05=_0x504557[_0x28d17f(0x215)](_0x28d17f(0x1f4),_0x1a3cb1+0x4,_0x1a3cb1+0x8);if(_0x3e4b05===_0x28d17f(0x212))throw Error(_0x28d17f(0x214));if(_0x1a3cb1+_0x47049b+0xc>_0x504557[_0x28d17f(0x1ef)])throw Error('Truncated\x20PNG\x20data.');if(_0x3e4b05==='IDAT')_0x587466[_0x28d17f(0x1ee)](_0x504557[_0x28d17f(0x1f7)](_0x1a3cb1+0x8,_0x1a3cb1+0x8+_0x47049b));_0x1a3cb1+=_0x47049b+0xc;if(_0x3e4b05===_0x28d17f(0x1fc)){if(_0x47049b||_0x1a3cb1!==_0x504557[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x21c));_0x2ee162=!![];break;}}if(!_0x2ee162||!_0x587466[_0x28d17f(0x1ef)])throw Error(_0x28d17f(0x211));if(inflateSync(Buffer[_0x28d17f(0x1fd)](_0x587466),{'maxOutputLength':_0x1323dd+0x1})[_0x28d17f(0x1ef)]!==_0x1323dd)throw Error(_0x28d17f(0x21e));const {PNG:_0x1a708f}=require(_0x28d17f(0x200)),_0x3702d6=_0x1a708f['sync']['read'](_0x504557,{'checkCRC':!![]});dimensions(_0x3702d6[_0x28d17f(0x1f9)],_0x3702d6['height']),_0x447f86=_0x28d17f(0x1f6);}else{if(_0x504557[0x0]===0xff&&_0x504557[0x1]===0xd8){if(_0x504557['at'](-0x2)!==0xff||_0x504557['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x35c205=require(_0x28d17f(0x202)),_0x21ee0a=_0x35c205[_0x28d17f(0x20f)](_0x504557,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x21ee0a[_0x28d17f(0x1f9)],_0x21ee0a[_0x28d17f(0x208)]),_0x447f86=_0x28d17f(0x1f5);}else{if(['GIF87a',_0x28d17f(0x20c)][_0x28d17f(0x20b)](_0x504557[_0x28d17f(0x215)]('ascii',0x0,0x6))){if(_0x504557[_0x28d17f(0x1ef)]<0xe||_0x504557['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x504557[_0x28d17f(0x1e9)](0x6),_0x504557['readUInt16LE'](0x8)),validateGif(_0x504557);const {GifReader:_0x403c91}=require(_0x28d17f(0x204)),_0x205d4a=new _0x403c91(_0x504557);dimensions(_0x205d4a[_0x28d17f(0x1f9)],_0x205d4a['height']);const _0x117cf9=_0x205d4a[_0x28d17f(0x216)]();if(!_0x117cf9||_0x117cf9>0x2710||_0x117cf9*_0x205d4a[_0x28d17f(0x1f9)]*_0x205d4a[_0x28d17f(0x208)]>MAX_PIXELS)throw Error(_0x28d17f(0x1f1));const _0x53c0fb=new Uint8Array(_0x205d4a[_0x28d17f(0x1f9)]*_0x205d4a[_0x28d17f(0x208)]*0x4);for(let _0x1fede4=0x0;_0x1fede4<_0x117cf9;_0x1fede4++){const _0xad0777=_0x205d4a[_0x28d17f(0x1e5)](_0x1fede4);if(_0xad0777['x']+_0xad0777[_0x28d17f(0x1f9)]>_0x205d4a[_0x28d17f(0x1f9)]||_0xad0777['y']+_0xad0777[_0x28d17f(0x208)]>_0x205d4a[_0x28d17f(0x208)])throw Error(_0x28d17f(0x219));_0x205d4a[_0x28d17f(0x1f2)](_0x1fede4,_0x53c0fb);}_0x447f86=_0x28d17f(0x1f0);}else throw Error(_0x28d17f(0x206));}}}catch(_0x3c33cc){throw Error(_0x28d17f(0x203)+_0x3c33cc[_0x28d17f(0x213)]);}return{'contentHash':createHash(_0x28d17f(0x1fa))[_0x28d17f(0x1e8)](_0x504557)[_0x28d17f(0x21f)]('hex'),'type':_0x447f86,'size':_0x504557[_0x28d17f(0x1ef)],'bytes':_0x504557};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a146_0x1c2485=a146_0x4aa6;(function(_0x5c4786,_0x8676ca){const _0x5b9c3c=a146_0x4aa6,_0x18abcc=_0x5c4786();while(!![]){try{const _0xe4f87f=parseInt(_0x5b9c3c(0x1e9))/0x1+parseInt(_0x5b9c3c(0x16f))/0x2+parseInt(_0x5b9c3c(0x1fa))/0x3+-parseInt(_0x5b9c3c(0x209))/0x4+parseInt(_0x5b9c3c(0x1a0))/0x5+-parseInt(_0x5b9c3c(0x20e))/0x6*(-parseInt(_0x5b9c3c(0x193))/0x7)+-parseInt(_0x5b9c3c(0x1ec))/0x8;if(_0xe4f87f===_0x8676ca)break;else _0x18abcc['push'](_0x18abcc['shift']());}catch(_0x5c4fc4){_0x18abcc['push'](_0x18abcc['shift']());}}}(a146_0xbf72,0x24e8f));import a146_0x2b09c0 from'node:path';function a146_0x4aa6(_0x796e09,_0x8e208f){_0x796e09=_0x796e09-0x16e;const _0xbf72df=a146_0xbf72();let _0x4aa67a=_0xbf72df[_0x796e09];return _0x4aa67a;}import{SaxesParser}from'saxes';const SHEET=['http://schemas.openxmlformats.org/spreadsheetml/2006/main',a146_0x1c2485(0x179)],DRAWING=[a146_0x1c2485(0x1a2),a146_0x1c2485(0x1b3)],DRAWING_MAIN=['http://schemas.openxmlformats.org/drawingml/2006/main','http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=[a146_0x1c2485(0x1c6),a146_0x1c2485(0x1eb)],PACKAGE=[a146_0x1c2485(0x20b)],RICH=[a146_0x1c2485(0x1cf)],RICH_RELS=[a146_0x1c2485(0x1ac)],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object['fromEntries']([...['workbook',a146_0x1c2485(0x1a7),a146_0x1c2485(0x1ef),a146_0x1c2485(0x19a),'sheetData','row','c','f','v','sheetFormatPr',a146_0x1c2485(0x197),a146_0x1c2485(0x18d),'metadataTypes',a146_0x1c2485(0x184),'futureMetadata','valueMetadata','bk','rc',a146_0x1c2485(0x200)]['map'](_0x3d8ff9=>[_0x3d8ff9,SHEET]),...[a146_0x1c2485(0x17e),'oneCellAnchor',a146_0x1c2485(0x1b7),'absoluteAnchor',a146_0x1c2485(0x1fe),'to','col','colOff','rowOff',a146_0x1c2485(0x172),a146_0x1c2485(0x1b0),a146_0x1c2485(0x1e8),a146_0x1c2485(0x1cd),a146_0x1c2485(0x177)][a146_0x1c2485(0x214)](_0x438de4=>[_0x438de4,DRAWING]),...['rvb',a146_0x1c2485(0x1e5),'rv',a146_0x1c2485(0x173),'s','k']['map'](_0x5358d6=>[_0x5358d6,RICH]),[a146_0x1c2485(0x1a1),DRAWING_MAIN],[a146_0x1c2485(0x1e1),RICH_RELS],['rel',RICH_RELS],[a146_0x1c2485(0x201),PACKAGE],[a146_0x1c2485(0x1f2),PACKAGE],[a146_0x1c2485(0x1f0),WPS],['cellImage',WPS]]),matches=(_0x424f51,_0x12ef1a,_0x2d64d5=DEFAULT_NS[_0x12ef1a]??[])=>_0x424f51[a146_0x1c2485(0x1f1)]===_0x12ef1a&&_0x2d64d5[a146_0x1c2485(0x1a8)](_0x424f51[a146_0x1c2485(0x175)]),children=(_0x41f494,_0x48509e,_0x16d4cf=DEFAULT_NS[_0x48509e])=>_0x41f494[a146_0x1c2485(0x198)][a146_0x1c2485(0x19b)](_0xcb842a=>matches(_0xcb842a,_0x48509e,_0x16d4cf)),chain=(_0x360f5f,..._0x55679c)=>_0x55679c[a146_0x1c2485(0x194)]((_0x4fc0a4,_0x177571)=>_0x4fc0a4[a146_0x1c2485(0x213)](_0x5a842a=>children(_0x5a842a,_0x177571)),[_0x360f5f]),relationshipTypes=_0x519fae=>{const _0x359dab=a146_0x1c2485;if([_0x359dab(0x181),'rdRichValueStructure']['includes'](_0x519fae))return[_0x359dab(0x20d)+_0x519fae];if(_0x519fae==='richValueRel')return[_0x359dab(0x1e3)];if(_0x519fae===_0x359dab(0x1b1)||_0x519fae==='cellImages')return[_0x359dab(0x191)+_0x519fae];return OFFICE_RELS[_0x359dab(0x214)](_0x2bcf10=>_0x2bcf10+'/'+_0x519fae);};function one(_0x367124,_0x55bf83){const _0x5cc6f3=a146_0x1c2485;if(_0x367124[_0x5cc6f3(0x1b4)]!==0x1)throw Error(_0x5cc6f3(0x180)+_0x55bf83+'.');return _0x367124[0x0];}function integer(_0x44e5d9,_0x5ec574,_0x443606=0x186a0){const _0x50a2ab=a146_0x1c2485;if(!_0x44e5d9||!/^\d+$/[_0x50a2ab(0x17f)](_0x44e5d9)||!Number['isSafeInteger'](Number(_0x44e5d9))||Number(_0x44e5d9)>_0x443606)throw Error(_0x50a2ab(0x18a)+_0x5ec574+'.');return Number(_0x44e5d9);}export function resolveWorksheetImages(_0x3682e4,_0x37745a,_0x2a5205){const _0xdf915c=a146_0x1c2485;let _0x51ea33=0x0,_0x22f0bf=0x0,_0x2dbbae=0x0;const _0x317dd4=new Map(),_0x3dbf5c=_0x2e9c1a=>{const _0x4828f0=a146_0x4aa6;if(_0x317dd4[_0x4828f0(0x1e4)](_0x2e9c1a))return _0x317dd4[_0x4828f0(0x1b9)](_0x2e9c1a);const _0x332d9f=_0x3682e4[_0x4828f0(0x1b9)](_0x2e9c1a);if(!_0x332d9f)throw Error('Missing\x20XLSX\x20part:\x20'+_0x2e9c1a+'.');const _0x115a96={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x4db31d=[_0x115a96],_0x3e00c7=new SaxesParser({'xmlns':!![]}),_0x35d53a=()=>{const _0x1bd2db=_0x4828f0;if(++_0x22f0bf>0x1e8480)throw Error(_0x1bd2db(0x1e6));};_0x3e00c7['on']('doctype',()=>{const _0x412247=_0x4828f0;throw Error(_0x412247(0x192));}),_0x3e00c7['on'](_0x4828f0(0x1ba),_0x3bf677=>{const _0x8e8fdb=_0x4828f0;_0x35d53a();if(++_0x51ea33>0x7a120||_0x4db31d[_0x8e8fdb(0x1b4)]>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x4ad98c={};for(const _0x3764d4 of Object[_0x8e8fdb(0x195)](_0x3bf677['attributes'])){const _0x1b2257=OFFICE_RELS['includes'](_0x3764d4[_0x8e8fdb(0x175)])?'r:'+_0x3764d4[_0x8e8fdb(0x1b5)]:_0x3764d4[_0x8e8fdb(0x175)]?'{'+_0x3764d4[_0x8e8fdb(0x175)]+'}'+_0x3764d4['local']:_0x3764d4['local'];if(_0x1b2257 in _0x4ad98c)throw Error(_0x8e8fdb(0x1bf));_0x4ad98c[_0x1b2257]=_0x3764d4[_0x8e8fdb(0x210)];}const _0x3bed97={'name':_0x3bf677['local'],'uri':_0x3bf677[_0x8e8fdb(0x175)],'attrs':_0x4ad98c,'children':[],'text':''};_0x4db31d['at'](-0x1)[_0x8e8fdb(0x198)][_0x8e8fdb(0x1f4)](_0x3bed97),_0x4db31d[_0x8e8fdb(0x1f4)](_0x3bed97);}),_0x3e00c7['on'](_0x4828f0(0x1aa),_0x353060=>{const _0x20da9a=_0x4828f0;_0x35d53a();const _0x335599=_0x4db31d['at'](-0x1);_0x335599['text']+=_0x353060;if(_0x335599[_0x20da9a(0x1aa)][_0x20da9a(0x1b4)]>0x10000)throw Error(_0x20da9a(0x1c3));}),_0x3e00c7['on'](_0x4828f0(0x174),()=>{_0x35d53a(),_0x4db31d['pop']();}),_0x3e00c7['on']('error',_0x2ad350=>{throw _0x2ad350;}),_0x3e00c7[_0x4828f0(0x1d8)](_0x332d9f[_0x4828f0(0x178)]('utf8'))[_0x4828f0(0x20c)]();const _0x33ace4=one(_0x115a96[_0x4828f0(0x198)],_0x2e9c1a);return _0x317dd4[_0x4828f0(0x1ea)](_0x2e9c1a,_0x33ace4),_0x33ace4;},_0x1b0f83=new Map(),_0x4cc1b0=_0x347d66=>{const _0x10bde4=a146_0x4aa6;if(_0x1b0f83[_0x10bde4(0x1e4)](_0x347d66))return _0x1b0f83['get'](_0x347d66);const _0x551fb8=a146_0x2b09c0['posix'][_0x10bde4(0x17a)](a146_0x2b09c0[_0x10bde4(0x1b6)][_0x10bde4(0x1b8)](_0x347d66),'_rels',a146_0x2b09c0[_0x10bde4(0x1b6)][_0x10bde4(0x1db)](_0x347d66)+_0x10bde4(0x17c));if(!_0x3682e4[_0x10bde4(0x1e4)](_0x551fb8))return[];const _0x20c7a5=new Set(),_0x445951=_0x3dbf5c(_0x551fb8);if(!matches(_0x445951,'Relationships'))throw Error(_0x10bde4(0x1e7)+_0x551fb8+'.');const _0x2373fb=children(_0x445951,_0x10bde4(0x1f2))['map'](_0x4bb502=>{const _0xae3916=_0x10bde4,{Id:_0x210125,Type:_0x4047c0,Target:_0x561158,TargetMode:_0x120a9f}=_0x4bb502[_0xae3916(0x1af)];if(!_0x210125||_0x20c7a5[_0xae3916(0x1e4)](_0x210125)||!_0x4047c0)throw Error(_0xae3916(0x1c5)+_0x551fb8+'.');return _0x20c7a5['add'](_0x210125),{'id':_0x210125,'type':_0x4047c0,'target':_0x561158??'','mode':_0x120a9f};});return _0x1b0f83[_0x10bde4(0x1ea)](_0x347d66,_0x2373fb),_0x2373fb;},_0x15c054=(_0x3ff47e,_0x42f975)=>{const _0x4889c8=a146_0x4aa6,{target:_0x16e9f0,mode:_0x11818f}=_0x42f975;if(_0x11818f&&_0x11818f!=='Internal')throw Error(_0x4889c8(0x1ab)+_0x3ff47e+'.');if(!_0x16e9f0||_0x16e9f0[_0x4889c8(0x1a8)]('\x5c')||/[?#%\x00-\x20]/[_0x4889c8(0x17f)](_0x16e9f0)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x16e9f0)||_0x16e9f0[_0x4889c8(0x1c8)]('//'))throw Error(_0x4889c8(0x202)+_0x3ff47e+'.');const _0xd07c5b=_0x16e9f0[_0x4889c8(0x1c8)]('/')?_0x16e9f0[_0x4889c8(0x171)](0x1):a146_0x2b09c0[_0x4889c8(0x1b6)]['normalize'](a146_0x2b09c0[_0x4889c8(0x1b6)][_0x4889c8(0x17a)](a146_0x2b09c0[_0x4889c8(0x1b6)][_0x4889c8(0x1b8)](_0x3ff47e),_0x16e9f0));if(_0xd07c5b[_0x4889c8(0x1c8)](_0x4889c8(0x196))||_0xd07c5b==='..'||!_0xd07c5b[_0x4889c8(0x1c8)](_0x4889c8(0x204)))throw Error(_0x4889c8(0x1d7)+_0x3ff47e+'.');return _0xd07c5b;},_0x36952f=(_0x40c2aa,_0x3db77e,_0x227306)=>{const _0x502baa=a146_0x4aa6,_0x42d262=_0x4cc1b0(_0x40c2aa)[_0x502baa(0x19b)](_0x111dab=>_0x111dab['id']===_0x3db77e&&relationshipTypes(_0x227306)['includes'](_0x111dab['type']));if(_0x42d262[_0x502baa(0x1b4)]!==0x1)throw Error(_0x502baa(0x180)+_0x227306+_0x502baa(0x1f9)+_0x40c2aa+'.');return _0x15c054(_0x40c2aa,_0x42d262[0x0]);},_0x5a261e=(_0x31156c,_0x1a79fe)=>{const _0x4e12f7=a146_0x4aa6,_0x7397b1=_0x4cc1b0(_0x31156c)[_0x4e12f7(0x19b)](_0x50498f=>relationshipTypes(_0x1a79fe)[_0x4e12f7(0x1a8)](_0x50498f['type']));if(_0x7397b1[_0x4e12f7(0x1b4)]!==0x1)throw Error(_0x4e12f7(0x180)+_0x1a79fe+'\x20relationship\x20in\x20'+_0x31156c+'.');return _0x15c054(_0x31156c,_0x7397b1[0x0]);},_0x5a5cd7=_0xdf915c(0x1dc),_0x45bc0f=_0x3dbf5c(_0x5a5cd7);if(!matches(_0x45bc0f,_0xdf915c(0x1f7)))throw Error(_0xdf915c(0x1d1));const _0x419c5c=one(chain(_0x45bc0f,_0xdf915c(0x1a7),'sheet')['filter'](_0x4cdd1d=>_0x4cdd1d['attrs'][_0xdf915c(0x1f1)]===_0x37745a),_0xdf915c(0x19a)),_0x1d2af9=_0x36952f(_0x5a5cd7,_0x419c5c['attrs'][_0xdf915c(0x1f6)],_0xdf915c(0x19a)),_0x322a1b=_0x3dbf5c(_0x1d2af9);if(!matches(_0x322a1b,_0xdf915c(0x19a)))throw Error(_0xdf915c(0x185));const _0x29d58d=chain(_0x322a1b,_0xdf915c(0x1ad),'row'),_0x16f073=new Map(),_0x5e8084=new Set(_0x29d58d[_0xdf915c(0x19b)](_0x195edb=>_0x195edb[_0xdf915c(0x1af)]['hidden']==='1'||_0x195edb['attrs'][_0xdf915c(0x19d)]==='true')[_0xdf915c(0x214)](_0x29d0be=>integer(_0x29d0be[_0xdf915c(0x1af)]['r'],_0xdf915c(0x1de)))),_0xe2f6d1=_0x2732d8=>{const _0x538d2f=_0xdf915c,_0x18f62b=_0x2732d8===undefined?0xf:Number(_0x2732d8);if(!Number[_0x538d2f(0x17b)](_0x18f62b)||_0x18f62b<=0x0||_0x18f62b>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x538d2f(0x1c0)](_0x18f62b*0x319c);},_0x3d9dc4=_0xe2f6d1(children(_0x322a1b,_0xdf915c(0x170))[0x0]?.[_0xdf915c(0x1af)][_0xdf915c(0x1a5)]);for(const _0x308fb2 of _0x29d58d)if(_0x308fb2[_0xdf915c(0x1af)]['ht']!==undefined)_0x16f073[_0xdf915c(0x1ea)](integer(_0x308fb2[_0xdf915c(0x1af)]['r'],_0xdf915c(0x1e2)),_0xe2f6d1(_0x308fb2[_0xdf915c(0x1af)]['ht']));const _0x5e7541=[],_0x1718e6=_0x3f354e=>{const _0x1700ca=_0xdf915c;if(!_0x2a5205[_0x1700ca(0x1e4)](_0x3f354e[_0x1700ca(0x212)]))return;if(++_0x2dbbae>0x2710)throw Error(_0x1700ca(0x1a4));_0x5e7541['push'](_0x5e8084['has'](_0x3f354e[_0x1700ca(0x1cc)])?{..._0x3f354e,'hiddenRow':!![]}:_0x3f354e);},_0x37a678=_0x1c8683=>({'row':integer(one(children(_0x1c8683,'row',DRAWING),_0xdf915c(0x182))[_0xdf915c(0x1aa)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x1c8683,_0xdf915c(0x212)),_0xdf915c(0x199))[_0xdf915c(0x1aa)],_0xdf915c(0x199),0xff)+0x1});for(const _0x23296b of children(_0x322a1b,_0xdf915c(0x197))){const _0x2e30e9=_0x36952f(_0x1d2af9,_0x23296b['attrs'][_0xdf915c(0x1f6)],'drawing'),_0x1fdadc=_0x3dbf5c(_0x2e30e9);if(!matches(_0x1fdadc,_0xdf915c(0x17e)))throw Error(_0xdf915c(0x20a));for(const _0x4f15d2 of _0x1fdadc[_0xdf915c(0x198)]){if(!['oneCellAnchor',_0xdf915c(0x1b7),_0xdf915c(0x1be)][_0xdf915c(0x1d9)](_0x44df62=>matches(_0x4f15d2,_0x44df62)))continue;if(_0x4f15d2[_0xdf915c(0x1f1)]==='absoluteAnchor')throw Error(_0xdf915c(0x1fd)+_0x37745a+'.');const _0x14ef28=_0x37a678(one(children(_0x4f15d2,'from'),'anchor\x20start'));if(!_0x2a5205[_0xdf915c(0x1e4)](_0x14ef28['col']))continue;let _0x174b5e;const _0x45fcb7=one(children(_0x4f15d2,_0xdf915c(0x1fe)),_0xdf915c(0x1d4)),_0x445f85=integer(one(children(_0x45fcb7,'rowOff'),_0xdf915c(0x183))[_0xdf915c(0x1aa)],_0xdf915c(0x183),Number['MAX_SAFE_INTEGER']),_0x1327ae=_0x16f073[_0xdf915c(0x1b9)](_0x14ef28['row'])??_0x3d9dc4;if(_0x445f85>=_0x1327ae)throw Error(_0xdf915c(0x1d3)+_0x14ef28[_0xdf915c(0x1cc)]+'.');if(_0x4f15d2[_0xdf915c(0x1f1)]===_0xdf915c(0x1cb)){const _0x2be866=one(children(_0x4f15d2,'ext'),_0xdf915c(0x1bb)),_0x1c2969=integer(_0x2be866['attrs']['cy'],_0xdf915c(0x1ee),Number['MAX_SAFE_INTEGER']);if(!_0x1c2969||_0x445f85+_0x1c2969>_0x1327ae)_0x174b5e=_0xdf915c(0x18e);}if(_0x4f15d2['name']==='twoCellAnchor'){const _0x5655e6=one(children(_0x4f15d2,'to'),'anchor\x20end'),_0x574e22=_0x37a678(_0x5655e6),_0x314122=integer(one(children(_0x5655e6,_0xdf915c(0x1da)),_0xdf915c(0x1dd))['text'],_0xdf915c(0x1dd),Number['MAX_SAFE_INTEGER']),_0xd0128c=_0x16f073[_0xdf915c(0x1b9)](_0x574e22['row'])??_0x3d9dc4;if(_0x314122>_0xd0128c||_0x574e22[_0xdf915c(0x1cc)]===_0x14ef28[_0xdf915c(0x1cc)]&&_0x314122<=_0x445f85)_0x174b5e='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x574e22[_0xdf915c(0x1cc)]<_0x14ef28[_0xdf915c(0x1cc)]||_0x574e22[_0xdf915c(0x1cc)]>_0x14ef28['row']+0x1||_0x574e22[_0xdf915c(0x1cc)]===_0x14ef28[_0xdf915c(0x1cc)]+0x1&&_0x314122!==0x0)_0x174b5e='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}const _0x5f5d95=chain(_0x4f15d2,'pic',_0xdf915c(0x177),_0xdf915c(0x1a1));for(const _0x307857 of _0x5f5d95){if(_0x307857[_0xdf915c(0x1af)][_0xdf915c(0x1df)])throw Error(_0xdf915c(0x1fc));_0x1718e6({..._0x14ef28,'media':[_0x36952f(_0x2e30e9,_0x307857[_0xdf915c(0x1af)][_0xdf915c(0x1ca)],_0xdf915c(0x206))],..._0x174b5e?{'error':_0x174b5e}:{}});}if(!_0x5f5d95[_0xdf915c(0x1b4)])_0x1718e6({..._0x14ef28,'media':[],'error':_0xdf915c(0x1d6)});}}const _0x4ef1f2=_0x50bb83=>{const _0x31ac22=_0xdf915c,_0x51691f=_0x3dbf5c(_0x5a261e(_0x5a5cd7,_0x31ac22(0x1bc)));if(!matches(_0x51691f,_0x31ac22(0x18d)))throw Error(_0x31ac22(0x1ce));const _0x3f6c92=integer(_0x50bb83[_0x31ac22(0x1af)]['vm'],_0x31ac22(0x1f8));if(!_0x3f6c92)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x3da8d4=children(one(children(_0x51691f,_0x31ac22(0x186)),'valueMetadata'),'bk')[_0x3f6c92-0x1];if(!_0x3da8d4)throw Error(_0x31ac22(0x187));const _0x27306e=one(children(_0x3da8d4,'rc'),_0x31ac22(0x1f3)),_0x985884=integer(_0x27306e['attrs']['t'],'metadata\x20type\x20index'),_0x1ec5f8=children(one(children(_0x51691f,_0x31ac22(0x203)),_0x31ac22(0x17d)),'metadataType')[_0x985884-0x1];if(!_0x985884||_0x1ec5f8?.['attrs'][_0x31ac22(0x1f1)]!=='XLRICHVALUE')throw Error(_0x31ac22(0x189));const _0x19fe74=one(children(_0x51691f,'futureMetadata')[_0x31ac22(0x19b)](_0xbf8e75=>_0xbf8e75[_0x31ac22(0x1af)][_0x31ac22(0x1f1)]==='XLRICHVALUE'),_0x31ac22(0x188)),_0x2b2173=children(_0x19fe74,'bk')[integer(_0x27306e[_0x31ac22(0x1af)]['v'],'future\x20metadata\x20index')];if(!_0x2b2173)throw Error('Missing\x20future\x20metadata\x20block.');const _0x52a096=chain(_0x2b2173,'extLst')[_0x31ac22(0x213)](_0x34ed4c=>children(_0x34ed4c,_0x31ac22(0x172),SHEET))[_0x31ac22(0x19b)](_0x183643=>_0x183643[_0x31ac22(0x1af)][_0x31ac22(0x175)]?.['toLowerCase']()===_0x31ac22(0x1d5)),_0x4b406b=integer(one(_0x52a096['flatMap'](_0x488768=>children(_0x488768,'rvb')),_0x31ac22(0x1b2))[_0x31ac22(0x1af)]['i'],_0x31ac22(0x1ed)),_0x23289c=_0x3dbf5c(_0x5a261e(_0x5a5cd7,'rdRichValue'));if(!matches(_0x23289c,_0x31ac22(0x1e5)))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x1f5968=children(_0x23289c,'rv')[_0x4b406b];if(!_0x1f5968)throw Error(_0x31ac22(0x18b));const _0x478ef6=_0x3dbf5c(_0x5a261e(_0x5a5cd7,_0x31ac22(0x1c2)));if(!matches(_0x478ef6,_0x31ac22(0x173)))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x58cfe4=children(_0x478ef6,'s')[integer(_0x1f5968['attrs']['s'],_0x31ac22(0x1bd))];if(!_0x58cfe4||_0x58cfe4[_0x31ac22(0x1af)]['t']!=='_localImage')throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x49098a=children(_0x58cfe4,'k'),_0x243efb=_0x49098a[_0x31ac22(0x214)]((_0x1ab50d,_0x49117f)=>_0x1ab50d[_0x31ac22(0x1af)]['n']===_0x31ac22(0x211)?_0x49117f:-0x1)['filter'](_0x29d8b4=>_0x29d8b4>=0x0);if(_0x243efb[_0x31ac22(0x1b4)]!==0x1)throw Error(_0x31ac22(0x190));const _0x4908b9=children(_0x1f5968,'v',RICH)[_0x243efb[0x0]];if(!_0x4908b9)throw Error('Missing\x20local\x20image\x20identifier\x20value.');const _0x3509f5=_0x5a261e(_0x5a5cd7,_0x31ac22(0x1c7)),_0x59d17f=_0x3dbf5c(_0x3509f5);if(!matches(_0x59d17f,_0x31ac22(0x1e1)))throw Error(_0x31ac22(0x1d2));const _0x1b1857=children(_0x59d17f,_0x31ac22(0x1fb))[integer(_0x4908b9[_0x31ac22(0x1aa)],_0x31ac22(0x207))];if(!_0x1b1857)throw Error(_0x31ac22(0x19c));return _0x36952f(_0x3509f5,_0x1b1857[_0x31ac22(0x1af)][_0x31ac22(0x1f6)],_0x31ac22(0x206));};let _0x4d6b08;const _0xc32206=_0x527d71=>{const _0x33d102=_0xdf915c;if(!_0x4d6b08){_0x4d6b08=new Map();const _0x392e8d=_0x4cc1b0(_0x5a5cd7)[_0x33d102(0x19b)](_0x3e12fa=>[...relationshipTypes(_0x33d102(0x1b1)),...relationshipTypes(_0x33d102(0x1f0))]['includes'](_0x3e12fa[_0x33d102(0x1ae)]));if(!_0x392e8d[_0x33d102(0x1b4)]&&_0x3682e4['has']('xl/cellimages.xml'))_0x392e8d[_0x33d102(0x1f4)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x392e8d[_0x33d102(0x1b4)]!==0x1)throw Error(_0x33d102(0x19f));const _0x2f8d14=_0x15c054(_0x5a5cd7,_0x392e8d[0x0]),_0x6e45e7=_0x3dbf5c(_0x2f8d14);if(!matches(_0x6e45e7,_0x33d102(0x1f0)))throw Error(_0x33d102(0x1c1));for(const _0x38626c of children(_0x6e45e7,'cellImage')){const _0x317b10=one(chain(_0x38626c,_0x33d102(0x1b0),'nvPicPr',_0x33d102(0x1cd)),'WPS\x20image\x20name')[_0x33d102(0x1af)][_0x33d102(0x1f1)];if(!_0x317b10||_0x4d6b08['has'](_0x317b10))throw Error(_0x33d102(0x1ff));const _0x2bd50d=one(chain(_0x38626c,_0x33d102(0x1b0),_0x33d102(0x177),_0x33d102(0x1a1)),_0x33d102(0x19e));if(_0x2bd50d[_0x33d102(0x1af)]['r:link'])throw Error(_0x33d102(0x1d0));_0x4d6b08[_0x33d102(0x1ea)](_0x317b10,_0x36952f(_0x2f8d14,_0x2bd50d[_0x33d102(0x1af)][_0x33d102(0x1ca)],'image'));}}const _0x35c500=_0x4d6b08[_0x33d102(0x1b9)](_0x527d71);if(!_0x35c500)throw Error(_0x33d102(0x1a6)+_0x527d71+'.');return _0x35c500;},_0x447c63=new Set();for(const _0x15aabf of _0x29d58d[_0xdf915c(0x213)](_0x2a57cc=>children(_0x2a57cc,'c'))){const _0x26dfa5=/^([A-Z]+)([1-9]\d*)$/[_0xdf915c(0x1a3)](_0x15aabf[_0xdf915c(0x1af)]['r']??'');if(!_0x26dfa5)continue;let _0x5d4be8=0x0;for(const _0x102203 of _0x26dfa5[0x1])_0x5d4be8=_0x5d4be8*0x1a+_0x102203[_0xdf915c(0x1a9)](0x0)-0x40;if(!_0x2a5205[_0xdf915c(0x1e4)](_0x5d4be8))continue;const _0x1aeb34=integer(_0x26dfa5[0x2],_0xdf915c(0x20f));if(_0x447c63[_0xdf915c(0x1e4)](_0x15aabf[_0xdf915c(0x1af)]['r']))throw Error(_0xdf915c(0x16e));_0x447c63[_0xdf915c(0x205)](_0x15aabf[_0xdf915c(0x1af)]['r']);const _0x4b6a6b=children(_0x15aabf,'f');if(!_0x15aabf[_0xdf915c(0x1af)]['vm']&&!_0x4b6a6b[_0xdf915c(0x1b4)])continue;try{if(_0x1aeb34<0x1||_0x5d4be8>0x100)throw Error(_0xdf915c(0x18f));let _0x16e198;if(_0x15aabf[_0xdf915c(0x1af)]['vm']){if(_0x4b6a6b[_0xdf915c(0x1b4)])throw Error(_0xdf915c(0x1c9));if(_0x15aabf['attrs']['t']!=='e'||children(_0x15aabf,'v')[_0xdf915c(0x1b4)]!==0x1||children(_0x15aabf,'v')[0x0]['text']!==_0xdf915c(0x18c))throw Error(_0xdf915c(0x1f5));_0x16e198=_0x4ef1f2(_0x15aabf);}else{const _0x3e2d6f=one(_0x4b6a6b,'image\x20formula');if(_0x3e2d6f[_0xdf915c(0x1af)]['t']===_0xdf915c(0x1c4)||_0x3e2d6f[_0xdf915c(0x1af)]['si'])throw Error(_0xdf915c(0x208));const _0x37b549=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x3e2d6f[_0xdf915c(0x1aa)]);if(!_0x37b549)throw Error(_0xdf915c(0x176));_0x16e198=_0xc32206(_0x37b549[0x1]['replace'](/""/g,'\x22'));}_0x1718e6({'row':_0x1aeb34,'col':_0x5d4be8,'media':[_0x16e198],'nativeCell':!![]});}catch(_0x5b068d){_0x1718e6({'row':_0x1aeb34,'col':_0x5d4be8,'media':[],'nativeCell':!![],'error':_0x5b068d[_0xdf915c(0x1e0)]});}}return _0x5e7541;}function a146_0xbf72(){const _0x375164=['xl/workbook.xml','anchor\x20end\x20offset','hidden\x20image\x20row','r:link','message','richValueRels','image\x20row\x20height\x20coordinate','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','has','rvData','Image\x20XML\x20event\x20budget\x20exceeded.','Unsupported\x20relationship\x20namespace\x20in\x20','nvPicPr','18345WAifOr','set','http://purl.oclc.org/ooxml/officeDocument/relationships','2966904QUeFOn','rich\x20value\x20index','image\x20height','sheet','cellImages','name','Relationship','rich\x20metadata\x20record','push','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','r:id','workbook','value\x20metadata\x20index','\x20relationship\x20in\x20','904029YbwbVx','rel','External\x20image\x20links\x20are\x20not\x20supported.','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','from','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','extLst','Relationships','Invalid\x20relationship\x20target:\x20','metadataTypes','xl/','add','image','rich\x20image\x20relationship\x20index','Shared\x20image\x20formulas\x20are\x20not\x20supported.','816888AAyKbP','Unsupported\x20drawing\x20namespace.','http://schemas.openxmlformats.org/package/2006/relationships','close','http://schemas.microsoft.com/office/2017/06/relationships/','432726raGpwD','image\x20cell\x20row','value','_rvRel:LocalImageIdentifier','col','flatMap','map','Duplicate\x20mapped\x20image\x20cell.','126660xCTCqV','sheetFormatPr','slice','ext','rvStructures','closetag','uri','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','blipFill','toString','http://purl.oclc.org/ooxml/spreadsheetml/main','join','isFinite','.rels','metadata\x20types','wsDr','test','Missing\x20or\x20ambiguous\x20','rdRichValue','anchor\x20row','anchor\x20start\x20offset','metadataType','Unsupported\x20worksheet\x20namespace.','valueMetadata','Missing\x20value\x20metadata\x20block.','rich\x20future\x20metadata','Unsupported\x20mapped\x20cell\x20metadata\x20type.','Invalid\x20','Missing\x20rich\x20value.','#VALUE!','metadata','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','http://www.wps.cn/officeDocument/2017/relationships/','XML\x20DTD/entities\x20are\x20not\x20supported.','21VShacR','reduce','values','../','drawing','children','anchor\x20column','worksheet','filter','Missing\x20rich\x20image\x20relationship.','hidden','WPS\x20image\x20blip','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','634435DKrUSv','blip','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','exec','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','defaultRowHeight','Missing\x20WPS\x20image\x20ID:\x20','sheets','includes','charCodeAt','text','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','sheetData','type','attrs','pic','cellImage','rich\x20value\x20binding','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','length','local','posix','twoCellAnchor','dirname','get','opentag','image\x20extent','sheetMetadata','rich\x20structure\x20index','absoluteAnchor','Ambiguous\x20XML\x20attribute.','round','Unsupported\x20WPS\x20cell\x20image\x20namespace.','rdRichValueStructure','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','shared','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','http://schemas.openxmlformats.org/officeDocument/2006/relationships','richValueRel','startsWith','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','r:embed','oneCellAnchor','row','cNvPr','Unsupported\x20metadata\x20namespace.','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20workbook\x20namespace.','Unsupported\x20rich\x20image\x20relation\x20namespace.','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','anchor\x20start','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','Unsupported\x20drawing\x20image.','Relationship\x20target\x20escapes\x20workbook:\x20','write','some','rowOff','basename'];a146_0xbf72=function(){return _0x375164;};return a146_0xbf72();}
|
|
1
|
+
function a146_0x2d3e(_0x49708d,_0x3ff23d){_0x49708d=_0x49708d-0x1f2;const _0x434867=a146_0x4348();let _0x2d3eff=_0x434867[_0x49708d];return _0x2d3eff;}const a146_0x5beee1=a146_0x2d3e;function a146_0x4348(){const _0x4cb86e=['Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','xl/','anchor\x20start\x20offset','exec','472uYOWUt','Missing\x20future\x20metadata\x20block.','sheets','attrs','rvb','Missing\x20WPS\x20image\x20ID:\x20','push','future\x20metadata\x20index','anchor\x20column','drawing','30891xDYMMA','47455FEqkXc','sheetFormatPr','Unsupported\x20WPS\x20cell\x20image\x20namespace.','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','add','metadataTypes','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','.rels','anchor\x20row','utf8','normalize','Image\x20XML\x20event\x20budget\x20exceeded.','flatMap','image\x20cell\x20row','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','MAX_SAFE_INTEGER','charCodeAt','_localImage','16819253pQmtUe','rdRichValueStructure','../','rich\x20metadata\x20record','twoCellAnchor','uri','dirname','10104228qtElam','attributes','Relationship','oneCellAnchor','wsDr','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','col','Relationships','nvPicPr','Unsupported\x20drawing\x20namespace.','cNvPr','http://schemas.openxmlformats.org/drawingml/2006/main','cellImages','opentag','length','rvStructures','value\x20metadata\x20index','Unsupported\x20rich\x20value\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','Missing\x20XLSX\x20part:\x20','External\x20image\x20links\x20are\x20not\x20supported.','rich\x20value\x20binding','reduce','image','workbook','name','anchor\x20start','fromEntries','Missing\x20local\x20image\x20identifier\x20value.','http://www.wps.cn/officeDocument/2017/etCustomData','local','join','set','Invalid\x20relationship\x20target:\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Internal','Unsupported\x20rich\x20image\x20relation\x20namespace.','from','write','rowOff','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','12444abNePu','sheetData','Unsupported\x20workbook\x20namespace.','richValueRel','filter','ext','isSafeInteger','xl/workbook.xml','rel','valueMetadata','Duplicate\x20mapped\x20image\x20cell.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','toLowerCase','get','#VALUE!','rvData','slice','WPS\x20image\x20name','metadata\x20types','anchor\x20end\x20offset','text','Image\x20XML\x20node\x20budget\x20exceeded.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','pic','posix','Invalid\x20','metadataType','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','close','children','780vjidyj','http://purl.oclc.org/ooxml/drawingml/main','10554560xojJqw','r:link','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Unsupported\x20drawing\x20image.','r:id','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','has','value','_rels','cellImage','blipFill','1146TTkVqP','test','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','isFinite','error','image\x20extent','absoluteAnchor','replace','defaultRowHeight','Shared\x20image\x20formulas\x20are\x20not\x20supported.','message','true','type','startsWith','1559UCZOLQ','/xl/cellimages.xml','http://purl.oclc.org/ooxml/spreadsheetml/main','rich\x20image\x20relationship\x20index','Ambiguous\x20XML\x20attribute.','metadata','row','doctype','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','http://www.wps.cn/officeDocument/2017/relationships/','Unsupported\x20metadata\x20namespace.','582vUOjVu','includes','Missing\x20value\x20metadata\x20block.','rich\x20value\x20index','extLst','Unsupported\x20rich\x20structure\x20namespace.','sheetMetadata','image\x20height','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','closetag','r:embed','hidden','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','XLRICHVALUE','worksheet','rdRichValue','shared','metadata\x20type\x20index','richValueRels','hidden\x20image\x20row','WPS\x20image\x20blip','Unsupported\x20relationship\x20namespace\x20in\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','sheet','map','blip','Missing\x20or\x20ambiguous\x20','http://schemas.microsoft.com/office/2017/06/relationships/','xl/cellimages.xml'];a146_0x4348=function(){return _0x4cb86e;};return a146_0x4348();}(function(_0x21da5a,_0x4e860e){const _0x490cda=a146_0x2d3e,_0x367c3c=_0x21da5a();while(!![]){try{const _0x48b60f=-parseInt(_0x490cda(0x256))/0x1*(parseInt(_0x490cda(0x248))/0x2)+parseInt(_0x490cda(0x21c))/0x3*(parseInt(_0x490cda(0x23a))/0x4)+parseInt(_0x490cda(0x28d))/0x5*(-parseInt(_0x490cda(0x261))/0x6)+parseInt(_0x490cda(0x28c))/0x7*(parseInt(_0x490cda(0x282))/0x8)+-parseInt(_0x490cda(0x1f3))/0x9+parseInt(_0x490cda(0x23c))/0xa+parseInt(_0x490cda(0x29f))/0xb;if(_0x48b60f===_0x4e860e)break;else _0x367c3c['push'](_0x367c3c['shift']());}catch(_0x2cb9ae){_0x367c3c['push'](_0x367c3c['shift']());}}}(a146_0x4348,0xaf118));import a146_0x194dca from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x5beee1(0x227),a146_0x5beee1(0x258)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0x5beee1(0x1fe),a146_0x5beee1(0x23b)],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=[a146_0x5beee1(0x24a)],RICH_RELS=[a146_0x5beee1(0x26d)],WPS=[a146_0x5beee1(0x210)],DEFAULT_NS=Object[a146_0x5beee1(0x20e)]([...[a146_0x5beee1(0x20b),'sheets','sheet',a146_0x5beee1(0x26f),a146_0x5beee1(0x21d),a146_0x5beee1(0x25c),'c','f','v',a146_0x5beee1(0x28e),a146_0x5beee1(0x28b),'metadata',a146_0x5beee1(0x292),a146_0x5beee1(0x236),'futureMetadata',a146_0x5beee1(0x225),'bk','rc',a146_0x5beee1(0x265)][a146_0x5beee1(0x279)](_0x35528b=>[_0x35528b,SHEET]),...['wsDr',a146_0x5beee1(0x1f6),a146_0x5beee1(0x2a3),a146_0x5beee1(0x24e),'from','to',a146_0x5beee1(0x1f9),'colOff',a146_0x5beee1(0x21a),a146_0x5beee1(0x221),'pic',a146_0x5beee1(0x1fb),a146_0x5beee1(0x1fd),a146_0x5beee1(0x247)]['map'](_0x324d1b=>[_0x324d1b,DRAWING]),...[a146_0x5beee1(0x286),a146_0x5beee1(0x22b),'rv',a146_0x5beee1(0x202),'s','k']['map'](_0x18cd06=>[_0x18cd06,RICH]),[a146_0x5beee1(0x27a),DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],[a146_0x5beee1(0x1fa),PACKAGE],[a146_0x5beee1(0x1f5),PACKAGE],['cellImages',WPS],[a146_0x5beee1(0x246),WPS]]),matches=(_0x3c1f50,_0x5bcc01,_0x40a741=DEFAULT_NS[_0x5bcc01]??[])=>_0x3c1f50[a146_0x5beee1(0x20c)]===_0x5bcc01&&_0x40a741[a146_0x5beee1(0x262)](_0x3c1f50[a146_0x5beee1(0x2a4)]),children=(_0x7849b7,_0x29f481,_0x16daec=DEFAULT_NS[_0x29f481])=>_0x7849b7['children'][a146_0x5beee1(0x220)](_0x4e6982=>matches(_0x4e6982,_0x29f481,_0x16daec)),chain=(_0x3446c7,..._0x1f51bf)=>_0x1f51bf[a146_0x5beee1(0x209)]((_0x29718c,_0x66e1ce)=>_0x29718c[a146_0x5beee1(0x299)](_0x29b037=>children(_0x29b037,_0x66e1ce)),[_0x3446c7]),relationshipTypes=_0x1a120e=>{const _0x1b1f47=a146_0x5beee1;if([_0x1b1f47(0x270),_0x1b1f47(0x2a0)][_0x1b1f47(0x262)](_0x1a120e))return[_0x1b1f47(0x27c)+_0x1a120e];if(_0x1a120e===_0x1b1f47(0x21f))return[_0x1b1f47(0x25e)];if(_0x1a120e==='cellImage'||_0x1a120e===_0x1b1f47(0x1ff))return[_0x1b1f47(0x25f)+_0x1a120e];return OFFICE_RELS[_0x1b1f47(0x279)](_0x162326=>_0x162326+'/'+_0x1a120e);};function one(_0x3d0557,_0xd3c51f){const _0x4c32ac=a146_0x5beee1;if(_0x3d0557[_0x4c32ac(0x201)]!==0x1)throw Error(_0x4c32ac(0x27b)+_0xd3c51f+'.');return _0x3d0557[0x0];}function integer(_0xa8f973,_0x112096,_0x1bcfeb=0x186a0){const _0x283d46=a146_0x5beee1;if(!_0xa8f973||!/^\d+$/[_0x283d46(0x249)](_0xa8f973)||!Number[_0x283d46(0x222)](Number(_0xa8f973))||Number(_0xa8f973)>_0x1bcfeb)throw Error(_0x283d46(0x235)+_0x112096+'.');return Number(_0xa8f973);}export function resolveWorksheetImages(_0x304ef9,_0x510f3c,_0x20ba5f){const _0x21fc5b=a146_0x5beee1;let _0x59f6ad=0x0,_0x4ca3f1=0x0,_0x3f4cfa=0x0;const _0x25eb82=new Map(),_0x153024=_0x2f02ea=>{const _0x1da0d5=a146_0x2d3e;if(_0x25eb82[_0x1da0d5(0x243)](_0x2f02ea))return _0x25eb82[_0x1da0d5(0x229)](_0x2f02ea);const _0x3a618e=_0x304ef9[_0x1da0d5(0x229)](_0x2f02ea);if(!_0x3a618e)throw Error(_0x1da0d5(0x206)+_0x2f02ea+'.');const _0x1489c6={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x4b72c6=[_0x1489c6],_0x2cb542=new SaxesParser({'xmlns':!![]}),_0x27930e=()=>{const _0x8d46e4=_0x1da0d5;if(++_0x4ca3f1>0x1e8480)throw Error(_0x8d46e4(0x298));};_0x2cb542['on'](_0x1da0d5(0x25d),()=>{const _0x323dd8=_0x1da0d5;throw Error(_0x323dd8(0x277));}),_0x2cb542['on'](_0x1da0d5(0x200),_0x291444=>{const _0x417acf=_0x1da0d5;_0x27930e();if(++_0x59f6ad>0x7a120||_0x4b72c6[_0x417acf(0x201)]>0x40)throw Error(_0x417acf(0x231));const _0x507876={};for(const _0x1964c8 of Object['values'](_0x291444[_0x417acf(0x1f4)])){const _0x62beaa=OFFICE_RELS['includes'](_0x1964c8[_0x417acf(0x2a4)])?'r:'+_0x1964c8[_0x417acf(0x211)]:_0x1964c8[_0x417acf(0x2a4)]?'{'+_0x1964c8[_0x417acf(0x2a4)]+'}'+_0x1964c8[_0x417acf(0x211)]:_0x1964c8[_0x417acf(0x211)];if(_0x62beaa in _0x507876)throw Error(_0x417acf(0x25a));_0x507876[_0x62beaa]=_0x1964c8[_0x417acf(0x244)];}const _0x4db051={'name':_0x291444[_0x417acf(0x211)],'uri':_0x291444[_0x417acf(0x2a4)],'attrs':_0x507876,'children':[],'text':''};_0x4b72c6['at'](-0x1)[_0x417acf(0x239)][_0x417acf(0x288)](_0x4db051),_0x4b72c6[_0x417acf(0x288)](_0x4db051);}),_0x2cb542['on'](_0x1da0d5(0x230),_0x10b7f8=>{const _0x1d75fa=_0x1da0d5;_0x27930e();const _0x414194=_0x4b72c6['at'](-0x1);_0x414194[_0x1d75fa(0x230)]+=_0x10b7f8;if(_0x414194[_0x1d75fa(0x230)]['length']>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x2cb542['on'](_0x1da0d5(0x26a),()=>{_0x27930e(),_0x4b72c6['pop']();}),_0x2cb542['on'](_0x1da0d5(0x24c),_0x55f3b2=>{throw _0x55f3b2;}),_0x2cb542[_0x1da0d5(0x219)](_0x3a618e['toString'](_0x1da0d5(0x296)))[_0x1da0d5(0x238)]();const _0x121f6b=one(_0x1489c6['children'],_0x2f02ea);return _0x25eb82[_0x1da0d5(0x213)](_0x2f02ea,_0x121f6b),_0x121f6b;},_0x5e1ceb=new Map(),_0x3ce921=_0x8d166e=>{const _0x2a9fa3=a146_0x2d3e;if(_0x5e1ceb[_0x2a9fa3(0x243)](_0x8d166e))return _0x5e1ceb[_0x2a9fa3(0x229)](_0x8d166e);const _0x2541ba=a146_0x194dca[_0x2a9fa3(0x234)][_0x2a9fa3(0x212)](a146_0x194dca[_0x2a9fa3(0x234)][_0x2a9fa3(0x1f2)](_0x8d166e),_0x2a9fa3(0x245),a146_0x194dca[_0x2a9fa3(0x234)]['basename'](_0x8d166e)+_0x2a9fa3(0x294));if(!_0x304ef9[_0x2a9fa3(0x243)](_0x2541ba))return[];const _0xa8bf92=new Set(),_0x452d63=_0x153024(_0x2541ba);if(!matches(_0x452d63,_0x2a9fa3(0x1fa)))throw Error(_0x2a9fa3(0x276)+_0x2541ba+'.');const _0x55a33e=children(_0x452d63,'Relationship')[_0x2a9fa3(0x279)](_0x2ec007=>{const _0x5206a0=_0x2a9fa3,{Id:_0xfe92e9,Type:_0x16a871,Target:_0x33cafd,TargetMode:_0x1e2889}=_0x2ec007['attrs'];if(!_0xfe92e9||_0xa8bf92['has'](_0xfe92e9)||!_0x16a871)throw Error(_0x5206a0(0x232)+_0x2541ba+'.');return _0xa8bf92[_0x5206a0(0x291)](_0xfe92e9),{'id':_0xfe92e9,'type':_0x16a871,'target':_0x33cafd??'','mode':_0x1e2889};});return _0x5e1ceb[_0x2a9fa3(0x213)](_0x8d166e,_0x55a33e),_0x55a33e;},_0x141a09=(_0x254d0a,_0x3516af)=>{const _0x3b26a0=a146_0x2d3e,{target:_0x54b594,mode:_0x50d44b}=_0x3516af;if(_0x50d44b&&_0x50d44b!==_0x3b26a0(0x216))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x254d0a+'.');if(!_0x54b594||_0x54b594[_0x3b26a0(0x262)]('\x5c')||/[?#%\x00-\x20]/[_0x3b26a0(0x249)](_0x54b594)||/^[a-z][a-z0-9+.-]*:/i[_0x3b26a0(0x249)](_0x54b594)||_0x54b594['startsWith']('//'))throw Error(_0x3b26a0(0x214)+_0x254d0a+'.');const _0x558fc8=_0x54b594[_0x3b26a0(0x255)]('/')?_0x54b594[_0x3b26a0(0x22c)](0x1):a146_0x194dca['posix'][_0x3b26a0(0x297)](a146_0x194dca[_0x3b26a0(0x234)][_0x3b26a0(0x212)](a146_0x194dca[_0x3b26a0(0x234)][_0x3b26a0(0x1f2)](_0x254d0a),_0x54b594));if(_0x558fc8['startsWith'](_0x3b26a0(0x2a1))||_0x558fc8==='..'||!_0x558fc8[_0x3b26a0(0x255)](_0x3b26a0(0x27f)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x254d0a+'.');return _0x558fc8;},_0x18fdb8=(_0xca5f22,_0x35efdd,_0x5c1820)=>{const _0x3e8c93=a146_0x2d3e,_0x55e514=_0x3ce921(_0xca5f22)['filter'](_0x171320=>_0x171320['id']===_0x35efdd&&relationshipTypes(_0x5c1820)[_0x3e8c93(0x262)](_0x171320[_0x3e8c93(0x254)]));if(_0x55e514['length']!==0x1)throw Error(_0x3e8c93(0x27b)+_0x5c1820+'\x20relationship\x20in\x20'+_0xca5f22+'.');return _0x141a09(_0xca5f22,_0x55e514[0x0]);},_0x268e66=(_0x284647,_0x2aba94)=>{const _0x48cbf5=a146_0x2d3e,_0x3e38c6=_0x3ce921(_0x284647)['filter'](_0x50d84b=>relationshipTypes(_0x2aba94)[_0x48cbf5(0x262)](_0x50d84b[_0x48cbf5(0x254)]));if(_0x3e38c6[_0x48cbf5(0x201)]!==0x1)throw Error(_0x48cbf5(0x27b)+_0x2aba94+'\x20relationship\x20in\x20'+_0x284647+'.');return _0x141a09(_0x284647,_0x3e38c6[0x0]);},_0x5bbf08=_0x21fc5b(0x223),_0x34deb2=_0x153024(_0x5bbf08);if(!matches(_0x34deb2,_0x21fc5b(0x20b)))throw Error(_0x21fc5b(0x21e));const _0x45159a=one(chain(_0x34deb2,_0x21fc5b(0x284),_0x21fc5b(0x278))[_0x21fc5b(0x220)](_0x4d80b8=>_0x4d80b8[_0x21fc5b(0x285)][_0x21fc5b(0x20c)]===_0x510f3c),_0x21fc5b(0x26f)),_0x45884d=_0x18fdb8(_0x5bbf08,_0x45159a[_0x21fc5b(0x285)]['r:id'],_0x21fc5b(0x26f)),_0x261eba=_0x153024(_0x45884d);if(!matches(_0x261eba,'worksheet'))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x2147c6=chain(_0x261eba,'sheetData','row'),_0x53e627=new Map(),_0x830582=new Set(_0x2147c6[_0x21fc5b(0x220)](_0x126328=>_0x126328[_0x21fc5b(0x285)][_0x21fc5b(0x26c)]==='1'||_0x126328[_0x21fc5b(0x285)][_0x21fc5b(0x26c)]===_0x21fc5b(0x253))[_0x21fc5b(0x279)](_0x1dda63=>integer(_0x1dda63[_0x21fc5b(0x285)]['r'],_0x21fc5b(0x274)))),_0x2127a6=_0x299f54=>{const _0x52ee5f=_0x21fc5b,_0x365f59=_0x299f54===undefined?0xf:Number(_0x299f54);if(!Number[_0x52ee5f(0x24b)](_0x365f59)||_0x365f59<=0x0||_0x365f59>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math['round'](_0x365f59*0x319c);},_0x105c11=_0x2127a6(children(_0x261eba,'sheetFormatPr')[0x0]?.[_0x21fc5b(0x285)][_0x21fc5b(0x250)]);for(const _0x22966a of _0x2147c6)if(_0x22966a[_0x21fc5b(0x285)]['ht']!==undefined)_0x53e627['set'](integer(_0x22966a[_0x21fc5b(0x285)]['r'],'image\x20row\x20height\x20coordinate'),_0x2127a6(_0x22966a[_0x21fc5b(0x285)]['ht']));const _0x536dc9=[],_0x3b798a=_0x318330=>{const _0x1ea014=_0x21fc5b;if(!_0x20ba5f['has'](_0x318330[_0x1ea014(0x1f9)]))return;if(++_0x3f4cfa>0x2710)throw Error(_0x1ea014(0x23e));_0x536dc9[_0x1ea014(0x288)](_0x830582[_0x1ea014(0x243)](_0x318330['row'])?{..._0x318330,'hiddenRow':!![]}:_0x318330);},_0x5856b7=_0x37dc02=>({'row':integer(one(children(_0x37dc02,_0x21fc5b(0x25c),DRAWING),'anchor\x20row')[_0x21fc5b(0x230)],_0x21fc5b(0x295),0x1869f)+0x1,'col':integer(one(children(_0x37dc02,_0x21fc5b(0x1f9)),_0x21fc5b(0x28a))[_0x21fc5b(0x230)],_0x21fc5b(0x28a),0xff)+0x1});for(const _0x48b406 of children(_0x261eba,_0x21fc5b(0x28b))){const _0x1f2098=_0x18fdb8(_0x45884d,_0x48b406[_0x21fc5b(0x285)][_0x21fc5b(0x241)],_0x21fc5b(0x28b)),_0x2fb6d1=_0x153024(_0x1f2098);if(!matches(_0x2fb6d1,_0x21fc5b(0x1f7)))throw Error(_0x21fc5b(0x1fc));for(const _0x24a82e of _0x2fb6d1[_0x21fc5b(0x239)]){if(!['oneCellAnchor','twoCellAnchor','absoluteAnchor']['some'](_0xca69b0=>matches(_0x24a82e,_0xca69b0)))continue;if(_0x24a82e[_0x21fc5b(0x20c)]===_0x21fc5b(0x24e))throw Error(_0x21fc5b(0x29b)+_0x510f3c+'.');const _0x34f0af=_0x5856b7(one(children(_0x24a82e,_0x21fc5b(0x218)),_0x21fc5b(0x20d)));if(!_0x20ba5f[_0x21fc5b(0x243)](_0x34f0af[_0x21fc5b(0x1f9)]))continue;let _0x32d539;const _0x8cd28a=one(children(_0x24a82e,_0x21fc5b(0x218)),_0x21fc5b(0x20d)),_0x13a79e=integer(one(children(_0x8cd28a,_0x21fc5b(0x21a)),_0x21fc5b(0x280))[_0x21fc5b(0x230)],_0x21fc5b(0x280),Number[_0x21fc5b(0x29c)]),_0x10516c=_0x53e627[_0x21fc5b(0x229)](_0x34f0af['row'])??_0x105c11;if(_0x13a79e>=_0x10516c)throw Error(_0x21fc5b(0x237)+_0x34f0af[_0x21fc5b(0x25c)]+'.');if(_0x24a82e['name']===_0x21fc5b(0x1f6)){const _0x1673ab=one(children(_0x24a82e,_0x21fc5b(0x221)),_0x21fc5b(0x24d)),_0x4a3d28=integer(_0x1673ab[_0x21fc5b(0x285)]['cy'],_0x21fc5b(0x268),Number[_0x21fc5b(0x29c)]);if(!_0x4a3d28||_0x13a79e+_0x4a3d28>_0x10516c)_0x32d539='Image\x20anchor\x20spans\x20multiple\x20business\x20rows.';}if(_0x24a82e['name']===_0x21fc5b(0x2a3)){const _0x4f7ce9=one(children(_0x24a82e,'to'),'anchor\x20end'),_0x56e581=_0x5856b7(_0x4f7ce9),_0xd666a3=integer(one(children(_0x4f7ce9,'rowOff'),_0x21fc5b(0x22f))[_0x21fc5b(0x230)],_0x21fc5b(0x22f),Number[_0x21fc5b(0x29c)]),_0x871d64=_0x53e627['get'](_0x56e581[_0x21fc5b(0x25c)])??_0x105c11;if(_0xd666a3>_0x871d64||_0x56e581['row']===_0x34f0af[_0x21fc5b(0x25c)]&&_0xd666a3<=_0x13a79e)_0x32d539=_0x21fc5b(0x1f8);if(_0x56e581[_0x21fc5b(0x25c)]<_0x34f0af['row']||_0x56e581['row']>_0x34f0af['row']+0x1||_0x56e581[_0x21fc5b(0x25c)]===_0x34f0af[_0x21fc5b(0x25c)]+0x1&&_0xd666a3!==0x0)_0x32d539=_0x21fc5b(0x293);}const _0x1680b4=chain(_0x24a82e,'pic','blipFill',_0x21fc5b(0x27a));for(const _0x8f0411 of _0x1680b4){if(_0x8f0411[_0x21fc5b(0x285)]['r:link'])throw Error(_0x21fc5b(0x207));_0x3b798a({..._0x34f0af,'media':[_0x18fdb8(_0x1f2098,_0x8f0411[_0x21fc5b(0x285)]['r:embed'],_0x21fc5b(0x20a))],..._0x32d539?{'error':_0x32d539}:{}});}if(!_0x1680b4[_0x21fc5b(0x201)])_0x3b798a({..._0x34f0af,'media':[],'error':_0x21fc5b(0x240)});}}const _0x3409ef=_0x4aa76b=>{const _0x53fc15=_0x21fc5b,_0x5c9958=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x267)));if(!matches(_0x5c9958,_0x53fc15(0x25b)))throw Error(_0x53fc15(0x260));const _0x1cad6c=integer(_0x4aa76b[_0x53fc15(0x285)]['vm'],_0x53fc15(0x203));if(!_0x1cad6c)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x210a74=children(one(children(_0x5c9958,_0x53fc15(0x225)),_0x53fc15(0x225)),'bk')[_0x1cad6c-0x1];if(!_0x210a74)throw Error(_0x53fc15(0x263));const _0x486083=one(children(_0x210a74,'rc'),_0x53fc15(0x2a2)),_0x11afba=integer(_0x486083[_0x53fc15(0x285)]['t'],_0x53fc15(0x272)),_0xfcfa83=children(one(children(_0x5c9958,_0x53fc15(0x292)),_0x53fc15(0x22e)),_0x53fc15(0x236))[_0x11afba-0x1];if(!_0x11afba||_0xfcfa83?.[_0x53fc15(0x285)][_0x53fc15(0x20c)]!=='XLRICHVALUE')throw Error('Unsupported\x20mapped\x20cell\x20metadata\x20type.');const _0x5b34e6=one(children(_0x5c9958,'futureMetadata')[_0x53fc15(0x220)](_0x105b68=>_0x105b68[_0x53fc15(0x285)][_0x53fc15(0x20c)]===_0x53fc15(0x26e)),'rich\x20future\x20metadata'),_0x1ef66d=children(_0x5b34e6,'bk')[integer(_0x486083[_0x53fc15(0x285)]['v'],_0x53fc15(0x289))];if(!_0x1ef66d)throw Error(_0x53fc15(0x283));const _0xb8ff8e=chain(_0x1ef66d,'extLst')[_0x53fc15(0x299)](_0x309461=>children(_0x309461,_0x53fc15(0x221),SHEET))[_0x53fc15(0x220)](_0x3799e2=>_0x3799e2[_0x53fc15(0x285)]['uri']?.[_0x53fc15(0x228)]()===_0x53fc15(0x21b)),_0x36743b=integer(one(_0xb8ff8e['flatMap'](_0x2127c6=>children(_0x2127c6,_0x53fc15(0x286))),_0x53fc15(0x208))[_0x53fc15(0x285)]['i'],_0x53fc15(0x264)),_0x3a6773=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x270)));if(!matches(_0x3a6773,'rvData'))throw Error(_0x53fc15(0x204));const _0x447bf2=children(_0x3a6773,'rv')[_0x36743b];if(!_0x447bf2)throw Error('Missing\x20rich\x20value.');const _0x56459c=_0x153024(_0x268e66(_0x5bbf08,_0x53fc15(0x2a0)));if(!matches(_0x56459c,_0x53fc15(0x202)))throw Error(_0x53fc15(0x266));const _0x55ca8b=children(_0x56459c,'s')[integer(_0x447bf2['attrs']['s'],'rich\x20structure\x20index')];if(!_0x55ca8b||_0x55ca8b['attrs']['t']!==_0x53fc15(0x29e))throw Error(_0x53fc15(0x205));const _0x22cba3=children(_0x55ca8b,'k'),_0x3055ce=_0x22cba3[_0x53fc15(0x279)]((_0xbaea4b,_0x2a519d)=>_0xbaea4b[_0x53fc15(0x285)]['n']==='_rvRel:LocalImageIdentifier'?_0x2a519d:-0x1)[_0x53fc15(0x220)](_0xc8b222=>_0xc8b222>=0x0);if(_0x3055ce[_0x53fc15(0x201)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x39a1b7=children(_0x447bf2,'v',RICH)[_0x3055ce[0x0]];if(!_0x39a1b7)throw Error(_0x53fc15(0x20f));const _0x1bc2c9=_0x268e66(_0x5bbf08,_0x53fc15(0x21f)),_0x12c9fa=_0x153024(_0x1bc2c9);if(!matches(_0x12c9fa,_0x53fc15(0x273)))throw Error(_0x53fc15(0x217));const _0x5b5a56=children(_0x12c9fa,_0x53fc15(0x224))[integer(_0x39a1b7[_0x53fc15(0x230)],_0x53fc15(0x259))];if(!_0x5b5a56)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x18fdb8(_0x1bc2c9,_0x5b5a56[_0x53fc15(0x285)]['r:id'],_0x53fc15(0x20a));};let _0x4af8a9;const _0x3279af=_0x39daa9=>{const _0xd95db4=_0x21fc5b;if(!_0x4af8a9){_0x4af8a9=new Map();const _0x2a0f9c=_0x3ce921(_0x5bbf08)[_0xd95db4(0x220)](_0x49ed64=>[...relationshipTypes(_0xd95db4(0x246)),...relationshipTypes(_0xd95db4(0x1ff))]['includes'](_0x49ed64[_0xd95db4(0x254)]));if(!_0x2a0f9c['length']&&_0x304ef9[_0xd95db4(0x243)](_0xd95db4(0x27d)))_0x2a0f9c[_0xd95db4(0x288)]({'id':'','type':'','target':_0xd95db4(0x257)});if(_0x2a0f9c[_0xd95db4(0x201)]!==0x1)throw Error(_0xd95db4(0x242));const _0x15504e=_0x141a09(_0x5bbf08,_0x2a0f9c[0x0]),_0x4dad7e=_0x153024(_0x15504e);if(!matches(_0x4dad7e,_0xd95db4(0x1ff)))throw Error(_0xd95db4(0x28f));for(const _0x542164 of children(_0x4dad7e,_0xd95db4(0x246))){const _0x437c7d=one(chain(_0x542164,_0xd95db4(0x233),_0xd95db4(0x1fb),_0xd95db4(0x1fd)),_0xd95db4(0x22d))[_0xd95db4(0x285)]['name'];if(!_0x437c7d||_0x4af8a9[_0xd95db4(0x243)](_0x437c7d))throw Error(_0xd95db4(0x290));const _0x1bfc42=one(chain(_0x542164,'pic','blipFill',_0xd95db4(0x27a)),_0xd95db4(0x275));if(_0x1bfc42[_0xd95db4(0x285)][_0xd95db4(0x23d)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x4af8a9[_0xd95db4(0x213)](_0x437c7d,_0x18fdb8(_0x15504e,_0x1bfc42[_0xd95db4(0x285)][_0xd95db4(0x26b)],'image'));}}const _0x7abf5a=_0x4af8a9[_0xd95db4(0x229)](_0x39daa9);if(!_0x7abf5a)throw Error(_0xd95db4(0x287)+_0x39daa9+'.');return _0x7abf5a;},_0x48df9a=new Set();for(const _0x3281e4 of _0x2147c6[_0x21fc5b(0x299)](_0x53fd5c=>children(_0x53fd5c,'c'))){const _0x264419=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x3281e4[_0x21fc5b(0x285)]['r']??'');if(!_0x264419)continue;let _0x64bb5d=0x0;for(const _0x37ec7f of _0x264419[0x1])_0x64bb5d=_0x64bb5d*0x1a+_0x37ec7f[_0x21fc5b(0x29d)](0x0)-0x40;if(!_0x20ba5f[_0x21fc5b(0x243)](_0x64bb5d))continue;const _0x473338=integer(_0x264419[0x2],_0x21fc5b(0x29a));if(_0x48df9a[_0x21fc5b(0x243)](_0x3281e4[_0x21fc5b(0x285)]['r']))throw Error(_0x21fc5b(0x226));_0x48df9a[_0x21fc5b(0x291)](_0x3281e4[_0x21fc5b(0x285)]['r']);const _0x4230b8=children(_0x3281e4,'f');if(!_0x3281e4[_0x21fc5b(0x285)]['vm']&&!_0x4230b8[_0x21fc5b(0x201)])continue;try{if(_0x473338<0x1||_0x64bb5d>0x100)throw Error(_0x21fc5b(0x23f));let _0x38c1a6;if(_0x3281e4['attrs']['vm']){if(_0x4230b8[_0x21fc5b(0x201)])throw Error(_0x21fc5b(0x269));if(_0x3281e4[_0x21fc5b(0x285)]['t']!=='e'||children(_0x3281e4,'v')['length']!==0x1||children(_0x3281e4,'v')[0x0]['text']!==_0x21fc5b(0x22a))throw Error(_0x21fc5b(0x27e));_0x38c1a6=_0x3409ef(_0x3281e4);}else{const _0x38530b=one(_0x4230b8,'image\x20formula');if(_0x38530b[_0x21fc5b(0x285)]['t']===_0x21fc5b(0x271)||_0x38530b[_0x21fc5b(0x285)]['si'])throw Error(_0x21fc5b(0x251));const _0x48a37c=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x21fc5b(0x281)](_0x38530b[_0x21fc5b(0x230)]);if(!_0x48a37c)throw Error(_0x21fc5b(0x215));_0x38c1a6=_0x3279af(_0x48a37c[0x1][_0x21fc5b(0x24f)](/""/g,'\x22'));}_0x3b798a({'row':_0x473338,'col':_0x64bb5d,'media':[_0x38c1a6],'nativeCell':!![]});}catch(_0x350984){_0x3b798a({'row':_0x473338,'col':_0x64bb5d,'media':[],'nativeCell':!![],'error':_0x350984[_0x21fc5b(0x252)]});}}return _0x536dc9;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x137a1c,_0x17e9cb){const _0x3f6fa3=a147_0x11f2,_0x5ac28b=_0x137a1c();while(!![]){try{const _0x499a8e=parseInt(_0x3f6fa3(0x146))/0x1+-parseInt(_0x3f6fa3(0x158))/0x2*(parseInt(_0x3f6fa3(0x165))/0x3)+parseInt(_0x3f6fa3(0x114))/0x4*(parseInt(_0x3f6fa3(0x137))/0x5)+-parseInt(_0x3f6fa3(0x13c))/0x6*(-parseInt(_0x3f6fa3(0x136))/0x7)+-parseInt(_0x3f6fa3(0x14e))/0x8+parseInt(_0x3f6fa3(0x147))/0x9+-parseInt(_0x3f6fa3(0x156))/0xa;if(_0x499a8e===_0x17e9cb)break;else _0x5ac28b['push'](_0x5ac28b['shift']());}catch(_0xe45f19){_0x5ac28b['push'](_0x5ac28b['shift']());}}}(a147_0x1f13,0x8ea36));import{randomUUID,createHash}from'node:crypto';function a147_0x11f2(_0x14fe75,_0x17f84b){_0x14fe75=_0x14fe75-0x111;const _0x1f1307=a147_0x1f13();let _0x11f286=_0x1f1307[_0x14fe75];return _0x11f286;}import{lstat,readFile}from'node:fs/promises';function a147_0x1f13(){const _0x164d2b=['fileName','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','actorId','code','reduce','sha256','mappingHash','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','699411JWscVp','types','utf8','maxPixels','map','imageApi','Image\x20cell\x20references\x20missing\x20media.','schemaHash','upload','.lock','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','Invalid\x20image\x20manifest\x20limits.','strategy','name','resume','rows-started','every','runtimeDomain','inputPaths','get','status','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Completed\x20image\x20checkpoint\x20value\x20changed.','hashes','importId','errors','media','size','227140BSwRag','readback','hash','version','contract','uploadId','uploadFields','phase','type','schemaVersion','missing','contentHash','gif','jpg','Invalid\x20import\x20batch\x20size.','png','rows','maxFileBytes','Image\x20media\x20bytes\x20changed.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','some','succeeded','report','manifest','isInteger','all','.lock.recovery','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','includes','maxBatchSize','imageCells','parserVersion','length','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','7dNZDEC','25PQmElR','digest','dataset-import/','maxBatchBytes','test','4477254lWIqve','Invalid\x20image\x20readback\x20digest.','sheet','field','fileHash','Invalid\x20image\x20media\x20descriptor.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','fromEntries','imageImport','filePath','596648PWcTKl','9301689YLtrXm','datasetCode','completed','pending','isSafeInteger','update','imageFields','1561024dYgOHt','stringify','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','value','rowNumber','appCode','00000000-0000-4000-8000-000000000000','hex','16477920uVxajc','entries','2JiRkhn','isArray','bytes','batchSize','rows-preparing'];a147_0x1f13=function(){return _0x164d2b;};return a147_0x1f13();}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(_0x43e751,_0x17b5fd){const _0x91aab5=a147_0x11f2;if(!_0x17b5fd['media']?.['length'])return;const _0x22d8d2=_0x43e751[_0x91aab5(0x144)];if(!_0x22d8d2||_0x22d8d2['version']!==0x1||_0x22d8d2[_0x91aab5(0x119)]!==_0x91aab5(0x162)||_0x22d8d2[_0x91aab5(0x125)]!==0xa00000||_0x22d8d2[_0x91aab5(0x168)]!==0x2625a00||!Array[_0x91aab5(0x159)](_0x22d8d2[_0x91aab5(0x166)])||!['image/png','image/jpeg','image/gif'][_0x91aab5(0x175)](_0x50d50c=>_0x22d8d2['types']['includes'](_0x50d50c)))throw Error(_0x91aab5(0x150));}export function imageObjectValue(_0x133c73,_0x42e32,_0x24825b){const _0x5570a0=a147_0x11f2,_0x5b7ed9=createHash('sha256')[_0x5570a0(0x14c)](JSON[_0x5570a0(0x14f)]([_0x133c73[_0x5570a0(0x15f)],_0x133c73['appCode'],_0x133c73[_0x5570a0(0x148)],_0x42e32]))[_0x5570a0(0x138)](_0x5570a0(0x155)),_0x2e434b={'image/png':_0x5570a0(0x123),'image/jpeg':_0x5570a0(0x121),'image/gif':_0x5570a0(0x120)}[_0x24825b['type']];if(!_0x2e434b||!/^[0-9a-f]{64}$/[_0x5570a0(0x13b)](_0x24825b[_0x5570a0(0x11f)])||!Number[_0x5570a0(0x14b)](_0x24825b[_0x5570a0(0x113)])||_0x24825b[_0x5570a0(0x113)]<=0x0||_0x24825b['size']>0xa00000)throw Error(_0x5570a0(0x141));const _0x3192d4=_0x24825b[_0x5570a0(0x11f)]+'.'+_0x2e434b;return{'key':_0x5570a0(0x139)+_0x5b7ed9+'/'+_0x3192d4,'name':_0x3192d4,'type':_0x24825b[_0x5570a0(0x11c)],'size':_0x24825b[_0x5570a0(0x113)]};}export function bindImageManifest(_0x4d2338,_0x249eda,_0x1432ce){const _0x12cda5=a147_0x11f2,_0x13fca1=new Map(_0x4d2338[_0x12cda5(0x112)]?.[_0x12cda5(0x169)](_0xecf2b1=>[_0xecf2b1[_0x12cda5(0x11f)],_0xecf2b1])),_0x21e33c=new Map(_0x4d2338[_0x12cda5(0x132)]?.[_0x12cda5(0x169)](_0x59ccc8=>[_0x59ccc8[_0x12cda5(0x152)]+':'+_0x59ccc8[_0x12cda5(0x13f)],_0x59ccc8['hashes']]));return{..._0x4d2338,'rows':_0x4d2338[_0x12cda5(0x124)][_0x12cda5(0x169)](_0x133922=>({..._0x133922,'values':Object[_0x12cda5(0x143)](Object[_0x12cda5(0x157)](_0x133922['values'])[_0x12cda5(0x169)](([_0x39b50d,_0x578905])=>{const _0x32c9c4=_0x12cda5,_0x567aa6=_0x21e33c[_0x32c9c4(0x178)](_0x133922[_0x32c9c4(0x152)]+':'+_0x39b50d);return[_0x39b50d,_0x567aa6?_0x567aa6['map'](_0x11b8e2=>{const _0x4d5ab1=_0x32c9c4,_0x95eb3c=_0x13fca1['get'](_0x11b8e2);if(!_0x95eb3c)throw Error(_0x4d5ab1(0x16b));const _0x2298fd=imageObjectValue(_0x249eda,_0x1432ce,_0x95eb3c);return _0x4d2338[_0x4d5ab1(0x11a)]?.[_0x4d5ab1(0x130)](_0x39b50d)?{'fileName':_0x2298fd[_0x4d5ab1(0x172)],'filePath':_0x2298fd['key']}:_0x2298fd;}):_0x578905];}))}))};}async function exists(_0x3ee45e){const _0x100826=a147_0x11f2;try{return await lstat(_0x3ee45e),!![];}catch(_0x79ab2f){if(_0x79ab2f[_0x100826(0x160)]==='ENOENT')return![];throw _0x79ab2f;}}export async function runImageExcelImport(_0x517a1d){const _0x4f0f7c=a147_0x11f2;assertImportContract(_0x517a1d[_0x4f0f7c(0x118)],_0x517a1d[_0x4f0f7c(0x153)],_0x517a1d['datasetCode']),assertImageImportCapability(_0x517a1d[_0x4f0f7c(0x118)],_0x517a1d['manifest']);if(!Number[_0x4f0f7c(0x12c)](_0x517a1d['batchSize'])||_0x517a1d[_0x4f0f7c(0x15b)]<0x1||_0x517a1d[_0x4f0f7c(0x15b)]>_0x517a1d[_0x4f0f7c(0x118)][_0x4f0f7c(0x131)])throw Error(_0x4f0f7c(0x122));if(_0x517a1d['manifest'][_0x4f0f7c(0x111)][_0x4f0f7c(0x134)]||!_0x517a1d[_0x4f0f7c(0x12b)][_0x4f0f7c(0x124)][_0x4f0f7c(0x134)])throw Error(_0x4f0f7c(0x15e));const _0x480d62=await resolveImportOutputPath(_0x517a1d['checkpoint']),_0x2415c8=await resolveImportOutputPath(_0x517a1d[_0x4f0f7c(0x12a)]),_0x29f416=await resolveImportOutputPath(_0x480d62+'.rows.json'),_0x2a0591=await Promise[_0x4f0f7c(0x12d)]([_0x29f416,_0x29f416+_0x4f0f7c(0x16e),_0x29f416+_0x4f0f7c(0x12e),..._0x517a1d[_0x4f0f7c(0x177)]??[]][_0x4f0f7c(0x169)](resolveImportOutputPath));for(const _0x791efc of[_0x480d62,_0x2415c8,_0x480d62+_0x4f0f7c(0x16e),_0x480d62+_0x4f0f7c(0x12e)])await resolveImportOutputPath(_0x791efc);assertImportPaths(_0x480d62,_0x2415c8,_0x2a0591);const {contract:_0x32321b,manifest:_0x277ea2}=_0x517a1d,_0x5b6a50=_0x277ea2[_0x4f0f7c(0x112)]??[];if(new Set(_0x5b6a50[_0x4f0f7c(0x169)](_0x2ae73a=>_0x2ae73a[_0x4f0f7c(0x11f)]))[_0x4f0f7c(0x113)]!==_0x5b6a50['length']||_0x5b6a50['reduce']((_0x2fffe0,_0x37daad)=>_0x2fffe0+_0x37daad['size'],0x0)>0x32*0x400*0x400||(_0x277ea2[_0x4f0f7c(0x132)]??[])[_0x4f0f7c(0x161)]((_0x105670,_0x583d62)=>_0x105670+_0x583d62[_0x4f0f7c(0x17c)][_0x4f0f7c(0x134)],0x0)>0x2710)throw Error(_0x4f0f7c(0x170));for(const _0xf67a4d of _0x5b6a50)if(_0xf67a4d[_0x4f0f7c(0x113)]!==_0xf67a4d[_0x4f0f7c(0x15a)][_0x4f0f7c(0x134)]||createHash(_0x4f0f7c(0x162))[_0x4f0f7c(0x14c)](_0xf67a4d[_0x4f0f7c(0x15a)])[_0x4f0f7c(0x138)](_0x4f0f7c(0x155))!==_0xf67a4d[_0x4f0f7c(0x11f)])throw Error(_0x4f0f7c(0x126));previewImportBatchCount(bindImageManifest(_0x277ea2,_0x32321b,_0x4f0f7c(0x154)),_0x32321b,_0x517a1d[_0x4f0f7c(0x15b)]);const _0x8f828e={'appCode':_0x517a1d[_0x4f0f7c(0x153)],'datasetCode':_0x517a1d['datasetCode'],'runtimeDomain':_0x517a1d[_0x4f0f7c(0x176)],'actorId':_0x32321b[_0x4f0f7c(0x15f)],'fileHash':_0x277ea2[_0x4f0f7c(0x140)],'mappingHash':_0x277ea2[_0x4f0f7c(0x163)],'schemaHash':_0x277ea2[_0x4f0f7c(0x16c)],'remoteSchemaHash':_0x32321b['schemaFingerprint'],'strategy':_0x32321b[_0x4f0f7c(0x171)],'schemaVersion':_0x32321b[_0x4f0f7c(0x11d)],'batchSize':_0x517a1d[_0x4f0f7c(0x15b)],'maxBatchBytes':_0x32321b[_0x4f0f7c(0x13a)],'sheet':_0x277ea2[_0x4f0f7c(0x13e)],'parserVersion':_0x277ea2[_0x4f0f7c(0x133)],'imageFields':_0x277ea2[_0x4f0f7c(0x14d)],'cells':_0x277ea2[_0x4f0f7c(0x132)],..._0x277ea2[_0x4f0f7c(0x11a)]?.[_0x4f0f7c(0x134)]?{'uploadFields':_0x277ea2[_0x4f0f7c(0x11a)]}:{},'media':_0x5b6a50[_0x4f0f7c(0x169)](({contentHash:_0x404d1f,type:_0x3f8b79,size:_0x35d2a9})=>({'contentHash':_0x404d1f,'type':_0x3f8b79,'size':_0x35d2a9})),'rows':_0x277ea2[_0x4f0f7c(0x124)]},_0x517f55=await acquireLock(_0x480d62);try{let _0x237b2a;if(_0x517a1d[_0x4f0f7c(0x173)]){try{_0x237b2a=JSON['parse'](await readFile(_0x480d62,_0x4f0f7c(0x167)));}catch{throw Error(_0x4f0f7c(0x135));}if(_0x237b2a[_0x4f0f7c(0x117)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x237b2a[_0x4f0f7c(0x17d)])||canonical(_0x237b2a['binding'])!==canonical(_0x8f828e)||![_0x4f0f7c(0x112),_0x4f0f7c(0x15c),_0x4f0f7c(0x174),'completed']['includes'](_0x237b2a[_0x4f0f7c(0x11b)])||!Array[_0x4f0f7c(0x159)](_0x237b2a['media'])||_0x237b2a[_0x4f0f7c(0x112)][_0x4f0f7c(0x134)]!==_0x5b6a50[_0x4f0f7c(0x134)]||_0x237b2a[_0x4f0f7c(0x112)][_0x4f0f7c(0x128)]((_0x1ce302,_0x496e59)=>_0x1ce302[_0x4f0f7c(0x116)]!==_0x5b6a50[_0x496e59][_0x4f0f7c(0x11f)]||![_0x4f0f7c(0x14a),_0x4f0f7c(0x129)]['includes'](_0x1ce302[_0x4f0f7c(0x179)])))throw Error(_0x4f0f7c(0x16f));if(['rows-started',_0x4f0f7c(0x149)]['includes'](_0x237b2a[_0x4f0f7c(0x11b)])&&!await exists(_0x29f416))throw Error(_0x4f0f7c(0x12f));if(_0x237b2a['phase']==='media'&&await exists(_0x29f416))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x480d62)||await exists(_0x29f416))throw Error(_0x4f0f7c(0x17a));_0x237b2a={'version':0x3,'importId':randomUUID(),'binding':_0x8f828e,'phase':_0x4f0f7c(0x112),'media':_0x5b6a50[_0x4f0f7c(0x169)](_0x2db71b=>({'hash':_0x2db71b[_0x4f0f7c(0x11f)],'status':'pending'}))},await saveImportJson(_0x480d62,_0x237b2a);}const _0x733541=(_0x306a73,_0x4c5c61)=>{const _0x19ed07=_0x4f0f7c;if(!_0x306a73||_0x306a73[_0x19ed07(0x11f)]!==_0x4c5c61[_0x19ed07(0x11f)])throw Error(_0x19ed07(0x13d));if(_0x306a73[_0x19ed07(0x179)]===_0x19ed07(0x11e))return undefined;const _0x394b39=imageObjectValue(_0x32321b,_0x237b2a[_0x19ed07(0x17d)],_0x4c5c61);if(_0x306a73['status']!=='succeeded'||_0x306a73[_0x19ed07(0x145)]!==_0x394b39['key']||_0x306a73[_0x19ed07(0x15d)]!==_0x394b39[_0x19ed07(0x172)]||_0x306a73[_0x19ed07(0x11c)]!==_0x394b39[_0x19ed07(0x11c)]||_0x306a73[_0x19ed07(0x113)]!==_0x394b39['size'])throw Error(_0x19ed07(0x164));return _0x394b39;};for(let _0x4a2210=0x0;_0x4a2210<_0x5b6a50[_0x4f0f7c(0x134)];_0x4a2210++){const _0x57a865=_0x5b6a50[_0x4a2210],_0x37f8ed=_0x237b2a[_0x4f0f7c(0x112)][_0x4a2210],_0x42546f=imageObjectValue(_0x32321b,_0x237b2a[_0x4f0f7c(0x17d)],_0x57a865);if(_0x37f8ed[_0x4f0f7c(0x179)]===_0x4f0f7c(0x129)&&canonical(_0x37f8ed[_0x4f0f7c(0x151)])!==canonical(_0x42546f))throw Error(_0x4f0f7c(0x17b));let _0x553c75;if(_0x517a1d[_0x4f0f7c(0x173)]||_0x37f8ed[_0x4f0f7c(0x179)]==='succeeded')_0x553c75=_0x733541(await _0x517a1d[_0x4f0f7c(0x16a)]['readback'](_0x237b2a[_0x4f0f7c(0x17d)],_0x57a865),_0x57a865);if(!_0x553c75&&_0x37f8ed['status']===_0x4f0f7c(0x129))throw Error('Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.');if(!_0x553c75){try{_0x733541(await _0x517a1d['imageApi'][_0x4f0f7c(0x16d)](_0x237b2a[_0x4f0f7c(0x17d)],_0x57a865),_0x57a865);}catch(_0x314b6d){_0x553c75=_0x733541(await _0x517a1d[_0x4f0f7c(0x16a)][_0x4f0f7c(0x115)](_0x237b2a[_0x4f0f7c(0x17d)],_0x57a865),_0x57a865);if(!_0x553c75)throw Error(_0x4f0f7c(0x127));}if(!_0x553c75)_0x553c75=_0x733541(await _0x517a1d[_0x4f0f7c(0x16a)][_0x4f0f7c(0x115)](_0x237b2a['importId'],_0x57a865),_0x57a865);if(!_0x553c75)throw Error(_0x4f0f7c(0x142));}_0x37f8ed[_0x4f0f7c(0x179)]='succeeded',_0x37f8ed[_0x4f0f7c(0x151)]=_0x553c75,await saveImportJson(_0x480d62,_0x237b2a);}const _0x1e3467=bindImageManifest(_0x277ea2,_0x32321b,_0x237b2a['importId']),_0xbf44fa=_0x237b2a[_0x4f0f7c(0x11b)]===_0x4f0f7c(0x15c)?await exists(_0x29f416):_0x237b2a[_0x4f0f7c(0x11b)]!==_0x4f0f7c(0x112);_0x237b2a[_0x4f0f7c(0x11b)]==='media'&&(_0x237b2a[_0x4f0f7c(0x11b)]=_0x4f0f7c(0x15c),await saveImportJson(_0x480d62,_0x237b2a));const _0xf5c448={..._0x517a1d,'manifest':_0x1e3467,'checkpoint':_0x29f416,'report':_0x2415c8,'resume':_0xbf44fa,'onCheckpointReady':async()=>{const _0xd85ae6=_0x4f0f7c;_0x237b2a[_0xd85ae6(0x11b)]=_0xd85ae6(0x174),await saveImportJson(_0x480d62,_0x237b2a);}},_0x573993=_0x32321b[_0x4f0f7c(0x11d)]===0x2?await runAutoIdExcelImport({..._0xf5c448,'reconcileImageConflicts':_0x517a1d['resume']===!![]&&_0xbf44fa}):await runExcelImport(_0xf5c448);return _0x237b2a[_0x4f0f7c(0x11b)]=_0x4f0f7c(0x149),await saveImportJson(_0x480d62,_0x237b2a),{..._0x573993,'checkpoint':_0x480d62,'imageCount':_0x277ea2[_0x4f0f7c(0x132)]?.['reduce']((_0x20b2bb,_0x5bcf9b)=>_0x20b2bb+_0x5bcf9b['hashes'][_0x4f0f7c(0x134)],0x0)??0x0,'uniqueImages':_0x5b6a50[_0x4f0f7c(0x134)]};}finally{await _0x517f55();}}
|
|
1
|
+
(function(_0x1ba02f,_0x457f4a){const _0x5e6ea2=a147_0xa890,_0x316ffd=_0x1ba02f();while(!![]){try{const _0x41073b=parseInt(_0x5e6ea2(0x184))/0x1+parseInt(_0x5e6ea2(0x193))/0x2+parseInt(_0x5e6ea2(0x1dc))/0x3*(parseInt(_0x5e6ea2(0x1bc))/0x4)+-parseInt(_0x5e6ea2(0x196))/0x5+-parseInt(_0x5e6ea2(0x1b3))/0x6+-parseInt(_0x5e6ea2(0x1d8))/0x7+-parseInt(_0x5e6ea2(0x194))/0x8*(-parseInt(_0x5e6ea2(0x18d))/0x9);if(_0x41073b===_0x457f4a)break;else _0x316ffd['push'](_0x316ffd['shift']());}catch(_0x57768a){_0x316ffd['push'](_0x316ffd['shift']());}}}(a147_0x325c,0xb07df));import{randomUUID,createHash}from'node:crypto';function a147_0xa890(_0x5d698b,_0x508eac){_0x5d698b=_0x5d698b-0x173;const _0x325c94=a147_0x325c();let _0xa89026=_0x325c94[_0x5d698b];return _0xa89026;}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(_0x1ec797,_0x1267ad){const _0x2bf5d9=a147_0xa890;if(!_0x1267ad[_0x2bf5d9(0x17c)]?.[_0x2bf5d9(0x1cc)])return;const _0x23fb90=_0x1ec797[_0x2bf5d9(0x198)];if(!_0x23fb90||_0x23fb90[_0x2bf5d9(0x19c)]!==0x1||_0x23fb90[_0x2bf5d9(0x1a1)]!==_0x2bf5d9(0x1b5)||_0x23fb90[_0x2bf5d9(0x1d7)]!==0xa00000||_0x23fb90[_0x2bf5d9(0x195)]!==0x2625a00||!Array[_0x2bf5d9(0x1a9)](_0x23fb90[_0x2bf5d9(0x178)])||![_0x2bf5d9(0x17e),_0x2bf5d9(0x182),_0x2bf5d9(0x1a5)][_0x2bf5d9(0x1b0)](_0x46ed8d=>_0x23fb90[_0x2bf5d9(0x178)]['includes'](_0x46ed8d)))throw Error(_0x2bf5d9(0x199));}function a147_0x325c(){const _0x3f519e=['fileHash','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','binding','fromEntries','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','ENOENT','32WhHUry','values','inputPaths','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','contract','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','test','.lock.recovery','resume','rows-started','isSafeInteger','readback','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','imageFields','length','update','.lock','rowNumber','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','datasetCode','Invalid\x20image\x20manifest\x20limits.','Image\x20media\x20bytes\x20changed.','imageCells','missing','filePath','maxFileBytes','5547563LWkovC','dataset-import/','hash','importId','290265RfmdHf','imageApi','batchSize','actorId','pending','rows','types','some','appCode','jpg','media','reduce','image/png','includes','maxBatchSize','parserVersion','image/jpeg','maxBatchBytes','1411195AqDeAm','map','get','completed','uploadFields','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','report','status','manifest','225MiiwKd','succeeded','mappingHash','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','hex','size','1545472WjGCys','232936ecQjqV','maxPixels','6239745bJCKuA','type','imageImport','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','utf8','schemaHash','version','contentHash','code','gif','hashes','uploadId','sheet','rows-preparing','stringify','image/gif','schemaVersion','checkpoint','upload','isArray','bytes','errors','Completed\x20image\x20checkpoint\x20value\x20changed.','Image\x20cell\x20references\x20missing\x20media.','entries','name','every','phase','key','5535162FTaGuV','value','sha256'];a147_0x325c=function(){return _0x3f519e;};return a147_0x325c();}export function imageObjectValue(_0x2d9c3b,_0x3292a0,_0x13a774){const _0x28a6fd=a147_0xa890,_0x54fa1b=createHash(_0x28a6fd(0x1b5))[_0x28a6fd(0x1cd)](JSON[_0x28a6fd(0x1a4)]([_0x2d9c3b[_0x28a6fd(0x175)],_0x2d9c3b[_0x28a6fd(0x17a)],_0x2d9c3b[_0x28a6fd(0x1d1)],_0x3292a0]))['digest'](_0x28a6fd(0x191)),_0x11afa4={'image/png':'png','image/jpeg':_0x28a6fd(0x17b),'image/gif':_0x28a6fd(0x19f)}[_0x13a774[_0x28a6fd(0x197)]];if(!_0x11afa4||!/^[0-9a-f]{64}$/[_0x28a6fd(0x1c4)](_0x13a774[_0x28a6fd(0x19d)])||!Number[_0x28a6fd(0x1c8)](_0x13a774['size'])||_0x13a774['size']<=0x0||_0x13a774['size']>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x2a81c6=_0x13a774[_0x28a6fd(0x19d)]+'.'+_0x11afa4;return{'key':_0x28a6fd(0x1d9)+_0x54fa1b+'/'+_0x2a81c6,'name':_0x2a81c6,'type':_0x13a774[_0x28a6fd(0x197)],'size':_0x13a774[_0x28a6fd(0x192)]};}export function bindImageManifest(_0xc14275,_0x309ed9,_0x2f5278){const _0x53e3fa=a147_0xa890,_0x5a06d9=new Map(_0xc14275[_0x53e3fa(0x17c)]?.[_0x53e3fa(0x185)](_0x1d983d=>[_0x1d983d[_0x53e3fa(0x19d)],_0x1d983d])),_0x18075c=new Map(_0xc14275[_0x53e3fa(0x1d4)]?.['map'](_0x5e5e4b=>[_0x5e5e4b[_0x53e3fa(0x1cf)]+':'+_0x5e5e4b['field'],_0x5e5e4b[_0x53e3fa(0x1a0)]]));return{..._0xc14275,'rows':_0xc14275[_0x53e3fa(0x177)]['map'](_0x3fd070=>({..._0x3fd070,'values':Object[_0x53e3fa(0x1b9)](Object[_0x53e3fa(0x1ae)](_0x3fd070[_0x53e3fa(0x1bd)])[_0x53e3fa(0x185)](([_0x18bad3,_0x56a6e8])=>{const _0x194581=_0x53e3fa,_0x5778aa=_0x18075c[_0x194581(0x186)](_0x3fd070[_0x194581(0x1cf)]+':'+_0x18bad3);return[_0x18bad3,_0x5778aa?_0x5778aa[_0x194581(0x185)](_0x2882e7=>{const _0x256feb=_0x194581,_0x53e7b8=_0x5a06d9['get'](_0x2882e7);if(!_0x53e7b8)throw Error(_0x256feb(0x1ad));const _0x4534bc=imageObjectValue(_0x309ed9,_0x2f5278,_0x53e7b8);return _0xc14275[_0x256feb(0x188)]?.['includes'](_0x18bad3)?{'fileName':_0x4534bc[_0x256feb(0x1af)],'filePath':_0x4534bc[_0x256feb(0x1b2)]}:_0x4534bc;}):_0x56a6e8];}))}))};}async function exists(_0x174f0d){const _0x2e1b44=a147_0xa890;try{return await lstat(_0x174f0d),!![];}catch(_0x1e265d){if(_0x1e265d[_0x2e1b44(0x19e)]===_0x2e1b44(0x1bb))return![];throw _0x1e265d;}}export async function runImageExcelImport(_0x3abee8){const _0x3b8168=a147_0xa890;assertImportContract(_0x3abee8['contract'],_0x3abee8[_0x3b8168(0x17a)],_0x3abee8[_0x3b8168(0x1d1)]),assertImageImportCapability(_0x3abee8[_0x3b8168(0x1c1)],_0x3abee8[_0x3b8168(0x18c)]);if(!Number['isInteger'](_0x3abee8['batchSize'])||_0x3abee8[_0x3b8168(0x174)]<0x1||_0x3abee8['batchSize']>_0x3abee8[_0x3b8168(0x1c1)][_0x3b8168(0x180)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x3abee8['manifest'][_0x3b8168(0x1ab)]['length']||!_0x3abee8[_0x3b8168(0x18c)][_0x3b8168(0x177)]['length'])throw Error(_0x3b8168(0x1ba));const _0x116dbd=await resolveImportOutputPath(_0x3abee8[_0x3b8168(0x1a7)]),_0x50ef9d=await resolveImportOutputPath(_0x3abee8[_0x3b8168(0x18a)]),_0x23a429=await resolveImportOutputPath(_0x116dbd+'.rows.json'),_0x401685=await Promise['all']([_0x23a429,_0x23a429+'.lock',_0x23a429+_0x3b8168(0x1c5),..._0x3abee8[_0x3b8168(0x1be)]??[]][_0x3b8168(0x185)](resolveImportOutputPath));for(const _0x5aaf4d of[_0x116dbd,_0x50ef9d,_0x116dbd+_0x3b8168(0x1ce),_0x116dbd+'.lock.recovery'])await resolveImportOutputPath(_0x5aaf4d);assertImportPaths(_0x116dbd,_0x50ef9d,_0x401685);const {contract:_0x9ac434,manifest:_0x60e161}=_0x3abee8,_0x1ae7e1=_0x60e161[_0x3b8168(0x17c)]??[];if(new Set(_0x1ae7e1[_0x3b8168(0x185)](_0x2ec152=>_0x2ec152[_0x3b8168(0x19d)]))[_0x3b8168(0x192)]!==_0x1ae7e1[_0x3b8168(0x1cc)]||_0x1ae7e1[_0x3b8168(0x17d)]((_0x51aa14,_0x4713de)=>_0x51aa14+_0x4713de[_0x3b8168(0x192)],0x0)>0x32*0x400*0x400||(_0x60e161['imageCells']??[])[_0x3b8168(0x17d)]((_0x5b4f95,_0x5c00c7)=>_0x5b4f95+_0x5c00c7[_0x3b8168(0x1a0)][_0x3b8168(0x1cc)],0x0)>0x2710)throw Error(_0x3b8168(0x1d2));for(const _0x18a7cd of _0x1ae7e1)if(_0x18a7cd[_0x3b8168(0x192)]!==_0x18a7cd[_0x3b8168(0x1aa)]['length']||createHash(_0x3b8168(0x1b5))[_0x3b8168(0x1cd)](_0x18a7cd['bytes'])['digest']('hex')!==_0x18a7cd[_0x3b8168(0x19d)])throw Error(_0x3b8168(0x1d3));previewImportBatchCount(bindImageManifest(_0x60e161,_0x9ac434,'00000000-0000-4000-8000-000000000000'),_0x9ac434,_0x3abee8[_0x3b8168(0x174)]);const _0x561077={'appCode':_0x3abee8[_0x3b8168(0x17a)],'datasetCode':_0x3abee8[_0x3b8168(0x1d1)],'runtimeDomain':_0x3abee8['runtimeDomain'],'actorId':_0x9ac434[_0x3b8168(0x175)],'fileHash':_0x60e161[_0x3b8168(0x1b6)],'mappingHash':_0x60e161[_0x3b8168(0x18f)],'schemaHash':_0x60e161[_0x3b8168(0x19b)],'remoteSchemaHash':_0x9ac434['schemaFingerprint'],'strategy':_0x9ac434['strategy'],'schemaVersion':_0x9ac434[_0x3b8168(0x1a6)],'batchSize':_0x3abee8[_0x3b8168(0x174)],'maxBatchBytes':_0x9ac434[_0x3b8168(0x183)],'sheet':_0x60e161[_0x3b8168(0x1a2)],'parserVersion':_0x60e161[_0x3b8168(0x181)],'imageFields':_0x60e161[_0x3b8168(0x1cb)],'cells':_0x60e161[_0x3b8168(0x1d4)],..._0x60e161[_0x3b8168(0x188)]?.[_0x3b8168(0x1cc)]?{'uploadFields':_0x60e161['uploadFields']}:{},'media':_0x1ae7e1[_0x3b8168(0x185)](({contentHash:_0x160cde,type:_0x59222b,size:_0x576aa0})=>({'contentHash':_0x160cde,'type':_0x59222b,'size':_0x576aa0})),'rows':_0x60e161[_0x3b8168(0x177)]},_0x56e369=await acquireLock(_0x116dbd);try{let _0x385e85;if(_0x3abee8['resume']){try{_0x385e85=JSON['parse'](await readFile(_0x116dbd,_0x3b8168(0x19a)));}catch{throw Error(_0x3b8168(0x189));}if(_0x385e85[_0x3b8168(0x19c)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3b8168(0x1c4)](_0x385e85[_0x3b8168(0x1db)])||canonical(_0x385e85[_0x3b8168(0x1b8)])!==canonical(_0x561077)||!['media',_0x3b8168(0x1a3),_0x3b8168(0x1c7),_0x3b8168(0x187)][_0x3b8168(0x17f)](_0x385e85[_0x3b8168(0x1b1)])||!Array[_0x3b8168(0x1a9)](_0x385e85[_0x3b8168(0x17c)])||_0x385e85[_0x3b8168(0x17c)]['length']!==_0x1ae7e1[_0x3b8168(0x1cc)]||_0x385e85[_0x3b8168(0x17c)][_0x3b8168(0x179)]((_0xf8a4aa,_0x468292)=>_0xf8a4aa[_0x3b8168(0x1da)]!==_0x1ae7e1[_0x468292][_0x3b8168(0x19d)]||![_0x3b8168(0x176),'succeeded'][_0x3b8168(0x17f)](_0xf8a4aa[_0x3b8168(0x18b)])))throw Error(_0x3b8168(0x1c3));if([_0x3b8168(0x1c7),_0x3b8168(0x187)][_0x3b8168(0x17f)](_0x385e85['phase'])&&!await exists(_0x23a429))throw Error(_0x3b8168(0x1c2));if(_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x17c)&&await exists(_0x23a429))throw Error(_0x3b8168(0x1b7));}else{if(await exists(_0x116dbd)||await exists(_0x23a429))throw Error(_0x3b8168(0x1bf));_0x385e85={'version':0x3,'importId':randomUUID(),'binding':_0x561077,'phase':_0x3b8168(0x17c),'media':_0x1ae7e1['map'](_0x40b86f=>({'hash':_0x40b86f[_0x3b8168(0x19d)],'status':_0x3b8168(0x176)}))},await saveImportJson(_0x116dbd,_0x385e85);}const _0x4b0791=(_0x26f299,_0x3ece67)=>{const _0x557f93=_0x3b8168;if(!_0x26f299||_0x26f299[_0x557f93(0x19d)]!==_0x3ece67[_0x557f93(0x19d)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x26f299[_0x557f93(0x18b)]===_0x557f93(0x1d5))return undefined;const _0x4780dd=imageObjectValue(_0x9ac434,_0x385e85[_0x557f93(0x1db)],_0x3ece67);if(_0x26f299[_0x557f93(0x18b)]!==_0x557f93(0x18e)||_0x26f299[_0x557f93(0x1d6)]!==_0x4780dd[_0x557f93(0x1b2)]||_0x26f299['fileName']!==_0x4780dd[_0x557f93(0x1af)]||_0x26f299[_0x557f93(0x197)]!==_0x4780dd[_0x557f93(0x197)]||_0x26f299[_0x557f93(0x192)]!==_0x4780dd[_0x557f93(0x192)])throw Error(_0x557f93(0x1ca));return _0x4780dd;};for(let _0x3f0791=0x0;_0x3f0791<_0x1ae7e1[_0x3b8168(0x1cc)];_0x3f0791++){const _0x42c47a=_0x1ae7e1[_0x3f0791],_0x407a3a=_0x385e85[_0x3b8168(0x17c)][_0x3f0791],_0x2be37a=imageObjectValue(_0x9ac434,_0x385e85[_0x3b8168(0x1db)],_0x42c47a);if(_0x407a3a[_0x3b8168(0x18b)]===_0x3b8168(0x18e)&&canonical(_0x407a3a[_0x3b8168(0x1b4)])!==canonical(_0x2be37a))throw Error(_0x3b8168(0x1ac));let _0x3ae94d;if(_0x3abee8[_0x3b8168(0x1c6)]||_0x407a3a['status']===_0x3b8168(0x18e))_0x3ae94d=_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1c9)](_0x385e85[_0x3b8168(0x1db)],_0x42c47a),_0x42c47a);if(!_0x3ae94d&&_0x407a3a[_0x3b8168(0x18b)]===_0x3b8168(0x18e))throw Error(_0x3b8168(0x190));if(!_0x3ae94d){try{_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1a8)](_0x385e85['importId'],_0x42c47a),_0x42c47a);}catch(_0x20933b){_0x3ae94d=_0x4b0791(await _0x3abee8[_0x3b8168(0x173)][_0x3b8168(0x1c9)](_0x385e85['importId'],_0x42c47a),_0x42c47a);if(!_0x3ae94d)throw Error(_0x3b8168(0x1c0));}if(!_0x3ae94d)_0x3ae94d=_0x4b0791(await _0x3abee8['imageApi'][_0x3b8168(0x1c9)](_0x385e85[_0x3b8168(0x1db)],_0x42c47a),_0x42c47a);if(!_0x3ae94d)throw Error(_0x3b8168(0x1d0));}_0x407a3a[_0x3b8168(0x18b)]=_0x3b8168(0x18e),_0x407a3a[_0x3b8168(0x1b4)]=_0x3ae94d,await saveImportJson(_0x116dbd,_0x385e85);}const _0x130a48=bindImageManifest(_0x60e161,_0x9ac434,_0x385e85[_0x3b8168(0x1db)]),_0x13a8ce=_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x1a3)?await exists(_0x23a429):_0x385e85[_0x3b8168(0x1b1)]!==_0x3b8168(0x17c);_0x385e85[_0x3b8168(0x1b1)]===_0x3b8168(0x17c)&&(_0x385e85['phase']=_0x3b8168(0x1a3),await saveImportJson(_0x116dbd,_0x385e85));const _0x595ed8={..._0x3abee8,'manifest':_0x130a48,'checkpoint':_0x23a429,'report':_0x50ef9d,'resume':_0x13a8ce,'onCheckpointReady':async()=>{const _0x15cca8=_0x3b8168;_0x385e85[_0x15cca8(0x1b1)]='rows-started',await saveImportJson(_0x116dbd,_0x385e85);}},_0x240f8e=_0x9ac434[_0x3b8168(0x1a6)]===0x2?await runAutoIdExcelImport({..._0x595ed8,'reconcileImageConflicts':_0x3abee8['resume']===!![]&&_0x13a8ce}):await runExcelImport(_0x595ed8);return _0x385e85[_0x3b8168(0x1b1)]=_0x3b8168(0x187),await saveImportJson(_0x116dbd,_0x385e85),{..._0x240f8e,'checkpoint':_0x116dbd,'imageCount':_0x60e161['imageCells']?.[_0x3b8168(0x17d)]((_0x104e77,_0xf4294c)=>_0x104e77+_0xf4294c[_0x3b8168(0x1a0)]['length'],0x0)??0x0,'uniqueImages':_0x1ae7e1[_0x3b8168(0x1cc)]};}finally{await _0x56e369();}}
|