@lovrabet/lovrabet-cli 2.3.11 → 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
|
-
function a143_0x4e3f(){const _0x3cd894=['maxBatchSize','batchSize','values','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','unknown','Import\x20generated\x20ID\x20conflict.','reconcileImageConflicts','report','9027238btFVeM','rows','isArray','flatMap','Excel\x20contains\x20no\x20valid\x20data\x20rows.','1486965KlYIoI','toString','includes','3789378QixNIk','isSafeInteger','sheet','conflict','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','uploadFields','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','get','82120xuwGPS','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','errors','emptyRows','maxBatchBytes','string','succeeded','ENOENT','18ZTLGVG','count','utf8','Cannot\x20read\x20the\x20import\x20checkpoint.','hex','stringify','binding','readTask','taskId','Import\x20generated\x20ID\x20collision.','rowIndexes','reduce','sort','datasetCode','resume','imageFields','schemaHash','message','length','status','strategy','schemaVersion','filter','645LJmlbB','push','7mZsvSk','pending','fileHash','batches','mappingHash','importId','unsent','number','completed','keys','some','has','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','byteLength','code','size','onCheckpointReady','appCode','map','14848OegEIr','ids','rowNumber','checkpoint','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','schemaFingerprint','2178790NuQZji','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','write','actorId','now','2492576vbrbHU','Excel\x20row\x20','9UrwrJI'];a143_0x4e3f=function(){return _0x3cd894;};return a143_0x4e3f();}const a143_0x59f8dc=a143_0x5ca5;(function(_0x5956b6,_0x1bfad3){const _0x330b97=a143_0x5ca5,_0x4be3b2=_0x5956b6();while(!![]){try{const _0x263a02=-parseInt(_0x330b97(0xbe))/0x1*(parseInt(_0x330b97(0xd7))/0x2)+-parseInt(_0x330b97(0xcc))/0x3+-parseInt(_0x330b97(0xb0))/0x4*(-parseInt(_0x330b97(0x9b))/0x5)+-parseInt(_0x330b97(0xcf))/0x6*(-parseInt(_0x330b97(0x9d))/0x7)+-parseInt(_0x330b97(0xbc))/0x8+-parseInt(_0x330b97(0xdf))/0x9*(parseInt(_0x330b97(0xb7))/0xa)+parseInt(_0x330b97(0xc7))/0xb;if(_0x263a02===_0x1bfad3)break;else _0x4be3b2['push'](_0x4be3b2['shift']());}catch(_0xfa1f46){_0x4be3b2['push'](_0x4be3b2['shift']());}}}(a143_0x4e3f,0x4dc50));import{randomBytes,randomUUID}from'node:crypto';function a143_0x5ca5(_0x41091f,_0x5bf1b3){_0x41091f=_0x41091f-0x8e;const _0x4e3fb1=a143_0x4e3f();let _0x5ca551=_0x4e3fb1[_0x41091f];return _0x5ca551;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x4c4d74=>typeof _0x4c4d74===a143_0x59f8dc(0xa4)&&Number[a143_0x59f8dc(0xd0)](_0x4c4d74)&&_0x4c4d74>0x0;export async function runAutoIdExcelImport(_0x41f55f){const _0x364552=a143_0x59f8dc,_0xbcb73f={..._0x41f55f,'checkpoint':await resolveImportOutputPath(_0x41f55f[_0x364552(0xb3)]),'report':await resolveImportOutputPath(_0x41f55f[_0x364552(0xc6)])},{manifest:_0x349080,contract:_0x4e9149,api:_0x1d6644}=_0xbcb73f;assertImportContract(_0x4e9149,_0xbcb73f[_0x364552(0xae)],_0xbcb73f['datasetCode']);if(_0x4e9149[_0x364552(0x99)]!==0x2||!_0x1d6644['readTask'])throw Error(_0x364552(0xb4));if(_0x349080[_0x364552(0xd9)][_0x364552(0x96)])throw Error(_0x364552(0xb8));if(!_0x349080[_0x364552(0xc8)][_0x364552(0x96)])throw Error(_0x364552(0xcb));if(!Number['isInteger'](_0xbcb73f[_0x364552(0xc0)])||_0xbcb73f['batchSize']<0x1||_0xbcb73f[_0x364552(0xc0)]>_0x4e9149[_0x364552(0xbf)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0xbcb73f[_0x364552(0xb3)],_0xbcb73f[_0x364552(0xc6)]);if(_0x349080[_0x364552(0xc8)][_0x364552(0xa7)](_0x4863c1=>Object['hasOwn'](_0x4863c1[_0x364552(0xc1)],'id')))throw Error(_0x364552(0xd5));const _0x44b9cc=(_0x4036dd,_0x137a20)=>Buffer[_0x364552(0xaa)](JSON[_0x364552(0xe4)]({'schemaFingerprint':_0x4e9149[_0x364552(0xb6)],'taskId':_0x137a20,'items':_0x4036dd[_0x364552(0xaf)](_0x53202d=>_0x349080[_0x364552(0xc8)][_0x53202d][_0x364552(0xc1)])}),_0x364552(0xe1)),_0x509aa2=[];let _0x1bc392=[];for(let _0x1a8bdd=0x0;_0x1a8bdd<_0x349080[_0x364552(0xc8)]['length'];_0x1a8bdd++){if(_0x44b9cc([_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])throw Error(_0x364552(0xbd)+_0x349080['rows'][_0x1a8bdd][_0x364552(0xb2)]+_0x364552(0xd8));_0x1bc392[_0x364552(0x96)]&&(_0x1bc392['length']===_0xbcb73f[_0x364552(0xc0)]||_0x44b9cc([..._0x1bc392,_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])&&(_0x509aa2[_0x364552(0x9c)](_0x1bc392),_0x1bc392=[]),_0x1bc392[_0x364552(0x9c)](_0x1a8bdd);}if(_0x1bc392[_0x364552(0x96)])_0x509aa2[_0x364552(0x9c)](_0x1bc392);const _0x2b9d58={'appCode':_0xbcb73f[_0x364552(0xae)],'datasetCode':_0xbcb73f[_0x364552(0x91)],'runtimeDomain':_0xbcb73f['runtimeDomain'],'actorId':_0x4e9149[_0x364552(0xba)],'fileHash':_0x349080[_0x364552(0x9f)],'mappingHash':_0x349080[_0x364552(0xa1)],'schemaHash':_0x349080[_0x364552(0x94)],'remoteSchemaHash':_0x4e9149[_0x364552(0xb6)],'batchSize':_0xbcb73f['batchSize'],'maxBatchBytes':_0x4e9149['maxBatchBytes'],'sheet':_0x349080[_0x364552(0xd1)],'strategy':_0x4e9149[_0x364552(0x98)]},_0x122c01=await acquireLock(_0xbcb73f[_0x364552(0xb3)]);let _0x2d8df2;const _0x5bb299=Date[_0x364552(0xbb)]();let _0x37509e=0x0;const _0x3c38a2=[],_0xe298bf=_0x4e1d9e=>_0x2d8df2?.['batches']['filter'](_0x10e68a=>_0x10e68a[_0x364552(0x97)]===_0x4e1d9e)[_0x364552(0x8f)]((_0x5dc5a4,_0x1be176)=>_0x5dc5a4+_0x1be176[_0x364552(0x8e)][_0x364552(0x96)],0x0)??0x0,_0x3e8a46=()=>({'importId':_0x2d8df2?.[_0x364552(0xa2)],'sourceRows':_0x349080[_0x364552(0xc8)]['length'],'emptyRows':_0x349080[_0x364552(0xda)][_0x364552(0x96)],'succeeded':_0xe298bf(_0x364552(0xdd)),'unknown':_0xe298bf(_0x364552(0x9e)),'conflicts':_0xe298bf(_0x364552(0xd2)),'notAttempted':_0xe298bf(_0x364552(0xa3)),'batches':_0x37509e,'batchResults':_0x3c38a2,'elapsedMs':Date[_0x364552(0xbb)]()-_0x5bb299,'checkpoint':_0xbcb73f['checkpoint'],'report':_0xbcb73f[_0x364552(0xc6)],'warnings':_0x349080['warnings']});try{if(_0xbcb73f[_0x364552(0x92)]){try{_0x2d8df2=JSON['parse'](await readFile(_0xbcb73f[_0x364552(0xb3)],_0x364552(0xe1)));}catch{throw Error(_0x364552(0xe2));}if(!_0x2d8df2||_0x2d8df2['version']!==0x2||typeof _0x2d8df2[_0x364552(0xa2)]!==_0x364552(0xdc)||!_0x2d8df2[_0x364552(0xa2)]||canonical(_0x2d8df2[_0x364552(0xe5)])!==canonical(_0x2b9d58)||!Array[_0x364552(0xc9)](_0x2d8df2[_0x364552(0xa0)])||_0x2d8df2['batches'][_0x364552(0x96)]!==_0x509aa2['length']||new Set(_0x2d8df2[_0x364552(0xa0)][_0x364552(0xaf)](_0x2466c0=>_0x2466c0[_0x364552(0xe7)]))[_0x364552(0xac)]!==_0x509aa2[_0x364552(0x96)]||_0x2d8df2['batches'][_0x364552(0xa7)]((_0x327a56,_0x3c31ab)=>!validId(_0x327a56[_0x364552(0xe7)])||_0x327a56['taskId']>0x2**0x34||canonical(_0x327a56[_0x364552(0x8e)])!==canonical(_0x509aa2[_0x3c31ab])||![_0x364552(0xa3),_0x364552(0x9e),'succeeded','conflict'][_0x364552(0xce)](_0x327a56['status'])||!Array['isArray'](_0x327a56[_0x364552(0xb1)])||_0x327a56[_0x364552(0xb1)][_0x364552(0xa7)](_0x2d9bc0=>!validId(_0x2d9bc0))||new Set(_0x327a56[_0x364552(0xb1)])[_0x364552(0xac)]!==_0x327a56[_0x364552(0xb1)]['length']||_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0&&_0x327a56[_0x364552(0xb1)]['length']!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xdd)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xa3)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x1c8715=_0x2d8df2[_0x364552(0xa0)][_0x364552(0xca)](_0x40d158=>_0x40d158[_0x364552(0xb1)]);if(new Set(_0x1c8715)[_0x364552(0xac)]!==_0x1c8715['length'])throw Error(_0x364552(0xc2));}else{try{await lstat(_0xbcb73f['checkpoint']);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x38f241){if(_0x38f241[_0x364552(0xab)]!==_0x364552(0xde))throw _0x38f241;}const _0x4f0dd4=new Set();_0x2d8df2={'version':0x2,'importId':randomUUID(),'binding':_0x2b9d58,'batches':_0x509aa2[_0x364552(0xaf)](_0x2c5059=>{const _0x4b5159=_0x364552;let _0x115432;do{_0x115432=Number(BigInt('0x'+randomBytes(0x7)[_0x4b5159(0xcd)](_0x4b5159(0xe3)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x4f0dd4[_0x4b5159(0xa8)](_0x115432));return _0x4f0dd4['add'](_0x115432),{'taskId':_0x115432,'rowIndexes':_0x2c5059,'ids':[],'status':_0x4b5159(0xa3)};})},await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x2d8df2);}await _0xbcb73f[_0x364552(0xad)]?.();const _0x4e6b98=_0x2d8df2,_0xc5a971=async(_0x855d13,_0x4ea31d)=>{const _0x10e28e=_0x364552;_0x855d13[_0x10e28e(0x97)]=_0x10e28e(0xd2),await saveImportJson(_0xbcb73f[_0x10e28e(0xb3)],_0x4e6b98);throw Error(_0x4ea31d);},_0x5c6f40=async _0x1d5947=>{const _0x5924ba=_0x364552;let _0x910383=await _0x1d6644[_0x5924ba(0xe6)](_0x1d5947[_0x5924ba(0xe7)]);if(!Array['isArray'](_0x910383))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x1d5947[_0x5924ba(0x97)]===_0x5924ba(0xa3)&&_0x910383[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x910383[_0x5924ba(0x96)]){if(_0x1d5947[_0x5924ba(0x97)]==='succeeded'||_0x1d5947['ids'][_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xb5));return![];}if(_0x910383[_0x5924ba(0x96)]!==_0x1d5947[_0x5924ba(0x8e)]['length'])return _0xc5a971(_0x1d5947,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x512c79=_0x910383['map'](_0x332698=>_0x332698?.['id']);if(_0x512c79[_0x5924ba(0xa7)](_0x51de3a=>!validId(_0x51de3a)))return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));if(new Set(_0x512c79)[_0x5924ba(0xac)]!==_0x512c79[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));const _0x359bac=new Map(_0x910383[_0x5924ba(0xaf)](_0x5b5559=>[_0x5b5559['id'],_0x5b5559])),_0xece1ae=_0x1d5947[_0x5924ba(0xb1)][_0x5924ba(0x96)]?[..._0x1d5947[_0x5924ba(0xb1)]]:[..._0x512c79][_0x5924ba(0x90)]((_0x2b5a90,_0x2b3781)=>_0x2b5a90-_0x2b3781);if(_0xece1ae[_0x5924ba(0xa7)](_0x34e5bb=>!validId(_0x34e5bb))||_0xece1ae[_0x5924ba(0xa7)]((_0x52301c,_0x44c074)=>_0x44c074>0x0&&_0x52301c<=_0xece1ae[_0x44c074-0x1])||_0xece1ae[_0x5924ba(0xa7)](_0x7c80a7=>!_0x359bac['has'](_0x7c80a7)))return _0xc5a971(_0x1d5947,'Import\x20generated\x20ID\x20conflict.');_0x910383=_0xece1ae[_0x5924ba(0xaf)](_0x1c1b52=>_0x359bac[_0x5924ba(0xd6)](_0x1c1b52));const _0x43a545=new Set(_0x4e6b98[_0x5924ba(0xa0)][_0x5924ba(0x9a)](_0x166788=>_0x166788!==_0x1d5947)['flatMap'](_0x37921c=>_0x37921c['ids']));if(_0xece1ae['some'](_0x7ed575=>_0x43a545[_0x5924ba(0xa8)](_0x7ed575)))return _0xc5a971(_0x1d5947,_0x5924ba(0xe8));for(let _0xc3bb7f=0x0;_0xc3bb7f<_0x910383['length'];_0xc3bb7f++){const _0x5254c9=_0x349080['rows'][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]]['values'];if(Object[_0x5924ba(0xa6)](_0x5254c9)['some'](_0x2025a1=>!sameImportValue(_0x5254c9[_0x2025a1],_0x910383[_0xc3bb7f][_0x2025a1],_0x349080[_0x5924ba(0x93)]?.[_0x5924ba(0xce)](_0x2025a1)&&!_0x349080[_0x5924ba(0xd4)]?.[_0x5924ba(0xce)](_0x2025a1))))return _0xc5a971(_0x1d5947,_0x5924ba(0xa9)+_0x349080[_0x5924ba(0xc8)][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]][_0x5924ba(0xb2)]+'.');}return _0x1d5947['ids']=_0xece1ae,_0x1d5947[_0x5924ba(0x97)]='succeeded',await saveImportJson(_0xbcb73f['checkpoint'],_0x4e6b98),!![];};if(_0x4e6b98[_0x364552(0xa0)]['some'](_0x3d354d=>_0x3d354d[_0x364552(0x97)]==='conflict'&&!(_0xbcb73f[_0x364552(0x92)]&&_0xbcb73f[_0x364552(0xc5)]&&_0x349080[_0x364552(0x93)]?.['length']&&_0x3d354d[_0x364552(0xb1)]['length']===_0x3d354d[_0x364552(0x8e)]['length'])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0xbcb73f[_0x364552(0x92)]){for(const _0x5ddb2d of _0x4e6b98[_0x364552(0xa0)])await _0x5c6f40(_0x5ddb2d);}for(const _0x59b766 of _0x4e6b98[_0x364552(0xa0)]){if(_0x59b766['status']===_0x364552(0xdd))continue;if(!_0xbcb73f[_0x364552(0x92)])await _0x5c6f40(_0x59b766);_0x59b766[_0x364552(0x97)]=_0x364552(0x9e),await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98),_0x37509e++;const _0x3591b0=_0x59b766['rowIndexes']['map'](_0x3a8549=>_0x349080[_0x364552(0xc8)][_0x3a8549][_0x364552(0xc1)]),_0x357a1d=Date['now'](),_0x180d17={'batch':_0x37509e,'rowStart':_0x349080[_0x364552(0xc8)][_0x59b766[_0x364552(0x8e)][0x0]][_0x364552(0xb2)],'rowEnd':_0x349080['rows'][_0x59b766['rowIndexes']['at'](-0x1)][_0x364552(0xb2)],'count':_0x3591b0[_0x364552(0x96)],'bytes':_0x44b9cc(_0x59b766[_0x364552(0x8e)],_0x59b766[_0x364552(0xe7)]),'elapsedMs':0x0,'status':_0x364552(0xc3)};_0x3c38a2[_0x364552(0x9c)](_0x180d17);try{const _0x4ce3b1=await _0x1d6644[_0x364552(0xb9)](_0x3591b0,_0x59b766['taskId']);if(!_0x4ce3b1||_0x4ce3b1[_0x364552(0xe0)]!==_0x3591b0[_0x364552(0x96)]||!Array[_0x364552(0xc9)](_0x4ce3b1[_0x364552(0xb1)])||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0x96)]!==_0x3591b0[_0x364552(0x96)]||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0xa7)](_0x2dc2e6=>!validId(_0x2dc2e6))||new Set(_0x4ce3b1['ids'])['size']!==_0x4ce3b1[_0x364552(0xb1)]['length'])throw Error('Invalid\x20write\x20result.');_0x59b766[_0x364552(0xb1)]=_0x4ce3b1[_0x364552(0xb1)],await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98);if(!await _0x5c6f40(_0x59b766))throw Error('Incomplete\x20readback.');}catch(_0x2f4d9d){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x2f4d9d;try{await _0x5c6f40(_0x59b766);}catch(_0x4fa396){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x4fa396;}if(_0x59b766[_0x364552(0x97)]!=='succeeded')throw Error(_0x364552(0xd3));}finally{_0x180d17['elapsedMs']=Date[_0x364552(0xbb)]()-_0x357a1d,_0x180d17[_0x364552(0x97)]=_0x59b766[_0x364552(0x97)]===_0x364552(0xdd)?'succeeded':_0x59b766[_0x364552(0x97)]==='conflict'?'conflict':_0x364552(0xc3);}}const _0x50eb57={'status':_0x364552(0xa5),..._0x3e8a46()};return await saveImportJson(_0xbcb73f[_0x364552(0xc6)],_0x50eb57),_0x50eb57;}catch(_0x3b48be){if(_0x2d8df2)await saveImportJson(_0xbcb73f[_0x364552(0xc6)],{'status':'incomplete',..._0x3e8a46(),'message':_0x3b48be[_0x364552(0x95)]});throw _0x3b48be;}finally{await _0x122c01();}}
|
|
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_0x4e3367=a144_0x4295;(function(_0x426338,_0x12f0ab){const _0x4e4fb7=a144_0x4295,_0xa6dfb1=_0x426338();while(!![]){try{const _0x213e26=-parseInt(_0x4e4fb7(0x245))/0x1+parseInt(_0x4e4fb7(0x1da))/0x2+parseInt(_0x4e4fb7(0x22f))/0x3*(-parseInt(_0x4e4fb7(0x1aa))/0x4)+-parseInt(_0x4e4fb7(0x1c4))/0x5*(parseInt(_0x4e4fb7(0x1e4))/0x6)+-parseInt(_0x4e4fb7(0x259))/0x7+parseInt(_0x4e4fb7(0x263))/0x8*(-parseInt(_0x4e4fb7(0x1e5))/0x9)+-parseInt(_0x4e4fb7(0x246))/0xa*(-parseInt(_0x4e4fb7(0x257))/0xb);if(_0x213e26===_0x12f0ab)break;else _0xa6dfb1['push'](_0xa6dfb1['shift']());}catch(_0x17b548){_0xa6dfb1['push'](_0xa6dfb1['shift']());}}}(a144_0x22e1,0x8f235));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x33c664 from'node:path';function a144_0x22e1(){const _0x46f3d0=['type','textarea','Invalid\x20dataset\x20field\x20extension\x20metadata.','trim','resolve','parse','address','fileName','externalFileAttributes','369405PBVtKK','isInteger','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Invalid\x20ZIP\x20central\x20directory\x20layout.','update','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','dir','_xlnm.Print_Area','Cell\x20exceeds\x2064\x20KB.','isSafeInteger','integer','tenantCode','fileCommentRaw','cells','decimal','data','Invalid\x20worksheet\x20hyperlink\x20reference.','filter','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','\x20columns.','directory','Required\x20value\x20is\x20missing.','655116zWEDCi','Non-canonical\x20worksheet\x20ZIP\x20entry.','utf8','map','uncompressedSize','parseInt','formula','ref','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','entries','12QcAcEY','15696AieVKe','readEntry','file','extraFieldsLength','includes','deleted','parserVersion','error','parseText','imageFields','find','repeat','dataValidations','MAX_SAFE_INTEGER','generalPurposeBitFlag','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','doctype','add','length','entry','image','Invalid\x20XLSX\x20entry.','Invalid\x20ZIP\x20local\x20file\x20header.','number','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20worksheet\x20nested\x20row.','[Content_Types].xml','close','isBuffer','value','test','clear','eachCell','doType','required','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','hex','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','imageCells','headerRow','values','parseOpen','some','sha256','File\x20is\x20not\x20an\x20XLSX\x20workbook.','stringify','Dataset\x20field\x20metadata\x20is\x20missing.','readExtraFields','ranges','datetime','concat','Unknown\x20or\x20generated\x20mapping\x20field:\x20','exec','processAttributes','left','bitFlag','dataset','original','localeCompare','isFinite','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','rowCount','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','sourceType','fields','object','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','decodeEx','Worksheet\x20exceeds\x2016384\x20columns.','updateTime','readUInt32LE','Invalid\x20worksheet\x20XML.','1633239rNyJSd','Duplicate\x20header:\x20','push','sheet','sort','attributes','sharedFormula','get','top','modifierId','warnings','uploadFields','METADATA','upload','mapping','pop','versionMadeBy','code','dataset-import/','xlsx','_xlnm.Print_Titles','name','233657zLBDag','45730YpmRBt','contentHash','reference','max','fileNameStr','abs','load','media','slice','from','opentag','utf8decode','datasetId','generated','getRow','modifierName','Duplicate\x20workbook\x20ZIP\x20entry.','5665bNpCKo','charCodeAt','647157QvyXKe','Invalid\x20defined\x20name\x20coordinate.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','./zipEntry','extraFields','nativeCell','entryCount','toLowerCase','appCode','exceljs','2448tGxhxO','Required\x20image\x20value\x20is\x20missing.','startsWith','create','rows','errors','xl/workbook.xml','parseClose','extname','readUInt16LE','end','Image\x20XML\x20event\x20budget\x20exceeded.','source','XLSX\x20file\x20exceeds\x2020\x20MB.','./utf8','model','Duplicate\x20dataset\x20field\x20codes.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Required\x20field\x20is\x20not\x20mapped:\x20','split','autoIncrement','row','col','batchSize','extraFieldRaw','./utils','Invalid\x20XLSX\x20archive.','set','mergeCell','destroy','properties','write','.xlsx','message','Expected\x20a\x20boolean\x20cell.','Only\x20.xlsx\x20files\x20are\x20supported.','text','fromBuffer','dataType','has','byteLength','Invalid\x20worksheet\x20coordinate.','readEntryCursor','isArray','materialized','getCell','worksheets','right','jpg','Unknown\x20Excel\x20header:\x20','bottom','Invalid\x20worksheet\x20column\x20range.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','./reader/readerFor','Requested\x20worksheet\x20does\x20not\x20exist.','Invalid\x20worksheet\x20XML:\x20','every','unixPermissions','size','hidden','hyperlink','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','8dhvIUi','result','creatorName','string','definedName','jszip','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','date','digest','fileNameRaw','closetag','boolean','Worksheet\x20coordinate\x20exceeds\x20','getTime','lastIndexOf','serial_number'];a144_0x22e1=function(){return _0x46f3d0;};return a144_0x22e1();}import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x3ee8b0 from'exceljs';import a144_0x503fc8 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_0x4e3367(0x1cf),a144_0x4e3367(0x261),a144_0x4e3367(0x252),'creatorId',a144_0x4e3367(0x1ac),a144_0x4e3367(0x238),a144_0x4e3367(0x255),'createTime',a144_0x4e3367(0x22c),a144_0x4e3367(0x1ea)]),TYPES=new Set([a144_0x4e3367(0x1ad),a144_0x4e3367(0x190),a144_0x4e3367(0x1bc),a144_0x4e3367(0x1fc),'decimal',a144_0x4e3367(0x1ce),'boolean','date',a144_0x4e3367(0x218),a144_0x4e3367(0x1f9),a144_0x4e3367(0x23c)]),isImageContainer=_0x1fdeb5=>[a144_0x4e3367(0x1f9),'upload']['includes'](_0x1fdeb5[a144_0x4e3367(0x260)]()),hash=_0x992f7=>createHash(a144_0x4e3367(0x212))[a144_0x4e3367(0x1c8)](_0x992f7)[a144_0x4e3367(0x1b3)](a144_0x4e3367(0x209)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4e3367(0x25b)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4e3367(0x1bf)](a144_0x4e3367(0x262))),zipRequire=createRequire(excelRequire[a144_0x4e3367(0x1bf)](a144_0x4e3367(0x1af))),ZipEntry=zipRequire(a144_0x4e3367(0x25c)),zipReader=zipRequire(a144_0x4e3367(0x1a1)),zipUtf8=zipRequire(a144_0x4e3367(0x271)),zipPaths=zipRequire(a144_0x4e3367(0x185));function centralDirectoryEnd(_0xd651e5,_0x146367){const _0x57b597=a144_0x4e3367,_0x4efabf=()=>new Error(_0x57b597(0x1c7)),_0x4a0b4b=_0xd651e5[_0x57b597(0x1b9)](Buffer[_0x57b597(0x24f)]([0x50,0x4b,0x5,0x6]));if(_0x4a0b4b<0x0||_0x4a0b4b+0x16>_0xd651e5[_0x57b597(0x1f7)]||_0x4a0b4b+0x16+_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x14)!==_0xd651e5['length'])throw _0x4efabf();let _0x4a3931=_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0xa),_0x43ee80=_0xd651e5[_0x57b597(0x22d)](_0x4a0b4b+0xc),_0x2695da=_0xd651e5[_0x57b597(0x22d)](_0x4a0b4b+0x10),_0x32e219=_0x4a0b4b;const _0x23b4f4=_0x4a0b4b-0x14,_0x3043a7=_0x23b4f4>=0x0&&_0xd651e5['readUInt32LE'](_0x23b4f4)===0x7064b50,_0x3da168=[0x4,0x6,0x8,0xa][_0x57b597(0x211)](_0x5daec2=>_0xd651e5['readUInt16LE'](_0x4a0b4b+_0x5daec2)===0xffff)||_0x43ee80===0xffffffff||_0x2695da===0xffffffff;if(_0x3043a7!==_0x3da168)throw _0x4efabf();if(_0x3043a7){if(_0xd651e5[_0x57b597(0x1b9)](Buffer[_0x57b597(0x24f)]([0x50,0x4b,0x6,0x7]))!==_0x23b4f4)throw _0x4efabf();const _0x2dddf8=_0xa7391f=>{const _0xcf8f78=_0x57b597,_0x488eb8=Number(_0xd651e5['readBigUInt64LE'](_0xa7391f));if(!Number[_0xcf8f78(0x1cd)](_0x488eb8))throw _0x4efabf();return _0x488eb8;};_0x32e219=_0x2dddf8(_0x23b4f4+0x8);if(_0xd651e5[_0x57b597(0x22d)](_0x23b4f4+0x4)!==0x0||_0xd651e5[_0x57b597(0x22d)](_0x23b4f4+0x10)!==0x1||_0x32e219>_0x23b4f4-0x38||_0xd651e5[_0x57b597(0x22d)](_0x32e219)!==0x6064b50||_0x2dddf8(_0x32e219+0x4)!==0x2c||_0x32e219+0x38!==_0x23b4f4||_0xd651e5[_0x57b597(0x22d)](_0x32e219+0x10)!==0x0||_0xd651e5[_0x57b597(0x22d)](_0x32e219+0x14)!==0x0)throw _0x4efabf();_0x4a3931=_0x2dddf8(_0x32e219+0x20),_0x43ee80=_0x2dddf8(_0x32e219+0x28),_0x2695da=_0x2dddf8(_0x32e219+0x30);if(_0x2dddf8(_0x32e219+0x18)!==_0x4a3931)throw _0x4efabf();}else{if(_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x4)!==0x0||_0xd651e5['readUInt16LE'](_0x4a0b4b+0x6)!==0x0||_0xd651e5[_0x57b597(0x26c)](_0x4a0b4b+0x8)!==_0x4a3931)throw _0x4efabf();}const _0x161720=_0x146367[_0x57b597(0x196)];if(_0x2695da!==_0x161720||_0x4a3931!==_0x146367[_0x57b597(0x25f)]||_0x2695da+_0x43ee80!==_0x32e219)throw _0x4efabf();return _0x32e219;}function consumerEntryName(_0x454bac,_0x4caa25){const _0x57d412=a144_0x4e3367;if(_0x4caa25[_0x57d412(0x25d)][_0x57d412(0x1d5)](_0x4a2538=>_0x4a2538['id']===0x1)[_0x57d412(0x1f7)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x186ebc=_0x4caa25,_0x50cc90=_0x4caa25['relativeOffsetOfLocalHeader'];if(!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x1b4)])||!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x184)])||!Buffer[_0x57d412(0x201)](_0x186ebc[_0x57d412(0x1d0)])||!Number['isSafeInteger'](_0x50cc90)||_0x50cc90<0x0||_0x50cc90>_0x454bac[_0x57d412(0x1f7)]-0x1e||_0x454bac['readUInt32LE'](_0x50cc90)!==0x4034b50)throw new Error(_0x57d412(0x1fb));const _0x54f9ff=_0x50cc90+0x1e+_0x454bac[_0x57d412(0x26c)](_0x50cc90+0x1a),_0x2b386f=_0x54f9ff+_0x454bac['readUInt16LE'](_0x50cc90+0x1c)+_0x4caa25['compressedSize'];if(!Number[_0x57d412(0x1cd)](_0x2b386f)||_0x2b386f>_0x454bac[_0x57d412(0x1f7)])throw new Error(_0x57d412(0x1fb));if(_0x54f9ff>_0x454bac[_0x57d412(0x1f7)]||!_0x454bac['subarray'](_0x50cc90+0x1e,_0x54f9ff)['equals'](_0x186ebc['fileNameRaw']))throw new Error(_0x57d412(0x1a0));const _0x13643d=new ZipEntry({},{'decodeFileName':zipUtf8[_0x57d412(0x251)]});_0x13643d[_0x57d412(0x21e)]=_0x4caa25[_0x57d412(0x1f3)],_0x13643d[_0x57d412(0x1c2)]=_0x186ebc[_0x57d412(0x1b4)],_0x13643d['fileComment']=_0x186ebc[_0x57d412(0x1d0)],_0x13643d[_0x57d412(0x1e8)]=_0x186ebc[_0x57d412(0x184)][_0x57d412(0x1f7)],_0x13643d[_0x57d412(0x216)](zipReader(_0x186ebc[_0x57d412(0x184)])),_0x13643d['handleUTF8'](),_0x13643d[_0x57d412(0x23f)]=_0x4caa25['versionMadeBy'],_0x13643d['externalFileAttributes']=_0x4caa25[_0x57d412(0x1c3)],_0x13643d[_0x57d412(0x21c)]();const _0xe97b6=_0x13643d[_0x57d412(0x1ca)]||Boolean((_0x13643d[_0x57d412(0x1a5)]??0x0)&0x4000),_0x2af26c=zipPaths['resolve'](_0x13643d[_0x57d412(0x24a)]),_0x447352=_0x2af26c[_0x57d412(0x265)]('/')?_0x2af26c['slice'](0x1):_0x2af26c;return{'name':_0x447352,'original':_0x13643d[_0x57d412(0x24a)],'directory':_0xe97b6};}export function normalizeImportFields(_0x586baa){const _0x2f94c9=a144_0x4e3367;if(!_0x586baa||(_0x586baa[_0x2f94c9(0x26f)]??_0x586baa[_0x2f94c9(0x21f)]?.[_0x2f94c9(0x226)])!==_0x2f94c9(0x23b))throw new Error(_0x2f94c9(0x1c9));const _0x301341=Array[_0x2f94c9(0x197)](_0x586baa[_0x2f94c9(0x227)]),_0x44846b=_0x301341?_0x586baa[_0x2f94c9(0x227)]:_0x586baa[_0x2f94c9(0x18a)];if(!Array[_0x2f94c9(0x197)](_0x44846b)||_0x44846b['length']===0x0)throw new Error(_0x2f94c9(0x215));const _0x456dc8=[],_0x15cd2d=new Set();for(const _0x4804ca of _0x44846b){if(_0x4804ca[_0x2f94c9(0x1ea)]===!![])continue;let _0x18d940=_0x4804ca['extend']??{};if(!_0x301341&&typeof _0x18d940===_0x2f94c9(0x1ad)){try{_0x18d940=JSON[_0x2f94c9(0x1c0)](_0x18d940);}catch{throw new Error(_0x2f94c9(0x1bd));}if(!_0x18d940||typeof _0x18d940!==_0x2f94c9(0x228)||Array['isArray'](_0x18d940))throw new Error(_0x2f94c9(0x1bd));}const _0xca145b=_0x301341?_0x4804ca[_0x2f94c9(0x244)]:_0x4804ca['code'],_0x430b01=_0x301341?_0x4804ca[_0x2f94c9(0x206)]:_0x4804ca[_0x2f94c9(0x1bb)]??_0x4804ca[_0x2f94c9(0x192)];if(typeof _0xca145b!==_0x2f94c9(0x1ad)||!_0xca145b||typeof _0x430b01!=='string'||_0x15cd2d[_0x2f94c9(0x193)](_0xca145b))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x430b01['toLowerCase']()===_0x2f94c9(0x1ba))throw new Error(_0x2f94c9(0x274));_0x15cd2d[_0x2f94c9(0x1f6)](_0xca145b);const _0x1f86c3=_0x301341?_0x4804ca:_0x18d940,_0x2ab4fd={'code':_0xca145b,'type':_0x430b01,'required':_0x1f86c3[_0x2f94c9(0x207)]===!![]};if(RESERVED['has'](_0xca145b)||_0x1f86c3[_0x2f94c9(0x253)]===!![]||_0x1f86c3[_0x2f94c9(0x180)]===!![])_0x2ab4fd[_0x2f94c9(0x253)]=!![];_0x456dc8['push'](_0x2ab4fd);}return _0x456dc8;}async function checkArchive(_0x31d86a,_0x3a02b8){await new Promise((_0x4b0aa4,_0xf17892)=>{const _0x40eb03=a144_0x4295;a144_0x503fc8[_0x40eb03(0x191)](_0x31d86a,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x555515,_0x505faf)=>{const _0x3b914e=_0x40eb03;if(_0x555515||!_0x505faf){_0xf17892(_0x555515??new Error(_0x3b914e(0x186)));return;}let _0x599701;try{_0x599701=centralDirectoryEnd(_0x31d86a,_0x505faf);}catch(_0x92708a){_0x505faf[_0x3b914e(0x200)](),_0xf17892(_0x92708a);return;}let _0x2a1466=0x0,_0x1ff492=0x0,_0x1e6654=0x0,_0x2f9d22=0x0,_0x5d63bb=0x0,_0x2bbd0f=0x0,_0x3bc7c3=0x0,_0x35e747=0x0,_0x176a18=0x0,_0x46cc9b=![],_0x2505fa;const _0x5e4b85=new Set(),_0x272bbe=_0x1e6a70=>{const _0x5f1341=_0x3b914e;if(_0x46cc9b)return;_0x46cc9b=!![],_0x2505fa?.[_0x5f1341(0x189)](),_0x505faf[_0x5f1341(0x200)](),_0xf17892(_0x1e6a70);},_0x401640=(_0x469ffe,_0x5b1d48)=>{const _0x5ebd79=_0x3b914e;if(!_0x469ffe||!/^\d+$/[_0x5ebd79(0x203)](_0x469ffe))throw new Error(_0x5ebd79(0x195));const _0x4df29d=Number(_0x469ffe);if(!Number[_0x5ebd79(0x1cd)](_0x4df29d)||_0x4df29d<0x1||_0x4df29d>_0x5b1d48)throw new Error(_0x5ebd79(0x1b7)+_0x5b1d48+'.');return _0x4df29d;},_0x3090ec=(_0x242e9b,_0x4669a5=MAX_XML_COLUMNS)=>{const _0x2cfa1a=_0x3b914e,_0x483a1a=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2cfa1a(0x21b)](_0x242e9b);if(!_0x483a1a)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x3a6c64=0x0;for(const _0x4acd06 of _0x483a1a[0x1])_0x3a6c64=_0x3a6c64*0x1a+_0x4acd06[_0x2cfa1a(0x258)](0x0)-0x40;if(_0x3a6c64>_0x4669a5)throw new Error('Worksheet\x20exceeds\x20'+_0x4669a5+_0x2cfa1a(0x1d7));return{'row':_0x401640(_0x483a1a[0x2],MAX_XML_ROWS),'col':_0x3a6c64};},_0xe9c066=_0x5c253d=>{const _0x4441c5=_0x3b914e;if(_0x5c253d[_0x4441c5(0x244)]===_0x4441c5(0x1cb)||_0x5c253d['name']===_0x4441c5(0x243))return;for(const _0x398e9d of _0x5c253d[_0x4441c5(0x217)]){if(!ABSOLUTE_NAME_RANGE[_0x4441c5(0x203)](_0x398e9d['split']('!')[_0x4441c5(0x23e)]()||''))continue;const _0x45f5e0=nameCoordinates[_0x4441c5(0x22a)](_0x398e9d),_0x406e34=_0x4441c5(0x237)in _0x45f5e0,_0x397a42=_0x406e34?[_0x45f5e0[_0x4441c5(0x237)],_0x45f5e0[_0x4441c5(0x19e)]]:[_0x45f5e0[_0x4441c5(0x181)]],_0x48c977=_0x406e34?[_0x45f5e0[_0x4441c5(0x21d)],_0x45f5e0[_0x4441c5(0x19b)]]:[_0x45f5e0[_0x4441c5(0x182)]],_0x4b7846=(_0x5d6a2f,_0x3f15dc)=>Number['isSafeInteger'](_0x5d6a2f)&&_0x5d6a2f>=0x1&&_0x5d6a2f<=_0x3f15dc;if(!_0x397a42[_0x4441c5(0x1a4)](_0x402339=>_0x4b7846(_0x402339,MAX_XML_ROWS))||!_0x48c977[_0x4441c5(0x1a4)](_0x1512b5=>_0x4b7846(_0x1512b5,MAX_XML_COLUMNS)))throw new Error(_0x4441c5(0x25a));_0x3bc7c3+=_0x406e34?(_0x45f5e0[_0x4441c5(0x19e)]-_0x45f5e0['top']+0x1)*(_0x45f5e0[_0x4441c5(0x19b)]-_0x45f5e0['left']+0x1):0x1;if(_0x3bc7c3>MAX_ROWS)throw new Error(_0x4441c5(0x1e2));}};_0x505faf['on'](_0x3b914e(0x1ec),_0x272bbe),_0x505faf['on'](_0x3b914e(0x1f8),_0x2d90e7=>{const _0x3fc414=_0x3b914e;if(_0x46cc9b)return;if(++_0x1e6654>0x2710||(_0x2a1466+=_0x2d90e7[_0x3fc414(0x1de)])>MAX_EXPANDED){_0x272bbe(new Error(_0x3fc414(0x225)));return;}let _0xf17c87;try{_0xf17c87=consumerEntryName(_0x31d86a,_0x2d90e7);}catch(_0x46f3b5){_0x272bbe(_0x46f3b5);return;}if(_0xf17c87[_0x3fc414(0x1d8)]){_0x505faf['readEntry']();return;}const _0x57011e=_0xf17c87['name'];if(_0x3a02b8&&(_0x57011e!==_0xf17c87['original']||_0x5e4b85[_0x3fc414(0x193)](_0x57011e)||_0x57011e[_0x3fc414(0x265)]('/')||_0x57011e[_0x3fc414(0x1e9)]('\x5c'))){_0x272bbe(new Error(_0x3fc414(0x1f4)));return;}if(_0x57011e!==_0xf17c87[_0x3fc414(0x220)]&&(_0x57011e===_0x3fc414(0x269)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3fc414(0x203)](_0x57011e))){_0x272bbe(new Error(_0x3fc414(0x1c6)));return;}const _0x3bff96=_0x57011e===_0x3fc414(0x269);if(_0x3bff96&&_0x5e4b85[_0x3fc414(0x193)](_0x57011e)){_0x272bbe(new Error(_0x3fc414(0x256)));return;}_0x5e4b85['add'](_0x57011e);const _0x2910ec=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x3fc414(0x203)](_0x57011e);if(_0x2910ec&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x3fc414(0x203)](_0x57011e)){_0x272bbe(new Error(_0x3fc414(0x1db)));return;}_0x505faf['openReadStream'](_0x2d90e7,(_0x471e83,_0x47b4f8)=>{const _0x46a5e5=_0x3fc414;if(_0x46cc9b){_0x47b4f8?.[_0x46a5e5(0x189)]();return;}if(_0x471e83||!_0x47b4f8){_0x272bbe(_0x471e83??new Error(_0x46a5e5(0x1fa)));return;}_0x2505fa=_0x47b4f8;const _0x285212=_0x3a02b8?[]:undefined,_0x43bb52=_0x3a02b8&&/[.](xml|rels)$/[_0x46a5e5(0x203)](_0x57011e)?new StringDecoder('utf8'):undefined,_0x48c24a=_0x43bb52?new SaxesParser({'xmlns':![]}):undefined,_0x25b203=()=>{const _0x1f503e=_0x46a5e5;if(++_0x176a18>0x1e8480)throw Error(_0x1f503e(0x26e));};_0x48c24a?.['on'](_0x46a5e5(0x1f5),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x48c24a?.['on']('opentag',()=>{_0x25b203();if(++_0x35e747>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x48c24a?.['on'](_0x46a5e5(0x190),_0x25b203),_0x48c24a?.['on'](_0x46a5e5(0x1b5),_0x25b203),_0x48c24a?.['on'](_0x46a5e5(0x1ec),_0x406e14=>{throw _0x406e14;});const _0x58a905=_0x2910ec||_0x3bff96?new StringDecoder(_0x46a5e5(0x1dc)):undefined,_0x123b7f=_0x2910ec||_0x3bff96?new SaxesParser({'xmlns':![]}):undefined;let _0x5937c1,_0x219cee=0x0,_0x1fa287=0x0,_0x4bcf62,_0x1762cc,_0x51d3bc=![],_0xd01af0=![],_0x15c3e1,_0x5e4763,_0x3b16d6,_0x3b0f0f=![];const _0x33c19d=[],_0x3009b3=new Set();let _0x482a98;const _0x3595f9=(_0x304990,_0x43d5be=0x0)=>{_0x5d63bb+=_0x43d5be+Math['max'](0x0,_0x304990-_0x1fa287),_0x1fa287=Math['max'](_0x1fa287,_0x304990);if(_0x5d63bb>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x123b7f?.['on'](_0x46a5e5(0x250),_0x4066a7=>{const _0x2ecd4d=_0x46a5e5;if(_0x3bff96){if(!_0x5937c1&&_0x4066a7['name']===_0x2ecd4d(0x1ae))_0x5937c1=new DefinedNameXform();_0x5937c1?.[_0x2ecd4d(0x210)](_0x4066a7);return;}if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x181)){if(_0xd01af0)throw new Error(_0x2ecd4d(0x1fe));_0x401640(_0x4066a7[_0x2ecd4d(0x234)]['r'],MAX_XML_ROWS),_0x4bcf62=undefined,_0x3b16d6=undefined,_0x3b0f0f=![];}else{if(_0x4066a7[_0x2ecd4d(0x244)]==='c'){if(_0xd01af0)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xd01af0=!![],_0x51d3bc=Boolean(Number[_0x2ecd4d(0x1df)](_0x4066a7[_0x2ecd4d(0x234)]['s']??'',0xa)),_0x482a98=undefined,_0x15c3e1=_0x4066a7[_0x2ecd4d(0x234)]['r']||undefined,_0x5e4763=_0x15c3e1?_0x3090ec(_0x15c3e1):undefined;if(_0x5e4763)_0x1762cc=_0x5e4763;else _0x1762cc=_0x4bcf62?{'row':_0x4bcf62['row'],'col':_0x4bcf62[_0x2ecd4d(0x182)]+0x1}:undefined;}else{if(_0xd01af0&&['f','v','t'][_0x2ecd4d(0x1e9)](_0x4066a7[_0x2ecd4d(0x244)])){_0x482a98=_0x4066a7[_0x2ecd4d(0x244)];if(_0x4066a7[_0x2ecd4d(0x244)]==='f'&&_0x4066a7[_0x2ecd4d(0x234)]['t'])_0x51d3bc=!![];}else{if(_0xd01af0&&_0x4066a7['name']==='r')_0x51d3bc=!![];else{if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x1a8)){const _0x126c1d=_0x4066a7[_0x2ecd4d(0x234)][_0x2ecd4d(0x1e1)];if(!_0x126c1d)throw new Error(_0x2ecd4d(0x1d4));const _0x42c230=_0x126c1d[_0x2ecd4d(0x277)](':');if(_0x42c230[_0x2ecd4d(0x1f7)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1e0ee3=_0x3090ec(_0x42c230[0x0]),_0x4e3a32=_0x3090ec(_0x42c230[0x1]??_0x42c230[0x0]);_0x3009b3[_0x2ecd4d(0x1f6)](_0x126c1d),_0x3595f9(Math[_0x2ecd4d(0x249)](_0x1e0ee3[_0x2ecd4d(0x182)],_0x4e3a32[_0x2ecd4d(0x182)]),0x1);}else{if(_0x4066a7['name']==='col'){const _0x54aa5e=_0x401640(_0x4066a7['attributes']['min'],0x4000),_0x22f014=_0x401640(_0x4066a7['attributes'][_0x2ecd4d(0x249)],0x4000);if(_0x54aa5e>_0x22f014)throw new Error(_0x2ecd4d(0x19f));_0x3595f9(_0x22f014,0x1);}else{if(_0x4066a7[_0x2ecd4d(0x244)]===_0x2ecd4d(0x188)){const _0x3dd309=_0x4066a7[_0x2ecd4d(0x234)][_0x2ecd4d(0x1e1)];if(!_0x3dd309)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0xbf3cc=_0x3dd309['split'](':');if(_0xbf3cc[_0x2ecd4d(0x1f7)]>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x1f95d8=_0x3090ec(_0xbf3cc[0x0]),_0x3f11e9=_0x3090ec(_0xbf3cc[0x1]??_0xbf3cc[0x0]);_0x3595f9(Math[_0x2ecd4d(0x249)](_0x1f95d8[_0x2ecd4d(0x182)],_0x3f11e9[_0x2ecd4d(0x182)]));const _0x13fdb5=(Math[_0x2ecd4d(0x24b)](_0x3f11e9[_0x2ecd4d(0x181)]-_0x1f95d8['row'])+0x1)*(Math[_0x2ecd4d(0x24b)](_0x3f11e9[_0x2ecd4d(0x182)]-_0x1f95d8[_0x2ecd4d(0x182)])+0x1);_0x2f9d22+=_0x13fdb5+_0x219cee++;if(_0x2f9d22>MAX_ROWS)throw new Error(_0x2ecd4d(0x1fd));}}}}}}}}),_0x123b7f?.['on']('text',_0x44336e=>{const _0x32bf5b=_0x46a5e5;if(_0x3bff96){_0x5937c1?.[_0x32bf5b(0x1ed)](_0x44336e);return;}if(_0xd01af0&&_0x482a98&&_0x44336e)_0x51d3bc=!![];}),_0x123b7f?.['on'](_0x46a5e5(0x1b5),_0x16f559=>{const _0x1f8d6c=_0x46a5e5;if(_0x3bff96){_0x5937c1&&!_0x5937c1[_0x1f8d6c(0x26a)]()&&(_0xe9c066(_0x5937c1[_0x1f8d6c(0x272)]),_0x5937c1=undefined);return;}if(_0x16f559[_0x1f8d6c(0x244)]==='c'){!_0x51d3bc&&_0x15c3e1&&!_0x3b16d6&&(_0x3b16d6={'before':_0x4bcf62,'cells':[]});if(_0x3b16d6){if(++_0x2bbd0f>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x3b16d6['cells'][_0x1f8d6c(0x231)]({'reference':_0x15c3e1,'address':_0x5e4763,'materialized':_0x51d3bc});if(!_0x15c3e1&&_0x51d3bc)_0x3b0f0f=!![];}if(_0x51d3bc){if(!_0x3b16d6||_0x15c3e1){if(!_0x1762cc)throw new Error(_0x1f8d6c(0x20b));if(_0x1762cc[_0x1f8d6c(0x182)]>MAX_XML_COLUMNS)throw new Error(_0x1f8d6c(0x22b));_0x3595f9(_0x1762cc[_0x1f8d6c(0x182)]);}_0x4bcf62=_0x1762cc;}_0xd01af0=![],_0x1762cc=undefined,_0x15c3e1=undefined,_0x5e4763=undefined,_0x482a98=undefined;}else{if(_0x16f559[_0x1f8d6c(0x244)]===_0x1f8d6c(0x181)){if(_0x3b16d6&&_0x3b0f0f)_0x33c19d[_0x1f8d6c(0x231)](_0x3b16d6);_0x3b16d6=undefined,_0x3b0f0f=![];}else{if(_0x16f559[_0x1f8d6c(0x244)]===_0x482a98)_0x482a98=undefined;}}}),_0x123b7f?.['on'](_0x46a5e5(0x1ec),_0xc4efd1=>{const _0x2171aa=_0x46a5e5;throw new Error(_0x2171aa(0x1a3)+_0xc4efd1[_0x2171aa(0x18d)]);}),_0x47b4f8['on']('error',_0x272bbe),_0x47b4f8['on'](_0x46a5e5(0x1d3),_0x3d5668=>{const _0x12293a=_0x46a5e5;if(_0x46cc9b)return;_0x1ff492+=_0x3d5668[_0x12293a(0x1f7)],_0x285212?.['push'](_0x3d5668);if(_0x1ff492>MAX_EXPANDED){_0x272bbe(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x48c24a&&_0x43bb52)_0x48c24a[_0x12293a(0x18b)](_0x43bb52['write'](_0x3d5668));if(_0x123b7f&&_0x58a905)_0x123b7f[_0x12293a(0x18b)](_0x58a905[_0x12293a(0x18b)](_0x3d5668));}catch(_0x183ebf){_0x272bbe(_0x183ebf instanceof Error?_0x183ebf:new Error(_0x12293a(0x22e)));}}),_0x47b4f8['on'](_0x46a5e5(0x26d),()=>{const _0xa4b293=_0x46a5e5;if(_0x46cc9b)return;try{if(_0x48c24a&&_0x43bb52)_0x48c24a['write'](_0x43bb52[_0xa4b293(0x26d)]())['close']();if(_0x123b7f&&_0x58a905)_0x123b7f[_0xa4b293(0x18b)](_0x58a905[_0xa4b293(0x26d)]())[_0xa4b293(0x200)]();for(const _0x1f212b of _0x33c19d){let _0x1e90f6=_0x1f212b['before'];for(const _0x5daef1 of _0x1f212b[_0xa4b293(0x1d1)]){if(!_0x5daef1[_0xa4b293(0x198)]&&!(_0x5daef1[_0xa4b293(0x248)]&&_0x3009b3[_0xa4b293(0x193)](_0x5daef1[_0xa4b293(0x248)])))continue;const _0x3fcddd=_0x5daef1['address']??(_0x1e90f6?{'row':_0x1e90f6[_0xa4b293(0x181)],'col':_0x1e90f6['col']+0x1}:undefined);if(!_0x3fcddd)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x3fcddd[_0xa4b293(0x182)]>MAX_XML_COLUMNS)throw new Error(_0xa4b293(0x22b));_0x3595f9(_0x3fcddd[_0xa4b293(0x182)]),_0x1e90f6=_0x3fcddd;}}_0x33c19d[_0xa4b293(0x1f7)]=0x0,_0x3009b3[_0xa4b293(0x204)]();}catch(_0x3c99ef){_0x272bbe(_0x3c99ef instanceof Error?_0x3c99ef:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x285212)_0x3a02b8[_0xa4b293(0x187)](_0x57011e,Buffer[_0xa4b293(0x219)](_0x285212));_0x2505fa=undefined,_0x505faf[_0xa4b293(0x1e6)]();});});}),_0x505faf['on'](_0x3b914e(0x26d),()=>{const _0x5472b7=_0x3b914e;if(_0x46cc9b)return;if(_0x505faf[_0x5472b7(0x196)]!==_0x599701){_0xf17892(new Error(_0x5472b7(0x223)));return;}if(!_0x5e4b85[_0x5472b7(0x193)](_0x5472b7(0x1ff))||!_0x5e4b85['has'](_0x5472b7(0x269)))_0xf17892(new Error(_0x5472b7(0x213)));else _0x4b0aa4();}),_0x505faf[_0x3b914e(0x1e6)]();});});}function a144_0x4295(_0x1c866d,_0xfccf1f){_0x1c866d=_0x1c866d-0x180;const _0x22e156=a144_0x22e1();let _0x4295b2=_0x22e156[_0x1c866d];return _0x4295b2;}function valueOf(_0x1b57cb){const _0x5480e0=a144_0x4e3367,_0x7ef861=_0x1b57cb[_0x5480e0(0x202)];if(_0x7ef861&&typeof _0x7ef861===_0x5480e0(0x228)&&(_0x5480e0(0x1e0)in _0x7ef861||_0x5480e0(0x235)in _0x7ef861)){if(!('result'in _0x7ef861)||_0x7ef861[_0x5480e0(0x1ab)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x7ef861['result'];}return _0x7ef861;}function convert(_0x26a5b6,_0x3b0b06){const _0x29bc26=a144_0x4e3367;if(_0x26a5b6===null||_0x26a5b6===undefined||_0x26a5b6===''){if(_0x3b0b06[_0x29bc26(0x207)]&&!_0x3b0b06[_0x29bc26(0x253)])throw new Error(_0x29bc26(0x1d9));return null;}if(typeof _0x26a5b6==='string'&&Buffer[_0x29bc26(0x194)](_0x26a5b6,_0x29bc26(0x1dc))>MAX_CELL)throw new Error(_0x29bc26(0x1cc));switch(_0x3b0b06[_0x29bc26(0x1bb)][_0x29bc26(0x260)]()){case _0x29bc26(0x1ad):case'text':case'textarea':if(typeof _0x26a5b6!==_0x29bc26(0x1ad))throw new Error('Expected\x20a\x20text\x20cell.');return _0x26a5b6;case _0x29bc26(0x1fc):case _0x29bc26(0x1d2):case'integer':if(typeof _0x26a5b6!==_0x29bc26(0x1fc)||!Number[_0x29bc26(0x222)](_0x26a5b6)||Math[_0x29bc26(0x24b)](_0x26a5b6)>Number[_0x29bc26(0x1f2)]||_0x3b0b06['type']['toLowerCase']()===_0x29bc26(0x1ce)&&!Number[_0x29bc26(0x1c5)](_0x26a5b6))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x26a5b6;case _0x29bc26(0x1b6):if(typeof _0x26a5b6!==_0x29bc26(0x1b6))throw new Error(_0x29bc26(0x18e));return _0x26a5b6;case _0x29bc26(0x1b2):case _0x29bc26(0x218):if(!(_0x26a5b6 instanceof Date)||!Number[_0x29bc26(0x222)](_0x26a5b6[_0x29bc26(0x1b8)]()))throw new Error('Expected\x20an\x20Excel\x20date\x20cell.');return _0x26a5b6['getTime']();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3b0b06['type']+'.');}}export async function buildExcelManifest(_0x2c22cf){const _0x456f95=a144_0x4e3367,_0x36c2c8=_0x2c22cf[_0x456f95(0x20e)]??0x1;if(!Number[_0x456f95(0x1c5)](_0x36c2c8)||_0x36c2c8<0x1||_0x36c2c8>MAX_ROWS)throw new Error(_0x456f95(0x1b0));if(_0x2c22cf[_0x456f95(0x183)]!==undefined&&(!Number[_0x456f95(0x1c5)](_0x2c22cf[_0x456f95(0x183)])||_0x2c22cf[_0x456f95(0x183)]<0x1||_0x2c22cf[_0x456f95(0x183)]>0x3e8))throw new Error(_0x456f95(0x20c));if(a144_0x33c664[_0x456f95(0x26b)](_0x2c22cf[_0x456f95(0x1e7)])[_0x456f95(0x260)]()!==_0x456f95(0x18c))throw new Error(_0x456f95(0x18f));const _0x298441=await stat(_0x2c22cf[_0x456f95(0x1e7)]);if(!_0x298441['isFile']()||_0x298441['size']>MAX_FILE)throw new Error(_0x456f95(0x1b1));const _0x2c9b63=await readFile(_0x2c22cf[_0x456f95(0x1e7)]);if(_0x2c9b63['length']>MAX_FILE)throw new Error(_0x456f95(0x270));const _0x40ed54=_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x211)](_0x5d5398=>isImageContainer(_0x5d5398[_0x456f95(0x1bb)])&&Object[_0x456f95(0x20f)](_0x2c22cf[_0x456f95(0x23d)])[_0x456f95(0x1e9)](_0x5d5398['code']))?new Map():undefined;await checkArchive(_0x2c9b63,_0x40ed54);const _0xcc033b=new a144_0x3ee8b0['Workbook']();await _0xcc033b[_0x456f95(0x242)][_0x456f95(0x24c)](_0x2c9b63,{'ignoreNodes':[_0x456f95(0x1f1)]});const _0x43dcdb=_0x2c22cf[_0x456f95(0x232)];let _0x518e39;if(_0x43dcdb===undefined)_0x518e39=_0xcc033b['worksheets'][0x0];else{if(typeof _0x43dcdb===_0x456f95(0x1ad)&&_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x211)](_0x4e0729=>_0x4e0729[_0x456f95(0x244)]===_0x43dcdb))_0x518e39=_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x1ef)](_0x2540ea=>_0x2540ea[_0x456f95(0x244)]===_0x43dcdb);else{if(typeof _0x43dcdb==='number'||/^\d+$/[_0x456f95(0x203)](_0x43dcdb)){const _0x5ddcd1=Number(_0x43dcdb);if(!Number[_0x456f95(0x1c5)](_0x5ddcd1)||_0x5ddcd1<0x1)throw new Error(_0x456f95(0x208));_0x518e39=_0xcc033b['worksheets'][_0x5ddcd1-0x1];}else _0x518e39=_0xcc033b[_0x456f95(0x19a)][_0x456f95(0x1ef)](_0x9ca3a4=>_0x9ca3a4['name']===_0x43dcdb);}}if(!_0x518e39)throw new Error(_0x456f95(0x1a2));if(_0x518e39['rowCount']>MAX_ROWS||_0x518e39['columnCount']>MAX_COLUMNS)throw new Error(_0x456f95(0x20a));if((_0x518e39[_0x456f95(0x272)]['merges']??[])[_0x456f95(0x1f7)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x3e7d06=new Map();_0x518e39['getRow'](_0x36c2c8)[_0x456f95(0x205)]((_0x4e1db8,_0x41d854)=>{const _0x5d3fc2=_0x456f95,_0x82e937=valueOf(_0x4e1db8);if(typeof _0x82e937!==_0x5d3fc2(0x1ad)||!_0x82e937[_0x5d3fc2(0x1be)]()||Buffer[_0x5d3fc2(0x194)](_0x82e937)>MAX_CELL)throw new Error(_0x5d3fc2(0x1d6));if(_0x3e7d06[_0x5d3fc2(0x193)](_0x82e937))throw new Error(_0x5d3fc2(0x230)+_0x82e937+'.');_0x3e7d06['set'](_0x82e937,_0x41d854);});const _0x5e169d=Object[_0x456f95(0x1e3)](_0x2c22cf['mapping']);if(!_0x5e169d['length'])throw new Error('Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.');const _0x1b971a=new Map(_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x1dd)](_0x40c67a=>[_0x40c67a[_0x456f95(0x240)],_0x40c67a]));if(_0x1b971a[_0x456f95(0x1a6)]!==_0x2c22cf[_0x456f95(0x227)][_0x456f95(0x1f7)])throw new Error(_0x456f95(0x273));if(_0x2c22cf[_0x456f95(0x227)]['some'](_0x740f4f=>_0x740f4f[_0x456f95(0x1bb)][_0x456f95(0x260)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x29f4fa=new Set();for(const [_0x5a0524,_0xb14ede]of _0x5e169d){const _0x19984d=_0x1b971a[_0x456f95(0x236)](_0xb14ede);if(!_0x3e7d06[_0x456f95(0x193)](_0x5a0524))throw new Error(_0x456f95(0x19d)+_0x5a0524+'.');if(!_0x19984d||RESERVED[_0x456f95(0x193)](_0xb14ede)||_0x19984d[_0x456f95(0x253)])throw new Error(_0x456f95(0x21a)+_0xb14ede+'.');if(_0x29f4fa[_0x456f95(0x193)](_0xb14ede))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0xb14ede+'.');if(!TYPES[_0x456f95(0x193)](_0x19984d[_0x456f95(0x1bb)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x19984d[_0x456f95(0x1bb)]+'.');_0x29f4fa[_0x456f95(0x1f6)](_0xb14ede);}for(const _0x1efc11 of _0x2c22cf['fields']){if(_0x1efc11[_0x456f95(0x207)]&&!_0x1efc11[_0x456f95(0x253)]&&!RESERVED[_0x456f95(0x193)](_0x1efc11[_0x456f95(0x240)])&&!_0x29f4fa[_0x456f95(0x193)](_0x1efc11[_0x456f95(0x240)]))throw new Error(_0x456f95(0x276)+_0x1efc11[_0x456f95(0x240)]+'.');}const _0x4facb0={'fileHash':hash(_0x2c9b63),'mappingHash':hash(JSON[_0x456f95(0x214)]([..._0x5e169d][_0x456f95(0x233)](([_0x419121],[_0x2f55c3])=>_0x419121[_0x456f95(0x221)](_0x2f55c3)))),'schemaHash':hash(JSON[_0x456f95(0x214)]([..._0x2c22cf[_0x456f95(0x227)]]['sort']((_0x24a608,_0x1e3a02)=>_0x24a608[_0x456f95(0x240)][_0x456f95(0x221)](_0x1e3a02['code'])))),'sheet':_0x518e39[_0x456f95(0x244)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x557596=_0x5e169d['filter'](([,_0x7c7327])=>isImageContainer(_0x1b971a['get'](_0x7c7327)[_0x456f95(0x1bb)])),_0x46b174=_0x557596[_0x456f95(0x1d5)](([,_0x41fd31])=>_0x1b971a[_0x456f95(0x236)](_0x41fd31)[_0x456f95(0x1bb)][_0x456f95(0x260)]()===_0x456f95(0x23c))['map'](([,_0xae1d59])=>_0xae1d59);if(_0x46b174[_0x456f95(0x1f7)])_0x4facb0[_0x456f95(0x23a)]=_0x46b174;const _0x50d675=_0x40ed54?resolveWorksheetImages(_0x40ed54,_0x518e39[_0x456f95(0x244)],new Set(_0x557596[_0x456f95(0x1dd)](([_0x5099ae])=>_0x3e7d06[_0x456f95(0x236)](_0x5099ae)))):[],_0x22eddd=new Map();for(const _0x195b12 of _0x50d675){const _0x24d377=_0x195b12['row']+':'+_0x195b12[_0x456f95(0x182)],_0xf3320b=_0x22eddd[_0x456f95(0x236)](_0x24d377)??[];_0xf3320b[_0x456f95(0x231)](_0x195b12),_0x22eddd['set'](_0x24d377,_0xf3320b);}const _0x419f2e=new Map();let _0x58899f=0x0;_0x557596[_0x456f95(0x1f7)]&&(_0x4facb0[_0x456f95(0x1ee)]=_0x557596[_0x456f95(0x1dd)](([,_0x110d85])=>_0x110d85),_0x4facb0[_0x456f95(0x20d)]=[],_0x4facb0[_0x456f95(0x1eb)]=0x1,_0x4facb0['media']=[]);const _0x5f0abb=Math['max'](0x0,..._0x50d675[_0x456f95(0x1dd)](_0x195af4=>_0x195af4[_0x456f95(0x181)]));let _0x452a59=0x0;const _0x3132c6=new Set(_0x5e169d['map'](([_0x5c60ce])=>_0x3e7d06[_0x456f95(0x236)](_0x5c60ce)));for(let _0x401512=_0x36c2c8+0x1;_0x401512<=Math[_0x456f95(0x249)](_0x518e39[_0x456f95(0x224)],_0x5f0abb);_0x401512++){const _0x179f3f=_0x518e39[_0x456f95(0x254)](_0x401512);if(_0x179f3f[_0x456f95(0x1a7)]||_0x50d675[_0x456f95(0x211)](_0x2d2aee=>_0x2d2aee[_0x456f95(0x181)]===_0x401512&&_0x2d2aee['hiddenRow']))_0x452a59++;let _0x1f8273=_0x50d675[_0x456f95(0x211)](_0x290fc0=>_0x290fc0[_0x456f95(0x181)]===_0x401512);_0x179f3f[_0x456f95(0x205)](_0x2ab64c=>{const _0x56bed5=_0x456f95;if(_0x2ab64c[_0x56bed5(0x202)]!==null&&_0x2ab64c[_0x56bed5(0x202)]!==undefined&&_0x2ab64c[_0x56bed5(0x202)]!=='')_0x1f8273=!![];});if(!_0x1f8273){_0x4facb0['emptyRows']['push'](_0x401512);continue;}const _0x4a3dab=Object[_0x456f95(0x266)](null);_0x179f3f[_0x456f95(0x205)]((_0x41424a,_0x3f87c3)=>{const _0x4bde1c=_0x456f95;if(_0x3132c6[_0x4bde1c(0x193)](_0x3f87c3))return;try{const _0x139dad=valueOf(_0x41424a);if(typeof _0x139dad===_0x4bde1c(0x1ad)&&Buffer['byteLength'](_0x139dad,_0x4bde1c(0x1dc))>MAX_CELL)throw new Error(_0x4bde1c(0x1cc));}catch(_0x323f81){_0x4facb0[_0x4bde1c(0x268)][_0x4bde1c(0x231)]({'rowNumber':_0x401512,'field':_0x41424a[_0x4bde1c(0x1c1)],'message':_0x323f81[_0x4bde1c(0x18d)]});}});for(const [_0x2e334e,_0x2381a7]of _0x5e169d){try{const _0x57b34d=_0x179f3f[_0x456f95(0x199)](_0x3e7d06[_0x456f95(0x236)](_0x2e334e)),_0x48b710=_0x1b971a[_0x456f95(0x236)](_0x2381a7);if(!isImageContainer(_0x48b710[_0x456f95(0x1bb)])){_0x4a3dab[_0x2381a7]=convert(valueOf(_0x57b34d),_0x48b710);continue;}const _0x288bd6=_0x22eddd[_0x456f95(0x236)](_0x401512+':'+_0x3e7d06['get'](_0x2e334e))??[];if(_0x288bd6['some'](_0x23ada7=>_0x23ada7[_0x456f95(0x1ec)]))throw Error(_0x288bd6[_0x456f95(0x1ef)](_0x35626a=>_0x35626a['error'])[_0x456f95(0x1ec)]);if(_0x57b34d[_0x456f95(0x202)]!=null&&_0x57b34d[_0x456f95(0x202)]!==''&&!_0x288bd6[_0x456f95(0x211)](_0x1449f5=>_0x1449f5[_0x456f95(0x25e)]))throw Error(_0x456f95(0x1a9));const _0x3eede3=[];for(const _0x36fab4 of _0x288bd6)for(const _0x401bd4 of _0x36fab4[_0x456f95(0x24d)]){const _0x464120=_0x40ed54[_0x456f95(0x236)](_0x401bd4);if(!_0x464120)throw Error('Missing\x20image\x20media:\x20'+_0x401bd4+'.');const _0x195505=hash(_0x464120),_0x1ad90e=_0x419f2e[_0x456f95(0x236)](_0x195505)??validateImageBytes(_0x464120);if(!_0x419f2e[_0x456f95(0x193)](_0x1ad90e[_0x456f95(0x247)])){_0x58899f+=_0x1ad90e[_0x456f95(0x1a6)];if(_0x58899f>0x32*0x400*0x400)throw Error(_0x456f95(0x275));_0x419f2e[_0x456f95(0x187)](_0x1ad90e[_0x456f95(0x247)],_0x1ad90e);}_0x3eede3['push'](_0x1ad90e[_0x456f95(0x247)]);}if(!_0x3eede3['length']&&_0x48b710[_0x456f95(0x207)])throw Error(_0x456f95(0x264));if(_0x3eede3[_0x456f95(0x1f7)])_0x4facb0[_0x456f95(0x20d)]['push']({'rowNumber':_0x401512,'field':_0x2381a7,'hashes':_0x3eede3});_0x4a3dab[_0x2381a7]=_0x3eede3['map'](_0x2ee247=>{const _0x62e54b=_0x456f95,_0x111e0a=_0x419f2e['get'](_0x2ee247),_0xd89abf=_0x111e0a[_0x62e54b(0x1bb)]==='image/jpeg'?_0x62e54b(0x19c):_0x111e0a['type'][_0x62e54b(0x24e)](0x6),_0x5ac8ed=_0x2ee247+'.'+_0xd89abf,_0x588136=_0x62e54b(0x241)+'0'[_0x62e54b(0x1f0)](0x40)+'/'+_0x5ac8ed;return _0x48b710[_0x62e54b(0x1bb)][_0x62e54b(0x260)]()===_0x62e54b(0x23c)?{'fileName':_0x5ac8ed,'filePath':_0x588136}:{'key':_0x588136,'name':_0x5ac8ed,'type':_0x111e0a[_0x62e54b(0x1bb)],'size':_0x111e0a[_0x62e54b(0x1a6)]};});}catch(_0x197565){_0x4facb0['errors']['push']({'rowNumber':_0x401512,'field':_0x2381a7,'message':_0x197565[_0x456f95(0x18d)]});}}_0x4facb0[_0x456f95(0x267)][_0x456f95(0x231)]({'rowNumber':_0x401512,'values':_0x4a3dab});}if(_0x4facb0['media'])_0x4facb0[_0x456f95(0x24d)]=[..._0x419f2e['values']()];if(_0x452a59)_0x4facb0[_0x456f95(0x239)][_0x456f95(0x231)](_0x452a59+_0x456f95(0x229));return _0x4facb0;}
|
|
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 a145_0x2bb7(_0x153452,_0x495558){_0x153452=_0x153452-0x145;const _0x1a5216=a145_0x1a52();let _0x2bb795=_0x1a5216[_0x153452];return _0x2bb795;}function a145_0x1a52(){const _0xfc8e33=['max','sha256','ceil','concat','Truncated\x20PNG\x20chunk.','numFrames','isSafeInteger','readUInt16LE','GIF87a','Truncated\x20JPEG.','Invalid\x20PNG\x20header.','2035103yympUk','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF\x20frame\x20exceeds\x20canvas.','toString','frameInfo','Invalid\x20PNG\x20color/depth/interlace.','4477206lLworJ','sync','jpeg-js','GIF\x20image\x20has\x20no\x20palette.','digest','12MctPie','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','update','height','readUInt32BE','11535920BcjMyS','Truncated\x20GIF\x20data.','Invalid\x20image:\x20','Animated\x20PNG\x20is\x20not\x20supported.','pngjs','acTL','IEND','ascii','width','868288QFmBXm','message','1247277sxjWbb','536qSdwmB','5019765wTreVo','83907UQeVWe','decode','Missing\x20PNG\x20data/end.','GIF89a','includes','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Invalid\x20PNG\x20end.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Truncated\x20PNG\x20data.','omggif','image/gif','3EuKPNE','from','length','Missing\x20GIF\x20trailer.','Truncated\x20GIF.','decodeAndBlitFrameRGBA','subarray','push','Invalid\x20GIF\x20block.'];a145_0x1a52=function(){return _0xfc8e33;};return a145_0x1a52();}(function(_0x4e6df7,_0x85781b){const _0x2e0fc9=a145_0x2bb7,_0xbe4133=_0x4e6df7();while(!![]){try{const _0x452c88=parseInt(_0x2e0fc9(0x16b))/0x1*(-parseInt(_0x2e0fc9(0x15b))/0x2)+parseInt(_0x2e0fc9(0x15d))/0x3*(-parseInt(_0x2e0fc9(0x14d))/0x4)+parseInt(_0x2e0fc9(0x15f))/0x5+parseInt(_0x2e0fc9(0x148))/0x6+-parseInt(_0x2e0fc9(0x17f))/0x7+parseInt(_0x2e0fc9(0x15e))/0x8*(parseInt(_0x2e0fc9(0x160))/0x9)+parseInt(_0x2e0fc9(0x152))/0xa;if(_0x452c88===_0x85781b)break;else _0xbe4133['push'](_0xbe4133['shift']());}catch(_0x16ef10){_0xbe4133['push'](_0xbe4133['shift']());}}}(a145_0x1a52,0xa7f4d));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(_0x2b8409,_0x5ef98e){const _0x240e1a=a145_0x2bb7;if(!Number[_0x240e1a(0x17a)](_0x2b8409)||!Number[_0x240e1a(0x17a)](_0x5ef98e)||_0x2b8409<0x1||_0x5ef98e<0x1||_0x2b8409*_0x5ef98e>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x4ee17c){const _0xa251a4=a145_0x2bb7;let _0x32d694=0xd,_0x52643b=0x0,_0x123b57=0x0;const _0x2c2f8=_0x4ee17c[_0xa251a4(0x17b)](0x6),_0x41e7ff=_0x4ee17c[_0xa251a4(0x17b)](0x8),_0xef8090=_0x4ee17c[0xa]&0x80?0x1<<(_0x4ee17c[0xa]&0x7)+0x1:0x0,_0x53e143=_0x43eebe=>{const _0x520e6d=_0xa251a4;if(_0x32d694+_0x43eebe>_0x4ee17c['length'])throw Error(_0x520e6d(0x153));};_0x32d694+=_0xef8090*0x3,_0x53e143(0x0);const _0x23627b=()=>{const _0x21c84d=_0xa251a4,_0x419b89=[];while(!![]){_0x53e143(0x1);const _0x47e2a2=_0x4ee17c[_0x32d694++];if(!_0x47e2a2)break;_0x53e143(_0x47e2a2),_0x419b89[_0x21c84d(0x172)](_0x4ee17c[_0x21c84d(0x171)](_0x32d694,_0x32d694+_0x47e2a2)),_0x32d694+=_0x47e2a2;}return Buffer[_0x21c84d(0x177)](_0x419b89);};while(_0x32d694<_0x4ee17c[_0xa251a4(0x16d)]){const _0x56182f=_0x4ee17c[_0x32d694++];if(_0x56182f===0x3b){if(!_0x52643b||_0x32d694!==_0x4ee17c['length'])throw Error('Invalid\x20GIF\x20trailer.');return;}if(_0x56182f===0x21){_0x53e143(0x1),_0x32d694++,_0x23627b();continue;}if(_0x56182f!==0x2c)throw Error(_0xa251a4(0x173));_0x53e143(0x9);const _0x10e35c=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694),_0x2f60a0=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x2),_0x195f43=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x4),_0x473c36=_0x4ee17c[_0xa251a4(0x17b)](_0x32d694+0x6),_0x5ec545=_0x4ee17c[_0x32d694+0x8];_0x32d694+=0x9,dimensions(_0x195f43,_0x473c36);if(_0x10e35c+_0x195f43>_0x2c2f8||_0x2f60a0+_0x473c36>_0x41e7ff||++_0x52643b>0x2710||(_0x123b57+=_0x2c2f8*_0x41e7ff)>MAX_PIXELS)throw Error(_0xa251a4(0x165));const _0x42a023=_0x5ec545&0x80?0x1<<(_0x5ec545&0x7)+0x1:_0xef8090;if(!_0x42a023)throw Error(_0xa251a4(0x14b));_0x5ec545&0x80&&(_0x53e143(_0x42a023*0x3),_0x32d694+=_0x42a023*0x3);_0x53e143(0x1);const _0x241830=_0x4ee17c[_0x32d694++];if(_0x241830<0x2||_0x241830>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x5402e0=_0x23627b(),_0x3b6b02=0x1<<_0x241830,_0x23e99c=_0x3b6b02+0x1;let _0xa7c786=_0x241830+0x1,_0x5cf1fb=_0x23e99c+0x1,_0x441b36=0x0,_0x23c7c8=-0x1,_0x25b31f=0x0,_0x19c3fd=![];const _0x1ae06d=new Uint32Array(0x1000),_0x3ec051=new Uint16Array(0x1000);for(let _0x6c288b=0x0;_0x6c288b<_0x3b6b02;_0x6c288b++){_0x1ae06d[_0x6c288b]=0x1,_0x3ec051[_0x6c288b]=_0x6c288b;}while(_0x441b36+_0xa7c786<=_0x5402e0['length']*0x8){let _0x4228f4=0x0;for(let _0x36512d=0x0;_0x36512d<_0xa7c786;_0x36512d++,_0x441b36++)_0x4228f4|=(_0x5402e0[_0x441b36>>0x3]>>(_0x441b36&0x7)&0x1)<<_0x36512d;if(_0x4228f4===_0x3b6b02){_0xa7c786=_0x241830+0x1,_0x5cf1fb=_0x23e99c+0x1,_0x23c7c8=-0x1;continue;}if(_0x4228f4===_0x23e99c){_0x19c3fd=!![];break;}if(_0x4228f4>_0x5cf1fb||_0x4228f4===_0x5cf1fb&&_0x23c7c8<0x0||_0x23c7c8<0x0&&_0x4228f4>=_0x3b6b02)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1dfa05=_0x4228f4===_0x5cf1fb?_0x1ae06d[_0x23c7c8]+0x1:_0x1ae06d[_0x4228f4],_0x326bcb=_0x4228f4===_0x5cf1fb?_0x3ec051[_0x23c7c8]:_0x3ec051[_0x4228f4];if(!_0x1dfa05||_0x326bcb>=_0x42a023||(_0x25b31f+=_0x1dfa05)>_0x195f43*_0x473c36)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x23c7c8>=0x0&&_0x5cf1fb<0x1000){_0x1ae06d[_0x5cf1fb]=_0x1ae06d[_0x23c7c8]+0x1,_0x3ec051[_0x5cf1fb]=Math[_0xa251a4(0x174)](_0x3ec051[_0x23c7c8],_0x326bcb),_0x5cf1fb++;if(_0x5cf1fb===0x1<<_0xa7c786&&_0xa7c786<0xc)_0xa7c786++;}_0x23c7c8=_0x4228f4;}if(!_0x19c3fd||_0x25b31f!==_0x195f43*_0x473c36)throw Error(_0xa251a4(0x167));}throw Error(_0xa251a4(0x16e));}export function validateImageBytes(_0x4f68b9){const _0x2527da=a145_0x2bb7;if(!_0x4f68b9['length']||_0x4f68b9['length']>0xa*0x400*0x400)throw Error(_0x2527da(0x14e));let _0x43c128;try{if(_0x4f68b9[_0x2527da(0x171)](0x0,0x8)['equals'](Buffer[_0x2527da(0x16c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x4f68b9[_0x2527da(0x16d)]<0x21||_0x4f68b9['toString'](_0x2527da(0x159),0xc,0x10)!=='IHDR')throw Error(_0x2527da(0x17e));dimensions(_0x4f68b9[_0x2527da(0x151)](0x10),_0x4f68b9[_0x2527da(0x151)](0x14));const _0x480652=_0x4f68b9[_0x2527da(0x151)](0x10),_0x2eb09f=_0x4f68b9[_0x2527da(0x151)](0x14),_0x3a7bbd=_0x4f68b9[0x18],_0x1f0838=_0x4f68b9[0x19],_0x15df28=_0x4f68b9[0x1c],_0x29371d={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1f0838];if(!_0x29371d||![0x1,0x2,0x4,0x8,0x10][_0x2527da(0x164)](_0x3a7bbd)||_0x15df28>0x1)throw Error(_0x2527da(0x147));const _0x564cdd=_0x32bed0=>Math[_0x2527da(0x176)](_0x32bed0*_0x29371d*_0x3a7bbd/0x8)+0x1;let _0x34e773=_0x564cdd(_0x480652)*_0x2eb09f;if(_0x15df28){_0x34e773=0x0;for(const [_0x9f1f57,_0x4a0086,_0x1a212f,_0x1c0d47]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 _0x7616a2=Math['max'](0x0,Math[_0x2527da(0x176)]((_0x480652-_0x9f1f57)/_0x1a212f)),_0x1960a3=Math[_0x2527da(0x174)](0x0,Math['ceil']((_0x2eb09f-_0x4a0086)/_0x1c0d47));if(_0x7616a2&&_0x1960a3)_0x34e773+=_0x564cdd(_0x7616a2)*_0x1960a3;}}let _0x4167d5=0x8,_0x4cba88=![];const _0x1eff65=[];while(_0x4167d5<_0x4f68b9['length']){if(_0x4167d5+0xc>_0x4f68b9['length'])throw Error(_0x2527da(0x178));const _0x2fd3ca=_0x4f68b9[_0x2527da(0x151)](_0x4167d5),_0x23a951=_0x4f68b9[_0x2527da(0x145)](_0x2527da(0x159),_0x4167d5+0x4,_0x4167d5+0x8);if(_0x23a951===_0x2527da(0x157))throw Error(_0x2527da(0x155));if(_0x4167d5+_0x2fd3ca+0xc>_0x4f68b9[_0x2527da(0x16d)])throw Error(_0x2527da(0x168));if(_0x23a951==='IDAT')_0x1eff65[_0x2527da(0x172)](_0x4f68b9[_0x2527da(0x171)](_0x4167d5+0x8,_0x4167d5+0x8+_0x2fd3ca));_0x4167d5+=_0x2fd3ca+0xc;if(_0x23a951===_0x2527da(0x158)){if(_0x2fd3ca||_0x4167d5!==_0x4f68b9['length'])throw Error(_0x2527da(0x166));_0x4cba88=!![];break;}}if(!_0x4cba88||!_0x1eff65[_0x2527da(0x16d)])throw Error(_0x2527da(0x162));if(inflateSync(Buffer[_0x2527da(0x177)](_0x1eff65),{'maxOutputLength':_0x34e773+0x1})[_0x2527da(0x16d)]!==_0x34e773)throw Error(_0x2527da(0x180));const {PNG:_0x10b1d4}=require(_0x2527da(0x156)),_0x456d56=_0x10b1d4[_0x2527da(0x149)]['read'](_0x4f68b9,{'checkCRC':!![]});dimensions(_0x456d56['width'],_0x456d56[_0x2527da(0x150)]),_0x43c128='image/png';}else{if(_0x4f68b9[0x0]===0xff&&_0x4f68b9[0x1]===0xd8){if(_0x4f68b9['at'](-0x2)!==0xff||_0x4f68b9['at'](-0x1)!==0xd9)throw Error(_0x2527da(0x17d));const _0x2c9f9b=require(_0x2527da(0x14a)),_0x10b009=_0x2c9f9b[_0x2527da(0x161)](_0x4f68b9,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x10b009['width'],_0x10b009[_0x2527da(0x150)]),_0x43c128='image/jpeg';}else{if([_0x2527da(0x17c),_0x2527da(0x163)]['includes'](_0x4f68b9[_0x2527da(0x145)](_0x2527da(0x159),0x0,0x6))){if(_0x4f68b9[_0x2527da(0x16d)]<0xe||_0x4f68b9['at'](-0x1)!==0x3b)throw Error(_0x2527da(0x16f));dimensions(_0x4f68b9[_0x2527da(0x17b)](0x6),_0x4f68b9[_0x2527da(0x17b)](0x8)),validateGif(_0x4f68b9);const {GifReader:_0x466c49}=require(_0x2527da(0x169)),_0x374c7a=new _0x466c49(_0x4f68b9);dimensions(_0x374c7a[_0x2527da(0x15a)],_0x374c7a['height']);const _0xb2cadc=_0x374c7a[_0x2527da(0x179)]();if(!_0xb2cadc||_0xb2cadc>0x2710||_0xb2cadc*_0x374c7a['width']*_0x374c7a[_0x2527da(0x150)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x1ae052=new Uint8Array(_0x374c7a[_0x2527da(0x15a)]*_0x374c7a[_0x2527da(0x150)]*0x4);for(let _0x339844=0x0;_0x339844<_0xb2cadc;_0x339844++){const _0x4eb76d=_0x374c7a[_0x2527da(0x146)](_0x339844);if(_0x4eb76d['x']+_0x4eb76d['width']>_0x374c7a[_0x2527da(0x15a)]||_0x4eb76d['y']+_0x4eb76d[_0x2527da(0x150)]>_0x374c7a[_0x2527da(0x150)])throw Error(_0x2527da(0x181));_0x374c7a[_0x2527da(0x170)](_0x339844,_0x1ae052);}_0x43c128=_0x2527da(0x16a);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x2996d7){throw Error(_0x2527da(0x154)+_0x2996d7[_0x2527da(0x15c)]);}return{'contentHash':createHash(_0x2527da(0x175))[_0x2527da(0x14f)](_0x4f68b9)[_0x2527da(0x14c)]('hex'),'type':_0x43c128,'size':_0x4f68b9[_0x2527da(0x16d)],'bytes':_0x4f68b9};}
|
|
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_0x1407f2=a146_0x1e1a;(function(_0x47d0d6,_0x4144ae){const _0x3637ea=a146_0x1e1a,_0x36ec60=_0x47d0d6();while(!![]){try{const _0x23d378=parseInt(_0x3637ea(0x25b))/0x1*(parseInt(_0x3637ea(0x238))/0x2)+parseInt(_0x3637ea(0x220))/0x3+parseInt(_0x3637ea(0x207))/0x4*(-parseInt(_0x3637ea(0x22c))/0x5)+-parseInt(_0x3637ea(0x229))/0x6+parseInt(_0x3637ea(0x1cb))/0x7*(-parseInt(_0x3637ea(0x1d2))/0x8)+parseInt(_0x3637ea(0x1f1))/0x9*(parseInt(_0x3637ea(0x1dc))/0xa)+-parseInt(_0x3637ea(0x258))/0xb*(parseInt(_0x3637ea(0x253))/0xc);if(_0x23d378===_0x4144ae)break;else _0x36ec60['push'](_0x36ec60['shift']());}catch(_0x29f711){_0x36ec60['push'](_0x36ec60['shift']());}}}(a146_0x58f7,0x5a127));import a146_0x115e8e from'node:path';function a146_0x1e1a(_0x5ba095,_0x810121){_0x5ba095=_0x5ba095-0x1b6;const _0x58f7c1=a146_0x58f7();let _0x1e1a6b=_0x58f7c1[_0x5ba095];return _0x1e1a6b;}import{SaxesParser}from'saxes';function a146_0x58f7(){const _0x6bd38d=['XLRICHVALUE','WPS\x20image\x20blip','rel','Unsupported\x20rich\x20image\x20relation\x20namespace.','_rels','1200588BqMVSA','flatMap','Missing\x20future\x20metadata\x20block.','isFinite','Ambiguous\x20XML\x20attribute.','sheetMetadata','from','sheet','anchor\x20row','xl/','blipFill','pop','cellImage','anchor\x20end','round','write','Missing\x20or\x20ambiguous\x20','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','exec','anchor\x20end\x20offset','attrs','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','oneCellAnchor','Missing\x20rich\x20image\x20relationship.','Unsupported\x20worksheet\x20namespace.','674727AAPBVW','richValueRel','col','anchor\x20column','fromEntries','uri','Relationship','metadataType','metadataTypes','1060818BPtqEu','filter','local','5SImZBl','basename','drawing','defaultRowHeight','sheetFormatPr','twoCellAnchor','charCodeAt','rowOff','posix','map','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','error','62qCfsdH','row','metadata','anchor\x20start\x20offset','Value\x20metadata\x20index\x20must\x20be\x20one-based.','r:embed','http://schemas.openxmlformats.org/drawingml/2006/main','\x20relationship\x20in\x20','Relationship\x20target\x20escapes\x20workbook:\x20','image\x20extent','rich\x20image\x20relationship\x20index','type','pic','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','includes','Unsupported\x20workbook\x20namespace.','name','rvData','add','shared','r:link','Unsupported\x20rich\x20structure\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','rich\x20value\x20binding','nvPicPr','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','24WbYuGI','http://schemas.openxmlformats.org/package/2006/relationships','normalize','rvb','value','99704XlaztS','Unsupported\x20rich\x20value\x20namespace.','richValueRels','14669CezPcR','futureMetadata','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','image','_rvRel:LocalImageIdentifier','worksheet','Invalid\x20relationship\x20target:\x20','metadata\x20types','hidden','attributes','http://schemas.openxmlformats.org/spreadsheetml/2006/main','test','value\x20metadata\x20index','absoluteAnchor','Missing\x20XLSX\x20part:\x20','true','set','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','rich\x20future\x20metadata','sheets','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','Image\x20XML\x20node\x20budget\x20exceeded.','http://purl.oclc.org/ooxml/drawingml/main','7bBZePb','has','closetag','image\x20row\x20height\x20coordinate','Unsupported\x20metadata\x20namespace.','Internal','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','240896LRgDHL','r:id','http://purl.oclc.org/ooxml/officeDocument/relationships','Unsupported\x20mapped\x20cell\x20metadata\x20type.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','Missing\x20rich\x20value.','Image\x20XML\x20event\x20budget\x20exceeded.','ext','rvStructures','isSafeInteger','15430kELypL','image\x20height','Relationships','toLowerCase','rdRichValueStructure','workbook','values','http://schemas.openxmlformats.org/officeDocument/2006/relationships','extLst','sheetData','http://purl.oclc.org/ooxml/spreadsheetml/main','doctype','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','MAX_SAFE_INTEGER','text','anchor\x20start','children','future\x20metadata\x20index','WPS\x20image\x20name','join','startsWith','1251NJRALU','Missing\x20local\x20image\x20identifier\x20value.','wsDr','get','Invalid\x20','valueMetadata','http://www.wps.cn/officeDocument/2017/etCustomData','length','cNvPr','rdRichValue','push','Unsupported\x20WPS\x20cell\x20image\x20namespace.','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','cellImages','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','slice'];a146_0x58f7=function(){return _0x6bd38d;};return a146_0x58f7();}const SHEET=[a146_0x1407f2(0x1bd),a146_0x1407f2(0x1e6)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x1407f2(0x200)],DRAWING_MAIN=[a146_0x1407f2(0x23e),a146_0x1407f2(0x1ca)],OFFICE_RELS=[a146_0x1407f2(0x1e3),a146_0x1407f2(0x1d4)],PACKAGE=[a146_0x1407f2(0x254)],RICH=[a146_0x1407f2(0x25d)],RICH_RELS=[a146_0x1407f2(0x1c8)],WPS=[a146_0x1407f2(0x1f7)],DEFAULT_NS=Object[a146_0x1407f2(0x224)]([...[a146_0x1407f2(0x1e1),a146_0x1407f2(0x1c7),'sheet',a146_0x1407f2(0x1b8),a146_0x1407f2(0x1e5),'row','c','f','v',a146_0x1407f2(0x230),'drawing',a146_0x1407f2(0x23a),a146_0x1407f2(0x228),a146_0x1407f2(0x227),a146_0x1407f2(0x25c),a146_0x1407f2(0x1f6),'bk','rc',a146_0x1407f2(0x1e4)][a146_0x1407f2(0x235)](_0x56e96e=>[_0x56e96e,SHEET]),...[a146_0x1407f2(0x1f3),a146_0x1407f2(0x21d),'twoCellAnchor','absoluteAnchor',a146_0x1407f2(0x20d),'to',a146_0x1407f2(0x222),'colOff','rowOff',a146_0x1407f2(0x1d9),a146_0x1407f2(0x244),a146_0x1407f2(0x250),a146_0x1407f2(0x1f9),a146_0x1407f2(0x211)][a146_0x1407f2(0x235)](_0xae341e=>[_0xae341e,DRAWING]),...[a146_0x1407f2(0x256),a146_0x1407f2(0x249),'rv','rvStructures','s','k'][a146_0x1407f2(0x235)](_0x1fd4d0=>[_0x1fd4d0,RICH]),['blip',DRAWING_MAIN],[a146_0x1407f2(0x25a),RICH_RELS],[a146_0x1407f2(0x204),RICH_RELS],[a146_0x1407f2(0x1de),PACKAGE],[a146_0x1407f2(0x226),PACKAGE],['cellImages',WPS],[a146_0x1407f2(0x213),WPS]]),matches=(_0x1493c5,_0x4cbb53,_0x1060d2=DEFAULT_NS[_0x4cbb53]??[])=>_0x1493c5['name']===_0x4cbb53&&_0x1060d2[a146_0x1407f2(0x246)](_0x1493c5[a146_0x1407f2(0x225)]),children=(_0x4f816a,_0x1c38e4,_0x3d19a5=DEFAULT_NS[_0x1c38e4])=>_0x4f816a['children'][a146_0x1407f2(0x22a)](_0xd64c23=>matches(_0xd64c23,_0x1c38e4,_0x3d19a5)),chain=(_0x51ee86,..._0x32a89e)=>_0x32a89e['reduce']((_0x16c3d,_0x17f5aa)=>_0x16c3d[a146_0x1407f2(0x208)](_0x3810d3=>children(_0x3810d3,_0x17f5aa)),[_0x51ee86]),relationshipTypes=_0x1b0d05=>{const _0x10d2e1=a146_0x1407f2;if([_0x10d2e1(0x1fa),_0x10d2e1(0x1e0)][_0x10d2e1(0x246)](_0x1b0d05))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x1b0d05];if(_0x1b0d05===_0x10d2e1(0x221))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x1b0d05===_0x10d2e1(0x213)||_0x1b0d05==='cellImages')return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x1b0d05];return OFFICE_RELS[_0x10d2e1(0x235)](_0x35595c=>_0x35595c+'/'+_0x1b0d05);};function one(_0xfe0e66,_0x1bfcd1){const _0x1eefdd=a146_0x1407f2;if(_0xfe0e66[_0x1eefdd(0x1f8)]!==0x1)throw Error(_0x1eefdd(0x217)+_0x1bfcd1+'.');return _0xfe0e66[0x0];}function integer(_0x2e612f,_0x5cda0d,_0x3b79b9=0x186a0){const _0x391dd2=a146_0x1407f2;if(!_0x2e612f||!/^\d+$/['test'](_0x2e612f)||!Number[_0x391dd2(0x1db)](Number(_0x2e612f))||Number(_0x2e612f)>_0x3b79b9)throw Error(_0x391dd2(0x1f5)+_0x5cda0d+'.');return Number(_0x2e612f);}export function resolveWorksheetImages(_0x308b07,_0x463148,_0x27ba4c){const _0x532f94=a146_0x1407f2;let _0x5b1a5a=0x0,_0x17dc30=0x0,_0x118bea=0x0;const _0x4414b8=new Map(),_0xfc63c7=_0x2b1514=>{const _0x67f74=a146_0x1e1a;if(_0x4414b8['has'](_0x2b1514))return _0x4414b8[_0x67f74(0x1f4)](_0x2b1514);const _0x3d9629=_0x308b07[_0x67f74(0x1f4)](_0x2b1514);if(!_0x3d9629)throw Error(_0x67f74(0x1c1)+_0x2b1514+'.');const _0x195873={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x522cd9=[_0x195873],_0xea3bfc=new SaxesParser({'xmlns':!![]}),_0x1de19e=()=>{const _0x34c5fd=_0x67f74;if(++_0x17dc30>0x1e8480)throw Error(_0x34c5fd(0x1d8));};_0xea3bfc['on'](_0x67f74(0x1e7),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0xea3bfc['on']('opentag',_0xd17b1d=>{const _0x4bf49c=_0x67f74;_0x1de19e();if(++_0x5b1a5a>0x7a120||_0x522cd9['length']>0x40)throw Error(_0x4bf49c(0x1c9));const _0x235b64={};for(const _0x212b34 of Object[_0x4bf49c(0x1e2)](_0xd17b1d[_0x4bf49c(0x1bc)])){const _0x2d391c=OFFICE_RELS[_0x4bf49c(0x246)](_0x212b34[_0x4bf49c(0x225)])?'r:'+_0x212b34[_0x4bf49c(0x22b)]:_0x212b34[_0x4bf49c(0x225)]?'{'+_0x212b34['uri']+'}'+_0x212b34[_0x4bf49c(0x22b)]:_0x212b34[_0x4bf49c(0x22b)];if(_0x2d391c in _0x235b64)throw Error(_0x4bf49c(0x20b));_0x235b64[_0x2d391c]=_0x212b34[_0x4bf49c(0x257)];}const _0x7130a4={'name':_0xd17b1d['local'],'uri':_0xd17b1d[_0x4bf49c(0x225)],'attrs':_0x235b64,'children':[],'text':''};_0x522cd9['at'](-0x1)[_0x4bf49c(0x1ec)]['push'](_0x7130a4),_0x522cd9[_0x4bf49c(0x1fb)](_0x7130a4);}),_0xea3bfc['on'](_0x67f74(0x1ea),_0x46e648=>{const _0x9818cb=_0x67f74;_0x1de19e();const _0x59c0a1=_0x522cd9['at'](-0x1);_0x59c0a1[_0x9818cb(0x1ea)]+=_0x46e648;if(_0x59c0a1[_0x9818cb(0x1ea)][_0x9818cb(0x1f8)]>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0xea3bfc['on'](_0x67f74(0x1cd),()=>{const _0x52906d=_0x67f74;_0x1de19e(),_0x522cd9[_0x52906d(0x212)]();}),_0xea3bfc['on'](_0x67f74(0x237),_0xe44e12=>{throw _0xe44e12;}),_0xea3bfc[_0x67f74(0x216)](_0x3d9629['toString']('utf8'))['close']();const _0x5508ef=one(_0x195873[_0x67f74(0x1ec)],_0x2b1514);return _0x4414b8[_0x67f74(0x1c3)](_0x2b1514,_0x5508ef),_0x5508ef;},_0x495f65=new Map(),_0x1e6a5d=_0x446a5e=>{const _0x567799=a146_0x1e1a;if(_0x495f65[_0x567799(0x1cc)](_0x446a5e))return _0x495f65['get'](_0x446a5e);const _0xd9de47=a146_0x115e8e['posix'][_0x567799(0x1ef)](a146_0x115e8e[_0x567799(0x234)]['dirname'](_0x446a5e),_0x567799(0x206),a146_0x115e8e[_0x567799(0x234)][_0x567799(0x22d)](_0x446a5e)+'.rels');if(!_0x308b07['has'](_0xd9de47))return[];const _0x1f11a1=new Set(),_0x238da0=_0xfc63c7(_0xd9de47);if(!matches(_0x238da0,'Relationships'))throw Error('Unsupported\x20relationship\x20namespace\x20in\x20'+_0xd9de47+'.');const _0x114c97=children(_0x238da0,_0x567799(0x226))[_0x567799(0x235)](_0x2af741=>{const _0x13394a=_0x567799,{Id:_0x1be93b,Type:_0x47d37f,Target:_0x23f2e5,TargetMode:_0x1b9842}=_0x2af741[_0x13394a(0x21b)];if(!_0x1be93b||_0x1f11a1['has'](_0x1be93b)||!_0x47d37f)throw Error(_0x13394a(0x218)+_0xd9de47+'.');return _0x1f11a1[_0x13394a(0x24a)](_0x1be93b),{'id':_0x1be93b,'type':_0x47d37f,'target':_0x23f2e5??'','mode':_0x1b9842};});return _0x495f65[_0x567799(0x1c3)](_0x446a5e,_0x114c97),_0x114c97;},_0x4e5cb6=(_0x2ba98e,_0x2a5eef)=>{const _0x288dcc=a146_0x1e1a,{target:_0x16a080,mode:_0x5bceb2}=_0x2a5eef;if(_0x5bceb2&&_0x5bceb2!==_0x288dcc(0x1d0))throw Error(_0x288dcc(0x1ff)+_0x2ba98e+'.');if(!_0x16a080||_0x16a080[_0x288dcc(0x246)]('\x5c')||/[?#%\x00-\x20]/[_0x288dcc(0x1be)](_0x16a080)||/^[a-z][a-z0-9+.-]*:/i[_0x288dcc(0x1be)](_0x16a080)||_0x16a080[_0x288dcc(0x1f0)]('//'))throw Error(_0x288dcc(0x1b9)+_0x2ba98e+'.');const _0x1f7af7=_0x16a080['startsWith']('/')?_0x16a080[_0x288dcc(0x201)](0x1):a146_0x115e8e[_0x288dcc(0x234)][_0x288dcc(0x255)](a146_0x115e8e[_0x288dcc(0x234)][_0x288dcc(0x1ef)](a146_0x115e8e['posix']['dirname'](_0x2ba98e),_0x16a080));if(_0x1f7af7[_0x288dcc(0x1f0)]('../')||_0x1f7af7==='..'||!_0x1f7af7[_0x288dcc(0x1f0)](_0x288dcc(0x210)))throw Error(_0x288dcc(0x240)+_0x2ba98e+'.');return _0x1f7af7;},_0x5788f=(_0x2a465c,_0x215539,_0x4e32bf)=>{const _0x1f9dca=a146_0x1e1a,_0x1de310=_0x1e6a5d(_0x2a465c)[_0x1f9dca(0x22a)](_0x136ec4=>_0x136ec4['id']===_0x215539&&relationshipTypes(_0x4e32bf)['includes'](_0x136ec4[_0x1f9dca(0x243)]));if(_0x1de310[_0x1f9dca(0x1f8)]!==0x1)throw Error(_0x1f9dca(0x217)+_0x4e32bf+_0x1f9dca(0x23f)+_0x2a465c+'.');return _0x4e5cb6(_0x2a465c,_0x1de310[0x0]);},_0xe6916e=(_0x487146,_0x545712)=>{const _0x55dcb7=a146_0x1e1a,_0x44cfd6=_0x1e6a5d(_0x487146)[_0x55dcb7(0x22a)](_0x102024=>relationshipTypes(_0x545712)[_0x55dcb7(0x246)](_0x102024[_0x55dcb7(0x243)]));if(_0x44cfd6[_0x55dcb7(0x1f8)]!==0x1)throw Error(_0x55dcb7(0x217)+_0x545712+_0x55dcb7(0x23f)+_0x487146+'.');return _0x4e5cb6(_0x487146,_0x44cfd6[0x0]);},_0x4663f1='xl/workbook.xml',_0x57b780=_0xfc63c7(_0x4663f1);if(!matches(_0x57b780,_0x532f94(0x1e1)))throw Error(_0x532f94(0x247));const _0x26e2ee=one(chain(_0x57b780,_0x532f94(0x1c7),_0x532f94(0x20e))[_0x532f94(0x22a)](_0x43d99c=>_0x43d99c[_0x532f94(0x21b)][_0x532f94(0x248)]===_0x463148),_0x532f94(0x1b8)),_0x54bd01=_0x5788f(_0x4663f1,_0x26e2ee[_0x532f94(0x21b)][_0x532f94(0x1d3)],_0x532f94(0x1b8)),_0x4ebcf7=_0xfc63c7(_0x54bd01);if(!matches(_0x4ebcf7,'worksheet'))throw Error(_0x532f94(0x21f));const _0x1871b0=chain(_0x4ebcf7,_0x532f94(0x1e5),_0x532f94(0x239)),_0x18dbe5=new Map(),_0x5caab5=new Set(_0x1871b0['filter'](_0x23226b=>_0x23226b[_0x532f94(0x21b)][_0x532f94(0x1bb)]==='1'||_0x23226b[_0x532f94(0x21b)][_0x532f94(0x1bb)]===_0x532f94(0x1c2))[_0x532f94(0x235)](_0x4b52f6=>integer(_0x4b52f6['attrs']['r'],'hidden\x20image\x20row'))),_0x32e631=_0x3a458a=>{const _0x521359=_0x532f94,_0x302f45=_0x3a458a===undefined?0xf:Number(_0x3a458a);if(!Number[_0x521359(0x20a)](_0x302f45)||_0x302f45<=0x0||_0x302f45>409.5)throw Error(_0x521359(0x1c4));return Math[_0x521359(0x215)](_0x302f45*0x319c);},_0x42c859=_0x32e631(children(_0x4ebcf7,_0x532f94(0x230))[0x0]?.['attrs'][_0x532f94(0x22f)]);for(const _0x5d3259 of _0x1871b0)if(_0x5d3259[_0x532f94(0x21b)]['ht']!==undefined)_0x18dbe5[_0x532f94(0x1c3)](integer(_0x5d3259['attrs']['r'],_0x532f94(0x1ce)),_0x32e631(_0x5d3259[_0x532f94(0x21b)]['ht']));const _0x37a6ce=[],_0x2454ee=_0x440133=>{const _0xffb65=_0x532f94;if(!_0x27ba4c['has'](_0x440133[_0xffb65(0x222)]))return;if(++_0x118bea>0x2710)throw Error(_0xffb65(0x1e8));_0x37a6ce['push'](_0x5caab5[_0xffb65(0x1cc)](_0x440133[_0xffb65(0x239)])?{..._0x440133,'hiddenRow':!![]}:_0x440133);},_0x4a2d09=_0x102d52=>({'row':integer(one(children(_0x102d52,'row',DRAWING),'anchor\x20row')[_0x532f94(0x1ea)],_0x532f94(0x20f),0x1869f)+0x1,'col':integer(one(children(_0x102d52,'col'),_0x532f94(0x223))[_0x532f94(0x1ea)],'anchor\x20column',0xff)+0x1});for(const _0x475703 of children(_0x4ebcf7,_0x532f94(0x22e))){const _0x41624a=_0x5788f(_0x54bd01,_0x475703['attrs'][_0x532f94(0x1d3)],'drawing'),_0xed07eb=_0xfc63c7(_0x41624a);if(!matches(_0xed07eb,_0x532f94(0x1f3)))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x5b0552 of _0xed07eb[_0x532f94(0x1ec)]){if(!['oneCellAnchor','twoCellAnchor',_0x532f94(0x1c0)]['some'](_0x4c99a9=>matches(_0x5b0552,_0x4c99a9)))continue;if(_0x5b0552[_0x532f94(0x248)]===_0x532f94(0x1c0))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x463148+'.');const _0x217a4b=_0x4a2d09(one(children(_0x5b0552,_0x532f94(0x20d)),_0x532f94(0x1eb)));if(!_0x27ba4c[_0x532f94(0x1cc)](_0x217a4b[_0x532f94(0x222)]))continue;let _0x4b346a;const _0x36b335=one(children(_0x5b0552,_0x532f94(0x20d)),_0x532f94(0x1eb)),_0x3cac74=integer(one(children(_0x36b335,_0x532f94(0x233)),'anchor\x20start\x20offset')['text'],_0x532f94(0x23b),Number[_0x532f94(0x1e9)]),_0x399501=_0x18dbe5['get'](_0x217a4b[_0x532f94(0x239)])??_0x42c859;if(_0x3cac74>=_0x399501)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x217a4b[_0x532f94(0x239)]+'.');if(_0x5b0552['name']===_0x532f94(0x21d)){const _0x4df783=one(children(_0x5b0552,_0x532f94(0x1d9)),_0x532f94(0x241)),_0x186f25=integer(_0x4df783['attrs']['cy'],_0x532f94(0x1dd),Number[_0x532f94(0x1e9)]);if(!_0x186f25||_0x3cac74+_0x186f25>_0x399501)_0x4b346a=_0x532f94(0x1d1);}if(_0x5b0552[_0x532f94(0x248)]===_0x532f94(0x231)){const _0x5e2902=one(children(_0x5b0552,'to'),_0x532f94(0x214)),_0x293050=_0x4a2d09(_0x5e2902),_0x22e5ca=integer(one(children(_0x5e2902,'rowOff'),_0x532f94(0x21a))[_0x532f94(0x1ea)],_0x532f94(0x21a),Number[_0x532f94(0x1e9)]),_0x155307=_0x18dbe5[_0x532f94(0x1f4)](_0x293050[_0x532f94(0x239)])??_0x42c859;if(_0x22e5ca>_0x155307||_0x293050[_0x532f94(0x239)]===_0x217a4b['row']&&_0x22e5ca<=_0x3cac74)_0x4b346a=_0x532f94(0x245);if(_0x293050['row']<_0x217a4b[_0x532f94(0x239)]||_0x293050[_0x532f94(0x239)]>_0x217a4b['row']+0x1||_0x293050['row']===_0x217a4b[_0x532f94(0x239)]+0x1&&_0x22e5ca!==0x0)_0x4b346a=_0x532f94(0x1d1);}const _0x45c66e=chain(_0x5b0552,_0x532f94(0x244),_0x532f94(0x211),'blip');for(const _0x54aef0 of _0x45c66e){if(_0x54aef0['attrs']['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x2454ee({..._0x217a4b,'media':[_0x5788f(_0x41624a,_0x54aef0['attrs'][_0x532f94(0x23d)],_0x532f94(0x1b6))],..._0x4b346a?{'error':_0x4b346a}:{}});}if(!_0x45c66e[_0x532f94(0x1f8)])_0x2454ee({..._0x217a4b,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x1bb9a5=_0x310945=>{const _0x1967d3=_0x532f94,_0x2793dd=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x20c)));if(!matches(_0x2793dd,_0x1967d3(0x23a)))throw Error(_0x1967d3(0x1cf));const _0x1de85c=integer(_0x310945[_0x1967d3(0x21b)]['vm'],_0x1967d3(0x1bf));if(!_0x1de85c)throw Error(_0x1967d3(0x23c));const _0x27a9af=children(one(children(_0x2793dd,'valueMetadata'),'valueMetadata'),'bk')[_0x1de85c-0x1];if(!_0x27a9af)throw Error('Missing\x20value\x20metadata\x20block.');const _0x4c5f04=one(children(_0x27a9af,'rc'),'rich\x20metadata\x20record'),_0x263e45=integer(_0x4c5f04[_0x1967d3(0x21b)]['t'],'metadata\x20type\x20index'),_0x2fb67f=children(one(children(_0x2793dd,_0x1967d3(0x228)),_0x1967d3(0x1ba)),_0x1967d3(0x227))[_0x263e45-0x1];if(!_0x263e45||_0x2fb67f?.[_0x1967d3(0x21b)]['name']!=='XLRICHVALUE')throw Error(_0x1967d3(0x1d5));const _0xda09ad=one(children(_0x2793dd,_0x1967d3(0x25c))['filter'](_0x3846b8=>_0x3846b8[_0x1967d3(0x21b)][_0x1967d3(0x248)]===_0x1967d3(0x202)),_0x1967d3(0x1c6)),_0x21abad=children(_0xda09ad,'bk')[integer(_0x4c5f04[_0x1967d3(0x21b)]['v'],_0x1967d3(0x1ed))];if(!_0x21abad)throw Error(_0x1967d3(0x209));const _0x2b1b41=chain(_0x21abad,_0x1967d3(0x1e4))[_0x1967d3(0x208)](_0x37b413=>children(_0x37b413,_0x1967d3(0x1d9),SHEET))[_0x1967d3(0x22a)](_0x57e3af=>_0x57e3af[_0x1967d3(0x21b)][_0x1967d3(0x225)]?.[_0x1967d3(0x1df)]()===_0x1967d3(0x1d6)),_0x12c49d=integer(one(_0x2b1b41[_0x1967d3(0x208)](_0x32da9f=>children(_0x32da9f,_0x1967d3(0x256))),_0x1967d3(0x24f))[_0x1967d3(0x21b)]['i'],'rich\x20value\x20index'),_0x56a084=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x1fa)));if(!matches(_0x56a084,_0x1967d3(0x249)))throw Error(_0x1967d3(0x259));const _0x3f078d=children(_0x56a084,'rv')[_0x12c49d];if(!_0x3f078d)throw Error(_0x1967d3(0x1d7));const _0xb992db=_0xfc63c7(_0xe6916e(_0x4663f1,_0x1967d3(0x1e0)));if(!matches(_0xb992db,_0x1967d3(0x1da)))throw Error(_0x1967d3(0x24d));const _0x537852=children(_0xb992db,'s')[integer(_0x3f078d[_0x1967d3(0x21b)]['s'],'rich\x20structure\x20index')];if(!_0x537852||_0x537852[_0x1967d3(0x21b)]['t']!=='_localImage')throw Error(_0x1967d3(0x24e));const _0x595b5d=children(_0x537852,'k'),_0x3b1814=_0x595b5d[_0x1967d3(0x235)]((_0x28dad8,_0x56b732)=>_0x28dad8['attrs']['n']===_0x1967d3(0x1b7)?_0x56b732:-0x1)['filter'](_0x4b1a10=>_0x4b1a10>=0x0);if(_0x3b1814[_0x1967d3(0x1f8)]!==0x1)throw Error(_0x1967d3(0x252));const _0x43b6dc=children(_0x3f078d,'v',RICH)[_0x3b1814[0x0]];if(!_0x43b6dc)throw Error(_0x1967d3(0x1f2));const _0x10e325=_0xe6916e(_0x4663f1,_0x1967d3(0x221)),_0x12df9a=_0xfc63c7(_0x10e325);if(!matches(_0x12df9a,'richValueRels'))throw Error(_0x1967d3(0x205));const _0x4d8484=children(_0x12df9a,_0x1967d3(0x204))[integer(_0x43b6dc[_0x1967d3(0x1ea)],_0x1967d3(0x242))];if(!_0x4d8484)throw Error(_0x1967d3(0x21e));return _0x5788f(_0x10e325,_0x4d8484[_0x1967d3(0x21b)]['r:id'],_0x1967d3(0x1b6));};let _0x463e1f;const _0x3de5c4=_0x3c473d=>{const _0xb95c6a=_0x532f94;if(!_0x463e1f){_0x463e1f=new Map();const _0x4c7f09=_0x1e6a5d(_0x4663f1)[_0xb95c6a(0x22a)](_0x356072=>[...relationshipTypes(_0xb95c6a(0x213)),...relationshipTypes(_0xb95c6a(0x1fe))][_0xb95c6a(0x246)](_0x356072[_0xb95c6a(0x243)]));if(!_0x4c7f09['length']&&_0x308b07[_0xb95c6a(0x1cc)]('xl/cellimages.xml'))_0x4c7f09[_0xb95c6a(0x1fb)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x4c7f09[_0xb95c6a(0x1f8)]!==0x1)throw Error(_0xb95c6a(0x236));const _0x5e6e1b=_0x4e5cb6(_0x4663f1,_0x4c7f09[0x0]),_0x58bd64=_0xfc63c7(_0x5e6e1b);if(!matches(_0x58bd64,_0xb95c6a(0x1fe)))throw Error(_0xb95c6a(0x1fc));for(const _0x45dc8c of children(_0x58bd64,'cellImage')){const _0x252c48=one(chain(_0x45dc8c,_0xb95c6a(0x244),_0xb95c6a(0x250),_0xb95c6a(0x1f9)),_0xb95c6a(0x1ee))[_0xb95c6a(0x21b)][_0xb95c6a(0x248)];if(!_0x252c48||_0x463e1f[_0xb95c6a(0x1cc)](_0x252c48))throw Error(_0xb95c6a(0x1fd));const _0x4b66b8=one(chain(_0x45dc8c,'pic',_0xb95c6a(0x211),'blip'),_0xb95c6a(0x203));if(_0x4b66b8[_0xb95c6a(0x21b)][_0xb95c6a(0x24c)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x463e1f[_0xb95c6a(0x1c3)](_0x252c48,_0x5788f(_0x5e6e1b,_0x4b66b8[_0xb95c6a(0x21b)]['r:embed'],_0xb95c6a(0x1b6)));}}const _0x4e77f7=_0x463e1f[_0xb95c6a(0x1f4)](_0x3c473d);if(!_0x4e77f7)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x3c473d+'.');return _0x4e77f7;},_0x4f4eb7=new Set();for(const _0x451fae of _0x1871b0[_0x532f94(0x208)](_0x559207=>children(_0x559207,'c'))){const _0x4186e6=/^([A-Z]+)([1-9]\d*)$/[_0x532f94(0x219)](_0x451fae['attrs']['r']??'');if(!_0x4186e6)continue;let _0x256b15=0x0;for(const _0x266156 of _0x4186e6[0x1])_0x256b15=_0x256b15*0x1a+_0x266156[_0x532f94(0x232)](0x0)-0x40;if(!_0x27ba4c[_0x532f94(0x1cc)](_0x256b15))continue;const _0x141e04=integer(_0x4186e6[0x2],'image\x20cell\x20row');if(_0x4f4eb7[_0x532f94(0x1cc)](_0x451fae[_0x532f94(0x21b)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x4f4eb7[_0x532f94(0x24a)](_0x451fae[_0x532f94(0x21b)]['r']);const _0x3b1848=children(_0x451fae,'f');if(!_0x451fae[_0x532f94(0x21b)]['vm']&&!_0x3b1848[_0x532f94(0x1f8)])continue;try{if(_0x141e04<0x1||_0x256b15>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x382141;if(_0x451fae[_0x532f94(0x21b)]['vm']){if(_0x3b1848[_0x532f94(0x1f8)])throw Error(_0x532f94(0x251));if(_0x451fae['attrs']['t']!=='e'||children(_0x451fae,'v')['length']!==0x1||children(_0x451fae,'v')[0x0][_0x532f94(0x1ea)]!=='#VALUE!')throw Error(_0x532f94(0x21c));_0x382141=_0x1bb9a5(_0x451fae);}else{const _0x5081a4=one(_0x3b1848,'image\x20formula');if(_0x5081a4['attrs']['t']===_0x532f94(0x24b)||_0x5081a4[_0x532f94(0x21b)]['si'])throw Error(_0x532f94(0x1c5));const _0x382c39=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i['exec'](_0x5081a4['text']);if(!_0x382c39)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x382141=_0x3de5c4(_0x382c39[0x1]['replace'](/""/g,'\x22'));}_0x2454ee({'row':_0x141e04,'col':_0x256b15,'media':[_0x382141],'nativeCell':!![]});}catch(_0x447e5f){_0x2454ee({'row':_0x141e04,'col':_0x256b15,'media':[],'nativeCell':!![],'error':_0x447e5f['message']});}}return _0x37a6ce;}
|
|
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(_0x5af3d1,_0x3e502c){const _0x1af2c2=a147_0x3981,_0x5a7ccf=_0x5af3d1();while(!![]){try{const _0x2a8865=-parseInt(_0x1af2c2(0xd3))/0x1+parseInt(_0x1af2c2(0xc0))/0x2+-parseInt(_0x1af2c2(0x101))/0x3*(parseInt(_0x1af2c2(0xb7))/0x4)+-parseInt(_0x1af2c2(0x109))/0x5+parseInt(_0x1af2c2(0xdf))/0x6+-parseInt(_0x1af2c2(0xea))/0x7*(parseInt(_0x1af2c2(0xd1))/0x8)+parseInt(_0x1af2c2(0x116))/0x9;if(_0x2a8865===_0x3e502c)break;else _0x5a7ccf['push'](_0x5a7ccf['shift']());}catch(_0x4f0be4){_0x5a7ccf['push'](_0x5a7ccf['shift']());}}}(a147_0xf302,0xe3a43));import{randomUUID,createHash}from'node:crypto';function a147_0x3981(_0x41b07d,_0x4e382e){_0x41b07d=_0x41b07d-0xb7;const _0xf30283=a147_0xf302();let _0x398195=_0xf30283[_0x41b07d];return _0x398195;}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';function a147_0xf302(){const _0x22f939=['schemaFingerprint','mappingHash','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','4246812HyODYw','image/jpeg','00000000-0000-4000-8000-000000000000','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','gif','schemaHash','Completed\x20image\x20checkpoint\x20value\x20changed.','code','imageCells','rows-started','Image\x20media\x20bytes\x20changed.','45605RhiPao','fileHash','all','media','pending','importId','imageFields','.lock','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','uploadFields','entries','maxPixels','uploadId','rows','image/png','size','digest','name','sheet','status','bytes','hex','maxBatchBytes','6MwcaAi','completed','appCode','Invalid\x20import\x20batch\x20size.','type','sha256','key','ENOENT','1433905HkzVHa','missing','values','.lock.recovery','image/gif','Image\x20cell\x20references\x20missing\x20media.','isArray','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','Invalid\x20image\x20media\x20descriptor.','includes','upload','Invalid\x20image\x20manifest\x20limits.','report','10900935UBCWyI','runtimeDomain','contentHash','get','rowNumber','value','update','imageApi','contract','1382924QqiAll','succeeded','binding','hashes','isInteger','errors','.rows.json','isSafeInteger','phase','2990140PCQvBj','batchSize','resume','some','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','fileName','rows-preparing','manifest','png','datasetCode','filePath','maxBatchSize','Invalid\x20image\x20readback\x20digest.','types','dataset-import/','1424nCnIsD','length','343755ueJstT','checkpoint','map','test','reduce','readback','parserVersion','strategy','actorId'];a147_0xf302=function(){return _0x22f939;};return a147_0xf302();}export function assertImageImportCapability(_0x4dcf43,_0x16ce14){const _0x16986f=a147_0x3981;if(!_0x16ce14[_0x16986f(0xed)]?.['length'])return;const _0x129683=_0x4dcf43['imageImport'];if(!_0x129683||_0x129683['version']!==0x1||_0x129683[_0x16986f(0xf6)]!==_0x16986f(0x106)||_0x129683['maxFileBytes']!==0xa00000||_0x129683[_0x16986f(0xf5)]!==0x2625a00||!Array[_0x16986f(0x10f)](_0x129683[_0x16986f(0xcf)])||![_0x16986f(0xf8),_0x16986f(0xe0),_0x16986f(0x10d)]['every'](_0x2d8001=>_0x129683[_0x16986f(0xcf)]['includes'](_0x2d8001)))throw Error('The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.');}export function imageObjectValue(_0x140ee,_0x4908d3,_0x4a7c8b){const _0x2aa7d0=a147_0x3981,_0x15cad8=createHash('sha256')['update'](JSON['stringify']([_0x140ee['actorId'],_0x140ee[_0x2aa7d0(0x103)],_0x140ee[_0x2aa7d0(0xcb)],_0x4908d3]))[_0x2aa7d0(0xfa)](_0x2aa7d0(0xff)),_0x2e3e98={'image/png':_0x2aa7d0(0xca),'image/jpeg':'jpg','image/gif':_0x2aa7d0(0xe3)}[_0x4a7c8b[_0x2aa7d0(0x105)]];if(!_0x2e3e98||!/^[0-9a-f]{64}$/['test'](_0x4a7c8b['contentHash'])||!Number[_0x2aa7d0(0xbe)](_0x4a7c8b[_0x2aa7d0(0xf9)])||_0x4a7c8b[_0x2aa7d0(0xf9)]<=0x0||_0x4a7c8b[_0x2aa7d0(0xf9)]>0xa00000)throw Error(_0x2aa7d0(0x111));const _0x19476a=_0x4a7c8b[_0x2aa7d0(0x118)]+'.'+_0x2e3e98;return{'key':_0x2aa7d0(0xd0)+_0x15cad8+'/'+_0x19476a,'name':_0x19476a,'type':_0x4a7c8b[_0x2aa7d0(0x105)],'size':_0x4a7c8b[_0x2aa7d0(0xf9)]};}export function bindImageManifest(_0x4a6f69,_0x196fec,_0x3f1776){const _0x84e83c=a147_0x3981,_0x20eb57=new Map(_0x4a6f69[_0x84e83c(0xed)]?.[_0x84e83c(0xd5)](_0x546cac=>[_0x546cac[_0x84e83c(0x118)],_0x546cac])),_0x315ea4=new Map(_0x4a6f69[_0x84e83c(0xe7)]?.[_0x84e83c(0xd5)](_0x23ddd9=>[_0x23ddd9[_0x84e83c(0x11a)]+':'+_0x23ddd9['field'],_0x23ddd9[_0x84e83c(0xba)]]));return{..._0x4a6f69,'rows':_0x4a6f69[_0x84e83c(0xf7)][_0x84e83c(0xd5)](_0x306a58=>({..._0x306a58,'values':Object['fromEntries'](Object[_0x84e83c(0xf4)](_0x306a58[_0x84e83c(0x10b)])['map'](([_0x536870,_0x4046d9])=>{const _0x1df543=_0x84e83c,_0x48694c=_0x315ea4[_0x1df543(0x119)](_0x306a58[_0x1df543(0x11a)]+':'+_0x536870);return[_0x536870,_0x48694c?_0x48694c[_0x1df543(0xd5)](_0x3519c9=>{const _0x3e9b35=_0x1df543,_0x373de9=_0x20eb57[_0x3e9b35(0x119)](_0x3519c9);if(!_0x373de9)throw Error(_0x3e9b35(0x10e));const _0x24df00=imageObjectValue(_0x196fec,_0x3f1776,_0x373de9);return _0x4a6f69[_0x3e9b35(0xf3)]?.[_0x3e9b35(0x112)](_0x536870)?{'fileName':_0x24df00[_0x3e9b35(0xfb)],'filePath':_0x24df00[_0x3e9b35(0x107)]}:_0x24df00;}):_0x4046d9];}))}))};}async function exists(_0x2ba6f6){const _0x3358c2=a147_0x3981;try{return await lstat(_0x2ba6f6),!![];}catch(_0x7de628){if(_0x7de628[_0x3358c2(0xe6)]===_0x3358c2(0x108))return![];throw _0x7de628;}}export async function runImageExcelImport(_0x1e8898){const _0x136cb1=a147_0x3981;assertImportContract(_0x1e8898[_0x136cb1(0x11e)],_0x1e8898[_0x136cb1(0x103)],_0x1e8898[_0x136cb1(0xcb)]),assertImageImportCapability(_0x1e8898[_0x136cb1(0x11e)],_0x1e8898[_0x136cb1(0xc9)]);if(!Number[_0x136cb1(0xbb)](_0x1e8898['batchSize'])||_0x1e8898[_0x136cb1(0xc1)]<0x1||_0x1e8898[_0x136cb1(0xc1)]>_0x1e8898[_0x136cb1(0x11e)][_0x136cb1(0xcd)])throw Error(_0x136cb1(0x104));if(_0x1e8898[_0x136cb1(0xc9)][_0x136cb1(0xbc)][_0x136cb1(0xd2)]||!_0x1e8898[_0x136cb1(0xc9)][_0x136cb1(0xf7)]['length'])throw Error(_0x136cb1(0x110));const _0x2a515c=await resolveImportOutputPath(_0x1e8898[_0x136cb1(0xd4)]),_0x57e8f2=await resolveImportOutputPath(_0x1e8898[_0x136cb1(0x115)]),_0x654309=await resolveImportOutputPath(_0x2a515c+_0x136cb1(0xbd)),_0x211c9e=await Promise[_0x136cb1(0xec)]([_0x654309,_0x654309+_0x136cb1(0xf1),_0x654309+'.lock.recovery',..._0x1e8898['inputPaths']??[]][_0x136cb1(0xd5)](resolveImportOutputPath));for(const _0x6c670b of[_0x2a515c,_0x57e8f2,_0x2a515c+_0x136cb1(0xf1),_0x2a515c+_0x136cb1(0x10c)])await resolveImportOutputPath(_0x6c670b);assertImportPaths(_0x2a515c,_0x57e8f2,_0x211c9e);const {contract:_0x10834a,manifest:_0x3bd75d}=_0x1e8898,_0x1a3203=_0x3bd75d['media']??[];if(new Set(_0x1a3203['map'](_0x1b4e36=>_0x1b4e36['contentHash']))[_0x136cb1(0xf9)]!==_0x1a3203[_0x136cb1(0xd2)]||_0x1a3203[_0x136cb1(0xd7)]((_0x5d74ea,_0x1cf30a)=>_0x5d74ea+_0x1cf30a[_0x136cb1(0xf9)],0x0)>0x32*0x400*0x400||(_0x3bd75d['imageCells']??[])[_0x136cb1(0xd7)]((_0x3d2b4d,_0x1e5f42)=>_0x3d2b4d+_0x1e5f42['hashes']['length'],0x0)>0x2710)throw Error(_0x136cb1(0x114));for(const _0x57709e of _0x1a3203)if(_0x57709e[_0x136cb1(0xf9)]!==_0x57709e['bytes']['length']||createHash(_0x136cb1(0x106))[_0x136cb1(0x11c)](_0x57709e[_0x136cb1(0xfe)])[_0x136cb1(0xfa)](_0x136cb1(0xff))!==_0x57709e[_0x136cb1(0x118)])throw Error(_0x136cb1(0xe9));previewImportBatchCount(bindImageManifest(_0x3bd75d,_0x10834a,_0x136cb1(0xe1)),_0x10834a,_0x1e8898[_0x136cb1(0xc1)]);const _0x440436={'appCode':_0x1e8898[_0x136cb1(0x103)],'datasetCode':_0x1e8898[_0x136cb1(0xcb)],'runtimeDomain':_0x1e8898[_0x136cb1(0x117)],'actorId':_0x10834a[_0x136cb1(0xdb)],'fileHash':_0x3bd75d[_0x136cb1(0xeb)],'mappingHash':_0x3bd75d[_0x136cb1(0xdd)],'schemaHash':_0x3bd75d[_0x136cb1(0xe4)],'remoteSchemaHash':_0x10834a[_0x136cb1(0xdc)],'strategy':_0x10834a[_0x136cb1(0xda)],'schemaVersion':_0x10834a['schemaVersion'],'batchSize':_0x1e8898[_0x136cb1(0xc1)],'maxBatchBytes':_0x10834a[_0x136cb1(0x100)],'sheet':_0x3bd75d[_0x136cb1(0xfc)],'parserVersion':_0x3bd75d[_0x136cb1(0xd9)],'imageFields':_0x3bd75d[_0x136cb1(0xf0)],'cells':_0x3bd75d[_0x136cb1(0xe7)],..._0x3bd75d[_0x136cb1(0xf3)]?.[_0x136cb1(0xd2)]?{'uploadFields':_0x3bd75d['uploadFields']}:{},'media':_0x1a3203['map'](({contentHash:_0x542286,type:_0x44ea22,size:_0x2b59f6})=>({'contentHash':_0x542286,'type':_0x44ea22,'size':_0x2b59f6})),'rows':_0x3bd75d[_0x136cb1(0xf7)]},_0x2538b8=await acquireLock(_0x2a515c);try{let _0x56df9b;if(_0x1e8898[_0x136cb1(0xc2)]){try{_0x56df9b=JSON['parse'](await readFile(_0x2a515c,'utf8'));}catch{throw Error(_0x136cb1(0xe2));}if(_0x56df9b['version']!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x136cb1(0xd6)](_0x56df9b[_0x136cb1(0xef)])||canonical(_0x56df9b[_0x136cb1(0xb9)])!==canonical(_0x440436)||![_0x136cb1(0xed),_0x136cb1(0xc8),_0x136cb1(0xe8),_0x136cb1(0x102)][_0x136cb1(0x112)](_0x56df9b['phase'])||!Array[_0x136cb1(0x10f)](_0x56df9b['media'])||_0x56df9b[_0x136cb1(0xed)][_0x136cb1(0xd2)]!==_0x1a3203['length']||_0x56df9b['media'][_0x136cb1(0xc3)]((_0x29853f,_0x12f2cc)=>_0x29853f['hash']!==_0x1a3203[_0x12f2cc][_0x136cb1(0x118)]||![_0x136cb1(0xee),_0x136cb1(0xb8)][_0x136cb1(0x112)](_0x29853f[_0x136cb1(0xfd)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if(['rows-started',_0x136cb1(0x102)][_0x136cb1(0x112)](_0x56df9b[_0x136cb1(0xbf)])&&!await exists(_0x654309))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x56df9b[_0x136cb1(0xbf)]===_0x136cb1(0xed)&&await exists(_0x654309))throw Error(_0x136cb1(0xf2));}else{if(await exists(_0x2a515c)||await exists(_0x654309))throw Error(_0x136cb1(0xc6));_0x56df9b={'version':0x3,'importId':randomUUID(),'binding':_0x440436,'phase':_0x136cb1(0xed),'media':_0x1a3203[_0x136cb1(0xd5)](_0x7f59b0=>({'hash':_0x7f59b0['contentHash'],'status':_0x136cb1(0xee)}))},await saveImportJson(_0x2a515c,_0x56df9b);}const _0x4ac1fc=(_0x4baba9,_0x3cb872)=>{const _0x1e96cf=_0x136cb1;if(!_0x4baba9||_0x4baba9[_0x1e96cf(0x118)]!==_0x3cb872[_0x1e96cf(0x118)])throw Error(_0x1e96cf(0xce));if(_0x4baba9[_0x1e96cf(0xfd)]===_0x1e96cf(0x10a))return undefined;const _0x42cbd0=imageObjectValue(_0x10834a,_0x56df9b['importId'],_0x3cb872);if(_0x4baba9[_0x1e96cf(0xfd)]!==_0x1e96cf(0xb8)||_0x4baba9[_0x1e96cf(0xcc)]!==_0x42cbd0[_0x1e96cf(0x107)]||_0x4baba9[_0x1e96cf(0xc7)]!==_0x42cbd0[_0x1e96cf(0xfb)]||_0x4baba9['type']!==_0x42cbd0[_0x1e96cf(0x105)]||_0x4baba9[_0x1e96cf(0xf9)]!==_0x42cbd0[_0x1e96cf(0xf9)])throw Error(_0x1e96cf(0xde));return _0x42cbd0;};for(let _0x373aef=0x0;_0x373aef<_0x1a3203['length'];_0x373aef++){const _0x39dcc3=_0x1a3203[_0x373aef],_0x7f3bad=_0x56df9b[_0x136cb1(0xed)][_0x373aef],_0x20bf01=imageObjectValue(_0x10834a,_0x56df9b[_0x136cb1(0xef)],_0x39dcc3);if(_0x7f3bad[_0x136cb1(0xfd)]===_0x136cb1(0xb8)&&canonical(_0x7f3bad[_0x136cb1(0x11b)])!==canonical(_0x20bf01))throw Error(_0x136cb1(0xe5));let _0x37b71a;if(_0x1e8898[_0x136cb1(0xc2)]||_0x7f3bad['status']===_0x136cb1(0xb8))_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b[_0x136cb1(0xef)],_0x39dcc3),_0x39dcc3);if(!_0x37b71a&&_0x7f3bad['status']===_0x136cb1(0xb8))throw Error('Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.');if(!_0x37b71a){try{_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0x113)](_0x56df9b['importId'],_0x39dcc3),_0x39dcc3);}catch(_0xa80d72){_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b[_0x136cb1(0xef)],_0x39dcc3),_0x39dcc3);if(!_0x37b71a)throw Error(_0x136cb1(0xc5));}if(!_0x37b71a)_0x37b71a=_0x4ac1fc(await _0x1e8898[_0x136cb1(0x11d)][_0x136cb1(0xd8)](_0x56df9b['importId'],_0x39dcc3),_0x39dcc3);if(!_0x37b71a)throw Error(_0x136cb1(0xc4));}_0x7f3bad[_0x136cb1(0xfd)]=_0x136cb1(0xb8),_0x7f3bad[_0x136cb1(0x11b)]=_0x37b71a,await saveImportJson(_0x2a515c,_0x56df9b);}const _0xe49914=bindImageManifest(_0x3bd75d,_0x10834a,_0x56df9b[_0x136cb1(0xef)]),_0x5881b3=_0x56df9b[_0x136cb1(0xbf)]===_0x136cb1(0xc8)?await exists(_0x654309):_0x56df9b[_0x136cb1(0xbf)]!==_0x136cb1(0xed);_0x56df9b[_0x136cb1(0xbf)]==='media'&&(_0x56df9b[_0x136cb1(0xbf)]=_0x136cb1(0xc8),await saveImportJson(_0x2a515c,_0x56df9b));const _0x8f2099={..._0x1e8898,'manifest':_0xe49914,'checkpoint':_0x654309,'report':_0x57e8f2,'resume':_0x5881b3,'onCheckpointReady':async()=>{const _0x55b047=_0x136cb1;_0x56df9b[_0x55b047(0xbf)]=_0x55b047(0xe8),await saveImportJson(_0x2a515c,_0x56df9b);}},_0x4b97f5=_0x10834a['schemaVersion']===0x2?await runAutoIdExcelImport({..._0x8f2099,'reconcileImageConflicts':_0x1e8898['resume']===!![]&&_0x5881b3}):await runExcelImport(_0x8f2099);return _0x56df9b[_0x136cb1(0xbf)]=_0x136cb1(0x102),await saveImportJson(_0x2a515c,_0x56df9b),{..._0x4b97f5,'checkpoint':_0x2a515c,'imageCount':_0x3bd75d[_0x136cb1(0xe7)]?.[_0x136cb1(0xd7)]((_0x4e9ce8,_0x2d0d60)=>_0x4e9ce8+_0x2d0d60[_0x136cb1(0xba)]['length'],0x0)??0x0,'uniqueImages':_0x1a3203[_0x136cb1(0xd2)]};}finally{await _0x2538b8();}}
|
|
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();}}
|