@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.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/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.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/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x218a30=a140_0x2850;(function(_0x57a507,_0xf2277f){const _0x1f72aa=a140_0x2850,_0x31f433=_0x57a507();while(!![]){try{const _0x11bec6=parseInt(_0x1f72aa(0x1ed))/0x1*(parseInt(_0x1f72aa(0x239))/0x2)+-parseInt(_0x1f72aa(0x1da))/0x3+-parseInt(_0x1f72aa(0x282))/0x4+-parseInt(_0x1f72aa(0x270))/0x5*(-parseInt(_0x1f72aa(0x2b0))/0x6)+-parseInt(_0x1f72aa(0x232))/0x7+-parseInt(_0x1f72aa(0x1d2))/0x8+-parseInt(_0x1f72aa(0x1d6))/0x9*(-parseInt(_0x1f72aa(0x27e))/0xa);if(_0x11bec6===_0xf2277f)break;else _0x31f433['push'](_0x31f433['shift']());}catch(_0x108126){_0x31f433['push'](_0x31f433['shift']());}}}(a140_0x2645,0x56e2d));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x184eec from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x2b3ab8 from'exceljs';import a140_0x272ab6 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',a140_0x218a30(0x1f3),a140_0x218a30(0x246),a140_0x218a30(0x207),'creatorId',a140_0x218a30(0x274),a140_0x218a30(0x226),a140_0x218a30(0x1ef),a140_0x218a30(0x208),a140_0x218a30(0x28b),a140_0x218a30(0x1dd)]),TYPES=new Set([a140_0x218a30(0x206),a140_0x218a30(0x21f),'textarea',a140_0x218a30(0x20a),a140_0x218a30(0x210),'integer',a140_0x218a30(0x1cb),a140_0x218a30(0x23a),'datetime','image',a140_0x218a30(0x29a)]),isImageContainer=_0x5711c6=>['image',a140_0x218a30(0x29a)][a140_0x218a30(0x1f4)](_0x5711c6['toLowerCase']()),hash=_0x5244ef=>createHash(a140_0x218a30(0x1dc))[a140_0x218a30(0x251)](_0x5244ef)[a140_0x218a30(0x254)](a140_0x218a30(0x22d)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x218a30(0x224)),nameCoordinates=require(a140_0x218a30(0x1df)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x218a30(0x2bc)]('exceljs')),zipRequire=createRequire(excelRequire['resolve'](a140_0x218a30(0x281))),ZipEntry=zipRequire(a140_0x218a30(0x2a7)),zipReader=zipRequire(a140_0x218a30(0x23c)),zipUtf8=zipRequire(a140_0x218a30(0x266)),zipPaths=zipRequire(a140_0x218a30(0x1f9));function a140_0x2850(_0x3dc8b1,_0x5d50b7){_0x3dc8b1=_0x3dc8b1-0x1c9;const _0x2645b4=a140_0x2645();let _0x28506a=_0x2645b4[_0x3dc8b1];return _0x28506a;}function centralDirectoryEnd(_0x424b10,_0x408106){const _0x2c2447=a140_0x218a30,_0x2b19db=()=>new Error(_0x2c2447(0x298)),_0x504446=_0x424b10['lastIndexOf'](Buffer[_0x2c2447(0x27f)]([0x50,0x4b,0x5,0x6]));if(_0x504446<0x0||_0x504446+0x16>_0x424b10[_0x2c2447(0x2b2)]||_0x504446+0x16+_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x14)!==_0x424b10[_0x2c2447(0x2b2)])throw _0x2b19db();let _0x5dd2fd=_0x424b10[_0x2c2447(0x1fc)](_0x504446+0xa),_0x357efc=_0x424b10[_0x2c2447(0x247)](_0x504446+0xc),_0x1f9fdc=_0x424b10['readUInt32LE'](_0x504446+0x10),_0x2b4437=_0x504446;const _0xa57a4f=_0x504446-0x14,_0x4e3c8d=_0xa57a4f>=0x0&&_0x424b10['readUInt32LE'](_0xa57a4f)===0x7064b50,_0x4a1098=[0x4,0x6,0x8,0xa][_0x2c2447(0x2a9)](_0x8c91ca=>_0x424b10[_0x2c2447(0x1fc)](_0x504446+_0x8c91ca)===0xffff)||_0x357efc===0xffffffff||_0x1f9fdc===0xffffffff;if(_0x4e3c8d!==_0x4a1098)throw _0x2b19db();if(_0x4e3c8d){if(_0x424b10['lastIndexOf'](Buffer[_0x2c2447(0x27f)]([0x50,0x4b,0x6,0x7]))!==_0xa57a4f)throw _0x2b19db();const _0x908aa6=_0x4071a7=>{const _0xd90d93=_0x2c2447,_0x2eae24=Number(_0x424b10[_0xd90d93(0x1eb)](_0x4071a7));if(!Number[_0xd90d93(0x242)](_0x2eae24))throw _0x2b19db();return _0x2eae24;};_0x2b4437=_0x908aa6(_0xa57a4f+0x8);if(_0x424b10[_0x2c2447(0x247)](_0xa57a4f+0x4)!==0x0||_0x424b10[_0x2c2447(0x247)](_0xa57a4f+0x10)!==0x1||_0x2b4437>_0xa57a4f-0x38||_0x424b10[_0x2c2447(0x247)](_0x2b4437)!==0x6064b50||_0x908aa6(_0x2b4437+0x4)!==0x2c||_0x2b4437+0x38!==_0xa57a4f||_0x424b10[_0x2c2447(0x247)](_0x2b4437+0x10)!==0x0||_0x424b10[_0x2c2447(0x247)](_0x2b4437+0x14)!==0x0)throw _0x2b19db();_0x5dd2fd=_0x908aa6(_0x2b4437+0x20),_0x357efc=_0x908aa6(_0x2b4437+0x28),_0x1f9fdc=_0x908aa6(_0x2b4437+0x30);if(_0x908aa6(_0x2b4437+0x18)!==_0x5dd2fd)throw _0x2b19db();}else{if(_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x4)!==0x0||_0x424b10[_0x2c2447(0x1fc)](_0x504446+0x6)!==0x0||_0x424b10['readUInt16LE'](_0x504446+0x8)!==_0x5dd2fd)throw _0x2b19db();}const _0x34c977=_0x408106[_0x2c2447(0x264)];if(_0x1f9fdc!==_0x34c977||_0x5dd2fd!==_0x408106[_0x2c2447(0x1ec)]||_0x1f9fdc+_0x357efc!==_0x2b4437)throw _0x2b19db();return _0x2b4437;}function consumerEntryName(_0x9b1d67,_0x495223){const _0x43066d=a140_0x218a30;if(_0x495223['extraFields']['filter'](_0x15ced6=>_0x15ced6['id']===0x1)[_0x43066d(0x2b2)]>0x1)throw new Error(_0x43066d(0x27b));const _0x405b5b=_0x495223,_0x1f091e=_0x495223[_0x43066d(0x1ca)];if(!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x252)])||!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x2ac)])||!Buffer[_0x43066d(0x284)](_0x405b5b[_0x43066d(0x23f)])||!Number['isSafeInteger'](_0x1f091e)||_0x1f091e<0x0||_0x1f091e>_0x9b1d67[_0x43066d(0x2b2)]-0x1e||_0x9b1d67[_0x43066d(0x247)](_0x1f091e)!==0x4034b50)throw new Error(_0x43066d(0x233));const _0x426f5e=_0x1f091e+0x1e+_0x9b1d67[_0x43066d(0x1fc)](_0x1f091e+0x1a),_0x2f5e94=_0x426f5e+_0x9b1d67[_0x43066d(0x1fc)](_0x1f091e+0x1c)+_0x495223[_0x43066d(0x2ba)];if(!Number[_0x43066d(0x242)](_0x2f5e94)||_0x2f5e94>_0x9b1d67[_0x43066d(0x2b2)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x426f5e>_0x9b1d67[_0x43066d(0x2b2)]||!_0x9b1d67['subarray'](_0x1f091e+0x1e,_0x426f5e)[_0x43066d(0x263)](_0x405b5b[_0x43066d(0x252)]))throw new Error(_0x43066d(0x2a6));const _0x1f0106=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x1f0106[_0x43066d(0x295)]=_0x495223['generalPurposeBitFlag'],_0x1f0106[_0x43066d(0x216)]=_0x405b5b[_0x43066d(0x252)],_0x1f0106[_0x43066d(0x1db)]=_0x405b5b['fileCommentRaw'],_0x1f0106[_0x43066d(0x1e8)]=_0x405b5b[_0x43066d(0x2ac)]['length'],_0x1f0106['readExtraFields'](zipReader(_0x405b5b[_0x43066d(0x2ac)])),_0x1f0106[_0x43066d(0x265)](),_0x1f0106[_0x43066d(0x241)]=_0x495223[_0x43066d(0x241)],_0x1f0106['externalFileAttributes']=_0x495223[_0x43066d(0x213)],_0x1f0106[_0x43066d(0x25f)]();const _0x56ebde=_0x1f0106['dir']||Boolean((_0x1f0106['unixPermissions']??0x0)&0x4000),_0x2eed98=zipPaths[_0x43066d(0x2bc)](_0x1f0106[_0x43066d(0x201)]),_0x415826=_0x2eed98[_0x43066d(0x256)]('/')?_0x2eed98[_0x43066d(0x285)](0x1):_0x2eed98;return{'name':_0x415826,'original':_0x1f0106[_0x43066d(0x201)],'directory':_0x56ebde};}export function normalizeImportFields(_0x41fd9e){const _0x3fa7a3=a140_0x218a30;if(!_0x41fd9e||(_0x41fd9e[_0x3fa7a3(0x278)]??_0x41fd9e[_0x3fa7a3(0x287)]?.[_0x3fa7a3(0x2a3)])!==_0x3fa7a3(0x25d))throw new Error(_0x3fa7a3(0x221));const _0x30659c=Array['isArray'](_0x41fd9e[_0x3fa7a3(0x20f)]),_0x54b536=_0x30659c?_0x41fd9e[_0x3fa7a3(0x20f)]:_0x41fd9e[_0x3fa7a3(0x203)];if(!Array['isArray'](_0x54b536)||_0x54b536[_0x3fa7a3(0x2b2)]===0x0)throw new Error(_0x3fa7a3(0x2b6));const _0x29865f=[],_0x3cdd47=new Set();for(const _0x72eeee of _0x54b536){if(_0x72eeee[_0x3fa7a3(0x1dd)]===!![])continue;let _0x16783d=_0x72eeee[_0x3fa7a3(0x1f5)]??{};if(!_0x30659c&&typeof _0x16783d===_0x3fa7a3(0x206)){try{_0x16783d=JSON[_0x3fa7a3(0x20b)](_0x16783d);}catch{throw new Error(_0x3fa7a3(0x276));}if(!_0x16783d||typeof _0x16783d!==_0x3fa7a3(0x29c)||Array[_0x3fa7a3(0x289)](_0x16783d))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x5963a4=_0x30659c?_0x72eeee['name']:_0x72eeee[_0x3fa7a3(0x27d)],_0xf87ebb=_0x30659c?_0x72eeee['doType']:_0x72eeee[_0x3fa7a3(0x291)]??_0x72eeee[_0x3fa7a3(0x1f7)];if(typeof _0x5963a4!==_0x3fa7a3(0x206)||!_0x5963a4||typeof _0xf87ebb!==_0x3fa7a3(0x206)||_0x3cdd47['has'](_0x5963a4))throw new Error(_0x3fa7a3(0x29e));if(_0xf87ebb['toLowerCase']()===_0x3fa7a3(0x25a))throw new Error(_0x3fa7a3(0x24e));_0x3cdd47['add'](_0x5963a4);const _0x1eb886=_0x30659c?_0x72eeee:_0x16783d,_0x19e055={'code':_0x5963a4,'type':_0xf87ebb,'required':_0x1eb886[_0x3fa7a3(0x262)]===!![]};if(RESERVED[_0x3fa7a3(0x20d)](_0x5963a4)||_0x1eb886[_0x3fa7a3(0x1d3)]===!![]||_0x1eb886[_0x3fa7a3(0x1d9)]===!![])_0x19e055[_0x3fa7a3(0x1d3)]=!![];_0x29865f[_0x3fa7a3(0x2ab)](_0x19e055);}return _0x29865f;}async function checkArchive(_0x57d6b3,_0x344491){await new Promise((_0x1e6465,_0x1368b4)=>{const _0xb45e3c=a140_0x2850;a140_0x272ab6[_0xb45e3c(0x25e)](_0x57d6b3,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x3b7743,_0x3798a4)=>{const _0x437716=_0xb45e3c;if(_0x3b7743||!_0x3798a4){_0x1368b4(_0x3b7743??new Error('Invalid\x20XLSX\x20archive.'));return;}let _0x1dcdb0;try{_0x1dcdb0=centralDirectoryEnd(_0x57d6b3,_0x3798a4);}catch(_0x5681dc){_0x3798a4[_0x437716(0x1cd)](),_0x1368b4(_0x5681dc);return;}let _0x8bb253=0x0,_0x6e9b5d=0x0,_0x4eb2e3=0x0,_0xfedcc0=0x0,_0x3ba8d4=0x0,_0x2f5b1d=0x0,_0x11233b=0x0,_0x4a11ca=0x0,_0x388335=0x0,_0x249d65=![],_0x364af2;const _0x501407=new Set(),_0x489201=_0x45662f=>{const _0x1d931e=_0x437716;if(_0x249d65)return;_0x249d65=!![],_0x364af2?.[_0x1d931e(0x212)](),_0x3798a4[_0x1d931e(0x1cd)](),_0x1368b4(_0x45662f);},_0x2be152=(_0xd9bae2,_0x501912)=>{const _0x203690=_0x437716;if(!_0xd9bae2||!/^\d+$/[_0x203690(0x215)](_0xd9bae2))throw new Error(_0x203690(0x228));const _0x18db87=Number(_0xd9bae2);if(!Number['isSafeInteger'](_0x18db87)||_0x18db87<0x1||_0x18db87>_0x501912)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0x501912+'.');return _0x18db87;},_0x1bedb6=(_0x96986d,_0x2921f6=MAX_XML_COLUMNS)=>{const _0x326ab3=_0x437716,_0x5a422a=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x326ab3(0x209)](_0x96986d);if(!_0x5a422a)throw new Error(_0x326ab3(0x22e));let _0x4509fb=0x0;for(const _0x32bf51 of _0x5a422a[0x1])_0x4509fb=_0x4509fb*0x1a+_0x32bf51['charCodeAt'](0x0)-0x40;if(_0x4509fb>_0x2921f6)throw new Error(_0x326ab3(0x261)+_0x2921f6+_0x326ab3(0x23b));return{'row':_0x2be152(_0x5a422a[0x2],MAX_XML_ROWS),'col':_0x4509fb};},_0x59b2ae=_0x39e275=>{const _0x2d6007=_0x437716;if(_0x39e275[_0x2d6007(0x21c)]==='_xlnm.Print_Area'||_0x39e275[_0x2d6007(0x21c)]===_0x2d6007(0x1f8))return;for(const _0x359f84 of _0x39e275[_0x2d6007(0x211)]){if(!ABSOLUTE_NAME_RANGE[_0x2d6007(0x215)](_0x359f84[_0x2d6007(0x280)]('!')[_0x2d6007(0x1fb)]()||''))continue;const _0x42a387=nameCoordinates[_0x2d6007(0x24d)](_0x359f84),_0x437540='top'in _0x42a387,_0x46bac7=_0x437540?[_0x42a387[_0x2d6007(0x28d)],_0x42a387[_0x2d6007(0x220)]]:[_0x42a387['row']],_0x18b258=_0x437540?[_0x42a387['left'],_0x42a387[_0x2d6007(0x248)]]:[_0x42a387[_0x2d6007(0x1e0)]],_0x64d107=(_0x4c3fe3,_0x3b095d)=>Number['isSafeInteger'](_0x4c3fe3)&&_0x4c3fe3>=0x1&&_0x4c3fe3<=_0x3b095d;if(!_0x46bac7[_0x2d6007(0x2a4)](_0x1de217=>_0x64d107(_0x1de217,MAX_XML_ROWS))||!_0x18b258[_0x2d6007(0x2a4)](_0x24f309=>_0x64d107(_0x24f309,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x11233b+=_0x437540?(_0x42a387[_0x2d6007(0x220)]-_0x42a387[_0x2d6007(0x28d)]+0x1)*(_0x42a387[_0x2d6007(0x248)]-_0x42a387['left']+0x1):0x1;if(_0x11233b>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x3798a4['on'](_0x437716(0x255),_0x489201),_0x3798a4['on']('entry',_0x13ec0b=>{const _0x1df372=_0x437716;if(_0x249d65)return;if(++_0x4eb2e3>0x2710||(_0x8bb253+=_0x13ec0b[_0x1df372(0x205)])>MAX_EXPANDED){_0x489201(new Error(_0x1df372(0x25b)));return;}let _0x39b9d;try{_0x39b9d=consumerEntryName(_0x57d6b3,_0x13ec0b);}catch(_0x32b40b){_0x489201(_0x32b40b);return;}if(_0x39b9d['directory']){_0x3798a4[_0x1df372(0x22a)]();return;}const _0x4db821=_0x39b9d[_0x1df372(0x21c)];if(_0x344491&&(_0x4db821!==_0x39b9d[_0x1df372(0x292)]||_0x501407[_0x1df372(0x20d)](_0x4db821)||_0x4db821[_0x1df372(0x256)]('/')||_0x4db821[_0x1df372(0x1f4)]('\x5c'))){_0x489201(new Error(_0x1df372(0x2b9)));return;}if(_0x4db821!==_0x39b9d[_0x1df372(0x292)]&&(_0x4db821===_0x1df372(0x204)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x1df372(0x215)](_0x4db821))){_0x489201(new Error(_0x1df372(0x286)));return;}const _0x4bd54d=_0x4db821==='xl/workbook.xml';if(_0x4bd54d&&_0x501407['has'](_0x4db821)){_0x489201(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0x501407['add'](_0x4db821);const _0x15236f=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x1df372(0x215)](_0x4db821);if(_0x15236f&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x1df372(0x215)](_0x4db821)){_0x489201(new Error(_0x1df372(0x1d0)));return;}_0x3798a4[_0x1df372(0x245)](_0x13ec0b,(_0x36b1ba,_0x17f6cf)=>{const _0x4c25ba=_0x1df372;if(_0x249d65){_0x17f6cf?.[_0x4c25ba(0x212)]();return;}if(_0x36b1ba||!_0x17f6cf){_0x489201(_0x36b1ba??new Error(_0x4c25ba(0x23e)));return;}_0x364af2=_0x17f6cf;const _0x95dae8=_0x344491?[]:undefined,_0x555622=_0x344491&&/[.](xml|rels)$/[_0x4c25ba(0x215)](_0x4db821)?new StringDecoder(_0x4c25ba(0x21e)):undefined,_0x4fd5e3=_0x555622?new SaxesParser({'xmlns':![]}):undefined,_0x21500f=()=>{const _0x91a235=_0x4c25ba;if(++_0x388335>0x1e8480)throw Error(_0x91a235(0x1d1));};_0x4fd5e3?.['on'](_0x4c25ba(0x227),()=>{const _0x4fc861=_0x4c25ba;throw Error(_0x4fc861(0x1e1));}),_0x4fd5e3?.['on'](_0x4c25ba(0x22b),()=>{const _0x27c7e9=_0x4c25ba;_0x21500f();if(++_0x4a11ca>0x7a120)throw Error(_0x27c7e9(0x250));}),_0x4fd5e3?.['on'](_0x4c25ba(0x21f),_0x21500f),_0x4fd5e3?.['on']('closetag',_0x21500f),_0x4fd5e3?.['on'](_0x4c25ba(0x255),_0x5da094=>{throw _0x5da094;});const _0x2a326e=_0x15236f||_0x4bd54d?new StringDecoder('utf8'):undefined,_0xb9b05=_0x15236f||_0x4bd54d?new SaxesParser({'xmlns':![]}):undefined;let _0x199f0d,_0x406988=0x0,_0x27aef8=0x0,_0x31a49a,_0x163040,_0x10e8be=![],_0x284e54=![],_0x378ffa,_0x8bc93,_0x37a540,_0x27c6ca=![];const _0x318a8e=[],_0x335147=new Set();let _0x79927b;const _0x20985c=(_0x31a867,_0x2dfb10=0x0)=>{const _0xc4aef7=_0x4c25ba;_0x3ba8d4+=_0x2dfb10+Math[_0xc4aef7(0x2a5)](0x0,_0x31a867-_0x27aef8),_0x27aef8=Math[_0xc4aef7(0x2a5)](_0x27aef8,_0x31a867);if(_0x3ba8d4>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0xb9b05?.['on'](_0x4c25ba(0x22b),_0x32f24b=>{const _0x1e0a7f=_0x4c25ba;if(_0x4bd54d){if(!_0x199f0d&&_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x236))_0x199f0d=new DefinedNameXform();_0x199f0d?.[_0x1e0a7f(0x26f)](_0x32f24b);return;}if(_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x22f)){if(_0x284e54)throw new Error(_0x1e0a7f(0x218));_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)]['r'],MAX_XML_ROWS),_0x31a49a=undefined,_0x37a540=undefined,_0x27c6ca=![];}else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='c'){if(_0x284e54)throw new Error(_0x1e0a7f(0x21a));_0x284e54=!![],_0x10e8be=Boolean(Number[_0x1e0a7f(0x2b5)](_0x32f24b[_0x1e0a7f(0x21b)]['s']??'',0xa)),_0x79927b=undefined,_0x378ffa=_0x32f24b['attributes']['r']||undefined,_0x8bc93=_0x378ffa?_0x1bedb6(_0x378ffa):undefined;if(_0x8bc93)_0x163040=_0x8bc93;else _0x163040=_0x31a49a?{'row':_0x31a49a[_0x1e0a7f(0x22f)],'col':_0x31a49a[_0x1e0a7f(0x1e0)]+0x1}:undefined;}else{if(_0x284e54&&['f','v','t'][_0x1e0a7f(0x1f4)](_0x32f24b[_0x1e0a7f(0x21c)])){_0x79927b=_0x32f24b[_0x1e0a7f(0x21c)];if(_0x32f24b['name']==='f'&&_0x32f24b['attributes']['t'])_0x10e8be=!![];}else{if(_0x284e54&&_0x32f24b[_0x1e0a7f(0x21c)]==='r')_0x10e8be=!![];else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='hyperlink'){const _0x568060=_0x32f24b[_0x1e0a7f(0x21b)][_0x1e0a7f(0x20c)];if(!_0x568060)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x5e0855=_0x568060[_0x1e0a7f(0x280)](':');if(_0x5e0855[_0x1e0a7f(0x2b2)]>0x2)throw new Error(_0x1e0a7f(0x277));const _0x5036c1=_0x1bedb6(_0x5e0855[0x0]),_0xcbb23d=_0x1bedb6(_0x5e0855[0x1]??_0x5e0855[0x0]);_0x335147[_0x1e0a7f(0x24a)](_0x568060),_0x20985c(Math[_0x1e0a7f(0x2a5)](_0x5036c1[_0x1e0a7f(0x1e0)],_0xcbb23d['col']),0x1);}else{if(_0x32f24b[_0x1e0a7f(0x21c)]==='col'){const _0x15279e=_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)]['min'],0x4000),_0x5ecc0a=_0x2be152(_0x32f24b[_0x1e0a7f(0x21b)][_0x1e0a7f(0x2a5)],0x4000);if(_0x15279e>_0x5ecc0a)throw new Error(_0x1e0a7f(0x26d));_0x20985c(_0x5ecc0a,0x1);}else{if(_0x32f24b[_0x1e0a7f(0x21c)]===_0x1e0a7f(0x272)){const _0x45370b=_0x32f24b[_0x1e0a7f(0x21b)]['ref'];if(!_0x45370b)throw new Error(_0x1e0a7f(0x269));const _0xa809f0=_0x45370b[_0x1e0a7f(0x280)](':');if(_0xa809f0[_0x1e0a7f(0x2b2)]>0x2)throw new Error(_0x1e0a7f(0x269));const _0x57d90d=_0x1bedb6(_0xa809f0[0x0]),_0x57132d=_0x1bedb6(_0xa809f0[0x1]??_0xa809f0[0x0]);_0x20985c(Math['max'](_0x57d90d[_0x1e0a7f(0x1e0)],_0x57132d[_0x1e0a7f(0x1e0)]));const _0x18f0a2=(Math[_0x1e0a7f(0x253)](_0x57132d[_0x1e0a7f(0x22f)]-_0x57d90d[_0x1e0a7f(0x22f)])+0x1)*(Math[_0x1e0a7f(0x253)](_0x57132d[_0x1e0a7f(0x1e0)]-_0x57d90d['col'])+0x1);_0xfedcc0+=_0x18f0a2+_0x406988++;if(_0xfedcc0>MAX_ROWS)throw new Error(_0x1e0a7f(0x297));}}}}}}}}),_0xb9b05?.['on'](_0x4c25ba(0x21f),_0x4b3c20=>{const _0x3aba86=_0x4c25ba;if(_0x4bd54d){_0x199f0d?.[_0x3aba86(0x222)](_0x4b3c20);return;}if(_0x284e54&&_0x79927b&&_0x4b3c20)_0x10e8be=!![];}),_0xb9b05?.['on']('closetag',_0x448687=>{const _0x12c04d=_0x4c25ba;if(_0x4bd54d){_0x199f0d&&!_0x199f0d[_0x12c04d(0x230)]()&&(_0x59b2ae(_0x199f0d[_0x12c04d(0x231)]),_0x199f0d=undefined);return;}if(_0x448687[_0x12c04d(0x21c)]==='c'){!_0x10e8be&&_0x378ffa&&!_0x37a540&&(_0x37a540={'before':_0x31a49a,'cells':[]});if(_0x37a540){if(++_0x2f5b1d>0xf4240)throw new Error(_0x12c04d(0x290));_0x37a540[_0x12c04d(0x1f1)][_0x12c04d(0x2ab)]({'reference':_0x378ffa,'address':_0x8bc93,'materialized':_0x10e8be});if(!_0x378ffa&&_0x10e8be)_0x27c6ca=!![];}if(_0x10e8be){if(!_0x37a540||_0x378ffa){if(!_0x163040)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x163040[_0x12c04d(0x1e0)]>MAX_XML_COLUMNS)throw new Error(_0x12c04d(0x2ae));_0x20985c(_0x163040[_0x12c04d(0x1e0)]);}_0x31a49a=_0x163040;}_0x284e54=![],_0x163040=undefined,_0x378ffa=undefined,_0x8bc93=undefined,_0x79927b=undefined;}else{if(_0x448687[_0x12c04d(0x21c)]===_0x12c04d(0x22f)){if(_0x37a540&&_0x27c6ca)_0x318a8e['push'](_0x37a540);_0x37a540=undefined,_0x27c6ca=![];}else{if(_0x448687[_0x12c04d(0x21c)]===_0x79927b)_0x79927b=undefined;}}}),_0xb9b05?.['on']('error',_0x19c16e=>{const _0xac1966=_0x4c25ba;throw new Error(_0xac1966(0x293)+_0x19c16e[_0xac1966(0x273)]);}),_0x17f6cf['on'](_0x4c25ba(0x255),_0x489201),_0x17f6cf['on'](_0x4c25ba(0x244),_0x550fc3=>{const _0x436b60=_0x4c25ba;if(_0x249d65)return;_0x6e9b5d+=_0x550fc3['length'],_0x95dae8?.[_0x436b60(0x2ab)](_0x550fc3);if(_0x6e9b5d>MAX_EXPANDED){_0x489201(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x4fd5e3&&_0x555622)_0x4fd5e3[_0x436b60(0x24b)](_0x555622[_0x436b60(0x24b)](_0x550fc3));if(_0xb9b05&&_0x2a326e)_0xb9b05['write'](_0x2a326e[_0x436b60(0x24b)](_0x550fc3));}catch(_0x3fa109){_0x489201(_0x3fa109 instanceof Error?_0x3fa109:new Error(_0x436b60(0x275)));}}),_0x17f6cf['on'](_0x4c25ba(0x28a),()=>{const _0x59b147=_0x4c25ba;if(_0x249d65)return;try{if(_0x4fd5e3&&_0x555622)_0x4fd5e3['write'](_0x555622[_0x59b147(0x28a)]())[_0x59b147(0x1cd)]();if(_0xb9b05&&_0x2a326e)_0xb9b05[_0x59b147(0x24b)](_0x2a326e[_0x59b147(0x28a)]())[_0x59b147(0x1cd)]();for(const _0x28abb5 of _0x318a8e){let _0x44fe54=_0x28abb5['before'];for(const _0x4de799 of _0x28abb5[_0x59b147(0x1f1)]){if(!_0x4de799['materialized']&&!(_0x4de799[_0x59b147(0x2a1)]&&_0x335147[_0x59b147(0x20d)](_0x4de799['reference'])))continue;const _0x495673=_0x4de799[_0x59b147(0x299)]??(_0x44fe54?{'row':_0x44fe54['row'],'col':_0x44fe54['col']+0x1}:undefined);if(!_0x495673)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x495673['col']>MAX_XML_COLUMNS)throw new Error(_0x59b147(0x2ae));_0x20985c(_0x495673[_0x59b147(0x1e0)]),_0x44fe54=_0x495673;}}_0x318a8e['length']=0x0,_0x335147['clear']();}catch(_0x2e9f08){_0x489201(_0x2e9f08 instanceof Error?_0x2e9f08:new Error(_0x59b147(0x275)));return;}if(_0x95dae8)_0x344491[_0x59b147(0x2ad)](_0x4db821,Buffer[_0x59b147(0x200)](_0x95dae8));_0x364af2=undefined,_0x3798a4[_0x59b147(0x22a)]();});});}),_0x3798a4['on'](_0x437716(0x28a),()=>{const _0x133d86=_0x437716;if(_0x249d65)return;if(_0x3798a4[_0x133d86(0x264)]!==_0x1dcdb0){_0x1368b4(new Error(_0x133d86(0x1d7)));return;}if(!_0x501407['has']('[Content_Types].xml')||!_0x501407[_0x133d86(0x20d)](_0x133d86(0x204)))_0x1368b4(new Error(_0x133d86(0x28e)));else _0x1e6465();}),_0x3798a4[_0x437716(0x22a)]();});});}function valueOf(_0x1f1fca){const _0xcf6350=a140_0x218a30,_0x48dbca=_0x1f1fca[_0xcf6350(0x25c)];if(_0x48dbca&&typeof _0x48dbca===_0xcf6350(0x29c)&&(_0xcf6350(0x2a8)in _0x48dbca||_0xcf6350(0x283)in _0x48dbca)){if(!(_0xcf6350(0x267)in _0x48dbca)||_0x48dbca[_0xcf6350(0x267)]===undefined)throw new Error(_0xcf6350(0x1d5));return _0x48dbca[_0xcf6350(0x267)];}return _0x48dbca;}function a140_0x2645(){const _0x21ee4c=['Formula\x20has\x20no\x20cached\x20result.','7117677tlemZW','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','create','autoIncrement','1871310aeLraf','fileComment','sha256','deleted','media','exceljs/lib/utils/col-cache.js','col','XML\x20DTD/entities\x20are\x20not\x20supported.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','load','rows','Expected\x20an\x20Excel\x20date\x20cell.','imageFields','toLowerCase','extraFieldsLength','headerRow','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','readBigUInt64LE','entryCount','1puzvHZ','sheet','modifierName','errors','cells','.xlsx','tenantCode','includes','extend','dataValidations','dataType','_xlnm.Print_Titles','./utils','imageCells','pop','readUInt16LE','getTime','Missing\x20image\x20media:\x20','XLSX\x20file\x20exceeds\x2020\x20MB.','concat','fileNameStr','getCell','properties','xl/workbook.xml','uncompressedSize','string','datasetId','createTime','exec','number','parse','ref','has','byteLength','fields','decimal','ranges','destroy','externalFileAttributes','get','test','fileName','Duplicate\x20header:\x20','Invalid\x20worksheet\x20nested\x20row.','rowCount','Invalid\x20worksheet\x20nested\x20cell.','attributes','name','sort','utf8','text','bottom','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','parseText','integer','exceljs/lib/xlsx/xform/book/defined-name-xform.js','worksheets','modifierId','doctype','Invalid\x20worksheet\x20coordinate.','MAX_SAFE_INTEGER','readEntry','opentag','trim','hex','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','row','parseClose','model','3994830nwqSbf','Invalid\x20ZIP\x20local\x20file\x20header.','Requested\x20worksheet\x20does\x20not\x20exist.','mapping','definedName','uploadFields','getRow','1236062yDTTTd','date','\x20columns.','./reader/readerFor','hiddenRow','Invalid\x20XLSX\x20entry.','fileCommentRaw','Required\x20value\x20is\x20missing.','versionMadeBy','isSafeInteger','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','data','openReadStream','appCode','readUInt32LE','right','stringify','add','write','localeCompare','decodeEx','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','map','Image\x20XML\x20node\x20budget\x20exceeded.','update','fileNameRaw','abs','digest','error','startsWith','batchSize','extname','size','serial_number','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','value','METADATA','fromBuffer','processAttributes','repeat','Worksheet\x20exceeds\x20','required','equals','readEntryCursor','handleUTF8','./utf8','result','nativeCell','Invalid\x20worksheet\x20merge\x20reference.','filter','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','image/jpeg','Invalid\x20worksheet\x20column\x20range.','parserVersion','parseOpen','405785pUtgWZ','isFile','mergeCell','message','creatorName','Invalid\x20worksheet\x20XML.','Invalid\x20dataset\x20field\x20extension\x20metadata.','Invalid\x20worksheet\x20hyperlink\x20reference.','source','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','merges','code','20VnmdUb','from','split','jszip','2636864whxDUY','sharedFormula','isBuffer','slice','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','dataset','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','isArray','end','updateTime','Required\x20image\x20value\x20is\x20missing.','top','File\x20is\x20not\x20an\x20XLSX\x20workbook.','file','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','type','original','Invalid\x20worksheet\x20XML:\x20','Unknown\x20Excel\x20header:\x20','bitFlag','values','Worksheet\x20merge\x20work\x20exceeds\x20100000.','Invalid\x20ZIP\x20central\x20directory\x20layout.','address','upload','textarea','object','Unsupported\x20field\x20type:\x20','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','warnings','hidden','reference','columnCount','sourceType','every','max','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','./zipEntry','formula','some','entries','push','extraFieldRaw','set','Worksheet\x20exceeds\x2016384\x20columns.','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','48HsxFYS','find','length','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','Merged\x20cells\x20are\x20not\x20supported.','parseInt','Dataset\x20field\x20metadata\x20is\x20missing.','isInteger','contentHash','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','compressedSize','Cell\x20exceeds\x2064\x20KB.','resolve','Unknown\x20or\x20generated\x20mapping\x20field:\x20','relativeOffsetOfLocalHeader','boolean','Duplicate\x20mapping\x20target:\x20','close','jpg','eachCell','Non-canonical\x20worksheet\x20ZIP\x20entry.','Image\x20XML\x20event\x20budget\x20exceeded.','5115456HXCflV','generated','Required\x20field\x20is\x20not\x20mapped:\x20'];a140_0x2645=function(){return _0x21ee4c;};return a140_0x2645();}function convert(_0x39d604,_0x3d8f93){const _0x354e99=a140_0x218a30;if(_0x39d604===null||_0x39d604===undefined||_0x39d604===''){if(_0x3d8f93['required']&&!_0x3d8f93[_0x354e99(0x1d3)])throw new Error(_0x354e99(0x240));return null;}if(typeof _0x39d604===_0x354e99(0x206)&&Buffer[_0x354e99(0x20e)](_0x39d604,_0x354e99(0x21e))>MAX_CELL)throw new Error(_0x354e99(0x2bb));switch(_0x3d8f93[_0x354e99(0x291)][_0x354e99(0x1e7)]()){case _0x354e99(0x206):case'text':case _0x354e99(0x29b):if(typeof _0x39d604!==_0x354e99(0x206))throw new Error('Expected\x20a\x20text\x20cell.');return _0x39d604;case'number':case'decimal':case _0x354e99(0x223):if(typeof _0x39d604!==_0x354e99(0x20a)||!Number['isFinite'](_0x39d604)||Math[_0x354e99(0x253)](_0x39d604)>Number[_0x354e99(0x229)]||_0x3d8f93['type'][_0x354e99(0x1e7)]()===_0x354e99(0x223)&&!Number[_0x354e99(0x2b7)](_0x39d604))throw new Error(_0x354e99(0x27a));return _0x39d604;case _0x354e99(0x1cb):if(typeof _0x39d604!=='boolean')throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39d604;case _0x354e99(0x23a):case'datetime':if(!(_0x39d604 instanceof Date)||!Number['isFinite'](_0x39d604[_0x354e99(0x1fd)]()))throw new Error(_0x354e99(0x1e5));return _0x39d604[_0x354e99(0x1fd)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x3d8f93['type']+'.');}}export async function buildExcelManifest(_0x27b427){const _0x5bae79=a140_0x218a30,_0x406bc5=_0x27b427[_0x5bae79(0x1e9)]??0x1;if(!Number['isInteger'](_0x406bc5)||_0x406bc5<0x1||_0x406bc5>MAX_ROWS)throw new Error(_0x5bae79(0x243));if(_0x27b427[_0x5bae79(0x257)]!==undefined&&(!Number[_0x5bae79(0x2b7)](_0x27b427['batchSize'])||_0x27b427['batchSize']<0x1||_0x27b427[_0x5bae79(0x257)]>0x3e8))throw new Error(_0x5bae79(0x26b));if(a140_0x184eec[_0x5bae79(0x258)](_0x27b427[_0x5bae79(0x28f)])[_0x5bae79(0x1e7)]()!==_0x5bae79(0x1f2))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x26f973=await stat(_0x27b427[_0x5bae79(0x28f)]);if(!_0x26f973[_0x5bae79(0x271)]()||_0x26f973['size']>MAX_FILE)throw new Error(_0x5bae79(0x279));const _0x1e5d86=await readFile(_0x27b427[_0x5bae79(0x28f)]);if(_0x1e5d86[_0x5bae79(0x2b2)]>MAX_FILE)throw new Error(_0x5bae79(0x1ff));const _0x4b4a37=_0x27b427[_0x5bae79(0x20f)][_0x5bae79(0x2a9)](_0x3e6b17=>isImageContainer(_0x3e6b17['type'])&&Object[_0x5bae79(0x296)](_0x27b427['mapping'])[_0x5bae79(0x1f4)](_0x3e6b17[_0x5bae79(0x27d)]))?new Map():undefined;await checkArchive(_0x1e5d86,_0x4b4a37);const _0x4f4ff9=new a140_0x2b3ab8['Workbook']();await _0x4f4ff9['xlsx'][_0x5bae79(0x1e3)](_0x1e5d86,{'ignoreNodes':[_0x5bae79(0x1f6)]});const _0x1005b2=_0x27b427[_0x5bae79(0x1ee)];let _0x227b2a;if(_0x1005b2===undefined)_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][0x0];else{if(typeof _0x1005b2===_0x5bae79(0x206)&&_0x4f4ff9[_0x5bae79(0x225)][_0x5bae79(0x2a9)](_0xd897e1=>_0xd897e1[_0x5bae79(0x21c)]===_0x1005b2))_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][_0x5bae79(0x2b1)](_0xff6ec8=>_0xff6ec8[_0x5bae79(0x21c)]===_0x1005b2);else{if(typeof _0x1005b2==='number'||/^\d+$/[_0x5bae79(0x215)](_0x1005b2)){const _0x2e2611=Number(_0x1005b2);if(!Number[_0x5bae79(0x2b7)](_0x2e2611)||_0x2e2611<0x1)throw new Error(_0x5bae79(0x1e2));_0x227b2a=_0x4f4ff9[_0x5bae79(0x225)][_0x2e2611-0x1];}else _0x227b2a=_0x4f4ff9[_0x5bae79(0x225)]['find'](_0x37b7d4=>_0x37b7d4[_0x5bae79(0x21c)]===_0x1005b2);}}if(!_0x227b2a)throw new Error(_0x5bae79(0x234));if(_0x227b2a[_0x5bae79(0x219)]>MAX_ROWS||_0x227b2a[_0x5bae79(0x2a2)]>MAX_COLUMNS)throw new Error(_0x5bae79(0x2af));if((_0x227b2a['model'][_0x5bae79(0x27c)]??[])['length'])throw new Error(_0x5bae79(0x2b4));const _0x1e9342=new Map();_0x227b2a[_0x5bae79(0x238)](_0x406bc5)[_0x5bae79(0x1cf)]((_0x4e75a2,_0x590da1)=>{const _0x2d74e7=_0x5bae79,_0x877ec5=valueOf(_0x4e75a2);if(typeof _0x877ec5!==_0x2d74e7(0x206)||!_0x877ec5[_0x2d74e7(0x22c)]()||Buffer[_0x2d74e7(0x20e)](_0x877ec5)>MAX_CELL)throw new Error(_0x2d74e7(0x288));if(_0x1e9342[_0x2d74e7(0x20d)](_0x877ec5))throw new Error(_0x2d74e7(0x217)+_0x877ec5+'.');_0x1e9342[_0x2d74e7(0x2ad)](_0x877ec5,_0x590da1);});const _0x187976=Object[_0x5bae79(0x2aa)](_0x27b427[_0x5bae79(0x235)]);if(!_0x187976[_0x5bae79(0x2b2)])throw new Error(_0x5bae79(0x1ea));const _0x5e5817=new Map(_0x27b427['fields'][_0x5bae79(0x24f)](_0x5601c8=>[_0x5601c8['code'],_0x5601c8]));if(_0x5e5817[_0x5bae79(0x259)]!==_0x27b427[_0x5bae79(0x20f)][_0x5bae79(0x2b2)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x27b427[_0x5bae79(0x20f)]['some'](_0x3aa5ce=>_0x3aa5ce[_0x5bae79(0x291)][_0x5bae79(0x1e7)]()===_0x5bae79(0x25a)))throw new Error(_0x5bae79(0x24e));const _0x49532b=new Set();for(const [_0x360ac2,_0x4fc02c]of _0x187976){const _0x224d09=_0x5e5817[_0x5bae79(0x214)](_0x4fc02c);if(!_0x1e9342[_0x5bae79(0x20d)](_0x360ac2))throw new Error(_0x5bae79(0x294)+_0x360ac2+'.');if(!_0x224d09||RESERVED[_0x5bae79(0x20d)](_0x4fc02c)||_0x224d09[_0x5bae79(0x1d3)])throw new Error(_0x5bae79(0x1c9)+_0x4fc02c+'.');if(_0x49532b[_0x5bae79(0x20d)](_0x4fc02c))throw new Error(_0x5bae79(0x1cc)+_0x4fc02c+'.');if(!TYPES['has'](_0x224d09['type'][_0x5bae79(0x1e7)]()))throw new Error(_0x5bae79(0x29d)+_0x224d09[_0x5bae79(0x291)]+'.');_0x49532b[_0x5bae79(0x24a)](_0x4fc02c);}for(const _0x960580 of _0x27b427['fields']){if(_0x960580[_0x5bae79(0x262)]&&!_0x960580[_0x5bae79(0x1d3)]&&!RESERVED[_0x5bae79(0x20d)](_0x960580[_0x5bae79(0x27d)])&&!_0x49532b[_0x5bae79(0x20d)](_0x960580[_0x5bae79(0x27d)]))throw new Error(_0x5bae79(0x1d4)+_0x960580[_0x5bae79(0x27d)]+'.');}const _0x31f82c={'fileHash':hash(_0x1e5d86),'mappingHash':hash(JSON[_0x5bae79(0x249)]([..._0x187976]['sort'](([_0x224278],[_0x7f3487])=>_0x224278[_0x5bae79(0x24c)](_0x7f3487)))),'schemaHash':hash(JSON[_0x5bae79(0x249)]([..._0x27b427[_0x5bae79(0x20f)]][_0x5bae79(0x21d)]((_0xdf9dfa,_0x3b92fa)=>_0xdf9dfa[_0x5bae79(0x27d)][_0x5bae79(0x24c)](_0x3b92fa[_0x5bae79(0x27d)])))),'sheet':_0x227b2a[_0x5bae79(0x21c)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3c95b5=_0x187976[_0x5bae79(0x26a)](([,_0x206ef0])=>isImageContainer(_0x5e5817[_0x5bae79(0x214)](_0x206ef0)[_0x5bae79(0x291)])),_0x4d979b=_0x3c95b5['filter'](([,_0xd3f234])=>_0x5e5817[_0x5bae79(0x214)](_0xd3f234)[_0x5bae79(0x291)]['toLowerCase']()==='upload')[_0x5bae79(0x24f)](([,_0x2d754f])=>_0x2d754f);if(_0x4d979b[_0x5bae79(0x2b2)])_0x31f82c[_0x5bae79(0x237)]=_0x4d979b;const _0x121998=_0x4b4a37?resolveWorksheetImages(_0x4b4a37,_0x227b2a[_0x5bae79(0x21c)],new Set(_0x3c95b5['map'](([_0x2fc3e0])=>_0x1e9342[_0x5bae79(0x214)](_0x2fc3e0)))):[],_0x13a576=new Map();for(const _0xb6e9bc of _0x121998){const _0x3b5aa4=_0xb6e9bc['row']+':'+_0xb6e9bc[_0x5bae79(0x1e0)],_0x6ccdc9=_0x13a576[_0x5bae79(0x214)](_0x3b5aa4)??[];_0x6ccdc9['push'](_0xb6e9bc),_0x13a576[_0x5bae79(0x2ad)](_0x3b5aa4,_0x6ccdc9);}const _0x5db161=new Map();let _0x247dfa=0x0;_0x3c95b5[_0x5bae79(0x2b2)]&&(_0x31f82c[_0x5bae79(0x1e6)]=_0x3c95b5['map'](([,_0x4be98])=>_0x4be98),_0x31f82c[_0x5bae79(0x1fa)]=[],_0x31f82c[_0x5bae79(0x26e)]=0x1,_0x31f82c[_0x5bae79(0x1de)]=[]);const _0x178261=Math[_0x5bae79(0x2a5)](0x0,..._0x121998['map'](_0x556332=>_0x556332[_0x5bae79(0x22f)]));let _0x162c7a=0x0;const _0x5c18f6=new Set(_0x187976['map'](([_0x1fff3f])=>_0x1e9342['get'](_0x1fff3f)));for(let _0x9be4cd=_0x406bc5+0x1;_0x9be4cd<=Math[_0x5bae79(0x2a5)](_0x227b2a[_0x5bae79(0x219)],_0x178261);_0x9be4cd++){const _0x3e0891=_0x227b2a[_0x5bae79(0x238)](_0x9be4cd);if(_0x3e0891[_0x5bae79(0x2a0)]||_0x121998['some'](_0x1a2d5c=>_0x1a2d5c[_0x5bae79(0x22f)]===_0x9be4cd&&_0x1a2d5c[_0x5bae79(0x23d)]))_0x162c7a++;let _0x375038=_0x121998[_0x5bae79(0x2a9)](_0x24a2d0=>_0x24a2d0['row']===_0x9be4cd);_0x3e0891[_0x5bae79(0x1cf)](_0x49298a=>{const _0x3f4e29=_0x5bae79;if(_0x49298a[_0x3f4e29(0x25c)]!==null&&_0x49298a[_0x3f4e29(0x25c)]!==undefined&&_0x49298a['value']!=='')_0x375038=!![];});if(!_0x375038){_0x31f82c['emptyRows'][_0x5bae79(0x2ab)](_0x9be4cd);continue;}const _0xbbb35e=Object[_0x5bae79(0x1d8)](null);_0x3e0891[_0x5bae79(0x1cf)]((_0x38e2f9,_0x323d01)=>{const _0x38b578=_0x5bae79;if(_0x5c18f6['has'](_0x323d01))return;try{const _0x29fe13=valueOf(_0x38e2f9);if(typeof _0x29fe13==='string'&&Buffer[_0x38b578(0x20e)](_0x29fe13,'utf8')>MAX_CELL)throw new Error(_0x38b578(0x2bb));}catch(_0x34c141){_0x31f82c['errors'][_0x38b578(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x38e2f9[_0x38b578(0x299)],'message':_0x34c141[_0x38b578(0x273)]});}});for(const [_0x55ba69,_0x933ace]of _0x187976){try{const _0x491097=_0x3e0891[_0x5bae79(0x202)](_0x1e9342[_0x5bae79(0x214)](_0x55ba69)),_0x2f25f7=_0x5e5817['get'](_0x933ace);if(!isImageContainer(_0x2f25f7[_0x5bae79(0x291)])){_0xbbb35e[_0x933ace]=convert(valueOf(_0x491097),_0x2f25f7);continue;}const _0x3c3994=_0x13a576[_0x5bae79(0x214)](_0x9be4cd+':'+_0x1e9342['get'](_0x55ba69))??[];if(_0x3c3994['some'](_0x372403=>_0x372403[_0x5bae79(0x255)]))throw Error(_0x3c3994[_0x5bae79(0x2b1)](_0x288ac7=>_0x288ac7['error'])[_0x5bae79(0x255)]);if(_0x491097[_0x5bae79(0x25c)]!=null&&_0x491097[_0x5bae79(0x25c)]!==''&&!_0x3c3994[_0x5bae79(0x2a9)](_0x13b61a=>_0x13b61a[_0x5bae79(0x268)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x2679fe=[];for(const _0x4d07fd of _0x3c3994)for(const _0x444967 of _0x4d07fd[_0x5bae79(0x1de)]){const _0xbea1f8=_0x4b4a37[_0x5bae79(0x214)](_0x444967);if(!_0xbea1f8)throw Error(_0x5bae79(0x1fe)+_0x444967+'.');const _0x3756e0=hash(_0xbea1f8),_0xd64f23=_0x5db161['get'](_0x3756e0)??validateImageBytes(_0xbea1f8);if(!_0x5db161[_0x5bae79(0x20d)](_0xd64f23['contentHash'])){_0x247dfa+=_0xd64f23[_0x5bae79(0x259)];if(_0x247dfa>0x32*0x400*0x400)throw Error(_0x5bae79(0x2b3));_0x5db161['set'](_0xd64f23['contentHash'],_0xd64f23);}_0x2679fe[_0x5bae79(0x2ab)](_0xd64f23[_0x5bae79(0x2b8)]);}if(!_0x2679fe[_0x5bae79(0x2b2)]&&_0x2f25f7['required'])throw Error(_0x5bae79(0x28c));if(_0x2679fe['length'])_0x31f82c['imageCells'][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x933ace,'hashes':_0x2679fe});_0xbbb35e[_0x933ace]=_0x2679fe[_0x5bae79(0x24f)](_0x4673ac=>{const _0x20e6fb=_0x5bae79,_0x56a8fe=_0x5db161['get'](_0x4673ac),_0x1049e8=_0x56a8fe['type']===_0x20e6fb(0x26c)?_0x20e6fb(0x1ce):_0x56a8fe[_0x20e6fb(0x291)][_0x20e6fb(0x285)](0x6),_0x4f7df4=_0x4673ac+'.'+_0x1049e8,_0x184e7d='dataset-import/'+'0'[_0x20e6fb(0x260)](0x40)+'/'+_0x4f7df4;return _0x2f25f7[_0x20e6fb(0x291)][_0x20e6fb(0x1e7)]()===_0x20e6fb(0x29a)?{'fileName':_0x4f7df4,'filePath':_0x184e7d}:{'key':_0x184e7d,'name':_0x4f7df4,'type':_0x56a8fe[_0x20e6fb(0x291)],'size':_0x56a8fe[_0x20e6fb(0x259)]};});}catch(_0x33181d){_0x31f82c[_0x5bae79(0x1f0)][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'field':_0x933ace,'message':_0x33181d[_0x5bae79(0x273)]});}}_0x31f82c[_0x5bae79(0x1e4)][_0x5bae79(0x2ab)]({'rowNumber':_0x9be4cd,'values':_0xbbb35e});}if(_0x31f82c[_0x5bae79(0x1de)])_0x31f82c[_0x5bae79(0x1de)]=[..._0x5db161['values']()];if(_0x162c7a)_0x31f82c[_0x5bae79(0x29f)][_0x5bae79(0x2ab)](_0x162c7a+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x31f82c;}
|
|
1
|
+
const a140_0x1fec59=a140_0x53c0;(function(_0x577f38,_0x2f5101){const _0x78a6ef=a140_0x53c0,_0x336c1a=_0x577f38();while(!![]){try{const _0x39a620=parseInt(_0x78a6ef(0x133))/0x1+parseInt(_0x78a6ef(0x11d))/0x2*(parseInt(_0x78a6ef(0x12c))/0x3)+parseInt(_0x78a6ef(0x10b))/0x4*(-parseInt(_0x78a6ef(0xdd))/0x5)+parseInt(_0x78a6ef(0x18d))/0x6*(-parseInt(_0x78a6ef(0x107))/0x7)+parseInt(_0x78a6ef(0x190))/0x8*(parseInt(_0x78a6ef(0xe2))/0x9)+-parseInt(_0x78a6ef(0x1ad))/0xa+parseInt(_0x78a6ef(0x10f))/0xb;if(_0x39a620===_0x2f5101)break;else _0x336c1a['push'](_0x336c1a['shift']());}catch(_0x894bbc){_0x336c1a['push'](_0x336c1a['shift']());}}}(a140_0x22ab,0x7c430));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';function a140_0x53c0(_0x261b90,_0x4bf962){_0x261b90=_0x261b90-0xcc;const _0x22ab87=a140_0x22ab();let _0x53c02e=_0x22ab87[_0x261b90];return _0x53c02e;}import a140_0x2dbcf2 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0x55d702 from'exceljs';import a140_0x32ce1f 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',a140_0x1fec59(0xeb),a140_0x1fec59(0x19d),'datasetId',a140_0x1fec59(0xff),'creatorName','modifierId',a140_0x1fec59(0x136),a140_0x1fec59(0x178),'updateTime',a140_0x1fec59(0x184)]),TYPES=new Set([a140_0x1fec59(0x15e),a140_0x1fec59(0xd6),a140_0x1fec59(0x13a),a140_0x1fec59(0x194),a140_0x1fec59(0x16b),a140_0x1fec59(0xe9),a140_0x1fec59(0x135),a140_0x1fec59(0x124),a140_0x1fec59(0x17a),'image',a140_0x1fec59(0xd9)]),isImageContainer=_0x97817f=>[a140_0x1fec59(0xe8),a140_0x1fec59(0xd9)][a140_0x1fec59(0x192)](_0x97817f[a140_0x1fec59(0x11f)]()),hash=_0xb7ade0=>createHash(a140_0x1fec59(0x1a5))['update'](_0xb7ade0)[a140_0x1fec59(0x13d)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require('exceljs/lib/utils/col-cache.js'),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x1fec59(0xcd)]('exceljs')),zipRequire=createRequire(excelRequire[a140_0x1fec59(0xcd)](a140_0x1fec59(0xd0))),ZipEntry=zipRequire(a140_0x1fec59(0x149)),zipReader=zipRequire(a140_0x1fec59(0xd2)),zipUtf8=zipRequire(a140_0x1fec59(0xdc)),zipPaths=zipRequire(a140_0x1fec59(0x175));function a140_0x22ab(){const _0x7abb8d=['batchSize\x20must\x20be\x20between\x201\x20and\x201000.','fileCommentRaw','METADATA','isFinite','7441970iYPZKs','processAttributes','xl/workbook.xml','resolve','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','opentag','jszip','batchSize','./reader/readerFor','mapping','autoIncrement','Invalid\x20worksheet\x20column\x20range.','text','errors','error','upload','Worksheet\x20coordinate\x20exceeds\x20','Expected\x20a\x20text\x20cell.','./utf8','3518860OrhmVl','destroy','set','exec','object','1094562VHxfrT','attributes','Invalid\x20XLSX\x20archive.','isBuffer','extraFieldRaw','right','image','integer','Invalid\x20dataset\x20field\x20extension\x20metadata.','tenantCode','merges','Expected\x20an\x20Excel\x20date\x20cell.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','push','max','lastIndexOf','charCodeAt','filter','Invalid\x20worksheet\x20hyperlink\x20reference.','from','Non-canonical\x20worksheet\x20ZIP\x20entry.','repeat','Invalid\x20worksheet\x20nested\x20row.','getCell','jpg','fileName','Duplicate\x20dataset\x20field\x20codes.','warnings','trim','creatorId','entries','write','Cell\x20exceeds\x2064\x20KB.','cells','close','versionMadeBy','MAX_SAFE_INTEGER','5670WNuqxp','extname','Duplicate\x20mapping\x20target:\x20','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','4zfpbma','Duplicate\x20workbook\x20ZIP\x20entry.','fileNameRaw','source','9749663cryfgo','Unknown\x20or\x20generated\x20mapping\x20field:\x20','isArray','fields','map','xlsx','before','dataset','definedName','rowCount','ref','required','dataset-import/','col','318566EVPFep','nativeCell','toLowerCase','worksheets','byteLength','length','Expected\x20a\x20boolean\x20cell.','date','readExtraFields','readUInt32LE','original','relativeOffsetOfLocalHeader','parserVersion','pop','result','3KYsVbf','concat','generated','readUInt16LE','values','serial_number','sourceType','995215aFASCE','every','boolean','modifierName','localeCompare','XML\x20DTD/entities\x20are\x20not\x20supported.','parseText','textarea','decodeEx','materialized','digest','doctype','imageCells','row','utf8','some','Invalid\x20worksheet\x20coordinate.','isSafeInteger','Required\x20value\x20is\x20missing.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','uploadFields','Worksheet\x20exceeds\x2016384\x20columns.','./zipEntry','rows','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','name','subarray','file','Worksheet\x20exceeds\x20','compressedSize','Invalid\x20XLSX\x20entry.','size','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','top','find','readBigUInt64LE','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','isInteger','abs','hiddenRow','handleUTF8','utf8decode','string','Invalid\x20worksheet\x20merge\x20reference.','reference','fromBuffer','externalFileAttributes','media','unixPermissions','code','test','entry','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','contentHash','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','decimal','bottom','add','Unsupported\x20field\x20type:\x20','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','load','address','Invalid\x20ZIP\x20central\x20directory\x20layout.','./utils','stringify','parseInt','createTime','slice','datetime','parse','hidden','type','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','split','parseOpen','image/jpeg','headerRow','fileComment','deleted','parseClose','has','Image\x20XML\x20event\x20budget\x20exceeded.','dataValidations','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','readEntryCursor','dir','Only\x20.xlsx\x20files\x20are\x20supported.','3324ozTvud','readEntry','File\x20is\x20not\x20an\x20XLSX\x20workbook.','24uwMOcI','create','includes','Worksheet\x20column\x20objects\x20exceed\x20100000.','number','getRow','model','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Missing\x20image\x20media:\x20','closetag','sort','equals','get','appCode','Unknown\x20Excel\x20header:\x20','openReadStream','startsWith','value','Duplicate\x20header:\x20','Invalid\x20ZIP\x20local\x20file\x20header.','mergeCell','sha256','end','message','eachCell'];a140_0x22ab=function(){return _0x7abb8d;};return a140_0x22ab();}function centralDirectoryEnd(_0x559ce4,_0x32def6){const _0x455da3=a140_0x1fec59,_0x3d489e=()=>new Error(_0x455da3(0x174)),_0xe8bad5=_0x559ce4[_0x455da3(0xf1)](Buffer[_0x455da3(0xf5)]([0x50,0x4b,0x5,0x6]));if(_0xe8bad5<0x0||_0xe8bad5+0x16>_0x559ce4[_0x455da3(0x122)]||_0xe8bad5+0x16+_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x14)!==_0x559ce4['length'])throw _0x3d489e();let _0x53588=_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0xa),_0x3b6c31=_0x559ce4[_0x455da3(0x126)](_0xe8bad5+0xc),_0x15bd3b=_0x559ce4[_0x455da3(0x126)](_0xe8bad5+0x10),_0x2b74c0=_0xe8bad5;const _0x279417=_0xe8bad5-0x14,_0x5f52a5=_0x279417>=0x0&&_0x559ce4[_0x455da3(0x126)](_0x279417)===0x7064b50,_0x4f5b9d=[0x4,0x6,0x8,0xa][_0x455da3(0x142)](_0x31f12f=>_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+_0x31f12f)===0xffff)||_0x3b6c31===0xffffffff||_0x15bd3b===0xffffffff;if(_0x5f52a5!==_0x4f5b9d)throw _0x3d489e();if(_0x5f52a5){if(_0x559ce4[_0x455da3(0xf1)](Buffer[_0x455da3(0xf5)]([0x50,0x4b,0x6,0x7]))!==_0x279417)throw _0x3d489e();const _0x42d72b=_0x136393=>{const _0x1e5918=_0x455da3,_0x386b84=Number(_0x559ce4[_0x1e5918(0x156)](_0x136393));if(!Number[_0x1e5918(0x144)](_0x386b84))throw _0x3d489e();return _0x386b84;};_0x2b74c0=_0x42d72b(_0x279417+0x8);if(_0x559ce4['readUInt32LE'](_0x279417+0x4)!==0x0||_0x559ce4[_0x455da3(0x126)](_0x279417+0x10)!==0x1||_0x2b74c0>_0x279417-0x38||_0x559ce4[_0x455da3(0x126)](_0x2b74c0)!==0x6064b50||_0x42d72b(_0x2b74c0+0x4)!==0x2c||_0x2b74c0+0x38!==_0x279417||_0x559ce4['readUInt32LE'](_0x2b74c0+0x10)!==0x0||_0x559ce4[_0x455da3(0x126)](_0x2b74c0+0x14)!==0x0)throw _0x3d489e();_0x53588=_0x42d72b(_0x2b74c0+0x20),_0x3b6c31=_0x42d72b(_0x2b74c0+0x28),_0x15bd3b=_0x42d72b(_0x2b74c0+0x30);if(_0x42d72b(_0x2b74c0+0x18)!==_0x53588)throw _0x3d489e();}else{if(_0x559ce4['readUInt16LE'](_0xe8bad5+0x4)!==0x0||_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x6)!==0x0||_0x559ce4[_0x455da3(0x12f)](_0xe8bad5+0x8)!==_0x53588)throw _0x3d489e();}const _0x44f6d8=_0x32def6[_0x455da3(0x18a)];if(_0x15bd3b!==_0x44f6d8||_0x53588!==_0x32def6['entryCount']||_0x15bd3b+_0x3b6c31!==_0x2b74c0)throw _0x3d489e();return _0x2b74c0;}function consumerEntryName(_0x2f73fc,_0x5e9010){const _0x285c61=a140_0x1fec59;if(_0x5e9010['extraFields'][_0x285c61(0xf3)](_0x13a85c=>_0x13a85c['id']===0x1)[_0x285c61(0x122)]>0x1)throw new Error(_0x285c61(0x158));const _0x27928c=_0x5e9010,_0xd0496b=_0x5e9010[_0x285c61(0x128)];if(!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0x10d)])||!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0xe6)])||!Buffer[_0x285c61(0xe5)](_0x27928c[_0x285c61(0x1aa)])||!Number[_0x285c61(0x144)](_0xd0496b)||_0xd0496b<0x0||_0xd0496b>_0x2f73fc[_0x285c61(0x122)]-0x1e||_0x2f73fc[_0x285c61(0x126)](_0xd0496b)!==0x4034b50)throw new Error(_0x285c61(0x1a3));const _0x3099bd=_0xd0496b+0x1e+_0x2f73fc['readUInt16LE'](_0xd0496b+0x1a),_0x1c2631=_0x3099bd+_0x2f73fc[_0x285c61(0x12f)](_0xd0496b+0x1c)+_0x5e9010[_0x285c61(0x150)];if(!Number[_0x285c61(0x144)](_0x1c2631)||_0x1c2631>_0x2f73fc[_0x285c61(0x122)])throw new Error('Invalid\x20ZIP\x20local\x20file\x20header.');if(_0x3099bd>_0x2f73fc[_0x285c61(0x122)]||!_0x2f73fc[_0x285c61(0x14d)](_0xd0496b+0x1e,_0x3099bd)[_0x285c61(0x19b)](_0x27928c[_0x285c61(0x10d)]))throw new Error('ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.');const _0x41e4ae=new ZipEntry({},{'decodeFileName':zipUtf8[_0x285c61(0x15d)]});_0x41e4ae['bitFlag']=_0x5e9010['generalPurposeBitFlag'],_0x41e4ae[_0x285c61(0xfb)]=_0x27928c['fileNameRaw'],_0x41e4ae[_0x285c61(0x183)]=_0x27928c[_0x285c61(0x1aa)],_0x41e4ae['extraFieldsLength']=_0x27928c[_0x285c61(0xe6)][_0x285c61(0x122)],_0x41e4ae[_0x285c61(0x125)](zipReader(_0x27928c['extraFieldRaw'])),_0x41e4ae[_0x285c61(0x15c)](),_0x41e4ae[_0x285c61(0x105)]=_0x5e9010[_0x285c61(0x105)],_0x41e4ae['externalFileAttributes']=_0x5e9010[_0x285c61(0x162)],_0x41e4ae[_0x285c61(0x1ae)]();const _0x2dedcf=_0x41e4ae[_0x285c61(0x18b)]||Boolean((_0x41e4ae[_0x285c61(0x164)]??0x0)&0x4000),_0xfb3fa6=zipPaths[_0x285c61(0xcd)](_0x41e4ae['fileNameStr']),_0x50c060=_0xfb3fa6[_0x285c61(0x1a0)]('/')?_0xfb3fa6[_0x285c61(0x179)](0x1):_0xfb3fa6;return{'name':_0x50c060,'original':_0x41e4ae['fileNameStr'],'directory':_0x2dedcf};}export function normalizeImportFields(_0x29353a){const _0x10acec=a140_0x1fec59;if(!_0x29353a||(_0x29353a[_0x10acec(0x10e)]??_0x29353a[_0x10acec(0x116)]?.[_0x10acec(0x132)])!==_0x10acec(0x1ab))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x59ea62=Array[_0x10acec(0x111)](_0x29353a[_0x10acec(0x112)]),_0x2486b4=_0x59ea62?_0x29353a[_0x10acec(0x112)]:_0x29353a['properties'];if(!Array[_0x10acec(0x111)](_0x2486b4)||_0x2486b4[_0x10acec(0x122)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x88aac1=[],_0x1b8e4d=new Set();for(const _0x553213 of _0x2486b4){if(_0x553213[_0x10acec(0x184)]===!![])continue;let _0x148917=_0x553213['extend']??{};if(!_0x59ea62&&typeof _0x148917===_0x10acec(0x15e)){try{_0x148917=JSON[_0x10acec(0x17b)](_0x148917);}catch{throw new Error(_0x10acec(0xea));}if(!_0x148917||typeof _0x148917!=='object'||Array[_0x10acec(0x111)](_0x148917))throw new Error(_0x10acec(0xea));}const _0x327101=_0x59ea62?_0x553213[_0x10acec(0x14c)]:_0x553213[_0x10acec(0x165)],_0x4482ed=_0x59ea62?_0x553213['doType']:_0x553213[_0x10acec(0x17d)]??_0x553213['dataType'];if(typeof _0x327101!==_0x10acec(0x15e)||!_0x327101||typeof _0x4482ed!=='string'||_0x1b8e4d[_0x10acec(0x186)](_0x327101))throw new Error(_0x10acec(0xce));if(_0x4482ed['toLowerCase']()===_0x10acec(0x131))throw new Error(_0x10acec(0xee));_0x1b8e4d['add'](_0x327101);const _0x3f3bec=_0x59ea62?_0x553213:_0x148917,_0x263c32={'code':_0x327101,'type':_0x4482ed,'required':_0x3f3bec['required']===!![]};if(RESERVED[_0x10acec(0x186)](_0x327101)||_0x3f3bec[_0x10acec(0x12e)]===!![]||_0x3f3bec[_0x10acec(0xd4)]===!![])_0x263c32[_0x10acec(0x12e)]=!![];_0x88aac1['push'](_0x263c32);}return _0x88aac1;}async function checkArchive(_0x3346cd,_0x36164e){await new Promise((_0x1c7801,_0x351a40)=>{const _0x13e25c=a140_0x53c0;a140_0x32ce1f[_0x13e25c(0x161)](_0x3346cd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x229616,_0x53e0d5)=>{const _0x38ab75=_0x13e25c;if(_0x229616||!_0x53e0d5){_0x351a40(_0x229616??new Error(_0x38ab75(0xe4)));return;}let _0x24a25b;try{_0x24a25b=centralDirectoryEnd(_0x3346cd,_0x53e0d5);}catch(_0x42e5b8){_0x53e0d5[_0x38ab75(0x104)](),_0x351a40(_0x42e5b8);return;}let _0x3e3be8=0x0,_0x30dcbc=0x0,_0x2e46a1=0x0,_0x55d55f=0x0,_0x20bd57=0x0,_0x1761e3=0x0,_0x3cfbdc=0x0,_0x488ce9=0x0,_0x319e1d=0x0,_0x262156=![],_0xde2ab7;const _0x5a8452=new Set(),_0x3236c7=_0x14dc2e=>{const _0x25f355=_0x38ab75;if(_0x262156)return;_0x262156=!![],_0xde2ab7?.['destroy'](),_0x53e0d5[_0x25f355(0x104)](),_0x351a40(_0x14dc2e);},_0x134722=(_0x376dd9,_0x569f08)=>{const _0x13fbf1=_0x38ab75;if(!_0x376dd9||!/^\d+$/[_0x13fbf1(0x166)](_0x376dd9))throw new Error(_0x13fbf1(0x143));const _0x4378dd=Number(_0x376dd9);if(!Number['isSafeInteger'](_0x4378dd)||_0x4378dd<0x1||_0x4378dd>_0x569f08)throw new Error(_0x13fbf1(0xda)+_0x569f08+'.');return _0x4378dd;},_0x4019fe=(_0x39c8ba,_0xa7f615=MAX_XML_COLUMNS)=>{const _0x2fd11e=_0x38ab75,_0x2e6351=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x2fd11e(0xe0)](_0x39c8ba);if(!_0x2e6351)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x385d97=0x0;for(const _0x55ac28 of _0x2e6351[0x1])_0x385d97=_0x385d97*0x1a+_0x55ac28[_0x2fd11e(0xf2)](0x0)-0x40;if(_0x385d97>_0xa7f615)throw new Error(_0x2fd11e(0x14f)+_0xa7f615+'\x20columns.');return{'row':_0x134722(_0x2e6351[0x2],MAX_XML_ROWS),'col':_0x385d97};},_0x2d8a59=_0xe3737e=>{const _0x376f97=_0x38ab75;if(_0xe3737e['name']==='_xlnm.Print_Area'||_0xe3737e[_0x376f97(0x14c)]==='_xlnm.Print_Titles')return;for(const _0x4a6b86 of _0xe3737e['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x376f97(0x166)](_0x4a6b86[_0x376f97(0x17f)]('!')[_0x376f97(0x12a)]()||''))continue;const _0x262972=nameCoordinates[_0x376f97(0x13b)](_0x4a6b86),_0x397da0='top'in _0x262972,_0x4fd2d6=_0x397da0?[_0x262972[_0x376f97(0x154)],_0x262972[_0x376f97(0x16c)]]:[_0x262972[_0x376f97(0x140)]],_0x50b25c=_0x397da0?[_0x262972['left'],_0x262972[_0x376f97(0xe7)]]:[_0x262972[_0x376f97(0x11c)]],_0x1c166e=(_0x47106b,_0x552cbe)=>Number[_0x376f97(0x144)](_0x47106b)&&_0x47106b>=0x1&&_0x47106b<=_0x552cbe;if(!_0x4fd2d6[_0x376f97(0x134)](_0x5f0a26=>_0x1c166e(_0x5f0a26,MAX_XML_ROWS))||!_0x50b25c[_0x376f97(0x134)](_0x285bdb=>_0x1c166e(_0x285bdb,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x3cfbdc+=_0x397da0?(_0x262972[_0x376f97(0x16c)]-_0x262972[_0x376f97(0x154)]+0x1)*(_0x262972[_0x376f97(0xe7)]-_0x262972['left']+0x1):0x1;if(_0x3cfbdc>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x53e0d5['on'](_0x38ab75(0xd8),_0x3236c7),_0x53e0d5['on'](_0x38ab75(0x167),_0x21c5eb=>{const _0x5a5ae9=_0x38ab75;if(_0x262156)return;if(++_0x2e46a1>0x2710||(_0x3e3be8+=_0x21c5eb['uncompressedSize'])>MAX_EXPANDED){_0x3236c7(new Error(_0x5a5ae9(0x14b)));return;}let _0x53b4a1;try{_0x53b4a1=consumerEntryName(_0x3346cd,_0x21c5eb);}catch(_0x15e2f9){_0x3236c7(_0x15e2f9);return;}if(_0x53b4a1['directory']){_0x53e0d5['readEntry']();return;}const _0x2115fb=_0x53b4a1[_0x5a5ae9(0x14c)];if(_0x36164e&&(_0x2115fb!==_0x53b4a1[_0x5a5ae9(0x127)]||_0x5a8452['has'](_0x2115fb)||_0x2115fb[_0x5a5ae9(0x1a0)]('/')||_0x2115fb[_0x5a5ae9(0x192)]('\x5c'))){_0x3236c7(new Error(_0x5a5ae9(0x189)));return;}if(_0x2115fb!==_0x53b4a1['original']&&(_0x2115fb==='xl/workbook.xml'||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5a5ae9(0x166)](_0x2115fb))){_0x3236c7(new Error(_0x5a5ae9(0x157)));return;}const _0x39cc13=_0x2115fb===_0x5a5ae9(0xcc);if(_0x39cc13&&_0x5a8452['has'](_0x2115fb)){_0x3236c7(new Error(_0x5a5ae9(0x10c)));return;}_0x5a8452[_0x5a5ae9(0x16d)](_0x2115fb);const _0x4eedaa=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5a5ae9(0x166)](_0x2115fb);if(_0x4eedaa&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x2115fb)){_0x3236c7(new Error(_0x5a5ae9(0xf6)));return;}_0x53e0d5[_0x5a5ae9(0x19f)](_0x21c5eb,(_0x3a844e,_0x1c3db5)=>{const _0x43d077=_0x5a5ae9;if(_0x262156){_0x1c3db5?.[_0x43d077(0xde)]();return;}if(_0x3a844e||!_0x1c3db5){_0x3236c7(_0x3a844e??new Error(_0x43d077(0x151)));return;}_0xde2ab7=_0x1c3db5;const _0x5cacf7=_0x36164e?[]:undefined,_0x2c0515=_0x36164e&&/[.](xml|rels)$/[_0x43d077(0x166)](_0x2115fb)?new StringDecoder(_0x43d077(0x141)):undefined,_0x4599b1=_0x2c0515?new SaxesParser({'xmlns':![]}):undefined,_0x58079b=()=>{const _0x38385f=_0x43d077;if(++_0x319e1d>0x1e8480)throw Error(_0x38385f(0x187));};_0x4599b1?.['on'](_0x43d077(0x13e),()=>{const _0x44c5c4=_0x43d077;throw Error(_0x44c5c4(0x138));}),_0x4599b1?.['on'](_0x43d077(0xcf),()=>{_0x58079b();if(++_0x488ce9>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x4599b1?.['on'](_0x43d077(0xd6),_0x58079b),_0x4599b1?.['on'](_0x43d077(0x199),_0x58079b),_0x4599b1?.['on'](_0x43d077(0xd8),_0x405b63=>{throw _0x405b63;});const _0x48c40a=_0x4eedaa||_0x39cc13?new StringDecoder(_0x43d077(0x141)):undefined,_0x34ca8d=_0x4eedaa||_0x39cc13?new SaxesParser({'xmlns':![]}):undefined;let _0x33d08c,_0xb5d759=0x0,_0x56b0db=0x0,_0x434010,_0x55f3f8,_0x5ab892=![],_0xafd572=![],_0x27b052,_0x9eff10,_0xfd9dec,_0x559a48=![];const _0x50aaea=[],_0x210728=new Set();let _0xc9ef67;const _0x26844e=(_0x50032c,_0x58a38e=0x0)=>{const _0x2c3846=_0x43d077;_0x20bd57+=_0x58a38e+Math['max'](0x0,_0x50032c-_0x56b0db),_0x56b0db=Math[_0x2c3846(0xf0)](_0x56b0db,_0x50032c);if(_0x20bd57>MAX_ROWS)throw new Error(_0x2c3846(0x193));};_0x34ca8d?.['on']('opentag',_0x107466=>{const _0xc5a315=_0x43d077;if(_0x39cc13){if(!_0x33d08c&&_0x107466[_0xc5a315(0x14c)]===_0xc5a315(0x117))_0x33d08c=new DefinedNameXform();_0x33d08c?.[_0xc5a315(0x180)](_0x107466);return;}if(_0x107466[_0xc5a315(0x14c)]==='row'){if(_0xafd572)throw new Error(_0xc5a315(0xf8));_0x134722(_0x107466[_0xc5a315(0xe3)]['r'],MAX_XML_ROWS),_0x434010=undefined,_0xfd9dec=undefined,_0x559a48=![];}else{if(_0x107466['name']==='c'){if(_0xafd572)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xafd572=!![],_0x5ab892=Boolean(Number[_0xc5a315(0x177)](_0x107466[_0xc5a315(0xe3)]['s']??'',0xa)),_0xc9ef67=undefined,_0x27b052=_0x107466[_0xc5a315(0xe3)]['r']||undefined,_0x9eff10=_0x27b052?_0x4019fe(_0x27b052):undefined;if(_0x9eff10)_0x55f3f8=_0x9eff10;else _0x55f3f8=_0x434010?{'row':_0x434010['row'],'col':_0x434010[_0xc5a315(0x11c)]+0x1}:undefined;}else{if(_0xafd572&&['f','v','t'][_0xc5a315(0x192)](_0x107466[_0xc5a315(0x14c)])){_0xc9ef67=_0x107466['name'];if(_0x107466[_0xc5a315(0x14c)]==='f'&&_0x107466[_0xc5a315(0xe3)]['t'])_0x5ab892=!![];}else{if(_0xafd572&&_0x107466[_0xc5a315(0x14c)]==='r')_0x5ab892=!![];else{if(_0x107466[_0xc5a315(0x14c)]==='hyperlink'){const _0x1d1c34=_0x107466[_0xc5a315(0xe3)][_0xc5a315(0x119)];if(!_0x1d1c34)throw new Error(_0xc5a315(0xf4));const _0x27ba16=_0x1d1c34[_0xc5a315(0x17f)](':');if(_0x27ba16['length']>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0xeae7f2=_0x4019fe(_0x27ba16[0x0]),_0x4922cf=_0x4019fe(_0x27ba16[0x1]??_0x27ba16[0x0]);_0x210728[_0xc5a315(0x16d)](_0x1d1c34),_0x26844e(Math[_0xc5a315(0xf0)](_0xeae7f2[_0xc5a315(0x11c)],_0x4922cf[_0xc5a315(0x11c)]),0x1);}else{if(_0x107466['name']===_0xc5a315(0x11c)){const _0x29545c=_0x134722(_0x107466[_0xc5a315(0xe3)]['min'],0x4000),_0x38d7be=_0x134722(_0x107466['attributes'][_0xc5a315(0xf0)],0x4000);if(_0x29545c>_0x38d7be)throw new Error(_0xc5a315(0xd5));_0x26844e(_0x38d7be,0x1);}else{if(_0x107466['name']===_0xc5a315(0x1a4)){const _0x5401c2=_0x107466[_0xc5a315(0xe3)][_0xc5a315(0x119)];if(!_0x5401c2)throw new Error(_0xc5a315(0x15f));const _0x1d1265=_0x5401c2[_0xc5a315(0x17f)](':');if(_0x1d1265['length']>0x2)throw new Error(_0xc5a315(0x15f));const _0x16ca2d=_0x4019fe(_0x1d1265[0x0]),_0x1dd5b8=_0x4019fe(_0x1d1265[0x1]??_0x1d1265[0x0]);_0x26844e(Math[_0xc5a315(0xf0)](_0x16ca2d[_0xc5a315(0x11c)],_0x1dd5b8[_0xc5a315(0x11c)]));const _0x1c15b9=(Math[_0xc5a315(0x15a)](_0x1dd5b8['row']-_0x16ca2d[_0xc5a315(0x140)])+0x1)*(Math[_0xc5a315(0x15a)](_0x1dd5b8[_0xc5a315(0x11c)]-_0x16ca2d[_0xc5a315(0x11c)])+0x1);_0x55d55f+=_0x1c15b9+_0xb5d759++;if(_0x55d55f>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x34ca8d?.['on'](_0x43d077(0xd6),_0x5a8bcd=>{const _0x58e8df=_0x43d077;if(_0x39cc13){_0x33d08c?.[_0x58e8df(0x139)](_0x5a8bcd);return;}if(_0xafd572&&_0xc9ef67&&_0x5a8bcd)_0x5ab892=!![];}),_0x34ca8d?.['on'](_0x43d077(0x199),_0x2dbb78=>{const _0x132373=_0x43d077;if(_0x39cc13){_0x33d08c&&!_0x33d08c[_0x132373(0x185)]()&&(_0x2d8a59(_0x33d08c[_0x132373(0x196)]),_0x33d08c=undefined);return;}if(_0x2dbb78['name']==='c'){!_0x5ab892&&_0x27b052&&!_0xfd9dec&&(_0xfd9dec={'before':_0x434010,'cells':[]});if(_0xfd9dec){if(++_0x1761e3>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0xfd9dec[_0x132373(0x103)][_0x132373(0xef)]({'reference':_0x27b052,'address':_0x9eff10,'materialized':_0x5ab892});if(!_0x27b052&&_0x5ab892)_0x559a48=!![];}if(_0x5ab892){if(!_0xfd9dec||_0x27b052){if(!_0x55f3f8)throw new Error(_0x132373(0x10a));if(_0x55f3f8['col']>MAX_XML_COLUMNS)throw new Error(_0x132373(0x148));_0x26844e(_0x55f3f8['col']);}_0x434010=_0x55f3f8;}_0xafd572=![],_0x55f3f8=undefined,_0x27b052=undefined,_0x9eff10=undefined,_0xc9ef67=undefined;}else{if(_0x2dbb78[_0x132373(0x14c)]==='row'){if(_0xfd9dec&&_0x559a48)_0x50aaea['push'](_0xfd9dec);_0xfd9dec=undefined,_0x559a48=![];}else{if(_0x2dbb78['name']===_0xc9ef67)_0xc9ef67=undefined;}}}),_0x34ca8d?.['on']('error',_0x27cfbb=>{throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0x27cfbb['message']);}),_0x1c3db5['on']('error',_0x3236c7),_0x1c3db5['on']('data',_0x3bb7dd=>{const _0x28f121=_0x43d077;if(_0x262156)return;_0x30dcbc+=_0x3bb7dd[_0x28f121(0x122)],_0x5cacf7?.[_0x28f121(0xef)](_0x3bb7dd);if(_0x30dcbc>MAX_EXPANDED){_0x3236c7(new Error(_0x28f121(0x14b)));return;}try{if(_0x4599b1&&_0x2c0515)_0x4599b1[_0x28f121(0x101)](_0x2c0515[_0x28f121(0x101)](_0x3bb7dd));if(_0x34ca8d&&_0x48c40a)_0x34ca8d[_0x28f121(0x101)](_0x48c40a[_0x28f121(0x101)](_0x3bb7dd));}catch(_0x3b7074){_0x3236c7(_0x3b7074 instanceof Error?_0x3b7074:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x1c3db5['on'](_0x43d077(0x1a6),()=>{const _0x46738c=_0x43d077;if(_0x262156)return;try{if(_0x4599b1&&_0x2c0515)_0x4599b1[_0x46738c(0x101)](_0x2c0515[_0x46738c(0x1a6)]())[_0x46738c(0x104)]();if(_0x34ca8d&&_0x48c40a)_0x34ca8d[_0x46738c(0x101)](_0x48c40a['end']())[_0x46738c(0x104)]();for(const _0x2768b4 of _0x50aaea){let _0x335ec4=_0x2768b4[_0x46738c(0x115)];for(const _0x458b6e of _0x2768b4[_0x46738c(0x103)]){if(!_0x458b6e[_0x46738c(0x13c)]&&!(_0x458b6e[_0x46738c(0x160)]&&_0x210728[_0x46738c(0x186)](_0x458b6e[_0x46738c(0x160)])))continue;const _0x59a3f4=_0x458b6e[_0x46738c(0x173)]??(_0x335ec4?{'row':_0x335ec4[_0x46738c(0x140)],'col':_0x335ec4[_0x46738c(0x11c)]+0x1}:undefined);if(!_0x59a3f4)throw new Error(_0x46738c(0x10a));if(_0x59a3f4[_0x46738c(0x11c)]>MAX_XML_COLUMNS)throw new Error(_0x46738c(0x148));_0x26844e(_0x59a3f4[_0x46738c(0x11c)]),_0x335ec4=_0x59a3f4;}}_0x50aaea['length']=0x0,_0x210728['clear']();}catch(_0x492550){_0x3236c7(_0x492550 instanceof Error?_0x492550:new Error('Invalid\x20worksheet\x20XML.'));return;}if(_0x5cacf7)_0x36164e[_0x46738c(0xdf)](_0x2115fb,Buffer[_0x46738c(0x12d)](_0x5cacf7));_0xde2ab7=undefined,_0x53e0d5[_0x46738c(0x18e)]();});});}),_0x53e0d5['on'](_0x38ab75(0x1a6),()=>{const _0x23f18d=_0x38ab75;if(_0x262156)return;if(_0x53e0d5['readEntryCursor']!==_0x24a25b){_0x351a40(new Error(_0x23f18d(0x17e)));return;}if(!_0x5a8452['has']('[Content_Types].xml')||!_0x5a8452['has'](_0x23f18d(0xcc)))_0x351a40(new Error(_0x23f18d(0x18f)));else _0x1c7801();}),_0x53e0d5[_0x38ab75(0x18e)]();});});}function valueOf(_0x2b4ee2){const _0x4aed94=a140_0x1fec59,_0x2a57b4=_0x2b4ee2[_0x4aed94(0x1a1)];if(_0x2a57b4&&typeof _0x2a57b4===_0x4aed94(0xe1)&&('formula'in _0x2a57b4||'sharedFormula'in _0x2a57b4)){if(!(_0x4aed94(0x12b)in _0x2a57b4)||_0x2a57b4[_0x4aed94(0x12b)]===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x2a57b4[_0x4aed94(0x12b)];}return _0x2a57b4;}function convert(_0xd90548,_0x4be788){const _0x263efe=a140_0x1fec59;if(_0xd90548===null||_0xd90548===undefined||_0xd90548===''){if(_0x4be788[_0x263efe(0x11a)]&&!_0x4be788[_0x263efe(0x12e)])throw new Error(_0x263efe(0x145));return null;}if(typeof _0xd90548===_0x263efe(0x15e)&&Buffer[_0x263efe(0x121)](_0xd90548,_0x263efe(0x141))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x4be788[_0x263efe(0x17d)][_0x263efe(0x11f)]()){case _0x263efe(0x15e):case _0x263efe(0xd6):case _0x263efe(0x13a):if(typeof _0xd90548!==_0x263efe(0x15e))throw new Error(_0x263efe(0xdb));return _0xd90548;case'number':case _0x263efe(0x16b):case'integer':if(typeof _0xd90548!==_0x263efe(0x194)||!Number[_0x263efe(0x1ac)](_0xd90548)||Math[_0x263efe(0x15a)](_0xd90548)>Number[_0x263efe(0x106)]||_0x4be788[_0x263efe(0x17d)][_0x263efe(0x11f)]()===_0x263efe(0xe9)&&!Number['isInteger'](_0xd90548))throw new Error(_0x263efe(0x146));return _0xd90548;case _0x263efe(0x135):if(typeof _0xd90548!==_0x263efe(0x135))throw new Error(_0x263efe(0x123));return _0xd90548;case _0x263efe(0x124):case'datetime':if(!(_0xd90548 instanceof Date)||!Number[_0x263efe(0x1ac)](_0xd90548['getTime']()))throw new Error(_0x263efe(0xed));return _0xd90548['getTime']();default:throw new Error(_0x263efe(0x16e)+_0x4be788[_0x263efe(0x17d)]+'.');}}export async function buildExcelManifest(_0x494509){const _0x47b4e1=a140_0x1fec59,_0x9f4279=_0x494509[_0x47b4e1(0x182)]??0x1;if(!Number[_0x47b4e1(0x159)](_0x9f4279)||_0x9f4279<0x1||_0x9f4279>MAX_ROWS)throw new Error(_0x47b4e1(0x153));if(_0x494509[_0x47b4e1(0xd1)]!==undefined&&(!Number[_0x47b4e1(0x159)](_0x494509[_0x47b4e1(0xd1)])||_0x494509[_0x47b4e1(0xd1)]<0x1||_0x494509[_0x47b4e1(0xd1)]>0x3e8))throw new Error(_0x47b4e1(0x1a9));if(a140_0x2dbcf2[_0x47b4e1(0x108)](_0x494509[_0x47b4e1(0x14e)])[_0x47b4e1(0x11f)]()!=='.xlsx')throw new Error(_0x47b4e1(0x18c));const _0xd738d6=await stat(_0x494509['file']);if(!_0xd738d6['isFile']()||_0xd738d6['size']>MAX_FILE)throw new Error(_0x47b4e1(0x197));const _0x1522bc=await readFile(_0x494509['file']);if(_0x1522bc[_0x47b4e1(0x122)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x5ac12d=_0x494509[_0x47b4e1(0x112)][_0x47b4e1(0x142)](_0x56d6a5=>isImageContainer(_0x56d6a5[_0x47b4e1(0x17d)])&&Object[_0x47b4e1(0x130)](_0x494509[_0x47b4e1(0xd3)])[_0x47b4e1(0x192)](_0x56d6a5[_0x47b4e1(0x165)]))?new Map():undefined;await checkArchive(_0x1522bc,_0x5ac12d);const _0x46ee85=new a140_0x55d702['Workbook']();await _0x46ee85[_0x47b4e1(0x114)][_0x47b4e1(0x172)](_0x1522bc,{'ignoreNodes':[_0x47b4e1(0x188)]});const _0x28bdd5=_0x494509['sheet'];let _0x31a359;if(_0x28bdd5===undefined)_0x31a359=_0x46ee85[_0x47b4e1(0x120)][0x0];else{if(typeof _0x28bdd5===_0x47b4e1(0x15e)&&_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x142)](_0x1fd03a=>_0x1fd03a[_0x47b4e1(0x14c)]===_0x28bdd5))_0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x155)](_0x4e63db=>_0x4e63db['name']===_0x28bdd5);else{if(typeof _0x28bdd5===_0x47b4e1(0x194)||/^\d+$/[_0x47b4e1(0x166)](_0x28bdd5)){const _0x3de49e=Number(_0x28bdd5);if(!Number['isInteger'](_0x3de49e)||_0x3de49e<0x1)throw new Error(_0x47b4e1(0x170));_0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x3de49e-0x1];}else _0x31a359=_0x46ee85[_0x47b4e1(0x120)][_0x47b4e1(0x155)](_0x5525ab=>_0x5525ab['name']===_0x28bdd5);}}if(!_0x31a359)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x31a359[_0x47b4e1(0x118)]>MAX_ROWS||_0x31a359['columnCount']>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x31a359[_0x47b4e1(0x196)][_0x47b4e1(0xec)]??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x13a15e=new Map();_0x31a359[_0x47b4e1(0x195)](_0x9f4279)[_0x47b4e1(0x1a8)]((_0x2c754a,_0x12fab2)=>{const _0x1d1323=_0x47b4e1,_0x5ca577=valueOf(_0x2c754a);if(typeof _0x5ca577!=='string'||!_0x5ca577[_0x1d1323(0xfe)]()||Buffer[_0x1d1323(0x121)](_0x5ca577)>MAX_CELL)throw new Error(_0x1d1323(0x171));if(_0x13a15e[_0x1d1323(0x186)](_0x5ca577))throw new Error(_0x1d1323(0x1a2)+_0x5ca577+'.');_0x13a15e[_0x1d1323(0xdf)](_0x5ca577,_0x12fab2);});const _0x97350b=Object[_0x47b4e1(0x100)](_0x494509['mapping']);if(!_0x97350b[_0x47b4e1(0x122)])throw new Error(_0x47b4e1(0x168));const _0x364125=new Map(_0x494509['fields'][_0x47b4e1(0x113)](_0x844b3a=>[_0x844b3a[_0x47b4e1(0x165)],_0x844b3a]));if(_0x364125[_0x47b4e1(0x152)]!==_0x494509['fields'][_0x47b4e1(0x122)])throw new Error(_0x47b4e1(0xfc));if(_0x494509['fields'][_0x47b4e1(0x142)](_0x523d2a=>_0x523d2a[_0x47b4e1(0x17d)][_0x47b4e1(0x11f)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x1a0c6b=new Set();for(const [_0x4245a6,_0x2dfa0b]of _0x97350b){const _0x32fff0=_0x364125[_0x47b4e1(0x19c)](_0x2dfa0b);if(!_0x13a15e[_0x47b4e1(0x186)](_0x4245a6))throw new Error(_0x47b4e1(0x19e)+_0x4245a6+'.');if(!_0x32fff0||RESERVED[_0x47b4e1(0x186)](_0x2dfa0b)||_0x32fff0['generated'])throw new Error(_0x47b4e1(0x110)+_0x2dfa0b+'.');if(_0x1a0c6b[_0x47b4e1(0x186)](_0x2dfa0b))throw new Error(_0x47b4e1(0x109)+_0x2dfa0b+'.');if(!TYPES[_0x47b4e1(0x186)](_0x32fff0[_0x47b4e1(0x17d)]['toLowerCase']()))throw new Error(_0x47b4e1(0x16e)+_0x32fff0[_0x47b4e1(0x17d)]+'.');_0x1a0c6b[_0x47b4e1(0x16d)](_0x2dfa0b);}for(const _0x12ccff of _0x494509['fields']){if(_0x12ccff[_0x47b4e1(0x11a)]&&!_0x12ccff['generated']&&!RESERVED[_0x47b4e1(0x186)](_0x12ccff['code'])&&!_0x1a0c6b['has'](_0x12ccff[_0x47b4e1(0x165)]))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x12ccff[_0x47b4e1(0x165)]+'.');}const _0x348a84={'fileHash':hash(_0x1522bc),'mappingHash':hash(JSON[_0x47b4e1(0x176)]([..._0x97350b][_0x47b4e1(0x19a)](([_0x2830f6],[_0x17af89])=>_0x2830f6[_0x47b4e1(0x137)](_0x17af89)))),'schemaHash':hash(JSON[_0x47b4e1(0x176)]([..._0x494509[_0x47b4e1(0x112)]]['sort']((_0x2b95e2,_0x1d0637)=>_0x2b95e2[_0x47b4e1(0x165)][_0x47b4e1(0x137)](_0x1d0637[_0x47b4e1(0x165)])))),'sheet':_0x31a359[_0x47b4e1(0x14c)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x40b795=_0x97350b['filter'](([,_0x4ae3bd])=>isImageContainer(_0x364125[_0x47b4e1(0x19c)](_0x4ae3bd)[_0x47b4e1(0x17d)])),_0x5b2681=_0x40b795[_0x47b4e1(0xf3)](([,_0x155303])=>_0x364125[_0x47b4e1(0x19c)](_0x155303)[_0x47b4e1(0x17d)]['toLowerCase']()===_0x47b4e1(0xd9))[_0x47b4e1(0x113)](([,_0x171c98])=>_0x171c98);if(_0x5b2681[_0x47b4e1(0x122)])_0x348a84[_0x47b4e1(0x147)]=_0x5b2681;const _0x661f96=_0x5ac12d?resolveWorksheetImages(_0x5ac12d,_0x31a359[_0x47b4e1(0x14c)],new Set(_0x40b795[_0x47b4e1(0x113)](([_0x2bac52])=>_0x13a15e[_0x47b4e1(0x19c)](_0x2bac52)))):[],_0x12c872=new Map();for(const _0x15c66a of _0x661f96){const _0x35b9bd=_0x15c66a[_0x47b4e1(0x140)]+':'+_0x15c66a['col'],_0x18f7aa=_0x12c872[_0x47b4e1(0x19c)](_0x35b9bd)??[];_0x18f7aa['push'](_0x15c66a),_0x12c872[_0x47b4e1(0xdf)](_0x35b9bd,_0x18f7aa);}const _0x1c61f2=new Map();let _0x16daa7=0x0;_0x40b795['length']&&(_0x348a84['imageFields']=_0x40b795[_0x47b4e1(0x113)](([,_0x2ce469])=>_0x2ce469),_0x348a84[_0x47b4e1(0x13f)]=[],_0x348a84[_0x47b4e1(0x129)]=0x1,_0x348a84[_0x47b4e1(0x163)]=[]);const _0x22a480=Math[_0x47b4e1(0xf0)](0x0,..._0x661f96[_0x47b4e1(0x113)](_0x30e8de=>_0x30e8de['row']));let _0x37925d=0x0;const _0x1f8b75=new Set(_0x97350b[_0x47b4e1(0x113)](([_0x481fc4])=>_0x13a15e[_0x47b4e1(0x19c)](_0x481fc4)));for(let _0x3d9eee=_0x9f4279+0x1;_0x3d9eee<=Math[_0x47b4e1(0xf0)](_0x31a359['rowCount'],_0x22a480);_0x3d9eee++){const _0x46fc3f=_0x31a359[_0x47b4e1(0x195)](_0x3d9eee);if(_0x46fc3f[_0x47b4e1(0x17c)]||_0x661f96[_0x47b4e1(0x142)](_0x216788=>_0x216788[_0x47b4e1(0x140)]===_0x3d9eee&&_0x216788[_0x47b4e1(0x15b)]))_0x37925d++;let _0x1ea6eb=_0x661f96[_0x47b4e1(0x142)](_0x1a7db9=>_0x1a7db9[_0x47b4e1(0x140)]===_0x3d9eee);_0x46fc3f['eachCell'](_0x4f94b7=>{const _0x4601c2=_0x47b4e1;if(_0x4f94b7['value']!==null&&_0x4f94b7[_0x4601c2(0x1a1)]!==undefined&&_0x4f94b7[_0x4601c2(0x1a1)]!=='')_0x1ea6eb=!![];});if(!_0x1ea6eb){_0x348a84['emptyRows']['push'](_0x3d9eee);continue;}const _0x306e38=Object[_0x47b4e1(0x191)](null);_0x46fc3f[_0x47b4e1(0x1a8)]((_0x35298a,_0x403f12)=>{const _0x545d22=_0x47b4e1;if(_0x1f8b75[_0x545d22(0x186)](_0x403f12))return;try{const _0x598743=valueOf(_0x35298a);if(typeof _0x598743===_0x545d22(0x15e)&&Buffer[_0x545d22(0x121)](_0x598743,_0x545d22(0x141))>MAX_CELL)throw new Error(_0x545d22(0x102));}catch(_0x17d41a){_0x348a84['errors'][_0x545d22(0xef)]({'rowNumber':_0x3d9eee,'field':_0x35298a[_0x545d22(0x173)],'message':_0x17d41a[_0x545d22(0x1a7)]});}});for(const [_0x5b1653,_0x56ed80]of _0x97350b){try{const _0x3cf08b=_0x46fc3f[_0x47b4e1(0xf9)](_0x13a15e[_0x47b4e1(0x19c)](_0x5b1653)),_0x134a01=_0x364125[_0x47b4e1(0x19c)](_0x56ed80);if(!isImageContainer(_0x134a01[_0x47b4e1(0x17d)])){_0x306e38[_0x56ed80]=convert(valueOf(_0x3cf08b),_0x134a01);continue;}const _0x5eec22=_0x12c872[_0x47b4e1(0x19c)](_0x3d9eee+':'+_0x13a15e['get'](_0x5b1653))??[];if(_0x5eec22['some'](_0x28a361=>_0x28a361[_0x47b4e1(0xd8)]))throw Error(_0x5eec22[_0x47b4e1(0x155)](_0x4feeb5=>_0x4feeb5[_0x47b4e1(0xd8)])['error']);if(_0x3cf08b[_0x47b4e1(0x1a1)]!=null&&_0x3cf08b[_0x47b4e1(0x1a1)]!==''&&!_0x5eec22[_0x47b4e1(0x142)](_0x6c2eaa=>_0x6c2eaa[_0x47b4e1(0x11e)]))throw Error(_0x47b4e1(0x16a));const _0x1d804d=[];for(const _0x49b809 of _0x5eec22)for(const _0x2c8cbc of _0x49b809[_0x47b4e1(0x163)]){const _0x14425c=_0x5ac12d[_0x47b4e1(0x19c)](_0x2c8cbc);if(!_0x14425c)throw Error(_0x47b4e1(0x198)+_0x2c8cbc+'.');const _0x234830=hash(_0x14425c),_0x105b3f=_0x1c61f2[_0x47b4e1(0x19c)](_0x234830)??validateImageBytes(_0x14425c);if(!_0x1c61f2[_0x47b4e1(0x186)](_0x105b3f[_0x47b4e1(0x169)])){_0x16daa7+=_0x105b3f[_0x47b4e1(0x152)];if(_0x16daa7>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x1c61f2[_0x47b4e1(0xdf)](_0x105b3f['contentHash'],_0x105b3f);}_0x1d804d[_0x47b4e1(0xef)](_0x105b3f['contentHash']);}if(!_0x1d804d['length']&&_0x134a01[_0x47b4e1(0x11a)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x1d804d[_0x47b4e1(0x122)])_0x348a84[_0x47b4e1(0x13f)]['push']({'rowNumber':_0x3d9eee,'field':_0x56ed80,'hashes':_0x1d804d});_0x306e38[_0x56ed80]=_0x1d804d[_0x47b4e1(0x113)](_0x3ec578=>{const _0x5f3c03=_0x47b4e1,_0x502940=_0x1c61f2[_0x5f3c03(0x19c)](_0x3ec578),_0x118da7=_0x502940[_0x5f3c03(0x17d)]===_0x5f3c03(0x181)?_0x5f3c03(0xfa):_0x502940[_0x5f3c03(0x17d)][_0x5f3c03(0x179)](0x6),_0x22f660=_0x3ec578+'.'+_0x118da7,_0x1e9dfa=_0x5f3c03(0x11b)+'0'[_0x5f3c03(0xf7)](0x40)+'/'+_0x22f660;return _0x134a01[_0x5f3c03(0x17d)]['toLowerCase']()===_0x5f3c03(0xd9)?{'fileName':_0x22f660,'filePath':_0x1e9dfa}:{'key':_0x1e9dfa,'name':_0x22f660,'type':_0x502940[_0x5f3c03(0x17d)],'size':_0x502940[_0x5f3c03(0x152)]};});}catch(_0x34e5dc){_0x348a84[_0x47b4e1(0xd7)][_0x47b4e1(0xef)]({'rowNumber':_0x3d9eee,'field':_0x56ed80,'message':_0x34e5dc[_0x47b4e1(0x1a7)]});}}_0x348a84[_0x47b4e1(0x14a)]['push']({'rowNumber':_0x3d9eee,'values':_0x306e38});}if(_0x348a84[_0x47b4e1(0x163)])_0x348a84[_0x47b4e1(0x163)]=[..._0x1c61f2['values']()];if(_0x37925d)_0x348a84[_0x47b4e1(0xfd)]['push'](_0x37925d+_0x47b4e1(0x16f));return _0x348a84;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5581d1,_0xe4bce){const _0x5d3b7b=a141_0x39c2,_0x438d00=_0x5581d1();while(!![]){try{const _0x64f5b2=-parseInt(_0x5d3b7b(0x167))/0x1+-parseInt(_0x5d3b7b(0x15d))/0x2*(parseInt(_0x5d3b7b(0x161))/0x3)+parseInt(_0x5d3b7b(0x12e))/0x4+parseInt(_0x5d3b7b(0x13b))/0x5+-parseInt(_0x5d3b7b(0x13f))/0x6+-parseInt(_0x5d3b7b(0x152))/0x7+-parseInt(_0x5d3b7b(0x140))/0x8*(-parseInt(_0x5d3b7b(0x13a))/0x9);if(_0x64f5b2===_0xe4bce)break;else _0x438d00['push'](_0x438d00['shift']());}catch(_0x331bb2){_0x438d00['push'](_0x438d00['shift']());}}}(a141_0x4459,0x882e9));import{createRequire}from'node:module';import{createHash}from'node:crypto';function a141_0x39c2(_0x2d3eba,_0x38e6b5){_0x2d3eba=_0x2d3eba-0x12e;const _0x4459eb=a141_0x4459();let _0x39c2d8=_0x4459eb[_0x2d3eba];return _0x39c2d8;}import{inflateSync}from'node:zlib';function a141_0x4459(){const _0x5abc6e=['subarray','Truncated\x20JPEG.','Invalid\x20PNG\x20end.','Truncated\x20PNG\x20data.','IDAT','readUInt16LE','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','isSafeInteger','readUInt32BE','hex','numFrames','GIF89a','Animated\x20PNG\x20is\x20not\x20supported.','image/png','GIF\x20frame\x20exceeds\x20canvas.','1940631ejzDYU','ceil','update','frameInfo','digest','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','width','from','max','length','Invalid\x20PNG\x20header.','2xqGgBk','Invalid\x20GIF\x20block.','IEND','IHDR','2464404hWYRUw','image/gif','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','jpeg-js','concat','Truncated\x20GIF.','912875nHkrcN','Invalid\x20GIF\x20LZW\x20code\x20size.','3361296LbvwBl','sync','height','Truncated\x20GIF\x20data.','Invalid\x20GIF\x20trailer.','ascii','GIF87a','toString','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','omggif','Missing\x20GIF\x20trailer.','read','14042961hoYCPg','4918195isLOMk','push','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Invalid\x20PNG\x20color/depth/interlace.','4889490XzEbgN','8KKhrUY','decode','decodeAndBlitFrameRGBA'];a141_0x4459=function(){return _0x5abc6e;};return a141_0x4459();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0xf0bcc,_0x281188){const _0x5495e0=a141_0x39c2;if(!Number[_0x5495e0(0x14a)](_0xf0bcc)||!Number[_0x5495e0(0x14a)](_0x281188)||_0xf0bcc<0x1||_0x281188<0x1||_0xf0bcc*_0x281188>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x471c9f){const _0x21c843=a141_0x39c2;let _0xa607a9=0xd,_0x22f796=0x0,_0x540b5e=0x0;const _0xaf0d16=_0x471c9f[_0x21c843(0x148)](0x6),_0x22acba=_0x471c9f[_0x21c843(0x148)](0x8),_0x280fc5=_0x471c9f[0xa]&0x80?0x1<<(_0x471c9f[0xa]&0x7)+0x1:0x0,_0x56abf5=_0x50f740=>{const _0x15cbaa=_0x21c843;if(_0xa607a9+_0x50f740>_0x471c9f[_0x15cbaa(0x15b)])throw Error(_0x15cbaa(0x131));};_0xa607a9+=_0x280fc5*0x3,_0x56abf5(0x0);const _0x2db24f=()=>{const _0x4cd6d2=_0x21c843,_0x47e14d=[];while(!![]){_0x56abf5(0x1);const _0x449c57=_0x471c9f[_0xa607a9++];if(!_0x449c57)break;_0x56abf5(_0x449c57),_0x47e14d[_0x4cd6d2(0x13c)](_0x471c9f[_0x4cd6d2(0x143)](_0xa607a9,_0xa607a9+_0x449c57)),_0xa607a9+=_0x449c57;}return Buffer[_0x4cd6d2(0x165)](_0x47e14d);};while(_0xa607a9<_0x471c9f['length']){const _0x5b2b91=_0x471c9f[_0xa607a9++];if(_0x5b2b91===0x3b){if(!_0x22f796||_0xa607a9!==_0x471c9f[_0x21c843(0x15b)])throw Error(_0x21c843(0x132));return;}if(_0x5b2b91===0x21){_0x56abf5(0x1),_0xa607a9++,_0x2db24f();continue;}if(_0x5b2b91!==0x2c)throw Error(_0x21c843(0x15e));_0x56abf5(0x9);const _0xf4eb3f=_0x471c9f['readUInt16LE'](_0xa607a9),_0x5061ff=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x2),_0x2551be=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x4),_0x3e9cf0=_0x471c9f[_0x21c843(0x148)](_0xa607a9+0x6),_0x416764=_0x471c9f[_0xa607a9+0x8];_0xa607a9+=0x9,dimensions(_0x2551be,_0x3e9cf0);if(_0xf4eb3f+_0x2551be>_0xaf0d16||_0x5061ff+_0x3e9cf0>_0x22acba||++_0x22f796>0x2710||(_0x540b5e+=_0xaf0d16*_0x22acba)>MAX_PIXELS)throw Error(_0x21c843(0x157));const _0x2e74b5=_0x416764&0x80?0x1<<(_0x416764&0x7)+0x1:_0x280fc5;if(!_0x2e74b5)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x416764&0x80&&(_0x56abf5(_0x2e74b5*0x3),_0xa607a9+=_0x2e74b5*0x3);_0x56abf5(0x1);const _0x250373=_0x471c9f[_0xa607a9++];if(_0x250373<0x2||_0x250373>0x8)throw Error(_0x21c843(0x168));const _0x4dc473=_0x2db24f(),_0x38fcb8=0x1<<_0x250373,_0xd8410=_0x38fcb8+0x1;let _0x59caca=_0x250373+0x1,_0x4ebbc2=_0xd8410+0x1,_0x20ec92=0x0,_0x73c826=-0x1,_0x307d46=0x0,_0x540218=![];const _0x1a8ae1=new Uint32Array(0x1000),_0x429eaa=new Uint16Array(0x1000);for(let _0x4cd371=0x0;_0x4cd371<_0x38fcb8;_0x4cd371++){_0x1a8ae1[_0x4cd371]=0x1,_0x429eaa[_0x4cd371]=_0x4cd371;}while(_0x20ec92+_0x59caca<=_0x4dc473['length']*0x8){let _0x1921e6=0x0;for(let _0x5a34dc=0x0;_0x5a34dc<_0x59caca;_0x5a34dc++,_0x20ec92++)_0x1921e6|=(_0x4dc473[_0x20ec92>>0x3]>>(_0x20ec92&0x7)&0x1)<<_0x5a34dc;if(_0x1921e6===_0x38fcb8){_0x59caca=_0x250373+0x1,_0x4ebbc2=_0xd8410+0x1,_0x73c826=-0x1;continue;}if(_0x1921e6===_0xd8410){_0x540218=!![];break;}if(_0x1921e6>_0x4ebbc2||_0x1921e6===_0x4ebbc2&&_0x73c826<0x0||_0x73c826<0x0&&_0x1921e6>=_0x38fcb8)throw Error(_0x21c843(0x149));const _0x4581ac=_0x1921e6===_0x4ebbc2?_0x1a8ae1[_0x73c826]+0x1:_0x1a8ae1[_0x1921e6],_0xd854b4=_0x1921e6===_0x4ebbc2?_0x429eaa[_0x73c826]:_0x429eaa[_0x1921e6];if(!_0x4581ac||_0xd854b4>=_0x2e74b5||(_0x307d46+=_0x4581ac)>_0x2551be*_0x3e9cf0)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x73c826>=0x0&&_0x4ebbc2<0x1000){_0x1a8ae1[_0x4ebbc2]=_0x1a8ae1[_0x73c826]+0x1,_0x429eaa[_0x4ebbc2]=Math['max'](_0x429eaa[_0x73c826],_0xd854b4),_0x4ebbc2++;if(_0x4ebbc2===0x1<<_0x59caca&&_0x59caca<0xc)_0x59caca++;}_0x73c826=_0x1921e6;}if(!_0x540218||_0x307d46!==_0x2551be*_0x3e9cf0)throw Error(_0x21c843(0x163));}throw Error(_0x21c843(0x138));}export function validateImageBytes(_0x1ef226){const _0x6e6f63=a141_0x39c2;if(!_0x1ef226[_0x6e6f63(0x15b)]||_0x1ef226[_0x6e6f63(0x15b)]>0xa*0x400*0x400)throw Error(_0x6e6f63(0x136));let _0x326e7c;try{if(_0x1ef226[_0x6e6f63(0x143)](0x0,0x8)['equals'](Buffer[_0x6e6f63(0x159)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1ef226[_0x6e6f63(0x15b)]<0x21||_0x1ef226[_0x6e6f63(0x135)](_0x6e6f63(0x133),0xc,0x10)!==_0x6e6f63(0x160))throw Error(_0x6e6f63(0x15c));dimensions(_0x1ef226[_0x6e6f63(0x14b)](0x10),_0x1ef226['readUInt32BE'](0x14));const _0x129fca=_0x1ef226['readUInt32BE'](0x10),_0x1e9cd1=_0x1ef226[_0x6e6f63(0x14b)](0x14),_0x211462=_0x1ef226[0x18],_0x4096b0=_0x1ef226[0x19],_0xa4a6b1=_0x1ef226[0x1c],_0x4262d3={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4096b0];if(!_0x4262d3||![0x1,0x2,0x4,0x8,0x10]['includes'](_0x211462)||_0xa4a6b1>0x1)throw Error(_0x6e6f63(0x13e));const _0x453e19=_0x4dd17c=>Math[_0x6e6f63(0x153)](_0x4dd17c*_0x4262d3*_0x211462/0x8)+0x1;let _0x4ff74b=_0x453e19(_0x129fca)*_0x1e9cd1;if(_0xa4a6b1){_0x4ff74b=0x0;for(const [_0x5e643b,_0x29a164,_0x39f808,_0x36ec41]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 _0x5b6ff1=Math['max'](0x0,Math[_0x6e6f63(0x153)]((_0x129fca-_0x5e643b)/_0x39f808)),_0x58a14d=Math[_0x6e6f63(0x15a)](0x0,Math[_0x6e6f63(0x153)]((_0x1e9cd1-_0x29a164)/_0x36ec41));if(_0x5b6ff1&&_0x58a14d)_0x4ff74b+=_0x453e19(_0x5b6ff1)*_0x58a14d;}}let _0x377c8a=0x8,_0x964503=![];const _0x61a2ed=[];while(_0x377c8a<_0x1ef226['length']){if(_0x377c8a+0xc>_0x1ef226[_0x6e6f63(0x15b)])throw Error('Truncated\x20PNG\x20chunk.');const _0x5b4709=_0x1ef226[_0x6e6f63(0x14b)](_0x377c8a),_0x1c4f7b=_0x1ef226['toString'](_0x6e6f63(0x133),_0x377c8a+0x4,_0x377c8a+0x8);if(_0x1c4f7b==='acTL')throw Error(_0x6e6f63(0x14f));if(_0x377c8a+_0x5b4709+0xc>_0x1ef226[_0x6e6f63(0x15b)])throw Error(_0x6e6f63(0x146));if(_0x1c4f7b===_0x6e6f63(0x147))_0x61a2ed[_0x6e6f63(0x13c)](_0x1ef226[_0x6e6f63(0x143)](_0x377c8a+0x8,_0x377c8a+0x8+_0x5b4709));_0x377c8a+=_0x5b4709+0xc;if(_0x1c4f7b===_0x6e6f63(0x15f)){if(_0x5b4709||_0x377c8a!==_0x1ef226[_0x6e6f63(0x15b)])throw Error(_0x6e6f63(0x145));_0x964503=!![];break;}}if(!_0x964503||!_0x61a2ed['length'])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0x6e6f63(0x165)](_0x61a2ed),{'maxOutputLength':_0x4ff74b+0x1})[_0x6e6f63(0x15b)]!==_0x4ff74b)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x5a8712}=require('pngjs'),_0x44d50b=_0x5a8712[_0x6e6f63(0x12f)][_0x6e6f63(0x139)](_0x1ef226,{'checkCRC':!![]});dimensions(_0x44d50b[_0x6e6f63(0x158)],_0x44d50b[_0x6e6f63(0x130)]),_0x326e7c=_0x6e6f63(0x150);}else{if(_0x1ef226[0x0]===0xff&&_0x1ef226[0x1]===0xd8){if(_0x1ef226['at'](-0x2)!==0xff||_0x1ef226['at'](-0x1)!==0xd9)throw Error(_0x6e6f63(0x144));const _0x32e160=require(_0x6e6f63(0x164)),_0xfe4fcd=_0x32e160[_0x6e6f63(0x141)](_0x1ef226,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0xfe4fcd[_0x6e6f63(0x158)],_0xfe4fcd[_0x6e6f63(0x130)]),_0x326e7c='image/jpeg';}else{if([_0x6e6f63(0x134),_0x6e6f63(0x14e)]['includes'](_0x1ef226[_0x6e6f63(0x135)](_0x6e6f63(0x133),0x0,0x6))){if(_0x1ef226[_0x6e6f63(0x15b)]<0xe||_0x1ef226['at'](-0x1)!==0x3b)throw Error(_0x6e6f63(0x166));dimensions(_0x1ef226[_0x6e6f63(0x148)](0x6),_0x1ef226[_0x6e6f63(0x148)](0x8)),validateGif(_0x1ef226);const {GifReader:_0x499d11}=require(_0x6e6f63(0x137)),_0x4eb9d8=new _0x499d11(_0x1ef226);dimensions(_0x4eb9d8['width'],_0x4eb9d8[_0x6e6f63(0x130)]);const _0x1c82b5=_0x4eb9d8[_0x6e6f63(0x14d)]();if(!_0x1c82b5||_0x1c82b5>0x2710||_0x1c82b5*_0x4eb9d8[_0x6e6f63(0x158)]*_0x4eb9d8[_0x6e6f63(0x130)]>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x176b4a=new Uint8Array(_0x4eb9d8['width']*_0x4eb9d8[_0x6e6f63(0x130)]*0x4);for(let _0x3edb90=0x0;_0x3edb90<_0x1c82b5;_0x3edb90++){const _0x5e08f0=_0x4eb9d8[_0x6e6f63(0x155)](_0x3edb90);if(_0x5e08f0['x']+_0x5e08f0[_0x6e6f63(0x158)]>_0x4eb9d8[_0x6e6f63(0x158)]||_0x5e08f0['y']+_0x5e08f0[_0x6e6f63(0x130)]>_0x4eb9d8['height'])throw Error(_0x6e6f63(0x151));_0x4eb9d8[_0x6e6f63(0x142)](_0x3edb90,_0x176b4a);}_0x326e7c=_0x6e6f63(0x162);}else throw Error(_0x6e6f63(0x13d));}}}catch(_0x3b665d){throw Error('Invalid\x20image:\x20'+_0x3b665d['message']);}return{'contentHash':createHash('sha256')[_0x6e6f63(0x154)](_0x1ef226)[_0x6e6f63(0x156)](_0x6e6f63(0x14c)),'type':_0x326e7c,'size':_0x1ef226[_0x6e6f63(0x15b)],'bytes':_0x1ef226};}
|
|
1
|
+
(function(_0x31074d,_0x2e862e){const _0x49e0a4=a141_0x43e6,_0x2aa5ab=_0x31074d();while(!![]){try{const _0x55a71a=parseInt(_0x49e0a4(0x120))/0x1+-parseInt(_0x49e0a4(0x143))/0x2+-parseInt(_0x49e0a4(0x113))/0x3+parseInt(_0x49e0a4(0x110))/0x4*(parseInt(_0x49e0a4(0x13d))/0x5)+parseInt(_0x49e0a4(0x128))/0x6*(parseInt(_0x49e0a4(0x115))/0x7)+parseInt(_0x49e0a4(0x111))/0x8+-parseInt(_0x49e0a4(0x132))/0x9;if(_0x55a71a===_0x2e862e)break;else _0x2aa5ab['push'](_0x2aa5ab['shift']());}catch(_0x26289e){_0x2aa5ab['push'](_0x2aa5ab['shift']());}}}(a141_0x2ca2,0xe6eb4));function a141_0x43e6(_0x11d7fe,_0x31a980){_0x11d7fe=_0x11d7fe-0x108;const _0x2ca238=a141_0x2ca2();let _0x43e6dd=_0x2ca238[_0x11d7fe];return _0x43e6dd;}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x2ca2(){const _0x2d351c=['4440XKVWWX','sync','Invalid\x20GIF\x20LZW\x20code\x20size.','image/png','includes','sha256','1377440eMflIN','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Truncated\x20GIF\x20data.','width','max','GIF\x20frame\x20exceeds\x20canvas.','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Invalid\x20PNG\x20end.','Missing\x20PNG\x20data/end.','Animated\x20PNG\x20is\x20not\x20supported.','IHDR','readUInt32BE','3092AIirZK','9845792whRmIF','GIF89a','4869927fsWQYh','numFrames','5070597tBOKqi','toString','subarray','frameInfo','IEND','Truncated\x20PNG\x20data.','GIF87a','ceil','GIF\x20image\x20has\x20no\x20palette.','push','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','1821525PrTxSC','read','height','Truncated\x20PNG\x20chunk.','jpeg-js','Invalid\x20PNG\x20color/depth/interlace.','isSafeInteger','ascii','12cpNWxY','readUInt16LE','Invalid\x20GIF\x20LZW\x20pixel\x20data.','decode','Invalid\x20PNG\x20header.','IDAT','hex','Invalid\x20image:\x20','Invalid\x20GIF\x20trailer.','length','17365878LtpWEP','pngjs','omggif','equals','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','Truncated\x20JPEG.','Invalid\x20GIF\x20block.','digest','Missing\x20GIF\x20trailer.','acTL','message'];a141_0x2ca2=function(){return _0x2d351c;};return a141_0x2ca2();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x25a307,_0x48818c){const _0x1a081f=a141_0x43e6;if(!Number[_0x1a081f(0x126)](_0x25a307)||!Number[_0x1a081f(0x126)](_0x48818c)||_0x25a307<0x1||_0x48818c<0x1||_0x25a307*_0x48818c>MAX_PIXELS)throw Error(_0x1a081f(0x10a));}function validateGif(_0x4bdf8f){const _0x207c65=a141_0x43e6;let _0x5e2be8=0xd,_0x236a74=0x0,_0xfd6c40=0x0;const _0x4f8532=_0x4bdf8f[_0x207c65(0x129)](0x6),_0x24edca=_0x4bdf8f[_0x207c65(0x129)](0x8),_0x31b262=_0x4bdf8f[0xa]&0x80?0x1<<(_0x4bdf8f[0xa]&0x7)+0x1:0x0,_0x59d027=_0x179352=>{const _0x3f0fc6=_0x207c65;if(_0x5e2be8+_0x179352>_0x4bdf8f[_0x3f0fc6(0x131)])throw Error(_0x3f0fc6(0x145));};_0x5e2be8+=_0x31b262*0x3,_0x59d027(0x0);const _0x2ee896=()=>{const _0x80c024=_0x207c65,_0x168525=[];while(!![]){_0x59d027(0x1);const _0x24d578=_0x4bdf8f[_0x5e2be8++];if(!_0x24d578)break;_0x59d027(_0x24d578),_0x168525[_0x80c024(0x11e)](_0x4bdf8f[_0x80c024(0x117)](_0x5e2be8,_0x5e2be8+_0x24d578)),_0x5e2be8+=_0x24d578;}return Buffer['concat'](_0x168525);};while(_0x5e2be8<_0x4bdf8f[_0x207c65(0x131)]){const _0x223a2f=_0x4bdf8f[_0x5e2be8++];if(_0x223a2f===0x3b){if(!_0x236a74||_0x5e2be8!==_0x4bdf8f[_0x207c65(0x131)])throw Error(_0x207c65(0x130));return;}if(_0x223a2f===0x21){_0x59d027(0x1),_0x5e2be8++,_0x2ee896();continue;}if(_0x223a2f!==0x2c)throw Error(_0x207c65(0x138));_0x59d027(0x9);const _0x3adfff=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8),_0x285c61=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8+0x2),_0x27ec2f=_0x4bdf8f['readUInt16LE'](_0x5e2be8+0x4),_0x1c1051=_0x4bdf8f[_0x207c65(0x129)](_0x5e2be8+0x6),_0x4484d7=_0x4bdf8f[_0x5e2be8+0x8];_0x5e2be8+=0x9,dimensions(_0x27ec2f,_0x1c1051);if(_0x3adfff+_0x27ec2f>_0x4f8532||_0x285c61+_0x1c1051>_0x24edca||++_0x236a74>0x2710||(_0xfd6c40+=_0x4f8532*_0x24edca)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x57ed96=_0x4484d7&0x80?0x1<<(_0x4484d7&0x7)+0x1:_0x31b262;if(!_0x57ed96)throw Error(_0x207c65(0x11d));_0x4484d7&0x80&&(_0x59d027(_0x57ed96*0x3),_0x5e2be8+=_0x57ed96*0x3);_0x59d027(0x1);const _0x366f0e=_0x4bdf8f[_0x5e2be8++];if(_0x366f0e<0x2||_0x366f0e>0x8)throw Error(_0x207c65(0x13f));const _0x7c5410=_0x2ee896(),_0x421e44=0x1<<_0x366f0e,_0x8eb1a4=_0x421e44+0x1;let _0x32a0e3=_0x366f0e+0x1,_0x4b8a74=_0x8eb1a4+0x1,_0x484ab7=0x0,_0x4a40f5=-0x1,_0x5698f9=0x0,_0x2ed390=![];const _0x24b0db=new Uint32Array(0x1000),_0xed11f5=new Uint16Array(0x1000);for(let _0x181651=0x0;_0x181651<_0x421e44;_0x181651++){_0x24b0db[_0x181651]=0x1,_0xed11f5[_0x181651]=_0x181651;}while(_0x484ab7+_0x32a0e3<=_0x7c5410['length']*0x8){let _0x30287f=0x0;for(let _0x519674=0x0;_0x519674<_0x32a0e3;_0x519674++,_0x484ab7++)_0x30287f|=(_0x7c5410[_0x484ab7>>0x3]>>(_0x484ab7&0x7)&0x1)<<_0x519674;if(_0x30287f===_0x421e44){_0x32a0e3=_0x366f0e+0x1,_0x4b8a74=_0x8eb1a4+0x1,_0x4a40f5=-0x1;continue;}if(_0x30287f===_0x8eb1a4){_0x2ed390=!![];break;}if(_0x30287f>_0x4b8a74||_0x30287f===_0x4b8a74&&_0x4a40f5<0x0||_0x4a40f5<0x0&&_0x30287f>=_0x421e44)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x215388=_0x30287f===_0x4b8a74?_0x24b0db[_0x4a40f5]+0x1:_0x24b0db[_0x30287f],_0x27878a=_0x30287f===_0x4b8a74?_0xed11f5[_0x4a40f5]:_0xed11f5[_0x30287f];if(!_0x215388||_0x27878a>=_0x57ed96||(_0x5698f9+=_0x215388)>_0x27ec2f*_0x1c1051)throw Error(_0x207c65(0x12a));if(_0x4a40f5>=0x0&&_0x4b8a74<0x1000){_0x24b0db[_0x4b8a74]=_0x24b0db[_0x4a40f5]+0x1,_0xed11f5[_0x4b8a74]=Math[_0x207c65(0x108)](_0xed11f5[_0x4a40f5],_0x27878a),_0x4b8a74++;if(_0x4b8a74===0x1<<_0x32a0e3&&_0x32a0e3<0xc)_0x32a0e3++;}_0x4a40f5=_0x30287f;}if(!_0x2ed390||_0x5698f9!==_0x27ec2f*_0x1c1051)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x207c65(0x13a));}export function validateImageBytes(_0x3807f1){const _0x16fca7=a141_0x43e6;if(!_0x3807f1[_0x16fca7(0x131)]||_0x3807f1['length']>0xa*0x400*0x400)throw Error(_0x16fca7(0x11f));let _0x37abef;try{if(_0x3807f1['subarray'](0x0,0x8)[_0x16fca7(0x135)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x3807f1['length']<0x21||_0x3807f1['toString'](_0x16fca7(0x127),0xc,0x10)!==_0x16fca7(0x10e))throw Error(_0x16fca7(0x12c));dimensions(_0x3807f1[_0x16fca7(0x10f)](0x10),_0x3807f1[_0x16fca7(0x10f)](0x14));const _0x20b768=_0x3807f1[_0x16fca7(0x10f)](0x10),_0x42098c=_0x3807f1[_0x16fca7(0x10f)](0x14),_0x89087=_0x3807f1[0x18],_0x547a0b=_0x3807f1[0x19],_0x44792a=_0x3807f1[0x1c],_0x31c6ed={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x547a0b];if(!_0x31c6ed||![0x1,0x2,0x4,0x8,0x10][_0x16fca7(0x141)](_0x89087)||_0x44792a>0x1)throw Error(_0x16fca7(0x125));const _0x11ebd6=_0x296c47=>Math[_0x16fca7(0x11c)](_0x296c47*_0x31c6ed*_0x89087/0x8)+0x1;let _0x508a1e=_0x11ebd6(_0x20b768)*_0x42098c;if(_0x44792a){_0x508a1e=0x0;for(const [_0x4ab93d,_0x39f2ab,_0x41c9a7,_0x341476]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 _0x46eaef=Math[_0x16fca7(0x108)](0x0,Math[_0x16fca7(0x11c)]((_0x20b768-_0x4ab93d)/_0x41c9a7)),_0x315745=Math[_0x16fca7(0x108)](0x0,Math[_0x16fca7(0x11c)]((_0x42098c-_0x39f2ab)/_0x341476));if(_0x46eaef&&_0x315745)_0x508a1e+=_0x11ebd6(_0x46eaef)*_0x315745;}}let _0x297aa4=0x8,_0x5d0628=![];const _0x2b659a=[];while(_0x297aa4<_0x3807f1[_0x16fca7(0x131)]){if(_0x297aa4+0xc>_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x123));const _0x4a09f6=_0x3807f1[_0x16fca7(0x10f)](_0x297aa4),_0x431992=_0x3807f1[_0x16fca7(0x116)](_0x16fca7(0x127),_0x297aa4+0x4,_0x297aa4+0x8);if(_0x431992===_0x16fca7(0x13b))throw Error(_0x16fca7(0x10d));if(_0x297aa4+_0x4a09f6+0xc>_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x11a));if(_0x431992===_0x16fca7(0x12d))_0x2b659a['push'](_0x3807f1['subarray'](_0x297aa4+0x8,_0x297aa4+0x8+_0x4a09f6));_0x297aa4+=_0x4a09f6+0xc;if(_0x431992===_0x16fca7(0x119)){if(_0x4a09f6||_0x297aa4!==_0x3807f1[_0x16fca7(0x131)])throw Error(_0x16fca7(0x10b));_0x5d0628=!![];break;}}if(!_0x5d0628||!_0x2b659a[_0x16fca7(0x131)])throw Error(_0x16fca7(0x10c));if(inflateSync(Buffer['concat'](_0x2b659a),{'maxOutputLength':_0x508a1e+0x1})['length']!==_0x508a1e)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x11da3b}=require(_0x16fca7(0x133)),_0x2c69b9=_0x11da3b[_0x16fca7(0x13e)][_0x16fca7(0x121)](_0x3807f1,{'checkCRC':!![]});dimensions(_0x2c69b9[_0x16fca7(0x146)],_0x2c69b9[_0x16fca7(0x122)]),_0x37abef=_0x16fca7(0x140);}else{if(_0x3807f1[0x0]===0xff&&_0x3807f1[0x1]===0xd8){if(_0x3807f1['at'](-0x2)!==0xff||_0x3807f1['at'](-0x1)!==0xd9)throw Error(_0x16fca7(0x137));const _0x30ca5e=require(_0x16fca7(0x124)),_0x486918=_0x30ca5e[_0x16fca7(0x12b)](_0x3807f1,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x486918[_0x16fca7(0x146)],_0x486918['height']),_0x37abef='image/jpeg';}else{if([_0x16fca7(0x11b),_0x16fca7(0x112)][_0x16fca7(0x141)](_0x3807f1[_0x16fca7(0x116)]('ascii',0x0,0x6))){if(_0x3807f1[_0x16fca7(0x131)]<0xe||_0x3807f1['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x3807f1[_0x16fca7(0x129)](0x6),_0x3807f1[_0x16fca7(0x129)](0x8)),validateGif(_0x3807f1);const {GifReader:_0x3604ef}=require(_0x16fca7(0x134)),_0x479754=new _0x3604ef(_0x3807f1);dimensions(_0x479754[_0x16fca7(0x146)],_0x479754[_0x16fca7(0x122)]);const _0x17ec0a=_0x479754[_0x16fca7(0x114)]();if(!_0x17ec0a||_0x17ec0a>0x2710||_0x17ec0a*_0x479754[_0x16fca7(0x146)]*_0x479754[_0x16fca7(0x122)]>MAX_PIXELS)throw Error(_0x16fca7(0x144));const _0x530182=new Uint8Array(_0x479754[_0x16fca7(0x146)]*_0x479754[_0x16fca7(0x122)]*0x4);for(let _0xa5d009=0x0;_0xa5d009<_0x17ec0a;_0xa5d009++){const _0x4a4290=_0x479754[_0x16fca7(0x118)](_0xa5d009);if(_0x4a4290['x']+_0x4a4290[_0x16fca7(0x146)]>_0x479754[_0x16fca7(0x146)]||_0x4a4290['y']+_0x4a4290[_0x16fca7(0x122)]>_0x479754[_0x16fca7(0x122)])throw Error(_0x16fca7(0x109));_0x479754['decodeAndBlitFrameRGBA'](_0xa5d009,_0x530182);}_0x37abef='image/gif';}else throw Error(_0x16fca7(0x136));}}}catch(_0x2146d1){throw Error(_0x16fca7(0x12f)+_0x2146d1[_0x16fca7(0x13c)]);}return{'contentHash':createHash(_0x16fca7(0x142))['update'](_0x3807f1)[_0x16fca7(0x139)](_0x16fca7(0x12e)),'type':_0x37abef,'size':_0x3807f1[_0x16fca7(0x131)],'bytes':_0x3807f1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a142_0x24f1d5=a142_0x2884;(function(_0x1b7db5,_0x358fe1){const _0x4f0e43=a142_0x2884,_0x339cce=_0x1b7db5();while(!![]){try{const _0x5d6e2a=-parseInt(_0x4f0e43(0x12b))/0x1+-parseInt(_0x4f0e43(0x13e))/0x2*(parseInt(_0x4f0e43(0x16e))/0x3)+-parseInt(_0x4f0e43(0x152))/0x4*(parseInt(_0x4f0e43(0x172))/0x5)+-parseInt(_0x4f0e43(0x13b))/0x6*(parseInt(_0x4f0e43(0x17f))/0x7)+-parseInt(_0x4f0e43(0x149))/0x8+-parseInt(_0x4f0e43(0x146))/0x9*(parseInt(_0x4f0e43(0x109))/0xa)+-parseInt(_0x4f0e43(0x107))/0xb*(-parseInt(_0x4f0e43(0x177))/0xc);if(_0x5d6e2a===_0x358fe1)break;else _0x339cce['push'](_0x339cce['shift']());}catch(_0x552703){_0x339cce['push'](_0x339cce['shift']());}}}(a142_0x2490,0xc4acb));import a142_0x433f68 from'node:path';import{SaxesParser}from'saxes';function a142_0x2884(_0x198dd7,_0x37c0a2){_0x198dd7=_0x198dd7-0xed;const _0x249050=a142_0x2490();let _0x28846a=_0x249050[_0x198dd7];return _0x28846a;}const SHEET=['http://schemas.openxmlformats.org/spreadsheetml/2006/main','http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=[a142_0x24f1d5(0x133),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a142_0x24f1d5(0x121),'http://purl.oclc.org/ooxml/drawingml/main'],OFFICE_RELS=['http://schemas.openxmlformats.org/officeDocument/2006/relationships','http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a142_0x24f1d5(0x163)],RICH=[a142_0x24f1d5(0x14e)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x24f1d5(0x184)],DEFAULT_NS=Object[a142_0x24f1d5(0x187)]([...[a142_0x24f1d5(0x166),a142_0x24f1d5(0x10c),a142_0x24f1d5(0x169),a142_0x24f1d5(0x17d),'sheetData',a142_0x24f1d5(0x15f),'c','f','v','sheetFormatPr','drawing',a142_0x24f1d5(0x16f),a142_0x24f1d5(0x11b),a142_0x24f1d5(0x10a),a142_0x24f1d5(0xfe),a142_0x24f1d5(0x120),'bk','rc',a142_0x24f1d5(0xff)][a142_0x24f1d5(0x175)](_0x25b89d=>[_0x25b89d,SHEET]),...[a142_0x24f1d5(0x182),a142_0x24f1d5(0x15b),'twoCellAnchor',a142_0x24f1d5(0x17b),a142_0x24f1d5(0x144),'to',a142_0x24f1d5(0x14f),'colOff',a142_0x24f1d5(0x104),a142_0x24f1d5(0xfc),'pic',a142_0x24f1d5(0x18d),a142_0x24f1d5(0xf8),a142_0x24f1d5(0x12d)][a142_0x24f1d5(0x175)](_0x2ea95e=>[_0x2ea95e,DRAWING]),...[a142_0x24f1d5(0xf5),'rvData','rv',a142_0x24f1d5(0x140),'s','k'][a142_0x24f1d5(0x175)](_0x711756=>[_0x711756,RICH]),[a142_0x24f1d5(0x113),DRAWING_MAIN],[a142_0x24f1d5(0x167),RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],[a142_0x24f1d5(0xf6),PACKAGE],['cellImages',WPS],['cellImage',WPS]]),matches=(_0x27cd88,_0xbfc11c,_0x176931=DEFAULT_NS[_0xbfc11c]??[])=>_0x27cd88[a142_0x24f1d5(0x16a)]===_0xbfc11c&&_0x176931[a142_0x24f1d5(0xfd)](_0x27cd88[a142_0x24f1d5(0x183)]),children=(_0x595d81,_0x268dc9,_0x16a203=DEFAULT_NS[_0x268dc9])=>_0x595d81[a142_0x24f1d5(0xf0)][a142_0x24f1d5(0x190)](_0x4a3d96=>matches(_0x4a3d96,_0x268dc9,_0x16a203)),chain=(_0x4d05e0,..._0x3476fa)=>_0x3476fa[a142_0x24f1d5(0x192)]((_0x51da45,_0x2dba56)=>_0x51da45['flatMap'](_0xdd386d=>children(_0xdd386d,_0x2dba56)),[_0x4d05e0]),relationshipTypes=_0x3636ff=>{const _0x5278ac=a142_0x24f1d5;if(['rdRichValue',_0x5278ac(0x195)]['includes'](_0x3636ff))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x3636ff];if(_0x3636ff===_0x5278ac(0x112))return[_0x5278ac(0x11e)];if(_0x3636ff===_0x5278ac(0x132)||_0x3636ff===_0x5278ac(0x186))return[_0x5278ac(0x12c)+_0x3636ff];return OFFICE_RELS['map'](_0x356b27=>_0x356b27+'/'+_0x3636ff);};function one(_0x57c6c6,_0x4d057b){const _0x3ed012=a142_0x24f1d5;if(_0x57c6c6[_0x3ed012(0xf7)]!==0x1)throw Error(_0x3ed012(0x115)+_0x4d057b+'.');return _0x57c6c6[0x0];}function a142_0x2490(){const _0x51f7cc=['nvPicPr','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Missing\x20WPS\x20image\x20ID:\x20','filter','text','reduce','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','rich\x20metadata\x20record','rdRichValueStructure','Invalid\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','Unsupported\x20WPS\x20cell\x20image\x20namespace.','children','image','Value\x20metadata\x20index\x20must\x20be\x20one-based.','_rels','Unsupported\x20mapped\x20cell\x20metadata\x20type.','rvb','Relationship','length','cNvPr','replace','Image\x20XML\x20node\x20budget\x20exceeded.','has','ext','includes','futureMetadata','extLst','true','Relationship\x20target\x20escapes\x20workbook:\x20','doctype','image\x20height','rowOff','Unsupported\x20rich\x20structure\x20namespace.','test','49993702KyKIhr','Missing\x20XLSX\x20part:\x20','3085540aHiEbp','metadataType','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','sheets','Missing\x20rich\x20value.','slice','/xl/cellimages.xml','get','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','richValueRel','blip','Missing\x20rich\x20image\x20relationship.','Missing\x20or\x20ambiguous\x20','normalize','Relationships','rich\x20image\x20relationship\x20index','Unsupported\x20workbook\x20namespace.','anchor\x20start','metadataTypes','anchor\x20end\x20offset','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','http://schemas.microsoft.com/office/2022/10/relationships/richValueRel','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','valueMetadata','http://schemas.openxmlformats.org/drawingml/2006/main','pic','Unsupported\x20metadata\x20namespace.','anchor\x20column','xl/workbook.xml','write','Missing\x20local\x20image\x20identifier\x20value.','isFinite','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','value\x20metadata\x20index','350956EIMVRb','http://www.wps.cn/officeDocument/2017/relationships/','blipFill','charCodeAt','closetag','toLowerCase','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','cellImage','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','drawing','message','values','xl/cellimages.xml','rich\x20structure\x20index','set','rdRichValue','21354MTwqra','local','r:embed','69878XydQvO','shared','rvStructures','flatMap','round','rich\x20value\x20binding','from','_rvRel:LocalImageIdentifier','9OzIYHV','push','error','4261216zaCcNu','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','metadata\x20type\x20index','basename','type','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','col','Unsupported\x20relationship\x20namespace\x20in\x20','toString','3782708EAKlci','exec','r:link','rich\x20value\x20index','Invalid\x20relationship\x20target:\x20','Ambiguous\x20XML\x20attribute.','add','attrs','isSafeInteger','oneCellAnchor','Missing\x20future\x20metadata\x20block.','twoCellAnchor','Duplicate\x20mapped\x20image\x20cell.','row','anchor\x20start\x20offset','#VALUE!','xl/','http://schemas.openxmlformats.org/package/2006/relationships','hidden','Internal','workbook','richValueRels','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','sheet','name','hidden\x20image\x20row','posix','../','66zVsfYf','metadata','XML\x20DTD/entities\x20are\x20not\x20supported.','image\x20row\x20height\x20coordinate','5sXHNvU','MAX_SAFE_INTEGER','Unsupported\x20drawing\x20image.','map','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','12QXAJFd','dirname','utf8','XLRICHVALUE','absoluteAnchor','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','worksheet','rvData','1638MfNnrv','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','wsDr','uri','http://www.wps.cn/officeDocument/2017/etCustomData','image\x20extent','cellImages','fromEntries','startsWith','Unsupported\x20mapped\x20rich\x20value\x20structure.','Unsupported\x20drawing\x20namespace.','Missing\x20value\x20metadata\x20block.','\x20relationship\x20in\x20'];a142_0x2490=function(){return _0x51f7cc;};return a142_0x2490();}function integer(_0x30697b,_0x1d4b07,_0x33b418=0x186a0){const _0x4bba7f=a142_0x24f1d5;if(!_0x30697b||!/^\d+$/[_0x4bba7f(0x106)](_0x30697b)||!Number[_0x4bba7f(0x15a)](Number(_0x30697b))||Number(_0x30697b)>_0x33b418)throw Error(_0x4bba7f(0xed)+_0x1d4b07+'.');return Number(_0x30697b);}export function resolveWorksheetImages(_0x2b869b,_0x13d8e2,_0x45b1d6){const _0x343e6e=a142_0x24f1d5;let _0x5cbc1b=0x0,_0x833ce9=0x0,_0x2a8821=0x0;const _0x30326a=new Map(),_0x5d925e=_0x4834c5=>{const _0x487abc=a142_0x2884;if(_0x30326a[_0x487abc(0xfb)](_0x4834c5))return _0x30326a[_0x487abc(0x110)](_0x4834c5);const _0x3db389=_0x2b869b[_0x487abc(0x110)](_0x4834c5);if(!_0x3db389)throw Error(_0x487abc(0x108)+_0x4834c5+'.');const _0x2dc549={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x413b1d=[_0x2dc549],_0x23dc68=new SaxesParser({'xmlns':!![]}),_0x2c0112=()=>{if(++_0x833ce9>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x23dc68['on'](_0x487abc(0x102),()=>{const _0x5198e6=_0x487abc;throw Error(_0x5198e6(0x170));}),_0x23dc68['on']('opentag',_0x43c0de=>{const _0xe7b3dc=_0x487abc;_0x2c0112();if(++_0x5cbc1b>0x7a120||_0x413b1d['length']>0x40)throw Error(_0xe7b3dc(0xfa));const _0x49a6db={};for(const _0x14b47d of Object[_0xe7b3dc(0x136)](_0x43c0de['attributes'])){const _0x32cb77=OFFICE_RELS[_0xe7b3dc(0xfd)](_0x14b47d['uri'])?'r:'+_0x14b47d[_0xe7b3dc(0x13c)]:_0x14b47d['uri']?'{'+_0x14b47d[_0xe7b3dc(0x183)]+'}'+_0x14b47d[_0xe7b3dc(0x13c)]:_0x14b47d['local'];if(_0x32cb77 in _0x49a6db)throw Error(_0xe7b3dc(0x157));_0x49a6db[_0x32cb77]=_0x14b47d['value'];}const _0x28ff83={'name':_0x43c0de[_0xe7b3dc(0x13c)],'uri':_0x43c0de[_0xe7b3dc(0x183)],'attrs':_0x49a6db,'children':[],'text':''};_0x413b1d['at'](-0x1)[_0xe7b3dc(0xf0)][_0xe7b3dc(0x147)](_0x28ff83),_0x413b1d['push'](_0x28ff83);}),_0x23dc68['on'](_0x487abc(0x191),_0x2865fd=>{const _0x533ffc=_0x487abc;_0x2c0112();const _0x45f890=_0x413b1d['at'](-0x1);_0x45f890[_0x533ffc(0x191)]+=_0x2865fd;if(_0x45f890['text'][_0x533ffc(0xf7)]>0x10000)throw Error(_0x533ffc(0x10b));}),_0x23dc68['on'](_0x487abc(0x12f),()=>{_0x2c0112(),_0x413b1d['pop']();}),_0x23dc68['on'](_0x487abc(0x148),_0x157cec=>{throw _0x157cec;}),_0x23dc68[_0x487abc(0x126)](_0x3db389[_0x487abc(0x151)](_0x487abc(0x179)))['close']();const _0x299ef9=one(_0x2dc549['children'],_0x4834c5);return _0x30326a[_0x487abc(0x139)](_0x4834c5,_0x299ef9),_0x299ef9;},_0x479aa4=new Map(),_0x338edf=_0x5cf01f=>{const _0x49b5e3=a142_0x2884;if(_0x479aa4[_0x49b5e3(0xfb)](_0x5cf01f))return _0x479aa4[_0x49b5e3(0x110)](_0x5cf01f);const _0x1d06e7=a142_0x433f68[_0x49b5e3(0x16c)]['join'](a142_0x433f68[_0x49b5e3(0x16c)]['dirname'](_0x5cf01f),_0x49b5e3(0xf3),a142_0x433f68[_0x49b5e3(0x16c)][_0x49b5e3(0x14c)](_0x5cf01f)+'.rels');if(!_0x2b869b[_0x49b5e3(0xfb)](_0x1d06e7))return[];const _0x2bae2b=new Set(),_0x2caa9d=_0x5d925e(_0x1d06e7);if(!matches(_0x2caa9d,_0x49b5e3(0x117)))throw Error(_0x49b5e3(0x150)+_0x1d06e7+'.');const _0x32e11f=children(_0x2caa9d,'Relationship')['map'](_0x2be517=>{const _0x51e01d=_0x49b5e3,{Id:_0x5a6ab2,Type:_0x20629c,Target:_0x31a36f,TargetMode:_0x1e75cb}=_0x2be517[_0x51e01d(0x159)];if(!_0x5a6ab2||_0x2bae2b[_0x51e01d(0xfb)](_0x5a6ab2)||!_0x20629c)throw Error(_0x51e01d(0x129)+_0x1d06e7+'.');return _0x2bae2b['add'](_0x5a6ab2),{'id':_0x5a6ab2,'type':_0x20629c,'target':_0x31a36f??'','mode':_0x1e75cb};});return _0x479aa4[_0x49b5e3(0x139)](_0x5cf01f,_0x32e11f),_0x32e11f;},_0x1a7124=(_0x3ef1f8,_0x2d54d0)=>{const _0x2baf8c=a142_0x2884,{target:_0x300d7d,mode:_0x429cff}=_0x2d54d0;if(_0x429cff&&_0x429cff!==_0x2baf8c(0x165))throw Error(_0x2baf8c(0x176)+_0x3ef1f8+'.');if(!_0x300d7d||_0x300d7d[_0x2baf8c(0xfd)]('\x5c')||/[?#%\x00-\x20]/[_0x2baf8c(0x106)](_0x300d7d)||/^[a-z][a-z0-9+.-]*:/i[_0x2baf8c(0x106)](_0x300d7d)||_0x300d7d[_0x2baf8c(0x188)]('//'))throw Error(_0x2baf8c(0x156)+_0x3ef1f8+'.');const _0x355fbb=_0x300d7d['startsWith']('/')?_0x300d7d[_0x2baf8c(0x10e)](0x1):a142_0x433f68[_0x2baf8c(0x16c)][_0x2baf8c(0x116)](a142_0x433f68['posix']['join'](a142_0x433f68[_0x2baf8c(0x16c)][_0x2baf8c(0x178)](_0x3ef1f8),_0x300d7d));if(_0x355fbb['startsWith'](_0x2baf8c(0x16d))||_0x355fbb==='..'||!_0x355fbb['startsWith'](_0x2baf8c(0x162)))throw Error(_0x2baf8c(0x101)+_0x3ef1f8+'.');return _0x355fbb;},_0x35898c=(_0x4eed20,_0x306a01,_0x3405e3)=>{const _0x2ce70f=a142_0x2884,_0x2b01af=_0x338edf(_0x4eed20)[_0x2ce70f(0x190)](_0x551cdb=>_0x551cdb['id']===_0x306a01&&relationshipTypes(_0x3405e3)[_0x2ce70f(0xfd)](_0x551cdb[_0x2ce70f(0x14d)]));if(_0x2b01af[_0x2ce70f(0xf7)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x3405e3+_0x2ce70f(0x18c)+_0x4eed20+'.');return _0x1a7124(_0x4eed20,_0x2b01af[0x0]);},_0x4a0b1b=(_0x3e70a1,_0x44731c)=>{const _0x463f90=a142_0x2884,_0xf737d1=_0x338edf(_0x3e70a1)['filter'](_0x421f05=>relationshipTypes(_0x44731c)[_0x463f90(0xfd)](_0x421f05[_0x463f90(0x14d)]));if(_0xf737d1[_0x463f90(0xf7)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x44731c+'\x20relationship\x20in\x20'+_0x3e70a1+'.');return _0x1a7124(_0x3e70a1,_0xf737d1[0x0]);},_0x9e1eee=_0x343e6e(0x125),_0x575d63=_0x5d925e(_0x9e1eee);if(!matches(_0x575d63,_0x343e6e(0x166)))throw Error(_0x343e6e(0x119));const _0x11d679=one(chain(_0x575d63,_0x343e6e(0x10c),_0x343e6e(0x169))[_0x343e6e(0x190)](_0x4c6bb1=>_0x4c6bb1['attrs'][_0x343e6e(0x16a)]===_0x13d8e2),'worksheet'),_0x267d74=_0x35898c(_0x9e1eee,_0x11d679['attrs']['r:id'],'worksheet'),_0x4d9f06=_0x5d925e(_0x267d74);if(!matches(_0x4d9f06,_0x343e6e(0x17d)))throw Error('Unsupported\x20worksheet\x20namespace.');const _0x38e469=chain(_0x4d9f06,'sheetData','row'),_0x73ac0c=new Map(),_0x52bb0b=new Set(_0x38e469[_0x343e6e(0x190)](_0x258784=>_0x258784[_0x343e6e(0x159)][_0x343e6e(0x164)]==='1'||_0x258784[_0x343e6e(0x159)][_0x343e6e(0x164)]===_0x343e6e(0x100))[_0x343e6e(0x175)](_0x49b9c6=>integer(_0x49b9c6['attrs']['r'],_0x343e6e(0x16b)))),_0x56d069=_0x28d294=>{const _0x43c566=_0x343e6e,_0x314bec=_0x28d294===undefined?0xf:Number(_0x28d294);if(!Number[_0x43c566(0x128)](_0x314bec)||_0x314bec<=0x0||_0x314bec>409.5)throw Error(_0x43c566(0x168));return Math[_0x43c566(0x142)](_0x314bec*0x319c);},_0x4f26fa=_0x56d069(children(_0x4d9f06,'sheetFormatPr')[0x0]?.[_0x343e6e(0x159)]['defaultRowHeight']);for(const _0x538023 of _0x38e469)if(_0x538023['attrs']['ht']!==undefined)_0x73ac0c[_0x343e6e(0x139)](integer(_0x538023[_0x343e6e(0x159)]['r'],_0x343e6e(0x171)),_0x56d069(_0x538023[_0x343e6e(0x159)]['ht']));const _0x2126cc=[],_0x2b062e=_0x28079f=>{const _0x577a31=_0x343e6e;if(!_0x45b1d6[_0x577a31(0xfb)](_0x28079f[_0x577a31(0x14f)]))return;if(++_0x2a8821>0x2710)throw Error(_0x577a31(0x17c));_0x2126cc[_0x577a31(0x147)](_0x52bb0b[_0x577a31(0xfb)](_0x28079f['row'])?{..._0x28079f,'hiddenRow':!![]}:_0x28079f);},_0xee587b=_0x34ebd5=>({'row':integer(one(children(_0x34ebd5,_0x343e6e(0x15f),DRAWING),'anchor\x20row')[_0x343e6e(0x191)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x34ebd5,_0x343e6e(0x14f)),_0x343e6e(0x124))[_0x343e6e(0x191)],_0x343e6e(0x124),0xff)+0x1});for(const _0x2e2554 of children(_0x4d9f06,'drawing')){const _0x2983fc=_0x35898c(_0x267d74,_0x2e2554[_0x343e6e(0x159)]['r:id'],_0x343e6e(0x134)),_0x39f021=_0x5d925e(_0x2983fc);if(!matches(_0x39f021,_0x343e6e(0x182)))throw Error(_0x343e6e(0x18a));for(const _0x457793 of _0x39f021['children']){if(![_0x343e6e(0x15b),_0x343e6e(0x15d),_0x343e6e(0x17b)]['some'](_0x152a3f=>matches(_0x457793,_0x152a3f)))continue;if(_0x457793['name']===_0x343e6e(0x17b))throw Error(_0x343e6e(0x131)+_0x13d8e2+'.');const _0xa75f2a=_0xee587b(one(children(_0x457793,'from'),_0x343e6e(0x11a)));if(!_0x45b1d6[_0x343e6e(0xfb)](_0xa75f2a[_0x343e6e(0x14f)]))continue;let _0x1988ad;const _0x144a5f=one(children(_0x457793,_0x343e6e(0x144)),_0x343e6e(0x11a)),_0x205637=integer(one(children(_0x144a5f,_0x343e6e(0x104)),_0x343e6e(0x160))[_0x343e6e(0x191)],'anchor\x20start\x20offset',Number[_0x343e6e(0x173)]),_0x2c9a9e=_0x73ac0c[_0x343e6e(0x110)](_0xa75f2a[_0x343e6e(0x15f)])??_0x4f26fa;if(_0x205637>=_0x2c9a9e)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0xa75f2a[_0x343e6e(0x15f)]+'.');if(_0x457793[_0x343e6e(0x16a)]===_0x343e6e(0x15b)){const _0x3e1944=one(children(_0x457793,'ext'),_0x343e6e(0x185)),_0xa84277=integer(_0x3e1944[_0x343e6e(0x159)]['cy'],_0x343e6e(0x103),Number[_0x343e6e(0x173)]);if(!_0xa84277||_0x205637+_0xa84277>_0x2c9a9e)_0x1988ad=_0x343e6e(0x11f);}if(_0x457793[_0x343e6e(0x16a)]===_0x343e6e(0x15d)){const _0xa61689=one(children(_0x457793,'to'),'anchor\x20end'),_0x5a9d18=_0xee587b(_0xa61689),_0xcf4799=integer(one(children(_0xa61689,_0x343e6e(0x104)),_0x343e6e(0x11c))[_0x343e6e(0x191)],_0x343e6e(0x11c),Number[_0x343e6e(0x173)]),_0x34a94b=_0x73ac0c['get'](_0x5a9d18[_0x343e6e(0x15f)])??_0x4f26fa;if(_0xcf4799>_0x34a94b||_0x5a9d18[_0x343e6e(0x15f)]===_0xa75f2a[_0x343e6e(0x15f)]&&_0xcf4799<=_0x205637)_0x1988ad='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x5a9d18[_0x343e6e(0x15f)]<_0xa75f2a['row']||_0x5a9d18['row']>_0xa75f2a['row']+0x1||_0x5a9d18[_0x343e6e(0x15f)]===_0xa75f2a['row']+0x1&&_0xcf4799!==0x0)_0x1988ad=_0x343e6e(0x11f);}const _0x4ebda7=chain(_0x457793,_0x343e6e(0x122),_0x343e6e(0x12d),_0x343e6e(0x113));for(const _0x1d8b1c of _0x4ebda7){if(_0x1d8b1c[_0x343e6e(0x159)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x2b062e({..._0xa75f2a,'media':[_0x35898c(_0x2983fc,_0x1d8b1c[_0x343e6e(0x159)][_0x343e6e(0x13d)],_0x343e6e(0xf1))],..._0x1988ad?{'error':_0x1988ad}:{}});}if(!_0x4ebda7['length'])_0x2b062e({..._0xa75f2a,'media':[],'error':_0x343e6e(0x174)});}}const _0x523852=_0x69f565=>{const _0x3f9bf6=_0x343e6e,_0x4baef8=_0x5d925e(_0x4a0b1b(_0x9e1eee,'sheetMetadata'));if(!matches(_0x4baef8,'metadata'))throw Error(_0x3f9bf6(0x123));const _0x59efa4=integer(_0x69f565[_0x3f9bf6(0x159)]['vm'],_0x3f9bf6(0x12a));if(!_0x59efa4)throw Error(_0x3f9bf6(0xf2));const _0x1953b9=children(one(children(_0x4baef8,_0x3f9bf6(0x120)),'valueMetadata'),'bk')[_0x59efa4-0x1];if(!_0x1953b9)throw Error(_0x3f9bf6(0x18b));const _0x305f22=one(children(_0x1953b9,'rc'),_0x3f9bf6(0x194)),_0x35dab8=integer(_0x305f22['attrs']['t'],_0x3f9bf6(0x14b)),_0x23bcf9=children(one(children(_0x4baef8,_0x3f9bf6(0x11b)),'metadata\x20types'),_0x3f9bf6(0x10a))[_0x35dab8-0x1];if(!_0x35dab8||_0x23bcf9?.[_0x3f9bf6(0x159)]['name']!=='XLRICHVALUE')throw Error(_0x3f9bf6(0xf4));const _0x327478=one(children(_0x4baef8,'futureMetadata')[_0x3f9bf6(0x190)](_0x7303f8=>_0x7303f8['attrs']['name']===_0x3f9bf6(0x17a)),'rich\x20future\x20metadata'),_0x496b33=children(_0x327478,'bk')[integer(_0x305f22[_0x3f9bf6(0x159)]['v'],'future\x20metadata\x20index')];if(!_0x496b33)throw Error(_0x3f9bf6(0x15c));const _0x582ee9=chain(_0x496b33,_0x3f9bf6(0xff))['flatMap'](_0x90563b=>children(_0x90563b,'ext',SHEET))[_0x3f9bf6(0x190)](_0x5dc1b6=>_0x5dc1b6[_0x3f9bf6(0x159)][_0x3f9bf6(0x183)]?.[_0x3f9bf6(0x130)]()===_0x3f9bf6(0x111)),_0x3afe76=integer(one(_0x582ee9[_0x3f9bf6(0x141)](_0x5f4751=>children(_0x5f4751,_0x3f9bf6(0xf5))),_0x3f9bf6(0x143))[_0x3f9bf6(0x159)]['i'],_0x3f9bf6(0x155)),_0x484ef0=_0x5d925e(_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x13a)));if(!matches(_0x484ef0,_0x3f9bf6(0x17e)))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x1cbf12=children(_0x484ef0,'rv')[_0x3afe76];if(!_0x1cbf12)throw Error(_0x3f9bf6(0x10d));const _0xd9f29a=_0x5d925e(_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x195)));if(!matches(_0xd9f29a,_0x3f9bf6(0x140)))throw Error(_0x3f9bf6(0x105));const _0x45a6be=children(_0xd9f29a,'s')[integer(_0x1cbf12['attrs']['s'],_0x3f9bf6(0x138))];if(!_0x45a6be||_0x45a6be[_0x3f9bf6(0x159)]['t']!=='_localImage')throw Error(_0x3f9bf6(0x189));const _0x4ce79a=children(_0x45a6be,'k'),_0xee6841=_0x4ce79a[_0x3f9bf6(0x175)]((_0x919d3b,_0x47e5cd)=>_0x919d3b[_0x3f9bf6(0x159)]['n']===_0x3f9bf6(0x145)?_0x47e5cd:-0x1)[_0x3f9bf6(0x190)](_0x551918=>_0x551918>=0x0);if(_0xee6841['length']!==0x1)throw Error(_0x3f9bf6(0x193));const _0x59d79e=children(_0x1cbf12,'v',RICH)[_0xee6841[0x0]];if(!_0x59d79e)throw Error(_0x3f9bf6(0x127));const _0x1af2f0=_0x4a0b1b(_0x9e1eee,_0x3f9bf6(0x112)),_0x528a8a=_0x5d925e(_0x1af2f0);if(!matches(_0x528a8a,_0x3f9bf6(0x167)))throw Error('Unsupported\x20rich\x20image\x20relation\x20namespace.');const _0x7a12a8=children(_0x528a8a,'rel')[integer(_0x59d79e[_0x3f9bf6(0x191)],_0x3f9bf6(0x118))];if(!_0x7a12a8)throw Error(_0x3f9bf6(0x114));return _0x35898c(_0x1af2f0,_0x7a12a8[_0x3f9bf6(0x159)]['r:id'],'image');};let _0x27ac3e;const _0x23deb3=_0x9a7c65=>{const _0x5c3eea=_0x343e6e;if(!_0x27ac3e){_0x27ac3e=new Map();const _0x548534=_0x338edf(_0x9e1eee)['filter'](_0x352f7e=>[...relationshipTypes(_0x5c3eea(0x132)),...relationshipTypes(_0x5c3eea(0x186))][_0x5c3eea(0xfd)](_0x352f7e[_0x5c3eea(0x14d)]));if(!_0x548534[_0x5c3eea(0xf7)]&&_0x2b869b[_0x5c3eea(0xfb)](_0x5c3eea(0x137)))_0x548534['push']({'id':'','type':'','target':_0x5c3eea(0x10f)});if(_0x548534['length']!==0x1)throw Error('Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.');const _0xddb758=_0x1a7124(_0x9e1eee,_0x548534[0x0]),_0xde959f=_0x5d925e(_0xddb758);if(!matches(_0xde959f,_0x5c3eea(0x186)))throw Error(_0x5c3eea(0xef));for(const _0xb45eca of children(_0xde959f,_0x5c3eea(0x132))){const _0x220b12=one(chain(_0xb45eca,_0x5c3eea(0x122),_0x5c3eea(0x18d),'cNvPr'),'WPS\x20image\x20name')[_0x5c3eea(0x159)][_0x5c3eea(0x16a)];if(!_0x220b12||_0x27ac3e['has'](_0x220b12))throw Error(_0x5c3eea(0x180));const _0x354852=one(chain(_0xb45eca,_0x5c3eea(0x122),_0x5c3eea(0x12d),_0x5c3eea(0x113)),'WPS\x20image\x20blip');if(_0x354852['attrs'][_0x5c3eea(0x154)])throw Error(_0x5c3eea(0x18e));_0x27ac3e['set'](_0x220b12,_0x35898c(_0xddb758,_0x354852[_0x5c3eea(0x159)][_0x5c3eea(0x13d)],_0x5c3eea(0xf1)));}}const _0x15c59d=_0x27ac3e[_0x5c3eea(0x110)](_0x9a7c65);if(!_0x15c59d)throw Error(_0x5c3eea(0x18f)+_0x9a7c65+'.');return _0x15c59d;},_0x4a9d85=new Set();for(const _0x5e298c of _0x38e469[_0x343e6e(0x141)](_0x23d5bb=>children(_0x23d5bb,'c'))){const _0x103ca0=/^([A-Z]+)([1-9]\d*)$/[_0x343e6e(0x153)](_0x5e298c[_0x343e6e(0x159)]['r']??'');if(!_0x103ca0)continue;let _0x4815b2=0x0;for(const _0x4c67f1 of _0x103ca0[0x1])_0x4815b2=_0x4815b2*0x1a+_0x4c67f1[_0x343e6e(0x12e)](0x0)-0x40;if(!_0x45b1d6[_0x343e6e(0xfb)](_0x4815b2))continue;const _0x4a2882=integer(_0x103ca0[0x2],'image\x20cell\x20row');if(_0x4a9d85[_0x343e6e(0xfb)](_0x5e298c['attrs']['r']))throw Error(_0x343e6e(0x15e));_0x4a9d85[_0x343e6e(0x158)](_0x5e298c[_0x343e6e(0x159)]['r']);const _0x2b1fba=children(_0x5e298c,'f');if(!_0x5e298c['attrs']['vm']&&!_0x2b1fba[_0x343e6e(0xf7)])continue;try{if(_0x4a2882<0x1||_0x4815b2>0x100)throw Error(_0x343e6e(0x14a));let _0x32017b;if(_0x5e298c['attrs']['vm']){if(_0x2b1fba[_0x343e6e(0xf7)])throw Error(_0x343e6e(0x11d));if(_0x5e298c[_0x343e6e(0x159)]['t']!=='e'||children(_0x5e298c,'v')[_0x343e6e(0xf7)]!==0x1||children(_0x5e298c,'v')[0x0][_0x343e6e(0x191)]!==_0x343e6e(0x161))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x32017b=_0x523852(_0x5e298c);}else{const _0x36e8db=one(_0x2b1fba,'image\x20formula');if(_0x36e8db[_0x343e6e(0x159)]['t']===_0x343e6e(0x13f)||_0x36e8db['attrs']['si'])throw Error(_0x343e6e(0x181));const _0x316a1c=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x343e6e(0x153)](_0x36e8db[_0x343e6e(0x191)]);if(!_0x316a1c)throw Error(_0x343e6e(0xee));_0x32017b=_0x23deb3(_0x316a1c[0x1][_0x343e6e(0xf9)](/""/g,'\x22'));}_0x2b062e({'row':_0x4a2882,'col':_0x4815b2,'media':[_0x32017b],'nativeCell':!![]});}catch(_0x111c37){_0x2b062e({'row':_0x4a2882,'col':_0x4815b2,'media':[],'nativeCell':!![],'error':_0x111c37[_0x343e6e(0x135)]});}}return _0x2126cc;}
|
|
1
|
+
const a142_0x4636a1=a142_0x1eac;(function(_0x21c9af,_0xae08da){const _0x4e7691=a142_0x1eac,_0xc69491=_0x21c9af();while(!![]){try{const _0x24f129=parseInt(_0x4e7691(0x10d))/0x1*(parseInt(_0x4e7691(0xde))/0x2)+-parseInt(_0x4e7691(0xc9))/0x3*(parseInt(_0x4e7691(0x13d))/0x4)+parseInt(_0x4e7691(0x111))/0x5+-parseInt(_0x4e7691(0xce))/0x6+-parseInt(_0x4e7691(0xf4))/0x7+-parseInt(_0x4e7691(0x12c))/0x8+parseInt(_0x4e7691(0x106))/0x9;if(_0x24f129===_0xae08da)break;else _0xc69491['push'](_0xc69491['shift']());}catch(_0x570a4f){_0xc69491['push'](_0xc69491['shift']());}}}(a142_0x230e,0x507a6));function a142_0x1eac(_0x22d945,_0x26a95e){_0x22d945=_0x22d945-0xc5;const _0x230eb6=a142_0x230e();let _0x1eac14=_0x230eb6[_0x22d945];return _0x1eac14;}import a142_0x3deca5 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a142_0x4636a1(0x15b),a142_0x4636a1(0x14b)],DRAWING=[a142_0x4636a1(0xf9),a142_0x4636a1(0x169)],DRAWING_MAIN=[a142_0x4636a1(0x104),a142_0x4636a1(0x16a)],OFFICE_RELS=[a142_0x4636a1(0x13b),a142_0x4636a1(0x142)],PACKAGE=[a142_0x4636a1(0x164)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=[a142_0x4636a1(0xef)],DEFAULT_NS=Object[a142_0x4636a1(0x12d)]([...[a142_0x4636a1(0x11b),a142_0x4636a1(0x112),a142_0x4636a1(0x118),a142_0x4636a1(0x136),'sheetData','row','c','f','v',a142_0x4636a1(0xfe),a142_0x4636a1(0x15f),a142_0x4636a1(0xf6),a142_0x4636a1(0xe3),a142_0x4636a1(0x16f),'futureMetadata',a142_0x4636a1(0x168),'bk','rc',a142_0x4636a1(0x120)]['map'](_0x484cac=>[_0x484cac,SHEET]),...[a142_0x4636a1(0x10e),a142_0x4636a1(0x129),a142_0x4636a1(0x148),a142_0x4636a1(0x133),a142_0x4636a1(0x143),'to','col','colOff',a142_0x4636a1(0xd5),a142_0x4636a1(0x127),a142_0x4636a1(0x11c),a142_0x4636a1(0x10c),'cNvPr',a142_0x4636a1(0x11f)][a142_0x4636a1(0x113)](_0x34dd57=>[_0x34dd57,DRAWING]),...['rvb',a142_0x4636a1(0x121),'rv',a142_0x4636a1(0x134),'s','k'][a142_0x4636a1(0x113)](_0x99a9d0=>[_0x99a9d0,RICH]),[a142_0x4636a1(0x132),DRAWING_MAIN],['richValueRels',RICH_RELS],['rel',RICH_RELS],['Relationships',PACKAGE],['Relationship',PACKAGE],[a142_0x4636a1(0xed),WPS],[a142_0x4636a1(0x11a),WPS]]),matches=(_0x404b14,_0x55f41b,_0x4c26bd=DEFAULT_NS[_0x55f41b]??[])=>_0x404b14['name']===_0x55f41b&&_0x4c26bd[a142_0x4636a1(0xe1)](_0x404b14[a142_0x4636a1(0x149)]),children=(_0x5422af,_0x4fb881,_0x121d2b=DEFAULT_NS[_0x4fb881])=>_0x5422af[a142_0x4636a1(0xc8)]['filter'](_0x262e1c=>matches(_0x262e1c,_0x4fb881,_0x121d2b)),chain=(_0x44d979,..._0x1da97d)=>_0x1da97d[a142_0x4636a1(0x119)]((_0x3e865c,_0x93ddab)=>_0x3e865c['flatMap'](_0x53e2e0=>children(_0x53e2e0,_0x93ddab)),[_0x44d979]),relationshipTypes=_0x534ca0=>{const _0x1a4425=a142_0x4636a1;if([_0x1a4425(0x14d),_0x1a4425(0x13f)][_0x1a4425(0xe1)](_0x534ca0))return[_0x1a4425(0x13e)+_0x534ca0];if(_0x534ca0===_0x1a4425(0xcc))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x534ca0===_0x1a4425(0x11a)||_0x534ca0===_0x1a4425(0xed))return[_0x1a4425(0x109)+_0x534ca0];return OFFICE_RELS[_0x1a4425(0x113)](_0x3dccb8=>_0x3dccb8+'/'+_0x534ca0);};function one(_0x4552e6,_0x5bd8ea){const _0x3282df=a142_0x4636a1;if(_0x4552e6[_0x3282df(0xcf)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x5bd8ea+'.');return _0x4552e6[0x0];}function a142_0x230e(){const _0x516298=['Missing\x20rich\x20image\x20relationship.','Unsupported\x20rich\x20image\x20relation\x20namespace.','image','cellImages','flatMap','http://www.wps.cn/officeDocument/2017/etCustomData','r:embed','WPS\x20image\x20name','anchor\x20row','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','2301761VCvumt','Unsupported\x20WPS\x20cell\x20image\x20namespace.','metadata','value\x20metadata\x20index','anchor\x20end\x20offset','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','Unsupported\x20drawing\x20image.','isFinite','rich\x20value\x20binding','Ambiguous\x20XML\x20attribute.','sheetFormatPr','image\x20cell\x20row','Missing\x20XLSX\x20part:\x20','Missing\x20WPS\x20image\x20ID:\x20','basename','text','http://schemas.openxmlformats.org/drawingml/2006/main','anchor\x20start','11042658WfhzKE','rvb','message','http://www.wps.cn/officeDocument/2017/relationships/','future\x20metadata\x20index','write','nvPicPr','2087WqDZky','wsDr','attrs','../','2693925reEdrD','sheets','map','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','startsWith','doctype','Unsupported\x20rich\x20value\x20namespace.','sheet','reduce','cellImage','workbook','pic','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','anchor\x20end','blipFill','extLst','rvData','test','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','type','filter','Unsupported\x20drawing\x20namespace.','ext','defaultRowHeight','oneCellAnchor','_rels','futureMetadata','4896408GqfKea','fromEntries','local','XLRICHVALUE','rich\x20image\x20relationship\x20index','Relationship','blip','absoluteAnchor','rvStructures','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','worksheet','rich\x20metadata\x20record','push','Unsupported\x20workbook\x20namespace.','get','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Duplicate\x20mapped\x20image\x20cell.','4uDrCls','http://schemas.microsoft.com/office/2017/06/relationships/','rdRichValueStructure','/xl/cellimages.xml','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/officeDocument/relationships','from','Unsupported\x20worksheet\x20namespace.','isSafeInteger','true','name','twoCellAnchor','uri','exec','http://purl.oclc.org/ooxml/spreadsheetml/main','\x20relationship\x20in\x20','rdRichValue','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','metadata\x20types','posix','Unsupported\x20relationship\x20namespace\x20in\x20','shared','replace','row','rich\x20future\x20metadata','Missing\x20or\x20ambiguous\x20','rich\x20structure\x20index','pop','anchor\x20start\x20offset','toString','http://schemas.openxmlformats.org/spreadsheetml/2006/main','normalize','r:link','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','drawing','has','join','WPS\x20image\x20blip','some','http://schemas.openxmlformats.org/package/2006/relationships','#VALUE!','Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','valueMetadata','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','http://purl.oclc.org/ooxml/drawingml/main','image\x20height','Missing\x20future\x20metadata\x20block.','set','Invalid\x20relationship\x20target:\x20','metadataType','col','Relationship\x20target\x20escapes\x20workbook:\x20','xl/','Unsupported\x20rich\x20structure\x20namespace.','children','1257885DsRVZq','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','image\x20formula','richValueRel','value','3235524FFwpuN','length','add','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','xl/cellimages.xml','Image\x20XML\x20node\x20budget\x20exceeded.','image\x20row\x20height\x20coordinate','rowOff','closetag','Missing\x20value\x20metadata\x20block.','Internal','Missing\x20local\x20image\x20identifier\x20value.','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','hidden','opentag','sheetMetadata','444exvNpI','.rels','Value\x20metadata\x20index\x20must\x20be\x20one-based.','includes','r:id','metadataTypes','dirname','sheetData','values','metadata\x20type\x20index','image\x20extent','MAX_SAFE_INTEGER'];a142_0x230e=function(){return _0x516298;};return a142_0x230e();}function integer(_0x39f232,_0x2833c4,_0x57e7b6=0x186a0){const _0x5293f0=a142_0x4636a1;if(!_0x39f232||!/^\d+$/['test'](_0x39f232)||!Number[_0x5293f0(0x145)](Number(_0x39f232))||Number(_0x39f232)>_0x57e7b6)throw Error('Invalid\x20'+_0x2833c4+'.');return Number(_0x39f232);}export function resolveWorksheetImages(_0x1573ad,_0x3def9a,_0x2ea37d){const _0x2bed5c=a142_0x4636a1;let _0x1e04e0=0x0,_0x96d02b=0x0,_0x58668e=0x0;const _0x216ba2=new Map(),_0x5e4348=_0x52fb21=>{const _0x3c5062=a142_0x1eac;if(_0x216ba2[_0x3c5062(0x160)](_0x52fb21))return _0x216ba2[_0x3c5062(0x13a)](_0x52fb21);const _0x5f269f=_0x1573ad[_0x3c5062(0x13a)](_0x52fb21);if(!_0x5f269f)throw Error(_0x3c5062(0x100)+_0x52fb21+'.');const _0x56f8b6={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x204384=[_0x56f8b6],_0x35dcd9=new SaxesParser({'xmlns':!![]}),_0x3cf7c7=()=>{if(++_0x96d02b>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x35dcd9['on'](_0x3c5062(0x116),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x35dcd9['on'](_0x3c5062(0xdc),_0xfa33c3=>{const _0xa642e9=_0x3c5062;_0x3cf7c7();if(++_0x1e04e0>0x7a120||_0x204384['length']>0x40)throw Error(_0xa642e9(0xd3));const _0x29b058={};for(const _0x13a7c9 of Object[_0xa642e9(0xe6)](_0xfa33c3['attributes'])){const _0x513b82=OFFICE_RELS[_0xa642e9(0xe1)](_0x13a7c9['uri'])?'r:'+_0x13a7c9[_0xa642e9(0x12e)]:_0x13a7c9[_0xa642e9(0x149)]?'{'+_0x13a7c9['uri']+'}'+_0x13a7c9[_0xa642e9(0x12e)]:_0x13a7c9[_0xa642e9(0x12e)];if(_0x513b82 in _0x29b058)throw Error(_0xa642e9(0xfd));_0x29b058[_0x513b82]=_0x13a7c9[_0xa642e9(0xcd)];}const _0x7776cd={'name':_0xfa33c3[_0xa642e9(0x12e)],'uri':_0xfa33c3[_0xa642e9(0x149)],'attrs':_0x29b058,'children':[],'text':''};_0x204384['at'](-0x1)[_0xa642e9(0xc8)]['push'](_0x7776cd),_0x204384[_0xa642e9(0x138)](_0x7776cd);}),_0x35dcd9['on'](_0x3c5062(0x103),_0x271771=>{const _0x4da006=_0x3c5062;_0x3cf7c7();const _0x65fb13=_0x204384['at'](-0x1);_0x65fb13[_0x4da006(0x103)]+=_0x271771;if(_0x65fb13[_0x4da006(0x103)]['length']>0x10000)throw Error('Image\x20XML\x20text\x20exceeds\x2064\x20KB.');}),_0x35dcd9['on'](_0x3c5062(0xd6),()=>{const _0x210d64=_0x3c5062;_0x3cf7c7(),_0x204384[_0x210d64(0x158)]();}),_0x35dcd9['on']('error',_0x4910e2=>{throw _0x4910e2;}),_0x35dcd9[_0x3c5062(0x10b)](_0x5f269f[_0x3c5062(0x15a)]('utf8'))['close']();const _0x47267b=one(_0x56f8b6[_0x3c5062(0xc8)],_0x52fb21);return _0x216ba2[_0x3c5062(0x16d)](_0x52fb21,_0x47267b),_0x47267b;},_0xaf60bf=new Map(),_0x4898c1=_0x46bc5b=>{const _0x1d57bd=a142_0x1eac;if(_0xaf60bf['has'](_0x46bc5b))return _0xaf60bf[_0x1d57bd(0x13a)](_0x46bc5b);const _0x323c02=a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0x161)](a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0xe4)](_0x46bc5b),_0x1d57bd(0x12a),a142_0x3deca5[_0x1d57bd(0x150)][_0x1d57bd(0x102)](_0x46bc5b)+_0x1d57bd(0xdf));if(!_0x1573ad[_0x1d57bd(0x160)](_0x323c02))return[];const _0x302425=new Set(),_0x1174ba=_0x5e4348(_0x323c02);if(!matches(_0x1174ba,'Relationships'))throw Error(_0x1d57bd(0x151)+_0x323c02+'.');const _0x1c0e5e=children(_0x1174ba,_0x1d57bd(0x131))['map'](_0xc73a=>{const _0x435c57=_0x1d57bd,{Id:_0x45cbdc,Type:_0xba920d,Target:_0x1af5c7,TargetMode:_0x30923a}=_0xc73a[_0x435c57(0x10f)];if(!_0x45cbdc||_0x302425[_0x435c57(0x160)](_0x45cbdc)||!_0xba920d)throw Error(_0x435c57(0x167)+_0x323c02+'.');return _0x302425['add'](_0x45cbdc),{'id':_0x45cbdc,'type':_0xba920d,'target':_0x1af5c7??'','mode':_0x30923a};});return _0xaf60bf['set'](_0x46bc5b,_0x1c0e5e),_0x1c0e5e;},_0x42b891=(_0x1f5f01,_0x4ceab2)=>{const _0x5c10e3=a142_0x1eac,{target:_0x29a9b8,mode:_0x5a20e8}=_0x4ceab2;if(_0x5a20e8&&_0x5a20e8!==_0x5c10e3(0xd8))throw Error(_0x5c10e3(0xd1)+_0x1f5f01+'.');if(!_0x29a9b8||_0x29a9b8['includes']('\x5c')||/[?#%\x00-\x20]/[_0x5c10e3(0x122)](_0x29a9b8)||/^[a-z][a-z0-9+.-]*:/i[_0x5c10e3(0x122)](_0x29a9b8)||_0x29a9b8['startsWith']('//'))throw Error(_0x5c10e3(0x16e)+_0x1f5f01+'.');const _0x19a5f1=_0x29a9b8[_0x5c10e3(0x115)]('/')?_0x29a9b8['slice'](0x1):a142_0x3deca5['posix'][_0x5c10e3(0x15c)](a142_0x3deca5[_0x5c10e3(0x150)][_0x5c10e3(0x161)](a142_0x3deca5[_0x5c10e3(0x150)]['dirname'](_0x1f5f01),_0x29a9b8));if(_0x19a5f1[_0x5c10e3(0x115)](_0x5c10e3(0x110))||_0x19a5f1==='..'||!_0x19a5f1[_0x5c10e3(0x115)](_0x5c10e3(0xc6)))throw Error(_0x5c10e3(0xc5)+_0x1f5f01+'.');return _0x19a5f1;},_0x5328af=(_0x5dbb4e,_0x4b77fc,_0xccd678)=>{const _0x7bb4f5=a142_0x1eac,_0x1230ad=_0x4898c1(_0x5dbb4e)[_0x7bb4f5(0x125)](_0x29d556=>_0x29d556['id']===_0x4b77fc&&relationshipTypes(_0xccd678)[_0x7bb4f5(0xe1)](_0x29d556[_0x7bb4f5(0x124)]));if(_0x1230ad['length']!==0x1)throw Error(_0x7bb4f5(0x156)+_0xccd678+_0x7bb4f5(0x14c)+_0x5dbb4e+'.');return _0x42b891(_0x5dbb4e,_0x1230ad[0x0]);},_0x587748=(_0x425f8d,_0x10c249)=>{const _0xde147d=a142_0x1eac,_0x1fed7e=_0x4898c1(_0x425f8d)[_0xde147d(0x125)](_0x2f2104=>relationshipTypes(_0x10c249)[_0xde147d(0xe1)](_0x2f2104[_0xde147d(0x124)]));if(_0x1fed7e['length']!==0x1)throw Error(_0xde147d(0x156)+_0x10c249+_0xde147d(0x14c)+_0x425f8d+'.');return _0x42b891(_0x425f8d,_0x1fed7e[0x0]);},_0x45f622='xl/workbook.xml',_0x2a1f2d=_0x5e4348(_0x45f622);if(!matches(_0x2a1f2d,_0x2bed5c(0x11b)))throw Error(_0x2bed5c(0x139));const _0x4f3bb0=one(chain(_0x2a1f2d,_0x2bed5c(0x112),_0x2bed5c(0x118))[_0x2bed5c(0x125)](_0x1c862c=>_0x1c862c[_0x2bed5c(0x10f)][_0x2bed5c(0x147)]===_0x3def9a),_0x2bed5c(0x136)),_0x33e233=_0x5328af(_0x45f622,_0x4f3bb0[_0x2bed5c(0x10f)][_0x2bed5c(0xe2)],'worksheet'),_0x1fbfaf=_0x5e4348(_0x33e233);if(!matches(_0x1fbfaf,_0x2bed5c(0x136)))throw Error(_0x2bed5c(0x144));const _0x10d478=chain(_0x1fbfaf,_0x2bed5c(0xe5),'row'),_0x4d6679=new Map(),_0x302590=new Set(_0x10d478[_0x2bed5c(0x125)](_0x42c33b=>_0x42c33b[_0x2bed5c(0x10f)]['hidden']==='1'||_0x42c33b[_0x2bed5c(0x10f)][_0x2bed5c(0xdb)]===_0x2bed5c(0x146))[_0x2bed5c(0x113)](_0x1e66a0=>integer(_0x1e66a0['attrs']['r'],'hidden\x20image\x20row'))),_0x1a8442=_0x57cbc3=>{const _0x2afbc6=_0x2bed5c,_0x25df3f=_0x57cbc3===undefined?0xf:Number(_0x57cbc3);if(!Number[_0x2afbc6(0xfb)](_0x25df3f)||_0x25df3f<=0x0||_0x25df3f>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math['round'](_0x25df3f*0x319c);},_0x3c4793=_0x1a8442(children(_0x1fbfaf,_0x2bed5c(0xfe))[0x0]?.[_0x2bed5c(0x10f)][_0x2bed5c(0x128)]);for(const _0x3fc661 of _0x10d478)if(_0x3fc661[_0x2bed5c(0x10f)]['ht']!==undefined)_0x4d6679['set'](integer(_0x3fc661['attrs']['r'],_0x2bed5c(0xd4)),_0x1a8442(_0x3fc661[_0x2bed5c(0x10f)]['ht']));const _0x5cb867=[],_0x45adf8=_0x1135c9=>{const _0x13f739=_0x2bed5c;if(!_0x2ea37d[_0x13f739(0x160)](_0x1135c9['col']))return;if(++_0x58668e>0x2710)throw Error(_0x13f739(0x15e));_0x5cb867[_0x13f739(0x138)](_0x302590[_0x13f739(0x160)](_0x1135c9[_0x13f739(0x154)])?{..._0x1135c9,'hiddenRow':!![]}:_0x1135c9);},_0x15c399=_0x317019=>({'row':integer(one(children(_0x317019,_0x2bed5c(0x154),DRAWING),'anchor\x20row')[_0x2bed5c(0x103)],_0x2bed5c(0xf2),0x1869f)+0x1,'col':integer(one(children(_0x317019,_0x2bed5c(0x170)),'anchor\x20column')[_0x2bed5c(0x103)],'anchor\x20column',0xff)+0x1});for(const _0x290546 of children(_0x1fbfaf,_0x2bed5c(0x15f))){const _0x458f60=_0x5328af(_0x33e233,_0x290546['attrs'][_0x2bed5c(0xe2)],'drawing'),_0x18930e=_0x5e4348(_0x458f60);if(!matches(_0x18930e,_0x2bed5c(0x10e)))throw Error(_0x2bed5c(0x126));for(const _0x8bba27 of _0x18930e['children']){if(![_0x2bed5c(0x129),_0x2bed5c(0x148),_0x2bed5c(0x133)][_0x2bed5c(0x163)](_0x12f52f=>matches(_0x8bba27,_0x12f52f)))continue;if(_0x8bba27['name']===_0x2bed5c(0x133))throw Error('Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20'+_0x3def9a+'.');const _0x216977=_0x15c399(one(children(_0x8bba27,_0x2bed5c(0x143)),_0x2bed5c(0x105)));if(!_0x2ea37d[_0x2bed5c(0x160)](_0x216977[_0x2bed5c(0x170)]))continue;let _0x51210c;const _0x651221=one(children(_0x8bba27,_0x2bed5c(0x143)),_0x2bed5c(0x105)),_0x2dc186=integer(one(children(_0x651221,_0x2bed5c(0xd5)),_0x2bed5c(0x159))[_0x2bed5c(0x103)],'anchor\x20start\x20offset',Number['MAX_SAFE_INTEGER']),_0x40624c=_0x4d6679[_0x2bed5c(0x13a)](_0x216977[_0x2bed5c(0x154)])??_0x3c4793;if(_0x2dc186>=_0x40624c)throw Error(_0x2bed5c(0x123)+_0x216977[_0x2bed5c(0x154)]+'.');if(_0x8bba27[_0x2bed5c(0x147)]===_0x2bed5c(0x129)){const _0x18cd94=one(children(_0x8bba27,_0x2bed5c(0x127)),_0x2bed5c(0xe8)),_0x128efd=integer(_0x18cd94[_0x2bed5c(0x10f)]['cy'],_0x2bed5c(0x16b),Number[_0x2bed5c(0xe9)]);if(!_0x128efd||_0x2dc186+_0x128efd>_0x40624c)_0x51210c=_0x2bed5c(0xf3);}if(_0x8bba27['name']===_0x2bed5c(0x148)){const _0x52e457=one(children(_0x8bba27,'to'),_0x2bed5c(0x11e)),_0x5c1f75=_0x15c399(_0x52e457),_0x57ab10=integer(one(children(_0x52e457,_0x2bed5c(0xd5)),_0x2bed5c(0xf8))['text'],'anchor\x20end\x20offset',Number[_0x2bed5c(0xe9)]),_0x2d52da=_0x4d6679['get'](_0x5c1f75[_0x2bed5c(0x154)])??_0x3c4793;if(_0x57ab10>_0x2d52da||_0x5c1f75['row']===_0x216977[_0x2bed5c(0x154)]&&_0x57ab10<=_0x2dc186)_0x51210c=_0x2bed5c(0xca);if(_0x5c1f75[_0x2bed5c(0x154)]<_0x216977[_0x2bed5c(0x154)]||_0x5c1f75[_0x2bed5c(0x154)]>_0x216977[_0x2bed5c(0x154)]+0x1||_0x5c1f75[_0x2bed5c(0x154)]===_0x216977[_0x2bed5c(0x154)]+0x1&&_0x57ab10!==0x0)_0x51210c=_0x2bed5c(0xf3);}const _0x20a468=chain(_0x8bba27,'pic','blipFill',_0x2bed5c(0x132));for(const _0x461ba2 of _0x20a468){if(_0x461ba2['attrs'][_0x2bed5c(0x15d)])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x45adf8({..._0x216977,'media':[_0x5328af(_0x458f60,_0x461ba2['attrs']['r:embed'],_0x2bed5c(0xec))],..._0x51210c?{'error':_0x51210c}:{}});}if(!_0x20a468[_0x2bed5c(0xcf)])_0x45adf8({..._0x216977,'media':[],'error':_0x2bed5c(0xfa)});}}const _0x17c9b2=_0x13530a=>{const _0x3b0915=_0x2bed5c,_0x2b3c8d=_0x5e4348(_0x587748(_0x45f622,_0x3b0915(0xdd)));if(!matches(_0x2b3c8d,_0x3b0915(0xf6)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x3380ac=integer(_0x13530a[_0x3b0915(0x10f)]['vm'],_0x3b0915(0xf7));if(!_0x3380ac)throw Error(_0x3b0915(0xe0));const _0x193334=children(one(children(_0x2b3c8d,_0x3b0915(0x168)),_0x3b0915(0x168)),'bk')[_0x3380ac-0x1];if(!_0x193334)throw Error(_0x3b0915(0xd7));const _0x442cd9=one(children(_0x193334,'rc'),_0x3b0915(0x137)),_0x451d93=integer(_0x442cd9[_0x3b0915(0x10f)]['t'],_0x3b0915(0xe7)),_0x3a1cf0=children(one(children(_0x2b3c8d,_0x3b0915(0xe3)),_0x3b0915(0x14f)),_0x3b0915(0x16f))[_0x451d93-0x1];if(!_0x451d93||_0x3a1cf0?.[_0x3b0915(0x10f)][_0x3b0915(0x147)]!=='XLRICHVALUE')throw Error(_0x3b0915(0x141));const _0x58e605=one(children(_0x2b3c8d,_0x3b0915(0x12b))[_0x3b0915(0x125)](_0x253893=>_0x253893['attrs']['name']===_0x3b0915(0x12f)),_0x3b0915(0x155)),_0x459a9c=children(_0x58e605,'bk')[integer(_0x442cd9[_0x3b0915(0x10f)]['v'],_0x3b0915(0x10a))];if(!_0x459a9c)throw Error(_0x3b0915(0x16c));const _0x21628a=chain(_0x459a9c,_0x3b0915(0x120))[_0x3b0915(0xee)](_0x11d70a=>children(_0x11d70a,_0x3b0915(0x127),SHEET))[_0x3b0915(0x125)](_0x5d683d=>_0x5d683d[_0x3b0915(0x10f)]['uri']?.['toLowerCase']()===_0x3b0915(0x114)),_0x4d7ac3=integer(one(_0x21628a['flatMap'](_0xf4346=>children(_0xf4346,_0x3b0915(0x107))),_0x3b0915(0xfc))[_0x3b0915(0x10f)]['i'],'rich\x20value\x20index'),_0xa7849f=_0x5e4348(_0x587748(_0x45f622,'rdRichValue'));if(!matches(_0xa7849f,_0x3b0915(0x121)))throw Error(_0x3b0915(0x117));const _0x2236be=children(_0xa7849f,'rv')[_0x4d7ac3];if(!_0x2236be)throw Error('Missing\x20rich\x20value.');const _0x41ee0c=_0x5e4348(_0x587748(_0x45f622,_0x3b0915(0x13f)));if(!matches(_0x41ee0c,_0x3b0915(0x134)))throw Error(_0x3b0915(0xc7));const _0x484b5b=children(_0x41ee0c,'s')[integer(_0x2236be['attrs']['s'],_0x3b0915(0x157))];if(!_0x484b5b||_0x484b5b['attrs']['t']!=='_localImage')throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x56f9b2=children(_0x484b5b,'k'),_0x3a3a71=_0x56f9b2[_0x3b0915(0x113)]((_0x3b0de7,_0x5d8ceb)=>_0x3b0de7['attrs']['n']==='_rvRel:LocalImageIdentifier'?_0x5d8ceb:-0x1)[_0x3b0915(0x125)](_0x183df0=>_0x183df0>=0x0);if(_0x3a3a71[_0x3b0915(0xcf)]!==0x1)throw Error(_0x3b0915(0x14e));const _0x3caa18=children(_0x2236be,'v',RICH)[_0x3a3a71[0x0]];if(!_0x3caa18)throw Error(_0x3b0915(0xd9));const _0x303733=_0x587748(_0x45f622,_0x3b0915(0xcc)),_0x4c6754=_0x5e4348(_0x303733);if(!matches(_0x4c6754,'richValueRels'))throw Error(_0x3b0915(0xeb));const _0xba96e6=children(_0x4c6754,'rel')[integer(_0x3caa18[_0x3b0915(0x103)],_0x3b0915(0x130))];if(!_0xba96e6)throw Error(_0x3b0915(0xea));return _0x5328af(_0x303733,_0xba96e6[_0x3b0915(0x10f)][_0x3b0915(0xe2)],'image');};let _0x82e578;const _0x2ec0ad=_0x12081e=>{const _0xf5d461=_0x2bed5c;if(!_0x82e578){_0x82e578=new Map();const _0xe4c2fc=_0x4898c1(_0x45f622)[_0xf5d461(0x125)](_0x441185=>[...relationshipTypes(_0xf5d461(0x11a)),...relationshipTypes('cellImages')][_0xf5d461(0xe1)](_0x441185['type']));if(!_0xe4c2fc[_0xf5d461(0xcf)]&&_0x1573ad['has'](_0xf5d461(0xd2)))_0xe4c2fc[_0xf5d461(0x138)]({'id':'','type':'','target':_0xf5d461(0x140)});if(_0xe4c2fc[_0xf5d461(0xcf)]!==0x1)throw Error(_0xf5d461(0xda));const _0x1b446d=_0x42b891(_0x45f622,_0xe4c2fc[0x0]),_0x411f15=_0x5e4348(_0x1b446d);if(!matches(_0x411f15,'cellImages'))throw Error(_0xf5d461(0xf5));for(const _0x14dec2 of children(_0x411f15,_0xf5d461(0x11a))){const _0x36371d=one(chain(_0x14dec2,_0xf5d461(0x11c),_0xf5d461(0x10c),'cNvPr'),_0xf5d461(0xf1))['attrs'][_0xf5d461(0x147)];if(!_0x36371d||_0x82e578[_0xf5d461(0x160)](_0x36371d))throw Error(_0xf5d461(0x166));const _0x28637b=one(chain(_0x14dec2,_0xf5d461(0x11c),'blipFill','blip'),_0xf5d461(0x162));if(_0x28637b[_0xf5d461(0x10f)][_0xf5d461(0x15d)])throw Error('External\x20WPS\x20image\x20links\x20are\x20not\x20supported.');_0x82e578[_0xf5d461(0x16d)](_0x36371d,_0x5328af(_0x1b446d,_0x28637b[_0xf5d461(0x10f)][_0xf5d461(0xf0)],'image'));}}const _0x15c641=_0x82e578[_0xf5d461(0x13a)](_0x12081e);if(!_0x15c641)throw Error(_0xf5d461(0x101)+_0x12081e+'.');return _0x15c641;},_0x447677=new Set();for(const _0x7df624 of _0x10d478[_0x2bed5c(0xee)](_0x22d821=>children(_0x22d821,'c'))){const _0x1dbc54=/^([A-Z]+)([1-9]\d*)$/[_0x2bed5c(0x14a)](_0x7df624[_0x2bed5c(0x10f)]['r']??'');if(!_0x1dbc54)continue;let _0x46febf=0x0;for(const _0x4355c4 of _0x1dbc54[0x1])_0x46febf=_0x46febf*0x1a+_0x4355c4['charCodeAt'](0x0)-0x40;if(!_0x2ea37d[_0x2bed5c(0x160)](_0x46febf))continue;const _0x23a115=integer(_0x1dbc54[0x2],_0x2bed5c(0xff));if(_0x447677['has'](_0x7df624['attrs']['r']))throw Error(_0x2bed5c(0x13c));_0x447677[_0x2bed5c(0xd0)](_0x7df624[_0x2bed5c(0x10f)]['r']);const _0x5f2b69=children(_0x7df624,'f');if(!_0x7df624[_0x2bed5c(0x10f)]['vm']&&!_0x5f2b69[_0x2bed5c(0xcf)])continue;try{if(_0x23a115<0x1||_0x46febf>0x100)throw Error(_0x2bed5c(0x135));let _0x35b973;if(_0x7df624[_0x2bed5c(0x10f)]['vm']){if(_0x5f2b69['length'])throw Error(_0x2bed5c(0x11d));if(_0x7df624[_0x2bed5c(0x10f)]['t']!=='e'||children(_0x7df624,'v')[_0x2bed5c(0xcf)]!==0x1||children(_0x7df624,'v')[0x0]['text']!==_0x2bed5c(0x165))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x35b973=_0x17c9b2(_0x7df624);}else{const _0x253157=one(_0x5f2b69,_0x2bed5c(0xcb));if(_0x253157[_0x2bed5c(0x10f)]['t']===_0x2bed5c(0x152)||_0x253157[_0x2bed5c(0x10f)]['si'])throw Error('Shared\x20image\x20formulas\x20are\x20not\x20supported.');const _0x38ef79=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x2bed5c(0x14a)](_0x253157[_0x2bed5c(0x103)]);if(!_0x38ef79)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x35b973=_0x2ec0ad(_0x38ef79[0x1][_0x2bed5c(0x153)](/""/g,'\x22'));}_0x45adf8({'row':_0x23a115,'col':_0x46febf,'media':[_0x35b973],'nativeCell':!![]});}catch(_0x5c8dca){_0x45adf8({'row':_0x23a115,'col':_0x46febf,'media':[],'nativeCell':!![],'error':_0x5c8dca[_0x2bed5c(0x108)]});}}return _0x5cb867;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3b028f,_0x265c37){const _0x998737=a143_0x3a48,_0x370ad1=_0x3b028f();while(!![]){try{const _0x4abc79=-parseInt(_0x998737(0x1cb))/0x1+-parseInt(_0x998737(0x1b6))/0x2+-parseInt(_0x998737(0x1ba))/0x3+parseInt(_0x998737(0x1fc))/0x4+parseInt(_0x998737(0x1f0))/0x5+-parseInt(_0x998737(0x1cf))/0x6*(-parseInt(_0x998737(0x1ec))/0x7)+parseInt(_0x998737(0x1fb))/0x8;if(_0x4abc79===_0x265c37)break;else _0x370ad1['push'](_0x370ad1['shift']());}catch(_0x265f84){_0x370ad1['push'](_0x370ad1['shift']());}}}(a143_0x75a2,0x776fe));import{randomUUID,createHash}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0x75a2(){const _0x52cd1a=['1757946VfkTas','all','strategy','some','length','parse','values','imageCells','digest','contentHash','maxPixels','report','test','field','Image\x20cell\x20references\x20missing\x20media.','importId','update','33269cQQvmt','rows','schemaVersion','size','9420KLGVFx','media','actorId','fileName','Completed\x20image\x20checkpoint\x20value\x20changed.','gif','Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.','upload','contract','batchSize','version','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','utf8','hashes','imageFields','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','map','succeeded','rowNumber','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','bytes','key','binding','pending','Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.','schemaFingerprint','png','imageImport','rows-preparing','588PFltfp','runtimeDomain','image/png','resume','4300255MnGGiD','datasetCode','errors','mappingHash','image/jpeg','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','includes','types','Invalid\x20image\x20media\x20descriptor.','uploadFields','rows-started','2055624HbsyeY','926620kguqjb','Invalid\x20image\x20manifest\x20limits.','isArray','type','checkpoint','code','maxFileBytes','Invalid\x20import\x20batch\x20size.','completed','Invalid\x20image\x20readback\x20digest.','schemaHash','jpg','every','get','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','appCode','name','readback','sheet','image/gif','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','reduce','imageApi','.lock','ENOENT','phase','parserVersion','value','maxBatchBytes','stringify','filePath','sha256','manifest','hash','maxBatchSize','.lock.recovery','entries','744148wFTxxt','isSafeInteger','status','hex'];a143_0x75a2=function(){return _0x52cd1a;};return a143_0x75a2();}import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';function a143_0x3a48(_0x556f06,_0xf0eb2){_0x556f06=_0x556f06-0x1a0;const _0x75a20e=a143_0x75a2();let _0x3a489d=_0x75a20e[_0x556f06];return _0x3a489d;}import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';export function assertImageImportCapability(_0x1be937,_0xa03882){const _0x266176=a143_0x3a48;if(!_0xa03882['media']?.[_0x266176(0x1be)])return;const _0xfd6d3c=_0x1be937[_0x266176(0x1ea)];if(!_0xfd6d3c||_0xfd6d3c['version']!==0x1||_0xfd6d3c['uploadId']!==_0x266176(0x1b0)||_0xfd6d3c[_0x266176(0x202)]!==0xa00000||_0xfd6d3c[_0x266176(0x1c4)]!==0x2625a00||!Array[_0x266176(0x1fe)](_0xfd6d3c[_0x266176(0x1f7)])||![_0x266176(0x1ee),_0x266176(0x1f4),_0x266176(0x1a3)][_0x266176(0x208)](_0x16aa83=>_0xfd6d3c[_0x266176(0x1f7)]['includes'](_0x16aa83)))throw Error(_0x266176(0x1e2));}export function imageObjectValue(_0x4a5f54,_0x1b49ea,_0x4d5a4a){const _0x249b3a=a143_0x3a48,_0x2305e7=createHash(_0x249b3a(0x1b0))[_0x249b3a(0x1ca)](JSON[_0x249b3a(0x1ae)]([_0x4a5f54[_0x249b3a(0x1d1)],_0x4a5f54[_0x249b3a(0x20b)],_0x4a5f54[_0x249b3a(0x1f1)],_0x1b49ea]))[_0x249b3a(0x1c2)](_0x249b3a(0x1b9)),_0x4bfcb0={'image/png':_0x249b3a(0x1e9),'image/jpeg':_0x249b3a(0x207),'image/gif':_0x249b3a(0x1d4)}[_0x4d5a4a[_0x249b3a(0x1ff)]];if(!_0x4bfcb0||!/^[0-9a-f]{64}$/[_0x249b3a(0x1c6)](_0x4d5a4a['contentHash'])||!Number[_0x249b3a(0x1b7)](_0x4d5a4a[_0x249b3a(0x1ce)])||_0x4d5a4a['size']<=0x0||_0x4d5a4a[_0x249b3a(0x1ce)]>0xa00000)throw Error(_0x249b3a(0x1f8));const _0x442e37=_0x4d5a4a[_0x249b3a(0x1c3)]+'.'+_0x4bfcb0;return{'key':'dataset-import/'+_0x2305e7+'/'+_0x442e37,'name':_0x442e37,'type':_0x4d5a4a[_0x249b3a(0x1ff)],'size':_0x4d5a4a[_0x249b3a(0x1ce)]};}export function bindImageManifest(_0x3dafd7,_0x14d132,_0x8dccb0){const _0x1c2c92=a143_0x3a48,_0x86e53b=new Map(_0x3dafd7[_0x1c2c92(0x1d0)]?.[_0x1c2c92(0x1df)](_0x56f994=>[_0x56f994[_0x1c2c92(0x1c3)],_0x56f994])),_0x3a92dd=new Map(_0x3dafd7[_0x1c2c92(0x1c1)]?.['map'](_0x34b8c2=>[_0x34b8c2[_0x1c2c92(0x1e1)]+':'+_0x34b8c2[_0x1c2c92(0x1c7)],_0x34b8c2[_0x1c2c92(0x1dc)]]));return{..._0x3dafd7,'rows':_0x3dafd7['rows'][_0x1c2c92(0x1df)](_0x1404d0=>({..._0x1404d0,'values':Object['fromEntries'](Object[_0x1c2c92(0x1b5)](_0x1404d0[_0x1c2c92(0x1c0)])[_0x1c2c92(0x1df)](([_0x31babd,_0xfea31a])=>{const _0x1d24aa=_0x1c2c92,_0x323034=_0x3a92dd[_0x1d24aa(0x209)](_0x1404d0[_0x1d24aa(0x1e1)]+':'+_0x31babd);return[_0x31babd,_0x323034?_0x323034[_0x1d24aa(0x1df)](_0x1088c0=>{const _0x3ee87b=_0x1d24aa,_0x583798=_0x86e53b['get'](_0x1088c0);if(!_0x583798)throw Error(_0x3ee87b(0x1c8));const _0xda85ca=imageObjectValue(_0x14d132,_0x8dccb0,_0x583798);return _0x3dafd7['uploadFields']?.[_0x3ee87b(0x1f6)](_0x31babd)?{'fileName':_0xda85ca[_0x3ee87b(0x1a0)],'filePath':_0xda85ca[_0x3ee87b(0x1e4)]}:_0xda85ca;}):_0xfea31a];}))}))};}async function exists(_0x1acb07){const _0x6ef49c=a143_0x3a48;try{return await lstat(_0x1acb07),!![];}catch(_0x420060){if(_0x420060[_0x6ef49c(0x201)]===_0x6ef49c(0x1a9))return![];throw _0x420060;}}export async function runImageExcelImport(_0x2b3309){const _0x459ca3=a143_0x3a48;assertImportContract(_0x2b3309['contract'],_0x2b3309['appCode'],_0x2b3309['datasetCode']),assertImageImportCapability(_0x2b3309[_0x459ca3(0x1d7)],_0x2b3309[_0x459ca3(0x1b1)]);if(!Number['isInteger'](_0x2b3309[_0x459ca3(0x1d8)])||_0x2b3309[_0x459ca3(0x1d8)]<0x1||_0x2b3309[_0x459ca3(0x1d8)]>_0x2b3309['contract'][_0x459ca3(0x1b3)])throw Error(_0x459ca3(0x203));if(_0x2b3309[_0x459ca3(0x1b1)][_0x459ca3(0x1f2)][_0x459ca3(0x1be)]||!_0x2b3309[_0x459ca3(0x1b1)][_0x459ca3(0x1cc)][_0x459ca3(0x1be)])throw Error('Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.');const _0xbedb59=await resolveImportOutputPath(_0x2b3309[_0x459ca3(0x200)]),_0x29fa6e=await resolveImportOutputPath(_0x2b3309[_0x459ca3(0x1c5)]),_0x3126bf=await resolveImportOutputPath(_0xbedb59+'.rows.json'),_0x519d41=await Promise[_0x459ca3(0x1bb)]([_0x3126bf,_0x3126bf+'.lock',_0x3126bf+_0x459ca3(0x1b4),..._0x2b3309['inputPaths']??[]][_0x459ca3(0x1df)](resolveImportOutputPath));for(const _0x1cf3da of[_0xbedb59,_0x29fa6e,_0xbedb59+_0x459ca3(0x1a8),_0xbedb59+_0x459ca3(0x1b4)])await resolveImportOutputPath(_0x1cf3da);assertImportPaths(_0xbedb59,_0x29fa6e,_0x519d41);const {contract:_0x121504,manifest:_0xfdbce1}=_0x2b3309,_0x3448b4=_0xfdbce1[_0x459ca3(0x1d0)]??[];if(new Set(_0x3448b4[_0x459ca3(0x1df)](_0x253633=>_0x253633[_0x459ca3(0x1c3)]))[_0x459ca3(0x1ce)]!==_0x3448b4[_0x459ca3(0x1be)]||_0x3448b4[_0x459ca3(0x1a6)]((_0x50d238,_0x1a17e1)=>_0x50d238+_0x1a17e1[_0x459ca3(0x1ce)],0x0)>0x32*0x400*0x400||(_0xfdbce1[_0x459ca3(0x1c1)]??[])['reduce']((_0x814cf4,_0x11f00b)=>_0x814cf4+_0x11f00b[_0x459ca3(0x1dc)]['length'],0x0)>0x2710)throw Error(_0x459ca3(0x1fd));for(const _0xa927a3 of _0x3448b4)if(_0xa927a3[_0x459ca3(0x1ce)]!==_0xa927a3[_0x459ca3(0x1e3)][_0x459ca3(0x1be)]||createHash(_0x459ca3(0x1b0))[_0x459ca3(0x1ca)](_0xa927a3[_0x459ca3(0x1e3)])['digest'](_0x459ca3(0x1b9))!==_0xa927a3[_0x459ca3(0x1c3)])throw Error('Image\x20media\x20bytes\x20changed.');previewImportBatchCount(bindImageManifest(_0xfdbce1,_0x121504,'00000000-0000-4000-8000-000000000000'),_0x121504,_0x2b3309[_0x459ca3(0x1d8)]);const _0x2100c5={'appCode':_0x2b3309['appCode'],'datasetCode':_0x2b3309[_0x459ca3(0x1f1)],'runtimeDomain':_0x2b3309[_0x459ca3(0x1ed)],'actorId':_0x121504[_0x459ca3(0x1d1)],'fileHash':_0xfdbce1['fileHash'],'mappingHash':_0xfdbce1[_0x459ca3(0x1f3)],'schemaHash':_0xfdbce1[_0x459ca3(0x206)],'remoteSchemaHash':_0x121504[_0x459ca3(0x1e8)],'strategy':_0x121504[_0x459ca3(0x1bc)],'schemaVersion':_0x121504[_0x459ca3(0x1cd)],'batchSize':_0x2b3309[_0x459ca3(0x1d8)],'maxBatchBytes':_0x121504[_0x459ca3(0x1ad)],'sheet':_0xfdbce1[_0x459ca3(0x1a2)],'parserVersion':_0xfdbce1[_0x459ca3(0x1ab)],'imageFields':_0xfdbce1[_0x459ca3(0x1dd)],'cells':_0xfdbce1[_0x459ca3(0x1c1)],..._0xfdbce1[_0x459ca3(0x1f9)]?.[_0x459ca3(0x1be)]?{'uploadFields':_0xfdbce1[_0x459ca3(0x1f9)]}:{},'media':_0x3448b4[_0x459ca3(0x1df)](({contentHash:_0x41cbfb,type:_0x4ef620,size:_0x39dc39})=>({'contentHash':_0x41cbfb,'type':_0x4ef620,'size':_0x39dc39})),'rows':_0xfdbce1[_0x459ca3(0x1cc)]},_0x5e599b=await acquireLock(_0xbedb59);try{let _0x46ae73;if(_0x2b3309[_0x459ca3(0x1ef)]){try{_0x46ae73=JSON[_0x459ca3(0x1bf)](await readFile(_0xbedb59,_0x459ca3(0x1db)));}catch{throw Error(_0x459ca3(0x1da));}if(_0x46ae73[_0x459ca3(0x1d9)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/['test'](_0x46ae73[_0x459ca3(0x1c9)])||canonical(_0x46ae73[_0x459ca3(0x1e5)])!==canonical(_0x2100c5)||!['media',_0x459ca3(0x1eb),_0x459ca3(0x1fa),_0x459ca3(0x204)][_0x459ca3(0x1f6)](_0x46ae73['phase'])||!Array[_0x459ca3(0x1fe)](_0x46ae73[_0x459ca3(0x1d0)])||_0x46ae73[_0x459ca3(0x1d0)][_0x459ca3(0x1be)]!==_0x3448b4[_0x459ca3(0x1be)]||_0x46ae73[_0x459ca3(0x1d0)][_0x459ca3(0x1bd)]((_0x21385d,_0x2e3f44)=>_0x21385d[_0x459ca3(0x1b2)]!==_0x3448b4[_0x2e3f44]['contentHash']||![_0x459ca3(0x1e6),'succeeded'][_0x459ca3(0x1f6)](_0x21385d[_0x459ca3(0x1b8)])))throw Error('Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.');if([_0x459ca3(0x1fa),'completed'][_0x459ca3(0x1f6)](_0x46ae73[_0x459ca3(0x1aa)])&&!await exists(_0x3126bf))throw Error(_0x459ca3(0x1de));if(_0x46ae73['phase']===_0x459ca3(0x1d0)&&await exists(_0x3126bf))throw Error(_0x459ca3(0x1d5));}else{if(await exists(_0xbedb59)||await exists(_0x3126bf))throw Error(_0x459ca3(0x1a4));_0x46ae73={'version':0x3,'importId':randomUUID(),'binding':_0x2100c5,'phase':'media','media':_0x3448b4[_0x459ca3(0x1df)](_0x24e6f7=>({'hash':_0x24e6f7[_0x459ca3(0x1c3)],'status':_0x459ca3(0x1e6)}))},await saveImportJson(_0xbedb59,_0x46ae73);}const _0x71518f=(_0x52523a,_0x48ec9f)=>{const _0x227351=_0x459ca3;if(!_0x52523a||_0x52523a[_0x227351(0x1c3)]!==_0x48ec9f['contentHash'])throw Error(_0x227351(0x205));if(_0x52523a[_0x227351(0x1b8)]==='missing')return undefined;const _0x443b10=imageObjectValue(_0x121504,_0x46ae73['importId'],_0x48ec9f);if(_0x52523a[_0x227351(0x1b8)]!==_0x227351(0x1e0)||_0x52523a[_0x227351(0x1af)]!==_0x443b10[_0x227351(0x1e4)]||_0x52523a[_0x227351(0x1d2)]!==_0x443b10[_0x227351(0x1a0)]||_0x52523a[_0x227351(0x1ff)]!==_0x443b10[_0x227351(0x1ff)]||_0x52523a['size']!==_0x443b10[_0x227351(0x1ce)])throw Error(_0x227351(0x20a));return _0x443b10;};for(let _0x1d98f5=0x0;_0x1d98f5<_0x3448b4['length'];_0x1d98f5++){const _0x35e182=_0x3448b4[_0x1d98f5],_0x24feef=_0x46ae73[_0x459ca3(0x1d0)][_0x1d98f5],_0x35ceee=imageObjectValue(_0x121504,_0x46ae73[_0x459ca3(0x1c9)],_0x35e182);if(_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0)&&canonical(_0x24feef[_0x459ca3(0x1ac)])!==canonical(_0x35ceee))throw Error(_0x459ca3(0x1d3));let _0x2af894;if(_0x2b3309[_0x459ca3(0x1ef)]||_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0))_0x2af894=_0x71518f(await _0x2b3309['imageApi'][_0x459ca3(0x1a1)](_0x46ae73['importId'],_0x35e182),_0x35e182);if(!_0x2af894&&_0x24feef[_0x459ca3(0x1b8)]===_0x459ca3(0x1e0))throw Error(_0x459ca3(0x1f5));if(!_0x2af894){try{_0x71518f(await _0x2b3309[_0x459ca3(0x1a7)][_0x459ca3(0x1d6)](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);}catch(_0x280275){_0x2af894=_0x71518f(await _0x2b3309[_0x459ca3(0x1a7)][_0x459ca3(0x1a1)](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);if(!_0x2af894)throw Error(_0x459ca3(0x1e7));}if(!_0x2af894)_0x2af894=_0x71518f(await _0x2b3309['imageApi']['readback'](_0x46ae73[_0x459ca3(0x1c9)],_0x35e182),_0x35e182);if(!_0x2af894)throw Error(_0x459ca3(0x1a5));}_0x24feef[_0x459ca3(0x1b8)]=_0x459ca3(0x1e0),_0x24feef['value']=_0x2af894,await saveImportJson(_0xbedb59,_0x46ae73);}const _0x2c9c48=bindImageManifest(_0xfdbce1,_0x121504,_0x46ae73[_0x459ca3(0x1c9)]),_0x33f647=_0x46ae73[_0x459ca3(0x1aa)]===_0x459ca3(0x1eb)?await exists(_0x3126bf):_0x46ae73['phase']!==_0x459ca3(0x1d0);_0x46ae73[_0x459ca3(0x1aa)]===_0x459ca3(0x1d0)&&(_0x46ae73[_0x459ca3(0x1aa)]='rows-preparing',await saveImportJson(_0xbedb59,_0x46ae73));const _0x2bef31={..._0x2b3309,'manifest':_0x2c9c48,'checkpoint':_0x3126bf,'report':_0x29fa6e,'resume':_0x33f647,'onCheckpointReady':async()=>{const _0x5bdc01=_0x459ca3;_0x46ae73[_0x5bdc01(0x1aa)]=_0x5bdc01(0x1fa),await saveImportJson(_0xbedb59,_0x46ae73);}},_0x2bf67e=_0x121504[_0x459ca3(0x1cd)]===0x2?await runAutoIdExcelImport({..._0x2bef31,'reconcileImageConflicts':_0x2b3309[_0x459ca3(0x1ef)]===!![]&&_0x33f647}):await runExcelImport(_0x2bef31);return _0x46ae73['phase']='completed',await saveImportJson(_0xbedb59,_0x46ae73),{..._0x2bf67e,'checkpoint':_0xbedb59,'imageCount':_0xfdbce1['imageCells']?.['reduce']((_0x5e1b0d,_0x374433)=>_0x5e1b0d+_0x374433[_0x459ca3(0x1dc)][_0x459ca3(0x1be)],0x0)??0x0,'uniqueImages':_0x3448b4[_0x459ca3(0x1be)]};}finally{await _0x5e599b();}}
|
|
1
|
+
(function(_0x4de4d4,_0x12c5a9){const _0x15a67a=a143_0x5e26,_0x4beade=_0x4de4d4();while(!![]){try{const _0x41a7fc=parseInt(_0x15a67a(0xf1))/0x1*(-parseInt(_0x15a67a(0x117))/0x2)+-parseInt(_0x15a67a(0x113))/0x3+-parseInt(_0x15a67a(0xf3))/0x4*(-parseInt(_0x15a67a(0xe9))/0x5)+parseInt(_0x15a67a(0xdf))/0x6*(-parseInt(_0x15a67a(0xc9))/0x7)+-parseInt(_0x15a67a(0x121))/0x8+-parseInt(_0x15a67a(0x105))/0x9+parseInt(_0x15a67a(0xd4))/0xa*(parseInt(_0x15a67a(0xdb))/0xb);if(_0x41a7fc===_0x12c5a9)break;else _0x4beade['push'](_0x4beade['shift']());}catch(_0x125b91){_0x4beade['push'](_0x4beade['shift']());}}}(a143_0x2614,0x77342));import{randomUUID,createHash}from'node:crypto';function a143_0x5e26(_0x16f9fb,_0x1be2b){_0x16f9fb=_0x16f9fb-0xb7;const _0x2614d0=a143_0x2614();let _0x5e264e=_0x2614d0[_0x16f9fb];return _0x5e264e;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,resolveImportOutputPath,runExcelImport,saveImportJson}from'./runner.js';import{runAutoIdExcelImport}from'./auto-id-runner.js';import{previewImportBatchCount}from'./preview.js';function a143_0x2614(){const _0x187fbf=['code','type','pending','rows','all','media','1272672SorHQJ','utf8','isSafeInteger','inputPaths','datasetCode','hex','name','parse','binding','resume','fileHash','Invalid\x20import\x20batch\x20size.','Uploaded\x20image\x20is\x20not\x20visible.\x20Resume\x20to\x20reconcile\x20before\x20continuing.','Invalid\x20image\x20readback\x20digest.','The\x20server\x20does\x20not\x20support\x20this\x20image\x20import\x20capability.','update','hashes','Image\x20checkpoint\x20does\x20not\x20match\x20the\x20source,\x20target\x20or\x20identity.','actorId','status','14kUoWAQ','Cannot\x20read\x20the\x20image\x20import\x20checkpoint.','ENOENT','hash','runtimeDomain','.lock.recovery','phase','values','missing','readback','size','2665500JvwVAc','contract','bytes','Completed\x20image\x20checkpoint\x20value\x20changed.','sha256','digest','version','88sMcLJF','schemaHash','succeeded','manifest','1792812fNuHbm','contentHash','imageApi','get','length','every','maxBatchSize','appCode','rows-preparing','Invalid\x20image\x20manifest\x20limits.','5515zixzTA','field','uploadId','png','maxFileBytes','fileName','Previously\x20uploaded\x20image\x20is\x20missing;\x20automatic\x20repair\x20is\x20disabled.','entries','1HHPXJz','Image\x20cell\x20references\x20missing\x20media.','1160zTWncX','mappingHash','completed','gif','filePath','imageFields','batchSize','.lock','errors','isInteger','jpg','strategy','maxBatchBytes','Row\x20phase\x20started\x20but\x20the\x20row\x20checkpoint\x20is\x20missing;\x20stop\x20to\x20avoid\x20duplicate\x20records.','rowNumber','Image\x20media\x20bytes\x20changed.','map','uploadFields','1973457qyGZpG','00000000-0000-4000-8000-000000000000','rows-started','Excel\x20contains\x20invalid\x20or\x20no\x20data\x20rows;\x20no\x20images\x20were\x20uploaded.','sheet','test','reduce','includes','report','upload','value','imageImport','imageCells','image/png','201402MgGuPW','Uploaded\x20image\x20metadata\x20changed\x20or\x20is\x20corrupt.','some','schemaVersion','1841834zGBRnF','schemaFingerprint','importId','types'];a143_0x2614=function(){return _0x187fbf;};return a143_0x2614();}export function assertImageImportCapability(_0x569445,_0x20508b){const _0x13daf4=a143_0x5e26;if(!_0x20508b['media']?.[_0x13daf4(0xe3)])return;const _0x262b34=_0x569445[_0x13daf4(0x110)];if(!_0x262b34||_0x262b34['version']!==0x1||_0x262b34[_0x13daf4(0xeb)]!=='sha256'||_0x262b34[_0x13daf4(0xed)]!==0xa00000||_0x262b34['maxPixels']!==0x2625a00||!Array['isArray'](_0x262b34[_0x13daf4(0x11a)])||![_0x13daf4(0x112),'image/jpeg','image/gif'][_0x13daf4(0xe4)](_0x277ba1=>_0x262b34[_0x13daf4(0x11a)][_0x13daf4(0x10c)](_0x277ba1)))throw Error(_0x13daf4(0xc3));}export function imageObjectValue(_0x27ba14,_0x16d675,_0x3b9783){const _0x101f84=a143_0x5e26,_0x3522ab=createHash('sha256')[_0x101f84(0xc4)](JSON['stringify']([_0x27ba14[_0x101f84(0xc7)],_0x27ba14[_0x101f84(0xe6)],_0x27ba14['datasetCode'],_0x16d675]))['digest'](_0x101f84(0xba)),_0x14de44={'image/png':_0x101f84(0xec),'image/jpeg':_0x101f84(0xfd),'image/gif':_0x101f84(0xf6)}[_0x3b9783[_0x101f84(0x11c)]];if(!_0x14de44||!/^[0-9a-f]{64}$/[_0x101f84(0x10a)](_0x3b9783[_0x101f84(0xe0)])||!Number[_0x101f84(0xb7)](_0x3b9783[_0x101f84(0xd3)])||_0x3b9783[_0x101f84(0xd3)]<=0x0||_0x3b9783[_0x101f84(0xd3)]>0xa00000)throw Error('Invalid\x20image\x20media\x20descriptor.');const _0x335b1b=_0x3b9783[_0x101f84(0xe0)]+'.'+_0x14de44;return{'key':'dataset-import/'+_0x3522ab+'/'+_0x335b1b,'name':_0x335b1b,'type':_0x3b9783['type'],'size':_0x3b9783[_0x101f84(0xd3)]};}export function bindImageManifest(_0x2bfde5,_0x2f483d,_0x5a1230){const _0x5aaae0=a143_0x5e26,_0x1640ab=new Map(_0x2bfde5[_0x5aaae0(0x120)]?.[_0x5aaae0(0x103)](_0x4f35b1=>[_0x4f35b1[_0x5aaae0(0xe0)],_0x4f35b1])),_0x337da7=new Map(_0x2bfde5['imageCells']?.[_0x5aaae0(0x103)](_0x3d9425=>[_0x3d9425[_0x5aaae0(0x101)]+':'+_0x3d9425[_0x5aaae0(0xea)],_0x3d9425['hashes']]));return{..._0x2bfde5,'rows':_0x2bfde5[_0x5aaae0(0x11e)][_0x5aaae0(0x103)](_0x1cbd5f=>({..._0x1cbd5f,'values':Object['fromEntries'](Object[_0x5aaae0(0xf0)](_0x1cbd5f[_0x5aaae0(0xd0)])[_0x5aaae0(0x103)](([_0x134266,_0x21a5c2])=>{const _0x5bc573=_0x5aaae0,_0x1647cc=_0x337da7[_0x5bc573(0xe2)](_0x1cbd5f['rowNumber']+':'+_0x134266);return[_0x134266,_0x1647cc?_0x1647cc[_0x5bc573(0x103)](_0xc2c3b7=>{const _0x33da12=_0x5bc573,_0x1cacee=_0x1640ab[_0x33da12(0xe2)](_0xc2c3b7);if(!_0x1cacee)throw Error(_0x33da12(0xf2));const _0x4d6885=imageObjectValue(_0x2f483d,_0x5a1230,_0x1cacee);return _0x2bfde5[_0x33da12(0x104)]?.[_0x33da12(0x10c)](_0x134266)?{'fileName':_0x4d6885[_0x33da12(0xbb)],'filePath':_0x4d6885['key']}:_0x4d6885;}):_0x21a5c2];}))}))};}async function exists(_0x467feb){const _0x395877=a143_0x5e26;try{return await lstat(_0x467feb),!![];}catch(_0x23b5b1){if(_0x23b5b1[_0x395877(0x11b)]===_0x395877(0xcb))return![];throw _0x23b5b1;}}export async function runImageExcelImport(_0x13cec6){const _0x5c3dc5=a143_0x5e26;assertImportContract(_0x13cec6[_0x5c3dc5(0xd5)],_0x13cec6[_0x5c3dc5(0xe6)],_0x13cec6['datasetCode']),assertImageImportCapability(_0x13cec6[_0x5c3dc5(0xd5)],_0x13cec6[_0x5c3dc5(0xde)]);if(!Number[_0x5c3dc5(0xfc)](_0x13cec6['batchSize'])||_0x13cec6[_0x5c3dc5(0xf9)]<0x1||_0x13cec6[_0x5c3dc5(0xf9)]>_0x13cec6[_0x5c3dc5(0xd5)][_0x5c3dc5(0xe5)])throw Error(_0x5c3dc5(0xc0));if(_0x13cec6[_0x5c3dc5(0xde)][_0x5c3dc5(0xfb)]['length']||!_0x13cec6[_0x5c3dc5(0xde)][_0x5c3dc5(0x11e)][_0x5c3dc5(0xe3)])throw Error(_0x5c3dc5(0x108));const _0x224a74=await resolveImportOutputPath(_0x13cec6['checkpoint']),_0x3d4b4a=await resolveImportOutputPath(_0x13cec6[_0x5c3dc5(0x10d)]),_0x1447a9=await resolveImportOutputPath(_0x224a74+'.rows.json'),_0x1a6c1c=await Promise[_0x5c3dc5(0x11f)]([_0x1447a9,_0x1447a9+_0x5c3dc5(0xfa),_0x1447a9+_0x5c3dc5(0xce),..._0x13cec6[_0x5c3dc5(0xb8)]??[]][_0x5c3dc5(0x103)](resolveImportOutputPath));for(const _0x402a99 of[_0x224a74,_0x3d4b4a,_0x224a74+_0x5c3dc5(0xfa),_0x224a74+_0x5c3dc5(0xce)])await resolveImportOutputPath(_0x402a99);assertImportPaths(_0x224a74,_0x3d4b4a,_0x1a6c1c);const {contract:_0x4d615f,manifest:_0x823104}=_0x13cec6,_0x423254=_0x823104[_0x5c3dc5(0x120)]??[];if(new Set(_0x423254[_0x5c3dc5(0x103)](_0x5aa1ad=>_0x5aa1ad[_0x5c3dc5(0xe0)]))[_0x5c3dc5(0xd3)]!==_0x423254[_0x5c3dc5(0xe3)]||_0x423254['reduce']((_0x5ea7dc,_0x349005)=>_0x5ea7dc+_0x349005[_0x5c3dc5(0xd3)],0x0)>0x32*0x400*0x400||(_0x823104['imageCells']??[])[_0x5c3dc5(0x10b)]((_0x16c11a,_0x2bc949)=>_0x16c11a+_0x2bc949[_0x5c3dc5(0xc5)][_0x5c3dc5(0xe3)],0x0)>0x2710)throw Error(_0x5c3dc5(0xe8));for(const _0x3cc557 of _0x423254)if(_0x3cc557[_0x5c3dc5(0xd3)]!==_0x3cc557['bytes'][_0x5c3dc5(0xe3)]||createHash(_0x5c3dc5(0xd8))[_0x5c3dc5(0xc4)](_0x3cc557[_0x5c3dc5(0xd6)])[_0x5c3dc5(0xd9)]('hex')!==_0x3cc557[_0x5c3dc5(0xe0)])throw Error(_0x5c3dc5(0x102));previewImportBatchCount(bindImageManifest(_0x823104,_0x4d615f,_0x5c3dc5(0x106)),_0x4d615f,_0x13cec6[_0x5c3dc5(0xf9)]);const _0x2f13e5={'appCode':_0x13cec6[_0x5c3dc5(0xe6)],'datasetCode':_0x13cec6[_0x5c3dc5(0xb9)],'runtimeDomain':_0x13cec6[_0x5c3dc5(0xcd)],'actorId':_0x4d615f[_0x5c3dc5(0xc7)],'fileHash':_0x823104[_0x5c3dc5(0xbf)],'mappingHash':_0x823104[_0x5c3dc5(0xf4)],'schemaHash':_0x823104[_0x5c3dc5(0xdc)],'remoteSchemaHash':_0x4d615f[_0x5c3dc5(0x118)],'strategy':_0x4d615f[_0x5c3dc5(0xfe)],'schemaVersion':_0x4d615f[_0x5c3dc5(0x116)],'batchSize':_0x13cec6[_0x5c3dc5(0xf9)],'maxBatchBytes':_0x4d615f[_0x5c3dc5(0xff)],'sheet':_0x823104[_0x5c3dc5(0x109)],'parserVersion':_0x823104['parserVersion'],'imageFields':_0x823104[_0x5c3dc5(0xf8)],'cells':_0x823104['imageCells'],..._0x823104[_0x5c3dc5(0x104)]?.[_0x5c3dc5(0xe3)]?{'uploadFields':_0x823104['uploadFields']}:{},'media':_0x423254[_0x5c3dc5(0x103)](({contentHash:_0x244c3a,type:_0x87d5c2,size:_0x277e57})=>({'contentHash':_0x244c3a,'type':_0x87d5c2,'size':_0x277e57})),'rows':_0x823104[_0x5c3dc5(0x11e)]},_0x35a8f0=await acquireLock(_0x224a74);try{let _0x337ef3;if(_0x13cec6[_0x5c3dc5(0xbe)]){try{_0x337ef3=JSON[_0x5c3dc5(0xbc)](await readFile(_0x224a74,_0x5c3dc5(0x122)));}catch{throw Error(_0x5c3dc5(0xca));}if(_0x337ef3[_0x5c3dc5(0xda)]!==0x3||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x5c3dc5(0x10a)](_0x337ef3[_0x5c3dc5(0x119)])||canonical(_0x337ef3[_0x5c3dc5(0xbd)])!==canonical(_0x2f13e5)||![_0x5c3dc5(0x120),'rows-preparing','rows-started',_0x5c3dc5(0xf5)][_0x5c3dc5(0x10c)](_0x337ef3[_0x5c3dc5(0xcf)])||!Array['isArray'](_0x337ef3['media'])||_0x337ef3[_0x5c3dc5(0x120)]['length']!==_0x423254[_0x5c3dc5(0xe3)]||_0x337ef3[_0x5c3dc5(0x120)][_0x5c3dc5(0x115)]((_0x17d0d8,_0x4b4f72)=>_0x17d0d8[_0x5c3dc5(0xcc)]!==_0x423254[_0x4b4f72][_0x5c3dc5(0xe0)]||![_0x5c3dc5(0x11d),'succeeded'][_0x5c3dc5(0x10c)](_0x17d0d8[_0x5c3dc5(0xc8)])))throw Error(_0x5c3dc5(0xc6));if(['rows-started',_0x5c3dc5(0xf5)][_0x5c3dc5(0x10c)](_0x337ef3[_0x5c3dc5(0xcf)])&&!await exists(_0x1447a9))throw Error(_0x5c3dc5(0x100));if(_0x337ef3['phase']===_0x5c3dc5(0x120)&&await exists(_0x1447a9))throw Error('Unexpected\x20row\x20checkpoint\x20during\x20image\x20upload\x20phase.');}else{if(await exists(_0x224a74)||await exists(_0x1447a9))throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');_0x337ef3={'version':0x3,'importId':randomUUID(),'binding':_0x2f13e5,'phase':_0x5c3dc5(0x120),'media':_0x423254[_0x5c3dc5(0x103)](_0x1b0287=>({'hash':_0x1b0287[_0x5c3dc5(0xe0)],'status':_0x5c3dc5(0x11d)}))},await saveImportJson(_0x224a74,_0x337ef3);}const _0x4804a3=(_0xb994fa,_0xe9c698)=>{const _0xcb44b2=_0x5c3dc5;if(!_0xb994fa||_0xb994fa[_0xcb44b2(0xe0)]!==_0xe9c698[_0xcb44b2(0xe0)])throw Error(_0xcb44b2(0xc2));if(_0xb994fa[_0xcb44b2(0xc8)]===_0xcb44b2(0xd1))return undefined;const _0x7ce75c=imageObjectValue(_0x4d615f,_0x337ef3['importId'],_0xe9c698);if(_0xb994fa[_0xcb44b2(0xc8)]!=='succeeded'||_0xb994fa[_0xcb44b2(0xf7)]!==_0x7ce75c['key']||_0xb994fa[_0xcb44b2(0xee)]!==_0x7ce75c[_0xcb44b2(0xbb)]||_0xb994fa[_0xcb44b2(0x11c)]!==_0x7ce75c[_0xcb44b2(0x11c)]||_0xb994fa[_0xcb44b2(0xd3)]!==_0x7ce75c[_0xcb44b2(0xd3)])throw Error(_0xcb44b2(0x114));return _0x7ce75c;};for(let _0x539e88=0x0;_0x539e88<_0x423254['length'];_0x539e88++){const _0x35c853=_0x423254[_0x539e88],_0x5d6a54=_0x337ef3['media'][_0x539e88],_0x47e5d4=imageObjectValue(_0x4d615f,_0x337ef3[_0x5c3dc5(0x119)],_0x35c853);if(_0x5d6a54[_0x5c3dc5(0xc8)]===_0x5c3dc5(0xdd)&&canonical(_0x5d6a54[_0x5c3dc5(0x10f)])!==canonical(_0x47e5d4))throw Error(_0x5c3dc5(0xd7));let _0x289734;if(_0x13cec6[_0x5c3dc5(0xbe)]||_0x5d6a54['status']===_0x5c3dc5(0xdd))_0x289734=_0x4804a3(await _0x13cec6[_0x5c3dc5(0xe1)][_0x5c3dc5(0xd2)](_0x337ef3[_0x5c3dc5(0x119)],_0x35c853),_0x35c853);if(!_0x289734&&_0x5d6a54[_0x5c3dc5(0xc8)]===_0x5c3dc5(0xdd))throw Error(_0x5c3dc5(0xef));if(!_0x289734){try{_0x4804a3(await _0x13cec6[_0x5c3dc5(0xe1)][_0x5c3dc5(0x10e)](_0x337ef3['importId'],_0x35c853),_0x35c853);}catch(_0x1db3cc){_0x289734=_0x4804a3(await _0x13cec6[_0x5c3dc5(0xe1)]['readback'](_0x337ef3[_0x5c3dc5(0x119)],_0x35c853),_0x35c853);if(!_0x289734)throw Error('Image\x20upload\x20outcome\x20is\x20unknown\x20or\x20missing.\x20Resume\x20to\x20reconcile\x20the\x20original\x20upload\x20identity.');}if(!_0x289734)_0x289734=_0x4804a3(await _0x13cec6[_0x5c3dc5(0xe1)][_0x5c3dc5(0xd2)](_0x337ef3[_0x5c3dc5(0x119)],_0x35c853),_0x35c853);if(!_0x289734)throw Error(_0x5c3dc5(0xc1));}_0x5d6a54[_0x5c3dc5(0xc8)]=_0x5c3dc5(0xdd),_0x5d6a54['value']=_0x289734,await saveImportJson(_0x224a74,_0x337ef3);}const _0x3d7c25=bindImageManifest(_0x823104,_0x4d615f,_0x337ef3['importId']),_0x4ee5b2=_0x337ef3['phase']===_0x5c3dc5(0xe7)?await exists(_0x1447a9):_0x337ef3[_0x5c3dc5(0xcf)]!==_0x5c3dc5(0x120);_0x337ef3[_0x5c3dc5(0xcf)]===_0x5c3dc5(0x120)&&(_0x337ef3[_0x5c3dc5(0xcf)]=_0x5c3dc5(0xe7),await saveImportJson(_0x224a74,_0x337ef3));const _0xfe912={..._0x13cec6,'manifest':_0x3d7c25,'checkpoint':_0x1447a9,'report':_0x3d4b4a,'resume':_0x4ee5b2,'onCheckpointReady':async()=>{const _0x39a3ba=_0x5c3dc5;_0x337ef3[_0x39a3ba(0xcf)]=_0x39a3ba(0x107),await saveImportJson(_0x224a74,_0x337ef3);}},_0x2297c2=_0x4d615f['schemaVersion']===0x2?await runAutoIdExcelImport({..._0xfe912,'reconcileImageConflicts':_0x13cec6['resume']===!![]&&_0x4ee5b2}):await runExcelImport(_0xfe912);return _0x337ef3['phase']=_0x5c3dc5(0xf5),await saveImportJson(_0x224a74,_0x337ef3),{..._0x2297c2,'checkpoint':_0x224a74,'imageCount':_0x823104[_0x5c3dc5(0x111)]?.[_0x5c3dc5(0x10b)]((_0x75210a,_0x1ecd02)=>_0x75210a+_0x1ecd02[_0x5c3dc5(0xc5)][_0x5c3dc5(0xe3)],0x0)??0x0,'uniqueImages':_0x423254['length']};}finally{await _0x35a8f0();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a144_0x5d10(){const _0x309b4e=['Dataset\x20metadata\x20is\x20missing.','3624PvsaEY','2738588MfxlgC','sourceType','filter','modelCode','datasetCode','5778044FIcBwr','12558440hGrNps','231384wFTsRa','isArray','9zbPNum','appCode','20524FKJUCQ','length','1312467kyZmHt','Dataset\x20metadata\x20does\x20not\x20match\x20the\x20requested\x20target.','code','source','5oCdYXO','dataset','string','Dataset\x20source\x20metadata\x20is\x20inconsistent.','969799WiqtLb','some'];a144_0x5d10=function(){return _0x309b4e;};return a144_0x5d10();}function a144_0x78dc(_0x3c4093,_0x44745e){_0x3c4093=_0x3c4093-0xeb;const _0x5d1062=a144_0x5d10();let _0x78dc43=_0x5d1062[_0x3c4093];return _0x78dc43;}(function(_0x1fc89e,_0xb5e82d){const _0xf65834=a144_0x78dc,_0x53bd04=_0x1fc89e();while(!![]){try{const _0x16ac39=parseInt(_0xf65834(0xf6))/0x1+parseInt(_0xf65834(0xfa))/0x2+-parseInt(_0xf65834(0xee))/0x3+parseInt(_0xf65834(0xff))/0x4+parseInt(_0xf65834(0xf2))/0x5*(parseInt(_0xf65834(0x101))/0x6)+-parseInt(_0xf65834(0xec))/0x7*(parseInt(_0xf65834(0xf9))/0x8)+parseInt(_0xf65834(0x103))/0x9*(-parseInt(_0xf65834(0x100))/0xa);if(_0x16ac39===_0xb5e82d)break;else _0x53bd04['push'](_0x53bd04['shift']());}catch(_0x13cc03){_0x53bd04['push'](_0x53bd04['shift']());}}}(a144_0x5d10,0xc377f));export function assertDatasetImportTarget(_0x3de513,_0x4de56e,_0x2ea5e2){const _0x2c57c9=a144_0x78dc;if(!_0x3de513||typeof _0x3de513!=='object'||Array[_0x2c57c9(0x102)](_0x3de513))throw Error(_0x2c57c9(0xf8));const _0x2d7e2a=[_0x3de513[_0x2c57c9(0xf0)],_0x3de513[_0x2c57c9(0xfd)],_0x3de513[_0x2c57c9(0xf3)]?.[_0x2c57c9(0xfe)]]['filter'](_0x109cb4=>_0x109cb4!=null);if(!_0x2d7e2a[_0x2c57c9(0xed)]||_0x2d7e2a['some'](_0x505642=>_0x505642!==_0x2ea5e2)||_0x3de513['appCode']!=null&&_0x3de513['appCode']!==_0x4de56e||_0x3de513[_0x2c57c9(0xf3)]?.[_0x2c57c9(0xeb)]!=null&&_0x3de513[_0x2c57c9(0xf3)][_0x2c57c9(0xeb)]!==_0x4de56e)throw Error(_0x2c57c9(0xef));const _0x27f63e=[_0x3de513[_0x2c57c9(0xf1)],_0x3de513['dataset']?.[_0x2c57c9(0xfb)]][_0x2c57c9(0xfc)](_0x29cabf=>_0x29cabf!=null);if(_0x27f63e[_0x2c57c9(0xf7)](_0x4fd419=>typeof _0x4fd419!==_0x2c57c9(0xf4)||_0x4fd419!==_0x27f63e[0x0]))throw Error(_0x2c57c9(0xf5));return _0x27f63e[0x0];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d6f19,_0xff6afc){const _0x27d645=a145_0x5642,_0x1de85a=_0x1d6f19();while(!![]){try{const _0x38ab5f=parseInt(_0x27d645(0x1cd))/0x1*(parseInt(_0x27d645(0x1d2))/0x2)+-parseInt(_0x27d645(0x1c7))/0x3+-parseInt(_0x27d645(0x1cb))/0x4+-parseInt(_0x27d645(0x1c1))/0x5+parseInt(_0x27d645(0x1c0))/0x6+-parseInt(_0x27d645(0x1c8))/0x7+parseInt(_0x27d645(0x1d0))/0x8;if(_0x38ab5f===_0xff6afc)break;else _0x1de85a['push'](_0x1de85a['shift']());}catch(_0x27de96){_0x1de85a['push'](_0x1de85a['shift']());}}}(a145_0x4526,0x2a0d7));function a145_0x5642(_0x3da35e,_0x3adbd7){_0x3da35e=_0x3da35e-0x1bf;const _0x452645=a145_0x4526();let _0x564228=_0x452645[_0x3da35e];return _0x564228;}export function previewImportBatchCount(_0x304f11,_0x1f79a7,_0xf94d5e){const _0x5ea915=a145_0x5642,_0x10da14=_0x2a7f65=>_0x2a7f65[_0x5ea915(0x1c9)](_0x2e057c=>_0x1f79a7['schemaVersion']===0x1?{..._0x304f11[_0x5ea915(0x1bf)][_0x2e057c][_0x5ea915(0x1ce)],'id':-0x1fffffffffffff}:_0x304f11['rows'][_0x2e057c][_0x5ea915(0x1ce)]),_0x9570e6=_0x462d23=>Buffer['byteLength'](JSON[_0x5ea915(0x1cc)]({'schemaFingerprint':_0x1f79a7[_0x5ea915(0x1c3)],..._0x1f79a7['schemaVersion']===0x2?{'taskId':0x2**0x34}:{},'items':_0x10da14(_0x462d23)}),_0x5ea915(0x1c2));let _0x528083=0x0,_0x5387cc=[];for(let _0x14c3d1=0x0;_0x14c3d1<_0x304f11[_0x5ea915(0x1bf)][_0x5ea915(0x1cf)];_0x14c3d1++){if(_0x9570e6([_0x14c3d1])>_0x1f79a7[_0x5ea915(0x1c6)])throw Error(_0x5ea915(0x1c5)+_0x304f11[_0x5ea915(0x1bf)][_0x14c3d1][_0x5ea915(0x1ca)]+_0x5ea915(0x1c4));_0x5387cc[_0x5ea915(0x1cf)]&&(_0x5387cc[_0x5ea915(0x1cf)]===_0xf94d5e||_0x9570e6([..._0x5387cc,_0x14c3d1])>_0x1f79a7[_0x5ea915(0x1c6)])&&(_0x528083++,_0x5387cc=[]),_0x5387cc[_0x5ea915(0x1d1)](_0x14c3d1);}return _0x528083+Number(_0x5387cc['length']>0x0);}function a145_0x4526(){const _0x151a0b=['929362kenefv','map','rowNumber','730468UMasqJ','stringify','35489EOMuUj','values','length','986840RfvWSu','push','14tQApbL','rows','1889412LptuyY','292815WeiKSE','utf8','schemaFingerprint','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Excel\x20row\x20','maxBatchBytes','421461BacpAi'];a145_0x4526=function(){return _0x151a0b;};return a145_0x4526();}
|