@lovrabet/lovrabet-cli 2.3.12 → 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 a143_0x5458(){const _0x20923f=['checkpoint','4041835dBDWSF','2659281esCgSk','rowIndexes','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','some','length','reduce','values','uploadFields','completed','push','Invalid\x20import\x20task\x20readback\x20response.','Cannot\x20read\x20the\x20import\x20checkpoint.','isArray','parse','schemaFingerprint','20557256iyKtUu','isSafeInteger','string','message','succeeded','keys','appCode','resume','isInteger','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','2830302sPedsA','Invalid\x20import\x20batch\x20size.','errors','hasOwn','flatMap','binding','strategy','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','Import\x20generated\x20ID\x20collision.','emptyRows','status','unknown','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','readTask','taskId','sort','map','10790276eEHhSQ','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','incomplete','now','batches','imageFields','maxBatchBytes','357797ZHhArX','runtimeDomain','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','has','includes','ids','ENOENT','Excel\x20contains\x20no\x20valid\x20data\x20rows.','3313944GRXHsv','batchSize','conflict','importId','filter','actorId','Excel\x20row\x20','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','rows','write','byteLength','unsent','code','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','utf8','6ByMQdZ','pending','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','sheet','Incomplete\x20readback.','Import\x20generated\x20ID\x20conflict.','count','warnings','rowNumber','get','report','mappingHash','size','version','elapsedMs','Partial\x20import\x20task\x20readback\x20conflict.','toString'];a143_0x5458=function(){return _0x20923f;};return a143_0x5458();}const a143_0x112bca=a143_0x53b5;(function(_0x5bc289,_0x54752a){const _0x3c8953=a143_0x53b5,_0x317d1c=_0x5bc289();while(!![]){try{const _0x38c00f=-parseInt(_0x3c8953(0x12b))/0x1+parseInt(_0x3c8953(0x112))/0x2+-parseInt(_0x3c8953(0xf9))/0x3+parseInt(_0x3c8953(0xd6))/0x4+-parseInt(_0x3c8953(0xf8))/0x5*(-parseInt(_0x3c8953(0xe6))/0x6)+parseInt(_0x3c8953(0x123))/0x7+-parseInt(_0x3c8953(0x108))/0x8;if(_0x38c00f===_0x54752a)break;else _0x317d1c['push'](_0x317d1c['shift']());}catch(_0x3f0268){_0x317d1c['push'](_0x317d1c['shift']());}}}(a143_0x5458,0xbe547));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0x53b5(_0x2454f4,_0x326290){_0x2454f4=_0x2454f4-0xcf;const _0x5458d6=a143_0x5458();let _0x53b519=_0x5458d6[_0x2454f4];return _0x53b519;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x464011=>typeof _0x464011==='number'&&Number[a143_0x112bca(0x109)](_0x464011)&&_0x464011>0x0;export async function runAutoIdExcelImport(_0x27c274){const _0x51a6e0=a143_0x112bca,_0x3d929={..._0x27c274,'checkpoint':await resolveImportOutputPath(_0x27c274['checkpoint']),'report':await resolveImportOutputPath(_0x27c274[_0x51a6e0(0xf0)])},{manifest:_0x37d70a,contract:_0x5da99d,api:_0x8de9b0}=_0x3d929;assertImportContract(_0x5da99d,_0x3d929[_0x51a6e0(0x10e)],_0x3d929['datasetCode']);if(_0x5da99d['schemaVersion']!==0x2||!_0x8de9b0[_0x51a6e0(0x11f)])throw Error(_0x51a6e0(0xd0));if(_0x37d70a[_0x51a6e0(0x114)][_0x51a6e0(0xfd)])throw Error(_0x51a6e0(0xe4));if(!_0x37d70a['rows'][_0x51a6e0(0xfd)])throw Error(_0x51a6e0(0xd5));if(!Number[_0x51a6e0(0x110)](_0x3d929[_0x51a6e0(0xd7)])||_0x3d929[_0x51a6e0(0xd7)]<0x1||_0x3d929[_0x51a6e0(0xd7)]>_0x5da99d['maxBatchSize'])throw Error(_0x51a6e0(0x113));assertImportPaths(_0x3d929[_0x51a6e0(0xf7)],_0x3d929[_0x51a6e0(0xf0)]);if(_0x37d70a[_0x51a6e0(0xde)][_0x51a6e0(0xfc)](_0x170043=>Object[_0x51a6e0(0x115)](_0x170043[_0x51a6e0(0xff)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x23eaae=(_0x4e20e6,_0x11ec4)=>Buffer[_0x51a6e0(0xe0)](JSON['stringify']({'schemaFingerprint':_0x5da99d[_0x51a6e0(0x107)],'taskId':_0x11ec4,'items':_0x4e20e6[_0x51a6e0(0x122)](_0x148e64=>_0x37d70a['rows'][_0x148e64][_0x51a6e0(0xff)])}),'utf8'),_0x15b998=[];let _0x12b727=[];for(let _0x2e0fac=0x0;_0x2e0fac<_0x37d70a[_0x51a6e0(0xde)][_0x51a6e0(0xfd)];_0x2e0fac++){if(_0x23eaae([_0x2e0fac],0x2**0x34)>_0x5da99d[_0x51a6e0(0x12a)])throw Error(_0x51a6e0(0xdc)+_0x37d70a[_0x51a6e0(0xde)][_0x2e0fac]['rowNumber']+_0x51a6e0(0x111));_0x12b727[_0x51a6e0(0xfd)]&&(_0x12b727[_0x51a6e0(0xfd)]===_0x3d929['batchSize']||_0x23eaae([..._0x12b727,_0x2e0fac],0x2**0x34)>_0x5da99d['maxBatchBytes'])&&(_0x15b998['push'](_0x12b727),_0x12b727=[]),_0x12b727[_0x51a6e0(0x102)](_0x2e0fac);}if(_0x12b727[_0x51a6e0(0xfd)])_0x15b998[_0x51a6e0(0x102)](_0x12b727);const _0x448ace={'appCode':_0x3d929['appCode'],'datasetCode':_0x3d929['datasetCode'],'runtimeDomain':_0x3d929[_0x51a6e0(0xcf)],'actorId':_0x5da99d[_0x51a6e0(0xdb)],'fileHash':_0x37d70a['fileHash'],'mappingHash':_0x37d70a[_0x51a6e0(0xf1)],'schemaHash':_0x37d70a['schemaHash'],'remoteSchemaHash':_0x5da99d['schemaFingerprint'],'batchSize':_0x3d929[_0x51a6e0(0xd7)],'maxBatchBytes':_0x5da99d[_0x51a6e0(0x12a)],'sheet':_0x37d70a[_0x51a6e0(0xe9)],'strategy':_0x5da99d[_0x51a6e0(0x118)]},_0x53448f=await acquireLock(_0x3d929['checkpoint']);let _0x4429dc;const _0x15c1e7=Date[_0x51a6e0(0x127)]();let _0x2eeab9=0x0;const _0x6b35f3=[],_0x21946a=_0xc80908=>_0x4429dc?.[_0x51a6e0(0x128)][_0x51a6e0(0xda)](_0x41364c=>_0x41364c[_0x51a6e0(0x11c)]===_0xc80908)[_0x51a6e0(0xfe)]((_0x228c5a,_0xc9b1ca)=>_0x228c5a+_0xc9b1ca[_0x51a6e0(0xfa)][_0x51a6e0(0xfd)],0x0)??0x0,_0xe04e54=()=>({'importId':_0x4429dc?.[_0x51a6e0(0xd9)],'sourceRows':_0x37d70a[_0x51a6e0(0xde)][_0x51a6e0(0xfd)],'emptyRows':_0x37d70a[_0x51a6e0(0x11b)][_0x51a6e0(0xfd)],'succeeded':_0x21946a(_0x51a6e0(0x10c)),'unknown':_0x21946a('pending'),'conflicts':_0x21946a('conflict'),'notAttempted':_0x21946a(_0x51a6e0(0xe1)),'batches':_0x2eeab9,'batchResults':_0x6b35f3,'elapsedMs':Date[_0x51a6e0(0x127)]()-_0x15c1e7,'checkpoint':_0x3d929[_0x51a6e0(0xf7)],'report':_0x3d929[_0x51a6e0(0xf0)],'warnings':_0x37d70a[_0x51a6e0(0xed)]});try{if(_0x3d929[_0x51a6e0(0x10f)]){try{_0x4429dc=JSON[_0x51a6e0(0x106)](await readFile(_0x3d929['checkpoint'],_0x51a6e0(0xe5)));}catch{throw Error(_0x51a6e0(0x104));}if(!_0x4429dc||_0x4429dc[_0x51a6e0(0xf3)]!==0x2||typeof _0x4429dc['importId']!==_0x51a6e0(0x10a)||!_0x4429dc[_0x51a6e0(0xd9)]||canonical(_0x4429dc[_0x51a6e0(0x117)])!==canonical(_0x448ace)||!Array[_0x51a6e0(0x105)](_0x4429dc[_0x51a6e0(0x128)])||_0x4429dc[_0x51a6e0(0x128)][_0x51a6e0(0xfd)]!==_0x15b998[_0x51a6e0(0xfd)]||new Set(_0x4429dc[_0x51a6e0(0x128)][_0x51a6e0(0x122)](_0x5c17bf=>_0x5c17bf['taskId']))['size']!==_0x15b998['length']||_0x4429dc['batches'][_0x51a6e0(0xfc)]((_0x5b7fb7,_0xd17d63)=>!validId(_0x5b7fb7[_0x51a6e0(0x120)])||_0x5b7fb7[_0x51a6e0(0x120)]>0x2**0x34||canonical(_0x5b7fb7[_0x51a6e0(0xfa)])!==canonical(_0x15b998[_0xd17d63])||![_0x51a6e0(0xe1),_0x51a6e0(0xe7),_0x51a6e0(0x10c),_0x51a6e0(0xd8)][_0x51a6e0(0xd2)](_0x5b7fb7[_0x51a6e0(0x11c)])||!Array[_0x51a6e0(0x105)](_0x5b7fb7[_0x51a6e0(0xd3)])||_0x5b7fb7[_0x51a6e0(0xd3)][_0x51a6e0(0xfc)](_0x5125a8=>!validId(_0x5125a8))||new Set(_0x5b7fb7[_0x51a6e0(0xd3)])['size']!==_0x5b7fb7[_0x51a6e0(0xd3)][_0x51a6e0(0xfd)]||_0x5b7fb7[_0x51a6e0(0xd3)]['length']!==0x0&&_0x5b7fb7[_0x51a6e0(0xd3)][_0x51a6e0(0xfd)]!==_0x5b7fb7['rowIndexes'][_0x51a6e0(0xfd)]||_0x5b7fb7[_0x51a6e0(0x11c)]===_0x51a6e0(0x10c)&&_0x5b7fb7[_0x51a6e0(0xd3)]['length']!==_0x5b7fb7[_0x51a6e0(0xfa)][_0x51a6e0(0xfd)]||_0x5b7fb7[_0x51a6e0(0x11c)]==='unsent'&&_0x5b7fb7['ids'][_0x51a6e0(0xfd)]!==0x0))throw Error(_0x51a6e0(0xe3));const _0x338e60=_0x4429dc[_0x51a6e0(0x128)][_0x51a6e0(0x116)](_0x101faf=>_0x101faf[_0x51a6e0(0xd3)]);if(new Set(_0x338e60)[_0x51a6e0(0xf2)]!==_0x338e60[_0x51a6e0(0xfd)])throw Error(_0x51a6e0(0xe8));}else{try{await lstat(_0x3d929[_0x51a6e0(0xf7)]);throw Error(_0x51a6e0(0x125));}catch(_0x2bcfa6){if(_0x2bcfa6[_0x51a6e0(0xe2)]!==_0x51a6e0(0xd4))throw _0x2bcfa6;}const _0x365c12=new Set();_0x4429dc={'version':0x2,'importId':randomUUID(),'binding':_0x448ace,'batches':_0x15b998[_0x51a6e0(0x122)](_0x3c235f=>{const _0xd31943=_0x51a6e0;let _0x4d88cd;do{_0x4d88cd=Number(BigInt('0x'+randomBytes(0x7)[_0xd31943(0xf6)]('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x365c12[_0xd31943(0xd1)](_0x4d88cd));return _0x365c12['add'](_0x4d88cd),{'taskId':_0x4d88cd,'rowIndexes':_0x3c235f,'ids':[],'status':_0xd31943(0xe1)};})},await saveImportJson(_0x3d929['checkpoint'],_0x4429dc);}await _0x3d929['onCheckpointReady']?.();const _0x68a7e1=_0x4429dc,_0x153b5c=async(_0x4ae2c1,_0x1af522)=>{const _0xeb8a7c=_0x51a6e0;_0x4ae2c1[_0xeb8a7c(0x11c)]=_0xeb8a7c(0xd8),await saveImportJson(_0x3d929[_0xeb8a7c(0xf7)],_0x68a7e1);throw Error(_0x1af522);},_0x462f35=async _0x59cfbc=>{const _0x567432=_0x51a6e0;let _0x1641a5=await _0x8de9b0[_0x567432(0x11f)](_0x59cfbc[_0x567432(0x120)]);if(!Array[_0x567432(0x105)](_0x1641a5))throw Error(_0x567432(0x103));if(_0x59cfbc[_0x567432(0x11c)]===_0x567432(0xe1)&&_0x1641a5[_0x567432(0xfd)])return _0x153b5c(_0x59cfbc,_0x567432(0x124));if(!_0x1641a5[_0x567432(0xfd)]){if(_0x59cfbc[_0x567432(0x11c)]===_0x567432(0x10c)||_0x59cfbc[_0x567432(0xd3)][_0x567432(0xfd)])return _0x153b5c(_0x59cfbc,_0x567432(0xdd));return![];}if(_0x1641a5['length']!==_0x59cfbc[_0x567432(0xfa)][_0x567432(0xfd)])return _0x153b5c(_0x59cfbc,_0x567432(0xf5));const _0x2431e5=_0x1641a5[_0x567432(0x122)](_0x243498=>_0x243498?.['id']);if(_0x2431e5[_0x567432(0xfc)](_0x3acd51=>!validId(_0x3acd51)))return _0x153b5c(_0x59cfbc,_0x567432(0xeb));if(new Set(_0x2431e5)[_0x567432(0xf2)]!==_0x2431e5[_0x567432(0xfd)])return _0x153b5c(_0x59cfbc,'Import\x20generated\x20ID\x20conflict.');const _0x1d9b57=new Map(_0x1641a5[_0x567432(0x122)](_0x19b8f3=>[_0x19b8f3['id'],_0x19b8f3])),_0x47f339=_0x59cfbc[_0x567432(0xd3)][_0x567432(0xfd)]?[..._0x59cfbc[_0x567432(0xd3)]]:[..._0x2431e5][_0x567432(0x121)]((_0x15b51c,_0x375772)=>_0x15b51c-_0x375772);if(_0x47f339[_0x567432(0xfc)](_0x8a571=>!validId(_0x8a571))||_0x47f339[_0x567432(0xfc)]((_0x1ade9d,_0x323cae)=>_0x323cae>0x0&&_0x1ade9d<=_0x47f339[_0x323cae-0x1])||_0x47f339[_0x567432(0xfc)](_0x386dab=>!_0x1d9b57[_0x567432(0xd1)](_0x386dab)))return _0x153b5c(_0x59cfbc,_0x567432(0xeb));_0x1641a5=_0x47f339[_0x567432(0x122)](_0x4f63ee=>_0x1d9b57[_0x567432(0xef)](_0x4f63ee));const _0x36c97d=new Set(_0x68a7e1[_0x567432(0x128)][_0x567432(0xda)](_0x3a08c6=>_0x3a08c6!==_0x59cfbc)['flatMap'](_0x59e95a=>_0x59e95a[_0x567432(0xd3)]));if(_0x47f339['some'](_0x5068bd=>_0x36c97d[_0x567432(0xd1)](_0x5068bd)))return _0x153b5c(_0x59cfbc,_0x567432(0x11a));for(let _0x4dfa07=0x0;_0x4dfa07<_0x1641a5[_0x567432(0xfd)];_0x4dfa07++){const _0x47a69f=_0x37d70a['rows'][_0x59cfbc[_0x567432(0xfa)][_0x4dfa07]][_0x567432(0xff)];if(Object[_0x567432(0x10d)](_0x47a69f)[_0x567432(0xfc)](_0x4de6c2=>!sameImportValue(_0x47a69f[_0x4de6c2],_0x1641a5[_0x4dfa07][_0x4de6c2],_0x37d70a[_0x567432(0x129)]?.[_0x567432(0xd2)](_0x4de6c2)&&!_0x37d70a[_0x567432(0x100)]?.['includes'](_0x4de6c2))))return _0x153b5c(_0x59cfbc,_0x567432(0x119)+_0x37d70a[_0x567432(0xde)][_0x59cfbc['rowIndexes'][_0x4dfa07]][_0x567432(0xee)]+'.');}return _0x59cfbc[_0x567432(0xd3)]=_0x47f339,_0x59cfbc['status']='succeeded',await saveImportJson(_0x3d929[_0x567432(0xf7)],_0x68a7e1),!![];};if(_0x68a7e1[_0x51a6e0(0x128)]['some'](_0x4eec1c=>_0x4eec1c['status']===_0x51a6e0(0xd8)&&!(_0x3d929[_0x51a6e0(0x10f)]&&_0x3d929['reconcileImageConflicts']&&_0x37d70a[_0x51a6e0(0x129)]?.[_0x51a6e0(0xfd)]&&_0x4eec1c['ids'][_0x51a6e0(0xfd)]===_0x4eec1c[_0x51a6e0(0xfa)]['length'])))throw Error(_0x51a6e0(0xfb));if(_0x3d929['resume']){for(const _0x22ec3c of _0x68a7e1[_0x51a6e0(0x128)])await _0x462f35(_0x22ec3c);}for(const _0x422482 of _0x68a7e1[_0x51a6e0(0x128)]){if(_0x422482[_0x51a6e0(0x11c)]==='succeeded')continue;if(!_0x3d929[_0x51a6e0(0x10f)])await _0x462f35(_0x422482);_0x422482[_0x51a6e0(0x11c)]=_0x51a6e0(0xe7),await saveImportJson(_0x3d929[_0x51a6e0(0xf7)],_0x68a7e1),_0x2eeab9++;const _0x5e12b7=_0x422482[_0x51a6e0(0xfa)][_0x51a6e0(0x122)](_0x19c993=>_0x37d70a['rows'][_0x19c993][_0x51a6e0(0xff)]),_0x57c7f6=Date[_0x51a6e0(0x127)](),_0x12b50a={'batch':_0x2eeab9,'rowStart':_0x37d70a[_0x51a6e0(0xde)][_0x422482[_0x51a6e0(0xfa)][0x0]][_0x51a6e0(0xee)],'rowEnd':_0x37d70a[_0x51a6e0(0xde)][_0x422482[_0x51a6e0(0xfa)]['at'](-0x1)]['rowNumber'],'count':_0x5e12b7[_0x51a6e0(0xfd)],'bytes':_0x23eaae(_0x422482[_0x51a6e0(0xfa)],_0x422482[_0x51a6e0(0x120)]),'elapsedMs':0x0,'status':'unknown'};_0x6b35f3[_0x51a6e0(0x102)](_0x12b50a);try{const _0x41dd14=await _0x8de9b0[_0x51a6e0(0xdf)](_0x5e12b7,_0x422482[_0x51a6e0(0x120)]);if(!_0x41dd14||_0x41dd14[_0x51a6e0(0xec)]!==_0x5e12b7[_0x51a6e0(0xfd)]||!Array[_0x51a6e0(0x105)](_0x41dd14[_0x51a6e0(0xd3)])||_0x41dd14[_0x51a6e0(0xd3)][_0x51a6e0(0xfd)]!==_0x5e12b7[_0x51a6e0(0xfd)]||_0x41dd14[_0x51a6e0(0xd3)][_0x51a6e0(0xfc)](_0x21f8d4=>!validId(_0x21f8d4))||new Set(_0x41dd14[_0x51a6e0(0xd3)])[_0x51a6e0(0xf2)]!==_0x41dd14[_0x51a6e0(0xd3)][_0x51a6e0(0xfd)])throw Error('Invalid\x20write\x20result.');_0x422482[_0x51a6e0(0xd3)]=_0x41dd14[_0x51a6e0(0xd3)],await saveImportJson(_0x3d929['checkpoint'],_0x68a7e1);if(!await _0x462f35(_0x422482))throw Error(_0x51a6e0(0xea));}catch(_0x31a455){if(_0x422482[_0x51a6e0(0x11c)]===_0x51a6e0(0xd8))throw _0x31a455;try{await _0x462f35(_0x422482);}catch(_0x5762fc){if(_0x422482[_0x51a6e0(0x11c)]==='conflict')throw _0x5762fc;}if(_0x422482[_0x51a6e0(0x11c)]!==_0x51a6e0(0x10c))throw Error(_0x51a6e0(0x11e));}finally{_0x12b50a[_0x51a6e0(0xf4)]=Date['now']()-_0x57c7f6,_0x12b50a['status']=_0x422482[_0x51a6e0(0x11c)]===_0x51a6e0(0x10c)?_0x51a6e0(0x10c):_0x422482['status']===_0x51a6e0(0xd8)?'conflict':_0x51a6e0(0x11d);}}const _0x3202ae={'status':_0x51a6e0(0x101),..._0xe04e54()};return await saveImportJson(_0x3d929[_0x51a6e0(0xf0)],_0x3202ae),_0x3202ae;}catch(_0x14b260){if(_0x4429dc)await saveImportJson(_0x3d929['report'],{'status':_0x51a6e0(0x126),..._0xe04e54(),'message':_0x14b260[_0x51a6e0(0x10b)]});throw _0x14b260;}finally{await _0x53448f();}}
|
|
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
|
-
const a144_0x538df5=a144_0x2cb2;(function(_0x42426a,_0x4c4e13){const _0x8f2446=a144_0x2cb2,_0x45f8e1=_0x42426a();while(!![]){try{const _0xa77046=-parseInt(_0x8f2446(0x101))/0x1+parseInt(_0x8f2446(0xe4))/0x2+-parseInt(_0x8f2446(0x123))/0x3*(parseInt(_0x8f2446(0x17c))/0x4)+-parseInt(_0x8f2446(0xef))/0x5*(-parseInt(_0x8f2446(0x124))/0x6)+-parseInt(_0x8f2446(0x1ad))/0x7*(parseInt(_0x8f2446(0x1b3))/0x8)+-parseInt(_0x8f2446(0xcd))/0x9*(parseInt(_0x8f2446(0xdf))/0xa)+-parseInt(_0x8f2446(0x197))/0xb*(-parseInt(_0x8f2446(0x13b))/0xc);if(_0xa77046===_0x4c4e13)break;else _0x45f8e1['push'](_0x45f8e1['shift']());}catch(_0x5f755e){_0x45f8e1['push'](_0x45f8e1['shift']());}}}(a144_0xce79,0x24e4c));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x1322a2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';function a144_0x2cb2(_0x11c038,_0x2ddf76){_0x11c038=_0x11c038-0xc7;const _0xce7900=a144_0xce79();let _0x2cb29f=_0xce7900[_0x11c038];return _0x2cb29f;}import{SaxesParser}from'saxes';import a144_0x3f955b from'exceljs';import a144_0x332c52 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x538df5(0x168),a144_0x538df5(0x158),'datasetId',a144_0x538df5(0x170),a144_0x538df5(0xf3),a144_0x538df5(0x102),'modifierName',a144_0x538df5(0x193),a144_0x538df5(0x175),a144_0x538df5(0x16c)]),TYPES=new Set(['string',a144_0x538df5(0xfb),a144_0x538df5(0x169),a144_0x538df5(0x14d),'decimal',a144_0x538df5(0x167),a144_0x538df5(0x11b),'date',a144_0x538df5(0x11c),a144_0x538df5(0xf9),a144_0x538df5(0x110)]),isImageContainer=_0x52a4c3=>['image',a144_0x538df5(0x110)][a144_0x538df5(0x1a8)](_0x52a4c3[a144_0x538df5(0x19c)]()),hash=_0x26c8b0=>createHash(a144_0x538df5(0x1a7))[a144_0x538df5(0x1a9)](_0x26c8b0)[a144_0x538df5(0x10c)](a144_0x538df5(0x105)),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a144_0x538df5(0xd7)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x538df5(0xfc)](a144_0x538df5(0xd1))),zipRequire=createRequire(excelRequire[a144_0x538df5(0xfc)]('jszip')),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a144_0x538df5(0x19d)),zipUtf8=zipRequire(a144_0x538df5(0x194)),zipPaths=zipRequire('./utils');function centralDirectoryEnd(_0x5505ac,_0x1b76fc){const _0x6cb06c=a144_0x538df5,_0x400bcb=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x4e4549=_0x5505ac[_0x6cb06c(0x182)](Buffer[_0x6cb06c(0x143)]([0x50,0x4b,0x5,0x6]));if(_0x4e4549<0x0||_0x4e4549+0x16>_0x5505ac[_0x6cb06c(0x14f)]||_0x4e4549+0x16+_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x14)!==_0x5505ac[_0x6cb06c(0x14f)])throw _0x400bcb();let _0x2892ec=_0x5505ac['readUInt16LE'](_0x4e4549+0xa),_0x4d0bc1=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0xc),_0x2b766e=_0x5505ac[_0x6cb06c(0xe1)](_0x4e4549+0x10),_0x150547=_0x4e4549;const _0x3b4801=_0x4e4549-0x14,_0x5c91f4=_0x3b4801>=0x0&&_0x5505ac['readUInt32LE'](_0x3b4801)===0x7064b50,_0x3e16cc=[0x4,0x6,0x8,0xa][_0x6cb06c(0x1b8)](_0x2eb951=>_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+_0x2eb951)===0xffff)||_0x4d0bc1===0xffffffff||_0x2b766e===0xffffffff;if(_0x5c91f4!==_0x3e16cc)throw _0x400bcb();if(_0x5c91f4){if(_0x5505ac[_0x6cb06c(0x182)](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x3b4801)throw _0x400bcb();const _0x4ab2c9=_0x26671b=>{const _0x15d969=Number(_0x5505ac['readBigUInt64LE'](_0x26671b));if(!Number['isSafeInteger'](_0x15d969))throw _0x400bcb();return _0x15d969;};_0x150547=_0x4ab2c9(_0x3b4801+0x8);if(_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x4)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x3b4801+0x10)!==0x1||_0x150547>_0x3b4801-0x38||_0x5505ac[_0x6cb06c(0xe1)](_0x150547)!==0x6064b50||_0x4ab2c9(_0x150547+0x4)!==0x2c||_0x150547+0x38!==_0x3b4801||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x10)!==0x0||_0x5505ac[_0x6cb06c(0xe1)](_0x150547+0x14)!==0x0)throw _0x400bcb();_0x2892ec=_0x4ab2c9(_0x150547+0x20),_0x4d0bc1=_0x4ab2c9(_0x150547+0x28),_0x2b766e=_0x4ab2c9(_0x150547+0x30);if(_0x4ab2c9(_0x150547+0x18)!==_0x2892ec)throw _0x400bcb();}else{if(_0x5505ac['readUInt16LE'](_0x4e4549+0x4)!==0x0||_0x5505ac['readUInt16LE'](_0x4e4549+0x6)!==0x0||_0x5505ac[_0x6cb06c(0x177)](_0x4e4549+0x8)!==_0x2892ec)throw _0x400bcb();}const _0x5b8fa8=_0x1b76fc['readEntryCursor'];if(_0x2b766e!==_0x5b8fa8||_0x2892ec!==_0x1b76fc[_0x6cb06c(0x104)]||_0x2b766e+_0x4d0bc1!==_0x150547)throw _0x400bcb();return _0x150547;}function consumerEntryName(_0x5ddf5a,_0x50b835){const _0x4f6860=a144_0x538df5;if(_0x50b835[_0x4f6860(0x199)][_0x4f6860(0xcc)](_0x14c4af=>_0x14c4af['id']===0x1)[_0x4f6860(0x14f)]>0x1)throw new Error(_0x4f6860(0x160));const _0x2298b5=_0x50b835,_0x312e53=_0x50b835[_0x4f6860(0xd3)];if(!Buffer['isBuffer'](_0x2298b5['fileNameRaw'])||!Buffer['isBuffer'](_0x2298b5['extraFieldRaw'])||!Buffer['isBuffer'](_0x2298b5['fileCommentRaw'])||!Number[_0x4f6860(0x155)](_0x312e53)||_0x312e53<0x0||_0x312e53>_0x5ddf5a[_0x4f6860(0x14f)]-0x1e||_0x5ddf5a[_0x4f6860(0xe1)](_0x312e53)!==0x4034b50)throw new Error(_0x4f6860(0xee));const _0x211cb0=_0x312e53+0x1e+_0x5ddf5a[_0x4f6860(0x177)](_0x312e53+0x1a),_0x5c8b64=_0x211cb0+_0x5ddf5a['readUInt16LE'](_0x312e53+0x1c)+_0x50b835[_0x4f6860(0x190)];if(!Number['isSafeInteger'](_0x5c8b64)||_0x5c8b64>_0x5ddf5a[_0x4f6860(0x14f)])throw new Error(_0x4f6860(0xee));if(_0x211cb0>_0x5ddf5a['length']||!_0x5ddf5a['subarray'](_0x312e53+0x1e,_0x211cb0)[_0x4f6860(0x122)](_0x2298b5[_0x4f6860(0x132)]))throw new Error(_0x4f6860(0xf0));const _0x2a9a14=new ZipEntry({},{'decodeFileName':zipUtf8[_0x4f6860(0xf1)]});_0x2a9a14[_0x4f6860(0xe8)]=_0x50b835[_0x4f6860(0xd5)],_0x2a9a14['fileName']=_0x2298b5['fileNameRaw'],_0x2a9a14[_0x4f6860(0x1b7)]=_0x2298b5[_0x4f6860(0x18b)],_0x2a9a14[_0x4f6860(0x165)]=_0x2298b5[_0x4f6860(0x17e)][_0x4f6860(0x14f)],_0x2a9a14[_0x4f6860(0x16a)](zipReader(_0x2298b5[_0x4f6860(0x17e)])),_0x2a9a14['handleUTF8'](),_0x2a9a14[_0x4f6860(0x107)]=_0x50b835[_0x4f6860(0x107)],_0x2a9a14[_0x4f6860(0x15d)]=_0x50b835['externalFileAttributes'],_0x2a9a14[_0x4f6860(0x1a1)]();const _0x48eaf8=_0x2a9a14['dir']||Boolean((_0x2a9a14[_0x4f6860(0x139)]??0x0)&0x4000),_0x4a9e47=zipPaths['resolve'](_0x2a9a14['fileNameStr']),_0x38da4a=_0x4a9e47['startsWith']('/')?_0x4a9e47[_0x4f6860(0x153)](0x1):_0x4a9e47;return{'name':_0x38da4a,'original':_0x2a9a14['fileNameStr'],'directory':_0x48eaf8};}export function normalizeImportFields(_0x30b9ed){const _0x48f7dc=a144_0x538df5;if(!_0x30b9ed||(_0x30b9ed[_0x48f7dc(0x141)]??_0x30b9ed[_0x48f7dc(0x15b)]?.[_0x48f7dc(0x186)])!==_0x48f7dc(0xf6))throw new Error(_0x48f7dc(0xf7));const _0x55b151=Array[_0x48f7dc(0x1b9)](_0x30b9ed[_0x48f7dc(0xde)]),_0x5c4d2a=_0x55b151?_0x30b9ed['fields']:_0x30b9ed[_0x48f7dc(0x178)];if(!Array[_0x48f7dc(0x1b9)](_0x5c4d2a)||_0x5c4d2a[_0x48f7dc(0x14f)]===0x0)throw new Error(_0x48f7dc(0x19e));const _0x347184=[],_0x3db400=new Set();for(const _0x48e80d of _0x5c4d2a){if(_0x48e80d[_0x48f7dc(0x16c)]===!![])continue;let _0x3a0698=_0x48e80d['extend']??{};if(!_0x55b151&&typeof _0x3a0698===_0x48f7dc(0x11a)){try{_0x3a0698=JSON[_0x48f7dc(0xfd)](_0x3a0698);}catch{throw new Error(_0x48f7dc(0x138));}if(!_0x3a0698||typeof _0x3a0698!==_0x48f7dc(0x1a0)||Array[_0x48f7dc(0x1b9)](_0x3a0698))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x1c6aa8=_0x55b151?_0x48e80d[_0x48f7dc(0x171)]:_0x48e80d['code'],_0x40f0df=_0x55b151?_0x48e80d['doType']:_0x48e80d[_0x48f7dc(0x129)]??_0x48e80d[_0x48f7dc(0x12f)];if(typeof _0x1c6aa8!==_0x48f7dc(0x11a)||!_0x1c6aa8||typeof _0x40f0df!==_0x48f7dc(0x11a)||_0x3db400[_0x48f7dc(0x157)](_0x1c6aa8))throw new Error(_0x48f7dc(0x13d));if(_0x40f0df[_0x48f7dc(0x19c)]()===_0x48f7dc(0x108))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x3db400[_0x48f7dc(0x16f)](_0x1c6aa8);const _0x199c68=_0x55b151?_0x48e80d:_0x3a0698,_0x1cc613={'code':_0x1c6aa8,'type':_0x40f0df,'required':_0x199c68[_0x48f7dc(0x179)]===!![]};if(RESERVED[_0x48f7dc(0x157)](_0x1c6aa8)||_0x199c68[_0x48f7dc(0x198)]===!![]||_0x199c68[_0x48f7dc(0xce)]===!![])_0x1cc613[_0x48f7dc(0x198)]=!![];_0x347184['push'](_0x1cc613);}return _0x347184;}function a144_0xce79(){const _0x319ad8=['formula','sort','Invalid\x20worksheet\x20merge\x20reference.','pop','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','sha256','includes','update','Requested\x20worksheet\x20does\x20not\x20exist.','min','clear','17780CzkfzT','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','XLSX\x20file\x20exceeds\x2020\x20MB.','file','size','reference','344xhphxa','Required\x20image\x20value\x20is\x20missing.','ref','doctype','fileComment','some','isArray','rows','Duplicate\x20workbook\x20ZIP\x20entry.','Image\x20XML\x20event\x20budget\x20exceeded.','imageFields','eachCell','filter','14499xLtqqp','autoIncrement','headerRow','Image\x20XML\x20node\x20budget\x20exceeded.','exceljs','Worksheet\x20column\x20objects\x20exceed\x20100000.','relativeOffsetOfLocalHeader','decimal','generalPurposeBitFlag','every','exceljs/lib/utils/col-cache.js','bottom','Worksheet\x20coordinate\x20exceeds\x20','merges','utf8','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','definedName','fields','390QSvwhk','Expected\x20a\x20text\x20cell.','readUInt32LE','mapping','materialized','121672DxEMYQ','closetag','Invalid\x20worksheet\x20coordinate.','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','bitFlag','Worksheet\x20merge\x20work\x20exceeds\x20100000.','value','getRow','Duplicate\x20dataset\x20field\x20codes.','uploadFields','Invalid\x20ZIP\x20local\x20file\x20header.','5EpqLjJ','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','utf8decode','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','creatorName','concat','[Content_Types].xml','METADATA','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','uncompressedSize','image','dataset-import/','text','resolve','parse','get','Expected\x20a\x20boolean\x20cell.','find','246178rbQDlt','modifierId','Invalid\x20worksheet\x20hyperlink\x20reference.','entryCount','hex','charCodeAt','versionMadeBy','serial_number','Invalid\x20worksheet\x20nested\x20cell.','map','imageCells','digest','isFile','date','data','upload','localeCompare','trim','cells','parseOpen','sheet','Unknown\x20Excel\x20header:\x20','getCell','Invalid\x20worksheet\x20XML.','right','string','boolean','datetime','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','isFinite','result','Invalid\x20defined\x20name\x20coordinate.','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','equals','141pjaAmO','1051170Nouomh','columnCount','test','readEntry','Expected\x20an\x20Excel\x20date\x20cell.','type','_xlnm.Print_Titles','Duplicate\x20mapping\x20target:\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','opentag','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','dataType','Unsupported\x20field\x20type:\x20','hiddenRow','fileNameRaw','attributes','startsWith','decodeEx','write','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20dataset\x20field\x20extension\x20metadata.','unixPermissions','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','3760116RDlrVv','col','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','split','entry','error','source','entries','from','Invalid\x20worksheet\x20XML:\x20','abs','row','top','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','extname','directory','openReadStream','push','number','Non-canonical\x20worksheet\x20ZIP\x20entry.','length','close','fromBuffer','Invalid\x20worksheet\x20column\x20range.','slice','batchSize','isSafeInteger','rowCount','has','appCode','left','parseInt','dataset','image/jpeg','externalFileAttributes','contentHash','stringify','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','getTime','Cell\x20exceeds\x2064\x20KB.','Formula\x20has\x20no\x20cached\x20result.','isInteger','extraFieldsLength','sharedFormula','integer','tenantCode','textarea','readExtraFields','\x20columns.','deleted','Invalid\x20XLSX\x20archive.','repeat','add','creatorId','name','Required\x20value\x20is\x20missing.','parserVersion','Duplicate\x20header:\x20','updateTime','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','readUInt16LE','properties','required','errors','worksheets','24968jAcZpC','media','extraFieldRaw','warnings','emptyRows','address','lastIndexOf','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','max','ranges','sourceType','message','byteLength','set','destroy','fileCommentRaw','Worksheet\x20exceeds\x2016384\x20columns.','original','mergeCell','before','compressedSize','parseClose','values','createTime','./utf8','nativeCell','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','22feFHTi','generated','extraFields','code','end','toLowerCase','./reader/readerFor','Dataset\x20field\x20metadata\x20is\x20missing.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','object','processAttributes'];a144_0xce79=function(){return _0x319ad8;};return a144_0xce79();}async function checkArchive(_0x5e0def,_0x356042){await new Promise((_0xd654d1,_0x6da8f)=>{const _0xaa3712=a144_0x2cb2;a144_0x332c52[_0xaa3712(0x151)](_0x5e0def,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x185996,_0x581f46)=>{const _0x258877=_0xaa3712;if(_0x185996||!_0x581f46){_0x6da8f(_0x185996??new Error(_0x258877(0x16d)));return;}let _0x4e77bf;try{_0x4e77bf=centralDirectoryEnd(_0x5e0def,_0x581f46);}catch(_0x1ac40c){_0x581f46[_0x258877(0x150)](),_0x6da8f(_0x1ac40c);return;}let _0xa3abf6=0x0,_0xd1f3f5=0x0,_0x43d2f2=0x0,_0x59715e=0x0,_0x1970a0=0x0,_0x382b91=0x0,_0x5a0044=0x0,_0x5b9fc3=0x0,_0xaaf541=0x0,_0x3b2ba4=![],_0x4bff88;const _0x5c5763=new Set(),_0x331a77=_0x589b97=>{const _0x3cded9=_0x258877;if(_0x3b2ba4)return;_0x3b2ba4=!![],_0x4bff88?.[_0x3cded9(0x18a)](),_0x581f46[_0x3cded9(0x150)](),_0x6da8f(_0x589b97);},_0x19f11c=(_0xe80262,_0x13473e)=>{const _0x49353b=_0x258877;if(!_0xe80262||!/^\d+$/['test'](_0xe80262))throw new Error(_0x49353b(0xe6));const _0x3173d3=Number(_0xe80262);if(!Number[_0x49353b(0x155)](_0x3173d3)||_0x3173d3<0x1||_0x3173d3>_0x13473e)throw new Error(_0x49353b(0xd9)+_0x13473e+'.');return _0x3173d3;},_0xfb5eeb=(_0x2278a2,_0xa8dbba=MAX_XML_COLUMNS)=>{const _0x283bd3=_0x258877,_0x3def84=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x2278a2);if(!_0x3def84)throw new Error(_0x283bd3(0x121));let _0x2e28f1=0x0;for(const _0x1a055e of _0x3def84[0x1])_0x2e28f1=_0x2e28f1*0x1a+_0x1a055e[_0x283bd3(0x106)](0x0)-0x40;if(_0x2e28f1>_0xa8dbba)throw new Error('Worksheet\x20exceeds\x20'+_0xa8dbba+_0x283bd3(0x16b));return{'row':_0x19f11c(_0x3def84[0x2],MAX_XML_ROWS),'col':_0x2e28f1};},_0x113fb5=_0x561165=>{const _0x3bac7f=_0x258877;if(_0x561165[_0x3bac7f(0x171)]==='_xlnm.Print_Area'||_0x561165[_0x3bac7f(0x171)]===_0x3bac7f(0x12a))return;for(const _0x385823 of _0x561165[_0x3bac7f(0x185)]){if(!ABSOLUTE_NAME_RANGE[_0x3bac7f(0x126)](_0x385823[_0x3bac7f(0x13e)]('!')[_0x3bac7f(0x1a5)]()||''))continue;const _0x4fd5a9=nameCoordinates[_0x3bac7f(0x135)](_0x385823),_0x4326a6='top'in _0x4fd5a9,_0x48972d=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x147)],_0x4fd5a9[_0x3bac7f(0xd8)]]:[_0x4fd5a9[_0x3bac7f(0x146)]],_0x1cd0fc=_0x4326a6?[_0x4fd5a9[_0x3bac7f(0x159)],_0x4fd5a9[_0x3bac7f(0x119)]]:[_0x4fd5a9['col']],_0x3d33a2=(_0x3388a3,_0x276afb)=>Number[_0x3bac7f(0x155)](_0x3388a3)&&_0x3388a3>=0x1&&_0x3388a3<=_0x276afb;if(!_0x48972d['every'](_0x35c768=>_0x3d33a2(_0x35c768,MAX_XML_ROWS))||!_0x1cd0fc[_0x3bac7f(0xd6)](_0x27139a=>_0x3d33a2(_0x27139a,MAX_XML_COLUMNS)))throw new Error(_0x3bac7f(0x120));_0x5a0044+=_0x4326a6?(_0x4fd5a9[_0x3bac7f(0xd8)]-_0x4fd5a9[_0x3bac7f(0x147)]+0x1)*(_0x4fd5a9[_0x3bac7f(0x119)]-_0x4fd5a9['left']+0x1):0x1;if(_0x5a0044>MAX_ROWS)throw new Error(_0x3bac7f(0x148));}};_0x581f46['on'](_0x258877(0x140),_0x331a77),_0x581f46['on'](_0x258877(0x13f),_0x2ae9b3=>{const _0x496f9f=_0x258877;if(_0x3b2ba4)return;if(++_0x43d2f2>0x2710||(_0xa3abf6+=_0x2ae9b3[_0x496f9f(0xf8)])>MAX_EXPANDED){_0x331a77(new Error(_0x496f9f(0x11d)));return;}let _0x27f8b8;try{_0x27f8b8=consumerEntryName(_0x5e0def,_0x2ae9b3);}catch(_0x382497){_0x331a77(_0x382497);return;}if(_0x27f8b8[_0x496f9f(0x14a)]){_0x581f46[_0x496f9f(0x127)]();return;}const _0x241eb7=_0x27f8b8['name'];if(_0x356042&&(_0x241eb7!==_0x27f8b8['original']||_0x5c5763['has'](_0x241eb7)||_0x241eb7[_0x496f9f(0x134)]('/')||_0x241eb7['includes']('\x5c'))){_0x331a77(new Error(_0x496f9f(0xe7)));return;}if(_0x241eb7!==_0x27f8b8[_0x496f9f(0x18d)]&&(_0x241eb7==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7))){_0x331a77(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0xbbfb6e=_0x241eb7==='xl/workbook.xml';if(_0xbbfb6e&&_0x5c5763[_0x496f9f(0x157)](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0xc8)));return;}_0x5c5763[_0x496f9f(0x16f)](_0x241eb7);const _0x166b92=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x496f9f(0x126)](_0x241eb7);if(_0x166b92&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x241eb7)){_0x331a77(new Error(_0x496f9f(0x14e)));return;}_0x581f46[_0x496f9f(0x14b)](_0x2ae9b3,(_0x3893a9,_0x1e495d)=>{const _0x7d5373=_0x496f9f;if(_0x3b2ba4){_0x1e495d?.[_0x7d5373(0x18a)]();return;}if(_0x3893a9||!_0x1e495d){_0x331a77(_0x3893a9??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x4bff88=_0x1e495d;const _0x1271bb=_0x356042?[]:undefined,_0xe551fc=_0x356042&&/[.](xml|rels)$/[_0x7d5373(0x126)](_0x241eb7)?new StringDecoder('utf8'):undefined,_0x100d68=_0xe551fc?new SaxesParser({'xmlns':![]}):undefined,_0x648e5b=()=>{const _0x4c84b6=_0x7d5373;if(++_0xaaf541>0x1e8480)throw Error(_0x4c84b6(0xc9));};_0x100d68?.['on'](_0x7d5373(0x1b6),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x100d68?.['on'](_0x7d5373(0x12d),()=>{const _0x507af1=_0x7d5373;_0x648e5b();if(++_0x5b9fc3>0x7a120)throw Error(_0x507af1(0xd0));}),_0x100d68?.['on'](_0x7d5373(0xfb),_0x648e5b),_0x100d68?.['on']('closetag',_0x648e5b),_0x100d68?.['on'](_0x7d5373(0x140),_0x2a1264=>{throw _0x2a1264;});const _0x327e4e=_0x166b92||_0xbbfb6e?new StringDecoder('utf8'):undefined,_0x1f27b8=_0x166b92||_0xbbfb6e?new SaxesParser({'xmlns':![]}):undefined;let _0x7cc4f5,_0x4d3f16=0x0,_0x49c9f0=0x0,_0x2147e4,_0x121043,_0x26d73d=![],_0x4b071b=![],_0x268740,_0x27fb2b,_0x53cdf1,_0x45fdab=![];const _0x2c6f9b=[],_0x3175e2=new Set();let _0x469297;const _0x5718db=(_0x277c93,_0x34dd78=0x0)=>{const _0x4b55e5=_0x7d5373;_0x1970a0+=_0x34dd78+Math['max'](0x0,_0x277c93-_0x49c9f0),_0x49c9f0=Math[_0x4b55e5(0x184)](_0x49c9f0,_0x277c93);if(_0x1970a0>MAX_ROWS)throw new Error(_0x4b55e5(0xd2));};_0x1f27b8?.['on'](_0x7d5373(0x12d),_0x526ae3=>{const _0x4cc6ea=_0x7d5373;if(_0xbbfb6e){if(!_0x7cc4f5&&_0x526ae3['name']===_0x4cc6ea(0xdd))_0x7cc4f5=new DefinedNameXform();_0x7cc4f5?.[_0x4cc6ea(0x114)](_0x526ae3);return;}if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x146)){if(_0x4b071b)throw new Error('Invalid\x20worksheet\x20nested\x20row.');_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)]['r'],MAX_XML_ROWS),_0x2147e4=undefined,_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x526ae3['name']==='c'){if(_0x4b071b)throw new Error(_0x4cc6ea(0x109));_0x4b071b=!![],_0x26d73d=Boolean(Number[_0x4cc6ea(0x15a)](_0x526ae3[_0x4cc6ea(0x133)]['s']??'',0xa)),_0x469297=undefined,_0x268740=_0x526ae3[_0x4cc6ea(0x133)]['r']||undefined,_0x27fb2b=_0x268740?_0xfb5eeb(_0x268740):undefined;if(_0x27fb2b)_0x121043=_0x27fb2b;else _0x121043=_0x2147e4?{'row':_0x2147e4[_0x4cc6ea(0x146)],'col':_0x2147e4[_0x4cc6ea(0x13c)]+0x1}:undefined;}else{if(_0x4b071b&&['f','v','t'][_0x4cc6ea(0x1a8)](_0x526ae3[_0x4cc6ea(0x171)])){_0x469297=_0x526ae3['name'];if(_0x526ae3[_0x4cc6ea(0x171)]==='f'&&_0x526ae3[_0x4cc6ea(0x133)]['t'])_0x26d73d=!![];}else{if(_0x4b071b&&_0x526ae3[_0x4cc6ea(0x171)]==='r')_0x26d73d=!![];else{if(_0x526ae3[_0x4cc6ea(0x171)]==='hyperlink'){const _0x5272a4=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x5272a4)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x1386c8=_0x5272a4[_0x4cc6ea(0x13e)](':');if(_0x1386c8['length']>0x2)throw new Error(_0x4cc6ea(0x103));const _0x221998=_0xfb5eeb(_0x1386c8[0x0]),_0x42d290=_0xfb5eeb(_0x1386c8[0x1]??_0x1386c8[0x0]);_0x3175e2[_0x4cc6ea(0x16f)](_0x5272a4),_0x5718db(Math[_0x4cc6ea(0x184)](_0x221998[_0x4cc6ea(0x13c)],_0x42d290[_0x4cc6ea(0x13c)]),0x1);}else{if(_0x526ae3[_0x4cc6ea(0x171)]===_0x4cc6ea(0x13c)){const _0x23c5a3=_0x19f11c(_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1ab)],0x4000),_0x286e44=_0x19f11c(_0x526ae3['attributes'][_0x4cc6ea(0x184)],0x4000);if(_0x23c5a3>_0x286e44)throw new Error(_0x4cc6ea(0x152));_0x5718db(_0x286e44,0x1);}else{if(_0x526ae3['name']===_0x4cc6ea(0x18e)){const _0x379325=_0x526ae3[_0x4cc6ea(0x133)][_0x4cc6ea(0x1b5)];if(!_0x379325)throw new Error(_0x4cc6ea(0x1a4));const _0xefed36=_0x379325[_0x4cc6ea(0x13e)](':');if(_0xefed36['length']>0x2)throw new Error(_0x4cc6ea(0x1a4));const _0x222ba4=_0xfb5eeb(_0xefed36[0x0]),_0x405e5f=_0xfb5eeb(_0xefed36[0x1]??_0xefed36[0x0]);_0x5718db(Math[_0x4cc6ea(0x184)](_0x222ba4['col'],_0x405e5f[_0x4cc6ea(0x13c)]));const _0x4eca8f=(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x146)]-_0x222ba4[_0x4cc6ea(0x146)])+0x1)*(Math[_0x4cc6ea(0x145)](_0x405e5f[_0x4cc6ea(0x13c)]-_0x222ba4[_0x4cc6ea(0x13c)])+0x1);_0x59715e+=_0x4eca8f+_0x4d3f16++;if(_0x59715e>MAX_ROWS)throw new Error(_0x4cc6ea(0xe9));}}}}}}}}),_0x1f27b8?.['on']('text',_0x3fd434=>{if(_0xbbfb6e){_0x7cc4f5?.['parseText'](_0x3fd434);return;}if(_0x4b071b&&_0x469297&&_0x3fd434)_0x26d73d=!![];}),_0x1f27b8?.['on'](_0x7d5373(0xe5),_0x485ca4=>{const _0x2201bd=_0x7d5373;if(_0xbbfb6e){_0x7cc4f5&&!_0x7cc4f5[_0x2201bd(0x191)]()&&(_0x113fb5(_0x7cc4f5['model']),_0x7cc4f5=undefined);return;}if(_0x485ca4['name']==='c'){!_0x26d73d&&_0x268740&&!_0x53cdf1&&(_0x53cdf1={'before':_0x2147e4,'cells':[]});if(_0x53cdf1){if(++_0x382b91>0xf4240)throw new Error(_0x2201bd(0x196));_0x53cdf1[_0x2201bd(0x113)][_0x2201bd(0x14c)]({'reference':_0x268740,'address':_0x27fb2b,'materialized':_0x26d73d});if(!_0x268740&&_0x26d73d)_0x45fdab=!![];}if(_0x26d73d){if(!_0x53cdf1||_0x268740){if(!_0x121043)throw new Error(_0x2201bd(0x1ae));if(_0x121043[_0x2201bd(0x13c)]>MAX_XML_COLUMNS)throw new Error(_0x2201bd(0x18c));_0x5718db(_0x121043[_0x2201bd(0x13c)]);}_0x2147e4=_0x121043;}_0x4b071b=![],_0x121043=undefined,_0x268740=undefined,_0x27fb2b=undefined,_0x469297=undefined;}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x2201bd(0x146)){if(_0x53cdf1&&_0x45fdab)_0x2c6f9b[_0x2201bd(0x14c)](_0x53cdf1);_0x53cdf1=undefined,_0x45fdab=![];}else{if(_0x485ca4[_0x2201bd(0x171)]===_0x469297)_0x469297=undefined;}}}),_0x1f27b8?.['on'](_0x7d5373(0x140),_0x552246=>{const _0x3a2bc7=_0x7d5373;throw new Error(_0x3a2bc7(0x144)+_0x552246[_0x3a2bc7(0x187)]);}),_0x1e495d['on'](_0x7d5373(0x140),_0x331a77),_0x1e495d['on'](_0x7d5373(0x10f),_0x4314d6=>{const _0x4936b5=_0x7d5373;if(_0x3b2ba4)return;_0xd1f3f5+=_0x4314d6[_0x4936b5(0x14f)],_0x1271bb?.['push'](_0x4314d6);if(_0xd1f3f5>MAX_EXPANDED){_0x331a77(new Error(_0x4936b5(0x11d)));return;}try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x4936b5(0x136)](_0x4314d6));if(_0x1f27b8&&_0x327e4e)_0x1f27b8[_0x4936b5(0x136)](_0x327e4e[_0x4936b5(0x136)](_0x4314d6));}catch(_0x2232c1){_0x331a77(_0x2232c1 instanceof Error?_0x2232c1:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1e495d['on'](_0x7d5373(0x19b),()=>{const _0x179efc=_0x7d5373;if(_0x3b2ba4)return;try{if(_0x100d68&&_0xe551fc)_0x100d68['write'](_0xe551fc[_0x179efc(0x19b)]())[_0x179efc(0x150)]();if(_0x1f27b8&&_0x327e4e)_0x1f27b8['write'](_0x327e4e[_0x179efc(0x19b)]())['close']();for(const _0x2930b2 of _0x2c6f9b){let _0x1100f5=_0x2930b2[_0x179efc(0x18f)];for(const _0x1f569d of _0x2930b2[_0x179efc(0x113)]){if(!_0x1f569d[_0x179efc(0xe3)]&&!(_0x1f569d['reference']&&_0x3175e2[_0x179efc(0x157)](_0x1f569d[_0x179efc(0x1b2)])))continue;const _0x39f6d3=_0x1f569d[_0x179efc(0x181)]??(_0x1100f5?{'row':_0x1100f5[_0x179efc(0x146)],'col':_0x1100f5[_0x179efc(0x13c)]+0x1}:undefined);if(!_0x39f6d3)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x39f6d3[_0x179efc(0x13c)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x5718db(_0x39f6d3['col']),_0x1100f5=_0x39f6d3;}}_0x2c6f9b[_0x179efc(0x14f)]=0x0,_0x3175e2[_0x179efc(0x1ac)]();}catch(_0x14210c){_0x331a77(_0x14210c instanceof Error?_0x14210c:new Error(_0x179efc(0x118)));return;}if(_0x1271bb)_0x356042[_0x179efc(0x189)](_0x241eb7,Buffer[_0x179efc(0xf4)](_0x1271bb));_0x4bff88=undefined,_0x581f46[_0x179efc(0x127)]();});});}),_0x581f46['on'](_0x258877(0x19b),()=>{const _0x40d475=_0x258877;if(_0x3b2ba4)return;if(_0x581f46['readEntryCursor']!==_0x4e77bf){_0x6da8f(new Error(_0x40d475(0x19f)));return;}if(!_0x5c5763[_0x40d475(0x157)](_0x40d475(0xf5))||!_0x5c5763[_0x40d475(0x157)]('xl/workbook.xml'))_0x6da8f(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0xd654d1();}),_0x581f46[_0x258877(0x127)]();});});}function valueOf(_0x325963){const _0x269fee=a144_0x538df5,_0x4a35af=_0x325963[_0x269fee(0xea)];if(_0x4a35af&&typeof _0x4a35af===_0x269fee(0x1a0)&&(_0x269fee(0x1a2)in _0x4a35af||_0x269fee(0x166)in _0x4a35af)){if(!(_0x269fee(0x11f)in _0x4a35af)||_0x4a35af['result']===undefined)throw new Error(_0x269fee(0x163));return _0x4a35af['result'];}return _0x4a35af;}function convert(_0x34c6e2,_0xe57620){const _0x2df5e7=a144_0x538df5;if(_0x34c6e2===null||_0x34c6e2===undefined||_0x34c6e2===''){if(_0xe57620[_0x2df5e7(0x179)]&&!_0xe57620[_0x2df5e7(0x198)])throw new Error(_0x2df5e7(0x172));return null;}if(typeof _0x34c6e2===_0x2df5e7(0x11a)&&Buffer['byteLength'](_0x34c6e2,_0x2df5e7(0xdb))>MAX_CELL)throw new Error(_0x2df5e7(0x162));switch(_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()){case _0x2df5e7(0x11a):case _0x2df5e7(0xfb):case _0x2df5e7(0x169):if(typeof _0x34c6e2!=='string')throw new Error(_0x2df5e7(0xe0));return _0x34c6e2;case _0x2df5e7(0x14d):case _0x2df5e7(0xd4):case'integer':if(typeof _0x34c6e2!==_0x2df5e7(0x14d)||!Number[_0x2df5e7(0x11e)](_0x34c6e2)||Math['abs'](_0x34c6e2)>Number['MAX_SAFE_INTEGER']||_0xe57620[_0x2df5e7(0x129)][_0x2df5e7(0x19c)]()==='integer'&&!Number[_0x2df5e7(0x164)](_0x34c6e2))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x34c6e2;case _0x2df5e7(0x11b):if(typeof _0x34c6e2!=='boolean')throw new Error(_0x2df5e7(0xff));return _0x34c6e2;case _0x2df5e7(0x10e):case _0x2df5e7(0x11c):if(!(_0x34c6e2 instanceof Date)||!Number['isFinite'](_0x34c6e2[_0x2df5e7(0x161)]()))throw new Error(_0x2df5e7(0x128));return _0x34c6e2[_0x2df5e7(0x161)]();default:throw new Error(_0x2df5e7(0x130)+_0xe57620[_0x2df5e7(0x129)]+'.');}}export async function buildExcelManifest(_0x4afb23){const _0x2e3cf2=a144_0x538df5,_0x56c9a9=_0x4afb23[_0x2e3cf2(0xcf)]??0x1;if(!Number[_0x2e3cf2(0x164)](_0x56c9a9)||_0x56c9a9<0x1||_0x56c9a9>MAX_ROWS)throw new Error(_0x2e3cf2(0x1a6));if(_0x4afb23['batchSize']!==undefined&&(!Number[_0x2e3cf2(0x164)](_0x4afb23[_0x2e3cf2(0x154)])||_0x4afb23[_0x2e3cf2(0x154)]<0x1||_0x4afb23[_0x2e3cf2(0x154)]>0x3e8))throw new Error(_0x2e3cf2(0xdc));if(a144_0x1322a2[_0x2e3cf2(0x149)](_0x4afb23[_0x2e3cf2(0x1b0)])[_0x2e3cf2(0x19c)]()!=='.xlsx')throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x5f378d=await stat(_0x4afb23[_0x2e3cf2(0x1b0)]);if(!_0x5f378d[_0x2e3cf2(0x10d)]()||_0x5f378d[_0x2e3cf2(0x1b1)]>MAX_FILE)throw new Error(_0x2e3cf2(0x12e));const _0x583f97=await readFile(_0x4afb23[_0x2e3cf2(0x1b0)]);if(_0x583f97[_0x2e3cf2(0x14f)]>MAX_FILE)throw new Error(_0x2e3cf2(0x1af));const _0x16292f=_0x4afb23['fields'][_0x2e3cf2(0x1b8)](_0x20f4d3=>isImageContainer(_0x20f4d3[_0x2e3cf2(0x129)])&&Object['values'](_0x4afb23[_0x2e3cf2(0xe2)])[_0x2e3cf2(0x1a8)](_0x20f4d3[_0x2e3cf2(0x19a)]))?new Map():undefined;await checkArchive(_0x583f97,_0x16292f);const _0x528bf4=new a144_0x3f955b['Workbook']();await _0x528bf4['xlsx']['load'](_0x583f97,{'ignoreNodes':['dataValidations']});const _0x2b16f7=_0x4afb23[_0x2e3cf2(0x115)];let _0x319b02;if(_0x2b16f7===undefined)_0x319b02=_0x528bf4['worksheets'][0x0];else{if(typeof _0x2b16f7===_0x2e3cf2(0x11a)&&_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x1b8)](_0x5ac235=>_0x5ac235[_0x2e3cf2(0x171)]===_0x2b16f7))_0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x303edc=>_0x303edc[_0x2e3cf2(0x171)]===_0x2b16f7);else{if(typeof _0x2b16f7==='number'||/^\d+$/['test'](_0x2b16f7)){const _0x409315=Number(_0x2b16f7);if(!Number[_0x2e3cf2(0x164)](_0x409315)||_0x409315<0x1)throw new Error(_0x2e3cf2(0x183));_0x319b02=_0x528bf4['worksheets'][_0x409315-0x1];}else _0x319b02=_0x528bf4[_0x2e3cf2(0x17b)][_0x2e3cf2(0x100)](_0x516890=>_0x516890[_0x2e3cf2(0x171)]===_0x2b16f7);}}if(!_0x319b02)throw new Error(_0x2e3cf2(0x1aa));if(_0x319b02['rowCount']>MAX_ROWS||_0x319b02[_0x2e3cf2(0x125)]>MAX_COLUMNS)throw new Error(_0x2e3cf2(0xf2));if((_0x319b02['model'][_0x2e3cf2(0xda)]??[])[_0x2e3cf2(0x14f)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x37a349=new Map();_0x319b02[_0x2e3cf2(0xeb)](_0x56c9a9)['eachCell']((_0x1a3173,_0xd34858)=>{const _0x262df5=_0x2e3cf2,_0x43baa3=valueOf(_0x1a3173);if(typeof _0x43baa3!==_0x262df5(0x11a)||!_0x43baa3[_0x262df5(0x112)]()||Buffer[_0x262df5(0x188)](_0x43baa3)>MAX_CELL)throw new Error(_0x262df5(0x13a));if(_0x37a349[_0x262df5(0x157)](_0x43baa3))throw new Error(_0x262df5(0x174)+_0x43baa3+'.');_0x37a349[_0x262df5(0x189)](_0x43baa3,_0xd34858);});const _0x258c26=Object[_0x2e3cf2(0x142)](_0x4afb23['mapping']);if(!_0x258c26['length'])throw new Error(_0x2e3cf2(0x137));const _0x42681c=new Map(_0x4afb23[_0x2e3cf2(0xde)][_0x2e3cf2(0x10a)](_0x1a14ab=>[_0x1a14ab[_0x2e3cf2(0x19a)],_0x1a14ab]));if(_0x42681c['size']!==_0x4afb23[_0x2e3cf2(0xde)]['length'])throw new Error(_0x2e3cf2(0xec));if(_0x4afb23[_0x2e3cf2(0xde)]['some'](_0x275968=>_0x275968['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x108)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x33719a=new Set();for(const [_0x435f14,_0x3efa35]of _0x258c26){const _0x163b5c=_0x42681c[_0x2e3cf2(0xfe)](_0x3efa35);if(!_0x37a349[_0x2e3cf2(0x157)](_0x435f14))throw new Error(_0x2e3cf2(0x116)+_0x435f14+'.');if(!_0x163b5c||RESERVED['has'](_0x3efa35)||_0x163b5c[_0x2e3cf2(0x198)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x3efa35+'.');if(_0x33719a[_0x2e3cf2(0x157)](_0x3efa35))throw new Error(_0x2e3cf2(0x12b)+_0x3efa35+'.');if(!TYPES[_0x2e3cf2(0x157)](_0x163b5c[_0x2e3cf2(0x129)][_0x2e3cf2(0x19c)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x163b5c['type']+'.');_0x33719a['add'](_0x3efa35);}for(const _0x26ac1c of _0x4afb23[_0x2e3cf2(0xde)]){if(_0x26ac1c['required']&&!_0x26ac1c['generated']&&!RESERVED[_0x2e3cf2(0x157)](_0x26ac1c[_0x2e3cf2(0x19a)])&&!_0x33719a[_0x2e3cf2(0x157)](_0x26ac1c['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x26ac1c[_0x2e3cf2(0x19a)]+'.');}const _0x4330b8={'fileHash':hash(_0x583f97),'mappingHash':hash(JSON[_0x2e3cf2(0x15f)]([..._0x258c26][_0x2e3cf2(0x1a3)](([_0x3b69ab],[_0x2d3084])=>_0x3b69ab[_0x2e3cf2(0x111)](_0x2d3084)))),'schemaHash':hash(JSON['stringify']([..._0x4afb23[_0x2e3cf2(0xde)]][_0x2e3cf2(0x1a3)]((_0x415d0f,_0x21df1a)=>_0x415d0f[_0x2e3cf2(0x19a)][_0x2e3cf2(0x111)](_0x21df1a['code'])))),'sheet':_0x319b02['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x134b60=_0x258c26[_0x2e3cf2(0xcc)](([,_0x10318e])=>isImageContainer(_0x42681c[_0x2e3cf2(0xfe)](_0x10318e)['type'])),_0x947f3=_0x134b60[_0x2e3cf2(0xcc)](([,_0x7cbd73])=>_0x42681c[_0x2e3cf2(0xfe)](_0x7cbd73)['type'][_0x2e3cf2(0x19c)]()===_0x2e3cf2(0x110))['map'](([,_0x2b8533])=>_0x2b8533);if(_0x947f3[_0x2e3cf2(0x14f)])_0x4330b8[_0x2e3cf2(0xed)]=_0x947f3;const _0x313545=_0x16292f?resolveWorksheetImages(_0x16292f,_0x319b02[_0x2e3cf2(0x171)],new Set(_0x134b60['map'](([_0x4beb04])=>_0x37a349[_0x2e3cf2(0xfe)](_0x4beb04)))):[],_0x4969b0=new Map();for(const _0x30f74b of _0x313545){const _0x49d403=_0x30f74b[_0x2e3cf2(0x146)]+':'+_0x30f74b[_0x2e3cf2(0x13c)],_0x390e30=_0x4969b0[_0x2e3cf2(0xfe)](_0x49d403)??[];_0x390e30[_0x2e3cf2(0x14c)](_0x30f74b),_0x4969b0['set'](_0x49d403,_0x390e30);}const _0x2ccebb=new Map();let _0x58f4df=0x0;_0x134b60[_0x2e3cf2(0x14f)]&&(_0x4330b8[_0x2e3cf2(0xca)]=_0x134b60['map'](([,_0x3b8259])=>_0x3b8259),_0x4330b8[_0x2e3cf2(0x10b)]=[],_0x4330b8[_0x2e3cf2(0x173)]=0x1,_0x4330b8[_0x2e3cf2(0x17d)]=[]);const _0x40c746=Math[_0x2e3cf2(0x184)](0x0,..._0x313545['map'](_0x5e18fb=>_0x5e18fb[_0x2e3cf2(0x146)]));let _0x3ab4ec=0x0;const _0x294c15=new Set(_0x258c26[_0x2e3cf2(0x10a)](([_0x2c602d])=>_0x37a349[_0x2e3cf2(0xfe)](_0x2c602d)));for(let _0x49f852=_0x56c9a9+0x1;_0x49f852<=Math[_0x2e3cf2(0x184)](_0x319b02[_0x2e3cf2(0x156)],_0x40c746);_0x49f852++){const _0x5c4c28=_0x319b02[_0x2e3cf2(0xeb)](_0x49f852);if(_0x5c4c28['hidden']||_0x313545[_0x2e3cf2(0x1b8)](_0x3716c9=>_0x3716c9[_0x2e3cf2(0x146)]===_0x49f852&&_0x3716c9[_0x2e3cf2(0x131)]))_0x3ab4ec++;let _0x569812=_0x313545['some'](_0x47cd90=>_0x47cd90['row']===_0x49f852);_0x5c4c28[_0x2e3cf2(0xcb)](_0x25a561=>{const _0x52f51a=_0x2e3cf2;if(_0x25a561[_0x52f51a(0xea)]!==null&&_0x25a561[_0x52f51a(0xea)]!==undefined&&_0x25a561['value']!=='')_0x569812=!![];});if(!_0x569812){_0x4330b8[_0x2e3cf2(0x180)]['push'](_0x49f852);continue;}const _0x19a61d=Object['create'](null);_0x5c4c28[_0x2e3cf2(0xcb)]((_0x1c08fb,_0x2972c7)=>{const _0x105403=_0x2e3cf2;if(_0x294c15[_0x105403(0x157)](_0x2972c7))return;try{const _0x3946cc=valueOf(_0x1c08fb);if(typeof _0x3946cc===_0x105403(0x11a)&&Buffer['byteLength'](_0x3946cc,'utf8')>MAX_CELL)throw new Error(_0x105403(0x162));}catch(_0x5e2703){_0x4330b8[_0x105403(0x17a)][_0x105403(0x14c)]({'rowNumber':_0x49f852,'field':_0x1c08fb[_0x105403(0x181)],'message':_0x5e2703[_0x105403(0x187)]});}});for(const [_0x58b6ab,_0x4ca21d]of _0x258c26){try{const _0x467320=_0x5c4c28[_0x2e3cf2(0x117)](_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab)),_0x1e049b=_0x42681c[_0x2e3cf2(0xfe)](_0x4ca21d);if(!isImageContainer(_0x1e049b['type'])){_0x19a61d[_0x4ca21d]=convert(valueOf(_0x467320),_0x1e049b);continue;}const _0x9b40db=_0x4969b0[_0x2e3cf2(0xfe)](_0x49f852+':'+_0x37a349[_0x2e3cf2(0xfe)](_0x58b6ab))??[];if(_0x9b40db[_0x2e3cf2(0x1b8)](_0x3322b7=>_0x3322b7[_0x2e3cf2(0x140)]))throw Error(_0x9b40db[_0x2e3cf2(0x100)](_0xf03e84=>_0xf03e84[_0x2e3cf2(0x140)])[_0x2e3cf2(0x140)]);if(_0x467320[_0x2e3cf2(0xea)]!=null&&_0x467320[_0x2e3cf2(0xea)]!==''&&!_0x9b40db[_0x2e3cf2(0x1b8)](_0x1cf278=>_0x1cf278[_0x2e3cf2(0x195)]))throw Error(_0x2e3cf2(0x12c));const _0x1a2bc5=[];for(const _0x53e14b of _0x9b40db)for(const _0x4b9bcd of _0x53e14b[_0x2e3cf2(0x17d)]){const _0x4e25ac=_0x16292f['get'](_0x4b9bcd);if(!_0x4e25ac)throw Error('Missing\x20image\x20media:\x20'+_0x4b9bcd+'.');const _0x168e9c=hash(_0x4e25ac),_0x21a300=_0x2ccebb[_0x2e3cf2(0xfe)](_0x168e9c)??validateImageBytes(_0x4e25ac);if(!_0x2ccebb[_0x2e3cf2(0x157)](_0x21a300[_0x2e3cf2(0x15e)])){_0x58f4df+=_0x21a300[_0x2e3cf2(0x1b1)];if(_0x58f4df>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x2ccebb[_0x2e3cf2(0x189)](_0x21a300[_0x2e3cf2(0x15e)],_0x21a300);}_0x1a2bc5[_0x2e3cf2(0x14c)](_0x21a300[_0x2e3cf2(0x15e)]);}if(!_0x1a2bc5[_0x2e3cf2(0x14f)]&&_0x1e049b[_0x2e3cf2(0x179)])throw Error(_0x2e3cf2(0x1b4));if(_0x1a2bc5[_0x2e3cf2(0x14f)])_0x4330b8['imageCells'][_0x2e3cf2(0x14c)]({'rowNumber':_0x49f852,'field':_0x4ca21d,'hashes':_0x1a2bc5});_0x19a61d[_0x4ca21d]=_0x1a2bc5[_0x2e3cf2(0x10a)](_0x31b7f7=>{const _0x35044a=_0x2e3cf2,_0x4c55da=_0x2ccebb['get'](_0x31b7f7),_0x1f502a=_0x4c55da[_0x35044a(0x129)]===_0x35044a(0x15c)?'jpg':_0x4c55da['type'][_0x35044a(0x153)](0x6),_0x3b656d=_0x31b7f7+'.'+_0x1f502a,_0x381e82=_0x35044a(0xfa)+'0'[_0x35044a(0x16e)](0x40)+'/'+_0x3b656d;return _0x1e049b[_0x35044a(0x129)][_0x35044a(0x19c)]()==='upload'?{'fileName':_0x3b656d,'filePath':_0x381e82}:{'key':_0x381e82,'name':_0x3b656d,'type':_0x4c55da['type'],'size':_0x4c55da['size']};});}catch(_0x41efec){_0x4330b8[_0x2e3cf2(0x17a)]['push']({'rowNumber':_0x49f852,'field':_0x4ca21d,'message':_0x41efec[_0x2e3cf2(0x187)]});}}_0x4330b8[_0x2e3cf2(0xc7)]['push']({'rowNumber':_0x49f852,'values':_0x19a61d});}if(_0x4330b8[_0x2e3cf2(0x17d)])_0x4330b8[_0x2e3cf2(0x17d)]=[..._0x2ccebb[_0x2e3cf2(0x192)]()];if(_0x3ab4ec)_0x4330b8[_0x2e3cf2(0x17f)][_0x2e3cf2(0x14c)](_0x3ab4ec+_0x2e3cf2(0x176));return _0x4330b8;}
|
|
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 a145_0x574e(){const _0x22a9f7=['GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','read','omggif','Invalid\x20GIF\x20block.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','ascii','subarray','364789xvlxmV','Invalid\x20PNG\x20end.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','2482944gRQksw','length','image/jpeg','acTL','Truncated\x20PNG\x20chunk.','readUInt32BE','Invalid\x20PNG\x20header.','Truncated\x20GIF.','Truncated\x20JPEG.','max','readUInt16LE','Truncated\x20GIF\x20data.','GIF89a','IHDR','decode','isSafeInteger','339704BZdFyo','44RpaKYh','Invalid\x20GIF\x20trailer.','image/gif','concat','Truncated\x20PNG\x20data.','toString','8523832vptHBQ','from','Invalid\x20PNG\x20color/depth/interlace.','push','includes','hex','height','8046117xyNaqG','14YsGbpR','sha256','ceil','decodeAndBlitFrameRGBA','width','jpeg-js','GIF\x20image\x20has\x20no\x20palette.','pngjs','update','4631840uglcrz','IEND','numFrames','Invalid\x20GIF\x20LZW\x20pixel\x20data.','55cagUYg','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','Invalid\x20PNG\x20decoded\x20scanline\x20size.','GIF87a','equals','Invalid\x20image:\x20','Invalid\x20GIF\x20LZW\x20code\x20size.','21954yczsHr','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.'];a145_0x574e=function(){return _0x22a9f7;};return a145_0x574e();}(function(_0x344a91,_0x3b5754){const _0x560e8e=a145_0x3fe5,_0x34db4a=_0x344a91();while(!![]){try{const _0x44f24b=-parseInt(_0x560e8e(0x1ee))/0x1+-parseInt(_0x560e8e(0x202))/0x2*(parseInt(_0x560e8e(0x1e5))/0x3)+parseInt(_0x560e8e(0x201))/0x4*(parseInt(_0x560e8e(0x1de))/0x5)+-parseInt(_0x560e8e(0x1f1))/0x6*(-parseInt(_0x560e8e(0x210))/0x7)+-parseInt(_0x560e8e(0x208))/0x8+parseInt(_0x560e8e(0x20f))/0x9+-parseInt(_0x560e8e(0x1da))/0xa;if(_0x44f24b===_0x3b5754)break;else _0x34db4a['push'](_0x34db4a['shift']());}catch(_0x381a04){_0x34db4a['push'](_0x34db4a['shift']());}}}(a145_0x574e,0x92d37));function a145_0x3fe5(_0x1f3e73,_0x5eb8fb){_0x1f3e73=_0x1f3e73-0x1d5;const _0x574e19=a145_0x574e();let _0x3fe505=_0x574e19[_0x1f3e73];return _0x3fe505;}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(_0x51da3c,_0x2b32e1){const _0x4e19e2=a145_0x3fe5;if(!Number['isSafeInteger'](_0x51da3c)||!Number[_0x4e19e2(0x200)](_0x2b32e1)||_0x51da3c<0x1||_0x2b32e1<0x1||_0x51da3c*_0x2b32e1>MAX_PIXELS)throw Error(_0x4e19e2(0x1eb));}function validateGif(_0x326003){const _0x361d20=a145_0x3fe5;let _0x34e273=0xd,_0x3d7108=0x0,_0x206ad2=0x0;const _0x2cb6cf=_0x326003[_0x361d20(0x1fb)](0x6),_0x1427e2=_0x326003['readUInt16LE'](0x8),_0x14f304=_0x326003[0xa]&0x80?0x1<<(_0x326003[0xa]&0x7)+0x1:0x0,_0x5ef0b2=_0x1d0f80=>{const _0x363e83=_0x361d20;if(_0x34e273+_0x1d0f80>_0x326003[_0x363e83(0x1f2)])throw Error(_0x363e83(0x1fc));};_0x34e273+=_0x14f304*0x3,_0x5ef0b2(0x0);const _0x43194e=()=>{const _0x2065ed=_0x361d20,_0x1b01a8=[];while(!![]){_0x5ef0b2(0x1);const _0x1574e1=_0x326003[_0x34e273++];if(!_0x1574e1)break;_0x5ef0b2(_0x1574e1),_0x1b01a8[_0x2065ed(0x20b)](_0x326003[_0x2065ed(0x1ed)](_0x34e273,_0x34e273+_0x1574e1)),_0x34e273+=_0x1574e1;}return Buffer[_0x2065ed(0x205)](_0x1b01a8);};while(_0x34e273<_0x326003[_0x361d20(0x1f2)]){const _0x284a1f=_0x326003[_0x34e273++];if(_0x284a1f===0x3b){if(!_0x3d7108||_0x34e273!==_0x326003[_0x361d20(0x1f2)])throw Error(_0x361d20(0x203));return;}if(_0x284a1f===0x21){_0x5ef0b2(0x1),_0x34e273++,_0x43194e();continue;}if(_0x284a1f!==0x2c)throw Error(_0x361d20(0x1ea));_0x5ef0b2(0x9);const _0x8dc944=_0x326003[_0x361d20(0x1fb)](_0x34e273),_0x3f9b64=_0x326003['readUInt16LE'](_0x34e273+0x2),_0x3e3336=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x4),_0x5aba94=_0x326003[_0x361d20(0x1fb)](_0x34e273+0x6),_0x1d1d6e=_0x326003[_0x34e273+0x8];_0x34e273+=0x9,dimensions(_0x3e3336,_0x5aba94);if(_0x8dc944+_0x3e3336>_0x2cb6cf||_0x3f9b64+_0x5aba94>_0x1427e2||++_0x3d7108>0x2710||(_0x206ad2+=_0x2cb6cf*_0x1427e2)>MAX_PIXELS)throw Error(_0x361d20(0x1e7));const _0x49a1ee=_0x1d1d6e&0x80?0x1<<(_0x1d1d6e&0x7)+0x1:_0x14f304;if(!_0x49a1ee)throw Error(_0x361d20(0x1d7));_0x1d1d6e&0x80&&(_0x5ef0b2(_0x49a1ee*0x3),_0x34e273+=_0x49a1ee*0x3);_0x5ef0b2(0x1);const _0x3e8fe1=_0x326003[_0x34e273++];if(_0x3e8fe1<0x2||_0x3e8fe1>0x8)throw Error(_0x361d20(0x1e4));const _0x55e88e=_0x43194e(),_0x17be7d=0x1<<_0x3e8fe1,_0x13a98b=_0x17be7d+0x1;let _0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0x5c063c=0x0,_0xfcc2fe=-0x1,_0x3be8e0=0x0,_0x2c549f=![];const _0x564a8d=new Uint32Array(0x1000),_0x138427=new Uint16Array(0x1000);for(let _0x5f1f5e=0x0;_0x5f1f5e<_0x17be7d;_0x5f1f5e++){_0x564a8d[_0x5f1f5e]=0x1,_0x138427[_0x5f1f5e]=_0x5f1f5e;}while(_0x5c063c+_0x1fdcdb<=_0x55e88e['length']*0x8){let _0x14ef85=0x0;for(let _0x3ce19d=0x0;_0x3ce19d<_0x1fdcdb;_0x3ce19d++,_0x5c063c++)_0x14ef85|=(_0x55e88e[_0x5c063c>>0x3]>>(_0x5c063c&0x7)&0x1)<<_0x3ce19d;if(_0x14ef85===_0x17be7d){_0x1fdcdb=_0x3e8fe1+0x1,_0x526f8a=_0x13a98b+0x1,_0xfcc2fe=-0x1;continue;}if(_0x14ef85===_0x13a98b){_0x2c549f=!![];break;}if(_0x14ef85>_0x526f8a||_0x14ef85===_0x526f8a&&_0xfcc2fe<0x0||_0xfcc2fe<0x0&&_0x14ef85>=_0x17be7d)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x461c12=_0x14ef85===_0x526f8a?_0x564a8d[_0xfcc2fe]+0x1:_0x564a8d[_0x14ef85],_0x48b05a=_0x14ef85===_0x526f8a?_0x138427[_0xfcc2fe]:_0x138427[_0x14ef85];if(!_0x461c12||_0x48b05a>=_0x49a1ee||(_0x3be8e0+=_0x461c12)>_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1dd));if(_0xfcc2fe>=0x0&&_0x526f8a<0x1000){_0x564a8d[_0x526f8a]=_0x564a8d[_0xfcc2fe]+0x1,_0x138427[_0x526f8a]=Math['max'](_0x138427[_0xfcc2fe],_0x48b05a),_0x526f8a++;if(_0x526f8a===0x1<<_0x1fdcdb&&_0x1fdcdb<0xc)_0x1fdcdb++;}_0xfcc2fe=_0x14ef85;}if(!_0x2c549f||_0x3be8e0!==_0x3e3336*_0x5aba94)throw Error(_0x361d20(0x1df));}throw Error('Missing\x20GIF\x20trailer.');}export function validateImageBytes(_0x1bbebd){const _0x356bec=a145_0x3fe5;if(!_0x1bbebd['length']||_0x1bbebd[_0x356bec(0x1f2)]>0xa*0x400*0x400)throw Error(_0x356bec(0x1f0));let _0x4caece;try{if(_0x1bbebd['subarray'](0x0,0x8)[_0x356bec(0x1e2)](Buffer[_0x356bec(0x209)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1bbebd['length']<0x21||_0x1bbebd['toString'](_0x356bec(0x1ec),0xc,0x10)!==_0x356bec(0x1fe))throw Error(_0x356bec(0x1f7));dimensions(_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x1bbebd[_0x356bec(0x1f6)](0x14));const _0x4b19c6=_0x1bbebd[_0x356bec(0x1f6)](0x10),_0x234948=_0x1bbebd[_0x356bec(0x1f6)](0x14),_0x1947ca=_0x1bbebd[0x18],_0x239c8b=_0x1bbebd[0x19],_0x210d71=_0x1bbebd[0x1c],_0x1a37f0={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x239c8b];if(!_0x1a37f0||![0x1,0x2,0x4,0x8,0x10][_0x356bec(0x20c)](_0x1947ca)||_0x210d71>0x1)throw Error(_0x356bec(0x20a));const _0xf7f962=_0xa21b0e=>Math[_0x356bec(0x212)](_0xa21b0e*_0x1a37f0*_0x1947ca/0x8)+0x1;let _0x35eee9=_0xf7f962(_0x4b19c6)*_0x234948;if(_0x210d71){_0x35eee9=0x0;for(const [_0x57b5f5,_0xe9321d,_0x1c016e,_0x4cb84e]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 _0x2f39a5=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x4b19c6-_0x57b5f5)/_0x1c016e)),_0x29af64=Math[_0x356bec(0x1fa)](0x0,Math[_0x356bec(0x212)]((_0x234948-_0xe9321d)/_0x4cb84e));if(_0x2f39a5&&_0x29af64)_0x35eee9+=_0xf7f962(_0x2f39a5)*_0x29af64;}}let _0xd81f8a=0x8,_0x4e43f8=![];const _0x148355=[];while(_0xd81f8a<_0x1bbebd[_0x356bec(0x1f2)]){if(_0xd81f8a+0xc>_0x1bbebd[_0x356bec(0x1f2)])throw Error(_0x356bec(0x1f5));const _0x5376cf=_0x1bbebd[_0x356bec(0x1f6)](_0xd81f8a),_0x4830ea=_0x1bbebd['toString'](_0x356bec(0x1ec),_0xd81f8a+0x4,_0xd81f8a+0x8);if(_0x4830ea===_0x356bec(0x1f4))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0xd81f8a+_0x5376cf+0xc>_0x1bbebd['length'])throw Error(_0x356bec(0x206));if(_0x4830ea==='IDAT')_0x148355['push'](_0x1bbebd[_0x356bec(0x1ed)](_0xd81f8a+0x8,_0xd81f8a+0x8+_0x5376cf));_0xd81f8a+=_0x5376cf+0xc;if(_0x4830ea===_0x356bec(0x1db)){if(_0x5376cf||_0xd81f8a!==_0x1bbebd['length'])throw Error(_0x356bec(0x1ef));_0x4e43f8=!![];break;}}if(!_0x4e43f8||!_0x148355[_0x356bec(0x1f2)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer['concat'](_0x148355),{'maxOutputLength':_0x35eee9+0x1})['length']!==_0x35eee9)throw Error(_0x356bec(0x1e0));const {PNG:_0x5141c0}=require(_0x356bec(0x1d8)),_0x103086=_0x5141c0['sync'][_0x356bec(0x1e8)](_0x1bbebd,{'checkCRC':!![]});dimensions(_0x103086[_0x356bec(0x1d5)],_0x103086[_0x356bec(0x20e)]),_0x4caece='image/png';}else{if(_0x1bbebd[0x0]===0xff&&_0x1bbebd[0x1]===0xd8){if(_0x1bbebd['at'](-0x2)!==0xff||_0x1bbebd['at'](-0x1)!==0xd9)throw Error(_0x356bec(0x1f9));const _0x5043e3=require(_0x356bec(0x1d6)),_0x5aa453=_0x5043e3[_0x356bec(0x1ff)](_0x1bbebd,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5aa453[_0x356bec(0x1d5)],_0x5aa453[_0x356bec(0x20e)]),_0x4caece=_0x356bec(0x1f3);}else{if([_0x356bec(0x1e1),_0x356bec(0x1fd)][_0x356bec(0x20c)](_0x1bbebd[_0x356bec(0x207)]('ascii',0x0,0x6))){if(_0x1bbebd[_0x356bec(0x1f2)]<0xe||_0x1bbebd['at'](-0x1)!==0x3b)throw Error(_0x356bec(0x1f8));dimensions(_0x1bbebd[_0x356bec(0x1fb)](0x6),_0x1bbebd['readUInt16LE'](0x8)),validateGif(_0x1bbebd);const {GifReader:_0x20bbc6}=require(_0x356bec(0x1e9)),_0xa871e1=new _0x20bbc6(_0x1bbebd);dimensions(_0xa871e1['width'],_0xa871e1[_0x356bec(0x20e)]);const _0x4942ea=_0xa871e1[_0x356bec(0x1dc)]();if(!_0x4942ea||_0x4942ea>0x2710||_0x4942ea*_0xa871e1['width']*_0xa871e1[_0x356bec(0x20e)]>MAX_PIXELS)throw Error(_0x356bec(0x1e7));const _0x320ce2=new Uint8Array(_0xa871e1[_0x356bec(0x1d5)]*_0xa871e1[_0x356bec(0x20e)]*0x4);for(let _0x274886=0x0;_0x274886<_0x4942ea;_0x274886++){const _0x6b4a01=_0xa871e1['frameInfo'](_0x274886);if(_0x6b4a01['x']+_0x6b4a01[_0x356bec(0x1d5)]>_0xa871e1['width']||_0x6b4a01['y']+_0x6b4a01[_0x356bec(0x20e)]>_0xa871e1[_0x356bec(0x20e)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0xa871e1[_0x356bec(0x213)](_0x274886,_0x320ce2);}_0x4caece=_0x356bec(0x204);}else throw Error(_0x356bec(0x1e6));}}}catch(_0x1edc56){throw Error(_0x356bec(0x1e3)+_0x1edc56['message']);}return{'contentHash':createHash(_0x356bec(0x211))[_0x356bec(0x1d9)](_0x1bbebd)['digest'](_0x356bec(0x20d)),'type':_0x4caece,'size':_0x1bbebd[_0x356bec(0x1f2)],'bytes':_0x1bbebd};}
|
|
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
|
-
const a146_0x341474=a146_0x3726;(function(_0x54c29b,_0x53bd8c){const _0x23884c=a146_0x3726,_0x483a3c=_0x54c29b();while(!![]){try{const _0x49e082=parseInt(_0x23884c(0x160))/0x1*(parseInt(_0x23884c(0x1a2))/0x2)+-parseInt(_0x23884c(0x1b6))/0x3+-parseInt(_0x23884c(0x1a6))/0x4*(parseInt(_0x23884c(0x1ed))/0x5)+parseInt(_0x23884c(0x1a1))/0x6+-parseInt(_0x23884c(0x16b))/0x7*(-parseInt(_0x23884c(0x1d1))/0x8)+parseInt(_0x23884c(0x143))/0x9*(-parseInt(_0x23884c(0x1e3))/0xa)+parseInt(_0x23884c(0x153))/0xb*(-parseInt(_0x23884c(0x18f))/0xc);if(_0x49e082===_0x53bd8c)break;else _0x483a3c['push'](_0x483a3c['shift']());}catch(_0x275992){_0x483a3c['push'](_0x483a3c['shift']());}}}(a146_0x455b,0x77913));import a146_0xead5cb from'node:path';function a146_0x3726(_0xd5f90f,_0x180c0e){_0xd5f90f=_0xd5f90f-0x13b;const _0x455ba1=a146_0x455b();let _0x37260d=_0x455ba1[_0xd5f90f];return _0x37260d;}function a146_0x455b(){const _0x5a8b9c=['Invalid\x20','Unsupported\x20workbook\x20namespace.','replace','Unsupported\x20mapped\x20rich\x20value\x20structure.','slice','Unsupported\x20worksheet\x20namespace.','nvPicPr','uri','col','Image\x20XML\x20node\x20budget\x20exceeded.','image\x20row\x20height\x20coordinate','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','metadataTypes','Missing\x20value\x20metadata\x20block.','128lxzcLq','text','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','close','value\x20metadata\x20index','rich\x20structure\x20index','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','toLowerCase','closetag','metadata\x20type\x20index','startsWith','metadataType','normalize','Unsupported\x20rich\x20value\x20namespace.','twoCellAnchor','http://schemas.openxmlformats.org/officeDocument/2006/relationships','rdRichValueStructure','Image\x20XML\x20event\x20budget\x20exceeded.','487510PohkRg','blipFill','richValueRel','Duplicate\x20mapped\x20image\x20cell.','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','oneCellAnchor','Unsupported\x20WPS\x20cell\x20image\x20namespace.','opentag','ext','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','14485UZoznY','http://schemas.openxmlformats.org/drawingml/2006/main','metadata\x20types','row','Relationship','includes','local','anchor\x20start','Unsupported\x20rich\x20structure\x20namespace.','r:link','126KCcNAs','rvData','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','image','posix','Internal','Ambiguous\x20XML\x20attribute.','isFinite','pic','/xl/cellimages.xml','image\x20extent','doctype','some','worksheet','round','anchor\x20end\x20offset','2339843GHYqTB','sheetFormatPr','sheet','blip','test','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','wsDr','basename','anchor\x20start\x20offset','cNvPr','error','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','_localImage','1wcPrHu','_rels','sheets','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','workbook','metadata','Missing\x20local\x20image\x20identifier\x20value.','add','image\x20formula','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','155995EOlGUD','anchor\x20column','r:embed','richValueRels','Relationships','Unsupported\x20relationship\x20namespace\x20in\x20','xl/','isSafeInteger','has','Missing\x20or\x20ambiguous\x20','pop','rdRichValue','extLst','External\x20image\x20links\x20are\x20not\x20supported.','http://www.wps.cn/officeDocument/2017/relationships/','xl/workbook.xml','rel','drawing','from','Missing\x20WPS\x20image\x20ID:\x20','name','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','children','anchor\x20end','cellImage','XLRICHVALUE','flatMap','colOff','rvb','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','http://purl.oclc.org/ooxml/spreadsheetml/main','Unsupported\x20metadata\x20namespace.','http://purl.oclc.org/ooxml/drawingml/main','cellImages','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','12VmLaJh','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','set','_rvRel:LocalImageIdentifier','http://www.wps.cn/officeDocument/2017/etCustomData','Missing\x20future\x20metadata\x20block.','\x20relationship\x20in\x20','sheetMetadata','filter','futureMetadata','absoluteAnchor','valueMetadata','rich\x20value\x20index','xl/cellimages.xml','WPS\x20image\x20name','type','rowOff','join','4375686Aasiss','846416hoizuC','write','value','exec','92gybmoH','values','Unsupported\x20mapped\x20cell\x20metadata\x20type.','reduce','Unsupported\x20drawing\x20namespace.','hidden','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','get','http://schemas.microsoft.com/office/2017/06/relationships/','Unsupported\x20rich\x20image\x20relation\x20namespace.','MAX_SAFE_INTEGER','attrs','rich\x20image\x20relationship\x20index','http://schemas.openxmlformats.org/package/2006/relationships','map','dirname','172332lxFNyV','Value\x20metadata\x20index\x20must\x20be\x20one-based.','Invalid\x20relationship\x20target:\x20','r:id','charCodeAt','push','rich\x20future\x20metadata','http://purl.oclc.org/ooxml/officeDocument/relationships','Shared\x20image\x20formulas\x20are\x20not\x20supported.','length','XML\x20DTD/entities\x20are\x20not\x20supported.'];a146_0x455b=function(){return _0x5a8b9c;};return a146_0x455b();}import{SaxesParser}from'saxes';const SHEET=[a146_0x341474(0x18d),a146_0x341474(0x189)],DRAWING=[a146_0x341474(0x1d7),a146_0x341474(0x1cc)],DRAWING_MAIN=[a146_0x341474(0x1ee),a146_0x341474(0x18b)],OFFICE_RELS=[a146_0x341474(0x1e0),a146_0x341474(0x1bd)],PACKAGE=[a146_0x341474(0x1b3)],RICH=[a146_0x341474(0x15e)],RICH_RELS=[a146_0x341474(0x1e7)],WPS=[a146_0x341474(0x193)],DEFAULT_NS=Object['fromEntries']([...[a146_0x341474(0x164),'sheets',a146_0x341474(0x155),a146_0x341474(0x150),'sheetData',a146_0x341474(0x13c),'c','f','v',a146_0x341474(0x154),a146_0x341474(0x17c),'metadata',a146_0x341474(0x1cf),a146_0x341474(0x1dc),'futureMetadata',a146_0x341474(0x19a),'bk','rc',a146_0x341474(0x177)][a146_0x341474(0x1b4)](_0x34f100=>[_0x34f100,SHEET]),...['wsDr',a146_0x341474(0x1e8),a146_0x341474(0x1df),a146_0x341474(0x199),a146_0x341474(0x17d),'to',a146_0x341474(0x1c9),a146_0x341474(0x186),a146_0x341474(0x19f),a146_0x341474(0x1eb),'pic',a146_0x341474(0x1c7),a146_0x341474(0x15c),a146_0x341474(0x1e4)][a146_0x341474(0x1b4)](_0x164fc7=>[_0x164fc7,DRAWING]),...[a146_0x341474(0x187),a146_0x341474(0x144),'rv','rvStructures','s','k'][a146_0x341474(0x1b4)](_0x439194=>[_0x439194,RICH]),['blip',DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],['Relationship',PACKAGE],[a146_0x341474(0x18c),WPS],[a146_0x341474(0x183),WPS]]),matches=(_0x402356,_0x19b269,_0x62f6a1=DEFAULT_NS[_0x19b269]??[])=>_0x402356[a146_0x341474(0x17f)]===_0x19b269&&_0x62f6a1[a146_0x341474(0x13e)](_0x402356[a146_0x341474(0x1c8)]),children=(_0x58ad86,_0xffccd4,_0x294f8b=DEFAULT_NS[_0xffccd4])=>_0x58ad86[a146_0x341474(0x181)][a146_0x341474(0x197)](_0x3733e6=>matches(_0x3733e6,_0xffccd4,_0x294f8b)),chain=(_0x5479f9,..._0x1f9e39)=>_0x1f9e39[a146_0x341474(0x1a9)]((_0x3c2af5,_0x299228)=>_0x3c2af5[a146_0x341474(0x185)](_0x25e4ea=>children(_0x25e4ea,_0x299228)),[_0x5479f9]),relationshipTypes=_0x592189=>{const _0x305afb=a146_0x341474;if([_0x305afb(0x176),'rdRichValueStructure'][_0x305afb(0x13e)](_0x592189))return[_0x305afb(0x1ae)+_0x592189];if(_0x592189===_0x305afb(0x1e5))return[_0x305afb(0x158)];if(_0x592189===_0x305afb(0x183)||_0x592189===_0x305afb(0x18c))return[_0x305afb(0x179)+_0x592189];return OFFICE_RELS[_0x305afb(0x1b4)](_0x280319=>_0x280319+'/'+_0x592189);};function one(_0x3b18b9,_0x2f1aaf){const _0x33be24=a146_0x341474;if(_0x3b18b9[_0x33be24(0x1bf)]!==0x1)throw Error(_0x33be24(0x174)+_0x2f1aaf+'.');return _0x3b18b9[0x0];}function integer(_0xb9a700,_0x1364af,_0x2087e4=0x186a0){const _0x4453f4=a146_0x341474;if(!_0xb9a700||!/^\d+$/[_0x4453f4(0x157)](_0xb9a700)||!Number[_0x4453f4(0x172)](Number(_0xb9a700))||Number(_0xb9a700)>_0x2087e4)throw Error(_0x4453f4(0x1c1)+_0x1364af+'.');return Number(_0xb9a700);}export function resolveWorksheetImages(_0x3de652,_0x4640db,_0x1f4240){const _0x5d3545=a146_0x341474;let _0x5701ec=0x0,_0x3dd7b0=0x0,_0x35eb40=0x0;const _0x3f0b30=new Map(),_0x954c14=_0x5ebae5=>{const _0x53ce92=a146_0x3726;if(_0x3f0b30[_0x53ce92(0x173)](_0x5ebae5))return _0x3f0b30[_0x53ce92(0x1ad)](_0x5ebae5);const _0x5dd0d0=_0x3de652[_0x53ce92(0x1ad)](_0x5ebae5);if(!_0x5dd0d0)throw Error('Missing\x20XLSX\x20part:\x20'+_0x5ebae5+'.');const _0x172909={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x298f50=[_0x172909],_0x1792d1=new SaxesParser({'xmlns':!![]}),_0x3e29fa=()=>{const _0x4315a4=_0x53ce92;if(++_0x3dd7b0>0x1e8480)throw Error(_0x4315a4(0x1e2));};_0x1792d1['on'](_0x53ce92(0x14e),()=>{const _0x1d9937=_0x53ce92;throw Error(_0x1d9937(0x1c0));}),_0x1792d1['on'](_0x53ce92(0x1ea),_0x1fc792=>{const _0x3c0475=_0x53ce92;_0x3e29fa();if(++_0x5701ec>0x7a120||_0x298f50[_0x3c0475(0x1bf)]>0x40)throw Error(_0x3c0475(0x1ca));const _0x59e297={};for(const _0x131523 of Object[_0x3c0475(0x1a7)](_0x1fc792['attributes'])){const _0x22dab0=OFFICE_RELS['includes'](_0x131523[_0x3c0475(0x1c8)])?'r:'+_0x131523[_0x3c0475(0x13f)]:_0x131523[_0x3c0475(0x1c8)]?'{'+_0x131523['uri']+'}'+_0x131523[_0x3c0475(0x13f)]:_0x131523['local'];if(_0x22dab0 in _0x59e297)throw Error(_0x3c0475(0x149));_0x59e297[_0x22dab0]=_0x131523[_0x3c0475(0x1a4)];}const _0x52ef24={'name':_0x1fc792[_0x3c0475(0x13f)],'uri':_0x1fc792[_0x3c0475(0x1c8)],'attrs':_0x59e297,'children':[],'text':''};_0x298f50['at'](-0x1)[_0x3c0475(0x181)][_0x3c0475(0x1bb)](_0x52ef24),_0x298f50[_0x3c0475(0x1bb)](_0x52ef24);}),_0x1792d1['on']('text',_0x10345f=>{const _0x20d00d=_0x53ce92;_0x3e29fa();const _0x81dccc=_0x298f50['at'](-0x1);_0x81dccc[_0x20d00d(0x1d2)]+=_0x10345f;if(_0x81dccc['text'][_0x20d00d(0x1bf)]>0x10000)throw Error(_0x20d00d(0x188));}),_0x1792d1['on'](_0x53ce92(0x1d9),()=>{const _0x39b6a2=_0x53ce92;_0x3e29fa(),_0x298f50[_0x39b6a2(0x175)]();}),_0x1792d1['on'](_0x53ce92(0x15d),_0x2aa08c=>{throw _0x2aa08c;}),_0x1792d1[_0x53ce92(0x1a3)](_0x5dd0d0['toString']('utf8'))[_0x53ce92(0x1d4)]();const _0x249ce3=one(_0x172909[_0x53ce92(0x181)],_0x5ebae5);return _0x3f0b30[_0x53ce92(0x191)](_0x5ebae5,_0x249ce3),_0x249ce3;},_0x48535e=new Map(),_0x194c59=_0x6bd984=>{const _0x3c5385=a146_0x3726;if(_0x48535e[_0x3c5385(0x173)](_0x6bd984))return _0x48535e[_0x3c5385(0x1ad)](_0x6bd984);const _0x6456ed=a146_0xead5cb[_0x3c5385(0x147)]['join'](a146_0xead5cb['posix']['dirname'](_0x6bd984),_0x3c5385(0x161),a146_0xead5cb[_0x3c5385(0x147)][_0x3c5385(0x15a)](_0x6bd984)+'.rels');if(!_0x3de652['has'](_0x6456ed))return[];const _0x5c8497=new Set(),_0x263bbe=_0x954c14(_0x6456ed);if(!matches(_0x263bbe,_0x3c5385(0x16f)))throw Error(_0x3c5385(0x170)+_0x6456ed+'.');const _0x2b676b=children(_0x263bbe,_0x3c5385(0x13d))['map'](_0x328b35=>{const _0x55128d=_0x3c5385,{Id:_0x17a564,Type:_0x35f7e5,Target:_0x3ea28a,TargetMode:_0x3c9eee}=_0x328b35[_0x55128d(0x1b1)];if(!_0x17a564||_0x5c8497[_0x55128d(0x173)](_0x17a564)||!_0x35f7e5)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x6456ed+'.');return _0x5c8497['add'](_0x17a564),{'id':_0x17a564,'type':_0x35f7e5,'target':_0x3ea28a??'','mode':_0x3c9eee};});return _0x48535e[_0x3c5385(0x191)](_0x6bd984,_0x2b676b),_0x2b676b;},_0x224a84=(_0x1f1034,_0xc052be)=>{const _0x1cdcc2=a146_0x3726,{target:_0xcf2093,mode:_0x194e34}=_0xc052be;if(_0x194e34&&_0x194e34!==_0x1cdcc2(0x148))throw Error(_0x1cdcc2(0x190)+_0x1f1034+'.');if(!_0xcf2093||_0xcf2093['includes']('\x5c')||/[?#%\x00-\x20]/['test'](_0xcf2093)||/^[a-z][a-z0-9+.-]*:/i[_0x1cdcc2(0x157)](_0xcf2093)||_0xcf2093['startsWith']('//'))throw Error(_0x1cdcc2(0x1b8)+_0x1f1034+'.');const _0x25944c=_0xcf2093[_0x1cdcc2(0x1db)]('/')?_0xcf2093[_0x1cdcc2(0x1c5)](0x1):a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1dd)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1a0)](a146_0xead5cb[_0x1cdcc2(0x147)][_0x1cdcc2(0x1b5)](_0x1f1034),_0xcf2093));if(_0x25944c[_0x1cdcc2(0x1db)]('../')||_0x25944c==='..'||!_0x25944c[_0x1cdcc2(0x1db)](_0x1cdcc2(0x171)))throw Error('Relationship\x20target\x20escapes\x20workbook:\x20'+_0x1f1034+'.');return _0x25944c;},_0x4b2bcb=(_0x153120,_0x3c95a7,_0x44467f)=>{const _0x331004=a146_0x3726,_0x570db0=_0x194c59(_0x153120)[_0x331004(0x197)](_0x26b56d=>_0x26b56d['id']===_0x3c95a7&&relationshipTypes(_0x44467f)['includes'](_0x26b56d[_0x331004(0x19e)]));if(_0x570db0[_0x331004(0x1bf)]!==0x1)throw Error(_0x331004(0x174)+_0x44467f+_0x331004(0x195)+_0x153120+'.');return _0x224a84(_0x153120,_0x570db0[0x0]);},_0x4a9ede=(_0x20aa36,_0x397b9d)=>{const _0x38749f=a146_0x3726,_0x2f9685=_0x194c59(_0x20aa36)['filter'](_0x136b5d=>relationshipTypes(_0x397b9d)[_0x38749f(0x13e)](_0x136b5d[_0x38749f(0x19e)]));if(_0x2f9685[_0x38749f(0x1bf)]!==0x1)throw Error(_0x38749f(0x174)+_0x397b9d+_0x38749f(0x195)+_0x20aa36+'.');return _0x224a84(_0x20aa36,_0x2f9685[0x0]);},_0x824eca=_0x5d3545(0x17a),_0x471d75=_0x954c14(_0x824eca);if(!matches(_0x471d75,_0x5d3545(0x164)))throw Error(_0x5d3545(0x1c2));const _0x1bf7e6=one(chain(_0x471d75,_0x5d3545(0x162),_0x5d3545(0x155))[_0x5d3545(0x197)](_0x4a57c2=>_0x4a57c2[_0x5d3545(0x1b1)][_0x5d3545(0x17f)]===_0x4640db),_0x5d3545(0x150)),_0x45174f=_0x4b2bcb(_0x824eca,_0x1bf7e6['attrs'][_0x5d3545(0x1b9)],'worksheet'),_0x4bbe67=_0x954c14(_0x45174f);if(!matches(_0x4bbe67,_0x5d3545(0x150)))throw Error(_0x5d3545(0x1c6));const _0x55e3d2=chain(_0x4bbe67,'sheetData','row'),_0x28b961=new Map(),_0x4b3d19=new Set(_0x55e3d2[_0x5d3545(0x197)](_0x4d58f1=>_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='1'||_0x4d58f1[_0x5d3545(0x1b1)][_0x5d3545(0x1ab)]==='true')[_0x5d3545(0x1b4)](_0x47dfbc=>integer(_0x47dfbc[_0x5d3545(0x1b1)]['r'],'hidden\x20image\x20row'))),_0xa50481=_0x280a7b=>{const _0x3f7ecc=_0x5d3545,_0x400358=_0x280a7b===undefined?0xf:Number(_0x280a7b);if(!Number[_0x3f7ecc(0x14a)](_0x400358)||_0x400358<=0x0||_0x400358>409.5)throw Error(_0x3f7ecc(0x1ce));return Math[_0x3f7ecc(0x151)](_0x400358*0x319c);},_0x15802d=_0xa50481(children(_0x4bbe67,_0x5d3545(0x154))[0x0]?.[_0x5d3545(0x1b1)]['defaultRowHeight']);for(const _0x11395a of _0x55e3d2)if(_0x11395a[_0x5d3545(0x1b1)]['ht']!==undefined)_0x28b961[_0x5d3545(0x191)](integer(_0x11395a['attrs']['r'],_0x5d3545(0x1cb)),_0xa50481(_0x11395a[_0x5d3545(0x1b1)]['ht']));const _0x391a5a=[],_0xc6e3ec=_0x1d8cdc=>{const _0x5ce996=_0x5d3545;if(!_0x1f4240[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x1c9)]))return;if(++_0x35eb40>0x2710)throw Error(_0x5ce996(0x1ec));_0x391a5a['push'](_0x4b3d19[_0x5ce996(0x173)](_0x1d8cdc[_0x5ce996(0x13c)])?{..._0x1d8cdc,'hiddenRow':!![]}:_0x1d8cdc);},_0x55cbe2=_0x42da5b=>({'row':integer(one(children(_0x42da5b,'row',DRAWING),'anchor\x20row')[_0x5d3545(0x1d2)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x42da5b,_0x5d3545(0x1c9)),_0x5d3545(0x16c))[_0x5d3545(0x1d2)],_0x5d3545(0x16c),0xff)+0x1});for(const _0x5ef394 of children(_0x4bbe67,_0x5d3545(0x17c))){const _0xd1d345=_0x4b2bcb(_0x45174f,_0x5ef394[_0x5d3545(0x1b1)][_0x5d3545(0x1b9)],_0x5d3545(0x17c)),_0x1228ce=_0x954c14(_0xd1d345);if(!matches(_0x1228ce,_0x5d3545(0x159)))throw Error(_0x5d3545(0x1aa));for(const _0x1d7eda of _0x1228ce[_0x5d3545(0x181)]){if(![_0x5d3545(0x1e8),_0x5d3545(0x1df),'absoluteAnchor'][_0x5d3545(0x14f)](_0x330ae1=>matches(_0x1d7eda,_0x330ae1)))continue;if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x199))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x4640db+'.');const _0x2f0cec=_0x55cbe2(one(children(_0x1d7eda,_0x5d3545(0x17d)),_0x5d3545(0x140)));if(!_0x1f4240[_0x5d3545(0x173)](_0x2f0cec[_0x5d3545(0x1c9)]))continue;let _0x3450ec;const _0x36da4a=one(children(_0x1d7eda,'from'),_0x5d3545(0x140)),_0x3001b0=integer(one(children(_0x36da4a,_0x5d3545(0x19f)),_0x5d3545(0x15b))[_0x5d3545(0x1d2)],_0x5d3545(0x15b),Number[_0x5d3545(0x1b0)]),_0x32b0ae=_0x28b961[_0x5d3545(0x1ad)](_0x2f0cec['row'])??_0x15802d;if(_0x3001b0>=_0x32b0ae)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x2f0cec[_0x5d3545(0x13c)]+'.');if(_0x1d7eda[_0x5d3545(0x17f)]===_0x5d3545(0x1e8)){const _0x26cdf1=one(children(_0x1d7eda,'ext'),_0x5d3545(0x14d)),_0x573087=integer(_0x26cdf1[_0x5d3545(0x1b1)]['cy'],'image\x20height',Number[_0x5d3545(0x1b0)]);if(!_0x573087||_0x3001b0+_0x573087>_0x32b0ae)_0x3450ec=_0x5d3545(0x180);}if(_0x1d7eda['name']===_0x5d3545(0x1df)){const _0x8dd32b=one(children(_0x1d7eda,'to'),_0x5d3545(0x182)),_0xd92b73=_0x55cbe2(_0x8dd32b),_0x374f0f=integer(one(children(_0x8dd32b,_0x5d3545(0x19f)),_0x5d3545(0x152))[_0x5d3545(0x1d2)],'anchor\x20end\x20offset',Number[_0x5d3545(0x1b0)]),_0x2914ac=_0x28b961[_0x5d3545(0x1ad)](_0xd92b73['row'])??_0x15802d;if(_0x374f0f>_0x2914ac||_0xd92b73['row']===_0x2f0cec[_0x5d3545(0x13c)]&&_0x374f0f<=_0x3001b0)_0x3450ec=_0x5d3545(0x1d3);if(_0xd92b73['row']<_0x2f0cec['row']||_0xd92b73[_0x5d3545(0x13c)]>_0x2f0cec[_0x5d3545(0x13c)]+0x1||_0xd92b73[_0x5d3545(0x13c)]===_0x2f0cec[_0x5d3545(0x13c)]+0x1&&_0x374f0f!==0x0)_0x3450ec=_0x5d3545(0x180);}const _0x4a8100=chain(_0x1d7eda,_0x5d3545(0x14b),_0x5d3545(0x1e4),'blip');for(const _0x1331ee of _0x4a8100){if(_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x142)])throw Error(_0x5d3545(0x178));_0xc6e3ec({..._0x2f0cec,'media':[_0x4b2bcb(_0xd1d345,_0x1331ee[_0x5d3545(0x1b1)][_0x5d3545(0x16d)],'image')],..._0x3450ec?{'error':_0x3450ec}:{}});}if(!_0x4a8100[_0x5d3545(0x1bf)])_0xc6e3ec({..._0x2f0cec,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x3343a9=_0x9d6902=>{const _0x567545=_0x5d3545,_0x4bd7a4=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x196)));if(!matches(_0x4bd7a4,_0x567545(0x165)))throw Error(_0x567545(0x18a));const _0x3bbca9=integer(_0x9d6902[_0x567545(0x1b1)]['vm'],_0x567545(0x1d5));if(!_0x3bbca9)throw Error(_0x567545(0x1b7));const _0x361406=children(one(children(_0x4bd7a4,_0x567545(0x19a)),_0x567545(0x19a)),'bk')[_0x3bbca9-0x1];if(!_0x361406)throw Error(_0x567545(0x1d0));const _0x3ffdc7=one(children(_0x361406,'rc'),'rich\x20metadata\x20record'),_0x3c2188=integer(_0x3ffdc7['attrs']['t'],_0x567545(0x1da)),_0x272c32=children(one(children(_0x4bd7a4,_0x567545(0x1cf)),_0x567545(0x13b)),_0x567545(0x1dc))[_0x3c2188-0x1];if(!_0x3c2188||_0x272c32?.[_0x567545(0x1b1)][_0x567545(0x17f)]!=='XLRICHVALUE')throw Error(_0x567545(0x1a8));const _0x1078e7=one(children(_0x4bd7a4,_0x567545(0x198))[_0x567545(0x197)](_0x5cd8d7=>_0x5cd8d7[_0x567545(0x1b1)][_0x567545(0x17f)]===_0x567545(0x184)),_0x567545(0x1bc)),_0x1c4e31=children(_0x1078e7,'bk')[integer(_0x3ffdc7[_0x567545(0x1b1)]['v'],'future\x20metadata\x20index')];if(!_0x1c4e31)throw Error(_0x567545(0x194));const _0xc4a571=chain(_0x1c4e31,_0x567545(0x177))[_0x567545(0x185)](_0x2f3d3a=>children(_0x2f3d3a,'ext',SHEET))['filter'](_0x37b445=>_0x37b445[_0x567545(0x1b1)][_0x567545(0x1c8)]?.[_0x567545(0x1d8)]()===_0x567545(0x16a)),_0xe1b182=integer(one(_0xc4a571[_0x567545(0x185)](_0x2b2498=>children(_0x2b2498,_0x567545(0x187))),'rich\x20value\x20binding')[_0x567545(0x1b1)]['i'],_0x567545(0x19b)),_0xbdb681=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x176)));if(!matches(_0xbdb681,'rvData'))throw Error(_0x567545(0x1de));const _0xb52014=children(_0xbdb681,'rv')[_0xe1b182];if(!_0xb52014)throw Error('Missing\x20rich\x20value.');const _0x4ea1ef=_0x954c14(_0x4a9ede(_0x824eca,_0x567545(0x1e1)));if(!matches(_0x4ea1ef,'rvStructures'))throw Error(_0x567545(0x141));const _0xafe396=children(_0x4ea1ef,'s')[integer(_0xb52014['attrs']['s'],_0x567545(0x1d6))];if(!_0xafe396||_0xafe396['attrs']['t']!==_0x567545(0x15f))throw Error(_0x567545(0x1c4));const _0x2c105=children(_0xafe396,'k'),_0x405dfb=_0x2c105[_0x567545(0x1b4)]((_0x31452e,_0x2c1b14)=>_0x31452e['attrs']['n']===_0x567545(0x192)?_0x2c1b14:-0x1)[_0x567545(0x197)](_0x424dc0=>_0x424dc0>=0x0);if(_0x405dfb[_0x567545(0x1bf)]!==0x1)throw Error(_0x567545(0x145));const _0x24e389=children(_0xb52014,'v',RICH)[_0x405dfb[0x0]];if(!_0x24e389)throw Error(_0x567545(0x166));const _0x45f7a0=_0x4a9ede(_0x824eca,_0x567545(0x1e5)),_0x28c79f=_0x954c14(_0x45f7a0);if(!matches(_0x28c79f,_0x567545(0x16e)))throw Error(_0x567545(0x1af));const _0x26f68f=children(_0x28c79f,_0x567545(0x17b))[integer(_0x24e389[_0x567545(0x1d2)],_0x567545(0x1b2))];if(!_0x26f68f)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4b2bcb(_0x45f7a0,_0x26f68f['attrs'][_0x567545(0x1b9)],_0x567545(0x146));};let _0xacd0e1;const _0x4463b4=_0x382081=>{const _0x31373e=_0x5d3545;if(!_0xacd0e1){_0xacd0e1=new Map();const _0x17fc75=_0x194c59(_0x824eca)[_0x31373e(0x197)](_0x481413=>[...relationshipTypes(_0x31373e(0x183)),...relationshipTypes(_0x31373e(0x18c))][_0x31373e(0x13e)](_0x481413['type']));if(!_0x17fc75[_0x31373e(0x1bf)]&&_0x3de652[_0x31373e(0x173)](_0x31373e(0x19c)))_0x17fc75['push']({'id':'','type':'','target':_0x31373e(0x14c)});if(_0x17fc75['length']!==0x1)throw Error(_0x31373e(0x169));const _0xf54f29=_0x224a84(_0x824eca,_0x17fc75[0x0]),_0x2f3178=_0x954c14(_0xf54f29);if(!matches(_0x2f3178,_0x31373e(0x18c)))throw Error(_0x31373e(0x1e9));for(const _0x1f046a of children(_0x2f3178,_0x31373e(0x183))){const _0x3852b4=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1c7),'cNvPr'),_0x31373e(0x19d))[_0x31373e(0x1b1)]['name'];if(!_0x3852b4||_0xacd0e1[_0x31373e(0x173)](_0x3852b4))throw Error(_0x31373e(0x163));const _0x2aad4c=one(chain(_0x1f046a,_0x31373e(0x14b),_0x31373e(0x1e4),_0x31373e(0x156)),'WPS\x20image\x20blip');if(_0x2aad4c[_0x31373e(0x1b1)]['r:link'])throw Error(_0x31373e(0x1ac));_0xacd0e1['set'](_0x3852b4,_0x4b2bcb(_0xf54f29,_0x2aad4c[_0x31373e(0x1b1)]['r:embed'],_0x31373e(0x146)));}}const _0x1f4476=_0xacd0e1[_0x31373e(0x1ad)](_0x382081);if(!_0x1f4476)throw Error(_0x31373e(0x17e)+_0x382081+'.');return _0x1f4476;},_0x2ed5a2=new Set();for(const _0x51e909 of _0x55e3d2[_0x5d3545(0x185)](_0x3e913e=>children(_0x3e913e,'c'))){const _0x219fe7=/^([A-Z]+)([1-9]\d*)$/[_0x5d3545(0x1a5)](_0x51e909['attrs']['r']??'');if(!_0x219fe7)continue;let _0x3ba9c2=0x0;for(const _0x1c8cf9 of _0x219fe7[0x1])_0x3ba9c2=_0x3ba9c2*0x1a+_0x1c8cf9[_0x5d3545(0x1ba)](0x0)-0x40;if(!_0x1f4240[_0x5d3545(0x173)](_0x3ba9c2))continue;const _0x91c931=integer(_0x219fe7[0x2],'image\x20cell\x20row');if(_0x2ed5a2[_0x5d3545(0x173)](_0x51e909[_0x5d3545(0x1b1)]['r']))throw Error(_0x5d3545(0x1e6));_0x2ed5a2[_0x5d3545(0x167)](_0x51e909[_0x5d3545(0x1b1)]['r']);const _0x39356d=children(_0x51e909,'f');if(!_0x51e909[_0x5d3545(0x1b1)]['vm']&&!_0x39356d[_0x5d3545(0x1bf)])continue;try{if(_0x91c931<0x1||_0x3ba9c2>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0x457dfd;if(_0x51e909['attrs']['vm']){if(_0x39356d[_0x5d3545(0x1bf)])throw Error(_0x5d3545(0x1cd));if(_0x51e909[_0x5d3545(0x1b1)]['t']!=='e'||children(_0x51e909,'v')[_0x5d3545(0x1bf)]!==0x1||children(_0x51e909,'v')[0x0][_0x5d3545(0x1d2)]!=='#VALUE!')throw Error(_0x5d3545(0x18e));_0x457dfd=_0x3343a9(_0x51e909);}else{const _0x4049a6=one(_0x39356d,_0x5d3545(0x168));if(_0x4049a6[_0x5d3545(0x1b1)]['t']==='shared'||_0x4049a6[_0x5d3545(0x1b1)]['si'])throw Error(_0x5d3545(0x1be));const _0x589ab0=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x5d3545(0x1a5)](_0x4049a6['text']);if(!_0x589ab0)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x457dfd=_0x4463b4(_0x589ab0[0x1][_0x5d3545(0x1c3)](/""/g,'\x22'));}_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[_0x457dfd],'nativeCell':!![]});}catch(_0x3a3fa0){_0xc6e3ec({'row':_0x91c931,'col':_0x3ba9c2,'media':[],'nativeCell':!![],'error':_0x3a3fa0['message']});}}return _0x391a5a;}
|
|
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(_0x350a2c,_0x1c48a9){const _0x56104b=a147_0x3248,_0x4610e9=_0x350a2c();while(!![]){try{const _0x973779=parseInt(_0x56104b(0x18f))/0x1*(parseInt(_0x56104b(0x15f))/0x2)+parseInt(_0x56104b(0x193))/0x3*(-parseInt(_0x56104b(0x166))/0x4)+parseInt(_0x56104b(0x18d))/0x5*(parseInt(_0x56104b(0x17e))/0x6)+-parseInt(_0x56104b(0x14d))/0x7+parseInt(_0x56104b(0x165))/0x8*(-parseInt(_0x56104b(0x1a9))/0x9)+-parseInt(_0x56104b(0x196))/0xa*(-parseInt(_0x56104b(0x179))/0xb)+parseInt(_0x56104b(0x1a0))/0xc;if(_0x973779===_0x1c48a9)break;else _0x4610e9['push'](_0x4610e9['shift']());}catch(_0x4d1608){_0x4610e9['push'](_0x4610e9['shift']());}}}(a147_0x39ca,0xb507b));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a147_0x39ca(){const _0x5eb43b=['Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','appCode','missing','rows-preparing','image/png','parserVersion','Image\x20media\x20bytes\x20changed.','7830270mKmtma','pending','.lock','some','hashes','update','value','00000000-0000-4000-8000-000000000000','mappingHash','schemaFingerprint','digest','test','map','uploadFields','imageCells','media','gif','fileName','801898BVFNTQ','field','size','report','Invalid\x20image\x20media\x20descriptor.','Completed\x20image\x20checkpoint\x20value\x20changed.','31368iUkNhS','6884IGHsxG','hex','get','all','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','maxBatchSize','bytes','isSafeInteger','binding','.lock.recovery','errors','.rows.json','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','types','hash','key','maxPixels','readback','completed','2318613Pvzqtq','status','contentHash','filePath','schemaHash','13218wpLQNY','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','strategy','Image\x20cell\x20references\x20missing\x20media.','rows-started','contract','maxFileBytes','png','batchSize','phase','reduce','isArray','importId','parse','resume','2690kRMfpE','type','3CVocxe','stringify','schemaVersion','every','273DpxOCe','imageImport','isInteger','10aJiosx','version','sha256','checkpoint','includes','utf8','imageApi','rows','actorId','inputPaths','1154508huqAiC','length','datasetCode','fileHash','manifest','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','Invalid\x20image\x20manifest\x20limits.','succeeded','name','1557IToSOl','imageFields','ENOENT'];a147_0x39ca=function(){return _0x5eb43b;};return a147_0x39ca();}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0xc92161,_0x45bb31){const _0x4c723f=a147_0x3248;if(!_0x45bb31['media']?.[_0x4c723f(0x1a1)])return;const _0x2e6308=_0xc92161[_0x4c723f(0x194)];if(!_0x2e6308||_0x2e6308['version']!==0x1||_0x2e6308['uploadId']!==_0x4c723f(0x198)||_0x2e6308[_0x4c723f(0x184)]!==0xa00000||_0x2e6308[_0x4c723f(0x176)]!==0x2625a00||!Array[_0x4c723f(0x189)](_0x2e6308['types'])||![_0x4c723f(0x14a),'image/jpeg','image/gif'][_0x4c723f(0x192)](_0x463ad4=>_0x2e6308[_0x4c723f(0x173)][_0x4c723f(0x19a)](_0x463ad4)))throw Error(_0x4c723f(0x1a5));}export function imageObjectValue(_0x4bedbe,_0xd8bea9,_0x321ead){const _0x1d1ccb=a147_0x3248,_0x59df4e=createHash('sha256')[_0x1d1ccb(0x152)](JSON[_0x1d1ccb(0x190)]([_0x4bedbe[_0x1d1ccb(0x19e)],_0x4bedbe[_0x1d1ccb(0x147)],_0x4bedbe[_0x1d1ccb(0x1a2)],_0xd8bea9]))[_0x1d1ccb(0x157)](_0x1d1ccb(0x167)),_0x15349b={'image/png':_0x1d1ccb(0x185),'image/jpeg':'jpg','image/gif':_0x1d1ccb(0x15d)}[_0x321ead[_0x1d1ccb(0x18e)]];if(!_0x15349b||!/^[0-9a-f]{64}$/[_0x1d1ccb(0x158)](_0x321ead[_0x1d1ccb(0x17b)])||!Number[_0x1d1ccb(0x16d)](_0x321ead['size'])||_0x321ead['size']<=0x0||_0x321ead[_0x1d1ccb(0x161)]>0xa00000)throw Error(_0x1d1ccb(0x163));const _0xa3e60a=_0x321ead[_0x1d1ccb(0x17b)]+'.'+_0x15349b;return{'key':'dataset-import/'+_0x59df4e+'/'+_0xa3e60a,'name':_0xa3e60a,'type':_0x321ead['type'],'size':_0x321ead['size']};}export function bindImageManifest(_0x5cb8dc,_0x15f10b,_0x4243a){const _0xed985e=a147_0x3248,_0x2b1ac4=new Map(_0x5cb8dc[_0xed985e(0x15c)]?.[_0xed985e(0x159)](_0x153dea=>[_0x153dea['contentHash'],_0x153dea])),_0x3c1752=new Map(_0x5cb8dc[_0xed985e(0x15b)]?.[_0xed985e(0x159)](_0x43cf91=>[_0x43cf91['rowNumber']+':'+_0x43cf91[_0xed985e(0x160)],_0x43cf91[_0xed985e(0x151)]]));return{..._0x5cb8dc,'rows':_0x5cb8dc[_0xed985e(0x19d)][_0xed985e(0x159)](_0x4f31fc=>({..._0x4f31fc,'values':Object['fromEntries'](Object['entries'](_0x4f31fc['values'])[_0xed985e(0x159)](([_0x21dd80,_0x4089eb])=>{const _0x5ab5de=_0xed985e,_0x31051d=_0x3c1752[_0x5ab5de(0x168)](_0x4f31fc['rowNumber']+':'+_0x21dd80);return[_0x21dd80,_0x31051d?_0x31051d[_0x5ab5de(0x159)](_0x6e0e11=>{const _0x1dbc14=_0x5ab5de,_0x116332=_0x2b1ac4['get'](_0x6e0e11);if(!_0x116332)throw Error(_0x1dbc14(0x181));const _0x54284e=imageObjectValue(_0x15f10b,_0x4243a,_0x116332);return _0x5cb8dc[_0x1dbc14(0x15a)]?.[_0x1dbc14(0x19a)](_0x21dd80)?{'fileName':_0x54284e['name'],'filePath':_0x54284e[_0x1dbc14(0x175)]}:_0x54284e;}):_0x4089eb];}))}))};}async function exists(_0x2d4e53){const _0x4119e8=a147_0x3248;try{return await lstat(_0x2d4e53),!![];}catch(_0x2bf206){if(_0x2bf206['code']===_0x4119e8(0x1ab))return![];throw _0x2bf206;}}function a147_0x3248(_0x403b2e,_0x154c57){_0x403b2e=_0x403b2e-0x147;const _0x39cada=a147_0x39ca();let _0x324853=_0x39cada[_0x403b2e];return _0x324853;}export async function runImageExcelImport(_0x312e6a){const _0x3aa0e4=a147_0x3248;assertImportContract(_0x312e6a['contract'],_0x312e6a['appCode'],_0x312e6a[_0x3aa0e4(0x1a2)]),assertImageImportCapability(_0x312e6a[_0x3aa0e4(0x183)],_0x312e6a['manifest']);if(!Number[_0x3aa0e4(0x195)](_0x312e6a[_0x3aa0e4(0x186)])||_0x312e6a[_0x3aa0e4(0x186)]<0x1||_0x312e6a['batchSize']>_0x312e6a[_0x3aa0e4(0x183)][_0x3aa0e4(0x16b)])throw Error('Invalid\x20import\x20batch\x20size.');if(_0x312e6a[_0x3aa0e4(0x1a4)][_0x3aa0e4(0x170)][_0x3aa0e4(0x1a1)]||!_0x312e6a['manifest']['rows'][_0x3aa0e4(0x1a1)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0x53ccd2=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x199)]),_0x410cca=await resolveImportOutputPath(_0x312e6a[_0x3aa0e4(0x162)]),_0x16889f=await resolveImportOutputPath(_0x53ccd2+_0x3aa0e4(0x171)),_0x5cc665=await Promise[_0x3aa0e4(0x169)]([_0x16889f,_0x16889f+'.lock',_0x16889f+_0x3aa0e4(0x16f),..._0x312e6a[_0x3aa0e4(0x19f)]??[]]['map'](resolveImportOutputPath));for(const _0x49d845 of[_0x53ccd2,_0x410cca,_0x53ccd2+_0x3aa0e4(0x14f),_0x53ccd2+_0x3aa0e4(0x16f)])await resolveImportOutputPath(_0x49d845);assertImportPaths(_0x53ccd2,_0x410cca,_0x5cc665);const {contract:_0x1c32b4,manifest:_0x302e9e}=_0x312e6a,_0x3d3955=_0x302e9e[_0x3aa0e4(0x15c)]??[];if(new Set(_0x3d3955[_0x3aa0e4(0x159)](_0x40ec26=>_0x40ec26[_0x3aa0e4(0x17b)]))[_0x3aa0e4(0x161)]!==_0x3d3955[_0x3aa0e4(0x1a1)]||_0x3d3955[_0x3aa0e4(0x188)]((_0xa1c503,_0x5b5e77)=>_0xa1c503+_0x5b5e77['size'],0x0)>0x32*0x400*0x400||(_0x302e9e[_0x3aa0e4(0x15b)]??[])[_0x3aa0e4(0x188)]((_0x6780b,_0x3c15f8)=>_0x6780b+_0x3c15f8[_0x3aa0e4(0x151)]['length'],0x0)>0x2710)throw Error(_0x3aa0e4(0x1a6));for(const _0x465ba3 of _0x3d3955)if(_0x465ba3[_0x3aa0e4(0x161)]!==_0x465ba3['bytes'][_0x3aa0e4(0x1a1)]||createHash(_0x3aa0e4(0x198))[_0x3aa0e4(0x152)](_0x465ba3[_0x3aa0e4(0x16c)])[_0x3aa0e4(0x157)](_0x3aa0e4(0x167))!==_0x465ba3['contentHash'])throw Error(_0x3aa0e4(0x14c));previewImportBatchCount(bindImageManifest(_0x302e9e,_0x1c32b4,_0x3aa0e4(0x154)),_0x1c32b4,_0x312e6a[_0x3aa0e4(0x186)]);const _0x46e81c={'appCode':_0x312e6a[_0x3aa0e4(0x147)],'datasetCode':_0x312e6a['datasetCode'],'runtimeDomain':_0x312e6a['runtimeDomain'],'actorId':_0x1c32b4[_0x3aa0e4(0x19e)],'fileHash':_0x302e9e[_0x3aa0e4(0x1a3)],'mappingHash':_0x302e9e[_0x3aa0e4(0x155)],'schemaHash':_0x302e9e[_0x3aa0e4(0x17d)],'remoteSchemaHash':_0x1c32b4[_0x3aa0e4(0x156)],'strategy':_0x1c32b4[_0x3aa0e4(0x180)],'schemaVersion':_0x1c32b4['schemaVersion'],'batchSize':_0x312e6a[_0x3aa0e4(0x186)],'maxBatchBytes':_0x1c32b4['maxBatchBytes'],'sheet':_0x302e9e['sheet'],'parserVersion':_0x302e9e[_0x3aa0e4(0x14b)],'imageFields':_0x302e9e[_0x3aa0e4(0x1aa)],'cells':_0x302e9e[_0x3aa0e4(0x15b)],..._0x302e9e['uploadFields']?.[_0x3aa0e4(0x1a1)]?{'uploadFields':_0x302e9e[_0x3aa0e4(0x15a)]}:{},'media':_0x3d3955['map'](({contentHash:_0x145cee,type:_0x100d9a,size:_0xf95c19})=>({'contentHash':_0x145cee,'type':_0x100d9a,'size':_0xf95c19})),'rows':_0x302e9e[_0x3aa0e4(0x19d)]},_0x270033=await acquireLock(_0x53ccd2);try{let _0x35630a;if(_0x312e6a[_0x3aa0e4(0x18c)]){try{_0x35630a=JSON[_0x3aa0e4(0x18b)](await readFile(_0x53ccd2,_0x3aa0e4(0x19b)));}catch{throw Error(_0x3aa0e4(0x17f));}if(_0x35630a[_0x3aa0e4(0x197)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x3aa0e4(0x158)](_0x35630a[_0x3aa0e4(0x18a)])||canonical(_0x35630a[_0x3aa0e4(0x16e)])!==canonical(_0x46e81c)||![_0x3aa0e4(0x15c),_0x3aa0e4(0x149),_0x3aa0e4(0x182),_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])||!Array[_0x3aa0e4(0x189)](_0x35630a['media'])||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x1a1)]!==_0x3d3955['length']||_0x35630a[_0x3aa0e4(0x15c)][_0x3aa0e4(0x150)]((_0x2b30d8,_0x4b37ed)=>_0x2b30d8[_0x3aa0e4(0x174)]!==_0x3d3955[_0x4b37ed][_0x3aa0e4(0x17b)]||![_0x3aa0e4(0x14e),'succeeded']['includes'](_0x2b30d8[_0x3aa0e4(0x17a)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if(['rows-started',_0x3aa0e4(0x178)][_0x3aa0e4(0x19a)](_0x35630a[_0x3aa0e4(0x187)])&&!await exists(_0x16889f))throw Error('Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.');if(_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&await exists(_0x16889f))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x53ccd2)||await exists(_0x16889f))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x35630a={'version':0x3,'importId':randomUUID(),'binding':_0x46e81c,'phase':'media','media':_0x3d3955[_0x3aa0e4(0x159)](_0x45dc11=>({'hash':_0x45dc11[_0x3aa0e4(0x17b)],'status':_0x3aa0e4(0x14e)}))},await saveImportJson(_0x53ccd2,_0x35630a);}const _0x23e08b=(_0x446510,_0x187f8a)=>{const _0x12242c=_0x3aa0e4;if(!_0x446510||_0x446510[_0x12242c(0x17b)]!==_0x187f8a['contentHash'])throw Error('Invalid\x20image\x20readback\x20digest.');if(_0x446510[_0x12242c(0x17a)]===_0x12242c(0x148))return undefined;const _0x5e9dc4=imageObjectValue(_0x1c32b4,_0x35630a[_0x12242c(0x18a)],_0x187f8a);if(_0x446510[_0x12242c(0x17a)]!==_0x12242c(0x1a7)||_0x446510[_0x12242c(0x17c)]!==_0x5e9dc4['key']||_0x446510[_0x12242c(0x15e)]!==_0x5e9dc4[_0x12242c(0x1a8)]||_0x446510[_0x12242c(0x18e)]!==_0x5e9dc4[_0x12242c(0x18e)]||_0x446510[_0x12242c(0x161)]!==_0x5e9dc4[_0x12242c(0x161)])throw Error(_0x12242c(0x16a));return _0x5e9dc4;};for(let _0x34ff94=0x0;_0x34ff94<_0x3d3955['length'];_0x34ff94++){const _0x549e19=_0x3d3955[_0x34ff94],_0x26f901=_0x35630a[_0x3aa0e4(0x15c)][_0x34ff94],_0x3e44ad=imageObjectValue(_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)],_0x549e19);if(_0x26f901[_0x3aa0e4(0x17a)]==='succeeded'&&canonical(_0x26f901[_0x3aa0e4(0x153)])!==canonical(_0x3e44ad))throw Error(_0x3aa0e4(0x164));let _0xf75368;if(_0x312e6a[_0x3aa0e4(0x18c)]||_0x26f901['status']==='succeeded')_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368&&_0x26f901['status']===_0x3aa0e4(0x1a7))throw Error(_0x3aa0e4(0x172));if(!_0xf75368){try{_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)]['upload'](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);}catch(_0x5788ee){_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error(_0x3aa0e4(0x1ac));}if(!_0xf75368)_0xf75368=_0x23e08b(await _0x312e6a[_0x3aa0e4(0x19c)][_0x3aa0e4(0x177)](_0x35630a[_0x3aa0e4(0x18a)],_0x549e19),_0x549e19);if(!_0xf75368)throw Error('Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.');}_0x26f901['status']='succeeded',_0x26f901[_0x3aa0e4(0x153)]=_0xf75368,await saveImportJson(_0x53ccd2,_0x35630a);}const _0x40c396=bindImageManifest(_0x302e9e,_0x1c32b4,_0x35630a[_0x3aa0e4(0x18a)]),_0x5894b4=_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x149)?await exists(_0x16889f):_0x35630a[_0x3aa0e4(0x187)]!==_0x3aa0e4(0x15c);_0x35630a[_0x3aa0e4(0x187)]===_0x3aa0e4(0x15c)&&(_0x35630a[_0x3aa0e4(0x187)]=_0x3aa0e4(0x149),await saveImportJson(_0x53ccd2,_0x35630a));const _0x7a8b65={..._0x312e6a,'manifest':_0x40c396,'checkpoint':_0x16889f,'report':_0x410cca,'resume':_0x5894b4,'onCheckpointReady':async()=>{const _0x1f6543=_0x3aa0e4;_0x35630a[_0x1f6543(0x187)]=_0x1f6543(0x182),await saveImportJson(_0x53ccd2,_0x35630a);}},_0x782c57=_0x1c32b4[_0x3aa0e4(0x191)]===0x2?await runAutoIdExcelImport({..._0x7a8b65,'reconcileImageConflicts':_0x312e6a[_0x3aa0e4(0x18c)]===!![]&&_0x5894b4}):await runExcelImport(_0x7a8b65);return _0x35630a['phase']=_0x3aa0e4(0x178),await saveImportJson(_0x53ccd2,_0x35630a),{..._0x782c57,'checkpoint':_0x53ccd2,'imageCount':_0x302e9e['imageCells']?.['reduce']((_0x7b009b,_0x11b5c7)=>_0x7b009b+_0x11b5c7['hashes'][_0x3aa0e4(0x1a1)],0x0)??0x0,'uniqueImages':_0x3d3955[_0x3aa0e4(0x1a1)]};}finally{await _0x270033();}}
|
|
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();}}
|