@lovrabet/lovrabet-cli 2.3.5 → 2.3.6-beta.2
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.d.ts +3 -3
- 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.d.ts +11 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.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.d.ts +3 -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.d.ts +3 -0
- package/lib/services/dataset-import/image-bytes.js +1 -0
- package/lib/services/dataset-import/image-ooxml.d.ts +10 -0
- package/lib/services/dataset-import/image-ooxml.js +1 -0
- package/lib/services/dataset-import/image-runner.d.ts +48 -0
- package/lib/services/dataset-import/image-runner.js +1 -0
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.d.ts +10 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/services/dataset-import/types.d.ts +28 -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 +4 -1
- package/skills/lovrabet/SKILL.md +7 -3
- package/skills/lovrabet/guides/app-resolution.md +2 -0
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +10 -1
- package/skills/lovrabet/references/dataset-discovery-workflow.md +14 -1
- package/skills/lovrabet/references/instant-api-workflow.md +2 -0
- package/skills/lovrabet/references/lovrabet-app.md +2 -0
- package/skills/lovrabet/references/lovrabet-excel-import.md +19 -0
- package/skills/lovrabet.manifest.json +3 -3
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x49bc1a,_0x13c517){const _0x4b6824=a130_0x5727,_0x384d31=_0x49bc1a();while(!![]){try{const _0x39754a=parseInt(_0x4b6824(0x195))/0x1*(-parseInt(_0x4b6824(0x190))/0x2)+-parseInt(_0x4b6824(0x197))/0x3+parseInt(_0x4b6824(0x191))/0x4+-parseInt(_0x4b6824(0x193))/0x5+parseInt(_0x4b6824(0x18d))/0x6*(-parseInt(_0x4b6824(0x18e))/0x7)+parseInt(_0x4b6824(0x18f))/0x8+parseInt(_0x4b6824(0x192))/0x9*(parseInt(_0x4b6824(0x196))/0xa);if(_0x39754a===_0x13c517)break;else _0x384d31['push'](_0x384d31['shift']());}catch(_0x7add45){_0x384d31['push'](_0x384d31['shift']());}}}(a130_0x2303,0x3f9f7));import{jsx as a130_0x1e9d2f,jsxs as a130_0x2380a3}from'react/jsx-runtime';function a130_0x2303(){const _0x9267c9=['1250904GzIwzk','124vNJikw','1679164oKmiPr','2079aYuebt','2532305QrAPCf','\x20\x20Use\x20','2018ycfXTX','23250bHwsMN','518613foXsHJ','green','144546FjiUvI','14aHALjb'];a130_0x2303=function(){return _0x9267c9;};return a130_0x2303();}import{useEffect}from'react';function a130_0x5727(_0x2027c1,_0x4ddad6){_0x2027c1=_0x2027c1-0x18d;const _0x230346=a130_0x2303();let _0x57274c=_0x230346[_0x2027c1];return _0x57274c;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x3f6a8c=a130_0x5727,{exit:_0x2e6bb9}=useApp();return useEffect(()=>{_0x2e6bb9();},[_0x2e6bb9]),a130_0x2380a3(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a130_0x1e9d2f(Box,{'children':a130_0x1e9d2f(Text,{'bold':!![],'color':_0x3f6a8c(0x198),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a130_0x2380a3(Box,{'marginTop':0x1,'children':[a130_0x1e9d2f(Text,{'dimColor':!![],'children':_0x3f6a8c(0x194)}),a130_0x1e9d2f(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a130_0x1e9d2f(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a131_0x12d8(_0x5d159a,_0x28d814){_0x5d159a=_0x5d159a-0xc3;const _0x22c8a7=a131_0x22c8();let _0x12d8a0=_0x22c8a7[_0x5d159a];return _0x12d8a0;}(function(_0x3f775f,_0x45b6e4){const _0x5318c6=a131_0x12d8,_0x5f303c=_0x3f775f();while(!![]){try{const _0x40c92b=parseInt(_0x5318c6(0xd0))/0x1+-parseInt(_0x5318c6(0xcb))/0x2+parseInt(_0x5318c6(0xca))/0x3+-parseInt(_0x5318c6(0xcf))/0x4+parseInt(_0x5318c6(0xd1))/0x5+parseInt(_0x5318c6(0xc9))/0x6*(-parseInt(_0x5318c6(0xd2))/0x7)+-parseInt(_0x5318c6(0xd4))/0x8*(-parseInt(_0x5318c6(0xce))/0x9);if(_0x40c92b===_0x45b6e4)break;else _0x5f303c['push'](_0x5f303c['shift']());}catch(_0x577d38){_0x5f303c['push'](_0x5f303c['shift']());}}}(a131_0x22c8,0x69c04));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2022d3={}){const _0x301126=a131_0x12d8,_0x5a08ab=installBuiltinSkill(_0x2022d3);if(_0x5a08ab['ok']){const _0x433500=_0x5a08ab['changed']?_0x301126(0xc6):_0x301126(0xcd),_0x991fff=_0x5a08ab[_0x301126(0xcc)]?_0x301126(0xd6)+_0x5a08ab[_0x301126(0xcc)]:'\x20via\x20skills@latest';return console['log'](_0x301126(0xc7)+_0x5a08ab['skillVersion']+'\x20'+_0x433500+_0x991fff),_0x5a08ab;}const _0x513a5b=_0x301126(0xc5)+(_0x5a08ab[_0x301126(0xc4)]??_0x301126(0xd3))+']\x20'+(_0x5a08ab['error']??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x5a08ab[_0x301126(0xc8)]);if(_0x5a08ab['code']===_0x301126(0xc3))throw new Error(_0x513a5b);return console[_0x301126(0xd5)](_0x513a5b),_0x5a08ab;}function a131_0x22c8(){const _0x4af489=['FAILED','5416MdNVeR','warn','\x20at\x20','SOURCE_INVALID','code','[BUILTIN_SKILL_INSTALL_','installed','Lovrabet\x20Built-in\x20Skill\x20','repairCommand','4493106BbEZqV','2280585PkZSum','481794JZepdH','installedPath','already\x20current','6210oicvRn','662244mHOUrG','314464WqZPAT','233380QJvKza','7tnwYjr'];a131_0x22c8=function(){return _0x4af489;};return a131_0x22c8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a132_0x1e27(){const _0x55010a=['219950IiGvon','1155822sYCsNS','1801233RhhqEZ','risk','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','5oOoMoy','1125160IsYvmn','24EDBmHm','slice','383324tQaNRm','description','Run\x20this\x20write\x20operation','write','high-risk-write','690282UDcTcf','969819SLwKfB','replace','confirmationDescription','string'];a132_0x1e27=function(){return _0x55010a;};return a132_0x1e27();}(function(_0x1f6545,_0x53111a){const _0x5bc301=a132_0x5cf4,_0x354b1c=_0x1f6545();while(!![]){try{const _0x18af40=parseInt(_0x5bc301(0x1e7))/0x1+-parseInt(_0x5bc301(0x1f0))/0x2+-parseInt(_0x5bc301(0x1f6))/0x3+parseInt(_0x5bc301(0x1ed))/0x4+parseInt(_0x5bc301(0x1ec))/0x5*(parseInt(_0x5bc301(0x1e8))/0x6)+parseInt(_0x5bc301(0x1e9))/0x7+parseInt(_0x5bc301(0x1ee))/0x8*(-parseInt(_0x5bc301(0x1f5))/0x9);if(_0x18af40===_0x53111a)break;else _0x354b1c['push'](_0x354b1c['shift']());}catch(_0x2be942){_0x354b1c['push'](_0x354b1c['shift']());}}}(a132_0x1e27,0x32557));function a132_0x5cf4(_0x4c8433,_0x2683f6){_0x4c8433=_0x4c8433-0x1e4;const _0x1e2730=a132_0x1e27();let _0x5cf4cc=_0x1e2730[_0x4c8433];return _0x5cf4cc;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x378634,_0x54c4bc,_0x5472b3){const _0x1639aa=a132_0x5cf4,_0x5c8621=normalizeText(_0x378634[_0x1639aa(0x1e5)],DESCRIPTION_MAX_LENGTH),_0x11d83c=normalizeText(_0x378634[_0x1639aa(0x1f1)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x54c4bc,'risk':requireWriteRisk(_0x378634),'description':_0x5c8621||_0x11d83c||_0x1639aa(0x1f2),..._0x5472b3?{'signal':_0x5472b3}:{}};}function requireWriteRisk(_0x40d6de){const _0x455d9b=a132_0x5cf4;if(_0x40d6de['risk']===_0x455d9b(0x1f3)||_0x40d6de['risk']===_0x455d9b(0x1f4))return _0x40d6de[_0x455d9b(0x1ea)];throw new Error(_0x455d9b(0x1eb));}function normalizeText(_0x291b57,_0x2415d6){const _0x39cde2=a132_0x5cf4;if(typeof _0x291b57!==_0x39cde2(0x1e6))return'';return _0x291b57[_0x39cde2(0x1e4)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x39cde2(0x1e4)](/\s+/g,'\x20')['trim']()[_0x39cde2(0x1ef)](0x0,_0x2415d6);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47d7e3,_0x246240){const _0x1b690e=a133_0x5d3f,_0x3a9e9d=_0x47d7e3();while(!![]){try{const _0x59a418=parseInt(_0x1b690e(0x1db))/0x1*(-parseInt(_0x1b690e(0x1dd))/0x2)+parseInt(_0x1b690e(0x1d5))/0x3+-parseInt(_0x1b690e(0x1de))/0x4+-parseInt(_0x1b690e(0x1d6))/0x5+parseInt(_0x1b690e(0x1e2))/0x6+parseInt(_0x1b690e(0x1da))/0x7*(parseInt(_0x1b690e(0x1e3))/0x8)+-parseInt(_0x1b690e(0x1d7))/0x9*(-parseInt(_0x1b690e(0x1e0))/0xa);if(_0x59a418===_0x246240)break;else _0x3a9e9d['push'](_0x3a9e9d['shift']());}catch(_0x442444){_0x3a9e9d['push'](_0x3a9e9d['shift']());}}}(a133_0x513f,0x32826));export function canonicalLovrabetOperation(_0x1e42eb){const _0x5182f7=a133_0x5d3f;return[_0x1e42eb[_0x5182f7(0x1e4)],..._0x1e42eb[_0x5182f7(0x1d9)][_0x5182f7(0x1d4)]()[_0x5182f7(0x1e1)](/\s+/)][_0x5182f7(0x1df)](Boolean)['join']('.');}function a133_0x513f(){const _0xe3f39d=['write','10TiMAep','802536EIYbXn','filter','12850pBZGUZ','split','1738182bJIbXU','31208vFbPRz','service','risk','trim','119676mTSnLp','753420WDSfPg','585JjnAIj','lovrabet.write.completed','command','595XGTTDE','37299ExnwxV'];a133_0x513f=function(){return _0xe3f39d;};return a133_0x513f();}function a133_0x5d3f(_0x86cbcb,_0x26817b){_0x86cbcb=_0x86cbcb-0x1d4;const _0x513fdf=a133_0x513f();let _0x5d3f6c=_0x513fdf[_0x86cbcb];return _0x5d3f6c;}export function createLovrabetWriteMetadata(_0xd625ed,_0x2dba1d,_0x3f70b1,_0x396f3d){const _0x43506c=a133_0x5d3f;if(_0x396f3d||_0x3f70b1['ok']!==!![]||_0xd625ed[_0x43506c(0x1e5)]!==_0x43506c(0x1dc)&&_0xd625ed[_0x43506c(0x1e5)]!=='high-risk-write')return undefined;const _0x151bdd=_0xd625ed['writeEventSubject']?.(_0x3f70b1),_0x213abf={'type':_0x43506c(0x1d8),'operation':_0x2dba1d,'risk':_0xd625ed[_0x43506c(0x1e5)],..._0x151bdd?{'subject':_0x151bdd}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x213abf}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x505767,_0x18e587){const _0x2907de=a134_0x1631,_0xc078d3=_0x505767();while(!![]){try{const _0x480b7c=-parseInt(_0x2907de(0x96))/0x1+-parseInt(_0x2907de(0x7d))/0x2+parseInt(_0x2907de(0x9b))/0x3*(parseInt(_0x2907de(0x83))/0x4)+parseInt(_0x2907de(0x80))/0x5*(parseInt(_0x2907de(0x82))/0x6)+-parseInt(_0x2907de(0x8c))/0x7*(parseInt(_0x2907de(0x91))/0x8)+-parseInt(_0x2907de(0x8a))/0x9*(-parseInt(_0x2907de(0x92))/0xa)+parseInt(_0x2907de(0x7c))/0xb*(parseInt(_0x2907de(0x79))/0xc);if(_0x480b7c===_0x18e587)break;else _0xc078d3['push'](_0xc078d3['shift']());}catch(_0x20025c){_0xc078d3['push'](_0xc078d3['shift']());}}}(a134_0x1278,0x31fd1));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';function a134_0x1278(){const _0x2285f4=['command','12947DsrstP','735762QqBCue','confirm','signal','665030huCuPO','AbortError','12UFAzTx','2764YgVZaK','rawFlags','isNonInteractive','execute','reason','present','aborted','9czHwnt','dryRun','1778952ytSSMJ','result','presentation','stringify','Lovrabet\x20invocation\x20aborted.','8weupFG','2076430bGzuYu','riskLevel','definition','high-risk-write','20732ZTJseW','yes','dry-run','data','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','1434MADqJr','message','args','write','risk','444SEDiuW','format'];a134_0x1278=function(){return _0x2285f4;};return a134_0x1278();}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x2c2cd7,command:_0x48b530,risk:_0x551b59,dryRun:_0x4b24a1}){const _0x5936b8=a134_0x1631;return JSON[_0x5936b8(0x8f)]({'ok':_0x2c2cd7['ok'],'command':_0x48b530,'risk':_0x551b59,..._0x4b24a1?{'dryRun':!![]}:{},..._0x2c2cd7[_0x5936b8(0x99)]!==undefined?{'data':_0x2c2cd7['data']}:{},..._0x2c2cd7[_0x5936b8(0x9c)]?{'message':_0x2c2cd7[_0x5936b8(0x9c)]}:{}});}};export async function invokeLovrabet(_0x161abf,_0x25302b){const _0x61bfe3=a134_0x1631;throwIfAborted(_0x25302b[_0x61bfe3(0x7f)]);const _0x54390d=await resolveLovrabetInvocation(_0x161abf),_0x206a06=canonicalLovrabetOperation(_0x54390d[_0x61bfe3(0x94)]);return await confirmWriteBeforeQueue(_0x54390d['definition'],_0x54390d[_0x61bfe3(0x84)],_0x206a06,_0x25302b),runSerialized(async()=>{const _0xd5fa48=_0x61bfe3;throwIfAborted(_0x25302b[_0xd5fa48(0x7f)]);const _0x535592={},_0x1284bf=buildConfigFromFlags(_0x54390d[_0xd5fa48(0x84)]);await initGlobalEnvironment(_0x1284bf);const _0x236bf6=createPipelineEnv(_0x1284bf,{..._0x54390d[_0xd5fa48(0x84)],'yes':_0x54390d[_0xd5fa48(0x94)]['risk']===_0xd5fa48(0x95)?!![]:_0x54390d[_0xd5fa48(0x84)][_0xd5fa48(0x97)],'nonInteractive':!![]});_0x236bf6[_0xd5fa48(0x9d)]=_0x54390d[_0xd5fa48(0x9d)],_0x236bf6[_0xd5fa48(0x85)]=!![],_0x236bf6[_0xd5fa48(0x93)]='high-risk-write';const _0xb510d=withAbortSignal(_0x54390d[_0xd5fa48(0x94)],_0x25302b[_0xd5fa48(0x7f)]),_0x4be034=createLovrabetRunnerAdapter({'formatOutput'(_0xe48d34,_0x39e36a){const _0xc28b9b=_0xd5fa48;_0x535592[_0xc28b9b(0x8d)]=_0xe48d34,_0x535592[_0xc28b9b(0x7b)]=_0x39e36a[_0xc28b9b(0x7b)],_0x535592[_0xc28b9b(0x78)]=_0x39e36a[_0xc28b9b(0x78)],_0x535592[_0xc28b9b(0x7a)]=_0x39e36a[_0xc28b9b(0x7a)],_0x535592['dryRun']=_0x39e36a[_0xc28b9b(0x8b)]===!![];},async 'confirmHighRisk'(){const _0x2818b9=_0xd5fa48;throw new Error(_0x2818b9(0x9a));}});try{await runCommand(_0xb510d,_0x236bf6,_0x4be034);if(!_0x535592[_0xd5fa48(0x8d)]||!_0x535592[_0xd5fa48(0x7b)]||!_0x535592[_0xd5fa48(0x78)]||!_0x535592[_0xd5fa48(0x7a)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x533795=_0x25302b[_0xd5fa48(0x8e)]??defaultPresentation,_0x54853c=_0x535592[_0xd5fa48(0x8b)]===!![],_0x1107f4={'result':_0x535592[_0xd5fa48(0x8d)],'command':_0x535592[_0xd5fa48(0x7b)],'operation':_0x206a06,'risk':_0x535592[_0xd5fa48(0x78)],'format':_0x535592['format'],'dryRun':_0x54853c},_0x4f5fac=createLovrabetWriteMetadata(_0x54390d[_0xd5fa48(0x94)],_0x206a06,_0x535592[_0xd5fa48(0x8d)],_0x54853c);let _0x2d81bb;try{_0x2d81bb=await _0x533795[_0xd5fa48(0x88)](_0x1107f4);}catch(_0x4ed93b){if(!_0x4f5fac||_0x533795===defaultPresentation)throw _0x4ed93b;_0x2d81bb=await defaultPresentation[_0xd5fa48(0x88)](_0x1107f4);}return{'operation':_0x206a06,'risk':_0x535592[_0xd5fa48(0x78)],'mode':_0x54853c?_0xd5fa48(0x98):_0xd5fa48(0x86),'result':_0x535592['result'],'output':_0x2d81bb,..._0x4f5fac?{'metadata':_0x4f5fac}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4d9166,_0x88b1a7,_0x228e44,_0x3e5c7e){const _0x5ce7a8=a134_0x1631;if(_0x88b1a7['dryRun']===!![]||_0x4d9166[_0x5ce7a8(0x78)]!==_0x5ce7a8(0x77)&&_0x4d9166[_0x5ce7a8(0x78)]!=='high-risk-write')return;await _0x3e5c7e['confirmation'][_0x5ce7a8(0x7e)](buildLovrabetConfirmationRequest(_0x4d9166,_0x228e44,_0x3e5c7e[_0x5ce7a8(0x7f)]));}function a134_0x1631(_0x7f988,_0x5c4308){_0x7f988=_0x7f988-0x77;const _0x127886=a134_0x1278();let _0x16315a=_0x127886[_0x7f988];return _0x16315a;}function withAbortSignal(_0x71b892,_0xf448e){return{..._0x71b892,async 'execute'(_0x430453){const _0x474497=a134_0x1631;return throwIfAborted(_0xf448e),_0x71b892[_0x474497(0x86)]({..._0x430453,'signal':_0xf448e});}};}function throwIfAborted(_0x3ef1cc){const _0x474f93=a134_0x1631;if(_0x3ef1cc?.[_0x474f93(0x89)])throw _0x3ef1cc[_0x474f93(0x87)]instanceof Error?_0x3ef1cc['reason']:new DOMException(_0x474f93(0x90),_0x474f93(0x81));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a135_0x11a43a=a135_0x446b;(function(_0x18b4b5,_0x4dbe7c){const _0x41347c=a135_0x446b,_0x2dd68f=_0x18b4b5();while(!![]){try{const _0x2c0616=parseInt(_0x41347c(0x145))/0x1+parseInt(_0x41347c(0x13b))/0x2*(-parseInt(_0x41347c(0x146))/0x3)+-parseInt(_0x41347c(0x142))/0x4*(-parseInt(_0x41347c(0x140))/0x5)+parseInt(_0x41347c(0x13c))/0x6*(-parseInt(_0x41347c(0x13d))/0x7)+parseInt(_0x41347c(0x144))/0x8*(-parseInt(_0x41347c(0x13a))/0x9)+parseInt(_0x41347c(0x143))/0xa*(parseInt(_0x41347c(0x141))/0xb)+parseInt(_0x41347c(0x13f))/0xc*(parseInt(_0x41347c(0x13e))/0xd);if(_0x2c0616===_0x4dbe7c)break;else _0x2dd68f['push'](_0x2dd68f['shift']());}catch(_0x465d87){_0x2dd68f['push'](_0x2dd68f['shift']());}}}(a135_0xd02c,0xd9174));function a135_0x446b(_0x1f90fb,_0x384f11){_0x1f90fb=_0x1f90fb-0x139;const _0xd02c09=a135_0xd02c();let _0x446bf9=_0xd02c09[_0x1f90fb];return _0x446bf9;}let tail=Promise[a135_0x11a43a(0x139)]();function a135_0xd02c(){const _0xe2d4f5=['648BFVoOT','1036201gpFlQh','3pWxGFc','resolve','50697MWYODk','1315906ZVzSZR','768oHNxch','95683lPcPxg','8462233pgGeQu','12eOzXfr','2013120LEItFn','352XTAhZX','16fwKfwL','142320WbvzRG'];a135_0xd02c=function(){return _0xe2d4f5;};return a135_0xd02c();}export async function runSerialized(_0x17ba8c){const _0x49414d=tail;let _0x4ba5be;tail=new Promise(_0x184b52=>{_0x4ba5be=_0x184b52;}),await _0x49414d['catch'](()=>undefined);try{return await _0x17ba8c();}finally{_0x4ba5be();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2acd19,_0x488a8a){const _0x2123e2=a136_0x3676,_0x2a1913=_0x2acd19();while(!![]){try{const _0x3e77cc=-parseInt(_0x2123e2(0x19b))/0x1+-parseInt(_0x2123e2(0x1ab))/0x2*(parseInt(_0x2123e2(0x194))/0x3)+-parseInt(_0x2123e2(0x1a2))/0x4+-parseInt(_0x2123e2(0x195))/0x5*(-parseInt(_0x2123e2(0x1a8))/0x6)+parseInt(_0x2123e2(0x1a5))/0x7*(parseInt(_0x2123e2(0x1a7))/0x8)+parseInt(_0x2123e2(0x19e))/0x9*(-parseInt(_0x2123e2(0x196))/0xa)+parseInt(_0x2123e2(0x1aa))/0xb;if(_0x3e77cc===_0x488a8a)break;else _0x2a1913['push'](_0x2a1913['shift']());}catch(_0x20ebf7){_0x2a1913['push'](_0x2a1913['shift']());}}}(a136_0x59df,0x2273e));import a136_0x4dd04c from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a136_0x59df(){const _0x1b1669=['276108nEjcAP','validation','flags','4239HrDGvt','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','join','args','328336plzAHN','unknownCommand','defaultCommand','63FKEZRi','message','72584qgjthD','90zrnMXZ','definition','7063001ftqHdt','25798GvgbzU','39bLlOQL','29125YsJbmj','3060QNMrhQ','slice','hint','assign','flatMap'];a136_0x59df=function(){return _0x1b1669;};return a136_0x59df();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x6b15bd){const _0x1f4fa6=a136_0x3676,_0x7281f0=a136_0x4dd04c('',{'importMeta':import.meta,'argv':_0x6b15bd,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x27182d=[..._0x7281f0['input']],_0xecd0c2=_0x7281f0[_0x1f4fa6(0x19d)];await correctFlags(_0xecd0c2);const _0x33822c=_0x27182d[0x0];if(!_0x33822c)throw CliErrors[_0x1f4fa6(0x19c)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x5ae40d=resolveRemovedCommand(_0x33822c,_0x27182d[0x1]);if(_0x5ae40d)throw CliErrors[_0x1f4fa6(0x19c)](_0x5ae40d[_0x1f4fa6(0x1a6)],_0x5ae40d[_0x1f4fa6(0x198)]);if(!isKnownService(_0x33822c)){const _0x3f3d9b=resolveDynamicServiceCommand(_0x27182d,_0xecd0c2);if(!_0x3f3d9b)throw CliErrors[_0x1f4fa6(0x1a3)](_0x27182d[_0x1f4fa6(0x1a0)]('\x20'));return Object[_0x1f4fa6(0x199)](_0xecd0c2,_0x3f3d9b[_0x1f4fa6(0x19d)]),{'definition':_0x3f3d9b[_0x1f4fa6(0x1a9)],'rawFlags':_0xecd0c2,'args':_0x3f3d9b[_0x1f4fa6(0x1a1)]};}const _0x5bf0a9=getServiceEntry(_0x33822c),_0x1ea243=_0x27182d[0x1]||_0x5bf0a9[_0x1f4fa6(0x1a4)];if(!_0x1ea243)throw CliErrors['validation'](_0x1f4fa6(0x19f)+_0x33822c+'\x22.');const _0x4b83c9=findDefinition(_0x33822c,_0x1ea243);if(!_0x4b83c9)throw CliErrors[_0x1f4fa6(0x1a3)](_0x33822c+'\x20'+_0x1ea243);return{'definition':_0x4b83c9,'rawFlags':_0xecd0c2,'args':_0x27182d[_0x1f4fa6(0x197)](0x2)};}function a136_0x3676(_0x1a04dc,_0x22d665){_0x1a04dc=_0x1a04dc-0x194;const _0x59df83=a136_0x59df();let _0x3676bf=_0x59df83[_0x1a04dc];return _0x3676bf;}async function correctFlags(_0x129c63){const _0x1d586c=a136_0x3676;try{const {correctFlags:_0x1d6720}=await import('../framework/preparse.js'),{getAllDefinitions:_0x346d36}=await import('../commands/registry.js'),_0x40b2a6=_0x346d36()[_0x1d586c(0x19a)](_0x3a48ff=>_0x3a48ff[_0x1d586c(0x19d)]??[]),_0x532a53=_0x1d6720(_0x129c63,_0x40b2a6);Object[_0x1d586c(0x199)](_0x129c63,_0x532a53[_0x1d586c(0x19d)]);}catch{}}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ImportOptions } from "./runner.js";
|
|
2
|
-
export declare function runAutoIdExcelImport(input: ImportOptions
|
|
2
|
+
export declare function runAutoIdExcelImport(input: ImportOptions & {
|
|
3
|
+
reconcileImageConflicts?: boolean;
|
|
4
|
+
}): Promise<{
|
|
3
5
|
importId: string | undefined;
|
|
4
6
|
sourceRows: number;
|
|
5
7
|
emptyRows: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a138_0x3ed017=a138_0x1867;(function(_0x49932f,_0x4625aa){const _0x399c5d=a138_0x1867,_0x4eb2f2=_0x49932f();while(!![]){try{const _0x5ce634=-parseInt(_0x399c5d(0x1de))/0x1*(parseInt(_0x399c5d(0x1ee))/0x2)+parseInt(_0x399c5d(0x199))/0x3*(parseInt(_0x399c5d(0x1b1))/0x4)+-parseInt(_0x399c5d(0x198))/0x5+parseInt(_0x399c5d(0x1c1))/0x6*(-parseInt(_0x399c5d(0x1d5))/0x7)+-parseInt(_0x399c5d(0x1a8))/0x8*(parseInt(_0x399c5d(0x19d))/0x9)+parseInt(_0x399c5d(0x1db))/0xa*(-parseInt(_0x399c5d(0x1aa))/0xb)+parseInt(_0x399c5d(0x19a))/0xc*(parseInt(_0x399c5d(0x1af))/0xd);if(_0x5ce634===_0x4625aa)break;else _0x4eb2f2['push'](_0x4eb2f2['shift']());}catch(_0x22acd2){_0x4eb2f2['push'](_0x4eb2f2['shift']());}}}(a138_0x48bf,0x4981e));function a138_0x48bf(){const _0x2231c5=['add','616SBACPp','schemaFingerprint','now','Excel\x20row\x20','batches','1469FJGGMe','Cannot\x20read\x20the\x20import\x20checkpoint.','24972RjoSnY','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','toString','utf8','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','parse','keys','message','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','taskId','count','some','binding','rowNumber','includes','hex','3349902biDCOv','Import\x20generated\x20ID\x20conflict.','readTask','pending','schemaHash','code','importId','Partial\x20import\x20task\x20readback\x20conflict.','length','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','write','size','maxBatchSize','appCode','byteLength','rowIndexes','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','unknown','maxBatchBytes','warnings','7WQelDF','isInteger','strategy','Invalid\x20import\x20task\x20readback\x20response.','runtimeDomain','errors','27340RrRAve','succeeded','filter','2MMinIG','map','checkpoint','stringify','isSafeInteger','flatMap','status','values','push','mappingHash','conflict','rows','schemaVersion','number','has','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','513546KWLrYz','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Invalid\x20import\x20batch\x20size.','isArray','batchSize','2081400tYysaU','108ueYKZw','244092sZzBjV','resume','sheet','11196jkMemn','actorId','ids','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','Excel\x20contains\x20no\x20valid\x20data\x20rows.','ENOENT','hasOwn','report','reduce','completed','unsent','3736RhgyQk'];a138_0x48bf=function(){return _0x2231c5;};return a138_0x48bf();}import{randomBytes,randomUUID}from'node:crypto';function a138_0x1867(_0x427bf7,_0x540f9c){_0x427bf7=_0x427bf7-0x197;const _0x48bfbe=a138_0x48bf();let _0x1867a9=_0x48bfbe[_0x427bf7];return _0x1867a9;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0xa4c6fe=>typeof _0xa4c6fe===a138_0x3ed017(0x1eb)&&Number[a138_0x3ed017(0x1e2)](_0xa4c6fe)&&_0xa4c6fe>0x0;export async function runAutoIdExcelImport(_0x24ed1c){const _0x292bfe=a138_0x3ed017,_0x2f5e61={..._0x24ed1c,'checkpoint':await resolveImportOutputPath(_0x24ed1c[_0x292bfe(0x1e0)]),'report':await resolveImportOutputPath(_0x24ed1c[_0x292bfe(0x1a4)])},{manifest:_0xb9ec28,contract:_0x536cca,api:_0x5a0ceb}=_0x2f5e61;assertImportContract(_0x536cca,_0x2f5e61[_0x292bfe(0x1ce)],_0x2f5e61['datasetCode']);if(_0x536cca[_0x292bfe(0x1ea)]!==0x2||!_0x5a0ceb[_0x292bfe(0x1c3)])throw Error(_0x292bfe(0x1a0));if(_0xb9ec28[_0x292bfe(0x1da)][_0x292bfe(0x1c9)])throw Error(_0x292bfe(0x1ca));if(!_0xb9ec28[_0x292bfe(0x1e9)]['length'])throw Error(_0x292bfe(0x1a1));if(!Number[_0x292bfe(0x1d6)](_0x2f5e61['batchSize'])||_0x2f5e61[_0x292bfe(0x197)]<0x1||_0x2f5e61['batchSize']>_0x536cca[_0x292bfe(0x1cd)])throw Error(_0x292bfe(0x1f1));assertImportPaths(_0x2f5e61[_0x292bfe(0x1e0)],_0x2f5e61[_0x292bfe(0x1a4)]);if(_0xb9ec28[_0x292bfe(0x1e9)]['some'](_0x3d389f=>Object[_0x292bfe(0x1a3)](_0x3d389f[_0x292bfe(0x1e5)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x6cec9=(_0x35fd50,_0xa29d5c)=>Buffer[_0x292bfe(0x1cf)](JSON[_0x292bfe(0x1e1)]({'schemaFingerprint':_0x536cca[_0x292bfe(0x1ab)],'taskId':_0xa29d5c,'items':_0x35fd50[_0x292bfe(0x1df)](_0x8f0bd7=>_0xb9ec28[_0x292bfe(0x1e9)][_0x8f0bd7]['values'])}),_0x292bfe(0x1b4)),_0x134846=[];let _0x20c2ba=[];for(let _0x738cb4=0x0;_0x738cb4<_0xb9ec28[_0x292bfe(0x1e9)]['length'];_0x738cb4++){if(_0x6cec9([_0x738cb4],0x2**0x34)>_0x536cca[_0x292bfe(0x1d3)])throw Error(_0x292bfe(0x1ad)+_0xb9ec28['rows'][_0x738cb4][_0x292bfe(0x1be)]+_0x292bfe(0x1ef));_0x20c2ba[_0x292bfe(0x1c9)]&&(_0x20c2ba['length']===_0x2f5e61[_0x292bfe(0x197)]||_0x6cec9([..._0x20c2ba,_0x738cb4],0x2**0x34)>_0x536cca[_0x292bfe(0x1d3)])&&(_0x134846['push'](_0x20c2ba),_0x20c2ba=[]),_0x20c2ba['push'](_0x738cb4);}if(_0x20c2ba[_0x292bfe(0x1c9)])_0x134846[_0x292bfe(0x1e6)](_0x20c2ba);const _0x25ca76={'appCode':_0x2f5e61['appCode'],'datasetCode':_0x2f5e61['datasetCode'],'runtimeDomain':_0x2f5e61[_0x292bfe(0x1d9)],'actorId':_0x536cca[_0x292bfe(0x19e)],'fileHash':_0xb9ec28['fileHash'],'mappingHash':_0xb9ec28[_0x292bfe(0x1e7)],'schemaHash':_0xb9ec28[_0x292bfe(0x1c5)],'remoteSchemaHash':_0x536cca[_0x292bfe(0x1ab)],'batchSize':_0x2f5e61[_0x292bfe(0x197)],'maxBatchBytes':_0x536cca['maxBatchBytes'],'sheet':_0xb9ec28[_0x292bfe(0x19c)],'strategy':_0x536cca[_0x292bfe(0x1d7)]},_0x554e0a=await acquireLock(_0x2f5e61[_0x292bfe(0x1e0)]);let _0x3987f3;const _0x6b2f3=Date[_0x292bfe(0x1ac)]();let _0x4b57c0=0x0;const _0x53191c=[],_0x33f72c=_0x5c6cde=>_0x3987f3?.[_0x292bfe(0x1ae)][_0x292bfe(0x1dd)](_0x195b6e=>_0x195b6e['status']===_0x5c6cde)[_0x292bfe(0x1a5)]((_0x28612c,_0x335049)=>_0x28612c+_0x335049[_0x292bfe(0x1d0)][_0x292bfe(0x1c9)],0x0)??0x0,_0x5d4f28=()=>({'importId':_0x3987f3?.[_0x292bfe(0x1c7)],'sourceRows':_0xb9ec28['rows'][_0x292bfe(0x1c9)],'emptyRows':_0xb9ec28['emptyRows'][_0x292bfe(0x1c9)],'succeeded':_0x33f72c(_0x292bfe(0x1dc)),'unknown':_0x33f72c('pending'),'conflicts':_0x33f72c(_0x292bfe(0x1e8)),'notAttempted':_0x33f72c('unsent'),'batches':_0x4b57c0,'batchResults':_0x53191c,'elapsedMs':Date[_0x292bfe(0x1ac)]()-_0x6b2f3,'checkpoint':_0x2f5e61['checkpoint'],'report':_0x2f5e61[_0x292bfe(0x1a4)],'warnings':_0xb9ec28[_0x292bfe(0x1d4)]});try{if(_0x2f5e61[_0x292bfe(0x19b)]){try{_0x3987f3=JSON[_0x292bfe(0x1b6)](await readFile(_0x2f5e61[_0x292bfe(0x1e0)],_0x292bfe(0x1b4)));}catch{throw Error(_0x292bfe(0x1b0));}if(!_0x3987f3||_0x3987f3['version']!==0x2||typeof _0x3987f3[_0x292bfe(0x1c7)]!=='string'||!_0x3987f3[_0x292bfe(0x1c7)]||canonical(_0x3987f3[_0x292bfe(0x1bd)])!==canonical(_0x25ca76)||!Array[_0x292bfe(0x1f2)](_0x3987f3['batches'])||_0x3987f3['batches']['length']!==_0x134846[_0x292bfe(0x1c9)]||new Set(_0x3987f3[_0x292bfe(0x1ae)]['map'](_0x3e7a93=>_0x3e7a93['taskId']))['size']!==_0x134846[_0x292bfe(0x1c9)]||_0x3987f3[_0x292bfe(0x1ae)]['some']((_0x49ede4,_0x216de6)=>!validId(_0x49ede4[_0x292bfe(0x1ba)])||_0x49ede4[_0x292bfe(0x1ba)]>0x2**0x34||canonical(_0x49ede4[_0x292bfe(0x1d0)])!==canonical(_0x134846[_0x216de6])||!['unsent',_0x292bfe(0x1c4),'succeeded','conflict'][_0x292bfe(0x1bf)](_0x49ede4[_0x292bfe(0x1e4)])||!Array[_0x292bfe(0x1f2)](_0x49ede4[_0x292bfe(0x19f)])||_0x49ede4['ids']['some'](_0x467a5e=>!validId(_0x467a5e))||new Set(_0x49ede4[_0x292bfe(0x19f)])[_0x292bfe(0x1cc)]!==_0x49ede4['ids'][_0x292bfe(0x1c9)]||_0x49ede4[_0x292bfe(0x19f)]['length']!==0x0&&_0x49ede4[_0x292bfe(0x19f)]['length']!==_0x49ede4['rowIndexes']['length']||_0x49ede4[_0x292bfe(0x1e4)]===_0x292bfe(0x1dc)&&_0x49ede4[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==_0x49ede4[_0x292bfe(0x1d0)][_0x292bfe(0x1c9)]||_0x49ede4[_0x292bfe(0x1e4)]===_0x292bfe(0x1a7)&&_0x49ede4[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==0x0))throw Error(_0x292bfe(0x1ed));const _0x456d3c=_0x3987f3[_0x292bfe(0x1ae)][_0x292bfe(0x1e3)](_0x151c6a=>_0x151c6a['ids']);if(new Set(_0x456d3c)[_0x292bfe(0x1cc)]!==_0x456d3c[_0x292bfe(0x1c9)])throw Error(_0x292bfe(0x1d1));}else{try{await lstat(_0x2f5e61[_0x292bfe(0x1e0)]);throw Error(_0x292bfe(0x1b9));}catch(_0x35e11a){if(_0x35e11a[_0x292bfe(0x1c6)]!==_0x292bfe(0x1a2))throw _0x35e11a;}const _0x18ba23=new Set();_0x3987f3={'version':0x2,'importId':randomUUID(),'binding':_0x25ca76,'batches':_0x134846[_0x292bfe(0x1df)](_0x2848de=>{const _0x15d381=_0x292bfe;let _0x1a55de;do{_0x1a55de=Number(BigInt('0x'+randomBytes(0x7)[_0x15d381(0x1b3)](_0x15d381(0x1c0)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x18ba23[_0x15d381(0x1ec)](_0x1a55de));return _0x18ba23[_0x15d381(0x1a9)](_0x1a55de),{'taskId':_0x1a55de,'rowIndexes':_0x2848de,'ids':[],'status':_0x15d381(0x1a7)};})},await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x3987f3);}const _0x590bb5=_0x3987f3,_0xc2c3c5=async(_0x475edc,_0x5ad9e3)=>{const _0x5d5013=_0x292bfe;_0x475edc[_0x5d5013(0x1e4)]='conflict',await saveImportJson(_0x2f5e61['checkpoint'],_0x590bb5);throw Error(_0x5ad9e3);},_0x4c8055=async _0x2404f6=>{const _0x4b660a=_0x292bfe,_0x42ef90=await _0x5a0ceb[_0x4b660a(0x1c3)](_0x2404f6['taskId']);if(!Array[_0x4b660a(0x1f2)](_0x42ef90))throw Error(_0x4b660a(0x1d8));if(_0x2404f6[_0x4b660a(0x1e4)]==='unsent'&&_0x42ef90[_0x4b660a(0x1c9)])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1b5));if(!_0x42ef90[_0x4b660a(0x1c9)]){if(_0x2404f6['status']===_0x4b660a(0x1dc)||_0x2404f6[_0x4b660a(0x19f)][_0x4b660a(0x1c9)])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1b2));return![];}if(_0x42ef90[_0x4b660a(0x1c9)]!==_0x2404f6[_0x4b660a(0x1d0)]['length'])return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c8));const _0x39b341=_0x42ef90[_0x4b660a(0x1df)](_0x412d02=>_0x412d02?.['id']);if(_0x39b341[_0x4b660a(0x1bc)](_0x1787ad=>!validId(_0x1787ad)))return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c2));const _0x59f84d=_0x39b341;if(_0x59f84d[_0x4b660a(0x1bc)](_0x1cb213=>!validId(_0x1cb213))||_0x59f84d[_0x4b660a(0x1bc)]((_0x2893e8,_0x191ebd)=>_0x191ebd>0x0&&_0x2893e8<=_0x59f84d[_0x191ebd-0x1])||_0x2404f6[_0x4b660a(0x19f)]['length']&&canonical(_0x59f84d)!==canonical(_0x2404f6[_0x4b660a(0x19f)]))return _0xc2c3c5(_0x2404f6,_0x4b660a(0x1c2));const _0x1d6e97=new Set(_0x590bb5['batches'][_0x4b660a(0x1dd)](_0x1dd160=>_0x1dd160!==_0x2404f6)[_0x4b660a(0x1e3)](_0x545f43=>_0x545f43[_0x4b660a(0x19f)]));if(_0x59f84d[_0x4b660a(0x1bc)](_0x347c22=>_0x1d6e97[_0x4b660a(0x1ec)](_0x347c22)))return _0xc2c3c5(_0x2404f6,'Import\x20generated\x20ID\x20collision.');for(let _0x1a0cf8=0x0;_0x1a0cf8<_0x42ef90[_0x4b660a(0x1c9)];_0x1a0cf8++){const _0x542058=_0xb9ec28[_0x4b660a(0x1e9)][_0x2404f6[_0x4b660a(0x1d0)][_0x1a0cf8]][_0x4b660a(0x1e5)];if(Object[_0x4b660a(0x1b7)](_0x542058)[_0x4b660a(0x1bc)](_0x309249=>!sameImportValue(_0x542058[_0x309249],_0x42ef90[_0x1a0cf8][_0x309249])))return _0xc2c3c5(_0x2404f6,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0xb9ec28['rows'][_0x2404f6[_0x4b660a(0x1d0)][_0x1a0cf8]][_0x4b660a(0x1be)]+'.');}return _0x2404f6['ids']=_0x59f84d,_0x2404f6['status']=_0x4b660a(0x1dc),await saveImportJson(_0x2f5e61['checkpoint'],_0x590bb5),!![];};if(_0x590bb5['batches'][_0x292bfe(0x1bc)](_0x4e906e=>_0x4e906e[_0x292bfe(0x1e4)]===_0x292bfe(0x1e8)))throw Error(_0x292bfe(0x1f0));if(_0x2f5e61['resume']){for(const _0x4e8882 of _0x590bb5['batches'])await _0x4c8055(_0x4e8882);}for(const _0x27399c of _0x590bb5[_0x292bfe(0x1ae)]){if(_0x27399c[_0x292bfe(0x1e4)]===_0x292bfe(0x1dc))continue;if(!_0x2f5e61['resume'])await _0x4c8055(_0x27399c);_0x27399c[_0x292bfe(0x1e4)]=_0x292bfe(0x1c4),await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x590bb5),_0x4b57c0++;const _0x21c87c=_0x27399c[_0x292bfe(0x1d0)][_0x292bfe(0x1df)](_0x10eb7e=>_0xb9ec28[_0x292bfe(0x1e9)][_0x10eb7e][_0x292bfe(0x1e5)]),_0x14baf9=Date['now'](),_0x2dbf87={'batch':_0x4b57c0,'rowStart':_0xb9ec28[_0x292bfe(0x1e9)][_0x27399c[_0x292bfe(0x1d0)][0x0]][_0x292bfe(0x1be)],'rowEnd':_0xb9ec28['rows'][_0x27399c[_0x292bfe(0x1d0)]['at'](-0x1)][_0x292bfe(0x1be)],'count':_0x21c87c[_0x292bfe(0x1c9)],'bytes':_0x6cec9(_0x27399c[_0x292bfe(0x1d0)],_0x27399c[_0x292bfe(0x1ba)]),'elapsedMs':0x0,'status':_0x292bfe(0x1d2)};_0x53191c[_0x292bfe(0x1e6)](_0x2dbf87);try{const _0x3266ff=await _0x5a0ceb[_0x292bfe(0x1cb)](_0x21c87c,_0x27399c[_0x292bfe(0x1ba)]);if(!_0x3266ff||_0x3266ff[_0x292bfe(0x1bb)]!==_0x21c87c['length']||!Array[_0x292bfe(0x1f2)](_0x3266ff['ids'])||_0x3266ff[_0x292bfe(0x19f)][_0x292bfe(0x1c9)]!==_0x21c87c[_0x292bfe(0x1c9)]||_0x3266ff['ids'][_0x292bfe(0x1bc)](_0x4fd43e=>!validId(_0x4fd43e))||new Set(_0x3266ff[_0x292bfe(0x19f)])[_0x292bfe(0x1cc)]!==_0x3266ff[_0x292bfe(0x19f)][_0x292bfe(0x1c9)])throw Error('Invalid\x20write\x20result.');_0x27399c[_0x292bfe(0x19f)]=_0x3266ff[_0x292bfe(0x19f)],await saveImportJson(_0x2f5e61[_0x292bfe(0x1e0)],_0x590bb5);if(!await _0x4c8055(_0x27399c))throw Error('Incomplete\x20readback.');}catch(_0x234c8a){if(_0x27399c[_0x292bfe(0x1e4)]===_0x292bfe(0x1e8))throw _0x234c8a;try{await _0x4c8055(_0x27399c);}catch(_0x170f3b){if(_0x27399c[_0x292bfe(0x1e4)]==='conflict')throw _0x170f3b;}if(_0x27399c['status']!==_0x292bfe(0x1dc))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x2dbf87['elapsedMs']=Date['now']()-_0x14baf9,_0x2dbf87[_0x292bfe(0x1e4)]=_0x27399c['status']===_0x292bfe(0x1dc)?'succeeded':_0x27399c[_0x292bfe(0x1e4)]==='conflict'?'conflict':_0x292bfe(0x1d2);}}const _0x8b949a={'status':_0x292bfe(0x1a6),..._0x5d4f28()};return await saveImportJson(_0x2f5e61['report'],_0x8b949a),_0x8b949a;}catch(_0x1bcc28){if(_0x3987f3)await saveImportJson(_0x2f5e61[_0x292bfe(0x1a4)],{'status':'incomplete',..._0x5d4f28(),'message':_0x1bcc28[_0x292bfe(0x1b8)]});throw _0x1bcc28;}finally{await _0x554e0a();}}
|
|
1
|
+
function a138_0x7aab(){const _0x512146=['values','sheet','schemaHash','resume','batches','206995zrDlzs','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Import\x20generated\x20ID\x20collision.','string','imageFields','maxBatchSize','uploadFields','3QsqmKK','Cannot\x20read\x20the\x20import\x20checkpoint.','196488xlhYdM','151250snDUyk','status','checkpoint','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','includes','Invalid\x20import\x20task\x20readback\x20response.','push','completed','message','fileHash','reconcileImageConflicts','importId','maxBatchBytes','report','243JPAGGo','runtimeDomain','246CTRlPc','onCheckpointReady','ids','errors','unsent','3294500iCcMoG','isInteger','56434ofDkRd','rows','binding','hex','some','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','keys','flatMap','add','elapsedMs','utf8','batchSize','warnings','isSafeInteger','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','rowNumber','now','actorId','succeeded','972788bqHCxX','reduce','785922PmVNxt','strategy','length','appCode','Invalid\x20write\x20result.','number','readTask','byteLength','rowIndexes','Incomplete\x20readback.','schemaFingerprint','Excel\x20row\x20','pending','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','filter','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','datasetCode','map','incomplete','ENOENT','Excel\x20contains\x20no\x20valid\x20data\x20rows.','schemaVersion','write','taskId','Partial\x20import\x20task\x20readback\x20conflict.','isArray','size','conflict','has','Import\x20generated\x20ID\x20conflict.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.'];a138_0x7aab=function(){return _0x512146;};return a138_0x7aab();}const a138_0x3e9677=a138_0x4446;(function(_0x243aaa,_0x2158a4){const _0x4b9fc5=a138_0x4446,_0x475c7a=_0x243aaa();while(!![]){try{const _0x2e842e=-parseInt(_0x4b9fc5(0x208))/0x1+parseInt(_0x4b9fc5(0x1d9))/0x2+parseInt(_0x4b9fc5(0x205))/0x3*(parseInt(_0x4b9fc5(0x1d7))/0x4)+parseInt(_0x4b9fc5(0x1fd))/0x5+parseInt(_0x4b9fc5(0x1bd))/0x6*(-parseInt(_0x4b9fc5(0x1c4))/0x7)+parseInt(_0x4b9fc5(0x207))/0x8*(parseInt(_0x4b9fc5(0x1bb))/0x9)+-parseInt(_0x4b9fc5(0x1c2))/0xa;if(_0x2e842e===_0x2158a4)break;else _0x475c7a['push'](_0x475c7a['shift']());}catch(_0x238d7c){_0x475c7a['push'](_0x475c7a['shift']());}}}(a138_0x7aab,0x81436));import{randomBytes,randomUUID}from'node:crypto';function a138_0x4446(_0x5a92b7,_0x563a33){_0x5a92b7=_0x5a92b7-0x1b9;const _0x7aabc8=a138_0x7aab();let _0x44461c=_0x7aabc8[_0x5a92b7];return _0x44461c;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x2e318b=>typeof _0x2e318b===a138_0x3e9677(0x1de)&&Number[a138_0x3e9677(0x1d1)](_0x2e318b)&&_0x2e318b>0x0;export async function runAutoIdExcelImport(_0x46713c){const _0x56075e=a138_0x3e9677,_0x4f84ae={..._0x46713c,'checkpoint':await resolveImportOutputPath(_0x46713c[_0x56075e(0x20a)]),'report':await resolveImportOutputPath(_0x46713c['report'])},{manifest:_0x43d80c,contract:_0x2e888b,api:_0x20fdef}=_0x4f84ae;assertImportContract(_0x2e888b,_0x4f84ae[_0x56075e(0x1dc)],_0x4f84ae['datasetCode']);if(_0x2e888b[_0x56075e(0x1ee)]!==0x2||!_0x20fdef[_0x56075e(0x1df)])throw Error(_0x56075e(0x1e8));if(_0x43d80c[_0x56075e(0x1c0)][_0x56075e(0x1db)])throw Error(_0x56075e(0x20b));if(!_0x43d80c[_0x56075e(0x1c5)]['length'])throw Error(_0x56075e(0x1ed));if(!Number[_0x56075e(0x1c3)](_0x4f84ae[_0x56075e(0x1cf)])||_0x4f84ae[_0x56075e(0x1cf)]<0x1||_0x4f84ae['batchSize']>_0x2e888b[_0x56075e(0x203)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x4f84ae[_0x56075e(0x20a)],_0x4f84ae[_0x56075e(0x1ba)]);if(_0x43d80c[_0x56075e(0x1c5)][_0x56075e(0x1c8)](_0x37e2fe=>Object['hasOwn'](_0x37e2fe[_0x56075e(0x1f8)],'id')))throw Error(_0x56075e(0x1fe));const _0x42173e=(_0x4bf2a4,_0x53d0b9)=>Buffer[_0x56075e(0x1e0)](JSON['stringify']({'schemaFingerprint':_0x2e888b[_0x56075e(0x1e3)],'taskId':_0x53d0b9,'items':_0x4bf2a4[_0x56075e(0x1ea)](_0x38bb6a=>_0x43d80c[_0x56075e(0x1c5)][_0x38bb6a][_0x56075e(0x1f8)])}),_0x56075e(0x1ce)),_0x312998=[];let _0x312f47=[];for(let _0x3851bc=0x0;_0x3851bc<_0x43d80c[_0x56075e(0x1c5)]['length'];_0x3851bc++){if(_0x42173e([_0x3851bc],0x2**0x34)>_0x2e888b[_0x56075e(0x1b9)])throw Error(_0x56075e(0x1e4)+_0x43d80c['rows'][_0x3851bc]['rowNumber']+_0x56075e(0x1ff));_0x312f47[_0x56075e(0x1db)]&&(_0x312f47[_0x56075e(0x1db)]===_0x4f84ae['batchSize']||_0x42173e([..._0x312f47,_0x3851bc],0x2**0x34)>_0x2e888b[_0x56075e(0x1b9)])&&(_0x312998['push'](_0x312f47),_0x312f47=[]),_0x312f47['push'](_0x3851bc);}if(_0x312f47['length'])_0x312998[_0x56075e(0x20e)](_0x312f47);const _0x3bed5a={'appCode':_0x4f84ae[_0x56075e(0x1dc)],'datasetCode':_0x4f84ae[_0x56075e(0x1e9)],'runtimeDomain':_0x4f84ae[_0x56075e(0x1bc)],'actorId':_0x2e888b[_0x56075e(0x1d5)],'fileHash':_0x43d80c[_0x56075e(0x211)],'mappingHash':_0x43d80c['mappingHash'],'schemaHash':_0x43d80c[_0x56075e(0x1fa)],'remoteSchemaHash':_0x2e888b[_0x56075e(0x1e3)],'batchSize':_0x4f84ae[_0x56075e(0x1cf)],'maxBatchBytes':_0x2e888b[_0x56075e(0x1b9)],'sheet':_0x43d80c[_0x56075e(0x1f9)],'strategy':_0x2e888b[_0x56075e(0x1da)]},_0x215556=await acquireLock(_0x4f84ae[_0x56075e(0x20a)]);let _0x18dada;const _0x5dde33=Date[_0x56075e(0x1d4)]();let _0x2f23e0=0x0;const _0x5f47f8=[],_0x5816c0=_0x6a012=>_0x18dada?.[_0x56075e(0x1fc)][_0x56075e(0x1e7)](_0x349ba1=>_0x349ba1[_0x56075e(0x209)]===_0x6a012)[_0x56075e(0x1d8)]((_0x2a0ab4,_0x47bd69)=>_0x2a0ab4+_0x47bd69['rowIndexes']['length'],0x0)??0x0,_0x7b792=()=>({'importId':_0x18dada?.[_0x56075e(0x213)],'sourceRows':_0x43d80c[_0x56075e(0x1c5)]['length'],'emptyRows':_0x43d80c['emptyRows'][_0x56075e(0x1db)],'succeeded':_0x5816c0(_0x56075e(0x1d6)),'unknown':_0x5816c0(_0x56075e(0x1e5)),'conflicts':_0x5816c0(_0x56075e(0x1f4)),'notAttempted':_0x5816c0('unsent'),'batches':_0x2f23e0,'batchResults':_0x5f47f8,'elapsedMs':Date[_0x56075e(0x1d4)]()-_0x5dde33,'checkpoint':_0x4f84ae[_0x56075e(0x20a)],'report':_0x4f84ae[_0x56075e(0x1ba)],'warnings':_0x43d80c[_0x56075e(0x1d0)]});try{if(_0x4f84ae[_0x56075e(0x1fb)]){try{_0x18dada=JSON['parse'](await readFile(_0x4f84ae[_0x56075e(0x20a)],_0x56075e(0x1ce)));}catch{throw Error(_0x56075e(0x206));}if(!_0x18dada||_0x18dada['version']!==0x2||typeof _0x18dada['importId']!==_0x56075e(0x201)||!_0x18dada['importId']||canonical(_0x18dada[_0x56075e(0x1c6)])!==canonical(_0x3bed5a)||!Array[_0x56075e(0x1f2)](_0x18dada[_0x56075e(0x1fc)])||_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1db)]!==_0x312998[_0x56075e(0x1db)]||new Set(_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1ea)](_0x5654de=>_0x5654de[_0x56075e(0x1f0)]))[_0x56075e(0x1f3)]!==_0x312998['length']||_0x18dada['batches']['some']((_0x5f54df,_0x3ec5ea)=>!validId(_0x5f54df[_0x56075e(0x1f0)])||_0x5f54df[_0x56075e(0x1f0)]>0x2**0x34||canonical(_0x5f54df[_0x56075e(0x1e1)])!==canonical(_0x312998[_0x3ec5ea])||![_0x56075e(0x1c1),'pending','succeeded','conflict'][_0x56075e(0x20c)](_0x5f54df[_0x56075e(0x209)])||!Array[_0x56075e(0x1f2)](_0x5f54df[_0x56075e(0x1bf)])||_0x5f54df['ids'][_0x56075e(0x1c8)](_0x38b337=>!validId(_0x38b337))||new Set(_0x5f54df[_0x56075e(0x1bf)])[_0x56075e(0x1f3)]!==_0x5f54df[_0x56075e(0x1bf)][_0x56075e(0x1db)]||_0x5f54df[_0x56075e(0x1bf)]['length']!==0x0&&_0x5f54df[_0x56075e(0x1bf)]['length']!==_0x5f54df[_0x56075e(0x1e1)][_0x56075e(0x1db)]||_0x5f54df['status']==='succeeded'&&_0x5f54df[_0x56075e(0x1bf)]['length']!==_0x5f54df[_0x56075e(0x1e1)][_0x56075e(0x1db)]||_0x5f54df['status']===_0x56075e(0x1c1)&&_0x5f54df['ids'][_0x56075e(0x1db)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0xe8be63=_0x18dada[_0x56075e(0x1fc)][_0x56075e(0x1cb)](_0x13902a=>_0x13902a[_0x56075e(0x1bf)]);if(new Set(_0xe8be63)[_0x56075e(0x1f3)]!==_0xe8be63[_0x56075e(0x1db)])throw Error(_0x56075e(0x1c9));}else{try{await lstat(_0x4f84ae[_0x56075e(0x20a)]);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x3846e5){if(_0x3846e5['code']!==_0x56075e(0x1ec))throw _0x3846e5;}const _0x57bdb4=new Set();_0x18dada={'version':0x2,'importId':randomUUID(),'binding':_0x3bed5a,'batches':_0x312998[_0x56075e(0x1ea)](_0x343a8f=>{const _0x5e7386=_0x56075e;let _0x25fdd5;do{_0x25fdd5=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x5e7386(0x1c7)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x57bdb4[_0x5e7386(0x1f5)](_0x25fdd5));return _0x57bdb4[_0x5e7386(0x1cc)](_0x25fdd5),{'taskId':_0x25fdd5,'rowIndexes':_0x343a8f,'ids':[],'status':_0x5e7386(0x1c1)};})},await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x18dada);}await _0x4f84ae[_0x56075e(0x1be)]?.();const _0x138250=_0x18dada,_0x1fb5d4=async(_0x2b4fe3,_0x308860)=>{const _0x1cca58=_0x56075e;_0x2b4fe3[_0x1cca58(0x209)]=_0x1cca58(0x1f4),await saveImportJson(_0x4f84ae[_0x1cca58(0x20a)],_0x138250);throw Error(_0x308860);},_0x3dfabb=async _0x5b72de=>{const _0x44791d=_0x56075e,_0x6b875d=await _0x20fdef[_0x44791d(0x1df)](_0x5b72de[_0x44791d(0x1f0)]);if(!Array[_0x44791d(0x1f2)](_0x6b875d))throw Error(_0x44791d(0x20d));if(_0x5b72de[_0x44791d(0x209)]===_0x44791d(0x1c1)&&_0x6b875d[_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x6b875d[_0x44791d(0x1db)]){if(_0x5b72de[_0x44791d(0x209)]===_0x44791d(0x1d6)||_0x5b72de[_0x44791d(0x1bf)][_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,_0x44791d(0x1e6));return![];}if(_0x6b875d[_0x44791d(0x1db)]!==_0x5b72de[_0x44791d(0x1e1)][_0x44791d(0x1db)])return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f1));const _0x5ff25c=_0x6b875d['map'](_0x34f719=>_0x34f719?.['id']);if(_0x5ff25c['some'](_0x14e173=>!validId(_0x14e173)))return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f6));const _0x1df5e1=_0x5ff25c;if(_0x1df5e1[_0x44791d(0x1c8)](_0xc29b04=>!validId(_0xc29b04))||_0x1df5e1[_0x44791d(0x1c8)]((_0x5933a0,_0x288784)=>_0x288784>0x0&&_0x5933a0<=_0x1df5e1[_0x288784-0x1])||_0x5b72de['ids'][_0x44791d(0x1db)]&&canonical(_0x1df5e1)!==canonical(_0x5b72de[_0x44791d(0x1bf)]))return _0x1fb5d4(_0x5b72de,_0x44791d(0x1f6));const _0xf3805f=new Set(_0x138250[_0x44791d(0x1fc)][_0x44791d(0x1e7)](_0x9011c5=>_0x9011c5!==_0x5b72de)[_0x44791d(0x1cb)](_0x2903f1=>_0x2903f1[_0x44791d(0x1bf)]));if(_0x1df5e1['some'](_0x5f5285=>_0xf3805f['has'](_0x5f5285)))return _0x1fb5d4(_0x5b72de,_0x44791d(0x200));for(let _0x5bcdba=0x0;_0x5bcdba<_0x6b875d[_0x44791d(0x1db)];_0x5bcdba++){const _0x4ff1c6=_0x43d80c['rows'][_0x5b72de['rowIndexes'][_0x5bcdba]][_0x44791d(0x1f8)];if(Object[_0x44791d(0x1ca)](_0x4ff1c6)[_0x44791d(0x1c8)](_0x531297=>!sameImportValue(_0x4ff1c6[_0x531297],_0x6b875d[_0x5bcdba][_0x531297],_0x43d80c[_0x44791d(0x202)]?.[_0x44791d(0x20c)](_0x531297)&&!_0x43d80c[_0x44791d(0x204)]?.[_0x44791d(0x20c)](_0x531297))))return _0x1fb5d4(_0x5b72de,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0x43d80c[_0x44791d(0x1c5)][_0x5b72de['rowIndexes'][_0x5bcdba]][_0x44791d(0x1d3)]+'.');}return _0x5b72de[_0x44791d(0x1bf)]=_0x1df5e1,_0x5b72de[_0x44791d(0x209)]=_0x44791d(0x1d6),await saveImportJson(_0x4f84ae[_0x44791d(0x20a)],_0x138250),!![];};if(_0x138250[_0x56075e(0x1fc)][_0x56075e(0x1c8)](_0x41df97=>_0x41df97[_0x56075e(0x209)]===_0x56075e(0x1f4)&&!(_0x4f84ae['resume']&&_0x4f84ae[_0x56075e(0x212)]&&_0x43d80c['imageFields']?.[_0x56075e(0x1db)]&&_0x41df97['ids'][_0x56075e(0x1db)]===_0x41df97[_0x56075e(0x1e1)][_0x56075e(0x1db)])))throw Error(_0x56075e(0x1f7));if(_0x4f84ae[_0x56075e(0x1fb)]){for(const _0x52f9b4 of _0x138250[_0x56075e(0x1fc)])await _0x3dfabb(_0x52f9b4);}for(const _0x1bf287 of _0x138250['batches']){if(_0x1bf287['status']==='succeeded')continue;if(!_0x4f84ae[_0x56075e(0x1fb)])await _0x3dfabb(_0x1bf287);_0x1bf287[_0x56075e(0x209)]='pending',await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x138250),_0x2f23e0++;const _0x1d0311=_0x1bf287[_0x56075e(0x1e1)][_0x56075e(0x1ea)](_0x5a1383=>_0x43d80c[_0x56075e(0x1c5)][_0x5a1383][_0x56075e(0x1f8)]),_0x1cf06d=Date[_0x56075e(0x1d4)](),_0x252d16={'batch':_0x2f23e0,'rowStart':_0x43d80c[_0x56075e(0x1c5)][_0x1bf287['rowIndexes'][0x0]][_0x56075e(0x1d3)],'rowEnd':_0x43d80c[_0x56075e(0x1c5)][_0x1bf287[_0x56075e(0x1e1)]['at'](-0x1)][_0x56075e(0x1d3)],'count':_0x1d0311[_0x56075e(0x1db)],'bytes':_0x42173e(_0x1bf287[_0x56075e(0x1e1)],_0x1bf287['taskId']),'elapsedMs':0x0,'status':'unknown'};_0x5f47f8[_0x56075e(0x20e)](_0x252d16);try{const _0x24aed4=await _0x20fdef[_0x56075e(0x1ef)](_0x1d0311,_0x1bf287[_0x56075e(0x1f0)]);if(!_0x24aed4||_0x24aed4['count']!==_0x1d0311[_0x56075e(0x1db)]||!Array[_0x56075e(0x1f2)](_0x24aed4[_0x56075e(0x1bf)])||_0x24aed4[_0x56075e(0x1bf)][_0x56075e(0x1db)]!==_0x1d0311['length']||_0x24aed4[_0x56075e(0x1bf)]['some'](_0x194dfd=>!validId(_0x194dfd))||new Set(_0x24aed4['ids'])[_0x56075e(0x1f3)]!==_0x24aed4[_0x56075e(0x1bf)]['length'])throw Error(_0x56075e(0x1dd));_0x1bf287['ids']=_0x24aed4['ids'],await saveImportJson(_0x4f84ae[_0x56075e(0x20a)],_0x138250);if(!await _0x3dfabb(_0x1bf287))throw Error(_0x56075e(0x1e2));}catch(_0x3ea87f){if(_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4))throw _0x3ea87f;try{await _0x3dfabb(_0x1bf287);}catch(_0x5ccfc5){if(_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4))throw _0x5ccfc5;}if(_0x1bf287[_0x56075e(0x209)]!=='succeeded')throw Error(_0x56075e(0x1d2));}finally{_0x252d16[_0x56075e(0x1cd)]=Date[_0x56075e(0x1d4)]()-_0x1cf06d,_0x252d16[_0x56075e(0x209)]=_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1d6)?_0x56075e(0x1d6):_0x1bf287[_0x56075e(0x209)]===_0x56075e(0x1f4)?_0x56075e(0x1f4):'unknown';}}const _0x471f00={'status':_0x56075e(0x20f),..._0x7b792()};return await saveImportJson(_0x4f84ae[_0x56075e(0x1ba)],_0x471f00),_0x471f00;}catch(_0x26fec1){if(_0x18dada)await saveImportJson(_0x4f84ae[_0x56075e(0x1ba)],{'status':_0x56075e(0x1eb),..._0x7b792(),'message':_0x26fec1[_0x56075e(0x210)]});throw _0x26fec1;}finally{await _0x215556();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0xc99906=a139_0x5934;(function(_0x501619,_0x1caece){const _0x2667b7=a139_0x5934,_0x5ed9ee=_0x501619();while(!![]){try{const _0x34c978=-parseInt(_0x2667b7(0x11b))/0x1*(parseInt(_0x2667b7(0x156))/0x2)+parseInt(_0x2667b7(0xf8))/0x3+parseInt(_0x2667b7(0xf7))/0x4+-parseInt(_0x2667b7(0xfe))/0x5+-parseInt(_0x2667b7(0xc7))/0x6+-parseInt(_0x2667b7(0xb7))/0x7*(parseInt(_0x2667b7(0xa1))/0x8)+parseInt(_0x2667b7(0x105))/0x9;if(_0x34c978===_0x1caece)break;else _0x5ed9ee['push'](_0x5ed9ee['shift']());}catch(_0x657327){_0x5ed9ee['push'](_0x5ed9ee['shift']());}}}(a139_0x47a6,0x3bf58));function a139_0x5934(_0x5aa0f2,_0x2670df){_0x5aa0f2=_0x5aa0f2-0x8f;const _0x47a610=a139_0x47a6();let _0x593434=_0x47a610[_0x5aa0f2];return _0x593434;}import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a139_0x380880 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';function a139_0x47a6(){const _0x3b4384=['update','sha256','fileName','Invalid\x20ZIP\x20central\x20directory\x20layout.','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','compressedSize','28VcQHmT','creatorName','text','handleUTF8','some','entry','create','integer','Only\x20.xlsx\x20files\x20are\x20supported.','hidden','Workbook','model','isInteger','warnings','date','Invalid\x20XLSX\x20archive.','2383716NZySCj','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20worksheet\x20XML:\x20','properties','parseInt','Expected\x20a\x20text\x20cell.','Unsupported\x20field\x20type:\x20','serial_number','utf8decode','test','write','Worksheet\x20merge\x20work\x20exceeds\x20100000.','autoIncrement','clear','entryCount','boolean','.xlsx','directory','end','split','digest','getRow','Invalid\x20worksheet\x20nested\x20row.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Invalid\x20XLSX\x20entry.','top','exceljs/lib/utils/col-cache.js','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','rows','doType','load','name','MAX_SAFE_INTEGER','number','fileComment','extraFieldRaw','Expected\x20a\x20boolean\x20cell.','emptyRows','left','creatorId','parseOpen','min','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','xlsx','extraFields','get','mergeCell','before','812128ccBxgZ','1050390olOnQd','has','processAttributes','Invalid\x20worksheet\x20column\x20range.','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','dataValidations','1202955Yrairi','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','size','decodeEx','readExtraFields','close','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','5003271zfQBfm','datetime','./reader/readerFor','readUInt32LE','sharedFormula','hyperlink','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','relativeOffsetOfLocalHeader','localeCompare','slice','file','Worksheet\x20coordinate\x20exceeds\x20','[Content_Types].xml','isSafeInteger','stringify','\x20columns.','dataType','bitFlag','required','isFile','Expected\x20an\x20Excel\x20date\x20cell.','columnCount','4sDomyX','_xlnm.Print_Titles','abs','Required\x20field\x20is\x20not\x20mapped:\x20','byteLength','uncompressedSize','add','headerRow','map','fromBuffer','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','fileCommentRaw','openReadStream','startsWith','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Dataset\x20field\x20metadata\x20is\x20missing.','readBigUInt64LE','filter','definedName','col','dir','source','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Merged\x20cells\x20are\x20not\x20supported.','fileNameStr','updateTime','right','code','data','isBuffer','tenantCode','readEntry','error','worksheets','readUInt16LE','Duplicate\x20dataset\x20field\x20codes.','fields','Unknown\x20or\x20generated\x20mapping\x20field:\x20','merges','Invalid\x20worksheet\x20XML.','getTime','pop','decimal','fileNameRaw','readEntryCursor','Unknown\x20Excel\x20header:\x20','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','ref','parseClose','message','./utils','textarea','find','materialized','Invalid\x20defined\x20name\x20coordinate.','every','Invalid\x20ZIP\x20local\x20file\x20header.','rowCount','./utf8','102002IGzgyQ','push','extname','appCode','Duplicate\x20mapping\x20target:\x20','closetag','length','Worksheet\x20exceeds\x20','Cell\x20exceeds\x2064\x20KB.','ranges','attributes','batchSize','Worksheet\x20exceeds\x2016384\x20columns.','isFinite','trim','eachCell','Non-canonical\x20worksheet\x20ZIP\x20entry.','sourceType','externalFileAttributes','object','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','_xlnm.Print_Area','Invalid\x20worksheet\x20coordinate.','modifierName','utf8','equals','max','hex','Duplicate\x20workbook\x20ZIP\x20entry.','modifierId','formula','result','getCell','includes','toLowerCase','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','generalPurposeBitFlag','cells','sort','versionMadeBy','address','43216SpGtcs','jszip','string','errors','row','xl/workbook.xml','bottom','set','isArray','generated','type','destroy','reference','value','from','resolve'];a139_0x47a6=function(){return _0x3b4384;};return a139_0x47a6();}import a139_0x585fe8 from'exceljs';import a139_0x1ebfc7 from'yauzl';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',a139_0xc99906(0x139),a139_0xc99906(0x159),'datasetId',a139_0xc99906(0xee),a139_0xc99906(0xb8),a139_0xc99906(0x95),a139_0xc99906(0x8f),'createTime',a139_0xc99906(0x134),'deleted']),TYPES=new Set(['string',a139_0xc99906(0xb9),a139_0xc99906(0x14e),a139_0xc99906(0xe8),'decimal','integer',a139_0xc99906(0xd6),'date',a139_0xc99906(0x106)]),hash=_0x7c41b9=>createHash(a139_0xc99906(0xb2))[a139_0xc99906(0xb1)](_0x7c41b9)[a139_0xc99906(0xdb)](a139_0xc99906(0x93)),require=createRequire(import.meta.url),DefinedNameXform=require('exceljs/lib/xlsx/xform/book/defined-name-xform.js'),nameCoordinates=require(a139_0xc99906(0xe1)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a139_0xc99906(0xb0)]('exceljs')),zipRequire=createRequire(excelRequire[a139_0xc99906(0xb0)](a139_0xc99906(0xa2))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a139_0xc99906(0x107)),zipUtf8=zipRequire(a139_0xc99906(0x155)),zipPaths=zipRequire(a139_0xc99906(0x14d));function centralDirectoryEnd(_0x530ce1,_0x50bc3d){const _0x4def10=a139_0xc99906,_0x4682cc=()=>new Error(_0x4def10(0xb4)),_0xb1a0e0=_0x530ce1['lastIndexOf'](Buffer[_0x4def10(0xaf)]([0x50,0x4b,0x5,0x6]));if(_0xb1a0e0<0x0||_0xb1a0e0+0x16>_0x530ce1[_0x4def10(0x15c)]||_0xb1a0e0+0x16+_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x14)!==_0x530ce1[_0x4def10(0x15c)])throw _0x4682cc();let _0x32738b=_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0xa),_0x11d671=_0x530ce1[_0x4def10(0x108)](_0xb1a0e0+0xc),_0x5e8669=_0x530ce1[_0x4def10(0x108)](_0xb1a0e0+0x10),_0x4e9bb5=_0xb1a0e0;const _0x17483c=_0xb1a0e0-0x14,_0x425de3=_0x17483c>=0x0&&_0x530ce1[_0x4def10(0x108)](_0x17483c)===0x7064b50,_0x403111=[0x4,0x6,0x8,0xa][_0x4def10(0xbb)](_0x27efe8=>_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+_0x27efe8)===0xffff)||_0x11d671===0xffffffff||_0x5e8669===0xffffffff;if(_0x425de3!==_0x403111)throw _0x4682cc();if(_0x425de3){if(_0x530ce1['lastIndexOf'](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x17483c)throw _0x4682cc();const _0x9e23e3=_0x585a9e=>{const _0x4e07ee=_0x4def10,_0x4da066=Number(_0x530ce1[_0x4e07ee(0x12b)](_0x585a9e));if(!Number['isSafeInteger'](_0x4da066))throw _0x4682cc();return _0x4da066;};_0x4e9bb5=_0x9e23e3(_0x17483c+0x8);if(_0x530ce1['readUInt32LE'](_0x17483c+0x4)!==0x0||_0x530ce1[_0x4def10(0x108)](_0x17483c+0x10)!==0x1||_0x4e9bb5>_0x17483c-0x38||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5)!==0x6064b50||_0x9e23e3(_0x4e9bb5+0x4)!==0x2c||_0x4e9bb5+0x38!==_0x17483c||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5+0x10)!==0x0||_0x530ce1[_0x4def10(0x108)](_0x4e9bb5+0x14)!==0x0)throw _0x4682cc();_0x32738b=_0x9e23e3(_0x4e9bb5+0x20),_0x11d671=_0x9e23e3(_0x4e9bb5+0x28),_0x5e8669=_0x9e23e3(_0x4e9bb5+0x30);if(_0x9e23e3(_0x4e9bb5+0x18)!==_0x32738b)throw _0x4682cc();}else{if(_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x4)!==0x0||_0x530ce1['readUInt16LE'](_0xb1a0e0+0x6)!==0x0||_0x530ce1[_0x4def10(0x13d)](_0xb1a0e0+0x8)!==_0x32738b)throw _0x4682cc();}const _0x450562=_0x50bc3d[_0x4def10(0x147)];if(_0x5e8669!==_0x450562||_0x32738b!==_0x50bc3d[_0x4def10(0xd5)]||_0x5e8669+_0x11d671!==_0x4e9bb5)throw _0x4682cc();return _0x4e9bb5;}function consumerEntryName(_0x1ab33f,_0x750883){const _0x3a1056=a139_0xc99906;if(_0x750883[_0x3a1056(0xf3)][_0x3a1056(0x12c)](_0xd304ba=>_0xd304ba['id']===0x1)['length']>0x1)throw new Error(_0x3a1056(0xff));const _0x51fbef=_0x750883,_0x181993=_0x750883[_0x3a1056(0x10c)];if(!Buffer[_0x3a1056(0x138)](_0x51fbef[_0x3a1056(0x146)])||!Buffer[_0x3a1056(0x138)](_0x51fbef['extraFieldRaw'])||!Buffer[_0x3a1056(0x138)](_0x51fbef[_0x3a1056(0x126)])||!Number[_0x3a1056(0x112)](_0x181993)||_0x181993<0x0||_0x181993>_0x1ab33f['length']-0x1e||_0x1ab33f[_0x3a1056(0x108)](_0x181993)!==0x4034b50)throw new Error(_0x3a1056(0x153));const _0x3cff5b=_0x181993+0x1e+_0x1ab33f[_0x3a1056(0x13d)](_0x181993+0x1a),_0x4a5221=_0x3cff5b+_0x1ab33f[_0x3a1056(0x13d)](_0x181993+0x1c)+_0x750883[_0x3a1056(0xb6)];if(!Number['isSafeInteger'](_0x4a5221)||_0x4a5221>_0x1ab33f[_0x3a1056(0x15c)])throw new Error(_0x3a1056(0x153));if(_0x3cff5b>_0x1ab33f[_0x3a1056(0x15c)]||!_0x1ab33f['subarray'](_0x181993+0x1e,_0x3cff5b)[_0x3a1056(0x91)](_0x51fbef[_0x3a1056(0x146)]))throw new Error(_0x3a1056(0xb5));const _0xdf450b=new ZipEntry({},{'decodeFileName':zipUtf8[_0x3a1056(0xcf)]});_0xdf450b[_0x3a1056(0x116)]=_0x750883[_0x3a1056(0x9c)],_0xdf450b[_0x3a1056(0xb3)]=_0x51fbef[_0x3a1056(0x146)],_0xdf450b[_0x3a1056(0xe9)]=_0x51fbef[_0x3a1056(0x126)],_0xdf450b['extraFieldsLength']=_0x51fbef['extraFieldRaw'][_0x3a1056(0x15c)],_0xdf450b[_0x3a1056(0x102)](zipReader(_0x51fbef[_0x3a1056(0xea)])),_0xdf450b[_0x3a1056(0xba)](),_0xdf450b[_0x3a1056(0x9f)]=_0x750883[_0x3a1056(0x9f)],_0xdf450b[_0x3a1056(0x168)]=_0x750883[_0x3a1056(0x168)],_0xdf450b[_0x3a1056(0xfa)]();const _0x4e7099=_0xdf450b[_0x3a1056(0x12f)]||Boolean((_0xdf450b['unixPermissions']??0x0)&0x4000),_0x557380=zipPaths[_0x3a1056(0xb0)](_0xdf450b[_0x3a1056(0x133)]),_0x10fe5e=_0x557380[_0x3a1056(0x128)]('/')?_0x557380[_0x3a1056(0x10e)](0x1):_0x557380;return{'name':_0x10fe5e,'original':_0xdf450b[_0x3a1056(0x133)],'directory':_0x4e7099};}export function normalizeImportFields(_0x427440){const _0x3ff4a3=a139_0xc99906;if(!_0x427440||(_0x427440[_0x3ff4a3(0x130)]??_0x427440['dataset']?.[_0x3ff4a3(0x167)])!=='METADATA')throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x1a15a3=Array[_0x3ff4a3(0xa9)](_0x427440[_0x3ff4a3(0x13f)]),_0x1c3610=_0x1a15a3?_0x427440[_0x3ff4a3(0x13f)]:_0x427440[_0x3ff4a3(0xca)];if(!Array[_0x3ff4a3(0xa9)](_0x1c3610)||_0x1c3610[_0x3ff4a3(0x15c)]===0x0)throw new Error(_0x3ff4a3(0x12a));const _0x52e7f7=[],_0x4d4f1f=new Set();for(const _0x531bb3 of _0x1c3610){if(_0x531bb3['deleted']===!![])continue;let _0x355c48=_0x531bb3['extend']??{};if(!_0x1a15a3&&typeof _0x355c48===_0x3ff4a3(0xa3)){try{_0x355c48=JSON['parse'](_0x355c48);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x355c48||typeof _0x355c48!==_0x3ff4a3(0x169)||Array[_0x3ff4a3(0xa9)](_0x355c48))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x520e26=_0x1a15a3?_0x531bb3['name']:_0x531bb3[_0x3ff4a3(0x136)],_0x13ea4a=_0x1a15a3?_0x531bb3[_0x3ff4a3(0xe4)]:_0x531bb3[_0x3ff4a3(0xab)]??_0x531bb3[_0x3ff4a3(0x115)];if(typeof _0x520e26!=='string'||!_0x520e26||typeof _0x13ea4a!==_0x3ff4a3(0xa3)||_0x4d4f1f[_0x3ff4a3(0xf9)](_0x520e26))throw new Error('Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.');if(_0x13ea4a['toLowerCase']()==='serial_number')throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4d4f1f['add'](_0x520e26);const _0x2cf1c1=_0x1a15a3?_0x531bb3:_0x355c48,_0x4d13b2={'code':_0x520e26,'type':_0x13ea4a,'required':_0x2cf1c1[_0x3ff4a3(0x117)]===!![]};if(RESERVED[_0x3ff4a3(0xf9)](_0x520e26)||_0x2cf1c1[_0x3ff4a3(0xaa)]===!![]||_0x2cf1c1[_0x3ff4a3(0xd3)]===!![])_0x4d13b2[_0x3ff4a3(0xaa)]=!![];_0x52e7f7[_0x3ff4a3(0x157)](_0x4d13b2);}return _0x52e7f7;}async function checkArchive(_0x5c5906){await new Promise((_0xb16ae3,_0x67b2c2)=>{const _0x5a7ce7=a139_0x5934;a139_0x1ebfc7[_0x5a7ce7(0x124)](_0x5c5906,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x34eca2,_0x4ec796)=>{const _0x3f28dc=_0x5a7ce7;if(_0x34eca2||!_0x4ec796){_0x67b2c2(_0x34eca2??new Error(_0x3f28dc(0xc6)));return;}let _0x255132;try{_0x255132=centralDirectoryEnd(_0x5c5906,_0x4ec796);}catch(_0x21020e){_0x4ec796[_0x3f28dc(0x103)](),_0x67b2c2(_0x21020e);return;}let _0xdc160d=0x0,_0x113e0d=0x0,_0x8bef09=0x0,_0x3723a0=0x0,_0x53512d=0x0,_0x439b45=0x0,_0x35b55a=0x0,_0x5beb60=![],_0x1a29e8;const _0x1dd0a4=new Set(),_0x324ede=_0x32c89a=>{const _0x2550fa=_0x3f28dc;if(_0x5beb60)return;_0x5beb60=!![],_0x1a29e8?.['destroy'](),_0x4ec796[_0x2550fa(0x103)](),_0x67b2c2(_0x32c89a);},_0x52e879=(_0xe0e456,_0x23d21e)=>{const _0x4e8a6e=_0x3f28dc;if(!_0xe0e456||!/^\d+$/[_0x4e8a6e(0xd0)](_0xe0e456))throw new Error(_0x4e8a6e(0x16c));const _0x160649=Number(_0xe0e456);if(!Number['isSafeInteger'](_0x160649)||_0x160649<0x1||_0x160649>_0x23d21e)throw new Error(_0x4e8a6e(0x110)+_0x23d21e+'.');return _0x160649;},_0x436b72=(_0x450d8a,_0xd58df4=MAX_XML_COLUMNS)=>{const _0x53e6c4=_0x3f28dc,_0x949d2a=/^\$?([A-Z]{1,3})\$?(\d+)$/['exec'](_0x450d8a);if(!_0x949d2a)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x24ff2f=0x0;for(const _0x3c3347 of _0x949d2a[0x1])_0x24ff2f=_0x24ff2f*0x1a+_0x3c3347['charCodeAt'](0x0)-0x40;if(_0x24ff2f>_0xd58df4)throw new Error(_0x53e6c4(0x15d)+_0xd58df4+_0x53e6c4(0x114));return{'row':_0x52e879(_0x949d2a[0x2],MAX_XML_ROWS),'col':_0x24ff2f};},_0x1beb20=_0x1375bb=>{const _0x24a66b=_0x3f28dc;if(_0x1375bb['name']===_0x24a66b(0x16b)||_0x1375bb['name']===_0x24a66b(0x11c))return;for(const _0x538c0c of _0x1375bb[_0x24a66b(0x15f)]){if(!ABSOLUTE_NAME_RANGE[_0x24a66b(0xd0)](_0x538c0c[_0x24a66b(0xda)]('!')[_0x24a66b(0x144)]()||''))continue;const _0x53603a=nameCoordinates[_0x24a66b(0x101)](_0x538c0c),_0xe92282=_0x24a66b(0xe0)in _0x53603a,_0x2d2bee=_0xe92282?[_0x53603a['top'],_0x53603a[_0x24a66b(0xa7)]]:[_0x53603a[_0x24a66b(0xa5)]],_0x289477=_0xe92282?[_0x53603a[_0x24a66b(0xed)],_0x53603a[_0x24a66b(0x135)]]:[_0x53603a[_0x24a66b(0x12e)]],_0x4f75a8=(_0x352a1a,_0x351623)=>Number[_0x24a66b(0x112)](_0x352a1a)&&_0x352a1a>=0x1&&_0x352a1a<=_0x351623;if(!_0x2d2bee[_0x24a66b(0x152)](_0xef9bd2=>_0x4f75a8(_0xef9bd2,MAX_XML_ROWS))||!_0x289477[_0x24a66b(0x152)](_0x153bb9=>_0x4f75a8(_0x153bb9,MAX_XML_COLUMNS)))throw new Error(_0x24a66b(0x151));_0x35b55a+=_0xe92282?(_0x53603a[_0x24a66b(0xa7)]-_0x53603a[_0x24a66b(0xe0)]+0x1)*(_0x53603a[_0x24a66b(0x135)]-_0x53603a['left']+0x1):0x1;if(_0x35b55a>MAX_ROWS)throw new Error('Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.');}};_0x4ec796['on']('error',_0x324ede),_0x4ec796['on'](_0x3f28dc(0xbc),_0x452d9a=>{const _0x156722=_0x3f28dc;if(_0x5beb60)return;if(++_0x8bef09>0x2710||(_0xdc160d+=_0x452d9a[_0x156722(0x120)])>MAX_EXPANDED){_0x324ede(new Error(_0x156722(0xf1)));return;}let _0x3699a3;try{_0x3699a3=consumerEntryName(_0x5c5906,_0x452d9a);}catch(_0x59d8ca){_0x324ede(_0x59d8ca);return;}if(_0x3699a3[_0x156722(0xd8)]){_0x4ec796[_0x156722(0x13a)]();return;}const _0x2b8d76=_0x3699a3['name'];if(_0x2b8d76!==_0x3699a3['original']&&(_0x2b8d76===_0x156722(0xa6)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x156722(0xd0)](_0x2b8d76))){_0x324ede(new Error(_0x156722(0x149)));return;}const _0x20368a=_0x2b8d76===_0x156722(0xa6);if(_0x20368a&&_0x1dd0a4[_0x156722(0xf9)](_0x2b8d76)){_0x324ede(new Error(_0x156722(0x94)));return;}_0x1dd0a4[_0x156722(0x121)](_0x2b8d76);const _0x26f366=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x156722(0xd0)](_0x2b8d76);if(_0x26f366&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x156722(0xd0)](_0x2b8d76)){_0x324ede(new Error(_0x156722(0x166)));return;}_0x4ec796[_0x156722(0x127)](_0x452d9a,(_0x1137ae,_0x4e84c5)=>{const _0x5f51a1=_0x156722;if(_0x5beb60){_0x4e84c5?.[_0x5f51a1(0xac)]();return;}if(_0x1137ae||!_0x4e84c5){_0x324ede(_0x1137ae??new Error(_0x5f51a1(0xdf)));return;}_0x1a29e8=_0x4e84c5;const _0x5bf644=_0x26f366||_0x20368a?new StringDecoder(_0x5f51a1(0x90)):undefined,_0x4c3db4=_0x26f366||_0x20368a?new SaxesParser({'xmlns':![]}):undefined;let _0xf78f7c,_0xdfac7b=0x0,_0x2ed84d=0x0,_0x52a21f,_0x2622fd,_0x2267bc=![],_0x3b2317=![],_0x2fc5c7,_0x2cefc1,_0x58db37,_0x1f4a95=![];const _0x1f935e=[],_0x923e22=new Set();let _0x1fef77;const _0x1116b0=(_0x43708,_0x26319d=0x0)=>{const _0x5f037d=_0x5f51a1;_0x53512d+=_0x26319d+Math[_0x5f037d(0x92)](0x0,_0x43708-_0x2ed84d),_0x2ed84d=Math[_0x5f037d(0x92)](_0x2ed84d,_0x43708);if(_0x53512d>MAX_ROWS)throw new Error('Worksheet\x20column\x20objects\x20exceed\x20100000.');};_0x4c3db4?.['on']('opentag',_0x3ea369=>{const _0x104f1c=_0x5f51a1;if(_0x20368a){if(!_0xf78f7c&&_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0x12d))_0xf78f7c=new DefinedNameXform();_0xf78f7c?.[_0x104f1c(0xef)](_0x3ea369);return;}if(_0x3ea369['name']===_0x104f1c(0xa5)){if(_0x3b2317)throw new Error(_0x104f1c(0xdd));_0x52e879(_0x3ea369[_0x104f1c(0x160)]['r'],MAX_XML_ROWS),_0x52a21f=undefined,_0x58db37=undefined,_0x1f4a95=![];}else{if(_0x3ea369['name']==='c'){if(_0x3b2317)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3b2317=!![],_0x2267bc=Boolean(Number[_0x104f1c(0xcb)](_0x3ea369[_0x104f1c(0x160)]['s']??'',0xa)),_0x1fef77=undefined,_0x2fc5c7=_0x3ea369[_0x104f1c(0x160)]['r']||undefined,_0x2cefc1=_0x2fc5c7?_0x436b72(_0x2fc5c7):undefined;if(_0x2cefc1)_0x2622fd=_0x2cefc1;else _0x2622fd=_0x52a21f?{'row':_0x52a21f[_0x104f1c(0xa5)],'col':_0x52a21f[_0x104f1c(0x12e)]+0x1}:undefined;}else{if(_0x3b2317&&['f','v','t'][_0x104f1c(0x99)](_0x3ea369['name'])){_0x1fef77=_0x3ea369[_0x104f1c(0xe6)];if(_0x3ea369['name']==='f'&&_0x3ea369[_0x104f1c(0x160)]['t'])_0x2267bc=!![];}else{if(_0x3b2317&&_0x3ea369[_0x104f1c(0xe6)]==='r')_0x2267bc=!![];else{if(_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0x10a)){const _0x3a94c2=_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x14a)];if(!_0x3a94c2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x485f60=_0x3a94c2[_0x104f1c(0xda)](':');if(_0x485f60[_0x104f1c(0x15c)]>0x2)throw new Error(_0x104f1c(0xc8));const _0x1a0a29=_0x436b72(_0x485f60[0x0]),_0x40ac03=_0x436b72(_0x485f60[0x1]??_0x485f60[0x0]);_0x923e22['add'](_0x3a94c2),_0x1116b0(Math[_0x104f1c(0x92)](_0x1a0a29[_0x104f1c(0x12e)],_0x40ac03['col']),0x1);}else{if(_0x3ea369['name']===_0x104f1c(0x12e)){const _0x359384=_0x52e879(_0x3ea369['attributes'][_0x104f1c(0xf0)],0x4000),_0x199f16=_0x52e879(_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x92)],0x4000);if(_0x359384>_0x199f16)throw new Error(_0x104f1c(0xfb));_0x1116b0(_0x199f16,0x1);}else{if(_0x3ea369[_0x104f1c(0xe6)]===_0x104f1c(0xf5)){const _0x41cce9=_0x3ea369[_0x104f1c(0x160)][_0x104f1c(0x14a)];if(!_0x41cce9)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x161df8=_0x41cce9[_0x104f1c(0xda)](':');if(_0x161df8[_0x104f1c(0x15c)]>0x2)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x58335b=_0x436b72(_0x161df8[0x0]),_0xdf738b=_0x436b72(_0x161df8[0x1]??_0x161df8[0x0]);_0x1116b0(Math[_0x104f1c(0x92)](_0x58335b[_0x104f1c(0x12e)],_0xdf738b[_0x104f1c(0x12e)]));const _0x52ff92=(Math[_0x104f1c(0x11d)](_0xdf738b[_0x104f1c(0xa5)]-_0x58335b['row'])+0x1)*(Math['abs'](_0xdf738b[_0x104f1c(0x12e)]-_0x58335b[_0x104f1c(0x12e)])+0x1);_0x3723a0+=_0x52ff92+_0xdfac7b++;if(_0x3723a0>MAX_ROWS)throw new Error(_0x104f1c(0xd2));}}}}}}}}),_0x4c3db4?.['on'](_0x5f51a1(0xb9),_0x51413a=>{if(_0x20368a){_0xf78f7c?.['parseText'](_0x51413a);return;}if(_0x3b2317&&_0x1fef77&&_0x51413a)_0x2267bc=!![];}),_0x4c3db4?.['on'](_0x5f51a1(0x15b),_0x5bb735=>{const _0x5a0d89=_0x5f51a1;if(_0x20368a){_0xf78f7c&&!_0xf78f7c[_0x5a0d89(0x14b)]()&&(_0x1beb20(_0xf78f7c[_0x5a0d89(0xc2)]),_0xf78f7c=undefined);return;}if(_0x5bb735[_0x5a0d89(0xe6)]==='c'){!_0x2267bc&&_0x2fc5c7&&!_0x58db37&&(_0x58db37={'before':_0x52a21f,'cells':[]});if(_0x58db37){if(++_0x439b45>0xf4240)throw new Error(_0x5a0d89(0x9b));_0x58db37[_0x5a0d89(0x9d)][_0x5a0d89(0x157)]({'reference':_0x2fc5c7,'address':_0x2cefc1,'materialized':_0x2267bc});if(!_0x2fc5c7&&_0x2267bc)_0x1f4a95=!![];}if(_0x2267bc){if(!_0x58db37||_0x2fc5c7){if(!_0x2622fd)throw new Error(_0x5a0d89(0x125));if(_0x2622fd[_0x5a0d89(0x12e)]>MAX_XML_COLUMNS)throw new Error(_0x5a0d89(0x162));_0x1116b0(_0x2622fd[_0x5a0d89(0x12e)]);}_0x52a21f=_0x2622fd;}_0x3b2317=![],_0x2622fd=undefined,_0x2fc5c7=undefined,_0x2cefc1=undefined,_0x1fef77=undefined;}else{if(_0x5bb735['name']===_0x5a0d89(0xa5)){if(_0x58db37&&_0x1f4a95)_0x1f935e[_0x5a0d89(0x157)](_0x58db37);_0x58db37=undefined,_0x1f4a95=![];}else{if(_0x5bb735['name']===_0x1fef77)_0x1fef77=undefined;}}}),_0x4c3db4?.['on'](_0x5f51a1(0x13b),_0x4ff121=>{const _0x3304dd=_0x5f51a1;throw new Error(_0x3304dd(0xc9)+_0x4ff121[_0x3304dd(0x14c)]);}),_0x4e84c5['on']('error',_0x324ede),_0x4e84c5['on'](_0x5f51a1(0x137),_0x5b2471=>{const _0x30aed8=_0x5f51a1;if(_0x5beb60)return;_0x113e0d+=_0x5b2471[_0x30aed8(0x15c)];if(_0x113e0d>MAX_EXPANDED){_0x324ede(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x4c3db4&&_0x5bf644)_0x4c3db4[_0x30aed8(0xd1)](_0x5bf644[_0x30aed8(0xd1)](_0x5b2471));}catch(_0x2a3cf2){_0x324ede(_0x2a3cf2 instanceof Error?_0x2a3cf2:new Error(_0x30aed8(0x142)));}}),_0x4e84c5['on'](_0x5f51a1(0xd9),()=>{const _0x5acdd3=_0x5f51a1;if(_0x5beb60)return;try{if(_0x4c3db4&&_0x5bf644)_0x4c3db4[_0x5acdd3(0xd1)](_0x5bf644[_0x5acdd3(0xd9)]())['close']();for(const _0x72c14e of _0x1f935e){let _0xdc117f=_0x72c14e[_0x5acdd3(0xf6)];for(const _0x44f347 of _0x72c14e['cells']){if(!_0x44f347[_0x5acdd3(0x150)]&&!(_0x44f347['reference']&&_0x923e22[_0x5acdd3(0xf9)](_0x44f347[_0x5acdd3(0xad)])))continue;const _0x3c9ba8=_0x44f347[_0x5acdd3(0xa0)]??(_0xdc117f?{'row':_0xdc117f[_0x5acdd3(0xa5)],'col':_0xdc117f[_0x5acdd3(0x12e)]+0x1}:undefined);if(!_0x3c9ba8)throw new Error(_0x5acdd3(0x125));if(_0x3c9ba8['col']>MAX_XML_COLUMNS)throw new Error(_0x5acdd3(0x162));_0x1116b0(_0x3c9ba8['col']),_0xdc117f=_0x3c9ba8;}}_0x1f935e['length']=0x0,_0x923e22[_0x5acdd3(0xd4)]();}catch(_0x3fbe82){_0x324ede(_0x3fbe82 instanceof Error?_0x3fbe82:new Error(_0x5acdd3(0x142)));return;}_0x1a29e8=undefined,_0x4ec796['readEntry']();});});}),_0x4ec796['on']('end',()=>{const _0x23bbfd=_0x3f28dc;if(_0x5beb60)return;if(_0x4ec796[_0x23bbfd(0x147)]!==_0x255132){_0x67b2c2(new Error(_0x23bbfd(0xfc)));return;}if(!_0x1dd0a4[_0x23bbfd(0xf9)](_0x23bbfd(0x111))||!_0x1dd0a4[_0x23bbfd(0xf9)]('xl/workbook.xml'))_0x67b2c2(new Error('File\x20is\x20not\x20an\x20XLSX\x20workbook.'));else _0xb16ae3();}),_0x4ec796[_0x3f28dc(0x13a)]();});});}function valueOf(_0x83f27b){const _0x1b4f3b=a139_0xc99906,_0x1c6044=_0x83f27b[_0x1b4f3b(0xae)];if(_0x1c6044&&typeof _0x1c6044===_0x1b4f3b(0x169)&&(_0x1b4f3b(0x96)in _0x1c6044||_0x1b4f3b(0x109)in _0x1c6044)){if(!(_0x1b4f3b(0x97)in _0x1c6044)||_0x1c6044['result']===undefined)throw new Error('Formula\x20has\x20no\x20cached\x20result.');return _0x1c6044[_0x1b4f3b(0x97)];}return _0x1c6044;}function convert(_0x2456fd,_0x40b1fd){const _0x1a27a5=a139_0xc99906;if(_0x2456fd===null||_0x2456fd===undefined||_0x2456fd===''){if(_0x40b1fd[_0x1a27a5(0x117)]&&!_0x40b1fd[_0x1a27a5(0xaa)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x2456fd===_0x1a27a5(0xa3)&&Buffer[_0x1a27a5(0x11f)](_0x2456fd,'utf8')>MAX_CELL)throw new Error(_0x1a27a5(0x15e));switch(_0x40b1fd['type'][_0x1a27a5(0x9a)]()){case _0x1a27a5(0xa3):case'text':case _0x1a27a5(0x14e):if(typeof _0x2456fd!==_0x1a27a5(0xa3))throw new Error(_0x1a27a5(0xcc));return _0x2456fd;case _0x1a27a5(0xe8):case _0x1a27a5(0x145):case _0x1a27a5(0xbe):if(typeof _0x2456fd!==_0x1a27a5(0xe8)||!Number[_0x1a27a5(0x163)](_0x2456fd)||Math[_0x1a27a5(0x11d)](_0x2456fd)>Number[_0x1a27a5(0xe7)]||_0x40b1fd[_0x1a27a5(0xab)][_0x1a27a5(0x9a)]()===_0x1a27a5(0xbe)&&!Number[_0x1a27a5(0xc3)](_0x2456fd))throw new Error(_0x1a27a5(0x104));return _0x2456fd;case _0x1a27a5(0xd6):if(typeof _0x2456fd!==_0x1a27a5(0xd6))throw new Error(_0x1a27a5(0xeb));return _0x2456fd;case _0x1a27a5(0xc5):case _0x1a27a5(0x106):if(!(_0x2456fd instanceof Date)||!Number['isFinite'](_0x2456fd[_0x1a27a5(0x143)]()))throw new Error(_0x1a27a5(0x119));return _0x2456fd['getTime']();default:throw new Error(_0x1a27a5(0xcd)+_0x40b1fd[_0x1a27a5(0xab)]+'.');}}export async function buildExcelManifest(_0x4364a5){const _0x2792bf=a139_0xc99906,_0x505da4=_0x4364a5[_0x2792bf(0x122)]??0x1;if(!Number[_0x2792bf(0xc3)](_0x505da4)||_0x505da4<0x1||_0x505da4>MAX_ROWS)throw new Error(_0x2792bf(0x131));if(_0x4364a5[_0x2792bf(0x161)]!==undefined&&(!Number[_0x2792bf(0xc3)](_0x4364a5[_0x2792bf(0x161)])||_0x4364a5[_0x2792bf(0x161)]<0x1||_0x4364a5['batchSize']>0x3e8))throw new Error(_0x2792bf(0xde));if(a139_0x380880[_0x2792bf(0x158)](_0x4364a5['file'])[_0x2792bf(0x9a)]()!==_0x2792bf(0xd7))throw new Error(_0x2792bf(0xbf));const _0x332245=await stat(_0x4364a5[_0x2792bf(0x10f)]);if(!_0x332245[_0x2792bf(0x118)]()||_0x332245[_0x2792bf(0x100)]>MAX_FILE)throw new Error(_0x2792bf(0xe2));const _0x3f63e7=await readFile(_0x4364a5[_0x2792bf(0x10f)]);if(_0x3f63e7[_0x2792bf(0x15c)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');await checkArchive(_0x3f63e7);const _0x32f9c5=new a139_0x585fe8[(_0x2792bf(0xc1))]();await _0x32f9c5[_0x2792bf(0xf2)][_0x2792bf(0xe5)](_0x3f63e7,{'ignoreNodes':[_0x2792bf(0xfd)]});const _0x4ed5b0=_0x4364a5['sheet'];let _0x5c0f0b;if(_0x4ed5b0===undefined)_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][0x0];else{if(typeof _0x4ed5b0===_0x2792bf(0xa3)&&_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0xbb)](_0x2474cd=>_0x2474cd[_0x2792bf(0xe6)]===_0x4ed5b0))_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0x14f)](_0x48ca11=>_0x48ca11[_0x2792bf(0xe6)]===_0x4ed5b0);else{if(typeof _0x4ed5b0===_0x2792bf(0xe8)||/^\d+$/[_0x2792bf(0xd0)](_0x4ed5b0)){const _0x4b7d7e=Number(_0x4ed5b0);if(!Number[_0x2792bf(0xc3)](_0x4b7d7e)||_0x4b7d7e<0x1)throw new Error(_0x2792bf(0x129));_0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x4b7d7e-0x1];}else _0x5c0f0b=_0x32f9c5[_0x2792bf(0x13c)][_0x2792bf(0x14f)](_0x40eaf3=>_0x40eaf3[_0x2792bf(0xe6)]===_0x4ed5b0);}}if(!_0x5c0f0b)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x5c0f0b[_0x2792bf(0x154)]>MAX_ROWS||_0x5c0f0b[_0x2792bf(0x11a)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x5c0f0b[_0x2792bf(0xc2)][_0x2792bf(0x141)]??[])['length'])throw new Error(_0x2792bf(0x132));const _0x3f0ecb=new Map();_0x5c0f0b[_0x2792bf(0xdc)](_0x505da4)[_0x2792bf(0x165)]((_0x27fd70,_0x5453a5)=>{const _0xa90a71=_0x2792bf,_0x554e4a=valueOf(_0x27fd70);if(typeof _0x554e4a!==_0xa90a71(0xa3)||!_0x554e4a[_0xa90a71(0x164)]()||Buffer[_0xa90a71(0x11f)](_0x554e4a)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x3f0ecb[_0xa90a71(0xf9)](_0x554e4a))throw new Error('Duplicate\x20header:\x20'+_0x554e4a+'.');_0x3f0ecb[_0xa90a71(0xa8)](_0x554e4a,_0x5453a5);});const _0x4eaf75=Object['entries'](_0x4364a5['mapping']);if(!_0x4eaf75[_0x2792bf(0x15c)])throw new Error(_0x2792bf(0x16a));const _0xa29674=new Map(_0x4364a5[_0x2792bf(0x13f)][_0x2792bf(0x123)](_0x212217=>[_0x212217['code'],_0x212217]));if(_0xa29674[_0x2792bf(0x100)]!==_0x4364a5['fields']['length'])throw new Error(_0x2792bf(0x13e));if(_0x4364a5[_0x2792bf(0x13f)]['some'](_0x8bce32=>_0x8bce32['type']['toLowerCase']()===_0x2792bf(0xce)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x1679c3=new Set();for(const [_0x3e36b9,_0x3ed7ff]of _0x4eaf75){const _0x2b3ce4=_0xa29674[_0x2792bf(0xf4)](_0x3ed7ff);if(!_0x3f0ecb[_0x2792bf(0xf9)](_0x3e36b9))throw new Error(_0x2792bf(0x148)+_0x3e36b9+'.');if(!_0x2b3ce4||RESERVED[_0x2792bf(0xf9)](_0x3ed7ff)||_0x2b3ce4[_0x2792bf(0xaa)])throw new Error(_0x2792bf(0x140)+_0x3ed7ff+'.');if(_0x1679c3[_0x2792bf(0xf9)](_0x3ed7ff))throw new Error(_0x2792bf(0x15a)+_0x3ed7ff+'.');if(!TYPES[_0x2792bf(0xf9)](_0x2b3ce4[_0x2792bf(0xab)]['toLowerCase']()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x2b3ce4[_0x2792bf(0xab)]+'.');_0x1679c3[_0x2792bf(0x121)](_0x3ed7ff);}for(const _0x3ae786 of _0x4364a5[_0x2792bf(0x13f)]){if(_0x3ae786[_0x2792bf(0x117)]&&!_0x3ae786[_0x2792bf(0xaa)]&&!RESERVED[_0x2792bf(0xf9)](_0x3ae786[_0x2792bf(0x136)])&&!_0x1679c3['has'](_0x3ae786['code']))throw new Error(_0x2792bf(0x11e)+_0x3ae786[_0x2792bf(0x136)]+'.');}const _0xf64100={'fileHash':hash(_0x3f63e7),'mappingHash':hash(JSON[_0x2792bf(0x113)]([..._0x4eaf75][_0x2792bf(0x9e)](([_0x39065d],[_0x9c5796])=>_0x39065d[_0x2792bf(0x10d)](_0x9c5796)))),'schemaHash':hash(JSON[_0x2792bf(0x113)]([..._0x4364a5[_0x2792bf(0x13f)]][_0x2792bf(0x9e)]((_0x3de391,_0x3e5f19)=>_0x3de391[_0x2792bf(0x136)][_0x2792bf(0x10d)](_0x3e5f19[_0x2792bf(0x136)])))),'sheet':_0x5c0f0b[_0x2792bf(0xe6)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]};let _0xb1222e=0x0;const _0x5bcddb=new Set(_0x4eaf75[_0x2792bf(0x123)](([_0xa9c5ac])=>_0x3f0ecb['get'](_0xa9c5ac)));for(let _0x5ad505=_0x505da4+0x1;_0x5ad505<=_0x5c0f0b[_0x2792bf(0x154)];_0x5ad505++){const _0x2d9be6=_0x5c0f0b[_0x2792bf(0xdc)](_0x5ad505);if(_0x2d9be6[_0x2792bf(0xc0)])_0xb1222e++;let _0x1703b2=![];_0x2d9be6[_0x2792bf(0x165)](_0x5f4b30=>{const _0x4bd674=_0x2792bf;if(_0x5f4b30[_0x4bd674(0xae)]!==null&&_0x5f4b30[_0x4bd674(0xae)]!==undefined&&_0x5f4b30['value']!=='')_0x1703b2=!![];});if(!_0x1703b2){_0xf64100[_0x2792bf(0xec)][_0x2792bf(0x157)](_0x5ad505);continue;}const _0x1f13cc=Object[_0x2792bf(0xbd)](null);_0x2d9be6[_0x2792bf(0x165)]((_0x80cb9c,_0x4c75cd)=>{const _0xc9bd6=_0x2792bf;if(_0x5bcddb[_0xc9bd6(0xf9)](_0x4c75cd))return;try{const _0x3f0675=valueOf(_0x80cb9c);if(typeof _0x3f0675===_0xc9bd6(0xa3)&&Buffer[_0xc9bd6(0x11f)](_0x3f0675,'utf8')>MAX_CELL)throw new Error(_0xc9bd6(0x15e));}catch(_0x3f2f5c){_0xf64100[_0xc9bd6(0xa4)][_0xc9bd6(0x157)]({'rowNumber':_0x5ad505,'field':_0x80cb9c[_0xc9bd6(0xa0)],'message':_0x3f2f5c[_0xc9bd6(0x14c)]});}});for(const [_0xad5d2f,_0x2bbfef]of _0x4eaf75){try{_0x1f13cc[_0x2bbfef]=convert(valueOf(_0x2d9be6[_0x2792bf(0x98)](_0x3f0ecb[_0x2792bf(0xf4)](_0xad5d2f))),_0xa29674[_0x2792bf(0xf4)](_0x2bbfef));}catch(_0x5592dd){_0xf64100[_0x2792bf(0xa4)]['push']({'rowNumber':_0x5ad505,'field':_0x2bbfef,'message':_0x5592dd[_0x2792bf(0x14c)]});}}_0xf64100[_0x2792bf(0xe3)][_0x2792bf(0x157)]({'rowNumber':_0x5ad505,'values':_0x1f13cc});}if(_0xb1222e)_0xf64100[_0x2792bf(0xc4)][_0x2792bf(0x157)](_0xb1222e+_0x2792bf(0x10b));return _0xf64100;}
|
|
1
|
+
function a139_0x4665(){const _0x36dbaa=['reference','model','isInteger','Worksheet\x20exceeds\x20','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','close','creatorName','textarea','slice','some','errors','parseInt','media','col','doType','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','exceljs','stringify','generalPurposeBitFlag','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Workbook','1970934iSwGfi','readBigUInt64LE','2lcOpDB','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','test','attributes','isBuffer','_xlnm.Print_Titles','datetime','size','top','before','sort','message','creatorId','readUInt16LE','761778evZeNM','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','fileName','fileNameStr','getCell','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','length','Duplicate\x20workbook\x20ZIP\x20entry.','Cell\x20exceeds\x2064\x20KB.','extraFields','serial_number','date','ref','extname','byteLength','relativeOffsetOfLocalHeader','extraFieldsLength','boolean','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','60954HNzTDU','XLSX\x20file\x20exceeds\x2020\x20MB.','dataset','MAX_SAFE_INTEGER','image','unixPermissions','file','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','push','compressedSize','Required\x20image\x20value\x20is\x20missing.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','digest','properties','generated','write','find','dataValidations','Requested\x20worksheet\x20does\x20not\x20exist.','Unknown\x20Excel\x20header:\x20','METADATA','decodeEx','uncompressedSize','jszip','set','bitFlag','destroy','exceljs/lib/utils/col-cache.js','sharedFormula','filter','exec','equals','required','opentag','parseText','object','Expected\x20an\x20Excel\x20date\x20cell.','isArray','sheet','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','mergeCell','cells','clear','startsWith','hyperlink','integer','entry','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','isSafeInteger','update','appCode','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','Invalid\x20dataset\x20field\x20extension\x20metadata.','handleUTF8','autoIncrement','worksheets','pop','includes','readEntry','toLowerCase','23130096BpzQio','\x20columns.','parse','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','Image\x20XML\x20event\x20budget\x20exceeded.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','.xlsx','address','charCodeAt','subarray','right','uploadFields','mapping','parseClose','closetag','directory','split','data','merges','openReadStream','string','add','deleted','externalFileAttributes','end','code','Invalid\x20ZIP\x20local\x20file\x20header.','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','Duplicate\x20dataset\x20field\x20codes.','imageFields','dataset-import/','Image\x20XML\x20node\x20budget\x20exceeded.','definedName','fileCommentRaw','xl/workbook.xml','name','lastIndexOf','decimal','parseOpen','Non-canonical\x20worksheet\x20ZIP\x20entry.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','eachCell','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','upload','every','image/jpeg','resolve','entryCount','Invalid\x20worksheet\x20merge\x20reference.','result','Invalid\x20XLSX\x20archive.','546787eoMsmZ','./reader/readerFor','row','hex','Worksheet\x20coordinate\x20exceeds\x20','hiddenRow','error','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20ZIP\x20central\x20directory\x20layout.','left','Invalid\x20worksheet\x20XML.','hidden','File\x20is\x20not\x20an\x20XLSX\x20workbook.','type','./utils','XML\x20DTD/entities\x20are\x20not\x20supported.','2104288vqBwEd','Invalid\x20worksheet\x20column\x20range.','192GbYwks','modifierId','imageCells','value','getRow','jpg','original','./utf8','get','Unsupported\x20field\x20type:\x20','max','4613478SHwJVw','Required\x20field\x20is\x20not\x20mapped:\x20','xlsx','getTime','columnCount','processAttributes','parserVersion','has','trim','number','bottom','map','20QfDckO','nativeCell','readEntryCursor','Formula\x20has\x20no\x20cached\x20result.','Invalid\x20worksheet\x20coordinate.','rowCount','sha256','fileNameRaw','contentHash','Unknown\x20or\x20generated\x20mapping\x20field:\x20','localeCompare','Invalid\x20worksheet\x20XML:\x20','exceljs/lib/xlsx/xform/book/defined-name-xform.js','utf8','sourceType','from','abs','warnings','values','isFinite','headerRow','text','5ueFDQv','readUInt32LE','datasetId','versionMadeBy','fields','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','batchSize'];a139_0x4665=function(){return _0x36dbaa;};return a139_0x4665();}const a139_0x2cf248=a139_0x54ac;(function(_0x363c3b,_0x6112a6){const _0x333d51=a139_0x54ac,_0xc7e7ae=_0x363c3b();while(!![]){try{const _0x3b1da2=-parseInt(_0x333d51(0x7c))/0x1*(-parseInt(_0x333d51(0xdb))/0x2)+parseInt(_0x333d51(0xfd))/0x3*(parseInt(_0x333d51(0x8e))/0x4)+-parseInt(_0x333d51(0xbb))/0x5*(-parseInt(_0x333d51(0x99))/0x6)+parseInt(_0x333d51(0xd9))/0x7+parseInt(_0x333d51(0x8c))/0x8+parseInt(_0x333d51(0xe9))/0x9*(-parseInt(_0x333d51(0xa5))/0xa)+-parseInt(_0x333d51(0x13b))/0xb;if(_0x3b1da2===_0x6112a6)break;else _0xc7e7ae['push'](_0xc7e7ae['shift']());}catch(_0x112224){_0xc7e7ae['push'](_0xc7e7ae['shift']());}}}(a139_0x4665,0x89956));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a139_0x4edb8f from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a139_0x9b9df5 from'exceljs';import a139_0x2f3373 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id','tenantCode',a139_0x2cf248(0x131),a139_0x2cf248(0xbd),a139_0x2cf248(0xe7),a139_0x2cf248(0xc9),a139_0x2cf248(0x8f),'modifierName','createTime','updateTime',a139_0x2cf248(0x151)]),TYPES=new Set([a139_0x2cf248(0x14f),'text',a139_0x2cf248(0xca),a139_0x2cf248(0xa2),a139_0x2cf248(0x161),a139_0x2cf248(0x12c),a139_0x2cf248(0xfb),a139_0x2cf248(0xf5),a139_0x2cf248(0xe1),'image','upload']),isImageContainer=_0x4ef188=>[a139_0x2cf248(0x101),a139_0x2cf248(0x74)][a139_0x2cf248(0x138)](_0x4ef188[a139_0x2cf248(0x13a)]()),hash=_0x2d943f=>createHash(a139_0x2cf248(0xab))[a139_0x2cf248(0x130)](_0x2d943f)[a139_0x2cf248(0x10b)](a139_0x2cf248(0x7f)),require=createRequire(import.meta.url),DefinedNameXform=require(a139_0x2cf248(0xb1)),nameCoordinates=require(a139_0x2cf248(0x11a)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a139_0x2cf248(0x77)](a139_0x2cf248(0xd4))),zipRequire=createRequire(excelRequire[a139_0x2cf248(0x77)](a139_0x2cf248(0x116))),ZipEntry=zipRequire('./zipEntry'),zipReader=zipRequire(a139_0x2cf248(0x7d)),zipUtf8=zipRequire(a139_0x2cf248(0x95)),zipPaths=zipRequire(a139_0x2cf248(0x8a));function centralDirectoryEnd(_0x1aae4a,_0x29ff15){const _0x244ae2=a139_0x2cf248,_0x546871=()=>new Error(_0x244ae2(0x84)),_0x34d89f=_0x1aae4a[_0x244ae2(0x160)](Buffer[_0x244ae2(0xb4)]([0x50,0x4b,0x5,0x6]));if(_0x34d89f<0x0||_0x34d89f+0x16>_0x1aae4a['length']||_0x34d89f+0x16+_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x14)!==_0x1aae4a[_0x244ae2(0xf0)])throw _0x546871();let _0x2cc31d=_0x1aae4a['readUInt16LE'](_0x34d89f+0xa),_0x1480d2=_0x1aae4a['readUInt32LE'](_0x34d89f+0xc),_0x4add43=_0x1aae4a['readUInt32LE'](_0x34d89f+0x10),_0x2edaef=_0x34d89f;const _0x13f0ea=_0x34d89f-0x14,_0x4dea33=_0x13f0ea>=0x0&&_0x1aae4a[_0x244ae2(0xbc)](_0x13f0ea)===0x7064b50,_0x391439=[0x4,0x6,0x8,0xa][_0x244ae2(0xcc)](_0x137531=>_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+_0x137531)===0xffff)||_0x1480d2===0xffffffff||_0x4add43===0xffffffff;if(_0x4dea33!==_0x391439)throw _0x546871();if(_0x4dea33){if(_0x1aae4a['lastIndexOf'](Buffer[_0x244ae2(0xb4)]([0x50,0x4b,0x6,0x7]))!==_0x13f0ea)throw _0x546871();const _0x4fedba=_0x5e8f60=>{const _0x41979a=_0x244ae2,_0x243f0e=Number(_0x1aae4a[_0x41979a(0xda)](_0x5e8f60));if(!Number[_0x41979a(0x12f)](_0x243f0e))throw _0x546871();return _0x243f0e;};_0x2edaef=_0x4fedba(_0x13f0ea+0x8);if(_0x1aae4a[_0x244ae2(0xbc)](_0x13f0ea+0x4)!==0x0||_0x1aae4a['readUInt32LE'](_0x13f0ea+0x10)!==0x1||_0x2edaef>_0x13f0ea-0x38||_0x1aae4a['readUInt32LE'](_0x2edaef)!==0x6064b50||_0x4fedba(_0x2edaef+0x4)!==0x2c||_0x2edaef+0x38!==_0x13f0ea||_0x1aae4a[_0x244ae2(0xbc)](_0x2edaef+0x10)!==0x0||_0x1aae4a[_0x244ae2(0xbc)](_0x2edaef+0x14)!==0x0)throw _0x546871();_0x2cc31d=_0x4fedba(_0x2edaef+0x20),_0x1480d2=_0x4fedba(_0x2edaef+0x28),_0x4add43=_0x4fedba(_0x2edaef+0x30);if(_0x4fedba(_0x2edaef+0x18)!==_0x2cc31d)throw _0x546871();}else{if(_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x4)!==0x0||_0x1aae4a[_0x244ae2(0xe8)](_0x34d89f+0x6)!==0x0||_0x1aae4a['readUInt16LE'](_0x34d89f+0x8)!==_0x2cc31d)throw _0x546871();}const _0x89a4bb=_0x29ff15[_0x244ae2(0xa7)];if(_0x4add43!==_0x89a4bb||_0x2cc31d!==_0x29ff15[_0x244ae2(0x78)]||_0x4add43+_0x1480d2!==_0x2edaef)throw _0x546871();return _0x2edaef;}function consumerEntryName(_0x1e4dae,_0x36a9af){const _0x205417=a139_0x2cf248;if(_0x36a9af[_0x205417(0xf3)][_0x205417(0x11c)](_0x2313e6=>_0x2313e6['id']===0x1)['length']>0x1)throw new Error(_0x205417(0xd3));const _0x5b6080=_0x36a9af,_0x3a4018=_0x36a9af[_0x205417(0xf9)];if(!Buffer[_0x205417(0xdf)](_0x5b6080[_0x205417(0xac)])||!Buffer[_0x205417(0xdf)](_0x5b6080['extraFieldRaw'])||!Buffer[_0x205417(0xdf)](_0x5b6080[_0x205417(0x15d)])||!Number[_0x205417(0x12f)](_0x3a4018)||_0x3a4018<0x0||_0x3a4018>_0x1e4dae[_0x205417(0xf0)]-0x1e||_0x1e4dae[_0x205417(0xbc)](_0x3a4018)!==0x4034b50)throw new Error(_0x205417(0x155));const _0x1c7309=_0x3a4018+0x1e+_0x1e4dae[_0x205417(0xe8)](_0x3a4018+0x1a),_0x1e4473=_0x1c7309+_0x1e4dae['readUInt16LE'](_0x3a4018+0x1c)+_0x36a9af[_0x205417(0x108)];if(!Number[_0x205417(0x12f)](_0x1e4473)||_0x1e4473>_0x1e4dae[_0x205417(0xf0)])throw new Error(_0x205417(0x155));if(_0x1c7309>_0x1e4dae[_0x205417(0xf0)]||!_0x1e4dae[_0x205417(0x144)](_0x3a4018+0x1e,_0x1c7309)[_0x205417(0x11e)](_0x5b6080['fileNameRaw']))throw new Error(_0x205417(0xc0));const _0x310c07=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x310c07[_0x205417(0x118)]=_0x36a9af[_0x205417(0xd6)],_0x310c07[_0x205417(0xec)]=_0x5b6080[_0x205417(0xac)],_0x310c07['fileComment']=_0x5b6080[_0x205417(0x15d)],_0x310c07[_0x205417(0xfa)]=_0x5b6080['extraFieldRaw'][_0x205417(0xf0)],_0x310c07['readExtraFields'](zipReader(_0x5b6080['extraFieldRaw'])),_0x310c07[_0x205417(0x134)](),_0x310c07['versionMadeBy']=_0x36a9af[_0x205417(0xbe)],_0x310c07[_0x205417(0x152)]=_0x36a9af['externalFileAttributes'],_0x310c07[_0x205417(0x9e)]();const _0x6721be=_0x310c07['dir']||Boolean((_0x310c07[_0x205417(0x102)]??0x0)&0x4000),_0x129886=zipPaths[_0x205417(0x77)](_0x310c07[_0x205417(0xed)]),_0xacd892=_0x129886[_0x205417(0x12a)]('/')?_0x129886['slice'](0x1):_0x129886;return{'name':_0xacd892,'original':_0x310c07[_0x205417(0xed)],'directory':_0x6721be};}export function normalizeImportFields(_0x523fc1){const _0x4c0ff1=a139_0x2cf248;if(!_0x523fc1||(_0x523fc1['source']??_0x523fc1[_0x4c0ff1(0xff)]?.[_0x4c0ff1(0xb3)])!==_0x4c0ff1(0x113))throw new Error(_0x4c0ff1(0x104));const _0x3e1301=Array[_0x4c0ff1(0x124)](_0x523fc1[_0x4c0ff1(0xbf)]),_0x41b433=_0x3e1301?_0x523fc1[_0x4c0ff1(0xbf)]:_0x523fc1[_0x4c0ff1(0x10c)];if(!Array[_0x4c0ff1(0x124)](_0x41b433)||_0x41b433[_0x4c0ff1(0xf0)]===0x0)throw new Error('Dataset\x20field\x20metadata\x20is\x20missing.');const _0x345fd2=[],_0x45dadd=new Set();for(const _0x1e815e of _0x41b433){if(_0x1e815e[_0x4c0ff1(0x151)]===!![])continue;let _0x34446b=_0x1e815e['extend']??{};if(!_0x3e1301&&typeof _0x34446b===_0x4c0ff1(0x14f)){try{_0x34446b=JSON[_0x4c0ff1(0x13d)](_0x34446b);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x34446b||typeof _0x34446b!==_0x4c0ff1(0x122)||Array['isArray'](_0x34446b))throw new Error(_0x4c0ff1(0x133));}const _0x419230=_0x3e1301?_0x1e815e[_0x4c0ff1(0x15f)]:_0x1e815e[_0x4c0ff1(0x154)],_0x4c743d=_0x3e1301?_0x1e815e[_0x4c0ff1(0xd1)]:_0x1e815e[_0x4c0ff1(0x89)]??_0x1e815e['dataType'];if(typeof _0x419230!==_0x4c0ff1(0x14f)||!_0x419230||typeof _0x4c743d!=='string'||_0x45dadd[_0x4c0ff1(0xa0)](_0x419230))throw new Error(_0x4c0ff1(0xc7));if(_0x4c743d['toLowerCase']()===_0x4c0ff1(0xf4))throw new Error(_0x4c0ff1(0xeb));_0x45dadd[_0x4c0ff1(0x150)](_0x419230);const _0x728e1a=_0x3e1301?_0x1e815e:_0x34446b,_0x3987d5={'code':_0x419230,'type':_0x4c743d,'required':_0x728e1a['required']===!![]};if(RESERVED['has'](_0x419230)||_0x728e1a['generated']===!![]||_0x728e1a[_0x4c0ff1(0x135)]===!![])_0x3987d5[_0x4c0ff1(0x10d)]=!![];_0x345fd2['push'](_0x3987d5);}return _0x345fd2;}async function checkArchive(_0x9524c9,_0x4e65bf){await new Promise((_0x768824,_0x331d50)=>{a139_0x2f3373['fromBuffer'](_0x9524c9,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x57f3ad,_0x147df4)=>{const _0x2c8699=a139_0x54ac;if(_0x57f3ad||!_0x147df4){_0x331d50(_0x57f3ad??new Error(_0x2c8699(0x7b)));return;}let _0x3e301c;try{_0x3e301c=centralDirectoryEnd(_0x9524c9,_0x147df4);}catch(_0x19c043){_0x147df4['close'](),_0x331d50(_0x19c043);return;}let _0xcdbeef=0x0,_0xb84208=0x0,_0x51fd4c=0x0,_0x408c11=0x0,_0x4bf3ad=0x0,_0x530604=0x0,_0x4b991d=0x0,_0x16806d=0x0,_0x22d50e=0x0,_0xa9e620=![],_0x3a5cef;const _0x303a45=new Set(),_0x35e471=_0xdb6600=>{const _0xe1e413=_0x2c8699;if(_0xa9e620)return;_0xa9e620=!![],_0x3a5cef?.['destroy'](),_0x147df4[_0xe1e413(0xc8)](),_0x331d50(_0xdb6600);},_0x5efeb3=(_0x301de4,_0x51064d)=>{const _0x5b1878=_0x2c8699;if(!_0x301de4||!/^\d+$/[_0x5b1878(0xdd)](_0x301de4))throw new Error(_0x5b1878(0xa9));const _0x436b0f=Number(_0x301de4);if(!Number[_0x5b1878(0x12f)](_0x436b0f)||_0x436b0f<0x1||_0x436b0f>_0x51064d)throw new Error(_0x5b1878(0x80)+_0x51064d+'.');return _0x436b0f;},_0x40c42a=(_0x15ea53,_0x3a390b=MAX_XML_COLUMNS)=>{const _0x229f30=_0x2c8699,_0x53fe51=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x229f30(0x11d)](_0x15ea53);if(!_0x53fe51)throw new Error(_0x229f30(0x126));let _0x3c8013=0x0;for(const _0x41bbcc of _0x53fe51[0x1])_0x3c8013=_0x3c8013*0x1a+_0x41bbcc[_0x229f30(0x143)](0x0)-0x40;if(_0x3c8013>_0x3a390b)throw new Error(_0x229f30(0xc5)+_0x3a390b+_0x229f30(0x13c));return{'row':_0x5efeb3(_0x53fe51[0x2],MAX_XML_ROWS),'col':_0x3c8013};},_0x1b3821=_0x519e8d=>{const _0x4d6901=_0x2c8699;if(_0x519e8d[_0x4d6901(0x15f)]==='_xlnm.Print_Area'||_0x519e8d[_0x4d6901(0x15f)]===_0x4d6901(0xe0))return;for(const _0x34f9b0 of _0x519e8d['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x4d6901(0xdd)](_0x34f9b0[_0x4d6901(0x14b)]('!')[_0x4d6901(0x137)]()||''))continue;const _0x45ea38=nameCoordinates[_0x4d6901(0x114)](_0x34f9b0),_0x538b53='top'in _0x45ea38,_0x363536=_0x538b53?[_0x45ea38['top'],_0x45ea38[_0x4d6901(0xa3)]]:[_0x45ea38[_0x4d6901(0x7e)]],_0x287a98=_0x538b53?[_0x45ea38[_0x4d6901(0x85)],_0x45ea38['right']]:[_0x45ea38['col']],_0x4386fb=(_0x2e8b35,_0xfbd1e4)=>Number[_0x4d6901(0x12f)](_0x2e8b35)&&_0x2e8b35>=0x1&&_0x2e8b35<=_0xfbd1e4;if(!_0x363536[_0x4d6901(0x75)](_0x282cd3=>_0x4386fb(_0x282cd3,MAX_XML_ROWS))||!_0x287a98[_0x4d6901(0x75)](_0x497da0=>_0x4386fb(_0x497da0,MAX_XML_COLUMNS)))throw new Error('Invalid\x20defined\x20name\x20coordinate.');_0x4b991d+=_0x538b53?(_0x45ea38[_0x4d6901(0xa3)]-_0x45ea38[_0x4d6901(0xe3)]+0x1)*(_0x45ea38[_0x4d6901(0x145)]-_0x45ea38[_0x4d6901(0x85)]+0x1):0x1;if(_0x4b991d>MAX_ROWS)throw new Error(_0x4d6901(0x71));}};_0x147df4['on'](_0x2c8699(0x82),_0x35e471),_0x147df4['on'](_0x2c8699(0x12d),_0x4f9863=>{const _0x16a8dd=_0x2c8699;if(_0xa9e620)return;if(++_0x51fd4c>0x2710||(_0xcdbeef+=_0x4f9863[_0x16a8dd(0x115)])>MAX_EXPANDED){_0x35e471(new Error(_0x16a8dd(0xd2)));return;}let _0x43acbc;try{_0x43acbc=consumerEntryName(_0x9524c9,_0x4f9863);}catch(_0x275e52){_0x35e471(_0x275e52);return;}if(_0x43acbc[_0x16a8dd(0x14a)]){_0x147df4[_0x16a8dd(0x139)]();return;}const _0x57774c=_0x43acbc[_0x16a8dd(0x15f)];if(_0x4e65bf&&(_0x57774c!==_0x43acbc[_0x16a8dd(0x94)]||_0x303a45[_0x16a8dd(0xa0)](_0x57774c)||_0x57774c[_0x16a8dd(0x12a)]('/')||_0x57774c[_0x16a8dd(0x138)]('\x5c'))){_0x35e471(new Error(_0x16a8dd(0xea)));return;}if(_0x57774c!==_0x43acbc[_0x16a8dd(0x94)]&&(_0x57774c===_0x16a8dd(0x15e)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x16a8dd(0xdd)](_0x57774c))){_0x35e471(new Error(_0x16a8dd(0x106)));return;}const _0x2c5e40=_0x57774c===_0x16a8dd(0x15e);if(_0x2c5e40&&_0x303a45[_0x16a8dd(0xa0)](_0x57774c)){_0x35e471(new Error(_0x16a8dd(0xf1)));return;}_0x303a45[_0x16a8dd(0x150)](_0x57774c);const _0x933f10=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x16a8dd(0xdd)](_0x57774c);if(_0x933f10&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x57774c)){_0x35e471(new Error(_0x16a8dd(0x70)));return;}_0x147df4[_0x16a8dd(0x14e)](_0x4f9863,(_0x1d2091,_0x22d65f)=>{const _0x587897=_0x16a8dd;if(_0xa9e620){_0x22d65f?.[_0x587897(0x119)]();return;}if(_0x1d2091||!_0x22d65f){_0x35e471(_0x1d2091??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x3a5cef=_0x22d65f;const _0x571a59=_0x4e65bf?[]:undefined,_0x1e227c=_0x4e65bf&&/[.](xml|rels)$/[_0x587897(0xdd)](_0x57774c)?new StringDecoder(_0x587897(0xb2)):undefined,_0x438bf3=_0x1e227c?new SaxesParser({'xmlns':![]}):undefined,_0x1045cf=()=>{const _0x58a1d5=_0x587897;if(++_0x22d50e>0x1e8480)throw Error(_0x58a1d5(0x13f));};_0x438bf3?.['on']('doctype',()=>{const _0x189f36=_0x587897;throw Error(_0x189f36(0x8b));}),_0x438bf3?.['on'](_0x587897(0x120),()=>{const _0x1469a3=_0x587897;_0x1045cf();if(++_0x16806d>0x7a120)throw Error(_0x1469a3(0x15b));}),_0x438bf3?.['on'](_0x587897(0xba),_0x1045cf),_0x438bf3?.['on']('closetag',_0x1045cf),_0x438bf3?.['on']('error',_0x64a902=>{throw _0x64a902;});const _0x1022fa=_0x933f10||_0x2c5e40?new StringDecoder('utf8'):undefined,_0x50cbe8=_0x933f10||_0x2c5e40?new SaxesParser({'xmlns':![]}):undefined;let _0x46924f,_0x1a1ab0=0x0,_0x413bdf=0x0,_0x547b95,_0x3d8b90,_0x2be73b=![],_0x58d537=![],_0x5adfdb,_0x46812a,_0x49e6ac,_0x23b1d3=![];const _0x5cccd1=[],_0x38012e=new Set();let _0x3f50f1;const _0x1f1214=(_0x5b5838,_0x198671=0x0)=>{const _0x2b5997=_0x587897;_0x4bf3ad+=_0x198671+Math[_0x2b5997(0x98)](0x0,_0x5b5838-_0x413bdf),_0x413bdf=Math['max'](_0x413bdf,_0x5b5838);if(_0x4bf3ad>MAX_ROWS)throw new Error(_0x2b5997(0x157));};_0x50cbe8?.['on']('opentag',_0x144d47=>{const _0x4d447a=_0x587897;if(_0x2c5e40){if(!_0x46924f&&_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x15c))_0x46924f=new DefinedNameXform();_0x46924f?.[_0x4d447a(0x162)](_0x144d47);return;}if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x7e)){if(_0x58d537)throw new Error(_0x4d447a(0x156));_0x5efeb3(_0x144d47[_0x4d447a(0xde)]['r'],MAX_XML_ROWS),_0x547b95=undefined,_0x49e6ac=undefined,_0x23b1d3=![];}else{if(_0x144d47[_0x4d447a(0x15f)]==='c'){if(_0x58d537)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x58d537=!![],_0x2be73b=Boolean(Number[_0x4d447a(0xce)](_0x144d47[_0x4d447a(0xde)]['s']??'',0xa)),_0x3f50f1=undefined,_0x5adfdb=_0x144d47[_0x4d447a(0xde)]['r']||undefined,_0x46812a=_0x5adfdb?_0x40c42a(_0x5adfdb):undefined;if(_0x46812a)_0x3d8b90=_0x46812a;else _0x3d8b90=_0x547b95?{'row':_0x547b95[_0x4d447a(0x7e)],'col':_0x547b95[_0x4d447a(0xd0)]+0x1}:undefined;}else{if(_0x58d537&&['f','v','t'][_0x4d447a(0x138)](_0x144d47[_0x4d447a(0x15f)])){_0x3f50f1=_0x144d47[_0x4d447a(0x15f)];if(_0x144d47[_0x4d447a(0x15f)]==='f'&&_0x144d47['attributes']['t'])_0x2be73b=!![];}else{if(_0x58d537&&_0x144d47['name']==='r')_0x2be73b=!![];else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x12b)){const _0x4f3c60=_0x144d47[_0x4d447a(0xde)][_0x4d447a(0xf6)];if(!_0x4f3c60)throw new Error(_0x4d447a(0xc6));const _0x489f34=_0x4f3c60['split'](':');if(_0x489f34[_0x4d447a(0xf0)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x690b04=_0x40c42a(_0x489f34[0x0]),_0x1d1a4c=_0x40c42a(_0x489f34[0x1]??_0x489f34[0x0]);_0x38012e['add'](_0x4f3c60),_0x1f1214(Math[_0x4d447a(0x98)](_0x690b04['col'],_0x1d1a4c[_0x4d447a(0xd0)]),0x1);}else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0xd0)){const _0x30a5d5=_0x5efeb3(_0x144d47[_0x4d447a(0xde)]['min'],0x4000),_0x5ad195=_0x5efeb3(_0x144d47[_0x4d447a(0xde)][_0x4d447a(0x98)],0x4000);if(_0x30a5d5>_0x5ad195)throw new Error(_0x4d447a(0x8d));_0x1f1214(_0x5ad195,0x1);}else{if(_0x144d47[_0x4d447a(0x15f)]===_0x4d447a(0x127)){const _0x452afb=_0x144d47[_0x4d447a(0xde)]['ref'];if(!_0x452afb)throw new Error(_0x4d447a(0x79));const _0x40ca61=_0x452afb[_0x4d447a(0x14b)](':');if(_0x40ca61[_0x4d447a(0xf0)]>0x2)throw new Error(_0x4d447a(0x79));const _0xe28f80=_0x40c42a(_0x40ca61[0x0]),_0x3bfa83=_0x40c42a(_0x40ca61[0x1]??_0x40ca61[0x0]);_0x1f1214(Math['max'](_0xe28f80[_0x4d447a(0xd0)],_0x3bfa83['col']));const _0x110aac=(Math[_0x4d447a(0xb5)](_0x3bfa83[_0x4d447a(0x7e)]-_0xe28f80[_0x4d447a(0x7e)])+0x1)*(Math[_0x4d447a(0xb5)](_0x3bfa83[_0x4d447a(0xd0)]-_0xe28f80[_0x4d447a(0xd0)])+0x1);_0x408c11+=_0x110aac+_0x1a1ab0++;if(_0x408c11>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x50cbe8?.['on'](_0x587897(0xba),_0x2a3624=>{const _0x188751=_0x587897;if(_0x2c5e40){_0x46924f?.[_0x188751(0x121)](_0x2a3624);return;}if(_0x58d537&&_0x3f50f1&&_0x2a3624)_0x2be73b=!![];}),_0x50cbe8?.['on'](_0x587897(0x149),_0x22f277=>{const _0x486565=_0x587897;if(_0x2c5e40){_0x46924f&&!_0x46924f[_0x486565(0x148)]()&&(_0x1b3821(_0x46924f['model']),_0x46924f=undefined);return;}if(_0x22f277['name']==='c'){!_0x2be73b&&_0x5adfdb&&!_0x49e6ac&&(_0x49e6ac={'before':_0x547b95,'cells':[]});if(_0x49e6ac){if(++_0x530604>0xf4240)throw new Error(_0x486565(0x73));_0x49e6ac[_0x486565(0x128)][_0x486565(0x107)]({'reference':_0x5adfdb,'address':_0x46812a,'materialized':_0x2be73b});if(!_0x5adfdb&&_0x2be73b)_0x23b1d3=!![];}if(_0x2be73b){if(!_0x49e6ac||_0x5adfdb){if(!_0x3d8b90)throw new Error(_0x486565(0x13e));if(_0x3d8b90[_0x486565(0xd0)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x1f1214(_0x3d8b90[_0x486565(0xd0)]);}_0x547b95=_0x3d8b90;}_0x58d537=![],_0x3d8b90=undefined,_0x5adfdb=undefined,_0x46812a=undefined,_0x3f50f1=undefined;}else{if(_0x22f277['name']===_0x486565(0x7e)){if(_0x49e6ac&&_0x23b1d3)_0x5cccd1['push'](_0x49e6ac);_0x49e6ac=undefined,_0x23b1d3=![];}else{if(_0x22f277['name']===_0x3f50f1)_0x3f50f1=undefined;}}}),_0x50cbe8?.['on'](_0x587897(0x82),_0x11b80c=>{const _0x2c2d1e=_0x587897;throw new Error(_0x2c2d1e(0xb0)+_0x11b80c['message']);}),_0x22d65f['on'](_0x587897(0x82),_0x35e471),_0x22d65f['on'](_0x587897(0x14c),_0x1c3527=>{const _0x51a56b=_0x587897;if(_0xa9e620)return;_0xb84208+=_0x1c3527[_0x51a56b(0xf0)],_0x571a59?.[_0x51a56b(0x107)](_0x1c3527);if(_0xb84208>MAX_EXPANDED){_0x35e471(new Error('XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.'));return;}try{if(_0x438bf3&&_0x1e227c)_0x438bf3[_0x51a56b(0x10e)](_0x1e227c[_0x51a56b(0x10e)](_0x1c3527));if(_0x50cbe8&&_0x1022fa)_0x50cbe8['write'](_0x1022fa['write'](_0x1c3527));}catch(_0x58c00d){_0x35e471(_0x58c00d instanceof Error?_0x58c00d:new Error(_0x51a56b(0x86)));}}),_0x22d65f['on']('end',()=>{const _0x370553=_0x587897;if(_0xa9e620)return;try{if(_0x438bf3&&_0x1e227c)_0x438bf3[_0x370553(0x10e)](_0x1e227c[_0x370553(0x153)]())[_0x370553(0xc8)]();if(_0x50cbe8&&_0x1022fa)_0x50cbe8['write'](_0x1022fa[_0x370553(0x153)]())[_0x370553(0xc8)]();for(const _0x5ce83e of _0x5cccd1){let _0xb3a470=_0x5ce83e[_0x370553(0xe4)];for(const _0x51f3da of _0x5ce83e[_0x370553(0x128)]){if(!_0x51f3da['materialized']&&!(_0x51f3da[_0x370553(0xc2)]&&_0x38012e[_0x370553(0xa0)](_0x51f3da['reference'])))continue;const _0x975658=_0x51f3da[_0x370553(0x142)]??(_0xb3a470?{'row':_0xb3a470[_0x370553(0x7e)],'col':_0xb3a470[_0x370553(0xd0)]+0x1}:undefined);if(!_0x975658)throw new Error(_0x370553(0x13e));if(_0x975658[_0x370553(0xd0)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x1f1214(_0x975658['col']),_0xb3a470=_0x975658;}}_0x5cccd1[_0x370553(0xf0)]=0x0,_0x38012e[_0x370553(0x129)]();}catch(_0x3ba894){_0x35e471(_0x3ba894 instanceof Error?_0x3ba894:new Error(_0x370553(0x86)));return;}if(_0x571a59)_0x4e65bf['set'](_0x57774c,Buffer['concat'](_0x571a59));_0x3a5cef=undefined,_0x147df4['readEntry']();});});}),_0x147df4['on'](_0x2c8699(0x153),()=>{const _0x22bc9d=_0x2c8699;if(_0xa9e620)return;if(_0x147df4[_0x22bc9d(0xa7)]!==_0x3e301c){_0x331d50(new Error(_0x22bc9d(0xfc)));return;}if(!_0x303a45[_0x22bc9d(0xa0)]('[Content_Types].xml')||!_0x303a45['has'](_0x22bc9d(0x15e)))_0x331d50(new Error(_0x22bc9d(0x88)));else _0x768824();}),_0x147df4['readEntry']();});});}function valueOf(_0x372094){const _0x165d03=a139_0x2cf248,_0x1301df=_0x372094['value'];if(_0x1301df&&typeof _0x1301df===_0x165d03(0x122)&&('formula'in _0x1301df||_0x165d03(0x11b)in _0x1301df)){if(!(_0x165d03(0x7a)in _0x1301df)||_0x1301df[_0x165d03(0x7a)]===undefined)throw new Error(_0x165d03(0xa8));return _0x1301df[_0x165d03(0x7a)];}return _0x1301df;}function a139_0x54ac(_0x5d3166,_0x7490b6){_0x5d3166=_0x5d3166-0x70;const _0x466519=a139_0x4665();let _0x54ac37=_0x466519[_0x5d3166];return _0x54ac37;}function convert(_0x48e744,_0x169a03){const _0xcd3fc8=a139_0x2cf248;if(_0x48e744===null||_0x48e744===undefined||_0x48e744===''){if(_0x169a03['required']&&!_0x169a03[_0xcd3fc8(0x10d)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x48e744==='string'&&Buffer[_0xcd3fc8(0xf8)](_0x48e744,_0xcd3fc8(0xb2))>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x169a03[_0xcd3fc8(0x89)]['toLowerCase']()){case'string':case'text':case'textarea':if(typeof _0x48e744!==_0xcd3fc8(0x14f))throw new Error('Expected\x20a\x20text\x20cell.');return _0x48e744;case _0xcd3fc8(0xa2):case _0xcd3fc8(0x161):case _0xcd3fc8(0x12c):if(typeof _0x48e744!=='number'||!Number[_0xcd3fc8(0xb8)](_0x48e744)||Math['abs'](_0x48e744)>Number[_0xcd3fc8(0x100)]||_0x169a03[_0xcd3fc8(0x89)][_0xcd3fc8(0x13a)]()===_0xcd3fc8(0x12c)&&!Number[_0xcd3fc8(0xc4)](_0x48e744))throw new Error(_0xcd3fc8(0x140));return _0x48e744;case _0xcd3fc8(0xfb):if(typeof _0x48e744!==_0xcd3fc8(0xfb))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x48e744;case _0xcd3fc8(0xf5):case _0xcd3fc8(0xe1):if(!(_0x48e744 instanceof Date)||!Number['isFinite'](_0x48e744[_0xcd3fc8(0x9c)]()))throw new Error(_0xcd3fc8(0x123));return _0x48e744[_0xcd3fc8(0x9c)]();default:throw new Error(_0xcd3fc8(0x97)+_0x169a03['type']+'.');}}export async function buildExcelManifest(_0x1b7c70){const _0x585dfc=a139_0x2cf248,_0x334f21=_0x1b7c70[_0x585dfc(0xb9)]??0x1;if(!Number[_0x585dfc(0xc4)](_0x334f21)||_0x334f21<0x1||_0x334f21>MAX_ROWS)throw new Error(_0x585dfc(0x10a));if(_0x1b7c70[_0x585dfc(0xc1)]!==undefined&&(!Number['isInteger'](_0x1b7c70['batchSize'])||_0x1b7c70['batchSize']<0x1||_0x1b7c70['batchSize']>0x3e8))throw new Error('batchSize\x20must\x20be\x20between\x201\x20and\x201000.');if(a139_0x4edb8f[_0x585dfc(0xf7)](_0x1b7c70[_0x585dfc(0x103)])['toLowerCase']()!==_0x585dfc(0x141))throw new Error(_0x585dfc(0x83));const _0x116a52=await stat(_0x1b7c70[_0x585dfc(0x103)]);if(!_0x116a52['isFile']()||_0x116a52[_0x585dfc(0xe2)]>MAX_FILE)throw new Error(_0x585dfc(0x105));const _0xb19d40=await readFile(_0x1b7c70[_0x585dfc(0x103)]);if(_0xb19d40[_0x585dfc(0xf0)]>MAX_FILE)throw new Error(_0x585dfc(0xfe));const _0x39f222=_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xcc)](_0x528657=>isImageContainer(_0x528657[_0x585dfc(0x89)])&&Object[_0x585dfc(0xb7)](_0x1b7c70['mapping'])[_0x585dfc(0x138)](_0x528657['code']))?new Map():undefined;await checkArchive(_0xb19d40,_0x39f222);const _0x2daa87=new a139_0x9b9df5[(_0x585dfc(0xd8))]();await _0x2daa87[_0x585dfc(0x9b)]['load'](_0xb19d40,{'ignoreNodes':[_0x585dfc(0x110)]});const _0x2895de=_0x1b7c70[_0x585dfc(0x125)];let _0x7ef6bc;if(_0x2895de===undefined)_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][0x0];else{if(typeof _0x2895de===_0x585dfc(0x14f)&&_0x2daa87['worksheets'][_0x585dfc(0xcc)](_0x375bc1=>_0x375bc1[_0x585dfc(0x15f)]===_0x2895de))_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)]['find'](_0x1a81a7=>_0x1a81a7[_0x585dfc(0x15f)]===_0x2895de);else{if(typeof _0x2895de===_0x585dfc(0xa2)||/^\d+$/['test'](_0x2895de)){const _0x8c3ab6=Number(_0x2895de);if(!Number[_0x585dfc(0xc4)](_0x8c3ab6)||_0x8c3ab6<0x1)throw new Error(_0x585dfc(0xd7));_0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][_0x8c3ab6-0x1];}else _0x7ef6bc=_0x2daa87[_0x585dfc(0x136)][_0x585dfc(0x10f)](_0x584083=>_0x584083['name']===_0x2895de);}}if(!_0x7ef6bc)throw new Error(_0x585dfc(0x111));if(_0x7ef6bc[_0x585dfc(0xaa)]>MAX_ROWS||_0x7ef6bc[_0x585dfc(0x9d)]>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x7ef6bc[_0x585dfc(0xc3)][_0x585dfc(0x14d)]??[])[_0x585dfc(0xf0)])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x2ffdac=new Map();_0x7ef6bc[_0x585dfc(0x92)](_0x334f21)[_0x585dfc(0x72)]((_0x3415fd,_0x170175)=>{const _0x32e5e8=_0x585dfc,_0x10b0ee=valueOf(_0x3415fd);if(typeof _0x10b0ee!=='string'||!_0x10b0ee[_0x32e5e8(0xa1)]()||Buffer[_0x32e5e8(0xf8)](_0x10b0ee)>MAX_CELL)throw new Error(_0x32e5e8(0xef));if(_0x2ffdac[_0x32e5e8(0xa0)](_0x10b0ee))throw new Error('Duplicate\x20header:\x20'+_0x10b0ee+'.');_0x2ffdac[_0x32e5e8(0x117)](_0x10b0ee,_0x170175);});const _0x1c86ac=Object['entries'](_0x1b7c70[_0x585dfc(0x147)]);if(!_0x1c86ac[_0x585dfc(0xf0)])throw new Error(_0x585dfc(0x132));const _0x4a3aaf=new Map(_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xa4)](_0x35f38f=>[_0x35f38f['code'],_0x35f38f]));if(_0x4a3aaf[_0x585dfc(0xe2)]!==_0x1b7c70['fields'][_0x585dfc(0xf0)])throw new Error(_0x585dfc(0x158));if(_0x1b7c70[_0x585dfc(0xbf)][_0x585dfc(0xcc)](_0x28638f=>_0x28638f[_0x585dfc(0x89)]['toLowerCase']()===_0x585dfc(0xf4)))throw new Error(_0x585dfc(0xeb));const _0xa864a5=new Set();for(const [_0x2b90d4,_0x37542a]of _0x1c86ac){const _0x6bdaa5=_0x4a3aaf[_0x585dfc(0x96)](_0x37542a);if(!_0x2ffdac['has'](_0x2b90d4))throw new Error(_0x585dfc(0x112)+_0x2b90d4+'.');if(!_0x6bdaa5||RESERVED[_0x585dfc(0xa0)](_0x37542a)||_0x6bdaa5[_0x585dfc(0x10d)])throw new Error(_0x585dfc(0xae)+_0x37542a+'.');if(_0xa864a5[_0x585dfc(0xa0)](_0x37542a))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x37542a+'.');if(!TYPES[_0x585dfc(0xa0)](_0x6bdaa5[_0x585dfc(0x89)][_0x585dfc(0x13a)]()))throw new Error(_0x585dfc(0x97)+_0x6bdaa5[_0x585dfc(0x89)]+'.');_0xa864a5[_0x585dfc(0x150)](_0x37542a);}for(const _0x278731 of _0x1b7c70['fields']){if(_0x278731[_0x585dfc(0x11f)]&&!_0x278731[_0x585dfc(0x10d)]&&!RESERVED[_0x585dfc(0xa0)](_0x278731[_0x585dfc(0x154)])&&!_0xa864a5[_0x585dfc(0xa0)](_0x278731['code']))throw new Error(_0x585dfc(0x9a)+_0x278731['code']+'.');}const _0x2e9502={'fileHash':hash(_0xb19d40),'mappingHash':hash(JSON[_0x585dfc(0xd5)]([..._0x1c86ac][_0x585dfc(0xe5)](([_0x39fb2b],[_0x13b707])=>_0x39fb2b[_0x585dfc(0xaf)](_0x13b707)))),'schemaHash':hash(JSON[_0x585dfc(0xd5)]([..._0x1b7c70[_0x585dfc(0xbf)]][_0x585dfc(0xe5)]((_0x50ab4e,_0x417bf0)=>_0x50ab4e[_0x585dfc(0x154)][_0x585dfc(0xaf)](_0x417bf0[_0x585dfc(0x154)])))),'sheet':_0x7ef6bc[_0x585dfc(0x15f)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x51f7d2=_0x1c86ac['filter'](([,_0x1fa62c])=>isImageContainer(_0x4a3aaf[_0x585dfc(0x96)](_0x1fa62c)['type'])),_0x694693=_0x51f7d2['filter'](([,_0x1d1cf8])=>_0x4a3aaf[_0x585dfc(0x96)](_0x1d1cf8)[_0x585dfc(0x89)][_0x585dfc(0x13a)]()==='upload')[_0x585dfc(0xa4)](([,_0x4b379])=>_0x4b379);if(_0x694693[_0x585dfc(0xf0)])_0x2e9502[_0x585dfc(0x146)]=_0x694693;const _0x28b169=_0x39f222?resolveWorksheetImages(_0x39f222,_0x7ef6bc[_0x585dfc(0x15f)],new Set(_0x51f7d2[_0x585dfc(0xa4)](([_0x396a0f])=>_0x2ffdac[_0x585dfc(0x96)](_0x396a0f)))):[],_0x6d18af=new Map();for(const _0x1b8c0c of _0x28b169){const _0x472e05=_0x1b8c0c[_0x585dfc(0x7e)]+':'+_0x1b8c0c[_0x585dfc(0xd0)],_0x2ba23c=_0x6d18af['get'](_0x472e05)??[];_0x2ba23c[_0x585dfc(0x107)](_0x1b8c0c),_0x6d18af['set'](_0x472e05,_0x2ba23c);}const _0x2ace44=new Map();let _0xb5a9c6=0x0;_0x51f7d2['length']&&(_0x2e9502[_0x585dfc(0x159)]=_0x51f7d2[_0x585dfc(0xa4)](([,_0x1e1b0f])=>_0x1e1b0f),_0x2e9502[_0x585dfc(0x90)]=[],_0x2e9502[_0x585dfc(0x9f)]=0x1,_0x2e9502['media']=[]);const _0x1d5d17=Math[_0x585dfc(0x98)](0x0,..._0x28b169['map'](_0x234ff8=>_0x234ff8[_0x585dfc(0x7e)]));let _0x10ace9=0x0;const _0x431952=new Set(_0x1c86ac['map'](([_0x325b63])=>_0x2ffdac['get'](_0x325b63)));for(let _0x4b34e0=_0x334f21+0x1;_0x4b34e0<=Math[_0x585dfc(0x98)](_0x7ef6bc[_0x585dfc(0xaa)],_0x1d5d17);_0x4b34e0++){const _0x26f1a1=_0x7ef6bc['getRow'](_0x4b34e0);if(_0x26f1a1[_0x585dfc(0x87)]||_0x28b169['some'](_0x4a2da3=>_0x4a2da3[_0x585dfc(0x7e)]===_0x4b34e0&&_0x4a2da3[_0x585dfc(0x81)]))_0x10ace9++;let _0x5104d6=_0x28b169[_0x585dfc(0xcc)](_0x33bb6c=>_0x33bb6c[_0x585dfc(0x7e)]===_0x4b34e0);_0x26f1a1[_0x585dfc(0x72)](_0x538d8a=>{const _0xd2ec1d=_0x585dfc;if(_0x538d8a['value']!==null&&_0x538d8a[_0xd2ec1d(0x91)]!==undefined&&_0x538d8a[_0xd2ec1d(0x91)]!=='')_0x5104d6=!![];});if(!_0x5104d6){_0x2e9502['emptyRows'][_0x585dfc(0x107)](_0x4b34e0);continue;}const _0x50498d=Object['create'](null);_0x26f1a1[_0x585dfc(0x72)]((_0xd3443f,_0x230bba)=>{const _0x3c7f7d=_0x585dfc;if(_0x431952['has'](_0x230bba))return;try{const _0x150462=valueOf(_0xd3443f);if(typeof _0x150462===_0x3c7f7d(0x14f)&&Buffer[_0x3c7f7d(0xf8)](_0x150462,_0x3c7f7d(0xb2))>MAX_CELL)throw new Error(_0x3c7f7d(0xf2));}catch(_0x5e595c){_0x2e9502[_0x3c7f7d(0xcd)][_0x3c7f7d(0x107)]({'rowNumber':_0x4b34e0,'field':_0xd3443f[_0x3c7f7d(0x142)],'message':_0x5e595c[_0x3c7f7d(0xe6)]});}});for(const [_0x50687b,_0x1ef7cf]of _0x1c86ac){try{const _0x3ed91b=_0x26f1a1[_0x585dfc(0xee)](_0x2ffdac[_0x585dfc(0x96)](_0x50687b)),_0x12b4e0=_0x4a3aaf[_0x585dfc(0x96)](_0x1ef7cf);if(!isImageContainer(_0x12b4e0['type'])){_0x50498d[_0x1ef7cf]=convert(valueOf(_0x3ed91b),_0x12b4e0);continue;}const _0xfa6bba=_0x6d18af[_0x585dfc(0x96)](_0x4b34e0+':'+_0x2ffdac[_0x585dfc(0x96)](_0x50687b))??[];if(_0xfa6bba[_0x585dfc(0xcc)](_0x21567f=>_0x21567f[_0x585dfc(0x82)]))throw Error(_0xfa6bba[_0x585dfc(0x10f)](_0x64262a=>_0x64262a[_0x585dfc(0x82)])[_0x585dfc(0x82)]);if(_0x3ed91b['value']!=null&&_0x3ed91b['value']!==''&&!_0xfa6bba[_0x585dfc(0xcc)](_0x368be1=>_0x368be1[_0x585dfc(0xa6)]))throw Error('Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.');const _0x5343f2=[];for(const _0x52d86b of _0xfa6bba)for(const _0x3f8bf9 of _0x52d86b[_0x585dfc(0xcf)]){const _0x2cc273=_0x39f222[_0x585dfc(0x96)](_0x3f8bf9);if(!_0x2cc273)throw Error('Missing\x20image\x20media:\x20'+_0x3f8bf9+'.');const _0x235bb0=hash(_0x2cc273),_0x37cfb3=_0x2ace44['get'](_0x235bb0)??validateImageBytes(_0x2cc273);if(!_0x2ace44[_0x585dfc(0xa0)](_0x37cfb3[_0x585dfc(0xad)])){_0xb5a9c6+=_0x37cfb3[_0x585dfc(0xe2)];if(_0xb5a9c6>0x32*0x400*0x400)throw Error(_0x585dfc(0x12e));_0x2ace44[_0x585dfc(0x117)](_0x37cfb3['contentHash'],_0x37cfb3);}_0x5343f2[_0x585dfc(0x107)](_0x37cfb3[_0x585dfc(0xad)]);}if(!_0x5343f2[_0x585dfc(0xf0)]&&_0x12b4e0[_0x585dfc(0x11f)])throw Error(_0x585dfc(0x109));if(_0x5343f2[_0x585dfc(0xf0)])_0x2e9502[_0x585dfc(0x90)][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'field':_0x1ef7cf,'hashes':_0x5343f2});_0x50498d[_0x1ef7cf]=_0x5343f2['map'](_0x6c68ed=>{const _0x2c7de0=_0x585dfc,_0x4454e1=_0x2ace44[_0x2c7de0(0x96)](_0x6c68ed),_0x1f31bf=_0x4454e1[_0x2c7de0(0x89)]===_0x2c7de0(0x76)?_0x2c7de0(0x93):_0x4454e1[_0x2c7de0(0x89)][_0x2c7de0(0xcb)](0x6),_0x2ed06f=_0x6c68ed+'.'+_0x1f31bf,_0x4c4f59=_0x2c7de0(0x15a)+'0'['repeat'](0x40)+'/'+_0x2ed06f;return _0x12b4e0[_0x2c7de0(0x89)]['toLowerCase']()===_0x2c7de0(0x74)?{'fileName':_0x2ed06f,'filePath':_0x4c4f59}:{'key':_0x4c4f59,'name':_0x2ed06f,'type':_0x4454e1['type'],'size':_0x4454e1[_0x2c7de0(0xe2)]};});}catch(_0x2227ac){_0x2e9502['errors'][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'field':_0x1ef7cf,'message':_0x2227ac[_0x585dfc(0xe6)]});}}_0x2e9502['rows'][_0x585dfc(0x107)]({'rowNumber':_0x4b34e0,'values':_0x50498d});}if(_0x2e9502[_0x585dfc(0xcf)])_0x2e9502['media']=[..._0x2ace44[_0x585dfc(0xb7)]()];if(_0x10ace9)_0x2e9502[_0x585dfc(0xb6)][_0x585dfc(0x107)](_0x10ace9+_0x585dfc(0xdc));return _0x2e9502;}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a140_0xb46e(){const _0x568910=['259qMKtfs','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','subarray','Missing\x20PNG\x20data/end.','Truncated\x20PNG\x20data.','95176ljwgzo','1124469BXbzkS','equals','GIF87a','4dyHagT','sha256','decodeAndBlitFrameRGBA','923dlHNXg','Missing\x20GIF\x20trailer.','image/png','Invalid\x20GIF\x20trailer.','Invalid\x20GIF\x20LZW\x20code\x20size.','numFrames','IEND','acTL','GIF\x20frame\x20exceeds\x20canvas.','push','12853971WlwlRG','image/jpeg','omggif','89477DuJLqV','ascii','510uGxqMB','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','pngjs','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','read','toString','GIF89a','decode','sync','frameInfo','length','max','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Truncated\x20JPEG.','height','10bzUpmI','readUInt32BE','hex','width','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Invalid\x20PNG\x20header.','Animated\x20PNG\x20is\x20not\x20supported.','3085fgZKhk','includes','update','Invalid\x20GIF\x20LZW\x20pixel\x20data.','11ufnaIc','isSafeInteger','concat','9015910TPDPYj','message','jpeg-js','250980vcejww','IDAT','Invalid\x20PNG\x20end.','ceil','readUInt16LE'];a140_0xb46e=function(){return _0x568910;};return a140_0xb46e();}(function(_0x3ab528,_0x52ce6e){const _0x35d47c=a140_0xd312,_0x3a0797=_0x3ab528();while(!![]){try{const _0x554419=-parseInt(_0x35d47c(0xc4))/0x1*(parseInt(_0x35d47c(0xd7))/0x2)+-parseInt(_0x35d47c(0xf3))/0x3*(parseInt(_0x35d47c(0xb4))/0x4)+parseInt(_0x35d47c(0xde))/0x5*(parseInt(_0x35d47c(0xc6))/0x6)+parseInt(_0x35d47c(0xed))/0x7*(-parseInt(_0x35d47c(0xf2))/0x8)+parseInt(_0x35d47c(0xc1))/0x9+-parseInt(_0x35d47c(0xe5))/0xa*(parseInt(_0x35d47c(0xe2))/0xb)+-parseInt(_0x35d47c(0xe8))/0xc*(-parseInt(_0x35d47c(0xb7))/0xd);if(_0x554419===_0x52ce6e)break;else _0x3a0797['push'](_0x3a0797['shift']());}catch(_0x315a6b){_0x3a0797['push'](_0x3a0797['shift']());}}}(a140_0xb46e,0xc3b69));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x1eb3ba,_0xd85604){const _0xe7f62f=a140_0xd312;if(!Number['isSafeInteger'](_0x1eb3ba)||!Number[_0xe7f62f(0xe3)](_0xd85604)||_0x1eb3ba<0x1||_0xd85604<0x1||_0x1eb3ba*_0xd85604>MAX_PIXELS)throw Error(_0xe7f62f(0xd4));}function validateGif(_0xa7b6b6){const _0x4e56e7=a140_0xd312;let _0x1afcd6=0xd,_0x34d102=0x0,_0x122307=0x0;const _0x3fd9fb=_0xa7b6b6[_0x4e56e7(0xec)](0x6),_0x2cacb8=_0xa7b6b6[_0x4e56e7(0xec)](0x8),_0x15a421=_0xa7b6b6[0xa]&0x80?0x1<<(_0xa7b6b6[0xa]&0x7)+0x1:0x0,_0x2601bc=_0x4bc5da=>{const _0xc1a19c=_0x4e56e7;if(_0x1afcd6+_0x4bc5da>_0xa7b6b6[_0xc1a19c(0xd2)])throw Error('Truncated\x20GIF\x20data.');};_0x1afcd6+=_0x15a421*0x3,_0x2601bc(0x0);const _0x379886=()=>{const _0x238fe9=_0x4e56e7,_0x349a4c=[];while(!![]){_0x2601bc(0x1);const _0x561317=_0xa7b6b6[_0x1afcd6++];if(!_0x561317)break;_0x2601bc(_0x561317),_0x349a4c[_0x238fe9(0xc0)](_0xa7b6b6[_0x238fe9(0xef)](_0x1afcd6,_0x1afcd6+_0x561317)),_0x1afcd6+=_0x561317;}return Buffer[_0x238fe9(0xe4)](_0x349a4c);};while(_0x1afcd6<_0xa7b6b6[_0x4e56e7(0xd2)]){const _0xa464e8=_0xa7b6b6[_0x1afcd6++];if(_0xa464e8===0x3b){if(!_0x34d102||_0x1afcd6!==_0xa7b6b6[_0x4e56e7(0xd2)])throw Error(_0x4e56e7(0xba));return;}if(_0xa464e8===0x21){_0x2601bc(0x1),_0x1afcd6++,_0x379886();continue;}if(_0xa464e8!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x2601bc(0x9);const _0x4579a0=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6),_0x316697=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x2),_0x1c872f=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x4),_0x4f7319=_0xa7b6b6[_0x4e56e7(0xec)](_0x1afcd6+0x6),_0x1cc33c=_0xa7b6b6[_0x1afcd6+0x8];_0x1afcd6+=0x9,dimensions(_0x1c872f,_0x4f7319);if(_0x4579a0+_0x1c872f>_0x3fd9fb||_0x316697+_0x4f7319>_0x2cacb8||++_0x34d102>0x2710||(_0x122307+=_0x3fd9fb*_0x2cacb8)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x213b2a=_0x1cc33c&0x80?0x1<<(_0x1cc33c&0x7)+0x1:_0x15a421;if(!_0x213b2a)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x1cc33c&0x80&&(_0x2601bc(_0x213b2a*0x3),_0x1afcd6+=_0x213b2a*0x3);_0x2601bc(0x1);const _0x483129=_0xa7b6b6[_0x1afcd6++];if(_0x483129<0x2||_0x483129>0x8)throw Error(_0x4e56e7(0xbb));const _0x54e9c6=_0x379886(),_0x580546=0x1<<_0x483129,_0x185887=_0x580546+0x1;let _0x38be45=_0x483129+0x1,_0x57d478=_0x185887+0x1,_0x2d793d=0x0,_0x40c232=-0x1,_0x288c92=0x0,_0xcfe580=![];const _0x1c66ee=new Uint32Array(0x1000),_0x554fb1=new Uint16Array(0x1000);for(let _0x1d9f2e=0x0;_0x1d9f2e<_0x580546;_0x1d9f2e++){_0x1c66ee[_0x1d9f2e]=0x1,_0x554fb1[_0x1d9f2e]=_0x1d9f2e;}while(_0x2d793d+_0x38be45<=_0x54e9c6['length']*0x8){let _0x2bd916=0x0;for(let _0x145a3c=0x0;_0x145a3c<_0x38be45;_0x145a3c++,_0x2d793d++)_0x2bd916|=(_0x54e9c6[_0x2d793d>>0x3]>>(_0x2d793d&0x7)&0x1)<<_0x145a3c;if(_0x2bd916===_0x580546){_0x38be45=_0x483129+0x1,_0x57d478=_0x185887+0x1,_0x40c232=-0x1;continue;}if(_0x2bd916===_0x185887){_0xcfe580=!![];break;}if(_0x2bd916>_0x57d478||_0x2bd916===_0x57d478&&_0x40c232<0x0||_0x40c232<0x0&&_0x2bd916>=_0x580546)throw Error('Invalid\x20GIF\x20LZW\x20dictionary\x20reference.');const _0x1c4cae=_0x2bd916===_0x57d478?_0x1c66ee[_0x40c232]+0x1:_0x1c66ee[_0x2bd916],_0x5f39f6=_0x2bd916===_0x57d478?_0x554fb1[_0x40c232]:_0x554fb1[_0x2bd916];if(!_0x1c4cae||_0x5f39f6>=_0x213b2a||(_0x288c92+=_0x1c4cae)>_0x1c872f*_0x4f7319)throw Error(_0x4e56e7(0xe1));if(_0x40c232>=0x0&&_0x57d478<0x1000){_0x1c66ee[_0x57d478]=_0x1c66ee[_0x40c232]+0x1,_0x554fb1[_0x57d478]=Math[_0x4e56e7(0xd3)](_0x554fb1[_0x40c232],_0x5f39f6),_0x57d478++;if(_0x57d478===0x1<<_0x38be45&&_0x38be45<0xc)_0x38be45++;}_0x40c232=_0x2bd916;}if(!_0xcfe580||_0x288c92!==_0x1c872f*_0x4f7319)throw Error(_0x4e56e7(0xee));}throw Error(_0x4e56e7(0xb8));}function a140_0xd312(_0x88a500,_0x281645){_0x88a500=_0x88a500-0xb2;const _0xb46ecb=a140_0xb46e();let _0xd31206=_0xb46ecb[_0x88a500];return _0xd31206;}export function validateImageBytes(_0x5c7529){const _0xd923c2=a140_0xd312;if(!_0x5c7529[_0xd923c2(0xd2)]||_0x5c7529[_0xd923c2(0xd2)]>0xa*0x400*0x400)throw Error(_0xd923c2(0xdb));let _0x21348b;try{if(_0x5c7529[_0xd923c2(0xef)](0x0,0x8)[_0xd923c2(0xb2)](Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x5c7529[_0xd923c2(0xd2)]<0x21||_0x5c7529[_0xd923c2(0xcd)](_0xd923c2(0xc5),0xc,0x10)!=='IHDR')throw Error(_0xd923c2(0xdc));dimensions(_0x5c7529['readUInt32BE'](0x10),_0x5c7529['readUInt32BE'](0x14));const _0x166fe0=_0x5c7529[_0xd923c2(0xd8)](0x10),_0x484800=_0x5c7529[_0xd923c2(0xd8)](0x14),_0x1e19a2=_0x5c7529[0x18],_0x4b69ef=_0x5c7529[0x19],_0x4ebb45=_0x5c7529[0x1c],_0x4d6985={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x4b69ef];if(!_0x4d6985||![0x1,0x2,0x4,0x8,0x10][_0xd923c2(0xdf)](_0x1e19a2)||_0x4ebb45>0x1)throw Error('Invalid\x20PNG\x20color/depth/interlace.');const _0x289534=_0x45e93c=>Math[_0xd923c2(0xeb)](_0x45e93c*_0x4d6985*_0x1e19a2/0x8)+0x1;let _0x2c321d=_0x289534(_0x166fe0)*_0x484800;if(_0x4ebb45){_0x2c321d=0x0;for(const [_0x5d4cac,_0x43b97d,_0x3d2c42,_0x4cceb3]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 _0x38c076=Math[_0xd923c2(0xd3)](0x0,Math[_0xd923c2(0xeb)]((_0x166fe0-_0x5d4cac)/_0x3d2c42)),_0x3690e3=Math[_0xd923c2(0xd3)](0x0,Math[_0xd923c2(0xeb)]((_0x484800-_0x43b97d)/_0x4cceb3));if(_0x38c076&&_0x3690e3)_0x2c321d+=_0x289534(_0x38c076)*_0x3690e3;}}let _0x54b755=0x8,_0x10c4fa=![];const _0x37f912=[];while(_0x54b755<_0x5c7529[_0xd923c2(0xd2)]){if(_0x54b755+0xc>_0x5c7529[_0xd923c2(0xd2)])throw Error('Truncated\x20PNG\x20chunk.');const _0x2c60b8=_0x5c7529['readUInt32BE'](_0x54b755),_0x54f730=_0x5c7529[_0xd923c2(0xcd)](_0xd923c2(0xc5),_0x54b755+0x4,_0x54b755+0x8);if(_0x54f730===_0xd923c2(0xbe))throw Error(_0xd923c2(0xdd));if(_0x54b755+_0x2c60b8+0xc>_0x5c7529[_0xd923c2(0xd2)])throw Error(_0xd923c2(0xf1));if(_0x54f730===_0xd923c2(0xe9))_0x37f912[_0xd923c2(0xc0)](_0x5c7529[_0xd923c2(0xef)](_0x54b755+0x8,_0x54b755+0x8+_0x2c60b8));_0x54b755+=_0x2c60b8+0xc;if(_0x54f730===_0xd923c2(0xbd)){if(_0x2c60b8||_0x54b755!==_0x5c7529['length'])throw Error(_0xd923c2(0xea));_0x10c4fa=!![];break;}}if(!_0x10c4fa||!_0x37f912[_0xd923c2(0xd2)])throw Error(_0xd923c2(0xf0));if(inflateSync(Buffer[_0xd923c2(0xe4)](_0x37f912),{'maxOutputLength':_0x2c321d+0x1})[_0xd923c2(0xd2)]!==_0x2c321d)throw Error(_0xd923c2(0xc7));const {PNG:_0x42a933}=require(_0xd923c2(0xc9)),_0x20611b=_0x42a933[_0xd923c2(0xd0)][_0xd923c2(0xcc)](_0x5c7529,{'checkCRC':!![]});dimensions(_0x20611b[_0xd923c2(0xda)],_0x20611b['height']),_0x21348b=_0xd923c2(0xb9);}else{if(_0x5c7529[0x0]===0xff&&_0x5c7529[0x1]===0xd8){if(_0x5c7529['at'](-0x2)!==0xff||_0x5c7529['at'](-0x1)!==0xd9)throw Error(_0xd923c2(0xd5));const _0x40d17c=require(_0xd923c2(0xe7)),_0x4b4cde=_0x40d17c[_0xd923c2(0xcf)](_0x5c7529,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x4b4cde[_0xd923c2(0xda)],_0x4b4cde['height']),_0x21348b=_0xd923c2(0xc2);}else{if([_0xd923c2(0xb3),_0xd923c2(0xce)][_0xd923c2(0xdf)](_0x5c7529[_0xd923c2(0xcd)]('ascii',0x0,0x6))){if(_0x5c7529[_0xd923c2(0xd2)]<0xe||_0x5c7529['at'](-0x1)!==0x3b)throw Error('Truncated\x20GIF.');dimensions(_0x5c7529[_0xd923c2(0xec)](0x6),_0x5c7529['readUInt16LE'](0x8)),validateGif(_0x5c7529);const {GifReader:_0x10f37a}=require(_0xd923c2(0xc3)),_0xe89461=new _0x10f37a(_0x5c7529);dimensions(_0xe89461['width'],_0xe89461[_0xd923c2(0xd6)]);const _0x3bd351=_0xe89461[_0xd923c2(0xbc)]();if(!_0x3bd351||_0x3bd351>0x2710||_0x3bd351*_0xe89461[_0xd923c2(0xda)]*_0xe89461[_0xd923c2(0xd6)]>MAX_PIXELS)throw Error(_0xd923c2(0xcb));const _0xf88271=new Uint8Array(_0xe89461[_0xd923c2(0xda)]*_0xe89461[_0xd923c2(0xd6)]*0x4);for(let _0x4eff47=0x0;_0x4eff47<_0x3bd351;_0x4eff47++){const _0x4f2b9b=_0xe89461[_0xd923c2(0xd1)](_0x4eff47);if(_0x4f2b9b['x']+_0x4f2b9b[_0xd923c2(0xda)]>_0xe89461[_0xd923c2(0xda)]||_0x4f2b9b['y']+_0x4f2b9b[_0xd923c2(0xd6)]>_0xe89461['height'])throw Error(_0xd923c2(0xbf));_0xe89461[_0xd923c2(0xb6)](_0x4eff47,_0xf88271);}_0x21348b='image/gif';}else throw Error(_0xd923c2(0xca));}}}catch(_0x20a703){throw Error('Invalid\x20image:\x20'+_0x20a703[_0xd923c2(0xe6)]);}return{'contentHash':createHash(_0xd923c2(0xb5))[_0xd923c2(0xe0)](_0x5c7529)[_0xd923c2(0xc8)](_0xd923c2(0xd9)),'type':_0x21348b,'size':_0x5c7529['length'],'bytes':_0x5c7529};}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ImagePosition {
|
|
2
|
+
row: number;
|
|
3
|
+
col: number;
|
|
4
|
+
media: string[];
|
|
5
|
+
error?: string;
|
|
6
|
+
nativeCell?: boolean;
|
|
7
|
+
hiddenRow?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** 只消费已通过 ZIP 预检的规范名称字节;共享 XML 对象/事件预算。 */
|
|
10
|
+
export declare function resolveWorksheetImages(archive: Map<string, Buffer>, sheetName: string, mappedColumns: Set<number>): ImagePosition[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a141_0x5a3b95=a141_0x20ab;function a141_0x20ab(_0x2da9b5,_0x3b366e){_0x2da9b5=_0x2da9b5-0x193;const _0x252749=a141_0x2527();let _0x20ab2e=_0x252749[_0x2da9b5];return _0x20ab2e;}(function(_0x41c890,_0x2eaf8c){const _0x4269cd=a141_0x20ab,_0x26a222=_0x41c890();while(!![]){try{const _0x1f1852=parseInt(_0x4269cd(0x206))/0x1+-parseInt(_0x4269cd(0x1b5))/0x2*(-parseInt(_0x4269cd(0x1f5))/0x3)+parseInt(_0x4269cd(0x212))/0x4+parseInt(_0x4269cd(0x23f))/0x5+-parseInt(_0x4269cd(0x1d5))/0x6+parseInt(_0x4269cd(0x1ca))/0x7+-parseInt(_0x4269cd(0x1c5))/0x8*(parseInt(_0x4269cd(0x21d))/0x9);if(_0x1f1852===_0x2eaf8c)break;else _0x26a222['push'](_0x26a222['shift']());}catch(_0x1651b0){_0x26a222['push'](_0x26a222['shift']());}}}(a141_0x2527,0xe6caa));import a141_0x1ab275 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a141_0x5a3b95(0x1a0),'http://purl.oclc.org/ooxml/spreadsheetml/main'],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a141_0x5a3b95(0x1ec)],DRAWING_MAIN=[a141_0x5a3b95(0x1fc),a141_0x5a3b95(0x1ab)],OFFICE_RELS=[a141_0x5a3b95(0x1a9),'http://purl.oclc.org/ooxml/officeDocument/relationships'],PACKAGE=[a141_0x5a3b95(0x241)],RICH=['http://schemas.microsoft.com/office/spreadsheetml/2017/richdata'],RICH_RELS=[a141_0x5a3b95(0x20f)],WPS=[a141_0x5a3b95(0x223)],DEFAULT_NS=Object[a141_0x5a3b95(0x20b)]([...[a141_0x5a3b95(0x1e1),'sheets','sheet',a141_0x5a3b95(0x197),a141_0x5a3b95(0x21f),'row','c','f','v','sheetFormatPr',a141_0x5a3b95(0x22b),a141_0x5a3b95(0x1d0),a141_0x5a3b95(0x19f),a141_0x5a3b95(0x199),'futureMetadata','valueMetadata','bk','rc',a141_0x5a3b95(0x1dd)][a141_0x5a3b95(0x1bb)](_0x327dc4=>[_0x327dc4,SHEET]),...[a141_0x5a3b95(0x23d),a141_0x5a3b95(0x21e),'twoCellAnchor',a141_0x5a3b95(0x1b0),a141_0x5a3b95(0x1ae),'to','col',a141_0x5a3b95(0x1b1),'rowOff','ext',a141_0x5a3b95(0x1da),a141_0x5a3b95(0x211),a141_0x5a3b95(0x228),a141_0x5a3b95(0x1e8)][a141_0x5a3b95(0x1bb)](_0x4abb5d=>[_0x4abb5d,DRAWING]),...[a141_0x5a3b95(0x1a4),'rvData','rv',a141_0x5a3b95(0x1d1),'s','k'][a141_0x5a3b95(0x1bb)](_0x2713a2=>[_0x2713a2,RICH]),[a141_0x5a3b95(0x240),DRAWING_MAIN],[a141_0x5a3b95(0x1c2),RICH_RELS],[a141_0x5a3b95(0x19e),RICH_RELS],[a141_0x5a3b95(0x22f),PACKAGE],[a141_0x5a3b95(0x1c1),PACKAGE],[a141_0x5a3b95(0x21c),WPS],[a141_0x5a3b95(0x222),WPS]]),matches=(_0x1f3722,_0x388325,_0x3b430b=DEFAULT_NS[_0x388325]??[])=>_0x1f3722['name']===_0x388325&&_0x3b430b[a141_0x5a3b95(0x194)](_0x1f3722[a141_0x5a3b95(0x19d)]),children=(_0x2d3f95,_0x1f6535,_0x226380=DEFAULT_NS[_0x1f6535])=>_0x2d3f95[a141_0x5a3b95(0x1fa)]['filter'](_0x2e4497=>matches(_0x2e4497,_0x1f6535,_0x226380)),chain=(_0xefa7e0,..._0x577891)=>_0x577891[a141_0x5a3b95(0x224)]((_0x3327e9,_0xcfc9cd)=>_0x3327e9[a141_0x5a3b95(0x21a)](_0x506754=>children(_0x506754,_0xcfc9cd)),[_0xefa7e0]),relationshipTypes=_0x31ee6a=>{const _0x1c6cef=a141_0x5a3b95;if([_0x1c6cef(0x1db),_0x1c6cef(0x1bf)][_0x1c6cef(0x194)](_0x31ee6a))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x31ee6a];if(_0x31ee6a===_0x1c6cef(0x1bd))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x31ee6a===_0x1c6cef(0x222)||_0x31ee6a===_0x1c6cef(0x21c))return[_0x1c6cef(0x196)+_0x31ee6a];return OFFICE_RELS['map'](_0xec7125=>_0xec7125+'/'+_0x31ee6a);};function one(_0x3cf0e5,_0x45e2b6){const _0x3ef055=a141_0x5a3b95;if(_0x3cf0e5[_0x3ef055(0x1ac)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x45e2b6+'.');return _0x3cf0e5[0x0];}function a141_0x2527(){const _0x4df8fa=['startsWith','filter','push','pic','rdRichValue','_rels','extLst','local','opentag','rowOff','workbook','future\x20metadata\x20index','name','Missing\x20value\x20metadata\x20block.','message','basename','attrs','blipFill','posix','rich\x20metadata\x20record','add','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','Unsupported\x20rich\x20value\x20namespace.','Missing\x20XLSX\x20part:\x20','Value\x20metadata\x20index\x20must\x20be\x20one-based.','rich\x20structure\x20index','isFinite','text','Unsupported\x20worksheet\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','75ohLLdf','Missing\x20rich\x20image\x20relationship.','r:id','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','WPS\x20image\x20name','children','has','http://schemas.openxmlformats.org/drawingml/2006/main','twoCellAnchor','WPS\x20image\x20blip','anchor\x20column','Ambiguous\x20XML\x20attribute.','Invalid\x20','_rvRel:LocalImageIdentifier','rvData','attributes','Unsupported\x20metadata\x20namespace.','1095468qCIJDb','type','MAX_SAFE_INTEGER','/xl/cellimages.xml','closetag','fromEntries','dirname','Unsupported\x20WPS\x20cell\x20image\x20namespace.','utf8','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','r:link','nvPicPr','4748008FiNhQD','test','get','rich\x20value\x20binding','Unsupported\x20rich\x20image\x20relation\x20namespace.','Missing\x20future\x20metadata\x20block.','close','write','flatMap','Unsupported\x20relationship\x20namespace\x20in\x20','cellImages','9272511RAVKgy','oneCellAnchor','sheetData','shared','replace','cellImage','http://www.wps.cn/officeDocument/2017/etCustomData','reduce','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','Invalid\x20or\x20duplicate\x20relationship\x20in\x20','cNvPr','anchor\x20start\x20offset','External\x20image\x20links\x20are\x20not\x20supported.','drawing','.rels','\x20relationship\x20in\x20','r:embed','Relationships','Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','Image\x20XML\x20node\x20budget\x20exceeded.','anchor\x20row','exec','Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.','Invalid\x20relationship\x20target:\x20','ext','sheet','isSafeInteger','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','Duplicate\x20mapped\x20image\x20cell.','metadata\x20types','Shared\x20image\x20formulas\x20are\x20not\x20supported.','wsDr','Unsupported\x20mapped\x20cell\x20metadata\x20type.','6898410kHHZqZ','blip','http://schemas.openxmlformats.org/package/2006/relationships','rich\x20future\x20metadata','xl/workbook.xml','doctype','includes','sheetFormatPr','http://www.wps.cn/officeDocument/2017/relationships/','worksheet','Unsupported\x20drawing\x20image.','metadataType','xl/cellimages.xml','Unsupported\x20workbook\x20namespace.','Missing\x20or\x20ambiguous\x20','uri','rel','metadataTypes','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','Missing\x20local\x20image\x20identifier\x20value.','pop','rvb','set','anchor\x20end','value\x20metadata\x20index','col','http://schemas.openxmlformats.org/officeDocument/2006/relationships','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','http://purl.oclc.org/ooxml/drawingml/main','length','Missing\x20rich\x20value.','from','Workbook\x20exceeds\x2010000\x20image\x20occurrences.','absoluteAnchor','colOff','Relationship\x20target\x20escapes\x20workbook:\x20','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','hidden\x20image\x20row','1282jIgjvC','row','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','metadata\x20type\x20index','defaultRowHeight','../','map','normalize','richValueRel','Internal','rdRichValueStructure','hidden','Relationship','richValueRels','rich\x20image\x20relationship\x20index','value','8YnGEnp','anchor\x20start','join','anchor\x20end\x20offset','true','753627bDvsPb','XLRICHVALUE','_localImage','toLowerCase','sheetMetadata','slice','metadata','rvStructures','image\x20extent','Image\x20XML\x20event\x20budget\x20exceeded.','futureMetadata','10861422ouzlbl','valueMetadata'];a141_0x2527=function(){return _0x4df8fa;};return a141_0x2527();}function integer(_0x62cc95,_0x138f7b,_0x2a9cb2=0x186a0){const _0x3d8eff=a141_0x5a3b95;if(!_0x62cc95||!/^\d+$/[_0x3d8eff(0x213)](_0x62cc95)||!Number[_0x3d8eff(0x238)](Number(_0x62cc95))||Number(_0x62cc95)>_0x2a9cb2)throw Error(_0x3d8eff(0x201)+_0x138f7b+'.');return Number(_0x62cc95);}export function resolveWorksheetImages(_0x400f55,_0x4244f2,_0x2db3f9){const _0xd792e9=a141_0x5a3b95;let _0xf78330=0x0,_0xbee584=0x0,_0x5786da=0x0;const _0x5032fd=new Map(),_0x5e3695=_0x1a6372=>{const _0x567061=a141_0x20ab;if(_0x5032fd[_0x567061(0x1fb)](_0x1a6372))return _0x5032fd[_0x567061(0x214)](_0x1a6372);const _0x18ea0f=_0x400f55[_0x567061(0x214)](_0x1a6372);if(!_0x18ea0f)throw Error(_0x567061(0x1ee)+_0x1a6372+'.');const _0x458e21={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1a306a=[_0x458e21],_0x3fb2d7=new SaxesParser({'xmlns':!![]}),_0x35f850=()=>{const _0x370c14=_0x567061;if(++_0xbee584>0x1e8480)throw Error(_0x370c14(0x1d3));};_0x3fb2d7['on'](_0x567061(0x193),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x3fb2d7['on'](_0x567061(0x1df),_0x1c4264=>{const _0x17dfbd=_0x567061;_0x35f850();if(++_0xf78330>0x7a120||_0x1a306a[_0x17dfbd(0x1ac)]>0x40)throw Error(_0x17dfbd(0x231));const _0x2bc430={};for(const _0x4ab4dd of Object['values'](_0x1c4264[_0x17dfbd(0x204)])){const _0x4de4d7=OFFICE_RELS[_0x17dfbd(0x194)](_0x4ab4dd[_0x17dfbd(0x19d)])?'r:'+_0x4ab4dd[_0x17dfbd(0x1de)]:_0x4ab4dd['uri']?'{'+_0x4ab4dd['uri']+'}'+_0x4ab4dd[_0x17dfbd(0x1de)]:_0x4ab4dd[_0x17dfbd(0x1de)];if(_0x4de4d7 in _0x2bc430)throw Error(_0x17dfbd(0x200));_0x2bc430[_0x4de4d7]=_0x4ab4dd[_0x17dfbd(0x1c4)];}const _0x3ddd13={'name':_0x1c4264['local'],'uri':_0x1c4264['uri'],'attrs':_0x2bc430,'children':[],'text':''};_0x1a306a['at'](-0x1)[_0x17dfbd(0x1fa)][_0x17dfbd(0x1d9)](_0x3ddd13),_0x1a306a[_0x17dfbd(0x1d9)](_0x3ddd13);}),_0x3fb2d7['on'](_0x567061(0x1f2),_0x3b9e65=>{const _0x12aa7c=_0x567061;_0x35f850();const _0x4c01de=_0x1a306a['at'](-0x1);_0x4c01de['text']+=_0x3b9e65;if(_0x4c01de[_0x12aa7c(0x1f2)][_0x12aa7c(0x1ac)]>0x10000)throw Error(_0x12aa7c(0x1b3));}),_0x3fb2d7['on'](_0x567061(0x20a),()=>{const _0x201259=_0x567061;_0x35f850(),_0x1a306a[_0x201259(0x1a3)]();}),_0x3fb2d7['on']('error',_0x164da1=>{throw _0x164da1;}),_0x3fb2d7[_0x567061(0x219)](_0x18ea0f['toString'](_0x567061(0x20e)))[_0x567061(0x218)]();const _0x507cf5=one(_0x458e21[_0x567061(0x1fa)],_0x1a6372);return _0x5032fd[_0x567061(0x1a5)](_0x1a6372,_0x507cf5),_0x507cf5;},_0x12fe98=new Map(),_0xcc5412=_0x5a3808=>{const _0x27e957=a141_0x20ab;if(_0x12fe98['has'](_0x5a3808))return _0x12fe98[_0x27e957(0x214)](_0x5a3808);const _0x127ec1=a141_0x1ab275[_0x27e957(0x1e9)]['join'](a141_0x1ab275[_0x27e957(0x1e9)]['dirname'](_0x5a3808),_0x27e957(0x1dc),a141_0x1ab275[_0x27e957(0x1e9)][_0x27e957(0x1e6)](_0x5a3808)+_0x27e957(0x22c));if(!_0x400f55[_0x27e957(0x1fb)](_0x127ec1))return[];const _0x2e90bf=new Set(),_0x1ed8db=_0x5e3695(_0x127ec1);if(!matches(_0x1ed8db,_0x27e957(0x22f)))throw Error(_0x27e957(0x21b)+_0x127ec1+'.');const _0x3d53cb=children(_0x1ed8db,_0x27e957(0x1c1))[_0x27e957(0x1bb)](_0x3a74f9=>{const _0x3910b3=_0x27e957,{Id:_0x489678,Type:_0x4fc26e,Target:_0x22e8ce,TargetMode:_0x2a9ed2}=_0x3a74f9[_0x3910b3(0x1e7)];if(!_0x489678||_0x2e90bf['has'](_0x489678)||!_0x4fc26e)throw Error(_0x3910b3(0x227)+_0x127ec1+'.');return _0x2e90bf[_0x3910b3(0x1eb)](_0x489678),{'id':_0x489678,'type':_0x4fc26e,'target':_0x22e8ce??'','mode':_0x2a9ed2};});return _0x12fe98[_0x27e957(0x1a5)](_0x5a3808,_0x3d53cb),_0x3d53cb;},_0x2f3205=(_0x26eb11,_0x8583f4)=>{const _0x31bf80=a141_0x20ab,{target:_0x320244,mode:_0x560504}=_0x8583f4;if(_0x560504&&_0x560504!==_0x31bf80(0x1be))throw Error('External\x20image\x20relationship\x20is\x20not\x20supported:\x20'+_0x26eb11+'.');if(!_0x320244||_0x320244[_0x31bf80(0x194)]('\x5c')||/[?#%\x00-\x20]/[_0x31bf80(0x213)](_0x320244)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x320244)||_0x320244[_0x31bf80(0x1d7)]('//'))throw Error(_0x31bf80(0x235)+_0x26eb11+'.');const _0x481040=_0x320244[_0x31bf80(0x1d7)]('/')?_0x320244[_0x31bf80(0x1cf)](0x1):a141_0x1ab275['posix'][_0x31bf80(0x1bc)](a141_0x1ab275[_0x31bf80(0x1e9)][_0x31bf80(0x1c7)](a141_0x1ab275['posix'][_0x31bf80(0x20c)](_0x26eb11),_0x320244));if(_0x481040[_0x31bf80(0x1d7)](_0x31bf80(0x1ba))||_0x481040==='..'||!_0x481040[_0x31bf80(0x1d7)]('xl/'))throw Error(_0x31bf80(0x1b2)+_0x26eb11+'.');return _0x481040;},_0x4c30f1=(_0x351a26,_0x4559f2,_0x28c557)=>{const _0x23fff0=a141_0x20ab,_0x39db44=_0xcc5412(_0x351a26)[_0x23fff0(0x1d8)](_0x4652fb=>_0x4652fb['id']===_0x4559f2&&relationshipTypes(_0x28c557)['includes'](_0x4652fb['type']));if(_0x39db44[_0x23fff0(0x1ac)]!==0x1)throw Error(_0x23fff0(0x19c)+_0x28c557+_0x23fff0(0x22d)+_0x351a26+'.');return _0x2f3205(_0x351a26,_0x39db44[0x0]);},_0x3ae0e1=(_0x47832d,_0x60d464)=>{const _0x54d1c4=a141_0x20ab,_0x84709b=_0xcc5412(_0x47832d)['filter'](_0x2614a6=>relationshipTypes(_0x60d464)[_0x54d1c4(0x194)](_0x2614a6[_0x54d1c4(0x207)]));if(_0x84709b[_0x54d1c4(0x1ac)]!==0x1)throw Error(_0x54d1c4(0x19c)+_0x60d464+'\x20relationship\x20in\x20'+_0x47832d+'.');return _0x2f3205(_0x47832d,_0x84709b[0x0]);},_0x32c262=_0xd792e9(0x243),_0x5a8fdf=_0x5e3695(_0x32c262);if(!matches(_0x5a8fdf,'workbook'))throw Error(_0xd792e9(0x19b));const _0x549f58=one(chain(_0x5a8fdf,'sheets',_0xd792e9(0x237))[_0xd792e9(0x1d8)](_0x5da45c=>_0x5da45c['attrs'][_0xd792e9(0x1e3)]===_0x4244f2),'worksheet'),_0x51e98d=_0x4c30f1(_0x32c262,_0x549f58[_0xd792e9(0x1e7)][_0xd792e9(0x1f7)],_0xd792e9(0x197)),_0x4787fb=_0x5e3695(_0x51e98d);if(!matches(_0x4787fb,_0xd792e9(0x197)))throw Error(_0xd792e9(0x1f3));const _0x74d6a8=chain(_0x4787fb,_0xd792e9(0x21f),_0xd792e9(0x1b6)),_0x4bf38f=new Map(),_0x5ee424=new Set(_0x74d6a8[_0xd792e9(0x1d8)](_0x4dbe81=>_0x4dbe81[_0xd792e9(0x1e7)][_0xd792e9(0x1c0)]==='1'||_0x4dbe81[_0xd792e9(0x1e7)][_0xd792e9(0x1c0)]===_0xd792e9(0x1c9))[_0xd792e9(0x1bb)](_0x5396f8=>integer(_0x5396f8[_0xd792e9(0x1e7)]['r'],_0xd792e9(0x1b4)))),_0x48006c=_0x1169fa=>{const _0x3acd8f=_0xd792e9,_0x11581d=_0x1169fa===undefined?0xf:Number(_0x1169fa);if(!Number[_0x3acd8f(0x1f1)](_0x11581d)||_0x11581d<=0x0||_0x11581d>409.5)throw Error(_0x3acd8f(0x225));return Math['round'](_0x11581d*0x319c);},_0x5bff08=_0x48006c(children(_0x4787fb,_0xd792e9(0x195))[0x0]?.[_0xd792e9(0x1e7)][_0xd792e9(0x1b9)]);for(const _0xf13b0 of _0x74d6a8)if(_0xf13b0[_0xd792e9(0x1e7)]['ht']!==undefined)_0x4bf38f['set'](integer(_0xf13b0[_0xd792e9(0x1e7)]['r'],'image\x20row\x20height\x20coordinate'),_0x48006c(_0xf13b0['attrs']['ht']));const _0x1fecec=[],_0x7fcbc1=_0x55beee=>{const _0x36c38b=_0xd792e9;if(!_0x2db3f9['has'](_0x55beee[_0x36c38b(0x1a8)]))return;if(++_0x5786da>0x2710)throw Error(_0x36c38b(0x1af));_0x1fecec[_0x36c38b(0x1d9)](_0x5ee424['has'](_0x55beee[_0x36c38b(0x1b6)])?{..._0x55beee,'hiddenRow':!![]}:_0x55beee);},_0x1f8757=_0x34e71a=>({'row':integer(one(children(_0x34e71a,_0xd792e9(0x1b6),DRAWING),'anchor\x20row')[_0xd792e9(0x1f2)],_0xd792e9(0x232),0x1869f)+0x1,'col':integer(one(children(_0x34e71a,_0xd792e9(0x1a8)),'anchor\x20column')[_0xd792e9(0x1f2)],_0xd792e9(0x1ff),0xff)+0x1});for(const _0x337841 of children(_0x4787fb,_0xd792e9(0x22b))){const _0x2db23e=_0x4c30f1(_0x51e98d,_0x337841[_0xd792e9(0x1e7)][_0xd792e9(0x1f7)],_0xd792e9(0x22b)),_0x331e86=_0x5e3695(_0x2db23e);if(!matches(_0x331e86,'wsDr'))throw Error('Unsupported\x20drawing\x20namespace.');for(const _0x4fe52d of _0x331e86[_0xd792e9(0x1fa)]){if(![_0xd792e9(0x21e),_0xd792e9(0x1fd),_0xd792e9(0x1b0)]['some'](_0x1dd954=>matches(_0x4fe52d,_0x1dd954)))continue;if(_0x4fe52d[_0xd792e9(0x1e3)]===_0xd792e9(0x1b0))throw Error(_0xd792e9(0x226)+_0x4244f2+'.');const _0x8f443f=_0x1f8757(one(children(_0x4fe52d,_0xd792e9(0x1ae)),_0xd792e9(0x1c6)));if(!_0x2db3f9[_0xd792e9(0x1fb)](_0x8f443f['col']))continue;let _0x2e7132;const _0x313bd8=one(children(_0x4fe52d,'from'),_0xd792e9(0x1c6)),_0xfe3dd5=integer(one(children(_0x313bd8,_0xd792e9(0x1e0)),_0xd792e9(0x229))['text'],_0xd792e9(0x229),Number[_0xd792e9(0x208)]),_0x135f33=_0x4bf38f[_0xd792e9(0x214)](_0x8f443f[_0xd792e9(0x1b6)])??_0x5bff08;if(_0xfe3dd5>=_0x135f33)throw Error('Invalid\x20image\x20start\x20offset\x20at\x20row\x20'+_0x8f443f[_0xd792e9(0x1b6)]+'.');if(_0x4fe52d[_0xd792e9(0x1e3)]===_0xd792e9(0x21e)){const _0x384af5=one(children(_0x4fe52d,_0xd792e9(0x236)),_0xd792e9(0x1d2)),_0x11b681=integer(_0x384af5[_0xd792e9(0x1e7)]['cy'],'image\x20height',Number['MAX_SAFE_INTEGER']);if(!_0x11b681||_0xfe3dd5+_0x11b681>_0x135f33)_0x2e7132=_0xd792e9(0x1b7);}if(_0x4fe52d[_0xd792e9(0x1e3)]===_0xd792e9(0x1fd)){const _0x2f9cdb=one(children(_0x4fe52d,'to'),_0xd792e9(0x1a6)),_0x4f7532=_0x1f8757(_0x2f9cdb),_0x54e22b=integer(one(children(_0x2f9cdb,_0xd792e9(0x1e0)),'anchor\x20end\x20offset')['text'],_0xd792e9(0x1c8),Number[_0xd792e9(0x208)]),_0x3f2bed=_0x4bf38f[_0xd792e9(0x214)](_0x4f7532[_0xd792e9(0x1b6)])??_0x5bff08;if(_0x54e22b>_0x3f2bed||_0x4f7532[_0xd792e9(0x1b6)]===_0x8f443f[_0xd792e9(0x1b6)]&&_0x54e22b<=_0xfe3dd5)_0x2e7132=_0xd792e9(0x234);if(_0x4f7532[_0xd792e9(0x1b6)]<_0x8f443f['row']||_0x4f7532[_0xd792e9(0x1b6)]>_0x8f443f[_0xd792e9(0x1b6)]+0x1||_0x4f7532[_0xd792e9(0x1b6)]===_0x8f443f[_0xd792e9(0x1b6)]+0x1&&_0x54e22b!==0x0)_0x2e7132=_0xd792e9(0x1b7);}const _0x20f57b=chain(_0x4fe52d,_0xd792e9(0x1da),_0xd792e9(0x1e8),'blip');for(const _0x97b119 of _0x20f57b){if(_0x97b119[_0xd792e9(0x1e7)][_0xd792e9(0x210)])throw Error(_0xd792e9(0x22a));_0x7fcbc1({..._0x8f443f,'media':[_0x4c30f1(_0x2db23e,_0x97b119['attrs'][_0xd792e9(0x22e)],'image')],..._0x2e7132?{'error':_0x2e7132}:{}});}if(!_0x20f57b[_0xd792e9(0x1ac)])_0x7fcbc1({..._0x8f443f,'media':[],'error':_0xd792e9(0x198)});}}const _0x393c36=_0x195b60=>{const _0x519443=_0xd792e9,_0x162f6a=_0x5e3695(_0x3ae0e1(_0x32c262,_0x519443(0x1ce)));if(!matches(_0x162f6a,_0x519443(0x1d0)))throw Error(_0x519443(0x205));const _0x3675a8=integer(_0x195b60['attrs']['vm'],_0x519443(0x1a7));if(!_0x3675a8)throw Error(_0x519443(0x1ef));const _0x3d1f81=children(one(children(_0x162f6a,_0x519443(0x1d6)),_0x519443(0x1d6)),'bk')[_0x3675a8-0x1];if(!_0x3d1f81)throw Error(_0x519443(0x1e4));const _0x4e4f16=one(children(_0x3d1f81,'rc'),_0x519443(0x1ea)),_0x17808d=integer(_0x4e4f16[_0x519443(0x1e7)]['t'],_0x519443(0x1b8)),_0x301711=children(one(children(_0x162f6a,_0x519443(0x19f)),_0x519443(0x23b)),_0x519443(0x199))[_0x17808d-0x1];if(!_0x17808d||_0x301711?.[_0x519443(0x1e7)][_0x519443(0x1e3)]!==_0x519443(0x1cb))throw Error(_0x519443(0x23e));const _0x569026=one(children(_0x162f6a,_0x519443(0x1d4))['filter'](_0x3fdf42=>_0x3fdf42[_0x519443(0x1e7)][_0x519443(0x1e3)]===_0x519443(0x1cb)),_0x519443(0x242)),_0x120406=children(_0x569026,'bk')[integer(_0x4e4f16[_0x519443(0x1e7)]['v'],_0x519443(0x1e2))];if(!_0x120406)throw Error(_0x519443(0x217));const _0x59c34e=chain(_0x120406,_0x519443(0x1dd))['flatMap'](_0x122b7f=>children(_0x122b7f,_0x519443(0x236),SHEET))[_0x519443(0x1d8)](_0x6cebcb=>_0x6cebcb[_0x519443(0x1e7)][_0x519443(0x19d)]?.[_0x519443(0x1cd)]()===_0x519443(0x1f8)),_0x5c62a5=integer(one(_0x59c34e[_0x519443(0x21a)](_0xac1a8e=>children(_0xac1a8e,_0x519443(0x1a4))),_0x519443(0x215))[_0x519443(0x1e7)]['i'],'rich\x20value\x20index'),_0x284cdf=_0x5e3695(_0x3ae0e1(_0x32c262,_0x519443(0x1db)));if(!matches(_0x284cdf,_0x519443(0x203)))throw Error(_0x519443(0x1ed));const _0x3fbc52=children(_0x284cdf,'rv')[_0x5c62a5];if(!_0x3fbc52)throw Error(_0x519443(0x1ad));const _0x3cc094=_0x5e3695(_0x3ae0e1(_0x32c262,'rdRichValueStructure'));if(!matches(_0x3cc094,_0x519443(0x1d1)))throw Error('Unsupported\x20rich\x20structure\x20namespace.');const _0x4bb1a6=children(_0x3cc094,'s')[integer(_0x3fbc52[_0x519443(0x1e7)]['s'],_0x519443(0x1f0))];if(!_0x4bb1a6||_0x4bb1a6[_0x519443(0x1e7)]['t']!==_0x519443(0x1cc))throw Error(_0x519443(0x1f4));const _0x54428e=children(_0x4bb1a6,'k'),_0x38e1e7=_0x54428e[_0x519443(0x1bb)]((_0x5b6826,_0x2f3bd7)=>_0x5b6826[_0x519443(0x1e7)]['n']===_0x519443(0x202)?_0x2f3bd7:-0x1)[_0x519443(0x1d8)](_0x21eb19=>_0x21eb19>=0x0);if(_0x38e1e7[_0x519443(0x1ac)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x2a2e4b=children(_0x3fbc52,'v',RICH)[_0x38e1e7[0x0]];if(!_0x2a2e4b)throw Error(_0x519443(0x1a2));const _0x2227c1=_0x3ae0e1(_0x32c262,_0x519443(0x1bd)),_0x43ed46=_0x5e3695(_0x2227c1);if(!matches(_0x43ed46,_0x519443(0x1c2)))throw Error(_0x519443(0x216));const _0x29bf56=children(_0x43ed46,_0x519443(0x19e))[integer(_0x2a2e4b[_0x519443(0x1f2)],_0x519443(0x1c3))];if(!_0x29bf56)throw Error(_0x519443(0x1f6));return _0x4c30f1(_0x2227c1,_0x29bf56[_0x519443(0x1e7)][_0x519443(0x1f7)],'image');};let _0x1bb7aa;const _0x40ae5f=_0x1cfc90=>{const _0x25fd7a=_0xd792e9;if(!_0x1bb7aa){_0x1bb7aa=new Map();const _0x4aa8f3=_0xcc5412(_0x32c262)[_0x25fd7a(0x1d8)](_0x26c70a=>[...relationshipTypes('cellImage'),...relationshipTypes(_0x25fd7a(0x21c))]['includes'](_0x26c70a[_0x25fd7a(0x207)]));if(!_0x4aa8f3['length']&&_0x400f55[_0x25fd7a(0x1fb)](_0x25fd7a(0x19a)))_0x4aa8f3[_0x25fd7a(0x1d9)]({'id':'','type':'','target':_0x25fd7a(0x209)});if(_0x4aa8f3[_0x25fd7a(0x1ac)]!==0x1)throw Error(_0x25fd7a(0x1aa));const _0xf3e41c=_0x2f3205(_0x32c262,_0x4aa8f3[0x0]),_0x5d6203=_0x5e3695(_0xf3e41c);if(!matches(_0x5d6203,_0x25fd7a(0x21c)))throw Error(_0x25fd7a(0x20d));for(const _0x54201d of children(_0x5d6203,_0x25fd7a(0x222))){const _0x4b0cd5=one(chain(_0x54201d,_0x25fd7a(0x1da),_0x25fd7a(0x211),_0x25fd7a(0x228)),_0x25fd7a(0x1f9))['attrs'][_0x25fd7a(0x1e3)];if(!_0x4b0cd5||_0x1bb7aa[_0x25fd7a(0x1fb)](_0x4b0cd5))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x2dee9b=one(chain(_0x54201d,_0x25fd7a(0x1da),_0x25fd7a(0x1e8),'blip'),_0x25fd7a(0x1fe));if(_0x2dee9b[_0x25fd7a(0x1e7)][_0x25fd7a(0x210)])throw Error(_0x25fd7a(0x239));_0x1bb7aa[_0x25fd7a(0x1a5)](_0x4b0cd5,_0x4c30f1(_0xf3e41c,_0x2dee9b[_0x25fd7a(0x1e7)][_0x25fd7a(0x22e)],'image'));}}const _0x48eb70=_0x1bb7aa['get'](_0x1cfc90);if(!_0x48eb70)throw Error('Missing\x20WPS\x20image\x20ID:\x20'+_0x1cfc90+'.');return _0x48eb70;},_0xfb56de=new Set();for(const _0x296f05 of _0x74d6a8[_0xd792e9(0x21a)](_0x2d5397=>children(_0x2d5397,'c'))){const _0x35544d=/^([A-Z]+)([1-9]\d*)$/[_0xd792e9(0x233)](_0x296f05[_0xd792e9(0x1e7)]['r']??'');if(!_0x35544d)continue;let _0x393d17=0x0;for(const _0x3219fb of _0x35544d[0x1])_0x393d17=_0x393d17*0x1a+_0x3219fb['charCodeAt'](0x0)-0x40;if(!_0x2db3f9[_0xd792e9(0x1fb)](_0x393d17))continue;const _0x3a8f71=integer(_0x35544d[0x2],'image\x20cell\x20row');if(_0xfb56de['has'](_0x296f05[_0xd792e9(0x1e7)]['r']))throw Error(_0xd792e9(0x23a));_0xfb56de[_0xd792e9(0x1eb)](_0x296f05[_0xd792e9(0x1e7)]['r']);const _0x4a3cf2=children(_0x296f05,'f');if(!_0x296f05[_0xd792e9(0x1e7)]['vm']&&!_0x4a3cf2[_0xd792e9(0x1ac)])continue;try{if(_0x3a8f71<0x1||_0x393d17>0x100)throw Error(_0xd792e9(0x230));let _0x1996a1;if(_0x296f05[_0xd792e9(0x1e7)]['vm']){if(_0x4a3cf2[_0xd792e9(0x1ac)])throw Error(_0xd792e9(0x1a1));if(_0x296f05['attrs']['t']!=='e'||children(_0x296f05,'v')[_0xd792e9(0x1ac)]!==0x1||children(_0x296f05,'v')[0x0][_0xd792e9(0x1f2)]!=='#VALUE!')throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x1996a1=_0x393c36(_0x296f05);}else{const _0xaa0c9f=one(_0x4a3cf2,'image\x20formula');if(_0xaa0c9f['attrs']['t']===_0xd792e9(0x220)||_0xaa0c9f[_0xd792e9(0x1e7)]['si'])throw Error(_0xd792e9(0x23c));const _0x415c76=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0xd792e9(0x233)](_0xaa0c9f['text']);if(!_0x415c76)throw Error('Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.');_0x1996a1=_0x40ae5f(_0x415c76[0x1][_0xd792e9(0x221)](/""/g,'\x22'));}_0x7fcbc1({'row':_0x3a8f71,'col':_0x393d17,'media':[_0x1996a1],'nativeCell':!![]});}catch(_0x1d003c){_0x7fcbc1({'row':_0x3a8f71,'col':_0x393d17,'media':[],'nativeCell':!![],'error':_0x1d003c[_0xd792e9(0x1e5)]});}}return _0x1fecec;}
|