@lovrabet/lovrabet-cli 2.3.9-beta.1 → 2.3.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -3
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +5 -6
- 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.d.ts +3 -13
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.d.ts +2 -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.d.ts +2 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +31 -132
- package/skills/lovrabet/guides/app-resolution.md +39 -139
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -3
- package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +12 -27
- package/skills/lovrabet/guides/troubleshooting.md +11 -31
- package/skills/lovrabet/references/dataset-discovery-workflow.md +10 -48
- package/skills/lovrabet/references/instant-api-workflow.md +4 -11
- package/skills/lovrabet/references/lovrabet-app.md +6 -33
- package/skills/lovrabet/references/lovrabet-auth.md +16 -9
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-config.md +49 -31
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +2 -2
- package/skills/lovrabet/references/lovrabet-service-tree.md +11 -9
- package/skills/lovrabet/references/lovrabet-sql-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-workspace.md +12 -11
- package/skills/lovrabet.manifest.json +3 -3
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd3e391,_0x4338c8){const _0x18577c=a139_0x4f4c,_0x11654b=_0xd3e391();while(!![]){try{const _0x4d4d58=-parseInt(_0x18577c(0x10b))/0x1*(-parseInt(_0x18577c(0x113))/0x2)+-parseInt(_0x18577c(0x115))/0x3+-parseInt(_0x18577c(0x109))/0x4+-parseInt(_0x18577c(0xfe))/0x5+parseInt(_0x18577c(0x11f))/0x6*(-parseInt(_0x18577c(0x101))/0x7)+parseInt(_0x18577c(0x111))/0x8+-parseInt(_0x18577c(0x11a))/0x9*(-parseInt(_0x18577c(0x11c))/0xa);if(_0x4d4d58===_0x4338c8)break;else _0x11654b['push'](_0x11654b['shift']());}catch(_0x326a58){_0x11654b['push'](_0x11654b['shift']());}}}(a139_0x1560,0xe33ce));function a139_0x1560(){const _0x410e50=['riskLevel','506200vZAAkZ','format','1762422uIyCvO','stringify','3052608UoLgqK','definition','reason','signal','aborted','3819582rRWoEJ','dry-run','80uQCelP','message','isNonInteractive','630vUoOfy','4540490tjhLDv','result','risk','1477chPJsI','execute','Lovrabet\x20invocation\x20aborted.','present','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','args','data','rawFlags','5844460eZgFJx','yes','1dGzDDM','dryRun','high-risk-write','command','write'];a139_0x1560=function(){return _0x410e50;};return a139_0x1560();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a139_0x4f4c(_0x2f3218,_0x12d89c){_0x2f3218=_0x2f3218-0xfe;const _0x1560d5=a139_0x1560();let _0x4f4c45=_0x1560d5[_0x2f3218];return _0x4f4c45;}import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x298885,command:_0x53e6ca,risk:_0x137bde,dryRun:_0x56dfeb}){const _0x3eb231=a139_0x4f4c;return JSON[_0x3eb231(0x114)]({'ok':_0x298885['ok'],'command':_0x53e6ca,'risk':_0x137bde,..._0x56dfeb?{'dryRun':!![]}:{},..._0x298885[_0x3eb231(0x107)]!==undefined?{'data':_0x298885['data']}:{},..._0x298885[_0x3eb231(0x11d)]?{'message':_0x298885['message']}:{}});}};export async function invokeLovrabet(_0x33c7e1,_0x234869){const _0x88e958=a139_0x4f4c;throwIfAborted(_0x234869[_0x88e958(0x118)]);const _0x3497a5=await resolveLovrabetInvocation(_0x33c7e1),_0x35805b=canonicalLovrabetOperation(_0x3497a5[_0x88e958(0x116)]);return await confirmWriteBeforeQueue(_0x3497a5[_0x88e958(0x116)],_0x3497a5[_0x88e958(0x108)],_0x35805b,_0x234869),runSerialized(async()=>{const _0x4a08b6=_0x88e958;throwIfAborted(_0x234869[_0x4a08b6(0x118)]);const _0xebc4d2={},_0x479acc=buildConfigFromFlags(_0x3497a5[_0x4a08b6(0x108)]);await initGlobalEnvironment(_0x479acc);const _0x49a3a9=createPipelineEnv(_0x479acc,{..._0x3497a5[_0x4a08b6(0x108)],'yes':_0x3497a5[_0x4a08b6(0x116)][_0x4a08b6(0x100)]==='high-risk-write'?!![]:_0x3497a5[_0x4a08b6(0x108)][_0x4a08b6(0x10a)],'nonInteractive':!![]});_0x49a3a9['args']=_0x3497a5[_0x4a08b6(0x106)],_0x49a3a9[_0x4a08b6(0x11e)]=!![],_0x49a3a9[_0x4a08b6(0x110)]=_0x4a08b6(0x10d);const _0x5bda19=withAbortSignal(_0x3497a5[_0x4a08b6(0x116)],_0x234869[_0x4a08b6(0x118)]),_0x5d98ae=createLovrabetRunnerAdapter({'formatOutput'(_0x1f16ac,_0x2773c7){const _0x580d25=_0x4a08b6;_0xebc4d2[_0x580d25(0xff)]=_0x1f16ac,_0xebc4d2[_0x580d25(0x10e)]=_0x2773c7[_0x580d25(0x10e)],_0xebc4d2[_0x580d25(0x100)]=_0x2773c7['risk'],_0xebc4d2[_0x580d25(0x112)]=_0x2773c7['format'],_0xebc4d2[_0x580d25(0x10c)]=_0x2773c7[_0x580d25(0x10c)]===!![];},async 'confirmHighRisk'(){const _0x15b46f=_0x4a08b6;throw new Error(_0x15b46f(0x105));}});try{await runCommand(_0x5bda19,_0x49a3a9,_0x5d98ae);if(!_0xebc4d2[_0x4a08b6(0xff)]||!_0xebc4d2[_0x4a08b6(0x10e)]||!_0xebc4d2[_0x4a08b6(0x100)]||!_0xebc4d2[_0x4a08b6(0x112)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x4f3cda=_0x234869['presentation']??defaultPresentation,_0x7c7450=_0xebc4d2[_0x4a08b6(0x10c)]===!![],_0x4b6f08={'result':_0xebc4d2[_0x4a08b6(0xff)],'command':_0xebc4d2[_0x4a08b6(0x10e)],'operation':_0x35805b,'risk':_0xebc4d2[_0x4a08b6(0x100)],'format':_0xebc4d2['format'],'dryRun':_0x7c7450},_0x59e683=createLovrabetWriteMetadata(_0x3497a5[_0x4a08b6(0x116)],_0x35805b,_0xebc4d2['result'],_0x7c7450);let _0x3b1d4e;try{_0x3b1d4e=await _0x4f3cda[_0x4a08b6(0x104)](_0x4b6f08);}catch(_0x50adec){if(!_0x59e683||_0x4f3cda===defaultPresentation)throw _0x50adec;_0x3b1d4e=await defaultPresentation[_0x4a08b6(0x104)](_0x4b6f08);}return{'operation':_0x35805b,'risk':_0xebc4d2['risk'],'mode':_0x7c7450?_0x4a08b6(0x11b):_0x4a08b6(0x102),'result':_0xebc4d2[_0x4a08b6(0xff)],'output':_0x3b1d4e,..._0x59e683?{'metadata':_0x59e683}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1fc833,_0x1128e5,_0x5064fe,_0x4d6c49){const _0x27c3fd=a139_0x4f4c;if(_0x1128e5[_0x27c3fd(0x10c)]===!![]||_0x1fc833['risk']!==_0x27c3fd(0x10f)&&_0x1fc833[_0x27c3fd(0x100)]!==_0x27c3fd(0x10d))return;await _0x4d6c49['confirmation']['confirm'](buildLovrabetConfirmationRequest(_0x1fc833,_0x5064fe,_0x4d6c49['signal']));}function withAbortSignal(_0x4dcd20,_0x46a889){return{..._0x4dcd20,async 'execute'(_0x2ba1cf){const _0xaa4a4e=a139_0x4f4c;return throwIfAborted(_0x46a889),_0x4dcd20[_0xaa4a4e(0x102)]({..._0x2ba1cf,'signal':_0x46a889});}};}function throwIfAborted(_0x43f656){const _0x1dd9fc=a139_0x4f4c;if(_0x43f656?.[_0x1dd9fc(0x119)])throw _0x43f656[_0x1dd9fc(0x117)]instanceof Error?_0x43f656['reason']:new DOMException(_0x1dd9fc(0x103),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a140_0x2062bf=a140_0x26e6;(function(_0x3d60e9,_0x393202){const _0x291381=a140_0x26e6,_0x334a8c=_0x3d60e9();while(!![]){try{const _0x13d86b=parseInt(_0x291381(0x164))/0x1+-parseInt(_0x291381(0x166))/0x2+parseInt(_0x291381(0x168))/0x3+-parseInt(_0x291381(0x169))/0x4+-parseInt(_0x291381(0x161))/0x5+parseInt(_0x291381(0x163))/0x6+parseInt(_0x291381(0x165))/0x7*(parseInt(_0x291381(0x162))/0x8);if(_0x13d86b===_0x393202)break;else _0x334a8c['push'](_0x334a8c['shift']());}catch(_0x1d0234){_0x334a8c['push'](_0x334a8c['shift']());}}}(a140_0x2813,0x29222));function a140_0x2813(){const _0x181978=['830919xlGkYJ','334536oUyzZJ','1642380sAEGpX','104TChfIU','964356CRtxMH','16684PAMozl','210931VHqYWX','531040OVajhi','resolve'];a140_0x2813=function(){return _0x181978;};return a140_0x2813();}let tail=Promise[a140_0x2062bf(0x167)]();function a140_0x26e6(_0x58e808,_0x49ad40){_0x58e808=_0x58e808-0x161;const _0x281358=a140_0x2813();let _0x26e6d0=_0x281358[_0x58e808];return _0x26e6d0;}export async function runSerialized(_0x7fd3d4){const _0x407038=tail;let _0x1b7651;tail=new Promise(_0x17f29a=>{_0x1b7651=_0x17f29a;}),await _0x407038['catch'](()=>undefined);try{return await _0x7fd3d4();}finally{_0x1b7651();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x456d2,_0x18aef7){const _0x2eaf22=a141_0x3409,_0x1d43fe=_0x456d2();while(!![]){try{const _0x2b6bee=parseInt(_0x2eaf22(0xd6))/0x1*(parseInt(_0x2eaf22(0xea))/0x2)+parseInt(_0x2eaf22(0xe0))/0x3+-parseInt(_0x2eaf22(0xe4))/0x4*(-parseInt(_0x2eaf22(0xd9))/0x5)+-parseInt(_0x2eaf22(0xec))/0x6*(parseInt(_0x2eaf22(0xd7))/0x7)+parseInt(_0x2eaf22(0xe8))/0x8+parseInt(_0x2eaf22(0xda))/0x9*(-parseInt(_0x2eaf22(0xe6))/0xa)+-parseInt(_0x2eaf22(0xe7))/0xb;if(_0x2b6bee===_0x18aef7)break;else _0x1d43fe['push'](_0x1d43fe['shift']());}catch(_0x31f97d){_0x1d43fe['push'](_0x1d43fe['shift']());}}}(a141_0x53d7,0x5ef6d));function a141_0x53d7(){const _0x3812ef=['117vkPqUy','message','args','validation','../framework/preparse.js','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','2134203kkMOUa','../commands/registry.js','join','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','700072BlGyJx','flatMap','497010NUJUhh','5629272WVZWjZ','4311368zfAsXt','flags','124gtWBKL','defaultCommand','12pJLfbq','unknownCommand','input','5991DAEKlz','2099930pJXBjE','hint','15rUXqKL'];a141_0x53d7=function(){return _0x3812ef;};return a141_0x53d7();}import a141_0x1b9da8 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a141_0x3409(_0x2c1deb,_0x86d9f3){_0x2c1deb=_0x2c1deb-0xd4;const _0x53d708=a141_0x53d7();let _0x340936=_0x53d708[_0x2c1deb];return _0x340936;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x5728f3){const _0x34a08d=a141_0x3409,_0x535734=a141_0x1b9da8('',{'importMeta':import.meta,'argv':_0x5728f3,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4f4c03=[..._0x535734[_0x34a08d(0xd5)]],_0x4b3561=_0x535734[_0x34a08d(0xe9)];await correctFlags(_0x4b3561);const _0x225e9f=_0x4f4c03[0x0];if(!_0x225e9f)throw CliErrors[_0x34a08d(0xdd)](_0x34a08d(0xdf));const _0x28212c=resolveRemovedCommand(_0x225e9f,_0x4f4c03[0x1]);if(_0x28212c)throw CliErrors['validation'](_0x28212c[_0x34a08d(0xdb)],_0x28212c[_0x34a08d(0xd8)]);if(!isKnownService(_0x225e9f)){const _0x4ce6da=resolveDynamicServiceCommand(_0x4f4c03,_0x4b3561);if(!_0x4ce6da)throw CliErrors[_0x34a08d(0xd4)](_0x4f4c03[_0x34a08d(0xe2)]('\x20'));return Object['assign'](_0x4b3561,_0x4ce6da['flags']),{'definition':_0x4ce6da['definition'],'rawFlags':_0x4b3561,'args':_0x4ce6da[_0x34a08d(0xdc)]};}const _0x938731=getServiceEntry(_0x225e9f),_0x5417b7=_0x4f4c03[0x1]||_0x938731[_0x34a08d(0xeb)];if(!_0x5417b7)throw CliErrors[_0x34a08d(0xdd)](_0x34a08d(0xe3)+_0x225e9f+'\x22.');const _0x4279ab=findDefinition(_0x225e9f,_0x5417b7);if(!_0x4279ab)throw CliErrors['unknownCommand'](_0x225e9f+'\x20'+_0x5417b7);return{'definition':_0x4279ab,'rawFlags':_0x4b3561,'args':_0x4f4c03['slice'](0x2)};}async function correctFlags(_0x4922f1){const _0x510aa9=a141_0x3409;try{const {correctFlags:_0x140e91}=await import(_0x510aa9(0xde)),{getAllDefinitions:_0x48f2e9}=await import(_0x510aa9(0xe1)),_0x1368b5=_0x48f2e9()[_0x510aa9(0xe5)](_0x3662c9=>_0x3662c9[_0x510aa9(0xe9)]??[]),_0xa32d37=_0x140e91(_0x4922f1,_0x1368b5);Object['assign'](_0x4922f1,_0xa32d37[_0x510aa9(0xe9)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a143_0x4952(){const _0x3c0d1c=['report','12077830hkKiMa','4482207yzQRUi','Incomplete\x20readback.','status','warnings','isSafeInteger','31ywEMeY','write','datasetCode','appCode','maxBatchBytes','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','Excel\x20contains\x20no\x20valid\x20data\x20rows.','unknown','reduce','actorId','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','831297gffOgj','Import\x20generated\x20ID\x20conflict.','Import\x20generated\x20ID\x20collision.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','isInteger','8rwlqhf','sort','includes','6267933vUNIyO','checkpoint','ids','values','hasOwn','keys','runtimeDomain','count','length','some','reconcileImageConflicts','hex','elapsedMs','taskId','pending','message','parse','schemaFingerprint','strategy','map','20212812mrZfih','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','maxBatchSize','get','rowNumber','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','completed','mappingHash','version','conflict','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','errors','now','5Eqwrsi','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','batches','batchSize','rowIndexes','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','sheet','8dRBzxG','11WeNMjQ','string','emptyRows','3602xOdkKv','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','readTask','succeeded','onCheckpointReady','rows','resume','size','has','importId','imageFields','Invalid\x20import\x20batch\x20size.','Excel\x20row\x20','4997046dgsauu','isArray','flatMap','utf8','code','schemaVersion','unsent','fileHash','push'];a143_0x4952=function(){return _0x3c0d1c;};return a143_0x4952();}const a143_0x3376fb=a143_0x36db;(function(_0x5c8f95,_0x15e33b){const _0x598489=a143_0x36db,_0x438a98=_0x5c8f95();while(!![]){try{const _0x30f615=parseInt(_0x598489(0xac))/0x1*(parseInt(_0x598489(0x8f))/0x2)+parseInt(_0x598489(0xb8))/0x3*(parseInt(_0x598489(0xbd))/0x4)+-parseInt(_0x598489(0x84))/0x5*(parseInt(_0x598489(0x9c))/0x6)+parseInt(_0x598489(0xc0))/0x7+parseInt(_0x598489(0x8b))/0x8*(parseInt(_0x598489(0xa7))/0x9)+-parseInt(_0x598489(0xa6))/0xa*(-parseInt(_0x598489(0x8c))/0xb)+-parseInt(_0x598489(0xd4))/0xc;if(_0x30f615===_0x15e33b)break;else _0x438a98['push'](_0x438a98['shift']());}catch(_0x49453d){_0x438a98['push'](_0x438a98['shift']());}}}(a143_0x4952,0xa96fc));import{randomBytes,randomUUID}from'node:crypto';function a143_0x36db(_0x3cc604,_0xea4d0){_0x3cc604=_0x3cc604-0x7a;const _0x49521b=a143_0x4952();let _0x36dbe3=_0x49521b[_0x3cc604];return _0x36dbe3;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x59dd00=>typeof _0x59dd00==='number'&&Number[a143_0x3376fb(0xab)](_0x59dd00)&&_0x59dd00>0x0;export async function runAutoIdExcelImport(_0x5330a1){const _0x299424=a143_0x3376fb,_0x5db4de={..._0x5330a1,'checkpoint':await resolveImportOutputPath(_0x5330a1[_0x299424(0xc1)]),'report':await resolveImportOutputPath(_0x5330a1[_0x299424(0xa5)])},{manifest:_0x24e4de,contract:_0x19ae1f,api:_0x3ebe19}=_0x5db4de;assertImportContract(_0x19ae1f,_0x5db4de[_0x299424(0xaf)],_0x5db4de[_0x299424(0xae)]);if(_0x19ae1f[_0x299424(0xa1)]!==0x2||!_0x3ebe19[_0x299424(0x91)])throw Error(_0x299424(0x89));if(_0x24e4de[_0x299424(0x82)][_0x299424(0xc8)])throw Error(_0x299424(0xb7));if(!_0x24e4de[_0x299424(0x94)]['length'])throw Error(_0x299424(0xb2));if(!Number[_0x299424(0xbc)](_0x5db4de[_0x299424(0x87)])||_0x5db4de['batchSize']<0x1||_0x5db4de[_0x299424(0x87)]>_0x19ae1f[_0x299424(0xd6)])throw Error(_0x299424(0x9a));assertImportPaths(_0x5db4de[_0x299424(0xc1)],_0x5db4de[_0x299424(0xa5)]);if(_0x24e4de[_0x299424(0x94)][_0x299424(0xc9)](_0x306226=>Object[_0x299424(0xc4)](_0x306226['values'],'id')))throw Error(_0x299424(0xbb));const _0x4a0efb=(_0x41f907,_0x444f8b)=>Buffer['byteLength'](JSON['stringify']({'schemaFingerprint':_0x19ae1f[_0x299424(0xd1)],'taskId':_0x444f8b,'items':_0x41f907[_0x299424(0xd3)](_0x302ab6=>_0x24e4de[_0x299424(0x94)][_0x302ab6][_0x299424(0xc3)])}),_0x299424(0x9f)),_0x447933=[];let _0x232042=[];for(let _0x3237f8=0x0;_0x3237f8<_0x24e4de[_0x299424(0x94)][_0x299424(0xc8)];_0x3237f8++){if(_0x4a0efb([_0x3237f8],0x2**0x34)>_0x19ae1f[_0x299424(0xb0)])throw Error(_0x299424(0x9b)+_0x24e4de[_0x299424(0x94)][_0x3237f8][_0x299424(0x7a)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x232042[_0x299424(0xc8)]&&(_0x232042[_0x299424(0xc8)]===_0x5db4de[_0x299424(0x87)]||_0x4a0efb([..._0x232042,_0x3237f8],0x2**0x34)>_0x19ae1f[_0x299424(0xb0)])&&(_0x447933[_0x299424(0xa4)](_0x232042),_0x232042=[]),_0x232042['push'](_0x3237f8);}if(_0x232042[_0x299424(0xc8)])_0x447933['push'](_0x232042);const _0x556ed6={'appCode':_0x5db4de[_0x299424(0xaf)],'datasetCode':_0x5db4de[_0x299424(0xae)],'runtimeDomain':_0x5db4de[_0x299424(0xc6)],'actorId':_0x19ae1f[_0x299424(0xb5)],'fileHash':_0x24e4de[_0x299424(0xa3)],'mappingHash':_0x24e4de[_0x299424(0x7e)],'schemaHash':_0x24e4de['schemaHash'],'remoteSchemaHash':_0x19ae1f['schemaFingerprint'],'batchSize':_0x5db4de[_0x299424(0x87)],'maxBatchBytes':_0x19ae1f[_0x299424(0xb0)],'sheet':_0x24e4de[_0x299424(0x8a)],'strategy':_0x19ae1f[_0x299424(0xd2)]},_0x5be83d=await acquireLock(_0x5db4de[_0x299424(0xc1)]);let _0x35d549;const _0x3b1604=Date[_0x299424(0x83)]();let _0x1a8eb8=0x0;const _0x3b3f6e=[],_0x323432=_0x5b25fb=>_0x35d549?.[_0x299424(0x86)]['filter'](_0x39c3a2=>_0x39c3a2[_0x299424(0xa9)]===_0x5b25fb)[_0x299424(0xb4)]((_0x271476,_0x3a09b7)=>_0x271476+_0x3a09b7[_0x299424(0x88)][_0x299424(0xc8)],0x0)??0x0,_0x354c9c=()=>({'importId':_0x35d549?.[_0x299424(0x98)],'sourceRows':_0x24e4de[_0x299424(0x94)][_0x299424(0xc8)],'emptyRows':_0x24e4de[_0x299424(0x8e)][_0x299424(0xc8)],'succeeded':_0x323432(_0x299424(0x92)),'unknown':_0x323432('pending'),'conflicts':_0x323432(_0x299424(0x80)),'notAttempted':_0x323432(_0x299424(0xa2)),'batches':_0x1a8eb8,'batchResults':_0x3b3f6e,'elapsedMs':Date['now']()-_0x3b1604,'checkpoint':_0x5db4de[_0x299424(0xc1)],'report':_0x5db4de[_0x299424(0xa5)],'warnings':_0x24e4de[_0x299424(0xaa)]});try{if(_0x5db4de[_0x299424(0x95)]){try{_0x35d549=JSON[_0x299424(0xd0)](await readFile(_0x5db4de[_0x299424(0xc1)],_0x299424(0x9f)));}catch{throw Error('Cannot\x20read\x20the\x20import\x20checkpoint.');}if(!_0x35d549||_0x35d549[_0x299424(0x7f)]!==0x2||typeof _0x35d549[_0x299424(0x98)]!==_0x299424(0x8d)||!_0x35d549[_0x299424(0x98)]||canonical(_0x35d549['binding'])!==canonical(_0x556ed6)||!Array[_0x299424(0x9d)](_0x35d549[_0x299424(0x86)])||_0x35d549[_0x299424(0x86)][_0x299424(0xc8)]!==_0x447933[_0x299424(0xc8)]||new Set(_0x35d549[_0x299424(0x86)][_0x299424(0xd3)](_0x7c670=>_0x7c670[_0x299424(0xcd)]))[_0x299424(0x96)]!==_0x447933['length']||_0x35d549[_0x299424(0x86)]['some']((_0x2bd325,_0x4d3d28)=>!validId(_0x2bd325[_0x299424(0xcd)])||_0x2bd325[_0x299424(0xcd)]>0x2**0x34||canonical(_0x2bd325['rowIndexes'])!==canonical(_0x447933[_0x4d3d28])||![_0x299424(0xa2),'pending',_0x299424(0x92),_0x299424(0x80)]['includes'](_0x2bd325[_0x299424(0xa9)])||!Array[_0x299424(0x9d)](_0x2bd325[_0x299424(0xc2)])||_0x2bd325[_0x299424(0xc2)][_0x299424(0xc9)](_0x155021=>!validId(_0x155021))||new Set(_0x2bd325['ids'])[_0x299424(0x96)]!==_0x2bd325[_0x299424(0xc2)][_0x299424(0xc8)]||_0x2bd325[_0x299424(0xc2)][_0x299424(0xc8)]!==0x0&&_0x2bd325['ids'][_0x299424(0xc8)]!==_0x2bd325[_0x299424(0x88)]['length']||_0x2bd325[_0x299424(0xa9)]===_0x299424(0x92)&&_0x2bd325[_0x299424(0xc2)][_0x299424(0xc8)]!==_0x2bd325[_0x299424(0x88)][_0x299424(0xc8)]||_0x2bd325['status']===_0x299424(0xa2)&&_0x2bd325[_0x299424(0xc2)][_0x299424(0xc8)]!==0x0))throw Error(_0x299424(0x7c));const _0x297697=_0x35d549[_0x299424(0x86)]['flatMap'](_0x740225=>_0x740225[_0x299424(0xc2)]);if(new Set(_0x297697)['size']!==_0x297697[_0x299424(0xc8)])throw Error(_0x299424(0xd5));}else{try{await lstat(_0x5db4de[_0x299424(0xc1)]);throw Error(_0x299424(0x7b));}catch(_0x4a75ef){if(_0x4a75ef[_0x299424(0xa0)]!=='ENOENT')throw _0x4a75ef;}const _0x56bf5c=new Set();_0x35d549={'version':0x2,'importId':randomUUID(),'binding':_0x556ed6,'batches':_0x447933[_0x299424(0xd3)](_0x3ecdf7=>{const _0x463353=_0x299424;let _0x41e783;do{_0x41e783=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x463353(0xcb)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x56bf5c[_0x463353(0x97)](_0x41e783));return _0x56bf5c['add'](_0x41e783),{'taskId':_0x41e783,'rowIndexes':_0x3ecdf7,'ids':[],'status':_0x463353(0xa2)};})},await saveImportJson(_0x5db4de[_0x299424(0xc1)],_0x35d549);}await _0x5db4de[_0x299424(0x93)]?.();const _0x4651fd=_0x35d549,_0x14b71d=async(_0x2f0a49,_0x24974d)=>{const _0x4506c0=_0x299424;_0x2f0a49[_0x4506c0(0xa9)]=_0x4506c0(0x80),await saveImportJson(_0x5db4de[_0x4506c0(0xc1)],_0x4651fd);throw Error(_0x24974d);},_0x57133e=async _0x4b390a=>{const _0x5f1127=_0x299424;let _0x331b14=await _0x3ebe19['readTask'](_0x4b390a[_0x5f1127(0xcd)]);if(!Array[_0x5f1127(0x9d)](_0x331b14))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x4b390a['status']==='unsent'&&_0x331b14[_0x5f1127(0xc8)])return _0x14b71d(_0x4b390a,_0x5f1127(0xb6));if(!_0x331b14['length']){if(_0x4b390a[_0x5f1127(0xa9)]==='succeeded'||_0x4b390a[_0x5f1127(0xc2)][_0x5f1127(0xc8)])return _0x14b71d(_0x4b390a,_0x5f1127(0xb1));return![];}if(_0x331b14[_0x5f1127(0xc8)]!==_0x4b390a['rowIndexes'][_0x5f1127(0xc8)])return _0x14b71d(_0x4b390a,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x19f0be=_0x331b14['map'](_0x30d0a7=>_0x30d0a7?.['id']);if(_0x19f0be['some'](_0x32041f=>!validId(_0x32041f)))return _0x14b71d(_0x4b390a,'Import\x20generated\x20ID\x20conflict.');if(new Set(_0x19f0be)['size']!==_0x19f0be['length'])return _0x14b71d(_0x4b390a,_0x5f1127(0xb9));const _0xf0af16=new Map(_0x331b14[_0x5f1127(0xd3)](_0x424386=>[_0x424386['id'],_0x424386])),_0x317cb7=_0x4b390a[_0x5f1127(0xc2)]['length']?[..._0x4b390a[_0x5f1127(0xc2)]]:[..._0x19f0be][_0x5f1127(0xbe)]((_0x5b2a8c,_0x4ab5c4)=>_0x5b2a8c-_0x4ab5c4);if(_0x317cb7[_0x5f1127(0xc9)](_0x4bf5d5=>!validId(_0x4bf5d5))||_0x317cb7[_0x5f1127(0xc9)]((_0x26a8b8,_0x25d5ea)=>_0x25d5ea>0x0&&_0x26a8b8<=_0x317cb7[_0x25d5ea-0x1])||_0x317cb7[_0x5f1127(0xc9)](_0x1b8f9d=>!_0xf0af16[_0x5f1127(0x97)](_0x1b8f9d)))return _0x14b71d(_0x4b390a,_0x5f1127(0xb9));_0x331b14=_0x317cb7[_0x5f1127(0xd3)](_0x14b10a=>_0xf0af16[_0x5f1127(0xd7)](_0x14b10a));const _0x36f4f8=new Set(_0x4651fd[_0x5f1127(0x86)]['filter'](_0xfc8428=>_0xfc8428!==_0x4b390a)[_0x5f1127(0x9e)](_0x23543d=>_0x23543d[_0x5f1127(0xc2)]));if(_0x317cb7[_0x5f1127(0xc9)](_0x36db64=>_0x36f4f8[_0x5f1127(0x97)](_0x36db64)))return _0x14b71d(_0x4b390a,_0x5f1127(0xba));for(let _0x37a1c7=0x0;_0x37a1c7<_0x331b14[_0x5f1127(0xc8)];_0x37a1c7++){const _0x2b8148=_0x24e4de[_0x5f1127(0x94)][_0x4b390a[_0x5f1127(0x88)][_0x37a1c7]][_0x5f1127(0xc3)];if(Object[_0x5f1127(0xc5)](_0x2b8148)[_0x5f1127(0xc9)](_0x5637c3=>!sameImportValue(_0x2b8148[_0x5637c3],_0x331b14[_0x37a1c7][_0x5637c3],_0x24e4de[_0x5f1127(0x99)]?.[_0x5f1127(0xbf)](_0x5637c3)&&!_0x24e4de['uploadFields']?.['includes'](_0x5637c3))))return _0x14b71d(_0x4b390a,_0x5f1127(0x85)+_0x24e4de[_0x5f1127(0x94)][_0x4b390a['rowIndexes'][_0x37a1c7]]['rowNumber']+'.');}return _0x4b390a[_0x5f1127(0xc2)]=_0x317cb7,_0x4b390a[_0x5f1127(0xa9)]=_0x5f1127(0x92),await saveImportJson(_0x5db4de['checkpoint'],_0x4651fd),!![];};if(_0x4651fd[_0x299424(0x86)][_0x299424(0xc9)](_0x52a820=>_0x52a820['status']===_0x299424(0x80)&&!(_0x5db4de[_0x299424(0x95)]&&_0x5db4de[_0x299424(0xca)]&&_0x24e4de[_0x299424(0x99)]?.[_0x299424(0xc8)]&&_0x52a820[_0x299424(0xc2)][_0x299424(0xc8)]===_0x52a820[_0x299424(0x88)][_0x299424(0xc8)])))throw Error(_0x299424(0x81));if(_0x5db4de[_0x299424(0x95)]){for(const _0x3f3b39 of _0x4651fd[_0x299424(0x86)])await _0x57133e(_0x3f3b39);}for(const _0x59064b of _0x4651fd[_0x299424(0x86)]){if(_0x59064b[_0x299424(0xa9)]===_0x299424(0x92))continue;if(!_0x5db4de[_0x299424(0x95)])await _0x57133e(_0x59064b);_0x59064b['status']=_0x299424(0xce),await saveImportJson(_0x5db4de[_0x299424(0xc1)],_0x4651fd),_0x1a8eb8++;const _0x471caa=_0x59064b['rowIndexes'][_0x299424(0xd3)](_0x503769=>_0x24e4de[_0x299424(0x94)][_0x503769][_0x299424(0xc3)]),_0x498cb4=Date[_0x299424(0x83)](),_0xc5f630={'batch':_0x1a8eb8,'rowStart':_0x24e4de['rows'][_0x59064b[_0x299424(0x88)][0x0]][_0x299424(0x7a)],'rowEnd':_0x24e4de['rows'][_0x59064b[_0x299424(0x88)]['at'](-0x1)]['rowNumber'],'count':_0x471caa['length'],'bytes':_0x4a0efb(_0x59064b[_0x299424(0x88)],_0x59064b['taskId']),'elapsedMs':0x0,'status':'unknown'};_0x3b3f6e[_0x299424(0xa4)](_0xc5f630);try{const _0x43a25b=await _0x3ebe19[_0x299424(0xad)](_0x471caa,_0x59064b[_0x299424(0xcd)]);if(!_0x43a25b||_0x43a25b[_0x299424(0xc7)]!==_0x471caa[_0x299424(0xc8)]||!Array[_0x299424(0x9d)](_0x43a25b[_0x299424(0xc2)])||_0x43a25b[_0x299424(0xc2)][_0x299424(0xc8)]!==_0x471caa[_0x299424(0xc8)]||_0x43a25b[_0x299424(0xc2)]['some'](_0xf4cbd4=>!validId(_0xf4cbd4))||new Set(_0x43a25b[_0x299424(0xc2)])['size']!==_0x43a25b[_0x299424(0xc2)][_0x299424(0xc8)])throw Error('Invalid\x20write\x20result.');_0x59064b['ids']=_0x43a25b[_0x299424(0xc2)],await saveImportJson(_0x5db4de[_0x299424(0xc1)],_0x4651fd);if(!await _0x57133e(_0x59064b))throw Error(_0x299424(0xa8));}catch(_0x12918f){if(_0x59064b[_0x299424(0xa9)]===_0x299424(0x80))throw _0x12918f;try{await _0x57133e(_0x59064b);}catch(_0xd7e60c){if(_0x59064b[_0x299424(0xa9)]===_0x299424(0x80))throw _0xd7e60c;}if(_0x59064b[_0x299424(0xa9)]!=='succeeded')throw Error(_0x299424(0x90));}finally{_0xc5f630[_0x299424(0xcc)]=Date[_0x299424(0x83)]()-_0x498cb4,_0xc5f630['status']=_0x59064b['status']===_0x299424(0x92)?_0x299424(0x92):_0x59064b[_0x299424(0xa9)]===_0x299424(0x80)?_0x299424(0x80):_0x299424(0xb3);}}const _0x41768e={'status':_0x299424(0x7d),..._0x354c9c()};return await saveImportJson(_0x5db4de['report'],_0x41768e),_0x41768e;}catch(_0x1ec3f9){if(_0x35d549)await saveImportJson(_0x5db4de['report'],{'status':'incomplete',..._0x354c9c(),'message':_0x1ec3f9[_0x299424(0xcf)]});throw _0x1ec3f9;}finally{await _0x5be83d();}}
|
|
1
|
+
function a143_0x1ad0(_0x4b30ce,_0x400872){_0x4b30ce=_0x4b30ce-0x1f1;const _0x2e279b=a143_0x2e27();let _0x1ad049=_0x2e279b[_0x4b30ce];return _0x1ad049;}(function(_0x417ce5,_0x196fba){const _0x14d111=a143_0x1ad0,_0x414232=_0x417ce5();while(!![]){try{const _0x2649bf=-parseInt(_0x14d111(0x1fc))/0x1*(parseInt(_0x14d111(0x239))/0x2)+-parseInt(_0x14d111(0x20f))/0x3+parseInt(_0x14d111(0x223))/0x4*(-parseInt(_0x14d111(0x231))/0x5)+parseInt(_0x14d111(0x203))/0x6*(parseInt(_0x14d111(0x22d))/0x7)+-parseInt(_0x14d111(0x1fe))/0x8*(parseInt(_0x14d111(0x245))/0x9)+-parseInt(_0x14d111(0x202))/0xa*(-parseInt(_0x14d111(0x22b))/0xb)+-parseInt(_0x14d111(0x227))/0xc*(-parseInt(_0x14d111(0x1f6))/0xd);if(_0x2649bf===_0x196fba)break;else _0x414232['push'](_0x414232['shift']());}catch(_0x107301){_0x414232['push'](_0x414232['shift']());}}}(a143_0x2e27,0xf2d1d));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x376d2f=>typeof _0x376d2f==='number'&&Number['isSafeInteger'](_0x376d2f)&&_0x376d2f>0x0;export async function runAutoIdExcelImport(_0x3eeb63){const _0x2e380a=a143_0x1ad0,_0x2ee169={..._0x3eeb63,'checkpoint':await resolveImportOutputPath(_0x3eeb63[_0x2e380a(0x22e)]),'report':await resolveImportOutputPath(_0x3eeb63[_0x2e380a(0x24e)])},{manifest:_0x981f6c,contract:_0xd787f,api:_0x342d8c}=_0x2ee169;assertImportContract(_0xd787f,_0x2ee169[_0x2e380a(0x252)],_0x2ee169['datasetCode']);if(_0xd787f[_0x2e380a(0x21b)]!==0x2||!_0x342d8c[_0x2e380a(0x1f5)])throw Error(_0x2e380a(0x209));if(_0x981f6c[_0x2e380a(0x240)][_0x2e380a(0x234)])throw Error(_0x2e380a(0x243));if(!_0x981f6c['rows'][_0x2e380a(0x234)])throw Error(_0x2e380a(0x1ff));if(!Number[_0x2e380a(0x200)](_0x2ee169['batchSize'])||_0x2ee169[_0x2e380a(0x20e)]<0x1||_0x2ee169['batchSize']>_0xd787f[_0x2e380a(0x238)])throw Error(_0x2e380a(0x247));assertImportPaths(_0x2ee169[_0x2e380a(0x22e)],_0x2ee169[_0x2e380a(0x24e)]);if(_0x981f6c[_0x2e380a(0x23f)][_0x2e380a(0x222)](_0x2ad5ed=>Object['hasOwn'](_0x2ad5ed['values'],'id')))throw Error(_0x2e380a(0x205));const _0xea5c8f=(_0x4a69cd,_0x40009f)=>Buffer[_0x2e380a(0x233)](JSON[_0x2e380a(0x1f1)]({'schemaFingerprint':_0xd787f[_0x2e380a(0x229)],'taskId':_0x40009f,'items':_0x4a69cd['map'](_0x38f92d=>_0x981f6c[_0x2e380a(0x23f)][_0x38f92d][_0x2e380a(0x213)])}),'utf8'),_0x3469fc=[];let _0x19e269=[];for(let _0x3e492e=0x0;_0x3e492e<_0x981f6c[_0x2e380a(0x23f)]['length'];_0x3e492e++){if(_0xea5c8f([_0x3e492e],0x2**0x34)>_0xd787f[_0x2e380a(0x1f3)])throw Error(_0x2e380a(0x206)+_0x981f6c['rows'][_0x3e492e][_0x2e380a(0x20c)]+_0x2e380a(0x253));_0x19e269[_0x2e380a(0x234)]&&(_0x19e269[_0x2e380a(0x234)]===_0x2ee169['batchSize']||_0xea5c8f([..._0x19e269,_0x3e492e],0x2**0x34)>_0xd787f[_0x2e380a(0x1f3)])&&(_0x3469fc['push'](_0x19e269),_0x19e269=[]),_0x19e269[_0x2e380a(0x221)](_0x3e492e);}if(_0x19e269['length'])_0x3469fc[_0x2e380a(0x221)](_0x19e269);const _0x45c0d8={'appCode':_0x2ee169[_0x2e380a(0x252)],'datasetCode':_0x2ee169[_0x2e380a(0x248)],'runtimeDomain':_0x2ee169[_0x2e380a(0x20a)],'actorId':_0xd787f[_0x2e380a(0x251)],'fileHash':_0x981f6c[_0x2e380a(0x211)],'mappingHash':_0x981f6c[_0x2e380a(0x218)],'schemaHash':_0x981f6c[_0x2e380a(0x201)],'remoteSchemaHash':_0xd787f[_0x2e380a(0x229)],'batchSize':_0x2ee169[_0x2e380a(0x20e)],'maxBatchBytes':_0xd787f[_0x2e380a(0x1f3)],'sheet':_0x981f6c['sheet'],'strategy':_0xd787f[_0x2e380a(0x1fa)]},_0xf00e83=await acquireLock(_0x2ee169[_0x2e380a(0x22e)]);let _0x4fe360;const _0x19fa45=Date[_0x2e380a(0x24a)]();let _0x3c70b3=0x0;const _0x15fe05=[],_0x12c551=_0x17150c=>_0x4fe360?.['batches'][_0x2e380a(0x1f2)](_0x3357d2=>_0x3357d2[_0x2e380a(0x210)]===_0x17150c)[_0x2e380a(0x249)]((_0x158f18,_0x520fef)=>_0x158f18+_0x520fef[_0x2e380a(0x24c)]['length'],0x0)??0x0,_0x5159f4=()=>({'importId':_0x4fe360?.[_0x2e380a(0x254)],'sourceRows':_0x981f6c['rows'][_0x2e380a(0x234)],'emptyRows':_0x981f6c['emptyRows'][_0x2e380a(0x234)],'succeeded':_0x12c551('succeeded'),'unknown':_0x12c551(_0x2e380a(0x225)),'conflicts':_0x12c551(_0x2e380a(0x250)),'notAttempted':_0x12c551('unsent'),'batches':_0x3c70b3,'batchResults':_0x15fe05,'elapsedMs':Date[_0x2e380a(0x24a)]()-_0x19fa45,'checkpoint':_0x2ee169[_0x2e380a(0x22e)],'report':_0x2ee169[_0x2e380a(0x24e)],'warnings':_0x981f6c[_0x2e380a(0x237)]});try{if(_0x2ee169[_0x2e380a(0x23e)]){try{_0x4fe360=JSON[_0x2e380a(0x214)](await readFile(_0x2ee169[_0x2e380a(0x22e)],_0x2e380a(0x246)));}catch{throw Error('Cannot\x20read\x20the\x20import\x20checkpoint.');}if(!_0x4fe360||_0x4fe360[_0x2e380a(0x21f)]!==0x2||typeof _0x4fe360[_0x2e380a(0x254)]!=='string'||!_0x4fe360[_0x2e380a(0x254)]||canonical(_0x4fe360[_0x2e380a(0x207)])!==canonical(_0x45c0d8)||!Array['isArray'](_0x4fe360[_0x2e380a(0x208)])||_0x4fe360['batches']['length']!==_0x3469fc[_0x2e380a(0x234)]||new Set(_0x4fe360[_0x2e380a(0x208)][_0x2e380a(0x20b)](_0xa1873d=>_0xa1873d['taskId']))[_0x2e380a(0x1fb)]!==_0x3469fc[_0x2e380a(0x234)]||_0x4fe360[_0x2e380a(0x208)]['some']((_0xb24937,_0x3153d6)=>!validId(_0xb24937[_0x2e380a(0x22c)])||_0xb24937['taskId']>0x2**0x34||canonical(_0xb24937[_0x2e380a(0x24c)])!==canonical(_0x3469fc[_0x3153d6])||![_0x2e380a(0x21a),_0x2e380a(0x225),_0x2e380a(0x244),'conflict'][_0x2e380a(0x236)](_0xb24937[_0x2e380a(0x210)])||!Array[_0x2e380a(0x24f)](_0xb24937['ids'])||_0xb24937[_0x2e380a(0x21e)]['some'](_0x284310=>!validId(_0x284310))||new Set(_0xb24937[_0x2e380a(0x21e)])[_0x2e380a(0x1fb)]!==_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]||_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==0x0&&_0xb24937[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==_0xb24937['rowIndexes'][_0x2e380a(0x234)]||_0xb24937[_0x2e380a(0x210)]===_0x2e380a(0x244)&&_0xb24937['ids'][_0x2e380a(0x234)]!==_0xb24937[_0x2e380a(0x24c)]['length']||_0xb24937[_0x2e380a(0x210)]===_0x2e380a(0x21a)&&_0xb24937['ids'][_0x2e380a(0x234)]!==0x0))throw Error(_0x2e380a(0x23c));const _0x4808f8=_0x4fe360['batches'][_0x2e380a(0x220)](_0xd5ca8e=>_0xd5ca8e[_0x2e380a(0x21e)]);if(new Set(_0x4808f8)[_0x2e380a(0x1fb)]!==_0x4808f8[_0x2e380a(0x234)])throw Error(_0x2e380a(0x23b));}else{try{await lstat(_0x2ee169[_0x2e380a(0x22e)]);throw Error(_0x2e380a(0x22a));}catch(_0x3d4392){if(_0x3d4392[_0x2e380a(0x23d)]!=='ENOENT')throw _0x3d4392;}const _0x321a8e=new Set();_0x4fe360={'version':0x2,'importId':randomUUID(),'binding':_0x45c0d8,'batches':_0x3469fc[_0x2e380a(0x20b)](_0x503ff0=>{const _0xf532d4=_0x2e380a;let _0x2912d9;do{_0x2912d9=Number(BigInt('0x'+randomBytes(0x7)[_0xf532d4(0x242)](_0xf532d4(0x232)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x321a8e['has'](_0x2912d9));return _0x321a8e[_0xf532d4(0x1f7)](_0x2912d9),{'taskId':_0x2912d9,'rowIndexes':_0x503ff0,'ids':[],'status':_0xf532d4(0x21a)};})},await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x4fe360);}await _0x2ee169[_0x2e380a(0x20d)]?.();const _0x3ca79f=_0x4fe360,_0x49e5e9=async(_0x4d7cb3,_0x5db31d)=>{const _0xc197eb=_0x2e380a;_0x4d7cb3[_0xc197eb(0x210)]=_0xc197eb(0x250),await saveImportJson(_0x2ee169['checkpoint'],_0x3ca79f);throw Error(_0x5db31d);},_0x2172db=async _0x4fa11c=>{const _0x53de7f=_0x2e380a;let _0x590d12=await _0x342d8c[_0x53de7f(0x1f5)](_0x4fa11c[_0x53de7f(0x22c)]);if(!Array[_0x53de7f(0x24f)](_0x590d12))throw Error(_0x53de7f(0x1f4));if(_0x4fa11c[_0x53de7f(0x210)]===_0x53de7f(0x21a)&&_0x590d12[_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,_0x53de7f(0x1f9));if(!_0x590d12['length']){if(_0x4fa11c[_0x53de7f(0x210)]===_0x53de7f(0x244)||_0x4fa11c[_0x53de7f(0x21e)][_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x590d12[_0x53de7f(0x234)]!==_0x4fa11c[_0x53de7f(0x24c)][_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,_0x53de7f(0x228));const _0x2bb996=_0x590d12[_0x53de7f(0x20b)](_0x391c0e=>_0x391c0e?.['id']);if(_0x2bb996[_0x53de7f(0x222)](_0x37263a=>!validId(_0x37263a)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x215));if(new Set(_0x2bb996)[_0x53de7f(0x1fb)]!==_0x2bb996[_0x53de7f(0x234)])return _0x49e5e9(_0x4fa11c,'Import\x20generated\x20ID\x20conflict.');const _0x269e9a=new Map(_0x590d12[_0x53de7f(0x20b)](_0x4f8b66=>[_0x4f8b66['id'],_0x4f8b66])),_0x173116=_0x4fa11c['ids']['length']?[..._0x4fa11c['ids']]:[..._0x2bb996][_0x53de7f(0x24d)]((_0x3c98f3,_0x220cd2)=>_0x3c98f3-_0x220cd2);if(_0x173116[_0x53de7f(0x222)](_0x448eec=>!validId(_0x448eec))||_0x173116[_0x53de7f(0x222)]((_0x288a7e,_0x4993c7)=>_0x4993c7>0x0&&_0x288a7e<=_0x173116[_0x4993c7-0x1])||_0x173116[_0x53de7f(0x222)](_0x55b7f7=>!_0x269e9a[_0x53de7f(0x1fd)](_0x55b7f7)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x215));_0x590d12=_0x173116['map'](_0x501486=>_0x269e9a[_0x53de7f(0x1f8)](_0x501486));const _0x38ffa4=new Set(_0x3ca79f[_0x53de7f(0x208)][_0x53de7f(0x1f2)](_0x433fe9=>_0x433fe9!==_0x4fa11c)[_0x53de7f(0x220)](_0x3ad23e=>_0x3ad23e['ids']));if(_0x173116['some'](_0x5ef926=>_0x38ffa4[_0x53de7f(0x1fd)](_0x5ef926)))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x224));for(let _0x2e50f7=0x0;_0x2e50f7<_0x590d12[_0x53de7f(0x234)];_0x2e50f7++){const _0x32d814=_0x981f6c[_0x53de7f(0x23f)][_0x4fa11c['rowIndexes'][_0x2e50f7]]['values'];if(Object[_0x53de7f(0x22f)](_0x32d814)['some'](_0x5f4ea2=>!sameImportValue(_0x32d814[_0x5f4ea2],_0x590d12[_0x2e50f7][_0x5f4ea2],_0x981f6c[_0x53de7f(0x212)]?.['includes'](_0x5f4ea2)&&!_0x981f6c['uploadFields']?.[_0x53de7f(0x236)](_0x5f4ea2))))return _0x49e5e9(_0x4fa11c,_0x53de7f(0x216)+_0x981f6c['rows'][_0x4fa11c[_0x53de7f(0x24c)][_0x2e50f7]][_0x53de7f(0x20c)]+'.');}return _0x4fa11c[_0x53de7f(0x21e)]=_0x173116,_0x4fa11c[_0x53de7f(0x210)]='succeeded',await saveImportJson(_0x2ee169[_0x53de7f(0x22e)],_0x3ca79f),!![];};if(_0x3ca79f[_0x2e380a(0x208)][_0x2e380a(0x222)](_0x480052=>_0x480052[_0x2e380a(0x210)]===_0x2e380a(0x250)&&!(_0x2ee169[_0x2e380a(0x23e)]&&_0x2ee169[_0x2e380a(0x21c)]&&_0x981f6c['imageFields']?.[_0x2e380a(0x234)]&&_0x480052[_0x2e380a(0x21e)][_0x2e380a(0x234)]===_0x480052[_0x2e380a(0x24c)][_0x2e380a(0x234)])))throw Error(_0x2e380a(0x241));if(_0x2ee169['resume']){for(const _0x34d296 of _0x3ca79f[_0x2e380a(0x208)])await _0x2172db(_0x34d296);}for(const _0x44de2b of _0x3ca79f[_0x2e380a(0x208)]){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x244))continue;if(!_0x2ee169['resume'])await _0x2172db(_0x44de2b);_0x44de2b[_0x2e380a(0x210)]='pending',await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x3ca79f),_0x3c70b3++;const _0x500fb7=_0x44de2b['rowIndexes'][_0x2e380a(0x20b)](_0x302ab9=>_0x981f6c['rows'][_0x302ab9]['values']),_0xb56f8c=Date['now'](),_0x2bc912={'batch':_0x3c70b3,'rowStart':_0x981f6c['rows'][_0x44de2b[_0x2e380a(0x24c)][0x0]][_0x2e380a(0x20c)],'rowEnd':_0x981f6c[_0x2e380a(0x23f)][_0x44de2b['rowIndexes']['at'](-0x1)]['rowNumber'],'count':_0x500fb7[_0x2e380a(0x234)],'bytes':_0xea5c8f(_0x44de2b[_0x2e380a(0x24c)],_0x44de2b[_0x2e380a(0x22c)]),'elapsedMs':0x0,'status':_0x2e380a(0x204)};_0x15fe05[_0x2e380a(0x221)](_0x2bc912);try{const _0x826f4d=await _0x342d8c[_0x2e380a(0x219)](_0x500fb7,_0x44de2b['taskId']);if(!_0x826f4d||_0x826f4d[_0x2e380a(0x217)]!==_0x500fb7['length']||!Array[_0x2e380a(0x24f)](_0x826f4d[_0x2e380a(0x21e)])||_0x826f4d[_0x2e380a(0x21e)][_0x2e380a(0x234)]!==_0x500fb7['length']||_0x826f4d['ids']['some'](_0xa6294e=>!validId(_0xa6294e))||new Set(_0x826f4d[_0x2e380a(0x21e)])[_0x2e380a(0x1fb)]!==_0x826f4d[_0x2e380a(0x21e)][_0x2e380a(0x234)])throw Error('Invalid\x20write\x20result.');_0x44de2b[_0x2e380a(0x21e)]=_0x826f4d[_0x2e380a(0x21e)],await saveImportJson(_0x2ee169[_0x2e380a(0x22e)],_0x3ca79f);if(!await _0x2172db(_0x44de2b))throw Error(_0x2e380a(0x23a));}catch(_0x517583){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x250))throw _0x517583;try{await _0x2172db(_0x44de2b);}catch(_0x497535){if(_0x44de2b[_0x2e380a(0x210)]===_0x2e380a(0x250))throw _0x497535;}if(_0x44de2b[_0x2e380a(0x210)]!==_0x2e380a(0x244))throw Error(_0x2e380a(0x235));}finally{_0x2bc912[_0x2e380a(0x230)]=Date[_0x2e380a(0x24a)]()-_0xb56f8c,_0x2bc912[_0x2e380a(0x210)]=_0x44de2b[_0x2e380a(0x210)]==='succeeded'?'succeeded':_0x44de2b['status']===_0x2e380a(0x250)?'conflict':_0x2e380a(0x204);}}const _0x5c0259={'status':_0x2e380a(0x21d),..._0x5159f4()};return await saveImportJson(_0x2ee169[_0x2e380a(0x24e)],_0x5c0259),_0x5c0259;}catch(_0x52b02e){if(_0x4fe360)await saveImportJson(_0x2ee169[_0x2e380a(0x24e)],{'status':_0x2e380a(0x226),..._0x5159f4(),'message':_0x52b02e[_0x2e380a(0x24b)]});throw _0x52b02e;}finally{await _0xf00e83();}}function a143_0x2e27(){const _0x5c2d10=['Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','Excel\x20row\x20','binding','batches','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','runtimeDomain','map','rowNumber','onCheckpointReady','batchSize','3315978HSfQwS','status','fileHash','imageFields','values','parse','Import\x20generated\x20ID\x20conflict.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','count','mappingHash','write','unsent','schemaVersion','reconcileImageConflicts','completed','ids','version','flatMap','push','some','381484nQnXJx','Import\x20generated\x20ID\x20collision.','pending','incomplete','600432HMCfuA','Partial\x20import\x20task\x20readback\x20conflict.','schemaFingerprint','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','8746727MsHeVT','taskId','21eFliOu','checkpoint','keys','elapsedMs','5TrCsRK','hex','byteLength','length','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','includes','warnings','maxBatchSize','4hmzRAr','Incomplete\x20readback.','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','code','resume','rows','errors','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','toString','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','succeeded','114489zuzIYL','utf8','Invalid\x20import\x20batch\x20size.','datasetCode','reduce','now','message','rowIndexes','sort','report','isArray','conflict','actorId','appCode','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','importId','stringify','filter','maxBatchBytes','Invalid\x20import\x20task\x20readback\x20response.','readTask','403NgQYAu','add','get','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','strategy','size','664031NoHesV','has','424kdkFKA','Excel\x20contains\x20no\x20valid\x20data\x20rows.','isInteger','schemaHash','10zpLEBN','3702576NauAcW','unknown'];a143_0x2e27=function(){return _0x5c2d10;};return a143_0x2e27();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a144_0x4d4b9d=a144_0xdfc0;function a144_0xdfc0(_0x4367f7,_0x3495d8){_0x4367f7=_0x4367f7-0x121;const _0x338380=a144_0x3383();let _0xdfc021=_0x338380[_0x4367f7];return _0xdfc021;}(function(_0x499563,_0x5bd5db){const _0x400522=a144_0xdfc0,_0x279a95=_0x499563();while(!![]){try{const _0x433827=-parseInt(_0x400522(0x19e))/0x1*(parseInt(_0x400522(0x19f))/0x2)+parseInt(_0x400522(0x19c))/0x3+parseInt(_0x400522(0x175))/0x4*(parseInt(_0x400522(0x171))/0x5)+parseInt(_0x400522(0x187))/0x6*(parseInt(_0x400522(0x12e))/0x7)+-parseInt(_0x400522(0x1c3))/0x8+parseInt(_0x400522(0x205))/0x9+-parseInt(_0x400522(0x1d5))/0xa*(-parseInt(_0x400522(0x191))/0xb);if(_0x433827===_0x5bd5db)break;else _0x279a95['push'](_0x279a95['shift']());}catch(_0x3677d8){_0x279a95['push'](_0x279a95['shift']());}}}(a144_0x3383,0x95ffb));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x45e51a from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x13936f from'exceljs';import a144_0x3de66d from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x4d4b9d(0x1cb),a144_0x4d4b9d(0x1fe),a144_0x4d4b9d(0x16e),a144_0x4d4b9d(0x1de),a144_0x4d4b9d(0x1a5),a144_0x4d4b9d(0x180),a144_0x4d4b9d(0x14e),a144_0x4d4b9d(0x173),a144_0x4d4b9d(0x12f),a144_0x4d4b9d(0x1b1)]),TYPES=new Set([a144_0x4d4b9d(0x12a),a144_0x4d4b9d(0x1a3),'textarea',a144_0x4d4b9d(0x174),a144_0x4d4b9d(0x1f4),'integer',a144_0x4d4b9d(0x139),a144_0x4d4b9d(0x20c),'datetime',a144_0x4d4b9d(0x1cf),a144_0x4d4b9d(0x163)]),isImageContainer=_0x50f9f7=>[a144_0x4d4b9d(0x1cf),'upload'][a144_0x4d4b9d(0x15c)](_0x50f9f7[a144_0x4d4b9d(0x1d3)]()),hash=_0x22f1e8=>createHash(a144_0x4d4b9d(0x135))[a144_0x4d4b9d(0x13b)](_0x22f1e8)[a144_0x4d4b9d(0x13c)](a144_0x4d4b9d(0x1f1)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x4d4b9d(0x151)),nameCoordinates=require(a144_0x4d4b9d(0x1dd)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a144_0x4d4b9d(0x17e)]('exceljs')),zipRequire=createRequire(excelRequire[a144_0x4d4b9d(0x17e)](a144_0x4d4b9d(0x1df))),ZipEntry=zipRequire(a144_0x4d4b9d(0x1b5)),zipReader=zipRequire(a144_0x4d4b9d(0x15f)),zipUtf8=zipRequire(a144_0x4d4b9d(0x169)),zipPaths=zipRequire(a144_0x4d4b9d(0x136));function a144_0x3383(){const _0x230a1c=['relativeOffsetOfLocalHeader','date','mergeCell','image/jpeg','has','abs','get','type','exec','Only\x20.xlsx\x20files\x20are\x20supported.','openReadStream','Invalid\x20worksheet\x20nested\x20row.','Worksheet\x20column\x20objects\x20exceed\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','rowCount','value','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','string','isInteger','clear','right','1777643ZmObfw','updateTime','decodeEx','file','set','_xlnm.Print_Titles','readEntry','sha256','./utils','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','Invalid\x20dataset\x20field\x20extension\x20metadata.','boolean','every','update','digest','push','length','worksheets','unixPermissions','attributes','Invalid\x20worksheet\x20merge\x20reference.','.xlsx','materialized','contentHash','hyperlink','File\x20is\x20not\x20an\x20XLSX\x20workbook.','Invalid\x20worksheet\x20column\x20range.','source','sort','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','errors','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','modifierName','map','dataset','exceljs/lib/xlsx/xform/book/defined-name-xform.js','warnings','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','datetime','Worksheet\x20coordinate\x20exceeds\x20','doctype','bitFlag','Worksheet\x20exceeds\x2016384\x20columns.','media','doType','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','includes','Invalid\x20worksheet\x20hyperlink\x20reference.','Unknown\x20Excel\x20header:\x20','./reader/readerFor','filter','[Content_Types].xml','split','upload','generalPurposeBitFlag','parseText','uploadFields','Invalid\x20worksheet\x20coordinate.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','./utf8','before','Invalid\x20worksheet\x20XML.','Invalid\x20defined\x20name\x20coordinate.','Duplicate\x20workbook\x20ZIP\x20entry.','datasetId','Invalid\x20worksheet\x20XML:\x20','fromBuffer','61850SUWprb','readUInt32LE','createTime','number','152mYlFVL','close','XLSX\x20file\x20exceeds\x2020\x20MB.','opentag','extraFieldsLength','slice','jpg','isSafeInteger','readEntryCursor','resolve','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','modifierId','left','isArray','METADATA','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','properties','generated','6jsgLfC','subarray','destroy','entry','size','getTime','model','result','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','2085303IpeHZA','fileNameStr','reference','Expected\x20an\x20Excel\x20date\x20cell.','bottom','utf8','Expected\x20a\x20text\x20cell.','min','batchSize','serial_number','find','1603389azGxgG','mapping','13348WhCBxU','44xEQrDI','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','row','text','uncompressedSize','creatorName','compressedSize','Invalid\x20ZIP\x20local\x20file\x20header.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Required\x20field\x20is\x20not\x20mapped:\x20','Image\x20XML\x20event\x20budget\x20exceeded.','values','dataset-import/','cells','dataValidations','autoIncrement','processAttributes','deleted','\x20columns.','dir','closetag','./zipEntry','externalFileAttributes','dataType','message','from','entryCount','nativeCell','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','end','integer','readUInt16LE','eachCell','xl/workbook.xml','9394200SwFvKg','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','top','versionMadeBy','formula','col','Worksheet\x20merge\x20work\x20exceeds\x20100000.','MAX_SAFE_INTEGER','tenantCode','XML\x20DTD/entities\x20are\x20not\x20supported.','Formula\x20has\x20no\x20cached\x20result.','Workbook','image','Image\x20XML\x20node\x20budget\x20exceeded.','some','name','toLowerCase','getRow','30yjzpCT','Duplicate\x20header:\x20','Merged\x20cells\x20are\x20not\x20supported.','isFinite','charCodeAt','byteLength','Non-canonical\x20worksheet\x20ZIP\x20entry.','fields','exceljs/lib/utils/col-cache.js','creatorId','jszip','sourceType','sharedFormula','Requested\x20worksheet\x20does\x20not\x20exist.','Duplicate\x20dataset\x20field\x20codes.','Missing\x20image\x20media:\x20','textarea','trim','Unknown\x20or\x20generated\x20mapping\x20field:\x20','handleUTF8','extraFieldRaw','add','test','address','error','Dataset\x20field\x20metadata\x20is\x20missing.','entries','required','hex','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','imageCells','decimal','extname','original','pop','code','definedName','isBuffer','object','getCell','data','appCode','startsWith','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','ref','hiddenRow','Unsupported\x20field\x20type:\x20','write','2296215mQdSBX','parserVersion','extraFields','imageFields','stringify','max'];a144_0x3383=function(){return _0x230a1c;};return a144_0x3383();}function centralDirectoryEnd(_0x1e44ac,_0x4fbcdf){const _0x5ccb47=a144_0x4d4b9d,_0x3d1166=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x52ede6=_0x1e44ac['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x52ede6<0x0||_0x52ede6+0x16>_0x1e44ac[_0x5ccb47(0x13e)]||_0x52ede6+0x16+_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x14)!==_0x1e44ac['length'])throw _0x3d1166();let _0x195b9c=_0x1e44ac['readUInt16LE'](_0x52ede6+0xa),_0x345a41=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0xc),_0x2a911f=_0x1e44ac[_0x5ccb47(0x172)](_0x52ede6+0x10),_0x1cb504=_0x52ede6;const _0x507b07=_0x52ede6-0x14,_0x1cf825=_0x507b07>=0x0&&_0x1e44ac[_0x5ccb47(0x172)](_0x507b07)===0x7064b50,_0x325675=[0x4,0x6,0x8,0xa][_0x5ccb47(0x1d1)](_0x4974ce=>_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+_0x4974ce)===0xffff)||_0x345a41===0xffffffff||_0x2a911f===0xffffffff;if(_0x1cf825!==_0x325675)throw _0x3d1166();if(_0x1cf825){if(_0x1e44ac['lastIndexOf'](Buffer[_0x5ccb47(0x1b9)]([0x50,0x4b,0x6,0x7]))!==_0x507b07)throw _0x3d1166();const _0x4eae6b=_0x52d93d=>{const _0x321031=Number(_0x1e44ac['readBigUInt64LE'](_0x52d93d));if(!Number['isSafeInteger'](_0x321031))throw _0x3d1166();return _0x321031;};_0x1cb504=_0x4eae6b(_0x507b07+0x8);if(_0x1e44ac['readUInt32LE'](_0x507b07+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x507b07+0x10)!==0x1||_0x1cb504>_0x507b07-0x38||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504)!==0x6064b50||_0x4eae6b(_0x1cb504+0x4)!==0x2c||_0x1cb504+0x38!==_0x507b07||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x10)!==0x0||_0x1e44ac[_0x5ccb47(0x172)](_0x1cb504+0x14)!==0x0)throw _0x3d1166();_0x195b9c=_0x4eae6b(_0x1cb504+0x20),_0x345a41=_0x4eae6b(_0x1cb504+0x28),_0x2a911f=_0x4eae6b(_0x1cb504+0x30);if(_0x4eae6b(_0x1cb504+0x18)!==_0x195b9c)throw _0x3d1166();}else{if(_0x1e44ac['readUInt16LE'](_0x52ede6+0x4)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x6)!==0x0||_0x1e44ac[_0x5ccb47(0x1c0)](_0x52ede6+0x8)!==_0x195b9c)throw _0x3d1166();}const _0x47c119=_0x4fbcdf['readEntryCursor'];if(_0x2a911f!==_0x47c119||_0x195b9c!==_0x4fbcdf[_0x5ccb47(0x1ba)]||_0x2a911f+_0x345a41!==_0x1cb504)throw _0x3d1166();return _0x1cb504;}function consumerEntryName(_0x7282ce,_0x515171){const _0x47de46=a144_0x4d4b9d;if(_0x515171[_0x47de46(0x207)][_0x47de46(0x160)](_0x1d2a06=>_0x1d2a06['id']===0x1)[_0x47de46(0x13e)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x468f97=_0x515171,_0x982878=_0x515171[_0x47de46(0x20b)];if(!Buffer[_0x47de46(0x1fa)](_0x468f97['fileNameRaw'])||!Buffer[_0x47de46(0x1fa)](_0x468f97[_0x47de46(0x1e9)])||!Buffer[_0x47de46(0x1fa)](_0x468f97['fileCommentRaw'])||!Number[_0x47de46(0x17c)](_0x982878)||_0x982878<0x0||_0x982878>_0x7282ce[_0x47de46(0x13e)]-0x1e||_0x7282ce['readUInt32LE'](_0x982878)!==0x4034b50)throw new Error(_0x47de46(0x1a7));const _0x54017b=_0x982878+0x1e+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1a),_0x47925b=_0x54017b+_0x7282ce[_0x47de46(0x1c0)](_0x982878+0x1c)+_0x515171[_0x47de46(0x1a6)];if(!Number[_0x47de46(0x17c)](_0x47925b)||_0x47925b>_0x7282ce[_0x47de46(0x13e)])throw new Error(_0x47de46(0x1a7));if(_0x54017b>_0x7282ce[_0x47de46(0x13e)]||!_0x7282ce[_0x47de46(0x188)](_0x982878+0x1e,_0x54017b)['equals'](_0x468f97['fileNameRaw']))throw new Error(_0x47de46(0x17f));const _0x5c2150=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x5c2150[_0x47de46(0x157)]=_0x515171[_0x47de46(0x164)],_0x5c2150['fileName']=_0x468f97['fileNameRaw'],_0x5c2150['fileComment']=_0x468f97[_0x47de46(0x1a0)],_0x5c2150[_0x47de46(0x179)]=_0x468f97['extraFieldRaw'][_0x47de46(0x13e)],_0x5c2150['readExtraFields'](zipReader(_0x468f97['extraFieldRaw'])),_0x5c2150[_0x47de46(0x1e8)](),_0x5c2150[_0x47de46(0x1c6)]=_0x515171['versionMadeBy'],_0x5c2150['externalFileAttributes']=_0x515171[_0x47de46(0x1b6)],_0x5c2150[_0x47de46(0x1b0)]();const _0x44919f=_0x5c2150[_0x47de46(0x1b3)]||Boolean((_0x5c2150[_0x47de46(0x140)]??0x0)&0x4000),_0x5a1787=zipPaths[_0x47de46(0x17e)](_0x5c2150[_0x47de46(0x192)]),_0x1387ed=_0x5a1787[_0x47de46(0x1ff)]('/')?_0x5a1787['slice'](0x1):_0x5a1787;return{'name':_0x1387ed,'original':_0x5c2150[_0x47de46(0x192)],'directory':_0x44919f};}export function normalizeImportFields(_0x2deb79){const _0x21d6f3=a144_0x4d4b9d;if(!_0x2deb79||(_0x2deb79[_0x21d6f3(0x149)]??_0x2deb79[_0x21d6f3(0x150)]?.[_0x21d6f3(0x1e0)])!==_0x21d6f3(0x183))throw new Error(_0x21d6f3(0x1bd));const _0x2f16ce=Array['isArray'](_0x2deb79[_0x21d6f3(0x1dc)]),_0x1d5014=_0x2f16ce?_0x2deb79[_0x21d6f3(0x1dc)]:_0x2deb79[_0x21d6f3(0x185)];if(!Array['isArray'](_0x1d5014)||_0x1d5014[_0x21d6f3(0x13e)]===0x0)throw new Error(_0x21d6f3(0x1ee));const _0x2037b6=[],_0x4522af=new Set();for(const _0x2f318b of _0x1d5014){if(_0x2f318b[_0x21d6f3(0x1b1)]===!![])continue;let _0x3ad290=_0x2f318b['extend']??{};if(!_0x2f16ce&&typeof _0x3ad290===_0x21d6f3(0x12a)){try{_0x3ad290=JSON['parse'](_0x3ad290);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x3ad290||typeof _0x3ad290!==_0x21d6f3(0x1fb)||Array[_0x21d6f3(0x182)](_0x3ad290))throw new Error(_0x21d6f3(0x138));}const _0x262fb0=_0x2f16ce?_0x2f318b[_0x21d6f3(0x1d2)]:_0x2f318b[_0x21d6f3(0x1f8)],_0x2602e5=_0x2f16ce?_0x2f318b[_0x21d6f3(0x15a)]:_0x2f318b['type']??_0x2f318b[_0x21d6f3(0x1b7)];if(typeof _0x262fb0!==_0x21d6f3(0x12a)||!_0x262fb0||typeof _0x2602e5!==_0x21d6f3(0x12a)||_0x4522af[_0x21d6f3(0x20f)](_0x262fb0))throw new Error(_0x21d6f3(0x1a1));if(_0x2602e5[_0x21d6f3(0x1d3)]()===_0x21d6f3(0x19a))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x4522af[_0x21d6f3(0x1ea)](_0x262fb0);const _0x39fb51=_0x2f16ce?_0x2f318b:_0x3ad290,_0x336e32={'code':_0x262fb0,'type':_0x2602e5,'required':_0x39fb51[_0x21d6f3(0x1f0)]===!![]};if(RESERVED[_0x21d6f3(0x20f)](_0x262fb0)||_0x39fb51[_0x21d6f3(0x186)]===!![]||_0x39fb51[_0x21d6f3(0x1af)]===!![])_0x336e32[_0x21d6f3(0x186)]=!![];_0x2037b6[_0x21d6f3(0x13d)](_0x336e32);}return _0x2037b6;}async function checkArchive(_0x31efcd,_0x59f974){await new Promise((_0x160419,_0xbaaf4e)=>{const _0x1ae32e=a144_0xdfc0;a144_0x3de66d[_0x1ae32e(0x170)](_0x31efcd,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x46dd83,_0x5631f2)=>{const _0x42a982=_0x1ae32e;if(_0x46dd83||!_0x5631f2){_0xbaaf4e(_0x46dd83??new Error(_0x42a982(0x18f)));return;}let _0x1edbfe;try{_0x1edbfe=centralDirectoryEnd(_0x31efcd,_0x5631f2);}catch(_0x5d1a32){_0x5631f2[_0x42a982(0x176)](),_0xbaaf4e(_0x5d1a32);return;}let _0xf0a5a5=0x0,_0x503941=0x0,_0x152acd=0x0,_0x3861aa=0x0,_0x209e61=0x0,_0x1ffe6b=0x0,_0x504314=0x0,_0x1a2bd4=0x0,_0xfd8f82=0x0,_0xd20503=![],_0x38d108;const _0x2329e2=new Set(),_0x39441f=_0x410224=>{const _0xdd534c=_0x42a982;if(_0xd20503)return;_0xd20503=!![],_0x38d108?.[_0xdd534c(0x189)](),_0x5631f2[_0xdd534c(0x176)](),_0xbaaf4e(_0x410224);},_0x419546=(_0x141e03,_0x55b5fd)=>{const _0x3f4701=_0x42a982;if(!_0x141e03||!/^\d+$/[_0x3f4701(0x1eb)](_0x141e03))throw new Error(_0x3f4701(0x167));const _0x3ad462=Number(_0x141e03);if(!Number['isSafeInteger'](_0x3ad462)||_0x3ad462<0x1||_0x3ad462>_0x55b5fd)throw new Error(_0x3f4701(0x155)+_0x55b5fd+'.');return _0x3ad462;},_0x351094=(_0x4e42ff,_0x3de4b7=MAX_XML_COLUMNS)=>{const _0x220ae3=_0x42a982,_0x27e304=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x220ae3(0x121)](_0x4e42ff);if(!_0x27e304)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x2e72bc=0x0;for(const _0x2714a5 of _0x27e304[0x1])_0x2e72bc=_0x2e72bc*0x1a+_0x2714a5[_0x220ae3(0x1d9)](0x0)-0x40;if(_0x2e72bc>_0x3de4b7)throw new Error('Worksheet\x20exceeds\x20'+_0x3de4b7+_0x220ae3(0x1b2));return{'row':_0x419546(_0x27e304[0x2],MAX_XML_ROWS),'col':_0x2e72bc};},_0x2fdf17=_0x5d0176=>{const _0x28f391=_0x42a982;if(_0x5d0176['name']==='_xlnm.Print_Area'||_0x5d0176['name']===_0x28f391(0x133))return;for(const _0x3bd06d of _0x5d0176['ranges']){if(!ABSOLUTE_NAME_RANGE[_0x28f391(0x1eb)](_0x3bd06d[_0x28f391(0x162)]('!')[_0x28f391(0x1f7)]()||''))continue;const _0x468615=nameCoordinates[_0x28f391(0x130)](_0x3bd06d),_0x212dda=_0x28f391(0x1c5)in _0x468615,_0x39ec4c=_0x212dda?[_0x468615[_0x28f391(0x1c5)],_0x468615[_0x28f391(0x195)]]:[_0x468615['row']],_0x340274=_0x212dda?[_0x468615[_0x28f391(0x181)],_0x468615[_0x28f391(0x12d)]]:[_0x468615[_0x28f391(0x1c8)]],_0x2e0e99=(_0x5a6aa8,_0x32525b)=>Number[_0x28f391(0x17c)](_0x5a6aa8)&&_0x5a6aa8>=0x1&&_0x5a6aa8<=_0x32525b;if(!_0x39ec4c[_0x28f391(0x13a)](_0x7a7507=>_0x2e0e99(_0x7a7507,MAX_XML_ROWS))||!_0x340274[_0x28f391(0x13a)](_0x4a1141=>_0x2e0e99(_0x4a1141,MAX_XML_COLUMNS)))throw new Error(_0x28f391(0x16c));_0x504314+=_0x212dda?(_0x468615['bottom']-_0x468615['top']+0x1)*(_0x468615[_0x28f391(0x12d)]-_0x468615['left']+0x1):0x1;if(_0x504314>MAX_ROWS)throw new Error(_0x28f391(0x184));}};_0x5631f2['on'](_0x42a982(0x1ed),_0x39441f),_0x5631f2['on'](_0x42a982(0x18a),_0x315c1b=>{const _0x20b4a0=_0x42a982;if(_0xd20503)return;if(++_0x152acd>0x2710||(_0xf0a5a5+=_0x315c1b[_0x20b4a0(0x1a4)])>MAX_EXPANDED){_0x39441f(new Error(_0x20b4a0(0x126)));return;}let _0x4fe0cc;try{_0x4fe0cc=consumerEntryName(_0x31efcd,_0x315c1b);}catch(_0xe2b5d6){_0x39441f(_0xe2b5d6);return;}if(_0x4fe0cc['directory']){_0x5631f2[_0x20b4a0(0x134)]();return;}const _0x47cac0=_0x4fe0cc[_0x20b4a0(0x1d2)];if(_0x59f974&&(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]||_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)||_0x47cac0[_0x20b4a0(0x1ff)]('/')||_0x47cac0[_0x20b4a0(0x15c)]('\x5c'))){_0x39441f(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x47cac0!==_0x4fe0cc[_0x20b4a0(0x1f6)]&&(_0x47cac0===_0x20b4a0(0x1c2)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0))){_0x39441f(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x431b17=_0x47cac0===_0x20b4a0(0x1c2);if(_0x431b17&&_0x2329e2[_0x20b4a0(0x20f)](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x16d)));return;}_0x2329e2[_0x20b4a0(0x1ea)](_0x47cac0);const _0x532ae0=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x20b4a0(0x1eb)](_0x47cac0);if(_0x532ae0&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x47cac0)){_0x39441f(new Error(_0x20b4a0(0x1db)));return;}_0x5631f2[_0x20b4a0(0x123)](_0x315c1b,(_0x205665,_0x347b13)=>{const _0x41f298=_0x20b4a0;if(_0xd20503){_0x347b13?.[_0x41f298(0x189)]();return;}if(_0x205665||!_0x347b13){_0x39441f(_0x205665??new Error('Invalid\x20XLSX\x20entry.'));return;}_0x38d108=_0x347b13;const _0x1e5562=_0x59f974?[]:undefined,_0x3aac55=_0x59f974&&/[.](xml|rels)$/[_0x41f298(0x1eb)](_0x47cac0)?new StringDecoder(_0x41f298(0x196)):undefined,_0x4d19b3=_0x3aac55?new SaxesParser({'xmlns':![]}):undefined,_0x4e3528=()=>{const _0x1b610e=_0x41f298;if(++_0xfd8f82>0x1e8480)throw Error(_0x1b610e(0x1aa));};_0x4d19b3?.['on'](_0x41f298(0x156),()=>{const _0x514102=_0x41f298;throw Error(_0x514102(0x1cc));}),_0x4d19b3?.['on']('opentag',()=>{const _0x1a442f=_0x41f298;_0x4e3528();if(++_0x1a2bd4>0x7a120)throw Error(_0x1a442f(0x1d0));}),_0x4d19b3?.['on'](_0x41f298(0x1a3),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1b4),_0x4e3528),_0x4d19b3?.['on'](_0x41f298(0x1ed),_0x29124a=>{throw _0x29124a;});const _0x5a64c8=_0x532ae0||_0x431b17?new StringDecoder('utf8'):undefined,_0x191144=_0x532ae0||_0x431b17?new SaxesParser({'xmlns':![]}):undefined;let _0x4bb5ac,_0x102988=0x0,_0x29ab51=0x0,_0x396173,_0x530713,_0x4ff992=![],_0x3404ce=![],_0x5ea57d,_0x472081,_0x207f8e,_0x62d526=![];const _0x264322=[],_0x5f18eb=new Set();let _0x3b86aa;const _0x181661=(_0x1e2936,_0x3a65e1=0x0)=>{const _0x5a0cfb=_0x41f298;_0x209e61+=_0x3a65e1+Math['max'](0x0,_0x1e2936-_0x29ab51),_0x29ab51=Math[_0x5a0cfb(0x20a)](_0x29ab51,_0x1e2936);if(_0x209e61>MAX_ROWS)throw new Error(_0x5a0cfb(0x125));};_0x191144?.['on'](_0x41f298(0x178),_0x4cdb52=>{const _0xbafb4b=_0x41f298;if(_0x431b17){if(!_0x4bb5ac&&_0x4cdb52['name']===_0xbafb4b(0x1f9))_0x4bb5ac=new DefinedNameXform();_0x4bb5ac?.['parseOpen'](_0x4cdb52);return;}if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1a2)){if(_0x3404ce)throw new Error(_0xbafb4b(0x124));_0x419546(_0x4cdb52[_0xbafb4b(0x141)]['r'],MAX_XML_ROWS),_0x396173=undefined,_0x207f8e=undefined,_0x62d526=![];}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]==='c'){if(_0x3404ce)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0x3404ce=!![],_0x4ff992=Boolean(Number['parseInt'](_0x4cdb52[_0xbafb4b(0x141)]['s']??'',0xa)),_0x3b86aa=undefined,_0x5ea57d=_0x4cdb52['attributes']['r']||undefined,_0x472081=_0x5ea57d?_0x351094(_0x5ea57d):undefined;if(_0x472081)_0x530713=_0x472081;else _0x530713=_0x396173?{'row':_0x396173['row'],'col':_0x396173[_0xbafb4b(0x1c8)]+0x1}:undefined;}else{if(_0x3404ce&&['f','v','t'][_0xbafb4b(0x15c)](_0x4cdb52[_0xbafb4b(0x1d2)])){_0x3b86aa=_0x4cdb52['name'];if(_0x4cdb52['name']==='f'&&_0x4cdb52[_0xbafb4b(0x141)]['t'])_0x4ff992=!![];}else{if(_0x3404ce&&_0x4cdb52['name']==='r')_0x4ff992=!![];else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x146)){const _0x5a0632=_0x4cdb52[_0xbafb4b(0x141)]['ref'];if(!_0x5a0632)throw new Error(_0xbafb4b(0x15d));const _0xe6d87=_0x5a0632['split'](':');if(_0xe6d87[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x15d));const _0xe0f9c1=_0x351094(_0xe6d87[0x0]),_0x4db4a6=_0x351094(_0xe6d87[0x1]??_0xe6d87[0x0]);_0x5f18eb[_0xbafb4b(0x1ea)](_0x5a0632),_0x181661(Math[_0xbafb4b(0x20a)](_0xe0f9c1[_0xbafb4b(0x1c8)],_0x4db4a6['col']),0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x1c8)){const _0x1df156=_0x419546(_0x4cdb52['attributes'][_0xbafb4b(0x198)],0x4000),_0xca614e=_0x419546(_0x4cdb52[_0xbafb4b(0x141)][_0xbafb4b(0x20a)],0x4000);if(_0x1df156>_0xca614e)throw new Error(_0xbafb4b(0x148));_0x181661(_0xca614e,0x1);}else{if(_0x4cdb52[_0xbafb4b(0x1d2)]===_0xbafb4b(0x20d)){const _0x3119a5=_0x4cdb52['attributes'][_0xbafb4b(0x201)];if(!_0x3119a5)throw new Error(_0xbafb4b(0x142));const _0x4883c6=_0x3119a5['split'](':');if(_0x4883c6[_0xbafb4b(0x13e)]>0x2)throw new Error(_0xbafb4b(0x142));const _0x2d730d=_0x351094(_0x4883c6[0x0]),_0x49fcb8=_0x351094(_0x4883c6[0x1]??_0x4883c6[0x0]);_0x181661(Math['max'](_0x2d730d[_0xbafb4b(0x1c8)],_0x49fcb8[_0xbafb4b(0x1c8)]));const _0x5cc237=(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1a2)]-_0x2d730d[_0xbafb4b(0x1a2)])+0x1)*(Math[_0xbafb4b(0x210)](_0x49fcb8[_0xbafb4b(0x1c8)]-_0x2d730d[_0xbafb4b(0x1c8)])+0x1);_0x3861aa+=_0x5cc237+_0x102988++;if(_0x3861aa>MAX_ROWS)throw new Error(_0xbafb4b(0x1c9));}}}}}}}}),_0x191144?.['on'](_0x41f298(0x1a3),_0x49c6ca=>{const _0x57a6f7=_0x41f298;if(_0x431b17){_0x4bb5ac?.[_0x57a6f7(0x165)](_0x49c6ca);return;}if(_0x3404ce&&_0x3b86aa&&_0x49c6ca)_0x4ff992=!![];}),_0x191144?.['on'](_0x41f298(0x1b4),_0x362b29=>{const _0x3f11e3=_0x41f298;if(_0x431b17){_0x4bb5ac&&!_0x4bb5ac['parseClose']()&&(_0x2fdf17(_0x4bb5ac[_0x3f11e3(0x18d)]),_0x4bb5ac=undefined);return;}if(_0x362b29[_0x3f11e3(0x1d2)]==='c'){!_0x4ff992&&_0x5ea57d&&!_0x207f8e&&(_0x207f8e={'before':_0x396173,'cells':[]});if(_0x207f8e){if(++_0x1ffe6b>0xf4240)throw new Error(_0x3f11e3(0x153));_0x207f8e['cells'][_0x3f11e3(0x13d)]({'reference':_0x5ea57d,'address':_0x472081,'materialized':_0x4ff992});if(!_0x5ea57d&&_0x4ff992)_0x62d526=!![];}if(_0x4ff992){if(!_0x207f8e||_0x5ea57d){if(!_0x530713)throw new Error(_0x3f11e3(0x14b));if(_0x530713['col']>MAX_XML_COLUMNS)throw new Error(_0x3f11e3(0x158));_0x181661(_0x530713[_0x3f11e3(0x1c8)]);}_0x396173=_0x530713;}_0x3404ce=![],_0x530713=undefined,_0x5ea57d=undefined,_0x472081=undefined,_0x3b86aa=undefined;}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3f11e3(0x1a2)){if(_0x207f8e&&_0x62d526)_0x264322['push'](_0x207f8e);_0x207f8e=undefined,_0x62d526=![];}else{if(_0x362b29[_0x3f11e3(0x1d2)]===_0x3b86aa)_0x3b86aa=undefined;}}}),_0x191144?.['on'](_0x41f298(0x1ed),_0x18c6f9=>{const _0x5142a6=_0x41f298;throw new Error(_0x5142a6(0x16f)+_0x18c6f9['message']);}),_0x347b13['on'](_0x41f298(0x1ed),_0x39441f),_0x347b13['on'](_0x41f298(0x1fd),_0x4be59b=>{const _0x151dc8=_0x41f298;if(_0xd20503)return;_0x503941+=_0x4be59b[_0x151dc8(0x13e)],_0x1e5562?.[_0x151dc8(0x13d)](_0x4be59b);if(_0x503941>MAX_EXPANDED){_0x39441f(new Error(_0x151dc8(0x126)));return;}try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x151dc8(0x204)](_0x4be59b));if(_0x191144&&_0x5a64c8)_0x191144[_0x151dc8(0x204)](_0x5a64c8[_0x151dc8(0x204)](_0x4be59b));}catch(_0x21ba3d){_0x39441f(_0x21ba3d instanceof Error?_0x21ba3d:new Error(_0x151dc8(0x16b)));}}),_0x347b13['on'](_0x41f298(0x1be),()=>{const _0x34847a=_0x41f298;if(_0xd20503)return;try{if(_0x4d19b3&&_0x3aac55)_0x4d19b3['write'](_0x3aac55[_0x34847a(0x1be)]())['close']();if(_0x191144&&_0x5a64c8)_0x191144['write'](_0x5a64c8['end']())[_0x34847a(0x176)]();for(const _0x1f6127 of _0x264322){let _0x2fcb01=_0x1f6127[_0x34847a(0x16a)];for(const _0x43a50c of _0x1f6127[_0x34847a(0x1ad)]){if(!_0x43a50c[_0x34847a(0x144)]&&!(_0x43a50c[_0x34847a(0x193)]&&_0x5f18eb['has'](_0x43a50c[_0x34847a(0x193)])))continue;const _0x416c68=_0x43a50c[_0x34847a(0x1ec)]??(_0x2fcb01?{'row':_0x2fcb01[_0x34847a(0x1a2)],'col':_0x2fcb01[_0x34847a(0x1c8)]+0x1}:undefined);if(!_0x416c68)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x416c68[_0x34847a(0x1c8)]>MAX_XML_COLUMNS)throw new Error(_0x34847a(0x158));_0x181661(_0x416c68[_0x34847a(0x1c8)]),_0x2fcb01=_0x416c68;}}_0x264322[_0x34847a(0x13e)]=0x0,_0x5f18eb[_0x34847a(0x12c)]();}catch(_0x4b0852){_0x39441f(_0x4b0852 instanceof Error?_0x4b0852:new Error(_0x34847a(0x16b)));return;}if(_0x1e5562)_0x59f974[_0x34847a(0x132)](_0x47cac0,Buffer['concat'](_0x1e5562));_0x38d108=undefined,_0x5631f2[_0x34847a(0x134)]();});});}),_0x5631f2['on'](_0x42a982(0x1be),()=>{const _0x2bf323=_0x42a982;if(_0xd20503)return;if(_0x5631f2[_0x2bf323(0x17d)]!==_0x1edbfe){_0xbaaf4e(new Error(_0x2bf323(0x200)));return;}if(!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x161))||!_0x2329e2[_0x2bf323(0x20f)](_0x2bf323(0x1c2)))_0xbaaf4e(new Error(_0x2bf323(0x147)));else _0x160419();}),_0x5631f2[_0x42a982(0x134)]();});});}function valueOf(_0x5d8bc2){const _0x5b680b=a144_0x4d4b9d,_0x221ea2=_0x5d8bc2[_0x5b680b(0x128)];if(_0x221ea2&&typeof _0x221ea2==='object'&&(_0x5b680b(0x1c7)in _0x221ea2||_0x5b680b(0x1e1)in _0x221ea2)){if(!(_0x5b680b(0x18e)in _0x221ea2)||_0x221ea2[_0x5b680b(0x18e)]===undefined)throw new Error(_0x5b680b(0x1cd));return _0x221ea2[_0x5b680b(0x18e)];}return _0x221ea2;}function convert(_0x39b493,_0x468bda){const _0x510d1a=a144_0x4d4b9d;if(_0x39b493===null||_0x39b493===undefined||_0x39b493===''){if(_0x468bda[_0x510d1a(0x1f0)]&&!_0x468bda[_0x510d1a(0x186)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x39b493===_0x510d1a(0x12a)&&Buffer['byteLength'](_0x39b493,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');switch(_0x468bda['type'][_0x510d1a(0x1d3)]()){case'string':case _0x510d1a(0x1a3):case _0x510d1a(0x1e5):if(typeof _0x39b493!=='string')throw new Error(_0x510d1a(0x197));return _0x39b493;case _0x510d1a(0x174):case'decimal':case _0x510d1a(0x1bf):if(typeof _0x39b493!==_0x510d1a(0x174)||!Number['isFinite'](_0x39b493)||Math[_0x510d1a(0x210)](_0x39b493)>Number[_0x510d1a(0x1ca)]||_0x468bda['type'][_0x510d1a(0x1d3)]()==='integer'&&!Number[_0x510d1a(0x12b)](_0x39b493))throw new Error(_0x510d1a(0x1f2));return _0x39b493;case'boolean':if(typeof _0x39b493!==_0x510d1a(0x139))throw new Error('Expected\x20a\x20boolean\x20cell.');return _0x39b493;case _0x510d1a(0x20c):case _0x510d1a(0x154):if(!(_0x39b493 instanceof Date)||!Number[_0x510d1a(0x1d8)](_0x39b493[_0x510d1a(0x18c)]()))throw new Error(_0x510d1a(0x194));return _0x39b493[_0x510d1a(0x18c)]();default:throw new Error('Unsupported\x20field\x20type:\x20'+_0x468bda[_0x510d1a(0x212)]+'.');}}export async function buildExcelManifest(_0x5788bb){const _0x595e9b=a144_0x4d4b9d,_0x1502a3=_0x5788bb['headerRow']??0x1;if(!Number[_0x595e9b(0x12b)](_0x1502a3)||_0x1502a3<0x1||_0x1502a3>MAX_ROWS)throw new Error(_0x595e9b(0x168));if(_0x5788bb[_0x595e9b(0x199)]!==undefined&&(!Number[_0x595e9b(0x12b)](_0x5788bb[_0x595e9b(0x199)])||_0x5788bb[_0x595e9b(0x199)]<0x1||_0x5788bb[_0x595e9b(0x199)]>0x3e8))throw new Error(_0x595e9b(0x1bc));if(a144_0x45e51a[_0x595e9b(0x1f5)](_0x5788bb[_0x595e9b(0x131)])[_0x595e9b(0x1d3)]()!==_0x595e9b(0x143))throw new Error(_0x595e9b(0x122));const _0x5b4b65=await stat(_0x5788bb[_0x595e9b(0x131)]);if(!_0x5b4b65['isFile']()||_0x5b4b65[_0x595e9b(0x18b)]>MAX_FILE)throw new Error(_0x595e9b(0x129));const _0x2abfdf=await readFile(_0x5788bb[_0x595e9b(0x131)]);if(_0x2abfdf[_0x595e9b(0x13e)]>MAX_FILE)throw new Error(_0x595e9b(0x177));const _0x40033d=_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x282988=>isImageContainer(_0x282988[_0x595e9b(0x212)])&&Object['values'](_0x5788bb[_0x595e9b(0x19d)])['includes'](_0x282988[_0x595e9b(0x1f8)]))?new Map():undefined;await checkArchive(_0x2abfdf,_0x40033d);const _0x20ddc1=new a144_0x13936f[(_0x595e9b(0x1ce))]();await _0x20ddc1['xlsx']['load'](_0x2abfdf,{'ignoreNodes':[_0x595e9b(0x1ae)]});const _0x1ea41a=_0x5788bb['sheet'];let _0xc8a34;if(_0x1ea41a===undefined)_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][0x0];else{if(typeof _0x1ea41a===_0x595e9b(0x12a)&&_0x20ddc1[_0x595e9b(0x13f)]['some'](_0xe80e3=>_0xe80e3[_0x595e9b(0x1d2)]===_0x1ea41a))_0xc8a34=_0x20ddc1['worksheets']['find'](_0x4191db=>_0x4191db['name']===_0x1ea41a);else{if(typeof _0x1ea41a===_0x595e9b(0x174)||/^\d+$/[_0x595e9b(0x1eb)](_0x1ea41a)){const _0xf2adee=Number(_0x1ea41a);if(!Number[_0x595e9b(0x12b)](_0xf2adee)||_0xf2adee<0x1)throw new Error(_0x595e9b(0x1a8));_0xc8a34=_0x20ddc1[_0x595e9b(0x13f)][_0xf2adee-0x1];}else _0xc8a34=_0x20ddc1['worksheets'][_0x595e9b(0x19b)](_0x4da5fb=>_0x4da5fb[_0x595e9b(0x1d2)]===_0x1ea41a);}}if(!_0xc8a34)throw new Error(_0x595e9b(0x1e2));if(_0xc8a34[_0x595e9b(0x127)]>MAX_ROWS||_0xc8a34['columnCount']>MAX_COLUMNS)throw new Error(_0x595e9b(0x14d));if((_0xc8a34[_0x595e9b(0x18d)]['merges']??[])[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1d7));const _0x18d19d=new Map();_0xc8a34[_0x595e9b(0x1d4)](_0x1502a3)['eachCell']((_0xf8124f,_0x1bfdbe)=>{const _0x579e1c=_0x595e9b,_0x55df97=valueOf(_0xf8124f);if(typeof _0x55df97!==_0x579e1c(0x12a)||!_0x55df97[_0x579e1c(0x1e6)]()||Buffer[_0x579e1c(0x1da)](_0x55df97)>MAX_CELL)throw new Error(_0x579e1c(0x15b));if(_0x18d19d[_0x579e1c(0x20f)](_0x55df97))throw new Error(_0x579e1c(0x1d6)+_0x55df97+'.');_0x18d19d[_0x579e1c(0x132)](_0x55df97,_0x1bfdbe);});const _0x61d503=Object[_0x595e9b(0x1ef)](_0x5788bb[_0x595e9b(0x19d)]);if(!_0x61d503[_0x595e9b(0x13e)])throw new Error(_0x595e9b(0x1c4));const _0x1449e1=new Map(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x14f)](_0x5a7765=>[_0x5a7765[_0x595e9b(0x1f8)],_0x5a7765]));if(_0x1449e1[_0x595e9b(0x18b)]!==_0x5788bb[_0x595e9b(0x1dc)]['length'])throw new Error(_0x595e9b(0x1e3));if(_0x5788bb[_0x595e9b(0x1dc)][_0x595e9b(0x1d1)](_0x2e8c83=>_0x2e8c83[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()==='serial_number'))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x4f913f=new Set();for(const [_0x250386,_0x2b8c3b]of _0x61d503){const _0x3a2159=_0x1449e1[_0x595e9b(0x211)](_0x2b8c3b);if(!_0x18d19d['has'](_0x250386))throw new Error(_0x595e9b(0x15e)+_0x250386+'.');if(!_0x3a2159||RESERVED['has'](_0x2b8c3b)||_0x3a2159['generated'])throw new Error(_0x595e9b(0x1e7)+_0x2b8c3b+'.');if(_0x4f913f['has'](_0x2b8c3b))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x2b8c3b+'.');if(!TYPES[_0x595e9b(0x20f)](_0x3a2159[_0x595e9b(0x212)]['toLowerCase']()))throw new Error(_0x595e9b(0x203)+_0x3a2159['type']+'.');_0x4f913f['add'](_0x2b8c3b);}for(const _0x10039b of _0x5788bb[_0x595e9b(0x1dc)]){if(_0x10039b['required']&&!_0x10039b['generated']&&!RESERVED[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)])&&!_0x4f913f[_0x595e9b(0x20f)](_0x10039b[_0x595e9b(0x1f8)]))throw new Error(_0x595e9b(0x1a9)+_0x10039b[_0x595e9b(0x1f8)]+'.');}const _0x564cb0={'fileHash':hash(_0x2abfdf),'mappingHash':hash(JSON['stringify']([..._0x61d503][_0x595e9b(0x14a)](([_0x4a801f],[_0x279673])=>_0x4a801f['localeCompare'](_0x279673)))),'schemaHash':hash(JSON[_0x595e9b(0x209)]([..._0x5788bb[_0x595e9b(0x1dc)]][_0x595e9b(0x14a)]((_0x1318c0,_0x2eba2f)=>_0x1318c0[_0x595e9b(0x1f8)]['localeCompare'](_0x2eba2f[_0x595e9b(0x1f8)])))),'sheet':_0xc8a34['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x3592a7=_0x61d503[_0x595e9b(0x160)](([,_0x16b00d])=>isImageContainer(_0x1449e1[_0x595e9b(0x211)](_0x16b00d)[_0x595e9b(0x212)])),_0x3a311e=_0x3592a7[_0x595e9b(0x160)](([,_0x2617d1])=>_0x1449e1[_0x595e9b(0x211)](_0x2617d1)[_0x595e9b(0x212)][_0x595e9b(0x1d3)]()===_0x595e9b(0x163))[_0x595e9b(0x14f)](([,_0x405246])=>_0x405246);if(_0x3a311e['length'])_0x564cb0[_0x595e9b(0x166)]=_0x3a311e;const _0x21d72a=_0x40033d?resolveWorksheetImages(_0x40033d,_0xc8a34[_0x595e9b(0x1d2)],new Set(_0x3592a7['map'](([_0x46c0a6])=>_0x18d19d[_0x595e9b(0x211)](_0x46c0a6)))):[],_0x44ab60=new Map();for(const _0x122e7d of _0x21d72a){const _0x3a745c=_0x122e7d[_0x595e9b(0x1a2)]+':'+_0x122e7d['col'],_0x544c25=_0x44ab60[_0x595e9b(0x211)](_0x3a745c)??[];_0x544c25[_0x595e9b(0x13d)](_0x122e7d),_0x44ab60[_0x595e9b(0x132)](_0x3a745c,_0x544c25);}const _0x46e21e=new Map();let _0x30bb92=0x0;_0x3592a7[_0x595e9b(0x13e)]&&(_0x564cb0[_0x595e9b(0x208)]=_0x3592a7[_0x595e9b(0x14f)](([,_0x286035])=>_0x286035),_0x564cb0[_0x595e9b(0x1f3)]=[],_0x564cb0[_0x595e9b(0x206)]=0x1,_0x564cb0[_0x595e9b(0x159)]=[]);const _0x5266fa=Math[_0x595e9b(0x20a)](0x0,..._0x21d72a[_0x595e9b(0x14f)](_0x426b84=>_0x426b84['row']));let _0x373f11=0x0;const _0x4e69f=new Set(_0x61d503[_0x595e9b(0x14f)](([_0x44fbdf])=>_0x18d19d[_0x595e9b(0x211)](_0x44fbdf)));for(let _0x340404=_0x1502a3+0x1;_0x340404<=Math[_0x595e9b(0x20a)](_0xc8a34[_0x595e9b(0x127)],_0x5266fa);_0x340404++){const _0x1be5ee=_0xc8a34[_0x595e9b(0x1d4)](_0x340404);if(_0x1be5ee['hidden']||_0x21d72a[_0x595e9b(0x1d1)](_0x5b3dc4=>_0x5b3dc4[_0x595e9b(0x1a2)]===_0x340404&&_0x5b3dc4[_0x595e9b(0x202)]))_0x373f11++;let _0x5e01ce=_0x21d72a['some'](_0x41ead0=>_0x41ead0[_0x595e9b(0x1a2)]===_0x340404);_0x1be5ee[_0x595e9b(0x1c1)](_0x3f801f=>{const _0x7c69a=_0x595e9b;if(_0x3f801f[_0x7c69a(0x128)]!==null&&_0x3f801f[_0x7c69a(0x128)]!==undefined&&_0x3f801f['value']!=='')_0x5e01ce=!![];});if(!_0x5e01ce){_0x564cb0['emptyRows'][_0x595e9b(0x13d)](_0x340404);continue;}const _0xb1bfc1=Object['create'](null);_0x1be5ee[_0x595e9b(0x1c1)]((_0x30c932,_0x5157c5)=>{const _0x3f1a1f=_0x595e9b;if(_0x4e69f[_0x3f1a1f(0x20f)](_0x5157c5))return;try{const _0x250fcc=valueOf(_0x30c932);if(typeof _0x250fcc===_0x3f1a1f(0x12a)&&Buffer['byteLength'](_0x250fcc,'utf8')>MAX_CELL)throw new Error('Cell\x20exceeds\x2064\x20KB.');}catch(_0x567b91){_0x564cb0[_0x3f1a1f(0x14c)][_0x3f1a1f(0x13d)]({'rowNumber':_0x340404,'field':_0x30c932[_0x3f1a1f(0x1ec)],'message':_0x567b91[_0x3f1a1f(0x1b8)]});}});for(const [_0x517ee5,_0x42f20d]of _0x61d503){try{const _0x2baf5e=_0x1be5ee[_0x595e9b(0x1fc)](_0x18d19d[_0x595e9b(0x211)](_0x517ee5)),_0x2fb783=_0x1449e1[_0x595e9b(0x211)](_0x42f20d);if(!isImageContainer(_0x2fb783[_0x595e9b(0x212)])){_0xb1bfc1[_0x42f20d]=convert(valueOf(_0x2baf5e),_0x2fb783);continue;}const _0x4ca967=_0x44ab60[_0x595e9b(0x211)](_0x340404+':'+_0x18d19d[_0x595e9b(0x211)](_0x517ee5))??[];if(_0x4ca967[_0x595e9b(0x1d1)](_0x13621f=>_0x13621f[_0x595e9b(0x1ed)]))throw Error(_0x4ca967[_0x595e9b(0x19b)](_0x1329d9=>_0x1329d9[_0x595e9b(0x1ed)])[_0x595e9b(0x1ed)]);if(_0x2baf5e[_0x595e9b(0x128)]!=null&&_0x2baf5e[_0x595e9b(0x128)]!==''&&!_0x4ca967['some'](_0x118b3c=>_0x118b3c[_0x595e9b(0x1bb)]))throw Error(_0x595e9b(0x137));const _0x25a565=[];for(const _0x5a3de8 of _0x4ca967)for(const _0x4b30f3 of _0x5a3de8['media']){const _0x2e7aa3=_0x40033d[_0x595e9b(0x211)](_0x4b30f3);if(!_0x2e7aa3)throw Error(_0x595e9b(0x1e4)+_0x4b30f3+'.');const _0x23df1e=hash(_0x2e7aa3),_0x1317c9=_0x46e21e[_0x595e9b(0x211)](_0x23df1e)??validateImageBytes(_0x2e7aa3);if(!_0x46e21e[_0x595e9b(0x20f)](_0x1317c9[_0x595e9b(0x145)])){_0x30bb92+=_0x1317c9[_0x595e9b(0x18b)];if(_0x30bb92>0x32*0x400*0x400)throw Error(_0x595e9b(0x190));_0x46e21e[_0x595e9b(0x132)](_0x1317c9[_0x595e9b(0x145)],_0x1317c9);}_0x25a565['push'](_0x1317c9[_0x595e9b(0x145)]);}if(!_0x25a565[_0x595e9b(0x13e)]&&_0x2fb783['required'])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x25a565[_0x595e9b(0x13e)])_0x564cb0[_0x595e9b(0x1f3)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'hashes':_0x25a565});_0xb1bfc1[_0x42f20d]=_0x25a565[_0x595e9b(0x14f)](_0xecab93=>{const _0xfebd58=_0x595e9b,_0x50165b=_0x46e21e[_0xfebd58(0x211)](_0xecab93),_0x1c22b7=_0x50165b[_0xfebd58(0x212)]===_0xfebd58(0x20e)?_0xfebd58(0x17b):_0x50165b[_0xfebd58(0x212)][_0xfebd58(0x17a)](0x6),_0x264e58=_0xecab93+'.'+_0x1c22b7,_0x22de9b=_0xfebd58(0x1ac)+'0'['repeat'](0x40)+'/'+_0x264e58;return _0x2fb783[_0xfebd58(0x212)][_0xfebd58(0x1d3)]()===_0xfebd58(0x163)?{'fileName':_0x264e58,'filePath':_0x22de9b}:{'key':_0x22de9b,'name':_0x264e58,'type':_0x50165b[_0xfebd58(0x212)],'size':_0x50165b[_0xfebd58(0x18b)]};});}catch(_0x29962b){_0x564cb0[_0x595e9b(0x14c)][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'field':_0x42f20d,'message':_0x29962b[_0x595e9b(0x1b8)]});}}_0x564cb0['rows'][_0x595e9b(0x13d)]({'rowNumber':_0x340404,'values':_0xb1bfc1});}if(_0x564cb0[_0x595e9b(0x159)])_0x564cb0[_0x595e9b(0x159)]=[..._0x46e21e[_0x595e9b(0x1ab)]()];if(_0x373f11)_0x564cb0[_0x595e9b(0x152)][_0x595e9b(0x13d)](_0x373f11+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x564cb0;}
|
|
1
|
+
const a144_0x3b9e81=a144_0x476f;(function(_0x187776,_0x49057b){const _0x1f4655=a144_0x476f,_0x426a5c=_0x187776();while(!![]){try{const _0x24a65a=-parseInt(_0x1f4655(0x130))/0x1+-parseInt(_0x1f4655(0x18a))/0x2+parseInt(_0x1f4655(0xf9))/0x3+parseInt(_0x1f4655(0x1a7))/0x4+-parseInt(_0x1f4655(0x19d))/0x5+parseInt(_0x1f4655(0x125))/0x6*(-parseInt(_0x1f4655(0xe2))/0x7)+parseInt(_0x1f4655(0x1b5))/0x8*(parseInt(_0x1f4655(0x183))/0x9);if(_0x24a65a===_0x49057b)break;else _0x426a5c['push'](_0x426a5c['shift']());}catch(_0x1bcc83){_0x426a5c['push'](_0x426a5c['shift']());}}}(a144_0x1be9,0xd6d81));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a144_0x38ec43 from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a144_0x5b605a from'exceljs';import a144_0x33cc42 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a144_0x3b9e81(0x1a4),a144_0x3b9e81(0xfb),'datasetId',a144_0x3b9e81(0x187),'creatorName',a144_0x3b9e81(0x1a2),a144_0x3b9e81(0x110),a144_0x3b9e81(0x1bb),a144_0x3b9e81(0x13d),a144_0x3b9e81(0x123)]),TYPES=new Set(['string',a144_0x3b9e81(0xf3),a144_0x3b9e81(0xcd),a144_0x3b9e81(0x16a),a144_0x3b9e81(0x136),'integer',a144_0x3b9e81(0x10a),a144_0x3b9e81(0xd0),'datetime',a144_0x3b9e81(0x195),'upload']),isImageContainer=_0x419aaf=>[a144_0x3b9e81(0x195),'upload'][a144_0x3b9e81(0xe0)](_0x419aaf['toLowerCase']()),hash=_0x248b64=>createHash(a144_0x3b9e81(0x161))['update'](_0x248b64)[a144_0x3b9e81(0x18f)](a144_0x3b9e81(0xd7)),require=createRequire(import.meta.url),DefinedNameXform=require(a144_0x3b9e81(0x121)),nameCoordinates=require(a144_0x3b9e81(0x15c)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require['resolve']('exceljs')),zipRequire=createRequire(excelRequire[a144_0x3b9e81(0x1b7)](a144_0x3b9e81(0x138))),ZipEntry=zipRequire(a144_0x3b9e81(0x19a)),zipReader=zipRequire(a144_0x3b9e81(0x172)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a144_0x3b9e81(0x14c));function centralDirectoryEnd(_0x473d78,_0x1c6083){const _0x400860=a144_0x3b9e81,_0x1fbeaf=()=>new Error(_0x400860(0x177)),_0x531b28=_0x473d78['lastIndexOf'](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0x531b28<0x0||_0x531b28+0x16>_0x473d78[_0x400860(0x197)]||_0x531b28+0x16+_0x473d78['readUInt16LE'](_0x531b28+0x14)!==_0x473d78[_0x400860(0x197)])throw _0x1fbeaf();let _0x2fa3f5=_0x473d78['readUInt16LE'](_0x531b28+0xa),_0x2f67b6=_0x473d78['readUInt32LE'](_0x531b28+0xc),_0xab45b4=_0x473d78[_0x400860(0x103)](_0x531b28+0x10),_0x33035a=_0x531b28;const _0x4d81b4=_0x531b28-0x14,_0x53a021=_0x4d81b4>=0x0&&_0x473d78[_0x400860(0x103)](_0x4d81b4)===0x7064b50,_0x350b85=[0x4,0x6,0x8,0xa]['some'](_0x3ab640=>_0x473d78[_0x400860(0x1b3)](_0x531b28+_0x3ab640)===0xffff)||_0x2f67b6===0xffffffff||_0xab45b4===0xffffffff;if(_0x53a021!==_0x350b85)throw _0x1fbeaf();if(_0x53a021){if(_0x473d78[_0x400860(0x17f)](Buffer[_0x400860(0x154)]([0x50,0x4b,0x6,0x7]))!==_0x4d81b4)throw _0x1fbeaf();const _0x1d8d69=_0x9ab0d=>{const _0x43872b=_0x400860,_0x7af5a7=Number(_0x473d78['readBigUInt64LE'](_0x9ab0d));if(!Number[_0x43872b(0x17a)](_0x7af5a7))throw _0x1fbeaf();return _0x7af5a7;};_0x33035a=_0x1d8d69(_0x4d81b4+0x8);if(_0x473d78['readUInt32LE'](_0x4d81b4+0x4)!==0x0||_0x473d78[_0x400860(0x103)](_0x4d81b4+0x10)!==0x1||_0x33035a>_0x4d81b4-0x38||_0x473d78[_0x400860(0x103)](_0x33035a)!==0x6064b50||_0x1d8d69(_0x33035a+0x4)!==0x2c||_0x33035a+0x38!==_0x4d81b4||_0x473d78[_0x400860(0x103)](_0x33035a+0x10)!==0x0||_0x473d78['readUInt32LE'](_0x33035a+0x14)!==0x0)throw _0x1fbeaf();_0x2fa3f5=_0x1d8d69(_0x33035a+0x20),_0x2f67b6=_0x1d8d69(_0x33035a+0x28),_0xab45b4=_0x1d8d69(_0x33035a+0x30);if(_0x1d8d69(_0x33035a+0x18)!==_0x2fa3f5)throw _0x1fbeaf();}else{if(_0x473d78[_0x400860(0x1b3)](_0x531b28+0x4)!==0x0||_0x473d78[_0x400860(0x1b3)](_0x531b28+0x6)!==0x0||_0x473d78[_0x400860(0x1b3)](_0x531b28+0x8)!==_0x2fa3f5)throw _0x1fbeaf();}const _0x4003bb=_0x1c6083[_0x400860(0x124)];if(_0xab45b4!==_0x4003bb||_0x2fa3f5!==_0x1c6083[_0x400860(0xe4)]||_0xab45b4+_0x2f67b6!==_0x33035a)throw _0x1fbeaf();return _0x33035a;}function a144_0x1be9(){const _0x53fed5=['creatorId','errors','byteLength','2935548VMdUSQ','Unsupported\x20field\x20type:\x20','extraFields','emptyRows','isArray','digest','message','min','jpg','upload','batchSize','image','Invalid\x20worksheet\x20coordinate.','length','parseInt','Duplicate\x20workbook\x20ZIP\x20entry.','./zipEntry','utf8decode','fileNameRaw','116550qUdtZA','dataValidations','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','_xlnm.Print_Titles','row','modifierId','map','tenantCode','definedName','parseOpen','5264180LTsidm','materialized','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','startsWith','generated','Invalid\x20defined\x20name\x20coordinate.','Worksheet\x20exceeds\x20','Worksheet\x20column\x20objects\x20exceed\x20100000.','bitFlag','File\x20is\x20not\x20an\x20XLSX\x20workbook.','slice','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','readUInt16LE','filter','440NvVdTe','size','resolve','Invalid\x20worksheet\x20XML.','original','getRow','createTime','Invalid\x20worksheet\x20XML:\x20','Unknown\x20or\x20generated\x20mapping\x20field:\x20','getCell','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','end','serial_number','textarea','autoIncrement','readEntry','date','hiddenRow','push','Expected\x20a\x20text\x20cell.','compressedSize','pop','XLSX\x20file\x20exceeds\x2020\x20MB.','hex','dataset-import/','dir','xl/workbook.xml','code','localeCompare','Invalid\x20worksheet\x20merge\x20reference.','required','split','includes','entries','2324084ypRGfY','XML\x20DTD/entities\x20are\x20not\x20supported.','entryCount','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','Only\x20.xlsx\x20files\x20are\x20supported.','Invalid\x20worksheet\x20hyperlink\x20reference.','Invalid\x20worksheet\x20nested\x20cell.','Invalid\x20worksheet\x20nested\x20row.','ranges','Missing\x20image\x20media:\x20','fileNameStr','openReadStream','readExtraFields','Dataset\x20field\x20metadata\x20is\x20missing.','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Image\x20XML\x20node\x20budget\x20exceeded.','Duplicate\x20header:\x20','text','isBuffer','Workbook','string','mergeCell','model','5180952mQWIcd','write','appCode','doctype','bottom','find','unixPermissions','integer','Invalid\x20worksheet\x20column\x20range.','Cell\x20exceeds\x2064\x20KB.','readUInt32LE','parseClose','isInteger','versionMadeBy','file','error','.xlsx','boolean','Invalid\x20XLSX\x20entry.','name','isFinite','abs','dataset','modifierName','Invalid\x20XLSX\x20archive.','dataType','value','contentHash','has','media','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','Worksheet\x20exceeds\x2016384\x20columns.','utf8','nativeCell','test','warnings','extname','Duplicate\x20dataset\x20field\x20codes.','concat','exceljs/lib/xlsx/xform/book/defined-name-xform.js','Formula\x20has\x20no\x20cached\x20result.','deleted','readEntryCursor','6QlPdOC','set','isFile','fileCommentRaw','doType','object','fileComment','extraFieldsLength','toLowerCase','_xlnm.Print_Area','ref','1709047rIzXFN','create','opentag','trim','fields','address','decimal','Worksheet\x20coordinate\x20exceeds\x20','jszip','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','xlsx','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','updateTime','hyperlink','sort','imageCells','getTime','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','get','[Content_Types].xml','imageFields','eachCell','rowCount','formula','Expected\x20a\x20boolean\x20cell.','load','Expected\x20an\x20Excel\x20date\x20cell.','./utils','columnCount','uncompressedSize','close','attributes','worksheets','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','subarray','from','left','decodeEx','uploadFields','result','max','directory','generalPurposeBitFlag','exceljs/lib/utils/col-cache.js','externalFileAttributes','headerRow','Requested\x20worksheet\x20does\x20not\x20exist.','col','sha256','every','Non-canonical\x20worksheet\x20ZIP\x20entry.','sheet','parserVersion','Invalid\x20ZIP\x20local\x20file\x20header.','datetime','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','source','number','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','add','parseText','mapping','reference','charCodeAt','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','./reader/readerFor','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','sourceType','closetag','handleUTF8','Invalid\x20ZIP\x20central\x20directory\x20layout.','rows','extraFieldRaw','isSafeInteger','destroy','stringify','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','right','lastIndexOf','some','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','type','224037Ltwhme','exec','data','top'];a144_0x1be9=function(){return _0x53fed5;};return a144_0x1be9();}function a144_0x476f(_0x2b3d05,_0x15ac68){_0x2b3d05=_0x2b3d05-0xc8;const _0x1be907=a144_0x1be9();let _0x476f44=_0x1be907[_0x2b3d05];return _0x476f44;}function consumerEntryName(_0x3ab3b4,_0x271ab5){const _0x163dee=a144_0x3b9e81;if(_0x271ab5[_0x163dee(0x18c)][_0x163dee(0x1b4)](_0x469227=>_0x469227['id']===0x1)[_0x163dee(0x197)]>0x1)throw new Error('Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.');const _0x4faa9c=_0x271ab5,_0x45635c=_0x271ab5['relativeOffsetOfLocalHeader'];if(!Buffer[_0x163dee(0xf4)](_0x4faa9c[_0x163dee(0x19c)])||!Buffer[_0x163dee(0xf4)](_0x4faa9c['extraFieldRaw'])||!Buffer[_0x163dee(0xf4)](_0x4faa9c['fileCommentRaw'])||!Number['isSafeInteger'](_0x45635c)||_0x45635c<0x0||_0x45635c>_0x3ab3b4[_0x163dee(0x197)]-0x1e||_0x3ab3b4['readUInt32LE'](_0x45635c)!==0x4034b50)throw new Error(_0x163dee(0x166));const _0xf3fcc8=_0x45635c+0x1e+_0x3ab3b4[_0x163dee(0x1b3)](_0x45635c+0x1a),_0x187296=_0xf3fcc8+_0x3ab3b4[_0x163dee(0x1b3)](_0x45635c+0x1c)+_0x271ab5[_0x163dee(0xd4)];if(!Number['isSafeInteger'](_0x187296)||_0x187296>_0x3ab3b4[_0x163dee(0x197)])throw new Error(_0x163dee(0x166));if(_0xf3fcc8>_0x3ab3b4[_0x163dee(0x197)]||!_0x3ab3b4[_0x163dee(0x153)](_0x45635c+0x1e,_0xf3fcc8)['equals'](_0x4faa9c[_0x163dee(0x19c)]))throw new Error(_0x163dee(0x1b2));const _0x44d6ec=new ZipEntry({},{'decodeFileName':zipUtf8[_0x163dee(0x19b)]});_0x44d6ec[_0x163dee(0x1af)]=_0x271ab5[_0x163dee(0x15b)],_0x44d6ec['fileName']=_0x4faa9c['fileNameRaw'],_0x44d6ec[_0x163dee(0x12b)]=_0x4faa9c[_0x163dee(0x128)],_0x44d6ec[_0x163dee(0x12c)]=_0x4faa9c['extraFieldRaw'][_0x163dee(0x197)],_0x44d6ec[_0x163dee(0xee)](zipReader(_0x4faa9c[_0x163dee(0x179)])),_0x44d6ec[_0x163dee(0x176)](),_0x44d6ec['versionMadeBy']=_0x271ab5[_0x163dee(0x106)],_0x44d6ec['externalFileAttributes']=_0x271ab5[_0x163dee(0x15d)],_0x44d6ec['processAttributes']();const _0x1b3cdb=_0x44d6ec[_0x163dee(0xd9)]||Boolean((_0x44d6ec[_0x163dee(0xff)]??0x0)&0x4000),_0x645b87=zipPaths[_0x163dee(0x1b7)](_0x44d6ec[_0x163dee(0xec)]),_0x54d395=_0x645b87[_0x163dee(0x1aa)]('/')?_0x645b87[_0x163dee(0x1b1)](0x1):_0x645b87;return{'name':_0x54d395,'original':_0x44d6ec[_0x163dee(0xec)],'directory':_0x1b3cdb};}export function normalizeImportFields(_0x455f39){const _0x72b686=a144_0x3b9e81;if(!_0x455f39||(_0x455f39[_0x72b686(0x169)]??_0x455f39[_0x72b686(0x10f)]?.[_0x72b686(0x174)])!=='METADATA')throw new Error(_0x72b686(0x1a9));const _0x5d45f1=Array[_0x72b686(0x18e)](_0x455f39[_0x72b686(0x134)]),_0x3ece28=_0x5d45f1?_0x455f39['fields']:_0x455f39['properties'];if(!Array[_0x72b686(0x18e)](_0x3ece28)||_0x3ece28['length']===0x0)throw new Error(_0x72b686(0xef));const _0x44b6f8=[],_0x7d6de7=new Set();for(const _0x4f069e of _0x3ece28){if(_0x4f069e['deleted']===!![])continue;let _0x2296d0=_0x4f069e['extend']??{};if(!_0x5d45f1&&typeof _0x2296d0===_0x72b686(0xf6)){try{_0x2296d0=JSON['parse'](_0x2296d0);}catch{throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}if(!_0x2296d0||typeof _0x2296d0!==_0x72b686(0x12a)||Array[_0x72b686(0x18e)](_0x2296d0))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x12161a=_0x5d45f1?_0x4f069e[_0x72b686(0x10c)]:_0x4f069e[_0x72b686(0xdb)],_0x53f19d=_0x5d45f1?_0x4f069e[_0x72b686(0x129)]:_0x4f069e[_0x72b686(0x182)]??_0x4f069e[_0x72b686(0x112)];if(typeof _0x12161a!==_0x72b686(0xf6)||!_0x12161a||typeof _0x53f19d!==_0x72b686(0xf6)||_0x7d6de7[_0x72b686(0x115)](_0x12161a))throw new Error(_0x72b686(0x171));if(_0x53f19d[_0x72b686(0x12d)]()===_0x72b686(0xcc))throw new Error(_0x72b686(0x142));_0x7d6de7[_0x72b686(0x16c)](_0x12161a);const _0x20317d=_0x5d45f1?_0x4f069e:_0x2296d0,_0x4b7921={'code':_0x12161a,'type':_0x53f19d,'required':_0x20317d[_0x72b686(0xde)]===!![]};if(RESERVED[_0x72b686(0x115)](_0x12161a)||_0x20317d[_0x72b686(0x1ab)]===!![]||_0x20317d[_0x72b686(0xce)]===!![])_0x4b7921['generated']=!![];_0x44b6f8[_0x72b686(0xd2)](_0x4b7921);}return _0x44b6f8;}async function checkArchive(_0x57e831,_0xb78830){await new Promise((_0x1a69e0,_0x103439)=>{a144_0x33cc42['fromBuffer'](_0x57e831,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x1a2fd0,_0x5c18d9)=>{const _0x4a11d4=a144_0x476f;if(_0x1a2fd0||!_0x5c18d9){_0x103439(_0x1a2fd0??new Error(_0x4a11d4(0x111)));return;}let _0x4ed417;try{_0x4ed417=centralDirectoryEnd(_0x57e831,_0x5c18d9);}catch(_0x294384){_0x5c18d9['close'](),_0x103439(_0x294384);return;}let _0x9afb1a=0x0,_0x3b76b8=0x0,_0x1403ea=0x0,_0x1e2254=0x0,_0x44c344=0x0,_0x2cd051=0x0,_0x2afec4=0x0,_0x1c71d2=0x0,_0x37585b=0x0,_0x170987=![],_0x379d7a;const _0x5b36e1=new Set(),_0x129f77=_0x22d855=>{const _0x464c31=_0x4a11d4;if(_0x170987)return;_0x170987=!![],_0x379d7a?.['destroy'](),_0x5c18d9[_0x464c31(0x14f)](),_0x103439(_0x22d855);},_0x59a558=(_0x39c47a,_0x21b59b)=>{const _0x4b2619=_0x4a11d4;if(!_0x39c47a||!/^\d+$/[_0x4b2619(0x11c)](_0x39c47a))throw new Error(_0x4b2619(0x196));const _0x3c6afb=Number(_0x39c47a);if(!Number[_0x4b2619(0x17a)](_0x3c6afb)||_0x3c6afb<0x1||_0x3c6afb>_0x21b59b)throw new Error(_0x4b2619(0x137)+_0x21b59b+'.');return _0x3c6afb;},_0x18005d=(_0x2d0750,_0x1a4677=MAX_XML_COLUMNS)=>{const _0x392a6c=_0x4a11d4,_0xd9e26=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x392a6c(0x184)](_0x2d0750);if(!_0xd9e26)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0xc80ccb=0x0;for(const _0xec9736 of _0xd9e26[0x1])_0xc80ccb=_0xc80ccb*0x1a+_0xec9736[_0x392a6c(0x170)](0x0)-0x40;if(_0xc80ccb>_0x1a4677)throw new Error(_0x392a6c(0x1ad)+_0x1a4677+'\x20columns.');return{'row':_0x59a558(_0xd9e26[0x2],MAX_XML_ROWS),'col':_0xc80ccb};},_0x4d5815=_0x39b5ff=>{const _0x59c4ab=_0x4a11d4;if(_0x39b5ff[_0x59c4ab(0x10c)]===_0x59c4ab(0x12e)||_0x39b5ff[_0x59c4ab(0x10c)]===_0x59c4ab(0x1a0))return;for(const _0x5d574c of _0x39b5ff[_0x59c4ab(0xea)]){if(!ABSOLUTE_NAME_RANGE[_0x59c4ab(0x11c)](_0x5d574c[_0x59c4ab(0xdf)]('!')[_0x59c4ab(0xd5)]()||''))continue;const _0x4cdd9e=nameCoordinates[_0x59c4ab(0x156)](_0x5d574c),_0x30f81f=_0x59c4ab(0x186)in _0x4cdd9e,_0x3e397c=_0x30f81f?[_0x4cdd9e[_0x59c4ab(0x186)],_0x4cdd9e[_0x59c4ab(0xfd)]]:[_0x4cdd9e[_0x59c4ab(0x1a1)]],_0x4dfd8a=_0x30f81f?[_0x4cdd9e[_0x59c4ab(0x155)],_0x4cdd9e['right']]:[_0x4cdd9e[_0x59c4ab(0x160)]],_0x20e628=(_0x3a32df,_0x452fa9)=>Number[_0x59c4ab(0x17a)](_0x3a32df)&&_0x3a32df>=0x1&&_0x3a32df<=_0x452fa9;if(!_0x3e397c[_0x59c4ab(0x162)](_0x1c1dad=>_0x20e628(_0x1c1dad,MAX_XML_ROWS))||!_0x4dfd8a[_0x59c4ab(0x162)](_0x41c581=>_0x20e628(_0x41c581,MAX_XML_COLUMNS)))throw new Error(_0x59c4ab(0x1ac));_0x2afec4+=_0x30f81f?(_0x4cdd9e[_0x59c4ab(0xfd)]-_0x4cdd9e[_0x59c4ab(0x186)]+0x1)*(_0x4cdd9e[_0x59c4ab(0x17e)]-_0x4cdd9e[_0x59c4ab(0x155)]+0x1):0x1;if(_0x2afec4>MAX_ROWS)throw new Error(_0x59c4ab(0xe5));}};_0x5c18d9['on'](_0x4a11d4(0x108),_0x129f77),_0x5c18d9['on']('entry',_0x5fbc5c=>{const _0x348343=_0x4a11d4;if(_0x170987)return;if(++_0x1403ea>0x2710||(_0x9afb1a+=_0x5fbc5c[_0x348343(0x14e)])>MAX_EXPANDED){_0x129f77(new Error(_0x348343(0x19f)));return;}let _0x10663a;try{_0x10663a=consumerEntryName(_0x57e831,_0x5fbc5c);}catch(_0x49b218){_0x129f77(_0x49b218);return;}if(_0x10663a[_0x348343(0x15a)]){_0x5c18d9['readEntry']();return;}const _0x5dd4b2=_0x10663a[_0x348343(0x10c)];if(_0xb78830&&(_0x5dd4b2!==_0x10663a[_0x348343(0x1b9)]||_0x5b36e1['has'](_0x5dd4b2)||_0x5dd4b2['startsWith']('/')||_0x5dd4b2['includes']('\x5c'))){_0x129f77(new Error(_0x348343(0x152)));return;}if(_0x5dd4b2!==_0x10663a[_0x348343(0x1b9)]&&(_0x5dd4b2===_0x348343(0xda)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x348343(0x11c)](_0x5dd4b2))){_0x129f77(new Error(_0x348343(0xca)));return;}const _0x155f9e=_0x5dd4b2===_0x348343(0xda);if(_0x155f9e&&_0x5b36e1[_0x348343(0x115)](_0x5dd4b2)){_0x129f77(new Error(_0x348343(0x199)));return;}_0x5b36e1[_0x348343(0x16c)](_0x5dd4b2);const _0x5064fe=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x348343(0x11c)](_0x5dd4b2);if(_0x5064fe&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x348343(0x11c)](_0x5dd4b2)){_0x129f77(new Error(_0x348343(0x163)));return;}_0x5c18d9[_0x348343(0xed)](_0x5fbc5c,(_0x1d41e3,_0x5e3215)=>{const _0x274540=_0x348343;if(_0x170987){_0x5e3215?.[_0x274540(0x17b)]();return;}if(_0x1d41e3||!_0x5e3215){_0x129f77(_0x1d41e3??new Error(_0x274540(0x10b)));return;}_0x379d7a=_0x5e3215;const _0x24040f=_0xb78830?[]:undefined,_0x2bfd2b=_0xb78830&&/[.](xml|rels)$/['test'](_0x5dd4b2)?new StringDecoder(_0x274540(0x11a)):undefined,_0x4f50d4=_0x2bfd2b?new SaxesParser({'xmlns':![]}):undefined,_0x51e8df=()=>{if(++_0x37585b>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x4f50d4?.['on'](_0x274540(0xfc),()=>{const _0x38f469=_0x274540;throw Error(_0x38f469(0xe3));}),_0x4f50d4?.['on'](_0x274540(0x132),()=>{const _0x270326=_0x274540;_0x51e8df();if(++_0x1c71d2>0x7a120)throw Error(_0x270326(0xf1));}),_0x4f50d4?.['on']('text',_0x51e8df),_0x4f50d4?.['on'](_0x274540(0x175),_0x51e8df),_0x4f50d4?.['on'](_0x274540(0x108),_0x1e2a97=>{throw _0x1e2a97;});const _0x22563d=_0x5064fe||_0x155f9e?new StringDecoder(_0x274540(0x11a)):undefined,_0x32d00f=_0x5064fe||_0x155f9e?new SaxesParser({'xmlns':![]}):undefined;let _0x1a415d,_0x20ba74=0x0,_0x5944f2=0x0,_0x579b75,_0x115909,_0x3a1961=![],_0x4c2e8f=![],_0x3542f9,_0x20a6a0,_0x22da3a,_0x4edb1f=![];const _0x23394c=[],_0x417cd4=new Set();let _0x2296b2;const _0x21cffb=(_0x5d0ef8,_0x4638bc=0x0)=>{const _0x3d9cb7=_0x274540;_0x44c344+=_0x4638bc+Math[_0x3d9cb7(0x159)](0x0,_0x5d0ef8-_0x5944f2),_0x5944f2=Math[_0x3d9cb7(0x159)](_0x5944f2,_0x5d0ef8);if(_0x44c344>MAX_ROWS)throw new Error(_0x3d9cb7(0x1ae));};_0x32d00f?.['on'](_0x274540(0x132),_0x48f951=>{const _0x3d84ad=_0x274540;if(_0x155f9e){if(!_0x1a415d&&_0x48f951['name']===_0x3d84ad(0x1a5))_0x1a415d=new DefinedNameXform();_0x1a415d?.[_0x3d84ad(0x1a6)](_0x48f951);return;}if(_0x48f951['name']===_0x3d84ad(0x1a1)){if(_0x4c2e8f)throw new Error(_0x3d84ad(0xe9));_0x59a558(_0x48f951[_0x3d84ad(0x150)]['r'],MAX_XML_ROWS),_0x579b75=undefined,_0x22da3a=undefined,_0x4edb1f=![];}else{if(_0x48f951['name']==='c'){if(_0x4c2e8f)throw new Error(_0x3d84ad(0xe8));_0x4c2e8f=!![],_0x3a1961=Boolean(Number[_0x3d84ad(0x198)](_0x48f951[_0x3d84ad(0x150)]['s']??'',0xa)),_0x2296b2=undefined,_0x3542f9=_0x48f951[_0x3d84ad(0x150)]['r']||undefined,_0x20a6a0=_0x3542f9?_0x18005d(_0x3542f9):undefined;if(_0x20a6a0)_0x115909=_0x20a6a0;else _0x115909=_0x579b75?{'row':_0x579b75[_0x3d84ad(0x1a1)],'col':_0x579b75[_0x3d84ad(0x160)]+0x1}:undefined;}else{if(_0x4c2e8f&&['f','v','t']['includes'](_0x48f951[_0x3d84ad(0x10c)])){_0x2296b2=_0x48f951[_0x3d84ad(0x10c)];if(_0x48f951[_0x3d84ad(0x10c)]==='f'&&_0x48f951[_0x3d84ad(0x150)]['t'])_0x3a1961=!![];}else{if(_0x4c2e8f&&_0x48f951[_0x3d84ad(0x10c)]==='r')_0x3a1961=!![];else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0x13e)){const _0x34549b=_0x48f951[_0x3d84ad(0x150)][_0x3d84ad(0x12f)];if(!_0x34549b)throw new Error(_0x3d84ad(0xe7));const _0x34de07=_0x34549b[_0x3d84ad(0xdf)](':');if(_0x34de07['length']>0x2)throw new Error(_0x3d84ad(0xe7));const _0x561200=_0x18005d(_0x34de07[0x0]),_0x47187c=_0x18005d(_0x34de07[0x1]??_0x34de07[0x0]);_0x417cd4[_0x3d84ad(0x16c)](_0x34549b),_0x21cffb(Math[_0x3d84ad(0x159)](_0x561200[_0x3d84ad(0x160)],_0x47187c[_0x3d84ad(0x160)]),0x1);}else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0x160)){const _0x474058=_0x59a558(_0x48f951['attributes'][_0x3d84ad(0x191)],0x4000),_0x39fcaa=_0x59a558(_0x48f951['attributes'][_0x3d84ad(0x159)],0x4000);if(_0x474058>_0x39fcaa)throw new Error(_0x3d84ad(0x101));_0x21cffb(_0x39fcaa,0x1);}else{if(_0x48f951[_0x3d84ad(0x10c)]===_0x3d84ad(0xf7)){const _0x2499a9=_0x48f951['attributes'][_0x3d84ad(0x12f)];if(!_0x2499a9)throw new Error(_0x3d84ad(0xdd));const _0xc1ee38=_0x2499a9[_0x3d84ad(0xdf)](':');if(_0xc1ee38[_0x3d84ad(0x197)]>0x2)throw new Error(_0x3d84ad(0xdd));const _0x3f5bad=_0x18005d(_0xc1ee38[0x0]),_0x3b7a99=_0x18005d(_0xc1ee38[0x1]??_0xc1ee38[0x0]);_0x21cffb(Math[_0x3d84ad(0x159)](_0x3f5bad[_0x3d84ad(0x160)],_0x3b7a99[_0x3d84ad(0x160)]));const _0x41f2c2=(Math[_0x3d84ad(0x10e)](_0x3b7a99[_0x3d84ad(0x1a1)]-_0x3f5bad['row'])+0x1)*(Math[_0x3d84ad(0x10e)](_0x3b7a99['col']-_0x3f5bad[_0x3d84ad(0x160)])+0x1);_0x1e2254+=_0x41f2c2+_0x20ba74++;if(_0x1e2254>MAX_ROWS)throw new Error('Worksheet\x20merge\x20work\x20exceeds\x20100000.');}}}}}}}}),_0x32d00f?.['on']('text',_0x164706=>{const _0x2ea5cc=_0x274540;if(_0x155f9e){_0x1a415d?.[_0x2ea5cc(0x16d)](_0x164706);return;}if(_0x4c2e8f&&_0x2296b2&&_0x164706)_0x3a1961=!![];}),_0x32d00f?.['on'](_0x274540(0x175),_0x2ab511=>{const _0x3f22b3=_0x274540;if(_0x155f9e){_0x1a415d&&!_0x1a415d[_0x3f22b3(0x104)]()&&(_0x4d5815(_0x1a415d[_0x3f22b3(0xf8)]),_0x1a415d=undefined);return;}if(_0x2ab511[_0x3f22b3(0x10c)]==='c'){!_0x3a1961&&_0x3542f9&&!_0x22da3a&&(_0x22da3a={'before':_0x579b75,'cells':[]});if(_0x22da3a){if(++_0x2cd051>0xf4240)throw new Error('Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.');_0x22da3a['cells'][_0x3f22b3(0xd2)]({'reference':_0x3542f9,'address':_0x20a6a0,'materialized':_0x3a1961});if(!_0x3542f9&&_0x3a1961)_0x4edb1f=!![];}if(_0x3a1961){if(!_0x22da3a||_0x3542f9){if(!_0x115909)throw new Error(_0x3f22b3(0x168));if(_0x115909[_0x3f22b3(0x160)]>MAX_XML_COLUMNS)throw new Error(_0x3f22b3(0x119));_0x21cffb(_0x115909[_0x3f22b3(0x160)]);}_0x579b75=_0x115909;}_0x4c2e8f=![],_0x115909=undefined,_0x3542f9=undefined,_0x20a6a0=undefined,_0x2296b2=undefined;}else{if(_0x2ab511[_0x3f22b3(0x10c)]==='row'){if(_0x22da3a&&_0x4edb1f)_0x23394c[_0x3f22b3(0xd2)](_0x22da3a);_0x22da3a=undefined,_0x4edb1f=![];}else{if(_0x2ab511[_0x3f22b3(0x10c)]===_0x2296b2)_0x2296b2=undefined;}}}),_0x32d00f?.['on']('error',_0x118ceb=>{const _0x28250f=_0x274540;throw new Error(_0x28250f(0x1bc)+_0x118ceb['message']);}),_0x5e3215['on']('error',_0x129f77),_0x5e3215['on'](_0x274540(0x185),_0x371106=>{const _0x4216ba=_0x274540;if(_0x170987)return;_0x3b76b8+=_0x371106['length'],_0x24040f?.[_0x4216ba(0xd2)](_0x371106);if(_0x3b76b8>MAX_EXPANDED){_0x129f77(new Error(_0x4216ba(0x19f)));return;}try{if(_0x4f50d4&&_0x2bfd2b)_0x4f50d4[_0x4216ba(0xfa)](_0x2bfd2b[_0x4216ba(0xfa)](_0x371106));if(_0x32d00f&&_0x22563d)_0x32d00f[_0x4216ba(0xfa)](_0x22563d[_0x4216ba(0xfa)](_0x371106));}catch(_0x49ccb6){_0x129f77(_0x49ccb6 instanceof Error?_0x49ccb6:new Error(_0x4216ba(0x1b8)));}}),_0x5e3215['on'](_0x274540(0xcb),()=>{const _0x48f0db=_0x274540;if(_0x170987)return;try{if(_0x4f50d4&&_0x2bfd2b)_0x4f50d4[_0x48f0db(0xfa)](_0x2bfd2b['end']())['close']();if(_0x32d00f&&_0x22563d)_0x32d00f[_0x48f0db(0xfa)](_0x22563d[_0x48f0db(0xcb)]())[_0x48f0db(0x14f)]();for(const _0x371cd9 of _0x23394c){let _0x4efcb5=_0x371cd9['before'];for(const _0x197087 of _0x371cd9['cells']){if(!_0x197087[_0x48f0db(0x1a8)]&&!(_0x197087[_0x48f0db(0x16f)]&&_0x417cd4[_0x48f0db(0x115)](_0x197087[_0x48f0db(0x16f)])))continue;const _0x47faf8=_0x197087['address']??(_0x4efcb5?{'row':_0x4efcb5[_0x48f0db(0x1a1)],'col':_0x4efcb5[_0x48f0db(0x160)]+0x1}:undefined);if(!_0x47faf8)throw new Error(_0x48f0db(0x168));if(_0x47faf8[_0x48f0db(0x160)]>MAX_XML_COLUMNS)throw new Error(_0x48f0db(0x119));_0x21cffb(_0x47faf8[_0x48f0db(0x160)]),_0x4efcb5=_0x47faf8;}}_0x23394c['length']=0x0,_0x417cd4['clear']();}catch(_0x19a539){_0x129f77(_0x19a539 instanceof Error?_0x19a539:new Error(_0x48f0db(0x1b8)));return;}if(_0x24040f)_0xb78830['set'](_0x5dd4b2,Buffer[_0x48f0db(0x120)](_0x24040f));_0x379d7a=undefined,_0x5c18d9[_0x48f0db(0xcf)]();});});}),_0x5c18d9['on']('end',()=>{const _0x3c4354=_0x4a11d4;if(_0x170987)return;if(_0x5c18d9[_0x3c4354(0x124)]!==_0x4ed417){_0x103439(new Error(_0x3c4354(0x181)));return;}if(!_0x5b36e1[_0x3c4354(0x115)](_0x3c4354(0x144))||!_0x5b36e1[_0x3c4354(0x115)](_0x3c4354(0xda)))_0x103439(new Error(_0x3c4354(0x1b0)));else _0x1a69e0();}),_0x5c18d9[_0x4a11d4(0xcf)]();});});}function valueOf(_0x5de7f6){const _0x28c2ef=a144_0x3b9e81,_0x2055f4=_0x5de7f6[_0x28c2ef(0x113)];if(_0x2055f4&&typeof _0x2055f4===_0x28c2ef(0x12a)&&(_0x28c2ef(0x148)in _0x2055f4||'sharedFormula'in _0x2055f4)){if(!('result'in _0x2055f4)||_0x2055f4[_0x28c2ef(0x158)]===undefined)throw new Error(_0x28c2ef(0x122));return _0x2055f4[_0x28c2ef(0x158)];}return _0x2055f4;}function convert(_0x50fccd,_0x5ba50c){const _0x3e2eb1=a144_0x3b9e81;if(_0x50fccd===null||_0x50fccd===undefined||_0x50fccd===''){if(_0x5ba50c[_0x3e2eb1(0xde)]&&!_0x5ba50c[_0x3e2eb1(0x1ab)])throw new Error('Required\x20value\x20is\x20missing.');return null;}if(typeof _0x50fccd==='string'&&Buffer['byteLength'](_0x50fccd,_0x3e2eb1(0x11a))>MAX_CELL)throw new Error(_0x3e2eb1(0x102));switch(_0x5ba50c[_0x3e2eb1(0x182)][_0x3e2eb1(0x12d)]()){case _0x3e2eb1(0xf6):case'text':case'textarea':if(typeof _0x50fccd!==_0x3e2eb1(0xf6))throw new Error(_0x3e2eb1(0xd3));return _0x50fccd;case'number':case _0x3e2eb1(0x136):case _0x3e2eb1(0x100):if(typeof _0x50fccd!==_0x3e2eb1(0x16a)||!Number[_0x3e2eb1(0x10d)](_0x50fccd)||Math['abs'](_0x50fccd)>Number['MAX_SAFE_INTEGER']||_0x5ba50c[_0x3e2eb1(0x182)]['toLowerCase']()===_0x3e2eb1(0x100)&&!Number[_0x3e2eb1(0x105)](_0x50fccd))throw new Error(_0x3e2eb1(0x118));return _0x50fccd;case _0x3e2eb1(0x10a):if(typeof _0x50fccd!==_0x3e2eb1(0x10a))throw new Error(_0x3e2eb1(0x149));return _0x50fccd;case _0x3e2eb1(0xd0):case _0x3e2eb1(0x167):if(!(_0x50fccd instanceof Date)||!Number[_0x3e2eb1(0x10d)](_0x50fccd['getTime']()))throw new Error(_0x3e2eb1(0x14b));return _0x50fccd[_0x3e2eb1(0x141)]();default:throw new Error(_0x3e2eb1(0x18b)+_0x5ba50c['type']+'.');}}export async function buildExcelManifest(_0x38c081){const _0x16bc1a=a144_0x3b9e81,_0xfc4c13=_0x38c081[_0x16bc1a(0x15e)]??0x1;if(!Number[_0x16bc1a(0x105)](_0xfc4c13)||_0xfc4c13<0x1||_0xfc4c13>MAX_ROWS)throw new Error(_0x16bc1a(0x139));if(_0x38c081[_0x16bc1a(0x194)]!==undefined&&(!Number[_0x16bc1a(0x105)](_0x38c081[_0x16bc1a(0x194)])||_0x38c081['batchSize']<0x1||_0x38c081[_0x16bc1a(0x194)]>0x3e8))throw new Error(_0x16bc1a(0x13a));if(a144_0x38ec43[_0x16bc1a(0x11e)](_0x38c081[_0x16bc1a(0x107)])[_0x16bc1a(0x12d)]()!==_0x16bc1a(0x109))throw new Error(_0x16bc1a(0xe6));const _0x2f0e01=await stat(_0x38c081[_0x16bc1a(0x107)]);if(!_0x2f0e01[_0x16bc1a(0x127)]()||_0x2f0e01[_0x16bc1a(0x1b6)]>MAX_FILE)throw new Error('XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.');const _0x3f027b=await readFile(_0x38c081[_0x16bc1a(0x107)]);if(_0x3f027b[_0x16bc1a(0x197)]>MAX_FILE)throw new Error(_0x16bc1a(0xd6));const _0x2deca7=_0x38c081['fields']['some'](_0xdc5b4b=>isImageContainer(_0xdc5b4b[_0x16bc1a(0x182)])&&Object['values'](_0x38c081[_0x16bc1a(0x16e)])[_0x16bc1a(0xe0)](_0xdc5b4b['code']))?new Map():undefined;await checkArchive(_0x3f027b,_0x2deca7);const _0x1ac04c=new a144_0x5b605a[(_0x16bc1a(0xf5))]();await _0x1ac04c[_0x16bc1a(0x13b)][_0x16bc1a(0x14a)](_0x3f027b,{'ignoreNodes':[_0x16bc1a(0x19e)]});const _0x4cb39c=_0x38c081[_0x16bc1a(0x164)];let _0x1f52a0;if(_0x4cb39c===undefined)_0x1f52a0=_0x1ac04c['worksheets'][0x0];else{if(typeof _0x4cb39c===_0x16bc1a(0xf6)&&_0x1ac04c[_0x16bc1a(0x151)]['some'](_0x548066=>_0x548066[_0x16bc1a(0x10c)]===_0x4cb39c))_0x1f52a0=_0x1ac04c[_0x16bc1a(0x151)][_0x16bc1a(0xfe)](_0x52caa1=>_0x52caa1['name']===_0x4cb39c);else{if(typeof _0x4cb39c==='number'||/^\d+$/[_0x16bc1a(0x11c)](_0x4cb39c)){const _0x2bbb9f=Number(_0x4cb39c);if(!Number[_0x16bc1a(0x105)](_0x2bbb9f)||_0x2bbb9f<0x1)throw new Error(_0x16bc1a(0xf0));_0x1f52a0=_0x1ac04c['worksheets'][_0x2bbb9f-0x1];}else _0x1f52a0=_0x1ac04c['worksheets'][_0x16bc1a(0xfe)](_0x1a1fd2=>_0x1a1fd2[_0x16bc1a(0x10c)]===_0x4cb39c);}}if(!_0x1f52a0)throw new Error(_0x16bc1a(0x15f));if(_0x1f52a0[_0x16bc1a(0x147)]>MAX_ROWS||_0x1f52a0[_0x16bc1a(0x14d)]>MAX_COLUMNS)throw new Error(_0x16bc1a(0x117));if((_0x1f52a0[_0x16bc1a(0xf8)]['merges']??[])['length'])throw new Error('Merged\x20cells\x20are\x20not\x20supported.');const _0x38d032=new Map();_0x1f52a0[_0x16bc1a(0x1ba)](_0xfc4c13)[_0x16bc1a(0x146)]((_0x12b481,_0x13a21d)=>{const _0x2a86f2=_0x16bc1a,_0x261e90=valueOf(_0x12b481);if(typeof _0x261e90!==_0x2a86f2(0xf6)||!_0x261e90[_0x2a86f2(0x133)]()||Buffer[_0x2a86f2(0x189)](_0x261e90)>MAX_CELL)throw new Error(_0x2a86f2(0x16b));if(_0x38d032['has'](_0x261e90))throw new Error(_0x2a86f2(0xf2)+_0x261e90+'.');_0x38d032[_0x2a86f2(0x126)](_0x261e90,_0x13a21d);});const _0x47f6f0=Object[_0x16bc1a(0xe1)](_0x38c081[_0x16bc1a(0x16e)]);if(!_0x47f6f0[_0x16bc1a(0x197)])throw new Error(_0x16bc1a(0x13c));const _0x58ec7a=new Map(_0x38c081[_0x16bc1a(0x134)][_0x16bc1a(0x1a3)](_0x4f8857=>[_0x4f8857['code'],_0x4f8857]));if(_0x58ec7a[_0x16bc1a(0x1b6)]!==_0x38c081[_0x16bc1a(0x134)]['length'])throw new Error(_0x16bc1a(0x11f));if(_0x38c081[_0x16bc1a(0x134)]['some'](_0x554dd6=>_0x554dd6[_0x16bc1a(0x182)]['toLowerCase']()==='serial_number'))throw new Error(_0x16bc1a(0x142));const _0x1971d5=new Set();for(const [_0x92d019,_0x4747d5]of _0x47f6f0){const _0x2516f5=_0x58ec7a['get'](_0x4747d5);if(!_0x38d032['has'](_0x92d019))throw new Error('Unknown\x20Excel\x20header:\x20'+_0x92d019+'.');if(!_0x2516f5||RESERVED[_0x16bc1a(0x115)](_0x4747d5)||_0x2516f5[_0x16bc1a(0x1ab)])throw new Error(_0x16bc1a(0xc8)+_0x4747d5+'.');if(_0x1971d5[_0x16bc1a(0x115)](_0x4747d5))throw new Error('Duplicate\x20mapping\x20target:\x20'+_0x4747d5+'.');if(!TYPES[_0x16bc1a(0x115)](_0x2516f5[_0x16bc1a(0x182)][_0x16bc1a(0x12d)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x2516f5[_0x16bc1a(0x182)]+'.');_0x1971d5[_0x16bc1a(0x16c)](_0x4747d5);}for(const _0x3d95a1 of _0x38c081['fields']){if(_0x3d95a1['required']&&!_0x3d95a1[_0x16bc1a(0x1ab)]&&!RESERVED[_0x16bc1a(0x115)](_0x3d95a1[_0x16bc1a(0xdb)])&&!_0x1971d5[_0x16bc1a(0x115)](_0x3d95a1['code']))throw new Error('Required\x20field\x20is\x20not\x20mapped:\x20'+_0x3d95a1[_0x16bc1a(0xdb)]+'.');}const _0x8e1420={'fileHash':hash(_0x3f027b),'mappingHash':hash(JSON[_0x16bc1a(0x17c)]([..._0x47f6f0]['sort'](([_0x3ea98e],[_0x42510e])=>_0x3ea98e[_0x16bc1a(0xdc)](_0x42510e)))),'schemaHash':hash(JSON[_0x16bc1a(0x17c)]([..._0x38c081[_0x16bc1a(0x134)]][_0x16bc1a(0x13f)]((_0x5d4e82,_0x248884)=>_0x5d4e82['code']['localeCompare'](_0x248884[_0x16bc1a(0xdb)])))),'sheet':_0x1f52a0['name'],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x5c30e3=_0x47f6f0['filter'](([,_0x2391c3])=>isImageContainer(_0x58ec7a[_0x16bc1a(0x143)](_0x2391c3)[_0x16bc1a(0x182)])),_0x2d9669=_0x5c30e3['filter'](([,_0x502fe3])=>_0x58ec7a['get'](_0x502fe3)[_0x16bc1a(0x182)][_0x16bc1a(0x12d)]()===_0x16bc1a(0x193))['map'](([,_0x20220e])=>_0x20220e);if(_0x2d9669[_0x16bc1a(0x197)])_0x8e1420[_0x16bc1a(0x157)]=_0x2d9669;const _0x295f97=_0x2deca7?resolveWorksheetImages(_0x2deca7,_0x1f52a0[_0x16bc1a(0x10c)],new Set(_0x5c30e3['map'](([_0x475d18])=>_0x38d032[_0x16bc1a(0x143)](_0x475d18)))):[],_0x597414=new Map();for(const _0x4254da of _0x295f97){const _0x2b8bef=_0x4254da[_0x16bc1a(0x1a1)]+':'+_0x4254da['col'],_0x37f424=_0x597414[_0x16bc1a(0x143)](_0x2b8bef)??[];_0x37f424[_0x16bc1a(0xd2)](_0x4254da),_0x597414['set'](_0x2b8bef,_0x37f424);}const _0x350528=new Map();let _0x576e02=0x0;_0x5c30e3[_0x16bc1a(0x197)]&&(_0x8e1420[_0x16bc1a(0x145)]=_0x5c30e3[_0x16bc1a(0x1a3)](([,_0x208fa5])=>_0x208fa5),_0x8e1420[_0x16bc1a(0x140)]=[],_0x8e1420[_0x16bc1a(0x165)]=0x1,_0x8e1420['media']=[]);const _0x58bf52=Math['max'](0x0,..._0x295f97[_0x16bc1a(0x1a3)](_0x203b64=>_0x203b64['row']));let _0x15bdd1=0x0;const _0x2e4068=new Set(_0x47f6f0[_0x16bc1a(0x1a3)](([_0x2f8547])=>_0x38d032[_0x16bc1a(0x143)](_0x2f8547)));for(let _0x495e6e=_0xfc4c13+0x1;_0x495e6e<=Math[_0x16bc1a(0x159)](_0x1f52a0['rowCount'],_0x58bf52);_0x495e6e++){const _0x25f5f7=_0x1f52a0[_0x16bc1a(0x1ba)](_0x495e6e);if(_0x25f5f7['hidden']||_0x295f97[_0x16bc1a(0x180)](_0x75e11e=>_0x75e11e[_0x16bc1a(0x1a1)]===_0x495e6e&&_0x75e11e[_0x16bc1a(0xd1)]))_0x15bdd1++;let _0x4b62e0=_0x295f97[_0x16bc1a(0x180)](_0x2212a7=>_0x2212a7['row']===_0x495e6e);_0x25f5f7[_0x16bc1a(0x146)](_0x3e3f64=>{const _0x5c12e0=_0x16bc1a;if(_0x3e3f64[_0x5c12e0(0x113)]!==null&&_0x3e3f64[_0x5c12e0(0x113)]!==undefined&&_0x3e3f64[_0x5c12e0(0x113)]!=='')_0x4b62e0=!![];});if(!_0x4b62e0){_0x8e1420[_0x16bc1a(0x18d)][_0x16bc1a(0xd2)](_0x495e6e);continue;}const _0x1c4522=Object[_0x16bc1a(0x131)](null);_0x25f5f7['eachCell']((_0x54846b,_0xbe963a)=>{const _0x1dfc26=_0x16bc1a;if(_0x2e4068['has'](_0xbe963a))return;try{const _0xcb7981=valueOf(_0x54846b);if(typeof _0xcb7981===_0x1dfc26(0xf6)&&Buffer[_0x1dfc26(0x189)](_0xcb7981,_0x1dfc26(0x11a))>MAX_CELL)throw new Error(_0x1dfc26(0x102));}catch(_0x56954b){_0x8e1420[_0x1dfc26(0x188)]['push']({'rowNumber':_0x495e6e,'field':_0x54846b[_0x1dfc26(0x135)],'message':_0x56954b[_0x1dfc26(0x190)]});}});for(const [_0x71f993,_0xe2e3ef]of _0x47f6f0){try{const _0x48c135=_0x25f5f7[_0x16bc1a(0xc9)](_0x38d032['get'](_0x71f993)),_0x204f7c=_0x58ec7a[_0x16bc1a(0x143)](_0xe2e3ef);if(!isImageContainer(_0x204f7c['type'])){_0x1c4522[_0xe2e3ef]=convert(valueOf(_0x48c135),_0x204f7c);continue;}const _0x4e3de0=_0x597414['get'](_0x495e6e+':'+_0x38d032[_0x16bc1a(0x143)](_0x71f993))??[];if(_0x4e3de0[_0x16bc1a(0x180)](_0xc4a393=>_0xc4a393[_0x16bc1a(0x108)]))throw Error(_0x4e3de0['find'](_0x26a645=>_0x26a645[_0x16bc1a(0x108)])[_0x16bc1a(0x108)]);if(_0x48c135['value']!=null&&_0x48c135[_0x16bc1a(0x113)]!==''&&!_0x4e3de0[_0x16bc1a(0x180)](_0x27b6a2=>_0x27b6a2[_0x16bc1a(0x11b)]))throw Error(_0x16bc1a(0x173));const _0x477eb8=[];for(const _0x51ac48 of _0x4e3de0)for(const _0x52c785 of _0x51ac48['media']){const _0x4d16a6=_0x2deca7['get'](_0x52c785);if(!_0x4d16a6)throw Error(_0x16bc1a(0xeb)+_0x52c785+'.');const _0x3b9712=hash(_0x4d16a6),_0xc69448=_0x350528['get'](_0x3b9712)??validateImageBytes(_0x4d16a6);if(!_0x350528[_0x16bc1a(0x115)](_0xc69448['contentHash'])){_0x576e02+=_0xc69448[_0x16bc1a(0x1b6)];if(_0x576e02>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x350528[_0x16bc1a(0x126)](_0xc69448[_0x16bc1a(0x114)],_0xc69448);}_0x477eb8[_0x16bc1a(0xd2)](_0xc69448['contentHash']);}if(!_0x477eb8[_0x16bc1a(0x197)]&&_0x204f7c[_0x16bc1a(0xde)])throw Error('Required\x20image\x20value\x20is\x20missing.');if(_0x477eb8['length'])_0x8e1420[_0x16bc1a(0x140)]['push']({'rowNumber':_0x495e6e,'field':_0xe2e3ef,'hashes':_0x477eb8});_0x1c4522[_0xe2e3ef]=_0x477eb8[_0x16bc1a(0x1a3)](_0x4910f7=>{const _0xd0f39e=_0x16bc1a,_0x24e257=_0x350528['get'](_0x4910f7),_0x1a0ed7=_0x24e257['type']==='image/jpeg'?_0xd0f39e(0x192):_0x24e257[_0xd0f39e(0x182)][_0xd0f39e(0x1b1)](0x6),_0x1ddf11=_0x4910f7+'.'+_0x1a0ed7,_0x909620=_0xd0f39e(0xd8)+'0'['repeat'](0x40)+'/'+_0x1ddf11;return _0x204f7c[_0xd0f39e(0x182)]['toLowerCase']()===_0xd0f39e(0x193)?{'fileName':_0x1ddf11,'filePath':_0x909620}:{'key':_0x909620,'name':_0x1ddf11,'type':_0x24e257[_0xd0f39e(0x182)],'size':_0x24e257[_0xd0f39e(0x1b6)]};});}catch(_0x4690b3){_0x8e1420[_0x16bc1a(0x188)][_0x16bc1a(0xd2)]({'rowNumber':_0x495e6e,'field':_0xe2e3ef,'message':_0x4690b3[_0x16bc1a(0x190)]});}}_0x8e1420[_0x16bc1a(0x178)][_0x16bc1a(0xd2)]({'rowNumber':_0x495e6e,'values':_0x1c4522});}if(_0x8e1420['media'])_0x8e1420[_0x16bc1a(0x116)]=[..._0x350528['values']()];if(_0x15bdd1)_0x8e1420[_0x16bc1a(0x11d)][_0x16bc1a(0xd2)](_0x15bdd1+_0x16bc1a(0x17d));return _0x8e1420;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1b0009,_0x369254){const _0x268ceb=a145_0x3d4c,_0x59cea2=_0x1b0009();while(!![]){try{const _0x29305e=-parseInt(_0x268ceb(0xc4))/0x1+-parseInt(_0x268ceb(0xd1))/0x2+parseInt(_0x268ceb(0xd4))/0x3+parseInt(_0x268ceb(0xc9))/0x4+-parseInt(_0x268ceb(0xbf))/0x5*(parseInt(_0x268ceb(0xaa))/0x6)+-parseInt(_0x268ceb(0xa9))/0x7*(parseInt(_0x268ceb(0xad))/0x8)+-parseInt(_0x268ceb(0xce))/0x9*(-parseInt(_0x268ceb(0xb0))/0xa);if(_0x29305e===_0x369254)break;else _0x59cea2['push'](_0x59cea2['shift']());}catch(_0xfff043){_0x59cea2['push'](_0x59cea2['shift']());}}}(a145_0x47a7,0x1cc69));import{createRequire}from'node:module';function a145_0x3d4c(_0x37c1e8,_0x2a11c1){_0x37c1e8=_0x37c1e8-0xa0;const _0x47a7a4=a145_0x47a7();let _0x3d4c40=_0x47a7a4[_0x37c1e8];return _0x3d4c40;}import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a145_0x47a7(){const _0x3fbe92=['readUInt16LE','push','775292QgRAGD','readUInt32BE','Missing\x20GIF\x20trailer.','isSafeInteger','message','10917eQWxMw','GIF\x20frame\x20exceeds\x20canvas.','equals','7082sexQKW','digest','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','574911VmxATC','length','Truncated\x20GIF.','decode','read','Invalid\x20GIF\x20block.','Invalid\x20image:\x20','Invalid\x20PNG\x20header.','IDAT','sync','GIF89a','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','subarray','hex','ceil','118412HqHnYn','36EfYcnG','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','24qQejkY','acTL','update','350rczETe','IEND','Truncated\x20PNG\x20chunk.','height','Invalid\x20GIF\x20trailer.','numFrames','Truncated\x20PNG\x20data.','max','IHDR','sha256','includes','Invalid\x20PNG\x20end.','GIF87a','width','Missing\x20PNG\x20data/end.','118730FmDRjf','Truncated\x20GIF\x20data.','decodeAndBlitFrameRGBA','toString','omggif','113285kNvHmR','ascii','from'];a145_0x47a7=function(){return _0x3fbe92;};return a145_0x47a7();}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x4f9075,_0x1cfdd1){const _0x52512e=a145_0x3d4c;if(!Number[_0x52512e(0xcc)](_0x4f9075)||!Number[_0x52512e(0xcc)](_0x1cfdd1)||_0x4f9075<0x1||_0x1cfdd1<0x1||_0x4f9075*_0x1cfdd1>MAX_PIXELS)throw Error(_0x52512e(0xd3));}function validateGif(_0x1a8dde){const _0x2daba5=a145_0x3d4c;let _0x1f56db=0xd,_0x3dde66=0x0,_0x1b2cfe=0x0;const _0x23f4b3=_0x1a8dde[_0x2daba5(0xc7)](0x6),_0x557526=_0x1a8dde[_0x2daba5(0xc7)](0x8),_0x5f5c0a=_0x1a8dde[0xa]&0x80?0x1<<(_0x1a8dde[0xa]&0x7)+0x1:0x0,_0x1cd769=_0x5bd583=>{const _0x1c6d5c=_0x2daba5;if(_0x1f56db+_0x5bd583>_0x1a8dde[_0x1c6d5c(0xd5)])throw Error(_0x1c6d5c(0xc0));};_0x1f56db+=_0x5f5c0a*0x3,_0x1cd769(0x0);const _0x127a43=()=>{const _0x4dda04=_0x2daba5,_0x2d0d41=[];while(!![]){_0x1cd769(0x1);const _0x9b4f9b=_0x1a8dde[_0x1f56db++];if(!_0x9b4f9b)break;_0x1cd769(_0x9b4f9b),_0x2d0d41[_0x4dda04(0xc8)](_0x1a8dde[_0x4dda04(0xa6)](_0x1f56db,_0x1f56db+_0x9b4f9b)),_0x1f56db+=_0x9b4f9b;}return Buffer['concat'](_0x2d0d41);};while(_0x1f56db<_0x1a8dde[_0x2daba5(0xd5)]){const _0x36f0e4=_0x1a8dde[_0x1f56db++];if(_0x36f0e4===0x3b){if(!_0x3dde66||_0x1f56db!==_0x1a8dde[_0x2daba5(0xd5)])throw Error(_0x2daba5(0xb4));return;}if(_0x36f0e4===0x21){_0x1cd769(0x1),_0x1f56db++,_0x127a43();continue;}if(_0x36f0e4!==0x2c)throw Error(_0x2daba5(0xd9));_0x1cd769(0x9);const _0x3a6a84=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db),_0x48a8ed=_0x1a8dde['readUInt16LE'](_0x1f56db+0x2),_0x277bfc=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x4),_0x3dfcf9=_0x1a8dde[_0x2daba5(0xc7)](_0x1f56db+0x6),_0x2ccc44=_0x1a8dde[_0x1f56db+0x8];_0x1f56db+=0x9,dimensions(_0x277bfc,_0x3dfcf9);if(_0x3a6a84+_0x277bfc>_0x23f4b3||_0x48a8ed+_0x3dfcf9>_0x557526||++_0x3dde66>0x2710||(_0x1b2cfe+=_0x23f4b3*_0x557526)>MAX_PIXELS)throw Error('GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.');const _0x34d2da=_0x2ccc44&0x80?0x1<<(_0x2ccc44&0x7)+0x1:_0x5f5c0a;if(!_0x34d2da)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x2ccc44&0x80&&(_0x1cd769(_0x34d2da*0x3),_0x1f56db+=_0x34d2da*0x3);_0x1cd769(0x1);const _0x5bfdf4=_0x1a8dde[_0x1f56db++];if(_0x5bfdf4<0x2||_0x5bfdf4>0x8)throw Error('Invalid\x20GIF\x20LZW\x20code\x20size.');const _0x579f4d=_0x127a43(),_0x4169a2=0x1<<_0x5bfdf4,_0x5b0ea0=_0x4169a2+0x1;let _0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4093c7=0x0,_0x4e42fb=-0x1,_0x176e5a=0x0,_0x2c67d9=![];const _0x2d36d5=new Uint32Array(0x1000),_0x5edb6c=new Uint16Array(0x1000);for(let _0x3bf999=0x0;_0x3bf999<_0x4169a2;_0x3bf999++){_0x2d36d5[_0x3bf999]=0x1,_0x5edb6c[_0x3bf999]=_0x3bf999;}while(_0x4093c7+_0x2d596f<=_0x579f4d[_0x2daba5(0xd5)]*0x8){let _0x5f09b7=0x0;for(let _0x2089fd=0x0;_0x2089fd<_0x2d596f;_0x2089fd++,_0x4093c7++)_0x5f09b7|=(_0x579f4d[_0x4093c7>>0x3]>>(_0x4093c7&0x7)&0x1)<<_0x2089fd;if(_0x5f09b7===_0x4169a2){_0x2d596f=_0x5bfdf4+0x1,_0x54959f=_0x5b0ea0+0x1,_0x4e42fb=-0x1;continue;}if(_0x5f09b7===_0x5b0ea0){_0x2c67d9=!![];break;}if(_0x5f09b7>_0x54959f||_0x5f09b7===_0x54959f&&_0x4e42fb<0x0||_0x4e42fb<0x0&&_0x5f09b7>=_0x4169a2)throw Error(_0x2daba5(0xa4));const _0x5806fa=_0x5f09b7===_0x54959f?_0x2d36d5[_0x4e42fb]+0x1:_0x2d36d5[_0x5f09b7],_0x5e40df=_0x5f09b7===_0x54959f?_0x5edb6c[_0x4e42fb]:_0x5edb6c[_0x5f09b7];if(!_0x5806fa||_0x5e40df>=_0x34d2da||(_0x176e5a+=_0x5806fa)>_0x277bfc*_0x3dfcf9)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x4e42fb>=0x0&&_0x54959f<0x1000){_0x2d36d5[_0x54959f]=_0x2d36d5[_0x4e42fb]+0x1,_0x5edb6c[_0x54959f]=Math[_0x2daba5(0xb7)](_0x5edb6c[_0x4e42fb],_0x5e40df),_0x54959f++;if(_0x54959f===0x1<<_0x2d596f&&_0x2d596f<0xc)_0x2d596f++;}_0x4e42fb=_0x5f09b7;}if(!_0x2c67d9||_0x176e5a!==_0x277bfc*_0x3dfcf9)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x2daba5(0xcb));}export function validateImageBytes(_0x1f34a0){const _0x53c214=a145_0x3d4c;if(!_0x1f34a0[_0x53c214(0xd5)]||_0x1f34a0['length']>0xa*0x400*0x400)throw Error(_0x53c214(0xac));let _0x403075;try{if(_0x1f34a0['subarray'](0x0,0x8)[_0x53c214(0xd0)](Buffer[_0x53c214(0xc6)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1f34a0['length']<0x21||_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),0xc,0x10)!==_0x53c214(0xb8))throw Error(_0x53c214(0xa0));dimensions(_0x1f34a0['readUInt32BE'](0x10),_0x1f34a0[_0x53c214(0xca)](0x14));const _0x3639fb=_0x1f34a0[_0x53c214(0xca)](0x10),_0x59c963=_0x1f34a0['readUInt32BE'](0x14),_0x27fefe=_0x1f34a0[0x18],_0x1bed4e=_0x1f34a0[0x19],_0x158ef9=_0x1f34a0[0x1c],_0x580336={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x1bed4e];if(!_0x580336||![0x1,0x2,0x4,0x8,0x10][_0x53c214(0xba)](_0x27fefe)||_0x158ef9>0x1)throw Error(_0x53c214(0xab));const _0x4cc08a=_0x3d029e=>Math[_0x53c214(0xa8)](_0x3d029e*_0x580336*_0x27fefe/0x8)+0x1;let _0x47acf2=_0x4cc08a(_0x3639fb)*_0x59c963;if(_0x158ef9){_0x47acf2=0x0;for(const [_0x198426,_0x579c99,_0x3d84e7,_0x5f8d2c]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 _0x2e542d=Math['max'](0x0,Math[_0x53c214(0xa8)]((_0x3639fb-_0x198426)/_0x3d84e7)),_0x2aa427=Math[_0x53c214(0xb7)](0x0,Math['ceil']((_0x59c963-_0x579c99)/_0x5f8d2c));if(_0x2e542d&&_0x2aa427)_0x47acf2+=_0x4cc08a(_0x2e542d)*_0x2aa427;}}let _0x101a81=0x8,_0x521b30=![];const _0x49cea1=[];while(_0x101a81<_0x1f34a0[_0x53c214(0xd5)]){if(_0x101a81+0xc>_0x1f34a0['length'])throw Error(_0x53c214(0xb2));const _0x9de112=_0x1f34a0[_0x53c214(0xca)](_0x101a81),_0x2c6c07=_0x1f34a0[_0x53c214(0xc2)](_0x53c214(0xc5),_0x101a81+0x4,_0x101a81+0x8);if(_0x2c6c07===_0x53c214(0xae))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x101a81+_0x9de112+0xc>_0x1f34a0[_0x53c214(0xd5)])throw Error(_0x53c214(0xb6));if(_0x2c6c07===_0x53c214(0xa1))_0x49cea1[_0x53c214(0xc8)](_0x1f34a0[_0x53c214(0xa6)](_0x101a81+0x8,_0x101a81+0x8+_0x9de112));_0x101a81+=_0x9de112+0xc;if(_0x2c6c07===_0x53c214(0xb1)){if(_0x9de112||_0x101a81!==_0x1f34a0['length'])throw Error(_0x53c214(0xbb));_0x521b30=!![];break;}}if(!_0x521b30||!_0x49cea1['length'])throw Error(_0x53c214(0xbe));if(inflateSync(Buffer['concat'](_0x49cea1),{'maxOutputLength':_0x47acf2+0x1})[_0x53c214(0xd5)]!==_0x47acf2)throw Error('Invalid\x20PNG\x20decoded\x20scanline\x20size.');const {PNG:_0x1a0b95}=require('pngjs'),_0xdb3d03=_0x1a0b95[_0x53c214(0xa2)][_0x53c214(0xd8)](_0x1f34a0,{'checkCRC':!![]});dimensions(_0xdb3d03[_0x53c214(0xbd)],_0xdb3d03['height']),_0x403075='image/png';}else{if(_0x1f34a0[0x0]===0xff&&_0x1f34a0[0x1]===0xd8){if(_0x1f34a0['at'](-0x2)!==0xff||_0x1f34a0['at'](-0x1)!==0xd9)throw Error('Truncated\x20JPEG.');const _0x48dd56=require('jpeg-js'),_0x5db14b=_0x48dd56[_0x53c214(0xd7)](_0x1f34a0,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x5db14b[_0x53c214(0xbd)],_0x5db14b[_0x53c214(0xb3)]),_0x403075='image/jpeg';}else{if([_0x53c214(0xbc),_0x53c214(0xa3)][_0x53c214(0xba)](_0x1f34a0['toString'](_0x53c214(0xc5),0x0,0x6))){if(_0x1f34a0[_0x53c214(0xd5)]<0xe||_0x1f34a0['at'](-0x1)!==0x3b)throw Error(_0x53c214(0xd6));dimensions(_0x1f34a0[_0x53c214(0xc7)](0x6),_0x1f34a0[_0x53c214(0xc7)](0x8)),validateGif(_0x1f34a0);const {GifReader:_0x2fe4ff}=require(_0x53c214(0xc3)),_0x4d628d=new _0x2fe4ff(_0x1f34a0);dimensions(_0x4d628d[_0x53c214(0xbd)],_0x4d628d[_0x53c214(0xb3)]);const _0x3d9586=_0x4d628d[_0x53c214(0xb5)]();if(!_0x3d9586||_0x3d9586>0x2710||_0x3d9586*_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]>MAX_PIXELS)throw Error(_0x53c214(0xa5));const _0x865fb7=new Uint8Array(_0x4d628d[_0x53c214(0xbd)]*_0x4d628d[_0x53c214(0xb3)]*0x4);for(let _0x4c0e04=0x0;_0x4c0e04<_0x3d9586;_0x4c0e04++){const _0xa3b2a4=_0x4d628d['frameInfo'](_0x4c0e04);if(_0xa3b2a4['x']+_0xa3b2a4[_0x53c214(0xbd)]>_0x4d628d[_0x53c214(0xbd)]||_0xa3b2a4['y']+_0xa3b2a4['height']>_0x4d628d[_0x53c214(0xb3)])throw Error(_0x53c214(0xcf));_0x4d628d[_0x53c214(0xc1)](_0x4c0e04,_0x865fb7);}_0x403075='image/gif';}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x266100){throw Error(_0x53c214(0xda)+_0x266100[_0x53c214(0xcd)]);}return{'contentHash':createHash(_0x53c214(0xb9))[_0x53c214(0xaf)](_0x1f34a0)[_0x53c214(0xd2)](_0x53c214(0xa7)),'type':_0x403075,'size':_0x1f34a0['length'],'bytes':_0x1f34a0};}
|
|
1
|
+
(function(_0x3ab5e1,_0x5504b6){const _0x860f0e=a145_0x4098,_0x29a126=_0x3ab5e1();while(!![]){try{const _0x2b83d4=parseInt(_0x860f0e(0x187))/0x1+-parseInt(_0x860f0e(0x177))/0x2+-parseInt(_0x860f0e(0x188))/0x3+-parseInt(_0x860f0e(0x18c))/0x4*(parseInt(_0x860f0e(0x162))/0x5)+parseInt(_0x860f0e(0x171))/0x6+parseInt(_0x860f0e(0x16b))/0x7+parseInt(_0x860f0e(0x195))/0x8;if(_0x2b83d4===_0x5504b6)break;else _0x29a126['push'](_0x29a126['shift']());}catch(_0xac7fcb){_0x29a126['push'](_0x29a126['shift']());}}}(a145_0xdee5,0xe68b2));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 a145_0xdee5(){const _0x2564b5=['max','5unRuXU','Invalid\x20PNG\x20color/depth/interlace.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Truncated\x20PNG\x20data.','concat','Invalid\x20GIF\x20trailer.','omggif','readUInt16LE','isSafeInteger','12299399fyxMFR','sha256','includes','length','Invalid\x20PNG\x20decoded\x20scanline\x20size.','digest','6232056dHLVwR','Animated\x20PNG\x20is\x20not\x20supported.','push','hex','Missing\x20PNG\x20data/end.','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','2697904CuamDE','Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.','Missing\x20GIF\x20trailer.','GIF87a','Truncated\x20GIF\x20data.','decode','Invalid\x20GIF\x20LZW\x20code\x20size.','image/jpeg','frameInfo','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','width','Truncated\x20JPEG.','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','message','Truncated\x20GIF.','acTL','279158qKvAKQ','237909NIVars','pngjs','GIF\x20frame\x20exceeds\x20canvas.','IDAT','6764524vfldBA','equals','Invalid\x20GIF\x20LZW\x20pixel\x20data.','GIF89a','Invalid\x20GIF\x20block.','ceil','ascii','toString','subarray','7910408ZRJwmD','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','Truncated\x20PNG\x20chunk.','readUInt32BE','Invalid\x20PNG\x20header.','from','IHDR','height','GIF\x20image\x20has\x20no\x20palette.'];a145_0xdee5=function(){return _0x2564b5;};return a145_0xdee5();}function a145_0x4098(_0x346844,_0x2bce9a){_0x346844=_0x346844-0x15a;const _0xdee50e=a145_0xdee5();let _0x40981f=_0xdee50e[_0x346844];return _0x40981f;}function dimensions(_0x416f9e,_0x2707d){const _0x4c328e=a145_0x4098;if(!Number[_0x4c328e(0x16a)](_0x416f9e)||!Number[_0x4c328e(0x16a)](_0x2707d)||_0x416f9e<0x1||_0x2707d<0x1||_0x416f9e*_0x2707d>MAX_PIXELS)throw Error(_0x4c328e(0x178));}function validateGif(_0x9da5ec){const _0x593c27=a145_0x4098;let _0x453280=0xd,_0x18d041=0x0,_0x2007b5=0x0;const _0x3a30cb=_0x9da5ec[_0x593c27(0x169)](0x6),_0x525ce6=_0x9da5ec['readUInt16LE'](0x8),_0x147a3f=_0x9da5ec[0xa]&0x80?0x1<<(_0x9da5ec[0xa]&0x7)+0x1:0x0,_0x5d29e4=_0x37407a=>{const _0x1355ce=_0x593c27;if(_0x453280+_0x37407a>_0x9da5ec[_0x1355ce(0x16e)])throw Error(_0x1355ce(0x17b));};_0x453280+=_0x147a3f*0x3,_0x5d29e4(0x0);const _0x588f18=()=>{const _0x1fe8c5=_0x593c27,_0xa06e0f=[];while(!![]){_0x5d29e4(0x1);const _0x233866=_0x9da5ec[_0x453280++];if(!_0x233866)break;_0x5d29e4(_0x233866),_0xa06e0f[_0x1fe8c5(0x173)](_0x9da5ec['subarray'](_0x453280,_0x453280+_0x233866)),_0x453280+=_0x233866;}return Buffer[_0x1fe8c5(0x166)](_0xa06e0f);};while(_0x453280<_0x9da5ec[_0x593c27(0x16e)]){const _0x570288=_0x9da5ec[_0x453280++];if(_0x570288===0x3b){if(!_0x18d041||_0x453280!==_0x9da5ec[_0x593c27(0x16e)])throw Error(_0x593c27(0x167));return;}if(_0x570288===0x21){_0x5d29e4(0x1),_0x453280++,_0x588f18();continue;}if(_0x570288!==0x2c)throw Error(_0x593c27(0x190));_0x5d29e4(0x9);const _0x2f83f7=_0x9da5ec['readUInt16LE'](_0x453280),_0x506308=_0x9da5ec['readUInt16LE'](_0x453280+0x2),_0x16c2fa=_0x9da5ec[_0x593c27(0x169)](_0x453280+0x4),_0x433bdc=_0x9da5ec[_0x593c27(0x169)](_0x453280+0x6),_0x578d07=_0x9da5ec[_0x453280+0x8];_0x453280+=0x9,dimensions(_0x16c2fa,_0x433bdc);if(_0x2f83f7+_0x16c2fa>_0x3a30cb||_0x506308+_0x433bdc>_0x525ce6||++_0x18d041>0x2710||(_0x2007b5+=_0x3a30cb*_0x525ce6)>MAX_PIXELS)throw Error(_0x593c27(0x196));const _0x48f7e0=_0x578d07&0x80?0x1<<(_0x578d07&0x7)+0x1:_0x147a3f;if(!_0x48f7e0)throw Error(_0x593c27(0x160));_0x578d07&0x80&&(_0x5d29e4(_0x48f7e0*0x3),_0x453280+=_0x48f7e0*0x3);_0x5d29e4(0x1);const _0x4b3cc6=_0x9da5ec[_0x453280++];if(_0x4b3cc6<0x2||_0x4b3cc6>0x8)throw Error(_0x593c27(0x17d));const _0x539de0=_0x588f18(),_0x406946=0x1<<_0x4b3cc6,_0x253dcf=_0x406946+0x1;let _0x259cad=_0x4b3cc6+0x1,_0x25cbfe=_0x253dcf+0x1,_0x23e19d=0x0,_0x42b148=-0x1,_0x3c420c=0x0,_0x40e1ee=![];const _0x1fbd6f=new Uint32Array(0x1000),_0x44170b=new Uint16Array(0x1000);for(let _0x1b42ce=0x0;_0x1b42ce<_0x406946;_0x1b42ce++){_0x1fbd6f[_0x1b42ce]=0x1,_0x44170b[_0x1b42ce]=_0x1b42ce;}while(_0x23e19d+_0x259cad<=_0x539de0[_0x593c27(0x16e)]*0x8){let _0x110beb=0x0;for(let _0x1f8016=0x0;_0x1f8016<_0x259cad;_0x1f8016++,_0x23e19d++)_0x110beb|=(_0x539de0[_0x23e19d>>0x3]>>(_0x23e19d&0x7)&0x1)<<_0x1f8016;if(_0x110beb===_0x406946){_0x259cad=_0x4b3cc6+0x1,_0x25cbfe=_0x253dcf+0x1,_0x42b148=-0x1;continue;}if(_0x110beb===_0x253dcf){_0x40e1ee=!![];break;}if(_0x110beb>_0x25cbfe||_0x110beb===_0x25cbfe&&_0x42b148<0x0||_0x42b148<0x0&&_0x110beb>=_0x406946)throw Error(_0x593c27(0x180));const _0xa8726b=_0x110beb===_0x25cbfe?_0x1fbd6f[_0x42b148]+0x1:_0x1fbd6f[_0x110beb],_0x4b9569=_0x110beb===_0x25cbfe?_0x44170b[_0x42b148]:_0x44170b[_0x110beb];if(!_0xa8726b||_0x4b9569>=_0x48f7e0||(_0x3c420c+=_0xa8726b)>_0x16c2fa*_0x433bdc)throw Error(_0x593c27(0x18e));if(_0x42b148>=0x0&&_0x25cbfe<0x1000){_0x1fbd6f[_0x25cbfe]=_0x1fbd6f[_0x42b148]+0x1,_0x44170b[_0x25cbfe]=Math[_0x593c27(0x161)](_0x44170b[_0x42b148],_0x4b9569),_0x25cbfe++;if(_0x25cbfe===0x1<<_0x259cad&&_0x259cad<0xc)_0x259cad++;}_0x42b148=_0x110beb;}if(!_0x40e1ee||_0x3c420c!==_0x16c2fa*_0x433bdc)throw Error(_0x593c27(0x176));}throw Error(_0x593c27(0x179));}export function validateImageBytes(_0x44eac8){const _0x28f786=a145_0x4098;if(!_0x44eac8[_0x28f786(0x16e)]||_0x44eac8['length']>0xa*0x400*0x400)throw Error(_0x28f786(0x164));let _0x564252;try{if(_0x44eac8[_0x28f786(0x194)](0x0,0x8)[_0x28f786(0x18d)](Buffer[_0x28f786(0x15d)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x44eac8[_0x28f786(0x16e)]<0x21||_0x44eac8[_0x28f786(0x193)](_0x28f786(0x192),0xc,0x10)!==_0x28f786(0x15e))throw Error(_0x28f786(0x15c));dimensions(_0x44eac8['readUInt32BE'](0x10),_0x44eac8[_0x28f786(0x15b)](0x14));const _0x19d7ee=_0x44eac8[_0x28f786(0x15b)](0x10),_0x536c45=_0x44eac8[_0x28f786(0x15b)](0x14),_0x329118=_0x44eac8[0x18],_0x507a4e=_0x44eac8[0x19],_0x5d566d=_0x44eac8[0x1c],_0x5bb7a1={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x507a4e];if(!_0x5bb7a1||![0x1,0x2,0x4,0x8,0x10][_0x28f786(0x16d)](_0x329118)||_0x5d566d>0x1)throw Error(_0x28f786(0x163));const _0x3367e1=_0x5ccd5a=>Math[_0x28f786(0x191)](_0x5ccd5a*_0x5bb7a1*_0x329118/0x8)+0x1;let _0x4f812e=_0x3367e1(_0x19d7ee)*_0x536c45;if(_0x5d566d){_0x4f812e=0x0;for(const [_0x1ad632,_0x1a9116,_0x3e11e4,_0x74eeef]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 _0x42b13d=Math[_0x28f786(0x161)](0x0,Math[_0x28f786(0x191)]((_0x19d7ee-_0x1ad632)/_0x3e11e4)),_0xe1b3f8=Math['max'](0x0,Math[_0x28f786(0x191)]((_0x536c45-_0x1a9116)/_0x74eeef));if(_0x42b13d&&_0xe1b3f8)_0x4f812e+=_0x3367e1(_0x42b13d)*_0xe1b3f8;}}let _0xe7dd67=0x8,_0xb100ea=![];const _0x47a11d=[];while(_0xe7dd67<_0x44eac8[_0x28f786(0x16e)]){if(_0xe7dd67+0xc>_0x44eac8['length'])throw Error(_0x28f786(0x15a));const _0x376b92=_0x44eac8[_0x28f786(0x15b)](_0xe7dd67),_0x3f4b99=_0x44eac8['toString'](_0x28f786(0x192),_0xe7dd67+0x4,_0xe7dd67+0x8);if(_0x3f4b99===_0x28f786(0x186))throw Error(_0x28f786(0x172));if(_0xe7dd67+_0x376b92+0xc>_0x44eac8[_0x28f786(0x16e)])throw Error(_0x28f786(0x165));if(_0x3f4b99===_0x28f786(0x18b))_0x47a11d[_0x28f786(0x173)](_0x44eac8[_0x28f786(0x194)](_0xe7dd67+0x8,_0xe7dd67+0x8+_0x376b92));_0xe7dd67+=_0x376b92+0xc;if(_0x3f4b99==='IEND'){if(_0x376b92||_0xe7dd67!==_0x44eac8[_0x28f786(0x16e)])throw Error('Invalid\x20PNG\x20end.');_0xb100ea=!![];break;}}if(!_0xb100ea||!_0x47a11d[_0x28f786(0x16e)])throw Error(_0x28f786(0x175));if(inflateSync(Buffer[_0x28f786(0x166)](_0x47a11d),{'maxOutputLength':_0x4f812e+0x1})['length']!==_0x4f812e)throw Error(_0x28f786(0x16f));const {PNG:_0xdf58a8}=require(_0x28f786(0x189)),_0x2b3457=_0xdf58a8['sync']['read'](_0x44eac8,{'checkCRC':!![]});dimensions(_0x2b3457['width'],_0x2b3457[_0x28f786(0x15f)]),_0x564252='image/png';}else{if(_0x44eac8[0x0]===0xff&&_0x44eac8[0x1]===0xd8){if(_0x44eac8['at'](-0x2)!==0xff||_0x44eac8['at'](-0x1)!==0xd9)throw Error(_0x28f786(0x182));const _0x752c5=require('jpeg-js'),_0x17ffb8=_0x752c5[_0x28f786(0x17c)](_0x44eac8,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x17ffb8['width'],_0x17ffb8[_0x28f786(0x15f)]),_0x564252=_0x28f786(0x17e);}else{if([_0x28f786(0x17a),_0x28f786(0x18f)][_0x28f786(0x16d)](_0x44eac8[_0x28f786(0x193)](_0x28f786(0x192),0x0,0x6))){if(_0x44eac8[_0x28f786(0x16e)]<0xe||_0x44eac8['at'](-0x1)!==0x3b)throw Error(_0x28f786(0x185));dimensions(_0x44eac8['readUInt16LE'](0x6),_0x44eac8[_0x28f786(0x169)](0x8)),validateGif(_0x44eac8);const {GifReader:_0x44df65}=require(_0x28f786(0x168)),_0x2a77a1=new _0x44df65(_0x44eac8);dimensions(_0x2a77a1[_0x28f786(0x181)],_0x2a77a1[_0x28f786(0x15f)]);const _0x3ed046=_0x2a77a1['numFrames']();if(!_0x3ed046||_0x3ed046>0x2710||_0x3ed046*_0x2a77a1[_0x28f786(0x181)]*_0x2a77a1[_0x28f786(0x15f)]>MAX_PIXELS)throw Error(_0x28f786(0x196));const _0x4926bd=new Uint8Array(_0x2a77a1[_0x28f786(0x181)]*_0x2a77a1[_0x28f786(0x15f)]*0x4);for(let _0x3875e9=0x0;_0x3875e9<_0x3ed046;_0x3875e9++){const _0x2ead1c=_0x2a77a1[_0x28f786(0x17f)](_0x3875e9);if(_0x2ead1c['x']+_0x2ead1c[_0x28f786(0x181)]>_0x2a77a1[_0x28f786(0x181)]||_0x2ead1c['y']+_0x2ead1c[_0x28f786(0x15f)]>_0x2a77a1[_0x28f786(0x15f)])throw Error(_0x28f786(0x18a));_0x2a77a1['decodeAndBlitFrameRGBA'](_0x3875e9,_0x4926bd);}_0x564252='image/gif';}else throw Error(_0x28f786(0x183));}}}catch(_0x5192b1){throw Error('Invalid\x20image:\x20'+_0x5192b1[_0x28f786(0x184)]);}return{'contentHash':createHash(_0x28f786(0x16c))['update'](_0x44eac8)[_0x28f786(0x170)](_0x28f786(0x174)),'type':_0x564252,'size':_0x44eac8[_0x28f786(0x16e)],'bytes':_0x44eac8};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a146_0x1d90(_0x41c292,_0x3e2d04){_0x41c292=_0x41c292-0x131;const _0x3dc910=a146_0x3dc9();let _0x1d907e=_0x3dc910[_0x41c292];return _0x1d907e;}const a146_0xd88b83=a146_0x1d90;(function(_0x1ed335,_0x5dacad){const _0x5e24c3=a146_0x1d90,_0x49de78=_0x1ed335();while(!![]){try{const _0x536a16=-parseInt(_0x5e24c3(0x14a))/0x1*(-parseInt(_0x5e24c3(0x1bc))/0x2)+parseInt(_0x5e24c3(0x177))/0x3+parseInt(_0x5e24c3(0x1a1))/0x4*(parseInt(_0x5e24c3(0x13b))/0x5)+parseInt(_0x5e24c3(0x139))/0x6+parseInt(_0x5e24c3(0x132))/0x7+-parseInt(_0x5e24c3(0x184))/0x8+-parseInt(_0x5e24c3(0x1c5))/0x9;if(_0x536a16===_0x5dacad)break;else _0x49de78['push'](_0x49de78['shift']());}catch(_0x528298){_0x49de78['push'](_0x49de78['shift']());}}}(a146_0x3dc9,0x91d2d));function a146_0x3dc9(){const _0x41b340=['Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.','rvb','Value\x20metadata\x20index\x20must\x20be\x20one-based.','richValueRel','rowOff','uri','image\x20row\x20height\x20coordinate','rvStructures','metadataTypes','reduce','rdRichValue','metadata','Unsupported\x20workbook\x20namespace.','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','worksheet','Ambiguous\x20XML\x20attribute.','Missing\x20rich\x20value.','149715tYuBdC','from','XML\x20DTD/entities\x20are\x20not\x20supported.','../','Unsupported\x20drawing\x20image.','XLRICHVALUE','Image\x20XML\x20node\x20budget\x20exceeded.','Missing\x20WPS\x20image\x20ID:\x20','pop','row','cellImage','drawing','type','2889328GkeWRc','hidden','rich\x20metadata\x20record','toString','cNvPr','add','WPS\x20image\x20name','includes','xl/','utf8','filter','charCodeAt','rich\x20value\x20binding','Unsupported\x20drawing\x20namespace.','colOff','join','blip','Relationship','doctype','Duplicate\x20mapped\x20image\x20cell.','opentag','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','ext','rdRichValueStructure','image','.rels','image\x20height','name','dirname','2236slxjWi','http://schemas.openxmlformats.org/drawingml/2006/main','local','image\x20extent','write','closetag','workbook','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','Missing\x20or\x20ambiguous\x20','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','value','col','Image\x20XML\x20event\x20budget\x20exceeded.','Relationship\x20target\x20escapes\x20workbook:\x20','Unsupported\x20mapped\x20cell\x20metadata\x20type.','http://purl.oclc.org/ooxml/drawingml/main','basename','rich\x20future\x20metadata','attrs','Missing\x20local\x20image\x20identifier\x20value.','length','http://schemas.openxmlformats.org/package/2006/relationships','startsWith','nvPicPr','\x20relationship\x20in\x20','http://purl.oclc.org/ooxml/officeDocument/relationships','metadataType','468268isTMoI','extLst','sheetData','shared','Unsupported\x20worksheet\x20namespace.','Unsupported\x20mapped\x20rich\x20value\x20structure.','message','image\x20formula','isSafeInteger','18079398UGicnh','values','sheets','richValueRels','http://purl.oclc.org/ooxml/spreadsheetml/main','anchor\x20column','isFinite','rel','some','xl/cellimages.xml','http://schemas.microsoft.com/office/2017/06/relationships/','round','replace','hidden\x20image\x20row','Unsupported\x20rich\x20structure\x20namespace.','Shared\x20image\x20formulas\x20are\x20not\x20supported.','text','MAX_SAFE_INTEGER','cellImages','http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','posix','5902120SsMuOC','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','anchor\x20end\x20offset','oneCellAnchor','wsDr','http://schemas.openxmlformats.org/spreadsheetml/2006/main','absoluteAnchor','6032970oUryuy','http://schemas.openxmlformats.org/officeDocument/2006/relationships','7465YlPFRO','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','rich\x20structure\x20index','test','sheetFormatPr','r:embed','anchor\x20start','_localImage','toLowerCase','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','flatMap','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','blipFill','Unsupported\x20relationship\x20namespace\x20in\x20','exec','1kQBGLx','Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.','set','push','Unsupported\x20rich\x20image\x20relation\x20namespace.','#VALUE!','_rvRel:LocalImageIdentifier','futureMetadata','children','anchor\x20start\x20offset','pic','get','sheetMetadata','Missing\x20value\x20metadata\x20block.','has','slice','image\x20cell\x20row','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','twoCellAnchor','map','Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.','valueMetadata','rich\x20image\x20relationship\x20index','Relationships','r:link','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','_rels','r:id'];a146_0x3dc9=function(){return _0x41b340;};return a146_0x3dc9();}import a146_0x4352ed from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0xd88b83(0x137),a146_0xd88b83(0x1c9)],DRAWING=[a146_0xd88b83(0x1d8),'http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing'],DRAWING_MAIN=[a146_0xd88b83(0x1a2),a146_0xd88b83(0x1b0)],OFFICE_RELS=[a146_0xd88b83(0x13a),a146_0xd88b83(0x1ba)],PACKAGE=[a146_0xd88b83(0x1b6)],RICH=[a146_0xd88b83(0x1d9)],RICH_RELS=['http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel'],WPS=['http://www.wps.cn/officeDocument/2017/etCustomData'],DEFAULT_NS=Object['fromEntries']([...[a146_0xd88b83(0x1a7),a146_0xd88b83(0x1c7),'sheet',a146_0xd88b83(0x174),a146_0xd88b83(0x1be),a146_0xd88b83(0x180),'c','f','v',a146_0xd88b83(0x13f),a146_0xd88b83(0x182),a146_0xd88b83(0x171),a146_0xd88b83(0x16e),a146_0xd88b83(0x1bb),a146_0xd88b83(0x151),a146_0xd88b83(0x15f),'bk','rc',a146_0xd88b83(0x1bd)][a146_0xd88b83(0x15d)](_0x1b34f9=>[_0x1b34f9,SHEET]),...[a146_0xd88b83(0x136),a146_0xd88b83(0x135),a146_0xd88b83(0x15c),a146_0xd88b83(0x138),a146_0xd88b83(0x178),'to',a146_0xd88b83(0x1ac),a146_0xd88b83(0x192),a146_0xd88b83(0x16a),a146_0xd88b83(0x19a),a146_0xd88b83(0x154),a146_0xd88b83(0x1b8),a146_0xd88b83(0x188),a146_0xd88b83(0x147)][a146_0xd88b83(0x15d)](_0x2ef195=>[_0x2ef195,DRAWING]),...[a146_0xd88b83(0x167),'rvData','rv','rvStructures','s','k'][a146_0xd88b83(0x15d)](_0x1c33fd=>[_0x1c33fd,RICH]),['blip',DRAWING_MAIN],[a146_0xd88b83(0x1c8),RICH_RELS],[a146_0xd88b83(0x1cc),RICH_RELS],[a146_0xd88b83(0x161),PACKAGE],[a146_0xd88b83(0x195),PACKAGE],[a146_0xd88b83(0x1d7),WPS],[a146_0xd88b83(0x181),WPS]]),matches=(_0x19fa38,_0x361cfb,_0x5b49c2=DEFAULT_NS[_0x361cfb]??[])=>_0x19fa38['name']===_0x361cfb&&_0x5b49c2['includes'](_0x19fa38[a146_0xd88b83(0x16b)]),children=(_0x45eca4,_0x33b310,_0x2d5c2f=DEFAULT_NS[_0x33b310])=>_0x45eca4['children'][a146_0xd88b83(0x18e)](_0x369e8b=>matches(_0x369e8b,_0x33b310,_0x2d5c2f)),chain=(_0x149231,..._0x3ad385)=>_0x3ad385[a146_0xd88b83(0x16f)]((_0x2afec9,_0x51c677)=>_0x2afec9[a146_0xd88b83(0x145)](_0x48ebfd=>children(_0x48ebfd,_0x51c677)),[_0x149231]),relationshipTypes=_0x24db82=>{const _0x2ede95=a146_0xd88b83;if(['rdRichValue',_0x2ede95(0x19b)][_0x2ede95(0x18b)](_0x24db82))return[_0x2ede95(0x1cf)+_0x24db82];if(_0x24db82===_0x2ede95(0x169))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x24db82===_0x2ede95(0x181)||_0x24db82===_0x2ede95(0x1d7))return['http://www.wps.cn/officeDocument/2017/relationships/'+_0x24db82];return OFFICE_RELS[_0x2ede95(0x15d)](_0xe4901=>_0xe4901+'/'+_0x24db82);};function one(_0x5370f2,_0x18f5dc){const _0x398567=a146_0xd88b83;if(_0x5370f2[_0x398567(0x1b5)]!==0x1)throw Error(_0x398567(0x1a9)+_0x18f5dc+'.');return _0x5370f2[0x0];}function integer(_0x56f405,_0x4c6c08,_0x391fd3=0x186a0){const _0x5b5f36=a146_0xd88b83;if(!_0x56f405||!/^\d+$/[_0x5b5f36(0x13e)](_0x56f405)||!Number[_0x5b5f36(0x1c4)](Number(_0x56f405))||Number(_0x56f405)>_0x391fd3)throw Error('Invalid\x20'+_0x4c6c08+'.');return Number(_0x56f405);}export function resolveWorksheetImages(_0x4132fb,_0x1e2c29,_0x417885){const _0x53a344=a146_0xd88b83;let _0x1fbb11=0x0,_0x3058f2=0x0,_0x521028=0x0;const _0x3b84da=new Map(),_0x88534e=_0x10e90c=>{const _0x38daec=a146_0x1d90;if(_0x3b84da['has'](_0x10e90c))return _0x3b84da['get'](_0x10e90c);const _0x2429cd=_0x4132fb[_0x38daec(0x155)](_0x10e90c);if(!_0x2429cd)throw Error('Missing\x20XLSX\x20part:\x20'+_0x10e90c+'.');const _0x867a81={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x1d954e=[_0x867a81],_0x2177d3=new SaxesParser({'xmlns':!![]}),_0x93eab8=()=>{const _0x2f7fa3=_0x38daec;if(++_0x3058f2>0x1e8480)throw Error(_0x2f7fa3(0x1ad));};_0x2177d3['on'](_0x38daec(0x196),()=>{const _0x523ee8=_0x38daec;throw Error(_0x523ee8(0x179));}),_0x2177d3['on'](_0x38daec(0x198),_0x52066a=>{const _0xce2c4f=_0x38daec;_0x93eab8();if(++_0x1fbb11>0x7a120||_0x1d954e[_0xce2c4f(0x1b5)]>0x40)throw Error(_0xce2c4f(0x17d));const _0x2c9067={};for(const _0x1a671a of Object[_0xce2c4f(0x1c6)](_0x52066a['attributes'])){const _0x1bec18=OFFICE_RELS['includes'](_0x1a671a[_0xce2c4f(0x16b)])?'r:'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x16b)]?'{'+_0x1a671a[_0xce2c4f(0x16b)]+'}'+_0x1a671a[_0xce2c4f(0x1a3)]:_0x1a671a[_0xce2c4f(0x1a3)];if(_0x1bec18 in _0x2c9067)throw Error(_0xce2c4f(0x175));_0x2c9067[_0x1bec18]=_0x1a671a[_0xce2c4f(0x1ab)];}const _0x5aa83c={'name':_0x52066a[_0xce2c4f(0x1a3)],'uri':_0x52066a[_0xce2c4f(0x16b)],'attrs':_0x2c9067,'children':[],'text':''};_0x1d954e['at'](-0x1)[_0xce2c4f(0x152)][_0xce2c4f(0x14d)](_0x5aa83c),_0x1d954e[_0xce2c4f(0x14d)](_0x5aa83c);}),_0x2177d3['on'](_0x38daec(0x1d5),_0x38e0d4=>{const _0x2ef9bd=_0x38daec;_0x93eab8();const _0x2bdabc=_0x1d954e['at'](-0x1);_0x2bdabc['text']+=_0x38e0d4;if(_0x2bdabc[_0x2ef9bd(0x1d5)][_0x2ef9bd(0x1b5)]>0x10000)throw Error(_0x2ef9bd(0x15b));}),_0x2177d3['on'](_0x38daec(0x1a6),()=>{const _0x17cd2e=_0x38daec;_0x93eab8(),_0x1d954e[_0x17cd2e(0x17f)]();}),_0x2177d3['on']('error',_0x4dfe57=>{throw _0x4dfe57;}),_0x2177d3[_0x38daec(0x1a5)](_0x2429cd[_0x38daec(0x187)](_0x38daec(0x18d)))['close']();const _0x51190a=one(_0x867a81[_0x38daec(0x152)],_0x10e90c);return _0x3b84da['set'](_0x10e90c,_0x51190a),_0x51190a;},_0x5eb92d=new Map(),_0x553747=_0x2b9dd2=>{const _0x128dff=a146_0x1d90;if(_0x5eb92d['has'](_0x2b9dd2))return _0x5eb92d[_0x128dff(0x155)](_0x2b9dd2);const _0x1b961c=a146_0x4352ed[_0x128dff(0x131)][_0x128dff(0x193)](a146_0x4352ed[_0x128dff(0x131)]['dirname'](_0x2b9dd2),_0x128dff(0x164),a146_0x4352ed['posix'][_0x128dff(0x1b1)](_0x2b9dd2)+_0x128dff(0x19d));if(!_0x4132fb[_0x128dff(0x158)](_0x1b961c))return[];const _0x586008=new Set(),_0x2f4c6a=_0x88534e(_0x1b961c);if(!matches(_0x2f4c6a,'Relationships'))throw Error(_0x128dff(0x148)+_0x1b961c+'.');const _0x57aa47=children(_0x2f4c6a,_0x128dff(0x195))[_0x128dff(0x15d)](_0x17dc00=>{const _0x3ff310=_0x128dff,{Id:_0x171f98,Type:_0x24dcbb,Target:_0x1bf79b,TargetMode:_0xd9383e}=_0x17dc00[_0x3ff310(0x1b3)];if(!_0x171f98||_0x586008[_0x3ff310(0x158)](_0x171f98)||!_0x24dcbb)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x1b961c+'.');return _0x586008[_0x3ff310(0x189)](_0x171f98),{'id':_0x171f98,'type':_0x24dcbb,'target':_0x1bf79b??'','mode':_0xd9383e};});return _0x5eb92d['set'](_0x2b9dd2,_0x57aa47),_0x57aa47;},_0x2975df=(_0x46ebdb,_0x561351)=>{const _0x12f1cf=a146_0x1d90,{target:_0x3d1c3d,mode:_0x26ed2b}=_0x561351;if(_0x26ed2b&&_0x26ed2b!=='Internal')throw Error(_0x12f1cf(0x163)+_0x46ebdb+'.');if(!_0x3d1c3d||_0x3d1c3d[_0x12f1cf(0x18b)]('\x5c')||/[?#%\x00-\x20]/[_0x12f1cf(0x13e)](_0x3d1c3d)||/^[a-z][a-z0-9+.-]*:/i['test'](_0x3d1c3d)||_0x3d1c3d['startsWith']('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x46ebdb+'.');const _0xc39de7=_0x3d1c3d[_0x12f1cf(0x1b7)]('/')?_0x3d1c3d[_0x12f1cf(0x159)](0x1):a146_0x4352ed[_0x12f1cf(0x131)]['normalize'](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x193)](a146_0x4352ed[_0x12f1cf(0x131)][_0x12f1cf(0x1a0)](_0x46ebdb),_0x3d1c3d));if(_0xc39de7['startsWith'](_0x12f1cf(0x17a))||_0xc39de7==='..'||!_0xc39de7[_0x12f1cf(0x1b7)](_0x12f1cf(0x18c)))throw Error(_0x12f1cf(0x1ae)+_0x46ebdb+'.');return _0xc39de7;},_0x4e8ced=(_0x29ac61,_0x322889,_0x1064c7)=>{const _0x27e95f=a146_0x1d90,_0x20cacf=_0x553747(_0x29ac61)[_0x27e95f(0x18e)](_0x1176d2=>_0x1176d2['id']===_0x322889&&relationshipTypes(_0x1064c7)[_0x27e95f(0x18b)](_0x1176d2[_0x27e95f(0x183)]));if(_0x20cacf['length']!==0x1)throw Error(_0x27e95f(0x1a9)+_0x1064c7+'\x20relationship\x20in\x20'+_0x29ac61+'.');return _0x2975df(_0x29ac61,_0x20cacf[0x0]);},_0x556a73=(_0x22e354,_0x24c245)=>{const _0x3f5bec=a146_0x1d90,_0x1e394d=_0x553747(_0x22e354)[_0x3f5bec(0x18e)](_0x48f2bb=>relationshipTypes(_0x24c245)['includes'](_0x48f2bb['type']));if(_0x1e394d[_0x3f5bec(0x1b5)]!==0x1)throw Error(_0x3f5bec(0x1a9)+_0x24c245+_0x3f5bec(0x1b9)+_0x22e354+'.');return _0x2975df(_0x22e354,_0x1e394d[0x0]);},_0x145692='xl/workbook.xml',_0x82be55=_0x88534e(_0x145692);if(!matches(_0x82be55,_0x53a344(0x1a7)))throw Error(_0x53a344(0x172));const _0x1c21d2=one(chain(_0x82be55,_0x53a344(0x1c7),'sheet')[_0x53a344(0x18e)](_0x34291f=>_0x34291f[_0x53a344(0x1b3)]['name']===_0x1e2c29),_0x53a344(0x174)),_0x6c683e=_0x4e8ced(_0x145692,_0x1c21d2[_0x53a344(0x1b3)][_0x53a344(0x165)],'worksheet'),_0x4e1e1b=_0x88534e(_0x6c683e);if(!matches(_0x4e1e1b,_0x53a344(0x174)))throw Error(_0x53a344(0x1c0));const _0x562e37=chain(_0x4e1e1b,_0x53a344(0x1be),_0x53a344(0x180)),_0x1a0d89=new Map(),_0x2fbe9e=new Set(_0x562e37[_0x53a344(0x18e)](_0x55a6ee=>_0x55a6ee['attrs'][_0x53a344(0x185)]==='1'||_0x55a6ee['attrs'][_0x53a344(0x185)]==='true')[_0x53a344(0x15d)](_0xd8b794=>integer(_0xd8b794[_0x53a344(0x1b3)]['r'],_0x53a344(0x1d2)))),_0x155a1c=_0xf60d6f=>{const _0x3598ad=_0x53a344,_0x58493b=_0xf60d6f===undefined?0xf:Number(_0xf60d6f);if(!Number[_0x3598ad(0x1cb)](_0x58493b)||_0x58493b<=0x0||_0x58493b>409.5)throw Error(_0x3598ad(0x15e));return Math[_0x3598ad(0x1d0)](_0x58493b*0x319c);},_0x560a63=_0x155a1c(children(_0x4e1e1b,_0x53a344(0x13f))[0x0]?.[_0x53a344(0x1b3)]['defaultRowHeight']);for(const _0x2e94cc of _0x562e37)if(_0x2e94cc[_0x53a344(0x1b3)]['ht']!==undefined)_0x1a0d89[_0x53a344(0x14c)](integer(_0x2e94cc[_0x53a344(0x1b3)]['r'],_0x53a344(0x16c)),_0x155a1c(_0x2e94cc[_0x53a344(0x1b3)]['ht']));const _0x534e3a=[],_0x4d60b4=_0x4345a3=>{const _0x33b4a9=_0x53a344;if(!_0x417885[_0x33b4a9(0x158)](_0x4345a3[_0x33b4a9(0x1ac)]))return;if(++_0x521028>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x534e3a['push'](_0x2fbe9e[_0x33b4a9(0x158)](_0x4345a3['row'])?{..._0x4345a3,'hiddenRow':!![]}:_0x4345a3);},_0x2b69cb=_0x4e9479=>({'row':integer(one(children(_0x4e9479,_0x53a344(0x180),DRAWING),'anchor\x20row')[_0x53a344(0x1d5)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4e9479,_0x53a344(0x1ac)),_0x53a344(0x1ca))['text'],_0x53a344(0x1ca),0xff)+0x1});for(const _0x4cff1a of children(_0x4e1e1b,'drawing')){const _0x4641b8=_0x4e8ced(_0x6c683e,_0x4cff1a[_0x53a344(0x1b3)][_0x53a344(0x165)],_0x53a344(0x182)),_0x4b780e=_0x88534e(_0x4641b8);if(!matches(_0x4b780e,'wsDr'))throw Error(_0x53a344(0x191));for(const _0x55f291 of _0x4b780e[_0x53a344(0x152)]){if(![_0x53a344(0x135),_0x53a344(0x15c),'absoluteAnchor'][_0x53a344(0x1cd)](_0x5bc92f=>matches(_0x55f291,_0x5bc92f)))continue;if(_0x55f291[_0x53a344(0x19f)]==='absoluteAnchor')throw Error(_0x53a344(0x133)+_0x1e2c29+'.');const _0x30f02b=_0x2b69cb(one(children(_0x55f291,_0x53a344(0x178)),_0x53a344(0x141)));if(!_0x417885[_0x53a344(0x158)](_0x30f02b['col']))continue;let _0x2c804e;const _0x1ab592=one(children(_0x55f291,_0x53a344(0x178)),'anchor\x20start'),_0x135009=integer(one(children(_0x1ab592,_0x53a344(0x16a)),'anchor\x20start\x20offset')[_0x53a344(0x1d5)],_0x53a344(0x153),Number[_0x53a344(0x1d6)]),_0x5ea848=_0x1a0d89[_0x53a344(0x155)](_0x30f02b[_0x53a344(0x180)])??_0x560a63;if(_0x135009>=_0x5ea848)throw Error(_0x53a344(0x146)+_0x30f02b[_0x53a344(0x180)]+'.');if(_0x55f291['name']===_0x53a344(0x135)){const _0x1fe525=one(children(_0x55f291,_0x53a344(0x19a)),_0x53a344(0x1a4)),_0x26f45c=integer(_0x1fe525[_0x53a344(0x1b3)]['cy'],_0x53a344(0x19e),Number[_0x53a344(0x1d6)]);if(!_0x26f45c||_0x135009+_0x26f45c>_0x5ea848)_0x2c804e=_0x53a344(0x1a8);}if(_0x55f291[_0x53a344(0x19f)]===_0x53a344(0x15c)){const _0x32a2cb=one(children(_0x55f291,'to'),'anchor\x20end'),_0x22832a=_0x2b69cb(_0x32a2cb),_0x5d22bd=integer(one(children(_0x32a2cb,_0x53a344(0x16a)),_0x53a344(0x134))[_0x53a344(0x1d5)],_0x53a344(0x134),Number[_0x53a344(0x1d6)]),_0x52f36e=_0x1a0d89['get'](_0x22832a[_0x53a344(0x180)])??_0x560a63;if(_0x5d22bd>_0x52f36e||_0x22832a[_0x53a344(0x180)]===_0x30f02b[_0x53a344(0x180)]&&_0x5d22bd<=_0x135009)_0x2c804e='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x22832a[_0x53a344(0x180)]<_0x30f02b['row']||_0x22832a[_0x53a344(0x180)]>_0x30f02b[_0x53a344(0x180)]+0x1||_0x22832a['row']===_0x30f02b['row']+0x1&&_0x5d22bd!==0x0)_0x2c804e=_0x53a344(0x1a8);}const _0x2b62ca=chain(_0x55f291,_0x53a344(0x154),_0x53a344(0x147),_0x53a344(0x194));for(const _0x40f030 of _0x2b62ca){if(_0x40f030[_0x53a344(0x1b3)]['r:link'])throw Error('External\x20image\x20links\x20are\x20not\x20supported.');_0x4d60b4({..._0x30f02b,'media':[_0x4e8ced(_0x4641b8,_0x40f030[_0x53a344(0x1b3)]['r:embed'],_0x53a344(0x19c))],..._0x2c804e?{'error':_0x2c804e}:{}});}if(!_0x2b62ca[_0x53a344(0x1b5)])_0x4d60b4({..._0x30f02b,'media':[],'error':_0x53a344(0x17b)});}}const _0x3bd37d=_0x3c10ca=>{const _0x22dc72=_0x53a344,_0x5d2535=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x156)));if(!matches(_0x5d2535,_0x22dc72(0x171)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x127bba=integer(_0x3c10ca['attrs']['vm'],'value\x20metadata\x20index');if(!_0x127bba)throw Error(_0x22dc72(0x168));const _0x275bb6=children(one(children(_0x5d2535,_0x22dc72(0x15f)),_0x22dc72(0x15f)),'bk')[_0x127bba-0x1];if(!_0x275bb6)throw Error(_0x22dc72(0x157));const _0x328259=one(children(_0x275bb6,'rc'),_0x22dc72(0x186)),_0x53b358=integer(_0x328259['attrs']['t'],'metadata\x20type\x20index'),_0x387252=children(one(children(_0x5d2535,_0x22dc72(0x16e)),'metadata\x20types'),_0x22dc72(0x1bb))[_0x53b358-0x1];if(!_0x53b358||_0x387252?.['attrs'][_0x22dc72(0x19f)]!==_0x22dc72(0x17c))throw Error(_0x22dc72(0x1af));const _0x482685=one(children(_0x5d2535,_0x22dc72(0x151))[_0x22dc72(0x18e)](_0x489a2f=>_0x489a2f[_0x22dc72(0x1b3)][_0x22dc72(0x19f)]===_0x22dc72(0x17c)),_0x22dc72(0x1b2)),_0x5ed7c6=children(_0x482685,'bk')[integer(_0x328259[_0x22dc72(0x1b3)]['v'],'future\x20metadata\x20index')];if(!_0x5ed7c6)throw Error('Missing\x20future\x20metadata\x20block.');const _0x44b63c=chain(_0x5ed7c6,_0x22dc72(0x1bd))[_0x22dc72(0x145)](_0x1565aa=>children(_0x1565aa,_0x22dc72(0x19a),SHEET))[_0x22dc72(0x18e)](_0x542d31=>_0x542d31['attrs'][_0x22dc72(0x16b)]?.[_0x22dc72(0x143)]()===_0x22dc72(0x13c)),_0x402a38=integer(one(_0x44b63c[_0x22dc72(0x145)](_0x6bc3e5=>children(_0x6bc3e5,_0x22dc72(0x167))),_0x22dc72(0x190))[_0x22dc72(0x1b3)]['i'],'rich\x20value\x20index'),_0x6ed67c=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x170)));if(!matches(_0x6ed67c,'rvData'))throw Error('Unsupported\x20rich\x20value\x20namespace.');const _0x4f55a3=children(_0x6ed67c,'rv')[_0x402a38];if(!_0x4f55a3)throw Error(_0x22dc72(0x176));const _0x1de015=_0x88534e(_0x556a73(_0x145692,_0x22dc72(0x19b)));if(!matches(_0x1de015,_0x22dc72(0x16d)))throw Error(_0x22dc72(0x1d3));const _0x5f04cd=children(_0x1de015,'s')[integer(_0x4f55a3[_0x22dc72(0x1b3)]['s'],_0x22dc72(0x13d))];if(!_0x5f04cd||_0x5f04cd[_0x22dc72(0x1b3)]['t']!==_0x22dc72(0x142))throw Error(_0x22dc72(0x1c1));const _0x298232=children(_0x5f04cd,'k'),_0x268008=_0x298232[_0x22dc72(0x15d)]((_0x45a109,_0x1d3cc6)=>_0x45a109[_0x22dc72(0x1b3)]['n']===_0x22dc72(0x150)?_0x1d3cc6:-0x1)[_0x22dc72(0x18e)](_0x3d04a3=>_0x3d04a3>=0x0);if(_0x268008[_0x22dc72(0x1b5)]!==0x1)throw Error(_0x22dc72(0x14b));const _0x13bd54=children(_0x4f55a3,'v',RICH)[_0x268008[0x0]];if(!_0x13bd54)throw Error(_0x22dc72(0x1b4));const _0x435731=_0x556a73(_0x145692,_0x22dc72(0x169)),_0x575c49=_0x88534e(_0x435731);if(!matches(_0x575c49,_0x22dc72(0x1c8)))throw Error(_0x22dc72(0x14e));const _0x23e7b2=children(_0x575c49,_0x22dc72(0x1cc))[integer(_0x13bd54['text'],_0x22dc72(0x160))];if(!_0x23e7b2)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x4e8ced(_0x435731,_0x23e7b2[_0x22dc72(0x1b3)]['r:id'],_0x22dc72(0x19c));};let _0x2b3d04;const _0x505dfa=_0x443d94=>{const _0x2544ac=_0x53a344;if(!_0x2b3d04){_0x2b3d04=new Map();const _0x29efa9=_0x553747(_0x145692)[_0x2544ac(0x18e)](_0x111525=>[...relationshipTypes(_0x2544ac(0x181)),...relationshipTypes('cellImages')]['includes'](_0x111525[_0x2544ac(0x183)]));if(!_0x29efa9[_0x2544ac(0x1b5)]&&_0x4132fb[_0x2544ac(0x158)](_0x2544ac(0x1ce)))_0x29efa9[_0x2544ac(0x14d)]({'id':'','type':'','target':'/xl/cellimages.xml'});if(_0x29efa9[_0x2544ac(0x1b5)]!==0x1)throw Error(_0x2544ac(0x144));const _0x273a8a=_0x2975df(_0x145692,_0x29efa9[0x0]),_0x8c13d1=_0x88534e(_0x273a8a);if(!matches(_0x8c13d1,'cellImages'))throw Error('Unsupported\x20WPS\x20cell\x20image\x20namespace.');for(const _0x93a15f of children(_0x8c13d1,_0x2544ac(0x181))){const _0x4df467=one(chain(_0x93a15f,_0x2544ac(0x154),_0x2544ac(0x1b8),'cNvPr'),_0x2544ac(0x18a))[_0x2544ac(0x1b3)]['name'];if(!_0x4df467||_0x2b3d04[_0x2544ac(0x158)](_0x4df467))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x185e4c=one(chain(_0x93a15f,_0x2544ac(0x154),'blipFill',_0x2544ac(0x194)),'WPS\x20image\x20blip');if(_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x162)])throw Error(_0x2544ac(0x199));_0x2b3d04[_0x2544ac(0x14c)](_0x4df467,_0x4e8ced(_0x273a8a,_0x185e4c[_0x2544ac(0x1b3)][_0x2544ac(0x140)],'image'));}}const _0x463d20=_0x2b3d04[_0x2544ac(0x155)](_0x443d94);if(!_0x463d20)throw Error(_0x2544ac(0x17e)+_0x443d94+'.');return _0x463d20;},_0xe15a3d=new Set();for(const _0x5e4512 of _0x562e37[_0x53a344(0x145)](_0x3b1353=>children(_0x3b1353,'c'))){const _0x523cd5=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x5e4512[_0x53a344(0x1b3)]['r']??'');if(!_0x523cd5)continue;let _0xe60206=0x0;for(const _0x393f17 of _0x523cd5[0x1])_0xe60206=_0xe60206*0x1a+_0x393f17[_0x53a344(0x18f)](0x0)-0x40;if(!_0x417885['has'](_0xe60206))continue;const _0x199ac=integer(_0x523cd5[0x2],_0x53a344(0x15a));if(_0xe15a3d['has'](_0x5e4512['attrs']['r']))throw Error(_0x53a344(0x197));_0xe15a3d[_0x53a344(0x189)](_0x5e4512[_0x53a344(0x1b3)]['r']);const _0x40b516=children(_0x5e4512,'f');if(!_0x5e4512[_0x53a344(0x1b3)]['vm']&&!_0x40b516[_0x53a344(0x1b5)])continue;try{if(_0x199ac<0x1||_0xe60206>0x100)throw Error(_0x53a344(0x166));let _0x3c2f0f;if(_0x5e4512['attrs']['vm']){if(_0x40b516['length'])throw Error(_0x53a344(0x173));if(_0x5e4512[_0x53a344(0x1b3)]['t']!=='e'||children(_0x5e4512,'v')[_0x53a344(0x1b5)]!==0x1||children(_0x5e4512,'v')[0x0][_0x53a344(0x1d5)]!==_0x53a344(0x14f))throw Error('Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.');_0x3c2f0f=_0x3bd37d(_0x5e4512);}else{const _0x4a2c0c=one(_0x40b516,_0x53a344(0x1c3));if(_0x4a2c0c[_0x53a344(0x1b3)]['t']===_0x53a344(0x1bf)||_0x4a2c0c[_0x53a344(0x1b3)]['si'])throw Error(_0x53a344(0x1d4));const _0x593ade=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x53a344(0x149)](_0x4a2c0c[_0x53a344(0x1d5)]);if(!_0x593ade)throw Error(_0x53a344(0x1aa));_0x3c2f0f=_0x505dfa(_0x593ade[0x1][_0x53a344(0x1d1)](/""/g,'\x22'));}_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[_0x3c2f0f],'nativeCell':!![]});}catch(_0x298690){_0x4d60b4({'row':_0x199ac,'col':_0xe60206,'media':[],'nativeCell':!![],'error':_0x298690[_0x53a344(0x1c2)]});}}return _0x534e3a;}
|
|
1
|
+
function a146_0x3c65(_0x155170,_0x2988ab){_0x155170=_0x155170-0xe5;const _0x2a6cf0=a146_0x2a6c();let _0x3c6519=_0x2a6cf0[_0x155170];return _0x3c6519;}const a146_0x3599f0=a146_0x3c65;function a146_0x2a6c(){const _0x268b36=['round','rich\x20image\x20relationship\x20index','rowOff','colOff','richValueRel','rvStructures','r:embed','hidden','has','Unsupported\x20rich\x20value\x20namespace.','attrs','http://purl.oclc.org/ooxml/drawingml/main','Missing\x20XLSX\x20part:\x20','cellImage','anchor\x20start','Unsupported\x20image\x20formula;\x20expected\x20a\x20standalone\x20DISPIMG\x20literal.','future\x20metadata\x20index','r:id','http://schemas.microsoft.com/office/spreadsheetml/2017/richdata','closetag','http://purl.oclc.org/ooxml/drawingml/spreadsheetDrawing','/xl/cellimages.xml','sheetData','XLRICHVALUE','replace','19629EJNczw','Internal','isFinite','Relationship\x20target\x20escapes\x20workbook:\x20','type','anchor\x20end','slice','Duplicate\x20mapped\x20image\x20cell.','cellImages','exec','row','wsDr','image\x20row\x20height\x20coordinate','from','anchor\x20row','Missing\x20or\x20ambiguous\x20WPS\x20cell\x20image\x20part.','anchor\x20end\x20offset','absoluteAnchor','nvPicPr','filter','blip','Missing\x20or\x20ambiguous\x20','XML\x20DTD/entities\x20are\x20not\x20supported.','1991178voHdPO','rich\x20value\x20binding','http://www.wps.cn/officeDocument/2017/etCustomData','{3e2802c4-a4d2-4d8b-9148-e3be6c30e623}','isSafeInteger','_localImage','Mixed\x20formula\x20and\x20rich\x20image\x20metadata\x20is\x20unsupported.','posix','pop','col','valueMetadata','http://schemas.openxmlformats.org/drawingml/2006/main','rdRichValue','ext','startsWith','Rich\x20IMAGE\x20cell\x20contains\x20unexpected\x20scalar\x20or\x20mixed\x20content.','name','Shared\x20image\x20formulas\x20are\x20not\x20supported.','rvData','External\x20image\x20relationship\x20is\x20not\x20supported:\x20','worksheet','anchor\x20start\x20offset','Unsupported\x20WPS\x20cell\x20image\x20namespace.','1194BCChSj','rich\x20metadata\x20record','http://schemas.openxmlformats.org/package/2006/relationships','Unsupported\x20worksheet\x20namespace.','Image\x20XML\x20event\x20budget\x20exceeded.','cNvPr','opentag','12081363CDyIdT','sheetFormatPr','workbook','text','Invalid\x20image\x20start\x20offset\x20at\x20row\x20','WPS\x20image\x20blip','value','rich\x20future\x20metadata','pic','rich\x20structure\x20index','External\x20image\x20links\x20are\x20not\x20supported.','length','extLst','some','http://schemas.openxmlformats.org/officeDocument/2006/relationships','rel','xl/','metadata','get','sheets','metadata\x20type\x20index','http://schemas.microsoft.com/office/spreadsheetml/2022/richvaluerel','twoCellAnchor','children','r:link','Unsupported\x20relationship\x20namespace\x20in\x20','WPS\x20image\x20name','error','3861753MDAMyP','drawing','add','MAX_SAFE_INTEGER','Relationships','Invalid\x20','External\x20WPS\x20image\x20links\x20are\x20not\x20supported.','anchor\x20column','rich\x20value\x20index','value\x20metadata\x20index','reduce','sheet','rvb','Missing\x20future\x20metadata\x20block.','toLowerCase','http://purl.oclc.org/ooxml/officeDocument/relationships','push','sheetMetadata','normalize','map','uri','includes','values','Missing\x20value\x20metadata\x20block.','close','Missing\x20local\x20image\x20identifier\x20value.','\x20relationship\x20in\x20','image','richValueRels','metadata\x20types','Image\x20XML\x20text\x20exceeds\x2064\x20KB.','test','http://schemas.openxmlformats.org/spreadsheetml/2006/main','Unsupported\x20rich\x20image\x20relation\x20namespace.','665631IgOEuV','Absolute\x20image\x20anchor\x20cannot\x20be\x20mapped\x20in\x20worksheet\x20','local','set','http://purl.oclc.org/ooxml/spreadsheetml/main','image\x20formula','16048WGneKj','join','blipFill','flatMap','Unsupported\x20mapped\x20cell\x20metadata\x20type.','metadataType','Unsupported\x20rich\x20structure\x20namespace.','xl/workbook.xml','Image\x20anchor\x20spans\x20multiple\x20business\x20rows.','44090pqJsqo','1889016FnVtvW','futureMetadata','Missing\x20WPS\x20image\x20ID:\x20','rdRichValueStructure','Unsupported\x20drawing\x20namespace.','.rels','metadataTypes','http://www.wps.cn/officeDocument/2017/relationships/'];a146_0x2a6c=function(){return _0x268b36;};return a146_0x2a6c();}(function(_0x57b7dd,_0x380230){const _0x3cb337=a146_0x3c65,_0x3008c5=_0x57b7dd();while(!![]){try{const _0x4e25c0=-parseInt(_0x3cb337(0x14e))/0x1+-parseInt(_0x3cb337(0xf2))/0x2+-parseInt(_0x3cb337(0x12c))/0x3+-parseInt(_0x3cb337(0x15e))/0x4+parseInt(_0x3cb337(0x15d))/0x5*(parseInt(_0x3cb337(0x109))/0x6)+-parseInt(_0x3cb337(0x110))/0x7+parseInt(_0x3cb337(0x154))/0x8*(parseInt(_0x3cb337(0x17f))/0x9);if(_0x4e25c0===_0x380230)break;else _0x3008c5['push'](_0x3008c5['shift']());}catch(_0x49952e){_0x3008c5['push'](_0x3008c5['shift']());}}}(a146_0x2a6c,0xf00c2));import a146_0x382453 from'node:path';import{SaxesParser}from'saxes';const SHEET=[a146_0x3599f0(0x14c),a146_0x3599f0(0x152)],DRAWING=['http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing',a146_0x3599f0(0x17a)],DRAWING_MAIN=[a146_0x3599f0(0xfd),a146_0x3599f0(0x171)],OFFICE_RELS=[a146_0x3599f0(0x11e),a146_0x3599f0(0x13b)],PACKAGE=[a146_0x3599f0(0x10b)],RICH=[a146_0x3599f0(0x178)],RICH_RELS=[a146_0x3599f0(0x125)],WPS=[a146_0x3599f0(0xf4)],DEFAULT_NS=Object['fromEntries']([...[a146_0x3599f0(0x112),a146_0x3599f0(0x123),a146_0x3599f0(0x137),a146_0x3599f0(0x106),'sheetData',a146_0x3599f0(0xe5),'c','f','v',a146_0x3599f0(0x111),a146_0x3599f0(0x12d),a146_0x3599f0(0x121),a146_0x3599f0(0x164),a146_0x3599f0(0x159),a146_0x3599f0(0x15f),a146_0x3599f0(0xfc),'bk','rc',a146_0x3599f0(0x11c)][a146_0x3599f0(0x13f)](_0x461509=>[_0x461509,SHEET]),...[a146_0x3599f0(0xe6),'oneCellAnchor',a146_0x3599f0(0x126),a146_0x3599f0(0xec),a146_0x3599f0(0xe8),'to',a146_0x3599f0(0xfb),a146_0x3599f0(0x169),a146_0x3599f0(0x168),a146_0x3599f0(0xff),a146_0x3599f0(0x118),a146_0x3599f0(0xed),'cNvPr',a146_0x3599f0(0x156)][a146_0x3599f0(0x13f)](_0x13dc3d=>[_0x13dc3d,DRAWING]),...['rvb',a146_0x3599f0(0x104),'rv','rvStructures','s','k'][a146_0x3599f0(0x13f)](_0x54db30=>[_0x54db30,RICH]),[a146_0x3599f0(0xef),DRAWING_MAIN],[a146_0x3599f0(0x148),RICH_RELS],[a146_0x3599f0(0x11f),RICH_RELS],[a146_0x3599f0(0x130),PACKAGE],['Relationship',PACKAGE],[a146_0x3599f0(0x187),WPS],['cellImage',WPS]]),matches=(_0x373dc5,_0x811433,_0x16c899=DEFAULT_NS[_0x811433]??[])=>_0x373dc5[a146_0x3599f0(0x102)]===_0x811433&&_0x16c899[a146_0x3599f0(0x141)](_0x373dc5[a146_0x3599f0(0x140)]),children=(_0x5049d8,_0x3e60ef,_0x1e9155=DEFAULT_NS[_0x3e60ef])=>_0x5049d8[a146_0x3599f0(0x127)][a146_0x3599f0(0xee)](_0x43823e=>matches(_0x43823e,_0x3e60ef,_0x1e9155)),chain=(_0x494cec,..._0x324ff1)=>_0x324ff1[a146_0x3599f0(0x136)]((_0x58c2e1,_0x2eca53)=>_0x58c2e1['flatMap'](_0x4ab8a6=>children(_0x4ab8a6,_0x2eca53)),[_0x494cec]),relationshipTypes=_0x3f089f=>{const _0x19b305=a146_0x3599f0;if([_0x19b305(0xfe),_0x19b305(0x161)][_0x19b305(0x141)](_0x3f089f))return['http://schemas.microsoft.com/office/2017/06/relationships/'+_0x3f089f];if(_0x3f089f===_0x19b305(0x16a))return['http://schemas.microsoft.com/office/2022/10/relationships/richValueRel'];if(_0x3f089f===_0x19b305(0x173)||_0x3f089f==='cellImages')return[_0x19b305(0x165)+_0x3f089f];return OFFICE_RELS[_0x19b305(0x13f)](_0x127bde=>_0x127bde+'/'+_0x3f089f);};function one(_0x39dc7c,_0x28f29f){const _0x1faada=a146_0x3599f0;if(_0x39dc7c[_0x1faada(0x11b)]!==0x1)throw Error(_0x1faada(0xf0)+_0x28f29f+'.');return _0x39dc7c[0x0];}function integer(_0x1191bb,_0x18ebfe,_0x1fc6d7=0x186a0){const _0x112cae=a146_0x3599f0;if(!_0x1191bb||!/^\d+$/[_0x112cae(0x14b)](_0x1191bb)||!Number[_0x112cae(0xf6)](Number(_0x1191bb))||Number(_0x1191bb)>_0x1fc6d7)throw Error(_0x112cae(0x131)+_0x18ebfe+'.');return Number(_0x1191bb);}export function resolveWorksheetImages(_0xf85a12,_0x2a3fdd,_0x2a6e6e){const _0x3c11f3=a146_0x3599f0;let _0x2034f2=0x0,_0x3afde5=0x0,_0x209d7b=0x0;const _0x469457=new Map(),_0x198aef=_0x5dd7b4=>{const _0x278466=a146_0x3c65;if(_0x469457[_0x278466(0x16e)](_0x5dd7b4))return _0x469457[_0x278466(0x122)](_0x5dd7b4);const _0x196294=_0xf85a12[_0x278466(0x122)](_0x5dd7b4);if(!_0x196294)throw Error(_0x278466(0x172)+_0x5dd7b4+'.');const _0x248bbf={'name':'','uri':'','attrs':{},'children':[],'text':''},_0x569708=[_0x248bbf],_0x6ff36c=new SaxesParser({'xmlns':!![]}),_0x331dba=()=>{const _0x36d0d8=_0x278466;if(++_0x3afde5>0x1e8480)throw Error(_0x36d0d8(0x10d));};_0x6ff36c['on']('doctype',()=>{const _0x4360a9=_0x278466;throw Error(_0x4360a9(0xf1));}),_0x6ff36c['on'](_0x278466(0x10f),_0x24847c=>{const _0x1ef09e=_0x278466;_0x331dba();if(++_0x2034f2>0x7a120||_0x569708[_0x1ef09e(0x11b)]>0x40)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');const _0x42a354={};for(const _0x56e1e4 of Object[_0x1ef09e(0x142)](_0x24847c['attributes'])){const _0x15570c=OFFICE_RELS['includes'](_0x56e1e4[_0x1ef09e(0x140)])?'r:'+_0x56e1e4[_0x1ef09e(0x150)]:_0x56e1e4[_0x1ef09e(0x140)]?'{'+_0x56e1e4[_0x1ef09e(0x140)]+'}'+_0x56e1e4[_0x1ef09e(0x150)]:_0x56e1e4[_0x1ef09e(0x150)];if(_0x15570c in _0x42a354)throw Error('Ambiguous\x20XML\x20attribute.');_0x42a354[_0x15570c]=_0x56e1e4[_0x1ef09e(0x116)];}const _0x4939fa={'name':_0x24847c[_0x1ef09e(0x150)],'uri':_0x24847c['uri'],'attrs':_0x42a354,'children':[],'text':''};_0x569708['at'](-0x1)[_0x1ef09e(0x127)]['push'](_0x4939fa),_0x569708['push'](_0x4939fa);}),_0x6ff36c['on'](_0x278466(0x113),_0x6c2a4c=>{const _0x30f09c=_0x278466;_0x331dba();const _0xbb00ee=_0x569708['at'](-0x1);_0xbb00ee[_0x30f09c(0x113)]+=_0x6c2a4c;if(_0xbb00ee['text'][_0x30f09c(0x11b)]>0x10000)throw Error(_0x30f09c(0x14a));}),_0x6ff36c['on'](_0x278466(0x179),()=>{const _0x2a4738=_0x278466;_0x331dba(),_0x569708[_0x2a4738(0xfa)]();}),_0x6ff36c['on'](_0x278466(0x12b),_0x4c27b6=>{throw _0x4c27b6;}),_0x6ff36c['write'](_0x196294['toString']('utf8'))[_0x278466(0x144)]();const _0x11b024=one(_0x248bbf[_0x278466(0x127)],_0x5dd7b4);return _0x469457[_0x278466(0x151)](_0x5dd7b4,_0x11b024),_0x11b024;},_0x7ae292=new Map(),_0x51e9b9=_0x477c47=>{const _0x15937a=a146_0x3c65;if(_0x7ae292[_0x15937a(0x16e)](_0x477c47))return _0x7ae292[_0x15937a(0x122)](_0x477c47);const _0x225d09=a146_0x382453[_0x15937a(0xf9)][_0x15937a(0x155)](a146_0x382453[_0x15937a(0xf9)]['dirname'](_0x477c47),'_rels',a146_0x382453[_0x15937a(0xf9)]['basename'](_0x477c47)+_0x15937a(0x163));if(!_0xf85a12[_0x15937a(0x16e)](_0x225d09))return[];const _0x57d00d=new Set(),_0x5ea4f2=_0x198aef(_0x225d09);if(!matches(_0x5ea4f2,_0x15937a(0x130)))throw Error(_0x15937a(0x129)+_0x225d09+'.');const _0x14331e=children(_0x5ea4f2,'Relationship')[_0x15937a(0x13f)](_0x387445=>{const {Id:_0x4d310e,Type:_0x4b4920,Target:_0x931786,TargetMode:_0x33b1f9}=_0x387445['attrs'];if(!_0x4d310e||_0x57d00d['has'](_0x4d310e)||!_0x4b4920)throw Error('Invalid\x20or\x20duplicate\x20relationship\x20in\x20'+_0x225d09+'.');return _0x57d00d['add'](_0x4d310e),{'id':_0x4d310e,'type':_0x4b4920,'target':_0x931786??'','mode':_0x33b1f9};});return _0x7ae292[_0x15937a(0x151)](_0x477c47,_0x14331e),_0x14331e;},_0x5780a6=(_0x222661,_0x2a7b26)=>{const _0xcc90bd=a146_0x3c65,{target:_0x29f768,mode:_0x1be6c8}=_0x2a7b26;if(_0x1be6c8&&_0x1be6c8!==_0xcc90bd(0x180))throw Error(_0xcc90bd(0x105)+_0x222661+'.');if(!_0x29f768||_0x29f768['includes']('\x5c')||/[?#%\x00-\x20]/[_0xcc90bd(0x14b)](_0x29f768)||/^[a-z][a-z0-9+.-]*:/i[_0xcc90bd(0x14b)](_0x29f768)||_0x29f768[_0xcc90bd(0x100)]('//'))throw Error('Invalid\x20relationship\x20target:\x20'+_0x222661+'.');const _0x239aa5=_0x29f768[_0xcc90bd(0x100)]('/')?_0x29f768[_0xcc90bd(0x185)](0x1):a146_0x382453[_0xcc90bd(0xf9)][_0xcc90bd(0x13e)](a146_0x382453[_0xcc90bd(0xf9)]['join'](a146_0x382453[_0xcc90bd(0xf9)]['dirname'](_0x222661),_0x29f768));if(_0x239aa5[_0xcc90bd(0x100)]('../')||_0x239aa5==='..'||!_0x239aa5[_0xcc90bd(0x100)](_0xcc90bd(0x120)))throw Error(_0xcc90bd(0x182)+_0x222661+'.');return _0x239aa5;},_0x2605ae=(_0x395943,_0x34b89a,_0x1d465a)=>{const _0x456e61=a146_0x3c65,_0x40e391=_0x51e9b9(_0x395943)[_0x456e61(0xee)](_0x40dd54=>_0x40dd54['id']===_0x34b89a&&relationshipTypes(_0x1d465a)[_0x456e61(0x141)](_0x40dd54[_0x456e61(0x183)]));if(_0x40e391[_0x456e61(0x11b)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20'+_0x1d465a+_0x456e61(0x146)+_0x395943+'.');return _0x5780a6(_0x395943,_0x40e391[0x0]);},_0x8563db=(_0x3e8c59,_0x3f0e02)=>{const _0x3e627b=a146_0x3c65,_0x5975de=_0x51e9b9(_0x3e8c59)['filter'](_0x5a16f9=>relationshipTypes(_0x3f0e02)[_0x3e627b(0x141)](_0x5a16f9['type']));if(_0x5975de['length']!==0x1)throw Error(_0x3e627b(0xf0)+_0x3f0e02+_0x3e627b(0x146)+_0x3e8c59+'.');return _0x5780a6(_0x3e8c59,_0x5975de[0x0]);},_0x460c3d=_0x3c11f3(0x15b),_0x28c749=_0x198aef(_0x460c3d);if(!matches(_0x28c749,_0x3c11f3(0x112)))throw Error('Unsupported\x20workbook\x20namespace.');const _0x575b09=one(chain(_0x28c749,_0x3c11f3(0x123),'sheet')[_0x3c11f3(0xee)](_0x221644=>_0x221644[_0x3c11f3(0x170)]['name']===_0x2a3fdd),_0x3c11f3(0x106)),_0x18c853=_0x2605ae(_0x460c3d,_0x575b09[_0x3c11f3(0x170)][_0x3c11f3(0x177)],'worksheet'),_0x115c4b=_0x198aef(_0x18c853);if(!matches(_0x115c4b,'worksheet'))throw Error(_0x3c11f3(0x10c));const _0x2b12e5=chain(_0x115c4b,_0x3c11f3(0x17c),'row'),_0x2f4160=new Map(),_0x54b4a3=new Set(_0x2b12e5[_0x3c11f3(0xee)](_0x5834fa=>_0x5834fa[_0x3c11f3(0x170)][_0x3c11f3(0x16d)]==='1'||_0x5834fa[_0x3c11f3(0x170)][_0x3c11f3(0x16d)]==='true')[_0x3c11f3(0x13f)](_0x47d8d9=>integer(_0x47d8d9[_0x3c11f3(0x170)]['r'],'hidden\x20image\x20row'))),_0x5effe6=_0x5de4b2=>{const _0x4bdd09=_0x3c11f3,_0x5b0602=_0x5de4b2===undefined?0xf:Number(_0x5de4b2);if(!Number[_0x4bdd09(0x181)](_0x5b0602)||_0x5b0602<=0x0||_0x5b0602>409.5)throw Error('Invalid\x20worksheet\x20row\x20height\x20for\x20image\x20anchor.');return Math[_0x4bdd09(0x166)](_0x5b0602*0x319c);},_0x386333=_0x5effe6(children(_0x115c4b,'sheetFormatPr')[0x0]?.[_0x3c11f3(0x170)]['defaultRowHeight']);for(const _0x163a21 of _0x2b12e5)if(_0x163a21[_0x3c11f3(0x170)]['ht']!==undefined)_0x2f4160[_0x3c11f3(0x151)](integer(_0x163a21['attrs']['r'],_0x3c11f3(0xe7)),_0x5effe6(_0x163a21[_0x3c11f3(0x170)]['ht']));const _0x4afa50=[],_0x160484=_0x117f3b=>{const _0x2d0849=_0x3c11f3;if(!_0x2a6e6e[_0x2d0849(0x16e)](_0x117f3b['col']))return;if(++_0x209d7b>0x2710)throw Error('Workbook\x20exceeds\x2010000\x20image\x20occurrences.');_0x4afa50[_0x2d0849(0x13c)](_0x54b4a3['has'](_0x117f3b[_0x2d0849(0xe5)])?{..._0x117f3b,'hiddenRow':!![]}:_0x117f3b);},_0x3bcf71=_0x4d0513=>({'row':integer(one(children(_0x4d0513,'row',DRAWING),_0x3c11f3(0xe9))[_0x3c11f3(0x113)],'anchor\x20row',0x1869f)+0x1,'col':integer(one(children(_0x4d0513,_0x3c11f3(0xfb)),_0x3c11f3(0x133))[_0x3c11f3(0x113)],_0x3c11f3(0x133),0xff)+0x1});for(const _0x1b0e60 of children(_0x115c4b,'drawing')){const _0x3b7233=_0x2605ae(_0x18c853,_0x1b0e60[_0x3c11f3(0x170)][_0x3c11f3(0x177)],'drawing'),_0xd2844f=_0x198aef(_0x3b7233);if(!matches(_0xd2844f,_0x3c11f3(0xe6)))throw Error(_0x3c11f3(0x162));for(const _0x144d70 of _0xd2844f['children']){if(!['oneCellAnchor',_0x3c11f3(0x126),_0x3c11f3(0xec)][_0x3c11f3(0x11d)](_0x240f9b=>matches(_0x144d70,_0x240f9b)))continue;if(_0x144d70[_0x3c11f3(0x102)]===_0x3c11f3(0xec))throw Error(_0x3c11f3(0x14f)+_0x2a3fdd+'.');const _0x297037=_0x3bcf71(one(children(_0x144d70,_0x3c11f3(0xe8)),_0x3c11f3(0x174)));if(!_0x2a6e6e[_0x3c11f3(0x16e)](_0x297037[_0x3c11f3(0xfb)]))continue;let _0x283acf;const _0x305b38=one(children(_0x144d70,'from'),_0x3c11f3(0x174)),_0x28f7b8=integer(one(children(_0x305b38,'rowOff'),_0x3c11f3(0x107))[_0x3c11f3(0x113)],_0x3c11f3(0x107),Number[_0x3c11f3(0x12f)]),_0x15ec2f=_0x2f4160[_0x3c11f3(0x122)](_0x297037[_0x3c11f3(0xe5)])??_0x386333;if(_0x28f7b8>=_0x15ec2f)throw Error(_0x3c11f3(0x114)+_0x297037[_0x3c11f3(0xe5)]+'.');if(_0x144d70[_0x3c11f3(0x102)]==='oneCellAnchor'){const _0x353cd3=one(children(_0x144d70,_0x3c11f3(0xff)),'image\x20extent'),_0x5d659b=integer(_0x353cd3[_0x3c11f3(0x170)]['cy'],'image\x20height',Number[_0x3c11f3(0x12f)]);if(!_0x5d659b||_0x28f7b8+_0x5d659b>_0x15ec2f)_0x283acf=_0x3c11f3(0x15c);}if(_0x144d70[_0x3c11f3(0x102)]===_0x3c11f3(0x126)){const _0xbfe5ca=one(children(_0x144d70,'to'),_0x3c11f3(0x184)),_0x441347=_0x3bcf71(_0xbfe5ca),_0x3def58=integer(one(children(_0xbfe5ca,_0x3c11f3(0x168)),'anchor\x20end\x20offset')[_0x3c11f3(0x113)],_0x3c11f3(0xeb),Number[_0x3c11f3(0x12f)]),_0x4d2ba7=_0x2f4160['get'](_0x441347['row'])??_0x386333;if(_0x3def58>_0x4d2ba7||_0x441347[_0x3c11f3(0xe5)]===_0x297037['row']&&_0x3def58<=_0x28f7b8)_0x283acf='Image\x20anchor\x20has\x20invalid\x20or\x20reversed\x20row\x20offsets.';if(_0x441347['row']<_0x297037[_0x3c11f3(0xe5)]||_0x441347[_0x3c11f3(0xe5)]>_0x297037['row']+0x1||_0x441347[_0x3c11f3(0xe5)]===_0x297037['row']+0x1&&_0x3def58!==0x0)_0x283acf=_0x3c11f3(0x15c);}const _0x13275f=chain(_0x144d70,_0x3c11f3(0x118),'blipFill',_0x3c11f3(0xef));for(const _0x1a28e5 of _0x13275f){if(_0x1a28e5[_0x3c11f3(0x170)][_0x3c11f3(0x128)])throw Error(_0x3c11f3(0x11a));_0x160484({..._0x297037,'media':[_0x2605ae(_0x3b7233,_0x1a28e5[_0x3c11f3(0x170)][_0x3c11f3(0x16c)],_0x3c11f3(0x147))],..._0x283acf?{'error':_0x283acf}:{}});}if(!_0x13275f['length'])_0x160484({..._0x297037,'media':[],'error':'Unsupported\x20drawing\x20image.'});}}const _0x3026ec=_0xf88245=>{const _0x20bced=_0x3c11f3,_0x2f92c6=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0x13d)));if(!matches(_0x2f92c6,_0x20bced(0x121)))throw Error('Unsupported\x20metadata\x20namespace.');const _0x1cff64=integer(_0xf88245[_0x20bced(0x170)]['vm'],_0x20bced(0x135));if(!_0x1cff64)throw Error('Value\x20metadata\x20index\x20must\x20be\x20one-based.');const _0x38c4d8=children(one(children(_0x2f92c6,'valueMetadata'),'valueMetadata'),'bk')[_0x1cff64-0x1];if(!_0x38c4d8)throw Error(_0x20bced(0x143));const _0xc20784=one(children(_0x38c4d8,'rc'),_0x20bced(0x10a)),_0x18aa70=integer(_0xc20784[_0x20bced(0x170)]['t'],_0x20bced(0x124)),_0x13e752=children(one(children(_0x2f92c6,_0x20bced(0x164)),_0x20bced(0x149)),_0x20bced(0x159))[_0x18aa70-0x1];if(!_0x18aa70||_0x13e752?.[_0x20bced(0x170)][_0x20bced(0x102)]!==_0x20bced(0x17d))throw Error(_0x20bced(0x158));const _0x16e1e8=one(children(_0x2f92c6,_0x20bced(0x15f))['filter'](_0x4b6da3=>_0x4b6da3[_0x20bced(0x170)]['name']===_0x20bced(0x17d)),_0x20bced(0x117)),_0x422c79=children(_0x16e1e8,'bk')[integer(_0xc20784[_0x20bced(0x170)]['v'],_0x20bced(0x176))];if(!_0x422c79)throw Error(_0x20bced(0x139));const _0x47c0f6=chain(_0x422c79,_0x20bced(0x11c))[_0x20bced(0x157)](_0x35e442=>children(_0x35e442,_0x20bced(0xff),SHEET))[_0x20bced(0xee)](_0xbca723=>_0xbca723[_0x20bced(0x170)]['uri']?.[_0x20bced(0x13a)]()===_0x20bced(0xf5)),_0x55e841=integer(one(_0x47c0f6[_0x20bced(0x157)](_0x2eea6f=>children(_0x2eea6f,_0x20bced(0x138))),_0x20bced(0xf3))[_0x20bced(0x170)]['i'],_0x20bced(0x134)),_0xf045c3=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0xfe)));if(!matches(_0xf045c3,'rvData'))throw Error(_0x20bced(0x16f));const _0x58ccb7=children(_0xf045c3,'rv')[_0x55e841];if(!_0x58ccb7)throw Error('Missing\x20rich\x20value.');const _0x4798cc=_0x198aef(_0x8563db(_0x460c3d,_0x20bced(0x161)));if(!matches(_0x4798cc,_0x20bced(0x16b)))throw Error(_0x20bced(0x15a));const _0xe92738=children(_0x4798cc,'s')[integer(_0x58ccb7[_0x20bced(0x170)]['s'],_0x20bced(0x119))];if(!_0xe92738||_0xe92738[_0x20bced(0x170)]['t']!==_0x20bced(0xf7))throw Error('Unsupported\x20mapped\x20rich\x20value\x20structure.');const _0x3c10e4=children(_0xe92738,'k'),_0x4b2046=_0x3c10e4[_0x20bced(0x13f)]((_0x4e49e6,_0x54f688)=>_0x4e49e6[_0x20bced(0x170)]['n']==='_rvRel:LocalImageIdentifier'?_0x54f688:-0x1)[_0x20bced(0xee)](_0x57f804=>_0x57f804>=0x0);if(_0x4b2046[_0x20bced(0x11b)]!==0x1)throw Error('Missing\x20or\x20ambiguous\x20local\x20image\x20identifier.');const _0x40fbe8=children(_0x58ccb7,'v',RICH)[_0x4b2046[0x0]];if(!_0x40fbe8)throw Error(_0x20bced(0x145));const _0x112f86=_0x8563db(_0x460c3d,'richValueRel'),_0x1079ce=_0x198aef(_0x112f86);if(!matches(_0x1079ce,'richValueRels'))throw Error(_0x20bced(0x14d));const _0x37b6c4=children(_0x1079ce,'rel')[integer(_0x40fbe8['text'],_0x20bced(0x167))];if(!_0x37b6c4)throw Error('Missing\x20rich\x20image\x20relationship.');return _0x2605ae(_0x112f86,_0x37b6c4['attrs']['r:id'],_0x20bced(0x147));};let _0x22b863;const _0x40d777=_0x213d52=>{const _0x4f21cf=_0x3c11f3;if(!_0x22b863){_0x22b863=new Map();const _0xf9b75b=_0x51e9b9(_0x460c3d)[_0x4f21cf(0xee)](_0x3d7995=>[...relationshipTypes(_0x4f21cf(0x173)),...relationshipTypes(_0x4f21cf(0x187))][_0x4f21cf(0x141)](_0x3d7995[_0x4f21cf(0x183)]));if(!_0xf9b75b[_0x4f21cf(0x11b)]&&_0xf85a12[_0x4f21cf(0x16e)]('xl/cellimages.xml'))_0xf9b75b[_0x4f21cf(0x13c)]({'id':'','type':'','target':_0x4f21cf(0x17b)});if(_0xf9b75b['length']!==0x1)throw Error(_0x4f21cf(0xea));const _0x4c9853=_0x5780a6(_0x460c3d,_0xf9b75b[0x0]),_0x5a9101=_0x198aef(_0x4c9853);if(!matches(_0x5a9101,_0x4f21cf(0x187)))throw Error(_0x4f21cf(0x108));for(const _0x4a0c21 of children(_0x5a9101,'cellImage')){const _0x12c7fc=one(chain(_0x4a0c21,'pic',_0x4f21cf(0xed),_0x4f21cf(0x10e)),_0x4f21cf(0x12a))['attrs'][_0x4f21cf(0x102)];if(!_0x12c7fc||_0x22b863[_0x4f21cf(0x16e)](_0x12c7fc))throw Error('Invalid\x20or\x20duplicate\x20WPS\x20image\x20ID.');const _0x25b115=one(chain(_0x4a0c21,_0x4f21cf(0x118),'blipFill',_0x4f21cf(0xef)),_0x4f21cf(0x115));if(_0x25b115[_0x4f21cf(0x170)]['r:link'])throw Error(_0x4f21cf(0x132));_0x22b863[_0x4f21cf(0x151)](_0x12c7fc,_0x2605ae(_0x4c9853,_0x25b115[_0x4f21cf(0x170)][_0x4f21cf(0x16c)],'image'));}}const _0x52e528=_0x22b863[_0x4f21cf(0x122)](_0x213d52);if(!_0x52e528)throw Error(_0x4f21cf(0x160)+_0x213d52+'.');return _0x52e528;},_0x181b3c=new Set();for(const _0x27574d of _0x2b12e5[_0x3c11f3(0x157)](_0xb8cedf=>children(_0xb8cedf,'c'))){const _0x1acdc1=/^([A-Z]+)([1-9]\d*)$/['exec'](_0x27574d[_0x3c11f3(0x170)]['r']??'');if(!_0x1acdc1)continue;let _0x2a3bb3=0x0;for(const _0x1b5eaa of _0x1acdc1[0x1])_0x2a3bb3=_0x2a3bb3*0x1a+_0x1b5eaa['charCodeAt'](0x0)-0x40;if(!_0x2a6e6e[_0x3c11f3(0x16e)](_0x2a3bb3))continue;const _0x3670c0=integer(_0x1acdc1[0x2],'image\x20cell\x20row');if(_0x181b3c[_0x3c11f3(0x16e)](_0x27574d['attrs']['r']))throw Error(_0x3c11f3(0x186));_0x181b3c[_0x3c11f3(0x12e)](_0x27574d['attrs']['r']);const _0x4117f3=children(_0x27574d,'f');if(!_0x27574d[_0x3c11f3(0x170)]['vm']&&!_0x4117f3[_0x3c11f3(0x11b)])continue;try{if(_0x3670c0<0x1||_0x2a3bb3>0x100)throw Error('Image\x20coordinate\x20exceeds\x20worksheet\x20bounds.');let _0xbc3fe2;if(_0x27574d[_0x3c11f3(0x170)]['vm']){if(_0x4117f3['length'])throw Error(_0x3c11f3(0xf8));if(_0x27574d[_0x3c11f3(0x170)]['t']!=='e'||children(_0x27574d,'v')[_0x3c11f3(0x11b)]!==0x1||children(_0x27574d,'v')[0x0]['text']!=='#VALUE!')throw Error(_0x3c11f3(0x101));_0xbc3fe2=_0x3026ec(_0x27574d);}else{const _0x39cb76=one(_0x4117f3,_0x3c11f3(0x153));if(_0x39cb76[_0x3c11f3(0x170)]['t']==='shared'||_0x39cb76['attrs']['si'])throw Error(_0x3c11f3(0x103));const _0xd8688e=/^\s*=?\s*@?(?:_xlfn\.)?DISPIMG\(\s*"((?:[^"]|"")+)"\s*(?:,\s*[01]\s*)?\)\s*$/i[_0x3c11f3(0x188)](_0x39cb76[_0x3c11f3(0x113)]);if(!_0xd8688e)throw Error(_0x3c11f3(0x175));_0xbc3fe2=_0x40d777(_0xd8688e[0x1][_0x3c11f3(0x17e)](/""/g,'\x22'));}_0x160484({'row':_0x3670c0,'col':_0x2a3bb3,'media':[_0xbc3fe2],'nativeCell':!![]});}catch(_0xf8ad1d){_0x160484({'row':_0x3670c0,'col':_0x2a3bb3,'media':[],'nativeCell':!![],'error':_0xf8ad1d['message']});}}return _0x4afa50;}
|