@univerjs-pro/bases 1.3.0 → 1.4.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/cjs/worker-BDigGzY4.js +1 -0
- package/lib/cjs/worker.js +1 -0
- 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/es/worker-1CbynS32.js +1 -0
- package/lib/es/worker.js +1 -0
- 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/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +4 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- 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/lib/worker-1CbynS32.js +1 -0
- package/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5670e0=_0x4f53;(function(_0x28ee12,_0x5f5dc3){const _0x2a7d12=_0x4f53,_0x3b7658=_0x28ee12();while(!![]){try{const _0x5edd9d=parseInt(_0x2a7d12(0x25e))/0x1+-parseInt(_0x2a7d12(0x22a))/0x2+parseInt(_0x2a7d12(0x27f))/0x3*(-parseInt(_0x2a7d12(0x3b3))/0x4)+parseInt(_0x2a7d12(0x284))/0x5*(-parseInt(_0x2a7d12(0x2bd))/0x6)+parseInt(_0x2a7d12(0x215))/0x7*(parseInt(_0x2a7d12(0x1e9))/0x8)+-parseInt(_0x2a7d12(0x414))/0x9*(-parseInt(_0x2a7d12(0x1f7))/0xa)+-parseInt(_0x2a7d12(0x14f))/0xb*(-parseInt(_0x2a7d12(0x2e3))/0xc);if(_0x5edd9d===_0x5f5dc3)break;else _0x3b7658['push'](_0x3b7658['shift']());}catch(_0xe801d0){_0x3b7658['push'](_0x3b7658['shift']());}}}(_0x1ee8,0x649de));import{BASE_RECORD_ID_FIELD_ID as _0x32decc,BaseConditionalColorOperator as _0x4d7aa6,BaseConditionalColorTarget as _0x15ad00,BaseConditionalDateMode as _0x511cc3,BaseDataModel as _0x5bbe04,BaseFieldType as _0x4fe15f,BaseFilterConjunction as _0x55f09b,BaseHierarchyInvalidReason as _0x244f2c,BaseRecordLinkRole as _0x309088,BaseSortDirection as _0x4b3f27,BaseViewType as _0x528e48,CellValueType as _0x319a08,ColorKit as _0x11ff7e,CommandType as _0x21089e,CustomCommandExecutionError as _0x37916c,DateSystem as _0x4e0c74,DependentOn as _0x16f0c9,Disposable as _0x29abb3,ErrorService as _0x2fce34,ICommandService as _0x228e7e,IConfigService as _0x3253e1,IPermissionService as _0x5b6ee9,IResourceManagerService as _0x83427d,IUndoRedoService as _0x1c7439,IUniverInstanceService as _0x2853e0,Inject as _0x72259,Injector as _0x6fca8,JSON1 as _0x23944c,JSONX as _0x346613,ObjectMatrix as _0x1bec6e,ObjectPermissionRuleModel as _0x2f9b21,ObjectPermissionService as _0x33f458,Optional as _0x198e1b,PermissionStatus as _0x1bd3e8,Plugin as _0x2b207c,Tools as _0x4bf94a,UniverInstanceType as _0x1bf49d,allocateBaseFormulaTableName as _0x45021d,assertBaseTableRecordIdentity as _0x4a6ff9,createBaseFormulaTableNameMap as _0x13e931,createBaseRecordIdField as _0x4ab3a7,createIdentifier as _0x39c797,dateKit as _0x225fb2,excelDateTimeSerial as _0x3bf7f8,excelSerialToDateTime as _0x3f3713,generateRandomId as _0xeb2e0b,getBaseFormulaTableName as _0x3f654d,isBaseRecordIdFieldName as _0x1fb0f2,isValidBaseRecordId as _0x1fbc25,merge as _0x31d5ee,nameCharacterCheck as _0x459694,numfmt as _0x1f324e,regexp as _0x5eb4e5,sequenceExecute as _0x2182cb,toDisposable as _0x1abac0,touchDependencies as _0x330981}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x3ffd23,IActiveDirtyManagerService as _0x132141,RemoveSuperTableMutation as _0x43e1b6,SetFormulaCalculationResultMutation as _0x5c34ce,SetSuperTableMutation as _0x12cd84,SetTriggerFormulaCalculationStartMutation as _0x30cec2,UniverProFormulaEnginePlugin as _0x39e97d,refactorFormulaUnitQualifier as _0x26fb47}from'@univerjs-pro/engine-formula';import{UnitAction as _0x5ebf52,UnitObject as _0x2d9d6e}from'@univerjs/protocol';import{UniverLicensePlugin as _0x8bcba}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x5a2a09}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x59542a,FormulaResultApplicationType as _0x30a4a7}from'@univerjs/engine-formula';function N(_0x572b99){const _0x339432=_0x4f53;let _0x2faf01=_0x572b99[_0x339432(0x407)][_0x339432(0x326)],_0x42a99b=_0x572b99[_0x339432(0x407)][_0x339432(0x2ae)],_0x2ab7e2=_0x572b99[_0x339432(0x407)][_0x339432(0xc6)],_0x47cc5c=_0x572b99['config'][_0x339432(0x254)],_0x1b648b=_0x572b99[_0x339432(0x407)][_0x339432(0x1bc)];return typeof _0x2faf01!='string'||!_0x2faf01||typeof _0x42a99b!=_0x339432(0x168)||_0x2ab7e2!==void 0x0&&(typeof _0x2ab7e2!=_0x339432(0x2dc)||!_0x2ab7e2)||_0x1b648b!==void 0x0&&_0x1b648b!==_0x309088[_0x339432(0x1e0)]||_0x47cc5c!==void 0x0&&(!Array['isArray'](_0x47cc5c)||_0x47cc5c[_0x339432(0x1c1)](_0x3d71b7=>typeof _0x3d71b7!=_0x339432(0x2dc)||!_0x3d71b7)||new Set(_0x47cc5c)[_0x339432(0x268)]!==_0x47cc5c[_0x339432(0x19b)])?null:{'targetTableId':_0x2faf01,'multiple':_0x42a99b,..._0x2ab7e2?{'displayFieldId':_0x2ab7e2}:{},..._0x47cc5c?{'pickerFieldIds':[..._0x47cc5c]}:{},..._0x1b648b?{'relationRole':_0x1b648b}:{}};}function Le(_0x111bce){const _0x2b6758=_0x4f53;return typeof _0x111bce!=_0x2b6758(0x2dc)||_0x111bce===''?[]:_0x111bce[_0x2b6758(0x12f)](',');}function Re(_0x15824){const _0xeeefc4=_0x4f53;return Array[_0xeeefc4(0x162)](new Set(_0x15824))['join'](',');}function ze(_0x366f99,_0x1dfacb){const _0x56313a=_0x4f53;if(typeof _0x366f99!=_0x56313a(0x2dc))return{'valid':!0x1,'reason':_0x56313a(0x3ef)};if(_0x366f99==='')return{'valid':!0x0};let _0x255de5=_0x366f99[_0x56313a(0x12f)](',');return!_0x1dfacb&&_0x255de5[_0x56313a(0x19b)]>0x1?{'valid':!0x1,'reason':'[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.'}:_0x255de5[_0x56313a(0x1c1)](_0x943464=>!_0x1fbc25(_0x943464))||new Set(_0x255de5)[_0x56313a(0x268)]!==_0x255de5[_0x56313a(0x19b)]||Re(_0x255de5)!==_0x366f99?{'valid':!0x1,'reason':_0x56313a(0x1c3)}:{'valid':!0x0};}function Be(_0x348440,_0xef2f02){const _0x417e07=_0x4f53;if(_0xef2f02['type']!==_0x4fe15f['RecordLink'])return{'valid':!0x0};let _0x53da73=N(_0xef2f02),_0x3cb472=_0x53da73?_0x348440[_0x417e07(0x41c)][_0x53da73[_0x417e07(0x326)]]:void 0x0;if(!_0x53da73||!_0x3cb472)return{'valid':!0x1,'reason':_0x417e07(0x110)};let _0x139fbc=[..._0x53da73['displayFieldId']?[_0x53da73[_0x417e07(0xc6)]]:[],..._0x53da73[_0x417e07(0x254)]??[]][_0x417e07(0x361)](_0x4b0300=>{const _0x107adf=_0x417e07;let _0x447098=_0x3cb472[_0x107adf(0x2cb)][_0x4b0300];return!_0x447098||_0x447098[_0x107adf(0x13a)]===!0x0||_0x447098[_0x107adf(0xeb)]===_0x4fe15f['RecordId'];});return _0x139fbc?{'valid':!0x1,'reason':_0x417e07(0x2ba)+_0x139fbc+_0x417e07(0x315)}:{'valid':!0x0};}function Ve(_0x4955e2,_0x1eb55a,_0x3433f0,_0x2407aa={}){const _0x4cb08f=_0x4f53;let _0x4076e4=N(_0x1eb55a);if(_0x1eb55a[_0x4cb08f(0xeb)]!==_0x4fe15f['RecordLink']||!_0x4076e4)return{'valid':!0x1,'reason':_0x4cb08f(0x1a6)};let _0x464e57=ze(_0x3433f0,_0x4076e4[_0x4cb08f(0x2ae)]);if(!_0x464e57[_0x4cb08f(0x246)]||_0x2407aa['allowDangling'])return _0x464e57;let _0x5f4a99=_0x4955e2['tables'][_0x4076e4['targetTableId']];if(!_0x5f4a99)return{'valid':!0x1,'reason':_0x4cb08f(0x110)};let _0x591033=Le(_0x3433f0)['find'](_0x3b1f28=>!_0x5f4a99[_0x4cb08f(0x83)][_0x3b1f28]);return _0x591033?{'valid':!0x1,'reason':_0x4cb08f(0x3a3)+_0x591033+_0x4cb08f(0x401)}:{'valid':!0x0};}function He(_0x42e9dc,_0x4ad566){const _0x2924f5=_0x4f53;return Object[_0x2924f5(0x1c8)](_0x42e9dc[_0x2924f5(0x41c)])[_0x2924f5(0x98)](_0x4a1584=>Object[_0x2924f5(0x1c8)](_0x4a1584[_0x2924f5(0x2cb)])[_0x2924f5(0x98)](_0x3f9611=>{const _0x4c337c=_0x2924f5;let _0x2cdae8=_0x3f9611['type']===_0x4fe15f[_0x4c337c(0x36f)]?N(_0x3f9611):null;return(_0x2cdae8==null?void 0x0:_0x2cdae8[_0x4c337c(0x326)])===_0x4ad566?[{'tableId':_0x4a1584['id'],'fieldId':_0x3f9611['id']}]:[];}));}const Ue=0x5,We='__base_hierarchy_parent__';let Ge=function(_0x2cec2b){const _0x1791ba=_0x4f53;return _0x2cec2b[_0x1791ba(0x28f)]=_0x1791ba(0x11d),_0x2cec2b[_0x1791ba(0x2f5)]=_0x1791ba(0x32d),_0x2cec2b['SelfParent']='selfParent',_0x2cec2b[_0x1791ba(0x355)]=_0x1791ba(0xfb),_0x2cec2b[_0x1791ba(0x3ad)]=_0x1791ba(0x245),_0x2cec2b[_0x1791ba(0x13d)]=_0x1791ba(0x3e7),_0x2cec2b;}({});var P=class extends Error{constructor(_0x32164f,_0x1fe62c=_0x5670e0(0x3d8)+_0x32164f){const _0x3ee237=_0x5670e0;super(_0x1fe62c),this[_0x3ee237(0x30d)]=_0x32164f,this[_0x3ee237(0x26f)]=_0x3ee237(0x342);}};let Ke=function(_0x2bab20){const _0x2c7319=_0x5670e0;return _0x2bab20['UI']='ui',_0x2bab20[_0x2c7319(0x30a)]=_0x2c7319(0x2fc),_0x2bab20[_0x2c7319(0x3dc)]='remote',_0x2bab20[_0x2c7319(0x10e)]=_0x2c7319(0x18b),_0x2bab20[_0x2c7319(0x2b7)]=_0x2c7319(0x41e),_0x2bab20[_0x2c7319(0x242)]='import',_0x2bab20;}({});function F(_0x128c50,_0x5182cd){const _0x269d40=_0x5670e0;if(!_0x5182cd)return!0x1;let _0x4475ec=_0x128c50[_0x269d40(0x2cb)][_0x5182cd];if(!_0x4475ec||_0x4475ec[_0x269d40(0xeb)]!==_0x4fe15f[_0x269d40(0x36f)])return!0x1;let _0xea25ff=N(_0x4475ec);return _0xea25ff?_0xea25ff[_0x269d40(0x326)]===_0x128c50['id']&&_0xea25ff['multiple']===!0x1:!0x1;}function qe(_0x4fa182){const _0x5323c1=_0x5670e0;return[..._0x4fa182[_0x5323c1(0x367)],...Object['keys'](_0x4fa182['fields'])['filter'](_0x45d1f5=>!_0x4fa182[_0x5323c1(0x367)]['includes'](_0x45d1f5))[_0x5323c1(0x249)]()][_0x5323c1(0x361)](_0x1d78c5=>{const _0x344981=_0x5323c1;var _0x25f244;return F(_0x4fa182,_0x1d78c5)?((_0x25f244=N(_0x4fa182['fields'][_0x1d78c5]))==null?void 0x0:_0x25f244[_0x344981(0x1bc)])===_0x309088['Parent']:!0x1;})??null;}function Je(_0x4ae563){const _0x110af1=_0x5670e0;let _0xfb1770=qe(_0x4ae563);if(_0xfb1770)return _0xfb1770;let _0x52a051=We,_0x535df6=0x2;for(;_0x4ae563[_0x110af1(0x2cb)][_0x52a051];)_0x52a051=We+'_'+_0x535df6++;return _0x52a051;}function Ye(_0xedbd49,_0x34f62b=Je(_0xedbd49),_0x4a5a33='Parent\x20Items'){const _0x2efe1c=_0x5670e0;return{'id':_0x34f62b,'name':_0x4a5a33,'type':_0x4fe15f['RecordLink'],'config':{'targetTableId':_0xedbd49['id'],'multiple':!0x1,'displayFieldId':_0xedbd49['primaryFieldId'],'pickerFieldIds':[_0xedbd49[_0x2efe1c(0x2d7)]],'relationRole':_0x309088[_0x2efe1c(0x1e0)]}};}function Xe(_0x4a0220){let _0x406b95=qe(_0x4a0220);return _0x406b95?[_0x406b95]:[];}function Ze(_0x4069f3,_0x5cd686){const _0x454a76=_0x5670e0;let _0x19d543=[...Xe(_0x4069f3)]['filter'](_0x1f49cf=>_0x5cd686[_0x454a76(0x1c1)](_0x236b99=>Object[_0x454a76(0x159)]['hasOwnProperty'][_0x454a76(0x321)](_0x236b99[_0x454a76(0x1c8)],_0x1f49cf)));if(!_0x19d543[_0x454a76(0x19b)])return[];let _0x4f5245={..._0x4069f3[_0x454a76(0x83)]};_0x5cd686[_0x454a76(0x143)](_0x17d046=>{const _0x4023a3=_0x454a76;let _0xda9e7b=_0x4f5245[_0x17d046['recordId']];_0xda9e7b&&(_0x4f5245[_0x17d046[_0x4023a3(0x191)]]={..._0xda9e7b,'values':{..._0xda9e7b[_0x4023a3(0x1c8)],..._0x17d046[_0x4023a3(0x1c8)]}});});let _0x507362={..._0x4069f3,'records':_0x4f5245},_0x4f4e73=[];return _0x19d543['forEach'](_0x561993=>{const _0x4a939d=_0x454a76;let _0x2b58a6=tt(_0x4069f3,_0x561993),_0x4b1819=tt(_0x507362,_0x561993);for(let [_0x328da3,_0x1a3174]of _0x4b1819[_0x4a939d(0x336)]){let _0x5efe91=_0x5cd686['some'](_0x58ae89=>_0x58ae89[_0x4a939d(0x191)]===_0x328da3&&Object[_0x4a939d(0x159)]['hasOwnProperty'][_0x4a939d(0x321)](_0x58ae89[_0x4a939d(0x1c8)],_0x561993));if(_0x2b58a6[_0x4a939d(0x336)][_0x4a939d(0x2db)](_0x328da3)!==_0x1a3174||_0x5efe91)throw new P($e(_0x1a3174));}_0x5cd686['forEach'](_0x5aae89=>{const _0x1f3b14=_0x4a939d;if(!Object[_0x1f3b14(0x159)][_0x1f3b14(0x127)][_0x1f3b14(0x321)](_0x5aae89['values'],_0x561993))return;let _0x519e0c=_0x2b58a6[_0x1f3b14(0x190)][_0x1f3b14(0x2db)](_0x5aae89[_0x1f3b14(0x191)])??null,_0x13ea9a=_0x4b1819[_0x1f3b14(0x190)][_0x1f3b14(0x2db)](_0x5aae89[_0x1f3b14(0x191)])??null;_0x519e0c!==_0x13ea9a&&_0x4f4e73[_0x1f3b14(0x393)]({'tableId':_0x4069f3['id'],'fieldId':_0x561993,'recordId':_0x5aae89[_0x1f3b14(0x191)],'oldParentRecordId':_0x519e0c,'parentRecordId':_0x13ea9a});});}),_0x4f4e73;}function Qe(_0x279a22,_0x34f6f6){const _0x444e35=_0x5670e0;let _0x526a9e=_0x34f6f6[_0x444e35(0x102)](_0x48f4ee=>_0x48f4ee['id']);if(new Set(_0x526a9e)['size']!==_0x526a9e[_0x444e35(0x19b)]||_0x526a9e[_0x444e35(0x1c1)](_0x2e7a89=>_0x279a22['records'][_0x2e7a89]))return[];let _0x665aa6=Xe(_0x279a22),_0xdf4c62=_0x665aa6[_0x444e35(0x19b)]?null:Je(_0x279a22),_0xd0dd59=[..._0x665aa6,..._0xdf4c62&&_0x34f6f6[_0x444e35(0x1c1)](_0x2ab26b=>Object[_0x444e35(0x159)][_0x444e35(0x127)][_0x444e35(0x321)](_0x2ab26b[_0x444e35(0x1c8)],_0xdf4c62))?[_0xdf4c62]:[]][_0x444e35(0x364)](_0x105887=>_0x34f6f6['some'](_0xd73119=>Object[_0x444e35(0x159)][_0x444e35(0x127)][_0x444e35(0x321)](_0xd73119[_0x444e35(0x1c8)],_0x105887)));if(!_0xd0dd59[_0x444e35(0x19b)])return[];let _0x3cffc3={..._0x279a22,'records':{..._0x279a22['records'],...Object[_0x444e35(0x3a7)](_0x34f6f6[_0x444e35(0x102)](_0x1dedc9=>[_0x1dedc9['id'],_0x1dedc9]))},'recordOrder':[..._0x279a22[_0x444e35(0x411)]??[],..._0x34f6f6['map'](_0x1b0062=>_0x1b0062['id'])]},_0x5e72a8=[];return _0xd0dd59[_0x444e35(0x143)](_0x580c67=>{const _0xf34674=_0x444e35;let _0x1c713a=tt(_0x3cffc3,_0x580c67);_0x34f6f6[_0xf34674(0x143)](_0x20999f=>{const _0x34fca8=_0xf34674;let _0x3677ef=_0x1c713a[_0x34fca8(0x336)][_0x34fca8(0x2db)](_0x20999f['id']);if(_0x3677ef)throw new P($e(_0x3677ef));let _0x2627dd=_0x1c713a[_0x34fca8(0x190)][_0x34fca8(0x2db)](_0x20999f['id'])??null;_0x2627dd&&_0x5e72a8[_0x34fca8(0x393)]({'tableId':_0x279a22['id'],'fieldId':_0x580c67,'recordId':_0x20999f['id'],'oldParentRecordId':null,'parentRecordId':_0x2627dd});});}),_0x5e72a8;}function $e(_0x5daf6f){const _0x52fa2d=_0x5670e0;switch(_0x5daf6f){case _0x244f2c[_0x52fa2d(0x295)]:return _0x52fa2d(0x32d);case _0x244f2c[_0x52fa2d(0x232)]:return _0x52fa2d(0x1f1);case _0x244f2c[_0x52fa2d(0x355)]:return _0x52fa2d(0xfb);case _0x244f2c['MaxDepth']:return _0x52fa2d(0x245);}}function et(_0x21c404,_0x263c0b){const _0x1cb82c=_0x5670e0;let _0x3823c6=new Set(_0x263c0b),_0x10ea4b=Xe(_0x21c404);return Object[_0x1cb82c(0x1c8)](_0x21c404['records'])[_0x1cb82c(0x98)](_0x185e13=>_0x3823c6[_0x1cb82c(0xb9)](_0x185e13['id'])?[]:Array[_0x1cb82c(0x162)](_0x10ea4b)['flatMap'](_0x162719=>{const _0x5b3a63=_0x1cb82c;let _0x5b4a03=Le(_0x185e13[_0x5b3a63(0x1c8)][_0x162719])[0x0]??null;return _0x5b4a03&&_0x3823c6[_0x5b3a63(0xb9)](_0x5b4a03)?[{'tableId':_0x21c404['id'],'fieldId':_0x162719,'recordId':_0x185e13['id'],'oldParentRecordId':_0x5b4a03,'parentRecordId':null}]:[];}));}function tt(_0x4a2ccf,_0x2f74e1,_0x35ad5e=_0x4a2ccf[_0x5670e0(0x411)]??Object[_0x5670e0(0x3ac)](_0x4a2ccf['records'])){const _0xf6c563=_0x5670e0;if((_0x4a2ccf['fields'][_0x2f74e1]||_0x2f74e1!==Je(_0x4a2ccf))&&!F(_0x4a2ccf,_0x2f74e1))throw Error(_0xf6c563(0x3d5)+_0x2f74e1+_0xf6c563(0x125));let _0x36311b=at(_0x4a2ccf,_0x35ad5e),_0x3b2e24=new Map(),_0x2699db=new Map();for(let _0x427379 of _0x36311b){var _0x115384;let _0x805ce6=Le((_0x115384=_0x4a2ccf[_0xf6c563(0x83)][_0x427379])==null?void 0x0:_0x115384[_0xf6c563(0x1c8)][_0x2f74e1])[0x0]??null;_0x805ce6?_0x805ce6===_0x427379?(_0x3b2e24[_0xf6c563(0x2b8)](_0x427379,null),_0x2699db[_0xf6c563(0x2b8)](_0x427379,_0x244f2c[_0xf6c563(0x232)])):_0x4a2ccf[_0xf6c563(0x83)][_0x805ce6]?_0x3b2e24['set'](_0x427379,_0x805ce6):(_0x3b2e24[_0xf6c563(0x2b8)](_0x427379,null),_0x2699db['set'](_0x427379,_0x244f2c[_0xf6c563(0x295)])):_0x3b2e24[_0xf6c563(0x2b8)](_0x427379,null);}ot(_0x3b2e24,_0x2699db,_0x36311b),st(_0x3b2e24,_0x2699db,_0x36311b);let _0x1d87df=new Map(_0x36311b[_0xf6c563(0x102)]((_0x5e5302,_0x1230e4)=>[_0x5e5302,_0x1230e4])),_0x19ae93=new Map();for(let _0x483b40 of _0x36311b){let _0x2bb777=_0x3b2e24['get'](_0x483b40)??null,_0x4e9a28=_0x19ae93[_0xf6c563(0x2db)](_0x2bb777)??[];_0x4e9a28['push'](_0x483b40),_0x19ae93[_0xf6c563(0x2b8)](_0x2bb777,_0x4e9a28);}_0x19ae93['forEach'](_0x458f3e=>_0x458f3e[_0xf6c563(0x249)]((_0x531bc4,_0x5b452d)=>(_0x1d87df[_0xf6c563(0x2db)](_0x531bc4)??0x0)-(_0x1d87df[_0xf6c563(0x2db)](_0x5b452d)??0x0)));let _0x338002=_0x19ae93[_0xf6c563(0x2db)](null)??[],_0x54e202=new Map(),_0x24078c=new Map(),_0x26ce95=[],_0x5b1596=(_0x3d8e3f,_0x292bcb)=>{const _0x2b8758=_0xf6c563;_0x54e202[_0x2b8758(0x2b8)](_0x3d8e3f,_0x292bcb),_0x26ce95[_0x2b8758(0x393)](_0x3d8e3f);let _0x30a91d=0x0;for(let _0xf73128 of _0x19ae93[_0x2b8758(0x2db)](_0x3d8e3f)??[])_0x30a91d=Math[_0x2b8758(0x272)](_0x30a91d,0x1+_0x5b1596(_0xf73128,_0x292bcb+0x1));return _0x24078c[_0x2b8758(0x2b8)](_0x3d8e3f,_0x30a91d),_0x30a91d;};return _0x338002[_0xf6c563(0x143)](_0x3c3f04=>_0x5b1596(_0x3c3f04,0x0)),{'fieldId':_0x2f74e1,'parentByRecordId':_0x3b2e24,'childrenByParentId':_0x19ae93,'depthByRecordId':_0x54e202,'subtreeHeightByRecordId':_0x24078c,'invalidReasonByRecordId':_0x2699db,'rootRecordIds':_0x338002,'orderedRecordIds':_0x26ce95};}function nt(_0x279c6b,_0x510020,_0x6e62d6=new Set(_0x510020[_0x5670e0(0x102)](_0x4ec3c8=>_0x4ec3c8[_0x5670e0(0x191)]))){const _0x14fa5e=_0x5670e0;let _0x313f81=new Set(_0x6e62d6);for(let _0x599973 of _0x6e62d6){let _0x4e6ade=_0x279c6b['parentByRecordId']['get'](_0x599973)??null;for(;_0x4e6ade;)_0x313f81['add'](_0x4e6ade),_0x4e6ade=_0x279c6b[_0x14fa5e(0x190)]['get'](_0x4e6ade)??null;}let _0x49c51d=new Map(_0x510020[_0x14fa5e(0x102)](_0x262ba7=>[_0x262ba7[_0x14fa5e(0x191)],_0x262ba7])),_0x267968=_0x279c6b[_0x14fa5e(0x305)][_0x14fa5e(0x364)](_0x51e9ba=>_0x313f81[_0x14fa5e(0xb9)](_0x51e9ba)),_0x5de91b=_0x267968[_0x14fa5e(0x98)](_0x263a80=>{let _0x2426aa=_0x49c51d['get'](_0x263a80);return _0x2426aa?[_0x2426aa]:[];}),_0x3e3a79={};for(let _0x403f0e=0x0;_0x403f0e<_0x267968['length'];_0x403f0e++){let _0x31dbcd=_0x267968[_0x403f0e];_0x3e3a79[_0x31dbcd]={'recordId':_0x31dbcd,'parentRecordId':_0x279c6b[_0x14fa5e(0x190)][_0x14fa5e(0x2db)](_0x31dbcd)??null,'depth':_0x279c6b[_0x14fa5e(0x2a7)][_0x14fa5e(0x2db)](_0x31dbcd)??0x0,'directChildCount':(_0x279c6b['childrenByParentId'][_0x14fa5e(0x2db)](_0x31dbcd)??[])[_0x14fa5e(0x19b)],'subtreeHeight':_0x279c6b[_0x14fa5e(0x108)][_0x14fa5e(0x2db)](_0x31dbcd)??0x0,'subtreeEndIndex':_0x403f0e,'invalidReason':_0x279c6b[_0x14fa5e(0x336)][_0x14fa5e(0x2db)](_0x31dbcd)};}let _0x51ea7e=[];for(let _0x1931ca=0x0;_0x1931ca<_0x267968['length'];_0x1931ca++){let _0x5546bf=_0x267968[_0x1931ca],_0x518ea2=_0x3e3a79[_0x5546bf][_0x14fa5e(0x34c)];for(;_0x51ea7e[_0x14fa5e(0x19b)]&&_0x51ea7e[_0x51ea7e[_0x14fa5e(0x19b)]-0x1][_0x14fa5e(0x34c)]>=_0x518ea2;){let _0x4961c8=_0x51ea7e[_0x14fa5e(0x402)]();_0x3e3a79[_0x4961c8['recordId']][_0x14fa5e(0x241)]=_0x1931ca-0x1;}_0x51ea7e[_0x14fa5e(0x393)]({'recordId':_0x5546bf,'depth':_0x518ea2});}return _0x51ea7e[_0x14fa5e(0x143)](({recordId:_0x118009})=>{const _0x54ea04=_0x14fa5e;_0x3e3a79[_0x118009][_0x54ea04(0x241)]=_0x267968[_0x54ea04(0x19b)]-0x1;}),{'rows':_0x5de91b,'hierarchy':{'fieldId':_0x279c6b[_0x14fa5e(0x186)],'rootRecordIds':_0x279c6b[_0x14fa5e(0x294)]['filter'](_0x1bfb78=>_0x313f81[_0x14fa5e(0xb9)](_0x1bfb78)),'orderedRecordIds':_0x267968,'nodes':_0x3e3a79}};}function rt(_0x5554ae,_0x39d4d8){const _0x11b0f2=_0x5670e0;if(!_0x5554ae[_0x11b0f2(0x130)]||!(_0x39d4d8!=null&&_0x39d4d8[_0x11b0f2(0x268)]))return _0x5554ae[_0x11b0f2(0x3b6)];let _0x48d52d=[],_0x55c551=0x0;for(;_0x55c551<_0x5554ae['rows'][_0x11b0f2(0x19b)];){let _0x5a9aac=_0x5554ae[_0x11b0f2(0x3b6)][_0x55c551];_0x48d52d['push'](_0x5a9aac);let _0x433c10=_0x5554ae[_0x11b0f2(0x130)][_0x11b0f2(0x248)][_0x5a9aac[_0x11b0f2(0x191)]];_0x55c551=_0x39d4d8['has'](_0x5a9aac['recordId'])&&_0x433c10?_0x433c10[_0x11b0f2(0x241)]+0x1:_0x55c551+0x1;}return _0x48d52d;}function it(_0x5d3b38,_0x39310c,_0x340a4b){const _0x408f39=_0x5670e0;if(!_0x340a4b)return{'valid':!0x0};if(_0x39310c===_0x340a4b)return{'valid':!0x1,'reason':_0x244f2c['SelfParent']};let _0x435a2e=_0x340a4b;for(;_0x435a2e;){if(_0x435a2e===_0x39310c)return{'valid':!0x1,'reason':_0x244f2c[_0x408f39(0x355)]};_0x435a2e=_0x5d3b38[_0x408f39(0x190)][_0x408f39(0x2db)](_0x435a2e)??null;}return(_0x5d3b38[_0x408f39(0x2a7)][_0x408f39(0x2db)](_0x340a4b)??0x0)+0x1+(_0x5d3b38[_0x408f39(0x108)][_0x408f39(0x2db)](_0x39310c)??0x0)>=0x5?{'valid':!0x1,'reason':_0x244f2c[_0x408f39(0x3ad)]}:{'valid':!0x0};}function at(_0x2a1444,_0x4de20a){const _0x2abdb8=_0x5670e0;let _0x4ee082=new Set(),_0x3754a6=[];for(let _0x16dcf1 of _0x4de20a)_0x2a1444[_0x2abdb8(0x83)][_0x16dcf1]&&!_0x4ee082[_0x2abdb8(0xb9)](_0x16dcf1)&&(_0x4ee082['add'](_0x16dcf1),_0x3754a6[_0x2abdb8(0x393)](_0x16dcf1));return Object[_0x2abdb8(0x3ac)](_0x2a1444['records'])[_0x2abdb8(0x249)]()[_0x2abdb8(0x143)](_0x4ea4e8=>{const _0x1966b2=_0x2abdb8;_0x4ee082[_0x1966b2(0xb9)](_0x4ea4e8)||_0x3754a6[_0x1966b2(0x393)](_0x4ea4e8);}),_0x3754a6;}function ot(_0x4175f7,_0x2421dd,_0x3ac80e){const _0x299e09=_0x5670e0;let _0x46c412=new Set();for(let _0x4b85a8 of _0x3ac80e){if(_0x46c412['has'](_0x4b85a8))continue;let _0x1eb739=[],_0x44f8d4=new Map(),_0x2d758a=_0x4b85a8;for(;_0x2d758a&&!_0x46c412[_0x299e09(0xb9)](_0x2d758a);){let _0x444e6d=_0x44f8d4['get'](_0x2d758a);if(_0x444e6d!=null){let _0x384846=[..._0x1eb739['slice'](_0x444e6d)][_0x299e09(0x249)]()[_0x299e09(0x402)]();_0x4175f7['set'](_0x384846,null),_0x2421dd['set'](_0x384846,_0x244f2c['Cycle']);break;}_0x44f8d4[_0x299e09(0x2b8)](_0x2d758a,_0x1eb739['length']),_0x1eb739['push'](_0x2d758a),_0x2d758a=_0x4175f7[_0x299e09(0x2db)](_0x2d758a)??null;}_0x1eb739[_0x299e09(0x143)](_0x564185=>_0x46c412['add'](_0x564185));}}function st(_0x55d77e,_0x3703f8,_0x2e0cda){const _0x3b799b=_0x5670e0;let _0x149c53=new Map(),_0x6c6a20=_0x9bbcaa=>{const _0x5cb39e=_0x4f53;let _0x5bb34c=_0x149c53[_0x5cb39e(0x2db)](_0x9bbcaa);if(_0x5bb34c!=null)return _0x5bb34c;let _0x535eaa=_0x55d77e['get'](_0x9bbcaa)??null;if(!_0x535eaa)return _0x149c53[_0x5cb39e(0x2b8)](_0x9bbcaa,0x0),0x0;let _0x369e3b=_0x6c6a20(_0x535eaa)+0x1;return _0x369e3b>=0x5?(_0x55d77e[_0x5cb39e(0x2b8)](_0x9bbcaa,null),_0x3703f8['set'](_0x9bbcaa,_0x244f2c[_0x5cb39e(0x3ad)]),_0x149c53[_0x5cb39e(0x2b8)](_0x9bbcaa,0x0),0x0):(_0x149c53[_0x5cb39e(0x2b8)](_0x9bbcaa,_0x369e3b),_0x369e3b);};_0x2e0cda[_0x3b799b(0x143)](_0x6c6a20);}let ct=0x0;function lt(){const _0xdd96a6=_0x5670e0;if(globalThis[_0xdd96a6(0x1d7)]===!0x0)return!0x0;try{let _0x469417=typeof location>'u'?'':location[_0xdd96a6(0x100)],_0x5cdbb6=new URLSearchParams(_0x469417);if(_0x5cdbb6['get'](_0xdd96a6(0x3e2))==='1'||_0x5cdbb6[_0xdd96a6(0x2db)](_0xdd96a6(0x3e2))===_0xdd96a6(0x1ad)||_0x5cdbb6[_0xdd96a6(0x2db)](_0xdd96a6(0xae))==='1')return!0x0;}catch{}try{let _0x251990=typeof localStorage>'u'?null:localStorage[_0xdd96a6(0x379)]('univer.basePerf');return _0x251990==='1'||_0x251990===_0xdd96a6(0x1ad);}catch{return!0x1;}}function I(_0x255257,_0xcb5041,_0x16dc79){const _0x3fb8ec=_0x5670e0;if(!lt())return _0xcb5041();let _0x3841ca=dt(),_0x1e2849=_0x3fb8ec(0xc0)+ct++;ft(_0x1e2849+':start');try{return _0xcb5041();}finally{let _0x524644=dt()-_0x3841ca;ft(_0x1e2849+_0x3fb8ec(0x140)),pt(_0x255257,_0x1e2849+':start',_0x1e2849+':end'),ut(_0x255257,_0x524644,_0x16dc79);}}function ut(_0x4b63e6,_0xf29535,_0x481353){const _0x40a037=_0x5670e0;if(!lt())return;let _0x166875=Math[_0x40a037(0x217)](_0xf29535*0x64)/0x64,_0x2201ed=_0x481353&&Object[_0x40a037(0x3ac)](_0x481353)[_0x40a037(0x19b)]?'\x20'+JSON[_0x40a037(0x1a0)](_0x481353):'';console[_0x40a037(0x1a8)]('[BasePerf]\x20'+_0x4b63e6+':\x20'+_0x166875+'ms'+_0x2201ed);}function dt(){const _0x5bab7c=_0x5670e0;return typeof performance<'u'&&typeof performance['now']==_0x5bab7c(0x251)?performance['now']():Date[_0x5bab7c(0x2b3)]();}function ft(_0x280170){const _0x82cf60=_0x5670e0;try{if(typeof performance<'u'){var _0xe7a03f,_0x48fcc6;(_0xe7a03f=(_0x48fcc6=performance)[_0x82cf60(0x3a8)])==null||_0xe7a03f[_0x82cf60(0x321)](_0x48fcc6,_0x280170);}}catch{}}function pt(_0x4d2686,_0x46bd4c,_0x43f2d3){const _0x8a19bf=_0x5670e0;try{if(typeof performance<'u'){var _0x31c319,_0x46d7d1;(_0x31c319=(_0x46d7d1=performance)[_0x8a19bf(0x357)])==null||_0x31c319['call'](_0x46d7d1,_0x8a19bf(0x20a)+_0x4d2686,_0x46bd4c,_0x43f2d3);}}catch{}}function L(_0x1093f8){const _0x5b90bc=_0x5670e0;var _0x50c77e;return lt()?I('IBaseCellData.ensureTableCellLayout',()=>mt(_0x1093f8),{'tableId':_0x1093f8['id'],'records':Object[_0x5b90bc(0x3ac)](_0x1093f8['records']??{})[_0x5b90bc(0x19b)],'fields':_0x1093f8[_0x5b90bc(0x367)][_0x5b90bc(0x19b)],'hasRecordOrder':!!((_0x50c77e=_0x1093f8[_0x5b90bc(0x411)])!=null&&_0x50c77e[_0x5b90bc(0x19b)])}):mt(_0x1093f8);}function mt(_0x3d1125){const _0x3097d8=_0x5670e0;var _0x383a8a;let _0x240e12=_0x3d1125[_0x3097d8(0x83)]??{},_0xf8bd90=_0x3d1125[_0x3097d8(0x2cb)]??{},_0xc64ba=((_0x383a8a=_0x3d1125['recordOrder'])==null?void 0x0:_0x383a8a[_0x3097d8(0x364)](_0x1b28e1=>_0x240e12[_0x1b28e1]))??[],_0x1b4283=new Set(_0xc64ba),_0x56c4d3=[];for(let _0x1527e1 of Object[_0x3097d8(0x1c8)](_0x240e12))_0x1b4283[_0x3097d8(0xb9)](_0x1527e1['id'])||_0x56c4d3[_0x3097d8(0x393)](_0x1527e1);let _0x2b2211=_0x56c4d3[_0x3097d8(0x19b)]?[..._0xc64ba,...Rt(_0x56c4d3)]:_0xc64ba,_0x36592e=_0x3d1125[_0x3097d8(0x367)]['filter'](_0x108d5c=>_0xf8bd90[_0x108d5c]),_0x37398c={..._0x3d1125[_0x3097d8(0x2ea)]??{}},_0x47ce7b={..._0x3d1125['colId']??{}},_0x46f41c={..._0x3d1125[_0x3097d8(0x259)]??{}};_0x3d1125[_0x3097d8(0x411)]=_0x2b2211,_0x3d1125[_0x3097d8(0x250)]={},_0x3d1125['rowId']={},_0x3d1125[_0x3097d8(0xb6)]={},_0x3d1125[_0x3097d8(0x18c)]={},_0x3d1125['cellData']={},_0x3d1125[_0x3097d8(0x184)]={..._0x3d1125[_0x3097d8(0x184)]??{}},_0x3d1125[_0x3097d8(0x184)][_0x3097d8(0x32f)]={..._0x3d1125[_0x3097d8(0x184)][_0x3097d8(0x32f)]??{}},_0x3d1125['resources'][_0x3097d8(0x2b9)]={..._0x3d1125['resources']['attachments']??{}};let _0x1bc132=_0x3d1125['rowIndex'],_0x2891d9=_0x3d1125[_0x3097d8(0x2ea)],_0x8756ba=_0x3d1125[_0x3097d8(0xb6)],_0x342fef=_0x3d1125[_0x3097d8(0x18c)],_0x3e6be3=_0x3d1125[_0x3097d8(0x259)];return _0x2b2211[_0x3097d8(0x143)]((_0x3b9517,_0x1c3dc6)=>{_0x1bc132[_0x3b9517]=_0x1c3dc6,_0x2891d9[_0x1c3dc6]=_0x3b9517;}),_0x36592e[_0x3097d8(0x143)]((_0x1b70bd,_0xe6dbaf)=>{_0x8756ba[_0x1b70bd]=_0xe6dbaf,_0x342fef[_0xe6dbaf]=_0x1b70bd;}),Object[_0x3097d8(0x419)](_0x46f41c)[_0x3097d8(0x143)](([_0x1a9473,_0x24bcdd])=>{const _0x3219e9=_0x3097d8;let _0x1ee7fa=Number(_0x1a9473),_0x5b5ac5=_0x37398c[_0x1ee7fa]??_0x2b2211[_0x1ee7fa],_0x304c78=_0x5b5ac5?_0x1bc132[_0x5b5ac5]:void 0x0;_0x304c78!=null&&(_0x3e6be3[_0x304c78]={..._0x3e6be3[_0x304c78]??{}},Object[_0x3219e9(0x419)](_0x24bcdd??{})[_0x3219e9(0x143)](([_0x131d61,_0x314eab])=>{let _0x5eea0d=Number(_0x131d61),_0x56e840=_0x47ce7b[_0x5eea0d]??_0x36592e[_0x5eea0d],_0x296e63=_0x56e840?_0x8756ba[_0x56e840]:void 0x0;_0x296e63!=null&&(_0x3e6be3[_0x304c78][_0x296e63]=St(_0x314eab));}));}),Object[_0x3097d8(0x1c8)](_0x240e12)[_0x3097d8(0x143)](_0x9db75b=>{const _0x370f1f=_0x3097d8;let _0x1cc939=_0x1bc132[_0x9db75b['id']];_0x1cc939!=null&&(_0x9db75b[_0x370f1f(0x1c8)]={..._0x9db75b[_0x370f1f(0x1c8)]??{},[_0x32decc]:_0x9db75b['id']},_0x3e6be3[_0x1cc939]={..._0x3e6be3[_0x1cc939]??{},0x0:{'v':_0x9db75b['id'],'t':_0x319a08[_0x370f1f(0x13f)]}},Object[_0x370f1f(0x419)](_0x9db75b[_0x370f1f(0x1c8)]??{})[_0x370f1f(0x143)](([_0x329a03,_0x303fcd])=>{const _0x5d6a2a=_0x370f1f;let _0x4963d2=_0xf8bd90[_0x329a03];(_0x4963d2==null?void 0x0:_0x4963d2[_0x5d6a2a(0xeb)])===_0x4fe15f[_0x5d6a2a(0x134)]&&Dt(_0x3d1125,_0x9db75b['id'],_0x329a03,_0x303fcd);let _0x48ca54=_0x8756ba[_0x329a03];if(_0x48ca54==null)return;let _0x57d8f9=_0x3e6be3[_0x1cc939][_0x48ca54];(_0x57d8f9==null||jt(_0x57d8f9,_0x4963d2,_0x303fcd))&&(_0x3e6be3[_0x1cc939][_0x48ca54]=xt(_0x303fcd,_0x4963d2));}));}),_0x3d1125;}function ht(_0x1b4bea,_0x3e2b01){const _0x53e54d=_0x5670e0;return _0x1b4bea['records']=Object[_0x53e54d(0x3a7)](Object[_0x53e54d(0x419)](_0x1b4bea[_0x53e54d(0x83)])[_0x53e54d(0x102)](([_0x1e5c00,_0x116375])=>[_0x1e5c00,{..._0x116375}])),L(_0x1b4bea),Object[_0x53e54d(0x419)](_0x1b4bea[_0x53e54d(0x2ea)]??{})[_0x53e54d(0x143)](([_0x8b343f,_0x2abdd9])=>{const _0x1475a6=_0x53e54d;var _0x374931;let _0x18e28b=Number(_0x8b343f),_0x4bb8fe=_0x1b4bea['records'][_0x2abdd9];_0x4bb8fe&&(_0x4bb8fe[_0x1475a6(0x1c8)]={..._0x4bb8fe[_0x1475a6(0x1c8)]??{}},Object[_0x1475a6(0x419)](((_0x374931=_0x1b4bea[_0x1475a6(0x259)])==null?void 0x0:_0x374931[_0x18e28b])??{})[_0x1475a6(0x143)](([_0x736dd2,_0x614792])=>{const _0x314719=_0x1475a6;var _0x5d9b86;let _0x5521c8=(_0x5d9b86=_0x1b4bea[_0x314719(0x18c)])==null?void 0x0:_0x5d9b86[Number(_0x736dd2)];_0x5521c8&&_0x3e2b01&&!_0x3e2b01(_0x2abdd9,_0x5521c8)||(_0x5521c8===_0x32decc?_0x4bb8fe[_0x314719(0x1c8)][_0x32decc]=_0x4bb8fe['id']:_0x5521c8&&(_0x4bb8fe[_0x314719(0x1c8)][_0x5521c8]=Ct(_0x614792,_0x1b4bea[_0x314719(0x2cb)][_0x5521c8],_0x1b4bea,_0x2abdd9)));}));}),_0x1b4bea;}function gt(_0x2fc47d,_0x239774){const _0xd79761=_0x5670e0;for(let {row:_0xcc23d4,col:_0x375b08}of _0x239774){var _0x380c43,_0x2eaaee,_0x5a5693;let _0x57a6d4=(_0x380c43=_0x2fc47d[_0xd79761(0x2ea)])==null?void 0x0:_0x380c43[_0xcc23d4],_0x2cca4b=(_0x2eaaee=_0x2fc47d[_0xd79761(0x18c)])==null?void 0x0:_0x2eaaee[_0x375b08],_0x585569=_0x57a6d4?_0x2fc47d['records'][_0x57a6d4]:void 0x0;if(!_0x585569||!_0x2cca4b)continue;if(_0x2cca4b===_0x32decc){_0x585569['values'][_0x32decc]=_0x585569['id'];continue;}let _0x30e651=(_0x5a5693=_0x2fc47d['cellData'])==null||(_0x5a5693=_0x5a5693[_0xcc23d4])==null?void 0x0:_0x5a5693[_0x375b08];(_0x30e651!=null||Object[_0xd79761(0x159)]['hasOwnProperty']['call'](_0x585569[_0xd79761(0x1c8)]??{},_0x2cca4b))&&(_0x585569[_0xd79761(0x1c8)]={..._0x585569[_0xd79761(0x1c8)]??{}},_0x585569[_0xd79761(0x1c8)][_0x2cca4b]=Ct(_0x30e651,_0x2fc47d[_0xd79761(0x2cb)][_0x2cca4b],_0x2fc47d,_0x57a6d4));}return _0x2fc47d;}function _t(_0x1cf340,_0x2e8e26,_0x349074){const _0x1d2e3c=_0x5670e0;var _0x553b7c,_0x338b09,_0x44b0fc,_0x2dedcc,_0x38124f,_0x182db3;let _0x3df490=(_0x553b7c=_0x1cf340[_0x1d2e3c(0x250)])==null?void 0x0:_0x553b7c[_0x2e8e26],_0x30bd9c=(_0x338b09=_0x1cf340[_0x1d2e3c(0xb6)])==null?void 0x0:_0x338b09[_0x349074];if(_0x3df490!=null&&_0x30bd9c!=null&&((_0x44b0fc=_0x1cf340['rowId'])==null?void 0x0:_0x44b0fc[_0x3df490])===_0x2e8e26&&((_0x2dedcc=_0x1cf340['colId'])==null?void 0x0:_0x2dedcc[_0x30bd9c])===_0x349074)return{'row':_0x3df490,'col':_0x30bd9c};let _0x21f6ab=L(_0x1cf340),_0x258eef=(_0x38124f=_0x21f6ab['rowIndex'])==null?void 0x0:_0x38124f[_0x2e8e26],_0x48b414=(_0x182db3=_0x21f6ab[_0x1d2e3c(0xb6)])==null?void 0x0:_0x182db3[_0x349074];return _0x258eef==null||_0x48b414==null?null:{'row':_0x258eef,'col':_0x48b414};}function vt(_0x11186b,_0x3bd4c6,_0x22314e){const _0x106448=_0x5670e0;var _0x3d319a;let _0x30bdba=_t(_0x11186b,_0x3bd4c6,_0x22314e);if(_0x30bdba)return(_0x3d319a=_0x11186b[_0x106448(0x259)])==null||(_0x3d319a=_0x3d319a[_0x30bdba[_0x106448(0x24b)]])==null?void 0x0:_0x3d319a[_0x30bdba['col']];}function yt(_0x2c6fcd,_0x278eae,_0x2a8eff){const _0x342b19=_0x5670e0;var _0xed27ce;let _0x172bf3=vt(_0x2c6fcd,_0x278eae,_0x2a8eff),_0x556db8=_0x2c6fcd['fields'][_0x2a8eff];if((_0x556db8==null?void 0x0:_0x556db8['type'])===_0x4fe15f[_0x342b19(0x134)]){var _0x196433;return Ot(_0x2c6fcd,_0x278eae,_0x2a8eff)??kt((_0x196433=_0x2c6fcd['records'][_0x278eae])==null||(_0x196433=_0x196433[_0x342b19(0x1c8)])==null?void 0x0:_0x196433[_0x2a8eff]);}if(Mt(_0x556db8)||Nt(_0x556db8)||(_0x556db8==null?void 0x0:_0x556db8[_0x342b19(0xeb)])===_0x4fe15f[_0x342b19(0x399)]){var _0xddf2f2;let _0x3435ac=(_0xddf2f2=_0x2c6fcd[_0x342b19(0x83)][_0x278eae])==null||(_0xddf2f2=_0xddf2f2[_0x342b19(0x1c8)])==null?void 0x0:_0xddf2f2[_0x2a8eff];return _0x3435ac!=null&&_0x3435ac!==''?At(_0x3435ac,_0x556db8):Ct(_0x172bf3,_0x556db8,_0x2c6fcd,_0x278eae);}return _0x172bf3&&Object['prototype']['hasOwnProperty'][_0x342b19(0x321)](_0x172bf3,'v')?_0x172bf3['v']??null:((_0xed27ce=_0x2c6fcd[_0x342b19(0x83)][_0x278eae])==null||(_0xed27ce=_0xed27ce[_0x342b19(0x1c8)])==null?void 0x0:_0xed27ce[_0x2a8eff])??null;}function bt(_0x251ebb,_0x39cc5c,_0x284e1c){const _0x1d8cbd=_0x5670e0;var _0x583c9c;let _0x5876a7=vt(_0x251ebb,_0x39cc5c,_0x284e1c);if(_0x5876a7&&Object[_0x1d8cbd(0x159)][_0x1d8cbd(0x127)][_0x1d8cbd(0x321)](_0x5876a7,'v'))return _0x5876a7['v']??null;let _0x348ab7=_0x251ebb[_0x1d8cbd(0x2cb)][_0x284e1c];return xt(((_0x583c9c=_0x251ebb['records'][_0x39cc5c])==null||(_0x583c9c=_0x583c9c[_0x1d8cbd(0x1c8)])==null?void 0x0:_0x583c9c[_0x284e1c])??null,_0x348ab7)['v']??null;}function xt(_0x1ab55e,_0x57e65){const _0x23cbe2=_0x5670e0;if(Tt(_0x1ab55e))return(_0x57e65==null?void 0x0:_0x57e65[_0x23cbe2(0xeb)])===_0x4fe15f[_0x23cbe2(0x134)]?{..._0x1ab55e,'v':'','t':_0x319a08['STRING']}:St(_0x1ab55e);if((_0x57e65==null?void 0x0:_0x57e65[_0x23cbe2(0xeb)])===_0x4fe15f[_0x23cbe2(0x134)])return{'v':'','t':_0x319a08['STRING']};if(Nt(_0x57e65)){let _0x85181=Pt(_0x1ab55e);return{'v':_0x85181,'t':Lt(_0x85181)};}if(Mt(_0x57e65))return{'v':Ft(_0x1ab55e)[_0x23cbe2(0x3d6)](',\x20'),'t':_0x319a08[_0x23cbe2(0x13f)]};if((_0x57e65==null?void 0x0:_0x57e65[_0x23cbe2(0xeb)])===_0x4fe15f[_0x23cbe2(0x399)]&&_0x1ab55e&&typeof _0x1ab55e==_0x23cbe2(0x360)&&!Array['isArray'](_0x1ab55e)){let _0x2efc16=_0x1ab55e;return{'v':String(_0x2efc16[_0x23cbe2(0x277)]??_0x2efc16[_0x23cbe2(0x33c)]??''),'t':_0x319a08[_0x23cbe2(0x13f)]};}return _0x1ab55e===null||typeof _0x1ab55e=='string'||typeof _0x1ab55e==_0x23cbe2(0x174)||typeof _0x1ab55e==_0x23cbe2(0x168)?{'v':_0x1ab55e,'t':Lt(_0x1ab55e)}:{'v':null,'t':null};}function St(_0x9b4601){let _0x4260b4=zt(_0x9b4601['t'],_0x9b4601['v']);if(_0x4260b4===void 0x0){let {t:_0x4ccfb7,..._0x167b7d}=_0x9b4601;return _0x167b7d;}return{..._0x9b4601,'t':_0x4260b4};}function Ct(_0xf14238,_0x395e09,_0x207911,_0x19181a){const _0x267216=_0x5670e0;if(!_0xf14238)return null;if((_0x395e09==null?void 0x0:_0x395e09[_0x267216(0xeb)])===_0x4fe15f[_0x267216(0x134)])return _0x207911&&_0x19181a?Ot(_0x207911,_0x19181a,_0x395e09['id'])??[]:[];if(Mt(_0x395e09))return Ft(_0xf14238['v']);if((_0x395e09==null?void 0x0:_0x395e09[_0x267216(0xeb)])===_0x4fe15f['Link']&&_0x207911&&_0x19181a){var _0x3d327c;let _0x4d761c=(_0x3d327c=_0x207911[_0x267216(0x83)][_0x19181a])==null||(_0x3d327c=_0x3d327c[_0x267216(0x1c8)])==null?void 0x0:_0x3d327c[_0x395e09['id']];if(_0x4d761c&&typeof _0x4d761c==_0x267216(0x360)&&!Array[_0x267216(0x99)](_0x4d761c))return _0x4d761c;}return Object[_0x267216(0x159)]['hasOwnProperty'][_0x267216(0x321)](_0xf14238,'v')?_0xf14238['v']??null:null;}function wt(_0x564ea0,_0x51be0d,_0x340c54,_0x432df5,_0x51acd6){const _0xd9e60f=_0x5670e0;return(_0x340c54==null?void 0x0:_0x340c54[_0xd9e60f(0xeb)])===_0x4fe15f['Attachment']?kt(_0x564ea0):Nt(_0x340c54)?Pt(_0x564ea0):Mt(_0x340c54)?Ft(_0x564ea0):(_0x340c54==null?void 0x0:_0x340c54[_0xd9e60f(0xeb)])===_0x4fe15f[_0xd9e60f(0x399)]&&(_0x564ea0==null||_0x564ea0==='')?null:(_0x340c54==null?void 0x0:_0x340c54[_0xd9e60f(0xeb)])===_0x4fe15f[_0xd9e60f(0x399)]&&_0x564ea0&&typeof _0x564ea0==_0xd9e60f(0x360)&&!Array[_0xd9e60f(0x99)](_0x564ea0)&&!Tt(_0x564ea0)?_0x564ea0:Ct(_0x51be0d,_0x340c54,_0x432df5,_0x51acd6);}function Tt(_0x51cd24){const _0x8e2c3d=_0x5670e0;return!!_0x51cd24&&typeof _0x51cd24==_0x8e2c3d(0x360)&&(Object[_0x8e2c3d(0x159)]['hasOwnProperty'][_0x8e2c3d(0x321)](_0x51cd24,'v')||Object[_0x8e2c3d(0x159)]['hasOwnProperty']['call'](_0x51cd24,'t')||Object['prototype']['hasOwnProperty']['call'](_0x51cd24,'p')||Object['prototype']['hasOwnProperty']['call'](_0x51cd24,'f')||Object['prototype'][_0x8e2c3d(0x127)]['call'](_0x51cd24,'si'));}function Et(_0x236e46,_0x3b9d89){return _0x236e46+'\x1f'+_0x3b9d89;}function Dt(_0x5e2744,_0x12df54,_0x560bb7,_0x36381a){const _0xca7a36=_0x5670e0;let _0xd0f345=kt(_0x36381a);_0x5e2744['resources']={..._0x5e2744[_0xca7a36(0x184)]??{}},_0x5e2744['resources'][_0xca7a36(0x32f)]={..._0x5e2744[_0xca7a36(0x184)][_0xca7a36(0x32f)]??{}},_0x5e2744['resources'][_0xca7a36(0x2b9)]={..._0x5e2744['resources'][_0xca7a36(0x2b9)]??{}};let _0xa7d30e=Et(_0x560bb7,_0x12df54),_0x113390=[];for(let _0x11282d=0x0;_0x11282d<_0xd0f345[_0xca7a36(0x19b)];_0x11282d++){if(!(_0x11282d in _0xd0f345))continue;let _0x2f22f3=_0xd0f345[_0x11282d],_0x3b5f0c=String(_0x2f22f3['id']??_0xa7d30e+'\x1f'+_0x11282d),_0x3c3ad7={..._0x2f22f3,'id':_0x3b5f0c};_0x5e2744[_0xca7a36(0x184)]['attachments'][_0x3b5f0c]=_0x3c3ad7,_0x113390[_0xca7a36(0x393)](_0x3b5f0c);}_0x5e2744[_0xca7a36(0x184)][_0xca7a36(0x32f)][_0xa7d30e]=_0x113390;}function Ot(_0x5f2ec3,_0x3862f8,_0x3cf4ef){const _0x2a20d7=_0x5670e0;var _0x11c949;let _0x3b3d44=Et(_0x3cf4ef,_0x3862f8),_0x1b26b8=(_0x11c949=_0x5f2ec3['resources'])==null||(_0x11c949=_0x11c949['attachmentSets'])==null?void 0x0:_0x11c949[_0x3b3d44];if(!_0x1b26b8)return null;let _0x40dd8c=[];for(let _0x49839b=0x0;_0x49839b<_0x1b26b8[_0x2a20d7(0x19b)];_0x49839b++){var _0x252280;if(!(_0x49839b in _0x1b26b8))continue;let _0x903df8=(_0x252280=_0x5f2ec3[_0x2a20d7(0x184)])==null||(_0x252280=_0x252280[_0x2a20d7(0x2b9)])==null?void 0x0:_0x252280[_0x1b26b8[_0x49839b]];_0x903df8&&_0x40dd8c['push']({..._0x903df8});}return _0x40dd8c;}function kt(_0x2ce41e){const _0x28a791=_0x5670e0;if(_0x2ce41e==null||_0x2ce41e===''||Tt(_0x2ce41e)&&!('id'in _0x2ce41e)&&!(_0x28a791(0x26f)in _0x2ce41e))return[];let _0x1d3143=Array[_0x28a791(0x99)](_0x2ce41e)?_0x2ce41e:[_0x2ce41e],_0x19dfda=[];for(let _0x2bea98=0x0;_0x2bea98<_0x1d3143[_0x28a791(0x19b)];_0x2bea98++){if(!(_0x2bea98 in _0x1d3143))continue;let _0x80146f=_0x1d3143[_0x2bea98],_0x409638=_0x80146f&&typeof _0x80146f==_0x28a791(0x360)?{..._0x80146f}:{'id':'attachment-'+_0x2bea98,'name':String(_0x80146f)};Object[_0x28a791(0x3ac)](_0x409638)['length']>0x0&&_0x19dfda[_0x28a791(0x393)](_0x409638);}return _0x19dfda;}function At(_0x14c807,_0x4a3427){const _0x74fa1=_0x5670e0;return(_0x4a3427==null?void 0x0:_0x4a3427['type'])===_0x4fe15f[_0x74fa1(0x134)]?kt(_0x14c807):Nt(_0x4a3427)?Pt(_0x14c807):Mt(_0x4a3427)?Ft(_0x14c807):_0x14c807;}function jt(_0x235a9c,_0x4306f7,_0x17c940){const _0x4f0d1a=_0x5670e0;return(_0x4306f7==null?void 0x0:_0x4306f7[_0x4f0d1a(0xeb)])===_0x4fe15f[_0x4f0d1a(0x134)]?_0x235a9c['v']!=='':Nt(_0x4306f7)?_0x235a9c['v']!==Pt(_0x17c940):Mt(_0x4306f7)?Array[_0x4f0d1a(0x99)](_0x17c940)&&(_0x235a9c['v']==null||_0x235a9c['v']===''):!0x1;}function Mt(_0x51bba8){const _0x7c8bb1=_0x5670e0;return(_0x51bba8==null?void 0x0:_0x51bba8[_0x7c8bb1(0xeb)])===_0x4fe15f[_0x7c8bb1(0x8b)]||(_0x51bba8==null?void 0x0:_0x51bba8[_0x7c8bb1(0xeb)])===_0x4fe15f[_0x7c8bb1(0x29d)]||(_0x51bba8==null?void 0x0:_0x51bba8[_0x7c8bb1(0xeb)])===_0x4fe15f[_0x7c8bb1(0x36c)]&&_0x51bba8[_0x7c8bb1(0x407)][_0x7c8bb1(0x22e)]===!0x0;}function Nt(_0x43fdc4){const _0x15206b=_0x5670e0;return(_0x43fdc4==null?void 0x0:_0x43fdc4['type'])===_0x4fe15f[_0x15206b(0x36c)]&&_0x43fdc4[_0x15206b(0x407)]['allowMultiple']!==!0x0;}function Pt(_0x565ce8){const _0x30e51d=_0x5670e0;let _0x171635=Tt(_0x565ce8)?_0x565ce8['v']:_0x565ce8,_0x322d7d=Array[_0x30e51d(0x99)](_0x171635)?_0x171635[0x0]:_0x171635;return _0x322d7d==null||_0x322d7d===''?null:String(_0x322d7d);}function Ft(_0x5eb984){const _0x37e7bf=_0x5670e0;if(_0x5eb984==null||_0x5eb984==='')return[];let _0x1bff26=[];if(Array[_0x37e7bf(0x99)](_0x5eb984)){for(let _0x5625de=0x0;_0x5625de<_0x5eb984[_0x37e7bf(0x19b)];_0x5625de++){if(!(_0x5625de in _0x5eb984))continue;let _0x16a55d=It(_0x5eb984[_0x5625de]);_0x16a55d&&_0x1bff26[_0x37e7bf(0x393)](_0x16a55d);}return _0x1bff26;}for(let _0xea2196 of String(_0x5eb984)[_0x37e7bf(0x12f)](',')){let _0x59dcd8=_0xea2196[_0x37e7bf(0x12d)]();_0x59dcd8&&_0x1bff26[_0x37e7bf(0x393)](_0x59dcd8);}return _0x1bff26;}function It(_0x894d09){const _0x25963d=_0x5670e0;if(_0x894d09==null)return'';if(typeof _0x894d09==_0x25963d(0x2dc)||typeof _0x894d09=='number'||typeof _0x894d09==_0x25963d(0x168))return String(_0x894d09);if(typeof _0x894d09=='object'){let _0x211175=_0x894d09;return String(_0x211175['id']??_0x211175[_0x25963d(0x26f)]??_0x211175[_0x25963d(0x277)]??'');}return String(_0x894d09);}function Lt(_0x27826f){const _0x396755=_0x5670e0;return _0x27826f==null?null:typeof _0x27826f==_0x396755(0x174)?_0x319a08[_0x396755(0x39a)]:typeof _0x27826f==_0x396755(0x168)?_0x319a08[_0x396755(0x189)]:_0x319a08['STRING'];}function Rt(_0x5a9081){const _0x152ec7=_0x5670e0;_0x5a9081['sort']((_0x352026,_0x547370)=>_0x352026[_0x152ec7(0x27b)]['localeCompare'](_0x547370[_0x152ec7(0x27b)]));let _0x26aa36=[];for(let _0x566ece of _0x5a9081)_0x26aa36['push'](_0x566ece['id']);return _0x26aa36;}function zt(_0x35c3b8,_0x781d7){const _0x215852=_0x5670e0;return _0x35c3b8===_0x319a08[_0x215852(0x13f)]||_0x35c3b8===_0x319a08[_0x215852(0x39a)]||_0x35c3b8===_0x319a08[_0x215852(0x189)]||_0x35c3b8===_0x319a08[_0x215852(0x11c)]||_0x35c3b8==null?_0x35c3b8:Lt(_0x781d7??null);}function R(_0x277fc0){const _0x52b7f2=_0x5670e0;let _0x2a711d=null;for(let _0x448005 of _0x277fc0)_0x2a711d=_0x2a711d===null?_0x448005:_0x23944c[_0x52b7f2(0xeb)][_0x52b7f2(0x34f)](_0x2a711d,_0x448005);return _0x2a711d;}var z=class e{static[_0x5670e0(0x3d0)](_0x44b8ba,_0x3635fe){const _0x44a40a=_0x5670e0;let _0x151ffa=[];for(let _0xeb2408 of _0x3635fe){let _0x4fc247=Bt(_0xeb2408);if(!_0x4fc247||_0x4fc247[_0x44a40a(0x39d)]!==_0x44b8ba['id'])return null;_0x151ffa['push'](_0x4fc247['op']);}try{let _0x4f5d55=R(_0x151ffa);return _0x4f5d55===null?_0x44b8ba:new e()[_0x44a40a(0x2ee)](_0x44b8ba,_0x4f5d55);}catch{return null;}}['applyOp'](_0x12999f,_0x4e04a7){const _0x210569=_0x5670e0;let _0x28338c=this[_0x210569(0x23a)](_0x4e04a7),_0x836c53=I(_0x210569(0x29c),()=>Xt(_0x12999f,_0x4e04a7),{'invalidations':_0x28338c[_0x210569(0x19b)]}),_0x39d077=I(_0x210569(0x353),()=>_0x23944c[_0x210569(0xeb)]['apply'](_0x836c53,_0x4e04a7),{'invalidations':_0x28338c[_0x210569(0x19b)]}),_0x28b964=Ht(_0x39d077,_0x28338c);return I(_0x210569(0x255),()=>Vt(_0x39d077,_0x28338c),{'invalidations':_0x28338c[_0x210569(0x19b)]})?(Ut(_0x39d077,_0x28b964),_0x39d077):(I(_0x210569(0x283),()=>{const _0x8d3ddd=_0x210569;this['_getTablesToNormalize'](_0x39d077,_0x28338c)[_0x8d3ddd(0x143)](_0x45b6b7=>{const _0x233c41=_0x8d3ddd;let _0x557d77=_0x28338c[_0x233c41(0x364)](_0x48734a=>_0x48734a[_0x233c41(0x1a4)]===_0x45b6b7['id']),_0x96f789=_0x557d77['length']>0x0&&_0x557d77[_0x233c41(0x3f9)](_0x497533=>_0x497533['reason']===_0x233c41(0x378)||_0x497533['reason']===_0x233c41(0x1f5)||_0x497533[_0x233c41(0x37a)]===_0x233c41(0x96)||_0x497533[_0x233c41(0x37a)]===_0x233c41(0x1ef))?new Set(_0x557d77[_0x233c41(0x98)](_0x3f90c9=>{const _0x3bf1c1=_0x233c41;var _0x262e5d;if(_0x3f90c9[_0x3bf1c1(0x37a)]!==_0x3bf1c1(0x378)||!_0x3f90c9[_0x3bf1c1(0x186)])return[];let _0x4f09fb=(_0x262e5d=_0x12999f[_0x3bf1c1(0x41c)][_0x45b6b7['id']])==null?void 0x0:_0x262e5d['fields'][_0x3f90c9[_0x3bf1c1(0x186)]],_0x34d0ad=_0x45b6b7[_0x3bf1c1(0x2cb)][_0x3f90c9[_0x3bf1c1(0x186)]];return(_0x4f09fb==null?void 0x0:_0x4f09fb['type'])!==(_0x34d0ad==null?void 0x0:_0x34d0ad['type'])||(_0x4f09fb==null?void 0x0:_0x4f09fb[_0x3bf1c1(0x407)][_0x3bf1c1(0x22e)])!==(_0x34d0ad==null?void 0x0:_0x34d0ad[_0x3bf1c1(0x407)][_0x3bf1c1(0x22e)])?[_0x3f90c9['fieldId']]:[];})):void 0x0,_0x47e6eb=new Set(_0x557d77[_0x233c41(0x98)](_0x120d78=>{const _0x381fc3=_0x233c41;var _0x35de97,_0x326199;return _0x120d78[_0x381fc3(0x37a)]!==_0x381fc3(0x96)||_0x120d78[_0x381fc3(0x24b)]==null||_0x120d78[_0x381fc3(0x3fc)]==null?[]:[JSON['stringify']([(_0x35de97=_0x45b6b7[_0x381fc3(0x2ea)])==null?void 0x0:_0x35de97[_0x120d78[_0x381fc3(0x24b)]],(_0x326199=_0x45b6b7[_0x381fc3(0x18c)])==null?void 0x0:_0x326199[_0x120d78[_0x381fc3(0x3fc)]]])];}));ht(_0x45b6b7,_0x96f789?(_0x1e8288,_0x5a7e7f)=>_0x96f789[_0x233c41(0xb9)](_0x5a7e7f)||_0x47e6eb['has'](JSON[_0x233c41(0x1a0)]([_0x1e8288,_0x5a7e7f])):void 0x0);});},{'invalidations':_0x28338c[_0x210569(0x19b)]}),Ut(_0x39d077,_0x28b964),_0x39d077);}[_0x5670e0(0x210)](_0x5943cc,_0x596403){const _0x45e0c9=_0x5670e0;return _0x23944c[_0x45e0c9(0xeb)][_0x45e0c9(0x31c)](_0x596403,_0x5943cc);}[_0x5670e0(0x23a)](_0xe2c8a5){const _0x6d12c8=_0x5670e0;let _0x271bcb=qt(_0xe2c8a5);return _0x271bcb[_0x6d12c8(0x19b)]?Jt(_0x271bcb[_0x6d12c8(0x98)](_0x3b4dd5=>this['getAffectedRanges'](_0x3b4dd5))):Wt(_0xe2c8a5);}['_getTablesToNormalize'](_0x54dead,_0x3c39b2){const _0x1baa8a=_0x5670e0;let _0x35fbb5=_0x3c39b2[_0x1baa8a(0x364)](_0x1d16e3=>_0x1d16e3[_0x1baa8a(0x37a)]!==_0x1baa8a(0x1f5));return _0x35fbb5[_0x1baa8a(0x19b)]?_0x35fbb5[_0x1baa8a(0x1c1)](_0x45e873=>!_0x45e873[_0x1baa8a(0x1a4)])?Object['values'](_0x54dead['tables']??{}):Array[_0x1baa8a(0x162)](new Set(_0x35fbb5[_0x1baa8a(0x102)](_0x1f8cf2=>_0x1f8cf2[_0x1baa8a(0x1a4)])))['flatMap'](_0x5c56c5=>{const _0x1e900a=_0x1baa8a;var _0x40cc5f;let _0x4c7140=(_0x40cc5f=_0x54dead[_0x1e900a(0x41c)])==null?void 0x0:_0x40cc5f[_0x5c56c5];return _0x4c7140?[_0x4c7140]:[];}):[];}};function Bt(_0x5709fb){const _0x570443=_0x5670e0;let _0x31eb55=_0x5709fb[_0x570443(0x149)];return _0x5709fb['id']!==_0x570443(0x2f8)||typeof _0x31eb55!=_0x570443(0x360)||!_0x31eb55||!(_0x570443(0x39d)in _0x31eb55)||typeof _0x31eb55[_0x570443(0x39d)]!=_0x570443(0x2dc)||!('op'in _0x31eb55)||!Array[_0x570443(0x99)](_0x31eb55['op'])?null:{'unitId':_0x31eb55[_0x570443(0x39d)],'op':_0x31eb55['op']};}function Vt(_0x1bc344,_0x1e08fe){const _0x2899b8=_0x5670e0;if(!_0x1e08fe['length']||_0x1e08fe[_0x2899b8(0x1c1)](_0xd39aac=>_0xd39aac[_0x2899b8(0x37a)]!==_0x2899b8(0x96)))return!0x1;let _0xeebe5b=new Map();for(let _0x3be67 of _0x1e08fe){if(!_0x3be67[_0x2899b8(0x1a4)]||_0x3be67[_0x2899b8(0x24b)]==null||_0x3be67[_0x2899b8(0x3fc)]==null)continue;let _0xcf4f34=_0xeebe5b[_0x2899b8(0x2db)](_0x3be67[_0x2899b8(0x1a4)])??[];_0xcf4f34['push']({'row':_0x3be67[_0x2899b8(0x24b)],'col':_0x3be67['column']}),_0xeebe5b[_0x2899b8(0x2b8)](_0x3be67[_0x2899b8(0x1a4)],_0xcf4f34);}return _0xeebe5b[_0x2899b8(0x143)]((_0x266556,_0x1963cf)=>{const _0x4af57b=_0x2899b8;var _0x13def7;let _0x27f420=(_0x13def7=_0x1bc344[_0x4af57b(0x41c)])==null?void 0x0:_0x13def7[_0x1963cf];_0x27f420&>(_0x27f420,_0x266556);}),!0x0;}function Ht(_0x575ea4,_0x546c4c){const _0x26b9d8=_0x5670e0;let _0x58d063=new Set();return _0x546c4c[_0x26b9d8(0x98)](_0x13dd68=>{const _0x3e7f59=_0x26b9d8;var _0x42304c;if(!_0x13dd68[_0x3e7f59(0x1a4)]||!_0x13dd68[_0x3e7f59(0x191)]||!_0x13dd68[_0x3e7f59(0x186)])return[];let _0x4d4d06=_0x13dd68[_0x3e7f59(0x1a4)]+'\x1f'+_0x13dd68[_0x3e7f59(0x191)]+'\x1f'+_0x13dd68[_0x3e7f59(0x186)];if(_0x58d063[_0x3e7f59(0xb9)](_0x4d4d06))return[];_0x58d063[_0x3e7f59(0x41d)](_0x4d4d06);let _0x53e512=(_0x42304c=_0x575ea4[_0x3e7f59(0x41c)][_0x13dd68[_0x3e7f59(0x1a4)]])==null||(_0x42304c=_0x42304c[_0x3e7f59(0x83)][_0x13dd68['recordId']])==null?void 0x0:_0x42304c['values'];return _0x53e512?[{'tableId':_0x13dd68[_0x3e7f59(0x1a4)],'recordId':_0x13dd68['recordId'],'fieldId':_0x13dd68[_0x3e7f59(0x186)],'exists':Object['prototype'][_0x3e7f59(0x127)][_0x3e7f59(0x321)](_0x53e512,_0x13dd68[_0x3e7f59(0x186)]),'value':_0x53e512[_0x13dd68[_0x3e7f59(0x186)]]}]:[];});}function Ut(_0x417411,_0x1272d4){const _0x38b783=_0x5670e0;_0x1272d4[_0x38b783(0x143)](_0x4603f0=>{const _0x4448fe=_0x38b783;var _0x48957c;let _0x108522=(_0x48957c=_0x417411[_0x4448fe(0x41c)][_0x4603f0[_0x4448fe(0x1a4)]])==null||(_0x48957c=_0x48957c[_0x4448fe(0x83)][_0x4603f0[_0x4448fe(0x191)]])==null?void 0x0:_0x48957c[_0x4448fe(0x1c8)];_0x108522&&(_0x4603f0[_0x4448fe(0x188)]?_0x108522[_0x4603f0[_0x4448fe(0x186)]]=_0x4603f0[_0x4448fe(0x38a)]:delete _0x108522[_0x4603f0[_0x4448fe(0x186)]]);});}function Wt(_0x398342){const _0x16fa28=_0x5670e0;if(!Array['isArray'](_0x398342)||_0x398342[_0x16fa28(0x19b)]<0x2)return[{'tableId':'','reason':_0x16fa28(0xe8)}];let _0x486cb0=_0x398342,_0x1ad8e8=_0x486cb0[_0x16fa28(0x2e8)](_0x16fa28(0x41c));return _0x1ad8e8===-0x1||typeof _0x486cb0[_0x1ad8e8+0x1]!=_0x16fa28(0x2dc)?_0x486cb0[0x0]===_0x16fa28(0x427)?[]:[{'tableId':'','reason':'unknown'}]:Gt(_0x486cb0,_0x1ad8e8,String(_0x486cb0[_0x1ad8e8+0x1]));}function Gt(_0x4c7d71,_0x45218d,_0x3197d4){const _0x4f8bf4=_0x5670e0;let _0x312579=_0x4c7d71[_0x45218d+0x2];return _0x312579===_0x4f8bf4(0x83)&&typeof _0x4c7d71[_0x45218d+0x3]==_0x4f8bf4(0x2dc)?Kt(_0x4c7d71,_0x45218d,_0x3197d4,String(_0x4c7d71[_0x45218d+0x3])):_0x312579===_0x4f8bf4(0x259)&&_0x4c7d71[_0x45218d+0x3]!=null&&_0x4c7d71[_0x45218d+0x4]!=null?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x96),'row':Number(_0x4c7d71[_0x45218d+0x3]),'column':Number(_0x4c7d71[_0x45218d+0x4])}]:_0x312579===_0x4f8bf4(0x2cb)&&typeof _0x4c7d71[_0x45218d+0x3]==_0x4f8bf4(0x2dc)?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x378),'fieldId':String(_0x4c7d71[_0x45218d+0x3])}]:_0x312579===_0x4f8bf4(0x367)?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x378)}]:_0x312579==='recordOrder'?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x1ef)}]:_0x312579===_0x4f8bf4(0x21f)&&typeof _0x4c7d71[_0x45218d+0x3]=='string'?[{'tableId':_0x3197d4,'reason':'view','viewId':String(_0x4c7d71[_0x45218d+0x3])}]:_0x312579===_0x4f8bf4(0x139)?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x1f5)}]:_0x312579==='resources'?[{'tableId':_0x3197d4,'reason':_0x4f8bf4(0x96)}]:[{'tableId':_0x3197d4,'reason':_0x312579===void 0x0?_0x4f8bf4(0x19f):_0x4f8bf4(0xe8)}];}function Kt(_0x4605ab,_0x23e66c,_0xbc607b,_0x29842b){const _0x23bdba=_0x5670e0;return _0x4605ab[_0x23e66c+0x4]===_0x23bdba(0x1c8)&&typeof _0x4605ab[_0x23e66c+0x5]==_0x23bdba(0x2dc)?[{'tableId':_0xbc607b,'reason':_0x23bdba(0x96),'recordId':_0x29842b,'fieldId':String(_0x4605ab[_0x23e66c+0x5])}]:_0x4605ab[_0x23e66c+0x4]===_0x23bdba(0x120)||_0x4605ab[_0x23e66c+0x4]==='updatedBy'?[]:[{'tableId':_0xbc607b,'reason':_0x23bdba(0x1ef),'recordId':_0x29842b}];}function qt(_0x54b7e1){const _0x4398b8=_0x5670e0;if(!Array['isArray'](_0x54b7e1))return[];let _0xd9c9ad=_0x54b7e1['filter'](Array[_0x4398b8(0x99)]);if(_0xd9c9ad[_0x4398b8(0x19b)]>0x1&&_0xd9c9ad['length']===_0x54b7e1[_0x4398b8(0x19b)])return _0xd9c9ad;let _0x2d1e32=_0x54b7e1[_0x4398b8(0x91)](Array[_0x4398b8(0x99)]);if(_0x2d1e32>0x0&&_0x54b7e1[_0x4398b8(0xfa)](_0x2d1e32)[_0x4398b8(0x3f9)](Array[_0x4398b8(0x99)])){let _0x504817=_0x54b7e1[_0x4398b8(0xfa)](0x0,_0x2d1e32);return _0x54b7e1[_0x4398b8(0xfa)](_0x2d1e32)['map'](_0x41f4c9=>[..._0x504817,..._0x41f4c9]);}let _0xdf7c29=_0x54b7e1[_0x4398b8(0x2e8)](_0x4398b8(0x41c));if(_0xdf7c29===-0x1||typeof _0x54b7e1[_0xdf7c29+0x1]!='string')return[];let _0x588883=String(_0x54b7e1[_0xdf7c29+0x1]),_0x4908ce=_0x54b7e1[_0x4398b8(0xfa)](_0xdf7c29+0x2)[_0x4398b8(0x364)](Array[_0x4398b8(0x99)]);return _0x4908ce[_0x4398b8(0x19b)]<=0x1?[]:_0x4908ce[_0x4398b8(0x102)](_0x57e70a=>[_0x4398b8(0x41c),_0x588883,..._0x57e70a]);}function Jt(_0x202f02){const _0x375c34=_0x5670e0;let _0x901fef=new Set();return _0x202f02[_0x375c34(0x364)](_0x5a5a58=>{const _0x49463d=_0x375c34;let _0x401dc6=JSON[_0x49463d(0x1a0)](_0x5a5a58);return!_0x901fef[_0x49463d(0xb9)](_0x401dc6)&&(_0x901fef[_0x49463d(0x41d)](_0x401dc6),!0x0);});}function Yt(_0x13c3b9){const _0x2b1209=_0x5670e0;return _0x4bf94a[_0x2b1209(0x343)](_0x13c3b9);}function Xt(_0xc8030c,_0x346347){const _0x295c98=_0x5670e0;let _0xcb2d59=Zt(_0x346347);if(!_0xcb2d59[_0x295c98(0x19b)])return Yt(_0xc8030c);let _0x3c6dbc=an(_0xc8030c),_0x342fd2=new Set();for(let _0x38eb64 of _0xcb2d59)en(_0x3c6dbc,_0x38eb64,_0x342fd2);return _0x3c6dbc;}function Zt(_0x7d0bb1){let _0x1fb503=[];return Qt(_0x7d0bb1,[],_0x1fb503),_0x1fb503;}function Qt(_0x106786,_0x4b8cac,_0xe4f46a){const _0x8437de=_0x5670e0;if(!Array['isArray'](_0x106786))return;let _0x235ae3=[];for(let _0x219f52 of _0x106786)Array[_0x8437de(0x99)](_0x219f52)?Qt(_0x219f52,[..._0x4b8cac,..._0x235ae3],_0xe4f46a):$t(_0x219f52)?_0xe4f46a[_0x8437de(0x393)]([..._0x4b8cac,..._0x235ae3]):(typeof _0x219f52=='string'||typeof _0x219f52=='number')&&_0x235ae3[_0x8437de(0x393)](_0x219f52);}function $t(_0x496360){const _0x432398=_0x5670e0;if(!_0x496360||typeof _0x496360!='object'||Array['isArray'](_0x496360))return!0x1;let _0x3cd361=_0x496360;return'i'in _0x3cd361||'r'in _0x3cd361||'p'in _0x3cd361||'d'in _0x3cd361||'es'in _0x3cd361||_0x432398(0x3be)in _0x3cd361||'et'in _0x3cd361;}function en(_0xf0fff6,_0x29741f,_0x3f75a8){const _0x8c5048=_0x5670e0;let _0xf7fe6c=_0xf0fff6,_0x3ed207=[];for(let _0x334461=0x0;_0x334461<_0x29741f[_0x8c5048(0x19b)]-0x1;_0x334461++){let _0x361668=_0x29741f[_0x334461];_0x3ed207['push'](_0x361668);let _0x31173c=tn(_0xf7fe6c,_0x361668);if(!rn(_0x31173c))return;let _0x4aa6e8=JSON[_0x8c5048(0x1a0)](_0x3ed207);_0x3f75a8[_0x8c5048(0xb9)](_0x4aa6e8)||(nn(_0xf7fe6c,_0x361668,an(_0x31173c)),_0x3f75a8[_0x8c5048(0x41d)](_0x4aa6e8));let _0x5d360b=tn(_0xf7fe6c,_0x361668);if(!rn(_0x5d360b))return;_0xf7fe6c=_0x5d360b;}}function tn(_0x4f226f,_0x3a4874){const _0x58549a=_0x5670e0;return Array[_0x58549a(0x99)](_0x4f226f)?typeof _0x3a4874==_0x58549a(0x174)?_0x4f226f[_0x3a4874]:void 0x0:Reflect[_0x58549a(0x2db)](_0x4f226f,_0x3a4874);}function nn(_0x2905b0,_0x23c071,_0x45dffa){const _0x5df6b8=_0x5670e0;Array['isArray'](_0x2905b0)?typeof _0x23c071=='number'&&(_0x2905b0[_0x23c071]=_0x45dffa):Reflect[_0x5df6b8(0x2b8)](_0x2905b0,_0x23c071,_0x45dffa);}function rn(_0x297163){const _0x47bcee=_0x5670e0;return!!_0x297163&&typeof _0x297163==_0x47bcee(0x360);}function an(_0x348ad6){const _0x1b1bf2=_0x5670e0;return Array[_0x1b1bf2(0x99)](_0x348ad6)?_0x348ad6[_0x1b1bf2(0xfa)]():{..._0x348ad6};}const on=_0x5670e0(0x2b4),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x5670e0(0x3eb),'yyyy-mm-dd':_0x5670e0(0x3c9),'mm-dd':'MM-DD','mm/dd/yyyy':_0x5670e0(0x3c7),'dd/mm/yyyy':_0x5670e0(0x290),'mmm\x20d,\x20yyyy':_0x5670e0(0x421)};function B(_0xbd0065,_0x91c736=_0x4e0c74[_0x5670e0(0x309)]){const _0x30fcbd=_0x5670e0;let _0x115eb7=_0x225fb2(_0xbd0065)[_0x30fcbd(0x1f3)]();return _0x3bf7f8(new Date(_0x115eb7),_0x91c736);}function ln(_0xabf9d8,_0x8b8032=_0x4e0c74[_0x5670e0(0x309)]){const _0x30fed9=_0x5670e0;return _0x3f3713(_0xabf9d8,_0x8b8032)[_0x30fed9(0x382)]();}function un(_0x54e19f,_0x289780=_0x4e0c74['Date1900']){const _0x2717fe=_0x5670e0;if(_0x54e19f==null||_0x54e19f==='')return null;if(_0x54e19f instanceof Date)return B(_0x54e19f,_0x289780);if(typeof _0x54e19f==_0x2717fe(0x174))return Number[_0x2717fe(0x154)](_0x54e19f)?_0x54e19f>0xf4240?B(_0x54e19f,_0x289780):_0x54e19f:null;let _0x9069ae=Date['parse'](String(_0x54e19f));return Number[_0x2717fe(0x2ca)](_0x9069ae)?null:B(_0x9069ae,_0x289780);}function dn(_0x2a6943,_0xeaa6e3=_0x4e0c74['Date1900']){let _0x25ea2b=un(_0x2a6943,_0xeaa6e3);return _0x25ea2b==null?null:ln(_0x25ea2b,_0xeaa6e3);}function fn(_0x5ae1ee={}){const _0x294a01=_0x5670e0;let _0x310974=String(_0x5ae1ee['pattern']??_0x5ae1ee[_0x294a01(0x2b6)]??_0x5ae1ee[_0x294a01(0x395)]??on)[_0x294a01(0x12d)]()||on,_0x4fd635=sn['test'](_0x310974);return{'pattern':_0x310974[_0x294a01(0xf2)](sn,'')||on,'includeTime':typeof _0x5ae1ee[_0x294a01(0x30b)]==_0x294a01(0x168)?_0x5ae1ee[_0x294a01(0x30b)]:_0x4fd635,'hourCycle':_0x5ae1ee['hourCycle']===_0x294a01(0xcb)?_0x294a01(0xcb):_0x294a01(0x348)};}function pn(_0x34a97e={}){let {format:_0xbc137d,dateFormat:_0x2312a3,..._0x504ad7}=_0x34a97e;return{..._0x504ad7,...fn(_0x34a97e)};}function mn(_0x321292,_0x5e6049={}){const _0x3ba022=_0x5670e0;let _0x2b9353=dn(_0x321292);if(_0x2b9353==null||!Number[_0x3ba022(0x154)](_0x2b9353))return'';let _0x460867=fn(_0x5e6049);return _0x225fb2(_0x2b9353)[_0x3ba022(0x2b6)](hn(_0x460867));}function hn(_0x32e470){const _0x52c35a=_0x5670e0;let {pattern:_0x18b8d5,includeTime:_0x3fea86,hourCycle:_0xea8301}=_0x32e470,_0x276531=cn[_0x18b8d5]??cn[on];return _0x3fea86?_0x276531+'\x20'+(_0xea8301===_0x52c35a(0xcb)?_0x52c35a(0x3c4):'HH:mm'):_0x276531;}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([_0x4fe15f[_0x5670e0(0x300)]]);function vn(_0x3ada56){const _0x4e4a35=_0x5670e0;switch(_0x3ada56){case _0x4fe15f[_0x4e4a35(0x27d)]:case _0x4fe15f[_0x4e4a35(0x115)]:case _0x4fe15f[_0x4e4a35(0x2b0)]:case _0x4fe15f[_0x4e4a35(0x1ae)]:return[_0x4d7aa6['IS'],_0x4d7aa6[_0x4e4a35(0xf4)],_0x4d7aa6['GREATER_THAN'],_0x4d7aa6[_0x4e4a35(0x1a3)],_0x4d7aa6[_0x4e4a35(0x2fe)],_0x4d7aa6['IS_NOT_EMPTY']];case _0x4fe15f[_0x4e4a35(0x1cc)]:case _0x4fe15f[_0x4e4a35(0x121)]:case _0x4fe15f[_0x4e4a35(0x236)]:return[_0x4d7aa6['IS'],_0x4d7aa6[_0x4e4a35(0xf4)],_0x4d7aa6[_0x4e4a35(0x35f)],_0x4d7aa6[_0x4e4a35(0xa2)],_0x4d7aa6[_0x4e4a35(0x2fe)],_0x4d7aa6[_0x4e4a35(0x180)]];case _0x4fe15f[_0x4e4a35(0x1f2)]:return[_0x4d7aa6['IS'],_0x4d7aa6[_0x4e4a35(0xf4)]];default:return[_0x4d7aa6['IS'],_0x4d7aa6[_0x4e4a35(0xf4)],_0x4d7aa6['CONTAINS'],_0x4d7aa6['NOT_CONTAINS'],_0x4d7aa6[_0x4e4a35(0x2fe)],_0x4d7aa6[_0x4e4a35(0x180)]];}}function yn(_0x588e4b){const _0x198419=_0x5670e0;return _0x588e4b===_0x4fe15f['Date']||_0x588e4b===_0x4fe15f[_0x198419(0x121)]||_0x588e4b===_0x4fe15f['UpdatedAt'];}function bn(_0x2311d9,_0x2ba1fa){const _0xa7ab9a=_0x5670e0;return _0x2311d9==null&&_0x2ba1fa==null?0x0:_0x2311d9==null?-0x1:_0x2ba1fa==null?0x1:typeof _0x2311d9==_0xa7ab9a(0x174)&&typeof _0x2ba1fa=='number'?_0x2311d9-_0x2ba1fa:String(_0x2311d9)[_0xa7ab9a(0x135)](String(_0x2ba1fa));}function xn(_0x1ed82d,_0x5e864a,_0x2decb,_0xefd6e7,_0x2ef4c3={}){const _0x2a4805=_0x5670e0;if(_0x5e864a===_0x2a4805(0x12b))return Sn(_0x1ed82d);if(_0x5e864a===_0x2a4805(0x288))return!Sn(_0x1ed82d);switch(_0xefd6e7[_0x2a4805(0xeb)]){case _0x4fe15f[_0x2a4805(0x27d)]:case _0x4fe15f[_0x2a4805(0x115)]:case _0x4fe15f[_0x2a4805(0x2b0)]:case _0x4fe15f[_0x2a4805(0x1ae)]:return Cn(_0x1ed82d,_0x5e864a,_0x2decb);case _0x4fe15f[_0x2a4805(0x1cc)]:case _0x4fe15f[_0x2a4805(0x121)]:case _0x4fe15f['UpdatedAt']:return Tn(_0x1ed82d,_0x5e864a,_0x2decb,_0x2ef4c3);case _0x4fe15f[_0x2a4805(0x1f2)]:return jn(_0x1ed82d,_0x5e864a,_0x2decb);case _0x4fe15f[_0x2a4805(0x1dd)]:case _0x4fe15f[_0x2a4805(0x8b)]:case _0x4fe15f[_0x2a4805(0x36c)]:case _0x4fe15f['Group']:return Nn(_0x1ed82d,_0x5e864a,_0x2decb,_0xefd6e7);default:return Pn(_0x1ed82d,_0x5e864a,_0x2decb);}}function Sn(_0x3312e5){const _0x68b3e9=_0x5670e0;return _0x3312e5==null?!0x0:Array['isArray'](_0x3312e5)?_0x3312e5['length']===0x0:typeof _0x3312e5==_0x68b3e9(0x2dc)&&_0x3312e5[_0x68b3e9(0x12d)]()==='';}function Cn(_0x572419,_0x187e8a,_0x145502){const _0x4f80fa=_0x5670e0;let _0x104f8a=wn(_0x572419),_0x3ffa54=wn(_0x145502);if(_0x104f8a==null||_0x3ffa54==null)return!0x1;switch(_0x187e8a){case'is':return _0x104f8a===_0x3ffa54;case _0x4f80fa(0x409):return _0x104f8a!==_0x3ffa54;case _0x4f80fa(0x2ff):return _0x104f8a>_0x3ffa54;case _0x4f80fa(0x266):return _0x104f8a>=_0x3ffa54;case _0x4f80fa(0x175):return _0x104f8a<_0x3ffa54;case _0x4f80fa(0x1fd):return _0x104f8a<=_0x3ffa54;default:return!0x1;}}function wn(_0x19b542){if(_0x19b542==null||_0x19b542==='')return null;let _0xc9c4c0=Number(_0x19b542);return Number['isFinite'](_0xc9c4c0)?_0xc9c4c0:null;}function Tn(_0x465909,_0x37ccc1,_0x2d1da6,_0x2042de){const _0xf39694=_0x5670e0;let _0x537722=Dn(_0x465909);if(_0x537722==null)return!0x1;let _0x440eb9=En(_0x2042de[_0xf39694(0xbe)]??_0x511cc3[_0xf39694(0x394)],_0x2d1da6,_0x2042de['now']);if(!_0x440eb9)return!0x1;switch(_0x37ccc1){case _0x4d7aa6['IS']:return _0x537722>=_0x440eb9[_0xf39694(0x1de)]&&_0x537722<=_0x440eb9[_0xf39694(0x92)];case _0x4d7aa6[_0xf39694(0xf4)]:return _0x537722<_0x440eb9[_0xf39694(0x1de)]||_0x537722>_0x440eb9[_0xf39694(0x92)];case _0x4d7aa6[_0xf39694(0x35f)]:return _0x537722<_0x440eb9[_0xf39694(0x1de)];case _0x4d7aa6[_0xf39694(0xa2)]:return _0x537722>_0x440eb9['end'];default:return!0x1;}}function En(_0x5296dc,_0x4b2cd4,_0x22a41a=Date[_0x5670e0(0x2b3)]()){const _0x3a83e9=_0x5670e0;let _0x39b01a=On(_0x22a41a);switch(_0x5296dc){case _0x511cc3[_0x3a83e9(0x394)]:{let _0x3a2d7b=Dn(_0x4b2cd4);return _0x3a2d7b==null?null:V(_0x3a2d7b,0x0,0x1);}case _0x511cc3[_0x3a83e9(0x18e)]:return V(_0x39b01a,0x0,0x1);case _0x511cc3[_0x3a83e9(0x150)]:return V(_0x39b01a,0x1,0x1);case _0x511cc3[_0x3a83e9(0x31f)]:return V(_0x39b01a,-0x1,0x1);case _0x511cc3[_0x3a83e9(0x2c3)]:return kn(_0x39b01a,0x0);case _0x511cc3[_0x3a83e9(0x14b)]:return kn(_0x39b01a,-0x1);case _0x511cc3[_0x3a83e9(0x12c)]:return An(_0x39b01a,0x0);case _0x511cc3[_0x3a83e9(0x21e)]:return An(_0x39b01a,-0x1);case _0x511cc3[_0x3a83e9(0x28d)]:return V(_0x39b01a,-0x6,0x7);case _0x511cc3[_0x3a83e9(0xe9)]:return V(_0x39b01a,0x0,0x7);case _0x511cc3[_0x3a83e9(0x171)]:return V(_0x39b01a,-0x1d,0x1e);case _0x511cc3[_0x3a83e9(0x2c7)]:return V(_0x39b01a,0x0,0x1e);}}function Dn(_0x4b1311){let _0x359781=un(_0x4b1311);return _0x359781==null?null:On(ln(_0x359781));}function On(_0x405e82){const _0x4545ba=_0x5670e0;let _0x2e00fb=new Date(_0x405e82);return _0x2e00fb[_0x4545ba(0x36e)](0x0,0x0,0x0,0x0),_0x2e00fb[_0x4545ba(0x382)]();}function kn(_0x46f07a,_0x45ad75){const _0x4cfebf=_0x5670e0;return V(_0x46f07a,-((new Date(_0x46f07a)[_0x4cfebf(0x273)]()+0x6)%0x7)+_0x45ad75*0x7,0x7);}function V(_0x583551,_0x105c32,_0xd8a445){const _0x22d8cc=_0x5670e0;let _0x4f3c21=_0x225fb2(_0x583551)['add'](_0x105c32,_0x22d8cc(0x1dc));return{'start':_0x4f3c21['valueOf'](),'end':_0x4f3c21['add'](_0xd8a445,'day')[_0x22d8cc(0x1f3)]()-0x1};}function An(_0x278294,_0x5ec94c){const _0xeeed27=_0x5670e0;let _0x1802d3=new Date(_0x278294),_0x37f687=new Date(_0x1802d3[_0xeeed27(0x37e)](),_0x1802d3[_0xeeed27(0x3e1)]()+_0x5ec94c,0x1),_0x2093dd=new Date(_0x1802d3['getFullYear'](),_0x1802d3['getMonth']()+_0x5ec94c+0x1,0x1);return{'start':_0x37f687[_0xeeed27(0x382)](),'end':_0x2093dd[_0xeeed27(0x382)]()-0x1};}function jn(_0x197aed,_0x557702,_0x5dbfb3){const _0x1ffd9f=_0x5670e0;let _0x3a134c=Mn(_0x197aed),_0x3a3954=Mn(_0x5dbfb3);switch(_0x557702){case'is':return _0x3a134c===_0x3a3954;case _0x1ffd9f(0x409):return _0x3a134c!==_0x3a3954;default:return!0x1;}}function Mn(_0x37eb91){const _0x27346e=_0x5670e0;return _0x37eb91===!0x0||_0x37eb91===_0x27346e(0x1ad)||_0x37eb91===0x1||_0x37eb91==='1';}function Nn(_0x4c250f,_0x58b502,_0x1e655c,_0x51cbd6){const _0x32b3f4=_0x5670e0;let _0x1cff12=In(_0x4c250f,_0x51cbd6),_0x26c5ac=In(_0x1e655c,_0x51cbd6),_0x5a7bab=_0x26c5ac['length']>0x0&&_0x26c5ac[_0x32b3f4(0x1c1)](_0x535372=>_0x1cff12[_0x32b3f4(0x173)](_0x535372));switch(_0x58b502){case'is':case'contains':return _0x5a7bab;case _0x32b3f4(0x409):case'notContains':return!_0x5a7bab;default:return!0x1;}}function Pn(_0xf7fabf,_0x3dd97f,_0x5b5637){const _0x3d97d9=_0x5670e0;let _0x50fb04=Fn(_0xf7fabf),_0x3ad1cf=Fn(_0x5b5637);switch(_0x3dd97f){case'is':return _0x50fb04===_0x3ad1cf;case _0x3d97d9(0x409):return _0x50fb04!==_0x3ad1cf;case _0x3d97d9(0x386):return _0x3ad1cf?_0x50fb04[_0x3d97d9(0x173)](_0x3ad1cf):!0x1;case _0x3d97d9(0x42b):return!_0x3ad1cf||!_0x50fb04[_0x3d97d9(0x173)](_0x3ad1cf);default:return!0x1;}}function Fn(_0x13aa80){const _0x5229ce=_0x5670e0;if(Array['isArray'](_0x13aa80))return _0x13aa80[_0x5229ce(0x102)](_0x23e9a4=>Fn(_0x23e9a4))[_0x5229ce(0x3d6)]('\x0a');if(_0x13aa80&&typeof _0x13aa80==_0x5229ce(0x360)){let _0x727db3=_0x13aa80;return String(_0x727db3[_0x5229ce(0x26f)]??_0x727db3[_0x5229ce(0x2e6)]??_0x727db3[_0x5229ce(0x277)]??_0x727db3[_0x5229ce(0x38a)]??_0x727db3['id']??'')['trim']()[_0x5229ce(0x374)]();}return String(_0x13aa80??'')[_0x5229ce(0x12d)]()[_0x5229ce(0x374)]();}function In(_0x4578c9,_0x3beebc){const _0x497436=_0x5670e0;let _0x41de37=Ln(_0x4578c9),_0x27d252=Rn(_0x3beebc[_0x497436(0x407)]??{});return _0x41de37[_0x497436(0x98)](_0x41977d=>_0x27d252['get'](_0x41977d)??[_0x41977d])[_0x497436(0x364)]((_0x353601,_0x535ba2,_0x84834)=>_0x353601!==''&&_0x84834[_0x497436(0x2e8)](_0x353601)===_0x535ba2);}function Ln(_0x1bd268){const _0x1ddff8=_0x5670e0;if(_0x1bd268==null||_0x1bd268==='')return[];if(Array['isArray'](_0x1bd268))return _0x1bd268['flatMap'](_0x53b2dc=>Ln(_0x53b2dc));if(_0x1bd268&&typeof _0x1bd268==_0x1ddff8(0x360)){let _0x3f1b38=_0x1bd268;return['id',_0x1ddff8(0x26f),_0x1ddff8(0x2e6),'value',_0x1ddff8(0x277)][_0x1ddff8(0x98)](_0x54a247=>Ln(_0x3f1b38[_0x54a247]))[_0x1ddff8(0x364)]((_0x2afce6,_0x5bf944,_0x9dac27)=>_0x9dac27[_0x1ddff8(0x2e8)](_0x2afce6)===_0x5bf944);}return[Fn(_0x1bd268)];}function Rn(_0x148ac7){const _0x395cda=_0x5670e0;let _0x27ae06=new Map();return(Array['isArray'](_0x148ac7[_0x395cda(0x212)])?_0x148ac7['options']:[])[_0x395cda(0x143)](_0x4ac927=>{const _0x5032b8=_0x395cda;if(!_0x4ac927||typeof _0x4ac927!='object')return;let _0x5c713d=Ln(_0x4ac927),_0x57e959=_0x5c713d[_0x5032b8(0x364)]((_0x586d82,_0x2a560e)=>_0x586d82!==''&&_0x5c713d[_0x5032b8(0x2e8)](_0x586d82)===_0x2a560e);_0x57e959[_0x5032b8(0x143)](_0x1d77ac=>_0x27ae06[_0x5032b8(0x2b8)](_0x1d77ac,_0x57e959));}),_0x27ae06;}function H(_0x398c30,_0x4d856c={},_0x206995=_0x45e44e=>_0x45e44e,_0x3c03ba={}){const _0x2beae8=_0x5670e0;let _0xa02c21=!_n['has'](_0x398c30),_0x885016=_0x206995??(_0x5321f1=>_0x5321f1);return{'type':_0x398c30,'i18nKey':_0x2beae8(0x3e3)+_0x398c30,'enabled':_0xa02c21,'visibleInCreateMenu':_0xa02c21,'createDefaultConfig':_0x3c03ba[_0x2beae8(0xe4)]??(()=>({})),'createDefaultValue':_0x3c03ba['createDefaultValue']??(_0x5e0a5d=>_0x5e0a5d[_0x2beae8(0x41a)]??null),'normalize':(_0x5212b8,_0x48a665)=>_0x885016(_0x5212b8,_0x48a665),'validate':(_0x4d7510,_0x349f8a)=>{var _0xa3bc38;return _0xa02c21?((_0xa3bc38=_0x3c03ba['validate'])==null?void 0x0:_0xa3bc38['call'](_0x3c03ba,_0x4d7510,_0x349f8a))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x3cfe29,_0x5acf5f)=>bn(_0x3cfe29,_0x5acf5f),'filter':(_0x4a8693,_0x2da82e,_0x10db12,_0x16ad04)=>xn(_0x4a8693,_0x2da82e,_0x10db12,_0x16ad04),'toPlainText':_0x3c03ba['toPlainText']??(_0xdd4749=>_0xdd4749==null?'':String(_0xdd4749)),'fromPlainText':_0x3c03ba['fromPlainText']??(_0x120428=>_0x885016(_0x120428,{'id':'','name':'','type':_0x398c30,'config':{}})),'getCapabilities':()=>({...gn,..._0x4d856c,'editable':_0xa02c21&&(_0x4d856c[_0x2beae8(0x172)]??gn['editable'])})};}function zn(){const _0x1f264d=_0x5670e0;return[H(_0x4fe15f[_0x1f264d(0x3fb)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1f264d(0x8d)}),'createDefaultValue':_0x27c4a7=>_0x27c4a7[_0x1f264d(0x41a)]??''}),H(_0x4fe15f[_0x1f264d(0x1dd)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x4e2034=>_0x4e2034==null||_0x4e2034===''?null:String(_0x4e2034),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}})}),H(_0x4fe15f[_0x1f264d(0x8b)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x34e158=>Array['isArray'](_0x34e158)?_0x34e158['map'](String):_0x34e158==null?[]:[String(_0x34e158)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1f264d(0x160)}}),'createDefaultValue':_0x30a6cc=>_0x30a6cc[_0x1f264d(0x41a)]??[]}),H(_0x4fe15f['Person'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1f264d(0x1b3)}),'validate':Gn}),H(_0x4fe15f[_0x1f264d(0x29d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':'group'}),'createDefaultValue':_0x4282e8=>_0x4282e8['defaultValue']??[],'validate':Kn}),H(_0x4fe15f[_0x1f264d(0x1cc)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x22a3da=>un(_0x22a3da),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x4fe15f[_0x1f264d(0x134)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x285275=>_0x285275==null?[]:Array[_0x1f264d(0x99)](_0x285275)?_0x285275:[_0x285275],{'createDefaultValue':_0x5927d5=>_0x5927d5[_0x1f264d(0x41a)]??[]}),H(_0x4fe15f[_0x1f264d(0x27d)],{},_0x5be2b1=>_0x5be2b1==null||_0x5be2b1===''?null:Number(_0x5be2b1),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x4fe15f['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x2c46aa=>_0x2c46aa===!0x0||_0x2c46aa===_0x1f264d(0x1ad)||_0x2c46aa===0x1||_0x2c46aa==='1',{'createDefaultConfig':()=>({'icon':_0x1f264d(0x25c),'color':_0x1f264d(0x234)}),'createDefaultValue':_0x3bf662=>_0x3bf662[_0x1f264d(0x41a)]??!0x1,'validate':_0x10106c=>typeof _0x10106c=='boolean'?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1f264d(0xb3)}}),H(_0x4fe15f[_0x1f264d(0x399)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x1f264d(0x224)}),'toPlainText':_0x1a3b48=>Zn(_0x1a3b48),'fromPlainText':_0x4e201c=>Xn(_0x4e201c)}),H(_0x4fe15f[_0x1f264d(0x3a5)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x1f264d(0x3f8),'pattern':_0x1f264d(0xc4)}}),'createDefaultValue':()=>null}),H(_0x4fe15f['Numbering'],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x1f264d(0x278)}),'createDefaultValue':()=>null}),H(_0x4fe15f[_0x1f264d(0x2e9)],{'usableAsTitle':!0x0},_0x2671ae=>_0x2671ae==null?null:String(_0x2671ae)['trim'](),{'validate':_0x615a61=>_0x615a61==null||_0x615a61===''||/^\+?[0-9 ()-]{6,20}$/['test'](String(_0x615a61))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x4fe15f[_0x1f264d(0x18f)],{'usableAsTitle':!0x0},_0x4c5ef2=>_0x4c5ef2==null?null:String(_0x4c5ef2)['trim'](),{'validate':_0x2f7c5d=>_0x2f7c5d==null||_0x2f7c5d===''||$n(String(_0x2f7c5d))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20email\x20value.'}}),H(_0x4fe15f[_0x1f264d(0x2b0)],{'usableAsGanttProgress':!0x0},_0x5a8da6=>_0x5a8da6==null||_0x5a8da6===''?null:Number(_0x5a8da6),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1f264d(0x3ee),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x33c4bd,_0x39c062)=>Yn(_0x33c4bd,_0x39c062,_0x1f264d(0x24d))}),H(_0x4fe15f[_0x1f264d(0x115)],{},_0x1a0f3a=>_0x1a0f3a==null||_0x1a0f3a===''?null:Number(_0x1a0f3a),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x4fe15f[_0x1f264d(0x1ae)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x333179=>_0x333179==null||_0x333179===''?null:Number(_0x333179),{'createDefaultConfig':()=>({'icon':_0x1f264d(0x39c),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x463923,_0x2d40a3)=>Yn(_0x463923,_0x2d40a3,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x4fe15f[_0x1f264d(0x36f)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x37c818,_0x3d80b5)=>ze(_0x37c818,_0x3d80b5[_0x1f264d(0x407)]['multiple']===!0x0)}),H(_0x4fe15f[_0x1f264d(0x300)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x4fe15f['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x5b7995=>_0x5b7995==null?null:String(_0x5b7995),{'createDefaultConfig':()=>({'provider':_0x1f264d(0x349)}),'createDefaultValue':()=>null}),H(_0x4fe15f['UpdatedBy'],{'editable':!0x1,'groupable':!0x0},_0xea035e=>_0xea035e==null?null:String(_0xea035e),{'createDefaultConfig':()=>({'provider':_0x1f264d(0x349)}),'createDefaultValue':()=>null}),H(_0x4fe15f[_0x1f264d(0x121)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x20195b=>un(_0x20195b),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x4fe15f[_0x1f264d(0x236)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x3bb099=>un(_0x3bb099),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x1b32ac=_0x5670e0;return{'pattern':_0x1b32ac(0x93),'decimalPlaces':0x2,'separatorStyle':'local','useThousands':!0x0,'abbreviation':'none','allowNegative':!0x0};}function Vn(){const _0x365e94=_0x5670e0;return{'locale':_0x365e94(0x313),'pattern':_0x365e94(0x2b4),'includeTime':!0x1,'hourCycle':_0x365e94(0x348),'defaultMode':_0x365e94(0x331)};}function Hn(_0x494f94){const _0x4637f6=_0x5670e0;return _0x494f94==null||_0x494f94===''?[]:Array[_0x4637f6(0x99)](_0x494f94)?_0x494f94[_0x4637f6(0x102)](String):[String(_0x494f94)];}function Un(_0x57795f){return typeof _0x57795f=='string'?_0x57795f:'';}function Wn(_0x59428d,_0x4cb081){const _0x531f94=_0x5670e0;return _0x59428d==null||_0x59428d===''?_0x4cb081[_0x531f94(0x407)][_0x531f94(0x22e)]===!0x0?[]:null:_0x4cb081[_0x531f94(0x407)]['allowMultiple']===!0x0?Array[_0x531f94(0x99)](_0x59428d)?_0x59428d[_0x531f94(0x102)](String):[String(_0x59428d)]:Array[_0x531f94(0x99)](_0x59428d)?String(_0x59428d[0x0]??'')||null:String(_0x59428d);}function Gn(_0x10ea61,_0x2ba2f7){const _0x156e57=_0x5670e0;return _0x2ba2f7[_0x156e57(0x407)]['allowMultiple']===!0x0?Kn(_0x10ea61):_0x10ea61==null||_0x10ea61===''||typeof _0x10ea61==_0x156e57(0x2dc)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x156e57(0x21b)};}function Kn(_0x552e7d){const _0x992691=_0x5670e0;return _0x552e7d==null||Array[_0x992691(0x99)](_0x552e7d)&&_0x552e7d[_0x992691(0x3f9)](_0x269fa4=>typeof _0x269fa4=='string')?{'valid':!0x0}:{'valid':!0x1,'reason':_0x992691(0x137)};}function qn(_0x214f1d){const _0x20062d=_0x5670e0;return _0x214f1d==null||typeof _0x214f1d==_0x20062d(0x174)&&Number['isFinite'](_0x214f1d)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x20062d(0x206)};}function Jn(_0x1c6e84,_0x1a52e3){const _0x4efd93=_0x5670e0;return _0x1c6e84==null||_0x1c6e84===''?{'valid':!0x0}:typeof _0x1c6e84!=_0x4efd93(0x174)||!Number['isFinite'](_0x1c6e84)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x1a52e3[_0x4efd93(0x407)][_0x4efd93(0x8e)]===!0x1&&_0x1c6e84<0x0?{'valid':!0x1,'reason':_0x4efd93(0x222)}:{'valid':!0x0};}function Yn(_0x1c7c41,_0x22efba,_0x3c213c){const _0xf0e9e9=_0x5670e0;let _0x75dce0=Jn(_0x1c7c41,_0x22efba);if(!_0x75dce0[_0xf0e9e9(0x246)]||_0x1c7c41==null||_0x1c7c41==='')return _0x75dce0;let _0x2961d9=Number(_0x22efba['config'][_0xf0e9e9(0x3a1)]??_0x22efba[_0xf0e9e9(0x407)]['start']??0x0),_0x2ff078=Number(_0x22efba[_0xf0e9e9(0x407)][_0xf0e9e9(0x272)]??_0x22efba[_0xf0e9e9(0x407)]['end']??0x64),_0x19cc24=Number(_0x1c7c41);return _0x19cc24>=_0x2961d9&&_0x19cc24<=_0x2ff078?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3c213c};}function Xn(_0x565ad2){const _0x1bb32e=_0x5670e0;if(_0x565ad2==null||_0x565ad2==='')return null;if(typeof _0x565ad2=='object'&&!Array[_0x1bb32e(0x99)](_0x565ad2)){let _0x51d6b3=_0x565ad2,_0x1bf88f=typeof _0x51d6b3[_0x1bb32e(0x277)]==_0x1bb32e(0x2dc)?_0x51d6b3[_0x1bb32e(0x277)][_0x1bb32e(0x12d)]():'',_0x2a5c19=typeof _0x51d6b3[_0x1bb32e(0x33c)]==_0x1bb32e(0x2dc)?_0x51d6b3[_0x1bb32e(0x33c)][_0x1bb32e(0x12d)]():'',_0x24d7e6=Qn(_0x2a5c19||_0x1bf88f);return _0x24d7e6?{'text':_0x1bf88f||_0x2a5c19||_0x24d7e6,'url':_0x24d7e6}:null;}let _0x1856a8=String(_0x565ad2)[_0x1bb32e(0x12d)](),_0x26b013=Qn(_0x1856a8);return _0x26b013?{'text':_0x1856a8,'url':_0x26b013}:null;}function Zn(_0xdcd46b){const _0x147703=_0x5670e0;if(_0xdcd46b==null)return'';if(typeof _0xdcd46b==_0x147703(0x360)&&!Array['isArray'](_0xdcd46b)){let _0x651d0e=_0xdcd46b;return String(_0x651d0e[_0x147703(0x277)]||_0x651d0e[_0x147703(0x33c)]||'');}return String(_0xdcd46b);}function Qn(_0x127b15){const _0x598c72=_0x5670e0;let _0x32aa45=_0x127b15[_0x598c72(0x12d)]();if(!_0x32aa45)return'';let _0x31f87d=/^[a-z][a-z\d+.-]*:/i[_0x598c72(0x106)](_0x32aa45)?_0x32aa45:_0x32aa45[_0x598c72(0xb5)]('//')?'https:'+_0x32aa45:_0x598c72(0x122)+_0x32aa45;try{let _0x3150bc=new URL(_0x31f87d);return _0x3150bc['protocol']===_0x598c72(0x356)||_0x3150bc[_0x598c72(0x2c2)]==='https:'?_0x3150bc[_0x598c72(0x235)]:'';}catch{return'';}}function $n(_0x13336a){const _0x427274=_0x5670e0;let _0x2dd468=_0x13336a['indexOf']('@');if(_0x2dd468<=0x0||_0x2dd468!==_0x13336a[_0x427274(0x1d1)]('@'))return!0x1;let _0x376319=_0x13336a['slice'](_0x2dd468+0x1);return _0x376319[_0x427274(0x173)]('.')&&!_0x13336a[_0x427274(0x173)]('\x20')&&!_0x376319[_0x427274(0xb5)]('.')&&!_0x376319['endsWith']('.');}const U={'table':_0x4baf53=>[_0x5670e0(0x41c),_0x4baf53],'field':(_0x1a64ce,_0x25133d)=>[_0x5670e0(0x41c),_0x1a64ce,_0x5670e0(0x2cb),_0x25133d],'fieldOrder':(_0x3a4b50,_0x305940)=>[_0x5670e0(0x41c),_0x3a4b50,_0x5670e0(0x367),_0x305940],'record':(_0x3aad52,_0x1a2f38)=>['tables',_0x3aad52,_0x5670e0(0x83),_0x1a2f38],'cell':(_0x347683,_0xdb8a82,_0x2e21f1)=>['tables',_0x347683,_0x5670e0(0x83),_0xdb8a82,_0x5670e0(0x1c8),_0x2e21f1],'cellData':(_0xa3a5d,_0x41124e,_0x4ffd16)=>['tables',_0xa3a5d,'cellData',String(_0x41124e),String(_0x4ffd16)],'attachmentSet':(_0x29a7e1,_0x181fe6)=>[_0x5670e0(0x41c),_0x29a7e1,_0x5670e0(0x184),'attachmentSets',_0x181fe6],'attachment':(_0x452587,_0x43cef0)=>[_0x5670e0(0x41c),_0x452587,_0x5670e0(0x184),_0x5670e0(0x2b9),_0x43cef0],'view':(_0x4dcb77,_0x18fa56)=>[_0x5670e0(0x41c),_0x4dcb77,_0x5670e0(0x21f),_0x18fa56],'viewFieldHidden':(_0x1e55b7,_0x3917f0,_0xfa26e3)=>[_0x5670e0(0x41c),_0x1e55b7,_0x5670e0(0x21f),_0x3917f0,_0x5670e0(0x39e),_0xfa26e3,_0x5670e0(0x21d)]};var W=class{[_0x5670e0(0x25f)](_0x463564,_0x3761e4){const _0xfb57f6=_0x5670e0;let _0x24e525=this[_0xfb57f6(0x24e)](_0x463564,_0x463564[_0xfb57f6(0x26f)],_0x3761e4);return R([this[_0xfb57f6(0x193)]([_0xfb57f6(0x26f)],_0x463564[_0xfb57f6(0x26f)],_0x3761e4),..._0x24e525?[_0x24e525]:[]]);}[_0x5670e0(0x24e)](_0x1294ad,_0x994e5c,_0x17e4fb){const _0x1bd216=_0x5670e0;let _0x9db56f=Object['values'](_0x1294ad[_0x1bd216(0x41c)])[_0x1bd216(0x98)](_0x3fb7b8=>Object[_0x1bd216(0x1c8)](_0x3fb7b8['fields'])[_0x1bd216(0x98)](_0x51721d=>{const _0x485e62=_0x1bd216;var _0x56e483,_0x1f9088;if(_0x51721d[_0x485e62(0xeb)]!==_0x4fe15f[_0x485e62(0x3a5)])return[];let _0x21afbd=String(((_0x56e483=_0x51721d[_0x485e62(0x407)])==null?void 0x0:_0x56e483[_0x485e62(0x23e)])??''),_0x50df98=_0x26fb47(_0x21afbd,_0x994e5c,_0x17e4fb);return _0x50df98===_0x21afbd?[]:[this[_0x485e62(0x193)]([...U[_0x485e62(0x378)](_0x3fb7b8['id'],_0x51721d['id']),_0x485e62(0x407),_0x485e62(0x23e)],(_0x1f9088=_0x51721d[_0x485e62(0x407)])==null?void 0x0:_0x1f9088[_0x485e62(0x23e)],_0x50df98)];}));return _0x9db56f[_0x1bd216(0x19b)]>0x0?R(_0x9db56f):void 0x0;}[_0x5670e0(0x247)](_0x3a8825,_0x2a7714,_0x3099e0=_0x3a8825[_0x5670e0(0x427)]['length']){const _0x3648f8=_0x5670e0;let _0x21086f=_0x45021d(_0x2a7714[_0x3648f8(0x26f)],_0x13e931(_0x3a8825)[_0x3648f8(0x1c8)](),_0x2a7714[_0x3648f8(0x177)]),_0x5c3c58=_0x2a7714[_0x3648f8(0x177)]===_0x21086f?_0x2a7714:{..._0x2a7714,'formulaName':_0x21086f};return R([...this[_0x3648f8(0x2f6)](_0x3a8825),_0x23944c[_0x3648f8(0x3fd)](U[_0x3648f8(0x19f)](_0x2a7714['id']),_0x5c3c58),_0x23944c[_0x3648f8(0x3fd)]([_0x3648f8(0x427),_0x3099e0],_0x2a7714['id'])]);}[_0x5670e0(0x233)](_0x3a77fa,_0x6b472e,_0x558bd2){const _0x23f302=_0x5670e0;let _0x51344e=_0x3a77fa[_0x23f302(0x41c)][_0x6b472e];return R([...this[_0x23f302(0x2f6)](_0x3a77fa),_0x23944c[_0x23f302(0x385)]([...U[_0x23f302(0x19f)](_0x6b472e),'name'],_0x51344e[_0x23f302(0x26f)],_0x558bd2)]);}[_0x5670e0(0x238)](_0x129ecf,_0x5ac889){const _0x32419e=_0x5670e0;let _0x4a77f0=_0x129ecf[_0x32419e(0x41c)][_0x5ac889],_0x4308bc=_0x129ecf['tableOrder'][_0x32419e(0x2e8)](_0x5ac889);return R([...this[_0x32419e(0x2f6)](_0x129ecf,new Set([_0x5ac889])),_0x23944c[_0x32419e(0x2f9)](U[_0x32419e(0x19f)](_0x5ac889),_0x4a77f0),_0x23944c[_0x32419e(0x2f9)](['tableOrder',_0x4308bc],_0x5ac889)]);}[_0x5670e0(0x136)](_0xb9fa46,_0x39f097,_0x1c5e6a){const _0xbb1baf=_0x5670e0;return this[_0xbb1baf(0x253)](_0xb9fa46,_0x39f097,[_0x1c5e6a]);}[_0x5670e0(0x253)](_0x45dd41,_0x43962b,_0x5eb6d5){const _0x8f4758=_0x5670e0;let _0x1ec57f=_0x45dd41[_0x8f4758(0x41c)][_0x43962b],_0x3f7506=_0x5eb6d5[_0x8f4758(0x364)](_0x2345ea=>_0x2345ea&&!_0x1ec57f[_0x8f4758(0x83)][_0x2345ea['id']])[_0x8f4758(0x102)](_0x257bba=>({..._0x257bba,'values':{..._0x257bba[_0x8f4758(0x1c8)],[_0x32decc]:_0x257bba['id']}}));if(!_0x3f7506[_0x8f4758(0x19b)])return _0x23944c[_0x8f4758(0x385)]([...U['table'](_0x43962b),_0x8f4758(0x83)],_0x1ec57f[_0x8f4758(0x83)],_0x1ec57f['records']);let _0x17f64e=new _0x23944c['WriteCursor'](),_0x4cdf7f=[..._0x3f7506][_0x8f4758(0x249)]((_0x3e5043,_0x16e3f5)=>_0x3e5043['id']<_0x16e3f5['id']?-0x1:+(_0x3e5043['id']>_0x16e3f5['id'])),_0x4dcbe4=[...U[_0x8f4758(0x19f)](_0x43962b),_0x8f4758(0x83)];_0x17f64e[_0x8f4758(0xad)](_0x4dcbe4);for(let _0x5f36a1 of _0x4cdf7f)_0x17f64e[_0x8f4758(0x3f5)](_0x5f36a1['id']),_0x17f64e[_0x8f4758(0x365)]('i',_0x5f36a1),_0x17f64e[_0x8f4758(0x17d)]();for(let _0x3ab23e=0x0;_0x3ab23e<_0x4dcbe4[_0x8f4758(0x19b)];_0x3ab23e+=0x1)_0x17f64e[_0x8f4758(0x17d)]();return R([_0x17f64e[_0x8f4758(0x2db)](),this['_createRecordOrderOp'](_0x45dd41,_0x43962b,_0x3f7506)]);}['deleteRecord'](_0x4acad0,_0x1b101b,_0x1df3c9){const _0x4e5d16=_0x5670e0;return this[_0x4e5d16(0x293)](_0x4acad0,_0x1b101b,[_0x1df3c9]);}[_0x5670e0(0x293)](_0x24000e,_0x38727f,_0x1ffd62){const _0x2f4682=_0x5670e0;let _0x42f5d7=_0x24000e[_0x2f4682(0x41c)][_0x38727f],_0x571096=Array[_0x2f4682(0x162)](new Set(_0x1ffd62))['filter'](_0x9759b2=>_0x42f5d7[_0x2f4682(0x83)][_0x9759b2]);if(!_0x571096[_0x2f4682(0x19b)])return _0x23944c['replaceOp']([...U['table'](_0x38727f),_0x2f4682(0x83)],_0x42f5d7[_0x2f4682(0x83)],_0x42f5d7['records']);let _0x2ac61e=new Set(_0x571096),_0x3e2d16=et(_0x42f5d7,_0x571096)[_0x2f4682(0x102)](_0x1d3b3d=>this['updateCell'](_0x24000e,_0x38727f,_0x1d3b3d[_0x2f4682(0x191)],_0x1d3b3d['fieldId'],''));return R([this[_0x2f4682(0x40d)](_0x24000e,_0x38727f,_0x571096,_0x2ac61e),..._0x3e2d16]);}[_0x5670e0(0x181)](_0xea853c,_0x326757,_0xe1c779,_0x23035c){const _0x431450=_0x5670e0;let _0x2ea437=_0xea853c[_0x431450(0x41c)][_0xe1c779],_0x33dbdc=Array[_0x431450(0x162)](new Set(_0x23035c))[_0x431450(0x364)](_0x7881f5=>_0x2ea437[_0x431450(0x83)][_0x7881f5]),_0x4f5332=new Set(_0x33dbdc);return R([new z()['invertOp'](_0xea853c,this[_0x431450(0x40d)](_0xea853c,_0xe1c779,_0x33dbdc,_0x4f5332)),...et(_0x2ea437,_0x33dbdc)[_0x431450(0x102)](_0x4835be=>this['updateCell'](_0x326757,_0xe1c779,_0x4835be['recordId'],_0x4835be[_0x431450(0x186)],_0x4835be['oldParentRecordId']??''))]);}['_deleteRecordsBaseOp'](_0x2ace51,_0x44665c,_0x367fed,_0x357a30){const _0x44857b=_0x5670e0;let _0x349245=_0x2ace51[_0x44857b(0x41c)][_0x44665c],_0x4c4b86=_0x367fed[_0x44857b(0x102)](_0x10db34=>{const _0x141c3b=_0x44857b;var _0x99d961;return{'recordId':_0x10db34,'index':((_0x99d961=_0x349245[_0x141c3b(0x411)])==null?void 0x0:_0x99d961[_0x141c3b(0x2e8)](_0x10db34))??-0x1};})[_0x44857b(0x364)](_0x51ffb0=>_0x51ffb0[_0x44857b(0x95)]>=0x0)['sort']((_0xd82906,_0x4d9f85)=>_0x4d9f85[_0x44857b(0x95)]-_0xd82906[_0x44857b(0x95)]);return R([..._0x367fed[_0x44857b(0x102)](_0x20dc08=>_0x23944c[_0x44857b(0x2f9)](U[_0x44857b(0x1ef)](_0x44665c,_0x20dc08),_0x349245[_0x44857b(0x83)][_0x20dc08])),..._0x4c4b86['map'](({recordId:_0x307d54,index:_0x3af724})=>_0x23944c['removeOp']([_0x44857b(0x41c),_0x44665c,'recordOrder',_0x3af724],_0x307d54)),...this[_0x44857b(0x261)](_0x349245,_0x44665c,_0x1bb500=>{const _0xbb6f84=_0x44857b;let _0x300ef4=_0x1bb500[_0xbb6f84(0xfa)](_0x1bb500[_0xbb6f84(0x1d1)]('\x1f')+0x1);return _0x357a30[_0xbb6f84(0xb9)](_0x300ef4);})]);}['duplicateRecord'](_0x31d76e,_0x4286f9,_0x541c49,_0x371ffc){const _0x33aa3d=_0x5670e0;return this[_0x33aa3d(0x136)](_0x31d76e,_0x4286f9,{..._0x371ffc,'values':{..._0x31d76e[_0x33aa3d(0x41c)][_0x4286f9][_0x33aa3d(0x83)][_0x541c49]['values'],..._0x371ffc[_0x33aa3d(0x1c8)],[_0x32decc]:_0x371ffc['id']}});}[_0x5670e0(0x392)](_0x248633,_0x49308c,_0x89bff0,_0x12c3fd){const _0x9e155e=_0x5670e0;let _0x32c942=_0x248633[_0x9e155e(0x41c)][_0x49308c],_0x4922a6=[...U[_0x9e155e(0x1ef)](_0x49308c,_0x89bff0),'orderKey'],_0x30b6f4=Object[_0x9e155e(0x1c8)](_0x32c942[_0x9e155e(0x83)])[_0x9e155e(0x102)](_0x197448=>_0x197448['id']===_0x89bff0?{..._0x197448,'orderKey':_0x12c3fd}:_0x197448)[_0x9e155e(0x249)]((_0x298cd5,_0x4de553)=>String(_0x298cd5[_0x9e155e(0x27b)]??_0x298cd5['id'])['localeCompare'](String(_0x4de553[_0x9e155e(0x27b)]??_0x4de553['id'])))[_0x9e155e(0x102)](_0x3983ff=>_0x3983ff['id']),_0x47fcd3=[...U['table'](_0x49308c),_0x9e155e(0x411)];return R([this[_0x9e155e(0x193)](_0x4922a6,_0x32c942[_0x9e155e(0x83)][_0x89bff0][_0x9e155e(0x27b)],_0x12c3fd),_0x32c942['recordOrder']?_0x23944c['replaceOp'](_0x47fcd3,_0x32c942[_0x9e155e(0x411)],_0x30b6f4):_0x23944c[_0x9e155e(0x3fd)](_0x47fcd3,_0x30b6f4)]);}[_0x5670e0(0x20b)](_0x13aacf,_0x33d1dd,_0x3b7134,_0x18d95b,_0x49d5cb){const _0x8cd1bf=_0x5670e0;var _0x1f29ce,_0x5a7777;let _0x320ca0=_0x13aacf[_0x8cd1bf(0x41c)][_0x33d1dd],_0x530d4d=ar(_0x320ca0,_0x3b7134,_0x18d95b)?_0x320ca0:L(_0x320ca0),_0x300e1f=(_0x1f29ce=_0x530d4d[_0x8cd1bf(0x250)])==null?void 0x0:_0x1f29ce[_0x3b7134],_0x407aa9=(_0x5a7777=_0x530d4d[_0x8cd1bf(0xb6)])==null?void 0x0:_0x5a7777[_0x18d95b];if(_0x300e1f==null||_0x407aa9==null){var _0x2d8a8a;return this[_0x8cd1bf(0x193)](U[_0x8cd1bf(0x96)](_0x33d1dd,_0x3b7134,_0x18d95b),(_0x2d8a8a=_0x13aacf['tables'][_0x33d1dd])==null||(_0x2d8a8a=_0x2d8a8a[_0x8cd1bf(0x83)][_0x3b7134])==null?void 0x0:_0x2d8a8a[_0x8cd1bf(0x1c8)][_0x18d95b],_0x49d5cb);}return this[_0x8cd1bf(0x38b)](_0x13aacf,_0x33d1dd,[{'row':_0x300e1f,'col':_0x407aa9,'value':_0x49d5cb}]);}[_0x5670e0(0xda)](_0x4ed1ac,_0x1c13e4,_0x177a70){const _0x5cb603=_0x5670e0;let _0x52457b=_0x4ed1ac[_0x5cb603(0x41c)][_0x1c13e4],_0x5004e5=_0x177a70[_0x5cb603(0x3f9)](_0x438b3f=>Object[_0x5cb603(0x3ac)](_0x438b3f['values'])[_0x5cb603(0x3f9)](_0x1b9a2b=>ar(_0x52457b,_0x438b3f['recordId'],_0x1b9a2b)))?_0x52457b:L(_0x52457b),_0x55d6dd=_0x177a70[_0x5cb603(0x98)](_0x60a167=>Object[_0x5cb603(0x419)](_0x60a167[_0x5cb603(0x1c8)])[_0x5cb603(0x98)](([_0x1c266c,_0x1d6bf1])=>{const _0x933555=_0x5cb603;var _0x278ccb,_0x1663e7;let _0x5b6496=(_0x278ccb=_0x5004e5['rowIndex'])==null?void 0x0:_0x278ccb[_0x60a167[_0x933555(0x191)]],_0x17c41d=(_0x1663e7=_0x5004e5[_0x933555(0xb6)])==null?void 0x0:_0x1663e7[_0x1c266c];return _0x5b6496==null||_0x17c41d==null?[]:[{'row':_0x5b6496,'col':_0x17c41d,'value':_0x1d6bf1}];})),_0x3a86ec=_0x177a70[_0x5cb603(0x98)](_0x4e9645=>Object[_0x5cb603(0x419)](_0x4e9645['recordPatch']??{})[_0x5cb603(0x102)](([_0x4fb157,_0x392aee])=>{const _0x219f72=_0x5cb603;var _0x3fbcf7;let _0x3c7f9d=[...U[_0x219f72(0x1ef)](_0x1c13e4,_0x4e9645[_0x219f72(0x191)]),_0x4fb157],_0x4a8098=(_0x3fbcf7=_0x4ed1ac[_0x219f72(0x41c)][_0x1c13e4])==null||(_0x3fbcf7=_0x3fbcf7['records'][_0x4e9645[_0x219f72(0x191)]])==null?void 0x0:_0x3fbcf7[_0x4fb157];return this[_0x219f72(0x193)](_0x3c7f9d,_0x4a8098,_0x392aee);}));return R([this[_0x5cb603(0x38b)](_0x4ed1ac,_0x1c13e4,_0x55d6dd),..._0x3a86ec]);}[_0x5670e0(0x38b)](_0x367067,_0x480981,_0xc7f10c){const _0x2120ef=_0x5670e0;let _0x57d103=_0x367067[_0x2120ef(0x41c)][_0x480981],_0xb306f2=_0xc7f10c[_0x2120ef(0x3f9)](_0x4a86a5=>or(_0x57d103,_0x4a86a5[_0x2120ef(0x24b)],_0x4a86a5[_0x2120ef(0x324)]))?_0x57d103:L(_0x57d103),_0x21331f=new Map(),_0x5e2f57=_0xc7f10c['flatMap'](_0x3d1c8f=>{const _0x4fcd8=_0x2120ef;var _0x43deb2,_0x19a9a7,_0x14bfe8,_0x4967ed;let _0x5149e9=(_0x43deb2=_0xb306f2['colId'])==null?void 0x0:_0x43deb2[_0x3d1c8f[_0x4fcd8(0x324)]],_0x465f58=(_0x19a9a7=_0xb306f2[_0x4fcd8(0x2ea)])==null?void 0x0:_0x19a9a7[_0x3d1c8f[_0x4fcd8(0x24b)]],_0xb7ce6a=_0x5149e9?_0xb306f2[_0x4fcd8(0x2cb)][_0x5149e9]:void 0x0;if(_0x5149e9===_0x32decc||(_0xb7ce6a==null?void 0x0:_0xb7ce6a[_0x4fcd8(0xeb)])===_0x4fe15f['RecordId'])throw Error(_0x4fcd8(0x14e));let _0x13af1c=xt(_0x3d1c8f['value'],_0xb7ce6a),_0x1f6feb=(_0x14bfe8=_0xb306f2['cellData'])==null||(_0x14bfe8=_0x14bfe8[_0x3d1c8f[_0x4fcd8(0x24b)]])==null?void 0x0:_0x14bfe8[_0x3d1c8f[_0x4fcd8(0x324)]],_0x7fc116=this[_0x4fcd8(0x193)](U[_0x4fcd8(0x259)](_0x480981,_0x3d1c8f['row'],_0x3d1c8f[_0x4fcd8(0x324)]),_0x1f6feb,_0x13af1c);if(!_0x5149e9||!_0x465f58)return[_0x7fc116];let _0x5d590a=(_0x4967ed=_0xb306f2[_0x4fcd8(0x83)][_0x465f58])==null?void 0x0:_0x4967ed[_0x4fcd8(0x1c8)][_0x5149e9],_0x109802=(_0xb7ce6a==null?void 0x0:_0xb7ce6a[_0x4fcd8(0xeb)])===_0x4fe15f['Attachment']?kt(_0x3d1c8f[_0x4fcd8(0x38a)]):wt(_0x3d1c8f[_0x4fcd8(0x38a)],_0x13af1c,_0xb7ce6a,_0xb306f2,_0x465f58),_0x16d3b6=[_0x7fc116,this[_0x4fcd8(0x193)](U[_0x4fcd8(0x96)](_0x480981,_0x465f58,_0x5149e9),_0x5d590a,_0x109802)];return(_0xb7ce6a==null?void 0x0:_0xb7ce6a[_0x4fcd8(0xeb)])===_0x4fe15f['Attachment']&&_0x21331f[_0x4fcd8(0x2b8)](Et(_0x5149e9,_0x465f58),{'recordId':_0x465f58,'fieldId':_0x5149e9,'attachments':_0x109802}),_0x16d3b6;});return _0x5e2f57[_0x2120ef(0x19b)]?R([..._0x5e2f57,...this[_0x2120ef(0x1e1)](_0xb306f2,_0x480981,Array['from'](_0x21331f[_0x2120ef(0x1c8)]()))]):_0x23944c['replaceOp']([_0x2120ef(0x41c),_0x480981,'cellData'],_0xb306f2[_0x2120ef(0x259)],_0xb306f2[_0x2120ef(0x259)]);}['createField'](_0x21a4ad,_0x5e835d,_0x28e90a){const _0x42ca13=_0x5670e0;let _0x2b1fb0=_0x21a4ad[_0x42ca13(0x41c)][_0x5e835d];if(_0x2b1fb0[_0x42ca13(0x2cb)][_0x28e90a[_0x42ca13(0x378)]['id']]||_0x2b1fb0[_0x42ca13(0x367)][_0x42ca13(0x173)](_0x28e90a[_0x42ca13(0x378)]['id']))return _0x23944c[_0x42ca13(0x385)]([_0x42ca13(0x41c),_0x5e835d,_0x42ca13(0x367)],_0x2b1fb0[_0x42ca13(0x367)],_0x2b1fb0[_0x42ca13(0x367)]);let _0x258923=Math['max'](0x1,_0x28e90a[_0x42ca13(0x95)]??_0x2b1fb0[_0x42ca13(0x367)][_0x42ca13(0x19b)]),_0x1b95e=Object[_0x42ca13(0x1c8)](_0x2b1fb0[_0x42ca13(0x21f)]??{})[_0x42ca13(0x98)](_0x3b6aeb=>{const _0x29946e=_0x42ca13;var _0x3e9dc9;if(!_0x3b6aeb[_0x29946e(0x367)]||_0x3b6aeb[_0x29946e(0x367)]['includes'](_0x28e90a[_0x29946e(0x378)]['id']))return[];let _0x29ba60=ur(((_0x3e9dc9=_0x28e90a[_0x29946e(0x2a9)])==null?void 0x0:_0x3e9dc9[_0x3b6aeb['id']])??_0x258923,_0x3b6aeb[_0x29946e(0x367)][_0x29946e(0x19b)]);return[_0x23944c[_0x29946e(0x3fd)]([...U['view'](_0x5e835d,_0x3b6aeb['id']),_0x29946e(0x367),_0x29ba60],_0x28e90a[_0x29946e(0x378)]['id'])];});return R([..._0x28e90a[_0x42ca13(0x378)][_0x42ca13(0xeb)]===_0x4fe15f['Formula']?this[_0x42ca13(0x2f6)](_0x21a4ad):[],_0x23944c[_0x42ca13(0x3fd)](U[_0x42ca13(0x378)](_0x5e835d,_0x28e90a[_0x42ca13(0x378)]['id']),_0x28e90a['field']),_0x23944c[_0x42ca13(0x3fd)](U[_0x42ca13(0x367)](_0x5e835d,_0x258923),_0x28e90a[_0x42ca13(0x378)]['id']),..._0x1b95e]);}[_0x5670e0(0x116)](_0x5bd383,_0xed0a0d,_0x483d2c,_0x5a9458){const _0x8add38=_0x5670e0;let _0x1ff71b=_0x5bd383[_0x8add38(0x41c)][_0xed0a0d];if(!_0x1ff71b[_0x8add38(0x2cb)][_0x483d2c]||_0x1ff71b[_0x8add38(0x2cb)][_0x5a9458[_0x8add38(0x378)]['id']]||_0x1ff71b[_0x8add38(0x367)]['includes'](_0x5a9458[_0x8add38(0x378)]['id']))return _0x23944c[_0x8add38(0x385)]([_0x8add38(0x41c),_0xed0a0d,_0x8add38(0x367)],_0x1ff71b['fieldOrder'],_0x1ff71b['fieldOrder']);let _0x2a32cf=_0x5a9458['index']??_0x1ff71b['fieldOrder']['indexOf'](_0x483d2c)+0x1,_0x32564d=_0x1ff71b[_0x8add38(0x367)][_0x8add38(0x364)](_0x411a9d=>_0x411a9d!==_0x5a9458[_0x8add38(0x378)]['id']),_0x3c5e5f=cr(_0x32564d,_0x5a9458[_0x8add38(0x378)]['id'],_0x2a32cf),_0x54147f=Object[_0x8add38(0x1c8)](_0x1ff71b['views']??{})['flatMap'](_0x1d68eb=>{const _0x4a3fb5=_0x8add38;var _0x1157a9,_0x144e5a,_0x3794e0,_0x30c283;let _0x25527c=(_0x1157a9=_0x1d68eb['fieldOrder'])!=null&&_0x1157a9[_0x4a3fb5(0x19b)]?_0x1d68eb[_0x4a3fb5(0x367)]:_0x32564d;if(_0x25527c[_0x4a3fb5(0x173)](_0x5a9458[_0x4a3fb5(0x378)]['id']))return[];let _0x3b1413=cr(_0x25527c,_0x5a9458[_0x4a3fb5(0x378)]['id'],((_0x144e5a=_0x5a9458[_0x4a3fb5(0x2a9)])==null?void 0x0:_0x144e5a[_0x1d68eb['id']])??_0x2a32cf),_0xfe15ee=(_0x3794e0=_0x1d68eb[_0x4a3fb5(0x39e)])==null?void 0x0:_0x3794e0[_0x483d2c];return[this[_0x4a3fb5(0x193)]([...U['view'](_0xed0a0d,_0x1d68eb['id']),_0x4a3fb5(0x367)],_0x1d68eb[_0x4a3fb5(0x367)],_0x3b1413),..._0xfe15ee?[this[_0x4a3fb5(0x193)]([...U[_0x4a3fb5(0x1f5)](_0xed0a0d,_0x1d68eb['id']),_0x4a3fb5(0x39e),_0x5a9458[_0x4a3fb5(0x378)]['id']],(_0x30c283=_0x1d68eb['fieldSettings'])==null?void 0x0:_0x30c283[_0x5a9458[_0x4a3fb5(0x378)]['id']],_0xfe15ee)]:[]];}),_0x281a3c=Object[_0x8add38(0x1c8)](_0x1ff71b['records'])[_0x8add38(0x364)](_0x31078d=>Object[_0x8add38(0x159)][_0x8add38(0x127)][_0x8add38(0x321)](_0x31078d[_0x8add38(0x1c8)],_0x483d2c))[_0x8add38(0x102)](_0x55c9e9=>this['_replaceOptional'](U[_0x8add38(0x96)](_0xed0a0d,_0x55c9e9['id'],_0x5a9458[_0x8add38(0x378)]['id']),_0x55c9e9[_0x8add38(0x1c8)][_0x5a9458[_0x8add38(0x378)]['id']],_0x55c9e9[_0x8add38(0x1c8)][_0x483d2c]));return R([..._0x5a9458[_0x8add38(0x378)][_0x8add38(0xeb)]===_0x4fe15f['Formula']?this[_0x8add38(0x2f6)](_0x5bd383):[],_0x23944c[_0x8add38(0x3fd)](U['field'](_0xed0a0d,_0x5a9458[_0x8add38(0x378)]['id']),_0x5a9458[_0x8add38(0x378)]),_0x23944c[_0x8add38(0x385)]([_0x8add38(0x41c),_0xed0a0d,'fieldOrder'],_0x1ff71b[_0x8add38(0x367)],_0x3c5e5f),..._0x54147f,..._0x281a3c]);}['updateField'](_0x56242d,_0x40660a,_0x2b8cbc,_0x1c94c8){const _0x4b235a=_0x5670e0;let _0x38ce40=_0x56242d[_0x4b235a(0x41c)][_0x40660a][_0x4b235a(0x2cb)][_0x2b8cbc],_0x40b16b={..._0x38ce40,..._0x1c94c8};Object[_0x4b235a(0x3ac)](_0x1c94c8)[_0x4b235a(0x143)](_0x4f6ef4=>{_0x1c94c8[_0x4f6ef4]===void 0x0&&delete _0x40b16b[_0x4f6ef4];});let _0x53dae0=er(_0x56242d[_0x4b235a(0x41c)][_0x40660a],_0x2b8cbc,_0x38ce40,_0x40b16b);_0x40b16b=_0x53dae0['field'];let _0x286090=_0x23944c[_0x4b235a(0x385)](U[_0x4b235a(0x378)](_0x40660a,_0x2b8cbc),_0x38ce40,_0x40b16b);return _0x40b16b[_0x4b235a(0xeb)]===_0x4fe15f['Formula']?R([...this[_0x4b235a(0x2f6)](_0x56242d),_0x286090,...this[_0x4b235a(0x42e)](_0x56242d,_0x40660a,_0x2b8cbc,_0x40b16b)]):R([_0x286090,..._0x53dae0[_0x4b235a(0x3c2)]['length']?[this[_0x4b235a(0x38b)](_0x56242d,_0x40660a,_0x53dae0['patches'])]:[]]);}[_0x5670e0(0x1f8)](_0x32ac65,_0x209c84,_0x3cf240,_0xcac592){const _0x28e201=_0x5670e0;return this[_0x28e201(0x1a9)](_0x32ac65,_0x209c84,_0x3cf240,_0xcac592);}[_0x5670e0(0x2c8)](_0x4ae514,_0x23f9c0,_0xdb0ff4){const _0x463d73=_0x5670e0;let _0x5b0266=_0x4ae514[_0x463d73(0x41c)][_0x23f9c0];if(!(_0x5b0266!=null&&_0x5b0266[_0x463d73(0x2cb)][_0xdb0ff4])||_0x5b0266['primaryFieldId']===_0xdb0ff4||_0xdb0ff4===_0x32decc)return _0x23944c[_0x463d73(0x385)]([_0x463d73(0x41c),_0x23f9c0,_0x463d73(0x367)],_0x5b0266==null?void 0x0:_0x5b0266[_0x463d73(0x367)],_0x5b0266==null?void 0x0:_0x5b0266['fieldOrder']);let _0x5edd08=_0x5b0266[_0x463d73(0x367)][_0x463d73(0x2e8)](_0xdb0ff4),_0xa39ad3=Object['values'](_0x5b0266[_0x463d73(0x21f)])[_0x463d73(0x98)](_0x1fdc18=>{const _0x1dd364=_0x463d73;var _0x436018,_0x2b37cd,_0x8b861f,_0xa2716,_0x3f2946,_0x1b56a0,_0x292cf0;let _0x32e71a=[],_0x36a85e=((_0x436018=_0x1fdc18[_0x1dd364(0x367)])==null?void 0x0:_0x436018[_0x1dd364(0x2e8)](_0xdb0ff4))??-0x1;_0x36a85e>=0x0&&_0x32e71a[_0x1dd364(0x393)](_0x23944c[_0x1dd364(0x2f9)]([...U[_0x1dd364(0x1f5)](_0x23f9c0,_0x1fdc18['id']),_0x1dd364(0x367),_0x36a85e],_0xdb0ff4));let _0x5410a0=(_0x2b37cd=_0x1fdc18[_0x1dd364(0x39e)])==null?void 0x0:_0x2b37cd[_0xdb0ff4];_0x5410a0!==void 0x0&&_0x32e71a[_0x1dd364(0x393)](_0x23944c[_0x1dd364(0x2f9)]([...U[_0x1dd364(0x1f5)](_0x23f9c0,_0x1fdc18['id']),_0x1dd364(0x39e),_0xdb0ff4],_0x5410a0));let _0x45ae8f=_0x1fdc18[_0x1dd364(0x364)]?{..._0x1fdc18[_0x1dd364(0x364)],'conditions':_0x1fdc18['filter'][_0x1dd364(0x196)][_0x1dd364(0x364)](_0x47103d=>_0x47103d[_0x1dd364(0x186)]!==_0xdb0ff4)}:_0x1fdc18['filter'];_0x45ae8f&&_0x45ae8f[_0x1dd364(0x196)]['length']!==((_0x8b861f=_0x1fdc18[_0x1dd364(0x364)])==null?void 0x0:_0x8b861f[_0x1dd364(0x196)][_0x1dd364(0x19b)])&&_0x32e71a['push'](this['_replaceOptional']([...U[_0x1dd364(0x1f5)](_0x23f9c0,_0x1fdc18['id']),'filter'],_0x1fdc18[_0x1dd364(0x364)],_0x45ae8f));let _0x4259ca=(_0xa2716=_0x1fdc18['sort'])==null?void 0x0:_0xa2716[_0x1dd364(0x364)](_0x24cf9f=>_0x24cf9f[_0x1dd364(0x186)]!==_0xdb0ff4);_0x4259ca&&_0x4259ca[_0x1dd364(0x19b)]!==((_0x3f2946=_0x1fdc18['sort'])==null?void 0x0:_0x3f2946['length'])&&_0x32e71a[_0x1dd364(0x393)](this[_0x1dd364(0x193)]([...U['view'](_0x23f9c0,_0x1fdc18['id']),_0x1dd364(0x249)],_0x1fdc18[_0x1dd364(0x249)],_0x4259ca));let _0x184c71=(_0x1b56a0=_0x1fdc18[_0x1dd364(0x3dd)])==null?void 0x0:_0x1b56a0[_0x1dd364(0x364)](_0x2fafbf=>_0x2fafbf[_0x1dd364(0x186)]!==_0xdb0ff4);_0x184c71&&_0x184c71[_0x1dd364(0x19b)]!==((_0x292cf0=_0x1fdc18[_0x1dd364(0x3dd)])==null?void 0x0:_0x292cf0[_0x1dd364(0x19b)])&&_0x32e71a[_0x1dd364(0x393)](this[_0x1dd364(0x193)]([...U['view'](_0x23f9c0,_0x1fdc18['id']),_0x1dd364(0x3dd)],_0x1fdc18[_0x1dd364(0x3dd)],_0x184c71));let _0x39b822=lr(_0x1fdc18[_0x1dd364(0x407)],_0xdb0ff4);return JSON['stringify'](_0x39b822)!==JSON[_0x1dd364(0x1a0)](_0x1fdc18['config'])&&_0x32e71a[_0x1dd364(0x393)](_0x23944c[_0x1dd364(0x385)]([...U[_0x1dd364(0x1f5)](_0x23f9c0,_0x1fdc18['id']),_0x1dd364(0x407)],_0x1fdc18[_0x1dd364(0x407)],_0x39b822)),_0x32e71a;}),_0x504238=Object[_0x463d73(0x1c8)](_0x5b0266['records'])[_0x463d73(0x98)](_0x1abf80=>Object[_0x463d73(0x159)][_0x463d73(0x127)][_0x463d73(0x321)](_0x1abf80[_0x463d73(0x1c8)],_0xdb0ff4)?[_0x23944c['removeOp'](U['cell'](_0x23f9c0,_0x1abf80['id'],_0xdb0ff4),_0x1abf80[_0x463d73(0x1c8)][_0xdb0ff4])]:[]);return R([_0x23944c['removeOp'](U[_0x463d73(0x378)](_0x23f9c0,_0xdb0ff4),_0x5b0266['fields'][_0xdb0ff4]),_0x23944c[_0x463d73(0x2f9)](U[_0x463d73(0x367)](_0x23f9c0,_0x5edd08),_0xdb0ff4),..._0xa39ad3,..._0x504238,...this['_deleteAttachmentResources'](_0x5b0266,_0x23f9c0,_0x361e0e=>_0x361e0e['startsWith'](_0xdb0ff4+'\x1f'))]);}[_0x5670e0(0x21c)](_0x5fd697,_0x15b393,_0x509dbb,_0x1fe9af){const _0x241d35=_0x5670e0;let _0x596fee=_0x5fd697[_0x241d35(0x41c)][_0x15b393][_0x241d35(0x367)];if(_0x509dbb===_0x32decc||_0x1fe9af[_0x241d35(0x170)]===_0x32decc)throw Error('[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');let _0x1b0de6=sr(_0x596fee,_0x509dbb,_0x1fe9af);return _0x23944c['replaceOp']([_0x241d35(0x41c),_0x15b393,'fieldOrder'],_0x596fee,_0x1b0de6);}['createView'](_0x488b6f,_0x537782,_0x59eb0e,_0x3186c8=_0x488b6f[_0x5670e0(0x41c)][_0x537782][_0x5670e0(0x139)][_0x5670e0(0x19b)]){const _0x400191=_0x5670e0;return R([_0x23944c[_0x400191(0x3fd)](U[_0x400191(0x1f5)](_0x537782,_0x59eb0e['id']),_0x59eb0e),_0x23944c[_0x400191(0x3fd)]([_0x400191(0x41c),_0x537782,_0x400191(0x139),_0x3186c8],_0x59eb0e['id'])]);}[_0x5670e0(0x334)](_0x1c0b09,_0x42b19f,_0x288711,_0x244130){const _0xbfb222=_0x5670e0;return _0x23944c[_0xbfb222(0x385)]([...U['view'](_0x42b19f,_0x288711),'name'],_0x1c0b09[_0xbfb222(0x41c)][_0x42b19f][_0xbfb222(0x21f)][_0x288711]['name'],_0x244130);}[_0x5670e0(0x32b)](_0x2bcf3a,_0x4ac01b,_0x52ba87){const _0x966af8=_0x5670e0;let _0x1b287d=_0x2bcf3a[_0x966af8(0x41c)][_0x4ac01b],_0x3b288b=_0x1b287d[_0x966af8(0x21f)][_0x52ba87],_0x1f89ec=_0x1b287d['viewOrder'][_0x966af8(0x2e8)](_0x52ba87);return R([_0x23944c[_0x966af8(0x2f9)](U[_0x966af8(0x1f5)](_0x4ac01b,_0x52ba87),_0x3b288b),_0x23944c[_0x966af8(0x2f9)]([_0x966af8(0x41c),_0x4ac01b,'viewOrder',_0x1f89ec],_0x52ba87)]);}['moveView'](_0x15a5a6,_0x27e2b9,_0x294183,_0x1f5310){const _0x1f787b=_0x5670e0;let _0x5876e2=_0x15a5a6['tables'][_0x27e2b9]['viewOrder'],_0x2908c3=sr(_0x5876e2,_0x294183,{'beforeFieldId':_0x1f5310[_0x1f787b(0x16b)],'afterFieldId':_0x1f5310['afterViewId']});return _0x23944c[_0x1f787b(0x385)]([_0x1f787b(0x41c),_0x27e2b9,_0x1f787b(0x139)],_0x5876e2,_0x2908c3);}[_0x5670e0(0x35c)](_0x3200fd,_0x40a2bb,_0x1f77a9,_0x1b6113){const _0x2216d1=_0x5670e0;let _0x5d8416=_0x3200fd[_0x2216d1(0x41c)][_0x40a2bb]['views'][_0x1f77a9][_0x2216d1(0x407)]??{},_0xc07d7d={..._0x5d8416,..._0x1b6113};return Object['keys'](_0x1b6113)[_0x2216d1(0x143)](_0x855d9=>{_0x1b6113[_0x855d9]===void 0x0&&delete _0xc07d7d[_0x855d9];}),_0x23944c['replaceOp']([...U[_0x2216d1(0x1f5)](_0x40a2bb,_0x1f77a9),_0x2216d1(0x407)],_0x5d8416,_0xc07d7d);}[_0x5670e0(0x19a)](_0x1b0941,_0x3e7cf1,_0x14a4ad,_0x432762){const _0x200eb8=_0x5670e0;return this[_0x200eb8(0x193)]([...U[_0x200eb8(0x1f5)](_0x3e7cf1,_0x14a4ad),_0x200eb8(0x364)],_0x1b0941[_0x200eb8(0x41c)][_0x3e7cf1]['views'][_0x14a4ad][_0x200eb8(0x364)],_0x432762);}[_0x5670e0(0x16c)](_0x542554,_0x559c8a,_0x4dc31a,_0x2b0f3c){const _0x2a1a2e=_0x5670e0;return this[_0x2a1a2e(0x193)]([...U[_0x2a1a2e(0x1f5)](_0x559c8a,_0x4dc31a),_0x2a1a2e(0x249)],_0x542554[_0x2a1a2e(0x41c)][_0x559c8a]['views'][_0x4dc31a][_0x2a1a2e(0x249)],_0x2b0f3c);}['setViewGroup'](_0x1529a6,_0x3d0f3c,_0x225fe4,_0x44bd94){const _0x24895d=_0x5670e0;return this['_replaceOptional']([...U[_0x24895d(0x1f5)](_0x3d0f3c,_0x225fe4),_0x24895d(0x3dd)],_0x1529a6['tables'][_0x3d0f3c][_0x24895d(0x21f)][_0x225fe4][_0x24895d(0x3dd)],_0x44bd94);}[_0x5670e0(0x2af)](_0x2e72a2,_0x567654,_0x3feb11,_0x10f652,_0x31c304){const _0x525c7e=_0x5670e0;return this[_0x525c7e(0x220)](_0x2e72a2,_0x567654,_0x3feb11,_0x10f652,{'hidden':!_0x31c304});}[_0x5670e0(0x1eb)](_0x448b98,_0x4ea032,_0x25b6ec,_0x40e69a,_0x50c070){const _0x568195=_0x5670e0;return this[_0x568195(0x220)](_0x448b98,_0x4ea032,_0x25b6ec,_0x40e69a,{'width':_0x50c070});}['setViewFieldOrder'](_0x206bb6,_0x3c4ea3,_0x52ea9b,_0x45e1e0,_0x25eaed){const _0x1f0d69=_0x5670e0;let _0x4f5e49=_0x206bb6[_0x1f0d69(0x41c)][_0x3c4ea3][_0x1f0d69(0x21f)][_0x52ea9b],_0xddb56c=sr(_0x4f5e49['fieldOrder']??_0x206bb6['tables'][_0x3c4ea3][_0x1f0d69(0x367)],_0x45e1e0,_0x25eaed);return this['_replaceOptional']([...U['view'](_0x3c4ea3,_0x52ea9b),_0x1f0d69(0x367)],_0x4f5e49[_0x1f0d69(0x367)],_0xddb56c);}[_0x5670e0(0x220)](_0x1ddadf,_0xfdc9df,_0x3f5193,_0x58258b,_0x1cb3a8){const _0xe2785b=_0x5670e0;let _0x34cc25=_0x1ddadf[_0xe2785b(0x41c)][_0xfdc9df]['views'][_0x3f5193][_0xe2785b(0x39e)]??{},_0x4cae2c={..._0x34cc25,[_0x58258b]:{..._0x34cc25[_0x58258b],..._0x1cb3a8}};return this[_0xe2785b(0x193)]([...U[_0xe2785b(0x1f5)](_0xfdc9df,_0x3f5193),_0xe2785b(0x39e)],_0x1ddadf[_0xe2785b(0x41c)][_0xfdc9df][_0xe2785b(0x21f)][_0x3f5193][_0xe2785b(0x39e)],_0x4cae2c);}[_0x5670e0(0xec)](_0x161f8d,_0x481f8c,_0x4a2ff3){const _0x5251c4=_0x5670e0;let _0x316dc4=_0x161f8d[_0x5251c4(0x41c)][_0x481f8c],_0x1cdea2=new Set(_0x4a2ff3[_0x5251c4(0x102)](_0x34f9cc=>_0x34f9cc['id'])),_0x5ec9f2=[...Object[_0x5251c4(0x1c8)](_0x316dc4[_0x5251c4(0x83)])[_0x5251c4(0x364)](_0x358f78=>!_0x1cdea2[_0x5251c4(0xb9)](_0x358f78['id'])),..._0x4a2ff3]['sort']((_0x30161c,_0x115c29)=>String(_0x30161c['orderKey']??_0x30161c['id'])['localeCompare'](String(_0x115c29[_0x5251c4(0x27b)]??_0x115c29['id'])))[_0x5251c4(0x102)](_0x53846d=>_0x53846d['id']),_0x39e767=[...U[_0x5251c4(0x19f)](_0x481f8c),'recordOrder'];return _0x316dc4[_0x5251c4(0x411)]?_0x23944c[_0x5251c4(0x385)](_0x39e767,_0x316dc4[_0x5251c4(0x411)],_0x5ec9f2):_0x23944c[_0x5251c4(0x3fd)](_0x39e767,_0x5ec9f2);}[_0x5670e0(0x2f6)](_0x2f4a1f,_0x2d7de6=new Set()){const _0x14adbe=_0x5670e0;let _0x11d2f8=_0x13e931(_0x2f4a1f);return Object[_0x14adbe(0x1c8)](_0x2f4a1f['tables'])[_0x14adbe(0x364)](_0x17ba9f=>!_0x2d7de6[_0x14adbe(0xb9)](_0x17ba9f['id']))[_0x14adbe(0x249)]((_0x167a82,_0x38d6e5)=>_0x167a82['id'][_0x14adbe(0x135)](_0x38d6e5['id']))[_0x14adbe(0x98)](_0x49a96c=>{const _0x1bcd42=_0x14adbe;let _0x4259b4=_0x11d2f8[_0x1bcd42(0x2db)](_0x49a96c['id']);return!_0x4259b4||_0x49a96c[_0x1bcd42(0x177)]===_0x4259b4?[]:[this[_0x1bcd42(0x193)]([...U[_0x1bcd42(0x19f)](_0x49a96c['id']),'formulaName'],_0x49a96c['formulaName'],_0x4259b4)];});}[_0x5670e0(0x42e)](_0x45ee8b,_0x59796d,_0x15f21f,_0x49b0cc){const _0x2af5f0=_0x5670e0;var _0x44da8e,_0x3d48d3;let _0x18c3a1=L(_0x45ee8b[_0x2af5f0(0x41c)][_0x59796d]),_0x5b5887=String(((_0x44da8e=_0x49b0cc[_0x2af5f0(0x407)])==null?void 0x0:_0x44da8e[_0x2af5f0(0x23e)])??'')['trim'](),_0x7d7a10=(_0x3d48d3=_0x18c3a1[_0x2af5f0(0xb6)])==null?void 0x0:_0x3d48d3[_0x15f21f];if(_0x7d7a10==null)return[];let _0xf182dc=_0x18c3a1[_0x2af5f0(0x411)]??Object[_0x2af5f0(0x3ac)](_0x18c3a1[_0x2af5f0(0x83)]),_0x441330=_0xf182dc[_0x2af5f0(0x102)](_0x3630e0=>{const _0x5e0c6c=_0x2af5f0;var _0x40788e;return(_0x40788e=_0x18c3a1[_0x5e0c6c(0x250)])==null?void 0x0:_0x40788e[_0x3630e0];})[_0x2af5f0(0x361)](_0x4224a4=>_0x4224a4!=null);return _0xf182dc[_0x2af5f0(0x98)](_0x51e24c=>{const _0x201f70=_0x2af5f0;var _0x49f10c,_0x51a225;let _0x3f7620=(_0x49f10c=_0x18c3a1[_0x201f70(0x250)])==null?void 0x0:_0x49f10c[_0x51e24c];if(_0x3f7620==null)return[];let _0x1f12b1=(_0x51a225=_0x18c3a1[_0x201f70(0x259)])==null||(_0x51a225=_0x51a225[_0x3f7620])==null?void 0x0:_0x51a225[_0x7d7a10],_0x122a72=_0x5b5887?_0x3f7620===_0x441330?{'f':_0x5b5887,'si':_0x15f21f}:{'si':_0x15f21f}:{'v':null,'t':null};return[this[_0x201f70(0x193)](U['cellData'](_0x59796d,_0x3f7620,_0x7d7a10),_0x1f12b1,_0x122a72)];});}['_setAttachmentResources'](_0x4e1a19,_0x1075b0,_0x4b86cd){const _0x4c4696=_0x5670e0;var _0xba5031;let _0xd8ef1=new Map(Object[_0x4c4696(0x419)](((_0xba5031=_0x4e1a19[_0x4c4696(0x184)])==null?void 0x0:_0xba5031[_0x4c4696(0x32f)])??{})),_0x860929=new Map(),_0x45f09b=new Set(),_0x1cff3c=_0x4b86cd[_0x4c4696(0x102)](({recordId:_0xf2b058,fieldId:_0x1b053c,attachments:_0x21e0d6})=>{const _0x8101c2=_0x4c4696;var _0x2f2eb9;let _0x6278ef=Et(_0x1b053c,_0xf2b058),_0x233974=_0x21e0d6[_0x8101c2(0x102)]((_0x1f32ad,_0x343ad0)=>String(_0x1f32ad['id']??_0x6278ef+'\x1f'+_0x343ad0));return _0x45f09b[_0x8101c2(0x41d)](_0x6278ef),_0xd8ef1['set'](_0x6278ef,_0x233974),_0x21e0d6['forEach']((_0x52ed14,_0x1f84d7)=>{let _0x2cf935=_0x233974[_0x1f84d7];_0x860929['set'](_0x2cf935,{..._0x52ed14,'id':_0x2cf935});}),this[_0x8101c2(0x193)](U[_0x8101c2(0x3af)](_0x1075b0,_0x6278ef),(_0x2f2eb9=_0x4e1a19[_0x8101c2(0x184)])==null||(_0x2f2eb9=_0x2f2eb9[_0x8101c2(0x32f)])==null?void 0x0:_0x2f2eb9[_0x6278ef],_0x233974);}),_0x4af1f9=Array[_0x4c4696(0x162)](_0x860929)[_0x4c4696(0x102)](([_0x30509c,_0xbbd179])=>{const _0x513185=_0x4c4696;var _0x3c4d;return this[_0x513185(0x193)](U[_0x513185(0x3f7)](_0x1075b0,_0x30509c),(_0x3c4d=_0x4e1a19[_0x513185(0x184)])==null||(_0x3c4d=_0x3c4d[_0x513185(0x2b9)])==null?void 0x0:_0x3c4d[_0x30509c],_0xbbd179);}),_0x3d54f4=new Set(Array[_0x4c4696(0x162)](_0xd8ef1['values']())[_0x4c4696(0xf5)]()),_0x331a07=new Set(Array[_0x4c4696(0x162)](_0x45f09b)[_0x4c4696(0x98)](_0x2c1f98=>{const _0x919421=_0x4c4696;var _0x3f9c22;return((_0x3f9c22=_0x4e1a19[_0x919421(0x184)])==null||(_0x3f9c22=_0x3f9c22['attachmentSets'])==null?void 0x0:_0x3f9c22[_0x2c1f98])??[];})),_0x2ee437=Array[_0x4c4696(0x162)](_0x331a07)['flatMap'](_0x58a89a=>{const _0x114d3b=_0x4c4696;var _0x2a522a;let _0x4eb051=(_0x2a522a=_0x4e1a19[_0x114d3b(0x184)])==null||(_0x2a522a=_0x2a522a[_0x114d3b(0x2b9)])==null?void 0x0:_0x2a522a[_0x58a89a];return _0x4eb051!==void 0x0&&!_0x3d54f4[_0x114d3b(0xb9)](_0x58a89a)?[_0x23944c[_0x114d3b(0x2f9)](U['attachment'](_0x1075b0,_0x58a89a),_0x4eb051)]:[];});return[..._0x1cff3c,..._0x4af1f9,..._0x2ee437];}[_0x5670e0(0x261)](_0x5ddf71,_0x4e3131,_0x8c3566){const _0x27663d=_0x5670e0;var _0x5d4b1f;let _0x5a1510=((_0x5d4b1f=_0x5ddf71['resources'])==null?void 0x0:_0x5d4b1f[_0x27663d(0x32f)])??{},_0x1aa023=Object[_0x27663d(0x419)](_0x5a1510)[_0x27663d(0x364)](([_0x2b85ae])=>_0x8c3566(_0x2b85ae));if(!_0x1aa023['length'])return[];let _0x3f974c=new Set(Object[_0x27663d(0x419)](_0x5a1510)[_0x27663d(0x364)](([_0x662cef])=>!_0x8c3566(_0x662cef))[_0x27663d(0x98)](([,_0x3cfa31])=>_0x3cfa31)),_0x4cbc14=new Set(_0x1aa023[_0x27663d(0x98)](([,_0x83da91])=>_0x83da91));return[..._0x1aa023['map'](([_0x71f73a,_0x18ad8b])=>_0x23944c['removeOp'](U[_0x27663d(0x3af)](_0x4e3131,_0x71f73a),_0x18ad8b)),...Array[_0x27663d(0x162)](_0x4cbc14)[_0x27663d(0x98)](_0x4a9155=>{const _0x2b5df7=_0x27663d;var _0x32734e;let _0x1f0d27=(_0x32734e=_0x5ddf71[_0x2b5df7(0x184)])==null||(_0x32734e=_0x32734e[_0x2b5df7(0x2b9)])==null?void 0x0:_0x32734e[_0x4a9155];return _0x1f0d27!==void 0x0&&!_0x3f974c[_0x2b5df7(0xb9)](_0x4a9155)?[_0x23944c[_0x2b5df7(0x2f9)](U[_0x2b5df7(0x3f7)](_0x4e3131,_0x4a9155),_0x1f0d27)]:[];})];}[_0x5670e0(0x193)](_0x48d315,_0x1b8540,_0x2be95f){const _0x2c97fb=_0x5670e0;return _0x1b8540===void 0x0?_0x23944c[_0x2c97fb(0x3fd)](_0x48d315,_0x2be95f):_0x23944c[_0x2c97fb(0x385)](_0x48d315,_0x1b8540,_0x2be95f);}};function er(_0x8b0397,_0x377c2a,_0x4cc1b9,_0x1e5bfc){const _0x370513=_0x5670e0;var _0x4f50a4;let _0x1f8d78=_0x1e5bfc[_0x370513(0xeb)];if(_0x4cc1b9[_0x370513(0xeb)]!==_0x1f8d78||_0x1f8d78!==_0x4fe15f[_0x370513(0x1dd)]&&_0x1f8d78!==_0x4fe15f[_0x370513(0x8b)]||tr(_0x1e5bfc[_0x370513(0x407)][_0x370513(0x218)]))return{'field':_0x1e5bfc,'patches':[]};let _0x25719f=nr(_0x4cc1b9),_0x389c96=nr(_0x1e5bfc);if(![..._0x25719f][_0x370513(0x1c1)](_0x108f0e=>!_0x389c96[_0x370513(0xb9)](_0x108f0e)))return{'field':_0x1e5bfc,'patches':[]};let _0x160524=rr(_0x1e5bfc[_0x370513(0x41a)],_0x389c96,_0x1f8d78),_0x121091=ir(_0x160524,_0x1e5bfc[_0x370513(0x41a)])?_0x1e5bfc:{..._0x1e5bfc,'defaultValue':_0x160524},_0x498197=L(_0x8b0397),_0x26d62b=(_0x4f50a4=_0x498197[_0x370513(0xb6)])==null?void 0x0:_0x4f50a4[_0x377c2a];return _0x26d62b==null?{'field':_0x121091,'patches':[]}:{'field':_0x121091,'patches':(_0x498197[_0x370513(0x411)]??[])['flatMap'](_0x196eb0=>{const _0x3638d0=_0x370513;var _0x29d849,_0x3eb2a2;let _0x5ac3df=(_0x29d849=_0x498197[_0x3638d0(0x250)])==null?void 0x0:_0x29d849[_0x196eb0],_0x105b8a=(_0x3eb2a2=_0x498197[_0x3638d0(0x83)][_0x196eb0])==null?void 0x0:_0x3eb2a2[_0x3638d0(0x1c8)][_0x377c2a],_0x1bceea=rr(_0x105b8a,_0x389c96,_0x1f8d78);return _0x5ac3df==null||ir(_0x1bceea,_0x105b8a)?[]:[{'row':_0x5ac3df,'col':_0x26d62b,'value':_0x1bceea??null}];})};}function tr(_0x1043c8){const _0x16a7ac=_0x5670e0;return typeof _0x1043c8=='object'&&!!_0x1043c8&&_0x16a7ac(0xeb)in _0x1043c8&&_0x1043c8[_0x16a7ac(0xeb)]===_0x16a7ac(0x378);}function nr(_0x10d525){const _0x43acaf=_0x5670e0;var _0x4be21b;let _0x3fd02c=Array[_0x43acaf(0x99)]((_0x4be21b=_0x10d525['config'])==null?void 0x0:_0x4be21b[_0x43acaf(0x212)])?_0x10d525[_0x43acaf(0x407)][_0x43acaf(0x212)]:[];return new Set(_0x3fd02c['flatMap'](_0xac1c0=>{const _0x15172e=_0x43acaf;if(!_0xac1c0||typeof _0xac1c0!=_0x15172e(0x360)||!('id'in _0xac1c0))return[];let _0x31ed21=String(_0xac1c0['id']);return _0x31ed21?[_0x31ed21]:[];}));}function rr(_0x5ba6b8,_0x2a6088,_0x484e9c){const _0x11e856=_0x5670e0;if(_0x5ba6b8==null||_0x5ba6b8==='')return _0x5ba6b8;if(_0x484e9c===_0x4fe15f[_0x11e856(0x1dd)])return _0x2a6088[_0x11e856(0xb9)](String(_0x5ba6b8))?_0x5ba6b8:null;let _0x3fb7ed=Array[_0x11e856(0x99)](_0x5ba6b8)?_0x5ba6b8[_0x11e856(0x102)](String):String(_0x5ba6b8)['split'](',')['map'](_0x4f3050=>_0x4f3050[_0x11e856(0x12d)]())[_0x11e856(0x364)](Boolean),_0x4d7959=_0x3fb7ed['filter'](_0x5e329d=>_0x2a6088[_0x11e856(0xb9)](_0x5e329d));return _0x4d7959[_0x11e856(0x19b)]===_0x3fb7ed[_0x11e856(0x19b)]?_0x5ba6b8:Array[_0x11e856(0x99)](_0x5ba6b8)?_0x4d7959:String(_0x5ba6b8)[_0x11e856(0x173)](',')?_0x4d7959[_0x11e856(0x3d6)](','):_0x4d7959[0x0]??[];}function ir(_0x244e14,_0x3b79a6){const _0xadea85=_0x5670e0;return JSON['stringify'](_0x244e14)===JSON[_0xadea85(0x1a0)](_0x3b79a6);}function ar(_0x5e3962,_0x553333,_0x5bcc6a){const _0x4bf3c8=_0x5670e0;var _0x433dd5,_0x42a0fa,_0x1eb1aa,_0x5ae44c;let _0x3ae9a8=(_0x433dd5=_0x5e3962[_0x4bf3c8(0x250)])==null?void 0x0:_0x433dd5[_0x553333],_0x594dad=(_0x42a0fa=_0x5e3962[_0x4bf3c8(0xb6)])==null?void 0x0:_0x42a0fa[_0x5bcc6a];return _0x3ae9a8!=null&&_0x594dad!=null&&((_0x1eb1aa=_0x5e3962[_0x4bf3c8(0x2ea)])==null?void 0x0:_0x1eb1aa[_0x3ae9a8])===_0x553333&&((_0x5ae44c=_0x5e3962['colId'])==null?void 0x0:_0x5ae44c[_0x594dad])===_0x5bcc6a&&_0x5e3962['cellData']!=null;}function or(_0xfe9add,_0x39e0f9,_0x5ce872){const _0x35e48c=_0x5670e0;var _0x5c3135,_0x437376;return((_0x5c3135=_0xfe9add['rowId'])==null?void 0x0:_0x5c3135[_0x39e0f9])!=null&&((_0x437376=_0xfe9add[_0x35e48c(0x18c)])==null?void 0x0:_0x437376[_0x5ce872])!=null&&_0xfe9add[_0x35e48c(0x259)]!=null;}function sr(_0x4c9d1e,_0x57c849,_0x4664a5){const _0x28a733=_0x5670e0;let _0x2f8f4c=_0x4c9d1e[_0x28a733(0x364)](_0x3bace7=>_0x3bace7!==_0x57c849),_0x1b7cd5=_0x4664a5[_0x28a733(0x170)]?_0x2f8f4c[_0x28a733(0x2e8)](_0x4664a5[_0x28a733(0x170)]):_0x4664a5[_0x28a733(0x265)]?_0x2f8f4c[_0x28a733(0x2e8)](_0x4664a5[_0x28a733(0x265)])+0x1:_0x2f8f4c[_0x28a733(0x19b)];return _0x2f8f4c['splice'](_0x1b7cd5<0x0?_0x2f8f4c[_0x28a733(0x19b)]:_0x1b7cd5,0x0,_0x57c849),_0x2f8f4c;}function cr(_0x159b9b,_0x4ccf18,_0x27041d){const _0x57b434=_0x5670e0;let _0x575055=_0x159b9b['filter'](_0x242991=>_0x242991!==_0x4ccf18);return _0x575055['splice'](ur(_0x27041d,_0x575055[_0x57b434(0x19b)]),0x0,_0x4ccf18),_0x575055;}function lr(_0x49466c,_0x3ccc75,_0x3e2cb2){const _0x5e46fb=_0x5670e0;if(Array[_0x5e46fb(0x99)](_0x49466c))return _0x3e2cb2===_0x5e46fb(0x1f6)?_0x49466c['filter'](_0x2e4127=>_0x2e4127!==_0x3ccc75):_0x49466c[_0x5e46fb(0x98)](_0x553eb9=>{const _0x111f24=_0x5e46fb;if(_0x553eb9&&typeof _0x553eb9==_0x111f24(0x360)&&!Array[_0x111f24(0x99)](_0x553eb9)&&_0x553eb9[_0x111f24(0x186)]===_0x3ccc75)return[];let _0xfa6769=lr(_0x553eb9,_0x3ccc75);return _0xfa6769===void 0x0?[]:[_0xfa6769];});if(!_0x49466c||typeof _0x49466c!=_0x5e46fb(0x360))return _0x3e2cb2!=null&&_0x3e2cb2[_0x5e46fb(0x372)]('FieldId')&&_0x49466c===_0x3ccc75?void 0x0:_0x49466c;let _0x9f45b8=_0x49466c;if(_0x9f45b8[_0x5e46fb(0x186)]!==_0x3ccc75)return Object[_0x5e46fb(0x3a7)](Object[_0x5e46fb(0x419)](_0x9f45b8)['flatMap'](([_0x57c6e3,_0xdd6a9f])=>{if(_0x57c6e3===_0x3ccc75&&_0x3e2cb2==='fieldSettings')return[];let _0x442261=lr(_0xdd6a9f,_0x3ccc75,_0x57c6e3);return _0x442261===void 0x0?[]:[[_0x57c6e3,_0x442261]];}));}function ur(_0x210079,_0x54b7d7){const _0x6e6522=_0x5670e0;return Math[_0x6e6522(0x272)](0x0,Math[_0x6e6522(0x3a1)](_0x210079,_0x54b7d7));}function dr(_0x1ff057){'@babel/helpers - typeof';const _0x352c93=_0x5670e0;return dr=typeof Symbol==_0x352c93(0x251)&&typeof Symbol['iterator']=='symbol'?function(_0x8f4eec){return typeof _0x8f4eec;}:function(_0x2025c5){const _0x20d164=_0x352c93;return _0x2025c5&&typeof Symbol=='function'&&_0x2025c5['constructor']===Symbol&&_0x2025c5!==Symbol['prototype']?_0x20d164(0xb7):typeof _0x2025c5;},dr(_0x1ff057);}function fr(_0x47b720,_0x529e6b){const _0xab924f=_0x5670e0;if(dr(_0x47b720)!=_0xab924f(0x360)||!_0x47b720)return _0x47b720;var _0x582843=_0x47b720[Symbol[_0xab924f(0x1fc)]];if(_0x582843!==void 0x0){var _0x3d546d=_0x582843[_0xab924f(0x321)](_0x47b720,_0x529e6b||_0xab924f(0x434));if(dr(_0x3d546d)!='object')return _0x3d546d;throw TypeError(_0xab924f(0x376));}return(_0x529e6b===_0xab924f(0x2dc)?String:Number)(_0x47b720);}function pr(_0x275123){const _0x494711=_0x5670e0;var _0x5b6056=fr(_0x275123,_0x494711(0x2dc));return dr(_0x5b6056)==_0x494711(0xb7)?_0x5b6056:_0x5b6056+'';}function G(_0x535e81,_0x252e7d,_0x204cc2){const _0x4722ac=_0x5670e0;return(_0x252e7d=pr(_0x252e7d))in _0x535e81?Object[_0x4722ac(0x2cc)](_0x535e81,_0x252e7d,{'value':_0x204cc2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x535e81[_0x252e7d]=_0x204cc2,_0x535e81;}const mr=_0x39c797(_0x5670e0(0x27c));var hr=class extends _0x29abb3{constructor(..._0x5edb87){super(..._0x5edb87),G(this,'_plugins',new Map());}[_0x5670e0(0x2fb)](_0x203474){const _0x9aa0e7=_0x5670e0;return this[_0x9aa0e7(0xdc)][_0x9aa0e7(0x2b8)](_0x203474[_0x9aa0e7(0xeb)],_0x203474),_0x1abac0(()=>this[_0x9aa0e7(0xdc)][_0x9aa0e7(0x15e)](_0x203474[_0x9aa0e7(0xeb)]));}['get'](_0x545932){const _0x5b19a9=_0x5670e0;let _0x521eb7=this[_0x5b19a9(0xdc)][_0x5b19a9(0x2db)](_0x545932);if(!_0x521eb7)throw Error('[BaseFieldRegistryService]:\x20field\x20type\x20\x22'+_0x545932+'\x22\x20is\x20not\x20registered.');return _0x521eb7;}[_0x5670e0(0x17f)](_0x38b913){const _0x48c158=_0x5670e0;return this[_0x48c158(0xdc)][_0x48c158(0x2db)](_0x38b913);}[_0x5670e0(0x3d1)](){const _0x360051=_0x5670e0;return Array['from'](this[_0x360051(0xdc)][_0x360051(0x1c8)]());}},gr=class{constructor(_0x7841a){const _0x26ab82=_0x5670e0;this[_0x26ab82(0x39d)]=_0x7841a,G(this,_0x26ab82(0xeb),_0x2d9d6e[_0x26ab82(0x129)]),G(this,_0x26ab82(0x310),_0x5ebf52['Comment']),G(this,_0x26ab82(0xcf),_0x1bd3e8[_0x26ab82(0x252)]),G(this,'id',void 0x0),G(this,_0x26ab82(0x38a),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x7841a;}},_r=class{constructor(_0x31268a){const _0x4c85fb=_0x5670e0;this[_0x4c85fb(0x39d)]=_0x31268a,G(this,_0x4c85fb(0xeb),_0x2d9d6e[_0x4c85fb(0x129)]),G(this,'subType',_0x5ebf52['Copy']),G(this,_0x4c85fb(0xcf),_0x1bd3e8[_0x4c85fb(0x252)]),G(this,'id',void 0x0),G(this,_0x4c85fb(0x38a),!0x0),this['id']=this[_0x4c85fb(0xeb)]+'.'+this[_0x4c85fb(0x310)]+'_'+_0x31268a;}},vr=class{constructor(_0x5bf079){const _0x48eff7=_0x5670e0;this['unitId']=_0x5bf079,G(this,_0x48eff7(0xeb),_0x2d9d6e['Base']),G(this,_0x48eff7(0x310),_0x5ebf52['Edit']),G(this,_0x48eff7(0xcf),_0x1bd3e8[_0x48eff7(0x252)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x48eff7(0xeb)]+'.'+this[_0x48eff7(0x310)]+'_'+_0x5bf079;}},yr=class{constructor(_0x5ed0ed){const _0x5dc23c=_0x5670e0;this[_0x5dc23c(0x39d)]=_0x5ed0ed,G(this,_0x5dc23c(0xeb),_0x2d9d6e[_0x5dc23c(0x129)]),G(this,_0x5dc23c(0x310),_0x5ebf52[_0x5dc23c(0x3d7)]),G(this,_0x5dc23c(0xcf),_0x1bd3e8[_0x5dc23c(0x252)]),G(this,'id',void 0x0),G(this,_0x5dc23c(0x38a),!0x0),this['id']=this[_0x5dc23c(0xeb)]+'.'+this[_0x5dc23c(0x310)]+'_'+_0x5ed0ed;}},br=class{constructor(_0x28b765,_0x3dfd1e){const _0x17a9b5=_0x5670e0;this['unitId']=_0x28b765,this['objectId']=_0x3dfd1e,G(this,'type',_0x2d9d6e[_0x17a9b5(0xe2)]),G(this,_0x17a9b5(0x310),_0x5ebf52[_0x17a9b5(0x29b)]),G(this,'status',_0x1bd3e8[_0x17a9b5(0x252)]),G(this,'id',void 0x0),G(this,_0x17a9b5(0x38a),!0x0),this['id']=this[_0x17a9b5(0xeb)]+'.'+this[_0x17a9b5(0x310)]+'_'+_0x28b765+'_'+_0x3dfd1e;}},xr=class{constructor(_0x5b52d0,_0x2918ea){const _0x4fbd3c=_0x5670e0;this[_0x4fbd3c(0x39d)]=_0x5b52d0,this[_0x4fbd3c(0xba)]=_0x2918ea,G(this,_0x4fbd3c(0xeb),_0x2d9d6e[_0x4fbd3c(0x412)]),G(this,'subType',_0x5ebf52[_0x4fbd3c(0x29b)]),G(this,_0x4fbd3c(0xcf),_0x1bd3e8[_0x4fbd3c(0x252)]),G(this,'id',void 0x0),G(this,_0x4fbd3c(0x38a),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x5b52d0+'_'+_0x2918ea;}},Sr=class{constructor(_0x568b59,_0x100591){const _0x37786f=_0x5670e0;this[_0x37786f(0x39d)]=_0x568b59,this[_0x37786f(0xba)]=_0x100591,G(this,_0x37786f(0xeb),_0x2d9d6e[_0x37786f(0x2f7)]),G(this,_0x37786f(0x310),_0x5ebf52[_0x37786f(0x29b)]),G(this,_0x37786f(0xcf),_0x1bd3e8['INIT']),G(this,'id',void 0x0),G(this,_0x37786f(0x38a),!0x0),this['id']=this['type']+'.'+this[_0x37786f(0x310)]+'_'+_0x568b59+'_'+_0x100591;}},Cr=class{constructor(_0x42a62b,_0x33c440){const _0x1855cd=_0x5670e0;this[_0x1855cd(0x39d)]=_0x42a62b,this[_0x1855cd(0xba)]=_0x33c440,G(this,'type',_0x2d9d6e[_0x1855cd(0xa0)]),G(this,'subType',_0x5ebf52[_0x1855cd(0x29b)]),G(this,_0x1855cd(0xcf),_0x1bd3e8[_0x1855cd(0x252)]),G(this,'id',void 0x0),G(this,_0x1855cd(0x38a),!0x0),this['id']=this[_0x1855cd(0xeb)]+'.'+this['subType']+'_'+_0x42a62b+'_'+_0x33c440;}},wr=class{constructor(_0x46ae53,_0x12c8f9){const _0x2ad939=_0x5670e0;this[_0x2ad939(0x39d)]=_0x46ae53,this[_0x2ad939(0xba)]=_0x12c8f9,G(this,_0x2ad939(0xeb),_0x2d9d6e[_0x2ad939(0x20f)]),G(this,'subType',_0x5ebf52[_0x2ad939(0x29b)]),G(this,'status',_0x1bd3e8[_0x2ad939(0x252)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x2ad939(0xeb)]+'.'+this[_0x2ad939(0x310)]+'_'+_0x46ae53+'_'+_0x12c8f9;}};const Tr=[_0x5ebf52[_0x5670e0(0x29b)],_0x5ebf52[_0x5670e0(0x406)],_0x5ebf52['Export'],_0x5ebf52['Comment']],Er=new Set([_0x2d9d6e[_0x5670e0(0x129)],_0x2d9d6e[_0x5670e0(0xa0)],_0x2d9d6e[_0x5670e0(0x412)],_0x2d9d6e[_0x5670e0(0x2f7)],_0x2d9d6e[_0x5670e0(0x20f)],_0x2d9d6e[_0x5670e0(0xe2)]]),Dr=_0x5670e0(0x1c4),Or=_0x5670e0(0xb2),kr=_0x5670e0(0x155),Ar=_0x5670e0(0xac),jr=_0x5670e0(0x88);function K(_0x41390f){return''+Dr+encodeURIComponent(_0x41390f);}function q(_0x40e5b0,_0x31db61){return''+Or+encodeURIComponent(_0x40e5b0)+'/'+encodeURIComponent(_0x31db61);}function J(_0xab8c81,_0x31caf1){return''+kr+encodeURIComponent(_0xab8c81)+'/'+encodeURIComponent(_0x31caf1);}function Mr(_0x1c6f0e,_0x20d4a7){return''+Ar+encodeURIComponent(_0x1c6f0e)+'/'+encodeURIComponent(_0x20d4a7);}function Nr(_0x445178){return''+jr+encodeURIComponent(_0x445178);}function Pr(_0x196968,_0x576a64,_0x3ac046){const _0x2e5c97=_0x5670e0;if(_0x576a64===_0x196968)switch(_0x3ac046){case _0x5ebf52[_0x2e5c97(0x29b)]:return new vr(_0x196968);case _0x5ebf52[_0x2e5c97(0x406)]:return new _r(_0x196968);case _0x5ebf52[_0x2e5c97(0x3d7)]:return new yr(_0x196968);case _0x5ebf52[_0x2e5c97(0x316)]:return new gr(_0x196968);default:throw Error(_0x2e5c97(0x3da)+_0x3ac046);}if(_0x3ac046!==_0x5ebf52[_0x2e5c97(0x29b)])throw Error(_0x2e5c97(0x1e2)+_0x576a64);if(_0x576a64[_0x2e5c97(0xb5)](Dr))return new Cr(_0x196968,_0x576a64);if(_0x576a64[_0x2e5c97(0xb5)](Or))return new xr(_0x196968,_0x576a64);if(_0x576a64['startsWith'](kr))return new Sr(_0x196968,_0x576a64);if(_0x576a64['startsWith'](Ar))return new wr(_0x196968,_0x576a64);if(_0x576a64[_0x2e5c97(0xb5)](jr))return new br(_0x196968,_0x576a64);throw Error(_0x2e5c97(0x1cb)+_0x576a64);}function Fr(_0x5b7ea4,_0x175f91,_0x12d601,_0x5deece){const _0x49bad6=_0x5670e0;var _0x20c3cb;return((_0x20c3cb=_0x5b7ea4[_0x49bad6(0x34a)](Pr(_0x175f91,_0x12d601,_0x5deece)['id']))==null?void 0x0:_0x20c3cb[_0x49bad6(0x38a)])??!0x0;}function Ir(_0x88a44,_0x1fccd7,_0x3287d9,_0x21ded3,_0x59a57f){const _0x173004=_0x5670e0;let _0x12c3a1=Pr(_0x1fccd7,_0x3287d9,_0x21ded3);_0x88a44[_0x173004(0x34a)](_0x12c3a1['id'])||_0x88a44[_0x173004(0x269)](_0x12c3a1),_0x88a44['updatePermissionPoint'](_0x12c3a1['id'],_0x59a57f);}function Lr(_0x5bec02,_0x457f34,_0x26a5b1,_0x2ffc07){_0x5bec02['deletePermissionPoint'](Pr(_0x457f34,_0x26a5b1,_0x2ffc07)['id']);}function Rr(_0x58e589,_0x6d7915){const _0x5057cc=_0x5670e0;_0x58e589[_0x5057cc(0x307)]()[_0x5057cc(0x143)]((_0x3f76d6,_0x4a7f1b)=>{const _0x48f8c1=_0x5057cc;_0x3f76d6[_0x48f8c1(0x3f0)](_0x3eeede=>{const _0x31097b=_0x48f8c1;Er[_0x31097b(0xb9)](_0x3eeede[_0x31097b(0xeb)])&&_0x31097b(0x39d)in _0x3eeede&&_0x3eeede['unitId']===_0x6d7915&&_0x58e589[_0x31097b(0x2f3)](_0x4a7f1b);})[_0x48f8c1(0x26d)]();});}function zr(_0x36a290,_0x1077be,_0x2b5701){const _0x10df50=_0x5670e0;return Fr(_0x36a290,_0x1077be,_0x1077be,_0x5ebf52[_0x10df50(0x29b)])&&Array[_0x10df50(0x162)](_0x2b5701)[_0x10df50(0x3f9)](_0x39f0a8=>Fr(_0x36a290,_0x1077be,_0x39f0a8,_0x5ebf52['Edit']));}function Y(_0x2681a6,_0x49ada4){return function(_0x32ada8,_0x322e20){_0x49ada4(_0x32ada8,_0x322e20,_0x2681a6);};}function X(_0x28fa8e,_0x512186,_0x7bd057,_0x9bf0ff){const _0x5e4837=_0x5670e0;var _0x481043=arguments['length'],_0x52e4a5=_0x481043<0x3?_0x512186:_0x9bf0ff===null?_0x9bf0ff=Object[_0x5e4837(0x8c)](_0x512186,_0x7bd057):_0x9bf0ff,_0x511290;if(typeof Reflect==_0x5e4837(0x360)&&typeof Reflect['decorate']==_0x5e4837(0x251))_0x52e4a5=Reflect['decorate'](_0x28fa8e,_0x512186,_0x7bd057,_0x9bf0ff);else{for(var _0x3cce58=_0x28fa8e[_0x5e4837(0x19b)]-0x1;_0x3cce58>=0x0;_0x3cce58--)(_0x511290=_0x28fa8e[_0x3cce58])&&(_0x52e4a5=(_0x481043<0x3?_0x511290(_0x52e4a5):_0x481043>0x3?_0x511290(_0x512186,_0x7bd057,_0x52e4a5):_0x511290(_0x512186,_0x7bd057))||_0x52e4a5);}return _0x481043>0x3&&_0x52e4a5&&Object[_0x5e4837(0x2cc)](_0x512186,_0x7bd057,_0x52e4a5),_0x52e4a5;}const Br=_0x39c797(_0x5670e0(0x1a7));let Vr=class extends _0x29abb3{constructor(_0x31990d,_0x54a7fc){const _0x248054=_0x5670e0;super(),this[_0x248054(0x312)]=_0x31990d,this['_instanceService']=_0x54a7fc,G(this,_0x248054(0x2ac),new Map()),G(this,_0x248054(0xaa),new Map()),G(this,'_fieldPermissions',new Map()),G(this,_0x248054(0x103),new Map()),G(this,_0x248054(0x1e5),new Map()),G(this,_0x248054(0xd1),new Map()),this[_0x248054(0xe6)](this[_0x248054(0xaf)][_0x248054(0x3e5)](_0x1bf49d[_0x248054(0x373)])[_0x248054(0x3f0)](_0x589838=>this['_clearUnit'](_0x589838[_0x248054(0x2a0)]())));}[_0x5670e0(0x156)](_0x126547){const _0xcd9eed=_0x5670e0;var _0x14d1ec;return this[_0xcd9eed(0x3c1)](_0x126547,[])&&(((_0x14d1ec=this[_0xcd9eed(0x2ac)]['get'](_0x126547))==null?void 0x0:_0x14d1ec[_0xcd9eed(0x247)])??!0x0);}[_0x5670e0(0x26e)](_0x17a017){return this['_canEditTable'](_0x17a017);}['canDeleteTable'](_0x23ba66){const _0x20eb62=_0x5670e0;var _0x4eceb5;return this['_canEditTable'](_0x23ba66)&&(((_0x4eceb5=this[_0x20eb62(0xaa)][_0x20eb62(0x2db)](_0x23ba66))==null?void 0x0:_0x4eceb5[_0x20eb62(0x15e)])??!0x0);}[_0x5670e0(0x2b1)](_0x35bd83){const _0x2411a2=_0x5670e0;var _0x3b1458;return this['_canEditTable'](_0x35bd83)&&(((_0x3b1458=this['_tablePermissions'][_0x2411a2(0x2db)](_0x35bd83))==null?void 0x0:_0x3b1458[_0x2411a2(0x28c)])??!0x0);}['canEditField'](_0x19f1be,_0xfaf77d){const _0x4bade6=_0x5670e0;var _0x3e41d8;return this['_canEditTable'](_0x19f1be)&&this['_canEdit'](_0x19f1be,[q(_0x19f1be,_0xfaf77d)])&&(((_0x3e41d8=this[_0x4bade6(0x1b0)][_0x4bade6(0x2db)](Ur(_0x19f1be,_0xfaf77d)))==null?void 0x0:_0x3e41d8[_0x4bade6(0x1b7)])??!0x0);}[_0x5670e0(0x183)](_0x49daf8,_0x79dd33){const _0x5b3907=_0x5670e0;var _0x53c669;return this[_0x5b3907(0x3cf)](_0x49daf8,_0x79dd33)&&(((_0x53c669=this['_fieldPermissions'][_0x5b3907(0x2db)](Ur(_0x49daf8,_0x79dd33)))==null?void 0x0:_0x53c669['delete'])??!0x0);}[_0x5670e0(0x1cd)](_0x27a8ed){const _0x35591d=_0x5670e0;var _0x3dcbfc;return this[_0x35591d(0x2de)](_0x27a8ed)&&(((_0x3dcbfc=this['_tablePermissions'][_0x35591d(0x2db)](_0x27a8ed))==null?void 0x0:_0x3dcbfc[_0x35591d(0x136)])??!0x0);}[_0x5670e0(0xff)](_0x1d15cb,_0x46fc66){const _0x3aae12=_0x5670e0;var _0x1ba6a3;let _0x2b009b=this['_recordPermissions'][_0x3aae12(0x2db)](Wr(_0x1d15cb,_0x46fc66));return this['_canEdit'](_0x1d15cb,[K(_0x1d15cb),J(_0x1d15cb,_0x46fc66)])&&(((_0x1ba6a3=this[_0x3aae12(0xaa)][_0x3aae12(0x2db)](_0x1d15cb))==null?void 0x0:_0x1ba6a3[_0x3aae12(0x1b7)])??!0x0)&&((_0x2b009b==null?void 0x0:_0x2b009b[_0x3aae12(0x1b7)])??!0x0)&&((_0x2b009b==null?void 0x0:_0x2b009b[_0x3aae12(0x198)])??!0x0);}[_0x5670e0(0x388)](_0x43a3af,_0x2153a8){const _0xd74de2=_0x5670e0;var _0x20326e,_0x5b7251,_0x29fa92;return this['_canEdit'](_0x43a3af,[K(_0x43a3af),J(_0x43a3af,_0x2153a8)])&&(((_0x20326e=this['_tablePermissions']['get'](_0x43a3af))==null?void 0x0:_0x20326e[_0xd74de2(0x1b7)])??!0x0)&&(((_0x5b7251=this[_0xd74de2(0x103)][_0xd74de2(0x2db)](Wr(_0x43a3af,_0x2153a8)))==null?void 0x0:_0x5b7251[_0xd74de2(0x1b7)])??!0x0)&&(((_0x29fa92=this[_0xd74de2(0x103)][_0xd74de2(0x2db)](Wr(_0x43a3af,_0x2153a8)))==null?void 0x0:_0x29fa92[_0xd74de2(0x15e)])??!0x0);}['canEditCell'](_0x44a7ee,_0xdf4e6,_0x56d49f){const _0xbb6de3=_0x5670e0;var _0x5379b1,_0x5e2f41,_0x5bf5f7;let _0x1c3bf2=this[_0xbb6de3(0x1b0)]['get'](Ur(_0x44a7ee,_0x56d49f));return this[_0xbb6de3(0x3c1)](_0x44a7ee,[K(_0x44a7ee),q(_0x44a7ee,_0x56d49f),J(_0x44a7ee,_0xdf4e6)])&&(((_0x5379b1=this['_tablePermissions'][_0xbb6de3(0x2db)](_0x44a7ee))==null?void 0x0:_0x5379b1[_0xbb6de3(0x1b7)])??!0x0)&&(((_0x5e2f41=this[_0xbb6de3(0x103)][_0xbb6de3(0x2db)](Wr(_0x44a7ee,_0xdf4e6)))==null?void 0x0:_0x5e2f41[_0xbb6de3(0x1b7)])??!0x0)&&(((_0x5bf5f7=this['_recordPermissions']['get'](Wr(_0x44a7ee,_0xdf4e6)))==null?void 0x0:_0x5bf5f7['editCell'])??!0x0)&&((_0x1c3bf2==null?void 0x0:_0x1c3bf2['edit'])??!0x0)&&((_0x1c3bf2==null?void 0x0:_0x1c3bf2['editCell'])??!0x0);}[_0x5670e0(0x142)](_0x3a00ae,_0x3bff80){const _0x5d05a6=_0x5670e0;var _0x321f18,_0x50d9fd,_0x32685f;return this[_0x5d05a6(0x3c1)](_0x3a00ae,[K(_0x3a00ae),Mr(_0x3a00ae,_0x3bff80)])&&(((_0x321f18=this[_0x5d05a6(0xaa)][_0x5d05a6(0x2db)](_0x3a00ae))==null?void 0x0:_0x321f18[_0x5d05a6(0x1b7)])??!0x0)&&(((_0x50d9fd=this[_0x5d05a6(0x1e5)][_0x5d05a6(0x2db)](Gr(_0x3a00ae,_0x3bff80)))==null?void 0x0:_0x50d9fd[_0x5d05a6(0x1b7)])??!0x0)&&(((_0x32685f=this[_0x5d05a6(0xaa)]['get'](_0x3a00ae))==null?void 0x0:_0x32685f[_0x5d05a6(0x408)])??!0x0);}[_0x5670e0(0xf7)](_0x41fac0,_0x2ba5d7){const _0x506aba=_0x5670e0;this[_0x506aba(0x2ac)][_0x506aba(0x2b8)](_0x41fac0,{...this[_0x506aba(0x2ac)][_0x506aba(0x2db)](_0x41fac0),..._0x2ba5d7}),_0x2ba5d7[_0x506aba(0x1b7)]!==void 0x0&&Ir(this[_0x506aba(0x312)],_0x41fac0,_0x41fac0,_0x5ebf52[_0x506aba(0x29b)],_0x2ba5d7[_0x506aba(0x1b7)]);}[_0x5670e0(0x32a)](_0x5a2ce9,_0x5ead0d){const _0x33f839=_0x5670e0;this[_0x33f839(0x329)](_0x5a2ce9),this['_tablePermissions'][_0x33f839(0x2b8)](_0x5a2ce9,{...this[_0x33f839(0xaa)][_0x33f839(0x2db)](_0x5a2ce9),..._0x5ead0d}),this[_0x33f839(0x351)](_0x5a2ce9,K(_0x5a2ce9),_0x5ead0d['edit']);}['setFieldPermission'](_0x417d32,_0x5a041d,_0x3f4c7c){const _0x1f5214=_0x5670e0;this[_0x1f5214(0x329)](_0x417d32);let _0x426cf6=Ur(_0x417d32,_0x5a041d);this[_0x1f5214(0x1b0)][_0x1f5214(0x2b8)](_0x426cf6,{...this['_fieldPermissions'][_0x1f5214(0x2db)](_0x426cf6),..._0x3f4c7c}),this[_0x1f5214(0x351)](_0x417d32,q(_0x417d32,_0x5a041d),_0x3f4c7c['edit']);}[_0x5670e0(0x289)](_0x15f1b4,_0x3c4121,_0x145bc5){const _0x1d6176=_0x5670e0;this[_0x1d6176(0x329)](_0x15f1b4);let _0x51b2ba=Wr(_0x15f1b4,_0x3c4121);this[_0x1d6176(0x103)][_0x1d6176(0x2b8)](_0x51b2ba,{...this[_0x1d6176(0x103)][_0x1d6176(0x2db)](_0x51b2ba),..._0x145bc5}),this['_setObjectEdit'](_0x15f1b4,J(_0x15f1b4,_0x3c4121),_0x145bc5['edit']);}[_0x5670e0(0x267)](_0x25c473,_0x4d884e,_0x36ef69){const _0x632b8e=_0x5670e0;this['_rememberTable'](_0x25c473);let _0x4807a7=Gr(_0x25c473,_0x4d884e);this[_0x632b8e(0x1e5)][_0x632b8e(0x2b8)](_0x4807a7,{...this[_0x632b8e(0x1e5)][_0x632b8e(0x2db)](_0x4807a7),..._0x36ef69}),this[_0x632b8e(0x351)](_0x25c473,Mr(_0x25c473,_0x4d884e),_0x36ef69[_0x632b8e(0x1b7)]);}[_0x5670e0(0x2d5)](_0x26dcb8){const _0x29cf39=_0x5670e0;this[_0x29cf39(0x2ac)][_0x29cf39(0x15e)](_0x26dcb8),Lr(this[_0x29cf39(0x312)],_0x26dcb8,_0x26dcb8,_0x5ebf52[_0x29cf39(0x29b)]);}['clearTablePermission'](_0xa8c3ed){const _0x754aee=_0x5670e0;this[_0x754aee(0xaa)][_0x754aee(0x15e)](_0xa8c3ed),this[_0x754aee(0x147)](_0xa8c3ed,K(_0xa8c3ed));}[_0x5670e0(0x413)](_0x589157,_0x31b0a4){const _0x7cbf94=_0x5670e0;this[_0x7cbf94(0x1b0)][_0x7cbf94(0x15e)](Ur(_0x589157,_0x31b0a4)),this[_0x7cbf94(0x147)](_0x589157,q(_0x589157,_0x31b0a4));}[_0x5670e0(0x117)](_0x362775,_0x50f9e1){const _0x52fadf=_0x5670e0;this[_0x52fadf(0x103)]['delete'](Wr(_0x362775,_0x50f9e1)),this['_clearObjectEdit'](_0x362775,J(_0x362775,_0x50f9e1));}['clearViewPermission'](_0x3b1bfe,_0xedbabe){const _0x1e1d1c=_0x5670e0;this[_0x1e1d1c(0x1e5)]['delete'](Gr(_0x3b1bfe,_0xedbabe)),this['_clearObjectEdit'](_0x3b1bfe,Mr(_0x3b1bfe,_0xedbabe));}['getSnapshot'](){const _0x22ece3=_0x5670e0;return{'bases':Object[_0x22ece3(0x3a7)](this[_0x22ece3(0x2ac)]),'tables':Object['fromEntries'](this[_0x22ece3(0xaa)]),'fields':Object[_0x22ece3(0x3a7)](this['_fieldPermissions']),'records':Object[_0x22ece3(0x3a7)](this[_0x22ece3(0x103)]),'views':Object[_0x22ece3(0x3a7)](this[_0x22ece3(0x1e5)])};}[_0x5670e0(0x2de)](_0x367cb5){const _0x4e6dd6=_0x5670e0;var _0x48e19d;return this['_canEdit'](_0x367cb5,[K(_0x367cb5)])&&(((_0x48e19d=this[_0x4e6dd6(0xaa)][_0x4e6dd6(0x2db)](_0x367cb5))==null?void 0x0:_0x48e19d['edit'])??!0x0);}[_0x5670e0(0x3c1)](_0x32bed6,_0x131fc3){const _0x1c749b=_0x5670e0;var _0x5d467f;let _0x3c5ccb=this[_0x1c749b(0x138)](_0x32bed6);return!_0x3c5ccb||zr(this[_0x1c749b(0x312)],_0x3c5ccb,_0x131fc3)&&(((_0x5d467f=this[_0x1c749b(0x2ac)][_0x1c749b(0x2db)](_0x3c5ccb))==null?void 0x0:_0x5d467f[_0x1c749b(0x1b7)])??!0x0);}[_0x5670e0(0x351)](_0x5f2308,_0x1befe6,_0x17927f){const _0x45cd37=_0x5670e0;if(_0x17927f===void 0x0)return;let _0x5b489f=this[_0x45cd37(0x138)](_0x5f2308);_0x5b489f&&Ir(this['_permissionService'],_0x5b489f,_0x1befe6,_0x5ebf52[_0x45cd37(0x29b)],_0x17927f);}['_clearObjectEdit'](_0x1db9c9,_0x9a8117){const _0x204d5d=_0x5670e0;let _0xfaf35b=this['_resolveBaseId'](_0x1db9c9);_0xfaf35b&&Lr(this[_0x204d5d(0x312)],_0xfaf35b,_0x9a8117,_0x5ebf52[_0x204d5d(0x29b)]);}[_0x5670e0(0x138)](_0x2a1c3d){const _0x14f1fc=_0x5670e0;var _0x5191fa;let _0x56c809=this['_instanceService'][_0x14f1fc(0x1b8)](_0x2a1c3d,_0x1bf49d[_0x14f1fc(0x373)]);return _0x56c809?_0x56c809['getUnitId']():(_0x5191fa=this[_0x14f1fc(0xaf)][_0x14f1fc(0x2aa)](_0x1bf49d[_0x14f1fc(0x373)])[_0x14f1fc(0x361)](_0x77709e=>!!_0x77709e[_0x14f1fc(0x1ec)]()[_0x14f1fc(0x41c)][_0x2a1c3d]))==null?void 0x0:_0x5191fa[_0x14f1fc(0x2a0)]();}[_0x5670e0(0x329)](_0x338e76){const _0x3cba4d=_0x5670e0;let _0x449532=this[_0x3cba4d(0x138)](_0x338e76);_0x449532&&this[_0x3cba4d(0xd1)][_0x3cba4d(0x2b8)](_0x338e76,_0x449532);}[_0x5670e0(0x275)](_0x3ae345){const _0xd421b4=_0x5670e0;this[_0xd421b4(0x2ac)][_0xd421b4(0x15e)](_0x3ae345),this[_0xd421b4(0xd1)][_0xd421b4(0x143)]((_0x288b04,_0x19973f)=>{const _0x54cc6e=_0xd421b4;_0x288b04===_0x3ae345&&(this[_0x54cc6e(0xaa)]['delete'](_0x19973f),Hr(this[_0x54cc6e(0x1b0)],_0x19973f+'\x1f'),Hr(this['_recordPermissions'],_0x19973f+'\x1f'),Hr(this[_0x54cc6e(0x1e5)],_0x19973f+'\x1f'),this[_0x54cc6e(0xd1)]['delete'](_0x19973f));});}};Vr=X([Y(0x0,_0x5b6ee9),Y(0x1,_0x2853e0)],Vr);function Hr(_0x23aacb,_0x2bdf2f){const _0x45d4d8=_0x5670e0;_0x23aacb[_0x45d4d8(0x143)]((_0x261046,_0x5f3361)=>{const _0x4b08bd=_0x45d4d8;_0x5f3361[_0x4b08bd(0xb5)](_0x2bdf2f)&&_0x23aacb[_0x4b08bd(0x15e)](_0x5f3361);});}function Ur(_0x24a983,_0x13ae23){return _0x24a983+'\x1f'+_0x13ae23;}function Wr(_0x5e1395,_0x181770){return _0x5e1395+'\x1f'+_0x181770;}function Gr(_0x5abbeb,_0x421cc8){return _0x5abbeb+'\x1f'+_0x421cc8;}const Kr=_0x39c797(_0x5670e0(0x299));let qr=class{constructor(_0x2f2952,_0x20282f=Jr(),_0x2b217b={}){const _0x4104c9=_0x5670e0;this[_0x4104c9(0x312)]=_0x2f2952,this['_fieldRegistry']=_0x20282f,this['_runtimeContext']=_0x2b217b,G(this,_0x4104c9(0x2da),new W()),G(this,_0x4104c9(0x123),new z());}[_0x5670e0(0x247)](_0x5c6d1b,_0x579e5b,_0x41e128){const _0x4974a5=_0x5670e0;if(!this[_0x4974a5(0x312)][_0x4974a5(0x156)](_0x5c6d1b[_0x4974a5(0x2a0)]()))throw Error(_0x4974a5(0x1d4));_0x4a6ff9(_0x579e5b),this[_0x4974a5(0xc9)](_0x5c6d1b,this[_0x4974a5(0x2da)][_0x4974a5(0x247)](_0x5c6d1b['getSnapshot'](),_0x579e5b,_0x41e128));}[_0x5670e0(0x233)](_0x4a536d,_0x19fa1d,_0x3d2875){const _0x20d4f9=_0x5670e0;if(!this['_permissionService'][_0x20d4f9(0x26e)](_0x19fa1d))throw Error(_0x20d4f9(0x3ea));this[_0x20d4f9(0xc9)](_0x4a536d,this[_0x20d4f9(0x2da)][_0x20d4f9(0x233)](_0x4a536d[_0x20d4f9(0x1ec)](),_0x19fa1d,_0x3d2875));}[_0x5670e0(0x238)](_0x36000a,_0x3555d9){const _0xce574e=_0x5670e0;if(!this['_permissionService']['canDeleteTable'](_0x3555d9))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20table.');let _0xc7c737=He(_0x36000a[_0xce574e(0x1ec)](),_0x3555d9);if(_0xc7c737[_0xce574e(0x19b)]>0x0)throw Error(_0xce574e(0x30c)+_0xc7c737[_0xce574e(0x102)](_0x386370=>_0x386370['tableId']+'.'+_0x386370[_0xce574e(0x186)])['join'](',\x20')+').');this['_apply'](_0x36000a,this[_0xce574e(0x2da)][_0xce574e(0x238)](_0x36000a['getSnapshot'](),_0x3555d9));}[_0x5670e0(0x20b)](_0x397c64,_0x259abe,_0x278af6,_0x1a872a,_0x4fedba){const _0x5d6d65=_0x5670e0;this[_0x5d6d65(0xc9)](_0x397c64,this['createUpdateCellOp'](_0x397c64,_0x259abe,_0x278af6,_0x1a872a,_0x4fedba));}[_0x5670e0(0xda)](_0x4b3f63,_0x1fbb31,_0x5a4602){const _0x56356c=_0x5670e0;this[_0x56356c(0xc9)](_0x4b3f63,this['createSetRecordValuesOp'](_0x4b3f63,_0x1fbb31,_0x5a4602));}[_0x5670e0(0x136)](_0x1a04b9,_0x295ca6,_0x3790be){const _0x30a0f1=_0x5670e0;this['_apply'](_0x1a04b9,this[_0x30a0f1(0x24f)](_0x1a04b9,_0x295ca6,_0x3790be));}['createUpdateCellOp'](_0x3d3477,_0xc8c72d,_0x4b7c0c,_0x3995bc,_0x536602){const _0x816285=_0x5670e0;let _0x444668=_0x3d3477[_0x816285(0x1ec)](),_0x3a599b=this[_0x816285(0x1db)](_0x444668,_0xc8c72d,_0x4b7c0c,_0x3995bc,_0x536602),_0x15fff3=this['_withModifiedSystemValues'](_0x444668,_0xc8c72d,_0x4b7c0c,{[_0x3995bc]:_0x3a599b});return this[_0x816285(0x2da)][_0x816285(0xda)](_0x444668,_0xc8c72d,[_0x15fff3]);}['createSetRecordValuesOp'](_0x172356,_0xa0d0e5,_0x3e8417){const _0x542372=_0x5670e0;let _0x461c3a=_0x172356['getSnapshot'](),_0x3596df=_0x3e8417[_0x542372(0x102)](_0x2bb999=>this[_0x542372(0x1f9)](_0x461c3a,_0xa0d0e5,_0x2bb999[_0x542372(0x191)],{...Object['fromEntries'](Object['entries'](_0x2bb999[_0x542372(0x1c8)])[_0x542372(0x102)](([_0x1fe6ed,_0x23cfe0])=>[_0x1fe6ed,this[_0x542372(0x1db)](_0x461c3a,_0xa0d0e5,_0x2bb999['recordId'],_0x1fe6ed,_0x23cfe0)]))}));return this[_0x542372(0x2da)][_0x542372(0xda)](_0x461c3a,_0xa0d0e5,_0x3596df);}[_0x5670e0(0x24f)](_0x1356e1,_0x3fedae,_0x27794a){const _0x39cfc3=_0x5670e0;if(!this[_0x39cfc3(0x312)][_0x39cfc3(0x1cd)](_0x3fedae))throw Error(_0x39cfc3(0x34d));let _0x54b976=_0x1356e1[_0x39cfc3(0x1ec)](),_0x477d7b=this[_0x39cfc3(0x18d)](_0x54b976[_0x39cfc3(0x41c)][_0x3fedae]);return this[_0x39cfc3(0x2da)][_0x39cfc3(0x136)](_0x54b976,_0x3fedae,this[_0x39cfc3(0x33f)](_0x54b976,_0x3fedae,_0x27794a,_0x477d7b));}['createBatchCreateRecordsOp'](_0x290cfb,_0x37f8d0,_0x2e4d74){const _0x513b69=_0x5670e0;if(!this[_0x513b69(0x312)]['canCreateRecord'](_0x37f8d0))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x225b10=_0x290cfb[_0x513b69(0x1ec)]();return I('BaseCommand.createBatchCreateRecordsOp',()=>{const _0x2c2d38=_0x513b69;let _0x1755e3=this[_0x2c2d38(0x18d)](_0x225b10['tables'][_0x37f8d0]);return this[_0x2c2d38(0x2da)][_0x2c2d38(0x253)](_0x225b10,_0x37f8d0,_0x2e4d74['map'](_0x5470fb=>this['_createRecordWithDefaults'](_0x225b10,_0x37f8d0,_0x5470fb,_0x1755e3)));},{'existingRecords':Object[_0x513b69(0x3ac)](_0x225b10[_0x513b69(0x41c)][_0x37f8d0][_0x513b69(0x83)])[_0x513b69(0x19b)],'records':_0x2e4d74[_0x513b69(0x19b)]});}[_0x5670e0(0x28b)](_0x352323,_0x37dfce,_0x810ed9,_0x3c43ce,_0x35a75e){const _0xf75950=_0x5670e0;if(!this[_0xf75950(0x312)]['canCreateField'](_0x37dfce))throw Error(_0xf75950(0x302));let _0x3cf7b5=_0x352323['getSnapshot']();if(this[_0xf75950(0x239)](_0x3cf7b5,_0x810ed9),_0x3c43ce===0x0)throw Error('[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.');let _0x2e98eb=this[_0xf75950(0x2da)][_0xf75950(0x28c)](_0x3cf7b5,_0x37dfce,{'field':_0x810ed9,'index':_0x3c43ce,'viewIndexes':_0x35a75e}),_0x3dd69e=this['_createSystemFieldValuePatches'](_0x3cf7b5,_0x37dfce,_0x810ed9);if(!_0x3dd69e[_0xf75950(0x19b)])return _0x2e98eb;let _0x5d3a76=this['_applier']['applyOp'](_0x3cf7b5,_0x2e98eb);return R([_0x2e98eb,this['_factory'][_0xf75950(0xda)](_0x5d3a76,_0x37dfce,_0x3dd69e)]);}['deleteRecord'](_0x2c4e10,_0x522fa7,_0x1529f0){const _0x3cf18b=_0x5670e0;if(!this['_permissionService'][_0x3cf18b(0x388)](_0x522fa7,_0x1529f0))throw Error(_0x3cf18b(0x260));this[_0x3cf18b(0xc9)](_0x2c4e10,this[_0x3cf18b(0x2da)][_0x3cf18b(0x35b)](_0x2c4e10[_0x3cf18b(0x1ec)](),_0x522fa7,_0x1529f0));}[_0x5670e0(0x1b1)](_0x1cf155,_0x413d1d,_0x1df19a,_0x22e414){const _0x56ce73=_0x5670e0;if(!this[_0x56ce73(0x312)][_0x56ce73(0x1cd)](_0x413d1d))throw Error(_0x56ce73(0x34d));this[_0x56ce73(0xc9)](_0x1cf155,this[_0x56ce73(0x2da)][_0x56ce73(0x1b1)](_0x1cf155[_0x56ce73(0x1ec)](),_0x413d1d,_0x1df19a,{..._0x22e414,'values':{..._0x22e414[_0x56ce73(0x1c8)],[_0x32decc]:_0x22e414['id']}}));}[_0x5670e0(0x392)](_0x5b604e,_0x106795,_0x5b83ad,_0x4da7fd){const _0x386c0=_0x5670e0;if(!this[_0x386c0(0x312)]['canEditRecord'](_0x106795,_0x5b83ad))throw Error(_0x386c0(0x381));this[_0x386c0(0xc9)](_0x5b604e,this[_0x386c0(0x2da)][_0x386c0(0x392)](_0x5b604e['getSnapshot'](),_0x106795,_0x5b83ad,_0x4da7fd));}[_0x5670e0(0x28c)](_0x14f7de,_0x4bb45c,_0x5a4af7,_0x5505b7,_0x1cac86){const _0x5e8310=_0x5670e0;this[_0x5e8310(0xc9)](_0x14f7de,this[_0x5e8310(0x28b)](_0x14f7de,_0x4bb45c,_0x5a4af7,_0x5505b7,_0x1cac86));}['updateField'](_0x352c50,_0x124e4c,_0xce94f,_0x4ba849){const _0x477602=_0x5670e0;var _0x33a7a3;if(!this[_0x477602(0x312)][_0x477602(0x3cf)](_0x124e4c,_0xce94f))throw Error(_0x477602(0x131));let _0x594357=_0x352c50[_0x477602(0x1ec)](),_0x59d0d8=(_0x33a7a3=_0x594357['tables'][_0x124e4c])==null?void 0x0:_0x33a7a3['fields'][_0xce94f];if(!_0x59d0d8||_0xce94f===_0x32decc)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x477602(0x239)](_0x594357,{..._0x59d0d8,..._0x4ba849}),this[_0x477602(0xc9)](_0x352c50,this[_0x477602(0x2da)]['updateField'](_0x594357,_0x124e4c,_0xce94f,_0x4ba849));}['changeFieldType'](_0x57943a,_0x218224,_0x57e49b,_0x54e44c){const _0x27d7ff=_0x5670e0;var _0x1c6f8d;if(!this[_0x27d7ff(0x312)][_0x27d7ff(0x3cf)](_0x218224,_0x57e49b))throw Error(_0x27d7ff(0x131));let _0x1e88df=_0x57943a[_0x27d7ff(0x1ec)](),_0x25cd11=(_0x1c6f8d=_0x1e88df[_0x27d7ff(0x41c)][_0x218224])==null?void 0x0:_0x1c6f8d[_0x27d7ff(0x2cb)][_0x57e49b];if(!_0x25cd11||_0x57e49b===_0x32decc)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x27d7ff(0x239)](_0x1e88df,{..._0x25cd11,..._0x54e44c}),this['_apply'](_0x57943a,this[_0x27d7ff(0x2da)]['changeFieldType'](_0x1e88df,_0x218224,_0x57e49b,_0x54e44c));}['deleteField'](_0x4c481e,_0x7cb96c,_0x4fcf3c){const _0x1cc046=_0x5670e0;var _0x7981c5;if(((_0x7981c5=_0x4c481e[_0x1cc046(0x1ec)]()['tables'][_0x7cb96c])==null?void 0x0:_0x7981c5[_0x1cc046(0x2d7)])===_0x4fcf3c||_0x4fcf3c===_0x32decc)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this['_permissionService'][_0x1cc046(0x183)](_0x7cb96c,_0x4fcf3c))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0x1cc046(0xc9)](_0x4c481e,this[_0x1cc046(0x2da)][_0x1cc046(0x2c8)](_0x4c481e[_0x1cc046(0x1ec)](),_0x7cb96c,_0x4fcf3c));}[_0x5670e0(0x21c)](_0x37fa8f,_0x3d7d6f,_0x49bad7,_0x4adaa1){const _0x1df4f2=_0x5670e0;if(!this[_0x1df4f2(0x312)]['canEditField'](_0x3d7d6f,_0x49bad7))throw Error(_0x1df4f2(0x131));if(_0x49bad7===_0x32decc||_0x4adaa1['beforeFieldId']===_0x32decc)throw Error('[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.');this['_apply'](_0x37fa8f,this[_0x1df4f2(0x2da)][_0x1df4f2(0x21c)](_0x37fa8f['getSnapshot'](),_0x3d7d6f,_0x49bad7,_0x4adaa1));}[_0x5670e0(0x2eb)](_0x59fdee,_0x2f64b5,_0x517be9,_0x3d7dad){const _0x4a33a6=_0x5670e0;if(!this[_0x4a33a6(0x312)][_0x4a33a6(0x142)](_0x2f64b5,_0x517be9['id']))throw Error(_0x4a33a6(0x33b));this[_0x4a33a6(0xc9)](_0x59fdee,this[_0x4a33a6(0x2da)][_0x4a33a6(0x2eb)](_0x59fdee['getSnapshot'](),_0x2f64b5,_0x517be9,_0x3d7dad));}['renameView'](_0x1ee732,_0x4cfd57,_0x479a64,_0x57d011){const _0x2a0bde=_0x5670e0;if(!this['_permissionService'][_0x2a0bde(0x142)](_0x4cfd57,_0x479a64))throw Error(_0x2a0bde(0x33b));this[_0x2a0bde(0xc9)](_0x1ee732,this['_factory'][_0x2a0bde(0x334)](_0x1ee732[_0x2a0bde(0x1ec)](),_0x4cfd57,_0x479a64,_0x57d011));}[_0x5670e0(0x32b)](_0x21a75a,_0x38b433,_0x3d200a){const _0x4db672=_0x5670e0;if(!this[_0x4db672(0x312)][_0x4db672(0x142)](_0x38b433,_0x3d200a))throw Error(_0x4db672(0x33b));this['_apply'](_0x21a75a,this[_0x4db672(0x2da)][_0x4db672(0x32b)](_0x21a75a[_0x4db672(0x1ec)](),_0x38b433,_0x3d200a));}[_0x5670e0(0x38e)](_0x588e89,_0x44fa04,_0x3fee28,_0xeb46d7){const _0x2b04fc=_0x5670e0;if(!this[_0x2b04fc(0x312)][_0x2b04fc(0x142)](_0x44fa04,_0x3fee28))throw Error(_0x2b04fc(0x33b));this[_0x2b04fc(0xc9)](_0x588e89,this[_0x2b04fc(0x2da)][_0x2b04fc(0x38e)](_0x588e89[_0x2b04fc(0x1ec)](),_0x44fa04,_0x3fee28,_0xeb46d7));}[_0x5670e0(0x35c)](_0x35ca1d,_0x464512,_0x59ac92,_0x8602d){const _0x23cc9f=_0x5670e0;if(!this['_permissionService']['canManageView'](_0x464512,_0x59ac92))throw Error(_0x23cc9f(0x33b));this[_0x23cc9f(0xc9)](_0x35ca1d,this['_factory'][_0x23cc9f(0x35c)](_0x35ca1d[_0x23cc9f(0x1ec)](),_0x464512,_0x59ac92,_0x8602d));}[_0x5670e0(0x19a)](_0x246200,_0x20d552,_0x22a1a7,_0x4b0cbc){const _0x16d1f8=_0x5670e0;if(!this[_0x16d1f8(0x312)][_0x16d1f8(0x142)](_0x20d552,_0x22a1a7))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x16d1f8(0xc9)](_0x246200,this[_0x16d1f8(0x2da)]['setViewFilter'](_0x246200[_0x16d1f8(0x1ec)](),_0x20d552,_0x22a1a7,_0x4b0cbc));}[_0x5670e0(0x16c)](_0x2b8bbe,_0x5bdb09,_0x3a874a,_0x515d4f){const _0x31ebc9=_0x5670e0;if(!this[_0x31ebc9(0x312)][_0x31ebc9(0x142)](_0x5bdb09,_0x3a874a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x31ebc9(0xc9)](_0x2b8bbe,this[_0x31ebc9(0x2da)][_0x31ebc9(0x16c)](_0x2b8bbe['getSnapshot'](),_0x5bdb09,_0x3a874a,_0x515d4f));}[_0x5670e0(0x1bd)](_0x13397d,_0x166ab1,_0x1ca8e1,_0x4d9895){const _0x33e187=_0x5670e0;if(!this['_permissionService'][_0x33e187(0x142)](_0x166ab1,_0x1ca8e1))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x33e187(0xc9)](_0x13397d,this['_factory'][_0x33e187(0x1bd)](_0x13397d[_0x33e187(0x1ec)](),_0x166ab1,_0x1ca8e1,_0x4d9895));}[_0x5670e0(0x2af)](_0x4080f1,_0x311458,_0x77e53f,_0x1cf573,_0x4d5386){const _0x414eca=_0x5670e0;if(!this[_0x414eca(0x312)][_0x414eca(0x142)](_0x311458,_0x77e53f))throw Error(_0x414eca(0x33b));this[_0x414eca(0xc9)](_0x4080f1,this['_factory']['setViewFieldVisible'](_0x4080f1[_0x414eca(0x1ec)](),_0x311458,_0x77e53f,_0x1cf573,_0x4d5386));}[_0x5670e0(0x1eb)](_0x195f4b,_0x2d5dcc,_0x382bd6,_0x21b787,_0x62771c){const _0x4fee18=_0x5670e0;if(!this['_permissionService'][_0x4fee18(0x142)](_0x2d5dcc,_0x382bd6))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x195f4b,this[_0x4fee18(0x2da)][_0x4fee18(0x1eb)](_0x195f4b['getSnapshot'](),_0x2d5dcc,_0x382bd6,_0x21b787,_0x62771c));}['setViewFieldOrder'](_0x3f01d9,_0x59f8dc,_0x4fb95f,_0x24b870,_0x535d20){const _0x33ec2e=_0x5670e0;if(!this[_0x33ec2e(0x312)][_0x33ec2e(0x142)](_0x59f8dc,_0x4fb95f))throw Error(_0x33ec2e(0x33b));this['_apply'](_0x3f01d9,this[_0x33ec2e(0x2da)]['setViewFieldOrder'](_0x3f01d9[_0x33ec2e(0x1ec)](),_0x59f8dc,_0x4fb95f,_0x24b870,_0x535d20));}['_apply'](_0x432761,_0x482a4c){const _0x160d92=_0x5670e0;let _0x1f847e=_0x432761['getSnapshot']();_0x432761[_0x160d92(0x37f)](this['_applier'][_0x160d92(0x2ee)](_0x1f847e,_0x482a4c));}[_0x5670e0(0x33f)](_0xd024b4,_0x7caaa,_0x5b5e69,_0x2d9e58=this[_0x5670e0(0x18d)](_0xd024b4[_0x5670e0(0x41c)][_0x7caaa])){const _0x33f1b5=_0x5670e0;let _0x253317=_0xd024b4[_0x33f1b5(0x41c)][_0x7caaa],_0x58b273=_0x5b5e69[_0x33f1b5(0x3bd)]??_0x5b5e69['updatedBy']??this[_0x33f1b5(0x104)](),_0x50e6af={..._0x5b5e69,'createdBy':_0x5b5e69['createdBy']??_0x58b273,'updatedBy':_0x5b5e69['updatedBy']??_0x58b273,'values':{..._0x5b5e69[_0x33f1b5(0x1c8)]}};return _0x50e6af[_0x33f1b5(0x1c8)][_0x32decc]=_0x50e6af['id'],_0x253317[_0x33f1b5(0x367)][_0x33f1b5(0x143)](_0x1bef8a=>{const _0x57a911=_0x33f1b5;let _0x3e472e=_0x253317[_0x57a911(0x2cb)][_0x1bef8a];if(_0x3e472e&&_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]===void 0x0)switch(_0x3e472e[_0x57a911(0xeb)]){case _0x4fe15f[_0x57a911(0x10a)]:var _0x169d4f;_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]=((_0x169d4f=_0x2d9e58['get'](_0x1bef8a))==null?void 0x0:_0x169d4f())??this[_0x57a911(0xd0)](_0x253317,_0x1bef8a)();break;case _0x4fe15f[_0x57a911(0x1ee)]:_0x50e6af[_0x57a911(0x3bd)]&&(_0x50e6af['values'][_0x1bef8a]=_0x50e6af['createdBy']);break;case _0x4fe15f[_0x57a911(0x429)]:_0x50e6af[_0x57a911(0x118)]&&(_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]=_0x50e6af[_0x57a911(0x118)]);break;case _0x4fe15f[_0x57a911(0x121)]:_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]=B(_0x50e6af['createdAt']);break;case _0x4fe15f[_0x57a911(0x236)]:_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]=B(_0x50e6af[_0x57a911(0x120)]);break;default:{let _0x1b542d=_0x3e472e[_0x57a911(0x41a)];_0x1b542d!=null&&_0x1b542d!==''&&!(Array['isArray'](_0x1b542d)&&_0x1b542d[_0x57a911(0x19b)]===0x0)&&(_0x50e6af[_0x57a911(0x1c8)][_0x1bef8a]=_0x1b542d);}}}),_0x50e6af;}[_0x5670e0(0x1f9)](_0x1ca89a,_0x1954b8,_0x3312c3,_0x5193b6){const _0x1f960a=_0x5670e0;var _0x435b22,_0x23112e;let _0x59fed9=_0x1ca89a[_0x1f960a(0x41c)][_0x1954b8],_0x2e58b8=((_0x435b22=(_0x23112e=this[_0x1f960a(0xed)])['now'])==null?void 0x0:_0x435b22[_0x1f960a(0x321)](_0x23112e))??Date['now'](),_0x443253=this[_0x1f960a(0x104)](),_0x5410a1={..._0x5193b6};return _0x59fed9[_0x1f960a(0x367)][_0x1f960a(0x143)](_0x509d13=>{const _0x5dd417=_0x1f960a;let _0x2fe9d6=_0x59fed9[_0x5dd417(0x2cb)][_0x509d13];_0x2fe9d6&&(_0x2fe9d6[_0x5dd417(0xeb)]===_0x4fe15f[_0x5dd417(0x236)]&&(_0x5410a1[_0x509d13]=B(_0x2e58b8)),_0x2fe9d6[_0x5dd417(0xeb)]===_0x4fe15f[_0x5dd417(0x429)]&&_0x443253&&(_0x5410a1[_0x509d13]=_0x443253));}),{'recordId':_0x3312c3,'values':_0x5410a1,'recordPatch':{'updatedAt':_0x2e58b8,..._0x443253?{'updatedBy':_0x443253}:{}}};}['_createSystemFieldValuePatches'](_0x326507,_0x570b99,_0x172af7){const _0x3c39d9=_0x5670e0;let _0x35633d=_0x326507[_0x3c39d9(0x41c)][_0x570b99];return!_0x35633d||!Yr(_0x172af7)?[]:_0x172af7[_0x3c39d9(0xeb)]===_0x4fe15f[_0x3c39d9(0x10a)]?this['_createNumberingFieldValuePatches'](_0x35633d,_0x172af7['id']):Object['values'](_0x35633d[_0x3c39d9(0x83)])['flatMap'](_0x1e31b0=>{const _0x46fc35=_0x3c39d9;let _0x41e358=this[_0x46fc35(0x38c)](_0x172af7,_0x1e31b0);return _0x41e358===void 0x0?[]:[{'recordId':_0x1e31b0['id'],'values':{[_0x172af7['id']]:_0x41e358}}];});}[_0x5670e0(0x38c)](_0x1c5d86,_0x3e76f2){const _0xabaa99=_0x5670e0;switch(_0x1c5d86[_0xabaa99(0xeb)]){case _0x4fe15f[_0xabaa99(0x1ee)]:return _0x3e76f2[_0xabaa99(0x3bd)]??this['_getCurrentUserId']();case _0x4fe15f[_0xabaa99(0x429)]:return _0x3e76f2[_0xabaa99(0x118)]??this[_0xabaa99(0x104)]();case _0x4fe15f['CreatedAt']:return B(_0x3e76f2['createdAt']??Date[_0xabaa99(0x2b3)]());case _0x4fe15f['UpdatedAt']:return B(_0x3e76f2[_0xabaa99(0x120)]??Date[_0xabaa99(0x2b3)]());default:return;}}[_0x5670e0(0x18d)](_0x4d3f7f){const _0x2afe9b=_0x5670e0;let _0x1584f3=new Map();return _0x4d3f7f&&_0x4d3f7f[_0x2afe9b(0x367)][_0x2afe9b(0x143)](_0x2e426f=>{const _0x5ae8b3=_0x2afe9b;let _0x33a9b2=_0x4d3f7f[_0x5ae8b3(0x2cb)][_0x2e426f];(_0x33a9b2==null?void 0x0:_0x33a9b2[_0x5ae8b3(0xeb)])===_0x4fe15f[_0x5ae8b3(0x10a)]&&_0x1584f3[_0x5ae8b3(0x2b8)](_0x2e426f,this[_0x5ae8b3(0xd0)](_0x4d3f7f,_0x2e426f));}),_0x1584f3;}[_0x5670e0(0xd0)](_0x101351,_0x570f20){const _0x4ca63b=_0x5670e0;let _0x2d3147=Object['values'](_0x101351[_0x4ca63b(0x83)])[_0x4ca63b(0x303)]((_0x59538a,_0x45cff7)=>{const _0x30fbe9=_0x4ca63b;let _0x5d297c=Number(_0x45cff7[_0x30fbe9(0x1c8)][_0x570f20]);return Number[_0x30fbe9(0x154)](_0x5d297c)?Math[_0x30fbe9(0x272)](_0x59538a,_0x5d297c):_0x59538a;},0x0);return()=>String(++_0x2d3147);}[_0x5670e0(0x209)](_0x5583b7,_0x1ec721){const _0x306308=_0x5670e0;let _0x377676=this['_getOrderedRecords'](_0x5583b7),_0x4854c6=this[_0x306308(0xd0)](_0x5583b7,_0x1ec721);return _0x377676[_0x306308(0x98)](_0x2b0cf3=>this[_0x306308(0x2e0)](_0x2b0cf3[_0x306308(0x1c8)][_0x1ec721])?[]:[{'recordId':_0x2b0cf3['id'],'values':{[_0x1ec721]:_0x4854c6()}}]);}[_0x5670e0(0x9c)](_0x30b8aa){const _0x4cba35=_0x5670e0;var _0x32cf4f;let _0x566fc6=Object['values'](_0x30b8aa[_0x4cba35(0x83)]),_0x516101=new Map(_0x566fc6[_0x4cba35(0x102)](_0x3d7e0e=>[_0x3d7e0e['id'],_0x3d7e0e])),_0xa9e4a8=[],_0x263983=new Set();(_0x32cf4f=_0x30b8aa[_0x4cba35(0x411)])==null||_0x32cf4f[_0x4cba35(0x143)](_0x27da9d=>{const _0x156c9e=_0x4cba35;let _0x5d8325=_0x516101[_0x156c9e(0x2db)](_0x27da9d);_0x5d8325&&(_0xa9e4a8['push'](_0x5d8325),_0x263983[_0x156c9e(0x41d)](_0x27da9d));});let _0x1ec22a=_0x566fc6[_0x4cba35(0x364)](_0xdefc5e=>!_0x263983['has'](_0xdefc5e['id']))[_0x4cba35(0x249)]((_0x9f3a37,_0x2ed418)=>String(_0x9f3a37[_0x4cba35(0x27b)]??_0x9f3a37['id'])[_0x4cba35(0x135)](String(_0x2ed418['orderKey']??_0x2ed418['id']))||_0x9f3a37['id'][_0x4cba35(0x135)](_0x2ed418['id']));return[..._0xa9e4a8,..._0x1ec22a];}['_isNonEmptyCellValue'](_0x2dd89e){return _0x2dd89e!=null&&_0x2dd89e!==''&&!(Array['isArray'](_0x2dd89e)&&_0x2dd89e['length']===0x0);}[_0x5670e0(0x104)](){const _0x4a6f27=_0x5670e0;var _0x496c24,_0x38ea02,_0x2c79a9,_0x43265d;return((_0x496c24=(_0x38ea02=this[_0x4a6f27(0xed)])['getCurrentUserId'])==null?void 0x0:_0x496c24[_0x4a6f27(0x321)](_0x38ea02))??((_0x2c79a9=(_0x43265d=this[_0x4a6f27(0xed)])['getCurrentUser'])==null||(_0x2c79a9=_0x2c79a9[_0x4a6f27(0x321)](_0x43265d))==null?void 0x0:_0x2c79a9[_0x4a6f27(0x164)])??void 0x0;}[_0x5670e0(0x1db)](_0x20b499,_0x306bb8,_0x17c09f,_0x542b,_0x145cf9){const _0x1bf127=_0x5670e0;var _0x8e130f;if(!this[_0x1bf127(0x312)]['canEditCell'](_0x306bb8,_0x17c09f,_0x542b))throw Error(_0x1bf127(0x368));let _0x334253=(_0x8e130f=_0x20b499['tables'][_0x306bb8])==null?void 0x0:_0x8e130f[_0x1bf127(0x2cb)][_0x542b];if(!_0x334253)throw Error(_0x1bf127(0x3fa)+_0x542b+_0x1bf127(0x401));let _0x362800=this[_0x1bf127(0x26b)][_0x1bf127(0x2db)](_0x334253[_0x1bf127(0xeb)]);if(_0x334253['readonly']||_0x334253[_0x1bf127(0x13a)]||!_0x362800[_0x1bf127(0x1ab)](_0x334253)['editable'])throw Error(_0x1bf127(0x2ce));let _0x67d718=_0x362800[_0x1bf127(0x141)](_0x145cf9,_0x334253),_0x25d841=_0x362800[_0x1bf127(0x1be)](_0x67d718,_0x334253);if(!_0x25d841[_0x1bf127(0x246)])throw Error(_0x25d841[_0x1bf127(0x37a)]??_0x1bf127(0x1ed));let _0x850960=_0x334253[_0x1bf127(0xeb)]===_0x4fe15f[_0x1bf127(0x36f)]?Ve(_0x20b499,_0x334253,_0x67d718):{'valid':!0x0};if(!_0x850960['valid'])throw Error(_0x850960[_0x1bf127(0x37a)]??_0x1bf127(0xbf));return _0x67d718;}[_0x5670e0(0x239)](_0x5297d3,_0x122fdd){const _0x32248e=_0x5670e0;if(_0x122fdd['id']===_0x32decc||_0x122fdd['type']===_0x4fe15f['RecordId']||_0x1fb0f2(_0x122fdd[_0x32248e(0x26f)]))throw Error(_0x32248e(0xd4));let _0xce3e34=Be(_0x5297d3,_0x122fdd);if(!_0xce3e34['valid'])throw Error(_0xce3e34[_0x32248e(0x37a)]??'[BaseCommandService]:\x20invalid\x20field\x20definition.');}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x5ef9d7=_0x5670e0;let _0xdff404=new hr();return zn()[_0x5ef9d7(0x143)](_0x12fcfd=>_0xdff404[_0x5ef9d7(0x2fb)](_0x12fcfd)),_0xdff404;}function Yr(_0x1d5822){const _0x323eb9=_0x5670e0;return _0x1d5822[_0x323eb9(0xeb)]===_0x4fe15f[_0x323eb9(0x10a)]||_0x1d5822[_0x323eb9(0xeb)]===_0x4fe15f[_0x323eb9(0x1ee)]||_0x1d5822[_0x323eb9(0xeb)]===_0x4fe15f[_0x323eb9(0x429)]||_0x1d5822['type']===_0x4fe15f[_0x323eb9(0x121)]||_0x1d5822[_0x323eb9(0xeb)]===_0x4fe15f[_0x323eb9(0x236)];}const Xr=new Set([_0x4fe15f['Progress'],_0x4fe15f['Rating'],_0x4fe15f[_0x5670e0(0x1f2)]]);function Zr(_0x367574){const _0x5d5c0f=_0x5670e0;let _0x3b72a7=_0x367574['fields'][_0x367574[_0x5d5c0f(0x2d7)]];if((!_0x3b72a7||_0x3b72a7[_0x5d5c0f(0x13a)]!==!0x0&&_0x3b72a7['id']['toLowerCase']()!=='id'&&_0x3b72a7[_0x5d5c0f(0x26f)][_0x5d5c0f(0x12d)]()[_0x5d5c0f(0x374)]()!=='id')&&_0x3b72a7)return _0x3b72a7['id'];for(let _0x306ae3 of _0x367574[_0x5d5c0f(0x367)]){let _0x56310f=_0x367574['fields'][_0x306ae3];if(_0x56310f&&_0x56310f['id']!==_0x367574[_0x5d5c0f(0x2d7)]&&_0x56310f[_0x5d5c0f(0x13a)]!==!0x0&&_0x56310f['type']!==_0x4fe15f[_0x5d5c0f(0x300)])return _0x56310f['id'];}return _0x367574[_0x5d5c0f(0x2d7)];}function Qr(_0x599194,_0xc08202=[],_0x331159=0x5){const _0x16f91b=_0x5670e0;let _0x4858e8=new Set(_0xc08202['filter'](_0x4a5929=>!!_0x4a5929)),_0x4ef412=[],_0x5eea8c=[];for(let _0xbc2190 of _0x599194[_0x16f91b(0x367)]){let _0x22791e=_0x599194[_0x16f91b(0x2cb)][_0xbc2190];_0x22791e&&_0x22791e[_0x16f91b(0x13a)]!==!0x0&&_0x22791e['type']!==_0x4fe15f['RecordId']&&!_0x4858e8['has'](_0x22791e['id'])&&(Xr[_0x16f91b(0xb9)](_0x22791e[_0x16f91b(0xeb)])?_0x4ef412:_0x5eea8c)['push'](_0x22791e['id']);}return[..._0x4ef412,..._0x5eea8c][_0x16f91b(0xfa)](0x0,_0x331159);}function $r(){const _0x36f9f2=_0x5670e0;return[{'type':_0x528e48['Grid'],'i18nKey':_0x36f9f2(0xc7),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0xb62e4d=_0x36f9f2;throw Error(_0xb62e4d(0x36d));}},{'type':_0x528e48[_0x36f9f2(0x340)],'i18nKey':_0x36f9f2(0x38f),'createDefaultConfig':_0x1f2182=>{const _0x479d4a=_0x36f9f2;let _0xdfcb0=ei(_0x1f2182);return{'groupFieldId':_0xdfcb0,'coverFieldId':null,'cardLayout':_0x479d4a(0x377),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x1f2182[_0x479d4a(0x2d7)],'fieldIds':Qr(_0x1f2182,[_0x1f2182[_0x479d4a(0x2d7)],_0xdfcb0])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x441765=_0x36f9f2;throw Error(_0x441765(0x3ca));}},{'type':_0x528e48[_0x36f9f2(0x16e)],'i18nKey':_0x36f9f2(0x22b),'createDefaultConfig':_0x3b83eb=>{const _0x525561=_0x36f9f2;let _0x401b2a=ti(_0x3b83eb);return{'startDateFieldId':_0x401b2a,'endDateFieldId':ni(_0x3b83eb,_0x401b2a),'titleFieldId':_0x3b83eb[_0x525561(0x2d7)],'mode':_0x525561(0xca),'timeslotSize':_0x525561(0x35e),'timeZone':'local','displayColor':{'type':_0x525561(0x363),'color':_0x525561(0x2ab)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x528e48[_0x36f9f2(0xf8)],'i18nKey':_0x36f9f2(0x15b),'createDefaultConfig':_0x431b68=>{const _0x482328=_0x36f9f2;let _0x2d959f=ti(_0x431b68);return{'startDateFieldId':_0x2d959f,'endDateFieldId':ni(_0x431b68,_0x2d959f)??_0x2d959f,'titleFieldId':_0x431b68[_0x482328(0x2d7)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x482328(0x363),'color':_0x482328(0x3ae)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x528e48[_0x36f9f2(0x85)],'i18nKey':_0x36f9f2(0x30e),'createDefaultConfig':_0x82797e=>{const _0x19ad21=_0x36f9f2;let _0xcfb3b=Zr(_0x82797e);return{'coverFieldId':null,'cardLayout':_0x19ad21(0x377),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0xcfb3b,'coverFieldId':null,'fieldIds':Qr(_0x82797e,[_0xcfb3b,_0x82797e[_0x19ad21(0x2d7)]])},'cardSize':_0x19ad21(0x35e)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}}];}function ei(_0x4a0048){const _0xd4e8d9=_0x5670e0;var _0x3d841a,_0x349ed8,_0x1c0c3a;let _0x59fe00=_0x4a0048['fieldOrder']['map'](_0x20dedf=>_0x4a0048[_0xd4e8d9(0x2cb)][_0x20dedf])['filter'](_0x4df974=>!!_0x4df974);return((_0x3d841a=_0x59fe00['find'](_0x3911f8=>_0x3911f8[_0xd4e8d9(0xeb)]===_0x4fe15f[_0xd4e8d9(0x1dd)]||_0x3911f8[_0xd4e8d9(0xeb)]===_0x4fe15f[_0xd4e8d9(0x8b)]||_0x3911f8[_0xd4e8d9(0xeb)]===_0x4fe15f['Group']))==null?void 0x0:_0x3d841a['id'])??((_0x349ed8=_0x59fe00[_0xd4e8d9(0x361)](_0x1cf8bf=>_0x1cf8bf[_0xd4e8d9(0xeb)]===_0x4fe15f[_0xd4e8d9(0x3fb)]))==null?void 0x0:_0x349ed8['id'])??((_0x1c0c3a=_0x59fe00['find'](_0x27db08=>_0x27db08[_0xd4e8d9(0xeb)]===_0x4fe15f[_0xd4e8d9(0x1cc)]||_0x27db08['type']===_0x4fe15f[_0xd4e8d9(0x121)]||_0x27db08['type']===_0x4fe15f[_0xd4e8d9(0x236)]))==null?void 0x0:_0x1c0c3a['id'])??_0x4a0048[_0xd4e8d9(0x2d7)];}function ti(_0x4497f8){const _0x735c25=_0x5670e0;var _0x2b63f1;return((_0x2b63f1=_0x4497f8[_0x735c25(0x367)][_0x735c25(0x102)](_0x35bcef=>_0x4497f8[_0x735c25(0x2cb)][_0x35bcef])[_0x735c25(0x361)](ri))==null?void 0x0:_0x2b63f1['id'])??'';}function ni(_0x187b5f,_0x426e2a){const _0x1d02a2=_0x5670e0;var _0x2ea19c;return(_0x2ea19c=_0x187b5f[_0x1d02a2(0x367)][_0x1d02a2(0x102)](_0x966e7f=>_0x187b5f['fields'][_0x966e7f])['find'](_0x45cb60=>ri(_0x45cb60)&&_0x45cb60['id']!==_0x426e2a))==null?void 0x0:_0x2ea19c['id'];}function ri(_0x231d51){const _0x2e5c3d=_0x5670e0;return!!_0x231d51&&_0x231d51[_0x2e5c3d(0xeb)]===_0x4fe15f[_0x2e5c3d(0x1cc)]&&_0x231d51[_0x2e5c3d(0x358)]!==!0x0&&_0x231d51[_0x2e5c3d(0x13a)]!==!0x0;}const ii=_0x39c797('base.projection.service'),ai=new Set([_0x4fe15f[_0x5670e0(0x27d)],_0x4fe15f['Currency'],_0x4fe15f['Progress'],_0x4fe15f[_0x5670e0(0x1ae)],_0x4fe15f[_0x5670e0(0x1cc)],_0x4fe15f['CreatedAt'],_0x4fe15f[_0x5670e0(0x236)],_0x4fe15f[_0x5670e0(0x1f2)]]),oi=0x5265c00;let si=class extends _0x29abb3{constructor(_0x124c76){const _0x463b8d=_0x5670e0;super(),this['_fieldRegistry']=_0x124c76,G(this,_0x463b8d(0x17a),new Map()),G(this,_0x463b8d(0x26c),new WeakMap()),G(this,_0x463b8d(0xfd),new Map()),G(this,'_projectedViewRowsCache',new Map()),G(this,_0x463b8d(0x354),new Map()),G(this,_0x463b8d(0x25d),new Map()),G(this,'_globalRevision',0x0),G(this,'_tableRevisions',new Map()),G(this,_0x463b8d(0x1fe),new Map()),G(this,_0x463b8d(0x42d),new Map()),G(this,_0x463b8d(0x1d5),new Map());}[_0x5670e0(0x296)](_0x5beaa4){const _0x17a7b3=_0x5670e0;return this[_0x17a7b3(0x17a)][_0x17a7b3(0x2b8)](_0x5beaa4[_0x17a7b3(0xeb)],_0x5beaa4),_0x1abac0(()=>this[_0x17a7b3(0x17a)][_0x17a7b3(0x15e)](_0x5beaa4['type']));}[_0x5670e0(0x404)](_0x2e7325,_0x42a365,_0x136cd2){const _0x4b82c0=_0x5670e0;var _0x212588,_0x46e452,_0x313ef3;return I(_0x4b82c0(0x416),()=>{const _0x15bdc4=_0x4b82c0;let _0x2f900e=this['_getCachedProjection'](_0x2e7325,_0x42a365,_0x136cd2);if(_0x2f900e)return _0x2f900e;let _0x31d0b6=_0x2e7325[_0x15bdc4(0x41c)][_0x42a365],_0x160f2e=_0x31d0b6==null?void 0x0:_0x31d0b6[_0x15bdc4(0x21f)][_0x136cd2];if(!_0x31d0b6||!_0x160f2e)return this['_setCachedProjection'](_0x2e7325,_0x42a365,_0x136cd2,{'type':_0x15bdc4(0xc8),'viewType':(_0x160f2e==null?void 0x0:_0x160f2e['type'])??_0x528e48['Grid'],'reason':_0x15bdc4(0x111)});let _0x19c65b;switch(_0x160f2e[_0x15bdc4(0xeb)]){case _0x528e48[_0x15bdc4(0x2a8)]:_0x19c65b=this[_0x15bdc4(0x400)](_0x31d0b6,_0x160f2e);break;case _0x528e48[_0x15bdc4(0xf8)]:_0x19c65b=this[_0x15bdc4(0x405)](_0x31d0b6,_0x160f2e);break;case _0x528e48[_0x15bdc4(0x340)]:_0x19c65b=this[_0x15bdc4(0x325)](_0x31d0b6,_0x160f2e);break;case _0x528e48[_0x15bdc4(0x16e)]:_0x19c65b=this['_buildCalendar'](_0x31d0b6,_0x160f2e);break;case _0x528e48[_0x15bdc4(0x85)]:_0x19c65b=this[_0x15bdc4(0x18a)](_0x31d0b6,_0x160f2e);break;default:_0x19c65b={'type':_0x15bdc4(0xc8),'viewType':_0x160f2e[_0x15bdc4(0xeb)],'reason':_0x15bdc4(0x111)};}return this['_setCachedProjection'](_0x2e7325,_0x42a365,_0x136cd2,_0x19c65b);},{'tableId':_0x42a365,'viewId':_0x136cd2,'viewType':(_0x212588=_0x2e7325['tables'][_0x42a365])==null||(_0x212588=_0x212588[_0x4b82c0(0x21f)][_0x136cd2])==null?void 0x0:_0x212588[_0x4b82c0(0xeb)],'records':((_0x46e452=_0x2e7325['tables'][_0x42a365])==null||(_0x46e452=_0x46e452['recordOrder'])==null?void 0x0:_0x46e452[_0x4b82c0(0x19b)])??Object[_0x4b82c0(0x3ac)](((_0x313ef3=_0x2e7325[_0x4b82c0(0x41c)][_0x42a365])==null?void 0x0:_0x313ef3[_0x4b82c0(0x83)])??{})['length']});}[_0x5670e0(0x2f4)](_0x340a03,_0x209e84,_0x55a60e){const _0x3765b7=_0x5670e0;var _0x373e0c,_0x4efef9,_0x39517b;let _0xaf33b6=_0x340a03['tables'][_0x209e84],_0x2c2896=_0xaf33b6==null?void 0x0:_0xaf33b6[_0x3765b7(0x21f)][_0x55a60e];if(!_0xaf33b6||!_0x2c2896)throw Error(_0x3765b7(0x1ff)+_0x55a60e+'\x22.');let _0x37ea7a=_0x293fa4=>!!_0xaf33b6['fields'][_0x293fa4],_0x10311a={..._0x2c2896,'filter':_0x2c2896[_0x3765b7(0x364)]?{..._0x2c2896[_0x3765b7(0x364)],'conditions':_0x2c2896[_0x3765b7(0x364)]['conditions'][_0x3765b7(0x364)](_0x1e5cd7=>_0x37ea7a(_0x1e5cd7[_0x3765b7(0x186)]))}:_0x2c2896[_0x3765b7(0x364)],'sort':(_0x373e0c=_0x2c2896[_0x3765b7(0x249)])==null?void 0x0:_0x373e0c[_0x3765b7(0x364)](_0x5db7b4=>_0x37ea7a(_0x5db7b4['fieldId'])),'group':(_0x4efef9=_0x2c2896[_0x3765b7(0x3dd)])==null?void 0x0:_0x4efef9[_0x3765b7(0x364)](_0x13597f=>_0x37ea7a(_0x13597f['fieldId'])),'fieldOrder':(_0x39517b=_0x2c2896[_0x3765b7(0x367)])==null?void 0x0:_0x39517b[_0x3765b7(0x364)](_0x37ea7a),'fieldSettings':Object[_0x3765b7(0x3a7)](Object[_0x3765b7(0x419)](_0x2c2896['fieldSettings']??{})[_0x3765b7(0x364)](([_0x39e859])=>_0x37ea7a(_0x39e859)))};if(_0x10311a[_0x3765b7(0xeb)]===_0x3765b7(0x2a5)){var _0x3ee1f8;let _0x56758d=_0x10311a[_0x3765b7(0x407)]??{},_0x39cff3=this['_resolveKanbanGroupFieldId'](_0xaf33b6,_0x10311a),_0x20da1e=this[_0x3765b7(0x41f)](_0xaf33b6,(_0x3ee1f8=_0x56758d['card'])==null?void 0x0:_0x3ee1f8[_0x3765b7(0x165)]);_0x10311a[_0x3765b7(0x407)]={..._0x56758d,'groupFieldId':_0x39cff3??_0x56758d[_0x3765b7(0x9f)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0xaf33b6,_0x56758d),'cardLayout':_0x56758d[_0x3765b7(0xa8)]===_0x3765b7(0x34f)?_0x3765b7(0x34f):'normal','showFieldNames':_0x56758d[_0x3765b7(0x22f)]!==!0x1,'fieldSettings':Object['fromEntries'](Object[_0x3765b7(0x419)](_0x56758d[_0x3765b7(0x39e)]??{})['filter'](([_0x2b90d2])=>_0x37ea7a(_0x2b90d2))),'columnSettings':_0x56758d[_0x3765b7(0x285)]??{},'card':{..._0x56758d[_0x3765b7(0x380)]??{},'titleFieldId':_0x20da1e,'fieldIds':this[_0x3765b7(0x417)](_0xaf33b6,_0x10311a,_0x39cff3??'',_0x20da1e)}};}return{'repaired':JSON['stringify'](_0x10311a)!==JSON[_0x3765b7(0x1a0)](_0x2c2896),'view':_0x10311a};}[_0x5670e0(0x97)](){this['_globalRevision']++;}[_0x5670e0(0x2a2)](_0x3abd07,_0x79ddd,_0x231ba2){const _0x36e19d=_0x5670e0;let _0x2adf39=this[_0x36e19d(0x274)](_0x3abd07)+0x1;this[_0x36e19d(0x1fe)][_0x36e19d(0x2b8)](_0x3abd07,_0x2adf39);let _0x11cbff=this['_cellInvalidations']['get'](_0x3abd07)??[];_0x11cbff[_0x36e19d(0x393)]({'revision':_0x2adf39,'recordId':_0x79ddd,'fieldId':_0x231ba2}),this[_0x36e19d(0x42d)][_0x36e19d(0x2b8)](_0x3abd07,_0x11cbff);}[_0x5670e0(0x230)](_0x6fcf33,_0x45c3f3){const _0x1d6c17=_0x5670e0;this[_0x1d6c17(0x10b)](_0x6fcf33);}['invalidateByView'](_0x508972,_0x40f659){const _0x803791=_0x5670e0;this[_0x803791(0x1d5)][_0x803791(0x2b8)](this[_0x803791(0x42a)](_0x508972,_0x40f659),this[_0x803791(0x3e9)](_0x508972,_0x40f659)+0x1);}['_getCachedProjection'](_0x48a733,_0x10a326,_0xaf99f0){const _0x125bd2=_0x5670e0;var _0x745a5e;let _0x147b8e=(_0x745a5e=this[_0x125bd2(0x26c)][_0x125bd2(0x2db)](_0x48a733))==null?void 0x0:_0x745a5e[_0x125bd2(0x2db)](this[_0x125bd2(0x297)](_0x10a326,_0xaf99f0));return _0x147b8e&&_0x147b8e[_0x125bd2(0x344)]===this[_0x125bd2(0x258)]&&_0x147b8e[_0x125bd2(0x3bc)]===this[_0x125bd2(0x2c0)](_0x10a326)&&_0x147b8e['cellRevision']===this[_0x125bd2(0x274)](_0x10a326)&&_0x147b8e[_0x125bd2(0x27e)]===this['_getViewRevision'](_0x10a326,_0xaf99f0)?_0x147b8e[_0x125bd2(0x1e7)]:null;}[_0x5670e0(0x2b2)](_0x57a492,_0x292997,_0x191cc5,_0x496049){const _0x5d430c=_0x5670e0;let _0x377df2=this['_projectionCache'][_0x5d430c(0x2db)](_0x57a492);return _0x377df2||(_0x377df2=new Map(),this['_projectionCache'][_0x5d430c(0x2b8)](_0x57a492,_0x377df2)),_0x377df2[_0x5d430c(0x2b8)](this[_0x5d430c(0x297)](_0x292997,_0x191cc5),{'projection':_0x496049,'globalRevision':this[_0x5d430c(0x258)],'tableRevision':this[_0x5d430c(0x2c0)](_0x292997),'cellRevision':this['_getCellRevision'](_0x292997),'viewRevision':this['_getViewRevision'](_0x292997,_0x191cc5)}),_0x496049;}['_bumpTableRevision'](_0x511361){const _0x20594e=_0x5670e0;this[_0x20594e(0x328)]['set'](_0x511361,this[_0x20594e(0x2c0)](_0x511361)+0x1);}['_getTableRevision'](_0x52992c){const _0x146375=_0x5670e0;return this[_0x146375(0x328)][_0x146375(0x2db)](_0x52992c)??0x0;}[_0x5670e0(0x274)](_0x5a3eb3){const _0x4c33e9=_0x5670e0;return this[_0x4c33e9(0x1fe)][_0x4c33e9(0x2db)](_0x5a3eb3)??0x0;}['_getViewRevision'](_0x59096d,_0x47b8fa){const _0xeba738=_0x5670e0;return this[_0xeba738(0x1d5)]['get'](this[_0xeba738(0x42a)](_0x59096d,_0x47b8fa))??0x0;}['_cacheKey'](_0x42b23a,_0x356d1d){return _0x42b23a+'\x00'+_0x356d1d;}['_viewRowsCacheKey'](_0x273361,_0x5ba345){return _0x273361+'\x00'+this['_rowTransformCacheSegment'](_0x5ba345);}['_groupsCacheKey'](_0x1e5e06,_0xc22a06,_0x3527aa){const _0x579a2f=_0x5670e0;return _0x1e5e06+'\x00'+this[_0x579a2f(0x1e3)](_0xc22a06)+'\x00'+this['_groupConfigCacheSegment'](_0x3527aa);}[_0x5670e0(0x1e3)](_0x33511b){const _0x48ff0=_0x5670e0;return _0x33511b?mi({'filter':di(_0x33511b[_0x48ff0(0x364)]),'sort':pi(_0x33511b[_0x48ff0(0x249)])}):'__all__';}['_groupConfigCacheSegment'](_0x136a10){const _0x4b2ce0=_0x5670e0;return mi(_0x136a10[_0x4b2ce0(0x102)](_0x2a4e31=>({'fieldId':_0x2a4e31[_0x4b2ce0(0x186)],'direction':_0x2a4e31[_0x4b2ce0(0x15d)]??null})));}[_0x5670e0(0x42a)](_0x3e2b39,_0x51fca7){return _0x3e2b39+'\x00'+_0x51fca7;}[_0x5670e0(0x400)](_0xef2eff,_0x1c0bcb){const _0x16de2a=_0x5670e0;var _0x1010c5;let _0x4bacd5=Je(_0xef2eff),_0x2eb159=this[_0x16de2a(0x1a1)](_0xef2eff,_0x1c0bcb),_0x46fa7e=(_0x1010c5=_0x1c0bcb[_0x16de2a(0x364)])!=null&&_0x1010c5[_0x16de2a(0x196)]['length']?this[_0x16de2a(0x1a1)](_0xef2eff,{..._0x1c0bcb,'filter':null}):_0x2eb159,_0xdbb4a8=nt(this[_0x16de2a(0x2e2)](_0xef2eff,_0x4bacd5,_0x1c0bcb['id'],_0x46fa7e[_0x16de2a(0x102)](_0x5be770=>_0x5be770[_0x16de2a(0x191)])),_0x46fa7e,new Set(_0x2eb159['map'](_0x425896=>_0x425896['recordId'])));return{'type':_0x528e48[_0x16de2a(0x2a8)],'fields':this['_projectFields'](_0xef2eff,_0x1c0bcb),'rows':_0xdbb4a8[_0x16de2a(0x3b6)],'groups':this[_0x16de2a(0xce)](_0xef2eff,_0x1c0bcb,_0xdbb4a8[_0x16de2a(0x3b6)],_0xdbb4a8[_0x16de2a(0x130)]),'hierarchy':_0xdbb4a8[_0x16de2a(0x130)],'frozenFieldCount':typeof _0x1c0bcb[_0x16de2a(0x407)][_0x16de2a(0x202)]==_0x16de2a(0x174)?_0x1c0bcb[_0x16de2a(0x407)][_0x16de2a(0x202)]:0x0};}['_getHierarchyIndex'](_0x5be8f8,_0x15cc62,_0x46c581,_0x1f59c4){const _0x1b9d1b=_0x5670e0;let _0x593d33=_0x5be8f8['id']+'\x00'+_0x15cc62+'\x00'+_0x46c581,_0x449624=this[_0x1b9d1b(0x274)](_0x5be8f8['id']),_0x55dad8=this['_hierarchyIndexCache']['get'](_0x593d33);if(_0x55dad8&&_0x55dad8[_0x1b9d1b(0x344)]===this[_0x1b9d1b(0x258)]&&_0x55dad8['tableRevision']===this['_getTableRevision'](_0x5be8f8['id'])&&_0x55dad8[_0x1b9d1b(0x305)][_0x1b9d1b(0x19b)]===_0x1f59c4[_0x1b9d1b(0x19b)]&&_0x55dad8['orderedRecordIds'][_0x1b9d1b(0x3f9)]((_0x42e486,_0xb2e539)=>_0x42e486===_0x1f59c4[_0xb2e539])){if(_0x55dad8[_0x1b9d1b(0x426)]===_0x449624&&_0x55dad8[_0x1b9d1b(0x19f)]===_0x5be8f8)return _0x55dad8['index'];if(!this[_0x1b9d1b(0x216)](_0x5be8f8['id'],_0x55dad8[_0x1b9d1b(0x426)],_0x449624,new Set([_0x15cc62])))return this[_0x1b9d1b(0x25d)][_0x1b9d1b(0x2b8)](_0x593d33,{..._0x55dad8,'table':_0x5be8f8,'cellRevision':_0x449624}),_0x55dad8['index'];}let _0x5c5d6d=tt(_0x5be8f8,_0x15cc62,_0x1f59c4);return this[_0x1b9d1b(0x25d)][_0x1b9d1b(0x2b8)](_0x593d33,{'table':_0x5be8f8,'index':_0x5c5d6d,'orderedRecordIds':_0x1f59c4,'globalRevision':this['_globalRevision'],'tableRevision':this['_getTableRevision'](_0x5be8f8['id']),'cellRevision':_0x449624}),_0x5c5d6d;}[_0x5670e0(0xce)](_0x46694d,_0x3f0ef9,_0x18703f,_0x1a013f){const _0x11cb89=_0x5670e0;var _0x4ca207;if(!((_0x4ca207=_0x3f0ef9[_0x11cb89(0x3dd)])!=null&&_0x4ca207[_0x11cb89(0x19b)]))return[];let _0x427fbe=new Map(_0x18703f[_0x11cb89(0x102)](_0x3cc335=>[_0x3cc335[_0x11cb89(0x191)],_0x3cc335])),_0x5eab72=_0x1a013f[_0x11cb89(0x294)]['flatMap'](_0x49028a=>{let _0x1f75b0=_0x427fbe['get'](_0x49028a);return _0x1f75b0?[_0x1f75b0]:[];}),_0x180e2d=this['_projectGroups'](_0x46694d,_0x3f0ef9,_0x5eab72),_0x3c3a19=new Map(_0x1a013f[_0x11cb89(0x305)][_0x11cb89(0x102)]((_0x13fe8b,_0x64e45)=>[_0x13fe8b,_0x64e45])),_0x4ab89e=_0x4e8022=>{const _0x2be614=_0x11cb89;let _0xbae22b=_0x1a013f[_0x2be614(0x248)][_0x4e8022],_0x451828=_0x3c3a19['get'](_0x4e8022)??-0x1;return _0x451828<0x0||!_0xbae22b?[]:_0x1a013f[_0x2be614(0x305)]['slice'](_0x451828,_0xbae22b['subtreeEndIndex']+0x1);},_0x108f9c=_0x5a3d3e=>{const _0x530634=_0x11cb89;var _0xb8d9d5,_0xff7cbb;return{..._0x5a3d3e,'recordIds':(_0xb8d9d5=_0x5a3d3e[_0x530634(0x1ce)])!=null&&_0xb8d9d5[_0x530634(0x19b)]?_0x5a3d3e[_0x530634(0x42f)]:_0x5a3d3e[_0x530634(0x42f)]['flatMap'](_0x4ab89e),'children':(_0xff7cbb=_0x5a3d3e[_0x530634(0x1ce)])==null?void 0x0:_0xff7cbb[_0x530634(0x102)](_0x108f9c)};};return _0x180e2d[_0x11cb89(0x102)](_0x108f9c);}[_0x5670e0(0x325)](_0x57b1cb,_0x458372){const _0x410238=_0x5670e0;var _0x51653d;let _0x25c7be=this[_0x410238(0x2d8)](_0x57b1cb,_0x458372),_0x1dd134=_0x25c7be?_0x57b1cb[_0x410238(0x2cb)][_0x25c7be]:void 0x0;if(!_0x1dd134)return{'type':'invalid','viewType':_0x528e48[_0x410238(0x340)],'reason':'invalidGroupField','fieldId':_0x458372[_0x410238(0x407)][_0x410238(0x9f)]};let _0x1ca8ec=this[_0x410238(0x1a1)](_0x57b1cb,_0x458372),_0x1f9b14=this[_0x410238(0xfc)](_0x57b1cb,_0x458372),_0x4b5d8e=_0x458372[_0x410238(0x407)]??{},_0x266332=this[_0x410238(0x41f)](_0x57b1cb,(_0x51653d=_0x4b5d8e[_0x410238(0x380)])==null?void 0x0:_0x51653d[_0x410238(0x165)]),_0x3d73f5=this[_0x410238(0x417)](_0x57b1cb,_0x458372,_0x1dd134['id'],_0x266332),_0xd22ec7=new Map();if(F(_0x57b1cb,_0x1dd134['id'])){let _0x65728f=this['_getHierarchyIndex'](_0x57b1cb,_0x1dd134['id'],_0x458372['id'],_0x1ca8ec['map'](_0x410253=>_0x410253[_0x410238(0x191)])),_0x2edac1=new Map();return _0x1ca8ec[_0x410238(0x143)](_0x1e0202=>{const _0x4c33ec=_0x410238;let _0x494712=_0x65728f[_0x4c33ec(0x190)][_0x4c33ec(0x2db)](_0x1e0202[_0x4c33ec(0x191)])??null,_0x7708b=_0x494712??'',_0x333e00=_0x494712?_0x57b1cb['records'][_0x494712]:void 0x0,_0x11e4b0=_0x2edac1[_0x4c33ec(0x2db)](_0x7708b)??{'key':_0x7708b,'title':_0x333e00?String(yt(_0x57b1cb,_0x333e00['id'],_0x57b1cb[_0x4c33ec(0x2d7)])??_0x494712):this[_0x4c33ec(0x197)](_0x1dd134,_0x7708b,_0x4b5d8e),'recordIds':[]};_0x11e4b0[_0x4c33ec(0x42f)][_0x4c33ec(0x393)](_0x1e0202[_0x4c33ec(0x191)]),_0x2edac1['set'](_0x7708b,_0x11e4b0);}),{'type':_0x528e48[_0x410238(0x340)],'fields':_0x1f9b14,'rows':_0x1ca8ec,'groups':[],'groupFieldId':_0x1dd134['id'],'titleFieldId':_0x266332,'coverFieldId':this[_0x410238(0x3a4)](_0x57b1cb,_0x4b5d8e),'cardLayout':_0x4b5d8e[_0x410238(0xa8)]===_0x410238(0x34f)?_0x410238(0x34f):_0x410238(0x377),'showFieldNames':_0x4b5d8e[_0x410238(0x22f)]!==!0x1,'visibleCardFieldIds':_0x3d73f5,'lanes':['',..._0x65728f[_0x410238(0x305)]][_0x410238(0x98)](_0x229ba4=>{const _0x275f88=_0x410238;let _0x6e7921=_0x2edac1[_0x275f88(0x2db)](_0x229ba4);return _0x6e7921!=null&&_0x6e7921[_0x275f88(0x42f)]['length']?[_0x6e7921]:[];})};}return this[_0x410238(0x3ec)](_0x1dd134,_0x4b5d8e)[_0x410238(0x143)](_0x38147a=>_0xd22ec7[_0x410238(0x2b8)](_0x38147a['key'],{..._0x38147a,'recordIds':[]})),_0x1ca8ec[_0x410238(0x143)](_0x3747e0=>{const _0xd95cb2=_0x410238;this['_kanbanGroupKeys'](_0x1dd134,_0x3747e0[_0xd95cb2(0x1c8)][_0x1dd134['id']])[_0xd95cb2(0x143)](_0x3b7df2=>{const _0x3509c1=_0xd95cb2;let _0x48efda=_0xd22ec7[_0x3509c1(0x2db)](_0x3b7df2)??{'key':_0x3b7df2,'title':this['_kanbanLaneTitle'](_0x1dd134,_0x3b7df2,_0x4b5d8e),'color':this[_0x3509c1(0x1c7)](_0x1dd134,_0x3b7df2,_0x4b5d8e),'recordIds':[]};_0x48efda[_0x3509c1(0x42f)][_0x3509c1(0x393)](_0x3747e0[_0x3509c1(0x191)]),_0xd22ec7[_0x3509c1(0x2b8)](_0x3b7df2,_0x48efda);});}),{'type':_0x528e48[_0x410238(0x340)],'fields':_0x1f9b14,'rows':_0x1ca8ec,'groups':this[_0x410238(0x33d)](_0x57b1cb,_0x458372,_0x1ca8ec),'groupFieldId':_0x1dd134['id'],'titleFieldId':_0x266332,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x57b1cb,_0x4b5d8e),'cardLayout':_0x4b5d8e['cardLayout']==='compose'?_0x410238(0x34f):'normal','showFieldNames':_0x4b5d8e['showFieldNames']!==!0x1,'visibleCardFieldIds':_0x3d73f5,'lanes':Array['from'](_0xd22ec7[_0x410238(0x1c8)]())};}[_0x5670e0(0x2d8)](_0x3c466a,_0x5c3496){const _0x44c71f=_0x5670e0;var _0x2e5ede;let _0x1cfc12=(_0x2e5ede=_0x5c3496[_0x44c71f(0x407)])==null?void 0x0:_0x2e5ede['groupFieldId'];return _0x1cfc12&&this[_0x44c71f(0xc3)](_0x3c466a,_0x1cfc12)?_0x1cfc12:this[_0x44c71f(0x2a4)](_0x3c466a,_0x161a27=>this['_isAllowedKanbanGroupField'](_0x161a27));}['_findKanbanGroupField'](_0x40cc99,_0x36a067){const _0x334e31=_0x5670e0;for(let _0xac710d of _0x40cc99[_0x334e31(0x367)]){let _0x383c3a=_0x40cc99[_0x334e31(0x2cb)][_0xac710d];if(_0x383c3a&&_0x36a067(_0x383c3a))return _0x383c3a['id'];}return null;}[_0x5670e0(0xc3)](_0x22cb5d,_0x23ff3d){const _0x26ce90=_0x5670e0;let _0x56938a=_0x22cb5d['fields'][_0x23ff3d];return this[_0x26ce90(0x14d)](_0x56938a)||F(_0x22cb5d,_0x23ff3d);}[_0x5670e0(0x14d)](_0x3c7078){const _0x31b3f3=_0x5670e0;return!!_0x3c7078&&(_0x3c7078[_0x31b3f3(0xeb)]===_0x4fe15f['SingleSelect']||_0x3c7078['type']===_0x4fe15f[_0x31b3f3(0x8b)]||_0x3c7078['type']===_0x4fe15f['Rating']||_0x3c7078[_0x31b3f3(0xeb)]===_0x4fe15f['Person']||_0x3c7078[_0x31b3f3(0xeb)]===_0x4fe15f['Group']||_0x3c7078[_0x31b3f3(0xeb)]===_0x4fe15f[_0x31b3f3(0x1f2)]);}['_isColorfulKanbanGroupField'](_0x4d56a4){const _0x3df56a=_0x5670e0;return _0x4d56a4[_0x3df56a(0xeb)]===_0x4fe15f['SingleSelect']||_0x4d56a4['type']===_0x4fe15f[_0x3df56a(0x8b)];}[_0x5670e0(0x3a4)](_0x316fbb,_0x4c74b7){const _0x399f76=_0x5670e0;var _0x48e7e3;let _0x1bbdaa=_0x4c74b7[_0x399f76(0x199)]??((_0x48e7e3=_0x4c74b7[_0x399f76(0x380)])==null?void 0x0:_0x48e7e3['coverFieldId'])??null;if(!_0x1bbdaa)return null;let _0x5cefd4=_0x316fbb[_0x399f76(0x2cb)][_0x1bbdaa];return _0x5cefd4&&this[_0x399f76(0x3a0)](_0x5cefd4)[_0x399f76(0x19e)]?_0x5cefd4['id']:null;}[_0x5670e0(0x417)](_0x2a0690,_0x49e516,_0x125ca5,_0x5cc721=this['_resolveCardTitleFieldId'](_0x2a0690,((()=>{const _0x2dd706=_0x5670e0;var _0x297c05;return(_0x297c05=_0x49e516[_0x2dd706(0x407)])==null||(_0x297c05=_0x297c05['card'])==null?void 0x0:_0x297c05['titleFieldId'];})()))){const _0x107cc0=_0x5670e0;var _0x56f300;let _0x3ad8b9=_0x49e516[_0x107cc0(0x407)]??{},_0x48efb6=(_0x56f300=_0x3ad8b9['card'])!=null&&(_0x56f300=_0x56f300['fieldIds'])!=null&&_0x56f300['length']?_0x3ad8b9[_0x107cc0(0x380)][_0x107cc0(0x1f6)]:Qr(_0x2a0690,[_0x5cc721,_0x2a0690[_0x107cc0(0x2d7)],_0x125ca5]),_0x113950=_0x3ad8b9[_0x107cc0(0x39e)]??{};return _0x48efb6[_0x107cc0(0x364)](_0x4bee9c=>{const _0x5e8769=_0x107cc0;var _0x347207,_0x27eb24;let _0x1e1035=_0x2a0690[_0x5e8769(0x2cb)][_0x4bee9c];return!(!_0x1e1035||_0x1e1035['system']===!0x0||_0x1e1035[_0x5e8769(0xeb)]===_0x4fe15f[_0x5e8769(0x300)]||_0x1e1035['id']===_0x125ca5||_0x1e1035['id']===_0x5cc721||(_0x347207=_0x49e516[_0x5e8769(0x39e)])!=null&&(_0x347207=_0x347207[_0x4bee9c])!=null&&_0x347207[_0x5e8769(0x21d)]||(_0x27eb24=_0x113950[_0x4bee9c])!=null&&_0x27eb24['hidden']);})['sort']((_0x234a0b,_0x1f34a3)=>{const _0xc96f88=_0x107cc0;var _0x1dfc86,_0x499fd7;return(((_0x1dfc86=_0x113950[_0x234a0b])==null?void 0x0:_0x1dfc86['order'])??_0x48efb6[_0xc96f88(0x2e8)](_0x234a0b))-(((_0x499fd7=_0x113950[_0x1f34a3])==null?void 0x0:_0x499fd7[_0xc96f88(0x311)])??_0x48efb6[_0xc96f88(0x2e8)](_0x1f34a3));});}[_0x5670e0(0x3ec)](_0x5a42bc,_0x5aec71){const _0x277fdc=_0x5670e0;var _0x43d8d9;let _0x1fc435=(Array[_0x277fdc(0x99)]((_0x43d8d9=_0x5a42bc[_0x277fdc(0x407)])==null?void 0x0:_0x43d8d9[_0x277fdc(0x212)])?_0x5a42bc[_0x277fdc(0x407)][_0x277fdc(0x212)]:[])['flatMap']((_0x15cd77,_0x12d7a1)=>{const _0x41e054=_0x277fdc;if(_0x15cd77==null)return[];let _0x11dc6e=typeof _0x15cd77=='string'?{'id':_0x15cd77,'name':_0x15cd77,'color':void 0x0}:_0x15cd77,_0x2ef6f8=String(_0x11dc6e['id']??_0x11dc6e[_0x41e054(0x26f)]??_0x41e054(0xe7)+(_0x12d7a1+0x1));return[{'key':_0x2ef6f8,'title':String(_0x11dc6e[_0x41e054(0x26f)]??_0x11dc6e['id']??_0x2ef6f8),'color':this[_0x41e054(0x1c7)](_0x5a42bc,_0x2ef6f8,_0x5aec71)}];});return Object['entries'](_0x5aec71['columnSettings']??{})[_0x277fdc(0x143)](([_0x58c82d,_0x5f401d])=>{const _0x38cf58=_0x277fdc;_0x1fc435['some'](_0x5c4197=>_0x5c4197['key']===_0x58c82d)||_0x1fc435[_0x38cf58(0x393)]({'key':_0x58c82d,'title':this[_0x38cf58(0x221)](_0x5a42bc)?_0x5f401d[_0x38cf58(0x2e4)]??this[_0x38cf58(0x197)](_0x5a42bc,_0x58c82d,_0x5aec71):this['_kanbanLaneTitle'](_0x5a42bc,_0x58c82d,_0x5aec71),'color':this[_0x38cf58(0x1c7)](_0x5a42bc,_0x58c82d,_0x5aec71)});}),_0x1fc435;}[_0x5670e0(0x1aa)](_0x19a023,_0x27d58e){const _0x513605=_0x5670e0;let _0x5c07ac=_0x4f002c=>{const _0x45922c=_0x4f53;var _0x1221a2;let _0x764629=_0x4f002c==null?'':String(_0x4f002c);return!_0x764629||!this[_0x45922c(0x221)](_0x19a023)?_0x764629:((_0x1221a2=Li(_0x19a023,_0x764629))==null?void 0x0:_0x1221a2['id'])??_0x764629;};if(Array[_0x513605(0x99)](_0x27d58e)){let _0x211c70=_0x27d58e[_0x513605(0x102)](_0x5c07ac)['filter'](_0x393929=>_0x393929!=='');return _0x211c70[_0x513605(0x19b)]?_0x211c70:[''];}return[_0x5c07ac(_0x27d58e)];}[_0x5670e0(0x197)](_0x342832,_0x576cad,_0x2786f0){const _0x2f22cf=_0x5670e0;if(!_0x576cad)return _0x2f22cf(0xbb);let _0x20879f=Li(_0x342832,_0x576cad);return(_0x20879f==null?void 0x0:_0x20879f[_0x2f22cf(0x26f)])??_0x576cad;}['_kanbanLaneColor'](_0x3b36ac,_0x2b375c,_0x2922b6){const _0x334f55=_0x5670e0;var _0x1698e5;if(this[_0x334f55(0x221)](_0x3b36ac))return(_0x1698e5=Li(_0x3b36ac,_0x2b375c))==null?void 0x0:_0x1698e5['color'];}['_buildCalendar'](_0x434651,_0x1ab7d7){const _0xbe4924=_0x5670e0;let _0x224f93=this[_0xbe4924(0x244)](_0x434651,_0x1ab7d7['config']??{}),_0x4486b5=_0x434651[_0xbe4924(0x2cb)][_0x224f93[_0xbe4924(0x31e)]];if(!_0x4486b5||_0x4486b5[_0xbe4924(0xeb)]!==_0x4fe15f[_0xbe4924(0x1cc)]||_0x4486b5[_0xbe4924(0x358)]===!0x0||_0x4486b5[_0xbe4924(0x13a)]===!0x0||!this[_0xbe4924(0x3a0)](_0x4486b5)['usableAsCalendarDate'])return{'type':_0xbe4924(0xc8),'viewType':_0x528e48[_0xbe4924(0x16e)],'reason':'invalidDateField','fieldId':_0x224f93[_0xbe4924(0x31e)]};let _0x30272c=_0x224f93[_0xbe4924(0x11f)]?_0x434651[_0xbe4924(0x2cb)][_0x224f93['endDateFieldId']]:void 0x0,_0x51d6f7=this['_projectRows'](_0x434651,_0x1ab7d7);return{'type':_0x528e48['Calendar'],'config':_0x224f93,'fields':this[_0xbe4924(0xfc)](_0x434651,_0x1ab7d7),'rows':_0x51d6f7,'groups':this[_0xbe4924(0x33d)](_0x434651,_0x1ab7d7,_0x51d6f7),'events':_0x51d6f7[_0xbe4924(0x98)](_0x55bbca=>{const _0x3d3907=_0xbe4924;let _0x3c6748=dn(_0x55bbca[_0x3d3907(0x1c8)][_0x224f93[_0x3d3907(0x31e)]]);if(!Number[_0x3d3907(0x154)](_0x3c6748))return[];let _0x4d39e3=_0x55bbca['values'][_0x224f93[_0x3d3907(0x31e)]],_0xd69a45=_0x224f93[_0x3d3907(0x11f)]==null?void 0x0:_0x55bbca['values'][_0x224f93[_0x3d3907(0x11f)]],_0x451fa3=_0x224f93[_0x3d3907(0x11f)]==null?void 0x0:dn(_0xd69a45),_0x48e0a1=Number[_0x3d3907(0x154)](_0x451fa3)?_0x451fa3:void 0x0;return[{'recordId':_0x55bbca[_0x3d3907(0x191)],'title':this['_title'](_0x434651,_0x55bbca,_0x224f93[_0x3d3907(0x165)]),'start':_0x3c6748,'end':_0x48e0a1,'color':this[_0x3d3907(0x1e4)](_0x434651,_0x55bbca,_0x224f93),'startMs':_0x3c6748,'endMs':_0x48e0a1,'allDay':this['_isAllDayCalendarEvent'](_0x4486b5,_0x30272c,_0x4d39e3,_0xd69a45),'fieldValues':_0x55bbca[_0x3d3907(0x1c8)]}];})};}[_0x5670e0(0x244)](_0x4a7923,_0x1191b2){const _0x5c26d4=_0x5670e0;let _0x21bf34=this[_0x5c26d4(0x1c5)](_0x4a7923,_0x1191b2[_0x5c26d4(0x31e)]),_0x7365f8=_0x1191b2[_0x5c26d4(0x11f)]&&this[_0x5c26d4(0x2f0)](_0x4a7923,_0x1191b2['endDateFieldId'])?_0x1191b2[_0x5c26d4(0x11f)]:this[_0x5c26d4(0x375)](_0x4a7923,_0x21bf34)??void 0x0,_0x198e90=_0x1191b2[_0x5c26d4(0x165)]?_0x4a7923[_0x5c26d4(0x2cb)][_0x1191b2[_0x5c26d4(0x165)]]:void 0x0,_0x36e32f=_0x198e90&&_0x198e90['system']!==!0x0&&_0x198e90['type']!==_0x4fe15f[_0x5c26d4(0x300)]?_0x1191b2[_0x5c26d4(0x165)]:_0x4a7923[_0x5c26d4(0x2d7)],_0x577c0f=_0x1191b2[_0x5c26d4(0xea)]===_0x5c26d4(0x1dc)||_0x1191b2[_0x5c26d4(0xea)]===_0x5c26d4(0x178)?_0x1191b2[_0x5c26d4(0xea)]:_0x5c26d4(0xca),_0x1b1980=_0x1191b2['timeslotSize']===_0x5c26d4(0x205)||_0x1191b2[_0x5c26d4(0x2d3)]==='long'?_0x1191b2[_0x5c26d4(0x2d3)]:_0x5c26d4(0x35e),_0x92ad34=typeof _0x1191b2[_0x5c26d4(0xf9)]==_0x5c26d4(0x2dc)&&_0x1191b2[_0x5c26d4(0xf9)][_0x5c26d4(0x12d)]()?_0x1191b2['timeZone']:_0x5c26d4(0x31b),_0x25abf7=this[_0x5c26d4(0x3df)](_0x4a7923,_0x1191b2);return{..._0x1191b2,'startDateFieldId':_0x21bf34,'endDateFieldId':_0x7365f8,'titleFieldId':_0x36e32f,'mode':_0x577c0f,'timeslotSize':_0x1b1980,'timeZone':_0x92ad34,'displayColor':_0x25abf7,'fieldSettings':Object[_0x5c26d4(0x3a7)](Object[_0x5c26d4(0x419)](_0x1191b2[_0x5c26d4(0x39e)]??{})[_0x5c26d4(0x364)](([_0x273553])=>{const _0x3765de=_0x5c26d4;let _0x275356=_0x4a7923[_0x3765de(0x2cb)][_0x273553];return!!(_0x275356&&_0x275356[_0x3765de(0x13a)]!==!0x0&&_0x275356[_0x3765de(0xeb)]!==_0x4fe15f[_0x3765de(0x300)]);}))};}[_0x5670e0(0x1c5)](_0x450667,_0x1242d0){const _0x264677=_0x5670e0;return _0x1242d0&&this[_0x264677(0x2f0)](_0x450667,_0x1242d0)?_0x1242d0:this[_0x264677(0x375)](_0x450667)??_0x1242d0??'';}['_findCalendarDateFieldId'](_0x2220ee,_0x59b375){const _0x4a0f26=_0x5670e0;for(let _0x764766 of _0x2220ee[_0x4a0f26(0x367)])if(_0x764766!==_0x59b375&&this[_0x4a0f26(0x2f0)](_0x2220ee,_0x764766))return _0x764766;return null;}['_isCalendarDateField'](_0x3e1245,_0x436311){const _0x29400d=_0x5670e0;let _0x1755c5=_0x3e1245['fields'][_0x436311];return!!_0x1755c5&&_0x1755c5[_0x29400d(0xeb)]===_0x4fe15f[_0x29400d(0x1cc)]&&_0x1755c5[_0x29400d(0x358)]!==!0x0&&_0x1755c5[_0x29400d(0x13a)]!==!0x0&&this[_0x29400d(0x3a0)](_0x1755c5)[_0x29400d(0x31d)];}[_0x5670e0(0x3df)](_0x8f2c82,_0x217b1d){const _0x52412d=_0x5670e0;let _0x2e554d=_0x217b1d['displayColor'];if((_0x2e554d==null?void 0x0:_0x2e554d[_0x52412d(0xeb)])===_0x52412d(0x109)){let _0x46c5e9=_0x8f2c82['fields'][_0x2e554d[_0x52412d(0x186)]];if(_0x46c5e9&&_0x46c5e9[_0x52412d(0xeb)]===_0x4fe15f[_0x52412d(0x1dd)])return _0x2e554d;}if((_0x2e554d==null?void 0x0:_0x2e554d[_0x52412d(0xeb)])===_0x52412d(0x363)&&typeof _0x2e554d[_0x52412d(0x335)]==_0x52412d(0x2dc)&&_0x2e554d[_0x52412d(0x335)][_0x52412d(0x12d)]())return{'type':'custom','color':_0x2e554d[_0x52412d(0x335)]};if(_0x217b1d[_0x52412d(0x89)]){let _0x142cca=_0x8f2c82['fields'][_0x217b1d['colorFieldId']];if(_0x142cca&&_0x142cca[_0x52412d(0xeb)]===_0x4fe15f[_0x52412d(0x1dd)])return{'type':_0x52412d(0x109),'fieldId':_0x217b1d[_0x52412d(0x89)]};}return{'type':_0x52412d(0x363),'color':_0x52412d(0x2ab)};}[_0x5670e0(0x1e4)](_0xf73e90,_0x5eecc7,_0x217e80){const _0x5c68f9=_0x5670e0;let _0x219781=_0x217e80[_0x5c68f9(0x1e6)];if((_0x219781==null?void 0x0:_0x219781['type'])===_0x5c68f9(0x109)){var _0x1aea0a;let _0x145c3f=_0xf73e90[_0x5c68f9(0x2cb)][_0x219781['fieldId']];if(!_0x145c3f)return;let _0x1ff1a2=_0x5eecc7[_0x5c68f9(0x1c8)][_0x219781['fieldId']],_0x4bf823=Array[_0x5c68f9(0x99)](_0x1ff1a2)?_0x1ff1a2[0x0]:_0x1ff1a2;return _0x4bf823==null||(_0x1aea0a=Li(_0x145c3f,String(_0x4bf823)))==null?void 0x0:_0x1aea0a['color'];}if((_0x219781==null?void 0x0:_0x219781[_0x5c68f9(0xeb)])===_0x5c68f9(0x363))return _0x219781[_0x5c68f9(0x335)];}['_isAllDayCalendarEvent'](_0x5e8e09,_0x4a5ed4,_0x89c510,_0x6d9873){const _0x4415a3=_0x5670e0;var _0xb0df17,_0x2d0d47;let _0x4e8b87=((_0xb0df17=_0x5e8e09[_0x4415a3(0x407)])==null?void 0x0:_0xb0df17[_0x4415a3(0x30b)])===!0x0,_0x1dc983=(_0x4a5ed4==null||(_0x2d0d47=_0x4a5ed4[_0x4415a3(0x407)])==null?void 0x0:_0x2d0d47['includeTime'])===!0x0;return!_0x4e8b87&&!_0x1dc983;}['_isAllDayGanttDateRange'](_0x52a676,_0x34b650){const _0x1c7e9e=_0x5670e0;var _0x9f28f1,_0x111848;let _0x4d73e0=((_0x9f28f1=_0x52a676[_0x1c7e9e(0x407)])==null?void 0x0:_0x9f28f1[_0x1c7e9e(0x30b)])===!0x0,_0xf68160=((_0x111848=_0x34b650[_0x1c7e9e(0x407)])==null?void 0x0:_0x111848[_0x1c7e9e(0x30b)])===!0x0;return!_0x4d73e0&&!_0xf68160;}[_0x5670e0(0x405)](_0x3b329c,_0x3ee958){const _0x4d6d08=_0x5670e0;let _0x5668a2=this['_normalizeGanttConfig'](_0x3b329c,_0x3ee958[_0x4d6d08(0x407)]),_0x3d94f3=_0x3b329c[_0x4d6d08(0x2cb)][_0x5668a2[_0x4d6d08(0x31e)]];if(!_0x3d94f3||_0x3d94f3[_0x4d6d08(0xeb)]!==_0x4fe15f[_0x4d6d08(0x1cc)]||_0x3d94f3[_0x4d6d08(0x358)]===!0x0||_0x3d94f3['system']===!0x0||!this['_capabilities'](_0x3d94f3)[_0x4d6d08(0x398)])return{'type':_0x4d6d08(0xc8),'viewType':_0x528e48[_0x4d6d08(0xf8)],'reason':'invalidGanttStartField','fieldId':_0x5668a2[_0x4d6d08(0x31e)]};let _0x4e18c8=_0x3b329c['fields'][_0x5668a2[_0x4d6d08(0x11f)]];if(!_0x4e18c8||_0x4e18c8[_0x4d6d08(0xeb)]!==_0x4fe15f[_0x4d6d08(0x1cc)]||_0x4e18c8[_0x4d6d08(0x358)]===!0x0||_0x4e18c8[_0x4d6d08(0x13a)]===!0x0||!this[_0x4d6d08(0x3a0)](_0x4e18c8)[_0x4d6d08(0x2bf)])return{'type':_0x4d6d08(0xc8),'viewType':_0x528e48[_0x4d6d08(0xf8)],'reason':_0x4d6d08(0x31a),'fieldId':_0x5668a2['endDateFieldId']};let _0x355f8a=this[_0x4d6d08(0x1df)](_0x3d94f3,_0x4e18c8),_0xecfd60=this[_0x4d6d08(0x1a1)](_0x3b329c,_0x3ee958),_0x448480=_0xecfd60['flatMap'](_0x3eff24=>{const _0x46b8c6=_0x4d6d08;let _0x47340f=dn(_0x3eff24[_0x46b8c6(0x1c8)][_0x5668a2[_0x46b8c6(0x31e)]]),_0x337c1d=dn(_0x3eff24[_0x46b8c6(0x1c8)][_0x5668a2['endDateFieldId']]);if(!Number['isFinite'](_0x47340f)||!Number[_0x46b8c6(0x154)](_0x337c1d))return[];let _0x38a1f0=Math['min'](_0x47340f,_0x337c1d),_0x288091=Math[_0x46b8c6(0x272)](_0x47340f,_0x337c1d),_0x3cc31b=_0x5668a2[_0x46b8c6(0x3cc)]==null?void 0x0:Number(_0x3eff24[_0x46b8c6(0x1c8)][_0x5668a2[_0x46b8c6(0x3cc)]]);return[{'recordId':_0x3eff24[_0x46b8c6(0x191)],'title':this[_0x46b8c6(0x119)](_0x3b329c,_0x3eff24,_0x5668a2[_0x46b8c6(0x165)]),'start':_0x38a1f0,'end':_0x288091,'color':this['_ganttBarColor'](_0x3b329c,_0x3eff24,_0x5668a2),'progress':Number[_0x46b8c6(0x154)](_0x3cc31b)?_0x3cc31b:void 0x0,'workingDayCount':_0x5668a2['workingDaysOnly']?Ti(_0x38a1f0,_0x288091,_0x5668a2[_0x46b8c6(0x11a)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x3eff24[_0x46b8c6(0x1c8)][_0x5668a2[_0x46b8c6(0x3ce)]??''])}];}),_0x17ae55=_0x448480[_0x4d6d08(0x19b)]?Z(Math[_0x4d6d08(0x3a1)](..._0x448480[_0x4d6d08(0x102)](_0x17864f=>_0x17864f[_0x4d6d08(0x1de)]))-0x5a*oi):Z(Date['now']()-0x5a*oi),_0x3649fa=_0x448480[_0x4d6d08(0x19b)]?Z(Math[_0x4d6d08(0x272)](..._0x448480[_0x4d6d08(0x102)](_0x4e5999=>_0x4e5999['end']))+0x5b*oi):Z(Date[_0x4d6d08(0x2b3)]()+0x5b*oi),_0x5ff3ed=_i(_0x5668a2['scale'],_0x17ae55,_0x3649fa,_0x5668a2[_0x4d6d08(0x264)]?_0x5668a2[_0x4d6d08(0x11a)]:void 0x0);return{'type':_0x528e48[_0x4d6d08(0xf8)],'fields':this[_0x4d6d08(0xfc)](_0x3b329c,{..._0x3ee958,'config':_0x5668a2}),'rows':_0xecfd60,'groups':this[_0x4d6d08(0x33d)](_0x3b329c,_0x3ee958,_0xecfd60),'config':_0x5668a2,'dateRangeAllDay':_0x355f8a,'timeline':{'scale':_0x5668a2[_0x4d6d08(0x113)],'start':_0x17ae55,'end':_0x3649fa,'unitWidth':_0x5ff3ed[_0x4d6d08(0x40f)],'majorHeaders':_0x5ff3ed[_0x4d6d08(0x2d4)],'columns':_0x5ff3ed[_0x4d6d08(0x1b4)]},'bars':_0x448480};}[_0x5670e0(0x2c4)](_0x16928d,_0x406f80){const _0x1b21ae=_0x5670e0;let _0x4fae1d=this['_resolveGanttDateFieldId'](_0x16928d,_0x406f80[_0x1b21ae(0x31e)],_0x1b21ae(0x1de)),_0x890818=this['_resolveGanttDateFieldId'](_0x16928d,_0x406f80['endDateFieldId'],_0x1b21ae(0x92))||_0x4fae1d,_0x41fed7=_0x406f80['titleFieldId']?_0x16928d[_0x1b21ae(0x2cb)][_0x406f80[_0x1b21ae(0x165)]]:void 0x0,_0x1f7fcd=_0x41fed7&&_0x41fed7[_0x1b21ae(0x13a)]!==!0x0&&_0x41fed7[_0x1b21ae(0xeb)]!==_0x4fe15f['RecordId']?_0x406f80[_0x1b21ae(0x165)]:_0x16928d[_0x1b21ae(0x2d7)],_0x3a1202=_0x406f80[_0x1b21ae(0x113)]===_0x1b21ae(0x178)||_0x406f80[_0x1b21ae(0x113)]===_0x1b21ae(0x13e)||_0x406f80[_0x1b21ae(0x113)]===_0x1b21ae(0x207)?_0x406f80[_0x1b21ae(0x113)]:_0x1b21ae(0xca),_0x10eb7a=gi(_0x406f80[_0x1b21ae(0x11a)]);return{..._0x406f80,'startDateFieldId':_0x4fae1d,'endDateFieldId':_0x890818,'titleFieldId':_0x1f7fcd,'scale':_0x3a1202,'leftPaneWidth':typeof _0x406f80[_0x1b21ae(0x333)]==_0x1b21ae(0x174)?_0x406f80[_0x1b21ae(0x333)]:void 0x0,'leftPaneCollapsed':_0x406f80[_0x1b21ae(0x256)]===!0x0,'showTodayLine':_0x406f80[_0x1b21ae(0x204)]!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x16928d,_0x406f80),'fieldSettings':Object['fromEntries'](Object[_0x1b21ae(0x419)](_0x406f80['fieldSettings']??{})[_0x1b21ae(0x364)](([_0x431796])=>{const _0x202c6a=_0x1b21ae;let _0x250696=_0x16928d[_0x202c6a(0x2cb)][_0x431796];return!!(_0x250696&&_0x250696[_0x202c6a(0x13a)]!==!0x0&&_0x250696[_0x202c6a(0xeb)]!==_0x4fe15f['RecordId']);})),'workingDaysOnly':_0x406f80[_0x1b21ae(0x264)]===!0x0,'workingDays':_0x10eb7a};}[_0x5670e0(0x128)](_0x1d5255,_0x4ddd83,_0x5ceee7){const _0x4217d8=_0x5670e0;if(_0x4ddd83&&this[_0x4217d8(0x208)](_0x1d5255,_0x4ddd83,_0x5ceee7)||_0x4ddd83)return _0x4ddd83;for(let _0x4290f4 of _0x1d5255['fieldOrder'])if(this[_0x4217d8(0x208)](_0x1d5255,_0x4290f4,_0x5ceee7))return _0x4290f4;return _0x4ddd83??'';}[_0x5670e0(0x208)](_0x50ca3e,_0x47daef,_0x36e24a){const _0x5b8bf1=_0x5670e0;let _0x32622a=_0x50ca3e[_0x5b8bf1(0x2cb)][_0x47daef];if(!_0x32622a||_0x32622a[_0x5b8bf1(0xeb)]!==_0x4fe15f[_0x5b8bf1(0x1cc)]||_0x32622a[_0x5b8bf1(0x358)]===!0x0||_0x32622a[_0x5b8bf1(0x13a)]===!0x0)return!0x1;let _0x3be158=this[_0x5b8bf1(0x3a0)](_0x32622a);return _0x36e24a==='start'?_0x3be158[_0x5b8bf1(0x398)]:_0x3be158['usableAsGanttEnd'];}[_0x5670e0(0x387)](_0x4e1358,_0xa2ee51){const _0x50666f=_0x5670e0;let _0x379595=_0xa2ee51[_0x50666f(0x1e6)];if((_0x379595==null?void 0x0:_0x379595[_0x50666f(0xeb)])===_0x50666f(0x109)){let _0x36c709=_0x4e1358[_0x50666f(0x2cb)][_0x379595[_0x50666f(0x186)]];if(_0x36c709&&_0x36c709[_0x50666f(0xeb)]===_0x4fe15f[_0x50666f(0x1dd)])return _0x379595;}return(_0x379595==null?void 0x0:_0x379595[_0x50666f(0xeb)])===_0x50666f(0x3b5)&&Array[_0x50666f(0x99)](_0x379595[_0x50666f(0x317)])?{'type':'conditional','rules':_0x379595['rules'][_0x50666f(0x364)](_0x4a270e=>!!_0x4e1358[_0x50666f(0x2cb)][_0x4a270e[_0x50666f(0x186)]])}:(_0x379595==null?void 0x0:_0x379595[_0x50666f(0xeb)])===_0x50666f(0x363)&&typeof _0x379595['color']=='string'&&_0x379595[_0x50666f(0x335)][_0x50666f(0x12d)]()?{'type':_0x50666f(0x363),'color':_0x379595['color']}:{'type':_0x50666f(0x363),'color':'#14b8a6'};}[_0x5670e0(0x2ef)](_0x9152a7,_0x1535d7,_0x40ba60){const _0x1fdde2=_0x5670e0;let _0x4923a5=_0x40ba60[_0x1fdde2(0x1e6)];if((_0x4923a5==null?void 0x0:_0x4923a5[_0x1fdde2(0xeb)])==='conditional'){let _0x16f17c=_0x4923a5[_0x1fdde2(0x317)][_0x1fdde2(0x361)](_0x583c02=>this[_0x1fdde2(0x8a)](_0x9152a7,_0x1535d7,_0x583c02));if(_0x16f17c)return _0x16f17c[_0x1fdde2(0x335)];}if((_0x4923a5==null?void 0x0:_0x4923a5[_0x1fdde2(0xeb)])===_0x1fdde2(0x109)){let _0x400673=_0x9152a7[_0x1fdde2(0x2cb)][_0x4923a5[_0x1fdde2(0x186)]];if(_0x400673){var _0x350258;let _0x1f2901=_0x1535d7[_0x1fdde2(0x1c8)][_0x4923a5[_0x1fdde2(0x186)]],_0x1fd831=Array['isArray'](_0x1f2901)?_0x1f2901[0x0]:_0x1f2901,_0x41ccd3=_0x1fd831==null||(_0x350258=Li(_0x400673,String(_0x1fd831)))==null?void 0x0:_0x350258[_0x1fdde2(0x335)];if(_0x41ccd3)return _0x41ccd3;}}return(_0x4923a5==null?void 0x0:_0x4923a5['type'])===_0x1fdde2(0x363)?_0x4923a5[_0x1fdde2(0x335)]:'#14b8a6';}[_0x5670e0(0x8a)](_0xe7bf8b,_0x1d53f2,_0x2058f4){const _0xd5363f=_0x5670e0;let _0x53c270=_0xe7bf8b[_0xd5363f(0x2cb)][_0x2058f4[_0xd5363f(0x186)]];return _0x53c270?xn(_0x1d53f2[_0xd5363f(0x1c8)][_0x53c270['id']],_0x2058f4[_0xd5363f(0xc2)],_0x2058f4[_0xd5363f(0x2ad)],_0x53c270,{'dateMode':_0x2058f4[_0xd5363f(0xbe)]}):!0x1;}['_buildGallery'](_0x1b3767,_0x16ed50){const _0x5c6a01=_0x5670e0;let _0x15618c=this[_0x5c6a01(0x1a1)](_0x1b3767,_0x16ed50),_0xe6c574=this['_normalizeGalleryConfig'](_0x1b3767,_0x16ed50[_0x5c6a01(0x407)]??{}),_0x14c0ae=this['_projectFields'](_0x1b3767,_0x16ed50);return{'type':_0x528e48[_0x5c6a01(0x85)],'fields':_0x14c0ae,'rows':_0x15618c,'groups':this[_0x5c6a01(0x33d)](_0x1b3767,_0x16ed50,_0x15618c),'titleFieldId':_0xe6c574[_0x5c6a01(0x380)][_0x5c6a01(0x165)],'coverFieldId':_0xe6c574[_0x5c6a01(0x199)],'cardLayout':_0xe6c574[_0x5c6a01(0xa8)]??'normal','showFieldNames':_0xe6c574[_0x5c6a01(0x22f)]!==!0x1,'visibleCardFieldIds':this['_resolveGalleryCardFieldIds'](_0x1b3767,_0x16ed50,_0xe6c574),'cardSize':_0xe6c574[_0x5c6a01(0x1cf)]??_0x5c6a01(0x35e),'cards':_0x15618c[_0x5c6a01(0x102)](_0x3bb216=>({'recordId':_0x3bb216[_0x5c6a01(0x191)],'title':this[_0x5c6a01(0x119)](_0x1b3767,_0x3bb216,_0xe6c574['card'][_0x5c6a01(0x165)]),'values':_0x3bb216[_0x5c6a01(0x1c8)]}))};}[_0x5670e0(0x371)](_0x5e1af2,_0x4b0f81){const _0x3ee46f=_0x5670e0;let _0x263e5d=_0x4b0f81[_0x3ee46f(0x380)]??{'fieldIds':[]},_0x118a06=this[_0x3ee46f(0x41f)](_0x5e1af2,_0x263e5d[_0x3ee46f(0x165)]),_0x5d3bc6=this[_0x3ee46f(0x3cd)](_0x5e1af2,_0x4b0f81),_0x163eb7=_0x4b0f81[_0x3ee46f(0x1cf)]===_0x3ee46f(0x292)||_0x4b0f81[_0x3ee46f(0x1cf)]===_0x3ee46f(0x21a)?_0x4b0f81[_0x3ee46f(0x1cf)]:'medium';return{..._0x4b0f81,'coverFieldId':_0x5d3bc6,'cardLayout':_0x4b0f81[_0x3ee46f(0xa8)]===_0x3ee46f(0x34f)?_0x3ee46f(0x34f):_0x3ee46f(0x377),'showFieldNames':_0x4b0f81[_0x3ee46f(0x22f)]!==!0x1,'fieldSettings':Object[_0x3ee46f(0x3a7)](Object[_0x3ee46f(0x419)](_0x4b0f81[_0x3ee46f(0x39e)]??{})[_0x3ee46f(0x364)](([_0x42b4f4])=>{const _0x2cf411=_0x3ee46f;let _0x26bb1a=_0x5e1af2['fields'][_0x42b4f4];return!!(_0x26bb1a&&_0x26bb1a[_0x2cf411(0x13a)]!==!0x0&&_0x26bb1a[_0x2cf411(0xeb)]!==_0x4fe15f['RecordId']);})),'card':{..._0x263e5d,'titleFieldId':_0x118a06,'coverFieldId':_0x5d3bc6,'fieldIds':Array[_0x3ee46f(0x99)](_0x263e5d[_0x3ee46f(0x1f6)])?_0x263e5d['fieldIds']:[]},'cardSize':_0x163eb7};}['_resolveCardTitleFieldId'](_0x2c20c1,_0x188916){const _0x20ce20=_0x5670e0;let _0xd61452=_0x188916?_0x2c20c1[_0x20ce20(0x2cb)][_0x188916]:void 0x0;return _0xd61452&&_0xd61452[_0x20ce20(0x13a)]!==!0x0&&_0xd61452[_0x20ce20(0xeb)]!==_0x4fe15f[_0x20ce20(0x300)]?_0xd61452['id']:Zr(_0x2c20c1);}['_resolveGalleryCoverFieldId'](_0x2bfe17,_0x2e534c){const _0x17e425=_0x5670e0;var _0x194b66;let _0x2df33d=_0x2e534c[_0x17e425(0x199)]??((_0x194b66=_0x2e534c[_0x17e425(0x380)])==null?void 0x0:_0x194b66[_0x17e425(0x199)])??null;if(!_0x2df33d)return null;let _0x11a406=_0x2bfe17[_0x17e425(0x2cb)][_0x2df33d];return _0x11a406&&this['_capabilities'](_0x11a406)['usableAsCardCover']?_0x11a406['id']:null;}['_resolveGalleryCardFieldIds'](_0xc20bd1,_0x37687b,_0x445769){const _0x4340b4=_0x5670e0;var _0x234d13,_0x10c9ab,_0x3301ef;let _0x242363=_0x445769[_0x4340b4(0x39e)]??{},_0x20e449=((_0x234d13=_0x445769['card'])==null?void 0x0:_0x234d13[_0x4340b4(0x165)])??Zr(_0xc20bd1),_0x2481e7=_0x445769[_0x4340b4(0x199)]??((_0x10c9ab=_0x445769[_0x4340b4(0x380)])==null?void 0x0:_0x10c9ab[_0x4340b4(0x199)])??null,_0x45bd05=(_0x3301ef=_0x445769[_0x4340b4(0x380)])!=null&&(_0x3301ef=_0x3301ef[_0x4340b4(0x1f6)])!=null&&_0x3301ef['length']?_0x445769[_0x4340b4(0x380)][_0x4340b4(0x1f6)]:Qr(_0xc20bd1,[_0x20e449,_0x2481e7,_0xc20bd1['primaryFieldId']]);return _0x45bd05[_0x4340b4(0x364)](_0x52a972=>{const _0x3a1a2a=_0x4340b4;var _0x514c38,_0x297b08;let _0x1fc731=_0xc20bd1[_0x3a1a2a(0x2cb)][_0x52a972];return!(!_0x1fc731||_0x1fc731[_0x3a1a2a(0x13a)]===!0x0||_0x1fc731[_0x3a1a2a(0xeb)]===_0x4fe15f[_0x3a1a2a(0x300)]||_0x1fc731['id']===_0x20e449||_0x1fc731['id']===_0x2481e7||(_0x514c38=_0x37687b[_0x3a1a2a(0x39e)])!=null&&(_0x514c38=_0x514c38[_0x52a972])!=null&&_0x514c38[_0x3a1a2a(0x21d)]||(_0x297b08=_0x242363[_0x52a972])!=null&&_0x297b08['hidden']);})[_0x4340b4(0x249)]((_0x29ccfb,_0x18d990)=>{const _0x4ec581=_0x4340b4;var _0x56ba5b,_0x3f0b2d;return(((_0x56ba5b=_0x242363[_0x29ccfb])==null?void 0x0:_0x56ba5b[_0x4ec581(0x311)])??_0x45bd05[_0x4ec581(0x2e8)](_0x29ccfb))-(((_0x3f0b2d=_0x242363[_0x18d990])==null?void 0x0:_0x3f0b2d[_0x4ec581(0x311)])??_0x45bd05[_0x4ec581(0x2e8)](_0x18d990));});}[_0x5670e0(0xfc)](_0x47c3f1,_0x44197a){const _0x1d70dc=_0x5670e0;var _0x6c6bb4;return((_0x6c6bb4=_0x44197a[_0x1d70dc(0x367)])!=null&&_0x6c6bb4[_0x1d70dc(0x19b)]?_0x44197a['fieldOrder']:_0x47c3f1[_0x1d70dc(0x367)])[_0x1d70dc(0x98)](_0x3d97b6=>{const _0x10aa98=_0x1d70dc;var _0x5e589c;let _0x4b6b7e=_0x47c3f1['fields'][_0x3d97b6],_0x270ee7=((_0x5e589c=_0x44197a[_0x10aa98(0x39e)])==null?void 0x0:_0x5e589c[_0x3d97b6])??{};return!_0x4b6b7e||_0x4b6b7e[_0x10aa98(0x13a)]===!0x0||_0x4b6b7e[_0x10aa98(0xeb)]===_0x4fe15f[_0x10aa98(0x300)]||_0x270ee7[_0x10aa98(0x21d)]?[]:[{'id':_0x4b6b7e['id'],'name':_0x4b6b7e['name'],'description':_0x4b6b7e[_0x10aa98(0x29a)],'type':_0x4b6b7e[_0x10aa98(0xeb)],'config':_0x4b6b7e[_0x10aa98(0x407)],'width':_0x270ee7[_0x10aa98(0x2cd)],'setting':_0x270ee7}];});}[_0x5670e0(0x1a1)](_0x2ffb25,_0x5d6944){const _0x26ca6d=_0x5670e0;var _0x34195c;return I(_0x26ca6d(0xfe),()=>{const _0x13c059=_0x26ca6d;var _0x1a4a8a,_0x52e652;let _0x100552=this['_projectTableRows'](_0x2ffb25),_0x179237=this[_0x13c059(0x237)](_0x2ffb25['id'],_0x5d6944),_0x5511f1=this[_0x13c059(0x274)](_0x2ffb25['id']),_0x3e0fbe=this[_0x13c059(0x40c)][_0x13c059(0x2db)](_0x179237);if(_0x3e0fbe&&_0x3e0fbe[_0x13c059(0x344)]===this[_0x13c059(0x258)]&&_0x3e0fbe[_0x13c059(0x3bc)]===this[_0x13c059(0x2c0)](_0x2ffb25['id'])){if(_0x3e0fbe[_0x13c059(0x426)]===_0x5511f1&&_0x3e0fbe[_0x13c059(0x24a)]===_0x100552)return _0x3e0fbe[_0x13c059(0x3b6)];if(_0x3e0fbe[_0x13c059(0x426)]!==_0x5511f1&&!this[_0x13c059(0x216)](_0x2ffb25['id'],_0x3e0fbe['cellRevision'],_0x5511f1,this['_filterSortFieldIds'](_0x5d6944))){let _0x250348=_0x3e0fbe['rows']===_0x3e0fbe['baseRows']?_0x100552:this[_0x13c059(0x1bf)](_0x3e0fbe[_0x13c059(0x3b6)],_0x100552);if(_0x250348)return this[_0x13c059(0x40c)][_0x13c059(0x2b8)](_0x179237,{..._0x3e0fbe,'rows':_0x250348,'baseRows':_0x100552,'cellRevision':_0x5511f1}),_0x250348;}}let _0x58b7fe=I('BaseProjection.filterAndSortRows',()=>this[_0x13c059(0x1ea)](_0x2ffb25,_0x5d6944,this[_0x13c059(0x37c)](_0x2ffb25,_0x5d6944,_0x100552)),{'tableId':_0x2ffb25['id'],'viewId':_0x5d6944==null?void 0x0:_0x5d6944['id'],'viewType':_0x5d6944==null?void 0x0:_0x5d6944[_0x13c059(0xeb)],'rows':_0x100552[_0x13c059(0x19b)],'filters':(_0x5d6944==null||(_0x1a4a8a=_0x5d6944[_0x13c059(0x364)])==null?void 0x0:_0x1a4a8a[_0x13c059(0x196)][_0x13c059(0x19b)])??0x0,'sorts':(_0x5d6944==null||(_0x52e652=_0x5d6944['sort'])==null?void 0x0:_0x52e652[_0x13c059(0x19b)])??0x0});return this[_0x13c059(0x40c)][_0x13c059(0x2b8)](_0x179237,{'table':_0x2ffb25,'rows':_0x58b7fe,'baseRows':_0x100552,'globalRevision':this[_0x13c059(0x258)],'tableRevision':this[_0x13c059(0x2c0)](_0x2ffb25['id']),'cellRevision':_0x5511f1}),_0x58b7fe;},{'tableId':_0x2ffb25['id'],'viewId':_0x5d6944==null?void 0x0:_0x5d6944['id'],'viewType':_0x5d6944==null?void 0x0:_0x5d6944[_0x26ca6d(0xeb)],'records':((_0x34195c=_0x2ffb25[_0x26ca6d(0x411)])==null?void 0x0:_0x34195c[_0x26ca6d(0x19b)])??Object[_0x26ca6d(0x3ac)](_0x2ffb25['records']??{})[_0x26ca6d(0x19b)]});}[_0x5670e0(0x423)](_0xd878ad){const _0x1a2436=_0x5670e0;var _0xc76947;return I('BaseProjection.projectTableRows',()=>{const _0x29c1db=_0x4f53;var _0x10df3b;let _0x207833=this[_0x29c1db(0x274)](_0xd878ad['id']),_0x1596f1=this[_0x29c1db(0xfd)][_0x29c1db(0x2db)](_0xd878ad['id']);if(_0x1596f1&&_0x1596f1['globalRevision']===this[_0x29c1db(0x258)]&&_0x1596f1[_0x29c1db(0x3bc)]===this[_0x29c1db(0x2c0)](_0xd878ad['id'])){if(_0x1596f1[_0x29c1db(0x426)]===_0x207833&&fi(_0x1596f1[_0x29c1db(0x19f)],_0xd878ad))return _0x1596f1['table']=_0xd878ad,_0x1596f1[_0x29c1db(0x3b6)];let _0xe7f345=this[_0x29c1db(0x23d)](_0xd878ad,_0x1596f1,_0x207833);if(_0xe7f345)return _0xe7f345;}ui(_0xd878ad)||L(_0xd878ad);let _0x2368b8=(_0x10df3b=_0xd878ad[_0x29c1db(0x411)])!=null&&_0x10df3b[_0x29c1db(0x19b)]?_0xd878ad[_0x29c1db(0x411)]:hi(_0xd878ad[_0x29c1db(0x83)]),_0x9888d3=I('BaseProjection.materializeTableRows',()=>{const _0x269b94=_0x29c1db;let _0x481d53=[];for(let _0x3e231c of _0x2368b8){let _0xc8a6b=_0xd878ad[_0x269b94(0x83)][_0x3e231c];if(!_0xc8a6b)continue;let _0x3eca38={};for(let _0x3c5550 of _0xd878ad[_0x269b94(0x367)])_0x3eca38[_0x3c5550]=yt(_0xd878ad,_0xc8a6b['id'],_0x3c5550);_0x481d53[_0x269b94(0x393)]({'recordId':_0xc8a6b['id'],'values':_0x3eca38});}return _0x481d53;},{'tableId':_0xd878ad['id'],'records':_0x2368b8[_0x29c1db(0x19b)],'fields':_0xd878ad[_0x29c1db(0x367)]['length']});return this[_0x29c1db(0xfd)][_0x29c1db(0x2b8)](_0xd878ad['id'],{'table':_0xd878ad,'rows':_0x9888d3,'rowIndexById':li(_0x9888d3),'globalRevision':this[_0x29c1db(0x258)],'tableRevision':this[_0x29c1db(0x2c0)](_0xd878ad['id']),'cellRevision':_0x207833}),_0x9888d3;},{'tableId':_0xd878ad['id'],'records':((_0xc76947=_0xd878ad[_0x1a2436(0x411)])==null?void 0x0:_0xc76947['length'])??Object[_0x1a2436(0x3ac)](_0xd878ad[_0x1a2436(0x83)]??{})[_0x1a2436(0x19b)],'fields':_0xd878ad[_0x1a2436(0x367)][_0x1a2436(0x19b)]});}[_0x5670e0(0x23d)](_0x25953d,_0x2bd388,_0x4b3eee){const _0x44fd02=_0x5670e0;let _0xd69e71=(this[_0x44fd02(0x42d)][_0x44fd02(0x2db)](_0x25953d['id'])??[])[_0x44fd02(0x364)](_0x2e7899=>_0x2e7899[_0x44fd02(0xd2)]>_0x2bd388['cellRevision']&&_0x2e7899[_0x44fd02(0xd2)]<=_0x4b3eee);if(!_0xd69e71['length'])return _0x2bd388[_0x44fd02(0x19f)]===_0x25953d?_0x2bd388[_0x44fd02(0x3b6)]:null;let _0x5b021e=_0x2bd388[_0x44fd02(0x3b6)],_0x253531=new Map();for(let _0x5ed67b of _0xd69e71){let _0x314406=_0x253531['get'](_0x5ed67b['recordId']);_0x314406||(_0x314406=new Set(),_0x253531[_0x44fd02(0x2b8)](_0x5ed67b[_0x44fd02(0x191)],_0x314406)),_0x314406[_0x44fd02(0x41d)](_0x5ed67b[_0x44fd02(0x186)]);}for(let [_0x2dd6ca,_0x768e24]of _0x253531){if(!_0x25953d[_0x44fd02(0x83)][_0x2dd6ca])return null;let _0x4df49f=_0x2bd388[_0x44fd02(0x34b)][_0x44fd02(0x2db)](_0x2dd6ca);if(_0x4df49f==null)return null;_0x5b021e===_0x2bd388[_0x44fd02(0x3b6)]&&(_0x5b021e=[..._0x2bd388[_0x44fd02(0x3b6)]]);let _0x1e6189=_0x5b021e[_0x4df49f],_0x42bca9={..._0x1e6189[_0x44fd02(0x1c8)]};_0x768e24[_0x44fd02(0x143)](_0x5c2cc9=>{_0x42bca9[_0x5c2cc9]=yt(_0x25953d,_0x2dd6ca,_0x5c2cc9);}),_0x5b021e[_0x4df49f]={..._0x1e6189,'values':_0x42bca9};}let _0x38aea4={'table':_0x25953d,'rows':_0x5b021e,'rowIndexById':_0x2bd388[_0x44fd02(0x34b)],'globalRevision':this[_0x44fd02(0x258)],'tableRevision':this['_getTableRevision'](_0x25953d['id']),'cellRevision':_0x4b3eee};return this[_0x44fd02(0xfd)]['set'](_0x25953d['id'],_0x38aea4),this[_0x44fd02(0x42d)]['set'](_0x25953d['id'],(this[_0x44fd02(0x42d)]['get'](_0x25953d['id'])??[])[_0x44fd02(0x364)](_0x4e06b9=>_0x4e06b9[_0x44fd02(0xd2)]>Math[_0x44fd02(0x272)](0x0,_0x4b3eee-0x100))),_0x5b021e;}['_patchCachedProjectedRows'](_0x2ab4eb,_0x352c79){const _0x5ae4b2=_0x5670e0;let _0x40ffad=new Map(_0x352c79[_0x5ae4b2(0x102)](_0x362f87=>[_0x362f87[_0x5ae4b2(0x191)],_0x362f87])),_0x24bf32=!0x1,_0x198089=_0x2ab4eb[_0x5ae4b2(0x102)](_0x157398=>{const _0x40ae03=_0x5ae4b2;let _0x1dadd9=_0x40ffad[_0x40ae03(0x2db)](_0x157398[_0x40ae03(0x191)]);return _0x1dadd9?_0x1dadd9===_0x157398?_0x157398:(_0x24bf32=!0x0,_0x1dadd9):_0x157398;});return _0x24bf32?_0x198089:_0x2ab4eb;}[_0x5670e0(0x216)](_0x25f242,_0x35b168,_0x1c56c9,_0x2b92fa){const _0x4a8909=_0x5670e0;return!_0x2b92fa[_0x4a8909(0x268)]||_0x35b168===_0x1c56c9?!0x1:_0x1c56c9-_0x35b168>0x100||(this[_0x4a8909(0x42d)][_0x4a8909(0x2db)](_0x25f242)??[])[_0x4a8909(0x1c1)](_0x374033=>_0x374033['revision']>_0x35b168&&_0x374033[_0x4a8909(0xd2)]<=_0x1c56c9&&_0x2b92fa['has'](_0x374033[_0x4a8909(0x186)]));}[_0x5670e0(0x2bc)](_0xf2228c){const _0x30fd1a=_0x5670e0;var _0x109d97,_0x20c31c;let _0x486004=new Set();return _0xf2228c==null||(_0x109d97=_0xf2228c['filter'])==null||_0x109d97[_0x30fd1a(0x196)][_0x30fd1a(0x143)](_0x5e54c2=>_0x486004[_0x30fd1a(0x41d)](_0x5e54c2[_0x30fd1a(0x186)])),_0xf2228c==null||(_0x20c31c=_0xf2228c[_0x30fd1a(0x249)])==null||_0x20c31c[_0x30fd1a(0x143)](_0x502768=>_0x486004[_0x30fd1a(0x41d)](_0x502768[_0x30fd1a(0x186)])),_0x486004;}[_0x5670e0(0xb4)](_0x39da25){const _0x3a7e9d=_0x5670e0;var _0x1a4be8;let _0x16e469=this[_0x3a7e9d(0x2bc)](_0x39da25);return(_0x1a4be8=_0x39da25['group'])==null||_0x1a4be8[_0x3a7e9d(0x143)](_0xc41248=>_0x16e469[_0x3a7e9d(0x41d)](_0xc41248['fieldId'])),_0x16e469;}[_0x5670e0(0x37c)](_0x209b58,_0x187401,_0x5325b3){const _0x2ce109=_0x5670e0;let _0x110ed8=_0x187401==null?void 0x0:_0x187401[_0x2ce109(0x364)];if(!(_0x110ed8!=null&&_0x110ed8['conditions'][_0x2ce109(0x19b)]))return _0x5325b3;let _0x35771e=_0x110ed8[_0x2ce109(0x196)][_0x2ce109(0x364)](_0x59ee6a=>!Ii(_0x59ee6a));return _0x35771e['length']?_0x5325b3[_0x2ce109(0x364)](_0x330896=>{const _0x4c9cb0=_0x2ce109;if(_0x110ed8['conjunction']===_0x55f09b['OR']){for(let _0x319018 of _0x35771e){let _0x5e91ba=_0x209b58['fields'][_0x319018[_0x4c9cb0(0x186)]];if(!_0x5e91ba||this[_0x4c9cb0(0x26b)]['get'](_0x5e91ba[_0x4c9cb0(0xeb)])[_0x4c9cb0(0x364)](_0x330896['values'][_0x5e91ba['id']],_0x319018[_0x4c9cb0(0xc2)],_0x319018[_0x4c9cb0(0x2ad)],_0x5e91ba))return!0x0;}return!0x1;}for(let _0x3f047f of _0x35771e){let _0x42cc48=_0x209b58[_0x4c9cb0(0x2cb)][_0x3f047f[_0x4c9cb0(0x186)]];if(_0x42cc48&&!this[_0x4c9cb0(0x26b)][_0x4c9cb0(0x2db)](_0x42cc48[_0x4c9cb0(0xeb)])[_0x4c9cb0(0x364)](_0x330896[_0x4c9cb0(0x1c8)][_0x42cc48['id']],_0x3f047f[_0x4c9cb0(0xc2)],_0x3f047f[_0x4c9cb0(0x2ad)],_0x42cc48))return!0x1;}return!0x0;}):_0x5325b3;}[_0x5670e0(0x1ea)](_0x360923,_0x3431f0,_0x100937){const _0x597255=_0x5670e0;let _0x48fccc=(_0x3431f0==null?void 0x0:_0x3431f0[_0x597255(0x249)])??[];if(!_0x48fccc[_0x597255(0x19b)])return _0x100937;let _0x45190e=_0x48fccc['flatMap'](_0x241b18=>{const _0x4c606c=_0x597255;let _0x2137bc=_0x360923[_0x4c606c(0x2cb)][_0x241b18[_0x4c606c(0x186)]];return _0x2137bc?[{..._0x241b18,'field':_0x2137bc}]:[];});return _0x45190e['length']?this[_0x597255(0x87)](_0x45190e)?this[_0x597255(0x338)](_0x45190e,_0x100937):[..._0x100937]['sort']((_0x25ff9b,_0x5ec292)=>{const _0x261add=_0x597255;for(let _0x3a5f95 of _0x45190e){let _0x429eff=_0x3a5f95['field'],_0x5d7750=this[_0x261add(0x26b)]['get'](_0x429eff['type'])[_0x261add(0x15a)](_0x25ff9b[_0x261add(0x1c8)][_0x429eff['id']],_0x5ec292[_0x261add(0x1c8)][_0x429eff['id']],_0x429eff);if(_0x5d7750!==0x0)return _0x3a5f95['direction']===_0x4b3f27[_0x261add(0x3db)]?-_0x5d7750:_0x5d7750;}return 0x0;}):_0x100937;}['_canUseFastSort'](_0x163300){const _0x22f98e=_0x5670e0;return _0x163300[_0x22f98e(0x3f9)](_0x25c3d8=>ai[_0x22f98e(0xb9)](_0x25c3d8[_0x22f98e(0x378)]['type']));}[_0x5670e0(0x338)](_0x11e9fd,_0x3b0b3e){const _0x52587b=_0x5670e0;return _0x3b0b3e['map']((_0x2bbea0,_0x12b009)=>({'row':_0x2bbea0,'index':_0x12b009,'keys':_0x11e9fd[_0x52587b(0x102)](_0x4a4a63=>_0x2bbea0[_0x52587b(0x1c8)][_0x4a4a63[_0x52587b(0x186)]])}))['sort']((_0x11aa74,_0x2227bd)=>{const _0xec0108=_0x52587b;for(let _0x2fb620=0x0;_0x2fb620<_0x11e9fd[_0xec0108(0x19b)];_0x2fb620++){let _0xa3d966=Fi(_0x11aa74['keys'][_0x2fb620],_0x2227bd[_0xec0108(0x3ac)][_0x2fb620]);if(_0xa3d966!==0x0)return _0x11e9fd[_0x2fb620][_0xec0108(0x15d)]===_0x4b3f27[_0xec0108(0x3db)]?-_0xa3d966:_0xa3d966;}return _0x11aa74[_0xec0108(0x95)]-_0x2227bd[_0xec0108(0x95)];})[_0x52587b(0x102)](_0x1ea0c4=>_0x1ea0c4['row']);}[_0x5670e0(0x33d)](_0x1cde85,_0x13fd7f,_0x402a69){const _0x2846fe=_0x5670e0;var _0x40756c;return I(_0x2846fe(0x16a),()=>{const _0x4bb916=_0x2846fe;var _0x1a2f3e;if(!((_0x1a2f3e=_0x13fd7f['group'])!=null&&_0x1a2f3e['length']))return[];let _0x38056e=_0x13fd7f['group'][_0x4bb916(0x364)](_0x21fcf4=>_0x1cde85[_0x4bb916(0x2cb)][_0x21fcf4[_0x4bb916(0x186)]]);if(!_0x38056e[_0x4bb916(0x19b)])return[];let _0x7d32d4=this[_0x4bb916(0x228)](_0x1cde85['id'],_0x13fd7f,_0x38056e),_0x55bd68=this[_0x4bb916(0x274)](_0x1cde85['id']),_0x36f5ef=this['_projectedGroupsCache'][_0x4bb916(0x2db)](_0x7d32d4);if(_0x36f5ef&&_0x36f5ef[_0x4bb916(0x344)]===this['_globalRevision']&&_0x36f5ef[_0x4bb916(0x3bc)]===this[_0x4bb916(0x2c0)](_0x1cde85['id'])){if(_0x36f5ef[_0x4bb916(0x426)]===_0x55bd68&&_0x36f5ef[_0x4bb916(0x3b6)]===_0x402a69)return _0x36f5ef['groups'];if(_0x36f5ef[_0x4bb916(0x426)]!==_0x55bd68&&!this[_0x4bb916(0x216)](_0x1cde85['id'],_0x36f5ef[_0x4bb916(0x426)],_0x55bd68,this[_0x4bb916(0xb4)](_0x13fd7f)))return this['_projectedGroupsCache'][_0x4bb916(0x2b8)](_0x7d32d4,{..._0x36f5ef,'rows':_0x402a69,'cellRevision':_0x55bd68}),_0x36f5ef[_0x4bb916(0x3bf)];}let _0x4143f9=new Map();for(let _0x1e44f6 of _0x402a69){let _0x583c27=_0x4143f9,_0x3b2094='';for(let _0x377d6d=0x0;_0x377d6d<_0x38056e['length'];_0x377d6d++){let _0x3f2744=_0x38056e[_0x377d6d],_0x581675=_0x1e44f6[_0x4bb916(0x1c8)][_0x3f2744[_0x4bb916(0x186)]],_0x36ee23=ci(_0x581675),_0x3eeb15=_0x3f2744[_0x4bb916(0x186)]+'\x00'+_0x36ee23,_0x171408=_0x3b2094+'/'+_0x3f2744[_0x4bb916(0x186)]+':'+_0x36ee23,_0x3cf555=_0x583c27[_0x4bb916(0x2db)](_0x3eeb15);_0x3cf555||(_0x3cf555={'key':_0x36ee23,'value':_0x581675,'path':_0x171408,'label':_0x36ee23||_0x4bb916(0x3aa),'fieldId':_0x3f2744[_0x4bb916(0x186)],'level':_0x377d6d,'recordIds':[],'children':new Map()},_0x583c27[_0x4bb916(0x2b8)](_0x3eeb15,_0x3cf555)),_0x3cf555[_0x4bb916(0x42f)][_0x4bb916(0x393)](_0x1e44f6[_0x4bb916(0x191)]),_0x583c27=_0x3cf555[_0x4bb916(0x1ce)],_0x3b2094=_0x171408;}}let _0x4ee84c=this['_materializeGroups'](_0x38056e,_0x4143f9,0x0);return this[_0x4bb916(0x354)][_0x4bb916(0x2b8)](_0x7d32d4,{'table':_0x1cde85,'rows':_0x402a69,'groups':_0x4ee84c,'globalRevision':this[_0x4bb916(0x258)],'tableRevision':this[_0x4bb916(0x2c0)](_0x1cde85['id']),'cellRevision':_0x55bd68}),_0x4ee84c;},{'tableId':_0x1cde85['id'],'viewId':_0x13fd7f['id'],'viewType':_0x13fd7f[_0x2846fe(0xeb)],'rows':_0x402a69[_0x2846fe(0x19b)],'groupFields':((_0x40756c=_0x13fd7f[_0x2846fe(0x3dd)])==null?void 0x0:_0x40756c['length'])??0x0});}[_0x5670e0(0x33a)](_0x415e19,_0x193197,_0x2f9fad){const _0x322cfd=_0x5670e0;var _0x396c49;let _0x4c3e4d=Array[_0x322cfd(0x162)](_0x193197[_0x322cfd(0x1c8)]()),_0x37d9a6=(_0x396c49=_0x415e19[_0x2f9fad])==null?void 0x0:_0x396c49['direction'];return _0x37d9a6&&_0x4c3e4d[_0x322cfd(0x249)]((_0x52d1dd,_0x4f7afc)=>{const _0x1ea730=_0x322cfd;let _0x506d2a=_0x52d1dd[_0x1ea730(0x1d3)]['localeCompare'](_0x4f7afc[_0x1ea730(0x1d3)]);return _0x37d9a6===_0x4b3f27[_0x1ea730(0x3db)]?-_0x506d2a:_0x506d2a;}),_0x4c3e4d[_0x322cfd(0x102)](_0x183188=>({'key':_0x183188[_0x322cfd(0x1d3)],'value':_0x183188['value'],'path':_0x183188['path'],'label':_0x183188[_0x322cfd(0x2e6)],'fieldId':_0x183188[_0x322cfd(0x186)],'level':_0x183188[_0x322cfd(0x158)],'recordIds':_0x183188[_0x322cfd(0x42f)],'children':this[_0x322cfd(0x33a)](_0x415e19,_0x183188['children'],_0x2f9fad+0x1)}));}[_0x5670e0(0x119)](_0x20afc6,_0x3aac89,_0x175442){const _0x5c71dc=_0x5670e0;let _0x15a532=_0x175442??_0x20afc6[_0x5c71dc(0x2d7)],_0x1760f4=_0x3aac89[_0x5c71dc(0x1c8)][_0x15a532];return _0x1760f4==null?'':String(_0x1760f4);}[_0x5670e0(0x422)](_0x56f9b0){const _0xc4e4b9=_0x5670e0;if(Array[_0xc4e4b9(0x99)](_0x56f9b0))return _0x56f9b0[_0xc4e4b9(0x102)](String);if(typeof _0x56f9b0==_0xc4e4b9(0x2dc)&&_0x56f9b0)return[_0x56f9b0];}['_capabilities'](_0x33a4b4){const _0x494556=_0x5670e0;return this[_0x494556(0x26b)][_0x494556(0x2db)](_0x33a4b4[_0x494556(0xeb)])[_0x494556(0x1ab)](_0x33a4b4);}};si=X([Y(0x0,_0x72259(mr))],si);function ci(_0x2e1294){return _0x2e1294==null?'':String(_0x2e1294);}function li(_0x38484c){const _0xcbe3d6=_0x5670e0;return new Map(_0x38484c['map']((_0x5288ef,_0x39e415)=>[_0x5288ef[_0xcbe3d6(0x191)],_0x39e415]));}function ui(_0x3d8504){const _0x2cfa16=_0x5670e0;return!!(Array['isArray'](_0x3d8504[_0x2cfa16(0x411)])&&_0x3d8504[_0x2cfa16(0x250)]&&_0x3d8504['rowId']&&_0x3d8504['colIndex']&&_0x3d8504[_0x2cfa16(0x18c)]&&_0x3d8504[_0x2cfa16(0x259)]);}function di(_0x5595ea){const _0x2a7074=_0x5670e0;let _0x57c65c=(_0x5595ea==null?void 0x0:_0x5595ea[_0x2a7074(0x196)][_0x2a7074(0x364)](_0x3383f9=>!Ii(_0x3383f9)))??[];return!_0x5595ea||!_0x57c65c[_0x2a7074(0x19b)]?null:{'conjunction':_0x5595ea['conjunction'],'conditions':_0x57c65c[_0x2a7074(0x102)](_0x4b1c6c=>({'fieldId':_0x4b1c6c[_0x2a7074(0x186)],'operator':_0x4b1c6c[_0x2a7074(0xc2)],'operand':_0x4b1c6c[_0x2a7074(0x2ad)]}))};}function fi(_0x55e47f,_0x423b10){const _0x2ed366=_0x5670e0;return _0x55e47f[_0x2ed366(0x83)]===_0x423b10[_0x2ed366(0x83)]&&_0x55e47f[_0x2ed366(0x411)]===_0x423b10[_0x2ed366(0x411)]&&_0x55e47f[_0x2ed366(0x2cb)]===_0x423b10['fields']&&_0x55e47f[_0x2ed366(0x367)]===_0x423b10['fieldOrder']&&_0x55e47f[_0x2ed366(0x259)]===_0x423b10['cellData']&&_0x55e47f['rowIndex']===_0x423b10[_0x2ed366(0x250)]&&_0x55e47f[_0x2ed366(0x2ea)]===_0x423b10[_0x2ed366(0x2ea)]&&_0x55e47f[_0x2ed366(0xb6)]===_0x423b10['colIndex']&&_0x55e47f['colId']===_0x423b10['colId'];}function pi(_0x8c4cf2){const _0x30e102=_0x5670e0;return _0x8c4cf2!=null&&_0x8c4cf2[_0x30e102(0x19b)]?_0x8c4cf2['map'](_0x2ad19a=>({'fieldId':_0x2ad19a[_0x30e102(0x186)],'direction':_0x2ad19a[_0x30e102(0x15d)]})):null;}function mi(_0x59c56f){const _0x3326b4=_0x5670e0;if(typeof _0x59c56f!='object'||!_0x59c56f)return JSON[_0x3326b4(0x1a0)](_0x59c56f)??_0x3326b4(0x1fa);if(Array[_0x3326b4(0x99)](_0x59c56f))return'['+_0x59c56f['map'](mi)[_0x3326b4(0x3d6)](',')+']';let _0x5f2b05=_0x59c56f;return'{'+Object[_0x3326b4(0x3ac)](_0x5f2b05)[_0x3326b4(0x249)]()[_0x3326b4(0x102)](_0x2e9d17=>JSON[_0x3326b4(0x1a0)](_0x2e9d17)+':'+mi(_0x5f2b05[_0x2e9d17]))['join'](',')+'}';}function hi(_0x5e3286){const _0x39076c=_0x5670e0;let _0x7cffd=Object[_0x39076c(0x1c8)](_0x5e3286)['sort']((_0xbae068,_0x30b877)=>_0xbae068[_0x39076c(0x27b)]['localeCompare'](_0x30b877['orderKey'])),_0x28544a=[];for(let _0x4d4959 of _0x7cffd)_0x28544a['push'](_0x4d4959['id']);return _0x28544a;}function gi(_0x5e2a35){const _0x35e6e4=_0x5670e0;return{'weekdays':Array[_0x35e6e4(0x99)](_0x5e2a35==null?void 0x0:_0x5e2a35['weekdays'])&&_0x5e2a35[_0x35e6e4(0x3d9)][_0x35e6e4(0x19b)]?[...new Set(_0x5e2a35[_0x35e6e4(0x3d9)]['filter'](_0x5aeee0=>Number['isInteger'](_0x5aeee0)&&_0x5aeee0>=0x1&&_0x5aeee0<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x35e6e4(0x99)](_0x5e2a35==null?void 0x0:_0x5e2a35['exceptions'])?_0x5e2a35['exceptions']['flatMap'](_0x55f291=>!_0x55f291||!Number[_0x35e6e4(0x154)](_0x55f291[_0x35e6e4(0x3d3)])?[]:[{'id':String(_0x55f291['id']||_0x35e6e4(0xdf)+_0x55f291[_0x35e6e4(0x3d3)]),'date':Z(Number(_0x55f291[_0x35e6e4(0x3d3)])),'name':String(_0x55f291[_0x35e6e4(0x26f)]||_0x35e6e4(0x327)),'type':_0x55f291[_0x35e6e4(0xeb)]===_0x35e6e4(0x2e5)?_0x35e6e4(0x2e5):_0x35e6e4(0x1ac)}]):[]};}function _i(_0x27ad99,_0x5b3277,_0x439d47,_0x411c75){let _0x3d5122=xi(_0x27ad99,_0x5b3277),_0x13f322=Si(_0x27ad99,_0x439d47),_0x4ba601=vi(_0x27ad99,_0x3d5122,_0x13f322,_0x411c75);return{'scale':_0x27ad99,'start':_0x3d5122,'end':_0x13f322,'unitWidth':bi(_0x27ad99),'majorHeaders':yi(_0x27ad99,_0x3d5122,_0x13f322),'columns':_0x4ba601};}function vi(_0x5bc1ea,_0x188f3a,_0x58f3de,_0x1b738e){const _0x3b1a19=_0x5670e0;let _0x576673=[],_0x48ad9d=_0x188f3a;for(;_0x48ad9d<_0x58f3de;){let _0x2a0ada=_0x5bc1ea===_0x3b1a19(0x13e)?ji(_0x48ad9d,0x7):_0x5bc1ea===_0x3b1a19(0x207)?Mi(_0x48ad9d,0x1):ji(_0x48ad9d,0x1);_0x576673['push']({'id':_0x5bc1ea+'-'+_0x48ad9d,'label':Ci(_0x5bc1ea,_0x48ad9d,_0x2a0ada),'majorLabel':wi(_0x5bc1ea,_0x48ad9d),'start':_0x48ad9d,'end':_0x2a0ada,'nonWorking':Ei(_0x48ad9d,_0x2a0ada,_0x1b738e)}),_0x48ad9d=_0x2a0ada;}return _0x576673;}function yi(_0x102531,_0x3af8cb,_0x507d84){const _0x120ca9=_0x5670e0;let _0x1020f3=[],_0x2e03ea=_0x102531===_0x120ca9(0x207)?Ai(_0x3af8cb):ki(_0x3af8cb);for(;_0x2e03ea<_0x507d84;){let _0x26c58e=_0x102531===_0x120ca9(0x207)?Ni(_0x2e03ea,0x1):Mi(_0x2e03ea,0x1);_0x1020f3[_0x120ca9(0x393)]({'id':'major-'+_0x2e03ea,'label':_0x102531===_0x120ca9(0x207)?String(new Date(_0x2e03ea)['getUTCFullYear']()):Pi(_0x2e03ea),'start':_0x2e03ea,'end':_0x26c58e}),_0x2e03ea=_0x26c58e;}return _0x1020f3;}function bi(_0x5c2ba6){const _0x54794e=_0x5670e0;switch(_0x5c2ba6){case _0x54794e(0x178):return 0xac;case _0x54794e(0x13e):return 0xac;case _0x54794e(0x207):return 0x88;default:return 0x56;}}function xi(_0x160920,_0x2060de){const _0x5938aa=_0x5670e0;return _0x160920===_0x5938aa(0x207)?Ai(_0x2060de):_0x160920===_0x5938aa(0x13e)?Oi(_0x2060de):Z(_0x2060de);}function Si(_0x4376a4,_0x9b7569){const _0x3040f6=_0x5670e0;return _0x4376a4==='year'?Ni(Ai(_0x9b7569),0x1):_0x4376a4===_0x3040f6(0x13e)?ji(Oi(_0x9b7569),0x7):ji(Z(_0x9b7569),0x1);}function Ci(_0x320d70,_0x1b3619,_0x185372){const _0x247106=_0x5670e0;let _0x50d70e=new Date(_0x1b3619);return _0x320d70===_0x247106(0x13e)?_0x50d70e[_0x247106(0x415)]()+'-'+new Date(_0x185372-oi)['getUTCDate']():_0x320d70===_0x247106(0x207)?_0x50d70e[_0x247106(0x187)](_0x247106(0x313),{'month':_0x247106(0x205),'timeZone':_0x247106(0x397)}):String(_0x50d70e['getUTCDate']());}function wi(_0x49b607,_0x4e9b6a){const _0x5615f8=_0x5670e0;return _0x49b607==='year'?String(new Date(_0x4e9b6a)[_0x5615f8(0x185)]()):Pi(_0x4e9b6a);}function Ti(_0x3b3eee,_0x2b0739,_0xccac55){let _0x372508=gi(_0xccac55),_0xcfd665=0x0;for(let _0x35d38b=Z(_0x3b3eee);_0x35d38b<=Z(_0x2b0739);_0x35d38b=ji(_0x35d38b,0x1))Di(_0x35d38b,_0x372508)||_0xcfd665++;return _0xcfd665;}function Ei(_0xbce7c1,_0x407093,_0x557319){if(!_0x557319)return!0x1;let _0x23b9fd=gi(_0x557319);for(let _0x44750c=Z(_0xbce7c1);_0x44750c<_0x407093;_0x44750c=ji(_0x44750c,0x1))if(!Di(_0x44750c,_0x23b9fd))return!0x1;return!0x0;}function Di(_0x2d8a98,_0x378f4c){const _0xbc2d08=_0x5670e0;let _0x303be0=Z(_0x2d8a98),_0x4058c5=_0x378f4c[_0xbc2d08(0x424)][_0xbc2d08(0x361)](_0x1b5a00=>Z(_0x1b5a00[_0xbc2d08(0x3d3)])===_0x303be0);if(_0x4058c5)return _0x4058c5[_0xbc2d08(0xeb)]===_0xbc2d08(0x1ac);let _0x9bd309=new Date(_0x303be0)[_0xbc2d08(0x166)](),_0x5972fe=_0x9bd309===0x0?0x7:_0x9bd309;return!_0x378f4c[_0xbc2d08(0x3d9)][_0xbc2d08(0x173)](_0x5972fe);}function Z(_0x31f278){const _0x385410=_0x5670e0;let _0x4d9c9a=new Date(_0x31f278);return Date[_0x385410(0x397)](_0x4d9c9a[_0x385410(0x185)](),_0x4d9c9a['getUTCMonth'](),_0x4d9c9a[_0x385410(0x415)]());}function Oi(_0x32d5f1){const _0x4b8f46=_0x5670e0;let _0x8c3941=Z(_0x32d5f1),_0x5a1038=new Date(_0x8c3941)[_0x4b8f46(0x166)]();return ji(_0x8c3941,-(_0x5a1038===0x0?0x6:_0x5a1038-0x1));}function ki(_0x2a1f09){const _0x2d57c7=_0x5670e0;let _0x218dbb=new Date(_0x2a1f09);return Date[_0x2d57c7(0x397)](_0x218dbb['getUTCFullYear'](),_0x218dbb[_0x2d57c7(0x23c)](),0x1);}function Ai(_0x4e44b0){const _0x10bebc=_0x5670e0;let _0x2a9b6c=new Date(_0x4e44b0);return Date[_0x10bebc(0x397)](_0x2a9b6c[_0x10bebc(0x185)](),0x0,0x1);}function ji(_0x5312c2,_0x21d9a8){return _0x5312c2+_0x21d9a8*oi;}function Mi(_0x10dbb6,_0x490421){const _0x1f49e2=_0x5670e0;let _0x19e2c5=new Date(_0x10dbb6);return Date[_0x1f49e2(0x397)](_0x19e2c5[_0x1f49e2(0x185)](),_0x19e2c5['getUTCMonth']()+_0x490421,0x1);}function Ni(_0x195e2c,_0x3b4d86){const _0xb67109=_0x5670e0;let _0x41c21a=new Date(_0x195e2c);return Date[_0xb67109(0x397)](_0x41c21a[_0xb67109(0x185)]()+_0x3b4d86,0x0,0x1);}function Pi(_0x172d27){const _0x2d9e8b=_0x5670e0;let _0x41b0e1=new Date(_0x172d27);return _0x41b0e1[_0x2d9e8b(0x187)]('en-US',{'month':_0x2d9e8b(0x205),'timeZone':'UTC'})+'\x20'+_0x41b0e1[_0x2d9e8b(0x185)]();}function Fi(_0x2adf52,_0x110e06){const _0xe47b8d=_0x5670e0;if(_0x2adf52==null&&_0x110e06==null)return 0x0;if(_0x2adf52==null)return-0x1;if(_0x110e06==null)return 0x1;if(typeof _0x2adf52==_0xe47b8d(0x168)||typeof _0x110e06=='boolean')return Number(_0x2adf52===!0x0)-Number(_0x110e06===!0x0);let _0x20f185=Number(_0x2adf52),_0x4c73f4=Number(_0x110e06),_0xab6689=Number[_0xe47b8d(0x154)](_0x20f185),_0x5ed3b7=Number[_0xe47b8d(0x154)](_0x4c73f4);return _0xab6689&&_0x5ed3b7?_0x20f185-_0x4c73f4:_0xab6689?0x1:_0x5ed3b7?-0x1:String(_0x2adf52)['localeCompare'](String(_0x110e06));}function Ii(_0x2ad8cf){const _0x540ef2=_0x5670e0;if(_0x2ad8cf['operator']!=='is'&&_0x2ad8cf[_0x540ef2(0xc2)]!==_0x540ef2(0x409))return!0x1;let _0x1df497=_0x2ad8cf[_0x540ef2(0x2ad)];return _0x1df497==null?!0x0:typeof _0x1df497==_0x540ef2(0x2dc)?_0x1df497[_0x540ef2(0x12d)]()==='':Array[_0x540ef2(0x99)](_0x1df497)?_0x1df497[_0x540ef2(0x19b)]===0x0:!0x1;}function Li(_0x4f55ef,_0x532c9c){const _0x80eb8b=_0x5670e0;var _0x1f5855;let _0x36369e=Array[_0x80eb8b(0x99)]((_0x1f5855=_0x4f55ef[_0x80eb8b(0x407)])==null?void 0x0:_0x1f5855['options'])?_0x4f55ef[_0x80eb8b(0x407)]['options']:[];for(let _0xaf38ee of _0x36369e){if(_0xaf38ee==null)continue;if(typeof _0xaf38ee==_0x80eb8b(0x2dc)){if(_0xaf38ee===_0x532c9c)return{'id':_0xaf38ee,'name':_0xaf38ee};continue;}let _0x4295a6=_0xaf38ee,_0x969f08=String(_0x4295a6['id']??_0x4295a6[_0x80eb8b(0x26f)]??''),_0x3bc323=String(_0x4295a6[_0x80eb8b(0x26f)]??_0x4295a6['id']??_0x969f08);if(_0x969f08===_0x532c9c||_0x3bc323===_0x532c9c)return{'id':_0x969f08,'name':_0x3bc323,'color':_0x4295a6[_0x80eb8b(0x335)]==null?void 0x0:String(_0x4295a6[_0x80eb8b(0x335)])};}return null;}let Ri=function(_0x585ea8){const _0x862ba2=_0x5670e0;return _0x585ea8['CreateView']='create-view',_0x585ea8[_0x862ba2(0x101)]=_0x862ba2(0x2bb),_0x585ea8;}({});const Q={'id':_0x5670e0(0x2f8),'type':_0x21089e[_0x5670e0(0x323)],'handler'(_0x5807a5,_0x2ccabc){const _0x2f1b0f=_0x5670e0;let {unitId:_0x5a7da8,op:_0x241393}=_0x2ccabc,_0x11e7cf=_0x5807a5['get'](_0x2853e0)[_0x2f1b0f(0x1b8)](_0x5a7da8,_0x1bf49d[_0x2f1b0f(0x373)]);if(!_0x11e7cf)return!0x1;let _0x1afb99=_0x11e7cf[_0x2f1b0f(0x1ec)](),_0x3ed817=new z(),_0x421bed=_0x3ed817['getAffectedRanges'](_0x241393),_0x10d312=_0x3ed817[_0x2f1b0f(0x2ee)](_0x1afb99,_0x241393);return _0x11e7cf['setSnapshot'](_0x10d312),zi(_0x10d312,_0x421bed,_0x5807a5[_0x2f1b0f(0x2db)](ii)),!0x0;}};function zi(_0x2b5fe7,_0x2b2af6,_0x91a3fe){const _0x2fd64c=_0x5670e0;let _0x4db1ff=new Set(),_0x5ba959=new Set(),_0x3ec11c=new Set();for(let _0x272d5a of _0x2b2af6){if(_0x272d5a[_0x2fd64c(0x37a)]===_0x2fd64c(0x1f5)&&_0x272d5a[_0x2fd64c(0x1a4)]&&_0x272d5a[_0x2fd64c(0xc1)]){let _0x4d8f1a=_0x272d5a[_0x2fd64c(0x1a4)]+'\x00'+_0x272d5a[_0x2fd64c(0xc1)];_0x3ec11c[_0x2fd64c(0xb9)](_0x4d8f1a)||(_0x3ec11c[_0x2fd64c(0x41d)](_0x4d8f1a),_0x91a3fe[_0x2fd64c(0x10c)](_0x272d5a[_0x2fd64c(0x1a4)],_0x272d5a[_0x2fd64c(0xc1)]));continue;}if(_0x272d5a[_0x2fd64c(0x37a)]===_0x2fd64c(0x378)&&_0x272d5a[_0x2fd64c(0x1a4)]&&_0x272d5a['fieldId']){let _0xa651f6=_0x272d5a[_0x2fd64c(0x1a4)]+'\x00'+_0x272d5a[_0x2fd64c(0x186)];_0x5ba959['has'](_0xa651f6)||(_0x5ba959['add'](_0xa651f6),_0x91a3fe[_0x2fd64c(0x230)](_0x272d5a[_0x2fd64c(0x1a4)],_0x272d5a['fieldId']));continue;}if(_0x272d5a[_0x2fd64c(0x37a)]!=='cell'){_0x91a3fe[_0x2fd64c(0x97)]();return;}let _0xbf1fa1=Bi(_0x2b5fe7,_0x272d5a);if(!_0xbf1fa1){_0x91a3fe[_0x2fd64c(0x97)]();return;}let _0x2fe319=_0xbf1fa1[_0x2fd64c(0x1a4)]+'\x00'+_0xbf1fa1[_0x2fd64c(0x191)]+'\x00'+_0xbf1fa1[_0x2fd64c(0x186)];_0x4db1ff[_0x2fd64c(0xb9)](_0x2fe319)||(_0x4db1ff[_0x2fd64c(0x41d)](_0x2fe319),_0x91a3fe[_0x2fd64c(0x2a2)](_0xbf1fa1['tableId'],_0xbf1fa1[_0x2fd64c(0x191)],_0xbf1fa1[_0x2fd64c(0x186)]));}}function Bi(_0x5029c8,_0x561326){const _0x31b3ea=_0x5670e0;var _0x59a03a,_0x111ce4;if(!_0x561326['tableId'])return null;if(_0x561326[_0x31b3ea(0x191)]&&_0x561326[_0x31b3ea(0x186)])return{'tableId':_0x561326[_0x31b3ea(0x1a4)],'recordId':_0x561326[_0x31b3ea(0x191)],'fieldId':_0x561326[_0x31b3ea(0x186)]};if(_0x561326[_0x31b3ea(0x24b)]==null||_0x561326[_0x31b3ea(0x3fc)]==null)return null;let _0x53c343=_0x5029c8[_0x31b3ea(0x41c)][_0x561326[_0x31b3ea(0x1a4)]],_0x34d584=_0x53c343==null||(_0x59a03a=_0x53c343[_0x31b3ea(0x2ea)])==null?void 0x0:_0x59a03a[_0x561326[_0x31b3ea(0x24b)]],_0xbc36fa=_0x53c343==null||(_0x111ce4=_0x53c343[_0x31b3ea(0x18c)])==null?void 0x0:_0x111ce4[_0x561326['column']];return!_0x34d584||!_0xbc36fa?null:{'tableId':_0x561326[_0x31b3ea(0x1a4)],'recordId':_0x34d584,'fieldId':_0xbc36fa};}const Vi=_0x5eb4e5['createRegExpFromSafeFragment'](String[_0x5670e0(0x9b)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x5eb4e5[_0x5670e0(0x279)](String[_0x5670e0(0x9b)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x5eb4e5[_0x5670e0(0x279)](String['raw']`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x5eb4e5[_0x5670e0(0x279)](String[_0x5670e0(0x9b)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x5eb4e5[_0x5670e0(0x279)](String[_0x5670e0(0x9b)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x5eb4e5[_0x5670e0(0x279)](String['raw']`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x5eb4e5[_0x5670e0(0x279)](String['raw']`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x5eb4e5[_0x5670e0(0x279)](String[_0x5670e0(0x9b)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x5670e0(0x17c)](_0x1ce32a,_0x31aae7=_0x1ce32a['id']){const _0x3917a7=_0x5670e0;var _0x52b67f;let _0x529519=((_0x52b67f=_0x1ce32a[_0x3917a7(0x411)])==null?void 0x0:_0x52b67f['length'])??Object[_0x3917a7(0x1c8)](_0x1ce32a[_0x3917a7(0x83)])[_0x3917a7(0x19b)];return{'sheetId':_0x31aae7,'titleMap':new Map(_0x1ce32a[_0x3917a7(0x367)][_0x3917a7(0x102)]((_0x408239,_0x5ca4c8)=>{const _0x1eeab0=_0x3917a7;var _0x2ba757;return[((_0x2ba757=_0x1ce32a[_0x1eeab0(0x2cb)][_0x408239])==null?void 0x0:_0x2ba757[_0x1eeab0(0x26f)])??_0x408239,_0x5ca4c8];})),'range':{'startRow':0x0,'endRow':Math[_0x3917a7(0x272)](0x0,_0x529519-0x1),'startColumn':0x0,'endColumn':Math[_0x3917a7(0x272)](0x0,_0x1ce32a['fieldOrder']['length']-0x1)},'showHeader':!0x1};}[_0x5670e0(0x431)](_0x188885,_0x37bde3){const _0x28ea0c=_0x5670e0;let _0x436811=[],_0x499fdc=_0x37bde3?new Set(_0x37bde3):null,_0x57338b=_0x13e931(_0x188885);return Object[_0x28ea0c(0x1c8)](_0x188885[_0x28ea0c(0x41c)])[_0x28ea0c(0x364)](_0x34e376=>!_0x499fdc||_0x499fdc[_0x28ea0c(0xb9)](_0x34e376['id']))[_0x28ea0c(0x143)](_0x14ed58=>{const _0x2e646f=_0x28ea0c;let _0x4a0963=this[_0x2e646f(0x17c)](_0x14ed58,_0x14ed58['id']);_0x436811[_0x2e646f(0x393)]({'tableId':_0x14ed58['id'],'tableName':_0x57338b[_0x2e646f(0x2db)](_0x14ed58['id']),'reference':_0x4a0963});}),_0x436811;}[_0x5670e0(0x90)](_0x526c69,_0x58c6d3,_0x18ea2b={}){const _0x4a16da=_0x5670e0;let _0x5bbd38=_0x526c69['trim']();if(!_0x5bbd38)return{'valid':!0x0};if(na(_0x5bbd38))return{'valid':!0x1,'reason':_0x4a16da(0xd8)};let _0x216cea=_0x18ea2b[_0x4a16da(0x1b2)]?_0x13e931(_0x18ea2b[_0x4a16da(0x1b2)]):void 0x0;for(let _0x1962d6 of ta(_0x5bbd38)){let _0x4f86cf=ua(_0x1962d6,_0x58c6d3,_0x18ea2b[_0x4a16da(0x1b2)],_0x216cea);if(!_0x4f86cf[_0x4a16da(0x19f)])return{'valid':!0x1,'reason':_0x4a16da(0x132)+_0x1962d6['tableName']+_0x4a16da(0x1c9)};if(!_0x4f86cf[_0x4a16da(0x378)])return{'valid':!0x1,'reason':_0x4a16da(0x262)+_0x1962d6[_0x4a16da(0x3b2)]+'\x22\x20does\x20not\x20exist.'};}return{'valid':!0x0};}[_0x5670e0(0x1af)](_0x5caafe,_0x5a5700,_0x26baa0={}){const _0x397651=_0x5670e0;let _0x165736=new Set();for(let _0x9f743c of this['getStructuredDependencies'](_0x5caafe,_0x5a5700,_0x26baa0))_0x9f743c['tableId']===_0x5a5700['id']&&_0x165736[_0x397651(0x41d)](_0x9f743c['fieldId']);return Array[_0x397651(0x162)](_0x165736);}[_0x5670e0(0x194)](_0x80403a,_0x11a4a2,_0x1e38f7={}){const _0x20c696=_0x5670e0;let _0x481d22=new Map(),_0x5ba9df=_0x1e38f7[_0x20c696(0x1b2)]?_0x13e931(_0x1e38f7[_0x20c696(0x1b2)]):void 0x0;for(let _0x5c2e52 of ta(_0x80403a)){let _0x514207=ua(_0x5c2e52,_0x11a4a2,_0x1e38f7['snapshot'],_0x5ba9df);if(!_0x514207[_0x20c696(0x19f)]||!_0x514207[_0x20c696(0x378)])continue;let _0x5ab2e0=_0x514207['table']['id']+'\x1f'+_0x514207[_0x20c696(0x378)]['id'];_0x481d22['set'](_0x5ab2e0,{'tableId':_0x514207['table']['id'],'fieldId':_0x514207[_0x20c696(0x378)]['id']});}return Array[_0x20c696(0x162)](_0x481d22[_0x20c696(0x1c8)]());}};function Zi(_0x503107,_0x1c4c41){const _0x10487c=_0x5670e0;var _0x5151cd;let _0x4c79e8=[],_0x225bdf=(_0x5151cd=_0x1c4c41[_0x10487c(0xab)])==null?void 0x0:_0x5151cd[_0x503107['id']];return _0x225bdf&&Object[_0x10487c(0x419)](_0x225bdf)[_0x10487c(0x143)](([_0x1bcd2b,_0xeb0a4f])=>{const _0x93a139=_0x10487c;let _0x36ebbf=_0x503107[_0x93a139(0x41c)][_0x1bcd2b];if(!_0x36ebbf||!_0xeb0a4f)return;let _0x1cee0b=L(_0x36ebbf),_0x33b7e4=[];new _0x1bec6e(_0xeb0a4f)[_0x93a139(0x211)]((_0x3a3c52,_0x1813bf,_0x3db172)=>{const _0x5b4acc=_0x93a139;let _0x1c51de=Qi(_0x1cee0b,_0x3a3c52,_0x1813bf,_0x3db172);_0x1c51de&&_0x33b7e4[_0x5b4acc(0x393)](_0x1c51de);}),_0x33b7e4['length']&&_0x4c79e8[_0x93a139(0x393)]({'unitId':_0x503107['id'],'tableId':_0x1bcd2b,'patches':_0x33b7e4});}),_0x4c79e8;}function Qi(_0x303a4c,_0x207776,_0x2fc827,_0x5d1542){const _0x2d3cc5=_0x5670e0;var _0x1a46e5,_0x2f3b31,_0x345cb3;let _0x58878a=(_0x1a46e5=_0x303a4c[_0x2d3cc5(0x2ea)])==null?void 0x0:_0x1a46e5[_0x207776],_0x4cad29=(_0x2f3b31=_0x303a4c[_0x2d3cc5(0x18c)])==null?void 0x0:_0x2f3b31[_0x2fc827];if(!_0x58878a||!_0x303a4c['records'][_0x58878a]||!_0x4cad29)return null;let _0x10ffe2=_0x303a4c['fields'][_0x4cad29];if(!_0x10ffe2||_0x10ffe2[_0x2d3cc5(0xeb)]!==_0x2d3cc5(0x23e))return null;let _0x28be33=String(((_0x345cb3=_0x10ffe2[_0x2d3cc5(0x407)])==null?void 0x0:_0x345cb3[_0x2d3cc5(0x23e)])??'')[_0x2d3cc5(0x12d)](),_0xec5bff=(_0x5d1542==null?void 0x0:_0x5d1542['v'])??null,_0x56bd46={'v':_0xec5bff,'t':ea(_0xec5bff),..._0x207776===0x0&&_0x28be33?{'f':_0x28be33}:{},'si':_0x10ffe2['id']};return $i(vt(_0x303a4c,_0x58878a,_0x4cad29),_0x56bd46)?null:{'row':_0x207776,'col':_0x2fc827,'value':_0x56bd46};}function $i(_0x12e021,_0x30fbad){return _0x12e021!=null&&Object['is'](_0x12e021['v']??null,_0x30fbad['v']??null)&&_0x12e021['t']===_0x30fbad['t']&&_0x12e021['f']===_0x30fbad['f']&&_0x12e021['si']===_0x30fbad['si'];}function ea(_0x53690b){const _0x5c91df=_0x5670e0;return typeof _0x53690b=='number'?_0x319a08['NUMBER']:typeof _0x53690b==_0x5c91df(0x168)?_0x319a08[_0x5c91df(0x189)]:typeof _0x53690b==_0x5c91df(0x2dc)?_0x319a08[_0x5c91df(0x13f)]:null;}function ta(_0x86d89a){const _0x3ca7ad=_0x5670e0;let _0x13732d=ia(_0x86d89a,()=>''),_0x54a100=new Map(),_0x25c620=_0x7df8b1=>{const _0x2431cb=_0x4f53;_0x54a100[_0x2431cb(0x2b8)]((_0x7df8b1['tableName']??'')+'\x1f'+_0x7df8b1[_0x2431cb(0x3b2)],_0x7df8b1);};for(let _0x24b246 of _0x13732d['matchAll'](Ui))_0x25c620({'fieldName':_0x24b246[0x1],'scope':_0x3ca7ad(0xa4)});_0x13732d=_0x13732d[_0x3ca7ad(0xf2)](Wi,(_0x28989d,_0x245cb2,_0x30a7cf,_0x2f630d)=>(_0x25c620({'tableName':_0x245cb2,'fieldName':_0x2f630d,'scope':_0x30a7cf[_0x3ca7ad(0x374)]()===_0x3ca7ad(0xe5)?_0x3ca7ad(0xe5):_0x3ca7ad(0xa4)}),'\x20')),_0x13732d=_0x13732d[_0x3ca7ad(0xf2)](Gi,(_0x3f1d50,_0x1bcca8,_0x5cf9af)=>(_0x25c620({'tableName':_0x1bcca8,'fieldName':_0x5cf9af,'scope':_0x3ca7ad(0xa4)}),'\x20')),_0x13732d=_0x13732d[_0x3ca7ad(0xf2)](qi,(_0x2f3233,_0x3099d9,_0xd96ae5,_0x9edc30)=>(_0x25c620({'fieldName':_0x9edc30,'scope':_0xd96ae5[_0x3ca7ad(0x374)]()==='data'?_0x3ca7ad(0xe5):_0x3ca7ad(0xa4)}),_0x3099d9+'\x20')),_0x13732d=_0x13732d[_0x3ca7ad(0xf2)](Ji,(_0x9a1707,_0x3c32f9,_0xe80dff)=>(_0x25c620({'fieldName':_0xe80dff,'scope':_0x3ca7ad(0xa4)}),_0x3c32f9+'\x20'));for(let _0x11bcbc of _0x13732d[_0x3ca7ad(0x3ed)](Ki))_0x25c620({'tableName':_0x11bcbc[0x1],'fieldName':_0x11bcbc[0x2]});for(let _0x459b66 of _0x13732d[_0x3ca7ad(0x3ed)](Yi))_0x25c620({'fieldName':_0x459b66[0x2],'scope':'this-row'});return Array[_0x3ca7ad(0x162)](_0x54a100[_0x3ca7ad(0x1c8)]());}function na(_0x40cf02){const _0x238c97=_0x5670e0;let _0x534251=ia(_0x40cf02,()=>'\x20')[_0x238c97(0xf2)](Ui,'\x20')['replace'](Wi,'\x20')['replace'](Gi,'\x20')['replace'](qi,_0x238c97(0x346))[_0x238c97(0xf2)](Ji,_0x238c97(0x346))[_0x238c97(0xf2)](Ki,'\x20')[_0x238c97(0xf2)](Yi,_0x238c97(0x346));return Vi[_0x238c97(0x106)](_0x534251);}function ra(_0x473138,_0x1a11cf){return ca(oa(_0x473138,_0x1a11cf),_0x1a11cf);}function ia(_0x29c8bf,_0x5c9096){return aa(ra(_0x29c8bf,_0x5c9096),_0x5c9096);}function _0x4f53(_0x3ba6a3,_0x3b8861){_0x3ba6a3=_0x3ba6a3-0x83;const _0x1ee80a=_0x1ee8();let _0x4f53af=_0x1ee80a[_0x3ba6a3];return _0x4f53af;}function aa(_0x206c0f,_0x55a7a0){return _0x206c0f['replace'](/"(?:""|[^"])*"/g,_0x55a7a0);}function oa(_0x3ac48d,_0xcffa2c){const _0x394c5e=_0x5670e0;return Hi['lastIndex']=0x0,_0x3ac48d[_0x394c5e(0xf2)](Hi,(_0x48106b,_0x365afc)=>la(_0x3ac48d,_0x365afc)?_0x48106b:_0xcffa2c(_0x48106b));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1108bf,_0x59af63){const _0x488479=_0x5670e0;let _0x20b9f4=[];for(sa[_0x488479(0x1fb)]=0x0;;){let _0x3081ab=sa['exec'](_0x1108bf);if(_0x3081ab==null)break;if(la(_0x1108bf,_0x3081ab['index']))continue;let _0x286a2d=sa[_0x488479(0x1fb)]-0x1,_0x3c6e9e=0x0;for(let _0x3ee8c6=_0x286a2d;_0x3ee8c6<_0x1108bf['length'];_0x3ee8c6++)if(_0x1108bf[_0x3ee8c6]==='['&&_0x3c6e9e++,_0x1108bf[_0x3ee8c6]===']'&&(_0x3c6e9e--,_0x3c6e9e===0x0)){_0x20b9f4[_0x488479(0x393)]({'start':_0x3081ab[_0x488479(0x95)],'end':_0x3ee8c6+0x1}),sa['lastIndex']=_0x3ee8c6+0x1;break;}}if(_0x20b9f4[_0x488479(0x19b)]===0x0)return _0x1108bf;let _0x393452='',_0x1f5af3=0x0;for(let _0x2874ef of _0x20b9f4)_0x393452+=_0x1108bf['slice'](_0x1f5af3,_0x2874ef['start']),_0x393452+=_0x59af63(_0x1108bf[_0x488479(0xfa)](_0x2874ef['start'],_0x2874ef[_0x488479(0x92)])),_0x1f5af3=_0x2874ef[_0x488479(0x92)];return _0x393452+_0x1108bf[_0x488479(0xfa)](_0x1f5af3);}function la(_0x5c84ff,_0x2f03a7){let _0x15f612=!0x1;for(let _0x1cdf59=0x0;_0x1cdf59<_0x2f03a7;_0x1cdf59++)_0x5c84ff[_0x1cdf59]==='\x22'&&(_0x15f612&&_0x5c84ff[_0x1cdf59+0x1]==='\x22'?_0x1cdf59++:_0x15f612=!_0x15f612);return _0x15f612;}function ua(_0x32061f,_0x5e87cc,_0xe21544,_0x31e2d0){const _0x1443d5=_0x5670e0;let _0x2ee9a1=da(_0x32061f['tableName'],_0x5e87cc,_0xe21544,_0x31e2d0);return{'table':_0x2ee9a1,'field':_0x2ee9a1?Object['values'](_0x2ee9a1[_0x1443d5(0x2cb)])[_0x1443d5(0x361)](_0x3f687c=>_0x3f687c[_0x1443d5(0x26f)]===_0x32061f[_0x1443d5(0x3b2)]):void 0x0};}function da(_0x55a432,_0x207811,_0x5d6e5b,_0x4776fd){const _0x144789=_0x5670e0;if(!_0x55a432)return _0x207811;if(!_0x5d6e5b){var _0x3b199a;let _0x2e9285=_0x55a432['toLowerCase']();return _0x2e9285===_0x207811['id'][_0x144789(0x374)]()||_0x2e9285===_0x207811['name'][_0x144789(0x374)]()||_0x2e9285===((_0x3b199a=_0x207811[_0x144789(0x177)])==null?void 0x0:_0x3b199a[_0x144789(0x374)]())?_0x207811:void 0x0;}let _0x32b79a=_0x55a432[_0x144789(0x374)](),_0x17b070=_0x4776fd??_0x13e931(_0x5d6e5b),_0x549f3c=Object[_0x144789(0x1c8)](_0x5d6e5b['tables'])[_0x144789(0x364)](_0x4471b8=>{const _0x45eaf2=_0x144789;var _0x522928;return _0x4471b8['id']['toLowerCase']()===_0x32b79a||_0x4471b8['name'][_0x45eaf2(0x374)]()===_0x32b79a||((_0x522928=_0x17b070['get'](_0x4471b8['id']))==null?void 0x0:_0x522928[_0x45eaf2(0x374)]())===_0x32b79a||fa(_0x4471b8['id'])[_0x45eaf2(0x374)]()===_0x32b79a;});return _0x549f3c[_0x144789(0x19b)]===0x1?_0x549f3c[0x0]:void 0x0;}function fa(_0x36f79c){const _0xa53bb6=_0x5670e0;return _0xa53bb6(0x298)+Array[_0xa53bb6(0x162)](_0x36f79c,_0xb3dcec=>{const _0x3234b3=_0xa53bb6;var _0x216299;return/[A-Za-z0-9]/[_0x3234b3(0x106)](_0xb3dcec)?_0xb3dcec:'_x'+(((_0x216299=_0xb3dcec[_0x3234b3(0xcd)](0x0))==null?void 0x0:_0x216299[_0x3234b3(0x341)](0x10))??'0')+'_';})['join']('');}const pa=new Xi();function ma(_0x1e772b,_0x41bce9,_0x4db8b3){const _0x435a12=_0x5670e0;var _0x1e4169;if(_0x4db8b3['type']!==_0x4fe15f[_0x435a12(0x3a5)])return!0x0;let _0x4107e6=String(((_0x1e4169=_0x4db8b3[_0x435a12(0x407)])==null?void 0x0:_0x1e4169['formula'])??''),_0x4b525e=_0x1e772b[_0x435a12(0x1ec)]();return pa[_0x435a12(0x90)](_0x4107e6,_0x4b525e['tables'][_0x41bce9],{'snapshot':_0x4b525e})[_0x435a12(0x246)];}function $(_0x388d4d,_0x3e7271,_0x39731a){const _0x5ecb1f=_0x5670e0;let _0x922ecc=_0x388d4d[_0x5ecb1f(0x1ec)]()[_0x5ecb1f(0x41c)][_0x3e7271];if(!_0x922ecc)return!0x1;let {viewIds:_0x228006,fieldIds:_0x40a6e4,recordIds:_0x452f24}=_0x39731a||{};if(_0x228006){for(let _0x5f578f of _0x228006)if(!_0x922ecc[_0x5ecb1f(0x21f)][_0x5f578f])return!0x1;}if(_0x40a6e4){for(let _0x4bfc30 of _0x40a6e4)if(!_0x922ecc[_0x5ecb1f(0x2cb)][_0x4bfc30])return!0x1;}if(_0x452f24){for(let _0x47ec9d of _0x452f24)if(!_0x922ecc[_0x5ecb1f(0x83)][_0x47ec9d])return!0x1;}return!0x0;}function ha(_0x44f740,_0x592b95,_0x41d308){const _0xde1471=_0x5670e0;if(_0x41d308['id']===_0x32decc||_0x41d308[_0xde1471(0xeb)]===_0x4fe15f[_0xde1471(0x300)]||_0x1fb0f2(_0x41d308['name'])||!ma(_0x44f740,_0x592b95,_0x41d308))return!0x1;let _0x12d1fc=_0x44f740[_0xde1471(0x1ec)]();if(!Be(_0x12d1fc,_0x41d308)[_0xde1471(0x246)])return!0x1;if(_0x41d308[_0xde1471(0xeb)]!==_0x4fe15f[_0xde1471(0x36f)])return!0x0;let _0x11a37f=N(_0x41d308);if(!_0x11a37f)return!0x1;if(_0x11a37f['relationRole']===void 0x0)return!0x0;if(_0x11a37f[_0xde1471(0x1bc)]!==_0x309088[_0xde1471(0x1e0)]||_0x11a37f['targetTableId']!==_0x592b95||_0x11a37f['multiple']!==!0x1)return!0x1;let _0x24fd7b=_0x12d1fc['tables'][_0x592b95];return!Object['values'](_0x24fd7b[_0xde1471(0x2cb)])[_0xde1471(0x1c1)](_0x48bff0=>{const _0x54b6cb=_0xde1471;var _0x45457e;return _0x48bff0['id']!==_0x41d308['id']&&_0x48bff0[_0x54b6cb(0xeb)]===_0x4fe15f['RecordLink']&&((_0x45457e=N(_0x48bff0))==null?void 0x0:_0x45457e[_0x54b6cb(0x1bc)])===_0x309088[_0x54b6cb(0x1e0)];});}function ga(_0x11e6dc,_0x19199e,_0x532845,_0x2edb7a){const _0x3e3809=_0x5670e0;var _0x41cdfd;let _0x6ed41=_0x11e6dc[_0x3e3809(0x1ec)](),_0x59a03f=(_0x41cdfd=_0x6ed41[_0x3e3809(0x41c)][_0x19199e])==null?void 0x0:_0x41cdfd[_0x3e3809(0x2cb)][_0x532845];return!_0x59a03f||_0x59a03f['id']===_0x32decc||_0x59a03f[_0x3e3809(0xeb)]===_0x4fe15f['RecordId']?!0x1:_0x59a03f['type']!==_0x4fe15f[_0x3e3809(0x36f)]||Ve(_0x6ed41,_0x59a03f,ya(_0x2edb7a))['valid'];}function _a(_0x5b3c9b,_0x3adf90,_0x50fd1c){const _0x159fdc=_0x5670e0;let _0x38cc1f=_0x5b3c9b['getSnapshot']()[_0x159fdc(0x41c)][_0x3adf90];return!_0x38cc1f||!_0x1fbc25(_0x50fd1c['id'])||_0x38cc1f['records'][_0x50fd1c['id']]||Object[_0x159fdc(0x159)]['hasOwnProperty']['call'](_0x50fd1c[_0x159fdc(0x1c8)],_0x32decc)&&_0x50fd1c[_0x159fdc(0x1c8)][_0x32decc]!==_0x50fd1c['id']?!0x1:Object['entries'](_0x50fd1c[_0x159fdc(0x1c8)])[_0x159fdc(0x3f9)](([_0x542a23,_0x2648ba])=>_0x542a23===_0x32decc||ga(_0x5b3c9b,_0x3adf90,_0x542a23,_0x2648ba));}function va(_0xc7c0ac){const _0x4b52c6=_0x5670e0;return{..._0xc7c0ac,'values':{..._0xc7c0ac[_0x4b52c6(0x1c8)],[_0x32decc]:_0xc7c0ac['id']}};}function ya(_0xe5b766){const _0xf2f0af=_0x5670e0;if(_0xe5b766&&typeof _0xe5b766==_0xf2f0af(0x360)&&!Array[_0xf2f0af(0x99)](_0xe5b766)&&'v'in _0xe5b766){let _0x34e365=_0xe5b766['v'];return _0x34e365===void 0x0?null:_0x34e365;}return _0xe5b766;}function ba(_0x556bba,_0x27440d,_0x10122e,_0xa4b515){const _0x29c7b2=_0x5670e0;let _0x789c55=_0x556bba[_0x29c7b2(0x1ec)]()[_0x29c7b2(0x41c)][_0x27440d];if(!_0x789c55)return null;let _0x4e6d75=qe(_0x789c55),_0x38624d=_0x4e6d75??Je(_0x789c55),_0x5d5a85=_0x10122e[_0x29c7b2(0x1c1)](_0x36feb9=>Object[_0x29c7b2(0x159)][_0x29c7b2(0x127)][_0x29c7b2(0x321)](_0x36feb9[_0x29c7b2(0x1c8)],_0x38624d)),_0x387cc1=_0x4e6d75?_0x789c55[_0x29c7b2(0x2cb)][_0x4e6d75]:_0x5d5a85?Ye(_0x789c55,_0x38624d,_0xa4b515):null,_0x1c4483=[];for(let _0x425b2 of _0x10122e){let _0x66d0d3=_0x425b2[_0x29c7b2(0x1c8)][_0x38624d],_0x3bd309=_0x387cc1!==null&&Object[_0x29c7b2(0x159)][_0x29c7b2(0x127)]['call'](_0x425b2['values'],_0x38624d),_0x20cbe6=ya(_0x66d0d3),_0xdf38f7=null;if(_0x3bd309){if(typeof _0x20cbe6!='string'||!ze(_0x20cbe6,!0x1)[_0x29c7b2(0x246)])return null;_0xdf38f7=_0x20cbe6;}let _0x1e81f8={};if(Object[_0x29c7b2(0x419)](_0x425b2[_0x29c7b2(0x1c8)])[_0x29c7b2(0x143)](([_0xf2a1ee,_0x5d1555])=>{(!_0x3bd309||_0xf2a1ee!==_0x38624d)&&(_0x1e81f8[_0xf2a1ee]=_0x5d1555);}),!_a(_0x556bba,_0x27440d,{..._0x425b2,'values':_0x1e81f8}))return null;let _0x3eef37={..._0x425b2[_0x29c7b2(0x1c8)]};_0xdf38f7!==null&&(_0x3eef37[_0x38624d]=_0xdf38f7),_0x1c4483[_0x29c7b2(0x393)](va({..._0x425b2,'values':_0x3eef37}));}return{'records':_0x1c4483,'hierarchyFieldToMaterialize':_0x4e6d75?null:_0x387cc1,'hierarchyChanges':Qe(_0x789c55,_0x1c4483)};}const xa={'id':_0x5670e0(0x1c0),'type':_0x21089e['COMMAND'],'handler'(_0x13a164,_0x521f4c){const _0x3589e0=_0x5670e0;if(!_0x521f4c)return!0x1;let _0x53dda7=_0x13a164[_0x3589e0(0x2db)](_0x2853e0),{unitId:_0x49265d,tableId:_0x294134,records:_0xb37ea8}=_0x521f4c,_0x266858=_0x53dda7[_0x3589e0(0x1b8)](_0x49265d,_0x1bf49d[_0x3589e0(0x373)]),_0x1d1768=_0xb37ea8[_0x3589e0(0x102)](_0x4cd010=>_0x4cd010['id']);if(!_0x266858||!$(_0x266858,_0x294134)||new Set(_0x1d1768)['size']!==_0x1d1768[_0x3589e0(0x19b)])return!0x1;let _0x4e5716=_0x13a164[_0x3589e0(0x2db)](_0x228e7e),_0x457447=_0x13a164[_0x3589e0(0x2db)](_0x1c7439),_0x4709cc=_0x13a164['get'](Kr),_0x2ac55f=_0x266858[_0x3589e0(0x1ec)](),_0x153180=ba(_0x266858,_0x294134,_0xb37ea8);if(!_0x153180)return!0x1;let {records:_0x2652fd,hierarchyChanges:_0x43ca74,hierarchyFieldToMaterialize:_0x12bac4}=_0x153180,_0x34b688=_0x12bac4?_0x4709cc[_0x3589e0(0x28b)](_0x266858,_0x294134,_0x12bac4,_0x2ac55f[_0x3589e0(0x41c)][_0x294134][_0x3589e0(0x367)][_0x3589e0(0x19b)]):null,_0x1a82c7=_0x4709cc[_0x3589e0(0x3f4)](_0x266858,_0x294134,_0x2652fd),_0x2b05f3=R([..._0x34b688?[_0x34b688]:[],_0x1a82c7]),_0x3a410e=new z()['invertOp'](_0x2ac55f,_0x2b05f3),_0x4d48cc={'unitId':_0x49265d,'op':_0x2b05f3,'hierarchyChanges':_0x43ca74[_0x3589e0(0x19b)]?_0x43ca74:void 0x0,'source':_0x43ca74[_0x3589e0(0x19b)]?_0x521f4c['source']??'ui':void 0x0},_0x279553={..._0x4d48cc,'source':_0x43ca74[_0x3589e0(0x19b)]?_0x3589e0(0x41e):void 0x0},_0x4f991e={'unitId':_0x49265d,'op':_0x3a410e,'hierarchyChanges':_0x43ca74['length']?_0x43ca74['map'](_0x85cc17=>({..._0x85cc17,'oldParentRecordId':_0x85cc17[_0x3589e0(0x10f)],'parentRecordId':null})):void 0x0,'source':_0x43ca74['length']?_0x3589e0(0x18b):void 0x0};return _0x4e5716[_0x3589e0(0x2fa)](Q['id'],_0x4d48cc)?(_0x53dda7[_0x3589e0(0x2d0)](_0x49265d),_0x457447[_0x3589e0(0x352)]({'unitID':_0x49265d,'undoMutations':[{'id':Q['id'],'params':_0x4f991e}],'redoMutations':[{'id':Q['id'],'params':_0x279553}]}),!0x0):!0x1;}},Sa={'id':'base.command.batch-delete-base-records','type':_0x21089e['COMMAND'],'handler':(_0x117f1f,_0x200761)=>{const _0xccc6e7=_0x5670e0;if(!_0x200761)return!0x1;let _0x1087c4=_0x117f1f[_0xccc6e7(0x2db)](_0x2853e0),{unitId:_0x5ba379,tableId:_0x46f1b0,recordIds:_0x250311}=_0x200761,_0x591433=_0x1087c4[_0xccc6e7(0x1b8)](_0x5ba379,_0x1bf49d[_0xccc6e7(0x373)]);if(!_0x591433||!$(_0x591433,_0x46f1b0,{'recordIds':_0x250311}))return!0x1;let _0x4dbf23=_0x117f1f[_0xccc6e7(0x2db)](_0x228e7e),_0x4bae42=_0x117f1f[_0xccc6e7(0x2db)](_0x1c7439),_0x57a39d=_0x591433[_0xccc6e7(0x1ec)](),_0x3868a9=et(_0x57a39d[_0xccc6e7(0x41c)][_0x46f1b0],_0x250311),_0x2c82f0=new W(),_0x3fa3ef=new z(),_0x3b3c6e=_0x2c82f0[_0xccc6e7(0x293)](_0x57a39d,_0x46f1b0,_0x250311),_0x3e1d2e=_0x3fa3ef[_0xccc6e7(0x2ee)](_0x57a39d,_0x3b3c6e),_0x40092d=_0x2c82f0[_0xccc6e7(0x181)](_0x57a39d,_0x3e1d2e,_0x46f1b0,_0x250311),_0x16423c={'unitId':_0x5ba379,'op':_0x3b3c6e,'hierarchyChanges':_0x3868a9,'source':_0x200761[_0xccc6e7(0x2d6)]??'ui'},_0x3a69f8={..._0x16423c,'source':_0xccc6e7(0x41e)},_0x3264a9={'unitId':_0x5ba379,'op':_0x40092d,'hierarchyChanges':_0x3868a9[_0xccc6e7(0x102)](_0x4e243a=>({..._0x4e243a,'oldParentRecordId':_0x4e243a[_0xccc6e7(0x10f)],'parentRecordId':_0x4e243a['oldParentRecordId']})),'source':'undo'};return _0x4dbf23[_0xccc6e7(0x2fa)](Q['id'],_0x16423c)?(_0x1087c4[_0xccc6e7(0x2d0)](_0x5ba379),_0x4bae42[_0xccc6e7(0x352)]({'unitID':_0x5ba379,'undoMutations':[{'id':Q['id'],'params':_0x3264a9}],'redoMutations':[{'id':Q['id'],'params':_0x3a69f8}]}),!0x0):!0x1;}},Ca={'id':'base.command.change-base-field-type','type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x5ed9c5,_0x203053)=>{const _0x1998ec=_0x5670e0;if(!_0x203053)return!0x1;let _0x178a0f=_0x5ed9c5['get'](_0x2853e0),{unitId:_0x4b37af,tableId:_0x4f55e7,fieldId:_0x4394cf,input:_0x56f643}=_0x203053,_0x56d36f=_0x178a0f[_0x1998ec(0x1b8)](_0x4b37af,_0x1bf49d['UNIVER_BASE']);if(!_0x56d36f||_0x4394cf===_0x32decc||!$(_0x56d36f,_0x4f55e7,{'fieldIds':[_0x4394cf]}))return!0x1;let _0x4db0c0=_0x5ed9c5[_0x1998ec(0x2db)](_0x228e7e),_0x18b5f6=_0x5ed9c5[_0x1998ec(0x2db)](_0x1c7439),_0x114264=_0x56d36f[_0x1998ec(0x1ec)]();if(!ha(_0x56d36f,_0x4f55e7,{..._0x114264[_0x1998ec(0x41c)][_0x4f55e7][_0x1998ec(0x2cb)][_0x4394cf],..._0x56f643}))return!0x1;let _0x485192=new W()[_0x1998ec(0x1f8)](_0x114264,_0x4f55e7,_0x4394cf,_0x56f643),_0x2ab272=new z()[_0x1998ec(0x210)](_0x114264,_0x485192),_0x481976={'unitId':_0x4b37af,'op':_0x485192},_0x2a64bd={'unitId':_0x4b37af,'op':_0x2ab272};return _0x4db0c0[_0x1998ec(0x2fa)](Q['id'],_0x481976)?(_0x178a0f[_0x1998ec(0x2d0)](_0x4b37af),_0x18b5f6['pushUndoRedo']({'unitID':_0x4b37af,'undoMutations':[{'id':Q['id'],'params':_0x2a64bd}],'redoMutations':[{'id':Q['id'],'params':_0x481976}]}),!0x0):!0x1;}},wa={'id':_0x5670e0(0x389),'type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x520c48,_0x44f364){const _0xa4505b=_0x5670e0;var _0x5cb385;if(!_0x44f364)return!0x1;let {unitId:_0x5de2bf,tableId:_0x1de092,parentRecordId:_0x4185f5}=_0x44f364,_0x3da7a9=_0x520c48[_0xa4505b(0x2db)](_0x2853e0),_0x3c112a=_0x3da7a9['getUnit'](_0x5de2bf,_0x1bf49d[_0xa4505b(0x373)]);if(!_0x3c112a||!$(_0x3c112a,_0x1de092,{'recordIds':[_0x4185f5]}))throw new P('missingRecord');let _0x4d1612=_0x3c112a[_0xa4505b(0x1ec)](),_0x28f400=_0x4d1612['tables'][_0x1de092],_0x43386a=qe(_0x28f400),_0x483b07=_0x43386a??_0x44f364[_0xa4505b(0x186)]??Je(_0x28f400);if(_0x43386a&&_0x44f364[_0xa4505b(0x186)]&&_0x44f364[_0xa4505b(0x186)]!==_0x43386a||_0x28f400[_0xa4505b(0x2cb)][_0x483b07]&&!F(_0x28f400,_0x483b07))throw new P(_0xa4505b(0x11d));if((tt(_0x28f400,_0x483b07)[_0xa4505b(0x2a7)]['get'](_0x4185f5)??0x0)+0x1>=0x5)throw new P(_0xa4505b(0x245));if(!_a(_0x3c112a,_0x1de092,_0x44f364[_0xa4505b(0x1ef)]))return!0x1;let _0x57a952=va({..._0x44f364['record'],'values':{..._0x44f364['record'][_0xa4505b(0x1c8)],[_0x483b07]:Re([_0x4185f5])}}),_0x2924df=_0x520c48['get'](Kr),_0x59b7f1=new W(),_0x2e8e31=_0x28f400[_0xa4505b(0x2cb)][_0x483b07],_0x40160f=_0x2e8e31?((_0x5cb385=N(_0x2e8e31))==null?void 0x0:_0x5cb385['relationRole'])===_0x309088[_0xa4505b(0x1e0)]?null:_0x59b7f1[_0xa4505b(0x1a9)](_0x4d1612,_0x1de092,_0x483b07,{'config':{..._0x2e8e31[_0xa4505b(0x407)],'relationRole':_0x309088['Parent']}}):_0x2924df[_0xa4505b(0x28b)](_0x3c112a,_0x1de092,Ye(_0x28f400,_0x483b07,_0x44f364[_0xa4505b(0x167)]),_0x28f400[_0xa4505b(0x367)][_0xa4505b(0x19b)]),_0x999dd8=_0x2924df[_0xa4505b(0x24f)](_0x3c112a,_0x1de092,_0x57a952),_0x43402f=R([..._0x40160f?[_0x40160f]:[],_0x999dd8]),_0x547f0a=new z()['invertOp'](_0x4d1612,_0x43402f),_0x5d3710={'tableId':_0x1de092,'fieldId':_0x483b07,'recordId':_0x57a952['id'],'oldParentRecordId':null,'parentRecordId':_0x4185f5},_0x3c71e4={'unitId':_0x5de2bf,'op':_0x43402f,'trigger':wa['id'],'hierarchyChanges':[_0x5d3710],'source':_0x44f364['source']??'ui'},_0x3fdaaa={..._0x3c71e4,'source':_0xa4505b(0x41e)},_0x34d0b6={'unitId':_0x5de2bf,'op':_0x547f0a,'trigger':wa['id'],'hierarchyChanges':[{..._0x5d3710,'oldParentRecordId':_0x4185f5,'parentRecordId':null}],'source':'undo'};return _0x520c48[_0xa4505b(0x2db)](_0x228e7e)[_0xa4505b(0x2fa)](Q['id'],_0x3c71e4)?(_0x3da7a9['focusUnit'](_0x5de2bf),_0x520c48['get'](_0x1c7439)[_0xa4505b(0x352)]({'unitID':_0x5de2bf,'undoMutations':[{'id':Q['id'],'params':_0x34d0b6}],'redoMutations':[{'id':Q['id'],'params':_0x3fdaaa}]}),!0x0):!0x1;}},Ta={'id':_0x5670e0(0xb8),'type':_0x21089e['COMMAND'],'handler'(_0x3868c8,_0x34f38e){const _0x1e94fe=_0x5670e0;if(!_0x34f38e)return!0x1;let _0x4d5142=_0x3868c8['get'](_0x2853e0),{unitId:_0x531d40,tableId:_0x214db6,field:_0xce78b6,index:_0x430e0e,viewIndexes:_0x32ac32}=_0x34f38e,_0x523920=_0x4d5142[_0x1e94fe(0x1b8)](_0x531d40,_0x1bf49d[_0x1e94fe(0x373)]);if(!_0x523920||!$(_0x523920,_0x214db6)||_0x523920[_0x1e94fe(0x1ec)]()[_0x1e94fe(0x41c)][_0x214db6][_0x1e94fe(0x2cb)][_0xce78b6['id']]||_0x430e0e===0x0||!ha(_0x523920,_0x214db6,_0xce78b6))return!0x1;let _0x591147=_0x3868c8[_0x1e94fe(0x2db)](_0x228e7e),_0x5ba2ea=_0x3868c8['get'](_0x1c7439),_0x5ebb37=_0x3868c8['get'](Kr)[_0x1e94fe(0x28b)](_0x523920,_0x214db6,_0xce78b6,_0x430e0e,_0x32ac32),_0x2db3fd=new z()[_0x1e94fe(0x210)](_0x523920[_0x1e94fe(0x1ec)](),_0x5ebb37),_0x146812={'unitId':_0x531d40,'op':_0x5ebb37},_0x3010ee={'unitId':_0x531d40,'op':_0x2db3fd};return _0x591147[_0x1e94fe(0x2fa)](Q['id'],_0x146812)?(_0x4d5142[_0x1e94fe(0x2d0)](_0x531d40),_0x5ba2ea[_0x1e94fe(0x352)]({'unitID':_0x531d40,'undoMutations':[{'id':Q['id'],'params':_0x3010ee}],'redoMutations':[{'id':Q['id'],'params':_0x146812}]}),!0x0):!0x1;}},Ea={'id':_0x5670e0(0xa6),'type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x4c054c,_0x58cb3f){const _0xc45d4d=_0x5670e0;if(!_0x58cb3f)return!0x1;let _0x3deeb7=_0x4c054c['get'](_0x2853e0),{unitId:_0x18a619,tableId:_0x39d32c,record:_0x472016}=_0x58cb3f,_0x1d3db1=_0x3deeb7[_0xc45d4d(0x1b8)](_0x18a619,_0x1bf49d[_0xc45d4d(0x373)]);if(!_0x1d3db1||!$(_0x1d3db1,_0x39d32c))return!0x1;let _0x16ef69=_0x4c054c['get'](_0x228e7e),_0x223719=_0x4c054c[_0xc45d4d(0x2db)](_0x1c7439),_0xa88b55=_0x4c054c[_0xc45d4d(0x2db)](Kr),_0x1194d9=_0x1d3db1[_0xc45d4d(0x1ec)](),_0x7b858e=ba(_0x1d3db1,_0x39d32c,[_0x472016]);if(!_0x7b858e)return!0x1;let [_0x27cfaa]=_0x7b858e['records'],{hierarchyChanges:_0xe237e2,hierarchyFieldToMaterialize:_0xe1f330}=_0x7b858e,_0x1595a1=_0xe1f330?_0xa88b55[_0xc45d4d(0x28b)](_0x1d3db1,_0x39d32c,_0xe1f330,_0x1194d9[_0xc45d4d(0x41c)][_0x39d32c]['fieldOrder'][_0xc45d4d(0x19b)]):null,_0x22a276=_0xa88b55[_0xc45d4d(0x24f)](_0x1d3db1,_0x39d32c,_0x27cfaa),_0x4c6bba=R([..._0x1595a1?[_0x1595a1]:[],_0x22a276]),_0x3ee030=new z()['invertOp'](_0x1194d9,_0x4c6bba),_0x25e2b8={'unitId':_0x18a619,'op':_0x4c6bba,'hierarchyChanges':_0xe237e2['length']?_0xe237e2:void 0x0,'source':_0xe237e2[_0xc45d4d(0x19b)]?_0x58cb3f[_0xc45d4d(0x2d6)]??'ui':void 0x0},_0x1dcbbb={..._0x25e2b8,'source':_0xe237e2[_0xc45d4d(0x19b)]?_0xc45d4d(0x41e):void 0x0},_0x400c6b={'unitId':_0x18a619,'op':_0x3ee030,'hierarchyChanges':_0xe237e2[_0xc45d4d(0x19b)]?_0xe237e2[_0xc45d4d(0x102)](_0x88f844=>({..._0x88f844,'oldParentRecordId':_0x88f844[_0xc45d4d(0x10f)],'parentRecordId':null})):void 0x0,'source':_0xe237e2[_0xc45d4d(0x19b)]?_0xc45d4d(0x18b):void 0x0};return _0x16ef69[_0xc45d4d(0x2fa)](Q['id'],_0x25e2b8)?(_0x3deeb7[_0xc45d4d(0x2d0)](_0x18a619),_0x223719[_0xc45d4d(0x352)]({'unitID':_0x18a619,'undoMutations':[{'id':Q['id'],'params':_0x400c6b}],'redoMutations':[{'id':Q['id'],'params':_0x1dcbbb}]}),!0x0):!0x1;}},Da=_0x5670e0(0x403);function Oa(_0x15f434,_0x20cc04,_0x46183d){const _0x2968b8=_0x5670e0;if(!_0x20cc04['trim']())return{'valid':!0x1,'reason':_0x2968b8(0x1bb),'error':_0x2968b8(0x320)};if(_0x20cc04[_0x2968b8(0x19b)]>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':'too-long'};if(_0x20cc04['startsWith']('\x27')||_0x20cc04[_0x2968b8(0x372)]('\x27'))return{'valid':!0x1,'reason':_0x2968b8(0x22d),'error':_0x2968b8(0x257)};if(/[:\\/?*\[\]]/[_0x2968b8(0x106)](_0x20cc04))return{'valid':!0x1,'reason':_0x2968b8(0x26a),'error':_0x2968b8(0x306)};if(!_0x459694(_0x20cc04))return{'valid':!0x1,'reason':_0x2968b8(0x231),'error':_0x2968b8(0xc8)};let _0x53d2b4=_0x20cc04[_0x2968b8(0x374)]();return Object['values'](_0x15f434[_0x2968b8(0x41c)])[_0x2968b8(0x1c1)](_0x34a84b=>_0x34a84b['id']!==_0x46183d&&_0x34a84b[_0x2968b8(0x26f)][_0x2968b8(0x374)]()===_0x53d2b4)?{'valid':!0x1,'reason':_0x2968b8(0x35a),'error':_0x2968b8(0x35d)}:{'valid':!0x0};}function ka(_0x5aef11,_0xc71d40){const _0x4537cf=_0x5670e0;let _0x304ce1=_0xc71d40[_0x4537cf(0xf2)](/[:\\/?*\[\]]/g,'\x20')[_0x4537cf(0xf2)](/^'+|'+$/g,'')[_0x4537cf(0x12d)]()||'Table',_0xa06834=0x1;for(;;){let _0x2e1b6c=_0xa06834===0x1?'':'\x20'+_0xa06834,_0x3c1a65=''+_0x304ce1[_0x4537cf(0xfa)](0x0,0x1f-_0x2e1b6c[_0x4537cf(0x19b)])+_0x2e1b6c;if(Oa(_0x5aef11,_0x3c1a65)[_0x4537cf(0x246)])return _0x3c1a65;_0xa06834++;}}const Aa={'id':_0x5670e0(0x152),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x4b86d5,_0x33722d)=>{const _0x188c10=_0x5670e0;if(!_0x33722d)return!0x1;let _0x2b0331=_0x4b86d5[_0x188c10(0x2db)](_0x2853e0),{unitId:_0x3336df,table:_0x2b0c36,index:_0xf394f3}=_0x33722d,_0x2d4d96=_0x2b0331[_0x188c10(0x1b8)](_0x3336df,_0x1bf49d['UNIVER_BASE']);if(!_0x2d4d96||_0x2d4d96[_0x188c10(0x1ec)]()[_0x188c10(0x41c)][_0x2b0c36['id']]||!Oa(_0x2d4d96[_0x188c10(0x1ec)](),_0x2b0c36[_0x188c10(0x26f)])[_0x188c10(0x246)])return!0x1;try{_0x4a6ff9(_0x2b0c36);}catch{return!0x1;}let _0x30aaae=_0x4b86d5[_0x188c10(0x2db)](_0x228e7e),_0x30a6fd=_0x4b86d5[_0x188c10(0x2db)](_0x1c7439),_0x25e202=_0x2d4d96[_0x188c10(0x1ec)](),_0x2d8d5b=new W()['createTable'](_0x25e202,_0x2b0c36,_0xf394f3),_0x46fc74=new z()[_0x188c10(0x210)](_0x25e202,_0x2d8d5b),_0x3c861c={'unitId':_0x3336df,'op':_0x2d8d5b},_0x588603={'unitId':_0x3336df,'op':_0x46fc74};return _0x30aaae['syncExecuteCommand'](Q['id'],_0x3c861c)?(_0x2b0331[_0x188c10(0x2d0)](_0x3336df),_0x30a6fd[_0x188c10(0x352)]({'unitID':_0x3336df,'undoMutations':[{'id':Q['id'],'params':_0x588603}],'redoMutations':[{'id':Q['id'],'params':_0x3c861c}]}),!0x0):!0x1;}};function ja(_0x393a86,_0x46cfef,_0x5a9b05=[]){const _0x32bb3b=_0x5670e0;let _0x1e1af1=new Set([...Object[_0x32bb3b(0x1c8)](_0x393a86[_0x32bb3b(0x2cb)])[_0x32bb3b(0x364)](_0x133660=>_0x133660)[_0x32bb3b(0x102)](_0x2d118c=>_0x2d118c['name']),..._0x5a9b05[_0x32bb3b(0x102)](_0x43452b=>_0x43452b[_0x32bb3b(0x26f)])]);if(!_0x1e1af1[_0x32bb3b(0xb9)](_0x46cfef))return _0x46cfef;let _0x40768e=0x2;for(;_0x1e1af1[_0x32bb3b(0xb9)](_0x46cfef+'\x20'+_0x40768e);)_0x40768e++;return _0x46cfef+'\x20'+_0x40768e;}function Ma(_0x32e7cd,_0x5bbef3){const _0x78bc9c=_0x5670e0;if(!_0x32e7cd||!_0x5bbef3[_0x78bc9c(0x19b)])return;let _0x23a3a6=[..._0x32e7cd];return _0x5bbef3[_0x78bc9c(0x143)](_0x177b1f=>{const _0x56eeba=_0x78bc9c;_0x23a3a6[_0x56eeba(0x173)](_0x177b1f)||_0x23a3a6['push'](_0x177b1f);}),_0x23a3a6;}const Na={'options':[{'id':_0x5670e0(0x1a5),'name':_0x5670e0(0xf1),'color':'#BFDBFE'},{'id':'doing','name':'Doing','color':_0x5670e0(0x2c5)},{'id':_0x5670e0(0x270),'name':_0x5670e0(0x9e),'color':_0x5670e0(0x2dd)}]},Pa={'locale':_0x5670e0(0x313),'pattern':_0x5670e0(0x2b4),'includeTime':!0x1,'hourCycle':_0x5670e0(0x348),'defaultMode':_0x5670e0(0x331)};function Fa(_0xb19a92,_0x2e4beb,_0x5a8ee3,_0x3db169){const _0x1e3914=_0x5670e0;var _0x4a83b7;let _0x2507d5=new W(),_0x3b3f31=_0xb19a92['tables'][_0x2e4beb],_0x3c183c=_0x3b3f31?{..._0x5a8ee3,'fieldOrder':[_0x32decc,...(_0x5a8ee3['fieldOrder']??_0x3b3f31[_0x1e3914(0x367)])[_0x1e3914(0x364)](_0x18afc7=>_0x18afc7!==_0x32decc)],'fieldSettings':{..._0x5a8ee3[_0x1e3914(0x39e)],[_0x32decc]:{...(_0x4a83b7=_0x5a8ee3[_0x1e3914(0x39e)])==null?void 0x0:_0x4a83b7[_0x32decc],'hidden':!0x0}}}:_0x5a8ee3;if(_0x3b3f31&&_0x3c183c[_0x1e3914(0xeb)]===_0x1e3914(0x2a5)){let _0x44d355=La(_0x3b3f31,_0x3c183c),_0x1d4cb7=_0x44d355['changed']?{..._0x3c183c,'config':_0x44d355['config'],'fieldOrder':_0x44d355[_0x1e3914(0x367)]??_0x3c183c[_0x1e3914(0x367)]}:_0x3c183c;return R([..._0x44d355['fields'][_0x1e3914(0x102)](_0x114b4e=>_0x2507d5[_0x1e3914(0x28c)](_0xb19a92,_0x2e4beb,{'field':_0x114b4e})),_0x2507d5[_0x1e3914(0x2eb)](_0xb19a92,_0x2e4beb,_0x1d4cb7,_0x3db169)]);}if(!_0x3b3f31||_0x3c183c['type']!=='calendar'&&_0x3c183c[_0x1e3914(0xeb)]!==_0x1e3914(0x3ba))return _0x2507d5[_0x1e3914(0x2eb)](_0xb19a92,_0x2e4beb,_0x3c183c,_0x3db169);let _0x39c39e=Ia(_0x3b3f31,_0x3c183c),_0x5264a0=_0x39c39e[_0x1e3914(0x13c)]?{..._0x3c183c,'config':_0x39c39e[_0x1e3914(0x407)],'fieldOrder':_0x39c39e[_0x1e3914(0x367)]??_0x3c183c[_0x1e3914(0x367)]}:_0x3c183c;return _0x3c183c[_0x1e3914(0xeb)]===_0x1e3914(0x3ba)&&Ba(_0x3c183c)&&(_0x5264a0=Va(_0x3b3f31,_0x5264a0,_0x39c39e['fields'])),R([..._0x39c39e[_0x1e3914(0x2cb)][_0x1e3914(0x102)](_0x5cec54=>_0x2507d5[_0x1e3914(0x28c)](_0xb19a92,_0x2e4beb,{'field':_0x5cec54})),_0x2507d5[_0x1e3914(0x2eb)](_0xb19a92,_0x2e4beb,_0x5264a0,_0x3db169)]);}function Ia(_0x212927,_0x4019d8,_0x162725=!0x1){const _0x1d78e1=_0x5670e0;var _0x5bc5b3,_0x5126e6;let _0x579e9d=_0x212927['fieldOrder']['filter'](_0x35afc2=>Ua(_0x212927,_0x35afc2)),_0x2ee2da=[],_0x664600={..._0x4019d8['config']??{}},_0x1ffd95=typeof _0x664600[_0x1d78e1(0x31e)]==_0x1d78e1(0x2dc)&&Ua(_0x212927,_0x664600[_0x1d78e1(0x31e)])?_0x664600[_0x1d78e1(0x31e)]:_0x579e9d[0x0],_0x1b504e=typeof _0x664600[_0x1d78e1(0x11f)]=='string'&&Ua(_0x212927,_0x664600[_0x1d78e1(0x11f)])&&_0x664600[_0x1d78e1(0x11f)]!==_0x1ffd95?_0x664600[_0x1d78e1(0x11f)]:_0x579e9d[_0x1d78e1(0x361)](_0x4dbd0c=>_0x4dbd0c!==_0x1ffd95);if(!_0x1ffd95){let _0x3bcbd8=Wa(_0x212927,_0x2ee2da,_0x4019d8['type']==='gantt'?_0x1d78e1(0xa7):_0x1d78e1(0x1cc));_0x2ee2da[_0x1d78e1(0x393)](_0x3bcbd8),_0x1ffd95=_0x3bcbd8['id'];}if((_0x4019d8[_0x1d78e1(0xeb)]==='gantt'||_0x162725)&&!_0x1b504e){let _0x3a9f50=Wa(_0x212927,_0x2ee2da,_0x1d78e1(0xbc));_0x2ee2da[_0x1d78e1(0x393)](_0x3a9f50),_0x1b504e=_0x3a9f50['id'];}_0x4019d8[_0x1d78e1(0xeb)]===_0x1d78e1(0x1d8)&&!_0x1b504e&&delete _0x664600[_0x1d78e1(0x11f)],_0x664600[_0x1d78e1(0x31e)]=_0x1ffd95,_0x4019d8['type']===_0x1d78e1(0x1d8)&&_0x1b504e&&(_0x664600[_0x1d78e1(0x11f)]=_0x1b504e),_0x4019d8['type']===_0x1d78e1(0x3ba)&&(_0x664600['endDateFieldId']=_0x1b504e??_0x1ffd95);let _0x5e79ad=Ma(_0x4019d8[_0x1d78e1(0x367)],_0x2ee2da['map'](_0x1b93c0=>_0x1b93c0['id']));return{'changed':_0x2ee2da[_0x1d78e1(0x19b)]>0x0||_0x664600[_0x1d78e1(0x31e)]!==((_0x5bc5b3=_0x4019d8[_0x1d78e1(0x407)])==null?void 0x0:_0x5bc5b3[_0x1d78e1(0x31e)])||_0x664600[_0x1d78e1(0x11f)]!==((_0x5126e6=_0x4019d8[_0x1d78e1(0x407)])==null?void 0x0:_0x5126e6[_0x1d78e1(0x11f)])||!(!_0x5e79ad||_0x4bf94a[_0x1d78e1(0x2a6)](_0x5e79ad,_0x4019d8[_0x1d78e1(0x367)]??[])),'fields':_0x2ee2da,'config':_0x664600,'fieldOrder':_0x5e79ad};}function La(_0x47875d,_0x3300c9){const _0x5af059=_0x5670e0;var _0x1f9349;let _0x5ad0e9=[],_0xc0e817={..._0x3300c9[_0x5af059(0x407)]??{}},_0x32ca43=typeof _0xc0e817[_0x5af059(0x9f)]==_0x5af059(0x2dc)&&Ra(_0x47875d,_0xc0e817[_0x5af059(0x9f)])?_0xc0e817['groupFieldId']:_0x47875d['fieldOrder'][_0x5af059(0x361)](_0xb9b9d6=>Ra(_0x47875d,_0xb9b9d6));if(!_0x32ca43){let _0x5e46a2=za(_0x47875d,_0x5ad0e9);_0x5ad0e9[_0x5af059(0x393)](_0x5e46a2),_0x32ca43=_0x5e46a2['id'];}_0xc0e817['groupFieldId']=_0x32ca43;let _0x3145c7=Ma(_0x3300c9[_0x5af059(0x367)],_0x5ad0e9[_0x5af059(0x102)](_0xb1d5e3=>_0xb1d5e3['id']));return{'changed':_0x5ad0e9[_0x5af059(0x19b)]>0x0||_0xc0e817['groupFieldId']!==((_0x1f9349=_0x3300c9[_0x5af059(0x407)])==null?void 0x0:_0x1f9349['groupFieldId'])||!(!_0x3145c7||_0x4bf94a['diffValue'](_0x3145c7,_0x3300c9[_0x5af059(0x367)]??[])),'fields':_0x5ad0e9,'config':_0xc0e817,'fieldOrder':_0x3145c7};}function Ra(_0x1c740d,_0x1444d4){const _0x2bc726=_0x5670e0;let _0x5ccd33=_0x1444d4?_0x1c740d['fields'][_0x1444d4]:null;return _0x5ccd33?[_0x4fe15f['SingleSelect'],_0x4fe15f[_0x2bc726(0x8b)],_0x4fe15f['Rating'],_0x4fe15f[_0x2bc726(0x36c)],_0x4fe15f['Group'],_0x4fe15f[_0x2bc726(0x1f2)]]['includes'](_0x5ccd33['type']):!0x1;}function za(_0x55d9ae,_0x1a5ced){const _0x47de31=_0x5670e0;return{'id':_0x47de31(0x2f2)+_0xeb2e0b(0x8),'name':ja(_0x55d9ae,_0x47de31(0x271),_0x1a5ced),'type':_0x4fe15f['SingleSelect'],'config':_0x4bf94a[_0x47de31(0x343)](Na)};}function Ba(_0x34f9c3){const _0x553c7a=_0x5670e0;return Object[_0x553c7a(0x3ac)](_0x34f9c3[_0x553c7a(0x407)]??{})['length']===0x0&&Object['keys'](_0x34f9c3['fieldSettings']??{})[_0x553c7a(0x19b)]===0x0;}function Va(_0x1b5726,_0x2a4783,_0x1a343b){const _0xc9ced2=_0x5670e0;let _0x42e958={..._0x2a4783[_0xc9ced2(0x407)]??{}},_0x1e1daf=_0x1a343b['map'](_0x5dad59=>_0x5dad59['id']),_0x24d868=[..._0x1b5726[_0xc9ced2(0x367)],..._0x1e1daf],_0x55ef8e=typeof _0x42e958[_0xc9ced2(0x165)]==_0xc9ced2(0x2dc)&&Ha(_0x1b5726,_0x1a343b,_0x42e958[_0xc9ced2(0x165)])?_0x42e958[_0xc9ced2(0x165)]:_0x1b5726[_0xc9ced2(0x2d7)],_0x194ba0=typeof _0x42e958[_0xc9ced2(0x31e)]=='string'?_0x42e958['startDateFieldId']:'',_0x237cdc=typeof _0x42e958[_0xc9ced2(0x11f)]==_0xc9ced2(0x2dc)?_0x42e958['endDateFieldId']:_0x194ba0,_0x3ecd7f=new Set([_0x55ef8e,_0x194ba0,_0x237cdc][_0xc9ced2(0x364)](_0x3839e3=>_0x3839e3&&Ha(_0x1b5726,_0x1a343b,_0x3839e3))),_0x3a562d=Object[_0xc9ced2(0x3a7)](_0x24d868[_0xc9ced2(0x98)](_0x47ca51=>_0x3ecd7f[_0xc9ced2(0xb9)](_0x47ca51)||!Ha(_0x1b5726,_0x1a343b,_0x47ca51)?[]:[[_0x47ca51,{'hidden':!0x0}]]));return{..._0x2a4783,'config':{..._0x42e958,'titleFieldId':_0x55ef8e},'fieldSettings':_0x3a562d};}function Ha(_0x1f8f43,_0x545521,_0x4e509){const _0x4d472a=_0x5670e0;return!!(_0x1f8f43[_0x4d472a(0x2cb)][_0x4e509]??_0x545521[_0x4d472a(0x361)](_0x51723b=>_0x51723b['id']===_0x4e509))&&!0x0;}function Ua(_0x83727c,_0x1cf80b){const _0x1d79d=_0x5670e0;let _0x29946d=_0x1cf80b?_0x83727c[_0x1d79d(0x2cb)][_0x1cf80b]:null;return!!_0x29946d&&_0x29946d[_0x1d79d(0xeb)]===_0x4fe15f['Date']&&_0x29946d['readonly']!==!0x0&&_0x29946d[_0x1d79d(0x13a)]!==!0x0;}function Wa(_0xce4f70,_0x4bdcd,_0x448355){const _0x5d3114=_0x5670e0;let _0x23329c=new Set([...Object[_0x5d3114(0x3ac)](_0xce4f70[_0x5d3114(0x2cb)]),..._0x4bdcd[_0x5d3114(0x102)](_0x2ae43b=>_0x2ae43b['id'])]),_0x5d9083=_0x5d3114(0x2f2)+_0xeb2e0b(0x8);for(;_0x23329c[_0x5d3114(0xb9)](_0x5d9083);)_0x5d9083='fld-'+_0xeb2e0b(0x8);return{'id':_0x5d9083,'name':ja(_0xce4f70,_0x448355,_0x4bdcd),'type':_0x4fe15f[_0x5d3114(0x1cc)],'config':{...Pa}};}const Ga={'id':_0x5670e0(0x3c6),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x4b49af,_0x21bfd0)=>{const _0x22380d=_0x5670e0;if(!_0x21bfd0)return!0x1;let _0x1706e8=_0x4b49af[_0x22380d(0x2db)](_0x2853e0),{unitId:_0xe2261c,tableId:_0x39fb54,view:_0x35cae5,index:_0x265e71}=_0x21bfd0,_0x4ed117=_0x1706e8['getUnit'](_0xe2261c,_0x1bf49d[_0x22380d(0x373)]);if(!_0x4ed117||!$(_0x4ed117,_0x39fb54)||_0x4ed117[_0x22380d(0x1ec)]()[_0x22380d(0x41c)][_0x39fb54][_0x22380d(0x21f)][_0x35cae5['id']])return!0x1;let _0x4ee1cf=_0x4b49af[_0x22380d(0x2db)](_0x228e7e),_0xcd9eaf=_0x4b49af[_0x22380d(0x2db)](_0x1c7439),_0x41da9e=_0x4ed117[_0x22380d(0x1ec)](),_0x37cd0c=Fa(_0x41da9e,_0x39fb54,_0x35cae5,_0x265e71),_0x471271=new z()[_0x22380d(0x210)](_0x41da9e,_0x37cd0c),_0x407ba0={'historyAction':_0x22380d(0x16f),'unitId':_0xe2261c,'op':_0x37cd0c,'viewType':_0x35cae5[_0x22380d(0xeb)]},_0x59fd91={'historyAction':_0x22380d(0x2bb),'unitId':_0xe2261c,'op':_0x471271,'viewType':_0x35cae5[_0x22380d(0xeb)]};return _0x4ee1cf[_0x22380d(0x2fa)](Q['id'],_0x407ba0)?(_0x1706e8[_0x22380d(0x2d0)](_0xe2261c),_0xcd9eaf[_0x22380d(0x352)]({'unitID':_0xe2261c,'undoMutations':[{'id':Q['id'],'params':_0x59fd91}],'redoMutations':[{'id':Q['id'],'params':_0x407ba0}]}),!0x0):!0x1;}},Ka={'id':'base.command.delete-base-field','type':_0x21089e['COMMAND'],'handler'(_0x5b7d10,_0x2bd23f){const _0x517177=_0x5670e0;if(!_0x2bd23f)return!0x1;let _0xa66e1a=_0x5b7d10[_0x517177(0x2db)](_0x2853e0),{unitId:_0x459c99,tableId:_0xe5851b,fieldId:_0x314ebc}=_0x2bd23f,_0x56694d=_0xa66e1a[_0x517177(0x1b8)](_0x459c99,_0x1bf49d[_0x517177(0x373)]);if(!_0x56694d)return!0x1;let _0x44a250=_0x56694d[_0x517177(0x1ec)](),_0x315c35=_0x44a250[_0x517177(0x41c)][_0xe5851b];if(!$(_0x56694d,_0xe5851b,{'fieldIds':[_0x314ebc]})||_0x315c35[_0x517177(0x2d7)]===_0x314ebc||_0x314ebc===_0x32decc)return!0x1;let _0x3a287d=_0x5b7d10[_0x517177(0x2db)](_0x228e7e),_0x104a6f=_0x5b7d10[_0x517177(0x2db)](_0x1c7439),_0x567130=new W()[_0x517177(0x2c8)](_0x44a250,_0xe5851b,_0x314ebc),_0x306ffe=new z()[_0x517177(0x210)](_0x44a250,_0x567130),_0x23890a={'unitId':_0x459c99,'op':_0x567130},_0x517742={'unitId':_0x459c99,'op':_0x306ffe};return _0x3a287d[_0x517177(0x2fa)](Q['id'],_0x23890a)?(_0xa66e1a['focusUnit'](_0x459c99),_0x104a6f[_0x517177(0x352)]({'unitID':_0x459c99,'undoMutations':[{'id':Q['id'],'params':_0x517742}],'redoMutations':[{'id':Q['id'],'params':_0x23890a}]}),!0x0):!0x1;}},qa={'id':_0x5670e0(0x163),'type':_0x21089e['COMMAND'],'handler':(_0x59b1fe,_0x158a16)=>{const _0x3af330=_0x5670e0;if(!_0x158a16)return!0x1;let _0x278077=_0x59b1fe[_0x3af330(0x2db)](_0x2853e0),{unitId:_0x36a7c8,tableId:_0x4cdfb3,recordId:_0x37adc8}=_0x158a16,_0x40fa49=_0x278077[_0x3af330(0x1b8)](_0x36a7c8,_0x1bf49d[_0x3af330(0x373)]);if(!_0x40fa49||!$(_0x40fa49,_0x4cdfb3,{'recordIds':[_0x37adc8]}))return!0x1;let _0x4c320f=_0x59b1fe['get'](_0x228e7e),_0x311e2b=_0x59b1fe[_0x3af330(0x2db)](_0x1c7439),_0x395b98=_0x40fa49[_0x3af330(0x1ec)](),_0x49a03a=et(_0x395b98[_0x3af330(0x41c)][_0x4cdfb3],[_0x37adc8]),_0xae657f=new W(),_0x4a31d8=new z(),_0x3ef829=_0xae657f['deleteRecord'](_0x395b98,_0x4cdfb3,_0x37adc8),_0x5ac90f=_0x4a31d8[_0x3af330(0x2ee)](_0x395b98,_0x3ef829),_0x30bc2d=_0xae657f[_0x3af330(0x181)](_0x395b98,_0x5ac90f,_0x4cdfb3,[_0x37adc8]),_0x2d70ff={'unitId':_0x36a7c8,'op':_0x3ef829,'hierarchyChanges':_0x49a03a,'source':_0x158a16[_0x3af330(0x2d6)]??'ui'},_0x3e48b0={..._0x2d70ff,'source':_0x3af330(0x41e)},_0x5a89ca={'unitId':_0x36a7c8,'op':_0x30bc2d,'hierarchyChanges':_0x49a03a[_0x3af330(0x102)](_0x284e62=>({..._0x284e62,'oldParentRecordId':_0x284e62[_0x3af330(0x10f)],'parentRecordId':_0x284e62[_0x3af330(0x32c)]})),'source':_0x3af330(0x18b)};return _0x4c320f[_0x3af330(0x2fa)](Q['id'],_0x2d70ff)?(_0x278077['focusUnit'](_0x36a7c8),_0x311e2b[_0x3af330(0x352)]({'unitID':_0x36a7c8,'undoMutations':[{'id':Q['id'],'params':_0x5a89ca}],'redoMutations':[{'id':Q['id'],'params':_0x3e48b0}]}),!0x0):!0x1;}},Ja={'id':_0x5670e0(0xa9),'type':_0x21089e['COMMAND'],'handler':(_0x1766fd,_0xb94daf)=>{const _0x4268b2=_0x5670e0;if(!_0xb94daf)return!0x1;let _0x4bbaa1=_0x1766fd[_0x4268b2(0x2db)](_0x2853e0),{unitId:_0x15f633,tableId:_0x38e379}=_0xb94daf,_0xa2ea2=_0x4bbaa1[_0x4268b2(0x1b8)](_0x15f633,_0x1bf49d['UNIVER_BASE']);if(!_0xa2ea2||!$(_0xa2ea2,_0x38e379))return!0x1;let _0x18f2b1=_0x1766fd['get'](_0x228e7e),_0x4f768f=_0x1766fd['get'](_0x1c7439),_0x574132=_0xa2ea2['getSnapshot'](),_0x511a1d=He(_0x574132,_0x38e379);if(_0x511a1d['length']>0x0)return console[_0x4268b2(0x12e)](_0x4268b2(0x1c2)+_0x38e379+_0x4268b2(0x3b8)+_0x511a1d[_0x4268b2(0x102)](_0x4d3121=>_0x4d3121[_0x4268b2(0x1a4)]+'.'+_0x4d3121[_0x4268b2(0x186)])[_0x4268b2(0x3d6)](',\x20')+'.'),!0x1;let _0x5cac60=new W()[_0x4268b2(0x238)](_0x574132,_0x38e379),_0x5e1bd5=new z()[_0x4268b2(0x210)](_0x574132,_0x5cac60),_0x3bf882={'unitId':_0x15f633,'op':_0x5cac60},_0x1b37b1={'unitId':_0x15f633,'op':_0x5e1bd5};return _0x18f2b1[_0x4268b2(0x2fa)](Q['id'],_0x3bf882)?(_0x4bbaa1['focusUnit'](_0x15f633),_0x4f768f[_0x4268b2(0x352)]({'unitID':_0x15f633,'undoMutations':[{'id':Q['id'],'params':_0x1b37b1}],'redoMutations':[{'id':Q['id'],'params':_0x3bf882}]}),!0x0):!0x1;}},Ya={'id':_0x5670e0(0xd5),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x23ed2e,_0x31246d)=>{const _0x1827d7=_0x5670e0;if(!_0x31246d)return!0x1;let _0x46d4f8=_0x23ed2e[_0x1827d7(0x2db)](_0x2853e0),{unitId:_0x1f6d75,tableId:_0x155f44,viewId:_0x4636e2}=_0x31246d,_0x44acaf=_0x46d4f8[_0x1827d7(0x1b8)](_0x1f6d75,_0x1bf49d[_0x1827d7(0x373)]);if(!_0x44acaf||!$(_0x44acaf,_0x155f44,{'viewIds':[_0x4636e2]}))return!0x1;let _0xb477ca=_0x23ed2e[_0x1827d7(0x2db)](_0x228e7e),_0x3731dd=_0x23ed2e[_0x1827d7(0x2db)](_0x1c7439),_0x4179be=_0x44acaf[_0x1827d7(0x1ec)](),_0x9cba97=_0x4179be[_0x1827d7(0x41c)][_0x155f44][_0x1827d7(0x21f)][_0x4636e2][_0x1827d7(0xeb)],_0x3b5632=new W()[_0x1827d7(0x32b)](_0x4179be,_0x155f44,_0x4636e2),_0x92da43=new z()[_0x1827d7(0x210)](_0x4179be,_0x3b5632),_0x2c3a5e={'historyAction':'delete-view','unitId':_0x1f6d75,'op':_0x3b5632,'viewType':_0x9cba97},_0x1aa7b2={'historyAction':'create-view','unitId':_0x1f6d75,'op':_0x92da43,'viewType':_0x9cba97};return _0xb477ca[_0x1827d7(0x2fa)](Q['id'],_0x2c3a5e)?(_0x46d4f8[_0x1827d7(0x2d0)](_0x1f6d75),_0x3731dd['pushUndoRedo']({'unitID':_0x1f6d75,'undoMutations':[{'id':Q['id'],'params':_0x1aa7b2}],'redoMutations':[{'id':Q['id'],'params':_0x2c3a5e}]}),!0x0):!0x1;}},Xa={'id':'base.command.duplicate-base-field','type':_0x21089e['COMMAND'],'handler':(_0x33e56e,_0x41ede1)=>{const _0x3261e4=_0x5670e0;if(!_0x41ede1)return!0x1;let _0x2de00d=_0x33e56e[_0x3261e4(0x2db)](_0x2853e0),{unitId:_0x115488,tableId:_0x34f5b2,sourceFieldId:_0x32683f,field:_0x43a128,index:_0x1566ca,viewIndexes:_0x1edbc7}=_0x41ede1,_0x1f81a2=_0x2de00d[_0x3261e4(0x1b8)](_0x115488,_0x1bf49d[_0x3261e4(0x373)]);if(!_0x1f81a2||!$(_0x1f81a2,_0x34f5b2,{'fieldIds':[_0x32683f]})||_0x32683f===_0x32decc||_0x1f81a2['getSnapshot']()[_0x3261e4(0x41c)][_0x34f5b2][_0x3261e4(0x2cb)][_0x43a128['id']]||_0x1566ca===0x0||!ha(_0x1f81a2,_0x34f5b2,_0x43a128))return!0x1;let _0x2435df=_0x33e56e[_0x3261e4(0x2db)](_0x228e7e),_0x5b55e7=_0x33e56e['get'](_0x1c7439),_0x2cddd4=_0x1f81a2[_0x3261e4(0x1ec)](),_0x4e48c7=new W()[_0x3261e4(0x116)](_0x2cddd4,_0x34f5b2,_0x32683f,{'field':_0x43a128,'index':_0x1566ca,'viewIndexes':_0x1edbc7}),_0x57afb1=new z()['invertOp'](_0x2cddd4,_0x4e48c7),_0x2671be={'unitId':_0x115488,'op':_0x4e48c7},_0x31c4a9={'unitId':_0x115488,'op':_0x57afb1};return _0x2435df[_0x3261e4(0x2fa)](Q['id'],_0x2671be)?(_0x2de00d[_0x3261e4(0x2d0)](_0x115488),_0x5b55e7['pushUndoRedo']({'unitID':_0x115488,'undoMutations':[{'id':Q['id'],'params':_0x31c4a9}],'redoMutations':[{'id':Q['id'],'params':_0x2671be}]}),!0x0):!0x1;}},Za={'id':_0x5670e0(0x314),'type':_0x21089e['COMMAND'],'handler':(_0x12ffb8,_0x53d363)=>{const _0x3e9b1f=_0x5670e0;if(!_0x53d363)return!0x1;let _0x669baf=_0x12ffb8['get'](_0x2853e0),{unitId:_0x358579,tableId:_0x56b4b9,sourceRecordId:_0x38adc4,record:_0x2f43f5}=_0x53d363,_0x18c621=_0x669baf[_0x3e9b1f(0x1b8)](_0x358579,_0x1bf49d[_0x3e9b1f(0x373)]);if(!_0x18c621||!$(_0x18c621,_0x56b4b9,{'recordIds':[_0x38adc4]})||!_a(_0x18c621,_0x56b4b9,_0x2f43f5))return!0x1;let _0x30c4bd=_0x12ffb8[_0x3e9b1f(0x2db)](_0x228e7e),_0x13c941=_0x12ffb8[_0x3e9b1f(0x2db)](_0x1c7439),_0x383fae=_0x18c621[_0x3e9b1f(0x1ec)](),_0x23a869=va(_0x2f43f5),_0x24660e=Qe(_0x383fae[_0x3e9b1f(0x41c)][_0x56b4b9],[_0x23a869]),_0x285edd=new W()[_0x3e9b1f(0x1b1)](_0x383fae,_0x56b4b9,_0x38adc4,_0x23a869),_0x2a36fe=new z()[_0x3e9b1f(0x210)](_0x383fae,_0x285edd),_0x44b9b9={'unitId':_0x358579,'op':_0x285edd,'hierarchyChanges':_0x24660e['length']?_0x24660e:void 0x0,'source':_0x24660e['length']?_0x53d363['source']??'ui':void 0x0},_0x26e9f2={..._0x44b9b9,'source':_0x24660e['length']?_0x3e9b1f(0x41e):void 0x0},_0x7671ce={'unitId':_0x358579,'op':_0x2a36fe,'hierarchyChanges':_0x24660e[_0x3e9b1f(0x19b)]?_0x24660e['map'](_0x205357=>({..._0x205357,'oldParentRecordId':_0x205357[_0x3e9b1f(0x10f)],'parentRecordId':null})):void 0x0,'source':_0x24660e[_0x3e9b1f(0x19b)]?_0x3e9b1f(0x18b):void 0x0};return _0x30c4bd[_0x3e9b1f(0x2fa)](Q['id'],_0x44b9b9)?(_0x669baf[_0x3e9b1f(0x2d0)](_0x358579),_0x13c941[_0x3e9b1f(0x352)]({'unitID':_0x358579,'undoMutations':[{'id':Q['id'],'params':_0x7671ce}],'redoMutations':[{'id':Q['id'],'params':_0x26e9f2}]}),!0x0):!0x1;}},Qa={'id':'base.command.ensure-base-temporal-view-date-fields','type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x12aa48,_0x2d16cf){const _0x23d3d2=_0x5670e0;if(!_0x2d16cf)return!0x1;let _0xe503c0=_0x12aa48['get'](_0x2853e0),{unitId:_0x49e8cc,tableId:_0x3041f3,viewId:_0x109689,ensureEndDateField:_0x27e2e0}=_0x2d16cf,_0x48a932=_0xe503c0[_0x23d3d2(0x1b8)](_0x49e8cc,_0x1bf49d[_0x23d3d2(0x373)]);if(!_0x48a932||!$(_0x48a932,_0x3041f3,{'viewIds':[_0x109689]}))return!0x1;let _0xa4284=_0x48a932[_0x23d3d2(0x1ec)](),_0x5c2acf=_0xa4284['tables'][_0x3041f3],_0x40a661=_0x5c2acf==null?void 0x0:_0x5c2acf[_0x23d3d2(0x21f)][_0x109689];if(!_0x5c2acf||!_0x40a661||_0x40a661['type']!==_0x23d3d2(0x1d8)&&_0x40a661[_0x23d3d2(0xeb)]!==_0x23d3d2(0x3ba))return!0x1;let _0x2dc3ab=Ia(_0x5c2acf,_0x40a661,_0x27e2e0===!0x0);if(!_0x2dc3ab[_0x23d3d2(0x13c)])return!0x1;let _0x5d6213=_0x12aa48[_0x23d3d2(0x2db)](_0x228e7e),_0x2c410f=_0x12aa48[_0x23d3d2(0x2db)](_0x1c7439),_0x59c590=new W(),_0x1f22cd=[..._0x2dc3ab[_0x23d3d2(0x2cb)]['map'](_0x402448=>_0x59c590[_0x23d3d2(0x28c)](_0xa4284,_0x2d16cf[_0x23d3d2(0x1a4)],{'field':_0x402448})),$a([...eo(_0x2d16cf[_0x23d3d2(0x1a4)],_0x2d16cf[_0x23d3d2(0xc1)]),_0x23d3d2(0x407)],_0x40a661['config'],_0x2dc3ab[_0x23d3d2(0x407)])];_0x2dc3ab[_0x23d3d2(0x367)]&&_0x1f22cd[_0x23d3d2(0x393)]($a([...eo(_0x2d16cf[_0x23d3d2(0x1a4)],_0x2d16cf[_0x23d3d2(0xc1)]),_0x23d3d2(0x367)],_0x40a661['fieldOrder'],_0x2dc3ab[_0x23d3d2(0x367)]));let _0xce37a1=R(_0x1f22cd),_0x31aa52=new z()['invertOp'](_0xa4284,_0xce37a1),_0x10ca9a={'unitId':_0x49e8cc,'op':_0xce37a1},_0x42384a={'unitId':_0x49e8cc,'op':_0x31aa52};return _0x5d6213[_0x23d3d2(0x2fa)](Q['id'],_0x10ca9a)?(_0xe503c0[_0x23d3d2(0x2d0)](_0x49e8cc),_0x2c410f[_0x23d3d2(0x352)]({'unitID':_0x49e8cc,'undoMutations':[{'id':Q['id'],'params':_0x42384a}],'redoMutations':[{'id':Q['id'],'params':_0x10ca9a}]}),!0x0):!0x1;}};function $a(_0x5ee419,_0x25e1df,_0xb149a3){const _0x5bc412=_0x5670e0;return _0x25e1df===void 0x0?_0x23944c[_0x5bc412(0x3fd)](_0x5ee419,_0xb149a3):_0x23944c[_0x5bc412(0x385)](_0x5ee419,_0x25e1df,_0xb149a3);}function eo(_0x585b24,_0x1c7ac9){const _0x18d0c6=_0x5670e0;return[_0x18d0c6(0x41c),_0x585b24,_0x18d0c6(0x21f),_0x1c7ac9];}const to={'id':_0x5670e0(0xd3),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x2447fc,_0x1f20fc)=>{const _0x2b5f14=_0x5670e0;if(!_0x1f20fc)return!0x1;let _0xb75b68=_0x2447fc['get'](_0x2853e0),{unitId:_0x32e6ef,tableId:_0x477626,fieldId:_0x1b7eac,target:_0x20c431}=_0x1f20fc,_0x47ea0a=_0xb75b68[_0x2b5f14(0x1b8)](_0x32e6ef,_0x1bf49d['UNIVER_BASE']),_0x5002d0=_0x20c431[_0x2b5f14(0x170)]??_0x20c431[_0x2b5f14(0x265)];if(!_0x47ea0a||!!_0x20c431[_0x2b5f14(0x170)]==!!_0x20c431[_0x2b5f14(0x265)]||!_0x5002d0||_0x5002d0===_0x1b7eac||_0x1b7eac===_0x32decc||_0x20c431[_0x2b5f14(0x170)]===_0x32decc||!$(_0x47ea0a,_0x477626,{'fieldIds':[_0x1b7eac,_0x5002d0]}))return!0x1;let _0x304ad2=_0x2447fc[_0x2b5f14(0x2db)](_0x228e7e),_0xb27b88=_0x2447fc[_0x2b5f14(0x2db)](_0x1c7439),_0xa8d70d=_0x47ea0a[_0x2b5f14(0x1ec)](),_0x31fce3=new W()['moveField'](_0xa8d70d,_0x477626,_0x1b7eac,_0x20c431),_0x1b64b5=new z()['invertOp'](_0xa8d70d,_0x31fce3),_0x2423f7={'unitId':_0x32e6ef,'op':_0x31fce3},_0x933923={'unitId':_0x32e6ef,'op':_0x1b64b5};return _0x304ad2[_0x2b5f14(0x2fa)](Q['id'],_0x2423f7)?(_0xb75b68[_0x2b5f14(0x2d0)](_0x32e6ef),_0xb27b88['pushUndoRedo']({'unitID':_0x32e6ef,'undoMutations':[{'id':Q['id'],'params':_0x933923}],'redoMutations':[{'id':Q['id'],'params':_0x2423f7}]}),!0x0):!0x1;}},no={'id':_0x5670e0(0x94),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x50de5b,_0xe30d92)=>{const _0x210d82=_0x5670e0;var _0x3d0976;if(!_0xe30d92)return!0x1;let {unitId:_0x180fa1,tableId:_0x341b45,recordId:_0xe65bea,parentRecordId:_0x52aa53,orderKey:_0x1caa39}=_0xe30d92,_0x30ac75=_0x50de5b[_0x210d82(0x2db)](_0x2853e0),_0x2e21bb=_0x30ac75[_0x210d82(0x1b8)](_0x180fa1,_0x1bf49d[_0x210d82(0x373)]);if(!_0x2e21bb||!$(_0x2e21bb,_0x341b45,{'recordIds':[_0xe65bea,..._0x52aa53?[_0x52aa53]:[]]}))throw new P(_0x210d82(0x32d));let _0x2f77d5=_0x2e21bb[_0x210d82(0x1ec)](),_0x129322=_0x2f77d5[_0x210d82(0x41c)][_0x341b45],_0x276a45=qe(_0x129322),_0x23aaba=_0x276a45??_0xe30d92['fieldId']??Je(_0x129322);if(_0x276a45&&_0xe30d92['fieldId']&&_0xe30d92[_0x210d82(0x186)]!==_0x276a45||_0x129322[_0x210d82(0x2cb)][_0x23aaba]&&!F(_0x129322,_0x23aaba))throw new P('invalidField');let _0x32d2d5=tt(_0x129322,_0x23aaba),_0x3a9163=it(_0x32d2d5,_0xe65bea,_0x52aa53);if(!_0x3a9163[_0x210d82(0x246)])throw new P(_0x3a9163[_0x210d82(0x37a)]===_0x244f2c[_0x210d82(0x232)]?_0x210d82(0x1f1):_0x3a9163[_0x210d82(0x37a)]===_0x244f2c[_0x210d82(0x355)]?_0x210d82(0xfb):_0x210d82(0x245));let _0x2ce398=_0x32d2d5['parentByRecordId']['get'](_0xe65bea)??null,_0x323dc4=_0x129322[_0x210d82(0x83)][_0xe65bea][_0x210d82(0x27b)];if(_0x2ce398===_0x52aa53&&(_0x1caa39===void 0x0||_0x1caa39===_0x323dc4))return!0x0;let _0x3b09f0=_0x2ce398!==_0x52aa53,_0x5b9beb=_0x1caa39!==void 0x0&&_0x1caa39!==_0x323dc4,_0x3e66fc=new W(),_0x334415=[],_0x23a70c=_0x129322[_0x210d82(0x2cb)][_0x23aaba],_0x3defbf=_0x3b09f0&&(!_0x23a70c||((_0x3d0976=N(_0x23a70c))==null?void 0x0:_0x3d0976[_0x210d82(0x1bc)])!==_0x309088['Parent'])?_0x23a70c?_0x3e66fc[_0x210d82(0x1a9)](_0x2f77d5,_0x341b45,_0x23aaba,{'config':{..._0x23a70c[_0x210d82(0x407)],'relationRole':_0x309088[_0x210d82(0x1e0)]}}):_0x50de5b[_0x210d82(0x2db)](Kr)[_0x210d82(0x28b)](_0x2e21bb,_0x341b45,Ye(_0x129322,_0x23aaba,_0xe30d92[_0x210d82(0x167)]),_0x129322[_0x210d82(0x367)][_0x210d82(0x19b)]):null;_0x3defbf&&_0x334415['push'](_0x3defbf),_0x3b09f0&&_0x334415[_0x210d82(0x393)](_0x3e66fc[_0x210d82(0x20b)](_0x2f77d5,_0x341b45,_0xe65bea,_0x23aaba,_0x52aa53?Re([_0x52aa53]):'')),_0x5b9beb&&_0x334415['push'](_0x3e66fc[_0x210d82(0x392)](_0x2f77d5,_0x341b45,_0xe65bea,_0x1caa39));let _0xb2be7=R(_0x334415),_0x4c1741={'tableId':_0x341b45,'fieldId':_0x23aaba,'recordId':_0xe65bea,'oldParentRecordId':_0x2ce398,'parentRecordId':_0x52aa53},_0x4e0ae4={'unitId':_0x180fa1,'op':_0xb2be7,'trigger':no['id'],'hierarchyChanges':[_0x4c1741],'source':_0xe30d92['source']??'ui'},_0x10eb13={..._0x4e0ae4,'source':'redo'};if(!_0x50de5b[_0x210d82(0x2db)](_0x228e7e)[_0x210d82(0x2fa)](Q['id'],_0x4e0ae4))return!0x1;let _0x5355dc=_0x2e21bb[_0x210d82(0x1ec)](),_0x520f85=[];_0x3b09f0&&_0x520f85[_0x210d82(0x393)](ro(_0x5355dc,_0x2f77d5,_0x341b45,_0xe65bea,_0x23aaba)),_0x5b9beb&&_0x520f85['push'](io(_0x5355dc,_0x2f77d5,_0x341b45,_0xe65bea)),_0x3defbf&&_0x520f85[_0x210d82(0x393)](new z()[_0x210d82(0x210)](_0x2f77d5,_0x3defbf));let _0x31e335={'unitId':_0x180fa1,'op':R(_0x520f85),'trigger':no['id'],'hierarchyChanges':[{..._0x4c1741,'oldParentRecordId':_0x52aa53,'parentRecordId':_0x2ce398}],'source':_0x210d82(0x18b)};return _0x30ac75[_0x210d82(0x2d0)](_0x180fa1),_0x50de5b[_0x210d82(0x2db)](_0x1c7439)[_0x210d82(0x352)]({'unitID':_0x180fa1,'undoMutations':[{'id':Q['id'],'params':_0x31e335}],'redoMutations':[{'id':Q['id'],'params':_0x10eb13}]}),!0x0;}};function ro(_0xbff1d0,_0x387b04,_0x2c9a2d,_0x31c595,_0x2e2001){const _0x420f35=_0x5670e0;var _0x57cd5b,_0x20f984,_0x2ed83a,_0x4f8e2f,_0x11e4bc,_0x11c684,_0x1b5746,_0x39bbb0;let _0x539f85=_0xbff1d0['tables'][_0x2c9a2d],_0x383c42=_0x387b04['tables'][_0x2c9a2d],_0x31fa2e=(_0x57cd5b=_0x539f85['rowIndex'])==null?void 0x0:_0x57cd5b[_0x31c595],_0x3d4a83=(_0x20f984=_0x539f85[_0x420f35(0xb6)])==null?void 0x0:_0x20f984[_0x2e2001],_0x5b9849=(_0x2ed83a=_0x383c42[_0x420f35(0x250)])==null?void 0x0:_0x2ed83a[_0x31c595],_0x535621=(_0x4f8e2f=_0x383c42[_0x420f35(0xb6)])==null?void 0x0:_0x4f8e2f[_0x2e2001],_0x34c1c2=_0x31fa2e==null||_0x3d4a83==null||(_0x11e4bc=_0x539f85[_0x420f35(0x259)])==null||(_0x11e4bc=_0x11e4bc[_0x31fa2e])==null?void 0x0:_0x11e4bc[_0x3d4a83],_0x32c9f6=_0x5b9849==null||_0x535621==null||(_0x11c684=_0x383c42[_0x420f35(0x259)])==null||(_0x11c684=_0x11c684[_0x5b9849])==null?void 0x0:_0x11c684[_0x535621],_0x387aaa=(_0x1b5746=_0x539f85[_0x420f35(0x83)][_0x31c595])==null?void 0x0:_0x1b5746[_0x420f35(0x1c8)][_0x2e2001],_0x554cca=(_0x39bbb0=_0x383c42['records'][_0x31c595])==null?void 0x0:_0x39bbb0[_0x420f35(0x1c8)][_0x2e2001],_0x4bb9b7=[],_0x20cc35=ao(_0x31fa2e==null||_0x3d4a83==null?null:U['cellData'](_0x2c9a2d,_0x31fa2e,_0x3d4a83),_0x34c1c2,_0x32c9f6);_0x20cc35&&_0x4bb9b7[_0x420f35(0x393)](_0x20cc35);let _0x4f7200=ao(U[_0x420f35(0x96)](_0x2c9a2d,_0x31c595,_0x2e2001),_0x387aaa,_0x554cca);return _0x4f7200&&_0x4bb9b7[_0x420f35(0x393)](_0x4f7200),R(_0x4bb9b7);}function io(_0x29dfc2,_0x2a70aa,_0xba2266,_0x3d973e){const _0x5d865b=_0x5670e0;var _0x851dfc,_0x560aac;let _0x4df8dc=_0x29dfc2[_0x5d865b(0x41c)][_0xba2266],_0x3193a2=_0x2a70aa['tables'][_0xba2266];return R([ao([...U['record'](_0xba2266,_0x3d973e),'orderKey'],(_0x851dfc=_0x4df8dc[_0x5d865b(0x83)][_0x3d973e])==null?void 0x0:_0x851dfc[_0x5d865b(0x27b)],(_0x560aac=_0x3193a2['records'][_0x3d973e])==null?void 0x0:_0x560aac['orderKey']),ao([...U['table'](_0xba2266),'recordOrder'],_0x4df8dc[_0x5d865b(0x411)],_0x3193a2[_0x5d865b(0x411)])][_0x5d865b(0x364)](_0x14cc3c=>!!_0x14cc3c));}function ao(_0x76f585,_0x3950b2,_0x4a39a0){const _0x36b729=_0x5670e0;if(!_0x76f585||_0x3950b2===void 0x0&&_0x4a39a0===void 0x0)return null;let _0x1b6d5d=_0x346613[_0x36b729(0x36b)]();return _0x4a39a0===void 0x0?_0x1b6d5d[_0x36b729(0x2f9)](_0x76f585,_0x3950b2):_0x3950b2===void 0x0?_0x1b6d5d[_0x36b729(0x3fd)](_0x76f585,_0x4a39a0):_0x1b6d5d['replaceOp'](_0x76f585,_0x3950b2,_0x4a39a0);}const oo={'id':'base.command.move-base-view','type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x9f647b,_0x448e45)=>{const _0x247c3a=_0x5670e0;if(!_0x448e45)return!0x1;let _0x2d11d9=_0x9f647b[_0x247c3a(0x2db)](_0x2853e0),{unitId:_0x3c2ead,tableId:_0x5c9165,viewId:_0x1f2e4,target:_0x303e9d}=_0x448e45,_0x262dc4=_0x2d11d9[_0x247c3a(0x1b8)](_0x3c2ead,_0x1bf49d[_0x247c3a(0x373)]),_0x432229=_0x303e9d[_0x247c3a(0x16b)]??_0x303e9d['afterViewId'];if(!_0x262dc4||!_0x432229||_0x432229===_0x1f2e4||!$(_0x262dc4,_0x5c9165,{'viewIds':[_0x1f2e4,_0x432229]}))return!0x1;let _0x34b7bd=_0x9f647b[_0x247c3a(0x2db)](_0x228e7e),_0x5b3f31=_0x9f647b[_0x247c3a(0x2db)](_0x1c7439),_0x15b558=_0x262dc4[_0x247c3a(0x1ec)](),_0x139b8d=new W()[_0x247c3a(0x38e)](_0x15b558,_0x5c9165,_0x1f2e4,_0x303e9d),_0x19dad9=new z()[_0x247c3a(0x210)](_0x15b558,_0x139b8d),_0x6d8a74={'unitId':_0x3c2ead,'op':_0x139b8d},_0x138c75={'unitId':_0x3c2ead,'op':_0x19dad9};return _0x34b7bd[_0x247c3a(0x2fa)](Q['id'],_0x6d8a74)?(_0x2d11d9['focusUnit'](_0x3c2ead),_0x5b3f31[_0x247c3a(0x352)]({'unitID':_0x3c2ead,'undoMutations':[{'id':Q['id'],'params':_0x138c75}],'redoMutations':[{'id':Q['id'],'params':_0x6d8a74}]}),!0x0):!0x1;}},so={'id':_0x5670e0(0x33e),'type':_0x21089e['COMMAND'],'handler':(_0x71825c,_0x4159bf)=>{const _0x51966c=_0x5670e0;if(!_0x4159bf)return!0x1;let _0x4b3146=_0x71825c[_0x51966c(0x2db)](_0x2853e0),{unitId:_0x57fc00,tableId:_0x13afa4,name:_0x57bafd}=_0x4159bf,_0x15eac1=_0x4b3146[_0x51966c(0x1b8)](_0x57fc00,_0x1bf49d[_0x51966c(0x373)]);if(!_0x15eac1||!$(_0x15eac1,_0x13afa4)||!Oa(_0x15eac1[_0x51966c(0x1ec)](),_0x57bafd,_0x13afa4)[_0x51966c(0x246)])return!0x1;let _0x16c05f=_0x71825c[_0x51966c(0x2db)](_0x228e7e),_0x54ea58=_0x71825c[_0x51966c(0x2db)](_0x1c7439),_0x2e7342=_0x15eac1['getSnapshot'](),_0x145c56=new W()[_0x51966c(0x233)](_0x2e7342,_0x13afa4,_0x57bafd),_0x421ea2=new z()[_0x51966c(0x210)](_0x2e7342,_0x145c56),_0xd5b338={'unitId':_0x57fc00,'op':_0x145c56},_0x2c100a={'unitId':_0x57fc00,'op':_0x421ea2};return _0x16c05f[_0x51966c(0x2fa)](Q['id'],_0xd5b338)?(_0x4b3146[_0x51966c(0x2d0)](_0x57fc00),_0x54ea58[_0x51966c(0x352)]({'unitID':_0x57fc00,'undoMutations':[{'id':Q['id'],'params':_0x2c100a}],'redoMutations':[{'id':Q['id'],'params':_0xd5b338}]}),!0x0):!0x1;}},co={'id':_0x5670e0(0xf6),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x36f9b5,_0x52a162)=>{const _0x5f0853=_0x5670e0;if(!_0x52a162)return!0x1;let _0x36ffd1=_0x36f9b5[_0x5f0853(0x2db)](_0x2853e0),{unitId:_0x1362fd,tableId:_0x331b16,viewId:_0x2436e3,name:_0x8c43a4}=_0x52a162,_0xd737f8=_0x36ffd1[_0x5f0853(0x1b8)](_0x1362fd,_0x1bf49d['UNIVER_BASE']);if(!_0xd737f8||!$(_0xd737f8,_0x331b16,{'viewIds':[_0x2436e3]}))return!0x1;let _0x4d82f3=_0x36f9b5[_0x5f0853(0x2db)](_0x228e7e),_0x5e111f=_0x36f9b5['get'](_0x1c7439),_0x34c64b=_0xd737f8[_0x5f0853(0x1ec)](),_0x1b9e9b=new W()[_0x5f0853(0x334)](_0x34c64b,_0x331b16,_0x2436e3,_0x8c43a4),_0x19f13c=new z()['invertOp'](_0x34c64b,_0x1b9e9b),_0x3aeabc={'unitId':_0x1362fd,'op':_0x1b9e9b},_0x183b89={'unitId':_0x1362fd,'op':_0x19f13c};return _0x4d82f3[_0x5f0853(0x2fa)](Q['id'],_0x3aeabc)?(_0x36ffd1[_0x5f0853(0x2d0)](_0x1362fd),_0x5e111f[_0x5f0853(0x352)]({'unitID':_0x1362fd,'undoMutations':[{'id':Q['id'],'params':_0x183b89}],'redoMutations':[{'id':Q['id'],'params':_0x3aeabc}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x572a05,_0x4b4a76)=>{const _0x39ec4a=_0x5670e0;if(!_0x4b4a76)return!0x1;let _0x1462d7=_0x572a05['get'](_0x2853e0),{unitId:_0xc8ebab,tableId:_0x1e1a2c,viewId:_0x5ba332,fieldId:_0x16d853}=_0x4b4a76,_0x373501=_0x1462d7[_0x39ec4a(0x1b8)](_0xc8ebab,_0x1bf49d['UNIVER_BASE']);if(!_0x373501||!$(_0x373501,_0x1e1a2c,{'viewIds':[_0x5ba332],'fieldIds':[_0x16d853]}))return!0x1;let _0x2e5473=_0x572a05[_0x39ec4a(0x2db)](_0x228e7e),_0x154c5c=_0x572a05[_0x39ec4a(0x2db)](_0x1c7439),_0x121e0b=_0x373501[_0x39ec4a(0x1ec)](),_0x4d6a42=new W()[_0x39ec4a(0x35c)](_0x121e0b,_0x1e1a2c,_0x5ba332,{'groupFieldId':_0x16d853}),_0x5fe28=new z()['invertOp'](_0x121e0b,_0x4d6a42),_0x535ca0={'unitId':_0xc8ebab,'op':_0x4d6a42},_0x373833={'unitId':_0xc8ebab,'op':_0x5fe28};return _0x2e5473[_0x39ec4a(0x2fa)](Q['id'],_0x535ca0)?(_0x1462d7[_0x39ec4a(0x2d0)](_0xc8ebab),_0x154c5c[_0x39ec4a(0x352)]({'unitID':_0xc8ebab,'undoMutations':[{'id':Q['id'],'params':_0x373833}],'redoMutations':[{'id':Q['id'],'params':_0x535ca0}]}),!0x0):!0x1;}},uo={'id':_0x5670e0(0x3e8),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x41881b,_0x5b9a4d)=>{const _0x298730=_0x5670e0;if(!_0x5b9a4d)return!0x1;let _0xd044bf=_0x41881b[_0x298730(0x2db)](_0x2853e0),_0x1f2e2f=_0xd044bf[_0x298730(0x1b8)](_0x5b9a4d[_0x298730(0x39d)],_0x1bf49d[_0x298730(0x373)]);if(!_0x1f2e2f)return!0x1;let _0x3b7115=_0x1f2e2f[_0x298730(0x1ec)]()[_0x298730(0x26f)];if(_0x3b7115===_0x5b9a4d[_0x298730(0x26f)])return!0x0;let _0x528274=new W(),_0x2c7ebe=new z(),_0x191608=[],_0x5849c5=[],_0x5e283b=[_0x1f2e2f,..._0xd044bf[_0x298730(0x2aa)](_0x1bf49d[_0x298730(0x373)])[_0x298730(0x364)](_0x17f788=>_0x17f788[_0x298730(0x2a0)]()!==_0x5b9a4d[_0x298730(0x39d)])];for(let _0x572dae of _0x5e283b){let _0x4d6d68=_0x572dae[_0x298730(0x1ec)](),_0x19d83e=_0x572dae===_0x1f2e2f?_0x528274[_0x298730(0x25f)](_0x4d6d68,_0x5b9a4d[_0x298730(0x26f)]):_0x528274[_0x298730(0x24e)](_0x4d6d68,_0x3b7115,_0x5b9a4d[_0x298730(0x26f)]);_0x19d83e&&(_0x191608[_0x298730(0x393)]({'id':Q['id'],'params':{'unitId':_0x572dae[_0x298730(0x2a0)](),'op':_0x19d83e,'trigger':uo['id']}}),_0x5849c5[_0x298730(0x3b4)]({'id':Q['id'],'params':{'unitId':_0x572dae[_0x298730(0x2a0)](),'op':_0x2c7ebe[_0x298730(0x210)](_0x4d6d68,_0x19d83e),'trigger':uo['id']}}));}let _0x455e92=_0x41881b[_0x298730(0x2db)](_0x228e7e),_0x4e7a33=_0x41881b['get'](_0x1c7439),_0x17ee4f=_0x4e7a33[_0x298730(0x1ca)](_0x5b9a4d[_0x298730(0x39d)]);try{return _0x2182cb(_0x191608,_0x455e92)[_0x298730(0x23b)]?(_0xd044bf[_0x298730(0x2d0)](_0x5b9a4d['unitId']),_0x4e7a33[_0x298730(0x352)]({'unitID':_0x5b9a4d['unitId'],'undoMutations':_0x5849c5,'redoMutations':_0x191608}),!0x0):!0x1;}finally{_0x17ee4f['dispose']();}}},fo={'type':_0x21089e[_0x5670e0(0x345)],'id':_0x5670e0(0x3e0),async 'handler'(_0x3c76eb,_0x2f644c){const _0x277625=_0x5670e0;if(!_0x2f644c||!Tr[_0x277625(0x173)](_0x2f644c[_0x277625(0x1d2)])||_0x2f644c[_0x277625(0xba)]!==_0x2f644c[_0x277625(0x39d)]&&_0x2f644c[_0x277625(0x1d2)]!==_0x5ebf52['Edit']||_0x2f644c['policy']&&(![_0x277625(0x3ab),_0x277625(0x286),_0x277625(0x2f1)][_0x277625(0x173)](_0x2f644c[_0x277625(0x203)][_0x277625(0x1b7)])||_0x2f644c['policy'][_0x277625(0x144)][_0x277625(0x1c1)](_0x493ee9=>!Tr[_0x277625(0x173)](_0x493ee9[_0x277625(0x1d2)])||_0x2f644c['objectId']!==_0x2f644c['unitId']&&_0x493ee9[_0x277625(0x1d2)]!==_0x5ebf52[_0x277625(0x29b)])))return!0x1;let _0x57e1a1=Pr(_0x2f644c[_0x277625(0x39d)],_0x2f644c['objectId'],_0x2f644c[_0x277625(0x1d2)]),_0xe8305f={'unitId':_0x2f644c['unitId'],'objectId':_0x2f644c[_0x277625(0xba)],'objectType':_0x57e1a1[_0x277625(0xeb)]},_0x521d4b=_0x3c76eb[_0x277625(0x2db)](_0x33f458);return _0x2f644c[_0x277625(0x366)]?await _0x521d4b[_0x277625(0x366)](_0xe8305f):_0x2f644c['policy']?await _0x521d4b[_0x277625(0x2d1)](_0xe8305f,_0x2f644c[_0x277625(0x203)]):await _0x521d4b['setPoint'](_0xe8305f,_0x57e1a1,_0x2f644c[_0x277625(0x38a)]),!0x0;}},po={'type':_0x21089e[_0x5670e0(0x345)],'id':_0x5670e0(0xc5),async 'handler'(_0x23ed10,_0x52b6c4){const _0x38deee=_0x5670e0;if(!(_0x52b6c4!=null&&_0x52b6c4[_0x38deee(0x39d)])||!Array[_0x38deee(0x99)](_0x52b6c4[_0x38deee(0x3c3)])||!_0x52b6c4[_0x38deee(0x3c3)]['length']||_0x52b6c4[_0x38deee(0x3c3)][_0x38deee(0x1c1)](_0x4869bf=>!(_0x4869bf!=null&&_0x4869bf['objectId'])||_0x4869bf[_0x38deee(0xba)]===_0x52b6c4[_0x38deee(0x39d)]||_0x4869bf[_0x38deee(0x203)]!==null&&(!_0x4869bf[_0x38deee(0x203)]||![_0x38deee(0x3ab),_0x38deee(0x286),_0x38deee(0x2f1)]['includes'](_0x4869bf[_0x38deee(0x203)][_0x38deee(0x1b7)])||!Array[_0x38deee(0x99)](_0x4869bf['policy']['collaborators'])||!Array[_0x38deee(0x99)](_0x4869bf[_0x38deee(0x203)][_0x38deee(0x144)])||_0x4869bf[_0x38deee(0x203)][_0x38deee(0x144)][_0x38deee(0x1c1)](_0x530759=>_0x530759['action']!==_0x5ebf52['Edit']))))throw Error(_0x38deee(0x287));return _0x23ed10[_0x38deee(0x2db)](_0x33f458)[_0x38deee(0x263)](_0x52b6c4[_0x38deee(0x3c3)][_0x38deee(0x102)](_0x11ce7b=>{const _0x3e35bf=_0x38deee;let _0x254b54=Pr(_0x52b6c4['unitId'],_0x11ce7b[_0x3e35bf(0xba)],_0x5ebf52[_0x3e35bf(0x29b)]);return{'unitId':_0x52b6c4[_0x3e35bf(0x39d)],'objectId':_0x11ce7b[_0x3e35bf(0xba)],'objectType':_0x254b54[_0x3e35bf(0xeb)],'policy':_0x11ce7b[_0x3e35bf(0x203)]};}));}};function mo(_0x2c48f0,_0x3fe53d){const _0x582c1c=_0x5670e0;let _0x136a18=L(_0x4bf94a[_0x582c1c(0x343)](_0x2c48f0)),_0x43800e=new Map();return _0x3fe53d[_0x582c1c(0x143)](_0x3936ac=>{const _0x5e2418=_0x582c1c;var _0x5b551b,_0x488c28;let _0xbfabf4='recordId'in _0x3936ac?_0x3936ac[_0x5e2418(0x191)]:(_0x5b551b=_0x136a18[_0x5e2418(0x2ea)])==null?void 0x0:_0x5b551b[_0x3936ac[_0x5e2418(0x24b)]],_0x25d9b3=_0x5e2418(0x186)in _0x3936ac?_0x3936ac[_0x5e2418(0x186)]:(_0x488c28=_0x136a18[_0x5e2418(0x18c)])==null?void 0x0:_0x488c28[_0x3936ac[_0x5e2418(0x324)]],_0x243db5=_0x25d9b3?_0x136a18['fields'][_0x25d9b3]:void 0x0;if(!_0xbfabf4||!_0x25d9b3||!_0x243db5||!_0x136a18[_0x5e2418(0x83)][_0xbfabf4])return;let _0x655736=xt(_0x3936ac[_0x5e2418(0x38a)],_0x243db5),_0x41e2c2=wt(_0x3936ac[_0x5e2418(0x38a)],_0x655736,_0x243db5,_0x136a18,_0xbfabf4),_0x12832a=_0x43800e[_0x5e2418(0x2db)](_0xbfabf4)??{};_0x12832a[_0x25d9b3]=_0x41e2c2,_0x43800e[_0x5e2418(0x2b8)](_0xbfabf4,_0x12832a);}),[..._0x43800e][_0x582c1c(0x102)](([_0x2f4e83,_0x18d315])=>({'recordId':_0x2f4e83,'values':_0x18d315}));}const ho={'id':'base.command.set-base-range-values','type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x4548c9,_0x34b5b7){const _0xae8a9c=_0x5670e0;if(!_0x34b5b7)return!0x1;let _0x20d535=_0x4548c9[_0xae8a9c(0x2db)](_0x2853e0),{unitId:_0x4dda44,tableId:_0x12e7b0,patches:_0x13d900}=_0x34b5b7,_0x41bf44=_0x20d535[_0xae8a9c(0x1b8)](_0x4dda44,_0x1bf49d[_0xae8a9c(0x373)]);if(!_0x41bf44||!$(_0x41bf44,_0x12e7b0))return!0x1;let _0x29fd42=_0x4548c9[_0xae8a9c(0x2db)](_0x228e7e),_0x1bdbf6=_0x4548c9['get'](_0x1c7439),_0x1f5e34=_0x41bf44[_0xae8a9c(0x1ec)](),_0x323129=L(_0x1f5e34[_0xae8a9c(0x41c)][_0x12e7b0]),_0x491a38=_0x13d900[_0xae8a9c(0x102)](_0x140590=>{const _0x5006b4=_0xae8a9c;var _0x576173;return _0x5006b4(0x191)in _0x140590?_0x140590['recordId']:(_0x576173=_0x323129[_0x5006b4(0x2ea)])==null?void 0x0:_0x576173[_0x140590['row']];})['filter'](_0x31ef70=>_0x31ef70!=null),_0x46ad33=_0x13d900[_0xae8a9c(0x102)](_0x3238f6=>{const _0x40f4c7=_0xae8a9c;var _0x1b2e62;return _0x40f4c7(0x186)in _0x3238f6?_0x3238f6[_0x40f4c7(0x186)]:(_0x1b2e62=_0x323129[_0x40f4c7(0x18c)])==null?void 0x0:_0x1b2e62[_0x3238f6[_0x40f4c7(0x324)]];})[_0xae8a9c(0x364)](_0x1dec86=>_0x1dec86!=null);if(_0x491a38['length']!==_0x13d900[_0xae8a9c(0x19b)]||_0x46ad33[_0xae8a9c(0x19b)]!==_0x13d900[_0xae8a9c(0x19b)]||!$(_0x41bf44,_0x12e7b0,{'recordIds':_0x491a38,'fieldIds':_0x46ad33})||_0x13d900[_0xae8a9c(0x1c1)]((_0x261585,_0x2d0ab4)=>!ga(_0x41bf44,_0x12e7b0,_0x46ad33[_0x2d0ab4],_0x261585[_0xae8a9c(0x38a)])))return!0x1;let _0x2925a1=Ze(_0x323129,mo(_0x323129,_0x13d900)),_0x2d2a1f=_0x13d900[_0xae8a9c(0x98)](_0x3ab277=>{const _0x345fc3=_0xae8a9c;var _0x44e65a,_0x239031;if(_0x345fc3(0x24b)in _0x3ab277)return[_0x3ab277];let _0x156008=(_0x44e65a=_0x323129[_0x345fc3(0x250)])==null?void 0x0:_0x44e65a[_0x3ab277[_0x345fc3(0x191)]],_0x26d314=(_0x239031=_0x323129[_0x345fc3(0xb6)])==null?void 0x0:_0x239031[_0x3ab277[_0x345fc3(0x186)]];return _0x156008==null||_0x26d314==null?[]:[{'row':_0x156008,'col':_0x26d314,'value':_0x3ab277[_0x345fc3(0x38a)]}];}),_0x46a910=new W()[_0xae8a9c(0x38b)](_0x1f5e34,_0x12e7b0,_0x2d2a1f),_0x20f7cf=new z()[_0xae8a9c(0x210)](_0x1f5e34,_0x46a910),_0x217983={'unitId':_0x4dda44,'op':_0x46a910,'trigger':_0x2925a1[_0xae8a9c(0x19b)]?ho['id']:void 0x0,'hierarchyChanges':_0x2925a1['length']?_0x2925a1:void 0x0,'source':_0x2925a1[_0xae8a9c(0x19b)]?_0xae8a9c(0x41e):void 0x0},_0x3e0148={'unitId':_0x4dda44,'op':_0x20f7cf,'trigger':_0x2925a1[_0xae8a9c(0x19b)]?ho['id']:void 0x0,'hierarchyChanges':_0x2925a1[_0xae8a9c(0x19b)]?_0x2925a1[_0xae8a9c(0x102)](_0x493e12=>({..._0x493e12,'oldParentRecordId':_0x493e12['parentRecordId'],'parentRecordId':_0x493e12[_0xae8a9c(0x32c)]})):void 0x0,'source':_0x2925a1[_0xae8a9c(0x19b)]?_0xae8a9c(0x18b):void 0x0},_0x127d54={..._0x217983,'source':_0x2925a1[_0xae8a9c(0x19b)]?_0x34b5b7[_0xae8a9c(0x2d6)]??'ui':void 0x0};return _0x29fd42[_0xae8a9c(0x2fa)](Q['id'],_0x127d54)?(_0x20d535[_0xae8a9c(0x2d0)](_0x4dda44),_0x1bdbf6['pushUndoRedo']({'unitID':_0x4dda44,'undoMutations':[{'id':Q['id'],'params':_0x3e0148}],'redoMutations':[{'id':Q['id'],'params':_0x217983}]}),!0x0):!0x1;}},go={'id':_0x5670e0(0x3de),'type':_0x21089e['COMMAND'],'handler'(_0x2cfce7,_0x175629){const _0x3353c5=_0x5670e0;if(!_0x175629)return!0x1;let _0x13a0b2=_0x2cfce7[_0x3353c5(0x2db)](_0x2853e0),{unitId:_0x540add,tableId:_0x556d9e,patches:_0x8b0ca0}=_0x175629,_0xadce6f=_0x13a0b2[_0x3353c5(0x1b8)](_0x540add,_0x1bf49d[_0x3353c5(0x373)]),_0x435c47=_0x8b0ca0[_0x3353c5(0x102)](_0x554b58=>_0x554b58[_0x3353c5(0x191)]),_0x12ad52=_0x8b0ca0['flatMap'](_0x176996=>Object['keys'](_0x176996[_0x3353c5(0x1c8)]));if(!_0xadce6f||!$(_0xadce6f,_0x556d9e,{'recordIds':_0x435c47,'fieldIds':_0x12ad52})||_0x8b0ca0[_0x3353c5(0x1c1)](_0xac305b=>Object[_0x3353c5(0x419)](_0xac305b[_0x3353c5(0x1c8)])[_0x3353c5(0x1c1)](([_0x5e0678,_0x5d555e])=>!ga(_0xadce6f,_0x556d9e,_0x5e0678,_0x5d555e))))return!0x1;let _0x5f424c=Ze(_0xadce6f['getSnapshot']()['tables'][_0x556d9e],_0x8b0ca0),_0x380c4b=_0x2cfce7['get'](_0x228e7e),_0x3d56c4=_0x2cfce7[_0x3353c5(0x2db)](_0x1c7439),_0x36e110=_0x2cfce7[_0x3353c5(0x2db)](Kr)[_0x3353c5(0x29e)](_0xadce6f,_0x556d9e,_0x8b0ca0),_0x2bc943=new z()['invertOp'](_0xadce6f[_0x3353c5(0x1ec)](),_0x36e110),_0x4f9676={'unitId':_0x540add,'op':_0x36e110,'trigger':_0x5f424c[_0x3353c5(0x19b)]?go['id']:void 0x0,'hierarchyChanges':_0x5f424c[_0x3353c5(0x19b)]?_0x5f424c:void 0x0,'source':_0x5f424c[_0x3353c5(0x19b)]?_0x175629[_0x3353c5(0x2d6)]??'ui':void 0x0},_0x5e48b3={..._0x4f9676,'source':_0x5f424c[_0x3353c5(0x19b)]?_0x3353c5(0x41e):void 0x0},_0x55f63b={'unitId':_0x540add,'op':_0x2bc943,'trigger':_0x5f424c['length']?go['id']:void 0x0,'hierarchyChanges':_0x5f424c[_0x3353c5(0x19b)]?_0x5f424c['map'](_0x358865=>({..._0x358865,'oldParentRecordId':_0x358865[_0x3353c5(0x10f)],'parentRecordId':_0x358865[_0x3353c5(0x32c)]})):void 0x0,'source':_0x5f424c[_0x3353c5(0x19b)]?_0x3353c5(0x18b):void 0x0};return _0x380c4b['syncExecuteCommand'](Q['id'],_0x4f9676)?(_0x13a0b2[_0x3353c5(0x2d0)](_0x540add),_0x3d56c4['pushUndoRedo']({'unitID':_0x540add,'undoMutations':[{'id':Q['id'],'params':_0x55f63b}],'redoMutations':[{'id':Q['id'],'params':_0x5e48b3}]}),!0x0):!0x1;}},_o={'id':_0x5670e0(0x3c8),'type':_0x21089e['COMMAND'],'handler':(_0x105b1e,_0x27e572)=>{const _0x563b69=_0x5670e0;if(!_0x27e572)return!0x1;let {unitId:_0x3787a4,tableId:_0x2c847f,fieldId:_0x20fead}=_0x27e572,_0x17134a=_0x105b1e[_0x563b69(0x2db)](_0x2853e0),_0x477a83=_0x17134a[_0x563b69(0x1b8)](_0x3787a4,_0x1bf49d[_0x563b69(0x373)]);if(!_0x477a83||!$(_0x477a83,_0x2c847f))return!0x1;let _0x2cb82f=_0x477a83[_0x563b69(0x1ec)](),_0x246241=_0x2cb82f[_0x563b69(0x41c)][_0x2c847f];if(_0x20fead!==null&&!F(_0x246241,_0x20fead))throw new P('invalidField');if(qe(_0x246241)===_0x20fead)return!0x0;let _0xfdc535=new W(),_0x13694d=R(Object[_0x563b69(0x1c8)](_0x246241['fields'])[_0x563b69(0x98)](_0x12ef18=>{const _0x13782a=_0x563b69;if(!F(_0x246241,_0x12ef18['id']))return[];let _0x501bc7=N(_0x12ef18);if(!_0x501bc7)return[];let _0x387bb1=_0x12ef18['id']===_0x20fead;if(_0x501bc7[_0x13782a(0x1bc)]===_0x309088[_0x13782a(0x1e0)]===_0x387bb1)return[];let _0x841058={..._0x12ef18[_0x13782a(0x407)],'targetTableId':_0x501bc7['targetTableId'],'multiple':_0x501bc7[_0x13782a(0x2ae)]};return _0x387bb1?_0x841058[_0x13782a(0x1bc)]=_0x309088['Parent']:delete _0x841058[_0x13782a(0x1bc)],[_0xfdc535[_0x13782a(0x1a9)](_0x2cb82f,_0x2c847f,_0x12ef18['id'],{'config':_0x841058})];})),_0x131e98=new z()['invertOp'](_0x2cb82f,_0x13694d),_0x36a07e={'unitId':_0x3787a4,'op':_0x13694d},_0x575c94={'unitId':_0x3787a4,'op':_0x131e98};return _0x105b1e['get'](_0x228e7e)['syncExecuteCommand'](Q['id'],_0x36a07e)?(_0x17134a[_0x563b69(0x2d0)](_0x3787a4),_0x105b1e[_0x563b69(0x2db)](_0x1c7439)[_0x563b69(0x352)]({'unitID':_0x3787a4,'undoMutations':[{'id':Q['id'],'params':_0x575c94}],'redoMutations':[{'id':Q['id'],'params':_0x36a07e}]}),!0x0):!0x1;}},vo={'id':_0x5670e0(0x2c9),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x2385c3,_0x57bd50)=>{const _0x37a156=_0x5670e0;if(!_0x57bd50)return!0x1;let _0x37d95c=_0x2385c3[_0x37a156(0x2db)](_0x2853e0),{unitId:_0x16a955,tableId:_0x1ca580,viewId:_0x324c09,fieldId:_0xdb91e5,target:_0x252415}=_0x57bd50,_0x40f3df=_0x37d95c[_0x37a156(0x1b8)](_0x16a955,_0x1bf49d[_0x37a156(0x373)]),_0xbcdce0=_0x252415[_0x37a156(0x170)]??_0x252415[_0x37a156(0x265)];if(!_0x40f3df||!_0xbcdce0||_0xbcdce0===_0xdb91e5||!$(_0x40f3df,_0x1ca580,{'viewIds':[_0x324c09],'fieldIds':[_0xdb91e5,_0xbcdce0]}))return!0x1;let _0xe562b1=_0x40f3df['getSnapshot']()[_0x37a156(0x41c)][_0x1ca580],_0x190fca=_0xe562b1[_0x37a156(0x2cb)][_0xdb91e5],_0x4ead14=_0xe562b1[_0x37a156(0x2cb)][_0xbcdce0];if(_0x190fca['system']===!0x0||_0x190fca['type']===_0x4fe15f[_0x37a156(0x300)]||_0x4ead14[_0x37a156(0x13a)]===!0x0||_0x4ead14['type']===_0x4fe15f[_0x37a156(0x300)])return!0x1;let _0x17dcfc=_0x2385c3[_0x37a156(0x2db)](_0x228e7e),_0x208333=_0x2385c3['get'](_0x1c7439),_0x2c8a1e=_0x40f3df['getSnapshot'](),_0x4fff18=new W()[_0x37a156(0x225)](_0x2c8a1e,_0x1ca580,_0x324c09,_0xdb91e5,_0x252415),_0x4e2331=new z()[_0x37a156(0x210)](_0x2c8a1e,_0x4fff18),_0x6cd0e6={'unitId':_0x16a955,'op':_0x4fff18},_0x3a7633={'unitId':_0x16a955,'op':_0x4e2331};return _0x17dcfc[_0x37a156(0x2fa)](Q['id'],_0x6cd0e6)?(_0x37d95c[_0x37a156(0x2d0)](_0x16a955),_0x208333[_0x37a156(0x352)]({'unitID':_0x16a955,'undoMutations':[{'id':Q['id'],'params':_0x3a7633}],'redoMutations':[{'id':Q['id'],'params':_0x6cd0e6}]}),!0x0):!0x1;}},yo={'id':'base.command.set-base-view-field-visible','type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x331470,_0x595dc0){const _0x43de13=_0x5670e0;if(!_0x595dc0)return!0x1;let _0x3ba1b8=_0x331470[_0x43de13(0x2db)](_0x2853e0),{unitId:_0x2c0c01,tableId:_0x3b60,viewId:_0x310da3,fieldId:_0x521a5f,visible:_0x2d33be}=_0x595dc0,_0xce9ba2=_0x3ba1b8['getUnit'](_0x2c0c01,_0x1bf49d[_0x43de13(0x373)]);if(!_0xce9ba2||!$(_0xce9ba2,_0x3b60,{'viewIds':[_0x310da3],'fieldIds':[_0x521a5f]}))return!0x1;let _0x6eb37c=_0xce9ba2[_0x43de13(0x1ec)]()[_0x43de13(0x41c)][_0x3b60][_0x43de13(0x2cb)][_0x521a5f];if(_0x6eb37c[_0x43de13(0x13a)]===!0x0||_0x6eb37c[_0x43de13(0xeb)]===_0x4fe15f[_0x43de13(0x300)])return!0x1;let _0x41fa0c=_0x331470[_0x43de13(0x2db)](_0x228e7e),_0x7917a0=_0x331470[_0x43de13(0x2db)](_0x1c7439),_0x42435f=_0xce9ba2[_0x43de13(0x1ec)](),_0x3ce837=new W()[_0x43de13(0x2af)](_0x42435f,_0x3b60,_0x310da3,_0x521a5f,_0x2d33be),_0x43c1f2=new z()[_0x43de13(0x210)](_0x42435f,_0x3ce837),_0x3a9a32={'unitId':_0x2c0c01,'op':_0x3ce837},_0x422b7d={'unitId':_0x2c0c01,'op':_0x43c1f2};return _0x41fa0c['syncExecuteCommand'](Q['id'],_0x3a9a32)?(_0x3ba1b8[_0x43de13(0x2d0)](_0x2c0c01),_0x7917a0[_0x43de13(0x352)]({'unitID':_0x2c0c01,'undoMutations':[{'id':Q['id'],'params':_0x422b7d}],'redoMutations':[{'id':Q['id'],'params':_0x3a9a32}]}),!0x0):!0x1;}},bo={'id':'base.command.set-base-view-field-width','type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x539e61,_0x4333ef)=>{const _0x3c973a=_0x5670e0;if(!_0x4333ef)return!0x1;let _0x365e9f=_0x539e61[_0x3c973a(0x2db)](_0x2853e0),{unitId:_0x533974,tableId:_0x568f5f,viewId:_0x53ebd7,fieldId:_0x5b3275,width:_0x1aad14}=_0x4333ef,_0x27044b=_0x365e9f['getUnit'](_0x533974,_0x1bf49d[_0x3c973a(0x373)]);if(!_0x27044b||!$(_0x27044b,_0x568f5f,{'viewIds':[_0x53ebd7],'fieldIds':[_0x5b3275]}))return!0x1;let _0x50eef6=_0x27044b[_0x3c973a(0x1ec)]()[_0x3c973a(0x41c)][_0x568f5f][_0x3c973a(0x2cb)][_0x5b3275];if(_0x50eef6['system']===!0x0||_0x50eef6[_0x3c973a(0xeb)]===_0x4fe15f[_0x3c973a(0x300)])return!0x1;let _0x12475f=_0x539e61[_0x3c973a(0x2db)](_0x228e7e),_0x177381=_0x539e61[_0x3c973a(0x2db)](_0x1c7439),_0xf7eb44=_0x27044b[_0x3c973a(0x1ec)](),_0x1a8a9c=new W()['setViewFieldWidth'](_0xf7eb44,_0x568f5f,_0x53ebd7,_0x5b3275,_0x1aad14),_0xabc696=new z()[_0x3c973a(0x210)](_0xf7eb44,_0x1a8a9c),_0x27d01b={'unitId':_0x533974,'op':_0x1a8a9c},_0x4a0bea={'unitId':_0x533974,'op':_0xabc696};return _0x12475f['syncExecuteCommand'](Q['id'],_0x27d01b)?(_0x365e9f['focusUnit'](_0x533974),_0x177381[_0x3c973a(0x352)]({'unitID':_0x533974,'undoMutations':[{'id':Q['id'],'params':_0x4a0bea}],'redoMutations':[{'id':Q['id'],'params':_0x27d01b}]}),!0x0):!0x1;}},xo={'id':_0x5670e0(0x1a2),'type':_0x21089e['COMMAND'],'handler':(_0x460a9d,_0x25c4e8)=>{const _0x2fa9ac=_0x5670e0;if(!_0x25c4e8)return!0x1;let _0x5847ec=_0x460a9d[_0x2fa9ac(0x2db)](_0x2853e0),{unitId:_0x1e938e,tableId:_0x378459,viewId:_0x28095e,filter:_0x5c193c}=_0x25c4e8,_0x349cfc=_0x5847ec[_0x2fa9ac(0x1b8)](_0x1e938e,_0x1bf49d[_0x2fa9ac(0x373)]),_0x493f87=(_0x5c193c==null?void 0x0:_0x5c193c[_0x2fa9ac(0x196)][_0x2fa9ac(0x102)](_0x16aeab=>_0x16aeab[_0x2fa9ac(0x186)]))??[];if(!_0x349cfc||!$(_0x349cfc,_0x378459,{'viewIds':[_0x28095e],'fieldIds':_0x493f87}))return!0x1;let _0xac469c=_0x460a9d['get'](_0x228e7e),_0x1437d4=_0x460a9d['get'](_0x1c7439),_0x18f666=_0x349cfc['getSnapshot'](),_0xd2e503=new W()[_0x2fa9ac(0x19a)](_0x18f666,_0x378459,_0x28095e,_0x5c193c),_0x3301fc=new z()[_0x2fa9ac(0x210)](_0x18f666,_0xd2e503),_0x394879={'unitId':_0x1e938e,'op':_0xd2e503},_0x3c45df={'unitId':_0x1e938e,'op':_0x3301fc};return _0xac469c['syncExecuteCommand'](Q['id'],_0x394879)?(_0x5847ec[_0x2fa9ac(0x2d0)](_0x1e938e),_0x1437d4[_0x2fa9ac(0x352)]({'unitID':_0x1e938e,'undoMutations':[{'id':Q['id'],'params':_0x3c45df}],'redoMutations':[{'id':Q['id'],'params':_0x394879}]}),!0x0):!0x1;}},So={'id':_0x5670e0(0x359),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0xa6390d,_0x55a820)=>{const _0x23129d=_0x5670e0;if(!_0x55a820)return!0x1;let _0x4c8f88=_0xa6390d[_0x23129d(0x2db)](_0x2853e0),{unitId:_0x5567f1,tableId:_0x482463,viewId:_0x162419,group:_0x3e7e02}=_0x55a820,_0x425ffa=_0x4c8f88['getUnit'](_0x5567f1,_0x1bf49d[_0x23129d(0x373)]);if(!_0x425ffa||!$(_0x425ffa,_0x482463,{'viewIds':[_0x162419],'fieldIds':_0x3e7e02['map'](_0x242055=>_0x242055[_0x23129d(0x186)])}))return!0x1;let _0x484f3f=_0xa6390d['get'](_0x228e7e),_0x317f96=_0xa6390d['get'](_0x1c7439),_0x49e394=_0x425ffa[_0x23129d(0x1ec)](),_0x317772=new W()['setViewGroup'](_0x49e394,_0x482463,_0x162419,_0x3e7e02),_0x48e14b=new z()[_0x23129d(0x210)](_0x49e394,_0x317772),_0x4fab37={'unitId':_0x5567f1,'op':_0x317772},_0x129f55={'unitId':_0x5567f1,'op':_0x48e14b};return _0x484f3f[_0x23129d(0x2fa)](Q['id'],_0x4fab37)?(_0x4c8f88[_0x23129d(0x2d0)](_0x5567f1),_0x317f96[_0x23129d(0x352)]({'unitID':_0x5567f1,'undoMutations':[{'id':Q['id'],'params':_0x129f55}],'redoMutations':[{'id':Q['id'],'params':_0x4fab37}]}),!0x0):!0x1;}},Co={'id':_0x5670e0(0x42c),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x3def34,_0x505569)=>{const _0x2bf030=_0x5670e0;if(!_0x505569)return!0x1;let _0x20a636=_0x3def34[_0x2bf030(0x2db)](_0x2853e0),{unitId:_0x5c6b37,tableId:_0x133d1d,viewId:_0x9496ed,sort:_0x55d55b}=_0x505569,_0x46ecc3=_0x20a636['getUnit'](_0x5c6b37,_0x1bf49d[_0x2bf030(0x373)]);if(!_0x46ecc3||!$(_0x46ecc3,_0x133d1d,{'viewIds':[_0x9496ed],'fieldIds':_0x55d55b[_0x2bf030(0x102)](_0xeddd1d=>_0xeddd1d[_0x2bf030(0x186)])}))return!0x1;let _0x28cceb=_0x3def34[_0x2bf030(0x2db)](_0x228e7e),_0x169dbd=_0x3def34[_0x2bf030(0x2db)](_0x1c7439),_0x5aaa70=_0x46ecc3[_0x2bf030(0x1ec)](),_0x3e3800=new W()['setViewSort'](_0x5aaa70,_0x133d1d,_0x9496ed,_0x55d55b),_0x5c4ed7=new z()[_0x2bf030(0x210)](_0x5aaa70,_0x3e3800),_0x35ef1e={'unitId':_0x5c6b37,'op':_0x3e3800},_0x5c5ecc={'unitId':_0x5c6b37,'op':_0x5c4ed7};return _0x28cceb[_0x2bf030(0x2fa)](Q['id'],_0x35ef1e)?(_0x20a636[_0x2bf030(0x2d0)](_0x5c6b37),_0x169dbd[_0x2bf030(0x352)]({'unitID':_0x5c6b37,'undoMutations':[{'id':Q['id'],'params':_0x5c5ecc}],'redoMutations':[{'id':Q['id'],'params':_0x35ef1e}]}),!0x0):!0x1;}},wo={'id':_0x5670e0(0x32e),'type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x25828e,_0x172188){const _0x49475a=_0x5670e0;if(!_0x172188)return!0x1;let _0x44b179=_0x25828e[_0x49475a(0x2db)](_0x2853e0),{unitId:_0x32136d,tableId:_0x1ddf81,recordId:_0x43fb1e,fieldId:_0x53a835,value:_0x32870f}=_0x172188,_0x3e34f2=_0x44b179[_0x49475a(0x1b8)](_0x32136d,_0x1bf49d[_0x49475a(0x373)]);if(!_0x3e34f2||!$(_0x3e34f2,_0x1ddf81,{'recordIds':[_0x43fb1e],'fieldIds':[_0x53a835]})||!ga(_0x3e34f2,_0x1ddf81,_0x53a835,_0x32870f))return!0x1;let _0xe930c8=_0x3e34f2[_0x49475a(0x1ec)]()[_0x49475a(0x41c)][_0x1ddf81],_0x311441=F(_0xe930c8,_0x53a835)&&Xe(_0xe930c8)[_0x49475a(0x173)](_0x53a835),_0xb7c986=_0x311441?tt(_0xe930c8,_0x53a835):null,_0x5aafae=(_0xb7c986==null?void 0x0:_0xb7c986[_0x49475a(0x190)][_0x49475a(0x2db)](_0x43fb1e))??null,_0x4d3303=_0x311441?Le(_0x32870f)[0x0]??null:null;if(_0xb7c986){if(_0x4d3303&&!_0xe930c8['records'][_0x4d3303])throw new P(_0x49475a(0x32d));let _0x3efcaa=it(_0xb7c986,_0x43fb1e,_0x4d3303);if(!_0x3efcaa[_0x49475a(0x246)])throw new P(_0x3efcaa[_0x49475a(0x37a)]===_0x244f2c['SelfParent']?_0x49475a(0x1f1):_0x3efcaa[_0x49475a(0x37a)]===_0x244f2c[_0x49475a(0x355)]?_0x49475a(0xfb):_0x49475a(0x245));}let _0x9071ce=_0x25828e[_0x49475a(0x2db)](_0x228e7e),_0xceaeb4=_0x25828e['get'](_0x1c7439),_0x312494=_0x25828e['get'](Kr),_0x446929;try{_0x446929=_0x312494[_0x49475a(0x432)](_0x3e34f2,_0x1ddf81,_0x43fb1e,_0x53a835,_0x32870f);}catch(_0x5f09d8){return console['error'](_0x49475a(0x1b9),_0x5f09d8),!0x1;}let _0x81b1=new z()[_0x49475a(0x210)](_0x3e34f2[_0x49475a(0x1ec)](),_0x446929),_0x4d97a8=_0x311441&&_0x5aafae!==_0x4d3303?[{'tableId':_0x1ddf81,'fieldId':_0x53a835,'recordId':_0x43fb1e,'oldParentRecordId':_0x5aafae,'parentRecordId':_0x4d3303}]:void 0x0,_0x2231d5={'unitId':_0x32136d,'op':_0x446929,'trigger':_0x4d97a8?wo['id']:void 0x0,'hierarchyChanges':_0x4d97a8,'source':_0x4d97a8?_0x172188['source']??'ui':void 0x0},_0x36ea18={..._0x2231d5,'source':_0x4d97a8?'redo':void 0x0},_0x51ab94={'unitId':_0x32136d,'op':_0x81b1,'trigger':_0x4d97a8?wo['id']:void 0x0,'hierarchyChanges':_0x4d97a8==null?void 0x0:_0x4d97a8['map'](_0x252798=>({..._0x252798,'oldParentRecordId':_0x252798[_0x49475a(0x10f)],'parentRecordId':_0x252798[_0x49475a(0x32c)]})),'source':_0x4d97a8?'undo':void 0x0};return _0x9071ce['syncExecuteCommand'](Q['id'],_0x2231d5)?(_0x44b179[_0x49475a(0x3a6)]()||_0x44b179[_0x49475a(0x2d0)](_0x32136d),_0xceaeb4[_0x49475a(0x352)]({'unitID':_0x32136d,'undoMutations':[{'id':Q['id'],'params':_0x51ab94}],'redoMutations':[{'id':Q['id'],'params':_0x36ea18}]}),!0x0):!0x1;}},To={'id':_0x5670e0(0x146),'type':_0x21089e[_0x5670e0(0x345)],'handler'(_0x56ff57,_0x48f45c){const _0x392181=_0x5670e0;if(!_0x48f45c)return!0x1;let _0xbc364e=_0x56ff57[_0x392181(0x2db)](_0x2853e0),{unitId:_0x1a5055,tableId:_0x41f550,fieldId:_0x4e6c61}=_0x48f45c,_0x219dc0=_0xbc364e[_0x392181(0x1b8)](_0x1a5055,_0x1bf49d[_0x392181(0x373)]);if(!_0x219dc0||!$(_0x219dc0,_0x41f550,{'fieldIds':[_0x4e6c61]}))return!0x1;let _0x2bb407=_0x56ff57[_0x392181(0x2db)](_0x228e7e),_0x10b29e=_0x56ff57[_0x392181(0x2db)](_0x1c7439),_0x52a36d=_0x219dc0['getSnapshot'](),_0x1aa779=_0x48f45c['description'][_0x392181(0x12d)](),_0x2ea596=new W()['updateField'](_0x52a36d,_0x41f550,_0x4e6c61,{'description':_0x1aa779}),_0x5c233c=new z()[_0x392181(0x210)](_0x219dc0[_0x392181(0x1ec)](),_0x2ea596),_0x13cedc={'unitId':_0x1a5055,'op':_0x2ea596},_0x310032={'unitId':_0x1a5055,'op':_0x5c233c};return _0x2bb407[_0x392181(0x2fa)](Q['id'],_0x13cedc)?(_0xbc364e[_0x392181(0x2d0)](_0x1a5055),_0x10b29e[_0x392181(0x352)]({'unitID':_0x1a5055,'undoMutations':[{'id':Q['id'],'params':_0x310032}],'redoMutations':[{'id':Q['id'],'params':_0x13cedc}]}),!0x0):!0x1;}},Eo={'id':_0x5670e0(0x195),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x43fdab,_0x1ce41d)=>{const _0x1a7fa4=_0x5670e0;if(!_0x1ce41d)return!0x1;let _0x1059ef=_0x43fdab['get'](_0x2853e0),{unitId:_0x1abc3a,tableId:_0x436cec,fieldId:_0x2d6e54,patch:_0x19a4b7}=_0x1ce41d,_0x29d2d6=_0x1059ef[_0x1a7fa4(0x1b8)](_0x1abc3a,_0x1bf49d[_0x1a7fa4(0x373)]);if(!_0x29d2d6||_0x2d6e54===_0x32decc||!$(_0x29d2d6,_0x436cec,{'fieldIds':[_0x2d6e54]}))return!0x1;let _0x9d2711=_0x43fdab[_0x1a7fa4(0x2db)](_0x228e7e),_0x504b12=_0x43fdab[_0x1a7fa4(0x2db)](_0x1c7439),_0x19f824=_0x29d2d6[_0x1a7fa4(0x1ec)]();if(!ha(_0x29d2d6,_0x436cec,{..._0x19f824[_0x1a7fa4(0x41c)][_0x436cec]['fields'][_0x2d6e54],..._0x19a4b7}))return!0x1;let _0x46e4d6=new W()[_0x1a7fa4(0x1a9)](_0x19f824,_0x436cec,_0x2d6e54,_0x19a4b7),_0x3836f0=new z()[_0x1a7fa4(0x210)](_0x19f824,_0x46e4d6),_0xcdcf09={'unitId':_0x1abc3a,'op':_0x46e4d6},_0x519aae={'unitId':_0x1abc3a,'op':_0x3836f0};return _0x9d2711[_0x1a7fa4(0x2fa)](Q['id'],_0xcdcf09)?(_0x1059ef[_0x1a7fa4(0x2d0)](_0x1abc3a),_0x504b12[_0x1a7fa4(0x352)]({'unitID':_0x1abc3a,'undoMutations':[{'id':Q['id'],'params':_0x519aae}],'redoMutations':[{'id':Q['id'],'params':_0xcdcf09}]}),!0x0):!0x1;}},Do={'id':_0x5670e0(0xb1),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x3ee5fd,_0x305472)=>{const _0x4e295a=_0x5670e0;if(!_0x305472)return!0x1;let _0x52434b=_0x3ee5fd['get'](_0x2853e0),{unitId:_0x4f79a2,tableId:_0x3fb341,viewId:_0x5e4cd3,patch:_0x48c4de}=_0x305472,_0x235a8d=_0x52434b['getUnit'](_0x4f79a2,_0x1bf49d[_0x4e295a(0x373)]);if(!_0x235a8d||!$(_0x235a8d,_0x3fb341,{'viewIds':[_0x5e4cd3]}))return!0x1;let _0x3e569f=_0x3ee5fd[_0x4e295a(0x2db)](_0x228e7e),_0x5c9726=_0x3ee5fd[_0x4e295a(0x2db)](_0x1c7439),_0xaf1907=_0x235a8d[_0x4e295a(0x1ec)](),_0x278430=new W()[_0x4e295a(0x35c)](_0xaf1907,_0x3fb341,_0x5e4cd3,_0x48c4de),_0x3b3361=new z()[_0x4e295a(0x210)](_0xaf1907,_0x278430),_0x5b19c2={'unitId':_0x4f79a2,'op':_0x278430},_0x46d5f6={'unitId':_0x4f79a2,'op':_0x3b3361};return _0x3e569f[_0x4e295a(0x2fa)](Q['id'],_0x5b19c2)?(_0x52434b[_0x4e295a(0x2d0)](_0x4f79a2),_0x5c9726[_0x4e295a(0x352)]({'unitID':_0x4f79a2,'undoMutations':[{'id':Q['id'],'params':_0x46d5f6}],'redoMutations':[{'id':Q['id'],'params':_0x5b19c2}]}),!0x0):!0x1;}},Oo={'id':_0x5670e0(0x240),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x293f88,_0x3c6632)=>{const _0x470925=_0x5670e0;if(!_0x3c6632)return!0x1;let _0x5bde6f=_0x293f88['get'](_0x2853e0),{unitId:_0x445c4b,tableId:_0x35e0ce,recordId:_0x4fe9e9,orderKey:_0x240186}=_0x3c6632,_0x481a22=_0x5bde6f[_0x470925(0x1b8)](_0x445c4b,_0x1bf49d[_0x470925(0x373)]);if(!_0x481a22||!$(_0x481a22,_0x35e0ce,{'recordIds':[_0x4fe9e9]}))return!0x1;let _0x211049=_0x293f88[_0x470925(0x2db)](_0x228e7e),_0x5499de=_0x293f88['get'](_0x1c7439),_0x48e29d=_0x481a22[_0x470925(0x1ec)](),_0x4bb93b=new W()[_0x470925(0x392)](_0x48e29d,_0x35e0ce,_0x4fe9e9,_0x240186),_0x4cd0f9=new z()[_0x470925(0x210)](_0x48e29d,_0x4bb93b),_0x19ff12={'unitId':_0x445c4b,'op':_0x4bb93b},_0x3f5943={'unitId':_0x445c4b,'op':_0x4cd0f9};return _0x211049[_0x470925(0x2fa)](Q['id'],_0x19ff12)?(_0x5bde6f[_0x470925(0x2d0)](_0x445c4b),_0x5499de[_0x470925(0x352)]({'unitID':_0x445c4b,'undoMutations':[{'id':Q['id'],'params':_0x3f5943}],'redoMutations':[{'id':Q['id'],'params':_0x19ff12}]}),!0x0):!0x1;}};let ko=function(_0x48fb56){const _0x3d39af=_0x5670e0;return _0x48fb56['Set']=_0x3d39af(0x2b8),_0x48fb56[_0x3d39af(0x182)]=_0x3d39af(0x41d),_0x48fb56[_0x3d39af(0x2d2)]=_0x3d39af(0x15e),_0x48fb56['Clear']=_0x3d39af(0x114),_0x48fb56;}({});const Ao={'id':_0x5670e0(0x425),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x239a96,_0x44e9f9)=>{const _0x569a70=_0x5670e0;var _0x1145a3;if(!_0x44e9f9)return!0x1;let _0x22267e=_0x239a96[_0x569a70(0x2db)](_0x2853e0),_0x35f38a=_0x22267e[_0x569a70(0x1b8)](_0x44e9f9['unitId'],_0x1bf49d['UNIVER_BASE']);if(!_0x35f38a||!$(_0x35f38a,_0x44e9f9['tableId'],{'viewIds':[_0x44e9f9['viewId']]}))return!0x1;let _0xbc02ca=_0x35f38a[_0x569a70(0x1ec)](),_0x4acbcd=_0xbc02ca['tables'][_0x44e9f9[_0x569a70(0x1a4)]],_0x435798=jo(((_0x1145a3=_0x4acbcd[_0x569a70(0x21f)][_0x44e9f9['viewId']]['config'][_0x569a70(0x227)])==null?void 0x0:_0x1145a3[_0x569a70(0x317)])??[],_0x44e9f9);if(!_0x435798)return!0x1;Mo(_0x4acbcd,_0x435798);let _0x5e8b4b=new W()[_0x569a70(0x35c)](_0xbc02ca,_0x44e9f9[_0x569a70(0x1a4)],_0x44e9f9[_0x569a70(0xc1)],{'conditionalColoring':_0x435798[_0x569a70(0x19b)]?{'rules':_0x435798}:null}),_0x2dca0c=new z()[_0x569a70(0x210)](_0xbc02ca,_0x5e8b4b),_0x256b06={'unitId':_0x44e9f9[_0x569a70(0x39d)],'op':_0x5e8b4b},_0x28ab0f={'unitId':_0x44e9f9['unitId'],'op':_0x2dca0c};return _0x239a96[_0x569a70(0x2db)](_0x228e7e)[_0x569a70(0x2fa)](Q['id'],_0x256b06)?(_0x22267e[_0x569a70(0x2d0)](_0x44e9f9['unitId']),_0x239a96[_0x569a70(0x2db)](_0x1c7439)[_0x569a70(0x352)]({'unitID':_0x44e9f9[_0x569a70(0x39d)],'undoMutations':[{'id':Q['id'],'params':_0x28ab0f}],'redoMutations':[{'id':Q['id'],'params':_0x256b06}]}),!0x0):!0x1;}};function jo(_0x103c4a,_0x377e56){const _0x478568=_0x5670e0;switch(_0x377e56[_0x478568(0xeb)]){case _0x478568(0x2b8):return _0x4bf94a[_0x478568(0x343)](_0x377e56['rules']);case _0x478568(0x41d):return[..._0x4bf94a[_0x478568(0x343)](_0x103c4a),_0x4bf94a[_0x478568(0x343)](_0x377e56[_0x478568(0x3f6)])];case _0x478568(0x15e):{let _0x4ab3d9=_0x103c4a[_0x478568(0x364)](_0x2176bf=>_0x2176bf['id']!==_0x377e56[_0x478568(0x20d)]);return _0x4ab3d9['length']===_0x103c4a[_0x478568(0x19b)]?null:_0x4bf94a[_0x478568(0x343)](_0x4ab3d9);}case _0x478568(0x114):return _0x103c4a[_0x478568(0x19b)]?[]:null;}}function Mo(_0x280227,_0x179168){const _0x2298e1=_0x5670e0;if(!Array[_0x2298e1(0x99)](_0x179168))throw TypeError(_0x2298e1(0x332));let _0x1e57a7=new Set();for(let [_0x3afcd7,_0x26f377]of _0x179168[_0x2298e1(0x419)]())Po(_0x280227,_0x26f377,No(_0x26f377,_0x3afcd7,_0x1e57a7));}function No(_0x136463,_0x394da0,_0x1d54c3){const _0x3771d0=_0x5670e0;if(!_0x136463||typeof _0x136463!=_0x3771d0(0x360))throw TypeError(_0x3771d0(0x151)+_0x394da0+_0x3771d0(0x28a));let _0x4d0fce=typeof _0x136463['id']==_0x3771d0(0x2dc)&&_0x136463['id'][_0x3771d0(0x12d)]()?'\x22'+_0x136463['id']+'\x22':'at\x20index\x20'+_0x394da0;if(typeof _0x136463['id']!='string'||!_0x136463['id'][_0x3771d0(0x12d)]())throw Error(_0x3771d0(0x350)+_0x4d0fce+'\x20must\x20have\x20a\x20non-empty\x20id.');if(_0x1d54c3[_0x3771d0(0xb9)](_0x136463['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x136463['id']+'\x22.');_0x1d54c3[_0x3771d0(0x41d)](_0x136463['id']);let _0xb98a29=typeof _0x136463[_0x3771d0(0x335)]==_0x3771d0(0x2dc)&&_0x136463[_0x3771d0(0x335)]['trim']()?new _0x11ff7e(_0x136463[_0x3771d0(0x335)]):null;if(!(_0xb98a29!=null&&_0xb98a29[_0x3771d0(0x1d0)]))throw Error(_0x3771d0(0x350)+_0x4d0fce+_0x3771d0(0x3e4));return _0x4d0fce;}function Po(_0x3fff43,_0xd484a3,_0x43829d){const _0x1afa51=_0x5670e0;let _0x155710=new Set(Object[_0x1afa51(0x1c8)](_0x15ad00)),_0x5bfea8=new Set(Object[_0x1afa51(0x1c8)](_0x4d7aa6)),_0x140e0b=new Set(Object[_0x1afa51(0x1c8)](_0x511cc3));if(!_0x155710[_0x1afa51(0xb9)](_0xd484a3['target']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x43829d+_0x1afa51(0xa3)+String(_0xd484a3[_0x1afa51(0x1e8)])+'\x22.');let _0x8b6227=typeof _0xd484a3[_0x1afa51(0x186)]=='string'?_0x3fff43[_0x1afa51(0x2cb)][_0xd484a3[_0x1afa51(0x186)]]:void 0x0;if(!_0x8b6227||_0x8b6227[_0x1afa51(0x13a)]===!0x0||_0x8b6227[_0x1afa51(0xeb)]===_0x4fe15f[_0x1afa51(0x300)])throw Error(_0x1afa51(0x350)+_0x43829d+_0x1afa51(0x243)+String(_0xd484a3[_0x1afa51(0x186)])+'\x22.');if(!_0x5bfea8['has'](_0xd484a3['operator']))throw Error(_0x1afa51(0x350)+_0x43829d+_0x1afa51(0x3f2)+String(_0xd484a3['operator'])+'\x22.');if(_0xd484a3[_0x1afa51(0xbe)]!==void 0x0&&!_0x140e0b[_0x1afa51(0xb9)](_0xd484a3[_0x1afa51(0xbe)]))throw Error(_0x1afa51(0x350)+_0x43829d+_0x1afa51(0x84)+String(_0xd484a3[_0x1afa51(0xbe)])+'\x22.');if(_0xd484a3[_0x1afa51(0x1e8)]===_0x15ad00[_0x1afa51(0x37b)])return;let _0x5497b4=vn(_0x8b6227[_0x1afa51(0xeb)]);if(!_0x5497b4[_0x1afa51(0x173)](_0xd484a3[_0x1afa51(0xc2)]))throw Error(_0x1afa51(0x350)+_0x43829d+_0x1afa51(0x30f)+_0xd484a3['operator']+_0x1afa51(0x40a)+_0x8b6227[_0x1afa51(0xeb)]+_0x1afa51(0x339)+_0x5497b4[_0x1afa51(0x3d6)](',\x20')+'.');if(_0xd484a3['dateMode']!==void 0x0&&!yn(_0x8b6227[_0x1afa51(0xeb)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x43829d+_0x1afa51(0x176));}const Fo={'id':_0x5670e0(0x25a),'type':_0x21089e[_0x5670e0(0x345)],'handler':(_0x22292e,_0x50c092)=>{const _0x3bfe7b=_0x5670e0;if(!_0x50c092)return!0x1;let _0x39e1fb=_0x22292e[_0x3bfe7b(0x2db)](_0x2853e0),{unitId:_0x10c9b1,tableId:_0x5cd4e6,viewId:_0x365eab,patch:_0x378dcb}=_0x50c092,_0x400045=_0x39e1fb[_0x3bfe7b(0x1b8)](_0x10c9b1,_0x1bf49d[_0x3bfe7b(0x373)]);if(!_0x400045||!$(_0x400045,_0x5cd4e6,{'viewIds':[_0x365eab]}))return!0x1;let _0x18c283=_0x22292e['get'](_0x228e7e),_0x3e5220=_0x22292e[_0x3bfe7b(0x2db)](_0x1c7439),_0x1ffff2=_0x400045[_0x3bfe7b(0x1ec)](),_0x56f6c4=new W()[_0x3bfe7b(0x35c)](_0x1ffff2,_0x5cd4e6,_0x365eab,_0x378dcb),_0x447a00=new z()[_0x3bfe7b(0x210)](_0x1ffff2,_0x56f6c4),_0x431354={'unitId':_0x10c9b1,'op':_0x56f6c4},_0x2ebe82={'unitId':_0x10c9b1,'op':_0x447a00};return _0x18c283['syncExecuteCommand'](Q['id'],_0x431354)?(_0x39e1fb['focusUnit'](_0x10c9b1),_0x3e5220[_0x3bfe7b(0x352)]({'unitID':_0x10c9b1,'undoMutations':[{'id':Q['id'],'params':_0x2ebe82}],'redoMutations':[{'id':Q['id'],'params':_0x431354}]}),!0x0):!0x1;}},Io={'id':_0x5670e0(0x24c),'type':_0x21089e[_0x5670e0(0x345)],'handler'(_0xec5135,_0x4ee65d){const _0x32ec2d=_0x5670e0;if(!_0x4ee65d)return{'valid':!0x1,'reason':_0x32ec2d(0xf3)};let _0x2032bd=_0xec5135[_0x32ec2d(0x2db)](_0x2853e0)[_0x32ec2d(0x1b8)](_0x4ee65d['unitId'],_0x1bf49d[_0x32ec2d(0x373)]),_0x46e819=_0x2032bd==null?void 0x0:_0x2032bd['getSnapshot'](),_0x32ef89=_0x46e819==null?void 0x0:_0x46e819[_0x32ec2d(0x41c)][_0x4ee65d[_0x32ec2d(0x1a4)]];return!_0x46e819||!_0x32ef89?{'valid':!0x1,'reason':_0x32ec2d(0x347)}:new Xi()[_0x32ec2d(0x90)](_0x4ee65d['formula'],_0x32ef89,{'snapshot':_0x46e819});}};let Lo=class extends _0x2f9b21{constructor(_0x527c32){const _0x46d8c9=_0x5670e0;super(_0x527c32,_0x46d8c9(0x23f),_0x1bf49d[_0x46d8c9(0x373)],[_0x2d9d6e[_0x46d8c9(0xa0)],_0x2d9d6e['BaseField'],_0x2d9d6e[_0x46d8c9(0x2f7)],_0x2d9d6e[_0x46d8c9(0x20f)],_0x2d9d6e[_0x46d8c9(0xe2)]]);}};Lo=X([Y(0x0,_0x83427d)],Lo);const Ro={'id':_0x5670e0(0x9d),'type':_0x21089e[_0x5670e0(0x323)],'handler':(_0x2d67c2,_0x43b554)=>!_0x43b554||!_0x2d67c2[_0x5670e0(0x2db)](_0x2853e0)[_0x5670e0(0x1b8)](_0x43b554['unitId'],_0x1bf49d[_0x5670e0(0x373)])?!0x1:_0x2d67c2[_0x5670e0(0x2db)](Lo)['setRule'](_0x43b554[_0x5670e0(0x39d)],_0x43b554[_0x5670e0(0x3f1)],_0x43b554[_0x5670e0(0xba)],_0x43b554[_0x5670e0(0x3f6)])},zo={'id':_0x5670e0(0x11e),'type':_0x21089e[_0x5670e0(0x323)],'handler':(_0x2e30eb,_0x1d8544)=>!_0x1d8544||!_0x2e30eb[_0x5670e0(0x2db)](_0x2853e0)[_0x5670e0(0x1b8)](_0x1d8544[_0x5670e0(0x39d)],_0x1bf49d[_0x5670e0(0x373)])?!0x1:_0x2e30eb[_0x5670e0(0x2db)](Lo)['setRules'](_0x1d8544[_0x5670e0(0x39d)],_0x1d8544['rules'])};function Bo(_0x4a438a){const _0x5c421b=_0x5670e0;let _0x15587e=_0x4a438a['now']??Date[_0x5c421b(0x2b3)](),_0x130665=_0x4a438a[_0x5c421b(0x2d7)]??_0x4a438a['id']+_0x5c421b(0x133),_0x3e7818=_0x4a438a[_0x5c421b(0x10d)]??_0x4a438a['id']+_0x5c421b(0x390),_0x1e2840=_0x4a438a[_0x5c421b(0x322)]??0x0,_0x3562b5=_0x4ab3a7(),_0x3db542={'id':_0x130665,'name':_0x4a438a[_0x5c421b(0x15f)]??_0x5c421b(0x3b0),'type':_0x4fe15f[_0x5c421b(0x3fb)],'config':{'placeholder':_0x5c421b(0x8d)}},_0x1d3649={},_0x20d1ce=[],_0x3089f6={},_0x123755={},_0x4458c0={};for(let _0x460649=0x0;_0x460649<_0x1e2840;_0x460649++){let _0x582203=_0x4a438a['id']+_0x5c421b(0x3fe)+(_0x460649+0x1);_0x1d3649[_0x582203]={'id':_0x582203,'values':{[_0x32decc]:_0x582203,..._0x4a438a[_0x5c421b(0x2d9)]?{[_0x130665]:_0x4a438a[_0x5c421b(0x2d9)]+'\x20'+(_0x460649+0x1)}:{}},'orderKey':String(_0x460649+0x1)['padStart'](0x4,'0'),'createdAt':_0x15587e,'updatedAt':_0x15587e},_0x20d1ce[_0x5c421b(0x393)](_0x582203),_0x3089f6[_0x582203]=_0x460649,_0x123755[_0x460649]=_0x582203,_0x4458c0[_0x460649]={0x0:{'v':_0x582203,'t':_0x319a08[_0x5c421b(0x13f)]}},_0x4a438a[_0x5c421b(0x2d9)]&&(_0x4458c0[_0x460649][0x1]={'v':_0x4a438a[_0x5c421b(0x2d9)]+'\x20'+(_0x460649+0x1),'t':_0x319a08['STRING']});}let _0x3bceb2={'id':_0x3e7818,'tableId':_0x4a438a['id'],'name':_0x5c421b(0x2a8),'type':_0x528e48[_0x5c421b(0x2a8)],'fieldOrder':[_0x32decc,_0x130665],'fieldSettings':{[_0x32decc]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x4a438a['id'],'name':_0x4a438a[_0x5c421b(0x26f)],'primaryFieldId':_0x130665,'fieldOrder':[_0x32decc,_0x130665],'fields':{[_0x32decc]:_0x3562b5,[_0x130665]:_0x3db542},'records':_0x1d3649,'recordOrder':_0x20d1ce,'rowIndex':_0x3089f6,'rowId':_0x123755,'colIndex':{[_0x32decc]:0x0,[_0x130665]:0x1},'colId':{0x0:_0x32decc,0x1:_0x130665},'cellData':_0x4458c0,'views':{[_0x3e7818]:_0x3bceb2},'viewOrder':[_0x3e7818]};}const Vo='UNIVER_EMBED_BASES_TABLE';function Ho(_0x4dde55){const _0x119663=_0x5670e0;let _0x402426=Bo({'id':_0x4dde55[_0x119663(0x105)],'name':_0x4dde55[_0x119663(0x26f)]??_0x4dde55[_0x119663(0x318)],'recordCount':0x0});return{..._0x402426,'resources':{..._0x402426[_0x119663(0x184)]??{},[Vo]:Go(_0x4dde55)}};}function Uo(_0x241d4b){const _0x5b0614=_0x5670e0;return{'id':Q['id'],'params':{'unitId':_0x241d4b[_0x5b0614(0x39d)],'op':_0x23944c[_0x5b0614(0xeb)][_0x5b0614(0x34f)](_0x23944c[_0x5b0614(0x3fd)](['tables',_0x241d4b['table']['id']],_0x241d4b[_0x5b0614(0x19f)]),_0x23944c[_0x5b0614(0x3fd)]([_0x5b0614(0x427),_0x241d4b[_0x5b0614(0x95)]??_0x241d4b[_0x5b0614(0x1b2)][_0x5b0614(0x427)][_0x5b0614(0x19b)]],_0x241d4b[_0x5b0614(0x19f)]['id'])),'trigger':_0x5b0614(0x107)}};}function Wo(_0x380367){const _0xe5cd4f=_0x5670e0;let _0x3a58d5=_0x380367[_0xe5cd4f(0x1b2)]['tableOrder']['indexOf'](_0x380367[_0xe5cd4f(0x1a4)]);if(!(!_0x380367[_0xe5cd4f(0x1b2)][_0xe5cd4f(0x41c)][_0x380367['tableId']]||_0x3a58d5<0x0))return{'id':Q['id'],'params':{'unitId':_0x380367[_0xe5cd4f(0x39d)],'op':_0x23944c['type'][_0xe5cd4f(0x34f)](_0x23944c[_0xe5cd4f(0x2f9)](['tables',_0x380367['tableId']],_0x380367[_0xe5cd4f(0x1b2)][_0xe5cd4f(0x41c)][_0x380367[_0xe5cd4f(0x1a4)]]),_0x23944c['removeOp']([_0xe5cd4f(0x427),_0x3a58d5],_0x380367[_0xe5cd4f(0x1a4)])),'trigger':'embed-ui'}};}function Go(_0x4fe30b){const _0x5deac3=_0x5670e0;return{'version':0x1,'embedId':_0x4fe30b[_0x5deac3(0x318)],'hostAnchorId':_0x4fe30b['hostAnchorId'],'childUnitId':_0x4fe30b[_0x5deac3(0x219)],'childType':_0x4fe30b[_0x5deac3(0x169)]};}function Ko(_0x5136c3){const _0x27af2f=_0x5670e0;let _0x33f005=Math[_0x27af2f(0x272)](0x0,Number(_0x5136c3[_0x27af2f(0xe3)]??0x0)),_0x55b7ac=_0x5136c3['useThousands']===!0x1?'0':_0x27af2f(0x229),_0x58a3dd=_0x33f005?'.'+'0'['repeat'](_0x33f005):'',_0x1088a8=Jo(_0x5136c3[_0x27af2f(0x22c)]);return''+(_0x5136c3[_0x27af2f(0x3c0)]?Yo(_0x5136c3[_0x27af2f(0x3c0)]):'')+_0x55b7ac+_0x58a3dd+_0x1088a8;}function qo(_0x14014c,_0x1298fb){const _0x2c2851=_0x5670e0;let _0x30971d=Ko(_0x1298fb),_0x57b826=_0x1f324e[_0x2c2851(0x2b6)](_0x30971d,_0x14014c,{'throws':!0x1});return Xo(String(_0x57b826),_0x1298fb['separatorStyle'],_0x1298fb[_0x2c2851(0x301)]);}function Jo(_0x113b48){const _0x4ef737=_0x5670e0;return _0x113b48==='K'?',\x22K\x22':_0x113b48==='M'?_0x4ef737(0x2ec):_0x113b48==='B'?',,,\x22B\x22':'';}function Yo(_0x362856){const _0x1ff7ac=_0x5670e0;return/^[A-Z]+$/i[_0x1ff7ac(0x106)](_0x362856)?'\x22'+_0x362856+'\x22':_0x362856;}function Xo(_0x279522,_0x5f1408,_0x4a7d35){const _0x541ef1=_0x5670e0;let _0x5d910b=_0x5f1408===_0x541ef1(0x31b)?Zo(_0x4a7d35):_0x5f1408;return _0x5d910b===_0x541ef1(0x304)?_0x279522['replace'](/,/g,'\x00')[_0x541ef1(0xf2)](/\./g,',')['replace'](/\0/g,'.'):_0x5d910b===_0x541ef1(0x383)?_0x279522[_0x541ef1(0xf2)](/,/g,'\x20')[_0x541ef1(0xf2)](/\./g,','):_0x5d910b==='spacePeriod'?_0x279522['replace'](/,/g,'\x20'):_0x279522;}function Zo(_0x4ae02f){const _0xe0c318=_0x5670e0;var _0x27e6e5,_0x340843;let _0x2e2568=_0x4ae02f||new Intl[(_0xe0c318(0x2e7))]()[_0xe0c318(0x362)]()[_0xe0c318(0x301)],_0x3df381;try{_0x3df381=new Intl[(_0xe0c318(0x2e7))](_0x2e2568,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0xe0c318(0x369)](0xf4240);}catch{return _0xe0c318(0x420);}let _0xd0c0f4=(_0x27e6e5=_0x3df381['find'](_0x3ac491=>_0x3ac491[_0xe0c318(0xeb)]===_0xe0c318(0x3dd)))==null?void 0x0:_0x27e6e5[_0xe0c318(0x38a)],_0x37d554=(_0x340843=_0x3df381[_0xe0c318(0x361)](_0x297068=>_0x297068[_0xe0c318(0xeb)]===_0xe0c318(0xbd)))==null?void 0x0:_0x340843[_0xe0c318(0x38a)],_0x22b9a4=_0xd0c0f4==='\u00a0'||_0xd0c0f4==='\u202f'?'\x20':_0xd0c0f4;return _0x22b9a4==='.'&&_0x37d554===','?_0xe0c318(0x304):_0x22b9a4==='\x20'&&_0x37d554===','?_0xe0c318(0x383):_0x22b9a4==='\x20'&&_0x37d554==='.'?_0xe0c318(0x145):_0xe0c318(0x420);}function Qo(_0x17c452,_0x1e6ea4){const _0x424b73=_0x5670e0;let _0xc5a7b0=_0x1e6ea4&&typeof _0x1e6ea4==_0x424b73(0x360)&&!Array[_0x424b73(0x99)](_0x1e6ea4)?_0x1e6ea4:{},_0x352d8a=$o(_0xc5a7b0[_0x424b73(0xe3)],0x0,0x2,0x0),_0x354fd2=_0x17c452[_0x424b73(0x3a2)](_0x352d8a);return _0xc5a7b0[_0x424b73(0x2b6)]===_0x424b73(0x174)?_0x354fd2:_0x354fd2+'%';}function $o(_0x20b5e7,_0x381b57,_0x43e73f,_0x1c94f0){const _0x420a18=_0x5670e0;if(_0x20b5e7==null||_0x20b5e7==='')return _0x1c94f0;let _0x20c855=typeof _0x20b5e7==_0x420a18(0x174)?_0x20b5e7:Number(_0x20b5e7);return Number['isFinite'](_0x20c855)?Math[_0x420a18(0x272)](_0x381b57,Math[_0x420a18(0x3a1)](_0x43e73f,Math[_0x420a18(0x217)](_0x20c855))):_0x1c94f0;}const es=['count',_0x5670e0(0x14a),_0x5670e0(0x396),_0x5670e0(0x38d),_0x5670e0(0x17e),_0x5670e0(0x2b5),'min',_0x5670e0(0x272)],ts=[_0x5670e0(0x282),_0x5670e0(0x14a),_0x5670e0(0x396),'unique'],ns=[_0x5670e0(0x17e),_0x5670e0(0x2b5),_0x5670e0(0x3a1),_0x5670e0(0x272)],rs=[_0x5670e0(0x3a1),_0x5670e0(0x272)],is=new Set([_0x4fe15f[_0x5670e0(0x27d)],_0x4fe15f[_0x5670e0(0x115)],_0x4fe15f['Progress'],_0x4fe15f['Rating']]),as=new Set([_0x4fe15f[_0x5670e0(0x8b)],_0x4fe15f[_0x5670e0(0x36c)],_0x4fe15f[_0x5670e0(0x29d)]]),os=_0x5670e0(0xc4);function ss(_0x54939b){const _0x174463=_0x5670e0;return typeof _0x54939b==_0x174463(0x2dc)&&es['includes'](_0x54939b);}function cs(_0x576968){const _0x1e3a6e=_0x5670e0;return!_0x576968||typeof _0x576968!=_0x1e3a6e(0x360)?{}:Object['fromEntries'](Object[_0x1e3a6e(0x419)](_0x576968)['filter'](_0x2bd5de=>ss(_0x2bd5de[0x1])));}function ls(_0x4d7454){const _0x48849f=_0x5670e0;return is['has'](_0x4d7454['type'])?[...ts,...ns]:_0x4d7454[_0x48849f(0xeb)]===_0x4fe15f[_0x48849f(0x3a5)]?[...ts,...ws(_0x4d7454)===_0x48849f(0x3d3)?rs:ns]:ts;}function us(_0x4600cf,_0x249eff){const _0x523df9=_0x5670e0;return ls(_0x4600cf)[_0x523df9(0x173)](_0x249eff);}function ds(_0x260ceb,_0x3daabb,_0x34159b){const _0x3969dd=_0x5670e0;if(!us(_0x260ceb,_0x34159b))return null;let _0x4c450d=_0x3daabb[_0x3969dd(0x364)](_0x28a445=>!ps(_0x260ceb,_0x28a445));switch(_0x34159b){case _0x3969dd(0x282):return _0x3daabb['length'];case'filled':return _0x4c450d[_0x3969dd(0x19b)];case _0x3969dd(0x396):return _0x3daabb[_0x3969dd(0x19b)]-_0x4c450d[_0x3969dd(0x19b)];case'unique':return new Set(_0x4c450d[_0x3969dd(0x102)](_0x5cec91=>_s(_0x260ceb,_0x5cec91)))[_0x3969dd(0x268)];case _0x3969dd(0x17e):{let _0x58fea7=ms(_0x260ceb,_0x4c450d);return _0x58fea7['length']?gs(_0x58fea7):null;}case _0x3969dd(0x2b5):{let _0x2739c9=ms(_0x260ceb,_0x4c450d);return _0x2739c9[_0x3969dd(0x19b)]?gs(_0x2739c9)/_0x2739c9[_0x3969dd(0x19b)]:null;}case _0x3969dd(0x3a1):{let _0x193247=ms(_0x260ceb,_0x4c450d);return _0x193247['length']?Math[_0x3969dd(0x3a1)](..._0x193247):null;}case _0x3969dd(0x272):{let _0x47b3c4=ms(_0x260ceb,_0x4c450d);return _0x47b3c4[_0x3969dd(0x19b)]?Math[_0x3969dd(0x272)](..._0x47b3c4):null;}}}function fs(_0x25028b,_0x12a636,_0x163267){const _0x4be5ac=_0x5670e0;if(_0x163267==null||!Number[_0x4be5ac(0x154)](_0x163267))return'-';if(ts[_0x4be5ac(0x173)](_0x12a636))return String(_0x163267);switch(_0x25028b[_0x4be5ac(0xeb)]){case _0x4fe15f[_0x4be5ac(0x27d)]:return qo(_0x163267,xs(_0x25028b));case _0x4fe15f['Currency']:return qo(_0x163267,Ss(_0x25028b));case _0x4fe15f[_0x4be5ac(0x2b0)]:return Qo(_0x163267,_0x25028b['config']);case _0x4fe15f[_0x4be5ac(0x3a5)]:return Cs(_0x163267,_0x25028b);default:return Es(_0x163267);}}function ps(_0x423e7f,_0x40cc0b){const _0x172f4d=_0x5670e0;if(_0x40cc0b==null)return!0x0;if(typeof _0x40cc0b==_0x172f4d(0x2dc))return _0x40cc0b[_0x172f4d(0x12d)]()==='';if(Array[_0x172f4d(0x99)](_0x40cc0b))return _0x423e7f['type']===_0x4fe15f[_0x172f4d(0x134)]?!_0x40cc0b['some'](bs):_0x40cc0b[_0x172f4d(0x19b)]===0x0;if(_0x423e7f['type']===_0x4fe15f[_0x172f4d(0x399)]&&typeof _0x40cc0b=='object'){let _0xdf6005=_0x40cc0b;return[_0xdf6005[_0x172f4d(0x277)],_0xdf6005['url']][_0x172f4d(0x3f9)](_0x2fe2ea=>_0x2fe2ea==null||String(_0x2fe2ea)[_0x172f4d(0x12d)]()==='');}return!0x1;}function ms(_0x5af7d3,_0x49e70b){const _0x2c9eb8=_0x5670e0;let _0x2507cd=[];for(let _0x500794 of _0x49e70b){let _0x166a98=hs(_0x5af7d3,_0x500794);_0x166a98!=null&&_0x2507cd[_0x2c9eb8(0x393)](_0x166a98);}return _0x2507cd;}function hs(_0x419dfb,_0x49d40e){const _0x53fb35=_0x5670e0;if(typeof _0x49d40e==_0x53fb35(0x174))return Number['isFinite'](_0x49d40e)?_0x49d40e:null;if(_0x419dfb[_0x53fb35(0xeb)]!==_0x4fe15f[_0x53fb35(0x3a5)]&&typeof _0x49d40e=='string'&&_0x49d40e[_0x53fb35(0x12d)]()!==''){let _0x38c908=Number(_0x49d40e);return Number[_0x53fb35(0x154)](_0x38c908)?_0x38c908:null;}return null;}function gs(_0x2248bf){const _0x1d0fe=_0x5670e0;let _0x31cd10=0x0,_0x35b481=0x0;for(let _0x2e759c of _0x2248bf){let _0x595d83=_0x31cd10+_0x2e759c;_0x35b481+=Math[_0x1d0fe(0x3b7)](_0x31cd10)>=Math['abs'](_0x2e759c)?_0x31cd10-_0x595d83+_0x2e759c:_0x2e759c-_0x595d83+_0x31cd10,_0x31cd10=_0x595d83;}return _0x31cd10+_0x35b481;}function _s(_0x3d3fbb,_0x5cfdae){const _0xc04ac3=_0x5670e0;return as[_0xc04ac3(0xb9)](_0x3d3fbb[_0xc04ac3(0xeb)])&&Array['isArray'](_0x5cfdae)?ys([...new Set(_0x5cfdae[_0xc04ac3(0x102)](_0x5e95a5=>ys(vs(_0x5e95a5))))]['sort']()):ys(vs(_0x5cfdae));}function vs(_0xf05cc5){const _0x5197e5=_0x5670e0;return Array[_0x5197e5(0x99)](_0xf05cc5)?_0xf05cc5[_0x5197e5(0x102)](vs):_0xf05cc5&&typeof _0xf05cc5==_0x5197e5(0x360)?Object['fromEntries'](Object[_0x5197e5(0x419)](_0xf05cc5)[_0x5197e5(0x249)](([_0x561b7c],[_0x65687f])=>_0x561b7c[_0x5197e5(0x135)](_0x65687f))[_0x5197e5(0x102)](([_0x3e430f,_0x3f0c62])=>[_0x3e430f,vs(_0x3f0c62)])):_0xf05cc5;}function ys(_0x1d095e){const _0x1d3315=_0x5670e0;return JSON[_0x1d3315(0x1a0)](_0x1d095e)??_0x1d3315(0x1fa);}function bs(_0x280d43){const _0x2f4610=_0x5670e0;if(typeof _0x280d43==_0x2f4610(0x2dc))return _0x280d43[_0x2f4610(0x12d)]()!=='';if(!_0x280d43||typeof _0x280d43!=_0x2f4610(0x360))return!0x1;let _0x19cc65=_0x280d43;return[_0x19cc65['id'],_0x19cc65[_0x2f4610(0x26f)],_0x19cc65[_0x2f4610(0x2d6)],_0x19cc65[_0x2f4610(0x33c)],_0x19cc65[_0x2f4610(0x3bb)]]['some'](_0x3da93e=>_0x3da93e!=null&&String(_0x3da93e)[_0x2f4610(0x12d)]()!=='');}function xs(_0x15d435){const _0x117d07=_0x5670e0;let _0x2ce054=Ds(_0x15d435[_0x117d07(0x407)]);return{'decimalPlaces':ks(_0x2ce054['decimalPlaces'],0x0,0x14,0x2),'separatorStyle':typeof _0x2ce054[_0x117d07(0xcc)]==_0x117d07(0x2dc)?_0x2ce054['separatorStyle']:_0x117d07(0x31b),'locale':typeof _0x2ce054[_0x117d07(0x301)]=='string'?_0x2ce054[_0x117d07(0x301)]:void 0x0,'useThousands':_0x2ce054[_0x117d07(0xef)]!==!0x1,'abbreviation':typeof _0x2ce054[_0x117d07(0x22c)]==_0x117d07(0x2dc)?_0x2ce054[_0x117d07(0x22c)]:_0x117d07(0x331)};}function Ss(_0xabd7d3){const _0x572604=_0x5670e0;let _0x37f99f=Ds(_0xabd7d3[_0x572604(0x407)]);return{...xs(_0xabd7d3),'currencySymbol':String(_0x37f99f[_0x572604(0x3c0)]??'$')};}function Cs(_0x3b7885,_0x3fa9f0){const _0x50d17b=_0x5670e0;let _0x355439=Ts(_0x3fa9f0);if(_0x355439===os)return Es(_0x3b7885);try{return String(_0x1f324e[_0x50d17b(0x2b6)](_0x355439,_0x3b7885,{'throws':!0x1}));}catch{return Es(_0x3b7885);}}function ws(_0x21d76a){const _0x5562f2=_0x5670e0;let _0x49d306=Ds(Ds(_0x21d76a[_0x5562f2(0x407)])[_0x5562f2(0x1c6)]);return typeof _0x49d306['type']==_0x5562f2(0x2dc)?_0x49d306[_0x5562f2(0xeb)]:_0x5562f2(0x3f8);}function Ts(_0x223177){const _0x2faac1=_0x5670e0;let _0x262d50=Ds(Ds(_0x223177['config'])[_0x2faac1(0x1c6)]);return String(_0x262d50['pattern']??os)['trim']()||os;}function Es(_0x51d5d1){const _0x1ccddd=_0x5670e0;return String(Number[_0x1ccddd(0x276)](_0x51d5d1)?_0x51d5d1:Math[_0x1ccddd(0x217)]((_0x51d5d1+0x2**-0x34)*0x64)/0x64);}function Ds(_0x578c71){const _0x4c787a=_0x5670e0;return _0x578c71&&typeof _0x578c71==_0x4c787a(0x360)&&!Array[_0x4c787a(0x99)](_0x578c71)?_0x578c71:{};}function Os(_0x51868f){const _0x3a9684=_0x5670e0;if(_0x51868f==null||_0x51868f==='')return null;let _0x4c198c=typeof _0x51868f==_0x3a9684(0x174)?_0x51868f:Number(_0x51868f);return Number[_0x3a9684(0x154)](_0x4c198c)?_0x4c198c:null;}function ks(_0x184d22,_0x363cd3,_0x30ad79,_0x4fe169){const _0x143d26=_0x5670e0;let _0xc32777=Os(_0x184d22);return _0xc32777==null?_0x4fe169:Math[_0x143d26(0x272)](_0x363cd3,Math['min'](_0x30ad79,Math[_0x143d26(0x217)](_0xc32777)));}function As(_0x17b03e,_0x5b0253){const _0x499c03=_0x5670e0;let _0x45fae9=_0x4bf94a[_0x499c03(0x343)](_0x17b03e),_0x468ca8=_0x5b0253[_0x499c03(0x2a3)]===!0x0,_0x195a38=new Map(),_0x6fa038=_0x5b0253[_0x499c03(0x3d2)]??(()=>_0x499c03(0x428)+_0xeb2e0b(0x8)),_0x4fbc58=_0x45fae9[_0x499c03(0x139)];return _0x5b0253[_0x499c03(0x11b)]&&(_0x4fbc58=_0x45fae9['viewOrder']['map'](_0x25edf5=>{const _0x1a5219=_0x499c03;let _0x558c0e=_0x6fa038();return _0x195a38[_0x1a5219(0x2b8)](_0x25edf5,_0x558c0e),_0x558c0e;})),{..._0x45fae9,'id':_0x5b0253['id'],'name':_0x5b0253[_0x499c03(0x26f)],'records':_0x468ca8?_0x45fae9[_0x499c03(0x83)]:{},'recordOrder':_0x468ca8?_0x45fae9[_0x499c03(0x411)]:[],'rowIndex':_0x468ca8?_0x45fae9[_0x499c03(0x250)]:{},'rowId':_0x468ca8?_0x45fae9[_0x499c03(0x2ea)]:{},'cellData':_0x468ca8?_0x45fae9['cellData']:{},'resources':_0x468ca8?_0x45fae9[_0x499c03(0x184)]:{},'viewOrder':_0x4fbc58,'views':Object['fromEntries'](Object['entries'](_0x45fae9[_0x499c03(0x21f)]??{})[_0x499c03(0x102)](([_0x191e0f,_0x4fa9b2])=>{const _0x2c101a=_0x499c03;let _0x2218f8=_0x195a38[_0x2c101a(0x2db)](_0x191e0f)??(_0x5b0253[_0x2c101a(0x11b)]?_0x6fa038():_0x191e0f);return[_0x2218f8,{..._0x4fa9b2,'id':_0x2218f8,'tableId':_0x5b0253['id']}];}))};}var js=_0x5670e0(0x1d6),Ms='1.3.0';const Ns={},Ps={};function Fs(_0x10124b){const _0x3eafc1=_0x5670e0;return new z()[_0x3eafc1(0x23a)](_0x10124b);}function Is(_0x20e0e6){const _0xea3021=_0x5670e0;return _0x20e0e6['patches'][_0xea3021(0x102)](_0x7e3855=>({'unitId':_0x20e0e6[_0xea3021(0x39d)],'sheetId':_0x20e0e6[_0xea3021(0x1a4)],'range':{'startRow':_0x7e3855[_0xea3021(0x24b)],'endRow':_0x7e3855[_0xea3021(0x24b)],'startColumn':_0x7e3855[_0xea3021(0x324)],'endColumn':_0x7e3855['col']}}));}function Ls(_0x381100,_0x2ea56b){const _0x196a35=_0x5670e0;return{[_0x381100]:Object[_0x196a35(0x3a7)](_0x2ea56b['map'](_0x5ea6fe=>[_0x5ea6fe,'1']))};}let Rs=class extends _0x29abb3{constructor(_0x494456,_0xbca396){const _0x1d8fcb=_0x5670e0;super(),this[_0x1d8fcb(0x39f)]=_0x494456,this[_0x1d8fcb(0xee)]=_0xbca396,this[_0x1d8fcb(0x2e1)]();}[_0x5670e0(0x2e1)](){const _0x158d46=_0x5670e0;this['_activeDirtyManagerService']['register'](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x486fa6=>this['_getJson1DirtyData'](_0x486fa6[_0x158d46(0x149)])}),this[_0x158d46(0xe6)](_0x1abac0(()=>{const _0x494241=_0x158d46;this[_0x494241(0x39f)][_0x494241(0x366)](Q['id']);}));}['_getTable'](_0x4f0264,_0x7d3a73){const _0x4c12ed=_0x5670e0;let _0x334903=this['_univerInstanceService'][_0x4c12ed(0x1b8)](_0x4f0264,_0x1bf49d[_0x4c12ed(0x373)]);return(_0x334903==null?void 0x0:_0x334903['getSnapshot']()[_0x4c12ed(0x41c)][_0x7d3a73])??null;}[_0x5670e0(0x20e)](_0x437176){const _0x1c1398=_0x5670e0;if(_0x437176[_0x1c1398(0x280)]===_0x1c1398(0x308))return{};if(!_0x437176[_0x1c1398(0x39d)]||!_0x437176['op'])return{'clearDependencyTreeCache':this[_0x1c1398(0x19c)](),'forceCalculation':!0x0};let _0x24d250=Fs(_0x437176['op']),_0x4f50c3=this[_0x1c1398(0x86)](_0x437176[_0x1c1398(0x39d)],_0x24d250);if(_0x4f50c3['length'])return{'clearDependencyTreeCache':Ls(_0x437176[_0x1c1398(0x39d)],_0x4f50c3),'forceCalculation':!0x0};let _0x45c8fe=Object[_0x1c1398(0x419)](this[_0x1c1398(0xdd)](_0x437176['unitId'],_0x24d250))[_0x1c1398(0x98)](([_0x1a06ba,_0x55cf6d])=>Is({'unitId':_0x437176[_0x1c1398(0x39d)],'tableId':_0x1a06ba,'patches':_0x55cf6d}));return _0x45c8fe[_0x1c1398(0x19b)]?{'dirtyRanges':_0x45c8fe}:{};}[_0x5670e0(0x86)](_0x233442,_0x30bab1){const _0xe6530a=_0x5670e0;let _0x4c0267=_0x30bab1['filter'](_0x4acaf1=>_0x4acaf1[_0xe6530a(0x37a)]!==_0xe6530a(0x96))['flatMap'](_0x5ca88d=>_0x5ca88d[_0xe6530a(0x1a4)]?[_0x5ca88d[_0xe6530a(0x1a4)]]:this[_0xe6530a(0xf0)](_0x233442));return Array[_0xe6530a(0x162)](new Set(_0x4c0267));}['_groupCellInvalidations'](_0x4ca8a8,_0x35d4f9){const _0x15fc08=_0x5670e0;let _0x4b0a7a=new Set();return _0x35d4f9[_0x15fc08(0x303)]((_0x920473,_0x59937a)=>{const _0xa35f16=_0x15fc08;let _0x5d58bb=this[_0xa35f16(0xd9)](_0x4ca8a8,_0x59937a);if(!_0x5d58bb)return _0x920473;let _0x5d8cbb=_0x59937a['tableId']+':'+_0x5d58bb[_0xa35f16(0x24b)]+':'+_0x5d58bb['col'];return _0x4b0a7a['has'](_0x5d8cbb)||(_0x4b0a7a[_0xa35f16(0x41d)](_0x5d8cbb),_0x920473[_0x59937a['tableId']]=_0x920473[_0x59937a['tableId']]??[],_0x920473[_0x59937a[_0xa35f16(0x1a4)]][_0xa35f16(0x393)](_0x5d58bb)),_0x920473;},{});}[_0x5670e0(0xd9)](_0x19f5e3,_0x490170){const _0x3fef40=_0x5670e0;if(_0x490170['reason']!=='cell')return null;if(_0x490170[_0x3fef40(0x24b)]!=null&&_0x490170['column']!=null)return{'row':_0x490170[_0x3fef40(0x24b)],'col':_0x490170[_0x3fef40(0x3fc)],'value':null};if(!_0x490170[_0x3fef40(0x191)]||!_0x490170['fieldId'])return null;let _0x5ace9a=this[_0x3fef40(0x19d)](_0x19f5e3,_0x490170[_0x3fef40(0x1a4)]);if(!_0x5ace9a)return null;let _0x409b88=_t(_0x5ace9a,_0x490170['recordId'],_0x490170['fieldId']);return _0x409b88?{'row':_0x409b88['row'],'col':_0x409b88[_0x3fef40(0x324)],'value':null}:null;}[_0x5670e0(0xf0)](_0x3f1846){const _0x179bfc=_0x5670e0;let _0x533409=this[_0x179bfc(0xee)][_0x179bfc(0x1b8)](_0x3f1846,_0x1bf49d[_0x179bfc(0x373)]);return Object[_0x179bfc(0x1c8)]((_0x533409==null?void 0x0:_0x533409[_0x179bfc(0x1ec)]()[_0x179bfc(0x41c)])??{})['map'](_0x2ff31a=>_0x2ff31a['id']);}[_0x5670e0(0x19c)](){const _0x21b84c=_0x5670e0;let _0x557176=this[_0x21b84c(0xee)]['getAllUnitsForType'](_0x1bf49d[_0x21b84c(0x373)])[_0x21b84c(0x102)](_0x33c084=>Ls(_0x33c084['getUnitId'](),Object[_0x21b84c(0x3ac)](_0x33c084[_0x21b84c(0x1ec)]()[_0x21b84c(0x41c)])));return Object[_0x21b84c(0x200)]({},..._0x557176);}};Rs=X([Y(0x0,_0x132141),Y(0x1,_0x2853e0)],Rs);let zs=class extends _0x29abb3{constructor(_0x563b4e,_0x41e6a5,_0x328086,_0x5d700b){const _0x127027=_0x5670e0;super(),this['_commandService']=_0x563b4e,this['_univerInstanceService']=_0x41e6a5,this[_0x127027(0x2c6)]=_0x328086,this[_0x127027(0x2ed)]=_0x5d700b,G(this,'_formulaService',new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,_0x127027(0x124),new Set()),G(this,'_formulaSyncQueue',Promise[_0x127027(0xd6)]()),G(this,'_applyingFormulaResults',!0x1),this[_0x127027(0x2e1)]();}[_0x5670e0(0x2e1)](){const _0x2ed154=_0x5670e0;this[_0x2ed154(0xee)][_0x2ed154(0x2aa)](_0x1bf49d[_0x2ed154(0x373)])[_0x2ed154(0x143)](_0x4b25b6=>{this['_scheduleSuperTableSync'](_0x4b25b6);}),this['disposeWithMe'](this[_0x2ed154(0xee)][_0x2ed154(0xb0)](_0x1bf49d['UNIVER_BASE'])[_0x2ed154(0x3f0)](({unit:_0x4c99a9})=>{const _0x1a9a44=_0x2ed154;this[_0x1a9a44(0x433)](_0x4c99a9);})),this['disposeWithMe'](this[_0x2ed154(0xee)][_0x2ed154(0x3e5)](_0x1bf49d['UNIVER_BASE'])['subscribe'](_0x138da5=>{const _0x52d286=_0x2ed154;this[_0x52d286(0x1f0)](()=>this[_0x52d286(0x148)](_0x138da5[_0x52d286(0x2a0)]()));})),this[_0x2ed154(0xe6)](this[_0x2ed154(0x1ba)][_0x2ed154(0x3b1)](_0x21683b=>this[_0x2ed154(0x1f4)](_0x21683b)));}[_0x5670e0(0x1f4)](_0x3a6f48){const _0x4c602e=_0x5670e0;if(_0x3a6f48['id']===_0x5c34ce['id']){Vs(_0x3a6f48[_0x4c602e(0x149)])&&this['_applyFormulaResult'](_0x3a6f48[_0x4c602e(0x149)]);return;}if(this[_0x4c602e(0x384)]||_0x3a6f48['id']!==Q['id'])return;let _0x202929=Bs(_0x3a6f48[_0x4c602e(0x149)])?_0x3a6f48['params']:void 0x0,_0x50e71b=_0x202929!=null&&_0x202929[_0x4c602e(0x39d)]?[this['_univerInstanceService'][_0x4c602e(0x1b8)](_0x202929[_0x4c602e(0x39d)],_0x1bf49d[_0x4c602e(0x373)])][_0x4c602e(0x364)](_0x5c227e=>!!_0x5c227e):this[_0x4c602e(0xee)]['getAllUnitsForType'](_0x1bf49d[_0x4c602e(0x373)]),_0x5264ea=_0x202929==null?void 0x0:_0x202929['op'];_0x50e71b['forEach'](_0x4110c2=>{const _0x2b9fa5=_0x4c602e;let _0x48f1b2=_0x5264ea?Fs(_0x5264ea):[];(!_0x5264ea||_0x48f1b2[_0x2b9fa5(0x1c1)](_0x59aaf6=>_0x59aaf6['reason']!=='cell'))&&this['_scheduleSuperTableSync'](_0x4110c2);});}[_0x5670e0(0x433)](_0x1232b7){const _0x509c80=_0x5670e0;let _0x45d434=_0x1232b7['getUnitId']();this['_scheduledSuperTableSyncs'][_0x509c80(0xb9)](_0x45d434)||(this[_0x509c80(0x124)]['add'](_0x45d434),this[_0x509c80(0x1f0)](async()=>{const _0x1dc85=_0x509c80;this[_0x1dc85(0x124)][_0x1dc85(0x15e)](_0x45d434),await this[_0x1dc85(0x12a)](_0x1232b7);}));}async[_0x5670e0(0x12a)](_0x2b393d){const _0x409831=_0x5670e0;let _0x1a4e47=_0x2b393d[_0x409831(0x2a0)](),_0x2a3abe=this['_formulaService'][_0x409831(0x431)](_0x2b393d[_0x409831(0x1ec)]()),_0x34436a=new Set(_0x2a3abe[_0x409831(0x102)](({tableName:_0x17ba8e})=>_0x17ba8e)),_0xa5a2df=this[_0x409831(0x3cb)][_0x409831(0x2db)](_0x1a4e47)??new Set();for(let _0x59bda3 of _0xa5a2df)if(!_0x34436a[_0x409831(0xb9)](_0x59bda3)&&!await this[_0x409831(0x40e)](_0x43e1b6['id'],{'unitId':_0x1a4e47,'tableName':_0x59bda3}))return;for(let {tableName:_0x45afb5,reference:_0x57f5ac}of _0x2a3abe)if(!await this[_0x409831(0x40e)](_0x12cd84['id'],{'unitId':_0x1a4e47,'tableName':_0x45afb5,'reference':_0x57f5ac}))return;this['_registeredSuperTableNames'][_0x409831(0x2b8)](_0x1a4e47,_0x34436a);}async[_0x5670e0(0x148)](_0x264a9b){const _0x30b7a1=_0x5670e0;let _0xcb4834=this[_0x30b7a1(0x3cb)][_0x30b7a1(0x2db)](_0x264a9b)??new Set();for(let _0x5a5c1e of _0xcb4834)if(!await this['_executeSuperTableMutationWhileActive'](_0x43e1b6['id'],{'unitId':_0x264a9b,'tableName':_0x5a5c1e}))return;this[_0x30b7a1(0x3cb)][_0x30b7a1(0x15e)](_0x264a9b);}async[_0x5670e0(0x40e)](_0x182c43,_0x17cf3c){const _0x55bd1a=_0x5670e0;return!this[_0x55bd1a(0x223)]&&await this[_0x55bd1a(0x1ba)][_0x55bd1a(0x2c1)](_0x182c43,_0x17cf3c,{'onlyLocal':!0x0})&&!this[_0x55bd1a(0x223)];}['_enqueueFormulaSync'](_0x6e023a){const _0x1afe17=_0x5670e0;this[_0x1afe17(0x337)]=this[_0x1afe17(0x337)][_0x1afe17(0x201)](_0x6e023a,_0x6e023a)['catch'](()=>void 0x0);}[_0x5670e0(0x1d9)](_0x226c84){const _0x4bc659=_0x5670e0;let _0x1bdfdc=this['_univerInstanceService']['getAllUnitsForType'](_0x1bf49d['UNIVER_BASE']);if(!_0x1bdfdc['some'](_0x249c9f=>{const _0x5dea36=_0x4f53;var _0x53e8ff;return((_0x53e8ff=_0x226c84[_0x5dea36(0xab)])==null?void 0x0:_0x53e8ff[_0x249c9f['getUnitId']()])!=null;}))return;let _0x4d800f=_0x1bdfdc[_0x4bc659(0x98)](_0x5be9d3=>Zi(_0x5be9d3['getSnapshot'](),_0x226c84));if(!_0x4d800f[_0x4bc659(0x19b)]){this[_0x4bc659(0x2ed)][_0x4bc659(0x3d4)](_0x30a4a7[_0x4bc659(0x14c)],_0x226c84);return;}let _0x3eb01a=new W(),_0x3bb736=_0x4d800f['flatMap'](_0x5db34c=>Is({'unitId':_0x5db34c[_0x4bc659(0x39d)],'tableId':_0x5db34c[_0x4bc659(0x1a4)],'patches':_0x5db34c[_0x4bc659(0x3c2)]}));this[_0x4bc659(0x384)]=!0x0,(async()=>{const _0x42c354=_0x4bc659;for(let _0xf78ff0 of _0x4d800f){let _0x43d4f6=this['_univerInstanceService'][_0x42c354(0x1b8)](_0xf78ff0[_0x42c354(0x39d)],_0x1bf49d[_0x42c354(0x373)]);_0x43d4f6&&await this[_0x42c354(0x1ba)]['executeCommand'](Q['id'],{'unitId':_0xf78ff0['unitId'],'op':_0x3eb01a[_0x42c354(0x38b)](_0x43d4f6['getSnapshot'](),_0xf78ff0[_0x42c354(0x1a4)],_0xf78ff0[_0x42c354(0x3c2)]),'trigger':_0x5c34ce['id']},{'onlyLocal':!0x0});}await this['_commandService']['executeCommand'](_0x30cec2['id'],{'dirtyRanges':_0x3bb736},{'onlyLocal':!0x0});})()[_0x4bc659(0x15c)](()=>{const _0x500cab=_0x4bc659;this[_0x500cab(0x384)]=!0x1,this[_0x500cab(0x2ed)]['markResultApplied'](_0x30a4a7[_0x500cab(0x14c)],_0x226c84);});}};zs=X([Y(0x0,_0x228e7e),Y(0x1,_0x2853e0),Y(0x2,_0x72259(_0x3ffd23)),Y(0x3,_0x72259(_0x59542a))],zs);function Bs(_0x402750){const _0x480ea0=_0x5670e0;return typeof _0x402750=='object'&&!!_0x402750&&_0x480ea0(0x39d)in _0x402750&&typeof _0x402750[_0x480ea0(0x39d)]==_0x480ea0(0x2dc)&&'op'in _0x402750&&Array[_0x480ea0(0x99)](_0x402750['op']);}function Vs(_0x3cc3c8){const _0x1639f6=_0x5670e0;return typeof _0x3cc3c8==_0x1639f6(0x360)&&!!_0x3cc3c8&&_0x1639f6(0xab)in _0x3cc3c8&&_0x1639f6(0x9a)in _0x3cc3c8;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x29abb3{constructor(_0x1c3d55,_0x3a7a67,_0xb70e2f,_0x4fa2f7){const _0x41d3d4=_0x5670e0;super(),this['_injector']=_0x1c3d55,this[_0x41d3d4(0x1ba)]=_0x3a7a67,this[_0x41d3d4(0x312)]=_0xb70e2f,this[_0x41d3d4(0xaf)]=_0x4fa2f7,this[_0x41d3d4(0xaf)][_0x41d3d4(0x2aa)](_0x1bf49d[_0x41d3d4(0x373)])[_0x41d3d4(0x143)](_0x3f91ba=>this['_registerUnitPermissionPoints'](_0x3f91ba['getUnitId']())),this['disposeWithMe'](this['_instanceService']['getTypeOfUnitAdded$'](_0x1bf49d['UNIVER_BASE'])['subscribe'](({unit:_0x436fb2})=>this[_0x41d3d4(0x34e)](_0x436fb2[_0x41d3d4(0x2a0)]()))),this[_0x41d3d4(0xe6)](this[_0x41d3d4(0x1ba)][_0x41d3d4(0x291)]((_0x120fd2,_0x4db5dc)=>this[_0x41d3d4(0x126)](_0x120fd2,_0x4db5dc))),this[_0x41d3d4(0xe6)](this[_0x41d3d4(0xaf)][_0x41d3d4(0x3e5)](_0x1bf49d['UNIVER_BASE'])[_0x41d3d4(0x3f0)](_0x420b68=>{const _0x20cf95=_0x41d3d4;this[_0x20cf95(0x430)][_0x20cf95(0x2db)](_0x33f458)[_0x20cf95(0x161)](_0x420b68[_0x20cf95(0x2a0)]()),Rr(this[_0x20cf95(0x312)],_0x420b68[_0x20cf95(0x2a0)]());}));}[_0x5670e0(0x34e)](_0x1d4d27){const _0x537fbb=_0x5670e0;Tr[_0x537fbb(0x143)](_0x5bcc3d=>{const _0x14669d=_0x537fbb;let _0x1d5c6d=Pr(_0x1d4d27,_0x1d4d27,_0x5bcc3d);this[_0x14669d(0x312)][_0x14669d(0x34a)](_0x1d5c6d['id'])||this['_permissionService']['addPermissionPoint'](_0x1d5c6d);}),this[_0x537fbb(0x430)][_0x537fbb(0x2db)](_0x33f458)[_0x537fbb(0x16d)]({'unitId':_0x1d4d27,'objectId':_0x1d4d27,'objectType':_0x2d9d6e[_0x537fbb(0x129)]});}[_0x5670e0(0x126)](_0x5ac523,_0x5d1653){const _0x435964=_0x5670e0;var _0x495938;if(_0x5d1653!=null&&_0x5d1653['fromCollab']||_0x5d1653!=null&&_0x5d1653[_0x435964(0x418)])return;let _0x162196=tc(_0x5ac523[_0x435964(0x149)])?_0x5ac523[_0x435964(0x149)]:void 0x0;if(_0x5d1653!=null&&_0x5d1653[_0x435964(0x13b)]&&_0x5ac523['id']==='base.mutation.apply-base-json1'&&(_0x162196==null?void 0x0:_0x162196[_0x435964(0x280)])===_0x5c34ce['id'])return;let _0x17fb06=Gs(_0x5ac523['id']),_0x1c4da7=Ws(_0x162196==null?void 0x0:_0x162196[_0x435964(0x39d)],_0x5d1653)??(_0x17fb06?(_0x495938=this[_0x435964(0xaf)]['getCurrentUnitOfType'](_0x1bf49d[_0x435964(0x373)]))==null?void 0x0:_0x495938[_0x435964(0x2a0)]():void 0x0);if(!_0x1c4da7||this[_0x435964(0xaf)]['getUnitType'](_0x1c4da7)!==_0x1bf49d[_0x435964(0x373)])return;if(_0x17fb06){if(!Fr(this[_0x435964(0x312)],_0x1c4da7,_0x1c4da7,_0x17fb06))throw this[_0x435964(0x430)][_0x435964(0x2db)](_0x2fce34)[_0x435964(0x29f)](_0x1c4da7),new _0x37916c('Base\x20'+_0x5ebf52[_0x17fb06]+_0x435964(0x1b5));return;}if(Hs[_0x435964(0xb9)](_0x5ac523['id'])||!_0x5ac523['id'][_0x435964(0xb5)]('base.command.')&&!_0x5ac523['id'][_0x435964(0xb5)]('base.mutation.'))return;let _0x24a570=this[_0x435964(0xaf)][_0x435964(0x1b8)](_0x1c4da7,_0x1bf49d[_0x435964(0x373)]),_0x184347=_0x24a570?Ks(_0x24a570,_0x162196??{},_0x5ac523['id']):[];if(!_0x24a570||!zr(this[_0x435964(0x312)],_0x1c4da7,_0x184347))throw this['_injector'][_0x435964(0x2db)](_0x2fce34)[_0x435964(0x29f)](_0x1c4da7,_0x184347),new _0x37916c('Base\x20edit\x20permission\x20denied.');}};Us=X([Y(0x0,_0x72259(_0x6fca8)),Y(0x1,_0x228e7e),Y(0x2,_0x5b6ee9),Y(0x3,_0x2853e0)],Us);function Ws(_0x87e91f,_0x53d728){const _0x418148=_0x5670e0;return typeof _0x87e91f==_0x418148(0x2dc)?_0x87e91f:typeof(_0x53d728==null?void 0x0:_0x53d728[_0x418148(0x39d)])==_0x418148(0x2dc)?_0x53d728['unitId']:void 0x0;}function Gs(_0x36959b){const _0x3dccf7=_0x5670e0;if(_0x36959b===_0x3dccf7(0x410)||_0x36959b==='bases-exchange-client.operation.export-base-by-format')return _0x5ebf52[_0x3dccf7(0x3d7)];if(_0x36959b[_0x3dccf7(0xb5)](_0x3dccf7(0x3a9))||_0x36959b[_0x3dccf7(0xb5)](_0x3dccf7(0x1da)))return _0x5ebf52[_0x3dccf7(0x316)];}function Ks(_0x1da0a5,_0x23e757,_0x169318){const _0x4a926d=_0x5670e0;if(_0x169318===_0x4a926d(0x2f8)&&ec(_0x23e757['op']))return qs(_0x1da0a5,_0x23e757['op']);let _0xe1b865=new Set(),_0x446806=Zs(_0x23e757,_0x4a926d(0x19f)),_0x1a693b=typeof _0x23e757['tableId']==_0x4a926d(0x2dc)?_0x23e757[_0x4a926d(0x1a4)]:_0x446806[0x0];if(_0x446806['forEach'](_0x8423a2=>_0xe1b865['add'](K(_0x8423a2))),!_0x1a693b)return[..._0xe1b865];let _0x21c5af=_0x1da0a5['getSnapshot']()[_0x4a926d(0x41c)][_0x1a693b],_0x5af528=new Set(Zs(_0x23e757,'field')),_0x97509d=new Set(Zs(_0x23e757,_0x4a926d(0x1ef))),_0x3fd346=new Set(Zs(_0x23e757,'view'));return Qs(_0x21c5af,_0x23e757['patches'],_0x97509d,_0x5af528),$s(_0x23e757,_0x5af528),_0x5af528[_0x4a926d(0x143)](_0x19027b=>_0xe1b865[_0x4a926d(0x41d)](q(_0x1a693b,_0x19027b))),_0x97509d['forEach'](_0x4c064f=>_0xe1b865[_0x4a926d(0x41d)](J(_0x1a693b,_0x4c064f))),_0x3fd346['forEach'](_0xe0b54c=>_0xe1b865[_0x4a926d(0x41d)](Mr(_0x1a693b,_0xe0b54c))),[..._0xe1b865];}function qs(_0x244e1c,_0x53ac58){const _0x4cac76=_0x5670e0;let _0x3e5b90=_0x244e1c['getSnapshot'](),_0x93da4=new z()['getAffectedRanges'](_0x53ac58),_0x4f45e3=Js(_0x53ac58),_0x3d8d39=new Set();return _0x93da4['forEach'](_0x5eded2=>{const _0x2eed2f=_0x4f53;var _0x5cae3e,_0x53af35;let {tableId:_0x5a6ca0}=_0x5eded2;if(!_0x5a6ca0)return;_0x3d8d39[_0x2eed2f(0x41d)](K(_0x5a6ca0));let _0x3f56b1=_0x3e5b90[_0x2eed2f(0x41c)][_0x5a6ca0],_0x4ccdf4=_0x5eded2[_0x2eed2f(0x191)]??(_0x5eded2[_0x2eed2f(0x24b)]==null||_0x3f56b1==null||(_0x5cae3e=_0x3f56b1[_0x2eed2f(0x2ea)])==null?void 0x0:_0x5cae3e[_0x5eded2[_0x2eed2f(0x24b)]]),_0x3ea8d0=_0x5eded2['fieldId']??(_0x5eded2[_0x2eed2f(0x3fc)]==null||_0x3f56b1==null||(_0x53af35=_0x3f56b1['colId'])==null?void 0x0:_0x53af35[_0x5eded2['column']]);_0x4ccdf4&&_0x3d8d39['add'](J(_0x5a6ca0,_0x4ccdf4)),_0x3ea8d0&&_0x3d8d39[_0x2eed2f(0x41d)](q(_0x5a6ca0,_0x3ea8d0)),_0x5eded2['viewId']&&_0x3d8d39[_0x2eed2f(0x41d)](Mr(_0x5a6ca0,_0x5eded2[_0x2eed2f(0xc1)])),(_0x5eded2[_0x2eed2f(0x37a)]===_0x2eed2f(0x19f)||_0x4f45e3[_0x2eed2f(0xb9)](_0x5a6ca0))&&_0x3f56b1&&(Object[_0x2eed2f(0x3ac)](_0x3f56b1['fields'])[_0x2eed2f(0x143)](_0x402ee8=>_0x3d8d39[_0x2eed2f(0x41d)](q(_0x5a6ca0,_0x402ee8))),Object[_0x2eed2f(0x3ac)](_0x3f56b1[_0x2eed2f(0x83)])[_0x2eed2f(0x143)](_0x4481f1=>_0x3d8d39['add'](J(_0x5a6ca0,_0x4481f1))),Object['keys'](_0x3f56b1[_0x2eed2f(0x21f)])[_0x2eed2f(0x143)](_0x11a735=>_0x3d8d39[_0x2eed2f(0x41d)](Mr(_0x5a6ca0,_0x11a735)))),_0x5eded2[_0x2eed2f(0x37a)]===_0x2eed2f(0x1ef)&&_0x3f56b1&&Object[_0x2eed2f(0x3ac)](_0x3f56b1[_0x2eed2f(0x2cb)])[_0x2eed2f(0x143)](_0x3948b7=>_0x3d8d39[_0x2eed2f(0x41d)](q(_0x5a6ca0,_0x3948b7)));}),_0x93da4[_0x4cac76(0x19b)]===0x0&&Xs(_0x53ac58,_0x4cac76(0x427))&&Object[_0x4cac76(0x3ac)](_0x3e5b90['tables'])[_0x4cac76(0x143)](_0x1d371b=>_0x3d8d39[_0x4cac76(0x41d)](K(_0x1d371b))),[..._0x3d8d39];}function Js(_0x2de878){let _0x3eae04=new Set(),_0x2b8fe3=_0x2a4664=>{const _0x429cbd=_0x4f53;Array[_0x429cbd(0x99)](_0x2a4664)&&_0x2a4664[_0x429cbd(0x143)]((_0x55c90e,_0x3c72b7)=>{const _0x5baf55=_0x429cbd;_0x55c90e===_0x5baf55(0x41c)&&typeof _0x2a4664[_0x3c72b7+0x1]==_0x5baf55(0x2dc)&&Ys(_0x2a4664[_0x3c72b7+0x2])&&_0x3eae04['add'](_0x2a4664[_0x3c72b7+0x1]),_0x2b8fe3(_0x55c90e);});};return _0x2b8fe3(_0x2de878),_0x3eae04;}function Ys(_0x5be459){const _0x445e06=_0x5670e0;return!!_0x5be459&&typeof _0x5be459==_0x445e06(0x360)&&!Array['isArray'](_0x5be459)&&('i'in _0x5be459||'r'in _0x5be459||'p'in _0x5be459||'d'in _0x5be459||'es'in _0x5be459||_0x445e06(0x3be)in _0x5be459||'et'in _0x5be459);}function Xs(_0xf4f66f,_0x1d7f2c){const _0x5a16fc=_0x5670e0;return Array[_0x5a16fc(0x99)](_0xf4f66f)&&_0xf4f66f[_0x5a16fc(0x1c1)](_0x16a17b=>_0x16a17b===_0x1d7f2c||Xs(_0x16a17b,_0x1d7f2c));}function Zs(_0x553157,_0x58c8ad){let _0x11de2b=new Set(),_0x5c0fda=_0x58c8ad+'Id',_0x1fd483=_0x58c8ad+'Ids',_0x4eccd7=(_0x183ab9,_0x3cf06e='')=>{const _0x365c22=_0x4f53;typeof _0x183ab9=='string'?_0x3cf06e===_0x5c0fda&&_0x11de2b[_0x365c22(0x41d)](_0x183ab9):Array[_0x365c22(0x99)](_0x183ab9)?_0x3cf06e===_0x1fd483?_0x183ab9[_0x365c22(0x143)](_0x5d159b=>{const _0x4562cd=_0x365c22;typeof _0x5d159b==_0x4562cd(0x2dc)&&_0x11de2b[_0x4562cd(0x41d)](_0x5d159b);}):_0x183ab9['forEach'](_0x5cbfe4=>_0x4eccd7(_0x5cbfe4,_0x3cf06e)):tc(_0x183ab9)&&Object[_0x365c22(0x419)](_0x183ab9)[_0x365c22(0x143)](([_0x438c7d,_0x31c57b])=>{_0x438c7d==='id'&&_0x3cf06e===_0x58c8ad&&typeof _0x31c57b=='string'?_0x11de2b['add'](_0x31c57b):_0x4eccd7(_0x31c57b,_0x438c7d);});};return _0x4eccd7(_0x553157),[..._0x11de2b];}function Qs(_0x3f072c,_0x194772,_0x351afc,_0x582706){const _0x3985dd=_0x5670e0;_0x3f072c&&Array['isArray'](_0x194772)&&_0x194772[_0x3985dd(0x143)](_0x514d25=>{const _0x4d9b5d=_0x3985dd;if(!tc(_0x514d25))return;let _0x1c1576=_0x514d25;if(typeof _0x1c1576[_0x4d9b5d(0x24b)]=='number'){var _0x8ce0af;let _0x447b61=(_0x8ce0af=_0x3f072c[_0x4d9b5d(0x2ea)])==null?void 0x0:_0x8ce0af[_0x1c1576[_0x4d9b5d(0x24b)]];_0x447b61&&_0x351afc[_0x4d9b5d(0x41d)](_0x447b61);}if(typeof _0x1c1576['col']==_0x4d9b5d(0x174)){var _0xd3feb1;let _0x23c825=(_0xd3feb1=_0x3f072c[_0x4d9b5d(0x18c)])==null?void 0x0:_0xd3feb1[_0x1c1576[_0x4d9b5d(0x324)]];_0x23c825&&_0x582706[_0x4d9b5d(0x41d)](_0x23c825);}});}function $s(_0x3e865f,_0x180f36,_0x2d3324=''){const _0xcd4d29=_0x5670e0;_0x3e865f&&typeof _0x3e865f==_0xcd4d29(0x360)&&(Array[_0xcd4d29(0x99)](_0x3e865f)?_0x3e865f[_0xcd4d29(0x143)](_0x41ac29=>$s(_0x41ac29,_0x180f36,_0x2d3324)):tc(_0x3e865f)&&Object['entries'](_0x3e865f)['forEach'](([_0xed2e4e,_0x5950f8])=>{_0x2d3324==='values'&&_0x180f36['add'](_0xed2e4e),$s(_0x5950f8,_0x180f36,_0xed2e4e);}));}function ec(_0x18950){return Array['isArray'](_0x18950);}function tc(_0x1e33ac){const _0x93eed=_0x5670e0;return typeof _0x1e33ac==_0x93eed(0x360)&&!!_0x1e33ac&&!Array[_0x93eed(0x99)](_0x1e33ac);}const nc=_0x39c797('base.resource.service');let rc=class{constructor(_0x3b9ab3){const _0x4c152e=_0x5670e0;this[_0x4c152e(0xee)]=_0x3b9ab3;}[_0x5670e0(0x319)](_0x4d58d0){const _0x32c98d=_0x5670e0;return this[_0x32c98d(0xee)][_0x32c98d(0x1b8)](_0x4d58d0,_0x1bf49d['UNIVER_BASE'])??null;}['getAllBases'](){const _0x55c807=_0x5670e0;return this[_0x55c807(0xee)]['getAllUnitsForType'](_0x1bf49d['UNIVER_BASE']);}['createBase'](_0x271082){const _0x51fca0=_0x5670e0;return this[_0x51fca0(0xee)][_0x51fca0(0x25b)](_0x1bf49d[_0x51fca0(0x373)],_0x271082);}};function _0x1ee8(){const _0x4f8d13=['_resolveGalleryCoverFieldId','dependencyFieldId','canEditField','tryMaterializeSnapshot','getAll','createViewId','date','markResultApplied','[BaseHierarchy]:\x20field\x20\x22','join','Export','[BaseHierarchy]:\x20','weekdays','Unsupported\x20Base\x20permission\x20action:\x20','DESC','Remote','group','base.command.set-base-record-values','_normalizeCalendarDisplayColor','base.command.set-permission','getMonth','basePerf','base.fieldType.','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','getTypeOfUnitDisposed$','_syncBaseUnit','sortedView','base.command.set-base-name','_getViewRevision','[BaseCommandService]:\x20cannot\x20edit\x20table.','YYYY/MM/DD','_getKanbanConfiguredLanes','matchAll','blue','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','subscribe','objectType','\x20has\x20unsupported\x20operator\x20\x22','_config','createBatchCreateRecordsOp','descend','rule','attachment','general','every','[BaseCommandService]:\x20field\x20\x22','Text','column','insertOp','-record-','query','_buildGrid','\x22\x20does\x20not\x20exist.','pop','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).','getProjection','_buildGantt','Copy','config','manageView','isNot','\x22\x20with\x20field\x20type\x20\x22','registerRuleModel','_projectedViewRowsCache','_deleteRecordsBaseOp','_executeSuperTableMutationWhileActive','unitWidth','bases-exchange-client.operation.export-base','recordOrder','BaseField','clearFieldPermission','315jpDjrH','getUTCDate','BaseProjection.getProjection','_resolveKanbanCardFieldIds','fromChangeset','entries','defaultValue','[BaseViewRegistryService]:\x20view\x20type\x20\x22','tables','add','redo','_resolveCardTitleFieldId','commaPeriod','MMM\x20D,\x20YYYY','_recordIds','_projectTableRows','exceptions','base.command.update-base-view-conditional-color-rules','cellRevision','tableOrder','view-','UpdatedBy','_viewRevisionKey','notContains','base.command.set-base-view-sort','_cellInvalidations','_setFormulaFieldCells','recordIds','_injector','getSuperTableRegistrations','createUpdateCellOp','_scheduleSuperTableSync','default','records','\x20has\x20unsupported\x20date\x20mode\x20\x22','Gallery','_getStructureDirtyTableIds','_canUseFastSort','dashboard/','colorFieldId','_matchesGanttColorRule','MultiSelect','getOwnPropertyDescriptor','bases.fieldConfig.textPlaceholder','allowNegative','REMOTE_BASES_PLUGIN','validateFormula','findIndex','end','#,##0.00','base.command.move-base-hierarchy-record','index','cell','invalidateByOp','flatMap','isArray','unitOtherData','raw','_getOrderedRecords','base.mutation.set-permission-rule','Done','groupFieldId','BaseTable','Checked','AFTER','\x20has\x20unsupported\x20target\x20\x22','this-row','onStarting','base.command.create-base-record','Start\x20date','cardLayout','base.command.delete-base-table','_tablePermissions','unitData','view/','descendPath','base-perf','_instanceService','getTypeOfUnitAdded$','base.command.update-base-kanban-config','field/','[BaseField]:\x20invalid\x20checkbox\x20value.','_groupProjectionFieldIds','startsWith','colIndex','symbol','base.command.create-base-field','has','objectId','Uncategorized','End\x20date','decimal','dateMode','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','base-perf-','viewId','operator','_isKanbanGroupField','General','base.command.set-permissions','displayFieldId','base.viewType.grid','invalid','_apply','month','h12','separatorStyle','codePointAt','_projectHierarchyGroups','status','_createNumberingAllocator','_tableBaseIds','revision','base.command.move-base-field','[BaseCommandService]:\x20record-id\x20is\x20reserved.','base.command.delete-base-view','resolve','\x22\x20is\x20not\x20registered.','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','_toDirtyRangePatch','setRecordValues','searchTexts','_plugins','_groupCellInvalidations','Unchecked','exception-','base-snapshot-v1','version','BaseDashboard','decimalPlaces','createDefaultConfig','data','disposeWithMe','option-','unknown','NEXT_7_DAYS','mode','type','_createRecordOrderOp','_runtimeContext','_univerInstanceService','useThousands','_getAllTableIds','Todo','replace','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','IS_NOT','flat','base.command.rename-base-view','setBasePermission','Gantt','timeZone','slice','cycle','_projectFields','_projectedRowsCache','BaseProjection.projectRows','canEditRecord','search','DeleteView','map','_recordPermissions','_getCurrentUserId','hostAnchorId','test','embed-ui','subtreeHeightByRecordId','selectField','Numbering','_bumpTableRevision','invalidateByView','gridViewId','Undo','parentRecordId','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','missingField','False','scale','clear','Currency','duplicateField','clearRecordPermission','updatedBy','_title','workingDays','regenerateViewIds','FORCE_STRING','invalidField','base.mutation.set-permission-rules','endDateFieldId','updatedAt','CreatedAt','https://','_applier','_scheduledSuperTableSyncs','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_check','hasOwnProperty','_resolveGanttDateFieldId','Base','_syncSuperTables','isEmpty','THIS_MONTH','trim','error','split','hierarchy','[BaseCommandService]:\x20cannot\x20edit\x20field.','[BaseFormula]:\x20table\x20\x22','-field-name','Attachment','localeCompare','createRecord','[BaseField]:\x20invalid\x20multi-value\x20reference.','_resolveBaseId','viewOrder','system','onlyLocal','changed','SortedView','quarter','STRING',':end','normalize','canManageView','forEach','strategies','spacePeriod','base.command.update-base-field-description','_clearObjectEdit','_removeSuperTables','params','filled','LAST_WEEK','BASE','_isAllowedKanbanGroupField','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','148533NtdGZs','TOMORROW','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','base.command.create-base-table','dispose','isFinite','record/','canCreateTable','base-range-values-v1','level','prototype','compare','base.viewType.gantt','finally','direction','delete','primaryFieldName','manual','clearUnit','from','base.command.delete-base-record','userID','titleFieldId','getUTCDay','parentFieldName','boolean','childType','BaseProjection.projectGroups','beforeViewId','setViewSort','initializeUnit','Calendar','create-view','beforeFieldId','PAST_30_DAYS','editable','includes','number','lessThan','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','formulaName','week','registerCommand','_views','setConfig','createSuperTableReference','ascend','sum','getTypePlugin','IS_NOT_EMPTY','createDeleteRecordsUndoOp','Add','canDeleteField','resources','getUTCFullYear','fieldId','toLocaleString','exists','BOOLEAN','_buildGallery','undo','colId','_createNumberingAllocators','TODAY','Email','parentByRecordId','recordId','_initRegistries','_replaceOptional','getStructuredDependencies','base.command.update-base-field','conditions','_kanbanLaneTitle','editCell','coverFieldId','setViewFilter','length','_getAllBaseDependencyTreeCacheMap','_getTable','usableAsCardCover','table','stringify','_projectRows','base.command.set-base-view-filter','LESS_THAN','tableId','todo','[RecordLink]:\x20field\x20config\x20is\x20invalid.','base.permission.service','info','updateField','_kanbanGroupKeys','getCapabilities','off','true','Rating','getDependencies','_fieldPermissions','duplicateRecord','snapshot','person','columns','\x20permission\x20denied.','_baseSyncDisposables','edit','getUnit','Failed\x20to\x20create\x20update\x20cell\x20operation:','_commandService','Table\x20name\x20is\x20required.','relationRole','setViewGroup','validate','_patchCachedProjectedRows','base.command.batch-create-base-records','some','[DeleteBaseTableCommand]:\x20table\x20\x22','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','table/','_resolveCalendarDateFieldId','numfmt','_kanbanLaneColor','values','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','__tempBatchingUndoRedo','Unsupported\x20Base\x20permission\x20object:\x20','Date','canCreateRecord','children','cardSize','isValid','lastIndexOf','action','key','[BaseCommandService]:\x20cannot\x20create\x20table.','_viewRevisions','@univerjs-pro/bases','__UNIVER_BASE_PERF__','calendar','_applyFormulaResult','thread-comment.mutation.','_normalizeCellValue','day','SingleSelect','start','_isAllDayGanttDateRange','Parent','_setAttachmentResources','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','_rowTransformCacheSegment','_calendarEventColor','_viewPermissions','displayColor','projection','target','88jhCXpn','_sortRows','setViewFieldWidth','getSnapshot','[BaseCommandService]:\x20invalid\x20cell\x20value.','CreatedBy','record','_enqueueFormulaSync','selfParent','Checkbox','valueOf','_onCommandExecuted','view','fieldIds','138730DOQROx','changeFieldType','_withModifiedSystemValues','undefined','lastIndex','toPrimitive','lessThanOrEqual','_cellRevisions','[BaseProjectionService]:\x20missing\x20view\x20\x22','assign','then','frozenFieldCount','policy','showTodayLine','short','[BaseField]:\x20invalid\x20date\x20value.','year','_isGanttDateField','_createNumberingFieldValuePatches','[BasePerf]\x20','updateCell','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','ruleId','_getJson1DirtyData','BaseView','invertOp','forValue','options','bases.config','onReady','333067MCqLxL','_cellInvalidationsTouchFields','round','optionSource','childUnitId','large','[BaseField]:\x20invalid\x20person\x20value.','moveField','hidden','LAST_MONTH','views','_setViewFieldSetting','_isColorfulKanbanGroupField','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','_disposed','bases.fieldConfig.linkPlaceholder','setViewFieldOrder','bases.remote.config','conditionalColoring','_groupsCacheKey','#,##0','1249640dzXlwr','base.viewType.calendar','abbreviation','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','allowMultiple','showFieldNames','invalidateByField','Choose\x20another\x20name.','SelfParent','renameTable','#16a34a','href','UpdatedAt','_viewRowsCacheKey','deleteTable','_assertFieldDefinition','getAffectedRanges','result','getUTCMonth','_patchProjectedRowsForCellInvalidations','formula','BASE_OBJECT_PERMISSION_PLUGIN','base.command.update-base-record-order','subtreeEndIndex','Import','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','_normalizeCalendarConfig','maxDepth','valid','createTable','nodes','sort','baseRows','row','base.command.validate-formula','[BaseField]:\x20invalid\x20progress\x20value.','renameFormulaUnitReferences','createCreateRecordOp','rowIndex','function','INIT','createRecords','pickerFieldIds','BaseJson1.syncCellInvalidations','leftPaneCollapsed','apostrophe','_globalRevision','cellData','base.command.update-base-view-config','createUnit','check','_hierarchyIndexCache','516403RTEOtX','setBaseName','[BaseCommandService]:\x20cannot\x20delete\x20record.','_deleteAttachmentResources','[BaseFormula]:\x20field\x20\x22','saveMany','workingDaysOnly','afterFieldId','greaterThanOrEqual','setViewPermission','size','addPermissionPoint','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','_fieldRegistry','_projectionCache','unsubscribe','canEditTable','name','done','Status','max','getDay','_getCellRevision','_clearUnit','isInteger','text','autoIncrement','createRegExpFromSafeFragment','base.view-registry.service','orderKey','base.field-registry.service','Number','viewRevision','471540eIXRWY','trigger','_initCommands','count','BaseJson1.normalizeTables','5SLFcDm','columnSettings','owner','Invalid\x20object\x20permission\x20batch.','isNotEmpty','setRecordPermission','\x20must\x20be\x20an\x20object.','createCreateFieldOp','createField','PAST_7_DAYS','displayText','InvalidField','DD/MM/YYYY','beforeCommandExecuted','small','deleteRecords','rootRecordIds','MissingParent','registerView','_cacheKey','_T_','base.command.service','description','Edit','BaseJson1.cloneForOp','Group','createSetRecordValuesOp','emitPermissionDenied','getUnitId','_initDependencies','invalidateByCell','includeRecords','_findKanbanGroupField','kanban','diffValue','depthByRecordId','Grid','viewIndexes','getAllUnitsForType','#3b82f6','_basePermissions','operand','multiple','setViewFieldVisible','Progress','canCreateField','_setCachedProjection','now','yyyy/mm/dd','average','format','Redo','set','attachments','[RecordLink]:\x20display\x20field\x20\x22','delete-view','_filterSortFieldIds','2230392ZqkDsI','compress','usableAsGanttEnd','_getTableRevision','executeCommand','protocol','THIS_WEEK','_normalizeGanttConfig','#FDE68A','_formulaCalculationTriggerService','NEXT_30_DAYS','deleteField','base.command.set-base-view-field-order','isNaN','fields','defineProperty','width','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','kind','focusUnit','save','Delete','timeslotSize','majorHeaders','clearBasePermission','source','primaryFieldId','_resolveKanbanGroupFieldId','recordNamePrefix','_factory','get','string','#BBF7D0','_canEditTable','packageName','_isNonEmptyCellValue','_initialize','_getHierarchyIndex','36yueGjU','title','working','label','NumberFormat','indexOf','Phone','rowId','createView',',,\x22M\x22','_formulaCalculationSessionService','applyOp','_ganttBarColor','_isCalendarDateField','members','fld-','deletePermissionPoint','repairViewConfig','MissingRecord','_materializeFormulaTableNames','BaseRecord','base.mutation.apply-base-json1','removeOp','syncExecuteCommand','register','facade','false','IS_EMPTY','greaterThan','RecordId','locale','[BaseCommandService]:\x20cannot\x20create\x20field.','reduce','periodComma','orderedRecordIds','invalid-characters','getAllPermissionPoint','formula.mutation.set-formula-calculation-result','Date1900','Facade','includeTime','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','code','base.viewType.gallery','\x20cannot\x20use\x20operator\x20\x22','subType','order','_permissionService','en-US','base.command.duplicate-base-record','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','Comment','rules','embedId','getBase','invalidGanttEndField','local','invertWithDoc','usableAsCalendarDate','startDateFieldId','YESTERDAY','required','call','recordCount','MUTATION','col','_buildKanban','targetTableId','Working\x20day','_tableRevisions','_rememberTable','setTablePermission','deleteView','oldParentRecordId','missingRecord','base.command.update-base-cell','attachmentSets','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','none','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','leftPaneWidth','renameView','color','invalidReasonByRecordId','_formulaSyncQueue','_fastSortRows','\x22.\x20Allowed\x20operators:\x20','_materializeGroups','[BaseCommandService]:\x20cannot\x20manage\x20view.','url','_projectGroups','base.command.rename-base-table','_createRecordWithDefaults','Kanban','toString','BaseHierarchyError','deepClone','globalRevision','COMMAND','$1\x20','[BaseFormula]:\x20table\x20does\x20not\x20exist.','h24','user','getPermissionPoint','rowIndexById','depth','[BaseCommandService]:\x20cannot\x20create\x20record.','_registerUnitPermissionPoints','compose','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','_setObjectEdit','pushUndoRedo','BaseJson1.json1Apply','_projectedGroupsCache','Cycle','http:','measure','readonly','base.command.set-base-view-group','A\x20table\x20with\x20this\x20name\x20already\x20exists.','deleteRecord','updateViewConfig','duplicate','medium','BEFORE','object','find','resolvedOptions','custom','filter','write','remove','fieldOrder','[BaseCommandService]:\x20cannot\x20edit\x20cell.','formatToParts','pluginName','getInstance','Person','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','setHours','RecordLink','_initDataSync','_normalizeGalleryConfig','endsWith','UNIVER_BASE','toLowerCase','_findCalendarDateFieldId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','normal','field','getItem','reason','COLUMN','_filterRows','score','getFullYear','setSnapshot','card','[BaseCommandService]:\x20cannot\x20edit\x20record.','getTime','spaceComma','_applyingFormulaResults','replaceOp','contains','_normalizeGanttDisplayColor','canDeleteRecord','base.command.create-base-child-record','value','setRangeValues','_getSystemFieldValue','unique','moveView','base.viewType.kanban','-view-grid','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','updateRecordOrder','push','EXACT','dateFormat','empty','UTC','usableAsGanttStart','Link','NUMBER','_configService','star','unitId','fieldSettings','_activeDirtyManagerService','_capabilities','min','toFixed','[RecordLink]:\x20target\x20record\x20\x22','_resolveKanbanCoverFieldId','Formula','getFocusedUnit','fromEntries','mark','thread-comment.command.','Empty','all','keys','MaxDepth','#14b8a6','attachmentSet','Name','onCommandExecuted','fieldName','4ftDvQo','unshift','conditional','rows','abs','\x22\x20is\x20referenced\x20by\x20','_dataSyncPrimaryController','gantt','thumbnail','tableRevision','createdBy','ena','groups','currencySymbol','_canEdit','patches','changes','h:mm\x20a','fieldIndex','base.command.create-base-view','MM/DD/YYYY','base.command.set-base-table-hierarchy-field','YYYY-MM-DD','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_registeredSuperTableNames','progressFieldId'];_0x1ee8=function(){return _0x4f8d13;};return _0x1ee8();}rc=X([Y(0x0,_0x2853e0)],rc);const ic=_0x39c797(_0x5670e0(0x27a));var ac=class extends _0x29abb3{constructor(..._0x31aa30){const _0xd8d5da=_0x5670e0;super(..._0x31aa30),G(this,_0xd8d5da(0xdc),new Map());}[_0x5670e0(0x2fb)](_0x39703e){const _0x4cf037=_0x5670e0;return this[_0x4cf037(0xdc)][_0x4cf037(0x2b8)](_0x39703e[_0x4cf037(0xeb)],_0x39703e),_0x1abac0(()=>this[_0x4cf037(0xdc)][_0x4cf037(0x15e)](_0x39703e[_0x4cf037(0xeb)]));}['get'](_0xe19a3d){const _0x1dcec5=_0x5670e0;let _0x481aa7=this[_0x1dcec5(0xdc)][_0x1dcec5(0x2db)](_0xe19a3d);if(!_0x481aa7)throw Error(_0x1dcec5(0x41b)+_0xe19a3d+_0x1dcec5(0xd7));return _0x481aa7;}['getAll'](){const _0x31dca0=_0x5670e0;return Array[_0x31dca0(0x162)](this[_0x31dca0(0xdc)][_0x31dca0(0x1c8)]());}};const oc=[Q];let sc=class extends _0x2b207c{constructor(_0x41ffc5=Ns,_0x4536b1,_0x1d66f5,_0x1c129e,_0x339c4c,_0x52e21a){const _0x33b075=_0x5670e0;super(),this[_0x33b075(0x3f3)]=_0x41ffc5,this['_injector']=_0x4536b1,this[_0x33b075(0x1ba)]=_0x1d66f5,this[_0x33b075(0xee)]=_0x1c129e,this[_0x33b075(0x39b)]=_0x339c4c,this[_0x33b075(0x3b9)]=_0x52e21a,G(this,'_baseSyncDisposables',new Map());let {..._0x1aa7ad}=_0x31d5ee({},Ns,this[_0x33b075(0x3f3)]);this['_configService']['setConfig'](_0x33b075(0x213),_0x1aa7ad),this[_0x33b075(0xee)]['registerCtorForType'](_0x1bf49d[_0x33b075(0x373)],_0x5bbe04),this['_initDependencies'](),this[_0x33b075(0x281)](),this[_0x33b075(0x192)](),this[_0x33b075(0x370)]();}[_0x5670e0(0xa5)](){const _0x536567=_0x5670e0;this[_0x536567(0x430)]['add']([Lo]),this[_0x536567(0xe6)](this['_injector'][_0x536567(0x2db)](_0x228e7e)[_0x536567(0x179)](Ro)),this[_0x536567(0xe6)](this[_0x536567(0x430)]['get'](_0x228e7e)[_0x536567(0x179)](zo)),this['disposeWithMe'](this[_0x536567(0x430)][_0x536567(0x2db)](_0x33f458)[_0x536567(0x40b)](_0x2d9d6e[_0x536567(0x129)],this[_0x536567(0x430)]['get'](Lo),Ro['id'],zo['id']));}[_0x5670e0(0x214)](){const _0x5c276e=_0x5670e0;_0x330981(this[_0x5c276e(0x430)],[[rc],[qr],[Rs]]),this[_0x5c276e(0xee)][_0x5c276e(0x2aa)](_0x1bf49d[_0x5c276e(0x373)])['forEach'](_0x4e2684=>this[_0x5c276e(0x3e6)](_0x4e2684[_0x5c276e(0x2a0)]())),_0x330981(this[_0x5c276e(0x430)],[[zs],[Us]]);}[_0x5670e0(0x2a1)](){const _0x21e557=_0x5670e0;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x21e557(0x143)](_0xa79d60=>this[_0x21e557(0x430)]['add'](_0xa79d60));}[_0x5670e0(0x281)](){const _0x52538d=_0x5670e0;[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][_0x52538d(0x143)](_0x4cb790=>this[_0x52538d(0xe6)](this['_commandService'][_0x52538d(0x179)](_0x4cb790))),oc[_0x52538d(0x143)](_0x1f35ba=>{var _0x1c153d;return(_0x1c153d=this['_dataSyncPrimaryController'])==null?void 0x0:_0x1c153d['registerSyncingMutations'](_0x1f35ba);});}[_0x5670e0(0x370)](){const _0x30ce9c=_0x5670e0;this['_dataSyncPrimaryController']&&(this['disposeWithMe'](this[_0x30ce9c(0xee)][_0x30ce9c(0xb0)](_0x1bf49d[_0x30ce9c(0x373)])['subscribe'](({unit:_0x26aa22})=>{const _0x31e8e2=_0x30ce9c;this[_0x31e8e2(0x3e6)](_0x26aa22[_0x31e8e2(0x2a0)]());})),this[_0x30ce9c(0xe6)](this['_univerInstanceService'][_0x30ce9c(0x3e5)](_0x1bf49d[_0x30ce9c(0x373)])[_0x30ce9c(0x3f0)](_0x5eeb50=>{const _0x3e253a=_0x30ce9c;var _0x3d6468;(_0x3d6468=this['_baseSyncDisposables'][_0x3e253a(0x2db)](_0x5eeb50[_0x3e253a(0x2a0)]()))==null||_0x3d6468[_0x3e253a(0x153)](),this[_0x3e253a(0x1b6)]['delete'](_0x5eeb50[_0x3e253a(0x2a0)]());})));}['_syncBaseUnit'](_0x4a28fe){const _0x1dedd3=_0x5670e0;this['_dataSyncPrimaryController']&&!this[_0x1dedd3(0x1b6)]['has'](_0x4a28fe)&&this[_0x1dedd3(0x1b6)][_0x1dedd3(0x2b8)](_0x4a28fe,this[_0x1dedd3(0x3b9)]['syncUnit'](_0x4a28fe));}['_initRegistries'](){const _0x518b18=_0x5670e0;let _0x1c2795=this[_0x518b18(0x430)][_0x518b18(0x2db)](mr);zn()['forEach'](_0x5b7e12=>_0x1c2795[_0x518b18(0x2fb)](_0x5b7e12));let _0x2dac67=this[_0x518b18(0x430)][_0x518b18(0x2db)](ic),_0x285eeb=this['_injector'][_0x518b18(0x2db)](ii);$r()[_0x518b18(0x143)](_0x3e8097=>{const _0x3a05bc=_0x518b18;_0x2dac67[_0x3a05bc(0x2fb)](_0x3e8097),_0x285eeb[_0x3a05bc(0x296)](_0x3e8097);});}};G(sc,_0x5670e0(0x36a),'BASES_PLUGIN'),G(sc,_0x5670e0(0x2df),js),G(sc,_0x5670e0(0xe1),Ms),G(sc,'type',_0x1bf49d['UNIVER_BASE']),sc=X([_0x16f0c9(_0x8bcba,_0x39e97d),Y(0x1,_0x72259(_0x6fca8)),Y(0x2,_0x228e7e),Y(0x3,_0x2853e0),Y(0x4,_0x3253e1),Y(0x5,_0x198e1b(_0x5a2a09))],sc);let cc=class extends _0x2b207c{constructor(_0x297676=Ps,_0xddc354,_0x4ec7e8,_0x1f1664,_0x489d6e){const _0x2b1c74=_0x5670e0;super(),this[_0x2b1c74(0x3f3)]=_0x297676,this[_0x2b1c74(0x430)]=_0xddc354,this[_0x2b1c74(0x1ba)]=_0x4ec7e8,this[_0x2b1c74(0x39b)]=_0x1f1664,this[_0x2b1c74(0xee)]=_0x489d6e;let {..._0x15eadf}=_0x31d5ee({},Ps,this[_0x2b1c74(0x3f3)]);this[_0x2b1c74(0x39b)][_0x2b1c74(0x17b)](_0x2b1c74(0x226),_0x15eadf),this[_0x2b1c74(0xee)]['registerCtorForType'](_0x1bf49d[_0x2b1c74(0x373)],_0x5bbe04),[[mr,{'useClass':hr}],[ii,{'useClass':si}]]['forEach'](_0x5ac8e0=>this[_0x2b1c74(0x430)][_0x2b1c74(0x41d)](_0x5ac8e0)),oc[_0x2b1c74(0x143)](_0x5789a6=>this[_0x2b1c74(0xe6)](this[_0x2b1c74(0x1ba)][_0x2b1c74(0x179)](_0x5789a6)));}};G(cc,_0x5670e0(0x36a),_0x5670e0(0x8f)),G(cc,_0x5670e0(0x2df),js),G(cc,_0x5670e0(0xe1),Ms),G(cc,_0x5670e0(0xeb),_0x1bf49d[_0x5670e0(0x373)]),cc=X([_0x16f0c9(_0x8bcba,_0x39e97d),Y(0x1,_0x72259(_0x6fca8)),Y(0x2,_0x228e7e),Y(0x3,_0x3253e1),Y(0x4,_0x2853e0)],cc);function lc(_0x499baf){const _0x35e997=_0x5670e0;let _0x214e58=Cc(_0x499baf[_0x35e997(0x3ff)]);if(!_0x214e58)return{'query':'','total':0x0,'matches':[]};let _0x5f3c81=[],_0x5e7a1b=[];for(let _0xd68fe2=0x0;_0xd68fe2<_0x499baf[_0x35e997(0x1f6)]['length'];_0xd68fe2++){if(!(_0xd68fe2 in _0x499baf['fieldIds']))continue;let _0x435ade=_0x499baf['table'][_0x35e997(0x2cb)][_0x499baf[_0x35e997(0x1f6)][_0xd68fe2]];_0x435ade&&_0x5e7a1b[_0x35e997(0x393)]({'field':_0x435ade,'fieldIndex':_0xd68fe2});}_0x499baf[_0x35e997(0x3b6)][_0x35e997(0x143)]((_0x35d8a9,_0x42d364)=>{_0x5e7a1b['forEach'](({field:_0x3771b1,fieldIndex:_0x1d27d1})=>{const _0x3f68ae=_0x4f53;let _0x43ea38=uc(_0x35d8a9[_0x3f68ae(0x1c8)][_0x3771b1['id']],_0x3771b1);if(!_0x43ea38)return;let _0x407023=Sc(_0x214e58,_0x43ea38[_0x3f68ae(0xdb)]);_0x407023<=0x0||_0x5f3c81['push']({'recordId':_0x35d8a9[_0x3f68ae(0x191)],'fieldId':_0x3771b1['id'],'fieldType':_0x3771b1[_0x3f68ae(0xeb)],'text':_0x43ea38[_0x3f68ae(0x28e)],'score':_0x407023,'rowIndex':_0x42d364,'fieldIndex':_0x1d27d1});});}),_0x5f3c81[_0x35e997(0x249)]((_0x5d9bfd,_0x15078a)=>_0x15078a['score']-_0x5d9bfd[_0x35e997(0x37d)]||_0x5d9bfd[_0x35e997(0x250)]-_0x15078a[_0x35e997(0x250)]||_0x5d9bfd[_0x35e997(0x3c5)]-_0x15078a[_0x35e997(0x3c5)]);let _0x58bb1d=_0x499baf['limit']==null?_0x5f3c81:_0x5f3c81[_0x35e997(0xfa)](0x0,Math['max'](0x0,_0x499baf['limit']));return{'query':_0x214e58,'total':_0x5f3c81[_0x35e997(0x19b)],'matches':Tc(_0x58bb1d)};}function uc(_0x587b9b,_0x484fe3){const _0x1dbb7f=_0x5670e0;let _0x2d14bc=[];for(let _0x13b889 of fc(_0x587b9b,_0x484fe3)){let _0x127583=Cc(_0x13b889);_0x127583&&_0x2d14bc[_0x1dbb7f(0x393)](_0x127583);}return _0x2d14bc[_0x1dbb7f(0x19b)]?{'displayText':dc(_0x587b9b,_0x484fe3),'searchTexts':wc(_0x2d14bc)}:null;}function dc(_0x5e431d,_0x433ddb){const _0xba405a=_0x5670e0;switch(_0x433ddb[_0xba405a(0xeb)]){case _0x4fe15f[_0xba405a(0x1dd)]:case _0x4fe15f[_0xba405a(0x8b)]:case _0x4fe15f[_0xba405a(0x29d)]:return pc(_0x5e431d,_0x433ddb)[_0xba405a(0x3d6)](',\x20');case _0x4fe15f[_0xba405a(0x399)]:return gc(_0x5e431d);case _0x4fe15f[_0xba405a(0x1cc)]:case _0x4fe15f[_0xba405a(0x121)]:case _0x4fe15f[_0xba405a(0x236)]:return _c(_0x5e431d,_0x433ddb);case _0x4fe15f[_0xba405a(0x27d)]:case _0x4fe15f[_0xba405a(0x115)]:return vc(_0x5e431d,_0x433ddb);case _0x4fe15f[_0xba405a(0x2b0)]:return yc(_0x5e431d,_0x433ddb);case _0x4fe15f['Checkbox']:return _0x5e431d?_0xba405a(0xa1):_0xba405a(0xde);case _0x4fe15f[_0xba405a(0x134)]:return bc(_0x5e431d)['join'](',\x20');default:return xc(_0x5e431d);}}function fc(_0x6895ce,_0x55b071){const _0x54417a=_0x5670e0;switch(_0x55b071['type']){case _0x4fe15f['SingleSelect']:case _0x4fe15f[_0x54417a(0x8b)]:case _0x4fe15f[_0x54417a(0x29d)]:{let _0x1369d7=pc(_0x6895ce,_0x55b071);if(Array['isArray'](_0x6895ce)){let _0x2a7fc7=[..._0x1369d7];for(let _0x176126=0x0;_0x176126<_0x6895ce['length'];_0x176126++)_0x176126 in _0x6895ce&&_0x2a7fc7[_0x54417a(0x393)](String(_0x6895ce[_0x176126]));return _0x2a7fc7;}return _0x6895ce==null?_0x1369d7:[..._0x1369d7,String(_0x6895ce)];}case _0x4fe15f[_0x54417a(0x399)]:{let _0x3d0200=hc(_0x6895ce);return[_0x3d0200[_0x54417a(0x277)],_0x3d0200[_0x54417a(0x33c)]];}case _0x4fe15f[_0x54417a(0x1cc)]:case _0x4fe15f[_0x54417a(0x121)]:case _0x4fe15f[_0x54417a(0x236)]:return[_c(_0x6895ce,_0x55b071),xc(_0x6895ce)];case _0x4fe15f[_0x54417a(0x27d)]:case _0x4fe15f[_0x54417a(0x115)]:return[vc(_0x6895ce,_0x55b071),xc(_0x6895ce)];case _0x4fe15f[_0x54417a(0x2b0)]:return[yc(_0x6895ce,_0x55b071),xc(_0x6895ce)];case _0x4fe15f[_0x54417a(0x1f2)]:return _0x6895ce?[_0x54417a(0xa1),'Yes','True']:[_0x54417a(0xde),'No',_0x54417a(0x112)];case _0x4fe15f[_0x54417a(0x134)]:return bc(_0x6895ce);default:return[xc(_0x6895ce)];}}function pc(_0x245b74,_0xeba50){const _0x541e40=_0x5670e0;var _0x2c7dee;let _0x372c30=Array['isArray']((_0x2c7dee=_0xeba50[_0x541e40(0x407)])==null?void 0x0:_0x2c7dee[_0x541e40(0x212)])?_0xeba50['config']['options']:[],_0x45d0fe=[];if(Array[_0x541e40(0x99)](_0x245b74)){for(let _0x393c9c=0x0;_0x393c9c<_0x245b74[_0x541e40(0x19b)];_0x393c9c++){if(!(_0x393c9c in _0x245b74))continue;let _0x2413f8=String(_0x245b74[_0x393c9c]);_0x2413f8&&_0x45d0fe['push'](mc(_0x372c30,_0x2413f8));}return _0x45d0fe;}if(_0x245b74!=null){let _0xfa0251=String(_0x245b74);_0xfa0251&&_0x45d0fe[_0x541e40(0x393)](mc(_0x372c30,_0xfa0251));}return _0x45d0fe;}function mc(_0x3e7fce,_0x517891){const _0x2e871f=_0x5670e0;for(let _0x2668b3 of _0x3e7fce){if(typeof _0x2668b3==_0x2e871f(0x2dc)&&_0x2668b3===_0x517891)return _0x2668b3;if(_0x2668b3&&typeof _0x2668b3==_0x2e871f(0x360)){let _0xb49219=_0x2668b3;if(String(_0xb49219['id']??_0xb49219[_0x2e871f(0x26f)]??'')===_0x517891||String(_0xb49219[_0x2e871f(0x26f)]??'')===_0x517891)return String(_0xb49219[_0x2e871f(0x26f)]??_0xb49219['id']??_0x517891);}}return _0x517891;}function hc(_0x72e646){const _0x8c1c89=_0x5670e0;if(_0x72e646&&typeof _0x72e646=='object'&&!Array['isArray'](_0x72e646)){let _0x98c34f=_0x72e646;return{'text':String(_0x98c34f[_0x8c1c89(0x277)]??_0x98c34f[_0x8c1c89(0x33c)]??''),'url':String(_0x98c34f[_0x8c1c89(0x33c)]??'')};}return{'text':xc(_0x72e646),'url':xc(_0x72e646)};}function gc(_0x58e995){const _0xabbf9a=_0x5670e0;let _0x253ea8=hc(_0x58e995);return _0x253ea8[_0xabbf9a(0x277)]||_0x253ea8[_0xabbf9a(0x33c)];}function _c(_0x49d99b,_0x4019ef){const _0x1e4f50=_0x5670e0;return typeof _0x49d99b!=_0x1e4f50(0x174)||!Number[_0x1e4f50(0x154)](_0x49d99b)?'':mn(_0x49d99b,_0x4019ef[_0x1e4f50(0x407)]);}function vc(_0x579d95,_0x5916c0){const _0x4e0149=_0x5670e0;let _0x6b4887=typeof _0x579d95==_0x4e0149(0x174)?_0x579d95:Number(_0x579d95);return Number['isFinite'](_0x6b4887)?qo(_0x6b4887,_0x5916c0[_0x4e0149(0x407)]):'';}function yc(_0xda5830,_0x36d77a){const _0x24a555=_0x5670e0;let _0xbd7c98=typeof _0xda5830==_0x24a555(0x174)?_0xda5830:Number(_0xda5830);return Number[_0x24a555(0x154)](_0xbd7c98)?Qo(_0xbd7c98,_0x36d77a['config']):'';}function bc(_0x292927){const _0x3d340d=_0x5670e0;return Array[_0x3d340d(0x99)](_0x292927)?_0x292927[_0x3d340d(0x98)](_0x4b9255=>{const _0x3553ad=_0x3d340d;if(!_0x4b9255||typeof _0x4b9255!=_0x3553ad(0x360))return[];let _0xf04c9=_0x4b9255,_0x297eeb=String(_0xf04c9[_0x3553ad(0x26f)]??_0xf04c9['url']??'')[_0x3553ad(0x12d)]();return _0x297eeb?[_0x297eeb]:[];}):[];}function xc(_0x3eb83b){const _0xf89a92=_0x5670e0;if(_0x3eb83b==null)return'';if(typeof _0x3eb83b==_0xf89a92(0x168))return _0x3eb83b?_0xf89a92(0x1ad):_0xf89a92(0x2fd);if(typeof _0x3eb83b==_0xf89a92(0x174))return String(_0x3eb83b);if(Array[_0xf89a92(0x99)](_0x3eb83b)){let _0x3fca99=[];for(let _0x414023=0x0;_0x414023<_0x3eb83b['length'];_0x414023++){if(!(_0x414023 in _0x3eb83b))continue;let _0x529469=xc(_0x3eb83b[_0x414023]);_0x529469&&_0x3fca99[_0xf89a92(0x393)](_0x529469);}return _0x3fca99['join'](',\x20');}if(typeof _0x3eb83b==_0xf89a92(0x360)){let _0x3864b3=_0x3eb83b;return String(_0x3864b3[_0xf89a92(0x2e4)]??_0x3864b3[_0xf89a92(0x26f)]??_0x3864b3['text']??_0x3864b3[_0xf89a92(0x33c)]??'')[_0xf89a92(0x12d)]();}return String(_0x3eb83b);}function Sc(_0x575fee,_0x158728){const _0x3f468c=_0x5670e0;let _0x46d5f9=0x0;for(let _0x29e664 of _0x158728)_0x29e664&&(_0x29e664===_0x575fee?_0x46d5f9=Math[_0x3f468c(0x272)](_0x46d5f9,0x12c):_0x29e664[_0x3f468c(0xb5)](_0x575fee)?_0x46d5f9=Math[_0x3f468c(0x272)](_0x46d5f9,0xfa):_0x29e664[_0x3f468c(0x173)](_0x575fee)&&(_0x46d5f9=Math[_0x3f468c(0x272)](_0x46d5f9,0xc8)));return _0x46d5f9;}function Cc(_0x43b886){const _0x24dd2f=_0x5670e0;return _0x43b886[_0x24dd2f(0x12d)]()[_0x24dd2f(0xf2)](/\s+/g,'\x20')['toLowerCase']();}function wc(_0x20d7ef){const _0x3d9509=_0x5670e0;return Array[_0x3d9509(0x162)](new Set(_0x20d7ef));}function Tc(_0x153def){const _0x558a02=_0x5670e0;let _0x2e1c8a=[];for(let {rowIndex:_0x4e4edb,fieldIndex:_0xe3358e,..._0x12afc9}of _0x153def)_0x2e1c8a[_0x558a02(0x393)](_0x12afc9);return _0x2e1c8a;}function Ec(_0x404bdf){const _0x5ab521=_0x5670e0;return{'compress':!0x0,'kind':_0x5ab521(0x157),'u':_0x404bdf[_0x5ab521(0x39d)],'t':_0x404bdf[_0x5ab521(0x1a4)],'p':_0x404bdf[_0x5ab521(0x3c2)][_0x5ab521(0x102)](_0x2cc366=>[_0x2cc366[_0x5ab521(0x24b)],_0x2cc366['col'],Ac(_0x2cc366[_0x5ab521(0x38a)])]),..._0x404bdf[_0x5ab521(0x280)]===void 0x0?{}:{'g':_0x404bdf['trigger']}};}function Dc(_0x12c6d1){const _0x25f6d6=_0x5670e0;if(Lc(_0x12c6d1,_0x25f6d6(0x157)),!Oc(_0x12c6d1)){if(!Ic(_0x12c6d1))throw Error(_0x25f6d6(0x330));return _0x12c6d1;}return{'unitId':_0x12c6d1['u'],'tableId':_0x12c6d1['t'],'patches':_0x12c6d1['p'][_0x25f6d6(0x102)](([_0x2e4920,_0x5a8660,_0xbbdda2])=>({'row':_0x2e4920,'col':_0x5a8660,'value':jc(_0xbbdda2)})),..._0x12c6d1['g']===void 0x0?{}:{'trigger':_0x12c6d1['g']}};}function Oc(_0x35c70f){const _0x4c4066=_0x5670e0;return!Rc(_0x35c70f)||_0x35c70f['compress']!==!0x0||_0x35c70f[_0x4c4066(0x2cf)]!=='base-range-values-v1'?!0x1:typeof _0x35c70f['u']==_0x4c4066(0x2dc)&&typeof _0x35c70f['t']==_0x4c4066(0x2dc)&&(_0x35c70f['g']===void 0x0||typeof _0x35c70f['g']=='string')&&Array['isArray'](_0x35c70f['p'])&&_0x35c70f['p'][_0x4c4066(0x3f9)](_0x1fcd9=>Array[_0x4c4066(0x99)](_0x1fcd9)&&_0x1fcd9['length']===0x3&&Number[_0x4c4066(0x276)](_0x1fcd9[0x0])&&Number[_0x4c4066(0x276)](_0x1fcd9[0x1]));}function kc(_0xd100e1){const _0x2b0c37=_0x5670e0;return!Rc(_0xd100e1)||_0xd100e1[_0x2b0c37(0x2be)]!==!0x0||_0xd100e1[_0x2b0c37(0x2cf)]!==_0x2b0c37(0xe0)||!Rc(_0xd100e1[_0x2b0c37(0x41c)])?!0x1:Object[_0x2b0c37(0x1c8)](_0xd100e1[_0x2b0c37(0x41c)])[_0x2b0c37(0x3f9)](_0x253455=>Rc(_0x253455)&&(_0x253455['cd']===void 0x0||Array['isArray'](_0x253455['cd'])&&_0x253455['cd']['every'](_0x6fcb2=>Array['isArray'](_0x6fcb2)&&_0x6fcb2[_0x2b0c37(0x19b)]===0x3&&Number[_0x2b0c37(0x276)](_0x6fcb2[0x0])&&Number[_0x2b0c37(0x276)](_0x6fcb2[0x1])&&Fc(_0x6fcb2[0x2]))));}function Ac(_0x4c43f0){return Pc(_0x4c43f0)?Mc(_0x4c43f0):_0x4c43f0;}function jc(_0x1530d4){return Fc(_0x1530d4)?Nc(_0x1530d4):_0x1530d4;}function Mc(_0x341515){return{'c':0x1,..._0x341515['v']===void 0x0?{}:{'v':_0x341515['v']},..._0x341515['t']!==void 0x0&&_0x341515['t']!==null?{'t':_0x341515['t']}:_0x341515['t']===null?{'t':null}:{},..._0x341515['f']!==void 0x0&&_0x341515['f']!==null?{'f':_0x341515['f']}:_0x341515['f']===null?{'f':null}:{},..._0x341515['si']!==void 0x0&&_0x341515['si']!==null?{'si':_0x341515['si']}:_0x341515['si']===null?{'si':null}:{},..._0x341515['p']!==void 0x0&&_0x341515['p']!==null?{'p':_0x341515['p']}:_0x341515['p']===null?{'p':null}:{}};}function Nc(_0x5b4650){return{..._0x5b4650['v']===void 0x0?{}:{'v':_0x5b4650['v']},..._0x5b4650['t']===void 0x0?{}:{'t':_0x5b4650['t']},..._0x5b4650['f']===void 0x0?{}:{'f':_0x5b4650['f']},..._0x5b4650['si']===void 0x0?{}:{'si':_0x5b4650['si']},..._0x5b4650['p']===void 0x0?{}:{'p':_0x5b4650['p']}};}function Pc(_0x4b6fc9){const _0x217537=_0x5670e0;return!!_0x4b6fc9&&typeof _0x4b6fc9==_0x217537(0x360)&&!Array[_0x217537(0x99)](_0x4b6fc9)&&(Object['prototype'][_0x217537(0x127)]['call'](_0x4b6fc9,'v')||Object[_0x217537(0x159)][_0x217537(0x127)][_0x217537(0x321)](_0x4b6fc9,'t')||Object[_0x217537(0x159)][_0x217537(0x127)][_0x217537(0x321)](_0x4b6fc9,'p')||Object[_0x217537(0x159)]['hasOwnProperty']['call'](_0x4b6fc9,'f')||Object['prototype']['hasOwnProperty'][_0x217537(0x321)](_0x4b6fc9,'si'));}function Fc(_0x3e8ffd){return Rc(_0x3e8ffd)&&_0x3e8ffd['c']===0x1;}function Ic(_0x580cbb){const _0x12583e=_0x5670e0;return Rc(_0x580cbb)&&typeof _0x580cbb['unitId']==_0x12583e(0x2dc)&&typeof _0x580cbb[_0x12583e(0x1a4)]==_0x12583e(0x2dc)&&(_0x580cbb[_0x12583e(0x280)]===void 0x0||typeof _0x580cbb[_0x12583e(0x280)]==_0x12583e(0x2dc))&&Array[_0x12583e(0x99)](_0x580cbb[_0x12583e(0x3c2)])&&_0x580cbb[_0x12583e(0x3c2)][_0x12583e(0x3f9)](_0x3ceb93=>Rc(_0x3ceb93)&&Number[_0x12583e(0x276)](_0x3ceb93['row'])&&Number[_0x12583e(0x276)](_0x3ceb93[_0x12583e(0x324)])&&_0x12583e(0x38a)in _0x3ceb93);}function Lc(_0x354393,_0x5d4326){const _0x1cf5a2=_0x5670e0;if(Rc(_0x354393)&&_0x354393['compress']===!0x0){if(_0x354393['kind']!==_0x5d4326)throw Error(_0x1cf5a2(0x20c)+String(_0x354393[_0x1cf5a2(0x2cf)])+'\x22.');if(!(_0x5d4326===_0x1cf5a2(0x157)?Oc(_0x354393):kc(_0x354393)))throw Error(_0x1cf5a2(0x391)+_0x5d4326+'\x22.');}}function Rc(_0x2ed3e6){const _0x16e1d5=_0x5670e0;return!!_0x2ed3e6&&typeof _0x2ed3e6==_0x16e1d5(0x360)&&!Array[_0x16e1d5(0x99)](_0x2ed3e6);}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,_0x3f654d 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 _0xfaec6d=_0xb8c0;(function(_0x568d52,_0x2aa0eb){const _0x5efc3f=_0xb8c0,_0x489cda=_0x568d52();while(!![]){try{const _0x2cf181=parseInt(_0x5efc3f(0x2bb))/0x1+-parseInt(_0x5efc3f(0x265))/0x2*(parseInt(_0x5efc3f(0x14f))/0x3)+-parseInt(_0x5efc3f(0x206))/0x4+parseInt(_0x5efc3f(0x1f2))/0x5+-parseInt(_0x5efc3f(0x2f4))/0x6*(parseInt(_0x5efc3f(0x10f))/0x7)+parseInt(_0x5efc3f(0xee))/0x8*(-parseInt(_0x5efc3f(0x186))/0x9)+-parseInt(_0x5efc3f(0x22e))/0xa*(-parseInt(_0x5efc3f(0x30e))/0xb);if(_0x2cf181===_0x2aa0eb)break;else _0x489cda['push'](_0x489cda['shift']());}catch(_0x41a2a1){_0x489cda['push'](_0x489cda['shift']());}}}(_0x3b21,0xa6e9a));import{$ as _0x17e97,A as _0x13b611,B as _0x4f57b5,C as _0xa12fc8,D as _0x2df3da,E as _0x445a5d,F as _0x3a4492,G as _0x128bba,H as _0x2776ed,I as _0x52feca,J as _0x973dba,K as _0x1912a0,L as _0x5d2ca0,M as _0x5b83d0,N as _0x1b8729,O as _0x470fe8,P as _0x59ed6d,Q as _0xf1954,R as _0xa58188,S as _0x3bac59,T as _0x347a63,U as _0x252898,V as _0x2c1e93,W as _0x1cd0c2,X as _0x4af7a6,Y as _0x567ec0,Z as _0x4cdd92,_ as _0x1be76b,a as _0x115710,at as _0x1695f4,b as _0x25f8ac,c as _0x5d6e59,d as _0x17409a,et as _0x4ee248,f as _0x1babfc,g as _0x6a0734,h as _0x146b6c,i as _0x1e09da,it as _0x28fb5f,j as _0x5bf140,k as _0x3c69d2,l as _0x292006,m as _0x44139a,n as _0x328617,nt as _0x252b80,o as _0x34963f,ot as _0x5d4051,p as _0x59c7a4,q as _0x103c1d,r as _0x6c24b2,rt as _0xc7f959,s as _0x415792,st as _0x568b68,t as _0x5131c6,tt as _0xad927a,u as _0x55392f,v as _0x1fa0e7,w as _0x4c8ce9,x as _0x1f7b6f,y as _0x7fe7d9,z as _0x147b81}from'./worker-1CbynS32.js';import{BASE_RECORD_ID_FIELD_ID as _0x434772,BaseConditionalColorOperator as _0xf0ba6f,BaseConditionalColorTarget as _0x361426,BaseConditionalDateMode as _0x239227,BaseDataModel as _0x5a26da,BaseFieldType as _0x2657c4,BaseHierarchyInvalidReason as _0x1df41d,BaseRecordLinkRole as _0x3ae3dd,BaseViewType as _0x25059f,CellValueType as _0x1f17d0,ColorKit as _0x5b378c,CommandType as _0x3c38c7,CustomCommandExecutionError as _0x7869e1,DependentOn as _0x4f1a4c,Disposable as _0x3e9f4d,ErrorService as _0x366da3,ICommandService as _0x2780d7,IConfigService as _0x624d0,IPermissionService as _0x381c85,IResourceManagerService as _0x272631,IUndoRedoService as _0x5da6dc,IUniverInstanceService as _0x3a34dc,Inject as _0x5d8c1e,Injector as _0x55c2ae,JSON1 as _0x1cd282,JSONX as _0x538845,ObjectMatrix as _0x5bc47d,ObjectPermissionRuleModel as _0x4c6a05,ObjectPermissionService as _0x48d251,Optional as _0xdd4f87,PermissionStatus as _0x225b52,Plugin as _0x36f58a,Tools as _0x167656,UniverInstanceType as _0x528a5b,allocateBaseFormulaTableName as _0x320d2c,assertBaseTableRecordIdentity as _0x300bfe,createBaseFormulaTableNameMap as _0x49875a,createBaseRecordIdField as _0x1f764f,createIdentifier as _0x113f43,generateRandomId as _0x2c42b0,getBaseFormulaTableName as _0x4f91de,isBaseRecordIdFieldName as _0xf0d49,isValidBaseRecordId as _0xd7b43e,merge as _0x465685,nameCharacterCheck as _0x1653bb,numfmt as _0x41572e,regexp as _0x32df0e,sequenceExecute as _0x45508b,toDisposable as _0x12559f,touchDependencies as _0x14c1fd}from'@univerjs/core';import{FormulaCalculationTriggerService as _0xb978c8,IActiveDirtyManagerService as _0xa45353,RemoveSuperTableMutation as _0x11f50f,SetFormulaCalculationResultMutation as _0x1a43f9,SetSuperTableMutation as _0x5abb0d,SetTriggerFormulaCalculationStartMutation as _0x3b150b,UniverProFormulaEnginePlugin as _0x590f96,refactorFormulaUnitQualifier as _0x4065fb}from'@univerjs-pro/engine-formula';import{UnitAction as _0x32fca1,UnitObject as _0x456f09}from'@univerjs/protocol';import{UniverLicensePlugin as _0x5b8ca2}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x596a05}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x671e03,FormulaResultApplicationType as _0xc6e46a}from'@univerjs/engine-formula';const G={'table':_0x2e2622=>[_0xfaec6d(0x2fe),_0x2e2622],'field':(_0x58e035,_0x41d7ff)=>[_0xfaec6d(0x2fe),_0x58e035,_0xfaec6d(0x10e),_0x41d7ff],'fieldOrder':(_0x7d0241,_0x1ff50b)=>[_0xfaec6d(0x2fe),_0x7d0241,_0xfaec6d(0x1b0),_0x1ff50b],'record':(_0x3d4e8b,_0x587e4c)=>['tables',_0x3d4e8b,_0xfaec6d(0x11e),_0x587e4c],'cell':(_0x491c6c,_0x357df3,_0x43268f)=>['tables',_0x491c6c,_0xfaec6d(0x11e),_0x357df3,_0xfaec6d(0xa3),_0x43268f],'cellData':(_0x5addc1,_0x3f7f82,_0x28245e)=>[_0xfaec6d(0x2fe),_0x5addc1,_0xfaec6d(0x30f),String(_0x3f7f82),String(_0x28245e)],'attachmentSet':(_0x14700e,_0x8fd82d)=>[_0xfaec6d(0x2fe),_0x14700e,_0xfaec6d(0x138),'attachmentSets',_0x8fd82d],'attachment':(_0x251bbf,_0x1e1382)=>['tables',_0x251bbf,_0xfaec6d(0x138),_0xfaec6d(0x187),_0x1e1382],'view':(_0x116c1f,_0x2ab53a)=>[_0xfaec6d(0x2fe),_0x116c1f,_0xfaec6d(0x25e),_0x2ab53a],'viewFieldHidden':(_0x2ec2b5,_0x4f1373,_0x3343fa)=>[_0xfaec6d(0x2fe),_0x2ec2b5,'views',_0x4f1373,_0xfaec6d(0x2c1),_0x3343fa,_0xfaec6d(0x276)]};var K=class{[_0xfaec6d(0xcf)](_0x5a1f7a,_0x4f0c28){const _0x5461f4=_0xfaec6d;let _0x189e24=this[_0x5461f4(0x1b5)](_0x5a1f7a,_0x5a1f7a[_0x5461f4(0x267)],_0x4f0c28);return _0x2df3da([this['_replaceOptional']([_0x5461f4(0x267)],_0x5a1f7a['name'],_0x4f0c28),..._0x189e24?[_0x189e24]:[]]);}[_0xfaec6d(0x1b5)](_0x107a9b,_0x7c4275,_0x4a90a0){const _0x2cc6f9=_0xfaec6d;let _0x330be6=Object[_0x2cc6f9(0xa3)](_0x107a9b[_0x2cc6f9(0x2fe)])[_0x2cc6f9(0xce)](_0x5c67ed=>Object[_0x2cc6f9(0xa3)](_0x5c67ed['fields'])['flatMap'](_0x45d77e=>{const _0x259fe4=_0x2cc6f9;var _0x4ce0e5,_0x57a1ac;if(_0x45d77e['type']!==_0x2657c4[_0x259fe4(0x293)])return[];let _0x914fe8=String(((_0x4ce0e5=_0x45d77e['config'])==null?void 0x0:_0x4ce0e5[_0x259fe4(0x315)])??''),_0x2935d4=_0x4065fb(_0x914fe8,_0x7c4275,_0x4a90a0);return _0x2935d4===_0x914fe8?[]:[this[_0x259fe4(0x11d)]([...G['field'](_0x5c67ed['id'],_0x45d77e['id']),_0x259fe4(0x2c6),'formula'],(_0x57a1ac=_0x45d77e[_0x259fe4(0x2c6)])==null?void 0x0:_0x57a1ac[_0x259fe4(0x315)],_0x2935d4)];}));return _0x330be6['length']>0x0?_0x2df3da(_0x330be6):void 0x0;}[_0xfaec6d(0x1a0)](_0x38bd53,_0x5596de,_0x7e8223=_0x38bd53[_0xfaec6d(0x1c1)]['length']){const _0x51e7b5=_0xfaec6d;let _0x56dd80=_0x320d2c(_0x5596de[_0x51e7b5(0x267)],_0x49875a(_0x38bd53)[_0x51e7b5(0xa3)](),_0x5596de[_0x51e7b5(0x19e)]),_0x49a949=_0x5596de[_0x51e7b5(0x19e)]===_0x56dd80?_0x5596de:{..._0x5596de,'formulaName':_0x56dd80};return _0x2df3da([...this['_materializeFormulaTableNames'](_0x38bd53),_0x1cd282['insertOp'](G[_0x51e7b5(0x18d)](_0x5596de['id']),_0x49a949),_0x1cd282['insertOp']([_0x51e7b5(0x1c1),_0x7e8223],_0x5596de['id'])]);}[_0xfaec6d(0x210)](_0x2e44f6,_0x5f37c7,_0x385f32){const _0x909a1b=_0xfaec6d;let _0x5a758c=_0x2e44f6[_0x909a1b(0x2fe)][_0x5f37c7];return _0x2df3da([...this['_materializeFormulaTableNames'](_0x2e44f6),_0x1cd282[_0x909a1b(0x1be)]([...G[_0x909a1b(0x18d)](_0x5f37c7),'name'],_0x5a758c['name'],_0x385f32)]);}[_0xfaec6d(0x2e0)](_0x121a1e,_0x4a8b5e){const _0x2574cc=_0xfaec6d;let _0x2c8329=_0x121a1e['tables'][_0x4a8b5e],_0x4ff1ef=_0x121a1e[_0x2574cc(0x1c1)][_0x2574cc(0x12a)](_0x4a8b5e);return _0x2df3da([...this[_0x2574cc(0x15e)](_0x121a1e,new Set([_0x4a8b5e])),_0x1cd282[_0x2574cc(0x268)](G[_0x2574cc(0x18d)](_0x4a8b5e),_0x2c8329),_0x1cd282[_0x2574cc(0x268)](['tableOrder',_0x4ff1ef],_0x4a8b5e)]);}['createRecord'](_0x95210a,_0x3442a6,_0x3092db){const _0x56d66c=_0xfaec6d;return this[_0x56d66c(0xba)](_0x95210a,_0x3442a6,[_0x3092db]);}[_0xfaec6d(0xba)](_0x43a503,_0x4161c3,_0x13e3b8){const _0x7357dd=_0xfaec6d;let _0x3213c7=_0x43a503[_0x7357dd(0x2fe)][_0x4161c3],_0x21bfac=_0x13e3b8['filter'](_0x4a0ff8=>_0x4a0ff8&&!_0x3213c7[_0x7357dd(0x11e)][_0x4a0ff8['id']])[_0x7357dd(0xdc)](_0xdaa2fa=>({..._0xdaa2fa,'values':{..._0xdaa2fa[_0x7357dd(0xa3)],[_0x434772]:_0xdaa2fa['id']}}));if(!_0x21bfac[_0x7357dd(0x317)])return _0x1cd282[_0x7357dd(0x1be)]([...G[_0x7357dd(0x18d)](_0x4161c3),_0x7357dd(0x11e)],_0x3213c7[_0x7357dd(0x11e)],_0x3213c7[_0x7357dd(0x11e)]);let _0x3ed1d3=new _0x1cd282[(_0x7357dd(0x281))](),_0x496c46=[..._0x21bfac][_0x7357dd(0x2f8)]((_0x3d73f9,_0x1fa9be)=>_0x3d73f9['id']<_0x1fa9be['id']?-0x1:+(_0x3d73f9['id']>_0x1fa9be['id'])),_0xee6e9b=[...G[_0x7357dd(0x18d)](_0x4161c3),'records'];_0x3ed1d3[_0x7357dd(0x105)](_0xee6e9b);for(let _0x150c6e of _0x496c46)_0x3ed1d3['descend'](_0x150c6e['id']),_0x3ed1d3[_0x7357dd(0x314)]('i',_0x150c6e),_0x3ed1d3['ascend']();for(let _0x38bda8=0x0;_0x38bda8<_0xee6e9b[_0x7357dd(0x317)];_0x38bda8+=0x1)_0x3ed1d3[_0x7357dd(0x1f6)]();return _0x2df3da([_0x3ed1d3['get'](),this[_0x7357dd(0x1e7)](_0x43a503,_0x4161c3,_0x21bfac)]);}[_0xfaec6d(0x28e)](_0x108b34,_0x1bfb7b,_0x3ced0b){const _0x51c867=_0xfaec6d;return this[_0x51c867(0x1f3)](_0x108b34,_0x1bfb7b,[_0x3ced0b]);}[_0xfaec6d(0x1f3)](_0x3aa55b,_0x78ba44,_0x38bdcf){const _0x2e4480=_0xfaec6d;let _0x1b5070=_0x3aa55b[_0x2e4480(0x2fe)][_0x78ba44],_0x37d3d5=Array[_0x2e4480(0x309)](new Set(_0x38bdcf))['filter'](_0x42a8f0=>_0x1b5070[_0x2e4480(0x11e)][_0x42a8f0]);if(!_0x37d3d5[_0x2e4480(0x317)])return _0x1cd282[_0x2e4480(0x1be)]([...G[_0x2e4480(0x18d)](_0x78ba44),_0x2e4480(0x11e)],_0x1b5070['records'],_0x1b5070[_0x2e4480(0x11e)]);let _0x1b92f5=new Set(_0x37d3d5),_0x59cbf4=_0x1912a0(_0x1b5070,_0x37d3d5)[_0x2e4480(0xdc)](_0x3e2501=>this[_0x2e4480(0x2b2)](_0x3aa55b,_0x78ba44,_0x3e2501[_0x2e4480(0x1de)],_0x3e2501[_0x2e4480(0x2c3)],''));return _0x2df3da([this[_0x2e4480(0x1ad)](_0x3aa55b,_0x78ba44,_0x37d3d5,_0x1b92f5),..._0x59cbf4]);}[_0xfaec6d(0x154)](_0x3de974,_0x3926ef,_0x15c78d,_0x3bafab){const _0x5cb8b5=_0xfaec6d;let _0x19029e=_0x3de974[_0x5cb8b5(0x2fe)][_0x15c78d],_0x4cc0bc=Array[_0x5cb8b5(0x309)](new Set(_0x3bafab))[_0x5cb8b5(0x249)](_0xc413f7=>_0x19029e[_0x5cb8b5(0x11e)][_0xc413f7]),_0x270552=new Set(_0x4cc0bc),_0x589d90=new _0x445a5d()['invertOp'](_0x3de974,this[_0x5cb8b5(0x1ad)](_0x3de974,_0x15c78d,_0x4cc0bc,_0x270552)),_0x27be75=_0x1912a0(_0x19029e,_0x4cc0bc)[_0x5cb8b5(0xdc)](_0x226569=>this['updateCell'](_0x3926ef,_0x15c78d,_0x226569[_0x5cb8b5(0x1de)],_0x226569['fieldId'],_0x226569[_0x5cb8b5(0xa8)]??''));return _0x2df3da([_0x589d90,..._0x27be75]);}[_0xfaec6d(0x1ad)](_0xecbc2f,_0x440bf0,_0xf5ea3c,_0x2ee655){const _0x4e37cb=_0xfaec6d;let _0x46ccae=_0xecbc2f['tables'][_0x440bf0],_0x36f1ad=_0xf5ea3c[_0x4e37cb(0xdc)](_0x4059d8=>{const _0x50b5de=_0x4e37cb;var _0xd13063;return{'recordId':_0x4059d8,'index':((_0xd13063=_0x46ccae[_0x50b5de(0x12b)])==null?void 0x0:_0xd13063[_0x50b5de(0x12a)](_0x4059d8))??-0x1};})[_0x4e37cb(0x249)](_0x3cc010=>_0x3cc010[_0x4e37cb(0x235)]>=0x0)[_0x4e37cb(0x2f8)]((_0x127be3,_0x52bc7b)=>_0x52bc7b[_0x4e37cb(0x235)]-_0x127be3[_0x4e37cb(0x235)]);return _0x2df3da([..._0xf5ea3c[_0x4e37cb(0xdc)](_0x5a2650=>_0x1cd282[_0x4e37cb(0x268)](G[_0x4e37cb(0x27f)](_0x440bf0,_0x5a2650),_0x46ccae[_0x4e37cb(0x11e)][_0x5a2650])),..._0x36f1ad[_0x4e37cb(0xdc)](({recordId:_0x3616c1,index:_0x117266})=>_0x1cd282[_0x4e37cb(0x268)]([_0x4e37cb(0x2fe),_0x440bf0,_0x4e37cb(0x12b),_0x117266],_0x3616c1)),...this['_deleteAttachmentResources'](_0x46ccae,_0x440bf0,_0x194550=>{const _0x3deb3f=_0x4e37cb;let _0x23a1f5=_0x194550[_0x3deb3f(0x13e)](_0x194550[_0x3deb3f(0xa5)]('\x1f')+0x1);return _0x2ee655[_0x3deb3f(0x25a)](_0x23a1f5);})]);}['duplicateRecord'](_0x51b59a,_0xf1036b,_0x4e63ad,_0x172259){const _0x34aa0b=_0xfaec6d;return this[_0x34aa0b(0x25c)](_0x51b59a,_0xf1036b,{..._0x172259,'values':{..._0x51b59a[_0x34aa0b(0x2fe)][_0xf1036b]['records'][_0x4e63ad][_0x34aa0b(0xa3)],..._0x172259['values'],[_0x434772]:_0x172259['id']}});}[_0xfaec6d(0x2f0)](_0x3e13ab,_0x23f9d5,_0x8f5f98,_0x44fd71){const _0x244306=_0xfaec6d;let _0x2a6963=_0x3e13ab[_0x244306(0x2fe)][_0x23f9d5],_0x2da89e=[...G[_0x244306(0x27f)](_0x23f9d5,_0x8f5f98),_0x244306(0xfd)],_0x37cd4b=Object[_0x244306(0xa3)](_0x2a6963[_0x244306(0x11e)])[_0x244306(0xdc)](_0x554c65=>_0x554c65['id']===_0x8f5f98?{..._0x554c65,'orderKey':_0x44fd71}:_0x554c65)[_0x244306(0x2f8)]((_0x5d92d1,_0x5c3efa)=>String(_0x5d92d1[_0x244306(0xfd)]??_0x5d92d1['id'])[_0x244306(0x29f)](String(_0x5c3efa[_0x244306(0xfd)]??_0x5c3efa['id'])))[_0x244306(0xdc)](_0x4910bd=>_0x4910bd['id']),_0x3d4b56=[...G[_0x244306(0x18d)](_0x23f9d5),_0x244306(0x12b)];return _0x2df3da([this[_0x244306(0x11d)](_0x2da89e,_0x2a6963[_0x244306(0x11e)][_0x8f5f98][_0x244306(0xfd)],_0x44fd71),_0x2a6963[_0x244306(0x12b)]?_0x1cd282[_0x244306(0x1be)](_0x3d4b56,_0x2a6963['recordOrder'],_0x37cd4b):_0x1cd282['insertOp'](_0x3d4b56,_0x37cd4b)]);}['updateCell'](_0x2e3b4a,_0x17cb8d,_0x2f4267,_0x33c49f,_0x25184c){const _0x20d0dd=_0xfaec6d;var _0x15852d,_0xae662;let _0x30c7d2=_0x2e3b4a['tables'][_0x17cb8d],_0xaeff0=jt(_0x30c7d2,_0x2f4267,_0x33c49f)?_0x30c7d2:_0x470fe8(_0x30c7d2),_0x416702=(_0x15852d=_0xaeff0['rowIndex'])==null?void 0x0:_0x15852d[_0x2f4267],_0x4f4552=(_0xae662=_0xaeff0[_0x20d0dd(0x291)])==null?void 0x0:_0xae662[_0x33c49f];if(_0x416702==null||_0x4f4552==null){var _0x274e74;return this[_0x20d0dd(0x11d)](G[_0x20d0dd(0x126)](_0x17cb8d,_0x2f4267,_0x33c49f),(_0x274e74=_0x2e3b4a[_0x20d0dd(0x2fe)][_0x17cb8d])==null||(_0x274e74=_0x274e74[_0x20d0dd(0x11e)][_0x2f4267])==null?void 0x0:_0x274e74[_0x20d0dd(0xa3)][_0x33c49f],_0x25184c);}return this[_0x20d0dd(0x1c9)](_0x2e3b4a,_0x17cb8d,[{'row':_0x416702,'col':_0x4f4552,'value':_0x25184c}]);}[_0xfaec6d(0x1dc)](_0x14e1a3,_0x33eebe,_0x13e982){const _0x3f54ef=_0xfaec6d;let _0x58b38f=_0x14e1a3[_0x3f54ef(0x2fe)][_0x33eebe],_0x59637b=_0x13e982[_0x3f54ef(0xe2)](_0x251f9a=>Object['keys'](_0x251f9a[_0x3f54ef(0xa3)])[_0x3f54ef(0xe2)](_0x4c0f6d=>jt(_0x58b38f,_0x251f9a[_0x3f54ef(0x1de)],_0x4c0f6d)))?_0x58b38f:_0x470fe8(_0x58b38f),_0x2ebbef=_0x13e982['flatMap'](_0x330590=>Object[_0x3f54ef(0xc4)](_0x330590['values'])['flatMap'](([_0x4c256d,_0x47ca4a])=>{const _0x3bf124=_0x3f54ef;var _0x5b049e,_0x227047;let _0x464972=(_0x5b049e=_0x59637b[_0x3bf124(0x117)])==null?void 0x0:_0x5b049e[_0x330590['recordId']],_0xd4a28=(_0x227047=_0x59637b[_0x3bf124(0x291)])==null?void 0x0:_0x227047[_0x4c256d];return _0x464972==null||_0xd4a28==null?[]:[{'row':_0x464972,'col':_0xd4a28,'value':_0x47ca4a}];})),_0x3786f8=_0x13e982[_0x3f54ef(0xce)](_0x5a6abd=>Object[_0x3f54ef(0xc4)](_0x5a6abd[_0x3f54ef(0xf0)]??{})[_0x3f54ef(0xdc)](([_0x2ebb78,_0x111890])=>{const _0xe9a4fa=_0x3f54ef;var _0x5e9cf4;let _0x5930b0=[...G['record'](_0x33eebe,_0x5a6abd[_0xe9a4fa(0x1de)]),_0x2ebb78],_0x35447b=(_0x5e9cf4=_0x14e1a3['tables'][_0x33eebe])==null||(_0x5e9cf4=_0x5e9cf4[_0xe9a4fa(0x11e)][_0x5a6abd[_0xe9a4fa(0x1de)]])==null?void 0x0:_0x5e9cf4[_0x2ebb78];return this[_0xe9a4fa(0x11d)](_0x5930b0,_0x35447b,_0x111890);}));return _0x2df3da([this[_0x3f54ef(0x1c9)](_0x14e1a3,_0x33eebe,_0x2ebbef),..._0x3786f8]);}[_0xfaec6d(0x1c9)](_0x1594ee,_0x540649,_0x5a6488){const _0x4c096d=_0xfaec6d;let _0x22169b=_0x1594ee[_0x4c096d(0x2fe)][_0x540649],_0x5c2665=_0x5a6488[_0x4c096d(0xe2)](_0x44f16e=>Mt(_0x22169b,_0x44f16e[_0x4c096d(0x172)],_0x44f16e[_0x4c096d(0x104)]))?_0x22169b:_0x470fe8(_0x22169b),_0x3dc781=new Map(),_0xc64f79=_0x5a6488[_0x4c096d(0xce)](_0x19da23=>{const _0x4fddd0=_0x4c096d;var _0x1b3391,_0x219894,_0x59de2f,_0x300e2a;let _0x116324=(_0x1b3391=_0x5c2665['colId'])==null?void 0x0:_0x1b3391[_0x19da23[_0x4fddd0(0x104)]],_0x104170=(_0x219894=_0x5c2665[_0x4fddd0(0x20f)])==null?void 0x0:_0x219894[_0x19da23[_0x4fddd0(0x172)]],_0x413704=_0x116324?_0x5c2665['fields'][_0x116324]:void 0x0;if(_0x116324===_0x434772||(_0x413704==null?void 0x0:_0x413704[_0x4fddd0(0x211)])===_0x2657c4[_0x4fddd0(0x2e2)])throw Error(_0x4fddd0(0x2a1));let _0x554e0f=_0x3a4492(_0x19da23[_0x4fddd0(0xca)],_0x413704),_0x5d5028=(_0x59de2f=_0x5c2665[_0x4fddd0(0x30f)])==null||(_0x59de2f=_0x59de2f[_0x19da23[_0x4fddd0(0x172)]])==null?void 0x0:_0x59de2f[_0x19da23[_0x4fddd0(0x104)]],_0x4888f8=this['_replaceOptional'](G['cellData'](_0x540649,_0x19da23['row'],_0x19da23['col']),_0x5d5028,_0x554e0f);if(!_0x116324||!_0x104170)return[_0x4888f8];let _0x423bb4=(_0x300e2a=_0x5c2665[_0x4fddd0(0x11e)][_0x104170])==null?void 0x0:_0x300e2a[_0x4fddd0(0xa3)][_0x116324],_0x34d0e2=(_0x413704==null?void 0x0:_0x413704[_0x4fddd0(0x211)])===_0x2657c4['Attachment']?_0x59ed6d(_0x19da23[_0x4fddd0(0xca)]):_0x52feca(_0x19da23['value'],_0x554e0f,_0x413704,_0x5c2665,_0x104170),_0x4e4d3f=[_0x4888f8,this['_replaceOptional'](G[_0x4fddd0(0x126)](_0x540649,_0x104170,_0x116324),_0x423bb4,_0x34d0e2)];return(_0x413704==null?void 0x0:_0x413704[_0x4fddd0(0x211)])===_0x2657c4[_0x4fddd0(0x114)]&&_0x3dc781[_0x4fddd0(0x2cd)](_0x3c69d2(_0x116324,_0x104170),{'recordId':_0x104170,'fieldId':_0x116324,'attachments':_0x34d0e2}),_0x4e4d3f;});return _0xc64f79[_0x4c096d(0x317)]?_0x2df3da([..._0xc64f79,...this[_0x4c096d(0x305)](_0x5c2665,_0x540649,Array[_0x4c096d(0x309)](_0x3dc781['values']()))]):_0x1cd282[_0x4c096d(0x1be)]([_0x4c096d(0x2fe),_0x540649,_0x4c096d(0x30f)],_0x5c2665[_0x4c096d(0x30f)],_0x5c2665[_0x4c096d(0x30f)]);}['createField'](_0xa9a387,_0x18f62d,_0x3b344b){const _0x280851=_0xfaec6d;let _0x561763=_0xa9a387[_0x280851(0x2fe)][_0x18f62d];if(_0x561763['fields'][_0x3b344b[_0x280851(0x145)]['id']]||_0x561763[_0x280851(0x1b0)][_0x280851(0x15c)](_0x3b344b[_0x280851(0x145)]['id']))return _0x1cd282[_0x280851(0x1be)]([_0x280851(0x2fe),_0x18f62d,_0x280851(0x1b0)],_0x561763[_0x280851(0x1b0)],_0x561763[_0x280851(0x1b0)]);let _0x54b101=Math[_0x280851(0x236)](0x1,_0x3b344b[_0x280851(0x235)]??_0x561763[_0x280851(0x1b0)]['length']),_0x3cdb61=Object[_0x280851(0xa3)](_0x561763[_0x280851(0x25e)]??{})[_0x280851(0xce)](_0x1d1623=>{const _0x454962=_0x280851;var _0x477f55;if(!_0x1d1623['fieldOrder']||_0x1d1623[_0x454962(0x1b0)][_0x454962(0x15c)](_0x3b344b[_0x454962(0x145)]['id']))return[];let _0x40fc44=It(((_0x477f55=_0x3b344b[_0x454962(0x1d0)])==null?void 0x0:_0x477f55[_0x1d1623['id']])??_0x54b101,_0x1d1623[_0x454962(0x1b0)][_0x454962(0x317)]);return[_0x1cd282[_0x454962(0xc1)]([...G[_0x454962(0x2a2)](_0x18f62d,_0x1d1623['id']),_0x454962(0x1b0),_0x40fc44],_0x3b344b[_0x454962(0x145)]['id'])];});return _0x2df3da([..._0x3b344b[_0x280851(0x145)][_0x280851(0x211)]===_0x2657c4['Formula']?this[_0x280851(0x15e)](_0xa9a387):[],_0x1cd282[_0x280851(0xc1)](G['field'](_0x18f62d,_0x3b344b[_0x280851(0x145)]['id']),_0x3b344b[_0x280851(0x145)]),_0x1cd282[_0x280851(0xc1)](G[_0x280851(0x1b0)](_0x18f62d,_0x54b101),_0x3b344b[_0x280851(0x145)]['id']),..._0x3cdb61]);}[_0xfaec6d(0x2c4)](_0xa269fd,_0x1dd1b1,_0x86f80f,_0x25b04a){const _0x28478b=_0xfaec6d;let _0x4f1881=_0xa269fd[_0x28478b(0x2fe)][_0x1dd1b1];if(!_0x4f1881['fields'][_0x86f80f]||_0x4f1881['fields'][_0x25b04a['field']['id']]||_0x4f1881[_0x28478b(0x1b0)][_0x28478b(0x15c)](_0x25b04a[_0x28478b(0x145)]['id']))return _0x1cd282[_0x28478b(0x1be)](['tables',_0x1dd1b1,'fieldOrder'],_0x4f1881['fieldOrder'],_0x4f1881['fieldOrder']);let _0x553559=_0x25b04a[_0x28478b(0x235)]??_0x4f1881[_0x28478b(0x1b0)][_0x28478b(0x12a)](_0x86f80f)+0x1,_0x5b35a8=_0x4f1881['fieldOrder']['filter'](_0x2f3351=>_0x2f3351!==_0x25b04a[_0x28478b(0x145)]['id']),_0x33203c=Pt(_0x5b35a8,_0x25b04a['field']['id'],_0x553559),_0x49d373=Object['values'](_0x4f1881['views']??{})[_0x28478b(0xce)](_0x5c24a4=>{const _0x1a575e=_0x28478b;var _0x3f4764,_0xf3e718,_0x1ff3ab,_0x1eebbe;let _0x313781=(_0x3f4764=_0x5c24a4['fieldOrder'])!=null&&_0x3f4764[_0x1a575e(0x317)]?_0x5c24a4[_0x1a575e(0x1b0)]:_0x5b35a8;if(_0x313781[_0x1a575e(0x15c)](_0x25b04a[_0x1a575e(0x145)]['id']))return[];let _0x54b182=Pt(_0x313781,_0x25b04a[_0x1a575e(0x145)]['id'],((_0xf3e718=_0x25b04a[_0x1a575e(0x1d0)])==null?void 0x0:_0xf3e718[_0x5c24a4['id']])??_0x553559),_0x3e97d2=(_0x1ff3ab=_0x5c24a4[_0x1a575e(0x2c1)])==null?void 0x0:_0x1ff3ab[_0x86f80f];return[this[_0x1a575e(0x11d)]([...G['view'](_0x1dd1b1,_0x5c24a4['id']),_0x1a575e(0x1b0)],_0x5c24a4[_0x1a575e(0x1b0)],_0x54b182),..._0x3e97d2?[this[_0x1a575e(0x11d)]([...G[_0x1a575e(0x2a2)](_0x1dd1b1,_0x5c24a4['id']),_0x1a575e(0x2c1),_0x25b04a['field']['id']],(_0x1eebbe=_0x5c24a4[_0x1a575e(0x2c1)])==null?void 0x0:_0x1eebbe[_0x25b04a[_0x1a575e(0x145)]['id']],_0x3e97d2)]:[]];}),_0x14402d=Object[_0x28478b(0xa3)](_0x4f1881[_0x28478b(0x11e)])['filter'](_0x362673=>Object[_0x28478b(0x119)][_0x28478b(0x283)]['call'](_0x362673[_0x28478b(0xa3)],_0x86f80f))[_0x28478b(0xdc)](_0x44c2d8=>this['_replaceOptional'](G[_0x28478b(0x126)](_0x1dd1b1,_0x44c2d8['id'],_0x25b04a[_0x28478b(0x145)]['id']),_0x44c2d8[_0x28478b(0xa3)][_0x25b04a[_0x28478b(0x145)]['id']],_0x44c2d8[_0x28478b(0xa3)][_0x86f80f]));return _0x2df3da([..._0x25b04a[_0x28478b(0x145)][_0x28478b(0x211)]===_0x2657c4['Formula']?this[_0x28478b(0x15e)](_0xa269fd):[],_0x1cd282[_0x28478b(0xc1)](G['field'](_0x1dd1b1,_0x25b04a[_0x28478b(0x145)]['id']),_0x25b04a[_0x28478b(0x145)]),_0x1cd282[_0x28478b(0x1be)]([_0x28478b(0x2fe),_0x1dd1b1,'fieldOrder'],_0x4f1881[_0x28478b(0x1b0)],_0x33203c),..._0x49d373,..._0x14402d]);}[_0xfaec6d(0x135)](_0x5d314e,_0x4e1eaa,_0x28b9c2,_0x3690a1){const _0x175bd5=_0xfaec6d;let _0x50d66f=_0x5d314e[_0x175bd5(0x2fe)][_0x4e1eaa][_0x175bd5(0x10e)][_0x28b9c2],_0x373378={..._0x50d66f,..._0x3690a1};Object[_0x175bd5(0x2d7)](_0x3690a1)[_0x175bd5(0x1a4)](_0x4e7453=>{_0x3690a1[_0x4e7453]===void 0x0&&delete _0x373378[_0x4e7453];});let _0x15f465=Et(_0x5d314e['tables'][_0x4e1eaa],_0x28b9c2,_0x50d66f,_0x373378);_0x373378=_0x15f465[_0x175bd5(0x145)];let _0x32b685=_0x1cd282[_0x175bd5(0x1be)](G[_0x175bd5(0x145)](_0x4e1eaa,_0x28b9c2),_0x50d66f,_0x373378);return _0x373378['type']===_0x2657c4['Formula']?_0x2df3da([...this[_0x175bd5(0x15e)](_0x5d314e),_0x32b685,...this['_setFormulaFieldCells'](_0x5d314e,_0x4e1eaa,_0x28b9c2,_0x373378)]):_0x2df3da([_0x32b685,..._0x15f465[_0x175bd5(0x27c)][_0x175bd5(0x317)]?[this[_0x175bd5(0x1c9)](_0x5d314e,_0x4e1eaa,_0x15f465[_0x175bd5(0x27c)])]:[]]);}['changeFieldType'](_0x482019,_0x58d148,_0x28d96e,_0x38c733){const _0xae46fa=_0xfaec6d;return this[_0xae46fa(0x135)](_0x482019,_0x58d148,_0x28d96e,_0x38c733);}[_0xfaec6d(0x9e)](_0xd21887,_0x5e62e0,_0x3ea2f7){const _0x31cbff=_0xfaec6d;let _0x37a451=_0xd21887['tables'][_0x5e62e0];if(!(_0x37a451!=null&&_0x37a451['fields'][_0x3ea2f7])||_0x37a451[_0x31cbff(0xaf)]===_0x3ea2f7||_0x3ea2f7===_0x434772)return _0x1cd282[_0x31cbff(0x1be)]([_0x31cbff(0x2fe),_0x5e62e0,_0x31cbff(0x1b0)],_0x37a451==null?void 0x0:_0x37a451[_0x31cbff(0x1b0)],_0x37a451==null?void 0x0:_0x37a451[_0x31cbff(0x1b0)]);let _0x508782=_0x37a451[_0x31cbff(0x1b0)][_0x31cbff(0x12a)](_0x3ea2f7),_0x5e68fa=Object[_0x31cbff(0xa3)](_0x37a451[_0x31cbff(0x25e)])[_0x31cbff(0xce)](_0x34f384=>{const _0x350ec8=_0x31cbff;var _0x7a8b47,_0x20b84f,_0x48e85c,_0x118316,_0x420837,_0xdf63f1,_0x501a55;let _0x1b0256=[],_0x1d6541=((_0x7a8b47=_0x34f384[_0x350ec8(0x1b0)])==null?void 0x0:_0x7a8b47[_0x350ec8(0x12a)](_0x3ea2f7))??-0x1;_0x1d6541>=0x0&&_0x1b0256[_0x350ec8(0x27e)](_0x1cd282['removeOp']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),_0x350ec8(0x1b0),_0x1d6541],_0x3ea2f7));let _0x506750=(_0x20b84f=_0x34f384['fieldSettings'])==null?void 0x0:_0x20b84f[_0x3ea2f7];_0x506750!==void 0x0&&_0x1b0256['push'](_0x1cd282['removeOp']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),'fieldSettings',_0x3ea2f7],_0x506750));let _0xca2d06=_0x34f384[_0x350ec8(0x249)]?{..._0x34f384[_0x350ec8(0x249)],'conditions':_0x34f384[_0x350ec8(0x249)]['conditions'][_0x350ec8(0x249)](_0x584c1b=>_0x584c1b[_0x350ec8(0x2c3)]!==_0x3ea2f7)}:_0x34f384[_0x350ec8(0x249)];_0xca2d06&&_0xca2d06[_0x350ec8(0xbb)][_0x350ec8(0x317)]!==((_0x48e85c=_0x34f384[_0x350ec8(0x249)])==null?void 0x0:_0x48e85c[_0x350ec8(0xbb)][_0x350ec8(0x317)])&&_0x1b0256[_0x350ec8(0x27e)](this['_replaceOptional']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),_0x350ec8(0x249)],_0x34f384[_0x350ec8(0x249)],_0xca2d06));let _0x29a145=(_0x118316=_0x34f384[_0x350ec8(0x2f8)])==null?void 0x0:_0x118316[_0x350ec8(0x249)](_0x2bbc35=>_0x2bbc35[_0x350ec8(0x2c3)]!==_0x3ea2f7);_0x29a145&&_0x29a145[_0x350ec8(0x317)]!==((_0x420837=_0x34f384[_0x350ec8(0x2f8)])==null?void 0x0:_0x420837['length'])&&_0x1b0256[_0x350ec8(0x27e)](this['_replaceOptional']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),_0x350ec8(0x2f8)],_0x34f384['sort'],_0x29a145));let _0x309f31=(_0xdf63f1=_0x34f384[_0x350ec8(0x26f)])==null?void 0x0:_0xdf63f1[_0x350ec8(0x249)](_0x1481e6=>_0x1481e6[_0x350ec8(0x2c3)]!==_0x3ea2f7);_0x309f31&&_0x309f31[_0x350ec8(0x317)]!==((_0x501a55=_0x34f384[_0x350ec8(0x26f)])==null?void 0x0:_0x501a55['length'])&&_0x1b0256[_0x350ec8(0x27e)](this['_replaceOptional']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),_0x350ec8(0x26f)],_0x34f384[_0x350ec8(0x26f)],_0x309f31));let _0x5947a1=Ft(_0x34f384[_0x350ec8(0x2c6)],_0x3ea2f7);return JSON[_0x350ec8(0xe9)](_0x5947a1)!==JSON[_0x350ec8(0xe9)](_0x34f384[_0x350ec8(0x2c6)])&&_0x1b0256['push'](_0x1cd282['replaceOp']([...G[_0x350ec8(0x2a2)](_0x5e62e0,_0x34f384['id']),_0x350ec8(0x2c6)],_0x34f384[_0x350ec8(0x2c6)],_0x5947a1)),_0x1b0256;}),_0x24a907=Object[_0x31cbff(0xa3)](_0x37a451['records'])[_0x31cbff(0xce)](_0x4a4415=>Object[_0x31cbff(0x119)]['hasOwnProperty'][_0x31cbff(0x2cc)](_0x4a4415['values'],_0x3ea2f7)?[_0x1cd282['removeOp'](G[_0x31cbff(0x126)](_0x5e62e0,_0x4a4415['id'],_0x3ea2f7),_0x4a4415[_0x31cbff(0xa3)][_0x3ea2f7])]:[]);return _0x2df3da([_0x1cd282[_0x31cbff(0x268)](G[_0x31cbff(0x145)](_0x5e62e0,_0x3ea2f7),_0x37a451['fields'][_0x3ea2f7]),_0x1cd282[_0x31cbff(0x268)](G[_0x31cbff(0x1b0)](_0x5e62e0,_0x508782),_0x3ea2f7),..._0x5e68fa,..._0x24a907,...this[_0x31cbff(0x146)](_0x37a451,_0x5e62e0,_0x454c93=>_0x454c93[_0x31cbff(0xe5)](_0x3ea2f7+'\x1f'))]);}['moveField'](_0x54d216,_0x456a61,_0x1878a8,_0x4369cf){const _0x23db04=_0xfaec6d;let _0x56ae5b=_0x54d216[_0x23db04(0x2fe)][_0x456a61][_0x23db04(0x1b0)];if(_0x1878a8===_0x434772||_0x4369cf['beforeFieldId']===_0x434772)throw Error(_0x23db04(0x1a7));let _0x27cd11=Nt(_0x56ae5b,_0x1878a8,_0x4369cf);return _0x1cd282[_0x23db04(0x1be)]([_0x23db04(0x2fe),_0x456a61,'fieldOrder'],_0x56ae5b,_0x27cd11);}[_0xfaec6d(0x1f0)](_0x4ac5a9,_0x24cd10,_0x3d6b4e,_0x52d936=_0x4ac5a9[_0xfaec6d(0x2fe)][_0x24cd10]['viewOrder'][_0xfaec6d(0x317)]){const _0x3e40c8=_0xfaec6d;return _0x2df3da([_0x1cd282[_0x3e40c8(0xc1)](G[_0x3e40c8(0x2a2)](_0x24cd10,_0x3d6b4e['id']),_0x3d6b4e),_0x1cd282[_0x3e40c8(0xc1)]([_0x3e40c8(0x2fe),_0x24cd10,_0x3e40c8(0xa0),_0x52d936],_0x3d6b4e['id'])]);}[_0xfaec6d(0x129)](_0xdebace,_0x394df3,_0x1e7c85,_0x34709b){const _0x334ef7=_0xfaec6d;return _0x1cd282[_0x334ef7(0x1be)]([...G[_0x334ef7(0x2a2)](_0x394df3,_0x1e7c85),_0x334ef7(0x267)],_0xdebace[_0x334ef7(0x2fe)][_0x394df3]['views'][_0x1e7c85][_0x334ef7(0x267)],_0x34709b);}['deleteView'](_0x549980,_0x11fda1,_0x1661db){const _0x3df23a=_0xfaec6d;let _0x2f4058=_0x549980[_0x3df23a(0x2fe)][_0x11fda1],_0x27055f=_0x2f4058[_0x3df23a(0x25e)][_0x1661db],_0x479851=_0x2f4058['viewOrder'][_0x3df23a(0x12a)](_0x1661db);return _0x2df3da([_0x1cd282[_0x3df23a(0x268)](G[_0x3df23a(0x2a2)](_0x11fda1,_0x1661db),_0x27055f),_0x1cd282[_0x3df23a(0x268)]([_0x3df23a(0x2fe),_0x11fda1,_0x3df23a(0xa0),_0x479851],_0x1661db)]);}['moveView'](_0x232e74,_0x2fbe76,_0x2431d7,_0x4d7831){const _0x3012eb=_0xfaec6d;let _0x446bc4=_0x232e74[_0x3012eb(0x2fe)][_0x2fbe76][_0x3012eb(0xa0)],_0x9a6d03=Nt(_0x446bc4,_0x2431d7,{'beforeFieldId':_0x4d7831[_0x3012eb(0x23e)],'afterFieldId':_0x4d7831[_0x3012eb(0x2f5)]});return _0x1cd282[_0x3012eb(0x1be)](['tables',_0x2fbe76,'viewOrder'],_0x446bc4,_0x9a6d03);}[_0xfaec6d(0x1b1)](_0x52b26f,_0x3cae6a,_0x268e6d,_0x1e3e2c){const _0x17ccff=_0xfaec6d;let _0x2da9af=_0x52b26f[_0x17ccff(0x2fe)][_0x3cae6a][_0x17ccff(0x25e)][_0x268e6d][_0x17ccff(0x2c6)]??{},_0x49779a={..._0x2da9af,..._0x1e3e2c};return Object[_0x17ccff(0x2d7)](_0x1e3e2c)[_0x17ccff(0x1a4)](_0x37a1dd=>{_0x1e3e2c[_0x37a1dd]===void 0x0&&delete _0x49779a[_0x37a1dd];}),_0x1cd282['replaceOp']([...G[_0x17ccff(0x2a2)](_0x3cae6a,_0x268e6d),_0x17ccff(0x2c6)],_0x2da9af,_0x49779a);}[_0xfaec6d(0x24f)](_0x1431ac,_0x126da8,_0x5c944b,_0x292b2f){const _0x4dd00a=_0xfaec6d;return this[_0x4dd00a(0x11d)]([...G['view'](_0x126da8,_0x5c944b),_0x4dd00a(0x249)],_0x1431ac[_0x4dd00a(0x2fe)][_0x126da8]['views'][_0x5c944b]['filter'],_0x292b2f);}[_0xfaec6d(0xd7)](_0x239ce6,_0x27b440,_0x382e8e,_0x1addf6){const _0x576402=_0xfaec6d;return this[_0x576402(0x11d)]([...G[_0x576402(0x2a2)](_0x27b440,_0x382e8e),_0x576402(0x2f8)],_0x239ce6[_0x576402(0x2fe)][_0x27b440][_0x576402(0x25e)][_0x382e8e][_0x576402(0x2f8)],_0x1addf6);}['setViewGroup'](_0x1b5afc,_0x3778bf,_0x58364b,_0xb26246){const _0x4d873f=_0xfaec6d;return this['_replaceOptional']([...G[_0x4d873f(0x2a2)](_0x3778bf,_0x58364b),_0x4d873f(0x26f)],_0x1b5afc['tables'][_0x3778bf][_0x4d873f(0x25e)][_0x58364b][_0x4d873f(0x26f)],_0xb26246);}[_0xfaec6d(0x190)](_0xb103ad,_0x58c3e2,_0x132d67,_0xb9e0a1,_0x33df6c){const _0xc07985=_0xfaec6d;return this[_0xc07985(0x113)](_0xb103ad,_0x58c3e2,_0x132d67,_0xb9e0a1,{'hidden':!_0x33df6c});}[_0xfaec6d(0x285)](_0x3c62ba,_0x857049,_0x53c996,_0x338234,_0x583bcc){return this['_setViewFieldSetting'](_0x3c62ba,_0x857049,_0x53c996,_0x338234,{'width':_0x583bcc});}[_0xfaec6d(0x227)](_0x23d4c2,_0x42c384,_0x322314,_0x48509b,_0x187ed9){const _0x1213ed=_0xfaec6d;let _0x114905=_0x23d4c2['tables'][_0x42c384][_0x1213ed(0x25e)][_0x322314],_0xb776ee=Nt(_0x114905[_0x1213ed(0x1b0)]??_0x23d4c2[_0x1213ed(0x2fe)][_0x42c384][_0x1213ed(0x1b0)],_0x48509b,_0x187ed9);return this[_0x1213ed(0x11d)]([...G[_0x1213ed(0x2a2)](_0x42c384,_0x322314),_0x1213ed(0x1b0)],_0x114905[_0x1213ed(0x1b0)],_0xb776ee);}['_setViewFieldSetting'](_0xb23171,_0x2067f,_0x16badf,_0x159c46,_0x58e653){const _0x308525=_0xfaec6d;let _0x13c119=_0xb23171[_0x308525(0x2fe)][_0x2067f][_0x308525(0x25e)][_0x16badf][_0x308525(0x2c1)]??{},_0x3594ee={..._0x13c119,[_0x159c46]:{..._0x13c119[_0x159c46],..._0x58e653}};return this[_0x308525(0x11d)]([...G[_0x308525(0x2a2)](_0x2067f,_0x16badf),'fieldSettings'],_0xb23171[_0x308525(0x2fe)][_0x2067f]['views'][_0x16badf][_0x308525(0x2c1)],_0x3594ee);}[_0xfaec6d(0x1e7)](_0x537973,_0x224716,_0x1d4cdb){const _0x2c027e=_0xfaec6d;let _0x3263f5=_0x537973['tables'][_0x224716],_0x406813=new Set(_0x1d4cdb['map'](_0x302d1d=>_0x302d1d['id'])),_0x1b5ed1=[...Object['values'](_0x3263f5[_0x2c027e(0x11e)])['filter'](_0x39be08=>!_0x406813[_0x2c027e(0x25a)](_0x39be08['id'])),..._0x1d4cdb][_0x2c027e(0x2f8)]((_0x2e9438,_0x180a7d)=>String(_0x2e9438[_0x2c027e(0xfd)]??_0x2e9438['id'])[_0x2c027e(0x29f)](String(_0x180a7d[_0x2c027e(0xfd)]??_0x180a7d['id'])))[_0x2c027e(0xdc)](_0x4698c2=>_0x4698c2['id']),_0x4ebc3d=[...G[_0x2c027e(0x18d)](_0x224716),'recordOrder'];return _0x3263f5[_0x2c027e(0x12b)]?_0x1cd282['replaceOp'](_0x4ebc3d,_0x3263f5[_0x2c027e(0x12b)],_0x1b5ed1):_0x1cd282[_0x2c027e(0xc1)](_0x4ebc3d,_0x1b5ed1);}[_0xfaec6d(0x15e)](_0x598fc4,_0x151749=new Set()){const _0x1b37c=_0xfaec6d;let _0x5c2ce0=_0x49875a(_0x598fc4);return Object[_0x1b37c(0xa3)](_0x598fc4['tables'])['filter'](_0x33a2eb=>!_0x151749[_0x1b37c(0x25a)](_0x33a2eb['id']))[_0x1b37c(0x2f8)]((_0x14471c,_0x5440cf)=>_0x14471c['id']['localeCompare'](_0x5440cf['id']))[_0x1b37c(0xce)](_0x1201e0=>{const _0x3ae227=_0x1b37c;let _0x25c252=_0x5c2ce0[_0x3ae227(0x216)](_0x1201e0['id']);return!_0x25c252||_0x1201e0[_0x3ae227(0x19e)]===_0x25c252?[]:[this[_0x3ae227(0x11d)]([...G[_0x3ae227(0x18d)](_0x1201e0['id']),'formulaName'],_0x1201e0[_0x3ae227(0x19e)],_0x25c252)];});}[_0xfaec6d(0x193)](_0x4e6594,_0x8fd526,_0x3b5f04,_0x318c22){const _0x38c9a7=_0xfaec6d;var _0x384717,_0x27ddd1;let _0x56d706=_0x470fe8(_0x4e6594['tables'][_0x8fd526]),_0x435068=String(((_0x384717=_0x318c22[_0x38c9a7(0x2c6)])==null?void 0x0:_0x384717[_0x38c9a7(0x315)])??'')[_0x38c9a7(0x2fc)](),_0xb47928=(_0x27ddd1=_0x56d706[_0x38c9a7(0x291)])==null?void 0x0:_0x27ddd1[_0x3b5f04];if(_0xb47928==null)return[];let _0x48424d=_0x56d706[_0x38c9a7(0x12b)]??Object[_0x38c9a7(0x2d7)](_0x56d706[_0x38c9a7(0x11e)]),_0x2e7f3d=_0x48424d[_0x38c9a7(0xdc)](_0x6319af=>{const _0x536ea7=_0x38c9a7;var _0x5ad7d4;return(_0x5ad7d4=_0x56d706[_0x536ea7(0x117)])==null?void 0x0:_0x5ad7d4[_0x6319af];})[_0x38c9a7(0x158)](_0x5e8c69=>_0x5e8c69!=null);return _0x48424d['flatMap'](_0x861830=>{const _0x3ef928=_0x38c9a7;var _0x2e0cae,_0x3790d8;let _0x226e8d=(_0x2e0cae=_0x56d706['rowIndex'])==null?void 0x0:_0x2e0cae[_0x861830];if(_0x226e8d==null)return[];let _0x246cbd=(_0x3790d8=_0x56d706[_0x3ef928(0x30f)])==null||(_0x3790d8=_0x3790d8[_0x226e8d])==null?void 0x0:_0x3790d8[_0xb47928],_0x3a94bc=_0x435068?_0x226e8d===_0x2e7f3d?{'f':_0x435068,'si':_0x3b5f04}:{'si':_0x3b5f04}:{'v':null,'t':null};return[this[_0x3ef928(0x11d)](G[_0x3ef928(0x30f)](_0x8fd526,_0x226e8d,_0xb47928),_0x246cbd,_0x3a94bc)];});}[_0xfaec6d(0x305)](_0x8927ac,_0x237707,_0x2c4d23){const _0x41f765=_0xfaec6d;var _0x58a43a;let _0x36c0cf=new Map(Object[_0x41f765(0xc4)](((_0x58a43a=_0x8927ac[_0x41f765(0x138)])==null?void 0x0:_0x58a43a['attachmentSets'])??{})),_0x342923=new Map(),_0x4ffbf3=new Set(),_0x18bff1=_0x2c4d23[_0x41f765(0xdc)](({recordId:_0x1f30e7,fieldId:_0x2f1c61,attachments:_0x466de5})=>{const _0x4e1f0b=_0x41f765;var _0x2b4e70;let _0xe95da1=_0x3c69d2(_0x2f1c61,_0x1f30e7),_0x2f5f91=_0x466de5[_0x4e1f0b(0xdc)]((_0x50aa11,_0x3dcea6)=>String(_0x50aa11['id']??_0xe95da1+'\x1f'+_0x3dcea6));return _0x4ffbf3[_0x4e1f0b(0xe7)](_0xe95da1),_0x36c0cf['set'](_0xe95da1,_0x2f5f91),_0x466de5[_0x4e1f0b(0x1a4)]((_0x3d96a7,_0x5d74a0)=>{const _0x43d8fe=_0x4e1f0b;let _0x3e7329=_0x2f5f91[_0x5d74a0];_0x342923[_0x43d8fe(0x2cd)](_0x3e7329,{..._0x3d96a7,'id':_0x3e7329});}),this[_0x4e1f0b(0x11d)](G['attachmentSet'](_0x237707,_0xe95da1),(_0x2b4e70=_0x8927ac[_0x4e1f0b(0x138)])==null||(_0x2b4e70=_0x2b4e70['attachmentSets'])==null?void 0x0:_0x2b4e70[_0xe95da1],_0x2f5f91);}),_0xf5dd31=Array[_0x41f765(0x309)](_0x342923)['map'](([_0x5b8e51,_0x3c8f4a])=>{const _0x53ab71=_0x41f765;var _0x40f419;return this[_0x53ab71(0x11d)](G['attachment'](_0x237707,_0x5b8e51),(_0x40f419=_0x8927ac[_0x53ab71(0x138)])==null||(_0x40f419=_0x40f419[_0x53ab71(0x187)])==null?void 0x0:_0x40f419[_0x5b8e51],_0x3c8f4a);}),_0x3306ce=new Set(Array['from'](_0x36c0cf[_0x41f765(0xa3)]())[_0x41f765(0x255)]()),_0x33ab00=new Set(Array[_0x41f765(0x309)](_0x4ffbf3)[_0x41f765(0xce)](_0x1fea0c=>{const _0x255688=_0x41f765;var _0x49b010;return((_0x49b010=_0x8927ac['resources'])==null||(_0x49b010=_0x49b010[_0x255688(0x9d)])==null?void 0x0:_0x49b010[_0x1fea0c])??[];})),_0xc261d1=Array[_0x41f765(0x309)](_0x33ab00)[_0x41f765(0xce)](_0x3b0f27=>{const _0x3dcad=_0x41f765;var _0x5bf0cf;let _0x344dbd=(_0x5bf0cf=_0x8927ac[_0x3dcad(0x138)])==null||(_0x5bf0cf=_0x5bf0cf['attachments'])==null?void 0x0:_0x5bf0cf[_0x3b0f27];return _0x344dbd!==void 0x0&&!_0x3306ce[_0x3dcad(0x25a)](_0x3b0f27)?[_0x1cd282[_0x3dcad(0x268)](G[_0x3dcad(0x239)](_0x237707,_0x3b0f27),_0x344dbd)]:[];});return[..._0x18bff1,..._0xf5dd31,..._0xc261d1];}[_0xfaec6d(0x146)](_0x25764d,_0x4af3e3,_0x46f2bd){const _0x276bcb=_0xfaec6d;var _0x1be413;let _0x4448b7=((_0x1be413=_0x25764d['resources'])==null?void 0x0:_0x1be413['attachmentSets'])??{},_0x591381=Object[_0x276bcb(0xc4)](_0x4448b7)['filter'](([_0x7b0bf5])=>_0x46f2bd(_0x7b0bf5));if(!_0x591381[_0x276bcb(0x317)])return[];let _0x59a585=new Set(Object[_0x276bcb(0xc4)](_0x4448b7)['filter'](([_0x5e07dc])=>!_0x46f2bd(_0x5e07dc))[_0x276bcb(0xce)](([,_0x1dac8a])=>_0x1dac8a)),_0x2aa9fd=new Set(_0x591381[_0x276bcb(0xce)](([,_0x57361d])=>_0x57361d));return[..._0x591381['map'](([_0x1f8a0d,_0xb14f0a])=>_0x1cd282['removeOp'](G['attachmentSet'](_0x4af3e3,_0x1f8a0d),_0xb14f0a)),...Array[_0x276bcb(0x309)](_0x2aa9fd)[_0x276bcb(0xce)](_0xf6bf05=>{const _0x4918e4=_0x276bcb;var _0x4d65e0;let _0x3575c6=(_0x4d65e0=_0x25764d['resources'])==null||(_0x4d65e0=_0x4d65e0[_0x4918e4(0x187)])==null?void 0x0:_0x4d65e0[_0xf6bf05];return _0x3575c6!==void 0x0&&!_0x59a585['has'](_0xf6bf05)?[_0x1cd282[_0x4918e4(0x268)](G[_0x4918e4(0x239)](_0x4af3e3,_0xf6bf05),_0x3575c6)]:[];})];}['_replaceOptional'](_0x45e63e,_0x17d1a7,_0x195bb7){const _0x62f0c=_0xfaec6d;return _0x17d1a7===void 0x0?_0x1cd282['insertOp'](_0x45e63e,_0x195bb7):_0x1cd282[_0x62f0c(0x1be)](_0x45e63e,_0x17d1a7,_0x195bb7);}};function Et(_0x3df64f,_0x40b236,_0x388bc4,_0x14708d){const _0x48bca6=_0xfaec6d;var _0x571432;let _0x4d6409=_0x14708d['type'];if(_0x388bc4[_0x48bca6(0x211)]!==_0x4d6409||_0x4d6409!==_0x2657c4[_0x48bca6(0x2f3)]&&_0x4d6409!==_0x2657c4[_0x48bca6(0x157)]||Dt(_0x14708d[_0x48bca6(0x2c6)][_0x48bca6(0x1fa)]))return{'field':_0x14708d,'patches':[]};let _0x23db32=Ot(_0x388bc4),_0x5bbf76=Ot(_0x14708d);if(![..._0x23db32][_0x48bca6(0x2e6)](_0x16e636=>!_0x5bbf76[_0x48bca6(0x25a)](_0x16e636)))return{'field':_0x14708d,'patches':[]};let _0x40b4f9=kt(_0x14708d[_0x48bca6(0x2c5)],_0x5bbf76,_0x4d6409),_0x43371b=At(_0x40b4f9,_0x14708d['defaultValue'])?_0x14708d:{..._0x14708d,'defaultValue':_0x40b4f9},_0x401b73=_0x470fe8(_0x3df64f),_0x1c401d=(_0x571432=_0x401b73[_0x48bca6(0x291)])==null?void 0x0:_0x571432[_0x40b236];return _0x1c401d==null?{'field':_0x43371b,'patches':[]}:{'field':_0x43371b,'patches':(_0x401b73[_0x48bca6(0x12b)]??[])['flatMap'](_0x8f2567=>{const _0x4774d8=_0x48bca6;var _0x543239,_0x249fb1;let _0x20e8cc=(_0x543239=_0x401b73['rowIndex'])==null?void 0x0:_0x543239[_0x8f2567],_0xf6d028=(_0x249fb1=_0x401b73[_0x4774d8(0x11e)][_0x8f2567])==null?void 0x0:_0x249fb1[_0x4774d8(0xa3)][_0x40b236],_0x45e52c=kt(_0xf6d028,_0x5bbf76,_0x4d6409);return _0x20e8cc==null||At(_0x45e52c,_0xf6d028)?[]:[{'row':_0x20e8cc,'col':_0x1c401d,'value':_0x45e52c??null}];})};}function Dt(_0x38bcee){const _0x3013bf=_0xfaec6d;return typeof _0x38bcee==_0x3013bf(0x148)&&!!_0x38bcee&&'type'in _0x38bcee&&_0x38bcee['type']==='field';}function Ot(_0x4652f0){const _0x48722f=_0xfaec6d;var _0x2e83b9;let _0x2a0386=Array[_0x48722f(0x183)]((_0x2e83b9=_0x4652f0[_0x48722f(0x2c6)])==null?void 0x0:_0x2e83b9[_0x48722f(0x2d3)])?_0x4652f0[_0x48722f(0x2c6)][_0x48722f(0x2d3)]:[];return new Set(_0x2a0386[_0x48722f(0xce)](_0x47c249=>{const _0x1fa690=_0x48722f;if(!_0x47c249||typeof _0x47c249!=_0x1fa690(0x148)||!('id'in _0x47c249))return[];let _0x4715d2=String(_0x47c249['id']);return _0x4715d2?[_0x4715d2]:[];}));}function kt(_0x39b26f,_0x527ed6,_0x507967){const _0x5f4c7a=_0xfaec6d;if(_0x39b26f==null||_0x39b26f==='')return _0x39b26f;if(_0x507967===_0x2657c4['SingleSelect'])return _0x527ed6[_0x5f4c7a(0x25a)](String(_0x39b26f))?_0x39b26f:null;let _0x378fb3=Array[_0x5f4c7a(0x183)](_0x39b26f)?_0x39b26f[_0x5f4c7a(0xdc)](String):String(_0x39b26f)[_0x5f4c7a(0x2da)](',')[_0x5f4c7a(0xdc)](_0x408446=>_0x408446[_0x5f4c7a(0x2fc)]())[_0x5f4c7a(0x249)](Boolean),_0x264a36=_0x378fb3['filter'](_0x33bf2e=>_0x527ed6['has'](_0x33bf2e));return _0x264a36[_0x5f4c7a(0x317)]===_0x378fb3[_0x5f4c7a(0x317)]?_0x39b26f:Array['isArray'](_0x39b26f)?_0x264a36:String(_0x39b26f)[_0x5f4c7a(0x15c)](',')?_0x264a36[_0x5f4c7a(0x21a)](','):_0x264a36[0x0]??[];}function At(_0x190e6a,_0x16f3c0){const _0x4d653d=_0xfaec6d;return JSON[_0x4d653d(0xe9)](_0x190e6a)===JSON[_0x4d653d(0xe9)](_0x16f3c0);}function jt(_0x555e9e,_0x200cf6,_0x7d1dd6){const _0x55ea1b=_0xfaec6d;var _0x9fb8ca,_0x49fe92,_0x88cdbd,_0x275d98;let _0x1f9fce=(_0x9fb8ca=_0x555e9e[_0x55ea1b(0x117)])==null?void 0x0:_0x9fb8ca[_0x200cf6],_0x34b350=(_0x49fe92=_0x555e9e['colIndex'])==null?void 0x0:_0x49fe92[_0x7d1dd6];return _0x1f9fce!=null&&_0x34b350!=null&&((_0x88cdbd=_0x555e9e['rowId'])==null?void 0x0:_0x88cdbd[_0x1f9fce])===_0x200cf6&&((_0x275d98=_0x555e9e[_0x55ea1b(0x13f)])==null?void 0x0:_0x275d98[_0x34b350])===_0x7d1dd6&&_0x555e9e['cellData']!=null;}function Mt(_0x4f644d,_0x245aad,_0x45988b){const _0x41760e=_0xfaec6d;var _0x254684,_0xcbf2e7;return((_0x254684=_0x4f644d['rowId'])==null?void 0x0:_0x254684[_0x245aad])!=null&&((_0xcbf2e7=_0x4f644d['colId'])==null?void 0x0:_0xcbf2e7[_0x45988b])!=null&&_0x4f644d[_0x41760e(0x30f)]!=null;}function Nt(_0x3e3c92,_0x3ca9dd,_0x3885be){const _0x188c6d=_0xfaec6d;let _0x47bcd2=_0x3e3c92[_0x188c6d(0x249)](_0x1384da=>_0x1384da!==_0x3ca9dd),_0xf8ea9a=_0x3885be['beforeFieldId']?_0x47bcd2[_0x188c6d(0x12a)](_0x3885be['beforeFieldId']):_0x3885be['afterFieldId']?_0x47bcd2[_0x188c6d(0x12a)](_0x3885be[_0x188c6d(0x174)])+0x1:_0x47bcd2[_0x188c6d(0x317)];return _0x47bcd2[_0x188c6d(0xd3)](_0xf8ea9a<0x0?_0x47bcd2['length']:_0xf8ea9a,0x0,_0x3ca9dd),_0x47bcd2;}function Pt(_0x13c772,_0x4d8bad,_0x462c74){const _0x13c00e=_0xfaec6d;let _0xc89f83=_0x13c772[_0x13c00e(0x249)](_0x48b4d2=>_0x48b4d2!==_0x4d8bad);return _0xc89f83[_0x13c00e(0xd3)](It(_0x462c74,_0xc89f83[_0x13c00e(0x317)]),0x0,_0x4d8bad),_0xc89f83;}function Ft(_0x27cd88,_0x59b77f,_0x5ea621){const _0x5cf7e6=_0xfaec6d;if(Array[_0x5cf7e6(0x183)](_0x27cd88))return _0x5ea621==='fieldIds'?_0x27cd88[_0x5cf7e6(0x249)](_0x4f2ccb=>_0x4f2ccb!==_0x59b77f):_0x27cd88['flatMap'](_0xee5103=>{const _0x28e1ff=_0x5cf7e6;if(_0xee5103&&typeof _0xee5103==_0x28e1ff(0x148)&&!Array[_0x28e1ff(0x183)](_0xee5103)&&_0xee5103[_0x28e1ff(0x2c3)]===_0x59b77f)return[];let _0x437453=Ft(_0xee5103,_0x59b77f);return _0x437453===void 0x0?[]:[_0x437453];});if(!_0x27cd88||typeof _0x27cd88!=_0x5cf7e6(0x148))return _0x5ea621!=null&&_0x5ea621[_0x5cf7e6(0x20e)]('FieldId')&&_0x27cd88===_0x59b77f?void 0x0:_0x27cd88;let _0x1577e7=_0x27cd88;if(_0x1577e7[_0x5cf7e6(0x2c3)]!==_0x59b77f)return Object['fromEntries'](Object[_0x5cf7e6(0xc4)](_0x1577e7)['flatMap'](([_0x2bf0bf,_0x297be6])=>{const _0x54c756=_0x5cf7e6;if(_0x2bf0bf===_0x59b77f&&_0x5ea621===_0x54c756(0x2c1))return[];let _0x164191=Ft(_0x297be6,_0x59b77f,_0x2bf0bf);return _0x164191===void 0x0?[]:[[_0x2bf0bf,_0x164191]];}));}function _0xb8c0(_0x18e32a,_0x1eae17){_0x18e32a=_0x18e32a-0x9d;const _0x3b2199=_0x3b21();let _0xb8c0b6=_0x3b2199[_0x18e32a];return _0xb8c0b6;}function It(_0x55218e,_0x101439){const _0x379861=_0xfaec6d;return Math[_0x379861(0x236)](0x0,Math['min'](_0x55218e,_0x101439));}var Lt=class{constructor(_0x55bae9){const _0x37d13c=_0xfaec6d;this[_0x37d13c(0x207)]=_0x55bae9,_0x146b6c(this,'type',_0x456f09['Base']),_0x146b6c(this,_0x37d13c(0x1df),_0x32fca1[_0x37d13c(0xd5)]),_0x146b6c(this,'status',_0x225b52[_0x37d13c(0x1ed)]),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x37d13c(0xca),!0x0),this['id']=this[_0x37d13c(0x211)]+'.'+this['subType']+'_'+_0x55bae9;}},Rt=class{constructor(_0x5a1ef7){const _0x65dfd0=_0xfaec6d;this[_0x65dfd0(0x207)]=_0x5a1ef7,_0x146b6c(this,'type',_0x456f09[_0x65dfd0(0x290)]),_0x146b6c(this,_0x65dfd0(0x1df),_0x32fca1[_0x65dfd0(0x2a7)]),_0x146b6c(this,_0x65dfd0(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x65dfd0(0xca),!0x0),this['id']=this[_0x65dfd0(0x211)]+'.'+this[_0x65dfd0(0x1df)]+'_'+_0x5a1ef7;}},zt=class{constructor(_0x235b6b){const _0x559d1a=_0xfaec6d;this[_0x559d1a(0x207)]=_0x235b6b,_0x146b6c(this,_0x559d1a(0x211),_0x456f09['Base']),_0x146b6c(this,'subType',_0x32fca1[_0x559d1a(0x270)]),_0x146b6c(this,_0x559d1a(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x559d1a(0xca),!0x0),this['id']=this['type']+'.'+this[_0x559d1a(0x1df)]+'_'+_0x235b6b;}},Bt=class{constructor(_0x2ee712){const _0x35caf6=_0xfaec6d;this['unitId']=_0x2ee712,_0x146b6c(this,_0x35caf6(0x211),_0x456f09[_0x35caf6(0x290)]),_0x146b6c(this,_0x35caf6(0x1df),_0x32fca1[_0x35caf6(0x24d)]),_0x146b6c(this,_0x35caf6(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x35caf6(0xca),!0x0),this['id']=this[_0x35caf6(0x211)]+'.'+this[_0x35caf6(0x1df)]+'_'+_0x2ee712;}},Vt=class{constructor(_0x304073,_0x213e5e){const _0x17feb1=_0xfaec6d;this[_0x17feb1(0x207)]=_0x304073,this[_0x17feb1(0x24e)]=_0x213e5e,_0x146b6c(this,_0x17feb1(0x211),_0x456f09['BaseDashboard']),_0x146b6c(this,_0x17feb1(0x1df),_0x32fca1['Edit']),_0x146b6c(this,_0x17feb1(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,'value',!0x0),this['id']=this[_0x17feb1(0x211)]+'.'+this[_0x17feb1(0x1df)]+'_'+_0x304073+'_'+_0x213e5e;}},Ht=class{constructor(_0x1950cc,_0x30cc7f){const _0x2e7e12=_0xfaec6d;this[_0x2e7e12(0x207)]=_0x1950cc,this[_0x2e7e12(0x24e)]=_0x30cc7f,_0x146b6c(this,'type',_0x456f09['BaseField']),_0x146b6c(this,_0x2e7e12(0x1df),_0x32fca1[_0x2e7e12(0x270)]),_0x146b6c(this,'status',_0x225b52[_0x2e7e12(0x1ed)]),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x2e7e12(0x1df)]+'_'+_0x1950cc+'_'+_0x30cc7f;}},Ut=class{constructor(_0x1ee35f,_0x583899){const _0x221604=_0xfaec6d;this[_0x221604(0x207)]=_0x1ee35f,this[_0x221604(0x24e)]=_0x583899,_0x146b6c(this,_0x221604(0x211),_0x456f09['BaseRecord']),_0x146b6c(this,_0x221604(0x1df),_0x32fca1[_0x221604(0x270)]),_0x146b6c(this,_0x221604(0x139),_0x225b52[_0x221604(0x1ed)]),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x221604(0xca),!0x0),this['id']=this[_0x221604(0x211)]+'.'+this[_0x221604(0x1df)]+'_'+_0x1ee35f+'_'+_0x583899;}},Wt=class{constructor(_0x289581,_0x5f265c){const _0x1411d0=_0xfaec6d;this[_0x1411d0(0x207)]=_0x289581,this[_0x1411d0(0x24e)]=_0x5f265c,_0x146b6c(this,_0x1411d0(0x211),_0x456f09[_0x1411d0(0x303)]),_0x146b6c(this,_0x1411d0(0x1df),_0x32fca1[_0x1411d0(0x270)]),_0x146b6c(this,_0x1411d0(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x1411d0(0xca),!0x0),this['id']=this[_0x1411d0(0x211)]+'.'+this[_0x1411d0(0x1df)]+'_'+_0x289581+'_'+_0x5f265c;}},Gt=class{constructor(_0x3cc75e,_0x1d4d5c){const _0x156478=_0xfaec6d;this['unitId']=_0x3cc75e,this[_0x156478(0x24e)]=_0x1d4d5c,_0x146b6c(this,_0x156478(0x211),_0x456f09[_0x156478(0x2c8)]),_0x146b6c(this,_0x156478(0x1df),_0x32fca1[_0x156478(0x270)]),_0x146b6c(this,_0x156478(0x139),_0x225b52['INIT']),_0x146b6c(this,'id',void 0x0),_0x146b6c(this,_0x156478(0xca),!0x0),this['id']=this['type']+'.'+this[_0x156478(0x1df)]+'_'+_0x3cc75e+'_'+_0x1d4d5c;}};const Kt=[_0x32fca1[_0xfaec6d(0x270)],_0x32fca1[_0xfaec6d(0x2a7)],_0x32fca1['Export'],_0x32fca1[_0xfaec6d(0xd5)]],qt=new Set([_0x456f09[_0xfaec6d(0x290)],_0x456f09[_0xfaec6d(0x303)],_0x456f09[_0xfaec6d(0x1b7)],_0x456f09[_0xfaec6d(0x287)],_0x456f09[_0xfaec6d(0x2c8)],_0x456f09[_0xfaec6d(0x16d)]]),Jt=_0xfaec6d(0x201),Yt=_0xfaec6d(0x248),Xt=_0xfaec6d(0xc6),Zt=_0xfaec6d(0x274),Qt=_0xfaec6d(0x11b);function q(_0x3a29ee){return''+Jt+encodeURIComponent(_0x3a29ee);}function J(_0x1bd6d0,_0x493679){return''+Yt+encodeURIComponent(_0x1bd6d0)+'/'+encodeURIComponent(_0x493679);}function Y(_0x2ab7fb,_0x422d79){return''+Xt+encodeURIComponent(_0x2ab7fb)+'/'+encodeURIComponent(_0x422d79);}function $t(_0x70e606,_0xa984cd){return''+Zt+encodeURIComponent(_0x70e606)+'/'+encodeURIComponent(_0xa984cd);}function en(_0x407001){return''+Qt+encodeURIComponent(_0x407001);}function tn(_0x5f2a96,_0x4c0635,_0x2ec203){const _0xb3b1ab=_0xfaec6d;if(_0x4c0635===_0x5f2a96)switch(_0x2ec203){case _0x32fca1['Edit']:return new zt(_0x5f2a96);case _0x32fca1['Copy']:return new Rt(_0x5f2a96);case _0x32fca1[_0xb3b1ab(0x24d)]:return new Bt(_0x5f2a96);case _0x32fca1[_0xb3b1ab(0xd5)]:return new Lt(_0x5f2a96);default:throw Error(_0xb3b1ab(0x17c)+_0x2ec203);}if(_0x2ec203!==_0x32fca1[_0xb3b1ab(0x270)])throw Error('Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20'+_0x4c0635);if(_0x4c0635[_0xb3b1ab(0xe5)](Jt))return new Wt(_0x5f2a96,_0x4c0635);if(_0x4c0635[_0xb3b1ab(0xe5)](Yt))return new Ht(_0x5f2a96,_0x4c0635);if(_0x4c0635[_0xb3b1ab(0xe5)](Xt))return new Ut(_0x5f2a96,_0x4c0635);if(_0x4c0635[_0xb3b1ab(0xe5)](Zt))return new Gt(_0x5f2a96,_0x4c0635);if(_0x4c0635[_0xb3b1ab(0xe5)](Qt))return new Vt(_0x5f2a96,_0x4c0635);throw Error(_0xb3b1ab(0x28c)+_0x4c0635);}function nn(_0x377d22,_0x5685af,_0x170560,_0x4c769a){const _0x26d8bd=_0xfaec6d;var _0x282ee;return((_0x282ee=_0x377d22[_0x26d8bd(0x1f8)](tn(_0x5685af,_0x170560,_0x4c769a)['id']))==null?void 0x0:_0x282ee[_0x26d8bd(0xca)])??!0x0;}function rn(_0x2335f5,_0x16075f,_0x12d857,_0x452f43,_0x18dee6){const _0x3f7ed8=_0xfaec6d;let _0x318470=tn(_0x16075f,_0x12d857,_0x452f43);_0x2335f5[_0x3f7ed8(0x1f8)](_0x318470['id'])||_0x2335f5[_0x3f7ed8(0x260)](_0x318470),_0x2335f5[_0x3f7ed8(0x166)](_0x318470['id'],_0x18dee6);}function an(_0x3bb336,_0x46b2a4,_0x866d0f,_0x5e0eaa){const _0x4a800a=_0xfaec6d;_0x3bb336[_0x4a800a(0x209)](tn(_0x46b2a4,_0x866d0f,_0x5e0eaa)['id']);}function on(_0x278c38,_0x1115f8){const _0xaf8e6b=_0xfaec6d;_0x278c38[_0xaf8e6b(0x2df)]()['forEach']((_0x31062c,_0x205c07)=>{const _0x27afea=_0xaf8e6b;_0x31062c[_0x27afea(0x102)](_0x32429b=>{const _0x1f5fb6=_0x27afea;qt[_0x1f5fb6(0x25a)](_0x32429b[_0x1f5fb6(0x211)])&&_0x1f5fb6(0x207)in _0x32429b&&_0x32429b['unitId']===_0x1115f8&&_0x278c38[_0x1f5fb6(0x209)](_0x205c07);})[_0x27afea(0x23a)]();});}function sn(_0x12df24,_0x2cb8f2,_0x3a69d3){const _0x240d15=_0xfaec6d;return nn(_0x12df24,_0x2cb8f2,_0x2cb8f2,_0x32fca1[_0x240d15(0x270)])&&Array[_0x240d15(0x309)](_0x3a69d3)['every'](_0x5a81df=>nn(_0x12df24,_0x2cb8f2,_0x5a81df,_0x32fca1['Edit']));}const cn=_0x113f43('base.permission.service');let ln=class extends _0x3e9f4d{constructor(_0x519609,_0x364699){const _0x88a715=_0xfaec6d;super(),this['_permissionService']=_0x519609,this[_0x88a715(0x21f)]=_0x364699,_0x146b6c(this,_0x88a715(0x22c),new Map()),_0x146b6c(this,_0x88a715(0x2ed),new Map()),_0x146b6c(this,_0x88a715(0x280),new Map()),_0x146b6c(this,'_recordPermissions',new Map()),_0x146b6c(this,_0x88a715(0x26d),new Map()),_0x146b6c(this,'_tableBaseIds',new Map()),this[_0x88a715(0xfb)](this['_instanceService'][_0x88a715(0x111)](_0x528a5b['UNIVER_BASE'])['subscribe'](_0x2c78a8=>this[_0x88a715(0x19d)](_0x2c78a8[_0x88a715(0x1cf)]())));}[_0xfaec6d(0x2b8)](_0x268ba7){const _0x11cded=_0xfaec6d;var _0x283b5e;return this['_canEdit'](_0x268ba7,[])&&(((_0x283b5e=this['_basePermissions']['get'](_0x268ba7))==null?void 0x0:_0x283b5e[_0x11cded(0x1a0)])??!0x0);}[_0xfaec6d(0xc5)](_0x13db67){const _0x3c5f5c=_0xfaec6d;return this[_0x3c5f5c(0x253)](_0x13db67);}['canDeleteTable'](_0x5eac4f){const _0x1a1513=_0xfaec6d;var _0x561a6a;return this['_canEditTable'](_0x5eac4f)&&(((_0x561a6a=this[_0x1a1513(0x2ed)][_0x1a1513(0x216)](_0x5eac4f))==null?void 0x0:_0x561a6a[_0x1a1513(0x15f)])??!0x0);}[_0xfaec6d(0x197)](_0x54f966){const _0xdbae4a=_0xfaec6d;var _0x49e5c9;return this[_0xdbae4a(0x253)](_0x54f966)&&(((_0x49e5c9=this[_0xdbae4a(0x2ed)][_0xdbae4a(0x216)](_0x54f966))==null?void 0x0:_0x49e5c9[_0xdbae4a(0xd4)])??!0x0);}[_0xfaec6d(0x10b)](_0xe9cccd,_0x20eab0){const _0x10d0d9=_0xfaec6d;var _0xd44a8c;return this[_0x10d0d9(0x253)](_0xe9cccd)&&this[_0x10d0d9(0x1ee)](_0xe9cccd,[J(_0xe9cccd,_0x20eab0)])&&(((_0xd44a8c=this[_0x10d0d9(0x280)]['get'](dn(_0xe9cccd,_0x20eab0)))==null?void 0x0:_0xd44a8c['edit'])??!0x0);}[_0xfaec6d(0x123)](_0x13dddd,_0x517584){const _0x4582d0=_0xfaec6d;var _0x4e7c66;return this[_0x4582d0(0x10b)](_0x13dddd,_0x517584)&&(((_0x4e7c66=this['_fieldPermissions'][_0x4582d0(0x216)](dn(_0x13dddd,_0x517584)))==null?void 0x0:_0x4e7c66[_0x4582d0(0x15f)])??!0x0);}['canCreateRecord'](_0x4212ca){const _0x24e7b0=_0xfaec6d;var _0x5026e0;return this[_0x24e7b0(0x253)](_0x4212ca)&&(((_0x5026e0=this[_0x24e7b0(0x2ed)][_0x24e7b0(0x216)](_0x4212ca))==null?void 0x0:_0x5026e0[_0x24e7b0(0x25c)])??!0x0);}['canEditRecord'](_0x2b24d7,_0x19d924){const _0x47b965=_0xfaec6d;var _0x2342e6;let _0x5647ec=this[_0x47b965(0xe8)][_0x47b965(0x216)](fn(_0x2b24d7,_0x19d924));return this['_canEdit'](_0x2b24d7,[q(_0x2b24d7),Y(_0x2b24d7,_0x19d924)])&&(((_0x2342e6=this['_tablePermissions'][_0x47b965(0x216)](_0x2b24d7))==null?void 0x0:_0x2342e6['edit'])??!0x0)&&((_0x5647ec==null?void 0x0:_0x5647ec[_0x47b965(0x153)])??!0x0)&&((_0x5647ec==null?void 0x0:_0x5647ec['editCell'])??!0x0);}['canDeleteRecord'](_0xea17dd,_0x2ea7b5){const _0x2b25cb=_0xfaec6d;var _0x574394,_0x5eebb6,_0x2c2db0;return this[_0x2b25cb(0x1ee)](_0xea17dd,[q(_0xea17dd),Y(_0xea17dd,_0x2ea7b5)])&&(((_0x574394=this[_0x2b25cb(0x2ed)][_0x2b25cb(0x216)](_0xea17dd))==null?void 0x0:_0x574394[_0x2b25cb(0x153)])??!0x0)&&(((_0x5eebb6=this[_0x2b25cb(0xe8)][_0x2b25cb(0x216)](fn(_0xea17dd,_0x2ea7b5)))==null?void 0x0:_0x5eebb6['edit'])??!0x0)&&(((_0x2c2db0=this[_0x2b25cb(0xe8)]['get'](fn(_0xea17dd,_0x2ea7b5)))==null?void 0x0:_0x2c2db0[_0x2b25cb(0x15f)])??!0x0);}['canEditCell'](_0x24e96c,_0xb7b5ea,_0x471046){const _0x2e0834=_0xfaec6d;var _0x107f67,_0x1cba5d,_0x5b2107;let _0xc7933c=this['_fieldPermissions']['get'](dn(_0x24e96c,_0x471046));return this[_0x2e0834(0x1ee)](_0x24e96c,[q(_0x24e96c),J(_0x24e96c,_0x471046),Y(_0x24e96c,_0xb7b5ea)])&&(((_0x107f67=this[_0x2e0834(0x2ed)][_0x2e0834(0x216)](_0x24e96c))==null?void 0x0:_0x107f67[_0x2e0834(0x153)])??!0x0)&&(((_0x1cba5d=this[_0x2e0834(0xe8)][_0x2e0834(0x216)](fn(_0x24e96c,_0xb7b5ea)))==null?void 0x0:_0x1cba5d[_0x2e0834(0x153)])??!0x0)&&(((_0x5b2107=this[_0x2e0834(0xe8)][_0x2e0834(0x216)](fn(_0x24e96c,_0xb7b5ea)))==null?void 0x0:_0x5b2107[_0x2e0834(0x156)])??!0x0)&&((_0xc7933c==null?void 0x0:_0xc7933c[_0x2e0834(0x153)])??!0x0)&&((_0xc7933c==null?void 0x0:_0xc7933c[_0x2e0834(0x156)])??!0x0);}[_0xfaec6d(0x16e)](_0x45abd2,_0x57322f){const _0x567054=_0xfaec6d;var _0x45645c,_0x3d9e1f,_0x317bb6;return this[_0x567054(0x1ee)](_0x45abd2,[q(_0x45abd2),$t(_0x45abd2,_0x57322f)])&&(((_0x45645c=this[_0x567054(0x2ed)][_0x567054(0x216)](_0x45abd2))==null?void 0x0:_0x45645c[_0x567054(0x153)])??!0x0)&&(((_0x3d9e1f=this[_0x567054(0x26d)][_0x567054(0x216)](pn(_0x45abd2,_0x57322f)))==null?void 0x0:_0x3d9e1f['edit'])??!0x0)&&(((_0x317bb6=this['_tablePermissions']['get'](_0x45abd2))==null?void 0x0:_0x317bb6[_0x567054(0xb2)])??!0x0);}[_0xfaec6d(0x23f)](_0x5cd2f7,_0x5371f0){const _0x5638b0=_0xfaec6d;this[_0x5638b0(0x22c)][_0x5638b0(0x2cd)](_0x5cd2f7,{...this[_0x5638b0(0x22c)]['get'](_0x5cd2f7),..._0x5371f0}),_0x5371f0[_0x5638b0(0x153)]!==void 0x0&&rn(this[_0x5638b0(0x302)],_0x5cd2f7,_0x5cd2f7,_0x32fca1[_0x5638b0(0x270)],_0x5371f0[_0x5638b0(0x153)]);}[_0xfaec6d(0x313)](_0x3e236b,_0x567b5b){const _0x515f32=_0xfaec6d;this[_0x515f32(0x1e5)](_0x3e236b),this[_0x515f32(0x2ed)][_0x515f32(0x2cd)](_0x3e236b,{...this['_tablePermissions'][_0x515f32(0x216)](_0x3e236b),..._0x567b5b}),this[_0x515f32(0x215)](_0x3e236b,q(_0x3e236b),_0x567b5b[_0x515f32(0x153)]);}[_0xfaec6d(0x16a)](_0x481c9f,_0xcb2a9b,_0x226479){const _0x32585d=_0xfaec6d;this[_0x32585d(0x1e5)](_0x481c9f);let _0x20970e=dn(_0x481c9f,_0xcb2a9b);this[_0x32585d(0x280)]['set'](_0x20970e,{...this[_0x32585d(0x280)][_0x32585d(0x216)](_0x20970e),..._0x226479}),this[_0x32585d(0x215)](_0x481c9f,J(_0x481c9f,_0xcb2a9b),_0x226479[_0x32585d(0x153)]);}['setRecordPermission'](_0x161e6a,_0x500c03,_0x2762f3){const _0x41560e=_0xfaec6d;this[_0x41560e(0x1e5)](_0x161e6a);let _0x2164d4=fn(_0x161e6a,_0x500c03);this[_0x41560e(0xe8)]['set'](_0x2164d4,{...this[_0x41560e(0xe8)]['get'](_0x2164d4),..._0x2762f3}),this[_0x41560e(0x215)](_0x161e6a,Y(_0x161e6a,_0x500c03),_0x2762f3[_0x41560e(0x153)]);}['setViewPermission'](_0x1e0143,_0x12cb76,_0x1d185e){const _0x533118=_0xfaec6d;this[_0x533118(0x1e5)](_0x1e0143);let _0x43e514=pn(_0x1e0143,_0x12cb76);this[_0x533118(0x26d)][_0x533118(0x2cd)](_0x43e514,{...this['_viewPermissions']['get'](_0x43e514),..._0x1d185e}),this[_0x533118(0x215)](_0x1e0143,$t(_0x1e0143,_0x12cb76),_0x1d185e['edit']);}[_0xfaec6d(0xe0)](_0x58f038){const _0x56a0da=_0xfaec6d;this[_0x56a0da(0x22c)][_0x56a0da(0x15f)](_0x58f038),an(this[_0x56a0da(0x302)],_0x58f038,_0x58f038,_0x32fca1[_0x56a0da(0x270)]);}[_0xfaec6d(0x192)](_0x198ebd){const _0x23ee5f=_0xfaec6d;this['_tablePermissions'][_0x23ee5f(0x15f)](_0x198ebd),this['_clearObjectEdit'](_0x198ebd,q(_0x198ebd));}[_0xfaec6d(0x213)](_0xaae879,_0x5ac3cc){const _0x316ed8=_0xfaec6d;this[_0x316ed8(0x280)][_0x316ed8(0x15f)](dn(_0xaae879,_0x5ac3cc)),this[_0x316ed8(0x1c5)](_0xaae879,J(_0xaae879,_0x5ac3cc));}[_0xfaec6d(0x1c4)](_0x22a38e,_0x4047f5){const _0x3de135=_0xfaec6d;this[_0x3de135(0xe8)][_0x3de135(0x15f)](fn(_0x22a38e,_0x4047f5)),this[_0x3de135(0x1c5)](_0x22a38e,Y(_0x22a38e,_0x4047f5));}[_0xfaec6d(0x23d)](_0x4168dc,_0xf76ed5){const _0x21bbc5=_0xfaec6d;this[_0x21bbc5(0x26d)]['delete'](pn(_0x4168dc,_0xf76ed5)),this['_clearObjectEdit'](_0x4168dc,$t(_0x4168dc,_0xf76ed5));}[_0xfaec6d(0xcd)](){const _0x400c22=_0xfaec6d;return{'bases':Object[_0x400c22(0x131)](this[_0x400c22(0x22c)]),'tables':Object[_0x400c22(0x131)](this[_0x400c22(0x2ed)]),'fields':Object[_0x400c22(0x131)](this[_0x400c22(0x280)]),'records':Object['fromEntries'](this['_recordPermissions']),'views':Object[_0x400c22(0x131)](this[_0x400c22(0x26d)])};}['_canEditTable'](_0x1fbdf0){const _0x57c53c=_0xfaec6d;var _0x427b8f;return this[_0x57c53c(0x1ee)](_0x1fbdf0,[q(_0x1fbdf0)])&&(((_0x427b8f=this['_tablePermissions'][_0x57c53c(0x216)](_0x1fbdf0))==null?void 0x0:_0x427b8f['edit'])??!0x0);}[_0xfaec6d(0x1ee)](_0x398926,_0x50a9b1){const _0x4d7a04=_0xfaec6d;var _0x310eac;let _0x2557a7=this[_0x4d7a04(0x150)](_0x398926);return!_0x2557a7||sn(this[_0x4d7a04(0x302)],_0x2557a7,_0x50a9b1)&&(((_0x310eac=this['_basePermissions'][_0x4d7a04(0x216)](_0x2557a7))==null?void 0x0:_0x310eac[_0x4d7a04(0x153)])??!0x0);}[_0xfaec6d(0x215)](_0x34c9e0,_0x1ba8d3,_0x5a36f5){const _0x21dc01=_0xfaec6d;if(_0x5a36f5===void 0x0)return;let _0x37cd43=this[_0x21dc01(0x150)](_0x34c9e0);_0x37cd43&&rn(this['_permissionService'],_0x37cd43,_0x1ba8d3,_0x32fca1[_0x21dc01(0x270)],_0x5a36f5);}[_0xfaec6d(0x1c5)](_0x58432b,_0x2db440){const _0x358098=_0xfaec6d;let _0x3e8fb2=this[_0x358098(0x150)](_0x58432b);_0x3e8fb2&&an(this[_0x358098(0x302)],_0x3e8fb2,_0x2db440,_0x32fca1[_0x358098(0x270)]);}['_resolveBaseId'](_0x2ba537){const _0x36602c=_0xfaec6d;var _0x21650e;let _0x3ed6a8=this[_0x36602c(0x21f)][_0x36602c(0x147)](_0x2ba537,_0x528a5b['UNIVER_BASE']);return _0x3ed6a8?_0x3ed6a8[_0x36602c(0x1cf)]():(_0x21650e=this[_0x36602c(0x21f)]['getAllUnitsForType'](_0x528a5b['UNIVER_BASE'])[_0x36602c(0x158)](_0x585202=>!!_0x585202[_0x36602c(0xcd)]()['tables'][_0x2ba537]))==null?void 0x0:_0x21650e[_0x36602c(0x1cf)]();}[_0xfaec6d(0x1e5)](_0x3ee778){const _0x5dbc12=_0xfaec6d;let _0x4ed7d0=this['_resolveBaseId'](_0x3ee778);_0x4ed7d0&&this[_0x5dbc12(0x1e4)]['set'](_0x3ee778,_0x4ed7d0);}[_0xfaec6d(0x19d)](_0xf3dba){const _0x547658=_0xfaec6d;this[_0x547658(0x22c)][_0x547658(0x15f)](_0xf3dba),this['_tableBaseIds'][_0x547658(0x1a4)]((_0x3469b1,_0x193ebf)=>{const _0x1649d9=_0x547658;_0x3469b1===_0xf3dba&&(this['_tablePermissions'][_0x1649d9(0x15f)](_0x193ebf),un(this[_0x1649d9(0x280)],_0x193ebf+'\x1f'),un(this['_recordPermissions'],_0x193ebf+'\x1f'),un(this['_viewPermissions'],_0x193ebf+'\x1f'),this[_0x1649d9(0x1e4)]['delete'](_0x193ebf));});}};ln=_0x17409a([_0x1babfc(0x0,_0x381c85),_0x1babfc(0x1,_0x3a34dc)],ln);function un(_0x1eff59,_0x3970c3){const _0x4958b0=_0xfaec6d;_0x1eff59[_0x4958b0(0x1a4)]((_0x567851,_0x30bfaa)=>{const _0x118433=_0x4958b0;_0x30bfaa[_0x118433(0xe5)](_0x3970c3)&&_0x1eff59[_0x118433(0x15f)](_0x30bfaa);});}function dn(_0x109be3,_0x44b494){return _0x109be3+'\x1f'+_0x44b494;}function fn(_0x2dfa54,_0x53f44c){return _0x2dfa54+'\x1f'+_0x53f44c;}function pn(_0x1a31e2,_0x36d95c){return _0x1a31e2+'\x1f'+_0x36d95c;}const X=_0x113f43(_0xfaec6d(0x2e7));let mn=class{constructor(_0x3c33a9,_0x543eae=hn(),_0x2ff676={}){const _0x26d74e=_0xfaec6d;this['_permissionService']=_0x3c33a9,this[_0x26d74e(0x316)]=_0x543eae,this[_0x26d74e(0xc2)]=_0x2ff676,_0x146b6c(this,'_factory',new K()),_0x146b6c(this,_0x26d74e(0x116),new _0x445a5d());}['createTable'](_0x1a65e5,_0x4d10b5,_0x2466c7){const _0x46da1c=_0xfaec6d;if(!this[_0x46da1c(0x302)][_0x46da1c(0x2b8)](_0x1a65e5[_0x46da1c(0x1cf)]()))throw Error(_0x46da1c(0x1d6));_0x300bfe(_0x4d10b5),this['_apply'](_0x1a65e5,this['_factory']['createTable'](_0x1a65e5[_0x46da1c(0xcd)](),_0x4d10b5,_0x2466c7));}[_0xfaec6d(0x210)](_0x5a20db,_0x472391,_0x37c3c4){const _0x187677=_0xfaec6d;if(!this[_0x187677(0x302)][_0x187677(0xc5)](_0x472391))throw Error(_0x187677(0xaa));this['_apply'](_0x5a20db,this['_factory'][_0x187677(0x210)](_0x5a20db[_0x187677(0xcd)](),_0x472391,_0x37c3c4));}[_0xfaec6d(0x2e0)](_0xe6cf36,_0x6995fe){const _0x511961=_0xfaec6d;if(!this[_0x511961(0x302)][_0x511961(0x297)](_0x6995fe))throw Error(_0x511961(0x1d8));let _0x44728e=_0xad927a(_0xe6cf36[_0x511961(0xcd)](),_0x6995fe);if(_0x44728e['length']>0x0)throw Error(_0x511961(0xa4)+_0x44728e['map'](_0x2463de=>_0x2463de[_0x511961(0x2a8)]+'.'+_0x2463de[_0x511961(0x2c3)])[_0x511961(0x21a)](',\x20')+').');this[_0x511961(0x1a9)](_0xe6cf36,this['_factory'][_0x511961(0x2e0)](_0xe6cf36['getSnapshot'](),_0x6995fe));}[_0xfaec6d(0x2b2)](_0x1fc3b3,_0x26ae9d,_0x422c99,_0x2daed6,_0x357dbc){const _0x576017=_0xfaec6d;this['_apply'](_0x1fc3b3,this[_0x576017(0x2c2)](_0x1fc3b3,_0x26ae9d,_0x422c99,_0x2daed6,_0x357dbc));}[_0xfaec6d(0x1dc)](_0x8b4392,_0x2f6c95,_0x38a499){const _0x20a3f1=_0xfaec6d;this[_0x20a3f1(0x1a9)](_0x8b4392,this[_0x20a3f1(0x1b2)](_0x8b4392,_0x2f6c95,_0x38a499));}[_0xfaec6d(0x25c)](_0x1c70fa,_0x3a2d97,_0x2fef93){this['_apply'](_0x1c70fa,this['createCreateRecordOp'](_0x1c70fa,_0x3a2d97,_0x2fef93));}[_0xfaec6d(0x2c2)](_0x50c726,_0x380c7a,_0x13bf25,_0x33d3ae,_0x102955){const _0xe0a82a=_0xfaec6d;let _0x42ea5a=_0x50c726[_0xe0a82a(0xcd)](),_0x5b186f=this[_0xe0a82a(0x246)](_0x42ea5a,_0x380c7a,_0x13bf25,_0x33d3ae,_0x102955),_0x4698b0=this[_0xe0a82a(0xd1)](_0x42ea5a,_0x380c7a,_0x13bf25,{[_0x33d3ae]:_0x5b186f});return this[_0xe0a82a(0x244)][_0xe0a82a(0x1dc)](_0x42ea5a,_0x380c7a,[_0x4698b0]);}[_0xfaec6d(0x1b2)](_0x35a3ba,_0x10c463,_0x22f934){const _0xa37299=_0xfaec6d;let _0x8cab47=_0x35a3ba[_0xa37299(0xcd)](),_0x28b747=_0x22f934[_0xa37299(0xdc)](_0x5c876c=>this['_withModifiedSystemValues'](_0x8cab47,_0x10c463,_0x5c876c[_0xa37299(0x1de)],{...Object['fromEntries'](Object['entries'](_0x5c876c['values'])[_0xa37299(0xdc)](([_0x544596,_0x19bd27])=>[_0x544596,this[_0xa37299(0x246)](_0x8cab47,_0x10c463,_0x5c876c[_0xa37299(0x1de)],_0x544596,_0x19bd27)]))}));return this[_0xa37299(0x244)][_0xa37299(0x1dc)](_0x8cab47,_0x10c463,_0x28b747);}['createCreateRecordOp'](_0x409142,_0x953f82,_0x65048e){const _0x47b0d8=_0xfaec6d;if(!this[_0x47b0d8(0x302)][_0x47b0d8(0x173)](_0x953f82))throw Error(_0x47b0d8(0x240));let _0x4a04a0=_0x409142[_0x47b0d8(0xcd)](),_0xb4127=this['_createNumberingAllocators'](_0x4a04a0[_0x47b0d8(0x2fe)][_0x953f82]);return this[_0x47b0d8(0x244)]['createRecord'](_0x4a04a0,_0x953f82,this[_0x47b0d8(0x199)](_0x4a04a0,_0x953f82,_0x65048e,_0xb4127));}[_0xfaec6d(0x2f7)](_0x1b7b9a,_0x233101,_0x3060c2){const _0x58cf6b=_0xfaec6d;if(!this[_0x58cf6b(0x302)][_0x58cf6b(0x173)](_0x233101))throw Error(_0x58cf6b(0x240));let _0x2a7ad1=_0x1b7b9a['getSnapshot']();return _0x5d2ca0(_0x58cf6b(0x2f9),()=>{const _0xe6577e=_0x58cf6b;let _0x4071aa=this[_0xe6577e(0x2ea)](_0x2a7ad1[_0xe6577e(0x2fe)][_0x233101]);return this[_0xe6577e(0x244)][_0xe6577e(0xba)](_0x2a7ad1,_0x233101,_0x3060c2[_0xe6577e(0xdc)](_0x5c9042=>this['_createRecordWithDefaults'](_0x2a7ad1,_0x233101,_0x5c9042,_0x4071aa)));},{'existingRecords':Object[_0x58cf6b(0x2d7)](_0x2a7ad1['tables'][_0x233101][_0x58cf6b(0x11e)])[_0x58cf6b(0x317)],'records':_0x3060c2[_0x58cf6b(0x317)]});}[_0xfaec6d(0xde)](_0x34c97b,_0x120dee,_0x567f09,_0x2c871a,_0x5afd77){const _0xbec74f=_0xfaec6d;if(!this[_0xbec74f(0x302)][_0xbec74f(0x197)](_0x120dee))throw Error(_0xbec74f(0x132));let _0x4735fd=_0x34c97b[_0xbec74f(0xcd)]();if(this[_0xbec74f(0x143)](_0x4735fd,_0x567f09),_0x2c871a===0x0)throw Error(_0xbec74f(0x1cb));let _0x54eb3e=this['_factory'][_0xbec74f(0xd4)](_0x4735fd,_0x120dee,{'field':_0x567f09,'index':_0x2c871a,'viewIndexes':_0x5afd77}),_0x3ba546=this[_0xbec74f(0x1f1)](_0x4735fd,_0x120dee,_0x567f09);if(!_0x3ba546[_0xbec74f(0x317)])return _0x54eb3e;let _0x551172=this[_0xbec74f(0x116)][_0xbec74f(0x258)](_0x4735fd,_0x54eb3e);return _0x2df3da([_0x54eb3e,this['_factory']['setRecordValues'](_0x551172,_0x120dee,_0x3ba546)]);}[_0xfaec6d(0x28e)](_0x4b66eb,_0x30e046,_0x13131b){const _0x1cbcbf=_0xfaec6d;if(!this[_0x1cbcbf(0x302)][_0x1cbcbf(0x13d)](_0x30e046,_0x13131b))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20record.');this[_0x1cbcbf(0x1a9)](_0x4b66eb,this[_0x1cbcbf(0x244)][_0x1cbcbf(0x28e)](_0x4b66eb[_0x1cbcbf(0xcd)](),_0x30e046,_0x13131b));}['duplicateRecord'](_0x3a7fcc,_0x4a035b,_0x35ffb5,_0x5991d7){const _0x2fbec7=_0xfaec6d;if(!this[_0x2fbec7(0x302)]['canCreateRecord'](_0x4a035b))throw Error(_0x2fbec7(0x240));this['_apply'](_0x3a7fcc,this[_0x2fbec7(0x244)][_0x2fbec7(0x220)](_0x3a7fcc[_0x2fbec7(0xcd)](),_0x4a035b,_0x35ffb5,{..._0x5991d7,'values':{..._0x5991d7[_0x2fbec7(0xa3)],[_0x434772]:_0x5991d7['id']}}));}[_0xfaec6d(0x2f0)](_0x2e5318,_0x5ea7bc,_0x2cb1c7,_0x4617da){const _0x2e96e5=_0xfaec6d;if(!this[_0x2e96e5(0x302)][_0x2e96e5(0x13b)](_0x5ea7bc,_0x2cb1c7))throw Error(_0x2e96e5(0x168));this[_0x2e96e5(0x1a9)](_0x2e5318,this['_factory'][_0x2e96e5(0x2f0)](_0x2e5318['getSnapshot'](),_0x5ea7bc,_0x2cb1c7,_0x4617da));}[_0xfaec6d(0xd4)](_0x386def,_0x440591,_0x51d4b6,_0x3ce7f6,_0x46d942){const _0x384f37=_0xfaec6d;this['_apply'](_0x386def,this[_0x384f37(0xde)](_0x386def,_0x440591,_0x51d4b6,_0x3ce7f6,_0x46d942));}[_0xfaec6d(0x135)](_0x35f52f,_0x18d469,_0x5acd39,_0x5833b5){const _0x3ae097=_0xfaec6d;var _0x4e7ef3;if(!this[_0x3ae097(0x302)][_0x3ae097(0x10b)](_0x18d469,_0x5acd39))throw Error(_0x3ae097(0x2e1));let _0x4e976a=_0x35f52f[_0x3ae097(0xcd)](),_0x149d59=(_0x4e7ef3=_0x4e976a['tables'][_0x18d469])==null?void 0x0:_0x4e7ef3[_0x3ae097(0x10e)][_0x5acd39];if(!_0x149d59||_0x5acd39===_0x434772)throw Error(_0x3ae097(0x2f6));this[_0x3ae097(0x143)](_0x4e976a,{..._0x149d59,..._0x5833b5}),this['_apply'](_0x35f52f,this[_0x3ae097(0x244)]['updateField'](_0x4e976a,_0x18d469,_0x5acd39,_0x5833b5));}[_0xfaec6d(0xda)](_0x19ff33,_0x163747,_0x424749,_0x4fb25c){const _0xc82f12=_0xfaec6d;var _0x2b6f85;if(!this[_0xc82f12(0x302)][_0xc82f12(0x10b)](_0x163747,_0x424749))throw Error(_0xc82f12(0x2e1));let _0x4c3e27=_0x19ff33[_0xc82f12(0xcd)](),_0x114ae8=(_0x2b6f85=_0x4c3e27['tables'][_0x163747])==null?void 0x0:_0x2b6f85[_0xc82f12(0x10e)][_0x424749];if(!_0x114ae8||_0x424749===_0x434772)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this['_assertFieldDefinition'](_0x4c3e27,{..._0x114ae8,..._0x4fb25c}),this[_0xc82f12(0x1a9)](_0x19ff33,this[_0xc82f12(0x244)][_0xc82f12(0xda)](_0x4c3e27,_0x163747,_0x424749,_0x4fb25c));}[_0xfaec6d(0x9e)](_0x718528,_0x26419b,_0x229860){const _0x5ec852=_0xfaec6d;var _0x2f9fa2;if(((_0x2f9fa2=_0x718528[_0x5ec852(0xcd)]()[_0x5ec852(0x2fe)][_0x26419b])==null?void 0x0:_0x2f9fa2[_0x5ec852(0xaf)])===_0x229860||_0x229860===_0x434772)throw Error(_0x5ec852(0x1a8));if(!this[_0x5ec852(0x302)][_0x5ec852(0x123)](_0x26419b,_0x229860))throw Error(_0x5ec852(0x233));this[_0x5ec852(0x1a9)](_0x718528,this['_factory'][_0x5ec852(0x9e)](_0x718528[_0x5ec852(0xcd)](),_0x26419b,_0x229860));}[_0xfaec6d(0x2b0)](_0x2568c7,_0x4e059f,_0x430403,_0x5ec930){const _0x315d3a=_0xfaec6d;if(!this['_permissionService'][_0x315d3a(0x10b)](_0x4e059f,_0x430403))throw Error(_0x315d3a(0x2e1));if(_0x430403===_0x434772||_0x5ec930[_0x315d3a(0xbe)]===_0x434772)throw Error(_0x315d3a(0xb0));this[_0x315d3a(0x1a9)](_0x2568c7,this[_0x315d3a(0x244)][_0x315d3a(0x2b0)](_0x2568c7['getSnapshot'](),_0x4e059f,_0x430403,_0x5ec930));}[_0xfaec6d(0x1f0)](_0x350f61,_0x2dfdd3,_0x29943b,_0x3ef271){const _0x2788dd=_0xfaec6d;if(!this[_0x2788dd(0x302)][_0x2788dd(0x16e)](_0x2dfdd3,_0x29943b['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x2788dd(0x1a9)](_0x350f61,this[_0x2788dd(0x244)][_0x2788dd(0x1f0)](_0x350f61['getSnapshot'](),_0x2dfdd3,_0x29943b,_0x3ef271));}[_0xfaec6d(0x129)](_0x1c1a36,_0x4814b3,_0x22b16d,_0x2ddb81){const _0xa28fe0=_0xfaec6d;if(!this[_0xa28fe0(0x302)][_0xa28fe0(0x16e)](_0x4814b3,_0x22b16d))throw Error(_0xa28fe0(0x1c3));this['_apply'](_0x1c1a36,this[_0xa28fe0(0x244)][_0xa28fe0(0x129)](_0x1c1a36[_0xa28fe0(0xcd)](),_0x4814b3,_0x22b16d,_0x2ddb81));}[_0xfaec6d(0x2b6)](_0x3b69e6,_0x3000fe,_0x3e2836){const _0xce4836=_0xfaec6d;if(!this[_0xce4836(0x302)]['canManageView'](_0x3000fe,_0x3e2836))throw Error(_0xce4836(0x1c3));this['_apply'](_0x3b69e6,this[_0xce4836(0x244)]['deleteView'](_0x3b69e6[_0xce4836(0xcd)](),_0x3000fe,_0x3e2836));}[_0xfaec6d(0x109)](_0x2be21c,_0x18b3cb,_0x52fe96,_0x4e372c){const _0x17a5e6=_0xfaec6d;if(!this['_permissionService']['canManageView'](_0x18b3cb,_0x52fe96))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x17a5e6(0x1a9)](_0x2be21c,this[_0x17a5e6(0x244)][_0x17a5e6(0x109)](_0x2be21c['getSnapshot'](),_0x18b3cb,_0x52fe96,_0x4e372c));}[_0xfaec6d(0x1b1)](_0x35e813,_0xabcba8,_0x24b441,_0x362de6){const _0x5e89dc=_0xfaec6d;if(!this[_0x5e89dc(0x302)][_0x5e89dc(0x16e)](_0xabcba8,_0x24b441))throw Error(_0x5e89dc(0x1c3));this[_0x5e89dc(0x1a9)](_0x35e813,this['_factory'][_0x5e89dc(0x1b1)](_0x35e813['getSnapshot'](),_0xabcba8,_0x24b441,_0x362de6));}[_0xfaec6d(0x24f)](_0xcabb5a,_0x2be80d,_0x194191,_0x59ca95){const _0xb80fa1=_0xfaec6d;if(!this[_0xb80fa1(0x302)]['canManageView'](_0x2be80d,_0x194191))throw Error(_0xb80fa1(0x1c3));this['_apply'](_0xcabb5a,this[_0xb80fa1(0x244)][_0xb80fa1(0x24f)](_0xcabb5a['getSnapshot'](),_0x2be80d,_0x194191,_0x59ca95));}[_0xfaec6d(0xd7)](_0x5effff,_0x5de7c6,_0x369c6d,_0x2a04ad){const _0x4cc7cd=_0xfaec6d;if(!this[_0x4cc7cd(0x302)][_0x4cc7cd(0x16e)](_0x5de7c6,_0x369c6d))throw Error(_0x4cc7cd(0x1c3));this[_0x4cc7cd(0x1a9)](_0x5effff,this['_factory'][_0x4cc7cd(0xd7)](_0x5effff['getSnapshot'](),_0x5de7c6,_0x369c6d,_0x2a04ad));}[_0xfaec6d(0x2d6)](_0x4f160e,_0x61c2e6,_0x201bfe,_0x38fcc9){const _0x8b9737=_0xfaec6d;if(!this[_0x8b9737(0x302)][_0x8b9737(0x16e)](_0x61c2e6,_0x201bfe))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x8b9737(0x1a9)](_0x4f160e,this[_0x8b9737(0x244)]['setViewGroup'](_0x4f160e[_0x8b9737(0xcd)](),_0x61c2e6,_0x201bfe,_0x38fcc9));}['setViewFieldVisible'](_0x205176,_0x99ad0d,_0x1337ae,_0x313489,_0x2206b9){const _0x395f03=_0xfaec6d;if(!this[_0x395f03(0x302)][_0x395f03(0x16e)](_0x99ad0d,_0x1337ae))throw Error(_0x395f03(0x1c3));this['_apply'](_0x205176,this['_factory'][_0x395f03(0x190)](_0x205176[_0x395f03(0xcd)](),_0x99ad0d,_0x1337ae,_0x313489,_0x2206b9));}[_0xfaec6d(0x285)](_0xfc307b,_0x12d61f,_0x1f6374,_0x1fdd15,_0x413fd8){const _0x4d30b2=_0xfaec6d;if(!this[_0x4d30b2(0x302)][_0x4d30b2(0x16e)](_0x12d61f,_0x1f6374))throw Error(_0x4d30b2(0x1c3));this[_0x4d30b2(0x1a9)](_0xfc307b,this[_0x4d30b2(0x244)][_0x4d30b2(0x285)](_0xfc307b[_0x4d30b2(0xcd)](),_0x12d61f,_0x1f6374,_0x1fdd15,_0x413fd8));}[_0xfaec6d(0x227)](_0x1e0e0f,_0x976177,_0x30baee,_0x10e8c0,_0x4ac00d){const _0x3c9389=_0xfaec6d;if(!this[_0x3c9389(0x302)][_0x3c9389(0x16e)](_0x976177,_0x30baee))throw Error(_0x3c9389(0x1c3));this[_0x3c9389(0x1a9)](_0x1e0e0f,this['_factory'][_0x3c9389(0x227)](_0x1e0e0f[_0x3c9389(0xcd)](),_0x976177,_0x30baee,_0x10e8c0,_0x4ac00d));}[_0xfaec6d(0x1a9)](_0x5dd787,_0x31d4d1){const _0x5b105d=_0xfaec6d;let _0xb944a5=_0x5dd787['getSnapshot']();_0x5dd787[_0x5b105d(0x2c7)](this['_applier']['applyOp'](_0xb944a5,_0x31d4d1));}[_0xfaec6d(0x199)](_0x1a8b87,_0x321b5f,_0xb99fef,_0x46f024=this[_0xfaec6d(0x2ea)](_0x1a8b87[_0xfaec6d(0x2fe)][_0x321b5f])){const _0x43bd1b=_0xfaec6d;let _0x94b08c=_0x1a8b87[_0x43bd1b(0x2fe)][_0x321b5f],_0x445513=_0xb99fef[_0x43bd1b(0x311)]??_0xb99fef[_0x43bd1b(0x261)]??this['_getCurrentUserId'](),_0x52e4d0={..._0xb99fef,'createdBy':_0xb99fef[_0x43bd1b(0x311)]??_0x445513,'updatedBy':_0xb99fef['updatedBy']??_0x445513,'values':{..._0xb99fef[_0x43bd1b(0xa3)]}};return _0x52e4d0[_0x43bd1b(0xa3)][_0x434772]=_0x52e4d0['id'],_0x94b08c['fieldOrder'][_0x43bd1b(0x1a4)](_0x475cbb=>{const _0x4e1d00=_0x43bd1b;let _0x3e6fb7=_0x94b08c['fields'][_0x475cbb];if(_0x3e6fb7&&_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]===void 0x0)switch(_0x3e6fb7['type']){case _0x2657c4['Numbering']:var _0x6b0cdd;_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]=((_0x6b0cdd=_0x46f024[_0x4e1d00(0x216)](_0x475cbb))==null?void 0x0:_0x6b0cdd())??this[_0x4e1d00(0x124)](_0x94b08c,_0x475cbb)();break;case _0x2657c4[_0x4e1d00(0x20d)]:_0x52e4d0[_0x4e1d00(0x311)]&&(_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]=_0x52e4d0[_0x4e1d00(0x311)]);break;case _0x2657c4[_0x4e1d00(0x15a)]:_0x52e4d0[_0x4e1d00(0x261)]&&(_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]=_0x52e4d0[_0x4e1d00(0x261)]);break;case _0x2657c4[_0x4e1d00(0x277)]:_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]=_0x1f7b6f(_0x52e4d0[_0x4e1d00(0x212)]);break;case _0x2657c4[_0x4e1d00(0x2b9)]:_0x52e4d0[_0x4e1d00(0xa3)][_0x475cbb]=_0x1f7b6f(_0x52e4d0['updatedAt']);break;default:{let _0x4c3987=_0x3e6fb7[_0x4e1d00(0x2c5)];_0x4c3987!=null&&_0x4c3987!==''&&!(Array['isArray'](_0x4c3987)&&_0x4c3987['length']===0x0)&&(_0x52e4d0['values'][_0x475cbb]=_0x4c3987);}}}),_0x52e4d0;}[_0xfaec6d(0xd1)](_0x281090,_0x437243,_0x3f3b63,_0xd34b71){const _0x9a9839=_0xfaec6d;var _0x4fefad,_0x295fdc;let _0x49264b=_0x281090[_0x9a9839(0x2fe)][_0x437243],_0x52840d=((_0x4fefad=(_0x295fdc=this[_0x9a9839(0xc2)])[_0x9a9839(0x1f7)])==null?void 0x0:_0x4fefad[_0x9a9839(0x2cc)](_0x295fdc))??Date['now'](),_0x490805=this['_getCurrentUserId'](),_0x20e72e={..._0xd34b71};return _0x49264b[_0x9a9839(0x1b0)][_0x9a9839(0x1a4)](_0x4af53f=>{const _0x172101=_0x9a9839;let _0x5b6117=_0x49264b[_0x172101(0x10e)][_0x4af53f];_0x5b6117&&(_0x5b6117['type']===_0x2657c4[_0x172101(0x2b9)]&&(_0x20e72e[_0x4af53f]=_0x1f7b6f(_0x52840d)),_0x5b6117[_0x172101(0x211)]===_0x2657c4['UpdatedBy']&&_0x490805&&(_0x20e72e[_0x4af53f]=_0x490805));}),{'recordId':_0x3f3b63,'values':_0x20e72e,'recordPatch':{'updatedAt':_0x52840d,..._0x490805?{'updatedBy':_0x490805}:{}}};}[_0xfaec6d(0x1f1)](_0x281134,_0x2b53ee,_0x27a501){const _0x33eb5e=_0xfaec6d;let _0x480d4a=_0x281134['tables'][_0x2b53ee];return!_0x480d4a||!gn(_0x27a501)?[]:_0x27a501[_0x33eb5e(0x211)]===_0x2657c4[_0x33eb5e(0x1aa)]?this[_0x33eb5e(0x144)](_0x480d4a,_0x27a501['id']):Object[_0x33eb5e(0xa3)](_0x480d4a[_0x33eb5e(0x11e)])[_0x33eb5e(0xce)](_0x331eb9=>{const _0x279091=_0x33eb5e;let _0xead59d=this[_0x279091(0x250)](_0x27a501,_0x331eb9);return _0xead59d===void 0x0?[]:[{'recordId':_0x331eb9['id'],'values':{[_0x27a501['id']]:_0xead59d}}];});}[_0xfaec6d(0x250)](_0x4f437f,_0x87f5f){const _0x2f870d=_0xfaec6d;switch(_0x4f437f[_0x2f870d(0x211)]){case _0x2657c4[_0x2f870d(0x20d)]:return _0x87f5f[_0x2f870d(0x311)]??this['_getCurrentUserId']();case _0x2657c4[_0x2f870d(0x15a)]:return _0x87f5f[_0x2f870d(0x261)]??this[_0x2f870d(0x26b)]();case _0x2657c4[_0x2f870d(0x277)]:return _0x1f7b6f(_0x87f5f['createdAt']??Date[_0x2f870d(0x1f7)]());case _0x2657c4[_0x2f870d(0x2b9)]:return _0x1f7b6f(_0x87f5f[_0x2f870d(0xac)]??Date[_0x2f870d(0x1f7)]());default:return;}}['_createNumberingAllocators'](_0x57a96b){const _0xc2db66=_0xfaec6d;let _0x52266d=new Map();return _0x57a96b&&_0x57a96b['fieldOrder'][_0xc2db66(0x1a4)](_0x54894f=>{const _0x355844=_0xc2db66;let _0x45d796=_0x57a96b[_0x355844(0x10e)][_0x54894f];(_0x45d796==null?void 0x0:_0x45d796[_0x355844(0x211)])===_0x2657c4['Numbering']&&_0x52266d[_0x355844(0x2cd)](_0x54894f,this[_0x355844(0x124)](_0x57a96b,_0x54894f));}),_0x52266d;}[_0xfaec6d(0x124)](_0x56914e,_0x4dd269){const _0xcd1cf9=_0xfaec6d;let _0x4c1cec=Object[_0xcd1cf9(0xa3)](_0x56914e[_0xcd1cf9(0x11e)])['reduce']((_0xf6c10f,_0x551c78)=>{let _0x410ae3=Number(_0x551c78['values'][_0x4dd269]);return Number['isFinite'](_0x410ae3)?Math['max'](_0xf6c10f,_0x410ae3):_0xf6c10f;},0x0);return()=>String(++_0x4c1cec);}['_createNumberingFieldValuePatches'](_0x2da1a9,_0x5ab063){const _0x5da6e7=_0xfaec6d;let _0x26f4f7=this[_0x5da6e7(0x19f)](_0x2da1a9),_0x1a5040=this[_0x5da6e7(0x124)](_0x2da1a9,_0x5ab063);return _0x26f4f7[_0x5da6e7(0xce)](_0x350d04=>this[_0x5da6e7(0x136)](_0x350d04[_0x5da6e7(0xa3)][_0x5ab063])?[]:[{'recordId':_0x350d04['id'],'values':{[_0x5ab063]:_0x1a5040()}}]);}[_0xfaec6d(0x19f)](_0x45e58e){const _0x391167=_0xfaec6d;var _0x2a3ea0;let _0x547346=Object[_0x391167(0xa3)](_0x45e58e[_0x391167(0x11e)]),_0x8491e6=new Map(_0x547346[_0x391167(0xdc)](_0x322496=>[_0x322496['id'],_0x322496])),_0x3975a2=[],_0x2edf7a=new Set();(_0x2a3ea0=_0x45e58e[_0x391167(0x12b)])==null||_0x2a3ea0['forEach'](_0xe9e6ca=>{const _0x18567f=_0x391167;let _0x2b2c8e=_0x8491e6[_0x18567f(0x216)](_0xe9e6ca);_0x2b2c8e&&(_0x3975a2[_0x18567f(0x27e)](_0x2b2c8e),_0x2edf7a[_0x18567f(0xe7)](_0xe9e6ca));});let _0x527d34=_0x547346[_0x391167(0x249)](_0x4e247e=>!_0x2edf7a[_0x391167(0x25a)](_0x4e247e['id']))[_0x391167(0x2f8)]((_0x364f22,_0x2cf97c)=>String(_0x364f22['orderKey']??_0x364f22['id'])[_0x391167(0x29f)](String(_0x2cf97c['orderKey']??_0x2cf97c['id']))||_0x364f22['id'][_0x391167(0x29f)](_0x2cf97c['id']));return[..._0x3975a2,..._0x527d34];}[_0xfaec6d(0x136)](_0x746dc5){const _0x5be9f1=_0xfaec6d;return _0x746dc5!=null&&_0x746dc5!==''&&!(Array[_0x5be9f1(0x183)](_0x746dc5)&&_0x746dc5[_0x5be9f1(0x317)]===0x0);}[_0xfaec6d(0x26b)](){const _0x259e46=_0xfaec6d;var _0x2573c5,_0x1028eb,_0x3d9b57,_0x1509ee;return((_0x2573c5=(_0x1028eb=this[_0x259e46(0xc2)])['getCurrentUserId'])==null?void 0x0:_0x2573c5[_0x259e46(0x2cc)](_0x1028eb))??((_0x3d9b57=(_0x1509ee=this[_0x259e46(0xc2)])[_0x259e46(0x1d3)])==null||(_0x3d9b57=_0x3d9b57[_0x259e46(0x2cc)](_0x1509ee))==null?void 0x0:_0x3d9b57[_0x259e46(0x2e4)])??void 0x0;}[_0xfaec6d(0x246)](_0x1f5b2c,_0x4d6432,_0x35f043,_0x4cac7b,_0x597d1d){const _0x53379d=_0xfaec6d;var _0x156006;if(!this['_permissionService'][_0x53379d(0xa7)](_0x4d6432,_0x35f043,_0x4cac7b))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20cell.');let _0x3e8570=(_0x156006=_0x1f5b2c['tables'][_0x4d6432])==null?void 0x0:_0x156006['fields'][_0x4cac7b];if(!_0x3e8570)throw Error('[BaseCommandService]:\x20field\x20\x22'+_0x4cac7b+_0x53379d(0x2d9));let _0xe058cf=this['_fieldRegistry'][_0x53379d(0x216)](_0x3e8570[_0x53379d(0x211)]);if(_0x3e8570[_0x53379d(0x17f)]||_0x3e8570[_0x53379d(0x22b)]||!_0xe058cf['getCapabilities'](_0x3e8570)[_0x53379d(0x2b7)])throw Error(_0x53379d(0x2d0));let _0x553499=_0xe058cf[_0x53379d(0x241)](_0x597d1d,_0x3e8570),_0x47a59f=_0xe058cf[_0x53379d(0x21b)](_0x553499,_0x3e8570);if(!_0x47a59f[_0x53379d(0xbd)])throw Error(_0x47a59f[_0x53379d(0x2fa)]??'[BaseCommandService]:\x20invalid\x20cell\x20value.');let _0x3c8c24=_0x3e8570['type']===_0x2657c4['RecordLink']?_0x568b68(_0x1f5b2c,_0x3e8570,_0x553499):{'valid':!0x0};if(!_0x3c8c24[_0x53379d(0xbd)])throw Error(_0x3c8c24[_0x53379d(0x2fa)]??_0x53379d(0x2ac));return _0x553499;}['_assertFieldDefinition'](_0x2bdcde,_0x544ccc){const _0x2a2f1d=_0xfaec6d;if(_0x544ccc['id']===_0x434772||_0x544ccc[_0x2a2f1d(0x211)]===_0x2657c4[_0x2a2f1d(0x2e2)]||_0xf0d49(_0x544ccc['name']))throw Error(_0x2a2f1d(0x14a));let _0x316aba=_0x5d4051(_0x2bdcde,_0x544ccc);if(!_0x316aba['valid'])throw Error(_0x316aba[_0x2a2f1d(0x2fa)]??_0x2a2f1d(0x184));}};mn=_0x17409a([_0x1babfc(0x0,cn),_0x1babfc(0x1,_0x44139a)],mn);function hn(){let _0x4bb8fb=new _0x59c7a4();return _0x6a0734()['forEach'](_0x25cf7d=>_0x4bb8fb['register'](_0x25cf7d)),_0x4bb8fb;}function gn(_0x39b5d7){const _0x4ffb81=_0xfaec6d;return _0x39b5d7[_0x4ffb81(0x211)]===_0x2657c4['Numbering']||_0x39b5d7['type']===_0x2657c4[_0x4ffb81(0x20d)]||_0x39b5d7[_0x4ffb81(0x211)]===_0x2657c4[_0x4ffb81(0x15a)]||_0x39b5d7[_0x4ffb81(0x211)]===_0x2657c4['CreatedAt']||_0x39b5d7[_0x4ffb81(0x211)]===_0x2657c4[_0x4ffb81(0x2b9)];}const _n=_0x32df0e[_0xfaec6d(0x30b)](String[_0xfaec6d(0x12f)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),vn=_0x32df0e[_0xfaec6d(0x30b)](String['raw']`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),yn=/\{([^}]+)\}/g,bn=_0x32df0e[_0xfaec6d(0x30b)](String[_0xfaec6d(0x12f)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),xn=_0x32df0e[_0xfaec6d(0x30b)](String['raw']`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Sn=_0x32df0e['createRegExpFromSafeFragment'](String['raw']`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),Cn=_0x32df0e[_0xfaec6d(0x30b)](String[_0xfaec6d(0x12f)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),wn=_0x32df0e[_0xfaec6d(0x30b)](String[_0xfaec6d(0x12f)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Tn=_0x32df0e[_0xfaec6d(0x30b)](String[_0xfaec6d(0x12f)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var En=class{[_0xfaec6d(0x151)](_0x418fd5,_0x2cdfe7=_0x418fd5['id']){const _0x5661c5=_0xfaec6d;var _0x4c5125;let _0x3cfd9b=((_0x4c5125=_0x418fd5[_0x5661c5(0x12b)])==null?void 0x0:_0x4c5125[_0x5661c5(0x317)])??Object[_0x5661c5(0xa3)](_0x418fd5['records'])['length'];return{'sheetId':_0x2cdfe7,'titleMap':new Map(_0x418fd5[_0x5661c5(0x1b0)][_0x5661c5(0xdc)]((_0x51f930,_0x6dc173)=>{const _0x48a84a=_0x5661c5;var _0x3e7546;return[((_0x3e7546=_0x418fd5['fields'][_0x51f930])==null?void 0x0:_0x3e7546[_0x48a84a(0x267)])??_0x51f930,_0x6dc173];})),'range':{'startRow':0x0,'endRow':Math[_0x5661c5(0x236)](0x0,_0x3cfd9b-0x1),'startColumn':0x0,'endColumn':Math[_0x5661c5(0x236)](0x0,_0x418fd5[_0x5661c5(0x1b0)][_0x5661c5(0x317)]-0x1)},'showHeader':!0x1};}[_0xfaec6d(0x1b6)](_0x48660d,_0x4fb253){let _0x2be97d=[],_0x4f74b7=_0x4fb253?new Set(_0x4fb253):null,_0x9151d9=_0x49875a(_0x48660d);return Object['values'](_0x48660d['tables'])['filter'](_0x2a377c=>!_0x4f74b7||_0x4f74b7['has'](_0x2a377c['id']))['forEach'](_0x347d78=>{const _0x503741=_0xb8c0;let _0x4bd030=this['createSuperTableReference'](_0x347d78,_0x347d78['id']);_0x2be97d[_0x503741(0x27e)]({'tableId':_0x347d78['id'],'tableName':_0x9151d9['get'](_0x347d78['id']),'reference':_0x4bd030});}),_0x2be97d;}[_0xfaec6d(0x1fb)](_0x4e65a1,_0x3be299,_0x509b12={}){const _0x5d5d16=_0xfaec6d;let _0x1d7cd3=_0x4e65a1[_0x5d5d16(0x2fc)]();if(!_0x1d7cd3)return{'valid':!0x0};if(Mn(_0x1d7cd3))return{'valid':!0x1,'reason':_0x5d5d16(0x18f)};let _0x307622=_0x509b12[_0x5d5d16(0x195)]?_0x49875a(_0x509b12['snapshot']):void 0x0;for(let _0x1cd38b of jn(_0x1d7cd3)){let _0xe169c1=Bn(_0x1cd38b,_0x3be299,_0x509b12['snapshot'],_0x307622);if(!_0xe169c1[_0x5d5d16(0x18d)])return{'valid':!0x1,'reason':_0x5d5d16(0x115)+_0x1cd38b[_0x5d5d16(0x1cc)]+_0x5d5d16(0x12e)};if(!_0xe169c1[_0x5d5d16(0x145)])return{'valid':!0x1,'reason':'[BaseFormula]:\x20field\x20\x22'+_0x1cd38b[_0x5d5d16(0x17e)]+'\x22\x20does\x20not\x20exist.'};}return{'valid':!0x0};}[_0xfaec6d(0x2de)](_0x4dbef9,_0x45c9fb,_0x13e918={}){const _0x3212c6=_0xfaec6d;let _0xda79bc=new Set();for(let _0x5314a2 of this[_0x3212c6(0x1d2)](_0x4dbef9,_0x45c9fb,_0x13e918))_0x5314a2[_0x3212c6(0x2a8)]===_0x45c9fb['id']&&_0xda79bc[_0x3212c6(0xe7)](_0x5314a2[_0x3212c6(0x2c3)]);return Array['from'](_0xda79bc);}['getStructuredDependencies'](_0x1f2d2f,_0x1aec2e,_0x133593={}){const _0x5aa9ce=_0xfaec6d;let _0x39ad13=new Map(),_0x5f35f4=_0x133593['snapshot']?_0x49875a(_0x133593['snapshot']):void 0x0;for(let _0x5778b9 of jn(_0x1f2d2f)){let _0x1dbde5=Bn(_0x5778b9,_0x1aec2e,_0x133593['snapshot'],_0x5f35f4);if(!_0x1dbde5[_0x5aa9ce(0x18d)]||!_0x1dbde5[_0x5aa9ce(0x145)])continue;let _0x46f51c=_0x1dbde5[_0x5aa9ce(0x18d)]['id']+'\x1f'+_0x1dbde5[_0x5aa9ce(0x145)]['id'];_0x39ad13[_0x5aa9ce(0x2cd)](_0x46f51c,{'tableId':_0x1dbde5['table']['id'],'fieldId':_0x1dbde5[_0x5aa9ce(0x145)]['id']});}return Array[_0x5aa9ce(0x309)](_0x39ad13[_0x5aa9ce(0xa3)]());}};function Dn(_0x712edb,_0x3a83db){const _0x4bdba4=_0xfaec6d;var _0x4657f0;let _0x3de265=[],_0x1fc8d3=(_0x4657f0=_0x3a83db[_0x4bdba4(0x27a)])==null?void 0x0:_0x4657f0[_0x712edb['id']];return _0x1fc8d3&&Object[_0x4bdba4(0xc4)](_0x1fc8d3)[_0x4bdba4(0x1a4)](([_0x505336,_0x205aa3])=>{const _0x7a5b16=_0x4bdba4;let _0x32d851=_0x712edb[_0x7a5b16(0x2fe)][_0x505336];if(!_0x32d851||!_0x205aa3)return;let _0x18ddc6=_0x470fe8(_0x32d851),_0xcb2c00=[];new _0x5bc47d(_0x205aa3)['forValue']((_0x1ac60d,_0x460007,_0x4c892f)=>{const _0x3b809d=_0x7a5b16;let _0x4c2eee=On(_0x18ddc6,_0x1ac60d,_0x460007,_0x4c892f);_0x4c2eee&&_0xcb2c00[_0x3b809d(0x27e)](_0x4c2eee);}),_0xcb2c00[_0x7a5b16(0x317)]&&_0x3de265[_0x7a5b16(0x27e)]({'unitId':_0x712edb['id'],'tableId':_0x505336,'patches':_0xcb2c00});}),_0x3de265;}function On(_0x3980a4,_0x241bc1,_0x569aa1,_0x2a2f59){const _0x8bfba5=_0xfaec6d;var _0x3b2a35,_0x5aaf4b,_0x305248;let _0xd25428=(_0x3b2a35=_0x3980a4[_0x8bfba5(0x20f)])==null?void 0x0:_0x3b2a35[_0x241bc1],_0x3b95ad=(_0x5aaf4b=_0x3980a4['colId'])==null?void 0x0:_0x5aaf4b[_0x569aa1];if(!_0xd25428||!_0x3980a4[_0x8bfba5(0x11e)][_0xd25428]||!_0x3b95ad)return null;let _0x352480=_0x3980a4[_0x8bfba5(0x10e)][_0x3b95ad];if(!_0x352480||_0x352480['type']!==_0x8bfba5(0x315))return null;let _0x4bc97a=String(((_0x305248=_0x352480['config'])==null?void 0x0:_0x305248[_0x8bfba5(0x315)])??'')[_0x8bfba5(0x2fc)](),_0x27f744=(_0x2a2f59==null?void 0x0:_0x2a2f59['v'])??null,_0x59a9a5={'v':_0x27f744,'t':An(_0x27f744),..._0x241bc1===0x0&&_0x4bc97a?{'f':_0x4bc97a}:{},'si':_0x352480['id']};return kn(_0x13b611(_0x3980a4,_0xd25428,_0x3b95ad),_0x59a9a5)?null:{'row':_0x241bc1,'col':_0x569aa1,'value':_0x59a9a5};}function kn(_0x5e4a73,_0x3c4c6d){return _0x5e4a73!=null&&Object['is'](_0x5e4a73['v']??null,_0x3c4c6d['v']??null)&&_0x5e4a73['t']===_0x3c4c6d['t']&&_0x5e4a73['f']===_0x3c4c6d['f']&&_0x5e4a73['si']===_0x3c4c6d['si'];}function An(_0x3ef9ee){const _0x18c033=_0xfaec6d;return typeof _0x3ef9ee==_0x18c033(0x1d5)?_0x1f17d0[_0x18c033(0xb5)]:typeof _0x3ef9ee==_0x18c033(0x19a)?_0x1f17d0[_0x18c033(0x278)]:typeof _0x3ef9ee==_0x18c033(0xd0)?_0x1f17d0['STRING']:null;}function jn(_0x450e24){const _0x2eed9e=_0xfaec6d;let _0x33c742=Pn(_0x450e24,()=>''),_0x253b34=new Map(),_0x2190d3=_0x50ba5f=>{const _0x52a9ef=_0xb8c0;_0x253b34[_0x52a9ef(0x2cd)]((_0x50ba5f[_0x52a9ef(0x1cc)]??'')+'\x1f'+_0x50ba5f[_0x52a9ef(0x17e)],_0x50ba5f);};for(let _0xf7acb6 of _0x33c742['matchAll'](yn))_0x2190d3({'fieldName':_0xf7acb6[0x1],'scope':_0x2eed9e(0x2ec)});_0x33c742=_0x33c742['replace'](bn,(_0x371577,_0x7d091e,_0x12cabb,_0x53ab00)=>(_0x2190d3({'tableName':_0x7d091e,'fieldName':_0x53ab00,'scope':_0x12cabb['toLowerCase']()==='data'?_0x2eed9e(0x189):'this-row'}),'\x20')),_0x33c742=_0x33c742[_0x2eed9e(0x1ea)](xn,(_0x48685e,_0x23ffbd,_0x399b0e)=>(_0x2190d3({'tableName':_0x23ffbd,'fieldName':_0x399b0e,'scope':_0x2eed9e(0x2ec)}),'\x20')),_0x33c742=_0x33c742[_0x2eed9e(0x1ea)](Cn,(_0x234b11,_0x5b884c,_0x205d9c,_0x44e154)=>(_0x2190d3({'fieldName':_0x44e154,'scope':_0x205d9c['toLowerCase']()===_0x2eed9e(0x189)?_0x2eed9e(0x189):_0x2eed9e(0x2ec)}),_0x5b884c+'\x20')),_0x33c742=_0x33c742[_0x2eed9e(0x1ea)](wn,(_0x2f3c48,_0x16357,_0x4232a4)=>(_0x2190d3({'fieldName':_0x4232a4,'scope':_0x2eed9e(0x2ec)}),_0x16357+'\x20'));for(let _0x283a83 of _0x33c742[_0x2eed9e(0x19c)](Sn))_0x2190d3({'tableName':_0x283a83[0x1],'fieldName':_0x283a83[0x2]});for(let _0x23c8bb of _0x33c742[_0x2eed9e(0x19c)](Tn))_0x2190d3({'fieldName':_0x23c8bb[0x2],'scope':_0x2eed9e(0x2ec)});return Array[_0x2eed9e(0x309)](_0x253b34['values']());}function Mn(_0x3a91a3){const _0x4d15e1=_0xfaec6d;let _0x5e57e9=Pn(_0x3a91a3,()=>'\x20')[_0x4d15e1(0x1ea)](yn,'\x20')[_0x4d15e1(0x1ea)](bn,'\x20')[_0x4d15e1(0x1ea)](xn,'\x20')[_0x4d15e1(0x1ea)](Cn,_0x4d15e1(0x141))['replace'](wn,_0x4d15e1(0x141))[_0x4d15e1(0x1ea)](Sn,'\x20')[_0x4d15e1(0x1ea)](Tn,'$1\x20');return _n['test'](_0x5e57e9);}function Nn(_0x4f6ccf,_0x38f1bd){return Rn(In(_0x4f6ccf,_0x38f1bd),_0x38f1bd);}function Pn(_0x428508,_0x180d1d){return Fn(Nn(_0x428508,_0x180d1d),_0x180d1d);}function Fn(_0x4f9f7e,_0x2ffef3){return _0x4f9f7e['replace'](/"(?:""|[^"])*"/g,_0x2ffef3);}function In(_0x279a9c,_0x3934be){const _0x33d836=_0xfaec6d;return vn[_0x33d836(0x2cf)]=0x0,_0x279a9c[_0x33d836(0x1ea)](vn,(_0x5c450b,_0x51addc)=>zn(_0x279a9c,_0x51addc)?_0x5c450b:_0x3934be(_0x5c450b));}const Ln=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function Rn(_0x331d08,_0x577852){const _0x4ee17b=_0xfaec6d;let _0x22f792=[];for(Ln[_0x4ee17b(0x2cf)]=0x0;;){let _0x4be024=Ln[_0x4ee17b(0x272)](_0x331d08);if(_0x4be024==null)break;if(zn(_0x331d08,_0x4be024['index']))continue;let _0x2056fe=Ln['lastIndex']-0x1,_0x27cf95=0x0;for(let _0x4ec38a=_0x2056fe;_0x4ec38a<_0x331d08[_0x4ee17b(0x317)];_0x4ec38a++)if(_0x331d08[_0x4ec38a]==='['&&_0x27cf95++,_0x331d08[_0x4ec38a]===']'&&(_0x27cf95--,_0x27cf95===0x0)){_0x22f792[_0x4ee17b(0x27e)]({'start':_0x4be024[_0x4ee17b(0x235)],'end':_0x4ec38a+0x1}),Ln[_0x4ee17b(0x2cf)]=_0x4ec38a+0x1;break;}}if(_0x22f792[_0x4ee17b(0x317)]===0x0)return _0x331d08;let _0x1246f8='',_0x398abe=0x0;for(let _0x32e1d4 of _0x22f792)_0x1246f8+=_0x331d08[_0x4ee17b(0x13e)](_0x398abe,_0x32e1d4['start']),_0x1246f8+=_0x577852(_0x331d08[_0x4ee17b(0x13e)](_0x32e1d4[_0x4ee17b(0x1e3)],_0x32e1d4['end'])),_0x398abe=_0x32e1d4[_0x4ee17b(0xd8)];return _0x1246f8+_0x331d08[_0x4ee17b(0x13e)](_0x398abe);}function zn(_0x48cebb,_0x4d3a56){let _0x4efdb9=!0x1;for(let _0x5a3977=0x0;_0x5a3977<_0x4d3a56;_0x5a3977++)_0x48cebb[_0x5a3977]==='\x22'&&(_0x4efdb9&&_0x48cebb[_0x5a3977+0x1]==='\x22'?_0x5a3977++:_0x4efdb9=!_0x4efdb9);return _0x4efdb9;}function Bn(_0x43a882,_0x49eb23,_0x4b5ee9,_0x5a2aaf){const _0x3dddae=_0xfaec6d;let _0x547ca3=Vn(_0x43a882[_0x3dddae(0x1cc)],_0x49eb23,_0x4b5ee9,_0x5a2aaf);return{'table':_0x547ca3,'field':_0x547ca3?Object[_0x3dddae(0xa3)](_0x547ca3[_0x3dddae(0x10e)])[_0x3dddae(0x158)](_0x263dbc=>_0x263dbc['name']===_0x43a882[_0x3dddae(0x17e)]):void 0x0};}function Vn(_0x10ac1c,_0x3db978,_0x1bbd25,_0x2790e2){const _0x549d34=_0xfaec6d;if(!_0x10ac1c)return _0x3db978;if(!_0x1bbd25){var _0x4c380d;let _0x13ed7b=_0x10ac1c[_0x549d34(0x2ab)]();return _0x13ed7b===_0x3db978['id'][_0x549d34(0x2ab)]()||_0x13ed7b===_0x3db978[_0x549d34(0x267)][_0x549d34(0x2ab)]()||_0x13ed7b===((_0x4c380d=_0x3db978[_0x549d34(0x19e)])==null?void 0x0:_0x4c380d[_0x549d34(0x2ab)]())?_0x3db978:void 0x0;}let _0x3cb0ba=_0x10ac1c[_0x549d34(0x2ab)](),_0x721ba6=_0x2790e2??_0x49875a(_0x1bbd25),_0x148e42=Object[_0x549d34(0xa3)](_0x1bbd25[_0x549d34(0x2fe)])[_0x549d34(0x249)](_0x5dc4a0=>{const _0x5822c2=_0x549d34;var _0x3d957e;return _0x5dc4a0['id'][_0x5822c2(0x2ab)]()===_0x3cb0ba||_0x5dc4a0[_0x5822c2(0x267)][_0x5822c2(0x2ab)]()===_0x3cb0ba||((_0x3d957e=_0x721ba6['get'](_0x5dc4a0['id']))==null?void 0x0:_0x3d957e[_0x5822c2(0x2ab)]())===_0x3cb0ba||Hn(_0x5dc4a0['id'])[_0x5822c2(0x2ab)]()===_0x3cb0ba;});return _0x148e42['length']===0x1?_0x148e42[0x0]:void 0x0;}function Hn(_0x2d3a95){const _0x164357=_0xfaec6d;return'_T_'+Array[_0x164357(0x309)](_0x2d3a95,_0x3496de=>{const _0x300f64=_0x164357;var _0x122bc8;return/[A-Za-z0-9]/[_0x300f64(0xd2)](_0x3496de)?_0x3496de:'_x'+(((_0x122bc8=_0x3496de[_0x300f64(0x175)](0x0))==null?void 0x0:_0x122bc8[_0x300f64(0xc8)](0x10))??'0')+'_';})[_0x164357(0x21a)]('');}const Un=new En();function Wn(_0x11f39d,_0x38a43d,_0x1c3802){const _0x5de78b=_0xfaec6d;var _0x425366;if(_0x1c3802[_0x5de78b(0x211)]!==_0x2657c4[_0x5de78b(0x293)])return!0x0;let _0x561bd9=String(((_0x425366=_0x1c3802[_0x5de78b(0x2c6)])==null?void 0x0:_0x425366['formula'])??''),_0x30c484=_0x11f39d['getSnapshot']();return Un['validateFormula'](_0x561bd9,_0x30c484[_0x5de78b(0x2fe)][_0x38a43d],{'snapshot':_0x30c484})[_0x5de78b(0xbd)];}function Z(_0x6a59c4,_0x5ccd46,_0x5ae65f){const _0x1ffe17=_0xfaec6d;let _0x4d6509=_0x6a59c4[_0x1ffe17(0xcd)]()['tables'][_0x5ccd46];if(!_0x4d6509)return!0x1;let {viewIds:_0x1862a4,fieldIds:_0x1fc6d0,recordIds:_0x9be352}=_0x5ae65f||{};if(_0x1862a4){for(let _0xaeb1ac of _0x1862a4)if(!_0x4d6509[_0x1ffe17(0x25e)][_0xaeb1ac])return!0x1;}if(_0x1fc6d0){for(let _0x929673 of _0x1fc6d0)if(!_0x4d6509[_0x1ffe17(0x10e)][_0x929673])return!0x1;}if(_0x9be352){for(let _0x2e1015 of _0x9be352)if(!_0x4d6509[_0x1ffe17(0x11e)][_0x2e1015])return!0x1;}return!0x0;}function Gn(_0x3619d4,_0x497816,_0x2140db){const _0x4b1a69=_0xfaec6d;if(_0x2140db['id']===_0x434772||_0x2140db[_0x4b1a69(0x211)]===_0x2657c4[_0x4b1a69(0x2e2)]||_0xf0d49(_0x2140db[_0x4b1a69(0x267)])||!Wn(_0x3619d4,_0x497816,_0x2140db))return!0x1;let _0x2e32fa=_0x3619d4['getSnapshot']();if(!_0x5d4051(_0x2e32fa,_0x2140db)[_0x4b1a69(0xbd)])return!0x1;if(_0x2140db[_0x4b1a69(0x211)]!==_0x2657c4[_0x4b1a69(0x18b)])return!0x0;let _0x264c8a=_0x252b80(_0x2140db);if(!_0x264c8a)return!0x1;if(_0x264c8a['relationRole']===void 0x0)return!0x0;if(_0x264c8a[_0x4b1a69(0x12c)]!==_0x3ae3dd[_0x4b1a69(0x308)]||_0x264c8a[_0x4b1a69(0x18e)]!==_0x497816||_0x264c8a[_0x4b1a69(0x25d)]!==!0x1)return!0x1;let _0x4b2a0a=_0x2e32fa[_0x4b1a69(0x2fe)][_0x497816];return!Object['values'](_0x4b2a0a[_0x4b1a69(0x10e)])[_0x4b1a69(0x2e6)](_0x2861c4=>{const _0x3c7fc0=_0x4b1a69;var _0x3a3d20;return _0x2861c4['id']!==_0x2140db['id']&&_0x2861c4[_0x3c7fc0(0x211)]===_0x2657c4[_0x3c7fc0(0x18b)]&&((_0x3a3d20=_0x252b80(_0x2861c4))==null?void 0x0:_0x3a3d20[_0x3c7fc0(0x12c)])===_0x3ae3dd['Parent'];});}function Kn(_0xe589ca,_0x41db56,_0x304626,_0x3da48a){const _0x5b4641=_0xfaec6d;var _0x479fd5;let _0x4d7372=_0xe589ca[_0x5b4641(0xcd)](),_0x2ddbf5=(_0x479fd5=_0x4d7372['tables'][_0x41db56])==null?void 0x0:_0x479fd5[_0x5b4641(0x10e)][_0x304626];if(!_0x2ddbf5||_0x2ddbf5['id']===_0x434772||_0x2ddbf5['type']===_0x2657c4[_0x5b4641(0x2e2)])return!0x1;if(_0x2ddbf5[_0x5b4641(0x211)]!==_0x2657c4[_0x5b4641(0x18b)])return!0x0;let _0x43bce1=Yn(_0x3da48a);return _0x568b68(_0x4d7372,_0x2ddbf5,_0x43bce1)[_0x5b4641(0xbd)];}function qn(_0x2d53b3,_0x5156dd,_0x50ccd5){const _0x2e8afd=_0xfaec6d;let _0x160921=_0x2d53b3[_0x2e8afd(0xcd)]()[_0x2e8afd(0x2fe)][_0x5156dd];return!_0x160921||!_0xd7b43e(_0x50ccd5['id'])||_0x160921[_0x2e8afd(0x11e)][_0x50ccd5['id']]||Object[_0x2e8afd(0x119)]['hasOwnProperty'][_0x2e8afd(0x2cc)](_0x50ccd5[_0x2e8afd(0xa3)],_0x434772)&&_0x50ccd5['values'][_0x434772]!==_0x50ccd5['id']?!0x1:Object[_0x2e8afd(0xc4)](_0x50ccd5['values'])[_0x2e8afd(0xe2)](([_0x3e2297,_0x5c17ef])=>_0x3e2297===_0x434772||Kn(_0x2d53b3,_0x5156dd,_0x3e2297,_0x5c17ef));}function Jn(_0x2355bd){const _0x1785b1=_0xfaec6d;return{..._0x2355bd,'values':{..._0x2355bd[_0x1785b1(0xa3)],[_0x434772]:_0x2355bd['id']}};}function Yn(_0x46931a){const _0x11d47d=_0xfaec6d;if(_0x46931a&&typeof _0x46931a==_0x11d47d(0x148)&&!Array['isArray'](_0x46931a)&&'v'in _0x46931a){let _0x4a5d06=_0x46931a['v'];return _0x4a5d06===void 0x0?null:_0x4a5d06;}return _0x46931a;}function Xn(_0x3f2a48,_0xc50f1b,_0x2d9af8,_0x5efa5a){const _0x5162ee=_0xfaec6d;let _0x1fe68f=_0x3f2a48[_0x5162ee(0xcd)]()[_0x5162ee(0x2fe)][_0xc50f1b];if(!_0x1fe68f)return null;let _0x152302=_0x103c1d(_0x1fe68f),_0xae8bf2=_0x152302??_0x4cdd92(_0x1fe68f),_0x48a42a=_0x2d9af8[_0x5162ee(0x2e6)](_0x5e976a=>Object[_0x5162ee(0x119)][_0x5162ee(0x283)]['call'](_0x5e976a[_0x5162ee(0xa3)],_0xae8bf2)),_0x239b1c=_0x152302?_0x1fe68f[_0x5162ee(0x10e)][_0x152302]:_0x48a42a?_0x1cd0c2(_0x1fe68f,_0xae8bf2,_0x5efa5a):null,_0x482095=[];for(let _0x2260d0 of _0x2d9af8){let _0x2e5cff=_0x2260d0[_0x5162ee(0xa3)][_0xae8bf2],_0x4d3839=_0x239b1c!==null&&Object[_0x5162ee(0x119)][_0x5162ee(0x283)][_0x5162ee(0x2cc)](_0x2260d0[_0x5162ee(0xa3)],_0xae8bf2),_0x390ff9=Yn(_0x2e5cff),_0xa7d706=null;if(_0x4d3839){if(typeof _0x390ff9!=_0x5162ee(0xd0)||!_0x1695f4(_0x390ff9,!0x1)['valid'])return null;_0xa7d706=_0x390ff9;}let _0x2e06c7={};if(Object[_0x5162ee(0xc4)](_0x2260d0[_0x5162ee(0xa3)])[_0x5162ee(0x1a4)](([_0x49a23d,_0x26c156])=>{_0x4d3839&&_0x49a23d===_0xae8bf2||(_0x2e06c7[_0x49a23d]=_0x26c156);}),!qn(_0x3f2a48,_0xc50f1b,{..._0x2260d0,'values':_0x2e06c7}))return null;let _0x5af2b0={..._0x2260d0[_0x5162ee(0xa3)]};_0xa7d706!==null&&(_0x5af2b0[_0xae8bf2]=_0xa7d706),_0x482095['push'](Jn({..._0x2260d0,'values':_0x5af2b0}));}return{'records':_0x482095,'hierarchyFieldToMaterialize':_0x152302?null:_0x239b1c,'hierarchyChanges':_0x17e97(_0x1fe68f,_0x482095)};}const Zn={'id':_0xfaec6d(0x2bd),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x33155f,_0x29de28){const _0x1e0c49=_0xfaec6d;if(!_0x29de28)return!0x1;let _0x1c91d7=_0x33155f[_0x1e0c49(0x216)](_0x3a34dc),{unitId:_0x480dfb,tableId:_0x39b878,records:_0x3d404d}=_0x29de28,_0x5c595a=_0x1c91d7[_0x1e0c49(0x147)](_0x480dfb,_0x528a5b['UNIVER_BASE']),_0x3a0c56=_0x3d404d[_0x1e0c49(0xdc)](_0x25f777=>_0x25f777['id']);if(!_0x5c595a||!Z(_0x5c595a,_0x39b878)||new Set(_0x3a0c56)[_0x1e0c49(0x1c7)]!==_0x3a0c56[_0x1e0c49(0x317)])return!0x1;let _0x5ec4ac=_0x33155f[_0x1e0c49(0x216)](_0x2780d7),_0x72a630=_0x33155f[_0x1e0c49(0x216)](_0x5da6dc),_0x2486f5=_0x33155f[_0x1e0c49(0x216)](X),_0x5e921c=_0x5c595a[_0x1e0c49(0xcd)](),_0x4328c5=Xn(_0x5c595a,_0x39b878,_0x3d404d);if(!_0x4328c5)return!0x1;let {records:_0x96d78a,hierarchyChanges:_0x29a7fa,hierarchyFieldToMaterialize:_0x1ffd8d}=_0x4328c5,_0x10b0e4=_0x1ffd8d?_0x2486f5[_0x1e0c49(0xde)](_0x5c595a,_0x39b878,_0x1ffd8d,_0x5e921c[_0x1e0c49(0x2fe)][_0x39b878]['fieldOrder'][_0x1e0c49(0x317)]):null,_0x34a8ef=_0x2486f5[_0x1e0c49(0x2f7)](_0x5c595a,_0x39b878,_0x96d78a),_0x1788cb=_0x2df3da([..._0x10b0e4?[_0x10b0e4]:[],_0x34a8ef]),_0xa152a0=new _0x445a5d()['invertOp'](_0x5e921c,_0x1788cb),_0x3490da={'unitId':_0x480dfb,'op':_0x1788cb,'hierarchyChanges':_0x29a7fa[_0x1e0c49(0x317)]?_0x29a7fa:void 0x0,'source':_0x29a7fa[_0x1e0c49(0x317)]?_0x29de28[_0x1e0c49(0x9f)]??'ui':void 0x0},_0x3e389d={..._0x3490da,'source':_0x29a7fa[_0x1e0c49(0x317)]?_0x1e0c49(0x15d):void 0x0},_0x43c8db={'unitId':_0x480dfb,'op':_0xa152a0,'hierarchyChanges':_0x29a7fa[_0x1e0c49(0x317)]?_0x29a7fa[_0x1e0c49(0xdc)](_0x245934=>({..._0x245934,'oldParentRecordId':_0x245934[_0x1e0c49(0x1ef)],'parentRecordId':null})):void 0x0,'source':_0x29a7fa['length']?_0x1e0c49(0x2e9):void 0x0};return _0x5ec4ac[_0x1e0c49(0x107)](_0x34963f['id'],_0x3490da)?(_0x1c91d7['focusUnit'](_0x480dfb),_0x72a630[_0x1e0c49(0xc9)]({'unitID':_0x480dfb,'undoMutations':[{'id':_0x34963f['id'],'params':_0x43c8db}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x3e389d}]}),!0x0):!0x1;}},Qn={'id':'base.command.batch-delete-base-records','type':_0x3c38c7['COMMAND'],'handler':(_0x188b4b,_0x2546a9)=>{const _0xac5f66=_0xfaec6d;if(!_0x2546a9)return!0x1;let _0x46c594=_0x188b4b[_0xac5f66(0x216)](_0x3a34dc),{unitId:_0x246e9a,tableId:_0x453da9,recordIds:_0x5e5653}=_0x2546a9,_0x3241a4=_0x46c594[_0xac5f66(0x147)](_0x246e9a,_0x528a5b[_0xac5f66(0x257)]);if(!_0x3241a4||!Z(_0x3241a4,_0x453da9,{'recordIds':_0x5e5653}))return!0x1;let _0x207c83=_0x188b4b[_0xac5f66(0x216)](_0x2780d7),_0x432e7c=_0x188b4b[_0xac5f66(0x216)](_0x5da6dc),_0x369c88=_0x3241a4[_0xac5f66(0xcd)](),_0x1de88f=_0x1912a0(_0x369c88[_0xac5f66(0x2fe)][_0x453da9],_0x5e5653),_0x87982b=new K(),_0x4661cc=new _0x445a5d(),_0x1263f2=_0x87982b[_0xac5f66(0x1f3)](_0x369c88,_0x453da9,_0x5e5653),_0x460b40=_0x4661cc[_0xac5f66(0x258)](_0x369c88,_0x1263f2),_0x24d395=_0x87982b[_0xac5f66(0x154)](_0x369c88,_0x460b40,_0x453da9,_0x5e5653),_0x45f8de={'unitId':_0x246e9a,'op':_0x1263f2,'hierarchyChanges':_0x1de88f,'source':_0x2546a9[_0xac5f66(0x9f)]??'ui'},_0x39d892={..._0x45f8de,'source':_0xac5f66(0x15d)},_0x4ea932={'unitId':_0x246e9a,'op':_0x24d395,'hierarchyChanges':_0x1de88f['map'](_0x24c232=>({..._0x24c232,'oldParentRecordId':_0x24c232[_0xac5f66(0x1ef)],'parentRecordId':_0x24c232['oldParentRecordId']})),'source':_0xac5f66(0x2e9)};return _0x207c83['syncExecuteCommand'](_0x34963f['id'],_0x45f8de)?(_0x46c594['focusUnit'](_0x246e9a),_0x432e7c[_0xac5f66(0xc9)]({'unitID':_0x246e9a,'undoMutations':[{'id':_0x34963f['id'],'params':_0x4ea932}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x39d892}]}),!0x0):!0x1;}},$n={'id':'base.command.change-base-field-type','type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0xd1d3e1,_0x629490)=>{const _0x507e6e=_0xfaec6d;if(!_0x629490)return!0x1;let _0x300100=_0xd1d3e1[_0x507e6e(0x216)](_0x3a34dc),{unitId:_0x4bf2b1,tableId:_0x216010,fieldId:_0x5b77da,input:_0x2bca85}=_0x629490,_0x532094=_0x300100[_0x507e6e(0x147)](_0x4bf2b1,_0x528a5b[_0x507e6e(0x257)]);if(!_0x532094||_0x5b77da===_0x434772||!Z(_0x532094,_0x216010,{'fieldIds':[_0x5b77da]}))return!0x1;let _0x280b5b=_0xd1d3e1['get'](_0x2780d7),_0x4405bd=_0xd1d3e1['get'](_0x5da6dc),_0x25229d=_0x532094[_0x507e6e(0xcd)]();if(!Gn(_0x532094,_0x216010,{..._0x25229d[_0x507e6e(0x2fe)][_0x216010][_0x507e6e(0x10e)][_0x5b77da],..._0x2bca85}))return!0x1;let _0x2be26b=new K()[_0x507e6e(0xda)](_0x25229d,_0x216010,_0x5b77da,_0x2bca85),_0x1baba6=new _0x445a5d()[_0x507e6e(0x2d8)](_0x25229d,_0x2be26b),_0x514c8b={'unitId':_0x4bf2b1,'op':_0x2be26b},_0x517d26={'unitId':_0x4bf2b1,'op':_0x1baba6};return _0x280b5b[_0x507e6e(0x107)](_0x34963f['id'],_0x514c8b)?(_0x300100[_0x507e6e(0x23c)](_0x4bf2b1),_0x4405bd[_0x507e6e(0xc9)]({'unitID':_0x4bf2b1,'undoMutations':[{'id':_0x34963f['id'],'params':_0x517d26}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x514c8b}]}),!0x0):!0x1;}},er={'id':_0xfaec6d(0x230),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x2418b4,_0x5eb231){const _0x284350=_0xfaec6d;var _0x1026f9;if(!_0x5eb231)return!0x1;let {unitId:_0x5bda10,tableId:_0x34557f,parentRecordId:_0x2d8708}=_0x5eb231,_0x45a859=_0x2418b4[_0x284350(0x216)](_0x3a34dc),_0x375601=_0x45a859[_0x284350(0x147)](_0x5bda10,_0x528a5b[_0x284350(0x257)]);if(!_0x375601||!Z(_0x375601,_0x34557f,{'recordIds':[_0x2d8708]}))throw new _0x2c1e93(_0x284350(0x14b));let _0x446ee0=_0x375601[_0x284350(0xcd)](),_0x4c694e=_0x446ee0['tables'][_0x34557f],_0x1f8f08=_0x103c1d(_0x4c694e),_0x285c51=_0x1f8f08??_0x5eb231['fieldId']??_0x4cdd92(_0x4c694e);if(_0x1f8f08&&_0x5eb231[_0x284350(0x2c3)]&&_0x5eb231[_0x284350(0x2c3)]!==_0x1f8f08||_0x4c694e[_0x284350(0x10e)][_0x285c51]&&!_0x567ec0(_0x4c694e,_0x285c51))throw new _0x2c1e93(_0x284350(0x259));if((_0x252898(_0x4c694e,_0x285c51)['depthByRecordId']['get'](_0x2d8708)??0x0)+0x1>=0x5)throw new _0x2c1e93('maxDepth');if(!qn(_0x375601,_0x34557f,_0x5eb231[_0x284350(0x27f)]))return!0x1;let _0x2eaf45=Jn({..._0x5eb231['record'],'values':{..._0x5eb231[_0x284350(0x27f)][_0x284350(0xa3)],[_0x285c51]:_0x28fb5f([_0x2d8708])}}),_0xe62bdd=_0x2418b4['get'](X),_0x4d43af=new K(),_0x30d937=_0x4c694e[_0x284350(0x10e)][_0x285c51],_0x1afc38=_0x30d937?((_0x1026f9=_0x252b80(_0x30d937))==null?void 0x0:_0x1026f9['relationRole'])===_0x3ae3dd['Parent']?null:_0x4d43af[_0x284350(0x135)](_0x446ee0,_0x34557f,_0x285c51,{'config':{..._0x30d937[_0x284350(0x2c6)],'relationRole':_0x3ae3dd[_0x284350(0x308)]}}):_0xe62bdd[_0x284350(0xde)](_0x375601,_0x34557f,_0x1cd0c2(_0x4c694e,_0x285c51,_0x5eb231['parentFieldName']),_0x4c694e['fieldOrder'][_0x284350(0x317)]),_0x39c302=_0xe62bdd[_0x284350(0x204)](_0x375601,_0x34557f,_0x2eaf45),_0x35e71e=_0x2df3da([..._0x1afc38?[_0x1afc38]:[],_0x39c302]),_0xe2d013=new _0x445a5d()['invertOp'](_0x446ee0,_0x35e71e),_0x17459a={'tableId':_0x34557f,'fieldId':_0x285c51,'recordId':_0x2eaf45['id'],'oldParentRecordId':null,'parentRecordId':_0x2d8708},_0x10c368={'unitId':_0x5bda10,'op':_0x35e71e,'trigger':er['id'],'hierarchyChanges':[_0x17459a],'source':_0x5eb231[_0x284350(0x9f)]??'ui'},_0x507cd1={..._0x10c368,'source':_0x284350(0x15d)},_0x231fe5={'unitId':_0x5bda10,'op':_0xe2d013,'trigger':er['id'],'hierarchyChanges':[{..._0x17459a,'oldParentRecordId':_0x2d8708,'parentRecordId':null}],'source':_0x284350(0x2e9)};return _0x2418b4[_0x284350(0x216)](_0x2780d7)[_0x284350(0x107)](_0x34963f['id'],_0x10c368)?(_0x45a859[_0x284350(0x23c)](_0x5bda10),_0x2418b4['get'](_0x5da6dc)['pushUndoRedo']({'unitID':_0x5bda10,'undoMutations':[{'id':_0x34963f['id'],'params':_0x231fe5}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x507cd1}]}),!0x0):!0x1;}},tr={'id':'base.command.create-base-field','type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x5866ad,_0x22d629){const _0x58ba23=_0xfaec6d;if(!_0x22d629)return!0x1;let _0x4ad32d=_0x5866ad[_0x58ba23(0x216)](_0x3a34dc),{unitId:_0x35eae3,tableId:_0x1a97a1,field:_0x2005c5,index:_0x14cbdb,viewIndexes:_0x2bd3f5}=_0x22d629,_0x17cfea=_0x4ad32d[_0x58ba23(0x147)](_0x35eae3,_0x528a5b['UNIVER_BASE']);if(!_0x17cfea||!Z(_0x17cfea,_0x1a97a1)||_0x17cfea[_0x58ba23(0xcd)]()[_0x58ba23(0x2fe)][_0x1a97a1][_0x58ba23(0x10e)][_0x2005c5['id']]||_0x14cbdb===0x0||!Gn(_0x17cfea,_0x1a97a1,_0x2005c5))return!0x1;let _0x2a0e84=_0x5866ad[_0x58ba23(0x216)](_0x2780d7),_0x516877=_0x5866ad[_0x58ba23(0x216)](_0x5da6dc),_0x2a5fe4=_0x5866ad[_0x58ba23(0x216)](X)[_0x58ba23(0xde)](_0x17cfea,_0x1a97a1,_0x2005c5,_0x14cbdb,_0x2bd3f5),_0x2c8b72=new _0x445a5d()[_0x58ba23(0x2d8)](_0x17cfea[_0x58ba23(0xcd)](),_0x2a5fe4),_0x39deaf={'unitId':_0x35eae3,'op':_0x2a5fe4},_0x3c4ac2={'unitId':_0x35eae3,'op':_0x2c8b72};return _0x2a0e84[_0x58ba23(0x107)](_0x34963f['id'],_0x39deaf)?(_0x4ad32d[_0x58ba23(0x23c)](_0x35eae3),_0x516877[_0x58ba23(0xc9)]({'unitID':_0x35eae3,'undoMutations':[{'id':_0x34963f['id'],'params':_0x3c4ac2}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x39deaf}]}),!0x0):!0x1;}},nr={'id':_0xfaec6d(0x196),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x30003e,_0x400b16){const _0x52b1f9=_0xfaec6d;if(!_0x400b16)return!0x1;let _0x20ae1d=_0x30003e[_0x52b1f9(0x216)](_0x3a34dc),{unitId:_0x2409c3,tableId:_0x36c842,record:_0x26ddc0}=_0x400b16,_0x1f5083=_0x20ae1d['getUnit'](_0x2409c3,_0x528a5b['UNIVER_BASE']);if(!_0x1f5083||!Z(_0x1f5083,_0x36c842))return!0x1;let _0x1214f0=_0x30003e['get'](_0x2780d7),_0x5c0695=_0x30003e['get'](_0x5da6dc),_0x36d120=_0x30003e[_0x52b1f9(0x216)](X),_0x5d0e83=_0x1f5083['getSnapshot'](),_0x4a1987=Xn(_0x1f5083,_0x36c842,[_0x26ddc0]);if(!_0x4a1987)return!0x1;let [_0x7b0a7f]=_0x4a1987['records'],{hierarchyChanges:_0x1870d0,hierarchyFieldToMaterialize:_0x53cc0a}=_0x4a1987,_0x45d419=_0x53cc0a?_0x36d120[_0x52b1f9(0xde)](_0x1f5083,_0x36c842,_0x53cc0a,_0x5d0e83[_0x52b1f9(0x2fe)][_0x36c842][_0x52b1f9(0x1b0)][_0x52b1f9(0x317)]):null,_0x458f13=_0x36d120[_0x52b1f9(0x204)](_0x1f5083,_0x36c842,_0x7b0a7f),_0x5ebfbe=_0x2df3da([..._0x45d419?[_0x45d419]:[],_0x458f13]),_0x354b25=new _0x445a5d()[_0x52b1f9(0x2d8)](_0x5d0e83,_0x5ebfbe),_0x295d7e={'unitId':_0x2409c3,'op':_0x5ebfbe,'hierarchyChanges':_0x1870d0[_0x52b1f9(0x317)]?_0x1870d0:void 0x0,'source':_0x1870d0[_0x52b1f9(0x317)]?_0x400b16[_0x52b1f9(0x9f)]??'ui':void 0x0},_0x13585c={..._0x295d7e,'source':_0x1870d0['length']?_0x52b1f9(0x15d):void 0x0},_0x26fb1e={'unitId':_0x2409c3,'op':_0x354b25,'hierarchyChanges':_0x1870d0[_0x52b1f9(0x317)]?_0x1870d0['map'](_0x3e8571=>({..._0x3e8571,'oldParentRecordId':_0x3e8571[_0x52b1f9(0x1ef)],'parentRecordId':null})):void 0x0,'source':_0x1870d0[_0x52b1f9(0x317)]?_0x52b1f9(0x2e9):void 0x0};return _0x1214f0[_0x52b1f9(0x107)](_0x34963f['id'],_0x295d7e)?(_0x20ae1d[_0x52b1f9(0x23c)](_0x2409c3),_0x5c0695[_0x52b1f9(0xc9)]({'unitID':_0x2409c3,'undoMutations':[{'id':_0x34963f['id'],'params':_0x26fb1e}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x13585c}]}),!0x0):!0x1;}},rr=_0xfaec6d(0xf8);function ir(_0x74f64e,_0x334e4f,_0x141bc5){const _0x3ceb21=_0xfaec6d;if(!_0x334e4f[_0x3ceb21(0x2fc)]())return{'valid':!0x1,'reason':_0x3ceb21(0x101),'error':_0x3ceb21(0x1ba)};if(_0x334e4f['length']>0x1f)return{'valid':!0x1,'reason':_0x3ceb21(0x232),'error':'too-long'};if(_0x334e4f['startsWith']('\x27')||_0x334e4f[_0x3ceb21(0x20e)]('\x27'))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','error':_0x3ceb21(0x188)};if(/[:\\/?*\[\]]/['test'](_0x334e4f))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':'invalid-characters'};if(!_0x1653bb(_0x334e4f))return{'valid':!0x1,'reason':_0x3ceb21(0x2d2),'error':_0x3ceb21(0x1e8)};let _0x5a9c76=_0x334e4f['toLowerCase']();return Object[_0x3ceb21(0xa3)](_0x74f64e['tables'])[_0x3ceb21(0x2e6)](_0x1fb7a6=>_0x1fb7a6['id']!==_0x141bc5&&_0x1fb7a6[_0x3ceb21(0x267)][_0x3ceb21(0x2ab)]()===_0x5a9c76)?{'valid':!0x1,'reason':_0x3ceb21(0x26c),'error':_0x3ceb21(0x238)}:{'valid':!0x0};}function ar(_0x36f6f1,_0x4e5995){const _0x1a8a2b=_0xfaec6d;let _0x588961=_0x4e5995[_0x1a8a2b(0x1ea)](/[:\\/?*\[\]]/g,'\x20')[_0x1a8a2b(0x1ea)](/^'+|'+$/g,'')['trim']()||_0x1a8a2b(0x28b),_0x10b3f4=0x1;for(;;){let _0x3bfe13=_0x10b3f4===0x1?'':'\x20'+_0x10b3f4,_0x449d42=''+_0x588961['slice'](0x0,0x1f-_0x3bfe13[_0x1a8a2b(0x317)])+_0x3bfe13;if(ir(_0x36f6f1,_0x449d42)[_0x1a8a2b(0xbd)])return _0x449d42;_0x10b3f4++;}}const or={'id':_0xfaec6d(0x29e),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0xe86e6b,_0x481c4d)=>{const _0x34d8fa=_0xfaec6d;if(!_0x481c4d)return!0x1;let _0x5261c4=_0xe86e6b[_0x34d8fa(0x216)](_0x3a34dc),{unitId:_0x41223c,table:_0x2caea8,index:_0x193de7}=_0x481c4d,_0x37fd32=_0x5261c4[_0x34d8fa(0x147)](_0x41223c,_0x528a5b[_0x34d8fa(0x257)]);if(!_0x37fd32||_0x37fd32[_0x34d8fa(0xcd)]()[_0x34d8fa(0x2fe)][_0x2caea8['id']]||!ir(_0x37fd32['getSnapshot'](),_0x2caea8[_0x34d8fa(0x267)])[_0x34d8fa(0xbd)])return!0x1;try{_0x300bfe(_0x2caea8);}catch{return!0x1;}let _0x2cacc7=_0xe86e6b['get'](_0x2780d7),_0x1eb361=_0xe86e6b[_0x34d8fa(0x216)](_0x5da6dc),_0x4d2514=_0x37fd32[_0x34d8fa(0xcd)](),_0x169529=new K()['createTable'](_0x4d2514,_0x2caea8,_0x193de7),_0x46faaa=new _0x445a5d()['invertOp'](_0x4d2514,_0x169529),_0x47159f={'unitId':_0x41223c,'op':_0x169529},_0x5a02f1={'unitId':_0x41223c,'op':_0x46faaa};return _0x2cacc7[_0x34d8fa(0x107)](_0x34963f['id'],_0x47159f)?(_0x5261c4['focusUnit'](_0x41223c),_0x1eb361['pushUndoRedo']({'unitID':_0x41223c,'undoMutations':[{'id':_0x34963f['id'],'params':_0x5a02f1}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x47159f}]}),!0x0):!0x1;}};function sr(_0x4b29e1,_0x31ecb0,_0xa7a7a7=[]){const _0x297055=_0xfaec6d;let _0x43c21c=new Set([...Object[_0x297055(0xa3)](_0x4b29e1[_0x297055(0x10e)])['filter'](_0x3de839=>_0x3de839)[_0x297055(0xdc)](_0x5e4bce=>_0x5e4bce[_0x297055(0x267)]),..._0xa7a7a7['map'](_0x4d027c=>_0x4d027c[_0x297055(0x267)])]);if(!_0x43c21c[_0x297055(0x25a)](_0x31ecb0))return _0x31ecb0;let _0x2d70bf=0x2;for(;_0x43c21c[_0x297055(0x25a)](_0x31ecb0+'\x20'+_0x2d70bf);)_0x2d70bf++;return _0x31ecb0+'\x20'+_0x2d70bf;}function cr(_0xf1fce3,_0x54a274){const _0x5d9b81=_0xfaec6d;if(!_0xf1fce3||!_0x54a274[_0x5d9b81(0x317)])return;let _0x5a2da6=[..._0xf1fce3];return _0x54a274[_0x5d9b81(0x1a4)](_0x4a9c95=>{_0x5a2da6['includes'](_0x4a9c95)||_0x5a2da6['push'](_0x4a9c95);}),_0x5a2da6;}const lr={'options':[{'id':_0xfaec6d(0xab),'name':_0xfaec6d(0x2b3),'color':_0xfaec6d(0x1d4)},{'id':_0xfaec6d(0x2dd),'name':_0xfaec6d(0x1d7),'color':'#FDE68A'},{'id':_0xfaec6d(0x275),'name':_0xfaec6d(0x162),'color':'#BBF7D0'}]},ur={'locale':_0xfaec6d(0x225),'pattern':_0xfaec6d(0x10c),'includeTime':!0x1,'hourCycle':_0xfaec6d(0x165),'defaultMode':_0xfaec6d(0x1f9)};function dr(_0x2d2f42,_0x1551f6,_0x437070,_0x15c0a5){const _0x3d057f=_0xfaec6d;var _0x68e1bf;let _0x53823d=new K(),_0x392880=_0x2d2f42['tables'][_0x1551f6],_0x1488cc=_0x392880?{..._0x437070,'fieldOrder':[_0x434772,...(_0x437070['fieldOrder']??_0x392880[_0x3d057f(0x1b0)])[_0x3d057f(0x249)](_0x1c9fc7=>_0x1c9fc7!==_0x434772)],'fieldSettings':{..._0x437070[_0x3d057f(0x2c1)],[_0x434772]:{...(_0x68e1bf=_0x437070[_0x3d057f(0x2c1)])==null?void 0x0:_0x68e1bf[_0x434772],'hidden':!0x0}}}:_0x437070;if(_0x392880&&_0x1488cc[_0x3d057f(0x211)]===_0x3d057f(0x127)){let _0x1b1be4=pr(_0x392880,_0x1488cc),_0x567997=_0x1b1be4[_0x3d057f(0x185)]?{..._0x1488cc,'config':_0x1b1be4[_0x3d057f(0x2c6)],'fieldOrder':_0x1b1be4[_0x3d057f(0x1b0)]??_0x1488cc[_0x3d057f(0x1b0)]}:_0x1488cc;return _0x2df3da([..._0x1b1be4[_0x3d057f(0x10e)][_0x3d057f(0xdc)](_0x115c6b=>_0x53823d['createField'](_0x2d2f42,_0x1551f6,{'field':_0x115c6b})),_0x53823d['createView'](_0x2d2f42,_0x1551f6,_0x567997,_0x15c0a5)]);}if(!_0x392880||_0x1488cc[_0x3d057f(0x211)]!==_0x3d057f(0xb4)&&_0x1488cc[_0x3d057f(0x211)]!==_0x3d057f(0x180))return _0x53823d['createView'](_0x2d2f42,_0x1551f6,_0x1488cc,_0x15c0a5);let _0x221428=fr(_0x392880,_0x1488cc),_0x159c85=_0x221428[_0x3d057f(0x185)]?{..._0x1488cc,'config':_0x221428['config'],'fieldOrder':_0x221428[_0x3d057f(0x1b0)]??_0x1488cc[_0x3d057f(0x1b0)]}:_0x1488cc;return _0x1488cc[_0x3d057f(0x211)]===_0x3d057f(0x180)&&gr(_0x1488cc)&&(_0x159c85=_r(_0x392880,_0x159c85,_0x221428[_0x3d057f(0x10e)])),_0x2df3da([..._0x221428[_0x3d057f(0x10e)]['map'](_0x3fd459=>_0x53823d[_0x3d057f(0xd4)](_0x2d2f42,_0x1551f6,{'field':_0x3fd459})),_0x53823d[_0x3d057f(0x1f0)](_0x2d2f42,_0x1551f6,_0x159c85,_0x15c0a5)]);}function fr(_0x41ae8b,_0x35c5c7,_0x220daf=!0x1){const _0x2a006c=_0xfaec6d;var _0x511fdf,_0x1d531f;let _0x20d5dd=_0x41ae8b[_0x2a006c(0x1b0)][_0x2a006c(0x249)](_0x42b5c3=>yr(_0x41ae8b,_0x42b5c3)),_0x819b8b=[],_0x51c9d1={..._0x35c5c7[_0x2a006c(0x2c6)]??{}},_0x48d76f=typeof _0x51c9d1['startDateFieldId']==_0x2a006c(0xd0)&&yr(_0x41ae8b,_0x51c9d1['startDateFieldId'])?_0x51c9d1[_0x2a006c(0x2ad)]:_0x20d5dd[0x0],_0x2db96d=typeof _0x51c9d1[_0x2a006c(0x1d1)]==_0x2a006c(0xd0)&&yr(_0x41ae8b,_0x51c9d1['endDateFieldId'])&&_0x51c9d1[_0x2a006c(0x1d1)]!==_0x48d76f?_0x51c9d1[_0x2a006c(0x1d1)]:_0x20d5dd[_0x2a006c(0x158)](_0x5496a3=>_0x5496a3!==_0x48d76f);if(!_0x48d76f){let _0x55a43a=br(_0x41ae8b,_0x819b8b,_0x35c5c7[_0x2a006c(0x211)]==='gantt'?_0x2a006c(0x2fd):_0x2a006c(0x23b));_0x819b8b[_0x2a006c(0x27e)](_0x55a43a),_0x48d76f=_0x55a43a['id'];}if((_0x35c5c7[_0x2a006c(0x211)]==='gantt'||_0x220daf)&&!_0x2db96d){let _0xddfaae=br(_0x41ae8b,_0x819b8b,'End\x20date');_0x819b8b[_0x2a006c(0x27e)](_0xddfaae),_0x2db96d=_0xddfaae['id'];}_0x35c5c7[_0x2a006c(0x211)]===_0x2a006c(0xb4)&&!_0x2db96d&&delete _0x51c9d1[_0x2a006c(0x1d1)],_0x51c9d1[_0x2a006c(0x2ad)]=_0x48d76f,_0x35c5c7[_0x2a006c(0x211)]===_0x2a006c(0xb4)&&_0x2db96d&&(_0x51c9d1[_0x2a006c(0x1d1)]=_0x2db96d),_0x35c5c7[_0x2a006c(0x211)]===_0x2a006c(0x180)&&(_0x51c9d1['endDateFieldId']=_0x2db96d??_0x48d76f);let _0x2f50e9=cr(_0x35c5c7[_0x2a006c(0x1b0)],_0x819b8b[_0x2a006c(0xdc)](_0x1396f8=>_0x1396f8['id']));return{'changed':_0x819b8b[_0x2a006c(0x317)]>0x0||_0x51c9d1[_0x2a006c(0x2ad)]!==((_0x511fdf=_0x35c5c7['config'])==null?void 0x0:_0x511fdf[_0x2a006c(0x2ad)])||_0x51c9d1[_0x2a006c(0x1d1)]!==((_0x1d531f=_0x35c5c7[_0x2a006c(0x2c6)])==null?void 0x0:_0x1d531f[_0x2a006c(0x1d1)])||!(!_0x2f50e9||_0x167656[_0x2a006c(0x2a6)](_0x2f50e9,_0x35c5c7['fieldOrder']??[])),'fields':_0x819b8b,'config':_0x51c9d1,'fieldOrder':_0x2f50e9};}function pr(_0x57ecbd,_0x1a86bc){const _0x877aca=_0xfaec6d;var _0x5b8d95;let _0x4174d1=[],_0x12a16b={..._0x1a86bc['config']??{}},_0x83935e=typeof _0x12a16b[_0x877aca(0x1bc)]==_0x877aca(0xd0)&&mr(_0x57ecbd,_0x12a16b[_0x877aca(0x1bc)])?_0x12a16b['groupFieldId']:_0x57ecbd[_0x877aca(0x1b0)]['find'](_0x347701=>mr(_0x57ecbd,_0x347701));if(!_0x83935e){let _0x43d760=hr(_0x57ecbd,_0x4174d1);_0x4174d1[_0x877aca(0x27e)](_0x43d760),_0x83935e=_0x43d760['id'];}_0x12a16b['groupFieldId']=_0x83935e;let _0x41f526=cr(_0x1a86bc['fieldOrder'],_0x4174d1[_0x877aca(0xdc)](_0x3347e6=>_0x3347e6['id']));return{'changed':_0x4174d1[_0x877aca(0x317)]>0x0||_0x12a16b[_0x877aca(0x1bc)]!==((_0x5b8d95=_0x1a86bc[_0x877aca(0x2c6)])==null?void 0x0:_0x5b8d95['groupFieldId'])||!(!_0x41f526||_0x167656[_0x877aca(0x2a6)](_0x41f526,_0x1a86bc[_0x877aca(0x1b0)]??[])),'fields':_0x4174d1,'config':_0x12a16b,'fieldOrder':_0x41f526};}function mr(_0x2bc610,_0x2c3b14){const _0x3945c4=_0xfaec6d;let _0x5e61ee=_0x2c3b14?_0x2bc610[_0x3945c4(0x10e)][_0x2c3b14]:null;return _0x5e61ee?[_0x2657c4['SingleSelect'],_0x2657c4[_0x3945c4(0x157)],_0x2657c4[_0x3945c4(0x306)],_0x2657c4['Person'],_0x2657c4['Group'],_0x2657c4[_0x3945c4(0xd9)]][_0x3945c4(0x15c)](_0x5e61ee[_0x3945c4(0x211)]):!0x1;}function hr(_0x21e03d,_0x3d4d2f){const _0x3f8cb1=_0xfaec6d;return{'id':_0x3f8cb1(0x16f)+_0x2c42b0(0x8),'name':sr(_0x21e03d,_0x3f8cb1(0x120),_0x3d4d2f),'type':_0x2657c4[_0x3f8cb1(0x2f3)],'config':_0x167656[_0x3f8cb1(0x20a)](lr)};}function gr(_0x45afba){const _0xec2ce3=_0xfaec6d;return Object['keys'](_0x45afba[_0xec2ce3(0x2c6)]??{})[_0xec2ce3(0x317)]===0x0&&Object['keys'](_0x45afba['fieldSettings']??{})[_0xec2ce3(0x317)]===0x0;}function _r(_0x2f42bc,_0x28c9d6,_0x4b707b){const _0x4b8b12=_0xfaec6d;let _0x2c619c={..._0x28c9d6[_0x4b8b12(0x2c6)]??{}},_0xc4a5c4=_0x4b707b[_0x4b8b12(0xdc)](_0xa08487=>_0xa08487['id']),_0x5b4e41=[..._0x2f42bc[_0x4b8b12(0x1b0)],..._0xc4a5c4],_0x588aed=typeof _0x2c619c[_0x4b8b12(0x301)]==_0x4b8b12(0xd0)&&vr(_0x2f42bc,_0x4b707b,_0x2c619c[_0x4b8b12(0x301)])?_0x2c619c[_0x4b8b12(0x301)]:_0x2f42bc[_0x4b8b12(0xaf)],_0x47cad1=typeof _0x2c619c[_0x4b8b12(0x2ad)]==_0x4b8b12(0xd0)?_0x2c619c[_0x4b8b12(0x2ad)]:'',_0x187489=typeof _0x2c619c[_0x4b8b12(0x1d1)]=='string'?_0x2c619c[_0x4b8b12(0x1d1)]:_0x47cad1,_0xfcdacb=new Set([_0x588aed,_0x47cad1,_0x187489][_0x4b8b12(0x249)](_0x5d64c3=>_0x5d64c3&&vr(_0x2f42bc,_0x4b707b,_0x5d64c3))),_0x1b537b=Object['fromEntries'](_0x5b4e41[_0x4b8b12(0xce)](_0x3ee5a0=>_0xfcdacb[_0x4b8b12(0x25a)](_0x3ee5a0)||!vr(_0x2f42bc,_0x4b707b,_0x3ee5a0)?[]:[[_0x3ee5a0,{'hidden':!0x0}]]));return{..._0x28c9d6,'config':{..._0x2c619c,'titleFieldId':_0x588aed},'fieldSettings':_0x1b537b};}function vr(_0x66ba24,_0x144f3e,_0x5b6b7d){const _0x1ce2e4=_0xfaec6d;return!!(_0x66ba24[_0x1ce2e4(0x10e)][_0x5b6b7d]??_0x144f3e['find'](_0x3fac8f=>_0x3fac8f['id']===_0x5b6b7d))&&!0x0;}function yr(_0x1354b9,_0x273751){const _0x2c0386=_0xfaec6d;let _0x145de9=_0x273751?_0x1354b9[_0x2c0386(0x10e)][_0x273751]:null;return!!_0x145de9&&_0x145de9[_0x2c0386(0x211)]===_0x2657c4['Date']&&_0x145de9[_0x2c0386(0x17f)]!==!0x0&&_0x145de9[_0x2c0386(0x22b)]!==!0x0;}function br(_0x5cc52a,_0xd988e,_0x191d0b){const _0x237b09=_0xfaec6d;let _0x6d8438=new Set([...Object[_0x237b09(0x2d7)](_0x5cc52a[_0x237b09(0x10e)]),..._0xd988e[_0x237b09(0xdc)](_0x9f132=>_0x9f132['id'])]),_0x112996=_0x237b09(0x16f)+_0x2c42b0(0x8);for(;_0x6d8438['has'](_0x112996);)_0x112996=_0x237b09(0x16f)+_0x2c42b0(0x8);return{'id':_0x112996,'name':sr(_0x5cc52a,_0x191d0b,_0xd988e),'type':_0x2657c4['Date'],'config':{...ur}};}const xr={'id':_0xfaec6d(0x221),'type':_0x3c38c7['COMMAND'],'handler':(_0x213e33,_0x2fc109)=>{const _0x38438a=_0xfaec6d;if(!_0x2fc109)return!0x1;let _0x385726=_0x213e33[_0x38438a(0x216)](_0x3a34dc),{unitId:_0x47f2bf,tableId:_0x2edf0f,view:_0x580b04,index:_0x20a07b}=_0x2fc109,_0x3f09aa=_0x385726[_0x38438a(0x147)](_0x47f2bf,_0x528a5b[_0x38438a(0x257)]);if(!_0x3f09aa||!Z(_0x3f09aa,_0x2edf0f)||_0x3f09aa[_0x38438a(0xcd)]()[_0x38438a(0x2fe)][_0x2edf0f][_0x38438a(0x25e)][_0x580b04['id']])return!0x1;let _0x1bfa39=_0x213e33[_0x38438a(0x216)](_0x2780d7),_0x5faecc=_0x213e33[_0x38438a(0x216)](_0x5da6dc),_0x48408d=_0x3f09aa[_0x38438a(0xcd)](),_0x5d0a29=dr(_0x48408d,_0x2edf0f,_0x580b04,_0x20a07b),_0x27ab39=new _0x445a5d()['invertOp'](_0x48408d,_0x5d0a29),_0x114d6b={'historyAction':_0x38438a(0x17d),'unitId':_0x47f2bf,'op':_0x5d0a29,'viewType':_0x580b04[_0x38438a(0x211)]},_0x436637={'historyAction':'delete-view','unitId':_0x47f2bf,'op':_0x27ab39,'viewType':_0x580b04[_0x38438a(0x211)]};return _0x1bfa39['syncExecuteCommand'](_0x34963f['id'],_0x114d6b)?(_0x385726['focusUnit'](_0x47f2bf),_0x5faecc[_0x38438a(0xc9)]({'unitID':_0x47f2bf,'undoMutations':[{'id':_0x34963f['id'],'params':_0x436637}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x114d6b}]}),!0x0):!0x1;}},Sr={'id':_0xfaec6d(0x29d),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0xf7fa53,_0x29b4a2){const _0x29a793=_0xfaec6d;if(!_0x29b4a2)return!0x1;let _0x32d374=_0xf7fa53[_0x29a793(0x216)](_0x3a34dc),{unitId:_0x493983,tableId:_0x3819a4,fieldId:_0x106192}=_0x29b4a2,_0x1ca006=_0x32d374['getUnit'](_0x493983,_0x528a5b[_0x29a793(0x257)]);if(!_0x1ca006)return!0x1;let _0x12b803=_0x1ca006[_0x29a793(0xcd)](),_0x4106e6=_0x12b803[_0x29a793(0x2fe)][_0x3819a4];if(!Z(_0x1ca006,_0x3819a4,{'fieldIds':[_0x106192]})||_0x4106e6[_0x29a793(0xaf)]===_0x106192||_0x106192===_0x434772)return!0x1;let _0x7d3db9=_0xf7fa53[_0x29a793(0x216)](_0x2780d7),_0x11b5eb=_0xf7fa53[_0x29a793(0x216)](_0x5da6dc),_0x1f14ea=new K()[_0x29a793(0x9e)](_0x12b803,_0x3819a4,_0x106192),_0x5522b2=new _0x445a5d()[_0x29a793(0x2d8)](_0x12b803,_0x1f14ea),_0x18bc2d={'unitId':_0x493983,'op':_0x1f14ea},_0x5c392b={'unitId':_0x493983,'op':_0x5522b2};return _0x7d3db9[_0x29a793(0x107)](_0x34963f['id'],_0x18bc2d)?(_0x32d374[_0x29a793(0x23c)](_0x493983),_0x11b5eb[_0x29a793(0xc9)]({'unitID':_0x493983,'undoMutations':[{'id':_0x34963f['id'],'params':_0x5c392b}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x18bc2d}]}),!0x0):!0x1;}},Cr={'id':'base.command.delete-base-record','type':_0x3c38c7['COMMAND'],'handler':(_0x2f377f,_0x530664)=>{const _0x3ba511=_0xfaec6d;if(!_0x530664)return!0x1;let _0x2e23f9=_0x2f377f[_0x3ba511(0x216)](_0x3a34dc),{unitId:_0x2fc406,tableId:_0x3ed387,recordId:_0x24b00a}=_0x530664,_0x4a205d=_0x2e23f9[_0x3ba511(0x147)](_0x2fc406,_0x528a5b[_0x3ba511(0x257)]);if(!_0x4a205d||!Z(_0x4a205d,_0x3ed387,{'recordIds':[_0x24b00a]}))return!0x1;let _0x17c393=_0x2f377f['get'](_0x2780d7),_0x1f2cd2=_0x2f377f[_0x3ba511(0x216)](_0x5da6dc),_0x33cf5b=_0x4a205d['getSnapshot'](),_0x38616d=_0x1912a0(_0x33cf5b[_0x3ba511(0x2fe)][_0x3ed387],[_0x24b00a]),_0x4ad5a2=new K(),_0x4cbf98=new _0x445a5d(),_0x41d46c=_0x4ad5a2['deleteRecord'](_0x33cf5b,_0x3ed387,_0x24b00a),_0x20ae71=_0x4cbf98[_0x3ba511(0x258)](_0x33cf5b,_0x41d46c),_0x291118=_0x4ad5a2[_0x3ba511(0x154)](_0x33cf5b,_0x20ae71,_0x3ed387,[_0x24b00a]),_0x3feb8e={'unitId':_0x2fc406,'op':_0x41d46c,'hierarchyChanges':_0x38616d,'source':_0x530664[_0x3ba511(0x9f)]??'ui'},_0x515fef={..._0x3feb8e,'source':'redo'},_0x574c58={'unitId':_0x2fc406,'op':_0x291118,'hierarchyChanges':_0x38616d[_0x3ba511(0xdc)](_0x3e1896=>({..._0x3e1896,'oldParentRecordId':_0x3e1896['parentRecordId'],'parentRecordId':_0x3e1896[_0x3ba511(0xa8)]})),'source':'undo'};return _0x17c393[_0x3ba511(0x107)](_0x34963f['id'],_0x3feb8e)?(_0x2e23f9['focusUnit'](_0x2fc406),_0x1f2cd2['pushUndoRedo']({'unitID':_0x2fc406,'undoMutations':[{'id':_0x34963f['id'],'params':_0x574c58}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x515fef}]}),!0x0):!0x1;}},wr={'id':_0xfaec6d(0x13c),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x2dfcde,_0x53e185)=>{const _0x194e44=_0xfaec6d;if(!_0x53e185)return!0x1;let _0x25caee=_0x2dfcde[_0x194e44(0x216)](_0x3a34dc),{unitId:_0x54d8a1,tableId:_0x55f0d3}=_0x53e185,_0x466912=_0x25caee[_0x194e44(0x147)](_0x54d8a1,_0x528a5b['UNIVER_BASE']);if(!_0x466912||!Z(_0x466912,_0x55f0d3))return!0x1;let _0x419b26=_0x2dfcde[_0x194e44(0x216)](_0x2780d7),_0x3ab3b9=_0x2dfcde[_0x194e44(0x216)](_0x5da6dc),_0x250e57=_0x466912[_0x194e44(0xcd)](),_0x331192=_0xad927a(_0x250e57,_0x55f0d3);if(_0x331192[_0x194e44(0x317)]>0x0)return console[_0x194e44(0xb9)]('[DeleteBaseTableCommand]:\x20table\x20\x22'+_0x55f0d3+_0x194e44(0x2ae)+_0x331192[_0x194e44(0xdc)](_0x2837a6=>_0x2837a6[_0x194e44(0x2a8)]+'.'+_0x2837a6[_0x194e44(0x2c3)])[_0x194e44(0x21a)](',\x20')+'.'),!0x1;let _0x44b2f4=new K()[_0x194e44(0x2e0)](_0x250e57,_0x55f0d3),_0x478e73=new _0x445a5d()[_0x194e44(0x2d8)](_0x250e57,_0x44b2f4),_0x209da4={'unitId':_0x54d8a1,'op':_0x44b2f4},_0x1ddb47={'unitId':_0x54d8a1,'op':_0x478e73};return _0x419b26[_0x194e44(0x107)](_0x34963f['id'],_0x209da4)?(_0x25caee['focusUnit'](_0x54d8a1),_0x3ab3b9[_0x194e44(0xc9)]({'unitID':_0x54d8a1,'undoMutations':[{'id':_0x34963f['id'],'params':_0x1ddb47}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x209da4}]}),!0x0):!0x1;}},Tr={'id':_0xfaec6d(0x200),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0xca6b5d,_0x40187c)=>{const _0x2fb641=_0xfaec6d;if(!_0x40187c)return!0x1;let _0x522c08=_0xca6b5d[_0x2fb641(0x216)](_0x3a34dc),{unitId:_0x5a9c96,tableId:_0x30f23b,viewId:_0x33d67e}=_0x40187c,_0x53f91d=_0x522c08[_0x2fb641(0x147)](_0x5a9c96,_0x528a5b['UNIVER_BASE']);if(!_0x53f91d||!Z(_0x53f91d,_0x30f23b,{'viewIds':[_0x33d67e]}))return!0x1;let _0x1f0f04=_0xca6b5d[_0x2fb641(0x216)](_0x2780d7),_0x1d3a52=_0xca6b5d[_0x2fb641(0x216)](_0x5da6dc),_0x42f2da=_0x53f91d['getSnapshot'](),_0x1d8f5d=_0x42f2da[_0x2fb641(0x2fe)][_0x30f23b][_0x2fb641(0x25e)][_0x33d67e][_0x2fb641(0x211)],_0x27c0ba=new K()[_0x2fb641(0x2b6)](_0x42f2da,_0x30f23b,_0x33d67e),_0x163889=new _0x445a5d()[_0x2fb641(0x2d8)](_0x42f2da,_0x27c0ba),_0x330326={'historyAction':'delete-view','unitId':_0x5a9c96,'op':_0x27c0ba,'viewType':_0x1d8f5d},_0x19dad2={'historyAction':_0x2fb641(0x17d),'unitId':_0x5a9c96,'op':_0x163889,'viewType':_0x1d8f5d};return _0x1f0f04[_0x2fb641(0x107)](_0x34963f['id'],_0x330326)?(_0x522c08['focusUnit'](_0x5a9c96),_0x1d3a52[_0x2fb641(0xc9)]({'unitID':_0x5a9c96,'undoMutations':[{'id':_0x34963f['id'],'params':_0x19dad2}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x330326}]}),!0x0):!0x1;}},Er={'id':'base.command.duplicate-base-field','type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x16e4a0,_0x36b6e8)=>{const _0x6f1222=_0xfaec6d;if(!_0x36b6e8)return!0x1;let _0x27f19d=_0x16e4a0[_0x6f1222(0x216)](_0x3a34dc),{unitId:_0x5eb923,tableId:_0x3c2a31,sourceFieldId:_0x57e6a9,field:_0x21b661,index:_0x346128,viewIndexes:_0x16b364}=_0x36b6e8,_0x3dad75=_0x27f19d[_0x6f1222(0x147)](_0x5eb923,_0x528a5b[_0x6f1222(0x257)]);if(!_0x3dad75||!Z(_0x3dad75,_0x3c2a31,{'fieldIds':[_0x57e6a9]})||_0x57e6a9===_0x434772||_0x3dad75[_0x6f1222(0xcd)]()[_0x6f1222(0x2fe)][_0x3c2a31][_0x6f1222(0x10e)][_0x21b661['id']]||_0x346128===0x0||!Gn(_0x3dad75,_0x3c2a31,_0x21b661))return!0x1;let _0x368afa=_0x16e4a0[_0x6f1222(0x216)](_0x2780d7),_0x556798=_0x16e4a0[_0x6f1222(0x216)](_0x5da6dc),_0x189330=_0x3dad75[_0x6f1222(0xcd)](),_0x3d2745=new K()[_0x6f1222(0x2c4)](_0x189330,_0x3c2a31,_0x57e6a9,{'field':_0x21b661,'index':_0x346128,'viewIndexes':_0x16b364}),_0xce3899=new _0x445a5d()[_0x6f1222(0x2d8)](_0x189330,_0x3d2745),_0x2bb7d8={'unitId':_0x5eb923,'op':_0x3d2745},_0x6b0002={'unitId':_0x5eb923,'op':_0xce3899};return _0x368afa[_0x6f1222(0x107)](_0x34963f['id'],_0x2bb7d8)?(_0x27f19d[_0x6f1222(0x23c)](_0x5eb923),_0x556798['pushUndoRedo']({'unitID':_0x5eb923,'undoMutations':[{'id':_0x34963f['id'],'params':_0x6b0002}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x2bb7d8}]}),!0x0):!0x1;}},Dr={'id':_0xfaec6d(0x2ee),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0xd2b547,_0x24901d)=>{const _0x12b210=_0xfaec6d;if(!_0x24901d)return!0x1;let _0x488fe9=_0xd2b547[_0x12b210(0x216)](_0x3a34dc),{unitId:_0x524693,tableId:_0x41c45b,sourceRecordId:_0x17384d,record:_0x4463ab}=_0x24901d,_0x2742d1=_0x488fe9[_0x12b210(0x147)](_0x524693,_0x528a5b[_0x12b210(0x257)]);if(!_0x2742d1||!Z(_0x2742d1,_0x41c45b,{'recordIds':[_0x17384d]})||!qn(_0x2742d1,_0x41c45b,_0x4463ab))return!0x1;let _0x25b589=_0xd2b547[_0x12b210(0x216)](_0x2780d7),_0x448c06=_0xd2b547[_0x12b210(0x216)](_0x5da6dc),_0x27e3e1=_0x2742d1['getSnapshot'](),_0x3f3441=Jn(_0x4463ab),_0x4450cc=_0x17e97(_0x27e3e1[_0x12b210(0x2fe)][_0x41c45b],[_0x3f3441]),_0x55e5e5=new K()['duplicateRecord'](_0x27e3e1,_0x41c45b,_0x17384d,_0x3f3441),_0x1d88e6=new _0x445a5d()[_0x12b210(0x2d8)](_0x27e3e1,_0x55e5e5),_0x45005b={'unitId':_0x524693,'op':_0x55e5e5,'hierarchyChanges':_0x4450cc[_0x12b210(0x317)]?_0x4450cc:void 0x0,'source':_0x4450cc[_0x12b210(0x317)]?_0x24901d['source']??'ui':void 0x0},_0x28c7f1={..._0x45005b,'source':_0x4450cc[_0x12b210(0x317)]?'redo':void 0x0},_0x538cf1={'unitId':_0x524693,'op':_0x1d88e6,'hierarchyChanges':_0x4450cc[_0x12b210(0x317)]?_0x4450cc[_0x12b210(0xdc)](_0x2c8e2a=>({..._0x2c8e2a,'oldParentRecordId':_0x2c8e2a[_0x12b210(0x1ef)],'parentRecordId':null})):void 0x0,'source':_0x4450cc[_0x12b210(0x317)]?_0x12b210(0x2e9):void 0x0};return _0x25b589[_0x12b210(0x107)](_0x34963f['id'],_0x45005b)?(_0x488fe9[_0x12b210(0x23c)](_0x524693),_0x448c06[_0x12b210(0xc9)]({'unitID':_0x524693,'undoMutations':[{'id':_0x34963f['id'],'params':_0x538cf1}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x28c7f1}]}),!0x0):!0x1;}},Or={'id':_0xfaec6d(0xa9),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x547a3b,_0x50052e){const _0x4ec17e=_0xfaec6d;if(!_0x50052e)return!0x1;let _0x110163=_0x547a3b[_0x4ec17e(0x216)](_0x3a34dc),{unitId:_0x4b514a,tableId:_0x596350,viewId:_0x9e9e89,ensureEndDateField:_0x3a3648}=_0x50052e,_0x387a6b=_0x110163[_0x4ec17e(0x147)](_0x4b514a,_0x528a5b[_0x4ec17e(0x257)]);if(!_0x387a6b||!Z(_0x387a6b,_0x596350,{'viewIds':[_0x9e9e89]}))return!0x1;let _0x347f85=_0x387a6b['getSnapshot'](),_0xecaf52=_0x347f85[_0x4ec17e(0x2fe)][_0x596350],_0x1c3c4f=_0xecaf52==null?void 0x0:_0xecaf52[_0x4ec17e(0x25e)][_0x9e9e89];if(!_0xecaf52||!_0x1c3c4f||_0x1c3c4f[_0x4ec17e(0x211)]!==_0x4ec17e(0xb4)&&_0x1c3c4f[_0x4ec17e(0x211)]!==_0x4ec17e(0x180))return!0x1;let _0xba8e63=fr(_0xecaf52,_0x1c3c4f,_0x3a3648===!0x0);if(!_0xba8e63['changed'])return!0x1;let _0x30a4bd=_0x547a3b[_0x4ec17e(0x216)](_0x2780d7),_0x5455c3=_0x547a3b[_0x4ec17e(0x216)](_0x5da6dc),_0x430d52=new K(),_0x131033=[..._0xba8e63[_0x4ec17e(0x10e)]['map'](_0x844578=>_0x430d52[_0x4ec17e(0xd4)](_0x347f85,_0x50052e[_0x4ec17e(0x2a8)],{'field':_0x844578})),kr([...Ar(_0x50052e[_0x4ec17e(0x2a8)],_0x50052e['viewId']),_0x4ec17e(0x2c6)],_0x1c3c4f[_0x4ec17e(0x2c6)],_0xba8e63[_0x4ec17e(0x2c6)])];_0xba8e63['fieldOrder']&&_0x131033[_0x4ec17e(0x27e)](kr([...Ar(_0x50052e[_0x4ec17e(0x2a8)],_0x50052e[_0x4ec17e(0x2bf)]),'fieldOrder'],_0x1c3c4f[_0x4ec17e(0x1b0)],_0xba8e63[_0x4ec17e(0x1b0)]));let _0x255adb=_0x2df3da(_0x131033),_0x5628a9=new _0x445a5d()[_0x4ec17e(0x2d8)](_0x347f85,_0x255adb),_0x5bfc64={'unitId':_0x4b514a,'op':_0x255adb},_0x16ac3b={'unitId':_0x4b514a,'op':_0x5628a9};return _0x30a4bd['syncExecuteCommand'](_0x34963f['id'],_0x5bfc64)?(_0x110163[_0x4ec17e(0x23c)](_0x4b514a),_0x5455c3[_0x4ec17e(0xc9)]({'unitID':_0x4b514a,'undoMutations':[{'id':_0x34963f['id'],'params':_0x16ac3b}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x5bfc64}]}),!0x0):!0x1;}};function kr(_0x4caee7,_0x44e101,_0x2e0b18){const _0x4d604e=_0xfaec6d;return _0x44e101===void 0x0?_0x1cd282[_0x4d604e(0xc1)](_0x4caee7,_0x2e0b18):_0x1cd282[_0x4d604e(0x1be)](_0x4caee7,_0x44e101,_0x2e0b18);}function Ar(_0x5b9d7c,_0x11dc7b){const _0x3078f2=_0xfaec6d;return[_0x3078f2(0x2fe),_0x5b9d7c,_0x3078f2(0x25e),_0x11dc7b];}const jr={'id':_0xfaec6d(0xcc),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x4c137b,_0x28dce3)=>{const _0x43d081=_0xfaec6d;if(!_0x28dce3)return!0x1;let _0x142f01=_0x4c137b[_0x43d081(0x216)](_0x3a34dc),{unitId:_0x540fb9,tableId:_0x4697aa,fieldId:_0x41f4ce,target:_0x35fc14}=_0x28dce3,_0x299f42=_0x142f01['getUnit'](_0x540fb9,_0x528a5b['UNIVER_BASE']),_0x74cac6=_0x35fc14[_0x43d081(0xbe)]??_0x35fc14[_0x43d081(0x174)];if(!_0x299f42||!!_0x35fc14['beforeFieldId']==!!_0x35fc14['afterFieldId']||!_0x74cac6||_0x74cac6===_0x41f4ce||_0x41f4ce===_0x434772||_0x35fc14[_0x43d081(0xbe)]===_0x434772||!Z(_0x299f42,_0x4697aa,{'fieldIds':[_0x41f4ce,_0x74cac6]}))return!0x1;let _0x51ee77=_0x4c137b[_0x43d081(0x216)](_0x2780d7),_0x2451c5=_0x4c137b[_0x43d081(0x216)](_0x5da6dc),_0x2a9103=_0x299f42[_0x43d081(0xcd)](),_0x4cad41=new K()['moveField'](_0x2a9103,_0x4697aa,_0x41f4ce,_0x35fc14),_0x218ebb=new _0x445a5d()[_0x43d081(0x2d8)](_0x2a9103,_0x4cad41),_0x5462ae={'unitId':_0x540fb9,'op':_0x4cad41},_0x2d0e37={'unitId':_0x540fb9,'op':_0x218ebb};return _0x51ee77['syncExecuteCommand'](_0x34963f['id'],_0x5462ae)?(_0x142f01[_0x43d081(0x23c)](_0x540fb9),_0x2451c5['pushUndoRedo']({'unitID':_0x540fb9,'undoMutations':[{'id':_0x34963f['id'],'params':_0x2d0e37}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x5462ae}]}),!0x0):!0x1;}},Mr={'id':_0xfaec6d(0xc3),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x145c21,_0x161b16)=>{const _0x309d53=_0xfaec6d;var _0x8ca518;if(!_0x161b16)return!0x1;let {unitId:_0xf39a73,tableId:_0x697bc8,recordId:_0x4a16d5,parentRecordId:_0x4fe4d7,orderKey:_0x28ab40}=_0x161b16,_0x47495d=_0x145c21[_0x309d53(0x216)](_0x3a34dc),_0x57f99e=_0x47495d[_0x309d53(0x147)](_0xf39a73,_0x528a5b[_0x309d53(0x257)]);if(!_0x57f99e||!Z(_0x57f99e,_0x697bc8,{'recordIds':[_0x4a16d5,..._0x4fe4d7?[_0x4fe4d7]:[]]}))throw new _0x2c1e93('missingRecord');let _0x4f2335=_0x57f99e[_0x309d53(0xcd)](),_0x6ec55e=_0x4f2335[_0x309d53(0x2fe)][_0x697bc8],_0x1c8559=_0x103c1d(_0x6ec55e),_0x296d9e=_0x1c8559??_0x161b16[_0x309d53(0x2c3)]??_0x4cdd92(_0x6ec55e);if(_0x1c8559&&_0x161b16['fieldId']&&_0x161b16[_0x309d53(0x2c3)]!==_0x1c8559||_0x6ec55e['fields'][_0x296d9e]&&!_0x567ec0(_0x6ec55e,_0x296d9e))throw new _0x2c1e93('invalidField');let _0x3b72c5=_0x252898(_0x6ec55e,_0x296d9e),_0x156a80=_0xf1954(_0x3b72c5,_0x4a16d5,_0x4fe4d7);if(!_0x156a80[_0x309d53(0xbd)]){let _0x3f47fd=_0x156a80[_0x309d53(0x2fa)]===_0x1df41d[_0x309d53(0x228)]?_0x309d53(0x1ff):_0x156a80['reason']===_0x1df41d[_0x309d53(0x21c)]?_0x309d53(0x2a4):'maxDepth';throw new _0x2c1e93(_0x3f47fd);}let _0x1beff6=_0x3b72c5[_0x309d53(0x17b)][_0x309d53(0x216)](_0x4a16d5)??null,_0x160738=_0x6ec55e['records'][_0x4a16d5][_0x309d53(0xfd)];if(_0x1beff6===_0x4fe4d7&&(_0x28ab40===void 0x0||_0x28ab40===_0x160738))return!0x0;let _0x2c91c7=_0x1beff6!==_0x4fe4d7,_0x34f65a=_0x28ab40!==void 0x0&&_0x28ab40!==_0x160738,_0x559fc8=new K(),_0x2fff04=[],_0xdc187e=_0x6ec55e['fields'][_0x296d9e],_0x4339bc=_0x2c91c7&&(!_0xdc187e||((_0x8ca518=_0x252b80(_0xdc187e))==null?void 0x0:_0x8ca518['relationRole'])!==_0x3ae3dd[_0x309d53(0x308)])?_0xdc187e?_0x559fc8[_0x309d53(0x135)](_0x4f2335,_0x697bc8,_0x296d9e,{'config':{..._0xdc187e['config'],'relationRole':_0x3ae3dd[_0x309d53(0x308)]}}):_0x145c21[_0x309d53(0x216)](X)[_0x309d53(0xde)](_0x57f99e,_0x697bc8,_0x1cd0c2(_0x6ec55e,_0x296d9e,_0x161b16[_0x309d53(0xb6)]),_0x6ec55e[_0x309d53(0x1b0)][_0x309d53(0x317)]):null;_0x4339bc&&_0x2fff04[_0x309d53(0x27e)](_0x4339bc),_0x2c91c7&&_0x2fff04[_0x309d53(0x27e)](_0x559fc8[_0x309d53(0x2b2)](_0x4f2335,_0x697bc8,_0x4a16d5,_0x296d9e,_0x4fe4d7?_0x28fb5f([_0x4fe4d7]):'')),_0x34f65a&&_0x2fff04[_0x309d53(0x27e)](_0x559fc8[_0x309d53(0x2f0)](_0x4f2335,_0x697bc8,_0x4a16d5,_0x28ab40));let _0xed2f58=_0x2df3da(_0x2fff04),_0x1c38e8={'tableId':_0x697bc8,'fieldId':_0x296d9e,'recordId':_0x4a16d5,'oldParentRecordId':_0x1beff6,'parentRecordId':_0x4fe4d7},_0x548383={'unitId':_0xf39a73,'op':_0xed2f58,'trigger':Mr['id'],'hierarchyChanges':[_0x1c38e8],'source':_0x161b16[_0x309d53(0x9f)]??'ui'},_0x110a6c={..._0x548383,'source':_0x309d53(0x15d)};if(!_0x145c21[_0x309d53(0x216)](_0x2780d7)[_0x309d53(0x107)](_0x34963f['id'],_0x548383))return!0x1;let _0x50194a=_0x57f99e['getSnapshot'](),_0x3dc3e2=[];_0x2c91c7&&_0x3dc3e2[_0x309d53(0x27e)](Nr(_0x50194a,_0x4f2335,_0x697bc8,_0x4a16d5,_0x296d9e)),_0x34f65a&&_0x3dc3e2[_0x309d53(0x27e)](Pr(_0x50194a,_0x4f2335,_0x697bc8,_0x4a16d5)),_0x4339bc&&_0x3dc3e2['push'](new _0x445a5d()['invertOp'](_0x4f2335,_0x4339bc));let _0x1b0d3a={'unitId':_0xf39a73,'op':_0x2df3da(_0x3dc3e2),'trigger':Mr['id'],'hierarchyChanges':[{..._0x1c38e8,'oldParentRecordId':_0x4fe4d7,'parentRecordId':_0x1beff6}],'source':_0x309d53(0x2e9)};return _0x47495d[_0x309d53(0x23c)](_0xf39a73),_0x145c21['get'](_0x5da6dc)['pushUndoRedo']({'unitID':_0xf39a73,'undoMutations':[{'id':_0x34963f['id'],'params':_0x1b0d3a}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x110a6c}]}),!0x0;}};function Nr(_0x5bff6a,_0x2ae887,_0x12dc45,_0x3454be,_0x2cf9e0){const _0x53a977=_0xfaec6d;var _0x8d5184,_0x4f370e,_0xce7ac8,_0x2fe381,_0x22f537,_0x5ca41d,_0x99be72,_0x5c463a;let _0x7594fc=_0x5bff6a['tables'][_0x12dc45],_0x44af36=_0x2ae887[_0x53a977(0x2fe)][_0x12dc45],_0x4ae474=(_0x8d5184=_0x7594fc['rowIndex'])==null?void 0x0:_0x8d5184[_0x3454be],_0x4f7e7b=(_0x4f370e=_0x7594fc[_0x53a977(0x291)])==null?void 0x0:_0x4f370e[_0x2cf9e0],_0x19f4a6=(_0xce7ac8=_0x44af36['rowIndex'])==null?void 0x0:_0xce7ac8[_0x3454be],_0x5b159c=(_0x2fe381=_0x44af36['colIndex'])==null?void 0x0:_0x2fe381[_0x2cf9e0],_0x4451ce=_0x4ae474==null||_0x4f7e7b==null||(_0x22f537=_0x7594fc[_0x53a977(0x30f)])==null||(_0x22f537=_0x22f537[_0x4ae474])==null?void 0x0:_0x22f537[_0x4f7e7b],_0x75310b=_0x19f4a6==null||_0x5b159c==null||(_0x5ca41d=_0x44af36[_0x53a977(0x30f)])==null||(_0x5ca41d=_0x5ca41d[_0x19f4a6])==null?void 0x0:_0x5ca41d[_0x5b159c],_0x10f09f=(_0x99be72=_0x7594fc[_0x53a977(0x11e)][_0x3454be])==null?void 0x0:_0x99be72[_0x53a977(0xa3)][_0x2cf9e0],_0x203431=(_0x5c463a=_0x44af36[_0x53a977(0x11e)][_0x3454be])==null?void 0x0:_0x5c463a[_0x53a977(0xa3)][_0x2cf9e0],_0x140e85=[],_0x3aa341=Fr(_0x4ae474==null||_0x4f7e7b==null?null:G['cellData'](_0x12dc45,_0x4ae474,_0x4f7e7b),_0x4451ce,_0x75310b);_0x3aa341&&_0x140e85['push'](_0x3aa341);let _0x58a470=Fr(G['cell'](_0x12dc45,_0x3454be,_0x2cf9e0),_0x10f09f,_0x203431);return _0x58a470&&_0x140e85[_0x53a977(0x27e)](_0x58a470),_0x2df3da(_0x140e85);}function Pr(_0x4a3de5,_0x2f9726,_0x48ed38,_0x554c9a){const _0x3e18fa=_0xfaec6d;var _0x382032,_0x51bfba;let _0x5d03cb=_0x4a3de5['tables'][_0x48ed38],_0x617467=_0x2f9726[_0x3e18fa(0x2fe)][_0x48ed38],_0x5c7312=[Fr([...G[_0x3e18fa(0x27f)](_0x48ed38,_0x554c9a),_0x3e18fa(0xfd)],(_0x382032=_0x5d03cb['records'][_0x554c9a])==null?void 0x0:_0x382032[_0x3e18fa(0xfd)],(_0x51bfba=_0x617467[_0x3e18fa(0x11e)][_0x554c9a])==null?void 0x0:_0x51bfba[_0x3e18fa(0xfd)]),Fr([...G[_0x3e18fa(0x18d)](_0x48ed38),_0x3e18fa(0x12b)],_0x5d03cb[_0x3e18fa(0x12b)],_0x617467['recordOrder'])][_0x3e18fa(0x249)](_0x1f7015=>!!_0x1f7015);return _0x2df3da(_0x5c7312);}function Fr(_0x91b4ea,_0x32dac1,_0x4f6000){const _0x192cef=_0xfaec6d;if(!_0x91b4ea||_0x32dac1===void 0x0&&_0x4f6000===void 0x0)return null;let _0x206a6f=_0x538845['getInstance']();return _0x4f6000===void 0x0?_0x206a6f['removeOp'](_0x91b4ea,_0x32dac1):_0x32dac1===void 0x0?_0x206a6f[_0x192cef(0xc1)](_0x91b4ea,_0x4f6000):_0x206a6f[_0x192cef(0x1be)](_0x91b4ea,_0x32dac1,_0x4f6000);}const Ir={'id':'base.command.move-base-view','type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x34d749,_0xe19c6e)=>{const _0x904535=_0xfaec6d;if(!_0xe19c6e)return!0x1;let _0x1ea04d=_0x34d749[_0x904535(0x216)](_0x3a34dc),{unitId:_0x18afd1,tableId:_0xfb9fe3,viewId:_0x660a08,target:_0x467987}=_0xe19c6e,_0x58ae58=_0x1ea04d[_0x904535(0x147)](_0x18afd1,_0x528a5b[_0x904535(0x257)]),_0x5234cf=_0x467987[_0x904535(0x23e)]??_0x467987[_0x904535(0x2f5)];if(!_0x58ae58||!_0x5234cf||_0x5234cf===_0x660a08||!Z(_0x58ae58,_0xfb9fe3,{'viewIds':[_0x660a08,_0x5234cf]}))return!0x1;let _0x985689=_0x34d749['get'](_0x2780d7),_0x1da620=_0x34d749[_0x904535(0x216)](_0x5da6dc),_0x3b67b8=_0x58ae58['getSnapshot'](),_0x100d9d=new K()[_0x904535(0x109)](_0x3b67b8,_0xfb9fe3,_0x660a08,_0x467987),_0x35a823=new _0x445a5d()[_0x904535(0x2d8)](_0x3b67b8,_0x100d9d),_0x262867={'unitId':_0x18afd1,'op':_0x100d9d},_0x30883a={'unitId':_0x18afd1,'op':_0x35a823};return _0x985689[_0x904535(0x107)](_0x34963f['id'],_0x262867)?(_0x1ea04d[_0x904535(0x23c)](_0x18afd1),_0x1da620[_0x904535(0xc9)]({'unitID':_0x18afd1,'undoMutations':[{'id':_0x34963f['id'],'params':_0x30883a}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x262867}]}),!0x0):!0x1;}},Lr={'id':_0xfaec6d(0xff),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x5c9eac,_0x357514)=>{const _0x33f1a0=_0xfaec6d;if(!_0x357514)return!0x1;let _0x2f8938=_0x5c9eac[_0x33f1a0(0x216)](_0x3a34dc),{unitId:_0x3be0f4,tableId:_0x5cb3d2,name:_0x4ccf37}=_0x357514,_0xd0a5f3=_0x2f8938['getUnit'](_0x3be0f4,_0x528a5b['UNIVER_BASE']);if(!_0xd0a5f3||!Z(_0xd0a5f3,_0x5cb3d2)||!ir(_0xd0a5f3[_0x33f1a0(0xcd)](),_0x4ccf37,_0x5cb3d2)[_0x33f1a0(0xbd)])return!0x1;let _0x267e3b=_0x5c9eac['get'](_0x2780d7),_0x3e7376=_0x5c9eac[_0x33f1a0(0x216)](_0x5da6dc),_0x2e7d9c=_0xd0a5f3['getSnapshot'](),_0x2e528d=new K()[_0x33f1a0(0x210)](_0x2e7d9c,_0x5cb3d2,_0x4ccf37),_0x7f4b87=new _0x445a5d()['invertOp'](_0x2e7d9c,_0x2e528d),_0x986035={'unitId':_0x3be0f4,'op':_0x2e528d},_0xae61a8={'unitId':_0x3be0f4,'op':_0x7f4b87};return _0x267e3b[_0x33f1a0(0x107)](_0x34963f['id'],_0x986035)?(_0x2f8938['focusUnit'](_0x3be0f4),_0x3e7376[_0x33f1a0(0xc9)]({'unitID':_0x3be0f4,'undoMutations':[{'id':_0x34963f['id'],'params':_0xae61a8}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x986035}]}),!0x0):!0x1;}},Rr={'id':'base.command.rename-base-view','type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x31e8a8,_0x339078)=>{const _0x2dc0a0=_0xfaec6d;if(!_0x339078)return!0x1;let _0x5b3b14=_0x31e8a8['get'](_0x3a34dc),{unitId:_0x1783f1,tableId:_0x1c3819,viewId:_0x15af54,name:_0x35f40c}=_0x339078,_0x3cbc01=_0x5b3b14[_0x2dc0a0(0x147)](_0x1783f1,_0x528a5b[_0x2dc0a0(0x257)]);if(!_0x3cbc01||!Z(_0x3cbc01,_0x1c3819,{'viewIds':[_0x15af54]}))return!0x1;let _0x38cd7d=_0x31e8a8[_0x2dc0a0(0x216)](_0x2780d7),_0x201cad=_0x31e8a8[_0x2dc0a0(0x216)](_0x5da6dc),_0x2e1ad3=_0x3cbc01[_0x2dc0a0(0xcd)](),_0x3be118=new K()[_0x2dc0a0(0x129)](_0x2e1ad3,_0x1c3819,_0x15af54,_0x35f40c),_0x3742f2=new _0x445a5d()['invertOp'](_0x2e1ad3,_0x3be118),_0x524d3b={'unitId':_0x1783f1,'op':_0x3be118},_0x3ef080={'unitId':_0x1783f1,'op':_0x3742f2};return _0x38cd7d[_0x2dc0a0(0x107)](_0x34963f['id'],_0x524d3b)?(_0x5b3b14['focusUnit'](_0x1783f1),_0x201cad[_0x2dc0a0(0xc9)]({'unitID':_0x1783f1,'undoMutations':[{'id':_0x34963f['id'],'params':_0x3ef080}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x524d3b}]}),!0x0):!0x1;}},zr={'id':_0xfaec6d(0x1db),'type':_0x3c38c7['COMMAND'],'handler':(_0x22412d,_0x324a10)=>{const _0xfdb2fa=_0xfaec6d;if(!_0x324a10)return!0x1;let _0x5cfe0b=_0x22412d[_0xfdb2fa(0x216)](_0x3a34dc),{unitId:_0x3709b9,tableId:_0x4c758a,viewId:_0x351c6a,fieldId:_0x2cc2a8}=_0x324a10,_0x50c6ba=_0x5cfe0b[_0xfdb2fa(0x147)](_0x3709b9,_0x528a5b['UNIVER_BASE']);if(!_0x50c6ba||!Z(_0x50c6ba,_0x4c758a,{'viewIds':[_0x351c6a],'fieldIds':[_0x2cc2a8]}))return!0x1;let _0x165533=_0x22412d[_0xfdb2fa(0x216)](_0x2780d7),_0x35ccd5=_0x22412d['get'](_0x5da6dc),_0x5571cf=_0x50c6ba[_0xfdb2fa(0xcd)](),_0x1b2fd8=new K()['updateViewConfig'](_0x5571cf,_0x4c758a,_0x351c6a,{'groupFieldId':_0x2cc2a8}),_0x10b4ad=new _0x445a5d()['invertOp'](_0x5571cf,_0x1b2fd8),_0xf5f559={'unitId':_0x3709b9,'op':_0x1b2fd8},_0x59c8e0={'unitId':_0x3709b9,'op':_0x10b4ad};return _0x165533[_0xfdb2fa(0x107)](_0x34963f['id'],_0xf5f559)?(_0x5cfe0b[_0xfdb2fa(0x23c)](_0x3709b9),_0x35ccd5[_0xfdb2fa(0xc9)]({'unitID':_0x3709b9,'undoMutations':[{'id':_0x34963f['id'],'params':_0x59c8e0}],'redoMutations':[{'id':_0x34963f['id'],'params':_0xf5f559}]}),!0x0):!0x1;}},Br={'id':_0xfaec6d(0x214),'type':_0x3c38c7['COMMAND'],'handler':(_0xc46357,_0x2b71e1)=>{const _0x3e0d19=_0xfaec6d;if(!_0x2b71e1)return!0x1;let _0x3377f2=_0xc46357[_0x3e0d19(0x216)](_0x3a34dc),_0x476c81=_0x3377f2[_0x3e0d19(0x147)](_0x2b71e1[_0x3e0d19(0x207)],_0x528a5b[_0x3e0d19(0x257)]);if(!_0x476c81)return!0x1;let _0xa261f5=_0x476c81[_0x3e0d19(0xcd)]()[_0x3e0d19(0x267)];if(_0xa261f5===_0x2b71e1[_0x3e0d19(0x267)])return!0x0;let _0x15bfcd=new K(),_0x478328=new _0x445a5d(),_0x483b99=[],_0xb4f372=[],_0x3fb6df=[_0x476c81,..._0x3377f2[_0x3e0d19(0x14d)](_0x528a5b[_0x3e0d19(0x257)])[_0x3e0d19(0x249)](_0x19a263=>_0x19a263['getUnitId']()!==_0x2b71e1[_0x3e0d19(0x207)])];for(let _0x51065c of _0x3fb6df){let _0x15d91f=_0x51065c[_0x3e0d19(0xcd)](),_0x21f2de=_0x51065c===_0x476c81?_0x15bfcd['setBaseName'](_0x15d91f,_0x2b71e1[_0x3e0d19(0x267)]):_0x15bfcd[_0x3e0d19(0x1b5)](_0x15d91f,_0xa261f5,_0x2b71e1[_0x3e0d19(0x267)]);_0x21f2de&&(_0x483b99[_0x3e0d19(0x27e)]({'id':_0x34963f['id'],'params':{'unitId':_0x51065c['getUnitId'](),'op':_0x21f2de,'trigger':Br['id']}}),_0xb4f372[_0x3e0d19(0x312)]({'id':_0x34963f['id'],'params':{'unitId':_0x51065c[_0x3e0d19(0x1cf)](),'op':_0x478328[_0x3e0d19(0x2d8)](_0x15d91f,_0x21f2de),'trigger':Br['id']}}));}let _0x15e1b7=_0xc46357[_0x3e0d19(0x216)](_0x2780d7),_0x147600=_0xc46357[_0x3e0d19(0x216)](_0x5da6dc),_0x5066cd=_0x147600[_0x3e0d19(0x2a5)](_0x2b71e1['unitId']);try{return _0x45508b(_0x483b99,_0x15e1b7)[_0x3e0d19(0x1c0)]?(_0x3377f2[_0x3e0d19(0x23c)](_0x2b71e1[_0x3e0d19(0x207)]),_0x147600['pushUndoRedo']({'unitID':_0x2b71e1[_0x3e0d19(0x207)],'undoMutations':_0xb4f372,'redoMutations':_0x483b99}),!0x0):!0x1;}finally{_0x5066cd[_0x3e0d19(0x1b4)]();}}},Vr={'type':_0x3c38c7[_0xfaec6d(0x298)],'id':'base.command.set-permission',async 'handler'(_0xe6aa1b,_0x313813){const _0x4282a8=_0xfaec6d;if(!_0x313813||!Kt[_0x4282a8(0x15c)](_0x313813[_0x4282a8(0x14c)])||_0x313813[_0x4282a8(0x24e)]!==_0x313813[_0x4282a8(0x207)]&&_0x313813[_0x4282a8(0x14c)]!==_0x32fca1['Edit']||_0x313813[_0x4282a8(0xf6)]&&(![_0x4282a8(0x161),_0x4282a8(0x2e3),_0x4282a8(0x125)][_0x4282a8(0x15c)](_0x313813[_0x4282a8(0xf6)]['edit'])||_0x313813[_0x4282a8(0xf6)]['strategies'][_0x4282a8(0x2e6)](_0x153917=>!Kt['includes'](_0x153917[_0x4282a8(0x14c)])||_0x313813[_0x4282a8(0x24e)]!==_0x313813[_0x4282a8(0x207)]&&_0x153917['action']!==_0x32fca1[_0x4282a8(0x270)])))return!0x1;let _0x584c17=tn(_0x313813[_0x4282a8(0x207)],_0x313813[_0x4282a8(0x24e)],_0x313813[_0x4282a8(0x14c)]),_0xae32a1={'unitId':_0x313813[_0x4282a8(0x207)],'objectId':_0x313813[_0x4282a8(0x24e)],'objectType':_0x584c17['type']},_0x34d47e=_0xe6aa1b[_0x4282a8(0x216)](_0x48d251);return _0x313813[_0x4282a8(0x237)]?await _0x34d47e[_0x4282a8(0x237)](_0xae32a1):_0x313813[_0x4282a8(0xf6)]?await _0x34d47e[_0x4282a8(0x300)](_0xae32a1,_0x313813[_0x4282a8(0xf6)]):await _0x34d47e[_0x4282a8(0xf3)](_0xae32a1,_0x584c17,_0x313813[_0x4282a8(0xca)]),!0x0;}},Hr={'type':_0x3c38c7[_0xfaec6d(0x298)],'id':_0xfaec6d(0xc7),async 'handler'(_0xab8ff7,_0x5d8a53){const _0x2da072=_0xfaec6d;if(!(_0x5d8a53!=null&&_0x5d8a53[_0x2da072(0x207)])||!Array['isArray'](_0x5d8a53[_0x2da072(0x2ef)])||!_0x5d8a53[_0x2da072(0x2ef)][_0x2da072(0x317)]||_0x5d8a53[_0x2da072(0x2ef)]['some'](_0xec64e8=>!(_0xec64e8!=null&&_0xec64e8['objectId'])||_0xec64e8['objectId']===_0x5d8a53[_0x2da072(0x207)]||_0xec64e8[_0x2da072(0xf6)]!==null&&(!_0xec64e8[_0x2da072(0xf6)]||![_0x2da072(0x161),_0x2da072(0x2e3),_0x2da072(0x125)]['includes'](_0xec64e8['policy'][_0x2da072(0x153)])||!Array[_0x2da072(0x183)](_0xec64e8[_0x2da072(0xf6)]['collaborators'])||!Array[_0x2da072(0x183)](_0xec64e8[_0x2da072(0xf6)][_0x2da072(0x2eb)])||_0xec64e8[_0x2da072(0xf6)][_0x2da072(0x2eb)][_0x2da072(0x2e6)](_0x5950e8=>_0x5950e8['action']!==_0x32fca1[_0x2da072(0x270)]))))throw Error(_0x2da072(0x2a0));return _0xab8ff7['get'](_0x48d251)[_0x2da072(0x176)](_0x5d8a53['changes'][_0x2da072(0xdc)](_0x1c7861=>{const _0x1aa186=_0x2da072;let _0x357321=tn(_0x5d8a53[_0x1aa186(0x207)],_0x1c7861['objectId'],_0x32fca1['Edit']);return{'unitId':_0x5d8a53[_0x1aa186(0x207)],'objectId':_0x1c7861[_0x1aa186(0x24e)],'objectType':_0x357321['type'],'policy':_0x1c7861[_0x1aa186(0xf6)]};}));}};function Ur(_0x4879f1,_0x5e2e92){const _0x7a16aa=_0xfaec6d;let _0x103689=_0x470fe8(_0x167656[_0x7a16aa(0x20a)](_0x4879f1)),_0x5392e4=new Map();return _0x5e2e92['forEach'](_0x2f5c34=>{const _0x12bc06=_0x7a16aa;var _0x1acb6f,_0x1493eb;let _0x199bfe=_0x12bc06(0x1de)in _0x2f5c34?_0x2f5c34['recordId']:(_0x1acb6f=_0x103689[_0x12bc06(0x20f)])==null?void 0x0:_0x1acb6f[_0x2f5c34['row']],_0x2578c7=_0x12bc06(0x2c3)in _0x2f5c34?_0x2f5c34[_0x12bc06(0x2c3)]:(_0x1493eb=_0x103689[_0x12bc06(0x13f)])==null?void 0x0:_0x1493eb[_0x2f5c34['col']],_0xcb695e=_0x2578c7?_0x103689[_0x12bc06(0x10e)][_0x2578c7]:void 0x0;if(!_0x199bfe||!_0x2578c7||!_0xcb695e||!_0x103689[_0x12bc06(0x11e)][_0x199bfe])return;let _0x51358b=_0x3a4492(_0x2f5c34['value'],_0xcb695e),_0x228f4f=_0x52feca(_0x2f5c34[_0x12bc06(0xca)],_0x51358b,_0xcb695e,_0x103689,_0x199bfe),_0x10b66a=_0x5392e4[_0x12bc06(0x216)](_0x199bfe)??{};_0x10b66a[_0x2578c7]=_0x228f4f,_0x5392e4['set'](_0x199bfe,_0x10b66a);}),[..._0x5392e4][_0x7a16aa(0xdc)](([_0x313fd1,_0x56c063])=>({'recordId':_0x313fd1,'values':_0x56c063}));}const Wr={'id':'base.command.set-base-range-values','type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x3b5774,_0x3fd36c){const _0x5e6149=_0xfaec6d;if(!_0x3fd36c)return!0x1;let _0x1d0663=_0x3b5774['get'](_0x3a34dc),{unitId:_0x51f3f8,tableId:_0x4aa3a2,patches:_0x583071}=_0x3fd36c,_0x110e6d=_0x1d0663[_0x5e6149(0x147)](_0x51f3f8,_0x528a5b[_0x5e6149(0x257)]);if(!_0x110e6d||!Z(_0x110e6d,_0x4aa3a2))return!0x1;let _0x949bad=_0x3b5774[_0x5e6149(0x216)](_0x2780d7),_0x2f7043=_0x3b5774['get'](_0x5da6dc),_0x1afdd1=_0x110e6d[_0x5e6149(0xcd)](),_0x191acd=_0x470fe8(_0x1afdd1['tables'][_0x4aa3a2]),_0x22f991=_0x583071[_0x5e6149(0xdc)](_0x42d6fe=>{const _0x128346=_0x5e6149;var _0x369d10;return _0x128346(0x1de)in _0x42d6fe?_0x42d6fe[_0x128346(0x1de)]:(_0x369d10=_0x191acd[_0x128346(0x20f)])==null?void 0x0:_0x369d10[_0x42d6fe['row']];})['filter'](_0x4449f4=>_0x4449f4!=null),_0x54c748=_0x583071['map'](_0x401ba5=>{const _0x473620=_0x5e6149;var _0x35ff73;return _0x473620(0x2c3)in _0x401ba5?_0x401ba5[_0x473620(0x2c3)]:(_0x35ff73=_0x191acd[_0x473620(0x13f)])==null?void 0x0:_0x35ff73[_0x401ba5[_0x473620(0x104)]];})[_0x5e6149(0x249)](_0x32f4aa=>_0x32f4aa!=null);if(_0x22f991[_0x5e6149(0x317)]!==_0x583071[_0x5e6149(0x317)]||_0x54c748[_0x5e6149(0x317)]!==_0x583071[_0x5e6149(0x317)]||!Z(_0x110e6d,_0x4aa3a2,{'recordIds':_0x22f991,'fieldIds':_0x54c748})||_0x583071[_0x5e6149(0x2e6)]((_0x37c635,_0x511491)=>!Kn(_0x110e6d,_0x4aa3a2,_0x54c748[_0x511491],_0x37c635[_0x5e6149(0xca)])))return!0x1;let _0x105468=_0x4ee248(_0x191acd,Ur(_0x191acd,_0x583071)),_0x9bdb1b=_0x583071[_0x5e6149(0xce)](_0x27a622=>{const _0x294065=_0x5e6149;var _0x3ffde2,_0x5b2583;if(_0x294065(0x172)in _0x27a622)return[_0x27a622];let _0x4ab53b=(_0x3ffde2=_0x191acd['rowIndex'])==null?void 0x0:_0x3ffde2[_0x27a622[_0x294065(0x1de)]],_0x46d92f=(_0x5b2583=_0x191acd[_0x294065(0x291)])==null?void 0x0:_0x5b2583[_0x27a622['fieldId']];return _0x4ab53b==null||_0x46d92f==null?[]:[{'row':_0x4ab53b,'col':_0x46d92f,'value':_0x27a622['value']}];}),_0x2ac0ce=new K()[_0x5e6149(0x1c9)](_0x1afdd1,_0x4aa3a2,_0x9bdb1b),_0x1431a5=new _0x445a5d()[_0x5e6149(0x2d8)](_0x1afdd1,_0x2ac0ce),_0x551924={'unitId':_0x51f3f8,'op':_0x2ac0ce,'trigger':_0x105468[_0x5e6149(0x317)]?Wr['id']:void 0x0,'hierarchyChanges':_0x105468[_0x5e6149(0x317)]?_0x105468:void 0x0,'source':_0x105468[_0x5e6149(0x317)]?_0x5e6149(0x15d):void 0x0},_0x3607db={'unitId':_0x51f3f8,'op':_0x1431a5,'trigger':_0x105468['length']?Wr['id']:void 0x0,'hierarchyChanges':_0x105468[_0x5e6149(0x317)]?_0x105468[_0x5e6149(0xdc)](_0x20d3c2=>({..._0x20d3c2,'oldParentRecordId':_0x20d3c2[_0x5e6149(0x1ef)],'parentRecordId':_0x20d3c2['oldParentRecordId']})):void 0x0,'source':_0x105468[_0x5e6149(0x317)]?_0x5e6149(0x2e9):void 0x0},_0x2370b={..._0x551924,'source':_0x105468[_0x5e6149(0x317)]?_0x3fd36c['source']??'ui':void 0x0};return _0x949bad[_0x5e6149(0x107)](_0x34963f['id'],_0x2370b)?(_0x1d0663['focusUnit'](_0x51f3f8),_0x2f7043[_0x5e6149(0xc9)]({'unitID':_0x51f3f8,'undoMutations':[{'id':_0x34963f['id'],'params':_0x3607db}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x551924}]}),!0x0):!0x1;}},Gr={'id':'base.command.set-base-record-values','type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x53957e,_0xcf8cea){const _0x3d3306=_0xfaec6d;if(!_0xcf8cea)return!0x1;let _0x49b2a6=_0x53957e[_0x3d3306(0x216)](_0x3a34dc),{unitId:_0x394e37,tableId:_0x41c217,patches:_0x300af4}=_0xcf8cea,_0x44f135=_0x49b2a6[_0x3d3306(0x147)](_0x394e37,_0x528a5b['UNIVER_BASE']),_0x40ff48=_0x300af4['map'](_0x45f592=>_0x45f592[_0x3d3306(0x1de)]),_0x99a9ec=_0x300af4['flatMap'](_0x3b5a65=>Object[_0x3d3306(0x2d7)](_0x3b5a65[_0x3d3306(0xa3)]));if(!_0x44f135||!Z(_0x44f135,_0x41c217,{'recordIds':_0x40ff48,'fieldIds':_0x99a9ec})||_0x300af4[_0x3d3306(0x2e6)](_0x3d2fd1=>Object[_0x3d3306(0xc4)](_0x3d2fd1[_0x3d3306(0xa3)])[_0x3d3306(0x2e6)](([_0x13bca1,_0x51fc8c])=>!Kn(_0x44f135,_0x41c217,_0x13bca1,_0x51fc8c))))return!0x1;let _0x60b52d=_0x4ee248(_0x44f135[_0x3d3306(0xcd)]()[_0x3d3306(0x2fe)][_0x41c217],_0x300af4),_0x5abb6e=_0x53957e[_0x3d3306(0x216)](_0x2780d7),_0xdefd7d=_0x53957e[_0x3d3306(0x216)](_0x5da6dc),_0x201931=_0x53957e[_0x3d3306(0x216)](X)[_0x3d3306(0x1b2)](_0x44f135,_0x41c217,_0x300af4),_0x532669=new _0x445a5d()['invertOp'](_0x44f135[_0x3d3306(0xcd)](),_0x201931),_0xee3a57={'unitId':_0x394e37,'op':_0x201931,'trigger':_0x60b52d[_0x3d3306(0x317)]?Gr['id']:void 0x0,'hierarchyChanges':_0x60b52d[_0x3d3306(0x317)]?_0x60b52d:void 0x0,'source':_0x60b52d[_0x3d3306(0x317)]?_0xcf8cea[_0x3d3306(0x9f)]??'ui':void 0x0},_0x1c4644={..._0xee3a57,'source':_0x60b52d[_0x3d3306(0x317)]?_0x3d3306(0x15d):void 0x0},_0x1c723e={'unitId':_0x394e37,'op':_0x532669,'trigger':_0x60b52d[_0x3d3306(0x317)]?Gr['id']:void 0x0,'hierarchyChanges':_0x60b52d[_0x3d3306(0x317)]?_0x60b52d['map'](_0x70478c=>({..._0x70478c,'oldParentRecordId':_0x70478c[_0x3d3306(0x1ef)],'parentRecordId':_0x70478c[_0x3d3306(0xa8)]})):void 0x0,'source':_0x60b52d[_0x3d3306(0x317)]?'undo':void 0x0};return _0x5abb6e['syncExecuteCommand'](_0x34963f['id'],_0xee3a57)?(_0x49b2a6[_0x3d3306(0x23c)](_0x394e37),_0xdefd7d[_0x3d3306(0xc9)]({'unitID':_0x394e37,'undoMutations':[{'id':_0x34963f['id'],'params':_0x1c723e}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x1c4644}]}),!0x0):!0x1;}},Kr={'id':_0xfaec6d(0x140),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x42499e,_0x3c0215)=>{const _0x7d5620=_0xfaec6d;if(!_0x3c0215)return!0x1;let {unitId:_0x2736dc,tableId:_0x33e457,fieldId:_0x4cf706}=_0x3c0215,_0xab403e=_0x42499e['get'](_0x3a34dc),_0x472610=_0xab403e[_0x7d5620(0x147)](_0x2736dc,_0x528a5b[_0x7d5620(0x257)]);if(!_0x472610||!Z(_0x472610,_0x33e457))return!0x1;let _0x2a92=_0x472610[_0x7d5620(0xcd)](),_0x72322f=_0x2a92[_0x7d5620(0x2fe)][_0x33e457];if(_0x4cf706!==null&&!_0x567ec0(_0x72322f,_0x4cf706))throw new _0x2c1e93(_0x7d5620(0x259));if(_0x103c1d(_0x72322f)===_0x4cf706)return!0x0;let _0x4b0bf5=new K(),_0x779db=Object[_0x7d5620(0xa3)](_0x72322f[_0x7d5620(0x10e)])[_0x7d5620(0xce)](_0x315f9e=>{const _0x5a9458=_0x7d5620;if(!_0x567ec0(_0x72322f,_0x315f9e['id']))return[];let _0x2c3f28=_0x252b80(_0x315f9e);if(!_0x2c3f28)return[];let _0x240b36=_0x315f9e['id']===_0x4cf706;if(_0x2c3f28[_0x5a9458(0x12c)]===_0x3ae3dd[_0x5a9458(0x308)]===_0x240b36)return[];let _0x27ac0e={..._0x315f9e['config'],'targetTableId':_0x2c3f28[_0x5a9458(0x18e)],'multiple':_0x2c3f28[_0x5a9458(0x25d)]};return _0x240b36?_0x27ac0e[_0x5a9458(0x12c)]=_0x3ae3dd[_0x5a9458(0x308)]:delete _0x27ac0e['relationRole'],[_0x4b0bf5['updateField'](_0x2a92,_0x33e457,_0x315f9e['id'],{'config':_0x27ac0e})];}),_0x2cd110=_0x2df3da(_0x779db),_0x4bf075=new _0x445a5d()[_0x7d5620(0x2d8)](_0x2a92,_0x2cd110),_0x324c13={'unitId':_0x2736dc,'op':_0x2cd110},_0x5c2d69={'unitId':_0x2736dc,'op':_0x4bf075};return _0x42499e[_0x7d5620(0x216)](_0x2780d7)[_0x7d5620(0x107)](_0x34963f['id'],_0x324c13)?(_0xab403e[_0x7d5620(0x23c)](_0x2736dc),_0x42499e[_0x7d5620(0x216)](_0x5da6dc)[_0x7d5620(0xc9)]({'unitID':_0x2736dc,'undoMutations':[{'id':_0x34963f['id'],'params':_0x5c2d69}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x324c13}]}),!0x0):!0x1;}},qr={'id':_0xfaec6d(0x1f5),'type':_0x3c38c7['COMMAND'],'handler':(_0x10fd91,_0x125a0f)=>{const _0x25b607=_0xfaec6d;if(!_0x125a0f)return!0x1;let _0x138ff5=_0x10fd91[_0x25b607(0x216)](_0x3a34dc),{unitId:_0x25c8c1,tableId:_0x9bd9c9,viewId:_0x581414,fieldId:_0x11395f,target:_0x5844e4}=_0x125a0f,_0x29e349=_0x138ff5[_0x25b607(0x147)](_0x25c8c1,_0x528a5b[_0x25b607(0x257)]),_0x5f3115=_0x5844e4[_0x25b607(0xbe)]??_0x5844e4[_0x25b607(0x174)];if(!_0x29e349||!_0x5f3115||_0x5f3115===_0x11395f||!Z(_0x29e349,_0x9bd9c9,{'viewIds':[_0x581414],'fieldIds':[_0x11395f,_0x5f3115]}))return!0x1;let _0x35284c=_0x29e349[_0x25b607(0xcd)]()[_0x25b607(0x2fe)][_0x9bd9c9],_0x2c3752=_0x35284c['fields'][_0x11395f],_0x12b837=_0x35284c[_0x25b607(0x10e)][_0x5f3115];if(_0x2c3752[_0x25b607(0x22b)]===!0x0||_0x2c3752['type']===_0x2657c4[_0x25b607(0x2e2)]||_0x12b837[_0x25b607(0x22b)]===!0x0||_0x12b837[_0x25b607(0x211)]===_0x2657c4['RecordId'])return!0x1;let _0x1431ec=_0x10fd91[_0x25b607(0x216)](_0x2780d7),_0x305726=_0x10fd91[_0x25b607(0x216)](_0x5da6dc),_0x1e7db5=_0x29e349[_0x25b607(0xcd)](),_0x48ec8c=new K()[_0x25b607(0x227)](_0x1e7db5,_0x9bd9c9,_0x581414,_0x11395f,_0x5844e4),_0x18612b=new _0x445a5d()[_0x25b607(0x2d8)](_0x1e7db5,_0x48ec8c),_0x5dfcbf={'unitId':_0x25c8c1,'op':_0x48ec8c},_0xa48552={'unitId':_0x25c8c1,'op':_0x18612b};return _0x1431ec[_0x25b607(0x107)](_0x34963f['id'],_0x5dfcbf)?(_0x138ff5[_0x25b607(0x23c)](_0x25c8c1),_0x305726[_0x25b607(0xc9)]({'unitID':_0x25c8c1,'undoMutations':[{'id':_0x34963f['id'],'params':_0xa48552}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x5dfcbf}]}),!0x0):!0x1;}},Jr={'id':_0xfaec6d(0x202),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0xc11cb6,_0x40840b){const _0x3aa6fc=_0xfaec6d;if(!_0x40840b)return!0x1;let _0x3e6c3d=_0xc11cb6['get'](_0x3a34dc),{unitId:_0x5606c6,tableId:_0x3d8247,viewId:_0x209620,fieldId:_0x2fd50d,visible:_0x3764f8}=_0x40840b,_0x21261d=_0x3e6c3d[_0x3aa6fc(0x147)](_0x5606c6,_0x528a5b[_0x3aa6fc(0x257)]);if(!_0x21261d||!Z(_0x21261d,_0x3d8247,{'viewIds':[_0x209620],'fieldIds':[_0x2fd50d]}))return!0x1;let _0x2f1ed7=_0x21261d[_0x3aa6fc(0xcd)]()[_0x3aa6fc(0x2fe)][_0x3d8247][_0x3aa6fc(0x10e)][_0x2fd50d];if(_0x2f1ed7[_0x3aa6fc(0x22b)]===!0x0||_0x2f1ed7[_0x3aa6fc(0x211)]===_0x2657c4[_0x3aa6fc(0x2e2)])return!0x1;let _0x204204=_0xc11cb6[_0x3aa6fc(0x216)](_0x2780d7),_0x462cc5=_0xc11cb6['get'](_0x5da6dc),_0x31752b=_0x21261d[_0x3aa6fc(0xcd)](),_0x561896=new K()[_0x3aa6fc(0x190)](_0x31752b,_0x3d8247,_0x209620,_0x2fd50d,_0x3764f8),_0x44e68f=new _0x445a5d()[_0x3aa6fc(0x2d8)](_0x31752b,_0x561896),_0x265748={'unitId':_0x5606c6,'op':_0x561896},_0x4100e1={'unitId':_0x5606c6,'op':_0x44e68f};return _0x204204['syncExecuteCommand'](_0x34963f['id'],_0x265748)?(_0x3e6c3d['focusUnit'](_0x5606c6),_0x462cc5[_0x3aa6fc(0xc9)]({'unitID':_0x5606c6,'undoMutations':[{'id':_0x34963f['id'],'params':_0x4100e1}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x265748}]}),!0x0):!0x1;}},Yr={'id':_0xfaec6d(0x245),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x1982b8,_0x46f7f0)=>{const _0x36d861=_0xfaec6d;if(!_0x46f7f0)return!0x1;let _0x8887cd=_0x1982b8[_0x36d861(0x216)](_0x3a34dc),{unitId:_0x5496dd,tableId:_0x3d2c91,viewId:_0x2fdc17,fieldId:_0x526b48,width:_0x5c345e}=_0x46f7f0,_0x5ac300=_0x8887cd[_0x36d861(0x147)](_0x5496dd,_0x528a5b[_0x36d861(0x257)]);if(!_0x5ac300||!Z(_0x5ac300,_0x3d2c91,{'viewIds':[_0x2fdc17],'fieldIds':[_0x526b48]}))return!0x1;let _0x2a0458=_0x5ac300[_0x36d861(0xcd)]()[_0x36d861(0x2fe)][_0x3d2c91][_0x36d861(0x10e)][_0x526b48];if(_0x2a0458[_0x36d861(0x22b)]===!0x0||_0x2a0458[_0x36d861(0x211)]===_0x2657c4[_0x36d861(0x2e2)])return!0x1;let _0x40b436=_0x1982b8[_0x36d861(0x216)](_0x2780d7),_0x2cbfc6=_0x1982b8[_0x36d861(0x216)](_0x5da6dc),_0x3fe96f=_0x5ac300[_0x36d861(0xcd)](),_0x29d918=new K()[_0x36d861(0x285)](_0x3fe96f,_0x3d2c91,_0x2fdc17,_0x526b48,_0x5c345e),_0x3998bb=new _0x445a5d()[_0x36d861(0x2d8)](_0x3fe96f,_0x29d918),_0xa6402a={'unitId':_0x5496dd,'op':_0x29d918},_0x3ec289={'unitId':_0x5496dd,'op':_0x3998bb};return _0x40b436[_0x36d861(0x107)](_0x34963f['id'],_0xa6402a)?(_0x8887cd[_0x36d861(0x23c)](_0x5496dd),_0x2cbfc6[_0x36d861(0xc9)]({'unitID':_0x5496dd,'undoMutations':[{'id':_0x34963f['id'],'params':_0x3ec289}],'redoMutations':[{'id':_0x34963f['id'],'params':_0xa6402a}]}),!0x0):!0x1;}},Xr={'id':_0xfaec6d(0xed),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x42ded7,_0x3f9b82)=>{const _0x35a998=_0xfaec6d;if(!_0x3f9b82)return!0x1;let _0x54ab50=_0x42ded7[_0x35a998(0x216)](_0x3a34dc),{unitId:_0x374240,tableId:_0x13a7fe,viewId:_0x31d167,filter:_0x4d1930}=_0x3f9b82,_0x47ffdb=_0x54ab50['getUnit'](_0x374240,_0x528a5b[_0x35a998(0x257)]),_0x252d11=(_0x4d1930==null?void 0x0:_0x4d1930[_0x35a998(0xbb)][_0x35a998(0xdc)](_0x53dc6b=>_0x53dc6b['fieldId']))??[];if(!_0x47ffdb||!Z(_0x47ffdb,_0x13a7fe,{'viewIds':[_0x31d167],'fieldIds':_0x252d11}))return!0x1;let _0x422ebf=_0x42ded7[_0x35a998(0x216)](_0x2780d7),_0x31af6c=_0x42ded7[_0x35a998(0x216)](_0x5da6dc),_0x45f060=_0x47ffdb[_0x35a998(0xcd)](),_0x1338e0=new K()['setViewFilter'](_0x45f060,_0x13a7fe,_0x31d167,_0x4d1930),_0x3bb27b=new _0x445a5d()['invertOp'](_0x45f060,_0x1338e0),_0x4b9025={'unitId':_0x374240,'op':_0x1338e0},_0x3d7b34={'unitId':_0x374240,'op':_0x3bb27b};return _0x422ebf[_0x35a998(0x107)](_0x34963f['id'],_0x4b9025)?(_0x54ab50[_0x35a998(0x23c)](_0x374240),_0x31af6c['pushUndoRedo']({'unitID':_0x374240,'undoMutations':[{'id':_0x34963f['id'],'params':_0x3d7b34}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x4b9025}]}),!0x0):!0x1;}},Zr={'id':_0xfaec6d(0x1bf),'type':_0x3c38c7['COMMAND'],'handler':(_0x870213,_0x32c790)=>{const _0x314b1f=_0xfaec6d;if(!_0x32c790)return!0x1;let _0x2add6e=_0x870213[_0x314b1f(0x216)](_0x3a34dc),{unitId:_0x350075,tableId:_0x5ea65c,viewId:_0x195d80,group:_0x5567a5}=_0x32c790,_0x528c69=_0x2add6e[_0x314b1f(0x147)](_0x350075,_0x528a5b[_0x314b1f(0x257)]);if(!_0x528c69||!Z(_0x528c69,_0x5ea65c,{'viewIds':[_0x195d80],'fieldIds':_0x5567a5[_0x314b1f(0xdc)](_0xd08a49=>_0xd08a49['fieldId'])}))return!0x1;let _0x2f6d6d=_0x870213['get'](_0x2780d7),_0x444103=_0x870213['get'](_0x5da6dc),_0x2115f3=_0x528c69[_0x314b1f(0xcd)](),_0x28d2d0=new K()[_0x314b1f(0x2d6)](_0x2115f3,_0x5ea65c,_0x195d80,_0x5567a5),_0x55dd51=new _0x445a5d()[_0x314b1f(0x2d8)](_0x2115f3,_0x28d2d0),_0x2a17d7={'unitId':_0x350075,'op':_0x28d2d0},_0x7f29f5={'unitId':_0x350075,'op':_0x55dd51};return _0x2f6d6d[_0x314b1f(0x107)](_0x34963f['id'],_0x2a17d7)?(_0x2add6e[_0x314b1f(0x23c)](_0x350075),_0x444103[_0x314b1f(0xc9)]({'unitID':_0x350075,'undoMutations':[{'id':_0x34963f['id'],'params':_0x7f29f5}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x2a17d7}]}),!0x0):!0x1;}},Qr={'id':_0xfaec6d(0xae),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x28368a,_0x210323)=>{const _0x3b42d7=_0xfaec6d;if(!_0x210323)return!0x1;let _0x29f43a=_0x28368a[_0x3b42d7(0x216)](_0x3a34dc),{unitId:_0x5ef52c,tableId:_0x2bbe7e,viewId:_0x27f6e2,sort:_0x507d2e}=_0x210323,_0xdc16b8=_0x29f43a[_0x3b42d7(0x147)](_0x5ef52c,_0x528a5b[_0x3b42d7(0x257)]);if(!_0xdc16b8||!Z(_0xdc16b8,_0x2bbe7e,{'viewIds':[_0x27f6e2],'fieldIds':_0x507d2e[_0x3b42d7(0xdc)](_0x1b9bef=>_0x1b9bef[_0x3b42d7(0x2c3)])}))return!0x1;let _0x12d47a=_0x28368a[_0x3b42d7(0x216)](_0x2780d7),_0xe786db=_0x28368a[_0x3b42d7(0x216)](_0x5da6dc),_0xe81bb8=_0xdc16b8['getSnapshot'](),_0x419349=new K()[_0x3b42d7(0xd7)](_0xe81bb8,_0x2bbe7e,_0x27f6e2,_0x507d2e),_0x4fc39b=new _0x445a5d()[_0x3b42d7(0x2d8)](_0xe81bb8,_0x419349),_0x4d21a5={'unitId':_0x5ef52c,'op':_0x419349},_0x2550d3={'unitId':_0x5ef52c,'op':_0x4fc39b};return _0x12d47a[_0x3b42d7(0x107)](_0x34963f['id'],_0x4d21a5)?(_0x29f43a[_0x3b42d7(0x23c)](_0x5ef52c),_0xe786db[_0x3b42d7(0xc9)]({'unitID':_0x5ef52c,'undoMutations':[{'id':_0x34963f['id'],'params':_0x2550d3}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x4d21a5}]}),!0x0):!0x1;}},$r={'id':_0xfaec6d(0xb8),'type':_0x3c38c7['COMMAND'],'handler'(_0x964de7,_0x5f1346){const _0xb94342=_0xfaec6d;if(!_0x5f1346)return!0x1;let _0x5476a8=_0x964de7['get'](_0x3a34dc),{unitId:_0x384e1c,tableId:_0x3f56f3,recordId:_0x2adc75,fieldId:_0x31f5ec,value:_0xf61ac6}=_0x5f1346,_0x2ff83b=_0x5476a8[_0xb94342(0x147)](_0x384e1c,_0x528a5b[_0xb94342(0x257)]);if(!_0x2ff83b||!Z(_0x2ff83b,_0x3f56f3,{'recordIds':[_0x2adc75],'fieldIds':[_0x31f5ec]})||!Kn(_0x2ff83b,_0x3f56f3,_0x31f5ec,_0xf61ac6))return!0x1;let _0x2a5a2d=_0x2ff83b['getSnapshot']()[_0xb94342(0x2fe)][_0x3f56f3],_0x2ab060=_0x567ec0(_0x2a5a2d,_0x31f5ec)&&_0x128bba(_0x2a5a2d)[_0xb94342(0x15c)](_0x31f5ec),_0xc6e36c=_0x2ab060?_0x252898(_0x2a5a2d,_0x31f5ec):null,_0x9c31af=(_0xc6e36c==null?void 0x0:_0xc6e36c[_0xb94342(0x17b)][_0xb94342(0x216)](_0x2adc75))??null,_0x3cd5df=_0x2ab060?_0xc7f959(_0xf61ac6)[0x0]??null:null;if(_0xc6e36c){if(_0x3cd5df&&!_0x2a5a2d[_0xb94342(0x11e)][_0x3cd5df])throw new _0x2c1e93(_0xb94342(0x14b));let _0x17bf79=_0xf1954(_0xc6e36c,_0x2adc75,_0x3cd5df);if(!_0x17bf79[_0xb94342(0xbd)]){let _0x5a7c5b=_0x17bf79['reason']===_0x1df41d[_0xb94342(0x228)]?_0xb94342(0x1ff):_0x17bf79['reason']===_0x1df41d[_0xb94342(0x21c)]?'cycle':_0xb94342(0x29a);throw new _0x2c1e93(_0x5a7c5b);}}let _0x7d5077=_0x964de7['get'](_0x2780d7),_0x4c050c=_0x964de7[_0xb94342(0x216)](_0x5da6dc),_0x4ea3b2=_0x964de7[_0xb94342(0x216)](X),_0x22fc93;try{_0x22fc93=_0x4ea3b2['createUpdateCellOp'](_0x2ff83b,_0x3f56f3,_0x2adc75,_0x31f5ec,_0xf61ac6);}catch(_0x296ddb){return console['error'](_0xb94342(0xe6),_0x296ddb),!0x1;}let _0x3de3c3=new _0x445a5d()['invertOp'](_0x2ff83b['getSnapshot'](),_0x22fc93),_0x4dbad9=_0x2ab060&&_0x9c31af!==_0x3cd5df?[{'tableId':_0x3f56f3,'fieldId':_0x31f5ec,'recordId':_0x2adc75,'oldParentRecordId':_0x9c31af,'parentRecordId':_0x3cd5df}]:void 0x0,_0x3260eb={'unitId':_0x384e1c,'op':_0x22fc93,'trigger':_0x4dbad9?$r['id']:void 0x0,'hierarchyChanges':_0x4dbad9,'source':_0x4dbad9?_0x5f1346[_0xb94342(0x9f)]??'ui':void 0x0},_0x1c016c={..._0x3260eb,'source':_0x4dbad9?_0xb94342(0x15d):void 0x0},_0x294000={'unitId':_0x384e1c,'op':_0x3de3c3,'trigger':_0x4dbad9?$r['id']:void 0x0,'hierarchyChanges':_0x4dbad9==null?void 0x0:_0x4dbad9['map'](_0x194b1a=>({..._0x194b1a,'oldParentRecordId':_0x194b1a[_0xb94342(0x1ef)],'parentRecordId':_0x194b1a[_0xb94342(0xa8)]})),'source':_0x4dbad9?_0xb94342(0x2e9):void 0x0};return _0x7d5077[_0xb94342(0x107)](_0x34963f['id'],_0x3260eb)?(_0x5476a8[_0xb94342(0x137)]()||_0x5476a8[_0xb94342(0x23c)](_0x384e1c),_0x4c050c[_0xb94342(0xc9)]({'unitID':_0x384e1c,'undoMutations':[{'id':_0x34963f['id'],'params':_0x294000}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x1c016c}]}),!0x0):!0x1;}},ei={'id':_0xfaec6d(0x18a),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x3c9ef4,_0x3c4eda){const _0x48aa40=_0xfaec6d;if(!_0x3c4eda)return!0x1;let _0x7ea354=_0x3c9ef4[_0x48aa40(0x216)](_0x3a34dc),{unitId:_0x3ec8b2,tableId:_0x2303c5,fieldId:_0x406cd3}=_0x3c4eda,_0x458947=_0x7ea354[_0x48aa40(0x147)](_0x3ec8b2,_0x528a5b['UNIVER_BASE']);if(!_0x458947||!Z(_0x458947,_0x2303c5,{'fieldIds':[_0x406cd3]}))return!0x1;let _0x6a3982=_0x3c9ef4['get'](_0x2780d7),_0x51b6cc=_0x3c9ef4['get'](_0x5da6dc),_0xb93774=_0x458947[_0x48aa40(0xcd)](),_0x7ab6f1=_0x3c4eda[_0x48aa40(0x2b5)][_0x48aa40(0x2fc)](),_0x558dbe=new K()['updateField'](_0xb93774,_0x2303c5,_0x406cd3,{'description':_0x7ab6f1}),_0x39f01e=new _0x445a5d()[_0x48aa40(0x2d8)](_0x458947[_0x48aa40(0xcd)](),_0x558dbe),_0x1f4e03={'unitId':_0x3ec8b2,'op':_0x558dbe},_0x168269={'unitId':_0x3ec8b2,'op':_0x39f01e};return _0x6a3982[_0x48aa40(0x107)](_0x34963f['id'],_0x1f4e03)?(_0x7ea354['focusUnit'](_0x3ec8b2),_0x51b6cc[_0x48aa40(0xc9)]({'unitID':_0x3ec8b2,'undoMutations':[{'id':_0x34963f['id'],'params':_0x168269}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x1f4e03}]}),!0x0):!0x1;}},ti={'id':_0xfaec6d(0x21e),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x167f65,_0x2e3cf4)=>{const _0x5ce34a=_0xfaec6d;if(!_0x2e3cf4)return!0x1;let _0xebe6c7=_0x167f65['get'](_0x3a34dc),{unitId:_0xafde73,tableId:_0x122643,fieldId:_0x41dff6,patch:_0x1f4f07}=_0x2e3cf4,_0x2578d9=_0xebe6c7[_0x5ce34a(0x147)](_0xafde73,_0x528a5b[_0x5ce34a(0x257)]);if(!_0x2578d9||_0x41dff6===_0x434772||!Z(_0x2578d9,_0x122643,{'fieldIds':[_0x41dff6]}))return!0x1;let _0x40f197=_0x167f65[_0x5ce34a(0x216)](_0x2780d7),_0x2a3426=_0x167f65[_0x5ce34a(0x216)](_0x5da6dc),_0x4af4ab=_0x2578d9[_0x5ce34a(0xcd)]();if(!Gn(_0x2578d9,_0x122643,{..._0x4af4ab[_0x5ce34a(0x2fe)][_0x122643]['fields'][_0x41dff6],..._0x1f4f07}))return!0x1;let _0x5ebb18=new K()[_0x5ce34a(0x135)](_0x4af4ab,_0x122643,_0x41dff6,_0x1f4f07),_0xcb523e=new _0x445a5d()[_0x5ce34a(0x2d8)](_0x4af4ab,_0x5ebb18),_0xd0ce3c={'unitId':_0xafde73,'op':_0x5ebb18},_0x2e669d={'unitId':_0xafde73,'op':_0xcb523e};return _0x40f197[_0x5ce34a(0x107)](_0x34963f['id'],_0xd0ce3c)?(_0xebe6c7['focusUnit'](_0xafde73),_0x2a3426[_0x5ce34a(0xc9)]({'unitID':_0xafde73,'undoMutations':[{'id':_0x34963f['id'],'params':_0x2e669d}],'redoMutations':[{'id':_0x34963f['id'],'params':_0xd0ce3c}]}),!0x0):!0x1;}},ni={'id':_0xfaec6d(0x169),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x1da2ac,_0xa07c49)=>{const _0x4eed1c=_0xfaec6d;if(!_0xa07c49)return!0x1;let _0x5a35cc=_0x1da2ac['get'](_0x3a34dc),{unitId:_0x2767a9,tableId:_0x5c49ba,viewId:_0x247f7a,patch:_0x31b8c3}=_0xa07c49,_0x2f9d9c=_0x5a35cc[_0x4eed1c(0x147)](_0x2767a9,_0x528a5b[_0x4eed1c(0x257)]);if(!_0x2f9d9c||!Z(_0x2f9d9c,_0x5c49ba,{'viewIds':[_0x247f7a]}))return!0x1;let _0x191aa9=_0x1da2ac['get'](_0x2780d7),_0x193541=_0x1da2ac['get'](_0x5da6dc),_0x4b6870=_0x2f9d9c[_0x4eed1c(0xcd)](),_0x263add=new K()[_0x4eed1c(0x1b1)](_0x4b6870,_0x5c49ba,_0x247f7a,_0x31b8c3),_0x225684=new _0x445a5d()[_0x4eed1c(0x2d8)](_0x4b6870,_0x263add),_0x514620={'unitId':_0x2767a9,'op':_0x263add},_0x817475={'unitId':_0x2767a9,'op':_0x225684};return _0x191aa9[_0x4eed1c(0x107)](_0x34963f['id'],_0x514620)?(_0x5a35cc['focusUnit'](_0x2767a9),_0x193541[_0x4eed1c(0xc9)]({'unitID':_0x2767a9,'undoMutations':[{'id':_0x34963f['id'],'params':_0x817475}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x514620}]}),!0x0):!0x1;}},ri={'id':_0xfaec6d(0x27d),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x6d936e,_0x32776e)=>{const _0x43b42b=_0xfaec6d;if(!_0x32776e)return!0x1;let _0x1c9bb8=_0x6d936e[_0x43b42b(0x216)](_0x3a34dc),{unitId:_0x1e7ec5,tableId:_0x32d7c5,recordId:_0x2de9d5,orderKey:_0xc00017}=_0x32776e,_0x4ac01a=_0x1c9bb8[_0x43b42b(0x147)](_0x1e7ec5,_0x528a5b['UNIVER_BASE']);if(!_0x4ac01a||!Z(_0x4ac01a,_0x32d7c5,{'recordIds':[_0x2de9d5]}))return!0x1;let _0x2adb06=_0x6d936e['get'](_0x2780d7),_0xa3cbd9=_0x6d936e['get'](_0x5da6dc),_0x35f44d=_0x4ac01a['getSnapshot'](),_0x475a84=new K()[_0x43b42b(0x2f0)](_0x35f44d,_0x32d7c5,_0x2de9d5,_0xc00017),_0x1eefb7=new _0x445a5d()[_0x43b42b(0x2d8)](_0x35f44d,_0x475a84),_0x8086a0={'unitId':_0x1e7ec5,'op':_0x475a84},_0x52bd79={'unitId':_0x1e7ec5,'op':_0x1eefb7};return _0x2adb06[_0x43b42b(0x107)](_0x34963f['id'],_0x8086a0)?(_0x1c9bb8['focusUnit'](_0x1e7ec5),_0xa3cbd9[_0x43b42b(0xc9)]({'unitID':_0x1e7ec5,'undoMutations':[{'id':_0x34963f['id'],'params':_0x52bd79}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x8086a0}]}),!0x0):!0x1;}};let ii=function(_0x4fb413){const _0x3090fe=_0xfaec6d;return _0x4fb413[_0x3090fe(0x2fb)]=_0x3090fe(0x2cd),_0x4fb413[_0x3090fe(0x304)]=_0x3090fe(0xe7),_0x4fb413['Delete']='delete',_0x4fb413[_0x3090fe(0xdf)]=_0x3090fe(0x292),_0x4fb413;}({});const ai={'id':_0xfaec6d(0x1e2),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0xfb2c8d,_0x1ad84b)=>{const _0x1fb2ce=_0xfaec6d;var _0x4de5e4;if(!_0x1ad84b)return!0x1;let _0x1ec50e=_0xfb2c8d[_0x1fb2ce(0x216)](_0x3a34dc),_0x13050e=_0x1ec50e['getUnit'](_0x1ad84b[_0x1fb2ce(0x207)],_0x528a5b[_0x1fb2ce(0x257)]);if(!_0x13050e||!Z(_0x13050e,_0x1ad84b[_0x1fb2ce(0x2a8)],{'viewIds':[_0x1ad84b['viewId']]}))return!0x1;let _0xda0530=_0x13050e[_0x1fb2ce(0xcd)](),_0x3ac2f1=_0xda0530[_0x1fb2ce(0x2fe)][_0x1ad84b[_0x1fb2ce(0x2a8)]],_0x2b2e32=oi(((_0x4de5e4=_0x3ac2f1[_0x1fb2ce(0x25e)][_0x1ad84b[_0x1fb2ce(0x2bf)]][_0x1fb2ce(0x2c6)][_0x1fb2ce(0x1dd)])==null?void 0x0:_0x4de5e4['rules'])??[],_0x1ad84b);if(!_0x2b2e32)return!0x1;si(_0x3ac2f1,_0x2b2e32);let _0x49147f=new K()[_0x1fb2ce(0x1b1)](_0xda0530,_0x1ad84b[_0x1fb2ce(0x2a8)],_0x1ad84b['viewId'],{'conditionalColoring':_0x2b2e32[_0x1fb2ce(0x317)]?{'rules':_0x2b2e32}:null}),_0x3bca8c=new _0x445a5d()[_0x1fb2ce(0x2d8)](_0xda0530,_0x49147f),_0x3fc423={'unitId':_0x1ad84b['unitId'],'op':_0x49147f},_0x16a301={'unitId':_0x1ad84b[_0x1fb2ce(0x207)],'op':_0x3bca8c};return _0xfb2c8d[_0x1fb2ce(0x216)](_0x2780d7)['syncExecuteCommand'](_0x34963f['id'],_0x3fc423)?(_0x1ec50e['focusUnit'](_0x1ad84b[_0x1fb2ce(0x207)]),_0xfb2c8d[_0x1fb2ce(0x216)](_0x5da6dc)[_0x1fb2ce(0xc9)]({'unitID':_0x1ad84b['unitId'],'undoMutations':[{'id':_0x34963f['id'],'params':_0x16a301}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x3fc423}]}),!0x0):!0x1;}};function oi(_0x59d771,_0x5cf7e5){const _0x528099=_0xfaec6d;switch(_0x5cf7e5[_0x528099(0x211)]){case'set':return _0x167656[_0x528099(0x20a)](_0x5cf7e5[_0x528099(0x24a)]);case'add':return[..._0x167656[_0x528099(0x20a)](_0x59d771),_0x167656['deepClone'](_0x5cf7e5[_0x528099(0x118)])];case _0x528099(0x15f):{let _0x59df8b=_0x59d771['filter'](_0x4e3ea5=>_0x4e3ea5['id']!==_0x5cf7e5[_0x528099(0xad)]);return _0x59df8b[_0x528099(0x317)]===_0x59d771[_0x528099(0x317)]?null:_0x167656['deepClone'](_0x59df8b);}case _0x528099(0x292):return _0x59d771[_0x528099(0x317)]?[]:null;}}function si(_0x2e2920,_0x2841bf){const _0x3caaf3=_0xfaec6d;if(!Array[_0x3caaf3(0x183)](_0x2841bf))throw TypeError(_0x3caaf3(0x103));let _0x5e271a=new Set();for(let [_0x5ea4e9,_0x44a20c]of _0x2841bf[_0x3caaf3(0xc4)]())li(_0x2e2920,_0x44a20c,ci(_0x44a20c,_0x5ea4e9,_0x5e271a));}function ci(_0x3e134c,_0x437c2d,_0x1138d4){const _0x2422e3=_0xfaec6d;if(!_0x3e134c||typeof _0x3e134c!=_0x2422e3(0x148))throw TypeError(_0x2422e3(0xd6)+_0x437c2d+_0x2422e3(0x1ac));let _0x19aeb6=typeof _0x3e134c['id']==_0x2422e3(0xd0)&&_0x3e134c['id'][_0x2422e3(0x2fc)]()?'\x22'+_0x3e134c['id']+'\x22':'at\x20index\x20'+_0x437c2d;if(typeof _0x3e134c['id']!='string'||!_0x3e134c['id'][_0x2422e3(0x2fc)]())throw Error(_0x2422e3(0xf4)+_0x19aeb6+'\x20must\x20have\x20a\x20non-empty\x20id.');if(_0x1138d4[_0x2422e3(0x25a)](_0x3e134c['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x3e134c['id']+'\x22.');_0x1138d4[_0x2422e3(0xe7)](_0x3e134c['id']);let _0x11d680=typeof _0x3e134c[_0x2422e3(0x25b)]==_0x2422e3(0xd0)&&_0x3e134c[_0x2422e3(0x25b)]['trim']()?new _0x5b378c(_0x3e134c[_0x2422e3(0x25b)]):null;if(!(_0x11d680!=null&&_0x11d680['isValid']))throw Error(_0x2422e3(0xf4)+_0x19aeb6+_0x2422e3(0x1eb));return _0x19aeb6;}function li(_0x10ae6e,_0x8fb004,_0x2d9123){const _0x456aaf=_0xfaec6d;let _0x445b37=new Set(Object['values'](_0x361426)),_0x3492e9=new Set(Object['values'](_0xf0ba6f)),_0x1a1c89=new Set(Object['values'](_0x239227));if(!_0x445b37[_0x456aaf(0x25a)](_0x8fb004['target']))throw Error(_0x456aaf(0xf4)+_0x2d9123+_0x456aaf(0x2d4)+String(_0x8fb004[_0x456aaf(0x1c2)])+'\x22.');let _0x33fc3a=typeof _0x8fb004[_0x456aaf(0x2c3)]==_0x456aaf(0xd0)?_0x10ae6e[_0x456aaf(0x10e)][_0x8fb004[_0x456aaf(0x2c3)]]:void 0x0;if(!_0x33fc3a||_0x33fc3a[_0x456aaf(0x22b)]===!0x0||_0x33fc3a[_0x456aaf(0x211)]===_0x2657c4[_0x456aaf(0x2e2)])throw Error(_0x456aaf(0xf4)+_0x2d9123+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0x8fb004['fieldId'])+'\x22.');if(!_0x3492e9[_0x456aaf(0x25a)](_0x8fb004[_0x456aaf(0x121)]))throw Error(_0x456aaf(0xf4)+_0x2d9123+'\x20has\x20unsupported\x20operator\x20\x22'+String(_0x8fb004[_0x456aaf(0x121)])+'\x22.');if(_0x8fb004[_0x456aaf(0x254)]!==void 0x0&&!_0x1a1c89[_0x456aaf(0x25a)](_0x8fb004[_0x456aaf(0x254)]))throw Error(_0x456aaf(0xf4)+_0x2d9123+_0x456aaf(0x100)+String(_0x8fb004['dateMode'])+'\x22.');if(_0x8fb004[_0x456aaf(0x1c2)]===_0x361426[_0x456aaf(0xb7)])return;let _0x23342d=_0x1be76b(_0x33fc3a[_0x456aaf(0x211)]);if(!_0x23342d[_0x456aaf(0x15c)](_0x8fb004[_0x456aaf(0x121)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x2d9123+_0x456aaf(0x299)+_0x8fb004[_0x456aaf(0x121)]+_0x456aaf(0x2dc)+_0x33fc3a[_0x456aaf(0x211)]+_0x456aaf(0x108)+_0x23342d[_0x456aaf(0x21a)](',\x20')+'.');if(_0x8fb004['dateMode']!==void 0x0&&!_0x1fa0e7(_0x33fc3a[_0x456aaf(0x211)]))throw Error(_0x456aaf(0xf4)+_0x2d9123+_0x456aaf(0x226));}const ui={'id':_0xfaec6d(0x10a),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler':(_0x1d2b19,_0x5e1b38)=>{const _0x3fd0a9=_0xfaec6d;if(!_0x5e1b38)return!0x1;let _0x44019a=_0x1d2b19[_0x3fd0a9(0x216)](_0x3a34dc),{unitId:_0x57eef1,tableId:_0x19d9b3,viewId:_0x237656,patch:_0x6761f3}=_0x5e1b38,_0x3a189c=_0x44019a[_0x3fd0a9(0x147)](_0x57eef1,_0x528a5b[_0x3fd0a9(0x257)]);if(!_0x3a189c||!Z(_0x3a189c,_0x19d9b3,{'viewIds':[_0x237656]}))return!0x1;let _0x54be37=_0x1d2b19[_0x3fd0a9(0x216)](_0x2780d7),_0x364e62=_0x1d2b19[_0x3fd0a9(0x216)](_0x5da6dc),_0x4ee7c8=_0x3a189c[_0x3fd0a9(0xcd)](),_0x11e500=new K()[_0x3fd0a9(0x1b1)](_0x4ee7c8,_0x19d9b3,_0x237656,_0x6761f3),_0x189e9a=new _0x445a5d()[_0x3fd0a9(0x2d8)](_0x4ee7c8,_0x11e500),_0x3d5af5={'unitId':_0x57eef1,'op':_0x11e500},_0x516943={'unitId':_0x57eef1,'op':_0x189e9a};return _0x54be37['syncExecuteCommand'](_0x34963f['id'],_0x3d5af5)?(_0x44019a[_0x3fd0a9(0x23c)](_0x57eef1),_0x364e62[_0x3fd0a9(0xc9)]({'unitID':_0x57eef1,'undoMutations':[{'id':_0x34963f['id'],'params':_0x516943}],'redoMutations':[{'id':_0x34963f['id'],'params':_0x3d5af5}]}),!0x0):!0x1;}},di={'id':_0xfaec6d(0x1fc),'type':_0x3c38c7[_0xfaec6d(0x298)],'handler'(_0x2715bd,_0x2cc4e8){const _0x584530=_0xfaec6d;if(!_0x2cc4e8)return{'valid':!0x1,'reason':_0x584530(0x21d)};let _0x1079e4=_0x2715bd[_0x584530(0x216)](_0x3a34dc)['getUnit'](_0x2cc4e8[_0x584530(0x207)],_0x528a5b[_0x584530(0x257)]),_0x56d0e4=_0x1079e4==null?void 0x0:_0x1079e4[_0x584530(0xcd)](),_0x2badb1=_0x56d0e4==null?void 0x0:_0x56d0e4[_0x584530(0x2fe)][_0x2cc4e8['tableId']];return!_0x56d0e4||!_0x2badb1?{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20does\x20not\x20exist.'}:new En()[_0x584530(0x1fb)](_0x2cc4e8['formula'],_0x2badb1,{'snapshot':_0x56d0e4});}};let fi=class extends _0x4c6a05{constructor(_0x102bf6){const _0x55d2a2=_0xfaec6d;super(_0x102bf6,_0x55d2a2(0x1cd),_0x528a5b[_0x55d2a2(0x257)],[_0x456f09[_0x55d2a2(0x303)],_0x456f09['BaseField'],_0x456f09['BaseRecord'],_0x456f09[_0x55d2a2(0x2c8)],_0x456f09[_0x55d2a2(0x16d)]]);}};fi=_0x17409a([_0x1babfc(0x0,_0x272631)],fi);const pi={'id':'base.mutation.set-permission-rule','type':_0x3c38c7[_0xfaec6d(0x181)],'handler':(_0x238e36,_0x1accb3)=>!_0x1accb3||!_0x238e36[_0xfaec6d(0x216)](_0x3a34dc)[_0xfaec6d(0x147)](_0x1accb3['unitId'],_0x528a5b[_0xfaec6d(0x257)])?!0x1:_0x238e36[_0xfaec6d(0x216)](fi)['setRule'](_0x1accb3[_0xfaec6d(0x207)],_0x1accb3[_0xfaec6d(0x159)],_0x1accb3[_0xfaec6d(0x24e)],_0x1accb3['rule'])},mi={'id':_0xfaec6d(0x1d9),'type':_0x3c38c7[_0xfaec6d(0x181)],'handler':(_0x5d3002,_0x1d9e50)=>!_0x1d9e50||!_0x5d3002[_0xfaec6d(0x216)](_0x3a34dc)[_0xfaec6d(0x147)](_0x1d9e50['unitId'],_0x528a5b[_0xfaec6d(0x257)])?!0x1:_0x5d3002['get'](fi)[_0xfaec6d(0x1af)](_0x1d9e50[_0xfaec6d(0x207)],_0x1d9e50['rules'])};function hi(_0xcfe9ce){const _0x11a623=_0xfaec6d;let _0x3e19ba=_0xcfe9ce[_0x11a623(0x1f7)]??Date[_0x11a623(0x1f7)](),_0x579081=_0xcfe9ce[_0x11a623(0xaf)]??_0xcfe9ce['id']+_0x11a623(0x26a),_0x408dc4=_0xcfe9ce[_0x11a623(0x15b)]??_0xcfe9ce['id']+_0x11a623(0x17a),_0x5ecc3d=_0xcfe9ce[_0x11a623(0x256)]??0x0,_0x4ba2ad=_0x1f764f(),_0xdc7d6a={'id':_0x579081,'name':_0xcfe9ce[_0x11a623(0xa2)]??_0x11a623(0x19b),'type':_0x2657c4['Text'],'config':{'placeholder':_0x11a623(0x234)}},_0x5e2839={},_0xe29d30=[],_0x2339a3={},_0x51081d={},_0xa232a={};for(let _0x2e6965=0x0;_0x2e6965<_0x5ecc3d;_0x2e6965++){let _0x7d59be=_0xcfe9ce['id']+'-record-'+(_0x2e6965+0x1);_0x5e2839[_0x7d59be]={'id':_0x7d59be,'values':{[_0x434772]:_0x7d59be,..._0xcfe9ce['recordNamePrefix']?{[_0x579081]:_0xcfe9ce[_0x11a623(0x1b3)]+'\x20'+(_0x2e6965+0x1)}:{}},'orderKey':String(_0x2e6965+0x1)[_0x11a623(0x269)](0x4,'0'),'createdAt':_0x3e19ba,'updatedAt':_0x3e19ba},_0xe29d30['push'](_0x7d59be),_0x2339a3[_0x7d59be]=_0x2e6965,_0x51081d[_0x2e6965]=_0x7d59be,_0xa232a[_0x2e6965]={0x0:{'v':_0x7d59be,'t':_0x1f17d0[_0x11a623(0xfe)]}},_0xcfe9ce['recordNamePrefix']&&(_0xa232a[_0x2e6965][0x1]={'v':_0xcfe9ce[_0x11a623(0x1b3)]+'\x20'+(_0x2e6965+0x1),'t':_0x1f17d0[_0x11a623(0xfe)]});}let _0xc36fa0={'id':_0x408dc4,'tableId':_0xcfe9ce['id'],'name':_0x11a623(0x27b),'type':_0x25059f[_0x11a623(0x27b)],'fieldOrder':[_0x434772,_0x579081],'fieldSettings':{[_0x434772]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0xcfe9ce['id'],'name':_0xcfe9ce['name'],'primaryFieldId':_0x579081,'fieldOrder':[_0x434772,_0x579081],'fields':{[_0x434772]:_0x4ba2ad,[_0x579081]:_0xdc7d6a},'records':_0x5e2839,'recordOrder':_0xe29d30,'rowIndex':_0x2339a3,'rowId':_0x51081d,'colIndex':{[_0x434772]:0x0,[_0x579081]:0x1},'colId':{0x0:_0x434772,0x1:_0x579081},'cellData':_0xa232a,'views':{[_0x408dc4]:_0xc36fa0},'viewOrder':[_0x408dc4]};}const gi=_0xfaec6d(0x286);function _i(_0x47d111){const _0x477640=_0xfaec6d;let _0x4304cc=hi({'id':_0x47d111['hostAnchorId'],'name':_0x47d111[_0x477640(0x267)]??_0x47d111[_0x477640(0x247)],'recordCount':0x0});return{..._0x4304cc,'resources':{..._0x4304cc['resources']??{},[gi]:bi(_0x47d111)}};}function vi(_0x1ceccb){const _0x51efe3=_0xfaec6d;return{'id':_0x34963f['id'],'params':{'unitId':_0x1ceccb[_0x51efe3(0x207)],'op':_0x1cd282['type'][_0x51efe3(0x28d)](_0x1cd282['insertOp']([_0x51efe3(0x2fe),_0x1ceccb[_0x51efe3(0x18d)]['id']],_0x1ceccb['table']),_0x1cd282[_0x51efe3(0xc1)](['tableOrder',_0x1ceccb[_0x51efe3(0x235)]??_0x1ceccb[_0x51efe3(0x195)]['tableOrder'][_0x51efe3(0x317)]],_0x1ceccb['table']['id'])),'trigger':_0x51efe3(0x142)}};}function yi(_0x3ee458){const _0x2306ec=_0xfaec6d;let _0x50f25b=_0x3ee458[_0x2306ec(0x195)][_0x2306ec(0x1c1)][_0x2306ec(0x12a)](_0x3ee458[_0x2306ec(0x2a8)]);if(!(!_0x3ee458[_0x2306ec(0x195)][_0x2306ec(0x2fe)][_0x3ee458['tableId']]||_0x50f25b<0x0))return{'id':_0x34963f['id'],'params':{'unitId':_0x3ee458[_0x2306ec(0x207)],'op':_0x1cd282[_0x2306ec(0x211)]['compose'](_0x1cd282[_0x2306ec(0x268)]([_0x2306ec(0x2fe),_0x3ee458['tableId']],_0x3ee458[_0x2306ec(0x195)][_0x2306ec(0x2fe)][_0x3ee458['tableId']]),_0x1cd282[_0x2306ec(0x268)]([_0x2306ec(0x1c1),_0x50f25b],_0x3ee458[_0x2306ec(0x2a8)])),'trigger':_0x2306ec(0x142)}};}function bi(_0x6d0ac2){const _0x5f54cb=_0xfaec6d;return{'version':0x1,'embedId':_0x6d0ac2[_0x5f54cb(0x247)],'hostAnchorId':_0x6d0ac2[_0x5f54cb(0x182)],'childUnitId':_0x6d0ac2[_0x5f54cb(0x284)],'childType':_0x6d0ac2['childType']};}function xi(_0x41452b){const _0x179fc2=_0xfaec6d;let _0x1b8138=Math[_0x179fc2(0x236)](0x0,Number(_0x41452b[_0x179fc2(0xb3)]??0x0)),_0x4467f0=_0x41452b[_0x179fc2(0x2ba)]===!0x1?'0':'#,##0',_0x455c5a=_0x1b8138?'.'+'0'[_0x179fc2(0xc0)](_0x1b8138):'',_0x15c71c=Ci(_0x41452b[_0x179fc2(0x191)]);return''+(_0x41452b['currencySymbol']?wi(_0x41452b['currencySymbol']):'')+_0x4467f0+_0x455c5a+_0x15c71c;}function Si(_0x176e4e,_0x14fd96){const _0x17c7f=_0xfaec6d;let _0x5a5428=xi(_0x14fd96),_0x25d968=_0x41572e[_0x17c7f(0xec)](_0x5a5428,_0x176e4e,{'throws':!0x1});return Ti(String(_0x25d968),_0x14fd96[_0x17c7f(0x262)],_0x14fd96[_0x17c7f(0x2f1)]);}function Ci(_0x501bc6){const _0x3e0221=_0xfaec6d;return _0x501bc6==='K'?_0x3e0221(0x2d5):_0x501bc6==='M'?',,\x22M\x22':_0x501bc6==='B'?',,,\x22B\x22':'';}function wi(_0x587110){const _0xa3e1a6=_0xfaec6d;return/^[A-Z]+$/i[_0xa3e1a6(0xd2)](_0x587110)?'\x22'+_0x587110+'\x22':_0x587110;}function Ti(_0x9b8d7f,_0x3d6b77,_0x343f1c){const _0x460dee=_0xfaec6d;let _0x4d7f58=_0x3d6b77==='local'?Ei(_0x343f1c):_0x3d6b77;return _0x4d7f58===_0x460dee(0x2f2)?_0x9b8d7f[_0x460dee(0x1ea)](/,/g,'\x00')[_0x460dee(0x1ea)](/\./g,',')[_0x460dee(0x1ea)](/\0/g,'.'):_0x4d7f58==='spaceComma'?_0x9b8d7f[_0x460dee(0x1ea)](/,/g,'\x20')[_0x460dee(0x1ea)](/\./g,','):_0x4d7f58===_0x460dee(0x208)?_0x9b8d7f[_0x460dee(0x1ea)](/,/g,'\x20'):_0x9b8d7f;}function Ei(_0x2c3ac8){const _0x38c233=_0xfaec6d;var _0x25c834,_0xb8b912;let _0xab14cc=_0x2c3ac8||new Intl[(_0x38c233(0x1bb))]()['resolvedOptions']()[_0x38c233(0x2f1)],_0x460386;try{_0x460386=new Intl['NumberFormat'](_0xab14cc,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x38c233(0x310)](0xf4240);}catch{return _0x38c233(0x29b);}let _0x70f147=(_0x25c834=_0x460386['find'](_0x40efe0=>_0x40efe0[_0x38c233(0x211)]===_0x38c233(0x26f)))==null?void 0x0:_0x25c834['value'],_0x279d4e=(_0xb8b912=_0x460386['find'](_0xcf2a60=>_0xcf2a60['type']==='decimal'))==null?void 0x0:_0xb8b912[_0x38c233(0xca)],_0x5893db=_0x70f147==='\u00a0'||_0x70f147==='\u202f'?'\x20':_0x70f147;return _0x5893db==='.'&&_0x279d4e===','?'periodComma':_0x5893db==='\x20'&&_0x279d4e===','?_0x38c233(0xfa):_0x5893db==='\x20'&&_0x279d4e==='.'?'spacePeriod':_0x38c233(0x29b);}function Di(_0xa328d5,_0x4c1aae){const _0x174be0=_0xfaec6d;let _0x4bf6f4=_0x4c1aae&&typeof _0x4c1aae==_0x174be0(0x148)&&!Array[_0x174be0(0x183)](_0x4c1aae)?_0x4c1aae:{},_0x3fc958=Oi(_0x4bf6f4[_0x174be0(0xb3)],0x0,0x2,0x0),_0x2bc710=_0xa328d5[_0x174be0(0x110)](_0x3fc958);return _0x4bf6f4[_0x174be0(0xec)]===_0x174be0(0x1d5)?_0x2bc710:_0x2bc710+'%';}function Oi(_0x18d405,_0x301517,_0x4ace26,_0xa9be){const _0x486467=_0xfaec6d;if(_0x18d405==null||_0x18d405==='')return _0xa9be;let _0x5f35fb=typeof _0x18d405=='number'?_0x18d405:Number(_0x18d405);return Number['isFinite'](_0x5f35fb)?Math[_0x486467(0x236)](_0x301517,Math[_0x486467(0x1c6)](_0x4ace26,Math[_0x486467(0x2a9)](_0x5f35fb))):_0xa9be;}const ki=[_0xfaec6d(0x1ae),_0xfaec6d(0x264),_0xfaec6d(0x28a),_0xfaec6d(0x219),_0xfaec6d(0xeb),_0xfaec6d(0xdd),_0xfaec6d(0x1c6),'max'],Ai=[_0xfaec6d(0x1ae),_0xfaec6d(0x264),_0xfaec6d(0x28a),'unique'],ji=['sum','average','min','max'],Mi=[_0xfaec6d(0x1c6),'max'],Ni=new Set([_0x2657c4['Number'],_0x2657c4[_0xfaec6d(0x203)],_0x2657c4[_0xfaec6d(0x2e5)],_0x2657c4['Rating']]),Pi=new Set([_0x2657c4[_0xfaec6d(0x157)],_0x2657c4[_0xfaec6d(0x11a)],_0x2657c4[_0xfaec6d(0x194)]]),Fi=_0xfaec6d(0xf5);function Ii(_0x1f2840){const _0x5c29aa=_0xfaec6d;return typeof _0x1f2840==_0x5c29aa(0xd0)&&ki[_0x5c29aa(0x15c)](_0x1f2840);}function Li(_0x4085ea){const _0x18f1d0=_0xfaec6d;return!_0x4085ea||typeof _0x4085ea!='object'?{}:Object['fromEntries'](Object['entries'](_0x4085ea)[_0x18f1d0(0x249)](_0x1573bf=>Ii(_0x1573bf[0x1])));}function Ri(_0x371455){const _0x14dc52=_0xfaec6d;return Ni[_0x14dc52(0x25a)](_0x371455[_0x14dc52(0x211)])?[...Ai,...ji]:_0x371455[_0x14dc52(0x211)]===_0x2657c4[_0x14dc52(0x293)]?[...Ai,...$i(_0x371455)===_0x14dc52(0xa1)?Mi:ji]:Ai;}function zi(_0x5b876b,_0x20ddb7){return Ri(_0x5b876b)['includes'](_0x20ddb7);}function Bi(_0x289ecc,_0x1f7fd9,_0x1c56c9){const _0x1536d3=_0xfaec6d;if(!zi(_0x289ecc,_0x1c56c9))return null;let _0x7b1de8=_0x1f7fd9[_0x1536d3(0x249)](_0x213195=>!Hi(_0x289ecc,_0x213195));switch(_0x1c56c9){case'count':return _0x1f7fd9[_0x1536d3(0x317)];case _0x1536d3(0x264):return _0x7b1de8[_0x1536d3(0x317)];case _0x1536d3(0x28a):return _0x1f7fd9['length']-_0x7b1de8[_0x1536d3(0x317)];case _0x1536d3(0x219):return new Set(_0x7b1de8[_0x1536d3(0xdc)](_0x95827c=>Ki(_0x289ecc,_0x95827c)))[_0x1536d3(0x1c7)];case _0x1536d3(0xeb):{let _0x5da283=Ui(_0x289ecc,_0x7b1de8);return _0x5da283[_0x1536d3(0x317)]?Gi(_0x5da283):null;}case _0x1536d3(0xdd):{let _0x3c1fe8=Ui(_0x289ecc,_0x7b1de8);return _0x3c1fe8[_0x1536d3(0x317)]?Gi(_0x3c1fe8)/_0x3c1fe8[_0x1536d3(0x317)]:null;}case'min':{let _0x5b9396=Ui(_0x289ecc,_0x7b1de8);return _0x5b9396[_0x1536d3(0x317)]?Math[_0x1536d3(0x1c6)](..._0x5b9396):null;}case'max':{let _0x417677=Ui(_0x289ecc,_0x7b1de8);return _0x417677['length']?Math[_0x1536d3(0x236)](..._0x417677):null;}}}function Vi(_0x23a3c1,_0x28f3a5,_0x57d7d4){const _0x524b1d=_0xfaec6d;if(_0x57d7d4==null||!Number[_0x524b1d(0xe4)](_0x57d7d4))return'-';if(Ai['includes'](_0x28f3a5))return String(_0x57d7d4);switch(_0x23a3c1['type']){case _0x2657c4[_0x524b1d(0x1a1)]:return Si(_0x57d7d4,Xi(_0x23a3c1));case _0x2657c4[_0x524b1d(0x203)]:return Si(_0x57d7d4,Zi(_0x23a3c1));case _0x2657c4[_0x524b1d(0x2e5)]:return Di(_0x57d7d4,_0x23a3c1[_0x524b1d(0x2c6)]);case _0x2657c4[_0x524b1d(0x293)]:return Qi(_0x57d7d4,_0x23a3c1);default:return ta(_0x57d7d4);}}function _0x3b21(){const _0xceea2f=['saveMany','createBase','beforeCommandExecuted','executeCommand','-view-grid','parentByRecordId','Unsupported\x20Base\x20permission\x20action:\x20','create-view','fieldName','readonly','gantt','MUTATION','hostAnchorId','isArray','[BaseCommandService]:\x20invalid\x20field\x20definition.','changed','36YSiltp','attachments','apostrophe','data','base.command.update-base-field-description','RecordLink','Yes','table','targetTableId','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','setViewFieldVisible','abbreviation','clearTablePermission','_setFormulaFieldCells','Group','snapshot','base.command.create-base-record','canCreateField','score','_createRecordWithDefaults','boolean','Name','matchAll','_clearUnit','formulaName','_getOrderedRecords','createTable','Number','params','createUnit','forEach','_config','registerCommand','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','_apply','Numbering','[BaseViewRegistryService]:\x20view\x20type\x20\x22','\x20must\x20be\x20an\x20object.','_deleteRecordsBaseOp','count','setRules','fieldOrder','updateViewConfig','createSetRecordValuesOp','recordNamePrefix','dispose','renameFormulaUnitReferences','getSuperTableRegistrations','BaseField','register','base.mutation.','required','NumberFormat','groupFieldId','packageName','replaceOp','base.command.set-base-view-group','result','tableOrder','target','[BaseCommandService]:\x20cannot\x20manage\x20view.','clearRecordPermission','_clearObjectEdit','min','size','finally','setRangeValues','_getAllTableIds','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','tableName','BASE_OBJECT_PERMISSION_PLUGIN','_activeDirtyManagerService','getUnitId','viewIndexes','endDateFieldId','getStructuredDependencies','getCurrentUser','#BFDBFE','number','[BaseCommandService]:\x20cannot\x20create\x20table.','Doing','[BaseCommandService]:\x20cannot\x20delete\x20table.','base.mutation.set-permission-rules','_injector','base.command.set-base-kanban-group-field','setRecordValues','conditionalColoring','recordId','subType','resolve','base.resource.service','base.command.update-base-view-conditional-color-rules','start','_tableBaseIds','_rememberTable','getUnitType','_createRecordOrderOp','invalid','query','replace','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','_getAllBaseDependencyTreeCacheMap','INIT','_canEdit','parentRecordId','createView','_createSystemFieldValuePatches','3463885SWvlOH','deleteRecords','compress','base.command.set-base-view-field-order','ascend','now','getPermissionPoint','none','optionSource','validateFormula','base.command.validate-formula','\x22\x20is\x20not\x20registered.','registerView','selfParent','base.command.delete-base-view','table/','base.command.set-base-view-field-visible','Currency','createCreateRecordOp','_syncBaseUnit','1928624SgvHSz','unitId','spacePeriod','deletePermissionPoint','deepClone','getAll','_formulaCalculationSessionService','CreatedBy','endsWith','rowId','renameTable','type','createdAt','clearFieldPermission','base.command.set-base-name','_setObjectEdit','get','kind','limit','unique','join','validate','Cycle','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','base.command.update-base-field','_instanceService','duplicateRecord','base.command.create-base-view','currencySymbol','True','registerRuleModel','en-US','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','setViewFieldOrder','SelfParent','_getTable','_initialize','system','_basePermissions','_enqueueFormulaSync','7442740NOuymD','_registerUnitPermissionPoints','base.command.create-base-child-record','_initCommands','Use\x2031\x20characters\x20or\x20fewer.','[BaseCommandService]:\x20cannot\x20delete\x20field.','bases.fieldConfig.textPlaceholder','index','max','remove','duplicate','attachment','unsubscribe','Date','focusUnit','clearViewPermission','beforeViewId','setBasePermission','[BaseCommandService]:\x20cannot\x20create\x20record.','normalize','_formulaService','getBase','_factory','base.command.set-base-view-field-width','_normalizeCellValue','embedId','field/','filter','rules','onCommandExecuted','pattern','Export','objectId','setViewFilter','_getSystemFieldValue','_syncSuperTables','url','_canEditTable','dateMode','flat','recordCount','UNIVER_BASE','applyOp','invalidField','has','color','createRecord','multiple','views','trigger','addPermissionPoint','updatedBy','separatorStyle','numfmt','filled','179528HiPRaY','onStarting','name','removeOp','padStart','-field-name','_getCurrentUserId','A\x20table\x20with\x20this\x20name\x20already\x20exists.','_viewPermissions','registerCtorForType','group','Edit','_configService','exec','true','view/','done','hidden','CreatedAt','BOOLEAN','isInteger','unitData','Grid','patches','base.command.update-base-record-order','push','record','_fieldPermissions','WriteCursor','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','hasOwnProperty','childUnitId','setViewFieldWidth','UNIVER_EMBED_BASES_TABLE','BaseRecord','fromCollab','_applyFormulaResult','empty','Table','Unsupported\x20Base\x20permission\x20object:\x20','compose','deleteRecord','_dataSyncPrimaryController','Base','colIndex','clear','Formula','getTypeOfUnitAdded$','_initDependencies','_check','canDeleteTable','COMMAND','\x20cannot\x20use\x20operator\x20\x22','maxDepth','commaPeriod','_getStructureDirtyTableIds','base.command.delete-base-field','base.command.create-base-table','localeCompare','Invalid\x20object\x20permission\x20batch.','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','view','getAllBases','cycle','__tempBatchingUndoRedo','diffValue','Copy','tableId','round','text','toLowerCase','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','startDateFieldId','\x22\x20is\x20referenced\x20by\x20','_getJson1DirtyData','moveField','_onCommandExecuted','updateCell','Todo','_commandService','description','deleteView','editable','canCreateTable','UpdatedAt','useThousands','663593lmddFs','\x20permission\x20denied.','base.command.batch-create-base-records','_removeSuperTables','viewId','Ids','fieldSettings','createUpdateCellOp','fieldId','duplicateField','defaultValue','config','setSnapshot','BaseView','base-snapshot-v1','fieldIds','_groupCellInvalidations','call','set','undefined','lastIndex','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_toDirtyRangePatch','Choose\x20another\x20name.','options','\x20has\x20unsupported\x20target\x20\x22',',\x22K\x22','setViewGroup','keys','invertOp','\x22\x20does\x20not\x20exist.','split','fieldIndex','\x22\x20with\x20field\x20type\x20\x22','doing','getDependencies','getAllPermissionPoint','deleteTable','[BaseCommandService]:\x20cannot\x20edit\x20field.','RecordId','owner','userID','Progress','some','base.command.service','bases-exchange-client.operation.export-base','undo','_createNumberingAllocators','strategies','this-row','_tablePermissions','base.command.duplicate-base-record','changes','updateRecordOrder','locale','periodComma','SingleSelect','322716uEneqv','afterViewId','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','createBatchCreateRecordsOp','sort','BaseCommand.createBatchCreateRecordsOp','reason','Set','trim','Start\x20date','tables','getAffectedRanges','save','titleFieldId','_permissionService','BaseTable','Add','_setAttachmentResources','Rating','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','Parent','from','thread-comment.mutation.','createRegExpFromSafeFragment','view-','syncUnit','22nBGZVi','cellData','formatToParts','createdBy','unshift','setTablePermission','write','formula','_fieldRegistry','length','attachmentSets','deleteField','source','viewOrder','date','primaryFieldName','values','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','lastIndexOf','_scheduledSuperTableSyncs','canEditCell','oldParentRecordId','base.command.ensure-base-temporal-view-date-fields','[BaseCommandService]:\x20cannot\x20edit\x20table.','todo','updatedAt','ruleId','base.command.set-base-view-sort','primaryFieldId','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','thumbnail','manageView','decimalPlaces','calendar','NUMBER','parentFieldName','COLUMN','base.command.update-base-cell','error','createRecords','conditions','_scheduleSuperTableSync','valid','beforeFieldId','version','repeat','insertOp','_runtimeContext','base.command.move-base-hierarchy-record','entries','canEditTable','record/','base.command.set-permissions','toString','pushUndoRedo','value','_baseSyncDisposables','base.command.move-base-field','getSnapshot','flatMap','setBaseName','string','_withModifiedSystemValues','test','splice','createField','Comment','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','setViewSort','end','Checkbox','changeFieldType','includeRecords','map','average','createCreateFieldOp','Clear','clearBasePermission','catch','every','_plugins','isFinite','startsWith','Failed\x20to\x20create\x20update\x20cell\x20operation:','add','_recordPermissions','stringify','setConfig','sum','format','base.command.set-base-view-filter','2568832ptCabo','general','recordPatch','BASE','false','setPoint','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','General','policy','abs','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).','Link','spaceComma','disposeWithMe','Checked','orderKey','STRING','base.command.rename-base-table','\x20has\x20unsupported\x20date\x20mode\x20\x22','Table\x20name\x20is\x20required.','subscribe','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','col','descendPath','createViewId','syncExecuteCommand','\x22.\x20Allowed\x20operators:\x20','moveView','base.command.update-base-view-config','canEditField','yyyy/mm/dd','base.mutation.apply-base-json1','fields','28cGWvum','toFixed','getTypeOfUnitDisposed$','_formulaCalculationTriggerService','_setViewFieldSetting','Attachment','[BaseFormula]:\x20table\x20\x22','_applier','rowIndex','rule','prototype','Person','dashboard/','base-range-values-v1','_replaceOptional','records','searchTexts','Status','operator','displayText','canDeleteField','_createNumberingAllocator','members','cell','kanban','ena','renameView','indexOf','recordOrder','relationRole','_univerInstanceService','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','raw','column','fromEntries','[BaseCommandService]:\x20cannot\x20create\x20field.','thread-comment.command.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','updateField','_isNonEmptyCellValue','getFocusedUnit','resources','status','_registeredSuperTableNames','canEditRecord','base.command.delete-base-table','canDeleteRecord','slice','colId','base.command.set-base-table-hierarchy-field','$1\x20','embed-ui','_assertFieldDefinition','_createNumberingFieldValuePatches','field','_deleteAttachmentResources','getUnit','object','_executeSuperTableMutationWhileActive','[BaseCommandService]:\x20record-id\x20is\x20reserved.','missingRecord','action','getAllUnitsForType','Base\x20','6fOYDbN','_resolveBaseId','createSuperTableReference','_initRegistries','edit','createDeleteRecordsUndoOp','title','editCell','MultiSelect','find','objectType','UpdatedBy','gridViewId','includes','redo','_materializeFormulaTableNames','delete','emitPermissionDenied','all','Done','base.view-registry.service','regenerateViewIds','h24','updatePermissionPoint','markResultApplied','[BaseCommandService]:\x20cannot\x20edit\x20record.','base.command.update-base-kanban-config','setFieldPermission','_formulaSyncQueue','_disposed','BaseDashboard','canManageView','fld-','_initDataSync','_applyingFormulaResults','row','canCreateRecord','afterFieldId','codePointAt'];_0x3b21=function(){return _0xceea2f;};return _0x3b21();}function Hi(_0x5ba601,_0x54e3dd){const _0x18ef74=_0xfaec6d;if(_0x54e3dd==null)return!0x0;if(typeof _0x54e3dd==_0x18ef74(0xd0))return _0x54e3dd['trim']()==='';if(Array['isArray'](_0x54e3dd))return _0x5ba601['type']===_0x2657c4[_0x18ef74(0x114)]?!_0x54e3dd[_0x18ef74(0x2e6)](Yi):_0x54e3dd[_0x18ef74(0x317)]===0x0;if(_0x5ba601[_0x18ef74(0x211)]===_0x2657c4[_0x18ef74(0xf9)]&&typeof _0x54e3dd==_0x18ef74(0x148)){let _0x57188e=_0x54e3dd;return[_0x57188e['text'],_0x57188e['url']][_0x18ef74(0xe2)](_0x5d8c84=>_0x5d8c84==null||String(_0x5d8c84)[_0x18ef74(0x2fc)]()==='');}return!0x1;}function Ui(_0x5d1acd,_0x55bfba){let _0x124d57=[];for(let _0x3fe2ca of _0x55bfba){let _0x2c30de=Wi(_0x5d1acd,_0x3fe2ca);_0x2c30de!=null&&_0x124d57['push'](_0x2c30de);}return _0x124d57;}function Wi(_0x38c0d9,_0x1efb6f){const _0x26fc8f=_0xfaec6d;if(typeof _0x1efb6f==_0x26fc8f(0x1d5))return Number['isFinite'](_0x1efb6f)?_0x1efb6f:null;if(_0x38c0d9['type']!==_0x2657c4[_0x26fc8f(0x293)]&&typeof _0x1efb6f=='string'&&_0x1efb6f[_0x26fc8f(0x2fc)]()!==''){let _0x57c6fa=Number(_0x1efb6f);return Number[_0x26fc8f(0xe4)](_0x57c6fa)?_0x57c6fa:null;}return null;}function Gi(_0x5f96e8){const _0x1ec6ec=_0xfaec6d;let _0x2c7552=0x0,_0x527d9c=0x0;for(let _0x14f65a of _0x5f96e8){let _0x54674a=_0x2c7552+_0x14f65a;_0x527d9c+=Math[_0x1ec6ec(0xf7)](_0x2c7552)>=Math[_0x1ec6ec(0xf7)](_0x14f65a)?_0x2c7552-_0x54674a+_0x14f65a:_0x14f65a-_0x54674a+_0x2c7552,_0x2c7552=_0x54674a;}return _0x2c7552+_0x527d9c;}function Ki(_0x587f7f,_0x2d89bb){const _0x20d3af=_0xfaec6d;return Pi['has'](_0x587f7f[_0x20d3af(0x211)])&&Array['isArray'](_0x2d89bb)?Ji([...new Set(_0x2d89bb['map'](_0x4e75b5=>Ji(qi(_0x4e75b5))))][_0x20d3af(0x2f8)]()):Ji(qi(_0x2d89bb));}function qi(_0x588e1d){const _0x5b9410=_0xfaec6d;return Array[_0x5b9410(0x183)](_0x588e1d)?_0x588e1d[_0x5b9410(0xdc)](qi):_0x588e1d&&typeof _0x588e1d==_0x5b9410(0x148)?Object[_0x5b9410(0x131)](Object[_0x5b9410(0xc4)](_0x588e1d)[_0x5b9410(0x2f8)](([_0xb877ef],[_0xa63e19])=>_0xb877ef['localeCompare'](_0xa63e19))[_0x5b9410(0xdc)](([_0x17e990,_0x1ab97c])=>[_0x17e990,qi(_0x1ab97c)])):_0x588e1d;}function Ji(_0x50cd44){const _0x1e8b0c=_0xfaec6d;return JSON[_0x1e8b0c(0xe9)](_0x50cd44)??_0x1e8b0c(0x2ce);}function Yi(_0x4465ae){const _0xfe79d=_0xfaec6d;if(typeof _0x4465ae==_0xfe79d(0xd0))return _0x4465ae[_0xfe79d(0x2fc)]()!=='';if(!_0x4465ae||typeof _0x4465ae!=_0xfe79d(0x148))return!0x1;let _0x55e3d0=_0x4465ae;return[_0x55e3d0['id'],_0x55e3d0['name'],_0x55e3d0[_0xfe79d(0x9f)],_0x55e3d0[_0xfe79d(0x252)],_0x55e3d0[_0xfe79d(0xb1)]][_0xfe79d(0x2e6)](_0xebae85=>_0xebae85!=null&&String(_0xebae85)[_0xfe79d(0x2fc)]()!=='');}function Xi(_0x481bfc){const _0x936605=_0xfaec6d;let _0x24137b=na(_0x481bfc[_0x936605(0x2c6)]);return{'decimalPlaces':ia(_0x24137b['decimalPlaces'],0x0,0x14,0x2),'separatorStyle':typeof _0x24137b['separatorStyle']=='string'?_0x24137b[_0x936605(0x262)]:'local','locale':typeof _0x24137b[_0x936605(0x2f1)]==_0x936605(0xd0)?_0x24137b['locale']:void 0x0,'useThousands':_0x24137b[_0x936605(0x2ba)]!==!0x1,'abbreviation':typeof _0x24137b[_0x936605(0x191)]==_0x936605(0xd0)?_0x24137b[_0x936605(0x191)]:'none'};}function Zi(_0x58af34){const _0xea062b=_0xfaec6d;let _0x50d970=na(_0x58af34[_0xea062b(0x2c6)]);return{...Xi(_0x58af34),'currencySymbol':String(_0x50d970[_0xea062b(0x222)]??'$')};}function Qi(_0xdcef30,_0x3a57d3){const _0x5a937d=_0xfaec6d;let _0xd1694b=ea(_0x3a57d3);if(_0xd1694b===Fi)return ta(_0xdcef30);try{return String(_0x41572e[_0x5a937d(0xec)](_0xd1694b,_0xdcef30,{'throws':!0x1}));}catch{return ta(_0xdcef30);}}function $i(_0x3422eb){const _0x1ac095=_0xfaec6d;let _0x5dfc87=na(na(_0x3422eb[_0x1ac095(0x2c6)])[_0x1ac095(0x263)]);return typeof _0x5dfc87['type']==_0x1ac095(0xd0)?_0x5dfc87[_0x1ac095(0x211)]:_0x1ac095(0xef);}function ea(_0x45c745){const _0x5953ed=_0xfaec6d;let _0x387e33=na(na(_0x45c745[_0x5953ed(0x2c6)])[_0x5953ed(0x263)]);return String(_0x387e33[_0x5953ed(0x24c)]??Fi)[_0x5953ed(0x2fc)]()||Fi;}function ta(_0x1ad9aa){const _0x64c5f2=_0xfaec6d;return String(Number['isInteger'](_0x1ad9aa)?_0x1ad9aa:Math[_0x64c5f2(0x2a9)]((_0x1ad9aa+0x2**-0x34)*0x64)/0x64);}function na(_0x410a20){const _0x2f8ed4=_0xfaec6d;return _0x410a20&&typeof _0x410a20==_0x2f8ed4(0x148)&&!Array[_0x2f8ed4(0x183)](_0x410a20)?_0x410a20:{};}function ra(_0x4ee261){const _0x12d7fb=_0xfaec6d;if(_0x4ee261==null||_0x4ee261==='')return null;let _0x30e560=typeof _0x4ee261==_0x12d7fb(0x1d5)?_0x4ee261:Number(_0x4ee261);return Number[_0x12d7fb(0xe4)](_0x30e560)?_0x30e560:null;}function ia(_0x28028b,_0x51bfd6,_0x2e0084,_0x105317){const _0x1ed509=_0xfaec6d;let _0x172dcc=ra(_0x28028b);return _0x172dcc==null?_0x105317:Math[_0x1ed509(0x236)](_0x51bfd6,Math[_0x1ed509(0x1c6)](_0x2e0084,Math['round'](_0x172dcc)));}function aa(_0x3dd2f5,_0x145738){const _0x10fd1c=_0xfaec6d;let _0x5a4314=_0x167656['deepClone'](_0x3dd2f5),_0x17e57a=_0x145738[_0x10fd1c(0xdb)]===!0x0,_0x423350=new Map(),_0x919eee=_0x145738[_0x10fd1c(0x106)]??(()=>_0x10fd1c(0x30c)+_0x2c42b0(0x8)),_0x38838a=_0x5a4314['viewOrder'];return _0x145738[_0x10fd1c(0x164)]&&(_0x38838a=_0x5a4314[_0x10fd1c(0xa0)][_0x10fd1c(0xdc)](_0x4d4752=>{const _0xe6449c=_0x10fd1c;let _0x2e379b=_0x919eee();return _0x423350[_0xe6449c(0x2cd)](_0x4d4752,_0x2e379b),_0x2e379b;})),{..._0x5a4314,'id':_0x145738['id'],'name':_0x145738[_0x10fd1c(0x267)],'records':_0x17e57a?_0x5a4314[_0x10fd1c(0x11e)]:{},'recordOrder':_0x17e57a?_0x5a4314[_0x10fd1c(0x12b)]:[],'rowIndex':_0x17e57a?_0x5a4314[_0x10fd1c(0x117)]:{},'rowId':_0x17e57a?_0x5a4314[_0x10fd1c(0x20f)]:{},'cellData':_0x17e57a?_0x5a4314[_0x10fd1c(0x30f)]:{},'resources':_0x17e57a?_0x5a4314['resources']:{},'viewOrder':_0x38838a,'views':Object[_0x10fd1c(0x131)](Object['entries'](_0x5a4314[_0x10fd1c(0x25e)]??{})[_0x10fd1c(0xdc)](([_0xaff853,_0x154001])=>{const _0xbde5b1=_0x10fd1c;let _0x17fc06=_0x423350[_0xbde5b1(0x216)](_0xaff853)??(_0x145738['regenerateViewIds']?_0x919eee():_0xaff853);return[_0x17fc06,{..._0x154001,'id':_0x17fc06,'tableId':_0x145738['id']}];}))};}function oa(_0x15ac49){const _0x2641f9=_0xfaec6d;return new _0x445a5d()[_0x2641f9(0x2ff)](_0x15ac49);}function sa(_0x47d52c){const _0x539be7=_0xfaec6d;return _0x47d52c[_0x539be7(0x27c)][_0x539be7(0xdc)](_0x39f7ee=>({'unitId':_0x47d52c['unitId'],'sheetId':_0x47d52c[_0x539be7(0x2a8)],'range':{'startRow':_0x39f7ee[_0x539be7(0x172)],'endRow':_0x39f7ee['row'],'startColumn':_0x39f7ee['col'],'endColumn':_0x39f7ee[_0x539be7(0x104)]}}));}function ca(_0x124a31,_0x5f113d){const _0x291cbc=_0xfaec6d;return{[_0x124a31]:Object[_0x291cbc(0x131)](_0x5f113d[_0x291cbc(0xdc)](_0x375da0=>[_0x375da0,'1']))};}let la=class extends _0x3e9f4d{constructor(_0x5a15f7,_0x5a377d){const _0x63e84c=_0xfaec6d;super(),this[_0x63e84c(0x1ce)]=_0x5a15f7,this['_univerInstanceService']=_0x5a377d,this[_0x63e84c(0x22a)]();}[_0xfaec6d(0x22a)](){const _0x1c1577=_0xfaec6d;this[_0x1c1577(0x1ce)][_0x1c1577(0x1b8)](_0x34963f['id'],{'commandId':_0x34963f['id'],'getDirtyData':_0xcedc2d=>this[_0x1c1577(0x2af)](_0xcedc2d[_0x1c1577(0x1a2)])}),this['disposeWithMe'](_0x12559f(()=>{const _0x5e1210=_0x1c1577;this[_0x5e1210(0x1ce)][_0x5e1210(0x237)](_0x34963f['id']);}));}[_0xfaec6d(0x229)](_0x2f4fe2,_0x578446){const _0x3b602a=_0xfaec6d;let _0x1845ff=this[_0x3b602a(0x12d)][_0x3b602a(0x147)](_0x2f4fe2,_0x528a5b[_0x3b602a(0x257)]);return(_0x1845ff==null?void 0x0:_0x1845ff['getSnapshot']()[_0x3b602a(0x2fe)][_0x578446])??null;}[_0xfaec6d(0x2af)](_0x876976){const _0x328d10=_0xfaec6d;if(_0x876976['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x876976['unitId']||!_0x876976['op'])return{'clearDependencyTreeCache':this[_0x328d10(0x1ec)](),'forceCalculation':!0x0};let _0x288ff3=oa(_0x876976['op']),_0x3d8374=this[_0x328d10(0x29c)](_0x876976[_0x328d10(0x207)],_0x288ff3);if(_0x3d8374['length'])return{'clearDependencyTreeCache':ca(_0x876976[_0x328d10(0x207)],_0x3d8374),'forceCalculation':!0x0};let _0x101964=Object['entries'](this[_0x328d10(0x2cb)](_0x876976[_0x328d10(0x207)],_0x288ff3))['flatMap'](([_0x8657fc,_0x4b0004])=>sa({'unitId':_0x876976[_0x328d10(0x207)],'tableId':_0x8657fc,'patches':_0x4b0004}));return _0x101964[_0x328d10(0x317)]?{'dirtyRanges':_0x101964}:{};}[_0xfaec6d(0x29c)](_0x57f4aa,_0xfccc1d){const _0x5d7653=_0xfaec6d;let _0x2870d0=_0xfccc1d[_0x5d7653(0x249)](_0x413876=>_0x413876['reason']!==_0x5d7653(0x126))[_0x5d7653(0xce)](_0x53b1dd=>_0x53b1dd[_0x5d7653(0x2a8)]?[_0x53b1dd[_0x5d7653(0x2a8)]]:this[_0x5d7653(0x1ca)](_0x57f4aa));return Array[_0x5d7653(0x309)](new Set(_0x2870d0));}[_0xfaec6d(0x2cb)](_0x3b370a,_0xa3fae0){let _0x5ba577=new Set();return _0xa3fae0['reduce']((_0x45b627,_0x5dc3de)=>{const _0x4b32fc=_0xb8c0;let _0x3be9fc=this[_0x4b32fc(0x2d1)](_0x3b370a,_0x5dc3de);if(!_0x3be9fc)return _0x45b627;let _0x31678d=_0x5dc3de[_0x4b32fc(0x2a8)]+':'+_0x3be9fc[_0x4b32fc(0x172)]+':'+_0x3be9fc['col'];return _0x5ba577[_0x4b32fc(0x25a)](_0x31678d)||(_0x5ba577['add'](_0x31678d),_0x45b627[_0x5dc3de[_0x4b32fc(0x2a8)]]=_0x45b627[_0x5dc3de[_0x4b32fc(0x2a8)]]??[],_0x45b627[_0x5dc3de[_0x4b32fc(0x2a8)]][_0x4b32fc(0x27e)](_0x3be9fc)),_0x45b627;},{});}[_0xfaec6d(0x2d1)](_0x279d63,_0x45c7ab){const _0xf36a35=_0xfaec6d;if(_0x45c7ab[_0xf36a35(0x2fa)]!==_0xf36a35(0x126))return null;if(_0x45c7ab['row']!=null&&_0x45c7ab[_0xf36a35(0x130)]!=null)return{'row':_0x45c7ab[_0xf36a35(0x172)],'col':_0x45c7ab[_0xf36a35(0x130)],'value':null};if(!_0x45c7ab[_0xf36a35(0x1de)]||!_0x45c7ab[_0xf36a35(0x2c3)])return null;let _0x189189=this[_0xf36a35(0x229)](_0x279d63,_0x45c7ab[_0xf36a35(0x2a8)]);if(!_0x189189)return null;let _0x5283c1=_0x5b83d0(_0x189189,_0x45c7ab[_0xf36a35(0x1de)],_0x45c7ab['fieldId']);return _0x5283c1?{'row':_0x5283c1[_0xf36a35(0x172)],'col':_0x5283c1[_0xf36a35(0x104)],'value':null}:null;}[_0xfaec6d(0x1ca)](_0x377d88){const _0x28f294=_0xfaec6d;let _0x222db9=this[_0x28f294(0x12d)][_0x28f294(0x147)](_0x377d88,_0x528a5b[_0x28f294(0x257)]);return Object[_0x28f294(0xa3)]((_0x222db9==null?void 0x0:_0x222db9['getSnapshot']()[_0x28f294(0x2fe)])??{})[_0x28f294(0xdc)](_0x407c70=>_0x407c70['id']);}[_0xfaec6d(0x1ec)](){const _0x231a52=_0xfaec6d;let _0x233eeb=this[_0x231a52(0x12d)][_0x231a52(0x14d)](_0x528a5b['UNIVER_BASE'])[_0x231a52(0xdc)](_0x5a7e13=>ca(_0x5a7e13[_0x231a52(0x1cf)](),Object[_0x231a52(0x2d7)](_0x5a7e13[_0x231a52(0xcd)]()[_0x231a52(0x2fe)])));return Object['assign']({},..._0x233eeb);}};la=_0x17409a([_0x1babfc(0x0,_0xa45353),_0x1babfc(0x1,_0x3a34dc)],la);let ua=class extends _0x3e9f4d{constructor(_0x341cca,_0x295daa,_0x201db5,_0x46ffc0){const _0x578977=_0xfaec6d;super(),this[_0x578977(0x2b4)]=_0x341cca,this[_0x578977(0x12d)]=_0x295daa,this[_0x578977(0x112)]=_0x201db5,this[_0x578977(0x20c)]=_0x46ffc0,_0x146b6c(this,_0x578977(0x242),new En()),_0x146b6c(this,_0x578977(0x13a),new Map()),_0x146b6c(this,_0x578977(0xa6),new Set()),_0x146b6c(this,_0x578977(0x16b),Promise[_0x578977(0x1e0)]()),_0x146b6c(this,_0x578977(0x171),!0x1),this['_initialize']();}[_0xfaec6d(0x22a)](){const _0x518764=_0xfaec6d;this[_0x518764(0x12d)][_0x518764(0x14d)](_0x528a5b['UNIVER_BASE'])[_0x518764(0x1a4)](_0x35f956=>{const _0x2fb9bc=_0x518764;this[_0x2fb9bc(0xbc)](_0x35f956);}),this['disposeWithMe'](this[_0x518764(0x12d)][_0x518764(0x294)](_0x528a5b[_0x518764(0x257)])[_0x518764(0x102)](({unit:_0xda4159})=>{const _0x2e4e5a=_0x518764;this[_0x2e4e5a(0xbc)](_0xda4159);})),this[_0x518764(0xfb)](this[_0x518764(0x12d)][_0x518764(0x111)](_0x528a5b[_0x518764(0x257)])[_0x518764(0x102)](_0x16e1ec=>{const _0x169525=_0x518764;this[_0x169525(0x22d)](()=>this[_0x169525(0x2be)](_0x16e1ec[_0x169525(0x1cf)]()));})),this[_0x518764(0xfb)](this[_0x518764(0x2b4)][_0x518764(0x24b)](_0x5697b3=>this[_0x518764(0x2b1)](_0x5697b3)));}[_0xfaec6d(0x2b1)](_0x4f1b6b){const _0xdabace=_0xfaec6d;if(_0x4f1b6b['id']===_0x1a43f9['id']){fa(_0x4f1b6b[_0xdabace(0x1a2)])&&this[_0xdabace(0x289)](_0x4f1b6b[_0xdabace(0x1a2)]);return;}if(this['_applyingFormulaResults']||_0x4f1b6b['id']!==_0x34963f['id'])return;let _0x29f8e6=da(_0x4f1b6b[_0xdabace(0x1a2)])?_0x4f1b6b[_0xdabace(0x1a2)]:void 0x0,_0xebeb87=_0x29f8e6!=null&&_0x29f8e6[_0xdabace(0x207)]?[this[_0xdabace(0x12d)][_0xdabace(0x147)](_0x29f8e6['unitId'],_0x528a5b[_0xdabace(0x257)])]['filter'](_0x1339da=>!!_0x1339da):this[_0xdabace(0x12d)][_0xdabace(0x14d)](_0x528a5b[_0xdabace(0x257)]),_0x16513d=_0x29f8e6==null?void 0x0:_0x29f8e6['op'];_0xebeb87[_0xdabace(0x1a4)](_0x4a3e50=>{const _0xea753a=_0xdabace;let _0x2b75cd=_0x16513d?oa(_0x16513d):[];(!_0x16513d||_0x2b75cd[_0xea753a(0x2e6)](_0x35ed1c=>_0x35ed1c[_0xea753a(0x2fa)]!=='cell'))&&this[_0xea753a(0xbc)](_0x4a3e50);});}[_0xfaec6d(0xbc)](_0x3431bd){const _0x45e9d8=_0xfaec6d;let _0x3edd70=_0x3431bd['getUnitId']();this[_0x45e9d8(0xa6)]['has'](_0x3edd70)||(this['_scheduledSuperTableSyncs'][_0x45e9d8(0xe7)](_0x3edd70),this[_0x45e9d8(0x22d)](async()=>{const _0x42e461=_0x45e9d8;this[_0x42e461(0xa6)][_0x42e461(0x15f)](_0x3edd70),await this[_0x42e461(0x251)](_0x3431bd);}));}async[_0xfaec6d(0x251)](_0x6aadc8){const _0x969182=_0xfaec6d;let _0x29b870=_0x6aadc8[_0x969182(0x1cf)](),_0x1d718b=this[_0x969182(0x242)][_0x969182(0x1b6)](_0x6aadc8[_0x969182(0xcd)]()),_0x47875c=new Set(_0x1d718b[_0x969182(0xdc)](({tableName:_0x34f224})=>_0x34f224)),_0x1a83e3=this['_registeredSuperTableNames'][_0x969182(0x216)](_0x29b870)??new Set();for(let _0x342590 of _0x1a83e3)if(!_0x47875c['has'](_0x342590)&&!await this[_0x969182(0x149)](_0x11f50f['id'],{'unitId':_0x29b870,'tableName':_0x342590}))return;for(let {tableName:_0x15c0ee,reference:_0x418109}of _0x1d718b)if(!await this['_executeSuperTableMutationWhileActive'](_0x5abb0d['id'],{'unitId':_0x29b870,'tableName':_0x15c0ee,'reference':_0x418109}))return;this[_0x969182(0x13a)][_0x969182(0x2cd)](_0x29b870,_0x47875c);}async[_0xfaec6d(0x2be)](_0xf83b0b){const _0x2bd676=_0xfaec6d;let _0x42fff8=this[_0x2bd676(0x13a)][_0x2bd676(0x216)](_0xf83b0b)??new Set();for(let _0x32cc98 of _0x42fff8)if(!await this[_0x2bd676(0x149)](_0x11f50f['id'],{'unitId':_0xf83b0b,'tableName':_0x32cc98}))return;this[_0x2bd676(0x13a)][_0x2bd676(0x15f)](_0xf83b0b);}async[_0xfaec6d(0x149)](_0x499a56,_0x59b772){const _0x27cf66=_0xfaec6d;return!this[_0x27cf66(0x16c)]&&await this[_0x27cf66(0x2b4)][_0x27cf66(0x179)](_0x499a56,_0x59b772,{'onlyLocal':!0x0})&&!this['_disposed'];}[_0xfaec6d(0x22d)](_0x17837f){const _0x327174=_0xfaec6d;this[_0x327174(0x16b)]=this[_0x327174(0x16b)]['then'](_0x17837f,_0x17837f)[_0x327174(0xe1)](()=>void 0x0);}[_0xfaec6d(0x289)](_0xb21bf1){const _0x57da49=_0xfaec6d;let _0x3b6750=this[_0x57da49(0x12d)][_0x57da49(0x14d)](_0x528a5b[_0x57da49(0x257)]);if(!_0x3b6750[_0x57da49(0x2e6)](_0x27c273=>{const _0xe9c9b0=_0x57da49;var _0x1e2194;return((_0x1e2194=_0xb21bf1['unitData'])==null?void 0x0:_0x1e2194[_0x27c273[_0xe9c9b0(0x1cf)]()])!=null;}))return;let _0x14f9aa=_0x3b6750[_0x57da49(0xce)](_0x11cdf8=>Dn(_0x11cdf8[_0x57da49(0xcd)](),_0xb21bf1));if(!_0x14f9aa[_0x57da49(0x317)]){this[_0x57da49(0x20c)][_0x57da49(0x167)](_0xc6e46a[_0x57da49(0xf1)],_0xb21bf1);return;}let _0xdb8fff=new K(),_0x659111=_0x14f9aa['flatMap'](_0x51fd0=>sa({'unitId':_0x51fd0[_0x57da49(0x207)],'tableId':_0x51fd0[_0x57da49(0x2a8)],'patches':_0x51fd0['patches']}));this['_applyingFormulaResults']=!0x0,(async()=>{const _0x1be03f=_0x57da49;for(let _0x5a60e5 of _0x14f9aa){let _0x1a9d6d=this['_univerInstanceService'][_0x1be03f(0x147)](_0x5a60e5[_0x1be03f(0x207)],_0x528a5b[_0x1be03f(0x257)]);_0x1a9d6d&&await this[_0x1be03f(0x2b4)]['executeCommand'](_0x34963f['id'],{'unitId':_0x5a60e5[_0x1be03f(0x207)],'op':_0xdb8fff['setRangeValues'](_0x1a9d6d[_0x1be03f(0xcd)](),_0x5a60e5[_0x1be03f(0x2a8)],_0x5a60e5['patches']),'trigger':_0x1a43f9['id']},{'onlyLocal':!0x0});}await this[_0x1be03f(0x2b4)]['executeCommand'](_0x3b150b['id'],{'dirtyRanges':_0x659111},{'onlyLocal':!0x0});})()[_0x57da49(0x1c8)](()=>{const _0x3453a4=_0x57da49;this[_0x3453a4(0x171)]=!0x1,this[_0x3453a4(0x20c)][_0x3453a4(0x167)](_0xc6e46a['BASE'],_0xb21bf1);});}};ua=_0x17409a([_0x1babfc(0x0,_0x2780d7),_0x1babfc(0x1,_0x3a34dc),_0x1babfc(0x2,_0x5d8c1e(_0xb978c8)),_0x1babfc(0x3,_0x5d8c1e(_0x671e03))],ua);function da(_0x2d2b89){const _0x55072a=_0xfaec6d;return typeof _0x2d2b89==_0x55072a(0x148)&&!!_0x2d2b89&&'unitId'in _0x2d2b89&&typeof _0x2d2b89[_0x55072a(0x207)]==_0x55072a(0xd0)&&'op'in _0x2d2b89&&Array[_0x55072a(0x183)](_0x2d2b89['op']);}function fa(_0x2aa963){const _0x94237c=_0xfaec6d;return typeof _0x2aa963==_0x94237c(0x148)&&!!_0x2aa963&&_0x94237c(0x27a)in _0x2aa963&&'unitOtherData'in _0x2aa963;}const pa=new Set([Vr['id'],Hr['id'],di['id']]);let ma=class extends _0x3e9f4d{constructor(_0x56021e,_0x379bce,_0x3e29c0,_0x254d8b){const _0xe3de53=_0xfaec6d;super(),this[_0xe3de53(0x1da)]=_0x56021e,this['_commandService']=_0x379bce,this[_0xe3de53(0x302)]=_0x3e29c0,this['_instanceService']=_0x254d8b,this[_0xe3de53(0x21f)][_0xe3de53(0x14d)](_0x528a5b[_0xe3de53(0x257)])['forEach'](_0x1b57bb=>this[_0xe3de53(0x22f)](_0x1b57bb[_0xe3de53(0x1cf)]())),this['disposeWithMe'](this[_0xe3de53(0x21f)]['getTypeOfUnitAdded$'](_0x528a5b['UNIVER_BASE'])[_0xe3de53(0x102)](({unit:_0x35d479})=>this[_0xe3de53(0x22f)](_0x35d479[_0xe3de53(0x1cf)]()))),this[_0xe3de53(0xfb)](this[_0xe3de53(0x2b4)][_0xe3de53(0x178)]((_0x30e818,_0x3a8c52)=>this['_check'](_0x30e818,_0x3a8c52))),this['disposeWithMe'](this[_0xe3de53(0x21f)][_0xe3de53(0x111)](_0x528a5b['UNIVER_BASE'])[_0xe3de53(0x102)](_0x4062a0=>{const _0x30414d=_0xe3de53;this[_0x30414d(0x1da)][_0x30414d(0x216)](_0x48d251)['clearUnit'](_0x4062a0[_0x30414d(0x1cf)]()),on(this['_permissionService'],_0x4062a0['getUnitId']());}));}[_0xfaec6d(0x22f)](_0x45bf1a){const _0x436df8=_0xfaec6d;Kt['forEach'](_0x202ed8=>{const _0x2dde7b=_0xb8c0;let _0x3c6e2a=tn(_0x45bf1a,_0x45bf1a,_0x202ed8);this['_permissionService'][_0x2dde7b(0x1f8)](_0x3c6e2a['id'])||this[_0x2dde7b(0x302)]['addPermissionPoint'](_0x3c6e2a);}),this[_0x436df8(0x1da)][_0x436df8(0x216)](_0x48d251)['initializeUnit']({'unitId':_0x45bf1a,'objectId':_0x45bf1a,'objectType':_0x456f09[_0x436df8(0x290)]});}[_0xfaec6d(0x296)](_0x499389,_0xa75737){const _0xf815ed=_0xfaec6d;var _0x7bc8c5;if(_0xa75737!=null&&_0xa75737[_0xf815ed(0x288)]||_0xa75737!=null&&_0xa75737['fromChangeset'])return;let _0x1ceec2=Ea(_0x499389[_0xf815ed(0x1a2)])?_0x499389[_0xf815ed(0x1a2)]:void 0x0;if(_0xa75737!=null&&_0xa75737['onlyLocal']&&_0x499389['id']===_0xf815ed(0x10d)&&(_0x1ceec2==null?void 0x0:_0x1ceec2[_0xf815ed(0x25f)])===_0x1a43f9['id'])return;let _0x57ef52=ga(_0x499389['id']),_0x247407=ha(_0x1ceec2==null?void 0x0:_0x1ceec2[_0xf815ed(0x207)],_0xa75737)??(_0x57ef52?(_0x7bc8c5=this['_instanceService']['getCurrentUnitOfType'](_0x528a5b['UNIVER_BASE']))==null?void 0x0:_0x7bc8c5['getUnitId']():void 0x0);if(!_0x247407||this[_0xf815ed(0x21f)][_0xf815ed(0x1e6)](_0x247407)!==_0x528a5b[_0xf815ed(0x257)])return;if(_0x57ef52){if(!nn(this[_0xf815ed(0x302)],_0x247407,_0x247407,_0x57ef52))throw this[_0xf815ed(0x1da)][_0xf815ed(0x216)](_0x366da3)[_0xf815ed(0x160)](_0x247407),new _0x7869e1(_0xf815ed(0x14e)+_0x32fca1[_0x57ef52]+_0xf815ed(0x2bc));return;}if(pa['has'](_0x499389['id'])||!_0x499389['id'][_0xf815ed(0xe5)]('base.command.')&&!_0x499389['id'][_0xf815ed(0xe5)](_0xf815ed(0x1b9)))return;let _0xa6bb81=this[_0xf815ed(0x21f)][_0xf815ed(0x147)](_0x247407,_0x528a5b['UNIVER_BASE']),_0x402d95=_0xa6bb81?_a(_0xa6bb81,_0x1ceec2??{},_0x499389['id']):[];if(!_0xa6bb81||!sn(this[_0xf815ed(0x302)],_0x247407,_0x402d95))throw this[_0xf815ed(0x1da)][_0xf815ed(0x216)](_0x366da3)[_0xf815ed(0x160)](_0x247407,_0x402d95),new _0x7869e1('Base\x20edit\x20permission\x20denied.');}};ma=_0x17409a([_0x1babfc(0x0,_0x5d8c1e(_0x55c2ae)),_0x1babfc(0x1,_0x2780d7),_0x1babfc(0x2,_0x381c85),_0x1babfc(0x3,_0x3a34dc)],ma);function ha(_0xcf7b38,_0x32f0c9){const _0x3611ff=_0xfaec6d;return typeof _0xcf7b38==_0x3611ff(0xd0)?_0xcf7b38:typeof(_0x32f0c9==null?void 0x0:_0x32f0c9[_0x3611ff(0x207)])==_0x3611ff(0xd0)?_0x32f0c9['unitId']:void 0x0;}function ga(_0x444a4f){const _0x186ed7=_0xfaec6d;if(_0x444a4f===_0x186ed7(0x2e8)||_0x444a4f==='bases-exchange-client.operation.export-base-by-format')return _0x32fca1['Export'];if(_0x444a4f[_0x186ed7(0xe5)](_0x186ed7(0x133))||_0x444a4f['startsWith'](_0x186ed7(0x30a)))return _0x32fca1['Comment'];}function _a(_0x4724bf,_0x5e9b70,_0x1202fe){const _0x58026b=_0xfaec6d;if(_0x1202fe===_0x58026b(0x10d)&&Ta(_0x5e9b70['op']))return va(_0x4724bf,_0x5e9b70['op']);let _0x490df1=new Set(),_0x3df4bf=Sa(_0x5e9b70,_0x58026b(0x18d)),_0x17a609=typeof _0x5e9b70['tableId']==_0x58026b(0xd0)?_0x5e9b70[_0x58026b(0x2a8)]:_0x3df4bf[0x0];if(_0x3df4bf[_0x58026b(0x1a4)](_0x5b53c3=>_0x490df1['add'](q(_0x5b53c3))),!_0x17a609)return[..._0x490df1];let _0x43d6f1=_0x4724bf[_0x58026b(0xcd)]()[_0x58026b(0x2fe)][_0x17a609],_0x5ad459=new Set(Sa(_0x5e9b70,_0x58026b(0x145))),_0x33bcbe=new Set(Sa(_0x5e9b70,_0x58026b(0x27f))),_0x5bcf30=new Set(Sa(_0x5e9b70,_0x58026b(0x2a2)));return Ca(_0x43d6f1,_0x5e9b70[_0x58026b(0x27c)],_0x33bcbe,_0x5ad459),wa(_0x5e9b70,_0x5ad459),_0x5ad459[_0x58026b(0x1a4)](_0x166edd=>_0x490df1[_0x58026b(0xe7)](J(_0x17a609,_0x166edd))),_0x33bcbe[_0x58026b(0x1a4)](_0x9c0780=>_0x490df1[_0x58026b(0xe7)](Y(_0x17a609,_0x9c0780))),_0x5bcf30[_0x58026b(0x1a4)](_0x46e98c=>_0x490df1[_0x58026b(0xe7)]($t(_0x17a609,_0x46e98c))),[..._0x490df1];}function va(_0x4cc784,_0x5b7c30){const _0x4ff11a=_0xfaec6d;let _0x4a7774=_0x4cc784[_0x4ff11a(0xcd)](),_0x3cb075=new _0x445a5d()['getAffectedRanges'](_0x5b7c30),_0x8ef096=ya(_0x5b7c30),_0x3fc1bb=new Set();return _0x3cb075[_0x4ff11a(0x1a4)](_0x33c87a=>{const _0x3a903c=_0x4ff11a;var _0x51207f,_0x13300a;let {tableId:_0x143af2}=_0x33c87a;if(!_0x143af2)return;_0x3fc1bb['add'](q(_0x143af2));let _0x57c774=_0x4a7774['tables'][_0x143af2],_0x9f7faf=_0x33c87a['recordId']??(_0x33c87a[_0x3a903c(0x172)]==null||_0x57c774==null||(_0x51207f=_0x57c774[_0x3a903c(0x20f)])==null?void 0x0:_0x51207f[_0x33c87a['row']]),_0x193030=_0x33c87a[_0x3a903c(0x2c3)]??(_0x33c87a['column']==null||_0x57c774==null||(_0x13300a=_0x57c774[_0x3a903c(0x13f)])==null?void 0x0:_0x13300a[_0x33c87a['column']]);_0x9f7faf&&_0x3fc1bb[_0x3a903c(0xe7)](Y(_0x143af2,_0x9f7faf)),_0x193030&&_0x3fc1bb['add'](J(_0x143af2,_0x193030)),_0x33c87a[_0x3a903c(0x2bf)]&&_0x3fc1bb[_0x3a903c(0xe7)]($t(_0x143af2,_0x33c87a['viewId'])),(_0x33c87a[_0x3a903c(0x2fa)]===_0x3a903c(0x18d)||_0x8ef096[_0x3a903c(0x25a)](_0x143af2))&&_0x57c774&&(Object['keys'](_0x57c774[_0x3a903c(0x10e)])[_0x3a903c(0x1a4)](_0x46081e=>_0x3fc1bb[_0x3a903c(0xe7)](J(_0x143af2,_0x46081e))),Object[_0x3a903c(0x2d7)](_0x57c774[_0x3a903c(0x11e)])[_0x3a903c(0x1a4)](_0x271647=>_0x3fc1bb[_0x3a903c(0xe7)](Y(_0x143af2,_0x271647))),Object[_0x3a903c(0x2d7)](_0x57c774['views'])['forEach'](_0x596940=>_0x3fc1bb[_0x3a903c(0xe7)]($t(_0x143af2,_0x596940)))),_0x33c87a['reason']==='record'&&_0x57c774&&Object['keys'](_0x57c774[_0x3a903c(0x10e)])['forEach'](_0x4b351e=>_0x3fc1bb[_0x3a903c(0xe7)](J(_0x143af2,_0x4b351e)));}),_0x3cb075[_0x4ff11a(0x317)]===0x0&&xa(_0x5b7c30,_0x4ff11a(0x1c1))&&Object['keys'](_0x4a7774[_0x4ff11a(0x2fe)])[_0x4ff11a(0x1a4)](_0x5e0807=>_0x3fc1bb['add'](q(_0x5e0807))),[..._0x3fc1bb];}function ya(_0x155fd8){let _0x247314=new Set(),_0x3d1de6=_0x25253a=>{const _0x5b987f=_0xb8c0;Array[_0x5b987f(0x183)](_0x25253a)&&_0x25253a[_0x5b987f(0x1a4)]((_0x45ae73,_0x3cea6f)=>{const _0x1f793a=_0x5b987f;_0x45ae73==='tables'&&typeof _0x25253a[_0x3cea6f+0x1]==_0x1f793a(0xd0)&&ba(_0x25253a[_0x3cea6f+0x2])&&_0x247314[_0x1f793a(0xe7)](_0x25253a[_0x3cea6f+0x1]),_0x3d1de6(_0x45ae73);});};return _0x3d1de6(_0x155fd8),_0x247314;}function ba(_0x1b01dc){const _0x1e9009=_0xfaec6d;return!!_0x1b01dc&&typeof _0x1b01dc==_0x1e9009(0x148)&&!Array[_0x1e9009(0x183)](_0x1b01dc)&&('i'in _0x1b01dc||'r'in _0x1b01dc||'p'in _0x1b01dc||'d'in _0x1b01dc||'es'in _0x1b01dc||_0x1e9009(0x128)in _0x1b01dc||'et'in _0x1b01dc);}function xa(_0x426d08,_0x1ae092){const _0x86942c=_0xfaec6d;return Array[_0x86942c(0x183)](_0x426d08)&&_0x426d08['some'](_0x264a0a=>_0x264a0a===_0x1ae092||xa(_0x264a0a,_0x1ae092));}function Sa(_0x5eff34,_0x3c2b7d){const _0x228acb=_0xfaec6d;let _0x370559=new Set(),_0xb79b6a=_0x3c2b7d+'Id',_0x159ea2=_0x3c2b7d+_0x228acb(0x2c0),_0x54267b=(_0x81a9c7,_0x5271d0='')=>{const _0x5eb645=_0x228acb;typeof _0x81a9c7=='string'?_0x5271d0===_0xb79b6a&&_0x370559[_0x5eb645(0xe7)](_0x81a9c7):Array['isArray'](_0x81a9c7)?_0x5271d0===_0x159ea2?_0x81a9c7[_0x5eb645(0x1a4)](_0x12f41c=>{const _0xa9a26e=_0x5eb645;typeof _0x12f41c=='string'&&_0x370559[_0xa9a26e(0xe7)](_0x12f41c);}):_0x81a9c7[_0x5eb645(0x1a4)](_0x1fe20f=>_0x54267b(_0x1fe20f,_0x5271d0)):Ea(_0x81a9c7)&&Object[_0x5eb645(0xc4)](_0x81a9c7)[_0x5eb645(0x1a4)](([_0x5d134e,_0x479a6a])=>{const _0x299256=_0x5eb645;_0x5d134e==='id'&&_0x5271d0===_0x3c2b7d&&typeof _0x479a6a=='string'?_0x370559[_0x299256(0xe7)](_0x479a6a):_0x54267b(_0x479a6a,_0x5d134e);});};return _0x54267b(_0x5eff34),[..._0x370559];}function Ca(_0x45164a,_0x2aaf0b,_0x3570e1,_0x122b27){const _0x28daeb=_0xfaec6d;_0x45164a&&Array[_0x28daeb(0x183)](_0x2aaf0b)&&_0x2aaf0b[_0x28daeb(0x1a4)](_0x4be699=>{const _0x2b0222=_0x28daeb;if(!Ea(_0x4be699))return;let _0x49793c=_0x4be699;if(typeof _0x49793c['row']==_0x2b0222(0x1d5)){var _0x198f2e;let _0x37c315=(_0x198f2e=_0x45164a['rowId'])==null?void 0x0:_0x198f2e[_0x49793c[_0x2b0222(0x172)]];_0x37c315&&_0x3570e1['add'](_0x37c315);}if(typeof _0x49793c[_0x2b0222(0x104)]=='number'){var _0xcf9233;let _0x6b3b5c=(_0xcf9233=_0x45164a[_0x2b0222(0x13f)])==null?void 0x0:_0xcf9233[_0x49793c['col']];_0x6b3b5c&&_0x122b27['add'](_0x6b3b5c);}});}function wa(_0x52ddf5,_0x516755,_0x492c3c=''){const _0x246008=_0xfaec6d;_0x52ddf5&&typeof _0x52ddf5=='object'&&(Array['isArray'](_0x52ddf5)?_0x52ddf5[_0x246008(0x1a4)](_0x260e94=>wa(_0x260e94,_0x516755,_0x492c3c)):Ea(_0x52ddf5)&&Object[_0x246008(0xc4)](_0x52ddf5)['forEach'](([_0x518b3c,_0x54c75e])=>{const _0x21962f=_0x246008;_0x492c3c===_0x21962f(0xa3)&&_0x516755[_0x21962f(0xe7)](_0x518b3c),wa(_0x54c75e,_0x516755,_0x518b3c);}));}function Ta(_0x1333b4){return Array['isArray'](_0x1333b4);}function Ea(_0x8ee189){const _0x522238=_0xfaec6d;return typeof _0x8ee189==_0x522238(0x148)&&!!_0x8ee189&&!Array['isArray'](_0x8ee189);}const Da=_0x113f43(_0xfaec6d(0x1e1));let Oa=class{constructor(_0x77c530){const _0x1f3f67=_0xfaec6d;this[_0x1f3f67(0x12d)]=_0x77c530;}[_0xfaec6d(0x243)](_0x2c0c4c){const _0x34f5af=_0xfaec6d;return this['_univerInstanceService'][_0x34f5af(0x147)](_0x2c0c4c,_0x528a5b[_0x34f5af(0x257)])??null;}[_0xfaec6d(0x2a3)](){const _0x183bce=_0xfaec6d;return this[_0x183bce(0x12d)]['getAllUnitsForType'](_0x528a5b[_0x183bce(0x257)]);}[_0xfaec6d(0x177)](_0x4aa6e6){const _0xcb4889=_0xfaec6d;return this[_0xcb4889(0x12d)][_0xcb4889(0x1a3)](_0x528a5b['UNIVER_BASE'],_0x4aa6e6);}};Oa=_0x17409a([_0x1babfc(0x0,_0x3a34dc)],Oa);const ka=_0x113f43(_0xfaec6d(0x163));var Aa=class extends _0x3e9f4d{constructor(..._0x3a785f){const _0x2c7fd9=_0xfaec6d;super(..._0x3a785f),_0x146b6c(this,_0x2c7fd9(0xe3),new Map());}['register'](_0x4b5757){const _0x473b9f=_0xfaec6d;return this['_plugins']['set'](_0x4b5757[_0x473b9f(0x211)],_0x4b5757),_0x12559f(()=>this['_plugins'][_0x473b9f(0x15f)](_0x4b5757['type']));}['get'](_0x17a712){const _0x428610=_0xfaec6d;let _0xe9f0dd=this['_plugins'][_0x428610(0x216)](_0x17a712);if(!_0xe9f0dd)throw Error(_0x428610(0x1ab)+_0x17a712+_0x428610(0x1fd));return _0xe9f0dd;}[_0xfaec6d(0x20b)](){const _0x688831=_0xfaec6d;return Array['from'](this[_0x688831(0xe3)]['values']());}};const ja=[_0x34963f];let Ma=class extends _0x36f58a{constructor(_0x3008fd=_0x6c24b2,_0x49e758,_0x558c67,_0x359804,_0x3c8372,_0x27326c){const _0x5bc2e3=_0xfaec6d;super(),this[_0x5bc2e3(0x1a5)]=_0x3008fd,this[_0x5bc2e3(0x1da)]=_0x49e758,this[_0x5bc2e3(0x2b4)]=_0x558c67,this[_0x5bc2e3(0x12d)]=_0x359804,this[_0x5bc2e3(0x271)]=_0x3c8372,this[_0x5bc2e3(0x28f)]=_0x27326c,_0x146b6c(this,_0x5bc2e3(0xcb),new Map());let {..._0x4207ba}=_0x465685({},_0x6c24b2,this[_0x5bc2e3(0x1a5)]);this[_0x5bc2e3(0x271)][_0x5bc2e3(0xea)](_0x328617,_0x4207ba),this[_0x5bc2e3(0x12d)][_0x5bc2e3(0x26e)](_0x528a5b[_0x5bc2e3(0x257)],_0x5a26da),this['_initDependencies'](),this[_0x5bc2e3(0x231)](),this['_initRegistries'](),this[_0x5bc2e3(0x170)]();}[_0xfaec6d(0x266)](){const _0x38dcd7=_0xfaec6d;this[_0x38dcd7(0x1da)]['add']([fi]),this[_0x38dcd7(0xfb)](this[_0x38dcd7(0x1da)][_0x38dcd7(0x216)](_0x2780d7)[_0x38dcd7(0x1a6)](pi)),this[_0x38dcd7(0xfb)](this['_injector']['get'](_0x2780d7)[_0x38dcd7(0x1a6)](mi)),this['disposeWithMe'](this['_injector']['get'](_0x48d251)[_0x38dcd7(0x224)](_0x456f09[_0x38dcd7(0x290)],this[_0x38dcd7(0x1da)][_0x38dcd7(0x216)](fi),pi['id'],mi['id']));}['onReady'](){const _0x40e590=_0xfaec6d;_0x14c1fd(this[_0x40e590(0x1da)],[[Oa],[mn],[la]]),this['_univerInstanceService'][_0x40e590(0x14d)](_0x528a5b[_0x40e590(0x257)])[_0x40e590(0x1a4)](_0xdf3ea3=>this[_0x40e590(0x205)](_0xdf3ea3[_0x40e590(0x1cf)]())),_0x14c1fd(this[_0x40e590(0x1da)],[[ua],[ma]]);}[_0xfaec6d(0x295)](){const _0x4e440d=_0xfaec6d;[[_0x44139a,{'useClass':_0x59c7a4}],[ka,{'useClass':Aa}],[_0x292006,{'useClass':_0x5d6e59}],[Da,{'useClass':Oa}],[cn,{'useClass':ln}],[X,{'useClass':mn}],[la],[ua],[ma]]['forEach'](_0x592e98=>this[_0x4e440d(0x1da)][_0x4e440d(0xe7)](_0x592e98));}[_0xfaec6d(0x231)](){const _0x1ff667=_0xfaec6d;[or,Lr,wr,$r,Gr,Wr,nr,er,Zn,Cr,Qn,Dr,ri,Mr,tr,Er,ti,ei,$n,Sr,jr,di,xr,Or,Rr,Br,Tr,Ir,ui,ai,zr,Vr,Hr,ni,Xr,Qr,Zr,Kr,Jr,Yr,qr,...ja][_0x1ff667(0x1a4)](_0x48d678=>this[_0x1ff667(0xfb)](this[_0x1ff667(0x2b4)][_0x1ff667(0x1a6)](_0x48d678))),ja[_0x1ff667(0x1a4)](_0x5ae0cc=>{var _0x5b8504;return(_0x5b8504=this['_dataSyncPrimaryController'])==null?void 0x0:_0x5b8504['registerSyncingMutations'](_0x5ae0cc);});}[_0xfaec6d(0x170)](){const _0x1cc213=_0xfaec6d;this[_0x1cc213(0x28f)]&&(this['disposeWithMe'](this['_univerInstanceService'][_0x1cc213(0x294)](_0x528a5b['UNIVER_BASE'])[_0x1cc213(0x102)](({unit:_0x269a6f})=>{const _0x2329d1=_0x1cc213;this[_0x2329d1(0x205)](_0x269a6f[_0x2329d1(0x1cf)]());})),this[_0x1cc213(0xfb)](this[_0x1cc213(0x12d)]['getTypeOfUnitDisposed$'](_0x528a5b['UNIVER_BASE'])[_0x1cc213(0x102)](_0x349041=>{const _0x135d0a=_0x1cc213;var _0x34af8f;(_0x34af8f=this[_0x135d0a(0xcb)][_0x135d0a(0x216)](_0x349041[_0x135d0a(0x1cf)]()))==null||_0x34af8f[_0x135d0a(0x1b4)](),this['_baseSyncDisposables'][_0x135d0a(0x15f)](_0x349041[_0x135d0a(0x1cf)]());})));}['_syncBaseUnit'](_0xf94128){const _0x16598b=_0xfaec6d;this[_0x16598b(0x28f)]&&!this[_0x16598b(0xcb)][_0x16598b(0x25a)](_0xf94128)&&this[_0x16598b(0xcb)][_0x16598b(0x2cd)](_0xf94128,this[_0x16598b(0x28f)][_0x16598b(0x30d)](_0xf94128));}[_0xfaec6d(0x152)](){const _0x4ba1d8=_0xfaec6d;let _0x41e3ca=this['_injector']['get'](_0x44139a);_0x6a0734()[_0x4ba1d8(0x1a4)](_0x33c61d=>_0x41e3ca[_0x4ba1d8(0x1b8)](_0x33c61d));let _0x2a3c59=this[_0x4ba1d8(0x1da)][_0x4ba1d8(0x216)](ka),_0x3281b4=this[_0x4ba1d8(0x1da)][_0x4ba1d8(0x216)](_0x292006);_0x55392f()['forEach'](_0x5c27f4=>{const _0x474204=_0x4ba1d8;_0x2a3c59['register'](_0x5c27f4),_0x3281b4[_0x474204(0x1fe)](_0x5c27f4);});}};_0x146b6c(Ma,'pluginName','BASES_PLUGIN'),_0x146b6c(Ma,_0xfaec6d(0x1bd),_0x1e09da),_0x146b6c(Ma,_0xfaec6d(0xbf),_0x115710),_0x146b6c(Ma,_0xfaec6d(0x211),_0x528a5b['UNIVER_BASE']),Ma=_0x17409a([_0x4f1a4c(_0x5b8ca2,_0x590f96),_0x1babfc(0x1,_0x5d8c1e(_0x55c2ae)),_0x1babfc(0x2,_0x2780d7),_0x1babfc(0x3,_0x3a34dc),_0x1babfc(0x4,_0x624d0),_0x1babfc(0x5,_0xdd4f87(_0x596a05))],Ma);function Na(_0x1c4639){const _0x52b998=_0xfaec6d;let _0x3bd1c3=Ka(_0x1c4639[_0x52b998(0x1e9)]);if(!_0x3bd1c3)return{'query':'','total':0x0,'matches':[]};let _0x193df5=[],_0x187828=[];for(let _0xba7bc9=0x0;_0xba7bc9<_0x1c4639[_0x52b998(0x2ca)][_0x52b998(0x317)];_0xba7bc9++){if(!(_0xba7bc9 in _0x1c4639['fieldIds']))continue;let _0x5760f4=_0x1c4639['table'][_0x52b998(0x10e)][_0x1c4639[_0x52b998(0x2ca)][_0xba7bc9]];_0x5760f4&&_0x187828['push']({'field':_0x5760f4,'fieldIndex':_0xba7bc9});}_0x1c4639['rows'][_0x52b998(0x1a4)]((_0x480d3d,_0x2c0256)=>{const _0x376970=_0x52b998;_0x187828[_0x376970(0x1a4)](({field:_0x54d697,fieldIndex:_0x4af73f})=>{const _0x740373=_0x376970;let _0x2a65ca=Pa(_0x480d3d[_0x740373(0xa3)][_0x54d697['id']],_0x54d697);if(!_0x2a65ca)return;let _0x4c7a3c=Ga(_0x3bd1c3,_0x2a65ca[_0x740373(0x11f)]);_0x4c7a3c<=0x0||_0x193df5[_0x740373(0x27e)]({'recordId':_0x480d3d[_0x740373(0x1de)],'fieldId':_0x54d697['id'],'fieldType':_0x54d697['type'],'text':_0x2a65ca[_0x740373(0x122)],'score':_0x4c7a3c,'rowIndex':_0x2c0256,'fieldIndex':_0x4af73f});});}),_0x193df5[_0x52b998(0x2f8)]((_0xf08338,_0x1f18ba)=>_0x1f18ba['score']-_0xf08338[_0x52b998(0x198)]||_0xf08338[_0x52b998(0x117)]-_0x1f18ba[_0x52b998(0x117)]||_0xf08338[_0x52b998(0x2db)]-_0x1f18ba[_0x52b998(0x2db)]);let _0x17868b=_0x1c4639[_0x52b998(0x218)]==null?_0x193df5:_0x193df5[_0x52b998(0x13e)](0x0,Math[_0x52b998(0x236)](0x0,_0x1c4639[_0x52b998(0x218)]));return{'query':_0x3bd1c3,'total':_0x193df5[_0x52b998(0x317)],'matches':Ja(_0x17868b)};}function Pa(_0x419100,_0x55d390){const _0x41efaa=_0xfaec6d;let _0x1ff8c5=[];for(let _0xaf2fd5 of Ia(_0x419100,_0x55d390)){let _0x184dc3=Ka(_0xaf2fd5);_0x184dc3&&_0x1ff8c5[_0x41efaa(0x27e)](_0x184dc3);}return _0x1ff8c5[_0x41efaa(0x317)]?{'displayText':Fa(_0x419100,_0x55d390),'searchTexts':qa(_0x1ff8c5)}:null;}function Fa(_0x42e2ad,_0x33b8c1){const _0x37dc49=_0xfaec6d;switch(_0x33b8c1[_0x37dc49(0x211)]){case _0x2657c4[_0x37dc49(0x2f3)]:case _0x2657c4[_0x37dc49(0x157)]:case _0x2657c4[_0x37dc49(0x194)]:return La(_0x42e2ad,_0x33b8c1)[_0x37dc49(0x21a)](',\x20');case _0x2657c4[_0x37dc49(0xf9)]:return Ba(_0x42e2ad);case _0x2657c4['Date']:case _0x2657c4[_0x37dc49(0x277)]:case _0x2657c4[_0x37dc49(0x2b9)]:return Va(_0x42e2ad,_0x33b8c1);case _0x2657c4['Number']:case _0x2657c4[_0x37dc49(0x203)]:return Ha(_0x42e2ad,_0x33b8c1);case _0x2657c4[_0x37dc49(0x2e5)]:return Ua(_0x42e2ad,_0x33b8c1);case _0x2657c4[_0x37dc49(0xd9)]:return _0x42e2ad?_0x37dc49(0xfc):'Unchecked';case _0x2657c4['Attachment']:return Wa(_0x42e2ad)[_0x37dc49(0x21a)](',\x20');default:return Q(_0x42e2ad);}}function Ia(_0x52ba80,_0x1605ea){const _0x213e0c=_0xfaec6d;switch(_0x1605ea['type']){case _0x2657c4['SingleSelect']:case _0x2657c4[_0x213e0c(0x157)]:case _0x2657c4['Group']:{let _0x2c0c49=La(_0x52ba80,_0x1605ea);if(Array[_0x213e0c(0x183)](_0x52ba80)){let _0x38a9ec=[..._0x2c0c49];for(let _0x39b5c6=0x0;_0x39b5c6<_0x52ba80['length'];_0x39b5c6++)_0x39b5c6 in _0x52ba80&&_0x38a9ec[_0x213e0c(0x27e)](String(_0x52ba80[_0x39b5c6]));return _0x38a9ec;}return _0x52ba80==null?_0x2c0c49:[..._0x2c0c49,String(_0x52ba80)];}case _0x2657c4[_0x213e0c(0xf9)]:{let _0x2994eb=za(_0x52ba80);return[_0x2994eb[_0x213e0c(0x2aa)],_0x2994eb[_0x213e0c(0x252)]];}case _0x2657c4[_0x213e0c(0x23b)]:case _0x2657c4[_0x213e0c(0x277)]:case _0x2657c4[_0x213e0c(0x2b9)]:return[Va(_0x52ba80,_0x1605ea),Q(_0x52ba80)];case _0x2657c4[_0x213e0c(0x1a1)]:case _0x2657c4[_0x213e0c(0x203)]:return[Ha(_0x52ba80,_0x1605ea),Q(_0x52ba80)];case _0x2657c4[_0x213e0c(0x2e5)]:return[Ua(_0x52ba80,_0x1605ea),Q(_0x52ba80)];case _0x2657c4[_0x213e0c(0xd9)]:return _0x52ba80?[_0x213e0c(0xfc),_0x213e0c(0x18c),_0x213e0c(0x223)]:['Unchecked','No','False'];case _0x2657c4[_0x213e0c(0x114)]:return Wa(_0x52ba80);default:return[Q(_0x52ba80)];}}function La(_0x2f9bba,_0x809222){const _0x525769=_0xfaec6d;var _0x4688a5;let _0x44011c=Array[_0x525769(0x183)]((_0x4688a5=_0x809222['config'])==null?void 0x0:_0x4688a5[_0x525769(0x2d3)])?_0x809222[_0x525769(0x2c6)][_0x525769(0x2d3)]:[],_0x1a495f=[];if(Array[_0x525769(0x183)](_0x2f9bba)){for(let _0x5081f0=0x0;_0x5081f0<_0x2f9bba['length'];_0x5081f0++){if(!(_0x5081f0 in _0x2f9bba))continue;let _0x32913b=String(_0x2f9bba[_0x5081f0]);_0x32913b&&_0x1a495f['push'](Ra(_0x44011c,_0x32913b));}return _0x1a495f;}if(_0x2f9bba!=null){let _0x114794=String(_0x2f9bba);_0x114794&&_0x1a495f['push'](Ra(_0x44011c,_0x114794));}return _0x1a495f;}function Ra(_0x41dd18,_0x21bdfa){const _0xfebf4e=_0xfaec6d;for(let _0x564cce of _0x41dd18){if(typeof _0x564cce==_0xfebf4e(0xd0)&&_0x564cce===_0x21bdfa)return _0x564cce;if(_0x564cce&&typeof _0x564cce==_0xfebf4e(0x148)){let _0x567a5a=_0x564cce;if(String(_0x567a5a['id']??_0x567a5a[_0xfebf4e(0x267)]??'')===_0x21bdfa||String(_0x567a5a[_0xfebf4e(0x267)]??'')===_0x21bdfa)return String(_0x567a5a['name']??_0x567a5a['id']??_0x21bdfa);}}return _0x21bdfa;}function za(_0x6eb8ea){const _0x31ae6b=_0xfaec6d;if(_0x6eb8ea&&typeof _0x6eb8ea==_0x31ae6b(0x148)&&!Array[_0x31ae6b(0x183)](_0x6eb8ea)){let _0x4e8288=_0x6eb8ea;return{'text':String(_0x4e8288['text']??_0x4e8288[_0x31ae6b(0x252)]??''),'url':String(_0x4e8288[_0x31ae6b(0x252)]??'')};}return{'text':Q(_0x6eb8ea),'url':Q(_0x6eb8ea)};}function Ba(_0x5419cf){const _0x368688=_0xfaec6d;let _0x3126ad=za(_0x5419cf);return _0x3126ad['text']||_0x3126ad[_0x368688(0x252)];}function Va(_0xd6dfba,_0x50525d){const _0xc673e9=_0xfaec6d;return typeof _0xd6dfba!='number'||!Number[_0xc673e9(0xe4)](_0xd6dfba)?'':_0x3bac59(_0xd6dfba,_0x50525d[_0xc673e9(0x2c6)]);}function Ha(_0x2f58ff,_0x12729b){const _0x5167ad=_0xfaec6d;let _0x2d54ae=typeof _0x2f58ff==_0x5167ad(0x1d5)?_0x2f58ff:Number(_0x2f58ff);return Number['isFinite'](_0x2d54ae)?Si(_0x2d54ae,_0x12729b['config']):'';}function Ua(_0x3857d7,_0x26a88b){const _0x4e2597=_0xfaec6d;let _0x2215ca=typeof _0x3857d7=='number'?_0x3857d7:Number(_0x3857d7);return Number['isFinite'](_0x2215ca)?Di(_0x2215ca,_0x26a88b[_0x4e2597(0x2c6)]):'';}function Wa(_0x1ccaf4){const _0x5179eb=_0xfaec6d;return Array[_0x5179eb(0x183)](_0x1ccaf4)?_0x1ccaf4[_0x5179eb(0xce)](_0x3a1c5e=>{const _0x24eb13=_0x5179eb;if(!_0x3a1c5e||typeof _0x3a1c5e!=_0x24eb13(0x148))return[];let _0x3430cc=_0x3a1c5e,_0xbd4563=String(_0x3430cc[_0x24eb13(0x267)]??_0x3430cc[_0x24eb13(0x252)]??'')[_0x24eb13(0x2fc)]();return _0xbd4563?[_0xbd4563]:[];}):[];}function Q(_0x59edce){const _0x2e0b87=_0xfaec6d;if(_0x59edce==null)return'';if(typeof _0x59edce==_0x2e0b87(0x19a))return _0x59edce?_0x2e0b87(0x273):_0x2e0b87(0xf2);if(typeof _0x59edce==_0x2e0b87(0x1d5))return String(_0x59edce);if(Array[_0x2e0b87(0x183)](_0x59edce)){let _0x51f2d5=[];for(let _0x56c7e3=0x0;_0x56c7e3<_0x59edce['length'];_0x56c7e3++){if(!(_0x56c7e3 in _0x59edce))continue;let _0xe7afa1=Q(_0x59edce[_0x56c7e3]);_0xe7afa1&&_0x51f2d5[_0x2e0b87(0x27e)](_0xe7afa1);}return _0x51f2d5[_0x2e0b87(0x21a)](',\x20');}if(typeof _0x59edce==_0x2e0b87(0x148)){let _0x5785df=_0x59edce;return String(_0x5785df[_0x2e0b87(0x155)]??_0x5785df[_0x2e0b87(0x267)]??_0x5785df[_0x2e0b87(0x2aa)]??_0x5785df['url']??'')['trim']();}return String(_0x59edce);}function Ga(_0x5d85fb,_0x53b575){const _0x1bd903=_0xfaec6d;let _0x48af57=0x0;for(let _0x562948 of _0x53b575)_0x562948&&(_0x562948===_0x5d85fb?_0x48af57=Math[_0x1bd903(0x236)](_0x48af57,0x12c):_0x562948['startsWith'](_0x5d85fb)?_0x48af57=Math[_0x1bd903(0x236)](_0x48af57,0xfa):_0x562948[_0x1bd903(0x15c)](_0x5d85fb)&&(_0x48af57=Math[_0x1bd903(0x236)](_0x48af57,0xc8)));return _0x48af57;}function Ka(_0x4d4291){const _0x3e2165=_0xfaec6d;return _0x4d4291[_0x3e2165(0x2fc)]()[_0x3e2165(0x1ea)](/\s+/g,'\x20')['toLowerCase']();}function qa(_0x4ceb06){const _0x886a81=_0xfaec6d;return Array[_0x886a81(0x309)](new Set(_0x4ceb06));}function Ja(_0x25ad63){const _0x434129=_0xfaec6d;let _0x1d439e=[];for(let {rowIndex:_0xca57e1,fieldIndex:_0x5501aa,..._0x2e88e0}of _0x25ad63)_0x1d439e[_0x434129(0x27e)](_0x2e88e0);return _0x1d439e;}function Ya(_0x312efc){const _0x110da5=_0xfaec6d;return{'compress':!0x0,'kind':_0x110da5(0x11c),'u':_0x312efc[_0x110da5(0x207)],'t':_0x312efc[_0x110da5(0x2a8)],'p':_0x312efc[_0x110da5(0x27c)]['map'](_0x2f103c=>[_0x2f103c[_0x110da5(0x172)],_0x2f103c[_0x110da5(0x104)],$a(_0x2f103c['value'])]),..._0x312efc[_0x110da5(0x25f)]===void 0x0?{}:{'g':_0x312efc['trigger']}};}function Xa(_0x901085){const _0x574f9a=_0xfaec6d;if(oo(_0x901085,_0x574f9a(0x11c)),!Za(_0x901085)){if(!ao(_0x901085))throw Error(_0x574f9a(0x134));return _0x901085;}return{'unitId':_0x901085['u'],'tableId':_0x901085['t'],'patches':_0x901085['p'][_0x574f9a(0xdc)](([_0x40afee,_0x4f37f8,_0x580906])=>({'row':_0x40afee,'col':_0x4f37f8,'value':eo(_0x580906)})),..._0x901085['g']===void 0x0?{}:{'trigger':_0x901085['g']}};}function Za(_0xab9b6){const _0x5c7223=_0xfaec6d;return!$(_0xab9b6)||_0xab9b6[_0x5c7223(0x1f4)]!==!0x0||_0xab9b6['kind']!==_0x5c7223(0x11c)?!0x1:typeof _0xab9b6['u']=='string'&&typeof _0xab9b6['t']==_0x5c7223(0xd0)&&(_0xab9b6['g']===void 0x0||typeof _0xab9b6['g']==_0x5c7223(0xd0))&&Array[_0x5c7223(0x183)](_0xab9b6['p'])&&_0xab9b6['p'][_0x5c7223(0xe2)](_0xa7dfd2=>Array[_0x5c7223(0x183)](_0xa7dfd2)&&_0xa7dfd2[_0x5c7223(0x317)]===0x3&&Number[_0x5c7223(0x279)](_0xa7dfd2[0x0])&&Number[_0x5c7223(0x279)](_0xa7dfd2[0x1]));}function Qa(_0x5569b4){const _0x747fbb=_0xfaec6d;return!$(_0x5569b4)||_0x5569b4[_0x747fbb(0x1f4)]!==!0x0||_0x5569b4['kind']!==_0x747fbb(0x2c9)||!$(_0x5569b4[_0x747fbb(0x2fe)])?!0x1:Object[_0x747fbb(0xa3)](_0x5569b4['tables'])[_0x747fbb(0xe2)](_0x41e9f9=>$(_0x41e9f9)&&(_0x41e9f9['cd']===void 0x0||Array['isArray'](_0x41e9f9['cd'])&&_0x41e9f9['cd'][_0x747fbb(0xe2)](_0x167289=>Array['isArray'](_0x167289)&&_0x167289[_0x747fbb(0x317)]===0x3&&Number[_0x747fbb(0x279)](_0x167289[0x0])&&Number[_0x747fbb(0x279)](_0x167289[0x1])&&io(_0x167289[0x2]))));}function $a(_0x17033b){return ro(_0x17033b)?to(_0x17033b):_0x17033b;}function eo(_0x307eb5){return io(_0x307eb5)?no(_0x307eb5):_0x307eb5;}function to(_0x3081f2){return{'c':0x1,..._0x3081f2['v']===void 0x0?{}:{'v':_0x3081f2['v']},..._0x3081f2['t']!==void 0x0&&_0x3081f2['t']!==null?{'t':_0x3081f2['t']}:_0x3081f2['t']===null?{'t':null}:{},..._0x3081f2['f']!==void 0x0&&_0x3081f2['f']!==null?{'f':_0x3081f2['f']}:_0x3081f2['f']===null?{'f':null}:{},..._0x3081f2['si']!==void 0x0&&_0x3081f2['si']!==null?{'si':_0x3081f2['si']}:_0x3081f2['si']===null?{'si':null}:{},..._0x3081f2['p']!==void 0x0&&_0x3081f2['p']!==null?{'p':_0x3081f2['p']}:_0x3081f2['p']===null?{'p':null}:{}};}function no(_0x4eb813){return{..._0x4eb813['v']===void 0x0?{}:{'v':_0x4eb813['v']},..._0x4eb813['t']===void 0x0?{}:{'t':_0x4eb813['t']},..._0x4eb813['f']===void 0x0?{}:{'f':_0x4eb813['f']},..._0x4eb813['si']===void 0x0?{}:{'si':_0x4eb813['si']},..._0x4eb813['p']===void 0x0?{}:{'p':_0x4eb813['p']}};}function ro(_0x41f664){const _0x150b39=_0xfaec6d;return!!_0x41f664&&typeof _0x41f664==_0x150b39(0x148)&&!Array[_0x150b39(0x183)](_0x41f664)&&(Object[_0x150b39(0x119)]['hasOwnProperty'][_0x150b39(0x2cc)](_0x41f664,'v')||Object[_0x150b39(0x119)][_0x150b39(0x283)][_0x150b39(0x2cc)](_0x41f664,'t')||Object[_0x150b39(0x119)][_0x150b39(0x283)][_0x150b39(0x2cc)](_0x41f664,'p')||Object['prototype']['hasOwnProperty'][_0x150b39(0x2cc)](_0x41f664,'f')||Object[_0x150b39(0x119)][_0x150b39(0x283)]['call'](_0x41f664,'si'));}function io(_0x3bb7b8){return $(_0x3bb7b8)&&_0x3bb7b8['c']===0x1;}function ao(_0x5ee2cc){const _0x1b3d4f=_0xfaec6d;return $(_0x5ee2cc)&&typeof _0x5ee2cc[_0x1b3d4f(0x207)]==_0x1b3d4f(0xd0)&&typeof _0x5ee2cc[_0x1b3d4f(0x2a8)]==_0x1b3d4f(0xd0)&&(_0x5ee2cc['trigger']===void 0x0||typeof _0x5ee2cc[_0x1b3d4f(0x25f)]==_0x1b3d4f(0xd0))&&Array['isArray'](_0x5ee2cc['patches'])&&_0x5ee2cc[_0x1b3d4f(0x27c)]['every'](_0x118075=>$(_0x118075)&&Number[_0x1b3d4f(0x279)](_0x118075[_0x1b3d4f(0x172)])&&Number[_0x1b3d4f(0x279)](_0x118075[_0x1b3d4f(0x104)])&&'value'in _0x118075);}function oo(_0x2d47c9,_0x2b4628){const _0x47f168=_0xfaec6d;if($(_0x2d47c9)&&_0x2d47c9[_0x47f168(0x1f4)]===!0x0){if(_0x2d47c9[_0x47f168(0x217)]!==_0x2b4628)throw Error(_0x47f168(0x282)+String(_0x2d47c9['kind'])+'\x22.');if(!(_0x2b4628===_0x47f168(0x11c)?Za(_0x2d47c9):Qa(_0x2d47c9)))throw Error(_0x47f168(0x307)+_0x2b4628+'\x22.');}}function $(_0x3feda0){const _0xeabe6b=_0xfaec6d;return!!_0x3feda0&&typeof _0x3feda0==_0xeabe6b(0x148)&&!Array[_0xeabe6b(0x183)](_0x3feda0);}export{_0x34963f as ApplyBaseJson1Mutation,ki as BASE_FIELD_STAT_TYPES,_0xa58188 as BASE_HIERARCHY_MAX_LEVELS,_0x147b81 as BASE_HIERARCHY_PARENT_FIELD_ID,rr as BASE_TABLE_NAME_REQUIREMENTS,Kt as BASE_UNIT_PERMISSION_ACTIONS,ii as BaseConditionalColorRuleUpdateType,_0x4f57b5 as BaseEventSource,En as BaseFormulaService,_0x2c1e93 as BaseHierarchyError,_0x2776ed as BaseHierarchyErrorCode,_0x415792 as BaseHistoryAction,_0x445a5d as BaseJson1OpApplier,K as BaseJson1OpFactory,Zn as BatchCreateBaseRecordsCommand,Qn as BatchDeleteBaseRecordsCommand,$n as ChangeBaseFieldTypeCommand,er as CreateBaseChildRecordCommand,tr as CreateBaseFieldCommand,nr as CreateBaseRecordCommand,or as CreateBaseTableCommand,xr as CreateBaseViewCommand,Sr as DeleteBaseFieldCommand,Cr as DeleteBaseRecordCommand,wr as DeleteBaseTableCommand,Tr as DeleteBaseViewCommand,Er as DuplicateBaseFieldCommand,Dr as DuplicateBaseRecordCommand,gi as EMBED_BASES_TABLE_RESOURCE_KEY,Or as EnsureBaseTemporalViewDateFieldsCommand,X as IBaseCommandService,cn as IBasePermissionService,_0x292006 as IBaseProjectionService,ka as IBaseViewRegistryService,jr as MoveBaseFieldCommand,Mr as MoveBaseHierarchyRecordCommand,Ir as MoveBaseViewCommand,Lr as RenameBaseTableCommand,Rr as RenameBaseViewCommand,zr as SetBaseKanbanGroupFieldCommand,Br as SetBaseNameCommand,Vr as SetBasePermissionCommand,pi as SetBasePermissionRuleMutation,mi as SetBasePermissionRulesMutation,Hr as SetBasePermissionsCommand,Wr as SetBaseRangeValuesCommand,Gr as SetBaseRecordValuesCommand,Kr as SetBaseTableHierarchyFieldCommand,qr as SetBaseViewFieldOrderCommand,Jr as SetBaseViewFieldVisibleCommand,Yr as SetBaseViewFieldWidthCommand,Xr as SetBaseViewFilterCommand,Zr as SetBaseViewGroupCommand,Qr as SetBaseViewSortCommand,Ma as UniverBasesPlugin,_0x5131c6 as UniverRemoteBasesPlugin,$r as UpdateBaseCellCommand,ti as UpdateBaseFieldCommand,ei as UpdateBaseFieldDescriptionCommand,ni as UpdateBaseKanbanConfigCommand,ri as UpdateBaseRecordOrderCommand,ai as UpdateBaseViewConditionalColorRulesCommand,ui as UpdateBaseViewConfigCommand,di as ValidateBaseFormulaCommand,_0x25f8ac as baseDateSerialToDateMs,_0x252898 as buildBaseHierarchyIndex,Bi as calculateBaseFieldStat,sn as canEditBaseTargets,Ya as compressBaseRangeValuesPayload,aa as copyBaseTableSnapshot,_0x1cd0c2 as createBaseHierarchyParentField,hi as createDefaultBaseTableSnapshot,_i as createEmbedBasesTable,vi as createEmbedBasesTableAddMutation,yi as createEmbedBasesTableRemoveMutation,ar as createUniqueBaseTableName,_0x1f7b6f as dateToExcelSerial,Xa as decompressBaseRangeValuesPayload,_0x470fe8 as ensureBaseTableCellLayout,_0xad927a as findRecordLinkReferences,_0x3bac59 as formatBaseDateValue,Vi as formatBaseFieldStatValue,Si as formatBaseNumberValue,Di as formatBaseProgressValue,_0x128bba as getActiveBaseHierarchyFieldIds,_0x5bf140 as getBaseCellFormulaValue,_0x1b8729 as getBaseCellValue,_0x1be76b as getBaseConditionalColorOperators,en as getBaseDashboardPermissionObjectId,J as getBaseFieldPermissionObjectId,_0x4f91de as getBaseFormulaTableName,_0x1912a0 as getBaseHierarchyDeletePromotions,_0x103c1d as getBaseHierarchyFieldId,nn as getBasePermissionValue,Y as getBaseRecordPermissionObjectId,q as getBaseTablePermissionObjectId,$t as getBaseViewPermissionObjectId,_0x252b80 as getRecordLinkFieldConfig,Ri as getSupportedBaseFieldStatTypes,_0x973dba as getVisibleBaseHierarchyRows,Ei as inferBaseSeparatorStyle,_0x1fa0e7 as isBaseConditionalColorDateField,Hi as isBaseFieldStatEmptyValue,zi as isBaseFieldStatSupported,Ii as isBaseFieldStatType,_0x567ec0 as isBaseHierarchyField,Za as isCompressedBaseRangeValuesPayload,_0x7fe7d9 as matchesBaseCondition,_0xa12fc8 as normalizeBaseDateFieldConfig,_0x4c8ce9 as normalizeBaseDateSerial,Li as normalizeBaseFieldStatsConfig,_0xc7f959 as parseRecordLinkIds,_0x4af7a6 as projectBaseHierarchy,_0x347a63 as resolveBaseDateFieldConfig,_0x4cdd92 as resolveBaseHierarchyFieldId,Ur as resolveBaseRangeHierarchyPatches,Na as searchBaseTable,_0x28fb5f as serializeRecordLinkIds,rn as setBasePermissionValue,_0x5d2ca0 as traceBasePerformance,sr as uniqueFieldName,_0xf1954 as validateBaseHierarchyMove,_0x17e97 as validateBaseHierarchyRecordCreations,_0x4ee248 as validateBaseHierarchyRecordPatches,ir as validateBaseTableName,_0x1695f4 as validateCanonicalRecordLinkValue,_0x5d4051 as validateRecordLinkField,_0x568b68 as validateRecordLinkValue};
|