@lovrabet/lovrabet-cli 2.3.12-beta.1 → 2.3.13-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/README.md +18 -1
- 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.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/metric/contract.d.ts +8 -0
- package/lib/commands/metric/contract.js +1 -0
- package/lib/commands/metric/definition.d.ts +35 -0
- package/lib/commands/metric/definition.js +1 -0
- package/lib/commands/metric/detail.d.ts +2 -0
- package/lib/commands/metric/detail.js +1 -0
- package/lib/commands/metric/exec.d.ts +2 -0
- package/lib/commands/metric/exec.js +1 -0
- package/lib/commands/metric/index.d.ts +1 -0
- package/lib/commands/metric/index.js +1 -0
- package/lib/commands/metric/list.d.ts +2 -0
- package/lib/commands/metric/list.js +1 -0
- package/lib/commands/metric/shared.d.ts +17 -0
- package/lib/commands/metric/shared.js +1 -0
- 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 +4 -0
- 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 +5 -2
- package/skills/lovrabet/SKILL.md +12 -4
- package/skills/lovrabet/guides/app-resolution.md +2 -0
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +2 -0
- package/skills/lovrabet/guides/development-intent-handoff.md +19 -3
- package/skills/lovrabet/guides/metric-consumption.md +134 -0
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +2 -0
- package/skills/lovrabet/references/lovrabet-auth.md +4 -0
- package/skills/lovrabet/references/lovrabet-schedule-workflow.md +16 -0
- package/skills/lovrabet/references/lovrabet-skill-authoring.md +27 -0
- package/skills/lovrabet-report-generation/SKILL.md +28 -0
- package/skills/lovrabet-report-generation/references/business-skill-reuse.md +19 -0
- package/skills/lovrabet-report-generation/references/quality-checks.md +16 -0
- package/skills/lovrabet-report-generation/references/report-workflow.md +42 -0
- package/skills/lovrabet-report-generation/templates/report-outline.md +10 -0
- package/skills/lovrabet.manifest.json +4 -3
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a148_0x2200(){const _0x3e2405=['../framework/preparse.js','join','unknownCommand','115461aXQAaf','flags','120QnpvOc','args','validation','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','93760oajTKA','6589QloPEi','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','defaultCommand','3055xxEwse','../commands/registry.js','hint','1914BqewUj','660gWcrke','79512rNsdfl','14522eerPJt','36rBOfCM','input','18808DxJXpf','553rsCXKk','message','flatMap','assign'];a148_0x2200=function(){return _0x3e2405;};return a148_0x2200();}(function(_0x2f3723,_0x21a573){const _0x20ab4f=a148_0x217b,_0x2fc9ae=_0x2f3723();while(!![]){try{const _0x5c6d63=parseInt(_0x20ab4f(0x1c2))/0x1+parseInt(_0x20ab4f(0x1cc))/0x2+-parseInt(_0x20ab4f(0x1cd))/0x3*(parseInt(_0x20ab4f(0x1c1))/0x4)+parseInt(_0x20ab4f(0x1c6))/0x5*(parseInt(_0x20ab4f(0x1c9))/0x6)+parseInt(_0x20ab4f(0x1d0))/0x7*(parseInt(_0x20ab4f(0x1cf))/0x8)+parseInt(_0x20ab4f(0x1d7))/0x9*(-parseInt(_0x20ab4f(0x1bd))/0xa)+parseInt(_0x20ab4f(0x1ca))/0xb*(parseInt(_0x20ab4f(0x1cb))/0xc);if(_0x5c6d63===_0x21a573)break;else _0x2fc9ae['push'](_0x2fc9ae['shift']());}catch(_0x23a267){_0x2fc9ae['push'](_0x2fc9ae['shift']());}}}(a148_0x2200,0x571d4));import a148_0x223083 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a148_0x217b(_0x23bd1c,_0xcb1bd3){_0x23bd1c=_0x23bd1c-0x1bd;const _0x2200ca=a148_0x2200();let _0x217be1=_0x2200ca[_0x23bd1c];return _0x217be1;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x9387f4){const _0xb5d026=a148_0x217b,_0x21a5bd=a148_0x223083('',{'importMeta':import.meta,'argv':_0x9387f4,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x509af8=[..._0x21a5bd[_0xb5d026(0x1ce)]],_0x4c3974=_0x21a5bd[_0xb5d026(0x1d8)];await correctFlags(_0x4c3974);const _0x260c8b=_0x509af8[0x0];if(!_0x260c8b)throw CliErrors['validation'](_0xb5d026(0x1c0));const _0x261e59=resolveRemovedCommand(_0x260c8b,_0x509af8[0x1]);if(_0x261e59)throw CliErrors['validation'](_0x261e59[_0xb5d026(0x1d1)],_0x261e59[_0xb5d026(0x1c8)]);if(!isKnownService(_0x260c8b)){const _0xbd315c=resolveDynamicServiceCommand(_0x509af8,_0x4c3974);if(!_0xbd315c)throw CliErrors[_0xb5d026(0x1d6)](_0x509af8[_0xb5d026(0x1d5)]('\x20'));return Object['assign'](_0x4c3974,_0xbd315c['flags']),{'definition':_0xbd315c[_0xb5d026(0x1c3)],'rawFlags':_0x4c3974,'args':_0xbd315c[_0xb5d026(0x1be)]};}const _0x32559e=getServiceEntry(_0x260c8b),_0x29ca9d=_0x509af8[0x1]||_0x32559e[_0xb5d026(0x1c5)];if(!_0x29ca9d)throw CliErrors[_0xb5d026(0x1bf)](_0xb5d026(0x1c4)+_0x260c8b+'\x22.');const _0x2b9af4=findDefinition(_0x260c8b,_0x29ca9d);if(!_0x2b9af4)throw CliErrors[_0xb5d026(0x1d6)](_0x260c8b+'\x20'+_0x29ca9d);return{'definition':_0x2b9af4,'rawFlags':_0x4c3974,'args':_0x509af8['slice'](0x2)};}async function correctFlags(_0x2cda7d){const _0x4f6774=a148_0x217b;try{const {correctFlags:_0x1be8c8}=await import(_0x4f6774(0x1d4)),{getAllDefinitions:_0x129a29}=await import(_0x4f6774(0x1c7)),_0x3caa0b=_0x129a29()[_0x4f6774(0x1d2)](_0x365661=>_0x365661[_0x4f6774(0x1d8)]??[]),_0xf94323=_0x1be8c8(_0x2cda7d,_0x3caa0b);Object[_0x4f6774(0x1d3)](_0x2cda7d,_0xf94323[_0x4f6774(0x1d8)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a150_0x56c73b=a150_0x541b;(function(_0x579637,_0x5c6144){const _0x18dbc2=a150_0x541b,_0x1add4b=_0x579637();while(!![]){try{const _0x64cecb=parseInt(_0x18dbc2(0xd5))/0x1+-parseInt(_0x18dbc2(0xd9))/0x2+parseInt(_0x18dbc2(0xeb))/0x3*(-parseInt(_0x18dbc2(0x9a))/0x4)+parseInt(_0x18dbc2(0xef))/0x5+parseInt(_0x18dbc2(0xe9))/0x6+-parseInt(_0x18dbc2(0xf5))/0x7+-parseInt(_0x18dbc2(0xc2))/0x8;if(_0x64cecb===_0x5c6144)break;else _0x1add4b['push'](_0x1add4b['shift']());}catch(_0x38e1e6){_0x1add4b['push'](_0x1add4b['shift']());}}}(a150_0x5baa,0x45071));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a150_0x541b(_0x21f29a,_0x10fbd1){_0x21f29a=_0x21f29a-0x99;const _0x5baa05=a150_0x5baa();let _0x541bd4=_0x5baa05[_0x21f29a];return _0x541bd4;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x3c3dec=>typeof _0x3c3dec===a150_0x56c73b(0xd3)&&Number['isSafeInteger'](_0x3c3dec)&&_0x3c3dec>0x0;function a150_0x5baa(){const _0x3b66ca=['toString','sort','taskId','rows','count','maxBatchSize','unknown','runtimeDomain','Excel\x20row\x20','code','ENOENT','warnings','mappingHash','get','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','some','importId','Invalid\x20import\x20task\x20readback\x20response.','appCode','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','byteLength','schemaVersion','pending','filter','schemaFingerprint','message','string','has','1059320uwSetB','strategy','isArray','length','Import\x20generated\x20ID\x20conflict.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','Excel\x20contains\x20no\x20valid\x20data\x20rows.','binding','unsent','batches','datasetCode','write','onCheckpointReady','reduce','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','report','parse','number','now','423368WjNlEM','rowNumber','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','conflict','326914YQHmZa','includes','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Invalid\x20write\x20result.','uploadFields','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','push','actorId','fileHash','ids','map','succeeded','isInteger','status','checkpoint','keys','1916034pLuTbe','maxBatchBytes','6uLmHBp','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','size','Invalid\x20import\x20batch\x20size.','2577430kyfPLZ','hex','utf8','values','Cannot\x20read\x20the\x20import\x20checkpoint.','version','3819284EeDUok','readTask','elapsedMs','emptyRows','267944uIHobB','Partial\x20import\x20task\x20readback\x20conflict.','incomplete','rowIndexes','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','flatMap','completed','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','reconcileImageConflicts','resume','imageFields','batchSize'];a150_0x5baa=function(){return _0x3b66ca;};return a150_0x5baa();}export async function runAutoIdExcelImport(_0x511a99){const _0x446138=a150_0x56c73b,_0x21f262={..._0x511a99,'checkpoint':await resolveImportOutputPath(_0x511a99['checkpoint']),'report':await resolveImportOutputPath(_0x511a99[_0x446138(0xd1)])},{manifest:_0x317a75,contract:_0x4a72e0,api:_0x468347}=_0x21f262;assertImportContract(_0x4a72e0,_0x21f262[_0x446138(0xb8)],_0x21f262[_0x446138(0xcc)]);if(_0x4a72e0[_0x446138(0xbb)]!==0x2||!_0x468347['readTask'])throw Error('The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.');if(_0x317a75['errors'][_0x446138(0xc5)])throw Error(_0x446138(0xd7));if(!_0x317a75[_0x446138(0xa9)][_0x446138(0xc5)])throw Error(_0x446138(0xc8));if(!Number[_0x446138(0xe5)](_0x21f262[_0x446138(0xa5)])||_0x21f262[_0x446138(0xa5)]<0x1||_0x21f262[_0x446138(0xa5)]>_0x4a72e0[_0x446138(0xab)])throw Error(_0x446138(0xee));assertImportPaths(_0x21f262[_0x446138(0xe7)],_0x21f262[_0x446138(0xd1)]);if(_0x317a75[_0x446138(0xa9)][_0x446138(0xb5)](_0x322f5c=>Object['hasOwn'](_0x322f5c[_0x446138(0xf2)],'id')))throw Error(_0x446138(0xec));const _0xeb1b44=(_0x31a41e,_0x9de435)=>Buffer[_0x446138(0xba)](JSON['stringify']({'schemaFingerprint':_0x4a72e0[_0x446138(0xbe)],'taskId':_0x9de435,'items':_0x31a41e[_0x446138(0xe3)](_0x5c7cf7=>_0x317a75[_0x446138(0xa9)][_0x5c7cf7][_0x446138(0xf2)])}),_0x446138(0xf1)),_0x1c6174=[];let _0x10538b=[];for(let _0x8a6024=0x0;_0x8a6024<_0x317a75[_0x446138(0xa9)][_0x446138(0xc5)];_0x8a6024++){if(_0xeb1b44([_0x8a6024],0x2**0x34)>_0x4a72e0[_0x446138(0xea)])throw Error(_0x446138(0xae)+_0x317a75[_0x446138(0xa9)][_0x8a6024][_0x446138(0xd6)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x10538b[_0x446138(0xc5)]&&(_0x10538b[_0x446138(0xc5)]===_0x21f262['batchSize']||_0xeb1b44([..._0x10538b,_0x8a6024],0x2**0x34)>_0x4a72e0[_0x446138(0xea)])&&(_0x1c6174[_0x446138(0xdf)](_0x10538b),_0x10538b=[]),_0x10538b[_0x446138(0xdf)](_0x8a6024);}if(_0x10538b[_0x446138(0xc5)])_0x1c6174['push'](_0x10538b);const _0x264f7e={'appCode':_0x21f262[_0x446138(0xb8)],'datasetCode':_0x21f262[_0x446138(0xcc)],'runtimeDomain':_0x21f262[_0x446138(0xad)],'actorId':_0x4a72e0[_0x446138(0xe0)],'fileHash':_0x317a75[_0x446138(0xe1)],'mappingHash':_0x317a75[_0x446138(0xb2)],'schemaHash':_0x317a75['schemaHash'],'remoteSchemaHash':_0x4a72e0[_0x446138(0xbe)],'batchSize':_0x21f262[_0x446138(0xa5)],'maxBatchBytes':_0x4a72e0[_0x446138(0xea)],'sheet':_0x317a75['sheet'],'strategy':_0x4a72e0[_0x446138(0xc3)]},_0x2a88db=await acquireLock(_0x21f262[_0x446138(0xe7)]);let _0x5be836;const _0x28daef=Date[_0x446138(0xd4)]();let _0x479d29=0x0;const _0x159f44=[],_0x362c1a=_0x490470=>_0x5be836?.[_0x446138(0xcb)]['filter'](_0x4cd0ce=>_0x4cd0ce['status']===_0x490470)[_0x446138(0xcf)]((_0x523de9,_0x280858)=>_0x523de9+_0x280858[_0x446138(0x9d)][_0x446138(0xc5)],0x0)??0x0,_0x586fad=()=>({'importId':_0x5be836?.['importId'],'sourceRows':_0x317a75[_0x446138(0xa9)][_0x446138(0xc5)],'emptyRows':_0x317a75[_0x446138(0x99)][_0x446138(0xc5)],'succeeded':_0x362c1a(_0x446138(0xe4)),'unknown':_0x362c1a(_0x446138(0xbc)),'conflicts':_0x362c1a(_0x446138(0xd8)),'notAttempted':_0x362c1a('unsent'),'batches':_0x479d29,'batchResults':_0x159f44,'elapsedMs':Date[_0x446138(0xd4)]()-_0x28daef,'checkpoint':_0x21f262[_0x446138(0xe7)],'report':_0x21f262[_0x446138(0xd1)],'warnings':_0x317a75[_0x446138(0xb1)]});try{if(_0x21f262[_0x446138(0xa3)]){try{_0x5be836=JSON[_0x446138(0xd2)](await readFile(_0x21f262[_0x446138(0xe7)],_0x446138(0xf1)));}catch{throw Error(_0x446138(0xf3));}if(!_0x5be836||_0x5be836[_0x446138(0xf4)]!==0x2||typeof _0x5be836[_0x446138(0xb6)]!==_0x446138(0xc0)||!_0x5be836[_0x446138(0xb6)]||canonical(_0x5be836[_0x446138(0xc9)])!==canonical(_0x264f7e)||!Array[_0x446138(0xc4)](_0x5be836['batches'])||_0x5be836[_0x446138(0xcb)]['length']!==_0x1c6174[_0x446138(0xc5)]||new Set(_0x5be836['batches'][_0x446138(0xe3)](_0x1b9545=>_0x1b9545[_0x446138(0xa8)]))[_0x446138(0xed)]!==_0x1c6174[_0x446138(0xc5)]||_0x5be836[_0x446138(0xcb)]['some']((_0xc1012,_0x3fe39d)=>!validId(_0xc1012['taskId'])||_0xc1012[_0x446138(0xa8)]>0x2**0x34||canonical(_0xc1012[_0x446138(0x9d)])!==canonical(_0x1c6174[_0x3fe39d])||![_0x446138(0xca),'pending',_0x446138(0xe4),_0x446138(0xd8)][_0x446138(0xda)](_0xc1012[_0x446138(0xe6)])||!Array[_0x446138(0xc4)](_0xc1012[_0x446138(0xe2)])||_0xc1012[_0x446138(0xe2)]['some'](_0x451733=>!validId(_0x451733))||new Set(_0xc1012[_0x446138(0xe2)])[_0x446138(0xed)]!==_0xc1012[_0x446138(0xe2)]['length']||_0xc1012[_0x446138(0xe2)][_0x446138(0xc5)]!==0x0&&_0xc1012['ids'][_0x446138(0xc5)]!==_0xc1012['rowIndexes'][_0x446138(0xc5)]||_0xc1012['status']===_0x446138(0xe4)&&_0xc1012['ids']['length']!==_0xc1012[_0x446138(0x9d)]['length']||_0xc1012[_0x446138(0xe6)]===_0x446138(0xca)&&_0xc1012[_0x446138(0xe2)][_0x446138(0xc5)]!==0x0))throw Error(_0x446138(0xa1));const _0x203e16=_0x5be836[_0x446138(0xcb)][_0x446138(0x9f)](_0x33f2ab=>_0x33f2ab[_0x446138(0xe2)]);if(new Set(_0x203e16)[_0x446138(0xed)]!==_0x203e16['length'])throw Error(_0x446138(0x9e));}else{try{await lstat(_0x21f262[_0x446138(0xe7)]);throw Error(_0x446138(0xd0));}catch(_0x42f199){if(_0x42f199[_0x446138(0xaf)]!==_0x446138(0xb0))throw _0x42f199;}const _0x4001ba=new Set();_0x5be836={'version':0x2,'importId':randomUUID(),'binding':_0x264f7e,'batches':_0x1c6174['map'](_0x1e7a27=>{const _0xf63718=_0x446138;let _0x47a2bc;do{_0x47a2bc=Number(BigInt('0x'+randomBytes(0x7)[_0xf63718(0xa6)](_0xf63718(0xf0)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x4001ba[_0xf63718(0xc1)](_0x47a2bc));return _0x4001ba['add'](_0x47a2bc),{'taskId':_0x47a2bc,'rowIndexes':_0x1e7a27,'ids':[],'status':_0xf63718(0xca)};})},await saveImportJson(_0x21f262[_0x446138(0xe7)],_0x5be836);}await _0x21f262[_0x446138(0xce)]?.();const _0x396660=_0x5be836,_0x38c493=async(_0x4f3815,_0x754cdb)=>{const _0xd001ef=_0x446138;_0x4f3815[_0xd001ef(0xe6)]=_0xd001ef(0xd8),await saveImportJson(_0x21f262[_0xd001ef(0xe7)],_0x396660);throw Error(_0x754cdb);},_0x1d8a49=async _0x1f32d1=>{const _0x454048=_0x446138;let _0xd3dc1=await _0x468347[_0x454048(0xf6)](_0x1f32d1[_0x454048(0xa8)]);if(!Array[_0x454048(0xc4)](_0xd3dc1))throw Error(_0x454048(0xb7));if(_0x1f32d1[_0x454048(0xe6)]==='unsent'&&_0xd3dc1[_0x454048(0xc5)])return _0x38c493(_0x1f32d1,_0x454048(0xb9));if(!_0xd3dc1['length']){if(_0x1f32d1['status']===_0x454048(0xe4)||_0x1f32d1[_0x454048(0xe2)][_0x454048(0xc5)])return _0x38c493(_0x1f32d1,_0x454048(0xb4));return![];}if(_0xd3dc1[_0x454048(0xc5)]!==_0x1f32d1[_0x454048(0x9d)][_0x454048(0xc5)])return _0x38c493(_0x1f32d1,_0x454048(0x9b));const _0x4f2c3f=_0xd3dc1['map'](_0x14c38a=>_0x14c38a?.['id']);if(_0x4f2c3f['some'](_0x38c58c=>!validId(_0x38c58c)))return _0x38c493(_0x1f32d1,_0x454048(0xc6));if(new Set(_0x4f2c3f)[_0x454048(0xed)]!==_0x4f2c3f['length'])return _0x38c493(_0x1f32d1,'Import\x20generated\x20ID\x20conflict.');const _0x136f5e=new Map(_0xd3dc1[_0x454048(0xe3)](_0x35bb9a=>[_0x35bb9a['id'],_0x35bb9a])),_0x3437d2=_0x1f32d1[_0x454048(0xe2)][_0x454048(0xc5)]?[..._0x1f32d1[_0x454048(0xe2)]]:[..._0x4f2c3f][_0x454048(0xa7)]((_0x5d274f,_0x2ae753)=>_0x5d274f-_0x2ae753);if(_0x3437d2[_0x454048(0xb5)](_0xab1d76=>!validId(_0xab1d76))||_0x3437d2['some']((_0x1a8010,_0x37b289)=>_0x37b289>0x0&&_0x1a8010<=_0x3437d2[_0x37b289-0x1])||_0x3437d2[_0x454048(0xb5)](_0x44b7a6=>!_0x136f5e[_0x454048(0xc1)](_0x44b7a6)))return _0x38c493(_0x1f32d1,_0x454048(0xc6));_0xd3dc1=_0x3437d2[_0x454048(0xe3)](_0x4adb2a=>_0x136f5e[_0x454048(0xb3)](_0x4adb2a));const _0x142420=new Set(_0x396660[_0x454048(0xcb)][_0x454048(0xbd)](_0x359e21=>_0x359e21!==_0x1f32d1)[_0x454048(0x9f)](_0x45de53=>_0x45de53[_0x454048(0xe2)]));if(_0x3437d2[_0x454048(0xb5)](_0x34948b=>_0x142420[_0x454048(0xc1)](_0x34948b)))return _0x38c493(_0x1f32d1,'Import\x20generated\x20ID\x20collision.');for(let _0x3e4e64=0x0;_0x3e4e64<_0xd3dc1[_0x454048(0xc5)];_0x3e4e64++){const _0x2f079f=_0x317a75[_0x454048(0xa9)][_0x1f32d1[_0x454048(0x9d)][_0x3e4e64]][_0x454048(0xf2)];if(Object[_0x454048(0xe8)](_0x2f079f)[_0x454048(0xb5)](_0x40d33a=>!sameImportValue(_0x2f079f[_0x40d33a],_0xd3dc1[_0x3e4e64][_0x40d33a],_0x317a75[_0x454048(0xa4)]?.[_0x454048(0xda)](_0x40d33a)&&!_0x317a75[_0x454048(0xdd)]?.[_0x454048(0xda)](_0x40d33a))))return _0x38c493(_0x1f32d1,_0x454048(0xde)+_0x317a75[_0x454048(0xa9)][_0x1f32d1[_0x454048(0x9d)][_0x3e4e64]][_0x454048(0xd6)]+'.');}return _0x1f32d1[_0x454048(0xe2)]=_0x3437d2,_0x1f32d1['status']=_0x454048(0xe4),await saveImportJson(_0x21f262[_0x454048(0xe7)],_0x396660),!![];};if(_0x396660[_0x446138(0xcb)][_0x446138(0xb5)](_0x104435=>_0x104435['status']==='conflict'&&!(_0x21f262[_0x446138(0xa3)]&&_0x21f262[_0x446138(0xa2)]&&_0x317a75['imageFields']?.[_0x446138(0xc5)]&&_0x104435['ids'][_0x446138(0xc5)]===_0x104435[_0x446138(0x9d)][_0x446138(0xc5)])))throw Error(_0x446138(0xdb));if(_0x21f262['resume']){for(const _0x5290a4 of _0x396660[_0x446138(0xcb)])await _0x1d8a49(_0x5290a4);}for(const _0xe9719 of _0x396660[_0x446138(0xcb)]){if(_0xe9719[_0x446138(0xe6)]===_0x446138(0xe4))continue;if(!_0x21f262[_0x446138(0xa3)])await _0x1d8a49(_0xe9719);_0xe9719[_0x446138(0xe6)]='pending',await saveImportJson(_0x21f262[_0x446138(0xe7)],_0x396660),_0x479d29++;const _0x5e8cca=_0xe9719[_0x446138(0x9d)][_0x446138(0xe3)](_0x166d9d=>_0x317a75[_0x446138(0xa9)][_0x166d9d]['values']),_0x151d75=Date[_0x446138(0xd4)](),_0x5b8f06={'batch':_0x479d29,'rowStart':_0x317a75[_0x446138(0xa9)][_0xe9719[_0x446138(0x9d)][0x0]][_0x446138(0xd6)],'rowEnd':_0x317a75[_0x446138(0xa9)][_0xe9719[_0x446138(0x9d)]['at'](-0x1)][_0x446138(0xd6)],'count':_0x5e8cca[_0x446138(0xc5)],'bytes':_0xeb1b44(_0xe9719[_0x446138(0x9d)],_0xe9719[_0x446138(0xa8)]),'elapsedMs':0x0,'status':'unknown'};_0x159f44[_0x446138(0xdf)](_0x5b8f06);try{const _0x99c1d4=await _0x468347[_0x446138(0xcd)](_0x5e8cca,_0xe9719[_0x446138(0xa8)]);if(!_0x99c1d4||_0x99c1d4[_0x446138(0xaa)]!==_0x5e8cca[_0x446138(0xc5)]||!Array['isArray'](_0x99c1d4['ids'])||_0x99c1d4[_0x446138(0xe2)][_0x446138(0xc5)]!==_0x5e8cca[_0x446138(0xc5)]||_0x99c1d4[_0x446138(0xe2)]['some'](_0x28be54=>!validId(_0x28be54))||new Set(_0x99c1d4['ids'])[_0x446138(0xed)]!==_0x99c1d4['ids'][_0x446138(0xc5)])throw Error(_0x446138(0xdc));_0xe9719[_0x446138(0xe2)]=_0x99c1d4[_0x446138(0xe2)],await saveImportJson(_0x21f262[_0x446138(0xe7)],_0x396660);if(!await _0x1d8a49(_0xe9719))throw Error('Incomplete\x20readback.');}catch(_0x2dc3b1){if(_0xe9719['status']===_0x446138(0xd8))throw _0x2dc3b1;try{await _0x1d8a49(_0xe9719);}catch(_0x18feb3){if(_0xe9719['status']==='conflict')throw _0x18feb3;}if(_0xe9719[_0x446138(0xe6)]!==_0x446138(0xe4))throw Error(_0x446138(0xc7));}finally{_0x5b8f06[_0x446138(0xf7)]=Date[_0x446138(0xd4)]()-_0x151d75,_0x5b8f06[_0x446138(0xe6)]=_0xe9719['status']===_0x446138(0xe4)?_0x446138(0xe4):_0xe9719[_0x446138(0xe6)]===_0x446138(0xd8)?_0x446138(0xd8):_0x446138(0xac);}}const _0x21e848={'status':_0x446138(0xa0),..._0x586fad()};return await saveImportJson(_0x21f262[_0x446138(0xd1)],_0x21e848),_0x21e848;}catch(_0x218285){if(_0x5be836)await saveImportJson(_0x21f262[_0x446138(0xd1)],{'status':_0x446138(0x9c),..._0x586fad(),'message':_0x218285[_0x446138(0xbf)]});throw _0x218285;}finally{await _0x2a88db();}}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a151_0x5832be=a151_0x4e1e;(function(_0xdda645,_0x217399){const _0x59d624=a151_0x4e1e,_0x313c87=_0xdda645();while(!![]){try{const _0x191526=parseInt(_0x59d624(0x1e4))/0x1+-parseInt(_0x59d624(0x128))/0x2*(parseInt(_0x59d624(0x15d))/0x3)+-parseInt(_0x59d624(0x14a))/0x4+-parseInt(_0x59d624(0x1d1))/0x5+parseInt(_0x59d624(0x1dc))/0x6*(-parseInt(_0x59d624(0x1c1))/0x7)+parseInt(_0x59d624(0x175))/0x8*(-parseInt(_0x59d624(0x17c))/0x9)+parseInt(_0x59d624(0x110))/0xa*(parseInt(_0x59d624(0x13e))/0xb);if(_0x191526===_0x217399)break;else _0x313c87['push'](_0x313c87['shift']());}catch(_0x28ed71){_0x313c87['push'](_0x313c87['shift']());}}}(a151_0xa9d7,0x216fe));function a151_0x4e1e(_0x35ae24,_0x2e2257){_0x35ae24=_0x35ae24-0x10b;const _0xa9d7e3=a151_0xa9d7();let _0x4e1e7f=_0xa9d7e3[_0x35ae24];return _0x4e1e7f;}import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a151_0x2f6191 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a151_0x269ae0 from'exceljs';import a151_0x3cf2e1 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',a151_0x5832be(0x159),a151_0x5832be(0x1b8),a151_0x5832be(0x1bc),a151_0x5832be(0x143),a151_0x5832be(0x152),a151_0x5832be(0x12d),'modifierName','createTime',a151_0x5832be(0x1be),'deleted']),TYPES=new Set([a151_0x5832be(0x1a3),'text',a151_0x5832be(0x1d2),a151_0x5832be(0x130),a151_0x5832be(0x192),a151_0x5832be(0x18b),a151_0x5832be(0x153),'date',a151_0x5832be(0x1af),a151_0x5832be(0x1b3),a151_0x5832be(0x137)]),isImageContainer=_0x5a07bd=>[a151_0x5832be(0x1b3),'upload'][a151_0x5832be(0x149)](_0x5a07bd['toLowerCase']()),hash=_0x54aace=>createHash(a151_0x5832be(0x1bf))['update'](_0x54aace)[a151_0x5832be(0x124)](a151_0x5832be(0x172)),require=createRequire(import.meta.url),DefinedNameXform=require(a151_0x5832be(0x13d)),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a151_0x5832be(0x133)](a151_0x5832be(0x16b))),zipRequire=createRequire(excelRequire['resolve'](a151_0x5832be(0x18a))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire('./reader/readerFor'),zipUtf8=zipRequire(a151_0x5832be(0x1aa)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x33cd20,_0xd020bb){const _0xd3c242=a151_0x5832be,_0x26485f=()=>new Error(_0xd3c242(0x119)),_0x4108ec=_0x33cd20[_0xd3c242(0x179)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x4108ec<0x0||_0x4108ec+0x16>_0x33cd20[_0xd3c242(0x16e)]||_0x4108ec+0x16+_0x33cd20[_0xd3c242(0x16c)](_0x4108ec+0x14)!==_0x33cd20['length'])throw _0x26485f();let _0x169304=_0x33cd20[_0xd3c242(0x16c)](_0x4108ec+0xa),_0x7b88a7=_0x33cd20[_0xd3c242(0x1ef)](_0x4108ec+0xc),_0x19aca3=_0x33cd20[_0xd3c242(0x1ef)](_0x4108ec+0x10),_0x5784e4=_0x4108ec;const _0x24e2a2=_0x4108ec-0x14,_0x248cea=_0x24e2a2>=0x0&&_0x33cd20['readUInt32LE'](_0x24e2a2)===0x7064b50,_0x132260=[0x4,0x6,0x8,0xa][_0xd3c242(0x17d)](_0x682e2c=>_0x33cd20[_0xd3c242(0x16c)](_0x4108ec+_0x682e2c)===0xffff)||_0x7b88a7===0xffffffff||_0x19aca3===0xffffffff;if(_0x248cea!==_0x132260)throw _0x26485f();if(_0x248cea){if(_0x33cd20[_0xd3c242(0x179)](Buffer[_0xd3c242(0x1eb)]([0x50,0x4b,0x6,0x7]))!==_0x24e2a2)throw _0x26485f();const _0xb2ec78=_0xd8e47c=>{const _0x32a232=_0xd3c242,_0x35f360=Number(_0x33cd20[_0x32a232(0x156)](_0xd8e47c));if(!Number[_0x32a232(0x127)](_0x35f360))throw _0x26485f();return _0x35f360;};_0x5784e4=_0xb2ec78(_0x24e2a2+0x8);if(_0x33cd20['readUInt32LE'](_0x24e2a2+0x4)!==0x0||_0x33cd20['readUInt32LE'](_0x24e2a2+0x10)!==0x1||_0x5784e4>_0x24e2a2-0x38||_0x33cd20[_0xd3c242(0x1ef)](_0x5784e4)!==0x6064b50||_0xb2ec78(_0x5784e4+0x4)!==0x2c||_0x5784e4+0x38!==_0x24e2a2||_0x33cd20['readUInt32LE'](_0x5784e4+0x10)!==0x0||_0x33cd20[_0xd3c242(0x1ef)](_0x5784e4+0x14)!==0x0)throw _0x26485f();_0x169304=_0xb2ec78(_0x5784e4+0x20),_0x7b88a7=_0xb2ec78(_0x5784e4+0x28),_0x19aca3=_0xb2ec78(_0x5784e4+0x30);if(_0xb2ec78(_0x5784e4+0x18)!==_0x169304)throw _0x26485f();}else{if(_0x33cd20[_0xd3c242(0x16c)](_0x4108ec+0x4)!==0x0||_0x33cd20['readUInt16LE'](_0x4108ec+0x6)!==0x0||_0x33cd20['readUInt16LE'](_0x4108ec+0x8)!==_0x169304)throw _0x26485f();}const _0x5e2d42=_0xd020bb[_0xd3c242(0x145)];if(_0x19aca3!==_0x5e2d42||_0x169304!==_0xd020bb['entryCount']||_0x19aca3+_0x7b88a7!==_0x5784e4)throw _0x26485f();return _0x5784e4;}function consumerEntryName(_0x38c235,_0x5502dd){const _0x37a6ca=a151_0x5832be;if(_0x5502dd[_0x37a6ca(0x1ba)][_0x37a6ca(0x1df)](_0x10c7e5=>_0x10c7e5['id']===0x1)[_0x37a6ca(0x16e)]>0x1)throw new Error(_0x37a6ca(0x164));const _0x56e1e1=_0x5502dd,_0x171f61=_0x5502dd[_0x37a6ca(0x1c6)];if(!Buffer[_0x37a6ca(0x19c)](_0x56e1e1[_0x37a6ca(0x189)])||!Buffer[_0x37a6ca(0x19c)](_0x56e1e1[_0x37a6ca(0x173)])||!Buffer['isBuffer'](_0x56e1e1['fileCommentRaw'])||!Number['isSafeInteger'](_0x171f61)||_0x171f61<0x0||_0x171f61>_0x38c235[_0x37a6ca(0x16e)]-0x1e||_0x38c235[_0x37a6ca(0x1ef)](_0x171f61)!==0x4034b50)throw new Error(_0x37a6ca(0x1b5));const _0x590d0a=_0x171f61+0x1e+_0x38c235[_0x37a6ca(0x16c)](_0x171f61+0x1a),_0x51c2af=_0x590d0a+_0x38c235['readUInt16LE'](_0x171f61+0x1c)+_0x5502dd[_0x37a6ca(0x1d8)];if(!Number[_0x37a6ca(0x127)](_0x51c2af)||_0x51c2af>_0x38c235[_0x37a6ca(0x16e)])throw new Error(_0x37a6ca(0x1b5));if(_0x590d0a>_0x38c235[_0x37a6ca(0x16e)]||!_0x38c235[_0x37a6ca(0x1a5)](_0x171f61+0x1e,_0x590d0a)[_0x37a6ca(0x168)](_0x56e1e1[_0x37a6ca(0x189)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x2ab697=new ZipEntry({},{'decodeFileName':zipUtf8[_0x37a6ca(0x1a2)]});_0x2ab697['bitFlag']=_0x5502dd[_0x37a6ca(0x1b0)],_0x2ab697[_0x37a6ca(0x150)]=_0x56e1e1['fileNameRaw'],_0x2ab697[_0x37a6ca(0x1cb)]=_0x56e1e1[_0x37a6ca(0x1f8)],_0x2ab697['extraFieldsLength']=_0x56e1e1[_0x37a6ca(0x173)][_0x37a6ca(0x16e)],_0x2ab697[_0x37a6ca(0x1ac)](zipReader(_0x56e1e1[_0x37a6ca(0x173)])),_0x2ab697['handleUTF8'](),_0x2ab697[_0x37a6ca(0x162)]=_0x5502dd[_0x37a6ca(0x162)],_0x2ab697[_0x37a6ca(0x141)]=_0x5502dd['externalFileAttributes'],_0x2ab697['processAttributes']();const _0x4bf037=_0x2ab697[_0x37a6ca(0x114)]||Boolean((_0x2ab697['unixPermissions']??0x0)&0x4000),_0x197761=zipPaths[_0x37a6ca(0x133)](_0x2ab697[_0x37a6ca(0x1a1)]),_0x2fbbd1=_0x197761['startsWith']('/')?_0x197761[_0x37a6ca(0x194)](0x1):_0x197761;return{'name':_0x2fbbd1,'original':_0x2ab697['fileNameStr'],'directory':_0x4bf037};}export function normalizeImportFields(_0x140faa){const _0x542013=a151_0x5832be;if(!_0x140faa||(_0x140faa['source']??_0x140faa['dataset']?.[_0x542013(0x142)])!==_0x542013(0x1ce))throw new Error(_0x542013(0x1a7));const _0x1dc464=Array[_0x542013(0x138)](_0x140faa[_0x542013(0x1e5)]),_0x21b89d=_0x1dc464?_0x140faa['fields']:_0x140faa[_0x542013(0x136)];if(!Array[_0x542013(0x138)](_0x21b89d)||_0x21b89d[_0x542013(0x16e)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x69473d=[],_0x496ff1=new Set();for(const _0x2a1db6 of _0x21b89d){if(_0x2a1db6['deleted']===!![])continue;let _0x326619=_0x2a1db6[_0x542013(0x116)]??{};if(!_0x1dc464&&typeof _0x326619===_0x542013(0x1a3)){try{_0x326619=JSON[_0x542013(0x19e)](_0x326619);}catch{throw new Error(_0x542013(0x112));}if(!_0x326619||typeof _0x326619!==_0x542013(0x1bb)||Array['isArray'](_0x326619))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x3c8a24=_0x1dc464?_0x2a1db6[_0x542013(0x198)]:_0x2a1db6['code'],_0x10d4ad=_0x1dc464?_0x2a1db6[_0x542013(0x12c)]:_0x2a1db6['type']??_0x2a1db6[_0x542013(0x199)];if(typeof _0x3c8a24!=='string'||!_0x3c8a24||typeof _0x10d4ad!==_0x542013(0x1a3)||_0x496ff1['has'](_0x3c8a24))throw new Error(_0x542013(0x1d4));if(_0x10d4ad['toLowerCase']()==='serial_number')throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x496ff1[_0x542013(0x1de)](_0x3c8a24);const _0x575f5d=_0x1dc464?_0x2a1db6:_0x326619,_0x17a37a={'code':_0x3c8a24,'type':_0x10d4ad,'required':_0x575f5d[_0x542013(0x134)]===!![]};if(RESERVED[_0x542013(0x1e0)](_0x3c8a24)||_0x575f5d[_0x542013(0x17a)]===!![]||_0x575f5d[_0x542013(0x118)]===!![])_0x17a37a['generated']=!![];_0x69473d[_0x542013(0x13a)](_0x17a37a);}return _0x69473d;}async function checkArchive(_0x255d80,_0x43ee4e){await new Promise((_0x2a3f2c,_0x786ef8)=>{a151_0x3cf2e1['fromBuffer'](_0x255d80,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x38e53e,_0x1ff8ff)=>{const _0x12bded=a151_0x4e1e;if(_0x38e53e||!_0x1ff8ff){_0x786ef8(_0x38e53e??new Error(_0x12bded(0x12b)));return;}let _0x200cb9;try{_0x200cb9=centralDirectoryEnd(_0x255d80,_0x1ff8ff);}catch(_0x2b9748){_0x1ff8ff[_0x12bded(0x183)](),_0x786ef8(_0x2b9748);return;}let _0x595317=0x0,_0x2137bc=0x0,_0x564a5d=0x0,_0xf06ecd=0x0,_0x5a4873=0x0,_0x591c84=0x0,_0x1f6f1d=0x0,_0x329df6=0x0,_0x17bb94=0x0,_0x39a8cd=![],_0x2f6dc4;const _0xd0c503=new Set(),_0x3e9538=_0x337ec6=>{const _0x166186=_0x12bded;if(_0x39a8cd)return;_0x39a8cd=!![],_0x2f6dc4?.[_0x166186(0x1f1)](),_0x1ff8ff[_0x166186(0x183)](),_0x786ef8(_0x337ec6);},_0xa6a43c=(_0x2ede47,_0x4f3afb)=>{const _0x5549ec=_0x12bded;if(!_0x2ede47||!/^\d+$/[_0x5549ec(0x147)](_0x2ede47))throw new Error('Invalid\x20worksheet\x20coordinate.');const _0x3504ea=Number(_0x2ede47);if(!Number[_0x5549ec(0x127)](_0x3504ea)||_0x3504ea<0x1||_0x3504ea>_0x4f3afb)throw new Error(_0x5549ec(0x1e1)+_0x4f3afb+'.');return _0x3504ea;},_0x2d12f3=(_0x427912,_0x33b679=MAX_XML_COLUMNS)=>{const _0x4ee328=_0x12bded,_0x1a4f34=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x4ee328(0x11e)](_0x427912);if(!_0x1a4f34)throw new Error(_0x4ee328(0x186));let _0x37dedd=0x0;for(const _0x53530f of _0x1a4f34[0x1])_0x37dedd=_0x37dedd*0x1a+_0x53530f[_0x4ee328(0x1e9)](0x0)-0x40;if(_0x37dedd>_0x33b679)throw new Error(_0x4ee328(0x180)+_0x33b679+_0x4ee328(0x16d));return{'row':_0xa6a43c(_0x1a4f34[0x2],MAX_XML_ROWS),'col':_0x37dedd};},_0x2dab11=_0x454ef3=>{const _0x5b3efa=_0x12bded;if(_0x454ef3[_0x5b3efa(0x198)]===_0x5b3efa(0x11f)||_0x454ef3[_0x5b3efa(0x198)]===_0x5b3efa(0x19d))return;for(const _0x45adf1 of _0x454ef3['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x5b3efa(0x147)](_0x45adf1[_0x5b3efa(0x1f4)]('!')[_0x5b3efa(0x13b)]()||''))continue;const _0x38b6e5=nameCoordinates[_0x5b3efa(0x129)](_0x45adf1),_0x10e5b9=_0x5b3efa(0x160)in _0x38b6e5,_0x41d520=_0x10e5b9?[_0x38b6e5[_0x5b3efa(0x160)],_0x38b6e5[_0x5b3efa(0x1f0)]]:[_0x38b6e5[_0x5b3efa(0x12f)]],_0x147234=_0x10e5b9?[_0x38b6e5[_0x5b3efa(0x10b)],_0x38b6e5[_0x5b3efa(0x117)]]:[_0x38b6e5[_0x5b3efa(0x1c5)]],_0x4587f4=(_0x3704ab,_0x3d6b4e)=>Number[_0x5b3efa(0x127)](_0x3704ab)&&_0x3704ab>=0x1&&_0x3704ab<=_0x3d6b4e;if(!_0x41d520[_0x5b3efa(0x140)](_0x5ac9a4=>_0x4587f4(_0x5ac9a4,MAX_XML_ROWS))||!_0x147234[_0x5b3efa(0x140)](_0x40d9ac=>_0x4587f4(_0x40d9ac,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x1f6f1d+=_0x10e5b9?(_0x38b6e5['bottom']-_0x38b6e5[_0x5b3efa(0x160)]+0x1)*(_0x38b6e5[_0x5b3efa(0x117)]-_0x38b6e5[_0x5b3efa(0x10b)]+0x1):0x1;if(_0x1f6f1d>MAX_ROWS)throw new Error(_0x5b3efa(0x1ee));}};_0x1ff8ff['on'](_0x12bded(0x1e3),_0x3e9538),_0x1ff8ff['on']('entry',_0x4f8fc4=>{const _0x34cf6f=_0x12bded;if(_0x39a8cd)return;if(++_0x564a5d>0x2710||(_0x595317+=_0x4f8fc4[_0x34cf6f(0x18e)])>MAX_EXPANDED){_0x3e9538(new Error(_0x34cf6f(0x167)));return;}let _0x10bef3;try{_0x10bef3=consumerEntryName(_0x255d80,_0x4f8fc4);}catch(_0x3f48c5){_0x3e9538(_0x3f48c5);return;}if(_0x10bef3[_0x34cf6f(0x1b6)]){_0x1ff8ff[_0x34cf6f(0x182)]();return;}const _0x23e095=_0x10bef3[_0x34cf6f(0x198)];if(_0x43ee4e&&(_0x23e095!==_0x10bef3[_0x34cf6f(0x169)]||_0xd0c503[_0x34cf6f(0x1e0)](_0x23e095)||_0x23e095['startsWith']('/')||_0x23e095[_0x34cf6f(0x149)]('\x5c'))){_0x3e9538(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x23e095!==_0x10bef3[_0x34cf6f(0x169)]&&(_0x23e095==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x34cf6f(0x147)](_0x23e095))){_0x3e9538(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x45c09b=_0x23e095==='xl/workbook.xml';if(_0x45c09b&&_0xd0c503[_0x34cf6f(0x1e0)](_0x23e095)){_0x3e9538(new Error(_0x34cf6f(0x195)));return;}_0xd0c503[_0x34cf6f(0x1de)](_0x23e095);const _0x52fd24=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x34cf6f(0x147)](_0x23e095);if(_0x52fd24&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x34cf6f(0x147)](_0x23e095)){_0x3e9538(new Error(_0x34cf6f(0x1d0)));return;}_0x1ff8ff['openReadStream'](_0x4f8fc4,(_0x5255a2,_0x4a690c)=>{const _0x353162=_0x34cf6f;if(_0x39a8cd){_0x4a690c?.[_0x353162(0x1f1)]();return;}if(_0x5255a2||!_0x4a690c){_0x3e9538(_0x5255a2??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x2f6dc4=_0x4a690c;const _0x577804=_0x43ee4e?[]:undefined,_0x1837fd=_0x43ee4e&&/[.](xml|rels)$/[_0x353162(0x147)](_0x23e095)?new StringDecoder(_0x353162(0x1e2)):undefined,_0x335888=_0x1837fd?new SaxesParser({'xmlns':![]}):undefined,_0x134b6d=()=>{if(++_0x17bb94>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x335888?.['on']('doctype',()=>{const _0x536aae=_0x353162;throw Error(_0x536aae(0x174));}),_0x335888?.['on'](_0x353162(0x146),()=>{const _0x58c552=_0x353162;_0x134b6d();if(++_0x329df6>0x7a120)throw Error(_0x58c552(0x1dd));}),_0x335888?.['on'](_0x353162(0x1d7),_0x134b6d),_0x335888?.['on'](_0x353162(0x17e),_0x134b6d),_0x335888?.['on'](_0x353162(0x1e3),_0x139502=>{throw _0x139502;});const _0x3986dc=_0x52fd24||_0x45c09b?new StringDecoder(_0x353162(0x1e2)):undefined,_0x1f077b=_0x52fd24||_0x45c09b?new SaxesParser({'xmlns':![]}):undefined;let _0x305d0b,_0x2aaf52=0x0,_0x4f49ee=0x0,_0x5d1c35,_0x182685,_0x5c3960=![],_0x34e0ac=![],_0x47422b,_0x5840f5,_0xa50430,_0x1fa2a5=![];const _0x1396ba=[],_0xff051d=new Set();let _0x379f2d;const _0x4fd011=(_0x15fdb1,_0x2253a6=0x0)=>{const _0x4e6bef=_0x353162;_0x5a4873+=_0x2253a6+Math[_0x4e6bef(0x1a8)](0x0,_0x15fdb1-_0x4f49ee),_0x4f49ee=Math[_0x4e6bef(0x1a8)](_0x4f49ee,_0x15fdb1);if(_0x5a4873>MAX_ROWS)throw new Error(_0x4e6bef(0x1cc));};_0x1f077b?.['on'](_0x353162(0x146),_0x28df51=>{const _0x209c1c=_0x353162;if(_0x45c09b){if(!_0x305d0b&&_0x28df51[_0x209c1c(0x198)]==='definedName')_0x305d0b=new DefinedNameXform();_0x305d0b?.[_0x209c1c(0x125)](_0x28df51);return;}if(_0x28df51[_0x209c1c(0x198)]===_0x209c1c(0x12f)){if(_0x34e0ac)throw new Error(_0x209c1c(0x111));_0xa6a43c(_0x28df51[_0x209c1c(0x18d)]['r'],MAX_XML_ROWS),_0x5d1c35=undefined,_0xa50430=undefined,_0x1fa2a5=![];}else{if(_0x28df51[_0x209c1c(0x198)]==='c'){if(_0x34e0ac)throw new Error(_0x209c1c(0x19a));_0x34e0ac=!![],_0x5c3960=Boolean(Number[_0x209c1c(0x185)](_0x28df51['attributes']['s']??'',0xa)),_0x379f2d=undefined,_0x47422b=_0x28df51[_0x209c1c(0x18d)]['r']||undefined,_0x5840f5=_0x47422b?_0x2d12f3(_0x47422b):undefined;if(_0x5840f5)_0x182685=_0x5840f5;else _0x182685=_0x5d1c35?{'row':_0x5d1c35[_0x209c1c(0x12f)],'col':_0x5d1c35['col']+0x1}:undefined;}else{if(_0x34e0ac&&['f','v','t'][_0x209c1c(0x149)](_0x28df51[_0x209c1c(0x198)])){_0x379f2d=_0x28df51[_0x209c1c(0x198)];if(_0x28df51['name']==='f'&&_0x28df51[_0x209c1c(0x18d)]['t'])_0x5c3960=!![];}else{if(_0x34e0ac&&_0x28df51['name']==='r')_0x5c3960=!![];else{if(_0x28df51['name']===_0x209c1c(0x154)){const _0x4b4d4a=_0x28df51[_0x209c1c(0x18d)][_0x209c1c(0x155)];if(!_0x4b4d4a)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x401e6c=_0x4b4d4a[_0x209c1c(0x1f4)](':');if(_0x401e6c['length']>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x2b32f0=_0x2d12f3(_0x401e6c[0x0]),_0xaf284b=_0x2d12f3(_0x401e6c[0x1]??_0x401e6c[0x0]);_0xff051d[_0x209c1c(0x1de)](_0x4b4d4a),_0x4fd011(Math[_0x209c1c(0x1a8)](_0x2b32f0[_0x209c1c(0x1c5)],_0xaf284b[_0x209c1c(0x1c5)]),0x1);}else{if(_0x28df51[_0x209c1c(0x198)]==='col'){const _0x1741d9=_0xa6a43c(_0x28df51[_0x209c1c(0x18d)][_0x209c1c(0x157)],0x4000),_0x115234=_0xa6a43c(_0x28df51[_0x209c1c(0x18d)][_0x209c1c(0x1a8)],0x4000);if(_0x1741d9>_0x115234)throw new Error(_0x209c1c(0x1b4));_0x4fd011(_0x115234,0x1);}else{if(_0x28df51[_0x209c1c(0x198)]===_0x209c1c(0x1d3)){const _0x4555dc=_0x28df51[_0x209c1c(0x18d)][_0x209c1c(0x155)];if(!_0x4555dc)throw new Error(_0x209c1c(0x10e));const _0x2d9884=_0x4555dc[_0x209c1c(0x1f4)](':');if(_0x2d9884[_0x209c1c(0x16e)]>0x2)throw new Error(_0x209c1c(0x10e));const _0x31c5aa=_0x2d12f3(_0x2d9884[0x0]),_0x384745=_0x2d12f3(_0x2d9884[0x1]??_0x2d9884[0x0]);_0x4fd011(Math['max'](_0x31c5aa[_0x209c1c(0x1c5)],_0x384745[_0x209c1c(0x1c5)]));const _0x2fbc58=(Math[_0x209c1c(0x163)](_0x384745[_0x209c1c(0x12f)]-_0x31c5aa[_0x209c1c(0x12f)])+0x1)*(Math['abs'](_0x384745[_0x209c1c(0x1c5)]-_0x31c5aa[_0x209c1c(0x1c5)])+0x1);_0xf06ecd+=_0x2fbc58+_0x2aaf52++;if(_0xf06ecd>MAX_ROWS)throw new Error(_0x209c1c(0x1f5));}}}}}}}}),_0x1f077b?.['on'](_0x353162(0x1d7),_0x3d0d05=>{const _0x11ce8a=_0x353162;if(_0x45c09b){_0x305d0b?.[_0x11ce8a(0x11d)](_0x3d0d05);return;}if(_0x34e0ac&&_0x379f2d&&_0x3d0d05)_0x5c3960=!![];}),_0x1f077b?.['on'](_0x353162(0x17e),_0x1d6457=>{const _0x187f94=_0x353162;if(_0x45c09b){_0x305d0b&&!_0x305d0b[_0x187f94(0x1ec)]()&&(_0x2dab11(_0x305d0b[_0x187f94(0x16a)]),_0x305d0b=undefined);return;}if(_0x1d6457['name']==='c'){!_0x5c3960&&_0x47422b&&!_0xa50430&&(_0xa50430={'before':_0x5d1c35,'cells':[]});if(_0xa50430){if(++_0x591c84>0xf4240)throw new Error(_0x187f94(0x19b));_0xa50430[_0x187f94(0x10d)]['push']({'reference':_0x47422b,'address':_0x5840f5,'materialized':_0x5c3960});if(!_0x47422b&&_0x5c3960)_0x1fa2a5=!![];}if(_0x5c3960){if(!_0xa50430||_0x47422b){if(!_0x182685)throw new Error(_0x187f94(0x196));if(_0x182685['col']>MAX_XML_COLUMNS)throw new Error(_0x187f94(0x1bd));_0x4fd011(_0x182685['col']);}_0x5d1c35=_0x182685;}_0x34e0ac=![],_0x182685=undefined,_0x47422b=undefined,_0x5840f5=undefined,_0x379f2d=undefined;}else{if(_0x1d6457[_0x187f94(0x198)]==='row'){if(_0xa50430&&_0x1fa2a5)_0x1396ba[_0x187f94(0x13a)](_0xa50430);_0xa50430=undefined,_0x1fa2a5=![];}else{if(_0x1d6457['name']===_0x379f2d)_0x379f2d=undefined;}}}),_0x1f077b?.['on']('error',_0x589769=>{const _0x2f7ea1=_0x353162;throw new Error(_0x2f7ea1(0x1a4)+_0x589769['message']);}),_0x4a690c['on'](_0x353162(0x1e3),_0x3e9538),_0x4a690c['on'](_0x353162(0x1cd),_0x3a1291=>{const _0x4666fb=_0x353162;if(_0x39a8cd)return;_0x2137bc+=_0x3a1291['length'],_0x577804?.[_0x4666fb(0x13a)](_0x3a1291);if(_0x2137bc>MAX_EXPANDED){_0x3e9538(new Error(_0x4666fb(0x167)));return;}try{if(_0x335888&&_0x1837fd)_0x335888[_0x4666fb(0x1ae)](_0x1837fd['write'](_0x3a1291));if(_0x1f077b&&_0x3986dc)_0x1f077b[_0x4666fb(0x1ae)](_0x3986dc[_0x4666fb(0x1ae)](_0x3a1291));}catch(_0x54140e){_0x3e9538(_0x54140e instanceof Error?_0x54140e:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x4a690c['on'](_0x353162(0x170),()=>{const _0x75814e=_0x353162;if(_0x39a8cd)return;try{if(_0x335888&&_0x1837fd)_0x335888[_0x75814e(0x1ae)](_0x1837fd[_0x75814e(0x170)]())[_0x75814e(0x183)]();if(_0x1f077b&&_0x3986dc)_0x1f077b['write'](_0x3986dc['end']())[_0x75814e(0x183)]();for(const _0x533b83 of _0x1396ba){let _0x56e4d5=_0x533b83['before'];for(const _0x4efe54 of _0x533b83[_0x75814e(0x10d)]){if(!_0x4efe54[_0x75814e(0x193)]&&!(_0x4efe54[_0x75814e(0x1c7)]&&_0xff051d[_0x75814e(0x1e0)](_0x4efe54[_0x75814e(0x1c7)])))continue;const _0xa27edb=_0x4efe54[_0x75814e(0x1e8)]??(_0x56e4d5?{'row':_0x56e4d5[_0x75814e(0x12f)],'col':_0x56e4d5[_0x75814e(0x1c5)]+0x1}:undefined);if(!_0xa27edb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0xa27edb[_0x75814e(0x1c5)]>MAX_XML_COLUMNS)throw new Error(_0x75814e(0x1bd));_0x4fd011(_0xa27edb[_0x75814e(0x1c5)]),_0x56e4d5=_0xa27edb;}}_0x1396ba[_0x75814e(0x16e)]=0x0,_0xff051d[_0x75814e(0x1d6)]();}catch(_0x2c70ca){_0x3e9538(_0x2c70ca instanceof Error?_0x2c70ca:new Error(_0x75814e(0x1cf)));return;}if(_0x577804)_0x43ee4e['set'](_0x23e095,Buffer['concat'](_0x577804));_0x2f6dc4=undefined,_0x1ff8ff['readEntry']();});});}),_0x1ff8ff['on'](_0x12bded(0x170),()=>{const _0x5e7a84=_0x12bded;if(_0x39a8cd)return;if(_0x1ff8ff[_0x5e7a84(0x145)]!==_0x200cb9){_0x786ef8(new Error(_0x5e7a84(0x14c)));return;}if(!_0xd0c503['has'](_0x5e7a84(0x11b))||!_0xd0c503[_0x5e7a84(0x1e0)](_0x5e7a84(0x131)))_0x786ef8(new Error(_0x5e7a84(0x181)));else _0x2a3f2c();}),_0x1ff8ff[_0x12bded(0x182)]();});});}function valueOf(_0xe4eb47){const _0x48e7d1=a151_0x5832be,_0x48fd96=_0xe4eb47[_0x48e7d1(0x1c8)];if(_0x48fd96&&typeof _0x48fd96===_0x48e7d1(0x1bb)&&(_0x48e7d1(0x1ea)in _0x48fd96||_0x48e7d1(0x14b)in _0x48fd96)){if(!(_0x48e7d1(0x176)in _0x48fd96)||_0x48fd96[_0x48e7d1(0x176)]===undefined)throw new Error(_0x48e7d1(0x1e6));return _0x48fd96['result'];}return _0x48fd96;}function a151_0xa9d7(){const _0x4e3a1a=['ref','readBigUInt64LE','min','rowCount','tenantCode','isInteger','values','sort','557994URUpNL','get','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','top','imageCells','versionMadeBy','abs','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','headerRow','parserVersion','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','equals','original','model','exceljs','readUInt16LE','\x20columns.','length','Cell\x20exceeds\x2064\x20KB.','end','dataset-import/','hex','extraFieldRaw','XML\x20DTD/entities\x20are\x20not\x20supported.','167584AobeJO','result','Required\x20field\x20is\x20not\x20mapped:\x20','file','lastIndexOf','generated','Missing\x20image\x20media:\x20','18kkOHOz','some','closetag','size','Worksheet\x20exceeds\x20','File\x20is\x20not\x20an\x20XLSX\x20workbook.','readEntry','close','Expected\x20an\x20Excel\x20date\x20cell.','parseInt','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','Required\x20image\x20value\x20is\x20missing.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','fileNameRaw','jszip','integer','extname','attributes','uncompressedSize','getCell','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','repeat','decimal','materialized','slice','Duplicate\x20workbook\x20ZIP\x20entry.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','trim','name','dataType','Invalid\x20worksheet\x20nested\x20cell.','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','isBuffer','_xlnm.Print_Titles','parse','Workbook','.xlsx','fileNameStr','utf8decode','string','Invalid\x20worksheet\x20XML:\x20','subarray','contentHash','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','max','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','./utf8','Duplicate\x20dataset\x20field\x20codes.','readExtraFields','toLowerCase','write','datetime','generalPurposeBitFlag','Unknown\x20Excel\x20header:\x20','errors','image','Invalid\x20worksheet\x20column\x20range.','Invalid\x20ZIP\x20local\x20file\x20header.','directory','Requested\x20worksheet\x20does\x20not\x20exist.','appCode','imageFields','extraFields','object','datasetId','Worksheet\x20exceeds\x2016384\x20columns.','updateTime','sha256','code','287bqTZeV','mapping','Duplicate\x20mapping\x20target:\x20','merges','col','relativeOffsetOfLocalHeader','reference','value','Unknown\x20or\x20generated\x20mapping\x20field:\x20','type','fileComment','Worksheet\x20column\x20objects\x20exceed\x20100000.','data','METADATA','Invalid\x20worksheet\x20XML.','Non-canonical\x20worksheet\x20ZIP\x20entry.','123300gHYgVI','textarea','mergeCell','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','batchSize','clear','text','compressedSize','entries','emptyRows','getTime','24312Hzyfrl','Image\x20XML\x20node\x20budget\x20exceeded.','add','filter','has','Worksheet\x20coordinate\x20exceeds\x20','utf8','error','2777LPnENJ','fields','Formula\x20has\x20no\x20cached\x20result.','uploadFields','address','charCodeAt','formula','from','parseClose','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','readUInt32LE','bottom','destroy','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','date','split','Worksheet\x20merge\x20work\x20exceeds\x20100000.','getRow','media','fileCommentRaw','left','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','cells','Invalid\x20worksheet\x20merge\x20reference.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','10TpmKBn','Invalid\x20worksheet\x20nested\x20row.','Invalid\x20dataset\x20field\x20extension\x20metadata.','hiddenRow','dir','sheet','extend','right','autoIncrement','Invalid\x20ZIP\x20central\x20directory\x20layout.','Merged\x20cells\x20are\x20not\x20supported.','[Content_Types].xml','Expected\x20a\x20text\x20cell.','parseText','exec','_xlnm.Print_Area','xlsx','jpg','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','Unsupported\x20field\x20type:\x20','digest','parseOpen','load','isSafeInteger','2gHzNgP','decodeEx','XLSX\x20file\x20exceeds\x2020\x20MB.','Invalid\x20XLSX\x20archive.','doType','modifierId','message','row','number','xl/workbook.xml','MAX_SAFE_INTEGER','resolve','required','rows','properties','upload','isArray','map','push','pop','stringify','exceljs/lib/xlsx/xform/book/defined-name-xform.js','7036700YushST','worksheets','every','externalFileAttributes','sourceType','creatorId','isFinite','readEntryCursor','opentag','test','hidden','includes','347332xsqfks','sharedFormula','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','set','image/jpeg','Required\x20value\x20is\x20missing.','fileName','create','creatorName','boolean','hyperlink'];a151_0xa9d7=function(){return _0x4e3a1a;};return a151_0xa9d7();}function convert(_0xe33feb,_0x34c526){const _0x57b878=a151_0x5832be;if(_0xe33feb===null||_0xe33feb===undefined||_0xe33feb===''){if(_0x34c526[_0x57b878(0x134)]&&!_0x34c526['generated'])throw new Error(_0x57b878(0x14f));return null;}if(typeof _0xe33feb===_0x57b878(0x1a3)&&Buffer['byteLength'](_0xe33feb,_0x57b878(0x1e2))>MAX_CELL)throw new Error(_0x57b878(0x16f));switch(_0x34c526[_0x57b878(0x1ca)][_0x57b878(0x1ad)]()){case _0x57b878(0x1a3):case'text':case _0x57b878(0x1d2):if(typeof _0xe33feb!==_0x57b878(0x1a3))throw new Error(_0x57b878(0x11c));return _0xe33feb;case _0x57b878(0x130):case _0x57b878(0x192):case _0x57b878(0x18b):if(typeof _0xe33feb!==_0x57b878(0x130)||!Number[_0x57b878(0x144)](_0xe33feb)||Math[_0x57b878(0x163)](_0xe33feb)>Number[_0x57b878(0x132)]||_0x34c526['type'][_0x57b878(0x1ad)]()==='integer'&&!Number[_0x57b878(0x15a)](_0xe33feb))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0xe33feb;case'boolean':if(typeof _0xe33feb!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0xe33feb;case _0x57b878(0x1f3):case _0x57b878(0x1af):if(!(_0xe33feb instanceof Date)||!Number['isFinite'](_0xe33feb[_0x57b878(0x1db)]()))throw new Error(_0x57b878(0x184));return _0xe33feb['getTime']();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x34c526[_0x57b878(0x1ca)]+'.');}}export async function buildExcelManifest(_0x2c1443){const _0x42503c=a151_0x5832be,_0x45d563=_0x2c1443[_0x42503c(0x165)]??0x1;if(!Number[_0x42503c(0x15a)](_0x45d563)||_0x45d563<0x1||_0x45d563>MAX_ROWS)throw new Error(_0x42503c(0x188));if(_0x2c1443['batchSize']!==undefined&&(!Number[_0x42503c(0x15a)](_0x2c1443['batchSize'])||_0x2c1443[_0x42503c(0x1d5)]<0x1||_0x2c1443['batchSize']>0x3e8))throw new Error('batchSize\x20must\x20be\x20between\x201\x20and\x201000.');if(a151_0x2f6191[_0x42503c(0x18c)](_0x2c1443[_0x42503c(0x178)])[_0x42503c(0x1ad)]()!==_0x42503c(0x1a0))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x2f1cdd=await stat(_0x2c1443[_0x42503c(0x178)]);if(!_0x2f1cdd['isFile']()||_0x2f1cdd[_0x42503c(0x17f)]>MAX_FILE)throw new Error(_0x42503c(0x1ed));const _0x5295db=await readFile(_0x2c1443[_0x42503c(0x178)]);if(_0x5295db[_0x42503c(0x16e)]>MAX_FILE)throw new Error(_0x42503c(0x12a));const _0x13edbe=_0x2c1443[_0x42503c(0x1e5)][_0x42503c(0x17d)](_0x2e7479=>isImageContainer(_0x2e7479[_0x42503c(0x1ca)])&&Object[_0x42503c(0x15b)](_0x2c1443['mapping'])[_0x42503c(0x149)](_0x2e7479[_0x42503c(0x1c0)]))?new Map():undefined;await checkArchive(_0x5295db,_0x13edbe);const _0x348a5d=new a151_0x269ae0[(_0x42503c(0x19f))]();await _0x348a5d[_0x42503c(0x120)][_0x42503c(0x126)](_0x5295db,{'ignoreNodes':['dataValidations']});const _0x16c6d1=_0x2c1443[_0x42503c(0x115)];let _0x1c9a89;if(_0x16c6d1===undefined)_0x1c9a89=_0x348a5d[_0x42503c(0x13f)][0x0];else{if(typeof _0x16c6d1===_0x42503c(0x1a3)&&_0x348a5d[_0x42503c(0x13f)][_0x42503c(0x17d)](_0x1245c5=>_0x1245c5[_0x42503c(0x198)]===_0x16c6d1))_0x1c9a89=_0x348a5d['worksheets']['find'](_0x63224e=>_0x63224e['name']===_0x16c6d1);else{if(typeof _0x16c6d1===_0x42503c(0x130)||/^\d+$/[_0x42503c(0x147)](_0x16c6d1)){const _0x4cfe57=Number(_0x16c6d1);if(!Number[_0x42503c(0x15a)](_0x4cfe57)||_0x4cfe57<0x1)throw new Error('Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.');_0x1c9a89=_0x348a5d[_0x42503c(0x13f)][_0x4cfe57-0x1];}else _0x1c9a89=_0x348a5d[_0x42503c(0x13f)]['find'](_0x5dbeca=>_0x5dbeca['name']===_0x16c6d1);}}if(!_0x1c9a89)throw new Error(_0x42503c(0x1b7));if(_0x1c9a89[_0x42503c(0x158)]>MAX_ROWS||_0x1c9a89['columnCount']>MAX_COLUMNS)throw new Error(_0x42503c(0x1f2));if((_0x1c9a89[_0x42503c(0x16a)][_0x42503c(0x1c4)]??[])['length'])throw new Error(_0x42503c(0x11a));const _0x5dfe68=new Map();_0x1c9a89['getRow'](_0x45d563)['eachCell']((_0x536e02,_0x4d4f71)=>{const _0x424ed9=_0x42503c,_0x41d354=valueOf(_0x536e02);if(typeof _0x41d354!==_0x424ed9(0x1a3)||!_0x41d354[_0x424ed9(0x197)]()||Buffer['byteLength'](_0x41d354)>MAX_CELL)throw new Error(_0x424ed9(0x10c));if(_0x5dfe68[_0x424ed9(0x1e0)](_0x41d354))throw new Error('Duplicate\x20header:\x20'+_0x41d354+'.');_0x5dfe68[_0x424ed9(0x14d)](_0x41d354,_0x4d4f71);});const _0x3e0984=Object[_0x42503c(0x1d9)](_0x2c1443[_0x42503c(0x1c2)]);if(!_0x3e0984[_0x42503c(0x16e)])throw new Error(_0x42503c(0x15f));const _0x233f44=new Map(_0x2c1443[_0x42503c(0x1e5)]['map'](_0x1c9daf=>[_0x1c9daf['code'],_0x1c9daf]));if(_0x233f44[_0x42503c(0x17f)]!==_0x2c1443[_0x42503c(0x1e5)][_0x42503c(0x16e)])throw new Error(_0x42503c(0x1ab));if(_0x2c1443[_0x42503c(0x1e5)][_0x42503c(0x17d)](_0x85a15f=>_0x85a15f[_0x42503c(0x1ca)][_0x42503c(0x1ad)]()==='serial_number'))throw new Error(_0x42503c(0x122));const _0x2643b6=new Set();for(const [_0x1dbb3d,_0x41e2dc]of _0x3e0984){const _0x36bb12=_0x233f44['get'](_0x41e2dc);if(!_0x5dfe68['has'](_0x1dbb3d))throw new Error(_0x42503c(0x1b1)+_0x1dbb3d+'.');if(!_0x36bb12||RESERVED[_0x42503c(0x1e0)](_0x41e2dc)||_0x36bb12[_0x42503c(0x17a)])throw new Error(_0x42503c(0x1c9)+_0x41e2dc+'.');if(_0x2643b6[_0x42503c(0x1e0)](_0x41e2dc))throw new Error(_0x42503c(0x1c3)+_0x41e2dc+'.');if(!TYPES[_0x42503c(0x1e0)](_0x36bb12[_0x42503c(0x1ca)][_0x42503c(0x1ad)]()))throw new Error(_0x42503c(0x123)+_0x36bb12[_0x42503c(0x1ca)]+'.');_0x2643b6[_0x42503c(0x1de)](_0x41e2dc);}for(const _0x1a4385 of _0x2c1443[_0x42503c(0x1e5)]){if(_0x1a4385[_0x42503c(0x134)]&&!_0x1a4385[_0x42503c(0x17a)]&&!RESERVED[_0x42503c(0x1e0)](_0x1a4385['code'])&&!_0x2643b6[_0x42503c(0x1e0)](_0x1a4385['code']))throw new Error(_0x42503c(0x177)+_0x1a4385[_0x42503c(0x1c0)]+'.');}const _0x29c810={'fileHash':hash(_0x5295db),'mappingHash':hash(JSON[_0x42503c(0x13c)]([..._0x3e0984][_0x42503c(0x15c)](([_0x35a70e],[_0x2abe1b])=>_0x35a70e['localeCompare'](_0x2abe1b)))),'schemaHash':hash(JSON[_0x42503c(0x13c)]([..._0x2c1443[_0x42503c(0x1e5)]][_0x42503c(0x15c)]((_0x5ee88c,_0x55e7ca)=>_0x5ee88c[_0x42503c(0x1c0)]['localeCompare'](_0x55e7ca[_0x42503c(0x1c0)])))),'sheet':_0x1c9a89[_0x42503c(0x198)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x18574c=_0x3e0984[_0x42503c(0x1df)](([,_0x40007d])=>isImageContainer(_0x233f44['get'](_0x40007d)[_0x42503c(0x1ca)])),_0xafb75a=_0x18574c[_0x42503c(0x1df)](([,_0xbf816c])=>_0x233f44['get'](_0xbf816c)[_0x42503c(0x1ca)][_0x42503c(0x1ad)]()===_0x42503c(0x137))['map'](([,_0x29b1a7])=>_0x29b1a7);if(_0xafb75a[_0x42503c(0x16e)])_0x29c810[_0x42503c(0x1e7)]=_0xafb75a;const _0xd736ac=_0x13edbe?resolveWorksheetImages(_0x13edbe,_0x1c9a89[_0x42503c(0x198)],new Set(_0x18574c[_0x42503c(0x139)](([_0x228dbb])=>_0x5dfe68[_0x42503c(0x15e)](_0x228dbb)))):[],_0x153659=new Map();for(const _0x4243b0 of _0xd736ac){const _0x9fd20f=_0x4243b0[_0x42503c(0x12f)]+':'+_0x4243b0[_0x42503c(0x1c5)],_0x3e5cf0=_0x153659[_0x42503c(0x15e)](_0x9fd20f)??[];_0x3e5cf0[_0x42503c(0x13a)](_0x4243b0),_0x153659[_0x42503c(0x14d)](_0x9fd20f,_0x3e5cf0);}const _0x34e9db=new Map();let _0x34c47a=0x0;_0x18574c[_0x42503c(0x16e)]&&(_0x29c810[_0x42503c(0x1b9)]=_0x18574c[_0x42503c(0x139)](([,_0x4052f9])=>_0x4052f9),_0x29c810['imageCells']=[],_0x29c810[_0x42503c(0x166)]=0x1,_0x29c810[_0x42503c(0x1f7)]=[]);const _0x59f561=Math[_0x42503c(0x1a8)](0x0,..._0xd736ac[_0x42503c(0x139)](_0x21c35c=>_0x21c35c[_0x42503c(0x12f)]));let _0x13dfbb=0x0;const _0x7bd668=new Set(_0x3e0984[_0x42503c(0x139)](([_0x30d608])=>_0x5dfe68[_0x42503c(0x15e)](_0x30d608)));for(let _0x4b8de5=_0x45d563+0x1;_0x4b8de5<=Math[_0x42503c(0x1a8)](_0x1c9a89[_0x42503c(0x158)],_0x59f561);_0x4b8de5++){const _0x3f105c=_0x1c9a89[_0x42503c(0x1f6)](_0x4b8de5);if(_0x3f105c[_0x42503c(0x148)]||_0xd736ac[_0x42503c(0x17d)](_0x7bd190=>_0x7bd190[_0x42503c(0x12f)]===_0x4b8de5&&_0x7bd190[_0x42503c(0x113)]))_0x13dfbb++;let _0x3327aa=_0xd736ac['some'](_0x133fae=>_0x133fae[_0x42503c(0x12f)]===_0x4b8de5);_0x3f105c['eachCell'](_0x448310=>{const _0x322b31=_0x42503c;if(_0x448310[_0x322b31(0x1c8)]!==null&&_0x448310['value']!==undefined&&_0x448310[_0x322b31(0x1c8)]!=='')_0x3327aa=!![];});if(!_0x3327aa){_0x29c810[_0x42503c(0x1da)][_0x42503c(0x13a)](_0x4b8de5);continue;}const _0x1b8d64=Object[_0x42503c(0x151)](null);_0x3f105c['eachCell']((_0x2a48d2,_0x5ed932)=>{const _0x3787b0=_0x42503c;if(_0x7bd668[_0x3787b0(0x1e0)](_0x5ed932))return;try{const _0x8598fd=valueOf(_0x2a48d2);if(typeof _0x8598fd===_0x3787b0(0x1a3)&&Buffer['byteLength'](_0x8598fd,_0x3787b0(0x1e2))>MAX_CELL)throw new Error(_0x3787b0(0x16f));}catch(_0x5a6931){_0x29c810[_0x3787b0(0x1b2)][_0x3787b0(0x13a)]({'rowNumber':_0x4b8de5,'field':_0x2a48d2[_0x3787b0(0x1e8)],'message':_0x5a6931['message']});}});for(const [_0x5242ac,_0x1599a1]of _0x3e0984){try{const _0x248fa8=_0x3f105c[_0x42503c(0x18f)](_0x5dfe68[_0x42503c(0x15e)](_0x5242ac)),_0x2d4f2f=_0x233f44[_0x42503c(0x15e)](_0x1599a1);if(!isImageContainer(_0x2d4f2f['type'])){_0x1b8d64[_0x1599a1]=convert(valueOf(_0x248fa8),_0x2d4f2f);continue;}const _0x2de908=_0x153659['get'](_0x4b8de5+':'+_0x5dfe68[_0x42503c(0x15e)](_0x5242ac))??[];if(_0x2de908[_0x42503c(0x17d)](_0x29ed96=>_0x29ed96[_0x42503c(0x1e3)]))throw Error(_0x2de908['find'](_0x53c038=>_0x53c038[_0x42503c(0x1e3)])[_0x42503c(0x1e3)]);if(_0x248fa8['value']!=null&&_0x248fa8[_0x42503c(0x1c8)]!==''&&!_0x2de908[_0x42503c(0x17d)](_0x32e939=>_0x32e939['nativeCell']))throw Error(_0x42503c(0x1a9));const _0x16afdd=[];for(const _0x1befc1 of _0x2de908)for(const _0x1fe873 of _0x1befc1['media']){const _0x13b065=_0x13edbe[_0x42503c(0x15e)](_0x1fe873);if(!_0x13b065)throw Error(_0x42503c(0x17b)+_0x1fe873+'.');const _0x2a2183=hash(_0x13b065),_0x14dca7=_0x34e9db[_0x42503c(0x15e)](_0x2a2183)??validateImageBytes(_0x13b065);if(!_0x34e9db['has'](_0x14dca7[_0x42503c(0x1a6)])){_0x34c47a+=_0x14dca7[_0x42503c(0x17f)];if(_0x34c47a>0x32*0x400*0x400)throw Error(_0x42503c(0x10f));_0x34e9db[_0x42503c(0x14d)](_0x14dca7[_0x42503c(0x1a6)],_0x14dca7);}_0x16afdd[_0x42503c(0x13a)](_0x14dca7[_0x42503c(0x1a6)]);}if(!_0x16afdd[_0x42503c(0x16e)]&&_0x2d4f2f[_0x42503c(0x134)])throw Error(_0x42503c(0x187));if(_0x16afdd[_0x42503c(0x16e)])_0x29c810[_0x42503c(0x161)][_0x42503c(0x13a)]({'rowNumber':_0x4b8de5,'field':_0x1599a1,'hashes':_0x16afdd});_0x1b8d64[_0x1599a1]=_0x16afdd[_0x42503c(0x139)](_0x32d90d=>{const _0x2d1c16=_0x42503c,_0x524ffd=_0x34e9db[_0x2d1c16(0x15e)](_0x32d90d),_0x3e7056=_0x524ffd[_0x2d1c16(0x1ca)]===_0x2d1c16(0x14e)?_0x2d1c16(0x121):_0x524ffd[_0x2d1c16(0x1ca)][_0x2d1c16(0x194)](0x6),_0x3ccd7d=_0x32d90d+'.'+_0x3e7056,_0x46146e=_0x2d1c16(0x171)+'0'[_0x2d1c16(0x191)](0x40)+'/'+_0x3ccd7d;return _0x2d4f2f[_0x2d1c16(0x1ca)][_0x2d1c16(0x1ad)]()===_0x2d1c16(0x137)?{'fileName':_0x3ccd7d,'filePath':_0x46146e}:{'key':_0x46146e,'name':_0x3ccd7d,'type':_0x524ffd[_0x2d1c16(0x1ca)],'size':_0x524ffd[_0x2d1c16(0x17f)]};});}catch(_0x3dbc77){_0x29c810[_0x42503c(0x1b2)]['push']({'rowNumber':_0x4b8de5,'field':_0x1599a1,'message':_0x3dbc77[_0x42503c(0x12e)]});}}_0x29c810[_0x42503c(0x135)][_0x42503c(0x13a)]({'rowNumber':_0x4b8de5,'values':_0x1b8d64});}if(_0x29c810['media'])_0x29c810['media']=[..._0x34e9db['values']()];if(_0x13dfbb)_0x29c810['warnings'][_0x42503c(0x13a)](_0x13dfbb+_0x42503c(0x190));return _0x29c810;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x101aa4,_0x23c7d8){const _0x3c7d91=a152_0x5193,_0x37e680=_0x101aa4();while(!![]){try{const _0x509d32=parseInt(_0x3c7d91(0x1c3))/0x1*(parseInt(_0x3c7d91(0x1ed))/0x2)+-parseInt(_0x3c7d91(0x1fd))/0x3*(-parseInt(_0x3c7d91(0x1dc))/0x4)+parseInt(_0x3c7d91(0x1f4))/0x5*(parseInt(_0x3c7d91(0x1c0))/0x6)+parseInt(_0x3c7d91(0x1df))/0x7*(-parseInt(_0x3c7d91(0x1fb))/0x8)+parseInt(_0x3c7d91(0x1f3))/0x9*(parseInt(_0x3c7d91(0x1e5))/0xa)+-parseInt(_0x3c7d91(0x1d4))/0xb*(parseInt(_0x3c7d91(0x1e3))/0xc)+-parseInt(_0x3c7d91(0x1c2))/0xd;if(_0x509d32===_0x23c7d8)break;else _0x37e680['push'](_0x37e680['shift']());}catch(_0x14ff36){_0x37e680['push'](_0x37e680['shift']());}}}(a152_0x214d,0x740e8));import{createRequire}from'node:module';function a152_0x214d(){const _0x54b125=['16220tpuiNH','update','Truncated\x20JPEG.','17010ucSTOf','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','60vdgNVk','concat','280APZJwe','GIF89a','GIF\x20frame\x20exceeds\x20canvas.','Invalid\x20GIF\x20trailer.','image/gif','message','pngjs','Invalid\x20GIF\x20LZW\x20pixel\x20data.','5710GTRFvQ','IHDR','Truncated\x20PNG\x20chunk.','hex','from','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','240624OJITTr','4742775yucFbG','ascii','digest','push','image/png','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','equals','760QSFUkJ','max','273nviwQz','readUInt32BE','6xZNZrM','Invalid\x20PNG\x20decoded\x20scanline\x20size.','21204820sVDfQC','309ulDPBB','Invalid\x20PNG\x20end.','jpeg-js','acTL','ceil','length','sha256','Invalid\x20GIF\x20block.','decode','image/jpeg','GIF87a','height','subarray','Truncated\x20PNG\x20data.','includes','isSafeInteger','toString','1344211DHzbKs','width','IDAT','Truncated\x20GIF.','read','readUInt16LE','decodeAndBlitFrameRGBA','sync'];a152_0x214d=function(){return _0x54b125;};return a152_0x214d();}function a152_0x5193(_0x59f43a,_0x54dfcd){_0x59f43a=_0x59f43a-0x1c0;const _0x214d5e=a152_0x214d();let _0x519315=_0x214d5e[_0x59f43a];return _0x519315;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x480e56,_0x399b58){const _0x343b08=a152_0x5193;if(!Number[_0x343b08(0x1d2)](_0x480e56)||!Number[_0x343b08(0x1d2)](_0x399b58)||_0x480e56<0x1||_0x399b58<0x1||_0x480e56*_0x399b58>MAX_PIXELS)throw Error(_0x343b08(0x1f2));}function validateGif(_0xbfedb7){const _0x40a1f2=a152_0x5193;let _0x14e524=0xd,_0x22dc13=0x0,_0x422cab=0x0;const _0x2dcb76=_0xbfedb7[_0x40a1f2(0x1d9)](0x6),_0x1d189a=_0xbfedb7[_0x40a1f2(0x1d9)](0x8),_0x2783ec=_0xbfedb7[0xa]&0x80?0x1<<(_0xbfedb7[0xa]&0x7)+0x1:0x0,_0x469dfc=_0x185993=>{const _0x3b8bd1=_0x40a1f2;if(_0x14e524+_0x185993>_0xbfedb7[_0x3b8bd1(0x1c8)])throw Error('Truncated\x20GIF\x20data.');};_0x14e524+=_0x2783ec*0x3,_0x469dfc(0x0);const _0x597efc=()=>{const _0x46ca8b=_0x40a1f2,_0x211261=[];while(!![]){_0x469dfc(0x1);const _0x3fadbb=_0xbfedb7[_0x14e524++];if(!_0x3fadbb)break;_0x469dfc(_0x3fadbb),_0x211261['push'](_0xbfedb7[_0x46ca8b(0x1cf)](_0x14e524,_0x14e524+_0x3fadbb)),_0x14e524+=_0x3fadbb;}return Buffer[_0x46ca8b(0x1e4)](_0x211261);};while(_0x14e524<_0xbfedb7[_0x40a1f2(0x1c8)]){const _0x49c086=_0xbfedb7[_0x14e524++];if(_0x49c086===0x3b){if(!_0x22dc13||_0x14e524!==_0xbfedb7[_0x40a1f2(0x1c8)])throw Error(_0x40a1f2(0x1e8));return;}if(_0x49c086===0x21){_0x469dfc(0x1),_0x14e524++,_0x597efc();continue;}if(_0x49c086!==0x2c)throw Error(_0x40a1f2(0x1ca));_0x469dfc(0x9);const _0x2196cf=_0xbfedb7['readUInt16LE'](_0x14e524),_0x51d846=_0xbfedb7['readUInt16LE'](_0x14e524+0x2),_0x31f735=_0xbfedb7[_0x40a1f2(0x1d9)](_0x14e524+0x4),_0x5a8d49=_0xbfedb7[_0x40a1f2(0x1d9)](_0x14e524+0x6),_0x2bf822=_0xbfedb7[_0x14e524+0x8];_0x14e524+=0x9,dimensions(_0x31f735,_0x5a8d49);if(_0x2196cf+_0x31f735>_0x2dcb76||_0x51d846+_0x5a8d49>_0x1d189a||++_0x22dc13>0x2710||(_0x422cab+=_0x2dcb76*_0x1d189a)>MAX_PIXELS)throw Error(_0x40a1f2(0x1e0));const _0x56db6f=_0x2bf822&0x80?0x1<<(_0x2bf822&0x7)+0x1:_0x2783ec;if(!_0x56db6f)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x2bf822&0x80&&(_0x469dfc(_0x56db6f*0x3),_0x14e524+=_0x56db6f*0x3);_0x469dfc(0x1);const _0x21ff23=_0xbfedb7[_0x14e524++];if(_0x21ff23<0x2||_0x21ff23>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0xcb4e9e=_0x597efc(),_0x3ad126=0x1<<_0x21ff23,_0x26261e=_0x3ad126+0x1;let _0xa142cd=_0x21ff23+0x1,_0x1de9c4=_0x26261e+0x1,_0x2b2e2f=0x0,_0x3fbb43=-0x1,_0xcd0d9f=0x0,_0x5e2d3c=![];const _0x45d1b5=new Uint32Array(0x1000),_0x1f2675=new Uint16Array(0x1000);for(let _0x97f5dd=0x0;_0x97f5dd<_0x3ad126;_0x97f5dd++){_0x45d1b5[_0x97f5dd]=0x1,_0x1f2675[_0x97f5dd]=_0x97f5dd;}while(_0x2b2e2f+_0xa142cd<=_0xcb4e9e['length']*0x8){let _0x2aa6f8=0x0;for(let _0x27afd8=0x0;_0x27afd8<_0xa142cd;_0x27afd8++,_0x2b2e2f++)_0x2aa6f8|=(_0xcb4e9e[_0x2b2e2f>>0x3]>>(_0x2b2e2f&0x7)&0x1)<<_0x27afd8;if(_0x2aa6f8===_0x3ad126){_0xa142cd=_0x21ff23+0x1,_0x1de9c4=_0x26261e+0x1,_0x3fbb43=-0x1;continue;}if(_0x2aa6f8===_0x26261e){_0x5e2d3c=!![];break;}if(_0x2aa6f8>_0x1de9c4||_0x2aa6f8===_0x1de9c4&&_0x3fbb43<0x0||_0x3fbb43<0x0&&_0x2aa6f8>=_0x3ad126)throw Error(_0x40a1f2(0x1e2));const _0x2b18fd=_0x2aa6f8===_0x1de9c4?_0x45d1b5[_0x3fbb43]+0x1:_0x45d1b5[_0x2aa6f8],_0x564494=_0x2aa6f8===_0x1de9c4?_0x1f2675[_0x3fbb43]:_0x1f2675[_0x2aa6f8];if(!_0x2b18fd||_0x564494>=_0x56db6f||(_0xcd0d9f+=_0x2b18fd)>_0x31f735*_0x5a8d49)throw Error(_0x40a1f2(0x1ec));if(_0x3fbb43>=0x0&&_0x1de9c4<0x1000){_0x45d1b5[_0x1de9c4]=_0x45d1b5[_0x3fbb43]+0x1,_0x1f2675[_0x1de9c4]=Math[_0x40a1f2(0x1fc)](_0x1f2675[_0x3fbb43],_0x564494),_0x1de9c4++;if(_0x1de9c4===0x1<<_0xa142cd&&_0xa142cd<0xc)_0xa142cd++;}_0x3fbb43=_0x2aa6f8;}if(!_0x5e2d3c||_0xcd0d9f!==_0x31f735*_0x5a8d49)throw Error(_0x40a1f2(0x1e1));}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x3061f3){const _0x37efdc=a152_0x5193;if(!_0x3061f3[_0x37efdc(0x1c8)]||_0x3061f3[_0x37efdc(0x1c8)]>0xa*0x400*0x400)throw Error('Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.');let _0x16e37c;try{if(_0x3061f3[_0x37efdc(0x1cf)](0x0,0x8)[_0x37efdc(0x1fa)](Buffer[_0x37efdc(0x1f1)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x3061f3[_0x37efdc(0x1c8)]<0x21||_0x3061f3[_0x37efdc(0x1d3)](_0x37efdc(0x1f5),0xc,0x10)!==_0x37efdc(0x1ee))throw Error('Invalid\x20PNG\x20header.');dimensions(_0x3061f3[_0x37efdc(0x1fe)](0x10),_0x3061f3['readUInt32BE'](0x14));const _0x13b7e4=_0x3061f3[_0x37efdc(0x1fe)](0x10),_0x2adcb7=_0x3061f3[_0x37efdc(0x1fe)](0x14),_0x2c92d4=_0x3061f3[0x18],_0x26b2ae=_0x3061f3[0x19],_0x1451b6=_0x3061f3[0x1c],_0x419ce0={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x26b2ae];if(!_0x419ce0||![0x1,0x2,0x4,0x8,0x10][_0x37efdc(0x1d1)](_0x2c92d4)||_0x1451b6>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x5e35dd=_0x589a00=>Math[_0x37efdc(0x1c7)](_0x589a00*_0x419ce0*_0x2c92d4/0x8)+0x1;let _0x402fb0=_0x5e35dd(_0x13b7e4)*_0x2adcb7;if(_0x1451b6){_0x402fb0=0x0;for(const [_0x3bd3e2,_0xbceef,_0x395e18,_0x4cfa1f]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 _0x40e21e=Math[_0x37efdc(0x1fc)](0x0,Math['ceil']((_0x13b7e4-_0x3bd3e2)/_0x395e18)),_0x1f35f0=Math[_0x37efdc(0x1fc)](0x0,Math[_0x37efdc(0x1c7)]((_0x2adcb7-_0xbceef)/_0x4cfa1f));if(_0x40e21e&&_0x1f35f0)_0x402fb0+=_0x5e35dd(_0x40e21e)*_0x1f35f0;}}let _0x462435=0x8,_0x4d197d=![];const _0x964f83=[];while(_0x462435<_0x3061f3[_0x37efdc(0x1c8)]){if(_0x462435+0xc>_0x3061f3['length'])throw Error(_0x37efdc(0x1ef));const _0x147aa6=_0x3061f3[_0x37efdc(0x1fe)](_0x462435),_0x584e65=_0x3061f3['toString'](_0x37efdc(0x1f5),_0x462435+0x4,_0x462435+0x8);if(_0x584e65===_0x37efdc(0x1c6))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x462435+_0x147aa6+0xc>_0x3061f3[_0x37efdc(0x1c8)])throw Error(_0x37efdc(0x1d0));if(_0x584e65===_0x37efdc(0x1d6))_0x964f83[_0x37efdc(0x1f7)](_0x3061f3[_0x37efdc(0x1cf)](_0x462435+0x8,_0x462435+0x8+_0x147aa6));_0x462435+=_0x147aa6+0xc;if(_0x584e65==='IEND'){if(_0x147aa6||_0x462435!==_0x3061f3['length'])throw Error(_0x37efdc(0x1c4));_0x4d197d=!![];break;}}if(!_0x4d197d||!_0x964f83[_0x37efdc(0x1c8)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0x37efdc(0x1e4)](_0x964f83),{'maxOutputLength':_0x402fb0+0x1})[_0x37efdc(0x1c8)]!==_0x402fb0)throw Error(_0x37efdc(0x1c1));const {PNG:_0x4d9dcc}=require(_0x37efdc(0x1eb)),_0x1693e9=_0x4d9dcc[_0x37efdc(0x1db)][_0x37efdc(0x1d8)](_0x3061f3,{'checkCRC':!![]});dimensions(_0x1693e9['width'],_0x1693e9[_0x37efdc(0x1ce)]),_0x16e37c=_0x37efdc(0x1f8);}else{if(_0x3061f3[0x0]===0xff&&_0x3061f3[0x1]===0xd8){if(_0x3061f3['at'](-0x2)!==0xff||_0x3061f3['at'](-0x1)!==0xd9)throw Error(_0x37efdc(0x1de));const _0xc4ff5c=require(_0x37efdc(0x1c5)),_0x153168=_0xc4ff5c[_0x37efdc(0x1cb)](_0x3061f3,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x153168[_0x37efdc(0x1d5)],_0x153168['height']),_0x16e37c=_0x37efdc(0x1cc);}else{if([_0x37efdc(0x1cd),_0x37efdc(0x1e6)][_0x37efdc(0x1d1)](_0x3061f3['toString'](_0x37efdc(0x1f5),0x0,0x6))){if(_0x3061f3['length']<0xe||_0x3061f3['at'](-0x1)!==0x3b)throw Error(_0x37efdc(0x1d7));dimensions(_0x3061f3[_0x37efdc(0x1d9)](0x6),_0x3061f3[_0x37efdc(0x1d9)](0x8)),validateGif(_0x3061f3);const {GifReader:_0x26800e}=require('omggif'),_0x36db50=new _0x26800e(_0x3061f3);dimensions(_0x36db50[_0x37efdc(0x1d5)],_0x36db50[_0x37efdc(0x1ce)]);const _0x464922=_0x36db50['numFrames']();if(!_0x464922||_0x464922>0x2710||_0x464922*_0x36db50[_0x37efdc(0x1d5)]*_0x36db50[_0x37efdc(0x1ce)]>MAX_PIXELS)throw Error(_0x37efdc(0x1e0));const _0x3875b6=new Uint8Array(_0x36db50[_0x37efdc(0x1d5)]*_0x36db50[_0x37efdc(0x1ce)]*0x4);for(let _0x441e94=0x0;_0x441e94<_0x464922;_0x441e94++){const _0x50f00f=_0x36db50['frameInfo'](_0x441e94);if(_0x50f00f['x']+_0x50f00f[_0x37efdc(0x1d5)]>_0x36db50[_0x37efdc(0x1d5)]||_0x50f00f['y']+_0x50f00f[_0x37efdc(0x1ce)]>_0x36db50[_0x37efdc(0x1ce)])throw Error(_0x37efdc(0x1e7));_0x36db50[_0x37efdc(0x1da)](_0x441e94,_0x3875b6);}_0x16e37c=_0x37efdc(0x1e9);}else throw Error(_0x37efdc(0x1f9));}}}catch(_0x686d1e){throw Error('Invalid\x20image:\x20'+_0x686d1e[_0x37efdc(0x1ea)]);}return{'contentHash':createHash(_0x37efdc(0x1c9))[_0x37efdc(0x1dd)](_0x3061f3)[_0x37efdc(0x1f6)](_0x37efdc(0x1f0)),'type':_0x16e37c,'size':_0x3061f3[_0x37efdc(0x1c8)],'bytes':_0x3061f3};}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a153_0x167076=a153_0x415f;(function(_0x422cfd,_0x3d91cd){const _0x287dfc=a153_0x415f,_0x5702b3=_0x422cfd();while(!![]){try{const _0x32d276=parseInt(_0x287dfc(0x140))/0x1*(-parseInt(_0x287dfc(0x101))/0x2)+parseInt(_0x287dfc(0xf2))/0x3+-parseInt(_0x287dfc(0x115))/0x4+parseInt(_0x287dfc(0x17f))/0x5+-parseInt(_0x287dfc(0x138))/0x6*(-parseInt(_0x287dfc(0x126))/0x7)+parseInt(_0x287dfc(0x124))/0x8+-parseInt(_0x287dfc(0x11b))/0x9*(-parseInt(_0x287dfc(0xd5))/0xa);if(_0x32d276===_0x3d91cd)break;else _0x5702b3['push'](_0x5702b3['shift']());}catch(_0x4efb9a){_0x5702b3['push'](_0x5702b3['shift']());}}}(a153_0x305d,0xe3781));import a153_0x1ed636 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a153_0x167076(0x143),a153_0x167076(0x178)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a153_0x167076(0xeb)],DRAWING_MAIN=[a153_0x167076(0x12c),a153_0x167076(0x13d)],OFFICE_RELS=[a153_0x167076(0x132),'http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=['http://schemas.openxmlformats.org/package/2006/relationships'],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object[a153_0x167076(0x12b)]([...[a153_0x167076(0x104),a153_0x167076(0x131),a153_0x167076(0x145),a153_0x167076(0x119),a153_0x167076(0x129),a153_0x167076(0x14a),'c','f','v',a153_0x167076(0x150),a153_0x167076(0x116),a153_0x167076(0xe7),a153_0x167076(0x121),a153_0x167076(0x106),a153_0x167076(0xed),a153_0x167076(0x15c),'bk','rc',a153_0x167076(0x16a)][a153_0x167076(0x16e)](_0x137854=>[_0x137854,SHEET]),...[a153_0x167076(0x181),a153_0x167076(0xe8),a153_0x167076(0x173),'absoluteAnchor',a153_0x167076(0x10f),'to',a153_0x167076(0x107),'colOff',a153_0x167076(0x153),a153_0x167076(0x16d),'pic','nvPicPr','cNvPr','blipFill'][a153_0x167076(0x16e)](_0xf151cc=>[_0xf151cc,DRAWING]),...[a153_0x167076(0x14b),a153_0x167076(0x174),'rv',a153_0x167076(0x10b),'s','k'][a153_0x167076(0x16e)](_0x4d0c4e=>[_0x4d0c4e,RICH]),[a153_0x167076(0x118),DRAWING_MAIN],[a153_0x167076(0x15d),RICH_RELS],[a153_0x167076(0x12e),RICH_RELS],[a153_0x167076(0x102),PACKAGE],[a153_0x167076(0x109),PACKAGE],[a153_0x167076(0xde),WPS],[a153_0x167076(0x167),WPS]]),matches=(_0x44552c,_0x2a2ac0,_0x20bce0=DEFAULT_NS[_0x2a2ac0]??[])=>_0x44552c[a153_0x167076(0x139)]===_0x2a2ac0&&_0x20bce0[a153_0x167076(0x12a)](_0x44552c['uri']),children=(_0xf3b3c7,_0x370cf8,_0x2c8c71=DEFAULT_NS[_0x370cf8])=>_0xf3b3c7['children']['filter'](_0xcd47f5=>matches(_0xcd47f5,_0x370cf8,_0x2c8c71)),chain=(_0x57a397,..._0x420578)=>_0x420578['reduce']((_0xcdb521,_0x649c31)=>_0xcdb521[a153_0x167076(0x14c)](_0x537551=>children(_0x537551,_0x649c31)),[_0x57a397]),relationshipTypes=_0x1565fb=>{const _0x538381=a153_0x167076;if(['rdRichValue',_0x538381(0x146)][_0x538381(0x12a)](_0x1565fb))return[_0x538381(0x182)+_0x1565fb];if(_0x1565fb===_0x538381(0x13f))return[_0x538381(0x108)];if(_0x1565fb===_0x538381(0x167)||_0x1565fb===_0x538381(0xde))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x1565fb];return OFFICE_RELS[_0x538381(0x16e)](_0x510c47=>_0x510c47+'/'+_0x1565fb);};function a153_0x415f(_0x40d38c,_0x1faf50){_0x40d38c=_0x40d38c-0xd5;const _0x305d7b=a153_0x305d();let _0x415fa6=_0x305d7b[_0x40d38c];return _0x415fa6;}function one(_0x22d4ae,_0x4000ab){const _0x154f20=a153_0x167076;if(_0x22d4ae['length']!==0x1)throw Error(_0x154f20(0xfd)+_0x4000ab+'.');return _0x22d4ae[0x0];}function integer(_0x86a746,_0x4b2dee,_0x5c1551=0x186a0){const _0x1ac229=a153_0x167076;if(!_0x86a746||!/^\d+$/[_0x1ac229(0x10e)](_0x86a746)||!Number[_0x1ac229(0xd7)](Number(_0x86a746))||Number(_0x86a746)>_0x5c1551)throw Error(_0x1ac229(0x15b)+_0x4b2dee+'.');return Number(_0x86a746);}export function resolveWorksheetImages(_0x2d1846,_0x261248,_0x3ba6c4){const _0x2ec621=a153_0x167076;let _0x4fce9c=0x0,_0x22083d=0x0,_0x378acd=0x0;const _0x582f7f=new Map(),_0x4e894c=_0x1a9219=>{const _0x180091=a153_0x415f;if(_0x582f7f[_0x180091(0x16f)](_0x1a9219))return _0x582f7f[_0x180091(0x165)](_0x1a9219);const _0x231a41=_0x2d1846['get'](_0x1a9219);if(!_0x231a41)throw Error(_0x180091(0x175)+_0x1a9219+'.');const _0x518ab7={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x3e445a=[_0x518ab7],_0x429f9d=new SaxesParser({'xmlns':!![]}),_0x7e030c=()=>{if(++_0x22083d>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x429f9d['on']('doctype',()=>{const _0x13d1bc=_0x180091;throw Error(_0x13d1bc(0xe1));}),_0x429f9d['on'](_0x180091(0xec),_0x1197d0=>{const _0xf29ee5=_0x180091;_0x7e030c();if(++_0x4fce9c>0x7a120||_0x3e445a[_0xf29ee5(0x176)]>0x40)throw Error(_0xf29ee5(0xf1));const _0xfd7130={};for(const _0x368e5f of Object[_0xf29ee5(0x156)](_0x1197d0[_0xf29ee5(0xe4)])){const _0x1d707a=OFFICE_RELS[_0xf29ee5(0x12a)](_0x368e5f['uri'])?'r:'+_0x368e5f[_0xf29ee5(0x103)]:_0x368e5f[_0xf29ee5(0x120)]?'{'+_0x368e5f['uri']+'}'+_0x368e5f[_0xf29ee5(0x103)]:_0x368e5f['local'];if(_0x1d707a in _0xfd7130)throw Error('Ambiguous\x20XML\x20attribute.');_0xfd7130[_0x1d707a]=_0x368e5f[_0xf29ee5(0x160)];}const _0x3ecacd={'name':_0x1197d0[_0xf29ee5(0x103)],'uri':_0x1197d0[_0xf29ee5(0x120)],'attrs':_0xfd7130,'children':[],'text':''};_0x3e445a['at'](-0x1)['children'][_0xf29ee5(0xdf)](_0x3ecacd),_0x3e445a['push'](_0x3ecacd);}),_0x429f9d['on'](_0x180091(0xd8),_0x5ad0df=>{const _0x2fe75d=_0x180091;_0x7e030c();const _0x2c8266=_0x3e445a['at'](-0x1);_0x2c8266[_0x2fe75d(0xd8)]+=_0x5ad0df;if(_0x2c8266[_0x2fe75d(0xd8)][_0x2fe75d(0x176)]>0x10000)throw Error(_0x2fe75d(0x184));}),_0x429f9d['on'](_0x180091(0x11e),()=>{_0x7e030c(),_0x3e445a['pop']();}),_0x429f9d['on']('error',_0x30723e=>{throw _0x30723e;}),_0x429f9d[_0x180091(0x15a)](_0x231a41[_0x180091(0x172)]('utf8'))['close']();const _0xc9fd61=one(_0x518ab7[_0x180091(0xe0)],_0x1a9219);return _0x582f7f['set'](_0x1a9219,_0xc9fd61),_0xc9fd61;},_0x59ebf7=new Map(),_0x17e4b2=_0xac1f33=>{const _0x3fe312=a153_0x415f;if(_0x59ebf7['has'](_0xac1f33))return _0x59ebf7[_0x3fe312(0x165)](_0xac1f33);const _0x291321=a153_0x1ed636[_0x3fe312(0x136)][_0x3fe312(0x17c)](a153_0x1ed636[_0x3fe312(0x136)][_0x3fe312(0x149)](_0xac1f33),_0x3fe312(0xf8),a153_0x1ed636['posix'][_0x3fe312(0x134)](_0xac1f33)+_0x3fe312(0x179));if(!_0x2d1846[_0x3fe312(0x16f)](_0x291321))return[];const _0x5f1a13=new Set(),_0xf37b8d=_0x4e894c(_0x291321);if(!matches(_0xf37b8d,'Relationships'))throw Error(_0x3fe312(0x155)+_0x291321+'.');const _0x20e81f=children(_0xf37b8d,_0x3fe312(0x109))[_0x3fe312(0x16e)](_0x5b5f42=>{const _0x33cbc9=_0x3fe312,{Id:_0x3ec33b,Type:_0x5cdddb,Target:_0x1040af,TargetMode:_0x4727a7}=_0x5b5f42[_0x33cbc9(0xdd)];if(!_0x3ec33b||_0x5f1a13[_0x33cbc9(0x16f)](_0x3ec33b)||!_0x5cdddb)throw Error(_0x33cbc9(0x183)+_0x291321+'.');return _0x5f1a13['add'](_0x3ec33b),{'id':_0x3ec33b,'type':_0x5cdddb,'target':_0x1040af??'','mode':_0x4727a7};});return _0x59ebf7[_0x3fe312(0xd6)](_0xac1f33,_0x20e81f),_0x20e81f;},_0xed1545=(_0x500282,_0x135b8a)=>{const _0xd6e548=a153_0x415f,{target:_0x51929c,mode:_0x5ac4ba}=_0x135b8a;if(_0x5ac4ba&&_0x5ac4ba!=='Internal')throw Error(_0xd6e548(0xe3)+_0x500282+'.');if(!_0x51929c||_0x51929c[_0xd6e548(0x12a)]('\x5c')||/[?#%\x00-\x20]/[_0xd6e548(0x10e)](_0x51929c)||/^[a-z][a-z0-9+.-]*:/i[_0xd6e548(0x10e)](_0x51929c)||_0x51929c[_0xd6e548(0x11f)]('//'))throw Error(_0xd6e548(0x105)+_0x500282+'.');const _0x5befd0=_0x51929c[_0xd6e548(0x11f)]('/')?_0x51929c['slice'](0x1):a153_0x1ed636[_0xd6e548(0x136)][_0xd6e548(0xf5)](a153_0x1ed636[_0xd6e548(0x136)][_0xd6e548(0x17c)](a153_0x1ed636[_0xd6e548(0x136)][_0xd6e548(0x149)](_0x500282),_0x51929c));if(_0x5befd0[_0xd6e548(0x11f)](_0xd6e548(0x168))||_0x5befd0==='..'||!_0x5befd0['startsWith'](_0xd6e548(0x113)))throw Error(_0xd6e548(0x16c)+_0x500282+'.');return _0x5befd0;},_0x4790c2=(_0x4a671a,_0x5d5487,_0x27eede)=>{const _0x4ca36a=a153_0x415f,_0x33af0a=_0x17e4b2(_0x4a671a)[_0x4ca36a(0x127)](_0xc159d4=>_0xc159d4['id']===_0x5d5487&&relationshipTypes(_0x27eede)[_0x4ca36a(0x12a)](_0xc159d4[_0x4ca36a(0x10d)]));if(_0x33af0a[_0x4ca36a(0x176)]!==0x1)throw Error(_0x4ca36a(0xfd)+_0x27eede+_0x4ca36a(0xdb)+_0x4a671a+'.');return _0xed1545(_0x4a671a,_0x33af0a[0x0]);},_0x573b7e=(_0xc5eef1,_0x4ddff3)=>{const _0x2b099c=a153_0x415f,_0x52a8f1=_0x17e4b2(_0xc5eef1)[_0x2b099c(0x127)](_0x1bc722=>relationshipTypes(_0x4ddff3)[_0x2b099c(0x12a)](_0x1bc722[_0x2b099c(0x10d)]));if(_0x52a8f1['length']!==0x1)throw Error(_0x2b099c(0xfd)+_0x4ddff3+_0x2b099c(0xdb)+_0xc5eef1+'.');return _0xed1545(_0xc5eef1,_0x52a8f1[0x0]);},_0xf8a7ea='xl/workbook.xml',_0x263c52=_0x4e894c(_0xf8a7ea);if(!matches(_0x263c52,_0x2ec621(0x104)))throw Error(_0x2ec621(0xee));const _0x57019a=one(chain(_0x263c52,_0x2ec621(0x131),_0x2ec621(0x145))[_0x2ec621(0x127)](_0x8156f4=>_0x8156f4[_0x2ec621(0xdd)][_0x2ec621(0x139)]===_0x261248),'worksheet'),_0x14df4c=_0x4790c2(_0xf8a7ea,_0x57019a[_0x2ec621(0xdd)][_0x2ec621(0xe2)],'worksheet'),_0x54dbbe=_0x4e894c(_0x14df4c);if(!matches(_0x54dbbe,_0x2ec621(0x119)))throw Error(_0x2ec621(0x11d));const _0x404f34=chain(_0x54dbbe,_0x2ec621(0x129),_0x2ec621(0x14a)),_0x308c59=new Map(),_0x16f4ad=new Set(_0x404f34['filter'](_0x108f97=>_0x108f97['attrs']['hidden']==='1'||_0x108f97[_0x2ec621(0xdd)][_0x2ec621(0x13b)]===_0x2ec621(0x125))[_0x2ec621(0x16e)](_0x382443=>integer(_0x382443[_0x2ec621(0xdd)]['r'],'hidden\x20image\x20row'))),_0x15f193=_0x3e6a71=>{const _0x5dd980=_0x2ec621,_0x28c843=_0x3e6a71===undefined?0xf:Number(_0x3e6a71);if(!Number[_0x5dd980(0x10a)](_0x28c843)||_0x28c843<=0x0||_0x28c843>409.5)throw Error(_0x5dd980(0x13a));return Math[_0x5dd980(0x112)](_0x28c843*0x319c);},_0x892cdd=_0x15f193(children(_0x54dbbe,_0x2ec621(0x150))[0x0]?.['attrs']['defaultRowHeight']);for(const _0x174c1b of _0x404f34)if(_0x174c1b[_0x2ec621(0xdd)]['ht']!==undefined)_0x308c59[_0x2ec621(0xd6)](integer(_0x174c1b[_0x2ec621(0xdd)]['r'],_0x2ec621(0x148)),_0x15f193(_0x174c1b[_0x2ec621(0xdd)]['ht']));const _0x2e3d64=[],_0x46bfe3=_0x3f4e6b=>{const _0x42c25e=_0x2ec621;if(!_0x3ba6c4['has'](_0x3f4e6b[_0x42c25e(0x107)]))return;if(++_0x378acd>0x2710)throw Error(_0x42c25e(0x12f));_0x2e3d64[_0x42c25e(0xdf)](_0x16f4ad['has'](_0x3f4e6b[_0x42c25e(0x14a)])?{..._0x3f4e6b,'hiddenRow':!![]}:_0x3f4e6b);},_0x365428=_0x5bf87e=>({'row':integer(one(children(_0x5bf87e,_0x2ec621(0x14a),DRAWING),'anchor\x20row')[_0x2ec621(0xd8)],_0x2ec621(0x117),0x1869f)+0x1,'col':integer(one(children(_0x5bf87e,_0x2ec621(0x107)),_0x2ec621(0xfa))['text'],_0x2ec621(0xfa),0xff)+0x1});for(const _0xadba63 of children(_0x54dbbe,_0x2ec621(0x116))){const _0x3f9b16=_0x4790c2(_0x14df4c,_0xadba63['attrs']['r:id'],_0x2ec621(0x116)),_0x3ef014=_0x4e894c(_0x3f9b16);if(!matches(_0x3ef014,_0x2ec621(0x181)))throw Error(_0x2ec621(0x16b));for(const _0x2bb1fa of _0x3ef014[_0x2ec621(0xe0)]){if(![_0x2ec621(0xe8),'twoCellAnchor','absoluteAnchor'][_0x2ec621(0x164)](_0x5a27ee=>matches(_0x2bb1fa,_0x5a27ee)))continue;if(_0x2bb1fa['name']===_0x2ec621(0x122))throw Error(_0x2ec621(0xf3)+_0x261248+'.');const _0x55dfe5=_0x365428(one(children(_0x2bb1fa,'from'),'anchor\x20start'));if(!_0x3ba6c4[_0x2ec621(0x16f)](_0x55dfe5[_0x2ec621(0x107)]))continue;let _0x25dd50;const _0xb15133=one(children(_0x2bb1fa,_0x2ec621(0x10f)),_0x2ec621(0x158)),_0x274ffc=integer(one(children(_0xb15133,_0x2ec621(0x153)),_0x2ec621(0x13e))['text'],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0x1ad1c1=_0x308c59[_0x2ec621(0x165)](_0x55dfe5['row'])??_0x892cdd;if(_0x274ffc>=_0x1ad1c1)throw Error(_0x2ec621(0x130)+_0x55dfe5[_0x2ec621(0x14a)]+'.');if(_0x2bb1fa[_0x2ec621(0x139)]===_0x2ec621(0xe8)){const _0x59f2e0=one(children(_0x2bb1fa,_0x2ec621(0x16d)),_0x2ec621(0x135)),_0x3d9b0c=integer(_0x59f2e0[_0x2ec621(0xdd)]['cy'],'image\x20height',Number['MAX_SAFE_INTEGER']);if(!_0x3d9b0c||_0x274ffc+_0x3d9b0c>_0x1ad1c1)_0x25dd50=_0x2ec621(0x144);}if(_0x2bb1fa[_0x2ec621(0x139)]===_0x2ec621(0x173)){const _0x10d2e1=one(children(_0x2bb1fa,'to'),_0x2ec621(0xe6)),_0x3fa869=_0x365428(_0x10d2e1),_0x5eaa55=integer(one(children(_0x10d2e1,_0x2ec621(0x153)),_0x2ec621(0x154))[_0x2ec621(0xd8)],_0x2ec621(0x154),Number['MAX_SAFE_INTEGER']),_0x26afcd=_0x308c59[_0x2ec621(0x165)](_0x3fa869[_0x2ec621(0x14a)])??_0x892cdd;if(_0x5eaa55>_0x26afcd||_0x3fa869['row']===_0x55dfe5[_0x2ec621(0x14a)]&&_0x5eaa55<=_0x274ffc)_0x25dd50=_0x2ec621(0x13c);if(_0x3fa869['row']<_0x55dfe5[_0x2ec621(0x14a)]||_0x3fa869[_0x2ec621(0x14a)]>_0x55dfe5[_0x2ec621(0x14a)]+0x1||_0x3fa869[_0x2ec621(0x14a)]===_0x55dfe5[_0x2ec621(0x14a)]+0x1&&_0x5eaa55!==0x0)_0x25dd50=_0x2ec621(0x144);}const _0x2067ea=chain(_0x2bb1fa,'pic',_0x2ec621(0x14e),_0x2ec621(0x118));for(const _0x1deffb of _0x2067ea){if(_0x1deffb[_0x2ec621(0xdd)][_0x2ec621(0x100)])throw Error(_0x2ec621(0x137));_0x46bfe3({..._0x55dfe5,'media':[_0x4790c2(_0x3f9b16,_0x1deffb['attrs'][_0x2ec621(0xf4)],_0x2ec621(0xef))],..._0x25dd50?{'error':_0x25dd50}:{}});}if(!_0x2067ea[_0x2ec621(0x176)])_0x46bfe3({..._0x55dfe5,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x42a41a=_0x4fa1cb=>{const _0x31e5ea=_0x2ec621,_0x34cd29=_0x4e894c(_0x573b7e(_0xf8a7ea,_0x31e5ea(0x114)));if(!matches(_0x34cd29,_0x31e5ea(0xe7)))throw Error(_0x31e5ea(0x15e));const _0x4a4020=integer(_0x4fa1cb[_0x31e5ea(0xdd)]['vm'],_0x31e5ea(0x177));if(!_0x4a4020)throw Error(_0x31e5ea(0x169));const _0x32648f=children(one(children(_0x34cd29,_0x31e5ea(0x15c)),_0x31e5ea(0x15c)),'bk')[_0x4a4020-0x1];if(!_0x32648f)throw Error(_0x31e5ea(0x128));const _0x4695f4=one(children(_0x32648f,'rc'),_0x31e5ea(0x123)),_0x255eb2=integer(_0x4695f4[_0x31e5ea(0xdd)]['t'],_0x31e5ea(0x159)),_0x4c2bac=children(one(children(_0x34cd29,_0x31e5ea(0x121)),_0x31e5ea(0x111)),_0x31e5ea(0x106))[_0x255eb2-0x1];if(!_0x255eb2||_0x4c2bac?.['attrs'][_0x31e5ea(0x139)]!==_0x31e5ea(0x17b))throw Error(_0x31e5ea(0x152));const _0x45d263=one(children(_0x34cd29,'futureMetadata')[_0x31e5ea(0x127)](_0x254be5=>_0x254be5['attrs']['name']===_0x31e5ea(0x17b)),_0x31e5ea(0x166)),_0x3f780f=children(_0x45d263,'bk')[integer(_0x4695f4[_0x31e5ea(0xdd)]['v'],_0x31e5ea(0x17a))];if(!_0x3f780f)throw Error(_0x31e5ea(0x163));const _0x293e65=chain(_0x3f780f,_0x31e5ea(0x16a))[_0x31e5ea(0x14c)](_0x1f07ce=>children(_0x1f07ce,_0x31e5ea(0x16d),SHEET))[_0x31e5ea(0x127)](_0x5f7d68=>_0x5f7d68[_0x31e5ea(0xdd)][_0x31e5ea(0x120)]?.[_0x31e5ea(0xea)]()==='{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}'),_0x11a7aa=integer(one(_0x293e65[_0x31e5ea(0x14c)](_0x30e552=>children(_0x30e552,_0x31e5ea(0x14b))),_0x31e5ea(0x11c))['attrs']['i'],_0x31e5ea(0x180)),_0x3acec0=_0x4e894c(_0x573b7e(_0xf8a7ea,_0x31e5ea(0x10c)));if(!matches(_0x3acec0,_0x31e5ea(0x174)))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x9b9983=children(_0x3acec0,'rv')[_0x11a7aa];if(!_0x9b9983)throw Error('Missing\x20rich\x20value.');const _0x5456f6=_0x4e894c(_0x573b7e(_0xf8a7ea,'rdRichValueStructure'));if(!matches(_0x5456f6,_0x31e5ea(0x10b)))throw Error(_0x31e5ea(0x133));const _0x10ebf9=children(_0x5456f6,'s')[integer(_0x9b9983[_0x31e5ea(0xdd)]['s'],_0x31e5ea(0xe5))];if(!_0x10ebf9||_0x10ebf9[_0x31e5ea(0xdd)]['t']!==_0x31e5ea(0x15f))throw Error(_0x31e5ea(0x142));const _0x214a6f=children(_0x10ebf9,'k'),_0x3f6991=_0x214a6f[_0x31e5ea(0x16e)]((_0x5c7923,_0x35661f)=>_0x5c7923[_0x31e5ea(0xdd)]['n']===_0x31e5ea(0xff)?_0x35661f:-0x1)['filter'](_0x12e31d=>_0x12e31d>=0x0);if(_0x3f6991[_0x31e5ea(0x176)]!==0x1)throw Error(_0x31e5ea(0xfe));const _0x5707cc=children(_0x9b9983,'v',RICH)[_0x3f6991[0x0]];if(!_0x5707cc)throw Error(_0x31e5ea(0xf9));const _0x378400=_0x573b7e(_0xf8a7ea,_0x31e5ea(0x13f)),_0x409129=_0x4e894c(_0x378400);if(!matches(_0x409129,_0x31e5ea(0x15d)))throw Error(_0x31e5ea(0xdc));const _0x53cc30=children(_0x409129,_0x31e5ea(0x12e))[integer(_0x5707cc[_0x31e5ea(0xd8)],'rich\x20image\x20relationship\x20index')];if(!_0x53cc30)throw Error(_0x31e5ea(0x11a));return _0x4790c2(_0x378400,_0x53cc30[_0x31e5ea(0xdd)][_0x31e5ea(0xe2)],_0x31e5ea(0xef));};let _0x5b197e;const _0x13ee9c=_0x190cf3=>{const _0x165b2d=_0x2ec621;if(!_0x5b197e){_0x5b197e=new Map();const _0x47322d=_0x17e4b2(_0xf8a7ea)['filter'](_0xe27943=>[...relationshipTypes('cellImage'),...relationshipTypes('cellImages')][_0x165b2d(0x12a)](_0xe27943['type']));if(!_0x47322d[_0x165b2d(0x176)]&&_0x2d1846[_0x165b2d(0x16f)](_0x165b2d(0x17e)))_0x47322d[_0x165b2d(0xdf)]({'id':'','type':'','target':_0x165b2d(0x171)});if(_0x47322d[_0x165b2d(0x176)]!==0x1)throw Error(_0x165b2d(0x17d));const _0x4fa958=_0xed1545(_0xf8a7ea,_0x47322d[0x0]),_0x2cdcbb=_0x4e894c(_0x4fa958);if(!matches(_0x2cdcbb,_0x165b2d(0xde)))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0xf72582 of children(_0x2cdcbb,'cellImage')){const _0x4fd047=one(chain(_0xf72582,_0x165b2d(0x141),'nvPicPr','cNvPr'),'WPS\x20image\x20name')[_0x165b2d(0xdd)][_0x165b2d(0x139)];if(!_0x4fd047||_0x5b197e[_0x165b2d(0x16f)](_0x4fd047))throw Error(_0x165b2d(0xf6));const _0x18db6f=one(chain(_0xf72582,_0x165b2d(0x141),_0x165b2d(0x14e),'blip'),_0x165b2d(0xf7));if(_0x18db6f[_0x165b2d(0xdd)][_0x165b2d(0x100)])throw Error(_0x165b2d(0x151));_0x5b197e[_0x165b2d(0xd6)](_0x4fd047,_0x4790c2(_0x4fa958,_0x18db6f['attrs']['r:embed'],_0x165b2d(0xef)));}}const _0x53a736=_0x5b197e[_0x165b2d(0x165)](_0x190cf3);if(!_0x53a736)throw Error(_0x165b2d(0xf0)+_0x190cf3+'.');return _0x53a736;},_0x5b594f=new Set();for(const _0x3d9d82 of _0x404f34['flatMap'](_0x98a539=>children(_0x98a539,'c'))){const _0x4a78e3=/^([A-Z]+)([1-9]\d*)$/[_0x2ec621(0xda)](_0x3d9d82[_0x2ec621(0xdd)]['r']??'');if(!_0x4a78e3)continue;let _0x1fc04c=0x0;for(const _0x4f67c5 of _0x4a78e3[0x1])_0x1fc04c=_0x1fc04c*0x1a+_0x4f67c5[_0x2ec621(0x12d)](0x0)-0x40;if(!_0x3ba6c4[_0x2ec621(0x16f)](_0x1fc04c))continue;const _0x11f710=integer(_0x4a78e3[0x2],_0x2ec621(0x161));if(_0x5b594f[_0x2ec621(0x16f)](_0x3d9d82[_0x2ec621(0xdd)]['r']))throw Error('Duplicate\x20mapped\x20image\x20cell.');_0x5b594f[_0x2ec621(0xfb)](_0x3d9d82['attrs']['r']);const _0x218710=children(_0x3d9d82,'f');if(!_0x3d9d82[_0x2ec621(0xdd)]['vm']&&!_0x218710[_0x2ec621(0x176)])continue;try{if(_0x11f710<0x1||_0x1fc04c>0x100)throw Error(_0x2ec621(0x14d));let _0x42d43d;if(_0x3d9d82['attrs']['vm']){if(_0x218710[_0x2ec621(0x176)])throw Error(_0x2ec621(0x162));if(_0x3d9d82[_0x2ec621(0xdd)]['t']!=='e'||children(_0x3d9d82,'v')[_0x2ec621(0x176)]!==0x1||children(_0x3d9d82,'v')[0x0][_0x2ec621(0xd8)]!==_0x2ec621(0x147))throw Error(_0x2ec621(0x110));_0x42d43d=_0x42a41a(_0x3d9d82);}else{const _0x25f2ff=one(_0x218710,_0x2ec621(0x170));if(_0x25f2ff['attrs']['t']===_0x2ec621(0xe9)||_0x25f2ff['attrs']['si'])throw Error(_0x2ec621(0xd9));const _0x574947=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x2ec621(0xda)](_0x25f2ff[_0x2ec621(0xd8)]);if(!_0x574947)throw Error(_0x2ec621(0x157));_0x42d43d=_0x13ee9c(_0x574947[0x1][_0x2ec621(0xfc)](/""/g,'\x22'));}_0x46bfe3({'row':_0x11f710,'col':_0x1fc04c,'media':[_0x42d43d],'nativeCell':!![]});}catch(_0x558271){_0x46bfe3({'row':_0x11f710,'col':_0x1fc04c,'media':[],'nativeCell':!![],'error':_0x558271[_0x2ec621(0x14f)]});}}return _0x2e3d64;}function a153_0x305d(){const _0x58f65b=['r:id','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','attributes','rich\x20structure\x20index','anchor\x20end','metadata','oneCellAnchor','shared','toLowerCase','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','opentag','futureMetadata','Unsupported\x20workbook\x20namespace.','image','Missing\x20WPS\x20image\x20ID:\x20','Image\x20XML\x20node\x20budget\x20exceeded.','2368728MlMOcH','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','r:embed','normalize','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','WPS\x20image\x20blip','_rels','Missing\x20local\x20image\x20identifier\x20value.','anchor\x20column','add','replace','Missing\x20or\x20ambiguous\x20','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','_rvRel:LocalImageIdentifier','r:link','3027874tXYORa','Relationships','local','workbook','Invalid\x20relationship\x20target:\x20','metadataType','col','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','Relationship','isFinite','rvStructures','rdRichValue','type','test','from','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','metadata\x20types','round','xl/','sheetMetadata','7423500leztuF','drawing','anchor\x20row','blip','worksheet','Missing\x20rich\x20image\x20relationship.','117oIZKMb','rich\x20value\x20binding','Unsupported\x20worksheet\x20namespace.','closetag','startsWith','uri','metadataTypes','absoluteAnchor','rich\x20metadata\x20record','3380920uRVadZ','true','22162RRRBeC','filter','Missing\x20value\x20metadata\x20block.','sheetData','includes','fromEntries','http://schemas.openxmlformats.org/drawingml/2006/main','charCodeAt','rel','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','sheets','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Unsupported\x20rich\x20structure\x20namespace.','basename','image\x20extent','posix','External\x20image\x20links\x20are\x20not\x20supported.','354fRdKNI','name','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','hidden','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','http://purl.oclc.org/ooxml/drawingml/main','anchor\x20start\x20offset','richValueRel','1YoaqEM','pic','Unsupported\x20mapped\x20rich\x20value\x20structure.','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','sheet','rdRichValueStructure','#VALUE!','image\x20row\x20height\x20coordinate','dirname','row','rvb','flatMap','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','blipFill','message','sheetFormatPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Unsupported\x20mapped\x20cell\x20metadata\x20type.','rowOff','anchor\x20end\x20offset','Unsupported\x20relationship\x20namespace\x20in\x20','values','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','anchor\x20start','metadata\x20type\x20index','write','Invalid\x20','valueMetadata','richValueRels','Unsupported\x20metadata\x20namespace.','_localImage','value','image\x20cell\x20row','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Missing\x20future\x20metadata\x20block.','some','get','rich\x20future\x20metadata','cellImage','../','Value\x20metadata\x20index\x20must\x20be\x20one-based.','extLst','Unsupported\x20drawing\x20namespace.','Relationship\x20target\x20escapes\x20workbook:\x20','ext','map','has','image\x20formula','/xl/cellimages.xml','toString','twoCellAnchor','rvData','Missing\x20XLSX\x20part:\x20','length','value\x20metadata\x20index','http://purl.oclc.org/ooxml/spreadsheetml/main','.rels','future\x20metadata\x20index','XLRICHVALUE','join','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','xl/cellimages.xml','6369045JdaMRB','rich\x20value\x20index','wsDr','http://schemas.microsoft.com/office/2017/06/relationships/','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','1252870jLmLeW','set','isSafeInteger','text','Shared\x20image\x20formulas\x20are\x20not\x20supported.','exec','\x20relationship\x20in\x20','Unsupported\x20rich\x20image\x20relation\x20namespace.','attrs','cellImages','push','children','XML\x20DTD/entities\x20are\x20not\x20supported.'];a153_0x305d=function(){return _0x58f65b;};return a153_0x305d();}
|
|
@@ -1 +1 @@
|
|
|
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();}}
|
|
1
|
+
(function(_0x5537e1,_0x5b0038){const _0x32f5b9=a154_0x2f21,_0x528438=_0x5537e1();while(!![]){try{const _0x139a26=-parseInt(_0x32f5b9(0xbb))/0x1*(parseInt(_0x32f5b9(0xe0))/0x2)+-parseInt(_0x32f5b9(0xba))/0x3*(parseInt(_0x32f5b9(0xce))/0x4)+-parseInt(_0x32f5b9(0x83))/0x5*(-parseInt(_0x32f5b9(0xcf))/0x6)+-parseInt(_0x32f5b9(0xb9))/0x7+-parseInt(_0x32f5b9(0xb6))/0x8*(-parseInt(_0x32f5b9(0x92))/0x9)+-parseInt(_0x32f5b9(0x81))/0xa*(parseInt(_0x32f5b9(0xc3))/0xb)+-parseInt(_0x32f5b9(0xb5))/0xc*(-parseInt(_0x32f5b9(0xa7))/0xd);if(_0x139a26===_0x5b0038)break;else _0x528438['push'](_0x528438['shift']());}catch(_0x56edf7){_0x528438['push'](_0x528438['shift']());}}}(a154_0x21c7,0xcd65b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x55dbe8,_0x587071){const _0xd05040=a154_0x2f21;if(!_0x587071[_0xd05040(0xae)]?.[_0xd05040(0x91)])return;const _0x5b1441=_0x55dbe8[_0xd05040(0xd1)];if(!_0x5b1441||_0x5b1441[_0xd05040(0x8a)]!==0x1||_0x5b1441['uploadId']!==_0xd05040(0xcd)||_0x5b1441['maxFileBytes']!==0xa00000||_0x5b1441[_0xd05040(0xc7)]!==0x2625a00||!Array[_0xd05040(0x9a)](_0x5b1441['types'])||![_0xd05040(0xb4),_0xd05040(0xc2),_0xd05040(0xb0)]['every'](_0x119e79=>_0x5b1441[_0xd05040(0x9f)][_0xd05040(0xdc)](_0x119e79)))throw Error(_0xd05040(0x8e));}function a154_0x21c7(){const _0x5995b9=['Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','image/jpeg','11xBdvFz','imageFields','entries','uploadFields','maxPixels','name','schemaVersion','filePath','succeeded','schemaHash','sha256','535404AfocYD','3534kKNRkF','isSafeInteger','imageImport','contract','schemaFingerprint','hash','batchSize','.lock','pending','imageApi','Invalid\x20image\x20media\x20descriptor.','Invalid\x20import\x20batch\x20size.','manifest','includes','strategy','isInteger','rows-started','27590nNPgcS','fileName','utf8','some','inputPaths','test','appCode','.rows.json','Invalid\x20image\x20manifest\x20limits.','parserVersion','rows','1474690FukmQC','gif','3625IsMakz','values','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','bytes','Image\x20media\x20bytes\x20changed.','rowNumber','Image\x20cell\x20references\x20missing\x20media.','version','upload','contentHash','runtimeDomain','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','status','maxBatchSize','length','56844iMIVQj','reduce','missing','rows-preparing','Completed\x20image\x20checkpoint\x20value\x20changed.','dataset-import/','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','datasetCode','isArray','size','update','resume','readback','types','completed','00000000-0000-4000-8000-000000000000','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','stringify','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','imageCells','13FTrOQG','map','sheet','digest','.lock.recovery','type','hashes','media','value','image/gif','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','get','code','image/png','28881276UEeXAn','928ZhkQFd','all','png','4879448EdJqLM','27cgyiYF','49nKaaUW','phase','actorId','key','importId','hex'];a154_0x21c7=function(){return _0x5995b9;};return a154_0x21c7();}export function imageObjectValue(_0x5edb3a,_0x2e840a,_0x4bdc33){const _0x5e14ae=a154_0x2f21,_0xcf261=createHash(_0x5e14ae(0xcd))[_0x5e14ae(0x9c)](JSON[_0x5e14ae(0xa4)]([_0x5edb3a[_0x5e14ae(0xbd)],_0x5edb3a[_0x5e14ae(0x7c)],_0x5edb3a[_0x5e14ae(0x99)],_0x2e840a]))[_0x5e14ae(0xaa)](_0x5e14ae(0xc0)),_0x223200={'image/png':_0x5e14ae(0xb8),'image/jpeg':'jpg','image/gif':_0x5e14ae(0x82)}[_0x4bdc33['type']];if(!_0x223200||!/^[0-9a-f]{64}$/[_0x5e14ae(0x7b)](_0x4bdc33[_0x5e14ae(0x8c)])||!Number[_0x5e14ae(0xd0)](_0x4bdc33['size'])||_0x4bdc33[_0x5e14ae(0x9b)]<=0x0||_0x4bdc33[_0x5e14ae(0x9b)]>0xa00000)throw Error(_0x5e14ae(0xd9));const _0xaee69a=_0x4bdc33[_0x5e14ae(0x8c)]+'.'+_0x223200;return{'key':_0x5e14ae(0x97)+_0xcf261+'/'+_0xaee69a,'name':_0xaee69a,'type':_0x4bdc33[_0x5e14ae(0xac)],'size':_0x4bdc33[_0x5e14ae(0x9b)]};}function a154_0x2f21(_0xcd4f5e,_0x1ccb3b){_0xcd4f5e=_0xcd4f5e-0x78;const _0x21c7d3=a154_0x21c7();let _0x2f2123=_0x21c7d3[_0xcd4f5e];return _0x2f2123;}export function bindImageManifest(_0x98dbdb,_0x2fe9ec,_0x11b2c3){const _0x14d2ef=a154_0x2f21,_0x44ef03=new Map(_0x98dbdb['media']?.[_0x14d2ef(0xa8)](_0x1750d0=>[_0x1750d0[_0x14d2ef(0x8c)],_0x1750d0])),_0x464513=new Map(_0x98dbdb[_0x14d2ef(0xa6)]?.[_0x14d2ef(0xa8)](_0x21c348=>[_0x21c348[_0x14d2ef(0x88)]+':'+_0x21c348['field'],_0x21c348[_0x14d2ef(0xad)]]));return{..._0x98dbdb,'rows':_0x98dbdb[_0x14d2ef(0x80)][_0x14d2ef(0xa8)](_0x4b58c0=>({..._0x4b58c0,'values':Object['fromEntries'](Object[_0x14d2ef(0xc5)](_0x4b58c0[_0x14d2ef(0x84)])['map'](([_0x36a04f,_0x268787])=>{const _0xcc3748=_0x14d2ef,_0x18ad7b=_0x464513[_0xcc3748(0xb2)](_0x4b58c0['rowNumber']+':'+_0x36a04f);return[_0x36a04f,_0x18ad7b?_0x18ad7b['map'](_0x29b5df=>{const _0xd5a5d5=_0xcc3748,_0x28a7ba=_0x44ef03[_0xd5a5d5(0xb2)](_0x29b5df);if(!_0x28a7ba)throw Error(_0xd5a5d5(0x89));const _0x2b4892=imageObjectValue(_0x2fe9ec,_0x11b2c3,_0x28a7ba);return _0x98dbdb[_0xd5a5d5(0xc6)]?.['includes'](_0x36a04f)?{'fileName':_0x2b4892[_0xd5a5d5(0xc8)],'filePath':_0x2b4892[_0xd5a5d5(0xbe)]}:_0x2b4892;}):_0x268787];}))}))};}async function exists(_0x3ce47f){const _0x30596a=a154_0x2f21;try{return await lstat(_0x3ce47f),!![];}catch(_0x2cdae1){if(_0x2cdae1[_0x30596a(0xb3)]==='ENOENT')return![];throw _0x2cdae1;}}export async function runImageExcelImport(_0x5bfce2){const _0x303616=a154_0x2f21;assertImportContract(_0x5bfce2[_0x303616(0xd2)],_0x5bfce2[_0x303616(0x7c)],_0x5bfce2[_0x303616(0x99)]),assertImageImportCapability(_0x5bfce2['contract'],_0x5bfce2[_0x303616(0xdb)]);if(!Number[_0x303616(0xde)](_0x5bfce2[_0x303616(0xd5)])||_0x5bfce2['batchSize']<0x1||_0x5bfce2[_0x303616(0xd5)]>_0x5bfce2['contract'][_0x303616(0x90)])throw Error(_0x303616(0xda));if(_0x5bfce2['manifest']['errors']['length']||!_0x5bfce2[_0x303616(0xdb)][_0x303616(0x80)][_0x303616(0x91)])throw Error(_0x303616(0x98));const _0x4440b9=await resolveImportOutputPath(_0x5bfce2['checkpoint']),_0x3d7edf=await resolveImportOutputPath(_0x5bfce2['report']),_0x47b110=await resolveImportOutputPath(_0x4440b9+_0x303616(0x7d)),_0x193d3f=await Promise[_0x303616(0xb7)]([_0x47b110,_0x47b110+_0x303616(0xd6),_0x47b110+_0x303616(0xab),..._0x5bfce2[_0x303616(0x7a)]??[]]['map'](resolveImportOutputPath));for(const _0x32bd7b of[_0x4440b9,_0x3d7edf,_0x4440b9+_0x303616(0xd6),_0x4440b9+_0x303616(0xab)])await resolveImportOutputPath(_0x32bd7b);assertImportPaths(_0x4440b9,_0x3d7edf,_0x193d3f);const {contract:_0x1fc7f8,manifest:_0x2cc838}=_0x5bfce2,_0x35a8a2=_0x2cc838[_0x303616(0xae)]??[];if(new Set(_0x35a8a2[_0x303616(0xa8)](_0x5d2c53=>_0x5d2c53[_0x303616(0x8c)]))[_0x303616(0x9b)]!==_0x35a8a2[_0x303616(0x91)]||_0x35a8a2[_0x303616(0x93)]((_0x1b131a,_0x5a56f5)=>_0x1b131a+_0x5a56f5['size'],0x0)>0x32*0x400*0x400||(_0x2cc838[_0x303616(0xa6)]??[])[_0x303616(0x93)]((_0x3524fc,_0x3d64f8)=>_0x3524fc+_0x3d64f8[_0x303616(0xad)][_0x303616(0x91)],0x0)>0x2710)throw Error(_0x303616(0x7e));for(const _0x3e77d5 of _0x35a8a2)if(_0x3e77d5[_0x303616(0x9b)]!==_0x3e77d5[_0x303616(0x86)][_0x303616(0x91)]||createHash(_0x303616(0xcd))[_0x303616(0x9c)](_0x3e77d5[_0x303616(0x86)])[_0x303616(0xaa)](_0x303616(0xc0))!==_0x3e77d5['contentHash'])throw Error(_0x303616(0x87));previewImportBatchCount(bindImageManifest(_0x2cc838,_0x1fc7f8,_0x303616(0xa1)),_0x1fc7f8,_0x5bfce2[_0x303616(0xd5)]);const _0x185f9b={'appCode':_0x5bfce2[_0x303616(0x7c)],'datasetCode':_0x5bfce2[_0x303616(0x99)],'runtimeDomain':_0x5bfce2[_0x303616(0x8d)],'actorId':_0x1fc7f8[_0x303616(0xbd)],'fileHash':_0x2cc838['fileHash'],'mappingHash':_0x2cc838['mappingHash'],'schemaHash':_0x2cc838[_0x303616(0xcc)],'remoteSchemaHash':_0x1fc7f8[_0x303616(0xd3)],'strategy':_0x1fc7f8[_0x303616(0xdd)],'schemaVersion':_0x1fc7f8['schemaVersion'],'batchSize':_0x5bfce2['batchSize'],'maxBatchBytes':_0x1fc7f8['maxBatchBytes'],'sheet':_0x2cc838[_0x303616(0xa9)],'parserVersion':_0x2cc838[_0x303616(0x7f)],'imageFields':_0x2cc838[_0x303616(0xc4)],'cells':_0x2cc838['imageCells'],..._0x2cc838[_0x303616(0xc6)]?.[_0x303616(0x91)]?{'uploadFields':_0x2cc838['uploadFields']}:{},'media':_0x35a8a2[_0x303616(0xa8)](({contentHash:_0x4fe29f,type:_0x19bad1,size:_0x50f4b8})=>({'contentHash':_0x4fe29f,'type':_0x19bad1,'size':_0x50f4b8})),'rows':_0x2cc838[_0x303616(0x80)]},_0x11df51=await acquireLock(_0x4440b9);try{let _0x130911;if(_0x5bfce2['resume']){try{_0x130911=JSON['parse'](await readFile(_0x4440b9,_0x303616(0x78)));}catch{throw Error(_0x303616(0xc1));}if(_0x130911[_0x303616(0x8a)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x303616(0x7b)](_0x130911[_0x303616(0xbf)])||canonical(_0x130911['binding'])!==canonical(_0x185f9b)||![_0x303616(0xae),'rows-preparing','rows-started','completed'][_0x303616(0xdc)](_0x130911['phase'])||!Array['isArray'](_0x130911[_0x303616(0xae)])||_0x130911[_0x303616(0xae)][_0x303616(0x91)]!==_0x35a8a2['length']||_0x130911[_0x303616(0xae)][_0x303616(0x79)]((_0x34e646,_0x45d3d0)=>_0x34e646[_0x303616(0xd4)]!==_0x35a8a2[_0x45d3d0][_0x303616(0x8c)]||![_0x303616(0xd7),_0x303616(0xcb)][_0x303616(0xdc)](_0x34e646['status'])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if([_0x303616(0xdf),'completed'][_0x303616(0xdc)](_0x130911['phase'])&&!await exists(_0x47b110))throw Error(_0x303616(0xa2));if(_0x130911[_0x303616(0xbc)]==='media'&&await exists(_0x47b110))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x4440b9)||await exists(_0x47b110))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x130911={'version':0x3,'importId':randomUUID(),'binding':_0x185f9b,'phase':_0x303616(0xae),'media':_0x35a8a2[_0x303616(0xa8)](_0x3d3896=>({'hash':_0x3d3896[_0x303616(0x8c)],'status':'pending'}))},await saveImportJson(_0x4440b9,_0x130911);}const _0x41c07f=(_0x38fa97,_0x4bc1eb)=>{const _0xd1b214=_0x303616;if(!_0x38fa97||_0x38fa97['contentHash']!==_0x4bc1eb[_0xd1b214(0x8c)])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x38fa97[_0xd1b214(0x8f)]===_0xd1b214(0x94))return undefined;const _0x151258=imageObjectValue(_0x1fc7f8,_0x130911['importId'],_0x4bc1eb);if(_0x38fa97[_0xd1b214(0x8f)]!==_0xd1b214(0xcb)||_0x38fa97[_0xd1b214(0xca)]!==_0x151258[_0xd1b214(0xbe)]||_0x38fa97[_0xd1b214(0xe1)]!==_0x151258[_0xd1b214(0xc8)]||_0x38fa97[_0xd1b214(0xac)]!==_0x151258['type']||_0x38fa97[_0xd1b214(0x9b)]!==_0x151258[_0xd1b214(0x9b)])throw Error(_0xd1b214(0xa3));return _0x151258;};for(let _0x47bfaa=0x0;_0x47bfaa<_0x35a8a2[_0x303616(0x91)];_0x47bfaa++){const _0x323a1e=_0x35a8a2[_0x47bfaa],_0x3f6c78=_0x130911[_0x303616(0xae)][_0x47bfaa],_0x18287f=imageObjectValue(_0x1fc7f8,_0x130911[_0x303616(0xbf)],_0x323a1e);if(_0x3f6c78[_0x303616(0x8f)]===_0x303616(0xcb)&&canonical(_0x3f6c78[_0x303616(0xaf)])!==canonical(_0x18287f))throw Error(_0x303616(0x96));let _0x2a2941;if(_0x5bfce2['resume']||_0x3f6c78['status']===_0x303616(0xcb))_0x2a2941=_0x41c07f(await _0x5bfce2[_0x303616(0xd8)][_0x303616(0x9e)](_0x130911['importId'],_0x323a1e),_0x323a1e);if(!_0x2a2941&&_0x3f6c78[_0x303616(0x8f)]===_0x303616(0xcb))throw Error(_0x303616(0x85));if(!_0x2a2941){try{_0x41c07f(await _0x5bfce2[_0x303616(0xd8)][_0x303616(0x8b)](_0x130911[_0x303616(0xbf)],_0x323a1e),_0x323a1e);}catch(_0x23bc93){_0x2a2941=_0x41c07f(await _0x5bfce2[_0x303616(0xd8)][_0x303616(0x9e)](_0x130911[_0x303616(0xbf)],_0x323a1e),_0x323a1e);if(!_0x2a2941)throw Error(_0x303616(0xb1));}if(!_0x2a2941)_0x2a2941=_0x41c07f(await _0x5bfce2[_0x303616(0xd8)][_0x303616(0x9e)](_0x130911[_0x303616(0xbf)],_0x323a1e),_0x323a1e);if(!_0x2a2941)throw Error(_0x303616(0xa5));}_0x3f6c78['status']=_0x303616(0xcb),_0x3f6c78[_0x303616(0xaf)]=_0x2a2941,await saveImportJson(_0x4440b9,_0x130911);}const _0xb14dd9=bindImageManifest(_0x2cc838,_0x1fc7f8,_0x130911['importId']),_0x181416=_0x130911[_0x303616(0xbc)]===_0x303616(0x95)?await exists(_0x47b110):_0x130911['phase']!==_0x303616(0xae);_0x130911[_0x303616(0xbc)]===_0x303616(0xae)&&(_0x130911['phase']='rows-preparing',await saveImportJson(_0x4440b9,_0x130911));const _0x359106={..._0x5bfce2,'manifest':_0xb14dd9,'checkpoint':_0x47b110,'report':_0x3d7edf,'resume':_0x181416,'onCheckpointReady':async()=>{const _0x39f5e1=_0x303616;_0x130911[_0x39f5e1(0xbc)]='rows-started',await saveImportJson(_0x4440b9,_0x130911);}},_0x4ebd29=_0x1fc7f8[_0x303616(0xc9)]===0x2?await runAutoIdExcelImport({..._0x359106,'reconcileImageConflicts':_0x5bfce2[_0x303616(0x9d)]===!![]&&_0x181416}):await runExcelImport(_0x359106);return _0x130911[_0x303616(0xbc)]=_0x303616(0xa0),await saveImportJson(_0x4440b9,_0x130911),{..._0x4ebd29,'checkpoint':_0x4440b9,'imageCount':_0x2cc838['imageCells']?.[_0x303616(0x93)]((_0x394ad0,_0x4dc2cf)=>_0x394ad0+_0x4dc2cf[_0x303616(0xad)][_0x303616(0x91)],0x0)??0x0,'uniqueImages':_0x35a8a2['length']};}finally{await _0x11df51();}}
|