@univerjs-pro/bases 1.0.4 → 1.2.0
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/fields/field-core-plugin.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x413924=_0x5866;(function(_0x41575a,_0x4d477b){const _0x370329=_0x5866,_0x58e68d=_0x41575a();while(!![]){try{const _0x246116=-parseInt(_0x370329(0x462))/0x1*(-parseInt(_0x370329(0x185))/0x2)+parseInt(_0x370329(0x42a))/0x3*(-parseInt(_0x370329(0x21f))/0x4)+-parseInt(_0x370329(0x117))/0x5*(parseInt(_0x370329(0x3c1))/0x6)+-parseInt(_0x370329(0x26c))/0x7+-parseInt(_0x370329(0x30a))/0x8*(-parseInt(_0x370329(0x200))/0x9)+-parseInt(_0x370329(0x485))/0xa+parseInt(_0x370329(0x266))/0xb*(parseInt(_0x370329(0x28a))/0xc);if(_0x246116===_0x4d477b)break;else _0x58e68d['push'](_0x58e68d['shift']());}catch(_0x5134df){_0x58e68d['push'](_0x58e68d['shift']());}}}(_0xc540,0xea625));import{BASE_RECORD_ID_FIELD_ID as _0x3f46af,BaseConditionalColorOperator as _0x44d66f,BaseConditionalColorTarget as _0x291ae8,BaseConditionalDateMode as _0xd47639,BaseDataModel as _0x4fb297,BaseFieldType as _0x39ba8f,BaseFilterConjunction as _0x5c1116,BaseHierarchyInvalidReason as _0x1b786b,BaseRecordLinkRole as _0x169931,BaseSortDirection as _0x3bb647,BaseViewType as _0xc119d4,CellValueType as _0x1b3c74,ColorKit as _0x7ed26d,CommandType as _0x3abf95,CustomCommandExecutionError as _0x4875f1,DateSystem as _0x4b4a65,DependentOn as _0x36214f,Disposable as _0x51b493,ErrorService as _0xd219dd,ICommandService as _0x4c2cb1,IConfigService as _0x12c3f9,IPermissionService as _0x151b9e,IResourceManagerService as _0x2b2f47,IUndoRedoService as _0xb7e499,IUniverInstanceService as _0x4de172,Inject as _0x4ceb1c,Injector as _0x19a16b,JSON1 as _0x2c18c4,JSONX as _0xb3e801,ObjectMatrix as _0x105ad6,ObjectPermissionRuleModel as _0x329c66,ObjectPermissionService as _0x18e9f8,Optional as _0x1bc2ea,PermissionStatus as _0x44a480,Plugin as _0x5626e8,Tools as _0x285054,UniverInstanceType as _0x1a4689,allocateBaseFormulaTableName as _0x4128dd,assertBaseTableRecordIdentity as _0x5f22f6,createBaseFormulaTableNameMap as _0x429055,createBaseRecordIdField as _0x1356d2,createIdentifier as _0x116afe,dateKit as _0x2461bc,excelDateTimeSerial as _0x26e0e5,excelSerialToDateTime as _0x1357ef,generateRandomId as _0x186b5a,getBaseFormulaTableName as _0x17901a,isBaseRecordIdFieldName as _0x5c3099,isValidBaseRecordId as _0x3de20b,merge as _0x23d942,nameCharacterCheck as _0x3ba1d0,numfmt as _0x554273,regexp as _0x5d97c4,sequenceExecute as _0x13120b,toDisposable as _0x500368,touchDependencies as _0x144ea}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x397aea,IActiveDirtyManagerService as _0x42d5f5,RemoveSuperTableMutation as _0x188f2e,SetFormulaCalculationResultMutation as _0x1c46d3,SetSuperTableMutation as _0x5007fb,SetTriggerFormulaCalculationStartMutation as _0x390bf3,UniverProFormulaEnginePlugin as _0x235841,refactorFormulaUnitQualifier as _0x4c0fd4}from'@univerjs-pro/engine-formula';import{UnitAction as _0x4a4e33,UnitObject as _0x518f29}from'@univerjs/protocol';import{UniverLicensePlugin as _0x5130b3}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0xb4b53e}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x45f83b,FormulaResultApplicationType as _0xeea7e2}from'@univerjs/engine-formula';function N(_0x4e4909){const _0x569d05=_0x5866;let _0x551d12=_0x4e4909[_0x569d05(0x406)][_0x569d05(0x4a8)],_0x518d6c=_0x4e4909[_0x569d05(0x406)][_0x569d05(0x41b)],_0x46a83c=_0x4e4909[_0x569d05(0x406)][_0x569d05(0x440)],_0x5a8e43=_0x4e4909[_0x569d05(0x406)][_0x569d05(0x3f6)],_0x28b332=_0x4e4909[_0x569d05(0x406)][_0x569d05(0x455)];return typeof _0x551d12!=_0x569d05(0x3f0)||!_0x551d12||typeof _0x518d6c!='boolean'||_0x46a83c!==void 0x0&&(typeof _0x46a83c!=_0x569d05(0x3f0)||!_0x46a83c)||_0x28b332!==void 0x0&&_0x28b332!==_0x169931[_0x569d05(0x4d6)]||_0x5a8e43!==void 0x0&&(!Array['isArray'](_0x5a8e43)||_0x5a8e43[_0x569d05(0x2e3)](_0x2c9586=>typeof _0x2c9586!=_0x569d05(0x3f0)||!_0x2c9586)||new Set(_0x5a8e43)['size']!==_0x5a8e43[_0x569d05(0x4be)])?null:{'targetTableId':_0x551d12,'multiple':_0x518d6c,..._0x46a83c?{'displayFieldId':_0x46a83c}:{},..._0x5a8e43?{'pickerFieldIds':[..._0x5a8e43]}:{},..._0x28b332?{'relationRole':_0x28b332}:{}};}function Le(_0x5b73ec){const _0x553c75=_0x5866;return typeof _0x5b73ec!='string'||_0x5b73ec===''?[]:_0x5b73ec[_0x553c75(0x2c7)](',');}function Re(_0x4224d9){const _0x260032=_0x5866;return Array[_0x260032(0x2f6)](new Set(_0x4224d9))[_0x260032(0x4bd)](',');}function ze(_0x3112a5,_0x207ab4){const _0x36745a=_0x5866;if(typeof _0x3112a5!='string')return{'valid':!0x1,'reason':_0x36745a(0x456)};if(_0x3112a5==='')return{'valid':!0x0};let _0x29a13b=_0x3112a5[_0x36745a(0x2c7)](',');return!_0x207ab4&&_0x29a13b['length']>0x1?{'valid':!0x1,'reason':_0x36745a(0x2dc)}:_0x29a13b[_0x36745a(0x2e3)](_0x220aab=>!_0x3de20b(_0x220aab))||new Set(_0x29a13b)[_0x36745a(0x22e)]!==_0x29a13b[_0x36745a(0x4be)]||Re(_0x29a13b)!==_0x3112a5?{'valid':!0x1,'reason':'[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.'}:{'valid':!0x0};}function Be(_0x1e63ca,_0x147881){const _0x359207=_0x5866;if(_0x147881[_0x359207(0x378)]!==_0x39ba8f[_0x359207(0x1e4)])return{'valid':!0x0};let _0x5b2b50=N(_0x147881),_0x634763=_0x5b2b50?_0x1e63ca['tables'][_0x5b2b50['targetTableId']]:void 0x0;if(!_0x5b2b50||!_0x634763)return{'valid':!0x1,'reason':_0x359207(0x29e)};let _0x4f9635=[..._0x5b2b50[_0x359207(0x440)]?[_0x5b2b50[_0x359207(0x440)]]:[],..._0x5b2b50[_0x359207(0x3f6)]??[]][_0x359207(0x196)](_0x529396=>{const _0x183bb3=_0x359207;let _0x16fcde=_0x634763[_0x183bb3(0x175)][_0x529396];return!_0x16fcde||_0x16fcde['system']===!0x0||_0x16fcde[_0x183bb3(0x378)]===_0x39ba8f[_0x183bb3(0x216)];});return _0x4f9635?{'valid':!0x1,'reason':_0x359207(0x2a4)+_0x4f9635+_0x359207(0x215)}:{'valid':!0x0};}function Ve(_0x13683b,_0x395810,_0x14836e,_0x2cac3c={}){const _0x394af8=_0x5866;let _0x3a8d2d=N(_0x395810);if(_0x395810[_0x394af8(0x378)]!==_0x39ba8f[_0x394af8(0x1e4)]||!_0x3a8d2d)return{'valid':!0x1,'reason':_0x394af8(0x186)};let _0x5a39e2=ze(_0x14836e,_0x3a8d2d['multiple']);if(!_0x5a39e2[_0x394af8(0x3e2)]||_0x2cac3c[_0x394af8(0x2ce)])return _0x5a39e2;let _0x3678de=_0x13683b['tables'][_0x3a8d2d['targetTableId']];if(!_0x3678de)return{'valid':!0x1,'reason':'[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.'};let _0x4bf5ec=Le(_0x14836e)[_0x394af8(0x196)](_0x2b504e=>!_0x3678de[_0x394af8(0x3b4)][_0x2b504e]);return _0x4bf5ec?{'valid':!0x1,'reason':_0x394af8(0x40b)+_0x4bf5ec+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0x443b0d,_0x191b7d){const _0x17ad84=_0x5866;return Object[_0x17ad84(0x4ae)](_0x443b0d['tables'])[_0x17ad84(0x4ac)](_0x393440=>Object['values'](_0x393440[_0x17ad84(0x175)])[_0x17ad84(0x4ac)](_0x28a080=>{const _0xd1466d=_0x17ad84;let _0x23e81d=_0x28a080[_0xd1466d(0x378)]===_0x39ba8f['RecordLink']?N(_0x28a080):null;return(_0x23e81d==null?void 0x0:_0x23e81d[_0xd1466d(0x4a8)])===_0x191b7d?[{'tableId':_0x393440['id'],'fieldId':_0x28a080['id']}]:[];}));}const Ue=0x5,We=_0x413924(0x454);let Ge=function(_0x21989d){const _0x201791=_0x413924;return _0x21989d[_0x201791(0x3e6)]=_0x201791(0x442),_0x21989d['MissingRecord']=_0x201791(0x3ca),_0x21989d[_0x201791(0x12a)]=_0x201791(0x330),_0x21989d[_0x201791(0x2a6)]=_0x201791(0x1dd),_0x21989d[_0x201791(0x2e8)]=_0x201791(0x261),_0x21989d['SortedView']='sortedView',_0x21989d;}({});var P=class extends Error{constructor(_0x287d3a,_0x85c228=_0x413924(0x148)+_0x287d3a){const _0x5472e4=_0x413924;super(_0x85c228),this[_0x5472e4(0x1f8)]=_0x287d3a,this[_0x5472e4(0x1f9)]=_0x5472e4(0x278);}};let Ke=function(_0x585fb6){const _0x4c69aa=_0x413924;return _0x585fb6['UI']='ui',_0x585fb6[_0x4c69aa(0x252)]='facade',_0x585fb6[_0x4c69aa(0x3fe)]=_0x4c69aa(0x43e),_0x585fb6[_0x4c69aa(0x20a)]=_0x4c69aa(0x36d),_0x585fb6[_0x4c69aa(0x3ab)]=_0x4c69aa(0x229),_0x585fb6[_0x4c69aa(0x10e)]=_0x4c69aa(0x14c),_0x585fb6;}({});function F(_0x502887,_0x8d6e9c){const _0x26e635=_0x413924;if(!_0x8d6e9c)return!0x1;let _0x2cbb39=_0x502887[_0x26e635(0x175)][_0x8d6e9c];if(!_0x2cbb39||_0x2cbb39[_0x26e635(0x378)]!==_0x39ba8f[_0x26e635(0x1e4)])return!0x1;let _0x3b349c=N(_0x2cbb39);return _0x3b349c?_0x3b349c['targetTableId']===_0x502887['id']&&_0x3b349c[_0x26e635(0x41b)]===!0x1:!0x1;}function qe(_0x19d870){const _0x29dc5d=_0x413924;return[..._0x19d870['fieldOrder'],...Object[_0x29dc5d(0x3a2)](_0x19d870['fields'])[_0x29dc5d(0x457)](_0x4769dd=>!_0x19d870[_0x29dc5d(0x3fc)]['includes'](_0x4769dd))[_0x29dc5d(0x116)]()]['find'](_0x4dcf9e=>{const _0x438da2=_0x29dc5d;var _0x4eb083;return F(_0x19d870,_0x4dcf9e)?((_0x4eb083=N(_0x19d870[_0x438da2(0x175)][_0x4dcf9e]))==null?void 0x0:_0x4eb083[_0x438da2(0x455)])===_0x169931[_0x438da2(0x4d6)]:!0x1;})??null;}function Je(_0x2e314a){const _0x110e9c=_0x413924;let _0x349e1e=qe(_0x2e314a);if(_0x349e1e)return _0x349e1e;let _0x1a4e15=We,_0x2cbe32=0x2;for(;_0x2e314a[_0x110e9c(0x175)][_0x1a4e15];)_0x1a4e15=We+'_'+_0x2cbe32++;return _0x1a4e15;}function Ye(_0x58a365,_0x2a0441=Je(_0x58a365),_0x26f9f9=_0x413924(0x422)){const _0x1d3be3=_0x413924;return{'id':_0x2a0441,'name':_0x26f9f9,'type':_0x39ba8f['RecordLink'],'config':{'targetTableId':_0x58a365['id'],'multiple':!0x1,'displayFieldId':_0x58a365[_0x1d3be3(0x426)],'pickerFieldIds':[_0x58a365['primaryFieldId']],'relationRole':_0x169931[_0x1d3be3(0x4d6)]}};}function Xe(_0x3242ed){let _0xea95b=qe(_0x3242ed);return _0xea95b?[_0xea95b]:[];}function Ze(_0x4ea501,_0x58e5d4){const _0x1cfc35=_0x413924;let _0x55eab8=[...Xe(_0x4ea501)][_0x1cfc35(0x457)](_0x1b8b07=>_0x58e5d4[_0x1cfc35(0x2e3)](_0x431f02=>Object[_0x1cfc35(0x24b)][_0x1cfc35(0x128)][_0x1cfc35(0x157)](_0x431f02[_0x1cfc35(0x4ae)],_0x1b8b07)));if(!_0x55eab8['length'])return[];let _0x14397b={..._0x4ea501[_0x1cfc35(0x3b4)]};_0x58e5d4['forEach'](_0x99e9aa=>{const _0x458901=_0x1cfc35;let _0x329fad=_0x14397b[_0x99e9aa[_0x458901(0x170)]];_0x329fad&&(_0x14397b[_0x99e9aa['recordId']]={..._0x329fad,'values':{..._0x329fad[_0x458901(0x4ae)],..._0x99e9aa[_0x458901(0x4ae)]}});});let _0x27bd01={..._0x4ea501,'records':_0x14397b},_0x40ea45=[];return _0x55eab8[_0x1cfc35(0x248)](_0x43a20e=>{const _0x458fee=_0x1cfc35;let _0x464c39=tt(_0x4ea501,_0x43a20e),_0x1a2b0c=tt(_0x27bd01,_0x43a20e);for(let [_0x156554,_0x1748d5]of _0x1a2b0c[_0x458fee(0x2ef)]){let _0x1ffd49=_0x58e5d4['some'](_0xfbafc2=>_0xfbafc2[_0x458fee(0x170)]===_0x156554&&Object[_0x458fee(0x24b)][_0x458fee(0x128)]['call'](_0xfbafc2[_0x458fee(0x4ae)],_0x43a20e));if(_0x464c39[_0x458fee(0x2ef)][_0x458fee(0x113)](_0x156554)!==_0x1748d5||_0x1ffd49)throw new P($e(_0x1748d5));}_0x58e5d4['forEach'](_0xb755f4=>{const _0x4b4b08=_0x458fee;if(!Object[_0x4b4b08(0x24b)][_0x4b4b08(0x128)]['call'](_0xb755f4[_0x4b4b08(0x4ae)],_0x43a20e))return;let _0x47b384=_0x464c39['parentByRecordId'][_0x4b4b08(0x113)](_0xb755f4[_0x4b4b08(0x170)])??null,_0x4f9ab8=_0x1a2b0c[_0x4b4b08(0x430)][_0x4b4b08(0x113)](_0xb755f4[_0x4b4b08(0x170)])??null;_0x47b384!==_0x4f9ab8&&_0x40ea45['push']({'tableId':_0x4ea501['id'],'fieldId':_0x43a20e,'recordId':_0xb755f4[_0x4b4b08(0x170)],'oldParentRecordId':_0x47b384,'parentRecordId':_0x4f9ab8});});}),_0x40ea45;}function Qe(_0x287cf2,_0x7c253e){const _0x446ebb=_0x413924;let _0x1f15d4=_0x7c253e[_0x446ebb(0x438)](_0x3e3ef4=>_0x3e3ef4['id']);if(new Set(_0x1f15d4)[_0x446ebb(0x22e)]!==_0x1f15d4[_0x446ebb(0x4be)]||_0x1f15d4[_0x446ebb(0x2e3)](_0x4dbaa2=>_0x287cf2['records'][_0x4dbaa2]))return[];let _0x599193=Xe(_0x287cf2),_0x569954=_0x599193[_0x446ebb(0x4be)]?null:Je(_0x287cf2),_0x13e00a=[..._0x599193,..._0x569954&&_0x7c253e[_0x446ebb(0x2e3)](_0x55d9e4=>Object[_0x446ebb(0x24b)][_0x446ebb(0x128)][_0x446ebb(0x157)](_0x55d9e4[_0x446ebb(0x4ae)],_0x569954))?[_0x569954]:[]][_0x446ebb(0x457)](_0x140502=>_0x7c253e[_0x446ebb(0x2e3)](_0x4cd8a2=>Object[_0x446ebb(0x24b)][_0x446ebb(0x128)]['call'](_0x4cd8a2['values'],_0x140502)));if(!_0x13e00a[_0x446ebb(0x4be)])return[];let _0x3f3345={..._0x287cf2,'records':{..._0x287cf2[_0x446ebb(0x3b4)],...Object['fromEntries'](_0x7c253e[_0x446ebb(0x438)](_0x406194=>[_0x406194['id'],_0x406194]))},'recordOrder':[..._0x287cf2['recordOrder']??[],..._0x7c253e[_0x446ebb(0x438)](_0x3010fd=>_0x3010fd['id'])]},_0x30cba3=[];return _0x13e00a['forEach'](_0xac60dd=>{const _0x45b15e=_0x446ebb;let _0x1168b1=tt(_0x3f3345,_0xac60dd);_0x7c253e[_0x45b15e(0x248)](_0x4d028e=>{const _0x154ed4=_0x45b15e;let _0x3905d7=_0x1168b1[_0x154ed4(0x2ef)][_0x154ed4(0x113)](_0x4d028e['id']);if(_0x3905d7)throw new P($e(_0x3905d7));let _0x3b9984=_0x1168b1[_0x154ed4(0x430)][_0x154ed4(0x113)](_0x4d028e['id'])??null;_0x3b9984&&_0x30cba3[_0x154ed4(0x34c)]({'tableId':_0x287cf2['id'],'fieldId':_0xac60dd,'recordId':_0x4d028e['id'],'oldParentRecordId':null,'parentRecordId':_0x3b9984});});}),_0x30cba3;}function $e(_0x61c8b8){const _0x5aa915=_0x413924;switch(_0x61c8b8){case _0x1b786b[_0x5aa915(0x4ca)]:return _0x5aa915(0x3ca);case _0x1b786b[_0x5aa915(0x12a)]:return _0x5aa915(0x330);case _0x1b786b[_0x5aa915(0x2a6)]:return _0x5aa915(0x1dd);case _0x1b786b[_0x5aa915(0x2e8)]:return _0x5aa915(0x261);}}function et(_0x407650,_0x52462a){const _0x15e3b0=_0x413924;let _0x50c14a=new Set(_0x52462a),_0x3c509c=Xe(_0x407650);return Object[_0x15e3b0(0x4ae)](_0x407650[_0x15e3b0(0x3b4)])['flatMap'](_0x18b959=>_0x50c14a[_0x15e3b0(0x3cf)](_0x18b959['id'])?[]:Array[_0x15e3b0(0x2f6)](_0x3c509c)[_0x15e3b0(0x4ac)](_0x8d0f18=>{const _0x1d821b=_0x15e3b0;let _0x1e7f0a=Le(_0x18b959[_0x1d821b(0x4ae)][_0x8d0f18])[0x0]??null;return _0x1e7f0a&&_0x50c14a[_0x1d821b(0x3cf)](_0x1e7f0a)?[{'tableId':_0x407650['id'],'fieldId':_0x8d0f18,'recordId':_0x18b959['id'],'oldParentRecordId':_0x1e7f0a,'parentRecordId':null}]:[];}));}function tt(_0x513c68,_0x5ad00d,_0x4378df=_0x513c68[_0x413924(0x1c6)]??Object[_0x413924(0x3a2)](_0x513c68[_0x413924(0x3b4)])){const _0x5e1b1c=_0x413924;if((_0x513c68[_0x5e1b1c(0x175)][_0x5ad00d]||_0x5ad00d!==Je(_0x513c68))&&!F(_0x513c68,_0x5ad00d))throw Error(_0x5e1b1c(0x29d)+_0x5ad00d+_0x5e1b1c(0x139));let _0x168de8=at(_0x513c68,_0x4378df),_0x623d4a=new Map(),_0xcea14c=new Map();for(let _0x207963 of _0x168de8){var _0x144033;let _0x14ac61=Le((_0x144033=_0x513c68[_0x5e1b1c(0x3b4)][_0x207963])==null?void 0x0:_0x144033[_0x5e1b1c(0x4ae)][_0x5ad00d])[0x0]??null;_0x14ac61?_0x14ac61===_0x207963?(_0x623d4a['set'](_0x207963,null),_0xcea14c[_0x5e1b1c(0x404)](_0x207963,_0x1b786b[_0x5e1b1c(0x12a)])):_0x513c68[_0x5e1b1c(0x3b4)][_0x14ac61]?_0x623d4a[_0x5e1b1c(0x404)](_0x207963,_0x14ac61):(_0x623d4a[_0x5e1b1c(0x404)](_0x207963,null),_0xcea14c['set'](_0x207963,_0x1b786b['MissingParent'])):_0x623d4a[_0x5e1b1c(0x404)](_0x207963,null);}ot(_0x623d4a,_0xcea14c,_0x168de8),st(_0x623d4a,_0xcea14c,_0x168de8);let _0x4de3d3=new Map(_0x168de8[_0x5e1b1c(0x438)]((_0x56efc4,_0x3568c7)=>[_0x56efc4,_0x3568c7])),_0x2c5c6d=new Map();for(let _0x12bc80 of _0x168de8){let _0x624840=_0x623d4a['get'](_0x12bc80)??null,_0x30f34f=_0x2c5c6d[_0x5e1b1c(0x113)](_0x624840)??[];_0x30f34f[_0x5e1b1c(0x34c)](_0x12bc80),_0x2c5c6d[_0x5e1b1c(0x404)](_0x624840,_0x30f34f);}_0x2c5c6d[_0x5e1b1c(0x248)](_0x2258d3=>_0x2258d3[_0x5e1b1c(0x116)]((_0x2d7ebb,_0xede60e)=>(_0x4de3d3['get'](_0x2d7ebb)??0x0)-(_0x4de3d3['get'](_0xede60e)??0x0)));let _0x1e4035=_0x2c5c6d['get'](null)??[],_0x2ff79a=new Map(),_0x15b5bb=new Map(),_0x3b2ecb=[],_0x1a9d80=(_0x5dc488,_0x898e4f)=>{const _0x17e5f4=_0x5e1b1c;_0x2ff79a['set'](_0x5dc488,_0x898e4f),_0x3b2ecb[_0x17e5f4(0x34c)](_0x5dc488);let _0x4d34c0=0x0;for(let _0x19bb51 of _0x2c5c6d[_0x17e5f4(0x113)](_0x5dc488)??[])_0x4d34c0=Math[_0x17e5f4(0x487)](_0x4d34c0,0x1+_0x1a9d80(_0x19bb51,_0x898e4f+0x1));return _0x15b5bb[_0x17e5f4(0x404)](_0x5dc488,_0x4d34c0),_0x4d34c0;};return _0x1e4035['forEach'](_0x7da3f3=>_0x1a9d80(_0x7da3f3,0x0)),{'fieldId':_0x5ad00d,'parentByRecordId':_0x623d4a,'childrenByParentId':_0x2c5c6d,'depthByRecordId':_0x2ff79a,'subtreeHeightByRecordId':_0x15b5bb,'invalidReasonByRecordId':_0xcea14c,'rootRecordIds':_0x1e4035,'orderedRecordIds':_0x3b2ecb};}function nt(_0x251448,_0x50332e,_0x4884e8=new Set(_0x50332e[_0x413924(0x438)](_0x1f7a3a=>_0x1f7a3a[_0x413924(0x170)]))){const _0x35c9f8=_0x413924;let _0xeda035=new Set(_0x4884e8);for(let _0x12019e of _0x4884e8){let _0x5448e9=_0x251448[_0x35c9f8(0x430)][_0x35c9f8(0x113)](_0x12019e)??null;for(;_0x5448e9;)_0xeda035[_0x35c9f8(0x4c2)](_0x5448e9),_0x5448e9=_0x251448[_0x35c9f8(0x430)][_0x35c9f8(0x113)](_0x5448e9)??null;}let _0x15a82c=new Map(_0x50332e['map'](_0x189bda=>[_0x189bda[_0x35c9f8(0x170)],_0x189bda])),_0x3fad6c=_0x251448[_0x35c9f8(0x189)][_0x35c9f8(0x457)](_0x2f53d7=>_0xeda035[_0x35c9f8(0x3cf)](_0x2f53d7)),_0x4c59b3=_0x3fad6c[_0x35c9f8(0x4ac)](_0x13856f=>{const _0x1e9f1e=_0x35c9f8;let _0xa6f5a3=_0x15a82c[_0x1e9f1e(0x113)](_0x13856f);return _0xa6f5a3?[_0xa6f5a3]:[];}),_0x4843b5={};for(let _0x16eb1c=0x0;_0x16eb1c<_0x3fad6c['length'];_0x16eb1c++){let _0x122660=_0x3fad6c[_0x16eb1c];_0x4843b5[_0x122660]={'recordId':_0x122660,'parentRecordId':_0x251448[_0x35c9f8(0x430)][_0x35c9f8(0x113)](_0x122660)??null,'depth':_0x251448['depthByRecordId']['get'](_0x122660)??0x0,'directChildCount':(_0x251448[_0x35c9f8(0x1a9)]['get'](_0x122660)??[])[_0x35c9f8(0x4be)],'subtreeHeight':_0x251448[_0x35c9f8(0x47b)][_0x35c9f8(0x113)](_0x122660)??0x0,'subtreeEndIndex':_0x16eb1c,'invalidReason':_0x251448[_0x35c9f8(0x2ef)][_0x35c9f8(0x113)](_0x122660)};}let _0x129cdc=[];for(let _0x4dd1b7=0x0;_0x4dd1b7<_0x3fad6c[_0x35c9f8(0x4be)];_0x4dd1b7++){let _0x2a3e24=_0x3fad6c[_0x4dd1b7],_0x394409=_0x4843b5[_0x2a3e24][_0x35c9f8(0x288)];for(;_0x129cdc[_0x35c9f8(0x4be)]&&_0x129cdc[_0x129cdc[_0x35c9f8(0x4be)]-0x1][_0x35c9f8(0x288)]>=_0x394409;){let _0x12f847=_0x129cdc['pop']();_0x4843b5[_0x12f847[_0x35c9f8(0x170)]][_0x35c9f8(0x2fa)]=_0x4dd1b7-0x1;}_0x129cdc[_0x35c9f8(0x34c)]({'recordId':_0x2a3e24,'depth':_0x394409});}return _0x129cdc[_0x35c9f8(0x248)](({recordId:_0x5cd14d})=>{_0x4843b5[_0x5cd14d]['subtreeEndIndex']=_0x3fad6c['length']-0x1;}),{'rows':_0x4c59b3,'hierarchy':{'fieldId':_0x251448[_0x35c9f8(0x1c3)],'rootRecordIds':_0x251448[_0x35c9f8(0x1a2)][_0x35c9f8(0x457)](_0x2fc79d=>_0xeda035[_0x35c9f8(0x3cf)](_0x2fc79d)),'orderedRecordIds':_0x3fad6c,'nodes':_0x4843b5}};}function rt(_0x55d619,_0x28bb72){const _0x2215da=_0x413924;if(!_0x55d619[_0x2215da(0x2e4)]||!(_0x28bb72!=null&&_0x28bb72[_0x2215da(0x22e)]))return _0x55d619['rows'];let _0x471ed2=[],_0x490619=0x0;for(;_0x490619<_0x55d619[_0x2215da(0x4c1)][_0x2215da(0x4be)];){let _0x2d1197=_0x55d619[_0x2215da(0x4c1)][_0x490619];_0x471ed2[_0x2215da(0x34c)](_0x2d1197);let _0x345b96=_0x55d619[_0x2215da(0x2e4)]['nodes'][_0x2d1197['recordId']];_0x490619=_0x28bb72[_0x2215da(0x3cf)](_0x2d1197[_0x2215da(0x170)])&&_0x345b96?_0x345b96[_0x2215da(0x2fa)]+0x1:_0x490619+0x1;}return _0x471ed2;}function it(_0x315fc3,_0x2f594f,_0x38005b){const _0x161aec=_0x413924;if(!_0x38005b)return{'valid':!0x0};if(_0x2f594f===_0x38005b)return{'valid':!0x1,'reason':_0x1b786b[_0x161aec(0x12a)]};let _0x3c7356=_0x38005b;for(;_0x3c7356;){if(_0x3c7356===_0x2f594f)return{'valid':!0x1,'reason':_0x1b786b['Cycle']};_0x3c7356=_0x315fc3[_0x161aec(0x430)]['get'](_0x3c7356)??null;}return(_0x315fc3[_0x161aec(0x1e8)]['get'](_0x38005b)??0x0)+0x1+(_0x315fc3[_0x161aec(0x47b)][_0x161aec(0x113)](_0x2f594f)??0x0)>=0x5?{'valid':!0x1,'reason':_0x1b786b['MaxDepth']}:{'valid':!0x0};}function at(_0x1dcb19,_0x308b08){const _0x59be76=_0x413924;let _0x1fbb09=new Set(),_0x37bead=[];for(let _0x3b16bf of _0x308b08)_0x1dcb19[_0x59be76(0x3b4)][_0x3b16bf]&&!_0x1fbb09['has'](_0x3b16bf)&&(_0x1fbb09[_0x59be76(0x4c2)](_0x3b16bf),_0x37bead[_0x59be76(0x34c)](_0x3b16bf));return Object[_0x59be76(0x3a2)](_0x1dcb19['records'])[_0x59be76(0x116)]()[_0x59be76(0x248)](_0x288510=>{const _0x883e=_0x59be76;_0x1fbb09[_0x883e(0x3cf)](_0x288510)||_0x37bead[_0x883e(0x34c)](_0x288510);}),_0x37bead;}function ot(_0x1cd9eb,_0x14388f,_0x13f8af){const _0x32311f=_0x413924;let _0x3c5104=new Set();for(let _0x1eebde of _0x13f8af){if(_0x3c5104[_0x32311f(0x3cf)](_0x1eebde))continue;let _0x524301=[],_0x4b1e4b=new Map(),_0x223825=_0x1eebde;for(;_0x223825&&!_0x3c5104['has'](_0x223825);){let _0x157be8=_0x4b1e4b['get'](_0x223825);if(_0x157be8!=null){let _0x3eaf53=[..._0x524301[_0x32311f(0x3a7)](_0x157be8)]['sort']()[_0x32311f(0x2ec)]();_0x1cd9eb[_0x32311f(0x404)](_0x3eaf53,null),_0x14388f[_0x32311f(0x404)](_0x3eaf53,_0x1b786b[_0x32311f(0x2a6)]);break;}_0x4b1e4b['set'](_0x223825,_0x524301[_0x32311f(0x4be)]),_0x524301[_0x32311f(0x34c)](_0x223825),_0x223825=_0x1cd9eb[_0x32311f(0x113)](_0x223825)??null;}_0x524301['forEach'](_0x30e571=>_0x3c5104[_0x32311f(0x4c2)](_0x30e571));}}function st(_0x1040fc,_0x442fa1,_0x5b06b9){const _0x86d631=_0x413924;let _0x5deb15=new Map(),_0x5e8506=_0x1495ae=>{const _0x1e3850=_0x5866;let _0x2ddcd6=_0x5deb15['get'](_0x1495ae);if(_0x2ddcd6!=null)return _0x2ddcd6;let _0x537bd9=_0x1040fc[_0x1e3850(0x113)](_0x1495ae)??null;if(!_0x537bd9)return _0x5deb15[_0x1e3850(0x404)](_0x1495ae,0x0),0x0;let _0x42d195=_0x5e8506(_0x537bd9)+0x1;return _0x42d195>=0x5?(_0x1040fc[_0x1e3850(0x404)](_0x1495ae,null),_0x442fa1[_0x1e3850(0x404)](_0x1495ae,_0x1b786b[_0x1e3850(0x2e8)]),_0x5deb15[_0x1e3850(0x404)](_0x1495ae,0x0),0x0):(_0x5deb15['set'](_0x1495ae,_0x42d195),_0x42d195);};_0x5b06b9[_0x86d631(0x248)](_0x5e8506);}let ct=0x0;function lt(){const _0xf7c38e=_0x413924;if(globalThis[_0xf7c38e(0x28e)]===!0x0)return!0x0;try{let _0x47a283=typeof location>'u'?'':location[_0xf7c38e(0x3d2)],_0x2ed300=new URLSearchParams(_0x47a283);if(_0x2ed300[_0xf7c38e(0x113)](_0xf7c38e(0x2a9))==='1'||_0x2ed300[_0xf7c38e(0x113)](_0xf7c38e(0x2a9))===_0xf7c38e(0x436)||_0x2ed300['get'](_0xf7c38e(0x2c0))==='1')return!0x0;}catch{}try{let _0x1ec7b5=typeof localStorage>'u'?null:localStorage[_0xf7c38e(0x4bb)]('univer.basePerf');return _0x1ec7b5==='1'||_0x1ec7b5===_0xf7c38e(0x436);}catch{return!0x1;}}function I(_0x587d9a,_0x1b513b,_0x19a876){const _0xed021f=_0x413924;if(!lt())return _0x1b513b();let _0x5f4b89=dt(),_0x3a48bc=_0xed021f(0x236)+ct++;ft(_0x3a48bc+_0xed021f(0x289));try{return _0x1b513b();}finally{let _0x7ab47d=dt()-_0x5f4b89;ft(_0x3a48bc+_0xed021f(0x177)),pt(_0x587d9a,_0x3a48bc+_0xed021f(0x289),_0x3a48bc+_0xed021f(0x177)),ut(_0x587d9a,_0x7ab47d,_0x19a876);}}function ut(_0x350042,_0x12f956,_0x37b8e0){const _0x325fe5=_0x413924;if(!lt())return;let _0x211da3=Math[_0x325fe5(0x2bd)](_0x12f956*0x64)/0x64,_0x198b74=_0x37b8e0&&Object['keys'](_0x37b8e0)['length']?'\x20'+JSON[_0x325fe5(0x3d0)](_0x37b8e0):'';console[_0x325fe5(0x461)]('[BasePerf]\x20'+_0x350042+':\x20'+_0x211da3+'ms'+_0x198b74);}function dt(){const _0x5f5b83=_0x413924;return typeof performance<'u'&&typeof performance['now']==_0x5f5b83(0x420)?performance[_0x5f5b83(0x24d)]():Date[_0x5f5b83(0x24d)]();}function ft(_0x2ed97e){const _0x1f6331=_0x413924;try{if(typeof performance<'u'){var _0x391f89,_0x3e0ca4;(_0x391f89=(_0x3e0ca4=performance)[_0x1f6331(0x317)])==null||_0x391f89['call'](_0x3e0ca4,_0x2ed97e);}}catch{}}function pt(_0x2a8cf6,_0x59ae11,_0x579b7e){const _0x12b2c5=_0x413924;try{if(typeof performance<'u'){var _0x513849,_0x3b353b;(_0x513849=(_0x3b353b=performance)[_0x12b2c5(0x251)])==null||_0x513849[_0x12b2c5(0x157)](_0x3b353b,_0x12b2c5(0x11d)+_0x2a8cf6,_0x59ae11,_0x579b7e);}}catch{}}function L(_0x3bdce1){const _0x3f4f53=_0x413924;var _0xdb7435;return lt()?I('IBaseCellData.ensureTableCellLayout',()=>mt(_0x3bdce1),{'tableId':_0x3bdce1['id'],'records':Object[_0x3f4f53(0x3a2)](_0x3bdce1[_0x3f4f53(0x3b4)]??{})[_0x3f4f53(0x4be)],'fields':_0x3bdce1[_0x3f4f53(0x3fc)]['length'],'hasRecordOrder':!!((_0xdb7435=_0x3bdce1[_0x3f4f53(0x1c6)])!=null&&_0xdb7435[_0x3f4f53(0x4be)])}):mt(_0x3bdce1);}function mt(_0x113db3){const _0x50913b=_0x413924;var _0x335bf5;let _0x305535=_0x113db3[_0x50913b(0x3b4)]??{},_0x3709da=_0x113db3['fields']??{},_0x2f5374=((_0x335bf5=_0x113db3[_0x50913b(0x1c6)])==null?void 0x0:_0x335bf5['filter'](_0x50fa67=>_0x305535[_0x50fa67]))??[],_0x28030c=new Set(_0x2f5374),_0x3c3831=[];for(let _0x5cb264 of Object['values'](_0x305535))_0x28030c['has'](_0x5cb264['id'])||_0x3c3831[_0x50913b(0x34c)](_0x5cb264);let _0x4630b0=_0x3c3831[_0x50913b(0x4be)]?[..._0x2f5374,...Rt(_0x3c3831)]:_0x2f5374,_0x3f4bc6=_0x113db3[_0x50913b(0x3fc)][_0x50913b(0x457)](_0x182a17=>_0x3709da[_0x182a17]),_0x31f1c6={..._0x113db3[_0x50913b(0x3ce)]??{}},_0xdb8a1={..._0x113db3[_0x50913b(0x16c)]??{}},_0x401141={..._0x113db3['cellData']??{}};_0x113db3[_0x50913b(0x1c6)]=_0x4630b0,_0x113db3[_0x50913b(0x12b)]={},_0x113db3[_0x50913b(0x3ce)]={},_0x113db3[_0x50913b(0x4a2)]={},_0x113db3['colId']={},_0x113db3['cellData']={},_0x113db3['resources']={..._0x113db3[_0x50913b(0x228)]??{}},_0x113db3[_0x50913b(0x228)][_0x50913b(0x4c9)]={..._0x113db3[_0x50913b(0x228)]['attachmentSets']??{}},_0x113db3[_0x50913b(0x228)][_0x50913b(0x28c)]={..._0x113db3[_0x50913b(0x228)][_0x50913b(0x28c)]??{}};let _0x135fdb=_0x113db3[_0x50913b(0x12b)],_0x17139e=_0x113db3[_0x50913b(0x3ce)],_0x149c59=_0x113db3[_0x50913b(0x4a2)],_0x1d2615=_0x113db3[_0x50913b(0x16c)],_0x577f70=_0x113db3[_0x50913b(0x260)];return _0x4630b0['forEach']((_0x13c9f0,_0x1644ed)=>{_0x135fdb[_0x13c9f0]=_0x1644ed,_0x17139e[_0x1644ed]=_0x13c9f0;}),_0x3f4bc6[_0x50913b(0x248)]((_0x368a07,_0x256e45)=>{_0x149c59[_0x368a07]=_0x256e45,_0x1d2615[_0x256e45]=_0x368a07;}),Object[_0x50913b(0x391)](_0x401141)[_0x50913b(0x248)](([_0x5ce722,_0x2f6496])=>{const _0x368fda=_0x50913b;let _0x238e0a=Number(_0x5ce722),_0x428b85=_0x31f1c6[_0x238e0a]??_0x4630b0[_0x238e0a],_0x1c4f70=_0x428b85?_0x135fdb[_0x428b85]:void 0x0;_0x1c4f70!=null&&(_0x577f70[_0x1c4f70]={..._0x577f70[_0x1c4f70]??{}},Object['entries'](_0x2f6496??{})[_0x368fda(0x248)](([_0x3fad9d,_0x2c4de9])=>{let _0x26191b=Number(_0x3fad9d),_0x14b45a=_0xdb8a1[_0x26191b]??_0x3f4bc6[_0x26191b],_0x588d22=_0x14b45a?_0x149c59[_0x14b45a]:void 0x0;_0x588d22!=null&&(_0x577f70[_0x1c4f70][_0x588d22]=St(_0x2c4de9));}));}),Object['values'](_0x305535)[_0x50913b(0x248)](_0x28e5bb=>{const _0x532e96=_0x50913b;let _0xe1aa89=_0x135fdb[_0x28e5bb['id']];_0xe1aa89!=null&&(_0x28e5bb[_0x532e96(0x4ae)]={..._0x28e5bb['values']??{},[_0x3f46af]:_0x28e5bb['id']},_0x577f70[_0xe1aa89]={..._0x577f70[_0xe1aa89]??{},0x0:{'v':_0x28e5bb['id'],'t':_0x1b3c74[_0x532e96(0x187)]}},Object['entries'](_0x28e5bb['values']??{})[_0x532e96(0x248)](([_0x56cbbc,_0x2a2cb8])=>{const _0x327c47=_0x532e96;let _0x24749a=_0x3709da[_0x56cbbc];(_0x24749a==null?void 0x0:_0x24749a[_0x327c47(0x378)])===_0x39ba8f[_0x327c47(0x2ba)]&&Dt(_0x113db3,_0x28e5bb['id'],_0x56cbbc,_0x2a2cb8);let _0x522b50=_0x149c59[_0x56cbbc];if(_0x522b50==null)return;let _0x5ce638=_0x577f70[_0xe1aa89][_0x522b50];if(_0x5ce638!=null){jt(_0x5ce638,_0x24749a,_0x2a2cb8)&&(_0x577f70[_0xe1aa89][_0x522b50]=xt(_0x2a2cb8,_0x24749a));return;}_0x577f70[_0xe1aa89][_0x522b50]=xt(_0x2a2cb8,_0x24749a);}));}),_0x113db3;}function ht(_0x3288fd,_0x26cf6b){const _0x344087=_0x413924;return _0x3288fd[_0x344087(0x3b4)]=Object['fromEntries'](Object['entries'](_0x3288fd['records'])[_0x344087(0x438)](([_0x4ca57b,_0x99ba7f])=>[_0x4ca57b,{..._0x99ba7f}])),L(_0x3288fd),Object[_0x344087(0x391)](_0x3288fd[_0x344087(0x3ce)]??{})[_0x344087(0x248)](([_0x344b51,_0x4533ee])=>{const _0x2437fe=_0x344087;var _0x252489;let _0x3ba75e=Number(_0x344b51),_0x182994=_0x3288fd['records'][_0x4533ee];_0x182994&&(_0x182994[_0x2437fe(0x4ae)]={..._0x182994['values']??{}},Object[_0x2437fe(0x391)](((_0x252489=_0x3288fd[_0x2437fe(0x260)])==null?void 0x0:_0x252489[_0x3ba75e])??{})[_0x2437fe(0x248)](([_0x243cda,_0x11825d])=>{const _0x41dd9b=_0x2437fe;var _0x147b1f;let _0x1c57f1=(_0x147b1f=_0x3288fd[_0x41dd9b(0x16c)])==null?void 0x0:_0x147b1f[Number(_0x243cda)];_0x1c57f1&&_0x26cf6b&&!_0x26cf6b(_0x4533ee,_0x1c57f1)||(_0x1c57f1===_0x3f46af?_0x182994['values'][_0x3f46af]=_0x182994['id']:_0x1c57f1&&(_0x182994[_0x41dd9b(0x4ae)][_0x1c57f1]=Ct(_0x11825d,_0x3288fd['fields'][_0x1c57f1],_0x3288fd,_0x4533ee)));}));}),_0x3288fd;}function gt(_0x88b5d6,_0x157b93){const _0x45e8ac=_0x413924;for(let {row:_0x2d10fa,col:_0x206cfe}of _0x157b93){var _0x4fa2b0,_0xa84562,_0x3115f8;let _0x1dfc8b=(_0x4fa2b0=_0x88b5d6[_0x45e8ac(0x3ce)])==null?void 0x0:_0x4fa2b0[_0x2d10fa],_0x3210f6=(_0xa84562=_0x88b5d6[_0x45e8ac(0x16c)])==null?void 0x0:_0xa84562[_0x206cfe],_0x508d12=_0x1dfc8b?_0x88b5d6[_0x45e8ac(0x3b4)][_0x1dfc8b]:void 0x0;if(!_0x508d12||!_0x3210f6)continue;if(_0x3210f6===_0x3f46af){_0x508d12['values'][_0x3f46af]=_0x508d12['id'];continue;}let _0x51be85=(_0x3115f8=_0x88b5d6[_0x45e8ac(0x260)])==null||(_0x3115f8=_0x3115f8[_0x2d10fa])==null?void 0x0:_0x3115f8[_0x206cfe];(_0x51be85!=null||Object[_0x45e8ac(0x24b)][_0x45e8ac(0x128)][_0x45e8ac(0x157)](_0x508d12['values']??{},_0x3210f6))&&(_0x508d12[_0x45e8ac(0x4ae)]={..._0x508d12[_0x45e8ac(0x4ae)]??{}},_0x508d12[_0x45e8ac(0x4ae)][_0x3210f6]=Ct(_0x51be85,_0x88b5d6['fields'][_0x3210f6],_0x88b5d6,_0x1dfc8b));}return _0x88b5d6;}function _t(_0x3c708f,_0x58e61a,_0xa925ee){const _0x18a2af=_0x413924;var _0x1b0fc4,_0x3714c9,_0x80850c,_0x317e77,_0x3a29e4,_0x342813;let _0x313e2b=(_0x1b0fc4=_0x3c708f['rowIndex'])==null?void 0x0:_0x1b0fc4[_0x58e61a],_0x2eaafa=(_0x3714c9=_0x3c708f[_0x18a2af(0x4a2)])==null?void 0x0:_0x3714c9[_0xa925ee];if(_0x313e2b!=null&&_0x2eaafa!=null&&((_0x80850c=_0x3c708f[_0x18a2af(0x3ce)])==null?void 0x0:_0x80850c[_0x313e2b])===_0x58e61a&&((_0x317e77=_0x3c708f[_0x18a2af(0x16c)])==null?void 0x0:_0x317e77[_0x2eaafa])===_0xa925ee)return{'row':_0x313e2b,'col':_0x2eaafa};let _0x1cdf89=L(_0x3c708f),_0x268726=(_0x3a29e4=_0x1cdf89['rowIndex'])==null?void 0x0:_0x3a29e4[_0x58e61a],_0x5137a8=(_0x342813=_0x1cdf89[_0x18a2af(0x4a2)])==null?void 0x0:_0x342813[_0xa925ee];return _0x268726==null||_0x5137a8==null?null:{'row':_0x268726,'col':_0x5137a8};}function vt(_0x1fe9db,_0x5b9141,_0x165c09){const _0x241ec5=_0x413924;var _0x4ceddc;let _0x109e62=_t(_0x1fe9db,_0x5b9141,_0x165c09);if(_0x109e62)return(_0x4ceddc=_0x1fe9db[_0x241ec5(0x260)])==null||(_0x4ceddc=_0x4ceddc[_0x109e62[_0x241ec5(0x47c)]])==null?void 0x0:_0x4ceddc[_0x109e62[_0x241ec5(0x44d)]];}function yt(_0x5b7bf2,_0x3418c1,_0x2c8924){const _0x318108=_0x413924;var _0x39a8a2;let _0x1f74e1=vt(_0x5b7bf2,_0x3418c1,_0x2c8924),_0x5c0ece=_0x5b7bf2[_0x318108(0x175)][_0x2c8924];if((_0x5c0ece==null?void 0x0:_0x5c0ece[_0x318108(0x378)])===_0x39ba8f['Attachment']){var _0x3b0df6;return Ot(_0x5b7bf2,_0x3418c1,_0x2c8924)??kt((_0x3b0df6=_0x5b7bf2[_0x318108(0x3b4)][_0x3418c1])==null||(_0x3b0df6=_0x3b0df6[_0x318108(0x4ae)])==null?void 0x0:_0x3b0df6[_0x2c8924]);}if(Mt(_0x5c0ece)||Nt(_0x5c0ece)||(_0x5c0ece==null?void 0x0:_0x5c0ece[_0x318108(0x378)])===_0x39ba8f['Link']){var _0x31b55e;let _0x1ebd5b=(_0x31b55e=_0x5b7bf2['records'][_0x3418c1])==null||(_0x31b55e=_0x31b55e[_0x318108(0x4ae)])==null?void 0x0:_0x31b55e[_0x2c8924];return _0x1ebd5b!=null&&_0x1ebd5b!==''?At(_0x1ebd5b,_0x5c0ece):Ct(_0x1f74e1,_0x5c0ece,_0x5b7bf2,_0x3418c1);}return _0x1f74e1&&Object[_0x318108(0x24b)][_0x318108(0x128)][_0x318108(0x157)](_0x1f74e1,'v')?_0x1f74e1['v']??null:((_0x39a8a2=_0x5b7bf2[_0x318108(0x3b4)][_0x3418c1])==null||(_0x39a8a2=_0x39a8a2[_0x318108(0x4ae)])==null?void 0x0:_0x39a8a2[_0x2c8924])??null;}function bt(_0x3d5ed6,_0x4d6182,_0xc01921){const _0x9c9450=_0x413924;var _0x477e14;let _0x5b5061=vt(_0x3d5ed6,_0x4d6182,_0xc01921);if(_0x5b5061&&Object[_0x9c9450(0x24b)]['hasOwnProperty'][_0x9c9450(0x157)](_0x5b5061,'v'))return _0x5b5061['v']??null;let _0x5d1230=_0x3d5ed6[_0x9c9450(0x175)][_0xc01921];return xt(((_0x477e14=_0x3d5ed6[_0x9c9450(0x3b4)][_0x4d6182])==null||(_0x477e14=_0x477e14[_0x9c9450(0x4ae)])==null?void 0x0:_0x477e14[_0xc01921])??null,_0x5d1230)['v']??null;}function xt(_0x40b065,_0xb47659){const _0x3127bc=_0x413924;if(Tt(_0x40b065))return(_0xb47659==null?void 0x0:_0xb47659[_0x3127bc(0x378)])===_0x39ba8f[_0x3127bc(0x2ba)]?{..._0x40b065,'v':'','t':_0x1b3c74[_0x3127bc(0x187)]}:St(_0x40b065);if((_0xb47659==null?void 0x0:_0xb47659[_0x3127bc(0x378)])===_0x39ba8f['Attachment'])return{'v':'','t':_0x1b3c74[_0x3127bc(0x187)]};if(Nt(_0xb47659)){let _0x469d13=Pt(_0x40b065);return{'v':_0x469d13,'t':Lt(_0x469d13)};}if(Mt(_0xb47659))return{'v':Ft(_0x40b065)['join'](',\x20'),'t':_0x1b3c74[_0x3127bc(0x187)]};if((_0xb47659==null?void 0x0:_0xb47659['type'])===_0x39ba8f[_0x3127bc(0x4b5)]&&_0x40b065&&typeof _0x40b065==_0x3127bc(0x441)&&!Array[_0x3127bc(0x348)](_0x40b065)){let _0x1ce6d3=_0x40b065;return{'v':String(_0x1ce6d3['text']??_0x1ce6d3[_0x3127bc(0x194)]??''),'t':_0x1b3c74[_0x3127bc(0x187)]};}return _0x40b065===null||typeof _0x40b065==_0x3127bc(0x3f0)||typeof _0x40b065==_0x3127bc(0x42c)||typeof _0x40b065==_0x3127bc(0x4d9)?{'v':_0x40b065,'t':Lt(_0x40b065)}:{'v':null,'t':null};}function St(_0x37ae4b){let _0x3087d1=zt(_0x37ae4b['t'],_0x37ae4b['v']);if(_0x3087d1===void 0x0){let {t:_0x368885,..._0x33a2ef}=_0x37ae4b;return _0x33a2ef;}return{..._0x37ae4b,'t':_0x3087d1};}function Ct(_0x533d14,_0x53b452,_0x23aefd,_0x3cae7e){const _0x11a355=_0x413924;if(!_0x533d14)return null;if((_0x53b452==null?void 0x0:_0x53b452[_0x11a355(0x378)])===_0x39ba8f[_0x11a355(0x2ba)])return _0x23aefd&&_0x3cae7e?Ot(_0x23aefd,_0x3cae7e,_0x53b452['id'])??[]:[];if(Mt(_0x53b452))return Ft(_0x533d14['v']);if((_0x53b452==null?void 0x0:_0x53b452[_0x11a355(0x378)])===_0x39ba8f[_0x11a355(0x4b5)]&&_0x23aefd&&_0x3cae7e){var _0x213917;let _0x5b7bc8=(_0x213917=_0x23aefd[_0x11a355(0x3b4)][_0x3cae7e])==null||(_0x213917=_0x213917[_0x11a355(0x4ae)])==null?void 0x0:_0x213917[_0x53b452['id']];if(_0x5b7bc8&&typeof _0x5b7bc8==_0x11a355(0x441)&&!Array[_0x11a355(0x348)](_0x5b7bc8))return _0x5b7bc8;}return Object[_0x11a355(0x24b)][_0x11a355(0x128)]['call'](_0x533d14,'v')?_0x533d14['v']??null:null;}function wt(_0x21872c,_0x4729dc,_0x11e9b9,_0x2a326b,_0x326d92){const _0x34bda8=_0x413924;return(_0x11e9b9==null?void 0x0:_0x11e9b9[_0x34bda8(0x378)])===_0x39ba8f[_0x34bda8(0x2ba)]?kt(_0x21872c):Nt(_0x11e9b9)?Pt(_0x21872c):Mt(_0x11e9b9)?Ft(_0x21872c):(_0x11e9b9==null?void 0x0:_0x11e9b9[_0x34bda8(0x378)])===_0x39ba8f['Link']&&(_0x21872c==null||_0x21872c==='')?null:(_0x11e9b9==null?void 0x0:_0x11e9b9['type'])===_0x39ba8f[_0x34bda8(0x4b5)]&&_0x21872c&&typeof _0x21872c==_0x34bda8(0x441)&&!Array[_0x34bda8(0x348)](_0x21872c)&&!Tt(_0x21872c)?_0x21872c:Ct(_0x4729dc,_0x11e9b9,_0x2a326b,_0x326d92);}function Tt(_0x445742){const _0x5973e0=_0x413924;return!!_0x445742&&typeof _0x445742==_0x5973e0(0x441)&&(Object['prototype'][_0x5973e0(0x128)][_0x5973e0(0x157)](_0x445742,'v')||Object[_0x5973e0(0x24b)][_0x5973e0(0x128)][_0x5973e0(0x157)](_0x445742,'t')||Object[_0x5973e0(0x24b)][_0x5973e0(0x128)]['call'](_0x445742,'p')||Object[_0x5973e0(0x24b)][_0x5973e0(0x128)]['call'](_0x445742,'f')||Object['prototype'][_0x5973e0(0x128)][_0x5973e0(0x157)](_0x445742,'si'));}function Et(_0x443d20,_0x444e96){return _0x443d20+'\x1f'+_0x444e96;}function Dt(_0x523e1c,_0x57394f,_0x2f1206,_0x16c847){const _0x3d18d7=_0x413924;let _0x46871a=kt(_0x16c847);_0x523e1c[_0x3d18d7(0x228)]={..._0x523e1c[_0x3d18d7(0x228)]??{}},_0x523e1c[_0x3d18d7(0x228)][_0x3d18d7(0x4c9)]={..._0x523e1c[_0x3d18d7(0x228)][_0x3d18d7(0x4c9)]??{}},_0x523e1c[_0x3d18d7(0x228)][_0x3d18d7(0x28c)]={..._0x523e1c[_0x3d18d7(0x228)]['attachments']??{}};let _0x4338b7=Et(_0x2f1206,_0x57394f),_0x26c3f3=[];for(let _0x53ce78=0x0;_0x53ce78<_0x46871a['length'];_0x53ce78++){if(!(_0x53ce78 in _0x46871a))continue;let _0x87c693=_0x46871a[_0x53ce78],_0x8558a=String(_0x87c693['id']??_0x4338b7+'\x1f'+_0x53ce78),_0x4f271e={..._0x87c693,'id':_0x8558a};_0x523e1c[_0x3d18d7(0x228)][_0x3d18d7(0x28c)][_0x8558a]=_0x4f271e,_0x26c3f3[_0x3d18d7(0x34c)](_0x8558a);}_0x523e1c[_0x3d18d7(0x228)]['attachmentSets'][_0x4338b7]=_0x26c3f3;}function Ot(_0x301ce4,_0x12ffe6,_0x2632ce){const _0x3a1450=_0x413924;var _0x1a3120;let _0x39a643=Et(_0x2632ce,_0x12ffe6),_0x3f9342=(_0x1a3120=_0x301ce4[_0x3a1450(0x228)])==null||(_0x1a3120=_0x1a3120[_0x3a1450(0x4c9)])==null?void 0x0:_0x1a3120[_0x39a643];if(!_0x3f9342)return null;let _0x4e441f=[];for(let _0x5e6ecd=0x0;_0x5e6ecd<_0x3f9342[_0x3a1450(0x4be)];_0x5e6ecd++){var _0x5bdb51;if(!(_0x5e6ecd in _0x3f9342))continue;let _0x4f17fe=(_0x5bdb51=_0x301ce4[_0x3a1450(0x228)])==null||(_0x5bdb51=_0x5bdb51['attachments'])==null?void 0x0:_0x5bdb51[_0x3f9342[_0x5e6ecd]];_0x4f17fe&&_0x4e441f[_0x3a1450(0x34c)]({..._0x4f17fe});}return _0x4e441f;}function kt(_0x45029e){const _0x3dc13a=_0x413924;if(_0x45029e==null||_0x45029e===''||Tt(_0x45029e)&&!('id'in _0x45029e)&&!(_0x3dc13a(0x1f9)in _0x45029e))return[];let _0x25b425=Array[_0x3dc13a(0x348)](_0x45029e)?_0x45029e:[_0x45029e],_0xb9982d=[];for(let _0x144b0c=0x0;_0x144b0c<_0x25b425[_0x3dc13a(0x4be)];_0x144b0c++){if(!(_0x144b0c in _0x25b425))continue;let _0x29f7cb=_0x25b425[_0x144b0c],_0x48aef7=_0x29f7cb&&typeof _0x29f7cb==_0x3dc13a(0x441)?{..._0x29f7cb}:{'id':_0x3dc13a(0x352)+_0x144b0c,'name':String(_0x29f7cb)};Object['keys'](_0x48aef7)[_0x3dc13a(0x4be)]>0x0&&_0xb9982d[_0x3dc13a(0x34c)](_0x48aef7);}return _0xb9982d;}function At(_0xc37a0a,_0x58a9c6){const _0x3b7707=_0x413924;return(_0x58a9c6==null?void 0x0:_0x58a9c6['type'])===_0x39ba8f[_0x3b7707(0x2ba)]?kt(_0xc37a0a):Nt(_0x58a9c6)?Pt(_0xc37a0a):Mt(_0x58a9c6)?Ft(_0xc37a0a):_0xc37a0a;}function jt(_0x22d74b,_0x4c30d5,_0x1c6c01){const _0x3e006f=_0x413924;return(_0x4c30d5==null?void 0x0:_0x4c30d5[_0x3e006f(0x378)])===_0x39ba8f['Attachment']?_0x22d74b['v']!=='':Nt(_0x4c30d5)?_0x22d74b['v']!==Pt(_0x1c6c01):Mt(_0x4c30d5)?Array['isArray'](_0x1c6c01)&&(_0x22d74b['v']==null||_0x22d74b['v']===''):!0x1;}function Mt(_0x1f1d17){const _0x4aa1ef=_0x413924;return(_0x1f1d17==null?void 0x0:_0x1f1d17[_0x4aa1ef(0x378)])===_0x39ba8f[_0x4aa1ef(0x40c)]||(_0x1f1d17==null?void 0x0:_0x1f1d17[_0x4aa1ef(0x378)])===_0x39ba8f[_0x4aa1ef(0x14f)]||(_0x1f1d17==null?void 0x0:_0x1f1d17['type'])===_0x39ba8f[_0x4aa1ef(0x3e7)]&&_0x1f1d17[_0x4aa1ef(0x406)][_0x4aa1ef(0x35c)]===!0x0;}function Nt(_0x24563c){const _0x4d2526=_0x413924;return(_0x24563c==null?void 0x0:_0x24563c['type'])===_0x39ba8f['Person']&&_0x24563c[_0x4d2526(0x406)][_0x4d2526(0x35c)]!==!0x0;}function Pt(_0x55a2f4){const _0x14d6f7=_0x413924;let _0xa92125=Tt(_0x55a2f4)?_0x55a2f4['v']:_0x55a2f4,_0xd7e24=Array[_0x14d6f7(0x348)](_0xa92125)?_0xa92125[0x0]:_0xa92125;return _0xd7e24==null||_0xd7e24===''?null:String(_0xd7e24);}function Ft(_0x2f6a57){const _0x36b619=_0x413924;if(_0x2f6a57==null||_0x2f6a57==='')return[];let _0x25059a=[];if(Array[_0x36b619(0x348)](_0x2f6a57)){for(let _0xc3f971=0x0;_0xc3f971<_0x2f6a57['length'];_0xc3f971++){if(!(_0xc3f971 in _0x2f6a57))continue;let _0x6c08e7=It(_0x2f6a57[_0xc3f971]);_0x6c08e7&&_0x25059a[_0x36b619(0x34c)](_0x6c08e7);}return _0x25059a;}for(let _0x1497e2 of String(_0x2f6a57)['split'](',')){let _0x2800e0=_0x1497e2['trim']();_0x2800e0&&_0x25059a[_0x36b619(0x34c)](_0x2800e0);}return _0x25059a;}function It(_0x39af2c){const _0x55c7ca=_0x413924;if(_0x39af2c==null)return'';if(typeof _0x39af2c==_0x55c7ca(0x3f0)||typeof _0x39af2c==_0x55c7ca(0x42c)||typeof _0x39af2c==_0x55c7ca(0x4d9))return String(_0x39af2c);if(typeof _0x39af2c==_0x55c7ca(0x441)){let _0x4de578=_0x39af2c;return String(_0x4de578['id']??_0x4de578[_0x55c7ca(0x1f9)]??_0x4de578[_0x55c7ca(0x10d)]??'');}return String(_0x39af2c);}function Lt(_0x22851a){const _0x4a9798=_0x413924;return _0x22851a==null?null:typeof _0x22851a==_0x4a9798(0x42c)?_0x1b3c74[_0x4a9798(0x377)]:typeof _0x22851a==_0x4a9798(0x4d9)?_0x1b3c74[_0x4a9798(0x4af)]:_0x1b3c74[_0x4a9798(0x187)];}function Rt(_0x2e804c){const _0x49a9fe=_0x413924;_0x2e804c[_0x49a9fe(0x116)]((_0x20bf7d,_0x4f8c23)=>_0x20bf7d[_0x49a9fe(0x124)]['localeCompare'](_0x4f8c23[_0x49a9fe(0x124)]));let _0x5ac513=[];for(let _0x128a3 of _0x2e804c)_0x5ac513[_0x49a9fe(0x34c)](_0x128a3['id']);return _0x5ac513;}function zt(_0x46887b,_0x1e9dde){const _0x597d58=_0x413924;return _0x46887b===_0x1b3c74['STRING']||_0x46887b===_0x1b3c74[_0x597d58(0x377)]||_0x46887b===_0x1b3c74[_0x597d58(0x4af)]||_0x46887b===_0x1b3c74[_0x597d58(0x135)]||_0x46887b==null?_0x46887b:Lt(_0x1e9dde??null);}function R(_0x1eace9){const _0x3d9427=_0x413924;let _0x152824=null;for(let _0x30280c of _0x1eace9)_0x152824=_0x152824===null?_0x30280c:_0x2c18c4['type'][_0x3d9427(0x2ad)](_0x152824,_0x30280c);return _0x152824;}var z=class e{static[_0x413924(0x360)](_0x181165,_0x197b17){const _0x2e1508=_0x413924;let _0x3b0458=[];for(let _0x3e8509 of _0x197b17){let _0x504f51=Bt(_0x3e8509);if(!_0x504f51||_0x504f51[_0x2e1508(0x2b9)]!==_0x181165['id'])return null;_0x3b0458[_0x2e1508(0x34c)](_0x504f51['op']);}try{let _0x3a67cc=R(_0x3b0458);return _0x3a67cc===null?_0x181165:new e()['applyOp'](_0x181165,_0x3a67cc);}catch{return null;}}[_0x413924(0x2f2)](_0x1eb859,_0x18078e){const _0x12a27d=_0x413924;let _0x27db51=this['getAffectedRanges'](_0x18078e),_0x3b1dbd=I(_0x12a27d(0x37a),()=>Xt(_0x1eb859,_0x18078e),{'invalidations':_0x27db51[_0x12a27d(0x4be)]}),_0x554a49=I(_0x12a27d(0x408),()=>_0x2c18c4[_0x12a27d(0x378)][_0x12a27d(0x1ef)](_0x3b1dbd,_0x18078e),{'invalidations':_0x27db51[_0x12a27d(0x4be)]}),_0x30bf5f=Ht(_0x554a49,_0x27db51);return I(_0x12a27d(0x1db),()=>Vt(_0x554a49,_0x27db51),{'invalidations':_0x27db51['length']})?(Ut(_0x554a49,_0x30bf5f),_0x554a49):(I('BaseJson1.normalizeTables',()=>{const _0x40c13c=_0x12a27d;this[_0x40c13c(0x197)](_0x554a49,_0x27db51)[_0x40c13c(0x248)](_0x651c5e=>{const _0x3a7cd8=_0x40c13c;let _0x1f3e42=_0x27db51[_0x3a7cd8(0x457)](_0x5965e0=>_0x5965e0['tableId']===_0x651c5e['id']),_0x3e9451=_0x1f3e42['length']>0x0&&_0x1f3e42[_0x3a7cd8(0x23d)](_0x21badf=>_0x21badf[_0x3a7cd8(0x24f)]===_0x3a7cd8(0x2b7)||_0x21badf[_0x3a7cd8(0x24f)]===_0x3a7cd8(0x1e0)||_0x21badf[_0x3a7cd8(0x24f)]===_0x3a7cd8(0x3c4)||_0x21badf['reason']===_0x3a7cd8(0x1cf))?new Set(_0x1f3e42['flatMap'](_0x448622=>{const _0x1faae4=_0x3a7cd8;var _0x2093ce;if(_0x448622['reason']!==_0x1faae4(0x2b7)||!_0x448622[_0x1faae4(0x1c3)])return[];let _0x20ba22=(_0x2093ce=_0x1eb859[_0x1faae4(0x28d)][_0x651c5e['id']])==null?void 0x0:_0x2093ce[_0x1faae4(0x175)][_0x448622[_0x1faae4(0x1c3)]],_0x349748=_0x651c5e[_0x1faae4(0x175)][_0x448622[_0x1faae4(0x1c3)]];return(_0x20ba22==null?void 0x0:_0x20ba22['type'])!==(_0x349748==null?void 0x0:_0x349748['type'])||(_0x20ba22==null?void 0x0:_0x20ba22[_0x1faae4(0x406)][_0x1faae4(0x35c)])!==(_0x349748==null?void 0x0:_0x349748[_0x1faae4(0x406)]['allowMultiple'])?[_0x448622[_0x1faae4(0x1c3)]]:[];})):void 0x0,_0x3304e6=new Set(_0x1f3e42[_0x3a7cd8(0x4ac)](_0x18978a=>{const _0x2a87bb=_0x3a7cd8;var _0x1965e3,_0x4f9490;return _0x18978a[_0x2a87bb(0x24f)]!==_0x2a87bb(0x3c4)||_0x18978a['row']==null||_0x18978a['column']==null?[]:[JSON[_0x2a87bb(0x3d0)]([(_0x1965e3=_0x651c5e[_0x2a87bb(0x3ce)])==null?void 0x0:_0x1965e3[_0x18978a[_0x2a87bb(0x47c)]],(_0x4f9490=_0x651c5e['colId'])==null?void 0x0:_0x4f9490[_0x18978a[_0x2a87bb(0x298)]]])];}));ht(_0x651c5e,_0x3e9451?(_0x65c071,_0x148121)=>_0x3e9451[_0x3a7cd8(0x3cf)](_0x148121)||_0x3304e6[_0x3a7cd8(0x3cf)](JSON[_0x3a7cd8(0x3d0)]([_0x65c071,_0x148121])):void 0x0);});},{'invalidations':_0x27db51[_0x12a27d(0x4be)]}),Ut(_0x554a49,_0x30bf5f),_0x554a49);}[_0x413924(0x447)](_0x5ddd9a,_0x197746){const _0x1cec95=_0x413924;return _0x2c18c4[_0x1cec95(0x378)][_0x1cec95(0x18c)](_0x197746,_0x5ddd9a);}[_0x413924(0x3a3)](_0x57ca2e){const _0x1aaf02=_0x413924;let _0x73b379=qt(_0x57ca2e);return _0x73b379['length']?Jt(_0x73b379[_0x1aaf02(0x4ac)](_0x42a0c4=>this[_0x1aaf02(0x3a3)](_0x42a0c4))):Wt(_0x57ca2e);}[_0x413924(0x197)](_0x2e235d,_0x47b479){const _0x5bc9f1=_0x413924;let _0x4fbbab=_0x47b479[_0x5bc9f1(0x457)](_0x26106f=>_0x26106f['reason']!==_0x5bc9f1(0x1e0));return _0x4fbbab[_0x5bc9f1(0x4be)]?_0x4fbbab[_0x5bc9f1(0x2e3)](_0x54c4af=>!_0x54c4af[_0x5bc9f1(0x2ca)])?Object[_0x5bc9f1(0x4ae)](_0x2e235d['tables']??{}):Array['from'](new Set(_0x4fbbab[_0x5bc9f1(0x438)](_0x58761d=>_0x58761d[_0x5bc9f1(0x2ca)])))[_0x5bc9f1(0x4ac)](_0x435d2c=>{const _0x3a3abe=_0x5bc9f1;var _0x52ffa9;let _0x4971a2=(_0x52ffa9=_0x2e235d[_0x3a3abe(0x28d)])==null?void 0x0:_0x52ffa9[_0x435d2c];return _0x4971a2?[_0x4971a2]:[];}):[];}};function Bt(_0x42d73e){const _0x14c47a=_0x413924;let _0xf720b6=_0x42d73e['params'];return _0x42d73e['id']!==_0x14c47a(0x15e)||typeof _0xf720b6!=_0x14c47a(0x441)||!_0xf720b6||!(_0x14c47a(0x2b9)in _0xf720b6)||typeof _0xf720b6['unitId']!='string'||!('op'in _0xf720b6)||!Array[_0x14c47a(0x348)](_0xf720b6['op'])?null:{'unitId':_0xf720b6[_0x14c47a(0x2b9)],'op':_0xf720b6['op']};}function Vt(_0x4216a1,_0x396b3d){const _0x3f889f=_0x413924;if(!_0x396b3d[_0x3f889f(0x4be)]||_0x396b3d['some'](_0x4f040e=>_0x4f040e[_0x3f889f(0x24f)]!=='cell'))return!0x1;let _0x7e32b9=new Map();for(let _0x474271 of _0x396b3d){if(!_0x474271[_0x3f889f(0x2ca)]||_0x474271[_0x3f889f(0x47c)]==null||_0x474271[_0x3f889f(0x298)]==null)continue;let _0x169aee=_0x7e32b9[_0x3f889f(0x113)](_0x474271[_0x3f889f(0x2ca)])??[];_0x169aee[_0x3f889f(0x34c)]({'row':_0x474271[_0x3f889f(0x47c)],'col':_0x474271[_0x3f889f(0x298)]}),_0x7e32b9['set'](_0x474271[_0x3f889f(0x2ca)],_0x169aee);}return _0x7e32b9[_0x3f889f(0x248)]((_0x4ab63d,_0x1f5394)=>{const _0xe5d5c4=_0x3f889f;var _0x3eb9d7;let _0x4a6b51=(_0x3eb9d7=_0x4216a1[_0xe5d5c4(0x28d)])==null?void 0x0:_0x3eb9d7[_0x1f5394];_0x4a6b51&>(_0x4a6b51,_0x4ab63d);}),!0x0;}function Ht(_0x4c96e2,_0x5469e3){const _0x3be98e=_0x413924;let _0x33237f=new Set();return _0x5469e3[_0x3be98e(0x4ac)](_0x19c5ac=>{const _0x3ce9bf=_0x3be98e;var _0x1e4aee;if(!_0x19c5ac[_0x3ce9bf(0x2ca)]||!_0x19c5ac[_0x3ce9bf(0x170)]||!_0x19c5ac[_0x3ce9bf(0x1c3)])return[];let _0x2754c8=_0x19c5ac[_0x3ce9bf(0x2ca)]+'\x1f'+_0x19c5ac['recordId']+'\x1f'+_0x19c5ac[_0x3ce9bf(0x1c3)];if(_0x33237f[_0x3ce9bf(0x3cf)](_0x2754c8))return[];_0x33237f[_0x3ce9bf(0x4c2)](_0x2754c8);let _0x5c0f96=(_0x1e4aee=_0x4c96e2[_0x3ce9bf(0x28d)][_0x19c5ac[_0x3ce9bf(0x2ca)]])==null||(_0x1e4aee=_0x1e4aee[_0x3ce9bf(0x3b4)][_0x19c5ac[_0x3ce9bf(0x170)]])==null?void 0x0:_0x1e4aee[_0x3ce9bf(0x4ae)];return _0x5c0f96?[{'tableId':_0x19c5ac[_0x3ce9bf(0x2ca)],'recordId':_0x19c5ac[_0x3ce9bf(0x170)],'fieldId':_0x19c5ac[_0x3ce9bf(0x1c3)],'exists':Object[_0x3ce9bf(0x24b)][_0x3ce9bf(0x128)][_0x3ce9bf(0x157)](_0x5c0f96,_0x19c5ac[_0x3ce9bf(0x1c3)]),'value':_0x5c0f96[_0x19c5ac[_0x3ce9bf(0x1c3)]]}]:[];});}function Ut(_0x395047,_0x3e9fb2){const _0x13a597=_0x413924;_0x3e9fb2[_0x13a597(0x248)](_0x4ddb5d=>{const _0x29835c=_0x13a597;var _0x455e38;let _0x36d267=(_0x455e38=_0x395047[_0x29835c(0x28d)][_0x4ddb5d[_0x29835c(0x2ca)]])==null||(_0x455e38=_0x455e38[_0x29835c(0x3b4)][_0x4ddb5d[_0x29835c(0x170)]])==null?void 0x0:_0x455e38[_0x29835c(0x4ae)];_0x36d267&&(_0x4ddb5d['exists']?_0x36d267[_0x4ddb5d['fieldId']]=_0x4ddb5d['value']:delete _0x36d267[_0x4ddb5d[_0x29835c(0x1c3)]]);});}function Wt(_0x29baa1){const _0x36d45b=_0x413924;if(!Array[_0x36d45b(0x348)](_0x29baa1)||_0x29baa1[_0x36d45b(0x4be)]<0x2)return[{'tableId':'','reason':_0x36d45b(0x239)}];let _0x1f48c9=_0x29baa1,_0x16f71a=_0x1f48c9[_0x36d45b(0x3ef)](_0x36d45b(0x28d));return _0x16f71a===-0x1||typeof _0x1f48c9[_0x16f71a+0x1]!=_0x36d45b(0x3f0)?_0x1f48c9[0x0]==='tableOrder'?[]:[{'tableId':'','reason':'unknown'}]:Gt(_0x1f48c9,_0x16f71a,String(_0x1f48c9[_0x16f71a+0x1]));}function Gt(_0xbef3df,_0x4d7030,_0x1ac470){const _0x3b495b=_0x413924;let _0x55f4e8=_0xbef3df[_0x4d7030+0x2];return _0x55f4e8===_0x3b495b(0x3b4)&&typeof _0xbef3df[_0x4d7030+0x3]==_0x3b495b(0x3f0)?Kt(_0xbef3df,_0x4d7030,_0x1ac470,String(_0xbef3df[_0x4d7030+0x3])):_0x55f4e8==='cellData'&&_0xbef3df[_0x4d7030+0x3]!=null&&_0xbef3df[_0x4d7030+0x4]!=null?[{'tableId':_0x1ac470,'reason':_0x3b495b(0x3c4),'row':Number(_0xbef3df[_0x4d7030+0x3]),'column':Number(_0xbef3df[_0x4d7030+0x4])}]:_0x55f4e8==='fields'&&typeof _0xbef3df[_0x4d7030+0x3]=='string'?[{'tableId':_0x1ac470,'reason':_0x3b495b(0x2b7),'fieldId':String(_0xbef3df[_0x4d7030+0x3])}]:_0x55f4e8===_0x3b495b(0x3fc)?[{'tableId':_0x1ac470,'reason':'field'}]:_0x55f4e8===_0x3b495b(0x1c6)?[{'tableId':_0x1ac470,'reason':_0x3b495b(0x1cf)}]:_0x55f4e8===_0x3b495b(0x379)&&typeof _0xbef3df[_0x4d7030+0x3]==_0x3b495b(0x3f0)?[{'tableId':_0x1ac470,'reason':_0x3b495b(0x1e0),'viewId':String(_0xbef3df[_0x4d7030+0x3])}]:_0x55f4e8===_0x3b495b(0x1f0)?[{'tableId':_0x1ac470,'reason':'view'}]:_0x55f4e8===_0x3b495b(0x228)?[{'tableId':_0x1ac470,'reason':'cell'}]:[{'tableId':_0x1ac470,'reason':_0x55f4e8===void 0x0?_0x3b495b(0x246):'unknown'}];}function Kt(_0x5d38ae,_0x3b4af3,_0x30a069,_0x26c69e){const _0x37c2fe=_0x413924;return _0x5d38ae[_0x3b4af3+0x4]===_0x37c2fe(0x4ae)&&typeof _0x5d38ae[_0x3b4af3+0x5]==_0x37c2fe(0x3f0)?[{'tableId':_0x30a069,'reason':'cell','recordId':_0x26c69e,'fieldId':String(_0x5d38ae[_0x3b4af3+0x5])}]:_0x5d38ae[_0x3b4af3+0x4]==='updatedAt'||_0x5d38ae[_0x3b4af3+0x4]==='updatedBy'?[]:[{'tableId':_0x30a069,'reason':_0x37c2fe(0x1cf),'recordId':_0x26c69e}];}function qt(_0x435fc0){const _0x1af348=_0x413924;if(!Array[_0x1af348(0x348)](_0x435fc0))return[];let _0x4b5321=_0x435fc0['filter'](Array[_0x1af348(0x348)]);if(_0x4b5321[_0x1af348(0x4be)]>0x1&&_0x4b5321[_0x1af348(0x4be)]===_0x435fc0[_0x1af348(0x4be)])return _0x4b5321;let _0x2a76b7=_0x435fc0[_0x1af348(0x262)](Array[_0x1af348(0x348)]);if(_0x2a76b7>0x0&&_0x435fc0['slice'](_0x2a76b7)[_0x1af348(0x23d)](Array[_0x1af348(0x348)])){let _0x343a3b=_0x435fc0[_0x1af348(0x3a7)](0x0,_0x2a76b7);return _0x435fc0[_0x1af348(0x3a7)](_0x2a76b7)['map'](_0x58dca5=>[..._0x343a3b,..._0x58dca5]);}let _0x1cc105=_0x435fc0[_0x1af348(0x3ef)](_0x1af348(0x28d));if(_0x1cc105===-0x1||typeof _0x435fc0[_0x1cc105+0x1]!='string')return[];let _0x253829=String(_0x435fc0[_0x1cc105+0x1]),_0x3dc30d=_0x435fc0[_0x1af348(0x3a7)](_0x1cc105+0x2)[_0x1af348(0x457)](Array[_0x1af348(0x348)]);return _0x3dc30d[_0x1af348(0x4be)]<=0x1?[]:_0x3dc30d[_0x1af348(0x438)](_0x4cdead=>[_0x1af348(0x28d),_0x253829,..._0x4cdead]);}function Jt(_0x2c47a5){const _0x53d875=_0x413924;let _0x20e6c0=new Set();return _0x2c47a5[_0x53d875(0x457)](_0x159d01=>{const _0xe875cd=_0x53d875;let _0x3ba155=JSON['stringify'](_0x159d01);return!_0x20e6c0[_0xe875cd(0x3cf)](_0x3ba155)&&(_0x20e6c0[_0xe875cd(0x4c2)](_0x3ba155),!0x0);});}function Yt(_0x2996e5){return _0x285054['deepClone'](_0x2996e5);}function Xt(_0x2db6ec,_0x11b949){const _0x36b173=_0x413924;let _0xcef055=Zt(_0x11b949);if(!_0xcef055[_0x36b173(0x4be)])return Yt(_0x2db6ec);let _0x537908=an(_0x2db6ec),_0x3554d4=new Set();for(let _0x487292 of _0xcef055)en(_0x537908,_0x487292,_0x3554d4);return _0x537908;}function Zt(_0x9b02da){let _0x5b4bfe=[];return Qt(_0x9b02da,[],_0x5b4bfe),_0x5b4bfe;}function Qt(_0x1ed798,_0x5667c6,_0x45e6c4){const _0x14c879=_0x413924;if(!Array['isArray'](_0x1ed798))return;let _0x11b8a4=[];for(let _0x1a62da of _0x1ed798){if(Array[_0x14c879(0x348)](_0x1a62da)){Qt(_0x1a62da,[..._0x5667c6,..._0x11b8a4],_0x45e6c4);continue;}if($t(_0x1a62da)){_0x45e6c4['push']([..._0x5667c6,..._0x11b8a4]);continue;}(typeof _0x1a62da==_0x14c879(0x3f0)||typeof _0x1a62da==_0x14c879(0x42c))&&_0x11b8a4[_0x14c879(0x34c)](_0x1a62da);}}function $t(_0xd69ff0){const _0x1807f0=_0x413924;if(!_0xd69ff0||typeof _0xd69ff0!=_0x1807f0(0x441)||Array['isArray'](_0xd69ff0))return!0x1;let _0x196c30=_0xd69ff0;return'i'in _0x196c30||'r'in _0x196c30||'p'in _0x196c30||'d'in _0x196c30||'es'in _0x196c30||_0x1807f0(0x2e0)in _0x196c30||'et'in _0x196c30;}function en(_0x1347d7,_0x39f38d,_0x1c679e){const _0x21963a=_0x413924;let _0x3a35b2=_0x1347d7,_0x431d1c=[];for(let _0x388a39=0x0;_0x388a39<_0x39f38d[_0x21963a(0x4be)]-0x1;_0x388a39++){let _0x595251=_0x39f38d[_0x388a39];_0x431d1c[_0x21963a(0x34c)](_0x595251);let _0x22ef1d=tn(_0x3a35b2,_0x595251);if(!rn(_0x22ef1d))return;let _0x1d6f88=JSON[_0x21963a(0x3d0)](_0x431d1c);_0x1c679e[_0x21963a(0x3cf)](_0x1d6f88)||(nn(_0x3a35b2,_0x595251,an(_0x22ef1d)),_0x1c679e[_0x21963a(0x4c2)](_0x1d6f88));let _0x354e77=tn(_0x3a35b2,_0x595251);if(!rn(_0x354e77))return;_0x3a35b2=_0x354e77;}}function tn(_0x3bec18,_0x3f5c8f){const _0x5e5e23=_0x413924;return Array[_0x5e5e23(0x348)](_0x3bec18)?typeof _0x3f5c8f=='number'?_0x3bec18[_0x3f5c8f]:void 0x0:Reflect[_0x5e5e23(0x113)](_0x3bec18,_0x3f5c8f);}function nn(_0x4ddc88,_0x332e75,_0x31cf84){const _0x4022f5=_0x413924;if(Array[_0x4022f5(0x348)](_0x4ddc88)){typeof _0x332e75==_0x4022f5(0x42c)&&(_0x4ddc88[_0x332e75]=_0x31cf84);return;}Reflect[_0x4022f5(0x404)](_0x4ddc88,_0x332e75,_0x31cf84);}function rn(_0x1a6a83){const _0x129ca6=_0x413924;return!!_0x1a6a83&&typeof _0x1a6a83==_0x129ca6(0x441);}function an(_0x35163b){const _0x3708b1=_0x413924;return Array['isArray'](_0x35163b)?_0x35163b[_0x3708b1(0x3a7)]():{..._0x35163b};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x413924(0x219),'yyyy-mm-dd':_0x413924(0x2ea),'mm-dd':_0x413924(0x387),'mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':_0x413924(0x25c),'mmm\x20d,\x20yyyy':_0x413924(0x1c7)};function B(_0x37362c,_0x18f867=_0x4b4a65['Date1900']){const _0x4c2321=_0x413924;let _0x1a610a=_0x2461bc(_0x37362c)[_0x4c2321(0x4c8)]();return _0x26e0e5(new Date(_0x1a610a),_0x18f867);}function ln(_0x257ee4,_0x4a337b=_0x4b4a65['Date1900']){return _0x1357ef(_0x257ee4,_0x4a337b)['getTime']();}function un(_0x209eb3,_0xdb5206=_0x4b4a65[_0x413924(0x2be)]){const _0x29dcc0=_0x413924;if(_0x209eb3==null||_0x209eb3==='')return null;if(_0x209eb3 instanceof Date)return B(_0x209eb3,_0xdb5206);if(typeof _0x209eb3==_0x29dcc0(0x42c))return Number[_0x29dcc0(0x479)](_0x209eb3)?_0x209eb3>0xf4240?B(_0x209eb3,_0xdb5206):_0x209eb3:null;let _0x3f6db2=Date['parse'](String(_0x209eb3));return Number[_0x29dcc0(0x483)](_0x3f6db2)?null:B(_0x3f6db2,_0xdb5206);}function dn(_0x18036d,_0x3814f2=_0x4b4a65[_0x413924(0x2be)]){let _0x27de57=un(_0x18036d,_0x3814f2);return _0x27de57==null?null:ln(_0x27de57,_0x3814f2);}function fn(_0x11cff7={}){const _0x165ff4=_0x413924;let _0x5e85df=String(_0x11cff7[_0x165ff4(0x34d)]??_0x11cff7[_0x165ff4(0x368)]??_0x11cff7[_0x165ff4(0x381)]??on)['trim']()||on,_0xafeb5b=sn[_0x165ff4(0x114)](_0x5e85df);return{'pattern':_0x5e85df[_0x165ff4(0x4c0)](sn,'')||on,'includeTime':typeof _0x11cff7[_0x165ff4(0x4cb)]==_0x165ff4(0x4d9)?_0x11cff7['includeTime']:_0xafeb5b,'hourCycle':_0x11cff7[_0x165ff4(0x1fe)]===_0x165ff4(0x2de)?_0x165ff4(0x2de):'h24'};}function pn(_0x3ff748={}){let {format:_0x2151dc,dateFormat:_0x4fc513,..._0x1ff8c6}=_0x3ff748;return{..._0x1ff8c6,...fn(_0x3ff748)};}function mn(_0x1efa79,_0x45c750={}){const _0x3b3ae7=_0x413924;let _0x225d11=dn(_0x1efa79);if(_0x225d11==null||!Number[_0x3b3ae7(0x479)](_0x225d11))return'';let _0x1e609d=fn(_0x45c750);return _0x2461bc(_0x225d11)['format'](hn(_0x1e609d));}function hn(_0x2bea36){const _0x2e46c2=_0x413924;let {pattern:_0x15d5e3,includeTime:_0x5eb7d1,hourCycle:_0x2150c1}=_0x2bea36,_0x18727a=cn[_0x15d5e3]??cn[on];return _0x5eb7d1?_0x18727a+'\x20'+(_0x2150c1===_0x2e46c2(0x2de)?_0x2e46c2(0x3fd):_0x2e46c2(0x19f)):_0x18727a;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x39ba8f[_0x413924(0x216)]]),V=0x5265c00;function vn(_0x416d2b){const _0x2361c9=_0x413924;switch(_0x416d2b){case _0x39ba8f[_0x2361c9(0x21b)]:case _0x39ba8f['Currency']:case _0x39ba8f[_0x2361c9(0x1a0)]:case _0x39ba8f[_0x2361c9(0x152)]:return[_0x44d66f['IS'],_0x44d66f['IS_NOT'],_0x44d66f[_0x2361c9(0x16a)],_0x44d66f[_0x2361c9(0x265)],_0x44d66f[_0x2361c9(0x41a)],_0x44d66f['IS_NOT_EMPTY']];case _0x39ba8f[_0x2361c9(0x2c9)]:case _0x39ba8f[_0x2361c9(0x3b2)]:case _0x39ba8f[_0x2361c9(0x1b6)]:return[_0x44d66f['IS'],_0x44d66f[_0x2361c9(0x4a4)],_0x44d66f[_0x2361c9(0x2cf)],_0x44d66f[_0x2361c9(0x432)],_0x44d66f[_0x2361c9(0x41a)],_0x44d66f[_0x2361c9(0x2c2)]];case _0x39ba8f[_0x2361c9(0x15d)]:return[_0x44d66f['IS'],_0x44d66f[_0x2361c9(0x4a4)]];default:return[_0x44d66f['IS'],_0x44d66f[_0x2361c9(0x4a4)],_0x44d66f[_0x2361c9(0x409)],_0x44d66f['NOT_CONTAINS'],_0x44d66f[_0x2361c9(0x41a)],_0x44d66f[_0x2361c9(0x2c2)]];}}function yn(_0x5c59a8){const _0x58c4f7=_0x413924;return _0x5c59a8===_0x39ba8f[_0x58c4f7(0x2c9)]||_0x5c59a8===_0x39ba8f[_0x58c4f7(0x3b2)]||_0x5c59a8===_0x39ba8f[_0x58c4f7(0x1b6)];}function bn(_0x5c10f6,_0x4d5484){const _0x4b649d=_0x413924;return _0x5c10f6==null&&_0x4d5484==null?0x0:_0x5c10f6==null?-0x1:_0x4d5484==null?0x1:typeof _0x5c10f6==_0x4b649d(0x42c)&&typeof _0x4d5484==_0x4b649d(0x42c)?_0x5c10f6-_0x4d5484:String(_0x5c10f6)[_0x4b649d(0x4ce)](String(_0x4d5484));}function xn(_0x170577,_0x281250,_0x2099d7,_0x4c523b,_0x48d10f={}){const _0x5ba6de=_0x413924;if(_0x281250==='isEmpty')return Sn(_0x170577);if(_0x281250===_0x5ba6de(0x2ed))return!Sn(_0x170577);switch(_0x4c523b[_0x5ba6de(0x378)]){case _0x39ba8f[_0x5ba6de(0x21b)]:case _0x39ba8f['Currency']:case _0x39ba8f['Progress']:case _0x39ba8f[_0x5ba6de(0x152)]:return Cn(_0x170577,_0x281250,_0x2099d7);case _0x39ba8f[_0x5ba6de(0x2c9)]:case _0x39ba8f[_0x5ba6de(0x3b2)]:case _0x39ba8f['UpdatedAt']:return Tn(_0x170577,_0x281250,_0x2099d7,_0x48d10f);case _0x39ba8f[_0x5ba6de(0x15d)]:return jn(_0x170577,_0x281250,_0x2099d7);case _0x39ba8f['SingleSelect']:case _0x39ba8f[_0x5ba6de(0x40c)]:case _0x39ba8f['Person']:case _0x39ba8f[_0x5ba6de(0x14f)]:return Nn(_0x170577,_0x281250,_0x2099d7,_0x4c523b);default:return Pn(_0x170577,_0x281250,_0x2099d7);}}function Sn(_0x14da59){const _0x2e337e=_0x413924;return _0x14da59==null?!0x0:Array['isArray'](_0x14da59)?_0x14da59[_0x2e337e(0x4be)]===0x0:typeof _0x14da59==_0x2e337e(0x3f0)&&_0x14da59[_0x2e337e(0x401)]()==='';}function Cn(_0x4ec096,_0x7c53d9,_0x43703d){const _0x83b88a=_0x413924;let _0x19b6b9=wn(_0x4ec096),_0x464510=wn(_0x43703d);if(_0x19b6b9==null||_0x464510==null)return!0x1;switch(_0x7c53d9){case'is':return _0x19b6b9===_0x464510;case _0x83b88a(0x2bc):return _0x19b6b9!==_0x464510;case _0x83b88a(0x243):return _0x19b6b9>_0x464510;case _0x83b88a(0x138):return _0x19b6b9>=_0x464510;case _0x83b88a(0x3a0):return _0x19b6b9<_0x464510;case _0x83b88a(0x16e):return _0x19b6b9<=_0x464510;default:return!0x1;}}function wn(_0x4d8da4){if(_0x4d8da4==null||_0x4d8da4==='')return null;let _0x21fd7e=Number(_0x4d8da4);return Number['isFinite'](_0x21fd7e)?_0x21fd7e:null;}function Tn(_0x55b18a,_0x3d295c,_0x2dc977,_0x41b578){const _0x51f1de=_0x413924;let _0x29ad9e=Dn(_0x55b18a);if(_0x29ad9e==null)return!0x1;let _0x598195=En(_0x41b578[_0x51f1de(0x308)]??_0x51f1de(0x43a),_0x2dc977,_0x41b578[_0x51f1de(0x24d)]);if(!_0x598195)return!0x1;switch(_0x3d295c){case'is':return _0x29ad9e>=_0x598195[_0x51f1de(0x166)]&&_0x29ad9e<=_0x598195[_0x51f1de(0x3c0)];case'isNot':return _0x29ad9e<_0x598195['start']||_0x29ad9e>_0x598195[_0x51f1de(0x3c0)];case _0x51f1de(0x340):return _0x29ad9e<_0x598195[_0x51f1de(0x166)];case _0x51f1de(0x188):return _0x29ad9e>_0x598195[_0x51f1de(0x3c0)];default:return!0x1;}}function En(_0x55ec71,_0x19df81,_0x260592=Date['now']()){const _0x1ca0bf=_0x413924;let _0x77170d=On(_0x260592);switch(_0x55ec71){case _0x1ca0bf(0x43a):{let _0x145e51=Dn(_0x19df81);return _0x145e51==null?null:{'start':_0x145e51,'end':_0x145e51+V-0x1};}case'today':return{'start':_0x77170d,'end':_0x77170d+V-0x1};case _0x1ca0bf(0x35e):return{'start':_0x77170d+V,'end':_0x77170d+V*0x2-0x1};case _0x1ca0bf(0x125):return{'start':_0x77170d-V,'end':_0x77170d-0x1};case _0x1ca0bf(0x33a):return kn(_0x77170d,0x0);case _0x1ca0bf(0x3a6):return kn(_0x77170d,-0x1);case'thisMonth':return An(_0x77170d,0x0);case _0x1ca0bf(0x1d1):return An(_0x77170d,-0x1);case _0x1ca0bf(0x1aa):return{'start':_0x77170d-V*0x6,'end':_0x77170d+V-0x1};case _0x1ca0bf(0x226):return{'start':_0x77170d,'end':_0x77170d+V*0x7-0x1};case _0x1ca0bf(0x144):return{'start':_0x77170d-V*0x1d,'end':_0x77170d+V-0x1};case _0x1ca0bf(0x3d7):return{'start':_0x77170d,'end':_0x77170d+V*0x1e-0x1};}}function Dn(_0x403eba){let _0x3d4211=un(_0x403eba);return _0x3d4211==null?null:On(ln(_0x3d4211));}function On(_0x104ed7){const _0x5a4b08=_0x413924;let _0x357fe9=new Date(_0x104ed7);return _0x357fe9[_0x5a4b08(0x213)](0x0,0x0,0x0,0x0),_0x357fe9[_0x5a4b08(0x1c4)]();}function kn(_0x4fc516,_0xf603f2){const _0x5b2c68=_0x413924;let _0x3c9c6f=_0x4fc516-(new Date(_0x4fc516)[_0x5b2c68(0x33d)]()+0x6)%0x7*V+_0xf603f2*V*0x7;return{'start':_0x3c9c6f,'end':_0x3c9c6f+V*0x7-0x1};}function An(_0x5d31b8,_0x4491e4){const _0x50fa35=_0x413924;let _0x885752=new Date(_0x5d31b8),_0x7ac8d0=new Date(_0x885752['getFullYear'](),_0x885752[_0x50fa35(0x473)]()+_0x4491e4,0x1),_0x55cc1b=new Date(_0x885752[_0x50fa35(0x37f)](),_0x885752['getMonth']()+_0x4491e4+0x1,0x1);return{'start':_0x7ac8d0['getTime'](),'end':_0x55cc1b[_0x50fa35(0x1c4)]()-0x1};}function jn(_0xb571c4,_0x2e39c3,_0x372c35){let _0x234b6d=Mn(_0xb571c4),_0x10faf0=Mn(_0x372c35);switch(_0x2e39c3){case'is':return _0x234b6d===_0x10faf0;case'isNot':return _0x234b6d!==_0x10faf0;default:return!0x1;}}function Mn(_0x4f35e4){return _0x4f35e4===!0x0||_0x4f35e4==='true'||_0x4f35e4===0x1||_0x4f35e4==='1';}function Nn(_0x53a9a5,_0x36f667,_0x150186,_0x4049f6){const _0x52881c=_0x413924;let _0x34bf7a=In(_0x53a9a5,_0x4049f6),_0x460843=In(_0x150186,_0x4049f6),_0x5afd6d=_0x460843['length']>0x0&&_0x460843['some'](_0x34afe2=>_0x34bf7a[_0x52881c(0x35f)](_0x34afe2));switch(_0x36f667){case'is':case _0x52881c(0x2cb):return _0x5afd6d;case _0x52881c(0x2bc):case _0x52881c(0x32e):return!_0x5afd6d;default:return!0x1;}}function Pn(_0x16bb6e,_0x3bc2f9,_0x3aea0e){const _0x2e7a5b=_0x413924;let _0x3a6592=Fn(_0x16bb6e),_0x56e58f=Fn(_0x3aea0e);switch(_0x3bc2f9){case'is':return _0x3a6592===_0x56e58f;case _0x2e7a5b(0x2bc):return _0x3a6592!==_0x56e58f;case _0x2e7a5b(0x2cb):return _0x56e58f?_0x3a6592['includes'](_0x56e58f):!0x1;case _0x2e7a5b(0x32e):return!_0x56e58f||!_0x3a6592[_0x2e7a5b(0x35f)](_0x56e58f);default:return!0x1;}}function Fn(_0x716d5a){const _0xd87555=_0x413924;if(Array[_0xd87555(0x348)](_0x716d5a))return _0x716d5a[_0xd87555(0x438)](_0xa5ee5b=>Fn(_0xa5ee5b))[_0xd87555(0x4bd)]('\x0a');if(_0x716d5a&&typeof _0x716d5a=='object'){let _0x26b6f6=_0x716d5a;return String(_0x26b6f6[_0xd87555(0x1f9)]??_0x26b6f6[_0xd87555(0x3e5)]??_0x26b6f6[_0xd87555(0x10d)]??_0x26b6f6[_0xd87555(0x277)]??_0x26b6f6['id']??'')['trim']()[_0xd87555(0x358)]();}return String(_0x716d5a??'')[_0xd87555(0x401)]()[_0xd87555(0x358)]();}function In(_0x402fbb,_0xcef5d5){const _0x2a6d65=_0x413924;let _0x296620=Ln(_0x402fbb),_0xff58cc=Rn(_0xcef5d5[_0x2a6d65(0x406)]??{});return _0x296620[_0x2a6d65(0x4ac)](_0x1addac=>_0xff58cc[_0x2a6d65(0x113)](_0x1addac)??[_0x1addac])[_0x2a6d65(0x457)]((_0x3268a1,_0x225287,_0x4c62a1)=>_0x3268a1!==''&&_0x4c62a1[_0x2a6d65(0x3ef)](_0x3268a1)===_0x225287);}function Ln(_0x433664){const _0x3e3146=_0x413924;if(_0x433664==null||_0x433664==='')return[];if(Array['isArray'](_0x433664))return _0x433664[_0x3e3146(0x4ac)](_0x395c69=>Ln(_0x395c69));if(_0x433664&&typeof _0x433664==_0x3e3146(0x441)){let _0xa5b055=_0x433664;return['id',_0x3e3146(0x1f9),_0x3e3146(0x3e5),'value','text'][_0x3e3146(0x4ac)](_0x263e00=>Ln(_0xa5b055[_0x263e00]))['filter']((_0x5a80ee,_0x30d6a9,_0xeead22)=>_0xeead22[_0x3e3146(0x3ef)](_0x5a80ee)===_0x30d6a9);}return[Fn(_0x433664)];}function Rn(_0x5772a6){const _0x555274=_0x413924;let _0x1238a0=new Map();return(Array[_0x555274(0x348)](_0x5772a6[_0x555274(0x1ed)])?_0x5772a6[_0x555274(0x1ed)]:[])[_0x555274(0x248)](_0x2cf1a5=>{const _0x11f8ce=_0x555274;if(!_0x2cf1a5||typeof _0x2cf1a5!=_0x11f8ce(0x441))return;let _0x4db59f=Ln(_0x2cf1a5),_0x3738b0=_0x4db59f[_0x11f8ce(0x457)]((_0x36dd6d,_0x571b2a)=>_0x36dd6d!==''&&_0x4db59f['indexOf'](_0x36dd6d)===_0x571b2a);_0x3738b0[_0x11f8ce(0x248)](_0xca51de=>_0x1238a0['set'](_0xca51de,_0x3738b0));}),_0x1238a0;}function H(_0x2b2ed7,_0x4ae4c5={},_0xec020c=_0x21ebf4=>_0x21ebf4,_0x326007={}){const _0x119287=_0x413924;let _0x2a4494=!_n[_0x119287(0x3cf)](_0x2b2ed7),_0x19baf3=_0xec020c??(_0x4e5b10=>_0x4e5b10);return{'type':_0x2b2ed7,'i18nKey':_0x119287(0x1ad)+_0x2b2ed7,'enabled':_0x2a4494,'visibleInCreateMenu':_0x2a4494,'createDefaultConfig':_0x326007[_0x119287(0x36b)]??(()=>({})),'createDefaultValue':_0x326007[_0x119287(0x225)]??(_0x217fa0=>_0x217fa0[_0x119287(0x43c)]??null),'normalize':(_0x2563e6,_0x46e0e2)=>_0x19baf3(_0x2563e6,_0x46e0e2),'validate':(_0x107a64,_0x4838eb)=>{const _0x3903f2=_0x119287;var _0xfb252e;return _0x2a4494?((_0xfb252e=_0x326007[_0x3903f2(0x3df)])==null?void 0x0:_0xfb252e[_0x3903f2(0x157)](_0x326007,_0x107a64,_0x4838eb))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x23daff,_0x3463f8)=>bn(_0x23daff,_0x3463f8),'filter':(_0x234918,_0x4561c8,_0x180f88,_0x3a5c71)=>xn(_0x234918,_0x4561c8,_0x180f88,_0x3a5c71),'toPlainText':_0x326007['toPlainText']??(_0x330cee=>_0x330cee==null?'':String(_0x330cee)),'fromPlainText':_0x326007[_0x119287(0x45e)]??(_0x5384c9=>_0x19baf3(_0x5384c9,{'id':'','name':'','type':_0x2b2ed7,'config':{}})),'getCapabilities':()=>({...gn,..._0x4ae4c5,'editable':_0x2a4494&&(_0x4ae4c5['editable']??gn[_0x119287(0x15f)])})};}function zn(){const _0x4e63b1=_0x413924;return[H(_0x39ba8f[_0x4e63b1(0x496)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x4e63b1(0x199)}),'createDefaultValue':_0x58d9c4=>_0x58d9c4[_0x4e63b1(0x43c)]??''}),H(_0x39ba8f[_0x4e63b1(0x183)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0xd105ed=>_0xd105ed==null||_0xd105ed===''?null:String(_0xd105ed),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x4e63b1(0x423)}})}),H(_0x39ba8f[_0x4e63b1(0x40c)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x52db57=>Array[_0x4e63b1(0x348)](_0x52db57)?_0x52db57[_0x4e63b1(0x438)](String):_0x52db57==null?[]:[String(_0x52db57)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}}),'createDefaultValue':_0x2087f3=>_0x2087f3['defaultValue']??[]}),H(_0x39ba8f[_0x4e63b1(0x3e7)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x4e63b1(0x1e1)}),'validate':Gn}),H(_0x39ba8f[_0x4e63b1(0x14f)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x4e63b1(0x151)}),'createDefaultValue':_0x267bf3=>_0x267bf3['defaultValue']??[],'validate':Kn}),H(_0x39ba8f[_0x4e63b1(0x2c9)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x2045f8=>un(_0x2045f8),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x39ba8f['Attachment'],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x29f892=>_0x29f892==null?[]:Array[_0x4e63b1(0x348)](_0x29f892)?_0x29f892:[_0x29f892],{'createDefaultValue':_0x3bd34f=>_0x3bd34f[_0x4e63b1(0x43c)]??[]}),H(_0x39ba8f[_0x4e63b1(0x21b)],{},_0x821666=>_0x821666==null||_0x821666===''?null:Number(_0x821666),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x39ba8f[_0x4e63b1(0x15d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x569dce=>_0x569dce===!0x0||_0x569dce===_0x4e63b1(0x436)||_0x569dce===0x1||_0x569dce==='1',{'createDefaultConfig':()=>({'icon':_0x4e63b1(0x343),'color':'#16a34a'}),'createDefaultValue':_0x5c6662=>_0x5c6662['defaultValue']??!0x1,'validate':_0x5d8ed6=>typeof _0x5d8ed6==_0x4e63b1(0x4d9)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4e63b1(0x173)}}),H(_0x39ba8f['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x4e63b1(0x12d)}),'toPlainText':_0x17f9d1=>Zn(_0x17f9d1),'fromPlainText':_0x627160=>Xn(_0x627160)}),H(_0x39ba8f[_0x4e63b1(0x1fa)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x4e63b1(0x33e),'pattern':_0x4e63b1(0x293)}}),'createDefaultValue':()=>null}),H(_0x39ba8f[_0x4e63b1(0x20e)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x4e63b1(0x42b)}),'createDefaultValue':()=>null}),H(_0x39ba8f[_0x4e63b1(0x4c6)],{'usableAsTitle':!0x0},_0x16369f=>_0x16369f==null?null:String(_0x16369f)[_0x4e63b1(0x401)](),{'validate':_0x15c3ee=>_0x15c3ee==null||_0x15c3ee===''||/^\+?[0-9 ()-]{6,20}$/[_0x4e63b1(0x114)](String(_0x15c3ee))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4e63b1(0x18a)}}),H(_0x39ba8f[_0x4e63b1(0x290)],{'usableAsTitle':!0x0},_0x35e5f3=>_0x35e5f3==null?null:String(_0x35e5f3)[_0x4e63b1(0x401)](),{'validate':_0x1f2705=>_0x1f2705==null||_0x1f2705===''||$n(String(_0x1f2705))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20email\x20value.'}}),H(_0x39ba8f[_0x4e63b1(0x1a0)],{'usableAsGanttProgress':!0x0},_0x36184d=>_0x36184d==null||_0x36184d===''?null:Number(_0x36184d),{'createDefaultConfig':()=>({'format':_0x4e63b1(0x44e),'decimalPlaces':0x0,'color':'blue','customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x558ddf,_0x55a96f)=>Yn(_0x558ddf,_0x55a96f,_0x4e63b1(0x2d7))}),H(_0x39ba8f[_0x4e63b1(0x374)],{},_0xdebab5=>_0xdebab5==null||_0xdebab5===''?null:Number(_0xdebab5),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x39ba8f['Rating'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0xf0e934=>_0xf0e934==null||_0xf0e934===''?null:Number(_0xf0e934),{'createDefaultConfig':()=>({'icon':_0x4e63b1(0x35b),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x431604,_0x3a6ebb)=>Yn(_0x431604,_0x3a6ebb,_0x4e63b1(0x4cd))}),H(_0x39ba8f['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x3a9e1f,_0x3ec939)=>ze(_0x3a9e1f,_0x3ec939[_0x4e63b1(0x406)][_0x4e63b1(0x41b)]===!0x0)}),H(_0x39ba8f[_0x4e63b1(0x216)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x39ba8f['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x4904cc=>_0x4904cc==null?null:String(_0x4904cc),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),H(_0x39ba8f['UpdatedBy'],{'editable':!0x1,'groupable':!0x0},_0x339ce3=>_0x339ce3==null?null:String(_0x339ce3),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),H(_0x39ba8f[_0x4e63b1(0x3b2)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x31595a=>un(_0x31595a),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x39ba8f[_0x4e63b1(0x1b6)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x457a2e=>un(_0x457a2e),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x32df62=_0x413924;return{'pattern':_0x32df62(0x2a0),'decimalPlaces':0x2,'separatorStyle':_0x32df62(0x373),'useThousands':!0x0,'abbreviation':_0x32df62(0x48b),'allowNegative':!0x0};}function Vn(){const _0xf56847=_0x413924;return{'locale':_0xf56847(0x2c8),'pattern':_0xf56847(0x33c),'includeTime':!0x1,'hourCycle':_0xf56847(0x37b),'defaultMode':_0xf56847(0x48b)};}function Hn(_0x2621cf){const _0x50dd18=_0x413924;return _0x2621cf==null||_0x2621cf===''?[]:Array['isArray'](_0x2621cf)?_0x2621cf[_0x50dd18(0x438)](String):[String(_0x2621cf)];}function Un(_0x2f4e19){const _0x1c8c21=_0x413924;return typeof _0x2f4e19==_0x1c8c21(0x3f0)?_0x2f4e19:'';}function Wn(_0x4f14d2,_0x25d144){const _0x58b3dd=_0x413924;return _0x4f14d2==null||_0x4f14d2===''?_0x25d144[_0x58b3dd(0x406)][_0x58b3dd(0x35c)]===!0x0?[]:null:_0x25d144[_0x58b3dd(0x406)]['allowMultiple']===!0x0?Array[_0x58b3dd(0x348)](_0x4f14d2)?_0x4f14d2[_0x58b3dd(0x438)](String):[String(_0x4f14d2)]:Array[_0x58b3dd(0x348)](_0x4f14d2)?String(_0x4f14d2[0x0]??'')||null:String(_0x4f14d2);}function Gn(_0x480ad8,_0x50cfcc){const _0x283329=_0x413924;return _0x50cfcc['config'][_0x283329(0x35c)]===!0x0?Kn(_0x480ad8):_0x480ad8==null||_0x480ad8===''||typeof _0x480ad8==_0x283329(0x3f0)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x283329(0x429)};}function Kn(_0x16f232){const _0x6a186=_0x413924;return _0x16f232==null||Array['isArray'](_0x16f232)&&_0x16f232['every'](_0x2aaaca=>typeof _0x2aaaca==_0x6a186(0x3f0))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x6a186(0x22b)};}function qn(_0x105091){const _0x3e35bd=_0x413924;return _0x105091==null||typeof _0x105091=='number'&&Number['isFinite'](_0x105091)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3e35bd(0x2c1)};}function Jn(_0xf19393,_0x4db25d){const _0xcbd088=_0x413924;return _0xf19393==null||_0xf19393===''?{'valid':!0x0}:typeof _0xf19393!=_0xcbd088(0x42c)||!Number[_0xcbd088(0x479)](_0xf19393)?{'valid':!0x1,'reason':_0xcbd088(0x27a)}:_0x4db25d[_0xcbd088(0x406)][_0xcbd088(0x270)]===!0x1&&_0xf19393<0x0?{'valid':!0x1,'reason':_0xcbd088(0x2b4)}:{'valid':!0x0};}function Yn(_0x3a1d94,_0x3dc931,_0x5e6d98){const _0x5c606a=_0x413924;let _0x28408e=Jn(_0x3a1d94,_0x3dc931);if(!_0x28408e[_0x5c606a(0x3e2)]||_0x3a1d94==null||_0x3a1d94==='')return _0x28408e;let _0x109165=Number(_0x3dc931[_0x5c606a(0x406)][_0x5c606a(0x256)]??_0x3dc931[_0x5c606a(0x406)][_0x5c606a(0x166)]??0x0),_0x40f828=Number(_0x3dc931[_0x5c606a(0x406)][_0x5c606a(0x487)]??_0x3dc931['config']['end']??0x64),_0x22badc=Number(_0x3a1d94);return _0x22badc>=_0x109165&&_0x22badc<=_0x40f828?{'valid':!0x0}:{'valid':!0x1,'reason':_0x5e6d98};}function Xn(_0x4bca1d){const _0x255d84=_0x413924;if(_0x4bca1d==null||_0x4bca1d==='')return null;if(typeof _0x4bca1d==_0x255d84(0x441)&&!Array[_0x255d84(0x348)](_0x4bca1d)){let _0x4cc44d=_0x4bca1d,_0x11ccee=typeof _0x4cc44d[_0x255d84(0x10d)]=='string'?_0x4cc44d[_0x255d84(0x10d)]['trim']():'',_0x110d86=typeof _0x4cc44d[_0x255d84(0x194)]==_0x255d84(0x3f0)?_0x4cc44d[_0x255d84(0x194)]['trim']():'',_0x4c14e1=Qn(_0x110d86||_0x11ccee);return _0x4c14e1?{'text':_0x11ccee||_0x110d86||_0x4c14e1,'url':_0x4c14e1}:null;}let _0x180f76=String(_0x4bca1d)[_0x255d84(0x401)](),_0x1d40c6=Qn(_0x180f76);return _0x1d40c6?{'text':_0x180f76,'url':_0x1d40c6}:null;}function Zn(_0x258901){const _0x1c1297=_0x413924;if(_0x258901==null)return'';if(typeof _0x258901==_0x1c1297(0x441)&&!Array['isArray'](_0x258901)){let _0x5f5ad5=_0x258901;return String(_0x5f5ad5[_0x1c1297(0x10d)]||_0x5f5ad5['url']||'');}return String(_0x258901);}function Qn(_0x56a1e0){const _0x227596=_0x413924;let _0x116bed=_0x56a1e0[_0x227596(0x401)]();if(!_0x116bed)return'';let _0x84810f=/^[a-z][a-z\d+.-]*:/i[_0x227596(0x114)](_0x116bed)?_0x116bed:_0x116bed['startsWith']('//')?'https:'+_0x116bed:'https://'+_0x116bed;try{let _0x268278=new URL(_0x84810f);return _0x268278['protocol']===_0x227596(0x49f)||_0x268278[_0x227596(0x275)]===_0x227596(0x1b1)?_0x268278[_0x227596(0x168)]:'';}catch{return'';}}function $n(_0x589958){const _0x17c9be=_0x413924;let _0x1f31a1=_0x589958[_0x17c9be(0x3ef)]('@');if(_0x1f31a1<=0x0||_0x1f31a1!==_0x589958['lastIndexOf']('@'))return!0x1;let _0x142cc0=_0x589958[_0x17c9be(0x3a7)](_0x1f31a1+0x1);return _0x142cc0['includes']('.')&&!_0x589958['includes']('\x20')&&!_0x142cc0['startsWith']('.')&&!_0x142cc0[_0x17c9be(0x27b)]('.');}const U={'table':_0x5863d2=>[_0x413924(0x28d),_0x5863d2],'field':(_0x4d4a91,_0x37a630)=>[_0x413924(0x28d),_0x4d4a91,_0x413924(0x175),_0x37a630],'fieldOrder':(_0x559d3c,_0x3b2058)=>['tables',_0x559d3c,'fieldOrder',_0x3b2058],'record':(_0x2b5aa8,_0x72a5e9)=>['tables',_0x2b5aa8,'records',_0x72a5e9],'cell':(_0xfde95,_0xe89cf0,_0x1f5126)=>[_0x413924(0x28d),_0xfde95,'records',_0xe89cf0,_0x413924(0x4ae),_0x1f5126],'cellData':(_0x2b739d,_0x33d77a,_0x32cec9)=>['tables',_0x2b739d,'cellData',String(_0x33d77a),String(_0x32cec9)],'attachmentSet':(_0x2d4b72,_0x3b1b09)=>[_0x413924(0x28d),_0x2d4b72,_0x413924(0x228),_0x413924(0x4c9),_0x3b1b09],'attachment':(_0x398977,_0x1567f4)=>[_0x413924(0x28d),_0x398977,_0x413924(0x228),_0x413924(0x28c),_0x1567f4],'view':(_0x122ea2,_0x21528f)=>['tables',_0x122ea2,_0x413924(0x379),_0x21528f],'viewFieldHidden':(_0x43c113,_0x277a2e,_0x2423e6)=>[_0x413924(0x28d),_0x43c113,_0x413924(0x379),_0x277a2e,_0x413924(0x468),_0x2423e6,_0x413924(0x287)]};var W=class{[_0x413924(0x419)](_0x283cd9,_0x3c977b){const _0x2812b4=_0x413924;let _0x34b8cd=this[_0x2812b4(0x264)](_0x283cd9,_0x283cd9[_0x2812b4(0x1f9)],_0x3c977b);return R([this[_0x2812b4(0x39a)](['name'],_0x283cd9['name'],_0x3c977b),..._0x34b8cd?[_0x34b8cd]:[]]);}['renameFormulaUnitReferences'](_0x57c27b,_0x16ebf4,_0x786075){const _0x3f3f1f=_0x413924;let _0xefcf5=Object['values'](_0x57c27b[_0x3f3f1f(0x28d)])['flatMap'](_0x276d24=>Object[_0x3f3f1f(0x4ae)](_0x276d24[_0x3f3f1f(0x175)])[_0x3f3f1f(0x4ac)](_0x3f22d0=>{const _0x4056ec=_0x3f3f1f;var _0xdf8443,_0x112958;if(_0x3f22d0[_0x4056ec(0x378)]!==_0x39ba8f[_0x4056ec(0x1fa)])return[];let _0x241729=String(((_0xdf8443=_0x3f22d0['config'])==null?void 0x0:_0xdf8443['formula'])??''),_0x3f6589=_0x4c0fd4(_0x241729,_0x16ebf4,_0x786075);return _0x3f6589===_0x241729?[]:[this['_replaceOptional']([...U[_0x4056ec(0x2b7)](_0x276d24['id'],_0x3f22d0['id']),'config',_0x4056ec(0x49b)],(_0x112958=_0x3f22d0[_0x4056ec(0x406)])==null?void 0x0:_0x112958[_0x4056ec(0x49b)],_0x3f6589)];}));return _0xefcf5[_0x3f3f1f(0x4be)]>0x0?R(_0xefcf5):void 0x0;}['createTable'](_0x5c9c0a,_0x2c9e5f,_0x374c4d=_0x5c9c0a[_0x413924(0x2af)][_0x413924(0x4be)]){const _0x15bb3e=_0x413924;let _0x3b5c3b=_0x4128dd(_0x2c9e5f[_0x15bb3e(0x1f9)],_0x429055(_0x5c9c0a)[_0x15bb3e(0x4ae)](),_0x2c9e5f[_0x15bb3e(0x150)]),_0x4b80f1=_0x2c9e5f[_0x15bb3e(0x150)]===_0x3b5c3b?_0x2c9e5f:{..._0x2c9e5f,'formulaName':_0x3b5c3b};return R([...this[_0x15bb3e(0x19d)](_0x5c9c0a),_0x2c18c4[_0x15bb3e(0x4a5)](U[_0x15bb3e(0x246)](_0x2c9e5f['id']),_0x4b80f1),_0x2c18c4['insertOp']([_0x15bb3e(0x2af),_0x374c4d],_0x2c9e5f['id'])]);}['renameTable'](_0x795ca,_0x3020dc,_0x154a12){const _0x52e407=_0x413924;let _0x17a376=_0x795ca['tables'][_0x3020dc];return R([...this[_0x52e407(0x19d)](_0x795ca),_0x2c18c4[_0x52e407(0x41c)]([...U['table'](_0x3020dc),_0x52e407(0x1f9)],_0x17a376[_0x52e407(0x1f9)],_0x154a12)]);}[_0x413924(0x390)](_0x28e409,_0x11dc0a){const _0xb4c5e2=_0x413924;let _0x341d6e=_0x28e409['tables'][_0x11dc0a],_0x36816d=_0x28e409[_0xb4c5e2(0x2af)][_0xb4c5e2(0x3ef)](_0x11dc0a);return R([...this['_materializeFormulaTableNames'](_0x28e409,new Set([_0x11dc0a])),_0x2c18c4['removeOp'](U['table'](_0x11dc0a),_0x341d6e),_0x2c18c4[_0xb4c5e2(0x458)](['tableOrder',_0x36816d],_0x11dc0a)]);}[_0x413924(0x484)](_0x38acd4,_0x3daede,_0x11b5e4){const _0x5366f7=_0x413924;return this[_0x5366f7(0x350)](_0x38acd4,_0x3daede,[_0x11b5e4]);}[_0x413924(0x350)](_0x515e23,_0x183320,_0x3cad7a){const _0x18831a=_0x413924;let _0x3dcc40=_0x515e23[_0x18831a(0x28d)][_0x183320],_0x49fe30=_0x3cad7a[_0x18831a(0x457)](_0x22c718=>_0x22c718&&!_0x3dcc40['records'][_0x22c718['id']])[_0x18831a(0x438)](_0x100334=>({..._0x100334,'values':{..._0x100334[_0x18831a(0x4ae)],[_0x3f46af]:_0x100334['id']}}));if(!_0x49fe30[_0x18831a(0x4be)])return _0x2c18c4[_0x18831a(0x41c)]([...U[_0x18831a(0x246)](_0x183320),_0x18831a(0x3b4)],_0x3dcc40['records'],_0x3dcc40[_0x18831a(0x3b4)]);let _0x110382=new _0x2c18c4[(_0x18831a(0x182))](),_0x3da5d7=[..._0x49fe30]['sort']((_0x3fdc2f,_0x5db966)=>_0x3fdc2f['id']<_0x5db966['id']?-0x1:+(_0x3fdc2f['id']>_0x5db966['id'])),_0x216bd2=[...U[_0x18831a(0x246)](_0x183320),_0x18831a(0x3b4)];_0x110382[_0x18831a(0x115)](_0x216bd2);for(let _0x43cd8c of _0x3da5d7)_0x110382[_0x18831a(0x18e)](_0x43cd8c['id']),_0x110382[_0x18831a(0x15a)]('i',_0x43cd8c),_0x110382[_0x18831a(0x2f3)]();for(let _0xda3431=0x0;_0xda3431<_0x216bd2[_0x18831a(0x4be)];_0xda3431+=0x1)_0x110382[_0x18831a(0x2f3)]();return R([_0x110382[_0x18831a(0x113)](),this[_0x18831a(0x2da)](_0x515e23,_0x183320,_0x49fe30)]);}[_0x413924(0x31a)](_0x3bb444,_0x13a66f,_0x1541f3){const _0x31da13=_0x413924;return this[_0x31da13(0x1a3)](_0x3bb444,_0x13a66f,[_0x1541f3]);}[_0x413924(0x1a3)](_0xe94104,_0x796f30,_0x3e5276){const _0x2aa050=_0x413924;let _0x2c1df8=_0xe94104[_0x2aa050(0x28d)][_0x796f30],_0x2113f4=Array[_0x2aa050(0x2f6)](new Set(_0x3e5276))[_0x2aa050(0x457)](_0x10df68=>_0x2c1df8[_0x2aa050(0x3b4)][_0x10df68]);if(!_0x2113f4[_0x2aa050(0x4be)])return _0x2c18c4[_0x2aa050(0x41c)]([...U[_0x2aa050(0x246)](_0x796f30),_0x2aa050(0x3b4)],_0x2c1df8[_0x2aa050(0x3b4)],_0x2c1df8[_0x2aa050(0x3b4)]);let _0xdb3ccf=new Set(_0x2113f4),_0x35eab4=et(_0x2c1df8,_0x2113f4)['map'](_0x1111a1=>this['updateCell'](_0xe94104,_0x796f30,_0x1111a1[_0x2aa050(0x170)],_0x1111a1[_0x2aa050(0x1c3)],''));return R([this[_0x2aa050(0x1d0)](_0xe94104,_0x796f30,_0x2113f4,_0xdb3ccf),..._0x35eab4]);}[_0x413924(0x241)](_0x14f91c,_0x2812cb,_0x475744,_0x230a8a){const _0x1441a8=_0x413924;let _0x127c8d=_0x14f91c[_0x1441a8(0x28d)][_0x475744],_0x12d4a6=Array['from'](new Set(_0x230a8a))['filter'](_0xeed7d6=>_0x127c8d[_0x1441a8(0x3b4)][_0xeed7d6]),_0x3731b2=new Set(_0x12d4a6);return R([new z()[_0x1441a8(0x447)](_0x14f91c,this[_0x1441a8(0x1d0)](_0x14f91c,_0x475744,_0x12d4a6,_0x3731b2)),...et(_0x127c8d,_0x12d4a6)[_0x1441a8(0x438)](_0x56c1cb=>this['updateCell'](_0x2812cb,_0x475744,_0x56c1cb['recordId'],_0x56c1cb['fieldId'],_0x56c1cb['oldParentRecordId']??''))]);}['_deleteRecordsBaseOp'](_0x1801be,_0x3965ab,_0x1a58da,_0x49b896){const _0xb8d493=_0x413924;let _0x2c1704=_0x1801be[_0xb8d493(0x28d)][_0x3965ab],_0x2fbd76=_0x1a58da[_0xb8d493(0x438)](_0x5c7a92=>{const _0x5d27fc=_0xb8d493;var _0x8b6f58;return{'recordId':_0x5c7a92,'index':((_0x8b6f58=_0x2c1704[_0x5d27fc(0x1c6)])==null?void 0x0:_0x8b6f58['indexOf'](_0x5c7a92))??-0x1};})[_0xb8d493(0x457)](_0x178b62=>_0x178b62[_0xb8d493(0x319)]>=0x0)[_0xb8d493(0x116)]((_0x1b084b,_0x2c081a)=>_0x2c081a[_0xb8d493(0x319)]-_0x1b084b[_0xb8d493(0x319)]);return R([..._0x1a58da['map'](_0x5f330a=>_0x2c18c4[_0xb8d493(0x458)](U[_0xb8d493(0x1cf)](_0x3965ab,_0x5f330a),_0x2c1704['records'][_0x5f330a])),..._0x2fbd76[_0xb8d493(0x438)](({recordId:_0x376702,index:_0x5e0b10})=>_0x2c18c4[_0xb8d493(0x458)]([_0xb8d493(0x28d),_0x3965ab,_0xb8d493(0x1c6),_0x5e0b10],_0x376702)),...this['_deleteAttachmentResources'](_0x2c1704,_0x3965ab,_0xc0c552=>{const _0x23bdf4=_0xb8d493;let _0x37ad38=_0xc0c552[_0x23bdf4(0x3a7)](_0xc0c552[_0x23bdf4(0x2b6)]('\x1f')+0x1);return _0x49b896['has'](_0x37ad38);})]);}[_0x413924(0x283)](_0x1369e0,_0x1ba603,_0x525d1c,_0xf87c9f){const _0x2be0c0=_0x413924;return this[_0x2be0c0(0x484)](_0x1369e0,_0x1ba603,{..._0xf87c9f,'values':{..._0x1369e0['tables'][_0x1ba603]['records'][_0x525d1c]['values'],..._0xf87c9f[_0x2be0c0(0x4ae)],[_0x3f46af]:_0xf87c9f['id']}});}['updateRecordOrder'](_0x44af3f,_0x8b9de1,_0x5443d5,_0x4b1a93){const _0x522d9c=_0x413924;let _0x26fe28=_0x44af3f[_0x522d9c(0x28d)][_0x8b9de1],_0x47171b=[...U['record'](_0x8b9de1,_0x5443d5),_0x522d9c(0x124)],_0x153273=Object[_0x522d9c(0x4ae)](_0x26fe28[_0x522d9c(0x3b4)])['map'](_0x41049=>_0x41049['id']===_0x5443d5?{..._0x41049,'orderKey':_0x4b1a93}:_0x41049)[_0x522d9c(0x116)]((_0x3db91d,_0x18c339)=>String(_0x3db91d[_0x522d9c(0x124)]??_0x3db91d['id'])['localeCompare'](String(_0x18c339[_0x522d9c(0x124)]??_0x18c339['id'])))[_0x522d9c(0x438)](_0x2f7954=>_0x2f7954['id']),_0x4875c9=[...U[_0x522d9c(0x246)](_0x8b9de1),'recordOrder'];return R([this['_replaceOptional'](_0x47171b,_0x26fe28[_0x522d9c(0x3b4)][_0x5443d5][_0x522d9c(0x124)],_0x4b1a93),_0x26fe28['recordOrder']?_0x2c18c4[_0x522d9c(0x41c)](_0x4875c9,_0x26fe28[_0x522d9c(0x1c6)],_0x153273):_0x2c18c4[_0x522d9c(0x4a5)](_0x4875c9,_0x153273)]);}[_0x413924(0x301)](_0x109712,_0x2fa415,_0x1e5ae1,_0x5dca7a,_0x4d0165){const _0x5f31fb=_0x413924;var _0x1c049c,_0x3d4d6f;let _0x503195=_0x109712['tables'][_0x2fa415],_0x32a1a3=ar(_0x503195,_0x1e5ae1,_0x5dca7a)?_0x503195:L(_0x503195),_0x3a1141=(_0x1c049c=_0x32a1a3[_0x5f31fb(0x12b)])==null?void 0x0:_0x1c049c[_0x1e5ae1],_0x4ff871=(_0x3d4d6f=_0x32a1a3[_0x5f31fb(0x4a2)])==null?void 0x0:_0x3d4d6f[_0x5dca7a];if(_0x3a1141==null||_0x4ff871==null){var _0x11dee0;return this['_replaceOptional'](U['cell'](_0x2fa415,_0x1e5ae1,_0x5dca7a),(_0x11dee0=_0x109712[_0x5f31fb(0x28d)][_0x2fa415])==null||(_0x11dee0=_0x11dee0[_0x5f31fb(0x3b4)][_0x1e5ae1])==null?void 0x0:_0x11dee0[_0x5f31fb(0x4ae)][_0x5dca7a],_0x4d0165);}return this['setRangeValues'](_0x109712,_0x2fa415,[{'row':_0x3a1141,'col':_0x4ff871,'value':_0x4d0165}]);}[_0x413924(0x1de)](_0x490aae,_0x2ff647,_0x5bf50e){const _0x4affe8=_0x413924;let _0x29ac72=_0x490aae[_0x4affe8(0x28d)][_0x2ff647],_0xbcfcc4=_0x5bf50e['every'](_0x5c0a13=>Object[_0x4affe8(0x3a2)](_0x5c0a13[_0x4affe8(0x4ae)])['every'](_0x3c4967=>ar(_0x29ac72,_0x5c0a13[_0x4affe8(0x170)],_0x3c4967)))?_0x29ac72:L(_0x29ac72),_0x438ebb=_0x5bf50e['flatMap'](_0x45fc47=>Object['entries'](_0x45fc47[_0x4affe8(0x4ae)])[_0x4affe8(0x4ac)](([_0xea65c,_0x6d1d2f])=>{const _0x18be51=_0x4affe8;var _0x21a73a,_0x413e62;let _0x3f3900=(_0x21a73a=_0xbcfcc4[_0x18be51(0x12b)])==null?void 0x0:_0x21a73a[_0x45fc47[_0x18be51(0x170)]],_0x1daa97=(_0x413e62=_0xbcfcc4[_0x18be51(0x4a2)])==null?void 0x0:_0x413e62[_0xea65c];return _0x3f3900==null||_0x1daa97==null?[]:[{'row':_0x3f3900,'col':_0x1daa97,'value':_0x6d1d2f}];})),_0xa67472=_0x5bf50e['flatMap'](_0x4eb42f=>Object['entries'](_0x4eb42f[_0x4affe8(0x1b2)]??{})[_0x4affe8(0x438)](([_0x35a980,_0x20cf08])=>{const _0x1099f3=_0x4affe8;var _0x20a799;let _0x26e858=[...U[_0x1099f3(0x1cf)](_0x2ff647,_0x4eb42f[_0x1099f3(0x170)]),_0x35a980],_0x5c9199=(_0x20a799=_0x490aae[_0x1099f3(0x28d)][_0x2ff647])==null||(_0x20a799=_0x20a799[_0x1099f3(0x3b4)][_0x4eb42f[_0x1099f3(0x170)]])==null?void 0x0:_0x20a799[_0x35a980];return this[_0x1099f3(0x39a)](_0x26e858,_0x5c9199,_0x20cf08);}));return R([this['setRangeValues'](_0x490aae,_0x2ff647,_0x438ebb),..._0xa67472]);}[_0x413924(0x153)](_0x38b477,_0x2354f2,_0x48f95b){const _0xde580c=_0x413924;let _0x4709b5=_0x38b477['tables'][_0x2354f2],_0x59a1ee=_0x48f95b['every'](_0x38b4de=>or(_0x4709b5,_0x38b4de[_0xde580c(0x47c)],_0x38b4de['col']))?_0x4709b5:L(_0x4709b5),_0x219357=new Map(),_0x40a8d5=_0x48f95b[_0xde580c(0x4ac)](_0x406905=>{const _0x8f2969=_0xde580c;var _0x3290fc,_0x5ca134,_0x1a5899,_0x3a83f9;let _0x6f97ea=(_0x3290fc=_0x59a1ee[_0x8f2969(0x16c)])==null?void 0x0:_0x3290fc[_0x406905[_0x8f2969(0x44d)]],_0x4ea7f1=(_0x5ca134=_0x59a1ee[_0x8f2969(0x3ce)])==null?void 0x0:_0x5ca134[_0x406905[_0x8f2969(0x47c)]],_0x37e1db=_0x6f97ea?_0x59a1ee[_0x8f2969(0x175)][_0x6f97ea]:void 0x0;if(_0x6f97ea===_0x3f46af||(_0x37e1db==null?void 0x0:_0x37e1db[_0x8f2969(0x378)])===_0x39ba8f[_0x8f2969(0x216)])throw Error(_0x8f2969(0x427));let _0x2fbd65=xt(_0x406905['value'],_0x37e1db),_0x157d0c=(_0x1a5899=_0x59a1ee[_0x8f2969(0x260)])==null||(_0x1a5899=_0x1a5899[_0x406905[_0x8f2969(0x47c)]])==null?void 0x0:_0x1a5899[_0x406905[_0x8f2969(0x44d)]],_0x1520b4=this[_0x8f2969(0x39a)](U[_0x8f2969(0x260)](_0x2354f2,_0x406905[_0x8f2969(0x47c)],_0x406905[_0x8f2969(0x44d)]),_0x157d0c,_0x2fbd65);if(!_0x6f97ea||!_0x4ea7f1)return[_0x1520b4];let _0x4e1221=(_0x3a83f9=_0x59a1ee[_0x8f2969(0x3b4)][_0x4ea7f1])==null?void 0x0:_0x3a83f9['values'][_0x6f97ea],_0x31e593=(_0x37e1db==null?void 0x0:_0x37e1db['type'])===_0x39ba8f[_0x8f2969(0x2ba)]?kt(_0x406905[_0x8f2969(0x277)]):wt(_0x406905[_0x8f2969(0x277)],_0x2fbd65,_0x37e1db,_0x59a1ee,_0x4ea7f1),_0x41ced9=[_0x1520b4,this[_0x8f2969(0x39a)](U[_0x8f2969(0x3c4)](_0x2354f2,_0x4ea7f1,_0x6f97ea),_0x4e1221,_0x31e593)];return(_0x37e1db==null?void 0x0:_0x37e1db['type'])===_0x39ba8f[_0x8f2969(0x2ba)]&&_0x219357['set'](Et(_0x6f97ea,_0x4ea7f1),{'recordId':_0x4ea7f1,'fieldId':_0x6f97ea,'attachments':_0x31e593}),_0x41ced9;});return _0x40a8d5['length']?R([..._0x40a8d5,...this['_setAttachmentResources'](_0x59a1ee,_0x2354f2,Array[_0xde580c(0x2f6)](_0x219357[_0xde580c(0x4ae)]()))]):_0x2c18c4['replaceOp']([_0xde580c(0x28d),_0x2354f2,'cellData'],_0x59a1ee[_0xde580c(0x260)],_0x59a1ee[_0xde580c(0x260)]);}[_0x413924(0x4d5)](_0xb07499,_0x27da21,_0x429820){const _0x96446c=_0x413924;let _0xb7a48e=_0xb07499['tables'][_0x27da21];if(_0xb7a48e['fields'][_0x429820[_0x96446c(0x2b7)]['id']]||_0xb7a48e[_0x96446c(0x3fc)]['includes'](_0x429820[_0x96446c(0x2b7)]['id']))return _0x2c18c4['replaceOp']([_0x96446c(0x28d),_0x27da21,_0x96446c(0x3fc)],_0xb7a48e['fieldOrder'],_0xb7a48e[_0x96446c(0x3fc)]);let _0x44263b=Math[_0x96446c(0x487)](0x1,_0x429820[_0x96446c(0x319)]??_0xb7a48e[_0x96446c(0x3fc)][_0x96446c(0x4be)]),_0x41eedb=Object['values'](_0xb7a48e[_0x96446c(0x379)]??{})[_0x96446c(0x4ac)](_0x54b6f5=>{const _0xfcbee5=_0x96446c;var _0x351e11;if(!_0x54b6f5[_0xfcbee5(0x3fc)]||_0x54b6f5[_0xfcbee5(0x3fc)][_0xfcbee5(0x35f)](_0x429820[_0xfcbee5(0x2b7)]['id']))return[];let _0x15b7e5=ur(((_0x351e11=_0x429820['viewIndexes'])==null?void 0x0:_0x351e11[_0x54b6f5['id']])??_0x44263b,_0x54b6f5['fieldOrder'][_0xfcbee5(0x4be)]);return[_0x2c18c4[_0xfcbee5(0x4a5)]([...U['view'](_0x27da21,_0x54b6f5['id']),_0xfcbee5(0x3fc),_0x15b7e5],_0x429820[_0xfcbee5(0x2b7)]['id'])];});return R([..._0x429820[_0x96446c(0x2b7)][_0x96446c(0x378)]===_0x39ba8f[_0x96446c(0x1fa)]?this[_0x96446c(0x19d)](_0xb07499):[],_0x2c18c4['insertOp'](U['field'](_0x27da21,_0x429820[_0x96446c(0x2b7)]['id']),_0x429820['field']),_0x2c18c4[_0x96446c(0x4a5)](U[_0x96446c(0x3fc)](_0x27da21,_0x44263b),_0x429820['field']['id']),..._0x41eedb]);}[_0x413924(0x1f2)](_0x3713ba,_0x59ed59,_0x211c82,_0x9b7d82){const _0x3231cd=_0x413924;let _0x979a00=_0x3713ba['tables'][_0x59ed59];if(!_0x979a00[_0x3231cd(0x175)][_0x211c82]||_0x979a00[_0x3231cd(0x175)][_0x9b7d82[_0x3231cd(0x2b7)]['id']]||_0x979a00[_0x3231cd(0x3fc)][_0x3231cd(0x35f)](_0x9b7d82[_0x3231cd(0x2b7)]['id']))return _0x2c18c4[_0x3231cd(0x41c)](['tables',_0x59ed59,'fieldOrder'],_0x979a00[_0x3231cd(0x3fc)],_0x979a00['fieldOrder']);let _0x1d49cf=_0x9b7d82[_0x3231cd(0x319)]??_0x979a00['fieldOrder'][_0x3231cd(0x3ef)](_0x211c82)+0x1,_0xd75f7b=_0x979a00['fieldOrder']['filter'](_0x593b80=>_0x593b80!==_0x9b7d82['field']['id']),_0x5c547b=cr(_0xd75f7b,_0x9b7d82[_0x3231cd(0x2b7)]['id'],_0x1d49cf),_0x465795=Object['values'](_0x979a00[_0x3231cd(0x379)]??{})[_0x3231cd(0x4ac)](_0x430aa0=>{const _0x459802=_0x3231cd;var _0x1a7cce,_0x292c48,_0x2210ce,_0x45bec9;let _0x197762=(_0x1a7cce=_0x430aa0[_0x459802(0x3fc)])!=null&&_0x1a7cce[_0x459802(0x4be)]?_0x430aa0[_0x459802(0x3fc)]:_0xd75f7b;if(_0x197762[_0x459802(0x35f)](_0x9b7d82['field']['id']))return[];let _0x2446fe=cr(_0x197762,_0x9b7d82[_0x459802(0x2b7)]['id'],((_0x292c48=_0x9b7d82[_0x459802(0x1c5)])==null?void 0x0:_0x292c48[_0x430aa0['id']])??_0x1d49cf),_0x217617=(_0x2210ce=_0x430aa0['fieldSettings'])==null?void 0x0:_0x2210ce[_0x211c82];return[this[_0x459802(0x39a)]([...U[_0x459802(0x1e0)](_0x59ed59,_0x430aa0['id']),_0x459802(0x3fc)],_0x430aa0[_0x459802(0x3fc)],_0x2446fe),..._0x217617?[this[_0x459802(0x39a)]([...U[_0x459802(0x1e0)](_0x59ed59,_0x430aa0['id']),_0x459802(0x468),_0x9b7d82[_0x459802(0x2b7)]['id']],(_0x45bec9=_0x430aa0[_0x459802(0x468)])==null?void 0x0:_0x45bec9[_0x9b7d82[_0x459802(0x2b7)]['id']],_0x217617)]:[]];}),_0x196361=Object[_0x3231cd(0x4ae)](_0x979a00[_0x3231cd(0x3b4)])[_0x3231cd(0x457)](_0x6c5547=>Object['prototype'][_0x3231cd(0x128)]['call'](_0x6c5547[_0x3231cd(0x4ae)],_0x211c82))['map'](_0x5b8276=>this['_replaceOptional'](U['cell'](_0x59ed59,_0x5b8276['id'],_0x9b7d82[_0x3231cd(0x2b7)]['id']),_0x5b8276[_0x3231cd(0x4ae)][_0x9b7d82[_0x3231cd(0x2b7)]['id']],_0x5b8276[_0x3231cd(0x4ae)][_0x211c82]));return R([..._0x9b7d82[_0x3231cd(0x2b7)][_0x3231cd(0x378)]===_0x39ba8f[_0x3231cd(0x1fa)]?this[_0x3231cd(0x19d)](_0x3713ba):[],_0x2c18c4[_0x3231cd(0x4a5)](U[_0x3231cd(0x2b7)](_0x59ed59,_0x9b7d82[_0x3231cd(0x2b7)]['id']),_0x9b7d82[_0x3231cd(0x2b7)]),_0x2c18c4[_0x3231cd(0x41c)]([_0x3231cd(0x28d),_0x59ed59,_0x3231cd(0x3fc)],_0x979a00[_0x3231cd(0x3fc)],_0x5c547b),..._0x465795,..._0x196361]);}[_0x413924(0x29c)](_0x50acc7,_0x3672b1,_0x31f5ca,_0x1e1fdb){const _0x53949c=_0x413924;let _0x3a211b=_0x50acc7[_0x53949c(0x28d)][_0x3672b1][_0x53949c(0x175)][_0x31f5ca],_0x4ba1f7={..._0x3a211b,..._0x1e1fdb};Object[_0x53949c(0x3a2)](_0x1e1fdb)[_0x53949c(0x248)](_0x4b743b=>{_0x1e1fdb[_0x4b743b]===void 0x0&&delete _0x4ba1f7[_0x4b743b];});let _0x22e060=er(_0x50acc7[_0x53949c(0x28d)][_0x3672b1],_0x31f5ca,_0x3a211b,_0x4ba1f7);_0x4ba1f7=_0x22e060['field'];let _0x41d149=_0x2c18c4[_0x53949c(0x41c)](U[_0x53949c(0x2b7)](_0x3672b1,_0x31f5ca),_0x3a211b,_0x4ba1f7);return _0x4ba1f7['type']===_0x39ba8f[_0x53949c(0x1fa)]?R([...this[_0x53949c(0x19d)](_0x50acc7),_0x41d149,...this[_0x53949c(0x34e)](_0x50acc7,_0x3672b1,_0x31f5ca,_0x4ba1f7)]):R([_0x41d149,..._0x22e060[_0x53949c(0x159)]['length']?[this[_0x53949c(0x153)](_0x50acc7,_0x3672b1,_0x22e060[_0x53949c(0x159)])]:[]]);}['changeFieldType'](_0x4ae7c7,_0x501d52,_0x2921a6,_0x35b025){const _0x400a7f=_0x413924;return this[_0x400a7f(0x29c)](_0x4ae7c7,_0x501d52,_0x2921a6,_0x35b025);}['deleteField'](_0x5b4bc2,_0x52dfcc,_0x20d852){const _0x37f916=_0x413924;let _0x413b72=_0x5b4bc2[_0x37f916(0x28d)][_0x52dfcc];if(!(_0x413b72!=null&&_0x413b72[_0x37f916(0x175)][_0x20d852])||_0x413b72[_0x37f916(0x426)]===_0x20d852||_0x20d852===_0x3f46af)return _0x2c18c4[_0x37f916(0x41c)]([_0x37f916(0x28d),_0x52dfcc,_0x37f916(0x3fc)],_0x413b72==null?void 0x0:_0x413b72[_0x37f916(0x3fc)],_0x413b72==null?void 0x0:_0x413b72[_0x37f916(0x3fc)]);let _0x10a434=_0x413b72[_0x37f916(0x3fc)][_0x37f916(0x3ef)](_0x20d852),_0x2d1efe=Object[_0x37f916(0x4ae)](_0x413b72[_0x37f916(0x379)])['flatMap'](_0x2da319=>{const _0x3dcb58=_0x37f916;var _0x4f76b2,_0x50c82d,_0x456f91,_0x5c7ad8,_0xb91d8e,_0x1eeeb2,_0x8ca96e;let _0x3f69c9=[],_0x3634bc=((_0x4f76b2=_0x2da319['fieldOrder'])==null?void 0x0:_0x4f76b2[_0x3dcb58(0x3ef)](_0x20d852))??-0x1;_0x3634bc>=0x0&&_0x3f69c9[_0x3dcb58(0x34c)](_0x2c18c4[_0x3dcb58(0x458)]([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),_0x3dcb58(0x3fc),_0x3634bc],_0x20d852));let _0x44bfbb=(_0x50c82d=_0x2da319[_0x3dcb58(0x468)])==null?void 0x0:_0x50c82d[_0x20d852];_0x44bfbb!==void 0x0&&_0x3f69c9[_0x3dcb58(0x34c)](_0x2c18c4[_0x3dcb58(0x458)]([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),_0x3dcb58(0x468),_0x20d852],_0x44bfbb));let _0x363b03=_0x2da319['filter']?{..._0x2da319[_0x3dcb58(0x457)],'conditions':_0x2da319[_0x3dcb58(0x457)][_0x3dcb58(0x31c)][_0x3dcb58(0x457)](_0x74455b=>_0x74455b['fieldId']!==_0x20d852)}:_0x2da319[_0x3dcb58(0x457)];_0x363b03&&_0x363b03[_0x3dcb58(0x31c)][_0x3dcb58(0x4be)]!==((_0x456f91=_0x2da319[_0x3dcb58(0x457)])==null?void 0x0:_0x456f91[_0x3dcb58(0x31c)][_0x3dcb58(0x4be)])&&_0x3f69c9['push'](this['_replaceOptional']([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),_0x3dcb58(0x457)],_0x2da319['filter'],_0x363b03));let _0x4189e6=(_0x5c7ad8=_0x2da319[_0x3dcb58(0x116)])==null?void 0x0:_0x5c7ad8[_0x3dcb58(0x457)](_0x5ecce5=>_0x5ecce5[_0x3dcb58(0x1c3)]!==_0x20d852);_0x4189e6&&_0x4189e6[_0x3dcb58(0x4be)]!==((_0xb91d8e=_0x2da319[_0x3dcb58(0x116)])==null?void 0x0:_0xb91d8e['length'])&&_0x3f69c9['push'](this[_0x3dcb58(0x39a)]([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),'sort'],_0x2da319[_0x3dcb58(0x116)],_0x4189e6));let _0x22633a=(_0x1eeeb2=_0x2da319['group'])==null?void 0x0:_0x1eeeb2[_0x3dcb58(0x457)](_0x7556bf=>_0x7556bf[_0x3dcb58(0x1c3)]!==_0x20d852);_0x22633a&&_0x22633a[_0x3dcb58(0x4be)]!==((_0x8ca96e=_0x2da319[_0x3dcb58(0x151)])==null?void 0x0:_0x8ca96e[_0x3dcb58(0x4be)])&&_0x3f69c9['push'](this[_0x3dcb58(0x39a)]([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),_0x3dcb58(0x151)],_0x2da319['group'],_0x22633a));let _0x40d963=lr(_0x2da319[_0x3dcb58(0x406)],_0x20d852);return JSON[_0x3dcb58(0x3d0)](_0x40d963)!==JSON[_0x3dcb58(0x3d0)](_0x2da319[_0x3dcb58(0x406)])&&_0x3f69c9[_0x3dcb58(0x34c)](_0x2c18c4[_0x3dcb58(0x41c)]([...U[_0x3dcb58(0x1e0)](_0x52dfcc,_0x2da319['id']),_0x3dcb58(0x406)],_0x2da319[_0x3dcb58(0x406)],_0x40d963)),_0x3f69c9;}),_0x21b01d=Object[_0x37f916(0x4ae)](_0x413b72['records'])[_0x37f916(0x4ac)](_0x47eea0=>Object['prototype'][_0x37f916(0x128)][_0x37f916(0x157)](_0x47eea0[_0x37f916(0x4ae)],_0x20d852)?[_0x2c18c4[_0x37f916(0x458)](U[_0x37f916(0x3c4)](_0x52dfcc,_0x47eea0['id'],_0x20d852),_0x47eea0[_0x37f916(0x4ae)][_0x20d852])]:[]);return R([_0x2c18c4['removeOp'](U[_0x37f916(0x2b7)](_0x52dfcc,_0x20d852),_0x413b72[_0x37f916(0x175)][_0x20d852]),_0x2c18c4[_0x37f916(0x458)](U['fieldOrder'](_0x52dfcc,_0x10a434),_0x20d852),..._0x2d1efe,..._0x21b01d,...this[_0x37f916(0x475)](_0x413b72,_0x52dfcc,_0x5e4493=>_0x5e4493[_0x37f916(0x36e)](_0x20d852+'\x1f'))]);}['moveField'](_0x649a09,_0x2daf60,_0x4527a7,_0x1d5045){const _0x51a064=_0x413924;let _0x40f820=_0x649a09[_0x51a064(0x28d)][_0x2daf60][_0x51a064(0x3fc)];if(_0x4527a7===_0x3f46af||_0x1d5045['beforeFieldId']===_0x3f46af)throw Error(_0x51a064(0x320));let _0x244f96=sr(_0x40f820,_0x4527a7,_0x1d5045);return _0x2c18c4[_0x51a064(0x41c)]([_0x51a064(0x28d),_0x2daf60,_0x51a064(0x3fc)],_0x40f820,_0x244f96);}[_0x413924(0x2ff)](_0x17bee6,_0x2d7d9e,_0x2c1dc1,_0x29fbcc=_0x17bee6[_0x413924(0x28d)][_0x2d7d9e][_0x413924(0x1f0)][_0x413924(0x4be)]){const _0x4ad24a=_0x413924;return R([_0x2c18c4[_0x4ad24a(0x4a5)](U['view'](_0x2d7d9e,_0x2c1dc1['id']),_0x2c1dc1),_0x2c18c4[_0x4ad24a(0x4a5)]([_0x4ad24a(0x28d),_0x2d7d9e,_0x4ad24a(0x1f0),_0x29fbcc],_0x2c1dc1['id'])]);}[_0x413924(0x366)](_0x22289c,_0x302b11,_0x1e59b6,_0x3df98f){const _0x476e5e=_0x413924;return _0x2c18c4[_0x476e5e(0x41c)]([...U[_0x476e5e(0x1e0)](_0x302b11,_0x1e59b6),_0x476e5e(0x1f9)],_0x22289c['tables'][_0x302b11][_0x476e5e(0x379)][_0x1e59b6]['name'],_0x3df98f);}[_0x413924(0x245)](_0x1a411b,_0x1aa30c,_0x1d3245){const _0x1e5df1=_0x413924;let _0x541c71=_0x1a411b[_0x1e5df1(0x28d)][_0x1aa30c],_0x88b9de=_0x541c71['views'][_0x1d3245],_0x6b5012=_0x541c71['viewOrder'][_0x1e5df1(0x3ef)](_0x1d3245);return R([_0x2c18c4[_0x1e5df1(0x458)](U['view'](_0x1aa30c,_0x1d3245),_0x88b9de),_0x2c18c4[_0x1e5df1(0x458)](['tables',_0x1aa30c,'viewOrder',_0x6b5012],_0x1d3245)]);}[_0x413924(0x1a7)](_0x5f383e,_0x55b561,_0x5d6bb2,_0xf439c1){const _0x43376d=_0x413924;let _0x165811=_0x5f383e['tables'][_0x55b561]['viewOrder'],_0x5f28c7=sr(_0x165811,_0x5d6bb2,{'beforeFieldId':_0xf439c1[_0x43376d(0x3c9)],'afterFieldId':_0xf439c1[_0x43376d(0x25b)]});return _0x2c18c4[_0x43376d(0x41c)](['tables',_0x55b561,_0x43376d(0x1f0)],_0x165811,_0x5f28c7);}[_0x413924(0x2f8)](_0x34038e,_0x5079d6,_0x516acc,_0x52541d){const _0x28c8ab=_0x413924;let _0x1ce80c=_0x34038e[_0x28c8ab(0x28d)][_0x5079d6][_0x28c8ab(0x379)][_0x516acc][_0x28c8ab(0x406)]??{},_0x817937={..._0x1ce80c,..._0x52541d};return Object[_0x28c8ab(0x3a2)](_0x52541d)[_0x28c8ab(0x248)](_0x39e5d9=>{_0x52541d[_0x39e5d9]===void 0x0&&delete _0x817937[_0x39e5d9];}),_0x2c18c4[_0x28c8ab(0x41c)]([...U[_0x28c8ab(0x1e0)](_0x5079d6,_0x516acc),_0x28c8ab(0x406)],_0x1ce80c,_0x817937);}['setViewFilter'](_0x3c0113,_0xebb552,_0x4718f4,_0x445e82){const _0xab39e6=_0x413924;return this[_0xab39e6(0x39a)]([...U[_0xab39e6(0x1e0)](_0xebb552,_0x4718f4),_0xab39e6(0x457)],_0x3c0113[_0xab39e6(0x28d)][_0xebb552][_0xab39e6(0x379)][_0x4718f4][_0xab39e6(0x457)],_0x445e82);}[_0x413924(0x329)](_0xe124be,_0x59a61b,_0x31db3e,_0x561db6){const _0x4da427=_0x413924;return this[_0x4da427(0x39a)]([...U[_0x4da427(0x1e0)](_0x59a61b,_0x31db3e),_0x4da427(0x116)],_0xe124be[_0x4da427(0x28d)][_0x59a61b][_0x4da427(0x379)][_0x31db3e]['sort'],_0x561db6);}['setViewGroup'](_0x1e3a69,_0x217d61,_0x13f991,_0x24c3b6){const _0x3cab9a=_0x413924;return this[_0x3cab9a(0x39a)]([...U['view'](_0x217d61,_0x13f991),_0x3cab9a(0x151)],_0x1e3a69[_0x3cab9a(0x28d)][_0x217d61]['views'][_0x13f991][_0x3cab9a(0x151)],_0x24c3b6);}[_0x413924(0x37d)](_0xe9ba20,_0x2e629d,_0x590ef7,_0x1f8171,_0x4895c3){const _0x3d9e4f=_0x413924;return this[_0x3d9e4f(0x489)](_0xe9ba20,_0x2e629d,_0x590ef7,_0x1f8171,{'hidden':!_0x4895c3});}[_0x413924(0x3ae)](_0x5480b1,_0x42cdcc,_0xb3d9a5,_0x35fc33,_0x2109f4){const _0x30632f=_0x413924;return this[_0x30632f(0x489)](_0x5480b1,_0x42cdcc,_0xb3d9a5,_0x35fc33,{'width':_0x2109f4});}[_0x413924(0x22c)](_0x20a012,_0x2b9305,_0x23ac20,_0x219a7a,_0x2f5d3b){const _0x38baf8=_0x413924;let _0x433d44=_0x20a012[_0x38baf8(0x28d)][_0x2b9305]['views'][_0x23ac20],_0x5df9a0=sr(_0x433d44[_0x38baf8(0x3fc)]??_0x20a012[_0x38baf8(0x28d)][_0x2b9305]['fieldOrder'],_0x219a7a,_0x2f5d3b);return this[_0x38baf8(0x39a)]([...U['view'](_0x2b9305,_0x23ac20),_0x38baf8(0x3fc)],_0x433d44[_0x38baf8(0x3fc)],_0x5df9a0);}['_setViewFieldSetting'](_0x15354d,_0x2cdc31,_0x20199b,_0x295a8c,_0x1b8dd4){const _0xfde40a=_0x413924;let _0x36f3f2=_0x15354d['tables'][_0x2cdc31][_0xfde40a(0x379)][_0x20199b][_0xfde40a(0x468)]??{},_0x33fa43={..._0x36f3f2,[_0x295a8c]:{..._0x36f3f2[_0x295a8c],..._0x1b8dd4}};return this[_0xfde40a(0x39a)]([...U[_0xfde40a(0x1e0)](_0x2cdc31,_0x20199b),_0xfde40a(0x468)],_0x15354d[_0xfde40a(0x28d)][_0x2cdc31]['views'][_0x20199b]['fieldSettings'],_0x33fa43);}[_0x413924(0x2da)](_0x5eb1fa,_0x368abd,_0x1032a0){const _0x3ecaa0=_0x413924;let _0x59ec0e=_0x5eb1fa['tables'][_0x368abd],_0x5c1157=new Set(_0x1032a0[_0x3ecaa0(0x438)](_0x4a7358=>_0x4a7358['id'])),_0x4d8b79=[...Object[_0x3ecaa0(0x4ae)](_0x59ec0e[_0x3ecaa0(0x3b4)])[_0x3ecaa0(0x457)](_0x12fda1=>!_0x5c1157[_0x3ecaa0(0x3cf)](_0x12fda1['id'])),..._0x1032a0]['sort']((_0x587878,_0x2e609e)=>String(_0x587878['orderKey']??_0x587878['id'])['localeCompare'](String(_0x2e609e[_0x3ecaa0(0x124)]??_0x2e609e['id'])))[_0x3ecaa0(0x438)](_0x4c2d0c=>_0x4c2d0c['id']),_0x34ae10=[...U[_0x3ecaa0(0x246)](_0x368abd),_0x3ecaa0(0x1c6)];return _0x59ec0e[_0x3ecaa0(0x1c6)]?_0x2c18c4[_0x3ecaa0(0x41c)](_0x34ae10,_0x59ec0e[_0x3ecaa0(0x1c6)],_0x4d8b79):_0x2c18c4[_0x3ecaa0(0x4a5)](_0x34ae10,_0x4d8b79);}[_0x413924(0x19d)](_0x22d124,_0x2918bf=new Set()){const _0xb2728a=_0x413924;let _0x3a2764=_0x429055(_0x22d124);return Object[_0xb2728a(0x4ae)](_0x22d124[_0xb2728a(0x28d)])[_0xb2728a(0x457)](_0x6170c4=>!_0x2918bf['has'](_0x6170c4['id']))[_0xb2728a(0x116)]((_0x221a35,_0x51cfde)=>_0x221a35['id'][_0xb2728a(0x4ce)](_0x51cfde['id']))[_0xb2728a(0x4ac)](_0x4b33d7=>{const _0x3e1391=_0xb2728a;let _0x476baf=_0x3a2764[_0x3e1391(0x113)](_0x4b33d7['id']);return!_0x476baf||_0x4b33d7[_0x3e1391(0x150)]===_0x476baf?[]:[this[_0x3e1391(0x39a)]([...U['table'](_0x4b33d7['id']),_0x3e1391(0x150)],_0x4b33d7[_0x3e1391(0x150)],_0x476baf)];});}[_0x413924(0x34e)](_0x3d415c,_0x1214f9,_0x3a47c3,_0x202cc2){const _0x5582fb=_0x413924;var _0x620360,_0x21c433;let _0x3bdbe7=L(_0x3d415c[_0x5582fb(0x28d)][_0x1214f9]),_0xfddf95=String(((_0x620360=_0x202cc2[_0x5582fb(0x406)])==null?void 0x0:_0x620360[_0x5582fb(0x49b)])??'')[_0x5582fb(0x401)](),_0x3e3ce4=(_0x21c433=_0x3bdbe7[_0x5582fb(0x4a2)])==null?void 0x0:_0x21c433[_0x3a47c3];if(_0x3e3ce4==null)return[];let _0x42ca17=_0x3bdbe7[_0x5582fb(0x1c6)]??Object[_0x5582fb(0x3a2)](_0x3bdbe7[_0x5582fb(0x3b4)]),_0x5da4f9=_0x42ca17[_0x5582fb(0x438)](_0x3c4b7b=>{var _0x277d61;return(_0x277d61=_0x3bdbe7['rowIndex'])==null?void 0x0:_0x277d61[_0x3c4b7b];})[_0x5582fb(0x196)](_0xd2efe9=>_0xd2efe9!=null);return _0x42ca17['flatMap'](_0x5e0b83=>{const _0x24169a=_0x5582fb;var _0x32b8bb,_0x12f199;let _0x18512d=(_0x32b8bb=_0x3bdbe7[_0x24169a(0x12b)])==null?void 0x0:_0x32b8bb[_0x5e0b83];if(_0x18512d==null)return[];let _0x1462e0=(_0x12f199=_0x3bdbe7[_0x24169a(0x260)])==null||(_0x12f199=_0x12f199[_0x18512d])==null?void 0x0:_0x12f199[_0x3e3ce4],_0x33a611=_0xfddf95?_0x18512d===_0x5da4f9?{'f':_0xfddf95,'si':_0x3a47c3}:{'si':_0x3a47c3}:{'v':null,'t':null};return[this[_0x24169a(0x39a)](U['cellData'](_0x1214f9,_0x18512d,_0x3e3ce4),_0x1462e0,_0x33a611)];});}[_0x413924(0x123)](_0x3c79a4,_0xe2813b,_0x59633c){const _0x3fce0c=_0x413924;var _0x49415c;let _0x3db659=new Map(Object[_0x3fce0c(0x391)](((_0x49415c=_0x3c79a4[_0x3fce0c(0x228)])==null?void 0x0:_0x49415c[_0x3fce0c(0x4c9)])??{})),_0x148db0=new Map(),_0x32b0c6=new Set(),_0x2164bf=_0x59633c[_0x3fce0c(0x438)](({recordId:_0x5733e0,fieldId:_0x53faf9,attachments:_0x1280d2})=>{const _0x364572=_0x3fce0c;var _0x12be6d;let _0x2f6009=Et(_0x53faf9,_0x5733e0),_0x37a175=_0x1280d2['map']((_0x35c003,_0x2638a0)=>String(_0x35c003['id']??_0x2f6009+'\x1f'+_0x2638a0));return _0x32b0c6[_0x364572(0x4c2)](_0x2f6009),_0x3db659[_0x364572(0x404)](_0x2f6009,_0x37a175),_0x1280d2[_0x364572(0x248)]((_0x1e2a22,_0x6828d7)=>{let _0x4dc386=_0x37a175[_0x6828d7];_0x148db0['set'](_0x4dc386,{..._0x1e2a22,'id':_0x4dc386});}),this[_0x364572(0x39a)](U[_0x364572(0x280)](_0xe2813b,_0x2f6009),(_0x12be6d=_0x3c79a4[_0x364572(0x228)])==null||(_0x12be6d=_0x12be6d['attachmentSets'])==null?void 0x0:_0x12be6d[_0x2f6009],_0x37a175);}),_0x397833=Array['from'](_0x148db0)['map'](([_0x28fbc8,_0x375691])=>{const _0x3a7910=_0x3fce0c;var _0x1593ca;return this[_0x3a7910(0x39a)](U[_0x3a7910(0x233)](_0xe2813b,_0x28fbc8),(_0x1593ca=_0x3c79a4['resources'])==null||(_0x1593ca=_0x1593ca['attachments'])==null?void 0x0:_0x1593ca[_0x28fbc8],_0x375691);}),_0x1cab0a=new Set(Array[_0x3fce0c(0x2f6)](_0x3db659['values']())[_0x3fce0c(0x38a)]()),_0x43685e=new Set(Array[_0x3fce0c(0x2f6)](_0x32b0c6)[_0x3fce0c(0x4ac)](_0xa18b48=>{const _0xa7b3e5=_0x3fce0c;var _0x5dd3c9;return((_0x5dd3c9=_0x3c79a4['resources'])==null||(_0x5dd3c9=_0x5dd3c9[_0xa7b3e5(0x4c9)])==null?void 0x0:_0x5dd3c9[_0xa18b48])??[];})),_0x545276=Array[_0x3fce0c(0x2f6)](_0x43685e)[_0x3fce0c(0x4ac)](_0x3631e7=>{const _0x4d65b2=_0x3fce0c;var _0x4ea58e;let _0x411156=(_0x4ea58e=_0x3c79a4[_0x4d65b2(0x228)])==null||(_0x4ea58e=_0x4ea58e['attachments'])==null?void 0x0:_0x4ea58e[_0x3631e7];return _0x411156!==void 0x0&&!_0x1cab0a[_0x4d65b2(0x3cf)](_0x3631e7)?[_0x2c18c4['removeOp'](U['attachment'](_0xe2813b,_0x3631e7),_0x411156)]:[];});return[..._0x2164bf,..._0x397833,..._0x545276];}[_0x413924(0x475)](_0x4ce5a8,_0xfdd8f,_0x1e09fd){const _0x4d1c5c=_0x413924;var _0x3a6e2f;let _0x115930=((_0x3a6e2f=_0x4ce5a8[_0x4d1c5c(0x228)])==null?void 0x0:_0x3a6e2f[_0x4d1c5c(0x4c9)])??{},_0x1261af=Object['entries'](_0x115930)[_0x4d1c5c(0x457)](([_0x5a10a4])=>_0x1e09fd(_0x5a10a4));if(!_0x1261af['length'])return[];let _0xe169f2=new Set(Object[_0x4d1c5c(0x391)](_0x115930)[_0x4d1c5c(0x457)](([_0x42c37c])=>!_0x1e09fd(_0x42c37c))[_0x4d1c5c(0x4ac)](([,_0x32313a])=>_0x32313a)),_0x43e06e=new Set(_0x1261af['flatMap'](([,_0x5c13ce])=>_0x5c13ce));return[..._0x1261af[_0x4d1c5c(0x438)](([_0x5a300f,_0x344a39])=>_0x2c18c4[_0x4d1c5c(0x458)](U[_0x4d1c5c(0x280)](_0xfdd8f,_0x5a300f),_0x344a39)),...Array[_0x4d1c5c(0x2f6)](_0x43e06e)[_0x4d1c5c(0x4ac)](_0x363c35=>{const _0x2eea7c=_0x4d1c5c;var _0xb43665;let _0xfea8a2=(_0xb43665=_0x4ce5a8[_0x2eea7c(0x228)])==null||(_0xb43665=_0xb43665[_0x2eea7c(0x28c)])==null?void 0x0:_0xb43665[_0x363c35];return _0xfea8a2!==void 0x0&&!_0xe169f2[_0x2eea7c(0x3cf)](_0x363c35)?[_0x2c18c4[_0x2eea7c(0x458)](U[_0x2eea7c(0x233)](_0xfdd8f,_0x363c35),_0xfea8a2)]:[];})];}[_0x413924(0x39a)](_0x2884a5,_0x5da324,_0x4ed721){const _0x521964=_0x413924;return _0x5da324===void 0x0?_0x2c18c4[_0x521964(0x4a5)](_0x2884a5,_0x4ed721):_0x2c18c4[_0x521964(0x41c)](_0x2884a5,_0x5da324,_0x4ed721);}};function er(_0x3699d9,_0x323158,_0x365175,_0x550e03){const _0x4dc23c=_0x413924;var _0x2319bb;let _0x1433d1=_0x550e03[_0x4dc23c(0x378)];if(_0x365175[_0x4dc23c(0x378)]!==_0x1433d1||_0x1433d1!==_0x39ba8f[_0x4dc23c(0x183)]&&_0x1433d1!==_0x39ba8f[_0x4dc23c(0x40c)]||tr(_0x550e03['config']['optionSource']))return{'field':_0x550e03,'patches':[]};let _0x487086=nr(_0x365175),_0x1034d9=nr(_0x550e03);if(![..._0x487086][_0x4dc23c(0x2e3)](_0x416886=>!_0x1034d9[_0x4dc23c(0x3cf)](_0x416886)))return{'field':_0x550e03,'patches':[]};let _0x4efef9=rr(_0x550e03['defaultValue'],_0x1034d9,_0x1433d1),_0x149ae4=ir(_0x4efef9,_0x550e03[_0x4dc23c(0x43c)])?_0x550e03:{..._0x550e03,'defaultValue':_0x4efef9},_0x2285d4=L(_0x3699d9),_0x2a6709=(_0x2319bb=_0x2285d4['colIndex'])==null?void 0x0:_0x2319bb[_0x323158];return _0x2a6709==null?{'field':_0x149ae4,'patches':[]}:{'field':_0x149ae4,'patches':(_0x2285d4[_0x4dc23c(0x1c6)]??[])[_0x4dc23c(0x4ac)](_0x5b7a1b=>{const _0x3879ae=_0x4dc23c;var _0x4a4c92,_0x384dea;let _0x4a1489=(_0x4a4c92=_0x2285d4['rowIndex'])==null?void 0x0:_0x4a4c92[_0x5b7a1b],_0x2c2e12=(_0x384dea=_0x2285d4['records'][_0x5b7a1b])==null?void 0x0:_0x384dea[_0x3879ae(0x4ae)][_0x323158],_0x206e57=rr(_0x2c2e12,_0x1034d9,_0x1433d1);return _0x4a1489==null||ir(_0x206e57,_0x2c2e12)?[]:[{'row':_0x4a1489,'col':_0x2a6709,'value':_0x206e57??null}];})};}function tr(_0x271e1c){const _0x5a3914=_0x413924;return typeof _0x271e1c==_0x5a3914(0x441)&&!!_0x271e1c&&'type'in _0x271e1c&&_0x271e1c[_0x5a3914(0x378)]===_0x5a3914(0x2b7);}function nr(_0x2c5cb9){const _0x2a81be=_0x413924;var _0x2530da;let _0x487179=Array[_0x2a81be(0x348)]((_0x2530da=_0x2c5cb9[_0x2a81be(0x406)])==null?void 0x0:_0x2530da[_0x2a81be(0x1ed)])?_0x2c5cb9[_0x2a81be(0x406)][_0x2a81be(0x1ed)]:[];return new Set(_0x487179['flatMap'](_0x272620=>{const _0x13edf8=_0x2a81be;if(!_0x272620||typeof _0x272620!=_0x13edf8(0x441)||!('id'in _0x272620))return[];let _0x2c3434=String(_0x272620['id']);return _0x2c3434?[_0x2c3434]:[];}));}function rr(_0x5b2fb5,_0x1ba105,_0x385549){const _0x211993=_0x413924;if(_0x5b2fb5==null||_0x5b2fb5==='')return _0x5b2fb5;if(_0x385549===_0x39ba8f['SingleSelect'])return _0x1ba105[_0x211993(0x3cf)](String(_0x5b2fb5))?_0x5b2fb5:null;let _0x33006f=Array[_0x211993(0x348)](_0x5b2fb5)?_0x5b2fb5[_0x211993(0x438)](String):String(_0x5b2fb5)['split'](',')[_0x211993(0x438)](_0x26f2e3=>_0x26f2e3[_0x211993(0x401)]())['filter'](Boolean),_0x292138=_0x33006f[_0x211993(0x457)](_0x40f644=>_0x1ba105[_0x211993(0x3cf)](_0x40f644));return _0x292138[_0x211993(0x4be)]===_0x33006f[_0x211993(0x4be)]?_0x5b2fb5:Array[_0x211993(0x348)](_0x5b2fb5)?_0x292138:String(_0x5b2fb5)['includes'](',')?_0x292138[_0x211993(0x4bd)](','):_0x292138[0x0]??[];}function ir(_0x17f766,_0x2201c1){return JSON['stringify'](_0x17f766)===JSON['stringify'](_0x2201c1);}function ar(_0x3b7405,_0x49df62,_0x45527a){const _0x28734a=_0x413924;var _0x12f542,_0x1aa449,_0x3372d2,_0x4672cb;let _0x17fdcb=(_0x12f542=_0x3b7405['rowIndex'])==null?void 0x0:_0x12f542[_0x49df62],_0x909a43=(_0x1aa449=_0x3b7405[_0x28734a(0x4a2)])==null?void 0x0:_0x1aa449[_0x45527a];return _0x17fdcb!=null&&_0x909a43!=null&&((_0x3372d2=_0x3b7405[_0x28734a(0x3ce)])==null?void 0x0:_0x3372d2[_0x17fdcb])===_0x49df62&&((_0x4672cb=_0x3b7405['colId'])==null?void 0x0:_0x4672cb[_0x909a43])===_0x45527a&&_0x3b7405[_0x28734a(0x260)]!=null;}function or(_0x104250,_0xe824f7,_0x2428e1){const _0x366b89=_0x413924;var _0x13398e,_0x47e806;return((_0x13398e=_0x104250[_0x366b89(0x3ce)])==null?void 0x0:_0x13398e[_0xe824f7])!=null&&((_0x47e806=_0x104250[_0x366b89(0x16c)])==null?void 0x0:_0x47e806[_0x2428e1])!=null&&_0x104250[_0x366b89(0x260)]!=null;}function sr(_0x377b01,_0xb87da3,_0x3037d4){const _0xf204fd=_0x413924;let _0xa66ce6=_0x377b01[_0xf204fd(0x457)](_0x4f40fe=>_0x4f40fe!==_0xb87da3),_0x2c5e90=_0x3037d4['beforeFieldId']?_0xa66ce6['indexOf'](_0x3037d4[_0xf204fd(0x28b)]):_0x3037d4[_0xf204fd(0x39b)]?_0xa66ce6['indexOf'](_0x3037d4[_0xf204fd(0x39b)])+0x1:_0xa66ce6[_0xf204fd(0x4be)];return _0xa66ce6['splice'](_0x2c5e90<0x0?_0xa66ce6[_0xf204fd(0x4be)]:_0x2c5e90,0x0,_0xb87da3),_0xa66ce6;}function cr(_0x1782b8,_0x1d379a,_0x8aaa85){const _0x44ec80=_0x413924;let _0x4bebbc=_0x1782b8[_0x44ec80(0x457)](_0x27bc0b=>_0x27bc0b!==_0x1d379a);return _0x4bebbc['splice'](ur(_0x8aaa85,_0x4bebbc[_0x44ec80(0x4be)]),0x0,_0x1d379a),_0x4bebbc;}function lr(_0x4f54af,_0x40a8b2,_0x45ab18){const _0x4c2977=_0x413924;if(Array[_0x4c2977(0x348)](_0x4f54af))return _0x45ab18===_0x4c2977(0x481)?_0x4f54af['filter'](_0x1cf742=>_0x1cf742!==_0x40a8b2):_0x4f54af['flatMap'](_0x18f33f=>{const _0x55bfd6=_0x4c2977;if(_0x18f33f&&typeof _0x18f33f==_0x55bfd6(0x441)&&!Array[_0x55bfd6(0x348)](_0x18f33f)&&_0x18f33f[_0x55bfd6(0x1c3)]===_0x40a8b2)return[];let _0x4aa6ca=lr(_0x18f33f,_0x40a8b2);return _0x4aa6ca===void 0x0?[]:[_0x4aa6ca];});if(!_0x4f54af||typeof _0x4f54af!=_0x4c2977(0x441))return _0x45ab18!=null&&_0x45ab18[_0x4c2977(0x27b)](_0x4c2977(0x472))&&_0x4f54af===_0x40a8b2?void 0x0:_0x4f54af;let _0x1816da=_0x4f54af;if(_0x1816da['fieldId']!==_0x40a8b2)return Object[_0x4c2977(0x300)](Object[_0x4c2977(0x391)](_0x1816da)[_0x4c2977(0x4ac)](([_0x279909,_0x56b95b])=>{const _0x48ee95=_0x4c2977;if(_0x279909===_0x40a8b2&&_0x45ab18===_0x48ee95(0x468))return[];let _0x41ef0c=lr(_0x56b95b,_0x40a8b2,_0x279909);return _0x41ef0c===void 0x0?[]:[[_0x279909,_0x41ef0c]];}));}function _0xc540(){const _0x3a430e=['invalidGroupField','conjunction','fromPlainText','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','info','1ySDotW','data','_createRecordWithDefaults','option-','createCreateRecordOp','DESC','fieldSettings','deletePermissionPoint','recordNamePrefix','UNIVER_EMBED_BASES_TABLE','\x20must\x20have\x20a\x20non-empty\x20id.','_bumpTableRevision','base.command.set-base-range-values','_fieldPermissions','_normalizeCalendarConfig','gridViewId','FieldId','getMonth','cardLayout','_deleteAttachmentResources','NumberFormat','_viewRowsCacheKey','_buildGallery','isFinite','_formulaSyncQueue','subtreeHeightByRecordId','row','base.command.move-base-view','limit','repairViewConfig','objectType','fieldIds','_basePermissions','isNaN','createRecord','18915070CNIPFG','_getJson1DirtyData','max','level','_setViewFieldSetting','getTypePlugin','none','_syncBaseUnit','\x20permission\x20denied.','base.command.create-base-field','_buildCalendar','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','_scheduleSuperTableSync','_resolveCalendarDateFieldId','subType','delete-view','_viewPermissions','Text','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','too-long','createUpdateCellOp','base.command.update-base-field-description','formula','_normalizeCalendarDisplayColor','_executeSuperTableMutationWhileActive','_isKanbanGroupField','http:','calendar','delete','colIndex','embedId','IS_NOT','insertOp','endDateFieldId','view/','targetTableId','True','missingField','COMMAND','flatMap','_formulaCalculationSessionService','values','BOOLEAN','_withModifiedSystemValues','setViewPermission','beforeCommandExecuted','base.viewType.gantt','INIT','Link','base.permission.service','_normalizeGanttConfig','_groupConfigCacheSegment','conditionalColoring','custom','getItem','_enqueueFormulaSync','join','length','scale','replace','rows','add','kanban','Delete','base.command.set-base-view-field-width','Phone','path','valueOf','attachmentSets','MissingParent','includeTime','MUTATION','[BaseField]:\x20invalid\x20rating\x20value.','localeCompare','canEditRecord','month','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','compress','_plugins','_commandService','createField','Parent','_rememberTable','description','boolean','oldParentRecordId','_projectionCache','globalRevision','groups','text','Import','normalize','[BaseCommandService]:\x20invalid\x20field\x20definition.','_univerInstanceService','coverFieldId','get','test','descendPath','sort','15920cWkzQp','conditional','columnSettings','onStarting','setSnapshot','BaseCommand.createBatchCreateRecordsOp','[BasePerf]\x20','changed','base.command.update-base-field','unique','setViewFilter','BaseDashboard','_setAttachmentResources','orderKey','yesterday','query','columns','hasOwnProperty','operator','SelfParent','rowIndex','searchTexts','bases.fieldConfig.linkPlaceholder','short','codePointAt','canDeleteField','base.command.create-base-record','isValid','Failed\x20to\x20create\x20update\x20cell\x20operation:','onlyLocal','FORCE_STRING','_groupCellInvalidations','canCreateTable','greaterThanOrEqual','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_removeSuperTables','registerSyncingMutations','_apply','matchAll','tableName','defineProperty','[BaseCommandService]:\x20cannot\x20manage\x20view.','_resolveKanbanGroupFieldId','separatorStyle','_normalizeGanttDisplayColor','past30','_projectGroups','getInstance','BASES_PLUGIN','[BaseHierarchy]:\x20','field/','_views','large','import','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','compare','Group','formulaName','group','Rating','setRangeValues','resolve','thread-comment.command.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','call','getSuperTableRegistrations','patches','write','status','changeFieldType','Checkbox','base.mutation.apply-base-json1','editable','_cellInvalidations','bases.config','titleFieldId','[BaseFormula]:\x20table\x20\x22','base.command.update-base-view-conditional-color-rules','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','start','base.mutation.set-permission-rule','href','toFixed','GREATER_THAN','_projectTableRows','colId','_isCalendarDateField','lessThanOrEqual','_initialize','recordId','BaseRecord','Base\x20edit\x20permission\x20denied.','[BaseField]:\x20invalid\x20checkbox\x20value.','Export','fields','embed-ui',':end','getCurrentUserId','at\x20index\x20','base.command.update-base-record-order','_resolveCardTitleFieldId','setBasePermission','version','rule','showTodayLine','_configService','createUnit','WriteCursor','SingleSelect','getUTCMonth','1969010PlWtqm','[RecordLink]:\x20field\x20config\x20is\x20invalid.','STRING','after','orderedRecordIds','[BaseField]:\x20invalid\x20phone\x20value.','_formulaCalculationTriggerService','invertWithDoc','setPoint','descend','source','Kanban','selectField','_isNonEmptyCellValue','revision','url','UpdatedBy','find','_getTablesToNormalize','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','bases.fieldConfig.textPlaceholder','_getTable','-record-','Todo','_materializeFormulaTableNames','readonly','HH:mm','Progress','_recordPermissions','rootRecordIds','deleteRecords','createTable','BASE_OBJECT_PERMISSION_PLUGIN','result','moveView','_isAllowedKanbanGroupField','childrenByParentId','past7','bases.remote.config','objectId','base.fieldType.','_cellRevisions','getAllPermissionPoint','_applier','https:','recordPatch','_assertFieldDefinition','rowIndexById','_activeDirtyManagerService','UpdatedAt','deepClone','done','_initRegistries','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','createViewId','catch','toLocaleString','REMOTE_BASES_PLUGIN','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','owner','default','_resolveKanbanCoverFieldId','fieldId','getTime','viewIndexes','recordOrder','MMM\x20D,\x20YYYY','_setObjectEdit','[BaseFormula]:\x20field\x20\x22','_config','createRegExpFromSafeFragment','commaPeriod','base.command.update-base-kanban-config','_tableBaseIds','record','_deleteRecordsBaseOp','lastMonth','_resolveKanbanCardFieldIds','params','unitData','syncUnit','width','getTypeOfUnitDisposed$','displayColor','Invalid\x20object\x20permission\x20batch.','base-snapshot-v1','BaseJson1.syncCellInvalidations','fld-','cycle','setRecordValues','filled','view','person','small','then','RecordLink','getUnitType','_initDataSync','[BaseCommandService]:\x20cannot\x20create\x20table.','depthByRecordId','empty','CreatedBy','_registerUnitPermissionPoints','direction','options','UTC','apply','viewOrder','Start\x20date','duplicateField','_buildGantt','disposeWithMe','sum','createCreateFieldOp','[BaseCommandService]:\x20cannot\x20edit\x20field.','code','name','Formula','_applyFormulaResult','_capabilities','BaseProjection.materializeTableRows','hourCycle','lastIndex','567AXcnKB','_registeredSuperTableNames','canDeleteRecord','base.command.rename-base-table','dashboard/','abs','week','[BaseCommandService]:\x20cannot\x20edit\x20cell.','numfmt','view-','Undo','_recordIds','Copy','usableAsCardCover','Numbering','base.command.ensure-base-temporal-view-date-fields','CreateView','bases-exchange-client.operation.export-base','_cellInvalidationsTouchFields','setHours','clear','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','RecordId','dependencyFieldId','BaseTable','YYYY/MM/DD','_getTableRevision','Number','BaseField','Status','showFieldNames','713308rZxUvP','_check','error','_matchesGanttColorRule','getTypeOfUnitAdded$','clearViewPermission','createDefaultValue','next7','long','resources','redo','_projectedRowsCache','[BaseField]:\x20invalid\x20multi-value\x20reference.','setViewFieldOrder','groupFieldId','size','system','recordIds','colorFieldId','#,##0','attachment','false','base.command.create-base-view','base-perf-','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','base.command.set-base-view-sort','unknown','registerView','_resolveBaseId','_onCommandExecuted','every','_initDependencies','pushUndoRedo','quarter','createDeleteRecordsUndoOp','\x22.\x20Allowed\x20operators:\x20','greaterThan','#FDE68A','deleteView','table','Use\x2031\x20characters\x20or\x20fewer.','forEach','_canEditTable','moveField','prototype','usableAsGanttStart','now','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','reason','onCommandExecuted','measure','Facade','_buildGrid',',,,\x22B\x22','workingDaysOnly','min','updatedAt','_getViewRevision','Working\x20day','_canUseFastSort','afterViewId','DD/MM/YYYY','_isAllDayGanttDateRange','_kanbanGroupKeys','[BaseFormula]:\x20table\x20does\x20not\x20exist.','cellData','maxDepth','findIndex','[BaseProjectionService]:\x20missing\x20view\x20\x22','renameFormulaUnitReferences','LESS_THAN','308EIEUNZ','_fastSortRows','setConfig','\x20has\x20unsupported\x20operator\x20\x22','working','usableAsGanttEnd','6657287QmBblF','subscribe','-view-grid','base.command.delete-base-table','allowNegative','forValue','action','createBase','pluginName','protocol','_projectedGroupsCache','value','BaseHierarchyError','_resolveGalleryCoverFieldId','[BaseField]:\x20invalid\x20number\x20value.','endsWith','[BaseCommandService]:\x20cannot\x20delete\x20record.','displayText','getUnitId','_setCachedProjection','attachmentSet','_projectHierarchyGroups','base.command.change-base-field-type','duplicateRecord','Calendar','clearUnit','base-range-values-v1','hidden','depth',':start','1143864XKytGC','beforeFieldId','attachments','tables','__UNIVER_BASE_PERF__','getDependencies','Email','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','fieldName','General','validateFormula','clearRecordPermission','children','viewId','column','base.command.batch-delete-base-records','_dataSyncPrimaryController','_getOrderedRecords','updateField','[BaseHierarchy]:\x20field\x20\x22','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','_isGanttDateField','#,##0.00','getProjection','createdAt','base.command.set-base-view-filter','[RecordLink]:\x20display\x20field\x20\x22','[BaseCommandService]:\x20cannot\x20delete\x20field.','Cycle','strategies','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','basePerf','_projectedViewRowsCache','primaryFieldName','operand','compose','Done','tableOrder','Base\x20','unitWidth','\x22\x20does\x20not\x20exist.','Comment','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','_normalizeCellValue','lastIndexOf','field','average','unitId','Attachment','getAllBases','isNot','round','Date1900','leftPaneCollapsed','base-perf','[BaseField]:\x20invalid\x20date\x20value.','IS_NOT_EMPTY','key','Unchecked','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','_cacheKey','split','en-US','Date','tableId','contains','invalidDateField','[BaseCommandService]:\x20cannot\x20create\x20record.','allowDangling','BEFORE','setRecordPermission','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','includeRecords','exceptions','_kanbanLaneColor','rules','gantt','[BaseField]:\x20invalid\x20progress\x20value.','getOwnPropertyDescriptor','card','_createRecordOrderOp','_title','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','bases-exchange-client.operation.export-base-by-format','h12','[BaseCommandService]:\x20record-id\x20is\x20reserved.','ena','_getAllTableIds','base.command.move-base-hierarchy-record','some','hierarchy','setViewGroup','invalidGanttEndField','base.command.create-base-table','MaxDepth','registerCommand','YYYY-MM-DD','_groupProjectionFieldIds','pop','isNotEmpty','invalidateByCell','invalidReasonByRecordId','_patchProjectedRowsForCellInvalidations','all','applyOp','ascend','fromCollab','constructor','from','Gallery','updateViewConfig','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','subtreeEndIndex','fromChangeset','_findCalendarDateFieldId','_syncSuperTables','timeZone','createView','fromEntries','updateCell','decorate','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','recordCount','_kanbanLaneTitle','base.command.batch-create-base-records','_getStructureDirtyTableIds','dateMode','canEditCell','223112EoPWhN','undefined','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.set-permissions','getUTCFullYear','getUTCDay','dispose','editCell','_canEdit','Set','title','_patchCachedProjectedRows','renameTable','mark','collaborators','index','deleteRecord','_getCurrentUserId','conditions','invalidateByView','Table\x20name\x20is\x20required.','canEditTable','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','packageName','unsubscribe','__all__','regenerateViewIds','changes','getCurrentUnitOfType','syncExecuteCommand','setViewSort','startDateFieldId','isInteger','base.command.update-base-cell','_applyingFormulaResults','notContains','BaseProjection.getProjection','selfParent','register','updateRecordOrder','create-view','_clearObjectEdit','canEditField','manageView','this-row','_projectRows','_resolveGanttDateFieldId','thisWeek','canManageView','yyyy/mm/dd','getDay','general','usableAsCalendarDate','before','_getCachedProjection','_isColorfulKanbanGroupField','check','abbreviation','canDeleteTable','base.projection.service','_normalizeGalleryConfig','isArray','\x22\x20with\x20field\x20type\x20\x22','Add','base.command.set-base-view-field-visible','push','pattern','_setFormulaFieldCells','year','createRecords','[BaseCommandService]:\x20field\x20\x22','attachment-','Clear','useThousands','_hierarchyIndexCache','base.command.set-permission','snapshot','toLowerCase','_fieldRegistry','canCreateField','star','allowMultiple','fieldIndex','tomorrow','includes','tryMaterializeSnapshot','base.command.delete-base-view','invalidateByOp','_viewRevisionKey','reduce','getUnit','renameView','ruleId','format','invalidateByField','base.command.delete-base-record','createDefaultConfig','base.command.duplicate-base-record','undo','startsWith','deleteField','BaseProjection.projectRows','toPrimitive','progressFieldId','local','Currency','count','COLUMN','NUMBER','type','views','BaseJson1.cloneForOp','h24','_sortRows','setViewFieldVisible','base.command.service','getFullYear','base.command.create-base-child-record','dateFormat','exception-','_tableRevisions','executeCommand','registerRuleModel','periodComma','MM-DD','color','[BaseCommandService]:\x20cannot\x20create\x20field.','flat','diffValue','setRules','base.command.delete-base-field','_clearUnit','Checked','deleteTable','entries','_findKanbanGroupField','_scheduledSuperTableSyncs','base.command.validate-formula','getUTCDate','[BaseViewRegistryService]:\x20view\x20type\x20\x22','base.view-registry.service','_instanceService','mode','_replaceOptional','afterFieldId','base.mutation.','_getKanbanConfiguredLanes','_groupsCacheKey','BaseProjection.filterAndSortRows','lessThan','_filterRows','keys','getAffectedRanges','_globalRevision','Yes','lastWeek','slice','edit','_projectFields','iterator','Redo','_runtimeContext','_filterSortFieldIds','setViewFieldWidth','#BFDBFE','cellRevision','score','CreatedAt','spacePeriod','records','#14b8a6','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','parentFieldName','base.command.set-base-table-hierarchy-field','timeslotSize','_createNumberingFieldValuePatches','invalid','locale','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','setFieldPermission','symbol','end','2694oJMyjo','getPermissionPoint','getCapabilities','cell','createBatchCreateRecordsOp','baseRows','normal','apostrophe','beforeViewId','missingRecord','padStart','table/','_baseSyncDisposables','rowId','has','stringify','order','search','Base','target','_ganttBarColor','trigger','next30','frozenFieldCount','date','_rowTransformCacheSegment','workingDays','Grid','medium','save','validate','registerCtorForType','_disposed','valid','addPermissionPoint','parentRecordId','label','InvalidField','Person','_buildKanban','createSetRecordValuesOp','$1\x20','updatedBy','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','doing','[BaseCommandService]:\x20cannot\x20edit\x20table.','indexOf','string','Table','cardSize','weekdays','\x20has\x20unsupported\x20target\x20\x22',',,\x22M\x22','pickerFieldIds','base.viewType.gallery','Unsupported\x20Base\x20permission\x20action:\x20','initializeUnit','markResultApplied','raw','fieldOrder','h:mm\x20a','Remote','getAllUnitsForType','_materializeGroups','trim','_createSystemFieldValuePatches','setTablePermission','set','emitPermissionDenied','config','base.command.set-base-name','BaseJson1.json1Apply','CONTAINS','thread-comment.mutation.','[RecordLink]:\x20target\x20record\x20\x22','MultiSelect','Empty','BASE','Edit','\x20has\x20unsupported\x20date\x20mode\x20\x22','-field-name','finally','UNIVER_BASE','\x22\x20is\x20not\x20registered.','policy','base.viewType.grid','resolvedOptions','#3b82f6','setBaseName','IS_EMPTY','multiple','replaceOp','@univerjs-pro/bases','False','saveMany','function','_getHierarchyIndex','Parent\x20Items','manual','createSuperTableReference','base.command.move-base-field','primaryFieldId','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','focusUnit','[BaseField]:\x20invalid\x20person\x20value.','3yfqqUA','autoIncrement','number','kind','hostAnchorId','_toDirtyRangePatch','parentByRecordId','tableRevision','AFTER','_tablePermissions','_isAllDayCalendarEvent','BaseView','true','[DeleteBaseTableCommand]:\x20table\x20\x22','map','canCreateRecord','exact','Uncategorized','defaultValue','_factory','remote','toString','displayFieldId','object','invalidField','\x22\x20is\x20referenced\x20by\x20','_permissionService','_getCellRevision','_createNumberingAllocators','invertOp','_getAllBaseDependencyTreeCacheMap','clearTablePermission','remove','createdBy','Gantt','col','percent','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','decimalPlaces','Ids','_injector','_viewRevisions','__base_hierarchy_parent__','relationRole','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','filter','removeOp','\x20cannot\x20use\x20operator\x20\x22','A\x20table\x20with\x20this\x20name\x20already\x20exists.','\x20must\x20be\x20an\x20object.'];_0xc540=function(){return _0x3a430e;};return _0xc540();}function ur(_0x1a269a,_0x2d2c33){const _0x16be89=_0x413924;return Math['max'](0x0,Math[_0x16be89(0x256)](_0x1a269a,_0x2d2c33));}function dr(_0x288976){'@babel/helpers - typeof';const _0xf72616=_0x413924;return dr=typeof Symbol==_0xf72616(0x420)&&typeof Symbol[_0xf72616(0x3aa)]=='symbol'?function(_0x53f6c8){return typeof _0x53f6c8;}:function(_0x4f1f44){const _0x1d5792=_0xf72616;return _0x4f1f44&&typeof Symbol=='function'&&_0x4f1f44[_0x1d5792(0x2f5)]===Symbol&&_0x4f1f44!==Symbol[_0x1d5792(0x24b)]?'symbol':typeof _0x4f1f44;},dr(_0x288976);}function fr(_0x3bb14d,_0x6bed4c){const _0x3ead01=_0x413924;if(dr(_0x3bb14d)!=_0x3ead01(0x441)||!_0x3bb14d)return _0x3bb14d;var _0x1ccc3f=_0x3bb14d[Symbol[_0x3ead01(0x371)]];if(_0x1ccc3f!==void 0x0){var _0x45183f=_0x1ccc3f[_0x3ead01(0x157)](_0x3bb14d,_0x6bed4c||_0x3ead01(0x1c1));if(dr(_0x45183f)!=_0x3ead01(0x441))return _0x45183f;throw TypeError(_0x3ead01(0x45f));}return(_0x6bed4c===_0x3ead01(0x3f0)?String:Number)(_0x3bb14d);}function pr(_0x5030e7){const _0x5672b8=_0x413924;var _0x4091c2=fr(_0x5030e7,'string');return dr(_0x4091c2)==_0x5672b8(0x3bf)?_0x4091c2:_0x4091c2+'';}function G(_0x5148a6,_0x32ec58,_0x5b7452){return(_0x32ec58=pr(_0x32ec58))in _0x5148a6?Object['defineProperty'](_0x5148a6,_0x32ec58,{'value':_0x5b7452,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5148a6[_0x32ec58]=_0x5b7452,_0x5148a6;}const mr=_0x116afe('base.field-registry.service');var hr=class extends _0x51b493{constructor(..._0x482a2f){const _0x386881=_0x413924;super(..._0x482a2f),G(this,_0x386881(0x4d3),new Map());}['register'](_0xddbb82){const _0x3ff2d1=_0x413924;return this[_0x3ff2d1(0x4d3)][_0x3ff2d1(0x404)](_0xddbb82[_0x3ff2d1(0x378)],_0xddbb82),_0x500368(()=>this[_0x3ff2d1(0x4d3)]['delete'](_0xddbb82[_0x3ff2d1(0x378)]));}[_0x413924(0x113)](_0x4a6f11){const _0x5f12ed=_0x413924;let _0x5b8bf7=this[_0x5f12ed(0x4d3)][_0x5f12ed(0x113)](_0x4a6f11);if(!_0x5b8bf7)throw Error(_0x5f12ed(0x1ba)+_0x4a6f11+_0x5f12ed(0x414));return _0x5b8bf7;}[_0x413924(0x48a)](_0x934fe5){const _0x146844=_0x413924;return this[_0x146844(0x4d3)][_0x146844(0x113)](_0x934fe5);}['getAll'](){const _0x3bd0cd=_0x413924;return Array[_0x3bd0cd(0x2f6)](this[_0x3bd0cd(0x4d3)][_0x3bd0cd(0x4ae)]());}},gr=class{constructor(_0x446b78){const _0x21ae42=_0x413924;this[_0x21ae42(0x2b9)]=_0x446b78,G(this,_0x21ae42(0x378),_0x518f29[_0x21ae42(0x3d3)]),G(this,_0x21ae42(0x493),_0x4a4e33['Comment']),G(this,_0x21ae42(0x15b),_0x44a480['INIT']),G(this,'id',void 0x0),G(this,_0x21ae42(0x277),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x446b78;}},_r=class{constructor(_0xdad69d){const _0x4345f5=_0x413924;this[_0x4345f5(0x2b9)]=_0xdad69d,G(this,_0x4345f5(0x378),_0x518f29['Base']),G(this,_0x4345f5(0x493),_0x4a4e33['Copy']),G(this,'status',_0x44a480[_0x4345f5(0x4b4)]),G(this,'id',void 0x0),G(this,_0x4345f5(0x277),!0x0),this['id']=this[_0x4345f5(0x378)]+'.'+this[_0x4345f5(0x493)]+'_'+_0xdad69d;}},vr=class{constructor(_0x32fdf0){const _0x92aeef=_0x413924;this[_0x92aeef(0x2b9)]=_0x32fdf0,G(this,_0x92aeef(0x378),_0x518f29[_0x92aeef(0x3d3)]),G(this,'subType',_0x4a4e33[_0x92aeef(0x40f)]),G(this,'status',_0x44a480[_0x92aeef(0x4b4)]),G(this,'id',void 0x0),G(this,_0x92aeef(0x277),!0x0),this['id']=this[_0x92aeef(0x378)]+'.'+this[_0x92aeef(0x493)]+'_'+_0x32fdf0;}},yr=class{constructor(_0x3860c2){const _0xd5639c=_0x413924;this[_0xd5639c(0x2b9)]=_0x3860c2,G(this,_0xd5639c(0x378),_0x518f29[_0xd5639c(0x3d3)]),G(this,'subType',_0x4a4e33[_0xd5639c(0x174)]),G(this,_0xd5639c(0x15b),_0x44a480[_0xd5639c(0x4b4)]),G(this,'id',void 0x0),G(this,_0xd5639c(0x277),!0x0),this['id']=this[_0xd5639c(0x378)]+'.'+this[_0xd5639c(0x493)]+'_'+_0x3860c2;}},br=class{constructor(_0x145c45,_0x4f5867){const _0x3e4dd5=_0x413924;this[_0x3e4dd5(0x2b9)]=_0x145c45,this[_0x3e4dd5(0x1ac)]=_0x4f5867,G(this,_0x3e4dd5(0x378),_0x518f29['BaseDashboard']),G(this,'subType',_0x4a4e33[_0x3e4dd5(0x40f)]),G(this,_0x3e4dd5(0x15b),_0x44a480['INIT']),G(this,'id',void 0x0),G(this,_0x3e4dd5(0x277),!0x0),this['id']=this[_0x3e4dd5(0x378)]+'.'+this[_0x3e4dd5(0x493)]+'_'+_0x145c45+'_'+_0x4f5867;}},xr=class{constructor(_0x3e1300,_0x1e1b7a){const _0x101aa0=_0x413924;this[_0x101aa0(0x2b9)]=_0x3e1300,this[_0x101aa0(0x1ac)]=_0x1e1b7a,G(this,_0x101aa0(0x378),_0x518f29[_0x101aa0(0x21c)]),G(this,'subType',_0x4a4e33[_0x101aa0(0x40f)]),G(this,_0x101aa0(0x15b),_0x44a480['INIT']),G(this,'id',void 0x0),G(this,_0x101aa0(0x277),!0x0),this['id']=this['type']+'.'+this[_0x101aa0(0x493)]+'_'+_0x3e1300+'_'+_0x1e1b7a;}},Sr=class{constructor(_0x387289,_0x398975){const _0x6d1680=_0x413924;this[_0x6d1680(0x2b9)]=_0x387289,this[_0x6d1680(0x1ac)]=_0x398975,G(this,'type',_0x518f29['BaseRecord']),G(this,_0x6d1680(0x493),_0x4a4e33[_0x6d1680(0x40f)]),G(this,_0x6d1680(0x15b),_0x44a480['INIT']),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x6d1680(0x378)]+'.'+this['subType']+'_'+_0x387289+'_'+_0x398975;}},Cr=class{constructor(_0x1908df,_0x55233f){const _0x553224=_0x413924;this[_0x553224(0x2b9)]=_0x1908df,this[_0x553224(0x1ac)]=_0x55233f,G(this,_0x553224(0x378),_0x518f29[_0x553224(0x218)]),G(this,_0x553224(0x493),_0x4a4e33[_0x553224(0x40f)]),G(this,_0x553224(0x15b),_0x44a480[_0x553224(0x4b4)]),G(this,'id',void 0x0),G(this,_0x553224(0x277),!0x0),this['id']=this[_0x553224(0x378)]+'.'+this[_0x553224(0x493)]+'_'+_0x1908df+'_'+_0x55233f;}},wr=class{constructor(_0x42af9d,_0x16ae10){const _0x585931=_0x413924;this[_0x585931(0x2b9)]=_0x42af9d,this['objectId']=_0x16ae10,G(this,_0x585931(0x378),_0x518f29['BaseView']),G(this,_0x585931(0x493),_0x4a4e33['Edit']),G(this,'status',_0x44a480[_0x585931(0x4b4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x585931(0x378)]+'.'+this[_0x585931(0x493)]+'_'+_0x42af9d+'_'+_0x16ae10;}};const Tr=[_0x4a4e33['Edit'],_0x4a4e33[_0x413924(0x20c)],_0x4a4e33[_0x413924(0x174)],_0x4a4e33[_0x413924(0x2b3)]],Er=new Set([_0x518f29[_0x413924(0x3d3)],_0x518f29['BaseTable'],_0x518f29[_0x413924(0x21c)],_0x518f29['BaseRecord'],_0x518f29[_0x413924(0x435)],_0x518f29[_0x413924(0x122)]]),Dr=_0x413924(0x3cc),Or=_0x413924(0x149),kr='record/',Ar=_0x413924(0x4a7),jr=_0x413924(0x204);function K(_0x57a5a9){return''+Dr+encodeURIComponent(_0x57a5a9);}function q(_0x40dbb4,_0x28ec18){return''+Or+encodeURIComponent(_0x40dbb4)+'/'+encodeURIComponent(_0x28ec18);}function J(_0x2387da,_0xb8b71b){return''+kr+encodeURIComponent(_0x2387da)+'/'+encodeURIComponent(_0xb8b71b);}function Mr(_0x3c21dc,_0x12658f){return''+Ar+encodeURIComponent(_0x3c21dc)+'/'+encodeURIComponent(_0x12658f);}function Nr(_0x41e37f){return''+jr+encodeURIComponent(_0x41e37f);}function Pr(_0x47e091,_0x28eecb,_0xd3e883){const _0x67f4b=_0x413924;if(_0x28eecb===_0x47e091)switch(_0xd3e883){case _0x4a4e33['Edit']:return new vr(_0x47e091);case _0x4a4e33[_0x67f4b(0x20c)]:return new _r(_0x47e091);case _0x4a4e33[_0x67f4b(0x174)]:return new yr(_0x47e091);case _0x4a4e33[_0x67f4b(0x2b3)]:return new gr(_0x47e091);default:throw Error(_0x67f4b(0x3f8)+_0xd3e883);}if(_0xd3e883!==_0x4a4e33['Edit'])throw Error(_0x67f4b(0x2c5)+_0x28eecb);if(_0x28eecb[_0x67f4b(0x36e)](Dr))return new Cr(_0x47e091,_0x28eecb);if(_0x28eecb[_0x67f4b(0x36e)](Or))return new xr(_0x47e091,_0x28eecb);if(_0x28eecb['startsWith'](kr))return new Sr(_0x47e091,_0x28eecb);if(_0x28eecb[_0x67f4b(0x36e)](Ar))return new wr(_0x47e091,_0x28eecb);if(_0x28eecb['startsWith'](jr))return new br(_0x47e091,_0x28eecb);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x28eecb);}function Fr(_0x83b842,_0x120ae6,_0xba12bd,_0x1104b0){const _0x112465=_0x413924;var _0x560208;return((_0x560208=_0x83b842[_0x112465(0x3c2)](Pr(_0x120ae6,_0xba12bd,_0x1104b0)['id']))==null?void 0x0:_0x560208[_0x112465(0x277)])??!0x0;}function Ir(_0x56c513,_0x182743,_0x4cf807,_0x5e83ef,_0x23fdc5){const _0x356ae8=_0x413924;let _0x26f7ca=Pr(_0x182743,_0x4cf807,_0x5e83ef);_0x56c513[_0x356ae8(0x3c2)](_0x26f7ca['id'])||_0x56c513['addPermissionPoint'](_0x26f7ca),_0x56c513['updatePermissionPoint'](_0x26f7ca['id'],_0x23fdc5);}function Lr(_0x570cb0,_0x16fec6,_0x536e9f,_0x21c688){const _0x12c5b1=_0x413924;_0x570cb0[_0x12c5b1(0x469)](Pr(_0x16fec6,_0x536e9f,_0x21c688)['id']);}function Rr(_0x1057b2,_0x24e759){const _0x473763=_0x413924;_0x1057b2[_0x473763(0x1af)]()[_0x473763(0x248)]((_0x328ccf,_0x5a062d)=>{const _0x55597d=_0x473763;_0x328ccf[_0x55597d(0x26d)](_0x4b81cc=>{const _0x2edc55=_0x55597d;Er[_0x2edc55(0x3cf)](_0x4b81cc[_0x2edc55(0x378)])&&_0x2edc55(0x2b9)in _0x4b81cc&&_0x4b81cc[_0x2edc55(0x2b9)]===_0x24e759&&_0x1057b2['deletePermissionPoint'](_0x5a062d);})[_0x55597d(0x323)]();});}function zr(_0x21a3bf,_0x49f949,_0x401d00){const _0x366ea9=_0x413924;return Fr(_0x21a3bf,_0x49f949,_0x49f949,_0x4a4e33[_0x366ea9(0x40f)])&&Array[_0x366ea9(0x2f6)](_0x401d00)['every'](_0x450f0f=>Fr(_0x21a3bf,_0x49f949,_0x450f0f,_0x4a4e33[_0x366ea9(0x40f)]));}function Y(_0x3e82fa,_0x54cdd3){return function(_0x3118e9,_0x544625){_0x54cdd3(_0x3118e9,_0x544625,_0x3e82fa);};}function X(_0x4da099,_0x59e6e7,_0x280d86,_0x4f10e9){const _0x4d660b=_0x413924;var _0x556152=arguments[_0x4d660b(0x4be)],_0x280349=_0x556152<0x3?_0x59e6e7:_0x4f10e9===null?_0x4f10e9=Object[_0x4d660b(0x2d8)](_0x59e6e7,_0x280d86):_0x4f10e9,_0x2867b8;if(typeof Reflect==_0x4d660b(0x441)&&typeof Reflect[_0x4d660b(0x302)]=='function')_0x280349=Reflect[_0x4d660b(0x302)](_0x4da099,_0x59e6e7,_0x280d86,_0x4f10e9);else{for(var _0x5a09aa=_0x4da099[_0x4d660b(0x4be)]-0x1;_0x5a09aa>=0x0;_0x5a09aa--)(_0x2867b8=_0x4da099[_0x5a09aa])&&(_0x280349=(_0x556152<0x3?_0x2867b8(_0x280349):_0x556152>0x3?_0x2867b8(_0x59e6e7,_0x280d86,_0x280349):_0x2867b8(_0x59e6e7,_0x280d86))||_0x280349);}return _0x556152>0x3&&_0x280349&&Object[_0x4d660b(0x13f)](_0x59e6e7,_0x280d86,_0x280349),_0x280349;}const Br=_0x116afe(_0x413924(0x4b6));let Vr=class extends _0x51b493{constructor(_0x39b8e7,_0x4e6171){const _0x4e4152=_0x413924;super(),this[_0x4e4152(0x444)]=_0x39b8e7,this['_instanceService']=_0x4e6171,G(this,_0x4e4152(0x482),new Map()),G(this,_0x4e4152(0x433),new Map()),G(this,_0x4e4152(0x46f),new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x4e4152(0x495),new Map()),G(this,_0x4e4152(0x1ce),new Map()),this[_0x4e4152(0x1f4)](this['_instanceService'][_0x4e4152(0x1d7)](_0x1a4689['UNIVER_BASE'])[_0x4e4152(0x26d)](_0x2773ef=>this[_0x4e4152(0x38e)](_0x2773ef[_0x4e4152(0x27e)]())));}[_0x413924(0x137)](_0x2f13eb){const _0x1e0bda=_0x413924;var _0x51b6b8;return this['_canEdit'](_0x2f13eb,[])&&(((_0x51b6b8=this[_0x1e0bda(0x482)][_0x1e0bda(0x113)](_0x2f13eb))==null?void 0x0:_0x51b6b8[_0x1e0bda(0x1a4)])??!0x0);}[_0x413924(0x31f)](_0x466f2e){return this['_canEditTable'](_0x466f2e);}[_0x413924(0x345)](_0xaa96d3){const _0x101507=_0x413924;var _0x5b63d7;return this[_0x101507(0x249)](_0xaa96d3)&&(((_0x5b63d7=this[_0x101507(0x433)]['get'](_0xaa96d3))==null?void 0x0:_0x5b63d7[_0x101507(0x4a1)])??!0x0);}[_0x413924(0x35a)](_0x3b528c){const _0x4fc6d1=_0x413924;var _0x378981;return this[_0x4fc6d1(0x249)](_0x3b528c)&&(((_0x378981=this['_tablePermissions'][_0x4fc6d1(0x113)](_0x3b528c))==null?void 0x0:_0x378981['createField'])??!0x0);}[_0x413924(0x335)](_0x57b349,_0xc39810){const _0x4635c8=_0x413924;var _0x2de716;return this[_0x4635c8(0x249)](_0x57b349)&&this[_0x4635c8(0x312)](_0x57b349,[q(_0x57b349,_0xc39810)])&&(((_0x2de716=this['_fieldPermissions'][_0x4635c8(0x113)](Ur(_0x57b349,_0xc39810)))==null?void 0x0:_0x2de716[_0x4635c8(0x3a8)])??!0x0);}[_0x413924(0x130)](_0x373bd0,_0x1d3070){const _0x621623=_0x413924;var _0x2f2189;return this[_0x621623(0x335)](_0x373bd0,_0x1d3070)&&(((_0x2f2189=this[_0x621623(0x46f)][_0x621623(0x113)](Ur(_0x373bd0,_0x1d3070)))==null?void 0x0:_0x2f2189['delete'])??!0x0);}[_0x413924(0x439)](_0x14096c){const _0x37603e=_0x413924;var _0x3d764c;return this['_canEditTable'](_0x14096c)&&(((_0x3d764c=this[_0x37603e(0x433)][_0x37603e(0x113)](_0x14096c))==null?void 0x0:_0x3d764c[_0x37603e(0x484)])??!0x0);}[_0x413924(0x4cf)](_0x442fc5,_0x377de1){const _0x3b0fdd=_0x413924;var _0x1102ea;let _0x58a5db=this[_0x3b0fdd(0x1a1)][_0x3b0fdd(0x113)](Wr(_0x442fc5,_0x377de1));return this[_0x3b0fdd(0x312)](_0x442fc5,[K(_0x442fc5),J(_0x442fc5,_0x377de1)])&&(((_0x1102ea=this[_0x3b0fdd(0x433)][_0x3b0fdd(0x113)](_0x442fc5))==null?void 0x0:_0x1102ea[_0x3b0fdd(0x3a8)])??!0x0)&&((_0x58a5db==null?void 0x0:_0x58a5db['edit'])??!0x0)&&((_0x58a5db==null?void 0x0:_0x58a5db[_0x3b0fdd(0x311)])??!0x0);}[_0x413924(0x202)](_0x3e97b9,_0x2486ec){const _0x49095c=_0x413924;var _0x414bf1,_0x19b79f,_0x509753;return this[_0x49095c(0x312)](_0x3e97b9,[K(_0x3e97b9),J(_0x3e97b9,_0x2486ec)])&&(((_0x414bf1=this[_0x49095c(0x433)]['get'](_0x3e97b9))==null?void 0x0:_0x414bf1[_0x49095c(0x3a8)])??!0x0)&&(((_0x19b79f=this[_0x49095c(0x1a1)]['get'](Wr(_0x3e97b9,_0x2486ec)))==null?void 0x0:_0x19b79f['edit'])??!0x0)&&(((_0x509753=this[_0x49095c(0x1a1)][_0x49095c(0x113)](Wr(_0x3e97b9,_0x2486ec)))==null?void 0x0:_0x509753[_0x49095c(0x4a1)])??!0x0);}[_0x413924(0x309)](_0x5d301c,_0x17af25,_0x289cd0){const _0x3f2f55=_0x413924;var _0x551bca,_0x37b98a,_0x450745;let _0x2e57fc=this[_0x3f2f55(0x46f)][_0x3f2f55(0x113)](Ur(_0x5d301c,_0x289cd0));return this[_0x3f2f55(0x312)](_0x5d301c,[K(_0x5d301c),q(_0x5d301c,_0x289cd0),J(_0x5d301c,_0x17af25)])&&(((_0x551bca=this[_0x3f2f55(0x433)]['get'](_0x5d301c))==null?void 0x0:_0x551bca[_0x3f2f55(0x3a8)])??!0x0)&&(((_0x37b98a=this[_0x3f2f55(0x1a1)][_0x3f2f55(0x113)](Wr(_0x5d301c,_0x17af25)))==null?void 0x0:_0x37b98a[_0x3f2f55(0x3a8)])??!0x0)&&(((_0x450745=this['_recordPermissions'][_0x3f2f55(0x113)](Wr(_0x5d301c,_0x17af25)))==null?void 0x0:_0x450745[_0x3f2f55(0x311)])??!0x0)&&((_0x2e57fc==null?void 0x0:_0x2e57fc[_0x3f2f55(0x3a8)])??!0x0)&&((_0x2e57fc==null?void 0x0:_0x2e57fc[_0x3f2f55(0x311)])??!0x0);}[_0x413924(0x33b)](_0x17ad7f,_0x4c5e36){const _0x2bae6e=_0x413924;var _0xeb984c,_0x26365b,_0x1cc2e1;return this[_0x2bae6e(0x312)](_0x17ad7f,[K(_0x17ad7f),Mr(_0x17ad7f,_0x4c5e36)])&&(((_0xeb984c=this[_0x2bae6e(0x433)][_0x2bae6e(0x113)](_0x17ad7f))==null?void 0x0:_0xeb984c['edit'])??!0x0)&&(((_0x26365b=this['_viewPermissions'][_0x2bae6e(0x113)](Gr(_0x17ad7f,_0x4c5e36)))==null?void 0x0:_0x26365b[_0x2bae6e(0x3a8)])??!0x0)&&(((_0x1cc2e1=this[_0x2bae6e(0x433)][_0x2bae6e(0x113)](_0x17ad7f))==null?void 0x0:_0x1cc2e1[_0x2bae6e(0x336)])??!0x0);}[_0x413924(0x17c)](_0x3f7a3b,_0x4858ae){const _0x531a3a=_0x413924;this[_0x531a3a(0x482)][_0x531a3a(0x404)](_0x3f7a3b,{...this[_0x531a3a(0x482)][_0x531a3a(0x113)](_0x3f7a3b),..._0x4858ae}),_0x4858ae['edit']!==void 0x0&&Ir(this[_0x531a3a(0x444)],_0x3f7a3b,_0x3f7a3b,_0x4a4e33['Edit'],_0x4858ae[_0x531a3a(0x3a8)]);}[_0x413924(0x403)](_0x116871,_0x2f105f){const _0x1eb353=_0x413924;this[_0x1eb353(0x4d7)](_0x116871),this[_0x1eb353(0x433)][_0x1eb353(0x404)](_0x116871,{...this[_0x1eb353(0x433)]['get'](_0x116871),..._0x2f105f}),this[_0x1eb353(0x1c8)](_0x116871,K(_0x116871),_0x2f105f['edit']);}[_0x413924(0x3be)](_0x37a39e,_0x413c8f,_0x547d93){const _0x5530a0=_0x413924;this['_rememberTable'](_0x37a39e);let _0x24143d=Ur(_0x37a39e,_0x413c8f);this[_0x5530a0(0x46f)][_0x5530a0(0x404)](_0x24143d,{...this[_0x5530a0(0x46f)][_0x5530a0(0x113)](_0x24143d),..._0x547d93}),this['_setObjectEdit'](_0x37a39e,q(_0x37a39e,_0x413c8f),_0x547d93['edit']);}[_0x413924(0x2d0)](_0x3662a4,_0x95c406,_0x244bb9){const _0x510044=_0x413924;this[_0x510044(0x4d7)](_0x3662a4);let _0x3e30ef=Wr(_0x3662a4,_0x95c406);this[_0x510044(0x1a1)][_0x510044(0x404)](_0x3e30ef,{...this['_recordPermissions'][_0x510044(0x113)](_0x3e30ef),..._0x244bb9}),this[_0x510044(0x1c8)](_0x3662a4,J(_0x3662a4,_0x95c406),_0x244bb9[_0x510044(0x3a8)]);}[_0x413924(0x4b1)](_0x5a3dae,_0x56fa0d,_0x7358b2){const _0x289714=_0x413924;this[_0x289714(0x4d7)](_0x5a3dae);let _0x56419c=Gr(_0x5a3dae,_0x56fa0d);this['_viewPermissions']['set'](_0x56419c,{...this[_0x289714(0x495)]['get'](_0x56419c),..._0x7358b2}),this['_setObjectEdit'](_0x5a3dae,Mr(_0x5a3dae,_0x56fa0d),_0x7358b2[_0x289714(0x3a8)]);}['clearBasePermission'](_0x10ef4b){const _0x5196c3=_0x413924;this[_0x5196c3(0x482)]['delete'](_0x10ef4b),Lr(this[_0x5196c3(0x444)],_0x10ef4b,_0x10ef4b,_0x4a4e33[_0x5196c3(0x40f)]);}[_0x413924(0x449)](_0x12ac39){const _0x3e7d1f=_0x413924;this[_0x3e7d1f(0x433)][_0x3e7d1f(0x4a1)](_0x12ac39),this[_0x3e7d1f(0x334)](_0x12ac39,K(_0x12ac39));}['clearFieldPermission'](_0x3608ee,_0x48824c){const _0x1ed607=_0x413924;this['_fieldPermissions'][_0x1ed607(0x4a1)](Ur(_0x3608ee,_0x48824c)),this[_0x1ed607(0x334)](_0x3608ee,q(_0x3608ee,_0x48824c));}[_0x413924(0x295)](_0x2b29b2,_0x96a9db){const _0x2ac7bc=_0x413924;this['_recordPermissions']['delete'](Wr(_0x2b29b2,_0x96a9db)),this[_0x2ac7bc(0x334)](_0x2b29b2,J(_0x2b29b2,_0x96a9db));}[_0x413924(0x224)](_0x599dfc,_0x4fd4bd){const _0x3f21c9=_0x413924;this[_0x3f21c9(0x495)]['delete'](Gr(_0x599dfc,_0x4fd4bd)),this[_0x3f21c9(0x334)](_0x599dfc,Mr(_0x599dfc,_0x4fd4bd));}['getSnapshot'](){const _0x471d19=_0x413924;return{'bases':Object[_0x471d19(0x300)](this[_0x471d19(0x482)]),'tables':Object[_0x471d19(0x300)](this[_0x471d19(0x433)]),'fields':Object[_0x471d19(0x300)](this['_fieldPermissions']),'records':Object['fromEntries'](this[_0x471d19(0x1a1)]),'views':Object[_0x471d19(0x300)](this[_0x471d19(0x495)])};}[_0x413924(0x249)](_0x2cb33d){const _0x57a119=_0x413924;var _0x3dbfae;return this[_0x57a119(0x312)](_0x2cb33d,[K(_0x2cb33d)])&&(((_0x3dbfae=this[_0x57a119(0x433)][_0x57a119(0x113)](_0x2cb33d))==null?void 0x0:_0x3dbfae[_0x57a119(0x3a8)])??!0x0);}['_canEdit'](_0x32b018,_0x2525ac){const _0x4e61fb=_0x413924;var _0x11ea1c;let _0x5e09e0=this['_resolveBaseId'](_0x32b018);return!_0x5e09e0||zr(this[_0x4e61fb(0x444)],_0x5e09e0,_0x2525ac)&&(((_0x11ea1c=this[_0x4e61fb(0x482)]['get'](_0x5e09e0))==null?void 0x0:_0x11ea1c['edit'])??!0x0);}[_0x413924(0x1c8)](_0x1accae,_0xd6d084,_0x15beae){const _0x5aff38=_0x413924;if(_0x15beae===void 0x0)return;let _0x2d3c50=this[_0x5aff38(0x23b)](_0x1accae);_0x2d3c50&&Ir(this['_permissionService'],_0x2d3c50,_0xd6d084,_0x4a4e33[_0x5aff38(0x40f)],_0x15beae);}[_0x413924(0x334)](_0x19ba85,_0x4581e7){const _0x176eb0=_0x413924;let _0x4d2034=this[_0x176eb0(0x23b)](_0x19ba85);_0x4d2034&&Lr(this['_permissionService'],_0x4d2034,_0x4581e7,_0x4a4e33[_0x176eb0(0x40f)]);}[_0x413924(0x23b)](_0x16596b){const _0x532a69=_0x413924;var _0x1a7a72;let _0x4dead2=this[_0x532a69(0x398)]['getUnit'](_0x16596b,_0x1a4689[_0x532a69(0x413)]);return _0x4dead2?_0x4dead2[_0x532a69(0x27e)]():(_0x1a7a72=this[_0x532a69(0x398)][_0x532a69(0x3ff)](_0x1a4689[_0x532a69(0x413)])['find'](_0x3a9f86=>!!_0x3a9f86[_0x532a69(0x460)]()[_0x532a69(0x28d)][_0x16596b]))==null?void 0x0:_0x1a7a72['getUnitId']();}['_rememberTable'](_0x37e104){const _0x545d52=_0x413924;let _0x53a4d8=this[_0x545d52(0x23b)](_0x37e104);_0x53a4d8&&this['_tableBaseIds']['set'](_0x37e104,_0x53a4d8);}[_0x413924(0x38e)](_0x266153){const _0x164074=_0x413924;this[_0x164074(0x482)][_0x164074(0x4a1)](_0x266153),this[_0x164074(0x1ce)][_0x164074(0x248)]((_0x4a0c05,_0xc7f08f)=>{const _0x14525e=_0x164074;_0x4a0c05===_0x266153&&(this[_0x14525e(0x433)][_0x14525e(0x4a1)](_0xc7f08f),Hr(this[_0x14525e(0x46f)],_0xc7f08f+'\x1f'),Hr(this['_recordPermissions'],_0xc7f08f+'\x1f'),Hr(this['_viewPermissions'],_0xc7f08f+'\x1f'),this[_0x14525e(0x1ce)][_0x14525e(0x4a1)](_0xc7f08f));});}};Vr=X([Y(0x0,_0x151b9e),Y(0x1,_0x4de172)],Vr);function Hr(_0x8000ca,_0x37ff61){const _0x1dff03=_0x413924;_0x8000ca[_0x1dff03(0x248)]((_0x3e872e,_0x47497f)=>{const _0x34eb96=_0x1dff03;_0x47497f[_0x34eb96(0x36e)](_0x37ff61)&&_0x8000ca[_0x34eb96(0x4a1)](_0x47497f);});}function Ur(_0x4dad21,_0x3f3cf2){return _0x4dad21+'\x1f'+_0x3f3cf2;}function Wr(_0x8f46bb,_0x39807c){return _0x8f46bb+'\x1f'+_0x39807c;}function Gr(_0x9d6517,_0x27fa34){return _0x9d6517+'\x1f'+_0x27fa34;}const Kr=_0x116afe(_0x413924(0x37e));let qr=class{constructor(_0x5f4959,_0x2c9b5f=Jr(),_0x3fb239={}){const _0x4de920=_0x413924;this[_0x4de920(0x444)]=_0x5f4959,this[_0x4de920(0x359)]=_0x2c9b5f,this[_0x4de920(0x3ac)]=_0x3fb239,G(this,_0x4de920(0x43d),new W()),G(this,'_applier',new z());}[_0x413924(0x1a4)](_0x54fc17,_0x3e76af,_0x35ceee){const _0x9216e9=_0x413924;if(!this[_0x9216e9(0x444)]['canCreateTable'](_0x54fc17['getUnitId']()))throw Error(_0x9216e9(0x1e7));_0x5f22f6(_0x3e76af),this[_0x9216e9(0x13c)](_0x54fc17,this[_0x9216e9(0x43d)][_0x9216e9(0x1a4)](_0x54fc17['getSnapshot'](),_0x3e76af,_0x35ceee));}[_0x413924(0x316)](_0x451212,_0x198d3d,_0x10db7e){const _0x22803d=_0x413924;if(!this[_0x22803d(0x444)][_0x22803d(0x31f)](_0x198d3d))throw Error(_0x22803d(0x3ee));this[_0x22803d(0x13c)](_0x451212,this[_0x22803d(0x43d)]['renameTable'](_0x451212[_0x22803d(0x460)](),_0x198d3d,_0x10db7e));}['deleteTable'](_0x2edf14,_0x3b52c3){const _0x5da796=_0x413924;if(!this[_0x5da796(0x444)][_0x5da796(0x345)](_0x3b52c3))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20table.');let _0x4831e4=He(_0x2edf14[_0x5da796(0x460)](),_0x3b52c3);if(_0x4831e4[_0x5da796(0x4be)]>0x0)throw Error(_0x5da796(0x4d1)+_0x4831e4['map'](_0x21ed2a=>_0x21ed2a[_0x5da796(0x2ca)]+'.'+_0x21ed2a[_0x5da796(0x1c3)])['join'](',\x20')+').');this[_0x5da796(0x13c)](_0x2edf14,this[_0x5da796(0x43d)][_0x5da796(0x390)](_0x2edf14[_0x5da796(0x460)](),_0x3b52c3));}[_0x413924(0x301)](_0x5317cb,_0x4470f7,_0x4ddb4f,_0x4c6114,_0xedd305){const _0x50639b=_0x413924;this[_0x50639b(0x13c)](_0x5317cb,this[_0x50639b(0x499)](_0x5317cb,_0x4470f7,_0x4ddb4f,_0x4c6114,_0xedd305));}['setRecordValues'](_0x6a8df7,_0x59510d,_0x5d0f1a){const _0x4644e9=_0x413924;this[_0x4644e9(0x13c)](_0x6a8df7,this[_0x4644e9(0x3e9)](_0x6a8df7,_0x59510d,_0x5d0f1a));}[_0x413924(0x484)](_0x1aaa1d,_0x47393e,_0x2e4cfb){const _0x2e8585=_0x413924;this[_0x2e8585(0x13c)](_0x1aaa1d,this[_0x2e8585(0x466)](_0x1aaa1d,_0x47393e,_0x2e4cfb));}['createUpdateCellOp'](_0x306012,_0x5a7745,_0x1fed95,_0x301229,_0xde77fb){const _0x385f56=_0x413924;let _0x365240=_0x306012[_0x385f56(0x460)](),_0x51e9c8=this[_0x385f56(0x2b5)](_0x365240,_0x5a7745,_0x1fed95,_0x301229,_0xde77fb),_0x4d7e42=this[_0x385f56(0x4b0)](_0x365240,_0x5a7745,_0x1fed95,{[_0x301229]:_0x51e9c8});return this['_factory'][_0x385f56(0x1de)](_0x365240,_0x5a7745,[_0x4d7e42]);}['createSetRecordValuesOp'](_0x1b7424,_0x546f3b,_0x492ca4){const _0x5cf62a=_0x413924;let _0x1bf9d3=_0x1b7424[_0x5cf62a(0x460)](),_0x85823d=_0x492ca4[_0x5cf62a(0x438)](_0x34bee8=>this['_withModifiedSystemValues'](_0x1bf9d3,_0x546f3b,_0x34bee8[_0x5cf62a(0x170)],{...Object[_0x5cf62a(0x300)](Object[_0x5cf62a(0x391)](_0x34bee8['values'])[_0x5cf62a(0x438)](([_0x3c79af,_0x2c2555])=>[_0x3c79af,this[_0x5cf62a(0x2b5)](_0x1bf9d3,_0x546f3b,_0x34bee8['recordId'],_0x3c79af,_0x2c2555)]))}));return this[_0x5cf62a(0x43d)]['setRecordValues'](_0x1bf9d3,_0x546f3b,_0x85823d);}[_0x413924(0x466)](_0x358bdd,_0xa532e7,_0x392c04){const _0x5dd542=_0x413924;if(!this[_0x5dd542(0x444)]['canCreateRecord'](_0xa532e7))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x6ed14e=_0x358bdd[_0x5dd542(0x460)](),_0x162fd5=this[_0x5dd542(0x446)](_0x6ed14e['tables'][_0xa532e7]);return this[_0x5dd542(0x43d)][_0x5dd542(0x484)](_0x6ed14e,_0xa532e7,this['_createRecordWithDefaults'](_0x6ed14e,_0xa532e7,_0x392c04,_0x162fd5));}[_0x413924(0x3c5)](_0x3c6408,_0x681349,_0x2255d9){const _0x44ca1d=_0x413924;if(!this[_0x44ca1d(0x444)][_0x44ca1d(0x439)](_0x681349))throw Error(_0x44ca1d(0x2cd));let _0x2d9d86=_0x3c6408[_0x44ca1d(0x460)]();return I(_0x44ca1d(0x11c),()=>{const _0x26e286=_0x44ca1d;let _0x1afee0=this[_0x26e286(0x446)](_0x2d9d86['tables'][_0x681349]);return this['_factory'][_0x26e286(0x350)](_0x2d9d86,_0x681349,_0x2255d9['map'](_0x5e751c=>this[_0x26e286(0x464)](_0x2d9d86,_0x681349,_0x5e751c,_0x1afee0)));},{'existingRecords':Object[_0x44ca1d(0x3a2)](_0x2d9d86[_0x44ca1d(0x28d)][_0x681349][_0x44ca1d(0x3b4)])[_0x44ca1d(0x4be)],'records':_0x2255d9[_0x44ca1d(0x4be)]});}[_0x413924(0x1f6)](_0x2a417b,_0x3d60b6,_0x3d8268,_0x317fa1,_0x1c3916){const _0x516036=_0x413924;if(!this[_0x516036(0x444)]['canCreateField'](_0x3d60b6))throw Error(_0x516036(0x389));let _0x4031d2=_0x2a417b[_0x516036(0x460)]();if(this[_0x516036(0x1b3)](_0x4031d2,_0x3d8268),_0x317fa1===0x0)throw Error(_0x516036(0x303));let _0x28cdc4=this[_0x516036(0x43d)][_0x516036(0x4d5)](_0x4031d2,_0x3d60b6,{'field':_0x3d8268,'index':_0x317fa1,'viewIndexes':_0x1c3916}),_0xa730cd=this[_0x516036(0x402)](_0x4031d2,_0x3d60b6,_0x3d8268);if(!_0xa730cd['length'])return _0x28cdc4;let _0x189e29=this[_0x516036(0x1b0)][_0x516036(0x2f2)](_0x4031d2,_0x28cdc4);return R([_0x28cdc4,this[_0x516036(0x43d)][_0x516036(0x1de)](_0x189e29,_0x3d60b6,_0xa730cd)]);}[_0x413924(0x31a)](_0x16b0c8,_0x3fc01c,_0x22e55e){const _0x13cc6e=_0x413924;if(!this[_0x13cc6e(0x444)][_0x13cc6e(0x202)](_0x3fc01c,_0x22e55e))throw Error(_0x13cc6e(0x27c));this['_apply'](_0x16b0c8,this['_factory'][_0x13cc6e(0x31a)](_0x16b0c8[_0x13cc6e(0x460)](),_0x3fc01c,_0x22e55e));}[_0x413924(0x283)](_0x47f089,_0x576e52,_0x5b0cee,_0x785475){const _0xa47894=_0x413924;if(!this['_permissionService'][_0xa47894(0x439)](_0x576e52))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');this[_0xa47894(0x13c)](_0x47f089,this[_0xa47894(0x43d)]['duplicateRecord'](_0x47f089['getSnapshot'](),_0x576e52,_0x5b0cee,{..._0x785475,'values':{..._0x785475[_0xa47894(0x4ae)],[_0x3f46af]:_0x785475['id']}}));}[_0x413924(0x332)](_0x3c18ea,_0x4b5e85,_0x40c1b6,_0x1db0e7){const _0x321c9c=_0x413924;if(!this[_0x321c9c(0x444)][_0x321c9c(0x4cf)](_0x4b5e85,_0x40c1b6))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record.');this[_0x321c9c(0x13c)](_0x3c18ea,this[_0x321c9c(0x43d)][_0x321c9c(0x332)](_0x3c18ea[_0x321c9c(0x460)](),_0x4b5e85,_0x40c1b6,_0x1db0e7));}[_0x413924(0x4d5)](_0x1448c8,_0xe4fc94,_0x58f794,_0x3563d9,_0x27edc6){const _0xadf10d=_0x413924;this[_0xadf10d(0x13c)](_0x1448c8,this[_0xadf10d(0x1f6)](_0x1448c8,_0xe4fc94,_0x58f794,_0x3563d9,_0x27edc6));}[_0x413924(0x29c)](_0x38b3fd,_0x30c317,_0x587253,_0x595e57){const _0x3f9983=_0x413924;var _0x5b810c;if(!this['_permissionService'][_0x3f9983(0x335)](_0x30c317,_0x587253))throw Error(_0x3f9983(0x1f7));let _0x550f0f=_0x38b3fd[_0x3f9983(0x460)](),_0x356a4c=(_0x5b810c=_0x550f0f[_0x3f9983(0x28d)][_0x30c317])==null?void 0x0:_0x5b810c['fields'][_0x587253];if(!_0x356a4c||_0x587253===_0x3f46af)throw Error(_0x3f9983(0x3ec));this[_0x3f9983(0x1b3)](_0x550f0f,{..._0x356a4c,..._0x595e57}),this['_apply'](_0x38b3fd,this['_factory']['updateField'](_0x550f0f,_0x30c317,_0x587253,_0x595e57));}[_0x413924(0x15c)](_0x2b5af7,_0x13ac24,_0x30c43f,_0x458a05){const _0x12647=_0x413924;var _0x42919f;if(!this[_0x12647(0x444)]['canEditField'](_0x13ac24,_0x30c43f))throw Error(_0x12647(0x1f7));let _0x21c2b0=_0x2b5af7[_0x12647(0x460)](),_0x5841f2=(_0x42919f=_0x21c2b0[_0x12647(0x28d)][_0x13ac24])==null?void 0x0:_0x42919f['fields'][_0x30c43f];if(!_0x5841f2||_0x30c43f===_0x3f46af)throw Error(_0x12647(0x497));this[_0x12647(0x1b3)](_0x21c2b0,{..._0x5841f2,..._0x458a05}),this['_apply'](_0x2b5af7,this[_0x12647(0x43d)][_0x12647(0x15c)](_0x21c2b0,_0x13ac24,_0x30c43f,_0x458a05));}['deleteField'](_0x485b45,_0x2e0a04,_0x565722){const _0x131d00=_0x413924;var _0x417607;if(((_0x417607=_0x485b45['getSnapshot']()[_0x131d00(0x28d)][_0x2e0a04])==null?void 0x0:_0x417607[_0x131d00(0x426)])===_0x565722||_0x565722===_0x3f46af)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x131d00(0x444)]['canDeleteField'](_0x2e0a04,_0x565722))throw Error(_0x131d00(0x2a5));this[_0x131d00(0x13c)](_0x485b45,this[_0x131d00(0x43d)][_0x131d00(0x36f)](_0x485b45[_0x131d00(0x460)](),_0x2e0a04,_0x565722));}['moveField'](_0x39fd61,_0x156d73,_0x42eac8,_0x5e9ac7){const _0x2c2653=_0x413924;if(!this['_permissionService'][_0x2c2653(0x335)](_0x156d73,_0x42eac8))throw Error(_0x2c2653(0x1f7));if(_0x42eac8===_0x3f46af||_0x5e9ac7['beforeFieldId']===_0x3f46af)throw Error(_0x2c2653(0x2a8));this[_0x2c2653(0x13c)](_0x39fd61,this[_0x2c2653(0x43d)][_0x2c2653(0x24a)](_0x39fd61[_0x2c2653(0x460)](),_0x156d73,_0x42eac8,_0x5e9ac7));}[_0x413924(0x2ff)](_0x3ea6fa,_0x57057b,_0x310e29,_0x200a9b){const _0x5775f0=_0x413924;if(!this[_0x5775f0(0x444)]['canManageView'](_0x57057b,_0x310e29['id']))throw Error(_0x5775f0(0x140));this[_0x5775f0(0x13c)](_0x3ea6fa,this[_0x5775f0(0x43d)][_0x5775f0(0x2ff)](_0x3ea6fa[_0x5775f0(0x460)](),_0x57057b,_0x310e29,_0x200a9b));}[_0x413924(0x366)](_0x80cd70,_0x37f574,_0x43ec43,_0xa231d4){const _0x48b7ee=_0x413924;if(!this[_0x48b7ee(0x444)][_0x48b7ee(0x33b)](_0x37f574,_0x43ec43))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x48b7ee(0x13c)](_0x80cd70,this['_factory'][_0x48b7ee(0x366)](_0x80cd70[_0x48b7ee(0x460)](),_0x37f574,_0x43ec43,_0xa231d4));}[_0x413924(0x245)](_0x59d6b8,_0x5d4761,_0x4b00eb){const _0x3a1b67=_0x413924;if(!this[_0x3a1b67(0x444)]['canManageView'](_0x5d4761,_0x4b00eb))throw Error(_0x3a1b67(0x140));this['_apply'](_0x59d6b8,this[_0x3a1b67(0x43d)][_0x3a1b67(0x245)](_0x59d6b8[_0x3a1b67(0x460)](),_0x5d4761,_0x4b00eb));}[_0x413924(0x1a7)](_0x52b413,_0x4a5b28,_0x100c9a,_0x479420){const _0x2b738f=_0x413924;if(!this[_0x2b738f(0x444)][_0x2b738f(0x33b)](_0x4a5b28,_0x100c9a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x2b738f(0x13c)](_0x52b413,this[_0x2b738f(0x43d)][_0x2b738f(0x1a7)](_0x52b413[_0x2b738f(0x460)](),_0x4a5b28,_0x100c9a,_0x479420));}[_0x413924(0x2f8)](_0x4ac6c1,_0x12d078,_0x24018a,_0x233686){const _0x40fbda=_0x413924;if(!this[_0x40fbda(0x444)][_0x40fbda(0x33b)](_0x12d078,_0x24018a))throw Error(_0x40fbda(0x140));this[_0x40fbda(0x13c)](_0x4ac6c1,this[_0x40fbda(0x43d)][_0x40fbda(0x2f8)](_0x4ac6c1[_0x40fbda(0x460)](),_0x12d078,_0x24018a,_0x233686));}[_0x413924(0x121)](_0x35f1a4,_0x47ddeb,_0x1c439b,_0x1812e0){const _0x386c4a=_0x413924;if(!this[_0x386c4a(0x444)][_0x386c4a(0x33b)](_0x47ddeb,_0x1c439b))throw Error(_0x386c4a(0x140));this[_0x386c4a(0x13c)](_0x35f1a4,this[_0x386c4a(0x43d)][_0x386c4a(0x121)](_0x35f1a4['getSnapshot'](),_0x47ddeb,_0x1c439b,_0x1812e0));}['setViewSort'](_0x10512b,_0x1bd98f,_0x2c3e83,_0x3828da){const _0x37970e=_0x413924;if(!this['_permissionService'][_0x37970e(0x33b)](_0x1bd98f,_0x2c3e83))throw Error(_0x37970e(0x140));this[_0x37970e(0x13c)](_0x10512b,this['_factory']['setViewSort'](_0x10512b[_0x37970e(0x460)](),_0x1bd98f,_0x2c3e83,_0x3828da));}[_0x413924(0x2e5)](_0x5551a2,_0x20b0fe,_0x535a2c,_0x5e7724){const _0x197be5=_0x413924;if(!this['_permissionService'][_0x197be5(0x33b)](_0x20b0fe,_0x535a2c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x197be5(0x13c)](_0x5551a2,this[_0x197be5(0x43d)]['setViewGroup'](_0x5551a2['getSnapshot'](),_0x20b0fe,_0x535a2c,_0x5e7724));}[_0x413924(0x37d)](_0x52a14b,_0x90e9d4,_0x29d0ed,_0x4a25e9,_0x46a960){const _0x9e948=_0x413924;if(!this[_0x9e948(0x444)][_0x9e948(0x33b)](_0x90e9d4,_0x29d0ed))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x9e948(0x13c)](_0x52a14b,this[_0x9e948(0x43d)][_0x9e948(0x37d)](_0x52a14b[_0x9e948(0x460)](),_0x90e9d4,_0x29d0ed,_0x4a25e9,_0x46a960));}[_0x413924(0x3ae)](_0x20b3b9,_0xfc6923,_0x16a780,_0x347f11,_0x5ec59e){const _0x355c57=_0x413924;if(!this['_permissionService'][_0x355c57(0x33b)](_0xfc6923,_0x16a780))throw Error(_0x355c57(0x140));this[_0x355c57(0x13c)](_0x20b3b9,this[_0x355c57(0x43d)][_0x355c57(0x3ae)](_0x20b3b9[_0x355c57(0x460)](),_0xfc6923,_0x16a780,_0x347f11,_0x5ec59e));}['setViewFieldOrder'](_0x46bc1b,_0x548029,_0xbce157,_0x3485f3,_0x40a08a){const _0x3713e9=_0x413924;if(!this[_0x3713e9(0x444)]['canManageView'](_0x548029,_0xbce157))throw Error(_0x3713e9(0x140));this[_0x3713e9(0x13c)](_0x46bc1b,this[_0x3713e9(0x43d)][_0x3713e9(0x22c)](_0x46bc1b['getSnapshot'](),_0x548029,_0xbce157,_0x3485f3,_0x40a08a));}[_0x413924(0x13c)](_0x8eba67,_0x5cd711){const _0x3c9b68=_0x413924;let _0xb60592=_0x8eba67[_0x3c9b68(0x460)]();_0x8eba67['setSnapshot'](this[_0x3c9b68(0x1b0)][_0x3c9b68(0x2f2)](_0xb60592,_0x5cd711));}[_0x413924(0x464)](_0x2586a2,_0x18c325,_0x4efc84,_0x14c991=this[_0x413924(0x446)](_0x2586a2['tables'][_0x18c325])){const _0x10d8fa=_0x413924;let _0x158aa0=_0x2586a2[_0x10d8fa(0x28d)][_0x18c325],_0x35764b=_0x4efc84[_0x10d8fa(0x44b)]??_0x4efc84['updatedBy']??this[_0x10d8fa(0x31b)](),_0x13b89c={..._0x4efc84,'createdBy':_0x4efc84[_0x10d8fa(0x44b)]??_0x35764b,'updatedBy':_0x4efc84[_0x10d8fa(0x3eb)]??_0x35764b,'values':{..._0x4efc84[_0x10d8fa(0x4ae)]}};return _0x13b89c['values'][_0x3f46af]=_0x13b89c['id'],_0x158aa0[_0x10d8fa(0x3fc)][_0x10d8fa(0x248)](_0x5cade1=>{const _0x487c44=_0x10d8fa;let _0x4230b7=_0x158aa0['fields'][_0x5cade1];if(_0x4230b7&&_0x13b89c['values'][_0x5cade1]===void 0x0)switch(_0x4230b7[_0x487c44(0x378)]){case _0x39ba8f['Numbering']:var _0x48b666;_0x13b89c[_0x487c44(0x4ae)][_0x5cade1]=((_0x48b666=_0x14c991[_0x487c44(0x113)](_0x5cade1))==null?void 0x0:_0x48b666())??this['_createNumberingAllocator'](_0x158aa0,_0x5cade1)();break;case _0x39ba8f[_0x487c44(0x1ea)]:_0x13b89c[_0x487c44(0x44b)]&&(_0x13b89c[_0x487c44(0x4ae)][_0x5cade1]=_0x13b89c[_0x487c44(0x44b)]);break;case _0x39ba8f['UpdatedBy']:_0x13b89c[_0x487c44(0x3eb)]&&(_0x13b89c[_0x487c44(0x4ae)][_0x5cade1]=_0x13b89c['updatedBy']);break;case _0x39ba8f[_0x487c44(0x3b2)]:_0x13b89c[_0x487c44(0x4ae)][_0x5cade1]=B(_0x13b89c['createdAt']);break;case _0x39ba8f[_0x487c44(0x1b6)]:_0x13b89c[_0x487c44(0x4ae)][_0x5cade1]=B(_0x13b89c[_0x487c44(0x257)]);break;default:{let _0x11eb0c=_0x4230b7[_0x487c44(0x43c)];_0x11eb0c!=null&&_0x11eb0c!==''&&!(Array[_0x487c44(0x348)](_0x11eb0c)&&_0x11eb0c['length']===0x0)&&(_0x13b89c['values'][_0x5cade1]=_0x11eb0c);}}}),_0x13b89c;}[_0x413924(0x4b0)](_0x5b5c31,_0x227472,_0x51d5a2,_0x2a940f){const _0x58ca9d=_0x413924;var _0x1750fc,_0x510eff;let _0x4bf24e=_0x5b5c31[_0x58ca9d(0x28d)][_0x227472],_0xed4dba=((_0x1750fc=(_0x510eff=this[_0x58ca9d(0x3ac)])[_0x58ca9d(0x24d)])==null?void 0x0:_0x1750fc[_0x58ca9d(0x157)](_0x510eff))??Date[_0x58ca9d(0x24d)](),_0x163cf1=this[_0x58ca9d(0x31b)](),_0x695c5={..._0x2a940f};return _0x4bf24e['fieldOrder'][_0x58ca9d(0x248)](_0x15a6f6=>{const _0x3e4271=_0x58ca9d;let _0x1f831d=_0x4bf24e[_0x3e4271(0x175)][_0x15a6f6];_0x1f831d&&(_0x1f831d['type']===_0x39ba8f['UpdatedAt']&&(_0x695c5[_0x15a6f6]=B(_0xed4dba)),_0x1f831d[_0x3e4271(0x378)]===_0x39ba8f[_0x3e4271(0x195)]&&_0x163cf1&&(_0x695c5[_0x15a6f6]=_0x163cf1));}),{'recordId':_0x51d5a2,'values':_0x695c5,'recordPatch':{'updatedAt':_0xed4dba,..._0x163cf1?{'updatedBy':_0x163cf1}:{}}};}['_createSystemFieldValuePatches'](_0x4061bd,_0x5d1f07,_0x1d5fae){const _0x59854f=_0x413924;let _0x3c809e=_0x4061bd['tables'][_0x5d1f07];return!_0x3c809e||!Yr(_0x1d5fae)?[]:_0x1d5fae[_0x59854f(0x378)]===_0x39ba8f['Numbering']?this[_0x59854f(0x3ba)](_0x3c809e,_0x1d5fae['id']):Object['values'](_0x3c809e[_0x59854f(0x3b4)])[_0x59854f(0x4ac)](_0xaf0dca=>{let _0x25c04b=this['_getSystemFieldValue'](_0x1d5fae,_0xaf0dca);return _0x25c04b===void 0x0?[]:[{'recordId':_0xaf0dca['id'],'values':{[_0x1d5fae['id']]:_0x25c04b}}];});}['_getSystemFieldValue'](_0x6aa74b,_0x2f1d6c){const _0x3d8b02=_0x413924;switch(_0x6aa74b[_0x3d8b02(0x378)]){case _0x39ba8f[_0x3d8b02(0x1ea)]:return _0x2f1d6c['createdBy']??this['_getCurrentUserId']();case _0x39ba8f[_0x3d8b02(0x195)]:return _0x2f1d6c[_0x3d8b02(0x3eb)]??this[_0x3d8b02(0x31b)]();case _0x39ba8f[_0x3d8b02(0x3b2)]:return B(_0x2f1d6c[_0x3d8b02(0x2a2)]??Date[_0x3d8b02(0x24d)]());case _0x39ba8f[_0x3d8b02(0x1b6)]:return B(_0x2f1d6c[_0x3d8b02(0x257)]??Date[_0x3d8b02(0x24d)]());default:return;}}[_0x413924(0x446)](_0x4c5612){const _0x1d4687=_0x413924;let _0x407fc6=new Map();return _0x4c5612&&_0x4c5612[_0x1d4687(0x3fc)]['forEach'](_0x5b2fae=>{let _0x2e88c8=_0x4c5612['fields'][_0x5b2fae];(_0x2e88c8==null?void 0x0:_0x2e88c8['type'])===_0x39ba8f['Numbering']&&_0x407fc6['set'](_0x5b2fae,this['_createNumberingAllocator'](_0x4c5612,_0x5b2fae));}),_0x407fc6;}['_createNumberingAllocator'](_0x458583,_0x8a0ae0){const _0x1302ba=_0x413924;let _0x45799c=Object['values'](_0x458583[_0x1302ba(0x3b4)])[_0x1302ba(0x364)]((_0x18234c,_0x58678b)=>{const _0x1c601c=_0x1302ba;let _0x1540c6=Number(_0x58678b[_0x1c601c(0x4ae)][_0x8a0ae0]);return Number[_0x1c601c(0x479)](_0x1540c6)?Math['max'](_0x18234c,_0x1540c6):_0x18234c;},0x0);return()=>String(++_0x45799c);}[_0x413924(0x3ba)](_0xade8f6,_0x4be346){const _0x236b54=_0x413924;let _0x374ea1=this['_getOrderedRecords'](_0xade8f6),_0x569086=this['_createNumberingAllocator'](_0xade8f6,_0x4be346);return _0x374ea1[_0x236b54(0x4ac)](_0x190a75=>this[_0x236b54(0x192)](_0x190a75[_0x236b54(0x4ae)][_0x4be346])?[]:[{'recordId':_0x190a75['id'],'values':{[_0x4be346]:_0x569086()}}]);}[_0x413924(0x29b)](_0x6c9aa3){const _0x54405b=_0x413924;var _0x46a6f4;let _0x216cd4=Object[_0x54405b(0x4ae)](_0x6c9aa3['records']),_0x55e9d1=new Map(_0x216cd4[_0x54405b(0x438)](_0x310530=>[_0x310530['id'],_0x310530])),_0x421d00=[],_0x2d4756=new Set();(_0x46a6f4=_0x6c9aa3[_0x54405b(0x1c6)])==null||_0x46a6f4[_0x54405b(0x248)](_0x3223db=>{const _0x38fd3d=_0x54405b;let _0x3df5a8=_0x55e9d1['get'](_0x3223db);_0x3df5a8&&(_0x421d00[_0x38fd3d(0x34c)](_0x3df5a8),_0x2d4756[_0x38fd3d(0x4c2)](_0x3223db));});let _0x1b0029=_0x216cd4[_0x54405b(0x457)](_0x26c8d8=>!_0x2d4756['has'](_0x26c8d8['id']))['sort']((_0x24d4d8,_0x5f064e)=>String(_0x24d4d8[_0x54405b(0x124)]??_0x24d4d8['id'])[_0x54405b(0x4ce)](String(_0x5f064e[_0x54405b(0x124)]??_0x5f064e['id']))||_0x24d4d8['id']['localeCompare'](_0x5f064e['id']));return[..._0x421d00,..._0x1b0029];}['_isNonEmptyCellValue'](_0x286c85){const _0x33e3f7=_0x413924;return _0x286c85!=null&&_0x286c85!==''&&!(Array[_0x33e3f7(0x348)](_0x286c85)&&_0x286c85[_0x33e3f7(0x4be)]===0x0);}[_0x413924(0x31b)](){const _0x123e72=_0x413924;var _0x42e87a,_0x45de82,_0xf2c591,_0x442b8a;return((_0x42e87a=(_0x45de82=this['_runtimeContext'])[_0x123e72(0x178)])==null?void 0x0:_0x42e87a[_0x123e72(0x157)](_0x45de82))??((_0xf2c591=(_0x442b8a=this[_0x123e72(0x3ac)])['getCurrentUser'])==null||(_0xf2c591=_0xf2c591[_0x123e72(0x157)](_0x442b8a))==null?void 0x0:_0xf2c591['userID'])??void 0x0;}[_0x413924(0x2b5)](_0x4fcdee,_0x2d82c4,_0x30cb1e,_0xb142e8,_0x181ad4){const _0x159112=_0x413924;var _0x191eeb;if(!this[_0x159112(0x444)][_0x159112(0x309)](_0x2d82c4,_0x30cb1e,_0xb142e8))throw Error(_0x159112(0x207));let _0x2ade29=(_0x191eeb=_0x4fcdee[_0x159112(0x28d)][_0x2d82c4])==null?void 0x0:_0x191eeb[_0x159112(0x175)][_0xb142e8];if(!_0x2ade29)throw Error(_0x159112(0x351)+_0xb142e8+_0x159112(0x2b2));let _0xc34824=this['_fieldRegistry']['get'](_0x2ade29[_0x159112(0x378)]);if(_0x2ade29[_0x159112(0x19e)]||_0x2ade29[_0x159112(0x22f)]||!_0xc34824[_0x159112(0x3c3)](_0x2ade29)[_0x159112(0x15f)])throw Error(_0x159112(0x14d));let _0x35918f=_0xc34824[_0x159112(0x10f)](_0x181ad4,_0x2ade29),_0x172166=_0xc34824[_0x159112(0x3df)](_0x35918f,_0x2ade29);if(!_0x172166['valid'])throw Error(_0x172166[_0x159112(0x24f)]??'[BaseCommandService]:\x20invalid\x20cell\x20value.');let _0x326640=_0x2ade29[_0x159112(0x378)]===_0x39ba8f[_0x159112(0x1e4)]?Ve(_0x4fcdee,_0x2ade29,_0x35918f):{'valid':!0x0};if(!_0x326640[_0x159112(0x3e2)])throw Error(_0x326640[_0x159112(0x24f)]??_0x159112(0x2f9));return _0x35918f;}['_assertFieldDefinition'](_0x45728b,_0x2ad9a7){const _0x905620=_0x413924;if(_0x2ad9a7['id']===_0x3f46af||_0x2ad9a7['type']===_0x39ba8f[_0x905620(0x216)]||_0x5c3099(_0x2ad9a7[_0x905620(0x1f9)]))throw Error(_0x905620(0x2df));let _0x47dc99=Be(_0x45728b,_0x2ad9a7);if(!_0x47dc99['valid'])throw Error(_0x47dc99[_0x905620(0x24f)]??_0x905620(0x110));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x32ffac=_0x413924;let _0x4d1601=new hr();return zn()[_0x32ffac(0x248)](_0x5c2cbe=>_0x4d1601[_0x32ffac(0x331)](_0x5c2cbe)),_0x4d1601;}function Yr(_0x571f54){const _0x44e5e7=_0x413924;return _0x571f54[_0x44e5e7(0x378)]===_0x39ba8f['Numbering']||_0x571f54[_0x44e5e7(0x378)]===_0x39ba8f['CreatedBy']||_0x571f54[_0x44e5e7(0x378)]===_0x39ba8f[_0x44e5e7(0x195)]||_0x571f54['type']===_0x39ba8f[_0x44e5e7(0x3b2)]||_0x571f54[_0x44e5e7(0x378)]===_0x39ba8f['UpdatedAt'];}const Xr=new Set([_0x39ba8f['Progress'],_0x39ba8f[_0x413924(0x152)],_0x39ba8f[_0x413924(0x15d)]]);function Zr(_0x3edf24){const _0xdb4bb2=_0x413924;let _0x59d539=_0x3edf24[_0xdb4bb2(0x175)][_0x3edf24[_0xdb4bb2(0x426)]];if((!_0x59d539||_0x59d539[_0xdb4bb2(0x22f)]!==!0x0&&_0x59d539['id'][_0xdb4bb2(0x358)]()!=='id'&&_0x59d539[_0xdb4bb2(0x1f9)][_0xdb4bb2(0x401)]()[_0xdb4bb2(0x358)]()!=='id')&&_0x59d539)return _0x59d539['id'];for(let _0x46c07a of _0x3edf24[_0xdb4bb2(0x3fc)]){let _0x3327c7=_0x3edf24[_0xdb4bb2(0x175)][_0x46c07a];if(_0x3327c7&&_0x3327c7['id']!==_0x3edf24[_0xdb4bb2(0x426)]&&_0x3327c7['system']!==!0x0&&_0x3327c7[_0xdb4bb2(0x378)]!==_0x39ba8f[_0xdb4bb2(0x216)])return _0x3327c7['id'];}return _0x3edf24[_0xdb4bb2(0x426)];}function Qr(_0x4ab3ed,_0x4cb66f=[],_0x7a26a0=0x5){const _0x54a7bf=_0x413924;let _0x3b89eb=new Set(_0x4cb66f[_0x54a7bf(0x457)](_0x3d47b1=>!!_0x3d47b1)),_0x3d2e80=[],_0x178daf=[];for(let _0x4c1482 of _0x4ab3ed[_0x54a7bf(0x3fc)]){let _0x3d0d5a=_0x4ab3ed[_0x54a7bf(0x175)][_0x4c1482];_0x3d0d5a&&_0x3d0d5a['system']!==!0x0&&_0x3d0d5a[_0x54a7bf(0x378)]!==_0x39ba8f[_0x54a7bf(0x216)]&&!_0x3b89eb['has'](_0x3d0d5a['id'])&&(Xr[_0x54a7bf(0x3cf)](_0x3d0d5a[_0x54a7bf(0x378)])?_0x3d2e80:_0x178daf)[_0x54a7bf(0x34c)](_0x3d0d5a['id']);}return[..._0x3d2e80,..._0x178daf][_0x54a7bf(0x3a7)](0x0,_0x7a26a0);}function $r(){const _0x1ae193=_0x413924;return[{'type':_0xc119d4[_0x1ae193(0x3dc)],'i18nKey':_0x1ae193(0x416),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x4ac5c3=_0x1ae193;throw Error(_0x4ac5c3(0x30c));}},{'type':_0xc119d4[_0x1ae193(0x190)],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x235f8d=>{const _0x1f47d5=_0x1ae193;let _0x5ea79e=ei(_0x235f8d);return{'groupFieldId':_0x5ea79e,'coverFieldId':null,'cardLayout':_0x1f47d5(0x3c7),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x235f8d[_0x1f47d5(0x426)],'fieldIds':Qr(_0x235f8d,[_0x235f8d[_0x1f47d5(0x426)],_0x5ea79e])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0xc119d4['Calendar'],'i18nKey':'base.viewType.calendar','createDefaultConfig':_0x49ec6a=>{const _0x1fb69a=_0x1ae193;let _0x1e54a5=ti(_0x49ec6a);return{'startDateFieldId':_0x1e54a5,'endDateFieldId':ni(_0x49ec6a,_0x1e54a5),'titleFieldId':_0x49ec6a[_0x1fb69a(0x426)],'mode':_0x1fb69a(0x4d0),'timeslotSize':_0x1fb69a(0x3dd),'timeZone':_0x1fb69a(0x373),'displayColor':{'type':'custom','color':_0x1fb69a(0x418)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0xc119d4[_0x1ae193(0x44c)],'i18nKey':_0x1ae193(0x4b3),'createDefaultConfig':_0x5d74f2=>{const _0x21a65b=_0x1ae193;let _0x19540e=ti(_0x5d74f2);return{'startDateFieldId':_0x19540e,'endDateFieldId':ni(_0x5d74f2,_0x19540e)??_0x19540e,'titleFieldId':_0x5d74f2['primaryFieldId'],'scale':_0x21a65b(0x4d0),'showTodayLine':!0x0,'displayColor':{'type':_0x21a65b(0x4ba),'color':_0x21a65b(0x3b5)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0xc119d4[_0x1ae193(0x2f7)],'i18nKey':_0x1ae193(0x3f7),'createDefaultConfig':_0x31db10=>{const _0x2b85a0=_0x1ae193;let _0x18f01d=Zr(_0x31db10);return{'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x18f01d,'coverFieldId':null,'fieldIds':Qr(_0x31db10,[_0x18f01d,_0x31db10[_0x2b85a0(0x426)]])},'cardSize':_0x2b85a0(0x3dd)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}}];}function ei(_0x58e945){const _0x46cbc5=_0x413924;var _0x515448,_0x57a25a,_0x544dcf;let _0x10e38c=_0x58e945[_0x46cbc5(0x3fc)][_0x46cbc5(0x438)](_0x3a39c7=>_0x58e945[_0x46cbc5(0x175)][_0x3a39c7])[_0x46cbc5(0x457)](_0x4e7350=>!!_0x4e7350);return((_0x515448=_0x10e38c[_0x46cbc5(0x196)](_0x124c5f=>_0x124c5f[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x183)]||_0x124c5f[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x40c)]||_0x124c5f[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x14f)]))==null?void 0x0:_0x515448['id'])??((_0x57a25a=_0x10e38c[_0x46cbc5(0x196)](_0x371540=>_0x371540[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x496)]))==null?void 0x0:_0x57a25a['id'])??((_0x544dcf=_0x10e38c['find'](_0x4d3828=>_0x4d3828[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x2c9)]||_0x4d3828[_0x46cbc5(0x378)]===_0x39ba8f[_0x46cbc5(0x3b2)]||_0x4d3828[_0x46cbc5(0x378)]===_0x39ba8f['UpdatedAt']))==null?void 0x0:_0x544dcf['id'])??_0x58e945['primaryFieldId'];}function ti(_0x39d3bd){const _0x59300e=_0x413924;var _0x530a35;return((_0x530a35=_0x39d3bd[_0x59300e(0x3fc)][_0x59300e(0x438)](_0x3e6d55=>_0x39d3bd['fields'][_0x3e6d55])[_0x59300e(0x196)](ri))==null?void 0x0:_0x530a35['id'])??'';}function ni(_0xe03445,_0x12ca31){const _0x541020=_0x413924;var _0x4efaa5;return(_0x4efaa5=_0xe03445[_0x541020(0x3fc)][_0x541020(0x438)](_0x38307c=>_0xe03445[_0x541020(0x175)][_0x38307c])[_0x541020(0x196)](_0x56d074=>ri(_0x56d074)&&_0x56d074['id']!==_0x12ca31))==null?void 0x0:_0x4efaa5['id'];}function ri(_0xf199c){const _0x1e4643=_0x413924;return!!_0xf199c&&_0xf199c['type']===_0x39ba8f[_0x1e4643(0x2c9)]&&_0xf199c['readonly']!==!0x0&&_0xf199c['system']!==!0x0;}const ii=_0x116afe(_0x413924(0x346)),ai=new Set([_0x39ba8f[_0x413924(0x21b)],_0x39ba8f['Currency'],_0x39ba8f['Progress'],_0x39ba8f[_0x413924(0x152)],_0x39ba8f['Date'],_0x39ba8f[_0x413924(0x3b2)],_0x39ba8f[_0x413924(0x1b6)],_0x39ba8f[_0x413924(0x15d)]]),oi=0x5265c00;let si=class extends _0x51b493{constructor(_0x2cbfac){const _0x43f047=_0x413924;super(),this[_0x43f047(0x359)]=_0x2cbfac,G(this,_0x43f047(0x14a),new Map()),G(this,_0x43f047(0x4db),new WeakMap()),G(this,_0x43f047(0x22a),new Map()),G(this,_0x43f047(0x2aa),new Map()),G(this,_0x43f047(0x276),new Map()),G(this,_0x43f047(0x355),new Map()),G(this,'_globalRevision',0x0),G(this,_0x43f047(0x383),new Map()),G(this,'_cellRevisions',new Map()),G(this,'_cellInvalidations',new Map()),G(this,_0x43f047(0x453),new Map());}[_0x413924(0x23a)](_0x425aa7){const _0x3895a1=_0x413924;return this[_0x3895a1(0x14a)]['set'](_0x425aa7[_0x3895a1(0x378)],_0x425aa7),_0x500368(()=>this[_0x3895a1(0x14a)]['delete'](_0x425aa7[_0x3895a1(0x378)]));}[_0x413924(0x2a1)](_0x46a564,_0x1566c0,_0x4360fc){const _0x3d1cf5=_0x413924;var _0x22503f,_0x1ed12b,_0x5105ad;return I(_0x3d1cf5(0x32f),()=>{const _0x57aa16=_0x3d1cf5;let _0x32a592=this[_0x57aa16(0x341)](_0x46a564,_0x1566c0,_0x4360fc);if(_0x32a592)return _0x32a592;let _0x42aa2b=_0x46a564[_0x57aa16(0x28d)][_0x1566c0],_0x20221e=_0x42aa2b==null?void 0x0:_0x42aa2b[_0x57aa16(0x379)][_0x4360fc];if(!_0x42aa2b||!_0x20221e)return this[_0x57aa16(0x27f)](_0x46a564,_0x1566c0,_0x4360fc,{'type':'invalid','viewType':(_0x20221e==null?void 0x0:_0x20221e[_0x57aa16(0x378)])??_0xc119d4['Grid'],'reason':_0x57aa16(0x4aa)});let _0xfc8e7d;switch(_0x20221e[_0x57aa16(0x378)]){case _0xc119d4[_0x57aa16(0x3dc)]:_0xfc8e7d=this[_0x57aa16(0x253)](_0x42aa2b,_0x20221e);break;case _0xc119d4[_0x57aa16(0x44c)]:_0xfc8e7d=this['_buildGantt'](_0x42aa2b,_0x20221e);break;case _0xc119d4[_0x57aa16(0x190)]:_0xfc8e7d=this[_0x57aa16(0x3e8)](_0x42aa2b,_0x20221e);break;case _0xc119d4[_0x57aa16(0x284)]:_0xfc8e7d=this[_0x57aa16(0x48f)](_0x42aa2b,_0x20221e);break;case _0xc119d4[_0x57aa16(0x2f7)]:_0xfc8e7d=this[_0x57aa16(0x478)](_0x42aa2b,_0x20221e);break;default:_0xfc8e7d={'type':_0x57aa16(0x3bb),'viewType':_0x20221e[_0x57aa16(0x378)],'reason':_0x57aa16(0x4aa)};}return this[_0x57aa16(0x27f)](_0x46a564,_0x1566c0,_0x4360fc,_0xfc8e7d);},{'tableId':_0x1566c0,'viewId':_0x4360fc,'viewType':(_0x22503f=_0x46a564[_0x3d1cf5(0x28d)][_0x1566c0])==null||(_0x22503f=_0x22503f[_0x3d1cf5(0x379)][_0x4360fc])==null?void 0x0:_0x22503f['type'],'records':((_0x1ed12b=_0x46a564['tables'][_0x1566c0])==null||(_0x1ed12b=_0x1ed12b[_0x3d1cf5(0x1c6)])==null?void 0x0:_0x1ed12b['length'])??Object['keys'](((_0x5105ad=_0x46a564[_0x3d1cf5(0x28d)][_0x1566c0])==null?void 0x0:_0x5105ad[_0x3d1cf5(0x3b4)])??{})[_0x3d1cf5(0x4be)]});}[_0x413924(0x47f)](_0x163193,_0x576ad6,_0x1bcc72){const _0x12fda6=_0x413924;var _0x57e85c,_0x57a3d2,_0x520b5d;let _0xd0a9b5=_0x163193[_0x12fda6(0x28d)][_0x576ad6],_0x1f5442=_0xd0a9b5==null?void 0x0:_0xd0a9b5[_0x12fda6(0x379)][_0x1bcc72];if(!_0xd0a9b5||!_0x1f5442)throw Error(_0x12fda6(0x263)+_0x1bcc72+'\x22.');let _0x4a4863=_0x2f13d6=>!!_0xd0a9b5[_0x12fda6(0x175)][_0x2f13d6],_0x33c86d={..._0x1f5442,'filter':_0x1f5442['filter']?{..._0x1f5442[_0x12fda6(0x457)],'conditions':_0x1f5442[_0x12fda6(0x457)][_0x12fda6(0x31c)]['filter'](_0x2ed0af=>_0x4a4863(_0x2ed0af[_0x12fda6(0x1c3)]))}:_0x1f5442[_0x12fda6(0x457)],'sort':(_0x57e85c=_0x1f5442['sort'])==null?void 0x0:_0x57e85c[_0x12fda6(0x457)](_0x37fe95=>_0x4a4863(_0x37fe95[_0x12fda6(0x1c3)])),'group':(_0x57a3d2=_0x1f5442['group'])==null?void 0x0:_0x57a3d2['filter'](_0x65a3eb=>_0x4a4863(_0x65a3eb[_0x12fda6(0x1c3)])),'fieldOrder':(_0x520b5d=_0x1f5442[_0x12fda6(0x3fc)])==null?void 0x0:_0x520b5d[_0x12fda6(0x457)](_0x4a4863),'fieldSettings':Object[_0x12fda6(0x300)](Object[_0x12fda6(0x391)](_0x1f5442[_0x12fda6(0x468)]??{})[_0x12fda6(0x457)](([_0x112910])=>_0x4a4863(_0x112910)))};if(_0x33c86d[_0x12fda6(0x378)]===_0x12fda6(0x4c3)){var _0x24f3fa;let _0x3256f4=_0x33c86d[_0x12fda6(0x406)]??{},_0x2b486e=this[_0x12fda6(0x141)](_0xd0a9b5,_0x33c86d),_0x4de3b=this[_0x12fda6(0x17b)](_0xd0a9b5,(_0x24f3fa=_0x3256f4[_0x12fda6(0x2d9)])==null?void 0x0:_0x24f3fa[_0x12fda6(0x162)]);_0x33c86d[_0x12fda6(0x406)]={..._0x3256f4,'groupFieldId':_0x2b486e??_0x3256f4[_0x12fda6(0x22d)],'coverFieldId':this[_0x12fda6(0x1c2)](_0xd0a9b5,_0x3256f4),'cardLayout':_0x3256f4[_0x12fda6(0x474)]===_0x12fda6(0x2ad)?_0x12fda6(0x2ad):_0x12fda6(0x3c7),'showFieldNames':_0x3256f4['showFieldNames']!==!0x1,'fieldSettings':Object[_0x12fda6(0x300)](Object[_0x12fda6(0x391)](_0x3256f4[_0x12fda6(0x468)]??{})[_0x12fda6(0x457)](([_0x46234a])=>_0x4a4863(_0x46234a))),'columnSettings':_0x3256f4[_0x12fda6(0x119)]??{},'card':{..._0x3256f4['card']??{},'titleFieldId':_0x4de3b,'fieldIds':this[_0x12fda6(0x1d2)](_0xd0a9b5,_0x33c86d,_0x2b486e??'',_0x4de3b)}};}return{'repaired':JSON[_0x12fda6(0x3d0)](_0x33c86d)!==JSON[_0x12fda6(0x3d0)](_0x1f5442),'view':_0x33c86d};}['invalidateByOp'](){const _0x585850=_0x413924;this[_0x585850(0x3a4)]++;}[_0x413924(0x2ee)](_0x19dd00,_0x4a8675,_0x2b09a1){const _0x4b8881=_0x413924;let _0x1799a2=this[_0x4b8881(0x445)](_0x19dd00)+0x1;this[_0x4b8881(0x1ae)][_0x4b8881(0x404)](_0x19dd00,_0x1799a2);let _0x2e6de1=this[_0x4b8881(0x160)][_0x4b8881(0x113)](_0x19dd00)??[];_0x2e6de1[_0x4b8881(0x34c)]({'revision':_0x1799a2,'recordId':_0x4a8675,'fieldId':_0x2b09a1}),this['_cellInvalidations'][_0x4b8881(0x404)](_0x19dd00,_0x2e6de1);}[_0x413924(0x369)](_0x1d4b31,_0x108212){const _0x451d79=_0x413924;this[_0x451d79(0x46d)](_0x1d4b31);}[_0x413924(0x31d)](_0x1785a3,_0x3fb7ac){const _0x5f3d8c=_0x413924;this[_0x5f3d8c(0x453)][_0x5f3d8c(0x404)](this[_0x5f3d8c(0x363)](_0x1785a3,_0x3fb7ac),this[_0x5f3d8c(0x258)](_0x1785a3,_0x3fb7ac)+0x1);}['_getCachedProjection'](_0x1b2b88,_0xd1a126,_0xa94240){const _0x4546e9=_0x413924;var _0x3d727f;let _0x5d5259=(_0x3d727f=this[_0x4546e9(0x4db)]['get'](_0x1b2b88))==null?void 0x0:_0x3d727f[_0x4546e9(0x113)](this[_0x4546e9(0x2c6)](_0xd1a126,_0xa94240));return _0x5d5259&&_0x5d5259['globalRevision']===this[_0x4546e9(0x3a4)]&&_0x5d5259['tableRevision']===this[_0x4546e9(0x21a)](_0xd1a126)&&_0x5d5259['cellRevision']===this[_0x4546e9(0x445)](_0xd1a126)&&_0x5d5259['viewRevision']===this['_getViewRevision'](_0xd1a126,_0xa94240)?_0x5d5259['projection']:null;}[_0x413924(0x27f)](_0x1a6038,_0x3d6939,_0x2b6194,_0x3b98d3){const _0x5011b8=_0x413924;let _0x16feae=this['_projectionCache']['get'](_0x1a6038);return _0x16feae||(_0x16feae=new Map(),this['_projectionCache'][_0x5011b8(0x404)](_0x1a6038,_0x16feae)),_0x16feae[_0x5011b8(0x404)](this['_cacheKey'](_0x3d6939,_0x2b6194),{'projection':_0x3b98d3,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x5011b8(0x21a)](_0x3d6939),'cellRevision':this[_0x5011b8(0x445)](_0x3d6939),'viewRevision':this[_0x5011b8(0x258)](_0x3d6939,_0x2b6194)}),_0x3b98d3;}['_bumpTableRevision'](_0x146927){const _0x565be8=_0x413924;this[_0x565be8(0x383)][_0x565be8(0x404)](_0x146927,this[_0x565be8(0x21a)](_0x146927)+0x1);}[_0x413924(0x21a)](_0x4b1bac){const _0x1fbc21=_0x413924;return this[_0x1fbc21(0x383)]['get'](_0x4b1bac)??0x0;}[_0x413924(0x445)](_0x112c1b){const _0x13001e=_0x413924;return this[_0x13001e(0x1ae)][_0x13001e(0x113)](_0x112c1b)??0x0;}[_0x413924(0x258)](_0x28fa05,_0x2011c6){const _0x2f2c85=_0x413924;return this[_0x2f2c85(0x453)][_0x2f2c85(0x113)](this[_0x2f2c85(0x363)](_0x28fa05,_0x2011c6))??0x0;}[_0x413924(0x2c6)](_0x49a91d,_0x4ee1b3){return _0x49a91d+'\x00'+_0x4ee1b3;}[_0x413924(0x477)](_0x394894,_0x10304c){return _0x394894+'\x00'+this['_rowTransformCacheSegment'](_0x10304c);}[_0x413924(0x39e)](_0x41f58b,_0x4420a9,_0x4ec35e){const _0x156eb1=_0x413924;return _0x41f58b+'\x00'+this[_0x156eb1(0x3da)](_0x4420a9)+'\x00'+this[_0x156eb1(0x4b8)](_0x4ec35e);}['_rowTransformCacheSegment'](_0x5d8d94){const _0x39edc9=_0x413924;return _0x5d8d94?mi({'filter':di(_0x5d8d94['filter']),'sort':pi(_0x5d8d94[_0x39edc9(0x116)])}):_0x39edc9(0x324);}[_0x413924(0x4b8)](_0x358e73){const _0x84a403=_0x413924;return mi(_0x358e73[_0x84a403(0x438)](_0x5f5846=>({'fieldId':_0x5f5846[_0x84a403(0x1c3)],'direction':_0x5f5846[_0x84a403(0x1ec)]??null})));}[_0x413924(0x363)](_0x5dc0a2,_0x395ff2){return _0x5dc0a2+'\x00'+_0x395ff2;}[_0x413924(0x253)](_0x1dfe53,_0x2699e9){const _0x3afb67=_0x413924;var _0x2bab20;let _0x252cb3=Je(_0x1dfe53),_0x56702e=this[_0x3afb67(0x338)](_0x1dfe53,_0x2699e9),_0x41d1ea=(_0x2bab20=_0x2699e9[_0x3afb67(0x457)])!=null&&_0x2bab20[_0x3afb67(0x31c)][_0x3afb67(0x4be)]?this[_0x3afb67(0x338)](_0x1dfe53,{..._0x2699e9,'filter':null}):_0x56702e,_0x3c669e=nt(this[_0x3afb67(0x421)](_0x1dfe53,_0x252cb3,_0x2699e9['id'],_0x41d1ea[_0x3afb67(0x438)](_0x5cbb99=>_0x5cbb99[_0x3afb67(0x170)])),_0x41d1ea,new Set(_0x56702e[_0x3afb67(0x438)](_0x149a7e=>_0x149a7e[_0x3afb67(0x170)])));return{'type':_0xc119d4[_0x3afb67(0x3dc)],'fields':this['_projectFields'](_0x1dfe53,_0x2699e9),'rows':_0x3c669e[_0x3afb67(0x4c1)],'groups':this[_0x3afb67(0x281)](_0x1dfe53,_0x2699e9,_0x3c669e[_0x3afb67(0x4c1)],_0x3c669e['hierarchy']),'hierarchy':_0x3c669e['hierarchy'],'frozenFieldCount':typeof _0x2699e9['config'][_0x3afb67(0x3d8)]==_0x3afb67(0x42c)?_0x2699e9[_0x3afb67(0x406)][_0x3afb67(0x3d8)]:0x0};}[_0x413924(0x421)](_0x2a50b1,_0x34d782,_0x8504ef,_0x183353){const _0x41961d=_0x413924;let _0x1a6789=_0x2a50b1['id']+'\x00'+_0x34d782+'\x00'+_0x8504ef,_0xd5d4e3=this[_0x41961d(0x445)](_0x2a50b1['id']),_0x34a189=this[_0x41961d(0x355)][_0x41961d(0x113)](_0x1a6789);if(_0x34a189&&_0x34a189[_0x41961d(0x4dc)]===this[_0x41961d(0x3a4)]&&_0x34a189[_0x41961d(0x431)]===this[_0x41961d(0x21a)](_0x2a50b1['id'])&&_0x34a189[_0x41961d(0x189)][_0x41961d(0x4be)]===_0x183353[_0x41961d(0x4be)]&&_0x34a189['orderedRecordIds'][_0x41961d(0x23d)]((_0x160497,_0x934258)=>_0x160497===_0x183353[_0x934258])){if(_0x34a189[_0x41961d(0x3b0)]===_0xd5d4e3&&_0x34a189['table']===_0x2a50b1)return _0x34a189['index'];if(!this[_0x41961d(0x212)](_0x2a50b1['id'],_0x34a189[_0x41961d(0x3b0)],_0xd5d4e3,new Set([_0x34d782])))return this[_0x41961d(0x355)]['set'](_0x1a6789,{..._0x34a189,'table':_0x2a50b1,'cellRevision':_0xd5d4e3}),_0x34a189[_0x41961d(0x319)];}let _0x226695=tt(_0x2a50b1,_0x34d782,_0x183353);return this[_0x41961d(0x355)]['set'](_0x1a6789,{'table':_0x2a50b1,'index':_0x226695,'orderedRecordIds':_0x183353,'globalRevision':this[_0x41961d(0x3a4)],'tableRevision':this[_0x41961d(0x21a)](_0x2a50b1['id']),'cellRevision':_0xd5d4e3}),_0x226695;}[_0x413924(0x281)](_0x5762fd,_0x169999,_0x2b56b6,_0x2a31c7){const _0x4593f5=_0x413924;var _0x27b322;if(!((_0x27b322=_0x169999['group'])!=null&&_0x27b322[_0x4593f5(0x4be)]))return[];let _0x299dda=new Map(_0x2b56b6[_0x4593f5(0x438)](_0x321495=>[_0x321495[_0x4593f5(0x170)],_0x321495])),_0x314114=_0x2a31c7[_0x4593f5(0x1a2)][_0x4593f5(0x4ac)](_0x105d51=>{let _0x54f3c8=_0x299dda['get'](_0x105d51);return _0x54f3c8?[_0x54f3c8]:[];}),_0xe240a=this[_0x4593f5(0x145)](_0x5762fd,_0x169999,_0x314114),_0x2de93e=new Map(_0x2a31c7['orderedRecordIds'][_0x4593f5(0x438)]((_0x52ec0b,_0x53b6ba)=>[_0x52ec0b,_0x53b6ba])),_0x46b39f=_0x430e0=>{const _0x2167c1=_0x4593f5;let _0x13e687=_0x2a31c7['nodes'][_0x430e0],_0x26aa60=_0x2de93e[_0x2167c1(0x113)](_0x430e0)??-0x1;return _0x26aa60<0x0||!_0x13e687?[]:_0x2a31c7[_0x2167c1(0x189)]['slice'](_0x26aa60,_0x13e687[_0x2167c1(0x2fa)]+0x1);},_0x4c3136=_0x304b5e=>{const _0xa0739b=_0x4593f5;var _0x5a1491,_0x4644d8;return{..._0x304b5e,'recordIds':(_0x5a1491=_0x304b5e[_0xa0739b(0x296)])!=null&&_0x5a1491[_0xa0739b(0x4be)]?_0x304b5e[_0xa0739b(0x230)]:_0x304b5e['recordIds'][_0xa0739b(0x4ac)](_0x46b39f),'children':(_0x4644d8=_0x304b5e[_0xa0739b(0x296)])==null?void 0x0:_0x4644d8[_0xa0739b(0x438)](_0x4c3136)};};return _0xe240a[_0x4593f5(0x438)](_0x4c3136);}[_0x413924(0x3e8)](_0x338e01,_0x1c0d89){const _0x505618=_0x413924;var _0x433080;let _0x272d33=this[_0x505618(0x141)](_0x338e01,_0x1c0d89),_0x5a986a=_0x272d33?_0x338e01['fields'][_0x272d33]:void 0x0;if(!_0x5a986a)return{'type':_0x505618(0x3bb),'viewType':_0xc119d4[_0x505618(0x190)],'reason':_0x505618(0x45c),'fieldId':_0x1c0d89[_0x505618(0x406)][_0x505618(0x22d)]};let _0x551c1a=this['_projectRows'](_0x338e01,_0x1c0d89),_0x387c37=this[_0x505618(0x3a9)](_0x338e01,_0x1c0d89),_0x5610c3=_0x1c0d89[_0x505618(0x406)]??{},_0x2727b7=this[_0x505618(0x17b)](_0x338e01,(_0x433080=_0x5610c3['card'])==null?void 0x0:_0x433080[_0x505618(0x162)]),_0xa85ac7=this[_0x505618(0x1d2)](_0x338e01,_0x1c0d89,_0x5a986a['id'],_0x2727b7),_0x457ab8=new Map();if(F(_0x338e01,_0x5a986a['id'])){let _0x3eba0e=this[_0x505618(0x421)](_0x338e01,_0x5a986a['id'],_0x1c0d89['id'],_0x551c1a['map'](_0x29c07f=>_0x29c07f[_0x505618(0x170)])),_0x57f096=new Map();return _0x551c1a[_0x505618(0x248)](_0xecba64=>{const _0x37f9d0=_0x505618;let _0x37a7a9=_0x3eba0e[_0x37f9d0(0x430)][_0x37f9d0(0x113)](_0xecba64['recordId'])??null,_0x44468c=_0x37a7a9??'',_0x54f486=_0x37a7a9?_0x338e01[_0x37f9d0(0x3b4)][_0x37a7a9]:void 0x0,_0x510d60=_0x57f096['get'](_0x44468c)??{'key':_0x44468c,'title':_0x54f486?String(yt(_0x338e01,_0x54f486['id'],_0x338e01[_0x37f9d0(0x426)])??_0x37a7a9):this['_kanbanLaneTitle'](_0x5a986a,_0x44468c,_0x5610c3),'recordIds':[]};_0x510d60[_0x37f9d0(0x230)][_0x37f9d0(0x34c)](_0xecba64[_0x37f9d0(0x170)]),_0x57f096[_0x37f9d0(0x404)](_0x44468c,_0x510d60);}),{'type':_0xc119d4['Kanban'],'fields':_0x387c37,'rows':_0x551c1a,'groups':[],'groupFieldId':_0x5a986a['id'],'titleFieldId':_0x2727b7,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x338e01,_0x5610c3),'cardLayout':_0x5610c3[_0x505618(0x474)]===_0x505618(0x2ad)?_0x505618(0x2ad):'normal','showFieldNames':_0x5610c3[_0x505618(0x21e)]!==!0x1,'visibleCardFieldIds':_0xa85ac7,'lanes':['',..._0x3eba0e['orderedRecordIds']]['flatMap'](_0x48cd81=>{const _0x1bc79d=_0x505618;let _0x505fcd=_0x57f096[_0x1bc79d(0x113)](_0x48cd81);return _0x505fcd!=null&&_0x505fcd[_0x1bc79d(0x230)][_0x1bc79d(0x4be)]?[_0x505fcd]:[];})};}return this['_getKanbanConfiguredLanes'](_0x5a986a,_0x5610c3)[_0x505618(0x248)](_0x4dd821=>_0x457ab8[_0x505618(0x404)](_0x4dd821[_0x505618(0x2c3)],{..._0x4dd821,'recordIds':[]})),_0x551c1a['forEach'](_0x2a4d77=>{const _0x242796=_0x505618;this['_kanbanGroupKeys'](_0x5a986a,_0x2a4d77[_0x242796(0x4ae)][_0x5a986a['id']])[_0x242796(0x248)](_0x5b027a=>{const _0x56f234=_0x242796;let _0x4833bc=_0x457ab8['get'](_0x5b027a)??{'key':_0x5b027a,'title':this[_0x56f234(0x305)](_0x5a986a,_0x5b027a,_0x5610c3),'color':this['_kanbanLaneColor'](_0x5a986a,_0x5b027a,_0x5610c3),'recordIds':[]};_0x4833bc[_0x56f234(0x230)][_0x56f234(0x34c)](_0x2a4d77[_0x56f234(0x170)]),_0x457ab8[_0x56f234(0x404)](_0x5b027a,_0x4833bc);});}),{'type':_0xc119d4['Kanban'],'fields':_0x387c37,'rows':_0x551c1a,'groups':this[_0x505618(0x145)](_0x338e01,_0x1c0d89,_0x551c1a),'groupFieldId':_0x5a986a['id'],'titleFieldId':_0x2727b7,'coverFieldId':this[_0x505618(0x1c2)](_0x338e01,_0x5610c3),'cardLayout':_0x5610c3[_0x505618(0x474)]===_0x505618(0x2ad)?_0x505618(0x2ad):_0x505618(0x3c7),'showFieldNames':_0x5610c3[_0x505618(0x21e)]!==!0x1,'visibleCardFieldIds':_0xa85ac7,'lanes':Array[_0x505618(0x2f6)](_0x457ab8[_0x505618(0x4ae)]())};}[_0x413924(0x141)](_0x2ed780,_0x5c6bdd){const _0x38d32a=_0x413924;var _0x8c7758;let _0x671b5=(_0x8c7758=_0x5c6bdd[_0x38d32a(0x406)])==null?void 0x0:_0x8c7758[_0x38d32a(0x22d)];return _0x671b5&&this[_0x38d32a(0x49e)](_0x2ed780,_0x671b5)?_0x671b5:this[_0x38d32a(0x392)](_0x2ed780,_0x110b1c=>this[_0x38d32a(0x1a8)](_0x110b1c));}['_findKanbanGroupField'](_0x568007,_0x3503aa){const _0x1c93a8=_0x413924;for(let _0x14fe6b of _0x568007[_0x1c93a8(0x3fc)]){let _0x2c15aa=_0x568007[_0x1c93a8(0x175)][_0x14fe6b];if(_0x2c15aa&&_0x3503aa(_0x2c15aa))return _0x2c15aa['id'];}return null;}[_0x413924(0x49e)](_0x4b98ee,_0x3bbad3){const _0x3c29a6=_0x413924;let _0x2c1340=_0x4b98ee[_0x3c29a6(0x175)][_0x3bbad3];return this[_0x3c29a6(0x1a8)](_0x2c1340)||F(_0x4b98ee,_0x3bbad3);}[_0x413924(0x1a8)](_0x3a36bd){const _0x366624=_0x413924;return!!_0x3a36bd&&(_0x3a36bd['type']===_0x39ba8f[_0x366624(0x183)]||_0x3a36bd[_0x366624(0x378)]===_0x39ba8f[_0x366624(0x40c)]||_0x3a36bd[_0x366624(0x378)]===_0x39ba8f[_0x366624(0x152)]||_0x3a36bd[_0x366624(0x378)]===_0x39ba8f[_0x366624(0x3e7)]||_0x3a36bd['type']===_0x39ba8f[_0x366624(0x14f)]||_0x3a36bd[_0x366624(0x378)]===_0x39ba8f[_0x366624(0x15d)]);}[_0x413924(0x342)](_0x53e3a7){const _0x213b65=_0x413924;return _0x53e3a7[_0x213b65(0x378)]===_0x39ba8f[_0x213b65(0x183)]||_0x53e3a7[_0x213b65(0x378)]===_0x39ba8f[_0x213b65(0x40c)];}[_0x413924(0x1c2)](_0xff5c64,_0x1bf11d){const _0x2bb88c=_0x413924;var _0xf863df;let _0x54b39a=_0x1bf11d[_0x2bb88c(0x112)]??((_0xf863df=_0x1bf11d[_0x2bb88c(0x2d9)])==null?void 0x0:_0xf863df[_0x2bb88c(0x112)])??null;if(!_0x54b39a)return null;let _0x1e093c=_0xff5c64[_0x2bb88c(0x175)][_0x54b39a];return _0x1e093c&&this[_0x2bb88c(0x1fc)](_0x1e093c)[_0x2bb88c(0x20d)]?_0x1e093c['id']:null;}[_0x413924(0x1d2)](_0x305aac,_0x2c0372,_0x18cdff,_0x469105=this[_0x413924(0x17b)](_0x305aac,((()=>{const _0xf8f7f5=_0x413924;var _0x543036;return(_0x543036=_0x2c0372[_0xf8f7f5(0x406)])==null||(_0x543036=_0x543036[_0xf8f7f5(0x2d9)])==null?void 0x0:_0x543036[_0xf8f7f5(0x162)];})()))){const _0x47cdfa=_0x413924;var _0x7622a8;let _0x3e15c3=_0x2c0372[_0x47cdfa(0x406)]??{},_0x44b3a3=(_0x7622a8=_0x3e15c3['card'])!=null&&(_0x7622a8=_0x7622a8['fieldIds'])!=null&&_0x7622a8[_0x47cdfa(0x4be)]?_0x3e15c3['card'][_0x47cdfa(0x481)]:Qr(_0x305aac,[_0x469105,_0x305aac[_0x47cdfa(0x426)],_0x18cdff]),_0x528bb0=_0x3e15c3['fieldSettings']??{};return _0x44b3a3['filter'](_0x2ea4cb=>{const _0x5b8604=_0x47cdfa;var _0xae6c72,_0x23aa67;let _0x4f57eb=_0x305aac[_0x5b8604(0x175)][_0x2ea4cb];return!(!_0x4f57eb||_0x4f57eb[_0x5b8604(0x22f)]===!0x0||_0x4f57eb['type']===_0x39ba8f[_0x5b8604(0x216)]||_0x4f57eb['id']===_0x18cdff||_0x4f57eb['id']===_0x469105||(_0xae6c72=_0x2c0372[_0x5b8604(0x468)])!=null&&(_0xae6c72=_0xae6c72[_0x2ea4cb])!=null&&_0xae6c72['hidden']||(_0x23aa67=_0x528bb0[_0x2ea4cb])!=null&&_0x23aa67['hidden']);})[_0x47cdfa(0x116)]((_0x428b3b,_0x25232a)=>{const _0x4e6fab=_0x47cdfa;var _0x54dc3d,_0x3502b1;return(((_0x54dc3d=_0x528bb0[_0x428b3b])==null?void 0x0:_0x54dc3d[_0x4e6fab(0x3d1)])??_0x44b3a3[_0x4e6fab(0x3ef)](_0x428b3b))-(((_0x3502b1=_0x528bb0[_0x25232a])==null?void 0x0:_0x3502b1[_0x4e6fab(0x3d1)])??_0x44b3a3[_0x4e6fab(0x3ef)](_0x25232a));});}[_0x413924(0x39d)](_0x1ac2b5,_0x381a67){const _0x367349=_0x413924;var _0x1197d3;let _0x1f5982=(Array[_0x367349(0x348)]((_0x1197d3=_0x1ac2b5[_0x367349(0x406)])==null?void 0x0:_0x1197d3['options'])?_0x1ac2b5[_0x367349(0x406)][_0x367349(0x1ed)]:[])[_0x367349(0x4ac)]((_0x2141f4,_0x487810)=>{const _0x44d344=_0x367349;if(_0x2141f4==null)return[];let _0x5bebd5=typeof _0x2141f4==_0x44d344(0x3f0)?{'id':_0x2141f4,'name':_0x2141f4,'color':void 0x0}:_0x2141f4,_0x432460=String(_0x5bebd5['id']??_0x5bebd5[_0x44d344(0x1f9)]??_0x44d344(0x465)+(_0x487810+0x1));return[{'key':_0x432460,'title':String(_0x5bebd5['name']??_0x5bebd5['id']??_0x432460),'color':this['_kanbanLaneColor'](_0x1ac2b5,_0x432460,_0x381a67)}];});return Object[_0x367349(0x391)](_0x381a67[_0x367349(0x119)]??{})['forEach'](([_0x316ff5,_0x7eac37])=>{const _0x3f51e0=_0x367349;_0x1f5982[_0x3f51e0(0x2e3)](_0x371f39=>_0x371f39['key']===_0x316ff5)||_0x1f5982['push']({'key':_0x316ff5,'title':this[_0x3f51e0(0x342)](_0x1ac2b5)?_0x7eac37[_0x3f51e0(0x314)]??this[_0x3f51e0(0x305)](_0x1ac2b5,_0x316ff5,_0x381a67):this[_0x3f51e0(0x305)](_0x1ac2b5,_0x316ff5,_0x381a67),'color':this[_0x3f51e0(0x2d4)](_0x1ac2b5,_0x316ff5,_0x381a67)});}),_0x1f5982;}[_0x413924(0x25e)](_0x21b909,_0x34ac01){const _0x249e6e=_0x413924;let _0x21c8ab=_0x5a4070=>{const _0x367f7c=_0x5866;var _0x2522f0;let _0x5d4e4d=_0x5a4070==null?'':String(_0x5a4070);return!_0x5d4e4d||!this[_0x367f7c(0x342)](_0x21b909)?_0x5d4e4d:((_0x2522f0=Li(_0x21b909,_0x5d4e4d))==null?void 0x0:_0x2522f0['id'])??_0x5d4e4d;};if(Array['isArray'](_0x34ac01)){let _0x398fb8=_0x34ac01[_0x249e6e(0x438)](_0x21c8ab)[_0x249e6e(0x457)](_0x20f545=>_0x20f545!=='');return _0x398fb8['length']?_0x398fb8:[''];}return[_0x21c8ab(_0x34ac01)];}[_0x413924(0x305)](_0x20de82,_0x3ef0c0,_0x20be64){const _0x69c4e9=_0x413924;if(!_0x3ef0c0)return _0x69c4e9(0x43b);let _0x59fa2b=Li(_0x20de82,_0x3ef0c0);return(_0x59fa2b==null?void 0x0:_0x59fa2b[_0x69c4e9(0x1f9)])??_0x3ef0c0;}['_kanbanLaneColor'](_0x37b949,_0x57a673,_0x50665f){const _0x107f1f=_0x413924;var _0x1d299d;if(this[_0x107f1f(0x342)](_0x37b949))return(_0x1d299d=Li(_0x37b949,_0x57a673))==null?void 0x0:_0x1d299d[_0x107f1f(0x388)];}['_buildCalendar'](_0x467336,_0x5297e1){const _0x379087=_0x413924;let _0x5b65a2=this[_0x379087(0x470)](_0x467336,_0x5297e1[_0x379087(0x406)]??{}),_0x1ce66e=_0x467336['fields'][_0x5b65a2['startDateFieldId']];if(!_0x1ce66e||_0x1ce66e[_0x379087(0x378)]!==_0x39ba8f['Date']||_0x1ce66e[_0x379087(0x19e)]===!0x0||_0x1ce66e[_0x379087(0x22f)]===!0x0||!this['_capabilities'](_0x1ce66e)[_0x379087(0x33f)])return{'type':_0x379087(0x3bb),'viewType':_0xc119d4[_0x379087(0x284)],'reason':_0x379087(0x2cc),'fieldId':_0x5b65a2[_0x379087(0x32a)]};let _0x256b8a=_0x5b65a2['endDateFieldId']?_0x467336[_0x379087(0x175)][_0x5b65a2[_0x379087(0x4a6)]]:void 0x0,_0x42ca7d=this[_0x379087(0x338)](_0x467336,_0x5297e1);return{'type':_0xc119d4[_0x379087(0x284)],'config':_0x5b65a2,'fields':this[_0x379087(0x3a9)](_0x467336,_0x5297e1),'rows':_0x42ca7d,'groups':this[_0x379087(0x145)](_0x467336,_0x5297e1,_0x42ca7d),'events':_0x42ca7d[_0x379087(0x4ac)](_0x5a210e=>{const _0x977eba=_0x379087;let _0x5f26cb=dn(_0x5a210e[_0x977eba(0x4ae)][_0x5b65a2[_0x977eba(0x32a)]]);if(!Number[_0x977eba(0x479)](_0x5f26cb))return[];let _0x4a3b7c=_0x5a210e[_0x977eba(0x4ae)][_0x5b65a2['startDateFieldId']],_0x33f11d=_0x5b65a2['endDateFieldId']==null?void 0x0:_0x5a210e[_0x977eba(0x4ae)][_0x5b65a2[_0x977eba(0x4a6)]],_0x151ee2=_0x5b65a2['endDateFieldId']==null?void 0x0:dn(_0x33f11d),_0x491564=Number['isFinite'](_0x151ee2)?_0x151ee2:void 0x0;return[{'recordId':_0x5a210e[_0x977eba(0x170)],'title':this[_0x977eba(0x2db)](_0x467336,_0x5a210e,_0x5b65a2[_0x977eba(0x162)]),'start':_0x5f26cb,'end':_0x491564,'color':this['_calendarEventColor'](_0x467336,_0x5a210e,_0x5b65a2),'startMs':_0x5f26cb,'endMs':_0x491564,'allDay':this['_isAllDayCalendarEvent'](_0x1ce66e,_0x256b8a,_0x4a3b7c,_0x33f11d),'fieldValues':_0x5a210e[_0x977eba(0x4ae)]}];})};}['_normalizeCalendarConfig'](_0x13fce1,_0x3d43f8){const _0x1005da=_0x413924;let _0x61d4b4=this['_resolveCalendarDateFieldId'](_0x13fce1,_0x3d43f8['startDateFieldId']),_0xd4e0fb=_0x3d43f8['endDateFieldId']&&this[_0x1005da(0x16d)](_0x13fce1,_0x3d43f8[_0x1005da(0x4a6)])?_0x3d43f8['endDateFieldId']:this[_0x1005da(0x2fc)](_0x13fce1,_0x61d4b4)??void 0x0,_0x25000f=_0x3d43f8[_0x1005da(0x162)]?_0x13fce1[_0x1005da(0x175)][_0x3d43f8['titleFieldId']]:void 0x0,_0x3bdb4b=_0x25000f&&_0x25000f[_0x1005da(0x22f)]!==!0x0&&_0x25000f[_0x1005da(0x378)]!==_0x39ba8f[_0x1005da(0x216)]?_0x3d43f8[_0x1005da(0x162)]:_0x13fce1[_0x1005da(0x426)],_0x528416=_0x3d43f8[_0x1005da(0x399)]==='day'||_0x3d43f8[_0x1005da(0x399)]===_0x1005da(0x206)?_0x3d43f8[_0x1005da(0x399)]:'month',_0x126b91=_0x3d43f8['timeslotSize']===_0x1005da(0x12e)||_0x3d43f8[_0x1005da(0x3b9)]===_0x1005da(0x227)?_0x3d43f8[_0x1005da(0x3b9)]:_0x1005da(0x3dd),_0x388447=typeof _0x3d43f8['timeZone']=='string'&&_0x3d43f8['timeZone'][_0x1005da(0x401)]()?_0x3d43f8[_0x1005da(0x2fe)]:'local',_0x5b6442=this[_0x1005da(0x49c)](_0x13fce1,_0x3d43f8);return{..._0x3d43f8,'startDateFieldId':_0x61d4b4,'endDateFieldId':_0xd4e0fb,'titleFieldId':_0x3bdb4b,'mode':_0x528416,'timeslotSize':_0x126b91,'timeZone':_0x388447,'displayColor':_0x5b6442,'fieldSettings':Object[_0x1005da(0x300)](Object[_0x1005da(0x391)](_0x3d43f8['fieldSettings']??{})[_0x1005da(0x457)](([_0x3a800f])=>{const _0x45764f=_0x1005da;let _0x217ef0=_0x13fce1[_0x45764f(0x175)][_0x3a800f];return!!(_0x217ef0&&_0x217ef0[_0x45764f(0x22f)]!==!0x0&&_0x217ef0[_0x45764f(0x378)]!==_0x39ba8f[_0x45764f(0x216)]);}))};}[_0x413924(0x492)](_0x3e3661,_0x4d0a5e){const _0x397da3=_0x413924;return _0x4d0a5e&&this[_0x397da3(0x16d)](_0x3e3661,_0x4d0a5e)?_0x4d0a5e:this[_0x397da3(0x2fc)](_0x3e3661)??_0x4d0a5e??'';}[_0x413924(0x2fc)](_0x52665f,_0x317eea){const _0x50a1f2=_0x413924;for(let _0x279100 of _0x52665f[_0x50a1f2(0x3fc)])if(_0x279100!==_0x317eea&&this[_0x50a1f2(0x16d)](_0x52665f,_0x279100))return _0x279100;return null;}[_0x413924(0x16d)](_0x2fa22c,_0x2f7988){const _0x2abf06=_0x413924;let _0x44a5a4=_0x2fa22c[_0x2abf06(0x175)][_0x2f7988];return!!_0x44a5a4&&_0x44a5a4[_0x2abf06(0x378)]===_0x39ba8f[_0x2abf06(0x2c9)]&&_0x44a5a4['readonly']!==!0x0&&_0x44a5a4[_0x2abf06(0x22f)]!==!0x0&&this[_0x2abf06(0x1fc)](_0x44a5a4)[_0x2abf06(0x33f)];}[_0x413924(0x49c)](_0x27bbb6,_0x3d588d){const _0x35990b=_0x413924;let _0x23db80=_0x3d588d[_0x35990b(0x1d8)];if((_0x23db80==null?void 0x0:_0x23db80['type'])===_0x35990b(0x191)){let _0x59fea8=_0x27bbb6[_0x35990b(0x175)][_0x23db80[_0x35990b(0x1c3)]];if(_0x59fea8&&_0x59fea8[_0x35990b(0x378)]===_0x39ba8f['SingleSelect'])return _0x23db80;}if((_0x23db80==null?void 0x0:_0x23db80[_0x35990b(0x378)])==='custom'&&typeof _0x23db80[_0x35990b(0x388)]==_0x35990b(0x3f0)&&_0x23db80[_0x35990b(0x388)][_0x35990b(0x401)]())return{'type':_0x35990b(0x4ba),'color':_0x23db80['color']};if(_0x3d588d[_0x35990b(0x231)]){let _0x3afe0b=_0x27bbb6[_0x35990b(0x175)][_0x3d588d[_0x35990b(0x231)]];if(_0x3afe0b&&_0x3afe0b[_0x35990b(0x378)]===_0x39ba8f[_0x35990b(0x183)])return{'type':_0x35990b(0x191),'fieldId':_0x3d588d[_0x35990b(0x231)]};}return{'type':_0x35990b(0x4ba),'color':_0x35990b(0x418)};}['_calendarEventColor'](_0x1837e2,_0x557f47,_0x427e15){const _0x3ead6a=_0x413924;let _0x52ad88=_0x427e15[_0x3ead6a(0x1d8)];if((_0x52ad88==null?void 0x0:_0x52ad88[_0x3ead6a(0x378)])===_0x3ead6a(0x191)){var _0x502fb5;let _0x5066df=_0x1837e2[_0x3ead6a(0x175)][_0x52ad88['fieldId']];if(!_0x5066df)return;let _0x32c8ce=_0x557f47[_0x3ead6a(0x4ae)][_0x52ad88[_0x3ead6a(0x1c3)]],_0x5300ee=Array['isArray'](_0x32c8ce)?_0x32c8ce[0x0]:_0x32c8ce;return _0x5300ee==null||(_0x502fb5=Li(_0x5066df,String(_0x5300ee)))==null?void 0x0:_0x502fb5[_0x3ead6a(0x388)];}if((_0x52ad88==null?void 0x0:_0x52ad88[_0x3ead6a(0x378)])===_0x3ead6a(0x4ba))return _0x52ad88[_0x3ead6a(0x388)];}[_0x413924(0x434)](_0x48bfac,_0x7362c6,_0x45d4c1,_0xc6e9c9){const _0x2bc700=_0x413924;var _0x266bb2,_0xd8ef64;let _0x34f705=((_0x266bb2=_0x48bfac[_0x2bc700(0x406)])==null?void 0x0:_0x266bb2[_0x2bc700(0x4cb)])===!0x0,_0x46f6d2=(_0x7362c6==null||(_0xd8ef64=_0x7362c6[_0x2bc700(0x406)])==null?void 0x0:_0xd8ef64[_0x2bc700(0x4cb)])===!0x0;return!_0x34f705&&!_0x46f6d2;}['_isAllDayGanttDateRange'](_0x41ea7c,_0x2e6674){const _0x3c6182=_0x413924;var _0x1e613c,_0x4547cf;let _0xff84ce=((_0x1e613c=_0x41ea7c['config'])==null?void 0x0:_0x1e613c[_0x3c6182(0x4cb)])===!0x0,_0x514bc2=((_0x4547cf=_0x2e6674[_0x3c6182(0x406)])==null?void 0x0:_0x4547cf[_0x3c6182(0x4cb)])===!0x0;return!_0xff84ce&&!_0x514bc2;}[_0x413924(0x1f3)](_0x23bc3e,_0x1d3375){const _0x40cb04=_0x413924;let _0x5ae204=this[_0x40cb04(0x4b7)](_0x23bc3e,_0x1d3375['config']),_0x2b5074=_0x23bc3e['fields'][_0x5ae204[_0x40cb04(0x32a)]];if(!_0x2b5074||_0x2b5074[_0x40cb04(0x378)]!==_0x39ba8f['Date']||_0x2b5074[_0x40cb04(0x19e)]===!0x0||_0x2b5074[_0x40cb04(0x22f)]===!0x0||!this[_0x40cb04(0x1fc)](_0x2b5074)[_0x40cb04(0x24c)])return{'type':_0x40cb04(0x3bb),'viewType':_0xc119d4[_0x40cb04(0x44c)],'reason':'invalidGanttStartField','fieldId':_0x5ae204[_0x40cb04(0x32a)]};let _0x1def0d=_0x23bc3e[_0x40cb04(0x175)][_0x5ae204[_0x40cb04(0x4a6)]];if(!_0x1def0d||_0x1def0d[_0x40cb04(0x378)]!==_0x39ba8f[_0x40cb04(0x2c9)]||_0x1def0d[_0x40cb04(0x19e)]===!0x0||_0x1def0d[_0x40cb04(0x22f)]===!0x0||!this[_0x40cb04(0x1fc)](_0x1def0d)[_0x40cb04(0x26b)])return{'type':_0x40cb04(0x3bb),'viewType':_0xc119d4['Gantt'],'reason':_0x40cb04(0x2e6),'fieldId':_0x5ae204[_0x40cb04(0x4a6)]};let _0x4d7b9a=this[_0x40cb04(0x25d)](_0x2b5074,_0x1def0d),_0x16923a=this['_projectRows'](_0x23bc3e,_0x1d3375),_0x1daa91=_0x16923a[_0x40cb04(0x4ac)](_0x3178d1=>{const _0x4d9b43=_0x40cb04;let _0x2bec0a=dn(_0x3178d1['values'][_0x5ae204[_0x4d9b43(0x32a)]]),_0x95cc68=dn(_0x3178d1[_0x4d9b43(0x4ae)][_0x5ae204['endDateFieldId']]);if(!Number['isFinite'](_0x2bec0a)||!Number[_0x4d9b43(0x479)](_0x95cc68))return[];let _0x2f25c0=Math[_0x4d9b43(0x256)](_0x2bec0a,_0x95cc68),_0x36806d=Math[_0x4d9b43(0x487)](_0x2bec0a,_0x95cc68),_0xbc631d=_0x5ae204[_0x4d9b43(0x372)]==null?void 0x0:Number(_0x3178d1[_0x4d9b43(0x4ae)][_0x5ae204[_0x4d9b43(0x372)]]);return[{'recordId':_0x3178d1[_0x4d9b43(0x170)],'title':this[_0x4d9b43(0x2db)](_0x23bc3e,_0x3178d1,_0x5ae204[_0x4d9b43(0x162)]),'start':_0x2f25c0,'end':_0x36806d,'color':this[_0x4d9b43(0x3d5)](_0x23bc3e,_0x3178d1,_0x5ae204),'progress':Number[_0x4d9b43(0x479)](_0xbc631d)?_0xbc631d:void 0x0,'workingDayCount':_0x5ae204[_0x4d9b43(0x255)]?Ti(_0x2f25c0,_0x36806d,_0x5ae204[_0x4d9b43(0x3db)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x3178d1[_0x4d9b43(0x4ae)][_0x5ae204[_0x4d9b43(0x217)]??''])}];}),_0x101bcc=_0x1daa91['length']?Z(Math[_0x40cb04(0x256)](..._0x1daa91[_0x40cb04(0x438)](_0x528824=>_0x528824[_0x40cb04(0x166)]))-0x5a*oi):Z(Date[_0x40cb04(0x24d)]()-0x5a*oi),_0x268ee7=_0x1daa91[_0x40cb04(0x4be)]?Z(Math['max'](..._0x1daa91['map'](_0x4b785a=>_0x4b785a[_0x40cb04(0x3c0)]))+0x5b*oi):Z(Date[_0x40cb04(0x24d)]()+0x5b*oi),_0x12dd1a=_i(_0x5ae204[_0x40cb04(0x4bf)],_0x101bcc,_0x268ee7,_0x5ae204['workingDaysOnly']?_0x5ae204['workingDays']:void 0x0);return{'type':_0xc119d4[_0x40cb04(0x44c)],'fields':this[_0x40cb04(0x3a9)](_0x23bc3e,{..._0x1d3375,'config':_0x5ae204}),'rows':_0x16923a,'groups':this[_0x40cb04(0x145)](_0x23bc3e,_0x1d3375,_0x16923a),'config':_0x5ae204,'dateRangeAllDay':_0x4d7b9a,'timeline':{'scale':_0x5ae204['scale'],'start':_0x101bcc,'end':_0x268ee7,'unitWidth':_0x12dd1a[_0x40cb04(0x2b1)],'majorHeaders':_0x12dd1a['majorHeaders'],'columns':_0x12dd1a[_0x40cb04(0x127)]},'bars':_0x1daa91};}[_0x413924(0x4b7)](_0x4abbb7,_0x577a84){const _0x1285b5=_0x413924;let _0x31a9c4=this[_0x1285b5(0x339)](_0x4abbb7,_0x577a84['startDateFieldId'],_0x1285b5(0x166)),_0xa4644b=this['_resolveGanttDateFieldId'](_0x4abbb7,_0x577a84[_0x1285b5(0x4a6)],'end')||_0x31a9c4,_0x3bfe3a=_0x577a84[_0x1285b5(0x162)]?_0x4abbb7[_0x1285b5(0x175)][_0x577a84['titleFieldId']]:void 0x0,_0x4bfa00=_0x3bfe3a&&_0x3bfe3a[_0x1285b5(0x22f)]!==!0x0&&_0x3bfe3a['type']!==_0x39ba8f[_0x1285b5(0x216)]?_0x577a84[_0x1285b5(0x162)]:_0x4abbb7['primaryFieldId'],_0xd468d6=_0x577a84[_0x1285b5(0x4bf)]==='week'||_0x577a84['scale']===_0x1285b5(0x240)||_0x577a84[_0x1285b5(0x4bf)]===_0x1285b5(0x34f)?_0x577a84[_0x1285b5(0x4bf)]:_0x1285b5(0x4d0),_0x70e355=gi(_0x577a84[_0x1285b5(0x3db)]);return{..._0x577a84,'startDateFieldId':_0x31a9c4,'endDateFieldId':_0xa4644b,'titleFieldId':_0x4bfa00,'scale':_0xd468d6,'leftPaneWidth':typeof _0x577a84['leftPaneWidth']==_0x1285b5(0x42c)?_0x577a84['leftPaneWidth']:void 0x0,'leftPaneCollapsed':_0x577a84[_0x1285b5(0x2bf)]===!0x0,'showTodayLine':_0x577a84[_0x1285b5(0x17f)]!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x4abbb7,_0x577a84),'fieldSettings':Object[_0x1285b5(0x300)](Object[_0x1285b5(0x391)](_0x577a84['fieldSettings']??{})[_0x1285b5(0x457)](([_0x3cb3b6])=>{const _0x2949ff=_0x1285b5;let _0x289d33=_0x4abbb7['fields'][_0x3cb3b6];return!!(_0x289d33&&_0x289d33[_0x2949ff(0x22f)]!==!0x0&&_0x289d33[_0x2949ff(0x378)]!==_0x39ba8f[_0x2949ff(0x216)]);})),'workingDaysOnly':_0x577a84['workingDaysOnly']===!0x0,'workingDays':_0x70e355};}[_0x413924(0x339)](_0x210b63,_0x5702eb,_0xd4a4cb){const _0x20e906=_0x413924;if(_0x5702eb&&this['_isGanttDateField'](_0x210b63,_0x5702eb,_0xd4a4cb)||_0x5702eb)return _0x5702eb;for(let _0xa3c42c of _0x210b63['fieldOrder'])if(this[_0x20e906(0x29f)](_0x210b63,_0xa3c42c,_0xd4a4cb))return _0xa3c42c;return _0x5702eb??'';}[_0x413924(0x29f)](_0x361a86,_0x7971b4,_0x17ca34){const _0xcde425=_0x413924;let _0x3f9f15=_0x361a86['fields'][_0x7971b4];if(!_0x3f9f15||_0x3f9f15[_0xcde425(0x378)]!==_0x39ba8f['Date']||_0x3f9f15[_0xcde425(0x19e)]===!0x0||_0x3f9f15[_0xcde425(0x22f)]===!0x0)return!0x1;let _0xa1b94a=this[_0xcde425(0x1fc)](_0x3f9f15);return _0x17ca34===_0xcde425(0x166)?_0xa1b94a['usableAsGanttStart']:_0xa1b94a[_0xcde425(0x26b)];}[_0x413924(0x143)](_0x189dbb,_0x29a8e0){const _0x347a46=_0x413924;let _0x9b2b5f=_0x29a8e0['displayColor'];if((_0x9b2b5f==null?void 0x0:_0x9b2b5f['type'])===_0x347a46(0x191)){let _0x2ce477=_0x189dbb[_0x347a46(0x175)][_0x9b2b5f['fieldId']];if(_0x2ce477&&_0x2ce477[_0x347a46(0x378)]===_0x39ba8f[_0x347a46(0x183)])return _0x9b2b5f;}return(_0x9b2b5f==null?void 0x0:_0x9b2b5f[_0x347a46(0x378)])===_0x347a46(0x118)&&Array[_0x347a46(0x348)](_0x9b2b5f['rules'])?{'type':'conditional','rules':_0x9b2b5f[_0x347a46(0x2d5)][_0x347a46(0x457)](_0x4eb0a5=>!!_0x189dbb[_0x347a46(0x175)][_0x4eb0a5[_0x347a46(0x1c3)]])}:(_0x9b2b5f==null?void 0x0:_0x9b2b5f[_0x347a46(0x378)])===_0x347a46(0x4ba)&&typeof _0x9b2b5f[_0x347a46(0x388)]==_0x347a46(0x3f0)&&_0x9b2b5f[_0x347a46(0x388)][_0x347a46(0x401)]()?{'type':_0x347a46(0x4ba),'color':_0x9b2b5f[_0x347a46(0x388)]}:{'type':'custom','color':'#14b8a6'};}[_0x413924(0x3d5)](_0x1e36ad,_0x4eeebc,_0x34599d){const _0x6a3c9e=_0x413924;let _0x7c6114=_0x34599d[_0x6a3c9e(0x1d8)];if((_0x7c6114==null?void 0x0:_0x7c6114[_0x6a3c9e(0x378)])===_0x6a3c9e(0x118)){let _0x499b56=_0x7c6114[_0x6a3c9e(0x2d5)][_0x6a3c9e(0x196)](_0x2b3d68=>this[_0x6a3c9e(0x222)](_0x1e36ad,_0x4eeebc,_0x2b3d68));if(_0x499b56)return _0x499b56[_0x6a3c9e(0x388)];}if((_0x7c6114==null?void 0x0:_0x7c6114[_0x6a3c9e(0x378)])===_0x6a3c9e(0x191)){let _0x3d8a85=_0x1e36ad[_0x6a3c9e(0x175)][_0x7c6114[_0x6a3c9e(0x1c3)]];if(_0x3d8a85){var _0x2d0201;let _0x35e0fe=_0x4eeebc[_0x6a3c9e(0x4ae)][_0x7c6114[_0x6a3c9e(0x1c3)]],_0x302e24=Array[_0x6a3c9e(0x348)](_0x35e0fe)?_0x35e0fe[0x0]:_0x35e0fe,_0x3e1620=_0x302e24==null||(_0x2d0201=Li(_0x3d8a85,String(_0x302e24)))==null?void 0x0:_0x2d0201[_0x6a3c9e(0x388)];if(_0x3e1620)return _0x3e1620;}}return(_0x7c6114==null?void 0x0:_0x7c6114['type'])==='custom'?_0x7c6114['color']:_0x6a3c9e(0x3b5);}[_0x413924(0x222)](_0x3327dc,_0x12682f,_0x47a372){const _0x4a3f0a=_0x413924;let _0x4d0560=_0x3327dc[_0x4a3f0a(0x175)][_0x47a372['fieldId']];return _0x4d0560?xn(_0x12682f['values'][_0x4d0560['id']],_0x47a372[_0x4a3f0a(0x129)],_0x47a372[_0x4a3f0a(0x2ac)],_0x4d0560,{'dateMode':_0x47a372[_0x4a3f0a(0x308)]}):!0x1;}[_0x413924(0x478)](_0x1b608e,_0xe4b002){const _0x365008=_0x413924;let _0x454440=this[_0x365008(0x338)](_0x1b608e,_0xe4b002),_0xf0326e=this[_0x365008(0x347)](_0x1b608e,_0xe4b002[_0x365008(0x406)]??{}),_0x29bcb9=this[_0x365008(0x3a9)](_0x1b608e,_0xe4b002);return{'type':_0xc119d4[_0x365008(0x2f7)],'fields':_0x29bcb9,'rows':_0x454440,'groups':this[_0x365008(0x145)](_0x1b608e,_0xe4b002,_0x454440),'titleFieldId':_0xf0326e[_0x365008(0x2d9)]['titleFieldId'],'coverFieldId':_0xf0326e['coverFieldId'],'cardLayout':_0xf0326e['cardLayout']??_0x365008(0x3c7),'showFieldNames':_0xf0326e['showFieldNames']!==!0x1,'visibleCardFieldIds':this['_resolveGalleryCardFieldIds'](_0x1b608e,_0xe4b002,_0xf0326e),'cardSize':_0xf0326e['cardSize']??'medium','cards':_0x454440[_0x365008(0x438)](_0x233e34=>({'recordId':_0x233e34[_0x365008(0x170)],'title':this['_title'](_0x1b608e,_0x233e34,_0xf0326e[_0x365008(0x2d9)][_0x365008(0x162)]),'values':_0x233e34[_0x365008(0x4ae)]}))};}['_normalizeGalleryConfig'](_0x33ee4b,_0x4703b3){const _0x13c814=_0x413924;let _0x595288=_0x4703b3['card']??{'fieldIds':[]},_0x170d00=this[_0x13c814(0x17b)](_0x33ee4b,_0x595288[_0x13c814(0x162)]),_0xe8eff8=this[_0x13c814(0x279)](_0x33ee4b,_0x4703b3),_0x2e698b=_0x4703b3[_0x13c814(0x3f2)]===_0x13c814(0x1e2)||_0x4703b3['cardSize']===_0x13c814(0x14b)?_0x4703b3[_0x13c814(0x3f2)]:'medium';return{..._0x4703b3,'coverFieldId':_0xe8eff8,'cardLayout':_0x4703b3[_0x13c814(0x474)]===_0x13c814(0x2ad)?_0x13c814(0x2ad):'normal','showFieldNames':_0x4703b3[_0x13c814(0x21e)]!==!0x1,'fieldSettings':Object[_0x13c814(0x300)](Object[_0x13c814(0x391)](_0x4703b3['fieldSettings']??{})[_0x13c814(0x457)](([_0xa3edf8])=>{const _0x59dc9f=_0x13c814;let _0x39476e=_0x33ee4b[_0x59dc9f(0x175)][_0xa3edf8];return!!(_0x39476e&&_0x39476e[_0x59dc9f(0x22f)]!==!0x0&&_0x39476e[_0x59dc9f(0x378)]!==_0x39ba8f[_0x59dc9f(0x216)]);})),'card':{..._0x595288,'titleFieldId':_0x170d00,'coverFieldId':_0xe8eff8,'fieldIds':Array[_0x13c814(0x348)](_0x595288[_0x13c814(0x481)])?_0x595288[_0x13c814(0x481)]:[]},'cardSize':_0x2e698b};}[_0x413924(0x17b)](_0x5a61b6,_0x363fe7){const _0x15b144=_0x413924;let _0xacc3b8=_0x363fe7?_0x5a61b6[_0x15b144(0x175)][_0x363fe7]:void 0x0;return _0xacc3b8&&_0xacc3b8['system']!==!0x0&&_0xacc3b8['type']!==_0x39ba8f['RecordId']?_0xacc3b8['id']:Zr(_0x5a61b6);}[_0x413924(0x279)](_0x3f56d7,_0x5d3971){const _0x207ca3=_0x413924;var _0x263836;let _0x10a7df=_0x5d3971[_0x207ca3(0x112)]??((_0x263836=_0x5d3971[_0x207ca3(0x2d9)])==null?void 0x0:_0x263836[_0x207ca3(0x112)])??null;if(!_0x10a7df)return null;let _0x34a860=_0x3f56d7[_0x207ca3(0x175)][_0x10a7df];return _0x34a860&&this[_0x207ca3(0x1fc)](_0x34a860)[_0x207ca3(0x20d)]?_0x34a860['id']:null;}['_resolveGalleryCardFieldIds'](_0x9fe023,_0x1d5d92,_0x4c3971){const _0xa1c6f9=_0x413924;var _0x4c9872,_0x3dfd0d,_0x29b953;let _0xb2ba9f=_0x4c3971[_0xa1c6f9(0x468)]??{},_0x1712ad=((_0x4c9872=_0x4c3971[_0xa1c6f9(0x2d9)])==null?void 0x0:_0x4c9872[_0xa1c6f9(0x162)])??Zr(_0x9fe023),_0x1f6528=_0x4c3971[_0xa1c6f9(0x112)]??((_0x3dfd0d=_0x4c3971[_0xa1c6f9(0x2d9)])==null?void 0x0:_0x3dfd0d[_0xa1c6f9(0x112)])??null,_0x4a3c03=(_0x29b953=_0x4c3971[_0xa1c6f9(0x2d9)])!=null&&(_0x29b953=_0x29b953[_0xa1c6f9(0x481)])!=null&&_0x29b953[_0xa1c6f9(0x4be)]?_0x4c3971[_0xa1c6f9(0x2d9)][_0xa1c6f9(0x481)]:Qr(_0x9fe023,[_0x1712ad,_0x1f6528,_0x9fe023[_0xa1c6f9(0x426)]]);return _0x4a3c03[_0xa1c6f9(0x457)](_0x47d7fe=>{const _0x1d7d38=_0xa1c6f9;var _0x2aaab1,_0x574d95;let _0x3e9811=_0x9fe023[_0x1d7d38(0x175)][_0x47d7fe];return!(!_0x3e9811||_0x3e9811[_0x1d7d38(0x22f)]===!0x0||_0x3e9811[_0x1d7d38(0x378)]===_0x39ba8f[_0x1d7d38(0x216)]||_0x3e9811['id']===_0x1712ad||_0x3e9811['id']===_0x1f6528||(_0x2aaab1=_0x1d5d92[_0x1d7d38(0x468)])!=null&&(_0x2aaab1=_0x2aaab1[_0x47d7fe])!=null&&_0x2aaab1[_0x1d7d38(0x287)]||(_0x574d95=_0xb2ba9f[_0x47d7fe])!=null&&_0x574d95[_0x1d7d38(0x287)]);})[_0xa1c6f9(0x116)]((_0x5c3e31,_0x4f447f)=>{const _0x27000e=_0xa1c6f9;var _0x11d58d,_0x88ab32;return(((_0x11d58d=_0xb2ba9f[_0x5c3e31])==null?void 0x0:_0x11d58d[_0x27000e(0x3d1)])??_0x4a3c03[_0x27000e(0x3ef)](_0x5c3e31))-(((_0x88ab32=_0xb2ba9f[_0x4f447f])==null?void 0x0:_0x88ab32[_0x27000e(0x3d1)])??_0x4a3c03[_0x27000e(0x3ef)](_0x4f447f));});}['_projectFields'](_0x20c2fe,_0x948912){const _0x140354=_0x413924;var _0xe7de1;return((_0xe7de1=_0x948912[_0x140354(0x3fc)])!=null&&_0xe7de1[_0x140354(0x4be)]?_0x948912[_0x140354(0x3fc)]:_0x20c2fe[_0x140354(0x3fc)])[_0x140354(0x4ac)](_0x2f9621=>{const _0xe3e9ef=_0x140354;var _0x2f3a48;let _0x30a928=_0x20c2fe[_0xe3e9ef(0x175)][_0x2f9621],_0x5e1795=((_0x2f3a48=_0x948912[_0xe3e9ef(0x468)])==null?void 0x0:_0x2f3a48[_0x2f9621])??{};return!_0x30a928||_0x30a928[_0xe3e9ef(0x22f)]===!0x0||_0x30a928[_0xe3e9ef(0x378)]===_0x39ba8f[_0xe3e9ef(0x216)]||_0x5e1795[_0xe3e9ef(0x287)]?[]:[{'id':_0x30a928['id'],'name':_0x30a928['name'],'description':_0x30a928[_0xe3e9ef(0x4d8)],'type':_0x30a928['type'],'config':_0x30a928[_0xe3e9ef(0x406)],'width':_0x5e1795[_0xe3e9ef(0x1d6)],'setting':_0x5e1795}];});}[_0x413924(0x338)](_0x4cc7ed,_0x49e4fe){const _0x1bc93e=_0x413924;var _0x3a94b2;return I(_0x1bc93e(0x370),()=>{const _0x33bffb=_0x1bc93e;var _0x36b8ef,_0x21a33b;let _0x989959=this[_0x33bffb(0x16b)](_0x4cc7ed),_0x2a7e63=this[_0x33bffb(0x477)](_0x4cc7ed['id'],_0x49e4fe),_0x22a4f1=this[_0x33bffb(0x445)](_0x4cc7ed['id']),_0x51882c=this[_0x33bffb(0x2aa)][_0x33bffb(0x113)](_0x2a7e63);if(_0x51882c&&_0x51882c[_0x33bffb(0x4dc)]===this[_0x33bffb(0x3a4)]&&_0x51882c[_0x33bffb(0x431)]===this[_0x33bffb(0x21a)](_0x4cc7ed['id'])){if(_0x51882c[_0x33bffb(0x3b0)]===_0x22a4f1&&_0x51882c['baseRows']===_0x989959)return _0x51882c[_0x33bffb(0x4c1)];if(_0x51882c[_0x33bffb(0x3b0)]!==_0x22a4f1&&!this[_0x33bffb(0x212)](_0x4cc7ed['id'],_0x51882c[_0x33bffb(0x3b0)],_0x22a4f1,this[_0x33bffb(0x3ad)](_0x49e4fe))){let _0x5844a2=_0x51882c['rows']===_0x51882c[_0x33bffb(0x3c6)]?_0x989959:this[_0x33bffb(0x315)](_0x51882c[_0x33bffb(0x4c1)],_0x989959);if(_0x5844a2)return this[_0x33bffb(0x2aa)]['set'](_0x2a7e63,{..._0x51882c,'rows':_0x5844a2,'baseRows':_0x989959,'cellRevision':_0x22a4f1}),_0x5844a2;}}let _0x185211=I(_0x33bffb(0x39f),()=>this[_0x33bffb(0x37c)](_0x4cc7ed,_0x49e4fe,this[_0x33bffb(0x3a1)](_0x4cc7ed,_0x49e4fe,_0x989959)),{'tableId':_0x4cc7ed['id'],'viewId':_0x49e4fe==null?void 0x0:_0x49e4fe['id'],'viewType':_0x49e4fe==null?void 0x0:_0x49e4fe[_0x33bffb(0x378)],'rows':_0x989959[_0x33bffb(0x4be)],'filters':(_0x49e4fe==null||(_0x36b8ef=_0x49e4fe[_0x33bffb(0x457)])==null?void 0x0:_0x36b8ef[_0x33bffb(0x31c)][_0x33bffb(0x4be)])??0x0,'sorts':(_0x49e4fe==null||(_0x21a33b=_0x49e4fe[_0x33bffb(0x116)])==null?void 0x0:_0x21a33b[_0x33bffb(0x4be)])??0x0});return this[_0x33bffb(0x2aa)][_0x33bffb(0x404)](_0x2a7e63,{'table':_0x4cc7ed,'rows':_0x185211,'baseRows':_0x989959,'globalRevision':this[_0x33bffb(0x3a4)],'tableRevision':this[_0x33bffb(0x21a)](_0x4cc7ed['id']),'cellRevision':_0x22a4f1}),_0x185211;},{'tableId':_0x4cc7ed['id'],'viewId':_0x49e4fe==null?void 0x0:_0x49e4fe['id'],'viewType':_0x49e4fe==null?void 0x0:_0x49e4fe['type'],'records':((_0x3a94b2=_0x4cc7ed['recordOrder'])==null?void 0x0:_0x3a94b2[_0x1bc93e(0x4be)])??Object['keys'](_0x4cc7ed[_0x1bc93e(0x3b4)]??{})[_0x1bc93e(0x4be)]});}[_0x413924(0x16b)](_0x3cf634){const _0x10f63b=_0x413924;var _0x2dca85;return I('BaseProjection.projectTableRows',()=>{const _0x582a16=_0x5866;var _0x1105d2;let _0x3001f0=this[_0x582a16(0x445)](_0x3cf634['id']),_0x35be91=this[_0x582a16(0x22a)]['get'](_0x3cf634['id']);if(_0x35be91&&_0x35be91[_0x582a16(0x4dc)]===this[_0x582a16(0x3a4)]&&_0x35be91[_0x582a16(0x431)]===this[_0x582a16(0x21a)](_0x3cf634['id'])){if(_0x35be91['cellRevision']===_0x3001f0&&fi(_0x35be91[_0x582a16(0x246)],_0x3cf634))return _0x35be91[_0x582a16(0x246)]=_0x3cf634,_0x35be91['rows'];let _0x513f54=this[_0x582a16(0x2f0)](_0x3cf634,_0x35be91,_0x3001f0);if(_0x513f54)return _0x513f54;}ui(_0x3cf634)||L(_0x3cf634);let _0x199dae=(_0x1105d2=_0x3cf634[_0x582a16(0x1c6)])!=null&&_0x1105d2[_0x582a16(0x4be)]?_0x3cf634['recordOrder']:hi(_0x3cf634[_0x582a16(0x3b4)]),_0xe9612e=I(_0x582a16(0x1fd),()=>{const _0x9788b2=_0x582a16;let _0x33f8cb=[];for(let _0x151161 of _0x199dae){let _0x5c9de7=_0x3cf634[_0x9788b2(0x3b4)][_0x151161];if(!_0x5c9de7)continue;let _0x2cbda8={};for(let _0x2a88b1 of _0x3cf634[_0x9788b2(0x3fc)])_0x2cbda8[_0x2a88b1]=yt(_0x3cf634,_0x5c9de7['id'],_0x2a88b1);_0x33f8cb[_0x9788b2(0x34c)]({'recordId':_0x5c9de7['id'],'values':_0x2cbda8});}return _0x33f8cb;},{'tableId':_0x3cf634['id'],'records':_0x199dae[_0x582a16(0x4be)],'fields':_0x3cf634['fieldOrder'][_0x582a16(0x4be)]});return this[_0x582a16(0x22a)]['set'](_0x3cf634['id'],{'table':_0x3cf634,'rows':_0xe9612e,'rowIndexById':li(_0xe9612e),'globalRevision':this[_0x582a16(0x3a4)],'tableRevision':this[_0x582a16(0x21a)](_0x3cf634['id']),'cellRevision':_0x3001f0}),_0xe9612e;},{'tableId':_0x3cf634['id'],'records':((_0x2dca85=_0x3cf634['recordOrder'])==null?void 0x0:_0x2dca85[_0x10f63b(0x4be)])??Object['keys'](_0x3cf634[_0x10f63b(0x3b4)]??{})['length'],'fields':_0x3cf634[_0x10f63b(0x3fc)][_0x10f63b(0x4be)]});}['_patchProjectedRowsForCellInvalidations'](_0xc45dee,_0x231ad8,_0x4e0680){const _0x30ecd0=_0x413924;let _0x1993f7=(this[_0x30ecd0(0x160)][_0x30ecd0(0x113)](_0xc45dee['id'])??[])['filter'](_0x1b614a=>_0x1b614a['revision']>_0x231ad8['cellRevision']&&_0x1b614a[_0x30ecd0(0x193)]<=_0x4e0680);if(!_0x1993f7[_0x30ecd0(0x4be)])return _0x231ad8['table']===_0xc45dee?_0x231ad8[_0x30ecd0(0x4c1)]:null;let _0x182602=_0x231ad8[_0x30ecd0(0x4c1)],_0x3befac=new Map();for(let _0x2dad93 of _0x1993f7){let _0xfdcadc=_0x3befac[_0x30ecd0(0x113)](_0x2dad93[_0x30ecd0(0x170)]);_0xfdcadc||(_0xfdcadc=new Set(),_0x3befac[_0x30ecd0(0x404)](_0x2dad93[_0x30ecd0(0x170)],_0xfdcadc)),_0xfdcadc[_0x30ecd0(0x4c2)](_0x2dad93['fieldId']);}for(let [_0x506c64,_0x12d330]of _0x3befac){if(!_0xc45dee[_0x30ecd0(0x3b4)][_0x506c64])return null;let _0x3f18f9=_0x231ad8[_0x30ecd0(0x1b4)][_0x30ecd0(0x113)](_0x506c64);if(_0x3f18f9==null)return null;_0x182602===_0x231ad8[_0x30ecd0(0x4c1)]&&(_0x182602=[..._0x231ad8[_0x30ecd0(0x4c1)]]);let _0x43efab=_0x182602[_0x3f18f9],_0x2718a2={..._0x43efab[_0x30ecd0(0x4ae)]};_0x12d330[_0x30ecd0(0x248)](_0x1a715a=>{_0x2718a2[_0x1a715a]=yt(_0xc45dee,_0x506c64,_0x1a715a);}),_0x182602[_0x3f18f9]={..._0x43efab,'values':_0x2718a2};}let _0x10c601={'table':_0xc45dee,'rows':_0x182602,'rowIndexById':_0x231ad8[_0x30ecd0(0x1b4)],'globalRevision':this[_0x30ecd0(0x3a4)],'tableRevision':this[_0x30ecd0(0x21a)](_0xc45dee['id']),'cellRevision':_0x4e0680};return this[_0x30ecd0(0x22a)][_0x30ecd0(0x404)](_0xc45dee['id'],_0x10c601),this[_0x30ecd0(0x160)][_0x30ecd0(0x404)](_0xc45dee['id'],(this[_0x30ecd0(0x160)][_0x30ecd0(0x113)](_0xc45dee['id'])??[])[_0x30ecd0(0x457)](_0x2afdd7=>_0x2afdd7[_0x30ecd0(0x193)]>Math['max'](0x0,_0x4e0680-0x100))),_0x182602;}['_patchCachedProjectedRows'](_0x1323a2,_0x26e6ad){const _0x25fb91=_0x413924;let _0x41901a=new Map(_0x26e6ad[_0x25fb91(0x438)](_0x4a968f=>[_0x4a968f[_0x25fb91(0x170)],_0x4a968f])),_0x2f015b=!0x1,_0x4bf43c=_0x1323a2[_0x25fb91(0x438)](_0x61b31d=>{const _0x4fe820=_0x25fb91;let _0x57daa2=_0x41901a[_0x4fe820(0x113)](_0x61b31d[_0x4fe820(0x170)]);return _0x57daa2?_0x57daa2===_0x61b31d?_0x61b31d:(_0x2f015b=!0x0,_0x57daa2):_0x61b31d;});return _0x2f015b?_0x4bf43c:_0x1323a2;}[_0x413924(0x212)](_0x34e5b1,_0x2258c3,_0x8f9462,_0x45b55a){const _0x3c1f76=_0x413924;return!_0x45b55a[_0x3c1f76(0x22e)]||_0x2258c3===_0x8f9462?!0x1:_0x8f9462-_0x2258c3>0x100||(this[_0x3c1f76(0x160)][_0x3c1f76(0x113)](_0x34e5b1)??[])['some'](_0x4cfd20=>_0x4cfd20['revision']>_0x2258c3&&_0x4cfd20['revision']<=_0x8f9462&&_0x45b55a['has'](_0x4cfd20[_0x3c1f76(0x1c3)]));}[_0x413924(0x3ad)](_0x56d99d){const _0x4eee08=_0x413924;var _0x1d0834,_0x59cfe9;let _0x42f2e8=new Set();return _0x56d99d==null||(_0x1d0834=_0x56d99d[_0x4eee08(0x457)])==null||_0x1d0834['conditions'][_0x4eee08(0x248)](_0x10a07a=>_0x42f2e8[_0x4eee08(0x4c2)](_0x10a07a[_0x4eee08(0x1c3)])),_0x56d99d==null||(_0x59cfe9=_0x56d99d[_0x4eee08(0x116)])==null||_0x59cfe9[_0x4eee08(0x248)](_0x491161=>_0x42f2e8[_0x4eee08(0x4c2)](_0x491161['fieldId'])),_0x42f2e8;}['_groupProjectionFieldIds'](_0x382c6e){const _0x400eaf=_0x413924;var _0x5f55b3;let _0x21df88=this[_0x400eaf(0x3ad)](_0x382c6e);return(_0x5f55b3=_0x382c6e['group'])==null||_0x5f55b3[_0x400eaf(0x248)](_0x3ecf9c=>_0x21df88['add'](_0x3ecf9c[_0x400eaf(0x1c3)])),_0x21df88;}[_0x413924(0x3a1)](_0x5e1c62,_0x134dc0,_0x47ebcb){const _0x3ba8e4=_0x413924;let _0x4c3c42=_0x134dc0==null?void 0x0:_0x134dc0[_0x3ba8e4(0x457)];if(!(_0x4c3c42!=null&&_0x4c3c42['conditions'][_0x3ba8e4(0x4be)]))return _0x47ebcb;let _0x4464d8=_0x4c3c42[_0x3ba8e4(0x31c)]['filter'](_0xb8cee6=>!Ii(_0xb8cee6));return _0x4464d8[_0x3ba8e4(0x4be)]?_0x47ebcb[_0x3ba8e4(0x457)](_0x391640=>{const _0x5d99a3=_0x3ba8e4;if(_0x4c3c42['conjunction']===_0x5c1116['OR']){for(let _0x3464c2 of _0x4464d8){let _0x180b42=_0x5e1c62[_0x5d99a3(0x175)][_0x3464c2[_0x5d99a3(0x1c3)]];if(!_0x180b42||this[_0x5d99a3(0x359)][_0x5d99a3(0x113)](_0x180b42[_0x5d99a3(0x378)])[_0x5d99a3(0x457)](_0x391640['values'][_0x180b42['id']],_0x3464c2[_0x5d99a3(0x129)],_0x3464c2[_0x5d99a3(0x2ac)],_0x180b42))return!0x0;}return!0x1;}for(let _0x448315 of _0x4464d8){let _0x204543=_0x5e1c62[_0x5d99a3(0x175)][_0x448315['fieldId']];if(_0x204543&&!this[_0x5d99a3(0x359)][_0x5d99a3(0x113)](_0x204543['type'])[_0x5d99a3(0x457)](_0x391640[_0x5d99a3(0x4ae)][_0x204543['id']],_0x448315[_0x5d99a3(0x129)],_0x448315[_0x5d99a3(0x2ac)],_0x204543))return!0x1;}return!0x0;}):_0x47ebcb;}[_0x413924(0x37c)](_0x3ad181,_0x4f94bd,_0x2a3e13){const _0x3b20ea=_0x413924;let _0x24a009=(_0x4f94bd==null?void 0x0:_0x4f94bd[_0x3b20ea(0x116)])??[];if(!_0x24a009[_0x3b20ea(0x4be)])return _0x2a3e13;let _0x99580e=_0x24a009[_0x3b20ea(0x4ac)](_0x2c66fa=>{const _0x47b63a=_0x3b20ea;let _0x78168c=_0x3ad181['fields'][_0x2c66fa[_0x47b63a(0x1c3)]];return _0x78168c?[{..._0x2c66fa,'field':_0x78168c}]:[];});return _0x99580e[_0x3b20ea(0x4be)]?this[_0x3b20ea(0x25a)](_0x99580e)?this[_0x3b20ea(0x267)](_0x99580e,_0x2a3e13):[..._0x2a3e13][_0x3b20ea(0x116)]((_0x3a0a5a,_0x187d10)=>{const _0x509cd4=_0x3b20ea;for(let _0x3c2517 of _0x99580e){let _0xf69004=_0x3c2517[_0x509cd4(0x2b7)],_0x497000=this[_0x509cd4(0x359)]['get'](_0xf69004['type'])[_0x509cd4(0x14e)](_0x3a0a5a[_0x509cd4(0x4ae)][_0xf69004['id']],_0x187d10[_0x509cd4(0x4ae)][_0xf69004['id']],_0xf69004);if(_0x497000!==0x0)return _0x3c2517[_0x509cd4(0x1ec)]===_0x3bb647['DESC']?-_0x497000:_0x497000;}return 0x0;}):_0x2a3e13;}['_canUseFastSort'](_0x25d50a){const _0x38ed90=_0x413924;return _0x25d50a[_0x38ed90(0x23d)](_0x13ad0c=>ai[_0x38ed90(0x3cf)](_0x13ad0c[_0x38ed90(0x2b7)][_0x38ed90(0x378)]));}[_0x413924(0x267)](_0x17bf1b,_0x4a8320){const _0x36741d=_0x413924;return _0x4a8320[_0x36741d(0x438)]((_0x48fa99,_0x1bf42d)=>({'row':_0x48fa99,'index':_0x1bf42d,'keys':_0x17bf1b[_0x36741d(0x438)](_0x569649=>_0x48fa99[_0x36741d(0x4ae)][_0x569649['fieldId']])}))[_0x36741d(0x116)]((_0x1ccd53,_0x2d3b82)=>{const _0x16808b=_0x36741d;for(let _0xa2ed19=0x0;_0xa2ed19<_0x17bf1b[_0x16808b(0x4be)];_0xa2ed19++){let _0x2e7e60=Fi(_0x1ccd53['keys'][_0xa2ed19],_0x2d3b82[_0x16808b(0x3a2)][_0xa2ed19]);if(_0x2e7e60!==0x0)return _0x17bf1b[_0xa2ed19][_0x16808b(0x1ec)]===_0x3bb647['DESC']?-_0x2e7e60:_0x2e7e60;}return _0x1ccd53[_0x16808b(0x319)]-_0x2d3b82[_0x16808b(0x319)];})[_0x36741d(0x438)](_0x961a49=>_0x961a49[_0x36741d(0x47c)]);}['_projectGroups'](_0x247d60,_0x12af6c,_0x3ca79b){const _0xacb98e=_0x413924;var _0x2b4d3d;return I('BaseProjection.projectGroups',()=>{const _0xda131=_0x5866;var _0x5ab0c5;if(!((_0x5ab0c5=_0x12af6c[_0xda131(0x151)])!=null&&_0x5ab0c5[_0xda131(0x4be)]))return[];let _0x2bd9d4=_0x12af6c[_0xda131(0x151)][_0xda131(0x457)](_0x286d3f=>_0x247d60['fields'][_0x286d3f[_0xda131(0x1c3)]]);if(!_0x2bd9d4[_0xda131(0x4be)])return[];let _0x3398fc=this[_0xda131(0x39e)](_0x247d60['id'],_0x12af6c,_0x2bd9d4),_0x129e66=this['_getCellRevision'](_0x247d60['id']),_0x3c4043=this[_0xda131(0x276)][_0xda131(0x113)](_0x3398fc);if(_0x3c4043&&_0x3c4043[_0xda131(0x4dc)]===this['_globalRevision']&&_0x3c4043[_0xda131(0x431)]===this[_0xda131(0x21a)](_0x247d60['id'])){if(_0x3c4043[_0xda131(0x3b0)]===_0x129e66&&_0x3c4043[_0xda131(0x4c1)]===_0x3ca79b)return _0x3c4043['groups'];if(_0x3c4043[_0xda131(0x3b0)]!==_0x129e66&&!this[_0xda131(0x212)](_0x247d60['id'],_0x3c4043[_0xda131(0x3b0)],_0x129e66,this[_0xda131(0x2eb)](_0x12af6c)))return this['_projectedGroupsCache']['set'](_0x3398fc,{..._0x3c4043,'rows':_0x3ca79b,'cellRevision':_0x129e66}),_0x3c4043[_0xda131(0x10c)];}let _0x40b093=new Map();for(let _0x217860 of _0x3ca79b){let _0x5b43c5=_0x40b093,_0x377061='';for(let _0x8d3c4f=0x0;_0x8d3c4f<_0x2bd9d4[_0xda131(0x4be)];_0x8d3c4f++){let _0x36a580=_0x2bd9d4[_0x8d3c4f],_0x39ef75=_0x217860[_0xda131(0x4ae)][_0x36a580['fieldId']],_0x1ab500=ci(_0x39ef75),_0x1a051d=_0x36a580[_0xda131(0x1c3)]+'\x00'+_0x1ab500,_0x94220b=_0x377061+'/'+_0x36a580[_0xda131(0x1c3)]+':'+_0x1ab500,_0x2bcfc0=_0x5b43c5[_0xda131(0x113)](_0x1a051d);_0x2bcfc0||(_0x2bcfc0={'key':_0x1ab500,'value':_0x39ef75,'path':_0x94220b,'label':_0x1ab500||_0xda131(0x40d),'fieldId':_0x36a580['fieldId'],'level':_0x8d3c4f,'recordIds':[],'children':new Map()},_0x5b43c5['set'](_0x1a051d,_0x2bcfc0)),_0x2bcfc0[_0xda131(0x230)][_0xda131(0x34c)](_0x217860[_0xda131(0x170)]),_0x5b43c5=_0x2bcfc0[_0xda131(0x296)],_0x377061=_0x94220b;}}let _0x4ea87e=this[_0xda131(0x400)](_0x2bd9d4,_0x40b093,0x0);return this[_0xda131(0x276)]['set'](_0x3398fc,{'table':_0x247d60,'rows':_0x3ca79b,'groups':_0x4ea87e,'globalRevision':this[_0xda131(0x3a4)],'tableRevision':this[_0xda131(0x21a)](_0x247d60['id']),'cellRevision':_0x129e66}),_0x4ea87e;},{'tableId':_0x247d60['id'],'viewId':_0x12af6c['id'],'viewType':_0x12af6c[_0xacb98e(0x378)],'rows':_0x3ca79b[_0xacb98e(0x4be)],'groupFields':((_0x2b4d3d=_0x12af6c[_0xacb98e(0x151)])==null?void 0x0:_0x2b4d3d[_0xacb98e(0x4be)])??0x0});}[_0x413924(0x400)](_0x207967,_0x27b655,_0x3e9ad3){const _0x413d38=_0x413924;var _0x54d2d5;let _0x245f58=Array[_0x413d38(0x2f6)](_0x27b655[_0x413d38(0x4ae)]()),_0x128e86=(_0x54d2d5=_0x207967[_0x3e9ad3])==null?void 0x0:_0x54d2d5['direction'];return _0x128e86&&_0x245f58[_0x413d38(0x116)]((_0x3b9f54,_0x3e033e)=>{const _0x14b769=_0x413d38;let _0x1150dd=_0x3b9f54[_0x14b769(0x2c3)]['localeCompare'](_0x3e033e[_0x14b769(0x2c3)]);return _0x128e86===_0x3bb647[_0x14b769(0x467)]?-_0x1150dd:_0x1150dd;}),_0x245f58[_0x413d38(0x438)](_0x5b09ae=>({'key':_0x5b09ae['key'],'value':_0x5b09ae['value'],'path':_0x5b09ae[_0x413d38(0x4c7)],'label':_0x5b09ae[_0x413d38(0x3e5)],'fieldId':_0x5b09ae[_0x413d38(0x1c3)],'level':_0x5b09ae[_0x413d38(0x488)],'recordIds':_0x5b09ae[_0x413d38(0x230)],'children':this[_0x413d38(0x400)](_0x207967,_0x5b09ae[_0x413d38(0x296)],_0x3e9ad3+0x1)}));}['_title'](_0x56d4ec,_0x1d95d3,_0x2f162a){const _0x265ebf=_0x413924;let _0x13e4d6=_0x2f162a??_0x56d4ec['primaryFieldId'],_0x373266=_0x1d95d3[_0x265ebf(0x4ae)][_0x13e4d6];return _0x373266==null?'':String(_0x373266);}[_0x413924(0x20b)](_0x346392){const _0x3e2320=_0x413924;if(Array['isArray'](_0x346392))return _0x346392[_0x3e2320(0x438)](String);if(typeof _0x346392==_0x3e2320(0x3f0)&&_0x346392)return[_0x346392];}[_0x413924(0x1fc)](_0x1b924b){const _0x2e5eb4=_0x413924;return this[_0x2e5eb4(0x359)][_0x2e5eb4(0x113)](_0x1b924b[_0x2e5eb4(0x378)])[_0x2e5eb4(0x3c3)](_0x1b924b);}};si=X([Y(0x0,_0x4ceb1c(mr))],si);function ci(_0x209c14){return _0x209c14==null?'':String(_0x209c14);}function li(_0x3bd286){const _0x43f9bc=_0x413924;return new Map(_0x3bd286[_0x43f9bc(0x438)]((_0x2213e9,_0x4a92f1)=>[_0x2213e9[_0x43f9bc(0x170)],_0x4a92f1]));}function ui(_0x47267c){const _0xf2239d=_0x413924;return!!(Array[_0xf2239d(0x348)](_0x47267c['recordOrder'])&&_0x47267c[_0xf2239d(0x12b)]&&_0x47267c[_0xf2239d(0x3ce)]&&_0x47267c[_0xf2239d(0x4a2)]&&_0x47267c['colId']&&_0x47267c[_0xf2239d(0x260)]);}function di(_0x1170ec){const _0x8c47cd=_0x413924;let _0x1c6093=(_0x1170ec==null?void 0x0:_0x1170ec[_0x8c47cd(0x31c)][_0x8c47cd(0x457)](_0x2598a2=>!Ii(_0x2598a2)))??[];return!_0x1170ec||!_0x1c6093['length']?null:{'conjunction':_0x1170ec[_0x8c47cd(0x45d)],'conditions':_0x1c6093[_0x8c47cd(0x438)](_0x10bd02=>({'fieldId':_0x10bd02[_0x8c47cd(0x1c3)],'operator':_0x10bd02['operator'],'operand':_0x10bd02[_0x8c47cd(0x2ac)]}))};}function fi(_0x4bcf58,_0x1b820d){const _0x57cc48=_0x413924;return _0x4bcf58[_0x57cc48(0x3b4)]===_0x1b820d[_0x57cc48(0x3b4)]&&_0x4bcf58[_0x57cc48(0x1c6)]===_0x1b820d[_0x57cc48(0x1c6)]&&_0x4bcf58[_0x57cc48(0x175)]===_0x1b820d[_0x57cc48(0x175)]&&_0x4bcf58[_0x57cc48(0x3fc)]===_0x1b820d[_0x57cc48(0x3fc)]&&_0x4bcf58[_0x57cc48(0x260)]===_0x1b820d[_0x57cc48(0x260)]&&_0x4bcf58[_0x57cc48(0x12b)]===_0x1b820d[_0x57cc48(0x12b)]&&_0x4bcf58[_0x57cc48(0x3ce)]===_0x1b820d[_0x57cc48(0x3ce)]&&_0x4bcf58['colIndex']===_0x1b820d['colIndex']&&_0x4bcf58[_0x57cc48(0x16c)]===_0x1b820d[_0x57cc48(0x16c)];}function pi(_0x12316c){const _0x1e3bc0=_0x413924;return _0x12316c!=null&&_0x12316c[_0x1e3bc0(0x4be)]?_0x12316c[_0x1e3bc0(0x438)](_0x423d26=>({'fieldId':_0x423d26['fieldId'],'direction':_0x423d26[_0x1e3bc0(0x1ec)]})):null;}function mi(_0x3f3e81){const _0x3c2007=_0x413924;if(typeof _0x3f3e81!=_0x3c2007(0x441)||!_0x3f3e81)return JSON['stringify'](_0x3f3e81)??_0x3c2007(0x30b);if(Array['isArray'](_0x3f3e81))return'['+_0x3f3e81[_0x3c2007(0x438)](mi)[_0x3c2007(0x4bd)](',')+']';let _0x18aeaf=_0x3f3e81;return'{'+Object[_0x3c2007(0x3a2)](_0x18aeaf)[_0x3c2007(0x116)]()['map'](_0x51f555=>JSON[_0x3c2007(0x3d0)](_0x51f555)+':'+mi(_0x18aeaf[_0x51f555]))[_0x3c2007(0x4bd)](',')+'}';}function hi(_0x4ac899){const _0x4ad964=_0x413924;let _0x1c7a51=Object[_0x4ad964(0x4ae)](_0x4ac899)[_0x4ad964(0x116)]((_0x31892d,_0x8cfb31)=>_0x31892d[_0x4ad964(0x124)][_0x4ad964(0x4ce)](_0x8cfb31[_0x4ad964(0x124)])),_0x1c279a=[];for(let _0x3f8c0d of _0x1c7a51)_0x1c279a[_0x4ad964(0x34c)](_0x3f8c0d['id']);return _0x1c279a;}function gi(_0x359b33){const _0x5e9e6d=_0x413924;return{'weekdays':Array[_0x5e9e6d(0x348)](_0x359b33==null?void 0x0:_0x359b33[_0x5e9e6d(0x3f3)])&&_0x359b33[_0x5e9e6d(0x3f3)][_0x5e9e6d(0x4be)]?[...new Set(_0x359b33[_0x5e9e6d(0x3f3)][_0x5e9e6d(0x457)](_0x29f807=>Number[_0x5e9e6d(0x32b)](_0x29f807)&&_0x29f807>=0x1&&_0x29f807<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array['isArray'](_0x359b33==null?void 0x0:_0x359b33[_0x5e9e6d(0x2d3)])?_0x359b33[_0x5e9e6d(0x2d3)][_0x5e9e6d(0x4ac)](_0x3b5af3=>!_0x3b5af3||!Number[_0x5e9e6d(0x479)](_0x3b5af3[_0x5e9e6d(0x3d9)])?[]:[{'id':String(_0x3b5af3['id']||_0x5e9e6d(0x382)+_0x3b5af3[_0x5e9e6d(0x3d9)]),'date':Z(Number(_0x3b5af3[_0x5e9e6d(0x3d9)])),'name':String(_0x3b5af3[_0x5e9e6d(0x1f9)]||_0x5e9e6d(0x259)),'type':_0x3b5af3[_0x5e9e6d(0x378)]==='working'?_0x5e9e6d(0x26a):'off'}]):[]};}function _i(_0x5c7514,_0x276c96,_0x5cbe16,_0x461a0a){let _0x329b43=xi(_0x5c7514,_0x276c96),_0x47c8e4=Si(_0x5c7514,_0x5cbe16),_0x26b5a2=vi(_0x5c7514,_0x329b43,_0x47c8e4,_0x461a0a);return{'scale':_0x5c7514,'start':_0x329b43,'end':_0x47c8e4,'unitWidth':bi(_0x5c7514),'majorHeaders':yi(_0x5c7514,_0x329b43,_0x47c8e4),'columns':_0x26b5a2};}function vi(_0x3ab345,_0x2d980d,_0xb04f04,_0x305f89){const _0x4398fd=_0x413924;let _0x371244=[],_0x58f5e0=_0x2d980d;for(;_0x58f5e0<_0xb04f04;){let _0x44dc22=_0x3ab345===_0x4398fd(0x240)?ji(_0x58f5e0,0x7):_0x3ab345===_0x4398fd(0x34f)?Mi(_0x58f5e0,0x1):ji(_0x58f5e0,0x1);_0x371244['push']({'id':_0x3ab345+'-'+_0x58f5e0,'label':Ci(_0x3ab345,_0x58f5e0,_0x44dc22),'majorLabel':wi(_0x3ab345,_0x58f5e0),'start':_0x58f5e0,'end':_0x44dc22,'nonWorking':Ei(_0x58f5e0,_0x44dc22,_0x305f89)}),_0x58f5e0=_0x44dc22;}return _0x371244;}function yi(_0x143c90,_0x3b02bb,_0x4c01f0){const _0x5cf726=_0x413924;let _0x406887=[],_0x5d190b=_0x143c90==='year'?Ai(_0x3b02bb):ki(_0x3b02bb);for(;_0x5d190b<_0x4c01f0;){let _0x509933=_0x143c90===_0x5cf726(0x34f)?Ni(_0x5d190b,0x1):Mi(_0x5d190b,0x1);_0x406887['push']({'id':'major-'+_0x5d190b,'label':_0x143c90===_0x5cf726(0x34f)?String(new Date(_0x5d190b)[_0x5cf726(0x30e)]()):Pi(_0x5d190b),'start':_0x5d190b,'end':_0x509933}),_0x5d190b=_0x509933;}return _0x406887;}function bi(_0x866417){const _0x3e8711=_0x413924;switch(_0x866417){case'week':return 0xac;case _0x3e8711(0x240):return 0xac;case _0x3e8711(0x34f):return 0x88;default:return 0x56;}}function xi(_0x2feb74,_0x35a090){const _0x247491=_0x413924;return _0x2feb74===_0x247491(0x34f)?Ai(_0x35a090):_0x2feb74===_0x247491(0x240)?Oi(_0x35a090):Z(_0x35a090);}function Si(_0x2cb2be,_0x49d347){const _0x27f2b7=_0x413924;return _0x2cb2be===_0x27f2b7(0x34f)?Ni(Ai(_0x49d347),0x1):_0x2cb2be===_0x27f2b7(0x240)?ji(Oi(_0x49d347),0x7):ji(Z(_0x49d347),0x1);}function Ci(_0x33bd07,_0x1d99e0,_0x5a1755){const _0x370964=_0x413924;let _0x5639ab=new Date(_0x1d99e0);return _0x33bd07===_0x370964(0x240)?_0x5639ab[_0x370964(0x395)]()+'-'+new Date(_0x5a1755-oi)['getUTCDate']():_0x33bd07==='year'?_0x5639ab[_0x370964(0x1bd)]('en-US',{'month':_0x370964(0x12e),'timeZone':_0x370964(0x1ee)}):String(_0x5639ab[_0x370964(0x395)]());}function wi(_0x490b6b,_0x2f6704){const _0x21ec82=_0x413924;return _0x490b6b===_0x21ec82(0x34f)?String(new Date(_0x2f6704)[_0x21ec82(0x30e)]()):Pi(_0x2f6704);}function Ti(_0x1c0c48,_0xddfe54,_0x2abd11){let _0x12488c=gi(_0x2abd11),_0x23d1bf=0x0;for(let _0xbc68ab=Z(_0x1c0c48);_0xbc68ab<=Z(_0xddfe54);_0xbc68ab=ji(_0xbc68ab,0x1))Di(_0xbc68ab,_0x12488c)||_0x23d1bf++;return _0x23d1bf;}function Ei(_0x31b098,_0x5318c0,_0x2e2e7e){if(!_0x2e2e7e)return!0x1;let _0x3ee1d4=gi(_0x2e2e7e);for(let _0x9af77f=Z(_0x31b098);_0x9af77f<_0x5318c0;_0x9af77f=ji(_0x9af77f,0x1))if(!Di(_0x9af77f,_0x3ee1d4))return!0x1;return!0x0;}function Di(_0x1649ae,_0x40882f){const _0x806eb5=_0x413924;let _0x15fe49=Z(_0x1649ae),_0x287a86=_0x40882f[_0x806eb5(0x2d3)]['find'](_0x2aad16=>Z(_0x2aad16['date'])===_0x15fe49);if(_0x287a86)return _0x287a86[_0x806eb5(0x378)]==='off';let _0x5d05eb=new Date(_0x15fe49)[_0x806eb5(0x30f)](),_0x8094b0=_0x5d05eb===0x0?0x7:_0x5d05eb;return!_0x40882f[_0x806eb5(0x3f3)][_0x806eb5(0x35f)](_0x8094b0);}function Z(_0x47c67e){const _0x6ad6e7=_0x413924;let _0x31c962=new Date(_0x47c67e);return Date[_0x6ad6e7(0x1ee)](_0x31c962['getUTCFullYear'](),_0x31c962[_0x6ad6e7(0x184)](),_0x31c962[_0x6ad6e7(0x395)]());}function Oi(_0x5a0f78){const _0x11016d=_0x413924;let _0x2ab2b0=Z(_0x5a0f78),_0x60144a=new Date(_0x2ab2b0)[_0x11016d(0x30f)]();return ji(_0x2ab2b0,-(_0x60144a===0x0?0x6:_0x60144a-0x1));}function ki(_0x42aea7){const _0x29df5d=_0x413924;let _0x50bfa5=new Date(_0x42aea7);return Date[_0x29df5d(0x1ee)](_0x50bfa5['getUTCFullYear'](),_0x50bfa5['getUTCMonth'](),0x1);}function Ai(_0x186291){const _0x30712b=_0x413924;let _0x3eed1b=new Date(_0x186291);return Date[_0x30712b(0x1ee)](_0x3eed1b[_0x30712b(0x30e)](),0x0,0x1);}function ji(_0x30e32c,_0x3d807e){return _0x30e32c+_0x3d807e*oi;}function Mi(_0x384850,_0x21a698){const _0x4f2fe6=_0x413924;let _0x426ed0=new Date(_0x384850);return Date[_0x4f2fe6(0x1ee)](_0x426ed0[_0x4f2fe6(0x30e)](),_0x426ed0['getUTCMonth']()+_0x21a698,0x1);}function Ni(_0x194b4e,_0x589bcf){const _0x27a0a8=_0x413924;let _0x172d1f=new Date(_0x194b4e);return Date[_0x27a0a8(0x1ee)](_0x172d1f[_0x27a0a8(0x30e)]()+_0x589bcf,0x0,0x1);}function Pi(_0x35baf8){const _0x34f714=_0x413924;let _0x1e318f=new Date(_0x35baf8);return _0x1e318f[_0x34f714(0x1bd)](_0x34f714(0x2c8),{'month':'short','timeZone':_0x34f714(0x1ee)})+'\x20'+_0x1e318f[_0x34f714(0x30e)]();}function Fi(_0x283b37,_0x2d555d){const _0x1ae4db=_0x413924;if(_0x283b37==null&&_0x2d555d==null)return 0x0;if(_0x283b37==null)return-0x1;if(_0x2d555d==null)return 0x1;if(typeof _0x283b37==_0x1ae4db(0x4d9)||typeof _0x2d555d=='boolean')return Number(_0x283b37===!0x0)-Number(_0x2d555d===!0x0);let _0x2958da=Number(_0x283b37),_0x4a4fab=Number(_0x2d555d),_0x35b430=Number[_0x1ae4db(0x479)](_0x2958da),_0x4e4a7a=Number[_0x1ae4db(0x479)](_0x4a4fab);return _0x35b430&&_0x4e4a7a?_0x2958da-_0x4a4fab:_0x35b430?0x1:_0x4e4a7a?-0x1:String(_0x283b37)[_0x1ae4db(0x4ce)](String(_0x2d555d));}function Ii(_0x172111){const _0x58a7ce=_0x413924;if(_0x172111[_0x58a7ce(0x129)]!=='is'&&_0x172111[_0x58a7ce(0x129)]!==_0x58a7ce(0x2bc))return!0x1;let _0x3ba03a=_0x172111[_0x58a7ce(0x2ac)];return _0x3ba03a==null?!0x0:typeof _0x3ba03a=='string'?_0x3ba03a[_0x58a7ce(0x401)]()==='':Array[_0x58a7ce(0x348)](_0x3ba03a)?_0x3ba03a[_0x58a7ce(0x4be)]===0x0:!0x1;}function Li(_0x15ae06,_0x30659a){const _0x22da73=_0x413924;var _0x4920cb;let _0x4ab988=Array[_0x22da73(0x348)]((_0x4920cb=_0x15ae06[_0x22da73(0x406)])==null?void 0x0:_0x4920cb['options'])?_0x15ae06[_0x22da73(0x406)][_0x22da73(0x1ed)]:[];for(let _0x4ec71a of _0x4ab988){if(_0x4ec71a==null)continue;if(typeof _0x4ec71a==_0x22da73(0x3f0)){if(_0x4ec71a===_0x30659a)return{'id':_0x4ec71a,'name':_0x4ec71a};continue;}let _0x303b95=_0x4ec71a,_0x3968b6=String(_0x303b95['id']??_0x303b95[_0x22da73(0x1f9)]??''),_0x28fef4=String(_0x303b95[_0x22da73(0x1f9)]??_0x303b95['id']??_0x3968b6);if(_0x3968b6===_0x30659a||_0x28fef4===_0x30659a)return{'id':_0x3968b6,'name':_0x28fef4,'color':_0x303b95['color']==null?void 0x0:String(_0x303b95[_0x22da73(0x388)])};}return null;}let Ri=function(_0x1294aa){const _0x56e79f=_0x413924;return _0x1294aa[_0x56e79f(0x210)]='create-view',_0x1294aa['DeleteView']='delete-view',_0x1294aa;}({});const Q={'id':_0x413924(0x15e),'type':_0x3abf95['MUTATION'],'handler'(_0x1c1c48,_0x4fb0d1){const _0x5e99e7=_0x413924;let {unitId:_0x19e004,op:_0x3972af}=_0x4fb0d1,_0x2c0546=_0x1c1c48[_0x5e99e7(0x113)](_0x4de172)[_0x5e99e7(0x365)](_0x19e004,_0x1a4689[_0x5e99e7(0x413)]);if(!_0x2c0546)return!0x1;let _0x24e823=_0x2c0546['getSnapshot'](),_0x8da916=new z(),_0x27201f=_0x8da916[_0x5e99e7(0x3a3)](_0x3972af),_0x2b8596=_0x8da916[_0x5e99e7(0x2f2)](_0x24e823,_0x3972af);return _0x2c0546[_0x5e99e7(0x11b)](_0x2b8596),zi(_0x2b8596,_0x27201f,_0x1c1c48['get'](ii)),!0x0;}};function zi(_0x201eb3,_0x2b9b98,_0xacb6be){const _0x460118=_0x413924;let _0x283977=new Set(),_0x18b2f5=new Set(),_0x4abbf0=new Set();for(let _0x4964be of _0x2b9b98){if(_0x4964be[_0x460118(0x24f)]===_0x460118(0x1e0)&&_0x4964be[_0x460118(0x2ca)]&&_0x4964be['viewId']){let _0x192c81=_0x4964be[_0x460118(0x2ca)]+'\x00'+_0x4964be['viewId'];_0x4abbf0[_0x460118(0x3cf)](_0x192c81)||(_0x4abbf0[_0x460118(0x4c2)](_0x192c81),_0xacb6be[_0x460118(0x31d)](_0x4964be['tableId'],_0x4964be[_0x460118(0x297)]));continue;}if(_0x4964be[_0x460118(0x24f)]==='field'&&_0x4964be[_0x460118(0x2ca)]&&_0x4964be[_0x460118(0x1c3)]){let _0x2f61f8=_0x4964be[_0x460118(0x2ca)]+'\x00'+_0x4964be[_0x460118(0x1c3)];_0x18b2f5[_0x460118(0x3cf)](_0x2f61f8)||(_0x18b2f5[_0x460118(0x4c2)](_0x2f61f8),_0xacb6be[_0x460118(0x369)](_0x4964be[_0x460118(0x2ca)],_0x4964be[_0x460118(0x1c3)]));continue;}if(_0x4964be['reason']!==_0x460118(0x3c4)){_0xacb6be[_0x460118(0x362)]();return;}let _0x47bf19=Bi(_0x201eb3,_0x4964be);if(!_0x47bf19){_0xacb6be[_0x460118(0x362)]();return;}let _0x1d85c4=_0x47bf19[_0x460118(0x2ca)]+'\x00'+_0x47bf19['recordId']+'\x00'+_0x47bf19['fieldId'];_0x283977[_0x460118(0x3cf)](_0x1d85c4)||(_0x283977[_0x460118(0x4c2)](_0x1d85c4),_0xacb6be['invalidateByCell'](_0x47bf19[_0x460118(0x2ca)],_0x47bf19[_0x460118(0x170)],_0x47bf19[_0x460118(0x1c3)]));}}function Bi(_0x34c660,_0x195e83){const _0x1ee8a=_0x413924;var _0x2aa53b,_0x115c12;if(!_0x195e83[_0x1ee8a(0x2ca)])return null;if(_0x195e83[_0x1ee8a(0x170)]&&_0x195e83[_0x1ee8a(0x1c3)])return{'tableId':_0x195e83[_0x1ee8a(0x2ca)],'recordId':_0x195e83[_0x1ee8a(0x170)],'fieldId':_0x195e83[_0x1ee8a(0x1c3)]};if(_0x195e83['row']==null||_0x195e83['column']==null)return null;let _0x10a199=_0x34c660['tables'][_0x195e83[_0x1ee8a(0x2ca)]],_0x454555=_0x10a199==null||(_0x2aa53b=_0x10a199['rowId'])==null?void 0x0:_0x2aa53b[_0x195e83[_0x1ee8a(0x47c)]],_0x253b0d=_0x10a199==null||(_0x115c12=_0x10a199[_0x1ee8a(0x16c)])==null?void 0x0:_0x115c12[_0x195e83['column']];return!_0x454555||!_0x253b0d?null:{'tableId':_0x195e83[_0x1ee8a(0x2ca)],'recordId':_0x454555,'fieldId':_0x253b0d};}const Vi=_0x5d97c4[_0x413924(0x1cb)](String[_0x413924(0x3fb)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x5d97c4[_0x413924(0x1cb)](String[_0x413924(0x3fb)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x5d97c4[_0x413924(0x1cb)](String['raw']`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x5d97c4[_0x413924(0x1cb)](String[_0x413924(0x3fb)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x5d97c4['createRegExpFromSafeFragment'](String[_0x413924(0x3fb)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x5d97c4['createRegExpFromSafeFragment'](String['raw']`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x5d97c4[_0x413924(0x1cb)](String[_0x413924(0x3fb)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x5d97c4[_0x413924(0x1cb)](String[_0x413924(0x3fb)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x413924(0x424)](_0x11d54d,_0x5a1574=_0x11d54d['id']){const _0x20f7b9=_0x413924;var _0x4f94ad;let _0x458db9=((_0x4f94ad=_0x11d54d['recordOrder'])==null?void 0x0:_0x4f94ad[_0x20f7b9(0x4be)])??Object[_0x20f7b9(0x4ae)](_0x11d54d[_0x20f7b9(0x3b4)])[_0x20f7b9(0x4be)];return{'sheetId':_0x5a1574,'titleMap':new Map(_0x11d54d[_0x20f7b9(0x3fc)][_0x20f7b9(0x438)]((_0x812aa0,_0x3cfc41)=>{var _0x3e007d;return[((_0x3e007d=_0x11d54d['fields'][_0x812aa0])==null?void 0x0:_0x3e007d['name'])??_0x812aa0,_0x3cfc41];})),'range':{'startRow':0x0,'endRow':Math[_0x20f7b9(0x487)](0x0,_0x458db9-0x1),'startColumn':0x0,'endColumn':Math[_0x20f7b9(0x487)](0x0,_0x11d54d[_0x20f7b9(0x3fc)][_0x20f7b9(0x4be)]-0x1)},'showHeader':!0x1};}[_0x413924(0x158)](_0x3b07ed,_0x275837){const _0x240f18=_0x413924;let _0x138d0f=[],_0x3f6b61=_0x275837?new Set(_0x275837):null,_0x32b00e=_0x429055(_0x3b07ed);return Object[_0x240f18(0x4ae)](_0x3b07ed['tables'])['filter'](_0x22ffa9=>!_0x3f6b61||_0x3f6b61[_0x240f18(0x3cf)](_0x22ffa9['id']))[_0x240f18(0x248)](_0x2e6997=>{const _0x1d6470=_0x240f18;let _0x7f960d=this[_0x1d6470(0x424)](_0x2e6997,_0x2e6997['id']);_0x138d0f[_0x1d6470(0x34c)]({'tableId':_0x2e6997['id'],'tableName':_0x32b00e['get'](_0x2e6997['id']),'reference':_0x7f960d});}),_0x138d0f;}['validateFormula'](_0x3710d7,_0x1601d1,_0x2b1f17={}){const _0x1a530c=_0x413924;let _0x141326=_0x3710d7[_0x1a530c(0x401)]();if(!_0x141326)return{'valid':!0x0};if(na(_0x141326))return{'valid':!0x1,'reason':_0x1a530c(0x490)};let _0x585b63=_0x2b1f17['snapshot']?_0x429055(_0x2b1f17[_0x1a530c(0x357)]):void 0x0;for(let _0x5a1276 of ta(_0x141326)){let _0x49f4f2=ua(_0x5a1276,_0x1601d1,_0x2b1f17['snapshot'],_0x585b63);if(!_0x49f4f2[_0x1a530c(0x246)])return{'valid':!0x1,'reason':_0x1a530c(0x163)+_0x5a1276[_0x1a530c(0x13e)]+_0x1a530c(0x1bf)};if(!_0x49f4f2['field'])return{'valid':!0x1,'reason':_0x1a530c(0x1c9)+_0x5a1276[_0x1a530c(0x292)]+_0x1a530c(0x2b2)};}return{'valid':!0x0};}[_0x413924(0x28f)](_0x4270db,_0x98a4fd,_0x276940={}){const _0x5f5c92=_0x413924;let _0x26fa96=new Set();for(let _0xb7a8a7 of this['getStructuredDependencies'](_0x4270db,_0x98a4fd,_0x276940))_0xb7a8a7[_0x5f5c92(0x2ca)]===_0x98a4fd['id']&&_0x26fa96[_0x5f5c92(0x4c2)](_0xb7a8a7[_0x5f5c92(0x1c3)]);return Array['from'](_0x26fa96);}['getStructuredDependencies'](_0x61aa8c,_0xc0c116,_0x408976={}){const _0xfa0e17=_0x413924;let _0x456fdd=new Map(),_0x4027c5=_0x408976[_0xfa0e17(0x357)]?_0x429055(_0x408976[_0xfa0e17(0x357)]):void 0x0;for(let _0x235e92 of ta(_0x61aa8c)){let _0x257114=ua(_0x235e92,_0xc0c116,_0x408976[_0xfa0e17(0x357)],_0x4027c5);if(!_0x257114[_0xfa0e17(0x246)]||!_0x257114[_0xfa0e17(0x2b7)])continue;let _0x569fab=_0x257114[_0xfa0e17(0x246)]['id']+'\x1f'+_0x257114[_0xfa0e17(0x2b7)]['id'];_0x456fdd[_0xfa0e17(0x404)](_0x569fab,{'tableId':_0x257114[_0xfa0e17(0x246)]['id'],'fieldId':_0x257114['field']['id']});}return Array[_0xfa0e17(0x2f6)](_0x456fdd[_0xfa0e17(0x4ae)]());}};function Zi(_0x5b7849,_0x2c5ba8){const _0x552e90=_0x413924;var _0xf5a4e7;let _0x4e7799=[],_0x17d9ae=(_0xf5a4e7=_0x2c5ba8[_0x552e90(0x1d4)])==null?void 0x0:_0xf5a4e7[_0x5b7849['id']];return _0x17d9ae&&Object[_0x552e90(0x391)](_0x17d9ae)[_0x552e90(0x248)](([_0x5e01e0,_0x543a1f])=>{const _0x570802=_0x552e90;let _0x5187d7=_0x5b7849['tables'][_0x5e01e0];if(!_0x5187d7||!_0x543a1f)return;let _0x507e55=L(_0x5187d7),_0xff1984=[];new _0x105ad6(_0x543a1f)[_0x570802(0x271)]((_0x3f9dbd,_0x5a71f8,_0x3a352c)=>{const _0x5c8b19=_0x570802;let _0x11904e=Qi(_0x507e55,_0x3f9dbd,_0x5a71f8,_0x3a352c);_0x11904e&&_0xff1984[_0x5c8b19(0x34c)](_0x11904e);}),_0xff1984['length']&&_0x4e7799[_0x570802(0x34c)]({'unitId':_0x5b7849['id'],'tableId':_0x5e01e0,'patches':_0xff1984});}),_0x4e7799;}function Qi(_0x50668d,_0x1238e5,_0x394176,_0x3e25ae){const _0x42fe62=_0x413924;var _0x36fc81,_0x2b064c,_0x215d8e;let _0x34b3e1=(_0x36fc81=_0x50668d[_0x42fe62(0x3ce)])==null?void 0x0:_0x36fc81[_0x1238e5],_0x1e2009=(_0x2b064c=_0x50668d[_0x42fe62(0x16c)])==null?void 0x0:_0x2b064c[_0x394176];if(!_0x34b3e1||!_0x50668d[_0x42fe62(0x3b4)][_0x34b3e1]||!_0x1e2009)return null;let _0x5a39c8=_0x50668d['fields'][_0x1e2009];if(!_0x5a39c8||_0x5a39c8[_0x42fe62(0x378)]!==_0x42fe62(0x49b))return null;let _0x4f5bc5=String(((_0x215d8e=_0x5a39c8[_0x42fe62(0x406)])==null?void 0x0:_0x215d8e[_0x42fe62(0x49b)])??'')[_0x42fe62(0x401)](),_0x439a6d=(_0x3e25ae==null?void 0x0:_0x3e25ae['v'])??null,_0x4460d4={'v':_0x439a6d,'t':ea(_0x439a6d),..._0x1238e5===0x0&&_0x4f5bc5?{'f':_0x4f5bc5}:{},'si':_0x5a39c8['id']};return $i(vt(_0x50668d,_0x34b3e1,_0x1e2009),_0x4460d4)?null:{'row':_0x1238e5,'col':_0x394176,'value':_0x4460d4};}function $i(_0x2ea044,_0x21a4fd){return _0x2ea044!=null&&Object['is'](_0x2ea044['v']??null,_0x21a4fd['v']??null)&&_0x2ea044['t']===_0x21a4fd['t']&&_0x2ea044['f']===_0x21a4fd['f']&&_0x2ea044['si']===_0x21a4fd['si'];}function ea(_0x15f3b0){const _0x6d2f3=_0x413924;return typeof _0x15f3b0==_0x6d2f3(0x42c)?_0x1b3c74[_0x6d2f3(0x377)]:typeof _0x15f3b0==_0x6d2f3(0x4d9)?_0x1b3c74[_0x6d2f3(0x4af)]:typeof _0x15f3b0==_0x6d2f3(0x3f0)?_0x1b3c74[_0x6d2f3(0x187)]:null;}function ta(_0x57a324){const _0x23109f=_0x413924;let _0x184211=ia(_0x57a324,()=>''),_0x1468b5=new Map(),_0x243c95=_0xf410=>{const _0x91279b=_0x5866;_0x1468b5['set']((_0xf410['tableName']??'')+'\x1f'+_0xf410[_0x91279b(0x292)],_0xf410);};for(let _0x4f20e9 of _0x184211[_0x23109f(0x13d)](Ui))_0x243c95({'fieldName':_0x4f20e9[0x1],'scope':_0x23109f(0x337)});_0x184211=_0x184211[_0x23109f(0x4c0)](Wi,(_0x4c6e4d,_0x3bcb7e,_0x41c791,_0x5e9832)=>(_0x243c95({'tableName':_0x3bcb7e,'fieldName':_0x5e9832,'scope':_0x41c791[_0x23109f(0x358)]()===_0x23109f(0x463)?_0x23109f(0x463):_0x23109f(0x337)}),'\x20')),_0x184211=_0x184211[_0x23109f(0x4c0)](Gi,(_0x4aeb18,_0x2f3f23,_0x155d02)=>(_0x243c95({'tableName':_0x2f3f23,'fieldName':_0x155d02,'scope':_0x23109f(0x337)}),'\x20')),_0x184211=_0x184211['replace'](qi,(_0x18a19e,_0x1d69ed,_0x1fc498,_0x2c9963)=>(_0x243c95({'fieldName':_0x2c9963,'scope':_0x1fc498[_0x23109f(0x358)]()===_0x23109f(0x463)?_0x23109f(0x463):_0x23109f(0x337)}),_0x1d69ed+'\x20')),_0x184211=_0x184211[_0x23109f(0x4c0)](Ji,(_0x140c0e,_0x4182b9,_0x168aa0)=>(_0x243c95({'fieldName':_0x168aa0,'scope':_0x23109f(0x337)}),_0x4182b9+'\x20'));for(let _0x6e4fa1 of _0x184211[_0x23109f(0x13d)](Ki))_0x243c95({'tableName':_0x6e4fa1[0x1],'fieldName':_0x6e4fa1[0x2]});for(let _0x21f8d0 of _0x184211[_0x23109f(0x13d)](Yi))_0x243c95({'fieldName':_0x21f8d0[0x2],'scope':_0x23109f(0x337)});return Array['from'](_0x1468b5[_0x23109f(0x4ae)]());}function na(_0xb42075){const _0x5c12e6=_0x413924;let _0x3b7f61=ia(_0xb42075,()=>'\x20')[_0x5c12e6(0x4c0)](Ui,'\x20')[_0x5c12e6(0x4c0)](Wi,'\x20')[_0x5c12e6(0x4c0)](Gi,'\x20')[_0x5c12e6(0x4c0)](qi,_0x5c12e6(0x3ea))[_0x5c12e6(0x4c0)](Ji,_0x5c12e6(0x3ea))[_0x5c12e6(0x4c0)](Ki,'\x20')[_0x5c12e6(0x4c0)](Yi,_0x5c12e6(0x3ea));return Vi['test'](_0x3b7f61);}function ra(_0x2674d4,_0x44ae58){return ca(oa(_0x2674d4,_0x44ae58),_0x44ae58);}function ia(_0x45ff37,_0x598f73){return aa(ra(_0x45ff37,_0x598f73),_0x598f73);}function aa(_0x3d0b55,_0x463078){const _0x13abd1=_0x413924;return _0x3d0b55[_0x13abd1(0x4c0)](/"(?:""|[^"])*"/g,_0x463078);}function oa(_0x3cf0c9,_0x3061a5){const _0x2f087c=_0x413924;return Hi[_0x2f087c(0x1ff)]=0x0,_0x3cf0c9[_0x2f087c(0x4c0)](Hi,(_0x238375,_0x145d5f)=>la(_0x3cf0c9,_0x145d5f)?_0x238375:_0x3061a5(_0x238375));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x2f1627,_0x26c466){const _0xe5fb8f=_0x413924;let _0x5604b2=[];for(sa[_0xe5fb8f(0x1ff)]=0x0;;){let _0x4977a8=sa['exec'](_0x2f1627);if(_0x4977a8==null)break;if(la(_0x2f1627,_0x4977a8[_0xe5fb8f(0x319)]))continue;let _0x46956d=sa[_0xe5fb8f(0x1ff)]-0x1,_0x148570=0x0;for(let _0x45da3c=_0x46956d;_0x45da3c<_0x2f1627['length'];_0x45da3c++)if(_0x2f1627[_0x45da3c]==='['&&_0x148570++,_0x2f1627[_0x45da3c]===']'&&(_0x148570--,_0x148570===0x0)){_0x5604b2[_0xe5fb8f(0x34c)]({'start':_0x4977a8[_0xe5fb8f(0x319)],'end':_0x45da3c+0x1}),sa[_0xe5fb8f(0x1ff)]=_0x45da3c+0x1;break;}}if(_0x5604b2[_0xe5fb8f(0x4be)]===0x0)return _0x2f1627;let _0xddbb3e='',_0x2fe608=0x0;for(let _0x1ec2d4 of _0x5604b2)_0xddbb3e+=_0x2f1627['slice'](_0x2fe608,_0x1ec2d4[_0xe5fb8f(0x166)]),_0xddbb3e+=_0x26c466(_0x2f1627[_0xe5fb8f(0x3a7)](_0x1ec2d4['start'],_0x1ec2d4[_0xe5fb8f(0x3c0)])),_0x2fe608=_0x1ec2d4[_0xe5fb8f(0x3c0)];return _0xddbb3e+_0x2f1627['slice'](_0x2fe608);}function la(_0xa5be85,_0x2f4c67){let _0x88c764=!0x1;for(let _0x193f1f=0x0;_0x193f1f<_0x2f4c67;_0x193f1f++)if(_0xa5be85[_0x193f1f]==='\x22'){if(_0x88c764&&_0xa5be85[_0x193f1f+0x1]==='\x22'){_0x193f1f++;continue;}_0x88c764=!_0x88c764;}return _0x88c764;}function ua(_0x5daf9b,_0x2148a6,_0x101c0d,_0x392e25){const _0x2265ac=_0x413924;let _0x3175cf=da(_0x5daf9b[_0x2265ac(0x13e)],_0x2148a6,_0x101c0d,_0x392e25);return{'table':_0x3175cf,'field':_0x3175cf?Object['values'](_0x3175cf[_0x2265ac(0x175)])[_0x2265ac(0x196)](_0x3d248d=>_0x3d248d[_0x2265ac(0x1f9)]===_0x5daf9b[_0x2265ac(0x292)]):void 0x0};}function da(_0x23d493,_0xd350be,_0x249ec5,_0x2e3967){const _0xd2ffa0=_0x413924;if(!_0x23d493)return _0xd350be;if(!_0x249ec5){var _0x29b2f9;let _0x533bfb=_0x23d493[_0xd2ffa0(0x358)]();return _0x533bfb===_0xd350be['id'][_0xd2ffa0(0x358)]()||_0x533bfb===_0xd350be[_0xd2ffa0(0x1f9)][_0xd2ffa0(0x358)]()||_0x533bfb===((_0x29b2f9=_0xd350be[_0xd2ffa0(0x150)])==null?void 0x0:_0x29b2f9[_0xd2ffa0(0x358)]())?_0xd350be:void 0x0;}let _0x7ea333=_0x23d493[_0xd2ffa0(0x358)](),_0x27e35c=_0x2e3967??_0x429055(_0x249ec5),_0x14ea3a=Object[_0xd2ffa0(0x4ae)](_0x249ec5[_0xd2ffa0(0x28d)])[_0xd2ffa0(0x457)](_0x4e6b9e=>{const _0x1617de=_0xd2ffa0;var _0x18e579;return _0x4e6b9e['id'][_0x1617de(0x358)]()===_0x7ea333||_0x4e6b9e['name'][_0x1617de(0x358)]()===_0x7ea333||((_0x18e579=_0x27e35c[_0x1617de(0x113)](_0x4e6b9e['id']))==null?void 0x0:_0x18e579[_0x1617de(0x358)]())===_0x7ea333||fa(_0x4e6b9e['id'])['toLowerCase']()===_0x7ea333;});return _0x14ea3a[_0xd2ffa0(0x4be)]===0x1?_0x14ea3a[0x0]:void 0x0;}function fa(_0x52ed3b){const _0x459cd4=_0x413924;return'_T_'+Array[_0x459cd4(0x2f6)](_0x52ed3b,_0x4cd1de=>{const _0x572097=_0x459cd4;var _0x41e22c;return/[A-Za-z0-9]/[_0x572097(0x114)](_0x4cd1de)?_0x4cd1de:'_x'+(((_0x41e22c=_0x4cd1de[_0x572097(0x12f)](0x0))==null?void 0x0:_0x41e22c[_0x572097(0x43f)](0x10))??'0')+'_';})['join']('');}const pa=new Xi();function ma(_0x48be92,_0x1d25f8,_0x5e50ec){const _0x4edb40=_0x413924;var _0x170129;if(_0x5e50ec[_0x4edb40(0x378)]!==_0x39ba8f[_0x4edb40(0x1fa)])return!0x0;let _0x5acdad=String(((_0x170129=_0x5e50ec[_0x4edb40(0x406)])==null?void 0x0:_0x170129[_0x4edb40(0x49b)])??''),_0x1125c0=_0x48be92[_0x4edb40(0x460)]();return pa[_0x4edb40(0x294)](_0x5acdad,_0x1125c0[_0x4edb40(0x28d)][_0x1d25f8],{'snapshot':_0x1125c0})[_0x4edb40(0x3e2)];}function $(_0x2430c2,_0x48d4f0,_0xc47adb){const _0x120c16=_0x413924;let _0x3655a2=_0x2430c2['getSnapshot']()[_0x120c16(0x28d)][_0x48d4f0];if(!_0x3655a2)return!0x1;let {viewIds:_0x5c5448,fieldIds:_0x29584e,recordIds:_0x45996a}=_0xc47adb||{};if(_0x5c5448){for(let _0x326db9 of _0x5c5448)if(!_0x3655a2['views'][_0x326db9])return!0x1;}if(_0x29584e){for(let _0x3f0eec of _0x29584e)if(!_0x3655a2[_0x120c16(0x175)][_0x3f0eec])return!0x1;}if(_0x45996a){for(let _0x8ae4f4 of _0x45996a)if(!_0x3655a2[_0x120c16(0x3b4)][_0x8ae4f4])return!0x1;}return!0x0;}function ha(_0x1f03a9,_0x1b025c,_0x35bed1){const _0x332ac4=_0x413924;if(_0x35bed1['id']===_0x3f46af||_0x35bed1[_0x332ac4(0x378)]===_0x39ba8f[_0x332ac4(0x216)]||_0x5c3099(_0x35bed1[_0x332ac4(0x1f9)])||!ma(_0x1f03a9,_0x1b025c,_0x35bed1))return!0x1;let _0x1c7210=_0x1f03a9[_0x332ac4(0x460)]();if(!Be(_0x1c7210,_0x35bed1)[_0x332ac4(0x3e2)])return!0x1;if(_0x35bed1[_0x332ac4(0x378)]!==_0x39ba8f[_0x332ac4(0x1e4)])return!0x0;let _0x2657b1=N(_0x35bed1);if(!_0x2657b1)return!0x1;if(_0x2657b1[_0x332ac4(0x455)]===void 0x0)return!0x0;if(_0x2657b1['relationRole']!==_0x169931[_0x332ac4(0x4d6)]||_0x2657b1[_0x332ac4(0x4a8)]!==_0x1b025c||_0x2657b1['multiple']!==!0x1)return!0x1;let _0xf6e499=_0x1c7210[_0x332ac4(0x28d)][_0x1b025c];return!Object[_0x332ac4(0x4ae)](_0xf6e499[_0x332ac4(0x175)])[_0x332ac4(0x2e3)](_0x49ba1b=>{const _0x4d3f99=_0x332ac4;var _0x243d71;return _0x49ba1b['id']!==_0x35bed1['id']&&_0x49ba1b[_0x4d3f99(0x378)]===_0x39ba8f['RecordLink']&&((_0x243d71=N(_0x49ba1b))==null?void 0x0:_0x243d71[_0x4d3f99(0x455)])===_0x169931['Parent'];});}function ga(_0x15f273,_0x369d5f,_0x21f870,_0x1d3cf1){const _0x44d2b0=_0x413924;var _0x477d5c;let _0x5ef28f=_0x15f273[_0x44d2b0(0x460)](),_0x559db6=(_0x477d5c=_0x5ef28f[_0x44d2b0(0x28d)][_0x369d5f])==null?void 0x0:_0x477d5c[_0x44d2b0(0x175)][_0x21f870];return!_0x559db6||_0x559db6['id']===_0x3f46af||_0x559db6['type']===_0x39ba8f[_0x44d2b0(0x216)]?!0x1:_0x559db6[_0x44d2b0(0x378)]!==_0x39ba8f[_0x44d2b0(0x1e4)]||Ve(_0x5ef28f,_0x559db6,ya(_0x1d3cf1))[_0x44d2b0(0x3e2)];}function _a(_0xbaeb01,_0x421fc9,_0x481782){const _0x4ba9ae=_0x413924;let _0x55fab8=_0xbaeb01[_0x4ba9ae(0x460)]()[_0x4ba9ae(0x28d)][_0x421fc9];return!_0x55fab8||!_0x3de20b(_0x481782['id'])||_0x55fab8[_0x4ba9ae(0x3b4)][_0x481782['id']]||Object[_0x4ba9ae(0x24b)]['hasOwnProperty'][_0x4ba9ae(0x157)](_0x481782[_0x4ba9ae(0x4ae)],_0x3f46af)&&_0x481782[_0x4ba9ae(0x4ae)][_0x3f46af]!==_0x481782['id']?!0x1:Object['entries'](_0x481782['values'])['every'](([_0x8ac32b,_0x4f84b5])=>_0x8ac32b===_0x3f46af||ga(_0xbaeb01,_0x421fc9,_0x8ac32b,_0x4f84b5));}function va(_0x172506){const _0x48f8d3=_0x413924;return{..._0x172506,'values':{..._0x172506[_0x48f8d3(0x4ae)],[_0x3f46af]:_0x172506['id']}};}function ya(_0xf4a77c){const _0x477da6=_0x413924;if(_0xf4a77c&&typeof _0xf4a77c==_0x477da6(0x441)&&!Array[_0x477da6(0x348)](_0xf4a77c)&&'v'in _0xf4a77c){let _0x28b272=_0xf4a77c['v'];return _0x28b272===void 0x0?null:_0x28b272;}return _0xf4a77c;}function ba(_0x5073b1,_0x3c2a58,_0x134aa1,_0x5e6a93){const _0x51c8d3=_0x413924;let _0x3da3ba=_0x5073b1[_0x51c8d3(0x460)]()[_0x51c8d3(0x28d)][_0x3c2a58];if(!_0x3da3ba)return null;let _0x2132e1=qe(_0x3da3ba),_0x33fcfb=_0x2132e1??Je(_0x3da3ba),_0x49dab7=_0x134aa1[_0x51c8d3(0x2e3)](_0x2c33d2=>Object[_0x51c8d3(0x24b)][_0x51c8d3(0x128)][_0x51c8d3(0x157)](_0x2c33d2['values'],_0x33fcfb)),_0x27e34e=_0x2132e1?_0x3da3ba[_0x51c8d3(0x175)][_0x2132e1]:_0x49dab7?Ye(_0x3da3ba,_0x33fcfb,_0x5e6a93):null,_0x3a64e8=[];for(let _0x5b9210 of _0x134aa1){let _0x5e39c8=_0x5b9210['values'][_0x33fcfb],_0x3ee8a3=_0x27e34e!==null&&Object[_0x51c8d3(0x24b)][_0x51c8d3(0x128)][_0x51c8d3(0x157)](_0x5b9210['values'],_0x33fcfb),_0x5d88ed=ya(_0x5e39c8),_0x41c38c=null;if(_0x3ee8a3){if(typeof _0x5d88ed!='string'||!ze(_0x5d88ed,!0x1)[_0x51c8d3(0x3e2)])return null;_0x41c38c=_0x5d88ed;}let _0x521c2a={};if(Object[_0x51c8d3(0x391)](_0x5b9210[_0x51c8d3(0x4ae)])[_0x51c8d3(0x248)](([_0x1e5e17,_0x479dfa])=>{(!_0x3ee8a3||_0x1e5e17!==_0x33fcfb)&&(_0x521c2a[_0x1e5e17]=_0x479dfa);}),!_a(_0x5073b1,_0x3c2a58,{..._0x5b9210,'values':_0x521c2a}))return null;let _0x2e2e70={..._0x5b9210[_0x51c8d3(0x4ae)]};_0x41c38c!==null&&(_0x2e2e70[_0x33fcfb]=_0x41c38c),_0x3a64e8[_0x51c8d3(0x34c)](va({..._0x5b9210,'values':_0x2e2e70}));}return{'records':_0x3a64e8,'hierarchyFieldToMaterialize':_0x2132e1?null:_0x27e34e,'hierarchyChanges':Qe(_0x3da3ba,_0x3a64e8)};}const xa={'id':_0x413924(0x306),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x44d5ab,_0x4e25b7){const _0x250210=_0x413924;if(!_0x4e25b7)return!0x1;let _0x434517=_0x44d5ab[_0x250210(0x113)](_0x4de172),{unitId:_0x2944c4,tableId:_0x3591cf,records:_0x42c16f}=_0x4e25b7,_0xb51599=_0x434517[_0x250210(0x365)](_0x2944c4,_0x1a4689['UNIVER_BASE']),_0x52afce=_0x42c16f[_0x250210(0x438)](_0x1134e0=>_0x1134e0['id']);if(!_0xb51599||!$(_0xb51599,_0x3591cf)||new Set(_0x52afce)[_0x250210(0x22e)]!==_0x52afce[_0x250210(0x4be)])return!0x1;let _0x5d1144=_0x44d5ab['get'](_0x4c2cb1),_0x2238a0=_0x44d5ab['get'](_0xb7e499),_0x9a21ef=_0x44d5ab[_0x250210(0x113)](Kr),_0x36410f=_0xb51599[_0x250210(0x460)](),_0x5552fa=ba(_0xb51599,_0x3591cf,_0x42c16f);if(!_0x5552fa)return!0x1;let {records:_0x183444,hierarchyChanges:_0x1fa52e,hierarchyFieldToMaterialize:_0x1aaac7}=_0x5552fa,_0x4a0ca5=_0x1aaac7?_0x9a21ef['createCreateFieldOp'](_0xb51599,_0x3591cf,_0x1aaac7,_0x36410f[_0x250210(0x28d)][_0x3591cf]['fieldOrder'][_0x250210(0x4be)]):null,_0x2514ee=_0x9a21ef[_0x250210(0x3c5)](_0xb51599,_0x3591cf,_0x183444),_0x3a1e8b=R([..._0x4a0ca5?[_0x4a0ca5]:[],_0x2514ee]),_0x1a86c3=new z()[_0x250210(0x447)](_0x36410f,_0x3a1e8b),_0x4f5d7d={'unitId':_0x2944c4,'op':_0x3a1e8b,'hierarchyChanges':_0x1fa52e[_0x250210(0x4be)]?_0x1fa52e:void 0x0,'source':_0x1fa52e[_0x250210(0x4be)]?_0x4e25b7[_0x250210(0x18f)]??'ui':void 0x0},_0x501816={..._0x4f5d7d,'source':_0x1fa52e[_0x250210(0x4be)]?_0x250210(0x229):void 0x0},_0x47fb67={'unitId':_0x2944c4,'op':_0x1a86c3,'hierarchyChanges':_0x1fa52e[_0x250210(0x4be)]?_0x1fa52e['map'](_0xc6cd52=>({..._0xc6cd52,'oldParentRecordId':_0xc6cd52[_0x250210(0x3e4)],'parentRecordId':null})):void 0x0,'source':_0x1fa52e[_0x250210(0x4be)]?_0x250210(0x36d):void 0x0};return _0x5d1144[_0x250210(0x328)](Q['id'],_0x4f5d7d)?(_0x434517[_0x250210(0x428)](_0x2944c4),_0x2238a0[_0x250210(0x23f)]({'unitID':_0x2944c4,'undoMutations':[{'id':Q['id'],'params':_0x47fb67}],'redoMutations':[{'id':Q['id'],'params':_0x501816}]}),!0x0):!0x1;}},Sa={'id':_0x413924(0x299),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x395088,_0x407387)=>{const _0x5ac9f3=_0x413924;if(!_0x407387)return!0x1;let _0x419533=_0x395088[_0x5ac9f3(0x113)](_0x4de172),{unitId:_0x4a8c93,tableId:_0x41ed7f,recordIds:_0x4f286a}=_0x407387,_0x493ce7=_0x419533[_0x5ac9f3(0x365)](_0x4a8c93,_0x1a4689[_0x5ac9f3(0x413)]);if(!_0x493ce7||!$(_0x493ce7,_0x41ed7f,{'recordIds':_0x4f286a}))return!0x1;let _0x14cec4=_0x395088[_0x5ac9f3(0x113)](_0x4c2cb1),_0x299404=_0x395088[_0x5ac9f3(0x113)](_0xb7e499),_0x205eda=_0x493ce7[_0x5ac9f3(0x460)](),_0x3a4709=et(_0x205eda[_0x5ac9f3(0x28d)][_0x41ed7f],_0x4f286a),_0x26d816=new W(),_0x1d27b9=new z(),_0x4748f6=_0x26d816[_0x5ac9f3(0x1a3)](_0x205eda,_0x41ed7f,_0x4f286a),_0x2af2eb=_0x1d27b9['applyOp'](_0x205eda,_0x4748f6),_0x152287=_0x26d816[_0x5ac9f3(0x241)](_0x205eda,_0x2af2eb,_0x41ed7f,_0x4f286a),_0x31031a={'unitId':_0x4a8c93,'op':_0x4748f6,'hierarchyChanges':_0x3a4709,'source':_0x407387['source']??'ui'},_0x36a063={..._0x31031a,'source':_0x5ac9f3(0x229)},_0x5eea36={'unitId':_0x4a8c93,'op':_0x152287,'hierarchyChanges':_0x3a4709['map'](_0x1c79ea=>({..._0x1c79ea,'oldParentRecordId':_0x1c79ea[_0x5ac9f3(0x3e4)],'parentRecordId':_0x1c79ea[_0x5ac9f3(0x4da)]})),'source':_0x5ac9f3(0x36d)};return _0x14cec4[_0x5ac9f3(0x328)](Q['id'],_0x31031a)?(_0x419533[_0x5ac9f3(0x428)](_0x4a8c93),_0x299404[_0x5ac9f3(0x23f)]({'unitID':_0x4a8c93,'undoMutations':[{'id':Q['id'],'params':_0x5eea36}],'redoMutations':[{'id':Q['id'],'params':_0x36a063}]}),!0x0):!0x1;}},Ca={'id':_0x413924(0x282),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x4d8155,_0x4f786b)=>{const _0x348781=_0x413924;if(!_0x4f786b)return!0x1;let _0x20d6c3=_0x4d8155[_0x348781(0x113)](_0x4de172),{unitId:_0x254ed8,tableId:_0xedd1ae,fieldId:_0x869d9c,input:_0x1bd74a}=_0x4f786b,_0x58acda=_0x20d6c3['getUnit'](_0x254ed8,_0x1a4689[_0x348781(0x413)]);if(!_0x58acda||_0x869d9c===_0x3f46af||!$(_0x58acda,_0xedd1ae,{'fieldIds':[_0x869d9c]}))return!0x1;let _0x4a2cc1=_0x4d8155[_0x348781(0x113)](_0x4c2cb1),_0x788887=_0x4d8155['get'](_0xb7e499),_0x1f938f=_0x58acda[_0x348781(0x460)]();if(!ha(_0x58acda,_0xedd1ae,{..._0x1f938f[_0x348781(0x28d)][_0xedd1ae][_0x348781(0x175)][_0x869d9c],..._0x1bd74a}))return!0x1;let _0x58c422=new W()[_0x348781(0x15c)](_0x1f938f,_0xedd1ae,_0x869d9c,_0x1bd74a),_0xd14c27=new z()[_0x348781(0x447)](_0x1f938f,_0x58c422),_0x27faef={'unitId':_0x254ed8,'op':_0x58c422},_0x5aa1ab={'unitId':_0x254ed8,'op':_0xd14c27};return _0x4a2cc1[_0x348781(0x328)](Q['id'],_0x27faef)?(_0x20d6c3[_0x348781(0x428)](_0x254ed8),_0x788887[_0x348781(0x23f)]({'unitID':_0x254ed8,'undoMutations':[{'id':Q['id'],'params':_0x5aa1ab}],'redoMutations':[{'id':Q['id'],'params':_0x27faef}]}),!0x0):!0x1;}},wa={'id':_0x413924(0x380),'type':_0x3abf95['COMMAND'],'handler'(_0x5be5a2,_0x194c44){const _0x2ecc6e=_0x413924;var _0x268408;if(!_0x194c44)return!0x1;let {unitId:_0x5cc50f,tableId:_0x4768fd,parentRecordId:_0x3ce601}=_0x194c44,_0x59e484=_0x5be5a2[_0x2ecc6e(0x113)](_0x4de172),_0x40eef7=_0x59e484['getUnit'](_0x5cc50f,_0x1a4689['UNIVER_BASE']);if(!_0x40eef7||!$(_0x40eef7,_0x4768fd,{'recordIds':[_0x3ce601]}))throw new P(_0x2ecc6e(0x3ca));let _0x354137=_0x40eef7[_0x2ecc6e(0x460)](),_0x52d4bc=_0x354137[_0x2ecc6e(0x28d)][_0x4768fd],_0x249bb5=qe(_0x52d4bc),_0x3c62e9=_0x249bb5??_0x194c44[_0x2ecc6e(0x1c3)]??Je(_0x52d4bc);if(_0x249bb5&&_0x194c44[_0x2ecc6e(0x1c3)]&&_0x194c44['fieldId']!==_0x249bb5||_0x52d4bc[_0x2ecc6e(0x175)][_0x3c62e9]&&!F(_0x52d4bc,_0x3c62e9))throw new P(_0x2ecc6e(0x442));if((tt(_0x52d4bc,_0x3c62e9)[_0x2ecc6e(0x1e8)]['get'](_0x3ce601)??0x0)+0x1>=0x5)throw new P(_0x2ecc6e(0x261));if(!_a(_0x40eef7,_0x4768fd,_0x194c44[_0x2ecc6e(0x1cf)]))return!0x1;let _0x46fe83=va({..._0x194c44[_0x2ecc6e(0x1cf)],'values':{..._0x194c44[_0x2ecc6e(0x1cf)][_0x2ecc6e(0x4ae)],[_0x3c62e9]:Re([_0x3ce601])}}),_0x2ac050=_0x5be5a2[_0x2ecc6e(0x113)](Kr),_0x59d288=new W(),_0x2555d1=_0x52d4bc['fields'][_0x3c62e9],_0x51e63d=_0x2555d1?((_0x268408=N(_0x2555d1))==null?void 0x0:_0x268408['relationRole'])===_0x169931['Parent']?null:_0x59d288[_0x2ecc6e(0x29c)](_0x354137,_0x4768fd,_0x3c62e9,{'config':{..._0x2555d1[_0x2ecc6e(0x406)],'relationRole':_0x169931[_0x2ecc6e(0x4d6)]}}):_0x2ac050['createCreateFieldOp'](_0x40eef7,_0x4768fd,Ye(_0x52d4bc,_0x3c62e9,_0x194c44['parentFieldName']),_0x52d4bc[_0x2ecc6e(0x3fc)][_0x2ecc6e(0x4be)]),_0x143238=_0x2ac050['createCreateRecordOp'](_0x40eef7,_0x4768fd,_0x46fe83),_0x12cfd7=R([..._0x51e63d?[_0x51e63d]:[],_0x143238]),_0x7d1e63=new z()[_0x2ecc6e(0x447)](_0x354137,_0x12cfd7),_0x6d27b1={'tableId':_0x4768fd,'fieldId':_0x3c62e9,'recordId':_0x46fe83['id'],'oldParentRecordId':null,'parentRecordId':_0x3ce601},_0x2b0d95={'unitId':_0x5cc50f,'op':_0x12cfd7,'trigger':wa['id'],'hierarchyChanges':[_0x6d27b1],'source':_0x194c44['source']??'ui'},_0x30f7fb={..._0x2b0d95,'source':'redo'},_0x360d0c={'unitId':_0x5cc50f,'op':_0x7d1e63,'trigger':wa['id'],'hierarchyChanges':[{..._0x6d27b1,'oldParentRecordId':_0x3ce601,'parentRecordId':null}],'source':_0x2ecc6e(0x36d)};return _0x5be5a2[_0x2ecc6e(0x113)](_0x4c2cb1)['syncExecuteCommand'](Q['id'],_0x2b0d95)?(_0x59e484['focusUnit'](_0x5cc50f),_0x5be5a2[_0x2ecc6e(0x113)](_0xb7e499)[_0x2ecc6e(0x23f)]({'unitID':_0x5cc50f,'undoMutations':[{'id':Q['id'],'params':_0x360d0c}],'redoMutations':[{'id':Q['id'],'params':_0x30f7fb}]}),!0x0):!0x1;}},Ta={'id':_0x413924(0x48e),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x21c8e2,_0x17107d){const _0x1bbf05=_0x413924;if(!_0x17107d)return!0x1;let _0x169afa=_0x21c8e2[_0x1bbf05(0x113)](_0x4de172),{unitId:_0x3924ab,tableId:_0x592d0d,field:_0x39a591,index:_0x48353a,viewIndexes:_0x95b64d}=_0x17107d,_0x405901=_0x169afa[_0x1bbf05(0x365)](_0x3924ab,_0x1a4689[_0x1bbf05(0x413)]);if(!_0x405901||!$(_0x405901,_0x592d0d)||_0x405901[_0x1bbf05(0x460)]()[_0x1bbf05(0x28d)][_0x592d0d][_0x1bbf05(0x175)][_0x39a591['id']]||_0x48353a===0x0||!ha(_0x405901,_0x592d0d,_0x39a591))return!0x1;let _0x17d257=_0x21c8e2['get'](_0x4c2cb1),_0x576684=_0x21c8e2[_0x1bbf05(0x113)](_0xb7e499),_0x4f6f40=_0x21c8e2[_0x1bbf05(0x113)](Kr)[_0x1bbf05(0x1f6)](_0x405901,_0x592d0d,_0x39a591,_0x48353a,_0x95b64d),_0xc33a78=new z()[_0x1bbf05(0x447)](_0x405901['getSnapshot'](),_0x4f6f40),_0x46ca4b={'unitId':_0x3924ab,'op':_0x4f6f40},_0x1e6c33={'unitId':_0x3924ab,'op':_0xc33a78};return _0x17d257[_0x1bbf05(0x328)](Q['id'],_0x46ca4b)?(_0x169afa['focusUnit'](_0x3924ab),_0x576684[_0x1bbf05(0x23f)]({'unitID':_0x3924ab,'undoMutations':[{'id':Q['id'],'params':_0x1e6c33}],'redoMutations':[{'id':Q['id'],'params':_0x46ca4b}]}),!0x0):!0x1;}},Ea={'id':_0x413924(0x131),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x55c4cb,_0x17e577){const _0x1518ea=_0x413924;if(!_0x17e577)return!0x1;let _0x20912a=_0x55c4cb[_0x1518ea(0x113)](_0x4de172),{unitId:_0x3ed18c,tableId:_0x1949bb,record:_0x3850ae}=_0x17e577,_0xeece3c=_0x20912a['getUnit'](_0x3ed18c,_0x1a4689[_0x1518ea(0x413)]);if(!_0xeece3c||!$(_0xeece3c,_0x1949bb))return!0x1;let _0x5ed2e4=_0x55c4cb[_0x1518ea(0x113)](_0x4c2cb1),_0x4fd72c=_0x55c4cb[_0x1518ea(0x113)](_0xb7e499),_0x7a4c97=_0x55c4cb['get'](Kr),_0x386dd9=_0xeece3c['getSnapshot'](),_0x10cafa=ba(_0xeece3c,_0x1949bb,[_0x3850ae]);if(!_0x10cafa)return!0x1;let [_0x29a3b0]=_0x10cafa[_0x1518ea(0x3b4)],{hierarchyChanges:_0x339e91,hierarchyFieldToMaterialize:_0x29e14f}=_0x10cafa,_0x3fe584=_0x29e14f?_0x7a4c97[_0x1518ea(0x1f6)](_0xeece3c,_0x1949bb,_0x29e14f,_0x386dd9[_0x1518ea(0x28d)][_0x1949bb][_0x1518ea(0x3fc)][_0x1518ea(0x4be)]):null,_0x3a8641=_0x7a4c97[_0x1518ea(0x466)](_0xeece3c,_0x1949bb,_0x29a3b0),_0x356e19=R([..._0x3fe584?[_0x3fe584]:[],_0x3a8641]),_0x263019=new z()[_0x1518ea(0x447)](_0x386dd9,_0x356e19),_0x415629={'unitId':_0x3ed18c,'op':_0x356e19,'hierarchyChanges':_0x339e91['length']?_0x339e91:void 0x0,'source':_0x339e91[_0x1518ea(0x4be)]?_0x17e577[_0x1518ea(0x18f)]??'ui':void 0x0},_0x369a35={..._0x415629,'source':_0x339e91[_0x1518ea(0x4be)]?_0x1518ea(0x229):void 0x0},_0x592668={'unitId':_0x3ed18c,'op':_0x263019,'hierarchyChanges':_0x339e91[_0x1518ea(0x4be)]?_0x339e91['map'](_0x19edf0=>({..._0x19edf0,'oldParentRecordId':_0x19edf0[_0x1518ea(0x3e4)],'parentRecordId':null})):void 0x0,'source':_0x339e91[_0x1518ea(0x4be)]?'undo':void 0x0};return _0x5ed2e4[_0x1518ea(0x328)](Q['id'],_0x415629)?(_0x20912a[_0x1518ea(0x428)](_0x3ed18c),_0x4fd72c[_0x1518ea(0x23f)]({'unitID':_0x3ed18c,'undoMutations':[{'id':Q['id'],'params':_0x592668}],'redoMutations':[{'id':Q['id'],'params':_0x369a35}]}),!0x0):!0x1;}},Da=_0x413924(0x321);function Oa(_0x2049d8,_0x412a12,_0x27a9e0){const _0x2d12dd=_0x413924;if(!_0x412a12['trim']())return{'valid':!0x1,'reason':_0x2d12dd(0x31e),'error':'required'};if(_0x412a12[_0x2d12dd(0x4be)]>0x1f)return{'valid':!0x1,'reason':_0x2d12dd(0x247),'error':_0x2d12dd(0x498)};if(_0x412a12[_0x2d12dd(0x36e)]('\x27')||_0x412a12['endsWith']('\x27'))return{'valid':!0x1,'reason':_0x2d12dd(0x24e),'error':_0x2d12dd(0x3c8)};if(/[:\\/?*\[\]]/[_0x2d12dd(0x114)](_0x412a12))return{'valid':!0x1,'reason':_0x2d12dd(0x291),'error':'invalid-characters'};if(!_0x3ba1d0(_0x412a12))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':'invalid'};let _0x5b6a24=_0x412a12[_0x2d12dd(0x358)]();return Object[_0x2d12dd(0x4ae)](_0x2049d8[_0x2d12dd(0x28d)])[_0x2d12dd(0x2e3)](_0x945fbf=>_0x945fbf['id']!==_0x27a9e0&&_0x945fbf[_0x2d12dd(0x1f9)][_0x2d12dd(0x358)]()===_0x5b6a24)?{'valid':!0x1,'reason':_0x2d12dd(0x45a),'error':'duplicate'}:{'valid':!0x0};}function ka(_0x3d25df,_0x57cc8a){const _0x2958f2=_0x413924;let _0xfdfc38=_0x57cc8a['replace'](/[:\\/?*\[\]]/g,'\x20')[_0x2958f2(0x4c0)](/^'+|'+$/g,'')[_0x2958f2(0x401)]()||_0x2958f2(0x3f1),_0x300bab=0x1;for(;;){let _0x305a39=_0x300bab===0x1?'':'\x20'+_0x300bab,_0x253205=''+_0xfdfc38[_0x2958f2(0x3a7)](0x0,0x1f-_0x305a39[_0x2958f2(0x4be)])+_0x305a39;if(Oa(_0x3d25df,_0x253205)[_0x2958f2(0x3e2)])return _0x253205;_0x300bab++;}}const Aa={'id':_0x413924(0x2e7),'type':_0x3abf95['COMMAND'],'handler':(_0x21f2dd,_0x18a071)=>{const _0x39a02a=_0x413924;if(!_0x18a071)return!0x1;let _0x395366=_0x21f2dd[_0x39a02a(0x113)](_0x4de172),{unitId:_0x24282a,table:_0x494ce9,index:_0x5a17c5}=_0x18a071,_0x2bd9c6=_0x395366[_0x39a02a(0x365)](_0x24282a,_0x1a4689[_0x39a02a(0x413)]);if(!_0x2bd9c6||_0x2bd9c6[_0x39a02a(0x460)]()['tables'][_0x494ce9['id']]||!Oa(_0x2bd9c6[_0x39a02a(0x460)](),_0x494ce9[_0x39a02a(0x1f9)])['valid'])return!0x1;try{_0x5f22f6(_0x494ce9);}catch{return!0x1;}let _0x405f71=_0x21f2dd[_0x39a02a(0x113)](_0x4c2cb1),_0x2b8d84=_0x21f2dd[_0x39a02a(0x113)](_0xb7e499),_0x9787f3=_0x2bd9c6[_0x39a02a(0x460)](),_0x4dd1ce=new W()[_0x39a02a(0x1a4)](_0x9787f3,_0x494ce9,_0x5a17c5),_0x41b99e=new z()[_0x39a02a(0x447)](_0x9787f3,_0x4dd1ce),_0x29b650={'unitId':_0x24282a,'op':_0x4dd1ce},_0x43f9b9={'unitId':_0x24282a,'op':_0x41b99e};return _0x405f71['syncExecuteCommand'](Q['id'],_0x29b650)?(_0x395366['focusUnit'](_0x24282a),_0x2b8d84[_0x39a02a(0x23f)]({'unitID':_0x24282a,'undoMutations':[{'id':Q['id'],'params':_0x43f9b9}],'redoMutations':[{'id':Q['id'],'params':_0x29b650}]}),!0x0):!0x1;}};function ja(_0x4d83bc,_0xfa75b,_0x5db724=[]){const _0x10e9f8=_0x413924;let _0x1128cc=new Set([...Object[_0x10e9f8(0x4ae)](_0x4d83bc[_0x10e9f8(0x175)])[_0x10e9f8(0x457)](_0x9b7f25=>_0x9b7f25)[_0x10e9f8(0x438)](_0x313702=>_0x313702[_0x10e9f8(0x1f9)]),..._0x5db724[_0x10e9f8(0x438)](_0x55a567=>_0x55a567[_0x10e9f8(0x1f9)])]);if(!_0x1128cc[_0x10e9f8(0x3cf)](_0xfa75b))return _0xfa75b;let _0x17ebfc=0x2;for(;_0x1128cc[_0x10e9f8(0x3cf)](_0xfa75b+'\x20'+_0x17ebfc);)_0x17ebfc++;return _0xfa75b+'\x20'+_0x17ebfc;}function Ma(_0xf93260,_0x3203ed){const _0x172253=_0x413924;if(!_0xf93260||!_0x3203ed['length'])return;let _0x511ac5=[..._0xf93260];return _0x3203ed[_0x172253(0x248)](_0x1f6fb8=>{const _0x381494=_0x172253;_0x511ac5[_0x381494(0x35f)](_0x1f6fb8)||_0x511ac5[_0x381494(0x34c)](_0x1f6fb8);}),_0x511ac5;}const Na={'options':[{'id':'todo','name':_0x413924(0x19c),'color':_0x413924(0x3af)},{'id':_0x413924(0x3ed),'name':'Doing','color':_0x413924(0x244)},{'id':_0x413924(0x1b8),'name':_0x413924(0x2ae),'color':'#BBF7D0'}]},Pa={'locale':_0x413924(0x2c8),'pattern':'yyyy/mm/dd','includeTime':!0x1,'hourCycle':_0x413924(0x37b),'defaultMode':'none'};function Fa(_0x17cc29,_0x4d74fb,_0xf3406e,_0x1098cc){const _0x417a8f=_0x413924;var _0x2d372f;let _0x39c457=new W(),_0x160f74=_0x17cc29[_0x417a8f(0x28d)][_0x4d74fb],_0x322307=_0x160f74?{..._0xf3406e,'fieldOrder':[_0x3f46af,...(_0xf3406e[_0x417a8f(0x3fc)]??_0x160f74[_0x417a8f(0x3fc)])[_0x417a8f(0x457)](_0x1bd5e0=>_0x1bd5e0!==_0x3f46af)],'fieldSettings':{..._0xf3406e['fieldSettings'],[_0x3f46af]:{...(_0x2d372f=_0xf3406e['fieldSettings'])==null?void 0x0:_0x2d372f[_0x3f46af],'hidden':!0x0}}}:_0xf3406e;if(_0x160f74&&_0x322307[_0x417a8f(0x378)]==='kanban'){let _0x1ff56a=La(_0x160f74,_0x322307),_0xb8765f=_0x1ff56a[_0x417a8f(0x11e)]?{..._0x322307,'config':_0x1ff56a['config'],'fieldOrder':_0x1ff56a['fieldOrder']??_0x322307['fieldOrder']}:_0x322307;return R([..._0x1ff56a[_0x417a8f(0x175)][_0x417a8f(0x438)](_0x526cca=>_0x39c457[_0x417a8f(0x4d5)](_0x17cc29,_0x4d74fb,{'field':_0x526cca})),_0x39c457[_0x417a8f(0x2ff)](_0x17cc29,_0x4d74fb,_0xb8765f,_0x1098cc)]);}if(!_0x160f74||_0x322307[_0x417a8f(0x378)]!==_0x417a8f(0x4a0)&&_0x322307[_0x417a8f(0x378)]!==_0x417a8f(0x2d6))return _0x39c457[_0x417a8f(0x2ff)](_0x17cc29,_0x4d74fb,_0x322307,_0x1098cc);let _0x1d2fdc=Ia(_0x160f74,_0x322307),_0x5cebb8=_0x1d2fdc[_0x417a8f(0x11e)]?{..._0x322307,'config':_0x1d2fdc['config'],'fieldOrder':_0x1d2fdc[_0x417a8f(0x3fc)]??_0x322307[_0x417a8f(0x3fc)]}:_0x322307;return _0x322307['type']===_0x417a8f(0x2d6)&&Ba(_0x322307)&&(_0x5cebb8=Va(_0x160f74,_0x5cebb8,_0x1d2fdc[_0x417a8f(0x175)])),R([..._0x1d2fdc[_0x417a8f(0x175)][_0x417a8f(0x438)](_0x5cab43=>_0x39c457[_0x417a8f(0x4d5)](_0x17cc29,_0x4d74fb,{'field':_0x5cab43})),_0x39c457[_0x417a8f(0x2ff)](_0x17cc29,_0x4d74fb,_0x5cebb8,_0x1098cc)]);}function Ia(_0x11e649,_0x7e1779,_0x5e312f=!0x1){const _0x2d4417=_0x413924;var _0x5f49aa,_0x435fe4;let _0x408b30=_0x11e649[_0x2d4417(0x3fc)]['filter'](_0x1a85c9=>Ua(_0x11e649,_0x1a85c9)),_0x24ead3=[],_0x1d6dc1={..._0x7e1779[_0x2d4417(0x406)]??{}},_0x113fff=typeof _0x1d6dc1[_0x2d4417(0x32a)]==_0x2d4417(0x3f0)&&Ua(_0x11e649,_0x1d6dc1['startDateFieldId'])?_0x1d6dc1['startDateFieldId']:_0x408b30[0x0],_0x270fb8=typeof _0x1d6dc1[_0x2d4417(0x4a6)]==_0x2d4417(0x3f0)&&Ua(_0x11e649,_0x1d6dc1[_0x2d4417(0x4a6)])&&_0x1d6dc1[_0x2d4417(0x4a6)]!==_0x113fff?_0x1d6dc1[_0x2d4417(0x4a6)]:_0x408b30[_0x2d4417(0x196)](_0x42ee03=>_0x42ee03!==_0x113fff);if(!_0x113fff){let _0x5717df=Wa(_0x11e649,_0x24ead3,_0x7e1779[_0x2d4417(0x378)]===_0x2d4417(0x2d6)?_0x2d4417(0x1f1):_0x2d4417(0x2c9));_0x24ead3[_0x2d4417(0x34c)](_0x5717df),_0x113fff=_0x5717df['id'];}if((_0x7e1779[_0x2d4417(0x378)]==='gantt'||_0x5e312f)&&!_0x270fb8){let _0x4b05da=Wa(_0x11e649,_0x24ead3,'End\x20date');_0x24ead3[_0x2d4417(0x34c)](_0x4b05da),_0x270fb8=_0x4b05da['id'];}_0x7e1779[_0x2d4417(0x378)]===_0x2d4417(0x4a0)&&!_0x270fb8&&delete _0x1d6dc1[_0x2d4417(0x4a6)],_0x1d6dc1[_0x2d4417(0x32a)]=_0x113fff,_0x7e1779['type']===_0x2d4417(0x4a0)&&_0x270fb8&&(_0x1d6dc1[_0x2d4417(0x4a6)]=_0x270fb8),_0x7e1779['type']===_0x2d4417(0x2d6)&&(_0x1d6dc1['endDateFieldId']=_0x270fb8??_0x113fff);let _0x53a764=Ma(_0x7e1779[_0x2d4417(0x3fc)],_0x24ead3[_0x2d4417(0x438)](_0x1be9db=>_0x1be9db['id']));return{'changed':_0x24ead3[_0x2d4417(0x4be)]>0x0||_0x1d6dc1[_0x2d4417(0x32a)]!==((_0x5f49aa=_0x7e1779[_0x2d4417(0x406)])==null?void 0x0:_0x5f49aa[_0x2d4417(0x32a)])||_0x1d6dc1[_0x2d4417(0x4a6)]!==((_0x435fe4=_0x7e1779[_0x2d4417(0x406)])==null?void 0x0:_0x435fe4[_0x2d4417(0x4a6)])||!(!_0x53a764||_0x285054[_0x2d4417(0x38b)](_0x53a764,_0x7e1779[_0x2d4417(0x3fc)]??[])),'fields':_0x24ead3,'config':_0x1d6dc1,'fieldOrder':_0x53a764};}function La(_0x1e3f67,_0x42a086){const _0x231604=_0x413924;var _0x3dc95b;let _0x461e8c=[],_0x5eb75d={..._0x42a086['config']??{}},_0x590379=typeof _0x5eb75d[_0x231604(0x22d)]=='string'&&Ra(_0x1e3f67,_0x5eb75d[_0x231604(0x22d)])?_0x5eb75d[_0x231604(0x22d)]:_0x1e3f67['fieldOrder'][_0x231604(0x196)](_0x3fe07f=>Ra(_0x1e3f67,_0x3fe07f));if(!_0x590379){let _0x588945=za(_0x1e3f67,_0x461e8c);_0x461e8c[_0x231604(0x34c)](_0x588945),_0x590379=_0x588945['id'];}_0x5eb75d[_0x231604(0x22d)]=_0x590379;let _0x3fdd04=Ma(_0x42a086[_0x231604(0x3fc)],_0x461e8c[_0x231604(0x438)](_0x4e7dec=>_0x4e7dec['id']));return{'changed':_0x461e8c['length']>0x0||_0x5eb75d[_0x231604(0x22d)]!==((_0x3dc95b=_0x42a086['config'])==null?void 0x0:_0x3dc95b['groupFieldId'])||!(!_0x3fdd04||_0x285054['diffValue'](_0x3fdd04,_0x42a086['fieldOrder']??[])),'fields':_0x461e8c,'config':_0x5eb75d,'fieldOrder':_0x3fdd04};}function Ra(_0x532a60,_0x40d91d){const _0x5548ea=_0x413924;let _0xbd7dd0=_0x40d91d?_0x532a60[_0x5548ea(0x175)][_0x40d91d]:null;return _0xbd7dd0?[_0x39ba8f[_0x5548ea(0x183)],_0x39ba8f[_0x5548ea(0x40c)],_0x39ba8f[_0x5548ea(0x152)],_0x39ba8f['Person'],_0x39ba8f[_0x5548ea(0x14f)],_0x39ba8f[_0x5548ea(0x15d)]][_0x5548ea(0x35f)](_0xbd7dd0[_0x5548ea(0x378)]):!0x1;}function za(_0x3ee96a,_0x1dc326){const _0x5ab839=_0x413924;return{'id':_0x5ab839(0x1dc)+_0x186b5a(0x8),'name':ja(_0x3ee96a,_0x5ab839(0x21d),_0x1dc326),'type':_0x39ba8f[_0x5ab839(0x183)],'config':_0x285054[_0x5ab839(0x1b7)](Na)};}function Ba(_0x305bcf){const _0x1fadd7=_0x413924;return Object[_0x1fadd7(0x3a2)](_0x305bcf[_0x1fadd7(0x406)]??{})[_0x1fadd7(0x4be)]===0x0&&Object[_0x1fadd7(0x3a2)](_0x305bcf[_0x1fadd7(0x468)]??{})[_0x1fadd7(0x4be)]===0x0;}function Va(_0x2a2219,_0x35dfa8,_0x198ba9){const _0x47e404=_0x413924;let _0x3b9bc4={..._0x35dfa8[_0x47e404(0x406)]??{}},_0x20309b=_0x198ba9['map'](_0x1df1f6=>_0x1df1f6['id']),_0x2fd545=[..._0x2a2219[_0x47e404(0x3fc)],..._0x20309b],_0x2abb1c=typeof _0x3b9bc4[_0x47e404(0x162)]==_0x47e404(0x3f0)&&Ha(_0x2a2219,_0x198ba9,_0x3b9bc4['titleFieldId'])?_0x3b9bc4[_0x47e404(0x162)]:_0x2a2219[_0x47e404(0x426)],_0xc84e2b=typeof _0x3b9bc4[_0x47e404(0x32a)]==_0x47e404(0x3f0)?_0x3b9bc4[_0x47e404(0x32a)]:'',_0x5801b9=typeof _0x3b9bc4[_0x47e404(0x4a6)]==_0x47e404(0x3f0)?_0x3b9bc4['endDateFieldId']:_0xc84e2b,_0x1bfbd8=new Set([_0x2abb1c,_0xc84e2b,_0x5801b9][_0x47e404(0x457)](_0x4815bc=>_0x4815bc&&Ha(_0x2a2219,_0x198ba9,_0x4815bc))),_0x378602=Object[_0x47e404(0x300)](_0x2fd545[_0x47e404(0x4ac)](_0x5a86a2=>_0x1bfbd8['has'](_0x5a86a2)||!Ha(_0x2a2219,_0x198ba9,_0x5a86a2)?[]:[[_0x5a86a2,{'hidden':!0x0}]]));return{..._0x35dfa8,'config':{..._0x3b9bc4,'titleFieldId':_0x2abb1c},'fieldSettings':_0x378602};}function Ha(_0x1e9eb1,_0xc9a226,_0x360743){const _0x2258b1=_0x413924;return!!(_0x1e9eb1[_0x2258b1(0x175)][_0x360743]??_0xc9a226['find'](_0x46e15a=>_0x46e15a['id']===_0x360743))&&!0x0;}function Ua(_0x47317b,_0x3a51a5){const _0x3bed8f=_0x413924;let _0x4d74c5=_0x3a51a5?_0x47317b['fields'][_0x3a51a5]:null;return!!_0x4d74c5&&_0x4d74c5[_0x3bed8f(0x378)]===_0x39ba8f['Date']&&_0x4d74c5['readonly']!==!0x0&&_0x4d74c5[_0x3bed8f(0x22f)]!==!0x0;}function Wa(_0x1c903c,_0x985ba2,_0x6b086d){const _0x586f14=_0x413924;let _0x551bdf=new Set([...Object[_0x586f14(0x3a2)](_0x1c903c[_0x586f14(0x175)]),..._0x985ba2['map'](_0x46db94=>_0x46db94['id'])]),_0x2374d4=_0x586f14(0x1dc)+_0x186b5a(0x8);for(;_0x551bdf[_0x586f14(0x3cf)](_0x2374d4);)_0x2374d4=_0x586f14(0x1dc)+_0x186b5a(0x8);return{'id':_0x2374d4,'name':ja(_0x1c903c,_0x6b086d,_0x985ba2),'type':_0x39ba8f[_0x586f14(0x2c9)],'config':{...Pa}};}const Ga={'id':_0x413924(0x235),'type':_0x3abf95['COMMAND'],'handler':(_0x23d946,_0x55ce90)=>{const _0x55034a=_0x413924;if(!_0x55ce90)return!0x1;let _0x2a5f96=_0x23d946[_0x55034a(0x113)](_0x4de172),{unitId:_0x4dcc47,tableId:_0x429788,view:_0x4d0128,index:_0x4c61cc}=_0x55ce90,_0x1486ad=_0x2a5f96[_0x55034a(0x365)](_0x4dcc47,_0x1a4689['UNIVER_BASE']);if(!_0x1486ad||!$(_0x1486ad,_0x429788)||_0x1486ad[_0x55034a(0x460)]()[_0x55034a(0x28d)][_0x429788][_0x55034a(0x379)][_0x4d0128['id']])return!0x1;let _0xa55a07=_0x23d946[_0x55034a(0x113)](_0x4c2cb1),_0x3f0e4c=_0x23d946[_0x55034a(0x113)](_0xb7e499),_0x5aaf68=_0x1486ad['getSnapshot'](),_0x37b1fe=Fa(_0x5aaf68,_0x429788,_0x4d0128,_0x4c61cc),_0x3a6849=new z()[_0x55034a(0x447)](_0x5aaf68,_0x37b1fe),_0x3a0ba3={'historyAction':_0x55034a(0x333),'unitId':_0x4dcc47,'op':_0x37b1fe,'viewType':_0x4d0128[_0x55034a(0x378)]},_0x577fef={'historyAction':_0x55034a(0x494),'unitId':_0x4dcc47,'op':_0x3a6849,'viewType':_0x4d0128[_0x55034a(0x378)]};return _0xa55a07[_0x55034a(0x328)](Q['id'],_0x3a0ba3)?(_0x2a5f96[_0x55034a(0x428)](_0x4dcc47),_0x3f0e4c[_0x55034a(0x23f)]({'unitID':_0x4dcc47,'undoMutations':[{'id':Q['id'],'params':_0x577fef}],'redoMutations':[{'id':Q['id'],'params':_0x3a0ba3}]}),!0x0):!0x1;}},Ka={'id':_0x413924(0x38d),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x2e6696,_0x469849){const _0xbb35fc=_0x413924;if(!_0x469849)return!0x1;let _0x49ef6d=_0x2e6696['get'](_0x4de172),{unitId:_0x38cb77,tableId:_0xa448ab,fieldId:_0x5e415e}=_0x469849,_0x2ed83c=_0x49ef6d['getUnit'](_0x38cb77,_0x1a4689['UNIVER_BASE']);if(!_0x2ed83c)return!0x1;let _0x367a19=_0x2ed83c['getSnapshot'](),_0x5f1b35=_0x367a19[_0xbb35fc(0x28d)][_0xa448ab];if(!$(_0x2ed83c,_0xa448ab,{'fieldIds':[_0x5e415e]})||_0x5f1b35[_0xbb35fc(0x426)]===_0x5e415e||_0x5e415e===_0x3f46af)return!0x1;let _0x3c5e0b=_0x2e6696[_0xbb35fc(0x113)](_0x4c2cb1),_0x1518b6=_0x2e6696['get'](_0xb7e499),_0xa3c542=new W()['deleteField'](_0x367a19,_0xa448ab,_0x5e415e),_0x2c10a9=new z()[_0xbb35fc(0x447)](_0x367a19,_0xa3c542),_0x3faf5e={'unitId':_0x38cb77,'op':_0xa3c542},_0x16f252={'unitId':_0x38cb77,'op':_0x2c10a9};return _0x3c5e0b[_0xbb35fc(0x328)](Q['id'],_0x3faf5e)?(_0x49ef6d['focusUnit'](_0x38cb77),_0x1518b6[_0xbb35fc(0x23f)]({'unitID':_0x38cb77,'undoMutations':[{'id':Q['id'],'params':_0x16f252}],'redoMutations':[{'id':Q['id'],'params':_0x3faf5e}]}),!0x0):!0x1;}},qa={'id':_0x413924(0x36a),'type':_0x3abf95['COMMAND'],'handler':(_0x41f3db,_0x3fe0a0)=>{const _0x4f3104=_0x413924;if(!_0x3fe0a0)return!0x1;let _0x4c1549=_0x41f3db['get'](_0x4de172),{unitId:_0x7f5c87,tableId:_0x43abf7,recordId:_0x16c598}=_0x3fe0a0,_0x1a371d=_0x4c1549['getUnit'](_0x7f5c87,_0x1a4689[_0x4f3104(0x413)]);if(!_0x1a371d||!$(_0x1a371d,_0x43abf7,{'recordIds':[_0x16c598]}))return!0x1;let _0x193af8=_0x41f3db['get'](_0x4c2cb1),_0x36b38b=_0x41f3db[_0x4f3104(0x113)](_0xb7e499),_0xb9ada9=_0x1a371d['getSnapshot'](),_0x2a4e39=et(_0xb9ada9[_0x4f3104(0x28d)][_0x43abf7],[_0x16c598]),_0x225306=new W(),_0x21e303=new z(),_0x19c1ff=_0x225306[_0x4f3104(0x31a)](_0xb9ada9,_0x43abf7,_0x16c598),_0x27bc3e=_0x21e303['applyOp'](_0xb9ada9,_0x19c1ff),_0x42c728=_0x225306[_0x4f3104(0x241)](_0xb9ada9,_0x27bc3e,_0x43abf7,[_0x16c598]),_0x206a26={'unitId':_0x7f5c87,'op':_0x19c1ff,'hierarchyChanges':_0x2a4e39,'source':_0x3fe0a0[_0x4f3104(0x18f)]??'ui'},_0x77fb69={..._0x206a26,'source':'redo'},_0x520eb5={'unitId':_0x7f5c87,'op':_0x42c728,'hierarchyChanges':_0x2a4e39[_0x4f3104(0x438)](_0xfba122=>({..._0xfba122,'oldParentRecordId':_0xfba122['parentRecordId'],'parentRecordId':_0xfba122[_0x4f3104(0x4da)]})),'source':_0x4f3104(0x36d)};return _0x193af8[_0x4f3104(0x328)](Q['id'],_0x206a26)?(_0x4c1549[_0x4f3104(0x428)](_0x7f5c87),_0x36b38b[_0x4f3104(0x23f)]({'unitID':_0x7f5c87,'undoMutations':[{'id':Q['id'],'params':_0x520eb5}],'redoMutations':[{'id':Q['id'],'params':_0x77fb69}]}),!0x0):!0x1;}},Ja={'id':_0x413924(0x26f),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x3f3a52,_0x528554)=>{const _0x1bceb1=_0x413924;if(!_0x528554)return!0x1;let _0xcabb56=_0x3f3a52[_0x1bceb1(0x113)](_0x4de172),{unitId:_0x3f375d,tableId:_0x4aa28e}=_0x528554,_0x29bc5e=_0xcabb56[_0x1bceb1(0x365)](_0x3f375d,_0x1a4689['UNIVER_BASE']);if(!_0x29bc5e||!$(_0x29bc5e,_0x4aa28e))return!0x1;let _0x2a8ec5=_0x3f3a52[_0x1bceb1(0x113)](_0x4c2cb1),_0x48f0a7=_0x3f3a52[_0x1bceb1(0x113)](_0xb7e499),_0x343c12=_0x29bc5e[_0x1bceb1(0x460)](),_0x5b9155=He(_0x343c12,_0x4aa28e);if(_0x5b9155[_0x1bceb1(0x4be)]>0x0)return console['error'](_0x1bceb1(0x437)+_0x4aa28e+_0x1bceb1(0x443)+_0x5b9155['map'](_0x5185e4=>_0x5185e4[_0x1bceb1(0x2ca)]+'.'+_0x5185e4[_0x1bceb1(0x1c3)])['join'](',\x20')+'.'),!0x1;let _0x11b050=new W()[_0x1bceb1(0x390)](_0x343c12,_0x4aa28e),_0x1aaa85=new z()[_0x1bceb1(0x447)](_0x343c12,_0x11b050),_0x2ed486={'unitId':_0x3f375d,'op':_0x11b050},_0xd949c={'unitId':_0x3f375d,'op':_0x1aaa85};return _0x2a8ec5[_0x1bceb1(0x328)](Q['id'],_0x2ed486)?(_0xcabb56[_0x1bceb1(0x428)](_0x3f375d),_0x48f0a7[_0x1bceb1(0x23f)]({'unitID':_0x3f375d,'undoMutations':[{'id':Q['id'],'params':_0xd949c}],'redoMutations':[{'id':Q['id'],'params':_0x2ed486}]}),!0x0):!0x1;}},Ya={'id':_0x413924(0x361),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x366b96,_0x436091)=>{const _0x30515=_0x413924;if(!_0x436091)return!0x1;let _0x3a0236=_0x366b96[_0x30515(0x113)](_0x4de172),{unitId:_0x515fb7,tableId:_0x11b197,viewId:_0x4b1512}=_0x436091,_0x1ba860=_0x3a0236[_0x30515(0x365)](_0x515fb7,_0x1a4689['UNIVER_BASE']);if(!_0x1ba860||!$(_0x1ba860,_0x11b197,{'viewIds':[_0x4b1512]}))return!0x1;let _0x156897=_0x366b96[_0x30515(0x113)](_0x4c2cb1),_0x47a945=_0x366b96[_0x30515(0x113)](_0xb7e499),_0x4fa644=_0x1ba860['getSnapshot'](),_0x308060=_0x4fa644['tables'][_0x11b197][_0x30515(0x379)][_0x4b1512][_0x30515(0x378)],_0x219fd2=new W()[_0x30515(0x245)](_0x4fa644,_0x11b197,_0x4b1512),_0x570439=new z()[_0x30515(0x447)](_0x4fa644,_0x219fd2),_0x3641e4={'historyAction':'delete-view','unitId':_0x515fb7,'op':_0x219fd2,'viewType':_0x308060},_0x1a0409={'historyAction':_0x30515(0x333),'unitId':_0x515fb7,'op':_0x570439,'viewType':_0x308060};return _0x156897[_0x30515(0x328)](Q['id'],_0x3641e4)?(_0x3a0236[_0x30515(0x428)](_0x515fb7),_0x47a945['pushUndoRedo']({'unitID':_0x515fb7,'undoMutations':[{'id':Q['id'],'params':_0x1a0409}],'redoMutations':[{'id':Q['id'],'params':_0x3641e4}]}),!0x0):!0x1;}},Xa={'id':'base.command.duplicate-base-field','type':_0x3abf95['COMMAND'],'handler':(_0x2fa0bf,_0x23774d)=>{const _0x434cb7=_0x413924;if(!_0x23774d)return!0x1;let _0x50b7a9=_0x2fa0bf['get'](_0x4de172),{unitId:_0x20b695,tableId:_0x3ec61e,sourceFieldId:_0x4b9beb,field:_0x412719,index:_0x298588,viewIndexes:_0x4bd70d}=_0x23774d,_0xb80dec=_0x50b7a9['getUnit'](_0x20b695,_0x1a4689['UNIVER_BASE']);if(!_0xb80dec||!$(_0xb80dec,_0x3ec61e,{'fieldIds':[_0x4b9beb]})||_0x4b9beb===_0x3f46af||_0xb80dec[_0x434cb7(0x460)]()[_0x434cb7(0x28d)][_0x3ec61e][_0x434cb7(0x175)][_0x412719['id']]||_0x298588===0x0||!ha(_0xb80dec,_0x3ec61e,_0x412719))return!0x1;let _0x53beb0=_0x2fa0bf[_0x434cb7(0x113)](_0x4c2cb1),_0x55ff58=_0x2fa0bf[_0x434cb7(0x113)](_0xb7e499),_0x138980=_0xb80dec[_0x434cb7(0x460)](),_0x1fabfe=new W()['duplicateField'](_0x138980,_0x3ec61e,_0x4b9beb,{'field':_0x412719,'index':_0x298588,'viewIndexes':_0x4bd70d}),_0x3f156f=new z()[_0x434cb7(0x447)](_0x138980,_0x1fabfe),_0x559db7={'unitId':_0x20b695,'op':_0x1fabfe},_0x379208={'unitId':_0x20b695,'op':_0x3f156f};return _0x53beb0[_0x434cb7(0x328)](Q['id'],_0x559db7)?(_0x50b7a9['focusUnit'](_0x20b695),_0x55ff58[_0x434cb7(0x23f)]({'unitID':_0x20b695,'undoMutations':[{'id':Q['id'],'params':_0x379208}],'redoMutations':[{'id':Q['id'],'params':_0x559db7}]}),!0x0):!0x1;}},Za={'id':_0x413924(0x36c),'type':_0x3abf95['COMMAND'],'handler':(_0x4155db,_0x4c9948)=>{const _0x5e6be7=_0x413924;if(!_0x4c9948)return!0x1;let _0x3670fb=_0x4155db['get'](_0x4de172),{unitId:_0x1da711,tableId:_0x55001d,sourceRecordId:_0x5c27ae,record:_0x1d6c19}=_0x4c9948,_0x4b246a=_0x3670fb[_0x5e6be7(0x365)](_0x1da711,_0x1a4689[_0x5e6be7(0x413)]);if(!_0x4b246a||!$(_0x4b246a,_0x55001d,{'recordIds':[_0x5c27ae]})||!_a(_0x4b246a,_0x55001d,_0x1d6c19))return!0x1;let _0xc2bbee=_0x4155db[_0x5e6be7(0x113)](_0x4c2cb1),_0x5dd0a2=_0x4155db['get'](_0xb7e499),_0x51c3bd=_0x4b246a[_0x5e6be7(0x460)](),_0x5cd783=va(_0x1d6c19),_0x51ac72=Qe(_0x51c3bd[_0x5e6be7(0x28d)][_0x55001d],[_0x5cd783]),_0x5a8ee2=new W()['duplicateRecord'](_0x51c3bd,_0x55001d,_0x5c27ae,_0x5cd783),_0x1fd62b=new z()['invertOp'](_0x51c3bd,_0x5a8ee2),_0x399bfe={'unitId':_0x1da711,'op':_0x5a8ee2,'hierarchyChanges':_0x51ac72['length']?_0x51ac72:void 0x0,'source':_0x51ac72[_0x5e6be7(0x4be)]?_0x4c9948[_0x5e6be7(0x18f)]??'ui':void 0x0},_0x4ae7f1={..._0x399bfe,'source':_0x51ac72[_0x5e6be7(0x4be)]?'redo':void 0x0},_0x1fc15a={'unitId':_0x1da711,'op':_0x1fd62b,'hierarchyChanges':_0x51ac72[_0x5e6be7(0x4be)]?_0x51ac72[_0x5e6be7(0x438)](_0x20b4d6=>({..._0x20b4d6,'oldParentRecordId':_0x20b4d6['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x51ac72['length']?_0x5e6be7(0x36d):void 0x0};return _0xc2bbee[_0x5e6be7(0x328)](Q['id'],_0x399bfe)?(_0x3670fb[_0x5e6be7(0x428)](_0x1da711),_0x5dd0a2[_0x5e6be7(0x23f)]({'unitID':_0x1da711,'undoMutations':[{'id':Q['id'],'params':_0x1fc15a}],'redoMutations':[{'id':Q['id'],'params':_0x4ae7f1}]}),!0x0):!0x1;}},Qa={'id':_0x413924(0x20f),'type':_0x3abf95['COMMAND'],'handler'(_0x352e6d,_0x45fbb8){const _0x5343ed=_0x413924;if(!_0x45fbb8)return!0x1;let _0x5cdacc=_0x352e6d[_0x5343ed(0x113)](_0x4de172),{unitId:_0x64bf20,tableId:_0x568778,viewId:_0x67f7a3,ensureEndDateField:_0x50d272}=_0x45fbb8,_0x257375=_0x5cdacc['getUnit'](_0x64bf20,_0x1a4689[_0x5343ed(0x413)]);if(!_0x257375||!$(_0x257375,_0x568778,{'viewIds':[_0x67f7a3]}))return!0x1;let _0x1f4ead=_0x257375['getSnapshot'](),_0x4319be=_0x1f4ead[_0x5343ed(0x28d)][_0x568778],_0x5435ff=_0x4319be==null?void 0x0:_0x4319be[_0x5343ed(0x379)][_0x67f7a3];if(!_0x4319be||!_0x5435ff||_0x5435ff[_0x5343ed(0x378)]!==_0x5343ed(0x4a0)&&_0x5435ff[_0x5343ed(0x378)]!==_0x5343ed(0x2d6))return!0x1;let _0x38995b=Ia(_0x4319be,_0x5435ff,_0x50d272===!0x0);if(!_0x38995b[_0x5343ed(0x11e)])return!0x1;let _0x2a22df=_0x352e6d['get'](_0x4c2cb1),_0x14bcf3=_0x352e6d['get'](_0xb7e499),_0x440e8c=new W(),_0xa06256=[..._0x38995b[_0x5343ed(0x175)][_0x5343ed(0x438)](_0x1a8241=>_0x440e8c[_0x5343ed(0x4d5)](_0x1f4ead,_0x45fbb8[_0x5343ed(0x2ca)],{'field':_0x1a8241})),$a([...eo(_0x45fbb8[_0x5343ed(0x2ca)],_0x45fbb8[_0x5343ed(0x297)]),_0x5343ed(0x406)],_0x5435ff['config'],_0x38995b[_0x5343ed(0x406)])];_0x38995b[_0x5343ed(0x3fc)]&&_0xa06256[_0x5343ed(0x34c)]($a([...eo(_0x45fbb8['tableId'],_0x45fbb8[_0x5343ed(0x297)]),_0x5343ed(0x3fc)],_0x5435ff['fieldOrder'],_0x38995b[_0x5343ed(0x3fc)]));let _0x164ad5=R(_0xa06256),_0x499b42=new z()[_0x5343ed(0x447)](_0x1f4ead,_0x164ad5),_0x451f2b={'unitId':_0x64bf20,'op':_0x164ad5},_0x23ac2e={'unitId':_0x64bf20,'op':_0x499b42};return _0x2a22df[_0x5343ed(0x328)](Q['id'],_0x451f2b)?(_0x5cdacc[_0x5343ed(0x428)](_0x64bf20),_0x14bcf3[_0x5343ed(0x23f)]({'unitID':_0x64bf20,'undoMutations':[{'id':Q['id'],'params':_0x23ac2e}],'redoMutations':[{'id':Q['id'],'params':_0x451f2b}]}),!0x0):!0x1;}};function $a(_0x59e575,_0x27e9fa,_0xdc3c20){const _0x5bd3ab=_0x413924;return _0x27e9fa===void 0x0?_0x2c18c4[_0x5bd3ab(0x4a5)](_0x59e575,_0xdc3c20):_0x2c18c4[_0x5bd3ab(0x41c)](_0x59e575,_0x27e9fa,_0xdc3c20);}function eo(_0x4a27f2,_0x3e182a){const _0x22e642=_0x413924;return['tables',_0x4a27f2,_0x22e642(0x379),_0x3e182a];}const to={'id':_0x413924(0x425),'type':_0x3abf95['COMMAND'],'handler':(_0x3c4aff,_0x4ae2c6)=>{const _0x23d4df=_0x413924;if(!_0x4ae2c6)return!0x1;let _0x44f98d=_0x3c4aff[_0x23d4df(0x113)](_0x4de172),{unitId:_0x3f6f7e,tableId:_0x556dc8,fieldId:_0x351010,target:_0x42ee59}=_0x4ae2c6,_0x49586a=_0x44f98d['getUnit'](_0x3f6f7e,_0x1a4689[_0x23d4df(0x413)]),_0x47326d=_0x42ee59[_0x23d4df(0x28b)]??_0x42ee59[_0x23d4df(0x39b)];if(!_0x49586a||!!_0x42ee59[_0x23d4df(0x28b)]==!!_0x42ee59[_0x23d4df(0x39b)]||!_0x47326d||_0x47326d===_0x351010||_0x351010===_0x3f46af||_0x42ee59[_0x23d4df(0x28b)]===_0x3f46af||!$(_0x49586a,_0x556dc8,{'fieldIds':[_0x351010,_0x47326d]}))return!0x1;let _0x490913=_0x3c4aff[_0x23d4df(0x113)](_0x4c2cb1),_0x206140=_0x3c4aff[_0x23d4df(0x113)](_0xb7e499),_0x58d42d=_0x49586a[_0x23d4df(0x460)](),_0x1a6276=new W()[_0x23d4df(0x24a)](_0x58d42d,_0x556dc8,_0x351010,_0x42ee59),_0x5733a7=new z()[_0x23d4df(0x447)](_0x58d42d,_0x1a6276),_0x28bfbf={'unitId':_0x3f6f7e,'op':_0x1a6276},_0x461661={'unitId':_0x3f6f7e,'op':_0x5733a7};return _0x490913[_0x23d4df(0x328)](Q['id'],_0x28bfbf)?(_0x44f98d[_0x23d4df(0x428)](_0x3f6f7e),_0x206140[_0x23d4df(0x23f)]({'unitID':_0x3f6f7e,'undoMutations':[{'id':Q['id'],'params':_0x461661}],'redoMutations':[{'id':Q['id'],'params':_0x28bfbf}]}),!0x0):!0x1;}},no={'id':_0x413924(0x2e2),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x3cae05,_0x12150e)=>{const _0x93395a=_0x413924;var _0x320629;if(!_0x12150e)return!0x1;let {unitId:_0x1920cb,tableId:_0xd27d18,recordId:_0x54786d,parentRecordId:_0x15c58e,orderKey:_0x3ab332}=_0x12150e,_0x16b838=_0x3cae05[_0x93395a(0x113)](_0x4de172),_0x5894d1=_0x16b838[_0x93395a(0x365)](_0x1920cb,_0x1a4689[_0x93395a(0x413)]);if(!_0x5894d1||!$(_0x5894d1,_0xd27d18,{'recordIds':[_0x54786d,..._0x15c58e?[_0x15c58e]:[]]}))throw new P(_0x93395a(0x3ca));let _0xa4dadd=_0x5894d1['getSnapshot'](),_0x46fc27=_0xa4dadd[_0x93395a(0x28d)][_0xd27d18],_0x4046a6=qe(_0x46fc27),_0xbb17cd=_0x4046a6??_0x12150e['fieldId']??Je(_0x46fc27);if(_0x4046a6&&_0x12150e['fieldId']&&_0x12150e[_0x93395a(0x1c3)]!==_0x4046a6||_0x46fc27['fields'][_0xbb17cd]&&!F(_0x46fc27,_0xbb17cd))throw new P('invalidField');let _0x5363b7=tt(_0x46fc27,_0xbb17cd),_0x48d555=it(_0x5363b7,_0x54786d,_0x15c58e);if(!_0x48d555['valid'])throw new P(_0x48d555[_0x93395a(0x24f)]===_0x1b786b[_0x93395a(0x12a)]?_0x93395a(0x330):_0x48d555[_0x93395a(0x24f)]===_0x1b786b[_0x93395a(0x2a6)]?_0x93395a(0x1dd):_0x93395a(0x261));let _0x2bcf10=_0x5363b7[_0x93395a(0x430)][_0x93395a(0x113)](_0x54786d)??null,_0x1da3d0=_0x46fc27['records'][_0x54786d][_0x93395a(0x124)];if(_0x2bcf10===_0x15c58e&&(_0x3ab332===void 0x0||_0x3ab332===_0x1da3d0))return!0x0;let _0x2e36c4=_0x2bcf10!==_0x15c58e,_0xe9095e=_0x3ab332!==void 0x0&&_0x3ab332!==_0x1da3d0,_0x2d1903=new W(),_0x4cc8e2=[],_0x27556e=_0x46fc27[_0x93395a(0x175)][_0xbb17cd],_0x55e476=_0x2e36c4&&(!_0x27556e||((_0x320629=N(_0x27556e))==null?void 0x0:_0x320629['relationRole'])!==_0x169931[_0x93395a(0x4d6)])?_0x27556e?_0x2d1903[_0x93395a(0x29c)](_0xa4dadd,_0xd27d18,_0xbb17cd,{'config':{..._0x27556e[_0x93395a(0x406)],'relationRole':_0x169931[_0x93395a(0x4d6)]}}):_0x3cae05[_0x93395a(0x113)](Kr)[_0x93395a(0x1f6)](_0x5894d1,_0xd27d18,Ye(_0x46fc27,_0xbb17cd,_0x12150e[_0x93395a(0x3b7)]),_0x46fc27[_0x93395a(0x3fc)][_0x93395a(0x4be)]):null;_0x55e476&&_0x4cc8e2[_0x93395a(0x34c)](_0x55e476),_0x2e36c4&&_0x4cc8e2[_0x93395a(0x34c)](_0x2d1903[_0x93395a(0x301)](_0xa4dadd,_0xd27d18,_0x54786d,_0xbb17cd,_0x15c58e?Re([_0x15c58e]):'')),_0xe9095e&&_0x4cc8e2[_0x93395a(0x34c)](_0x2d1903[_0x93395a(0x332)](_0xa4dadd,_0xd27d18,_0x54786d,_0x3ab332));let _0x39db72=R(_0x4cc8e2),_0x107923={'tableId':_0xd27d18,'fieldId':_0xbb17cd,'recordId':_0x54786d,'oldParentRecordId':_0x2bcf10,'parentRecordId':_0x15c58e},_0x232bac={'unitId':_0x1920cb,'op':_0x39db72,'trigger':no['id'],'hierarchyChanges':[_0x107923],'source':_0x12150e[_0x93395a(0x18f)]??'ui'},_0x3a5855={..._0x232bac,'source':'redo'};if(!_0x3cae05[_0x93395a(0x113)](_0x4c2cb1)[_0x93395a(0x328)](Q['id'],_0x232bac))return!0x1;let _0x35d99d=_0x5894d1['getSnapshot'](),_0x4bc93e=[];_0x2e36c4&&_0x4bc93e[_0x93395a(0x34c)](ro(_0x35d99d,_0xa4dadd,_0xd27d18,_0x54786d,_0xbb17cd)),_0xe9095e&&_0x4bc93e[_0x93395a(0x34c)](io(_0x35d99d,_0xa4dadd,_0xd27d18,_0x54786d)),_0x55e476&&_0x4bc93e[_0x93395a(0x34c)](new z()[_0x93395a(0x447)](_0xa4dadd,_0x55e476));let _0x37a75a={'unitId':_0x1920cb,'op':R(_0x4bc93e),'trigger':no['id'],'hierarchyChanges':[{..._0x107923,'oldParentRecordId':_0x15c58e,'parentRecordId':_0x2bcf10}],'source':'undo'};return _0x16b838[_0x93395a(0x428)](_0x1920cb),_0x3cae05[_0x93395a(0x113)](_0xb7e499)[_0x93395a(0x23f)]({'unitID':_0x1920cb,'undoMutations':[{'id':Q['id'],'params':_0x37a75a}],'redoMutations':[{'id':Q['id'],'params':_0x3a5855}]}),!0x0;}};function ro(_0x117b0a,_0x14f150,_0x51d48c,_0x586357,_0x41c11a){const _0x187385=_0x413924;var _0x34bcab,_0x1a385d,_0xb849e2,_0x1fc360,_0x3fe875,_0x36225d,_0x49cfb9,_0x495c3f;let _0x4f3cee=_0x117b0a[_0x187385(0x28d)][_0x51d48c],_0x3921b5=_0x14f150[_0x187385(0x28d)][_0x51d48c],_0x46db28=(_0x34bcab=_0x4f3cee[_0x187385(0x12b)])==null?void 0x0:_0x34bcab[_0x586357],_0x828f49=(_0x1a385d=_0x4f3cee[_0x187385(0x4a2)])==null?void 0x0:_0x1a385d[_0x41c11a],_0x157d4e=(_0xb849e2=_0x3921b5[_0x187385(0x12b)])==null?void 0x0:_0xb849e2[_0x586357],_0x57c920=(_0x1fc360=_0x3921b5['colIndex'])==null?void 0x0:_0x1fc360[_0x41c11a],_0x472406=_0x46db28==null||_0x828f49==null||(_0x3fe875=_0x4f3cee[_0x187385(0x260)])==null||(_0x3fe875=_0x3fe875[_0x46db28])==null?void 0x0:_0x3fe875[_0x828f49],_0x2d24bf=_0x157d4e==null||_0x57c920==null||(_0x36225d=_0x3921b5[_0x187385(0x260)])==null||(_0x36225d=_0x36225d[_0x157d4e])==null?void 0x0:_0x36225d[_0x57c920],_0x2dca89=(_0x49cfb9=_0x4f3cee[_0x187385(0x3b4)][_0x586357])==null?void 0x0:_0x49cfb9['values'][_0x41c11a],_0x37aa99=(_0x495c3f=_0x3921b5[_0x187385(0x3b4)][_0x586357])==null?void 0x0:_0x495c3f[_0x187385(0x4ae)][_0x41c11a],_0x4ab5e8=[],_0x2e7d59=ao(_0x46db28==null||_0x828f49==null?null:U[_0x187385(0x260)](_0x51d48c,_0x46db28,_0x828f49),_0x472406,_0x2d24bf);_0x2e7d59&&_0x4ab5e8[_0x187385(0x34c)](_0x2e7d59);let _0x22d1f4=ao(U[_0x187385(0x3c4)](_0x51d48c,_0x586357,_0x41c11a),_0x2dca89,_0x37aa99);return _0x22d1f4&&_0x4ab5e8[_0x187385(0x34c)](_0x22d1f4),R(_0x4ab5e8);}function io(_0x5b7986,_0x254fc6,_0x528e78,_0x34c43a){const _0x128cf1=_0x413924;var _0x44db3e,_0x17c1a2;let _0x5b09ee=_0x5b7986['tables'][_0x528e78],_0xbf99a3=_0x254fc6[_0x128cf1(0x28d)][_0x528e78];return R([ao([...U[_0x128cf1(0x1cf)](_0x528e78,_0x34c43a),_0x128cf1(0x124)],(_0x44db3e=_0x5b09ee[_0x128cf1(0x3b4)][_0x34c43a])==null?void 0x0:_0x44db3e[_0x128cf1(0x124)],(_0x17c1a2=_0xbf99a3[_0x128cf1(0x3b4)][_0x34c43a])==null?void 0x0:_0x17c1a2[_0x128cf1(0x124)]),ao([...U[_0x128cf1(0x246)](_0x528e78),_0x128cf1(0x1c6)],_0x5b09ee['recordOrder'],_0xbf99a3[_0x128cf1(0x1c6)])]['filter'](_0x65a1ca=>!!_0x65a1ca));}function ao(_0xd14149,_0x41aa47,_0xbbf619){const _0x427e60=_0x413924;if(!_0xd14149||_0x41aa47===void 0x0&&_0xbbf619===void 0x0)return null;let _0x253505=_0xb3e801[_0x427e60(0x146)]();return _0xbbf619===void 0x0?_0x253505[_0x427e60(0x458)](_0xd14149,_0x41aa47):_0x41aa47===void 0x0?_0x253505[_0x427e60(0x4a5)](_0xd14149,_0xbbf619):_0x253505[_0x427e60(0x41c)](_0xd14149,_0x41aa47,_0xbbf619);}const oo={'id':_0x413924(0x47d),'type':_0x3abf95['COMMAND'],'handler':(_0x5a9000,_0x2a3f2a)=>{const _0x49fdf5=_0x413924;if(!_0x2a3f2a)return!0x1;let _0x5bfe29=_0x5a9000[_0x49fdf5(0x113)](_0x4de172),{unitId:_0x5810e6,tableId:_0x70aedb,viewId:_0x5d02b5,target:_0x129c03}=_0x2a3f2a,_0xdf21dd=_0x5bfe29['getUnit'](_0x5810e6,_0x1a4689[_0x49fdf5(0x413)]),_0x5ed797=_0x129c03['beforeViewId']??_0x129c03['afterViewId'];if(!_0xdf21dd||!_0x5ed797||_0x5ed797===_0x5d02b5||!$(_0xdf21dd,_0x70aedb,{'viewIds':[_0x5d02b5,_0x5ed797]}))return!0x1;let _0x2bc450=_0x5a9000[_0x49fdf5(0x113)](_0x4c2cb1),_0x531ec1=_0x5a9000[_0x49fdf5(0x113)](_0xb7e499),_0x4e671a=_0xdf21dd[_0x49fdf5(0x460)](),_0x2476e9=new W()[_0x49fdf5(0x1a7)](_0x4e671a,_0x70aedb,_0x5d02b5,_0x129c03),_0x325146=new z()['invertOp'](_0x4e671a,_0x2476e9),_0x538f8c={'unitId':_0x5810e6,'op':_0x2476e9},_0x39c66d={'unitId':_0x5810e6,'op':_0x325146};return _0x2bc450['syncExecuteCommand'](Q['id'],_0x538f8c)?(_0x5bfe29[_0x49fdf5(0x428)](_0x5810e6),_0x531ec1['pushUndoRedo']({'unitID':_0x5810e6,'undoMutations':[{'id':Q['id'],'params':_0x39c66d}],'redoMutations':[{'id':Q['id'],'params':_0x538f8c}]}),!0x0):!0x1;}},so={'id':_0x413924(0x203),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x5b9001,_0x3353a2)=>{const _0x4ae798=_0x413924;if(!_0x3353a2)return!0x1;let _0x2745b2=_0x5b9001[_0x4ae798(0x113)](_0x4de172),{unitId:_0x2ca76b,tableId:_0x4ff857,name:_0x1da41b}=_0x3353a2,_0x533a22=_0x2745b2['getUnit'](_0x2ca76b,_0x1a4689[_0x4ae798(0x413)]);if(!_0x533a22||!$(_0x533a22,_0x4ff857)||!Oa(_0x533a22['getSnapshot'](),_0x1da41b,_0x4ff857)[_0x4ae798(0x3e2)])return!0x1;let _0x4cff24=_0x5b9001['get'](_0x4c2cb1),_0x594ed9=_0x5b9001['get'](_0xb7e499),_0x443905=_0x533a22[_0x4ae798(0x460)](),_0x2b72aa=new W()['renameTable'](_0x443905,_0x4ff857,_0x1da41b),_0x1991c4=new z()['invertOp'](_0x443905,_0x2b72aa),_0x10841d={'unitId':_0x2ca76b,'op':_0x2b72aa},_0x5a3fc5={'unitId':_0x2ca76b,'op':_0x1991c4};return _0x4cff24[_0x4ae798(0x328)](Q['id'],_0x10841d)?(_0x2745b2[_0x4ae798(0x428)](_0x2ca76b),_0x594ed9['pushUndoRedo']({'unitID':_0x2ca76b,'undoMutations':[{'id':Q['id'],'params':_0x5a3fc5}],'redoMutations':[{'id':Q['id'],'params':_0x10841d}]}),!0x0):!0x1;}},co={'id':'base.command.rename-base-view','type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x321969,_0x5d603a)=>{const _0x97864a=_0x413924;if(!_0x5d603a)return!0x1;let _0x216540=_0x321969[_0x97864a(0x113)](_0x4de172),{unitId:_0x15ca00,tableId:_0x3b5c19,viewId:_0xbaf54c,name:_0x4d7288}=_0x5d603a,_0x4b0e80=_0x216540[_0x97864a(0x365)](_0x15ca00,_0x1a4689['UNIVER_BASE']);if(!_0x4b0e80||!$(_0x4b0e80,_0x3b5c19,{'viewIds':[_0xbaf54c]}))return!0x1;let _0x5b2dc6=_0x321969['get'](_0x4c2cb1),_0x2fb6bc=_0x321969[_0x97864a(0x113)](_0xb7e499),_0xdfccc9=_0x4b0e80[_0x97864a(0x460)](),_0x258dce=new W()['renameView'](_0xdfccc9,_0x3b5c19,_0xbaf54c,_0x4d7288),_0x48a4c8=new z()['invertOp'](_0xdfccc9,_0x258dce),_0x4a292d={'unitId':_0x15ca00,'op':_0x258dce},_0x19bef6={'unitId':_0x15ca00,'op':_0x48a4c8};return _0x5b2dc6[_0x97864a(0x328)](Q['id'],_0x4a292d)?(_0x216540[_0x97864a(0x428)](_0x15ca00),_0x2fb6bc[_0x97864a(0x23f)]({'unitID':_0x15ca00,'undoMutations':[{'id':Q['id'],'params':_0x19bef6}],'redoMutations':[{'id':Q['id'],'params':_0x4a292d}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x2db74a,_0x40c224)=>{const _0x3e6b93=_0x413924;if(!_0x40c224)return!0x1;let _0x56302d=_0x2db74a[_0x3e6b93(0x113)](_0x4de172),{unitId:_0x23b2ac,tableId:_0x2c55a0,viewId:_0x15cc5d,fieldId:_0x3a267c}=_0x40c224,_0x446b45=_0x56302d[_0x3e6b93(0x365)](_0x23b2ac,_0x1a4689[_0x3e6b93(0x413)]);if(!_0x446b45||!$(_0x446b45,_0x2c55a0,{'viewIds':[_0x15cc5d],'fieldIds':[_0x3a267c]}))return!0x1;let _0x43374a=_0x2db74a[_0x3e6b93(0x113)](_0x4c2cb1),_0x3217f7=_0x2db74a[_0x3e6b93(0x113)](_0xb7e499),_0x56f7c6=_0x446b45[_0x3e6b93(0x460)](),_0x230b04=new W()[_0x3e6b93(0x2f8)](_0x56f7c6,_0x2c55a0,_0x15cc5d,{'groupFieldId':_0x3a267c}),_0x2dd2d1=new z()[_0x3e6b93(0x447)](_0x56f7c6,_0x230b04),_0x4c31b8={'unitId':_0x23b2ac,'op':_0x230b04},_0x47e48d={'unitId':_0x23b2ac,'op':_0x2dd2d1};return _0x43374a[_0x3e6b93(0x328)](Q['id'],_0x4c31b8)?(_0x56302d[_0x3e6b93(0x428)](_0x23b2ac),_0x3217f7[_0x3e6b93(0x23f)]({'unitID':_0x23b2ac,'undoMutations':[{'id':Q['id'],'params':_0x47e48d}],'redoMutations':[{'id':Q['id'],'params':_0x4c31b8}]}),!0x0):!0x1;}},uo={'id':_0x413924(0x407),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0xec9ae9,_0x31c8df)=>{const _0x3c6993=_0x413924;if(!_0x31c8df)return!0x1;let _0x651f20=_0xec9ae9[_0x3c6993(0x113)](_0x4de172),_0x5e9929=_0x651f20['getUnit'](_0x31c8df[_0x3c6993(0x2b9)],_0x1a4689[_0x3c6993(0x413)]);if(!_0x5e9929)return!0x1;let _0x499187=_0x5e9929['getSnapshot']()[_0x3c6993(0x1f9)];if(_0x499187===_0x31c8df[_0x3c6993(0x1f9)])return!0x0;let _0x22ed5b=new W(),_0x3c4850=new z(),_0x21b3a8=[],_0x126a96=[],_0x237e83=[_0x5e9929,..._0x651f20[_0x3c6993(0x3ff)](_0x1a4689[_0x3c6993(0x413)])['filter'](_0x3fa3fb=>_0x3fa3fb[_0x3c6993(0x27e)]()!==_0x31c8df['unitId'])];for(let _0x4cd95f of _0x237e83){let _0xae43f0=_0x4cd95f[_0x3c6993(0x460)](),_0x1a6959=_0x4cd95f===_0x5e9929?_0x22ed5b['setBaseName'](_0xae43f0,_0x31c8df[_0x3c6993(0x1f9)]):_0x22ed5b[_0x3c6993(0x264)](_0xae43f0,_0x499187,_0x31c8df[_0x3c6993(0x1f9)]);_0x1a6959&&(_0x21b3a8[_0x3c6993(0x34c)]({'id':Q['id'],'params':{'unitId':_0x4cd95f[_0x3c6993(0x27e)](),'op':_0x1a6959,'trigger':uo['id']}}),_0x126a96['unshift']({'id':Q['id'],'params':{'unitId':_0x4cd95f[_0x3c6993(0x27e)](),'op':_0x3c4850[_0x3c6993(0x447)](_0xae43f0,_0x1a6959),'trigger':uo['id']}}));}let _0x5f2354=_0xec9ae9[_0x3c6993(0x113)](_0x4c2cb1),_0x52af2c=_0xec9ae9[_0x3c6993(0x113)](_0xb7e499),_0x837b0a=_0x52af2c['__tempBatchingUndoRedo'](_0x31c8df['unitId']);try{return _0x13120b(_0x21b3a8,_0x5f2354)[_0x3c6993(0x1a6)]?(_0x651f20[_0x3c6993(0x428)](_0x31c8df[_0x3c6993(0x2b9)]),_0x52af2c[_0x3c6993(0x23f)]({'unitID':_0x31c8df[_0x3c6993(0x2b9)],'undoMutations':_0x126a96,'redoMutations':_0x21b3a8}),!0x0):!0x1;}finally{_0x837b0a[_0x3c6993(0x310)]();}}},fo={'type':_0x3abf95['COMMAND'],'id':_0x413924(0x356),async 'handler'(_0x1be5c4,_0x5ecc0c){const _0x263885=_0x413924;if(!_0x5ecc0c||!Tr[_0x263885(0x35f)](_0x5ecc0c[_0x263885(0x272)])||_0x5ecc0c[_0x263885(0x1ac)]!==_0x5ecc0c['unitId']&&_0x5ecc0c[_0x263885(0x272)]!==_0x4a4e33[_0x263885(0x40f)]||_0x5ecc0c[_0x263885(0x415)]&&(![_0x263885(0x2f1),_0x263885(0x1c0),'members'][_0x263885(0x35f)](_0x5ecc0c[_0x263885(0x415)]['edit'])||_0x5ecc0c[_0x263885(0x415)][_0x263885(0x2a7)][_0x263885(0x2e3)](_0x37796a=>!Tr['includes'](_0x37796a[_0x263885(0x272)])||_0x5ecc0c['objectId']!==_0x5ecc0c[_0x263885(0x2b9)]&&_0x37796a[_0x263885(0x272)]!==_0x4a4e33['Edit'])))return!0x1;let _0x4ec54b=Pr(_0x5ecc0c[_0x263885(0x2b9)],_0x5ecc0c['objectId'],_0x5ecc0c['action']),_0x4830aa={'unitId':_0x5ecc0c['unitId'],'objectId':_0x5ecc0c[_0x263885(0x1ac)],'objectType':_0x4ec54b['type']},_0x29949c=_0x1be5c4[_0x263885(0x113)](_0x18e9f8);return _0x5ecc0c[_0x263885(0x44a)]?await _0x29949c[_0x263885(0x44a)](_0x4830aa):_0x5ecc0c[_0x263885(0x415)]?await _0x29949c[_0x263885(0x3de)](_0x4830aa,_0x5ecc0c['policy']):await _0x29949c[_0x263885(0x18d)](_0x4830aa,_0x4ec54b,_0x5ecc0c['value']),!0x0;}},po={'type':_0x3abf95[_0x413924(0x4ab)],'id':_0x413924(0x30d),async 'handler'(_0x30b363,_0x584a01){const _0x8b0125=_0x413924;if(!(_0x584a01!=null&&_0x584a01[_0x8b0125(0x2b9)])||!Array['isArray'](_0x584a01['changes'])||!_0x584a01['changes']['length']||_0x584a01[_0x8b0125(0x326)]['some'](_0x29faa2=>!(_0x29faa2!=null&&_0x29faa2['objectId'])||_0x29faa2[_0x8b0125(0x1ac)]===_0x584a01[_0x8b0125(0x2b9)]||_0x29faa2[_0x8b0125(0x415)]!==null&&(!_0x29faa2[_0x8b0125(0x415)]||![_0x8b0125(0x2f1),_0x8b0125(0x1c0),'members'][_0x8b0125(0x35f)](_0x29faa2[_0x8b0125(0x415)]['edit'])||!Array[_0x8b0125(0x348)](_0x29faa2[_0x8b0125(0x415)][_0x8b0125(0x318)])||!Array[_0x8b0125(0x348)](_0x29faa2[_0x8b0125(0x415)][_0x8b0125(0x2a7)])||_0x29faa2[_0x8b0125(0x415)]['strategies'][_0x8b0125(0x2e3)](_0x28b942=>_0x28b942[_0x8b0125(0x272)]!==_0x4a4e33['Edit']))))throw Error(_0x8b0125(0x1d9));return _0x30b363[_0x8b0125(0x113)](_0x18e9f8)[_0x8b0125(0x41f)](_0x584a01['changes'][_0x8b0125(0x438)](_0x399256=>{const _0xb8dd36=_0x8b0125;let _0x4bfd7c=Pr(_0x584a01[_0xb8dd36(0x2b9)],_0x399256[_0xb8dd36(0x1ac)],_0x4a4e33[_0xb8dd36(0x40f)]);return{'unitId':_0x584a01['unitId'],'objectId':_0x399256[_0xb8dd36(0x1ac)],'objectType':_0x4bfd7c[_0xb8dd36(0x378)],'policy':_0x399256['policy']};}));}};function mo(_0x575567,_0x53b057){const _0x1b0cd1=_0x413924;let _0x374a37=L(_0x285054[_0x1b0cd1(0x1b7)](_0x575567)),_0x2e7402=new Map();return _0x53b057['forEach'](_0x31fde5=>{const _0x195537=_0x1b0cd1;var _0x1f17b3,_0x2b41c4;let _0x1b40b0='recordId'in _0x31fde5?_0x31fde5['recordId']:(_0x1f17b3=_0x374a37['rowId'])==null?void 0x0:_0x1f17b3[_0x31fde5[_0x195537(0x47c)]],_0x4e7fbe=_0x195537(0x1c3)in _0x31fde5?_0x31fde5['fieldId']:(_0x2b41c4=_0x374a37[_0x195537(0x16c)])==null?void 0x0:_0x2b41c4[_0x31fde5[_0x195537(0x44d)]],_0x586081=_0x4e7fbe?_0x374a37['fields'][_0x4e7fbe]:void 0x0;if(!_0x1b40b0||!_0x4e7fbe||!_0x586081||!_0x374a37['records'][_0x1b40b0])return;let _0x14266e=xt(_0x31fde5[_0x195537(0x277)],_0x586081),_0x24aa4e=wt(_0x31fde5[_0x195537(0x277)],_0x14266e,_0x586081,_0x374a37,_0x1b40b0),_0x1b23c3=_0x2e7402[_0x195537(0x113)](_0x1b40b0)??{};_0x1b23c3[_0x4e7fbe]=_0x24aa4e,_0x2e7402[_0x195537(0x404)](_0x1b40b0,_0x1b23c3);}),[..._0x2e7402][_0x1b0cd1(0x438)](([_0x303b9e,_0x5baa66])=>({'recordId':_0x303b9e,'values':_0x5baa66}));}const ho={'id':_0x413924(0x46e),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x103e1e,_0x318993){const _0x202f1e=_0x413924;if(!_0x318993)return!0x1;let _0x16ca24=_0x103e1e[_0x202f1e(0x113)](_0x4de172),{unitId:_0x3660fb,tableId:_0x30065f,patches:_0x4ec811}=_0x318993,_0x3b99bf=_0x16ca24[_0x202f1e(0x365)](_0x3660fb,_0x1a4689[_0x202f1e(0x413)]);if(!_0x3b99bf||!$(_0x3b99bf,_0x30065f))return!0x1;let _0x37d26d=_0x103e1e['get'](_0x4c2cb1),_0x9eea6c=_0x103e1e[_0x202f1e(0x113)](_0xb7e499),_0x29cede=_0x3b99bf[_0x202f1e(0x460)](),_0x422e7a=L(_0x29cede[_0x202f1e(0x28d)][_0x30065f]),_0x174d37=_0x4ec811['map'](_0x17f8b1=>{const _0x48ead1=_0x202f1e;var _0x59e7c7;return _0x48ead1(0x170)in _0x17f8b1?_0x17f8b1[_0x48ead1(0x170)]:(_0x59e7c7=_0x422e7a['rowId'])==null?void 0x0:_0x59e7c7[_0x17f8b1[_0x48ead1(0x47c)]];})[_0x202f1e(0x457)](_0x344898=>_0x344898!=null),_0x159555=_0x4ec811[_0x202f1e(0x438)](_0x286495=>{const _0x401c35=_0x202f1e;var _0x4ccc52;return _0x401c35(0x1c3)in _0x286495?_0x286495[_0x401c35(0x1c3)]:(_0x4ccc52=_0x422e7a[_0x401c35(0x16c)])==null?void 0x0:_0x4ccc52[_0x286495[_0x401c35(0x44d)]];})[_0x202f1e(0x457)](_0x420948=>_0x420948!=null);if(_0x174d37[_0x202f1e(0x4be)]!==_0x4ec811[_0x202f1e(0x4be)]||_0x159555['length']!==_0x4ec811['length']||!$(_0x3b99bf,_0x30065f,{'recordIds':_0x174d37,'fieldIds':_0x159555})||_0x4ec811['some']((_0x50a2c0,_0x1579fa)=>!ga(_0x3b99bf,_0x30065f,_0x159555[_0x1579fa],_0x50a2c0[_0x202f1e(0x277)])))return!0x1;let _0x8bfd09=Ze(_0x422e7a,mo(_0x422e7a,_0x4ec811)),_0x5a4912=_0x4ec811[_0x202f1e(0x4ac)](_0x48be71=>{const _0x4130c5=_0x202f1e;var _0x54b888,_0x39ae1b;if(_0x4130c5(0x47c)in _0x48be71)return[_0x48be71];let _0x4c795f=(_0x54b888=_0x422e7a['rowIndex'])==null?void 0x0:_0x54b888[_0x48be71[_0x4130c5(0x170)]],_0x2b549a=(_0x39ae1b=_0x422e7a[_0x4130c5(0x4a2)])==null?void 0x0:_0x39ae1b[_0x48be71[_0x4130c5(0x1c3)]];return _0x4c795f==null||_0x2b549a==null?[]:[{'row':_0x4c795f,'col':_0x2b549a,'value':_0x48be71[_0x4130c5(0x277)]}];}),_0x5d43c8=new W()[_0x202f1e(0x153)](_0x29cede,_0x30065f,_0x5a4912),_0x415213=new z()['invertOp'](_0x29cede,_0x5d43c8),_0x10702c={'unitId':_0x3660fb,'op':_0x5d43c8,'trigger':_0x8bfd09['length']?ho['id']:void 0x0,'hierarchyChanges':_0x8bfd09['length']?_0x8bfd09:void 0x0,'source':_0x8bfd09[_0x202f1e(0x4be)]?_0x202f1e(0x229):void 0x0},_0x336d1c={'unitId':_0x3660fb,'op':_0x415213,'trigger':_0x8bfd09[_0x202f1e(0x4be)]?ho['id']:void 0x0,'hierarchyChanges':_0x8bfd09[_0x202f1e(0x4be)]?_0x8bfd09[_0x202f1e(0x438)](_0x478836=>({..._0x478836,'oldParentRecordId':_0x478836[_0x202f1e(0x3e4)],'parentRecordId':_0x478836[_0x202f1e(0x4da)]})):void 0x0,'source':_0x8bfd09[_0x202f1e(0x4be)]?_0x202f1e(0x36d):void 0x0},_0x11774c={..._0x10702c,'source':_0x8bfd09[_0x202f1e(0x4be)]?_0x318993[_0x202f1e(0x18f)]??'ui':void 0x0};return _0x37d26d['syncExecuteCommand'](Q['id'],_0x11774c)?(_0x16ca24[_0x202f1e(0x428)](_0x3660fb),_0x9eea6c[_0x202f1e(0x23f)]({'unitID':_0x3660fb,'undoMutations':[{'id':Q['id'],'params':_0x336d1c}],'redoMutations':[{'id':Q['id'],'params':_0x10702c}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x3abf95['COMMAND'],'handler'(_0x19eadb,_0x3f4e78){const _0x53bd15=_0x413924;if(!_0x3f4e78)return!0x1;let _0x55805b=_0x19eadb[_0x53bd15(0x113)](_0x4de172),{unitId:_0x2f2816,tableId:_0x2075bb,patches:_0x32255c}=_0x3f4e78,_0x21e0ad=_0x55805b[_0x53bd15(0x365)](_0x2f2816,_0x1a4689[_0x53bd15(0x413)]),_0x32ed0e=_0x32255c[_0x53bd15(0x438)](_0x15d7b9=>_0x15d7b9[_0x53bd15(0x170)]),_0x55c366=_0x32255c[_0x53bd15(0x4ac)](_0x36c5f1=>Object['keys'](_0x36c5f1[_0x53bd15(0x4ae)]));if(!_0x21e0ad||!$(_0x21e0ad,_0x2075bb,{'recordIds':_0x32ed0e,'fieldIds':_0x55c366})||_0x32255c[_0x53bd15(0x2e3)](_0x20834d=>Object[_0x53bd15(0x391)](_0x20834d[_0x53bd15(0x4ae)])[_0x53bd15(0x2e3)](([_0xc24e39,_0xca1e25])=>!ga(_0x21e0ad,_0x2075bb,_0xc24e39,_0xca1e25))))return!0x1;let _0x26cb10=Ze(_0x21e0ad[_0x53bd15(0x460)]()[_0x53bd15(0x28d)][_0x2075bb],_0x32255c),_0x170a27=_0x19eadb[_0x53bd15(0x113)](_0x4c2cb1),_0x15acdd=_0x19eadb['get'](_0xb7e499),_0x51ebc0=_0x19eadb['get'](Kr)['createSetRecordValuesOp'](_0x21e0ad,_0x2075bb,_0x32255c),_0x4f4aca=new z()['invertOp'](_0x21e0ad[_0x53bd15(0x460)](),_0x51ebc0),_0x4c7b5a={'unitId':_0x2f2816,'op':_0x51ebc0,'trigger':_0x26cb10[_0x53bd15(0x4be)]?go['id']:void 0x0,'hierarchyChanges':_0x26cb10[_0x53bd15(0x4be)]?_0x26cb10:void 0x0,'source':_0x26cb10[_0x53bd15(0x4be)]?_0x3f4e78[_0x53bd15(0x18f)]??'ui':void 0x0},_0x5a8545={..._0x4c7b5a,'source':_0x26cb10[_0x53bd15(0x4be)]?_0x53bd15(0x229):void 0x0},_0x11eadd={'unitId':_0x2f2816,'op':_0x4f4aca,'trigger':_0x26cb10['length']?go['id']:void 0x0,'hierarchyChanges':_0x26cb10[_0x53bd15(0x4be)]?_0x26cb10[_0x53bd15(0x438)](_0x1ed202=>({..._0x1ed202,'oldParentRecordId':_0x1ed202['parentRecordId'],'parentRecordId':_0x1ed202[_0x53bd15(0x4da)]})):void 0x0,'source':_0x26cb10[_0x53bd15(0x4be)]?_0x53bd15(0x36d):void 0x0};return _0x170a27[_0x53bd15(0x328)](Q['id'],_0x4c7b5a)?(_0x55805b[_0x53bd15(0x428)](_0x2f2816),_0x15acdd['pushUndoRedo']({'unitID':_0x2f2816,'undoMutations':[{'id':Q['id'],'params':_0x11eadd}],'redoMutations':[{'id':Q['id'],'params':_0x5a8545}]}),!0x0):!0x1;}},_o={'id':_0x413924(0x3b8),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x4d0b3c,_0x1c6645)=>{const _0x42bab7=_0x413924;if(!_0x1c6645)return!0x1;let {unitId:_0x1ca684,tableId:_0x1f22d1,fieldId:_0x1cff1d}=_0x1c6645,_0x1d76ac=_0x4d0b3c[_0x42bab7(0x113)](_0x4de172),_0x35e5bf=_0x1d76ac[_0x42bab7(0x365)](_0x1ca684,_0x1a4689['UNIVER_BASE']);if(!_0x35e5bf||!$(_0x35e5bf,_0x1f22d1))return!0x1;let _0x5f4918=_0x35e5bf[_0x42bab7(0x460)](),_0x515f30=_0x5f4918[_0x42bab7(0x28d)][_0x1f22d1];if(_0x1cff1d!==null&&!F(_0x515f30,_0x1cff1d))throw new P('invalidField');if(qe(_0x515f30)===_0x1cff1d)return!0x0;let _0x289082=new W(),_0x3f5aec=R(Object[_0x42bab7(0x4ae)](_0x515f30[_0x42bab7(0x175)])[_0x42bab7(0x4ac)](_0x57bf1f=>{const _0x2928dd=_0x42bab7;if(!F(_0x515f30,_0x57bf1f['id']))return[];let _0x51a03e=N(_0x57bf1f);if(!_0x51a03e)return[];let _0x201f34=_0x57bf1f['id']===_0x1cff1d;if(_0x51a03e[_0x2928dd(0x455)]===_0x169931['Parent']===_0x201f34)return[];let _0x289b5b={..._0x57bf1f['config'],'targetTableId':_0x51a03e[_0x2928dd(0x4a8)],'multiple':_0x51a03e['multiple']};return _0x201f34?_0x289b5b[_0x2928dd(0x455)]=_0x169931[_0x2928dd(0x4d6)]:delete _0x289b5b[_0x2928dd(0x455)],[_0x289082[_0x2928dd(0x29c)](_0x5f4918,_0x1f22d1,_0x57bf1f['id'],{'config':_0x289b5b})];})),_0x4d2f3b=new z()['invertOp'](_0x5f4918,_0x3f5aec),_0x361c04={'unitId':_0x1ca684,'op':_0x3f5aec},_0x5c8946={'unitId':_0x1ca684,'op':_0x4d2f3b};return _0x4d0b3c[_0x42bab7(0x113)](_0x4c2cb1)['syncExecuteCommand'](Q['id'],_0x361c04)?(_0x1d76ac[_0x42bab7(0x428)](_0x1ca684),_0x4d0b3c[_0x42bab7(0x113)](_0xb7e499)[_0x42bab7(0x23f)]({'unitID':_0x1ca684,'undoMutations':[{'id':Q['id'],'params':_0x5c8946}],'redoMutations':[{'id':Q['id'],'params':_0x361c04}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x44cebd,_0x19f709)=>{const _0x385dd2=_0x413924;if(!_0x19f709)return!0x1;let _0x229a07=_0x44cebd[_0x385dd2(0x113)](_0x4de172),{unitId:_0x381e3c,tableId:_0x948b99,viewId:_0x4f1679,fieldId:_0x3fafd8,target:_0x38f457}=_0x19f709,_0x5c444f=_0x229a07['getUnit'](_0x381e3c,_0x1a4689[_0x385dd2(0x413)]),_0x220180=_0x38f457[_0x385dd2(0x28b)]??_0x38f457['afterFieldId'];if(!_0x5c444f||!_0x220180||_0x220180===_0x3fafd8||!$(_0x5c444f,_0x948b99,{'viewIds':[_0x4f1679],'fieldIds':[_0x3fafd8,_0x220180]}))return!0x1;let _0xbf6e5f=_0x5c444f['getSnapshot']()[_0x385dd2(0x28d)][_0x948b99],_0xa000a3=_0xbf6e5f['fields'][_0x3fafd8],_0x5bb441=_0xbf6e5f['fields'][_0x220180];if(_0xa000a3['system']===!0x0||_0xa000a3['type']===_0x39ba8f[_0x385dd2(0x216)]||_0x5bb441[_0x385dd2(0x22f)]===!0x0||_0x5bb441['type']===_0x39ba8f[_0x385dd2(0x216)])return!0x1;let _0xc1559f=_0x44cebd['get'](_0x4c2cb1),_0x17ca47=_0x44cebd['get'](_0xb7e499),_0x22bd6f=_0x5c444f['getSnapshot'](),_0x985095=new W()[_0x385dd2(0x22c)](_0x22bd6f,_0x948b99,_0x4f1679,_0x3fafd8,_0x38f457),_0x2ebab7=new z()[_0x385dd2(0x447)](_0x22bd6f,_0x985095),_0x8e0b7b={'unitId':_0x381e3c,'op':_0x985095},_0x378882={'unitId':_0x381e3c,'op':_0x2ebab7};return _0xc1559f['syncExecuteCommand'](Q['id'],_0x8e0b7b)?(_0x229a07[_0x385dd2(0x428)](_0x381e3c),_0x17ca47[_0x385dd2(0x23f)]({'unitID':_0x381e3c,'undoMutations':[{'id':Q['id'],'params':_0x378882}],'redoMutations':[{'id':Q['id'],'params':_0x8e0b7b}]}),!0x0):!0x1;}},yo={'id':_0x413924(0x34b),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x5ea3a2,_0x3bb83c){const _0x1fb0b3=_0x413924;if(!_0x3bb83c)return!0x1;let _0x235d32=_0x5ea3a2['get'](_0x4de172),{unitId:_0x4bbcce,tableId:_0x2b2adb,viewId:_0x44b3ed,fieldId:_0x4824c3,visible:_0x3aa86c}=_0x3bb83c,_0x53e490=_0x235d32[_0x1fb0b3(0x365)](_0x4bbcce,_0x1a4689[_0x1fb0b3(0x413)]);if(!_0x53e490||!$(_0x53e490,_0x2b2adb,{'viewIds':[_0x44b3ed],'fieldIds':[_0x4824c3]}))return!0x1;let _0x14992c=_0x53e490['getSnapshot']()[_0x1fb0b3(0x28d)][_0x2b2adb][_0x1fb0b3(0x175)][_0x4824c3];if(_0x14992c['system']===!0x0||_0x14992c[_0x1fb0b3(0x378)]===_0x39ba8f['RecordId'])return!0x1;let _0x4765f7=_0x5ea3a2['get'](_0x4c2cb1),_0x3057d4=_0x5ea3a2[_0x1fb0b3(0x113)](_0xb7e499),_0x13fdbd=_0x53e490[_0x1fb0b3(0x460)](),_0x5796a6=new W()['setViewFieldVisible'](_0x13fdbd,_0x2b2adb,_0x44b3ed,_0x4824c3,_0x3aa86c),_0xf2e08a=new z()[_0x1fb0b3(0x447)](_0x13fdbd,_0x5796a6),_0x18dc9d={'unitId':_0x4bbcce,'op':_0x5796a6},_0x54a385={'unitId':_0x4bbcce,'op':_0xf2e08a};return _0x4765f7[_0x1fb0b3(0x328)](Q['id'],_0x18dc9d)?(_0x235d32['focusUnit'](_0x4bbcce),_0x3057d4[_0x1fb0b3(0x23f)]({'unitID':_0x4bbcce,'undoMutations':[{'id':Q['id'],'params':_0x54a385}],'redoMutations':[{'id':Q['id'],'params':_0x18dc9d}]}),!0x0):!0x1;}},bo={'id':_0x413924(0x4c5),'type':_0x3abf95['COMMAND'],'handler':(_0x5012e6,_0x59cd1d)=>{const _0x59342c=_0x413924;if(!_0x59cd1d)return!0x1;let _0x120ad2=_0x5012e6[_0x59342c(0x113)](_0x4de172),{unitId:_0x4774ce,tableId:_0xba4ebe,viewId:_0x3d0e9c,fieldId:_0x4dfeaf,width:_0x4bde22}=_0x59cd1d,_0x13b795=_0x120ad2['getUnit'](_0x4774ce,_0x1a4689[_0x59342c(0x413)]);if(!_0x13b795||!$(_0x13b795,_0xba4ebe,{'viewIds':[_0x3d0e9c],'fieldIds':[_0x4dfeaf]}))return!0x1;let _0x1214f2=_0x13b795[_0x59342c(0x460)]()[_0x59342c(0x28d)][_0xba4ebe]['fields'][_0x4dfeaf];if(_0x1214f2[_0x59342c(0x22f)]===!0x0||_0x1214f2['type']===_0x39ba8f['RecordId'])return!0x1;let _0x400fed=_0x5012e6[_0x59342c(0x113)](_0x4c2cb1),_0x2c6169=_0x5012e6['get'](_0xb7e499),_0x548096=_0x13b795[_0x59342c(0x460)](),_0x4ea2e2=new W()['setViewFieldWidth'](_0x548096,_0xba4ebe,_0x3d0e9c,_0x4dfeaf,_0x4bde22),_0x9177c7=new z()[_0x59342c(0x447)](_0x548096,_0x4ea2e2),_0x1496fd={'unitId':_0x4774ce,'op':_0x4ea2e2},_0x235773={'unitId':_0x4774ce,'op':_0x9177c7};return _0x400fed[_0x59342c(0x328)](Q['id'],_0x1496fd)?(_0x120ad2[_0x59342c(0x428)](_0x4774ce),_0x2c6169[_0x59342c(0x23f)]({'unitID':_0x4774ce,'undoMutations':[{'id':Q['id'],'params':_0x235773}],'redoMutations':[{'id':Q['id'],'params':_0x1496fd}]}),!0x0):!0x1;}},xo={'id':_0x413924(0x2a3),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x41ef42,_0x6df81d)=>{const _0x5d2301=_0x413924;if(!_0x6df81d)return!0x1;let _0x21fa24=_0x41ef42[_0x5d2301(0x113)](_0x4de172),{unitId:_0x32b2e2,tableId:_0x58176e,viewId:_0x1a575c,filter:_0x501245}=_0x6df81d,_0x5435d7=_0x21fa24[_0x5d2301(0x365)](_0x32b2e2,_0x1a4689[_0x5d2301(0x413)]),_0x91ef9=(_0x501245==null?void 0x0:_0x501245[_0x5d2301(0x31c)][_0x5d2301(0x438)](_0x1dd7b1=>_0x1dd7b1[_0x5d2301(0x1c3)]))??[];if(!_0x5435d7||!$(_0x5435d7,_0x58176e,{'viewIds':[_0x1a575c],'fieldIds':_0x91ef9}))return!0x1;let _0x3169ac=_0x41ef42[_0x5d2301(0x113)](_0x4c2cb1),_0x85134a=_0x41ef42[_0x5d2301(0x113)](_0xb7e499),_0x5932d1=_0x5435d7[_0x5d2301(0x460)](),_0xa13e0c=new W()['setViewFilter'](_0x5932d1,_0x58176e,_0x1a575c,_0x501245),_0x501fbf=new z()[_0x5d2301(0x447)](_0x5932d1,_0xa13e0c),_0x1d448d={'unitId':_0x32b2e2,'op':_0xa13e0c},_0x4d4599={'unitId':_0x32b2e2,'op':_0x501fbf};return _0x3169ac[_0x5d2301(0x328)](Q['id'],_0x1d448d)?(_0x21fa24[_0x5d2301(0x428)](_0x32b2e2),_0x85134a[_0x5d2301(0x23f)]({'unitID':_0x32b2e2,'undoMutations':[{'id':Q['id'],'params':_0x4d4599}],'redoMutations':[{'id':Q['id'],'params':_0x1d448d}]}),!0x0):!0x1;}},So={'id':'base.command.set-base-view-group','type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x10cc4a,_0x3d4f72)=>{const _0x5e2998=_0x413924;if(!_0x3d4f72)return!0x1;let _0x4ff876=_0x10cc4a['get'](_0x4de172),{unitId:_0x3b7b11,tableId:_0x2569c9,viewId:_0x1f3954,group:_0x11d574}=_0x3d4f72,_0x1a2f84=_0x4ff876[_0x5e2998(0x365)](_0x3b7b11,_0x1a4689[_0x5e2998(0x413)]);if(!_0x1a2f84||!$(_0x1a2f84,_0x2569c9,{'viewIds':[_0x1f3954],'fieldIds':_0x11d574['map'](_0x1199a2=>_0x1199a2['fieldId'])}))return!0x1;let _0x4baab7=_0x10cc4a[_0x5e2998(0x113)](_0x4c2cb1),_0x4658ae=_0x10cc4a[_0x5e2998(0x113)](_0xb7e499),_0x5f06ae=_0x1a2f84['getSnapshot'](),_0x18e340=new W()[_0x5e2998(0x2e5)](_0x5f06ae,_0x2569c9,_0x1f3954,_0x11d574),_0xf66d05=new z()['invertOp'](_0x5f06ae,_0x18e340),_0xf5722e={'unitId':_0x3b7b11,'op':_0x18e340},_0x1b894e={'unitId':_0x3b7b11,'op':_0xf66d05};return _0x4baab7[_0x5e2998(0x328)](Q['id'],_0xf5722e)?(_0x4ff876[_0x5e2998(0x428)](_0x3b7b11),_0x4658ae[_0x5e2998(0x23f)]({'unitID':_0x3b7b11,'undoMutations':[{'id':Q['id'],'params':_0x1b894e}],'redoMutations':[{'id':Q['id'],'params':_0xf5722e}]}),!0x0):!0x1;}},Co={'id':_0x413924(0x238),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x4f5e57,_0x33b206)=>{const _0x39e69c=_0x413924;if(!_0x33b206)return!0x1;let _0x5aaac2=_0x4f5e57[_0x39e69c(0x113)](_0x4de172),{unitId:_0x3b890f,tableId:_0x2ec1fa,viewId:_0x35ca83,sort:_0x5d0010}=_0x33b206,_0x454893=_0x5aaac2[_0x39e69c(0x365)](_0x3b890f,_0x1a4689[_0x39e69c(0x413)]);if(!_0x454893||!$(_0x454893,_0x2ec1fa,{'viewIds':[_0x35ca83],'fieldIds':_0x5d0010[_0x39e69c(0x438)](_0x5078bc=>_0x5078bc[_0x39e69c(0x1c3)])}))return!0x1;let _0x450e8f=_0x4f5e57[_0x39e69c(0x113)](_0x4c2cb1),_0x5c072d=_0x4f5e57[_0x39e69c(0x113)](_0xb7e499),_0x11a6d3=_0x454893[_0x39e69c(0x460)](),_0x3e8de6=new W()[_0x39e69c(0x329)](_0x11a6d3,_0x2ec1fa,_0x35ca83,_0x5d0010),_0x46bb48=new z()[_0x39e69c(0x447)](_0x11a6d3,_0x3e8de6),_0x584688={'unitId':_0x3b890f,'op':_0x3e8de6},_0xa37ee5={'unitId':_0x3b890f,'op':_0x46bb48};return _0x450e8f[_0x39e69c(0x328)](Q['id'],_0x584688)?(_0x5aaac2[_0x39e69c(0x428)](_0x3b890f),_0x5c072d[_0x39e69c(0x23f)]({'unitID':_0x3b890f,'undoMutations':[{'id':Q['id'],'params':_0xa37ee5}],'redoMutations':[{'id':Q['id'],'params':_0x584688}]}),!0x0):!0x1;}},wo={'id':_0x413924(0x32c),'type':_0x3abf95['COMMAND'],'handler'(_0x3cb3e1,_0xb7cdb1){const _0x58fff9=_0x413924;if(!_0xb7cdb1)return!0x1;let _0x34d230=_0x3cb3e1[_0x58fff9(0x113)](_0x4de172),{unitId:_0x2177f8,tableId:_0x4673b3,recordId:_0x1a786d,fieldId:_0x1350b4,value:_0xb153a}=_0xb7cdb1,_0x2cd00b=_0x34d230['getUnit'](_0x2177f8,_0x1a4689[_0x58fff9(0x413)]);if(!_0x2cd00b||!$(_0x2cd00b,_0x4673b3,{'recordIds':[_0x1a786d],'fieldIds':[_0x1350b4]})||!ga(_0x2cd00b,_0x4673b3,_0x1350b4,_0xb153a))return!0x1;let _0x206852=_0x2cd00b['getSnapshot']()[_0x58fff9(0x28d)][_0x4673b3],_0x5c1a26=F(_0x206852,_0x1350b4)&&Xe(_0x206852)[_0x58fff9(0x35f)](_0x1350b4),_0x2c56e5=_0x5c1a26?tt(_0x206852,_0x1350b4):null,_0x1f56c3=(_0x2c56e5==null?void 0x0:_0x2c56e5[_0x58fff9(0x430)][_0x58fff9(0x113)](_0x1a786d))??null,_0x553832=_0x5c1a26?Le(_0xb153a)[0x0]??null:null;if(_0x2c56e5){if(_0x553832&&!_0x206852['records'][_0x553832])throw new P(_0x58fff9(0x3ca));let _0x390b1c=it(_0x2c56e5,_0x1a786d,_0x553832);if(!_0x390b1c[_0x58fff9(0x3e2)])throw new P(_0x390b1c[_0x58fff9(0x24f)]===_0x1b786b['SelfParent']?_0x58fff9(0x330):_0x390b1c[_0x58fff9(0x24f)]===_0x1b786b[_0x58fff9(0x2a6)]?_0x58fff9(0x1dd):_0x58fff9(0x261));}let _0x3c8c06=_0x3cb3e1[_0x58fff9(0x113)](_0x4c2cb1),_0x55e77f=_0x3cb3e1['get'](_0xb7e499),_0x333554=_0x3cb3e1[_0x58fff9(0x113)](Kr),_0xf48c05;try{_0xf48c05=_0x333554['createUpdateCellOp'](_0x2cd00b,_0x4673b3,_0x1a786d,_0x1350b4,_0xb153a);}catch(_0x325210){return console[_0x58fff9(0x221)](_0x58fff9(0x133),_0x325210),!0x1;}let _0x1c753a=new z()[_0x58fff9(0x447)](_0x2cd00b['getSnapshot'](),_0xf48c05),_0x26044f=_0x5c1a26&&_0x1f56c3!==_0x553832?[{'tableId':_0x4673b3,'fieldId':_0x1350b4,'recordId':_0x1a786d,'oldParentRecordId':_0x1f56c3,'parentRecordId':_0x553832}]:void 0x0,_0x3cef58={'unitId':_0x2177f8,'op':_0xf48c05,'trigger':_0x26044f?wo['id']:void 0x0,'hierarchyChanges':_0x26044f,'source':_0x26044f?_0xb7cdb1[_0x58fff9(0x18f)]??'ui':void 0x0},_0x23e677={..._0x3cef58,'source':_0x26044f?_0x58fff9(0x229):void 0x0},_0x1a57e9={'unitId':_0x2177f8,'op':_0x1c753a,'trigger':_0x26044f?wo['id']:void 0x0,'hierarchyChanges':_0x26044f==null?void 0x0:_0x26044f['map'](_0x373a84=>({..._0x373a84,'oldParentRecordId':_0x373a84[_0x58fff9(0x3e4)],'parentRecordId':_0x373a84['oldParentRecordId']})),'source':_0x26044f?_0x58fff9(0x36d):void 0x0};return _0x3c8c06['syncExecuteCommand'](Q['id'],_0x3cef58)?(_0x34d230[_0x58fff9(0x428)](_0x2177f8),_0x55e77f[_0x58fff9(0x23f)]({'unitID':_0x2177f8,'undoMutations':[{'id':Q['id'],'params':_0x1a57e9}],'redoMutations':[{'id':Q['id'],'params':_0x23e677}]}),!0x0):!0x1;}},To={'id':_0x413924(0x49a),'type':_0x3abf95[_0x413924(0x4ab)],'handler'(_0x5c28db,_0x4c8c7c){const _0x1d57aa=_0x413924;if(!_0x4c8c7c)return!0x1;let _0x1a8ffb=_0x5c28db[_0x1d57aa(0x113)](_0x4de172),{unitId:_0x2126eb,tableId:_0x181055,fieldId:_0x2d31a5}=_0x4c8c7c,_0x1036ab=_0x1a8ffb[_0x1d57aa(0x365)](_0x2126eb,_0x1a4689[_0x1d57aa(0x413)]);if(!_0x1036ab||!$(_0x1036ab,_0x181055,{'fieldIds':[_0x2d31a5]}))return!0x1;let _0x35b2e6=_0x5c28db['get'](_0x4c2cb1),_0x5da656=_0x5c28db[_0x1d57aa(0x113)](_0xb7e499),_0x1537c7=_0x1036ab[_0x1d57aa(0x460)](),_0x1860af=_0x4c8c7c[_0x1d57aa(0x4d8)][_0x1d57aa(0x401)](),_0x2a9391=new W()[_0x1d57aa(0x29c)](_0x1537c7,_0x181055,_0x2d31a5,{'description':_0x1860af}),_0x3ba804=new z()['invertOp'](_0x1036ab['getSnapshot'](),_0x2a9391),_0x1865b5={'unitId':_0x2126eb,'op':_0x2a9391},_0x5e2672={'unitId':_0x2126eb,'op':_0x3ba804};return _0x35b2e6[_0x1d57aa(0x328)](Q['id'],_0x1865b5)?(_0x1a8ffb[_0x1d57aa(0x428)](_0x2126eb),_0x5da656[_0x1d57aa(0x23f)]({'unitID':_0x2126eb,'undoMutations':[{'id':Q['id'],'params':_0x5e2672}],'redoMutations':[{'id':Q['id'],'params':_0x1865b5}]}),!0x0):!0x1;}},Eo={'id':_0x413924(0x11f),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x2ada04,_0x28b86a)=>{const _0x33fc67=_0x413924;if(!_0x28b86a)return!0x1;let _0x2ac1dd=_0x2ada04[_0x33fc67(0x113)](_0x4de172),{unitId:_0x1166d6,tableId:_0x2b3f94,fieldId:_0x3024d4,patch:_0x62bc3e}=_0x28b86a,_0x4dd652=_0x2ac1dd[_0x33fc67(0x365)](_0x1166d6,_0x1a4689[_0x33fc67(0x413)]);if(!_0x4dd652||_0x3024d4===_0x3f46af||!$(_0x4dd652,_0x2b3f94,{'fieldIds':[_0x3024d4]}))return!0x1;let _0x166760=_0x2ada04[_0x33fc67(0x113)](_0x4c2cb1),_0x4d59c6=_0x2ada04[_0x33fc67(0x113)](_0xb7e499),_0x4c69e8=_0x4dd652[_0x33fc67(0x460)]();if(!ha(_0x4dd652,_0x2b3f94,{..._0x4c69e8[_0x33fc67(0x28d)][_0x2b3f94][_0x33fc67(0x175)][_0x3024d4],..._0x62bc3e}))return!0x1;let _0x54f92d=new W()['updateField'](_0x4c69e8,_0x2b3f94,_0x3024d4,_0x62bc3e),_0x1c3728=new z()[_0x33fc67(0x447)](_0x4c69e8,_0x54f92d),_0x5a0159={'unitId':_0x1166d6,'op':_0x54f92d},_0x12f966={'unitId':_0x1166d6,'op':_0x1c3728};return _0x166760[_0x33fc67(0x328)](Q['id'],_0x5a0159)?(_0x2ac1dd[_0x33fc67(0x428)](_0x1166d6),_0x4d59c6[_0x33fc67(0x23f)]({'unitID':_0x1166d6,'undoMutations':[{'id':Q['id'],'params':_0x12f966}],'redoMutations':[{'id':Q['id'],'params':_0x5a0159}]}),!0x0):!0x1;}},Do={'id':_0x413924(0x1cd),'type':_0x3abf95['COMMAND'],'handler':(_0x5990b1,_0x1e10f1)=>{const _0x537acc=_0x413924;if(!_0x1e10f1)return!0x1;let _0x599168=_0x5990b1[_0x537acc(0x113)](_0x4de172),{unitId:_0x28dd64,tableId:_0x10a13b,viewId:_0x23c415,patch:_0x391029}=_0x1e10f1,_0x355b5f=_0x599168[_0x537acc(0x365)](_0x28dd64,_0x1a4689[_0x537acc(0x413)]);if(!_0x355b5f||!$(_0x355b5f,_0x10a13b,{'viewIds':[_0x23c415]}))return!0x1;let _0x250969=_0x5990b1[_0x537acc(0x113)](_0x4c2cb1),_0x251887=_0x5990b1[_0x537acc(0x113)](_0xb7e499),_0x370958=_0x355b5f[_0x537acc(0x460)](),_0x78aa26=new W()[_0x537acc(0x2f8)](_0x370958,_0x10a13b,_0x23c415,_0x391029),_0x5a7966=new z()[_0x537acc(0x447)](_0x370958,_0x78aa26),_0x26e67b={'unitId':_0x28dd64,'op':_0x78aa26},_0x56d9e4={'unitId':_0x28dd64,'op':_0x5a7966};return _0x250969[_0x537acc(0x328)](Q['id'],_0x26e67b)?(_0x599168[_0x537acc(0x428)](_0x28dd64),_0x251887[_0x537acc(0x23f)]({'unitID':_0x28dd64,'undoMutations':[{'id':Q['id'],'params':_0x56d9e4}],'redoMutations':[{'id':Q['id'],'params':_0x26e67b}]}),!0x0):!0x1;}},Oo={'id':_0x413924(0x17a),'type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x144c1d,_0xd5707f)=>{const _0x597bf6=_0x413924;if(!_0xd5707f)return!0x1;let _0xc3b7bf=_0x144c1d['get'](_0x4de172),{unitId:_0x5aff4a,tableId:_0x591d65,recordId:_0x1ca7eb,orderKey:_0x6ab1fb}=_0xd5707f,_0x18cc61=_0xc3b7bf['getUnit'](_0x5aff4a,_0x1a4689['UNIVER_BASE']);if(!_0x18cc61||!$(_0x18cc61,_0x591d65,{'recordIds':[_0x1ca7eb]}))return!0x1;let _0x55041b=_0x144c1d[_0x597bf6(0x113)](_0x4c2cb1),_0x21c41c=_0x144c1d[_0x597bf6(0x113)](_0xb7e499),_0x5a1229=_0x18cc61['getSnapshot'](),_0x1f47db=new W()['updateRecordOrder'](_0x5a1229,_0x591d65,_0x1ca7eb,_0x6ab1fb),_0x420849=new z()['invertOp'](_0x5a1229,_0x1f47db),_0x27d952={'unitId':_0x5aff4a,'op':_0x1f47db},_0xfcd1c0={'unitId':_0x5aff4a,'op':_0x420849};return _0x55041b[_0x597bf6(0x328)](Q['id'],_0x27d952)?(_0xc3b7bf['focusUnit'](_0x5aff4a),_0x21c41c[_0x597bf6(0x23f)]({'unitID':_0x5aff4a,'undoMutations':[{'id':Q['id'],'params':_0xfcd1c0}],'redoMutations':[{'id':Q['id'],'params':_0x27d952}]}),!0x0):!0x1;}};let ko=function(_0x4a3901){const _0x2d5928=_0x413924;return _0x4a3901[_0x2d5928(0x313)]=_0x2d5928(0x404),_0x4a3901[_0x2d5928(0x34a)]=_0x2d5928(0x4c2),_0x4a3901[_0x2d5928(0x4c4)]=_0x2d5928(0x4a1),_0x4a3901[_0x2d5928(0x353)]=_0x2d5928(0x214),_0x4a3901;}({});const Ao={'id':_0x413924(0x164),'type':_0x3abf95['COMMAND'],'handler':(_0x209278,_0x563d42)=>{const _0x5914f9=_0x413924;var _0xe2b82b;if(!_0x563d42)return!0x1;let _0x38e0aa=_0x209278['get'](_0x4de172),_0x170028=_0x38e0aa[_0x5914f9(0x365)](_0x563d42[_0x5914f9(0x2b9)],_0x1a4689[_0x5914f9(0x413)]);if(!_0x170028||!$(_0x170028,_0x563d42[_0x5914f9(0x2ca)],{'viewIds':[_0x563d42['viewId']]}))return!0x1;let _0x2ed072=_0x170028[_0x5914f9(0x460)](),_0x10ee4e=_0x2ed072[_0x5914f9(0x28d)][_0x563d42[_0x5914f9(0x2ca)]],_0x5185d3=jo(((_0xe2b82b=_0x10ee4e[_0x5914f9(0x379)][_0x563d42[_0x5914f9(0x297)]]['config'][_0x5914f9(0x4b9)])==null?void 0x0:_0xe2b82b[_0x5914f9(0x2d5)])??[],_0x563d42);if(!_0x5185d3)return!0x1;Mo(_0x10ee4e,_0x5185d3);let _0xfd3379=new W()[_0x5914f9(0x2f8)](_0x2ed072,_0x563d42[_0x5914f9(0x2ca)],_0x563d42[_0x5914f9(0x297)],{'conditionalColoring':_0x5185d3['length']?{'rules':_0x5185d3}:null}),_0x297905=new z()['invertOp'](_0x2ed072,_0xfd3379),_0x10e298={'unitId':_0x563d42['unitId'],'op':_0xfd3379},_0x28c05b={'unitId':_0x563d42[_0x5914f9(0x2b9)],'op':_0x297905};return _0x209278[_0x5914f9(0x113)](_0x4c2cb1)[_0x5914f9(0x328)](Q['id'],_0x10e298)?(_0x38e0aa[_0x5914f9(0x428)](_0x563d42['unitId']),_0x209278[_0x5914f9(0x113)](_0xb7e499)['pushUndoRedo']({'unitID':_0x563d42[_0x5914f9(0x2b9)],'undoMutations':[{'id':Q['id'],'params':_0x28c05b}],'redoMutations':[{'id':Q['id'],'params':_0x10e298}]}),!0x0):!0x1;}};function jo(_0x884786,_0x3fefcb){const _0x5677b5=_0x413924;switch(_0x3fefcb['type']){case _0x5677b5(0x404):return _0x285054[_0x5677b5(0x1b7)](_0x3fefcb[_0x5677b5(0x2d5)]);case'add':return[..._0x285054['deepClone'](_0x884786),_0x285054[_0x5677b5(0x1b7)](_0x3fefcb[_0x5677b5(0x17e)])];case _0x5677b5(0x4a1):{let _0x8b4dcd=_0x884786[_0x5677b5(0x457)](_0x21fa04=>_0x21fa04['id']!==_0x3fefcb[_0x5677b5(0x367)]);return _0x8b4dcd['length']===_0x884786['length']?null:_0x285054['deepClone'](_0x8b4dcd);}case _0x5677b5(0x214):return _0x884786['length']?[]:null;}}function Mo(_0x4ca719,_0x4524c7){const _0x3064d6=_0x413924;if(!Array[_0x3064d6(0x348)](_0x4524c7))throw TypeError(_0x3064d6(0x3bd));let _0x236e1f=new Set();for(let [_0xadb113,_0x42f399]of _0x4524c7[_0x3064d6(0x391)]())Po(_0x4ca719,_0x42f399,No(_0x42f399,_0xadb113,_0x236e1f));}function No(_0x2e7629,_0x31516e,_0x28b32a){const _0x1a9abd=_0x413924;if(!_0x2e7629||typeof _0x2e7629!=_0x1a9abd(0x441))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20'+_0x31516e+_0x1a9abd(0x45b));let _0x25a7c9=typeof _0x2e7629['id']==_0x1a9abd(0x3f0)&&_0x2e7629['id'][_0x1a9abd(0x401)]()?'\x22'+_0x2e7629['id']+'\x22':_0x1a9abd(0x179)+_0x31516e;if(typeof _0x2e7629['id']!=_0x1a9abd(0x3f0)||!_0x2e7629['id']['trim']())throw Error(_0x1a9abd(0x156)+_0x25a7c9+_0x1a9abd(0x46c));if(_0x28b32a['has'](_0x2e7629['id']))throw Error(_0x1a9abd(0x165)+_0x2e7629['id']+'\x22.');_0x28b32a[_0x1a9abd(0x4c2)](_0x2e7629['id']);let _0x5cd525=typeof _0x2e7629['color']==_0x1a9abd(0x3f0)&&_0x2e7629[_0x1a9abd(0x388)]['trim']()?new _0x7ed26d(_0x2e7629[_0x1a9abd(0x388)]):null;if(!(_0x5cd525!=null&&_0x5cd525[_0x1a9abd(0x132)]))throw Error(_0x1a9abd(0x156)+_0x25a7c9+_0x1a9abd(0x237));return _0x25a7c9;}function Po(_0x5809b5,_0x1a0e0d,_0x1e642f){const _0x1bb0b6=_0x413924;let _0x411591=new Set(Object[_0x1bb0b6(0x4ae)](_0x291ae8)),_0x4f0c21=new Set(Object[_0x1bb0b6(0x4ae)](_0x44d66f)),_0x2225f1=new Set(Object[_0x1bb0b6(0x4ae)](_0xd47639));if(!_0x411591[_0x1bb0b6(0x3cf)](_0x1a0e0d[_0x1bb0b6(0x3d4)]))throw Error(_0x1bb0b6(0x156)+_0x1e642f+_0x1bb0b6(0x3f4)+String(_0x1a0e0d[_0x1bb0b6(0x3d4)])+'\x22.');let _0x561ab1=typeof _0x1a0e0d[_0x1bb0b6(0x1c3)]==_0x1bb0b6(0x3f0)?_0x5809b5[_0x1bb0b6(0x175)][_0x1a0e0d['fieldId']]:void 0x0;if(!_0x561ab1||_0x561ab1[_0x1bb0b6(0x22f)]===!0x0||_0x561ab1['type']===_0x39ba8f[_0x1bb0b6(0x216)])throw Error(_0x1bb0b6(0x156)+_0x1e642f+_0x1bb0b6(0x3b6)+String(_0x1a0e0d[_0x1bb0b6(0x1c3)])+'\x22.');if(!_0x4f0c21['has'](_0x1a0e0d[_0x1bb0b6(0x129)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1e642f+_0x1bb0b6(0x269)+String(_0x1a0e0d[_0x1bb0b6(0x129)])+'\x22.');if(_0x1a0e0d[_0x1bb0b6(0x308)]!==void 0x0&&!_0x2225f1[_0x1bb0b6(0x3cf)](_0x1a0e0d[_0x1bb0b6(0x308)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1e642f+_0x1bb0b6(0x410)+String(_0x1a0e0d[_0x1bb0b6(0x308)])+'\x22.');if(_0x1a0e0d['target']===_0x291ae8[_0x1bb0b6(0x376)])return;let _0x208f1d=vn(_0x561ab1[_0x1bb0b6(0x378)]);if(!_0x208f1d[_0x1bb0b6(0x35f)](_0x1a0e0d[_0x1bb0b6(0x129)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1e642f+_0x1bb0b6(0x459)+_0x1a0e0d[_0x1bb0b6(0x129)]+_0x1bb0b6(0x349)+_0x561ab1[_0x1bb0b6(0x378)]+_0x1bb0b6(0x242)+_0x208f1d[_0x1bb0b6(0x4bd)](',\x20')+'.');if(_0x1a0e0d[_0x1bb0b6(0x308)]!==void 0x0&&!yn(_0x561ab1[_0x1bb0b6(0x378)]))throw Error(_0x1bb0b6(0x156)+_0x1e642f+_0x1bb0b6(0x2d1));}const Fo={'id':'base.command.update-base-view-config','type':_0x3abf95[_0x413924(0x4ab)],'handler':(_0x2ac0b5,_0x4769d3)=>{const _0x59858a=_0x413924;if(!_0x4769d3)return!0x1;let _0x46caf5=_0x2ac0b5[_0x59858a(0x113)](_0x4de172),{unitId:_0x366174,tableId:_0x1638b5,viewId:_0x3a7425,patch:_0x38ee1c}=_0x4769d3,_0xc2e60e=_0x46caf5[_0x59858a(0x365)](_0x366174,_0x1a4689[_0x59858a(0x413)]);if(!_0xc2e60e||!$(_0xc2e60e,_0x1638b5,{'viewIds':[_0x3a7425]}))return!0x1;let _0x188477=_0x2ac0b5[_0x59858a(0x113)](_0x4c2cb1),_0x51824c=_0x2ac0b5[_0x59858a(0x113)](_0xb7e499),_0x33172c=_0xc2e60e[_0x59858a(0x460)](),_0x4646d5=new W()[_0x59858a(0x2f8)](_0x33172c,_0x1638b5,_0x3a7425,_0x38ee1c),_0xc77f05=new z()['invertOp'](_0x33172c,_0x4646d5),_0x550ee0={'unitId':_0x366174,'op':_0x4646d5},_0x4a3e1d={'unitId':_0x366174,'op':_0xc77f05};return _0x188477[_0x59858a(0x328)](Q['id'],_0x550ee0)?(_0x46caf5['focusUnit'](_0x366174),_0x51824c[_0x59858a(0x23f)]({'unitID':_0x366174,'undoMutations':[{'id':Q['id'],'params':_0x4a3e1d}],'redoMutations':[{'id':Q['id'],'params':_0x550ee0}]}),!0x0):!0x1;}},Io={'id':_0x413924(0x394),'type':_0x3abf95['COMMAND'],'handler'(_0xe5d9d3,_0xb6db01){const _0x49e680=_0x413924;if(!_0xb6db01)return{'valid':!0x1,'reason':'[BaseFormula]:\x20validation\x20parameters\x20are\x20required.'};let _0x3b51b6=_0xe5d9d3['get'](_0x4de172)[_0x49e680(0x365)](_0xb6db01[_0x49e680(0x2b9)],_0x1a4689['UNIVER_BASE']),_0x371c9e=_0x3b51b6==null?void 0x0:_0x3b51b6['getSnapshot'](),_0x3dea55=_0x371c9e==null?void 0x0:_0x371c9e[_0x49e680(0x28d)][_0xb6db01[_0x49e680(0x2ca)]];return!_0x371c9e||!_0x3dea55?{'valid':!0x1,'reason':_0x49e680(0x25f)}:new Xi()[_0x49e680(0x294)](_0xb6db01[_0x49e680(0x49b)],_0x3dea55,{'snapshot':_0x371c9e});}};let Lo=class extends _0x329c66{constructor(_0x1e5ea7){const _0x2273bb=_0x413924;super(_0x1e5ea7,_0x2273bb(0x1a5),_0x1a4689[_0x2273bb(0x413)],[_0x518f29[_0x2273bb(0x218)],_0x518f29[_0x2273bb(0x21c)],_0x518f29[_0x2273bb(0x171)],_0x518f29[_0x2273bb(0x435)],_0x518f29['BaseDashboard']]);}};Lo=X([Y(0x0,_0x2b2f47)],Lo);const Ro={'id':_0x413924(0x167),'type':_0x3abf95[_0x413924(0x4cc)],'handler':(_0x11b321,_0x5308a0)=>!_0x5308a0||!_0x11b321[_0x413924(0x113)](_0x4de172)['getUnit'](_0x5308a0[_0x413924(0x2b9)],_0x1a4689[_0x413924(0x413)])?!0x1:_0x11b321[_0x413924(0x113)](Lo)['setRule'](_0x5308a0[_0x413924(0x2b9)],_0x5308a0[_0x413924(0x480)],_0x5308a0[_0x413924(0x1ac)],_0x5308a0[_0x413924(0x17e)])},zo={'id':'base.mutation.set-permission-rules','type':_0x3abf95[_0x413924(0x4cc)],'handler':(_0x5e0bab,_0x467563)=>!_0x467563||!_0x5e0bab['get'](_0x4de172)[_0x413924(0x365)](_0x467563[_0x413924(0x2b9)],_0x1a4689['UNIVER_BASE'])?!0x1:_0x5e0bab['get'](Lo)[_0x413924(0x38c)](_0x467563[_0x413924(0x2b9)],_0x467563[_0x413924(0x2d5)])};function Bo(_0x53f05b){const _0x34aab6=_0x413924;let _0x3e426e=_0x53f05b['now']??Date[_0x34aab6(0x24d)](),_0xd49e21=_0x53f05b[_0x34aab6(0x426)]??_0x53f05b['id']+_0x34aab6(0x411),_0x1af681=_0x53f05b[_0x34aab6(0x471)]??_0x53f05b['id']+_0x34aab6(0x26e),_0x764331=_0x53f05b[_0x34aab6(0x304)]??0x0,_0x2fb906=_0x1356d2(),_0x3a8dde={'id':_0xd49e21,'name':_0x53f05b[_0x34aab6(0x2ab)]??'Name','type':_0x39ba8f['Text'],'config':{'placeholder':_0x34aab6(0x199)}},_0x2444b5={},_0x50db58=[],_0x344f92={},_0x2cc731={},_0x288054={};for(let _0x4838fb=0x0;_0x4838fb<_0x764331;_0x4838fb++){let _0xee8751=_0x53f05b['id']+_0x34aab6(0x19b)+(_0x4838fb+0x1);_0x2444b5[_0xee8751]={'id':_0xee8751,'values':{[_0x3f46af]:_0xee8751,..._0x53f05b[_0x34aab6(0x46a)]?{[_0xd49e21]:_0x53f05b[_0x34aab6(0x46a)]+'\x20'+(_0x4838fb+0x1)}:{}},'orderKey':String(_0x4838fb+0x1)[_0x34aab6(0x3cb)](0x4,'0'),'createdAt':_0x3e426e,'updatedAt':_0x3e426e},_0x50db58[_0x34aab6(0x34c)](_0xee8751),_0x344f92[_0xee8751]=_0x4838fb,_0x2cc731[_0x4838fb]=_0xee8751,_0x288054[_0x4838fb]={0x0:{'v':_0xee8751,'t':_0x1b3c74[_0x34aab6(0x187)]}},_0x53f05b[_0x34aab6(0x46a)]&&(_0x288054[_0x4838fb][0x1]={'v':_0x53f05b['recordNamePrefix']+'\x20'+(_0x4838fb+0x1),'t':_0x1b3c74[_0x34aab6(0x187)]});}let _0x1d2fa2={'id':_0x1af681,'tableId':_0x53f05b['id'],'name':_0x34aab6(0x3dc),'type':_0xc119d4['Grid'],'fieldOrder':[_0x3f46af,_0xd49e21],'fieldSettings':{[_0x3f46af]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x53f05b['id'],'name':_0x53f05b[_0x34aab6(0x1f9)],'primaryFieldId':_0xd49e21,'fieldOrder':[_0x3f46af,_0xd49e21],'fields':{[_0x3f46af]:_0x2fb906,[_0xd49e21]:_0x3a8dde},'records':_0x2444b5,'recordOrder':_0x50db58,'rowIndex':_0x344f92,'rowId':_0x2cc731,'colIndex':{[_0x3f46af]:0x0,[_0xd49e21]:0x1},'colId':{0x0:_0x3f46af,0x1:_0xd49e21},'cellData':_0x288054,'views':{[_0x1af681]:_0x1d2fa2},'viewOrder':[_0x1af681]};}const Vo=_0x413924(0x46b);function Ho(_0x1e5c8d){const _0x308f48=_0x413924;let _0xd619ee=Bo({'id':_0x1e5c8d[_0x308f48(0x42e)],'name':_0x1e5c8d['name']??_0x1e5c8d['embedId'],'recordCount':0x0});return{..._0xd619ee,'resources':{..._0xd619ee[_0x308f48(0x228)]??{},[Vo]:Go(_0x1e5c8d)}};}function Uo(_0x6a5610){const _0xd7204e=_0x413924;return{'id':Q['id'],'params':{'unitId':_0x6a5610[_0xd7204e(0x2b9)],'op':_0x2c18c4[_0xd7204e(0x378)]['compose'](_0x2c18c4['insertOp']([_0xd7204e(0x28d),_0x6a5610['table']['id']],_0x6a5610[_0xd7204e(0x246)]),_0x2c18c4['insertOp']([_0xd7204e(0x2af),_0x6a5610[_0xd7204e(0x319)]??_0x6a5610[_0xd7204e(0x357)]['tableOrder'][_0xd7204e(0x4be)]],_0x6a5610[_0xd7204e(0x246)]['id'])),'trigger':'embed-ui'}};}function Wo(_0xd49a3c){const _0x27b35e=_0x413924;let _0x2f550f=_0xd49a3c[_0x27b35e(0x357)]['tableOrder'][_0x27b35e(0x3ef)](_0xd49a3c[_0x27b35e(0x2ca)]);if(!(!_0xd49a3c[_0x27b35e(0x357)][_0x27b35e(0x28d)][_0xd49a3c[_0x27b35e(0x2ca)]]||_0x2f550f<0x0))return{'id':Q['id'],'params':{'unitId':_0xd49a3c[_0x27b35e(0x2b9)],'op':_0x2c18c4[_0x27b35e(0x378)][_0x27b35e(0x2ad)](_0x2c18c4[_0x27b35e(0x458)]([_0x27b35e(0x28d),_0xd49a3c[_0x27b35e(0x2ca)]],_0xd49a3c[_0x27b35e(0x357)][_0x27b35e(0x28d)][_0xd49a3c[_0x27b35e(0x2ca)]]),_0x2c18c4[_0x27b35e(0x458)]([_0x27b35e(0x2af),_0x2f550f],_0xd49a3c[_0x27b35e(0x2ca)])),'trigger':_0x27b35e(0x176)}};}function Go(_0x22f618){const _0x364b0f=_0x413924;return{'version':0x1,'embedId':_0x22f618[_0x364b0f(0x4a3)],'hostAnchorId':_0x22f618[_0x364b0f(0x42e)],'childUnitId':_0x22f618['childUnitId'],'childType':_0x22f618['childType']};}function Ko(_0x1b4a41){const _0x529704=_0x413924;let _0x361da2=Math[_0x529704(0x487)](0x0,Number(_0x1b4a41[_0x529704(0x450)]??0x0)),_0x3ab629=_0x1b4a41[_0x529704(0x354)]===!0x1?'0':_0x529704(0x232),_0x2557ba=_0x361da2?'.'+'0'['repeat'](_0x361da2):'',_0x953714=Jo(_0x1b4a41['abbreviation']);return''+(_0x1b4a41['currencySymbol']?Yo(_0x1b4a41['currencySymbol']):'')+_0x3ab629+_0x2557ba+_0x953714;}function qo(_0x515c50,_0xb8bc10){const _0x19589f=_0x413924;let _0xdae8c0=Ko(_0xb8bc10),_0x120517=_0x554273['format'](_0xdae8c0,_0x515c50,{'throws':!0x1});return Xo(String(_0x120517),_0xb8bc10[_0x19589f(0x142)],_0xb8bc10[_0x19589f(0x3bc)]);}function Jo(_0x3fe0b6){const _0x128662=_0x413924;return _0x3fe0b6==='K'?',\x22K\x22':_0x3fe0b6==='M'?_0x128662(0x3f5):_0x3fe0b6==='B'?_0x128662(0x254):'';}function Yo(_0x21b43e){const _0x31060f=_0x413924;return/^[A-Z]+$/i[_0x31060f(0x114)](_0x21b43e)?'\x22'+_0x21b43e+'\x22':_0x21b43e;}function Xo(_0x2fdcf0,_0x329566,_0x3d8298){const _0xb41b5f=_0x413924;let _0x2add75=_0x329566===_0xb41b5f(0x373)?Zo(_0x3d8298):_0x329566;return _0x2add75===_0xb41b5f(0x386)?_0x2fdcf0[_0xb41b5f(0x4c0)](/,/g,'\x00')[_0xb41b5f(0x4c0)](/\./g,',')[_0xb41b5f(0x4c0)](/\0/g,'.'):_0x2add75==='spaceComma'?_0x2fdcf0[_0xb41b5f(0x4c0)](/,/g,'\x20')['replace'](/\./g,','):_0x2add75===_0xb41b5f(0x3b3)?_0x2fdcf0[_0xb41b5f(0x4c0)](/,/g,'\x20'):_0x2fdcf0;}function Zo(_0x3109f2){const _0x572a57=_0x413924;var _0x474c63,_0x332be1;let _0x1c7b06=_0x3109f2||new Intl[(_0x572a57(0x476))]()[_0x572a57(0x417)]()[_0x572a57(0x3bc)],_0x2e40b1;try{_0x2e40b1=new Intl['NumberFormat'](_0x1c7b06,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})['formatToParts'](0xf4240);}catch{return _0x572a57(0x1cc);}let _0x40111d=(_0x474c63=_0x2e40b1[_0x572a57(0x196)](_0x4243e9=>_0x4243e9[_0x572a57(0x378)]===_0x572a57(0x151)))==null?void 0x0:_0x474c63[_0x572a57(0x277)],_0x53bbd7=(_0x332be1=_0x2e40b1[_0x572a57(0x196)](_0x21f6c9=>_0x21f6c9[_0x572a57(0x378)]==='decimal'))==null?void 0x0:_0x332be1[_0x572a57(0x277)],_0xa7e914=_0x40111d==='\u00a0'||_0x40111d==='\u202f'?'\x20':_0x40111d;return _0xa7e914==='.'&&_0x53bbd7===','?_0x572a57(0x386):_0xa7e914==='\x20'&&_0x53bbd7===','?'spaceComma':_0xa7e914==='\x20'&&_0x53bbd7==='.'?_0x572a57(0x3b3):_0x572a57(0x1cc);}function Qo(_0x2aec36,_0x3e6ebb){const _0x1fb6d9=_0x413924;let _0x1afe7c=_0x3e6ebb&&typeof _0x3e6ebb==_0x1fb6d9(0x441)&&!Array[_0x1fb6d9(0x348)](_0x3e6ebb)?_0x3e6ebb:{},_0x5e7585=$o(_0x1afe7c['decimalPlaces'],0x0,0x2,0x0),_0x23f6f=_0x2aec36[_0x1fb6d9(0x169)](_0x5e7585);return _0x1afe7c[_0x1fb6d9(0x368)]===_0x1fb6d9(0x42c)?_0x23f6f:_0x23f6f+'%';}function $o(_0x556795,_0x3c0cd8,_0x4280b7,_0x586e25){const _0x33d353=_0x413924;if(_0x556795==null||_0x556795==='')return _0x586e25;let _0x239938=typeof _0x556795==_0x33d353(0x42c)?_0x556795:Number(_0x556795);return Number['isFinite'](_0x239938)?Math[_0x33d353(0x487)](_0x3c0cd8,Math[_0x33d353(0x256)](_0x4280b7,Math['round'](_0x239938))):_0x586e25;}const es=[_0x413924(0x375),'filled','empty',_0x413924(0x120),'sum','average',_0x413924(0x256),'max'],ts=[_0x413924(0x375),_0x413924(0x1df),_0x413924(0x1e9),_0x413924(0x120)],ns=[_0x413924(0x1f5),_0x413924(0x2b8),_0x413924(0x256),_0x413924(0x487)],rs=[_0x413924(0x256),'max'],is=new Set([_0x39ba8f[_0x413924(0x21b)],_0x39ba8f[_0x413924(0x374)],_0x39ba8f[_0x413924(0x1a0)],_0x39ba8f[_0x413924(0x152)]]),as=new Set([_0x39ba8f['MultiSelect'],_0x39ba8f[_0x413924(0x3e7)],_0x39ba8f[_0x413924(0x14f)]]),os='General';function ss(_0x328e8f){const _0x8d7b91=_0x413924;return typeof _0x328e8f==_0x8d7b91(0x3f0)&&es[_0x8d7b91(0x35f)](_0x328e8f);}function cs(_0x23bd80){const _0x371a62=_0x413924;return!_0x23bd80||typeof _0x23bd80!='object'?{}:Object['fromEntries'](Object['entries'](_0x23bd80)[_0x371a62(0x457)](_0x60d8a9=>ss(_0x60d8a9[0x1])));}function ls(_0x24496d){const _0x2d1895=_0x413924;return is[_0x2d1895(0x3cf)](_0x24496d[_0x2d1895(0x378)])?[...ts,...ns]:_0x24496d[_0x2d1895(0x378)]===_0x39ba8f[_0x2d1895(0x1fa)]?[...ts,...ws(_0x24496d)==='date'?rs:ns]:ts;}function us(_0x5cd051,_0x338af1){const _0x8add3=_0x413924;return ls(_0x5cd051)[_0x8add3(0x35f)](_0x338af1);}function ds(_0x4fe45c,_0x45515c,_0x5f54e7){const _0x3f8235=_0x413924;if(!us(_0x4fe45c,_0x5f54e7))return null;let _0x1fbd5e=_0x45515c[_0x3f8235(0x457)](_0x153fa5=>!ps(_0x4fe45c,_0x153fa5));switch(_0x5f54e7){case _0x3f8235(0x375):return _0x45515c[_0x3f8235(0x4be)];case'filled':return _0x1fbd5e['length'];case _0x3f8235(0x1e9):return _0x45515c[_0x3f8235(0x4be)]-_0x1fbd5e['length'];case _0x3f8235(0x120):return new Set(_0x1fbd5e['map'](_0xf093fa=>_s(_0x4fe45c,_0xf093fa)))['size'];case _0x3f8235(0x1f5):{let _0x4d5c57=ms(_0x4fe45c,_0x1fbd5e);return _0x4d5c57[_0x3f8235(0x4be)]?gs(_0x4d5c57):null;}case'average':{let _0x3bfb74=ms(_0x4fe45c,_0x1fbd5e);return _0x3bfb74[_0x3f8235(0x4be)]?gs(_0x3bfb74)/_0x3bfb74[_0x3f8235(0x4be)]:null;}case _0x3f8235(0x256):{let _0x3b9dca=ms(_0x4fe45c,_0x1fbd5e);return _0x3b9dca[_0x3f8235(0x4be)]?Math[_0x3f8235(0x256)](..._0x3b9dca):null;}case _0x3f8235(0x487):{let _0x4f147e=ms(_0x4fe45c,_0x1fbd5e);return _0x4f147e[_0x3f8235(0x4be)]?Math['max'](..._0x4f147e):null;}}}function fs(_0x545a79,_0xf318e4,_0x375226){const _0x288284=_0x413924;if(_0x375226==null||!Number['isFinite'](_0x375226))return'-';if(ts[_0x288284(0x35f)](_0xf318e4))return String(_0x375226);switch(_0x545a79['type']){case _0x39ba8f['Number']:return qo(_0x375226,xs(_0x545a79));case _0x39ba8f[_0x288284(0x374)]:return qo(_0x375226,Ss(_0x545a79));case _0x39ba8f['Progress']:return Qo(_0x375226,_0x545a79[_0x288284(0x406)]);case _0x39ba8f[_0x288284(0x1fa)]:return Cs(_0x375226,_0x545a79);default:return Es(_0x375226);}}function ps(_0x3bd0d6,_0x3d19b2){const _0xe4978d=_0x413924;if(_0x3d19b2==null)return!0x0;if(typeof _0x3d19b2==_0xe4978d(0x3f0))return _0x3d19b2[_0xe4978d(0x401)]()==='';if(Array[_0xe4978d(0x348)](_0x3d19b2))return _0x3bd0d6[_0xe4978d(0x378)]===_0x39ba8f['Attachment']?!_0x3d19b2['some'](bs):_0x3d19b2[_0xe4978d(0x4be)]===0x0;if(_0x3bd0d6[_0xe4978d(0x378)]===_0x39ba8f[_0xe4978d(0x4b5)]&&typeof _0x3d19b2==_0xe4978d(0x441)){let _0x516523=_0x3d19b2;return[_0x516523[_0xe4978d(0x10d)],_0x516523[_0xe4978d(0x194)]][_0xe4978d(0x23d)](_0x4ae7b6=>_0x4ae7b6==null||String(_0x4ae7b6)['trim']()==='');}return!0x1;}function _0x5866(_0x43d6d1,_0x3ea2f8){_0x43d6d1=_0x43d6d1-0x10c;const _0xc540d8=_0xc540();let _0x58660a=_0xc540d8[_0x43d6d1];return _0x58660a;}function ms(_0x3a5c2b,_0x372695){const _0x5e67d0=_0x413924;let _0x26b609=[];for(let _0x311a6d of _0x372695){let _0x1fd230=hs(_0x3a5c2b,_0x311a6d);_0x1fd230!=null&&_0x26b609[_0x5e67d0(0x34c)](_0x1fd230);}return _0x26b609;}function hs(_0x211894,_0x46b01a){const _0x1b7779=_0x413924;if(typeof _0x46b01a==_0x1b7779(0x42c))return Number[_0x1b7779(0x479)](_0x46b01a)?_0x46b01a:null;if(_0x211894[_0x1b7779(0x378)]!==_0x39ba8f['Formula']&&typeof _0x46b01a==_0x1b7779(0x3f0)&&_0x46b01a[_0x1b7779(0x401)]()!==''){let _0x57edb9=Number(_0x46b01a);return Number[_0x1b7779(0x479)](_0x57edb9)?_0x57edb9:null;}return null;}function gs(_0x8bb0d){const _0x11e0f4=_0x413924;let _0x105a5f=0x0,_0x173857=0x0;for(let _0x53f2ed of _0x8bb0d){let _0x25375f=_0x105a5f+_0x53f2ed;_0x173857+=Math[_0x11e0f4(0x205)](_0x105a5f)>=Math[_0x11e0f4(0x205)](_0x53f2ed)?_0x105a5f-_0x25375f+_0x53f2ed:_0x53f2ed-_0x25375f+_0x105a5f,_0x105a5f=_0x25375f;}return _0x105a5f+_0x173857;}function _s(_0x422b73,_0x4088ea){const _0x5e064a=_0x413924;return as[_0x5e064a(0x3cf)](_0x422b73[_0x5e064a(0x378)])&&Array[_0x5e064a(0x348)](_0x4088ea)?ys([...new Set(_0x4088ea[_0x5e064a(0x438)](_0xf3258=>ys(vs(_0xf3258))))][_0x5e064a(0x116)]()):ys(vs(_0x4088ea));}function vs(_0x45b12c){const _0x19d82a=_0x413924;return Array[_0x19d82a(0x348)](_0x45b12c)?_0x45b12c['map'](vs):_0x45b12c&&typeof _0x45b12c==_0x19d82a(0x441)?Object[_0x19d82a(0x300)](Object[_0x19d82a(0x391)](_0x45b12c)['sort'](([_0x160550],[_0x447c0e])=>_0x160550[_0x19d82a(0x4ce)](_0x447c0e))['map'](([_0x1bb010,_0x10db12])=>[_0x1bb010,vs(_0x10db12)])):_0x45b12c;}function ys(_0x255ca2){const _0x240be8=_0x413924;return JSON['stringify'](_0x255ca2)??_0x240be8(0x30b);}function bs(_0x2e7570){const _0x4236cc=_0x413924;if(typeof _0x2e7570==_0x4236cc(0x3f0))return _0x2e7570['trim']()!=='';if(!_0x2e7570||typeof _0x2e7570!=_0x4236cc(0x441))return!0x1;let _0xe96ec9=_0x2e7570;return[_0xe96ec9['id'],_0xe96ec9['name'],_0xe96ec9['source'],_0xe96ec9[_0x4236cc(0x194)],_0xe96ec9['thumbnail']][_0x4236cc(0x2e3)](_0xbdb30a=>_0xbdb30a!=null&&String(_0xbdb30a)[_0x4236cc(0x401)]()!=='');}function xs(_0x1a3641){const _0x27dc62=_0x413924;let _0x41a41d=Ds(_0x1a3641[_0x27dc62(0x406)]);return{'decimalPlaces':ks(_0x41a41d[_0x27dc62(0x450)],0x0,0x14,0x2),'separatorStyle':typeof _0x41a41d[_0x27dc62(0x142)]=='string'?_0x41a41d[_0x27dc62(0x142)]:_0x27dc62(0x373),'locale':typeof _0x41a41d[_0x27dc62(0x3bc)]==_0x27dc62(0x3f0)?_0x41a41d[_0x27dc62(0x3bc)]:void 0x0,'useThousands':_0x41a41d[_0x27dc62(0x354)]!==!0x1,'abbreviation':typeof _0x41a41d[_0x27dc62(0x344)]=='string'?_0x41a41d[_0x27dc62(0x344)]:_0x27dc62(0x48b)};}function Ss(_0x50acb2){const _0x34b2e4=_0x413924;let _0x1636f0=Ds(_0x50acb2[_0x34b2e4(0x406)]);return{...xs(_0x50acb2),'currencySymbol':String(_0x1636f0['currencySymbol']??'$')};}function Cs(_0x101059,_0xf43c73){const _0x555e3e=_0x413924;let _0x43f38f=Ts(_0xf43c73);if(_0x43f38f===os)return Es(_0x101059);try{return String(_0x554273[_0x555e3e(0x368)](_0x43f38f,_0x101059,{'throws':!0x1}));}catch{return Es(_0x101059);}}function ws(_0x901309){const _0x50a584=_0x413924;let _0xf88040=Ds(Ds(_0x901309[_0x50a584(0x406)])[_0x50a584(0x208)]);return typeof _0xf88040[_0x50a584(0x378)]==_0x50a584(0x3f0)?_0xf88040[_0x50a584(0x378)]:'general';}function Ts(_0x1baec2){const _0x3d00b3=_0x413924;let _0x3e05c1=Ds(Ds(_0x1baec2['config'])['numfmt']);return String(_0x3e05c1[_0x3d00b3(0x34d)]??os)[_0x3d00b3(0x401)]()||os;}function Es(_0x33fc19){const _0x262bb5=_0x413924;return String(Number[_0x262bb5(0x32b)](_0x33fc19)?_0x33fc19:Math[_0x262bb5(0x2bd)]((_0x33fc19+0x2**-0x34)*0x64)/0x64);}function Ds(_0x24d603){const _0x18cc32=_0x413924;return _0x24d603&&typeof _0x24d603==_0x18cc32(0x441)&&!Array['isArray'](_0x24d603)?_0x24d603:{};}function Os(_0x478c90){if(_0x478c90==null||_0x478c90==='')return null;let _0xeb6085=typeof _0x478c90=='number'?_0x478c90:Number(_0x478c90);return Number['isFinite'](_0xeb6085)?_0xeb6085:null;}function ks(_0x57a99e,_0x56edc2,_0x188605,_0x2483b6){const _0x481ffc=_0x413924;let _0x381916=Os(_0x57a99e);return _0x381916==null?_0x2483b6:Math[_0x481ffc(0x487)](_0x56edc2,Math[_0x481ffc(0x256)](_0x188605,Math[_0x481ffc(0x2bd)](_0x381916)));}function As(_0x64cd7d,_0x502afa){const _0x42f804=_0x413924;let _0xf343ee=_0x285054['deepClone'](_0x64cd7d),_0x2b40e8=_0x502afa[_0x42f804(0x2d2)]===!0x0,_0x23fa2e=new Map(),_0x2afd02=_0x502afa[_0x42f804(0x1bb)]??(()=>_0x42f804(0x209)+_0x186b5a(0x8)),_0x1ee28c=_0xf343ee[_0x42f804(0x1f0)];return _0x502afa[_0x42f804(0x325)]&&(_0x1ee28c=_0xf343ee[_0x42f804(0x1f0)][_0x42f804(0x438)](_0x5478b7=>{const _0x5075e3=_0x42f804;let _0x2bcdfb=_0x2afd02();return _0x23fa2e[_0x5075e3(0x404)](_0x5478b7,_0x2bcdfb),_0x2bcdfb;})),{..._0xf343ee,'id':_0x502afa['id'],'name':_0x502afa[_0x42f804(0x1f9)],'records':_0x2b40e8?_0xf343ee['records']:{},'recordOrder':_0x2b40e8?_0xf343ee[_0x42f804(0x1c6)]:[],'rowIndex':_0x2b40e8?_0xf343ee[_0x42f804(0x12b)]:{},'rowId':_0x2b40e8?_0xf343ee[_0x42f804(0x3ce)]:{},'cellData':_0x2b40e8?_0xf343ee[_0x42f804(0x260)]:{},'resources':_0x2b40e8?_0xf343ee[_0x42f804(0x228)]:{},'viewOrder':_0x1ee28c,'views':Object['fromEntries'](Object[_0x42f804(0x391)](_0xf343ee[_0x42f804(0x379)]??{})[_0x42f804(0x438)](([_0x46fbf6,_0xae7903])=>{const _0x4cae88=_0x42f804;let _0x4b56d2=_0x23fa2e['get'](_0x46fbf6)??(_0x502afa[_0x4cae88(0x325)]?_0x2afd02():_0x46fbf6);return[_0x4b56d2,{..._0xae7903,'id':_0x4b56d2,'tableId':_0x502afa['id']}];}))};}var js=_0x413924(0x41d),Ms='1.0.4';const Ns={},Ps={};function Fs(_0x347023){const _0x36cb15=_0x413924;return new z()[_0x36cb15(0x3a3)](_0x347023);}function Is(_0x4a1f4b){const _0x178f92=_0x413924;return _0x4a1f4b['patches'][_0x178f92(0x438)](_0x19516e=>({'unitId':_0x4a1f4b[_0x178f92(0x2b9)],'sheetId':_0x4a1f4b['tableId'],'range':{'startRow':_0x19516e[_0x178f92(0x47c)],'endRow':_0x19516e[_0x178f92(0x47c)],'startColumn':_0x19516e[_0x178f92(0x44d)],'endColumn':_0x19516e[_0x178f92(0x44d)]}}));}function Ls(_0x8d90db,_0x12de62){const _0x4af509=_0x413924;return{[_0x8d90db]:Object[_0x4af509(0x300)](_0x12de62[_0x4af509(0x438)](_0x1b3cfe=>[_0x1b3cfe,'1']))};}let Rs=class extends _0x51b493{constructor(_0x226a76,_0x236a07){const _0x23a7f5=_0x413924;super(),this[_0x23a7f5(0x1b5)]=_0x226a76,this[_0x23a7f5(0x111)]=_0x236a07,this['_initialize']();}[_0x413924(0x16f)](){const _0x12b566=_0x413924;this[_0x12b566(0x1b5)][_0x12b566(0x331)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x82bf41=>this[_0x12b566(0x486)](_0x82bf41[_0x12b566(0x1d3)])}),this['disposeWithMe'](_0x500368(()=>{const _0x4b24d5=_0x12b566;this['_activeDirtyManagerService'][_0x4b24d5(0x44a)](Q['id']);}));}['_getTable'](_0x4b898a,_0x197ad2){const _0x4075a5=_0x413924;let _0x4c6417=this[_0x4075a5(0x111)][_0x4075a5(0x365)](_0x4b898a,_0x1a4689[_0x4075a5(0x413)]);return(_0x4c6417==null?void 0x0:_0x4c6417['getSnapshot']()[_0x4075a5(0x28d)][_0x197ad2])??null;}['_getJson1DirtyData'](_0x5aec35){const _0x359b48=_0x413924;if(_0x5aec35[_0x359b48(0x3d6)]==='formula.mutation.set-formula-calculation-result')return{};if(!_0x5aec35[_0x359b48(0x2b9)]||!_0x5aec35['op'])return{'clearDependencyTreeCache':this[_0x359b48(0x448)](),'forceCalculation':!0x0};let _0x302dd1=Fs(_0x5aec35['op']),_0x214649=this[_0x359b48(0x307)](_0x5aec35[_0x359b48(0x2b9)],_0x302dd1);if(_0x214649[_0x359b48(0x4be)])return{'clearDependencyTreeCache':Ls(_0x5aec35[_0x359b48(0x2b9)],_0x214649),'forceCalculation':!0x0};let _0x4ccb5e=Object[_0x359b48(0x391)](this['_groupCellInvalidations'](_0x5aec35[_0x359b48(0x2b9)],_0x302dd1))[_0x359b48(0x4ac)](([_0x508177,_0x23fde6])=>Is({'unitId':_0x5aec35[_0x359b48(0x2b9)],'tableId':_0x508177,'patches':_0x23fde6}));return _0x4ccb5e[_0x359b48(0x4be)]?{'dirtyRanges':_0x4ccb5e}:{};}[_0x413924(0x307)](_0x5a748e,_0x23493d){const _0xb84985=_0x413924;let _0x3026ee=_0x23493d[_0xb84985(0x457)](_0x5c5ec9=>_0x5c5ec9['reason']!==_0xb84985(0x3c4))['flatMap'](_0x2692eb=>_0x2692eb[_0xb84985(0x2ca)]?[_0x2692eb[_0xb84985(0x2ca)]]:this[_0xb84985(0x2e1)](_0x5a748e));return Array[_0xb84985(0x2f6)](new Set(_0x3026ee));}[_0x413924(0x136)](_0xb50e8,_0x165c7a){const _0x464a94=_0x413924;let _0x5e79f4=new Set();return _0x165c7a[_0x464a94(0x364)]((_0x10375a,_0xe91249)=>{const _0x12a5ba=_0x464a94;let _0xf60ad6=this['_toDirtyRangePatch'](_0xb50e8,_0xe91249);if(!_0xf60ad6)return _0x10375a;let _0xfe1d69=_0xe91249[_0x12a5ba(0x2ca)]+':'+_0xf60ad6[_0x12a5ba(0x47c)]+':'+_0xf60ad6[_0x12a5ba(0x44d)];return _0x5e79f4[_0x12a5ba(0x3cf)](_0xfe1d69)?_0x10375a:(_0x5e79f4[_0x12a5ba(0x4c2)](_0xfe1d69),_0x10375a[_0xe91249[_0x12a5ba(0x2ca)]]=_0x10375a[_0xe91249[_0x12a5ba(0x2ca)]]??[],_0x10375a[_0xe91249[_0x12a5ba(0x2ca)]][_0x12a5ba(0x34c)](_0xf60ad6),_0x10375a);},{});}[_0x413924(0x42f)](_0xf524fd,_0x1e5bf5){const _0x89bbf7=_0x413924;if(_0x1e5bf5['reason']!==_0x89bbf7(0x3c4))return null;if(_0x1e5bf5[_0x89bbf7(0x47c)]!=null&&_0x1e5bf5[_0x89bbf7(0x298)]!=null)return{'row':_0x1e5bf5['row'],'col':_0x1e5bf5[_0x89bbf7(0x298)],'value':null};if(!_0x1e5bf5[_0x89bbf7(0x170)]||!_0x1e5bf5[_0x89bbf7(0x1c3)])return null;let _0x12f538=this[_0x89bbf7(0x19a)](_0xf524fd,_0x1e5bf5[_0x89bbf7(0x2ca)]);if(!_0x12f538)return null;let _0x340bd7=_t(_0x12f538,_0x1e5bf5['recordId'],_0x1e5bf5[_0x89bbf7(0x1c3)]);return _0x340bd7?{'row':_0x340bd7[_0x89bbf7(0x47c)],'col':_0x340bd7[_0x89bbf7(0x44d)],'value':null}:null;}['_getAllTableIds'](_0x11fc08){const _0x174dbf=_0x413924;let _0x1c64ce=this[_0x174dbf(0x111)]['getUnit'](_0x11fc08,_0x1a4689[_0x174dbf(0x413)]);return Object[_0x174dbf(0x4ae)]((_0x1c64ce==null?void 0x0:_0x1c64ce[_0x174dbf(0x460)]()[_0x174dbf(0x28d)])??{})['map'](_0x57c51c=>_0x57c51c['id']);}[_0x413924(0x448)](){const _0x51f858=_0x413924;let _0x2adf82=this['_univerInstanceService']['getAllUnitsForType'](_0x1a4689['UNIVER_BASE'])[_0x51f858(0x438)](_0x6e2f9c=>Ls(_0x6e2f9c[_0x51f858(0x27e)](),Object[_0x51f858(0x3a2)](_0x6e2f9c[_0x51f858(0x460)]()['tables'])));return Object['assign']({},..._0x2adf82);}};Rs=X([Y(0x0,_0x42d5f5),Y(0x1,_0x4de172)],Rs);let zs=class extends _0x51b493{constructor(_0x5c9efa,_0x4af9f7,_0x11d5cb,_0xf6e2dd){const _0x40ed74=_0x413924;super(),this[_0x40ed74(0x4d4)]=_0x5c9efa,this[_0x40ed74(0x111)]=_0x4af9f7,this[_0x40ed74(0x18b)]=_0x11d5cb,this[_0x40ed74(0x4ad)]=_0xf6e2dd,G(this,'_formulaService',new Xi()),G(this,_0x40ed74(0x201),new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,'_formulaSyncQueue',Promise[_0x40ed74(0x154)]()),G(this,_0x40ed74(0x32d),!0x1),this[_0x40ed74(0x16f)]();}['_initialize'](){const _0xac4bc5=_0x413924;this[_0xac4bc5(0x111)][_0xac4bc5(0x3ff)](_0x1a4689['UNIVER_BASE'])[_0xac4bc5(0x248)](_0x21a0f5=>{const _0x176bf1=_0xac4bc5;this[_0x176bf1(0x491)](_0x21a0f5);}),this[_0xac4bc5(0x1f4)](this[_0xac4bc5(0x111)][_0xac4bc5(0x223)](_0x1a4689[_0xac4bc5(0x413)])['subscribe'](({unit:_0x4bf228})=>{const _0x349f14=_0xac4bc5;this[_0x349f14(0x491)](_0x4bf228);})),this['disposeWithMe'](this['_univerInstanceService'][_0xac4bc5(0x1d7)](_0x1a4689[_0xac4bc5(0x413)])[_0xac4bc5(0x26d)](_0x1c3155=>{const _0x8a9618=_0xac4bc5;this[_0x8a9618(0x4bc)](()=>this[_0x8a9618(0x13a)](_0x1c3155['getUnitId']()));})),this[_0xac4bc5(0x1f4)](this['_commandService'][_0xac4bc5(0x250)](_0x4a9cfa=>this['_onCommandExecuted'](_0x4a9cfa)));}[_0x413924(0x23c)](_0x14aa23){const _0x9090b5=_0x413924;if(_0x14aa23['id']===_0x1c46d3['id']){Vs(_0x14aa23['params'])&&this[_0x9090b5(0x1fb)](_0x14aa23[_0x9090b5(0x1d3)]);return;}if(this['_applyingFormulaResults']||_0x14aa23['id']!==Q['id'])return;let _0x36144c=Bs(_0x14aa23['params'])?_0x14aa23[_0x9090b5(0x1d3)]:void 0x0,_0x3a78ed=_0x36144c!=null&&_0x36144c[_0x9090b5(0x2b9)]?[this[_0x9090b5(0x111)][_0x9090b5(0x365)](_0x36144c[_0x9090b5(0x2b9)],_0x1a4689[_0x9090b5(0x413)])]['filter'](_0x2278f3=>!!_0x2278f3):this[_0x9090b5(0x111)][_0x9090b5(0x3ff)](_0x1a4689['UNIVER_BASE']),_0x3d2ad3=_0x36144c==null?void 0x0:_0x36144c['op'];_0x3a78ed[_0x9090b5(0x248)](_0x1b105b=>{const _0x2e4a3c=_0x9090b5;let _0x5747dd=_0x3d2ad3?Fs(_0x3d2ad3):[];(!_0x3d2ad3||_0x5747dd[_0x2e4a3c(0x2e3)](_0x1cef37=>_0x1cef37['reason']!==_0x2e4a3c(0x3c4)))&&this[_0x2e4a3c(0x491)](_0x1b105b);});}[_0x413924(0x491)](_0x2d92e0){const _0x2bce0c=_0x413924;let _0x2532f0=_0x2d92e0['getUnitId']();this[_0x2bce0c(0x393)][_0x2bce0c(0x3cf)](_0x2532f0)||(this[_0x2bce0c(0x393)][_0x2bce0c(0x4c2)](_0x2532f0),this[_0x2bce0c(0x4bc)](async()=>{const _0x5c4873=_0x2bce0c;this['_scheduledSuperTableSyncs']['delete'](_0x2532f0),await this[_0x5c4873(0x2fd)](_0x2d92e0);}));}async[_0x413924(0x2fd)](_0x433923){const _0x5dc3bd=_0x413924;let _0x31d541=_0x433923['getUnitId'](),_0x3eb50c=this['_formulaService'][_0x5dc3bd(0x158)](_0x433923[_0x5dc3bd(0x460)]()),_0x36d1e7=new Set(_0x3eb50c['map'](({tableName:_0x3f18bd})=>_0x3f18bd)),_0x2e3001=this['_registeredSuperTableNames'][_0x5dc3bd(0x113)](_0x31d541)??new Set();for(let _0x139dee of _0x2e3001)if(!_0x36d1e7[_0x5dc3bd(0x3cf)](_0x139dee)&&!await this[_0x5dc3bd(0x49d)](_0x188f2e['id'],{'unitId':_0x31d541,'tableName':_0x139dee}))return;for(let {tableName:_0x44f627,reference:_0x501d10}of _0x3eb50c)if(!await this[_0x5dc3bd(0x49d)](_0x5007fb['id'],{'unitId':_0x31d541,'tableName':_0x44f627,'reference':_0x501d10}))return;this[_0x5dc3bd(0x201)][_0x5dc3bd(0x404)](_0x31d541,_0x36d1e7);}async[_0x413924(0x13a)](_0x776753){const _0x516c59=_0x413924;let _0x2f6cf0=this[_0x516c59(0x201)][_0x516c59(0x113)](_0x776753)??new Set();for(let _0x8d655 of _0x2f6cf0)if(!await this[_0x516c59(0x49d)](_0x188f2e['id'],{'unitId':_0x776753,'tableName':_0x8d655}))return;this[_0x516c59(0x201)][_0x516c59(0x4a1)](_0x776753);}async[_0x413924(0x49d)](_0x4a8f5f,_0x166e3d){const _0x5781c5=_0x413924;return!this[_0x5781c5(0x3e1)]&&await this[_0x5781c5(0x4d4)][_0x5781c5(0x384)](_0x4a8f5f,_0x166e3d,{'onlyLocal':!0x0})&&!this['_disposed'];}[_0x413924(0x4bc)](_0x58ee6c){const _0xd8a67c=_0x413924;this[_0xd8a67c(0x47a)]=this['_formulaSyncQueue'][_0xd8a67c(0x1e3)](_0x58ee6c,_0x58ee6c)[_0xd8a67c(0x1bc)](()=>void 0x0);}['_applyFormulaResult'](_0x502b40){const _0x571712=_0x413924;let _0x125196=this[_0x571712(0x111)][_0x571712(0x3ff)](_0x1a4689[_0x571712(0x413)]);if(!_0x125196[_0x571712(0x2e3)](_0x21f9be=>{const _0x3cd121=_0x571712;var _0x433120;return((_0x433120=_0x502b40[_0x3cd121(0x1d4)])==null?void 0x0:_0x433120[_0x21f9be[_0x3cd121(0x27e)]()])!=null;}))return;let _0x4e2e82=_0x125196[_0x571712(0x4ac)](_0x2b05d2=>Zi(_0x2b05d2[_0x571712(0x460)](),_0x502b40));if(!_0x4e2e82[_0x571712(0x4be)]){this['_formulaCalculationSessionService'][_0x571712(0x3fa)](_0xeea7e2[_0x571712(0x40e)],_0x502b40);return;}let _0x4a6434=new W(),_0x5ee349=_0x4e2e82[_0x571712(0x4ac)](_0x51b223=>Is({'unitId':_0x51b223[_0x571712(0x2b9)],'tableId':_0x51b223['tableId'],'patches':_0x51b223[_0x571712(0x159)]}));this[_0x571712(0x32d)]=!0x0,(async()=>{const _0x1603cd=_0x571712;for(let _0x448fcd of _0x4e2e82){let _0x3159e0=this[_0x1603cd(0x111)][_0x1603cd(0x365)](_0x448fcd[_0x1603cd(0x2b9)],_0x1a4689[_0x1603cd(0x413)]);_0x3159e0&&await this[_0x1603cd(0x4d4)][_0x1603cd(0x384)](Q['id'],{'unitId':_0x448fcd[_0x1603cd(0x2b9)],'op':_0x4a6434[_0x1603cd(0x153)](_0x3159e0[_0x1603cd(0x460)](),_0x448fcd[_0x1603cd(0x2ca)],_0x448fcd[_0x1603cd(0x159)]),'trigger':_0x1c46d3['id']},{'onlyLocal':!0x0});}await this[_0x1603cd(0x4d4)][_0x1603cd(0x384)](_0x390bf3['id'],{'dirtyRanges':_0x5ee349},{'onlyLocal':!0x0});})()[_0x571712(0x412)](()=>{const _0x1d72aa=_0x571712;this['_applyingFormulaResults']=!0x1,this[_0x1d72aa(0x4ad)]['markResultApplied'](_0xeea7e2[_0x1d72aa(0x40e)],_0x502b40);});}};zs=X([Y(0x0,_0x4c2cb1),Y(0x1,_0x4de172),Y(0x2,_0x4ceb1c(_0x397aea)),Y(0x3,_0x4ceb1c(_0x45f83b))],zs);function Bs(_0x57aecc){const _0x1e8629=_0x413924;return typeof _0x57aecc==_0x1e8629(0x441)&&!!_0x57aecc&&_0x1e8629(0x2b9)in _0x57aecc&&typeof _0x57aecc[_0x1e8629(0x2b9)]==_0x1e8629(0x3f0)&&'op'in _0x57aecc&&Array[_0x1e8629(0x348)](_0x57aecc['op']);}function Vs(_0x10e8d0){const _0x532c27=_0x413924;return typeof _0x10e8d0==_0x532c27(0x441)&&!!_0x10e8d0&&_0x532c27(0x1d4)in _0x10e8d0&&'unitOtherData'in _0x10e8d0;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x51b493{constructor(_0x5385a5,_0x56c555,_0x29d37b,_0x229100){const _0x20d31f=_0x413924;super(),this[_0x20d31f(0x452)]=_0x5385a5,this[_0x20d31f(0x4d4)]=_0x56c555,this[_0x20d31f(0x444)]=_0x29d37b,this['_instanceService']=_0x229100,this['_instanceService'][_0x20d31f(0x3ff)](_0x1a4689['UNIVER_BASE'])['forEach'](_0x3f54ac=>this[_0x20d31f(0x1eb)](_0x3f54ac[_0x20d31f(0x27e)]())),this[_0x20d31f(0x1f4)](this[_0x20d31f(0x398)]['getTypeOfUnitAdded$'](_0x1a4689[_0x20d31f(0x413)])['subscribe'](({unit:_0x38f5a8})=>this[_0x20d31f(0x1eb)](_0x38f5a8[_0x20d31f(0x27e)]()))),this[_0x20d31f(0x1f4)](this[_0x20d31f(0x4d4)][_0x20d31f(0x4b2)]((_0x542489,_0x45bf9d)=>this[_0x20d31f(0x220)](_0x542489,_0x45bf9d))),this['disposeWithMe'](this['_instanceService'][_0x20d31f(0x1d7)](_0x1a4689[_0x20d31f(0x413)])['subscribe'](_0x4f99e7=>{const _0x4537b6=_0x20d31f;this['_injector'][_0x4537b6(0x113)](_0x18e9f8)[_0x4537b6(0x285)](_0x4f99e7['getUnitId']()),Rr(this[_0x4537b6(0x444)],_0x4f99e7[_0x4537b6(0x27e)]());}));}['_registerUnitPermissionPoints'](_0x41ef15){const _0x1aedbe=_0x413924;Tr['forEach'](_0x2a1917=>{const _0x3601f0=_0x5866;let _0x184e4b=Pr(_0x41ef15,_0x41ef15,_0x2a1917);this['_permissionService']['getPermissionPoint'](_0x184e4b['id'])||this['_permissionService'][_0x3601f0(0x3e3)](_0x184e4b);}),this[_0x1aedbe(0x452)][_0x1aedbe(0x113)](_0x18e9f8)[_0x1aedbe(0x3f9)]({'unitId':_0x41ef15,'objectId':_0x41ef15,'objectType':_0x518f29['Base']});}['_check'](_0x129f51,_0x5f4428){const _0x5a0157=_0x413924;var _0x5cc7ac;if(_0x5f4428!=null&&_0x5f4428[_0x5a0157(0x2f4)]||_0x5f4428!=null&&_0x5f4428[_0x5a0157(0x2fb)])return;let _0xe197d3=tc(_0x129f51['params'])?_0x129f51[_0x5a0157(0x1d3)]:void 0x0;if(_0x5f4428!=null&&_0x5f4428[_0x5a0157(0x134)]&&_0x129f51['id']==='base.mutation.apply-base-json1'&&(_0xe197d3==null?void 0x0:_0xe197d3['trigger'])===_0x1c46d3['id'])return;let _0x24566f=Gs(_0x129f51['id']),_0x1f6226=Ws(_0xe197d3==null?void 0x0:_0xe197d3[_0x5a0157(0x2b9)],_0x5f4428)??(_0x24566f?(_0x5cc7ac=this[_0x5a0157(0x398)][_0x5a0157(0x327)](_0x1a4689[_0x5a0157(0x413)]))==null?void 0x0:_0x5cc7ac[_0x5a0157(0x27e)]():void 0x0);if(!_0x1f6226||this[_0x5a0157(0x398)][_0x5a0157(0x1e5)](_0x1f6226)!==_0x1a4689['UNIVER_BASE'])return;if(_0x24566f){if(!Fr(this[_0x5a0157(0x444)],_0x1f6226,_0x1f6226,_0x24566f))throw this['_injector']['get'](_0xd219dd)[_0x5a0157(0x405)](_0x1f6226),new _0x4875f1(_0x5a0157(0x2b0)+_0x4a4e33[_0x24566f]+_0x5a0157(0x48d));return;}if(Hs[_0x5a0157(0x3cf)](_0x129f51['id'])||!_0x129f51['id'][_0x5a0157(0x36e)]('base.command.')&&!_0x129f51['id'][_0x5a0157(0x36e)](_0x5a0157(0x39c)))return;let _0x4bce6b=this['_instanceService']['getUnit'](_0x1f6226,_0x1a4689[_0x5a0157(0x413)]),_0xb508ce=_0x4bce6b?Ks(_0x4bce6b,_0xe197d3??{},_0x129f51['id']):[];if(!_0x4bce6b||!zr(this[_0x5a0157(0x444)],_0x1f6226,_0xb508ce))throw this[_0x5a0157(0x452)][_0x5a0157(0x113)](_0xd219dd)[_0x5a0157(0x405)](_0x1f6226,_0xb508ce),new _0x4875f1(_0x5a0157(0x172));}};Us=X([Y(0x0,_0x4ceb1c(_0x19a16b)),Y(0x1,_0x4c2cb1),Y(0x2,_0x151b9e),Y(0x3,_0x4de172)],Us);function Ws(_0x5d1ba0,_0x5e14bc){const _0x22b31b=_0x413924;return typeof _0x5d1ba0==_0x22b31b(0x3f0)?_0x5d1ba0:typeof(_0x5e14bc==null?void 0x0:_0x5e14bc[_0x22b31b(0x2b9)])==_0x22b31b(0x3f0)?_0x5e14bc[_0x22b31b(0x2b9)]:void 0x0;}function Gs(_0x133f97){const _0x4de08b=_0x413924;if(_0x133f97===_0x4de08b(0x211)||_0x133f97===_0x4de08b(0x2dd))return _0x4a4e33[_0x4de08b(0x174)];if(_0x133f97['startsWith'](_0x4de08b(0x155))||_0x133f97['startsWith'](_0x4de08b(0x40a)))return _0x4a4e33['Comment'];}function Ks(_0x27dcca,_0x70319,_0x1cbaac){const _0x106e56=_0x413924;if(_0x1cbaac==='base.mutation.apply-base-json1'&&ec(_0x70319['op']))return qs(_0x27dcca,_0x70319['op']);let _0x1f28a1=new Set(),_0x25d6b0=Zs(_0x70319,_0x106e56(0x246)),_0x32028e=typeof _0x70319['tableId']==_0x106e56(0x3f0)?_0x70319[_0x106e56(0x2ca)]:_0x25d6b0[0x0];if(_0x25d6b0['forEach'](_0x19a2d2=>_0x1f28a1[_0x106e56(0x4c2)](K(_0x19a2d2))),!_0x32028e)return[..._0x1f28a1];let _0x443c93=_0x27dcca['getSnapshot']()[_0x106e56(0x28d)][_0x32028e],_0x4fd2c9=new Set(Zs(_0x70319,'field')),_0x24376a=new Set(Zs(_0x70319,'record')),_0x35091a=new Set(Zs(_0x70319,_0x106e56(0x1e0)));return Qs(_0x443c93,_0x70319[_0x106e56(0x159)],_0x24376a,_0x4fd2c9),$s(_0x70319,_0x4fd2c9),_0x4fd2c9[_0x106e56(0x248)](_0x569bc0=>_0x1f28a1[_0x106e56(0x4c2)](q(_0x32028e,_0x569bc0))),_0x24376a['forEach'](_0xae783=>_0x1f28a1[_0x106e56(0x4c2)](J(_0x32028e,_0xae783))),_0x35091a[_0x106e56(0x248)](_0x71230f=>_0x1f28a1[_0x106e56(0x4c2)](Mr(_0x32028e,_0x71230f))),[..._0x1f28a1];}function qs(_0x4fe608,_0x9c73c1){const _0x4e70f6=_0x413924;let _0x204ac2=_0x4fe608[_0x4e70f6(0x460)](),_0x785eb5=new z()[_0x4e70f6(0x3a3)](_0x9c73c1),_0x79491a=Js(_0x9c73c1),_0x584f09=new Set();return _0x785eb5[_0x4e70f6(0x248)](_0x161f2b=>{const _0x5e6934=_0x4e70f6;var _0x5ac093,_0x543cc3;let {tableId:_0x33ad5f}=_0x161f2b;if(!_0x33ad5f)return;_0x584f09[_0x5e6934(0x4c2)](K(_0x33ad5f));let _0x3d3e02=_0x204ac2[_0x5e6934(0x28d)][_0x33ad5f],_0x1c7893=_0x161f2b['recordId']??(_0x161f2b[_0x5e6934(0x47c)]==null||_0x3d3e02==null||(_0x5ac093=_0x3d3e02[_0x5e6934(0x3ce)])==null?void 0x0:_0x5ac093[_0x161f2b[_0x5e6934(0x47c)]]),_0x287930=_0x161f2b['fieldId']??(_0x161f2b[_0x5e6934(0x298)]==null||_0x3d3e02==null||(_0x543cc3=_0x3d3e02[_0x5e6934(0x16c)])==null?void 0x0:_0x543cc3[_0x161f2b[_0x5e6934(0x298)]]);_0x1c7893&&_0x584f09[_0x5e6934(0x4c2)](J(_0x33ad5f,_0x1c7893)),_0x287930&&_0x584f09[_0x5e6934(0x4c2)](q(_0x33ad5f,_0x287930)),_0x161f2b['viewId']&&_0x584f09['add'](Mr(_0x33ad5f,_0x161f2b[_0x5e6934(0x297)])),(_0x161f2b['reason']==='table'||_0x79491a[_0x5e6934(0x3cf)](_0x33ad5f))&&_0x3d3e02&&(Object[_0x5e6934(0x3a2)](_0x3d3e02[_0x5e6934(0x175)])[_0x5e6934(0x248)](_0x13957e=>_0x584f09[_0x5e6934(0x4c2)](q(_0x33ad5f,_0x13957e))),Object[_0x5e6934(0x3a2)](_0x3d3e02[_0x5e6934(0x3b4)])[_0x5e6934(0x248)](_0x45dd42=>_0x584f09[_0x5e6934(0x4c2)](J(_0x33ad5f,_0x45dd42))),Object[_0x5e6934(0x3a2)](_0x3d3e02[_0x5e6934(0x379)])[_0x5e6934(0x248)](_0x22a7b8=>_0x584f09[_0x5e6934(0x4c2)](Mr(_0x33ad5f,_0x22a7b8)))),_0x161f2b[_0x5e6934(0x24f)]===_0x5e6934(0x1cf)&&_0x3d3e02&&Object[_0x5e6934(0x3a2)](_0x3d3e02[_0x5e6934(0x175)])[_0x5e6934(0x248)](_0x14bac0=>_0x584f09[_0x5e6934(0x4c2)](q(_0x33ad5f,_0x14bac0)));}),_0x785eb5[_0x4e70f6(0x4be)]===0x0&&Xs(_0x9c73c1,'tableOrder')&&Object[_0x4e70f6(0x3a2)](_0x204ac2[_0x4e70f6(0x28d)])[_0x4e70f6(0x248)](_0x4708c7=>_0x584f09[_0x4e70f6(0x4c2)](K(_0x4708c7))),[..._0x584f09];}function Js(_0x1c07eb){let _0x5b9b1c=new Set(),_0x30c403=_0x4b4924=>{const _0x5da0f4=_0x5866;Array['isArray'](_0x4b4924)&&_0x4b4924[_0x5da0f4(0x248)]((_0x52bfc0,_0x409546)=>{const _0x15e561=_0x5da0f4;_0x52bfc0==='tables'&&typeof _0x4b4924[_0x409546+0x1]==_0x15e561(0x3f0)&&Ys(_0x4b4924[_0x409546+0x2])&&_0x5b9b1c[_0x15e561(0x4c2)](_0x4b4924[_0x409546+0x1]),_0x30c403(_0x52bfc0);});};return _0x30c403(_0x1c07eb),_0x5b9b1c;}function Ys(_0x36cec0){const _0x481b98=_0x413924;return!!_0x36cec0&&typeof _0x36cec0=='object'&&!Array[_0x481b98(0x348)](_0x36cec0)&&('i'in _0x36cec0||'r'in _0x36cec0||'p'in _0x36cec0||'d'in _0x36cec0||'es'in _0x36cec0||_0x481b98(0x2e0)in _0x36cec0||'et'in _0x36cec0);}function Xs(_0x11505b,_0x539547){const _0x1f013a=_0x413924;return Array['isArray'](_0x11505b)&&_0x11505b[_0x1f013a(0x2e3)](_0x463c78=>_0x463c78===_0x539547||Xs(_0x463c78,_0x539547));}function Zs(_0x505c4c,_0x34d1c9){const _0x10b510=_0x413924;let _0x18f9b8=new Set(),_0x35ee20=_0x34d1c9+'Id',_0x4402a8=_0x34d1c9+_0x10b510(0x451),_0x2c5b49=(_0x3783c4,_0x104f07='')=>{const _0x198571=_0x10b510;if(typeof _0x3783c4==_0x198571(0x3f0)){_0x104f07===_0x35ee20&&_0x18f9b8[_0x198571(0x4c2)](_0x3783c4);return;}if(Array[_0x198571(0x348)](_0x3783c4)){_0x104f07===_0x4402a8?_0x3783c4[_0x198571(0x248)](_0x5d68dd=>{const _0x2f3519=_0x198571;typeof _0x5d68dd==_0x2f3519(0x3f0)&&_0x18f9b8[_0x2f3519(0x4c2)](_0x5d68dd);}):_0x3783c4[_0x198571(0x248)](_0x3083ec=>_0x2c5b49(_0x3083ec,_0x104f07));return;}tc(_0x3783c4)&&Object['entries'](_0x3783c4)[_0x198571(0x248)](([_0x571c2b,_0x599b00])=>{const _0x550dd7=_0x198571;_0x571c2b==='id'&&_0x104f07===_0x34d1c9&&typeof _0x599b00==_0x550dd7(0x3f0)?_0x18f9b8[_0x550dd7(0x4c2)](_0x599b00):_0x2c5b49(_0x599b00,_0x571c2b);});};return _0x2c5b49(_0x505c4c),[..._0x18f9b8];}function Qs(_0x47097c,_0x4df09d,_0x223fe6,_0x311bdc){const _0x2dbdd9=_0x413924;_0x47097c&&Array[_0x2dbdd9(0x348)](_0x4df09d)&&_0x4df09d[_0x2dbdd9(0x248)](_0x43cbfd=>{const _0x387ad6=_0x2dbdd9;if(!tc(_0x43cbfd))return;let _0x333009=_0x43cbfd;if(typeof _0x333009[_0x387ad6(0x47c)]==_0x387ad6(0x42c)){var _0x23ed22;let _0x18f196=(_0x23ed22=_0x47097c['rowId'])==null?void 0x0:_0x23ed22[_0x333009['row']];_0x18f196&&_0x223fe6[_0x387ad6(0x4c2)](_0x18f196);}if(typeof _0x333009[_0x387ad6(0x44d)]=='number'){var _0xaacbb6;let _0x45468a=(_0xaacbb6=_0x47097c[_0x387ad6(0x16c)])==null?void 0x0:_0xaacbb6[_0x333009[_0x387ad6(0x44d)]];_0x45468a&&_0x311bdc[_0x387ad6(0x4c2)](_0x45468a);}});}function $s(_0x11bc5c,_0x1f9bd9,_0x5abf33=''){const _0x3a9a1f=_0x413924;if(_0x11bc5c&&typeof _0x11bc5c==_0x3a9a1f(0x441)){if(Array[_0x3a9a1f(0x348)](_0x11bc5c)){_0x11bc5c[_0x3a9a1f(0x248)](_0xc619f7=>$s(_0xc619f7,_0x1f9bd9,_0x5abf33));return;}tc(_0x11bc5c)&&Object['entries'](_0x11bc5c)[_0x3a9a1f(0x248)](([_0x2d4e15,_0x525b6d])=>{const _0x42d2cf=_0x3a9a1f;_0x5abf33===_0x42d2cf(0x4ae)&&_0x1f9bd9[_0x42d2cf(0x4c2)](_0x2d4e15),$s(_0x525b6d,_0x1f9bd9,_0x2d4e15);});}}function ec(_0x304853){const _0x56b671=_0x413924;return Array[_0x56b671(0x348)](_0x304853);}function tc(_0x590654){const _0x194e0e=_0x413924;return typeof _0x590654=='object'&&!!_0x590654&&!Array[_0x194e0e(0x348)](_0x590654);}const nc=_0x116afe('base.resource.service');let rc=class{constructor(_0x497954){const _0x2c4f1c=_0x413924;this[_0x2c4f1c(0x111)]=_0x497954;}['getBase'](_0x4091fd){const _0x396435=_0x413924;return this['_univerInstanceService'][_0x396435(0x365)](_0x4091fd,_0x1a4689[_0x396435(0x413)])??null;}[_0x413924(0x2bb)](){const _0x255ede=_0x413924;return this[_0x255ede(0x111)][_0x255ede(0x3ff)](_0x1a4689[_0x255ede(0x413)]);}[_0x413924(0x273)](_0x194312){const _0x1c304c=_0x413924;return this[_0x1c304c(0x111)][_0x1c304c(0x181)](_0x1a4689[_0x1c304c(0x413)],_0x194312);}};rc=X([Y(0x0,_0x4de172)],rc);const ic=_0x116afe(_0x413924(0x397));var ac=class extends _0x51b493{constructor(..._0x4dc506){const _0x11134d=_0x413924;super(..._0x4dc506),G(this,_0x11134d(0x4d3),new Map());}[_0x413924(0x331)](_0x2dc2c3){const _0x12c238=_0x413924;return this[_0x12c238(0x4d3)][_0x12c238(0x404)](_0x2dc2c3[_0x12c238(0x378)],_0x2dc2c3),_0x500368(()=>this['_plugins'][_0x12c238(0x4a1)](_0x2dc2c3['type']));}[_0x413924(0x113)](_0xa20cd6){const _0x1fa97a=_0x413924;let _0x2ade50=this['_plugins'][_0x1fa97a(0x113)](_0xa20cd6);if(!_0x2ade50)throw Error(_0x1fa97a(0x396)+_0xa20cd6+_0x1fa97a(0x414));return _0x2ade50;}['getAll'](){const _0x5a0536=_0x413924;return Array[_0x5a0536(0x2f6)](this[_0x5a0536(0x4d3)][_0x5a0536(0x4ae)]());}};const oc=[Q];let sc=class extends _0x5626e8{constructor(_0x231f2b=Ns,_0xd4c132,_0x58b419,_0x3ed672,_0x83b6e4,_0x3d3297){const _0x22ff66=_0x413924;super(),this[_0x22ff66(0x1ca)]=_0x231f2b,this['_injector']=_0xd4c132,this[_0x22ff66(0x4d4)]=_0x58b419,this['_univerInstanceService']=_0x3ed672,this['_configService']=_0x83b6e4,this['_dataSyncPrimaryController']=_0x3d3297,G(this,_0x22ff66(0x3cd),new Map());let {..._0x48621a}=_0x23d942({},Ns,this[_0x22ff66(0x1ca)]);this[_0x22ff66(0x180)][_0x22ff66(0x268)](_0x22ff66(0x161),_0x48621a),this[_0x22ff66(0x111)][_0x22ff66(0x3e0)](_0x1a4689[_0x22ff66(0x413)],_0x4fb297),this[_0x22ff66(0x23e)](),this['_initCommands'](),this[_0x22ff66(0x1b9)](),this['_initDataSync']();}[_0x413924(0x11a)](){const _0x377051=_0x413924;this[_0x377051(0x452)][_0x377051(0x4c2)]([Lo]),this[_0x377051(0x1f4)](this[_0x377051(0x452)][_0x377051(0x113)](_0x4c2cb1)['registerCommand'](Ro)),this['disposeWithMe'](this['_injector'][_0x377051(0x113)](_0x4c2cb1)[_0x377051(0x2e9)](zo)),this[_0x377051(0x1f4)](this['_injector'][_0x377051(0x113)](_0x18e9f8)[_0x377051(0x385)](_0x518f29['Base'],this[_0x377051(0x452)][_0x377051(0x113)](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x18bf07=_0x413924;_0x144ea(this['_injector'],[[rc],[qr],[Rs]]),this[_0x18bf07(0x111)][_0x18bf07(0x3ff)](_0x1a4689['UNIVER_BASE'])['forEach'](_0x19466f=>this[_0x18bf07(0x48c)](_0x19466f['getUnitId']())),_0x144ea(this['_injector'],[[zs],[Us]]);}[_0x413924(0x23e)](){const _0x291606=_0x413924;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x291606(0x248)](_0x4b0ab3=>this['_injector'][_0x291606(0x4c2)](_0x4b0ab3));}['_initCommands'](){const _0x58ea0b=_0x413924;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc][_0x58ea0b(0x248)](_0x348b7a=>this[_0x58ea0b(0x1f4)](this[_0x58ea0b(0x4d4)][_0x58ea0b(0x2e9)](_0x348b7a))),oc[_0x58ea0b(0x248)](_0x2b2b0e=>{const _0x2d5954=_0x58ea0b;var _0x3b78f7;return(_0x3b78f7=this['_dataSyncPrimaryController'])==null?void 0x0:_0x3b78f7[_0x2d5954(0x13b)](_0x2b2b0e);});}[_0x413924(0x1e6)](){const _0x44339=_0x413924;this[_0x44339(0x29a)]&&(this[_0x44339(0x1f4)](this[_0x44339(0x111)][_0x44339(0x223)](_0x1a4689[_0x44339(0x413)])[_0x44339(0x26d)](({unit:_0x555cfc})=>{const _0x1d311a=_0x44339;this[_0x1d311a(0x48c)](_0x555cfc['getUnitId']());})),this['disposeWithMe'](this[_0x44339(0x111)]['getTypeOfUnitDisposed$'](_0x1a4689[_0x44339(0x413)])[_0x44339(0x26d)](_0x40b523=>{const _0xd70cc7=_0x44339;var _0x5d2895;(_0x5d2895=this[_0xd70cc7(0x3cd)][_0xd70cc7(0x113)](_0x40b523[_0xd70cc7(0x27e)]()))==null||_0x5d2895['dispose'](),this[_0xd70cc7(0x3cd)][_0xd70cc7(0x4a1)](_0x40b523[_0xd70cc7(0x27e)]());})));}['_syncBaseUnit'](_0x3f235){const _0x5c3951=_0x413924;this[_0x5c3951(0x29a)]&&!this[_0x5c3951(0x3cd)]['has'](_0x3f235)&&this['_baseSyncDisposables'][_0x5c3951(0x404)](_0x3f235,this['_dataSyncPrimaryController'][_0x5c3951(0x1d5)](_0x3f235));}[_0x413924(0x1b9)](){const _0x4505c1=_0x413924;let _0x591d35=this[_0x4505c1(0x452)][_0x4505c1(0x113)](mr);zn()[_0x4505c1(0x248)](_0x582b18=>_0x591d35['register'](_0x582b18));let _0x4cde3b=this['_injector'][_0x4505c1(0x113)](ic),_0x1fdced=this[_0x4505c1(0x452)][_0x4505c1(0x113)](ii);$r()[_0x4505c1(0x248)](_0x348802=>{const _0x344e5e=_0x4505c1;_0x4cde3b[_0x344e5e(0x331)](_0x348802),_0x1fdced[_0x344e5e(0x23a)](_0x348802);});}};G(sc,_0x413924(0x274),_0x413924(0x147)),G(sc,_0x413924(0x322),js),G(sc,_0x413924(0x17d),Ms),G(sc,'type',_0x1a4689['UNIVER_BASE']),sc=X([_0x36214f(_0x5130b3,_0x235841),Y(0x1,_0x4ceb1c(_0x19a16b)),Y(0x2,_0x4c2cb1),Y(0x3,_0x4de172),Y(0x4,_0x12c3f9),Y(0x5,_0x1bc2ea(_0xb4b53e))],sc);let cc=class extends _0x5626e8{constructor(_0x44dcb4=Ps,_0x4a6805,_0x473c48,_0x1b35a3,_0x52fde0){const _0xa7a440=_0x413924;super(),this['_config']=_0x44dcb4,this[_0xa7a440(0x452)]=_0x4a6805,this[_0xa7a440(0x4d4)]=_0x473c48,this[_0xa7a440(0x180)]=_0x1b35a3,this[_0xa7a440(0x111)]=_0x52fde0;let {..._0x38f9aa}=_0x23d942({},Ps,this[_0xa7a440(0x1ca)]);this[_0xa7a440(0x180)][_0xa7a440(0x268)](_0xa7a440(0x1ab),_0x38f9aa),this[_0xa7a440(0x111)][_0xa7a440(0x3e0)](_0x1a4689[_0xa7a440(0x413)],_0x4fb297),[[mr,{'useClass':hr}],[ii,{'useClass':si}]]['forEach'](_0x345e32=>this[_0xa7a440(0x452)][_0xa7a440(0x4c2)](_0x345e32)),oc[_0xa7a440(0x248)](_0x578da7=>this[_0xa7a440(0x1f4)](this[_0xa7a440(0x4d4)][_0xa7a440(0x2e9)](_0x578da7)));}};G(cc,_0x413924(0x274),_0x413924(0x1be)),G(cc,_0x413924(0x322),js),G(cc,_0x413924(0x17d),Ms),G(cc,_0x413924(0x378),_0x1a4689[_0x413924(0x413)]),cc=X([_0x36214f(_0x5130b3,_0x235841),Y(0x1,_0x4ceb1c(_0x19a16b)),Y(0x2,_0x4c2cb1),Y(0x3,_0x12c3f9),Y(0x4,_0x4de172)],cc);function lc(_0x107810){const _0x4390a9=_0x413924;let _0x2bc5fa=Cc(_0x107810[_0x4390a9(0x126)]);if(!_0x2bc5fa)return{'query':'','total':0x0,'matches':[]};let _0x3bb48d=[],_0x45cab3=[];for(let _0x1732e6=0x0;_0x1732e6<_0x107810[_0x4390a9(0x481)][_0x4390a9(0x4be)];_0x1732e6++){if(!(_0x1732e6 in _0x107810[_0x4390a9(0x481)]))continue;let _0x389e2b=_0x107810['table'][_0x4390a9(0x175)][_0x107810['fieldIds'][_0x1732e6]];_0x389e2b&&_0x45cab3[_0x4390a9(0x34c)]({'field':_0x389e2b,'fieldIndex':_0x1732e6});}_0x107810['rows'][_0x4390a9(0x248)]((_0x59eafb,_0x4cc877)=>{const _0x214ead=_0x4390a9;_0x45cab3[_0x214ead(0x248)](({field:_0x66ff18,fieldIndex:_0x4e0e74})=>{const _0x1cbb00=_0x214ead;let _0x48184b=uc(_0x59eafb['values'][_0x66ff18['id']],_0x66ff18);if(!_0x48184b)return;let _0x54a0fc=Sc(_0x2bc5fa,_0x48184b[_0x1cbb00(0x12c)]);_0x54a0fc<=0x0||_0x3bb48d[_0x1cbb00(0x34c)]({'recordId':_0x59eafb['recordId'],'fieldId':_0x66ff18['id'],'fieldType':_0x66ff18[_0x1cbb00(0x378)],'text':_0x48184b[_0x1cbb00(0x27d)],'score':_0x54a0fc,'rowIndex':_0x4cc877,'fieldIndex':_0x4e0e74});});}),_0x3bb48d[_0x4390a9(0x116)]((_0x859f87,_0x1f66ef)=>_0x1f66ef[_0x4390a9(0x3b1)]-_0x859f87['score']||_0x859f87[_0x4390a9(0x12b)]-_0x1f66ef[_0x4390a9(0x12b)]||_0x859f87[_0x4390a9(0x35d)]-_0x1f66ef['fieldIndex']);let _0x1c9c1b=_0x107810[_0x4390a9(0x47e)]==null?_0x3bb48d:_0x3bb48d[_0x4390a9(0x3a7)](0x0,Math['max'](0x0,_0x107810[_0x4390a9(0x47e)]));return{'query':_0x2bc5fa,'total':_0x3bb48d[_0x4390a9(0x4be)],'matches':Tc(_0x1c9c1b)};}function uc(_0xb79f75,_0x52bd78){const _0x50b3fe=_0x413924;let _0x6da9e7=[];for(let _0x1639fd of fc(_0xb79f75,_0x52bd78)){let _0xc7e2b7=Cc(_0x1639fd);_0xc7e2b7&&_0x6da9e7[_0x50b3fe(0x34c)](_0xc7e2b7);}return _0x6da9e7[_0x50b3fe(0x4be)]?{'displayText':dc(_0xb79f75,_0x52bd78),'searchTexts':wc(_0x6da9e7)}:null;}function dc(_0x2e0e25,_0x15067c){const _0x221457=_0x413924;switch(_0x15067c[_0x221457(0x378)]){case _0x39ba8f[_0x221457(0x183)]:case _0x39ba8f['MultiSelect']:case _0x39ba8f['Group']:return pc(_0x2e0e25,_0x15067c)[_0x221457(0x4bd)](',\x20');case _0x39ba8f[_0x221457(0x4b5)]:return gc(_0x2e0e25);case _0x39ba8f[_0x221457(0x2c9)]:case _0x39ba8f['CreatedAt']:case _0x39ba8f[_0x221457(0x1b6)]:return _c(_0x2e0e25,_0x15067c);case _0x39ba8f['Number']:case _0x39ba8f[_0x221457(0x374)]:return vc(_0x2e0e25,_0x15067c);case _0x39ba8f['Progress']:return yc(_0x2e0e25,_0x15067c);case _0x39ba8f[_0x221457(0x15d)]:return _0x2e0e25?'Checked':_0x221457(0x2c4);case _0x39ba8f[_0x221457(0x2ba)]:return bc(_0x2e0e25)[_0x221457(0x4bd)](',\x20');default:return xc(_0x2e0e25);}}function fc(_0x2cd243,_0x6c1d1f){const _0x2723c3=_0x413924;switch(_0x6c1d1f[_0x2723c3(0x378)]){case _0x39ba8f['SingleSelect']:case _0x39ba8f[_0x2723c3(0x40c)]:case _0x39ba8f[_0x2723c3(0x14f)]:{let _0x4d71b9=pc(_0x2cd243,_0x6c1d1f);if(Array[_0x2723c3(0x348)](_0x2cd243)){let _0x44679d=[..._0x4d71b9];for(let _0x3c0611=0x0;_0x3c0611<_0x2cd243[_0x2723c3(0x4be)];_0x3c0611++)_0x3c0611 in _0x2cd243&&_0x44679d['push'](String(_0x2cd243[_0x3c0611]));return _0x44679d;}return _0x2cd243==null?_0x4d71b9:[..._0x4d71b9,String(_0x2cd243)];}case _0x39ba8f[_0x2723c3(0x4b5)]:{let _0x41fc7b=hc(_0x2cd243);return[_0x41fc7b['text'],_0x41fc7b['url']];}case _0x39ba8f[_0x2723c3(0x2c9)]:case _0x39ba8f[_0x2723c3(0x3b2)]:case _0x39ba8f['UpdatedAt']:return[_c(_0x2cd243,_0x6c1d1f),xc(_0x2cd243)];case _0x39ba8f[_0x2723c3(0x21b)]:case _0x39ba8f[_0x2723c3(0x374)]:return[vc(_0x2cd243,_0x6c1d1f),xc(_0x2cd243)];case _0x39ba8f[_0x2723c3(0x1a0)]:return[yc(_0x2cd243,_0x6c1d1f),xc(_0x2cd243)];case _0x39ba8f[_0x2723c3(0x15d)]:return _0x2cd243?[_0x2723c3(0x38f),_0x2723c3(0x3a5),_0x2723c3(0x4a9)]:['Unchecked','No',_0x2723c3(0x41e)];case _0x39ba8f[_0x2723c3(0x2ba)]:return bc(_0x2cd243);default:return[xc(_0x2cd243)];}}function pc(_0x529209,_0x504dc0){const _0x47908a=_0x413924;var _0x395ac5;let _0x5c680a=Array[_0x47908a(0x348)]((_0x395ac5=_0x504dc0[_0x47908a(0x406)])==null?void 0x0:_0x395ac5[_0x47908a(0x1ed)])?_0x504dc0[_0x47908a(0x406)][_0x47908a(0x1ed)]:[],_0x22d308=[];if(Array['isArray'](_0x529209)){for(let _0x211c50=0x0;_0x211c50<_0x529209[_0x47908a(0x4be)];_0x211c50++){if(!(_0x211c50 in _0x529209))continue;let _0x314e09=String(_0x529209[_0x211c50]);_0x314e09&&_0x22d308[_0x47908a(0x34c)](mc(_0x5c680a,_0x314e09));}return _0x22d308;}if(_0x529209!=null){let _0x4f6d77=String(_0x529209);_0x4f6d77&&_0x22d308[_0x47908a(0x34c)](mc(_0x5c680a,_0x4f6d77));}return _0x22d308;}function mc(_0x2b08ca,_0x7c6ad0){const _0x47c51f=_0x413924;for(let _0x358c32 of _0x2b08ca){if(typeof _0x358c32==_0x47c51f(0x3f0)&&_0x358c32===_0x7c6ad0)return _0x358c32;if(_0x358c32&&typeof _0x358c32==_0x47c51f(0x441)){let _0x2f7924=_0x358c32;if(String(_0x2f7924['id']??_0x2f7924[_0x47c51f(0x1f9)]??'')===_0x7c6ad0||String(_0x2f7924['name']??'')===_0x7c6ad0)return String(_0x2f7924[_0x47c51f(0x1f9)]??_0x2f7924['id']??_0x7c6ad0);}}return _0x7c6ad0;}function hc(_0x511b1e){const _0x3938bd=_0x413924;if(_0x511b1e&&typeof _0x511b1e==_0x3938bd(0x441)&&!Array[_0x3938bd(0x348)](_0x511b1e)){let _0x44e7aa=_0x511b1e;return{'text':String(_0x44e7aa[_0x3938bd(0x10d)]??_0x44e7aa[_0x3938bd(0x194)]??''),'url':String(_0x44e7aa[_0x3938bd(0x194)]??'')};}return{'text':xc(_0x511b1e),'url':xc(_0x511b1e)};}function gc(_0x10d3d8){const _0x477f96=_0x413924;let _0x463046=hc(_0x10d3d8);return _0x463046[_0x477f96(0x10d)]||_0x463046[_0x477f96(0x194)];}function _c(_0x1b56dd,_0x385698){const _0x5979e1=_0x413924;return typeof _0x1b56dd!=_0x5979e1(0x42c)||!Number[_0x5979e1(0x479)](_0x1b56dd)?'':mn(_0x1b56dd,_0x385698['config']);}function vc(_0x5e36ba,_0x132677){const _0x414f09=_0x413924;let _0x58fa72=typeof _0x5e36ba==_0x414f09(0x42c)?_0x5e36ba:Number(_0x5e36ba);return Number['isFinite'](_0x58fa72)?qo(_0x58fa72,_0x132677[_0x414f09(0x406)]):'';}function yc(_0x58e582,_0x4308b4){const _0xa53175=_0x413924;let _0x258cc8=typeof _0x58e582==_0xa53175(0x42c)?_0x58e582:Number(_0x58e582);return Number['isFinite'](_0x258cc8)?Qo(_0x258cc8,_0x4308b4[_0xa53175(0x406)]):'';}function bc(_0xd05dea){const _0x9d2ef7=_0x413924;return Array['isArray'](_0xd05dea)?_0xd05dea[_0x9d2ef7(0x4ac)](_0x413717=>{const _0x25f783=_0x9d2ef7;if(!_0x413717||typeof _0x413717!='object')return[];let _0x4c7e6d=_0x413717,_0x23685a=String(_0x4c7e6d[_0x25f783(0x1f9)]??_0x4c7e6d[_0x25f783(0x194)]??'')[_0x25f783(0x401)]();return _0x23685a?[_0x23685a]:[];}):[];}function xc(_0x4e5443){const _0xdd88fe=_0x413924;if(_0x4e5443==null)return'';if(typeof _0x4e5443==_0xdd88fe(0x4d9))return _0x4e5443?_0xdd88fe(0x436):_0xdd88fe(0x234);if(typeof _0x4e5443==_0xdd88fe(0x42c))return String(_0x4e5443);if(Array[_0xdd88fe(0x348)](_0x4e5443)){let _0x54e7c5=[];for(let _0x150cc8=0x0;_0x150cc8<_0x4e5443[_0xdd88fe(0x4be)];_0x150cc8++){if(!(_0x150cc8 in _0x4e5443))continue;let _0x37466b=xc(_0x4e5443[_0x150cc8]);_0x37466b&&_0x54e7c5[_0xdd88fe(0x34c)](_0x37466b);}return _0x54e7c5[_0xdd88fe(0x4bd)](',\x20');}if(typeof _0x4e5443==_0xdd88fe(0x441)){let _0x3397fb=_0x4e5443;return String(_0x3397fb['title']??_0x3397fb['name']??_0x3397fb[_0xdd88fe(0x10d)]??_0x3397fb['url']??'')['trim']();}return String(_0x4e5443);}function Sc(_0x2dc929,_0x5996cb){const _0x4181ad=_0x413924;let _0x7534dc=0x0;for(let _0x509e13 of _0x5996cb)if(_0x509e13){if(_0x509e13===_0x2dc929){_0x7534dc=Math[_0x4181ad(0x487)](_0x7534dc,0x12c);continue;}if(_0x509e13[_0x4181ad(0x36e)](_0x2dc929)){_0x7534dc=Math[_0x4181ad(0x487)](_0x7534dc,0xfa);continue;}_0x509e13[_0x4181ad(0x35f)](_0x2dc929)&&(_0x7534dc=Math[_0x4181ad(0x487)](_0x7534dc,0xc8));}return _0x7534dc;}function Cc(_0x1d3092){const _0x12d5b2=_0x413924;return _0x1d3092[_0x12d5b2(0x401)]()['replace'](/\s+/g,'\x20')[_0x12d5b2(0x358)]();}function wc(_0x276397){const _0x3252aa=_0x413924;return Array[_0x3252aa(0x2f6)](new Set(_0x276397));}function Tc(_0x2c4e0e){const _0x2696b2=_0x413924;let _0xb3beeb=[];for(let {rowIndex:_0x53c58f,fieldIndex:_0x3f163e,..._0x1f6578}of _0x2c4e0e)_0xb3beeb[_0x2696b2(0x34c)](_0x1f6578);return _0xb3beeb;}function Ec(_0x48126c){const _0x51de02=_0x413924;return{'compress':!0x0,'kind':_0x51de02(0x286),'u':_0x48126c[_0x51de02(0x2b9)],'t':_0x48126c[_0x51de02(0x2ca)],'p':_0x48126c[_0x51de02(0x159)]['map'](_0x574cd2=>[_0x574cd2[_0x51de02(0x47c)],_0x574cd2[_0x51de02(0x44d)],Ac(_0x574cd2[_0x51de02(0x277)])]),..._0x48126c['trigger']===void 0x0?{}:{'g':_0x48126c['trigger']}};}function Dc(_0x27734c){const _0x3a425c=_0x413924;if(Lc(_0x27734c,_0x3a425c(0x286)),!Oc(_0x27734c)){if(!Ic(_0x27734c))throw Error('[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.');return _0x27734c;}return{'unitId':_0x27734c['u'],'tableId':_0x27734c['t'],'patches':_0x27734c['p'][_0x3a425c(0x438)](([_0x59ae86,_0x40f6b4,_0x15a47b])=>({'row':_0x59ae86,'col':_0x40f6b4,'value':jc(_0x15a47b)})),..._0x27734c['g']===void 0x0?{}:{'trigger':_0x27734c['g']}};}function Oc(_0x236ae1){const _0x281067=_0x413924;return!Rc(_0x236ae1)||_0x236ae1['compress']!==!0x0||_0x236ae1[_0x281067(0x42d)]!==_0x281067(0x286)?!0x1:typeof _0x236ae1['u']==_0x281067(0x3f0)&&typeof _0x236ae1['t']==_0x281067(0x3f0)&&(_0x236ae1['g']===void 0x0||typeof _0x236ae1['g']==_0x281067(0x3f0))&&Array[_0x281067(0x348)](_0x236ae1['p'])&&_0x236ae1['p'][_0x281067(0x23d)](_0x3a7a38=>Array[_0x281067(0x348)](_0x3a7a38)&&_0x3a7a38['length']===0x3&&Number[_0x281067(0x32b)](_0x3a7a38[0x0])&&Number['isInteger'](_0x3a7a38[0x1]));}function kc(_0x53b020){const _0x1c236a=_0x413924;return!Rc(_0x53b020)||_0x53b020['compress']!==!0x0||_0x53b020['kind']!==_0x1c236a(0x1da)||!Rc(_0x53b020[_0x1c236a(0x28d)])?!0x1:Object['values'](_0x53b020['tables'])['every'](_0x23e41d=>Rc(_0x23e41d)&&(_0x23e41d['cd']===void 0x0||Array[_0x1c236a(0x348)](_0x23e41d['cd'])&&_0x23e41d['cd'][_0x1c236a(0x23d)](_0x4b23a5=>Array[_0x1c236a(0x348)](_0x4b23a5)&&_0x4b23a5['length']===0x3&&Number['isInteger'](_0x4b23a5[0x0])&&Number[_0x1c236a(0x32b)](_0x4b23a5[0x1])&&Fc(_0x4b23a5[0x2]))));}function Ac(_0x1cdb69){return Pc(_0x1cdb69)?Mc(_0x1cdb69):_0x1cdb69;}function jc(_0x514044){return Fc(_0x514044)?Nc(_0x514044):_0x514044;}function Mc(_0x407e63){return{'c':0x1,..._0x407e63['v']===void 0x0?{}:{'v':_0x407e63['v']},..._0x407e63['t']!==void 0x0&&_0x407e63['t']!==null?{'t':_0x407e63['t']}:_0x407e63['t']===null?{'t':null}:{},..._0x407e63['f']!==void 0x0&&_0x407e63['f']!==null?{'f':_0x407e63['f']}:_0x407e63['f']===null?{'f':null}:{},..._0x407e63['si']!==void 0x0&&_0x407e63['si']!==null?{'si':_0x407e63['si']}:_0x407e63['si']===null?{'si':null}:{},..._0x407e63['p']!==void 0x0&&_0x407e63['p']!==null?{'p':_0x407e63['p']}:_0x407e63['p']===null?{'p':null}:{}};}function Nc(_0x544084){return{..._0x544084['v']===void 0x0?{}:{'v':_0x544084['v']},..._0x544084['t']===void 0x0?{}:{'t':_0x544084['t']},..._0x544084['f']===void 0x0?{}:{'f':_0x544084['f']},..._0x544084['si']===void 0x0?{}:{'si':_0x544084['si']},..._0x544084['p']===void 0x0?{}:{'p':_0x544084['p']}};}function Pc(_0x3e91f6){const _0x251bc1=_0x413924;return!!_0x3e91f6&&typeof _0x3e91f6==_0x251bc1(0x441)&&!Array['isArray'](_0x3e91f6)&&(Object['prototype'][_0x251bc1(0x128)]['call'](_0x3e91f6,'v')||Object['prototype'][_0x251bc1(0x128)][_0x251bc1(0x157)](_0x3e91f6,'t')||Object[_0x251bc1(0x24b)]['hasOwnProperty']['call'](_0x3e91f6,'p')||Object[_0x251bc1(0x24b)][_0x251bc1(0x128)][_0x251bc1(0x157)](_0x3e91f6,'f')||Object[_0x251bc1(0x24b)][_0x251bc1(0x128)][_0x251bc1(0x157)](_0x3e91f6,'si'));}function Fc(_0x120498){return Rc(_0x120498)&&_0x120498['c']===0x1;}function Ic(_0x1b047a){const _0x3dd454=_0x413924;return Rc(_0x1b047a)&&typeof _0x1b047a[_0x3dd454(0x2b9)]==_0x3dd454(0x3f0)&&typeof _0x1b047a[_0x3dd454(0x2ca)]==_0x3dd454(0x3f0)&&(_0x1b047a[_0x3dd454(0x3d6)]===void 0x0||typeof _0x1b047a[_0x3dd454(0x3d6)]==_0x3dd454(0x3f0))&&Array[_0x3dd454(0x348)](_0x1b047a[_0x3dd454(0x159)])&&_0x1b047a['patches'][_0x3dd454(0x23d)](_0x4de851=>Rc(_0x4de851)&&Number[_0x3dd454(0x32b)](_0x4de851[_0x3dd454(0x47c)])&&Number[_0x3dd454(0x32b)](_0x4de851[_0x3dd454(0x44d)])&&_0x3dd454(0x277)in _0x4de851);}function Lc(_0x5ea189,_0x5d976e){const _0x299d50=_0x413924;if(Rc(_0x5ea189)&&_0x5ea189[_0x299d50(0x4d2)]===!0x0){if(_0x5ea189[_0x299d50(0x42d)]!==_0x5d976e)throw Error(_0x299d50(0x198)+String(_0x5ea189[_0x299d50(0x42d)])+'\x22.');if(!(_0x5d976e==='base-range-values-v1'?Oc(_0x5ea189):kc(_0x5ea189)))throw Error(_0x299d50(0x44f)+_0x5d976e+'\x22.');}}function Rc(_0x3faecd){const _0x496758=_0x413924;return!!_0x3faecd&&typeof _0x3faecd==_0x496758(0x441)&&!Array['isArray'](_0x3faecd);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x17901a as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|
|
1
|
+
const _0x354fcb=_0x48d8;(function(_0x14c018,_0x5b1382){const _0x23cbd7=_0x48d8,_0x123ec2=_0x14c018();while(!![]){try{const _0x4b267c=-parseInt(_0x23cbd7(0x48a))/0x1+parseInt(_0x23cbd7(0x323))/0x2*(parseInt(_0x23cbd7(0x21d))/0x3)+parseInt(_0x23cbd7(0x42a))/0x4*(-parseInt(_0x23cbd7(0x2ed))/0x5)+-parseInt(_0x23cbd7(0x2e6))/0x6+parseInt(_0x23cbd7(0x495))/0x7*(parseInt(_0x23cbd7(0x34f))/0x8)+-parseInt(_0x23cbd7(0x529))/0x9+parseInt(_0x23cbd7(0x32f))/0xa*(parseInt(_0x23cbd7(0x412))/0xb);if(_0x4b267c===_0x5b1382)break;else _0x123ec2['push'](_0x123ec2['shift']());}catch(_0x3256cc){_0x123ec2['push'](_0x123ec2['shift']());}}}(_0x2357,0x947d9));import{BASE_RECORD_ID_FIELD_ID as _0x3b44b5,BaseConditionalColorOperator as _0x79efc5,BaseConditionalColorTarget as _0x54bac1,BaseConditionalDateMode as _0x173d28,BaseDataModel as _0x2563fc,BaseFieldType as _0x19bf94,BaseFilterConjunction as _0x12daa6,BaseHierarchyInvalidReason as _0x3f9b5e,BaseRecordLinkRole as _0x170c14,BaseSortDirection as _0x7258f,BaseViewType as _0x2b4a2c,CellValueType as _0x149f0a,ColorKit as _0x3d2caa,CommandType as _0x3e23cf,CustomCommandExecutionError as _0x1cfc9b,DateSystem as _0x4547e4,DependentOn as _0x1bcd22,Disposable as _0x1589db,ErrorService as _0x359424,ICommandService as _0x3ff846,IConfigService as _0x14686f,IPermissionService as _0x211d15,IResourceManagerService as _0xee5072,IUndoRedoService as _0x5153d9,IUniverInstanceService as _0x3414e2,Inject as _0x42d70a,Injector as _0xcce289,JSON1 as _0x370803,JSONX as _0x426ad9,ObjectMatrix as _0x4bc349,ObjectPermissionRuleModel as _0x4a896e,ObjectPermissionService as _0x1e71b2,Optional as _0x560f5b,PermissionStatus as _0x15f2b3,Plugin as _0xf65dbf,Tools as _0x30f9db,UniverInstanceType as _0x28d752,allocateBaseFormulaTableName as _0x3ec76b,assertBaseTableRecordIdentity as _0x136f40,createBaseFormulaTableNameMap as _0x49362b,createBaseRecordIdField as _0x5c3ee9,createIdentifier as _0x5d0ae0,dateKit as _0x5cea60,excelDateTimeSerial as _0xa41fad,excelSerialToDateTime as _0x156e38,generateRandomId as _0x3ba5f0,getBaseFormulaTableName as _0x5d9833,isBaseRecordIdFieldName as _0x37b436,isValidBaseRecordId as _0x3605be,merge as _0x18cc98,nameCharacterCheck as _0x5b975c,numfmt as _0x5e5ce5,regexp as _0x1ae19d,sequenceExecute as _0x47a83f,toDisposable as _0x5b4066,touchDependencies as _0x137ee0}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x4f3c26,IActiveDirtyManagerService as _0x35d62c,RemoveSuperTableMutation as _0x5d6472,SetFormulaCalculationResultMutation as _0x2d710f,SetSuperTableMutation as _0x33aa29,SetTriggerFormulaCalculationStartMutation as _0x46501c,UniverProFormulaEnginePlugin as _0x36289a,refactorFormulaUnitQualifier as _0x5981a8}from'@univerjs-pro/engine-formula';import{UnitAction as _0x391870,UnitObject as _0x56e21f}from'@univerjs/protocol';import{UniverLicensePlugin as _0x534d74}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x274988}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x1a1f33,FormulaResultApplicationType as _0x2001ae}from'@univerjs/engine-formula';function N(_0x1b83d5){const _0x77a462=_0x48d8;let _0x483dd8=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1ab)],_0x3caf20=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x215)],_0x23e744=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1e9)],_0x230351=_0x1b83d5['config'][_0x77a462(0x28e)],_0x43e002=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x274)];return typeof _0x483dd8!='string'||!_0x483dd8||typeof _0x3caf20!=_0x77a462(0x364)||_0x23e744!==void 0x0&&(typeof _0x23e744!=_0x77a462(0x471)||!_0x23e744)||_0x43e002!==void 0x0&&_0x43e002!==_0x170c14[_0x77a462(0x3a0)]||_0x230351!==void 0x0&&(!Array[_0x77a462(0x354)](_0x230351)||_0x230351[_0x77a462(0x257)](_0x545c8e=>typeof _0x545c8e!=_0x77a462(0x471)||!_0x545c8e)||new Set(_0x230351)['size']!==_0x230351[_0x77a462(0x458)])?null:{'targetTableId':_0x483dd8,'multiple':_0x3caf20,..._0x23e744?{'displayFieldId':_0x23e744}:{},..._0x230351?{'pickerFieldIds':[..._0x230351]}:{},..._0x43e002?{'relationRole':_0x43e002}:{}};}function Le(_0x268bd0){const _0xc3b165=_0x48d8;return typeof _0x268bd0!=_0xc3b165(0x471)||_0x268bd0===''?[]:_0x268bd0['split'](',');}function Re(_0x5b15c1){const _0x29cd03=_0x48d8;return Array[_0x29cd03(0x4dd)](new Set(_0x5b15c1))[_0x29cd03(0x4b5)](',');}function ze(_0x2cbe7a,_0x1d6e8e){const _0x350bb6=_0x48d8;if(typeof _0x2cbe7a!=_0x350bb6(0x471))return{'valid':!0x1,'reason':_0x350bb6(0x3ea)};if(_0x2cbe7a==='')return{'valid':!0x0};let _0x172c9b=_0x2cbe7a[_0x350bb6(0x1c5)](',');return!_0x1d6e8e&&_0x172c9b[_0x350bb6(0x458)]>0x1?{'valid':!0x1,'reason':_0x350bb6(0x404)}:_0x172c9b[_0x350bb6(0x257)](_0x1cea61=>!_0x3605be(_0x1cea61))||new Set(_0x172c9b)[_0x350bb6(0x473)]!==_0x172c9b[_0x350bb6(0x458)]||Re(_0x172c9b)!==_0x2cbe7a?{'valid':!0x1,'reason':_0x350bb6(0x3ec)}:{'valid':!0x0};}function Be(_0x101a62,_0x27ecee){const _0x30b013=_0x48d8;if(_0x27ecee[_0x30b013(0x33a)]!==_0x19bf94[_0x30b013(0x2bd)])return{'valid':!0x0};let _0x26dcc1=N(_0x27ecee),_0x2d46fe=_0x26dcc1?_0x101a62[_0x30b013(0x2ba)][_0x26dcc1[_0x30b013(0x1ab)]]:void 0x0;if(!_0x26dcc1||!_0x2d46fe)return{'valid':!0x1,'reason':_0x30b013(0x23c)};let _0x13e60c=[..._0x26dcc1[_0x30b013(0x1e9)]?[_0x26dcc1[_0x30b013(0x1e9)]]:[],..._0x26dcc1[_0x30b013(0x28e)]??[]][_0x30b013(0x22f)](_0x2082e0=>{const _0x5f537c=_0x30b013;let _0x5e01e4=_0x2d46fe['fields'][_0x2082e0];return!_0x5e01e4||_0x5e01e4[_0x5f537c(0x1cb)]===!0x0||_0x5e01e4[_0x5f537c(0x33a)]===_0x19bf94[_0x5f537c(0x44f)];});return _0x13e60c?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x13e60c+_0x30b013(0x3c0)}:{'valid':!0x0};}function Ve(_0x4227bd,_0x3c36d0,_0x3c0bce,_0x4f91ca={}){const _0x22a23c=_0x48d8;let _0x496096=N(_0x3c36d0);if(_0x3c36d0[_0x22a23c(0x33a)]!==_0x19bf94[_0x22a23c(0x2bd)]||!_0x496096)return{'valid':!0x1,'reason':_0x22a23c(0x436)};let _0x3dcbef=ze(_0x3c0bce,_0x496096[_0x22a23c(0x215)]);if(!_0x3dcbef[_0x22a23c(0x35c)]||_0x4f91ca[_0x22a23c(0x4ed)])return _0x3dcbef;let _0x23173c=_0x4227bd[_0x22a23c(0x2ba)][_0x496096['targetTableId']];if(!_0x23173c)return{'valid':!0x1,'reason':_0x22a23c(0x23c)};let _0x57feba=Le(_0x3c0bce)[_0x22a23c(0x22f)](_0x35e12d=>!_0x23173c['records'][_0x35e12d]);return _0x57feba?{'valid':!0x1,'reason':_0x22a23c(0x4e3)+_0x57feba+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0x3e67a7,_0x41f9ba){const _0x2ba1ea=_0x48d8;return Object['values'](_0x3e67a7[_0x2ba1ea(0x2ba)])[_0x2ba1ea(0x2a2)](_0x1bfd18=>Object[_0x2ba1ea(0x1da)](_0x1bfd18[_0x2ba1ea(0x480)])[_0x2ba1ea(0x2a2)](_0x4847f8=>{const _0x3ace01=_0x2ba1ea;let _0x398de2=_0x4847f8['type']===_0x19bf94['RecordLink']?N(_0x4847f8):null;return(_0x398de2==null?void 0x0:_0x398de2[_0x3ace01(0x1ab)])===_0x41f9ba?[{'tableId':_0x1bfd18['id'],'fieldId':_0x4847f8['id']}]:[];}));}const Ue=0x5,We='__base_hierarchy_parent__';let Ge=function(_0x4be870){const _0x34ee5c=_0x48d8;return _0x4be870[_0x34ee5c(0x420)]=_0x34ee5c(0x4a7),_0x4be870[_0x34ee5c(0x173)]=_0x34ee5c(0x33b),_0x4be870[_0x34ee5c(0x47b)]=_0x34ee5c(0x4e2),_0x4be870[_0x34ee5c(0x270)]='cycle',_0x4be870['MaxDepth']='maxDepth',_0x4be870[_0x34ee5c(0x3ad)]=_0x34ee5c(0x265),_0x4be870;}({});var P=class extends Error{constructor(_0x13fca8,_0x561d74=_0x354fcb(0x263)+_0x13fca8){const _0x40e87b=_0x354fcb;super(_0x561d74),this[_0x40e87b(0x286)]=_0x13fca8,this['name']='BaseHierarchyError';}};let Ke=function(_0x3ad43f){const _0x272854=_0x354fcb;return _0x3ad43f['UI']='ui',_0x3ad43f['Facade']=_0x272854(0x295),_0x3ad43f[_0x272854(0x3e2)]=_0x272854(0x4c7),_0x3ad43f[_0x272854(0x344)]=_0x272854(0x37e),_0x3ad43f[_0x272854(0x264)]='redo',_0x3ad43f[_0x272854(0x4d5)]=_0x272854(0x353),_0x3ad43f;}({});function F(_0x51ad2f,_0x18bbb6){const _0x2a57ac=_0x354fcb;if(!_0x18bbb6)return!0x1;let _0x2078e7=_0x51ad2f['fields'][_0x18bbb6];if(!_0x2078e7||_0x2078e7[_0x2a57ac(0x33a)]!==_0x19bf94[_0x2a57ac(0x2bd)])return!0x1;let _0x1049ba=N(_0x2078e7);return _0x1049ba?_0x1049ba[_0x2a57ac(0x1ab)]===_0x51ad2f['id']&&_0x1049ba[_0x2a57ac(0x215)]===!0x1:!0x1;}function qe(_0xe20b6c){const _0x9247e0=_0x354fcb;return[..._0xe20b6c['fieldOrder'],...Object[_0x9247e0(0x51b)](_0xe20b6c[_0x9247e0(0x480)])[_0x9247e0(0x397)](_0x3ddf28=>!_0xe20b6c[_0x9247e0(0x1e1)][_0x9247e0(0x231)](_0x3ddf28))['sort']()][_0x9247e0(0x22f)](_0x1b3c20=>{const _0x1428b5=_0x9247e0;var _0x258498;return F(_0xe20b6c,_0x1b3c20)?((_0x258498=N(_0xe20b6c[_0x1428b5(0x480)][_0x1b3c20]))==null?void 0x0:_0x258498[_0x1428b5(0x274)])===_0x170c14[_0x1428b5(0x3a0)]:!0x1;})??null;}function Je(_0x2df4d8){const _0x2d89a9=_0x354fcb;let _0x319d25=qe(_0x2df4d8);if(_0x319d25)return _0x319d25;let _0x25dc72=We,_0x503111=0x2;for(;_0x2df4d8[_0x2d89a9(0x480)][_0x25dc72];)_0x25dc72=We+'_'+_0x503111++;return _0x25dc72;}function Ye(_0x2a8c2a,_0x13c0fa=Je(_0x2a8c2a),_0x498dd7=_0x354fcb(0x44b)){const _0x194fbe=_0x354fcb;return{'id':_0x13c0fa,'name':_0x498dd7,'type':_0x19bf94[_0x194fbe(0x2bd)],'config':{'targetTableId':_0x2a8c2a['id'],'multiple':!0x1,'displayFieldId':_0x2a8c2a['primaryFieldId'],'pickerFieldIds':[_0x2a8c2a[_0x194fbe(0x4cf)]],'relationRole':_0x170c14[_0x194fbe(0x3a0)]}};}function Xe(_0x4f65c1){let _0xdd503e=qe(_0x4f65c1);return _0xdd503e?[_0xdd503e]:[];}function Ze(_0x1710b0,_0xe482a2){const _0x40c6a9=_0x354fcb;let _0x576bc1=[...Xe(_0x1710b0)][_0x40c6a9(0x397)](_0x5a419a=>_0xe482a2[_0x40c6a9(0x257)](_0x181ece=>Object[_0x40c6a9(0x32b)]['hasOwnProperty'][_0x40c6a9(0x331)](_0x181ece[_0x40c6a9(0x1da)],_0x5a419a)));if(!_0x576bc1[_0x40c6a9(0x458)])return[];let _0x167b9={..._0x1710b0['records']};_0xe482a2['forEach'](_0x3f1033=>{const _0x1d4aa2=_0x40c6a9;let _0x59a4fe=_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]];_0x59a4fe&&(_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]]={..._0x59a4fe,'values':{..._0x59a4fe[_0x1d4aa2(0x1da)],..._0x3f1033[_0x1d4aa2(0x1da)]}});});let _0x23b45a={..._0x1710b0,'records':_0x167b9},_0xa32648=[];return _0x576bc1[_0x40c6a9(0x461)](_0x4df01d=>{const _0x440053=_0x40c6a9;let _0x7b3f82=tt(_0x1710b0,_0x4df01d),_0x3d6de2=tt(_0x23b45a,_0x4df01d);for(let [_0x588e49,_0x4a432]of _0x3d6de2[_0x440053(0x243)]){let _0x155f44=_0xe482a2[_0x440053(0x257)](_0x22b0fa=>_0x22b0fa[_0x440053(0x4bb)]===_0x588e49&&Object[_0x440053(0x32b)][_0x440053(0x42f)]['call'](_0x22b0fa[_0x440053(0x1da)],_0x4df01d));if(_0x7b3f82['invalidReasonByRecordId'][_0x440053(0x4a8)](_0x588e49)!==_0x4a432||_0x155f44)throw new P($e(_0x4a432));}_0xe482a2[_0x440053(0x461)](_0x1e3c17=>{const _0x431dca=_0x440053;if(!Object[_0x431dca(0x32b)][_0x431dca(0x42f)][_0x431dca(0x331)](_0x1e3c17['values'],_0x4df01d))return;let _0x324725=_0x7b3f82[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17['recordId'])??null,_0x55b7a5=_0x3d6de2[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17[_0x431dca(0x4bb)])??null;_0x324725!==_0x55b7a5&&_0xa32648[_0x431dca(0x1f3)]({'tableId':_0x1710b0['id'],'fieldId':_0x4df01d,'recordId':_0x1e3c17[_0x431dca(0x4bb)],'oldParentRecordId':_0x324725,'parentRecordId':_0x55b7a5});});}),_0xa32648;}function Qe(_0x4dc622,_0x365b08){const _0x5e4a26=_0x354fcb;let _0x6ea3c=_0x365b08[_0x5e4a26(0x29b)](_0x5ce93d=>_0x5ce93d['id']);if(new Set(_0x6ea3c)[_0x5e4a26(0x473)]!==_0x6ea3c['length']||_0x6ea3c['some'](_0x7c3952=>_0x4dc622[_0x5e4a26(0x45a)][_0x7c3952]))return[];let _0x293c95=Xe(_0x4dc622),_0xd9895c=_0x293c95[_0x5e4a26(0x458)]?null:Je(_0x4dc622),_0x27f219=[..._0x293c95,..._0xd9895c&&_0x365b08['some'](_0x3c6499=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x3c6499[_0x5e4a26(0x1da)],_0xd9895c))?[_0xd9895c]:[]]['filter'](_0x74737c=>_0x365b08[_0x5e4a26(0x257)](_0x372523=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x372523[_0x5e4a26(0x1da)],_0x74737c)));if(!_0x27f219[_0x5e4a26(0x458)])return[];let _0x32087e={..._0x4dc622,'records':{..._0x4dc622[_0x5e4a26(0x45a)],...Object[_0x5e4a26(0x2e8)](_0x365b08[_0x5e4a26(0x29b)](_0x3fb6a5=>[_0x3fb6a5['id'],_0x3fb6a5]))},'recordOrder':[..._0x4dc622[_0x5e4a26(0x22d)]??[],..._0x365b08[_0x5e4a26(0x29b)](_0x1bada3=>_0x1bada3['id'])]},_0x5864cb=[];return _0x27f219['forEach'](_0x2ebd84=>{const _0x24cb3f=_0x5e4a26;let _0x5d50f7=tt(_0x32087e,_0x2ebd84);_0x365b08[_0x24cb3f(0x461)](_0xeb6c0=>{const _0x57ceab=_0x24cb3f;let _0x879faa=_0x5d50f7[_0x57ceab(0x243)]['get'](_0xeb6c0['id']);if(_0x879faa)throw new P($e(_0x879faa));let _0x559bbf=_0x5d50f7[_0x57ceab(0x36e)][_0x57ceab(0x4a8)](_0xeb6c0['id'])??null;_0x559bbf&&_0x5864cb[_0x57ceab(0x1f3)]({'tableId':_0x4dc622['id'],'fieldId':_0x2ebd84,'recordId':_0xeb6c0['id'],'oldParentRecordId':null,'parentRecordId':_0x559bbf});});}),_0x5864cb;}function $e(_0x3d7907){const _0x58b07c=_0x354fcb;switch(_0x3d7907){case _0x3f9b5e[_0x58b07c(0x1a2)]:return _0x58b07c(0x33b);case _0x3f9b5e[_0x58b07c(0x47b)]:return'selfParent';case _0x3f9b5e[_0x58b07c(0x270)]:return _0x58b07c(0x363);case _0x3f9b5e[_0x58b07c(0x3ca)]:return _0x58b07c(0x228);}}function et(_0x260145,_0xfbbbe0){const _0x4ea0f7=_0x354fcb;let _0x2d07c6=new Set(_0xfbbbe0),_0x5d3097=Xe(_0x260145);return Object[_0x4ea0f7(0x1da)](_0x260145['records'])[_0x4ea0f7(0x2a2)](_0x7bae6b=>_0x2d07c6[_0x4ea0f7(0x23f)](_0x7bae6b['id'])?[]:Array[_0x4ea0f7(0x4dd)](_0x5d3097)[_0x4ea0f7(0x2a2)](_0x482141=>{const _0x4fe4f4=_0x4ea0f7;let _0x347cbf=Le(_0x7bae6b['values'][_0x482141])[0x0]??null;return _0x347cbf&&_0x2d07c6[_0x4fe4f4(0x23f)](_0x347cbf)?[{'tableId':_0x260145['id'],'fieldId':_0x482141,'recordId':_0x7bae6b['id'],'oldParentRecordId':_0x347cbf,'parentRecordId':null}]:[];}));}function tt(_0x46f903,_0xdc4986,_0x3f01e6=_0x46f903[_0x354fcb(0x22d)]??Object[_0x354fcb(0x51b)](_0x46f903['records'])){const _0x1e22db=_0x354fcb;if((_0x46f903[_0x1e22db(0x480)][_0xdc4986]||_0xdc4986!==Je(_0x46f903))&&!F(_0x46f903,_0xdc4986))throw Error(_0x1e22db(0x2dd)+_0xdc4986+_0x1e22db(0x1f1));let _0x1d7344=at(_0x46f903,_0x3f01e6),_0x452be3=new Map(),_0x4b1151=new Map();for(let _0x2860f7 of _0x1d7344){var _0x21c3c3;let _0x42ee2=Le((_0x21c3c3=_0x46f903[_0x1e22db(0x45a)][_0x2860f7])==null?void 0x0:_0x21c3c3[_0x1e22db(0x1da)][_0xdc4986])[0x0]??null;_0x42ee2?_0x42ee2===_0x2860f7?(_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e['SelfParent'])):_0x46f903['records'][_0x42ee2]?_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,_0x42ee2):(_0x452be3['set'](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e[_0x1e22db(0x1a2)])):_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null);}ot(_0x452be3,_0x4b1151,_0x1d7344),st(_0x452be3,_0x4b1151,_0x1d7344);let _0x45723e=new Map(_0x1d7344[_0x1e22db(0x29b)]((_0x258430,_0x21b053)=>[_0x258430,_0x21b053])),_0x44fa53=new Map();for(let _0x53d107 of _0x1d7344){let _0x59fdbf=_0x452be3[_0x1e22db(0x4a8)](_0x53d107)??null,_0x4fc43a=_0x44fa53[_0x1e22db(0x4a8)](_0x59fdbf)??[];_0x4fc43a['push'](_0x53d107),_0x44fa53[_0x1e22db(0x1a1)](_0x59fdbf,_0x4fc43a);}_0x44fa53[_0x1e22db(0x461)](_0xa07234=>_0xa07234['sort']((_0x5c1fdd,_0x4dee8e)=>(_0x45723e['get'](_0x5c1fdd)??0x0)-(_0x45723e[_0x1e22db(0x4a8)](_0x4dee8e)??0x0)));let _0x4c273e=_0x44fa53[_0x1e22db(0x4a8)](null)??[],_0x18e716=new Map(),_0x55680d=new Map(),_0x50995e=[],_0x5814db=(_0x5e2b94,_0x16f5be)=>{const _0x35fc6b=_0x1e22db;_0x18e716[_0x35fc6b(0x1a1)](_0x5e2b94,_0x16f5be),_0x50995e['push'](_0x5e2b94);let _0x47033a=0x0;for(let _0x1ff62a of _0x44fa53['get'](_0x5e2b94)??[])_0x47033a=Math[_0x35fc6b(0x1b3)](_0x47033a,0x1+_0x5814db(_0x1ff62a,_0x16f5be+0x1));return _0x55680d['set'](_0x5e2b94,_0x47033a),_0x47033a;};return _0x4c273e[_0x1e22db(0x461)](_0x2554f6=>_0x5814db(_0x2554f6,0x0)),{'fieldId':_0xdc4986,'parentByRecordId':_0x452be3,'childrenByParentId':_0x44fa53,'depthByRecordId':_0x18e716,'subtreeHeightByRecordId':_0x55680d,'invalidReasonByRecordId':_0x4b1151,'rootRecordIds':_0x4c273e,'orderedRecordIds':_0x50995e};}function nt(_0x1f1b45,_0x3ae769,_0x34ab72=new Set(_0x3ae769[_0x354fcb(0x29b)](_0x5c5efa=>_0x5c5efa[_0x354fcb(0x4bb)]))){const _0x6d71cd=_0x354fcb;let _0xd64451=new Set(_0x34ab72);for(let _0x28499c of _0x34ab72){let _0x3c5ef6=_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x28499c)??null;for(;_0x3c5ef6;)_0xd64451[_0x6d71cd(0x35e)](_0x3c5ef6),_0x3c5ef6=_0x1f1b45[_0x6d71cd(0x36e)][_0x6d71cd(0x4a8)](_0x3c5ef6)??null;}let _0x879cdd=new Map(_0x3ae769['map'](_0x950456=>[_0x950456['recordId'],_0x950456])),_0xfc9f29=_0x1f1b45[_0x6d71cd(0x1a3)][_0x6d71cd(0x397)](_0x330e2a=>_0xd64451['has'](_0x330e2a)),_0x148631=_0xfc9f29[_0x6d71cd(0x2a2)](_0xf29d89=>{let _0x53a751=_0x879cdd['get'](_0xf29d89);return _0x53a751?[_0x53a751]:[];}),_0x5c8450={};for(let _0x28d485=0x0;_0x28d485<_0xfc9f29[_0x6d71cd(0x458)];_0x28d485++){let _0x295a7d=_0xfc9f29[_0x28d485];_0x5c8450[_0x295a7d]={'recordId':_0x295a7d,'parentRecordId':_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??null,'depth':_0x1f1b45[_0x6d71cd(0x3ff)][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'directChildCount':(_0x1f1b45['childrenByParentId']['get'](_0x295a7d)??[])['length'],'subtreeHeight':_0x1f1b45['subtreeHeightByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'subtreeEndIndex':_0x28d485,'invalidReason':_0x1f1b45['invalidReasonByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)};}let _0x1517c4=[];for(let _0x2262d0=0x0;_0x2262d0<_0xfc9f29[_0x6d71cd(0x458)];_0x2262d0++){let _0x3c73d8=_0xfc9f29[_0x2262d0],_0x3582ae=_0x5c8450[_0x3c73d8][_0x6d71cd(0x18e)];for(;_0x1517c4[_0x6d71cd(0x458)]&&_0x1517c4[_0x1517c4[_0x6d71cd(0x458)]-0x1][_0x6d71cd(0x18e)]>=_0x3582ae;){let _0x46ac08=_0x1517c4[_0x6d71cd(0x1a5)]();_0x5c8450[_0x46ac08[_0x6d71cd(0x4bb)]]['subtreeEndIndex']=_0x2262d0-0x1;}_0x1517c4[_0x6d71cd(0x1f3)]({'recordId':_0x3c73d8,'depth':_0x3582ae});}return _0x1517c4[_0x6d71cd(0x461)](({recordId:_0xa8e6f9})=>{const _0xd6daaf=_0x6d71cd;_0x5c8450[_0xa8e6f9]['subtreeEndIndex']=_0xfc9f29[_0xd6daaf(0x458)]-0x1;}),{'rows':_0x148631,'hierarchy':{'fieldId':_0x1f1b45[_0x6d71cd(0x46e)],'rootRecordIds':_0x1f1b45[_0x6d71cd(0x1b5)][_0x6d71cd(0x397)](_0x11bc19=>_0xd64451[_0x6d71cd(0x23f)](_0x11bc19)),'orderedRecordIds':_0xfc9f29,'nodes':_0x5c8450}};}function rt(_0x2c46e7,_0x328b1d){const _0x336543=_0x354fcb;if(!_0x2c46e7[_0x336543(0x51a)]||!(_0x328b1d!=null&&_0x328b1d[_0x336543(0x473)]))return _0x2c46e7[_0x336543(0x490)];let _0x29584b=[],_0x1b4bd0=0x0;for(;_0x1b4bd0<_0x2c46e7['rows'][_0x336543(0x458)];){let _0x4cf535=_0x2c46e7['rows'][_0x1b4bd0];_0x29584b['push'](_0x4cf535);let _0x4a9393=_0x2c46e7[_0x336543(0x51a)][_0x336543(0x3fc)][_0x4cf535[_0x336543(0x4bb)]];_0x1b4bd0=_0x328b1d[_0x336543(0x23f)](_0x4cf535['recordId'])&&_0x4a9393?_0x4a9393[_0x336543(0x4ca)]+0x1:_0x1b4bd0+0x1;}return _0x29584b;}function it(_0x1d54eb,_0x3f128a,_0x4563a2){const _0x20b196=_0x354fcb;if(!_0x4563a2)return{'valid':!0x0};if(_0x3f128a===_0x4563a2)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x47b)]};let _0x2ad891=_0x4563a2;for(;_0x2ad891;){if(_0x2ad891===_0x3f128a)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x270)]};_0x2ad891=_0x1d54eb[_0x20b196(0x36e)]['get'](_0x2ad891)??null;}return(_0x1d54eb['depthByRecordId'][_0x20b196(0x4a8)](_0x4563a2)??0x0)+0x1+(_0x1d54eb['subtreeHeightByRecordId'][_0x20b196(0x4a8)](_0x3f128a)??0x0)>=0x5?{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x3ca)]}:{'valid':!0x0};}function at(_0x174ad5,_0x59b925){const _0x2eecdf=_0x354fcb;let _0x33db10=new Set(),_0x136c88=[];for(let _0x6c711f of _0x59b925)_0x174ad5['records'][_0x6c711f]&&!_0x33db10[_0x2eecdf(0x23f)](_0x6c711f)&&(_0x33db10[_0x2eecdf(0x35e)](_0x6c711f),_0x136c88['push'](_0x6c711f));return Object['keys'](_0x174ad5[_0x2eecdf(0x45a)])[_0x2eecdf(0x3db)]()[_0x2eecdf(0x461)](_0x2a55a7=>{const _0x49513f=_0x2eecdf;_0x33db10[_0x49513f(0x23f)](_0x2a55a7)||_0x136c88['push'](_0x2a55a7);}),_0x136c88;}function ot(_0x13650d,_0x1ddcaa,_0x24d18d){const _0x27b35f=_0x354fcb;let _0x16327c=new Set();for(let _0x1dd87e of _0x24d18d){if(_0x16327c[_0x27b35f(0x23f)](_0x1dd87e))continue;let _0x2d0a49=[],_0x914088=new Map(),_0x3767bf=_0x1dd87e;for(;_0x3767bf&&!_0x16327c[_0x27b35f(0x23f)](_0x3767bf);){let _0x46002c=_0x914088[_0x27b35f(0x4a8)](_0x3767bf);if(_0x46002c!=null){let _0x23cbf2=[..._0x2d0a49[_0x27b35f(0x192)](_0x46002c)][_0x27b35f(0x3db)]()[_0x27b35f(0x1a5)]();_0x13650d[_0x27b35f(0x1a1)](_0x23cbf2,null),_0x1ddcaa[_0x27b35f(0x1a1)](_0x23cbf2,_0x3f9b5e[_0x27b35f(0x270)]);break;}_0x914088[_0x27b35f(0x1a1)](_0x3767bf,_0x2d0a49[_0x27b35f(0x458)]),_0x2d0a49[_0x27b35f(0x1f3)](_0x3767bf),_0x3767bf=_0x13650d['get'](_0x3767bf)??null;}_0x2d0a49[_0x27b35f(0x461)](_0xe79556=>_0x16327c[_0x27b35f(0x35e)](_0xe79556));}}function st(_0x552bd3,_0x4e1875,_0x401111){const _0x26109c=_0x354fcb;let _0x23a337=new Map(),_0x314047=_0x2a2789=>{const _0x2c27f1=_0x48d8;let _0x530355=_0x23a337[_0x2c27f1(0x4a8)](_0x2a2789);if(_0x530355!=null)return _0x530355;let _0x2e186e=_0x552bd3[_0x2c27f1(0x4a8)](_0x2a2789)??null;if(!_0x2e186e)return _0x23a337[_0x2c27f1(0x1a1)](_0x2a2789,0x0),0x0;let _0x43bfad=_0x314047(_0x2e186e)+0x1;return _0x43bfad>=0x5?(_0x552bd3[_0x2c27f1(0x1a1)](_0x2a2789,null),_0x4e1875[_0x2c27f1(0x1a1)](_0x2a2789,_0x3f9b5e[_0x2c27f1(0x3ca)]),_0x23a337['set'](_0x2a2789,0x0),0x0):(_0x23a337['set'](_0x2a2789,_0x43bfad),_0x43bfad);};_0x401111[_0x26109c(0x461)](_0x314047);}let ct=0x0;function lt(){const _0x20b3c1=_0x354fcb;if(globalThis[_0x20b3c1(0x4a1)]===!0x0)return!0x0;try{let _0x72253=typeof location>'u'?'':location[_0x20b3c1(0x32c)],_0x364ea6=new URLSearchParams(_0x72253);if(_0x364ea6[_0x20b3c1(0x4a8)]('basePerf')==='1'||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x33c))===_0x20b3c1(0x468)||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x3b4))==='1')return!0x0;}catch{}try{let _0x791da2=typeof localStorage>'u'?null:localStorage['getItem'](_0x20b3c1(0x4ae));return _0x791da2==='1'||_0x791da2===_0x20b3c1(0x468);}catch{return!0x1;}}function I(_0x2c7f0d,_0x8f94f1,_0x51d304){const _0xd21ba7=_0x354fcb;if(!lt())return _0x8f94f1();let _0x4218d1=dt(),_0x769fb=_0xd21ba7(0x18c)+ct++;ft(_0x769fb+_0xd21ba7(0x188));try{return _0x8f94f1();}finally{let _0xea747=dt()-_0x4218d1;ft(_0x769fb+_0xd21ba7(0x327)),pt(_0x2c7f0d,_0x769fb+':start',_0x769fb+':end'),ut(_0x2c7f0d,_0xea747,_0x51d304);}}function ut(_0x3817b1,_0xf716c8,_0x51495f){const _0x452fbf=_0x354fcb;if(!lt())return;let _0x4bbbec=Math['round'](_0xf716c8*0x64)/0x64,_0x47ed2e=_0x51495f&&Object['keys'](_0x51495f)[_0x452fbf(0x458)]?'\x20'+JSON[_0x452fbf(0x449)](_0x51495f):'';console[_0x452fbf(0x38e)]('[BasePerf]\x20'+_0x3817b1+':\x20'+_0x4bbbec+'ms'+_0x47ed2e);}function dt(){const _0x44ffb1=_0x354fcb;return typeof performance<'u'&&typeof performance['now']=='function'?performance['now']():Date[_0x44ffb1(0x181)]();}function ft(_0x832b23){try{if(typeof performance<'u'){var _0x5ed05c,_0x3f3c75;(_0x5ed05c=(_0x3f3c75=performance)['mark'])==null||_0x5ed05c['call'](_0x3f3c75,_0x832b23);}}catch{}}function pt(_0x3d5036,_0x31ddb1,_0x36d7f8){const _0x21b5e9=_0x354fcb;try{if(typeof performance<'u'){var _0x53bdbc,_0x49ef63;(_0x53bdbc=(_0x49ef63=performance)[_0x21b5e9(0x1c4)])==null||_0x53bdbc[_0x21b5e9(0x331)](_0x49ef63,_0x21b5e9(0x46d)+_0x3d5036,_0x31ddb1,_0x36d7f8);}}catch{}}function L(_0x1179e2){const _0x4eec3f=_0x354fcb;var _0x315456;return lt()?I(_0x4eec3f(0x2fb),()=>mt(_0x1179e2),{'tableId':_0x1179e2['id'],'records':Object[_0x4eec3f(0x51b)](_0x1179e2['records']??{})[_0x4eec3f(0x458)],'fields':_0x1179e2[_0x4eec3f(0x1e1)]['length'],'hasRecordOrder':!!((_0x315456=_0x1179e2[_0x4eec3f(0x22d)])!=null&&_0x315456[_0x4eec3f(0x458)])}):mt(_0x1179e2);}function mt(_0x1866c9){const _0x409962=_0x354fcb;var _0x3a7265;let _0x21e0ea=_0x1866c9[_0x409962(0x45a)]??{},_0x429bf4=_0x1866c9[_0x409962(0x480)]??{},_0x3fd4fb=((_0x3a7265=_0x1866c9[_0x409962(0x22d)])==null?void 0x0:_0x3a7265[_0x409962(0x397)](_0x20b093=>_0x21e0ea[_0x20b093]))??[],_0x45f65a=new Set(_0x3fd4fb),_0x592df8=[];for(let _0x4c3d15 of Object[_0x409962(0x1da)](_0x21e0ea))_0x45f65a[_0x409962(0x23f)](_0x4c3d15['id'])||_0x592df8[_0x409962(0x1f3)](_0x4c3d15);let _0x3b623b=_0x592df8[_0x409962(0x458)]?[..._0x3fd4fb,...Rt(_0x592df8)]:_0x3fd4fb,_0x4ef437=_0x1866c9[_0x409962(0x1e1)][_0x409962(0x397)](_0x44d1e5=>_0x429bf4[_0x44d1e5]),_0x4389a9={..._0x1866c9[_0x409962(0x474)]??{}},_0x4d5dbb={..._0x1866c9[_0x409962(0x242)]??{}},_0x51223f={..._0x1866c9[_0x409962(0x1cf)]??{}};_0x1866c9[_0x409962(0x22d)]=_0x3b623b,_0x1866c9[_0x409962(0x290)]={},_0x1866c9[_0x409962(0x474)]={},_0x1866c9[_0x409962(0x288)]={},_0x1866c9[_0x409962(0x242)]={},_0x1866c9[_0x409962(0x1cf)]={},_0x1866c9['resources']={..._0x1866c9[_0x409962(0x358)]??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x47e)]={..._0x1866c9[_0x409962(0x358)]['attachmentSets']??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x499)]={..._0x1866c9['resources'][_0x409962(0x499)]??{}};let _0x599f51=_0x1866c9[_0x409962(0x290)],_0x557e8d=_0x1866c9['rowId'],_0x479f94=_0x1866c9['colIndex'],_0x5948d1=_0x1866c9[_0x409962(0x242)],_0x5e01af=_0x1866c9[_0x409962(0x1cf)];return _0x3b623b['forEach']((_0x18178d,_0x5f4e48)=>{_0x599f51[_0x18178d]=_0x5f4e48,_0x557e8d[_0x5f4e48]=_0x18178d;}),_0x4ef437[_0x409962(0x461)]((_0x2364b8,_0x4219a1)=>{_0x479f94[_0x2364b8]=_0x4219a1,_0x5948d1[_0x4219a1]=_0x2364b8;}),Object[_0x409962(0x1e2)](_0x51223f)[_0x409962(0x461)](([_0x31bcbb,_0x117267])=>{const _0x4ce48d=_0x409962;let _0xd4895b=Number(_0x31bcbb),_0x58f536=_0x4389a9[_0xd4895b]??_0x3b623b[_0xd4895b],_0x441b62=_0x58f536?_0x599f51[_0x58f536]:void 0x0;_0x441b62!=null&&(_0x5e01af[_0x441b62]={..._0x5e01af[_0x441b62]??{}},Object['entries'](_0x117267??{})[_0x4ce48d(0x461)](([_0x5466d4,_0x439216])=>{let _0x75ed5c=Number(_0x5466d4),_0x3906fe=_0x4d5dbb[_0x75ed5c]??_0x4ef437[_0x75ed5c],_0x2280c2=_0x3906fe?_0x479f94[_0x3906fe]:void 0x0;_0x2280c2!=null&&(_0x5e01af[_0x441b62][_0x2280c2]=St(_0x439216));}));}),Object[_0x409962(0x1da)](_0x21e0ea)[_0x409962(0x461)](_0x1b770a=>{const _0x590d78=_0x409962;let _0x1ecdf4=_0x599f51[_0x1b770a['id']];_0x1ecdf4!=null&&(_0x1b770a[_0x590d78(0x1da)]={..._0x1b770a[_0x590d78(0x1da)]??{},[_0x3b44b5]:_0x1b770a['id']},_0x5e01af[_0x1ecdf4]={..._0x5e01af[_0x1ecdf4]??{},0x0:{'v':_0x1b770a['id'],'t':_0x149f0a[_0x590d78(0x475)]}},Object[_0x590d78(0x1e2)](_0x1b770a['values']??{})[_0x590d78(0x461)](([_0x301044,_0xdfa354])=>{const _0x45f318=_0x590d78;let _0x5a6e6f=_0x429bf4[_0x301044];(_0x5a6e6f==null?void 0x0:_0x5a6e6f[_0x45f318(0x33a)])===_0x19bf94[_0x45f318(0x46f)]&&Dt(_0x1866c9,_0x1b770a['id'],_0x301044,_0xdfa354);let _0x49b454=_0x479f94[_0x301044];if(_0x49b454==null)return;let _0x317cce=_0x5e01af[_0x1ecdf4][_0x49b454];(_0x317cce==null||jt(_0x317cce,_0x5a6e6f,_0xdfa354))&&(_0x5e01af[_0x1ecdf4][_0x49b454]=xt(_0xdfa354,_0x5a6e6f));}));}),_0x1866c9;}function ht(_0x3edcee,_0x593d25){const _0x553a52=_0x354fcb;return _0x3edcee[_0x553a52(0x45a)]=Object[_0x553a52(0x2e8)](Object['entries'](_0x3edcee[_0x553a52(0x45a)])[_0x553a52(0x29b)](([_0x46ef20,_0x1ddbe6])=>[_0x46ef20,{..._0x1ddbe6}])),L(_0x3edcee),Object[_0x553a52(0x1e2)](_0x3edcee[_0x553a52(0x474)]??{})[_0x553a52(0x461)](([_0x423484,_0x5c3120])=>{const _0x1528c8=_0x553a52;var _0x22c524;let _0xe623bc=Number(_0x423484),_0x4a0a64=_0x3edcee[_0x1528c8(0x45a)][_0x5c3120];_0x4a0a64&&(_0x4a0a64['values']={..._0x4a0a64['values']??{}},Object[_0x1528c8(0x1e2)](((_0x22c524=_0x3edcee[_0x1528c8(0x1cf)])==null?void 0x0:_0x22c524[_0xe623bc])??{})['forEach'](([_0x42420b,_0x56b0ce])=>{const _0x1b2133=_0x1528c8;var _0x2c2288;let _0x4b588d=(_0x2c2288=_0x3edcee[_0x1b2133(0x242)])==null?void 0x0:_0x2c2288[Number(_0x42420b)];_0x4b588d&&_0x593d25&&!_0x593d25(_0x5c3120,_0x4b588d)||(_0x4b588d===_0x3b44b5?_0x4a0a64[_0x1b2133(0x1da)][_0x3b44b5]=_0x4a0a64['id']:_0x4b588d&&(_0x4a0a64[_0x1b2133(0x1da)][_0x4b588d]=Ct(_0x56b0ce,_0x3edcee[_0x1b2133(0x480)][_0x4b588d],_0x3edcee,_0x5c3120)));}));}),_0x3edcee;}function gt(_0x46b949,_0x58a910){const _0x298e2f=_0x354fcb;for(let {row:_0x26d9f3,col:_0xa54b4d}of _0x58a910){var _0x442096,_0x52bf24,_0x3284fb;let _0xe9a244=(_0x442096=_0x46b949['rowId'])==null?void 0x0:_0x442096[_0x26d9f3],_0x1cb47c=(_0x52bf24=_0x46b949[_0x298e2f(0x242)])==null?void 0x0:_0x52bf24[_0xa54b4d],_0x185f25=_0xe9a244?_0x46b949[_0x298e2f(0x45a)][_0xe9a244]:void 0x0;if(!_0x185f25||!_0x1cb47c)continue;if(_0x1cb47c===_0x3b44b5){_0x185f25[_0x298e2f(0x1da)][_0x3b44b5]=_0x185f25['id'];continue;}let _0x305f8c=(_0x3284fb=_0x46b949[_0x298e2f(0x1cf)])==null||(_0x3284fb=_0x3284fb[_0x26d9f3])==null?void 0x0:_0x3284fb[_0xa54b4d];(_0x305f8c!=null||Object['prototype'][_0x298e2f(0x42f)]['call'](_0x185f25[_0x298e2f(0x1da)]??{},_0x1cb47c))&&(_0x185f25[_0x298e2f(0x1da)]={..._0x185f25['values']??{}},_0x185f25[_0x298e2f(0x1da)][_0x1cb47c]=Ct(_0x305f8c,_0x46b949[_0x298e2f(0x480)][_0x1cb47c],_0x46b949,_0xe9a244));}return _0x46b949;}function _t(_0x5e47d4,_0x134246,_0x1ddd02){const _0x2dd944=_0x354fcb;var _0x1b3194,_0x130eef,_0x2d1497,_0x59c31c,_0xe2c45b,_0x5a927e;let _0x494ff6=(_0x1b3194=_0x5e47d4[_0x2dd944(0x290)])==null?void 0x0:_0x1b3194[_0x134246],_0x46ef39=(_0x130eef=_0x5e47d4[_0x2dd944(0x288)])==null?void 0x0:_0x130eef[_0x1ddd02];if(_0x494ff6!=null&&_0x46ef39!=null&&((_0x2d1497=_0x5e47d4[_0x2dd944(0x474)])==null?void 0x0:_0x2d1497[_0x494ff6])===_0x134246&&((_0x59c31c=_0x5e47d4[_0x2dd944(0x242)])==null?void 0x0:_0x59c31c[_0x46ef39])===_0x1ddd02)return{'row':_0x494ff6,'col':_0x46ef39};let _0x104a5b=L(_0x5e47d4),_0x26db20=(_0xe2c45b=_0x104a5b['rowIndex'])==null?void 0x0:_0xe2c45b[_0x134246],_0xf9b7ec=(_0x5a927e=_0x104a5b[_0x2dd944(0x288)])==null?void 0x0:_0x5a927e[_0x1ddd02];return _0x26db20==null||_0xf9b7ec==null?null:{'row':_0x26db20,'col':_0xf9b7ec};}function vt(_0x1b2953,_0x3007dc,_0x294437){const _0x5e57c0=_0x354fcb;var _0x52ba47;let _0x2f519d=_t(_0x1b2953,_0x3007dc,_0x294437);if(_0x2f519d)return(_0x52ba47=_0x1b2953['cellData'])==null||(_0x52ba47=_0x52ba47[_0x2f519d[_0x5e57c0(0x21b)]])==null?void 0x0:_0x52ba47[_0x2f519d[_0x5e57c0(0x1ea)]];}function yt(_0x56728d,_0x5dbb20,_0x49af4e){const _0x552811=_0x354fcb;var _0x2288a8;let _0x4deeae=vt(_0x56728d,_0x5dbb20,_0x49af4e),_0x3cb7d8=_0x56728d[_0x552811(0x480)][_0x49af4e];if((_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x46f)]){var _0x4b0723;return Ot(_0x56728d,_0x5dbb20,_0x49af4e)??kt((_0x4b0723=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x4b0723=_0x4b0723[_0x552811(0x1da)])==null?void 0x0:_0x4b0723[_0x49af4e]);}if(Mt(_0x3cb7d8)||Nt(_0x3cb7d8)||(_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x4db)]){var _0x12d76d;let _0x1afa7b=(_0x12d76d=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x12d76d=_0x12d76d['values'])==null?void 0x0:_0x12d76d[_0x49af4e];return _0x1afa7b!=null&&_0x1afa7b!==''?At(_0x1afa7b,_0x3cb7d8):Ct(_0x4deeae,_0x3cb7d8,_0x56728d,_0x5dbb20);}return _0x4deeae&&Object[_0x552811(0x32b)][_0x552811(0x42f)]['call'](_0x4deeae,'v')?_0x4deeae['v']??null:((_0x2288a8=_0x56728d['records'][_0x5dbb20])==null||(_0x2288a8=_0x2288a8[_0x552811(0x1da)])==null?void 0x0:_0x2288a8[_0x49af4e])??null;}function bt(_0x175439,_0x3a5e47,_0x1363e3){const _0x1186b4=_0x354fcb;var _0x202b2e;let _0x12e467=vt(_0x175439,_0x3a5e47,_0x1363e3);if(_0x12e467&&Object[_0x1186b4(0x32b)][_0x1186b4(0x42f)][_0x1186b4(0x331)](_0x12e467,'v'))return _0x12e467['v']??null;let _0x158044=_0x175439[_0x1186b4(0x480)][_0x1363e3];return xt(((_0x202b2e=_0x175439[_0x1186b4(0x45a)][_0x3a5e47])==null||(_0x202b2e=_0x202b2e[_0x1186b4(0x1da)])==null?void 0x0:_0x202b2e[_0x1363e3])??null,_0x158044)['v']??null;}function xt(_0x2ee3a8,_0x40cdb1){const _0x2ecbf9=_0x354fcb;if(Tt(_0x2ee3a8))return(_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x46f)]?{..._0x2ee3a8,'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]}:St(_0x2ee3a8);if((_0x40cdb1==null?void 0x0:_0x40cdb1[_0x2ecbf9(0x33a)])===_0x19bf94[_0x2ecbf9(0x46f)])return{'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]};if(Nt(_0x40cdb1)){let _0x2c44bb=Pt(_0x2ee3a8);return{'v':_0x2c44bb,'t':Lt(_0x2c44bb)};}if(Mt(_0x40cdb1))return{'v':Ft(_0x2ee3a8)[_0x2ecbf9(0x4b5)](',\x20'),'t':_0x149f0a[_0x2ecbf9(0x475)]};if((_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x4db)]&&_0x2ee3a8&&typeof _0x2ee3a8==_0x2ecbf9(0x269)&&!Array[_0x2ecbf9(0x354)](_0x2ee3a8)){let _0x30944f=_0x2ee3a8;return{'v':String(_0x30944f[_0x2ecbf9(0x4d2)]??_0x30944f[_0x2ecbf9(0x1c7)]??''),'t':_0x149f0a[_0x2ecbf9(0x475)]};}return _0x2ee3a8===null||typeof _0x2ee3a8==_0x2ecbf9(0x471)||typeof _0x2ee3a8=='number'||typeof _0x2ee3a8==_0x2ecbf9(0x364)?{'v':_0x2ee3a8,'t':Lt(_0x2ee3a8)}:{'v':null,'t':null};}function St(_0x11313e){let _0x22413d=zt(_0x11313e['t'],_0x11313e['v']);if(_0x22413d===void 0x0){let {t:_0x7a81f1,..._0x3c745d}=_0x11313e;return _0x3c745d;}return{..._0x11313e,'t':_0x22413d};}function Ct(_0x2d7b40,_0x33661f,_0x171d4a,_0x1166d9){const _0x1fbdc4=_0x354fcb;if(!_0x2d7b40)return null;if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x46f)])return _0x171d4a&&_0x1166d9?Ot(_0x171d4a,_0x1166d9,_0x33661f['id'])??[]:[];if(Mt(_0x33661f))return Ft(_0x2d7b40['v']);if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x4db)]&&_0x171d4a&&_0x1166d9){var _0x12ba77;let _0xc36b6b=(_0x12ba77=_0x171d4a[_0x1fbdc4(0x45a)][_0x1166d9])==null||(_0x12ba77=_0x12ba77[_0x1fbdc4(0x1da)])==null?void 0x0:_0x12ba77[_0x33661f['id']];if(_0xc36b6b&&typeof _0xc36b6b=='object'&&!Array[_0x1fbdc4(0x354)](_0xc36b6b))return _0xc36b6b;}return Object[_0x1fbdc4(0x32b)][_0x1fbdc4(0x42f)]['call'](_0x2d7b40,'v')?_0x2d7b40['v']??null:null;}function wt(_0x4e2b12,_0x44cd39,_0x4262e2,_0x533a76,_0x42509f){const _0x5c5b0f=_0x354fcb;return(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x46f)]?kt(_0x4e2b12):Nt(_0x4262e2)?Pt(_0x4e2b12):Mt(_0x4262e2)?Ft(_0x4e2b12):(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&(_0x4e2b12==null||_0x4e2b12==='')?null:(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&_0x4e2b12&&typeof _0x4e2b12=='object'&&!Array[_0x5c5b0f(0x354)](_0x4e2b12)&&!Tt(_0x4e2b12)?_0x4e2b12:Ct(_0x44cd39,_0x4262e2,_0x533a76,_0x42509f);}function Tt(_0x3184d1){const _0x322a99=_0x354fcb;return!!_0x3184d1&&typeof _0x3184d1==_0x322a99(0x269)&&(Object['prototype']['hasOwnProperty'][_0x322a99(0x331)](_0x3184d1,'v')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'t')||Object['prototype'][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'p')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)]['call'](_0x3184d1,'f')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'si'));}function Et(_0x17e499,_0x18881a){return _0x17e499+'\x1f'+_0x18881a;}function Dt(_0x25c6ea,_0x40962d,_0x3f2a17,_0x2fe5ec){const _0x4a187b=_0x354fcb;let _0x223164=kt(_0x2fe5ec);_0x25c6ea[_0x4a187b(0x358)]={..._0x25c6ea[_0x4a187b(0x358)]??{}},_0x25c6ea['resources'][_0x4a187b(0x47e)]={..._0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)]??{}},_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)]={..._0x25c6ea['resources']['attachments']??{}};let _0x301fce=Et(_0x3f2a17,_0x40962d),_0x41e1ef=[];for(let _0x3dc778=0x0;_0x3dc778<_0x223164['length'];_0x3dc778++){if(!(_0x3dc778 in _0x223164))continue;let _0xb40b94=_0x223164[_0x3dc778],_0xf86c0c=String(_0xb40b94['id']??_0x301fce+'\x1f'+_0x3dc778),_0x3acec5={..._0xb40b94,'id':_0xf86c0c};_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)][_0xf86c0c]=_0x3acec5,_0x41e1ef[_0x4a187b(0x1f3)](_0xf86c0c);}_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)][_0x301fce]=_0x41e1ef;}function Ot(_0x17fa1f,_0xa1615d,_0x55c570){const _0x4981ef=_0x354fcb;var _0xb65491;let _0x4d6ae2=Et(_0x55c570,_0xa1615d),_0x3fa93f=(_0xb65491=_0x17fa1f[_0x4981ef(0x358)])==null||(_0xb65491=_0xb65491[_0x4981ef(0x47e)])==null?void 0x0:_0xb65491[_0x4d6ae2];if(!_0x3fa93f)return null;let _0x169758=[];for(let _0x37c96f=0x0;_0x37c96f<_0x3fa93f[_0x4981ef(0x458)];_0x37c96f++){var _0x408091;if(!(_0x37c96f in _0x3fa93f))continue;let _0x2b6b4b=(_0x408091=_0x17fa1f[_0x4981ef(0x358)])==null||(_0x408091=_0x408091[_0x4981ef(0x499)])==null?void 0x0:_0x408091[_0x3fa93f[_0x37c96f]];_0x2b6b4b&&_0x169758[_0x4981ef(0x1f3)]({..._0x2b6b4b});}return _0x169758;}function kt(_0x33faab){const _0x59ae2e=_0x354fcb;if(_0x33faab==null||_0x33faab===''||Tt(_0x33faab)&&!('id'in _0x33faab)&&!('name'in _0x33faab))return[];let _0x112571=Array[_0x59ae2e(0x354)](_0x33faab)?_0x33faab:[_0x33faab],_0x1c9fc6=[];for(let _0x364490=0x0;_0x364490<_0x112571[_0x59ae2e(0x458)];_0x364490++){if(!(_0x364490 in _0x112571))continue;let _0x188128=_0x112571[_0x364490],_0x4c0386=_0x188128&&typeof _0x188128==_0x59ae2e(0x269)?{..._0x188128}:{'id':_0x59ae2e(0x27a)+_0x364490,'name':String(_0x188128)};Object[_0x59ae2e(0x51b)](_0x4c0386)[_0x59ae2e(0x458)]>0x0&&_0x1c9fc6[_0x59ae2e(0x1f3)](_0x4c0386);}return _0x1c9fc6;}function At(_0x26a45b,_0x4d45f1){return(_0x4d45f1==null?void 0x0:_0x4d45f1['type'])===_0x19bf94['Attachment']?kt(_0x26a45b):Nt(_0x4d45f1)?Pt(_0x26a45b):Mt(_0x4d45f1)?Ft(_0x26a45b):_0x26a45b;}function jt(_0x3ff1b5,_0x1fc569,_0x77bb3c){const _0x35d81b=_0x354fcb;return(_0x1fc569==null?void 0x0:_0x1fc569[_0x35d81b(0x33a)])===_0x19bf94['Attachment']?_0x3ff1b5['v']!=='':Nt(_0x1fc569)?_0x3ff1b5['v']!==Pt(_0x77bb3c):Mt(_0x1fc569)?Array['isArray'](_0x77bb3c)&&(_0x3ff1b5['v']==null||_0x3ff1b5['v']===''):!0x1;}function Mt(_0x43dc37){const _0x3d4d9c=_0x354fcb;return(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94[_0x3d4d9c(0x283)]||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Group']||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Person']&&_0x43dc37[_0x3d4d9c(0x342)]['allowMultiple']===!0x0;}function Nt(_0x28c76f){const _0x3a0ea9=_0x354fcb;return(_0x28c76f==null?void 0x0:_0x28c76f[_0x3a0ea9(0x33a)])===_0x19bf94[_0x3a0ea9(0x1e5)]&&_0x28c76f[_0x3a0ea9(0x342)][_0x3a0ea9(0x18d)]!==!0x0;}function Pt(_0x5d0d11){let _0x408d83=Tt(_0x5d0d11)?_0x5d0d11['v']:_0x5d0d11,_0x310d4a=Array['isArray'](_0x408d83)?_0x408d83[0x0]:_0x408d83;return _0x310d4a==null||_0x310d4a===''?null:String(_0x310d4a);}function Ft(_0x1919e3){const _0x14b229=_0x354fcb;if(_0x1919e3==null||_0x1919e3==='')return[];let _0x410f2a=[];if(Array[_0x14b229(0x354)](_0x1919e3)){for(let _0x164b9a=0x0;_0x164b9a<_0x1919e3[_0x14b229(0x458)];_0x164b9a++){if(!(_0x164b9a in _0x1919e3))continue;let _0x4f7889=It(_0x1919e3[_0x164b9a]);_0x4f7889&&_0x410f2a['push'](_0x4f7889);}return _0x410f2a;}for(let _0x2bd2f3 of String(_0x1919e3)[_0x14b229(0x1c5)](',')){let _0xeaf506=_0x2bd2f3['trim']();_0xeaf506&&_0x410f2a[_0x14b229(0x1f3)](_0xeaf506);}return _0x410f2a;}function It(_0x35c04a){const _0x2c2060=_0x354fcb;if(_0x35c04a==null)return'';if(typeof _0x35c04a==_0x2c2060(0x471)||typeof _0x35c04a==_0x2c2060(0x256)||typeof _0x35c04a=='boolean')return String(_0x35c04a);if(typeof _0x35c04a=='object'){let _0x5e082f=_0x35c04a;return String(_0x5e082f['id']??_0x5e082f[_0x2c2060(0x1e0)]??_0x5e082f['text']??'');}return String(_0x35c04a);}function Lt(_0x466920){const _0x5d62ce=_0x354fcb;return _0x466920==null?null:typeof _0x466920=='number'?_0x149f0a['NUMBER']:typeof _0x466920=='boolean'?_0x149f0a[_0x5d62ce(0x176)]:_0x149f0a[_0x5d62ce(0x475)];}function Rt(_0x3a78d2){const _0x2bd55d=_0x354fcb;_0x3a78d2[_0x2bd55d(0x3db)]((_0x885cb0,_0x4beebc)=>_0x885cb0[_0x2bd55d(0x3ef)]['localeCompare'](_0x4beebc['orderKey']));let _0x16031b=[];for(let _0x229565 of _0x3a78d2)_0x16031b['push'](_0x229565['id']);return _0x16031b;}function zt(_0x48d91a,_0x33ccb1){const _0x142e04=_0x354fcb;return _0x48d91a===_0x149f0a[_0x142e04(0x475)]||_0x48d91a===_0x149f0a[_0x142e04(0x426)]||_0x48d91a===_0x149f0a[_0x142e04(0x176)]||_0x48d91a===_0x149f0a[_0x142e04(0x31e)]||_0x48d91a==null?_0x48d91a:Lt(_0x33ccb1??null);}function R(_0x482f2c){let _0x7201d2=null;for(let _0x547d17 of _0x482f2c)_0x7201d2=_0x7201d2===null?_0x547d17:_0x370803['type']['compose'](_0x7201d2,_0x547d17);return _0x7201d2;}var z=class e{static[_0x354fcb(0x322)](_0x2a19d9,_0x4db787){const _0x5ea286=_0x354fcb;let _0x2ef1fd=[];for(let _0x49a2bb of _0x4db787){let _0x1b351c=Bt(_0x49a2bb);if(!_0x1b351c||_0x1b351c['unitId']!==_0x2a19d9['id'])return null;_0x2ef1fd[_0x5ea286(0x1f3)](_0x1b351c['op']);}try{let _0x2d13ce=R(_0x2ef1fd);return _0x2d13ce===null?_0x2a19d9:new e()[_0x5ea286(0x2ad)](_0x2a19d9,_0x2d13ce);}catch{return null;}}[_0x354fcb(0x2ad)](_0x53c3de,_0x2f9315){const _0x383cc1=_0x354fcb;let _0x46a373=this['getAffectedRanges'](_0x2f9315),_0x16e80e=I(_0x383cc1(0x37a),()=>Xt(_0x53c3de,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x33b52d=I(_0x383cc1(0x1ae),()=>_0x370803[_0x383cc1(0x33a)]['apply'](_0x16e80e,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x19b153=Ht(_0x33b52d,_0x46a373);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x33b52d,_0x46a373),{'invalidations':_0x46a373[_0x383cc1(0x458)]})?(Ut(_0x33b52d,_0x19b153),_0x33b52d):(I(_0x383cc1(0x3a6),()=>{const _0x243c0a=_0x383cc1;this[_0x243c0a(0x2a4)](_0x33b52d,_0x46a373)[_0x243c0a(0x461)](_0x163efb=>{const _0x5a20cc=_0x243c0a;let _0x20ac7b=_0x46a373['filter'](_0x22afee=>_0x22afee[_0x5a20cc(0x1c3)]===_0x163efb['id']),_0x5ad8dc=_0x20ac7b[_0x5a20cc(0x458)]>0x0&&_0x20ac7b['every'](_0x2e6194=>_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x28b)||_0x2e6194['reason']==='view'||_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x4eb)||_0x2e6194['reason']==='record')?new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x2a4d20=>{const _0x40eadc=_0x5a20cc;var _0x573ccb;if(_0x2a4d20['reason']!==_0x40eadc(0x28b)||!_0x2a4d20[_0x40eadc(0x46e)])return[];let _0x585c62=(_0x573ccb=_0x53c3de['tables'][_0x163efb['id']])==null?void 0x0:_0x573ccb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]],_0x57f49e=_0x163efb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]];return(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x33a)])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x33a)])||(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x342)]['allowMultiple'])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x342)][_0x40eadc(0x18d)])?[_0x2a4d20[_0x40eadc(0x46e)]]:[];})):void 0x0,_0x106c63=new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x3920b3=>{const _0x369dad=_0x5a20cc;var _0x14d1a3,_0x39f229;return _0x3920b3[_0x369dad(0x2d9)]!==_0x369dad(0x4eb)||_0x3920b3['row']==null||_0x3920b3[_0x369dad(0x26e)]==null?[]:[JSON[_0x369dad(0x449)]([(_0x14d1a3=_0x163efb[_0x369dad(0x474)])==null?void 0x0:_0x14d1a3[_0x3920b3[_0x369dad(0x21b)]],(_0x39f229=_0x163efb['colId'])==null?void 0x0:_0x39f229[_0x3920b3['column']]])];}));ht(_0x163efb,_0x5ad8dc?(_0x290643,_0x576e84)=>_0x5ad8dc['has'](_0x576e84)||_0x106c63['has'](JSON[_0x5a20cc(0x449)]([_0x290643,_0x576e84])):void 0x0);});},{'invalidations':_0x46a373[_0x383cc1(0x458)]}),Ut(_0x33b52d,_0x19b153),_0x33b52d);}[_0x354fcb(0x2aa)](_0x1ef376,_0x5de11d){const _0x872c56=_0x354fcb;return _0x370803[_0x872c56(0x33a)][_0x872c56(0x1fd)](_0x5de11d,_0x1ef376);}[_0x354fcb(0x2b9)](_0x437cac){const _0x2393a4=_0x354fcb;let _0x2a873c=qt(_0x437cac);return _0x2a873c[_0x2393a4(0x458)]?Jt(_0x2a873c[_0x2393a4(0x2a2)](_0x444164=>this['getAffectedRanges'](_0x444164))):Wt(_0x437cac);}[_0x354fcb(0x2a4)](_0x2baae9,_0x309960){const _0x362bdc=_0x354fcb;let _0x59a87b=_0x309960[_0x362bdc(0x397)](_0x4c5233=>_0x4c5233['reason']!==_0x362bdc(0x2df));return _0x59a87b[_0x362bdc(0x458)]?_0x59a87b['some'](_0x57cb5d=>!_0x57cb5d[_0x362bdc(0x1c3)])?Object[_0x362bdc(0x1da)](_0x2baae9[_0x362bdc(0x2ba)]??{}):Array[_0x362bdc(0x4dd)](new Set(_0x59a87b[_0x362bdc(0x29b)](_0xce4b56=>_0xce4b56['tableId'])))[_0x362bdc(0x2a2)](_0x3c7632=>{var _0x8fdc49;let _0x3527af=(_0x8fdc49=_0x2baae9['tables'])==null?void 0x0:_0x8fdc49[_0x3c7632];return _0x3527af?[_0x3527af]:[];}):[];}};function Bt(_0x387d7c){const _0x6f9ad=_0x354fcb;let _0x15280f=_0x387d7c['params'];return _0x387d7c['id']!==_0x6f9ad(0x4d6)||typeof _0x15280f!=_0x6f9ad(0x269)||!_0x15280f||!(_0x6f9ad(0x278)in _0x15280f)||typeof _0x15280f['unitId']!=_0x6f9ad(0x471)||!('op'in _0x15280f)||!Array[_0x6f9ad(0x354)](_0x15280f['op'])?null:{'unitId':_0x15280f[_0x6f9ad(0x278)],'op':_0x15280f['op']};}function Vt(_0x1559c6,_0x4806f9){const _0x5adb30=_0x354fcb;if(!_0x4806f9[_0x5adb30(0x458)]||_0x4806f9[_0x5adb30(0x257)](_0x261695=>_0x261695[_0x5adb30(0x2d9)]!==_0x5adb30(0x4eb)))return!0x1;let _0x1bb496=new Map();for(let _0x1fabd2 of _0x4806f9){if(!_0x1fabd2[_0x5adb30(0x1c3)]||_0x1fabd2[_0x5adb30(0x21b)]==null||_0x1fabd2[_0x5adb30(0x26e)]==null)continue;let _0x5a9406=_0x1bb496['get'](_0x1fabd2[_0x5adb30(0x1c3)])??[];_0x5a9406[_0x5adb30(0x1f3)]({'row':_0x1fabd2['row'],'col':_0x1fabd2['column']}),_0x1bb496[_0x5adb30(0x1a1)](_0x1fabd2['tableId'],_0x5a9406);}return _0x1bb496[_0x5adb30(0x461)]((_0x5c7850,_0x1568c6)=>{const _0x2dd908=_0x5adb30;var _0xbd3e05;let _0x2f678f=(_0xbd3e05=_0x1559c6[_0x2dd908(0x2ba)])==null?void 0x0:_0xbd3e05[_0x1568c6];_0x2f678f&>(_0x2f678f,_0x5c7850);}),!0x0;}function Ht(_0x228b2d,_0xf68c42){const _0x5869a4=_0x354fcb;let _0x3b000b=new Set();return _0xf68c42[_0x5869a4(0x2a2)](_0x50b6c7=>{const _0x4d9bad=_0x5869a4;var _0x345998;if(!_0x50b6c7['tableId']||!_0x50b6c7[_0x4d9bad(0x4bb)]||!_0x50b6c7[_0x4d9bad(0x46e)])return[];let _0x1f9463=_0x50b6c7['tableId']+'\x1f'+_0x50b6c7[_0x4d9bad(0x4bb)]+'\x1f'+_0x50b6c7['fieldId'];if(_0x3b000b[_0x4d9bad(0x23f)](_0x1f9463))return[];_0x3b000b[_0x4d9bad(0x35e)](_0x1f9463);let _0x5a109b=(_0x345998=_0x228b2d[_0x4d9bad(0x2ba)][_0x50b6c7['tableId']])==null||(_0x345998=_0x345998[_0x4d9bad(0x45a)][_0x50b6c7[_0x4d9bad(0x4bb)]])==null?void 0x0:_0x345998[_0x4d9bad(0x1da)];return _0x5a109b?[{'tableId':_0x50b6c7[_0x4d9bad(0x1c3)],'recordId':_0x50b6c7[_0x4d9bad(0x4bb)],'fieldId':_0x50b6c7[_0x4d9bad(0x46e)],'exists':Object[_0x4d9bad(0x32b)][_0x4d9bad(0x42f)][_0x4d9bad(0x331)](_0x5a109b,_0x50b6c7[_0x4d9bad(0x46e)]),'value':_0x5a109b[_0x50b6c7[_0x4d9bad(0x46e)]]}]:[];});}function Ut(_0x36d0fd,_0x32b5ec){_0x32b5ec['forEach'](_0x24a2d8=>{const _0x3d689d=_0x48d8;var _0x1db230;let _0x359f0e=(_0x1db230=_0x36d0fd[_0x3d689d(0x2ba)][_0x24a2d8[_0x3d689d(0x1c3)]])==null||(_0x1db230=_0x1db230[_0x3d689d(0x45a)][_0x24a2d8[_0x3d689d(0x4bb)]])==null?void 0x0:_0x1db230[_0x3d689d(0x1da)];_0x359f0e&&(_0x24a2d8[_0x3d689d(0x335)]?_0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]=_0x24a2d8['value']:delete _0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]);});}function Wt(_0x354c8c){const _0x3fd53e=_0x354fcb;if(!Array[_0x3fd53e(0x354)](_0x354c8c)||_0x354c8c[_0x3fd53e(0x458)]<0x2)return[{'tableId':'','reason':'unknown'}];let _0x4f6ef0=_0x354c8c,_0x92a771=_0x4f6ef0['indexOf'](_0x3fd53e(0x2ba));return _0x92a771===-0x1||typeof _0x4f6ef0[_0x92a771+0x1]!=_0x3fd53e(0x471)?_0x4f6ef0[0x0]===_0x3fd53e(0x3e3)?[]:[{'tableId':'','reason':_0x3fd53e(0x37d)}]:Gt(_0x4f6ef0,_0x92a771,String(_0x4f6ef0[_0x92a771+0x1]));}function Gt(_0x1e42b5,_0x4cc015,_0x1985fd){const _0x231a34=_0x354fcb;let _0x51ea8f=_0x1e42b5[_0x4cc015+0x2];return _0x51ea8f==='records'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?Kt(_0x1e42b5,_0x4cc015,_0x1985fd,String(_0x1e42b5[_0x4cc015+0x3])):_0x51ea8f===_0x231a34(0x1cf)&&_0x1e42b5[_0x4cc015+0x3]!=null&&_0x1e42b5[_0x4cc015+0x4]!=null?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb),'row':Number(_0x1e42b5[_0x4cc015+0x3]),'column':Number(_0x1e42b5[_0x4cc015+0x4])}]:_0x51ea8f==='fields'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b),'fieldId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f===_0x231a34(0x1e1)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b)}]:_0x51ea8f===_0x231a34(0x22d)?[{'tableId':_0x1985fd,'reason':'record'}]:_0x51ea8f==='views'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df),'viewId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f==='viewOrder'?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df)}]:_0x51ea8f===_0x231a34(0x358)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb)}]:[{'tableId':_0x1985fd,'reason':_0x51ea8f===void 0x0?'table':_0x231a34(0x37d)}];}function Kt(_0x43ae2d,_0x39e026,_0x288c80,_0x43694b){const _0x17baea=_0x354fcb;return _0x43ae2d[_0x39e026+0x4]===_0x17baea(0x1da)&&typeof _0x43ae2d[_0x39e026+0x5]==_0x17baea(0x471)?[{'tableId':_0x288c80,'reason':_0x17baea(0x4eb),'recordId':_0x43694b,'fieldId':String(_0x43ae2d[_0x39e026+0x5])}]:_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x483)||_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x2e9)?[]:[{'tableId':_0x288c80,'reason':_0x17baea(0x52b),'recordId':_0x43694b}];}function qt(_0x3105df){const _0x3eff5b=_0x354fcb;if(!Array[_0x3eff5b(0x354)](_0x3105df))return[];let _0x303c45=_0x3105df[_0x3eff5b(0x397)](Array['isArray']);if(_0x303c45[_0x3eff5b(0x458)]>0x1&&_0x303c45[_0x3eff5b(0x458)]===_0x3105df[_0x3eff5b(0x458)])return _0x303c45;let _0x311c8e=_0x3105df[_0x3eff5b(0x183)](Array[_0x3eff5b(0x354)]);if(_0x311c8e>0x0&&_0x3105df[_0x3eff5b(0x192)](_0x311c8e)['every'](Array[_0x3eff5b(0x354)])){let _0x31ca8e=_0x3105df['slice'](0x0,_0x311c8e);return _0x3105df[_0x3eff5b(0x192)](_0x311c8e)[_0x3eff5b(0x29b)](_0x27f281=>[..._0x31ca8e,..._0x27f281]);}let _0x313750=_0x3105df[_0x3eff5b(0x4c8)](_0x3eff5b(0x2ba));if(_0x313750===-0x1||typeof _0x3105df[_0x313750+0x1]!=_0x3eff5b(0x471))return[];let _0x1c826c=String(_0x3105df[_0x313750+0x1]),_0x59967f=_0x3105df['slice'](_0x313750+0x2)['filter'](Array['isArray']);return _0x59967f[_0x3eff5b(0x458)]<=0x1?[]:_0x59967f['map'](_0x53334d=>['tables',_0x1c826c,..._0x53334d]);}function Jt(_0x3cef58){let _0x38da5f=new Set();return _0x3cef58['filter'](_0x4b685b=>{const _0x52ccf5=_0x48d8;let _0x11951d=JSON[_0x52ccf5(0x449)](_0x4b685b);return!_0x38da5f[_0x52ccf5(0x23f)](_0x11951d)&&(_0x38da5f[_0x52ccf5(0x35e)](_0x11951d),!0x0);});}function Yt(_0xeaec73){return _0x30f9db['deepClone'](_0xeaec73);}function Xt(_0x2678e4,_0x2c0691){const _0xb5e7f7=_0x354fcb;let _0x1de794=Zt(_0x2c0691);if(!_0x1de794[_0xb5e7f7(0x458)])return Yt(_0x2678e4);let _0x1d2149=an(_0x2678e4),_0x1307c7=new Set();for(let _0x2986f5 of _0x1de794)en(_0x1d2149,_0x2986f5,_0x1307c7);return _0x1d2149;}function Zt(_0x448431){let _0x1ff7ef=[];return Qt(_0x448431,[],_0x1ff7ef),_0x1ff7ef;}function Qt(_0x4ba57d,_0x40ba19,_0x55924c){const _0x4b5113=_0x354fcb;if(!Array[_0x4b5113(0x354)](_0x4ba57d))return;let _0x3c3f67=[];for(let _0x5e1c61 of _0x4ba57d)Array[_0x4b5113(0x354)](_0x5e1c61)?Qt(_0x5e1c61,[..._0x40ba19,..._0x3c3f67],_0x55924c):$t(_0x5e1c61)?_0x55924c[_0x4b5113(0x1f3)]([..._0x40ba19,..._0x3c3f67]):(typeof _0x5e1c61==_0x4b5113(0x471)||typeof _0x5e1c61==_0x4b5113(0x256))&&_0x3c3f67[_0x4b5113(0x1f3)](_0x5e1c61);}function $t(_0x394ded){const _0x3c55bc=_0x354fcb;if(!_0x394ded||typeof _0x394ded!=_0x3c55bc(0x269)||Array[_0x3c55bc(0x354)](_0x394ded))return!0x1;let _0x50caf2=_0x394ded;return'i'in _0x50caf2||'r'in _0x50caf2||'p'in _0x50caf2||'d'in _0x50caf2||'es'in _0x50caf2||'ena'in _0x50caf2||'et'in _0x50caf2;}function en(_0x451b3d,_0x13301d,_0x4070d5){const _0x3574ab=_0x354fcb;let _0x1872d9=_0x451b3d,_0x1c4d05=[];for(let _0x31eaaf=0x0;_0x31eaaf<_0x13301d[_0x3574ab(0x458)]-0x1;_0x31eaaf++){let _0x2c2626=_0x13301d[_0x31eaaf];_0x1c4d05[_0x3574ab(0x1f3)](_0x2c2626);let _0x48406a=tn(_0x1872d9,_0x2c2626);if(!rn(_0x48406a))return;let _0x359bb3=JSON['stringify'](_0x1c4d05);_0x4070d5[_0x3574ab(0x23f)](_0x359bb3)||(nn(_0x1872d9,_0x2c2626,an(_0x48406a)),_0x4070d5['add'](_0x359bb3));let _0x24edca=tn(_0x1872d9,_0x2c2626);if(!rn(_0x24edca))return;_0x1872d9=_0x24edca;}}function tn(_0x556cc0,_0x55e95c){const _0xfdc55a=_0x354fcb;return Array['isArray'](_0x556cc0)?typeof _0x55e95c==_0xfdc55a(0x256)?_0x556cc0[_0x55e95c]:void 0x0:Reflect['get'](_0x556cc0,_0x55e95c);}function nn(_0xb5159d,_0x576e8a,_0x4c8727){const _0x6ce77a=_0x354fcb;Array[_0x6ce77a(0x354)](_0xb5159d)?typeof _0x576e8a=='number'&&(_0xb5159d[_0x576e8a]=_0x4c8727):Reflect['set'](_0xb5159d,_0x576e8a,_0x4c8727);}function rn(_0x52777f){const _0x30673d=_0x354fcb;return!!_0x52777f&&typeof _0x52777f==_0x30673d(0x269);}function an(_0x55e561){const _0x12de4d=_0x354fcb;return Array[_0x12de4d(0x354)](_0x55e561)?_0x55e561[_0x12de4d(0x192)]():{..._0x55e561};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x354fcb(0x1ac),'yyyy-mm-dd':'YYYY-MM-DD','mm-dd':'MM-DD','mm/dd/yyyy':_0x354fcb(0x4f7),'dd/mm/yyyy':_0x354fcb(0x3b3),'mmm\x20d,\x20yyyy':_0x354fcb(0x390)};function B(_0x163012,_0x1cab90=_0x4547e4[_0x354fcb(0x429)]){const _0x35e5d4=_0x354fcb;let _0x3fba62=_0x5cea60(_0x163012)[_0x35e5d4(0x3f0)]();return _0xa41fad(new Date(_0x3fba62),_0x1cab90);}function ln(_0x1940fc,_0x24dc02=_0x4547e4[_0x354fcb(0x429)]){const _0x13505a=_0x354fcb;return _0x156e38(_0x1940fc,_0x24dc02)[_0x13505a(0x3f6)]();}function un(_0xcdc644,_0x5ae89d=_0x4547e4[_0x354fcb(0x429)]){const _0x1d9513=_0x354fcb;if(_0xcdc644==null||_0xcdc644==='')return null;if(_0xcdc644 instanceof Date)return B(_0xcdc644,_0x5ae89d);if(typeof _0xcdc644==_0x1d9513(0x256))return Number[_0x1d9513(0x2c3)](_0xcdc644)?_0xcdc644>0xf4240?B(_0xcdc644,_0x5ae89d):_0xcdc644:null;let _0x48cd0e=Date['parse'](String(_0xcdc644));return Number[_0x1d9513(0x3b5)](_0x48cd0e)?null:B(_0x48cd0e,_0x5ae89d);}function dn(_0x5d8e9b,_0x560799=_0x4547e4[_0x354fcb(0x429)]){let _0x3a9aa5=un(_0x5d8e9b,_0x560799);return _0x3a9aa5==null?null:ln(_0x3a9aa5,_0x560799);}function fn(_0x1e99f7={}){const _0xe30d4b=_0x354fcb;let _0x5a3088=String(_0x1e99f7[_0xe30d4b(0x177)]??_0x1e99f7[_0xe30d4b(0x24a)]??_0x1e99f7[_0xe30d4b(0x476)]??on)[_0xe30d4b(0x3bc)]()||on,_0x319c5d=sn[_0xe30d4b(0x235)](_0x5a3088);return{'pattern':_0x5a3088[_0xe30d4b(0x2b1)](sn,'')||on,'includeTime':typeof _0x1e99f7['includeTime']==_0xe30d4b(0x364)?_0x1e99f7[_0xe30d4b(0x501)]:_0x319c5d,'hourCycle':_0x1e99f7[_0xe30d4b(0x21c)]===_0xe30d4b(0x2cc)?_0xe30d4b(0x2cc):_0xe30d4b(0x1a8)};}function pn(_0x934520={}){let {format:_0x50f4df,dateFormat:_0xa8ab7f,..._0x28346d}=_0x934520;return{..._0x28346d,...fn(_0x934520)};}function mn(_0x4d91d5,_0x579845={}){const _0x5c32c8=_0x354fcb;let _0x44d2a0=dn(_0x4d91d5);if(_0x44d2a0==null||!Number[_0x5c32c8(0x2c3)](_0x44d2a0))return'';let _0x2ccda7=fn(_0x579845);return _0x5cea60(_0x44d2a0)[_0x5c32c8(0x24a)](hn(_0x2ccda7));}function hn(_0x1527e2){const _0x8be71c=_0x354fcb;let {pattern:_0x55c560,includeTime:_0x4e4890,hourCycle:_0x139373}=_0x1527e2,_0x396135=cn[_0x55c560]??cn[on];return _0x4e4890?_0x396135+'\x20'+(_0x139373===_0x8be71c(0x2cc)?_0x8be71c(0x3f7):_0x8be71c(0x25d)):_0x396135;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x19bf94[_0x354fcb(0x44f)]]);function vn(_0x15d581){const _0x40e74c=_0x354fcb;switch(_0x15d581){case _0x19bf94['Number']:case _0x19bf94[_0x40e74c(0x19c)]:case _0x19bf94[_0x40e74c(0x1ba)]:case _0x19bf94[_0x40e74c(0x4c5)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x23b)],_0x79efc5['LESS_THAN'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x440)]:case _0x19bf94[_0x40e74c(0x253)]:case _0x19bf94['UpdatedAt']:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5['BEFORE'],_0x79efc5['AFTER'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x19e)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)]];default:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x33f)],_0x79efc5[_0x40e74c(0x34c)],_0x79efc5['IS_EMPTY'],_0x79efc5['IS_NOT_EMPTY']];}}function yn(_0x1bd2bb){const _0x2d5e9a=_0x354fcb;return _0x1bd2bb===_0x19bf94['Date']||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x253)]||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x347)];}function bn(_0x2e58f9,_0x5ef577){const _0x547784=_0x354fcb;return _0x2e58f9==null&&_0x5ef577==null?0x0:_0x2e58f9==null?-0x1:_0x5ef577==null?0x1:typeof _0x2e58f9==_0x547784(0x256)&&typeof _0x5ef577==_0x547784(0x256)?_0x2e58f9-_0x5ef577:String(_0x2e58f9)[_0x547784(0x4bc)](String(_0x5ef577));}function xn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223,_0x37a850={}){const _0x198adb=_0x354fcb;if(_0x430f43===_0x198adb(0x3cb))return Sn(_0x3f284f);if(_0x430f43==='isNotEmpty')return!Sn(_0x3f284f);switch(_0x198223[_0x198adb(0x33a)]){case _0x19bf94[_0x198adb(0x271)]:case _0x19bf94[_0x198adb(0x19c)]:case _0x19bf94[_0x198adb(0x1ba)]:case _0x19bf94[_0x198adb(0x4c5)]:return Cn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94[_0x198adb(0x440)]:case _0x19bf94['CreatedAt']:case _0x19bf94[_0x198adb(0x347)]:return Tn(_0x3f284f,_0x430f43,_0x1c65b2,_0x37a850);case _0x19bf94[_0x198adb(0x19e)]:return jn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x198adb(0x1e5)]:case _0x19bf94['Group']:return Nn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223);default:return Pn(_0x3f284f,_0x430f43,_0x1c65b2);}}function Sn(_0x6c1087){const _0x154548=_0x354fcb;return _0x6c1087==null?!0x0:Array[_0x154548(0x354)](_0x6c1087)?_0x6c1087[_0x154548(0x458)]===0x0:typeof _0x6c1087==_0x154548(0x471)&&_0x6c1087[_0x154548(0x3bc)]()==='';}function Cn(_0xe3b88f,_0x5ba7ba,_0x542d03){const _0x48366b=_0x354fcb;let _0x3cc6a9=wn(_0xe3b88f),_0x3e5755=wn(_0x542d03);if(_0x3cc6a9==null||_0x3e5755==null)return!0x1;switch(_0x5ba7ba){case'is':return _0x3cc6a9===_0x3e5755;case _0x48366b(0x521):return _0x3cc6a9!==_0x3e5755;case _0x48366b(0x267):return _0x3cc6a9>_0x3e5755;case'greaterThanOrEqual':return _0x3cc6a9>=_0x3e5755;case _0x48366b(0x212):return _0x3cc6a9<_0x3e5755;case _0x48366b(0x1eb):return _0x3cc6a9<=_0x3e5755;default:return!0x1;}}function wn(_0x2da85c){const _0x105ad2=_0x354fcb;if(_0x2da85c==null||_0x2da85c==='')return null;let _0x324912=Number(_0x2da85c);return Number[_0x105ad2(0x2c3)](_0x324912)?_0x324912:null;}function Tn(_0x1fa8ea,_0x48c1fd,_0x3d0e73,_0x3025e3){const _0x4e08e5=_0x354fcb;let _0x31d594=Dn(_0x1fa8ea);if(_0x31d594==null)return!0x1;let _0x5b5e8b=En(_0x3025e3[_0x4e08e5(0x43b)]??_0x173d28[_0x4e08e5(0x184)],_0x3d0e73,_0x3025e3[_0x4e08e5(0x181)]);if(!_0x5b5e8b)return!0x1;switch(_0x48c1fd){case _0x79efc5['IS']:return _0x31d594>=_0x5b5e8b[_0x4e08e5(0x191)]&&_0x31d594<=_0x5b5e8b[_0x4e08e5(0x3ce)];case _0x79efc5[_0x4e08e5(0x48d)]:return _0x31d594<_0x5b5e8b[_0x4e08e5(0x191)]||_0x31d594>_0x5b5e8b['end'];case _0x79efc5[_0x4e08e5(0x2e4)]:return _0x31d594<_0x5b5e8b['start'];case _0x79efc5[_0x4e08e5(0x486)]:return _0x31d594>_0x5b5e8b['end'];default:return!0x1;}}function En(_0x1bdaa3,_0x1660b8,_0xbff055=Date['now']()){const _0x9e8950=_0x354fcb;let _0x3f1656=On(_0xbff055);switch(_0x1bdaa3){case _0x173d28[_0x9e8950(0x184)]:{let _0x3e4223=Dn(_0x1660b8);return _0x3e4223==null?null:V(_0x3e4223,0x0,0x1);}case _0x173d28['TODAY']:return V(_0x3f1656,0x0,0x1);case _0x173d28[_0x9e8950(0x255)]:return V(_0x3f1656,0x1,0x1);case _0x173d28[_0x9e8950(0x4d9)]:return V(_0x3f1656,-0x1,0x1);case _0x173d28[_0x9e8950(0x2c6)]:return kn(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x454)]:return kn(_0x3f1656,-0x1);case _0x173d28['THIS_MONTH']:return An(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x417)]:return An(_0x3f1656,-0x1);case _0x173d28[_0x9e8950(0x489)]:return V(_0x3f1656,-0x6,0x7);case _0x173d28[_0x9e8950(0x2cb)]:return V(_0x3f1656,0x0,0x7);case _0x173d28[_0x9e8950(0x336)]:return V(_0x3f1656,-0x1d,0x1e);case _0x173d28[_0x9e8950(0x2e0)]:return V(_0x3f1656,0x0,0x1e);}}function Dn(_0x21b6fa){let _0x1975e0=un(_0x21b6fa);return _0x1975e0==null?null:On(ln(_0x1975e0));}function On(_0x54b4e7){let _0x3e86c=new Date(_0x54b4e7);return _0x3e86c['setHours'](0x0,0x0,0x0,0x0),_0x3e86c['getTime']();}function kn(_0x3a23ed,_0x16233a){return V(_0x3a23ed,-((new Date(_0x3a23ed)['getDay']()+0x6)%0x7)+_0x16233a*0x7,0x7);}function V(_0x1b2bdf,_0xc992bf,_0x5955c3){const _0x2258b7=_0x354fcb;let _0x12e3aa=_0x5cea60(_0x1b2bdf)[_0x2258b7(0x35e)](_0xc992bf,_0x2258b7(0x2d6));return{'start':_0x12e3aa[_0x2258b7(0x3f0)](),'end':_0x12e3aa[_0x2258b7(0x35e)](_0x5955c3,_0x2258b7(0x2d6))[_0x2258b7(0x3f0)]()-0x1};}function An(_0x27694d,_0x40a215){const _0x50db6f=_0x354fcb;let _0x224710=new Date(_0x27694d),_0x564c4c=new Date(_0x224710[_0x50db6f(0x2a8)](),_0x224710[_0x50db6f(0x531)]()+_0x40a215,0x1),_0x4fa8a5=new Date(_0x224710['getFullYear'](),_0x224710[_0x50db6f(0x531)]()+_0x40a215+0x1,0x1);return{'start':_0x564c4c['getTime'](),'end':_0x4fa8a5[_0x50db6f(0x3f6)]()-0x1};}function jn(_0x23de59,_0x4cf9e5,_0x3eb924){let _0x535d8e=Mn(_0x23de59),_0x21f170=Mn(_0x3eb924);switch(_0x4cf9e5){case'is':return _0x535d8e===_0x21f170;case'isNot':return _0x535d8e!==_0x21f170;default:return!0x1;}}function Mn(_0x28e28b){return _0x28e28b===!0x0||_0x28e28b==='true'||_0x28e28b===0x1||_0x28e28b==='1';}function Nn(_0x5475dd,_0x5d16d4,_0x3a9407,_0x642d9b){const _0xedbb0a=_0x354fcb;let _0x4c06b3=In(_0x5475dd,_0x642d9b),_0xd26c6a=In(_0x3a9407,_0x642d9b),_0xe0094c=_0xd26c6a['length']>0x0&&_0xd26c6a[_0xedbb0a(0x257)](_0x3cf325=>_0x4c06b3[_0xedbb0a(0x231)](_0x3cf325));switch(_0x5d16d4){case'is':case _0xedbb0a(0x4d7):return _0xe0094c;case _0xedbb0a(0x521):case _0xedbb0a(0x4a5):return!_0xe0094c;default:return!0x1;}}function Pn(_0x2a141f,_0x534d4a,_0x4c9fd){const _0x34d2e1=_0x354fcb;let _0x1c98b9=Fn(_0x2a141f),_0x183d47=Fn(_0x4c9fd);switch(_0x534d4a){case'is':return _0x1c98b9===_0x183d47;case _0x34d2e1(0x521):return _0x1c98b9!==_0x183d47;case _0x34d2e1(0x4d7):return _0x183d47?_0x1c98b9[_0x34d2e1(0x231)](_0x183d47):!0x1;case _0x34d2e1(0x4a5):return!_0x183d47||!_0x1c98b9[_0x34d2e1(0x231)](_0x183d47);default:return!0x1;}}function Fn(_0x23e09c){const _0x5defcf=_0x354fcb;if(Array[_0x5defcf(0x354)](_0x23e09c))return _0x23e09c['map'](_0x35d3c2=>Fn(_0x35d3c2))['join']('\x0a');if(_0x23e09c&&typeof _0x23e09c==_0x5defcf(0x269)){let _0x71ae6a=_0x23e09c;return String(_0x71ae6a['name']??_0x71ae6a['label']??_0x71ae6a[_0x5defcf(0x4d2)]??_0x71ae6a['value']??_0x71ae6a['id']??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}return String(_0x23e09c??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}function In(_0x4cc2a0,_0x1a83e1){const _0x18bda8=_0x354fcb;let _0x509f67=Ln(_0x4cc2a0),_0x1cb46c=Rn(_0x1a83e1[_0x18bda8(0x342)]??{});return _0x509f67[_0x18bda8(0x2a2)](_0x127756=>_0x1cb46c[_0x18bda8(0x4a8)](_0x127756)??[_0x127756])[_0x18bda8(0x397)]((_0x25cf07,_0x2c891d,_0x1907ab)=>_0x25cf07!==''&&_0x1907ab[_0x18bda8(0x4c8)](_0x25cf07)===_0x2c891d);}function Ln(_0x3b3e8f){const _0xfda5e5=_0x354fcb;if(_0x3b3e8f==null||_0x3b3e8f==='')return[];if(Array['isArray'](_0x3b3e8f))return _0x3b3e8f[_0xfda5e5(0x2a2)](_0x17889a=>Ln(_0x17889a));if(_0x3b3e8f&&typeof _0x3b3e8f==_0xfda5e5(0x269)){let _0x516133=_0x3b3e8f;return['id','name',_0xfda5e5(0x281),_0xfda5e5(0x416),_0xfda5e5(0x4d2)][_0xfda5e5(0x2a2)](_0xb2f89e=>Ln(_0x516133[_0xb2f89e]))[_0xfda5e5(0x397)]((_0x11157d,_0x412ad0,_0x189c26)=>_0x189c26[_0xfda5e5(0x4c8)](_0x11157d)===_0x412ad0);}return[Fn(_0x3b3e8f)];}function Rn(_0x2ee1d0){const _0x17cd19=_0x354fcb;let _0x2b4241=new Map();return(Array[_0x17cd19(0x354)](_0x2ee1d0['options'])?_0x2ee1d0[_0x17cd19(0x392)]:[])[_0x17cd19(0x461)](_0x38e858=>{const _0x28cea6=_0x17cd19;if(!_0x38e858||typeof _0x38e858!='object')return;let _0x39acb9=Ln(_0x38e858),_0x539759=_0x39acb9[_0x28cea6(0x397)]((_0x2b1df8,_0x300a27)=>_0x2b1df8!==''&&_0x39acb9['indexOf'](_0x2b1df8)===_0x300a27);_0x539759[_0x28cea6(0x461)](_0x2c7633=>_0x2b4241['set'](_0x2c7633,_0x539759));}),_0x2b4241;}function H(_0xe52b86,_0x420fa4={},_0xbfa693=_0x4eecc9=>_0x4eecc9,_0x4f142a={}){const _0x2c00e4=_0x354fcb;let _0x4fdf8b=!_n[_0x2c00e4(0x23f)](_0xe52b86),_0x86474e=_0xbfa693??(_0x40f62c=>_0x40f62c);return{'type':_0xe52b86,'i18nKey':_0x2c00e4(0x439)+_0xe52b86,'enabled':_0x4fdf8b,'visibleInCreateMenu':_0x4fdf8b,'createDefaultConfig':_0x4f142a[_0x2c00e4(0x435)]??(()=>({})),'createDefaultValue':_0x4f142a['createDefaultValue']??(_0x6f1610=>_0x6f1610['defaultValue']??null),'normalize':(_0x19b85a,_0x2af6f5)=>_0x86474e(_0x19b85a,_0x2af6f5),'validate':(_0x1c09c2,_0x32c821)=>{const _0x647eee=_0x2c00e4;var _0x548719;return _0x4fdf8b?((_0x548719=_0x4f142a[_0x647eee(0x209)])==null?void 0x0:_0x548719[_0x647eee(0x331)](_0x4f142a,_0x1c09c2,_0x32c821))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x40a8c1,_0x52cd36)=>bn(_0x40a8c1,_0x52cd36),'filter':(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b)=>xn(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b),'toPlainText':_0x4f142a[_0x2c00e4(0x284)]??(_0x115b45=>_0x115b45==null?'':String(_0x115b45)),'fromPlainText':_0x4f142a[_0x2c00e4(0x4dc)]??(_0x412e92=>_0x86474e(_0x412e92,{'id':'','name':'','type':_0xe52b86,'config':{}})),'getCapabilities':()=>({...gn,..._0x420fa4,'editable':_0x4fdf8b&&(_0x420fa4[_0x2c00e4(0x346)]??gn[_0x2c00e4(0x346)])})};}function zn(){const _0x1ee0c6=_0x354fcb;return[H(_0x19bf94['Text'],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x3ab)}),'createDefaultValue':_0x1e958a=>_0x1e958a[_0x1ee0c6(0x241)]??''}),H(_0x19bf94['SingleSelect'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x327416=>_0x327416==null||_0x327416===''?null:String(_0x327416),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}})}),H(_0x19bf94[_0x1ee0c6(0x283)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x45d3b4=>Array[_0x1ee0c6(0x354)](_0x45d3b4)?_0x45d3b4[_0x1ee0c6(0x29b)](String):_0x45d3b4==null?[]:[String(_0x45d3b4)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}}),'createDefaultValue':_0x543094=>_0x543094[_0x1ee0c6(0x241)]??[]}),H(_0x19bf94[_0x1ee0c6(0x1e5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1ee0c6(0x300)}),'validate':Gn}),H(_0x19bf94[_0x1ee0c6(0x223)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x1ee0c6(0x1b9)}),'createDefaultValue':_0x423748=>_0x423748['defaultValue']??[],'validate':Kn}),H(_0x19bf94[_0x1ee0c6(0x440)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x218bac=>un(_0x218bac),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x46f)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x4d8792=>_0x4d8792==null?[]:Array[_0x1ee0c6(0x354)](_0x4d8792)?_0x4d8792:[_0x4d8792],{'createDefaultValue':_0x2fbefa=>_0x2fbefa['defaultValue']??[]}),H(_0x19bf94[_0x1ee0c6(0x271)],{},_0x5afd92=>_0x5afd92==null||_0x5afd92===''?null:Number(_0x5afd92),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x19bf94['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x237b0a=>_0x237b0a===!0x0||_0x237b0a===_0x1ee0c6(0x468)||_0x237b0a===0x1||_0x237b0a==='1',{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x49b),'color':_0x1ee0c6(0x41f)}),'createDefaultValue':_0x55f08d=>_0x55f08d[_0x1ee0c6(0x241)]??!0x1,'validate':_0x459646=>typeof _0x459646==_0x1ee0c6(0x364)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),H(_0x19bf94['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x2a7)}),'toPlainText':_0x4842aa=>Zn(_0x4842aa),'fromPlainText':_0x5b2aa4=>Xn(_0x5b2aa4)}),H(_0x19bf94[_0x1ee0c6(0x405)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x1ee0c6(0x325),'pattern':_0x1ee0c6(0x4e9)}}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x469)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x1ee0c6(0x19d)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x2ac)],{'usableAsTitle':!0x0},_0xa5f8aa=>_0xa5f8aa==null?null:String(_0xa5f8aa)[_0x1ee0c6(0x3bc)](),{'validate':_0x13a6f8=>_0x13a6f8==null||_0x13a6f8===''||/^\+?[0-9 ()-]{6,20}$/['test'](String(_0x13a6f8))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x19bf94[_0x1ee0c6(0x34d)],{'usableAsTitle':!0x0},_0xe88a27=>_0xe88a27==null?null:String(_0xe88a27)[_0x1ee0c6(0x3bc)](),{'validate':_0x59c90e=>_0x59c90e==null||_0x59c90e===''||$n(String(_0x59c90e))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1ee0c6(0x2f3)}}),H(_0x19bf94[_0x1ee0c6(0x1ba)],{'usableAsGanttProgress':!0x0},_0xa4c57a=>_0xa4c57a==null||_0xa4c57a===''?null:Number(_0xa4c57a),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1ee0c6(0x332),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x1e411d,_0x527781)=>Yn(_0x1e411d,_0x527781,_0x1ee0c6(0x38d))}),H(_0x19bf94[_0x1ee0c6(0x19c)],{},_0x5325bd=>_0x5325bd==null||_0x5325bd===''?null:Number(_0x5325bd),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x19bf94[_0x1ee0c6(0x4c5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x571480=>_0x571480==null||_0x571480===''?null:Number(_0x571480),{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x45b),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x3ec766,_0x13fd53)=>Yn(_0x3ec766,_0x13fd53,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x19bf94[_0x1ee0c6(0x2bd)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x3f27e4,_0x388120)=>ze(_0x3f27e4,_0x388120[_0x1ee0c6(0x342)]['multiple']===!0x0)}),H(_0x19bf94[_0x1ee0c6(0x44f)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x19bf94[_0x1ee0c6(0x1fe)],{'editable':!0x1,'groupable':!0x0},_0x198be3=>_0x198be3==null?null:String(_0x198be3),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x4df)],{'editable':!0x1,'groupable':!0x0},_0xc7f252=>_0xc7f252==null?null:String(_0xc7f252),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x253)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x6a04d1=>un(_0x6a04d1),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x347)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x463347=>un(_0x463347),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x5003ba=_0x354fcb;return{'pattern':_0x5003ba(0x408),'decimalPlaces':0x2,'separatorStyle':_0x5003ba(0x40a),'useThousands':!0x0,'abbreviation':_0x5003ba(0x3e0),'allowNegative':!0x0};}function Vn(){const _0x213d14=_0x354fcb;return{'locale':_0x213d14(0x1d5),'pattern':_0x213d14(0x1cd),'includeTime':!0x1,'hourCycle':_0x213d14(0x1a8),'defaultMode':_0x213d14(0x3e0)};}function Hn(_0x1fde51){const _0x26e1fe=_0x354fcb;return _0x1fde51==null||_0x1fde51===''?[]:Array[_0x26e1fe(0x354)](_0x1fde51)?_0x1fde51[_0x26e1fe(0x29b)](String):[String(_0x1fde51)];}function Un(_0x1074a8){const _0x28df28=_0x354fcb;return typeof _0x1074a8==_0x28df28(0x471)?_0x1074a8:'';}function Wn(_0x848846,_0x38c948){const _0x3a4f60=_0x354fcb;return _0x848846==null||_0x848846===''?_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?[]:null:_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?Array[_0x3a4f60(0x354)](_0x848846)?_0x848846[_0x3a4f60(0x29b)](String):[String(_0x848846)]:Array['isArray'](_0x848846)?String(_0x848846[0x0]??'')||null:String(_0x848846);}function Gn(_0x390d94,_0x3805f5){const _0x3be165=_0x354fcb;return _0x3805f5['config']['allowMultiple']===!0x0?Kn(_0x390d94):_0x390d94==null||_0x390d94===''||typeof _0x390d94==_0x3be165(0x471)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3be165(0x205)};}function Kn(_0x799c5f){const _0xb31783=_0x354fcb;return _0x799c5f==null||Array[_0xb31783(0x354)](_0x799c5f)&&_0x799c5f['every'](_0x24fdab=>typeof _0x24fdab==_0xb31783(0x471))?{'valid':!0x0}:{'valid':!0x1,'reason':_0xb31783(0x3bd)};}function qn(_0x391f0b){const _0x4add78=_0x354fcb;return _0x391f0b==null||typeof _0x391f0b==_0x4add78(0x256)&&Number[_0x4add78(0x2c3)](_0x391f0b)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4add78(0x394)};}function Jn(_0x59e7e1,_0x3db74b){const _0x5459f9=_0x354fcb;return _0x59e7e1==null||_0x59e7e1===''?{'valid':!0x0}:typeof _0x59e7e1!=_0x5459f9(0x256)||!Number[_0x5459f9(0x2c3)](_0x59e7e1)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x3db74b[_0x5459f9(0x342)][_0x5459f9(0x277)]===!0x1&&_0x59e7e1<0x0?{'valid':!0x1,'reason':_0x5459f9(0x4c9)}:{'valid':!0x0};}function Yn(_0x1dc9da,_0x5c49f8,_0x2e949c){const _0x54d96c=_0x354fcb;let _0x4e7ab0=Jn(_0x1dc9da,_0x5c49f8);if(!_0x4e7ab0[_0x54d96c(0x35c)]||_0x1dc9da==null||_0x1dc9da==='')return _0x4e7ab0;let _0x58a0da=Number(_0x5c49f8[_0x54d96c(0x342)]['min']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x191)]??0x0),_0x3078fb=Number(_0x5c49f8['config']['max']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x3ce)]??0x64),_0x5cf1ef=Number(_0x1dc9da);return _0x5cf1ef>=_0x58a0da&&_0x5cf1ef<=_0x3078fb?{'valid':!0x0}:{'valid':!0x1,'reason':_0x2e949c};}function Xn(_0x225fff){const _0x313ac6=_0x354fcb;if(_0x225fff==null||_0x225fff==='')return null;if(typeof _0x225fff==_0x313ac6(0x269)&&!Array[_0x313ac6(0x354)](_0x225fff)){let _0x232094=_0x225fff,_0x7e9c53=typeof _0x232094[_0x313ac6(0x4d2)]==_0x313ac6(0x471)?_0x232094['text'][_0x313ac6(0x3bc)]():'',_0x5d8565=typeof _0x232094[_0x313ac6(0x1c7)]=='string'?_0x232094[_0x313ac6(0x1c7)]['trim']():'',_0x5d7200=Qn(_0x5d8565||_0x7e9c53);return _0x5d7200?{'text':_0x7e9c53||_0x5d8565||_0x5d7200,'url':_0x5d7200}:null;}let _0x55557f=String(_0x225fff)[_0x313ac6(0x3bc)](),_0x42b333=Qn(_0x55557f);return _0x42b333?{'text':_0x55557f,'url':_0x42b333}:null;}function Zn(_0x5768b8){const _0x25ba4f=_0x354fcb;if(_0x5768b8==null)return'';if(typeof _0x5768b8=='object'&&!Array[_0x25ba4f(0x354)](_0x5768b8)){let _0x5841cd=_0x5768b8;return String(_0x5841cd[_0x25ba4f(0x4d2)]||_0x5841cd[_0x25ba4f(0x1c7)]||'');}return String(_0x5768b8);}function Qn(_0x57d5f5){const _0x568d70=_0x354fcb;let _0x403c7a=_0x57d5f5['trim']();if(!_0x403c7a)return'';let _0x57033f=/^[a-z][a-z\d+.-]*:/i['test'](_0x403c7a)?_0x403c7a:_0x403c7a[_0x568d70(0x254)]('//')?_0x568d70(0x45c)+_0x403c7a:'https://'+_0x403c7a;try{let _0x14ad9a=new URL(_0x57033f);return _0x14ad9a['protocol']===_0x568d70(0x410)||_0x14ad9a[_0x568d70(0x4ec)]===_0x568d70(0x45c)?_0x14ad9a[_0x568d70(0x3d9)]:'';}catch{return'';}}function $n(_0x5b1d4c){const _0x51541b=_0x354fcb;let _0x1f1465=_0x5b1d4c[_0x51541b(0x4c8)]('@');if(_0x1f1465<=0x0||_0x1f1465!==_0x5b1d4c[_0x51541b(0x444)]('@'))return!0x1;let _0x31134e=_0x5b1d4c[_0x51541b(0x192)](_0x1f1465+0x1);return _0x31134e['includes']('.')&&!_0x5b1d4c[_0x51541b(0x231)]('\x20')&&!_0x31134e[_0x51541b(0x254)]('.')&&!_0x31134e[_0x51541b(0x424)]('.');}const U={'table':_0x356416=>['tables',_0x356416],'field':(_0x337c3c,_0x3edec2)=>[_0x354fcb(0x2ba),_0x337c3c,_0x354fcb(0x480),_0x3edec2],'fieldOrder':(_0x14429c,_0x587a81)=>[_0x354fcb(0x2ba),_0x14429c,_0x354fcb(0x1e1),_0x587a81],'record':(_0x18f554,_0x24f935)=>[_0x354fcb(0x2ba),_0x18f554,_0x354fcb(0x45a),_0x24f935],'cell':(_0x4420bb,_0x424782,_0xf2cec8)=>[_0x354fcb(0x2ba),_0x4420bb,_0x354fcb(0x45a),_0x424782,_0x354fcb(0x1da),_0xf2cec8],'cellData':(_0x5d9c6f,_0x3c289d,_0xbd87cf)=>[_0x354fcb(0x2ba),_0x5d9c6f,_0x354fcb(0x1cf),String(_0x3c289d),String(_0xbd87cf)],'attachmentSet':(_0x4ccfd7,_0x529080)=>['tables',_0x4ccfd7,_0x354fcb(0x358),_0x354fcb(0x47e),_0x529080],'attachment':(_0x4a64ed,_0x21ac81)=>[_0x354fcb(0x2ba),_0x4a64ed,'resources',_0x354fcb(0x499),_0x21ac81],'view':(_0x265723,_0x34d7d2)=>['tables',_0x265723,_0x354fcb(0x38b),_0x34d7d2],'viewFieldHidden':(_0x122178,_0x299f55,_0x19540d)=>[_0x354fcb(0x2ba),_0x122178,'views',_0x299f55,_0x354fcb(0x484),_0x19540d,'hidden']};var W=class{[_0x354fcb(0x22a)](_0x196e68,_0x262fbc){const _0x108d4f=_0x354fcb;let _0x1c1902=this[_0x108d4f(0x1ed)](_0x196e68,_0x196e68[_0x108d4f(0x1e0)],_0x262fbc);return R([this[_0x108d4f(0x24b)]([_0x108d4f(0x1e0)],_0x196e68[_0x108d4f(0x1e0)],_0x262fbc),..._0x1c1902?[_0x1c1902]:[]]);}[_0x354fcb(0x1ed)](_0x32db73,_0x22c1d3,_0x38541a){const _0xbce59c=_0x354fcb;let _0x567e2f=Object[_0xbce59c(0x1da)](_0x32db73['tables'])['flatMap'](_0x4a381a=>Object[_0xbce59c(0x1da)](_0x4a381a[_0xbce59c(0x480)])[_0xbce59c(0x2a2)](_0x54c828=>{const _0xd1200d=_0xbce59c;var _0x2e45f7,_0x59ba07;if(_0x54c828[_0xd1200d(0x33a)]!==_0x19bf94[_0xd1200d(0x405)])return[];let _0x2d164f=String(((_0x2e45f7=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x2e45f7[_0xd1200d(0x23a)])??''),_0x5b35f8=_0x5981a8(_0x2d164f,_0x22c1d3,_0x38541a);return _0x5b35f8===_0x2d164f?[]:[this['_replaceOptional']([...U[_0xd1200d(0x28b)](_0x4a381a['id'],_0x54c828['id']),_0xd1200d(0x342),_0xd1200d(0x23a)],(_0x59ba07=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x59ba07[_0xd1200d(0x23a)],_0x5b35f8)];}));return _0x567e2f[_0xbce59c(0x458)]>0x0?R(_0x567e2f):void 0x0;}[_0x354fcb(0x500)](_0x5bcd44,_0x4f9dc3,_0x221442=_0x5bcd44[_0x354fcb(0x3e3)]['length']){const _0x4d74de=_0x354fcb;let _0x60153a=_0x3ec76b(_0x4f9dc3[_0x4d74de(0x1e0)],_0x49362b(_0x5bcd44)[_0x4d74de(0x1da)](),_0x4f9dc3[_0x4d74de(0x357)]),_0x4dece8=_0x4f9dc3[_0x4d74de(0x357)]===_0x60153a?_0x4f9dc3:{..._0x4f9dc3,'formulaName':_0x60153a};return R([...this[_0x4d74de(0x317)](_0x5bcd44),_0x370803[_0x4d74de(0x207)](U[_0x4d74de(0x513)](_0x4f9dc3['id']),_0x4dece8),_0x370803[_0x4d74de(0x207)](['tableOrder',_0x221442],_0x4f9dc3['id'])]);}[_0x354fcb(0x1be)](_0x2aa89f,_0x52aa2d,_0x15c8e2){const _0x1c80ab=_0x354fcb;let _0x9e5153=_0x2aa89f[_0x1c80ab(0x2ba)][_0x52aa2d];return R([...this[_0x1c80ab(0x317)](_0x2aa89f),_0x370803['replaceOp']([...U[_0x1c80ab(0x513)](_0x52aa2d),_0x1c80ab(0x1e0)],_0x9e5153[_0x1c80ab(0x1e0)],_0x15c8e2)]);}[_0x354fcb(0x4d8)](_0x8c193e,_0x1efc7c){const _0x4aa7d8=_0x354fcb;let _0x39ce3c=_0x8c193e['tables'][_0x1efc7c],_0x1fa51b=_0x8c193e[_0x4aa7d8(0x3e3)]['indexOf'](_0x1efc7c);return R([...this[_0x4aa7d8(0x317)](_0x8c193e,new Set([_0x1efc7c])),_0x370803[_0x4aa7d8(0x246)](U[_0x4aa7d8(0x513)](_0x1efc7c),_0x39ce3c),_0x370803[_0x4aa7d8(0x246)](['tableOrder',_0x1fa51b],_0x1efc7c)]);}[_0x354fcb(0x4a0)](_0x11e87b,_0x5197d,_0x2058f0){return this['createRecords'](_0x11e87b,_0x5197d,[_0x2058f0]);}[_0x354fcb(0x268)](_0x5372be,_0x46bf77,_0x5bb7f1){const _0x493bde=_0x354fcb;let _0x225d5a=_0x5372be[_0x493bde(0x2ba)][_0x46bf77],_0xff005e=_0x5bb7f1[_0x493bde(0x397)](_0x42c980=>_0x42c980&&!_0x225d5a[_0x493bde(0x45a)][_0x42c980['id']])[_0x493bde(0x29b)](_0x163c45=>({..._0x163c45,'values':{..._0x163c45[_0x493bde(0x1da)],[_0x3b44b5]:_0x163c45['id']}}));if(!_0xff005e['length'])return _0x370803[_0x493bde(0x333)]([...U[_0x493bde(0x513)](_0x46bf77),'records'],_0x225d5a[_0x493bde(0x45a)],_0x225d5a['records']);let _0x4f2a99=new _0x370803[(_0x493bde(0x343))](),_0x1896aa=[..._0xff005e][_0x493bde(0x3db)]((_0x439094,_0x4561f6)=>_0x439094['id']<_0x4561f6['id']?-0x1:+(_0x439094['id']>_0x4561f6['id'])),_0x578ad6=[...U[_0x493bde(0x513)](_0x46bf77),'records'];_0x4f2a99[_0x493bde(0x197)](_0x578ad6);for(let _0x5f2136 of _0x1896aa)_0x4f2a99[_0x493bde(0x1c1)](_0x5f2136['id']),_0x4f2a99[_0x493bde(0x338)]('i',_0x5f2136),_0x4f2a99[_0x493bde(0x2dc)]();for(let _0x10be1a=0x0;_0x10be1a<_0x578ad6[_0x493bde(0x458)];_0x10be1a+=0x1)_0x4f2a99['ascend']();return R([_0x4f2a99[_0x493bde(0x4a8)](),this['_createRecordOrderOp'](_0x5372be,_0x46bf77,_0xff005e)]);}[_0x354fcb(0x375)](_0x448e08,_0x41e5d5,_0x5b644f){const _0x3d76c7=_0x354fcb;return this[_0x3d76c7(0x305)](_0x448e08,_0x41e5d5,[_0x5b644f]);}[_0x354fcb(0x305)](_0x2eb6c6,_0x4dac0e,_0x441b2e){const _0x4d2249=_0x354fcb;let _0x367a20=_0x2eb6c6[_0x4d2249(0x2ba)][_0x4dac0e],_0x3d15c8=Array['from'](new Set(_0x441b2e))[_0x4d2249(0x397)](_0x1282c1=>_0x367a20['records'][_0x1282c1]);if(!_0x3d15c8['length'])return _0x370803[_0x4d2249(0x333)]([...U[_0x4d2249(0x513)](_0x4dac0e),_0x4d2249(0x45a)],_0x367a20[_0x4d2249(0x45a)],_0x367a20['records']);let _0x5a3a3a=new Set(_0x3d15c8),_0x323d9c=et(_0x367a20,_0x3d15c8)['map'](_0x57177b=>this[_0x4d2249(0x3e6)](_0x2eb6c6,_0x4dac0e,_0x57177b['recordId'],_0x57177b[_0x4d2249(0x46e)],''));return R([this[_0x4d2249(0x24c)](_0x2eb6c6,_0x4dac0e,_0x3d15c8,_0x5a3a3a),..._0x323d9c]);}[_0x354fcb(0x51d)](_0x541777,_0x531b53,_0x5518ae,_0x39ee30){const _0x19b61e=_0x354fcb;let _0x3526a4=_0x541777[_0x19b61e(0x2ba)][_0x5518ae],_0xfa08c4=Array[_0x19b61e(0x4dd)](new Set(_0x39ee30))[_0x19b61e(0x397)](_0x3ef604=>_0x3526a4[_0x19b61e(0x45a)][_0x3ef604]),_0x4dcb96=new Set(_0xfa08c4);return R([new z()[_0x19b61e(0x2aa)](_0x541777,this[_0x19b61e(0x24c)](_0x541777,_0x5518ae,_0xfa08c4,_0x4dcb96)),...et(_0x3526a4,_0xfa08c4)['map'](_0x669415=>this[_0x19b61e(0x3e6)](_0x531b53,_0x5518ae,_0x669415[_0x19b61e(0x4bb)],_0x669415[_0x19b61e(0x46e)],_0x669415[_0x19b61e(0x30d)]??''))]);}[_0x354fcb(0x24c)](_0x30d54f,_0x25683e,_0x556b49,_0x4468ad){const _0x54974a=_0x354fcb;let _0xa2aa49=_0x30d54f['tables'][_0x25683e],_0x4a5745=_0x556b49[_0x54974a(0x29b)](_0x1fc5ac=>{const _0x2f7eaf=_0x54974a;var _0x30b1a3;return{'recordId':_0x1fc5ac,'index':((_0x30b1a3=_0xa2aa49[_0x2f7eaf(0x22d)])==null?void 0x0:_0x30b1a3[_0x2f7eaf(0x4c8)](_0x1fc5ac))??-0x1};})[_0x54974a(0x397)](_0x3a25cc=>_0x3a25cc[_0x54974a(0x250)]>=0x0)['sort']((_0x276a42,_0x5edd0e)=>_0x5edd0e[_0x54974a(0x250)]-_0x276a42['index']);return R([..._0x556b49['map'](_0x5c1476=>_0x370803[_0x54974a(0x246)](U[_0x54974a(0x52b)](_0x25683e,_0x5c1476),_0xa2aa49[_0x54974a(0x45a)][_0x5c1476])),..._0x4a5745[_0x54974a(0x29b)](({recordId:_0x33c015,index:_0x5bb885})=>_0x370803[_0x54974a(0x246)]([_0x54974a(0x2ba),_0x25683e,'recordOrder',_0x5bb885],_0x33c015)),...this[_0x54974a(0x4a3)](_0xa2aa49,_0x25683e,_0x3953a6=>{const _0x3a831a=_0x54974a;let _0x257273=_0x3953a6[_0x3a831a(0x192)](_0x3953a6[_0x3a831a(0x444)]('\x1f')+0x1);return _0x4468ad[_0x3a831a(0x23f)](_0x257273);})]);}[_0x354fcb(0x3e5)](_0x5ea815,_0x45cf19,_0x12d5f2,_0x562f2e){const _0x4147ed=_0x354fcb;return this[_0x4147ed(0x4a0)](_0x5ea815,_0x45cf19,{..._0x562f2e,'values':{..._0x5ea815[_0x4147ed(0x2ba)][_0x45cf19][_0x4147ed(0x45a)][_0x12d5f2][_0x4147ed(0x1da)],..._0x562f2e[_0x4147ed(0x1da)],[_0x3b44b5]:_0x562f2e['id']}});}[_0x354fcb(0x229)](_0x15de97,_0x2239cb,_0x5a1aec,_0x4ec67a){const _0x18ae2b=_0x354fcb;let _0x280fde=_0x15de97[_0x18ae2b(0x2ba)][_0x2239cb],_0x4d1c6e=[...U['record'](_0x2239cb,_0x5a1aec),_0x18ae2b(0x3ef)],_0xcd69e4=Object[_0x18ae2b(0x1da)](_0x280fde[_0x18ae2b(0x45a)])[_0x18ae2b(0x29b)](_0x2f3024=>_0x2f3024['id']===_0x5a1aec?{..._0x2f3024,'orderKey':_0x4ec67a}:_0x2f3024)[_0x18ae2b(0x3db)]((_0x56e55f,_0x4e4277)=>String(_0x56e55f[_0x18ae2b(0x3ef)]??_0x56e55f['id'])[_0x18ae2b(0x4bc)](String(_0x4e4277[_0x18ae2b(0x3ef)]??_0x4e4277['id'])))[_0x18ae2b(0x29b)](_0x4694e2=>_0x4694e2['id']),_0x4725cb=[...U['table'](_0x2239cb),'recordOrder'];return R([this[_0x18ae2b(0x24b)](_0x4d1c6e,_0x280fde[_0x18ae2b(0x45a)][_0x5a1aec]['orderKey'],_0x4ec67a),_0x280fde[_0x18ae2b(0x22d)]?_0x370803[_0x18ae2b(0x333)](_0x4725cb,_0x280fde[_0x18ae2b(0x22d)],_0xcd69e4):_0x370803[_0x18ae2b(0x207)](_0x4725cb,_0xcd69e4)]);}['updateCell'](_0x442947,_0x1e74fe,_0x2251df,_0x1ff27f,_0x54d826){const _0x24f67f=_0x354fcb;var _0x38757f,_0x218502;let _0x16d4d9=_0x442947['tables'][_0x1e74fe],_0x109f2d=ar(_0x16d4d9,_0x2251df,_0x1ff27f)?_0x16d4d9:L(_0x16d4d9),_0x5acb88=(_0x38757f=_0x109f2d[_0x24f67f(0x290)])==null?void 0x0:_0x38757f[_0x2251df],_0x3da42e=(_0x218502=_0x109f2d[_0x24f67f(0x288)])==null?void 0x0:_0x218502[_0x1ff27f];if(_0x5acb88==null||_0x3da42e==null){var _0x5519dd;return this['_replaceOptional'](U[_0x24f67f(0x4eb)](_0x1e74fe,_0x2251df,_0x1ff27f),(_0x5519dd=_0x442947[_0x24f67f(0x2ba)][_0x1e74fe])==null||(_0x5519dd=_0x5519dd[_0x24f67f(0x45a)][_0x2251df])==null?void 0x0:_0x5519dd[_0x24f67f(0x1da)][_0x1ff27f],_0x54d826);}return this[_0x24f67f(0x511)](_0x442947,_0x1e74fe,[{'row':_0x5acb88,'col':_0x3da42e,'value':_0x54d826}]);}[_0x354fcb(0x19a)](_0x42b2b1,_0x5ea59e,_0x28f40b){const _0x5c77a2=_0x354fcb;let _0xfbd4d0=_0x42b2b1['tables'][_0x5ea59e],_0x22dcb9=_0x28f40b[_0x5c77a2(0x1b6)](_0x32f45a=>Object[_0x5c77a2(0x51b)](_0x32f45a[_0x5c77a2(0x1da)])[_0x5c77a2(0x1b6)](_0xb9b906=>ar(_0xfbd4d0,_0x32f45a['recordId'],_0xb9b906)))?_0xfbd4d0:L(_0xfbd4d0),_0x286017=_0x28f40b['flatMap'](_0x228547=>Object[_0x5c77a2(0x1e2)](_0x228547[_0x5c77a2(0x1da)])[_0x5c77a2(0x2a2)](([_0x537411,_0x331e55])=>{const _0x525ea7=_0x5c77a2;var _0x2a8ecf,_0x53edf0;let _0x12ec42=(_0x2a8ecf=_0x22dcb9[_0x525ea7(0x290)])==null?void 0x0:_0x2a8ecf[_0x228547[_0x525ea7(0x4bb)]],_0x25d862=(_0x53edf0=_0x22dcb9[_0x525ea7(0x288)])==null?void 0x0:_0x53edf0[_0x537411];return _0x12ec42==null||_0x25d862==null?[]:[{'row':_0x12ec42,'col':_0x25d862,'value':_0x331e55}];})),_0x211c8f=_0x28f40b[_0x5c77a2(0x2a2)](_0x5f41e0=>Object[_0x5c77a2(0x1e2)](_0x5f41e0[_0x5c77a2(0x4b8)]??{})['map'](([_0x450e48,_0x3866a5])=>{const _0xfe8910=_0x5c77a2;var _0x4ec52e;let _0xa959d9=[...U[_0xfe8910(0x52b)](_0x5ea59e,_0x5f41e0[_0xfe8910(0x4bb)]),_0x450e48],_0x6a4810=(_0x4ec52e=_0x42b2b1[_0xfe8910(0x2ba)][_0x5ea59e])==null||(_0x4ec52e=_0x4ec52e[_0xfe8910(0x45a)][_0x5f41e0[_0xfe8910(0x4bb)]])==null?void 0x0:_0x4ec52e[_0x450e48];return this['_replaceOptional'](_0xa959d9,_0x6a4810,_0x3866a5);}));return R([this[_0x5c77a2(0x511)](_0x42b2b1,_0x5ea59e,_0x286017),..._0x211c8f]);}[_0x354fcb(0x511)](_0x37b665,_0x20d686,_0x4ab010){const _0x111137=_0x354fcb;let _0xab954b=_0x37b665[_0x111137(0x2ba)][_0x20d686],_0x4510d7=_0x4ab010[_0x111137(0x1b6)](_0x295918=>or(_0xab954b,_0x295918['row'],_0x295918[_0x111137(0x1ea)]))?_0xab954b:L(_0xab954b),_0x3f6015=new Map(),_0x533cf2=_0x4ab010['flatMap'](_0x26a4d1=>{const _0x545c52=_0x111137;var _0x160a99,_0x52dccc,_0x42c4d7,_0x36eba1;let _0x1069ed=(_0x160a99=_0x4510d7[_0x545c52(0x242)])==null?void 0x0:_0x160a99[_0x26a4d1[_0x545c52(0x1ea)]],_0x16a050=(_0x52dccc=_0x4510d7[_0x545c52(0x474)])==null?void 0x0:_0x52dccc[_0x26a4d1[_0x545c52(0x21b)]],_0x50d2f8=_0x1069ed?_0x4510d7['fields'][_0x1069ed]:void 0x0;if(_0x1069ed===_0x3b44b5||(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x44f)])throw Error(_0x545c52(0x2f2));let _0x2ae7d5=xt(_0x26a4d1[_0x545c52(0x416)],_0x50d2f8),_0x3b5daf=(_0x42c4d7=_0x4510d7[_0x545c52(0x1cf)])==null||(_0x42c4d7=_0x42c4d7[_0x26a4d1['row']])==null?void 0x0:_0x42c4d7[_0x26a4d1[_0x545c52(0x1ea)]],_0x3b889e=this[_0x545c52(0x24b)](U[_0x545c52(0x1cf)](_0x20d686,_0x26a4d1[_0x545c52(0x21b)],_0x26a4d1[_0x545c52(0x1ea)]),_0x3b5daf,_0x2ae7d5);if(!_0x1069ed||!_0x16a050)return[_0x3b889e];let _0x403a0f=(_0x36eba1=_0x4510d7[_0x545c52(0x45a)][_0x16a050])==null?void 0x0:_0x36eba1[_0x545c52(0x1da)][_0x1069ed],_0x2f56e8=(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]?kt(_0x26a4d1[_0x545c52(0x416)]):wt(_0x26a4d1[_0x545c52(0x416)],_0x2ae7d5,_0x50d2f8,_0x4510d7,_0x16a050),_0xe1c566=[_0x3b889e,this[_0x545c52(0x24b)](U[_0x545c52(0x4eb)](_0x20d686,_0x16a050,_0x1069ed),_0x403a0f,_0x2f56e8)];return(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]&&_0x3f6015[_0x545c52(0x1a1)](Et(_0x1069ed,_0x16a050),{'recordId':_0x16a050,'fieldId':_0x1069ed,'attachments':_0x2f56e8}),_0xe1c566;});return _0x533cf2['length']?R([..._0x533cf2,...this[_0x111137(0x4d0)](_0x4510d7,_0x20d686,Array[_0x111137(0x4dd)](_0x3f6015[_0x111137(0x1da)]()))]):_0x370803['replaceOp']([_0x111137(0x2ba),_0x20d686,_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)]);}['createField'](_0x17fb5e,_0x5a9c7e,_0x3bbf65){const _0x155938=_0x354fcb;let _0xd19cad=_0x17fb5e[_0x155938(0x2ba)][_0x5a9c7e];if(_0xd19cad[_0x155938(0x480)][_0x3bbf65[_0x155938(0x28b)]['id']]||_0xd19cad['fieldOrder'][_0x155938(0x231)](_0x3bbf65[_0x155938(0x28b)]['id']))return _0x370803['replaceOp']([_0x155938(0x2ba),_0x5a9c7e,_0x155938(0x1e1)],_0xd19cad['fieldOrder'],_0xd19cad[_0x155938(0x1e1)]);let _0x35521b=Math[_0x155938(0x1b3)](0x1,_0x3bbf65[_0x155938(0x250)]??_0xd19cad['fieldOrder']['length']),_0xa7eb07=Object[_0x155938(0x1da)](_0xd19cad[_0x155938(0x38b)]??{})['flatMap'](_0x174848=>{const _0x5885bd=_0x155938;var _0x3701d2;if(!_0x174848[_0x5885bd(0x1e1)]||_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x231)](_0x3bbf65['field']['id']))return[];let _0x3bc4e7=ur(((_0x3701d2=_0x3bbf65[_0x5885bd(0x485)])==null?void 0x0:_0x3701d2[_0x174848['id']])??_0x35521b,_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x458)]);return[_0x370803[_0x5885bd(0x207)]([...U[_0x5885bd(0x2df)](_0x5a9c7e,_0x174848['id']),_0x5885bd(0x1e1),_0x3bc4e7],_0x3bbf65[_0x5885bd(0x28b)]['id'])];});return R([..._0x3bbf65[_0x155938(0x28b)]['type']===_0x19bf94['Formula']?this[_0x155938(0x317)](_0x17fb5e):[],_0x370803[_0x155938(0x207)](U[_0x155938(0x28b)](_0x5a9c7e,_0x3bbf65[_0x155938(0x28b)]['id']),_0x3bbf65[_0x155938(0x28b)]),_0x370803[_0x155938(0x207)](U[_0x155938(0x1e1)](_0x5a9c7e,_0x35521b),_0x3bbf65[_0x155938(0x28b)]['id']),..._0xa7eb07]);}['duplicateField'](_0x156f99,_0x5b3db4,_0x351a31,_0x49bb5d){const _0x1a538f=_0x354fcb;let _0x261205=_0x156f99[_0x1a538f(0x2ba)][_0x5b3db4];if(!_0x261205[_0x1a538f(0x480)][_0x351a31]||_0x261205[_0x1a538f(0x480)][_0x49bb5d['field']['id']]||_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x231)](_0x49bb5d[_0x1a538f(0x28b)]['id']))return _0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)]);let _0xe8de3d=_0x49bb5d[_0x1a538f(0x250)]??_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x4c8)](_0x351a31)+0x1,_0x52ebf3=_0x261205[_0x1a538f(0x1e1)]['filter'](_0x311e98=>_0x311e98!==_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x129ce0=cr(_0x52ebf3,_0x49bb5d['field']['id'],_0xe8de3d),_0x18a295=Object['values'](_0x261205[_0x1a538f(0x38b)]??{})[_0x1a538f(0x2a2)](_0x32a69d=>{const _0x8d3ebf=_0x1a538f;var _0x53bd82,_0xe6ce78,_0x32b816,_0x17c0ac;let _0x5cfd98=(_0x53bd82=_0x32a69d[_0x8d3ebf(0x1e1)])!=null&&_0x53bd82['length']?_0x32a69d[_0x8d3ebf(0x1e1)]:_0x52ebf3;if(_0x5cfd98[_0x8d3ebf(0x231)](_0x49bb5d[_0x8d3ebf(0x28b)]['id']))return[];let _0x1531bc=cr(_0x5cfd98,_0x49bb5d[_0x8d3ebf(0x28b)]['id'],((_0xe6ce78=_0x49bb5d['viewIndexes'])==null?void 0x0:_0xe6ce78[_0x32a69d['id']])??_0xe8de3d),_0x1f9fb5=(_0x32b816=_0x32a69d['fieldSettings'])==null?void 0x0:_0x32b816[_0x351a31];return[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),'fieldOrder'],_0x32a69d[_0x8d3ebf(0x1e1)],_0x1531bc),..._0x1f9fb5?[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),_0x8d3ebf(0x484),_0x49bb5d[_0x8d3ebf(0x28b)]['id']],(_0x17c0ac=_0x32a69d[_0x8d3ebf(0x484)])==null?void 0x0:_0x17c0ac[_0x49bb5d[_0x8d3ebf(0x28b)]['id']],_0x1f9fb5)]:[]];}),_0x3b4784=Object[_0x1a538f(0x1da)](_0x261205[_0x1a538f(0x45a)])[_0x1a538f(0x397)](_0x4441f9=>Object[_0x1a538f(0x32b)][_0x1a538f(0x42f)]['call'](_0x4441f9[_0x1a538f(0x1da)],_0x351a31))['map'](_0x27104b=>this[_0x1a538f(0x24b)](U[_0x1a538f(0x4eb)](_0x5b3db4,_0x27104b['id'],_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x27104b[_0x1a538f(0x1da)][_0x49bb5d[_0x1a538f(0x28b)]['id']],_0x27104b[_0x1a538f(0x1da)][_0x351a31]));return R([..._0x49bb5d['field'][_0x1a538f(0x33a)]===_0x19bf94[_0x1a538f(0x405)]?this[_0x1a538f(0x317)](_0x156f99):[],_0x370803[_0x1a538f(0x207)](U[_0x1a538f(0x28b)](_0x5b3db4,_0x49bb5d['field']['id']),_0x49bb5d[_0x1a538f(0x28b)]),_0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x129ce0),..._0x18a295,..._0x3b4784]);}[_0x354fcb(0x409)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x415ad5){const _0x421e04=_0x354fcb;let _0x33fc00=_0x350791['tables'][_0x4d6b11][_0x421e04(0x480)][_0x2cb2a3],_0x2be9c8={..._0x33fc00,..._0x415ad5};Object[_0x421e04(0x51b)](_0x415ad5)[_0x421e04(0x461)](_0x1069e0=>{_0x415ad5[_0x1069e0]===void 0x0&&delete _0x2be9c8[_0x1069e0];});let _0x5bb06f=er(_0x350791[_0x421e04(0x2ba)][_0x4d6b11],_0x2cb2a3,_0x33fc00,_0x2be9c8);_0x2be9c8=_0x5bb06f[_0x421e04(0x28b)];let _0xb323a=_0x370803['replaceOp'](U[_0x421e04(0x28b)](_0x4d6b11,_0x2cb2a3),_0x33fc00,_0x2be9c8);return _0x2be9c8[_0x421e04(0x33a)]===_0x19bf94[_0x421e04(0x405)]?R([...this[_0x421e04(0x317)](_0x350791),_0xb323a,...this[_0x421e04(0x221)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x2be9c8)]):R([_0xb323a,..._0x5bb06f[_0x421e04(0x1bc)][_0x421e04(0x458)]?[this['setRangeValues'](_0x350791,_0x4d6b11,_0x5bb06f[_0x421e04(0x1bc)])]:[]]);}[_0x354fcb(0x2b7)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6){const _0x3b8569=_0x354fcb;return this[_0x3b8569(0x409)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6);}['deleteField'](_0x215a4b,_0x259f5c,_0x6dbd9f){const _0x959eb1=_0x354fcb;let _0x5bc7a5=_0x215a4b[_0x959eb1(0x2ba)][_0x259f5c];if(!(_0x5bc7a5!=null&&_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f])||_0x5bc7a5['primaryFieldId']===_0x6dbd9f||_0x6dbd9f===_0x3b44b5)return _0x370803['replaceOp']([_0x959eb1(0x2ba),_0x259f5c,_0x959eb1(0x1e1)],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder'],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder']);let _0x3a9042=_0x5bc7a5[_0x959eb1(0x1e1)][_0x959eb1(0x4c8)](_0x6dbd9f),_0x4589b0=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x38b)])[_0x959eb1(0x2a2)](_0x39d898=>{const _0x3ec393=_0x959eb1;var _0x1cbe01,_0x3b900d,_0x409075,_0x282d9f,_0x2592f6,_0x12bf39,_0x2993af;let _0x1f898c=[],_0x5e88ab=((_0x1cbe01=_0x39d898[_0x3ec393(0x1e1)])==null?void 0x0:_0x1cbe01['indexOf'](_0x6dbd9f))??-0x1;_0x5e88ab>=0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803['removeOp']([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x1e1),_0x5e88ab],_0x6dbd9f));let _0xacedc0=(_0x3b900d=_0x39d898[_0x3ec393(0x484)])==null?void 0x0:_0x3b900d[_0x6dbd9f];_0xacedc0!==void 0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803[_0x3ec393(0x246)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x484),_0x6dbd9f],_0xacedc0));let _0x1801c7=_0x39d898[_0x3ec393(0x397)]?{..._0x39d898['filter'],'conditions':_0x39d898['filter'][_0x3ec393(0x309)][_0x3ec393(0x397)](_0x3aecd8=>_0x3aecd8[_0x3ec393(0x46e)]!==_0x6dbd9f)}:_0x39d898[_0x3ec393(0x397)];_0x1801c7&&_0x1801c7[_0x3ec393(0x309)][_0x3ec393(0x458)]!==((_0x409075=_0x39d898[_0x3ec393(0x397)])==null?void 0x0:_0x409075[_0x3ec393(0x309)]['length'])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'filter'],_0x39d898[_0x3ec393(0x397)],_0x1801c7));let _0x2da8f1=(_0x282d9f=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x282d9f[_0x3ec393(0x397)](_0x58f684=>_0x58f684['fieldId']!==_0x6dbd9f);_0x2da8f1&&_0x2da8f1[_0x3ec393(0x458)]!==((_0x2592f6=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x2592f6[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x3db)],_0x39d898[_0x3ec393(0x3db)],_0x2da8f1));let _0x1385af=(_0x12bf39=_0x39d898['group'])==null?void 0x0:_0x12bf39[_0x3ec393(0x397)](_0x2aea05=>_0x2aea05['fieldId']!==_0x6dbd9f);_0x1385af&&_0x1385af['length']!==((_0x2993af=_0x39d898['group'])==null?void 0x0:_0x2993af[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'group'],_0x39d898[_0x3ec393(0x1b9)],_0x1385af));let _0x5198f7=lr(_0x39d898[_0x3ec393(0x342)],_0x6dbd9f);return JSON['stringify'](_0x5198f7)!==JSON[_0x3ec393(0x449)](_0x39d898['config'])&&_0x1f898c['push'](_0x370803[_0x3ec393(0x333)]([...U['view'](_0x259f5c,_0x39d898['id']),'config'],_0x39d898[_0x3ec393(0x342)],_0x5198f7)),_0x1f898c;}),_0xf25c5d=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x45a)])['flatMap'](_0x15970e=>Object['prototype']['hasOwnProperty']['call'](_0x15970e['values'],_0x6dbd9f)?[_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x4eb)](_0x259f5c,_0x15970e['id'],_0x6dbd9f),_0x15970e[_0x959eb1(0x1da)][_0x6dbd9f])]:[]);return R([_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x28b)](_0x259f5c,_0x6dbd9f),_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f]),_0x370803['removeOp'](U[_0x959eb1(0x1e1)](_0x259f5c,_0x3a9042),_0x6dbd9f),..._0x4589b0,..._0xf25c5d,...this[_0x959eb1(0x4a3)](_0x5bc7a5,_0x259f5c,_0x2b5dfa=>_0x2b5dfa[_0x959eb1(0x254)](_0x6dbd9f+'\x1f'))]);}[_0x354fcb(0x399)](_0x2f1b7b,_0x5e237d,_0x37e3e8,_0x501b8e){const _0x493c1d=_0x354fcb;let _0x353105=_0x2f1b7b[_0x493c1d(0x2ba)][_0x5e237d]['fieldOrder'];if(_0x37e3e8===_0x3b44b5||_0x501b8e['beforeFieldId']===_0x3b44b5)throw Error(_0x493c1d(0x1f8));let _0xf529fd=sr(_0x353105,_0x37e3e8,_0x501b8e);return _0x370803[_0x493c1d(0x333)]([_0x493c1d(0x2ba),_0x5e237d,'fieldOrder'],_0x353105,_0xf529fd);}[_0x354fcb(0x446)](_0x5078f0,_0x15d27d,_0x18ad44,_0x3d7d1d=_0x5078f0[_0x354fcb(0x2ba)][_0x15d27d]['viewOrder'][_0x354fcb(0x458)]){const _0x284e53=_0x354fcb;return R([_0x370803[_0x284e53(0x207)](U['view'](_0x15d27d,_0x18ad44['id']),_0x18ad44),_0x370803['insertOp']([_0x284e53(0x2ba),_0x15d27d,_0x284e53(0x3f8),_0x3d7d1d],_0x18ad44['id'])]);}[_0x354fcb(0x370)](_0x4bb194,_0x5b038f,_0x37b347,_0x445fb4){const _0x1d0efe=_0x354fcb;return _0x370803[_0x1d0efe(0x333)]([...U['view'](_0x5b038f,_0x37b347),_0x1d0efe(0x1e0)],_0x4bb194[_0x1d0efe(0x2ba)][_0x5b038f]['views'][_0x37b347][_0x1d0efe(0x1e0)],_0x445fb4);}['deleteView'](_0x20502c,_0x15550f,_0x304c88){const _0x2db9b9=_0x354fcb;let _0x1ebe19=_0x20502c[_0x2db9b9(0x2ba)][_0x15550f],_0x5288fe=_0x1ebe19[_0x2db9b9(0x38b)][_0x304c88],_0x52cbb3=_0x1ebe19[_0x2db9b9(0x3f8)][_0x2db9b9(0x4c8)](_0x304c88);return R([_0x370803[_0x2db9b9(0x246)](U[_0x2db9b9(0x2df)](_0x15550f,_0x304c88),_0x5288fe),_0x370803['removeOp']([_0x2db9b9(0x2ba),_0x15550f,_0x2db9b9(0x3f8),_0x52cbb3],_0x304c88)]);}['moveView'](_0x27ed7e,_0x3c8511,_0x62ab24,_0x178e9d){const _0x57ad45=_0x354fcb;let _0x520409=_0x27ed7e[_0x57ad45(0x2ba)][_0x3c8511][_0x57ad45(0x3f8)],_0x287cbd=sr(_0x520409,_0x62ab24,{'beforeFieldId':_0x178e9d[_0x57ad45(0x2f6)],'afterFieldId':_0x178e9d['afterViewId']});return _0x370803[_0x57ad45(0x333)]([_0x57ad45(0x2ba),_0x3c8511,_0x57ad45(0x3f8)],_0x520409,_0x287cbd);}['updateViewConfig'](_0x449ddf,_0x4516c6,_0x38e5e4,_0x4a077f){const _0x30e3d4=_0x354fcb;let _0x2899bc=_0x449ddf[_0x30e3d4(0x2ba)][_0x4516c6][_0x30e3d4(0x38b)][_0x38e5e4][_0x30e3d4(0x342)]??{},_0x47371f={..._0x2899bc,..._0x4a077f};return Object['keys'](_0x4a077f)[_0x30e3d4(0x461)](_0x30a71c=>{_0x4a077f[_0x30a71c]===void 0x0&&delete _0x47371f[_0x30a71c];}),_0x370803[_0x30e3d4(0x333)]([...U[_0x30e3d4(0x2df)](_0x4516c6,_0x38e5e4),'config'],_0x2899bc,_0x47371f);}['setViewFilter'](_0x3c5f1f,_0x19a0be,_0x511fa0,_0x44b75a){const _0xdd413a=_0x354fcb;return this[_0xdd413a(0x24b)]([...U[_0xdd413a(0x2df)](_0x19a0be,_0x511fa0),_0xdd413a(0x397)],_0x3c5f1f[_0xdd413a(0x2ba)][_0x19a0be]['views'][_0x511fa0][_0xdd413a(0x397)],_0x44b75a);}['setViewSort'](_0x34c328,_0x5291a3,_0x4a6537,_0x322d67){const _0x20f58f=_0x354fcb;return this['_replaceOptional']([...U[_0x20f58f(0x2df)](_0x5291a3,_0x4a6537),'sort'],_0x34c328['tables'][_0x5291a3][_0x20f58f(0x38b)][_0x4a6537][_0x20f58f(0x3db)],_0x322d67);}[_0x354fcb(0x178)](_0x4cb7e8,_0x1f6eed,_0x47997b,_0x4d9bbb){const _0x383d5b=_0x354fcb;return this['_replaceOptional']([...U[_0x383d5b(0x2df)](_0x1f6eed,_0x47997b),'group'],_0x4cb7e8[_0x383d5b(0x2ba)][_0x1f6eed][_0x383d5b(0x38b)][_0x47997b][_0x383d5b(0x1b9)],_0x4d9bbb);}['setViewFieldVisible'](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,_0x34cb69){const _0x4b8341=_0x354fcb;return this[_0x4b8341(0x43e)](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,{'hidden':!_0x34cb69});}[_0x354fcb(0x175)](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,_0x50b61c){return this['_setViewFieldSetting'](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,{'width':_0x50b61c});}[_0x354fcb(0x457)](_0x43f4d4,_0x431093,_0x503ed9,_0x1cd65d,_0x85d626){const _0x435dd0=_0x354fcb;let _0xb010b8=_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x38b)][_0x503ed9],_0x4af35d=sr(_0xb010b8[_0x435dd0(0x1e1)]??_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x1e1)],_0x1cd65d,_0x85d626);return this[_0x435dd0(0x24b)]([...U[_0x435dd0(0x2df)](_0x431093,_0x503ed9),_0x435dd0(0x1e1)],_0xb010b8[_0x435dd0(0x1e1)],_0x4af35d);}['_setViewFieldSetting'](_0x39a88a,_0x2ab5f0,_0x139107,_0x44b745,_0x3bcafe){const _0x41fa9c=_0x354fcb;let _0x506a9e=_0x39a88a[_0x41fa9c(0x2ba)][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)]??{},_0xc87a73={..._0x506a9e,[_0x44b745]:{..._0x506a9e[_0x44b745],..._0x3bcafe}};return this[_0x41fa9c(0x24b)]([...U[_0x41fa9c(0x2df)](_0x2ab5f0,_0x139107),_0x41fa9c(0x484)],_0x39a88a['tables'][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)],_0xc87a73);}['_createRecordOrderOp'](_0x29fe1b,_0x38fd19,_0x5b17fa){const _0x278d36=_0x354fcb;let _0x4366b5=_0x29fe1b[_0x278d36(0x2ba)][_0x38fd19],_0x27289e=new Set(_0x5b17fa['map'](_0xf25330=>_0xf25330['id'])),_0x331ac2=[...Object['values'](_0x4366b5[_0x278d36(0x45a)])['filter'](_0x10d105=>!_0x27289e[_0x278d36(0x23f)](_0x10d105['id'])),..._0x5b17fa][_0x278d36(0x3db)]((_0x1b28b1,_0x4b446a)=>String(_0x1b28b1[_0x278d36(0x3ef)]??_0x1b28b1['id'])[_0x278d36(0x4bc)](String(_0x4b446a[_0x278d36(0x3ef)]??_0x4b446a['id'])))[_0x278d36(0x29b)](_0x58c1c3=>_0x58c1c3['id']),_0x4c1c7c=[...U[_0x278d36(0x513)](_0x38fd19),'recordOrder'];return _0x4366b5[_0x278d36(0x22d)]?_0x370803[_0x278d36(0x333)](_0x4c1c7c,_0x4366b5[_0x278d36(0x22d)],_0x331ac2):_0x370803[_0x278d36(0x207)](_0x4c1c7c,_0x331ac2);}[_0x354fcb(0x317)](_0x2ac4eb,_0x4d7da9=new Set()){const _0x2f29c7=_0x354fcb;let _0x3a0254=_0x49362b(_0x2ac4eb);return Object[_0x2f29c7(0x1da)](_0x2ac4eb[_0x2f29c7(0x2ba)])[_0x2f29c7(0x397)](_0x160c11=>!_0x4d7da9[_0x2f29c7(0x23f)](_0x160c11['id']))[_0x2f29c7(0x3db)]((_0xcbf928,_0x481b6d)=>_0xcbf928['id']['localeCompare'](_0x481b6d['id']))[_0x2f29c7(0x2a2)](_0x1548d5=>{const _0xb6a915=_0x2f29c7;let _0x32a8d2=_0x3a0254['get'](_0x1548d5['id']);return!_0x32a8d2||_0x1548d5[_0xb6a915(0x357)]===_0x32a8d2?[]:[this[_0xb6a915(0x24b)]([...U[_0xb6a915(0x513)](_0x1548d5['id']),'formulaName'],_0x1548d5[_0xb6a915(0x357)],_0x32a8d2)];});}[_0x354fcb(0x221)](_0x60476a,_0x5cdaf5,_0x5376be,_0x5e4af0){const _0x489f30=_0x354fcb;var _0x37906f,_0x33caf8;let _0x372dc4=L(_0x60476a[_0x489f30(0x2ba)][_0x5cdaf5]),_0x263fb6=String(((_0x37906f=_0x5e4af0[_0x489f30(0x342)])==null?void 0x0:_0x37906f['formula'])??'')[_0x489f30(0x3bc)](),_0x56db75=(_0x33caf8=_0x372dc4['colIndex'])==null?void 0x0:_0x33caf8[_0x5376be];if(_0x56db75==null)return[];let _0xcd098d=_0x372dc4['recordOrder']??Object['keys'](_0x372dc4[_0x489f30(0x45a)]),_0x2286b4=_0xcd098d[_0x489f30(0x29b)](_0x2ba7e0=>{const _0x3a1b68=_0x489f30;var _0x26bb6b;return(_0x26bb6b=_0x372dc4[_0x3a1b68(0x290)])==null?void 0x0:_0x26bb6b[_0x2ba7e0];})['find'](_0xd6e2fe=>_0xd6e2fe!=null);return _0xcd098d[_0x489f30(0x2a2)](_0x46b177=>{var _0x10ac9b,_0x450308;let _0x4bbf69=(_0x10ac9b=_0x372dc4['rowIndex'])==null?void 0x0:_0x10ac9b[_0x46b177];if(_0x4bbf69==null)return[];let _0x558af1=(_0x450308=_0x372dc4['cellData'])==null||(_0x450308=_0x450308[_0x4bbf69])==null?void 0x0:_0x450308[_0x56db75],_0x4ad5b2=_0x263fb6?_0x4bbf69===_0x2286b4?{'f':_0x263fb6,'si':_0x5376be}:{'si':_0x5376be}:{'v':null,'t':null};return[this['_replaceOptional'](U['cellData'](_0x5cdaf5,_0x4bbf69,_0x56db75),_0x558af1,_0x4ad5b2)];});}['_setAttachmentResources'](_0x2005ce,_0xe31bf7,_0x4c2a45){const _0x1c9e0b=_0x354fcb;var _0x53de44;let _0x4d0ec2=new Map(Object[_0x1c9e0b(0x1e2)](((_0x53de44=_0x2005ce[_0x1c9e0b(0x358)])==null?void 0x0:_0x53de44[_0x1c9e0b(0x47e)])??{})),_0x3b32e3=new Map(),_0x29d3d2=new Set(),_0xda3729=_0x4c2a45[_0x1c9e0b(0x29b)](({recordId:_0x5e3b0d,fieldId:_0x1606e2,attachments:_0x3880f6})=>{const _0x73b0d3=_0x1c9e0b;var _0x24d11e;let _0x1cbece=Et(_0x1606e2,_0x5e3b0d),_0x25504b=_0x3880f6[_0x73b0d3(0x29b)]((_0x2464d0,_0x2268ef)=>String(_0x2464d0['id']??_0x1cbece+'\x1f'+_0x2268ef));return _0x29d3d2[_0x73b0d3(0x35e)](_0x1cbece),_0x4d0ec2[_0x73b0d3(0x1a1)](_0x1cbece,_0x25504b),_0x3880f6[_0x73b0d3(0x461)]((_0x494324,_0x1bce80)=>{let _0x2e35a1=_0x25504b[_0x1bce80];_0x3b32e3['set'](_0x2e35a1,{..._0x494324,'id':_0x2e35a1});}),this[_0x73b0d3(0x24b)](U[_0x73b0d3(0x4e0)](_0xe31bf7,_0x1cbece),(_0x24d11e=_0x2005ce[_0x73b0d3(0x358)])==null||(_0x24d11e=_0x24d11e[_0x73b0d3(0x47e)])==null?void 0x0:_0x24d11e[_0x1cbece],_0x25504b);}),_0x5a2787=Array[_0x1c9e0b(0x4dd)](_0x3b32e3)[_0x1c9e0b(0x29b)](([_0x172805,_0x1cbcbe])=>{const _0x465bde=_0x1c9e0b;var _0x385059;return this[_0x465bde(0x24b)](U[_0x465bde(0x25c)](_0xe31bf7,_0x172805),(_0x385059=_0x2005ce[_0x465bde(0x358)])==null||(_0x385059=_0x385059['attachments'])==null?void 0x0:_0x385059[_0x172805],_0x1cbcbe);}),_0xa6ebff=new Set(Array[_0x1c9e0b(0x4dd)](_0x4d0ec2['values']())[_0x1c9e0b(0x2ec)]()),_0x30ee1d=new Set(Array[_0x1c9e0b(0x4dd)](_0x29d3d2)['flatMap'](_0x58be78=>{const _0x515d81=_0x1c9e0b;var _0x288209;return((_0x288209=_0x2005ce[_0x515d81(0x358)])==null||(_0x288209=_0x288209['attachmentSets'])==null?void 0x0:_0x288209[_0x58be78])??[];})),_0x1413e6=Array[_0x1c9e0b(0x4dd)](_0x30ee1d)['flatMap'](_0x481f33=>{const _0x4bda0a=_0x1c9e0b;var _0x5c0bf9;let _0x2ac245=(_0x5c0bf9=_0x2005ce[_0x4bda0a(0x358)])==null||(_0x5c0bf9=_0x5c0bf9['attachments'])==null?void 0x0:_0x5c0bf9[_0x481f33];return _0x2ac245!==void 0x0&&!_0xa6ebff['has'](_0x481f33)?[_0x370803[_0x4bda0a(0x246)](U[_0x4bda0a(0x25c)](_0xe31bf7,_0x481f33),_0x2ac245)]:[];});return[..._0xda3729,..._0x5a2787,..._0x1413e6];}[_0x354fcb(0x4a3)](_0x2bdf39,_0x8e81,_0x4e65db){const _0x434755=_0x354fcb;var _0x136d82;let _0x4a4930=((_0x136d82=_0x2bdf39[_0x434755(0x358)])==null?void 0x0:_0x136d82[_0x434755(0x47e)])??{},_0x2576e0=Object['entries'](_0x4a4930)[_0x434755(0x397)](([_0x5c44cd])=>_0x4e65db(_0x5c44cd));if(!_0x2576e0[_0x434755(0x458)])return[];let _0xa8b1a8=new Set(Object[_0x434755(0x1e2)](_0x4a4930)[_0x434755(0x397)](([_0x5b9845])=>!_0x4e65db(_0x5b9845))[_0x434755(0x2a2)](([,_0x1c4f51])=>_0x1c4f51)),_0x277db8=new Set(_0x2576e0[_0x434755(0x2a2)](([,_0x21aed9])=>_0x21aed9));return[..._0x2576e0['map'](([_0xece8cf,_0xb34c44])=>_0x370803['removeOp'](U[_0x434755(0x4e0)](_0x8e81,_0xece8cf),_0xb34c44)),...Array[_0x434755(0x4dd)](_0x277db8)[_0x434755(0x2a2)](_0x4fd623=>{const _0x1eb994=_0x434755;var _0x2f6a76;let _0x217090=(_0x2f6a76=_0x2bdf39[_0x1eb994(0x358)])==null||(_0x2f6a76=_0x2f6a76[_0x1eb994(0x499)])==null?void 0x0:_0x2f6a76[_0x4fd623];return _0x217090!==void 0x0&&!_0xa8b1a8['has'](_0x4fd623)?[_0x370803['removeOp'](U['attachment'](_0x8e81,_0x4fd623),_0x217090)]:[];})];}['_replaceOptional'](_0x578527,_0x6a9fcc,_0x1b2b7a){const _0x1b745b=_0x354fcb;return _0x6a9fcc===void 0x0?_0x370803[_0x1b745b(0x207)](_0x578527,_0x1b2b7a):_0x370803['replaceOp'](_0x578527,_0x6a9fcc,_0x1b2b7a);}};function er(_0x1df614,_0x349f62,_0xa05447,_0x5485b7){const _0x400b6e=_0x354fcb;var _0x3c02c6;let _0x4a1ee5=_0x5485b7['type'];if(_0xa05447['type']!==_0x4a1ee5||_0x4a1ee5!==_0x19bf94[_0x400b6e(0x407)]&&_0x4a1ee5!==_0x19bf94[_0x400b6e(0x283)]||tr(_0x5485b7[_0x400b6e(0x342)][_0x400b6e(0x4cc)]))return{'field':_0x5485b7,'patches':[]};let _0x5acc62=nr(_0xa05447),_0x38a359=nr(_0x5485b7);if(![..._0x5acc62][_0x400b6e(0x257)](_0x4a8897=>!_0x38a359[_0x400b6e(0x23f)](_0x4a8897)))return{'field':_0x5485b7,'patches':[]};let _0x21a537=rr(_0x5485b7[_0x400b6e(0x241)],_0x38a359,_0x4a1ee5),_0x5ae6f9=ir(_0x21a537,_0x5485b7['defaultValue'])?_0x5485b7:{..._0x5485b7,'defaultValue':_0x21a537},_0x221abb=L(_0x1df614),_0x4ea783=(_0x3c02c6=_0x221abb[_0x400b6e(0x288)])==null?void 0x0:_0x3c02c6[_0x349f62];return _0x4ea783==null?{'field':_0x5ae6f9,'patches':[]}:{'field':_0x5ae6f9,'patches':(_0x221abb[_0x400b6e(0x22d)]??[])['flatMap'](_0x1e94a6=>{const _0x3f379b=_0x400b6e;var _0x4f2cbd,_0x1a5141;let _0x3bd8b2=(_0x4f2cbd=_0x221abb['rowIndex'])==null?void 0x0:_0x4f2cbd[_0x1e94a6],_0x1c0d3b=(_0x1a5141=_0x221abb['records'][_0x1e94a6])==null?void 0x0:_0x1a5141[_0x3f379b(0x1da)][_0x349f62],_0x3e6bd7=rr(_0x1c0d3b,_0x38a359,_0x4a1ee5);return _0x3bd8b2==null||ir(_0x3e6bd7,_0x1c0d3b)?[]:[{'row':_0x3bd8b2,'col':_0x4ea783,'value':_0x3e6bd7??null}];})};}function tr(_0x3df10c){const _0x5d7d2c=_0x354fcb;return typeof _0x3df10c==_0x5d7d2c(0x269)&&!!_0x3df10c&&_0x5d7d2c(0x33a)in _0x3df10c&&_0x3df10c[_0x5d7d2c(0x33a)]===_0x5d7d2c(0x28b);}function nr(_0x83ae51){const _0x58bf45=_0x354fcb;var _0x3412a3;let _0x5b977d=Array[_0x58bf45(0x354)]((_0x3412a3=_0x83ae51['config'])==null?void 0x0:_0x3412a3[_0x58bf45(0x392)])?_0x83ae51[_0x58bf45(0x342)]['options']:[];return new Set(_0x5b977d['flatMap'](_0xbb98ac=>{const _0x49bc89=_0x58bf45;if(!_0xbb98ac||typeof _0xbb98ac!=_0x49bc89(0x269)||!('id'in _0xbb98ac))return[];let _0x43006c=String(_0xbb98ac['id']);return _0x43006c?[_0x43006c]:[];}));}function rr(_0x2cc61d,_0x56260e,_0x4f53dc){const _0x37cd83=_0x354fcb;if(_0x2cc61d==null||_0x2cc61d==='')return _0x2cc61d;if(_0x4f53dc===_0x19bf94['SingleSelect'])return _0x56260e[_0x37cd83(0x23f)](String(_0x2cc61d))?_0x2cc61d:null;let _0x1b7112=Array[_0x37cd83(0x354)](_0x2cc61d)?_0x2cc61d['map'](String):String(_0x2cc61d)['split'](',')[_0x37cd83(0x29b)](_0x3127fd=>_0x3127fd[_0x37cd83(0x3bc)]())[_0x37cd83(0x397)](Boolean),_0x3452d7=_0x1b7112[_0x37cd83(0x397)](_0x5982a0=>_0x56260e[_0x37cd83(0x23f)](_0x5982a0));return _0x3452d7[_0x37cd83(0x458)]===_0x1b7112['length']?_0x2cc61d:Array['isArray'](_0x2cc61d)?_0x3452d7:String(_0x2cc61d)[_0x37cd83(0x231)](',')?_0x3452d7[_0x37cd83(0x4b5)](','):_0x3452d7[0x0]??[];}function ir(_0x35b304,_0x42dea8){const _0x2648d6=_0x354fcb;return JSON[_0x2648d6(0x449)](_0x35b304)===JSON['stringify'](_0x42dea8);}function ar(_0x282280,_0x2d8157,_0x29be59){const _0xa89b1c=_0x354fcb;var _0x22f403,_0x2a8be2,_0x476cd2,_0x41f1d7;let _0x52cbe2=(_0x22f403=_0x282280[_0xa89b1c(0x290)])==null?void 0x0:_0x22f403[_0x2d8157],_0x14287a=(_0x2a8be2=_0x282280[_0xa89b1c(0x288)])==null?void 0x0:_0x2a8be2[_0x29be59];return _0x52cbe2!=null&&_0x14287a!=null&&((_0x476cd2=_0x282280[_0xa89b1c(0x474)])==null?void 0x0:_0x476cd2[_0x52cbe2])===_0x2d8157&&((_0x41f1d7=_0x282280[_0xa89b1c(0x242)])==null?void 0x0:_0x41f1d7[_0x14287a])===_0x29be59&&_0x282280[_0xa89b1c(0x1cf)]!=null;}function or(_0x322a7b,_0x248f31,_0x30bc9f){const _0x2fa164=_0x354fcb;var _0x370674,_0x55fc65;return((_0x370674=_0x322a7b[_0x2fa164(0x474)])==null?void 0x0:_0x370674[_0x248f31])!=null&&((_0x55fc65=_0x322a7b['colId'])==null?void 0x0:_0x55fc65[_0x30bc9f])!=null&&_0x322a7b[_0x2fa164(0x1cf)]!=null;}function sr(_0x5a038e,_0x8cd1f1,_0x5722f6){const _0x315efc=_0x354fcb;let _0x2721da=_0x5a038e['filter'](_0x2c2216=>_0x2c2216!==_0x8cd1f1),_0x239dc7=_0x5722f6['beforeFieldId']?_0x2721da['indexOf'](_0x5722f6[_0x315efc(0x381)]):_0x5722f6[_0x315efc(0x27b)]?_0x2721da[_0x315efc(0x4c8)](_0x5722f6[_0x315efc(0x27b)])+0x1:_0x2721da[_0x315efc(0x458)];return _0x2721da[_0x315efc(0x47d)](_0x239dc7<0x0?_0x2721da[_0x315efc(0x458)]:_0x239dc7,0x0,_0x8cd1f1),_0x2721da;}function cr(_0x4c6eae,_0x31b7fd,_0x2b42e7){const _0x1b4876=_0x354fcb;let _0x16acf0=_0x4c6eae['filter'](_0x5a0255=>_0x5a0255!==_0x31b7fd);return _0x16acf0[_0x1b4876(0x47d)](ur(_0x2b42e7,_0x16acf0['length']),0x0,_0x31b7fd),_0x16acf0;}function lr(_0x47cb45,_0x34c493,_0x5e9db4){const _0x519d4b=_0x354fcb;if(Array[_0x519d4b(0x354)](_0x47cb45))return _0x5e9db4===_0x519d4b(0x227)?_0x47cb45[_0x519d4b(0x397)](_0x123be4=>_0x123be4!==_0x34c493):_0x47cb45[_0x519d4b(0x2a2)](_0x1c5e0f=>{const _0x46ab4d=_0x519d4b;if(_0x1c5e0f&&typeof _0x1c5e0f=='object'&&!Array[_0x46ab4d(0x354)](_0x1c5e0f)&&_0x1c5e0f[_0x46ab4d(0x46e)]===_0x34c493)return[];let _0x4800f7=lr(_0x1c5e0f,_0x34c493);return _0x4800f7===void 0x0?[]:[_0x4800f7];});if(!_0x47cb45||typeof _0x47cb45!='object')return _0x5e9db4!=null&&_0x5e9db4[_0x519d4b(0x424)](_0x519d4b(0x334))&&_0x47cb45===_0x34c493?void 0x0:_0x47cb45;let _0x52813b=_0x47cb45;if(_0x52813b[_0x519d4b(0x46e)]!==_0x34c493)return Object[_0x519d4b(0x2e8)](Object['entries'](_0x52813b)[_0x519d4b(0x2a2)](([_0x405a84,_0x4a8ea2])=>{const _0x4cb536=_0x519d4b;if(_0x405a84===_0x34c493&&_0x5e9db4===_0x4cb536(0x484))return[];let _0x5ad692=lr(_0x4a8ea2,_0x34c493,_0x405a84);return _0x5ad692===void 0x0?[]:[[_0x405a84,_0x5ad692]];}));}function ur(_0x2c8671,_0x414a05){const _0x4eccc4=_0x354fcb;return Math[_0x4eccc4(0x1b3)](0x0,Math[_0x4eccc4(0x35d)](_0x2c8671,_0x414a05));}function dr(_0x119f09){'@babel/helpers - typeof';const _0x4768ed=_0x354fcb;return dr=typeof Symbol=='function'&&typeof Symbol[_0x4768ed(0x25e)]==_0x4768ed(0x451)?function(_0x3a7d16){return typeof _0x3a7d16;}:function(_0x466350){const _0x36d362=_0x4768ed;return _0x466350&&typeof Symbol==_0x36d362(0x389)&&_0x466350['constructor']===Symbol&&_0x466350!==Symbol[_0x36d362(0x32b)]?_0x36d362(0x451):typeof _0x466350;},dr(_0x119f09);}function fr(_0x62cb11,_0x362e71){const _0x5b3a55=_0x354fcb;if(dr(_0x62cb11)!='object'||!_0x62cb11)return _0x62cb11;var _0x20c4c3=_0x62cb11[Symbol[_0x5b3a55(0x41c)]];if(_0x20c4c3!==void 0x0){var _0x1a3183=_0x20c4c3[_0x5b3a55(0x331)](_0x62cb11,_0x362e71||_0x5b3a55(0x3ac));if(dr(_0x1a3183)!=_0x5b3a55(0x269))return _0x1a3183;throw TypeError(_0x5b3a55(0x512));}return(_0x362e71===_0x5b3a55(0x471)?String:Number)(_0x62cb11);}function pr(_0x159e2c){const _0x5ceb1d=_0x354fcb;var _0x1f3263=fr(_0x159e2c,_0x5ceb1d(0x471));return dr(_0x1f3263)=='symbol'?_0x1f3263:_0x1f3263+'';}function G(_0x319a67,_0x5f30bf,_0x1f76e6){const _0x30867e=_0x354fcb;return(_0x5f30bf=pr(_0x5f30bf))in _0x319a67?Object[_0x30867e(0x2b6)](_0x319a67,_0x5f30bf,{'value':_0x1f76e6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x319a67[_0x5f30bf]=_0x1f76e6,_0x319a67;}const mr=_0x5d0ae0(_0x354fcb(0x273));var hr=class extends _0x1589db{constructor(..._0x4c3777){const _0x5abb94=_0x354fcb;super(..._0x4c3777),G(this,_0x5abb94(0x252),new Map());}[_0x354fcb(0x2f4)](_0x360f7c){const _0x25febb=_0x354fcb;return this[_0x25febb(0x252)]['set'](_0x360f7c[_0x25febb(0x33a)],_0x360f7c),_0x5b4066(()=>this[_0x25febb(0x252)]['delete'](_0x360f7c[_0x25febb(0x33a)]));}[_0x354fcb(0x4a8)](_0x777a4f){const _0x150fd9=_0x354fcb;let _0x2ef3e7=this[_0x150fd9(0x252)]['get'](_0x777a4f);if(!_0x2ef3e7)throw Error(_0x150fd9(0x196)+_0x777a4f+_0x150fd9(0x371));return _0x2ef3e7;}[_0x354fcb(0x3c6)](_0x111415){const _0x294496=_0x354fcb;return this[_0x294496(0x252)][_0x294496(0x4a8)](_0x111415);}['getAll'](){const _0x419445=_0x354fcb;return Array[_0x419445(0x4dd)](this['_plugins'][_0x419445(0x1da)]());}},gr=class{constructor(_0x3bf1f8){const _0x32f669=_0x354fcb;this[_0x32f669(0x278)]=_0x3bf1f8,G(this,_0x32f669(0x33a),_0x56e21f['Base']),G(this,_0x32f669(0x200),_0x391870[_0x32f669(0x36a)]),G(this,_0x32f669(0x372),_0x15f2b3[_0x32f669(0x3e4)]),G(this,'id',void 0x0),G(this,_0x32f669(0x416),!0x0),this['id']=this[_0x32f669(0x33a)]+'.'+this[_0x32f669(0x200)]+'_'+_0x3bf1f8;}},_r=class{constructor(_0x2672a6){const _0x5f0de4=_0x354fcb;this['unitId']=_0x2672a6,G(this,_0x5f0de4(0x33a),_0x56e21f['Base']),G(this,'subType',_0x391870['Copy']),G(this,'status',_0x15f2b3[_0x5f0de4(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x5f0de4(0x33a)]+'.'+this[_0x5f0de4(0x200)]+'_'+_0x2672a6;}},vr=class{constructor(_0x296b01){const _0xce174d=_0x354fcb;this[_0xce174d(0x278)]=_0x296b01,G(this,_0xce174d(0x33a),_0x56e21f[_0xce174d(0x318)]),G(this,'subType',_0x391870['Edit']),G(this,_0xce174d(0x372),_0x15f2b3[_0xce174d(0x3e4)]),G(this,'id',void 0x0),G(this,_0xce174d(0x416),!0x0),this['id']=this[_0xce174d(0x33a)]+'.'+this[_0xce174d(0x200)]+'_'+_0x296b01;}},yr=class{constructor(_0x47dda2){const _0x4411f6=_0x354fcb;this['unitId']=_0x47dda2,G(this,_0x4411f6(0x33a),_0x56e21f[_0x4411f6(0x318)]),G(this,'subType',_0x391870[_0x4411f6(0x479)]),G(this,_0x4411f6(0x372),_0x15f2b3[_0x4411f6(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x4411f6(0x200)]+'_'+_0x47dda2;}},br=class{constructor(_0x2fe77e,_0xcdf329){const _0x35a572=_0x354fcb;this[_0x35a572(0x278)]=_0x2fe77e,this[_0x35a572(0x225)]=_0xcdf329,G(this,'type',_0x56e21f[_0x35a572(0x3f9)]),G(this,'subType',_0x391870[_0x35a572(0x463)]),G(this,_0x35a572(0x372),_0x15f2b3[_0x35a572(0x3e4)]),G(this,'id',void 0x0),G(this,_0x35a572(0x416),!0x0),this['id']=this[_0x35a572(0x33a)]+'.'+this[_0x35a572(0x200)]+'_'+_0x2fe77e+'_'+_0xcdf329;}},xr=class{constructor(_0x478fd6,_0x3f5799){const _0x46c1dd=_0x354fcb;this[_0x46c1dd(0x278)]=_0x478fd6,this['objectId']=_0x3f5799,G(this,'type',_0x56e21f['BaseField']),G(this,_0x46c1dd(0x200),_0x391870[_0x46c1dd(0x463)]),G(this,_0x46c1dd(0x372),_0x15f2b3[_0x46c1dd(0x3e4)]),G(this,'id',void 0x0),G(this,_0x46c1dd(0x416),!0x0),this['id']=this[_0x46c1dd(0x33a)]+'.'+this[_0x46c1dd(0x200)]+'_'+_0x478fd6+'_'+_0x3f5799;}},Sr=class{constructor(_0x4dd240,_0x394d23){const _0x1a093c=_0x354fcb;this[_0x1a093c(0x278)]=_0x4dd240,this['objectId']=_0x394d23,G(this,_0x1a093c(0x33a),_0x56e21f[_0x1a093c(0x1dc)]),G(this,_0x1a093c(0x200),_0x391870['Edit']),G(this,_0x1a093c(0x372),_0x15f2b3[_0x1a093c(0x3e4)]),G(this,'id',void 0x0),G(this,_0x1a093c(0x416),!0x0),this['id']=this[_0x1a093c(0x33a)]+'.'+this[_0x1a093c(0x200)]+'_'+_0x4dd240+'_'+_0x394d23;}},Cr=class{constructor(_0x5b0327,_0x13a9ba){const _0x128c5d=_0x354fcb;this[_0x128c5d(0x278)]=_0x5b0327,this[_0x128c5d(0x225)]=_0x13a9ba,G(this,'type',_0x56e21f['BaseTable']),G(this,_0x128c5d(0x200),_0x391870['Edit']),G(this,_0x128c5d(0x372),_0x15f2b3[_0x128c5d(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x128c5d(0x200)]+'_'+_0x5b0327+'_'+_0x13a9ba;}},wr=class{constructor(_0x58754b,_0x4621b4){const _0x45651b=_0x354fcb;this['unitId']=_0x58754b,this[_0x45651b(0x225)]=_0x4621b4,G(this,_0x45651b(0x33a),_0x56e21f[_0x45651b(0x52a)]),G(this,_0x45651b(0x200),_0x391870[_0x45651b(0x463)]),G(this,'status',_0x15f2b3[_0x45651b(0x3e4)]),G(this,'id',void 0x0),G(this,_0x45651b(0x416),!0x0),this['id']=this[_0x45651b(0x33a)]+'.'+this['subType']+'_'+_0x58754b+'_'+_0x4621b4;}};const Tr=[_0x391870[_0x354fcb(0x463)],_0x391870[_0x354fcb(0x453)],_0x391870[_0x354fcb(0x479)],_0x391870[_0x354fcb(0x36a)]],Er=new Set([_0x56e21f['Base'],_0x56e21f[_0x354fcb(0x1d0)],_0x56e21f[_0x354fcb(0x4ef)],_0x56e21f[_0x354fcb(0x1dc)],_0x56e21f[_0x354fcb(0x52a)],_0x56e21f['BaseDashboard']]),Dr=_0x354fcb(0x2e3),Or=_0x354fcb(0x45f),kr=_0x354fcb(0x4fe),Ar='view/',jr=_0x354fcb(0x237);function K(_0x20420e){return''+Dr+encodeURIComponent(_0x20420e);}function q(_0x345ce0,_0x5df5a5){return''+Or+encodeURIComponent(_0x345ce0)+'/'+encodeURIComponent(_0x5df5a5);}function J(_0x260ed1,_0x44e15d){return''+kr+encodeURIComponent(_0x260ed1)+'/'+encodeURIComponent(_0x44e15d);}function Mr(_0x4f7cfb,_0x4eabe5){return''+Ar+encodeURIComponent(_0x4f7cfb)+'/'+encodeURIComponent(_0x4eabe5);}function Nr(_0xecf542){return''+jr+encodeURIComponent(_0xecf542);}function Pr(_0x47b93d,_0x309b52,_0x1b1b13){const _0x4a84dd=_0x354fcb;if(_0x309b52===_0x47b93d)switch(_0x1b1b13){case _0x391870[_0x4a84dd(0x463)]:return new vr(_0x47b93d);case _0x391870[_0x4a84dd(0x453)]:return new _r(_0x47b93d);case _0x391870['Export']:return new yr(_0x47b93d);case _0x391870[_0x4a84dd(0x36a)]:return new gr(_0x47b93d);default:throw Error('Unsupported\x20Base\x20permission\x20action:\x20'+_0x1b1b13);}if(_0x1b1b13!==_0x391870[_0x4a84dd(0x463)])throw Error(_0x4a84dd(0x35b)+_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Dr))return new Cr(_0x47b93d,_0x309b52);if(_0x309b52['startsWith'](Or))return new xr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](kr))return new Sr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Ar))return new wr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](jr))return new br(_0x47b93d,_0x309b52);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x309b52);}function Fr(_0x3d5373,_0x46f426,_0x5645d7,_0x5a49e0){const _0x1bfa1d=_0x354fcb;var _0x2623c5;return((_0x2623c5=_0x3d5373['getPermissionPoint'](Pr(_0x46f426,_0x5645d7,_0x5a49e0)['id']))==null?void 0x0:_0x2623c5[_0x1bfa1d(0x416)])??!0x0;}function Ir(_0x46e807,_0x21472,_0x4de206,_0x447016,_0x3fd401){const _0x4c40ba=_0x354fcb;let _0x27f719=Pr(_0x21472,_0x4de206,_0x447016);_0x46e807[_0x4c40ba(0x1c9)](_0x27f719['id'])||_0x46e807[_0x4c40ba(0x2da)](_0x27f719),_0x46e807[_0x4c40ba(0x447)](_0x27f719['id'],_0x3fd401);}function Lr(_0x20fbce,_0x3f38d4,_0x397b8e,_0x13c53a){const _0x471c61=_0x354fcb;_0x20fbce[_0x471c61(0x509)](Pr(_0x3f38d4,_0x397b8e,_0x13c53a)['id']);}function Rr(_0x293b92,_0x52540c){const _0x3a8192=_0x354fcb;_0x293b92[_0x3a8192(0x3b8)]()[_0x3a8192(0x461)]((_0xf884e0,_0x5c35fd)=>{const _0xed9c89=_0x3a8192;_0xf884e0[_0xed9c89(0x30f)](_0x98e0a0=>{const _0x277bf3=_0xed9c89;Er[_0x277bf3(0x23f)](_0x98e0a0[_0x277bf3(0x33a)])&&_0x277bf3(0x278)in _0x98e0a0&&_0x98e0a0[_0x277bf3(0x278)]===_0x52540c&&_0x293b92[_0x277bf3(0x509)](_0x5c35fd);})['unsubscribe']();});}function zr(_0x3cf926,_0x4336b7,_0x5ecca1){const _0x335ac1=_0x354fcb;return Fr(_0x3cf926,_0x4336b7,_0x4336b7,_0x391870[_0x335ac1(0x463)])&&Array[_0x335ac1(0x4dd)](_0x5ecca1)[_0x335ac1(0x1b6)](_0x4bd53e=>Fr(_0x3cf926,_0x4336b7,_0x4bd53e,_0x391870[_0x335ac1(0x463)]));}function Y(_0x78ec34,_0x4ca9b1){return function(_0x3a39d8,_0x5b9233){_0x4ca9b1(_0x3a39d8,_0x5b9233,_0x78ec34);};}function X(_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd){const _0xf37495=_0x354fcb;var _0xd580ef=arguments[_0xf37495(0x458)],_0x270476=_0xd580ef<0x3?_0x530b93:_0x38eccd===null?_0x38eccd=Object[_0xf37495(0x503)](_0x530b93,_0x29f355):_0x38eccd,_0x309d5a;if(typeof Reflect==_0xf37495(0x269)&&typeof Reflect[_0xf37495(0x3f3)]==_0xf37495(0x389))_0x270476=Reflect[_0xf37495(0x3f3)](_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd);else{for(var _0x2eacbf=_0x3e7abe[_0xf37495(0x458)]-0x1;_0x2eacbf>=0x0;_0x2eacbf--)(_0x309d5a=_0x3e7abe[_0x2eacbf])&&(_0x270476=(_0xd580ef<0x3?_0x309d5a(_0x270476):_0xd580ef>0x3?_0x309d5a(_0x530b93,_0x29f355,_0x270476):_0x309d5a(_0x530b93,_0x29f355))||_0x270476);}return _0xd580ef>0x3&&_0x270476&&Object[_0xf37495(0x2b6)](_0x530b93,_0x29f355,_0x270476),_0x270476;}const Br=_0x5d0ae0('base.permission.service');let Vr=class extends _0x1589db{constructor(_0x577945,_0x5c4df7){const _0x356a2f=_0x354fcb;super(),this[_0x356a2f(0x487)]=_0x577945,this[_0x356a2f(0x2cf)]=_0x5c4df7,G(this,_0x356a2f(0x35a),new Map()),G(this,'_tablePermissions',new Map()),G(this,'_fieldPermissions',new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x356a2f(0x4ac),new Map()),G(this,_0x356a2f(0x1f7),new Map()),this[_0x356a2f(0x1b4)](this[_0x356a2f(0x2cf)]['getTypeOfUnitDisposed$'](_0x28d752['UNIVER_BASE'])[_0x356a2f(0x30f)](_0x5e235f=>this[_0x356a2f(0x1d7)](_0x5e235f[_0x356a2f(0x422)]())));}[_0x354fcb(0x352)](_0x6322f6){const _0x4b6f65=_0x354fcb;var _0x33ce2e;return this[_0x4b6f65(0x1fa)](_0x6322f6,[])&&(((_0x33ce2e=this[_0x4b6f65(0x35a)][_0x4b6f65(0x4a8)](_0x6322f6))==null?void 0x0:_0x33ce2e[_0x4b6f65(0x500)])??!0x0);}[_0x354fcb(0x481)](_0x5239bf){const _0x2b0046=_0x354fcb;return this[_0x2b0046(0x385)](_0x5239bf);}[_0x354fcb(0x3c1)](_0x54ae4d){const _0x3873ca=_0x354fcb;var _0x303a3d;return this['_canEditTable'](_0x54ae4d)&&(((_0x303a3d=this[_0x3873ca(0x415)][_0x3873ca(0x4a8)](_0x54ae4d))==null?void 0x0:_0x303a3d[_0x3873ca(0x4f4)])??!0x0);}[_0x354fcb(0x293)](_0x1643c6){const _0x5938ae=_0x354fcb;var _0x5b6476;return this[_0x5938ae(0x385)](_0x1643c6)&&(((_0x5b6476=this[_0x5938ae(0x415)][_0x5938ae(0x4a8)](_0x1643c6))==null?void 0x0:_0x5b6476[_0x5938ae(0x2c0)])??!0x0);}[_0x354fcb(0x341)](_0x46c98f,_0x1e81f4){const _0x16ffe1=_0x354fcb;var _0x2d9c53;return this[_0x16ffe1(0x385)](_0x46c98f)&&this[_0x16ffe1(0x1fa)](_0x46c98f,[q(_0x46c98f,_0x1e81f4)])&&(((_0x2d9c53=this[_0x16ffe1(0x44a)]['get'](Ur(_0x46c98f,_0x1e81f4)))==null?void 0x0:_0x2d9c53[_0x16ffe1(0x1db)])??!0x0);}['canDeleteField'](_0x24b017,_0x3db578){const _0xc9f061=_0x354fcb;var _0x524990;return this['canEditField'](_0x24b017,_0x3db578)&&(((_0x524990=this['_fieldPermissions'][_0xc9f061(0x4a8)](Ur(_0x24b017,_0x3db578)))==null?void 0x0:_0x524990[_0xc9f061(0x4f4)])??!0x0);}['canCreateRecord'](_0x249808){const _0x1a99ce=_0x354fcb;var _0x114502;return this[_0x1a99ce(0x385)](_0x249808)&&(((_0x114502=this[_0x1a99ce(0x415)][_0x1a99ce(0x4a8)](_0x249808))==null?void 0x0:_0x114502[_0x1a99ce(0x4a0)])??!0x0);}[_0x354fcb(0x210)](_0x1f8e43,_0xd65409){const _0x4c3154=_0x354fcb;var _0x229e30;let _0x2eab8f=this[_0x4c3154(0x203)][_0x4c3154(0x4a8)](Wr(_0x1f8e43,_0xd65409));return this[_0x4c3154(0x1fa)](_0x1f8e43,[K(_0x1f8e43),J(_0x1f8e43,_0xd65409)])&&(((_0x229e30=this[_0x4c3154(0x415)][_0x4c3154(0x4a8)](_0x1f8e43))==null?void 0x0:_0x229e30['edit'])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f[_0x4c3154(0x1db)])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f['editCell'])??!0x0);}['canDeleteRecord'](_0x49d50e,_0x4dab7c){const _0x465eec=_0x354fcb;var _0x29d943,_0x45794d,_0x5eb41;return this['_canEdit'](_0x49d50e,[K(_0x49d50e),J(_0x49d50e,_0x4dab7c)])&&(((_0x29d943=this[_0x465eec(0x415)]['get'](_0x49d50e))==null?void 0x0:_0x29d943[_0x465eec(0x1db)])??!0x0)&&(((_0x45794d=this[_0x465eec(0x203)]['get'](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x45794d[_0x465eec(0x1db)])??!0x0)&&(((_0x5eb41=this[_0x465eec(0x203)][_0x465eec(0x4a8)](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x5eb41[_0x465eec(0x4f4)])??!0x0);}['canEditCell'](_0x20d995,_0x3c3d05,_0x2f3075){const _0x110ae9=_0x354fcb;var _0x392d0f,_0x1bdd1c,_0x2d0caa;let _0x442eb2=this['_fieldPermissions'][_0x110ae9(0x4a8)](Ur(_0x20d995,_0x2f3075));return this[_0x110ae9(0x1fa)](_0x20d995,[K(_0x20d995),q(_0x20d995,_0x2f3075),J(_0x20d995,_0x3c3d05)])&&(((_0x392d0f=this[_0x110ae9(0x415)][_0x110ae9(0x4a8)](_0x20d995))==null?void 0x0:_0x392d0f[_0x110ae9(0x1db)])??!0x0)&&(((_0x1bdd1c=this[_0x110ae9(0x203)][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x1bdd1c[_0x110ae9(0x1db)])??!0x0)&&(((_0x2d0caa=this['_recordPermissions'][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x2d0caa[_0x110ae9(0x38c)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x1db)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x38c)])??!0x0);}['canManageView'](_0xc4e424,_0xcec1f4){const _0x180261=_0x354fcb;var _0x120ba2,_0x494753,_0x157359;return this['_canEdit'](_0xc4e424,[K(_0xc4e424),Mr(_0xc4e424,_0xcec1f4)])&&(((_0x120ba2=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x120ba2[_0x180261(0x1db)])??!0x0)&&(((_0x494753=this[_0x180261(0x4ac)][_0x180261(0x4a8)](Gr(_0xc4e424,_0xcec1f4)))==null?void 0x0:_0x494753[_0x180261(0x1db)])??!0x0)&&(((_0x157359=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x157359[_0x180261(0x238)])??!0x0);}['setBasePermission'](_0x4538cb,_0x5a1c95){const _0x449fa8=_0x354fcb;this['_basePermissions'][_0x449fa8(0x1a1)](_0x4538cb,{...this['_basePermissions'][_0x449fa8(0x4a8)](_0x4538cb),..._0x5a1c95}),_0x5a1c95[_0x449fa8(0x1db)]!==void 0x0&&Ir(this['_permissionService'],_0x4538cb,_0x4538cb,_0x391870['Edit'],_0x5a1c95[_0x449fa8(0x1db)]);}[_0x354fcb(0x298)](_0x2af400,_0x19c399){const _0x5d2b3e=_0x354fcb;this['_rememberTable'](_0x2af400),this[_0x5d2b3e(0x415)][_0x5d2b3e(0x1a1)](_0x2af400,{...this[_0x5d2b3e(0x415)]['get'](_0x2af400),..._0x19c399}),this[_0x5d2b3e(0x258)](_0x2af400,K(_0x2af400),_0x19c399['edit']);}[_0x354fcb(0x49e)](_0x31a8e1,_0xe7c615,_0x328d33){const _0xdc1ab1=_0x354fcb;this[_0xdc1ab1(0x17f)](_0x31a8e1);let _0x43d2ea=Ur(_0x31a8e1,_0xe7c615);this[_0xdc1ab1(0x44a)][_0xdc1ab1(0x1a1)](_0x43d2ea,{...this['_fieldPermissions'][_0xdc1ab1(0x4a8)](_0x43d2ea),..._0x328d33}),this[_0xdc1ab1(0x258)](_0x31a8e1,q(_0x31a8e1,_0xe7c615),_0x328d33[_0xdc1ab1(0x1db)]);}[_0x354fcb(0x528)](_0xdb3ce6,_0x60690f,_0x5a27ab){const _0x257241=_0x354fcb;this['_rememberTable'](_0xdb3ce6);let _0xa6d074=Wr(_0xdb3ce6,_0x60690f);this[_0x257241(0x203)][_0x257241(0x1a1)](_0xa6d074,{...this['_recordPermissions']['get'](_0xa6d074),..._0x5a27ab}),this[_0x257241(0x258)](_0xdb3ce6,J(_0xdb3ce6,_0x60690f),_0x5a27ab[_0x257241(0x1db)]);}['setViewPermission'](_0x2c1540,_0x17d4de,_0xe66408){const _0x23a80a=_0x354fcb;this[_0x23a80a(0x17f)](_0x2c1540);let _0x16b60d=Gr(_0x2c1540,_0x17d4de);this[_0x23a80a(0x4ac)][_0x23a80a(0x1a1)](_0x16b60d,{...this['_viewPermissions'][_0x23a80a(0x4a8)](_0x16b60d),..._0xe66408}),this[_0x23a80a(0x258)](_0x2c1540,Mr(_0x2c1540,_0x17d4de),_0xe66408[_0x23a80a(0x1db)]);}[_0x354fcb(0x4af)](_0xdea016){const _0x2507ae=_0x354fcb;this[_0x2507ae(0x35a)]['delete'](_0xdea016),Lr(this[_0x2507ae(0x487)],_0xdea016,_0xdea016,_0x391870['Edit']);}[_0x354fcb(0x396)](_0xc5ea9e){const _0x160e6e=_0x354fcb;this[_0x160e6e(0x415)]['delete'](_0xc5ea9e),this[_0x160e6e(0x1af)](_0xc5ea9e,K(_0xc5ea9e));}['clearFieldPermission'](_0x3848bf,_0x1d06e8){const _0x44fb61=_0x354fcb;this['_fieldPermissions'][_0x44fb61(0x4f4)](Ur(_0x3848bf,_0x1d06e8)),this['_clearObjectEdit'](_0x3848bf,q(_0x3848bf,_0x1d06e8));}['clearRecordPermission'](_0x444a45,_0x3c4487){const _0x59073f=_0x354fcb;this[_0x59073f(0x203)][_0x59073f(0x4f4)](Wr(_0x444a45,_0x3c4487)),this[_0x59073f(0x1af)](_0x444a45,J(_0x444a45,_0x3c4487));}[_0x354fcb(0x3d4)](_0x131e5a,_0x2db216){const _0x33adf0=_0x354fcb;this[_0x33adf0(0x4ac)][_0x33adf0(0x4f4)](Gr(_0x131e5a,_0x2db216)),this[_0x33adf0(0x1af)](_0x131e5a,Mr(_0x131e5a,_0x2db216));}[_0x354fcb(0x1f9)](){const _0xf507f8=_0x354fcb;return{'bases':Object['fromEntries'](this[_0xf507f8(0x35a)]),'tables':Object['fromEntries'](this[_0xf507f8(0x415)]),'fields':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x44a)]),'records':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x203)]),'views':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x4ac)])};}[_0x354fcb(0x385)](_0x5bb8c8){const _0x4cc536=_0x354fcb;var _0x367e54;return this[_0x4cc536(0x1fa)](_0x5bb8c8,[K(_0x5bb8c8)])&&(((_0x367e54=this['_tablePermissions'][_0x4cc536(0x4a8)](_0x5bb8c8))==null?void 0x0:_0x367e54[_0x4cc536(0x1db)])??!0x0);}['_canEdit'](_0x2691f1,_0x245589){const _0x230a9c=_0x354fcb;var _0x4d06a5;let _0x596618=this[_0x230a9c(0x29e)](_0x2691f1);return!_0x596618||zr(this[_0x230a9c(0x487)],_0x596618,_0x245589)&&(((_0x4d06a5=this[_0x230a9c(0x35a)][_0x230a9c(0x4a8)](_0x596618))==null?void 0x0:_0x4d06a5[_0x230a9c(0x1db)])??!0x0);}[_0x354fcb(0x258)](_0x22066a,_0x25c1d8,_0x29b876){const _0x3004ce=_0x354fcb;if(_0x29b876===void 0x0)return;let _0x1e19b7=this[_0x3004ce(0x29e)](_0x22066a);_0x1e19b7&&Ir(this[_0x3004ce(0x487)],_0x1e19b7,_0x25c1d8,_0x391870[_0x3004ce(0x463)],_0x29b876);}[_0x354fcb(0x1af)](_0x3166e4,_0x13e85a){const _0x2315fe=_0x354fcb;let _0x295718=this[_0x2315fe(0x29e)](_0x3166e4);_0x295718&&Lr(this[_0x2315fe(0x487)],_0x295718,_0x13e85a,_0x391870['Edit']);}['_resolveBaseId'](_0x2182a5){const _0x41ecb1=_0x354fcb;var _0x5b806a;let _0x6a1f7a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x2e5)](_0x2182a5,_0x28d752[_0x41ecb1(0x201)]);return _0x6a1f7a?_0x6a1f7a[_0x41ecb1(0x422)]():(_0x5b806a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x3c4)](_0x28d752[_0x41ecb1(0x201)])[_0x41ecb1(0x22f)](_0x585e21=>!!_0x585e21[_0x41ecb1(0x1f9)]()[_0x41ecb1(0x2ba)][_0x2182a5]))==null?void 0x0:_0x5b806a[_0x41ecb1(0x422)]();}[_0x354fcb(0x17f)](_0x7cbdee){const _0x1753db=_0x354fcb;let _0x4ea156=this['_resolveBaseId'](_0x7cbdee);_0x4ea156&&this['_tableBaseIds'][_0x1753db(0x1a1)](_0x7cbdee,_0x4ea156);}[_0x354fcb(0x1d7)](_0x34fae6){const _0x16d10f=_0x354fcb;this[_0x16d10f(0x35a)]['delete'](_0x34fae6),this[_0x16d10f(0x1f7)]['forEach']((_0x3138e1,_0x4dbd61)=>{const _0x551cd6=_0x16d10f;_0x3138e1===_0x34fae6&&(this[_0x551cd6(0x415)]['delete'](_0x4dbd61),Hr(this[_0x551cd6(0x44a)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x203)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x4ac)],_0x4dbd61+'\x1f'),this[_0x551cd6(0x1f7)][_0x551cd6(0x4f4)](_0x4dbd61));});}};Vr=X([Y(0x0,_0x211d15),Y(0x1,_0x3414e2)],Vr);function Hr(_0x132a94,_0x116bae){_0x132a94['forEach']((_0x56d054,_0x1ecc89)=>{const _0x22066b=_0x48d8;_0x1ecc89[_0x22066b(0x254)](_0x116bae)&&_0x132a94[_0x22066b(0x4f4)](_0x1ecc89);});}function Ur(_0x217b18,_0xc3e301){return _0x217b18+'\x1f'+_0xc3e301;}function Wr(_0xfd0a74,_0x3f5279){return _0xfd0a74+'\x1f'+_0x3f5279;}function Gr(_0x16f727,_0xa7f5c){return _0x16f727+'\x1f'+_0xa7f5c;}const Kr=_0x5d0ae0('base.command.service');let qr=class{constructor(_0x3411e0,_0x3c4f98=Jr(),_0x5d681c={}){const _0x4d8ae6=_0x354fcb;this['_permissionService']=_0x3411e0,this['_fieldRegistry']=_0x3c4f98,this[_0x4d8ae6(0x224)]=_0x5d681c,G(this,_0x4d8ae6(0x1dd),new W()),G(this,'_applier',new z());}[_0x354fcb(0x500)](_0x576e37,_0x1ecddc,_0x139169){const _0x36c325=_0x354fcb;if(!this['_permissionService'][_0x36c325(0x352)](_0x576e37[_0x36c325(0x422)]()))throw Error(_0x36c325(0x2a1));_0x136f40(_0x1ecddc),this[_0x36c325(0x402)](_0x576e37,this['_factory'][_0x36c325(0x500)](_0x576e37[_0x36c325(0x1f9)](),_0x1ecddc,_0x139169));}[_0x354fcb(0x1be)](_0x20e2eb,_0x2bb71e,_0x31770c){const _0x57a14a=_0x354fcb;if(!this[_0x57a14a(0x487)]['canEditTable'](_0x2bb71e))throw Error(_0x57a14a(0x172));this[_0x57a14a(0x402)](_0x20e2eb,this[_0x57a14a(0x1dd)][_0x57a14a(0x1be)](_0x20e2eb[_0x57a14a(0x1f9)](),_0x2bb71e,_0x31770c));}[_0x354fcb(0x4d8)](_0x41ee6c,_0x34512d){const _0x57446b=_0x354fcb;if(!this[_0x57446b(0x487)][_0x57446b(0x3c1)](_0x34512d))throw Error(_0x57446b(0x4ab));let _0x299e50=He(_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d);if(_0x299e50['length']>0x0)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20('+_0x299e50['map'](_0x119b4a=>_0x119b4a[_0x57446b(0x1c3)]+'.'+_0x119b4a[_0x57446b(0x46e)])['join'](',\x20')+').');this['_apply'](_0x41ee6c,this[_0x57446b(0x1dd)]['deleteTable'](_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d));}[_0x354fcb(0x3e6)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07){const _0x287ee8=_0x354fcb;this[_0x287ee8(0x402)](_0x545ecf,this[_0x287ee8(0x22b)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07));}[_0x354fcb(0x19a)](_0x5f4c8d,_0x3e656d,_0x371b9a){const _0x3e1e25=_0x354fcb;this['_apply'](_0x5f4c8d,this[_0x3e1e25(0x2be)](_0x5f4c8d,_0x3e656d,_0x371b9a));}[_0x354fcb(0x4a0)](_0x524291,_0x8fccab,_0x255c1e){const _0x2bbd68=_0x354fcb;this[_0x2bbd68(0x402)](_0x524291,this[_0x2bbd68(0x40c)](_0x524291,_0x8fccab,_0x255c1e));}[_0x354fcb(0x22b)](_0x3fb30d,_0xfe837,_0x4fefb8,_0x49f915,_0x259688){const _0x5a7b99=_0x354fcb;let _0x484b48=_0x3fb30d[_0x5a7b99(0x1f9)](),_0x37468=this[_0x5a7b99(0x302)](_0x484b48,_0xfe837,_0x4fefb8,_0x49f915,_0x259688),_0xcb7a2c=this[_0x5a7b99(0x1d4)](_0x484b48,_0xfe837,_0x4fefb8,{[_0x49f915]:_0x37468});return this[_0x5a7b99(0x1dd)]['setRecordValues'](_0x484b48,_0xfe837,[_0xcb7a2c]);}['createSetRecordValuesOp'](_0x393153,_0x1d66a2,_0x4ad9f9){const _0x6f14d7=_0x354fcb;let _0x2db3c6=_0x393153[_0x6f14d7(0x1f9)](),_0x584128=_0x4ad9f9['map'](_0x47b5d8=>this[_0x6f14d7(0x1d4)](_0x2db3c6,_0x1d66a2,_0x47b5d8[_0x6f14d7(0x4bb)],{...Object[_0x6f14d7(0x2e8)](Object['entries'](_0x47b5d8[_0x6f14d7(0x1da)])[_0x6f14d7(0x29b)](([_0x5dcf85,_0x25be6e])=>[_0x5dcf85,this[_0x6f14d7(0x302)](_0x2db3c6,_0x1d66a2,_0x47b5d8['recordId'],_0x5dcf85,_0x25be6e)]))}));return this[_0x6f14d7(0x1dd)]['setRecordValues'](_0x2db3c6,_0x1d66a2,_0x584128);}[_0x354fcb(0x40c)](_0x2c140c,_0x19a31f,_0x93ce33){const _0x45de8f=_0x354fcb;if(!this[_0x45de8f(0x487)]['canCreateRecord'](_0x19a31f))throw Error(_0x45de8f(0x4b7));let _0x3d36b7=_0x2c140c['getSnapshot'](),_0x357efd=this['_createNumberingAllocators'](_0x3d36b7[_0x45de8f(0x2ba)][_0x19a31f]);return this[_0x45de8f(0x1dd)][_0x45de8f(0x4a0)](_0x3d36b7,_0x19a31f,this[_0x45de8f(0x42d)](_0x3d36b7,_0x19a31f,_0x93ce33,_0x357efd));}[_0x354fcb(0x518)](_0xabba5,_0x30e6d1,_0xc0fe8c){const _0x339f8b=_0x354fcb;if(!this[_0x339f8b(0x487)][_0x339f8b(0x280)](_0x30e6d1))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x425088=_0xabba5['getSnapshot']();return I(_0x339f8b(0x23e),()=>{const _0x1fb40f=_0x339f8b;let _0x1f8915=this[_0x1fb40f(0x42e)](_0x425088['tables'][_0x30e6d1]);return this[_0x1fb40f(0x1dd)][_0x1fb40f(0x268)](_0x425088,_0x30e6d1,_0xc0fe8c[_0x1fb40f(0x29b)](_0x490da8=>this['_createRecordWithDefaults'](_0x425088,_0x30e6d1,_0x490da8,_0x1f8915)));},{'existingRecords':Object[_0x339f8b(0x51b)](_0x425088['tables'][_0x30e6d1][_0x339f8b(0x45a)])[_0x339f8b(0x458)],'records':_0xc0fe8c[_0x339f8b(0x458)]});}['createCreateFieldOp'](_0x449389,_0x1d731f,_0x1abb77,_0x3a743d,_0x2bdead){const _0x1d3187=_0x354fcb;if(!this[_0x1d3187(0x487)]['canCreateField'](_0x1d731f))throw Error(_0x1d3187(0x46c));let _0x431b03=_0x449389[_0x1d3187(0x1f9)]();if(this[_0x1d3187(0x3df)](_0x431b03,_0x1abb77),_0x3a743d===0x0)throw Error('[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.');let _0x1e980e=this['_factory'][_0x1d3187(0x2c0)](_0x431b03,_0x1d731f,{'field':_0x1abb77,'index':_0x3a743d,'viewIndexes':_0x2bdead}),_0x3a5908=this[_0x1d3187(0x365)](_0x431b03,_0x1d731f,_0x1abb77);if(!_0x3a5908[_0x1d3187(0x458)])return _0x1e980e;let _0xd5a6a=this[_0x1d3187(0x493)][_0x1d3187(0x2ad)](_0x431b03,_0x1e980e);return R([_0x1e980e,this['_factory']['setRecordValues'](_0xd5a6a,_0x1d731f,_0x3a5908)]);}[_0x354fcb(0x375)](_0x51f826,_0x4e980e,_0x3805c6){const _0x5475f0=_0x354fcb;if(!this[_0x5475f0(0x487)][_0x5475f0(0x37c)](_0x4e980e,_0x3805c6))throw Error(_0x5475f0(0x2fe));this[_0x5475f0(0x402)](_0x51f826,this[_0x5475f0(0x1dd)]['deleteRecord'](_0x51f826[_0x5475f0(0x1f9)](),_0x4e980e,_0x3805c6));}[_0x354fcb(0x3e5)](_0x2de52a,_0x32bf0f,_0x39d1ee,_0x332642){const _0x269b77=_0x354fcb;if(!this['_permissionService'][_0x269b77(0x280)](_0x32bf0f))throw Error(_0x269b77(0x4b7));this[_0x269b77(0x402)](_0x2de52a,this['_factory'][_0x269b77(0x3e5)](_0x2de52a['getSnapshot'](),_0x32bf0f,_0x39d1ee,{..._0x332642,'values':{..._0x332642[_0x269b77(0x1da)],[_0x3b44b5]:_0x332642['id']}}));}[_0x354fcb(0x229)](_0x35fbe9,_0x4df03a,_0x4d069e,_0x4f7cc2){const _0x24ef2a=_0x354fcb;if(!this['_permissionService']['canEditRecord'](_0x4df03a,_0x4d069e))throw Error(_0x24ef2a(0x3ee));this[_0x24ef2a(0x402)](_0x35fbe9,this['_factory']['updateRecordOrder'](_0x35fbe9[_0x24ef2a(0x1f9)](),_0x4df03a,_0x4d069e,_0x4f7cc2));}[_0x354fcb(0x2c0)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db){const _0x3eb11f=_0x354fcb;this['_apply'](_0x11e555,this[_0x3eb11f(0x20a)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db));}['updateField'](_0x18cb38,_0x5d9f3a,_0x423d24,_0x483b01){const _0x16043a=_0x354fcb;var _0x5e0c35;if(!this[_0x16043a(0x487)][_0x16043a(0x341)](_0x5d9f3a,_0x423d24))throw Error(_0x16043a(0x351));let _0x1de38c=_0x18cb38[_0x16043a(0x1f9)](),_0x1bb796=(_0x5e0c35=_0x1de38c[_0x16043a(0x2ba)][_0x5d9f3a])==null?void 0x0:_0x5e0c35[_0x16043a(0x480)][_0x423d24];if(!_0x1bb796||_0x423d24===_0x3b44b5)throw Error(_0x16043a(0x27d));this[_0x16043a(0x3df)](_0x1de38c,{..._0x1bb796,..._0x483b01}),this[_0x16043a(0x402)](_0x18cb38,this[_0x16043a(0x1dd)][_0x16043a(0x409)](_0x1de38c,_0x5d9f3a,_0x423d24,_0x483b01));}['changeFieldType'](_0x292f35,_0x1cd207,_0x5863e3,_0x458e6a){const _0x45643b=_0x354fcb;var _0xacd85f;if(!this['_permissionService'][_0x45643b(0x341)](_0x1cd207,_0x5863e3))throw Error(_0x45643b(0x351));let _0xd4aaf5=_0x292f35['getSnapshot'](),_0x4e62b2=(_0xacd85f=_0xd4aaf5['tables'][_0x1cd207])==null?void 0x0:_0xacd85f[_0x45643b(0x480)][_0x5863e3];if(!_0x4e62b2||_0x5863e3===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x45643b(0x3df)](_0xd4aaf5,{..._0x4e62b2,..._0x458e6a}),this['_apply'](_0x292f35,this[_0x45643b(0x1dd)][_0x45643b(0x2b7)](_0xd4aaf5,_0x1cd207,_0x5863e3,_0x458e6a));}[_0x354fcb(0x21f)](_0x57176a,_0x4403ba,_0xb94338){const _0x24e3e8=_0x354fcb;var _0x313e94;if(((_0x313e94=_0x57176a['getSnapshot']()[_0x24e3e8(0x2ba)][_0x4403ba])==null?void 0x0:_0x313e94[_0x24e3e8(0x4cf)])===_0xb94338||_0xb94338===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x24e3e8(0x487)][_0x24e3e8(0x2bf)](_0x4403ba,_0xb94338))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0x24e3e8(0x402)](_0x57176a,this[_0x24e3e8(0x1dd)]['deleteField'](_0x57176a[_0x24e3e8(0x1f9)](),_0x4403ba,_0xb94338));}[_0x354fcb(0x399)](_0x44cab7,_0x394e2f,_0x57fc6f,_0x53a0cb){const _0x1e440c=_0x354fcb;if(!this[_0x1e440c(0x487)][_0x1e440c(0x341)](_0x394e2f,_0x57fc6f))throw Error(_0x1e440c(0x351));if(_0x57fc6f===_0x3b44b5||_0x53a0cb[_0x1e440c(0x381)]===_0x3b44b5)throw Error(_0x1e440c(0x312));this[_0x1e440c(0x402)](_0x44cab7,this[_0x1e440c(0x1dd)][_0x1e440c(0x399)](_0x44cab7['getSnapshot'](),_0x394e2f,_0x57fc6f,_0x53a0cb));}[_0x354fcb(0x446)](_0x308e24,_0x20c275,_0x8d31fb,_0x19983b){const _0x11370c=_0x354fcb;if(!this[_0x11370c(0x487)][_0x11370c(0x459)](_0x20c275,_0x8d31fb['id']))throw Error(_0x11370c(0x465));this[_0x11370c(0x402)](_0x308e24,this[_0x11370c(0x1dd)]['createView'](_0x308e24['getSnapshot'](),_0x20c275,_0x8d31fb,_0x19983b));}['renameView'](_0x14890a,_0xf05c6c,_0x1d5b62,_0x5de984){const _0x18260b=_0x354fcb;if(!this[_0x18260b(0x487)][_0x18260b(0x459)](_0xf05c6c,_0x1d5b62))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x18260b(0x402)](_0x14890a,this['_factory']['renameView'](_0x14890a['getSnapshot'](),_0xf05c6c,_0x1d5b62,_0x5de984));}[_0x354fcb(0x3a2)](_0x495806,_0x543fcc,_0x232245){const _0x1c7d01=_0x354fcb;if(!this[_0x1c7d01(0x487)][_0x1c7d01(0x459)](_0x543fcc,_0x232245))throw Error(_0x1c7d01(0x465));this['_apply'](_0x495806,this[_0x1c7d01(0x1dd)][_0x1c7d01(0x3a2)](_0x495806[_0x1c7d01(0x1f9)](),_0x543fcc,_0x232245));}[_0x354fcb(0x24d)](_0x3ef87b,_0x297af0,_0x25bc7a,_0x528d1e){const _0x54ddce=_0x354fcb;if(!this['_permissionService'][_0x54ddce(0x459)](_0x297af0,_0x25bc7a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x54ddce(0x402)](_0x3ef87b,this[_0x54ddce(0x1dd)][_0x54ddce(0x24d)](_0x3ef87b[_0x54ddce(0x1f9)](),_0x297af0,_0x25bc7a,_0x528d1e));}[_0x354fcb(0x4c1)](_0x146e08,_0x3476cb,_0x912879,_0x37ee58){const _0x43aebd=_0x354fcb;if(!this[_0x43aebd(0x487)][_0x43aebd(0x459)](_0x3476cb,_0x912879))throw Error(_0x43aebd(0x465));this[_0x43aebd(0x402)](_0x146e08,this[_0x43aebd(0x1dd)][_0x43aebd(0x4c1)](_0x146e08[_0x43aebd(0x1f9)](),_0x3476cb,_0x912879,_0x37ee58));}[_0x354fcb(0x2de)](_0x3721c1,_0x541c61,_0x1a7d50,_0x519651){const _0x2cdb47=_0x354fcb;if(!this[_0x2cdb47(0x487)][_0x2cdb47(0x459)](_0x541c61,_0x1a7d50))throw Error(_0x2cdb47(0x465));this[_0x2cdb47(0x402)](_0x3721c1,this[_0x2cdb47(0x1dd)][_0x2cdb47(0x2de)](_0x3721c1['getSnapshot'](),_0x541c61,_0x1a7d50,_0x519651));}[_0x354fcb(0x4ff)](_0x57f442,_0x5baa59,_0x12120c,_0xf2a627){const _0x57154c=_0x354fcb;if(!this[_0x57154c(0x487)][_0x57154c(0x459)](_0x5baa59,_0x12120c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x57154c(0x402)](_0x57f442,this[_0x57154c(0x1dd)][_0x57154c(0x4ff)](_0x57f442[_0x57154c(0x1f9)](),_0x5baa59,_0x12120c,_0xf2a627));}[_0x354fcb(0x178)](_0x276d6c,_0x3b5c6d,_0x5aa520,_0xc77251){const _0x50e559=_0x354fcb;if(!this['_permissionService']['canManageView'](_0x3b5c6d,_0x5aa520))throw Error(_0x50e559(0x465));this[_0x50e559(0x402)](_0x276d6c,this[_0x50e559(0x1dd)]['setViewGroup'](_0x276d6c[_0x50e559(0x1f9)](),_0x3b5c6d,_0x5aa520,_0xc77251));}[_0x354fcb(0x4fc)](_0x2eb842,_0x182c91,_0x4a6f,_0x285207,_0x131283){const _0x2ac761=_0x354fcb;if(!this['_permissionService'][_0x2ac761(0x459)](_0x182c91,_0x4a6f))throw Error(_0x2ac761(0x465));this[_0x2ac761(0x402)](_0x2eb842,this['_factory'][_0x2ac761(0x4fc)](_0x2eb842['getSnapshot'](),_0x182c91,_0x4a6f,_0x285207,_0x131283));}['setViewFieldWidth'](_0x5373e6,_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf){const _0x3d90f3=_0x354fcb;if(!this[_0x3d90f3(0x487)][_0x3d90f3(0x459)](_0xa7ad5c,_0x313ac7))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x3d90f3(0x402)](_0x5373e6,this['_factory'][_0x3d90f3(0x175)](_0x5373e6[_0x3d90f3(0x1f9)](),_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf));}['setViewFieldOrder'](_0x119ebe,_0x452d7b,_0x1166d4,_0x58359b,_0x598b77){const _0x3692ea=_0x354fcb;if(!this[_0x3692ea(0x487)][_0x3692ea(0x459)](_0x452d7b,_0x1166d4))throw Error(_0x3692ea(0x465));this[_0x3692ea(0x402)](_0x119ebe,this[_0x3692ea(0x1dd)][_0x3692ea(0x457)](_0x119ebe[_0x3692ea(0x1f9)](),_0x452d7b,_0x1166d4,_0x58359b,_0x598b77));}[_0x354fcb(0x402)](_0x12960d,_0x43bd4c){const _0xc109b1=_0x354fcb;let _0x261ae7=_0x12960d[_0xc109b1(0x1f9)]();_0x12960d[_0xc109b1(0x2ff)](this['_applier'][_0xc109b1(0x2ad)](_0x261ae7,_0x43bd4c));}[_0x354fcb(0x42d)](_0x58f9c0,_0x30b1c1,_0x32eda5,_0x1b01f2=this[_0x354fcb(0x42e)](_0x58f9c0['tables'][_0x30b1c1])){const _0x1adf00=_0x354fcb;let _0x23572b=_0x58f9c0[_0x1adf00(0x2ba)][_0x30b1c1],_0x2bb687=_0x32eda5[_0x1adf00(0x3d0)]??_0x32eda5[_0x1adf00(0x2e9)]??this[_0x1adf00(0x3a5)](),_0x526022={..._0x32eda5,'createdBy':_0x32eda5[_0x1adf00(0x3d0)]??_0x2bb687,'updatedBy':_0x32eda5[_0x1adf00(0x2e9)]??_0x2bb687,'values':{..._0x32eda5['values']}};return _0x526022['values'][_0x3b44b5]=_0x526022['id'],_0x23572b['fieldOrder'][_0x1adf00(0x461)](_0x591147=>{const _0x57dae7=_0x1adf00;let _0x351e8b=_0x23572b[_0x57dae7(0x480)][_0x591147];if(_0x351e8b&&_0x526022[_0x57dae7(0x1da)][_0x591147]===void 0x0)switch(_0x351e8b[_0x57dae7(0x33a)]){case _0x19bf94['Numbering']:var _0x3619af;_0x526022[_0x57dae7(0x1da)][_0x591147]=((_0x3619af=_0x1b01f2['get'](_0x591147))==null?void 0x0:_0x3619af())??this[_0x57dae7(0x2c7)](_0x23572b,_0x591147)();break;case _0x19bf94['CreatedBy']:_0x526022[_0x57dae7(0x3d0)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x3d0)]);break;case _0x19bf94['UpdatedBy']:_0x526022[_0x57dae7(0x2e9)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x2e9)]);break;case _0x19bf94[_0x57dae7(0x253)]:_0x526022[_0x57dae7(0x1da)][_0x591147]=B(_0x526022[_0x57dae7(0x403)]);break;case _0x19bf94[_0x57dae7(0x347)]:_0x526022['values'][_0x591147]=B(_0x526022[_0x57dae7(0x483)]);break;default:{let _0x24f6dd=_0x351e8b[_0x57dae7(0x241)];_0x24f6dd!=null&&_0x24f6dd!==''&&!(Array[_0x57dae7(0x354)](_0x24f6dd)&&_0x24f6dd['length']===0x0)&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x24f6dd);}}}),_0x526022;}[_0x354fcb(0x1d4)](_0x9230f,_0x12256f,_0x1ae0c4,_0x6db730){const _0x5cf5e2=_0x354fcb;var _0x2f2fd3,_0x278acf;let _0x3b33b0=_0x9230f['tables'][_0x12256f],_0x459d6a=((_0x2f2fd3=(_0x278acf=this[_0x5cf5e2(0x224)])[_0x5cf5e2(0x181)])==null?void 0x0:_0x2f2fd3['call'](_0x278acf))??Date['now'](),_0x2de7e2=this[_0x5cf5e2(0x3a5)](),_0x15ff43={..._0x6db730};return _0x3b33b0['fieldOrder']['forEach'](_0x8b5c59=>{const _0x312e0f=_0x5cf5e2;let _0x4c690a=_0x3b33b0['fields'][_0x8b5c59];_0x4c690a&&(_0x4c690a['type']===_0x19bf94[_0x312e0f(0x347)]&&(_0x15ff43[_0x8b5c59]=B(_0x459d6a)),_0x4c690a[_0x312e0f(0x33a)]===_0x19bf94[_0x312e0f(0x4df)]&&_0x2de7e2&&(_0x15ff43[_0x8b5c59]=_0x2de7e2));}),{'recordId':_0x1ae0c4,'values':_0x15ff43,'recordPatch':{'updatedAt':_0x459d6a,..._0x2de7e2?{'updatedBy':_0x2de7e2}:{}}};}[_0x354fcb(0x365)](_0x5d7579,_0x1ba266,_0x5b33b3){const _0x1cce48=_0x354fcb;let _0x39f67=_0x5d7579[_0x1cce48(0x2ba)][_0x1ba266];return!_0x39f67||!Yr(_0x5b33b3)?[]:_0x5b33b3[_0x1cce48(0x33a)]===_0x19bf94[_0x1cce48(0x469)]?this[_0x1cce48(0x232)](_0x39f67,_0x5b33b3['id']):Object['values'](_0x39f67[_0x1cce48(0x45a)])[_0x1cce48(0x2a2)](_0x169dbc=>{let _0xf09980=this['_getSystemFieldValue'](_0x5b33b3,_0x169dbc);return _0xf09980===void 0x0?[]:[{'recordId':_0x169dbc['id'],'values':{[_0x5b33b3['id']]:_0xf09980}}];});}[_0x354fcb(0x497)](_0x51ef9d,_0x5ac58b){const _0x11b39f=_0x354fcb;switch(_0x51ef9d['type']){case _0x19bf94[_0x11b39f(0x1fe)]:return _0x5ac58b[_0x11b39f(0x3d0)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x4df)]:return _0x5ac58b[_0x11b39f(0x2e9)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x253)]:return B(_0x5ac58b['createdAt']??Date[_0x11b39f(0x181)]());case _0x19bf94[_0x11b39f(0x347)]:return B(_0x5ac58b[_0x11b39f(0x483)]??Date[_0x11b39f(0x181)]());default:return;}}[_0x354fcb(0x42e)](_0x44cf28){const _0x4bcd80=_0x354fcb;let _0xcd6472=new Map();return _0x44cf28&&_0x44cf28[_0x4bcd80(0x1e1)][_0x4bcd80(0x461)](_0x4b66e0=>{const _0x3f953c=_0x4bcd80;let _0x42847e=_0x44cf28[_0x3f953c(0x480)][_0x4b66e0];(_0x42847e==null?void 0x0:_0x42847e[_0x3f953c(0x33a)])===_0x19bf94['Numbering']&&_0xcd6472[_0x3f953c(0x1a1)](_0x4b66e0,this['_createNumberingAllocator'](_0x44cf28,_0x4b66e0));}),_0xcd6472;}[_0x354fcb(0x2c7)](_0x18f110,_0x5ddab9){const _0x1960e5=_0x354fcb;let _0x59915c=Object['values'](_0x18f110[_0x1960e5(0x45a)])[_0x1960e5(0x498)]((_0x319dd5,_0x354b7e)=>{const _0x29302d=_0x1960e5;let _0xe9e324=Number(_0x354b7e['values'][_0x5ddab9]);return Number[_0x29302d(0x2c3)](_0xe9e324)?Math[_0x29302d(0x1b3)](_0x319dd5,_0xe9e324):_0x319dd5;},0x0);return()=>String(++_0x59915c);}['_createNumberingFieldValuePatches'](_0x24359c,_0x4f50c3){const _0x393ca1=_0x354fcb;let _0x4c330b=this[_0x393ca1(0x17a)](_0x24359c),_0x5e15d3=this['_createNumberingAllocator'](_0x24359c,_0x4f50c3);return _0x4c330b[_0x393ca1(0x2a2)](_0x20de22=>this[_0x393ca1(0x3c7)](_0x20de22[_0x393ca1(0x1da)][_0x4f50c3])?[]:[{'recordId':_0x20de22['id'],'values':{[_0x4f50c3]:_0x5e15d3()}}]);}[_0x354fcb(0x17a)](_0x591de8){const _0x36b6a7=_0x354fcb;var _0x36b779;let _0x57fbef=Object[_0x36b6a7(0x1da)](_0x591de8[_0x36b6a7(0x45a)]),_0x485b68=new Map(_0x57fbef[_0x36b6a7(0x29b)](_0x174eb0=>[_0x174eb0['id'],_0x174eb0])),_0x5526f8=[],_0x532f91=new Set();(_0x36b779=_0x591de8[_0x36b6a7(0x22d)])==null||_0x36b779['forEach'](_0x4391a3=>{const _0x6d9933=_0x36b6a7;let _0x35c9b5=_0x485b68[_0x6d9933(0x4a8)](_0x4391a3);_0x35c9b5&&(_0x5526f8[_0x6d9933(0x1f3)](_0x35c9b5),_0x532f91[_0x6d9933(0x35e)](_0x4391a3));});let _0x45cb2d=_0x57fbef[_0x36b6a7(0x397)](_0x22f63f=>!_0x532f91[_0x36b6a7(0x23f)](_0x22f63f['id']))[_0x36b6a7(0x3db)]((_0x434672,_0x355457)=>String(_0x434672[_0x36b6a7(0x3ef)]??_0x434672['id'])['localeCompare'](String(_0x355457[_0x36b6a7(0x3ef)]??_0x355457['id']))||_0x434672['id']['localeCompare'](_0x355457['id']));return[..._0x5526f8,..._0x45cb2d];}[_0x354fcb(0x3c7)](_0x246202){const _0x312bd1=_0x354fcb;return _0x246202!=null&&_0x246202!==''&&!(Array[_0x312bd1(0x354)](_0x246202)&&_0x246202[_0x312bd1(0x458)]===0x0);}[_0x354fcb(0x3a5)](){const _0x46a355=_0x354fcb;var _0x373602,_0x170e6f,_0x91153f,_0x1ba55b;return((_0x373602=(_0x170e6f=this[_0x46a355(0x224)])['getCurrentUserId'])==null?void 0x0:_0x373602[_0x46a355(0x331)](_0x170e6f))??((_0x91153f=(_0x1ba55b=this[_0x46a355(0x224)])['getCurrentUser'])==null||(_0x91153f=_0x91153f['call'](_0x1ba55b))==null?void 0x0:_0x91153f[_0x46a355(0x2db)])??void 0x0;}['_normalizeCellValue'](_0x7c134,_0x368a26,_0x3af947,_0x1f8d3d,_0x3a206f){const _0x215bc3=_0x354fcb;var _0xc61542;if(!this[_0x215bc3(0x487)][_0x215bc3(0x1d2)](_0x368a26,_0x3af947,_0x1f8d3d))throw Error(_0x215bc3(0x1a6));let _0x23cac2=(_0xc61542=_0x7c134[_0x215bc3(0x2ba)][_0x368a26])==null?void 0x0:_0xc61542[_0x215bc3(0x480)][_0x1f8d3d];if(!_0x23cac2)throw Error(_0x215bc3(0x1d3)+_0x1f8d3d+'\x22\x20does\x20not\x20exist.');let _0x10bbd9=this[_0x215bc3(0x2c4)]['get'](_0x23cac2[_0x215bc3(0x33a)]);if(_0x23cac2[_0x215bc3(0x401)]||_0x23cac2[_0x215bc3(0x1cb)]||!_0x10bbd9[_0x215bc3(0x43a)](_0x23cac2)[_0x215bc3(0x346)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x491e4d=_0x10bbd9[_0x215bc3(0x49f)](_0x3a206f,_0x23cac2),_0x4ecec0=_0x10bbd9[_0x215bc3(0x209)](_0x491e4d,_0x23cac2);if(!_0x4ecec0[_0x215bc3(0x35c)])throw Error(_0x4ecec0[_0x215bc3(0x2d9)]??_0x215bc3(0x43f));let _0x3f3b7c=_0x23cac2[_0x215bc3(0x33a)]===_0x19bf94[_0x215bc3(0x2bd)]?Ve(_0x7c134,_0x23cac2,_0x491e4d):{'valid':!0x0};if(!_0x3f3b7c[_0x215bc3(0x35c)])throw Error(_0x3f3b7c[_0x215bc3(0x2d9)]??_0x215bc3(0x3bb));return _0x491e4d;}[_0x354fcb(0x3df)](_0x16c588,_0x3d75ba){const _0x3b0559=_0x354fcb;if(_0x3d75ba['id']===_0x3b44b5||_0x3d75ba[_0x3b0559(0x33a)]===_0x19bf94[_0x3b0559(0x44f)]||_0x37b436(_0x3d75ba['name']))throw Error(_0x3b0559(0x4c4));let _0x586292=Be(_0x16c588,_0x3d75ba);if(!_0x586292[_0x3b0559(0x35c)])throw Error(_0x586292['reason']??_0x3b0559(0x248));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x2dd760=_0x354fcb;let _0x17c402=new hr();return zn()[_0x2dd760(0x461)](_0x1bc518=>_0x17c402['register'](_0x1bc518)),_0x17c402;}function Yr(_0x489b3a){const _0x425ec8=_0x354fcb;return _0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x469)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x1fe)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94['UpdatedBy']||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x253)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x347)];}function _0x2357(){const _0x337978=['_setViewFieldSetting','[BaseCommandService]:\x20invalid\x20cell\x20value.','Date','_buildGallery','false','-view-grid','lastIndexOf','normal','createView','updatePermissionPoint','getInstance','stringify','_fieldPermissions','Parent\x20Items','_hierarchyIndexCache','_disposed','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','RecordId','getUTCMonth','symbol','getUTCDay','Copy','LAST_WEEK','getProjection','_projectedViewRowsCache','setViewFieldOrder','length','canManageView','records','star','https:','base.command.ensure-base-temporal-view-date-fields','base.mutation.set-permission-rule','field/','_findCalendarDateFieldId','forEach','\x22\x20does\x20not\x20exist.','Edit','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20cannot\x20manage\x20view.','_capabilities','exec','true','Numbering','fld-','base.command.delete-base-field','[BaseCommandService]:\x20cannot\x20create\x20field.','[BasePerf]\x20','fieldId','Attachment','\x20must\x20have\x20a\x20non-empty\x20id.','string','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','size','rowId','STRING','dateFormat','\x20permission\x20denied.','#3b82f6','Export','_configService','SelfParent','#BFDBFE','splice','attachmentSets','Base\x20edit\x20permission\x20denied.','fields','canEditTable','_normalizeGanttDisplayColor','updatedAt','fieldSettings','viewIndexes','AFTER','_permissionService','_fastSortRows','PAST_7_DAYS','387000MYvFjX','base.command.update-base-field','Todo','IS_NOT','base.command.move-base-view','projection','rows','ruleId','invalidGroupField','_applier','Table','7fdUiRV','_removeSuperTables','_getSystemFieldValue','reduce','attachments','[BaseProjectionService]:\x20missing\x20view\x20\x22','check','$1\x20','custom','setFieldPermission','normalize','createRecord','__UNIVER_BASE_PERF__','dependencyFieldId','_deleteAttachmentResources','_resolveGalleryCardFieldIds','notContains',',,,\x22B\x22','invalidField','get','_buildKanban','progressFieldId','[BaseCommandService]:\x20cannot\x20delete\x20table.','_viewPermissions','End\x20date','univer.basePerf','clearBasePermission','Clear','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_initDependencies','base.command.move-base-field','fieldIndex','join','clear','[BaseCommandService]:\x20cannot\x20create\x20record.','recordPatch','_materializeGroups','BaseProjection.getProjection','recordId','localeCompare','False','timeslotSize','missingField','_resolveKanbanCoverFieldId','updateViewConfig','unitWidth','_config','[BaseCommandService]:\x20record-id\x20is\x20reserved.','Rating','syncExecuteCommand','remote','indexOf','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','subtreeEndIndex','_getStructureDirtyTableIds','optionSource','source','Kanban','primaryFieldId','_setAttachmentResources','repeat','text','currencySymbol','columnSettings','Import','base.mutation.apply-base-json1','contains','deleteTable','YESTERDAY','usableAsGanttStart','Link','fromPlainText','from','rowIndexById','UpdatedBy','attachmentSet','\x20has\x20unsupported\x20operator\x20\x22','selfParent','[RecordLink]:\x20target\x20record\x20\x22','tableName','emitPermissionDenied','@univerjs-pro/bases','_ganttBarColor','Calendar','General','_formulaCalculationTriggerService','cell','protocol','allowDangling','direction','BaseField','getAllBases','toLowerCase','_globalRevision','base.command.update-base-record-order','delete','locale','_projectedGroupsCache','MM/DD/YYYY','coverFieldId','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.create-base-view','NumberFormat','setViewFieldVisible','bases-exchange-client.operation.export-base','record/','setViewSort','createTable','includeTime','_isGanttDateField','getOwnPropertyDescriptor','Uncategorized','unique','saveMany','BASE','base.command.update-base-view-config','deletePermissionPoint','columns','Ids','getUTCFullYear','timeZone','-field-name','unitData','card','setRangeValues','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','table','[BaseViewRegistryService]:\x20view\x20type\x20\x22','getSuperTableRegistrations','base.command.update-base-cell','_cellRevisions','createBatchCreateRecordsOp','pushUndoRedo','hierarchy','keys','numfmt','createDeleteRecordsUndoOp','invalidateByOp','recordIds','invalidateByCell','isNot','colorFieldId','data','medium','childType','operand','base.command.set-base-range-values','setRecordPermission','10722330ytZByh','BaseView','record','CreateView','duplicate','_applyFormulaResult','diffValue','Unchecked','getMonth','manual','True','endDateFieldId','[BaseCommandService]:\x20cannot\x20edit\x20table.','MissingRecord','_recordIds','setViewFieldWidth','BOOLEAN','pattern','setViewGroup','base.command.batch-delete-base-records','_getOrderedRecords','base.command.delete-base-record','Gallery','A\x20table\x20with\x20this\x20name\x20already\x20exists.','scale','_rememberTable','_getJson1DirtyData','now','raw','findIndex','EXACT','base.view-registry.service','lastIndex','_buildGrid',':start','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','action','Table\x20name\x20is\x20required.','base-perf-','allowMultiple','depth','_registeredSuperTableNames','color','start','slice','rule','_resolveKanbanGroupFieldId','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','descendPath','_sortRows','duplicateField','setRecordValues','month','Currency','autoIncrement','Checkbox','base.command.create-base-field','_getKanbanConfiguredLanes','set','MissingParent','orderedRecordIds','[BaseFormula]:\x20field\x20\x22','pop','[BaseCommandService]:\x20cannot\x20edit\x20cell.','_kanbanGroupKeys','h24','Checked','registerRuleModel','targetTableId','YYYY/MM/DD','trigger','BaseJson1.json1Apply','_clearObjectEdit','Failed\x20to\x20create\x20update\x20cell\x20operation:','parentRecordId','_groupsCacheKey','max','disposeWithMe','rootRecordIds','every','long','_injector','group','Progress','getDependencies','patches','_initialize','renameTable','beforeCommandExecuted','base-range-values-v1','descend','validateFormula','tableId','measure','split','codePointAt','url','gridViewId','getPermissionPoint','_filterRows','system','getUTCDate','yyyy/mm/dd','hidden','cellData','BaseTable','base.command.duplicate-base-field','canEditCell','[BaseCommandService]:\x20field\x20\x22','_withModifiedSystemValues','en-US','_viewRowsCacheKey','_clearUnit','base.command.set-base-record-values','showFieldNames','values','edit','BaseRecord','_factory','resolvedOptions','Status','name','fieldOrder','entries','#14b8a6','cellRevision','Person','exceptions','limit','kind','displayFieldId','col','lessThanOrEqual','_baseSyncDisposables','renameFormulaUnitReferences','_cacheKey','_isCalendarDateField','conditional','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_viewRevisionKey','push','BASE_OBJECT_PERMISSION_PLUGIN','base.command.set-base-view-filter','base.command.batch-create-base-records','_tableBaseIds','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','getSnapshot','_canEdit','compose','week','invertWithDoc','CreatedBy','setConfig','subType','UNIVER_BASE','_getCachedProjection','_recordPermissions','objectType','[BaseField]:\x20invalid\x20person\x20value.','error','insertOp','_onCommandExecuted','validate','createCreateFieldOp','user','quarter','_setCachedProjection','invalid','_formulaSyncQueue','canEditRecord','params','lessThan','createViewId','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','multiple','base.viewType.gallery','undefined','average','date','invalidateByView','row','hourCycle','1181502QRUPLq','BaseProjection.filterAndSortRows','deleteField','path','_setFormulaFieldCells','COLUMN','Group','_runtimeContext','objectId','weekdays','fieldIds','maxDepth','updateRecordOrder','setBaseName','createUpdateCellOp','sum','recordOrder','includeRecords','find','_normalizeGanttConfig','includes','_createNumberingFieldValuePatches','finally','calendar','test','workingDays','dashboard/','manageView','getBase','formula','GREATER_THAN','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','toFixed','BaseCommand.createBatchCreateRecordsOp','has','startDateFieldId','defaultValue','colId','invalidReasonByRecordId','_isAllDayGanttDateRange','repairViewConfig','removeOp','clearUnit','[BaseCommandService]:\x20invalid\x20field\x20definition.','showTodayLine','format','_replaceOptional','_deleteRecordsBaseOp','moveView','forValue','_findKanbanGroupField','index','MUTATION','_plugins','CreatedAt','startsWith','TOMORROW','number','some','_setObjectEdit','_getHierarchyIndex','_executeSuperTableMutationWhileActive','base.command.delete-base-view','attachment','HH:mm','iterator','base.command.','executeCommand','remove','_rowTransformCacheSegment','[BaseHierarchy]:\x20','Redo','sortedView','width','greaterThan','createRecords','object','empty','primaryFieldName','spaceComma','globalRevision','column','create-view','Cycle','Number','_kanbanLaneTitle','base.field-registry.service','relationRole','getTypeOfUnitDisposed$','_groupCellInvalidations','allowNegative','unitId',',,\x22M\x22','attachment-','afterFieldId','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','createRegExpFromSafeFragment','Add','canCreateRecord','label','recordNamePrefix','MultiSelect','toPlainText','base.command.create-base-table','code','_dataSyncPrimaryController','colIndex','base.command.set-base-view-field-order','base.viewType.calendar','field','_resolveCardTitleFieldId','separatorStyle','pickerFieldIds','cardLayout','rowIndex','_patchCachedProjectedRows','REMOTE_BASES_PLUGIN','canCreateField','_enqueueFormulaSync','facade','packageName','_formulaService','setTablePermission','_cellInvalidations','base.command.set-base-view-field-width','map','_registerUnitPermissionPoints','_T_','_resolveBaseId','redo','_viewRevisions','[BaseCommandService]:\x20cannot\x20create\x20table.','flatMap','this-row','_getTablesToNormalize','_canUseFastSort','_projectedRowsCache','bases.fieldConfig.linkPlaceholder','getFullYear','ena','invertOp','changed','Phone','applyOp','getTypeOfUnitAdded$','filled','\x20has\x20unsupported\x20date\x20mode\x20\x22','replace','_bumpTableRevision','_getTable','syncUnit','_views','defineProperty','changeFieldType','_cellInvalidationsTouchFields','getAffectedRanges','tables','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','off','RecordLink','createSetRecordValuesOp','canDeleteField','createField','resolve','pluginName','isFinite','_fieldRegistry','spacePeriod','THIS_WEEK','_createNumberingAllocator','fieldName','\x22\x20with\x20field\x20type\x20\x22','baseRows','NEXT_7_DAYS','h12','kanban','useThousands','_instanceService','_buildCalendar','strategies','snapshot','option-','base.command.update-base-kanban-config','onStarting','day','conjunction','score','reason','addPermissionPoint','userID','ascend','[BaseHierarchy]:\x20field\x20\x22','setViewFilter','view','NEXT_30_DAYS','usableAsGanttEnd','_tableRevisions','table/','BEFORE','getUnit','240390EOLHYe','assign','fromEntries','updatedBy','short','base.mutation.','flat','5hlDvIn','_commandService','compress','exception-','toLocaleString','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','[BaseField]:\x20invalid\x20email\x20value.','register','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','beforeViewId','abs','_scheduleSuperTableSync','base.command.set-base-view-sort','base.command.duplicate-base-record','IBaseCellData.ensureTableCellLayout','_initCommands','_projectionCache','[BaseCommandService]:\x20cannot\x20delete\x20record.','setSnapshot','person','COMMAND','_normalizeCellValue','hostAnchorId','save','deleteRecords','tableRevision','majorHeaders','IS_EMPTY','conditions','revision','small','_applyingFormulaResults','oldParentRecordId','setRules','subscribe','createSuperTableReference','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','createUnit','_resolveKanbanCardFieldIds','base.viewType.gantt','_materializeFormulaTableNames','Base','major-','base.command.set-base-view-field-visible','mode','embed-ui','onCommandExecuted','FORCE_STRING','selectField','operator','DESC','tryMaterializeSnapshot','6jzmXdX','base.command.create-base-child-record','general','displayColor',':end','_patchProjectedRowsForCellInvalidations','level','thread-comment.command.','prototype','search','_projectTableRows','_isAllowedKanbanGroupField','1340IGTckn','_buildGantt','call','blue','replaceOp','FieldId','exists','PAST_30_DAYS','_isKanbanGroupField','write','UNIVER_EMBED_BASES_TABLE','type','missingRecord','basePerf','cardSize','childUnitId','CONTAINS','unshift','canEditField','config','WriteCursor','Undo','titleFieldId','editable','UpdatedAt','createBase','toString','_normalizeCalendarConfig','Base\x20','NOT_CONTAINS','Email','BaseProjection.projectGroups','795392LoMFsy','Empty','[BaseCommandService]:\x20cannot\x20edit\x20field.','canCreateTable','import','isArray','deepClone','abbreviation','formulaName','resources','doing','_basePermissions','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','valid','min','add','_initRegistries','usableAsCardCover','_scheduledSuperTableSyncs','_getTableRevision','cycle','boolean','_createSystemFieldValuePatches','viewId','version','base.command.move-base-hierarchy-record','displayText','Comment','_formulaCalculationSessionService','rules','Name','parentByRecordId','_normalizeGalleryConfig','renameView','\x22\x20is\x20not\x20registered.','status','description','Text','deleteRecord','_getAllBaseDependencyTreeCacheMap','year','-record-','invalidGanttEndField','BaseJson1.cloneForOp','registerView','canDeleteRecord','unknown','undo','children','_syncSuperTables','beforeFieldId','fromCollab','_getViewRevision','_syncBaseUnit','_canEditTable','UTC','Start\x20date','Grid','function','groupFieldId','views','editCell','[BaseField]:\x20invalid\x20progress\x20value.','info','fromChangeset','MMM\x20D,\x20YYYY','afterViewId','options','base.command.create-base-record','[BaseField]:\x20invalid\x20date\x20value.','_matchesGanttColorRule','clearTablePermission','filter','parentFieldName','moveField','compare','workingDaysOnly','order','isInteger','embedId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','Parent','#FDE68A','deleteView','_projectGroups','base-snapshot-v1','_getCurrentUserId','BaseJson1.normalizeTables','_initDataSync','BaseProjection.projectTableRows','setPoint','\x20has\x20unsupported\x20target\x20\x22','bases.fieldConfig.textPlaceholder','default','SortedView','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','frozenFieldCount','gantt','_getAllTableIds','bases.remote.config','DD/MM/YYYY','base-perf','isNaN','_groupConfigCacheSegment','_kanbanLaneColor','getAllPermissionPoint','thread-comment.mutation.','title','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','trim','[BaseField]:\x20invalid\x20multi-value\x20reference.','_calendarEventColor','_toDirtyRangePatch','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','canDeleteTable','getStructuredDependencies','#,##0','getAllUnitsForType','then','getTypePlugin','_isNonEmptyCellValue','changes','initializeUnit','MaxDepth','isEmpty','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','policy','end','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','createdBy','target','Delete','_groupProjectionFieldIds','clearViewPermission','_isColorfulKanbanGroupField','dispose','IS_NOT_EMPTY','registerCommand','href','Gantt','sort','_resolveCalendarDateFieldId','base.mutation.set-permission-rules','Done','_assertFieldDefinition','none','commaPeriod','Remote','tableOrder','INIT','duplicateRecord','updateCell','conditionalColoring','leftPaneCollapsed','\x22\x20is\x20referenced\x20by\x20','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','base.command.set-permission','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','getUnitType','[BaseCommandService]:\x20cannot\x20edit\x20record.','orderKey','valueOf','base.command.change-base-field-type','key','decorate','focusUnit','count','getTime','h:mm\x20a','viewOrder','BaseDashboard','usableAsCalendarDate','_resolveGalleryCoverFieldId','nodes','regenerateViewIds','1.2.0','depthByRecordId','matchAll','readonly','_apply','createdAt','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','Formula','result','SingleSelect','#,##0.00','updateField','local','round','createCreateRecordOp','base.command.update-base-view-conditional-color-rules','decimalPlaces','_projectRows','http:','_resolveGanttDateFieldId','108438dgwhTS','\x20cannot\x20use\x20operator\x20\x22','done','_tablePermissions','value','LAST_MONTH','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','_activeDirtyManagerService','_check','formatToParts','toPrimitive','Doing','all','#16a34a','InvalidField','leftPaneWidth','getUnitId','_getCellRevision','endsWith','periodComma','NUMBER','_filterSortFieldIds','groups','Date1900','1500984rNkvqE','invalidateByField','invalid-characters','_createRecordWithDefaults','_createNumberingAllocators','hasOwnProperty','_projectFields','_title','_univerInstanceService','base.command.rename-base-view','registerCtorForType','createDefaultConfig','[RecordLink]:\x20field\x20config\x20is\x20invalid.','members','delete-view','base.fieldType.','getCapabilities','dateMode','_normalizeCalendarDisplayColor','too-long'];_0x2357=function(){return _0x337978;};return _0x2357();}const Xr=new Set([_0x19bf94[_0x354fcb(0x1ba)],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x19e)]]);function Zr(_0x4778b1){const _0x47b5ef=_0x354fcb;let _0x10ff0f=_0x4778b1['fields'][_0x4778b1[_0x47b5ef(0x4cf)]];if((!_0x10ff0f||_0x10ff0f[_0x47b5ef(0x1cb)]!==!0x0&&_0x10ff0f['id'][_0x47b5ef(0x4f1)]()!=='id'&&_0x10ff0f[_0x47b5ef(0x1e0)][_0x47b5ef(0x3bc)]()[_0x47b5ef(0x4f1)]()!=='id')&&_0x10ff0f)return _0x10ff0f['id'];for(let _0x4eb0c0 of _0x4778b1[_0x47b5ef(0x1e1)]){let _0x51d820=_0x4778b1['fields'][_0x4eb0c0];if(_0x51d820&&_0x51d820['id']!==_0x4778b1[_0x47b5ef(0x4cf)]&&_0x51d820[_0x47b5ef(0x1cb)]!==!0x0&&_0x51d820['type']!==_0x19bf94[_0x47b5ef(0x44f)])return _0x51d820['id'];}return _0x4778b1[_0x47b5ef(0x4cf)];}function Qr(_0x238677,_0x37bfa3=[],_0x43ade3=0x5){const _0x229bf1=_0x354fcb;let _0x3d1cd8=new Set(_0x37bfa3[_0x229bf1(0x397)](_0x194139=>!!_0x194139)),_0x3cc58b=[],_0x3c7d62=[];for(let _0x453103 of _0x238677[_0x229bf1(0x1e1)]){let _0x1df681=_0x238677['fields'][_0x453103];_0x1df681&&_0x1df681[_0x229bf1(0x1cb)]!==!0x0&&_0x1df681['type']!==_0x19bf94[_0x229bf1(0x44f)]&&!_0x3d1cd8['has'](_0x1df681['id'])&&(Xr['has'](_0x1df681[_0x229bf1(0x33a)])?_0x3cc58b:_0x3c7d62)[_0x229bf1(0x1f3)](_0x1df681['id']);}return[..._0x3cc58b,..._0x3c7d62][_0x229bf1(0x192)](0x0,_0x43ade3);}function $r(){const _0x1f0379=_0x354fcb;return[{'type':_0x2b4a2c[_0x1f0379(0x388)],'i18nKey':'base.viewType.grid','createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x2b4a2c['Kanban'],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x3c0724=>{const _0x29251b=_0x1f0379;let _0x8b937a=ei(_0x3c0724);return{'groupFieldId':_0x8b937a,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x3c0724['primaryFieldId'],'fieldIds':Qr(_0x3c0724,[_0x3c0724[_0x29251b(0x4cf)],_0x8b937a])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x17ec78=_0x1f0379;throw Error(_0x17ec78(0x472));}},{'type':_0x2b4a2c[_0x1f0379(0x4e8)],'i18nKey':_0x1f0379(0x28a),'createDefaultConfig':_0x2b624a=>{const _0x37478d=_0x1f0379;let _0x3eb9ae=ti(_0x2b624a);return{'startDateFieldId':_0x3eb9ae,'endDateFieldId':ni(_0x2b624a,_0x3eb9ae),'titleFieldId':_0x2b624a['primaryFieldId'],'mode':_0x37478d(0x19b),'timeslotSize':'medium','timeZone':_0x37478d(0x40a),'displayColor':{'type':_0x37478d(0x49d),'color':_0x37478d(0x478)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3167e9=_0x1f0379;throw Error(_0x3167e9(0x4b1));}},{'type':_0x2b4a2c[_0x1f0379(0x3da)],'i18nKey':_0x1f0379(0x316),'createDefaultConfig':_0x1d2e35=>{const _0x2f3905=_0x1f0379;let _0xfc90c4=ti(_0x1d2e35);return{'startDateFieldId':_0xfc90c4,'endDateFieldId':ni(_0x1d2e35,_0xfc90c4)??_0xfc90c4,'titleFieldId':_0x1d2e35[_0x2f3905(0x4cf)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x2f3905(0x49d),'color':_0x2f3905(0x1e3)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x14b5ac=_0x1f0379;throw Error(_0x14b5ac(0x464));}},{'type':_0x2b4a2c[_0x1f0379(0x17c)],'i18nKey':_0x1f0379(0x216),'createDefaultConfig':_0x1fdfd5=>{const _0x23ccbd=_0x1f0379;let _0x4f4bbc=Zr(_0x1fdfd5);return{'coverFieldId':null,'cardLayout':_0x23ccbd(0x445),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x4f4bbc,'coverFieldId':null,'fieldIds':Qr(_0x1fdfd5,[_0x4f4bbc,_0x1fdfd5[_0x23ccbd(0x4cf)]])},'cardSize':_0x23ccbd(0x524)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x163dad=_0x1f0379;throw Error(_0x163dad(0x4f9));}}];}function ei(_0x36e05f){const _0x30c78c=_0x354fcb;var _0x5f0dbb,_0x3872b7,_0x1686d1;let _0x107ea1=_0x36e05f[_0x30c78c(0x1e1)]['map'](_0x5146d0=>_0x36e05f[_0x30c78c(0x480)][_0x5146d0])[_0x30c78c(0x397)](_0x3451cf=>!!_0x3451cf);return((_0x5f0dbb=_0x107ea1['find'](_0x24244e=>_0x24244e['type']===_0x19bf94[_0x30c78c(0x407)]||_0x24244e['type']===_0x19bf94[_0x30c78c(0x283)]||_0x24244e[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x223)]))==null?void 0x0:_0x5f0dbb['id'])??((_0x3872b7=_0x107ea1[_0x30c78c(0x22f)](_0x504ac0=>_0x504ac0[_0x30c78c(0x33a)]===_0x19bf94['Text']))==null?void 0x0:_0x3872b7['id'])??((_0x1686d1=_0x107ea1[_0x30c78c(0x22f)](_0x4497ab=>_0x4497ab['type']===_0x19bf94[_0x30c78c(0x440)]||_0x4497ab['type']===_0x19bf94['CreatedAt']||_0x4497ab[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x347)]))==null?void 0x0:_0x1686d1['id'])??_0x36e05f[_0x30c78c(0x4cf)];}function ti(_0x459957){const _0xbf53c2=_0x354fcb;var _0xd007f3;return((_0xd007f3=_0x459957[_0xbf53c2(0x1e1)][_0xbf53c2(0x29b)](_0x4e3a97=>_0x459957[_0xbf53c2(0x480)][_0x4e3a97])[_0xbf53c2(0x22f)](ri))==null?void 0x0:_0xd007f3['id'])??'';}function ni(_0xe011d3,_0xf1542){const _0x267369=_0x354fcb;var _0xf575e1;return(_0xf575e1=_0xe011d3[_0x267369(0x1e1)][_0x267369(0x29b)](_0x30b005=>_0xe011d3['fields'][_0x30b005])['find'](_0x42944d=>ri(_0x42944d)&&_0x42944d['id']!==_0xf1542))==null?void 0x0:_0xf575e1['id'];}function ri(_0x456cd5){const _0x5b1db5=_0x354fcb;return!!_0x456cd5&&_0x456cd5[_0x5b1db5(0x33a)]===_0x19bf94[_0x5b1db5(0x440)]&&_0x456cd5[_0x5b1db5(0x401)]!==!0x0&&_0x456cd5['system']!==!0x0;}const ii=_0x5d0ae0('base.projection.service'),ai=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94[_0x354fcb(0x19c)],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x440)],_0x19bf94[_0x354fcb(0x253)],_0x19bf94['UpdatedAt'],_0x19bf94[_0x354fcb(0x19e)]]),oi=0x5265c00;let si=class extends _0x1589db{constructor(_0x33e195){const _0x4cdff4=_0x354fcb;super(),this['_fieldRegistry']=_0x33e195,G(this,_0x4cdff4(0x2b5),new Map()),G(this,_0x4cdff4(0x2fd),new WeakMap()),G(this,'_projectedRowsCache',new Map()),G(this,_0x4cdff4(0x456),new Map()),G(this,_0x4cdff4(0x4f6),new Map()),G(this,_0x4cdff4(0x44c),new Map()),G(this,'_globalRevision',0x0),G(this,_0x4cdff4(0x2e2),new Map()),G(this,_0x4cdff4(0x517),new Map()),G(this,_0x4cdff4(0x299),new Map()),G(this,_0x4cdff4(0x2a0),new Map());}[_0x354fcb(0x37b)](_0x1a11a3){const _0x5eb94d=_0x354fcb;return this['_views']['set'](_0x1a11a3[_0x5eb94d(0x33a)],_0x1a11a3),_0x5b4066(()=>this[_0x5eb94d(0x2b5)][_0x5eb94d(0x4f4)](_0x1a11a3['type']));}[_0x354fcb(0x455)](_0x1ab8c6,_0x22a20f,_0xde52f6){const _0x8c2891=_0x354fcb;var _0x2c4748,_0x3509bf,_0x53debf;return I(_0x8c2891(0x4ba),()=>{const _0x8ef8e6=_0x8c2891;let _0x300e95=this[_0x8ef8e6(0x202)](_0x1ab8c6,_0x22a20f,_0xde52f6);if(_0x300e95)return _0x300e95;let _0x4133ef=_0x1ab8c6[_0x8ef8e6(0x2ba)][_0x22a20f],_0x286ce8=_0x4133ef==null?void 0x0:_0x4133ef[_0x8ef8e6(0x38b)][_0xde52f6];if(!_0x4133ef||!_0x286ce8)return this['_setCachedProjection'](_0x1ab8c6,_0x22a20f,_0xde52f6,{'type':_0x8ef8e6(0x20e),'viewType':(_0x286ce8==null?void 0x0:_0x286ce8[_0x8ef8e6(0x33a)])??_0x2b4a2c[_0x8ef8e6(0x388)],'reason':_0x8ef8e6(0x4bf)});let _0x3f2aea;switch(_0x286ce8[_0x8ef8e6(0x33a)]){case _0x2b4a2c['Grid']:_0x3f2aea=this[_0x8ef8e6(0x187)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c[_0x8ef8e6(0x3da)]:_0x3f2aea=this[_0x8ef8e6(0x330)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Kanban']:_0x3f2aea=this[_0x8ef8e6(0x4a9)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Calendar']:_0x3f2aea=this[_0x8ef8e6(0x2d0)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Gallery']:_0x3f2aea=this[_0x8ef8e6(0x441)](_0x4133ef,_0x286ce8);break;default:_0x3f2aea={'type':'invalid','viewType':_0x286ce8[_0x8ef8e6(0x33a)],'reason':_0x8ef8e6(0x4bf)};}return this[_0x8ef8e6(0x20d)](_0x1ab8c6,_0x22a20f,_0xde52f6,_0x3f2aea);},{'tableId':_0x22a20f,'viewId':_0xde52f6,'viewType':(_0x2c4748=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null||(_0x2c4748=_0x2c4748[_0x8c2891(0x38b)][_0xde52f6])==null?void 0x0:_0x2c4748[_0x8c2891(0x33a)],'records':((_0x3509bf=_0x1ab8c6['tables'][_0x22a20f])==null||(_0x3509bf=_0x3509bf[_0x8c2891(0x22d)])==null?void 0x0:_0x3509bf['length'])??Object[_0x8c2891(0x51b)](((_0x53debf=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null?void 0x0:_0x53debf['records'])??{})[_0x8c2891(0x458)]});}[_0x354fcb(0x245)](_0x42df31,_0x348e50,_0x331b93){const _0x161a71=_0x354fcb;var _0x4880c5,_0x166ed3,_0x2de594;let _0x4b855a=_0x42df31[_0x161a71(0x2ba)][_0x348e50],_0x3575f9=_0x4b855a==null?void 0x0:_0x4b855a['views'][_0x331b93];if(!_0x4b855a||!_0x3575f9)throw Error(_0x161a71(0x49a)+_0x331b93+'\x22.');let _0x5c693c=_0x105a18=>!!_0x4b855a['fields'][_0x105a18],_0x28b6c2={..._0x3575f9,'filter':_0x3575f9[_0x161a71(0x397)]?{..._0x3575f9[_0x161a71(0x397)],'conditions':_0x3575f9[_0x161a71(0x397)][_0x161a71(0x309)][_0x161a71(0x397)](_0x2955ee=>_0x5c693c(_0x2955ee[_0x161a71(0x46e)]))}:_0x3575f9['filter'],'sort':(_0x4880c5=_0x3575f9[_0x161a71(0x3db)])==null?void 0x0:_0x4880c5[_0x161a71(0x397)](_0x2cf25a=>_0x5c693c(_0x2cf25a[_0x161a71(0x46e)])),'group':(_0x166ed3=_0x3575f9[_0x161a71(0x1b9)])==null?void 0x0:_0x166ed3['filter'](_0x1fa4ce=>_0x5c693c(_0x1fa4ce['fieldId'])),'fieldOrder':(_0x2de594=_0x3575f9[_0x161a71(0x1e1)])==null?void 0x0:_0x2de594['filter'](_0x5c693c),'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x3575f9[_0x161a71(0x484)]??{})[_0x161a71(0x397)](([_0x224bee])=>_0x5c693c(_0x224bee)))};if(_0x28b6c2[_0x161a71(0x33a)]===_0x161a71(0x2cd)){var _0x211c41;let _0x1f9ec6=_0x28b6c2[_0x161a71(0x342)]??{},_0x48ff08=this[_0x161a71(0x194)](_0x4b855a,_0x28b6c2),_0x3dffcb=this[_0x161a71(0x28c)](_0x4b855a,(_0x211c41=_0x1f9ec6[_0x161a71(0x510)])==null?void 0x0:_0x211c41[_0x161a71(0x345)]);_0x28b6c2[_0x161a71(0x342)]={..._0x1f9ec6,'groupFieldId':_0x48ff08??_0x1f9ec6[_0x161a71(0x38a)],'coverFieldId':this[_0x161a71(0x4c0)](_0x4b855a,_0x1f9ec6),'cardLayout':_0x1f9ec6[_0x161a71(0x28f)]==='compose'?'compose':_0x161a71(0x445),'showFieldNames':_0x1f9ec6[_0x161a71(0x1d9)]!==!0x1,'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x1f9ec6[_0x161a71(0x484)]??{})['filter'](([_0x3f634f])=>_0x5c693c(_0x3f634f))),'columnSettings':_0x1f9ec6[_0x161a71(0x4d4)]??{},'card':{..._0x1f9ec6['card']??{},'titleFieldId':_0x3dffcb,'fieldIds':this[_0x161a71(0x315)](_0x4b855a,_0x28b6c2,_0x48ff08??'',_0x3dffcb)}};}return{'repaired':JSON[_0x161a71(0x449)](_0x28b6c2)!==JSON[_0x161a71(0x449)](_0x3575f9),'view':_0x28b6c2};}[_0x354fcb(0x51e)](){const _0x2d4c00=_0x354fcb;this[_0x2d4c00(0x4f2)]++;}[_0x354fcb(0x520)](_0x53a72e,_0x5c288a,_0x11e80e){const _0x431a21=_0x354fcb;let _0x33e551=this[_0x431a21(0x423)](_0x53a72e)+0x1;this[_0x431a21(0x517)][_0x431a21(0x1a1)](_0x53a72e,_0x33e551);let _0x214821=this['_cellInvalidations'][_0x431a21(0x4a8)](_0x53a72e)??[];_0x214821[_0x431a21(0x1f3)]({'revision':_0x33e551,'recordId':_0x5c288a,'fieldId':_0x11e80e}),this[_0x431a21(0x299)][_0x431a21(0x1a1)](_0x53a72e,_0x214821);}[_0x354fcb(0x42b)](_0x27db65,_0x18e5c9){const _0x1354a3=_0x354fcb;this[_0x1354a3(0x2b2)](_0x27db65);}['invalidateByView'](_0x360d86,_0x10bd2d){const _0x4ffd9e=_0x354fcb;this[_0x4ffd9e(0x2a0)][_0x4ffd9e(0x1a1)](this[_0x4ffd9e(0x1f2)](_0x360d86,_0x10bd2d),this[_0x4ffd9e(0x383)](_0x360d86,_0x10bd2d)+0x1);}['_getCachedProjection'](_0x29e266,_0xad3551,_0x5823ef){const _0x46c317=_0x354fcb;var _0x178ed9;let _0x447e88=(_0x178ed9=this[_0x46c317(0x2fd)]['get'](_0x29e266))==null?void 0x0:_0x178ed9[_0x46c317(0x4a8)](this[_0x46c317(0x1ee)](_0xad3551,_0x5823ef));return _0x447e88&&_0x447e88[_0x46c317(0x26d)]===this[_0x46c317(0x4f2)]&&_0x447e88['tableRevision']===this[_0x46c317(0x362)](_0xad3551)&&_0x447e88[_0x46c317(0x1e4)]===this[_0x46c317(0x423)](_0xad3551)&&_0x447e88['viewRevision']===this[_0x46c317(0x383)](_0xad3551,_0x5823ef)?_0x447e88[_0x46c317(0x48f)]:null;}[_0x354fcb(0x20d)](_0x27db7d,_0x1acded,_0x460ede,_0x373c40){const _0x4fd63e=_0x354fcb;let _0x56fa56=this[_0x4fd63e(0x2fd)][_0x4fd63e(0x4a8)](_0x27db7d);return _0x56fa56||(_0x56fa56=new Map(),this[_0x4fd63e(0x2fd)][_0x4fd63e(0x1a1)](_0x27db7d,_0x56fa56)),_0x56fa56[_0x4fd63e(0x1a1)](this[_0x4fd63e(0x1ee)](_0x1acded,_0x460ede),{'projection':_0x373c40,'globalRevision':this[_0x4fd63e(0x4f2)],'tableRevision':this[_0x4fd63e(0x362)](_0x1acded),'cellRevision':this[_0x4fd63e(0x423)](_0x1acded),'viewRevision':this[_0x4fd63e(0x383)](_0x1acded,_0x460ede)}),_0x373c40;}[_0x354fcb(0x2b2)](_0x707279){const _0x980038=_0x354fcb;this['_tableRevisions']['set'](_0x707279,this[_0x980038(0x362)](_0x707279)+0x1);}[_0x354fcb(0x362)](_0x5f172f){const _0x4a894b=_0x354fcb;return this[_0x4a894b(0x2e2)][_0x4a894b(0x4a8)](_0x5f172f)??0x0;}[_0x354fcb(0x423)](_0x29551e){const _0x5cee30=_0x354fcb;return this[_0x5cee30(0x517)][_0x5cee30(0x4a8)](_0x29551e)??0x0;}[_0x354fcb(0x383)](_0x4b35b9,_0x564b5d){const _0x2bebe3=_0x354fcb;return this[_0x2bebe3(0x2a0)][_0x2bebe3(0x4a8)](this[_0x2bebe3(0x1f2)](_0x4b35b9,_0x564b5d))??0x0;}[_0x354fcb(0x1ee)](_0x465618,_0x16993f){return _0x465618+'\x00'+_0x16993f;}[_0x354fcb(0x1d6)](_0x1bb6ad,_0x4129e4){const _0x28ab0b=_0x354fcb;return _0x1bb6ad+'\x00'+this[_0x28ab0b(0x262)](_0x4129e4);}['_groupsCacheKey'](_0x4e898a,_0x56fcb1,_0x1b832c){const _0x2d9f9f=_0x354fcb;return _0x4e898a+'\x00'+this[_0x2d9f9f(0x262)](_0x56fcb1)+'\x00'+this['_groupConfigCacheSegment'](_0x1b832c);}[_0x354fcb(0x262)](_0x2861e4){const _0x12e424=_0x354fcb;return _0x2861e4?mi({'filter':di(_0x2861e4[_0x12e424(0x397)]),'sort':pi(_0x2861e4[_0x12e424(0x3db)])}):'__all__';}[_0x354fcb(0x3b6)](_0x1a6cd0){const _0x407a9e=_0x354fcb;return mi(_0x1a6cd0['map'](_0xf444e=>({'fieldId':_0xf444e[_0x407a9e(0x46e)],'direction':_0xf444e['direction']??null})));}[_0x354fcb(0x1f2)](_0x90c919,_0x59fc11){return _0x90c919+'\x00'+_0x59fc11;}[_0x354fcb(0x187)](_0x1b9a1f,_0x76ef6e){const _0x38f4f5=_0x354fcb;var _0x38ca48;let _0x304f71=Je(_0x1b9a1f),_0x46a51e=this[_0x38f4f5(0x40f)](_0x1b9a1f,_0x76ef6e),_0x1ca098=(_0x38ca48=_0x76ef6e[_0x38f4f5(0x397)])!=null&&_0x38ca48[_0x38f4f5(0x309)][_0x38f4f5(0x458)]?this[_0x38f4f5(0x40f)](_0x1b9a1f,{..._0x76ef6e,'filter':null}):_0x46a51e,_0x1b7114=nt(this[_0x38f4f5(0x259)](_0x1b9a1f,_0x304f71,_0x76ef6e['id'],_0x1ca098[_0x38f4f5(0x29b)](_0x4f93b4=>_0x4f93b4['recordId'])),_0x1ca098,new Set(_0x46a51e[_0x38f4f5(0x29b)](_0x439557=>_0x439557[_0x38f4f5(0x4bb)])));return{'type':_0x2b4a2c[_0x38f4f5(0x388)],'fields':this[_0x38f4f5(0x430)](_0x1b9a1f,_0x76ef6e),'rows':_0x1b7114[_0x38f4f5(0x490)],'groups':this['_projectHierarchyGroups'](_0x1b9a1f,_0x76ef6e,_0x1b7114[_0x38f4f5(0x490)],_0x1b7114[_0x38f4f5(0x51a)]),'hierarchy':_0x1b7114['hierarchy'],'frozenFieldCount':typeof _0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]==_0x38f4f5(0x256)?_0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]:0x0};}[_0x354fcb(0x259)](_0x2222f4,_0x2d1b0d,_0x38a9c2,_0x49360c){const _0x488dc6=_0x354fcb;let _0x1d7715=_0x2222f4['id']+'\x00'+_0x2d1b0d+'\x00'+_0x38a9c2,_0x1d2765=this[_0x488dc6(0x423)](_0x2222f4['id']),_0x27740f=this['_hierarchyIndexCache']['get'](_0x1d7715);if(_0x27740f&&_0x27740f['globalRevision']===this['_globalRevision']&&_0x27740f[_0x488dc6(0x306)]===this['_getTableRevision'](_0x2222f4['id'])&&_0x27740f['orderedRecordIds']['length']===_0x49360c[_0x488dc6(0x458)]&&_0x27740f[_0x488dc6(0x1a3)][_0x488dc6(0x1b6)]((_0x4aab50,_0x4f3df2)=>_0x4aab50===_0x49360c[_0x4f3df2])){if(_0x27740f['cellRevision']===_0x1d2765&&_0x27740f[_0x488dc6(0x513)]===_0x2222f4)return _0x27740f[_0x488dc6(0x250)];if(!this[_0x488dc6(0x2b8)](_0x2222f4['id'],_0x27740f[_0x488dc6(0x1e4)],_0x1d2765,new Set([_0x2d1b0d])))return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{..._0x27740f,'table':_0x2222f4,'cellRevision':_0x1d2765}),_0x27740f[_0x488dc6(0x250)];}let _0x1842c6=tt(_0x2222f4,_0x2d1b0d,_0x49360c);return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{'table':_0x2222f4,'index':_0x1842c6,'orderedRecordIds':_0x49360c,'globalRevision':this[_0x488dc6(0x4f2)],'tableRevision':this['_getTableRevision'](_0x2222f4['id']),'cellRevision':_0x1d2765}),_0x1842c6;}['_projectHierarchyGroups'](_0x3d740c,_0x1bc281,_0x396e4a,_0x1867d9){const _0x1bfcf3=_0x354fcb;var _0x25aece;if(!((_0x25aece=_0x1bc281[_0x1bfcf3(0x1b9)])!=null&&_0x25aece['length']))return[];let _0x31b1d5=new Map(_0x396e4a[_0x1bfcf3(0x29b)](_0x509472=>[_0x509472[_0x1bfcf3(0x4bb)],_0x509472])),_0x298754=_0x1867d9['rootRecordIds'][_0x1bfcf3(0x2a2)](_0x17e90e=>{const _0x41c302=_0x1bfcf3;let _0x2d1ea7=_0x31b1d5[_0x41c302(0x4a8)](_0x17e90e);return _0x2d1ea7?[_0x2d1ea7]:[];}),_0x244969=this[_0x1bfcf3(0x3a3)](_0x3d740c,_0x1bc281,_0x298754),_0x3a90b5=new Map(_0x1867d9[_0x1bfcf3(0x1a3)]['map']((_0x9e9eee,_0x4647b1)=>[_0x9e9eee,_0x4647b1])),_0x43d328=_0x2a8467=>{const _0x2b57dc=_0x1bfcf3;let _0x36256a=_0x1867d9['nodes'][_0x2a8467],_0x385fa9=_0x3a90b5[_0x2b57dc(0x4a8)](_0x2a8467)??-0x1;return _0x385fa9<0x0||!_0x36256a?[]:_0x1867d9[_0x2b57dc(0x1a3)][_0x2b57dc(0x192)](_0x385fa9,_0x36256a['subtreeEndIndex']+0x1);},_0x3af8cc=_0x17507e=>{const _0x497da9=_0x1bfcf3;var _0x149bb8,_0x3e1c7f;return{..._0x17507e,'recordIds':(_0x149bb8=_0x17507e[_0x497da9(0x37f)])!=null&&_0x149bb8[_0x497da9(0x458)]?_0x17507e[_0x497da9(0x51f)]:_0x17507e[_0x497da9(0x51f)]['flatMap'](_0x43d328),'children':(_0x3e1c7f=_0x17507e['children'])==null?void 0x0:_0x3e1c7f[_0x497da9(0x29b)](_0x3af8cc)};};return _0x244969['map'](_0x3af8cc);}[_0x354fcb(0x4a9)](_0x3da628,_0x7e5b25){const _0x4061bf=_0x354fcb;var _0x3a4a75;let _0x4c5055=this[_0x4061bf(0x194)](_0x3da628,_0x7e5b25),_0x340a3e=_0x4c5055?_0x3da628[_0x4061bf(0x480)][_0x4c5055]:void 0x0;if(!_0x340a3e)return{'type':_0x4061bf(0x20e),'viewType':_0x2b4a2c[_0x4061bf(0x4ce)],'reason':_0x4061bf(0x492),'fieldId':_0x7e5b25[_0x4061bf(0x342)]['groupFieldId']};let _0x5cc3e6=this[_0x4061bf(0x40f)](_0x3da628,_0x7e5b25),_0x3f9e26=this[_0x4061bf(0x430)](_0x3da628,_0x7e5b25),_0x5a441c=_0x7e5b25[_0x4061bf(0x342)]??{},_0x457c3b=this[_0x4061bf(0x28c)](_0x3da628,(_0x3a4a75=_0x5a441c[_0x4061bf(0x510)])==null?void 0x0:_0x3a4a75[_0x4061bf(0x345)]),_0x1c78f3=this[_0x4061bf(0x315)](_0x3da628,_0x7e5b25,_0x340a3e['id'],_0x457c3b),_0x4c7bb1=new Map();if(F(_0x3da628,_0x340a3e['id'])){let _0x5aba63=this[_0x4061bf(0x259)](_0x3da628,_0x340a3e['id'],_0x7e5b25['id'],_0x5cc3e6[_0x4061bf(0x29b)](_0x1b6c71=>_0x1b6c71[_0x4061bf(0x4bb)])),_0x49636e=new Map();return _0x5cc3e6[_0x4061bf(0x461)](_0x2f851e=>{const _0x4cd98f=_0x4061bf;let _0x504761=_0x5aba63[_0x4cd98f(0x36e)][_0x4cd98f(0x4a8)](_0x2f851e[_0x4cd98f(0x4bb)])??null,_0x3915bd=_0x504761??'',_0x40b8d8=_0x504761?_0x3da628[_0x4cd98f(0x45a)][_0x504761]:void 0x0,_0x9fd1f5=_0x49636e['get'](_0x3915bd)??{'key':_0x3915bd,'title':_0x40b8d8?String(yt(_0x3da628,_0x40b8d8['id'],_0x3da628['primaryFieldId'])??_0x504761):this[_0x4cd98f(0x272)](_0x340a3e,_0x3915bd,_0x5a441c),'recordIds':[]};_0x9fd1f5[_0x4cd98f(0x51f)][_0x4cd98f(0x1f3)](_0x2f851e[_0x4cd98f(0x4bb)]),_0x49636e['set'](_0x3915bd,_0x9fd1f5);}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':[],'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this[_0x4061bf(0x4c0)](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]==='compose'?_0x4061bf(0x1fb):_0x4061bf(0x445),'showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':['',..._0x5aba63[_0x4061bf(0x1a3)]][_0x4061bf(0x2a2)](_0x26662f=>{const _0x5bac6b=_0x4061bf;let _0x1de35f=_0x49636e['get'](_0x26662f);return _0x1de35f!=null&&_0x1de35f[_0x5bac6b(0x51f)][_0x5bac6b(0x458)]?[_0x1de35f]:[];})};}return this[_0x4061bf(0x1a0)](_0x340a3e,_0x5a441c)['forEach'](_0x5af4e2=>_0x4c7bb1[_0x4061bf(0x1a1)](_0x5af4e2['key'],{..._0x5af4e2,'recordIds':[]})),_0x5cc3e6[_0x4061bf(0x461)](_0x5ce558=>{const _0x101fa9=_0x4061bf;this[_0x101fa9(0x1a7)](_0x340a3e,_0x5ce558['values'][_0x340a3e['id']])[_0x101fa9(0x461)](_0x2a0c47=>{const _0x55ced2=_0x101fa9;let _0x48ff0a=_0x4c7bb1['get'](_0x2a0c47)??{'key':_0x2a0c47,'title':this[_0x55ced2(0x272)](_0x340a3e,_0x2a0c47,_0x5a441c),'color':this[_0x55ced2(0x3b7)](_0x340a3e,_0x2a0c47,_0x5a441c),'recordIds':[]};_0x48ff0a['recordIds'][_0x55ced2(0x1f3)](_0x5ce558[_0x55ced2(0x4bb)]),_0x4c7bb1[_0x55ced2(0x1a1)](_0x2a0c47,_0x48ff0a);});}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':this[_0x4061bf(0x3a3)](_0x3da628,_0x7e5b25,_0x5cc3e6),'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]===_0x4061bf(0x1fb)?_0x4061bf(0x1fb):'normal','showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':Array['from'](_0x4c7bb1['values']())};}[_0x354fcb(0x194)](_0x526e2a,_0x56a523){const _0x55e4bd=_0x354fcb;var _0x317db2;let _0x4c0015=(_0x317db2=_0x56a523['config'])==null?void 0x0:_0x317db2['groupFieldId'];return _0x4c0015&&this[_0x55e4bd(0x337)](_0x526e2a,_0x4c0015)?_0x4c0015:this[_0x55e4bd(0x24f)](_0x526e2a,_0x1cf316=>this[_0x55e4bd(0x32e)](_0x1cf316));}['_findKanbanGroupField'](_0x53eed0,_0x250ec7){const _0x1016e4=_0x354fcb;for(let _0x4da37c of _0x53eed0[_0x1016e4(0x1e1)]){let _0x29e918=_0x53eed0[_0x1016e4(0x480)][_0x4da37c];if(_0x29e918&&_0x250ec7(_0x29e918))return _0x29e918['id'];}return null;}[_0x354fcb(0x337)](_0x3f2e6e,_0x40e919){const _0x374fe7=_0x354fcb;let _0x2c5eeb=_0x3f2e6e['fields'][_0x40e919];return this[_0x374fe7(0x32e)](_0x2c5eeb)||F(_0x3f2e6e,_0x40e919);}['_isAllowedKanbanGroupField'](_0x4d13e8){const _0x34f97a=_0x354fcb;return!!_0x4d13e8&&(_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x407)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x283)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x4c5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x1e5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x223)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x19e)]);}[_0x354fcb(0x3d5)](_0x1c0026){const _0x3832ed=_0x354fcb;return _0x1c0026[_0x3832ed(0x33a)]===_0x19bf94['SingleSelect']||_0x1c0026['type']===_0x19bf94[_0x3832ed(0x283)];}[_0x354fcb(0x4c0)](_0x576e05,_0x245baa){const _0x110539=_0x354fcb;var _0x3a8e80;let _0x263c65=_0x245baa[_0x110539(0x4f8)]??((_0x3a8e80=_0x245baa[_0x110539(0x510)])==null?void 0x0:_0x3a8e80[_0x110539(0x4f8)])??null;if(!_0x263c65)return null;let _0x37ef5f=_0x576e05[_0x110539(0x480)][_0x263c65];return _0x37ef5f&&this[_0x110539(0x466)](_0x37ef5f)['usableAsCardCover']?_0x37ef5f['id']:null;}[_0x354fcb(0x315)](_0x1d47e8,_0x460f15,_0x5cd33f,_0x49c44e=this['_resolveCardTitleFieldId'](_0x1d47e8,((()=>{const _0x1555b4=_0x354fcb;var _0x3d2408;return(_0x3d2408=_0x460f15[_0x1555b4(0x342)])==null||(_0x3d2408=_0x3d2408[_0x1555b4(0x510)])==null?void 0x0:_0x3d2408[_0x1555b4(0x345)];})()))){const _0x4fa209=_0x354fcb;var _0x58c1a2;let _0x3145b5=_0x460f15[_0x4fa209(0x342)]??{},_0x5ce1b6=(_0x58c1a2=_0x3145b5['card'])!=null&&(_0x58c1a2=_0x58c1a2[_0x4fa209(0x227)])!=null&&_0x58c1a2[_0x4fa209(0x458)]?_0x3145b5[_0x4fa209(0x510)]['fieldIds']:Qr(_0x1d47e8,[_0x49c44e,_0x1d47e8[_0x4fa209(0x4cf)],_0x5cd33f]),_0x4721af=_0x3145b5[_0x4fa209(0x484)]??{};return _0x5ce1b6[_0x4fa209(0x397)](_0x2e6e4f=>{const _0x43e3b9=_0x4fa209;var _0x12cbcb,_0x3a12d3;let _0x3a23d3=_0x1d47e8[_0x43e3b9(0x480)][_0x2e6e4f];return!(!_0x3a23d3||_0x3a23d3[_0x43e3b9(0x1cb)]===!0x0||_0x3a23d3['type']===_0x19bf94[_0x43e3b9(0x44f)]||_0x3a23d3['id']===_0x5cd33f||_0x3a23d3['id']===_0x49c44e||(_0x12cbcb=_0x460f15['fieldSettings'])!=null&&(_0x12cbcb=_0x12cbcb[_0x2e6e4f])!=null&&_0x12cbcb[_0x43e3b9(0x1ce)]||(_0x3a12d3=_0x4721af[_0x2e6e4f])!=null&&_0x3a12d3[_0x43e3b9(0x1ce)]);})[_0x4fa209(0x3db)]((_0x13b0a3,_0x5c79f0)=>{const _0x21e589=_0x4fa209;var _0xbf4cca,_0x10bb11;return(((_0xbf4cca=_0x4721af[_0x13b0a3])==null?void 0x0:_0xbf4cca[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x13b0a3))-(((_0x10bb11=_0x4721af[_0x5c79f0])==null?void 0x0:_0x10bb11[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x5c79f0));});}[_0x354fcb(0x1a0)](_0x41b42b,_0x19affb){const _0x45511a=_0x354fcb;var _0x298fe9;let _0x9949d3=(Array['isArray']((_0x298fe9=_0x41b42b['config'])==null?void 0x0:_0x298fe9[_0x45511a(0x392)])?_0x41b42b[_0x45511a(0x342)][_0x45511a(0x392)]:[])[_0x45511a(0x2a2)]((_0x58c872,_0x394814)=>{const _0x4c3cf9=_0x45511a;if(_0x58c872==null)return[];let _0x12b259=typeof _0x58c872==_0x4c3cf9(0x471)?{'id':_0x58c872,'name':_0x58c872,'color':void 0x0}:_0x58c872,_0x5cf37e=String(_0x12b259['id']??_0x12b259[_0x4c3cf9(0x1e0)]??_0x4c3cf9(0x2d3)+(_0x394814+0x1));return[{'key':_0x5cf37e,'title':String(_0x12b259[_0x4c3cf9(0x1e0)]??_0x12b259['id']??_0x5cf37e),'color':this['_kanbanLaneColor'](_0x41b42b,_0x5cf37e,_0x19affb)}];});return Object[_0x45511a(0x1e2)](_0x19affb[_0x45511a(0x4d4)]??{})['forEach'](([_0x42dd43,_0x56dda4])=>{const _0xff6424=_0x45511a;_0x9949d3[_0xff6424(0x257)](_0x10c6b7=>_0x10c6b7[_0xff6424(0x3f2)]===_0x42dd43)||_0x9949d3[_0xff6424(0x1f3)]({'key':_0x42dd43,'title':this['_isColorfulKanbanGroupField'](_0x41b42b)?_0x56dda4[_0xff6424(0x3ba)]??this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb):this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb),'color':this[_0xff6424(0x3b7)](_0x41b42b,_0x42dd43,_0x19affb)});}),_0x9949d3;}[_0x354fcb(0x1a7)](_0x5c9d32,_0x2b8ff8){const _0x517130=_0x354fcb;let _0x5d4e25=_0x320f7e=>{var _0x2c9f9d;let _0x3cc6c6=_0x320f7e==null?'':String(_0x320f7e);return!_0x3cc6c6||!this['_isColorfulKanbanGroupField'](_0x5c9d32)?_0x3cc6c6:((_0x2c9f9d=Li(_0x5c9d32,_0x3cc6c6))==null?void 0x0:_0x2c9f9d['id'])??_0x3cc6c6;};if(Array['isArray'](_0x2b8ff8)){let _0x5a119c=_0x2b8ff8['map'](_0x5d4e25)[_0x517130(0x397)](_0x3d8027=>_0x3d8027!=='');return _0x5a119c[_0x517130(0x458)]?_0x5a119c:[''];}return[_0x5d4e25(_0x2b8ff8)];}[_0x354fcb(0x272)](_0xf3bb85,_0xa54c9,_0x55c118){const _0x4669b3=_0x354fcb;if(!_0xa54c9)return _0x4669b3(0x504);let _0x28500b=Li(_0xf3bb85,_0xa54c9);return(_0x28500b==null?void 0x0:_0x28500b[_0x4669b3(0x1e0)])??_0xa54c9;}[_0x354fcb(0x3b7)](_0x2f12af,_0x475ebf,_0x399cf7){const _0x2e8b91=_0x354fcb;var _0x230112;if(this[_0x2e8b91(0x3d5)](_0x2f12af))return(_0x230112=Li(_0x2f12af,_0x475ebf))==null?void 0x0:_0x230112[_0x2e8b91(0x190)];}['_buildCalendar'](_0x112f5c,_0x469944){const _0x2244b9=_0x354fcb;let _0x23dc42=this[_0x2244b9(0x34a)](_0x112f5c,_0x469944[_0x2244b9(0x342)]??{}),_0x3595f3=_0x112f5c[_0x2244b9(0x480)][_0x23dc42['startDateFieldId']];if(!_0x3595f3||_0x3595f3['type']!==_0x19bf94[_0x2244b9(0x440)]||_0x3595f3[_0x2244b9(0x401)]===!0x0||_0x3595f3[_0x2244b9(0x1cb)]===!0x0||!this[_0x2244b9(0x466)](_0x3595f3)[_0x2244b9(0x3fa)])return{'type':'invalid','viewType':_0x2b4a2c[_0x2244b9(0x4e8)],'reason':'invalidDateField','fieldId':_0x23dc42[_0x2244b9(0x240)]};let _0x5f0bf0=_0x23dc42[_0x2244b9(0x171)]?_0x112f5c[_0x2244b9(0x480)][_0x23dc42[_0x2244b9(0x171)]]:void 0x0,_0x3a8d7b=this[_0x2244b9(0x40f)](_0x112f5c,_0x469944);return{'type':_0x2b4a2c[_0x2244b9(0x4e8)],'config':_0x23dc42,'fields':this[_0x2244b9(0x430)](_0x112f5c,_0x469944),'rows':_0x3a8d7b,'groups':this[_0x2244b9(0x3a3)](_0x112f5c,_0x469944,_0x3a8d7b),'events':_0x3a8d7b[_0x2244b9(0x2a2)](_0x16dcf3=>{const _0xbc04fd=_0x2244b9;let _0x16a5e4=dn(_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x240)]]);if(!Number[_0xbc04fd(0x2c3)](_0x16a5e4))return[];let _0x21c424=_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42['startDateFieldId']],_0x1d2f8c=_0x23dc42[_0xbc04fd(0x171)]==null?void 0x0:_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x171)]],_0x462f37=_0x23dc42['endDateFieldId']==null?void 0x0:dn(_0x1d2f8c),_0x41a05c=Number[_0xbc04fd(0x2c3)](_0x462f37)?_0x462f37:void 0x0;return[{'recordId':_0x16dcf3[_0xbc04fd(0x4bb)],'title':this[_0xbc04fd(0x431)](_0x112f5c,_0x16dcf3,_0x23dc42[_0xbc04fd(0x345)]),'start':_0x16a5e4,'end':_0x41a05c,'color':this[_0xbc04fd(0x3be)](_0x112f5c,_0x16dcf3,_0x23dc42),'startMs':_0x16a5e4,'endMs':_0x41a05c,'allDay':this['_isAllDayCalendarEvent'](_0x3595f3,_0x5f0bf0,_0x21c424,_0x1d2f8c),'fieldValues':_0x16dcf3[_0xbc04fd(0x1da)]}];})};}[_0x354fcb(0x34a)](_0x3d17cb,_0x12d143){const _0x7cc3cd=_0x354fcb;let _0x58aeac=this[_0x7cc3cd(0x3dc)](_0x3d17cb,_0x12d143['startDateFieldId']),_0x5def45=_0x12d143[_0x7cc3cd(0x171)]&&this[_0x7cc3cd(0x1ef)](_0x3d17cb,_0x12d143[_0x7cc3cd(0x171)])?_0x12d143[_0x7cc3cd(0x171)]:this['_findCalendarDateFieldId'](_0x3d17cb,_0x58aeac)??void 0x0,_0x573b64=_0x12d143[_0x7cc3cd(0x345)]?_0x3d17cb[_0x7cc3cd(0x480)][_0x12d143[_0x7cc3cd(0x345)]]:void 0x0,_0x2c8796=_0x573b64&&_0x573b64[_0x7cc3cd(0x1cb)]!==!0x0&&_0x573b64[_0x7cc3cd(0x33a)]!==_0x19bf94[_0x7cc3cd(0x44f)]?_0x12d143[_0x7cc3cd(0x345)]:_0x3d17cb['primaryFieldId'],_0x73bf5d=_0x12d143[_0x7cc3cd(0x31b)]==='day'||_0x12d143[_0x7cc3cd(0x31b)]===_0x7cc3cd(0x1fc)?_0x12d143[_0x7cc3cd(0x31b)]:_0x7cc3cd(0x19b),_0x357ff7=_0x12d143[_0x7cc3cd(0x4be)]===_0x7cc3cd(0x2ea)||_0x12d143['timeslotSize']===_0x7cc3cd(0x1b7)?_0x12d143['timeslotSize']:'medium',_0x1b0e76=typeof _0x12d143[_0x7cc3cd(0x50d)]==_0x7cc3cd(0x471)&&_0x12d143[_0x7cc3cd(0x50d)][_0x7cc3cd(0x3bc)]()?_0x12d143[_0x7cc3cd(0x50d)]:'local',_0x278035=this[_0x7cc3cd(0x43c)](_0x3d17cb,_0x12d143);return{..._0x12d143,'startDateFieldId':_0x58aeac,'endDateFieldId':_0x5def45,'titleFieldId':_0x2c8796,'mode':_0x73bf5d,'timeslotSize':_0x357ff7,'timeZone':_0x1b0e76,'displayColor':_0x278035,'fieldSettings':Object[_0x7cc3cd(0x2e8)](Object[_0x7cc3cd(0x1e2)](_0x12d143[_0x7cc3cd(0x484)]??{})[_0x7cc3cd(0x397)](([_0x5a9898])=>{const _0x33b671=_0x7cc3cd;let _0x33fc0a=_0x3d17cb[_0x33b671(0x480)][_0x5a9898];return!!(_0x33fc0a&&_0x33fc0a[_0x33b671(0x1cb)]!==!0x0&&_0x33fc0a['type']!==_0x19bf94[_0x33b671(0x44f)]);}))};}[_0x354fcb(0x3dc)](_0x587c79,_0x4c03dd){const _0x5ee6b8=_0x354fcb;return _0x4c03dd&&this[_0x5ee6b8(0x1ef)](_0x587c79,_0x4c03dd)?_0x4c03dd:this[_0x5ee6b8(0x460)](_0x587c79)??_0x4c03dd??'';}[_0x354fcb(0x460)](_0x4f33a3,_0x982623){const _0x583f7f=_0x354fcb;for(let _0x12c171 of _0x4f33a3[_0x583f7f(0x1e1)])if(_0x12c171!==_0x982623&&this[_0x583f7f(0x1ef)](_0x4f33a3,_0x12c171))return _0x12c171;return null;}['_isCalendarDateField'](_0x266bc8,_0x1254ca){const _0x2427e1=_0x354fcb;let _0x3d20d8=_0x266bc8[_0x2427e1(0x480)][_0x1254ca];return!!_0x3d20d8&&_0x3d20d8[_0x2427e1(0x33a)]===_0x19bf94[_0x2427e1(0x440)]&&_0x3d20d8['readonly']!==!0x0&&_0x3d20d8['system']!==!0x0&&this[_0x2427e1(0x466)](_0x3d20d8)[_0x2427e1(0x3fa)];}['_normalizeCalendarDisplayColor'](_0x3c4a32,_0x31a7f1){const _0x3ac245=_0x354fcb;let _0x2c4e35=_0x31a7f1[_0x3ac245(0x326)];if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='selectField'){let _0x1b2004=_0x3c4a32[_0x3ac245(0x480)][_0x2c4e35['fieldId']];if(_0x1b2004&&_0x1b2004['type']===_0x19bf94[_0x3ac245(0x407)])return _0x2c4e35;}if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='custom'&&typeof _0x2c4e35[_0x3ac245(0x190)]==_0x3ac245(0x471)&&_0x2c4e35[_0x3ac245(0x190)][_0x3ac245(0x3bc)]())return{'type':'custom','color':_0x2c4e35[_0x3ac245(0x190)]};if(_0x31a7f1[_0x3ac245(0x522)]){let _0x4d6122=_0x3c4a32['fields'][_0x31a7f1['colorFieldId']];if(_0x4d6122&&_0x4d6122[_0x3ac245(0x33a)]===_0x19bf94[_0x3ac245(0x407)])return{'type':'selectField','fieldId':_0x31a7f1[_0x3ac245(0x522)]};}return{'type':_0x3ac245(0x49d),'color':_0x3ac245(0x478)};}['_calendarEventColor'](_0x184547,_0xb1d363,_0x510452){const _0x3536c8=_0x354fcb;let _0x429c9d=_0x510452['displayColor'];if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x31f)){var _0x1ed0d2;let _0x21551e=_0x184547[_0x3536c8(0x480)][_0x429c9d['fieldId']];if(!_0x21551e)return;let _0x621684=_0xb1d363[_0x3536c8(0x1da)][_0x429c9d[_0x3536c8(0x46e)]],_0x24c6c4=Array[_0x3536c8(0x354)](_0x621684)?_0x621684[0x0]:_0x621684;return _0x24c6c4==null||(_0x1ed0d2=Li(_0x21551e,String(_0x24c6c4)))==null?void 0x0:_0x1ed0d2[_0x3536c8(0x190)];}if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x49d))return _0x429c9d[_0x3536c8(0x190)];}['_isAllDayCalendarEvent'](_0x397915,_0x1823b0,_0x31dc1d,_0x3c3917){const _0x1fbb87=_0x354fcb;var _0x9ccc80,_0x3cdd3d;let _0x5d3a7d=((_0x9ccc80=_0x397915[_0x1fbb87(0x342)])==null?void 0x0:_0x9ccc80[_0x1fbb87(0x501)])===!0x0,_0x47f987=(_0x1823b0==null||(_0x3cdd3d=_0x1823b0[_0x1fbb87(0x342)])==null?void 0x0:_0x3cdd3d['includeTime'])===!0x0;return!_0x5d3a7d&&!_0x47f987;}['_isAllDayGanttDateRange'](_0x5c7488,_0x2eee87){const _0x1250fa=_0x354fcb;var _0xb9c740,_0x2a5dc3;let _0xe57f63=((_0xb9c740=_0x5c7488[_0x1250fa(0x342)])==null?void 0x0:_0xb9c740['includeTime'])===!0x0,_0x2287aa=((_0x2a5dc3=_0x2eee87[_0x1250fa(0x342)])==null?void 0x0:_0x2a5dc3[_0x1250fa(0x501)])===!0x0;return!_0xe57f63&&!_0x2287aa;}[_0x354fcb(0x330)](_0x47acda,_0x22887c){const _0x3f0c29=_0x354fcb;let _0x205b5d=this[_0x3f0c29(0x230)](_0x47acda,_0x22887c[_0x3f0c29(0x342)]),_0x28084e=_0x47acda[_0x3f0c29(0x480)][_0x205b5d['startDateFieldId']];if(!_0x28084e||_0x28084e[_0x3f0c29(0x33a)]!==_0x19bf94[_0x3f0c29(0x440)]||_0x28084e[_0x3f0c29(0x401)]===!0x0||_0x28084e['system']===!0x0||!this[_0x3f0c29(0x466)](_0x28084e)[_0x3f0c29(0x4da)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':'invalidGanttStartField','fieldId':_0x205b5d[_0x3f0c29(0x240)]};let _0x2f7ab0=_0x47acda['fields'][_0x205b5d['endDateFieldId']];if(!_0x2f7ab0||_0x2f7ab0['type']!==_0x19bf94[_0x3f0c29(0x440)]||_0x2f7ab0[_0x3f0c29(0x401)]===!0x0||_0x2f7ab0[_0x3f0c29(0x1cb)]===!0x0||!this[_0x3f0c29(0x466)](_0x2f7ab0)[_0x3f0c29(0x2e1)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':_0x3f0c29(0x379),'fieldId':_0x205b5d['endDateFieldId']};let _0x112615=this[_0x3f0c29(0x244)](_0x28084e,_0x2f7ab0),_0x3d5d4e=this['_projectRows'](_0x47acda,_0x22887c),_0x26fe0d=_0x3d5d4e[_0x3f0c29(0x2a2)](_0x217002=>{const _0x23d776=_0x3f0c29;let _0x47bb7b=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x240)]]),_0x315dbe=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x171)]]);if(!Number['isFinite'](_0x47bb7b)||!Number[_0x23d776(0x2c3)](_0x315dbe))return[];let _0x4e3030=Math[_0x23d776(0x35d)](_0x47bb7b,_0x315dbe),_0x3ad364=Math[_0x23d776(0x1b3)](_0x47bb7b,_0x315dbe),_0x1fd114=_0x205b5d['progressFieldId']==null?void 0x0:Number(_0x217002['values'][_0x205b5d[_0x23d776(0x4aa)]]);return[{'recordId':_0x217002[_0x23d776(0x4bb)],'title':this[_0x23d776(0x431)](_0x47acda,_0x217002,_0x205b5d[_0x23d776(0x345)]),'start':_0x4e3030,'end':_0x3ad364,'color':this[_0x23d776(0x4e7)](_0x47acda,_0x217002,_0x205b5d),'progress':Number[_0x23d776(0x2c3)](_0x1fd114)?_0x1fd114:void 0x0,'workingDayCount':_0x205b5d['workingDaysOnly']?Ti(_0x4e3030,_0x3ad364,_0x205b5d[_0x23d776(0x236)]):void 0x0,'dependencyRecordIds':this[_0x23d776(0x174)](_0x217002['values'][_0x205b5d[_0x23d776(0x4a2)]??''])}];}),_0x41a6b2=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['min'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x1ac70e=>_0x1ac70e['start']))-0x5a*oi):Z(Date[_0x3f0c29(0x181)]()-0x5a*oi),_0xc71828=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['max'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x310d41=>_0x310d41['end']))+0x5b*oi):Z(Date[_0x3f0c29(0x181)]()+0x5b*oi),_0x5d874e=_i(_0x205b5d[_0x3f0c29(0x17e)],_0x41a6b2,_0xc71828,_0x205b5d[_0x3f0c29(0x39b)]?_0x205b5d['workingDays']:void 0x0);return{'type':_0x2b4a2c[_0x3f0c29(0x3da)],'fields':this[_0x3f0c29(0x430)](_0x47acda,{..._0x22887c,'config':_0x205b5d}),'rows':_0x3d5d4e,'groups':this[_0x3f0c29(0x3a3)](_0x47acda,_0x22887c,_0x3d5d4e),'config':_0x205b5d,'dateRangeAllDay':_0x112615,'timeline':{'scale':_0x205b5d[_0x3f0c29(0x17e)],'start':_0x41a6b2,'end':_0xc71828,'unitWidth':_0x5d874e[_0x3f0c29(0x4c2)],'majorHeaders':_0x5d874e[_0x3f0c29(0x307)],'columns':_0x5d874e[_0x3f0c29(0x50a)]},'bars':_0x26fe0d};}['_normalizeGanttConfig'](_0x3f588a,_0x4a3068){const _0x6c2ab1=_0x354fcb;let _0x444cca=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x240)],_0x6c2ab1(0x191)),_0x5e2715=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x171)],'end')||_0x444cca,_0x5875a5=_0x4a3068[_0x6c2ab1(0x345)]?_0x3f588a[_0x6c2ab1(0x480)][_0x4a3068[_0x6c2ab1(0x345)]]:void 0x0,_0x26625f=_0x5875a5&&_0x5875a5[_0x6c2ab1(0x1cb)]!==!0x0&&_0x5875a5['type']!==_0x19bf94[_0x6c2ab1(0x44f)]?_0x4a3068[_0x6c2ab1(0x345)]:_0x3f588a[_0x6c2ab1(0x4cf)],_0x556ea5=_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x1fc)||_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x20c)||_0x4a3068['scale']===_0x6c2ab1(0x377)?_0x4a3068['scale']:_0x6c2ab1(0x19b),_0xdc1230=gi(_0x4a3068[_0x6c2ab1(0x236)]);return{..._0x4a3068,'startDateFieldId':_0x444cca,'endDateFieldId':_0x5e2715,'titleFieldId':_0x26625f,'scale':_0x556ea5,'leftPaneWidth':typeof _0x4a3068['leftPaneWidth']==_0x6c2ab1(0x256)?_0x4a3068[_0x6c2ab1(0x421)]:void 0x0,'leftPaneCollapsed':_0x4a3068[_0x6c2ab1(0x3e8)]===!0x0,'showTodayLine':_0x4a3068[_0x6c2ab1(0x249)]!==!0x1,'displayColor':this[_0x6c2ab1(0x482)](_0x3f588a,_0x4a3068),'fieldSettings':Object['fromEntries'](Object['entries'](_0x4a3068[_0x6c2ab1(0x484)]??{})[_0x6c2ab1(0x397)](([_0x1857a7])=>{const _0x12115c=_0x6c2ab1;let _0x3b49b0=_0x3f588a[_0x12115c(0x480)][_0x1857a7];return!!(_0x3b49b0&&_0x3b49b0['system']!==!0x0&&_0x3b49b0[_0x12115c(0x33a)]!==_0x19bf94[_0x12115c(0x44f)]);})),'workingDaysOnly':_0x4a3068[_0x6c2ab1(0x39b)]===!0x0,'workingDays':_0xdc1230};}['_resolveGanttDateFieldId'](_0x5663dd,_0x21c075,_0x15b9e6){const _0x5a4ad3=_0x354fcb;if(_0x21c075&&this[_0x5a4ad3(0x502)](_0x5663dd,_0x21c075,_0x15b9e6)||_0x21c075)return _0x21c075;for(let _0x47d395 of _0x5663dd[_0x5a4ad3(0x1e1)])if(this[_0x5a4ad3(0x502)](_0x5663dd,_0x47d395,_0x15b9e6))return _0x47d395;return _0x21c075??'';}[_0x354fcb(0x502)](_0x51bdf7,_0x47d0bd,_0x37c2ed){const _0x5c2d24=_0x354fcb;let _0x132ed5=_0x51bdf7['fields'][_0x47d0bd];if(!_0x132ed5||_0x132ed5[_0x5c2d24(0x33a)]!==_0x19bf94['Date']||_0x132ed5['readonly']===!0x0||_0x132ed5['system']===!0x0)return!0x1;let _0x34c971=this[_0x5c2d24(0x466)](_0x132ed5);return _0x37c2ed===_0x5c2d24(0x191)?_0x34c971[_0x5c2d24(0x4da)]:_0x34c971[_0x5c2d24(0x2e1)];}['_normalizeGanttDisplayColor'](_0x53d98c,_0x4b0c7c){const _0x1e421a=_0x354fcb;let _0x52eb73=_0x4b0c7c[_0x1e421a(0x326)];if((_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x31f)){let _0x5c80bf=_0x53d98c['fields'][_0x52eb73[_0x1e421a(0x46e)]];if(_0x5c80bf&&_0x5c80bf[_0x1e421a(0x33a)]===_0x19bf94['SingleSelect'])return _0x52eb73;}return(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x1f0)&&Array['isArray'](_0x52eb73['rules'])?{'type':_0x1e421a(0x1f0),'rules':_0x52eb73[_0x1e421a(0x36c)][_0x1e421a(0x397)](_0x2d663b=>!!_0x53d98c[_0x1e421a(0x480)][_0x2d663b[_0x1e421a(0x46e)]])}:(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x49d)&&typeof _0x52eb73['color']=='string'&&_0x52eb73['color'][_0x1e421a(0x3bc)]()?{'type':'custom','color':_0x52eb73[_0x1e421a(0x190)]}:{'type':_0x1e421a(0x49d),'color':_0x1e421a(0x1e3)};}[_0x354fcb(0x4e7)](_0x299724,_0x4010fb,_0x4d3009){const _0x5680cd=_0x354fcb;let _0x3baa3f=_0x4d3009['displayColor'];if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])==='conditional'){let _0x24559d=_0x3baa3f[_0x5680cd(0x36c)][_0x5680cd(0x22f)](_0x24fee7=>this[_0x5680cd(0x395)](_0x299724,_0x4010fb,_0x24fee7));if(_0x24559d)return _0x24559d[_0x5680cd(0x190)];}if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x31f)){let _0x5dbc7f=_0x299724[_0x5680cd(0x480)][_0x3baa3f[_0x5680cd(0x46e)]];if(_0x5dbc7f){var _0x2b8c16;let _0x2c27f4=_0x4010fb['values'][_0x3baa3f[_0x5680cd(0x46e)]],_0x174df3=Array[_0x5680cd(0x354)](_0x2c27f4)?_0x2c27f4[0x0]:_0x2c27f4,_0xe5e634=_0x174df3==null||(_0x2b8c16=Li(_0x5dbc7f,String(_0x174df3)))==null?void 0x0:_0x2b8c16['color'];if(_0xe5e634)return _0xe5e634;}}return(_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x49d)?_0x3baa3f[_0x5680cd(0x190)]:'#14b8a6';}[_0x354fcb(0x395)](_0x2ce437,_0x20360b,_0x35a4c4){const _0x3ab36c=_0x354fcb;let _0x594443=_0x2ce437[_0x3ab36c(0x480)][_0x35a4c4[_0x3ab36c(0x46e)]];return _0x594443?xn(_0x20360b[_0x3ab36c(0x1da)][_0x594443['id']],_0x35a4c4[_0x3ab36c(0x320)],_0x35a4c4[_0x3ab36c(0x526)],_0x594443,{'dateMode':_0x35a4c4[_0x3ab36c(0x43b)]}):!0x1;}[_0x354fcb(0x441)](_0x3474bf,_0x38035c){const _0x940e8e=_0x354fcb;let _0x4ef233=this[_0x940e8e(0x40f)](_0x3474bf,_0x38035c),_0x271dc8=this['_normalizeGalleryConfig'](_0x3474bf,_0x38035c['config']??{}),_0x1ddce2=this['_projectFields'](_0x3474bf,_0x38035c);return{'type':_0x2b4a2c[_0x940e8e(0x17c)],'fields':_0x1ddce2,'rows':_0x4ef233,'groups':this[_0x940e8e(0x3a3)](_0x3474bf,_0x38035c,_0x4ef233),'titleFieldId':_0x271dc8[_0x940e8e(0x510)]['titleFieldId'],'coverFieldId':_0x271dc8[_0x940e8e(0x4f8)],'cardLayout':_0x271dc8['cardLayout']??'normal','showFieldNames':_0x271dc8['showFieldNames']!==!0x1,'visibleCardFieldIds':this[_0x940e8e(0x4a4)](_0x3474bf,_0x38035c,_0x271dc8),'cardSize':_0x271dc8[_0x940e8e(0x33d)]??_0x940e8e(0x524),'cards':_0x4ef233[_0x940e8e(0x29b)](_0x44672b=>({'recordId':_0x44672b[_0x940e8e(0x4bb)],'title':this['_title'](_0x3474bf,_0x44672b,_0x271dc8[_0x940e8e(0x510)]['titleFieldId']),'values':_0x44672b['values']}))};}[_0x354fcb(0x36f)](_0x238ad2,_0x2ee77f){const _0x1c778b=_0x354fcb;let _0x534fc6=_0x2ee77f[_0x1c778b(0x510)]??{'fieldIds':[]},_0x4654d0=this['_resolveCardTitleFieldId'](_0x238ad2,_0x534fc6[_0x1c778b(0x345)]),_0x3b90a9=this[_0x1c778b(0x3fb)](_0x238ad2,_0x2ee77f),_0x31a5c8=_0x2ee77f[_0x1c778b(0x33d)]===_0x1c778b(0x30b)||_0x2ee77f[_0x1c778b(0x33d)]==='large'?_0x2ee77f[_0x1c778b(0x33d)]:_0x1c778b(0x524);return{..._0x2ee77f,'coverFieldId':_0x3b90a9,'cardLayout':_0x2ee77f[_0x1c778b(0x28f)]===_0x1c778b(0x1fb)?'compose':_0x1c778b(0x445),'showFieldNames':_0x2ee77f[_0x1c778b(0x1d9)]!==!0x1,'fieldSettings':Object[_0x1c778b(0x2e8)](Object[_0x1c778b(0x1e2)](_0x2ee77f['fieldSettings']??{})[_0x1c778b(0x397)](([_0x8c2217])=>{const _0x2f5806=_0x1c778b;let _0x530cde=_0x238ad2[_0x2f5806(0x480)][_0x8c2217];return!!(_0x530cde&&_0x530cde[_0x2f5806(0x1cb)]!==!0x0&&_0x530cde[_0x2f5806(0x33a)]!==_0x19bf94[_0x2f5806(0x44f)]);})),'card':{..._0x534fc6,'titleFieldId':_0x4654d0,'coverFieldId':_0x3b90a9,'fieldIds':Array[_0x1c778b(0x354)](_0x534fc6['fieldIds'])?_0x534fc6[_0x1c778b(0x227)]:[]},'cardSize':_0x31a5c8};}[_0x354fcb(0x28c)](_0x4b1d45,_0x3bec48){const _0x27d0c1=_0x354fcb;let _0x3e1201=_0x3bec48?_0x4b1d45['fields'][_0x3bec48]:void 0x0;return _0x3e1201&&_0x3e1201[_0x27d0c1(0x1cb)]!==!0x0&&_0x3e1201[_0x27d0c1(0x33a)]!==_0x19bf94[_0x27d0c1(0x44f)]?_0x3e1201['id']:Zr(_0x4b1d45);}['_resolveGalleryCoverFieldId'](_0x2cbd41,_0x43c12f){const _0x189d08=_0x354fcb;var _0x15984a;let _0xe83033=_0x43c12f[_0x189d08(0x4f8)]??((_0x15984a=_0x43c12f[_0x189d08(0x510)])==null?void 0x0:_0x15984a[_0x189d08(0x4f8)])??null;if(!_0xe83033)return null;let _0x424943=_0x2cbd41[_0x189d08(0x480)][_0xe83033];return _0x424943&&this['_capabilities'](_0x424943)[_0x189d08(0x360)]?_0x424943['id']:null;}[_0x354fcb(0x4a4)](_0x28ace9,_0x3f072d,_0x329fe3){const _0x3dd36a=_0x354fcb;var _0xa1f353,_0x36dbae,_0x348889;let _0x2cd9ad=_0x329fe3[_0x3dd36a(0x484)]??{},_0x3360fd=((_0xa1f353=_0x329fe3[_0x3dd36a(0x510)])==null?void 0x0:_0xa1f353[_0x3dd36a(0x345)])??Zr(_0x28ace9),_0x3a3a4e=_0x329fe3[_0x3dd36a(0x4f8)]??((_0x36dbae=_0x329fe3['card'])==null?void 0x0:_0x36dbae[_0x3dd36a(0x4f8)])??null,_0x349960=(_0x348889=_0x329fe3[_0x3dd36a(0x510)])!=null&&(_0x348889=_0x348889['fieldIds'])!=null&&_0x348889[_0x3dd36a(0x458)]?_0x329fe3[_0x3dd36a(0x510)][_0x3dd36a(0x227)]:Qr(_0x28ace9,[_0x3360fd,_0x3a3a4e,_0x28ace9[_0x3dd36a(0x4cf)]]);return _0x349960[_0x3dd36a(0x397)](_0x5ded64=>{const _0x10cf32=_0x3dd36a;var _0x2ded56,_0x542544;let _0x5ed92e=_0x28ace9['fields'][_0x5ded64];return!(!_0x5ed92e||_0x5ed92e[_0x10cf32(0x1cb)]===!0x0||_0x5ed92e[_0x10cf32(0x33a)]===_0x19bf94[_0x10cf32(0x44f)]||_0x5ed92e['id']===_0x3360fd||_0x5ed92e['id']===_0x3a3a4e||(_0x2ded56=_0x3f072d['fieldSettings'])!=null&&(_0x2ded56=_0x2ded56[_0x5ded64])!=null&&_0x2ded56[_0x10cf32(0x1ce)]||(_0x542544=_0x2cd9ad[_0x5ded64])!=null&&_0x542544[_0x10cf32(0x1ce)]);})[_0x3dd36a(0x3db)]((_0x210bf3,_0x2cfa63)=>{const _0x4e4e5d=_0x3dd36a;var _0x5885e6,_0x10680c;return(((_0x5885e6=_0x2cd9ad[_0x210bf3])==null?void 0x0:_0x5885e6[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x210bf3))-(((_0x10680c=_0x2cd9ad[_0x2cfa63])==null?void 0x0:_0x10680c[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x2cfa63));});}['_projectFields'](_0xe852d2,_0x1b3899){const _0x2d6291=_0x354fcb;var _0x2ef45b;return((_0x2ef45b=_0x1b3899[_0x2d6291(0x1e1)])!=null&&_0x2ef45b[_0x2d6291(0x458)]?_0x1b3899['fieldOrder']:_0xe852d2[_0x2d6291(0x1e1)])[_0x2d6291(0x2a2)](_0xe3533f=>{const _0x20ca51=_0x2d6291;var _0x615e3f;let _0x227916=_0xe852d2[_0x20ca51(0x480)][_0xe3533f],_0x438f72=((_0x615e3f=_0x1b3899[_0x20ca51(0x484)])==null?void 0x0:_0x615e3f[_0xe3533f])??{};return!_0x227916||_0x227916[_0x20ca51(0x1cb)]===!0x0||_0x227916['type']===_0x19bf94[_0x20ca51(0x44f)]||_0x438f72[_0x20ca51(0x1ce)]?[]:[{'id':_0x227916['id'],'name':_0x227916[_0x20ca51(0x1e0)],'description':_0x227916[_0x20ca51(0x373)],'type':_0x227916['type'],'config':_0x227916[_0x20ca51(0x342)],'width':_0x438f72[_0x20ca51(0x266)],'setting':_0x438f72}];});}[_0x354fcb(0x40f)](_0x562d52,_0x1bfc4a){const _0x43d4e0=_0x354fcb;var _0x7f3855;return I('BaseProjection.projectRows',()=>{const _0x207bbf=_0x48d8;var _0x43bc46,_0x3053be;let _0x5b63e3=this[_0x207bbf(0x32d)](_0x562d52),_0x482e95=this[_0x207bbf(0x1d6)](_0x562d52['id'],_0x1bfc4a),_0xd2733b=this[_0x207bbf(0x423)](_0x562d52['id']),_0x4b9bed=this[_0x207bbf(0x456)][_0x207bbf(0x4a8)](_0x482e95);if(_0x4b9bed&&_0x4b9bed[_0x207bbf(0x26d)]===this[_0x207bbf(0x4f2)]&&_0x4b9bed[_0x207bbf(0x306)]===this[_0x207bbf(0x362)](_0x562d52['id'])){if(_0x4b9bed[_0x207bbf(0x1e4)]===_0xd2733b&&_0x4b9bed[_0x207bbf(0x2ca)]===_0x5b63e3)return _0x4b9bed[_0x207bbf(0x490)];if(_0x4b9bed['cellRevision']!==_0xd2733b&&!this['_cellInvalidationsTouchFields'](_0x562d52['id'],_0x4b9bed[_0x207bbf(0x1e4)],_0xd2733b,this[_0x207bbf(0x427)](_0x1bfc4a))){let _0x5b6b19=_0x4b9bed[_0x207bbf(0x490)]===_0x4b9bed['baseRows']?_0x5b63e3:this['_patchCachedProjectedRows'](_0x4b9bed[_0x207bbf(0x490)],_0x5b63e3);if(_0x5b6b19)return this['_projectedViewRowsCache'][_0x207bbf(0x1a1)](_0x482e95,{..._0x4b9bed,'rows':_0x5b6b19,'baseRows':_0x5b63e3,'cellRevision':_0xd2733b}),_0x5b6b19;}}let _0x14dd20=I(_0x207bbf(0x21e),()=>this[_0x207bbf(0x198)](_0x562d52,_0x1bfc4a,this[_0x207bbf(0x1ca)](_0x562d52,_0x1bfc4a,_0x5b63e3)),{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x207bbf(0x33a)],'rows':_0x5b63e3['length'],'filters':(_0x1bfc4a==null||(_0x43bc46=_0x1bfc4a[_0x207bbf(0x397)])==null?void 0x0:_0x43bc46[_0x207bbf(0x309)][_0x207bbf(0x458)])??0x0,'sorts':(_0x1bfc4a==null||(_0x3053be=_0x1bfc4a[_0x207bbf(0x3db)])==null?void 0x0:_0x3053be[_0x207bbf(0x458)])??0x0});return this[_0x207bbf(0x456)][_0x207bbf(0x1a1)](_0x482e95,{'table':_0x562d52,'rows':_0x14dd20,'baseRows':_0x5b63e3,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x207bbf(0x362)](_0x562d52['id']),'cellRevision':_0xd2733b}),_0x14dd20;},{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x43d4e0(0x33a)],'records':((_0x7f3855=_0x562d52[_0x43d4e0(0x22d)])==null?void 0x0:_0x7f3855[_0x43d4e0(0x458)])??Object['keys'](_0x562d52[_0x43d4e0(0x45a)]??{})[_0x43d4e0(0x458)]});}[_0x354fcb(0x32d)](_0x20daca){const _0x1f88ba=_0x354fcb;var _0x353cc1;return I(_0x1f88ba(0x3a8),()=>{const _0x5e2f24=_0x1f88ba;var _0x1518fb;let _0x12aee1=this[_0x5e2f24(0x423)](_0x20daca['id']),_0x8555c9=this[_0x5e2f24(0x2a6)][_0x5e2f24(0x4a8)](_0x20daca['id']);if(_0x8555c9&&_0x8555c9[_0x5e2f24(0x26d)]===this[_0x5e2f24(0x4f2)]&&_0x8555c9['tableRevision']===this[_0x5e2f24(0x362)](_0x20daca['id'])){if(_0x8555c9['cellRevision']===_0x12aee1&&fi(_0x8555c9[_0x5e2f24(0x513)],_0x20daca))return _0x8555c9[_0x5e2f24(0x513)]=_0x20daca,_0x8555c9[_0x5e2f24(0x490)];let _0x298a1b=this[_0x5e2f24(0x328)](_0x20daca,_0x8555c9,_0x12aee1);if(_0x298a1b)return _0x298a1b;}ui(_0x20daca)||L(_0x20daca);let _0x15285d=(_0x1518fb=_0x20daca[_0x5e2f24(0x22d)])!=null&&_0x1518fb['length']?_0x20daca[_0x5e2f24(0x22d)]:hi(_0x20daca[_0x5e2f24(0x45a)]),_0x4d9f00=I('BaseProjection.materializeTableRows',()=>{const _0x2acc2d=_0x5e2f24;let _0x281a81=[];for(let _0x10cc2f of _0x15285d){let _0x5d287c=_0x20daca[_0x2acc2d(0x45a)][_0x10cc2f];if(!_0x5d287c)continue;let _0x442dba={};for(let _0x344093 of _0x20daca[_0x2acc2d(0x1e1)])_0x442dba[_0x344093]=yt(_0x20daca,_0x5d287c['id'],_0x344093);_0x281a81[_0x2acc2d(0x1f3)]({'recordId':_0x5d287c['id'],'values':_0x442dba});}return _0x281a81;},{'tableId':_0x20daca['id'],'records':_0x15285d[_0x5e2f24(0x458)],'fields':_0x20daca[_0x5e2f24(0x1e1)][_0x5e2f24(0x458)]});return this[_0x5e2f24(0x2a6)][_0x5e2f24(0x1a1)](_0x20daca['id'],{'table':_0x20daca,'rows':_0x4d9f00,'rowIndexById':li(_0x4d9f00),'globalRevision':this[_0x5e2f24(0x4f2)],'tableRevision':this[_0x5e2f24(0x362)](_0x20daca['id']),'cellRevision':_0x12aee1}),_0x4d9f00;},{'tableId':_0x20daca['id'],'records':((_0x353cc1=_0x20daca[_0x1f88ba(0x22d)])==null?void 0x0:_0x353cc1[_0x1f88ba(0x458)])??Object[_0x1f88ba(0x51b)](_0x20daca[_0x1f88ba(0x45a)]??{})['length'],'fields':_0x20daca[_0x1f88ba(0x1e1)]['length']});}[_0x354fcb(0x328)](_0x4adf0f,_0x338ed7,_0x6d7ec6){const _0x326f5a=_0x354fcb;let _0x44566d=(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])[_0x326f5a(0x397)](_0x6aa7e1=>_0x6aa7e1[_0x326f5a(0x30a)]>_0x338ed7[_0x326f5a(0x1e4)]&&_0x6aa7e1[_0x326f5a(0x30a)]<=_0x6d7ec6);if(!_0x44566d[_0x326f5a(0x458)])return _0x338ed7['table']===_0x4adf0f?_0x338ed7['rows']:null;let _0x1e7f75=_0x338ed7['rows'],_0x4e4c99=new Map();for(let _0x25b6ec of _0x44566d){let _0x3e6113=_0x4e4c99[_0x326f5a(0x4a8)](_0x25b6ec[_0x326f5a(0x4bb)]);_0x3e6113||(_0x3e6113=new Set(),_0x4e4c99[_0x326f5a(0x1a1)](_0x25b6ec[_0x326f5a(0x4bb)],_0x3e6113)),_0x3e6113[_0x326f5a(0x35e)](_0x25b6ec[_0x326f5a(0x46e)]);}for(let [_0x41a414,_0x58ff41]of _0x4e4c99){if(!_0x4adf0f[_0x326f5a(0x45a)][_0x41a414])return null;let _0x3d547d=_0x338ed7['rowIndexById']['get'](_0x41a414);if(_0x3d547d==null)return null;_0x1e7f75===_0x338ed7[_0x326f5a(0x490)]&&(_0x1e7f75=[..._0x338ed7['rows']]);let _0x3e37be=_0x1e7f75[_0x3d547d],_0x12f57b={..._0x3e37be[_0x326f5a(0x1da)]};_0x58ff41[_0x326f5a(0x461)](_0x5744db=>{_0x12f57b[_0x5744db]=yt(_0x4adf0f,_0x41a414,_0x5744db);}),_0x1e7f75[_0x3d547d]={..._0x3e37be,'values':_0x12f57b};}let _0x540d94={'table':_0x4adf0f,'rows':_0x1e7f75,'rowIndexById':_0x338ed7[_0x326f5a(0x4de)],'globalRevision':this[_0x326f5a(0x4f2)],'tableRevision':this[_0x326f5a(0x362)](_0x4adf0f['id']),'cellRevision':_0x6d7ec6};return this[_0x326f5a(0x2a6)][_0x326f5a(0x1a1)](_0x4adf0f['id'],_0x540d94),this['_cellInvalidations']['set'](_0x4adf0f['id'],(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])['filter'](_0x41b44f=>_0x41b44f['revision']>Math[_0x326f5a(0x1b3)](0x0,_0x6d7ec6-0x100))),_0x1e7f75;}[_0x354fcb(0x291)](_0x536e7b,_0x128357){const _0x5d2ca9=_0x354fcb;let _0x541847=new Map(_0x128357[_0x5d2ca9(0x29b)](_0x116f61=>[_0x116f61['recordId'],_0x116f61])),_0x1e4e6c=!0x1,_0x4afdd3=_0x536e7b[_0x5d2ca9(0x29b)](_0x1935f5=>{const _0x3908b3=_0x5d2ca9;let _0x5372a2=_0x541847['get'](_0x1935f5[_0x3908b3(0x4bb)]);return _0x5372a2?_0x5372a2===_0x1935f5?_0x1935f5:(_0x1e4e6c=!0x0,_0x5372a2):_0x1935f5;});return _0x1e4e6c?_0x4afdd3:_0x536e7b;}[_0x354fcb(0x2b8)](_0x554a14,_0x111c98,_0x39867a,_0x38d6d3){const _0x53e283=_0x354fcb;return!_0x38d6d3['size']||_0x111c98===_0x39867a?!0x1:_0x39867a-_0x111c98>0x100||(this[_0x53e283(0x299)][_0x53e283(0x4a8)](_0x554a14)??[])['some'](_0x5b06eb=>_0x5b06eb[_0x53e283(0x30a)]>_0x111c98&&_0x5b06eb[_0x53e283(0x30a)]<=_0x39867a&&_0x38d6d3['has'](_0x5b06eb[_0x53e283(0x46e)]));}[_0x354fcb(0x427)](_0x59358b){const _0x1e0679=_0x354fcb;var _0x49b6e2,_0x475961;let _0x1bb374=new Set();return _0x59358b==null||(_0x49b6e2=_0x59358b[_0x1e0679(0x397)])==null||_0x49b6e2['conditions'][_0x1e0679(0x461)](_0x59afcf=>_0x1bb374[_0x1e0679(0x35e)](_0x59afcf[_0x1e0679(0x46e)])),_0x59358b==null||(_0x475961=_0x59358b[_0x1e0679(0x3db)])==null||_0x475961[_0x1e0679(0x461)](_0xa6f9e9=>_0x1bb374[_0x1e0679(0x35e)](_0xa6f9e9[_0x1e0679(0x46e)])),_0x1bb374;}['_groupProjectionFieldIds'](_0x1e84ad){const _0x3eb4cf=_0x354fcb;var _0x298f7b;let _0x35ffa7=this[_0x3eb4cf(0x427)](_0x1e84ad);return(_0x298f7b=_0x1e84ad['group'])==null||_0x298f7b['forEach'](_0x17776e=>_0x35ffa7[_0x3eb4cf(0x35e)](_0x17776e[_0x3eb4cf(0x46e)])),_0x35ffa7;}[_0x354fcb(0x1ca)](_0x13ec43,_0x3594fe,_0x8258fd){const _0x245080=_0x354fcb;let _0x52d761=_0x3594fe==null?void 0x0:_0x3594fe[_0x245080(0x397)];if(!(_0x52d761!=null&&_0x52d761[_0x245080(0x309)]['length']))return _0x8258fd;let _0xe9b056=_0x52d761[_0x245080(0x309)][_0x245080(0x397)](_0x27a9eb=>!Ii(_0x27a9eb));return _0xe9b056[_0x245080(0x458)]?_0x8258fd[_0x245080(0x397)](_0x291575=>{const _0x506d25=_0x245080;if(_0x52d761[_0x506d25(0x2d7)]===_0x12daa6['OR']){for(let _0x1a2d50 of _0xe9b056){let _0x1353e3=_0x13ec43['fields'][_0x1a2d50[_0x506d25(0x46e)]];if(!_0x1353e3||this[_0x506d25(0x2c4)][_0x506d25(0x4a8)](_0x1353e3['type'])[_0x506d25(0x397)](_0x291575[_0x506d25(0x1da)][_0x1353e3['id']],_0x1a2d50[_0x506d25(0x320)],_0x1a2d50[_0x506d25(0x526)],_0x1353e3))return!0x0;}return!0x1;}for(let _0x3971c7 of _0xe9b056){let _0x2d5bbc=_0x13ec43[_0x506d25(0x480)][_0x3971c7[_0x506d25(0x46e)]];if(_0x2d5bbc&&!this[_0x506d25(0x2c4)]['get'](_0x2d5bbc[_0x506d25(0x33a)])['filter'](_0x291575[_0x506d25(0x1da)][_0x2d5bbc['id']],_0x3971c7[_0x506d25(0x320)],_0x3971c7[_0x506d25(0x526)],_0x2d5bbc))return!0x1;}return!0x0;}):_0x8258fd;}[_0x354fcb(0x198)](_0x29bc21,_0x4a8b74,_0xc885f6){const _0x1e2a96=_0x354fcb;let _0x4e7303=(_0x4a8b74==null?void 0x0:_0x4a8b74[_0x1e2a96(0x3db)])??[];if(!_0x4e7303['length'])return _0xc885f6;let _0xd3e9d3=_0x4e7303['flatMap'](_0x49341d=>{const _0x294c37=_0x1e2a96;let _0x36f102=_0x29bc21[_0x294c37(0x480)][_0x49341d['fieldId']];return _0x36f102?[{..._0x49341d,'field':_0x36f102}]:[];});return _0xd3e9d3[_0x1e2a96(0x458)]?this['_canUseFastSort'](_0xd3e9d3)?this[_0x1e2a96(0x488)](_0xd3e9d3,_0xc885f6):[..._0xc885f6][_0x1e2a96(0x3db)]((_0x5a52d7,_0x2d50cc)=>{const _0x129a9e=_0x1e2a96;for(let _0x16734f of _0xd3e9d3){let _0x194d57=_0x16734f[_0x129a9e(0x28b)],_0xe9719d=this[_0x129a9e(0x2c4)]['get'](_0x194d57[_0x129a9e(0x33a)])[_0x129a9e(0x39a)](_0x5a52d7[_0x129a9e(0x1da)][_0x194d57['id']],_0x2d50cc[_0x129a9e(0x1da)][_0x194d57['id']],_0x194d57);if(_0xe9719d!==0x0)return _0x16734f[_0x129a9e(0x4ee)]===_0x7258f[_0x129a9e(0x321)]?-_0xe9719d:_0xe9719d;}return 0x0;}):_0xc885f6;}[_0x354fcb(0x2a5)](_0x4d9710){const _0xcf3d22=_0x354fcb;return _0x4d9710[_0xcf3d22(0x1b6)](_0x3c46d3=>ai['has'](_0x3c46d3[_0xcf3d22(0x28b)][_0xcf3d22(0x33a)]));}[_0x354fcb(0x488)](_0x47aaa3,_0x23c674){const _0x236da0=_0x354fcb;return _0x23c674[_0x236da0(0x29b)]((_0x5aa350,_0x8a3454)=>({'row':_0x5aa350,'index':_0x8a3454,'keys':_0x47aaa3[_0x236da0(0x29b)](_0xf2568c=>_0x5aa350[_0x236da0(0x1da)][_0xf2568c['fieldId']])}))[_0x236da0(0x3db)]((_0x1c4516,_0x40874c)=>{const _0x34e3be=_0x236da0;for(let _0x2f5fcc=0x0;_0x2f5fcc<_0x47aaa3[_0x34e3be(0x458)];_0x2f5fcc++){let _0x630521=Fi(_0x1c4516[_0x34e3be(0x51b)][_0x2f5fcc],_0x40874c[_0x34e3be(0x51b)][_0x2f5fcc]);if(_0x630521!==0x0)return _0x47aaa3[_0x2f5fcc][_0x34e3be(0x4ee)]===_0x7258f['DESC']?-_0x630521:_0x630521;}return _0x1c4516[_0x34e3be(0x250)]-_0x40874c['index'];})[_0x236da0(0x29b)](_0x3999cb=>_0x3999cb[_0x236da0(0x21b)]);}[_0x354fcb(0x3a3)](_0x29773e,_0x5b1552,_0x12c958){const _0x2c2803=_0x354fcb;var _0x166fb7;return I(_0x2c2803(0x34e),()=>{const _0x46988a=_0x2c2803;var _0x3d2b37;if(!((_0x3d2b37=_0x5b1552[_0x46988a(0x1b9)])!=null&&_0x3d2b37[_0x46988a(0x458)]))return[];let _0x9a0d54=_0x5b1552['group'][_0x46988a(0x397)](_0x129bce=>_0x29773e['fields'][_0x129bce[_0x46988a(0x46e)]]);if(!_0x9a0d54[_0x46988a(0x458)])return[];let _0x20b42d=this[_0x46988a(0x1b2)](_0x29773e['id'],_0x5b1552,_0x9a0d54),_0x1e57dc=this['_getCellRevision'](_0x29773e['id']),_0xa35966=this[_0x46988a(0x4f6)]['get'](_0x20b42d);if(_0xa35966&&_0xa35966[_0x46988a(0x26d)]===this[_0x46988a(0x4f2)]&&_0xa35966[_0x46988a(0x306)]===this[_0x46988a(0x362)](_0x29773e['id'])){if(_0xa35966[_0x46988a(0x1e4)]===_0x1e57dc&&_0xa35966[_0x46988a(0x490)]===_0x12c958)return _0xa35966['groups'];if(_0xa35966['cellRevision']!==_0x1e57dc&&!this['_cellInvalidationsTouchFields'](_0x29773e['id'],_0xa35966[_0x46988a(0x1e4)],_0x1e57dc,this[_0x46988a(0x3d3)](_0x5b1552)))return this[_0x46988a(0x4f6)][_0x46988a(0x1a1)](_0x20b42d,{..._0xa35966,'rows':_0x12c958,'cellRevision':_0x1e57dc}),_0xa35966[_0x46988a(0x428)];}let _0x4d8f85=new Map();for(let _0x26af6f of _0x12c958){let _0x3053a5=_0x4d8f85,_0x314315='';for(let _0x5d918e=0x0;_0x5d918e<_0x9a0d54['length'];_0x5d918e++){let _0x3798af=_0x9a0d54[_0x5d918e],_0x23bc09=_0x26af6f[_0x46988a(0x1da)][_0x3798af[_0x46988a(0x46e)]],_0x1fac58=ci(_0x23bc09),_0x3649ca=_0x3798af[_0x46988a(0x46e)]+'\x00'+_0x1fac58,_0x3ac2f5=_0x314315+'/'+_0x3798af['fieldId']+':'+_0x1fac58,_0x616c19=_0x3053a5[_0x46988a(0x4a8)](_0x3649ca);_0x616c19||(_0x616c19={'key':_0x1fac58,'value':_0x23bc09,'path':_0x3ac2f5,'label':_0x1fac58||_0x46988a(0x350),'fieldId':_0x3798af[_0x46988a(0x46e)],'level':_0x5d918e,'recordIds':[],'children':new Map()},_0x3053a5[_0x46988a(0x1a1)](_0x3649ca,_0x616c19)),_0x616c19[_0x46988a(0x51f)]['push'](_0x26af6f[_0x46988a(0x4bb)]),_0x3053a5=_0x616c19[_0x46988a(0x37f)],_0x314315=_0x3ac2f5;}}let _0x3b4cd9=this[_0x46988a(0x4b9)](_0x9a0d54,_0x4d8f85,0x0);return this[_0x46988a(0x4f6)]['set'](_0x20b42d,{'table':_0x29773e,'rows':_0x12c958,'groups':_0x3b4cd9,'globalRevision':this[_0x46988a(0x4f2)],'tableRevision':this[_0x46988a(0x362)](_0x29773e['id']),'cellRevision':_0x1e57dc}),_0x3b4cd9;},{'tableId':_0x29773e['id'],'viewId':_0x5b1552['id'],'viewType':_0x5b1552['type'],'rows':_0x12c958[_0x2c2803(0x458)],'groupFields':((_0x166fb7=_0x5b1552['group'])==null?void 0x0:_0x166fb7[_0x2c2803(0x458)])??0x0});}['_materializeGroups'](_0x28d864,_0x232be8,_0xc4681b){const _0x1e4f9d=_0x354fcb;var _0x4cb2c0;let _0x547ed8=Array[_0x1e4f9d(0x4dd)](_0x232be8['values']()),_0x409f79=(_0x4cb2c0=_0x28d864[_0xc4681b])==null?void 0x0:_0x4cb2c0[_0x1e4f9d(0x4ee)];return _0x409f79&&_0x547ed8['sort']((_0x4aa0ba,_0x5da257)=>{const _0x1dfb23=_0x1e4f9d;let _0x1d1f98=_0x4aa0ba['key'][_0x1dfb23(0x4bc)](_0x5da257[_0x1dfb23(0x3f2)]);return _0x409f79===_0x7258f['DESC']?-_0x1d1f98:_0x1d1f98;}),_0x547ed8[_0x1e4f9d(0x29b)](_0x218e7f=>({'key':_0x218e7f[_0x1e4f9d(0x3f2)],'value':_0x218e7f[_0x1e4f9d(0x416)],'path':_0x218e7f[_0x1e4f9d(0x220)],'label':_0x218e7f['label'],'fieldId':_0x218e7f[_0x1e4f9d(0x46e)],'level':_0x218e7f[_0x1e4f9d(0x329)],'recordIds':_0x218e7f['recordIds'],'children':this[_0x1e4f9d(0x4b9)](_0x28d864,_0x218e7f[_0x1e4f9d(0x37f)],_0xc4681b+0x1)}));}[_0x354fcb(0x431)](_0x5d3aac,_0x216c90,_0x4cdb37){const _0x1df03b=_0x354fcb;let _0x4f7076=_0x4cdb37??_0x5d3aac[_0x1df03b(0x4cf)],_0x2a4e13=_0x216c90[_0x1df03b(0x1da)][_0x4f7076];return _0x2a4e13==null?'':String(_0x2a4e13);}[_0x354fcb(0x174)](_0x58f786){const _0x28f600=_0x354fcb;if(Array[_0x28f600(0x354)](_0x58f786))return _0x58f786[_0x28f600(0x29b)](String);if(typeof _0x58f786==_0x28f600(0x471)&&_0x58f786)return[_0x58f786];}['_capabilities'](_0x111d55){const _0x11ece0=_0x354fcb;return this[_0x11ece0(0x2c4)][_0x11ece0(0x4a8)](_0x111d55[_0x11ece0(0x33a)])[_0x11ece0(0x43a)](_0x111d55);}};si=X([Y(0x0,_0x42d70a(mr))],si);function ci(_0x50b6a9){return _0x50b6a9==null?'':String(_0x50b6a9);}function li(_0x1aeb85){const _0x2c2c3c=_0x354fcb;return new Map(_0x1aeb85[_0x2c2c3c(0x29b)]((_0x306cda,_0x7ec07e)=>[_0x306cda[_0x2c2c3c(0x4bb)],_0x7ec07e]));}function ui(_0x12884d){const _0x19ec06=_0x354fcb;return!!(Array[_0x19ec06(0x354)](_0x12884d[_0x19ec06(0x22d)])&&_0x12884d[_0x19ec06(0x290)]&&_0x12884d['rowId']&&_0x12884d[_0x19ec06(0x288)]&&_0x12884d['colId']&&_0x12884d[_0x19ec06(0x1cf)]);}function di(_0x4b31b5){const _0x293b4e=_0x354fcb;let _0x331628=(_0x4b31b5==null?void 0x0:_0x4b31b5[_0x293b4e(0x309)][_0x293b4e(0x397)](_0xde636e=>!Ii(_0xde636e)))??[];return!_0x4b31b5||!_0x331628[_0x293b4e(0x458)]?null:{'conjunction':_0x4b31b5[_0x293b4e(0x2d7)],'conditions':_0x331628[_0x293b4e(0x29b)](_0x4913aa=>({'fieldId':_0x4913aa[_0x293b4e(0x46e)],'operator':_0x4913aa['operator'],'operand':_0x4913aa['operand']}))};}function fi(_0x2e1bce,_0x344a65){const _0x1584c3=_0x354fcb;return _0x2e1bce[_0x1584c3(0x45a)]===_0x344a65[_0x1584c3(0x45a)]&&_0x2e1bce[_0x1584c3(0x22d)]===_0x344a65[_0x1584c3(0x22d)]&&_0x2e1bce[_0x1584c3(0x480)]===_0x344a65[_0x1584c3(0x480)]&&_0x2e1bce[_0x1584c3(0x1e1)]===_0x344a65['fieldOrder']&&_0x2e1bce[_0x1584c3(0x1cf)]===_0x344a65['cellData']&&_0x2e1bce[_0x1584c3(0x290)]===_0x344a65[_0x1584c3(0x290)]&&_0x2e1bce[_0x1584c3(0x474)]===_0x344a65[_0x1584c3(0x474)]&&_0x2e1bce['colIndex']===_0x344a65[_0x1584c3(0x288)]&&_0x2e1bce[_0x1584c3(0x242)]===_0x344a65['colId'];}function pi(_0x5d2d9a){const _0x35da03=_0x354fcb;return _0x5d2d9a!=null&&_0x5d2d9a['length']?_0x5d2d9a[_0x35da03(0x29b)](_0x54e20b=>({'fieldId':_0x54e20b[_0x35da03(0x46e)],'direction':_0x54e20b[_0x35da03(0x4ee)]})):null;}function mi(_0x13c98c){const _0x4b4b2a=_0x354fcb;if(typeof _0x13c98c!='object'||!_0x13c98c)return JSON[_0x4b4b2a(0x449)](_0x13c98c)??_0x4b4b2a(0x217);if(Array['isArray'](_0x13c98c))return'['+_0x13c98c[_0x4b4b2a(0x29b)](mi)[_0x4b4b2a(0x4b5)](',')+']';let _0x4f962b=_0x13c98c;return'{'+Object[_0x4b4b2a(0x51b)](_0x4f962b)['sort']()[_0x4b4b2a(0x29b)](_0x4dd274=>JSON[_0x4b4b2a(0x449)](_0x4dd274)+':'+mi(_0x4f962b[_0x4dd274]))[_0x4b4b2a(0x4b5)](',')+'}';}function hi(_0x2a8175){const _0x2c7cae=_0x354fcb;let _0x1ed9e1=Object[_0x2c7cae(0x1da)](_0x2a8175)['sort']((_0x42b5df,_0x148e8f)=>_0x42b5df[_0x2c7cae(0x3ef)][_0x2c7cae(0x4bc)](_0x148e8f[_0x2c7cae(0x3ef)])),_0x50de4b=[];for(let _0x22663c of _0x1ed9e1)_0x50de4b['push'](_0x22663c['id']);return _0x50de4b;}function gi(_0x301e8b){const _0x5b41a3=_0x354fcb;return{'weekdays':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x226)])&&_0x301e8b[_0x5b41a3(0x226)]['length']?[...new Set(_0x301e8b[_0x5b41a3(0x226)][_0x5b41a3(0x397)](_0x3b7e7d=>Number['isInteger'](_0x3b7e7d)&&_0x3b7e7d>=0x1&&_0x3b7e7d<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x1e6)])?_0x301e8b[_0x5b41a3(0x1e6)]['flatMap'](_0x95cf75=>!_0x95cf75||!Number['isFinite'](_0x95cf75[_0x5b41a3(0x219)])?[]:[{'id':String(_0x95cf75['id']||_0x5b41a3(0x2f0)+_0x95cf75[_0x5b41a3(0x219)]),'date':Z(Number(_0x95cf75['date'])),'name':String(_0x95cf75['name']||'Working\x20day'),'type':_0x95cf75[_0x5b41a3(0x33a)]==='working'?'working':_0x5b41a3(0x2bc)}]):[]};}function _i(_0x1fbf28,_0x129237,_0x50e113,_0x4f6995){let _0x30ba7a=xi(_0x1fbf28,_0x129237),_0x591510=Si(_0x1fbf28,_0x50e113),_0x8c44df=vi(_0x1fbf28,_0x30ba7a,_0x591510,_0x4f6995);return{'scale':_0x1fbf28,'start':_0x30ba7a,'end':_0x591510,'unitWidth':bi(_0x1fbf28),'majorHeaders':yi(_0x1fbf28,_0x30ba7a,_0x591510),'columns':_0x8c44df};}function vi(_0x17ddff,_0x580f27,_0x4a16a1,_0x11481f){const _0x1198fb=_0x354fcb;let _0x291c72=[],_0x75cea0=_0x580f27;for(;_0x75cea0<_0x4a16a1;){let _0x40ac36=_0x17ddff===_0x1198fb(0x20c)?ji(_0x75cea0,0x7):_0x17ddff===_0x1198fb(0x377)?Mi(_0x75cea0,0x1):ji(_0x75cea0,0x1);_0x291c72['push']({'id':_0x17ddff+'-'+_0x75cea0,'label':Ci(_0x17ddff,_0x75cea0,_0x40ac36),'majorLabel':wi(_0x17ddff,_0x75cea0),'start':_0x75cea0,'end':_0x40ac36,'nonWorking':Ei(_0x75cea0,_0x40ac36,_0x11481f)}),_0x75cea0=_0x40ac36;}return _0x291c72;}function yi(_0xb54134,_0x762076,_0x100fe5){const _0x557ec7=_0x354fcb;let _0x5d3328=[],_0x539bb6=_0xb54134===_0x557ec7(0x377)?Ai(_0x762076):ki(_0x762076);for(;_0x539bb6<_0x100fe5;){let _0x1f67ae=_0xb54134===_0x557ec7(0x377)?Ni(_0x539bb6,0x1):Mi(_0x539bb6,0x1);_0x5d3328['push']({'id':_0x557ec7(0x319)+_0x539bb6,'label':_0xb54134===_0x557ec7(0x377)?String(new Date(_0x539bb6)[_0x557ec7(0x50c)]()):Pi(_0x539bb6),'start':_0x539bb6,'end':_0x1f67ae}),_0x539bb6=_0x1f67ae;}return _0x5d3328;}function bi(_0x209815){const _0x11da21=_0x354fcb;switch(_0x209815){case _0x11da21(0x1fc):return 0xac;case _0x11da21(0x20c):return 0xac;case _0x11da21(0x377):return 0x88;default:return 0x56;}}function xi(_0x4ad704,_0x1b392c){const _0x4a0306=_0x354fcb;return _0x4ad704===_0x4a0306(0x377)?Ai(_0x1b392c):_0x4ad704==='quarter'?Oi(_0x1b392c):Z(_0x1b392c);}function Si(_0x35a9f3,_0x24b15e){const _0x4b45fc=_0x354fcb;return _0x35a9f3===_0x4b45fc(0x377)?Ni(Ai(_0x24b15e),0x1):_0x35a9f3===_0x4b45fc(0x20c)?ji(Oi(_0x24b15e),0x7):ji(Z(_0x24b15e),0x1);}function Ci(_0x2a26f5,_0x4e660d,_0x5836c5){const _0x17d921=_0x354fcb;let _0x486c45=new Date(_0x4e660d);return _0x2a26f5===_0x17d921(0x20c)?_0x486c45[_0x17d921(0x1cc)]()+'-'+new Date(_0x5836c5-oi)[_0x17d921(0x1cc)]():_0x2a26f5==='year'?_0x486c45['toLocaleString'](_0x17d921(0x1d5),{'month':_0x17d921(0x2ea),'timeZone':_0x17d921(0x386)}):String(_0x486c45[_0x17d921(0x1cc)]());}function wi(_0x1098b0,_0xb6a90e){const _0x204bc6=_0x354fcb;return _0x1098b0===_0x204bc6(0x377)?String(new Date(_0xb6a90e)[_0x204bc6(0x50c)]()):Pi(_0xb6a90e);}function Ti(_0x386608,_0x369235,_0x582eb9){let _0x2b8c22=gi(_0x582eb9),_0xb70df3=0x0;for(let _0x1eba4b=Z(_0x386608);_0x1eba4b<=Z(_0x369235);_0x1eba4b=ji(_0x1eba4b,0x1))Di(_0x1eba4b,_0x2b8c22)||_0xb70df3++;return _0xb70df3;}function Ei(_0x32765b,_0x260052,_0x210fc3){if(!_0x210fc3)return!0x1;let _0x3d1a34=gi(_0x210fc3);for(let _0x5095ce=Z(_0x32765b);_0x5095ce<_0x260052;_0x5095ce=ji(_0x5095ce,0x1))if(!Di(_0x5095ce,_0x3d1a34))return!0x1;return!0x0;}function Di(_0xf7a951,_0x55d36a){const _0x335225=_0x354fcb;let _0x4ce47a=Z(_0xf7a951),_0x13978f=_0x55d36a[_0x335225(0x1e6)]['find'](_0x2271ba=>Z(_0x2271ba[_0x335225(0x219)])===_0x4ce47a);if(_0x13978f)return _0x13978f[_0x335225(0x33a)]===_0x335225(0x2bc);let _0x38d536=new Date(_0x4ce47a)[_0x335225(0x452)](),_0x133201=_0x38d536===0x0?0x7:_0x38d536;return!_0x55d36a[_0x335225(0x226)][_0x335225(0x231)](_0x133201);}function Z(_0x633eab){const _0x2097e1=_0x354fcb;let _0x4c9261=new Date(_0x633eab);return Date['UTC'](_0x4c9261[_0x2097e1(0x50c)](),_0x4c9261['getUTCMonth'](),_0x4c9261[_0x2097e1(0x1cc)]());}function Oi(_0x3c2ada){const _0x4c00fa=_0x354fcb;let _0x427423=Z(_0x3c2ada),_0x262fed=new Date(_0x427423)[_0x4c00fa(0x452)]();return ji(_0x427423,-(_0x262fed===0x0?0x6:_0x262fed-0x1));}function ki(_0x3b58e7){const _0x4298ac=_0x354fcb;let _0x520478=new Date(_0x3b58e7);return Date[_0x4298ac(0x386)](_0x520478[_0x4298ac(0x50c)](),_0x520478[_0x4298ac(0x450)](),0x1);}function Ai(_0x12b1dd){const _0x3e8467=_0x354fcb;let _0x40f0c9=new Date(_0x12b1dd);return Date[_0x3e8467(0x386)](_0x40f0c9['getUTCFullYear'](),0x0,0x1);}function ji(_0x309724,_0x4b0688){return _0x309724+_0x4b0688*oi;}function Mi(_0x5e331e,_0x2527d6){const _0x703c2b=_0x354fcb;let _0x5534b6=new Date(_0x5e331e);return Date[_0x703c2b(0x386)](_0x5534b6[_0x703c2b(0x50c)](),_0x5534b6['getUTCMonth']()+_0x2527d6,0x1);}function Ni(_0x33f513,_0x34b02a){const _0xf33ca3=_0x354fcb;let _0xb37a58=new Date(_0x33f513);return Date[_0xf33ca3(0x386)](_0xb37a58[_0xf33ca3(0x50c)]()+_0x34b02a,0x0,0x1);}function Pi(_0x4ec50b){const _0x366cf9=_0x354fcb;let _0x154dda=new Date(_0x4ec50b);return _0x154dda[_0x366cf9(0x2f1)]('en-US',{'month':_0x366cf9(0x2ea),'timeZone':'UTC'})+'\x20'+_0x154dda['getUTCFullYear']();}function Fi(_0x400543,_0x365e5c){const _0x56d1a3=_0x354fcb;if(_0x400543==null&&_0x365e5c==null)return 0x0;if(_0x400543==null)return-0x1;if(_0x365e5c==null)return 0x1;if(typeof _0x400543==_0x56d1a3(0x364)||typeof _0x365e5c=='boolean')return Number(_0x400543===!0x0)-Number(_0x365e5c===!0x0);let _0x13a2b5=Number(_0x400543),_0x2f2316=Number(_0x365e5c),_0x3cf090=Number[_0x56d1a3(0x2c3)](_0x13a2b5),_0x2526e2=Number[_0x56d1a3(0x2c3)](_0x2f2316);return _0x3cf090&&_0x2526e2?_0x13a2b5-_0x2f2316:_0x3cf090?0x1:_0x2526e2?-0x1:String(_0x400543)[_0x56d1a3(0x4bc)](String(_0x365e5c));}function Ii(_0x57ada0){const _0x218a6a=_0x354fcb;if(_0x57ada0[_0x218a6a(0x320)]!=='is'&&_0x57ada0[_0x218a6a(0x320)]!==_0x218a6a(0x521))return!0x1;let _0x1382f1=_0x57ada0[_0x218a6a(0x526)];return _0x1382f1==null?!0x0:typeof _0x1382f1==_0x218a6a(0x471)?_0x1382f1[_0x218a6a(0x3bc)]()==='':Array['isArray'](_0x1382f1)?_0x1382f1[_0x218a6a(0x458)]===0x0:!0x1;}function Li(_0x41902d,_0x2ea94f){const _0x4f0822=_0x354fcb;var _0x5c44e9;let _0x452c72=Array[_0x4f0822(0x354)]((_0x5c44e9=_0x41902d['config'])==null?void 0x0:_0x5c44e9['options'])?_0x41902d[_0x4f0822(0x342)]['options']:[];for(let _0x143cf5 of _0x452c72){if(_0x143cf5==null)continue;if(typeof _0x143cf5==_0x4f0822(0x471)){if(_0x143cf5===_0x2ea94f)return{'id':_0x143cf5,'name':_0x143cf5};continue;}let _0x3613ac=_0x143cf5,_0x29ec7d=String(_0x3613ac['id']??_0x3613ac[_0x4f0822(0x1e0)]??''),_0x2d9dab=String(_0x3613ac['name']??_0x3613ac['id']??_0x29ec7d);if(_0x29ec7d===_0x2ea94f||_0x2d9dab===_0x2ea94f)return{'id':_0x29ec7d,'name':_0x2d9dab,'color':_0x3613ac['color']==null?void 0x0:String(_0x3613ac[_0x4f0822(0x190)])};}return null;}let Ri=function(_0x5f22d8){const _0x59715e=_0x354fcb;return _0x5f22d8[_0x59715e(0x52c)]=_0x59715e(0x26f),_0x5f22d8['DeleteView']=_0x59715e(0x438),_0x5f22d8;}({});const Q={'id':_0x354fcb(0x4d6),'type':_0x3e23cf[_0x354fcb(0x251)],'handler'(_0x4df3ac,_0xd147fd){const _0xe66cd2=_0x354fcb;let {unitId:_0x57996a,op:_0x2d5027}=_0xd147fd,_0x2f263c=_0x4df3ac['get'](_0x3414e2)[_0xe66cd2(0x2e5)](_0x57996a,_0x28d752['UNIVER_BASE']);if(!_0x2f263c)return!0x1;let _0x1ea1f2=_0x2f263c[_0xe66cd2(0x1f9)](),_0x48f855=new z(),_0x46f6aa=_0x48f855[_0xe66cd2(0x2b9)](_0x2d5027),_0x94ded4=_0x48f855['applyOp'](_0x1ea1f2,_0x2d5027);return _0x2f263c[_0xe66cd2(0x2ff)](_0x94ded4),zi(_0x94ded4,_0x46f6aa,_0x4df3ac[_0xe66cd2(0x4a8)](ii)),!0x0;}};function zi(_0x5bfffd,_0x47ea27,_0x52940b){const _0xa5050=_0x354fcb;let _0x5e80c1=new Set(),_0x19b578=new Set(),_0x4a1d56=new Set();for(let _0x3bee88 of _0x47ea27){if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x2df)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88['viewId']){let _0x2d8ce6=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x366)];_0x4a1d56[_0xa5050(0x23f)](_0x2d8ce6)||(_0x4a1d56['add'](_0x2d8ce6),_0x52940b[_0xa5050(0x21a)](_0x3bee88['tableId'],_0x3bee88[_0xa5050(0x366)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x28b)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88[_0xa5050(0x46e)]){let _0x4c3640=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x46e)];_0x19b578[_0xa5050(0x23f)](_0x4c3640)||(_0x19b578[_0xa5050(0x35e)](_0x4c3640),_0x52940b['invalidateByField'](_0x3bee88[_0xa5050(0x1c3)],_0x3bee88[_0xa5050(0x46e)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]!==_0xa5050(0x4eb)){_0x52940b[_0xa5050(0x51e)]();return;}let _0x338b35=Bi(_0x5bfffd,_0x3bee88);if(!_0x338b35){_0x52940b[_0xa5050(0x51e)]();return;}let _0x45c174=_0x338b35[_0xa5050(0x1c3)]+'\x00'+_0x338b35[_0xa5050(0x4bb)]+'\x00'+_0x338b35[_0xa5050(0x46e)];_0x5e80c1['has'](_0x45c174)||(_0x5e80c1[_0xa5050(0x35e)](_0x45c174),_0x52940b['invalidateByCell'](_0x338b35['tableId'],_0x338b35['recordId'],_0x338b35[_0xa5050(0x46e)]));}}function Bi(_0x254732,_0x280717){const _0x35eb8a=_0x354fcb;var _0x39036c,_0x1d7d93;if(!_0x280717[_0x35eb8a(0x1c3)])return null;if(_0x280717['recordId']&&_0x280717[_0x35eb8a(0x46e)])return{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x280717[_0x35eb8a(0x4bb)],'fieldId':_0x280717[_0x35eb8a(0x46e)]};if(_0x280717[_0x35eb8a(0x21b)]==null||_0x280717[_0x35eb8a(0x26e)]==null)return null;let _0x14adcd=_0x254732['tables'][_0x280717['tableId']],_0x298dd3=_0x14adcd==null||(_0x39036c=_0x14adcd['rowId'])==null?void 0x0:_0x39036c[_0x280717[_0x35eb8a(0x21b)]],_0x57921e=_0x14adcd==null||(_0x1d7d93=_0x14adcd['colId'])==null?void 0x0:_0x1d7d93[_0x280717[_0x35eb8a(0x26e)]];return!_0x298dd3||!_0x57921e?null:{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x298dd3,'fieldId':_0x57921e};}const Vi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x1ae19d[_0x354fcb(0x27e)](String['raw']`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x1ae19d['createRegExpFromSafeFragment'](String['raw']`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x354fcb(0x310)](_0x2c91e5,_0x577993=_0x2c91e5['id']){const _0x34854c=_0x354fcb;var _0xffab5e;let _0x5c3bdb=((_0xffab5e=_0x2c91e5[_0x34854c(0x22d)])==null?void 0x0:_0xffab5e['length'])??Object[_0x34854c(0x1da)](_0x2c91e5['records'])[_0x34854c(0x458)];return{'sheetId':_0x577993,'titleMap':new Map(_0x2c91e5[_0x34854c(0x1e1)]['map']((_0x4ebb50,_0x553858)=>{const _0x54ff01=_0x34854c;var _0x3b38fa;return[((_0x3b38fa=_0x2c91e5[_0x54ff01(0x480)][_0x4ebb50])==null?void 0x0:_0x3b38fa[_0x54ff01(0x1e0)])??_0x4ebb50,_0x553858];})),'range':{'startRow':0x0,'endRow':Math[_0x34854c(0x1b3)](0x0,_0x5c3bdb-0x1),'startColumn':0x0,'endColumn':Math[_0x34854c(0x1b3)](0x0,_0x2c91e5[_0x34854c(0x1e1)]['length']-0x1)},'showHeader':!0x1};}[_0x354fcb(0x515)](_0x235148,_0x3f4b80){const _0x51c9ff=_0x354fcb;let _0x246cde=[],_0x3f87f3=_0x3f4b80?new Set(_0x3f4b80):null,_0xa7162=_0x49362b(_0x235148);return Object['values'](_0x235148['tables'])['filter'](_0x57f51e=>!_0x3f87f3||_0x3f87f3[_0x51c9ff(0x23f)](_0x57f51e['id']))[_0x51c9ff(0x461)](_0x1aee9c=>{const _0x523319=_0x51c9ff;let _0x3b41ba=this['createSuperTableReference'](_0x1aee9c,_0x1aee9c['id']);_0x246cde[_0x523319(0x1f3)]({'tableId':_0x1aee9c['id'],'tableName':_0xa7162['get'](_0x1aee9c['id']),'reference':_0x3b41ba});}),_0x246cde;}['validateFormula'](_0x1fe83b,_0x300246,_0x383f0f={}){const _0x312be4=_0x354fcb;let _0x504344=_0x1fe83b[_0x312be4(0x3bc)]();if(!_0x504344)return{'valid':!0x0};if(na(_0x504344))return{'valid':!0x1,'reason':_0x312be4(0x3cc)};let _0x54883d=_0x383f0f[_0x312be4(0x2d2)]?_0x49362b(_0x383f0f['snapshot']):void 0x0;for(let _0x507318 of ta(_0x504344)){let _0x2fe195=ua(_0x507318,_0x300246,_0x383f0f[_0x312be4(0x2d2)],_0x54883d);if(!_0x2fe195[_0x312be4(0x513)])return{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20\x22'+_0x507318[_0x312be4(0x4e4)]+_0x312be4(0x3cf)};if(!_0x2fe195[_0x312be4(0x28b)])return{'valid':!0x1,'reason':_0x312be4(0x1a4)+_0x507318['fieldName']+_0x312be4(0x462)};}return{'valid':!0x0};}[_0x354fcb(0x1bb)](_0x4deba6,_0x57f777,_0xf0aeee={}){const _0x2bc94c=_0x354fcb;let _0x4d5527=new Set();for(let _0x4c09f8 of this[_0x2bc94c(0x3c2)](_0x4deba6,_0x57f777,_0xf0aeee))_0x4c09f8[_0x2bc94c(0x1c3)]===_0x57f777['id']&&_0x4d5527[_0x2bc94c(0x35e)](_0x4c09f8[_0x2bc94c(0x46e)]);return Array[_0x2bc94c(0x4dd)](_0x4d5527);}['getStructuredDependencies'](_0x2e722f,_0x21d82f,_0x56e097={}){const _0x4eb733=_0x354fcb;let _0x5a924a=new Map(),_0x1d362d=_0x56e097[_0x4eb733(0x2d2)]?_0x49362b(_0x56e097[_0x4eb733(0x2d2)]):void 0x0;for(let _0x5b1a35 of ta(_0x2e722f)){let _0x43075d=ua(_0x5b1a35,_0x21d82f,_0x56e097[_0x4eb733(0x2d2)],_0x1d362d);if(!_0x43075d['table']||!_0x43075d[_0x4eb733(0x28b)])continue;let _0x259f59=_0x43075d[_0x4eb733(0x513)]['id']+'\x1f'+_0x43075d[_0x4eb733(0x28b)]['id'];_0x5a924a[_0x4eb733(0x1a1)](_0x259f59,{'tableId':_0x43075d['table']['id'],'fieldId':_0x43075d[_0x4eb733(0x28b)]['id']});}return Array[_0x4eb733(0x4dd)](_0x5a924a[_0x4eb733(0x1da)]());}};function Zi(_0x500683,_0x24013c){const _0x154152=_0x354fcb;var _0x56f0fc;let _0x52af76=[],_0x404720=(_0x56f0fc=_0x24013c[_0x154152(0x50f)])==null?void 0x0:_0x56f0fc[_0x500683['id']];return _0x404720&&Object[_0x154152(0x1e2)](_0x404720)[_0x154152(0x461)](([_0x8d2a3c,_0x256b5b])=>{const _0x44ef86=_0x154152;let _0x161627=_0x500683[_0x44ef86(0x2ba)][_0x8d2a3c];if(!_0x161627||!_0x256b5b)return;let _0x3b9c19=L(_0x161627),_0x9587=[];new _0x4bc349(_0x256b5b)[_0x44ef86(0x24e)]((_0x5989fb,_0x3d2d41,_0x4ef79a)=>{const _0x3bf17f=_0x44ef86;let _0x3caafb=Qi(_0x3b9c19,_0x5989fb,_0x3d2d41,_0x4ef79a);_0x3caafb&&_0x9587[_0x3bf17f(0x1f3)](_0x3caafb);}),_0x9587[_0x44ef86(0x458)]&&_0x52af76['push']({'unitId':_0x500683['id'],'tableId':_0x8d2a3c,'patches':_0x9587});}),_0x52af76;}function Qi(_0x1a0f68,_0x5485c4,_0x36ae32,_0x475e03){const _0xcb0de3=_0x354fcb;var _0x185e38,_0x37c58c,_0x579bd9;let _0x1fe4b8=(_0x185e38=_0x1a0f68['rowId'])==null?void 0x0:_0x185e38[_0x5485c4],_0x5aef67=(_0x37c58c=_0x1a0f68[_0xcb0de3(0x242)])==null?void 0x0:_0x37c58c[_0x36ae32];if(!_0x1fe4b8||!_0x1a0f68[_0xcb0de3(0x45a)][_0x1fe4b8]||!_0x5aef67)return null;let _0x12b826=_0x1a0f68['fields'][_0x5aef67];if(!_0x12b826||_0x12b826[_0xcb0de3(0x33a)]!=='formula')return null;let _0x3573c1=String(((_0x579bd9=_0x12b826[_0xcb0de3(0x342)])==null?void 0x0:_0x579bd9[_0xcb0de3(0x23a)])??'')['trim'](),_0x4040d8=(_0x475e03==null?void 0x0:_0x475e03['v'])??null,_0x1cbbfc={'v':_0x4040d8,'t':ea(_0x4040d8),..._0x5485c4===0x0&&_0x3573c1?{'f':_0x3573c1}:{},'si':_0x12b826['id']};return $i(vt(_0x1a0f68,_0x1fe4b8,_0x5aef67),_0x1cbbfc)?null:{'row':_0x5485c4,'col':_0x36ae32,'value':_0x1cbbfc};}function $i(_0x6d42fe,_0x31cb8f){return _0x6d42fe!=null&&Object['is'](_0x6d42fe['v']??null,_0x31cb8f['v']??null)&&_0x6d42fe['t']===_0x31cb8f['t']&&_0x6d42fe['f']===_0x31cb8f['f']&&_0x6d42fe['si']===_0x31cb8f['si'];}function ea(_0x151d30){const _0x395767=_0x354fcb;return typeof _0x151d30==_0x395767(0x256)?_0x149f0a[_0x395767(0x426)]:typeof _0x151d30==_0x395767(0x364)?_0x149f0a[_0x395767(0x176)]:typeof _0x151d30==_0x395767(0x471)?_0x149f0a['STRING']:null;}function ta(_0x65ecc5){const _0x5c82ee=_0x354fcb;let _0x5e6462=ia(_0x65ecc5,()=>''),_0x3378df=new Map(),_0x419c80=_0xe8b97b=>{_0x3378df['set']((_0xe8b97b['tableName']??'')+'\x1f'+_0xe8b97b['fieldName'],_0xe8b97b);};for(let _0x28cfac of _0x5e6462['matchAll'](Ui))_0x419c80({'fieldName':_0x28cfac[0x1],'scope':_0x5c82ee(0x2a3)});_0x5e6462=_0x5e6462['replace'](Wi,(_0x2c9165,_0x13a8a6,_0x386281,_0x13f8f0)=>(_0x419c80({'tableName':_0x13a8a6,'fieldName':_0x13f8f0,'scope':_0x386281[_0x5c82ee(0x4f1)]()===_0x5c82ee(0x523)?_0x5c82ee(0x523):'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Gi,(_0x415582,_0x21f7ef,_0x12c2a4)=>(_0x419c80({'tableName':_0x21f7ef,'fieldName':_0x12c2a4,'scope':'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](qi,(_0x4536d6,_0x57b46e,_0x44ea79,_0x5916f2)=>(_0x419c80({'fieldName':_0x5916f2,'scope':_0x44ea79[_0x5c82ee(0x4f1)]()==='data'?_0x5c82ee(0x523):_0x5c82ee(0x2a3)}),_0x57b46e+'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Ji,(_0x184c07,_0x28744a,_0x1d2b8d)=>(_0x419c80({'fieldName':_0x1d2b8d,'scope':_0x5c82ee(0x2a3)}),_0x28744a+'\x20'));for(let _0x3c85e5 of _0x5e6462[_0x5c82ee(0x400)](Ki))_0x419c80({'tableName':_0x3c85e5[0x1],'fieldName':_0x3c85e5[0x2]});for(let _0x38c8a0 of _0x5e6462[_0x5c82ee(0x400)](Yi))_0x419c80({'fieldName':_0x38c8a0[0x2],'scope':'this-row'});return Array[_0x5c82ee(0x4dd)](_0x3378df[_0x5c82ee(0x1da)]());}function na(_0x48e28e){const _0x5aac00=_0x354fcb;let _0x4d67c1=ia(_0x48e28e,()=>'\x20')[_0x5aac00(0x2b1)](Ui,'\x20')['replace'](Wi,'\x20')[_0x5aac00(0x2b1)](Gi,'\x20')['replace'](qi,_0x5aac00(0x49c))['replace'](Ji,_0x5aac00(0x49c))[_0x5aac00(0x2b1)](Ki,'\x20')['replace'](Yi,_0x5aac00(0x49c));return Vi['test'](_0x4d67c1);}function ra(_0x51a418,_0x128929){return ca(oa(_0x51a418,_0x128929),_0x128929);}function ia(_0x18a6ea,_0x4057f6){return aa(ra(_0x18a6ea,_0x4057f6),_0x4057f6);}function aa(_0x59cd6b,_0x4ceaef){const _0x4e6ca5=_0x354fcb;return _0x59cd6b[_0x4e6ca5(0x2b1)](/"(?:""|[^"])*"/g,_0x4ceaef);}function oa(_0x5b8dbf,_0x4ed800){const _0x306a05=_0x354fcb;return Hi[_0x306a05(0x186)]=0x0,_0x5b8dbf[_0x306a05(0x2b1)](Hi,(_0x2d387d,_0x19f8a5)=>la(_0x5b8dbf,_0x19f8a5)?_0x2d387d:_0x4ed800(_0x2d387d));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1a438a,_0x1a29d0){const _0x2cafba=_0x354fcb;let _0x41c5ab=[];for(sa[_0x2cafba(0x186)]=0x0;;){let _0x4f1140=sa[_0x2cafba(0x467)](_0x1a438a);if(_0x4f1140==null)break;if(la(_0x1a438a,_0x4f1140[_0x2cafba(0x250)]))continue;let _0x4072e8=sa[_0x2cafba(0x186)]-0x1,_0x5c7c4f=0x0;for(let _0x13564d=_0x4072e8;_0x13564d<_0x1a438a[_0x2cafba(0x458)];_0x13564d++)if(_0x1a438a[_0x13564d]==='['&&_0x5c7c4f++,_0x1a438a[_0x13564d]===']'&&(_0x5c7c4f--,_0x5c7c4f===0x0)){_0x41c5ab[_0x2cafba(0x1f3)]({'start':_0x4f1140[_0x2cafba(0x250)],'end':_0x13564d+0x1}),sa[_0x2cafba(0x186)]=_0x13564d+0x1;break;}}if(_0x41c5ab['length']===0x0)return _0x1a438a;let _0x2d7fd0='',_0x5c1959=0x0;for(let _0x4bd938 of _0x41c5ab)_0x2d7fd0+=_0x1a438a[_0x2cafba(0x192)](_0x5c1959,_0x4bd938['start']),_0x2d7fd0+=_0x1a29d0(_0x1a438a[_0x2cafba(0x192)](_0x4bd938[_0x2cafba(0x191)],_0x4bd938[_0x2cafba(0x3ce)])),_0x5c1959=_0x4bd938['end'];return _0x2d7fd0+_0x1a438a[_0x2cafba(0x192)](_0x5c1959);}function la(_0x12f2ce,_0x2cb3a4){let _0x1d8872=!0x1;for(let _0x18475d=0x0;_0x18475d<_0x2cb3a4;_0x18475d++)_0x12f2ce[_0x18475d]==='\x22'&&(_0x1d8872&&_0x12f2ce[_0x18475d+0x1]==='\x22'?_0x18475d++:_0x1d8872=!_0x1d8872);return _0x1d8872;}function ua(_0x21a0d2,_0x513b6e,_0x58e547,_0x3f098c){const _0x1db954=_0x354fcb;let _0x2242b1=da(_0x21a0d2[_0x1db954(0x4e4)],_0x513b6e,_0x58e547,_0x3f098c);return{'table':_0x2242b1,'field':_0x2242b1?Object[_0x1db954(0x1da)](_0x2242b1[_0x1db954(0x480)])['find'](_0xdb584=>_0xdb584['name']===_0x21a0d2[_0x1db954(0x2c8)]):void 0x0};}function da(_0x3f3d4f,_0x15e354,_0x44a674,_0x597ca4){const _0x2b859b=_0x354fcb;if(!_0x3f3d4f)return _0x15e354;if(!_0x44a674){var _0x300f49;let _0x32fdcb=_0x3f3d4f[_0x2b859b(0x4f1)]();return _0x32fdcb===_0x15e354['id']['toLowerCase']()||_0x32fdcb===_0x15e354[_0x2b859b(0x1e0)][_0x2b859b(0x4f1)]()||_0x32fdcb===((_0x300f49=_0x15e354['formulaName'])==null?void 0x0:_0x300f49[_0x2b859b(0x4f1)]())?_0x15e354:void 0x0;}let _0x1817f2=_0x3f3d4f['toLowerCase'](),_0x52b89f=_0x597ca4??_0x49362b(_0x44a674),_0x3e604e=Object[_0x2b859b(0x1da)](_0x44a674[_0x2b859b(0x2ba)])[_0x2b859b(0x397)](_0x5cc984=>{const _0x484325=_0x2b859b;var _0x4523df;return _0x5cc984['id'][_0x484325(0x4f1)]()===_0x1817f2||_0x5cc984[_0x484325(0x1e0)][_0x484325(0x4f1)]()===_0x1817f2||((_0x4523df=_0x52b89f['get'](_0x5cc984['id']))==null?void 0x0:_0x4523df['toLowerCase']())===_0x1817f2||fa(_0x5cc984['id'])[_0x484325(0x4f1)]()===_0x1817f2;});return _0x3e604e['length']===0x1?_0x3e604e[0x0]:void 0x0;}function fa(_0x488e2f){const _0xbd6be9=_0x354fcb;return _0xbd6be9(0x29d)+Array[_0xbd6be9(0x4dd)](_0x488e2f,_0x10d7b5=>{const _0x186ba2=_0xbd6be9;var _0x1ba89f;return/[A-Za-z0-9]/['test'](_0x10d7b5)?_0x10d7b5:'_x'+(((_0x1ba89f=_0x10d7b5[_0x186ba2(0x1c6)](0x0))==null?void 0x0:_0x1ba89f[_0x186ba2(0x349)](0x10))??'0')+'_';})[_0xbd6be9(0x4b5)]('');}const pa=new Xi();function ma(_0x2cea02,_0x1dddaa,_0x4845ad){const _0x4f4907=_0x354fcb;var _0x7fd86c;if(_0x4845ad[_0x4f4907(0x33a)]!==_0x19bf94['Formula'])return!0x0;let _0x54aced=String(((_0x7fd86c=_0x4845ad[_0x4f4907(0x342)])==null?void 0x0:_0x7fd86c[_0x4f4907(0x23a)])??''),_0x5e87e2=_0x2cea02[_0x4f4907(0x1f9)]();return pa['validateFormula'](_0x54aced,_0x5e87e2[_0x4f4907(0x2ba)][_0x1dddaa],{'snapshot':_0x5e87e2})[_0x4f4907(0x35c)];}function $(_0x197eb8,_0x505d41,_0x3608fd){const _0xbde71e=_0x354fcb;let _0x36c746=_0x197eb8[_0xbde71e(0x1f9)]()[_0xbde71e(0x2ba)][_0x505d41];if(!_0x36c746)return!0x1;let {viewIds:_0x4dc320,fieldIds:_0x485672,recordIds:_0x2c3f6a}=_0x3608fd||{};if(_0x4dc320){for(let _0x58b76f of _0x4dc320)if(!_0x36c746[_0xbde71e(0x38b)][_0x58b76f])return!0x1;}if(_0x485672){for(let _0x397315 of _0x485672)if(!_0x36c746[_0xbde71e(0x480)][_0x397315])return!0x1;}if(_0x2c3f6a){for(let _0xdc7b34 of _0x2c3f6a)if(!_0x36c746[_0xbde71e(0x45a)][_0xdc7b34])return!0x1;}return!0x0;}function ha(_0x3a2e3e,_0x3c5451,_0x3f9b13){const _0x4a60d0=_0x354fcb;if(_0x3f9b13['id']===_0x3b44b5||_0x3f9b13[_0x4a60d0(0x33a)]===_0x19bf94[_0x4a60d0(0x44f)]||_0x37b436(_0x3f9b13[_0x4a60d0(0x1e0)])||!ma(_0x3a2e3e,_0x3c5451,_0x3f9b13))return!0x1;let _0x495b4e=_0x3a2e3e[_0x4a60d0(0x1f9)]();if(!Be(_0x495b4e,_0x3f9b13)['valid'])return!0x1;if(_0x3f9b13['type']!==_0x19bf94['RecordLink'])return!0x0;let _0x49a022=N(_0x3f9b13);if(!_0x49a022)return!0x1;if(_0x49a022[_0x4a60d0(0x274)]===void 0x0)return!0x0;if(_0x49a022[_0x4a60d0(0x274)]!==_0x170c14[_0x4a60d0(0x3a0)]||_0x49a022['targetTableId']!==_0x3c5451||_0x49a022[_0x4a60d0(0x215)]!==!0x1)return!0x1;let _0x38dcad=_0x495b4e[_0x4a60d0(0x2ba)][_0x3c5451];return!Object[_0x4a60d0(0x1da)](_0x38dcad[_0x4a60d0(0x480)])[_0x4a60d0(0x257)](_0x3ea3cd=>{const _0x5512cc=_0x4a60d0;var _0x5b6660;return _0x3ea3cd['id']!==_0x3f9b13['id']&&_0x3ea3cd[_0x5512cc(0x33a)]===_0x19bf94[_0x5512cc(0x2bd)]&&((_0x5b6660=N(_0x3ea3cd))==null?void 0x0:_0x5b6660['relationRole'])===_0x170c14[_0x5512cc(0x3a0)];});}function ga(_0x345c3b,_0x87d7c9,_0xab055d,_0x16d2ac){const _0x4f54cb=_0x354fcb;var _0x16da24;let _0x25fb32=_0x345c3b[_0x4f54cb(0x1f9)](),_0x446e12=(_0x16da24=_0x25fb32['tables'][_0x87d7c9])==null?void 0x0:_0x16da24[_0x4f54cb(0x480)][_0xab055d];return!_0x446e12||_0x446e12['id']===_0x3b44b5||_0x446e12[_0x4f54cb(0x33a)]===_0x19bf94[_0x4f54cb(0x44f)]?!0x1:_0x446e12[_0x4f54cb(0x33a)]!==_0x19bf94[_0x4f54cb(0x2bd)]||Ve(_0x25fb32,_0x446e12,ya(_0x16d2ac))[_0x4f54cb(0x35c)];}function _a(_0xa8053e,_0x2bfbbe,_0x1f2f04){const _0x29df09=_0x354fcb;let _0x335e32=_0xa8053e[_0x29df09(0x1f9)]()[_0x29df09(0x2ba)][_0x2bfbbe];return!_0x335e32||!_0x3605be(_0x1f2f04['id'])||_0x335e32['records'][_0x1f2f04['id']]||Object[_0x29df09(0x32b)][_0x29df09(0x42f)][_0x29df09(0x331)](_0x1f2f04[_0x29df09(0x1da)],_0x3b44b5)&&_0x1f2f04[_0x29df09(0x1da)][_0x3b44b5]!==_0x1f2f04['id']?!0x1:Object[_0x29df09(0x1e2)](_0x1f2f04[_0x29df09(0x1da)])['every'](([_0x4d0990,_0x3c0a44])=>_0x4d0990===_0x3b44b5||ga(_0xa8053e,_0x2bfbbe,_0x4d0990,_0x3c0a44));}function va(_0x5704fa){const _0x5e5b0e=_0x354fcb;return{..._0x5704fa,'values':{..._0x5704fa[_0x5e5b0e(0x1da)],[_0x3b44b5]:_0x5704fa['id']}};}function ya(_0x115a3b){const _0x16b531=_0x354fcb;if(_0x115a3b&&typeof _0x115a3b==_0x16b531(0x269)&&!Array['isArray'](_0x115a3b)&&'v'in _0x115a3b){let _0x15b14a=_0x115a3b['v'];return _0x15b14a===void 0x0?null:_0x15b14a;}return _0x115a3b;}function ba(_0x7f7105,_0x5e44e0,_0x17d11d,_0x210a05){const _0x535135=_0x354fcb;let _0x4cdadc=_0x7f7105[_0x535135(0x1f9)]()['tables'][_0x5e44e0];if(!_0x4cdadc)return null;let _0x486af9=qe(_0x4cdadc),_0x3ea08d=_0x486af9??Je(_0x4cdadc),_0x4714c3=_0x17d11d[_0x535135(0x257)](_0x40f3cd=>Object[_0x535135(0x32b)][_0x535135(0x42f)][_0x535135(0x331)](_0x40f3cd[_0x535135(0x1da)],_0x3ea08d)),_0x2fcf1c=_0x486af9?_0x4cdadc['fields'][_0x486af9]:_0x4714c3?Ye(_0x4cdadc,_0x3ea08d,_0x210a05):null,_0x531478=[];for(let _0x5bfde9 of _0x17d11d){let _0x14ed18=_0x5bfde9[_0x535135(0x1da)][_0x3ea08d],_0x150edf=_0x2fcf1c!==null&&Object[_0x535135(0x32b)]['hasOwnProperty']['call'](_0x5bfde9[_0x535135(0x1da)],_0x3ea08d),_0x33c4d0=ya(_0x14ed18),_0x4b7ad2=null;if(_0x150edf){if(typeof _0x33c4d0!=_0x535135(0x471)||!ze(_0x33c4d0,!0x1)['valid'])return null;_0x4b7ad2=_0x33c4d0;}let _0x6634e9={};if(Object[_0x535135(0x1e2)](_0x5bfde9[_0x535135(0x1da)])['forEach'](([_0x29b999,_0x931916])=>{(!_0x150edf||_0x29b999!==_0x3ea08d)&&(_0x6634e9[_0x29b999]=_0x931916);}),!_a(_0x7f7105,_0x5e44e0,{..._0x5bfde9,'values':_0x6634e9}))return null;let _0x482e79={..._0x5bfde9['values']};_0x4b7ad2!==null&&(_0x482e79[_0x3ea08d]=_0x4b7ad2),_0x531478[_0x535135(0x1f3)](va({..._0x5bfde9,'values':_0x482e79}));}return{'records':_0x531478,'hierarchyFieldToMaterialize':_0x486af9?null:_0x2fcf1c,'hierarchyChanges':Qe(_0x4cdadc,_0x531478)};}const xa={'id':_0x354fcb(0x1f6),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2bb5ea,_0x58ae91){const _0x28ada7=_0x354fcb;if(!_0x58ae91)return!0x1;let _0x19df08=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3414e2),{unitId:_0x1f57b8,tableId:_0x3b9538,records:_0x80130f}=_0x58ae91,_0x131cbb=_0x19df08[_0x28ada7(0x2e5)](_0x1f57b8,_0x28d752[_0x28ada7(0x201)]),_0xf69d7c=_0x80130f[_0x28ada7(0x29b)](_0x1812ee=>_0x1812ee['id']);if(!_0x131cbb||!$(_0x131cbb,_0x3b9538)||new Set(_0xf69d7c)[_0x28ada7(0x473)]!==_0xf69d7c[_0x28ada7(0x458)])return!0x1;let _0xad5f1b=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3ff846),_0x15f111=_0x2bb5ea['get'](_0x5153d9),_0x1bc1d7=_0x2bb5ea[_0x28ada7(0x4a8)](Kr),_0x2ed0af=_0x131cbb[_0x28ada7(0x1f9)](),_0x4426f5=ba(_0x131cbb,_0x3b9538,_0x80130f);if(!_0x4426f5)return!0x1;let {records:_0xb7cbd8,hierarchyChanges:_0x4eaa1a,hierarchyFieldToMaterialize:_0x2ec815}=_0x4426f5,_0x12e5a4=_0x2ec815?_0x1bc1d7[_0x28ada7(0x20a)](_0x131cbb,_0x3b9538,_0x2ec815,_0x2ed0af[_0x28ada7(0x2ba)][_0x3b9538]['fieldOrder'][_0x28ada7(0x458)]):null,_0x4daf63=_0x1bc1d7[_0x28ada7(0x518)](_0x131cbb,_0x3b9538,_0xb7cbd8),_0x8bcc53=R([..._0x12e5a4?[_0x12e5a4]:[],_0x4daf63]),_0x3e1fe4=new z()[_0x28ada7(0x2aa)](_0x2ed0af,_0x8bcc53),_0x24cfe1={'unitId':_0x1f57b8,'op':_0x8bcc53,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a:void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x58ae91['source']??'ui':void 0x0},_0x545842={..._0x24cfe1,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x29f):void 0x0},_0x26a821={'unitId':_0x1f57b8,'op':_0x3e1fe4,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a[_0x28ada7(0x29b)](_0x4317ba=>({..._0x4317ba,'oldParentRecordId':_0x4317ba[_0x28ada7(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x37e):void 0x0};return _0xad5f1b['syncExecuteCommand'](Q['id'],_0x24cfe1)?(_0x19df08[_0x28ada7(0x3f4)](_0x1f57b8),_0x15f111['pushUndoRedo']({'unitID':_0x1f57b8,'undoMutations':[{'id':Q['id'],'params':_0x26a821}],'redoMutations':[{'id':Q['id'],'params':_0x545842}]}),!0x0):!0x1;}},Sa={'id':_0x354fcb(0x179),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1e4a33,_0x3dd651)=>{const _0xfbd03=_0x354fcb;if(!_0x3dd651)return!0x1;let _0x51a65d=_0x1e4a33[_0xfbd03(0x4a8)](_0x3414e2),{unitId:_0x5cc4dc,tableId:_0x4aa2c9,recordIds:_0x187f2d}=_0x3dd651,_0x36ed72=_0x51a65d[_0xfbd03(0x2e5)](_0x5cc4dc,_0x28d752[_0xfbd03(0x201)]);if(!_0x36ed72||!$(_0x36ed72,_0x4aa2c9,{'recordIds':_0x187f2d}))return!0x1;let _0x183521=_0x1e4a33[_0xfbd03(0x4a8)](_0x3ff846),_0x13dc4a=_0x1e4a33[_0xfbd03(0x4a8)](_0x5153d9),_0x57b7a4=_0x36ed72[_0xfbd03(0x1f9)](),_0x1a542a=et(_0x57b7a4[_0xfbd03(0x2ba)][_0x4aa2c9],_0x187f2d),_0x57e342=new W(),_0x3ee215=new z(),_0x207b6a=_0x57e342[_0xfbd03(0x305)](_0x57b7a4,_0x4aa2c9,_0x187f2d),_0x4050a3=_0x3ee215[_0xfbd03(0x2ad)](_0x57b7a4,_0x207b6a),_0x5e37a4=_0x57e342[_0xfbd03(0x51d)](_0x57b7a4,_0x4050a3,_0x4aa2c9,_0x187f2d),_0x52333d={'unitId':_0x5cc4dc,'op':_0x207b6a,'hierarchyChanges':_0x1a542a,'source':_0x3dd651['source']??'ui'},_0x222847={..._0x52333d,'source':'redo'},_0x554d10={'unitId':_0x5cc4dc,'op':_0x5e37a4,'hierarchyChanges':_0x1a542a['map'](_0x175afb=>({..._0x175afb,'oldParentRecordId':_0x175afb['parentRecordId'],'parentRecordId':_0x175afb[_0xfbd03(0x30d)]})),'source':_0xfbd03(0x37e)};return _0x183521['syncExecuteCommand'](Q['id'],_0x52333d)?(_0x51a65d['focusUnit'](_0x5cc4dc),_0x13dc4a['pushUndoRedo']({'unitID':_0x5cc4dc,'undoMutations':[{'id':Q['id'],'params':_0x554d10}],'redoMutations':[{'id':Q['id'],'params':_0x222847}]}),!0x0):!0x1;}},Ca={'id':_0x354fcb(0x3f1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x23996e,_0x99b429)=>{const _0x4b9865=_0x354fcb;if(!_0x99b429)return!0x1;let _0x1f7fe7=_0x23996e[_0x4b9865(0x4a8)](_0x3414e2),{unitId:_0x27ade3,tableId:_0x1b6f27,fieldId:_0x438555,input:_0x262da8}=_0x99b429,_0x36b248=_0x1f7fe7['getUnit'](_0x27ade3,_0x28d752['UNIVER_BASE']);if(!_0x36b248||_0x438555===_0x3b44b5||!$(_0x36b248,_0x1b6f27,{'fieldIds':[_0x438555]}))return!0x1;let _0x34f37f=_0x23996e[_0x4b9865(0x4a8)](_0x3ff846),_0x275283=_0x23996e[_0x4b9865(0x4a8)](_0x5153d9),_0x308809=_0x36b248[_0x4b9865(0x1f9)]();if(!ha(_0x36b248,_0x1b6f27,{..._0x308809[_0x4b9865(0x2ba)][_0x1b6f27]['fields'][_0x438555],..._0x262da8}))return!0x1;let _0x2918d0=new W()[_0x4b9865(0x2b7)](_0x308809,_0x1b6f27,_0x438555,_0x262da8),_0x12298b=new z()[_0x4b9865(0x2aa)](_0x308809,_0x2918d0),_0x354dab={'unitId':_0x27ade3,'op':_0x2918d0},_0x48e1b4={'unitId':_0x27ade3,'op':_0x12298b};return _0x34f37f[_0x4b9865(0x4c6)](Q['id'],_0x354dab)?(_0x1f7fe7[_0x4b9865(0x3f4)](_0x27ade3),_0x275283[_0x4b9865(0x519)]({'unitID':_0x27ade3,'undoMutations':[{'id':Q['id'],'params':_0x48e1b4}],'redoMutations':[{'id':Q['id'],'params':_0x354dab}]}),!0x0):!0x1;}},wa={'id':_0x354fcb(0x324),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3aab6f,_0x55c2ea){const _0x9cbfdb=_0x354fcb;var _0x27a8b5;if(!_0x55c2ea)return!0x1;let {unitId:_0x11b9fd,tableId:_0x153a46,parentRecordId:_0x364e06}=_0x55c2ea,_0x6b95fe=_0x3aab6f['get'](_0x3414e2),_0xf142f7=_0x6b95fe[_0x9cbfdb(0x2e5)](_0x11b9fd,_0x28d752['UNIVER_BASE']);if(!_0xf142f7||!$(_0xf142f7,_0x153a46,{'recordIds':[_0x364e06]}))throw new P('missingRecord');let _0x4319f1=_0xf142f7[_0x9cbfdb(0x1f9)](),_0x6363a0=_0x4319f1['tables'][_0x153a46],_0x110656=qe(_0x6363a0),_0x337106=_0x110656??_0x55c2ea[_0x9cbfdb(0x46e)]??Je(_0x6363a0);if(_0x110656&&_0x55c2ea[_0x9cbfdb(0x46e)]&&_0x55c2ea[_0x9cbfdb(0x46e)]!==_0x110656||_0x6363a0['fields'][_0x337106]&&!F(_0x6363a0,_0x337106))throw new P(_0x9cbfdb(0x4a7));if((tt(_0x6363a0,_0x337106)[_0x9cbfdb(0x3ff)][_0x9cbfdb(0x4a8)](_0x364e06)??0x0)+0x1>=0x5)throw new P('maxDepth');if(!_a(_0xf142f7,_0x153a46,_0x55c2ea[_0x9cbfdb(0x52b)]))return!0x1;let _0x53cca1=va({..._0x55c2ea[_0x9cbfdb(0x52b)],'values':{..._0x55c2ea[_0x9cbfdb(0x52b)][_0x9cbfdb(0x1da)],[_0x337106]:Re([_0x364e06])}}),_0x59ee0e=_0x3aab6f['get'](Kr),_0x560339=new W(),_0x26c8fe=_0x6363a0['fields'][_0x337106],_0x4bfd3e=_0x26c8fe?((_0x27a8b5=N(_0x26c8fe))==null?void 0x0:_0x27a8b5[_0x9cbfdb(0x274)])===_0x170c14['Parent']?null:_0x560339[_0x9cbfdb(0x409)](_0x4319f1,_0x153a46,_0x337106,{'config':{..._0x26c8fe[_0x9cbfdb(0x342)],'relationRole':_0x170c14['Parent']}}):_0x59ee0e[_0x9cbfdb(0x20a)](_0xf142f7,_0x153a46,Ye(_0x6363a0,_0x337106,_0x55c2ea[_0x9cbfdb(0x398)]),_0x6363a0[_0x9cbfdb(0x1e1)][_0x9cbfdb(0x458)]),_0x7a1bba=_0x59ee0e[_0x9cbfdb(0x40c)](_0xf142f7,_0x153a46,_0x53cca1),_0x388c52=R([..._0x4bfd3e?[_0x4bfd3e]:[],_0x7a1bba]),_0x17c134=new z()[_0x9cbfdb(0x2aa)](_0x4319f1,_0x388c52),_0x9fb53={'tableId':_0x153a46,'fieldId':_0x337106,'recordId':_0x53cca1['id'],'oldParentRecordId':null,'parentRecordId':_0x364e06},_0x5ea679={'unitId':_0x11b9fd,'op':_0x388c52,'trigger':wa['id'],'hierarchyChanges':[_0x9fb53],'source':_0x55c2ea[_0x9cbfdb(0x4cd)]??'ui'},_0x4775b5={..._0x5ea679,'source':_0x9cbfdb(0x29f)},_0x260d21={'unitId':_0x11b9fd,'op':_0x17c134,'trigger':wa['id'],'hierarchyChanges':[{..._0x9fb53,'oldParentRecordId':_0x364e06,'parentRecordId':null}],'source':_0x9cbfdb(0x37e)};return _0x3aab6f[_0x9cbfdb(0x4a8)](_0x3ff846)[_0x9cbfdb(0x4c6)](Q['id'],_0x5ea679)?(_0x6b95fe[_0x9cbfdb(0x3f4)](_0x11b9fd),_0x3aab6f['get'](_0x5153d9)[_0x9cbfdb(0x519)]({'unitID':_0x11b9fd,'undoMutations':[{'id':Q['id'],'params':_0x260d21}],'redoMutations':[{'id':Q['id'],'params':_0x4775b5}]}),!0x0):!0x1;}},Ta={'id':_0x354fcb(0x19f),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x26e7e8,_0x2741af){const _0x407ada=_0x354fcb;if(!_0x2741af)return!0x1;let _0x1d98c8=_0x26e7e8[_0x407ada(0x4a8)](_0x3414e2),{unitId:_0x1503df,tableId:_0x510f9a,field:_0x1ea059,index:_0x4fd16c,viewIndexes:_0x291694}=_0x2741af,_0x29337b=_0x1d98c8[_0x407ada(0x2e5)](_0x1503df,_0x28d752['UNIVER_BASE']);if(!_0x29337b||!$(_0x29337b,_0x510f9a)||_0x29337b[_0x407ada(0x1f9)]()[_0x407ada(0x2ba)][_0x510f9a][_0x407ada(0x480)][_0x1ea059['id']]||_0x4fd16c===0x0||!ha(_0x29337b,_0x510f9a,_0x1ea059))return!0x1;let _0xcc8dbe=_0x26e7e8[_0x407ada(0x4a8)](_0x3ff846),_0x2003f9=_0x26e7e8[_0x407ada(0x4a8)](_0x5153d9),_0x1935f6=_0x26e7e8[_0x407ada(0x4a8)](Kr)[_0x407ada(0x20a)](_0x29337b,_0x510f9a,_0x1ea059,_0x4fd16c,_0x291694),_0x4f9467=new z()[_0x407ada(0x2aa)](_0x29337b[_0x407ada(0x1f9)](),_0x1935f6),_0x422506={'unitId':_0x1503df,'op':_0x1935f6},_0x4264be={'unitId':_0x1503df,'op':_0x4f9467};return _0xcc8dbe[_0x407ada(0x4c6)](Q['id'],_0x422506)?(_0x1d98c8[_0x407ada(0x3f4)](_0x1503df),_0x2003f9[_0x407ada(0x519)]({'unitID':_0x1503df,'undoMutations':[{'id':Q['id'],'params':_0x4264be}],'redoMutations':[{'id':Q['id'],'params':_0x422506}]}),!0x0):!0x1;}},Ea={'id':_0x354fcb(0x393),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xd7bbb4,_0x4b8556){const _0x4dd6ad=_0x354fcb;if(!_0x4b8556)return!0x1;let _0x1cccc0=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3414e2),{unitId:_0x3f1bd7,tableId:_0x35d6c4,record:_0x113f98}=_0x4b8556,_0x19b8e7=_0x1cccc0['getUnit'](_0x3f1bd7,_0x28d752[_0x4dd6ad(0x201)]);if(!_0x19b8e7||!$(_0x19b8e7,_0x35d6c4))return!0x1;let _0x3c1f01=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3ff846),_0x267c82=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x5153d9),_0x426612=_0xd7bbb4[_0x4dd6ad(0x4a8)](Kr),_0x4be1e3=_0x19b8e7[_0x4dd6ad(0x1f9)](),_0x215bad=ba(_0x19b8e7,_0x35d6c4,[_0x113f98]);if(!_0x215bad)return!0x1;let [_0x5018ce]=_0x215bad[_0x4dd6ad(0x45a)],{hierarchyChanges:_0x5a6d6b,hierarchyFieldToMaterialize:_0x5575c6}=_0x215bad,_0x229658=_0x5575c6?_0x426612[_0x4dd6ad(0x20a)](_0x19b8e7,_0x35d6c4,_0x5575c6,_0x4be1e3['tables'][_0x35d6c4][_0x4dd6ad(0x1e1)]['length']):null,_0x536131=_0x426612[_0x4dd6ad(0x40c)](_0x19b8e7,_0x35d6c4,_0x5018ce),_0x574137=R([..._0x229658?[_0x229658]:[],_0x536131]),_0x5cd684=new z()[_0x4dd6ad(0x2aa)](_0x4be1e3,_0x574137),_0x4663db={'unitId':_0x3f1bd7,'op':_0x574137,'hierarchyChanges':_0x5a6d6b['length']?_0x5a6d6b:void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4b8556[_0x4dd6ad(0x4cd)]??'ui':void 0x0},_0xc146ae={..._0x4663db,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x29f):void 0x0},_0x12c965={'unitId':_0x3f1bd7,'op':_0x5cd684,'hierarchyChanges':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x5a6d6b[_0x4dd6ad(0x29b)](_0x505e6a=>({..._0x505e6a,'oldParentRecordId':_0x505e6a[_0x4dd6ad(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x37e):void 0x0};return _0x3c1f01[_0x4dd6ad(0x4c6)](Q['id'],_0x4663db)?(_0x1cccc0['focusUnit'](_0x3f1bd7),_0x267c82['pushUndoRedo']({'unitID':_0x3f1bd7,'undoMutations':[{'id':Q['id'],'params':_0x12c965}],'redoMutations':[{'id':Q['id'],'params':_0xc146ae}]}),!0x0):!0x1;}},Da=_0x354fcb(0x189);function Oa(_0x875f8b,_0x56c75d,_0x185f62){const _0x408055=_0x354fcb;if(!_0x56c75d[_0x408055(0x3bc)]())return{'valid':!0x1,'reason':_0x408055(0x18b),'error':'required'};if(_0x56c75d['length']>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':_0x408055(0x43d)};if(_0x56c75d['startsWith']('\x27')||_0x56c75d[_0x408055(0x424)]('\x27'))return{'valid':!0x1,'reason':_0x408055(0x3ae),'error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x408055(0x235)](_0x56c75d))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':_0x408055(0x42c)};if(!_0x5b975c(_0x56c75d))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x408055(0x20e)};let _0x4de5bd=_0x56c75d[_0x408055(0x4f1)]();return Object[_0x408055(0x1da)](_0x875f8b['tables'])[_0x408055(0x257)](_0x5e11c6=>_0x5e11c6['id']!==_0x185f62&&_0x5e11c6[_0x408055(0x1e0)][_0x408055(0x4f1)]()===_0x4de5bd)?{'valid':!0x1,'reason':_0x408055(0x17d),'error':_0x408055(0x52d)}:{'valid':!0x0};}function ka(_0x2f7180,_0x34069b){const _0x53efe9=_0x354fcb;let _0x22d0ba=_0x34069b[_0x53efe9(0x2b1)](/[:\\/?*\[\]]/g,'\x20')[_0x53efe9(0x2b1)](/^'+|'+$/g,'')[_0x53efe9(0x3bc)]()||_0x53efe9(0x494),_0x1fb671=0x1;for(;;){let _0x969cff=_0x1fb671===0x1?'':'\x20'+_0x1fb671,_0x5580cb=''+_0x22d0ba[_0x53efe9(0x192)](0x0,0x1f-_0x969cff[_0x53efe9(0x458)])+_0x969cff;if(Oa(_0x2f7180,_0x5580cb)[_0x53efe9(0x35c)])return _0x5580cb;_0x1fb671++;}}const Aa={'id':_0x354fcb(0x285),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3b74cf,_0x5252d8)=>{const _0x4ec82f=_0x354fcb;if(!_0x5252d8)return!0x1;let _0x3dfaf6=_0x3b74cf['get'](_0x3414e2),{unitId:_0x29086c,table:_0xa8ee86,index:_0x59b5d9}=_0x5252d8,_0x12bee5=_0x3dfaf6['getUnit'](_0x29086c,_0x28d752[_0x4ec82f(0x201)]);if(!_0x12bee5||_0x12bee5[_0x4ec82f(0x1f9)]()['tables'][_0xa8ee86['id']]||!Oa(_0x12bee5[_0x4ec82f(0x1f9)](),_0xa8ee86[_0x4ec82f(0x1e0)])[_0x4ec82f(0x35c)])return!0x1;try{_0x136f40(_0xa8ee86);}catch{return!0x1;}let _0x803a5d=_0x3b74cf[_0x4ec82f(0x4a8)](_0x3ff846),_0x123b68=_0x3b74cf[_0x4ec82f(0x4a8)](_0x5153d9),_0x1219ba=_0x12bee5[_0x4ec82f(0x1f9)](),_0x3c7b60=new W()[_0x4ec82f(0x500)](_0x1219ba,_0xa8ee86,_0x59b5d9),_0x5d2dde=new z()[_0x4ec82f(0x2aa)](_0x1219ba,_0x3c7b60),_0x35c665={'unitId':_0x29086c,'op':_0x3c7b60},_0x6aa692={'unitId':_0x29086c,'op':_0x5d2dde};return _0x803a5d['syncExecuteCommand'](Q['id'],_0x35c665)?(_0x3dfaf6[_0x4ec82f(0x3f4)](_0x29086c),_0x123b68[_0x4ec82f(0x519)]({'unitID':_0x29086c,'undoMutations':[{'id':Q['id'],'params':_0x6aa692}],'redoMutations':[{'id':Q['id'],'params':_0x35c665}]}),!0x0):!0x1;}};function ja(_0xd5401a,_0x40f96b,_0x204a4d=[]){const _0x160c63=_0x354fcb;let _0x447ff2=new Set([...Object[_0x160c63(0x1da)](_0xd5401a[_0x160c63(0x480)])[_0x160c63(0x397)](_0xe50ba0=>_0xe50ba0)[_0x160c63(0x29b)](_0x4641d3=>_0x4641d3['name']),..._0x204a4d[_0x160c63(0x29b)](_0x433627=>_0x433627['name'])]);if(!_0x447ff2[_0x160c63(0x23f)](_0x40f96b))return _0x40f96b;let _0x2d2332=0x2;for(;_0x447ff2[_0x160c63(0x23f)](_0x40f96b+'\x20'+_0x2d2332);)_0x2d2332++;return _0x40f96b+'\x20'+_0x2d2332;}function Ma(_0x1da0d6,_0x1f9cb5){const _0x5f2842=_0x354fcb;if(!_0x1da0d6||!_0x1f9cb5[_0x5f2842(0x458)])return;let _0x31b6b4=[..._0x1da0d6];return _0x1f9cb5[_0x5f2842(0x461)](_0x110a15=>{const _0x4c1edd=_0x5f2842;_0x31b6b4[_0x4c1edd(0x231)](_0x110a15)||_0x31b6b4[_0x4c1edd(0x1f3)](_0x110a15);}),_0x31b6b4;}const Na={'options':[{'id':'todo','name':_0x354fcb(0x48c),'color':_0x354fcb(0x47c)},{'id':_0x354fcb(0x359),'name':_0x354fcb(0x41d),'color':_0x354fcb(0x3a1)},{'id':_0x354fcb(0x414),'name':_0x354fcb(0x3de),'color':'#BBF7D0'}]},Pa={'locale':'en-US','pattern':_0x354fcb(0x1cd),'includeTime':!0x1,'hourCycle':_0x354fcb(0x1a8),'defaultMode':_0x354fcb(0x3e0)};function Fa(_0x5c7f17,_0x531222,_0x33fbd7,_0x4097c2){const _0x217588=_0x354fcb;var _0x1deb9a;let _0x428c33=new W(),_0x3d433b=_0x5c7f17[_0x217588(0x2ba)][_0x531222],_0x2e0b69=_0x3d433b?{..._0x33fbd7,'fieldOrder':[_0x3b44b5,...(_0x33fbd7[_0x217588(0x1e1)]??_0x3d433b['fieldOrder'])[_0x217588(0x397)](_0x94c1ae=>_0x94c1ae!==_0x3b44b5)],'fieldSettings':{..._0x33fbd7[_0x217588(0x484)],[_0x3b44b5]:{...(_0x1deb9a=_0x33fbd7[_0x217588(0x484)])==null?void 0x0:_0x1deb9a[_0x3b44b5],'hidden':!0x0}}}:_0x33fbd7;if(_0x3d433b&&_0x2e0b69[_0x217588(0x33a)]==='kanban'){let _0x2abafd=La(_0x3d433b,_0x2e0b69),_0x2cc439=_0x2abafd['changed']?{..._0x2e0b69,'config':_0x2abafd[_0x217588(0x342)],'fieldOrder':_0x2abafd[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return R([..._0x2abafd[_0x217588(0x480)][_0x217588(0x29b)](_0x5e9bbc=>_0x428c33[_0x217588(0x2c0)](_0x5c7f17,_0x531222,{'field':_0x5e9bbc})),_0x428c33[_0x217588(0x446)](_0x5c7f17,_0x531222,_0x2cc439,_0x4097c2)]);}if(!_0x3d433b||_0x2e0b69[_0x217588(0x33a)]!=='calendar'&&_0x2e0b69[_0x217588(0x33a)]!==_0x217588(0x3b0))return _0x428c33['createView'](_0x5c7f17,_0x531222,_0x2e0b69,_0x4097c2);let _0x2ffda2=Ia(_0x3d433b,_0x2e0b69),_0x1ebb98=_0x2ffda2[_0x217588(0x2ab)]?{..._0x2e0b69,'config':_0x2ffda2['config'],'fieldOrder':_0x2ffda2[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return _0x2e0b69[_0x217588(0x33a)]==='gantt'&&Ba(_0x2e0b69)&&(_0x1ebb98=Va(_0x3d433b,_0x1ebb98,_0x2ffda2[_0x217588(0x480)])),R([..._0x2ffda2[_0x217588(0x480)][_0x217588(0x29b)](_0x2fbd64=>_0x428c33['createField'](_0x5c7f17,_0x531222,{'field':_0x2fbd64})),_0x428c33['createView'](_0x5c7f17,_0x531222,_0x1ebb98,_0x4097c2)]);}function Ia(_0x204d68,_0x4e4455,_0x31b047=!0x1){const _0x430d0a=_0x354fcb;var _0x3fb864,_0x1056d7;let _0x21766c=_0x204d68[_0x430d0a(0x1e1)]['filter'](_0x2b9226=>Ua(_0x204d68,_0x2b9226)),_0x42412c=[],_0xa497a5={..._0x4e4455[_0x430d0a(0x342)]??{}},_0x36ac66=typeof _0xa497a5[_0x430d0a(0x240)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5[_0x430d0a(0x240)])?_0xa497a5[_0x430d0a(0x240)]:_0x21766c[0x0],_0x251cde=typeof _0xa497a5[_0x430d0a(0x171)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5['endDateFieldId'])&&_0xa497a5['endDateFieldId']!==_0x36ac66?_0xa497a5['endDateFieldId']:_0x21766c[_0x430d0a(0x22f)](_0x2347dd=>_0x2347dd!==_0x36ac66);if(!_0x36ac66){let _0xbca362=Wa(_0x204d68,_0x42412c,_0x4e4455[_0x430d0a(0x33a)]==='gantt'?_0x430d0a(0x387):_0x430d0a(0x440));_0x42412c[_0x430d0a(0x1f3)](_0xbca362),_0x36ac66=_0xbca362['id'];}if((_0x4e4455['type']===_0x430d0a(0x3b0)||_0x31b047)&&!_0x251cde){let _0x1c6254=Wa(_0x204d68,_0x42412c,_0x430d0a(0x4ad));_0x42412c[_0x430d0a(0x1f3)](_0x1c6254),_0x251cde=_0x1c6254['id'];}_0x4e4455[_0x430d0a(0x33a)]==='calendar'&&!_0x251cde&&delete _0xa497a5[_0x430d0a(0x171)],_0xa497a5['startDateFieldId']=_0x36ac66,_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x234)&&_0x251cde&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde),_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x3b0)&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde??_0x36ac66);let _0x358a1b=Ma(_0x4e4455[_0x430d0a(0x1e1)],_0x42412c[_0x430d0a(0x29b)](_0x128f3a=>_0x128f3a['id']));return{'changed':_0x42412c[_0x430d0a(0x458)]>0x0||_0xa497a5['startDateFieldId']!==((_0x3fb864=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x3fb864['startDateFieldId'])||_0xa497a5['endDateFieldId']!==((_0x1056d7=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x1056d7[_0x430d0a(0x171)])||!(!_0x358a1b||_0x30f9db[_0x430d0a(0x52f)](_0x358a1b,_0x4e4455[_0x430d0a(0x1e1)]??[])),'fields':_0x42412c,'config':_0xa497a5,'fieldOrder':_0x358a1b};}function La(_0x5413d2,_0x3623c5){const _0x132b62=_0x354fcb;var _0x5d8ee2;let _0x43d64b=[],_0x361821={..._0x3623c5[_0x132b62(0x342)]??{}},_0x559677=typeof _0x361821[_0x132b62(0x38a)]==_0x132b62(0x471)&&Ra(_0x5413d2,_0x361821[_0x132b62(0x38a)])?_0x361821[_0x132b62(0x38a)]:_0x5413d2[_0x132b62(0x1e1)]['find'](_0x51916e=>Ra(_0x5413d2,_0x51916e));if(!_0x559677){let _0xf323cd=za(_0x5413d2,_0x43d64b);_0x43d64b[_0x132b62(0x1f3)](_0xf323cd),_0x559677=_0xf323cd['id'];}_0x361821['groupFieldId']=_0x559677;let _0x30315d=Ma(_0x3623c5['fieldOrder'],_0x43d64b[_0x132b62(0x29b)](_0x49b383=>_0x49b383['id']));return{'changed':_0x43d64b[_0x132b62(0x458)]>0x0||_0x361821[_0x132b62(0x38a)]!==((_0x5d8ee2=_0x3623c5[_0x132b62(0x342)])==null?void 0x0:_0x5d8ee2[_0x132b62(0x38a)])||!(!_0x30315d||_0x30f9db[_0x132b62(0x52f)](_0x30315d,_0x3623c5[_0x132b62(0x1e1)]??[])),'fields':_0x43d64b,'config':_0x361821,'fieldOrder':_0x30315d};}function Ra(_0x355e2a,_0x45b67a){const _0x502f28=_0x354fcb;let _0xee7caf=_0x45b67a?_0x355e2a[_0x502f28(0x480)][_0x45b67a]:null;return _0xee7caf?[_0x19bf94[_0x502f28(0x407)],_0x19bf94[_0x502f28(0x283)],_0x19bf94[_0x502f28(0x4c5)],_0x19bf94[_0x502f28(0x1e5)],_0x19bf94['Group'],_0x19bf94[_0x502f28(0x19e)]]['includes'](_0xee7caf[_0x502f28(0x33a)]):!0x1;}function za(_0x103e40,_0x114031){const _0x1ff470=_0x354fcb;return{'id':_0x1ff470(0x46a)+_0x3ba5f0(0x8),'name':ja(_0x103e40,_0x1ff470(0x1df),_0x114031),'type':_0x19bf94[_0x1ff470(0x407)],'config':_0x30f9db['deepClone'](Na)};}function Ba(_0x2a8b06){const _0x16ff69=_0x354fcb;return Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x342)]??{})[_0x16ff69(0x458)]===0x0&&Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x484)]??{})['length']===0x0;}function Va(_0x5cb3ba,_0x4dcbe0,_0x16073b){const _0x3c5735=_0x354fcb;let _0x3ba525={..._0x4dcbe0[_0x3c5735(0x342)]??{}},_0x10767d=_0x16073b[_0x3c5735(0x29b)](_0x528c78=>_0x528c78['id']),_0x5a004b=[..._0x5cb3ba[_0x3c5735(0x1e1)],..._0x10767d],_0x48e017=typeof _0x3ba525[_0x3c5735(0x345)]==_0x3c5735(0x471)&&Ha(_0x5cb3ba,_0x16073b,_0x3ba525['titleFieldId'])?_0x3ba525[_0x3c5735(0x345)]:_0x5cb3ba['primaryFieldId'],_0x42e04d=typeof _0x3ba525[_0x3c5735(0x240)]=='string'?_0x3ba525[_0x3c5735(0x240)]:'',_0x662f03=typeof _0x3ba525[_0x3c5735(0x171)]==_0x3c5735(0x471)?_0x3ba525[_0x3c5735(0x171)]:_0x42e04d,_0x54a491=new Set([_0x48e017,_0x42e04d,_0x662f03][_0x3c5735(0x397)](_0x3a32fe=>_0x3a32fe&&Ha(_0x5cb3ba,_0x16073b,_0x3a32fe))),_0x473216=Object[_0x3c5735(0x2e8)](_0x5a004b[_0x3c5735(0x2a2)](_0x2af9aa=>_0x54a491['has'](_0x2af9aa)||!Ha(_0x5cb3ba,_0x16073b,_0x2af9aa)?[]:[[_0x2af9aa,{'hidden':!0x0}]]));return{..._0x4dcbe0,'config':{..._0x3ba525,'titleFieldId':_0x48e017},'fieldSettings':_0x473216};}function Ha(_0x306f2c,_0xe0dd89,_0x1058db){const _0x2c84a9=_0x354fcb;return!!(_0x306f2c[_0x2c84a9(0x480)][_0x1058db]??_0xe0dd89['find'](_0x37989f=>_0x37989f['id']===_0x1058db))&&!0x0;}function Ua(_0x598f3e,_0xedb8d9){const _0x4fe151=_0x354fcb;let _0x1663a5=_0xedb8d9?_0x598f3e[_0x4fe151(0x480)][_0xedb8d9]:null;return!!_0x1663a5&&_0x1663a5[_0x4fe151(0x33a)]===_0x19bf94[_0x4fe151(0x440)]&&_0x1663a5['readonly']!==!0x0&&_0x1663a5[_0x4fe151(0x1cb)]!==!0x0;}function Wa(_0x21a08a,_0x431532,_0x44f2ab){const _0x483204=_0x354fcb;let _0x67bbc=new Set([...Object[_0x483204(0x51b)](_0x21a08a[_0x483204(0x480)]),..._0x431532[_0x483204(0x29b)](_0x475d1c=>_0x475d1c['id'])]),_0x14502b='fld-'+_0x3ba5f0(0x8);for(;_0x67bbc[_0x483204(0x23f)](_0x14502b);)_0x14502b='fld-'+_0x3ba5f0(0x8);return{'id':_0x14502b,'name':ja(_0x21a08a,_0x44f2ab,_0x431532),'type':_0x19bf94[_0x483204(0x440)],'config':{...Pa}};}const Ga={'id':_0x354fcb(0x4fa),'type':_0x3e23cf['COMMAND'],'handler':(_0x13f132,_0x2a4eca)=>{const _0x4096c7=_0x354fcb;if(!_0x2a4eca)return!0x1;let _0x545df3=_0x13f132[_0x4096c7(0x4a8)](_0x3414e2),{unitId:_0x329b02,tableId:_0x4952e1,view:_0x1273f8,index:_0x2d41fb}=_0x2a4eca,_0x5db18e=_0x545df3[_0x4096c7(0x2e5)](_0x329b02,_0x28d752[_0x4096c7(0x201)]);if(!_0x5db18e||!$(_0x5db18e,_0x4952e1)||_0x5db18e[_0x4096c7(0x1f9)]()['tables'][_0x4952e1]['views'][_0x1273f8['id']])return!0x1;let _0xb8a458=_0x13f132['get'](_0x3ff846),_0x491fb4=_0x13f132[_0x4096c7(0x4a8)](_0x5153d9),_0xb50c0d=_0x5db18e[_0x4096c7(0x1f9)](),_0x3ddb44=Fa(_0xb50c0d,_0x4952e1,_0x1273f8,_0x2d41fb),_0x5f4253=new z()[_0x4096c7(0x2aa)](_0xb50c0d,_0x3ddb44),_0x5a9ac4={'historyAction':_0x4096c7(0x26f),'unitId':_0x329b02,'op':_0x3ddb44,'viewType':_0x1273f8[_0x4096c7(0x33a)]},_0xe1a655={'historyAction':_0x4096c7(0x438),'unitId':_0x329b02,'op':_0x5f4253,'viewType':_0x1273f8['type']};return _0xb8a458[_0x4096c7(0x4c6)](Q['id'],_0x5a9ac4)?(_0x545df3['focusUnit'](_0x329b02),_0x491fb4[_0x4096c7(0x519)]({'unitID':_0x329b02,'undoMutations':[{'id':Q['id'],'params':_0xe1a655}],'redoMutations':[{'id':Q['id'],'params':_0x5a9ac4}]}),!0x0):!0x1;}},Ka={'id':_0x354fcb(0x46b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x1e0a5e,_0x59fa23){const _0x547ad4=_0x354fcb;if(!_0x59fa23)return!0x1;let _0x1e4c91=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3414e2),{unitId:_0x1362a0,tableId:_0x49b947,fieldId:_0x12b8f0}=_0x59fa23,_0xb8829c=_0x1e4c91[_0x547ad4(0x2e5)](_0x1362a0,_0x28d752[_0x547ad4(0x201)]);if(!_0xb8829c)return!0x1;let _0x41ad1f=_0xb8829c[_0x547ad4(0x1f9)](),_0x336a89=_0x41ad1f[_0x547ad4(0x2ba)][_0x49b947];if(!$(_0xb8829c,_0x49b947,{'fieldIds':[_0x12b8f0]})||_0x336a89[_0x547ad4(0x4cf)]===_0x12b8f0||_0x12b8f0===_0x3b44b5)return!0x1;let _0x24d767=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3ff846),_0x2d7dde=_0x1e0a5e[_0x547ad4(0x4a8)](_0x5153d9),_0x325091=new W()[_0x547ad4(0x21f)](_0x41ad1f,_0x49b947,_0x12b8f0),_0x15a44e=new z()['invertOp'](_0x41ad1f,_0x325091),_0xd6ec12={'unitId':_0x1362a0,'op':_0x325091},_0x3e00ec={'unitId':_0x1362a0,'op':_0x15a44e};return _0x24d767[_0x547ad4(0x4c6)](Q['id'],_0xd6ec12)?(_0x1e4c91['focusUnit'](_0x1362a0),_0x2d7dde[_0x547ad4(0x519)]({'unitID':_0x1362a0,'undoMutations':[{'id':Q['id'],'params':_0x3e00ec}],'redoMutations':[{'id':Q['id'],'params':_0xd6ec12}]}),!0x0):!0x1;}},qa={'id':_0x354fcb(0x17b),'type':_0x3e23cf['COMMAND'],'handler':(_0x5c561b,_0x44291d)=>{const _0x2db902=_0x354fcb;if(!_0x44291d)return!0x1;let _0x4a27af=_0x5c561b[_0x2db902(0x4a8)](_0x3414e2),{unitId:_0xd435fa,tableId:_0xaa252e,recordId:_0xbce966}=_0x44291d,_0x570016=_0x4a27af['getUnit'](_0xd435fa,_0x28d752[_0x2db902(0x201)]);if(!_0x570016||!$(_0x570016,_0xaa252e,{'recordIds':[_0xbce966]}))return!0x1;let _0x11ca65=_0x5c561b['get'](_0x3ff846),_0x557f4e=_0x5c561b[_0x2db902(0x4a8)](_0x5153d9),_0x2198f3=_0x570016[_0x2db902(0x1f9)](),_0x7467b6=et(_0x2198f3['tables'][_0xaa252e],[_0xbce966]),_0x44caec=new W(),_0x24d89d=new z(),_0x478784=_0x44caec[_0x2db902(0x375)](_0x2198f3,_0xaa252e,_0xbce966),_0x3f2598=_0x24d89d[_0x2db902(0x2ad)](_0x2198f3,_0x478784),_0x2ec71a=_0x44caec['createDeleteRecordsUndoOp'](_0x2198f3,_0x3f2598,_0xaa252e,[_0xbce966]),_0x10910f={'unitId':_0xd435fa,'op':_0x478784,'hierarchyChanges':_0x7467b6,'source':_0x44291d[_0x2db902(0x4cd)]??'ui'},_0x3afdb6={..._0x10910f,'source':'redo'},_0x148a0f={'unitId':_0xd435fa,'op':_0x2ec71a,'hierarchyChanges':_0x7467b6[_0x2db902(0x29b)](_0x5b11ea=>({..._0x5b11ea,'oldParentRecordId':_0x5b11ea[_0x2db902(0x1b1)],'parentRecordId':_0x5b11ea[_0x2db902(0x30d)]})),'source':'undo'};return _0x11ca65[_0x2db902(0x4c6)](Q['id'],_0x10910f)?(_0x4a27af['focusUnit'](_0xd435fa),_0x557f4e['pushUndoRedo']({'unitID':_0xd435fa,'undoMutations':[{'id':Q['id'],'params':_0x148a0f}],'redoMutations':[{'id':Q['id'],'params':_0x3afdb6}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x306ae6,_0x2a1b87)=>{const _0x5d9c33=_0x354fcb;if(!_0x2a1b87)return!0x1;let _0x88afcb=_0x306ae6[_0x5d9c33(0x4a8)](_0x3414e2),{unitId:_0x29b358,tableId:_0x4fa18f}=_0x2a1b87,_0x5a50e2=_0x88afcb[_0x5d9c33(0x2e5)](_0x29b358,_0x28d752['UNIVER_BASE']);if(!_0x5a50e2||!$(_0x5a50e2,_0x4fa18f))return!0x1;let _0x54bd87=_0x306ae6[_0x5d9c33(0x4a8)](_0x3ff846),_0x28e214=_0x306ae6[_0x5d9c33(0x4a8)](_0x5153d9),_0x21cd1f=_0x5a50e2['getSnapshot'](),_0x6aa2b=He(_0x21cd1f,_0x4fa18f);if(_0x6aa2b[_0x5d9c33(0x458)]>0x0)return console[_0x5d9c33(0x206)]('[DeleteBaseTableCommand]:\x20table\x20\x22'+_0x4fa18f+_0x5d9c33(0x3e9)+_0x6aa2b[_0x5d9c33(0x29b)](_0x5ba2cb=>_0x5ba2cb[_0x5d9c33(0x1c3)]+'.'+_0x5ba2cb['fieldId'])[_0x5d9c33(0x4b5)](',\x20')+'.'),!0x1;let _0x1da5a1=new W()['deleteTable'](_0x21cd1f,_0x4fa18f),_0x7fa810=new z()['invertOp'](_0x21cd1f,_0x1da5a1),_0x5e1721={'unitId':_0x29b358,'op':_0x1da5a1},_0x5e76b7={'unitId':_0x29b358,'op':_0x7fa810};return _0x54bd87[_0x5d9c33(0x4c6)](Q['id'],_0x5e1721)?(_0x88afcb[_0x5d9c33(0x3f4)](_0x29b358),_0x28e214[_0x5d9c33(0x519)]({'unitID':_0x29b358,'undoMutations':[{'id':Q['id'],'params':_0x5e76b7}],'redoMutations':[{'id':Q['id'],'params':_0x5e1721}]}),!0x0):!0x1;}},Ya={'id':_0x354fcb(0x25b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x22a43b,_0x42dcc1)=>{const _0x957ca9=_0x354fcb;if(!_0x42dcc1)return!0x1;let _0xec3305=_0x22a43b[_0x957ca9(0x4a8)](_0x3414e2),{unitId:_0xae219,tableId:_0x5d8cba,viewId:_0x455666}=_0x42dcc1,_0x5bbc10=_0xec3305[_0x957ca9(0x2e5)](_0xae219,_0x28d752[_0x957ca9(0x201)]);if(!_0x5bbc10||!$(_0x5bbc10,_0x5d8cba,{'viewIds':[_0x455666]}))return!0x1;let _0x103fef=_0x22a43b[_0x957ca9(0x4a8)](_0x3ff846),_0x5c7216=_0x22a43b[_0x957ca9(0x4a8)](_0x5153d9),_0x171a9f=_0x5bbc10['getSnapshot'](),_0x4b2cc8=_0x171a9f['tables'][_0x5d8cba][_0x957ca9(0x38b)][_0x455666][_0x957ca9(0x33a)],_0x2f4ff4=new W()['deleteView'](_0x171a9f,_0x5d8cba,_0x455666),_0x2d0035=new z()[_0x957ca9(0x2aa)](_0x171a9f,_0x2f4ff4),_0x1ff356={'historyAction':_0x957ca9(0x438),'unitId':_0xae219,'op':_0x2f4ff4,'viewType':_0x4b2cc8},_0x5a05c3={'historyAction':_0x957ca9(0x26f),'unitId':_0xae219,'op':_0x2d0035,'viewType':_0x4b2cc8};return _0x103fef['syncExecuteCommand'](Q['id'],_0x1ff356)?(_0xec3305[_0x957ca9(0x3f4)](_0xae219),_0x5c7216[_0x957ca9(0x519)]({'unitID':_0xae219,'undoMutations':[{'id':Q['id'],'params':_0x5a05c3}],'redoMutations':[{'id':Q['id'],'params':_0x1ff356}]}),!0x0):!0x1;}},Xa={'id':_0x354fcb(0x1d1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3dba74,_0x3c805e)=>{const _0x4695c0=_0x354fcb;if(!_0x3c805e)return!0x1;let _0x5b91b1=_0x3dba74['get'](_0x3414e2),{unitId:_0x23735a,tableId:_0x175c40,sourceFieldId:_0x1da5b1,field:_0x4156e6,index:_0xd8f6b5,viewIndexes:_0x523806}=_0x3c805e,_0x448a9c=_0x5b91b1[_0x4695c0(0x2e5)](_0x23735a,_0x28d752[_0x4695c0(0x201)]);if(!_0x448a9c||!$(_0x448a9c,_0x175c40,{'fieldIds':[_0x1da5b1]})||_0x1da5b1===_0x3b44b5||_0x448a9c[_0x4695c0(0x1f9)]()['tables'][_0x175c40][_0x4695c0(0x480)][_0x4156e6['id']]||_0xd8f6b5===0x0||!ha(_0x448a9c,_0x175c40,_0x4156e6))return!0x1;let _0x452cb1=_0x3dba74[_0x4695c0(0x4a8)](_0x3ff846),_0x3da0a9=_0x3dba74[_0x4695c0(0x4a8)](_0x5153d9),_0x3e36d7=_0x448a9c[_0x4695c0(0x1f9)](),_0x287418=new W()[_0x4695c0(0x199)](_0x3e36d7,_0x175c40,_0x1da5b1,{'field':_0x4156e6,'index':_0xd8f6b5,'viewIndexes':_0x523806}),_0x2025da=new z()[_0x4695c0(0x2aa)](_0x3e36d7,_0x287418),_0x207180={'unitId':_0x23735a,'op':_0x287418},_0x8af91b={'unitId':_0x23735a,'op':_0x2025da};return _0x452cb1[_0x4695c0(0x4c6)](Q['id'],_0x207180)?(_0x5b91b1[_0x4695c0(0x3f4)](_0x23735a),_0x3da0a9['pushUndoRedo']({'unitID':_0x23735a,'undoMutations':[{'id':Q['id'],'params':_0x8af91b}],'redoMutations':[{'id':Q['id'],'params':_0x207180}]}),!0x0):!0x1;}},Za={'id':_0x354fcb(0x2fa),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xaf1a27,_0x2f57cd)=>{const _0x30168b=_0x354fcb;if(!_0x2f57cd)return!0x1;let _0x26898c=_0xaf1a27[_0x30168b(0x4a8)](_0x3414e2),{unitId:_0x3cea23,tableId:_0x28ce4f,sourceRecordId:_0x263f92,record:_0x415531}=_0x2f57cd,_0x29f3a1=_0x26898c[_0x30168b(0x2e5)](_0x3cea23,_0x28d752[_0x30168b(0x201)]);if(!_0x29f3a1||!$(_0x29f3a1,_0x28ce4f,{'recordIds':[_0x263f92]})||!_a(_0x29f3a1,_0x28ce4f,_0x415531))return!0x1;let _0x263ae6=_0xaf1a27[_0x30168b(0x4a8)](_0x3ff846),_0x4bb6fe=_0xaf1a27[_0x30168b(0x4a8)](_0x5153d9),_0x2a9883=_0x29f3a1[_0x30168b(0x1f9)](),_0x2aa80f=va(_0x415531),_0x32d13e=Qe(_0x2a9883['tables'][_0x28ce4f],[_0x2aa80f]),_0x51a12f=new W()['duplicateRecord'](_0x2a9883,_0x28ce4f,_0x263f92,_0x2aa80f),_0x365954=new z()['invertOp'](_0x2a9883,_0x51a12f),_0x405aa9={'unitId':_0x3cea23,'op':_0x51a12f,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e:void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x2f57cd[_0x30168b(0x4cd)]??'ui':void 0x0},_0x18f5e0={..._0x405aa9,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x29f):void 0x0},_0x46bcb7={'unitId':_0x3cea23,'op':_0x365954,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e['map'](_0xa4d85c=>({..._0xa4d85c,'oldParentRecordId':_0xa4d85c['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x37e):void 0x0};return _0x263ae6[_0x30168b(0x4c6)](Q['id'],_0x405aa9)?(_0x26898c[_0x30168b(0x3f4)](_0x3cea23),_0x4bb6fe[_0x30168b(0x519)]({'unitID':_0x3cea23,'undoMutations':[{'id':Q['id'],'params':_0x46bcb7}],'redoMutations':[{'id':Q['id'],'params':_0x18f5e0}]}),!0x0):!0x1;}},Qa={'id':_0x354fcb(0x45d),'type':_0x3e23cf['COMMAND'],'handler'(_0x748279,_0xee54d2){const _0x52c269=_0x354fcb;if(!_0xee54d2)return!0x1;let _0x3a994b=_0x748279[_0x52c269(0x4a8)](_0x3414e2),{unitId:_0x9e353e,tableId:_0x492cbb,viewId:_0x43f8fb,ensureEndDateField:_0x26b8e9}=_0xee54d2,_0x427fd0=_0x3a994b[_0x52c269(0x2e5)](_0x9e353e,_0x28d752[_0x52c269(0x201)]);if(!_0x427fd0||!$(_0x427fd0,_0x492cbb,{'viewIds':[_0x43f8fb]}))return!0x1;let _0x25755f=_0x427fd0[_0x52c269(0x1f9)](),_0x3da82d=_0x25755f[_0x52c269(0x2ba)][_0x492cbb],_0x362842=_0x3da82d==null?void 0x0:_0x3da82d[_0x52c269(0x38b)][_0x43f8fb];if(!_0x3da82d||!_0x362842||_0x362842[_0x52c269(0x33a)]!=='calendar'&&_0x362842[_0x52c269(0x33a)]!==_0x52c269(0x3b0))return!0x1;let _0x501af2=Ia(_0x3da82d,_0x362842,_0x26b8e9===!0x0);if(!_0x501af2['changed'])return!0x1;let _0x825fc=_0x748279['get'](_0x3ff846),_0x531050=_0x748279['get'](_0x5153d9),_0x1e9b23=new W(),_0x2017d7=[..._0x501af2[_0x52c269(0x480)][_0x52c269(0x29b)](_0x1c8ff9=>_0x1e9b23[_0x52c269(0x2c0)](_0x25755f,_0xee54d2[_0x52c269(0x1c3)],{'field':_0x1c8ff9})),$a([...eo(_0xee54d2[_0x52c269(0x1c3)],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x342)],_0x362842[_0x52c269(0x342)],_0x501af2[_0x52c269(0x342)])];_0x501af2['fieldOrder']&&_0x2017d7['push']($a([...eo(_0xee54d2['tableId'],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x1e1)],_0x362842[_0x52c269(0x1e1)],_0x501af2[_0x52c269(0x1e1)]));let _0x3dc2da=R(_0x2017d7),_0x33e338=new z()[_0x52c269(0x2aa)](_0x25755f,_0x3dc2da),_0x50b8d3={'unitId':_0x9e353e,'op':_0x3dc2da},_0x5d1368={'unitId':_0x9e353e,'op':_0x33e338};return _0x825fc['syncExecuteCommand'](Q['id'],_0x50b8d3)?(_0x3a994b[_0x52c269(0x3f4)](_0x9e353e),_0x531050[_0x52c269(0x519)]({'unitID':_0x9e353e,'undoMutations':[{'id':Q['id'],'params':_0x5d1368}],'redoMutations':[{'id':Q['id'],'params':_0x50b8d3}]}),!0x0):!0x1;}};function $a(_0x52a463,_0x3c9a97,_0x4b4415){const _0x1ac691=_0x354fcb;return _0x3c9a97===void 0x0?_0x370803[_0x1ac691(0x207)](_0x52a463,_0x4b4415):_0x370803[_0x1ac691(0x333)](_0x52a463,_0x3c9a97,_0x4b4415);}function eo(_0x5b7ca4,_0x545f00){const _0x53287c=_0x354fcb;return[_0x53287c(0x2ba),_0x5b7ca4,'views',_0x545f00];}const to={'id':_0x354fcb(0x4b3),'type':_0x3e23cf['COMMAND'],'handler':(_0x4c5305,_0x2f3825)=>{const _0x1c6625=_0x354fcb;if(!_0x2f3825)return!0x1;let _0x223060=_0x4c5305[_0x1c6625(0x4a8)](_0x3414e2),{unitId:_0x4ea858,tableId:_0x5a1caf,fieldId:_0x1a3dce,target:_0x4254fa}=_0x2f3825,_0x170056=_0x223060['getUnit'](_0x4ea858,_0x28d752[_0x1c6625(0x201)]),_0x43eec4=_0x4254fa[_0x1c6625(0x381)]??_0x4254fa[_0x1c6625(0x27b)];if(!_0x170056||!!_0x4254fa[_0x1c6625(0x381)]==!!_0x4254fa[_0x1c6625(0x27b)]||!_0x43eec4||_0x43eec4===_0x1a3dce||_0x1a3dce===_0x3b44b5||_0x4254fa[_0x1c6625(0x381)]===_0x3b44b5||!$(_0x170056,_0x5a1caf,{'fieldIds':[_0x1a3dce,_0x43eec4]}))return!0x1;let _0x128da3=_0x4c5305[_0x1c6625(0x4a8)](_0x3ff846),_0x3c9330=_0x4c5305[_0x1c6625(0x4a8)](_0x5153d9),_0x5e8189=_0x170056[_0x1c6625(0x1f9)](),_0x119fca=new W()[_0x1c6625(0x399)](_0x5e8189,_0x5a1caf,_0x1a3dce,_0x4254fa),_0x3b2e36=new z()['invertOp'](_0x5e8189,_0x119fca),_0x30b13e={'unitId':_0x4ea858,'op':_0x119fca},_0x29d436={'unitId':_0x4ea858,'op':_0x3b2e36};return _0x128da3[_0x1c6625(0x4c6)](Q['id'],_0x30b13e)?(_0x223060[_0x1c6625(0x3f4)](_0x4ea858),_0x3c9330[_0x1c6625(0x519)]({'unitID':_0x4ea858,'undoMutations':[{'id':Q['id'],'params':_0x29d436}],'redoMutations':[{'id':Q['id'],'params':_0x30b13e}]}),!0x0):!0x1;}},no={'id':_0x354fcb(0x368),'type':_0x3e23cf['COMMAND'],'handler':(_0x5a635f,_0x38604c)=>{const _0x10554c=_0x354fcb;var _0x31b1f3;if(!_0x38604c)return!0x1;let {unitId:_0xb22739,tableId:_0x4ecb87,recordId:_0x4fc00c,parentRecordId:_0x5770be,orderKey:_0x41ec6b}=_0x38604c,_0x2db3b1=_0x5a635f['get'](_0x3414e2),_0x5a53d1=_0x2db3b1[_0x10554c(0x2e5)](_0xb22739,_0x28d752[_0x10554c(0x201)]);if(!_0x5a53d1||!$(_0x5a53d1,_0x4ecb87,{'recordIds':[_0x4fc00c,..._0x5770be?[_0x5770be]:[]]}))throw new P('missingRecord');let _0x425442=_0x5a53d1[_0x10554c(0x1f9)](),_0x5632aa=_0x425442[_0x10554c(0x2ba)][_0x4ecb87],_0x2cbfb8=qe(_0x5632aa),_0x4175d1=_0x2cbfb8??_0x38604c[_0x10554c(0x46e)]??Je(_0x5632aa);if(_0x2cbfb8&&_0x38604c['fieldId']&&_0x38604c[_0x10554c(0x46e)]!==_0x2cbfb8||_0x5632aa[_0x10554c(0x480)][_0x4175d1]&&!F(_0x5632aa,_0x4175d1))throw new P(_0x10554c(0x4a7));let _0x4f4e3f=tt(_0x5632aa,_0x4175d1),_0x3bf6c7=it(_0x4f4e3f,_0x4fc00c,_0x5770be);if(!_0x3bf6c7[_0x10554c(0x35c)])throw new P(_0x3bf6c7['reason']===_0x3f9b5e['SelfParent']?'selfParent':_0x3bf6c7[_0x10554c(0x2d9)]===_0x3f9b5e[_0x10554c(0x270)]?_0x10554c(0x363):_0x10554c(0x228));let _0x1da767=_0x4f4e3f[_0x10554c(0x36e)]['get'](_0x4fc00c)??null,_0x375be8=_0x5632aa[_0x10554c(0x45a)][_0x4fc00c][_0x10554c(0x3ef)];if(_0x1da767===_0x5770be&&(_0x41ec6b===void 0x0||_0x41ec6b===_0x375be8))return!0x0;let _0x3f7923=_0x1da767!==_0x5770be,_0x34c0da=_0x41ec6b!==void 0x0&&_0x41ec6b!==_0x375be8,_0x1bd6f6=new W(),_0x2e4013=[],_0x2520eb=_0x5632aa[_0x10554c(0x480)][_0x4175d1],_0x2cbf12=_0x3f7923&&(!_0x2520eb||((_0x31b1f3=N(_0x2520eb))==null?void 0x0:_0x31b1f3[_0x10554c(0x274)])!==_0x170c14[_0x10554c(0x3a0)])?_0x2520eb?_0x1bd6f6[_0x10554c(0x409)](_0x425442,_0x4ecb87,_0x4175d1,{'config':{..._0x2520eb[_0x10554c(0x342)],'relationRole':_0x170c14[_0x10554c(0x3a0)]}}):_0x5a635f[_0x10554c(0x4a8)](Kr)[_0x10554c(0x20a)](_0x5a53d1,_0x4ecb87,Ye(_0x5632aa,_0x4175d1,_0x38604c[_0x10554c(0x398)]),_0x5632aa[_0x10554c(0x1e1)][_0x10554c(0x458)]):null;_0x2cbf12&&_0x2e4013['push'](_0x2cbf12),_0x3f7923&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6['updateCell'](_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1,_0x5770be?Re([_0x5770be]):'')),_0x34c0da&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6[_0x10554c(0x229)](_0x425442,_0x4ecb87,_0x4fc00c,_0x41ec6b));let _0x207867=R(_0x2e4013),_0x3fd9b8={'tableId':_0x4ecb87,'fieldId':_0x4175d1,'recordId':_0x4fc00c,'oldParentRecordId':_0x1da767,'parentRecordId':_0x5770be},_0x41efd7={'unitId':_0xb22739,'op':_0x207867,'trigger':no['id'],'hierarchyChanges':[_0x3fd9b8],'source':_0x38604c[_0x10554c(0x4cd)]??'ui'},_0x5ad8ef={..._0x41efd7,'source':_0x10554c(0x29f)};if(!_0x5a635f['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x41efd7))return!0x1;let _0x4e04ae=_0x5a53d1[_0x10554c(0x1f9)](),_0x1d9180=[];_0x3f7923&&_0x1d9180[_0x10554c(0x1f3)](ro(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1)),_0x34c0da&&_0x1d9180[_0x10554c(0x1f3)](io(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c)),_0x2cbf12&&_0x1d9180[_0x10554c(0x1f3)](new z()[_0x10554c(0x2aa)](_0x425442,_0x2cbf12));let _0x5c6776={'unitId':_0xb22739,'op':R(_0x1d9180),'trigger':no['id'],'hierarchyChanges':[{..._0x3fd9b8,'oldParentRecordId':_0x5770be,'parentRecordId':_0x1da767}],'source':'undo'};return _0x2db3b1[_0x10554c(0x3f4)](_0xb22739),_0x5a635f['get'](_0x5153d9)['pushUndoRedo']({'unitID':_0xb22739,'undoMutations':[{'id':Q['id'],'params':_0x5c6776}],'redoMutations':[{'id':Q['id'],'params':_0x5ad8ef}]}),!0x0;}};function ro(_0x40b907,_0x3117b2,_0x1ceb10,_0x111f5e,_0x59f36f){const _0x369dd2=_0x354fcb;var _0x12ec30,_0xefcbcd,_0x5625ba,_0x16ada7,_0x525e4d,_0x4a01ee,_0x33e579,_0x1baade;let _0x5cf63f=_0x40b907[_0x369dd2(0x2ba)][_0x1ceb10],_0x4a8a0c=_0x3117b2[_0x369dd2(0x2ba)][_0x1ceb10],_0x34ebaf=(_0x12ec30=_0x5cf63f[_0x369dd2(0x290)])==null?void 0x0:_0x12ec30[_0x111f5e],_0x42ab19=(_0xefcbcd=_0x5cf63f[_0x369dd2(0x288)])==null?void 0x0:_0xefcbcd[_0x59f36f],_0x3fa8dd=(_0x5625ba=_0x4a8a0c[_0x369dd2(0x290)])==null?void 0x0:_0x5625ba[_0x111f5e],_0x6e0e65=(_0x16ada7=_0x4a8a0c[_0x369dd2(0x288)])==null?void 0x0:_0x16ada7[_0x59f36f],_0x31a58a=_0x34ebaf==null||_0x42ab19==null||(_0x525e4d=_0x5cf63f[_0x369dd2(0x1cf)])==null||(_0x525e4d=_0x525e4d[_0x34ebaf])==null?void 0x0:_0x525e4d[_0x42ab19],_0x548242=_0x3fa8dd==null||_0x6e0e65==null||(_0x4a01ee=_0x4a8a0c['cellData'])==null||(_0x4a01ee=_0x4a01ee[_0x3fa8dd])==null?void 0x0:_0x4a01ee[_0x6e0e65],_0x402def=(_0x33e579=_0x5cf63f['records'][_0x111f5e])==null?void 0x0:_0x33e579[_0x369dd2(0x1da)][_0x59f36f],_0xd9d79=(_0x1baade=_0x4a8a0c['records'][_0x111f5e])==null?void 0x0:_0x1baade[_0x369dd2(0x1da)][_0x59f36f],_0x521aa5=[],_0x441ab6=ao(_0x34ebaf==null||_0x42ab19==null?null:U['cellData'](_0x1ceb10,_0x34ebaf,_0x42ab19),_0x31a58a,_0x548242);_0x441ab6&&_0x521aa5[_0x369dd2(0x1f3)](_0x441ab6);let _0x4add43=ao(U[_0x369dd2(0x4eb)](_0x1ceb10,_0x111f5e,_0x59f36f),_0x402def,_0xd9d79);return _0x4add43&&_0x521aa5[_0x369dd2(0x1f3)](_0x4add43),R(_0x521aa5);}function io(_0x5fe6f,_0x17fc84,_0x3c8c7a,_0x2d4069){const _0x3e8716=_0x354fcb;var _0x3de692,_0x426c55;let _0x55e8c2=_0x5fe6f[_0x3e8716(0x2ba)][_0x3c8c7a],_0x3377af=_0x17fc84[_0x3e8716(0x2ba)][_0x3c8c7a];return R([ao([...U[_0x3e8716(0x52b)](_0x3c8c7a,_0x2d4069),_0x3e8716(0x3ef)],(_0x3de692=_0x55e8c2[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x3de692[_0x3e8716(0x3ef)],(_0x426c55=_0x3377af[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x426c55['orderKey']),ao([...U[_0x3e8716(0x513)](_0x3c8c7a),_0x3e8716(0x22d)],_0x55e8c2[_0x3e8716(0x22d)],_0x3377af['recordOrder'])][_0x3e8716(0x397)](_0x5ef3c2=>!!_0x5ef3c2));}function ao(_0x3a28db,_0x3ad04c,_0x14bc0c){const _0x301064=_0x354fcb;if(!_0x3a28db||_0x3ad04c===void 0x0&&_0x14bc0c===void 0x0)return null;let _0x3abca5=_0x426ad9[_0x301064(0x448)]();return _0x14bc0c===void 0x0?_0x3abca5[_0x301064(0x246)](_0x3a28db,_0x3ad04c):_0x3ad04c===void 0x0?_0x3abca5[_0x301064(0x207)](_0x3a28db,_0x14bc0c):_0x3abca5['replaceOp'](_0x3a28db,_0x3ad04c,_0x14bc0c);}const oo={'id':_0x354fcb(0x48e),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xdf8b53,_0x3a6625)=>{const _0x5a063d=_0x354fcb;if(!_0x3a6625)return!0x1;let _0x5db2d1=_0xdf8b53[_0x5a063d(0x4a8)](_0x3414e2),{unitId:_0x3d9f7e,tableId:_0xb0766,viewId:_0x4571d0,target:_0x26714d}=_0x3a6625,_0x5a9183=_0x5db2d1[_0x5a063d(0x2e5)](_0x3d9f7e,_0x28d752[_0x5a063d(0x201)]),_0x28cd43=_0x26714d[_0x5a063d(0x2f6)]??_0x26714d[_0x5a063d(0x391)];if(!_0x5a9183||!_0x28cd43||_0x28cd43===_0x4571d0||!$(_0x5a9183,_0xb0766,{'viewIds':[_0x4571d0,_0x28cd43]}))return!0x1;let _0xaa1c99=_0xdf8b53[_0x5a063d(0x4a8)](_0x3ff846),_0x50f2e4=_0xdf8b53[_0x5a063d(0x4a8)](_0x5153d9),_0x56c390=_0x5a9183[_0x5a063d(0x1f9)](),_0x588aa7=new W()['moveView'](_0x56c390,_0xb0766,_0x4571d0,_0x26714d),_0x5c4e62=new z()['invertOp'](_0x56c390,_0x588aa7),_0x554b3b={'unitId':_0x3d9f7e,'op':_0x588aa7},_0x29025f={'unitId':_0x3d9f7e,'op':_0x5c4e62};return _0xaa1c99[_0x5a063d(0x4c6)](Q['id'],_0x554b3b)?(_0x5db2d1[_0x5a063d(0x3f4)](_0x3d9f7e),_0x50f2e4[_0x5a063d(0x519)]({'unitID':_0x3d9f7e,'undoMutations':[{'id':Q['id'],'params':_0x29025f}],'redoMutations':[{'id':Q['id'],'params':_0x554b3b}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x37fb73,_0x53b558)=>{const _0x25f328=_0x354fcb;if(!_0x53b558)return!0x1;let _0x59ead8=_0x37fb73['get'](_0x3414e2),{unitId:_0x19a7e5,tableId:_0xf87020,name:_0x284e99}=_0x53b558,_0x18d2e6=_0x59ead8[_0x25f328(0x2e5)](_0x19a7e5,_0x28d752[_0x25f328(0x201)]);if(!_0x18d2e6||!$(_0x18d2e6,_0xf87020)||!Oa(_0x18d2e6[_0x25f328(0x1f9)](),_0x284e99,_0xf87020)[_0x25f328(0x35c)])return!0x1;let _0x12a1d5=_0x37fb73[_0x25f328(0x4a8)](_0x3ff846),_0x14e801=_0x37fb73[_0x25f328(0x4a8)](_0x5153d9),_0x5df1e2=_0x18d2e6[_0x25f328(0x1f9)](),_0x310e93=new W()['renameTable'](_0x5df1e2,_0xf87020,_0x284e99),_0x27ca1b=new z()[_0x25f328(0x2aa)](_0x5df1e2,_0x310e93),_0x53626a={'unitId':_0x19a7e5,'op':_0x310e93},_0x1a5afd={'unitId':_0x19a7e5,'op':_0x27ca1b};return _0x12a1d5[_0x25f328(0x4c6)](Q['id'],_0x53626a)?(_0x59ead8[_0x25f328(0x3f4)](_0x19a7e5),_0x14e801[_0x25f328(0x519)]({'unitID':_0x19a7e5,'undoMutations':[{'id':Q['id'],'params':_0x1a5afd}],'redoMutations':[{'id':Q['id'],'params':_0x53626a}]}),!0x0):!0x1;}},co={'id':_0x354fcb(0x433),'type':_0x3e23cf['COMMAND'],'handler':(_0x54e0ad,_0x50e8d2)=>{const _0x2124e2=_0x354fcb;if(!_0x50e8d2)return!0x1;let _0x30e1ec=_0x54e0ad[_0x2124e2(0x4a8)](_0x3414e2),{unitId:_0xf46a8e,tableId:_0x99b171,viewId:_0x24a225,name:_0x134844}=_0x50e8d2,_0x5a905f=_0x30e1ec[_0x2124e2(0x2e5)](_0xf46a8e,_0x28d752[_0x2124e2(0x201)]);if(!_0x5a905f||!$(_0x5a905f,_0x99b171,{'viewIds':[_0x24a225]}))return!0x1;let _0x17631e=_0x54e0ad[_0x2124e2(0x4a8)](_0x3ff846),_0x24b004=_0x54e0ad[_0x2124e2(0x4a8)](_0x5153d9),_0x258a72=_0x5a905f['getSnapshot'](),_0x364395=new W()[_0x2124e2(0x370)](_0x258a72,_0x99b171,_0x24a225,_0x134844),_0x3b619d=new z()['invertOp'](_0x258a72,_0x364395),_0x11f6a9={'unitId':_0xf46a8e,'op':_0x364395},_0x2b4bff={'unitId':_0xf46a8e,'op':_0x3b619d};return _0x17631e[_0x2124e2(0x4c6)](Q['id'],_0x11f6a9)?(_0x30e1ec[_0x2124e2(0x3f4)](_0xf46a8e),_0x24b004[_0x2124e2(0x519)]({'unitID':_0xf46a8e,'undoMutations':[{'id':Q['id'],'params':_0x2b4bff}],'redoMutations':[{'id':Q['id'],'params':_0x11f6a9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2f56cc,_0x67d97d)=>{const _0x2960f0=_0x354fcb;if(!_0x67d97d)return!0x1;let _0x7b7705=_0x2f56cc[_0x2960f0(0x4a8)](_0x3414e2),{unitId:_0x47e351,tableId:_0xf7f4a1,viewId:_0x520360,fieldId:_0x8f2b65}=_0x67d97d,_0x65c667=_0x7b7705[_0x2960f0(0x2e5)](_0x47e351,_0x28d752[_0x2960f0(0x201)]);if(!_0x65c667||!$(_0x65c667,_0xf7f4a1,{'viewIds':[_0x520360],'fieldIds':[_0x8f2b65]}))return!0x1;let _0x2212ac=_0x2f56cc['get'](_0x3ff846),_0x17d3ea=_0x2f56cc[_0x2960f0(0x4a8)](_0x5153d9),_0x6cde4b=_0x65c667[_0x2960f0(0x1f9)](),_0x4dc9b5=new W()['updateViewConfig'](_0x6cde4b,_0xf7f4a1,_0x520360,{'groupFieldId':_0x8f2b65}),_0x58fe50=new z()[_0x2960f0(0x2aa)](_0x6cde4b,_0x4dc9b5),_0x1a984d={'unitId':_0x47e351,'op':_0x4dc9b5},_0x1d6bab={'unitId':_0x47e351,'op':_0x58fe50};return _0x2212ac[_0x2960f0(0x4c6)](Q['id'],_0x1a984d)?(_0x7b7705[_0x2960f0(0x3f4)](_0x47e351),_0x17d3ea[_0x2960f0(0x519)]({'unitID':_0x47e351,'undoMutations':[{'id':Q['id'],'params':_0x1d6bab}],'redoMutations':[{'id':Q['id'],'params':_0x1a984d}]}),!0x0):!0x1;}},uo={'id':'base.command.set-base-name','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x58b85e,_0x2a359d)=>{const _0x5baae1=_0x354fcb;if(!_0x2a359d)return!0x1;let _0xf889c9=_0x58b85e['get'](_0x3414e2),_0x373ca9=_0xf889c9[_0x5baae1(0x2e5)](_0x2a359d[_0x5baae1(0x278)],_0x28d752[_0x5baae1(0x201)]);if(!_0x373ca9)return!0x1;let _0x390c72=_0x373ca9[_0x5baae1(0x1f9)]()[_0x5baae1(0x1e0)];if(_0x390c72===_0x2a359d[_0x5baae1(0x1e0)])return!0x0;let _0x313438=new W(),_0x3bfe15=new z(),_0x1f73cb=[],_0x104a27=[],_0x3c4dfe=[_0x373ca9,..._0xf889c9[_0x5baae1(0x3c4)](_0x28d752[_0x5baae1(0x201)])[_0x5baae1(0x397)](_0x665e9a=>_0x665e9a[_0x5baae1(0x422)]()!==_0x2a359d[_0x5baae1(0x278)])];for(let _0x22ec3f of _0x3c4dfe){let _0x562c80=_0x22ec3f['getSnapshot'](),_0x574b4d=_0x22ec3f===_0x373ca9?_0x313438['setBaseName'](_0x562c80,_0x2a359d[_0x5baae1(0x1e0)]):_0x313438[_0x5baae1(0x1ed)](_0x562c80,_0x390c72,_0x2a359d[_0x5baae1(0x1e0)]);_0x574b4d&&(_0x1f73cb[_0x5baae1(0x1f3)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x574b4d,'trigger':uo['id']}}),_0x104a27[_0x5baae1(0x340)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x3bfe15[_0x5baae1(0x2aa)](_0x562c80,_0x574b4d),'trigger':uo['id']}}));}let _0x23028f=_0x58b85e[_0x5baae1(0x4a8)](_0x3ff846),_0x4f6be9=_0x58b85e[_0x5baae1(0x4a8)](_0x5153d9),_0xdf69c1=_0x4f6be9['__tempBatchingUndoRedo'](_0x2a359d[_0x5baae1(0x278)]);try{return _0x47a83f(_0x1f73cb,_0x23028f)[_0x5baae1(0x406)]?(_0xf889c9[_0x5baae1(0x3f4)](_0x2a359d[_0x5baae1(0x278)]),_0x4f6be9[_0x5baae1(0x519)]({'unitID':_0x2a359d[_0x5baae1(0x278)],'undoMutations':_0x104a27,'redoMutations':_0x1f73cb}),!0x0):!0x1;}finally{_0xdf69c1[_0x5baae1(0x3d6)]();}}},fo={'type':_0x3e23cf['COMMAND'],'id':_0x354fcb(0x3eb),async 'handler'(_0x5b4e2b,_0x498664){const _0xfcb841=_0x354fcb;if(!_0x498664||!Tr[_0xfcb841(0x231)](_0x498664[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664[_0xfcb841(0x278)]&&_0x498664[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)]||_0x498664[_0xfcb841(0x3cd)]&&(!['all','owner','members']['includes'](_0x498664[_0xfcb841(0x3cd)][_0xfcb841(0x1db)])||_0x498664[_0xfcb841(0x3cd)]['strategies'][_0xfcb841(0x257)](_0x2900a9=>!Tr[_0xfcb841(0x231)](_0x2900a9[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664['unitId']&&_0x2900a9[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)])))return!0x1;let _0x3c5766=Pr(_0x498664[_0xfcb841(0x278)],_0x498664[_0xfcb841(0x225)],_0x498664[_0xfcb841(0x18a)]),_0x52856d={'unitId':_0x498664[_0xfcb841(0x278)],'objectId':_0x498664[_0xfcb841(0x225)],'objectType':_0x3c5766[_0xfcb841(0x33a)]},_0x20668a=_0x5b4e2b[_0xfcb841(0x4a8)](_0x1e71b2);return _0x498664[_0xfcb841(0x261)]?await _0x20668a[_0xfcb841(0x261)](_0x52856d):_0x498664[_0xfcb841(0x3cd)]?await _0x20668a[_0xfcb841(0x304)](_0x52856d,_0x498664[_0xfcb841(0x3cd)]):await _0x20668a[_0xfcb841(0x3a9)](_0x52856d,_0x3c5766,_0x498664[_0xfcb841(0x416)]),!0x0;}},po={'type':_0x3e23cf['COMMAND'],'id':'base.command.set-permissions',async 'handler'(_0x100bd8,_0x277623){const _0x22fa11=_0x354fcb;if(!(_0x277623!=null&&_0x277623[_0x22fa11(0x278)])||!Array['isArray'](_0x277623[_0x22fa11(0x3c8)])||!_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x458)]||_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x257)](_0x30d58d=>!(_0x30d58d!=null&&_0x30d58d[_0x22fa11(0x225)])||_0x30d58d[_0x22fa11(0x225)]===_0x277623[_0x22fa11(0x278)]||_0x30d58d['policy']!==null&&(!_0x30d58d[_0x22fa11(0x3cd)]||![_0x22fa11(0x41e),'owner',_0x22fa11(0x437)][_0x22fa11(0x231)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x1db)])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)]['collaborators'])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)])||_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)][_0x22fa11(0x257)](_0x6a90c8=>_0x6a90c8[_0x22fa11(0x18a)]!==_0x391870['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x100bd8[_0x22fa11(0x4a8)](_0x1e71b2)[_0x22fa11(0x506)](_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x29b)](_0x1dbc02=>{const _0xc9760e=_0x22fa11;let _0x4b7c47=Pr(_0x277623[_0xc9760e(0x278)],_0x1dbc02['objectId'],_0x391870['Edit']);return{'unitId':_0x277623[_0xc9760e(0x278)],'objectId':_0x1dbc02[_0xc9760e(0x225)],'objectType':_0x4b7c47[_0xc9760e(0x33a)],'policy':_0x1dbc02[_0xc9760e(0x3cd)]};}));}};function mo(_0x4a7605,_0x169fa9){const _0x492735=_0x354fcb;let _0x1ae5d4=L(_0x30f9db[_0x492735(0x355)](_0x4a7605)),_0x2764ed=new Map();return _0x169fa9[_0x492735(0x461)](_0x2624d7=>{const _0x3b92fe=_0x492735;var _0x21b593,_0x4df58c;let _0x4f57a0='recordId'in _0x2624d7?_0x2624d7[_0x3b92fe(0x4bb)]:(_0x21b593=_0x1ae5d4[_0x3b92fe(0x474)])==null?void 0x0:_0x21b593[_0x2624d7[_0x3b92fe(0x21b)]],_0xb1302d=_0x3b92fe(0x46e)in _0x2624d7?_0x2624d7[_0x3b92fe(0x46e)]:(_0x4df58c=_0x1ae5d4[_0x3b92fe(0x242)])==null?void 0x0:_0x4df58c[_0x2624d7[_0x3b92fe(0x1ea)]],_0x4322f6=_0xb1302d?_0x1ae5d4[_0x3b92fe(0x480)][_0xb1302d]:void 0x0;if(!_0x4f57a0||!_0xb1302d||!_0x4322f6||!_0x1ae5d4[_0x3b92fe(0x45a)][_0x4f57a0])return;let _0x18c62a=xt(_0x2624d7[_0x3b92fe(0x416)],_0x4322f6),_0x13c7b7=wt(_0x2624d7[_0x3b92fe(0x416)],_0x18c62a,_0x4322f6,_0x1ae5d4,_0x4f57a0),_0x98fb93=_0x2764ed['get'](_0x4f57a0)??{};_0x98fb93[_0xb1302d]=_0x13c7b7,_0x2764ed['set'](_0x4f57a0,_0x98fb93);}),[..._0x2764ed][_0x492735(0x29b)](([_0x21018c,_0x14ffe7])=>({'recordId':_0x21018c,'values':_0x14ffe7}));}const ho={'id':_0x354fcb(0x527),'type':_0x3e23cf['COMMAND'],'handler'(_0x48e90c,_0x248de2){const _0x34225d=_0x354fcb;if(!_0x248de2)return!0x1;let _0x3a8cfb=_0x48e90c['get'](_0x3414e2),{unitId:_0x1d7a5b,tableId:_0x3695b9,patches:_0x1dd998}=_0x248de2,_0xdca6b1=_0x3a8cfb[_0x34225d(0x2e5)](_0x1d7a5b,_0x28d752['UNIVER_BASE']);if(!_0xdca6b1||!$(_0xdca6b1,_0x3695b9))return!0x1;let _0x522d17=_0x48e90c[_0x34225d(0x4a8)](_0x3ff846),_0x4af185=_0x48e90c[_0x34225d(0x4a8)](_0x5153d9),_0x150835=_0xdca6b1[_0x34225d(0x1f9)](),_0x4ae44d=L(_0x150835[_0x34225d(0x2ba)][_0x3695b9]),_0x361e23=_0x1dd998[_0x34225d(0x29b)](_0x4938d9=>{const _0x6f31fc=_0x34225d;var _0x45bb6c;return _0x6f31fc(0x4bb)in _0x4938d9?_0x4938d9[_0x6f31fc(0x4bb)]:(_0x45bb6c=_0x4ae44d[_0x6f31fc(0x474)])==null?void 0x0:_0x45bb6c[_0x4938d9[_0x6f31fc(0x21b)]];})[_0x34225d(0x397)](_0x3311f7=>_0x3311f7!=null),_0x2e8c15=_0x1dd998['map'](_0x5baef4=>{const _0x47e61c=_0x34225d;var _0x16b0f9;return _0x47e61c(0x46e)in _0x5baef4?_0x5baef4['fieldId']:(_0x16b0f9=_0x4ae44d[_0x47e61c(0x242)])==null?void 0x0:_0x16b0f9[_0x5baef4[_0x47e61c(0x1ea)]];})['filter'](_0x216f68=>_0x216f68!=null);if(_0x361e23[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||_0x2e8c15[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||!$(_0xdca6b1,_0x3695b9,{'recordIds':_0x361e23,'fieldIds':_0x2e8c15})||_0x1dd998[_0x34225d(0x257)]((_0x1ee261,_0x4d635d)=>!ga(_0xdca6b1,_0x3695b9,_0x2e8c15[_0x4d635d],_0x1ee261['value'])))return!0x1;let _0x355d32=Ze(_0x4ae44d,mo(_0x4ae44d,_0x1dd998)),_0x55bf89=_0x1dd998[_0x34225d(0x2a2)](_0x16c139=>{const _0x4f56ca=_0x34225d;var _0x470a08,_0x242408;if(_0x4f56ca(0x21b)in _0x16c139)return[_0x16c139];let _0x246be2=(_0x470a08=_0x4ae44d[_0x4f56ca(0x290)])==null?void 0x0:_0x470a08[_0x16c139['recordId']],_0x2a93d8=(_0x242408=_0x4ae44d[_0x4f56ca(0x288)])==null?void 0x0:_0x242408[_0x16c139[_0x4f56ca(0x46e)]];return _0x246be2==null||_0x2a93d8==null?[]:[{'row':_0x246be2,'col':_0x2a93d8,'value':_0x16c139[_0x4f56ca(0x416)]}];}),_0x3496da=new W()[_0x34225d(0x511)](_0x150835,_0x3695b9,_0x55bf89),_0x296e69=new z()[_0x34225d(0x2aa)](_0x150835,_0x3496da),_0x266074={'unitId':_0x1d7a5b,'op':_0x3496da,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32[_0x34225d(0x458)]?_0x355d32:void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x29f):void 0x0},_0x3fae15={'unitId':_0x1d7a5b,'op':_0x296e69,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32['length']?_0x355d32['map'](_0x334fb0=>({..._0x334fb0,'oldParentRecordId':_0x334fb0['parentRecordId'],'parentRecordId':_0x334fb0['oldParentRecordId']})):void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x37e):void 0x0},_0x274c81={..._0x266074,'source':_0x355d32[_0x34225d(0x458)]?_0x248de2[_0x34225d(0x4cd)]??'ui':void 0x0};return _0x522d17['syncExecuteCommand'](Q['id'],_0x274c81)?(_0x3a8cfb[_0x34225d(0x3f4)](_0x1d7a5b),_0x4af185['pushUndoRedo']({'unitID':_0x1d7a5b,'undoMutations':[{'id':Q['id'],'params':_0x3fae15}],'redoMutations':[{'id':Q['id'],'params':_0x266074}]}),!0x0):!0x1;}},go={'id':_0x354fcb(0x1d8),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xc20217,_0x23ccd4){const _0x5ce94e=_0x354fcb;if(!_0x23ccd4)return!0x1;let _0x268afb=_0xc20217['get'](_0x3414e2),{unitId:_0x4ddfa2,tableId:_0x1683af,patches:_0x3ba0e5}=_0x23ccd4,_0x428173=_0x268afb[_0x5ce94e(0x2e5)](_0x4ddfa2,_0x28d752[_0x5ce94e(0x201)]),_0x1fae4f=_0x3ba0e5[_0x5ce94e(0x29b)](_0x77d522=>_0x77d522['recordId']),_0x519798=_0x3ba0e5['flatMap'](_0x3858c6=>Object['keys'](_0x3858c6[_0x5ce94e(0x1da)]));if(!_0x428173||!$(_0x428173,_0x1683af,{'recordIds':_0x1fae4f,'fieldIds':_0x519798})||_0x3ba0e5['some'](_0x2055f5=>Object['entries'](_0x2055f5['values'])[_0x5ce94e(0x257)](([_0x158f52,_0x43bd16])=>!ga(_0x428173,_0x1683af,_0x158f52,_0x43bd16))))return!0x1;let _0x4f00db=Ze(_0x428173['getSnapshot']()[_0x5ce94e(0x2ba)][_0x1683af],_0x3ba0e5),_0x4eff50=_0xc20217[_0x5ce94e(0x4a8)](_0x3ff846),_0xceb277=_0xc20217[_0x5ce94e(0x4a8)](_0x5153d9),_0x2b31d9=_0xc20217[_0x5ce94e(0x4a8)](Kr)[_0x5ce94e(0x2be)](_0x428173,_0x1683af,_0x3ba0e5),_0x9127a2=new z()[_0x5ce94e(0x2aa)](_0x428173[_0x5ce94e(0x1f9)](),_0x2b31d9),_0x96876f={'unitId':_0x4ddfa2,'op':_0x2b31d9,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db:void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x23ccd4[_0x5ce94e(0x4cd)]??'ui':void 0x0},_0x1a4cbe={..._0x96876f,'source':_0x4f00db['length']?_0x5ce94e(0x29f):void 0x0},_0x431e6f={'unitId':_0x4ddfa2,'op':_0x9127a2,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db['map'](_0x4ed979=>({..._0x4ed979,'oldParentRecordId':_0x4ed979['parentRecordId'],'parentRecordId':_0x4ed979['oldParentRecordId']})):void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x5ce94e(0x37e):void 0x0};return _0x4eff50[_0x5ce94e(0x4c6)](Q['id'],_0x96876f)?(_0x268afb[_0x5ce94e(0x3f4)](_0x4ddfa2),_0xceb277[_0x5ce94e(0x519)]({'unitID':_0x4ddfa2,'undoMutations':[{'id':Q['id'],'params':_0x431e6f}],'redoMutations':[{'id':Q['id'],'params':_0x1a4cbe}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x3e23cf['COMMAND'],'handler':(_0x357bf9,_0x28845b)=>{const _0x747bbb=_0x354fcb;if(!_0x28845b)return!0x1;let {unitId:_0x306467,tableId:_0x4c697a,fieldId:_0x261cfe}=_0x28845b,_0x58954d=_0x357bf9[_0x747bbb(0x4a8)](_0x3414e2),_0x190b35=_0x58954d['getUnit'](_0x306467,_0x28d752[_0x747bbb(0x201)]);if(!_0x190b35||!$(_0x190b35,_0x4c697a))return!0x1;let _0x55b02d=_0x190b35['getSnapshot'](),_0x2c96a1=_0x55b02d[_0x747bbb(0x2ba)][_0x4c697a];if(_0x261cfe!==null&&!F(_0x2c96a1,_0x261cfe))throw new P('invalidField');if(qe(_0x2c96a1)===_0x261cfe)return!0x0;let _0x2e6843=new W(),_0x2f2b89=R(Object[_0x747bbb(0x1da)](_0x2c96a1[_0x747bbb(0x480)])['flatMap'](_0x180c9b=>{const _0xdf529f=_0x747bbb;if(!F(_0x2c96a1,_0x180c9b['id']))return[];let _0x40052b=N(_0x180c9b);if(!_0x40052b)return[];let _0x1ee681=_0x180c9b['id']===_0x261cfe;if(_0x40052b['relationRole']===_0x170c14[_0xdf529f(0x3a0)]===_0x1ee681)return[];let _0x5ec89b={..._0x180c9b[_0xdf529f(0x342)],'targetTableId':_0x40052b['targetTableId'],'multiple':_0x40052b['multiple']};return _0x1ee681?_0x5ec89b[_0xdf529f(0x274)]=_0x170c14[_0xdf529f(0x3a0)]:delete _0x5ec89b[_0xdf529f(0x274)],[_0x2e6843[_0xdf529f(0x409)](_0x55b02d,_0x4c697a,_0x180c9b['id'],{'config':_0x5ec89b})];})),_0x5ec537=new z()['invertOp'](_0x55b02d,_0x2f2b89),_0x2ecc1f={'unitId':_0x306467,'op':_0x2f2b89},_0x19d650={'unitId':_0x306467,'op':_0x5ec537};return _0x357bf9['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x2ecc1f)?(_0x58954d['focusUnit'](_0x306467),_0x357bf9[_0x747bbb(0x4a8)](_0x5153d9)[_0x747bbb(0x519)]({'unitID':_0x306467,'undoMutations':[{'id':Q['id'],'params':_0x19d650}],'redoMutations':[{'id':Q['id'],'params':_0x2ecc1f}]}),!0x0):!0x1;}},vo={'id':_0x354fcb(0x289),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x42e382,_0x25396d)=>{const _0x395caf=_0x354fcb;if(!_0x25396d)return!0x1;let _0x5cd9ef=_0x42e382[_0x395caf(0x4a8)](_0x3414e2),{unitId:_0x3aad90,tableId:_0x812d5b,viewId:_0x2441ca,fieldId:_0xcb49cb,target:_0xe211d4}=_0x25396d,_0x3b28d1=_0x5cd9ef[_0x395caf(0x2e5)](_0x3aad90,_0x28d752[_0x395caf(0x201)]),_0x2471ec=_0xe211d4[_0x395caf(0x381)]??_0xe211d4[_0x395caf(0x27b)];if(!_0x3b28d1||!_0x2471ec||_0x2471ec===_0xcb49cb||!$(_0x3b28d1,_0x812d5b,{'viewIds':[_0x2441ca],'fieldIds':[_0xcb49cb,_0x2471ec]}))return!0x1;let _0x3275b7=_0x3b28d1['getSnapshot']()[_0x395caf(0x2ba)][_0x812d5b],_0x23a02e=_0x3275b7[_0x395caf(0x480)][_0xcb49cb],_0x48affe=_0x3275b7['fields'][_0x2471ec];if(_0x23a02e[_0x395caf(0x1cb)]===!0x0||_0x23a02e[_0x395caf(0x33a)]===_0x19bf94[_0x395caf(0x44f)]||_0x48affe[_0x395caf(0x1cb)]===!0x0||_0x48affe['type']===_0x19bf94[_0x395caf(0x44f)])return!0x1;let _0x26293a=_0x42e382[_0x395caf(0x4a8)](_0x3ff846),_0x3e77f4=_0x42e382['get'](_0x5153d9),_0x3d521e=_0x3b28d1[_0x395caf(0x1f9)](),_0x85f42c=new W()[_0x395caf(0x457)](_0x3d521e,_0x812d5b,_0x2441ca,_0xcb49cb,_0xe211d4),_0x5e4644=new z()[_0x395caf(0x2aa)](_0x3d521e,_0x85f42c),_0x502b7a={'unitId':_0x3aad90,'op':_0x85f42c},_0x52a5bb={'unitId':_0x3aad90,'op':_0x5e4644};return _0x26293a['syncExecuteCommand'](Q['id'],_0x502b7a)?(_0x5cd9ef[_0x395caf(0x3f4)](_0x3aad90),_0x3e77f4[_0x395caf(0x519)]({'unitID':_0x3aad90,'undoMutations':[{'id':Q['id'],'params':_0x52a5bb}],'redoMutations':[{'id':Q['id'],'params':_0x502b7a}]}),!0x0):!0x1;}},yo={'id':_0x354fcb(0x31a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3965f4,_0x5e7a40){const _0x734ffe=_0x354fcb;if(!_0x5e7a40)return!0x1;let _0x2a2727=_0x3965f4[_0x734ffe(0x4a8)](_0x3414e2),{unitId:_0x57d23a,tableId:_0x48618b,viewId:_0x4dc27f,fieldId:_0x4fdd96,visible:_0x391a22}=_0x5e7a40,_0x509191=_0x2a2727[_0x734ffe(0x2e5)](_0x57d23a,_0x28d752['UNIVER_BASE']);if(!_0x509191||!$(_0x509191,_0x48618b,{'viewIds':[_0x4dc27f],'fieldIds':[_0x4fdd96]}))return!0x1;let _0x432cd=_0x509191['getSnapshot']()[_0x734ffe(0x2ba)][_0x48618b][_0x734ffe(0x480)][_0x4fdd96];if(_0x432cd[_0x734ffe(0x1cb)]===!0x0||_0x432cd[_0x734ffe(0x33a)]===_0x19bf94['RecordId'])return!0x1;let _0x1d671b=_0x3965f4[_0x734ffe(0x4a8)](_0x3ff846),_0x376249=_0x3965f4['get'](_0x5153d9),_0x2e61e1=_0x509191[_0x734ffe(0x1f9)](),_0x2cd421=new W()[_0x734ffe(0x4fc)](_0x2e61e1,_0x48618b,_0x4dc27f,_0x4fdd96,_0x391a22),_0x11d212=new z()['invertOp'](_0x2e61e1,_0x2cd421),_0x422e87={'unitId':_0x57d23a,'op':_0x2cd421},_0x1681b3={'unitId':_0x57d23a,'op':_0x11d212};return _0x1d671b[_0x734ffe(0x4c6)](Q['id'],_0x422e87)?(_0x2a2727[_0x734ffe(0x3f4)](_0x57d23a),_0x376249[_0x734ffe(0x519)]({'unitID':_0x57d23a,'undoMutations':[{'id':Q['id'],'params':_0x1681b3}],'redoMutations':[{'id':Q['id'],'params':_0x422e87}]}),!0x0):!0x1;}},bo={'id':_0x354fcb(0x29a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x19f596,_0x28f434)=>{const _0x1cca14=_0x354fcb;if(!_0x28f434)return!0x1;let _0x495c7c=_0x19f596[_0x1cca14(0x4a8)](_0x3414e2),{unitId:_0x3c592a,tableId:_0x3336d4,viewId:_0x4d7738,fieldId:_0x5158c9,width:_0x265f5b}=_0x28f434,_0x55b36f=_0x495c7c[_0x1cca14(0x2e5)](_0x3c592a,_0x28d752[_0x1cca14(0x201)]);if(!_0x55b36f||!$(_0x55b36f,_0x3336d4,{'viewIds':[_0x4d7738],'fieldIds':[_0x5158c9]}))return!0x1;let _0x58b866=_0x55b36f['getSnapshot']()[_0x1cca14(0x2ba)][_0x3336d4][_0x1cca14(0x480)][_0x5158c9];if(_0x58b866[_0x1cca14(0x1cb)]===!0x0||_0x58b866[_0x1cca14(0x33a)]===_0x19bf94[_0x1cca14(0x44f)])return!0x1;let _0x1694e3=_0x19f596['get'](_0x3ff846),_0x130574=_0x19f596[_0x1cca14(0x4a8)](_0x5153d9),_0x4bb8f4=_0x55b36f[_0x1cca14(0x1f9)](),_0x363483=new W()['setViewFieldWidth'](_0x4bb8f4,_0x3336d4,_0x4d7738,_0x5158c9,_0x265f5b),_0x428d89=new z()['invertOp'](_0x4bb8f4,_0x363483),_0x5899d5={'unitId':_0x3c592a,'op':_0x363483},_0x2a5032={'unitId':_0x3c592a,'op':_0x428d89};return _0x1694e3[_0x1cca14(0x4c6)](Q['id'],_0x5899d5)?(_0x495c7c['focusUnit'](_0x3c592a),_0x130574[_0x1cca14(0x519)]({'unitID':_0x3c592a,'undoMutations':[{'id':Q['id'],'params':_0x2a5032}],'redoMutations':[{'id':Q['id'],'params':_0x5899d5}]}),!0x0):!0x1;}},xo={'id':_0x354fcb(0x1f5),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x43322e,_0x13c680)=>{const _0xaa24e7=_0x354fcb;if(!_0x13c680)return!0x1;let _0x1834b8=_0x43322e[_0xaa24e7(0x4a8)](_0x3414e2),{unitId:_0x25398b,tableId:_0x58ff30,viewId:_0x2a4f51,filter:_0x2231d1}=_0x13c680,_0x3a6480=_0x1834b8['getUnit'](_0x25398b,_0x28d752['UNIVER_BASE']),_0x1e3a3f=(_0x2231d1==null?void 0x0:_0x2231d1[_0xaa24e7(0x309)][_0xaa24e7(0x29b)](_0x4f5b50=>_0x4f5b50[_0xaa24e7(0x46e)]))??[];if(!_0x3a6480||!$(_0x3a6480,_0x58ff30,{'viewIds':[_0x2a4f51],'fieldIds':_0x1e3a3f}))return!0x1;let _0x39cee3=_0x43322e[_0xaa24e7(0x4a8)](_0x3ff846),_0x35e7ec=_0x43322e[_0xaa24e7(0x4a8)](_0x5153d9),_0x4dc4f5=_0x3a6480[_0xaa24e7(0x1f9)](),_0x3a9e7d=new W()[_0xaa24e7(0x2de)](_0x4dc4f5,_0x58ff30,_0x2a4f51,_0x2231d1),_0x25883a=new z()['invertOp'](_0x4dc4f5,_0x3a9e7d),_0x573464={'unitId':_0x25398b,'op':_0x3a9e7d},_0x458172={'unitId':_0x25398b,'op':_0x25883a};return _0x39cee3['syncExecuteCommand'](Q['id'],_0x573464)?(_0x1834b8[_0xaa24e7(0x3f4)](_0x25398b),_0x35e7ec[_0xaa24e7(0x519)]({'unitID':_0x25398b,'undoMutations':[{'id':Q['id'],'params':_0x458172}],'redoMutations':[{'id':Q['id'],'params':_0x573464}]}),!0x0):!0x1;}},So={'id':'base.command.set-base-view-group','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1f2223,_0x409e95)=>{const _0x52ed50=_0x354fcb;if(!_0x409e95)return!0x1;let _0x262ae5=_0x1f2223[_0x52ed50(0x4a8)](_0x3414e2),{unitId:_0x176293,tableId:_0x547b5a,viewId:_0x2a6387,group:_0x2373cf}=_0x409e95,_0x4c4fff=_0x262ae5['getUnit'](_0x176293,_0x28d752[_0x52ed50(0x201)]);if(!_0x4c4fff||!$(_0x4c4fff,_0x547b5a,{'viewIds':[_0x2a6387],'fieldIds':_0x2373cf['map'](_0x39ad72=>_0x39ad72['fieldId'])}))return!0x1;let _0x6e2b2c=_0x1f2223[_0x52ed50(0x4a8)](_0x3ff846),_0x119b1a=_0x1f2223[_0x52ed50(0x4a8)](_0x5153d9),_0x17014d=_0x4c4fff[_0x52ed50(0x1f9)](),_0x5b4f26=new W()[_0x52ed50(0x178)](_0x17014d,_0x547b5a,_0x2a6387,_0x2373cf),_0x27ddb2=new z()[_0x52ed50(0x2aa)](_0x17014d,_0x5b4f26),_0xa1e651={'unitId':_0x176293,'op':_0x5b4f26},_0x4c6bd5={'unitId':_0x176293,'op':_0x27ddb2};return _0x6e2b2c[_0x52ed50(0x4c6)](Q['id'],_0xa1e651)?(_0x262ae5[_0x52ed50(0x3f4)](_0x176293),_0x119b1a[_0x52ed50(0x519)]({'unitID':_0x176293,'undoMutations':[{'id':Q['id'],'params':_0x4c6bd5}],'redoMutations':[{'id':Q['id'],'params':_0xa1e651}]}),!0x0):!0x1;}},Co={'id':_0x354fcb(0x2f9),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2c673e,_0x232c6b)=>{const _0x46678=_0x354fcb;if(!_0x232c6b)return!0x1;let _0x248c3c=_0x2c673e['get'](_0x3414e2),{unitId:_0x21d9f2,tableId:_0x3ea1b8,viewId:_0xbb3177,sort:_0x490c8b}=_0x232c6b,_0x355961=_0x248c3c[_0x46678(0x2e5)](_0x21d9f2,_0x28d752[_0x46678(0x201)]);if(!_0x355961||!$(_0x355961,_0x3ea1b8,{'viewIds':[_0xbb3177],'fieldIds':_0x490c8b[_0x46678(0x29b)](_0x229c9a=>_0x229c9a[_0x46678(0x46e)])}))return!0x1;let _0x27d1bb=_0x2c673e['get'](_0x3ff846),_0xad4b6e=_0x2c673e[_0x46678(0x4a8)](_0x5153d9),_0x51d708=_0x355961[_0x46678(0x1f9)](),_0x5b9927=new W()[_0x46678(0x4ff)](_0x51d708,_0x3ea1b8,_0xbb3177,_0x490c8b),_0x52b676=new z()[_0x46678(0x2aa)](_0x51d708,_0x5b9927),_0x517e2c={'unitId':_0x21d9f2,'op':_0x5b9927},_0x55be77={'unitId':_0x21d9f2,'op':_0x52b676};return _0x27d1bb['syncExecuteCommand'](Q['id'],_0x517e2c)?(_0x248c3c[_0x46678(0x3f4)](_0x21d9f2),_0xad4b6e['pushUndoRedo']({'unitID':_0x21d9f2,'undoMutations':[{'id':Q['id'],'params':_0x55be77}],'redoMutations':[{'id':Q['id'],'params':_0x517e2c}]}),!0x0):!0x1;}},wo={'id':_0x354fcb(0x516),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x4691b6,_0x4b0fbd){const _0x100892=_0x354fcb;if(!_0x4b0fbd)return!0x1;let _0x270c7d=_0x4691b6['get'](_0x3414e2),{unitId:_0xd8e308,tableId:_0x2a01db,recordId:_0x2feb3c,fieldId:_0x26253e,value:_0x207e7f}=_0x4b0fbd,_0x420087=_0x270c7d['getUnit'](_0xd8e308,_0x28d752[_0x100892(0x201)]);if(!_0x420087||!$(_0x420087,_0x2a01db,{'recordIds':[_0x2feb3c],'fieldIds':[_0x26253e]})||!ga(_0x420087,_0x2a01db,_0x26253e,_0x207e7f))return!0x1;let _0x13a44f=_0x420087[_0x100892(0x1f9)]()[_0x100892(0x2ba)][_0x2a01db],_0x1a0a99=F(_0x13a44f,_0x26253e)&&Xe(_0x13a44f)[_0x100892(0x231)](_0x26253e),_0x2cc69d=_0x1a0a99?tt(_0x13a44f,_0x26253e):null,_0x2a7df0=(_0x2cc69d==null?void 0x0:_0x2cc69d['parentByRecordId'][_0x100892(0x4a8)](_0x2feb3c))??null,_0x537068=_0x1a0a99?Le(_0x207e7f)[0x0]??null:null;if(_0x2cc69d){if(_0x537068&&!_0x13a44f[_0x100892(0x45a)][_0x537068])throw new P(_0x100892(0x33b));let _0x1bf85a=it(_0x2cc69d,_0x2feb3c,_0x537068);if(!_0x1bf85a['valid'])throw new P(_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x47b)]?'selfParent':_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x270)]?_0x100892(0x363):_0x100892(0x228));}let _0x313a6f=_0x4691b6['get'](_0x3ff846),_0x12afb8=_0x4691b6['get'](_0x5153d9),_0xbedd48=_0x4691b6['get'](Kr),_0x1f1822;try{_0x1f1822=_0xbedd48[_0x100892(0x22b)](_0x420087,_0x2a01db,_0x2feb3c,_0x26253e,_0x207e7f);}catch(_0x34cfcd){return console[_0x100892(0x206)](_0x100892(0x1b0),_0x34cfcd),!0x1;}let _0x58f727=new z()[_0x100892(0x2aa)](_0x420087[_0x100892(0x1f9)](),_0x1f1822),_0x1e2625=_0x1a0a99&&_0x2a7df0!==_0x537068?[{'tableId':_0x2a01db,'fieldId':_0x26253e,'recordId':_0x2feb3c,'oldParentRecordId':_0x2a7df0,'parentRecordId':_0x537068}]:void 0x0,_0xd164b7={'unitId':_0xd8e308,'op':_0x1f1822,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625,'source':_0x1e2625?_0x4b0fbd[_0x100892(0x4cd)]??'ui':void 0x0},_0xba35a7={..._0xd164b7,'source':_0x1e2625?_0x100892(0x29f):void 0x0},_0x28b3e3={'unitId':_0xd8e308,'op':_0x58f727,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625==null?void 0x0:_0x1e2625[_0x100892(0x29b)](_0x17e9b1=>({..._0x17e9b1,'oldParentRecordId':_0x17e9b1['parentRecordId'],'parentRecordId':_0x17e9b1['oldParentRecordId']})),'source':_0x1e2625?_0x100892(0x37e):void 0x0};return _0x313a6f[_0x100892(0x4c6)](Q['id'],_0xd164b7)?(_0x270c7d['focusUnit'](_0xd8e308),_0x12afb8[_0x100892(0x519)]({'unitID':_0xd8e308,'undoMutations':[{'id':Q['id'],'params':_0x28b3e3}],'redoMutations':[{'id':Q['id'],'params':_0xba35a7}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2f21f8,_0x524f9c){const _0x2e9445=_0x354fcb;if(!_0x524f9c)return!0x1;let _0x3bda89=_0x2f21f8[_0x2e9445(0x4a8)](_0x3414e2),{unitId:_0x1b6efa,tableId:_0x5f1e8b,fieldId:_0x490798}=_0x524f9c,_0x4b0bef=_0x3bda89[_0x2e9445(0x2e5)](_0x1b6efa,_0x28d752['UNIVER_BASE']);if(!_0x4b0bef||!$(_0x4b0bef,_0x5f1e8b,{'fieldIds':[_0x490798]}))return!0x1;let _0xbdfc6b=_0x2f21f8[_0x2e9445(0x4a8)](_0x3ff846),_0x555bf6=_0x2f21f8[_0x2e9445(0x4a8)](_0x5153d9),_0x5634d8=_0x4b0bef[_0x2e9445(0x1f9)](),_0x58576b=_0x524f9c[_0x2e9445(0x373)]['trim'](),_0x6a6234=new W()['updateField'](_0x5634d8,_0x5f1e8b,_0x490798,{'description':_0x58576b}),_0x4253d3=new z()[_0x2e9445(0x2aa)](_0x4b0bef[_0x2e9445(0x1f9)](),_0x6a6234),_0x5b8f30={'unitId':_0x1b6efa,'op':_0x6a6234},_0x8981f2={'unitId':_0x1b6efa,'op':_0x4253d3};return _0xbdfc6b['syncExecuteCommand'](Q['id'],_0x5b8f30)?(_0x3bda89[_0x2e9445(0x3f4)](_0x1b6efa),_0x555bf6[_0x2e9445(0x519)]({'unitID':_0x1b6efa,'undoMutations':[{'id':Q['id'],'params':_0x8981f2}],'redoMutations':[{'id':Q['id'],'params':_0x5b8f30}]}),!0x0):!0x1;}},Eo={'id':_0x354fcb(0x48b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3144c6,_0x5361e3)=>{const _0x3e2883=_0x354fcb;if(!_0x5361e3)return!0x1;let _0x14c373=_0x3144c6[_0x3e2883(0x4a8)](_0x3414e2),{unitId:_0x50febd,tableId:_0x3503b9,fieldId:_0x46fe56,patch:_0x1a7132}=_0x5361e3,_0x238fb5=_0x14c373[_0x3e2883(0x2e5)](_0x50febd,_0x28d752[_0x3e2883(0x201)]);if(!_0x238fb5||_0x46fe56===_0x3b44b5||!$(_0x238fb5,_0x3503b9,{'fieldIds':[_0x46fe56]}))return!0x1;let _0xfc176=_0x3144c6['get'](_0x3ff846),_0x494b6d=_0x3144c6[_0x3e2883(0x4a8)](_0x5153d9),_0x1e1e9f=_0x238fb5[_0x3e2883(0x1f9)]();if(!ha(_0x238fb5,_0x3503b9,{..._0x1e1e9f[_0x3e2883(0x2ba)][_0x3503b9][_0x3e2883(0x480)][_0x46fe56],..._0x1a7132}))return!0x1;let _0x113b95=new W()[_0x3e2883(0x409)](_0x1e1e9f,_0x3503b9,_0x46fe56,_0x1a7132),_0x5ef139=new z()['invertOp'](_0x1e1e9f,_0x113b95),_0x491c55={'unitId':_0x50febd,'op':_0x113b95},_0x3b0583={'unitId':_0x50febd,'op':_0x5ef139};return _0xfc176[_0x3e2883(0x4c6)](Q['id'],_0x491c55)?(_0x14c373[_0x3e2883(0x3f4)](_0x50febd),_0x494b6d[_0x3e2883(0x519)]({'unitID':_0x50febd,'undoMutations':[{'id':Q['id'],'params':_0x3b0583}],'redoMutations':[{'id':Q['id'],'params':_0x491c55}]}),!0x0):!0x1;}},Do={'id':_0x354fcb(0x2d4),'type':_0x3e23cf['COMMAND'],'handler':(_0x2fdd50,_0x1f9fea)=>{const _0x4dbd13=_0x354fcb;if(!_0x1f9fea)return!0x1;let _0x309b61=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3414e2),{unitId:_0x3e1bf1,tableId:_0x4f2f92,viewId:_0x273f52,patch:_0x433e00}=_0x1f9fea,_0x2005c7=_0x309b61['getUnit'](_0x3e1bf1,_0x28d752[_0x4dbd13(0x201)]);if(!_0x2005c7||!$(_0x2005c7,_0x4f2f92,{'viewIds':[_0x273f52]}))return!0x1;let _0x3a529d=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3ff846),_0x96df47=_0x2fdd50[_0x4dbd13(0x4a8)](_0x5153d9),_0x22e40c=_0x2005c7[_0x4dbd13(0x1f9)](),_0x34b74c=new W()['updateViewConfig'](_0x22e40c,_0x4f2f92,_0x273f52,_0x433e00),_0x16d736=new z()[_0x4dbd13(0x2aa)](_0x22e40c,_0x34b74c),_0x2fa8a7={'unitId':_0x3e1bf1,'op':_0x34b74c},_0x3cbb04={'unitId':_0x3e1bf1,'op':_0x16d736};return _0x3a529d[_0x4dbd13(0x4c6)](Q['id'],_0x2fa8a7)?(_0x309b61[_0x4dbd13(0x3f4)](_0x3e1bf1),_0x96df47[_0x4dbd13(0x519)]({'unitID':_0x3e1bf1,'undoMutations':[{'id':Q['id'],'params':_0x3cbb04}],'redoMutations':[{'id':Q['id'],'params':_0x2fa8a7}]}),!0x0):!0x1;}},Oo={'id':_0x354fcb(0x4f3),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x26578e,_0x265889)=>{const _0x71aa41=_0x354fcb;if(!_0x265889)return!0x1;let _0x28f5a4=_0x26578e['get'](_0x3414e2),{unitId:_0x5af915,tableId:_0x4e6358,recordId:_0x49fd76,orderKey:_0x1ecd42}=_0x265889,_0x236656=_0x28f5a4[_0x71aa41(0x2e5)](_0x5af915,_0x28d752[_0x71aa41(0x201)]);if(!_0x236656||!$(_0x236656,_0x4e6358,{'recordIds':[_0x49fd76]}))return!0x1;let _0x58b354=_0x26578e['get'](_0x3ff846),_0xfd174d=_0x26578e[_0x71aa41(0x4a8)](_0x5153d9),_0x2a4e0e=_0x236656[_0x71aa41(0x1f9)](),_0x4c84e6=new W()[_0x71aa41(0x229)](_0x2a4e0e,_0x4e6358,_0x49fd76,_0x1ecd42),_0x14627c=new z()[_0x71aa41(0x2aa)](_0x2a4e0e,_0x4c84e6),_0x203b33={'unitId':_0x5af915,'op':_0x4c84e6},_0x527ada={'unitId':_0x5af915,'op':_0x14627c};return _0x58b354['syncExecuteCommand'](Q['id'],_0x203b33)?(_0x28f5a4[_0x71aa41(0x3f4)](_0x5af915),_0xfd174d[_0x71aa41(0x519)]({'unitID':_0x5af915,'undoMutations':[{'id':Q['id'],'params':_0x527ada}],'redoMutations':[{'id':Q['id'],'params':_0x203b33}]}),!0x0):!0x1;}};let ko=function(_0x129941){const _0x3662e8=_0x354fcb;return _0x129941['Set']=_0x3662e8(0x1a1),_0x129941[_0x3662e8(0x27f)]=_0x3662e8(0x35e),_0x129941[_0x3662e8(0x3d2)]=_0x3662e8(0x4f4),_0x129941[_0x3662e8(0x4b0)]='clear',_0x129941;}({});const Ao={'id':_0x354fcb(0x40d),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3cd942,_0x11fb87)=>{const _0x385b20=_0x354fcb;var _0x483cc2;if(!_0x11fb87)return!0x1;let _0xc9f356=_0x3cd942[_0x385b20(0x4a8)](_0x3414e2),_0x550cba=_0xc9f356[_0x385b20(0x2e5)](_0x11fb87[_0x385b20(0x278)],_0x28d752[_0x385b20(0x201)]);if(!_0x550cba||!$(_0x550cba,_0x11fb87[_0x385b20(0x1c3)],{'viewIds':[_0x11fb87[_0x385b20(0x366)]]}))return!0x1;let _0xed793=_0x550cba['getSnapshot'](),_0x3fdb79=_0xed793[_0x385b20(0x2ba)][_0x11fb87['tableId']],_0x454c2e=jo(((_0x483cc2=_0x3fdb79['views'][_0x11fb87[_0x385b20(0x366)]][_0x385b20(0x342)][_0x385b20(0x3e7)])==null?void 0x0:_0x483cc2[_0x385b20(0x36c)])??[],_0x11fb87);if(!_0x454c2e)return!0x1;Mo(_0x3fdb79,_0x454c2e);let _0x3cb5f9=new W()[_0x385b20(0x4c1)](_0xed793,_0x11fb87['tableId'],_0x11fb87[_0x385b20(0x366)],{'conditionalColoring':_0x454c2e[_0x385b20(0x458)]?{'rules':_0x454c2e}:null}),_0x2c52cd=new z()[_0x385b20(0x2aa)](_0xed793,_0x3cb5f9),_0x3ac8c6={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x3cb5f9},_0x42c9ef={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x2c52cd};return _0x3cd942[_0x385b20(0x4a8)](_0x3ff846)[_0x385b20(0x4c6)](Q['id'],_0x3ac8c6)?(_0xc9f356[_0x385b20(0x3f4)](_0x11fb87[_0x385b20(0x278)]),_0x3cd942[_0x385b20(0x4a8)](_0x5153d9)[_0x385b20(0x519)]({'unitID':_0x11fb87[_0x385b20(0x278)],'undoMutations':[{'id':Q['id'],'params':_0x42c9ef}],'redoMutations':[{'id':Q['id'],'params':_0x3ac8c6}]}),!0x0):!0x1;}};function jo(_0x4819c6,_0xb3d9f0){const _0x22a554=_0x354fcb;switch(_0xb3d9f0[_0x22a554(0x33a)]){case'set':return _0x30f9db[_0x22a554(0x355)](_0xb3d9f0[_0x22a554(0x36c)]);case _0x22a554(0x35e):return[..._0x30f9db['deepClone'](_0x4819c6),_0x30f9db[_0x22a554(0x355)](_0xb3d9f0['rule'])];case _0x22a554(0x4f4):{let _0x5657de=_0x4819c6[_0x22a554(0x397)](_0x5945de=>_0x5945de['id']!==_0xb3d9f0[_0x22a554(0x491)]);return _0x5657de['length']===_0x4819c6['length']?null:_0x30f9db['deepClone'](_0x5657de);}case _0x22a554(0x4b6):return _0x4819c6[_0x22a554(0x458)]?[]:null;}}function Mo(_0x1ba8f9,_0x4be23b){const _0x3db896=_0x354fcb;if(!Array[_0x3db896(0x354)](_0x4be23b))throw TypeError(_0x3db896(0x313));let _0x5db824=new Set();for(let [_0x31bb9a,_0x3aeac2]of _0x4be23b[_0x3db896(0x1e2)]())Po(_0x1ba8f9,_0x3aeac2,No(_0x3aeac2,_0x31bb9a,_0x5db824));}function No(_0x11547f,_0x7111b,_0x543010){const _0x2361e6=_0x354fcb;if(!_0x11547f||typeof _0x11547f!=_0x2361e6(0x269))throw TypeError(_0x2361e6(0x311)+_0x7111b+'\x20must\x20be\x20an\x20object.');let _0x2aff6a=typeof _0x11547f['id']==_0x2361e6(0x471)&&_0x11547f['id'][_0x2361e6(0x3bc)]()?'\x22'+_0x11547f['id']+'\x22':'at\x20index\x20'+_0x7111b;if(typeof _0x11547f['id']!=_0x2361e6(0x471)||!_0x11547f['id']['trim']())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x2aff6a+_0x2361e6(0x470));if(_0x543010[_0x2361e6(0x23f)](_0x11547f['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x11547f['id']+'\x22.');_0x543010[_0x2361e6(0x35e)](_0x11547f['id']);let _0x29e373=typeof _0x11547f[_0x2361e6(0x190)]==_0x2361e6(0x471)&&_0x11547f[_0x2361e6(0x190)][_0x2361e6(0x3bc)]()?new _0x3d2caa(_0x11547f[_0x2361e6(0x190)]):null;if(!(_0x29e373!=null&&_0x29e373['isValid']))throw Error(_0x2361e6(0x2f5)+_0x2aff6a+_0x2361e6(0x44e));return _0x2aff6a;}function Po(_0x4472fe,_0x3cbd5d,_0x51108e){const _0x289dcb=_0x354fcb;let _0x215a7b=new Set(Object[_0x289dcb(0x1da)](_0x54bac1)),_0x40c600=new Set(Object[_0x289dcb(0x1da)](_0x79efc5)),_0x3cd731=new Set(Object['values'](_0x173d28));if(!_0x215a7b['has'](_0x3cbd5d[_0x289dcb(0x3d1)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x3aa)+String(_0x3cbd5d[_0x289dcb(0x3d1)])+'\x22.');let _0x736b6d=typeof _0x3cbd5d['fieldId']==_0x289dcb(0x471)?_0x4472fe[_0x289dcb(0x480)][_0x3cbd5d['fieldId']]:void 0x0;if(!_0x736b6d||_0x736b6d[_0x289dcb(0x1cb)]===!0x0||_0x736b6d[_0x289dcb(0x33a)]===_0x19bf94[_0x289dcb(0x44f)])throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x214)+String(_0x3cbd5d[_0x289dcb(0x46e)])+'\x22.');if(!_0x40c600[_0x289dcb(0x23f)](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x4e1)+String(_0x3cbd5d[_0x289dcb(0x320)])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!_0x3cd731[_0x289dcb(0x23f)](_0x3cbd5d[_0x289dcb(0x43b)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x2b0)+String(_0x3cbd5d['dateMode'])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x3d1)]===_0x54bac1[_0x289dcb(0x222)])return;let _0x2f446d=vn(_0x736b6d[_0x289dcb(0x33a)]);if(!_0x2f446d['includes'](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x413)+_0x3cbd5d[_0x289dcb(0x320)]+_0x289dcb(0x2c9)+_0x736b6d['type']+'\x22.\x20Allowed\x20operators:\x20'+_0x2f446d[_0x289dcb(0x4b5)](',\x20')+'.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!yn(_0x736b6d[_0x289dcb(0x33a)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x51108e+_0x289dcb(0x27c));}const Fo={'id':_0x354fcb(0x508),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xceccc4,_0x1f0bef)=>{const _0x45e4ca=_0x354fcb;if(!_0x1f0bef)return!0x1;let _0x27a081=_0xceccc4['get'](_0x3414e2),{unitId:_0x290850,tableId:_0x30e199,viewId:_0x228191,patch:_0x1a9086}=_0x1f0bef,_0x2ac841=_0x27a081[_0x45e4ca(0x2e5)](_0x290850,_0x28d752['UNIVER_BASE']);if(!_0x2ac841||!$(_0x2ac841,_0x30e199,{'viewIds':[_0x228191]}))return!0x1;let _0x1c8be3=_0xceccc4['get'](_0x3ff846),_0xc84e5a=_0xceccc4[_0x45e4ca(0x4a8)](_0x5153d9),_0x1401a2=_0x2ac841[_0x45e4ca(0x1f9)](),_0x338dc5=new W()[_0x45e4ca(0x4c1)](_0x1401a2,_0x30e199,_0x228191,_0x1a9086),_0x1c5e16=new z()[_0x45e4ca(0x2aa)](_0x1401a2,_0x338dc5),_0x5b0cd4={'unitId':_0x290850,'op':_0x338dc5},_0x22a988={'unitId':_0x290850,'op':_0x1c5e16};return _0x1c8be3[_0x45e4ca(0x4c6)](Q['id'],_0x5b0cd4)?(_0x27a081['focusUnit'](_0x290850),_0xc84e5a['pushUndoRedo']({'unitID':_0x290850,'undoMutations':[{'id':Q['id'],'params':_0x22a988}],'redoMutations':[{'id':Q['id'],'params':_0x5b0cd4}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x3e23cf['COMMAND'],'handler'(_0x4f555b,_0x332c93){const _0x4b8880=_0x354fcb;if(!_0x332c93)return{'valid':!0x1,'reason':_0x4b8880(0x39f)};let _0x453928=_0x4f555b[_0x4b8880(0x4a8)](_0x3414e2)[_0x4b8880(0x2e5)](_0x332c93[_0x4b8880(0x278)],_0x28d752['UNIVER_BASE']),_0x4091c4=_0x453928==null?void 0x0:_0x453928[_0x4b8880(0x1f9)](),_0x20d719=_0x4091c4==null?void 0x0:_0x4091c4[_0x4b8880(0x2ba)][_0x332c93[_0x4b8880(0x1c3)]];return!_0x4091c4||!_0x20d719?{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20does\x20not\x20exist.'}:new Xi()[_0x4b8880(0x1c2)](_0x332c93[_0x4b8880(0x23a)],_0x20d719,{'snapshot':_0x4091c4});}};let Lo=class extends _0x4a896e{constructor(_0xb5d54b){const _0x16eda2=_0x354fcb;super(_0xb5d54b,_0x16eda2(0x1f4),_0x28d752[_0x16eda2(0x201)],[_0x56e21f[_0x16eda2(0x1d0)],_0x56e21f['BaseField'],_0x56e21f['BaseRecord'],_0x56e21f[_0x16eda2(0x52a)],_0x56e21f[_0x16eda2(0x3f9)]]);}};Lo=X([Y(0x0,_0xee5072)],Lo);const Ro={'id':_0x354fcb(0x45e),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0x33a35a,_0x16ce20)=>!_0x16ce20||!_0x33a35a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x16ce20[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0x33a35a[_0x354fcb(0x4a8)](Lo)['setRule'](_0x16ce20[_0x354fcb(0x278)],_0x16ce20[_0x354fcb(0x204)],_0x16ce20[_0x354fcb(0x225)],_0x16ce20[_0x354fcb(0x193)])},zo={'id':_0x354fcb(0x3dd),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0xbeb69a,_0x4092e8)=>!_0x4092e8||!_0xbeb69a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x4092e8[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0xbeb69a[_0x354fcb(0x4a8)](Lo)[_0x354fcb(0x30e)](_0x4092e8[_0x354fcb(0x278)],_0x4092e8[_0x354fcb(0x36c)])};function Bo(_0x1771bc){const _0xb3eca0=_0x354fcb;let _0x401106=_0x1771bc[_0xb3eca0(0x181)]??Date['now'](),_0x1e0051=_0x1771bc[_0xb3eca0(0x4cf)]??_0x1771bc['id']+_0xb3eca0(0x50e),_0x1e80b7=_0x1771bc[_0xb3eca0(0x1c8)]??_0x1771bc['id']+_0xb3eca0(0x443),_0x389eb0=_0x1771bc['recordCount']??0x0,_0x4b8112=_0x5c3ee9(),_0x5ab6bc={'id':_0x1e0051,'name':_0x1771bc[_0xb3eca0(0x26b)]??_0xb3eca0(0x36d),'type':_0x19bf94[_0xb3eca0(0x374)],'config':{'placeholder':_0xb3eca0(0x3ab)}},_0x56ad1e={},_0xaaef58=[],_0x5c092e={},_0x4c3e4d={},_0x27221b={};for(let _0x13301=0x0;_0x13301<_0x389eb0;_0x13301++){let _0x2f1081=_0x1771bc['id']+_0xb3eca0(0x378)+(_0x13301+0x1);_0x56ad1e[_0x2f1081]={'id':_0x2f1081,'values':{[_0x3b44b5]:_0x2f1081,..._0x1771bc[_0xb3eca0(0x282)]?{[_0x1e0051]:_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1)}:{}},'orderKey':String(_0x13301+0x1)['padStart'](0x4,'0'),'createdAt':_0x401106,'updatedAt':_0x401106},_0xaaef58[_0xb3eca0(0x1f3)](_0x2f1081),_0x5c092e[_0x2f1081]=_0x13301,_0x4c3e4d[_0x13301]=_0x2f1081,_0x27221b[_0x13301]={0x0:{'v':_0x2f1081,'t':_0x149f0a['STRING']}},_0x1771bc['recordNamePrefix']&&(_0x27221b[_0x13301][0x1]={'v':_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1),'t':_0x149f0a['STRING']});}let _0x1552b6={'id':_0x1e80b7,'tableId':_0x1771bc['id'],'name':_0xb3eca0(0x388),'type':_0x2b4a2c[_0xb3eca0(0x388)],'fieldOrder':[_0x3b44b5,_0x1e0051],'fieldSettings':{[_0x3b44b5]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x1771bc['id'],'name':_0x1771bc[_0xb3eca0(0x1e0)],'primaryFieldId':_0x1e0051,'fieldOrder':[_0x3b44b5,_0x1e0051],'fields':{[_0x3b44b5]:_0x4b8112,[_0x1e0051]:_0x5ab6bc},'records':_0x56ad1e,'recordOrder':_0xaaef58,'rowIndex':_0x5c092e,'rowId':_0x4c3e4d,'colIndex':{[_0x3b44b5]:0x0,[_0x1e0051]:0x1},'colId':{0x0:_0x3b44b5,0x1:_0x1e0051},'cellData':_0x27221b,'views':{[_0x1e80b7]:_0x1552b6},'viewOrder':[_0x1e80b7]};}const Vo=_0x354fcb(0x339);function Ho(_0x46c524){const _0xcf2577=_0x354fcb;let _0xc784a5=Bo({'id':_0x46c524[_0xcf2577(0x303)],'name':_0x46c524[_0xcf2577(0x1e0)]??_0x46c524[_0xcf2577(0x39e)],'recordCount':0x0});return{..._0xc784a5,'resources':{..._0xc784a5[_0xcf2577(0x358)]??{},[Vo]:Go(_0x46c524)}};}function Uo(_0x5b23dd){const _0x3cc656=_0x354fcb;return{'id':Q['id'],'params':{'unitId':_0x5b23dd[_0x3cc656(0x278)],'op':_0x370803[_0x3cc656(0x33a)]['compose'](_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x2ba),_0x5b23dd[_0x3cc656(0x513)]['id']],_0x5b23dd[_0x3cc656(0x513)]),_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x3e3),_0x5b23dd[_0x3cc656(0x250)]??_0x5b23dd[_0x3cc656(0x2d2)][_0x3cc656(0x3e3)]['length']],_0x5b23dd[_0x3cc656(0x513)]['id'])),'trigger':_0x3cc656(0x31c)}};}function Wo(_0x3d9ca2){const _0x7101e8=_0x354fcb;let _0x1be666=_0x3d9ca2['snapshot'][_0x7101e8(0x3e3)][_0x7101e8(0x4c8)](_0x3d9ca2[_0x7101e8(0x1c3)]);if(!(!_0x3d9ca2['snapshot']['tables'][_0x3d9ca2[_0x7101e8(0x1c3)]]||_0x1be666<0x0))return{'id':Q['id'],'params':{'unitId':_0x3d9ca2['unitId'],'op':_0x370803['type'][_0x7101e8(0x1fb)](_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x2ba),_0x3d9ca2[_0x7101e8(0x1c3)]],_0x3d9ca2[_0x7101e8(0x2d2)][_0x7101e8(0x2ba)][_0x3d9ca2[_0x7101e8(0x1c3)]]),_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x3e3),_0x1be666],_0x3d9ca2[_0x7101e8(0x1c3)])),'trigger':_0x7101e8(0x31c)}};}function Go(_0xedb651){const _0x2dbcd6=_0x354fcb;return{'version':0x1,'embedId':_0xedb651[_0x2dbcd6(0x39e)],'hostAnchorId':_0xedb651[_0x2dbcd6(0x303)],'childUnitId':_0xedb651[_0x2dbcd6(0x33e)],'childType':_0xedb651[_0x2dbcd6(0x525)]};}function Ko(_0x44b35d){const _0x1eee40=_0x354fcb;let _0x595a9d=Math[_0x1eee40(0x1b3)](0x0,Number(_0x44b35d[_0x1eee40(0x40e)]??0x0)),_0x577650=_0x44b35d[_0x1eee40(0x2ce)]===!0x1?'0':_0x1eee40(0x3c3),_0x16907b=_0x595a9d?'.'+'0'[_0x1eee40(0x4d1)](_0x595a9d):'',_0x57c1e1=Jo(_0x44b35d['abbreviation']);return''+(_0x44b35d['currencySymbol']?Yo(_0x44b35d[_0x1eee40(0x4d3)]):'')+_0x577650+_0x16907b+_0x57c1e1;}function qo(_0x55aac2,_0x1834d8){const _0x5c492f=_0x354fcb;let _0xcfff44=Ko(_0x1834d8),_0x5eed9b=_0x5e5ce5['format'](_0xcfff44,_0x55aac2,{'throws':!0x1});return Xo(String(_0x5eed9b),_0x1834d8[_0x5c492f(0x28d)],_0x1834d8[_0x5c492f(0x4f5)]);}function Jo(_0x3e3af0){const _0x5c17f5=_0x354fcb;return _0x3e3af0==='K'?',\x22K\x22':_0x3e3af0==='M'?_0x5c17f5(0x279):_0x3e3af0==='B'?_0x5c17f5(0x4a6):'';}function Yo(_0x4c64ae){const _0x305676=_0x354fcb;return/^[A-Z]+$/i[_0x305676(0x235)](_0x4c64ae)?'\x22'+_0x4c64ae+'\x22':_0x4c64ae;}function Xo(_0xa4b339,_0x174271,_0x1bbba9){const _0x468207=_0x354fcb;let _0x51f2f8=_0x174271===_0x468207(0x40a)?Zo(_0x1bbba9):_0x174271;return _0x51f2f8===_0x468207(0x425)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x00')[_0x468207(0x2b1)](/\./g,',')['replace'](/\0/g,'.'):_0x51f2f8===_0x468207(0x26c)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20')[_0x468207(0x2b1)](/\./g,','):_0x51f2f8===_0x468207(0x2c5)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20'):_0xa4b339;}function Zo(_0x4cf187){const _0x56299f=_0x354fcb;var _0x916872,_0x27287d;let _0x533a13=_0x4cf187||new Intl[(_0x56299f(0x4fb))]()[_0x56299f(0x1de)]()[_0x56299f(0x4f5)],_0x2224cf;try{_0x2224cf=new Intl[(_0x56299f(0x4fb))](_0x533a13,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x56299f(0x41b)](0xf4240);}catch{return'commaPeriod';}let _0x34bc9a=(_0x916872=_0x2224cf[_0x56299f(0x22f)](_0x387c8d=>_0x387c8d['type']===_0x56299f(0x1b9)))==null?void 0x0:_0x916872['value'],_0x59b0ab=(_0x27287d=_0x2224cf['find'](_0x5185de=>_0x5185de['type']==='decimal'))==null?void 0x0:_0x27287d[_0x56299f(0x416)],_0x79f63c=_0x34bc9a==='\u00a0'||_0x34bc9a==='\u202f'?'\x20':_0x34bc9a;return _0x79f63c==='.'&&_0x59b0ab===','?_0x56299f(0x425):_0x79f63c==='\x20'&&_0x59b0ab===','?'spaceComma':_0x79f63c==='\x20'&&_0x59b0ab==='.'?_0x56299f(0x2c5):_0x56299f(0x3e1);}function Qo(_0x4aea1c,_0x300f08){const _0x10e7a5=_0x354fcb;let _0x4ae1f8=_0x300f08&&typeof _0x300f08==_0x10e7a5(0x269)&&!Array[_0x10e7a5(0x354)](_0x300f08)?_0x300f08:{},_0x3c95b2=$o(_0x4ae1f8[_0x10e7a5(0x40e)],0x0,0x2,0x0),_0x4268e1=_0x4aea1c[_0x10e7a5(0x23d)](_0x3c95b2);return _0x4ae1f8[_0x10e7a5(0x24a)]===_0x10e7a5(0x256)?_0x4268e1:_0x4268e1+'%';}function $o(_0x4d22b7,_0x1b9fc2,_0x5b1417,_0x42472c){const _0x445246=_0x354fcb;if(_0x4d22b7==null||_0x4d22b7==='')return _0x42472c;let _0x471592=typeof _0x4d22b7==_0x445246(0x256)?_0x4d22b7:Number(_0x4d22b7);return Number[_0x445246(0x2c3)](_0x471592)?Math['max'](_0x1b9fc2,Math[_0x445246(0x35d)](_0x5b1417,Math[_0x445246(0x40b)](_0x471592))):_0x42472c;}const es=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505),_0x354fcb(0x22c),_0x354fcb(0x218),'min',_0x354fcb(0x1b3)],ts=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505)],ns=[_0x354fcb(0x22c),'average',_0x354fcb(0x35d),_0x354fcb(0x1b3)],rs=[_0x354fcb(0x35d),_0x354fcb(0x1b3)],is=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94['Currency'],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)]]),as=new Set([_0x19bf94[_0x354fcb(0x283)],_0x19bf94[_0x354fcb(0x1e5)],_0x19bf94[_0x354fcb(0x223)]]),os='General';function ss(_0x2adb61){const _0xa6c2c3=_0x354fcb;return typeof _0x2adb61==_0xa6c2c3(0x471)&&es[_0xa6c2c3(0x231)](_0x2adb61);}function cs(_0x4abdca){const _0x3a3c76=_0x354fcb;return!_0x4abdca||typeof _0x4abdca!=_0x3a3c76(0x269)?{}:Object[_0x3a3c76(0x2e8)](Object[_0x3a3c76(0x1e2)](_0x4abdca)['filter'](_0x822ce=>ss(_0x822ce[0x1])));}function ls(_0x409a54){const _0x2a10c6=_0x354fcb;return is[_0x2a10c6(0x23f)](_0x409a54[_0x2a10c6(0x33a)])?[...ts,...ns]:_0x409a54[_0x2a10c6(0x33a)]===_0x19bf94['Formula']?[...ts,...ws(_0x409a54)===_0x2a10c6(0x219)?rs:ns]:ts;}function us(_0x240a8e,_0x25a25a){const _0x3ec0c5=_0x354fcb;return ls(_0x240a8e)[_0x3ec0c5(0x231)](_0x25a25a);}function ds(_0x36a3b2,_0x42d1d4,_0x5052f9){const _0x2bc2f7=_0x354fcb;if(!us(_0x36a3b2,_0x5052f9))return null;let _0x112613=_0x42d1d4[_0x2bc2f7(0x397)](_0x8bb13d=>!ps(_0x36a3b2,_0x8bb13d));switch(_0x5052f9){case _0x2bc2f7(0x3f5):return _0x42d1d4[_0x2bc2f7(0x458)];case _0x2bc2f7(0x2af):return _0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x26a):return _0x42d1d4[_0x2bc2f7(0x458)]-_0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x505):return new Set(_0x112613['map'](_0x1cae5e=>_s(_0x36a3b2,_0x1cae5e)))[_0x2bc2f7(0x473)];case _0x2bc2f7(0x22c):{let _0x37cfe6=ms(_0x36a3b2,_0x112613);return _0x37cfe6[_0x2bc2f7(0x458)]?gs(_0x37cfe6):null;}case _0x2bc2f7(0x218):{let _0x4976e5=ms(_0x36a3b2,_0x112613);return _0x4976e5['length']?gs(_0x4976e5)/_0x4976e5[_0x2bc2f7(0x458)]:null;}case _0x2bc2f7(0x35d):{let _0x237646=ms(_0x36a3b2,_0x112613);return _0x237646[_0x2bc2f7(0x458)]?Math[_0x2bc2f7(0x35d)](..._0x237646):null;}case _0x2bc2f7(0x1b3):{let _0x32c80b=ms(_0x36a3b2,_0x112613);return _0x32c80b['length']?Math['max'](..._0x32c80b):null;}}}function fs(_0x30eb7c,_0x34b16c,_0x493031){const _0x527f3d=_0x354fcb;if(_0x493031==null||!Number[_0x527f3d(0x2c3)](_0x493031))return'-';if(ts[_0x527f3d(0x231)](_0x34b16c))return String(_0x493031);switch(_0x30eb7c[_0x527f3d(0x33a)]){case _0x19bf94[_0x527f3d(0x271)]:return qo(_0x493031,xs(_0x30eb7c));case _0x19bf94[_0x527f3d(0x19c)]:return qo(_0x493031,Ss(_0x30eb7c));case _0x19bf94[_0x527f3d(0x1ba)]:return Qo(_0x493031,_0x30eb7c[_0x527f3d(0x342)]);case _0x19bf94[_0x527f3d(0x405)]:return Cs(_0x493031,_0x30eb7c);default:return Es(_0x493031);}}function ps(_0x23eea6,_0x2c95cf){const _0x590673=_0x354fcb;if(_0x2c95cf==null)return!0x0;if(typeof _0x2c95cf==_0x590673(0x471))return _0x2c95cf[_0x590673(0x3bc)]()==='';if(Array[_0x590673(0x354)](_0x2c95cf))return _0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x46f)]?!_0x2c95cf[_0x590673(0x257)](bs):_0x2c95cf[_0x590673(0x458)]===0x0;if(_0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x4db)]&&typeof _0x2c95cf==_0x590673(0x269)){let _0x3f71d9=_0x2c95cf;return[_0x3f71d9['text'],_0x3f71d9[_0x590673(0x1c7)]][_0x590673(0x1b6)](_0x5e1519=>_0x5e1519==null||String(_0x5e1519)[_0x590673(0x3bc)]()==='');}return!0x1;}function ms(_0x123c06,_0x4fa302){const _0x59db8d=_0x354fcb;let _0x12ad13=[];for(let _0x29bc6d of _0x4fa302){let _0x293ad5=hs(_0x123c06,_0x29bc6d);_0x293ad5!=null&&_0x12ad13[_0x59db8d(0x1f3)](_0x293ad5);}return _0x12ad13;}function hs(_0x4d27d0,_0x39a844){const _0xa18ee7=_0x354fcb;if(typeof _0x39a844=='number')return Number[_0xa18ee7(0x2c3)](_0x39a844)?_0x39a844:null;if(_0x4d27d0['type']!==_0x19bf94['Formula']&&typeof _0x39a844=='string'&&_0x39a844[_0xa18ee7(0x3bc)]()!==''){let _0x41ea52=Number(_0x39a844);return Number[_0xa18ee7(0x2c3)](_0x41ea52)?_0x41ea52:null;}return null;}function gs(_0x2f89da){const _0x1cdfc4=_0x354fcb;let _0x14ea8e=0x0,_0x52db04=0x0;for(let _0x1b5c93 of _0x2f89da){let _0x21b5ef=_0x14ea8e+_0x1b5c93;_0x52db04+=Math[_0x1cdfc4(0x2f7)](_0x14ea8e)>=Math[_0x1cdfc4(0x2f7)](_0x1b5c93)?_0x14ea8e-_0x21b5ef+_0x1b5c93:_0x1b5c93-_0x21b5ef+_0x14ea8e,_0x14ea8e=_0x21b5ef;}return _0x14ea8e+_0x52db04;}function _s(_0x2789d5,_0x4cd63a){const _0x221d7e=_0x354fcb;return as[_0x221d7e(0x23f)](_0x2789d5[_0x221d7e(0x33a)])&&Array[_0x221d7e(0x354)](_0x4cd63a)?ys([...new Set(_0x4cd63a[_0x221d7e(0x29b)](_0x3e280b=>ys(vs(_0x3e280b))))][_0x221d7e(0x3db)]()):ys(vs(_0x4cd63a));}function vs(_0x1b89b0){const _0x48910a=_0x354fcb;return Array['isArray'](_0x1b89b0)?_0x1b89b0[_0x48910a(0x29b)](vs):_0x1b89b0&&typeof _0x1b89b0=='object'?Object[_0x48910a(0x2e8)](Object[_0x48910a(0x1e2)](_0x1b89b0)[_0x48910a(0x3db)](([_0x3dd493],[_0x41a477])=>_0x3dd493[_0x48910a(0x4bc)](_0x41a477))[_0x48910a(0x29b)](([_0x16cffd,_0x2b2d25])=>[_0x16cffd,vs(_0x2b2d25)])):_0x1b89b0;}function ys(_0x2536a5){const _0x583cdc=_0x354fcb;return JSON[_0x583cdc(0x449)](_0x2536a5)??'undefined';}function bs(_0x5dc8fe){const _0x1afde1=_0x354fcb;if(typeof _0x5dc8fe=='string')return _0x5dc8fe[_0x1afde1(0x3bc)]()!=='';if(!_0x5dc8fe||typeof _0x5dc8fe!=_0x1afde1(0x269))return!0x1;let _0x2951f7=_0x5dc8fe;return[_0x2951f7['id'],_0x2951f7[_0x1afde1(0x1e0)],_0x2951f7[_0x1afde1(0x4cd)],_0x2951f7[_0x1afde1(0x1c7)],_0x2951f7['thumbnail']][_0x1afde1(0x257)](_0xab6ff9=>_0xab6ff9!=null&&String(_0xab6ff9)[_0x1afde1(0x3bc)]()!=='');}function xs(_0x2ff929){const _0x9c3246=_0x354fcb;let _0x3b18e1=Ds(_0x2ff929[_0x9c3246(0x342)]);return{'decimalPlaces':ks(_0x3b18e1[_0x9c3246(0x40e)],0x0,0x14,0x2),'separatorStyle':typeof _0x3b18e1[_0x9c3246(0x28d)]==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x28d)]:_0x9c3246(0x40a),'locale':typeof _0x3b18e1[_0x9c3246(0x4f5)]=='string'?_0x3b18e1[_0x9c3246(0x4f5)]:void 0x0,'useThousands':_0x3b18e1[_0x9c3246(0x2ce)]!==!0x1,'abbreviation':typeof _0x3b18e1['abbreviation']==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x356)]:'none'};}function Ss(_0x411d6a){const _0x380da1=_0x354fcb;let _0x4ea89b=Ds(_0x411d6a[_0x380da1(0x342)]);return{...xs(_0x411d6a),'currencySymbol':String(_0x4ea89b['currencySymbol']??'$')};}function Cs(_0x2d6721,_0x2eaef7){let _0x8f564b=Ts(_0x2eaef7);if(_0x8f564b===os)return Es(_0x2d6721);try{return String(_0x5e5ce5['format'](_0x8f564b,_0x2d6721,{'throws':!0x1}));}catch{return Es(_0x2d6721);}}function ws(_0x112cc5){const _0x10376d=_0x354fcb;let _0x29aa2a=Ds(Ds(_0x112cc5[_0x10376d(0x342)])[_0x10376d(0x51c)]);return typeof _0x29aa2a[_0x10376d(0x33a)]=='string'?_0x29aa2a[_0x10376d(0x33a)]:'general';}function Ts(_0x39c952){const _0x325160=_0x354fcb;let _0x1f99bc=Ds(Ds(_0x39c952[_0x325160(0x342)])['numfmt']);return String(_0x1f99bc[_0x325160(0x177)]??os)[_0x325160(0x3bc)]()||os;}function Es(_0x44d624){const _0x310221=_0x354fcb;return String(Number[_0x310221(0x39d)](_0x44d624)?_0x44d624:Math[_0x310221(0x40b)]((_0x44d624+0x2**-0x34)*0x64)/0x64);}function Ds(_0x3874eb){const _0x7c7c29=_0x354fcb;return _0x3874eb&&typeof _0x3874eb==_0x7c7c29(0x269)&&!Array[_0x7c7c29(0x354)](_0x3874eb)?_0x3874eb:{};}function Os(_0x17cf61){const _0x425bc8=_0x354fcb;if(_0x17cf61==null||_0x17cf61==='')return null;let _0x36cad6=typeof _0x17cf61==_0x425bc8(0x256)?_0x17cf61:Number(_0x17cf61);return Number[_0x425bc8(0x2c3)](_0x36cad6)?_0x36cad6:null;}function ks(_0x57b4dc,_0x70bd96,_0x5b3d6a,_0x3f5e42){const _0x5f42bc=_0x354fcb;let _0x22ee98=Os(_0x57b4dc);return _0x22ee98==null?_0x3f5e42:Math[_0x5f42bc(0x1b3)](_0x70bd96,Math['min'](_0x5b3d6a,Math[_0x5f42bc(0x40b)](_0x22ee98)));}function As(_0x544972,_0x43aec0){const _0x54c2e8=_0x354fcb;let _0x424486=_0x30f9db['deepClone'](_0x544972),_0x219d11=_0x43aec0[_0x54c2e8(0x22e)]===!0x0,_0x2b9516=new Map(),_0x5136e5=_0x43aec0[_0x54c2e8(0x213)]??(()=>'view-'+_0x3ba5f0(0x8)),_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)];return _0x43aec0[_0x54c2e8(0x3fd)]&&(_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)]['map'](_0x35f86=>{const _0xf541=_0x54c2e8;let _0x1f032b=_0x5136e5();return _0x2b9516[_0xf541(0x1a1)](_0x35f86,_0x1f032b),_0x1f032b;})),{..._0x424486,'id':_0x43aec0['id'],'name':_0x43aec0['name'],'records':_0x219d11?_0x424486[_0x54c2e8(0x45a)]:{},'recordOrder':_0x219d11?_0x424486[_0x54c2e8(0x22d)]:[],'rowIndex':_0x219d11?_0x424486[_0x54c2e8(0x290)]:{},'rowId':_0x219d11?_0x424486[_0x54c2e8(0x474)]:{},'cellData':_0x219d11?_0x424486[_0x54c2e8(0x1cf)]:{},'resources':_0x219d11?_0x424486[_0x54c2e8(0x358)]:{},'viewOrder':_0x8a0b8a,'views':Object['fromEntries'](Object[_0x54c2e8(0x1e2)](_0x424486['views']??{})['map'](([_0xe26fb1,_0x8c129])=>{const _0x5ee79d=_0x54c2e8;let _0x40ad41=_0x2b9516[_0x5ee79d(0x4a8)](_0xe26fb1)??(_0x43aec0['regenerateViewIds']?_0x5136e5():_0xe26fb1);return[_0x40ad41,{..._0x8c129,'id':_0x40ad41,'tableId':_0x43aec0['id']}];}))};}var js=_0x354fcb(0x4e6),Ms=_0x354fcb(0x3fe);const Ns={},Ps={};function Fs(_0x24afd0){const _0x127f33=_0x354fcb;return new z()[_0x127f33(0x2b9)](_0x24afd0);}function Is(_0x25e50b){const _0x14db31=_0x354fcb;return _0x25e50b[_0x14db31(0x1bc)][_0x14db31(0x29b)](_0x3f97e2=>({'unitId':_0x25e50b[_0x14db31(0x278)],'sheetId':_0x25e50b[_0x14db31(0x1c3)],'range':{'startRow':_0x3f97e2[_0x14db31(0x21b)],'endRow':_0x3f97e2[_0x14db31(0x21b)],'startColumn':_0x3f97e2[_0x14db31(0x1ea)],'endColumn':_0x3f97e2['col']}}));}function Ls(_0x2cda77,_0x5b8d9c){const _0x13f5c1=_0x354fcb;return{[_0x2cda77]:Object[_0x13f5c1(0x2e8)](_0x5b8d9c[_0x13f5c1(0x29b)](_0x388dae=>[_0x388dae,'1']))};}let Rs=class extends _0x1589db{constructor(_0x354736,_0x1186bc){const _0x4bce20=_0x354fcb;super(),this[_0x4bce20(0x419)]=_0x354736,this[_0x4bce20(0x432)]=_0x1186bc,this[_0x4bce20(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x3aa156=_0x354fcb;this[_0x3aa156(0x419)][_0x3aa156(0x2f4)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x1a6d44=>this[_0x3aa156(0x180)](_0x1a6d44[_0x3aa156(0x211)])}),this[_0x3aa156(0x1b4)](_0x5b4066(()=>{const _0x283288=_0x3aa156;this[_0x283288(0x419)]['remove'](Q['id']);}));}[_0x354fcb(0x2b3)](_0x4b5f7e,_0x367348){const _0x305843=_0x354fcb;let _0x18014a=this[_0x305843(0x432)]['getUnit'](_0x4b5f7e,_0x28d752[_0x305843(0x201)]);return(_0x18014a==null?void 0x0:_0x18014a[_0x305843(0x1f9)]()[_0x305843(0x2ba)][_0x367348])??null;}['_getJson1DirtyData'](_0x4f20e4){const _0x228b01=_0x354fcb;if(_0x4f20e4['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x4f20e4[_0x228b01(0x278)]||!_0x4f20e4['op'])return{'clearDependencyTreeCache':this[_0x228b01(0x376)](),'forceCalculation':!0x0};let _0x4de89c=Fs(_0x4f20e4['op']),_0x15d9b1=this[_0x228b01(0x4cb)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c);if(_0x15d9b1[_0x228b01(0x458)])return{'clearDependencyTreeCache':Ls(_0x4f20e4['unitId'],_0x15d9b1),'forceCalculation':!0x0};let _0x364d3d=Object[_0x228b01(0x1e2)](this[_0x228b01(0x276)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c))[_0x228b01(0x2a2)](([_0x11bd78,_0x217be9])=>Is({'unitId':_0x4f20e4[_0x228b01(0x278)],'tableId':_0x11bd78,'patches':_0x217be9}));return _0x364d3d[_0x228b01(0x458)]?{'dirtyRanges':_0x364d3d}:{};}[_0x354fcb(0x4cb)](_0x414915,_0xb891b9){const _0x3bac7d=_0x354fcb;let _0xc6471f=_0xb891b9[_0x3bac7d(0x397)](_0x471577=>_0x471577[_0x3bac7d(0x2d9)]!=='cell')[_0x3bac7d(0x2a2)](_0x245c38=>_0x245c38[_0x3bac7d(0x1c3)]?[_0x245c38[_0x3bac7d(0x1c3)]]:this[_0x3bac7d(0x3b1)](_0x414915));return Array['from'](new Set(_0xc6471f));}['_groupCellInvalidations'](_0xa0cff7,_0x429082){let _0x40ebad=new Set();return _0x429082['reduce']((_0x3f1384,_0x12ff2e)=>{const _0x7ccbba=_0x48d8;let _0x453554=this[_0x7ccbba(0x3bf)](_0xa0cff7,_0x12ff2e);if(!_0x453554)return _0x3f1384;let _0x3e8e59=_0x12ff2e[_0x7ccbba(0x1c3)]+':'+_0x453554[_0x7ccbba(0x21b)]+':'+_0x453554[_0x7ccbba(0x1ea)];return _0x40ebad[_0x7ccbba(0x23f)](_0x3e8e59)||(_0x40ebad['add'](_0x3e8e59),_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]=_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]??[],_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]['push'](_0x453554)),_0x3f1384;},{});}[_0x354fcb(0x3bf)](_0x2ee441,_0x363579){const _0x278e64=_0x354fcb;if(_0x363579[_0x278e64(0x2d9)]!==_0x278e64(0x4eb))return null;if(_0x363579[_0x278e64(0x21b)]!=null&&_0x363579[_0x278e64(0x26e)]!=null)return{'row':_0x363579[_0x278e64(0x21b)],'col':_0x363579['column'],'value':null};if(!_0x363579['recordId']||!_0x363579[_0x278e64(0x46e)])return null;let _0x197cfb=this[_0x278e64(0x2b3)](_0x2ee441,_0x363579[_0x278e64(0x1c3)]);if(!_0x197cfb)return null;let _0x5a3419=_t(_0x197cfb,_0x363579[_0x278e64(0x4bb)],_0x363579['fieldId']);return _0x5a3419?{'row':_0x5a3419[_0x278e64(0x21b)],'col':_0x5a3419[_0x278e64(0x1ea)],'value':null}:null;}['_getAllTableIds'](_0xf8076e){const _0xa067df=_0x354fcb;let _0x238e4c=this[_0xa067df(0x432)]['getUnit'](_0xf8076e,_0x28d752[_0xa067df(0x201)]);return Object['values']((_0x238e4c==null?void 0x0:_0x238e4c[_0xa067df(0x1f9)]()[_0xa067df(0x2ba)])??{})['map'](_0x37c321=>_0x37c321['id']);}[_0x354fcb(0x376)](){const _0xeb6522=_0x354fcb;let _0x346086=this['_univerInstanceService'][_0xeb6522(0x3c4)](_0x28d752['UNIVER_BASE'])[_0xeb6522(0x29b)](_0x118c62=>Ls(_0x118c62[_0xeb6522(0x422)](),Object['keys'](_0x118c62[_0xeb6522(0x1f9)]()[_0xeb6522(0x2ba)])));return Object[_0xeb6522(0x2e7)]({},..._0x346086);}};Rs=X([Y(0x0,_0x35d62c),Y(0x1,_0x3414e2)],Rs);let zs=class extends _0x1589db{constructor(_0x475020,_0x548a70,_0x3b4271,_0x388d1a){const _0x93894e=_0x354fcb;super(),this[_0x93894e(0x2ee)]=_0x475020,this[_0x93894e(0x432)]=_0x548a70,this[_0x93894e(0x4ea)]=_0x3b4271,this[_0x93894e(0x36b)]=_0x388d1a,G(this,_0x93894e(0x297),new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,_0x93894e(0x20f),Promise[_0x93894e(0x2c1)]()),G(this,'_applyingFormulaResults',!0x1),this[_0x93894e(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x460ddf=_0x354fcb;this['_univerInstanceService'][_0x460ddf(0x3c4)](_0x28d752[_0x460ddf(0x201)])['forEach'](_0x11dd6b=>{const _0x17149=_0x460ddf;this[_0x17149(0x2f8)](_0x11dd6b);}),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x2ae)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](({unit:_0x4efc33})=>{this['_scheduleSuperTableSync'](_0x4efc33);})),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x275)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](_0x7c5dea=>{const _0xaf2307=_0x460ddf;this['_enqueueFormulaSync'](()=>this[_0xaf2307(0x496)](_0x7c5dea[_0xaf2307(0x422)]()));})),this['disposeWithMe'](this[_0x460ddf(0x2ee)][_0x460ddf(0x31d)](_0x2f683b=>this[_0x460ddf(0x208)](_0x2f683b)));}[_0x354fcb(0x208)](_0x2ec9e7){const _0x1a6ff1=_0x354fcb;if(_0x2ec9e7['id']===_0x2d710f['id']){Vs(_0x2ec9e7[_0x1a6ff1(0x211)])&&this[_0x1a6ff1(0x52e)](_0x2ec9e7['params']);return;}if(this[_0x1a6ff1(0x30c)]||_0x2ec9e7['id']!==Q['id'])return;let _0x39afaa=Bs(_0x2ec9e7[_0x1a6ff1(0x211)])?_0x2ec9e7[_0x1a6ff1(0x211)]:void 0x0,_0xc6c36b=_0x39afaa!=null&&_0x39afaa[_0x1a6ff1(0x278)]?[this[_0x1a6ff1(0x432)][_0x1a6ff1(0x2e5)](_0x39afaa[_0x1a6ff1(0x278)],_0x28d752[_0x1a6ff1(0x201)])]['filter'](_0x55af83=>!!_0x55af83):this['_univerInstanceService'][_0x1a6ff1(0x3c4)](_0x28d752[_0x1a6ff1(0x201)]),_0xcd7450=_0x39afaa==null?void 0x0:_0x39afaa['op'];_0xc6c36b[_0x1a6ff1(0x461)](_0x33212c=>{const _0x3f04db=_0x1a6ff1;let _0x2624d0=_0xcd7450?Fs(_0xcd7450):[];(!_0xcd7450||_0x2624d0[_0x3f04db(0x257)](_0x2e0535=>_0x2e0535[_0x3f04db(0x2d9)]!=='cell'))&&this[_0x3f04db(0x2f8)](_0x33212c);});}[_0x354fcb(0x2f8)](_0x376a20){const _0x297a0c=_0x354fcb;let _0x175df6=_0x376a20[_0x297a0c(0x422)]();this[_0x297a0c(0x361)][_0x297a0c(0x23f)](_0x175df6)||(this[_0x297a0c(0x361)]['add'](_0x175df6),this[_0x297a0c(0x294)](async()=>{const _0x989283=_0x297a0c;this[_0x989283(0x361)]['delete'](_0x175df6),await this[_0x989283(0x380)](_0x376a20);}));}async[_0x354fcb(0x380)](_0x156a8d){const _0x5c8ba7=_0x354fcb;let _0x5daf55=_0x156a8d[_0x5c8ba7(0x422)](),_0x412a3e=this['_formulaService'][_0x5c8ba7(0x515)](_0x156a8d[_0x5c8ba7(0x1f9)]()),_0x58059e=new Set(_0x412a3e[_0x5c8ba7(0x29b)](({tableName:_0x3a0876})=>_0x3a0876)),_0x583753=this[_0x5c8ba7(0x18f)]['get'](_0x5daf55)??new Set();for(let _0x5f0e25 of _0x583753)if(!_0x58059e['has'](_0x5f0e25)&&!await this[_0x5c8ba7(0x25a)](_0x5d6472['id'],{'unitId':_0x5daf55,'tableName':_0x5f0e25}))return;for(let {tableName:_0x2f9ebe,reference:_0x5aeb28}of _0x412a3e)if(!await this[_0x5c8ba7(0x25a)](_0x33aa29['id'],{'unitId':_0x5daf55,'tableName':_0x2f9ebe,'reference':_0x5aeb28}))return;this[_0x5c8ba7(0x18f)][_0x5c8ba7(0x1a1)](_0x5daf55,_0x58059e);}async[_0x354fcb(0x496)](_0xd52789){const _0x171084=_0x354fcb;let _0x4035e8=this['_registeredSuperTableNames'][_0x171084(0x4a8)](_0xd52789)??new Set();for(let _0x409325 of _0x4035e8)if(!await this[_0x171084(0x25a)](_0x5d6472['id'],{'unitId':_0xd52789,'tableName':_0x409325}))return;this[_0x171084(0x18f)][_0x171084(0x4f4)](_0xd52789);}async[_0x354fcb(0x25a)](_0x3b4e35,_0x3ffd53){const _0x37b5e6=_0x354fcb;return!this[_0x37b5e6(0x44d)]&&await this[_0x37b5e6(0x2ee)]['executeCommand'](_0x3b4e35,_0x3ffd53,{'onlyLocal':!0x0})&&!this[_0x37b5e6(0x44d)];}[_0x354fcb(0x294)](_0x16d159){const _0x18740e=_0x354fcb;this[_0x18740e(0x20f)]=this[_0x18740e(0x20f)][_0x18740e(0x3c5)](_0x16d159,_0x16d159)['catch'](()=>void 0x0);}[_0x354fcb(0x52e)](_0x392a2f){const _0x2f444d=_0x354fcb;let _0x4aca71=this[_0x2f444d(0x432)]['getAllUnitsForType'](_0x28d752[_0x2f444d(0x201)]);if(!_0x4aca71[_0x2f444d(0x257)](_0x3c6bbd=>{const _0x173863=_0x2f444d;var _0x151c59;return((_0x151c59=_0x392a2f[_0x173863(0x50f)])==null?void 0x0:_0x151c59[_0x3c6bbd['getUnitId']()])!=null;}))return;let _0x1bc20a=_0x4aca71[_0x2f444d(0x2a2)](_0x46a28f=>Zi(_0x46a28f[_0x2f444d(0x1f9)](),_0x392a2f));if(!_0x1bc20a[_0x2f444d(0x458)]){this[_0x2f444d(0x36b)]['markResultApplied'](_0x2001ae[_0x2f444d(0x507)],_0x392a2f);return;}let _0x26b845=new W(),_0x41204c=_0x1bc20a[_0x2f444d(0x2a2)](_0x539c22=>Is({'unitId':_0x539c22[_0x2f444d(0x278)],'tableId':_0x539c22['tableId'],'patches':_0x539c22[_0x2f444d(0x1bc)]}));this['_applyingFormulaResults']=!0x0,(async()=>{const _0x33bac1=_0x2f444d;for(let _0x201585 of _0x1bc20a){let _0x3fac29=this[_0x33bac1(0x432)][_0x33bac1(0x2e5)](_0x201585[_0x33bac1(0x278)],_0x28d752[_0x33bac1(0x201)]);_0x3fac29&&await this[_0x33bac1(0x2ee)][_0x33bac1(0x260)](Q['id'],{'unitId':_0x201585['unitId'],'op':_0x26b845[_0x33bac1(0x511)](_0x3fac29[_0x33bac1(0x1f9)](),_0x201585[_0x33bac1(0x1c3)],_0x201585['patches']),'trigger':_0x2d710f['id']},{'onlyLocal':!0x0});}await this['_commandService'][_0x33bac1(0x260)](_0x46501c['id'],{'dirtyRanges':_0x41204c},{'onlyLocal':!0x0});})()[_0x2f444d(0x233)](()=>{const _0x29ffdb=_0x2f444d;this[_0x29ffdb(0x30c)]=!0x1,this[_0x29ffdb(0x36b)]['markResultApplied'](_0x2001ae['BASE'],_0x392a2f);});}};zs=X([Y(0x0,_0x3ff846),Y(0x1,_0x3414e2),Y(0x2,_0x42d70a(_0x4f3c26)),Y(0x3,_0x42d70a(_0x1a1f33))],zs);function Bs(_0x3cfb51){const _0x151453=_0x354fcb;return typeof _0x3cfb51=='object'&&!!_0x3cfb51&&'unitId'in _0x3cfb51&&typeof _0x3cfb51[_0x151453(0x278)]==_0x151453(0x471)&&'op'in _0x3cfb51&&Array['isArray'](_0x3cfb51['op']);}function Vs(_0x143a5e){return typeof _0x143a5e=='object'&&!!_0x143a5e&&'unitData'in _0x143a5e&&'unitOtherData'in _0x143a5e;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x1589db{constructor(_0x367cee,_0x2268be,_0x4d44bd,_0x4c53fa){const _0x41e617=_0x354fcb;super(),this[_0x41e617(0x1b8)]=_0x367cee,this['_commandService']=_0x2268be,this[_0x41e617(0x487)]=_0x4d44bd,this[_0x41e617(0x2cf)]=_0x4c53fa,this[_0x41e617(0x2cf)][_0x41e617(0x3c4)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x461)](_0x55b19f=>this['_registerUnitPermissionPoints'](_0x55b19f[_0x41e617(0x422)]())),this[_0x41e617(0x1b4)](this[_0x41e617(0x2cf)][_0x41e617(0x2ae)](_0x28d752['UNIVER_BASE'])[_0x41e617(0x30f)](({unit:_0x49f520})=>this[_0x41e617(0x29c)](_0x49f520[_0x41e617(0x422)]()))),this[_0x41e617(0x1b4)](this['_commandService'][_0x41e617(0x1bf)]((_0x41a979,_0x4ed70b)=>this[_0x41e617(0x41a)](_0x41a979,_0x4ed70b))),this['disposeWithMe'](this['_instanceService'][_0x41e617(0x275)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x30f)](_0x604213=>{const _0x47a7ed=_0x41e617;this['_injector']['get'](_0x1e71b2)[_0x47a7ed(0x247)](_0x604213[_0x47a7ed(0x422)]()),Rr(this[_0x47a7ed(0x487)],_0x604213['getUnitId']());}));}[_0x354fcb(0x29c)](_0xec7c95){const _0x31d0db=_0x354fcb;Tr['forEach'](_0x437e93=>{const _0x2079e4=_0x48d8;let _0x17ff0f=Pr(_0xec7c95,_0xec7c95,_0x437e93);this[_0x2079e4(0x487)]['getPermissionPoint'](_0x17ff0f['id'])||this[_0x2079e4(0x487)][_0x2079e4(0x2da)](_0x17ff0f);}),this[_0x31d0db(0x1b8)][_0x31d0db(0x4a8)](_0x1e71b2)[_0x31d0db(0x3c9)]({'unitId':_0xec7c95,'objectId':_0xec7c95,'objectType':_0x56e21f['Base']});}[_0x354fcb(0x41a)](_0x85ca7f,_0x49929e){const _0x764ee=_0x354fcb;var _0x18b33a;if(_0x49929e!=null&&_0x49929e[_0x764ee(0x382)]||_0x49929e!=null&&_0x49929e[_0x764ee(0x38f)])return;let _0x2eeaa2=tc(_0x85ca7f['params'])?_0x85ca7f[_0x764ee(0x211)]:void 0x0;if(_0x49929e!=null&&_0x49929e['onlyLocal']&&_0x85ca7f['id']===_0x764ee(0x4d6)&&(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x1ad)])===_0x2d710f['id'])return;let _0x51db7e=Gs(_0x85ca7f['id']),_0x196083=Ws(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x278)],_0x49929e)??(_0x51db7e?(_0x18b33a=this[_0x764ee(0x2cf)]['getCurrentUnitOfType'](_0x28d752[_0x764ee(0x201)]))==null?void 0x0:_0x18b33a[_0x764ee(0x422)]():void 0x0);if(!_0x196083||this[_0x764ee(0x2cf)][_0x764ee(0x3ed)](_0x196083)!==_0x28d752[_0x764ee(0x201)])return;if(_0x51db7e){if(!Fr(this['_permissionService'],_0x196083,_0x196083,_0x51db7e))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083),new _0x1cfc9b(_0x764ee(0x34b)+_0x391870[_0x51db7e]+_0x764ee(0x477));return;}if(Hs['has'](_0x85ca7f['id'])||!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x25f))&&!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x2eb)))return;let _0x6170bf=this['_instanceService'][_0x764ee(0x2e5)](_0x196083,_0x28d752[_0x764ee(0x201)]),_0x1c4c06=_0x6170bf?Ks(_0x6170bf,_0x2eeaa2??{},_0x85ca7f['id']):[];if(!_0x6170bf||!zr(this[_0x764ee(0x487)],_0x196083,_0x1c4c06))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083,_0x1c4c06),new _0x1cfc9b(_0x764ee(0x47f));}};Us=X([Y(0x0,_0x42d70a(_0xcce289)),Y(0x1,_0x3ff846),Y(0x2,_0x211d15),Y(0x3,_0x3414e2)],Us);function Ws(_0x580038,_0x3db079){const _0x4b903a=_0x354fcb;return typeof _0x580038==_0x4b903a(0x471)?_0x580038:typeof(_0x3db079==null?void 0x0:_0x3db079[_0x4b903a(0x278)])==_0x4b903a(0x471)?_0x3db079[_0x4b903a(0x278)]:void 0x0;}function Gs(_0x33b991){const _0x9dea7=_0x354fcb;if(_0x33b991===_0x9dea7(0x4fd)||_0x33b991==='bases-exchange-client.operation.export-base-by-format')return _0x391870[_0x9dea7(0x479)];if(_0x33b991[_0x9dea7(0x254)](_0x9dea7(0x32a))||_0x33b991['startsWith'](_0x9dea7(0x3b9)))return _0x391870['Comment'];}function Ks(_0x46a752,_0x4bf579,_0x144478){const _0x1fcf06=_0x354fcb;if(_0x144478===_0x1fcf06(0x4d6)&&ec(_0x4bf579['op']))return qs(_0x46a752,_0x4bf579['op']);let _0x25492b=new Set(),_0x2d94cd=Zs(_0x4bf579,_0x1fcf06(0x513)),_0x556ea3=typeof _0x4bf579['tableId']==_0x1fcf06(0x471)?_0x4bf579['tableId']:_0x2d94cd[0x0];if(_0x2d94cd[_0x1fcf06(0x461)](_0x58a5f9=>_0x25492b[_0x1fcf06(0x35e)](K(_0x58a5f9))),!_0x556ea3)return[..._0x25492b];let _0x3e0171=_0x46a752[_0x1fcf06(0x1f9)]()[_0x1fcf06(0x2ba)][_0x556ea3],_0x3ffead=new Set(Zs(_0x4bf579,'field')),_0x1a738=new Set(Zs(_0x4bf579,_0x1fcf06(0x52b))),_0x2f9ea6=new Set(Zs(_0x4bf579,'view'));return Qs(_0x3e0171,_0x4bf579[_0x1fcf06(0x1bc)],_0x1a738,_0x3ffead),$s(_0x4bf579,_0x3ffead),_0x3ffead[_0x1fcf06(0x461)](_0x49c218=>_0x25492b[_0x1fcf06(0x35e)](q(_0x556ea3,_0x49c218))),_0x1a738['forEach'](_0x3fb910=>_0x25492b[_0x1fcf06(0x35e)](J(_0x556ea3,_0x3fb910))),_0x2f9ea6[_0x1fcf06(0x461)](_0x34a1be=>_0x25492b[_0x1fcf06(0x35e)](Mr(_0x556ea3,_0x34a1be))),[..._0x25492b];}function qs(_0xec282c,_0x51b500){const _0x18455b=_0x354fcb;let _0x559f26=_0xec282c[_0x18455b(0x1f9)](),_0x86ac0=new z()[_0x18455b(0x2b9)](_0x51b500),_0x4011a8=Js(_0x51b500),_0x5b9498=new Set();return _0x86ac0[_0x18455b(0x461)](_0x113afa=>{const _0x4c1738=_0x18455b;var _0x5c9b74,_0x2c7432;let {tableId:_0x335ab3}=_0x113afa;if(!_0x335ab3)return;_0x5b9498[_0x4c1738(0x35e)](K(_0x335ab3));let _0x31ae50=_0x559f26[_0x4c1738(0x2ba)][_0x335ab3],_0x4aba14=_0x113afa['recordId']??(_0x113afa[_0x4c1738(0x21b)]==null||_0x31ae50==null||(_0x5c9b74=_0x31ae50[_0x4c1738(0x474)])==null?void 0x0:_0x5c9b74[_0x113afa[_0x4c1738(0x21b)]]),_0x42d1f0=_0x113afa[_0x4c1738(0x46e)]??(_0x113afa['column']==null||_0x31ae50==null||(_0x2c7432=_0x31ae50[_0x4c1738(0x242)])==null?void 0x0:_0x2c7432[_0x113afa[_0x4c1738(0x26e)]]);_0x4aba14&&_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4aba14)),_0x42d1f0&&_0x5b9498['add'](q(_0x335ab3,_0x42d1f0)),_0x113afa['viewId']&&_0x5b9498['add'](Mr(_0x335ab3,_0x113afa[_0x4c1738(0x366)])),(_0x113afa[_0x4c1738(0x2d9)]==='table'||_0x4011a8[_0x4c1738(0x23f)](_0x335ab3))&&_0x31ae50&&(Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])['forEach'](_0x5b409e=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x5b409e))),Object['keys'](_0x31ae50['records'])[_0x4c1738(0x461)](_0x4ffe3b=>_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4ffe3b))),Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x38b)])['forEach'](_0x2ec2c7=>_0x5b9498[_0x4c1738(0x35e)](Mr(_0x335ab3,_0x2ec2c7)))),_0x113afa[_0x4c1738(0x2d9)]===_0x4c1738(0x52b)&&_0x31ae50&&Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])[_0x4c1738(0x461)](_0x4810ac=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x4810ac)));}),_0x86ac0[_0x18455b(0x458)]===0x0&&Xs(_0x51b500,_0x18455b(0x3e3))&&Object[_0x18455b(0x51b)](_0x559f26[_0x18455b(0x2ba)])[_0x18455b(0x461)](_0x2df321=>_0x5b9498[_0x18455b(0x35e)](K(_0x2df321))),[..._0x5b9498];}function Js(_0x1e85c9){let _0x418d0a=new Set(),_0x3a5a63=_0x4a314c=>{const _0x295cbc=_0x48d8;Array[_0x295cbc(0x354)](_0x4a314c)&&_0x4a314c[_0x295cbc(0x461)]((_0xa0adbd,_0x34bdd5)=>{const _0x3e5021=_0x295cbc;_0xa0adbd===_0x3e5021(0x2ba)&&typeof _0x4a314c[_0x34bdd5+0x1]==_0x3e5021(0x471)&&Ys(_0x4a314c[_0x34bdd5+0x2])&&_0x418d0a[_0x3e5021(0x35e)](_0x4a314c[_0x34bdd5+0x1]),_0x3a5a63(_0xa0adbd);});};return _0x3a5a63(_0x1e85c9),_0x418d0a;}function Ys(_0x4662a5){const _0x570e0f=_0x354fcb;return!!_0x4662a5&&typeof _0x4662a5==_0x570e0f(0x269)&&!Array['isArray'](_0x4662a5)&&('i'in _0x4662a5||'r'in _0x4662a5||'p'in _0x4662a5||'d'in _0x4662a5||'es'in _0x4662a5||_0x570e0f(0x2a9)in _0x4662a5||'et'in _0x4662a5);}function Xs(_0x293b76,_0x335128){const _0x2dfe44=_0x354fcb;return Array[_0x2dfe44(0x354)](_0x293b76)&&_0x293b76[_0x2dfe44(0x257)](_0x17587=>_0x17587===_0x335128||Xs(_0x17587,_0x335128));}function Zs(_0x5113b6,_0x15d260){const _0x15f647=_0x354fcb;let _0x92be61=new Set(),_0x2b1092=_0x15d260+'Id',_0x3c0b3e=_0x15d260+_0x15f647(0x50b),_0x43b28c=(_0x41269e,_0x2f144c='')=>{const _0x3bc08e=_0x15f647;typeof _0x41269e==_0x3bc08e(0x471)?_0x2f144c===_0x2b1092&&_0x92be61['add'](_0x41269e):Array[_0x3bc08e(0x354)](_0x41269e)?_0x2f144c===_0x3c0b3e?_0x41269e[_0x3bc08e(0x461)](_0x4508e8=>{typeof _0x4508e8=='string'&&_0x92be61['add'](_0x4508e8);}):_0x41269e[_0x3bc08e(0x461)](_0x53c905=>_0x43b28c(_0x53c905,_0x2f144c)):tc(_0x41269e)&&Object[_0x3bc08e(0x1e2)](_0x41269e)[_0x3bc08e(0x461)](([_0x109cda,_0x3d29b6])=>{const _0x224578=_0x3bc08e;_0x109cda==='id'&&_0x2f144c===_0x15d260&&typeof _0x3d29b6=='string'?_0x92be61[_0x224578(0x35e)](_0x3d29b6):_0x43b28c(_0x3d29b6,_0x109cda);});};return _0x43b28c(_0x5113b6),[..._0x92be61];}function Qs(_0x8eaf,_0xa278c0,_0x1ec0cc,_0x5b0c46){const _0x16c7c0=_0x354fcb;_0x8eaf&&Array[_0x16c7c0(0x354)](_0xa278c0)&&_0xa278c0[_0x16c7c0(0x461)](_0xeffd78=>{const _0x42b249=_0x16c7c0;if(!tc(_0xeffd78))return;let _0x5a07ec=_0xeffd78;if(typeof _0x5a07ec[_0x42b249(0x21b)]==_0x42b249(0x256)){var _0x30d4df;let _0x3efc48=(_0x30d4df=_0x8eaf['rowId'])==null?void 0x0:_0x30d4df[_0x5a07ec[_0x42b249(0x21b)]];_0x3efc48&&_0x1ec0cc[_0x42b249(0x35e)](_0x3efc48);}if(typeof _0x5a07ec[_0x42b249(0x1ea)]=='number'){var _0x487d3e;let _0x52a9dd=(_0x487d3e=_0x8eaf[_0x42b249(0x242)])==null?void 0x0:_0x487d3e[_0x5a07ec[_0x42b249(0x1ea)]];_0x52a9dd&&_0x5b0c46[_0x42b249(0x35e)](_0x52a9dd);}});}function $s(_0x3d9ad3,_0x2d16d0,_0x1b0bba=''){const _0x2a7dcf=_0x354fcb;_0x3d9ad3&&typeof _0x3d9ad3==_0x2a7dcf(0x269)&&(Array['isArray'](_0x3d9ad3)?_0x3d9ad3['forEach'](_0x5d253b=>$s(_0x5d253b,_0x2d16d0,_0x1b0bba)):tc(_0x3d9ad3)&&Object['entries'](_0x3d9ad3)['forEach'](([_0xc8a885,_0xe6d304])=>{const _0x47ce79=_0x2a7dcf;_0x1b0bba===_0x47ce79(0x1da)&&_0x2d16d0[_0x47ce79(0x35e)](_0xc8a885),$s(_0xe6d304,_0x2d16d0,_0xc8a885);}));}function ec(_0x52ac20){const _0x353187=_0x354fcb;return Array[_0x353187(0x354)](_0x52ac20);}function tc(_0x39ed4e){const _0x1217f1=_0x354fcb;return typeof _0x39ed4e==_0x1217f1(0x269)&&!!_0x39ed4e&&!Array[_0x1217f1(0x354)](_0x39ed4e);}const nc=_0x5d0ae0('base.resource.service');let rc=class{constructor(_0x2fd7b3){const _0x4bc7d7=_0x354fcb;this[_0x4bc7d7(0x432)]=_0x2fd7b3;}[_0x354fcb(0x239)](_0xb004f3){const _0x4494ff=_0x354fcb;return this['_univerInstanceService']['getUnit'](_0xb004f3,_0x28d752[_0x4494ff(0x201)])??null;}[_0x354fcb(0x4f0)](){const _0x16c655=_0x354fcb;return this[_0x16c655(0x432)][_0x16c655(0x3c4)](_0x28d752[_0x16c655(0x201)]);}[_0x354fcb(0x348)](_0x4c8ab4){const _0x2e5f5e=_0x354fcb;return this['_univerInstanceService'][_0x2e5f5e(0x314)](_0x28d752['UNIVER_BASE'],_0x4c8ab4);}};rc=X([Y(0x0,_0x3414e2)],rc);const ic=_0x5d0ae0(_0x354fcb(0x185));var ac=class extends _0x1589db{constructor(..._0x9c961c){const _0x26185b=_0x354fcb;super(..._0x9c961c),G(this,_0x26185b(0x252),new Map());}[_0x354fcb(0x2f4)](_0x354014){const _0xc4c19b=_0x354fcb;return this[_0xc4c19b(0x252)][_0xc4c19b(0x1a1)](_0x354014['type'],_0x354014),_0x5b4066(()=>this[_0xc4c19b(0x252)][_0xc4c19b(0x4f4)](_0x354014[_0xc4c19b(0x33a)]));}[_0x354fcb(0x4a8)](_0xde3bf9){const _0x43d385=_0x354fcb;let _0x8992f=this[_0x43d385(0x252)][_0x43d385(0x4a8)](_0xde3bf9);if(!_0x8992f)throw Error(_0x43d385(0x514)+_0xde3bf9+'\x22\x20is\x20not\x20registered.');return _0x8992f;}['getAll'](){const _0x51691f=_0x354fcb;return Array[_0x51691f(0x4dd)](this[_0x51691f(0x252)]['values']());}};const oc=[Q];let sc=class extends _0xf65dbf{constructor(_0x30151d=Ns,_0x53a119,_0x428ee7,_0x2ff248,_0x3d2e2e,_0x1699f0){const _0x1fcfbe=_0x354fcb;super(),this[_0x1fcfbe(0x4c3)]=_0x30151d,this[_0x1fcfbe(0x1b8)]=_0x53a119,this[_0x1fcfbe(0x2ee)]=_0x428ee7,this[_0x1fcfbe(0x432)]=_0x2ff248,this[_0x1fcfbe(0x47a)]=_0x3d2e2e,this[_0x1fcfbe(0x287)]=_0x1699f0,G(this,_0x1fcfbe(0x1ec),new Map());let {..._0x44cbcd}=_0x18cc98({},Ns,this['_config']);this[_0x1fcfbe(0x47a)]['setConfig']('bases.config',_0x44cbcd),this[_0x1fcfbe(0x432)]['registerCtorForType'](_0x28d752[_0x1fcfbe(0x201)],_0x2563fc),this['_initDependencies'](),this[_0x1fcfbe(0x2fc)](),this[_0x1fcfbe(0x35f)](),this[_0x1fcfbe(0x3a7)]();}[_0x354fcb(0x2d5)](){const _0x4ee581=_0x354fcb;this[_0x4ee581(0x1b8)][_0x4ee581(0x35e)]([Lo]),this['disposeWithMe'](this[_0x4ee581(0x1b8)][_0x4ee581(0x4a8)](_0x3ff846)[_0x4ee581(0x3d8)](Ro)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x3ff846)[_0x4ee581(0x3d8)](zo)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x1e71b2)[_0x4ee581(0x1aa)](_0x56e21f['Base'],this['_injector']['get'](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x454062=_0x354fcb;_0x137ee0(this['_injector'],[[rc],[qr],[Rs]]),this[_0x454062(0x432)]['getAllUnitsForType'](_0x28d752['UNIVER_BASE'])['forEach'](_0xfae939=>this[_0x454062(0x384)](_0xfae939[_0x454062(0x422)]())),_0x137ee0(this['_injector'],[[zs],[Us]]);}[_0x354fcb(0x4b2)](){const _0x3bf3ce=_0x354fcb;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x3bf3ce(0x461)](_0x2a4c71=>this[_0x3bf3ce(0x1b8)]['add'](_0x2a4c71));}[_0x354fcb(0x2fc)](){const _0x535040=_0x354fcb;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc]['forEach'](_0xe07c3a=>this['disposeWithMe'](this[_0x535040(0x2ee)][_0x535040(0x3d8)](_0xe07c3a))),oc[_0x535040(0x461)](_0x61b654=>{const _0x37a3e3=_0x535040;var _0x4f46e2;return(_0x4f46e2=this[_0x37a3e3(0x287)])==null?void 0x0:_0x4f46e2['registerSyncingMutations'](_0x61b654);});}[_0x354fcb(0x3a7)](){const _0x4780f4=_0x354fcb;this[_0x4780f4(0x287)]&&(this[_0x4780f4(0x1b4)](this[_0x4780f4(0x432)]['getTypeOfUnitAdded$'](_0x28d752[_0x4780f4(0x201)])['subscribe'](({unit:_0x1b2d05})=>{const _0x44d50f=_0x4780f4;this[_0x44d50f(0x384)](_0x1b2d05['getUnitId']());})),this['disposeWithMe'](this[_0x4780f4(0x432)][_0x4780f4(0x275)](_0x28d752['UNIVER_BASE'])['subscribe'](_0x5a7876=>{const _0x5139d0=_0x4780f4;var _0x2491f6;(_0x2491f6=this[_0x5139d0(0x1ec)][_0x5139d0(0x4a8)](_0x5a7876[_0x5139d0(0x422)]()))==null||_0x2491f6[_0x5139d0(0x3d6)](),this[_0x5139d0(0x1ec)][_0x5139d0(0x4f4)](_0x5a7876[_0x5139d0(0x422)]());})));}[_0x354fcb(0x384)](_0x53a127){const _0x213b82=_0x354fcb;this[_0x213b82(0x287)]&&!this['_baseSyncDisposables'][_0x213b82(0x23f)](_0x53a127)&&this[_0x213b82(0x1ec)][_0x213b82(0x1a1)](_0x53a127,this['_dataSyncPrimaryController'][_0x213b82(0x2b4)](_0x53a127));}[_0x354fcb(0x35f)](){const _0x37b5a1=_0x354fcb;let _0xf7a7ce=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](mr);zn()[_0x37b5a1(0x461)](_0x15020d=>_0xf7a7ce['register'](_0x15020d));let _0x3eb799=this[_0x37b5a1(0x1b8)]['get'](ic),_0x34181e=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](ii);$r()['forEach'](_0x11cfc4=>{const _0x3a0e79=_0x37b5a1;_0x3eb799[_0x3a0e79(0x2f4)](_0x11cfc4),_0x34181e[_0x3a0e79(0x37b)](_0x11cfc4);});}};G(sc,_0x354fcb(0x2c2),'BASES_PLUGIN'),G(sc,_0x354fcb(0x296),js),G(sc,_0x354fcb(0x367),Ms),G(sc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),sc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x3414e2),Y(0x4,_0x14686f),Y(0x5,_0x560f5b(_0x274988))],sc);let cc=class extends _0xf65dbf{constructor(_0x342f9b=Ps,_0x366f54,_0x40b9e7,_0x46eefb,_0x2c8419){const _0x5aed90=_0x354fcb;super(),this['_config']=_0x342f9b,this[_0x5aed90(0x1b8)]=_0x366f54,this[_0x5aed90(0x2ee)]=_0x40b9e7,this[_0x5aed90(0x47a)]=_0x46eefb,this[_0x5aed90(0x432)]=_0x2c8419;let {..._0x5817f9}=_0x18cc98({},Ps,this['_config']);this[_0x5aed90(0x47a)][_0x5aed90(0x1ff)](_0x5aed90(0x3b2),_0x5817f9),this['_univerInstanceService'][_0x5aed90(0x434)](_0x28d752[_0x5aed90(0x201)],_0x2563fc),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x5aed90(0x461)](_0x3d4f1b=>this[_0x5aed90(0x1b8)][_0x5aed90(0x35e)](_0x3d4f1b)),oc[_0x5aed90(0x461)](_0x74c51=>this[_0x5aed90(0x1b4)](this[_0x5aed90(0x2ee)]['registerCommand'](_0x74c51)));}};G(cc,_0x354fcb(0x2c2),_0x354fcb(0x292)),G(cc,_0x354fcb(0x296),js),G(cc,_0x354fcb(0x367),Ms),G(cc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),cc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x14686f),Y(0x4,_0x3414e2)],cc);function lc(_0x264770){const _0x1f22ef=_0x354fcb;let _0x2a2281=Cc(_0x264770['query']);if(!_0x2a2281)return{'query':'','total':0x0,'matches':[]};let _0x5a71e1=[],_0x5eaa92=[];for(let _0x513e01=0x0;_0x513e01<_0x264770[_0x1f22ef(0x227)][_0x1f22ef(0x458)];_0x513e01++){if(!(_0x513e01 in _0x264770[_0x1f22ef(0x227)]))continue;let _0x1aafe=_0x264770[_0x1f22ef(0x513)]['fields'][_0x264770[_0x1f22ef(0x227)][_0x513e01]];_0x1aafe&&_0x5eaa92[_0x1f22ef(0x1f3)]({'field':_0x1aafe,'fieldIndex':_0x513e01});}_0x264770['rows'][_0x1f22ef(0x461)]((_0x4d92b6,_0x1db4c8)=>{const _0x39264e=_0x1f22ef;_0x5eaa92[_0x39264e(0x461)](({field:_0x483b50,fieldIndex:_0x16a618})=>{const _0xad4f08=_0x39264e;let _0x34b712=uc(_0x4d92b6[_0xad4f08(0x1da)][_0x483b50['id']],_0x483b50);if(!_0x34b712)return;let _0x285015=Sc(_0x2a2281,_0x34b712['searchTexts']);_0x285015<=0x0||_0x5a71e1[_0xad4f08(0x1f3)]({'recordId':_0x4d92b6[_0xad4f08(0x4bb)],'fieldId':_0x483b50['id'],'fieldType':_0x483b50[_0xad4f08(0x33a)],'text':_0x34b712[_0xad4f08(0x369)],'score':_0x285015,'rowIndex':_0x1db4c8,'fieldIndex':_0x16a618});});}),_0x5a71e1[_0x1f22ef(0x3db)]((_0x333d15,_0x456a2d)=>_0x456a2d[_0x1f22ef(0x2d8)]-_0x333d15[_0x1f22ef(0x2d8)]||_0x333d15['rowIndex']-_0x456a2d[_0x1f22ef(0x290)]||_0x333d15[_0x1f22ef(0x4b4)]-_0x456a2d[_0x1f22ef(0x4b4)]);let _0x3b213e=_0x264770[_0x1f22ef(0x1e7)]==null?_0x5a71e1:_0x5a71e1['slice'](0x0,Math[_0x1f22ef(0x1b3)](0x0,_0x264770[_0x1f22ef(0x1e7)]));return{'query':_0x2a2281,'total':_0x5a71e1['length'],'matches':Tc(_0x3b213e)};}function uc(_0x57e20d,_0x211660){const _0x1d8644=_0x354fcb;let _0x10f9b9=[];for(let _0x2a7f96 of fc(_0x57e20d,_0x211660)){let _0x346552=Cc(_0x2a7f96);_0x346552&&_0x10f9b9[_0x1d8644(0x1f3)](_0x346552);}return _0x10f9b9[_0x1d8644(0x458)]?{'displayText':dc(_0x57e20d,_0x211660),'searchTexts':wc(_0x10f9b9)}:null;}function dc(_0x1496fa,_0x47c7fd){const _0x2aef53=_0x354fcb;switch(_0x47c7fd[_0x2aef53(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94[_0x2aef53(0x283)]:case _0x19bf94[_0x2aef53(0x223)]:return pc(_0x1496fa,_0x47c7fd)['join'](',\x20');case _0x19bf94['Link']:return gc(_0x1496fa);case _0x19bf94['Date']:case _0x19bf94[_0x2aef53(0x253)]:case _0x19bf94[_0x2aef53(0x347)]:return _c(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x271)]:case _0x19bf94[_0x2aef53(0x19c)]:return vc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x1ba)]:return yc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x19e)]:return _0x1496fa?_0x2aef53(0x1a9):_0x2aef53(0x530);case _0x19bf94[_0x2aef53(0x46f)]:return bc(_0x1496fa)[_0x2aef53(0x4b5)](',\x20');default:return xc(_0x1496fa);}}function fc(_0x4c437c,_0x57ba32){const _0x4d3a03=_0x354fcb;switch(_0x57ba32[_0x4d3a03(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x4d3a03(0x223)]:{let _0x1d22a5=pc(_0x4c437c,_0x57ba32);if(Array['isArray'](_0x4c437c)){let _0x40e804=[..._0x1d22a5];for(let _0x2e7bf7=0x0;_0x2e7bf7<_0x4c437c[_0x4d3a03(0x458)];_0x2e7bf7++)_0x2e7bf7 in _0x4c437c&&_0x40e804['push'](String(_0x4c437c[_0x2e7bf7]));return _0x40e804;}return _0x4c437c==null?_0x1d22a5:[..._0x1d22a5,String(_0x4c437c)];}case _0x19bf94[_0x4d3a03(0x4db)]:{let _0x157eba=hc(_0x4c437c);return[_0x157eba[_0x4d3a03(0x4d2)],_0x157eba[_0x4d3a03(0x1c7)]];}case _0x19bf94['Date']:case _0x19bf94[_0x4d3a03(0x253)]:case _0x19bf94[_0x4d3a03(0x347)]:return[_c(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x271)]:case _0x19bf94[_0x4d3a03(0x19c)]:return[vc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x1ba)]:return[yc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94['Checkbox']:return _0x4c437c?[_0x4d3a03(0x1a9),'Yes',_0x4d3a03(0x533)]:[_0x4d3a03(0x530),'No',_0x4d3a03(0x4bd)];case _0x19bf94[_0x4d3a03(0x46f)]:return bc(_0x4c437c);default:return[xc(_0x4c437c)];}}function pc(_0x3190ba,_0x22a0fa){const _0x36ff6d=_0x354fcb;var _0x56f0ec;let _0x5e372a=Array[_0x36ff6d(0x354)]((_0x56f0ec=_0x22a0fa[_0x36ff6d(0x342)])==null?void 0x0:_0x56f0ec[_0x36ff6d(0x392)])?_0x22a0fa[_0x36ff6d(0x342)][_0x36ff6d(0x392)]:[],_0x4ad766=[];if(Array['isArray'](_0x3190ba)){for(let _0x31202f=0x0;_0x31202f<_0x3190ba[_0x36ff6d(0x458)];_0x31202f++){if(!(_0x31202f in _0x3190ba))continue;let _0x50c2b9=String(_0x3190ba[_0x31202f]);_0x50c2b9&&_0x4ad766[_0x36ff6d(0x1f3)](mc(_0x5e372a,_0x50c2b9));}return _0x4ad766;}if(_0x3190ba!=null){let _0x3f37b2=String(_0x3190ba);_0x3f37b2&&_0x4ad766['push'](mc(_0x5e372a,_0x3f37b2));}return _0x4ad766;}function mc(_0x22f599,_0x11729b){const _0x2b0609=_0x354fcb;for(let _0x26f74c of _0x22f599){if(typeof _0x26f74c==_0x2b0609(0x471)&&_0x26f74c===_0x11729b)return _0x26f74c;if(_0x26f74c&&typeof _0x26f74c==_0x2b0609(0x269)){let _0x534e75=_0x26f74c;if(String(_0x534e75['id']??_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b||String(_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b)return String(_0x534e75[_0x2b0609(0x1e0)]??_0x534e75['id']??_0x11729b);}}return _0x11729b;}function hc(_0x1dec6c){const _0xef2fee=_0x354fcb;if(_0x1dec6c&&typeof _0x1dec6c=='object'&&!Array[_0xef2fee(0x354)](_0x1dec6c)){let _0x1decc5=_0x1dec6c;return{'text':String(_0x1decc5['text']??_0x1decc5['url']??''),'url':String(_0x1decc5['url']??'')};}return{'text':xc(_0x1dec6c),'url':xc(_0x1dec6c)};}function gc(_0x1d57c1){let _0x432193=hc(_0x1d57c1);return _0x432193['text']||_0x432193['url'];}function _c(_0x30562c,_0x693337){const _0x47a581=_0x354fcb;return typeof _0x30562c!=_0x47a581(0x256)||!Number[_0x47a581(0x2c3)](_0x30562c)?'':mn(_0x30562c,_0x693337['config']);}function vc(_0x48a3b9,_0x1dde41){const _0x7520cf=_0x354fcb;let _0x457724=typeof _0x48a3b9=='number'?_0x48a3b9:Number(_0x48a3b9);return Number[_0x7520cf(0x2c3)](_0x457724)?qo(_0x457724,_0x1dde41[_0x7520cf(0x342)]):'';}function yc(_0x5f4759,_0x1c189f){const _0x5e275a=_0x354fcb;let _0x363dd6=typeof _0x5f4759==_0x5e275a(0x256)?_0x5f4759:Number(_0x5f4759);return Number[_0x5e275a(0x2c3)](_0x363dd6)?Qo(_0x363dd6,_0x1c189f[_0x5e275a(0x342)]):'';}function bc(_0x1b4004){const _0x20d9ce=_0x354fcb;return Array[_0x20d9ce(0x354)](_0x1b4004)?_0x1b4004[_0x20d9ce(0x2a2)](_0x3b2dec=>{const _0x512a43=_0x20d9ce;if(!_0x3b2dec||typeof _0x3b2dec!=_0x512a43(0x269))return[];let _0x5702a1=_0x3b2dec,_0x254b26=String(_0x5702a1[_0x512a43(0x1e0)]??_0x5702a1[_0x512a43(0x1c7)]??'')[_0x512a43(0x3bc)]();return _0x254b26?[_0x254b26]:[];}):[];}function xc(_0x89fff0){const _0x2afde5=_0x354fcb;if(_0x89fff0==null)return'';if(typeof _0x89fff0==_0x2afde5(0x364))return _0x89fff0?_0x2afde5(0x468):_0x2afde5(0x442);if(typeof _0x89fff0=='number')return String(_0x89fff0);if(Array[_0x2afde5(0x354)](_0x89fff0)){let _0x42eb9b=[];for(let _0x32c7c0=0x0;_0x32c7c0<_0x89fff0['length'];_0x32c7c0++){if(!(_0x32c7c0 in _0x89fff0))continue;let _0x1c9dcf=xc(_0x89fff0[_0x32c7c0]);_0x1c9dcf&&_0x42eb9b[_0x2afde5(0x1f3)](_0x1c9dcf);}return _0x42eb9b[_0x2afde5(0x4b5)](',\x20');}if(typeof _0x89fff0==_0x2afde5(0x269)){let _0x41c3c2=_0x89fff0;return String(_0x41c3c2['title']??_0x41c3c2[_0x2afde5(0x1e0)]??_0x41c3c2[_0x2afde5(0x4d2)]??_0x41c3c2[_0x2afde5(0x1c7)]??'')[_0x2afde5(0x3bc)]();}return String(_0x89fff0);}function Sc(_0x1b1109,_0x547bfc){const _0x4d3caa=_0x354fcb;let _0x79746d=0x0;for(let _0x1e573d of _0x547bfc)_0x1e573d&&(_0x1e573d===_0x1b1109?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0x12c):_0x1e573d['startsWith'](_0x1b1109)?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0xfa):_0x1e573d[_0x4d3caa(0x231)](_0x1b1109)&&(_0x79746d=Math['max'](_0x79746d,0xc8)));return _0x79746d;}function Cc(_0x55bba7){const _0x3d4409=_0x354fcb;return _0x55bba7[_0x3d4409(0x3bc)]()[_0x3d4409(0x2b1)](/\s+/g,'\x20')[_0x3d4409(0x4f1)]();}function wc(_0x4e5e06){return Array['from'](new Set(_0x4e5e06));}function Tc(_0x54cac1){const _0x425d2f=_0x354fcb;let _0x32dc42=[];for(let {rowIndex:_0x159881,fieldIndex:_0x5e81e0,..._0x473393}of _0x54cac1)_0x32dc42[_0x425d2f(0x1f3)](_0x473393);return _0x32dc42;}function Ec(_0xd634e7){const _0x15dc1b=_0x354fcb;return{'compress':!0x0,'kind':_0x15dc1b(0x1c0),'u':_0xd634e7[_0x15dc1b(0x278)],'t':_0xd634e7['tableId'],'p':_0xd634e7[_0x15dc1b(0x1bc)][_0x15dc1b(0x29b)](_0x1d34b7=>[_0x1d34b7['row'],_0x1d34b7[_0x15dc1b(0x1ea)],Ac(_0x1d34b7[_0x15dc1b(0x416)])]),..._0xd634e7[_0x15dc1b(0x1ad)]===void 0x0?{}:{'g':_0xd634e7['trigger']}};}function Dc(_0x1be645){const _0x1332aa=_0x354fcb;if(Lc(_0x1be645,_0x1332aa(0x1c0)),!Oc(_0x1be645)){if(!Ic(_0x1be645))throw Error(_0x1332aa(0x2bb));return _0x1be645;}return{'unitId':_0x1be645['u'],'tableId':_0x1be645['t'],'patches':_0x1be645['p'][_0x1332aa(0x29b)](([_0x4a3af1,_0x33f51a,_0x5d9c97])=>({'row':_0x4a3af1,'col':_0x33f51a,'value':jc(_0x5d9c97)})),..._0x1be645['g']===void 0x0?{}:{'trigger':_0x1be645['g']}};}function Oc(_0x2efd63){const _0x31d2dc=_0x354fcb;return!Rc(_0x2efd63)||_0x2efd63[_0x31d2dc(0x2ef)]!==!0x0||_0x2efd63[_0x31d2dc(0x1e8)]!==_0x31d2dc(0x1c0)?!0x1:typeof _0x2efd63['u']==_0x31d2dc(0x471)&&typeof _0x2efd63['t']==_0x31d2dc(0x471)&&(_0x2efd63['g']===void 0x0||typeof _0x2efd63['g']=='string')&&Array['isArray'](_0x2efd63['p'])&&_0x2efd63['p'][_0x31d2dc(0x1b6)](_0x3cee7e=>Array['isArray'](_0x3cee7e)&&_0x3cee7e[_0x31d2dc(0x458)]===0x3&&Number['isInteger'](_0x3cee7e[0x0])&&Number[_0x31d2dc(0x39d)](_0x3cee7e[0x1]));}function kc(_0x574e26){const _0x410786=_0x354fcb;return!Rc(_0x574e26)||_0x574e26[_0x410786(0x2ef)]!==!0x0||_0x574e26[_0x410786(0x1e8)]!==_0x410786(0x3a4)||!Rc(_0x574e26['tables'])?!0x1:Object[_0x410786(0x1da)](_0x574e26['tables'])['every'](_0x21dee3=>Rc(_0x21dee3)&&(_0x21dee3['cd']===void 0x0||Array['isArray'](_0x21dee3['cd'])&&_0x21dee3['cd']['every'](_0x50264d=>Array['isArray'](_0x50264d)&&_0x50264d['length']===0x3&&Number[_0x410786(0x39d)](_0x50264d[0x0])&&Number['isInteger'](_0x50264d[0x1])&&Fc(_0x50264d[0x2]))));}function Ac(_0x2cbb9e){return Pc(_0x2cbb9e)?Mc(_0x2cbb9e):_0x2cbb9e;}function jc(_0x1509b6){return Fc(_0x1509b6)?Nc(_0x1509b6):_0x1509b6;}function Mc(_0x15a704){return{'c':0x1,..._0x15a704['v']===void 0x0?{}:{'v':_0x15a704['v']},..._0x15a704['t']!==void 0x0&&_0x15a704['t']!==null?{'t':_0x15a704['t']}:_0x15a704['t']===null?{'t':null}:{},..._0x15a704['f']!==void 0x0&&_0x15a704['f']!==null?{'f':_0x15a704['f']}:_0x15a704['f']===null?{'f':null}:{},..._0x15a704['si']!==void 0x0&&_0x15a704['si']!==null?{'si':_0x15a704['si']}:_0x15a704['si']===null?{'si':null}:{},..._0x15a704['p']!==void 0x0&&_0x15a704['p']!==null?{'p':_0x15a704['p']}:_0x15a704['p']===null?{'p':null}:{}};}function Nc(_0x312dcb){return{..._0x312dcb['v']===void 0x0?{}:{'v':_0x312dcb['v']},..._0x312dcb['t']===void 0x0?{}:{'t':_0x312dcb['t']},..._0x312dcb['f']===void 0x0?{}:{'f':_0x312dcb['f']},..._0x312dcb['si']===void 0x0?{}:{'si':_0x312dcb['si']},..._0x312dcb['p']===void 0x0?{}:{'p':_0x312dcb['p']}};}function Pc(_0x5eec51){const _0x5105ce=_0x354fcb;return!!_0x5eec51&&typeof _0x5eec51==_0x5105ce(0x269)&&!Array['isArray'](_0x5eec51)&&(Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'v')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'t')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'p')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'f')||Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'si'));}function Fc(_0x27d90d){return Rc(_0x27d90d)&&_0x27d90d['c']===0x1;}function Ic(_0xc5d21d){const _0x135caf=_0x354fcb;return Rc(_0xc5d21d)&&typeof _0xc5d21d[_0x135caf(0x278)]==_0x135caf(0x471)&&typeof _0xc5d21d[_0x135caf(0x1c3)]==_0x135caf(0x471)&&(_0xc5d21d[_0x135caf(0x1ad)]===void 0x0||typeof _0xc5d21d['trigger']==_0x135caf(0x471))&&Array[_0x135caf(0x354)](_0xc5d21d[_0x135caf(0x1bc)])&&_0xc5d21d[_0x135caf(0x1bc)][_0x135caf(0x1b6)](_0x4e0db6=>Rc(_0x4e0db6)&&Number[_0x135caf(0x39d)](_0x4e0db6[_0x135caf(0x21b)])&&Number['isInteger'](_0x4e0db6[_0x135caf(0x1ea)])&&_0x135caf(0x416)in _0x4e0db6);}function Lc(_0x55dce9,_0x1b3ca9){const _0x223722=_0x354fcb;if(Rc(_0x55dce9)&&_0x55dce9['compress']===!0x0){if(_0x55dce9[_0x223722(0x1e8)]!==_0x1b3ca9)throw Error(_0x223722(0x195)+String(_0x55dce9['kind'])+'\x22.');if(!(_0x1b3ca9===_0x223722(0x1c0)?Oc(_0x55dce9):kc(_0x55dce9)))throw Error(_0x223722(0x418)+_0x1b3ca9+'\x22.');}}function _0x48d8(_0x2f0482,_0x9465a9){_0x2f0482=_0x2f0482-0x171;const _0x235733=_0x2357();let _0x48d80b=_0x235733[_0x2f0482];return _0x48d80b;}function Rc(_0x50ddb7){const _0x2cfe51=_0x354fcb;return!!_0x50ddb7&&typeof _0x50ddb7=='object'&&!Array[_0x2cfe51(0x354)](_0x50ddb7);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x5d9833 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|