@lovrabet/lovrabet-cli 2.3.6-beta.3 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x120b97=a128_0x42d3;(function(_0x42003a,_0x2bc43a){const _0x2fdee9=a128_0x42d3,_0x57c32d=_0x42003a();while(!![]){try{const _0x13c26b=-parseInt(_0x2fdee9(0xa4))/0x1*(-parseInt(_0x2fdee9(0xa5))/0x2)+-parseInt(_0x2fdee9(0xa7))/0x3+parseInt(_0x2fdee9(0xa6))/0x4*(-parseInt(_0x2fdee9(0xa3))/0x5)+-parseInt(_0x2fdee9(0xa8))/0x6+parseInt(_0x2fdee9(0xac))/0x7+-parseInt(_0x2fdee9(0xa9))/0x8+parseInt(_0x2fdee9(0xa2))/0x9;if(_0x13c26b===_0x2bc43a)break;else _0x57c32d['push'](_0x57c32d['shift']());}catch(_0x554e1d){_0x57c32d['push'](_0x57c32d['shift']());}}}(a128_0xd42b,0xe5268));export const VERSION=a128_0x120b97(0xaa);function a128_0x42d3(_0x49d1fa,_0x33b6f5){_0x49d1fa=_0x49d1fa-0xa1;const _0xd42b8e=a128_0xd42b();let _0x42d305=_0xd42b8e[_0x49d1fa];return _0x42d305;}export const GIT_TAG='v2.3.6';function a128_0xd42b(){const _0x2295cb=['1930030pAQGPp','439822cSXQRf','2LNosXX','8EqVDUb','5321382lqCvzq','4715742yuvdQE','13379280yViYsO','2.3.6','2026-10-22T11:42:27.819Z','8905988raftqh','764a816','38076003gOvZJi'];a128_0xd42b=function(){return _0x2295cb;};return a128_0xd42b();}export const GIT_COMMIT=a128_0x120b97(0xa1);export const BUILD_TIME=a128_0x120b97(0xab);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x19f134=a129_0x41e3;function a129_0xf0d7(){const _0x53aa4d=['25431hNECDG','https://api.lovrabet.id','2035300dhfSwA','https://daily-api.lovrabet.ai','indonesia','7UZutng','https://skills.lovrabet.ai','https://runtime.lovrabet.ai','Mainland\x20China','Global','china','2678472QkyKME','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://kb-service-daily.lovrabet.com','1423906WEMWIi','https://user-daily.lovrabet.com','https://runtime.lovrabet.id','https://skills.lovrabet.id','139231TUZOjk','https://kb-service.lovrabet.id','https://skills-daily.lovrabet.com','https://runtime.lovrabet.com','27xJqyhj','https://user.lovrabet.id','https://skills-daily.lovrabet.ai','global','4JFuouI','https://user.lovrabet.com','1828248XYBdvL','https://daily-runtime.lovrabet.com','76HMIQpg','https://user-daily.lovrabet.ai','611760OzYuRx','https://user.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://api.lovrabet.com','https://kb-service.lovrabet.com'];a129_0xf0d7=function(){return _0x53aa4d;};return a129_0xf0d7();}(function(_0x517c52,_0x31624d){const _0x24fb93=a129_0x41e3,_0x1913c5=_0x517c52();while(!![]){try{const _0x1b0f33=parseInt(_0x24fb93(0x12c))/0x1+parseInt(_0x24fb93(0x138))/0x2*(parseInt(_0x24fb93(0x13f))/0x3)+-parseInt(_0x24fb93(0x134))/0x4*(parseInt(_0x24fb93(0x11c))/0x5)+parseInt(_0x24fb93(0x125))/0x6+parseInt(_0x24fb93(0x11f))/0x7*(parseInt(_0x24fb93(0x136))/0x8)+-parseInt(_0x24fb93(0x130))/0x9*(parseInt(_0x24fb93(0x13a))/0xa)+-parseInt(_0x24fb93(0x128))/0xb;if(_0x1b0f33===_0x31624d)break;else _0x1913c5['push'](_0x1913c5['shift']());}catch(_0x18a8b9){_0x1913c5['push'](_0x1913c5['shift']());}}}(a129_0xf0d7,0x65a0a));function a129_0x41e3(_0x89f0f,_0x4d9858){_0x89f0f=_0x89f0f-0x11b;const _0xf0d76=a129_0xf0d7();let _0x41e3af=_0xf0d76[_0x89f0f];return _0x41e3af;}export const ROUTING_CATALOG_DIGEST=a129_0x19f134(0x126);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a129_0x19f134(0x133)];export const ENABLED_REGION_VALUES=['cn','id',a129_0x19f134(0x133)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x19f134(0x122),'aliases':[a129_0x19f134(0x124)],'serviceDomains':{'production':{'user':a129_0x19f134(0x135),'api':a129_0x19f134(0x13d),'runtime':a129_0x19f134(0x12f),'skill':'https://skills.lovrabet.com','kbService':a129_0x19f134(0x13e)},'daily':{'user':a129_0x19f134(0x129),'api':'https://daily-api.lovrabet.com','runtime':a129_0x19f134(0x137),'skill':a129_0x19f134(0x12e),'kbService':a129_0x19f134(0x127)}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a129_0x19f134(0x11e)],'serviceDomains':{'production':{'user':a129_0x19f134(0x131),'api':a129_0x19f134(0x11b),'runtime':a129_0x19f134(0x12a),'skill':a129_0x19f134(0x12b),'kbService':a129_0x19f134(0x12d)}}},'global':{'enabled':!![],'label':a129_0x19f134(0x123),'aliases':[],'serviceDomains':{'production':{'user':a129_0x19f134(0x13b),'api':'https://api.lovrabet.ai','runtime':a129_0x19f134(0x121),'skill':a129_0x19f134(0x120)},'daily':{'user':a129_0x19f134(0x139),'api':a129_0x19f134(0x11d),'runtime':a129_0x19f134(0x13c),'skill':a129_0x19f134(0x132)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a130_0x3be4(_0xe02b01,_0x40e748){_0xe02b01=_0xe02b01-0xa5;const _0x21e13d=a130_0x21e1();let _0x3be44a=_0x21e13d[_0xe02b01];return _0x3be44a;}const a130_0x26dd7e=a130_0x3be4;(function(_0x158d80,_0x1dc83b){const _0x2e97fc=a130_0x3be4,_0x4731fc=_0x158d80();while(!![]){try{const _0x37497e=parseInt(_0x2e97fc(0xaf))/0x1+parseInt(_0x2e97fc(0xa5))/0x2+parseInt(_0x2e97fc(0xae))/0x3*(-parseInt(_0x2e97fc(0xb1))/0x4)+-parseInt(_0x2e97fc(0xab))/0x5+-parseInt(_0x2e97fc(0xb0))/0x6+parseInt(_0x2e97fc(0xa7))/0x7+parseInt(_0x2e97fc(0xa8))/0x8;if(_0x37497e===_0x1dc83b)break;else _0x4731fc['push'](_0x4731fc['shift']());}catch(_0x374ae7){_0x4731fc['push'](_0x4731fc['shift']());}}}(a130_0x21e1,0xa0f34));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a130_0x26dd7e(0xa6);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a130_0x26dd7e(0xad),'runtimeDomain',a130_0x26dd7e(0xaa),'kbServiceDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x26dd7e(0xac),a130_0x26dd7e(0xad),a130_0x26dd7e(0xa9),a130_0x26dd7e(0xaa)];function a130_0x21e1(){const _0x327874=['3671379XqQoCg','1049344NPlVrd','4216782lqobFH','4dXQyPi','191566JIiUMG','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','3575894lOEqLd','16915064yKShsf','runtimeDomain','skillDomain','5922550oEjUQW','userDomain','apiDomain'];a130_0x21e1=function(){return _0x327874;};return a130_0x21e1();}
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a131_0x59df(_0x12c1ca,_0x4a8676){_0x12c1ca=_0x12c1ca-0x1b2;const _0x2e1acf=a131_0x2e1a();let _0x59dfd9=_0x2e1acf[_0x12c1ca];return _0x59dfd9;}(function(_0x3b1363,_0x4e3b2d){const _0x3eb243=a131_0x59df,_0x1cede2=_0x3b1363();while(!![]){try{const _0x3d950a=parseInt(_0x3eb243(0x1b2))/0x1*(parseInt(_0x3eb243(0x1b6))/0x2)+parseInt(_0x3eb243(0x1b7))/0x3+-parseInt(_0x3eb243(0x1bf))/0x4+-parseInt(_0x3eb243(0x1bc))/0x5*(-parseInt(_0x3eb243(0x1b8))/0x6)+-parseInt(_0x3eb243(0x1bb))/0x7+parseInt(_0x3eb243(0x1be))/0x8*(parseInt(_0x3eb243(0x1ba))/0x9)+-parseInt(_0x3eb243(0x1b4))/0xa;if(_0x3d950a===_0x4e3b2d)break;else _0x1cede2['push'](_0x1cede2['shift']());}catch(_0x4731e1){_0x1cede2['push'](_0x1cede2['shift']());}}}(a131_0x2e1a,0x78742));import{jsx as a131_0x5dffee,jsxs as a131_0x3a2bb4}from'react/jsx-runtime';function a131_0x2e1a(){const _0x3814d5=['column','1377TlfEOi','1137318VzOMMl','3243125pJYbvs','green','4264pjIXRu','1479628fKAIFI','\x20--help','4MjvVaC','\x20to\x20view\x20available\x20commands.','1356360MUxmGh','\x20\x20Use\x20','190144SICvaw','152799kWhnnA','6znJDaJ'];a131_0x2e1a=function(){return _0x3814d5;};return a131_0x2e1a();}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xa2d4d1=a131_0x59df,{exit:_0x535e7d}=useApp();return useEffect(()=>{_0x535e7d();},[_0x535e7d]),a131_0x3a2bb4(Box,{'flexDirection':_0xa2d4d1(0x1b9),'marginTop':0x1,'marginBottom':0x1,'children':[a131_0x5dffee(Box,{'children':a131_0x5dffee(Text,{'bold':!![],'color':'green','children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x3a2bb4(Box,{'marginTop':0x1,'children':[a131_0x5dffee(Text,{'dimColor':!![],'children':_0xa2d4d1(0x1b5)}),a131_0x5dffee(Text,{'bold':!![],'color':_0xa2d4d1(0x1bd),'children':CLI_BIN_NAME+_0xa2d4d1(0x1c0)}),a131_0x5dffee(Text,{'dimColor':!![],'children':_0xa2d4d1(0x1b3)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a132_0x1792(_0x3c284c,_0xe1c2d0){_0x3c284c=_0x3c284c-0x1d9;const _0x13c605=a132_0x13c6();let _0x17924a=_0x13c605[_0x3c284c];return _0x17924a;}(function(_0x534b62,_0x349a34){const _0x1433e8=a132_0x1792,_0x31bde0=_0x534b62();while(!![]){try{const _0x11bbac=parseInt(_0x1433e8(0x1e2))/0x1+-parseInt(_0x1433e8(0x1e3))/0x2*(-parseInt(_0x1433e8(0x1eb))/0x3)+-parseInt(_0x1433e8(0x1da))/0x4*(parseInt(_0x1433e8(0x1e5))/0x5)+parseInt(_0x1433e8(0x1e0))/0x6*(-parseInt(_0x1433e8(0x1e4))/0x7)+-parseInt(_0x1433e8(0x1dc))/0x8+parseInt(_0x1433e8(0x1de))/0x9+-parseInt(_0x1433e8(0x1ea))/0xa;if(_0x11bbac===_0x349a34)break;else _0x31bde0['push'](_0x31bde0['shift']());}catch(_0x2a8d00){_0x31bde0['push'](_0x31bde0['shift']());}}}(a132_0x13c6,0xc2d2a));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a132_0x13c6(){const _0x23431d=['18799660fRvjPX','1692681aCWQJl','error','232444ARfNDo','FAILED','1892744akwPyb','installedPath','10043640dSwoPA','changed','520626QRFopx','code','1279909oLMQmm','4mDUDkE','7xVrmEq','45cwHywu','[BUILTIN_SKILL_INSTALL_','\x20at\x20','Repair\x20with:\x20','\x20via\x20skills@latest'];a132_0x13c6=function(){return _0x23431d;};return a132_0x13c6();}export async function runPostinstall(_0x18e51e={}){const _0xcb1834=a132_0x1792,_0x334da7=installBuiltinSkill(_0x18e51e);if(_0x334da7['ok']){const _0x489519=_0x334da7[_0xcb1834(0x1df)]?'installed':'already\x20current',_0x1f7dc3=_0x334da7['installedPath']?_0xcb1834(0x1e7)+_0x334da7[_0xcb1834(0x1dd)]:_0xcb1834(0x1e9);return console['log']('Lovrabet\x20Built-in\x20Skill\x20'+_0x334da7['skillVersion']+'\x20'+_0x489519+_0x1f7dc3),_0x334da7;}const _0x4323b4=_0xcb1834(0x1e6)+(_0x334da7[_0xcb1834(0x1e1)]??_0xcb1834(0x1db))+']\x20'+(_0x334da7[_0xcb1834(0x1d9)]??'Installation\x20failed')+'.\x20'+(_0xcb1834(0x1e8)+_0x334da7['repairCommand']);if(_0x334da7[_0xcb1834(0x1e1)]==='SOURCE_INVALID')throw new Error(_0x4323b4);return console['warn'](_0x4323b4),_0x334da7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x141b3d,_0x537a4a){const _0x31c35d=a133_0x5bb1,_0x1da1f5=_0x141b3d();while(!![]){try{const _0x3537=-parseInt(_0x31c35d(0xbe))/0x1+parseInt(_0x31c35d(0xbd))/0x2*(-parseInt(_0x31c35d(0xc1))/0x3)+-parseInt(_0x31c35d(0xba))/0x4+-parseInt(_0x31c35d(0xc6))/0x5+parseInt(_0x31c35d(0xc4))/0x6*(parseInt(_0x31c35d(0xc7))/0x7)+parseInt(_0x31c35d(0xc2))/0x8+parseInt(_0x31c35d(0xbc))/0x9*(parseInt(_0x31c35d(0xc0))/0xa);if(_0x3537===_0x537a4a)break;else _0x1da1f5['push'](_0x1da1f5['shift']());}catch(_0x93eac9){_0x1da1f5['push'](_0x1da1f5['shift']());}}}(a133_0x35f4,0xb1147));function a133_0x5bb1(_0x318a54,_0x26d931){_0x318a54=_0x318a54-0xb6;const _0x35f4c0=a133_0x35f4();let _0x5bb1ae=_0x35f4c0[_0x318a54];return _0x5bb1ae;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x4c6b45,_0x5063ed,_0x4e343b){const _0x1475bc=a133_0x5bb1,_0x1eb3ec=normalizeText(_0x4c6b45['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x546552=normalizeText(_0x4c6b45[_0x1475bc(0xc8)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5063ed,'risk':requireWriteRisk(_0x4c6b45),'description':_0x1eb3ec||_0x546552||'Run\x20this\x20write\x20operation',..._0x4e343b?{'signal':_0x4e343b}:{}};}function requireWriteRisk(_0x59118f){const _0x5d5567=a133_0x5bb1;if(_0x59118f['risk']===_0x5d5567(0xc3)||_0x59118f[_0x5d5567(0xb7)]===_0x5d5567(0xbb))return _0x59118f['risk'];throw new Error(_0x5d5567(0xb6));}function a133_0x35f4(){const _0x5804c1=['2365512vWiISN','trim','6578460tPvWIG','14HVSZlw','description','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','string','replace','4706832kPDAlA','high-risk-write','387lGWFZP','258vssRym','173460JtOugA','slice','586690llPuqB','9099pqRJxn','3769320FTuGLC','write'];a133_0x35f4=function(){return _0x5804c1;};return a133_0x35f4();}function normalizeText(_0x5387ac,_0x59742e){const _0x294e8b=a133_0x5bb1;if(typeof _0x5387ac!==_0x294e8b(0xb8))return'';return _0x5387ac[_0x294e8b(0xb9)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x294e8b(0xb9)](/\s+/g,'\x20')[_0x294e8b(0xc5)]()[_0x294e8b(0xbf)](0x0,_0x59742e);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a134_0x4b20(){const _0x43ba57=['filter','lovrabet.write.completed','925133YsRaJx','6OipoMf','1060nkeAVj','1575160fLSqTK','join','risk','service','25677zjJgBU','1JoXtRW','command','4621302yTjpcD','2471483qVvWhi','156kXxoON','8ZfsjkG','writeEventSubject','650960pABaLQ','12602kTRvVv'];a134_0x4b20=function(){return _0x43ba57;};return a134_0x4b20();}(function(_0x2ed4c5,_0x1922f9){const _0x2e2fe3=a134_0x327a,_0x347782=_0x2ed4c5();while(!![]){try{const _0x43713c=-parseInt(_0x2e2fe3(0x194))/0x1*(-parseInt(_0x2e2fe3(0x19c))/0x2)+parseInt(_0x2e2fe3(0x18d))/0x3*(-parseInt(_0x2e2fe3(0x18f))/0x4)+parseInt(_0x2e2fe3(0x19b))/0x5+parseInt(_0x2e2fe3(0x196))/0x6+parseInt(_0x2e2fe3(0x197))/0x7*(-parseInt(_0x2e2fe3(0x199))/0x8)+parseInt(_0x2e2fe3(0x193))/0x9*(-parseInt(_0x2e2fe3(0x18e))/0xa)+parseInt(_0x2e2fe3(0x18c))/0xb*(parseInt(_0x2e2fe3(0x198))/0xc);if(_0x43713c===_0x1922f9)break;else _0x347782['push'](_0x347782['shift']());}catch(_0x2d4cf7){_0x347782['push'](_0x347782['shift']());}}}(a134_0x4b20,0x87fb6));function a134_0x327a(_0xeb44f,_0x4d8642){_0xeb44f=_0xeb44f-0x18a;const _0x4b20ae=a134_0x4b20();let _0x327a0b=_0x4b20ae[_0xeb44f];return _0x327a0b;}export function canonicalLovrabetOperation(_0x265296){const _0x584f73=a134_0x327a;return[_0x265296[_0x584f73(0x192)],..._0x265296[_0x584f73(0x195)]['trim']()['split'](/\s+/)][_0x584f73(0x18a)](Boolean)[_0x584f73(0x190)]('.');}export function createLovrabetWriteMetadata(_0x4cb348,_0x2b6b4c,_0xc85fda,_0x54767f){const _0x5a5333=a134_0x327a;if(_0x54767f||_0xc85fda['ok']!==!![]||_0x4cb348[_0x5a5333(0x191)]!=='write'&&_0x4cb348[_0x5a5333(0x191)]!=='high-risk-write')return undefined;const _0x45f4c7=_0x4cb348[_0x5a5333(0x19a)]?.(_0xc85fda),_0x12a50c={'type':_0x5a5333(0x18b),'operation':_0x2b6b4c,'risk':_0x4cb348[_0x5a5333(0x191)],..._0x45f4c7?{'subject':_0x45f4c7}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x12a50c}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30266e,_0x5294eb){const _0x325ea2=a135_0x725e,_0x552c05=_0x30266e();while(!![]){try{const _0x144951=-parseInt(_0x325ea2(0x165))/0x1+-parseInt(_0x325ea2(0x160))/0x2+-parseInt(_0x325ea2(0x15b))/0x3*(parseInt(_0x325ea2(0x15c))/0x4)+-parseInt(_0x325ea2(0x168))/0x5*(parseInt(_0x325ea2(0x15e))/0x6)+parseInt(_0x325ea2(0x179))/0x7*(parseInt(_0x325ea2(0x155))/0x8)+-parseInt(_0x325ea2(0x167))/0x9*(-parseInt(_0x325ea2(0x16c))/0xa)+parseInt(_0x325ea2(0x175))/0xb;if(_0x144951===_0x5294eb)break;else _0x552c05['push'](_0x552c05['shift']());}catch(_0x438279){_0x552c05['push'](_0x552c05['shift']());}}}(a135_0x34db,0xf2870));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a135_0x725e(_0x809670,_0x5529ae){_0x809670=_0x809670-0x154;const _0x34dbcb=a135_0x34db();let _0x725ef4=_0x34dbcb[_0x809670];return _0x725ef4;}function a135_0x34db(){const _0x2158ee=['AbortError','risk','dry-run','dryRun','data','1977PjbVFQ','8012CVRglW','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','360FMAMEP','Lovrabet\x20invocation\x20aborted.','2663178LiluXV','args','rawFlags','riskLevel','format','1560010TAqZzq','yes','2205enWwNM','59875SfZMYq','present','message','high-risk-write','75800REHeIF','result','confirm','aborted','command','confirmation','execute','write','signal','43423831qTXhVu','isNonInteractive','stringify','definition','831229iHFDUa','reason','8TjXdws'];a135_0x34db=function(){return _0x2158ee;};return a135_0x34db();}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:_0x2ea105,command:_0x189c83,risk:_0x5dea2a,dryRun:_0x5498eb}){const _0x4d032e=a135_0x725e;return JSON[_0x4d032e(0x177)]({'ok':_0x2ea105['ok'],'command':_0x189c83,'risk':_0x5dea2a,..._0x5498eb?{'dryRun':!![]}:{},..._0x2ea105[_0x4d032e(0x15a)]!==undefined?{'data':_0x2ea105[_0x4d032e(0x15a)]}:{},..._0x2ea105[_0x4d032e(0x16a)]?{'message':_0x2ea105[_0x4d032e(0x16a)]}:{}});}};export async function invokeLovrabet(_0x1250ed,_0x2d83ee){const _0x41144d=a135_0x725e;throwIfAborted(_0x2d83ee[_0x41144d(0x174)]);const _0x5aff8a=await resolveLovrabetInvocation(_0x1250ed),_0x5b052b=canonicalLovrabetOperation(_0x5aff8a[_0x41144d(0x178)]);return await confirmWriteBeforeQueue(_0x5aff8a[_0x41144d(0x178)],_0x5aff8a['rawFlags'],_0x5b052b,_0x2d83ee),runSerialized(async()=>{const _0x1ce9e9=_0x41144d;throwIfAborted(_0x2d83ee[_0x1ce9e9(0x174)]);const _0xb62ddd={},_0x531679=buildConfigFromFlags(_0x5aff8a[_0x1ce9e9(0x162)]);await initGlobalEnvironment(_0x531679);const _0x21af00=createPipelineEnv(_0x531679,{..._0x5aff8a[_0x1ce9e9(0x162)],'yes':_0x5aff8a[_0x1ce9e9(0x178)]['risk']==='high-risk-write'?!![]:_0x5aff8a[_0x1ce9e9(0x162)][_0x1ce9e9(0x166)],'nonInteractive':!![]});_0x21af00[_0x1ce9e9(0x161)]=_0x5aff8a[_0x1ce9e9(0x161)],_0x21af00[_0x1ce9e9(0x176)]=!![],_0x21af00[_0x1ce9e9(0x163)]=_0x1ce9e9(0x16b);const _0x34ebc1=withAbortSignal(_0x5aff8a[_0x1ce9e9(0x178)],_0x2d83ee[_0x1ce9e9(0x174)]),_0x285d1e=createLovrabetRunnerAdapter({'formatOutput'(_0x5e47fb,_0xd7ad12){const _0x2cfb26=_0x1ce9e9;_0xb62ddd[_0x2cfb26(0x16d)]=_0x5e47fb,_0xb62ddd[_0x2cfb26(0x170)]=_0xd7ad12['command'],_0xb62ddd['risk']=_0xd7ad12[_0x2cfb26(0x157)],_0xb62ddd[_0x2cfb26(0x164)]=_0xd7ad12[_0x2cfb26(0x164)],_0xb62ddd[_0x2cfb26(0x159)]=_0xd7ad12[_0x2cfb26(0x159)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x34ebc1,_0x21af00,_0x285d1e);if(!_0xb62ddd['result']||!_0xb62ddd['command']||!_0xb62ddd[_0x1ce9e9(0x157)]||!_0xb62ddd[_0x1ce9e9(0x164)])throw new Error(_0x1ce9e9(0x15d));const _0x215374=_0x2d83ee['presentation']??defaultPresentation,_0x486deb=_0xb62ddd[_0x1ce9e9(0x159)]===!![],_0x5c3fe3={'result':_0xb62ddd[_0x1ce9e9(0x16d)],'command':_0xb62ddd['command'],'operation':_0x5b052b,'risk':_0xb62ddd['risk'],'format':_0xb62ddd[_0x1ce9e9(0x164)],'dryRun':_0x486deb},_0x188db8=createLovrabetWriteMetadata(_0x5aff8a[_0x1ce9e9(0x178)],_0x5b052b,_0xb62ddd['result'],_0x486deb);let _0x246546;try{_0x246546=await _0x215374['present'](_0x5c3fe3);}catch(_0x5d7a34){if(!_0x188db8||_0x215374===defaultPresentation)throw _0x5d7a34;_0x246546=await defaultPresentation[_0x1ce9e9(0x169)](_0x5c3fe3);}return{'operation':_0x5b052b,'risk':_0xb62ddd[_0x1ce9e9(0x157)],'mode':_0x486deb?_0x1ce9e9(0x158):_0x1ce9e9(0x172),'result':_0xb62ddd[_0x1ce9e9(0x16d)],'output':_0x246546,..._0x188db8?{'metadata':_0x188db8}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x378abb,_0x2984dd,_0x396147,_0x5f5019){const _0x492d23=a135_0x725e;if(_0x2984dd[_0x492d23(0x159)]===!![]||_0x378abb['risk']!==_0x492d23(0x173)&&_0x378abb[_0x492d23(0x157)]!==_0x492d23(0x16b))return;await _0x5f5019[_0x492d23(0x171)][_0x492d23(0x16e)](buildLovrabetConfirmationRequest(_0x378abb,_0x396147,_0x5f5019[_0x492d23(0x174)]));}function withAbortSignal(_0x53cd5c,_0x93f70c){return{..._0x53cd5c,async 'execute'(_0x31e1fc){const _0x5d5213=a135_0x725e;return throwIfAborted(_0x93f70c),_0x53cd5c[_0x5d5213(0x172)]({..._0x31e1fc,'signal':_0x93f70c});}};}function throwIfAborted(_0x400500){const _0x3f57d8=a135_0x725e;if(_0x400500?.[_0x3f57d8(0x16f)])throw _0x400500[_0x3f57d8(0x154)]instanceof Error?_0x400500[_0x3f57d8(0x154)]:new DOMException(_0x3f57d8(0x15f),_0x3f57d8(0x156));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a136_0x451cfe=a136_0x5bda;function a136_0x5439(){const _0x7fe98d=['7311830YNLdIB','1880134KPbaHq','199932dKyfvw','resolve','559452ZfBKGB','117vTUVSz','4767612mPHOyN','13926240jpMiTz','35dSNqMK','66oWRpvE','11WAaKBO','1UzQVhC','catch','76488exDOOn'];a136_0x5439=function(){return _0x7fe98d;};return a136_0x5439();}function a136_0x5bda(_0x468426,_0xc0f26b){_0x468426=_0x468426-0x14d;const _0x543994=a136_0x5439();let _0x5bda34=_0x543994[_0x468426];return _0x5bda34;}(function(_0x41b30e,_0xb483a0){const _0x4db99b=a136_0x5bda,_0x103cf4=_0x41b30e();while(!![]){try{const _0x5f4217=-parseInt(_0x4db99b(0x155))/0x1*(parseInt(_0x4db99b(0x159))/0x2)+-parseInt(_0x4db99b(0x153))/0x3*(-parseInt(_0x4db99b(0x15a))/0x4)+-parseInt(_0x4db99b(0x158))/0x5+parseInt(_0x4db99b(0x14e))/0x6*(parseInt(_0x4db99b(0x152))/0x7)+parseInt(_0x4db99b(0x157))/0x8*(-parseInt(_0x4db99b(0x14f))/0x9)+parseInt(_0x4db99b(0x151))/0xa+parseInt(_0x4db99b(0x154))/0xb*(parseInt(_0x4db99b(0x150))/0xc);if(_0x5f4217===_0xb483a0)break;else _0x103cf4['push'](_0x103cf4['shift']());}catch(_0x23f696){_0x103cf4['push'](_0x103cf4['shift']());}}}(a136_0x5439,0xca66b));let tail=Promise[a136_0x451cfe(0x14d)]();export async function runSerialized(_0x4e7a9c){const _0x5b833b=a136_0x451cfe,_0x153d2f=tail;let _0x410046;tail=new Promise(_0x2ad26f=>{_0x410046=_0x2ad26f;}),await _0x153d2f[_0x5b833b(0x156)](()=>undefined);try{return await _0x4e7a9c();}finally{_0x410046();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x188cba,_0x56e8e9){const _0x4b07e0=a137_0x3a42,_0x32a152=_0x188cba();while(!![]){try{const _0x1dec5c=parseInt(_0x4b07e0(0x14c))/0x1*(parseInt(_0x4b07e0(0x147))/0x2)+parseInt(_0x4b07e0(0x14d))/0x3+parseInt(_0x4b07e0(0x157))/0x4*(parseInt(_0x4b07e0(0x155))/0x5)+parseInt(_0x4b07e0(0x15c))/0x6+-parseInt(_0x4b07e0(0x15b))/0x7+parseInt(_0x4b07e0(0x159))/0x8+parseInt(_0x4b07e0(0x156))/0x9*(-parseInt(_0x4b07e0(0x149))/0xa);if(_0x1dec5c===_0x56e8e9)break;else _0x32a152['push'](_0x32a152['shift']());}catch(_0x3c6781){_0x32a152['push'](_0x32a152['shift']());}}}(a137_0x4fbc,0xcf6ed));import a137_0x3eb26f from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a137_0x4fbc(){const _0x327104=['unknownCommand','join','5tuYeRw','39256632zsgPfk','6636632QIuTFl','args','4168616NwFUye','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','3802722TjkihE','6501138HYlGHo','flatMap','slice','2014162THudnD','assign','10chreLC','validation','flags','1NqhvOL','4451700sbCJUI','definition','message','hint','../commands/registry.js','../framework/preparse.js'];a137_0x4fbc=function(){return _0x327104;};return a137_0x4fbc();}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x54a357){const _0x26b505=a137_0x3a42,_0x1bc3e9=a137_0x3eb26f('',{'importMeta':import.meta,'argv':_0x54a357,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x8003ac=[..._0x1bc3e9['input']],_0x5ee3d6=_0x1bc3e9[_0x26b505(0x14b)];await correctFlags(_0x5ee3d6);const _0x1f2e4a=_0x8003ac[0x0];if(!_0x1f2e4a)throw CliErrors[_0x26b505(0x14a)](_0x26b505(0x15a));const _0x4086e8=resolveRemovedCommand(_0x1f2e4a,_0x8003ac[0x1]);if(_0x4086e8)throw CliErrors['validation'](_0x4086e8[_0x26b505(0x14f)],_0x4086e8[_0x26b505(0x150)]);if(!isKnownService(_0x1f2e4a)){const _0x5c9b21=resolveDynamicServiceCommand(_0x8003ac,_0x5ee3d6);if(!_0x5c9b21)throw CliErrors[_0x26b505(0x153)](_0x8003ac[_0x26b505(0x154)]('\x20'));return Object[_0x26b505(0x148)](_0x5ee3d6,_0x5c9b21[_0x26b505(0x14b)]),{'definition':_0x5c9b21[_0x26b505(0x14e)],'rawFlags':_0x5ee3d6,'args':_0x5c9b21[_0x26b505(0x158)]};}const _0x465b9f=getServiceEntry(_0x1f2e4a),_0x321ce2=_0x8003ac[0x1]||_0x465b9f['defaultCommand'];if(!_0x321ce2)throw CliErrors['validation']('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x1f2e4a+'\x22.');const _0x243b79=findDefinition(_0x1f2e4a,_0x321ce2);if(!_0x243b79)throw CliErrors[_0x26b505(0x153)](_0x1f2e4a+'\x20'+_0x321ce2);return{'definition':_0x243b79,'rawFlags':_0x5ee3d6,'args':_0x8003ac[_0x26b505(0x146)](0x2)};}function a137_0x3a42(_0x549882,_0x44cb79){_0x549882=_0x549882-0x145;const _0x4fbc7a=a137_0x4fbc();let _0x3a4244=_0x4fbc7a[_0x549882];return _0x3a4244;}async function correctFlags(_0x72788b){const _0x12a385=a137_0x3a42;try{const {correctFlags:_0x1cb7b5}=await import(_0x12a385(0x152)),{getAllDefinitions:_0x13da88}=await import(_0x12a385(0x151)),_0xf8a18=_0x13da88()[_0x12a385(0x145)](_0x5342b6=>_0x5342b6[_0x12a385(0x14b)]??[]),_0x8e564a=_0x1cb7b5(_0x72788b,_0xf8a18);Object[_0x12a385(0x148)](_0x72788b,_0x8e564a[_0x12a385(0x14b)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x58ed71=a139_0x479e;(function(_0x397896,_0x15c216){const _0x5c6976=a139_0x479e,_0x28cb03=_0x397896();while(!![]){try{const _0x585a29=-parseInt(_0x5c6976(0xa4))/0x1+-parseInt(_0x5c6976(0x7f))/0x2+parseInt(_0x5c6976(0x78))/0x3*(parseInt(_0x5c6976(0x95))/0x4)+parseInt(_0x5c6976(0xbe))/0x5*(parseInt(_0x5c6976(0xad))/0x6)+parseInt(_0x5c6976(0x6e))/0x7+parseInt(_0x5c6976(0x76))/0x8+parseInt(_0x5c6976(0x72))/0x9*(-parseInt(_0x5c6976(0x81))/0xa);if(_0x585a29===_0x15c216)break;else _0x28cb03['push'](_0x28cb03['shift']());}catch(_0x2a62da){_0x28cb03['push'](_0x28cb03['shift']());}}}(a139_0x5793,0xde753));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0x479e(_0xdbf22f,_0x282766){_0xdbf22f=_0xdbf22f-0x6b;const _0x579346=a139_0x5793();let _0x479ef4=_0x579346[_0xdbf22f];return _0x479ef4;}function a139_0x5793(){const _0x436432=['batches','taskId','binding','has','resume','write','ENOENT','conflict','115rRAuMM','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','code','Incomplete\x20readback.','filter','Invalid\x20write\x20result.','number','schemaVersion','hasOwn','string','add','Cannot\x20read\x20the\x20import\x20checkpoint.','11310789MSXrvK','unknown','datasetCode','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','603SDAEQc','importId','Partial\x20import\x20task\x20readback\x20conflict.','appCode','1007336QqrLGd','push','26079JMYhTd','length','Import\x20generated\x20ID\x20collision.','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','completed','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','now','37532IlRxvy','runtimeDomain','310020WCCLXC','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','maxBatchBytes','uploadFields','utf8','strategy','warnings','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','isSafeInteger','rows','some','batchSize','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','parse','byteLength','fileHash','succeeded','imageFields','76UmGogK','report','mappingHash','map','values','reconcileImageConflicts','checkpoint','count','includes','rowNumber','ids','unsent','toString','flatMap','Invalid\x20import\x20batch\x20size.','336611Lfbeak','schemaFingerprint','message','sheet','actorId','size','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','readTask','hex','374814tQfxhL','maxBatchSize','pending','isArray','status','version','isInteger','rowIndexes','keys'];a139_0x5793=function(){return _0x436432;};return a139_0x5793();}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x37159e=>typeof _0x37159e===a139_0x58ed71(0xc4)&&Number[a139_0x58ed71(0x8b)](_0x37159e)&&_0x37159e>0x0;export async function runAutoIdExcelImport(_0x4475e0){const _0x1aad16=a139_0x58ed71,_0x77e8c2={..._0x4475e0,'checkpoint':await resolveImportOutputPath(_0x4475e0['checkpoint']),'report':await resolveImportOutputPath(_0x4475e0[_0x1aad16(0x96)])},{manifest:_0x412aea,contract:_0x5466c3,api:_0x56a605}=_0x77e8c2;assertImportContract(_0x5466c3,_0x77e8c2['appCode'],_0x77e8c2[_0x1aad16(0x70)]);if(_0x5466c3[_0x1aad16(0xc5)]!==0x2||!_0x56a605[_0x1aad16(0xab)])throw Error(_0x1aad16(0x8a));if(_0x412aea['errors'][_0x1aad16(0x79)])throw Error(_0x1aad16(0x7d));if(!_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x1aad16(0xb3)](_0x77e8c2[_0x1aad16(0x8e)])||_0x77e8c2[_0x1aad16(0x8e)]<0x1||_0x77e8c2['batchSize']>_0x5466c3[_0x1aad16(0xae)])throw Error(_0x1aad16(0xa3));assertImportPaths(_0x77e8c2[_0x1aad16(0x9b)],_0x77e8c2[_0x1aad16(0x96)]);if(_0x412aea['rows'][_0x1aad16(0x8d)](_0x1a54b9=>Object[_0x1aad16(0xc6)](_0x1a54b9[_0x1aad16(0x99)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x32613c=(_0x5bce2b,_0x1bf9bc)=>Buffer[_0x1aad16(0x91)](JSON['stringify']({'schemaFingerprint':_0x5466c3[_0x1aad16(0xa5)],'taskId':_0x1bf9bc,'items':_0x5bce2b[_0x1aad16(0x98)](_0x3204b3=>_0x412aea[_0x1aad16(0x8c)][_0x3204b3][_0x1aad16(0x99)])}),_0x1aad16(0x86)),_0x2e83d9=[];let _0x5f406d=[];for(let _0x35445a=0x0;_0x35445a<_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)];_0x35445a++){if(_0x32613c([_0x35445a],0x2**0x34)>_0x5466c3[_0x1aad16(0x84)])throw Error('Excel\x20row\x20'+_0x412aea[_0x1aad16(0x8c)][_0x35445a][_0x1aad16(0x9e)]+_0x1aad16(0x8f));_0x5f406d[_0x1aad16(0x79)]&&(_0x5f406d['length']===_0x77e8c2[_0x1aad16(0x8e)]||_0x32613c([..._0x5f406d,_0x35445a],0x2**0x34)>_0x5466c3[_0x1aad16(0x84)])&&(_0x2e83d9['push'](_0x5f406d),_0x5f406d=[]),_0x5f406d['push'](_0x35445a);}if(_0x5f406d[_0x1aad16(0x79)])_0x2e83d9[_0x1aad16(0x77)](_0x5f406d);const _0x2f0b02={'appCode':_0x77e8c2[_0x1aad16(0x75)],'datasetCode':_0x77e8c2[_0x1aad16(0x70)],'runtimeDomain':_0x77e8c2[_0x1aad16(0x80)],'actorId':_0x5466c3[_0x1aad16(0xa8)],'fileHash':_0x412aea[_0x1aad16(0x92)],'mappingHash':_0x412aea[_0x1aad16(0x97)],'schemaHash':_0x412aea['schemaHash'],'remoteSchemaHash':_0x5466c3[_0x1aad16(0xa5)],'batchSize':_0x77e8c2[_0x1aad16(0x8e)],'maxBatchBytes':_0x5466c3[_0x1aad16(0x84)],'sheet':_0x412aea[_0x1aad16(0xa7)],'strategy':_0x5466c3[_0x1aad16(0x87)]},_0x248218=await acquireLock(_0x77e8c2[_0x1aad16(0x9b)]);let _0xe7d2e0;const _0x11d89a=Date['now']();let _0x359d40=0x0;const _0x4214d2=[],_0x329309=_0x323b7d=>_0xe7d2e0?.[_0x1aad16(0xb6)]['filter'](_0x5f3004=>_0x5f3004[_0x1aad16(0xb1)]===_0x323b7d)['reduce']((_0x4fb8a8,_0x40fa65)=>_0x4fb8a8+_0x40fa65['rowIndexes'][_0x1aad16(0x79)],0x0)??0x0,_0x2bfaa9=()=>({'importId':_0xe7d2e0?.['importId'],'sourceRows':_0x412aea[_0x1aad16(0x8c)][_0x1aad16(0x79)],'emptyRows':_0x412aea['emptyRows']['length'],'succeeded':_0x329309(_0x1aad16(0x93)),'unknown':_0x329309('pending'),'conflicts':_0x329309(_0x1aad16(0xbd)),'notAttempted':_0x329309(_0x1aad16(0xa0)),'batches':_0x359d40,'batchResults':_0x4214d2,'elapsedMs':Date[_0x1aad16(0x7e)]()-_0x11d89a,'checkpoint':_0x77e8c2[_0x1aad16(0x9b)],'report':_0x77e8c2[_0x1aad16(0x96)],'warnings':_0x412aea[_0x1aad16(0x88)]});try{if(_0x77e8c2[_0x1aad16(0xba)]){try{_0xe7d2e0=JSON[_0x1aad16(0x90)](await readFile(_0x77e8c2[_0x1aad16(0x9b)],_0x1aad16(0x86)));}catch{throw Error(_0x1aad16(0x6d));}if(!_0xe7d2e0||_0xe7d2e0[_0x1aad16(0xb2)]!==0x2||typeof _0xe7d2e0[_0x1aad16(0x73)]!==_0x1aad16(0x6b)||!_0xe7d2e0[_0x1aad16(0x73)]||canonical(_0xe7d2e0[_0x1aad16(0xb8)])!==canonical(_0x2f0b02)||!Array[_0x1aad16(0xb0)](_0xe7d2e0[_0x1aad16(0xb6)])||_0xe7d2e0['batches'][_0x1aad16(0x79)]!==_0x2e83d9[_0x1aad16(0x79)]||new Set(_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0x98)](_0x27e91b=>_0x27e91b[_0x1aad16(0xb7)]))[_0x1aad16(0xa9)]!==_0x2e83d9[_0x1aad16(0x79)]||_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0x8d)]((_0x568e0d,_0x52d55d)=>!validId(_0x568e0d[_0x1aad16(0xb7)])||_0x568e0d['taskId']>0x2**0x34||canonical(_0x568e0d['rowIndexes'])!==canonical(_0x2e83d9[_0x52d55d])||![_0x1aad16(0xa0),_0x1aad16(0xaf),_0x1aad16(0x93),'conflict'][_0x1aad16(0x9d)](_0x568e0d['status'])||!Array[_0x1aad16(0xb0)](_0x568e0d[_0x1aad16(0x9f)])||_0x568e0d['ids']['some'](_0x33bdee=>!validId(_0x33bdee))||new Set(_0x568e0d[_0x1aad16(0x9f)])['size']!==_0x568e0d[_0x1aad16(0x9f)]['length']||_0x568e0d[_0x1aad16(0x9f)]['length']!==0x0&&_0x568e0d[_0x1aad16(0x9f)][_0x1aad16(0x79)]!==_0x568e0d[_0x1aad16(0xb4)]['length']||_0x568e0d['status']===_0x1aad16(0x93)&&_0x568e0d[_0x1aad16(0x9f)]['length']!==_0x568e0d[_0x1aad16(0xb4)][_0x1aad16(0x79)]||_0x568e0d[_0x1aad16(0xb1)]===_0x1aad16(0xa0)&&_0x568e0d[_0x1aad16(0x9f)][_0x1aad16(0x79)]!==0x0))throw Error(_0x1aad16(0xbf));const _0x3d3fe6=_0xe7d2e0[_0x1aad16(0xb6)][_0x1aad16(0xa2)](_0x256dda=>_0x256dda['ids']);if(new Set(_0x3d3fe6)[_0x1aad16(0xa9)]!==_0x3d3fe6[_0x1aad16(0x79)])throw Error(_0x1aad16(0x7b));}else{try{await lstat(_0x77e8c2[_0x1aad16(0x9b)]);throw Error(_0x1aad16(0x82));}catch(_0x3d8c3b){if(_0x3d8c3b[_0x1aad16(0xc0)]!==_0x1aad16(0xbc))throw _0x3d8c3b;}const _0x2b9b28=new Set();_0xe7d2e0={'version':0x2,'importId':randomUUID(),'binding':_0x2f0b02,'batches':_0x2e83d9[_0x1aad16(0x98)](_0x9bc470=>{const _0x490804=_0x1aad16;let _0x285c7f;do{_0x285c7f=Number(BigInt('0x'+randomBytes(0x7)[_0x490804(0xa1)](_0x490804(0xac)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x2b9b28['has'](_0x285c7f));return _0x2b9b28[_0x490804(0x6c)](_0x285c7f),{'taskId':_0x285c7f,'rowIndexes':_0x9bc470,'ids':[],'status':'unsent'};})},await saveImportJson(_0x77e8c2['checkpoint'],_0xe7d2e0);}await _0x77e8c2['onCheckpointReady']?.();const _0xb79fb0=_0xe7d2e0,_0x23bb7a=async(_0x3b99ea,_0x1c40d8)=>{const _0x486a82=_0x1aad16;_0x3b99ea[_0x486a82(0xb1)]=_0x486a82(0xbd),await saveImportJson(_0x77e8c2[_0x486a82(0x9b)],_0xb79fb0);throw Error(_0x1c40d8);},_0x1c8535=async _0x3f79fe=>{const _0x44b2b2=_0x1aad16,_0x1f501b=await _0x56a605[_0x44b2b2(0xab)](_0x3f79fe[_0x44b2b2(0xb7)]);if(!Array[_0x44b2b2(0xb0)](_0x1f501b))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x3f79fe['status']===_0x44b2b2(0xa0)&&_0x1f501b[_0x44b2b2(0x79)])return _0x23bb7a(_0x3f79fe,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x1f501b[_0x44b2b2(0x79)]){if(_0x3f79fe[_0x44b2b2(0xb1)]===_0x44b2b2(0x93)||_0x3f79fe[_0x44b2b2(0x9f)]['length'])return _0x23bb7a(_0x3f79fe,_0x44b2b2(0xaa));return![];}if(_0x1f501b[_0x44b2b2(0x79)]!==_0x3f79fe[_0x44b2b2(0xb4)][_0x44b2b2(0x79)])return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x74));const _0x1dcfa0=_0x1f501b['map'](_0x5c1758=>_0x5c1758?.['id']);if(_0x1dcfa0[_0x44b2b2(0x8d)](_0x1010ee=>!validId(_0x1010ee)))return _0x23bb7a(_0x3f79fe,'Import\x20generated\x20ID\x20conflict.');const _0x5275d1=_0x1dcfa0;if(_0x5275d1[_0x44b2b2(0x8d)](_0x5683d2=>!validId(_0x5683d2))||_0x5275d1[_0x44b2b2(0x8d)]((_0x5de3eb,_0x4c70b7)=>_0x4c70b7>0x0&&_0x5de3eb<=_0x5275d1[_0x4c70b7-0x1])||_0x3f79fe[_0x44b2b2(0x9f)]['length']&&canonical(_0x5275d1)!==canonical(_0x3f79fe[_0x44b2b2(0x9f)]))return _0x23bb7a(_0x3f79fe,'Import\x20generated\x20ID\x20conflict.');const _0x1620ec=new Set(_0xb79fb0[_0x44b2b2(0xb6)][_0x44b2b2(0xc2)](_0x4776f6=>_0x4776f6!==_0x3f79fe)[_0x44b2b2(0xa2)](_0x1f3262=>_0x1f3262[_0x44b2b2(0x9f)]));if(_0x5275d1[_0x44b2b2(0x8d)](_0x574d5e=>_0x1620ec[_0x44b2b2(0xb9)](_0x574d5e)))return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x7a));for(let _0x126544=0x0;_0x126544<_0x1f501b[_0x44b2b2(0x79)];_0x126544++){const _0x26e4fd=_0x412aea[_0x44b2b2(0x8c)][_0x3f79fe[_0x44b2b2(0xb4)][_0x126544]]['values'];if(Object[_0x44b2b2(0xb5)](_0x26e4fd)[_0x44b2b2(0x8d)](_0x248de8=>!sameImportValue(_0x26e4fd[_0x248de8],_0x1f501b[_0x126544][_0x248de8],_0x412aea[_0x44b2b2(0x94)]?.[_0x44b2b2(0x9d)](_0x248de8)&&!_0x412aea[_0x44b2b2(0x85)]?.[_0x44b2b2(0x9d)](_0x248de8))))return _0x23bb7a(_0x3f79fe,_0x44b2b2(0x83)+_0x412aea[_0x44b2b2(0x8c)][_0x3f79fe[_0x44b2b2(0xb4)][_0x126544]][_0x44b2b2(0x9e)]+'.');}return _0x3f79fe['ids']=_0x5275d1,_0x3f79fe[_0x44b2b2(0xb1)]=_0x44b2b2(0x93),await saveImportJson(_0x77e8c2[_0x44b2b2(0x9b)],_0xb79fb0),!![];};if(_0xb79fb0[_0x1aad16(0xb6)]['some'](_0x414d38=>_0x414d38['status']===_0x1aad16(0xbd)&&!(_0x77e8c2[_0x1aad16(0xba)]&&_0x77e8c2[_0x1aad16(0x9a)]&&_0x412aea[_0x1aad16(0x94)]?.['length']&&_0x414d38[_0x1aad16(0x9f)][_0x1aad16(0x79)]===_0x414d38[_0x1aad16(0xb4)][_0x1aad16(0x79)])))throw Error(_0x1aad16(0x71));if(_0x77e8c2[_0x1aad16(0xba)]){for(const _0x18df8d of _0xb79fb0[_0x1aad16(0xb6)])await _0x1c8535(_0x18df8d);}for(const _0x409c5e of _0xb79fb0[_0x1aad16(0xb6)]){if(_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0x93))continue;if(!_0x77e8c2[_0x1aad16(0xba)])await _0x1c8535(_0x409c5e);_0x409c5e[_0x1aad16(0xb1)]='pending',await saveImportJson(_0x77e8c2[_0x1aad16(0x9b)],_0xb79fb0),_0x359d40++;const _0x1ba884=_0x409c5e[_0x1aad16(0xb4)][_0x1aad16(0x98)](_0x7c06eb=>_0x412aea[_0x1aad16(0x8c)][_0x7c06eb][_0x1aad16(0x99)]),_0x3895bc=Date[_0x1aad16(0x7e)](),_0x30e5ed={'batch':_0x359d40,'rowStart':_0x412aea[_0x1aad16(0x8c)][_0x409c5e[_0x1aad16(0xb4)][0x0]][_0x1aad16(0x9e)],'rowEnd':_0x412aea[_0x1aad16(0x8c)][_0x409c5e[_0x1aad16(0xb4)]['at'](-0x1)][_0x1aad16(0x9e)],'count':_0x1ba884[_0x1aad16(0x79)],'bytes':_0x32613c(_0x409c5e['rowIndexes'],_0x409c5e['taskId']),'elapsedMs':0x0,'status':_0x1aad16(0x6f)};_0x4214d2[_0x1aad16(0x77)](_0x30e5ed);try{const _0x226300=await _0x56a605[_0x1aad16(0xbb)](_0x1ba884,_0x409c5e[_0x1aad16(0xb7)]);if(!_0x226300||_0x226300[_0x1aad16(0x9c)]!==_0x1ba884[_0x1aad16(0x79)]||!Array['isArray'](_0x226300['ids'])||_0x226300['ids'][_0x1aad16(0x79)]!==_0x1ba884[_0x1aad16(0x79)]||_0x226300[_0x1aad16(0x9f)]['some'](_0x300204=>!validId(_0x300204))||new Set(_0x226300[_0x1aad16(0x9f)])['size']!==_0x226300['ids']['length'])throw Error(_0x1aad16(0xc3));_0x409c5e[_0x1aad16(0x9f)]=_0x226300[_0x1aad16(0x9f)],await saveImportJson(_0x77e8c2[_0x1aad16(0x9b)],_0xb79fb0);if(!await _0x1c8535(_0x409c5e))throw Error(_0x1aad16(0xc1));}catch(_0x1aa693){if(_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0xbd))throw _0x1aa693;try{await _0x1c8535(_0x409c5e);}catch(_0x28b7c6){if(_0x409c5e['status']===_0x1aad16(0xbd))throw _0x28b7c6;}if(_0x409c5e[_0x1aad16(0xb1)]!=='succeeded')throw Error(_0x1aad16(0x89));}finally{_0x30e5ed['elapsedMs']=Date[_0x1aad16(0x7e)]()-_0x3895bc,_0x30e5ed[_0x1aad16(0xb1)]=_0x409c5e[_0x1aad16(0xb1)]===_0x1aad16(0x93)?'succeeded':_0x409c5e[_0x1aad16(0xb1)]==='conflict'?_0x1aad16(0xbd):_0x1aad16(0x6f);}}const _0x2c363b={'status':_0x1aad16(0x7c),..._0x2bfaa9()};return await saveImportJson(_0x77e8c2[_0x1aad16(0x96)],_0x2c363b),_0x2c363b;}catch(_0x51d79c){if(_0xe7d2e0)await saveImportJson(_0x77e8c2[_0x1aad16(0x96)],{'status':'incomplete',..._0x2bfaa9(),'message':_0x51d79c[_0x1aad16(0xa6)]});throw _0x51d79c;}finally{await _0x248218();}}
|
|
1
|
+
const a139_0x217ae7=a139_0x13b9;(function(_0x3df0ef,_0x2a7482){const _0x404316=a139_0x13b9,_0x2b4bdc=_0x3df0ef();while(!![]){try{const _0x45a373=-parseInt(_0x404316(0x227))/0x1*(parseInt(_0x404316(0x23d))/0x2)+parseInt(_0x404316(0x22f))/0x3*(-parseInt(_0x404316(0x239))/0x4)+parseInt(_0x404316(0x238))/0x5+parseInt(_0x404316(0x214))/0x6+-parseInt(_0x404316(0x1f5))/0x7+-parseInt(_0x404316(0x232))/0x8*(parseInt(_0x404316(0x21a))/0x9)+parseInt(_0x404316(0x21b))/0xa;if(_0x45a373===_0x2a7482)break;else _0x2b4bdc['push'](_0x2b4bdc['shift']());}catch(_0x1867e2){_0x2b4bdc['push'](_0x2b4bdc['shift']());}}}(a139_0x5bbc,0x70ec8));import{randomBytes,randomUUID}from'node:crypto';function a139_0x5bbc(){const _0x19ead2=['toString','Incomplete\x20readback.','ids','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','stringify','importId','unknown','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','checkpoint','errors','1514160msWvpW','hex','fileHash','imageFields','map','push','14211XUpcED','13842220GJEfNH','batchSize','mappingHash','taskId','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','warnings','onCheckpointReady','schemaHash','rows','isSafeInteger','has','reconcileImageConflicts','29235kjzrvk','string','sheet','number','some','rowIndexes','status','byteLength','6FVXZdS','emptyRows','resume','1488oPlbtU','write','keys','Excel\x20contains\x20no\x20valid\x20data\x20rows.','Excel\x20row\x20','conflict','2345015gRLxht','707532jHJdwr','count','parse','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','22lQhBBk','completed','now','utf8','Import\x20generated\x20ID\x20collision.','schemaVersion','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','add','hasOwn','report','Partial\x20import\x20task\x20readback\x20conflict.','datasetCode','Invalid\x20write\x20result.','ENOENT','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','succeeded','actorId','Import\x20generated\x20ID\x20conflict.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','version','strategy','uploadFields','filter','rowNumber','4718028uxcZsg','values','isArray','schemaFingerprint','isInteger','pending','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','flatMap','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','incomplete','unsent','Cannot\x20read\x20the\x20import\x20checkpoint.','batches','size','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','appCode','maxBatchBytes','includes','length','Invalid\x20import\x20task\x20readback\x20response.','readTask'];a139_0x5bbc=function(){return _0x19ead2;};return a139_0x5bbc();}function a139_0x13b9(_0x658a0c,_0x5d2fc3){_0x658a0c=_0x658a0c-0x1ed;const _0x5bbc3c=a139_0x5bbc();let _0x13b99c=_0x5bbc3c[_0x658a0c];return _0x13b99c;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x1efed5=>typeof _0x1efed5===a139_0x217ae7(0x22a)&&Number[a139_0x217ae7(0x224)](_0x1efed5)&&_0x1efed5>0x0;export async function runAutoIdExcelImport(_0xacb6d){const _0x407b4c=a139_0x217ae7,_0x1b81dc={..._0xacb6d,'checkpoint':await resolveImportOutputPath(_0xacb6d[_0x407b4c(0x212)]),'report':await resolveImportOutputPath(_0xacb6d['report'])},{manifest:_0x393f67,contract:_0x18f2bd,api:_0xec09a5}=_0x1b81dc;assertImportContract(_0x18f2bd,_0x1b81dc[_0x407b4c(0x204)],_0x1b81dc[_0x407b4c(0x248)]);if(_0x18f2bd[_0x407b4c(0x242)]!==0x2||!_0xec09a5['readTask'])throw Error(_0x407b4c(0x24b));if(_0x393f67[_0x407b4c(0x213)][_0x407b4c(0x207)])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0x393f67['rows'][_0x407b4c(0x207)])throw Error(_0x407b4c(0x235));if(!Number[_0x407b4c(0x1f9)](_0x1b81dc[_0x407b4c(0x21c)])||_0x1b81dc[_0x407b4c(0x21c)]<0x1||_0x1b81dc[_0x407b4c(0x21c)]>_0x18f2bd['maxBatchSize'])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x1b81dc['checkpoint'],_0x1b81dc[_0x407b4c(0x246)]);if(_0x393f67['rows']['some'](_0x5cbdfa=>Object[_0x407b4c(0x245)](_0x5cbdfa[_0x407b4c(0x1f6)],'id')))throw Error(_0x407b4c(0x23c));const _0x403f2b=(_0x4b7663,_0x42d8a1)=>Buffer[_0x407b4c(0x22e)](JSON[_0x407b4c(0x20e)]({'schemaFingerprint':_0x18f2bd[_0x407b4c(0x1f8)],'taskId':_0x42d8a1,'items':_0x4b7663['map'](_0x24d34d=>_0x393f67[_0x407b4c(0x223)][_0x24d34d]['values'])}),'utf8'),_0x2a33d1=[];let _0x4959eb=[];for(let _0x2d679d=0x0;_0x2d679d<_0x393f67['rows'][_0x407b4c(0x207)];_0x2d679d++){if(_0x403f2b([_0x2d679d],0x2**0x34)>_0x18f2bd['maxBatchBytes'])throw Error(_0x407b4c(0x236)+_0x393f67[_0x407b4c(0x223)][_0x2d679d][_0x407b4c(0x1f4)]+_0x407b4c(0x211));_0x4959eb[_0x407b4c(0x207)]&&(_0x4959eb[_0x407b4c(0x207)]===_0x1b81dc['batchSize']||_0x403f2b([..._0x4959eb,_0x2d679d],0x2**0x34)>_0x18f2bd['maxBatchBytes'])&&(_0x2a33d1[_0x407b4c(0x219)](_0x4959eb),_0x4959eb=[]),_0x4959eb[_0x407b4c(0x219)](_0x2d679d);}if(_0x4959eb[_0x407b4c(0x207)])_0x2a33d1[_0x407b4c(0x219)](_0x4959eb);const _0x4ba000={'appCode':_0x1b81dc[_0x407b4c(0x204)],'datasetCode':_0x1b81dc[_0x407b4c(0x248)],'runtimeDomain':_0x1b81dc['runtimeDomain'],'actorId':_0x18f2bd[_0x407b4c(0x1ed)],'fileHash':_0x393f67[_0x407b4c(0x216)],'mappingHash':_0x393f67[_0x407b4c(0x21d)],'schemaHash':_0x393f67[_0x407b4c(0x222)],'remoteSchemaHash':_0x18f2bd[_0x407b4c(0x1f8)],'batchSize':_0x1b81dc[_0x407b4c(0x21c)],'maxBatchBytes':_0x18f2bd[_0x407b4c(0x205)],'sheet':_0x393f67[_0x407b4c(0x229)],'strategy':_0x18f2bd[_0x407b4c(0x1f1)]},_0x1962a8=await acquireLock(_0x1b81dc[_0x407b4c(0x212)]);let _0x3e675b;const _0x188738=Date[_0x407b4c(0x23f)]();let _0x4a42ba=0x0;const _0x5d238d=[],_0xd3c8f5=_0x1b4937=>_0x3e675b?.[_0x407b4c(0x201)][_0x407b4c(0x1f3)](_0x70e0fd=>_0x70e0fd[_0x407b4c(0x22d)]===_0x1b4937)['reduce']((_0x561243,_0x17925d)=>_0x561243+_0x17925d[_0x407b4c(0x22c)][_0x407b4c(0x207)],0x0)??0x0,_0x5454d3=()=>({'importId':_0x3e675b?.[_0x407b4c(0x20f)],'sourceRows':_0x393f67[_0x407b4c(0x223)][_0x407b4c(0x207)],'emptyRows':_0x393f67[_0x407b4c(0x230)][_0x407b4c(0x207)],'succeeded':_0xd3c8f5(_0x407b4c(0x24c)),'unknown':_0xd3c8f5(_0x407b4c(0x1fa)),'conflicts':_0xd3c8f5('conflict'),'notAttempted':_0xd3c8f5('unsent'),'batches':_0x4a42ba,'batchResults':_0x5d238d,'elapsedMs':Date['now']()-_0x188738,'checkpoint':_0x1b81dc[_0x407b4c(0x212)],'report':_0x1b81dc[_0x407b4c(0x246)],'warnings':_0x393f67[_0x407b4c(0x220)]});try{if(_0x1b81dc[_0x407b4c(0x231)]){try{_0x3e675b=JSON[_0x407b4c(0x23b)](await readFile(_0x1b81dc[_0x407b4c(0x212)],_0x407b4c(0x240)));}catch{throw Error(_0x407b4c(0x200));}if(!_0x3e675b||_0x3e675b[_0x407b4c(0x1f0)]!==0x2||typeof _0x3e675b[_0x407b4c(0x20f)]!==_0x407b4c(0x228)||!_0x3e675b[_0x407b4c(0x20f)]||canonical(_0x3e675b['binding'])!==canonical(_0x4ba000)||!Array[_0x407b4c(0x1f7)](_0x3e675b['batches'])||_0x3e675b[_0x407b4c(0x201)][_0x407b4c(0x207)]!==_0x2a33d1[_0x407b4c(0x207)]||new Set(_0x3e675b['batches'][_0x407b4c(0x218)](_0x2e5d53=>_0x2e5d53[_0x407b4c(0x21e)]))[_0x407b4c(0x202)]!==_0x2a33d1[_0x407b4c(0x207)]||_0x3e675b[_0x407b4c(0x201)]['some']((_0x14a22e,_0x3f9e39)=>!validId(_0x14a22e[_0x407b4c(0x21e)])||_0x14a22e['taskId']>0x2**0x34||canonical(_0x14a22e[_0x407b4c(0x22c)])!==canonical(_0x2a33d1[_0x3f9e39])||!['unsent',_0x407b4c(0x1fa),_0x407b4c(0x24c),_0x407b4c(0x237)][_0x407b4c(0x206)](_0x14a22e['status'])||!Array[_0x407b4c(0x1f7)](_0x14a22e['ids'])||_0x14a22e[_0x407b4c(0x20c)][_0x407b4c(0x22b)](_0x36a663=>!validId(_0x36a663))||new Set(_0x14a22e[_0x407b4c(0x20c)])[_0x407b4c(0x202)]!==_0x14a22e['ids'][_0x407b4c(0x207)]||_0x14a22e['ids'][_0x407b4c(0x207)]!==0x0&&_0x14a22e[_0x407b4c(0x20c)]['length']!==_0x14a22e['rowIndexes']['length']||_0x14a22e[_0x407b4c(0x22d)]===_0x407b4c(0x24c)&&_0x14a22e[_0x407b4c(0x20c)][_0x407b4c(0x207)]!==_0x14a22e[_0x407b4c(0x22c)]['length']||_0x14a22e['status']===_0x407b4c(0x1ff)&&_0x14a22e[_0x407b4c(0x20c)][_0x407b4c(0x207)]!==0x0))throw Error(_0x407b4c(0x1fd));const _0x16cb6e=_0x3e675b['batches']['flatMap'](_0x4bb7a6=>_0x4bb7a6[_0x407b4c(0x20c)]);if(new Set(_0x16cb6e)[_0x407b4c(0x202)]!==_0x16cb6e[_0x407b4c(0x207)])throw Error(_0x407b4c(0x243));}else{try{await lstat(_0x1b81dc[_0x407b4c(0x212)]);throw Error(_0x407b4c(0x203));}catch(_0x3af206){if(_0x3af206['code']!==_0x407b4c(0x24a))throw _0x3af206;}const _0x47834d=new Set();_0x3e675b={'version':0x2,'importId':randomUUID(),'binding':_0x4ba000,'batches':_0x2a33d1[_0x407b4c(0x218)](_0xc21408=>{const _0x112ade=_0x407b4c;let _0x16a6c0;do{_0x16a6c0=Number(BigInt('0x'+randomBytes(0x7)[_0x112ade(0x20a)](_0x112ade(0x215)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x47834d[_0x112ade(0x225)](_0x16a6c0));return _0x47834d[_0x112ade(0x244)](_0x16a6c0),{'taskId':_0x16a6c0,'rowIndexes':_0xc21408,'ids':[],'status':_0x112ade(0x1ff)};})},await saveImportJson(_0x1b81dc[_0x407b4c(0x212)],_0x3e675b);}await _0x1b81dc[_0x407b4c(0x221)]?.();const _0x2d68e6=_0x3e675b,_0x445aac=async(_0x49e891,_0x41d8bc)=>{const _0x53088d=_0x407b4c;_0x49e891['status']=_0x53088d(0x237),await saveImportJson(_0x1b81dc[_0x53088d(0x212)],_0x2d68e6);throw Error(_0x41d8bc);},_0x4615d3=async _0x59a9fb=>{const _0x362be8=_0x407b4c,_0x1094bb=await _0xec09a5[_0x362be8(0x209)](_0x59a9fb[_0x362be8(0x21e)]);if(!Array[_0x362be8(0x1f7)](_0x1094bb))throw Error(_0x362be8(0x208));if(_0x59a9fb[_0x362be8(0x22d)]===_0x362be8(0x1ff)&&_0x1094bb[_0x362be8(0x207)])return _0x445aac(_0x59a9fb,_0x362be8(0x21f));if(!_0x1094bb[_0x362be8(0x207)]){if(_0x59a9fb['status']==='succeeded'||_0x59a9fb[_0x362be8(0x20c)][_0x362be8(0x207)])return _0x445aac(_0x59a9fb,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x1094bb[_0x362be8(0x207)]!==_0x59a9fb[_0x362be8(0x22c)][_0x362be8(0x207)])return _0x445aac(_0x59a9fb,_0x362be8(0x247));const _0x47af14=_0x1094bb['map'](_0x5eb93c=>_0x5eb93c?.['id']);if(_0x47af14[_0x362be8(0x22b)](_0x104d6b=>!validId(_0x104d6b)))return _0x445aac(_0x59a9fb,_0x362be8(0x1ee));const _0x232977=_0x47af14;if(_0x232977[_0x362be8(0x22b)](_0x2de9d2=>!validId(_0x2de9d2))||_0x232977[_0x362be8(0x22b)]((_0x2ff44d,_0x32b469)=>_0x32b469>0x0&&_0x2ff44d<=_0x232977[_0x32b469-0x1])||_0x59a9fb[_0x362be8(0x20c)]['length']&&canonical(_0x232977)!==canonical(_0x59a9fb[_0x362be8(0x20c)]))return _0x445aac(_0x59a9fb,'Import\x20generated\x20ID\x20conflict.');const _0x2b4dd5=new Set(_0x2d68e6[_0x362be8(0x201)][_0x362be8(0x1f3)](_0x432438=>_0x432438!==_0x59a9fb)[_0x362be8(0x1fc)](_0x10e0c0=>_0x10e0c0[_0x362be8(0x20c)]));if(_0x232977[_0x362be8(0x22b)](_0x1b672c=>_0x2b4dd5[_0x362be8(0x225)](_0x1b672c)))return _0x445aac(_0x59a9fb,_0x362be8(0x241));for(let _0x47cc73=0x0;_0x47cc73<_0x1094bb[_0x362be8(0x207)];_0x47cc73++){const _0x2cbb17=_0x393f67[_0x362be8(0x223)][_0x59a9fb[_0x362be8(0x22c)][_0x47cc73]][_0x362be8(0x1f6)];if(Object[_0x362be8(0x234)](_0x2cbb17)[_0x362be8(0x22b)](_0x111e03=>!sameImportValue(_0x2cbb17[_0x111e03],_0x1094bb[_0x47cc73][_0x111e03],_0x393f67['imageFields']?.[_0x362be8(0x206)](_0x111e03)&&!_0x393f67[_0x362be8(0x1f2)]?.[_0x362be8(0x206)](_0x111e03))))return _0x445aac(_0x59a9fb,_0x362be8(0x1fb)+_0x393f67[_0x362be8(0x223)][_0x59a9fb[_0x362be8(0x22c)][_0x47cc73]][_0x362be8(0x1f4)]+'.');}return _0x59a9fb[_0x362be8(0x20c)]=_0x232977,_0x59a9fb[_0x362be8(0x22d)]='succeeded',await saveImportJson(_0x1b81dc[_0x362be8(0x212)],_0x2d68e6),!![];};if(_0x2d68e6[_0x407b4c(0x201)][_0x407b4c(0x22b)](_0x4a883a=>_0x4a883a[_0x407b4c(0x22d)]===_0x407b4c(0x237)&&!(_0x1b81dc[_0x407b4c(0x231)]&&_0x1b81dc[_0x407b4c(0x226)]&&_0x393f67[_0x407b4c(0x217)]?.[_0x407b4c(0x207)]&&_0x4a883a['ids'][_0x407b4c(0x207)]===_0x4a883a[_0x407b4c(0x22c)]['length'])))throw Error(_0x407b4c(0x20d));if(_0x1b81dc[_0x407b4c(0x231)]){for(const _0x29dead of _0x2d68e6[_0x407b4c(0x201)])await _0x4615d3(_0x29dead);}for(const _0x10e741 of _0x2d68e6['batches']){if(_0x10e741[_0x407b4c(0x22d)]==='succeeded')continue;if(!_0x1b81dc[_0x407b4c(0x231)])await _0x4615d3(_0x10e741);_0x10e741[_0x407b4c(0x22d)]='pending',await saveImportJson(_0x1b81dc[_0x407b4c(0x212)],_0x2d68e6),_0x4a42ba++;const _0x474e9d=_0x10e741[_0x407b4c(0x22c)][_0x407b4c(0x218)](_0x450d67=>_0x393f67[_0x407b4c(0x223)][_0x450d67]['values']),_0x276d01=Date['now'](),_0x5e37cc={'batch':_0x4a42ba,'rowStart':_0x393f67['rows'][_0x10e741['rowIndexes'][0x0]][_0x407b4c(0x1f4)],'rowEnd':_0x393f67[_0x407b4c(0x223)][_0x10e741[_0x407b4c(0x22c)]['at'](-0x1)][_0x407b4c(0x1f4)],'count':_0x474e9d['length'],'bytes':_0x403f2b(_0x10e741[_0x407b4c(0x22c)],_0x10e741[_0x407b4c(0x21e)]),'elapsedMs':0x0,'status':_0x407b4c(0x210)};_0x5d238d[_0x407b4c(0x219)](_0x5e37cc);try{const _0x4df1cf=await _0xec09a5[_0x407b4c(0x233)](_0x474e9d,_0x10e741[_0x407b4c(0x21e)]);if(!_0x4df1cf||_0x4df1cf[_0x407b4c(0x23a)]!==_0x474e9d[_0x407b4c(0x207)]||!Array[_0x407b4c(0x1f7)](_0x4df1cf['ids'])||_0x4df1cf[_0x407b4c(0x20c)][_0x407b4c(0x207)]!==_0x474e9d[_0x407b4c(0x207)]||_0x4df1cf[_0x407b4c(0x20c)][_0x407b4c(0x22b)](_0x8fe57f=>!validId(_0x8fe57f))||new Set(_0x4df1cf['ids'])[_0x407b4c(0x202)]!==_0x4df1cf[_0x407b4c(0x20c)][_0x407b4c(0x207)])throw Error(_0x407b4c(0x249));_0x10e741[_0x407b4c(0x20c)]=_0x4df1cf[_0x407b4c(0x20c)],await saveImportJson(_0x1b81dc['checkpoint'],_0x2d68e6);if(!await _0x4615d3(_0x10e741))throw Error(_0x407b4c(0x20b));}catch(_0x389cf0){if(_0x10e741[_0x407b4c(0x22d)]===_0x407b4c(0x237))throw _0x389cf0;try{await _0x4615d3(_0x10e741);}catch(_0x5ac5d3){if(_0x10e741['status']===_0x407b4c(0x237))throw _0x5ac5d3;}if(_0x10e741[_0x407b4c(0x22d)]!==_0x407b4c(0x24c))throw Error(_0x407b4c(0x1ef));}finally{_0x5e37cc['elapsedMs']=Date[_0x407b4c(0x23f)]()-_0x276d01,_0x5e37cc[_0x407b4c(0x22d)]=_0x10e741['status']===_0x407b4c(0x24c)?_0x407b4c(0x24c):_0x10e741[_0x407b4c(0x22d)]===_0x407b4c(0x237)?_0x407b4c(0x237):_0x407b4c(0x210);}}const _0x23856b={'status':_0x407b4c(0x23e),..._0x5454d3()};return await saveImportJson(_0x1b81dc['report'],_0x23856b),_0x23856b;}catch(_0x48d073){if(_0x3e675b)await saveImportJson(_0x1b81dc[_0x407b4c(0x246)],{'status':_0x407b4c(0x1fe),..._0x5454d3(),'message':_0x48d073['message']});throw _0x48d073;}finally{await _0x1962a8();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a140_0x56d57d=a140_0x2b02;(function(_0x5b02fb,_0x295179){const _0x54aaa0=a140_0x2b02,_0x26d619=_0x5b02fb();while(!![]){try{const _0x24c32b=parseInt(_0x54aaa0(0x106))/0x1*(-parseInt(_0x54aaa0(0x103))/0x2)+-parseInt(_0x54aaa0(0x100))/0x3+parseInt(_0x54aaa0(0x150))/0x4*(parseInt(_0x54aaa0(0x107))/0x5)+parseInt(_0x54aaa0(0x142))/0x6+parseInt(_0x54aaa0(0xa2))/0x7+parseInt(_0x54aaa0(0xf4))/0x8*(-parseInt(_0x54aaa0(0xd8))/0x9)+-parseInt(_0x54aaa0(0x15f))/0xa;if(_0x24c32b===_0x295179)break;else _0x26d619['push'](_0x26d619['shift']());}catch(_0x5741de){_0x26d619['push'](_0x26d619['shift']());}}}(a140_0x5a5b,0xd308b));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x418a0e from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';import{SaxesParser}from'saxes';import a140_0xc7c25c from'exceljs';import a140_0x4cf212 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';function a140_0x2b02(_0x1c1573,_0x504982){_0x1c1573=_0x1c1573-0x72;const _0x5a5be9=a140_0x5a5b();let _0x2b02a0=_0x5a5be9[_0x1c1573];return _0x2b02a0;}import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a140_0x56d57d(0x143),a140_0x56d57d(0x155),a140_0x56d57d(0x128),a140_0x56d57d(0xc1),a140_0x56d57d(0x10a),a140_0x56d57d(0x15e),a140_0x56d57d(0x7b),'createTime',a140_0x56d57d(0xb2),a140_0x56d57d(0x123)]),TYPES=new Set([a140_0x56d57d(0x11a),'text',a140_0x56d57d(0x133),a140_0x56d57d(0x8e),a140_0x56d57d(0xe3),a140_0x56d57d(0x12f),'boolean',a140_0x56d57d(0x101),a140_0x56d57d(0x92),a140_0x56d57d(0xb0),a140_0x56d57d(0x114)]),isImageContainer=_0x15e523=>[a140_0x56d57d(0xb0),a140_0x56d57d(0x114)][a140_0x56d57d(0xaf)](_0x15e523[a140_0x56d57d(0xcf)]()),hash=_0x31e12d=>createHash(a140_0x56d57d(0x87))[a140_0x56d57d(0x7c)](_0x31e12d)[a140_0x56d57d(0xa5)]('hex'),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x56d57d(0x13b)),nameCoordinates=require(a140_0x56d57d(0xae)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x56d57d(0x119)](a140_0x56d57d(0x10b))),zipRequire=createRequire(excelRequire[a140_0x56d57d(0x119)](a140_0x56d57d(0xd2))),ZipEntry=zipRequire(a140_0x56d57d(0x97)),zipReader=zipRequire(a140_0x56d57d(0xb8)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a140_0x56d57d(0x108));function centralDirectoryEnd(_0x4a9f06,_0x36bb08){const _0xbda6bc=a140_0x56d57d,_0x211388=()=>new Error(_0xbda6bc(0x8d)),_0xdba8a1=_0x4a9f06[_0xbda6bc(0x146)](Buffer['from']([0x50,0x4b,0x5,0x6]));if(_0xdba8a1<0x0||_0xdba8a1+0x16>_0x4a9f06[_0xbda6bc(0x13d)]||_0xdba8a1+0x16+_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0x14)!==_0x4a9f06['length'])throw _0x211388();let _0x1b722e=_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0xa),_0x3f40ed=_0x4a9f06[_0xbda6bc(0xec)](_0xdba8a1+0xc),_0x35f02a=_0x4a9f06[_0xbda6bc(0xec)](_0xdba8a1+0x10),_0x4a40ae=_0xdba8a1;const _0x4daf29=_0xdba8a1-0x14,_0x2c65d5=_0x4daf29>=0x0&&_0x4a9f06['readUInt32LE'](_0x4daf29)===0x7064b50,_0x22547c=[0x4,0x6,0x8,0xa]['some'](_0x1eaffd=>_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+_0x1eaffd)===0xffff)||_0x3f40ed===0xffffffff||_0x35f02a===0xffffffff;if(_0x2c65d5!==_0x22547c)throw _0x211388();if(_0x2c65d5){if(_0x4a9f06[_0xbda6bc(0x146)](Buffer[_0xbda6bc(0xa6)]([0x50,0x4b,0x6,0x7]))!==_0x4daf29)throw _0x211388();const _0x10d88b=_0x544a09=>{const _0x1263c7=_0xbda6bc,_0xc1f538=Number(_0x4a9f06[_0x1263c7(0x10f)](_0x544a09));if(!Number[_0x1263c7(0x81)](_0xc1f538))throw _0x211388();return _0xc1f538;};_0x4a40ae=_0x10d88b(_0x4daf29+0x8);if(_0x4a9f06['readUInt32LE'](_0x4daf29+0x4)!==0x0||_0x4a9f06[_0xbda6bc(0xec)](_0x4daf29+0x10)!==0x1||_0x4a40ae>_0x4daf29-0x38||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae)!==0x6064b50||_0x10d88b(_0x4a40ae+0x4)!==0x2c||_0x4a40ae+0x38!==_0x4daf29||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae+0x10)!==0x0||_0x4a9f06[_0xbda6bc(0xec)](_0x4a40ae+0x14)!==0x0)throw _0x211388();_0x1b722e=_0x10d88b(_0x4a40ae+0x20),_0x3f40ed=_0x10d88b(_0x4a40ae+0x28),_0x35f02a=_0x10d88b(_0x4a40ae+0x30);if(_0x10d88b(_0x4a40ae+0x18)!==_0x1b722e)throw _0x211388();}else{if(_0x4a9f06[_0xbda6bc(0xcc)](_0xdba8a1+0x4)!==0x0||_0x4a9f06['readUInt16LE'](_0xdba8a1+0x6)!==0x0||_0x4a9f06['readUInt16LE'](_0xdba8a1+0x8)!==_0x1b722e)throw _0x211388();}const _0x308760=_0x36bb08['readEntryCursor'];if(_0x35f02a!==_0x308760||_0x1b722e!==_0x36bb08[_0xbda6bc(0x12b)]||_0x35f02a+_0x3f40ed!==_0x4a40ae)throw _0x211388();return _0x4a40ae;}function consumerEntryName(_0x110972,_0x1a633f){const _0x23cc1b=a140_0x56d57d;if(_0x1a633f[_0x23cc1b(0x156)][_0x23cc1b(0xfb)](_0x2a7d97=>_0x2a7d97['id']===0x1)['length']>0x1)throw new Error(_0x23cc1b(0x149));const _0x2f7e40=_0x1a633f,_0x1e5488=_0x1a633f[_0x23cc1b(0x83)];if(!Buffer[_0x23cc1b(0x85)](_0x2f7e40[_0x23cc1b(0xb3)])||!Buffer[_0x23cc1b(0x85)](_0x2f7e40[_0x23cc1b(0x10c)])||!Buffer[_0x23cc1b(0x85)](_0x2f7e40['fileCommentRaw'])||!Number[_0x23cc1b(0x81)](_0x1e5488)||_0x1e5488<0x0||_0x1e5488>_0x110972['length']-0x1e||_0x110972[_0x23cc1b(0xec)](_0x1e5488)!==0x4034b50)throw new Error(_0x23cc1b(0x9e));const _0x3742c0=_0x1e5488+0x1e+_0x110972['readUInt16LE'](_0x1e5488+0x1a),_0x18c06d=_0x3742c0+_0x110972[_0x23cc1b(0xcc)](_0x1e5488+0x1c)+_0x1a633f[_0x23cc1b(0xfc)];if(!Number[_0x23cc1b(0x81)](_0x18c06d)||_0x18c06d>_0x110972['length'])throw new Error(_0x23cc1b(0x9e));if(_0x3742c0>_0x110972[_0x23cc1b(0x13d)]||!_0x110972['subarray'](_0x1e5488+0x1e,_0x3742c0)[_0x23cc1b(0x82)](_0x2f7e40[_0x23cc1b(0xb3)]))throw new Error(_0x23cc1b(0x147));const _0x466a10=new ZipEntry({},{'decodeFileName':zipUtf8[_0x23cc1b(0x139)]});_0x466a10['bitFlag']=_0x1a633f[_0x23cc1b(0x7f)],_0x466a10[_0x23cc1b(0xf7)]=_0x2f7e40[_0x23cc1b(0xb3)],_0x466a10['fileComment']=_0x2f7e40[_0x23cc1b(0x74)],_0x466a10[_0x23cc1b(0xbe)]=_0x2f7e40['extraFieldRaw']['length'],_0x466a10[_0x23cc1b(0x127)](zipReader(_0x2f7e40[_0x23cc1b(0x10c)])),_0x466a10['handleUTF8'](),_0x466a10[_0x23cc1b(0x7d)]=_0x1a633f['versionMadeBy'],_0x466a10[_0x23cc1b(0xab)]=_0x1a633f[_0x23cc1b(0xab)],_0x466a10[_0x23cc1b(0x14b)]();const _0x162102=_0x466a10['dir']||Boolean((_0x466a10[_0x23cc1b(0xa7)]??0x0)&0x4000),_0x5e36c4=zipPaths['resolve'](_0x466a10['fileNameStr']),_0x25d23a=_0x5e36c4[_0x23cc1b(0xb7)]('/')?_0x5e36c4[_0x23cc1b(0x148)](0x1):_0x5e36c4;return{'name':_0x25d23a,'original':_0x466a10[_0x23cc1b(0x95)],'directory':_0x162102};}export function normalizeImportFields(_0x164a0b){const _0xcc697b=a140_0x56d57d;if(!_0x164a0b||(_0x164a0b[_0xcc697b(0xd3)]??_0x164a0b[_0xcc697b(0x130)]?.[_0xcc697b(0x159)])!==_0xcc697b(0xa3))throw new Error('Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.');const _0x51299a=Array[_0xcc697b(0x15a)](_0x164a0b['fields']),_0x13d07e=_0x51299a?_0x164a0b[_0xcc697b(0x78)]:_0x164a0b[_0xcc697b(0xdc)];if(!Array['isArray'](_0x13d07e)||_0x13d07e[_0xcc697b(0x13d)]===0x0)throw new Error(_0xcc697b(0x7e));const _0x51c118=[],_0x3d1fa1=new Set();for(const _0xd40331 of _0x13d07e){if(_0xd40331[_0xcc697b(0x123)]===!![])continue;let _0x4859dc=_0xd40331['extend']??{};if(!_0x51299a&&typeof _0x4859dc===_0xcc697b(0x11a)){try{_0x4859dc=JSON[_0xcc697b(0xc5)](_0x4859dc);}catch{throw new Error(_0xcc697b(0x9b));}if(!_0x4859dc||typeof _0x4859dc!=='object'||Array[_0xcc697b(0x15a)](_0x4859dc))throw new Error(_0xcc697b(0x9b));}const _0x4d40df=_0x51299a?_0xd40331['name']:_0xd40331['code'],_0xac744a=_0x51299a?_0xd40331['doType']:_0xd40331['type']??_0xd40331[_0xcc697b(0x8a)];if(typeof _0x4d40df!=='string'||!_0x4d40df||typeof _0xac744a!==_0xcc697b(0x11a)||_0x3d1fa1[_0xcc697b(0xd0)](_0x4d40df))throw new Error(_0xcc697b(0x75));if(_0xac744a['toLowerCase']()===_0xcc697b(0xf0))throw new Error(_0xcc697b(0xfd));_0x3d1fa1[_0xcc697b(0x137)](_0x4d40df);const _0x3140c9=_0x51299a?_0xd40331:_0x4859dc,_0x36383b={'code':_0x4d40df,'type':_0xac744a,'required':_0x3140c9['required']===!![]};if(RESERVED[_0xcc697b(0xd0)](_0x4d40df)||_0x3140c9['generated']===!![]||_0x3140c9[_0xcc697b(0xdb)]===!![])_0x36383b['generated']=!![];_0x51c118[_0xcc697b(0xbb)](_0x36383b);}return _0x51c118;}async function checkArchive(_0x2c584c,_0x2fe788){await new Promise((_0x41cf02,_0x58a03a)=>{const _0xedcc75=a140_0x2b02;a140_0x4cf212[_0xedcc75(0x8c)](_0x2c584c,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0x3419bc,_0x44fbe4)=>{const _0x4b67f9=_0xedcc75;if(_0x3419bc||!_0x44fbe4){_0x58a03a(_0x3419bc??new Error(_0x4b67f9(0x110)));return;}let _0x56f7ce;try{_0x56f7ce=centralDirectoryEnd(_0x2c584c,_0x44fbe4);}catch(_0xc2dc89){_0x44fbe4['close'](),_0x58a03a(_0xc2dc89);return;}let _0x563aee=0x0,_0x550b79=0x0,_0x1e13e9=0x0,_0x4f9438=0x0,_0x5a9427=0x0,_0x19efdb=0x0,_0x3b5fb9=0x0,_0x147198=0x0,_0x585a97=0x0,_0x395460=![],_0xc8024d;const _0xd8f080=new Set(),_0x276866=_0x5240e3=>{const _0x1e6b90=_0x4b67f9;if(_0x395460)return;_0x395460=!![],_0xc8024d?.[_0x1e6b90(0xe7)](),_0x44fbe4[_0x1e6b90(0x86)](),_0x58a03a(_0x5240e3);},_0x4a0488=(_0x3fefa9,_0x233d1f)=>{const _0x10f843=_0x4b67f9;if(!_0x3fefa9||!/^\d+$/[_0x10f843(0x12a)](_0x3fefa9))throw new Error(_0x10f843(0x118));const _0x4acdc2=Number(_0x3fefa9);if(!Number[_0x10f843(0x81)](_0x4acdc2)||_0x4acdc2<0x1||_0x4acdc2>_0x233d1f)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0x233d1f+'.');return _0x4acdc2;},_0x17f64b=(_0x217a1c,_0x5aba7a=MAX_XML_COLUMNS)=>{const _0x445be7=_0x4b67f9,_0x570efa=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x445be7(0x8b)](_0x217a1c);if(!_0x570efa)throw new Error(_0x445be7(0x13f));let _0x1e131c=0x0;for(const _0xa3d80e of _0x570efa[0x1])_0x1e131c=_0x1e131c*0x1a+_0xa3d80e['charCodeAt'](0x0)-0x40;if(_0x1e131c>_0x5aba7a)throw new Error(_0x445be7(0x98)+_0x5aba7a+_0x445be7(0x102));return{'row':_0x4a0488(_0x570efa[0x2],MAX_XML_ROWS),'col':_0x1e131c};},_0x48eb40=_0x22956d=>{const _0x4eee2d=_0x4b67f9;if(_0x22956d[_0x4eee2d(0x151)]==='_xlnm.Print_Area'||_0x22956d[_0x4eee2d(0x151)]===_0x4eee2d(0xb6))return;for(const _0x487c0f of _0x22956d[_0x4eee2d(0x153)]){if(!ABSOLUTE_NAME_RANGE[_0x4eee2d(0x12a)](_0x487c0f['split']('!')[_0x4eee2d(0x13c)]()||''))continue;const _0xe76eef=nameCoordinates['decodeEx'](_0x487c0f),_0x561039='top'in _0xe76eef,_0x55a51f=_0x561039?[_0xe76eef[_0x4eee2d(0x109)],_0xe76eef[_0x4eee2d(0x14f)]]:[_0xe76eef[_0x4eee2d(0x14e)]],_0x569911=_0x561039?[_0xe76eef[_0x4eee2d(0x84)],_0xe76eef[_0x4eee2d(0x77)]]:[_0xe76eef['col']],_0x59f350=(_0x506b26,_0xc06ad4)=>Number[_0x4eee2d(0x81)](_0x506b26)&&_0x506b26>=0x1&&_0x506b26<=_0xc06ad4;if(!_0x55a51f[_0x4eee2d(0xbc)](_0x4acc5d=>_0x59f350(_0x4acc5d,MAX_XML_ROWS))||!_0x569911['every'](_0x4602c0=>_0x59f350(_0x4602c0,MAX_XML_COLUMNS)))throw new Error(_0x4eee2d(0xe1));_0x3b5fb9+=_0x561039?(_0xe76eef[_0x4eee2d(0x14f)]-_0xe76eef[_0x4eee2d(0x109)]+0x1)*(_0xe76eef['right']-_0xe76eef[_0x4eee2d(0x84)]+0x1):0x1;if(_0x3b5fb9>MAX_ROWS)throw new Error(_0x4eee2d(0x15d));}};_0x44fbe4['on']('error',_0x276866),_0x44fbe4['on']('entry',_0x1a9643=>{const _0x26e2de=_0x4b67f9;if(_0x395460)return;if(++_0x1e13e9>0x2710||(_0x563aee+=_0x1a9643[_0x26e2de(0x99)])>MAX_EXPANDED){_0x276866(new Error(_0x26e2de(0xeb)));return;}let _0x550adc;try{_0x550adc=consumerEntryName(_0x2c584c,_0x1a9643);}catch(_0x10b7f9){_0x276866(_0x10b7f9);return;}if(_0x550adc['directory']){_0x44fbe4[_0x26e2de(0x12c)]();return;}const _0x3e5e0f=_0x550adc[_0x26e2de(0x151)];if(_0x2fe788&&(_0x3e5e0f!==_0x550adc['original']||_0xd8f080[_0x26e2de(0xd0)](_0x3e5e0f)||_0x3e5e0f[_0x26e2de(0xb7)]('/')||_0x3e5e0f['includes']('\x5c'))){_0x276866(new Error(_0x26e2de(0x88)));return;}if(_0x3e5e0f!==_0x550adc[_0x26e2de(0xed)]&&(_0x3e5e0f===_0x26e2de(0xdd)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e2de(0x12a)](_0x3e5e0f))){_0x276866(new Error('Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.'));return;}const _0x12a152=_0x3e5e0f==='xl/workbook.xml';if(_0x12a152&&_0xd8f080['has'](_0x3e5e0f)){_0x276866(new Error('Duplicate\x20workbook\x20ZIP\x20entry.'));return;}_0xd8f080[_0x26e2de(0x137)](_0x3e5e0f);const _0x30f5ef=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x26e2de(0x12a)](_0x3e5e0f);if(_0x30f5ef&&!/^xl\/worksheets\/sheet\d+[.]xml$/[_0x26e2de(0x12a)](_0x3e5e0f)){_0x276866(new Error('Non-canonical\x20worksheet\x20ZIP\x20entry.'));return;}_0x44fbe4[_0x26e2de(0x144)](_0x1a9643,(_0x2b15a7,_0x202d7e)=>{const _0x2a1a4f=_0x26e2de;if(_0x395460){_0x202d7e?.[_0x2a1a4f(0xe7)]();return;}if(_0x2b15a7||!_0x202d7e){_0x276866(_0x2b15a7??new Error(_0x2a1a4f(0xdf)));return;}_0xc8024d=_0x202d7e;const _0x38c00b=_0x2fe788?[]:undefined,_0x9b864e=_0x2fe788&&/[.](xml|rels)$/[_0x2a1a4f(0x12a)](_0x3e5e0f)?new StringDecoder(_0x2a1a4f(0x140)):undefined,_0x3ff153=_0x9b864e?new SaxesParser({'xmlns':![]}):undefined,_0x4f9122=()=>{if(++_0x585a97>0x1e8480)throw Error('Image\x20XML\x20event\x20budget\x20exceeded.');};_0x3ff153?.['on'](_0x2a1a4f(0x121),()=>{const _0x12c194=_0x2a1a4f;throw Error(_0x12c194(0xaa));}),_0x3ff153?.['on']('opentag',()=>{const _0x2c5a3e=_0x2a1a4f;_0x4f9122();if(++_0x147198>0x7a120)throw Error(_0x2c5a3e(0x96));}),_0x3ff153?.['on'](_0x2a1a4f(0x89),_0x4f9122),_0x3ff153?.['on'](_0x2a1a4f(0xd1),_0x4f9122),_0x3ff153?.['on']('error',_0x216816=>{throw _0x216816;});const _0x3d5bbe=_0x30f5ef||_0x12a152?new StringDecoder(_0x2a1a4f(0x140)):undefined,_0x42b988=_0x30f5ef||_0x12a152?new SaxesParser({'xmlns':![]}):undefined;let _0x9a5d74,_0x24495a=0x0,_0x4bfa43=0x0,_0x1c4548,_0x3ea45d,_0x5cda69=![],_0x23486c=![],_0x1eeb58,_0x27ba96,_0x35045c,_0x23604b=![];const _0x5b4b07=[],_0x4fdae8=new Set();let _0x595a62;const _0x3029a2=(_0x3df024,_0x43acba=0x0)=>{const _0x27f0a5=_0x2a1a4f;_0x5a9427+=_0x43acba+Math[_0x27f0a5(0x104)](0x0,_0x3df024-_0x4bfa43),_0x4bfa43=Math[_0x27f0a5(0x104)](_0x4bfa43,_0x3df024);if(_0x5a9427>MAX_ROWS)throw new Error(_0x27f0a5(0x14a));};_0x42b988?.['on'](_0x2a1a4f(0xc4),_0x42eeb8=>{const _0x1d179e=_0x2a1a4f;if(_0x12a152){if(!_0x9a5d74&&_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0x79))_0x9a5d74=new DefinedNameXform();_0x9a5d74?.['parseOpen'](_0x42eeb8);return;}if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0x14e)){if(_0x23486c)throw new Error(_0x1d179e(0x15c));_0x4a0488(_0x42eeb8[_0x1d179e(0x112)]['r'],MAX_XML_ROWS),_0x1c4548=undefined,_0x35045c=undefined,_0x23604b=![];}else{if(_0x42eeb8[_0x1d179e(0x151)]==='c'){if(_0x23486c)throw new Error(_0x1d179e(0x8f));_0x23486c=!![],_0x5cda69=Boolean(Number[_0x1d179e(0x145)](_0x42eeb8[_0x1d179e(0x112)]['s']??'',0xa)),_0x595a62=undefined,_0x1eeb58=_0x42eeb8[_0x1d179e(0x112)]['r']||undefined,_0x27ba96=_0x1eeb58?_0x17f64b(_0x1eeb58):undefined;if(_0x27ba96)_0x3ea45d=_0x27ba96;else _0x3ea45d=_0x1c4548?{'row':_0x1c4548[_0x1d179e(0x14e)],'col':_0x1c4548[_0x1d179e(0xd5)]+0x1}:undefined;}else{if(_0x23486c&&['f','v','t'][_0x1d179e(0xaf)](_0x42eeb8['name'])){_0x595a62=_0x42eeb8[_0x1d179e(0x151)];if(_0x42eeb8['name']==='f'&&_0x42eeb8[_0x1d179e(0x112)]['t'])_0x5cda69=!![];}else{if(_0x23486c&&_0x42eeb8[_0x1d179e(0x151)]==='r')_0x5cda69=!![];else{if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0xce)){const _0x57745e=_0x42eeb8[_0x1d179e(0x112)][_0x1d179e(0xc6)];if(!_0x57745e)throw new Error(_0x1d179e(0xd7));const _0x20e048=_0x57745e['split'](':');if(_0x20e048[_0x1d179e(0x13d)]>0x2)throw new Error('Invalid\x20worksheet\x20hyperlink\x20reference.');const _0x214111=_0x17f64b(_0x20e048[0x0]),_0x54f453=_0x17f64b(_0x20e048[0x1]??_0x20e048[0x0]);_0x4fdae8['add'](_0x57745e),_0x3029a2(Math['max'](_0x214111[_0x1d179e(0xd5)],_0x54f453[_0x1d179e(0xd5)]),0x1);}else{if(_0x42eeb8['name']===_0x1d179e(0xd5)){const _0x2d54ea=_0x4a0488(_0x42eeb8[_0x1d179e(0x112)][_0x1d179e(0x154)],0x4000),_0x402ae8=_0x4a0488(_0x42eeb8['attributes'][_0x1d179e(0x104)],0x4000);if(_0x2d54ea>_0x402ae8)throw new Error(_0x1d179e(0xf6));_0x3029a2(_0x402ae8,0x1);}else{if(_0x42eeb8[_0x1d179e(0x151)]===_0x1d179e(0xa0)){const _0x3fd5c1=_0x42eeb8['attributes'][_0x1d179e(0xc6)];if(!_0x3fd5c1)throw new Error('Invalid\x20worksheet\x20merge\x20reference.');const _0x224491=_0x3fd5c1[_0x1d179e(0x141)](':');if(_0x224491[_0x1d179e(0x13d)]>0x2)throw new Error(_0x1d179e(0x13a));const _0x2f8019=_0x17f64b(_0x224491[0x0]),_0x5ddf6f=_0x17f64b(_0x224491[0x1]??_0x224491[0x0]);_0x3029a2(Math[_0x1d179e(0x104)](_0x2f8019[_0x1d179e(0xd5)],_0x5ddf6f[_0x1d179e(0xd5)]));const _0x5c9504=(Math['abs'](_0x5ddf6f[_0x1d179e(0x14e)]-_0x2f8019[_0x1d179e(0x14e)])+0x1)*(Math[_0x1d179e(0x80)](_0x5ddf6f['col']-_0x2f8019['col'])+0x1);_0x4f9438+=_0x5c9504+_0x24495a++;if(_0x4f9438>MAX_ROWS)throw new Error(_0x1d179e(0xea));}}}}}}}}),_0x42b988?.['on'](_0x2a1a4f(0x89),_0xb2f973=>{if(_0x12a152){_0x9a5d74?.['parseText'](_0xb2f973);return;}if(_0x23486c&&_0x595a62&&_0xb2f973)_0x5cda69=!![];}),_0x42b988?.['on'](_0x2a1a4f(0xd1),_0x1a2db3=>{const _0x5ea067=_0x2a1a4f;if(_0x12a152){_0x9a5d74&&!_0x9a5d74[_0x5ea067(0x15b)]()&&(_0x48eb40(_0x9a5d74[_0x5ea067(0x131)]),_0x9a5d74=undefined);return;}if(_0x1a2db3[_0x5ea067(0x151)]==='c'){!_0x5cda69&&_0x1eeb58&&!_0x35045c&&(_0x35045c={'before':_0x1c4548,'cells':[]});if(_0x35045c){if(++_0x19efdb>0xf4240)throw new Error(_0x5ea067(0x157));_0x35045c[_0x5ea067(0xf5)][_0x5ea067(0xbb)]({'reference':_0x1eeb58,'address':_0x27ba96,'materialized':_0x5cda69});if(!_0x1eeb58&&_0x5cda69)_0x23604b=!![];}if(_0x5cda69){if(!_0x35045c||_0x1eeb58){if(!_0x3ea45d)throw new Error(_0x5ea067(0xc3));if(_0x3ea45d['col']>MAX_XML_COLUMNS)throw new Error(_0x5ea067(0xb4));_0x3029a2(_0x3ea45d[_0x5ea067(0xd5)]);}_0x1c4548=_0x3ea45d;}_0x23486c=![],_0x3ea45d=undefined,_0x1eeb58=undefined,_0x27ba96=undefined,_0x595a62=undefined;}else{if(_0x1a2db3[_0x5ea067(0x151)]==='row'){if(_0x35045c&&_0x23604b)_0x5b4b07[_0x5ea067(0xbb)](_0x35045c);_0x35045c=undefined,_0x23604b=![];}else{if(_0x1a2db3[_0x5ea067(0x151)]===_0x595a62)_0x595a62=undefined;}}}),_0x42b988?.['on'](_0x2a1a4f(0x129),_0xa49768=>{const _0x207ba5=_0x2a1a4f;throw new Error('Invalid\x20worksheet\x20XML:\x20'+_0xa49768[_0x207ba5(0xee)]);}),_0x202d7e['on']('error',_0x276866),_0x202d7e['on'](_0x2a1a4f(0x76),_0xdc5bc6=>{const _0x11e91f=_0x2a1a4f;if(_0x395460)return;_0x550b79+=_0xdc5bc6['length'],_0x38c00b?.[_0x11e91f(0xbb)](_0xdc5bc6);if(_0x550b79>MAX_EXPANDED){_0x276866(new Error(_0x11e91f(0xeb)));return;}try{if(_0x3ff153&&_0x9b864e)_0x3ff153[_0x11e91f(0xc9)](_0x9b864e[_0x11e91f(0xc9)](_0xdc5bc6));if(_0x42b988&&_0x3d5bbe)_0x42b988[_0x11e91f(0xc9)](_0x3d5bbe[_0x11e91f(0xc9)](_0xdc5bc6));}catch(_0x31ac6b){_0x276866(_0x31ac6b instanceof Error?_0x31ac6b:new Error('Invalid\x20worksheet\x20XML.'));}}),_0x202d7e['on'](_0x2a1a4f(0xff),()=>{const _0x254406=_0x2a1a4f;if(_0x395460)return;try{if(_0x3ff153&&_0x9b864e)_0x3ff153[_0x254406(0xc9)](_0x9b864e[_0x254406(0xff)]())[_0x254406(0x86)]();if(_0x42b988&&_0x3d5bbe)_0x42b988[_0x254406(0xc9)](_0x3d5bbe[_0x254406(0xff)]())[_0x254406(0x86)]();for(const _0x396ce9 of _0x5b4b07){let _0x2f8574=_0x396ce9[_0x254406(0x12d)];for(const _0xc183a4 of _0x396ce9[_0x254406(0xf5)]){if(!_0xc183a4[_0x254406(0xf9)]&&!(_0xc183a4['reference']&&_0x4fdae8[_0x254406(0xd0)](_0xc183a4[_0x254406(0x72)])))continue;const _0x4c5c7b=_0xc183a4[_0x254406(0xd4)]??(_0x2f8574?{'row':_0x2f8574[_0x254406(0x14e)],'col':_0x2f8574['col']+0x1}:undefined);if(!_0x4c5c7b)throw new Error(_0x254406(0xc3));if(_0x4c5c7b['col']>MAX_XML_COLUMNS)throw new Error(_0x254406(0xb4));_0x3029a2(_0x4c5c7b['col']),_0x2f8574=_0x4c5c7b;}}_0x5b4b07[_0x254406(0x13d)]=0x0,_0x4fdae8[_0x254406(0x9d)]();}catch(_0x102e09){_0x276866(_0x102e09 instanceof Error?_0x102e09:new Error(_0x254406(0x91)));return;}if(_0x38c00b)_0x2fe788['set'](_0x3e5e0f,Buffer['concat'](_0x38c00b));_0xc8024d=undefined,_0x44fbe4['readEntry']();});});}),_0x44fbe4['on'](_0x4b67f9(0xff),()=>{const _0x16625b=_0x4b67f9;if(_0x395460)return;if(_0x44fbe4['readEntryCursor']!==_0x56f7ce){_0x58a03a(new Error(_0x16625b(0xc2)));return;}if(!_0xd8f080[_0x16625b(0xd0)](_0x16625b(0xa8))||!_0xd8f080[_0x16625b(0xd0)](_0x16625b(0xdd)))_0x58a03a(new Error(_0x16625b(0xc7)));else _0x41cf02();}),_0x44fbe4[_0x4b67f9(0x12c)]();});});}function valueOf(_0x4d6658){const _0x809ae7=a140_0x56d57d,_0x148a0a=_0x4d6658[_0x809ae7(0x161)];if(_0x148a0a&&typeof _0x148a0a===_0x809ae7(0x11d)&&('formula'in _0x148a0a||_0x809ae7(0x152)in _0x148a0a)){if(!('result'in _0x148a0a)||_0x148a0a['result']===undefined)throw new Error(_0x809ae7(0xb9));return _0x148a0a['result'];}return _0x148a0a;}function convert(_0x4d711e,_0x55c696){const _0x4bb50c=a140_0x56d57d;if(_0x4d711e===null||_0x4d711e===undefined||_0x4d711e===''){if(_0x55c696[_0x4bb50c(0xbd)]&&!_0x55c696[_0x4bb50c(0xa9)])throw new Error(_0x4bb50c(0x124));return null;}if(typeof _0x4d711e===_0x4bb50c(0x11a)&&Buffer[_0x4bb50c(0x10e)](_0x4d711e,_0x4bb50c(0x140))>MAX_CELL)throw new Error(_0x4bb50c(0xf8));switch(_0x55c696[_0x4bb50c(0xfa)]['toLowerCase']()){case _0x4bb50c(0x11a):case'text':case _0x4bb50c(0x133):if(typeof _0x4d711e!==_0x4bb50c(0x11a))throw new Error('Expected\x20a\x20text\x20cell.');return _0x4d711e;case'number':case _0x4bb50c(0xe3):case _0x4bb50c(0x12f):if(typeof _0x4d711e!==_0x4bb50c(0x8e)||!Number[_0x4bb50c(0xe2)](_0x4d711e)||Math['abs'](_0x4d711e)>Number[_0x4bb50c(0x162)]||_0x55c696[_0x4bb50c(0xfa)][_0x4bb50c(0xcf)]()===_0x4bb50c(0x12f)&&!Number[_0x4bb50c(0x117)](_0x4d711e))throw new Error(_0x4bb50c(0xf3));return _0x4d711e;case _0x4bb50c(0xc0):if(typeof _0x4d711e!=='boolean')throw new Error(_0x4bb50c(0x138));return _0x4d711e;case _0x4bb50c(0x101):case'datetime':if(!(_0x4d711e instanceof Date)||!Number[_0x4bb50c(0xe2)](_0x4d711e[_0x4bb50c(0xda)]()))throw new Error(_0x4bb50c(0x9a));return _0x4d711e['getTime']();default:throw new Error(_0x4bb50c(0x125)+_0x55c696[_0x4bb50c(0xfa)]+'.');}}function a140_0x5a5b(){const _0x489acd=['isBuffer','close','sha256','Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.','text','dataType','exec','fromBuffer','Invalid\x20ZIP\x20central\x20directory\x20layout.','number','Invalid\x20worksheet\x20nested\x20cell.','dataset-import/','Invalid\x20worksheet\x20XML.','datetime','file','get','fileNameStr','Image\x20XML\x20node\x20budget\x20exceeded.','./zipEntry','Worksheet\x20exceeds\x20','uncompressedSize','Expected\x20an\x20Excel\x20date\x20cell.','Invalid\x20dataset\x20field\x20extension\x20metadata.','hiddenRow','clear','Invalid\x20ZIP\x20local\x20file\x20header.','trim','mergeCell','media','12067762yRttZG','METADATA','imageFields','digest','from','unixPermissions','[Content_Types].xml','generated','XML\x20DTD/entities\x20are\x20not\x20supported.','externalFileAttributes','extname','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','exceljs/lib/utils/col-cache.js','includes','image','imageCells','updateTime','fileNameRaw','Worksheet\x20exceeds\x2016384\x20columns.','Unknown\x20Excel\x20header:\x20','_xlnm.Print_Titles','startsWith','./reader/readerFor','Formula\x20has\x20no\x20cached\x20result.','set','push','every','required','extraFieldsLength','Required\x20field\x20is\x20not\x20mapped:\x20','boolean','creatorId','ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.','Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.','opentag','parse','ref','File\x20is\x20not\x20an\x20XLSX\x20workbook.','sheet','write','Requested\x20worksheet\x20does\x20not\x20exist.','repeat','readUInt16LE','merges','hyperlink','toLowerCase','has','closetag','jszip','source','address','col','emptyRows','Invalid\x20worksheet\x20hyperlink\x20reference.','65610hCFSBp','localeCompare','getTime','autoIncrement','properties','xl/workbook.xml','size','Invalid\x20XLSX\x20entry.','sort','Invalid\x20defined\x20name\x20coordinate.','isFinite','decimal','batchSize','getRow','Duplicate\x20mapping\x20target:\x20','destroy','getCell','some','Worksheet\x20merge\x20work\x20exceeds\x20100000.','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','readUInt32LE','original','message','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','serial_number','Merged\x20cells\x20are\x20not\x20supported.','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','Expected\x20a\x20finite\x20safe\x20numeric\x20cell.','80NnhFwJ','cells','Invalid\x20worksheet\x20column\x20range.','fileName','Cell\x20exceeds\x2064\x20KB.','materialized','type','filter','compressedSize','Unsupported\x20dataset\x20field\x20type:\x20serial_number.','headerRow','end','2447184XyUIWp','date','\x20columns.','1446naArtd','max','stringify','758dKfaFK','10PaZAbh','./utils','top','creatorName','exceljs','extraFieldRaw','hidden','byteLength','readBigUInt64LE','Invalid\x20XLSX\x20archive.','Unique\x20image\x20bytes\x20exceed\x2050\x20MB.','attributes','mapping','upload','.xlsx','eachCell','isInteger','Invalid\x20worksheet\x20coordinate.','resolve','string','isFile','map','object','Required\x20image\x20value\x20is\x20missing.','warnings','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','doctype','find','deleted','Required\x20value\x20is\x20missing.','Unsupported\x20field\x20type:\x20','entries','readExtraFields','datasetId','error','test','entryCount','readEntry','before','image/jpeg','integer','dataset','model','code','textarea','worksheets','Missing\x20image\x20media:\x20','jpg','add','Expected\x20a\x20boolean\x20cell.','utf8decode','Invalid\x20worksheet\x20merge\x20reference.','exceljs/lib/xlsx/xform/book/defined-name-xform.js','pop','length','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.','utf8','split','9019098dSChAB','tenantCode','openReadStream','parseInt','lastIndexOf','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','slice','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','Worksheet\x20column\x20objects\x20exceed\x20100000.','processAttributes','contentHash','rowCount','row','bottom','2830900oRmEKv','name','sharedFormula','ranges','min','appCode','extraFields','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Workbook','sourceType','isArray','parseClose','Invalid\x20worksheet\x20nested\x20row.','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','modifierId','23415420ZmMKlm','values','value','MAX_SAFE_INTEGER','Duplicate\x20header:\x20','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','reference','dataValidations','fileCommentRaw','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','data','right','fields','definedName','parserVersion','modifierName','update','versionMadeBy','Dataset\x20field\x20metadata\x20is\x20missing.','generalPurposeBitFlag','abs','isSafeInteger','equals','relativeOffsetOfLocalHeader','left'];a140_0x5a5b=function(){return _0x489acd;};return a140_0x5a5b();}export async function buildExcelManifest(_0x21f861){const _0x566e0f=a140_0x56d57d,_0x2e4c8b=_0x21f861[_0x566e0f(0xfe)]??0x1;if(!Number['isInteger'](_0x2e4c8b)||_0x2e4c8b<0x1||_0x2e4c8b>MAX_ROWS)throw new Error(_0x566e0f(0xf2));if(_0x21f861['batchSize']!==undefined&&(!Number[_0x566e0f(0x117)](_0x21f861['batchSize'])||_0x21f861[_0x566e0f(0xe4)]<0x1||_0x21f861[_0x566e0f(0xe4)]>0x3e8))throw new Error(_0x566e0f(0xef));if(a140_0x418a0e[_0x566e0f(0xac)](_0x21f861[_0x566e0f(0x93)])['toLowerCase']()!==_0x566e0f(0x115))throw new Error('Only\x20.xlsx\x20files\x20are\x20supported.');const _0x424a93=await stat(_0x21f861[_0x566e0f(0x93)]);if(!_0x424a93[_0x566e0f(0x11b)]()||_0x424a93[_0x566e0f(0xde)]>MAX_FILE)throw new Error(_0x566e0f(0x120));const _0x335ad4=await readFile(_0x21f861[_0x566e0f(0x93)]);if(_0x335ad4['length']>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0xca5fab=_0x21f861[_0x566e0f(0x78)][_0x566e0f(0xe9)](_0x126820=>isImageContainer(_0x126820[_0x566e0f(0xfa)])&&Object[_0x566e0f(0x160)](_0x21f861[_0x566e0f(0x113)])[_0x566e0f(0xaf)](_0x126820[_0x566e0f(0x132)]))?new Map():undefined;await checkArchive(_0x335ad4,_0xca5fab);const _0x5799d6=new a140_0xc7c25c[(_0x566e0f(0x158))]();await _0x5799d6['xlsx']['load'](_0x335ad4,{'ignoreNodes':[_0x566e0f(0x73)]});const _0x1ad08b=_0x21f861[_0x566e0f(0xc8)];let _0x3497e1;if(_0x1ad08b===undefined)_0x3497e1=_0x5799d6['worksheets'][0x0];else{if(typeof _0x1ad08b===_0x566e0f(0x11a)&&_0x5799d6['worksheets']['some'](_0x3d139e=>_0x3d139e['name']===_0x1ad08b))_0x3497e1=_0x5799d6['worksheets'][_0x566e0f(0x122)](_0x3c579a=>_0x3c579a[_0x566e0f(0x151)]===_0x1ad08b);else{if(typeof _0x1ad08b===_0x566e0f(0x8e)||/^\d+$/[_0x566e0f(0x12a)](_0x1ad08b)){const _0x144f0c=Number(_0x1ad08b);if(!Number['isInteger'](_0x144f0c)||_0x144f0c<0x1)throw new Error(_0x566e0f(0x13e));_0x3497e1=_0x5799d6[_0x566e0f(0x134)][_0x144f0c-0x1];}else _0x3497e1=_0x5799d6['worksheets']['find'](_0x10f994=>_0x10f994[_0x566e0f(0x151)]===_0x1ad08b);}}if(!_0x3497e1)throw new Error(_0x566e0f(0xca));if(_0x3497e1[_0x566e0f(0x14d)]>MAX_ROWS||_0x3497e1['columnCount']>MAX_COLUMNS)throw new Error('Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.');if((_0x3497e1[_0x566e0f(0x131)][_0x566e0f(0xcd)]??[])[_0x566e0f(0x13d)])throw new Error(_0x566e0f(0xf1));const _0x2f1b37=new Map();_0x3497e1[_0x566e0f(0xe5)](_0x2e4c8b)[_0x566e0f(0x116)]((_0x518347,_0x37e253)=>{const _0x5e9044=_0x566e0f,_0x170d24=valueOf(_0x518347);if(typeof _0x170d24!==_0x5e9044(0x11a)||!_0x170d24[_0x5e9044(0x9f)]()||Buffer[_0x5e9044(0x10e)](_0x170d24)>MAX_CELL)throw new Error('Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.');if(_0x2f1b37[_0x5e9044(0xd0)](_0x170d24))throw new Error(_0x5e9044(0x163)+_0x170d24+'.');_0x2f1b37[_0x5e9044(0xba)](_0x170d24,_0x37e253);});const _0xfe0921=Object[_0x566e0f(0x126)](_0x21f861['mapping']);if(!_0xfe0921[_0x566e0f(0x13d)])throw new Error(_0x566e0f(0xad));const _0x29339c=new Map(_0x21f861[_0x566e0f(0x78)]['map'](_0x58bef0=>[_0x58bef0[_0x566e0f(0x132)],_0x58bef0]));if(_0x29339c[_0x566e0f(0xde)]!==_0x21f861[_0x566e0f(0x78)][_0x566e0f(0x13d)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x21f861[_0x566e0f(0x78)][_0x566e0f(0xe9)](_0xf7cd85=>_0xf7cd85[_0x566e0f(0xfa)]['toLowerCase']()==='serial_number'))throw new Error(_0x566e0f(0xfd));const _0x1d5289=new Set();for(const [_0x5a5800,_0x53a7f5]of _0xfe0921){const _0x3b9d73=_0x29339c[_0x566e0f(0x94)](_0x53a7f5);if(!_0x2f1b37['has'](_0x5a5800))throw new Error(_0x566e0f(0xb5)+_0x5a5800+'.');if(!_0x3b9d73||RESERVED[_0x566e0f(0xd0)](_0x53a7f5)||_0x3b9d73['generated'])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x53a7f5+'.');if(_0x1d5289['has'](_0x53a7f5))throw new Error(_0x566e0f(0xe6)+_0x53a7f5+'.');if(!TYPES['has'](_0x3b9d73['type'][_0x566e0f(0xcf)]()))throw new Error(_0x566e0f(0x125)+_0x3b9d73[_0x566e0f(0xfa)]+'.');_0x1d5289[_0x566e0f(0x137)](_0x53a7f5);}for(const _0x2a8869 of _0x21f861[_0x566e0f(0x78)]){if(_0x2a8869[_0x566e0f(0xbd)]&&!_0x2a8869[_0x566e0f(0xa9)]&&!RESERVED['has'](_0x2a8869[_0x566e0f(0x132)])&&!_0x1d5289['has'](_0x2a8869['code']))throw new Error(_0x566e0f(0xbf)+_0x2a8869['code']+'.');}const _0x103c55={'fileHash':hash(_0x335ad4),'mappingHash':hash(JSON['stringify']([..._0xfe0921]['sort'](([_0x108be4],[_0x47d23a])=>_0x108be4['localeCompare'](_0x47d23a)))),'schemaHash':hash(JSON[_0x566e0f(0x105)]([..._0x21f861[_0x566e0f(0x78)]][_0x566e0f(0xe0)]((_0x630ca,_0xa16bab)=>_0x630ca[_0x566e0f(0x132)][_0x566e0f(0xd9)](_0xa16bab[_0x566e0f(0x132)])))),'sheet':_0x3497e1[_0x566e0f(0x151)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x602cfa=_0xfe0921[_0x566e0f(0xfb)](([,_0x340c29])=>isImageContainer(_0x29339c[_0x566e0f(0x94)](_0x340c29)['type'])),_0x500f41=_0x602cfa['filter'](([,_0x52df85])=>_0x29339c['get'](_0x52df85)[_0x566e0f(0xfa)][_0x566e0f(0xcf)]()==='upload')[_0x566e0f(0x11c)](([,_0x16f037])=>_0x16f037);if(_0x500f41[_0x566e0f(0x13d)])_0x103c55['uploadFields']=_0x500f41;const _0x296de3=_0xca5fab?resolveWorksheetImages(_0xca5fab,_0x3497e1[_0x566e0f(0x151)],new Set(_0x602cfa['map'](([_0x404ddb])=>_0x2f1b37[_0x566e0f(0x94)](_0x404ddb)))):[],_0x5a20c6=new Map();for(const _0x1ac1bf of _0x296de3){const _0x5cc0ec=_0x1ac1bf['row']+':'+_0x1ac1bf['col'],_0x419889=_0x5a20c6['get'](_0x5cc0ec)??[];_0x419889[_0x566e0f(0xbb)](_0x1ac1bf),_0x5a20c6[_0x566e0f(0xba)](_0x5cc0ec,_0x419889);}const _0x350b64=new Map();let _0x1e89cd=0x0;_0x602cfa[_0x566e0f(0x13d)]&&(_0x103c55[_0x566e0f(0xa4)]=_0x602cfa['map'](([,_0x59235d])=>_0x59235d),_0x103c55['imageCells']=[],_0x103c55[_0x566e0f(0x7a)]=0x1,_0x103c55[_0x566e0f(0xa1)]=[]);const _0xdb9f7f=Math[_0x566e0f(0x104)](0x0,..._0x296de3[_0x566e0f(0x11c)](_0x2b7de5=>_0x2b7de5['row']));let _0x44d5ae=0x0;const _0x3f75ff=new Set(_0xfe0921[_0x566e0f(0x11c)](([_0x250457])=>_0x2f1b37[_0x566e0f(0x94)](_0x250457)));for(let _0x4ca5d9=_0x2e4c8b+0x1;_0x4ca5d9<=Math[_0x566e0f(0x104)](_0x3497e1['rowCount'],_0xdb9f7f);_0x4ca5d9++){const _0x11ad2f=_0x3497e1[_0x566e0f(0xe5)](_0x4ca5d9);if(_0x11ad2f[_0x566e0f(0x10d)]||_0x296de3[_0x566e0f(0xe9)](_0x2760dd=>_0x2760dd[_0x566e0f(0x14e)]===_0x4ca5d9&&_0x2760dd[_0x566e0f(0x9c)]))_0x44d5ae++;let _0x9afd06=_0x296de3['some'](_0x19d1b7=>_0x19d1b7['row']===_0x4ca5d9);_0x11ad2f[_0x566e0f(0x116)](_0xd555eb=>{const _0xdc0cf7=_0x566e0f;if(_0xd555eb[_0xdc0cf7(0x161)]!==null&&_0xd555eb['value']!==undefined&&_0xd555eb[_0xdc0cf7(0x161)]!=='')_0x9afd06=!![];});if(!_0x9afd06){_0x103c55[_0x566e0f(0xd6)][_0x566e0f(0xbb)](_0x4ca5d9);continue;}const _0x3d7094=Object['create'](null);_0x11ad2f[_0x566e0f(0x116)]((_0x1ca92c,_0x5ddfc1)=>{const _0x431fa7=_0x566e0f;if(_0x3f75ff['has'](_0x5ddfc1))return;try{const _0x134c28=valueOf(_0x1ca92c);if(typeof _0x134c28==='string'&&Buffer['byteLength'](_0x134c28,_0x431fa7(0x140))>MAX_CELL)throw new Error(_0x431fa7(0xf8));}catch(_0xa6c42a){_0x103c55['errors'][_0x431fa7(0xbb)]({'rowNumber':_0x4ca5d9,'field':_0x1ca92c[_0x431fa7(0xd4)],'message':_0xa6c42a[_0x431fa7(0xee)]});}});for(const [_0x207b35,_0x365eac]of _0xfe0921){try{const _0x2fb0e7=_0x11ad2f[_0x566e0f(0xe8)](_0x2f1b37['get'](_0x207b35)),_0x2889eb=_0x29339c[_0x566e0f(0x94)](_0x365eac);if(!isImageContainer(_0x2889eb[_0x566e0f(0xfa)])){_0x3d7094[_0x365eac]=convert(valueOf(_0x2fb0e7),_0x2889eb);continue;}const _0x357302=_0x5a20c6[_0x566e0f(0x94)](_0x4ca5d9+':'+_0x2f1b37[_0x566e0f(0x94)](_0x207b35))??[];if(_0x357302[_0x566e0f(0xe9)](_0x5632cb=>_0x5632cb[_0x566e0f(0x129)]))throw Error(_0x357302[_0x566e0f(0x122)](_0x540421=>_0x540421['error'])[_0x566e0f(0x129)]);if(_0x2fb0e7[_0x566e0f(0x161)]!=null&&_0x2fb0e7['value']!==''&&!_0x357302[_0x566e0f(0xe9)](_0x40eb81=>_0x40eb81['nativeCell']))throw Error(_0x566e0f(0x164));const _0x1e4e03=[];for(const _0x5e426a of _0x357302)for(const _0x4516b3 of _0x5e426a[_0x566e0f(0xa1)]){const _0x53dd72=_0xca5fab['get'](_0x4516b3);if(!_0x53dd72)throw Error(_0x566e0f(0x135)+_0x4516b3+'.');const _0x4ed86b=hash(_0x53dd72),_0x277fe4=_0x350b64['get'](_0x4ed86b)??validateImageBytes(_0x53dd72);if(!_0x350b64['has'](_0x277fe4[_0x566e0f(0x14c)])){_0x1e89cd+=_0x277fe4[_0x566e0f(0xde)];if(_0x1e89cd>0x32*0x400*0x400)throw Error(_0x566e0f(0x111));_0x350b64[_0x566e0f(0xba)](_0x277fe4[_0x566e0f(0x14c)],_0x277fe4);}_0x1e4e03['push'](_0x277fe4[_0x566e0f(0x14c)]);}if(!_0x1e4e03[_0x566e0f(0x13d)]&&_0x2889eb['required'])throw Error(_0x566e0f(0x11e));if(_0x1e4e03[_0x566e0f(0x13d)])_0x103c55[_0x566e0f(0xb1)]['push']({'rowNumber':_0x4ca5d9,'field':_0x365eac,'hashes':_0x1e4e03});_0x3d7094[_0x365eac]=_0x1e4e03['map'](_0x27bff5=>{const _0xd69a3b=_0x566e0f,_0x3fbfb3=_0x350b64[_0xd69a3b(0x94)](_0x27bff5),_0x36682d=_0x3fbfb3[_0xd69a3b(0xfa)]===_0xd69a3b(0x12e)?_0xd69a3b(0x136):_0x3fbfb3[_0xd69a3b(0xfa)][_0xd69a3b(0x148)](0x6),_0x4655b4=_0x27bff5+'.'+_0x36682d,_0x30b30f=_0xd69a3b(0x90)+'0'[_0xd69a3b(0xcb)](0x40)+'/'+_0x4655b4;return _0x2889eb[_0xd69a3b(0xfa)]['toLowerCase']()===_0xd69a3b(0x114)?{'fileName':_0x4655b4,'filePath':_0x30b30f}:{'key':_0x30b30f,'name':_0x4655b4,'type':_0x3fbfb3[_0xd69a3b(0xfa)],'size':_0x3fbfb3[_0xd69a3b(0xde)]};});}catch(_0x379101){_0x103c55['errors'][_0x566e0f(0xbb)]({'rowNumber':_0x4ca5d9,'field':_0x365eac,'message':_0x379101[_0x566e0f(0xee)]});}}_0x103c55['rows']['push']({'rowNumber':_0x4ca5d9,'values':_0x3d7094});}if(_0x103c55[_0x566e0f(0xa1)])_0x103c55[_0x566e0f(0xa1)]=[..._0x350b64['values']()];if(_0x44d5ae)_0x103c55[_0x566e0f(0x11f)][_0x566e0f(0xbb)](_0x44d5ae+'\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.');return _0x103c55;}
|
|
1
|
+
const a140_0x590d62=a140_0x3f41;(function(_0x4622c1,_0x333449){const _0xac16a0=a140_0x3f41,_0x13477f=_0x4622c1();while(!![]){try{const _0x41d53e=-parseInt(_0xac16a0(0x1c5))/0x1+parseInt(_0xac16a0(0x150))/0x2*(-parseInt(_0xac16a0(0x238))/0x3)+parseInt(_0xac16a0(0x1a4))/0x4*(parseInt(_0xac16a0(0x1f6))/0x5)+parseInt(_0xac16a0(0x1ce))/0x6*(parseInt(_0xac16a0(0x19e))/0x7)+parseInt(_0xac16a0(0x1ad))/0x8*(-parseInt(_0xac16a0(0x1ef))/0x9)+parseInt(_0xac16a0(0x15d))/0xa+-parseInt(_0xac16a0(0x16f))/0xb*(-parseInt(_0xac16a0(0x167))/0xc);if(_0x41d53e===_0x333449)break;else _0x13477f['push'](_0x13477f['shift']());}catch(_0x24dbb5){_0x13477f['push'](_0x13477f['shift']());}}}(a140_0x58f6,0xe3ec8));import{readFile,stat}from'node:fs/promises';import{createHash}from'node:crypto';import a140_0x11e7ee from'node:path';import{StringDecoder}from'node:string_decoder';import{createRequire}from'node:module';function a140_0x58f6(){const _0x23ca35=['reference','image','File\x20is\x20not\x20an\x20XLSX\x20workbook.','2yphFgx','fromBuffer','resolve','Image\x20cell\x20contains\x20scalar\x20or\x20mixed\x20content.','fileNameRaw','update','Non-canonical\x20worksheet\x20ZIP\x20entry.','pop','concat','Headers\x20must\x20be\x20non-empty\x20text\x20cells\x20no\x20larger\x20than\x2064\x20KB.','message','properties','Unknown\x20Excel\x20header:\x20','14124510UWZpTE','doctype','Invalid\x20worksheet\x20coordinate.','generated','charCodeAt','extname','row','dataValidations','number','creatorName','494244vdxRPw','Excel\x20import\x20only\x20supports\x20METADATA\x20datasets.','uncompressedSize','top','some','\x20hidden\x20row(s)\x20are\x20included\x20in\x20the\x20import.','right','abs','319ECufdr','externalFileAttributes','datasetId','Worksheet\x20merge\x20work\x20exceeds\x20100000.','data','equals','isBuffer','readUInt32LE','sharedFormula','jszip','errors','add','parseClose','readEntry','Worksheet\x20exceeds\x2016384\x20columns.','media','sourceType','upload','stringify','serial_number','ZIP\x20local\x20and\x20central\x20entry\x20names\x20must\x20match.','formula','Dataset\x20field\x20metadata\x20is\x20missing.','modifierName','subarray','Required\x20value\x20is\x20missing.','parserVersion','close','emptyRows','./reader/readerFor','Required\x20image\x20value\x20is\x20missing.','hyperlink','textarea','Worksheet\x20exceeds\x20100000\x20rows\x20or\x20256\x20columns.','Invalid\x20worksheet\x20column\x20range.','Invalid\x20worksheet\x20hyperlink\x20reference.','load','creatorId','end','extend','updateTime','Expected\x20a\x20boolean\x20cell.','extraFieldsLength','Image\x20XML\x20event\x20budget\x20exceeded.','Non-canonical\x20workbook\x20or\x20worksheet\x20ZIP\x20entry.','xl/workbook.xml','Duplicate\x20header:\x20','21CsDFfm','Invalid\x20XLSX\x20entry.','test','type','error','length','12MYiMxd','merges','rows','openReadStream','modifierId','getCell','exceljs/lib/xlsx/xform/book/defined-name-xform.js','generalPurposeBitFlag','col','16fGASoi','xlsx','Expected\x20an\x20Excel\x20date\x20cell.','dir','mapping','has','isFile','Invalid\x20ZIP\x20local\x20file\x20header.','ref','unixPermissions','fileName','worksheets','Invalid\x20worksheet\x20nested\x20row.','getTime','dataset-import/','uploadFields','includes','string','Required\x20field\x20is\x20not\x20mapped:\x20','model','Cell\x20exceeds\x2064\x20KB.','Invalid\x20worksheet\x20merge\x20reference.','Invalid\x20dataset\x20field\x20extension\x20metadata.','extraFieldRaw','1418801SmqqPi','sheet','XLSX\x20expanded\x20content\x20exceeds\x20100\x20MB.','Duplicate\x20workbook\x20ZIP\x20entry.','Invalid\x20XLSX\x20archive.','materialized','contentHash','object','boolean','1517214zRkOzq','./zipEntry','from','attributes','Duplicate\x20ZIP64\x20extended\x20information\x20fields\x20are\x20not\x20supported.','value','Worksheet\x20deferred\x20cell\x20events\x20exceed\x201000000.','Merged\x20cells\x20are\x20not\x20supported.','hidden','repeat','address','original','Worksheet\x20exceeds\x20','Duplicate\x20mapping\x20target:\x20','Mapping\x20must\x20contain\x20at\x20least\x20one\x20field.','fileNameStr','fields','date','decodeEx','isInteger','Unsupported\x20field\x20type:\x20','clear','Worksheet\x20column\x20objects\x20exceed\x20100000.','batchSize','Expected\x20a\x20text\x20cell.','versionMadeBy','extraFields','required','every','set','name','startsWith','split','646911ruJpeh','entries','code','definedName','lastIndexOf','destroy','isArray','1283875TGPygh','push','size','source','integer','_xlnm.Print_Titles','autoIncrement','eachCell','./utils','getRow','.xlsx','Invalid\x20worksheet\x20XML.','hiddenRow','sort','utf8','max','filter','find','before','get','isSafeInteger','fileComment','readBigUInt64LE','Workbook\x20defined\x20name\x20work\x20exceeds\x20100000.','nativeCell','datetime','Invalid\x20or\x20duplicate\x20dataset\x20field\x20metadata.','map','values','directory','Sheet\x20index\x20must\x20be\x20a\x20positive\x20one-based\x20integer.','readExtraFields','bottom','exceljs/lib/utils/col-cache.js','Only\x20.xlsx\x20files\x20are\x20supported.','write','file','hex','ranges','handleUTF8','[Content_Types].xml','tenantCode','exec','processAttributes','cells','mergeCell','compressedSize','Formula\x20has\x20no\x20cached\x20result.','left','entry','readUInt16LE','isFinite','localeCompare','warnings','result','toLowerCase','image/jpeg','deleted','parseText','jpg','createTime','byteLength','Invalid\x20worksheet\x20XML:\x20','text','bitFlag','relativeOffsetOfLocalHeader','4919013vmuFUT','Invalid\x20defined\x20name\x20coordinate.','readEntryCursor','sha256','dataset','opentag','headerRow\x20must\x20be\x20between\x201\x20and\x20100000.','XLSX\x20file\x20must\x20be\x20a\x20regular\x20file\x20no\x20larger\x20than\x2020\x20MB.','batchSize\x20must\x20be\x20between\x201\x20and\x201000.','rowCount','imageCells'];a140_0x58f6=function(){return _0x23ca35;};return a140_0x58f6();}import{SaxesParser}from'saxes';function a140_0x3f41(_0x30aa4b,_0x5ccb13){_0x30aa4b=_0x30aa4b-0x14b;const _0x58f6cd=a140_0x58f6();let _0x3f41c0=_0x58f6cd[_0x30aa4b];return _0x3f41c0;}import a140_0xddb607 from'exceljs';import a140_0x560438 from'yauzl';import{resolveWorksheetImages}from'./image-ooxml.js';import{validateImageBytes}from'./image-bytes.js';const MAX_FILE=0x14*0x400*0x400,MAX_EXPANDED=0x64*0x400*0x400,MAX_ROWS=0x186a0,MAX_COLUMNS=0x100,MAX_XML_ROWS=0x100000,MAX_XML_COLUMNS=0x4000,MAX_CELL=0x40*0x400,RESERVED=new Set(['id',a140_0x590d62(0x21f),'appCode',a140_0x590d62(0x171),a140_0x590d62(0x194),a140_0x590d62(0x166),a140_0x590d62(0x1a8),a140_0x590d62(0x186),a140_0x590d62(0x232),a140_0x590d62(0x197),a140_0x590d62(0x22f)]),TYPES=new Set([a140_0x590d62(0x1be),a140_0x590d62(0x235),a140_0x590d62(0x18f),'number','decimal',a140_0x590d62(0x1fa),a140_0x590d62(0x1cd),a140_0x590d62(0x1df),a140_0x590d62(0x20f),'image',a140_0x590d62(0x180)]),isImageContainer=_0x4568d9=>[a140_0x590d62(0x14e),a140_0x590d62(0x180)][a140_0x590d62(0x1bd)](_0x4568d9[a140_0x590d62(0x22d)]()),hash=_0x5ef3c8=>createHash(a140_0x590d62(0x23b))[a140_0x590d62(0x155)](_0x5ef3c8)['digest'](a140_0x590d62(0x21b)),require=createRequire(import.meta.url),DefinedNameXform=require(a140_0x590d62(0x1aa)),nameCoordinates=require(a140_0x590d62(0x217)),ABSOLUTE_NAME_RANGE=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,excelRequire=createRequire(require[a140_0x590d62(0x152)]('exceljs')),zipRequire=createRequire(excelRequire[a140_0x590d62(0x152)](a140_0x590d62(0x178))),ZipEntry=zipRequire(a140_0x590d62(0x1cf)),zipReader=zipRequire(a140_0x590d62(0x18c)),zipUtf8=zipRequire('./utf8'),zipPaths=zipRequire(a140_0x590d62(0x1fe));function centralDirectoryEnd(_0x13fa93,_0x1217f9){const _0xb6f9f0=a140_0x590d62,_0x5e2ec3=()=>new Error('Invalid\x20ZIP\x20central\x20directory\x20layout.'),_0x5be71f=_0x13fa93[_0xb6f9f0(0x1f3)](Buffer[_0xb6f9f0(0x1d0)]([0x50,0x4b,0x5,0x6]));if(_0x5be71f<0x0||_0x5be71f+0x16>_0x13fa93[_0xb6f9f0(0x1a3)]||_0x5be71f+0x16+_0x13fa93['readUInt16LE'](_0x5be71f+0x14)!==_0x13fa93[_0xb6f9f0(0x1a3)])throw _0x5e2ec3();let _0x2ce718=_0x13fa93['readUInt16LE'](_0x5be71f+0xa),_0x243092=_0x13fa93[_0xb6f9f0(0x176)](_0x5be71f+0xc),_0x49c881=_0x13fa93['readUInt32LE'](_0x5be71f+0x10),_0x27f5d9=_0x5be71f;const _0x22700b=_0x5be71f-0x14,_0x2ef42d=_0x22700b>=0x0&&_0x13fa93['readUInt32LE'](_0x22700b)===0x7064b50,_0xd99a1d=[0x4,0x6,0x8,0xa]['some'](_0x1eba5a=>_0x13fa93['readUInt16LE'](_0x5be71f+_0x1eba5a)===0xffff)||_0x243092===0xffffffff||_0x49c881===0xffffffff;if(_0x2ef42d!==_0xd99a1d)throw _0x5e2ec3();if(_0x2ef42d){if(_0x13fa93[_0xb6f9f0(0x1f3)](Buffer['from']([0x50,0x4b,0x6,0x7]))!==_0x22700b)throw _0x5e2ec3();const _0x1c0ccd=_0x21c00b=>{const _0x3e1280=_0xb6f9f0,_0x157d92=Number(_0x13fa93[_0x3e1280(0x20c)](_0x21c00b));if(!Number[_0x3e1280(0x20a)](_0x157d92))throw _0x5e2ec3();return _0x157d92;};_0x27f5d9=_0x1c0ccd(_0x22700b+0x8);if(_0x13fa93[_0xb6f9f0(0x176)](_0x22700b+0x4)!==0x0||_0x13fa93[_0xb6f9f0(0x176)](_0x22700b+0x10)!==0x1||_0x27f5d9>_0x22700b-0x38||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9)!==0x6064b50||_0x1c0ccd(_0x27f5d9+0x4)!==0x2c||_0x27f5d9+0x38!==_0x22700b||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9+0x10)!==0x0||_0x13fa93[_0xb6f9f0(0x176)](_0x27f5d9+0x14)!==0x0)throw _0x5e2ec3();_0x2ce718=_0x1c0ccd(_0x27f5d9+0x20),_0x243092=_0x1c0ccd(_0x27f5d9+0x28),_0x49c881=_0x1c0ccd(_0x27f5d9+0x30);if(_0x1c0ccd(_0x27f5d9+0x18)!==_0x2ce718)throw _0x5e2ec3();}else{if(_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x4)!==0x0||_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x6)!==0x0||_0x13fa93[_0xb6f9f0(0x228)](_0x5be71f+0x8)!==_0x2ce718)throw _0x5e2ec3();}const _0x2a0d6b=_0x1217f9[_0xb6f9f0(0x23a)];if(_0x49c881!==_0x2a0d6b||_0x2ce718!==_0x1217f9['entryCount']||_0x49c881+_0x243092!==_0x27f5d9)throw _0x5e2ec3();return _0x27f5d9;}function consumerEntryName(_0x14510e,_0x4d9f9c){const _0x23058c=a140_0x590d62;if(_0x4d9f9c[_0x23058c(0x1e8)][_0x23058c(0x206)](_0x151701=>_0x151701['id']===0x1)[_0x23058c(0x1a3)]>0x1)throw new Error(_0x23058c(0x1d2));const _0x1bafa3=_0x4d9f9c,_0x5e29df=_0x4d9f9c[_0x23058c(0x237)];if(!Buffer['isBuffer'](_0x1bafa3['fileNameRaw'])||!Buffer[_0x23058c(0x175)](_0x1bafa3[_0x23058c(0x1c4)])||!Buffer[_0x23058c(0x175)](_0x1bafa3['fileCommentRaw'])||!Number[_0x23058c(0x20a)](_0x5e29df)||_0x5e29df<0x0||_0x5e29df>_0x14510e[_0x23058c(0x1a3)]-0x1e||_0x14510e[_0x23058c(0x176)](_0x5e29df)!==0x4034b50)throw new Error(_0x23058c(0x1b4));const _0x3a1b27=_0x5e29df+0x1e+_0x14510e[_0x23058c(0x228)](_0x5e29df+0x1a),_0x4d80b9=_0x3a1b27+_0x14510e[_0x23058c(0x228)](_0x5e29df+0x1c)+_0x4d9f9c[_0x23058c(0x224)];if(!Number[_0x23058c(0x20a)](_0x4d80b9)||_0x4d80b9>_0x14510e[_0x23058c(0x1a3)])throw new Error(_0x23058c(0x1b4));if(_0x3a1b27>_0x14510e['length']||!_0x14510e[_0x23058c(0x187)](_0x5e29df+0x1e,_0x3a1b27)[_0x23058c(0x174)](_0x1bafa3[_0x23058c(0x154)]))throw new Error(_0x23058c(0x183));const _0x4c9218=new ZipEntry({},{'decodeFileName':zipUtf8['utf8decode']});_0x4c9218[_0x23058c(0x236)]=_0x4d9f9c[_0x23058c(0x1ab)],_0x4c9218[_0x23058c(0x1b7)]=_0x1bafa3[_0x23058c(0x154)],_0x4c9218[_0x23058c(0x20b)]=_0x1bafa3['fileCommentRaw'],_0x4c9218[_0x23058c(0x199)]=_0x1bafa3[_0x23058c(0x1c4)][_0x23058c(0x1a3)],_0x4c9218[_0x23058c(0x215)](zipReader(_0x1bafa3[_0x23058c(0x1c4)])),_0x4c9218[_0x23058c(0x21d)](),_0x4c9218[_0x23058c(0x1e7)]=_0x4d9f9c['versionMadeBy'],_0x4c9218[_0x23058c(0x170)]=_0x4d9f9c[_0x23058c(0x170)],_0x4c9218[_0x23058c(0x221)]();const _0x3e7c0a=_0x4c9218[_0x23058c(0x1b0)]||Boolean((_0x4c9218[_0x23058c(0x1b6)]??0x0)&0x4000),_0x58fb1e=zipPaths['resolve'](_0x4c9218['fileNameStr']),_0x347ec1=_0x58fb1e[_0x23058c(0x1ed)]('/')?_0x58fb1e['slice'](0x1):_0x58fb1e;return{'name':_0x347ec1,'original':_0x4c9218[_0x23058c(0x1dd)],'directory':_0x3e7c0a};}export function normalizeImportFields(_0x42ccfd){const _0x5afb0a=a140_0x590d62;if(!_0x42ccfd||(_0x42ccfd[_0x5afb0a(0x1f9)]??_0x42ccfd[_0x5afb0a(0x23c)]?.[_0x5afb0a(0x17f)])!=='METADATA')throw new Error(_0x5afb0a(0x168));const _0x5173ba=Array[_0x5afb0a(0x1f5)](_0x42ccfd['fields']),_0x2fff0b=_0x5173ba?_0x42ccfd[_0x5afb0a(0x1de)]:_0x42ccfd[_0x5afb0a(0x15b)];if(!Array[_0x5afb0a(0x1f5)](_0x2fff0b)||_0x2fff0b[_0x5afb0a(0x1a3)]===0x0)throw new Error(_0x5afb0a(0x185));const _0x14af31=[],_0x58d9de=new Set();for(const _0x38795a of _0x2fff0b){if(_0x38795a['deleted']===!![])continue;let _0x42f611=_0x38795a[_0x5afb0a(0x196)]??{};if(!_0x5173ba&&typeof _0x42f611==='string'){try{_0x42f611=JSON['parse'](_0x42f611);}catch{throw new Error(_0x5afb0a(0x1c3));}if(!_0x42f611||typeof _0x42f611!==_0x5afb0a(0x1cc)||Array[_0x5afb0a(0x1f5)](_0x42f611))throw new Error('Invalid\x20dataset\x20field\x20extension\x20metadata.');}const _0x372ae2=_0x5173ba?_0x38795a['name']:_0x38795a[_0x5afb0a(0x1f1)],_0x1caa53=_0x5173ba?_0x38795a['doType']:_0x38795a[_0x5afb0a(0x1a1)]??_0x38795a['dataType'];if(typeof _0x372ae2!=='string'||!_0x372ae2||typeof _0x1caa53!==_0x5afb0a(0x1be)||_0x58d9de[_0x5afb0a(0x1b2)](_0x372ae2))throw new Error(_0x5afb0a(0x210));if(_0x1caa53[_0x5afb0a(0x22d)]()===_0x5afb0a(0x182))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');_0x58d9de['add'](_0x372ae2);const _0xfc6364=_0x5173ba?_0x38795a:_0x42f611,_0x534363={'code':_0x372ae2,'type':_0x1caa53,'required':_0xfc6364[_0x5afb0a(0x1e9)]===!![]};if(RESERVED[_0x5afb0a(0x1b2)](_0x372ae2)||_0xfc6364[_0x5afb0a(0x160)]===!![]||_0xfc6364[_0x5afb0a(0x1fc)]===!![])_0x534363[_0x5afb0a(0x160)]=!![];_0x14af31['push'](_0x534363);}return _0x14af31;}async function checkArchive(_0x2fa43a,_0x1262fb){await new Promise((_0x41d73d,_0x369459)=>{const _0x4dbe85=a140_0x3f41;a140_0x560438[_0x4dbe85(0x151)](_0x2fa43a,{'lazyEntries':!![],'validateEntrySizes':!![]},(_0xddd7e0,_0x2046bd)=>{const _0xe7e39d=_0x4dbe85;if(_0xddd7e0||!_0x2046bd){_0x369459(_0xddd7e0??new Error(_0xe7e39d(0x1c9)));return;}let _0x58dcd8;try{_0x58dcd8=centralDirectoryEnd(_0x2fa43a,_0x2046bd);}catch(_0x19f6c4){_0x2046bd[_0xe7e39d(0x18a)](),_0x369459(_0x19f6c4);return;}let _0x2298d5=0x0,_0x101188=0x0,_0x18637f=0x0,_0x4ae3f2=0x0,_0x2d9d64=0x0,_0x3bbb78=0x0,_0x224d63=0x0,_0x1e6d3b=0x0,_0x311341=0x0,_0x39d084=![],_0x30d1d5;const _0x4db5f2=new Set(),_0x4eaa70=_0x16941f=>{const _0x14e14d=_0xe7e39d;if(_0x39d084)return;_0x39d084=!![],_0x30d1d5?.[_0x14e14d(0x1f4)](),_0x2046bd[_0x14e14d(0x18a)](),_0x369459(_0x16941f);},_0x411ead=(_0x5cc743,_0xf8d8eb)=>{const _0x1e690c=_0xe7e39d;if(!_0x5cc743||!/^\d+$/[_0x1e690c(0x1a0)](_0x5cc743))throw new Error(_0x1e690c(0x15f));const _0x4a4cbf=Number(_0x5cc743);if(!Number[_0x1e690c(0x20a)](_0x4a4cbf)||_0x4a4cbf<0x1||_0x4a4cbf>_0xf8d8eb)throw new Error('Worksheet\x20coordinate\x20exceeds\x20'+_0xf8d8eb+'.');return _0x4a4cbf;},_0x4e47d0=(_0x56ace1,_0x180625=MAX_XML_COLUMNS)=>{const _0x7cd95e=_0xe7e39d,_0x249c92=/^\$?([A-Z]{1,3})\$?(\d+)$/[_0x7cd95e(0x220)](_0x56ace1);if(!_0x249c92)throw new Error('Invalid\x20worksheet\x20cell\x20or\x20merge\x20reference.');let _0x3bf3a4=0x0;for(const _0x174ad5 of _0x249c92[0x1])_0x3bf3a4=_0x3bf3a4*0x1a+_0x174ad5[_0x7cd95e(0x161)](0x0)-0x40;if(_0x3bf3a4>_0x180625)throw new Error(_0x7cd95e(0x1da)+_0x180625+'\x20columns.');return{'row':_0x411ead(_0x249c92[0x2],MAX_XML_ROWS),'col':_0x3bf3a4};},_0x373333=_0x355720=>{const _0x35026c=_0xe7e39d;if(_0x355720[_0x35026c(0x1ec)]==='_xlnm.Print_Area'||_0x355720[_0x35026c(0x1ec)]===_0x35026c(0x1fb))return;for(const _0x317876 of _0x355720[_0x35026c(0x21c)]){if(!ABSOLUTE_NAME_RANGE['test'](_0x317876['split']('!')[_0x35026c(0x157)]()||''))continue;const _0x3b67d3=nameCoordinates[_0x35026c(0x1e0)](_0x317876),_0x459c71=_0x35026c(0x16a)in _0x3b67d3,_0x115618=_0x459c71?[_0x3b67d3[_0x35026c(0x16a)],_0x3b67d3[_0x35026c(0x216)]]:[_0x3b67d3[_0x35026c(0x163)]],_0x2f253f=_0x459c71?[_0x3b67d3[_0x35026c(0x226)],_0x3b67d3[_0x35026c(0x16d)]]:[_0x3b67d3[_0x35026c(0x1ac)]],_0x3437f6=(_0x48d8b9,_0x4aed01)=>Number[_0x35026c(0x20a)](_0x48d8b9)&&_0x48d8b9>=0x1&&_0x48d8b9<=_0x4aed01;if(!_0x115618['every'](_0x4c0b3c=>_0x3437f6(_0x4c0b3c,MAX_XML_ROWS))||!_0x2f253f[_0x35026c(0x1ea)](_0x4523c4=>_0x3437f6(_0x4523c4,MAX_XML_COLUMNS)))throw new Error(_0x35026c(0x239));_0x224d63+=_0x459c71?(_0x3b67d3[_0x35026c(0x216)]-_0x3b67d3[_0x35026c(0x16a)]+0x1)*(_0x3b67d3[_0x35026c(0x16d)]-_0x3b67d3[_0x35026c(0x226)]+0x1):0x1;if(_0x224d63>MAX_ROWS)throw new Error(_0x35026c(0x20d));}};_0x2046bd['on'](_0xe7e39d(0x1a2),_0x4eaa70),_0x2046bd['on'](_0xe7e39d(0x227),_0x215785=>{const _0x5d8e90=_0xe7e39d;if(_0x39d084)return;if(++_0x18637f>0x2710||(_0x2298d5+=_0x215785[_0x5d8e90(0x169)])>MAX_EXPANDED){_0x4eaa70(new Error(_0x5d8e90(0x1c7)));return;}let _0x5d8613;try{_0x5d8613=consumerEntryName(_0x2fa43a,_0x215785);}catch(_0x253248){_0x4eaa70(_0x253248);return;}if(_0x5d8613[_0x5d8e90(0x213)]){_0x2046bd[_0x5d8e90(0x17c)]();return;}const _0x158985=_0x5d8613[_0x5d8e90(0x1ec)];if(_0x1262fb&&(_0x158985!==_0x5d8613[_0x5d8e90(0x1d9)]||_0x4db5f2[_0x5d8e90(0x1b2)](_0x158985)||_0x158985[_0x5d8e90(0x1ed)]('/')||_0x158985[_0x5d8e90(0x1bd)]('\x5c'))){_0x4eaa70(new Error('Non-canonical\x20or\x20duplicate\x20image\x20archive\x20entry.'));return;}if(_0x158985!==_0x5d8613[_0x5d8e90(0x1d9)]&&(_0x158985===_0x5d8e90(0x19c)||/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5d8e90(0x1a0)](_0x158985))){_0x4eaa70(new Error(_0x5d8e90(0x19b)));return;}const _0x477343=_0x158985===_0x5d8e90(0x19c);if(_0x477343&&_0x4db5f2[_0x5d8e90(0x1b2)](_0x158985)){_0x4eaa70(new Error(_0x5d8e90(0x1c8)));return;}_0x4db5f2['add'](_0x158985);const _0x12cdde=/xl\/worksheets\/sheet(\d+)[.]xml/[_0x5d8e90(0x1a0)](_0x158985);if(_0x12cdde&&!/^xl\/worksheets\/sheet\d+[.]xml$/['test'](_0x158985)){_0x4eaa70(new Error(_0x5d8e90(0x156)));return;}_0x2046bd[_0x5d8e90(0x1a7)](_0x215785,(_0x59547a,_0x5be8c4)=>{const _0x21333e=_0x5d8e90;if(_0x39d084){_0x5be8c4?.[_0x21333e(0x1f4)]();return;}if(_0x59547a||!_0x5be8c4){_0x4eaa70(_0x59547a??new Error(_0x21333e(0x19f)));return;}_0x30d1d5=_0x5be8c4;const _0x2e18fe=_0x1262fb?[]:undefined,_0x443a4f=_0x1262fb&&/[.](xml|rels)$/[_0x21333e(0x1a0)](_0x158985)?new StringDecoder('utf8'):undefined,_0x7e628b=_0x443a4f?new SaxesParser({'xmlns':![]}):undefined,_0x30a457=()=>{const _0x49df7e=_0x21333e;if(++_0x311341>0x1e8480)throw Error(_0x49df7e(0x19a));};_0x7e628b?.['on'](_0x21333e(0x15e),()=>{throw Error('XML\x20DTD/entities\x20are\x20not\x20supported.');}),_0x7e628b?.['on'](_0x21333e(0x23d),()=>{_0x30a457();if(++_0x1e6d3b>0x7a120)throw Error('Image\x20XML\x20node\x20budget\x20exceeded.');}),_0x7e628b?.['on']('text',_0x30a457),_0x7e628b?.['on']('closetag',_0x30a457),_0x7e628b?.['on'](_0x21333e(0x1a2),_0x2474c0=>{throw _0x2474c0;});const _0x1541ff=_0x12cdde||_0x477343?new StringDecoder(_0x21333e(0x204)):undefined,_0x349142=_0x12cdde||_0x477343?new SaxesParser({'xmlns':![]}):undefined;let _0xbd7305,_0x4eeb27=0x0,_0x371819=0x0,_0x4ca3b1,_0x1df08b,_0x24f53c=![],_0xdc6c2f=![],_0x37cf45,_0x201ada,_0x45e4ba,_0x1d13af=![];const _0x2bab7b=[],_0x41236f=new Set();let _0x2d77a3;const _0x4ddd8f=(_0x436360,_0x2794cc=0x0)=>{const _0x504589=_0x21333e;_0x2d9d64+=_0x2794cc+Math['max'](0x0,_0x436360-_0x371819),_0x371819=Math[_0x504589(0x205)](_0x371819,_0x436360);if(_0x2d9d64>MAX_ROWS)throw new Error(_0x504589(0x1e4));};_0x349142?.['on']('opentag',_0x5b5a27=>{const _0x335b85=_0x21333e;if(_0x477343){if(!_0xbd7305&&_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x1f2))_0xbd7305=new DefinedNameXform();_0xbd7305?.['parseOpen'](_0x5b5a27);return;}if(_0x5b5a27[_0x335b85(0x1ec)]==='row'){if(_0xdc6c2f)throw new Error(_0x335b85(0x1b9));_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['r'],MAX_XML_ROWS),_0x4ca3b1=undefined,_0x45e4ba=undefined,_0x1d13af=![];}else{if(_0x5b5a27[_0x335b85(0x1ec)]==='c'){if(_0xdc6c2f)throw new Error('Invalid\x20worksheet\x20nested\x20cell.');_0xdc6c2f=!![],_0x24f53c=Boolean(Number['parseInt'](_0x5b5a27['attributes']['s']??'',0xa)),_0x2d77a3=undefined,_0x37cf45=_0x5b5a27['attributes']['r']||undefined,_0x201ada=_0x37cf45?_0x4e47d0(_0x37cf45):undefined;if(_0x201ada)_0x1df08b=_0x201ada;else _0x1df08b=_0x4ca3b1?{'row':_0x4ca3b1['row'],'col':_0x4ca3b1[_0x335b85(0x1ac)]+0x1}:undefined;}else{if(_0xdc6c2f&&['f','v','t'][_0x335b85(0x1bd)](_0x5b5a27[_0x335b85(0x1ec)])){_0x2d77a3=_0x5b5a27[_0x335b85(0x1ec)];if(_0x5b5a27[_0x335b85(0x1ec)]==='f'&&_0x5b5a27[_0x335b85(0x1d1)]['t'])_0x24f53c=!![];}else{if(_0xdc6c2f&&_0x5b5a27['name']==='r')_0x24f53c=!![];else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x18e)){const _0x529145=_0x5b5a27[_0x335b85(0x1d1)][_0x335b85(0x1b5)];if(!_0x529145)throw new Error(_0x335b85(0x192));const _0x39dca8=_0x529145[_0x335b85(0x1ee)](':');if(_0x39dca8[_0x335b85(0x1a3)]>0x2)throw new Error(_0x335b85(0x192));const _0x37ce4d=_0x4e47d0(_0x39dca8[0x0]),_0x5b0818=_0x4e47d0(_0x39dca8[0x1]??_0x39dca8[0x0]);_0x41236f[_0x335b85(0x17a)](_0x529145),_0x4ddd8f(Math[_0x335b85(0x205)](_0x37ce4d['col'],_0x5b0818[_0x335b85(0x1ac)]),0x1);}else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x1ac)){const _0x39a1c6=_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['min'],0x4000),_0x3a30ee=_0x411ead(_0x5b5a27[_0x335b85(0x1d1)]['max'],0x4000);if(_0x39a1c6>_0x3a30ee)throw new Error(_0x335b85(0x191));_0x4ddd8f(_0x3a30ee,0x1);}else{if(_0x5b5a27[_0x335b85(0x1ec)]===_0x335b85(0x223)){const _0x13e5f3=_0x5b5a27[_0x335b85(0x1d1)]['ref'];if(!_0x13e5f3)throw new Error(_0x335b85(0x1c2));const _0x1e976c=_0x13e5f3[_0x335b85(0x1ee)](':');if(_0x1e976c[_0x335b85(0x1a3)]>0x2)throw new Error(_0x335b85(0x1c2));const _0x3af94a=_0x4e47d0(_0x1e976c[0x0]),_0x508af1=_0x4e47d0(_0x1e976c[0x1]??_0x1e976c[0x0]);_0x4ddd8f(Math[_0x335b85(0x205)](_0x3af94a['col'],_0x508af1['col']));const _0x3f3106=(Math[_0x335b85(0x16e)](_0x508af1[_0x335b85(0x163)]-_0x3af94a[_0x335b85(0x163)])+0x1)*(Math[_0x335b85(0x16e)](_0x508af1['col']-_0x3af94a[_0x335b85(0x1ac)])+0x1);_0x4ae3f2+=_0x3f3106+_0x4eeb27++;if(_0x4ae3f2>MAX_ROWS)throw new Error(_0x335b85(0x172));}}}}}}}}),_0x349142?.['on'](_0x21333e(0x235),_0x32c63b=>{const _0x2088e7=_0x21333e;if(_0x477343){_0xbd7305?.[_0x2088e7(0x230)](_0x32c63b);return;}if(_0xdc6c2f&&_0x2d77a3&&_0x32c63b)_0x24f53c=!![];}),_0x349142?.['on']('closetag',_0x44867e=>{const _0x20a889=_0x21333e;if(_0x477343){_0xbd7305&&!_0xbd7305[_0x20a889(0x17b)]()&&(_0x373333(_0xbd7305[_0x20a889(0x1c0)]),_0xbd7305=undefined);return;}if(_0x44867e[_0x20a889(0x1ec)]==='c'){!_0x24f53c&&_0x37cf45&&!_0x45e4ba&&(_0x45e4ba={'before':_0x4ca3b1,'cells':[]});if(_0x45e4ba){if(++_0x3bbb78>0xf4240)throw new Error(_0x20a889(0x1d4));_0x45e4ba['cells'][_0x20a889(0x1f7)]({'reference':_0x37cf45,'address':_0x201ada,'materialized':_0x24f53c});if(!_0x37cf45&&_0x24f53c)_0x1d13af=!![];}if(_0x24f53c){if(!_0x45e4ba||_0x37cf45){if(!_0x1df08b)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x1df08b[_0x20a889(0x1ac)]>MAX_XML_COLUMNS)throw new Error(_0x20a889(0x17d));_0x4ddd8f(_0x1df08b[_0x20a889(0x1ac)]);}_0x4ca3b1=_0x1df08b;}_0xdc6c2f=![],_0x1df08b=undefined,_0x37cf45=undefined,_0x201ada=undefined,_0x2d77a3=undefined;}else{if(_0x44867e[_0x20a889(0x1ec)]==='row'){if(_0x45e4ba&&_0x1d13af)_0x2bab7b[_0x20a889(0x1f7)](_0x45e4ba);_0x45e4ba=undefined,_0x1d13af=![];}else{if(_0x44867e[_0x20a889(0x1ec)]===_0x2d77a3)_0x2d77a3=undefined;}}}),_0x349142?.['on'](_0x21333e(0x1a2),_0x11b3df=>{const _0x32f4d2=_0x21333e;throw new Error(_0x32f4d2(0x234)+_0x11b3df['message']);}),_0x5be8c4['on']('error',_0x4eaa70),_0x5be8c4['on'](_0x21333e(0x173),_0x40641a=>{const _0xbce525=_0x21333e;if(_0x39d084)return;_0x101188+=_0x40641a[_0xbce525(0x1a3)],_0x2e18fe?.[_0xbce525(0x1f7)](_0x40641a);if(_0x101188>MAX_EXPANDED){_0x4eaa70(new Error(_0xbce525(0x1c7)));return;}try{if(_0x7e628b&&_0x443a4f)_0x7e628b[_0xbce525(0x219)](_0x443a4f['write'](_0x40641a));if(_0x349142&&_0x1541ff)_0x349142['write'](_0x1541ff['write'](_0x40641a));}catch(_0x3442a2){_0x4eaa70(_0x3442a2 instanceof Error?_0x3442a2:new Error(_0xbce525(0x201)));}}),_0x5be8c4['on']('end',()=>{const _0x254891=_0x21333e;if(_0x39d084)return;try{if(_0x7e628b&&_0x443a4f)_0x7e628b[_0x254891(0x219)](_0x443a4f[_0x254891(0x195)]())[_0x254891(0x18a)]();if(_0x349142&&_0x1541ff)_0x349142[_0x254891(0x219)](_0x1541ff[_0x254891(0x195)]())[_0x254891(0x18a)]();for(const _0x35a1ec of _0x2bab7b){let _0x1986a0=_0x35a1ec[_0x254891(0x208)];for(const _0x3e4e5d of _0x35a1ec[_0x254891(0x222)]){if(!_0x3e4e5d[_0x254891(0x1ca)]&&!(_0x3e4e5d['reference']&&_0x41236f[_0x254891(0x1b2)](_0x3e4e5d[_0x254891(0x14d)])))continue;const _0x130fcb=_0x3e4e5d[_0x254891(0x1d8)]??(_0x1986a0?{'row':_0x1986a0[_0x254891(0x163)],'col':_0x1986a0[_0x254891(0x1ac)]+0x1}:undefined);if(!_0x130fcb)throw new Error('Invalid\x20worksheet\x20cell\x20without\x20an\x20initial\x20reference.');if(_0x130fcb[_0x254891(0x1ac)]>MAX_XML_COLUMNS)throw new Error('Worksheet\x20exceeds\x2016384\x20columns.');_0x4ddd8f(_0x130fcb['col']),_0x1986a0=_0x130fcb;}}_0x2bab7b[_0x254891(0x1a3)]=0x0,_0x41236f[_0x254891(0x1e3)]();}catch(_0x3c9bde){_0x4eaa70(_0x3c9bde instanceof Error?_0x3c9bde:new Error(_0x254891(0x201)));return;}if(_0x2e18fe)_0x1262fb[_0x254891(0x1eb)](_0x158985,Buffer[_0x254891(0x158)](_0x2e18fe));_0x30d1d5=undefined,_0x2046bd[_0x254891(0x17c)]();});});}),_0x2046bd['on'](_0xe7e39d(0x195),()=>{const _0x58c6ad=_0xe7e39d;if(_0x39d084)return;if(_0x2046bd[_0x58c6ad(0x23a)]!==_0x58dcd8){_0x369459(new Error('ZIP\x20central\x20directory\x20entry\x20count\x20does\x20not\x20match\x20its\x20contents.'));return;}if(!_0x4db5f2[_0x58c6ad(0x1b2)](_0x58c6ad(0x21e))||!_0x4db5f2[_0x58c6ad(0x1b2)](_0x58c6ad(0x19c)))_0x369459(new Error(_0x58c6ad(0x14f)));else _0x41d73d();}),_0x2046bd[_0xe7e39d(0x17c)]();});});}function valueOf(_0x4330a4){const _0x3cbd22=a140_0x590d62,_0x5a97ba=_0x4330a4[_0x3cbd22(0x1d3)];if(_0x5a97ba&&typeof _0x5a97ba===_0x3cbd22(0x1cc)&&(_0x3cbd22(0x184)in _0x5a97ba||_0x3cbd22(0x177)in _0x5a97ba)){if(!(_0x3cbd22(0x22c)in _0x5a97ba)||_0x5a97ba['result']===undefined)throw new Error(_0x3cbd22(0x225));return _0x5a97ba[_0x3cbd22(0x22c)];}return _0x5a97ba;}function convert(_0x3fec8d,_0x35112a){const _0x107418=a140_0x590d62;if(_0x3fec8d===null||_0x3fec8d===undefined||_0x3fec8d===''){if(_0x35112a['required']&&!_0x35112a[_0x107418(0x160)])throw new Error(_0x107418(0x188));return null;}if(typeof _0x3fec8d===_0x107418(0x1be)&&Buffer[_0x107418(0x233)](_0x3fec8d,'utf8')>MAX_CELL)throw new Error(_0x107418(0x1c1));switch(_0x35112a[_0x107418(0x1a1)][_0x107418(0x22d)]()){case'string':case _0x107418(0x235):case _0x107418(0x18f):if(typeof _0x3fec8d!==_0x107418(0x1be))throw new Error(_0x107418(0x1e6));return _0x3fec8d;case _0x107418(0x165):case'decimal':case _0x107418(0x1fa):if(typeof _0x3fec8d!=='number'||!Number[_0x107418(0x229)](_0x3fec8d)||Math[_0x107418(0x16e)](_0x3fec8d)>Number['MAX_SAFE_INTEGER']||_0x35112a[_0x107418(0x1a1)][_0x107418(0x22d)]()===_0x107418(0x1fa)&&!Number[_0x107418(0x1e1)](_0x3fec8d))throw new Error('Expected\x20a\x20finite\x20safe\x20numeric\x20cell.');return _0x3fec8d;case _0x107418(0x1cd):if(typeof _0x3fec8d!==_0x107418(0x1cd))throw new Error(_0x107418(0x198));return _0x3fec8d;case _0x107418(0x1df):case'datetime':if(!(_0x3fec8d instanceof Date)||!Number[_0x107418(0x229)](_0x3fec8d[_0x107418(0x1ba)]()))throw new Error(_0x107418(0x1af));return _0x3fec8d[_0x107418(0x1ba)]();default:throw new Error(_0x107418(0x1e2)+_0x35112a[_0x107418(0x1a1)]+'.');}}export async function buildExcelManifest(_0x52955a){const _0x399465=a140_0x590d62,_0x2ff8f2=_0x52955a['headerRow']??0x1;if(!Number['isInteger'](_0x2ff8f2)||_0x2ff8f2<0x1||_0x2ff8f2>MAX_ROWS)throw new Error(_0x399465(0x23e));if(_0x52955a[_0x399465(0x1e5)]!==undefined&&(!Number['isInteger'](_0x52955a[_0x399465(0x1e5)])||_0x52955a[_0x399465(0x1e5)]<0x1||_0x52955a[_0x399465(0x1e5)]>0x3e8))throw new Error(_0x399465(0x240));if(a140_0x11e7ee[_0x399465(0x162)](_0x52955a[_0x399465(0x21a)])[_0x399465(0x22d)]()!==_0x399465(0x200))throw new Error(_0x399465(0x218));const _0x5707cf=await stat(_0x52955a[_0x399465(0x21a)]);if(!_0x5707cf[_0x399465(0x1b3)]()||_0x5707cf[_0x399465(0x1f8)]>MAX_FILE)throw new Error(_0x399465(0x23f));const _0x4b1bb8=await readFile(_0x52955a[_0x399465(0x21a)]);if(_0x4b1bb8[_0x399465(0x1a3)]>MAX_FILE)throw new Error('XLSX\x20file\x20exceeds\x2020\x20MB.');const _0x3ebe14=_0x52955a[_0x399465(0x1de)][_0x399465(0x16b)](_0x4e5290=>isImageContainer(_0x4e5290[_0x399465(0x1a1)])&&Object[_0x399465(0x212)](_0x52955a[_0x399465(0x1b1)])[_0x399465(0x1bd)](_0x4e5290[_0x399465(0x1f1)]))?new Map():undefined;await checkArchive(_0x4b1bb8,_0x3ebe14);const _0x5a6a93=new a140_0xddb607['Workbook']();await _0x5a6a93[_0x399465(0x1ae)][_0x399465(0x193)](_0x4b1bb8,{'ignoreNodes':[_0x399465(0x164)]});const _0x2a1b24=_0x52955a[_0x399465(0x1c6)];let _0x2244e9;if(_0x2a1b24===undefined)_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][0x0];else{if(typeof _0x2a1b24==='string'&&_0x5a6a93[_0x399465(0x1b8)]['some'](_0x197062=>_0x197062[_0x399465(0x1ec)]===_0x2a1b24))_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][_0x399465(0x207)](_0x4f5e28=>_0x4f5e28[_0x399465(0x1ec)]===_0x2a1b24);else{if(typeof _0x2a1b24===_0x399465(0x165)||/^\d+$/[_0x399465(0x1a0)](_0x2a1b24)){const _0x5a1467=Number(_0x2a1b24);if(!Number[_0x399465(0x1e1)](_0x5a1467)||_0x5a1467<0x1)throw new Error(_0x399465(0x214));_0x2244e9=_0x5a6a93[_0x399465(0x1b8)][_0x5a1467-0x1];}else _0x2244e9=_0x5a6a93[_0x399465(0x1b8)]['find'](_0x406449=>_0x406449['name']===_0x2a1b24);}}if(!_0x2244e9)throw new Error('Requested\x20worksheet\x20does\x20not\x20exist.');if(_0x2244e9[_0x399465(0x14b)]>MAX_ROWS||_0x2244e9['columnCount']>MAX_COLUMNS)throw new Error(_0x399465(0x190));if((_0x2244e9[_0x399465(0x1c0)][_0x399465(0x1a5)]??[])['length'])throw new Error(_0x399465(0x1d5));const _0x46efd2=new Map();_0x2244e9[_0x399465(0x1ff)](_0x2ff8f2)[_0x399465(0x1fd)]((_0x1ffbb8,_0x4f46e5)=>{const _0x1f5e41=_0x399465,_0x3db506=valueOf(_0x1ffbb8);if(typeof _0x3db506!==_0x1f5e41(0x1be)||!_0x3db506['trim']()||Buffer[_0x1f5e41(0x233)](_0x3db506)>MAX_CELL)throw new Error(_0x1f5e41(0x159));if(_0x46efd2[_0x1f5e41(0x1b2)](_0x3db506))throw new Error(_0x1f5e41(0x19d)+_0x3db506+'.');_0x46efd2[_0x1f5e41(0x1eb)](_0x3db506,_0x4f46e5);});const _0x1c73d5=Object[_0x399465(0x1f0)](_0x52955a[_0x399465(0x1b1)]);if(!_0x1c73d5['length'])throw new Error(_0x399465(0x1dc));const _0x571d30=new Map(_0x52955a[_0x399465(0x1de)][_0x399465(0x211)](_0x284379=>[_0x284379[_0x399465(0x1f1)],_0x284379]));if(_0x571d30[_0x399465(0x1f8)]!==_0x52955a[_0x399465(0x1de)][_0x399465(0x1a3)])throw new Error('Duplicate\x20dataset\x20field\x20codes.');if(_0x52955a[_0x399465(0x1de)][_0x399465(0x16b)](_0x1e2934=>_0x1e2934[_0x399465(0x1a1)][_0x399465(0x22d)]()===_0x399465(0x182)))throw new Error('Unsupported\x20dataset\x20field\x20type:\x20serial_number.');const _0x391ae6=new Set();for(const [_0x2764d0,_0x307411]of _0x1c73d5){const _0x214d3f=_0x571d30[_0x399465(0x209)](_0x307411);if(!_0x46efd2[_0x399465(0x1b2)](_0x2764d0))throw new Error(_0x399465(0x15c)+_0x2764d0+'.');if(!_0x214d3f||RESERVED['has'](_0x307411)||_0x214d3f[_0x399465(0x160)])throw new Error('Unknown\x20or\x20generated\x20mapping\x20field:\x20'+_0x307411+'.');if(_0x391ae6['has'](_0x307411))throw new Error(_0x399465(0x1db)+_0x307411+'.');if(!TYPES[_0x399465(0x1b2)](_0x214d3f[_0x399465(0x1a1)][_0x399465(0x22d)]()))throw new Error('Unsupported\x20field\x20type:\x20'+_0x214d3f[_0x399465(0x1a1)]+'.');_0x391ae6[_0x399465(0x17a)](_0x307411);}for(const _0x1be87a of _0x52955a[_0x399465(0x1de)]){if(_0x1be87a['required']&&!_0x1be87a['generated']&&!RESERVED[_0x399465(0x1b2)](_0x1be87a[_0x399465(0x1f1)])&&!_0x391ae6['has'](_0x1be87a[_0x399465(0x1f1)]))throw new Error(_0x399465(0x1bf)+_0x1be87a[_0x399465(0x1f1)]+'.');}const _0x366526={'fileHash':hash(_0x4b1bb8),'mappingHash':hash(JSON['stringify']([..._0x1c73d5][_0x399465(0x203)](([_0x2a1eae],[_0x5d3713])=>_0x2a1eae[_0x399465(0x22a)](_0x5d3713)))),'schemaHash':hash(JSON[_0x399465(0x181)]([..._0x52955a['fields']][_0x399465(0x203)]((_0x4f31fa,_0xb0ddb4)=>_0x4f31fa[_0x399465(0x1f1)][_0x399465(0x22a)](_0xb0ddb4[_0x399465(0x1f1)])))),'sheet':_0x2244e9[_0x399465(0x1ec)],'rows':[],'emptyRows':[],'errors':[],'warnings':[]},_0x52b599=_0x1c73d5[_0x399465(0x206)](([,_0x4aa861])=>isImageContainer(_0x571d30['get'](_0x4aa861)['type'])),_0x21052d=_0x52b599[_0x399465(0x206)](([,_0x3edec5])=>_0x571d30[_0x399465(0x209)](_0x3edec5)[_0x399465(0x1a1)]['toLowerCase']()===_0x399465(0x180))[_0x399465(0x211)](([,_0x3c7fb3])=>_0x3c7fb3);if(_0x21052d[_0x399465(0x1a3)])_0x366526[_0x399465(0x1bc)]=_0x21052d;const _0x444888=_0x3ebe14?resolveWorksheetImages(_0x3ebe14,_0x2244e9['name'],new Set(_0x52b599[_0x399465(0x211)](([_0x5e6b59])=>_0x46efd2[_0x399465(0x209)](_0x5e6b59)))):[],_0x4c8efa=new Map();for(const _0x49249e of _0x444888){const _0x285e7e=_0x49249e[_0x399465(0x163)]+':'+_0x49249e[_0x399465(0x1ac)],_0x520576=_0x4c8efa[_0x399465(0x209)](_0x285e7e)??[];_0x520576[_0x399465(0x1f7)](_0x49249e),_0x4c8efa[_0x399465(0x1eb)](_0x285e7e,_0x520576);}const _0x470725=new Map();let _0x11e780=0x0;_0x52b599['length']&&(_0x366526['imageFields']=_0x52b599[_0x399465(0x211)](([,_0x56c607])=>_0x56c607),_0x366526[_0x399465(0x14c)]=[],_0x366526[_0x399465(0x189)]=0x1,_0x366526[_0x399465(0x17e)]=[]);const _0x33a4cd=Math[_0x399465(0x205)](0x0,..._0x444888[_0x399465(0x211)](_0x24dafd=>_0x24dafd['row']));let _0x40a001=0x0;const _0x4dbeef=new Set(_0x1c73d5[_0x399465(0x211)](([_0x35d35e])=>_0x46efd2[_0x399465(0x209)](_0x35d35e)));for(let _0x3bb9d6=_0x2ff8f2+0x1;_0x3bb9d6<=Math['max'](_0x2244e9['rowCount'],_0x33a4cd);_0x3bb9d6++){const _0x56d6d4=_0x2244e9['getRow'](_0x3bb9d6);if(_0x56d6d4[_0x399465(0x1d6)]||_0x444888[_0x399465(0x16b)](_0x2a5950=>_0x2a5950[_0x399465(0x163)]===_0x3bb9d6&&_0x2a5950[_0x399465(0x202)]))_0x40a001++;let _0x3beb3e=_0x444888[_0x399465(0x16b)](_0x28727d=>_0x28727d['row']===_0x3bb9d6);_0x56d6d4[_0x399465(0x1fd)](_0x301658=>{const _0x34cbb0=_0x399465;if(_0x301658['value']!==null&&_0x301658[_0x34cbb0(0x1d3)]!==undefined&&_0x301658[_0x34cbb0(0x1d3)]!=='')_0x3beb3e=!![];});if(!_0x3beb3e){_0x366526[_0x399465(0x18b)][_0x399465(0x1f7)](_0x3bb9d6);continue;}const _0x8c413a=Object['create'](null);_0x56d6d4['eachCell']((_0x311dfb,_0x1eb6e3)=>{const _0x2d98ab=_0x399465;if(_0x4dbeef[_0x2d98ab(0x1b2)](_0x1eb6e3))return;try{const _0x25c127=valueOf(_0x311dfb);if(typeof _0x25c127===_0x2d98ab(0x1be)&&Buffer[_0x2d98ab(0x233)](_0x25c127,_0x2d98ab(0x204))>MAX_CELL)throw new Error(_0x2d98ab(0x1c1));}catch(_0x5077e5){_0x366526['errors'][_0x2d98ab(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x311dfb['address'],'message':_0x5077e5[_0x2d98ab(0x15a)]});}});for(const [_0x175150,_0x463830]of _0x1c73d5){try{const _0x5a61dd=_0x56d6d4[_0x399465(0x1a9)](_0x46efd2['get'](_0x175150)),_0x2baa2d=_0x571d30['get'](_0x463830);if(!isImageContainer(_0x2baa2d[_0x399465(0x1a1)])){_0x8c413a[_0x463830]=convert(valueOf(_0x5a61dd),_0x2baa2d);continue;}const _0x2540b0=_0x4c8efa['get'](_0x3bb9d6+':'+_0x46efd2['get'](_0x175150))??[];if(_0x2540b0['some'](_0x5a27ce=>_0x5a27ce[_0x399465(0x1a2)]))throw Error(_0x2540b0[_0x399465(0x207)](_0x44622f=>_0x44622f[_0x399465(0x1a2)])[_0x399465(0x1a2)]);if(_0x5a61dd['value']!=null&&_0x5a61dd[_0x399465(0x1d3)]!==''&&!_0x2540b0[_0x399465(0x16b)](_0x570a1b=>_0x570a1b[_0x399465(0x20e)]))throw Error(_0x399465(0x153));const _0x3c2c4f=[];for(const _0x2cbcaf of _0x2540b0)for(const _0x535a08 of _0x2cbcaf[_0x399465(0x17e)]){const _0x3dae58=_0x3ebe14[_0x399465(0x209)](_0x535a08);if(!_0x3dae58)throw Error('Missing\x20image\x20media:\x20'+_0x535a08+'.');const _0x3ce488=hash(_0x3dae58),_0x2bbc77=_0x470725[_0x399465(0x209)](_0x3ce488)??validateImageBytes(_0x3dae58);if(!_0x470725[_0x399465(0x1b2)](_0x2bbc77[_0x399465(0x1cb)])){_0x11e780+=_0x2bbc77['size'];if(_0x11e780>0x32*0x400*0x400)throw Error('Unique\x20image\x20bytes\x20exceed\x2050\x20MB.');_0x470725['set'](_0x2bbc77[_0x399465(0x1cb)],_0x2bbc77);}_0x3c2c4f[_0x399465(0x1f7)](_0x2bbc77[_0x399465(0x1cb)]);}if(!_0x3c2c4f[_0x399465(0x1a3)]&&_0x2baa2d[_0x399465(0x1e9)])throw Error(_0x399465(0x18d));if(_0x3c2c4f[_0x399465(0x1a3)])_0x366526[_0x399465(0x14c)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x463830,'hashes':_0x3c2c4f});_0x8c413a[_0x463830]=_0x3c2c4f['map'](_0x5a186d=>{const _0x26c603=_0x399465,_0x3aa4c8=_0x470725['get'](_0x5a186d),_0x58aca0=_0x3aa4c8['type']===_0x26c603(0x22e)?_0x26c603(0x231):_0x3aa4c8[_0x26c603(0x1a1)]['slice'](0x6),_0x5a46b7=_0x5a186d+'.'+_0x58aca0,_0x37471e=_0x26c603(0x1bb)+'0'[_0x26c603(0x1d7)](0x40)+'/'+_0x5a46b7;return _0x2baa2d[_0x26c603(0x1a1)][_0x26c603(0x22d)]()===_0x26c603(0x180)?{'fileName':_0x5a46b7,'filePath':_0x37471e}:{'key':_0x37471e,'name':_0x5a46b7,'type':_0x3aa4c8['type'],'size':_0x3aa4c8[_0x26c603(0x1f8)]};});}catch(_0x235014){_0x366526[_0x399465(0x179)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'field':_0x463830,'message':_0x235014[_0x399465(0x15a)]});}}_0x366526[_0x399465(0x1a6)][_0x399465(0x1f7)]({'rowNumber':_0x3bb9d6,'values':_0x8c413a});}if(_0x366526[_0x399465(0x17e)])_0x366526[_0x399465(0x17e)]=[..._0x470725[_0x399465(0x212)]()];if(_0x40a001)_0x366526[_0x399465(0x22b)]['push'](_0x40a001+_0x399465(0x16c));return _0x366526;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe37c73,_0xd2fc5f){const _0x54b2fc=a141_0x3e21,_0xa69015=_0xe37c73();while(!![]){try{const _0x138945=-parseInt(_0x54b2fc(0x1dc))/0x1+-parseInt(_0x54b2fc(0x1fb))/0x2+-parseInt(_0x54b2fc(0x1c2))/0x3*(parseInt(_0x54b2fc(0x1c1))/0x4)+-parseInt(_0x54b2fc(0x1c3))/0x5*(-parseInt(_0x54b2fc(0x1fa))/0x6)+-parseInt(_0x54b2fc(0x1e2))/0x7*(parseInt(_0x54b2fc(0x1d1))/0x8)+parseInt(_0x54b2fc(0x1c8))/0x9+parseInt(_0x54b2fc(0x1ec))/0xa;if(_0x138945===_0xd2fc5f)break;else _0xa69015['push'](_0xa69015['shift']());}catch(_0x9f53a8){_0xa69015['push'](_0xa69015['shift']());}}}(a141_0x11ba,0xa5891));function a141_0x11ba(){const _0x1d2dd2=['440529VnDmMZ','62185SMpjjm','ceil','subarray','length','Invalid\x20PNG\x20color/depth/interlace.','6443181NkVDcU','read','digest','toString','message','GIF87a','Truncated\x20GIF.','image/png','update','2152plKRYO','omggif','decode','IHDR','pngjs','decodeAndBlitFrameRGBA','jpeg-js','Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.','height','hex','IDAT','568655TnAICm','GIF89a','image/gif','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','Truncated\x20GIF\x20data.','77klyFkL','max','ascii','Invalid\x20GIF\x20trailer.','equals','Invalid\x20PNG\x20end.','Invalid\x20GIF\x20LZW\x20code\x20size.','readUInt16LE','Animated\x20PNG\x20is\x20not\x20supported.','push','12626050NwmDvI','width','Invalid\x20PNG\x20header.','frameInfo','from','isSafeInteger','Truncated\x20JPEG.','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','includes','Invalid\x20image:\x20','Invalid\x20PNG\x20decoded\x20scanline\x20size.','concat','readUInt32BE','Truncated\x20PNG\x20chunk.','222CEMRUf','2084386kUWNzm','GIF\x20frame\x20exceeds\x20canvas.','Missing\x20GIF\x20trailer.','Invalid\x20GIF\x20block.','numFrames','4FOFuSR'];a141_0x11ba=function(){return _0x1d2dd2;};return a141_0x11ba();}import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x3e21(_0x159e7c,_0x4b8ecf){_0x159e7c=_0x159e7c-0x1be;const _0x11ba68=a141_0x11ba();let _0x3e2124=_0x11ba68[_0x159e7c];return _0x3e2124;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function dimensions(_0x13ce52,_0x205d18){const _0x1b247d=a141_0x3e21;if(!Number[_0x1b247d(0x1f1)](_0x13ce52)||!Number[_0x1b247d(0x1f1)](_0x205d18)||_0x13ce52<0x1||_0x205d18<0x1||_0x13ce52*_0x205d18>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0xb3a494){const _0x4af36a=a141_0x3e21;let _0x495beb=0xd,_0x5001dd=0x0,_0x2d727d=0x0;const _0x2dd62a=_0xb3a494[_0x4af36a(0x1e9)](0x6),_0x53df12=_0xb3a494[_0x4af36a(0x1e9)](0x8),_0x4f6a2e=_0xb3a494[0xa]&0x80?0x1<<(_0xb3a494[0xa]&0x7)+0x1:0x0,_0x3957c9=_0x4be002=>{const _0x58e884=_0x4af36a;if(_0x495beb+_0x4be002>_0xb3a494['length'])throw Error(_0x58e884(0x1e1));};_0x495beb+=_0x4f6a2e*0x3,_0x3957c9(0x0);const _0x1b1cb0=()=>{const _0x37e0f9=_0x4af36a,_0x921ed=[];while(!![]){_0x3957c9(0x1);const _0x46bf99=_0xb3a494[_0x495beb++];if(!_0x46bf99)break;_0x3957c9(_0x46bf99),_0x921ed[_0x37e0f9(0x1eb)](_0xb3a494[_0x37e0f9(0x1c5)](_0x495beb,_0x495beb+_0x46bf99)),_0x495beb+=_0x46bf99;}return Buffer[_0x37e0f9(0x1f7)](_0x921ed);};while(_0x495beb<_0xb3a494[_0x4af36a(0x1c6)]){const _0x3977fe=_0xb3a494[_0x495beb++];if(_0x3977fe===0x3b){if(!_0x5001dd||_0x495beb!==_0xb3a494[_0x4af36a(0x1c6)])throw Error(_0x4af36a(0x1e5));return;}if(_0x3977fe===0x21){_0x3957c9(0x1),_0x495beb++,_0x1b1cb0();continue;}if(_0x3977fe!==0x2c)throw Error(_0x4af36a(0x1bf));_0x3957c9(0x9);const _0x33f276=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb),_0xff2b0=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x2),_0x56eb2e=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x4),_0x51a225=_0xb3a494[_0x4af36a(0x1e9)](_0x495beb+0x6),_0x35cd12=_0xb3a494[_0x495beb+0x8];_0x495beb+=0x9,dimensions(_0x56eb2e,_0x51a225);if(_0x33f276+_0x56eb2e>_0x2dd62a||_0xff2b0+_0x51a225>_0x53df12||++_0x5001dd>0x2710||(_0x2d727d+=_0x2dd62a*_0x53df12)>MAX_PIXELS)throw Error(_0x4af36a(0x1f3));const _0x8dd74f=_0x35cd12&0x80?0x1<<(_0x35cd12&0x7)+0x1:_0x4f6a2e;if(!_0x8dd74f)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x35cd12&0x80&&(_0x3957c9(_0x8dd74f*0x3),_0x495beb+=_0x8dd74f*0x3);_0x3957c9(0x1);const _0x109d02=_0xb3a494[_0x495beb++];if(_0x109d02<0x2||_0x109d02>0x8)throw Error(_0x4af36a(0x1e8));const _0x51f442=_0x1b1cb0(),_0x5e614f=0x1<<_0x109d02,_0xed98e1=_0x5e614f+0x1;let _0x54b556=_0x109d02+0x1,_0x265057=_0xed98e1+0x1,_0x36e0ef=0x0,_0x285ab1=-0x1,_0x8a7d3d=0x0,_0x17524c=![];const _0x19184c=new Uint32Array(0x1000),_0x262ca6=new Uint16Array(0x1000);for(let _0x34cd7f=0x0;_0x34cd7f<_0x5e614f;_0x34cd7f++){_0x19184c[_0x34cd7f]=0x1,_0x262ca6[_0x34cd7f]=_0x34cd7f;}while(_0x36e0ef+_0x54b556<=_0x51f442[_0x4af36a(0x1c6)]*0x8){let _0x3ffe0f=0x0;for(let _0x584a37=0x0;_0x584a37<_0x54b556;_0x584a37++,_0x36e0ef++)_0x3ffe0f|=(_0x51f442[_0x36e0ef>>0x3]>>(_0x36e0ef&0x7)&0x1)<<_0x584a37;if(_0x3ffe0f===_0x5e614f){_0x54b556=_0x109d02+0x1,_0x265057=_0xed98e1+0x1,_0x285ab1=-0x1;continue;}if(_0x3ffe0f===_0xed98e1){_0x17524c=!![];break;}if(_0x3ffe0f>_0x265057||_0x3ffe0f===_0x265057&&_0x285ab1<0x0||_0x285ab1<0x0&&_0x3ffe0f>=_0x5e614f)throw Error(_0x4af36a(0x1df));const _0x537c1f=_0x3ffe0f===_0x265057?_0x19184c[_0x285ab1]+0x1:_0x19184c[_0x3ffe0f],_0x1b2f6c=_0x3ffe0f===_0x265057?_0x262ca6[_0x285ab1]:_0x262ca6[_0x3ffe0f];if(!_0x537c1f||_0x1b2f6c>=_0x8dd74f||(_0x8a7d3d+=_0x537c1f)>_0x56eb2e*_0x51a225)throw Error('Invalid\x20GIF\x20LZW\x20pixel\x20data.');if(_0x285ab1>=0x0&&_0x265057<0x1000){_0x19184c[_0x265057]=_0x19184c[_0x285ab1]+0x1,_0x262ca6[_0x265057]=Math[_0x4af36a(0x1e3)](_0x262ca6[_0x285ab1],_0x1b2f6c),_0x265057++;if(_0x265057===0x1<<_0x54b556&&_0x54b556<0xc)_0x54b556++;}_0x285ab1=_0x3ffe0f;}if(!_0x17524c||_0x8a7d3d!==_0x56eb2e*_0x51a225)throw Error('Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.');}throw Error(_0x4af36a(0x1be));}export function validateImageBytes(_0x1fde8f){const _0x574d6b=a141_0x3e21;if(!_0x1fde8f['length']||_0x1fde8f[_0x574d6b(0x1c6)]>0xa*0x400*0x400)throw Error(_0x574d6b(0x1e0));let _0x2b78aa;try{if(_0x1fde8f[_0x574d6b(0x1c5)](0x0,0x8)[_0x574d6b(0x1e6)](Buffer[_0x574d6b(0x1f0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x1fde8f[_0x574d6b(0x1c6)]<0x21||_0x1fde8f[_0x574d6b(0x1cb)](_0x574d6b(0x1e4),0xc,0x10)!==_0x574d6b(0x1d4))throw Error(_0x574d6b(0x1ee));dimensions(_0x1fde8f[_0x574d6b(0x1f8)](0x10),_0x1fde8f[_0x574d6b(0x1f8)](0x14));const _0x1d7c5a=_0x1fde8f['readUInt32BE'](0x10),_0x40d4f3=_0x1fde8f['readUInt32BE'](0x14),_0x54e24b=_0x1fde8f[0x18],_0x420c75=_0x1fde8f[0x19],_0x956695=_0x1fde8f[0x1c],_0x4d74bb={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x420c75];if(!_0x4d74bb||![0x1,0x2,0x4,0x8,0x10][_0x574d6b(0x1f4)](_0x54e24b)||_0x956695>0x1)throw Error(_0x574d6b(0x1c7));const _0x51e133=_0x1414dc=>Math[_0x574d6b(0x1c4)](_0x1414dc*_0x4d74bb*_0x54e24b/0x8)+0x1;let _0x58c8c9=_0x51e133(_0x1d7c5a)*_0x40d4f3;if(_0x956695){_0x58c8c9=0x0;for(const [_0x3faff3,_0x3b0ac7,_0x4c16f2,_0x108f3b]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 _0x71b2ab=Math['max'](0x0,Math['ceil']((_0x1d7c5a-_0x3faff3)/_0x4c16f2)),_0x2c4eea=Math[_0x574d6b(0x1e3)](0x0,Math[_0x574d6b(0x1c4)]((_0x40d4f3-_0x3b0ac7)/_0x108f3b));if(_0x71b2ab&&_0x2c4eea)_0x58c8c9+=_0x51e133(_0x71b2ab)*_0x2c4eea;}}let _0x53b71e=0x8,_0x710179=![];const _0x5bdb7e=[];while(_0x53b71e<_0x1fde8f[_0x574d6b(0x1c6)]){if(_0x53b71e+0xc>_0x1fde8f[_0x574d6b(0x1c6)])throw Error(_0x574d6b(0x1f9));const _0x16858a=_0x1fde8f[_0x574d6b(0x1f8)](_0x53b71e),_0x256fa3=_0x1fde8f[_0x574d6b(0x1cb)](_0x574d6b(0x1e4),_0x53b71e+0x4,_0x53b71e+0x8);if(_0x256fa3==='acTL')throw Error(_0x574d6b(0x1ea));if(_0x53b71e+_0x16858a+0xc>_0x1fde8f['length'])throw Error('Truncated\x20PNG\x20data.');if(_0x256fa3===_0x574d6b(0x1db))_0x5bdb7e[_0x574d6b(0x1eb)](_0x1fde8f[_0x574d6b(0x1c5)](_0x53b71e+0x8,_0x53b71e+0x8+_0x16858a));_0x53b71e+=_0x16858a+0xc;if(_0x256fa3==='IEND'){if(_0x16858a||_0x53b71e!==_0x1fde8f[_0x574d6b(0x1c6)])throw Error(_0x574d6b(0x1e7));_0x710179=!![];break;}}if(!_0x710179||!_0x5bdb7e[_0x574d6b(0x1c6)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0x574d6b(0x1f7)](_0x5bdb7e),{'maxOutputLength':_0x58c8c9+0x1})[_0x574d6b(0x1c6)]!==_0x58c8c9)throw Error(_0x574d6b(0x1f6));const {PNG:_0x15517c}=require(_0x574d6b(0x1d5)),_0x5aef6c=_0x15517c['sync'][_0x574d6b(0x1c9)](_0x1fde8f,{'checkCRC':!![]});dimensions(_0x5aef6c['width'],_0x5aef6c[_0x574d6b(0x1d9)]),_0x2b78aa=_0x574d6b(0x1cf);}else{if(_0x1fde8f[0x0]===0xff&&_0x1fde8f[0x1]===0xd8){if(_0x1fde8f['at'](-0x2)!==0xff||_0x1fde8f['at'](-0x1)!==0xd9)throw Error(_0x574d6b(0x1f2));const _0x58d929=require(_0x574d6b(0x1d7)),_0x267f75=_0x58d929[_0x574d6b(0x1d3)](_0x1fde8f,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x267f75['width'],_0x267f75['height']),_0x2b78aa='image/jpeg';}else{if([_0x574d6b(0x1cd),_0x574d6b(0x1dd)][_0x574d6b(0x1f4)](_0x1fde8f[_0x574d6b(0x1cb)]('ascii',0x0,0x6))){if(_0x1fde8f['length']<0xe||_0x1fde8f['at'](-0x1)!==0x3b)throw Error(_0x574d6b(0x1ce));dimensions(_0x1fde8f[_0x574d6b(0x1e9)](0x6),_0x1fde8f[_0x574d6b(0x1e9)](0x8)),validateGif(_0x1fde8f);const {GifReader:_0x37ab1f}=require(_0x574d6b(0x1d2)),_0x6edada=new _0x37ab1f(_0x1fde8f);dimensions(_0x6edada['width'],_0x6edada['height']);const _0x39f898=_0x6edada[_0x574d6b(0x1c0)]();if(!_0x39f898||_0x39f898>0x2710||_0x39f898*_0x6edada[_0x574d6b(0x1ed)]*_0x6edada['height']>MAX_PIXELS)throw Error(_0x574d6b(0x1f3));const _0x8a53fd=new Uint8Array(_0x6edada[_0x574d6b(0x1ed)]*_0x6edada[_0x574d6b(0x1d9)]*0x4);for(let _0x33fea7=0x0;_0x33fea7<_0x39f898;_0x33fea7++){const _0xb1fb06=_0x6edada[_0x574d6b(0x1ef)](_0x33fea7);if(_0xb1fb06['x']+_0xb1fb06[_0x574d6b(0x1ed)]>_0x6edada['width']||_0xb1fb06['y']+_0xb1fb06[_0x574d6b(0x1d9)]>_0x6edada[_0x574d6b(0x1d9)])throw Error(_0x574d6b(0x1fc));_0x6edada[_0x574d6b(0x1d6)](_0x33fea7,_0x8a53fd);}_0x2b78aa=_0x574d6b(0x1de);}else throw Error(_0x574d6b(0x1d8));}}}catch(_0x3b4a86){throw Error(_0x574d6b(0x1f5)+_0x3b4a86[_0x574d6b(0x1cc)]);}return{'contentHash':createHash('sha256')[_0x574d6b(0x1d0)](_0x1fde8f)[_0x574d6b(0x1ca)](_0x574d6b(0x1da)),'type':_0x2b78aa,'size':_0x1fde8f[_0x574d6b(0x1c6)],'bytes':_0x1fde8f};}
|
|
1
|
+
(function(_0x2309f7,_0x360d9a){const _0x381843=a141_0x253d,_0x42b3a8=_0x2309f7();while(!![]){try{const _0x7cd04d=parseInt(_0x381843(0x191))/0x1*(parseInt(_0x381843(0x1c5))/0x2)+-parseInt(_0x381843(0x19f))/0x3+parseInt(_0x381843(0x1a2))/0x4+-parseInt(_0x381843(0x192))/0x5*(parseInt(_0x381843(0x1a7))/0x6)+-parseInt(_0x381843(0x1c4))/0x7*(-parseInt(_0x381843(0x1bb))/0x8)+-parseInt(_0x381843(0x190))/0x9+-parseInt(_0x381843(0x1a4))/0xa*(-parseInt(_0x381843(0x1cf))/0xb);if(_0x7cd04d===_0x360d9a)break;else _0x42b3a8['push'](_0x42b3a8['shift']());}catch(_0x3953af){_0x42b3a8['push'](_0x42b3a8['shift']());}}}(a141_0x9443,0x48cb0));import{createRequire}from'node:module';import{createHash}from'node:crypto';import{inflateSync}from'node:zlib';function a141_0x253d(_0x3830e0,_0x527d2e){_0x3830e0=_0x3830e0-0x190;const _0x944359=a141_0x9443();let _0x253d26=_0x944359[_0x3830e0];return _0x253d26;}const require=createRequire(import.meta.url),MAX_PIXELS=0x2625a00;function a141_0x9443(){const _0x52b669=['Truncated\x20PNG\x20data.','includes','ceil','concat','Invalid\x20PNG\x20color/depth/interlace.','sync','Truncated\x20GIF\x20data.','jpeg-js','IEND','readUInt32BE','width','image/jpeg','Image\x20must\x20be\x20non-empty\x20and\x20no\x20larger\x20than\x2010\x20MB.','21624TJwBEx','IHDR','equals','Invalid\x20GIF\x20LZW\x20dictionary\x20reference.','sha256','Invalid\x20PNG\x20decoded\x20scanline\x20size.','read','readUInt16LE','Truncated\x20or\x20incomplete\x20GIF\x20LZW\x20pixels.','259sqyJSh','10xKvXpy','numFrames','Invalid\x20PNG\x20header.','Truncated\x20JPEG.','length','GIF89a','Invalid\x20GIF\x20trailer.','digest','update','Invalid\x20PNG\x20end.','11HrRHqo','isSafeInteger','906453uZMXVt','68601sgMTsO','65CSxlpd','Missing\x20GIF\x20trailer.','image/png','subarray','Truncated\x20PNG\x20chunk.','decode','omggif','from','height','message','Invalid\x20GIF\x20LZW\x20code\x20size.','IDAT','GIF\x20cumulative\x20frame\x20pixels\x20exceed\x2040\x20million.','561888HWhRCq','decodeAndBlitFrameRGBA','frameInfo','1139780UHCWKq','acTL','884940JVEGIu','ascii','Truncated\x20GIF.','106284xgFKfH','hex','push','Invalid\x20GIF\x20LZW\x20pixel\x20data.','toString','image/gif','GIF87a'];a141_0x9443=function(){return _0x52b669;};return a141_0x9443();}function dimensions(_0x12bef9,_0x3a57c3){const _0x494922=a141_0x253d;if(!Number[_0x494922(0x1d0)](_0x12bef9)||!Number['isSafeInteger'](_0x3a57c3)||_0x12bef9<0x1||_0x3a57c3<0x1||_0x12bef9*_0x3a57c3>MAX_PIXELS)throw Error('Image\x20dimensions\x20exceed\x2040\x20million\x20pixels.');}function validateGif(_0x256c75){const _0x2baff8=a141_0x253d;let _0x5dabae=0xd,_0x558633=0x0,_0x3ea203=0x0;const _0x39f474=_0x256c75[_0x2baff8(0x1c2)](0x6),_0x5403e7=_0x256c75[_0x2baff8(0x1c2)](0x8),_0xa6a1e0=_0x256c75[0xa]&0x80?0x1<<(_0x256c75[0xa]&0x7)+0x1:0x0,_0x375dd5=_0x29e10d=>{const _0xd4af46=_0x2baff8;if(_0x5dabae+_0x29e10d>_0x256c75[_0xd4af46(0x1c9)])throw Error(_0xd4af46(0x1b4));};_0x5dabae+=_0xa6a1e0*0x3,_0x375dd5(0x0);const _0x11b79d=()=>{const _0x37aaae=_0x2baff8,_0x57ff4f=[];while(!![]){_0x375dd5(0x1);const _0x40f4de=_0x256c75[_0x5dabae++];if(!_0x40f4de)break;_0x375dd5(_0x40f4de),_0x57ff4f[_0x37aaae(0x1a9)](_0x256c75[_0x37aaae(0x195)](_0x5dabae,_0x5dabae+_0x40f4de)),_0x5dabae+=_0x40f4de;}return Buffer[_0x37aaae(0x1b1)](_0x57ff4f);};while(_0x5dabae<_0x256c75[_0x2baff8(0x1c9)]){const _0x1b2e10=_0x256c75[_0x5dabae++];if(_0x1b2e10===0x3b){if(!_0x558633||_0x5dabae!==_0x256c75[_0x2baff8(0x1c9)])throw Error(_0x2baff8(0x1cb));return;}if(_0x1b2e10===0x21){_0x375dd5(0x1),_0x5dabae++,_0x11b79d();continue;}if(_0x1b2e10!==0x2c)throw Error('Invalid\x20GIF\x20block.');_0x375dd5(0x9);const _0x1334cc=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae),_0x50a807=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae+0x2),_0x564c80=_0x256c75['readUInt16LE'](_0x5dabae+0x4),_0x4a8c90=_0x256c75[_0x2baff8(0x1c2)](_0x5dabae+0x6),_0x53f140=_0x256c75[_0x5dabae+0x8];_0x5dabae+=0x9,dimensions(_0x564c80,_0x4a8c90);if(_0x1334cc+_0x564c80>_0x39f474||_0x50a807+_0x4a8c90>_0x5403e7||++_0x558633>0x2710||(_0x3ea203+=_0x39f474*_0x5403e7)>MAX_PIXELS)throw Error(_0x2baff8(0x19e));const _0x417856=_0x53f140&0x80?0x1<<(_0x53f140&0x7)+0x1:_0xa6a1e0;if(!_0x417856)throw Error('GIF\x20image\x20has\x20no\x20palette.');_0x53f140&0x80&&(_0x375dd5(_0x417856*0x3),_0x5dabae+=_0x417856*0x3);_0x375dd5(0x1);const _0x39e55b=_0x256c75[_0x5dabae++];if(_0x39e55b<0x2||_0x39e55b>0x8)throw Error(_0x2baff8(0x19c));const _0x4c4d19=_0x11b79d(),_0x26fbf1=0x1<<_0x39e55b,_0x7b5d71=_0x26fbf1+0x1;let _0x765c81=_0x39e55b+0x1,_0x140af7=_0x7b5d71+0x1,_0x4826f=0x0,_0x3bd716=-0x1,_0x5a0e0a=0x0,_0x289c20=![];const _0x547b21=new Uint32Array(0x1000),_0x5c5952=new Uint16Array(0x1000);for(let _0x1f6ec2=0x0;_0x1f6ec2<_0x26fbf1;_0x1f6ec2++){_0x547b21[_0x1f6ec2]=0x1,_0x5c5952[_0x1f6ec2]=_0x1f6ec2;}while(_0x4826f+_0x765c81<=_0x4c4d19['length']*0x8){let _0x5dd3b7=0x0;for(let _0x544dc2=0x0;_0x544dc2<_0x765c81;_0x544dc2++,_0x4826f++)_0x5dd3b7|=(_0x4c4d19[_0x4826f>>0x3]>>(_0x4826f&0x7)&0x1)<<_0x544dc2;if(_0x5dd3b7===_0x26fbf1){_0x765c81=_0x39e55b+0x1,_0x140af7=_0x7b5d71+0x1,_0x3bd716=-0x1;continue;}if(_0x5dd3b7===_0x7b5d71){_0x289c20=!![];break;}if(_0x5dd3b7>_0x140af7||_0x5dd3b7===_0x140af7&&_0x3bd716<0x0||_0x3bd716<0x0&&_0x5dd3b7>=_0x26fbf1)throw Error(_0x2baff8(0x1be));const _0x5b9156=_0x5dd3b7===_0x140af7?_0x547b21[_0x3bd716]+0x1:_0x547b21[_0x5dd3b7],_0x5d1c14=_0x5dd3b7===_0x140af7?_0x5c5952[_0x3bd716]:_0x5c5952[_0x5dd3b7];if(!_0x5b9156||_0x5d1c14>=_0x417856||(_0x5a0e0a+=_0x5b9156)>_0x564c80*_0x4a8c90)throw Error(_0x2baff8(0x1aa));if(_0x3bd716>=0x0&&_0x140af7<0x1000){_0x547b21[_0x140af7]=_0x547b21[_0x3bd716]+0x1,_0x5c5952[_0x140af7]=Math['max'](_0x5c5952[_0x3bd716],_0x5d1c14),_0x140af7++;if(_0x140af7===0x1<<_0x765c81&&_0x765c81<0xc)_0x765c81++;}_0x3bd716=_0x5dd3b7;}if(!_0x289c20||_0x5a0e0a!==_0x564c80*_0x4a8c90)throw Error(_0x2baff8(0x1c3));}throw Error(_0x2baff8(0x193));}export function validateImageBytes(_0x40b085){const _0xbb8b65=a141_0x253d;if(!_0x40b085[_0xbb8b65(0x1c9)]||_0x40b085['length']>0xa*0x400*0x400)throw Error(_0xbb8b65(0x1ba));let _0x111da0;try{if(_0x40b085[_0xbb8b65(0x195)](0x0,0x8)[_0xbb8b65(0x1bd)](Buffer[_0xbb8b65(0x199)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]))){if(_0x40b085[_0xbb8b65(0x1c9)]<0x21||_0x40b085['toString']('ascii',0xc,0x10)!==_0xbb8b65(0x1bc))throw Error(_0xbb8b65(0x1c7));dimensions(_0x40b085['readUInt32BE'](0x10),_0x40b085['readUInt32BE'](0x14));const _0x52a5bd=_0x40b085[_0xbb8b65(0x1b7)](0x10),_0x9a0a69=_0x40b085[_0xbb8b65(0x1b7)](0x14),_0x3e3535=_0x40b085[0x18],_0x30d7ae=_0x40b085[0x19],_0x404055=_0x40b085[0x1c],_0x2b5564={0x0:0x1,0x2:0x3,0x3:0x1,0x4:0x2,0x6:0x4}[_0x30d7ae];if(!_0x2b5564||![0x1,0x2,0x4,0x8,0x10][_0xbb8b65(0x1af)](_0x3e3535)||_0x404055>0x1)throw Error(_0xbb8b65(0x1b2));const _0x43f990=_0xe00739=>Math[_0xbb8b65(0x1b0)](_0xe00739*_0x2b5564*_0x3e3535/0x8)+0x1;let _0x3c06b4=_0x43f990(_0x52a5bd)*_0x9a0a69;if(_0x404055){_0x3c06b4=0x0;for(const [_0x47753e,_0x705588,_0x5cb9d3,_0x5abda9]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 _0x55fc83=Math['max'](0x0,Math['ceil']((_0x52a5bd-_0x47753e)/_0x5cb9d3)),_0x4aa350=Math['max'](0x0,Math[_0xbb8b65(0x1b0)]((_0x9a0a69-_0x705588)/_0x5abda9));if(_0x55fc83&&_0x4aa350)_0x3c06b4+=_0x43f990(_0x55fc83)*_0x4aa350;}}let _0x12bccf=0x8,_0x448de2=![];const _0x5d2b36=[];while(_0x12bccf<_0x40b085[_0xbb8b65(0x1c9)]){if(_0x12bccf+0xc>_0x40b085['length'])throw Error(_0xbb8b65(0x196));const _0x465393=_0x40b085[_0xbb8b65(0x1b7)](_0x12bccf),_0x5b0eed=_0x40b085[_0xbb8b65(0x1ab)](_0xbb8b65(0x1a5),_0x12bccf+0x4,_0x12bccf+0x8);if(_0x5b0eed===_0xbb8b65(0x1a3))throw Error('Animated\x20PNG\x20is\x20not\x20supported.');if(_0x12bccf+_0x465393+0xc>_0x40b085[_0xbb8b65(0x1c9)])throw Error(_0xbb8b65(0x1ae));if(_0x5b0eed===_0xbb8b65(0x19d))_0x5d2b36['push'](_0x40b085['subarray'](_0x12bccf+0x8,_0x12bccf+0x8+_0x465393));_0x12bccf+=_0x465393+0xc;if(_0x5b0eed===_0xbb8b65(0x1b6)){if(_0x465393||_0x12bccf!==_0x40b085[_0xbb8b65(0x1c9)])throw Error(_0xbb8b65(0x1ce));_0x448de2=!![];break;}}if(!_0x448de2||!_0x5d2b36[_0xbb8b65(0x1c9)])throw Error('Missing\x20PNG\x20data/end.');if(inflateSync(Buffer[_0xbb8b65(0x1b1)](_0x5d2b36),{'maxOutputLength':_0x3c06b4+0x1})[_0xbb8b65(0x1c9)]!==_0x3c06b4)throw Error(_0xbb8b65(0x1c0));const {PNG:_0x1c7a2a}=require('pngjs'),_0x51997b=_0x1c7a2a[_0xbb8b65(0x1b3)][_0xbb8b65(0x1c1)](_0x40b085,{'checkCRC':!![]});dimensions(_0x51997b['width'],_0x51997b['height']),_0x111da0=_0xbb8b65(0x194);}else{if(_0x40b085[0x0]===0xff&&_0x40b085[0x1]===0xd8){if(_0x40b085['at'](-0x2)!==0xff||_0x40b085['at'](-0x1)!==0xd9)throw Error(_0xbb8b65(0x1c8));const _0x44d75b=require(_0xbb8b65(0x1b5)),_0x6f0510=_0x44d75b[_0xbb8b65(0x197)](_0x40b085,{'useTArray':!![],'formatAsRGBA':![],'tolerantDecoding':![],'maxResolutionInMP':0x28,'maxMemoryUsageInMB':0x100});dimensions(_0x6f0510[_0xbb8b65(0x1b8)],_0x6f0510[_0xbb8b65(0x19a)]),_0x111da0=_0xbb8b65(0x1b9);}else{if([_0xbb8b65(0x1ad),_0xbb8b65(0x1ca)][_0xbb8b65(0x1af)](_0x40b085[_0xbb8b65(0x1ab)](_0xbb8b65(0x1a5),0x0,0x6))){if(_0x40b085['length']<0xe||_0x40b085['at'](-0x1)!==0x3b)throw Error(_0xbb8b65(0x1a6));dimensions(_0x40b085[_0xbb8b65(0x1c2)](0x6),_0x40b085[_0xbb8b65(0x1c2)](0x8)),validateGif(_0x40b085);const {GifReader:_0x21c882}=require(_0xbb8b65(0x198)),_0x56bf15=new _0x21c882(_0x40b085);dimensions(_0x56bf15[_0xbb8b65(0x1b8)],_0x56bf15['height']);const _0x4c8fdd=_0x56bf15[_0xbb8b65(0x1c6)]();if(!_0x4c8fdd||_0x4c8fdd>0x2710||_0x4c8fdd*_0x56bf15[_0xbb8b65(0x1b8)]*_0x56bf15[_0xbb8b65(0x19a)]>MAX_PIXELS)throw Error(_0xbb8b65(0x19e));const _0x39165c=new Uint8Array(_0x56bf15[_0xbb8b65(0x1b8)]*_0x56bf15[_0xbb8b65(0x19a)]*0x4);for(let _0x53fe1b=0x0;_0x53fe1b<_0x4c8fdd;_0x53fe1b++){const _0x1e9755=_0x56bf15[_0xbb8b65(0x1a1)](_0x53fe1b);if(_0x1e9755['x']+_0x1e9755['width']>_0x56bf15['width']||_0x1e9755['y']+_0x1e9755[_0xbb8b65(0x19a)]>_0x56bf15[_0xbb8b65(0x19a)])throw Error('GIF\x20frame\x20exceeds\x20canvas.');_0x56bf15[_0xbb8b65(0x1a0)](_0x53fe1b,_0x39165c);}_0x111da0=_0xbb8b65(0x1ac);}else throw Error('Unsupported\x20image\x20format;\x20only\x20PNG,\x20JPEG\x20and\x20GIF\x20are\x20supported.\x20WebP\x20is\x20not\x20supported.');}}}catch(_0x27ef0e){throw Error('Invalid\x20image:\x20'+_0x27ef0e[_0xbb8b65(0x19b)]);}return{'contentHash':createHash(_0xbb8b65(0x1bf))[_0xbb8b65(0x1cd)](_0x40b085)[_0xbb8b65(0x1cc)](_0xbb8b65(0x1a8)),'type':_0x111da0,'size':_0x40b085[_0xbb8b65(0x1c9)],'bytes':_0x40b085};}
|