@univerjs-pro/bases 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x354fcb=_0x48d8;(function(_0x14c018,_0x5b1382){const _0x23cbd7=_0x48d8,_0x123ec2=_0x14c018();while(!![]){try{const _0x4b267c=-parseInt(_0x23cbd7(0x48a))/0x1+parseInt(_0x23cbd7(0x323))/0x2*(parseInt(_0x23cbd7(0x21d))/0x3)+parseInt(_0x23cbd7(0x42a))/0x4*(-parseInt(_0x23cbd7(0x2ed))/0x5)+-parseInt(_0x23cbd7(0x2e6))/0x6+parseInt(_0x23cbd7(0x495))/0x7*(parseInt(_0x23cbd7(0x34f))/0x8)+-parseInt(_0x23cbd7(0x529))/0x9+parseInt(_0x23cbd7(0x32f))/0xa*(parseInt(_0x23cbd7(0x412))/0xb);if(_0x4b267c===_0x5b1382)break;else _0x123ec2['push'](_0x123ec2['shift']());}catch(_0x3256cc){_0x123ec2['push'](_0x123ec2['shift']());}}}(_0x2357,0x947d9));import{BASE_RECORD_ID_FIELD_ID as _0x3b44b5,BaseConditionalColorOperator as _0x79efc5,BaseConditionalColorTarget as _0x54bac1,BaseConditionalDateMode as _0x173d28,BaseDataModel as _0x2563fc,BaseFieldType as _0x19bf94,BaseFilterConjunction as _0x12daa6,BaseHierarchyInvalidReason as _0x3f9b5e,BaseRecordLinkRole as _0x170c14,BaseSortDirection as _0x7258f,BaseViewType as _0x2b4a2c,CellValueType as _0x149f0a,ColorKit as _0x3d2caa,CommandType as _0x3e23cf,CustomCommandExecutionError as _0x1cfc9b,DateSystem as _0x4547e4,DependentOn as _0x1bcd22,Disposable as _0x1589db,ErrorService as _0x359424,ICommandService as _0x3ff846,IConfigService as _0x14686f,IPermissionService as _0x211d15,IResourceManagerService as _0xee5072,IUndoRedoService as _0x5153d9,IUniverInstanceService as _0x3414e2,Inject as _0x42d70a,Injector as _0xcce289,JSON1 as _0x370803,JSONX as _0x426ad9,ObjectMatrix as _0x4bc349,ObjectPermissionRuleModel as _0x4a896e,ObjectPermissionService as _0x1e71b2,Optional as _0x560f5b,PermissionStatus as _0x15f2b3,Plugin as _0xf65dbf,Tools as _0x30f9db,UniverInstanceType as _0x28d752,allocateBaseFormulaTableName as _0x3ec76b,assertBaseTableRecordIdentity as _0x136f40,createBaseFormulaTableNameMap as _0x49362b,createBaseRecordIdField as _0x5c3ee9,createIdentifier as _0x5d0ae0,dateKit as _0x5cea60,excelDateTimeSerial as _0xa41fad,excelSerialToDateTime as _0x156e38,generateRandomId as _0x3ba5f0,getBaseFormulaTableName as _0x5d9833,isBaseRecordIdFieldName as _0x37b436,isValidBaseRecordId as _0x3605be,merge as _0x18cc98,nameCharacterCheck as _0x5b975c,numfmt as _0x5e5ce5,regexp as _0x1ae19d,sequenceExecute as _0x47a83f,toDisposable as _0x5b4066,touchDependencies as _0x137ee0}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x4f3c26,IActiveDirtyManagerService as _0x35d62c,RemoveSuperTableMutation as _0x5d6472,SetFormulaCalculationResultMutation as _0x2d710f,SetSuperTableMutation as _0x33aa29,SetTriggerFormulaCalculationStartMutation as _0x46501c,UniverProFormulaEnginePlugin as _0x36289a,refactorFormulaUnitQualifier as _0x5981a8}from'@univerjs-pro/engine-formula';import{UnitAction as _0x391870,UnitObject as _0x56e21f}from'@univerjs/protocol';import{UniverLicensePlugin as _0x534d74}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x274988}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x1a1f33,FormulaResultApplicationType as _0x2001ae}from'@univerjs/engine-formula';function N(_0x1b83d5){const _0x77a462=_0x48d8;let _0x483dd8=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1ab)],_0x3caf20=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x215)],_0x23e744=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1e9)],_0x230351=_0x1b83d5['config'][_0x77a462(0x28e)],_0x43e002=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x274)];return typeof _0x483dd8!='string'||!_0x483dd8||typeof _0x3caf20!=_0x77a462(0x364)||_0x23e744!==void 0x0&&(typeof _0x23e744!=_0x77a462(0x471)||!_0x23e744)||_0x43e002!==void 0x0&&_0x43e002!==_0x170c14[_0x77a462(0x3a0)]||_0x230351!==void 0x0&&(!Array[_0x77a462(0x354)](_0x230351)||_0x230351[_0x77a462(0x257)](_0x545c8e=>typeof _0x545c8e!=_0x77a462(0x471)||!_0x545c8e)||new Set(_0x230351)['size']!==_0x230351[_0x77a462(0x458)])?null:{'targetTableId':_0x483dd8,'multiple':_0x3caf20,..._0x23e744?{'displayFieldId':_0x23e744}:{},..._0x230351?{'pickerFieldIds':[..._0x230351]}:{},..._0x43e002?{'relationRole':_0x43e002}:{}};}function Le(_0x268bd0){const _0xc3b165=_0x48d8;return typeof _0x268bd0!=_0xc3b165(0x471)||_0x268bd0===''?[]:_0x268bd0['split'](',');}function Re(_0x5b15c1){const _0x29cd03=_0x48d8;return Array[_0x29cd03(0x4dd)](new Set(_0x5b15c1))[_0x29cd03(0x4b5)](',');}function ze(_0x2cbe7a,_0x1d6e8e){const _0x350bb6=_0x48d8;if(typeof _0x2cbe7a!=_0x350bb6(0x471))return{'valid':!0x1,'reason':_0x350bb6(0x3ea)};if(_0x2cbe7a==='')return{'valid':!0x0};let _0x172c9b=_0x2cbe7a[_0x350bb6(0x1c5)](',');return!_0x1d6e8e&&_0x172c9b[_0x350bb6(0x458)]>0x1?{'valid':!0x1,'reason':_0x350bb6(0x404)}:_0x172c9b[_0x350bb6(0x257)](_0x1cea61=>!_0x3605be(_0x1cea61))||new Set(_0x172c9b)[_0x350bb6(0x473)]!==_0x172c9b[_0x350bb6(0x458)]||Re(_0x172c9b)!==_0x2cbe7a?{'valid':!0x1,'reason':_0x350bb6(0x3ec)}:{'valid':!0x0};}function Be(_0x101a62,_0x27ecee){const _0x30b013=_0x48d8;if(_0x27ecee[_0x30b013(0x33a)]!==_0x19bf94[_0x30b013(0x2bd)])return{'valid':!0x0};let _0x26dcc1=N(_0x27ecee),_0x2d46fe=_0x26dcc1?_0x101a62[_0x30b013(0x2ba)][_0x26dcc1[_0x30b013(0x1ab)]]:void 0x0;if(!_0x26dcc1||!_0x2d46fe)return{'valid':!0x1,'reason':_0x30b013(0x23c)};let _0x13e60c=[..._0x26dcc1[_0x30b013(0x1e9)]?[_0x26dcc1[_0x30b013(0x1e9)]]:[],..._0x26dcc1[_0x30b013(0x28e)]??[]][_0x30b013(0x22f)](_0x2082e0=>{const _0x5f537c=_0x30b013;let _0x5e01e4=_0x2d46fe['fields'][_0x2082e0];return!_0x5e01e4||_0x5e01e4[_0x5f537c(0x1cb)]===!0x0||_0x5e01e4[_0x5f537c(0x33a)]===_0x19bf94[_0x5f537c(0x44f)];});return _0x13e60c?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x13e60c+_0x30b013(0x3c0)}:{'valid':!0x0};}function Ve(_0x4227bd,_0x3c36d0,_0x3c0bce,_0x4f91ca={}){const _0x22a23c=_0x48d8;let _0x496096=N(_0x3c36d0);if(_0x3c36d0[_0x22a23c(0x33a)]!==_0x19bf94[_0x22a23c(0x2bd)]||!_0x496096)return{'valid':!0x1,'reason':_0x22a23c(0x436)};let _0x3dcbef=ze(_0x3c0bce,_0x496096[_0x22a23c(0x215)]);if(!_0x3dcbef[_0x22a23c(0x35c)]||_0x4f91ca[_0x22a23c(0x4ed)])return _0x3dcbef;let _0x23173c=_0x4227bd[_0x22a23c(0x2ba)][_0x496096['targetTableId']];if(!_0x23173c)return{'valid':!0x1,'reason':_0x22a23c(0x23c)};let _0x57feba=Le(_0x3c0bce)[_0x22a23c(0x22f)](_0x35e12d=>!_0x23173c['records'][_0x35e12d]);return _0x57feba?{'valid':!0x1,'reason':_0x22a23c(0x4e3)+_0x57feba+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0x3e67a7,_0x41f9ba){const _0x2ba1ea=_0x48d8;return Object['values'](_0x3e67a7[_0x2ba1ea(0x2ba)])[_0x2ba1ea(0x2a2)](_0x1bfd18=>Object[_0x2ba1ea(0x1da)](_0x1bfd18[_0x2ba1ea(0x480)])[_0x2ba1ea(0x2a2)](_0x4847f8=>{const _0x3ace01=_0x2ba1ea;let _0x398de2=_0x4847f8['type']===_0x19bf94['RecordLink']?N(_0x4847f8):null;return(_0x398de2==null?void 0x0:_0x398de2[_0x3ace01(0x1ab)])===_0x41f9ba?[{'tableId':_0x1bfd18['id'],'fieldId':_0x4847f8['id']}]:[];}));}const Ue=0x5,We='__base_hierarchy_parent__';let Ge=function(_0x4be870){const _0x34ee5c=_0x48d8;return _0x4be870[_0x34ee5c(0x420)]=_0x34ee5c(0x4a7),_0x4be870[_0x34ee5c(0x173)]=_0x34ee5c(0x33b),_0x4be870[_0x34ee5c(0x47b)]=_0x34ee5c(0x4e2),_0x4be870[_0x34ee5c(0x270)]='cycle',_0x4be870['MaxDepth']='maxDepth',_0x4be870[_0x34ee5c(0x3ad)]=_0x34ee5c(0x265),_0x4be870;}({});var P=class extends Error{constructor(_0x13fca8,_0x561d74=_0x354fcb(0x263)+_0x13fca8){const _0x40e87b=_0x354fcb;super(_0x561d74),this[_0x40e87b(0x286)]=_0x13fca8,this['name']='BaseHierarchyError';}};let Ke=function(_0x3ad43f){const _0x272854=_0x354fcb;return _0x3ad43f['UI']='ui',_0x3ad43f['Facade']=_0x272854(0x295),_0x3ad43f[_0x272854(0x3e2)]=_0x272854(0x4c7),_0x3ad43f[_0x272854(0x344)]=_0x272854(0x37e),_0x3ad43f[_0x272854(0x264)]='redo',_0x3ad43f[_0x272854(0x4d5)]=_0x272854(0x353),_0x3ad43f;}({});function F(_0x51ad2f,_0x18bbb6){const _0x2a57ac=_0x354fcb;if(!_0x18bbb6)return!0x1;let _0x2078e7=_0x51ad2f['fields'][_0x18bbb6];if(!_0x2078e7||_0x2078e7[_0x2a57ac(0x33a)]!==_0x19bf94[_0x2a57ac(0x2bd)])return!0x1;let _0x1049ba=N(_0x2078e7);return _0x1049ba?_0x1049ba[_0x2a57ac(0x1ab)]===_0x51ad2f['id']&&_0x1049ba[_0x2a57ac(0x215)]===!0x1:!0x1;}function qe(_0xe20b6c){const _0x9247e0=_0x354fcb;return[..._0xe20b6c['fieldOrder'],...Object[_0x9247e0(0x51b)](_0xe20b6c[_0x9247e0(0x480)])[_0x9247e0(0x397)](_0x3ddf28=>!_0xe20b6c[_0x9247e0(0x1e1)][_0x9247e0(0x231)](_0x3ddf28))['sort']()][_0x9247e0(0x22f)](_0x1b3c20=>{const _0x1428b5=_0x9247e0;var _0x258498;return F(_0xe20b6c,_0x1b3c20)?((_0x258498=N(_0xe20b6c[_0x1428b5(0x480)][_0x1b3c20]))==null?void 0x0:_0x258498[_0x1428b5(0x274)])===_0x170c14[_0x1428b5(0x3a0)]:!0x1;})??null;}function Je(_0x2df4d8){const _0x2d89a9=_0x354fcb;let _0x319d25=qe(_0x2df4d8);if(_0x319d25)return _0x319d25;let _0x25dc72=We,_0x503111=0x2;for(;_0x2df4d8[_0x2d89a9(0x480)][_0x25dc72];)_0x25dc72=We+'_'+_0x503111++;return _0x25dc72;}function Ye(_0x2a8c2a,_0x13c0fa=Je(_0x2a8c2a),_0x498dd7=_0x354fcb(0x44b)){const _0x194fbe=_0x354fcb;return{'id':_0x13c0fa,'name':_0x498dd7,'type':_0x19bf94[_0x194fbe(0x2bd)],'config':{'targetTableId':_0x2a8c2a['id'],'multiple':!0x1,'displayFieldId':_0x2a8c2a['primaryFieldId'],'pickerFieldIds':[_0x2a8c2a[_0x194fbe(0x4cf)]],'relationRole':_0x170c14[_0x194fbe(0x3a0)]}};}function Xe(_0x4f65c1){let _0xdd503e=qe(_0x4f65c1);return _0xdd503e?[_0xdd503e]:[];}function Ze(_0x1710b0,_0xe482a2){const _0x40c6a9=_0x354fcb;let _0x576bc1=[...Xe(_0x1710b0)][_0x40c6a9(0x397)](_0x5a419a=>_0xe482a2[_0x40c6a9(0x257)](_0x181ece=>Object[_0x40c6a9(0x32b)]['hasOwnProperty'][_0x40c6a9(0x331)](_0x181ece[_0x40c6a9(0x1da)],_0x5a419a)));if(!_0x576bc1[_0x40c6a9(0x458)])return[];let _0x167b9={..._0x1710b0['records']};_0xe482a2['forEach'](_0x3f1033=>{const _0x1d4aa2=_0x40c6a9;let _0x59a4fe=_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]];_0x59a4fe&&(_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]]={..._0x59a4fe,'values':{..._0x59a4fe[_0x1d4aa2(0x1da)],..._0x3f1033[_0x1d4aa2(0x1da)]}});});let _0x23b45a={..._0x1710b0,'records':_0x167b9},_0xa32648=[];return _0x576bc1[_0x40c6a9(0x461)](_0x4df01d=>{const _0x440053=_0x40c6a9;let _0x7b3f82=tt(_0x1710b0,_0x4df01d),_0x3d6de2=tt(_0x23b45a,_0x4df01d);for(let [_0x588e49,_0x4a432]of _0x3d6de2[_0x440053(0x243)]){let _0x155f44=_0xe482a2[_0x440053(0x257)](_0x22b0fa=>_0x22b0fa[_0x440053(0x4bb)]===_0x588e49&&Object[_0x440053(0x32b)][_0x440053(0x42f)]['call'](_0x22b0fa[_0x440053(0x1da)],_0x4df01d));if(_0x7b3f82['invalidReasonByRecordId'][_0x440053(0x4a8)](_0x588e49)!==_0x4a432||_0x155f44)throw new P($e(_0x4a432));}_0xe482a2[_0x440053(0x461)](_0x1e3c17=>{const _0x431dca=_0x440053;if(!Object[_0x431dca(0x32b)][_0x431dca(0x42f)][_0x431dca(0x331)](_0x1e3c17['values'],_0x4df01d))return;let _0x324725=_0x7b3f82[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17['recordId'])??null,_0x55b7a5=_0x3d6de2[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17[_0x431dca(0x4bb)])??null;_0x324725!==_0x55b7a5&&_0xa32648[_0x431dca(0x1f3)]({'tableId':_0x1710b0['id'],'fieldId':_0x4df01d,'recordId':_0x1e3c17[_0x431dca(0x4bb)],'oldParentRecordId':_0x324725,'parentRecordId':_0x55b7a5});});}),_0xa32648;}function Qe(_0x4dc622,_0x365b08){const _0x5e4a26=_0x354fcb;let _0x6ea3c=_0x365b08[_0x5e4a26(0x29b)](_0x5ce93d=>_0x5ce93d['id']);if(new Set(_0x6ea3c)[_0x5e4a26(0x473)]!==_0x6ea3c['length']||_0x6ea3c['some'](_0x7c3952=>_0x4dc622[_0x5e4a26(0x45a)][_0x7c3952]))return[];let _0x293c95=Xe(_0x4dc622),_0xd9895c=_0x293c95[_0x5e4a26(0x458)]?null:Je(_0x4dc622),_0x27f219=[..._0x293c95,..._0xd9895c&&_0x365b08['some'](_0x3c6499=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x3c6499[_0x5e4a26(0x1da)],_0xd9895c))?[_0xd9895c]:[]]['filter'](_0x74737c=>_0x365b08[_0x5e4a26(0x257)](_0x372523=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x372523[_0x5e4a26(0x1da)],_0x74737c)));if(!_0x27f219[_0x5e4a26(0x458)])return[];let _0x32087e={..._0x4dc622,'records':{..._0x4dc622[_0x5e4a26(0x45a)],...Object[_0x5e4a26(0x2e8)](_0x365b08[_0x5e4a26(0x29b)](_0x3fb6a5=>[_0x3fb6a5['id'],_0x3fb6a5]))},'recordOrder':[..._0x4dc622[_0x5e4a26(0x22d)]??[],..._0x365b08[_0x5e4a26(0x29b)](_0x1bada3=>_0x1bada3['id'])]},_0x5864cb=[];return _0x27f219['forEach'](_0x2ebd84=>{const _0x24cb3f=_0x5e4a26;let _0x5d50f7=tt(_0x32087e,_0x2ebd84);_0x365b08[_0x24cb3f(0x461)](_0xeb6c0=>{const _0x57ceab=_0x24cb3f;let _0x879faa=_0x5d50f7[_0x57ceab(0x243)]['get'](_0xeb6c0['id']);if(_0x879faa)throw new P($e(_0x879faa));let _0x559bbf=_0x5d50f7[_0x57ceab(0x36e)][_0x57ceab(0x4a8)](_0xeb6c0['id'])??null;_0x559bbf&&_0x5864cb[_0x57ceab(0x1f3)]({'tableId':_0x4dc622['id'],'fieldId':_0x2ebd84,'recordId':_0xeb6c0['id'],'oldParentRecordId':null,'parentRecordId':_0x559bbf});});}),_0x5864cb;}function $e(_0x3d7907){const _0x58b07c=_0x354fcb;switch(_0x3d7907){case _0x3f9b5e[_0x58b07c(0x1a2)]:return _0x58b07c(0x33b);case _0x3f9b5e[_0x58b07c(0x47b)]:return'selfParent';case _0x3f9b5e[_0x58b07c(0x270)]:return _0x58b07c(0x363);case _0x3f9b5e[_0x58b07c(0x3ca)]:return _0x58b07c(0x228);}}function et(_0x260145,_0xfbbbe0){const _0x4ea0f7=_0x354fcb;let _0x2d07c6=new Set(_0xfbbbe0),_0x5d3097=Xe(_0x260145);return Object[_0x4ea0f7(0x1da)](_0x260145['records'])[_0x4ea0f7(0x2a2)](_0x7bae6b=>_0x2d07c6[_0x4ea0f7(0x23f)](_0x7bae6b['id'])?[]:Array[_0x4ea0f7(0x4dd)](_0x5d3097)[_0x4ea0f7(0x2a2)](_0x482141=>{const _0x4fe4f4=_0x4ea0f7;let _0x347cbf=Le(_0x7bae6b['values'][_0x482141])[0x0]??null;return _0x347cbf&&_0x2d07c6[_0x4fe4f4(0x23f)](_0x347cbf)?[{'tableId':_0x260145['id'],'fieldId':_0x482141,'recordId':_0x7bae6b['id'],'oldParentRecordId':_0x347cbf,'parentRecordId':null}]:[];}));}function tt(_0x46f903,_0xdc4986,_0x3f01e6=_0x46f903[_0x354fcb(0x22d)]??Object[_0x354fcb(0x51b)](_0x46f903['records'])){const _0x1e22db=_0x354fcb;if((_0x46f903[_0x1e22db(0x480)][_0xdc4986]||_0xdc4986!==Je(_0x46f903))&&!F(_0x46f903,_0xdc4986))throw Error(_0x1e22db(0x2dd)+_0xdc4986+_0x1e22db(0x1f1));let _0x1d7344=at(_0x46f903,_0x3f01e6),_0x452be3=new Map(),_0x4b1151=new Map();for(let _0x2860f7 of _0x1d7344){var _0x21c3c3;let _0x42ee2=Le((_0x21c3c3=_0x46f903[_0x1e22db(0x45a)][_0x2860f7])==null?void 0x0:_0x21c3c3[_0x1e22db(0x1da)][_0xdc4986])[0x0]??null;_0x42ee2?_0x42ee2===_0x2860f7?(_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e['SelfParent'])):_0x46f903['records'][_0x42ee2]?_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,_0x42ee2):(_0x452be3['set'](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e[_0x1e22db(0x1a2)])):_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null);}ot(_0x452be3,_0x4b1151,_0x1d7344),st(_0x452be3,_0x4b1151,_0x1d7344);let _0x45723e=new Map(_0x1d7344[_0x1e22db(0x29b)]((_0x258430,_0x21b053)=>[_0x258430,_0x21b053])),_0x44fa53=new Map();for(let _0x53d107 of _0x1d7344){let _0x59fdbf=_0x452be3[_0x1e22db(0x4a8)](_0x53d107)??null,_0x4fc43a=_0x44fa53[_0x1e22db(0x4a8)](_0x59fdbf)??[];_0x4fc43a['push'](_0x53d107),_0x44fa53[_0x1e22db(0x1a1)](_0x59fdbf,_0x4fc43a);}_0x44fa53[_0x1e22db(0x461)](_0xa07234=>_0xa07234['sort']((_0x5c1fdd,_0x4dee8e)=>(_0x45723e['get'](_0x5c1fdd)??0x0)-(_0x45723e[_0x1e22db(0x4a8)](_0x4dee8e)??0x0)));let _0x4c273e=_0x44fa53[_0x1e22db(0x4a8)](null)??[],_0x18e716=new Map(),_0x55680d=new Map(),_0x50995e=[],_0x5814db=(_0x5e2b94,_0x16f5be)=>{const _0x35fc6b=_0x1e22db;_0x18e716[_0x35fc6b(0x1a1)](_0x5e2b94,_0x16f5be),_0x50995e['push'](_0x5e2b94);let _0x47033a=0x0;for(let _0x1ff62a of _0x44fa53['get'](_0x5e2b94)??[])_0x47033a=Math[_0x35fc6b(0x1b3)](_0x47033a,0x1+_0x5814db(_0x1ff62a,_0x16f5be+0x1));return _0x55680d['set'](_0x5e2b94,_0x47033a),_0x47033a;};return _0x4c273e[_0x1e22db(0x461)](_0x2554f6=>_0x5814db(_0x2554f6,0x0)),{'fieldId':_0xdc4986,'parentByRecordId':_0x452be3,'childrenByParentId':_0x44fa53,'depthByRecordId':_0x18e716,'subtreeHeightByRecordId':_0x55680d,'invalidReasonByRecordId':_0x4b1151,'rootRecordIds':_0x4c273e,'orderedRecordIds':_0x50995e};}function nt(_0x1f1b45,_0x3ae769,_0x34ab72=new Set(_0x3ae769[_0x354fcb(0x29b)](_0x5c5efa=>_0x5c5efa[_0x354fcb(0x4bb)]))){const _0x6d71cd=_0x354fcb;let _0xd64451=new Set(_0x34ab72);for(let _0x28499c of _0x34ab72){let _0x3c5ef6=_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x28499c)??null;for(;_0x3c5ef6;)_0xd64451[_0x6d71cd(0x35e)](_0x3c5ef6),_0x3c5ef6=_0x1f1b45[_0x6d71cd(0x36e)][_0x6d71cd(0x4a8)](_0x3c5ef6)??null;}let _0x879cdd=new Map(_0x3ae769['map'](_0x950456=>[_0x950456['recordId'],_0x950456])),_0xfc9f29=_0x1f1b45[_0x6d71cd(0x1a3)][_0x6d71cd(0x397)](_0x330e2a=>_0xd64451['has'](_0x330e2a)),_0x148631=_0xfc9f29[_0x6d71cd(0x2a2)](_0xf29d89=>{let _0x53a751=_0x879cdd['get'](_0xf29d89);return _0x53a751?[_0x53a751]:[];}),_0x5c8450={};for(let _0x28d485=0x0;_0x28d485<_0xfc9f29[_0x6d71cd(0x458)];_0x28d485++){let _0x295a7d=_0xfc9f29[_0x28d485];_0x5c8450[_0x295a7d]={'recordId':_0x295a7d,'parentRecordId':_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??null,'depth':_0x1f1b45[_0x6d71cd(0x3ff)][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'directChildCount':(_0x1f1b45['childrenByParentId']['get'](_0x295a7d)??[])['length'],'subtreeHeight':_0x1f1b45['subtreeHeightByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'subtreeEndIndex':_0x28d485,'invalidReason':_0x1f1b45['invalidReasonByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)};}let _0x1517c4=[];for(let _0x2262d0=0x0;_0x2262d0<_0xfc9f29[_0x6d71cd(0x458)];_0x2262d0++){let _0x3c73d8=_0xfc9f29[_0x2262d0],_0x3582ae=_0x5c8450[_0x3c73d8][_0x6d71cd(0x18e)];for(;_0x1517c4[_0x6d71cd(0x458)]&&_0x1517c4[_0x1517c4[_0x6d71cd(0x458)]-0x1][_0x6d71cd(0x18e)]>=_0x3582ae;){let _0x46ac08=_0x1517c4[_0x6d71cd(0x1a5)]();_0x5c8450[_0x46ac08[_0x6d71cd(0x4bb)]]['subtreeEndIndex']=_0x2262d0-0x1;}_0x1517c4[_0x6d71cd(0x1f3)]({'recordId':_0x3c73d8,'depth':_0x3582ae});}return _0x1517c4[_0x6d71cd(0x461)](({recordId:_0xa8e6f9})=>{const _0xd6daaf=_0x6d71cd;_0x5c8450[_0xa8e6f9]['subtreeEndIndex']=_0xfc9f29[_0xd6daaf(0x458)]-0x1;}),{'rows':_0x148631,'hierarchy':{'fieldId':_0x1f1b45[_0x6d71cd(0x46e)],'rootRecordIds':_0x1f1b45[_0x6d71cd(0x1b5)][_0x6d71cd(0x397)](_0x11bc19=>_0xd64451[_0x6d71cd(0x23f)](_0x11bc19)),'orderedRecordIds':_0xfc9f29,'nodes':_0x5c8450}};}function rt(_0x2c46e7,_0x328b1d){const _0x336543=_0x354fcb;if(!_0x2c46e7[_0x336543(0x51a)]||!(_0x328b1d!=null&&_0x328b1d[_0x336543(0x473)]))return _0x2c46e7[_0x336543(0x490)];let _0x29584b=[],_0x1b4bd0=0x0;for(;_0x1b4bd0<_0x2c46e7['rows'][_0x336543(0x458)];){let _0x4cf535=_0x2c46e7['rows'][_0x1b4bd0];_0x29584b['push'](_0x4cf535);let _0x4a9393=_0x2c46e7[_0x336543(0x51a)][_0x336543(0x3fc)][_0x4cf535[_0x336543(0x4bb)]];_0x1b4bd0=_0x328b1d[_0x336543(0x23f)](_0x4cf535['recordId'])&&_0x4a9393?_0x4a9393[_0x336543(0x4ca)]+0x1:_0x1b4bd0+0x1;}return _0x29584b;}function it(_0x1d54eb,_0x3f128a,_0x4563a2){const _0x20b196=_0x354fcb;if(!_0x4563a2)return{'valid':!0x0};if(_0x3f128a===_0x4563a2)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x47b)]};let _0x2ad891=_0x4563a2;for(;_0x2ad891;){if(_0x2ad891===_0x3f128a)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x270)]};_0x2ad891=_0x1d54eb[_0x20b196(0x36e)]['get'](_0x2ad891)??null;}return(_0x1d54eb['depthByRecordId'][_0x20b196(0x4a8)](_0x4563a2)??0x0)+0x1+(_0x1d54eb['subtreeHeightByRecordId'][_0x20b196(0x4a8)](_0x3f128a)??0x0)>=0x5?{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x3ca)]}:{'valid':!0x0};}function at(_0x174ad5,_0x59b925){const _0x2eecdf=_0x354fcb;let _0x33db10=new Set(),_0x136c88=[];for(let _0x6c711f of _0x59b925)_0x174ad5['records'][_0x6c711f]&&!_0x33db10[_0x2eecdf(0x23f)](_0x6c711f)&&(_0x33db10[_0x2eecdf(0x35e)](_0x6c711f),_0x136c88['push'](_0x6c711f));return Object['keys'](_0x174ad5[_0x2eecdf(0x45a)])[_0x2eecdf(0x3db)]()[_0x2eecdf(0x461)](_0x2a55a7=>{const _0x49513f=_0x2eecdf;_0x33db10[_0x49513f(0x23f)](_0x2a55a7)||_0x136c88['push'](_0x2a55a7);}),_0x136c88;}function ot(_0x13650d,_0x1ddcaa,_0x24d18d){const _0x27b35f=_0x354fcb;let _0x16327c=new Set();for(let _0x1dd87e of _0x24d18d){if(_0x16327c[_0x27b35f(0x23f)](_0x1dd87e))continue;let _0x2d0a49=[],_0x914088=new Map(),_0x3767bf=_0x1dd87e;for(;_0x3767bf&&!_0x16327c[_0x27b35f(0x23f)](_0x3767bf);){let _0x46002c=_0x914088[_0x27b35f(0x4a8)](_0x3767bf);if(_0x46002c!=null){let _0x23cbf2=[..._0x2d0a49[_0x27b35f(0x192)](_0x46002c)][_0x27b35f(0x3db)]()[_0x27b35f(0x1a5)]();_0x13650d[_0x27b35f(0x1a1)](_0x23cbf2,null),_0x1ddcaa[_0x27b35f(0x1a1)](_0x23cbf2,_0x3f9b5e[_0x27b35f(0x270)]);break;}_0x914088[_0x27b35f(0x1a1)](_0x3767bf,_0x2d0a49[_0x27b35f(0x458)]),_0x2d0a49[_0x27b35f(0x1f3)](_0x3767bf),_0x3767bf=_0x13650d['get'](_0x3767bf)??null;}_0x2d0a49[_0x27b35f(0x461)](_0xe79556=>_0x16327c[_0x27b35f(0x35e)](_0xe79556));}}function st(_0x552bd3,_0x4e1875,_0x401111){const _0x26109c=_0x354fcb;let _0x23a337=new Map(),_0x314047=_0x2a2789=>{const _0x2c27f1=_0x48d8;let _0x530355=_0x23a337[_0x2c27f1(0x4a8)](_0x2a2789);if(_0x530355!=null)return _0x530355;let _0x2e186e=_0x552bd3[_0x2c27f1(0x4a8)](_0x2a2789)??null;if(!_0x2e186e)return _0x23a337[_0x2c27f1(0x1a1)](_0x2a2789,0x0),0x0;let _0x43bfad=_0x314047(_0x2e186e)+0x1;return _0x43bfad>=0x5?(_0x552bd3[_0x2c27f1(0x1a1)](_0x2a2789,null),_0x4e1875[_0x2c27f1(0x1a1)](_0x2a2789,_0x3f9b5e[_0x2c27f1(0x3ca)]),_0x23a337['set'](_0x2a2789,0x0),0x0):(_0x23a337['set'](_0x2a2789,_0x43bfad),_0x43bfad);};_0x401111[_0x26109c(0x461)](_0x314047);}let ct=0x0;function lt(){const _0x20b3c1=_0x354fcb;if(globalThis[_0x20b3c1(0x4a1)]===!0x0)return!0x0;try{let _0x72253=typeof location>'u'?'':location[_0x20b3c1(0x32c)],_0x364ea6=new URLSearchParams(_0x72253);if(_0x364ea6[_0x20b3c1(0x4a8)]('basePerf')==='1'||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x33c))===_0x20b3c1(0x468)||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x3b4))==='1')return!0x0;}catch{}try{let _0x791da2=typeof localStorage>'u'?null:localStorage['getItem'](_0x20b3c1(0x4ae));return _0x791da2==='1'||_0x791da2===_0x20b3c1(0x468);}catch{return!0x1;}}function I(_0x2c7f0d,_0x8f94f1,_0x51d304){const _0xd21ba7=_0x354fcb;if(!lt())return _0x8f94f1();let _0x4218d1=dt(),_0x769fb=_0xd21ba7(0x18c)+ct++;ft(_0x769fb+_0xd21ba7(0x188));try{return _0x8f94f1();}finally{let _0xea747=dt()-_0x4218d1;ft(_0x769fb+_0xd21ba7(0x327)),pt(_0x2c7f0d,_0x769fb+':start',_0x769fb+':end'),ut(_0x2c7f0d,_0xea747,_0x51d304);}}function ut(_0x3817b1,_0xf716c8,_0x51495f){const _0x452fbf=_0x354fcb;if(!lt())return;let _0x4bbbec=Math['round'](_0xf716c8*0x64)/0x64,_0x47ed2e=_0x51495f&&Object['keys'](_0x51495f)[_0x452fbf(0x458)]?'\x20'+JSON[_0x452fbf(0x449)](_0x51495f):'';console[_0x452fbf(0x38e)]('[BasePerf]\x20'+_0x3817b1+':\x20'+_0x4bbbec+'ms'+_0x47ed2e);}function dt(){const _0x44ffb1=_0x354fcb;return typeof performance<'u'&&typeof performance['now']=='function'?performance['now']():Date[_0x44ffb1(0x181)]();}function ft(_0x832b23){try{if(typeof performance<'u'){var _0x5ed05c,_0x3f3c75;(_0x5ed05c=(_0x3f3c75=performance)['mark'])==null||_0x5ed05c['call'](_0x3f3c75,_0x832b23);}}catch{}}function pt(_0x3d5036,_0x31ddb1,_0x36d7f8){const _0x21b5e9=_0x354fcb;try{if(typeof performance<'u'){var _0x53bdbc,_0x49ef63;(_0x53bdbc=(_0x49ef63=performance)[_0x21b5e9(0x1c4)])==null||_0x53bdbc[_0x21b5e9(0x331)](_0x49ef63,_0x21b5e9(0x46d)+_0x3d5036,_0x31ddb1,_0x36d7f8);}}catch{}}function L(_0x1179e2){const _0x4eec3f=_0x354fcb;var _0x315456;return lt()?I(_0x4eec3f(0x2fb),()=>mt(_0x1179e2),{'tableId':_0x1179e2['id'],'records':Object[_0x4eec3f(0x51b)](_0x1179e2['records']??{})[_0x4eec3f(0x458)],'fields':_0x1179e2[_0x4eec3f(0x1e1)]['length'],'hasRecordOrder':!!((_0x315456=_0x1179e2[_0x4eec3f(0x22d)])!=null&&_0x315456[_0x4eec3f(0x458)])}):mt(_0x1179e2);}function mt(_0x1866c9){const _0x409962=_0x354fcb;var _0x3a7265;let _0x21e0ea=_0x1866c9[_0x409962(0x45a)]??{},_0x429bf4=_0x1866c9[_0x409962(0x480)]??{},_0x3fd4fb=((_0x3a7265=_0x1866c9[_0x409962(0x22d)])==null?void 0x0:_0x3a7265[_0x409962(0x397)](_0x20b093=>_0x21e0ea[_0x20b093]))??[],_0x45f65a=new Set(_0x3fd4fb),_0x592df8=[];for(let _0x4c3d15 of Object[_0x409962(0x1da)](_0x21e0ea))_0x45f65a[_0x409962(0x23f)](_0x4c3d15['id'])||_0x592df8[_0x409962(0x1f3)](_0x4c3d15);let _0x3b623b=_0x592df8[_0x409962(0x458)]?[..._0x3fd4fb,...Rt(_0x592df8)]:_0x3fd4fb,_0x4ef437=_0x1866c9[_0x409962(0x1e1)][_0x409962(0x397)](_0x44d1e5=>_0x429bf4[_0x44d1e5]),_0x4389a9={..._0x1866c9[_0x409962(0x474)]??{}},_0x4d5dbb={..._0x1866c9[_0x409962(0x242)]??{}},_0x51223f={..._0x1866c9[_0x409962(0x1cf)]??{}};_0x1866c9[_0x409962(0x22d)]=_0x3b623b,_0x1866c9[_0x409962(0x290)]={},_0x1866c9[_0x409962(0x474)]={},_0x1866c9[_0x409962(0x288)]={},_0x1866c9[_0x409962(0x242)]={},_0x1866c9[_0x409962(0x1cf)]={},_0x1866c9['resources']={..._0x1866c9[_0x409962(0x358)]??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x47e)]={..._0x1866c9[_0x409962(0x358)]['attachmentSets']??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x499)]={..._0x1866c9['resources'][_0x409962(0x499)]??{}};let _0x599f51=_0x1866c9[_0x409962(0x290)],_0x557e8d=_0x1866c9['rowId'],_0x479f94=_0x1866c9['colIndex'],_0x5948d1=_0x1866c9[_0x409962(0x242)],_0x5e01af=_0x1866c9[_0x409962(0x1cf)];return _0x3b623b['forEach']((_0x18178d,_0x5f4e48)=>{_0x599f51[_0x18178d]=_0x5f4e48,_0x557e8d[_0x5f4e48]=_0x18178d;}),_0x4ef437[_0x409962(0x461)]((_0x2364b8,_0x4219a1)=>{_0x479f94[_0x2364b8]=_0x4219a1,_0x5948d1[_0x4219a1]=_0x2364b8;}),Object[_0x409962(0x1e2)](_0x51223f)[_0x409962(0x461)](([_0x31bcbb,_0x117267])=>{const _0x4ce48d=_0x409962;let _0xd4895b=Number(_0x31bcbb),_0x58f536=_0x4389a9[_0xd4895b]??_0x3b623b[_0xd4895b],_0x441b62=_0x58f536?_0x599f51[_0x58f536]:void 0x0;_0x441b62!=null&&(_0x5e01af[_0x441b62]={..._0x5e01af[_0x441b62]??{}},Object['entries'](_0x117267??{})[_0x4ce48d(0x461)](([_0x5466d4,_0x439216])=>{let _0x75ed5c=Number(_0x5466d4),_0x3906fe=_0x4d5dbb[_0x75ed5c]??_0x4ef437[_0x75ed5c],_0x2280c2=_0x3906fe?_0x479f94[_0x3906fe]:void 0x0;_0x2280c2!=null&&(_0x5e01af[_0x441b62][_0x2280c2]=St(_0x439216));}));}),Object[_0x409962(0x1da)](_0x21e0ea)[_0x409962(0x461)](_0x1b770a=>{const _0x590d78=_0x409962;let _0x1ecdf4=_0x599f51[_0x1b770a['id']];_0x1ecdf4!=null&&(_0x1b770a[_0x590d78(0x1da)]={..._0x1b770a[_0x590d78(0x1da)]??{},[_0x3b44b5]:_0x1b770a['id']},_0x5e01af[_0x1ecdf4]={..._0x5e01af[_0x1ecdf4]??{},0x0:{'v':_0x1b770a['id'],'t':_0x149f0a[_0x590d78(0x475)]}},Object[_0x590d78(0x1e2)](_0x1b770a['values']??{})[_0x590d78(0x461)](([_0x301044,_0xdfa354])=>{const _0x45f318=_0x590d78;let _0x5a6e6f=_0x429bf4[_0x301044];(_0x5a6e6f==null?void 0x0:_0x5a6e6f[_0x45f318(0x33a)])===_0x19bf94[_0x45f318(0x46f)]&&Dt(_0x1866c9,_0x1b770a['id'],_0x301044,_0xdfa354);let _0x49b454=_0x479f94[_0x301044];if(_0x49b454==null)return;let _0x317cce=_0x5e01af[_0x1ecdf4][_0x49b454];(_0x317cce==null||jt(_0x317cce,_0x5a6e6f,_0xdfa354))&&(_0x5e01af[_0x1ecdf4][_0x49b454]=xt(_0xdfa354,_0x5a6e6f));}));}),_0x1866c9;}function ht(_0x3edcee,_0x593d25){const _0x553a52=_0x354fcb;return _0x3edcee[_0x553a52(0x45a)]=Object[_0x553a52(0x2e8)](Object['entries'](_0x3edcee[_0x553a52(0x45a)])[_0x553a52(0x29b)](([_0x46ef20,_0x1ddbe6])=>[_0x46ef20,{..._0x1ddbe6}])),L(_0x3edcee),Object[_0x553a52(0x1e2)](_0x3edcee[_0x553a52(0x474)]??{})[_0x553a52(0x461)](([_0x423484,_0x5c3120])=>{const _0x1528c8=_0x553a52;var _0x22c524;let _0xe623bc=Number(_0x423484),_0x4a0a64=_0x3edcee[_0x1528c8(0x45a)][_0x5c3120];_0x4a0a64&&(_0x4a0a64['values']={..._0x4a0a64['values']??{}},Object[_0x1528c8(0x1e2)](((_0x22c524=_0x3edcee[_0x1528c8(0x1cf)])==null?void 0x0:_0x22c524[_0xe623bc])??{})['forEach'](([_0x42420b,_0x56b0ce])=>{const _0x1b2133=_0x1528c8;var _0x2c2288;let _0x4b588d=(_0x2c2288=_0x3edcee[_0x1b2133(0x242)])==null?void 0x0:_0x2c2288[Number(_0x42420b)];_0x4b588d&&_0x593d25&&!_0x593d25(_0x5c3120,_0x4b588d)||(_0x4b588d===_0x3b44b5?_0x4a0a64[_0x1b2133(0x1da)][_0x3b44b5]=_0x4a0a64['id']:_0x4b588d&&(_0x4a0a64[_0x1b2133(0x1da)][_0x4b588d]=Ct(_0x56b0ce,_0x3edcee[_0x1b2133(0x480)][_0x4b588d],_0x3edcee,_0x5c3120)));}));}),_0x3edcee;}function gt(_0x46b949,_0x58a910){const _0x298e2f=_0x354fcb;for(let {row:_0x26d9f3,col:_0xa54b4d}of _0x58a910){var _0x442096,_0x52bf24,_0x3284fb;let _0xe9a244=(_0x442096=_0x46b949['rowId'])==null?void 0x0:_0x442096[_0x26d9f3],_0x1cb47c=(_0x52bf24=_0x46b949[_0x298e2f(0x242)])==null?void 0x0:_0x52bf24[_0xa54b4d],_0x185f25=_0xe9a244?_0x46b949[_0x298e2f(0x45a)][_0xe9a244]:void 0x0;if(!_0x185f25||!_0x1cb47c)continue;if(_0x1cb47c===_0x3b44b5){_0x185f25[_0x298e2f(0x1da)][_0x3b44b5]=_0x185f25['id'];continue;}let _0x305f8c=(_0x3284fb=_0x46b949[_0x298e2f(0x1cf)])==null||(_0x3284fb=_0x3284fb[_0x26d9f3])==null?void 0x0:_0x3284fb[_0xa54b4d];(_0x305f8c!=null||Object['prototype'][_0x298e2f(0x42f)]['call'](_0x185f25[_0x298e2f(0x1da)]??{},_0x1cb47c))&&(_0x185f25[_0x298e2f(0x1da)]={..._0x185f25['values']??{}},_0x185f25[_0x298e2f(0x1da)][_0x1cb47c]=Ct(_0x305f8c,_0x46b949[_0x298e2f(0x480)][_0x1cb47c],_0x46b949,_0xe9a244));}return _0x46b949;}function _t(_0x5e47d4,_0x134246,_0x1ddd02){const _0x2dd944=_0x354fcb;var _0x1b3194,_0x130eef,_0x2d1497,_0x59c31c,_0xe2c45b,_0x5a927e;let _0x494ff6=(_0x1b3194=_0x5e47d4[_0x2dd944(0x290)])==null?void 0x0:_0x1b3194[_0x134246],_0x46ef39=(_0x130eef=_0x5e47d4[_0x2dd944(0x288)])==null?void 0x0:_0x130eef[_0x1ddd02];if(_0x494ff6!=null&&_0x46ef39!=null&&((_0x2d1497=_0x5e47d4[_0x2dd944(0x474)])==null?void 0x0:_0x2d1497[_0x494ff6])===_0x134246&&((_0x59c31c=_0x5e47d4[_0x2dd944(0x242)])==null?void 0x0:_0x59c31c[_0x46ef39])===_0x1ddd02)return{'row':_0x494ff6,'col':_0x46ef39};let _0x104a5b=L(_0x5e47d4),_0x26db20=(_0xe2c45b=_0x104a5b['rowIndex'])==null?void 0x0:_0xe2c45b[_0x134246],_0xf9b7ec=(_0x5a927e=_0x104a5b[_0x2dd944(0x288)])==null?void 0x0:_0x5a927e[_0x1ddd02];return _0x26db20==null||_0xf9b7ec==null?null:{'row':_0x26db20,'col':_0xf9b7ec};}function vt(_0x1b2953,_0x3007dc,_0x294437){const _0x5e57c0=_0x354fcb;var _0x52ba47;let _0x2f519d=_t(_0x1b2953,_0x3007dc,_0x294437);if(_0x2f519d)return(_0x52ba47=_0x1b2953['cellData'])==null||(_0x52ba47=_0x52ba47[_0x2f519d[_0x5e57c0(0x21b)]])==null?void 0x0:_0x52ba47[_0x2f519d[_0x5e57c0(0x1ea)]];}function yt(_0x56728d,_0x5dbb20,_0x49af4e){const _0x552811=_0x354fcb;var _0x2288a8;let _0x4deeae=vt(_0x56728d,_0x5dbb20,_0x49af4e),_0x3cb7d8=_0x56728d[_0x552811(0x480)][_0x49af4e];if((_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x46f)]){var _0x4b0723;return Ot(_0x56728d,_0x5dbb20,_0x49af4e)??kt((_0x4b0723=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x4b0723=_0x4b0723[_0x552811(0x1da)])==null?void 0x0:_0x4b0723[_0x49af4e]);}if(Mt(_0x3cb7d8)||Nt(_0x3cb7d8)||(_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x4db)]){var _0x12d76d;let _0x1afa7b=(_0x12d76d=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x12d76d=_0x12d76d['values'])==null?void 0x0:_0x12d76d[_0x49af4e];return _0x1afa7b!=null&&_0x1afa7b!==''?At(_0x1afa7b,_0x3cb7d8):Ct(_0x4deeae,_0x3cb7d8,_0x56728d,_0x5dbb20);}return _0x4deeae&&Object[_0x552811(0x32b)][_0x552811(0x42f)]['call'](_0x4deeae,'v')?_0x4deeae['v']??null:((_0x2288a8=_0x56728d['records'][_0x5dbb20])==null||(_0x2288a8=_0x2288a8[_0x552811(0x1da)])==null?void 0x0:_0x2288a8[_0x49af4e])??null;}function bt(_0x175439,_0x3a5e47,_0x1363e3){const _0x1186b4=_0x354fcb;var _0x202b2e;let _0x12e467=vt(_0x175439,_0x3a5e47,_0x1363e3);if(_0x12e467&&Object[_0x1186b4(0x32b)][_0x1186b4(0x42f)][_0x1186b4(0x331)](_0x12e467,'v'))return _0x12e467['v']??null;let _0x158044=_0x175439[_0x1186b4(0x480)][_0x1363e3];return xt(((_0x202b2e=_0x175439[_0x1186b4(0x45a)][_0x3a5e47])==null||(_0x202b2e=_0x202b2e[_0x1186b4(0x1da)])==null?void 0x0:_0x202b2e[_0x1363e3])??null,_0x158044)['v']??null;}function xt(_0x2ee3a8,_0x40cdb1){const _0x2ecbf9=_0x354fcb;if(Tt(_0x2ee3a8))return(_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x46f)]?{..._0x2ee3a8,'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]}:St(_0x2ee3a8);if((_0x40cdb1==null?void 0x0:_0x40cdb1[_0x2ecbf9(0x33a)])===_0x19bf94[_0x2ecbf9(0x46f)])return{'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]};if(Nt(_0x40cdb1)){let _0x2c44bb=Pt(_0x2ee3a8);return{'v':_0x2c44bb,'t':Lt(_0x2c44bb)};}if(Mt(_0x40cdb1))return{'v':Ft(_0x2ee3a8)[_0x2ecbf9(0x4b5)](',\x20'),'t':_0x149f0a[_0x2ecbf9(0x475)]};if((_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x4db)]&&_0x2ee3a8&&typeof _0x2ee3a8==_0x2ecbf9(0x269)&&!Array[_0x2ecbf9(0x354)](_0x2ee3a8)){let _0x30944f=_0x2ee3a8;return{'v':String(_0x30944f[_0x2ecbf9(0x4d2)]??_0x30944f[_0x2ecbf9(0x1c7)]??''),'t':_0x149f0a[_0x2ecbf9(0x475)]};}return _0x2ee3a8===null||typeof _0x2ee3a8==_0x2ecbf9(0x471)||typeof _0x2ee3a8=='number'||typeof _0x2ee3a8==_0x2ecbf9(0x364)?{'v':_0x2ee3a8,'t':Lt(_0x2ee3a8)}:{'v':null,'t':null};}function St(_0x11313e){let _0x22413d=zt(_0x11313e['t'],_0x11313e['v']);if(_0x22413d===void 0x0){let {t:_0x7a81f1,..._0x3c745d}=_0x11313e;return _0x3c745d;}return{..._0x11313e,'t':_0x22413d};}function Ct(_0x2d7b40,_0x33661f,_0x171d4a,_0x1166d9){const _0x1fbdc4=_0x354fcb;if(!_0x2d7b40)return null;if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x46f)])return _0x171d4a&&_0x1166d9?Ot(_0x171d4a,_0x1166d9,_0x33661f['id'])??[]:[];if(Mt(_0x33661f))return Ft(_0x2d7b40['v']);if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x4db)]&&_0x171d4a&&_0x1166d9){var _0x12ba77;let _0xc36b6b=(_0x12ba77=_0x171d4a[_0x1fbdc4(0x45a)][_0x1166d9])==null||(_0x12ba77=_0x12ba77[_0x1fbdc4(0x1da)])==null?void 0x0:_0x12ba77[_0x33661f['id']];if(_0xc36b6b&&typeof _0xc36b6b=='object'&&!Array[_0x1fbdc4(0x354)](_0xc36b6b))return _0xc36b6b;}return Object[_0x1fbdc4(0x32b)][_0x1fbdc4(0x42f)]['call'](_0x2d7b40,'v')?_0x2d7b40['v']??null:null;}function wt(_0x4e2b12,_0x44cd39,_0x4262e2,_0x533a76,_0x42509f){const _0x5c5b0f=_0x354fcb;return(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x46f)]?kt(_0x4e2b12):Nt(_0x4262e2)?Pt(_0x4e2b12):Mt(_0x4262e2)?Ft(_0x4e2b12):(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&(_0x4e2b12==null||_0x4e2b12==='')?null:(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&_0x4e2b12&&typeof _0x4e2b12=='object'&&!Array[_0x5c5b0f(0x354)](_0x4e2b12)&&!Tt(_0x4e2b12)?_0x4e2b12:Ct(_0x44cd39,_0x4262e2,_0x533a76,_0x42509f);}function Tt(_0x3184d1){const _0x322a99=_0x354fcb;return!!_0x3184d1&&typeof _0x3184d1==_0x322a99(0x269)&&(Object['prototype']['hasOwnProperty'][_0x322a99(0x331)](_0x3184d1,'v')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'t')||Object['prototype'][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'p')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)]['call'](_0x3184d1,'f')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'si'));}function Et(_0x17e499,_0x18881a){return _0x17e499+'\x1f'+_0x18881a;}function Dt(_0x25c6ea,_0x40962d,_0x3f2a17,_0x2fe5ec){const _0x4a187b=_0x354fcb;let _0x223164=kt(_0x2fe5ec);_0x25c6ea[_0x4a187b(0x358)]={..._0x25c6ea[_0x4a187b(0x358)]??{}},_0x25c6ea['resources'][_0x4a187b(0x47e)]={..._0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)]??{}},_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)]={..._0x25c6ea['resources']['attachments']??{}};let _0x301fce=Et(_0x3f2a17,_0x40962d),_0x41e1ef=[];for(let _0x3dc778=0x0;_0x3dc778<_0x223164['length'];_0x3dc778++){if(!(_0x3dc778 in _0x223164))continue;let _0xb40b94=_0x223164[_0x3dc778],_0xf86c0c=String(_0xb40b94['id']??_0x301fce+'\x1f'+_0x3dc778),_0x3acec5={..._0xb40b94,'id':_0xf86c0c};_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)][_0xf86c0c]=_0x3acec5,_0x41e1ef[_0x4a187b(0x1f3)](_0xf86c0c);}_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)][_0x301fce]=_0x41e1ef;}function Ot(_0x17fa1f,_0xa1615d,_0x55c570){const _0x4981ef=_0x354fcb;var _0xb65491;let _0x4d6ae2=Et(_0x55c570,_0xa1615d),_0x3fa93f=(_0xb65491=_0x17fa1f[_0x4981ef(0x358)])==null||(_0xb65491=_0xb65491[_0x4981ef(0x47e)])==null?void 0x0:_0xb65491[_0x4d6ae2];if(!_0x3fa93f)return null;let _0x169758=[];for(let _0x37c96f=0x0;_0x37c96f<_0x3fa93f[_0x4981ef(0x458)];_0x37c96f++){var _0x408091;if(!(_0x37c96f in _0x3fa93f))continue;let _0x2b6b4b=(_0x408091=_0x17fa1f[_0x4981ef(0x358)])==null||(_0x408091=_0x408091[_0x4981ef(0x499)])==null?void 0x0:_0x408091[_0x3fa93f[_0x37c96f]];_0x2b6b4b&&_0x169758[_0x4981ef(0x1f3)]({..._0x2b6b4b});}return _0x169758;}function kt(_0x33faab){const _0x59ae2e=_0x354fcb;if(_0x33faab==null||_0x33faab===''||Tt(_0x33faab)&&!('id'in _0x33faab)&&!('name'in _0x33faab))return[];let _0x112571=Array[_0x59ae2e(0x354)](_0x33faab)?_0x33faab:[_0x33faab],_0x1c9fc6=[];for(let _0x364490=0x0;_0x364490<_0x112571[_0x59ae2e(0x458)];_0x364490++){if(!(_0x364490 in _0x112571))continue;let _0x188128=_0x112571[_0x364490],_0x4c0386=_0x188128&&typeof _0x188128==_0x59ae2e(0x269)?{..._0x188128}:{'id':_0x59ae2e(0x27a)+_0x364490,'name':String(_0x188128)};Object[_0x59ae2e(0x51b)](_0x4c0386)[_0x59ae2e(0x458)]>0x0&&_0x1c9fc6[_0x59ae2e(0x1f3)](_0x4c0386);}return _0x1c9fc6;}function At(_0x26a45b,_0x4d45f1){return(_0x4d45f1==null?void 0x0:_0x4d45f1['type'])===_0x19bf94['Attachment']?kt(_0x26a45b):Nt(_0x4d45f1)?Pt(_0x26a45b):Mt(_0x4d45f1)?Ft(_0x26a45b):_0x26a45b;}function jt(_0x3ff1b5,_0x1fc569,_0x77bb3c){const _0x35d81b=_0x354fcb;return(_0x1fc569==null?void 0x0:_0x1fc569[_0x35d81b(0x33a)])===_0x19bf94['Attachment']?_0x3ff1b5['v']!=='':Nt(_0x1fc569)?_0x3ff1b5['v']!==Pt(_0x77bb3c):Mt(_0x1fc569)?Array['isArray'](_0x77bb3c)&&(_0x3ff1b5['v']==null||_0x3ff1b5['v']===''):!0x1;}function Mt(_0x43dc37){const _0x3d4d9c=_0x354fcb;return(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94[_0x3d4d9c(0x283)]||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Group']||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Person']&&_0x43dc37[_0x3d4d9c(0x342)]['allowMultiple']===!0x0;}function Nt(_0x28c76f){const _0x3a0ea9=_0x354fcb;return(_0x28c76f==null?void 0x0:_0x28c76f[_0x3a0ea9(0x33a)])===_0x19bf94[_0x3a0ea9(0x1e5)]&&_0x28c76f[_0x3a0ea9(0x342)][_0x3a0ea9(0x18d)]!==!0x0;}function Pt(_0x5d0d11){let _0x408d83=Tt(_0x5d0d11)?_0x5d0d11['v']:_0x5d0d11,_0x310d4a=Array['isArray'](_0x408d83)?_0x408d83[0x0]:_0x408d83;return _0x310d4a==null||_0x310d4a===''?null:String(_0x310d4a);}function Ft(_0x1919e3){const _0x14b229=_0x354fcb;if(_0x1919e3==null||_0x1919e3==='')return[];let _0x410f2a=[];if(Array[_0x14b229(0x354)](_0x1919e3)){for(let _0x164b9a=0x0;_0x164b9a<_0x1919e3[_0x14b229(0x458)];_0x164b9a++){if(!(_0x164b9a in _0x1919e3))continue;let _0x4f7889=It(_0x1919e3[_0x164b9a]);_0x4f7889&&_0x410f2a['push'](_0x4f7889);}return _0x410f2a;}for(let _0x2bd2f3 of String(_0x1919e3)[_0x14b229(0x1c5)](',')){let _0xeaf506=_0x2bd2f3['trim']();_0xeaf506&&_0x410f2a[_0x14b229(0x1f3)](_0xeaf506);}return _0x410f2a;}function It(_0x35c04a){const _0x2c2060=_0x354fcb;if(_0x35c04a==null)return'';if(typeof _0x35c04a==_0x2c2060(0x471)||typeof _0x35c04a==_0x2c2060(0x256)||typeof _0x35c04a=='boolean')return String(_0x35c04a);if(typeof _0x35c04a=='object'){let _0x5e082f=_0x35c04a;return String(_0x5e082f['id']??_0x5e082f[_0x2c2060(0x1e0)]??_0x5e082f['text']??'');}return String(_0x35c04a);}function Lt(_0x466920){const _0x5d62ce=_0x354fcb;return _0x466920==null?null:typeof _0x466920=='number'?_0x149f0a['NUMBER']:typeof _0x466920=='boolean'?_0x149f0a[_0x5d62ce(0x176)]:_0x149f0a[_0x5d62ce(0x475)];}function Rt(_0x3a78d2){const _0x2bd55d=_0x354fcb;_0x3a78d2[_0x2bd55d(0x3db)]((_0x885cb0,_0x4beebc)=>_0x885cb0[_0x2bd55d(0x3ef)]['localeCompare'](_0x4beebc['orderKey']));let _0x16031b=[];for(let _0x229565 of _0x3a78d2)_0x16031b['push'](_0x229565['id']);return _0x16031b;}function zt(_0x48d91a,_0x33ccb1){const _0x142e04=_0x354fcb;return _0x48d91a===_0x149f0a[_0x142e04(0x475)]||_0x48d91a===_0x149f0a[_0x142e04(0x426)]||_0x48d91a===_0x149f0a[_0x142e04(0x176)]||_0x48d91a===_0x149f0a[_0x142e04(0x31e)]||_0x48d91a==null?_0x48d91a:Lt(_0x33ccb1??null);}function R(_0x482f2c){let _0x7201d2=null;for(let _0x547d17 of _0x482f2c)_0x7201d2=_0x7201d2===null?_0x547d17:_0x370803['type']['compose'](_0x7201d2,_0x547d17);return _0x7201d2;}var z=class e{static[_0x354fcb(0x322)](_0x2a19d9,_0x4db787){const _0x5ea286=_0x354fcb;let _0x2ef1fd=[];for(let _0x49a2bb of _0x4db787){let _0x1b351c=Bt(_0x49a2bb);if(!_0x1b351c||_0x1b351c['unitId']!==_0x2a19d9['id'])return null;_0x2ef1fd[_0x5ea286(0x1f3)](_0x1b351c['op']);}try{let _0x2d13ce=R(_0x2ef1fd);return _0x2d13ce===null?_0x2a19d9:new e()[_0x5ea286(0x2ad)](_0x2a19d9,_0x2d13ce);}catch{return null;}}[_0x354fcb(0x2ad)](_0x53c3de,_0x2f9315){const _0x383cc1=_0x354fcb;let _0x46a373=this['getAffectedRanges'](_0x2f9315),_0x16e80e=I(_0x383cc1(0x37a),()=>Xt(_0x53c3de,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x33b52d=I(_0x383cc1(0x1ae),()=>_0x370803[_0x383cc1(0x33a)]['apply'](_0x16e80e,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x19b153=Ht(_0x33b52d,_0x46a373);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x33b52d,_0x46a373),{'invalidations':_0x46a373[_0x383cc1(0x458)]})?(Ut(_0x33b52d,_0x19b153),_0x33b52d):(I(_0x383cc1(0x3a6),()=>{const _0x243c0a=_0x383cc1;this[_0x243c0a(0x2a4)](_0x33b52d,_0x46a373)[_0x243c0a(0x461)](_0x163efb=>{const _0x5a20cc=_0x243c0a;let _0x20ac7b=_0x46a373['filter'](_0x22afee=>_0x22afee[_0x5a20cc(0x1c3)]===_0x163efb['id']),_0x5ad8dc=_0x20ac7b[_0x5a20cc(0x458)]>0x0&&_0x20ac7b['every'](_0x2e6194=>_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x28b)||_0x2e6194['reason']==='view'||_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x4eb)||_0x2e6194['reason']==='record')?new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x2a4d20=>{const _0x40eadc=_0x5a20cc;var _0x573ccb;if(_0x2a4d20['reason']!==_0x40eadc(0x28b)||!_0x2a4d20[_0x40eadc(0x46e)])return[];let _0x585c62=(_0x573ccb=_0x53c3de['tables'][_0x163efb['id']])==null?void 0x0:_0x573ccb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]],_0x57f49e=_0x163efb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]];return(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x33a)])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x33a)])||(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x342)]['allowMultiple'])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x342)][_0x40eadc(0x18d)])?[_0x2a4d20[_0x40eadc(0x46e)]]:[];})):void 0x0,_0x106c63=new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x3920b3=>{const _0x369dad=_0x5a20cc;var _0x14d1a3,_0x39f229;return _0x3920b3[_0x369dad(0x2d9)]!==_0x369dad(0x4eb)||_0x3920b3['row']==null||_0x3920b3[_0x369dad(0x26e)]==null?[]:[JSON[_0x369dad(0x449)]([(_0x14d1a3=_0x163efb[_0x369dad(0x474)])==null?void 0x0:_0x14d1a3[_0x3920b3[_0x369dad(0x21b)]],(_0x39f229=_0x163efb['colId'])==null?void 0x0:_0x39f229[_0x3920b3['column']]])];}));ht(_0x163efb,_0x5ad8dc?(_0x290643,_0x576e84)=>_0x5ad8dc['has'](_0x576e84)||_0x106c63['has'](JSON[_0x5a20cc(0x449)]([_0x290643,_0x576e84])):void 0x0);});},{'invalidations':_0x46a373[_0x383cc1(0x458)]}),Ut(_0x33b52d,_0x19b153),_0x33b52d);}[_0x354fcb(0x2aa)](_0x1ef376,_0x5de11d){const _0x872c56=_0x354fcb;return _0x370803[_0x872c56(0x33a)][_0x872c56(0x1fd)](_0x5de11d,_0x1ef376);}[_0x354fcb(0x2b9)](_0x437cac){const _0x2393a4=_0x354fcb;let _0x2a873c=qt(_0x437cac);return _0x2a873c[_0x2393a4(0x458)]?Jt(_0x2a873c[_0x2393a4(0x2a2)](_0x444164=>this['getAffectedRanges'](_0x444164))):Wt(_0x437cac);}[_0x354fcb(0x2a4)](_0x2baae9,_0x309960){const _0x362bdc=_0x354fcb;let _0x59a87b=_0x309960[_0x362bdc(0x397)](_0x4c5233=>_0x4c5233['reason']!==_0x362bdc(0x2df));return _0x59a87b[_0x362bdc(0x458)]?_0x59a87b['some'](_0x57cb5d=>!_0x57cb5d[_0x362bdc(0x1c3)])?Object[_0x362bdc(0x1da)](_0x2baae9[_0x362bdc(0x2ba)]??{}):Array[_0x362bdc(0x4dd)](new Set(_0x59a87b[_0x362bdc(0x29b)](_0xce4b56=>_0xce4b56['tableId'])))[_0x362bdc(0x2a2)](_0x3c7632=>{var _0x8fdc49;let _0x3527af=(_0x8fdc49=_0x2baae9['tables'])==null?void 0x0:_0x8fdc49[_0x3c7632];return _0x3527af?[_0x3527af]:[];}):[];}};function Bt(_0x387d7c){const _0x6f9ad=_0x354fcb;let _0x15280f=_0x387d7c['params'];return _0x387d7c['id']!==_0x6f9ad(0x4d6)||typeof _0x15280f!=_0x6f9ad(0x269)||!_0x15280f||!(_0x6f9ad(0x278)in _0x15280f)||typeof _0x15280f['unitId']!=_0x6f9ad(0x471)||!('op'in _0x15280f)||!Array[_0x6f9ad(0x354)](_0x15280f['op'])?null:{'unitId':_0x15280f[_0x6f9ad(0x278)],'op':_0x15280f['op']};}function Vt(_0x1559c6,_0x4806f9){const _0x5adb30=_0x354fcb;if(!_0x4806f9[_0x5adb30(0x458)]||_0x4806f9[_0x5adb30(0x257)](_0x261695=>_0x261695[_0x5adb30(0x2d9)]!==_0x5adb30(0x4eb)))return!0x1;let _0x1bb496=new Map();for(let _0x1fabd2 of _0x4806f9){if(!_0x1fabd2[_0x5adb30(0x1c3)]||_0x1fabd2[_0x5adb30(0x21b)]==null||_0x1fabd2[_0x5adb30(0x26e)]==null)continue;let _0x5a9406=_0x1bb496['get'](_0x1fabd2[_0x5adb30(0x1c3)])??[];_0x5a9406[_0x5adb30(0x1f3)]({'row':_0x1fabd2['row'],'col':_0x1fabd2['column']}),_0x1bb496[_0x5adb30(0x1a1)](_0x1fabd2['tableId'],_0x5a9406);}return _0x1bb496[_0x5adb30(0x461)]((_0x5c7850,_0x1568c6)=>{const _0x2dd908=_0x5adb30;var _0xbd3e05;let _0x2f678f=(_0xbd3e05=_0x1559c6[_0x2dd908(0x2ba)])==null?void 0x0:_0xbd3e05[_0x1568c6];_0x2f678f&>(_0x2f678f,_0x5c7850);}),!0x0;}function Ht(_0x228b2d,_0xf68c42){const _0x5869a4=_0x354fcb;let _0x3b000b=new Set();return _0xf68c42[_0x5869a4(0x2a2)](_0x50b6c7=>{const _0x4d9bad=_0x5869a4;var _0x345998;if(!_0x50b6c7['tableId']||!_0x50b6c7[_0x4d9bad(0x4bb)]||!_0x50b6c7[_0x4d9bad(0x46e)])return[];let _0x1f9463=_0x50b6c7['tableId']+'\x1f'+_0x50b6c7[_0x4d9bad(0x4bb)]+'\x1f'+_0x50b6c7['fieldId'];if(_0x3b000b[_0x4d9bad(0x23f)](_0x1f9463))return[];_0x3b000b[_0x4d9bad(0x35e)](_0x1f9463);let _0x5a109b=(_0x345998=_0x228b2d[_0x4d9bad(0x2ba)][_0x50b6c7['tableId']])==null||(_0x345998=_0x345998[_0x4d9bad(0x45a)][_0x50b6c7[_0x4d9bad(0x4bb)]])==null?void 0x0:_0x345998[_0x4d9bad(0x1da)];return _0x5a109b?[{'tableId':_0x50b6c7[_0x4d9bad(0x1c3)],'recordId':_0x50b6c7[_0x4d9bad(0x4bb)],'fieldId':_0x50b6c7[_0x4d9bad(0x46e)],'exists':Object[_0x4d9bad(0x32b)][_0x4d9bad(0x42f)][_0x4d9bad(0x331)](_0x5a109b,_0x50b6c7[_0x4d9bad(0x46e)]),'value':_0x5a109b[_0x50b6c7[_0x4d9bad(0x46e)]]}]:[];});}function Ut(_0x36d0fd,_0x32b5ec){_0x32b5ec['forEach'](_0x24a2d8=>{const _0x3d689d=_0x48d8;var _0x1db230;let _0x359f0e=(_0x1db230=_0x36d0fd[_0x3d689d(0x2ba)][_0x24a2d8[_0x3d689d(0x1c3)]])==null||(_0x1db230=_0x1db230[_0x3d689d(0x45a)][_0x24a2d8[_0x3d689d(0x4bb)]])==null?void 0x0:_0x1db230[_0x3d689d(0x1da)];_0x359f0e&&(_0x24a2d8[_0x3d689d(0x335)]?_0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]=_0x24a2d8['value']:delete _0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]);});}function Wt(_0x354c8c){const _0x3fd53e=_0x354fcb;if(!Array[_0x3fd53e(0x354)](_0x354c8c)||_0x354c8c[_0x3fd53e(0x458)]<0x2)return[{'tableId':'','reason':'unknown'}];let _0x4f6ef0=_0x354c8c,_0x92a771=_0x4f6ef0['indexOf'](_0x3fd53e(0x2ba));return _0x92a771===-0x1||typeof _0x4f6ef0[_0x92a771+0x1]!=_0x3fd53e(0x471)?_0x4f6ef0[0x0]===_0x3fd53e(0x3e3)?[]:[{'tableId':'','reason':_0x3fd53e(0x37d)}]:Gt(_0x4f6ef0,_0x92a771,String(_0x4f6ef0[_0x92a771+0x1]));}function Gt(_0x1e42b5,_0x4cc015,_0x1985fd){const _0x231a34=_0x354fcb;let _0x51ea8f=_0x1e42b5[_0x4cc015+0x2];return _0x51ea8f==='records'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?Kt(_0x1e42b5,_0x4cc015,_0x1985fd,String(_0x1e42b5[_0x4cc015+0x3])):_0x51ea8f===_0x231a34(0x1cf)&&_0x1e42b5[_0x4cc015+0x3]!=null&&_0x1e42b5[_0x4cc015+0x4]!=null?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb),'row':Number(_0x1e42b5[_0x4cc015+0x3]),'column':Number(_0x1e42b5[_0x4cc015+0x4])}]:_0x51ea8f==='fields'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b),'fieldId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f===_0x231a34(0x1e1)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b)}]:_0x51ea8f===_0x231a34(0x22d)?[{'tableId':_0x1985fd,'reason':'record'}]:_0x51ea8f==='views'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df),'viewId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f==='viewOrder'?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df)}]:_0x51ea8f===_0x231a34(0x358)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb)}]:[{'tableId':_0x1985fd,'reason':_0x51ea8f===void 0x0?'table':_0x231a34(0x37d)}];}function Kt(_0x43ae2d,_0x39e026,_0x288c80,_0x43694b){const _0x17baea=_0x354fcb;return _0x43ae2d[_0x39e026+0x4]===_0x17baea(0x1da)&&typeof _0x43ae2d[_0x39e026+0x5]==_0x17baea(0x471)?[{'tableId':_0x288c80,'reason':_0x17baea(0x4eb),'recordId':_0x43694b,'fieldId':String(_0x43ae2d[_0x39e026+0x5])}]:_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x483)||_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x2e9)?[]:[{'tableId':_0x288c80,'reason':_0x17baea(0x52b),'recordId':_0x43694b}];}function qt(_0x3105df){const _0x3eff5b=_0x354fcb;if(!Array[_0x3eff5b(0x354)](_0x3105df))return[];let _0x303c45=_0x3105df[_0x3eff5b(0x397)](Array['isArray']);if(_0x303c45[_0x3eff5b(0x458)]>0x1&&_0x303c45[_0x3eff5b(0x458)]===_0x3105df[_0x3eff5b(0x458)])return _0x303c45;let _0x311c8e=_0x3105df[_0x3eff5b(0x183)](Array[_0x3eff5b(0x354)]);if(_0x311c8e>0x0&&_0x3105df[_0x3eff5b(0x192)](_0x311c8e)['every'](Array[_0x3eff5b(0x354)])){let _0x31ca8e=_0x3105df['slice'](0x0,_0x311c8e);return _0x3105df[_0x3eff5b(0x192)](_0x311c8e)[_0x3eff5b(0x29b)](_0x27f281=>[..._0x31ca8e,..._0x27f281]);}let _0x313750=_0x3105df[_0x3eff5b(0x4c8)](_0x3eff5b(0x2ba));if(_0x313750===-0x1||typeof _0x3105df[_0x313750+0x1]!=_0x3eff5b(0x471))return[];let _0x1c826c=String(_0x3105df[_0x313750+0x1]),_0x59967f=_0x3105df['slice'](_0x313750+0x2)['filter'](Array['isArray']);return _0x59967f[_0x3eff5b(0x458)]<=0x1?[]:_0x59967f['map'](_0x53334d=>['tables',_0x1c826c,..._0x53334d]);}function Jt(_0x3cef58){let _0x38da5f=new Set();return _0x3cef58['filter'](_0x4b685b=>{const _0x52ccf5=_0x48d8;let _0x11951d=JSON[_0x52ccf5(0x449)](_0x4b685b);return!_0x38da5f[_0x52ccf5(0x23f)](_0x11951d)&&(_0x38da5f[_0x52ccf5(0x35e)](_0x11951d),!0x0);});}function Yt(_0xeaec73){return _0x30f9db['deepClone'](_0xeaec73);}function Xt(_0x2678e4,_0x2c0691){const _0xb5e7f7=_0x354fcb;let _0x1de794=Zt(_0x2c0691);if(!_0x1de794[_0xb5e7f7(0x458)])return Yt(_0x2678e4);let _0x1d2149=an(_0x2678e4),_0x1307c7=new Set();for(let _0x2986f5 of _0x1de794)en(_0x1d2149,_0x2986f5,_0x1307c7);return _0x1d2149;}function Zt(_0x448431){let _0x1ff7ef=[];return Qt(_0x448431,[],_0x1ff7ef),_0x1ff7ef;}function Qt(_0x4ba57d,_0x40ba19,_0x55924c){const _0x4b5113=_0x354fcb;if(!Array[_0x4b5113(0x354)](_0x4ba57d))return;let _0x3c3f67=[];for(let _0x5e1c61 of _0x4ba57d)Array[_0x4b5113(0x354)](_0x5e1c61)?Qt(_0x5e1c61,[..._0x40ba19,..._0x3c3f67],_0x55924c):$t(_0x5e1c61)?_0x55924c[_0x4b5113(0x1f3)]([..._0x40ba19,..._0x3c3f67]):(typeof _0x5e1c61==_0x4b5113(0x471)||typeof _0x5e1c61==_0x4b5113(0x256))&&_0x3c3f67[_0x4b5113(0x1f3)](_0x5e1c61);}function $t(_0x394ded){const _0x3c55bc=_0x354fcb;if(!_0x394ded||typeof _0x394ded!=_0x3c55bc(0x269)||Array[_0x3c55bc(0x354)](_0x394ded))return!0x1;let _0x50caf2=_0x394ded;return'i'in _0x50caf2||'r'in _0x50caf2||'p'in _0x50caf2||'d'in _0x50caf2||'es'in _0x50caf2||'ena'in _0x50caf2||'et'in _0x50caf2;}function en(_0x451b3d,_0x13301d,_0x4070d5){const _0x3574ab=_0x354fcb;let _0x1872d9=_0x451b3d,_0x1c4d05=[];for(let _0x31eaaf=0x0;_0x31eaaf<_0x13301d[_0x3574ab(0x458)]-0x1;_0x31eaaf++){let _0x2c2626=_0x13301d[_0x31eaaf];_0x1c4d05[_0x3574ab(0x1f3)](_0x2c2626);let _0x48406a=tn(_0x1872d9,_0x2c2626);if(!rn(_0x48406a))return;let _0x359bb3=JSON['stringify'](_0x1c4d05);_0x4070d5[_0x3574ab(0x23f)](_0x359bb3)||(nn(_0x1872d9,_0x2c2626,an(_0x48406a)),_0x4070d5['add'](_0x359bb3));let _0x24edca=tn(_0x1872d9,_0x2c2626);if(!rn(_0x24edca))return;_0x1872d9=_0x24edca;}}function tn(_0x556cc0,_0x55e95c){const _0xfdc55a=_0x354fcb;return Array['isArray'](_0x556cc0)?typeof _0x55e95c==_0xfdc55a(0x256)?_0x556cc0[_0x55e95c]:void 0x0:Reflect['get'](_0x556cc0,_0x55e95c);}function nn(_0xb5159d,_0x576e8a,_0x4c8727){const _0x6ce77a=_0x354fcb;Array[_0x6ce77a(0x354)](_0xb5159d)?typeof _0x576e8a=='number'&&(_0xb5159d[_0x576e8a]=_0x4c8727):Reflect['set'](_0xb5159d,_0x576e8a,_0x4c8727);}function rn(_0x52777f){const _0x30673d=_0x354fcb;return!!_0x52777f&&typeof _0x52777f==_0x30673d(0x269);}function an(_0x55e561){const _0x12de4d=_0x354fcb;return Array[_0x12de4d(0x354)](_0x55e561)?_0x55e561[_0x12de4d(0x192)]():{..._0x55e561};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x354fcb(0x1ac),'yyyy-mm-dd':'YYYY-MM-DD','mm-dd':'MM-DD','mm/dd/yyyy':_0x354fcb(0x4f7),'dd/mm/yyyy':_0x354fcb(0x3b3),'mmm\x20d,\x20yyyy':_0x354fcb(0x390)};function B(_0x163012,_0x1cab90=_0x4547e4[_0x354fcb(0x429)]){const _0x35e5d4=_0x354fcb;let _0x3fba62=_0x5cea60(_0x163012)[_0x35e5d4(0x3f0)]();return _0xa41fad(new Date(_0x3fba62),_0x1cab90);}function ln(_0x1940fc,_0x24dc02=_0x4547e4[_0x354fcb(0x429)]){const _0x13505a=_0x354fcb;return _0x156e38(_0x1940fc,_0x24dc02)[_0x13505a(0x3f6)]();}function un(_0xcdc644,_0x5ae89d=_0x4547e4[_0x354fcb(0x429)]){const _0x1d9513=_0x354fcb;if(_0xcdc644==null||_0xcdc644==='')return null;if(_0xcdc644 instanceof Date)return B(_0xcdc644,_0x5ae89d);if(typeof _0xcdc644==_0x1d9513(0x256))return Number[_0x1d9513(0x2c3)](_0xcdc644)?_0xcdc644>0xf4240?B(_0xcdc644,_0x5ae89d):_0xcdc644:null;let _0x48cd0e=Date['parse'](String(_0xcdc644));return Number[_0x1d9513(0x3b5)](_0x48cd0e)?null:B(_0x48cd0e,_0x5ae89d);}function dn(_0x5d8e9b,_0x560799=_0x4547e4[_0x354fcb(0x429)]){let _0x3a9aa5=un(_0x5d8e9b,_0x560799);return _0x3a9aa5==null?null:ln(_0x3a9aa5,_0x560799);}function fn(_0x1e99f7={}){const _0xe30d4b=_0x354fcb;let _0x5a3088=String(_0x1e99f7[_0xe30d4b(0x177)]??_0x1e99f7[_0xe30d4b(0x24a)]??_0x1e99f7[_0xe30d4b(0x476)]??on)[_0xe30d4b(0x3bc)]()||on,_0x319c5d=sn[_0xe30d4b(0x235)](_0x5a3088);return{'pattern':_0x5a3088[_0xe30d4b(0x2b1)](sn,'')||on,'includeTime':typeof _0x1e99f7['includeTime']==_0xe30d4b(0x364)?_0x1e99f7[_0xe30d4b(0x501)]:_0x319c5d,'hourCycle':_0x1e99f7[_0xe30d4b(0x21c)]===_0xe30d4b(0x2cc)?_0xe30d4b(0x2cc):_0xe30d4b(0x1a8)};}function pn(_0x934520={}){let {format:_0x50f4df,dateFormat:_0xa8ab7f,..._0x28346d}=_0x934520;return{..._0x28346d,...fn(_0x934520)};}function mn(_0x4d91d5,_0x579845={}){const _0x5c32c8=_0x354fcb;let _0x44d2a0=dn(_0x4d91d5);if(_0x44d2a0==null||!Number[_0x5c32c8(0x2c3)](_0x44d2a0))return'';let _0x2ccda7=fn(_0x579845);return _0x5cea60(_0x44d2a0)[_0x5c32c8(0x24a)](hn(_0x2ccda7));}function hn(_0x1527e2){const _0x8be71c=_0x354fcb;let {pattern:_0x55c560,includeTime:_0x4e4890,hourCycle:_0x139373}=_0x1527e2,_0x396135=cn[_0x55c560]??cn[on];return _0x4e4890?_0x396135+'\x20'+(_0x139373===_0x8be71c(0x2cc)?_0x8be71c(0x3f7):_0x8be71c(0x25d)):_0x396135;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x19bf94[_0x354fcb(0x44f)]]);function vn(_0x15d581){const _0x40e74c=_0x354fcb;switch(_0x15d581){case _0x19bf94['Number']:case _0x19bf94[_0x40e74c(0x19c)]:case _0x19bf94[_0x40e74c(0x1ba)]:case _0x19bf94[_0x40e74c(0x4c5)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x23b)],_0x79efc5['LESS_THAN'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x440)]:case _0x19bf94[_0x40e74c(0x253)]:case _0x19bf94['UpdatedAt']:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5['BEFORE'],_0x79efc5['AFTER'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x19e)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)]];default:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x33f)],_0x79efc5[_0x40e74c(0x34c)],_0x79efc5['IS_EMPTY'],_0x79efc5['IS_NOT_EMPTY']];}}function yn(_0x1bd2bb){const _0x2d5e9a=_0x354fcb;return _0x1bd2bb===_0x19bf94['Date']||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x253)]||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x347)];}function bn(_0x2e58f9,_0x5ef577){const _0x547784=_0x354fcb;return _0x2e58f9==null&&_0x5ef577==null?0x0:_0x2e58f9==null?-0x1:_0x5ef577==null?0x1:typeof _0x2e58f9==_0x547784(0x256)&&typeof _0x5ef577==_0x547784(0x256)?_0x2e58f9-_0x5ef577:String(_0x2e58f9)[_0x547784(0x4bc)](String(_0x5ef577));}function xn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223,_0x37a850={}){const _0x198adb=_0x354fcb;if(_0x430f43===_0x198adb(0x3cb))return Sn(_0x3f284f);if(_0x430f43==='isNotEmpty')return!Sn(_0x3f284f);switch(_0x198223[_0x198adb(0x33a)]){case _0x19bf94[_0x198adb(0x271)]:case _0x19bf94[_0x198adb(0x19c)]:case _0x19bf94[_0x198adb(0x1ba)]:case _0x19bf94[_0x198adb(0x4c5)]:return Cn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94[_0x198adb(0x440)]:case _0x19bf94['CreatedAt']:case _0x19bf94[_0x198adb(0x347)]:return Tn(_0x3f284f,_0x430f43,_0x1c65b2,_0x37a850);case _0x19bf94[_0x198adb(0x19e)]:return jn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x198adb(0x1e5)]:case _0x19bf94['Group']:return Nn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223);default:return Pn(_0x3f284f,_0x430f43,_0x1c65b2);}}function Sn(_0x6c1087){const _0x154548=_0x354fcb;return _0x6c1087==null?!0x0:Array[_0x154548(0x354)](_0x6c1087)?_0x6c1087[_0x154548(0x458)]===0x0:typeof _0x6c1087==_0x154548(0x471)&&_0x6c1087[_0x154548(0x3bc)]()==='';}function Cn(_0xe3b88f,_0x5ba7ba,_0x542d03){const _0x48366b=_0x354fcb;let _0x3cc6a9=wn(_0xe3b88f),_0x3e5755=wn(_0x542d03);if(_0x3cc6a9==null||_0x3e5755==null)return!0x1;switch(_0x5ba7ba){case'is':return _0x3cc6a9===_0x3e5755;case _0x48366b(0x521):return _0x3cc6a9!==_0x3e5755;case _0x48366b(0x267):return _0x3cc6a9>_0x3e5755;case'greaterThanOrEqual':return _0x3cc6a9>=_0x3e5755;case _0x48366b(0x212):return _0x3cc6a9<_0x3e5755;case _0x48366b(0x1eb):return _0x3cc6a9<=_0x3e5755;default:return!0x1;}}function wn(_0x2da85c){const _0x105ad2=_0x354fcb;if(_0x2da85c==null||_0x2da85c==='')return null;let _0x324912=Number(_0x2da85c);return Number[_0x105ad2(0x2c3)](_0x324912)?_0x324912:null;}function Tn(_0x1fa8ea,_0x48c1fd,_0x3d0e73,_0x3025e3){const _0x4e08e5=_0x354fcb;let _0x31d594=Dn(_0x1fa8ea);if(_0x31d594==null)return!0x1;let _0x5b5e8b=En(_0x3025e3[_0x4e08e5(0x43b)]??_0x173d28[_0x4e08e5(0x184)],_0x3d0e73,_0x3025e3[_0x4e08e5(0x181)]);if(!_0x5b5e8b)return!0x1;switch(_0x48c1fd){case _0x79efc5['IS']:return _0x31d594>=_0x5b5e8b[_0x4e08e5(0x191)]&&_0x31d594<=_0x5b5e8b[_0x4e08e5(0x3ce)];case _0x79efc5[_0x4e08e5(0x48d)]:return _0x31d594<_0x5b5e8b[_0x4e08e5(0x191)]||_0x31d594>_0x5b5e8b['end'];case _0x79efc5[_0x4e08e5(0x2e4)]:return _0x31d594<_0x5b5e8b['start'];case _0x79efc5[_0x4e08e5(0x486)]:return _0x31d594>_0x5b5e8b['end'];default:return!0x1;}}function En(_0x1bdaa3,_0x1660b8,_0xbff055=Date['now']()){const _0x9e8950=_0x354fcb;let _0x3f1656=On(_0xbff055);switch(_0x1bdaa3){case _0x173d28[_0x9e8950(0x184)]:{let _0x3e4223=Dn(_0x1660b8);return _0x3e4223==null?null:V(_0x3e4223,0x0,0x1);}case _0x173d28['TODAY']:return V(_0x3f1656,0x0,0x1);case _0x173d28[_0x9e8950(0x255)]:return V(_0x3f1656,0x1,0x1);case _0x173d28[_0x9e8950(0x4d9)]:return V(_0x3f1656,-0x1,0x1);case _0x173d28[_0x9e8950(0x2c6)]:return kn(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x454)]:return kn(_0x3f1656,-0x1);case _0x173d28['THIS_MONTH']:return An(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x417)]:return An(_0x3f1656,-0x1);case _0x173d28[_0x9e8950(0x489)]:return V(_0x3f1656,-0x6,0x7);case _0x173d28[_0x9e8950(0x2cb)]:return V(_0x3f1656,0x0,0x7);case _0x173d28[_0x9e8950(0x336)]:return V(_0x3f1656,-0x1d,0x1e);case _0x173d28[_0x9e8950(0x2e0)]:return V(_0x3f1656,0x0,0x1e);}}function Dn(_0x21b6fa){let _0x1975e0=un(_0x21b6fa);return _0x1975e0==null?null:On(ln(_0x1975e0));}function On(_0x54b4e7){let _0x3e86c=new Date(_0x54b4e7);return _0x3e86c['setHours'](0x0,0x0,0x0,0x0),_0x3e86c['getTime']();}function kn(_0x3a23ed,_0x16233a){return V(_0x3a23ed,-((new Date(_0x3a23ed)['getDay']()+0x6)%0x7)+_0x16233a*0x7,0x7);}function V(_0x1b2bdf,_0xc992bf,_0x5955c3){const _0x2258b7=_0x354fcb;let _0x12e3aa=_0x5cea60(_0x1b2bdf)[_0x2258b7(0x35e)](_0xc992bf,_0x2258b7(0x2d6));return{'start':_0x12e3aa[_0x2258b7(0x3f0)](),'end':_0x12e3aa[_0x2258b7(0x35e)](_0x5955c3,_0x2258b7(0x2d6))[_0x2258b7(0x3f0)]()-0x1};}function An(_0x27694d,_0x40a215){const _0x50db6f=_0x354fcb;let _0x224710=new Date(_0x27694d),_0x564c4c=new Date(_0x224710[_0x50db6f(0x2a8)](),_0x224710[_0x50db6f(0x531)]()+_0x40a215,0x1),_0x4fa8a5=new Date(_0x224710['getFullYear'](),_0x224710[_0x50db6f(0x531)]()+_0x40a215+0x1,0x1);return{'start':_0x564c4c['getTime'](),'end':_0x4fa8a5[_0x50db6f(0x3f6)]()-0x1};}function jn(_0x23de59,_0x4cf9e5,_0x3eb924){let _0x535d8e=Mn(_0x23de59),_0x21f170=Mn(_0x3eb924);switch(_0x4cf9e5){case'is':return _0x535d8e===_0x21f170;case'isNot':return _0x535d8e!==_0x21f170;default:return!0x1;}}function Mn(_0x28e28b){return _0x28e28b===!0x0||_0x28e28b==='true'||_0x28e28b===0x1||_0x28e28b==='1';}function Nn(_0x5475dd,_0x5d16d4,_0x3a9407,_0x642d9b){const _0xedbb0a=_0x354fcb;let _0x4c06b3=In(_0x5475dd,_0x642d9b),_0xd26c6a=In(_0x3a9407,_0x642d9b),_0xe0094c=_0xd26c6a['length']>0x0&&_0xd26c6a[_0xedbb0a(0x257)](_0x3cf325=>_0x4c06b3[_0xedbb0a(0x231)](_0x3cf325));switch(_0x5d16d4){case'is':case _0xedbb0a(0x4d7):return _0xe0094c;case _0xedbb0a(0x521):case _0xedbb0a(0x4a5):return!_0xe0094c;default:return!0x1;}}function Pn(_0x2a141f,_0x534d4a,_0x4c9fd){const _0x34d2e1=_0x354fcb;let _0x1c98b9=Fn(_0x2a141f),_0x183d47=Fn(_0x4c9fd);switch(_0x534d4a){case'is':return _0x1c98b9===_0x183d47;case _0x34d2e1(0x521):return _0x1c98b9!==_0x183d47;case _0x34d2e1(0x4d7):return _0x183d47?_0x1c98b9[_0x34d2e1(0x231)](_0x183d47):!0x1;case _0x34d2e1(0x4a5):return!_0x183d47||!_0x1c98b9[_0x34d2e1(0x231)](_0x183d47);default:return!0x1;}}function Fn(_0x23e09c){const _0x5defcf=_0x354fcb;if(Array[_0x5defcf(0x354)](_0x23e09c))return _0x23e09c['map'](_0x35d3c2=>Fn(_0x35d3c2))['join']('\x0a');if(_0x23e09c&&typeof _0x23e09c==_0x5defcf(0x269)){let _0x71ae6a=_0x23e09c;return String(_0x71ae6a['name']??_0x71ae6a['label']??_0x71ae6a[_0x5defcf(0x4d2)]??_0x71ae6a['value']??_0x71ae6a['id']??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}return String(_0x23e09c??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}function In(_0x4cc2a0,_0x1a83e1){const _0x18bda8=_0x354fcb;let _0x509f67=Ln(_0x4cc2a0),_0x1cb46c=Rn(_0x1a83e1[_0x18bda8(0x342)]??{});return _0x509f67[_0x18bda8(0x2a2)](_0x127756=>_0x1cb46c[_0x18bda8(0x4a8)](_0x127756)??[_0x127756])[_0x18bda8(0x397)]((_0x25cf07,_0x2c891d,_0x1907ab)=>_0x25cf07!==''&&_0x1907ab[_0x18bda8(0x4c8)](_0x25cf07)===_0x2c891d);}function Ln(_0x3b3e8f){const _0xfda5e5=_0x354fcb;if(_0x3b3e8f==null||_0x3b3e8f==='')return[];if(Array['isArray'](_0x3b3e8f))return _0x3b3e8f[_0xfda5e5(0x2a2)](_0x17889a=>Ln(_0x17889a));if(_0x3b3e8f&&typeof _0x3b3e8f==_0xfda5e5(0x269)){let _0x516133=_0x3b3e8f;return['id','name',_0xfda5e5(0x281),_0xfda5e5(0x416),_0xfda5e5(0x4d2)][_0xfda5e5(0x2a2)](_0xb2f89e=>Ln(_0x516133[_0xb2f89e]))[_0xfda5e5(0x397)]((_0x11157d,_0x412ad0,_0x189c26)=>_0x189c26[_0xfda5e5(0x4c8)](_0x11157d)===_0x412ad0);}return[Fn(_0x3b3e8f)];}function Rn(_0x2ee1d0){const _0x17cd19=_0x354fcb;let _0x2b4241=new Map();return(Array[_0x17cd19(0x354)](_0x2ee1d0['options'])?_0x2ee1d0[_0x17cd19(0x392)]:[])[_0x17cd19(0x461)](_0x38e858=>{const _0x28cea6=_0x17cd19;if(!_0x38e858||typeof _0x38e858!='object')return;let _0x39acb9=Ln(_0x38e858),_0x539759=_0x39acb9[_0x28cea6(0x397)]((_0x2b1df8,_0x300a27)=>_0x2b1df8!==''&&_0x39acb9['indexOf'](_0x2b1df8)===_0x300a27);_0x539759[_0x28cea6(0x461)](_0x2c7633=>_0x2b4241['set'](_0x2c7633,_0x539759));}),_0x2b4241;}function H(_0xe52b86,_0x420fa4={},_0xbfa693=_0x4eecc9=>_0x4eecc9,_0x4f142a={}){const _0x2c00e4=_0x354fcb;let _0x4fdf8b=!_n[_0x2c00e4(0x23f)](_0xe52b86),_0x86474e=_0xbfa693??(_0x40f62c=>_0x40f62c);return{'type':_0xe52b86,'i18nKey':_0x2c00e4(0x439)+_0xe52b86,'enabled':_0x4fdf8b,'visibleInCreateMenu':_0x4fdf8b,'createDefaultConfig':_0x4f142a[_0x2c00e4(0x435)]??(()=>({})),'createDefaultValue':_0x4f142a['createDefaultValue']??(_0x6f1610=>_0x6f1610['defaultValue']??null),'normalize':(_0x19b85a,_0x2af6f5)=>_0x86474e(_0x19b85a,_0x2af6f5),'validate':(_0x1c09c2,_0x32c821)=>{const _0x647eee=_0x2c00e4;var _0x548719;return _0x4fdf8b?((_0x548719=_0x4f142a[_0x647eee(0x209)])==null?void 0x0:_0x548719[_0x647eee(0x331)](_0x4f142a,_0x1c09c2,_0x32c821))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x40a8c1,_0x52cd36)=>bn(_0x40a8c1,_0x52cd36),'filter':(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b)=>xn(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b),'toPlainText':_0x4f142a[_0x2c00e4(0x284)]??(_0x115b45=>_0x115b45==null?'':String(_0x115b45)),'fromPlainText':_0x4f142a[_0x2c00e4(0x4dc)]??(_0x412e92=>_0x86474e(_0x412e92,{'id':'','name':'','type':_0xe52b86,'config':{}})),'getCapabilities':()=>({...gn,..._0x420fa4,'editable':_0x4fdf8b&&(_0x420fa4[_0x2c00e4(0x346)]??gn[_0x2c00e4(0x346)])})};}function zn(){const _0x1ee0c6=_0x354fcb;return[H(_0x19bf94['Text'],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x3ab)}),'createDefaultValue':_0x1e958a=>_0x1e958a[_0x1ee0c6(0x241)]??''}),H(_0x19bf94['SingleSelect'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x327416=>_0x327416==null||_0x327416===''?null:String(_0x327416),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}})}),H(_0x19bf94[_0x1ee0c6(0x283)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x45d3b4=>Array[_0x1ee0c6(0x354)](_0x45d3b4)?_0x45d3b4[_0x1ee0c6(0x29b)](String):_0x45d3b4==null?[]:[String(_0x45d3b4)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}}),'createDefaultValue':_0x543094=>_0x543094[_0x1ee0c6(0x241)]??[]}),H(_0x19bf94[_0x1ee0c6(0x1e5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1ee0c6(0x300)}),'validate':Gn}),H(_0x19bf94[_0x1ee0c6(0x223)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x1ee0c6(0x1b9)}),'createDefaultValue':_0x423748=>_0x423748['defaultValue']??[],'validate':Kn}),H(_0x19bf94[_0x1ee0c6(0x440)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x218bac=>un(_0x218bac),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x46f)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x4d8792=>_0x4d8792==null?[]:Array[_0x1ee0c6(0x354)](_0x4d8792)?_0x4d8792:[_0x4d8792],{'createDefaultValue':_0x2fbefa=>_0x2fbefa['defaultValue']??[]}),H(_0x19bf94[_0x1ee0c6(0x271)],{},_0x5afd92=>_0x5afd92==null||_0x5afd92===''?null:Number(_0x5afd92),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x19bf94['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x237b0a=>_0x237b0a===!0x0||_0x237b0a===_0x1ee0c6(0x468)||_0x237b0a===0x1||_0x237b0a==='1',{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x49b),'color':_0x1ee0c6(0x41f)}),'createDefaultValue':_0x55f08d=>_0x55f08d[_0x1ee0c6(0x241)]??!0x1,'validate':_0x459646=>typeof _0x459646==_0x1ee0c6(0x364)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),H(_0x19bf94['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x2a7)}),'toPlainText':_0x4842aa=>Zn(_0x4842aa),'fromPlainText':_0x5b2aa4=>Xn(_0x5b2aa4)}),H(_0x19bf94[_0x1ee0c6(0x405)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x1ee0c6(0x325),'pattern':_0x1ee0c6(0x4e9)}}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x469)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x1ee0c6(0x19d)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x2ac)],{'usableAsTitle':!0x0},_0xa5f8aa=>_0xa5f8aa==null?null:String(_0xa5f8aa)[_0x1ee0c6(0x3bc)](),{'validate':_0x13a6f8=>_0x13a6f8==null||_0x13a6f8===''||/^\+?[0-9 ()-]{6,20}$/['test'](String(_0x13a6f8))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x19bf94[_0x1ee0c6(0x34d)],{'usableAsTitle':!0x0},_0xe88a27=>_0xe88a27==null?null:String(_0xe88a27)[_0x1ee0c6(0x3bc)](),{'validate':_0x59c90e=>_0x59c90e==null||_0x59c90e===''||$n(String(_0x59c90e))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1ee0c6(0x2f3)}}),H(_0x19bf94[_0x1ee0c6(0x1ba)],{'usableAsGanttProgress':!0x0},_0xa4c57a=>_0xa4c57a==null||_0xa4c57a===''?null:Number(_0xa4c57a),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1ee0c6(0x332),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x1e411d,_0x527781)=>Yn(_0x1e411d,_0x527781,_0x1ee0c6(0x38d))}),H(_0x19bf94[_0x1ee0c6(0x19c)],{},_0x5325bd=>_0x5325bd==null||_0x5325bd===''?null:Number(_0x5325bd),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x19bf94[_0x1ee0c6(0x4c5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x571480=>_0x571480==null||_0x571480===''?null:Number(_0x571480),{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x45b),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x3ec766,_0x13fd53)=>Yn(_0x3ec766,_0x13fd53,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x19bf94[_0x1ee0c6(0x2bd)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x3f27e4,_0x388120)=>ze(_0x3f27e4,_0x388120[_0x1ee0c6(0x342)]['multiple']===!0x0)}),H(_0x19bf94[_0x1ee0c6(0x44f)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x19bf94[_0x1ee0c6(0x1fe)],{'editable':!0x1,'groupable':!0x0},_0x198be3=>_0x198be3==null?null:String(_0x198be3),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x4df)],{'editable':!0x1,'groupable':!0x0},_0xc7f252=>_0xc7f252==null?null:String(_0xc7f252),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x253)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x6a04d1=>un(_0x6a04d1),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x347)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x463347=>un(_0x463347),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x5003ba=_0x354fcb;return{'pattern':_0x5003ba(0x408),'decimalPlaces':0x2,'separatorStyle':_0x5003ba(0x40a),'useThousands':!0x0,'abbreviation':_0x5003ba(0x3e0),'allowNegative':!0x0};}function Vn(){const _0x213d14=_0x354fcb;return{'locale':_0x213d14(0x1d5),'pattern':_0x213d14(0x1cd),'includeTime':!0x1,'hourCycle':_0x213d14(0x1a8),'defaultMode':_0x213d14(0x3e0)};}function Hn(_0x1fde51){const _0x26e1fe=_0x354fcb;return _0x1fde51==null||_0x1fde51===''?[]:Array[_0x26e1fe(0x354)](_0x1fde51)?_0x1fde51[_0x26e1fe(0x29b)](String):[String(_0x1fde51)];}function Un(_0x1074a8){const _0x28df28=_0x354fcb;return typeof _0x1074a8==_0x28df28(0x471)?_0x1074a8:'';}function Wn(_0x848846,_0x38c948){const _0x3a4f60=_0x354fcb;return _0x848846==null||_0x848846===''?_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?[]:null:_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?Array[_0x3a4f60(0x354)](_0x848846)?_0x848846[_0x3a4f60(0x29b)](String):[String(_0x848846)]:Array['isArray'](_0x848846)?String(_0x848846[0x0]??'')||null:String(_0x848846);}function Gn(_0x390d94,_0x3805f5){const _0x3be165=_0x354fcb;return _0x3805f5['config']['allowMultiple']===!0x0?Kn(_0x390d94):_0x390d94==null||_0x390d94===''||typeof _0x390d94==_0x3be165(0x471)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3be165(0x205)};}function Kn(_0x799c5f){const _0xb31783=_0x354fcb;return _0x799c5f==null||Array[_0xb31783(0x354)](_0x799c5f)&&_0x799c5f['every'](_0x24fdab=>typeof _0x24fdab==_0xb31783(0x471))?{'valid':!0x0}:{'valid':!0x1,'reason':_0xb31783(0x3bd)};}function qn(_0x391f0b){const _0x4add78=_0x354fcb;return _0x391f0b==null||typeof _0x391f0b==_0x4add78(0x256)&&Number[_0x4add78(0x2c3)](_0x391f0b)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4add78(0x394)};}function Jn(_0x59e7e1,_0x3db74b){const _0x5459f9=_0x354fcb;return _0x59e7e1==null||_0x59e7e1===''?{'valid':!0x0}:typeof _0x59e7e1!=_0x5459f9(0x256)||!Number[_0x5459f9(0x2c3)](_0x59e7e1)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x3db74b[_0x5459f9(0x342)][_0x5459f9(0x277)]===!0x1&&_0x59e7e1<0x0?{'valid':!0x1,'reason':_0x5459f9(0x4c9)}:{'valid':!0x0};}function Yn(_0x1dc9da,_0x5c49f8,_0x2e949c){const _0x54d96c=_0x354fcb;let _0x4e7ab0=Jn(_0x1dc9da,_0x5c49f8);if(!_0x4e7ab0[_0x54d96c(0x35c)]||_0x1dc9da==null||_0x1dc9da==='')return _0x4e7ab0;let _0x58a0da=Number(_0x5c49f8[_0x54d96c(0x342)]['min']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x191)]??0x0),_0x3078fb=Number(_0x5c49f8['config']['max']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x3ce)]??0x64),_0x5cf1ef=Number(_0x1dc9da);return _0x5cf1ef>=_0x58a0da&&_0x5cf1ef<=_0x3078fb?{'valid':!0x0}:{'valid':!0x1,'reason':_0x2e949c};}function Xn(_0x225fff){const _0x313ac6=_0x354fcb;if(_0x225fff==null||_0x225fff==='')return null;if(typeof _0x225fff==_0x313ac6(0x269)&&!Array[_0x313ac6(0x354)](_0x225fff)){let _0x232094=_0x225fff,_0x7e9c53=typeof _0x232094[_0x313ac6(0x4d2)]==_0x313ac6(0x471)?_0x232094['text'][_0x313ac6(0x3bc)]():'',_0x5d8565=typeof _0x232094[_0x313ac6(0x1c7)]=='string'?_0x232094[_0x313ac6(0x1c7)]['trim']():'',_0x5d7200=Qn(_0x5d8565||_0x7e9c53);return _0x5d7200?{'text':_0x7e9c53||_0x5d8565||_0x5d7200,'url':_0x5d7200}:null;}let _0x55557f=String(_0x225fff)[_0x313ac6(0x3bc)](),_0x42b333=Qn(_0x55557f);return _0x42b333?{'text':_0x55557f,'url':_0x42b333}:null;}function Zn(_0x5768b8){const _0x25ba4f=_0x354fcb;if(_0x5768b8==null)return'';if(typeof _0x5768b8=='object'&&!Array[_0x25ba4f(0x354)](_0x5768b8)){let _0x5841cd=_0x5768b8;return String(_0x5841cd[_0x25ba4f(0x4d2)]||_0x5841cd[_0x25ba4f(0x1c7)]||'');}return String(_0x5768b8);}function Qn(_0x57d5f5){const _0x568d70=_0x354fcb;let _0x403c7a=_0x57d5f5['trim']();if(!_0x403c7a)return'';let _0x57033f=/^[a-z][a-z\d+.-]*:/i['test'](_0x403c7a)?_0x403c7a:_0x403c7a[_0x568d70(0x254)]('//')?_0x568d70(0x45c)+_0x403c7a:'https://'+_0x403c7a;try{let _0x14ad9a=new URL(_0x57033f);return _0x14ad9a['protocol']===_0x568d70(0x410)||_0x14ad9a[_0x568d70(0x4ec)]===_0x568d70(0x45c)?_0x14ad9a[_0x568d70(0x3d9)]:'';}catch{return'';}}function $n(_0x5b1d4c){const _0x51541b=_0x354fcb;let _0x1f1465=_0x5b1d4c[_0x51541b(0x4c8)]('@');if(_0x1f1465<=0x0||_0x1f1465!==_0x5b1d4c[_0x51541b(0x444)]('@'))return!0x1;let _0x31134e=_0x5b1d4c[_0x51541b(0x192)](_0x1f1465+0x1);return _0x31134e['includes']('.')&&!_0x5b1d4c[_0x51541b(0x231)]('\x20')&&!_0x31134e[_0x51541b(0x254)]('.')&&!_0x31134e[_0x51541b(0x424)]('.');}const U={'table':_0x356416=>['tables',_0x356416],'field':(_0x337c3c,_0x3edec2)=>[_0x354fcb(0x2ba),_0x337c3c,_0x354fcb(0x480),_0x3edec2],'fieldOrder':(_0x14429c,_0x587a81)=>[_0x354fcb(0x2ba),_0x14429c,_0x354fcb(0x1e1),_0x587a81],'record':(_0x18f554,_0x24f935)=>[_0x354fcb(0x2ba),_0x18f554,_0x354fcb(0x45a),_0x24f935],'cell':(_0x4420bb,_0x424782,_0xf2cec8)=>[_0x354fcb(0x2ba),_0x4420bb,_0x354fcb(0x45a),_0x424782,_0x354fcb(0x1da),_0xf2cec8],'cellData':(_0x5d9c6f,_0x3c289d,_0xbd87cf)=>[_0x354fcb(0x2ba),_0x5d9c6f,_0x354fcb(0x1cf),String(_0x3c289d),String(_0xbd87cf)],'attachmentSet':(_0x4ccfd7,_0x529080)=>['tables',_0x4ccfd7,_0x354fcb(0x358),_0x354fcb(0x47e),_0x529080],'attachment':(_0x4a64ed,_0x21ac81)=>[_0x354fcb(0x2ba),_0x4a64ed,'resources',_0x354fcb(0x499),_0x21ac81],'view':(_0x265723,_0x34d7d2)=>['tables',_0x265723,_0x354fcb(0x38b),_0x34d7d2],'viewFieldHidden':(_0x122178,_0x299f55,_0x19540d)=>[_0x354fcb(0x2ba),_0x122178,'views',_0x299f55,_0x354fcb(0x484),_0x19540d,'hidden']};var W=class{[_0x354fcb(0x22a)](_0x196e68,_0x262fbc){const _0x108d4f=_0x354fcb;let _0x1c1902=this[_0x108d4f(0x1ed)](_0x196e68,_0x196e68[_0x108d4f(0x1e0)],_0x262fbc);return R([this[_0x108d4f(0x24b)]([_0x108d4f(0x1e0)],_0x196e68[_0x108d4f(0x1e0)],_0x262fbc),..._0x1c1902?[_0x1c1902]:[]]);}[_0x354fcb(0x1ed)](_0x32db73,_0x22c1d3,_0x38541a){const _0xbce59c=_0x354fcb;let _0x567e2f=Object[_0xbce59c(0x1da)](_0x32db73['tables'])['flatMap'](_0x4a381a=>Object[_0xbce59c(0x1da)](_0x4a381a[_0xbce59c(0x480)])[_0xbce59c(0x2a2)](_0x54c828=>{const _0xd1200d=_0xbce59c;var _0x2e45f7,_0x59ba07;if(_0x54c828[_0xd1200d(0x33a)]!==_0x19bf94[_0xd1200d(0x405)])return[];let _0x2d164f=String(((_0x2e45f7=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x2e45f7[_0xd1200d(0x23a)])??''),_0x5b35f8=_0x5981a8(_0x2d164f,_0x22c1d3,_0x38541a);return _0x5b35f8===_0x2d164f?[]:[this['_replaceOptional']([...U[_0xd1200d(0x28b)](_0x4a381a['id'],_0x54c828['id']),_0xd1200d(0x342),_0xd1200d(0x23a)],(_0x59ba07=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x59ba07[_0xd1200d(0x23a)],_0x5b35f8)];}));return _0x567e2f[_0xbce59c(0x458)]>0x0?R(_0x567e2f):void 0x0;}[_0x354fcb(0x500)](_0x5bcd44,_0x4f9dc3,_0x221442=_0x5bcd44[_0x354fcb(0x3e3)]['length']){const _0x4d74de=_0x354fcb;let _0x60153a=_0x3ec76b(_0x4f9dc3[_0x4d74de(0x1e0)],_0x49362b(_0x5bcd44)[_0x4d74de(0x1da)](),_0x4f9dc3[_0x4d74de(0x357)]),_0x4dece8=_0x4f9dc3[_0x4d74de(0x357)]===_0x60153a?_0x4f9dc3:{..._0x4f9dc3,'formulaName':_0x60153a};return R([...this[_0x4d74de(0x317)](_0x5bcd44),_0x370803[_0x4d74de(0x207)](U[_0x4d74de(0x513)](_0x4f9dc3['id']),_0x4dece8),_0x370803[_0x4d74de(0x207)](['tableOrder',_0x221442],_0x4f9dc3['id'])]);}[_0x354fcb(0x1be)](_0x2aa89f,_0x52aa2d,_0x15c8e2){const _0x1c80ab=_0x354fcb;let _0x9e5153=_0x2aa89f[_0x1c80ab(0x2ba)][_0x52aa2d];return R([...this[_0x1c80ab(0x317)](_0x2aa89f),_0x370803['replaceOp']([...U[_0x1c80ab(0x513)](_0x52aa2d),_0x1c80ab(0x1e0)],_0x9e5153[_0x1c80ab(0x1e0)],_0x15c8e2)]);}[_0x354fcb(0x4d8)](_0x8c193e,_0x1efc7c){const _0x4aa7d8=_0x354fcb;let _0x39ce3c=_0x8c193e['tables'][_0x1efc7c],_0x1fa51b=_0x8c193e[_0x4aa7d8(0x3e3)]['indexOf'](_0x1efc7c);return R([...this[_0x4aa7d8(0x317)](_0x8c193e,new Set([_0x1efc7c])),_0x370803[_0x4aa7d8(0x246)](U[_0x4aa7d8(0x513)](_0x1efc7c),_0x39ce3c),_0x370803[_0x4aa7d8(0x246)](['tableOrder',_0x1fa51b],_0x1efc7c)]);}[_0x354fcb(0x4a0)](_0x11e87b,_0x5197d,_0x2058f0){return this['createRecords'](_0x11e87b,_0x5197d,[_0x2058f0]);}[_0x354fcb(0x268)](_0x5372be,_0x46bf77,_0x5bb7f1){const _0x493bde=_0x354fcb;let _0x225d5a=_0x5372be[_0x493bde(0x2ba)][_0x46bf77],_0xff005e=_0x5bb7f1[_0x493bde(0x397)](_0x42c980=>_0x42c980&&!_0x225d5a[_0x493bde(0x45a)][_0x42c980['id']])[_0x493bde(0x29b)](_0x163c45=>({..._0x163c45,'values':{..._0x163c45[_0x493bde(0x1da)],[_0x3b44b5]:_0x163c45['id']}}));if(!_0xff005e['length'])return _0x370803[_0x493bde(0x333)]([...U[_0x493bde(0x513)](_0x46bf77),'records'],_0x225d5a[_0x493bde(0x45a)],_0x225d5a['records']);let _0x4f2a99=new _0x370803[(_0x493bde(0x343))](),_0x1896aa=[..._0xff005e][_0x493bde(0x3db)]((_0x439094,_0x4561f6)=>_0x439094['id']<_0x4561f6['id']?-0x1:+(_0x439094['id']>_0x4561f6['id'])),_0x578ad6=[...U[_0x493bde(0x513)](_0x46bf77),'records'];_0x4f2a99[_0x493bde(0x197)](_0x578ad6);for(let _0x5f2136 of _0x1896aa)_0x4f2a99[_0x493bde(0x1c1)](_0x5f2136['id']),_0x4f2a99[_0x493bde(0x338)]('i',_0x5f2136),_0x4f2a99[_0x493bde(0x2dc)]();for(let _0x10be1a=0x0;_0x10be1a<_0x578ad6[_0x493bde(0x458)];_0x10be1a+=0x1)_0x4f2a99['ascend']();return R([_0x4f2a99[_0x493bde(0x4a8)](),this['_createRecordOrderOp'](_0x5372be,_0x46bf77,_0xff005e)]);}[_0x354fcb(0x375)](_0x448e08,_0x41e5d5,_0x5b644f){const _0x3d76c7=_0x354fcb;return this[_0x3d76c7(0x305)](_0x448e08,_0x41e5d5,[_0x5b644f]);}[_0x354fcb(0x305)](_0x2eb6c6,_0x4dac0e,_0x441b2e){const _0x4d2249=_0x354fcb;let _0x367a20=_0x2eb6c6[_0x4d2249(0x2ba)][_0x4dac0e],_0x3d15c8=Array['from'](new Set(_0x441b2e))[_0x4d2249(0x397)](_0x1282c1=>_0x367a20['records'][_0x1282c1]);if(!_0x3d15c8['length'])return _0x370803[_0x4d2249(0x333)]([...U[_0x4d2249(0x513)](_0x4dac0e),_0x4d2249(0x45a)],_0x367a20[_0x4d2249(0x45a)],_0x367a20['records']);let _0x5a3a3a=new Set(_0x3d15c8),_0x323d9c=et(_0x367a20,_0x3d15c8)['map'](_0x57177b=>this[_0x4d2249(0x3e6)](_0x2eb6c6,_0x4dac0e,_0x57177b['recordId'],_0x57177b[_0x4d2249(0x46e)],''));return R([this[_0x4d2249(0x24c)](_0x2eb6c6,_0x4dac0e,_0x3d15c8,_0x5a3a3a),..._0x323d9c]);}[_0x354fcb(0x51d)](_0x541777,_0x531b53,_0x5518ae,_0x39ee30){const _0x19b61e=_0x354fcb;let _0x3526a4=_0x541777[_0x19b61e(0x2ba)][_0x5518ae],_0xfa08c4=Array[_0x19b61e(0x4dd)](new Set(_0x39ee30))[_0x19b61e(0x397)](_0x3ef604=>_0x3526a4[_0x19b61e(0x45a)][_0x3ef604]),_0x4dcb96=new Set(_0xfa08c4);return R([new z()[_0x19b61e(0x2aa)](_0x541777,this[_0x19b61e(0x24c)](_0x541777,_0x5518ae,_0xfa08c4,_0x4dcb96)),...et(_0x3526a4,_0xfa08c4)['map'](_0x669415=>this[_0x19b61e(0x3e6)](_0x531b53,_0x5518ae,_0x669415[_0x19b61e(0x4bb)],_0x669415[_0x19b61e(0x46e)],_0x669415[_0x19b61e(0x30d)]??''))]);}[_0x354fcb(0x24c)](_0x30d54f,_0x25683e,_0x556b49,_0x4468ad){const _0x54974a=_0x354fcb;let _0xa2aa49=_0x30d54f['tables'][_0x25683e],_0x4a5745=_0x556b49[_0x54974a(0x29b)](_0x1fc5ac=>{const _0x2f7eaf=_0x54974a;var _0x30b1a3;return{'recordId':_0x1fc5ac,'index':((_0x30b1a3=_0xa2aa49[_0x2f7eaf(0x22d)])==null?void 0x0:_0x30b1a3[_0x2f7eaf(0x4c8)](_0x1fc5ac))??-0x1};})[_0x54974a(0x397)](_0x3a25cc=>_0x3a25cc[_0x54974a(0x250)]>=0x0)['sort']((_0x276a42,_0x5edd0e)=>_0x5edd0e[_0x54974a(0x250)]-_0x276a42['index']);return R([..._0x556b49['map'](_0x5c1476=>_0x370803[_0x54974a(0x246)](U[_0x54974a(0x52b)](_0x25683e,_0x5c1476),_0xa2aa49[_0x54974a(0x45a)][_0x5c1476])),..._0x4a5745[_0x54974a(0x29b)](({recordId:_0x33c015,index:_0x5bb885})=>_0x370803[_0x54974a(0x246)]([_0x54974a(0x2ba),_0x25683e,'recordOrder',_0x5bb885],_0x33c015)),...this[_0x54974a(0x4a3)](_0xa2aa49,_0x25683e,_0x3953a6=>{const _0x3a831a=_0x54974a;let _0x257273=_0x3953a6[_0x3a831a(0x192)](_0x3953a6[_0x3a831a(0x444)]('\x1f')+0x1);return _0x4468ad[_0x3a831a(0x23f)](_0x257273);})]);}[_0x354fcb(0x3e5)](_0x5ea815,_0x45cf19,_0x12d5f2,_0x562f2e){const _0x4147ed=_0x354fcb;return this[_0x4147ed(0x4a0)](_0x5ea815,_0x45cf19,{..._0x562f2e,'values':{..._0x5ea815[_0x4147ed(0x2ba)][_0x45cf19][_0x4147ed(0x45a)][_0x12d5f2][_0x4147ed(0x1da)],..._0x562f2e[_0x4147ed(0x1da)],[_0x3b44b5]:_0x562f2e['id']}});}[_0x354fcb(0x229)](_0x15de97,_0x2239cb,_0x5a1aec,_0x4ec67a){const _0x18ae2b=_0x354fcb;let _0x280fde=_0x15de97[_0x18ae2b(0x2ba)][_0x2239cb],_0x4d1c6e=[...U['record'](_0x2239cb,_0x5a1aec),_0x18ae2b(0x3ef)],_0xcd69e4=Object[_0x18ae2b(0x1da)](_0x280fde[_0x18ae2b(0x45a)])[_0x18ae2b(0x29b)](_0x2f3024=>_0x2f3024['id']===_0x5a1aec?{..._0x2f3024,'orderKey':_0x4ec67a}:_0x2f3024)[_0x18ae2b(0x3db)]((_0x56e55f,_0x4e4277)=>String(_0x56e55f[_0x18ae2b(0x3ef)]??_0x56e55f['id'])[_0x18ae2b(0x4bc)](String(_0x4e4277[_0x18ae2b(0x3ef)]??_0x4e4277['id'])))[_0x18ae2b(0x29b)](_0x4694e2=>_0x4694e2['id']),_0x4725cb=[...U['table'](_0x2239cb),'recordOrder'];return R([this[_0x18ae2b(0x24b)](_0x4d1c6e,_0x280fde[_0x18ae2b(0x45a)][_0x5a1aec]['orderKey'],_0x4ec67a),_0x280fde[_0x18ae2b(0x22d)]?_0x370803[_0x18ae2b(0x333)](_0x4725cb,_0x280fde[_0x18ae2b(0x22d)],_0xcd69e4):_0x370803[_0x18ae2b(0x207)](_0x4725cb,_0xcd69e4)]);}['updateCell'](_0x442947,_0x1e74fe,_0x2251df,_0x1ff27f,_0x54d826){const _0x24f67f=_0x354fcb;var _0x38757f,_0x218502;let _0x16d4d9=_0x442947['tables'][_0x1e74fe],_0x109f2d=ar(_0x16d4d9,_0x2251df,_0x1ff27f)?_0x16d4d9:L(_0x16d4d9),_0x5acb88=(_0x38757f=_0x109f2d[_0x24f67f(0x290)])==null?void 0x0:_0x38757f[_0x2251df],_0x3da42e=(_0x218502=_0x109f2d[_0x24f67f(0x288)])==null?void 0x0:_0x218502[_0x1ff27f];if(_0x5acb88==null||_0x3da42e==null){var _0x5519dd;return this['_replaceOptional'](U[_0x24f67f(0x4eb)](_0x1e74fe,_0x2251df,_0x1ff27f),(_0x5519dd=_0x442947[_0x24f67f(0x2ba)][_0x1e74fe])==null||(_0x5519dd=_0x5519dd[_0x24f67f(0x45a)][_0x2251df])==null?void 0x0:_0x5519dd[_0x24f67f(0x1da)][_0x1ff27f],_0x54d826);}return this[_0x24f67f(0x511)](_0x442947,_0x1e74fe,[{'row':_0x5acb88,'col':_0x3da42e,'value':_0x54d826}]);}[_0x354fcb(0x19a)](_0x42b2b1,_0x5ea59e,_0x28f40b){const _0x5c77a2=_0x354fcb;let _0xfbd4d0=_0x42b2b1['tables'][_0x5ea59e],_0x22dcb9=_0x28f40b[_0x5c77a2(0x1b6)](_0x32f45a=>Object[_0x5c77a2(0x51b)](_0x32f45a[_0x5c77a2(0x1da)])[_0x5c77a2(0x1b6)](_0xb9b906=>ar(_0xfbd4d0,_0x32f45a['recordId'],_0xb9b906)))?_0xfbd4d0:L(_0xfbd4d0),_0x286017=_0x28f40b['flatMap'](_0x228547=>Object[_0x5c77a2(0x1e2)](_0x228547[_0x5c77a2(0x1da)])[_0x5c77a2(0x2a2)](([_0x537411,_0x331e55])=>{const _0x525ea7=_0x5c77a2;var _0x2a8ecf,_0x53edf0;let _0x12ec42=(_0x2a8ecf=_0x22dcb9[_0x525ea7(0x290)])==null?void 0x0:_0x2a8ecf[_0x228547[_0x525ea7(0x4bb)]],_0x25d862=(_0x53edf0=_0x22dcb9[_0x525ea7(0x288)])==null?void 0x0:_0x53edf0[_0x537411];return _0x12ec42==null||_0x25d862==null?[]:[{'row':_0x12ec42,'col':_0x25d862,'value':_0x331e55}];})),_0x211c8f=_0x28f40b[_0x5c77a2(0x2a2)](_0x5f41e0=>Object[_0x5c77a2(0x1e2)](_0x5f41e0[_0x5c77a2(0x4b8)]??{})['map'](([_0x450e48,_0x3866a5])=>{const _0xfe8910=_0x5c77a2;var _0x4ec52e;let _0xa959d9=[...U[_0xfe8910(0x52b)](_0x5ea59e,_0x5f41e0[_0xfe8910(0x4bb)]),_0x450e48],_0x6a4810=(_0x4ec52e=_0x42b2b1[_0xfe8910(0x2ba)][_0x5ea59e])==null||(_0x4ec52e=_0x4ec52e[_0xfe8910(0x45a)][_0x5f41e0[_0xfe8910(0x4bb)]])==null?void 0x0:_0x4ec52e[_0x450e48];return this['_replaceOptional'](_0xa959d9,_0x6a4810,_0x3866a5);}));return R([this[_0x5c77a2(0x511)](_0x42b2b1,_0x5ea59e,_0x286017),..._0x211c8f]);}[_0x354fcb(0x511)](_0x37b665,_0x20d686,_0x4ab010){const _0x111137=_0x354fcb;let _0xab954b=_0x37b665[_0x111137(0x2ba)][_0x20d686],_0x4510d7=_0x4ab010[_0x111137(0x1b6)](_0x295918=>or(_0xab954b,_0x295918['row'],_0x295918[_0x111137(0x1ea)]))?_0xab954b:L(_0xab954b),_0x3f6015=new Map(),_0x533cf2=_0x4ab010['flatMap'](_0x26a4d1=>{const _0x545c52=_0x111137;var _0x160a99,_0x52dccc,_0x42c4d7,_0x36eba1;let _0x1069ed=(_0x160a99=_0x4510d7[_0x545c52(0x242)])==null?void 0x0:_0x160a99[_0x26a4d1[_0x545c52(0x1ea)]],_0x16a050=(_0x52dccc=_0x4510d7[_0x545c52(0x474)])==null?void 0x0:_0x52dccc[_0x26a4d1[_0x545c52(0x21b)]],_0x50d2f8=_0x1069ed?_0x4510d7['fields'][_0x1069ed]:void 0x0;if(_0x1069ed===_0x3b44b5||(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x44f)])throw Error(_0x545c52(0x2f2));let _0x2ae7d5=xt(_0x26a4d1[_0x545c52(0x416)],_0x50d2f8),_0x3b5daf=(_0x42c4d7=_0x4510d7[_0x545c52(0x1cf)])==null||(_0x42c4d7=_0x42c4d7[_0x26a4d1['row']])==null?void 0x0:_0x42c4d7[_0x26a4d1[_0x545c52(0x1ea)]],_0x3b889e=this[_0x545c52(0x24b)](U[_0x545c52(0x1cf)](_0x20d686,_0x26a4d1[_0x545c52(0x21b)],_0x26a4d1[_0x545c52(0x1ea)]),_0x3b5daf,_0x2ae7d5);if(!_0x1069ed||!_0x16a050)return[_0x3b889e];let _0x403a0f=(_0x36eba1=_0x4510d7[_0x545c52(0x45a)][_0x16a050])==null?void 0x0:_0x36eba1[_0x545c52(0x1da)][_0x1069ed],_0x2f56e8=(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]?kt(_0x26a4d1[_0x545c52(0x416)]):wt(_0x26a4d1[_0x545c52(0x416)],_0x2ae7d5,_0x50d2f8,_0x4510d7,_0x16a050),_0xe1c566=[_0x3b889e,this[_0x545c52(0x24b)](U[_0x545c52(0x4eb)](_0x20d686,_0x16a050,_0x1069ed),_0x403a0f,_0x2f56e8)];return(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]&&_0x3f6015[_0x545c52(0x1a1)](Et(_0x1069ed,_0x16a050),{'recordId':_0x16a050,'fieldId':_0x1069ed,'attachments':_0x2f56e8}),_0xe1c566;});return _0x533cf2['length']?R([..._0x533cf2,...this[_0x111137(0x4d0)](_0x4510d7,_0x20d686,Array[_0x111137(0x4dd)](_0x3f6015[_0x111137(0x1da)]()))]):_0x370803['replaceOp']([_0x111137(0x2ba),_0x20d686,_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)]);}['createField'](_0x17fb5e,_0x5a9c7e,_0x3bbf65){const _0x155938=_0x354fcb;let _0xd19cad=_0x17fb5e[_0x155938(0x2ba)][_0x5a9c7e];if(_0xd19cad[_0x155938(0x480)][_0x3bbf65[_0x155938(0x28b)]['id']]||_0xd19cad['fieldOrder'][_0x155938(0x231)](_0x3bbf65[_0x155938(0x28b)]['id']))return _0x370803['replaceOp']([_0x155938(0x2ba),_0x5a9c7e,_0x155938(0x1e1)],_0xd19cad['fieldOrder'],_0xd19cad[_0x155938(0x1e1)]);let _0x35521b=Math[_0x155938(0x1b3)](0x1,_0x3bbf65[_0x155938(0x250)]??_0xd19cad['fieldOrder']['length']),_0xa7eb07=Object[_0x155938(0x1da)](_0xd19cad[_0x155938(0x38b)]??{})['flatMap'](_0x174848=>{const _0x5885bd=_0x155938;var _0x3701d2;if(!_0x174848[_0x5885bd(0x1e1)]||_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x231)](_0x3bbf65['field']['id']))return[];let _0x3bc4e7=ur(((_0x3701d2=_0x3bbf65[_0x5885bd(0x485)])==null?void 0x0:_0x3701d2[_0x174848['id']])??_0x35521b,_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x458)]);return[_0x370803[_0x5885bd(0x207)]([...U[_0x5885bd(0x2df)](_0x5a9c7e,_0x174848['id']),_0x5885bd(0x1e1),_0x3bc4e7],_0x3bbf65[_0x5885bd(0x28b)]['id'])];});return R([..._0x3bbf65[_0x155938(0x28b)]['type']===_0x19bf94['Formula']?this[_0x155938(0x317)](_0x17fb5e):[],_0x370803[_0x155938(0x207)](U[_0x155938(0x28b)](_0x5a9c7e,_0x3bbf65[_0x155938(0x28b)]['id']),_0x3bbf65[_0x155938(0x28b)]),_0x370803[_0x155938(0x207)](U[_0x155938(0x1e1)](_0x5a9c7e,_0x35521b),_0x3bbf65[_0x155938(0x28b)]['id']),..._0xa7eb07]);}['duplicateField'](_0x156f99,_0x5b3db4,_0x351a31,_0x49bb5d){const _0x1a538f=_0x354fcb;let _0x261205=_0x156f99[_0x1a538f(0x2ba)][_0x5b3db4];if(!_0x261205[_0x1a538f(0x480)][_0x351a31]||_0x261205[_0x1a538f(0x480)][_0x49bb5d['field']['id']]||_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x231)](_0x49bb5d[_0x1a538f(0x28b)]['id']))return _0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)]);let _0xe8de3d=_0x49bb5d[_0x1a538f(0x250)]??_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x4c8)](_0x351a31)+0x1,_0x52ebf3=_0x261205[_0x1a538f(0x1e1)]['filter'](_0x311e98=>_0x311e98!==_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x129ce0=cr(_0x52ebf3,_0x49bb5d['field']['id'],_0xe8de3d),_0x18a295=Object['values'](_0x261205[_0x1a538f(0x38b)]??{})[_0x1a538f(0x2a2)](_0x32a69d=>{const _0x8d3ebf=_0x1a538f;var _0x53bd82,_0xe6ce78,_0x32b816,_0x17c0ac;let _0x5cfd98=(_0x53bd82=_0x32a69d[_0x8d3ebf(0x1e1)])!=null&&_0x53bd82['length']?_0x32a69d[_0x8d3ebf(0x1e1)]:_0x52ebf3;if(_0x5cfd98[_0x8d3ebf(0x231)](_0x49bb5d[_0x8d3ebf(0x28b)]['id']))return[];let _0x1531bc=cr(_0x5cfd98,_0x49bb5d[_0x8d3ebf(0x28b)]['id'],((_0xe6ce78=_0x49bb5d['viewIndexes'])==null?void 0x0:_0xe6ce78[_0x32a69d['id']])??_0xe8de3d),_0x1f9fb5=(_0x32b816=_0x32a69d['fieldSettings'])==null?void 0x0:_0x32b816[_0x351a31];return[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),'fieldOrder'],_0x32a69d[_0x8d3ebf(0x1e1)],_0x1531bc),..._0x1f9fb5?[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),_0x8d3ebf(0x484),_0x49bb5d[_0x8d3ebf(0x28b)]['id']],(_0x17c0ac=_0x32a69d[_0x8d3ebf(0x484)])==null?void 0x0:_0x17c0ac[_0x49bb5d[_0x8d3ebf(0x28b)]['id']],_0x1f9fb5)]:[]];}),_0x3b4784=Object[_0x1a538f(0x1da)](_0x261205[_0x1a538f(0x45a)])[_0x1a538f(0x397)](_0x4441f9=>Object[_0x1a538f(0x32b)][_0x1a538f(0x42f)]['call'](_0x4441f9[_0x1a538f(0x1da)],_0x351a31))['map'](_0x27104b=>this[_0x1a538f(0x24b)](U[_0x1a538f(0x4eb)](_0x5b3db4,_0x27104b['id'],_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x27104b[_0x1a538f(0x1da)][_0x49bb5d[_0x1a538f(0x28b)]['id']],_0x27104b[_0x1a538f(0x1da)][_0x351a31]));return R([..._0x49bb5d['field'][_0x1a538f(0x33a)]===_0x19bf94[_0x1a538f(0x405)]?this[_0x1a538f(0x317)](_0x156f99):[],_0x370803[_0x1a538f(0x207)](U[_0x1a538f(0x28b)](_0x5b3db4,_0x49bb5d['field']['id']),_0x49bb5d[_0x1a538f(0x28b)]),_0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x129ce0),..._0x18a295,..._0x3b4784]);}[_0x354fcb(0x409)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x415ad5){const _0x421e04=_0x354fcb;let _0x33fc00=_0x350791['tables'][_0x4d6b11][_0x421e04(0x480)][_0x2cb2a3],_0x2be9c8={..._0x33fc00,..._0x415ad5};Object[_0x421e04(0x51b)](_0x415ad5)[_0x421e04(0x461)](_0x1069e0=>{_0x415ad5[_0x1069e0]===void 0x0&&delete _0x2be9c8[_0x1069e0];});let _0x5bb06f=er(_0x350791[_0x421e04(0x2ba)][_0x4d6b11],_0x2cb2a3,_0x33fc00,_0x2be9c8);_0x2be9c8=_0x5bb06f[_0x421e04(0x28b)];let _0xb323a=_0x370803['replaceOp'](U[_0x421e04(0x28b)](_0x4d6b11,_0x2cb2a3),_0x33fc00,_0x2be9c8);return _0x2be9c8[_0x421e04(0x33a)]===_0x19bf94[_0x421e04(0x405)]?R([...this[_0x421e04(0x317)](_0x350791),_0xb323a,...this[_0x421e04(0x221)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x2be9c8)]):R([_0xb323a,..._0x5bb06f[_0x421e04(0x1bc)][_0x421e04(0x458)]?[this['setRangeValues'](_0x350791,_0x4d6b11,_0x5bb06f[_0x421e04(0x1bc)])]:[]]);}[_0x354fcb(0x2b7)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6){const _0x3b8569=_0x354fcb;return this[_0x3b8569(0x409)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6);}['deleteField'](_0x215a4b,_0x259f5c,_0x6dbd9f){const _0x959eb1=_0x354fcb;let _0x5bc7a5=_0x215a4b[_0x959eb1(0x2ba)][_0x259f5c];if(!(_0x5bc7a5!=null&&_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f])||_0x5bc7a5['primaryFieldId']===_0x6dbd9f||_0x6dbd9f===_0x3b44b5)return _0x370803['replaceOp']([_0x959eb1(0x2ba),_0x259f5c,_0x959eb1(0x1e1)],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder'],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder']);let _0x3a9042=_0x5bc7a5[_0x959eb1(0x1e1)][_0x959eb1(0x4c8)](_0x6dbd9f),_0x4589b0=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x38b)])[_0x959eb1(0x2a2)](_0x39d898=>{const _0x3ec393=_0x959eb1;var _0x1cbe01,_0x3b900d,_0x409075,_0x282d9f,_0x2592f6,_0x12bf39,_0x2993af;let _0x1f898c=[],_0x5e88ab=((_0x1cbe01=_0x39d898[_0x3ec393(0x1e1)])==null?void 0x0:_0x1cbe01['indexOf'](_0x6dbd9f))??-0x1;_0x5e88ab>=0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803['removeOp']([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x1e1),_0x5e88ab],_0x6dbd9f));let _0xacedc0=(_0x3b900d=_0x39d898[_0x3ec393(0x484)])==null?void 0x0:_0x3b900d[_0x6dbd9f];_0xacedc0!==void 0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803[_0x3ec393(0x246)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x484),_0x6dbd9f],_0xacedc0));let _0x1801c7=_0x39d898[_0x3ec393(0x397)]?{..._0x39d898['filter'],'conditions':_0x39d898['filter'][_0x3ec393(0x309)][_0x3ec393(0x397)](_0x3aecd8=>_0x3aecd8[_0x3ec393(0x46e)]!==_0x6dbd9f)}:_0x39d898[_0x3ec393(0x397)];_0x1801c7&&_0x1801c7[_0x3ec393(0x309)][_0x3ec393(0x458)]!==((_0x409075=_0x39d898[_0x3ec393(0x397)])==null?void 0x0:_0x409075[_0x3ec393(0x309)]['length'])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'filter'],_0x39d898[_0x3ec393(0x397)],_0x1801c7));let _0x2da8f1=(_0x282d9f=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x282d9f[_0x3ec393(0x397)](_0x58f684=>_0x58f684['fieldId']!==_0x6dbd9f);_0x2da8f1&&_0x2da8f1[_0x3ec393(0x458)]!==((_0x2592f6=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x2592f6[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x3db)],_0x39d898[_0x3ec393(0x3db)],_0x2da8f1));let _0x1385af=(_0x12bf39=_0x39d898['group'])==null?void 0x0:_0x12bf39[_0x3ec393(0x397)](_0x2aea05=>_0x2aea05['fieldId']!==_0x6dbd9f);_0x1385af&&_0x1385af['length']!==((_0x2993af=_0x39d898['group'])==null?void 0x0:_0x2993af[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'group'],_0x39d898[_0x3ec393(0x1b9)],_0x1385af));let _0x5198f7=lr(_0x39d898[_0x3ec393(0x342)],_0x6dbd9f);return JSON['stringify'](_0x5198f7)!==JSON[_0x3ec393(0x449)](_0x39d898['config'])&&_0x1f898c['push'](_0x370803[_0x3ec393(0x333)]([...U['view'](_0x259f5c,_0x39d898['id']),'config'],_0x39d898[_0x3ec393(0x342)],_0x5198f7)),_0x1f898c;}),_0xf25c5d=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x45a)])['flatMap'](_0x15970e=>Object['prototype']['hasOwnProperty']['call'](_0x15970e['values'],_0x6dbd9f)?[_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x4eb)](_0x259f5c,_0x15970e['id'],_0x6dbd9f),_0x15970e[_0x959eb1(0x1da)][_0x6dbd9f])]:[]);return R([_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x28b)](_0x259f5c,_0x6dbd9f),_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f]),_0x370803['removeOp'](U[_0x959eb1(0x1e1)](_0x259f5c,_0x3a9042),_0x6dbd9f),..._0x4589b0,..._0xf25c5d,...this[_0x959eb1(0x4a3)](_0x5bc7a5,_0x259f5c,_0x2b5dfa=>_0x2b5dfa[_0x959eb1(0x254)](_0x6dbd9f+'\x1f'))]);}[_0x354fcb(0x399)](_0x2f1b7b,_0x5e237d,_0x37e3e8,_0x501b8e){const _0x493c1d=_0x354fcb;let _0x353105=_0x2f1b7b[_0x493c1d(0x2ba)][_0x5e237d]['fieldOrder'];if(_0x37e3e8===_0x3b44b5||_0x501b8e['beforeFieldId']===_0x3b44b5)throw Error(_0x493c1d(0x1f8));let _0xf529fd=sr(_0x353105,_0x37e3e8,_0x501b8e);return _0x370803[_0x493c1d(0x333)]([_0x493c1d(0x2ba),_0x5e237d,'fieldOrder'],_0x353105,_0xf529fd);}[_0x354fcb(0x446)](_0x5078f0,_0x15d27d,_0x18ad44,_0x3d7d1d=_0x5078f0[_0x354fcb(0x2ba)][_0x15d27d]['viewOrder'][_0x354fcb(0x458)]){const _0x284e53=_0x354fcb;return R([_0x370803[_0x284e53(0x207)](U['view'](_0x15d27d,_0x18ad44['id']),_0x18ad44),_0x370803['insertOp']([_0x284e53(0x2ba),_0x15d27d,_0x284e53(0x3f8),_0x3d7d1d],_0x18ad44['id'])]);}[_0x354fcb(0x370)](_0x4bb194,_0x5b038f,_0x37b347,_0x445fb4){const _0x1d0efe=_0x354fcb;return _0x370803[_0x1d0efe(0x333)]([...U['view'](_0x5b038f,_0x37b347),_0x1d0efe(0x1e0)],_0x4bb194[_0x1d0efe(0x2ba)][_0x5b038f]['views'][_0x37b347][_0x1d0efe(0x1e0)],_0x445fb4);}['deleteView'](_0x20502c,_0x15550f,_0x304c88){const _0x2db9b9=_0x354fcb;let _0x1ebe19=_0x20502c[_0x2db9b9(0x2ba)][_0x15550f],_0x5288fe=_0x1ebe19[_0x2db9b9(0x38b)][_0x304c88],_0x52cbb3=_0x1ebe19[_0x2db9b9(0x3f8)][_0x2db9b9(0x4c8)](_0x304c88);return R([_0x370803[_0x2db9b9(0x246)](U[_0x2db9b9(0x2df)](_0x15550f,_0x304c88),_0x5288fe),_0x370803['removeOp']([_0x2db9b9(0x2ba),_0x15550f,_0x2db9b9(0x3f8),_0x52cbb3],_0x304c88)]);}['moveView'](_0x27ed7e,_0x3c8511,_0x62ab24,_0x178e9d){const _0x57ad45=_0x354fcb;let _0x520409=_0x27ed7e[_0x57ad45(0x2ba)][_0x3c8511][_0x57ad45(0x3f8)],_0x287cbd=sr(_0x520409,_0x62ab24,{'beforeFieldId':_0x178e9d[_0x57ad45(0x2f6)],'afterFieldId':_0x178e9d['afterViewId']});return _0x370803[_0x57ad45(0x333)]([_0x57ad45(0x2ba),_0x3c8511,_0x57ad45(0x3f8)],_0x520409,_0x287cbd);}['updateViewConfig'](_0x449ddf,_0x4516c6,_0x38e5e4,_0x4a077f){const _0x30e3d4=_0x354fcb;let _0x2899bc=_0x449ddf[_0x30e3d4(0x2ba)][_0x4516c6][_0x30e3d4(0x38b)][_0x38e5e4][_0x30e3d4(0x342)]??{},_0x47371f={..._0x2899bc,..._0x4a077f};return Object['keys'](_0x4a077f)[_0x30e3d4(0x461)](_0x30a71c=>{_0x4a077f[_0x30a71c]===void 0x0&&delete _0x47371f[_0x30a71c];}),_0x370803[_0x30e3d4(0x333)]([...U[_0x30e3d4(0x2df)](_0x4516c6,_0x38e5e4),'config'],_0x2899bc,_0x47371f);}['setViewFilter'](_0x3c5f1f,_0x19a0be,_0x511fa0,_0x44b75a){const _0xdd413a=_0x354fcb;return this[_0xdd413a(0x24b)]([...U[_0xdd413a(0x2df)](_0x19a0be,_0x511fa0),_0xdd413a(0x397)],_0x3c5f1f[_0xdd413a(0x2ba)][_0x19a0be]['views'][_0x511fa0][_0xdd413a(0x397)],_0x44b75a);}['setViewSort'](_0x34c328,_0x5291a3,_0x4a6537,_0x322d67){const _0x20f58f=_0x354fcb;return this['_replaceOptional']([...U[_0x20f58f(0x2df)](_0x5291a3,_0x4a6537),'sort'],_0x34c328['tables'][_0x5291a3][_0x20f58f(0x38b)][_0x4a6537][_0x20f58f(0x3db)],_0x322d67);}[_0x354fcb(0x178)](_0x4cb7e8,_0x1f6eed,_0x47997b,_0x4d9bbb){const _0x383d5b=_0x354fcb;return this['_replaceOptional']([...U[_0x383d5b(0x2df)](_0x1f6eed,_0x47997b),'group'],_0x4cb7e8[_0x383d5b(0x2ba)][_0x1f6eed][_0x383d5b(0x38b)][_0x47997b][_0x383d5b(0x1b9)],_0x4d9bbb);}['setViewFieldVisible'](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,_0x34cb69){const _0x4b8341=_0x354fcb;return this[_0x4b8341(0x43e)](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,{'hidden':!_0x34cb69});}[_0x354fcb(0x175)](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,_0x50b61c){return this['_setViewFieldSetting'](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,{'width':_0x50b61c});}[_0x354fcb(0x457)](_0x43f4d4,_0x431093,_0x503ed9,_0x1cd65d,_0x85d626){const _0x435dd0=_0x354fcb;let _0xb010b8=_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x38b)][_0x503ed9],_0x4af35d=sr(_0xb010b8[_0x435dd0(0x1e1)]??_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x1e1)],_0x1cd65d,_0x85d626);return this[_0x435dd0(0x24b)]([...U[_0x435dd0(0x2df)](_0x431093,_0x503ed9),_0x435dd0(0x1e1)],_0xb010b8[_0x435dd0(0x1e1)],_0x4af35d);}['_setViewFieldSetting'](_0x39a88a,_0x2ab5f0,_0x139107,_0x44b745,_0x3bcafe){const _0x41fa9c=_0x354fcb;let _0x506a9e=_0x39a88a[_0x41fa9c(0x2ba)][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)]??{},_0xc87a73={..._0x506a9e,[_0x44b745]:{..._0x506a9e[_0x44b745],..._0x3bcafe}};return this[_0x41fa9c(0x24b)]([...U[_0x41fa9c(0x2df)](_0x2ab5f0,_0x139107),_0x41fa9c(0x484)],_0x39a88a['tables'][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)],_0xc87a73);}['_createRecordOrderOp'](_0x29fe1b,_0x38fd19,_0x5b17fa){const _0x278d36=_0x354fcb;let _0x4366b5=_0x29fe1b[_0x278d36(0x2ba)][_0x38fd19],_0x27289e=new Set(_0x5b17fa['map'](_0xf25330=>_0xf25330['id'])),_0x331ac2=[...Object['values'](_0x4366b5[_0x278d36(0x45a)])['filter'](_0x10d105=>!_0x27289e[_0x278d36(0x23f)](_0x10d105['id'])),..._0x5b17fa][_0x278d36(0x3db)]((_0x1b28b1,_0x4b446a)=>String(_0x1b28b1[_0x278d36(0x3ef)]??_0x1b28b1['id'])[_0x278d36(0x4bc)](String(_0x4b446a[_0x278d36(0x3ef)]??_0x4b446a['id'])))[_0x278d36(0x29b)](_0x58c1c3=>_0x58c1c3['id']),_0x4c1c7c=[...U[_0x278d36(0x513)](_0x38fd19),'recordOrder'];return _0x4366b5[_0x278d36(0x22d)]?_0x370803[_0x278d36(0x333)](_0x4c1c7c,_0x4366b5[_0x278d36(0x22d)],_0x331ac2):_0x370803[_0x278d36(0x207)](_0x4c1c7c,_0x331ac2);}[_0x354fcb(0x317)](_0x2ac4eb,_0x4d7da9=new Set()){const _0x2f29c7=_0x354fcb;let _0x3a0254=_0x49362b(_0x2ac4eb);return Object[_0x2f29c7(0x1da)](_0x2ac4eb[_0x2f29c7(0x2ba)])[_0x2f29c7(0x397)](_0x160c11=>!_0x4d7da9[_0x2f29c7(0x23f)](_0x160c11['id']))[_0x2f29c7(0x3db)]((_0xcbf928,_0x481b6d)=>_0xcbf928['id']['localeCompare'](_0x481b6d['id']))[_0x2f29c7(0x2a2)](_0x1548d5=>{const _0xb6a915=_0x2f29c7;let _0x32a8d2=_0x3a0254['get'](_0x1548d5['id']);return!_0x32a8d2||_0x1548d5[_0xb6a915(0x357)]===_0x32a8d2?[]:[this[_0xb6a915(0x24b)]([...U[_0xb6a915(0x513)](_0x1548d5['id']),'formulaName'],_0x1548d5[_0xb6a915(0x357)],_0x32a8d2)];});}[_0x354fcb(0x221)](_0x60476a,_0x5cdaf5,_0x5376be,_0x5e4af0){const _0x489f30=_0x354fcb;var _0x37906f,_0x33caf8;let _0x372dc4=L(_0x60476a[_0x489f30(0x2ba)][_0x5cdaf5]),_0x263fb6=String(((_0x37906f=_0x5e4af0[_0x489f30(0x342)])==null?void 0x0:_0x37906f['formula'])??'')[_0x489f30(0x3bc)](),_0x56db75=(_0x33caf8=_0x372dc4['colIndex'])==null?void 0x0:_0x33caf8[_0x5376be];if(_0x56db75==null)return[];let _0xcd098d=_0x372dc4['recordOrder']??Object['keys'](_0x372dc4[_0x489f30(0x45a)]),_0x2286b4=_0xcd098d[_0x489f30(0x29b)](_0x2ba7e0=>{const _0x3a1b68=_0x489f30;var _0x26bb6b;return(_0x26bb6b=_0x372dc4[_0x3a1b68(0x290)])==null?void 0x0:_0x26bb6b[_0x2ba7e0];})['find'](_0xd6e2fe=>_0xd6e2fe!=null);return _0xcd098d[_0x489f30(0x2a2)](_0x46b177=>{var _0x10ac9b,_0x450308;let _0x4bbf69=(_0x10ac9b=_0x372dc4['rowIndex'])==null?void 0x0:_0x10ac9b[_0x46b177];if(_0x4bbf69==null)return[];let _0x558af1=(_0x450308=_0x372dc4['cellData'])==null||(_0x450308=_0x450308[_0x4bbf69])==null?void 0x0:_0x450308[_0x56db75],_0x4ad5b2=_0x263fb6?_0x4bbf69===_0x2286b4?{'f':_0x263fb6,'si':_0x5376be}:{'si':_0x5376be}:{'v':null,'t':null};return[this['_replaceOptional'](U['cellData'](_0x5cdaf5,_0x4bbf69,_0x56db75),_0x558af1,_0x4ad5b2)];});}['_setAttachmentResources'](_0x2005ce,_0xe31bf7,_0x4c2a45){const _0x1c9e0b=_0x354fcb;var _0x53de44;let _0x4d0ec2=new Map(Object[_0x1c9e0b(0x1e2)](((_0x53de44=_0x2005ce[_0x1c9e0b(0x358)])==null?void 0x0:_0x53de44[_0x1c9e0b(0x47e)])??{})),_0x3b32e3=new Map(),_0x29d3d2=new Set(),_0xda3729=_0x4c2a45[_0x1c9e0b(0x29b)](({recordId:_0x5e3b0d,fieldId:_0x1606e2,attachments:_0x3880f6})=>{const _0x73b0d3=_0x1c9e0b;var _0x24d11e;let _0x1cbece=Et(_0x1606e2,_0x5e3b0d),_0x25504b=_0x3880f6[_0x73b0d3(0x29b)]((_0x2464d0,_0x2268ef)=>String(_0x2464d0['id']??_0x1cbece+'\x1f'+_0x2268ef));return _0x29d3d2[_0x73b0d3(0x35e)](_0x1cbece),_0x4d0ec2[_0x73b0d3(0x1a1)](_0x1cbece,_0x25504b),_0x3880f6[_0x73b0d3(0x461)]((_0x494324,_0x1bce80)=>{let _0x2e35a1=_0x25504b[_0x1bce80];_0x3b32e3['set'](_0x2e35a1,{..._0x494324,'id':_0x2e35a1});}),this[_0x73b0d3(0x24b)](U[_0x73b0d3(0x4e0)](_0xe31bf7,_0x1cbece),(_0x24d11e=_0x2005ce[_0x73b0d3(0x358)])==null||(_0x24d11e=_0x24d11e[_0x73b0d3(0x47e)])==null?void 0x0:_0x24d11e[_0x1cbece],_0x25504b);}),_0x5a2787=Array[_0x1c9e0b(0x4dd)](_0x3b32e3)[_0x1c9e0b(0x29b)](([_0x172805,_0x1cbcbe])=>{const _0x465bde=_0x1c9e0b;var _0x385059;return this[_0x465bde(0x24b)](U[_0x465bde(0x25c)](_0xe31bf7,_0x172805),(_0x385059=_0x2005ce[_0x465bde(0x358)])==null||(_0x385059=_0x385059['attachments'])==null?void 0x0:_0x385059[_0x172805],_0x1cbcbe);}),_0xa6ebff=new Set(Array[_0x1c9e0b(0x4dd)](_0x4d0ec2['values']())[_0x1c9e0b(0x2ec)]()),_0x30ee1d=new Set(Array[_0x1c9e0b(0x4dd)](_0x29d3d2)['flatMap'](_0x58be78=>{const _0x515d81=_0x1c9e0b;var _0x288209;return((_0x288209=_0x2005ce[_0x515d81(0x358)])==null||(_0x288209=_0x288209['attachmentSets'])==null?void 0x0:_0x288209[_0x58be78])??[];})),_0x1413e6=Array[_0x1c9e0b(0x4dd)](_0x30ee1d)['flatMap'](_0x481f33=>{const _0x4bda0a=_0x1c9e0b;var _0x5c0bf9;let _0x2ac245=(_0x5c0bf9=_0x2005ce[_0x4bda0a(0x358)])==null||(_0x5c0bf9=_0x5c0bf9['attachments'])==null?void 0x0:_0x5c0bf9[_0x481f33];return _0x2ac245!==void 0x0&&!_0xa6ebff['has'](_0x481f33)?[_0x370803[_0x4bda0a(0x246)](U[_0x4bda0a(0x25c)](_0xe31bf7,_0x481f33),_0x2ac245)]:[];});return[..._0xda3729,..._0x5a2787,..._0x1413e6];}[_0x354fcb(0x4a3)](_0x2bdf39,_0x8e81,_0x4e65db){const _0x434755=_0x354fcb;var _0x136d82;let _0x4a4930=((_0x136d82=_0x2bdf39[_0x434755(0x358)])==null?void 0x0:_0x136d82[_0x434755(0x47e)])??{},_0x2576e0=Object['entries'](_0x4a4930)[_0x434755(0x397)](([_0x5c44cd])=>_0x4e65db(_0x5c44cd));if(!_0x2576e0[_0x434755(0x458)])return[];let _0xa8b1a8=new Set(Object[_0x434755(0x1e2)](_0x4a4930)[_0x434755(0x397)](([_0x5b9845])=>!_0x4e65db(_0x5b9845))[_0x434755(0x2a2)](([,_0x1c4f51])=>_0x1c4f51)),_0x277db8=new Set(_0x2576e0[_0x434755(0x2a2)](([,_0x21aed9])=>_0x21aed9));return[..._0x2576e0['map'](([_0xece8cf,_0xb34c44])=>_0x370803['removeOp'](U[_0x434755(0x4e0)](_0x8e81,_0xece8cf),_0xb34c44)),...Array[_0x434755(0x4dd)](_0x277db8)[_0x434755(0x2a2)](_0x4fd623=>{const _0x1eb994=_0x434755;var _0x2f6a76;let _0x217090=(_0x2f6a76=_0x2bdf39[_0x1eb994(0x358)])==null||(_0x2f6a76=_0x2f6a76[_0x1eb994(0x499)])==null?void 0x0:_0x2f6a76[_0x4fd623];return _0x217090!==void 0x0&&!_0xa8b1a8['has'](_0x4fd623)?[_0x370803['removeOp'](U['attachment'](_0x8e81,_0x4fd623),_0x217090)]:[];})];}['_replaceOptional'](_0x578527,_0x6a9fcc,_0x1b2b7a){const _0x1b745b=_0x354fcb;return _0x6a9fcc===void 0x0?_0x370803[_0x1b745b(0x207)](_0x578527,_0x1b2b7a):_0x370803['replaceOp'](_0x578527,_0x6a9fcc,_0x1b2b7a);}};function er(_0x1df614,_0x349f62,_0xa05447,_0x5485b7){const _0x400b6e=_0x354fcb;var _0x3c02c6;let _0x4a1ee5=_0x5485b7['type'];if(_0xa05447['type']!==_0x4a1ee5||_0x4a1ee5!==_0x19bf94[_0x400b6e(0x407)]&&_0x4a1ee5!==_0x19bf94[_0x400b6e(0x283)]||tr(_0x5485b7[_0x400b6e(0x342)][_0x400b6e(0x4cc)]))return{'field':_0x5485b7,'patches':[]};let _0x5acc62=nr(_0xa05447),_0x38a359=nr(_0x5485b7);if(![..._0x5acc62][_0x400b6e(0x257)](_0x4a8897=>!_0x38a359[_0x400b6e(0x23f)](_0x4a8897)))return{'field':_0x5485b7,'patches':[]};let _0x21a537=rr(_0x5485b7[_0x400b6e(0x241)],_0x38a359,_0x4a1ee5),_0x5ae6f9=ir(_0x21a537,_0x5485b7['defaultValue'])?_0x5485b7:{..._0x5485b7,'defaultValue':_0x21a537},_0x221abb=L(_0x1df614),_0x4ea783=(_0x3c02c6=_0x221abb[_0x400b6e(0x288)])==null?void 0x0:_0x3c02c6[_0x349f62];return _0x4ea783==null?{'field':_0x5ae6f9,'patches':[]}:{'field':_0x5ae6f9,'patches':(_0x221abb[_0x400b6e(0x22d)]??[])['flatMap'](_0x1e94a6=>{const _0x3f379b=_0x400b6e;var _0x4f2cbd,_0x1a5141;let _0x3bd8b2=(_0x4f2cbd=_0x221abb['rowIndex'])==null?void 0x0:_0x4f2cbd[_0x1e94a6],_0x1c0d3b=(_0x1a5141=_0x221abb['records'][_0x1e94a6])==null?void 0x0:_0x1a5141[_0x3f379b(0x1da)][_0x349f62],_0x3e6bd7=rr(_0x1c0d3b,_0x38a359,_0x4a1ee5);return _0x3bd8b2==null||ir(_0x3e6bd7,_0x1c0d3b)?[]:[{'row':_0x3bd8b2,'col':_0x4ea783,'value':_0x3e6bd7??null}];})};}function tr(_0x3df10c){const _0x5d7d2c=_0x354fcb;return typeof _0x3df10c==_0x5d7d2c(0x269)&&!!_0x3df10c&&_0x5d7d2c(0x33a)in _0x3df10c&&_0x3df10c[_0x5d7d2c(0x33a)]===_0x5d7d2c(0x28b);}function nr(_0x83ae51){const _0x58bf45=_0x354fcb;var _0x3412a3;let _0x5b977d=Array[_0x58bf45(0x354)]((_0x3412a3=_0x83ae51['config'])==null?void 0x0:_0x3412a3[_0x58bf45(0x392)])?_0x83ae51[_0x58bf45(0x342)]['options']:[];return new Set(_0x5b977d['flatMap'](_0xbb98ac=>{const _0x49bc89=_0x58bf45;if(!_0xbb98ac||typeof _0xbb98ac!=_0x49bc89(0x269)||!('id'in _0xbb98ac))return[];let _0x43006c=String(_0xbb98ac['id']);return _0x43006c?[_0x43006c]:[];}));}function rr(_0x2cc61d,_0x56260e,_0x4f53dc){const _0x37cd83=_0x354fcb;if(_0x2cc61d==null||_0x2cc61d==='')return _0x2cc61d;if(_0x4f53dc===_0x19bf94['SingleSelect'])return _0x56260e[_0x37cd83(0x23f)](String(_0x2cc61d))?_0x2cc61d:null;let _0x1b7112=Array[_0x37cd83(0x354)](_0x2cc61d)?_0x2cc61d['map'](String):String(_0x2cc61d)['split'](',')[_0x37cd83(0x29b)](_0x3127fd=>_0x3127fd[_0x37cd83(0x3bc)]())[_0x37cd83(0x397)](Boolean),_0x3452d7=_0x1b7112[_0x37cd83(0x397)](_0x5982a0=>_0x56260e[_0x37cd83(0x23f)](_0x5982a0));return _0x3452d7[_0x37cd83(0x458)]===_0x1b7112['length']?_0x2cc61d:Array['isArray'](_0x2cc61d)?_0x3452d7:String(_0x2cc61d)[_0x37cd83(0x231)](',')?_0x3452d7[_0x37cd83(0x4b5)](','):_0x3452d7[0x0]??[];}function ir(_0x35b304,_0x42dea8){const _0x2648d6=_0x354fcb;return JSON[_0x2648d6(0x449)](_0x35b304)===JSON['stringify'](_0x42dea8);}function ar(_0x282280,_0x2d8157,_0x29be59){const _0xa89b1c=_0x354fcb;var _0x22f403,_0x2a8be2,_0x476cd2,_0x41f1d7;let _0x52cbe2=(_0x22f403=_0x282280[_0xa89b1c(0x290)])==null?void 0x0:_0x22f403[_0x2d8157],_0x14287a=(_0x2a8be2=_0x282280[_0xa89b1c(0x288)])==null?void 0x0:_0x2a8be2[_0x29be59];return _0x52cbe2!=null&&_0x14287a!=null&&((_0x476cd2=_0x282280[_0xa89b1c(0x474)])==null?void 0x0:_0x476cd2[_0x52cbe2])===_0x2d8157&&((_0x41f1d7=_0x282280[_0xa89b1c(0x242)])==null?void 0x0:_0x41f1d7[_0x14287a])===_0x29be59&&_0x282280[_0xa89b1c(0x1cf)]!=null;}function or(_0x322a7b,_0x248f31,_0x30bc9f){const _0x2fa164=_0x354fcb;var _0x370674,_0x55fc65;return((_0x370674=_0x322a7b[_0x2fa164(0x474)])==null?void 0x0:_0x370674[_0x248f31])!=null&&((_0x55fc65=_0x322a7b['colId'])==null?void 0x0:_0x55fc65[_0x30bc9f])!=null&&_0x322a7b[_0x2fa164(0x1cf)]!=null;}function sr(_0x5a038e,_0x8cd1f1,_0x5722f6){const _0x315efc=_0x354fcb;let _0x2721da=_0x5a038e['filter'](_0x2c2216=>_0x2c2216!==_0x8cd1f1),_0x239dc7=_0x5722f6['beforeFieldId']?_0x2721da['indexOf'](_0x5722f6[_0x315efc(0x381)]):_0x5722f6[_0x315efc(0x27b)]?_0x2721da[_0x315efc(0x4c8)](_0x5722f6[_0x315efc(0x27b)])+0x1:_0x2721da[_0x315efc(0x458)];return _0x2721da[_0x315efc(0x47d)](_0x239dc7<0x0?_0x2721da[_0x315efc(0x458)]:_0x239dc7,0x0,_0x8cd1f1),_0x2721da;}function cr(_0x4c6eae,_0x31b7fd,_0x2b42e7){const _0x1b4876=_0x354fcb;let _0x16acf0=_0x4c6eae['filter'](_0x5a0255=>_0x5a0255!==_0x31b7fd);return _0x16acf0[_0x1b4876(0x47d)](ur(_0x2b42e7,_0x16acf0['length']),0x0,_0x31b7fd),_0x16acf0;}function lr(_0x47cb45,_0x34c493,_0x5e9db4){const _0x519d4b=_0x354fcb;if(Array[_0x519d4b(0x354)](_0x47cb45))return _0x5e9db4===_0x519d4b(0x227)?_0x47cb45[_0x519d4b(0x397)](_0x123be4=>_0x123be4!==_0x34c493):_0x47cb45[_0x519d4b(0x2a2)](_0x1c5e0f=>{const _0x46ab4d=_0x519d4b;if(_0x1c5e0f&&typeof _0x1c5e0f=='object'&&!Array[_0x46ab4d(0x354)](_0x1c5e0f)&&_0x1c5e0f[_0x46ab4d(0x46e)]===_0x34c493)return[];let _0x4800f7=lr(_0x1c5e0f,_0x34c493);return _0x4800f7===void 0x0?[]:[_0x4800f7];});if(!_0x47cb45||typeof _0x47cb45!='object')return _0x5e9db4!=null&&_0x5e9db4[_0x519d4b(0x424)](_0x519d4b(0x334))&&_0x47cb45===_0x34c493?void 0x0:_0x47cb45;let _0x52813b=_0x47cb45;if(_0x52813b[_0x519d4b(0x46e)]!==_0x34c493)return Object[_0x519d4b(0x2e8)](Object['entries'](_0x52813b)[_0x519d4b(0x2a2)](([_0x405a84,_0x4a8ea2])=>{const _0x4cb536=_0x519d4b;if(_0x405a84===_0x34c493&&_0x5e9db4===_0x4cb536(0x484))return[];let _0x5ad692=lr(_0x4a8ea2,_0x34c493,_0x405a84);return _0x5ad692===void 0x0?[]:[[_0x405a84,_0x5ad692]];}));}function ur(_0x2c8671,_0x414a05){const _0x4eccc4=_0x354fcb;return Math[_0x4eccc4(0x1b3)](0x0,Math[_0x4eccc4(0x35d)](_0x2c8671,_0x414a05));}function dr(_0x119f09){'@babel/helpers - typeof';const _0x4768ed=_0x354fcb;return dr=typeof Symbol=='function'&&typeof Symbol[_0x4768ed(0x25e)]==_0x4768ed(0x451)?function(_0x3a7d16){return typeof _0x3a7d16;}:function(_0x466350){const _0x36d362=_0x4768ed;return _0x466350&&typeof Symbol==_0x36d362(0x389)&&_0x466350['constructor']===Symbol&&_0x466350!==Symbol[_0x36d362(0x32b)]?_0x36d362(0x451):typeof _0x466350;},dr(_0x119f09);}function fr(_0x62cb11,_0x362e71){const _0x5b3a55=_0x354fcb;if(dr(_0x62cb11)!='object'||!_0x62cb11)return _0x62cb11;var _0x20c4c3=_0x62cb11[Symbol[_0x5b3a55(0x41c)]];if(_0x20c4c3!==void 0x0){var _0x1a3183=_0x20c4c3[_0x5b3a55(0x331)](_0x62cb11,_0x362e71||_0x5b3a55(0x3ac));if(dr(_0x1a3183)!=_0x5b3a55(0x269))return _0x1a3183;throw TypeError(_0x5b3a55(0x512));}return(_0x362e71===_0x5b3a55(0x471)?String:Number)(_0x62cb11);}function pr(_0x159e2c){const _0x5ceb1d=_0x354fcb;var _0x1f3263=fr(_0x159e2c,_0x5ceb1d(0x471));return dr(_0x1f3263)=='symbol'?_0x1f3263:_0x1f3263+'';}function G(_0x319a67,_0x5f30bf,_0x1f76e6){const _0x30867e=_0x354fcb;return(_0x5f30bf=pr(_0x5f30bf))in _0x319a67?Object[_0x30867e(0x2b6)](_0x319a67,_0x5f30bf,{'value':_0x1f76e6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x319a67[_0x5f30bf]=_0x1f76e6,_0x319a67;}const mr=_0x5d0ae0(_0x354fcb(0x273));var hr=class extends _0x1589db{constructor(..._0x4c3777){const _0x5abb94=_0x354fcb;super(..._0x4c3777),G(this,_0x5abb94(0x252),new Map());}[_0x354fcb(0x2f4)](_0x360f7c){const _0x25febb=_0x354fcb;return this[_0x25febb(0x252)]['set'](_0x360f7c[_0x25febb(0x33a)],_0x360f7c),_0x5b4066(()=>this[_0x25febb(0x252)]['delete'](_0x360f7c[_0x25febb(0x33a)]));}[_0x354fcb(0x4a8)](_0x777a4f){const _0x150fd9=_0x354fcb;let _0x2ef3e7=this[_0x150fd9(0x252)]['get'](_0x777a4f);if(!_0x2ef3e7)throw Error(_0x150fd9(0x196)+_0x777a4f+_0x150fd9(0x371));return _0x2ef3e7;}[_0x354fcb(0x3c6)](_0x111415){const _0x294496=_0x354fcb;return this[_0x294496(0x252)][_0x294496(0x4a8)](_0x111415);}['getAll'](){const _0x419445=_0x354fcb;return Array[_0x419445(0x4dd)](this['_plugins'][_0x419445(0x1da)]());}},gr=class{constructor(_0x3bf1f8){const _0x32f669=_0x354fcb;this[_0x32f669(0x278)]=_0x3bf1f8,G(this,_0x32f669(0x33a),_0x56e21f['Base']),G(this,_0x32f669(0x200),_0x391870[_0x32f669(0x36a)]),G(this,_0x32f669(0x372),_0x15f2b3[_0x32f669(0x3e4)]),G(this,'id',void 0x0),G(this,_0x32f669(0x416),!0x0),this['id']=this[_0x32f669(0x33a)]+'.'+this[_0x32f669(0x200)]+'_'+_0x3bf1f8;}},_r=class{constructor(_0x2672a6){const _0x5f0de4=_0x354fcb;this['unitId']=_0x2672a6,G(this,_0x5f0de4(0x33a),_0x56e21f['Base']),G(this,'subType',_0x391870['Copy']),G(this,'status',_0x15f2b3[_0x5f0de4(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x5f0de4(0x33a)]+'.'+this[_0x5f0de4(0x200)]+'_'+_0x2672a6;}},vr=class{constructor(_0x296b01){const _0xce174d=_0x354fcb;this[_0xce174d(0x278)]=_0x296b01,G(this,_0xce174d(0x33a),_0x56e21f[_0xce174d(0x318)]),G(this,'subType',_0x391870['Edit']),G(this,_0xce174d(0x372),_0x15f2b3[_0xce174d(0x3e4)]),G(this,'id',void 0x0),G(this,_0xce174d(0x416),!0x0),this['id']=this[_0xce174d(0x33a)]+'.'+this[_0xce174d(0x200)]+'_'+_0x296b01;}},yr=class{constructor(_0x47dda2){const _0x4411f6=_0x354fcb;this['unitId']=_0x47dda2,G(this,_0x4411f6(0x33a),_0x56e21f[_0x4411f6(0x318)]),G(this,'subType',_0x391870[_0x4411f6(0x479)]),G(this,_0x4411f6(0x372),_0x15f2b3[_0x4411f6(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x4411f6(0x200)]+'_'+_0x47dda2;}},br=class{constructor(_0x2fe77e,_0xcdf329){const _0x35a572=_0x354fcb;this[_0x35a572(0x278)]=_0x2fe77e,this[_0x35a572(0x225)]=_0xcdf329,G(this,'type',_0x56e21f[_0x35a572(0x3f9)]),G(this,'subType',_0x391870[_0x35a572(0x463)]),G(this,_0x35a572(0x372),_0x15f2b3[_0x35a572(0x3e4)]),G(this,'id',void 0x0),G(this,_0x35a572(0x416),!0x0),this['id']=this[_0x35a572(0x33a)]+'.'+this[_0x35a572(0x200)]+'_'+_0x2fe77e+'_'+_0xcdf329;}},xr=class{constructor(_0x478fd6,_0x3f5799){const _0x46c1dd=_0x354fcb;this[_0x46c1dd(0x278)]=_0x478fd6,this['objectId']=_0x3f5799,G(this,'type',_0x56e21f['BaseField']),G(this,_0x46c1dd(0x200),_0x391870[_0x46c1dd(0x463)]),G(this,_0x46c1dd(0x372),_0x15f2b3[_0x46c1dd(0x3e4)]),G(this,'id',void 0x0),G(this,_0x46c1dd(0x416),!0x0),this['id']=this[_0x46c1dd(0x33a)]+'.'+this[_0x46c1dd(0x200)]+'_'+_0x478fd6+'_'+_0x3f5799;}},Sr=class{constructor(_0x4dd240,_0x394d23){const _0x1a093c=_0x354fcb;this[_0x1a093c(0x278)]=_0x4dd240,this['objectId']=_0x394d23,G(this,_0x1a093c(0x33a),_0x56e21f[_0x1a093c(0x1dc)]),G(this,_0x1a093c(0x200),_0x391870['Edit']),G(this,_0x1a093c(0x372),_0x15f2b3[_0x1a093c(0x3e4)]),G(this,'id',void 0x0),G(this,_0x1a093c(0x416),!0x0),this['id']=this[_0x1a093c(0x33a)]+'.'+this[_0x1a093c(0x200)]+'_'+_0x4dd240+'_'+_0x394d23;}},Cr=class{constructor(_0x5b0327,_0x13a9ba){const _0x128c5d=_0x354fcb;this[_0x128c5d(0x278)]=_0x5b0327,this[_0x128c5d(0x225)]=_0x13a9ba,G(this,'type',_0x56e21f['BaseTable']),G(this,_0x128c5d(0x200),_0x391870['Edit']),G(this,_0x128c5d(0x372),_0x15f2b3[_0x128c5d(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x128c5d(0x200)]+'_'+_0x5b0327+'_'+_0x13a9ba;}},wr=class{constructor(_0x58754b,_0x4621b4){const _0x45651b=_0x354fcb;this['unitId']=_0x58754b,this[_0x45651b(0x225)]=_0x4621b4,G(this,_0x45651b(0x33a),_0x56e21f[_0x45651b(0x52a)]),G(this,_0x45651b(0x200),_0x391870[_0x45651b(0x463)]),G(this,'status',_0x15f2b3[_0x45651b(0x3e4)]),G(this,'id',void 0x0),G(this,_0x45651b(0x416),!0x0),this['id']=this[_0x45651b(0x33a)]+'.'+this['subType']+'_'+_0x58754b+'_'+_0x4621b4;}};const Tr=[_0x391870[_0x354fcb(0x463)],_0x391870[_0x354fcb(0x453)],_0x391870[_0x354fcb(0x479)],_0x391870[_0x354fcb(0x36a)]],Er=new Set([_0x56e21f['Base'],_0x56e21f[_0x354fcb(0x1d0)],_0x56e21f[_0x354fcb(0x4ef)],_0x56e21f[_0x354fcb(0x1dc)],_0x56e21f[_0x354fcb(0x52a)],_0x56e21f['BaseDashboard']]),Dr=_0x354fcb(0x2e3),Or=_0x354fcb(0x45f),kr=_0x354fcb(0x4fe),Ar='view/',jr=_0x354fcb(0x237);function K(_0x20420e){return''+Dr+encodeURIComponent(_0x20420e);}function q(_0x345ce0,_0x5df5a5){return''+Or+encodeURIComponent(_0x345ce0)+'/'+encodeURIComponent(_0x5df5a5);}function J(_0x260ed1,_0x44e15d){return''+kr+encodeURIComponent(_0x260ed1)+'/'+encodeURIComponent(_0x44e15d);}function Mr(_0x4f7cfb,_0x4eabe5){return''+Ar+encodeURIComponent(_0x4f7cfb)+'/'+encodeURIComponent(_0x4eabe5);}function Nr(_0xecf542){return''+jr+encodeURIComponent(_0xecf542);}function Pr(_0x47b93d,_0x309b52,_0x1b1b13){const _0x4a84dd=_0x354fcb;if(_0x309b52===_0x47b93d)switch(_0x1b1b13){case _0x391870[_0x4a84dd(0x463)]:return new vr(_0x47b93d);case _0x391870[_0x4a84dd(0x453)]:return new _r(_0x47b93d);case _0x391870['Export']:return new yr(_0x47b93d);case _0x391870[_0x4a84dd(0x36a)]:return new gr(_0x47b93d);default:throw Error('Unsupported\x20Base\x20permission\x20action:\x20'+_0x1b1b13);}if(_0x1b1b13!==_0x391870[_0x4a84dd(0x463)])throw Error(_0x4a84dd(0x35b)+_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Dr))return new Cr(_0x47b93d,_0x309b52);if(_0x309b52['startsWith'](Or))return new xr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](kr))return new Sr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Ar))return new wr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](jr))return new br(_0x47b93d,_0x309b52);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x309b52);}function Fr(_0x3d5373,_0x46f426,_0x5645d7,_0x5a49e0){const _0x1bfa1d=_0x354fcb;var _0x2623c5;return((_0x2623c5=_0x3d5373['getPermissionPoint'](Pr(_0x46f426,_0x5645d7,_0x5a49e0)['id']))==null?void 0x0:_0x2623c5[_0x1bfa1d(0x416)])??!0x0;}function Ir(_0x46e807,_0x21472,_0x4de206,_0x447016,_0x3fd401){const _0x4c40ba=_0x354fcb;let _0x27f719=Pr(_0x21472,_0x4de206,_0x447016);_0x46e807[_0x4c40ba(0x1c9)](_0x27f719['id'])||_0x46e807[_0x4c40ba(0x2da)](_0x27f719),_0x46e807[_0x4c40ba(0x447)](_0x27f719['id'],_0x3fd401);}function Lr(_0x20fbce,_0x3f38d4,_0x397b8e,_0x13c53a){const _0x471c61=_0x354fcb;_0x20fbce[_0x471c61(0x509)](Pr(_0x3f38d4,_0x397b8e,_0x13c53a)['id']);}function Rr(_0x293b92,_0x52540c){const _0x3a8192=_0x354fcb;_0x293b92[_0x3a8192(0x3b8)]()[_0x3a8192(0x461)]((_0xf884e0,_0x5c35fd)=>{const _0xed9c89=_0x3a8192;_0xf884e0[_0xed9c89(0x30f)](_0x98e0a0=>{const _0x277bf3=_0xed9c89;Er[_0x277bf3(0x23f)](_0x98e0a0[_0x277bf3(0x33a)])&&_0x277bf3(0x278)in _0x98e0a0&&_0x98e0a0[_0x277bf3(0x278)]===_0x52540c&&_0x293b92[_0x277bf3(0x509)](_0x5c35fd);})['unsubscribe']();});}function zr(_0x3cf926,_0x4336b7,_0x5ecca1){const _0x335ac1=_0x354fcb;return Fr(_0x3cf926,_0x4336b7,_0x4336b7,_0x391870[_0x335ac1(0x463)])&&Array[_0x335ac1(0x4dd)](_0x5ecca1)[_0x335ac1(0x1b6)](_0x4bd53e=>Fr(_0x3cf926,_0x4336b7,_0x4bd53e,_0x391870[_0x335ac1(0x463)]));}function Y(_0x78ec34,_0x4ca9b1){return function(_0x3a39d8,_0x5b9233){_0x4ca9b1(_0x3a39d8,_0x5b9233,_0x78ec34);};}function X(_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd){const _0xf37495=_0x354fcb;var _0xd580ef=arguments[_0xf37495(0x458)],_0x270476=_0xd580ef<0x3?_0x530b93:_0x38eccd===null?_0x38eccd=Object[_0xf37495(0x503)](_0x530b93,_0x29f355):_0x38eccd,_0x309d5a;if(typeof Reflect==_0xf37495(0x269)&&typeof Reflect[_0xf37495(0x3f3)]==_0xf37495(0x389))_0x270476=Reflect[_0xf37495(0x3f3)](_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd);else{for(var _0x2eacbf=_0x3e7abe[_0xf37495(0x458)]-0x1;_0x2eacbf>=0x0;_0x2eacbf--)(_0x309d5a=_0x3e7abe[_0x2eacbf])&&(_0x270476=(_0xd580ef<0x3?_0x309d5a(_0x270476):_0xd580ef>0x3?_0x309d5a(_0x530b93,_0x29f355,_0x270476):_0x309d5a(_0x530b93,_0x29f355))||_0x270476);}return _0xd580ef>0x3&&_0x270476&&Object[_0xf37495(0x2b6)](_0x530b93,_0x29f355,_0x270476),_0x270476;}const Br=_0x5d0ae0('base.permission.service');let Vr=class extends _0x1589db{constructor(_0x577945,_0x5c4df7){const _0x356a2f=_0x354fcb;super(),this[_0x356a2f(0x487)]=_0x577945,this[_0x356a2f(0x2cf)]=_0x5c4df7,G(this,_0x356a2f(0x35a),new Map()),G(this,'_tablePermissions',new Map()),G(this,'_fieldPermissions',new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x356a2f(0x4ac),new Map()),G(this,_0x356a2f(0x1f7),new Map()),this[_0x356a2f(0x1b4)](this[_0x356a2f(0x2cf)]['getTypeOfUnitDisposed$'](_0x28d752['UNIVER_BASE'])[_0x356a2f(0x30f)](_0x5e235f=>this[_0x356a2f(0x1d7)](_0x5e235f[_0x356a2f(0x422)]())));}[_0x354fcb(0x352)](_0x6322f6){const _0x4b6f65=_0x354fcb;var _0x33ce2e;return this[_0x4b6f65(0x1fa)](_0x6322f6,[])&&(((_0x33ce2e=this[_0x4b6f65(0x35a)][_0x4b6f65(0x4a8)](_0x6322f6))==null?void 0x0:_0x33ce2e[_0x4b6f65(0x500)])??!0x0);}[_0x354fcb(0x481)](_0x5239bf){const _0x2b0046=_0x354fcb;return this[_0x2b0046(0x385)](_0x5239bf);}[_0x354fcb(0x3c1)](_0x54ae4d){const _0x3873ca=_0x354fcb;var _0x303a3d;return this['_canEditTable'](_0x54ae4d)&&(((_0x303a3d=this[_0x3873ca(0x415)][_0x3873ca(0x4a8)](_0x54ae4d))==null?void 0x0:_0x303a3d[_0x3873ca(0x4f4)])??!0x0);}[_0x354fcb(0x293)](_0x1643c6){const _0x5938ae=_0x354fcb;var _0x5b6476;return this[_0x5938ae(0x385)](_0x1643c6)&&(((_0x5b6476=this[_0x5938ae(0x415)][_0x5938ae(0x4a8)](_0x1643c6))==null?void 0x0:_0x5b6476[_0x5938ae(0x2c0)])??!0x0);}[_0x354fcb(0x341)](_0x46c98f,_0x1e81f4){const _0x16ffe1=_0x354fcb;var _0x2d9c53;return this[_0x16ffe1(0x385)](_0x46c98f)&&this[_0x16ffe1(0x1fa)](_0x46c98f,[q(_0x46c98f,_0x1e81f4)])&&(((_0x2d9c53=this[_0x16ffe1(0x44a)]['get'](Ur(_0x46c98f,_0x1e81f4)))==null?void 0x0:_0x2d9c53[_0x16ffe1(0x1db)])??!0x0);}['canDeleteField'](_0x24b017,_0x3db578){const _0xc9f061=_0x354fcb;var _0x524990;return this['canEditField'](_0x24b017,_0x3db578)&&(((_0x524990=this['_fieldPermissions'][_0xc9f061(0x4a8)](Ur(_0x24b017,_0x3db578)))==null?void 0x0:_0x524990[_0xc9f061(0x4f4)])??!0x0);}['canCreateRecord'](_0x249808){const _0x1a99ce=_0x354fcb;var _0x114502;return this[_0x1a99ce(0x385)](_0x249808)&&(((_0x114502=this[_0x1a99ce(0x415)][_0x1a99ce(0x4a8)](_0x249808))==null?void 0x0:_0x114502[_0x1a99ce(0x4a0)])??!0x0);}[_0x354fcb(0x210)](_0x1f8e43,_0xd65409){const _0x4c3154=_0x354fcb;var _0x229e30;let _0x2eab8f=this[_0x4c3154(0x203)][_0x4c3154(0x4a8)](Wr(_0x1f8e43,_0xd65409));return this[_0x4c3154(0x1fa)](_0x1f8e43,[K(_0x1f8e43),J(_0x1f8e43,_0xd65409)])&&(((_0x229e30=this[_0x4c3154(0x415)][_0x4c3154(0x4a8)](_0x1f8e43))==null?void 0x0:_0x229e30['edit'])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f[_0x4c3154(0x1db)])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f['editCell'])??!0x0);}['canDeleteRecord'](_0x49d50e,_0x4dab7c){const _0x465eec=_0x354fcb;var _0x29d943,_0x45794d,_0x5eb41;return this['_canEdit'](_0x49d50e,[K(_0x49d50e),J(_0x49d50e,_0x4dab7c)])&&(((_0x29d943=this[_0x465eec(0x415)]['get'](_0x49d50e))==null?void 0x0:_0x29d943[_0x465eec(0x1db)])??!0x0)&&(((_0x45794d=this[_0x465eec(0x203)]['get'](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x45794d[_0x465eec(0x1db)])??!0x0)&&(((_0x5eb41=this[_0x465eec(0x203)][_0x465eec(0x4a8)](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x5eb41[_0x465eec(0x4f4)])??!0x0);}['canEditCell'](_0x20d995,_0x3c3d05,_0x2f3075){const _0x110ae9=_0x354fcb;var _0x392d0f,_0x1bdd1c,_0x2d0caa;let _0x442eb2=this['_fieldPermissions'][_0x110ae9(0x4a8)](Ur(_0x20d995,_0x2f3075));return this[_0x110ae9(0x1fa)](_0x20d995,[K(_0x20d995),q(_0x20d995,_0x2f3075),J(_0x20d995,_0x3c3d05)])&&(((_0x392d0f=this[_0x110ae9(0x415)][_0x110ae9(0x4a8)](_0x20d995))==null?void 0x0:_0x392d0f[_0x110ae9(0x1db)])??!0x0)&&(((_0x1bdd1c=this[_0x110ae9(0x203)][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x1bdd1c[_0x110ae9(0x1db)])??!0x0)&&(((_0x2d0caa=this['_recordPermissions'][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x2d0caa[_0x110ae9(0x38c)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x1db)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x38c)])??!0x0);}['canManageView'](_0xc4e424,_0xcec1f4){const _0x180261=_0x354fcb;var _0x120ba2,_0x494753,_0x157359;return this['_canEdit'](_0xc4e424,[K(_0xc4e424),Mr(_0xc4e424,_0xcec1f4)])&&(((_0x120ba2=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x120ba2[_0x180261(0x1db)])??!0x0)&&(((_0x494753=this[_0x180261(0x4ac)][_0x180261(0x4a8)](Gr(_0xc4e424,_0xcec1f4)))==null?void 0x0:_0x494753[_0x180261(0x1db)])??!0x0)&&(((_0x157359=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x157359[_0x180261(0x238)])??!0x0);}['setBasePermission'](_0x4538cb,_0x5a1c95){const _0x449fa8=_0x354fcb;this['_basePermissions'][_0x449fa8(0x1a1)](_0x4538cb,{...this['_basePermissions'][_0x449fa8(0x4a8)](_0x4538cb),..._0x5a1c95}),_0x5a1c95[_0x449fa8(0x1db)]!==void 0x0&&Ir(this['_permissionService'],_0x4538cb,_0x4538cb,_0x391870['Edit'],_0x5a1c95[_0x449fa8(0x1db)]);}[_0x354fcb(0x298)](_0x2af400,_0x19c399){const _0x5d2b3e=_0x354fcb;this['_rememberTable'](_0x2af400),this[_0x5d2b3e(0x415)][_0x5d2b3e(0x1a1)](_0x2af400,{...this[_0x5d2b3e(0x415)]['get'](_0x2af400),..._0x19c399}),this[_0x5d2b3e(0x258)](_0x2af400,K(_0x2af400),_0x19c399['edit']);}[_0x354fcb(0x49e)](_0x31a8e1,_0xe7c615,_0x328d33){const _0xdc1ab1=_0x354fcb;this[_0xdc1ab1(0x17f)](_0x31a8e1);let _0x43d2ea=Ur(_0x31a8e1,_0xe7c615);this[_0xdc1ab1(0x44a)][_0xdc1ab1(0x1a1)](_0x43d2ea,{...this['_fieldPermissions'][_0xdc1ab1(0x4a8)](_0x43d2ea),..._0x328d33}),this[_0xdc1ab1(0x258)](_0x31a8e1,q(_0x31a8e1,_0xe7c615),_0x328d33[_0xdc1ab1(0x1db)]);}[_0x354fcb(0x528)](_0xdb3ce6,_0x60690f,_0x5a27ab){const _0x257241=_0x354fcb;this['_rememberTable'](_0xdb3ce6);let _0xa6d074=Wr(_0xdb3ce6,_0x60690f);this[_0x257241(0x203)][_0x257241(0x1a1)](_0xa6d074,{...this['_recordPermissions']['get'](_0xa6d074),..._0x5a27ab}),this[_0x257241(0x258)](_0xdb3ce6,J(_0xdb3ce6,_0x60690f),_0x5a27ab[_0x257241(0x1db)]);}['setViewPermission'](_0x2c1540,_0x17d4de,_0xe66408){const _0x23a80a=_0x354fcb;this[_0x23a80a(0x17f)](_0x2c1540);let _0x16b60d=Gr(_0x2c1540,_0x17d4de);this[_0x23a80a(0x4ac)][_0x23a80a(0x1a1)](_0x16b60d,{...this['_viewPermissions'][_0x23a80a(0x4a8)](_0x16b60d),..._0xe66408}),this[_0x23a80a(0x258)](_0x2c1540,Mr(_0x2c1540,_0x17d4de),_0xe66408[_0x23a80a(0x1db)]);}[_0x354fcb(0x4af)](_0xdea016){const _0x2507ae=_0x354fcb;this[_0x2507ae(0x35a)]['delete'](_0xdea016),Lr(this[_0x2507ae(0x487)],_0xdea016,_0xdea016,_0x391870['Edit']);}[_0x354fcb(0x396)](_0xc5ea9e){const _0x160e6e=_0x354fcb;this[_0x160e6e(0x415)]['delete'](_0xc5ea9e),this[_0x160e6e(0x1af)](_0xc5ea9e,K(_0xc5ea9e));}['clearFieldPermission'](_0x3848bf,_0x1d06e8){const _0x44fb61=_0x354fcb;this['_fieldPermissions'][_0x44fb61(0x4f4)](Ur(_0x3848bf,_0x1d06e8)),this['_clearObjectEdit'](_0x3848bf,q(_0x3848bf,_0x1d06e8));}['clearRecordPermission'](_0x444a45,_0x3c4487){const _0x59073f=_0x354fcb;this[_0x59073f(0x203)][_0x59073f(0x4f4)](Wr(_0x444a45,_0x3c4487)),this[_0x59073f(0x1af)](_0x444a45,J(_0x444a45,_0x3c4487));}[_0x354fcb(0x3d4)](_0x131e5a,_0x2db216){const _0x33adf0=_0x354fcb;this[_0x33adf0(0x4ac)][_0x33adf0(0x4f4)](Gr(_0x131e5a,_0x2db216)),this[_0x33adf0(0x1af)](_0x131e5a,Mr(_0x131e5a,_0x2db216));}[_0x354fcb(0x1f9)](){const _0xf507f8=_0x354fcb;return{'bases':Object['fromEntries'](this[_0xf507f8(0x35a)]),'tables':Object['fromEntries'](this[_0xf507f8(0x415)]),'fields':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x44a)]),'records':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x203)]),'views':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x4ac)])};}[_0x354fcb(0x385)](_0x5bb8c8){const _0x4cc536=_0x354fcb;var _0x367e54;return this[_0x4cc536(0x1fa)](_0x5bb8c8,[K(_0x5bb8c8)])&&(((_0x367e54=this['_tablePermissions'][_0x4cc536(0x4a8)](_0x5bb8c8))==null?void 0x0:_0x367e54[_0x4cc536(0x1db)])??!0x0);}['_canEdit'](_0x2691f1,_0x245589){const _0x230a9c=_0x354fcb;var _0x4d06a5;let _0x596618=this[_0x230a9c(0x29e)](_0x2691f1);return!_0x596618||zr(this[_0x230a9c(0x487)],_0x596618,_0x245589)&&(((_0x4d06a5=this[_0x230a9c(0x35a)][_0x230a9c(0x4a8)](_0x596618))==null?void 0x0:_0x4d06a5[_0x230a9c(0x1db)])??!0x0);}[_0x354fcb(0x258)](_0x22066a,_0x25c1d8,_0x29b876){const _0x3004ce=_0x354fcb;if(_0x29b876===void 0x0)return;let _0x1e19b7=this[_0x3004ce(0x29e)](_0x22066a);_0x1e19b7&&Ir(this[_0x3004ce(0x487)],_0x1e19b7,_0x25c1d8,_0x391870[_0x3004ce(0x463)],_0x29b876);}[_0x354fcb(0x1af)](_0x3166e4,_0x13e85a){const _0x2315fe=_0x354fcb;let _0x295718=this[_0x2315fe(0x29e)](_0x3166e4);_0x295718&&Lr(this[_0x2315fe(0x487)],_0x295718,_0x13e85a,_0x391870['Edit']);}['_resolveBaseId'](_0x2182a5){const _0x41ecb1=_0x354fcb;var _0x5b806a;let _0x6a1f7a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x2e5)](_0x2182a5,_0x28d752[_0x41ecb1(0x201)]);return _0x6a1f7a?_0x6a1f7a[_0x41ecb1(0x422)]():(_0x5b806a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x3c4)](_0x28d752[_0x41ecb1(0x201)])[_0x41ecb1(0x22f)](_0x585e21=>!!_0x585e21[_0x41ecb1(0x1f9)]()[_0x41ecb1(0x2ba)][_0x2182a5]))==null?void 0x0:_0x5b806a[_0x41ecb1(0x422)]();}[_0x354fcb(0x17f)](_0x7cbdee){const _0x1753db=_0x354fcb;let _0x4ea156=this['_resolveBaseId'](_0x7cbdee);_0x4ea156&&this['_tableBaseIds'][_0x1753db(0x1a1)](_0x7cbdee,_0x4ea156);}[_0x354fcb(0x1d7)](_0x34fae6){const _0x16d10f=_0x354fcb;this[_0x16d10f(0x35a)]['delete'](_0x34fae6),this[_0x16d10f(0x1f7)]['forEach']((_0x3138e1,_0x4dbd61)=>{const _0x551cd6=_0x16d10f;_0x3138e1===_0x34fae6&&(this[_0x551cd6(0x415)]['delete'](_0x4dbd61),Hr(this[_0x551cd6(0x44a)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x203)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x4ac)],_0x4dbd61+'\x1f'),this[_0x551cd6(0x1f7)][_0x551cd6(0x4f4)](_0x4dbd61));});}};Vr=X([Y(0x0,_0x211d15),Y(0x1,_0x3414e2)],Vr);function Hr(_0x132a94,_0x116bae){_0x132a94['forEach']((_0x56d054,_0x1ecc89)=>{const _0x22066b=_0x48d8;_0x1ecc89[_0x22066b(0x254)](_0x116bae)&&_0x132a94[_0x22066b(0x4f4)](_0x1ecc89);});}function Ur(_0x217b18,_0xc3e301){return _0x217b18+'\x1f'+_0xc3e301;}function Wr(_0xfd0a74,_0x3f5279){return _0xfd0a74+'\x1f'+_0x3f5279;}function Gr(_0x16f727,_0xa7f5c){return _0x16f727+'\x1f'+_0xa7f5c;}const Kr=_0x5d0ae0('base.command.service');let qr=class{constructor(_0x3411e0,_0x3c4f98=Jr(),_0x5d681c={}){const _0x4d8ae6=_0x354fcb;this['_permissionService']=_0x3411e0,this['_fieldRegistry']=_0x3c4f98,this[_0x4d8ae6(0x224)]=_0x5d681c,G(this,_0x4d8ae6(0x1dd),new W()),G(this,'_applier',new z());}[_0x354fcb(0x500)](_0x576e37,_0x1ecddc,_0x139169){const _0x36c325=_0x354fcb;if(!this['_permissionService'][_0x36c325(0x352)](_0x576e37[_0x36c325(0x422)]()))throw Error(_0x36c325(0x2a1));_0x136f40(_0x1ecddc),this[_0x36c325(0x402)](_0x576e37,this['_factory'][_0x36c325(0x500)](_0x576e37[_0x36c325(0x1f9)](),_0x1ecddc,_0x139169));}[_0x354fcb(0x1be)](_0x20e2eb,_0x2bb71e,_0x31770c){const _0x57a14a=_0x354fcb;if(!this[_0x57a14a(0x487)]['canEditTable'](_0x2bb71e))throw Error(_0x57a14a(0x172));this[_0x57a14a(0x402)](_0x20e2eb,this[_0x57a14a(0x1dd)][_0x57a14a(0x1be)](_0x20e2eb[_0x57a14a(0x1f9)](),_0x2bb71e,_0x31770c));}[_0x354fcb(0x4d8)](_0x41ee6c,_0x34512d){const _0x57446b=_0x354fcb;if(!this[_0x57446b(0x487)][_0x57446b(0x3c1)](_0x34512d))throw Error(_0x57446b(0x4ab));let _0x299e50=He(_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d);if(_0x299e50['length']>0x0)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20('+_0x299e50['map'](_0x119b4a=>_0x119b4a[_0x57446b(0x1c3)]+'.'+_0x119b4a[_0x57446b(0x46e)])['join'](',\x20')+').');this['_apply'](_0x41ee6c,this[_0x57446b(0x1dd)]['deleteTable'](_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d));}[_0x354fcb(0x3e6)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07){const _0x287ee8=_0x354fcb;this[_0x287ee8(0x402)](_0x545ecf,this[_0x287ee8(0x22b)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07));}[_0x354fcb(0x19a)](_0x5f4c8d,_0x3e656d,_0x371b9a){const _0x3e1e25=_0x354fcb;this['_apply'](_0x5f4c8d,this[_0x3e1e25(0x2be)](_0x5f4c8d,_0x3e656d,_0x371b9a));}[_0x354fcb(0x4a0)](_0x524291,_0x8fccab,_0x255c1e){const _0x2bbd68=_0x354fcb;this[_0x2bbd68(0x402)](_0x524291,this[_0x2bbd68(0x40c)](_0x524291,_0x8fccab,_0x255c1e));}[_0x354fcb(0x22b)](_0x3fb30d,_0xfe837,_0x4fefb8,_0x49f915,_0x259688){const _0x5a7b99=_0x354fcb;let _0x484b48=_0x3fb30d[_0x5a7b99(0x1f9)](),_0x37468=this[_0x5a7b99(0x302)](_0x484b48,_0xfe837,_0x4fefb8,_0x49f915,_0x259688),_0xcb7a2c=this[_0x5a7b99(0x1d4)](_0x484b48,_0xfe837,_0x4fefb8,{[_0x49f915]:_0x37468});return this[_0x5a7b99(0x1dd)]['setRecordValues'](_0x484b48,_0xfe837,[_0xcb7a2c]);}['createSetRecordValuesOp'](_0x393153,_0x1d66a2,_0x4ad9f9){const _0x6f14d7=_0x354fcb;let _0x2db3c6=_0x393153[_0x6f14d7(0x1f9)](),_0x584128=_0x4ad9f9['map'](_0x47b5d8=>this[_0x6f14d7(0x1d4)](_0x2db3c6,_0x1d66a2,_0x47b5d8[_0x6f14d7(0x4bb)],{...Object[_0x6f14d7(0x2e8)](Object['entries'](_0x47b5d8[_0x6f14d7(0x1da)])[_0x6f14d7(0x29b)](([_0x5dcf85,_0x25be6e])=>[_0x5dcf85,this[_0x6f14d7(0x302)](_0x2db3c6,_0x1d66a2,_0x47b5d8['recordId'],_0x5dcf85,_0x25be6e)]))}));return this[_0x6f14d7(0x1dd)]['setRecordValues'](_0x2db3c6,_0x1d66a2,_0x584128);}[_0x354fcb(0x40c)](_0x2c140c,_0x19a31f,_0x93ce33){const _0x45de8f=_0x354fcb;if(!this[_0x45de8f(0x487)]['canCreateRecord'](_0x19a31f))throw Error(_0x45de8f(0x4b7));let _0x3d36b7=_0x2c140c['getSnapshot'](),_0x357efd=this['_createNumberingAllocators'](_0x3d36b7[_0x45de8f(0x2ba)][_0x19a31f]);return this[_0x45de8f(0x1dd)][_0x45de8f(0x4a0)](_0x3d36b7,_0x19a31f,this[_0x45de8f(0x42d)](_0x3d36b7,_0x19a31f,_0x93ce33,_0x357efd));}[_0x354fcb(0x518)](_0xabba5,_0x30e6d1,_0xc0fe8c){const _0x339f8b=_0x354fcb;if(!this[_0x339f8b(0x487)][_0x339f8b(0x280)](_0x30e6d1))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x425088=_0xabba5['getSnapshot']();return I(_0x339f8b(0x23e),()=>{const _0x1fb40f=_0x339f8b;let _0x1f8915=this[_0x1fb40f(0x42e)](_0x425088['tables'][_0x30e6d1]);return this[_0x1fb40f(0x1dd)][_0x1fb40f(0x268)](_0x425088,_0x30e6d1,_0xc0fe8c[_0x1fb40f(0x29b)](_0x490da8=>this['_createRecordWithDefaults'](_0x425088,_0x30e6d1,_0x490da8,_0x1f8915)));},{'existingRecords':Object[_0x339f8b(0x51b)](_0x425088['tables'][_0x30e6d1][_0x339f8b(0x45a)])[_0x339f8b(0x458)],'records':_0xc0fe8c[_0x339f8b(0x458)]});}['createCreateFieldOp'](_0x449389,_0x1d731f,_0x1abb77,_0x3a743d,_0x2bdead){const _0x1d3187=_0x354fcb;if(!this[_0x1d3187(0x487)]['canCreateField'](_0x1d731f))throw Error(_0x1d3187(0x46c));let _0x431b03=_0x449389[_0x1d3187(0x1f9)]();if(this[_0x1d3187(0x3df)](_0x431b03,_0x1abb77),_0x3a743d===0x0)throw Error('[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.');let _0x1e980e=this['_factory'][_0x1d3187(0x2c0)](_0x431b03,_0x1d731f,{'field':_0x1abb77,'index':_0x3a743d,'viewIndexes':_0x2bdead}),_0x3a5908=this[_0x1d3187(0x365)](_0x431b03,_0x1d731f,_0x1abb77);if(!_0x3a5908[_0x1d3187(0x458)])return _0x1e980e;let _0xd5a6a=this[_0x1d3187(0x493)][_0x1d3187(0x2ad)](_0x431b03,_0x1e980e);return R([_0x1e980e,this['_factory']['setRecordValues'](_0xd5a6a,_0x1d731f,_0x3a5908)]);}[_0x354fcb(0x375)](_0x51f826,_0x4e980e,_0x3805c6){const _0x5475f0=_0x354fcb;if(!this[_0x5475f0(0x487)][_0x5475f0(0x37c)](_0x4e980e,_0x3805c6))throw Error(_0x5475f0(0x2fe));this[_0x5475f0(0x402)](_0x51f826,this[_0x5475f0(0x1dd)]['deleteRecord'](_0x51f826[_0x5475f0(0x1f9)](),_0x4e980e,_0x3805c6));}[_0x354fcb(0x3e5)](_0x2de52a,_0x32bf0f,_0x39d1ee,_0x332642){const _0x269b77=_0x354fcb;if(!this['_permissionService'][_0x269b77(0x280)](_0x32bf0f))throw Error(_0x269b77(0x4b7));this[_0x269b77(0x402)](_0x2de52a,this['_factory'][_0x269b77(0x3e5)](_0x2de52a['getSnapshot'](),_0x32bf0f,_0x39d1ee,{..._0x332642,'values':{..._0x332642[_0x269b77(0x1da)],[_0x3b44b5]:_0x332642['id']}}));}[_0x354fcb(0x229)](_0x35fbe9,_0x4df03a,_0x4d069e,_0x4f7cc2){const _0x24ef2a=_0x354fcb;if(!this['_permissionService']['canEditRecord'](_0x4df03a,_0x4d069e))throw Error(_0x24ef2a(0x3ee));this[_0x24ef2a(0x402)](_0x35fbe9,this['_factory']['updateRecordOrder'](_0x35fbe9[_0x24ef2a(0x1f9)](),_0x4df03a,_0x4d069e,_0x4f7cc2));}[_0x354fcb(0x2c0)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db){const _0x3eb11f=_0x354fcb;this['_apply'](_0x11e555,this[_0x3eb11f(0x20a)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db));}['updateField'](_0x18cb38,_0x5d9f3a,_0x423d24,_0x483b01){const _0x16043a=_0x354fcb;var _0x5e0c35;if(!this[_0x16043a(0x487)][_0x16043a(0x341)](_0x5d9f3a,_0x423d24))throw Error(_0x16043a(0x351));let _0x1de38c=_0x18cb38[_0x16043a(0x1f9)](),_0x1bb796=(_0x5e0c35=_0x1de38c[_0x16043a(0x2ba)][_0x5d9f3a])==null?void 0x0:_0x5e0c35[_0x16043a(0x480)][_0x423d24];if(!_0x1bb796||_0x423d24===_0x3b44b5)throw Error(_0x16043a(0x27d));this[_0x16043a(0x3df)](_0x1de38c,{..._0x1bb796,..._0x483b01}),this[_0x16043a(0x402)](_0x18cb38,this[_0x16043a(0x1dd)][_0x16043a(0x409)](_0x1de38c,_0x5d9f3a,_0x423d24,_0x483b01));}['changeFieldType'](_0x292f35,_0x1cd207,_0x5863e3,_0x458e6a){const _0x45643b=_0x354fcb;var _0xacd85f;if(!this['_permissionService'][_0x45643b(0x341)](_0x1cd207,_0x5863e3))throw Error(_0x45643b(0x351));let _0xd4aaf5=_0x292f35['getSnapshot'](),_0x4e62b2=(_0xacd85f=_0xd4aaf5['tables'][_0x1cd207])==null?void 0x0:_0xacd85f[_0x45643b(0x480)][_0x5863e3];if(!_0x4e62b2||_0x5863e3===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x45643b(0x3df)](_0xd4aaf5,{..._0x4e62b2,..._0x458e6a}),this['_apply'](_0x292f35,this[_0x45643b(0x1dd)][_0x45643b(0x2b7)](_0xd4aaf5,_0x1cd207,_0x5863e3,_0x458e6a));}[_0x354fcb(0x21f)](_0x57176a,_0x4403ba,_0xb94338){const _0x24e3e8=_0x354fcb;var _0x313e94;if(((_0x313e94=_0x57176a['getSnapshot']()[_0x24e3e8(0x2ba)][_0x4403ba])==null?void 0x0:_0x313e94[_0x24e3e8(0x4cf)])===_0xb94338||_0xb94338===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x24e3e8(0x487)][_0x24e3e8(0x2bf)](_0x4403ba,_0xb94338))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0x24e3e8(0x402)](_0x57176a,this[_0x24e3e8(0x1dd)]['deleteField'](_0x57176a[_0x24e3e8(0x1f9)](),_0x4403ba,_0xb94338));}[_0x354fcb(0x399)](_0x44cab7,_0x394e2f,_0x57fc6f,_0x53a0cb){const _0x1e440c=_0x354fcb;if(!this[_0x1e440c(0x487)][_0x1e440c(0x341)](_0x394e2f,_0x57fc6f))throw Error(_0x1e440c(0x351));if(_0x57fc6f===_0x3b44b5||_0x53a0cb[_0x1e440c(0x381)]===_0x3b44b5)throw Error(_0x1e440c(0x312));this[_0x1e440c(0x402)](_0x44cab7,this[_0x1e440c(0x1dd)][_0x1e440c(0x399)](_0x44cab7['getSnapshot'](),_0x394e2f,_0x57fc6f,_0x53a0cb));}[_0x354fcb(0x446)](_0x308e24,_0x20c275,_0x8d31fb,_0x19983b){const _0x11370c=_0x354fcb;if(!this[_0x11370c(0x487)][_0x11370c(0x459)](_0x20c275,_0x8d31fb['id']))throw Error(_0x11370c(0x465));this[_0x11370c(0x402)](_0x308e24,this[_0x11370c(0x1dd)]['createView'](_0x308e24['getSnapshot'](),_0x20c275,_0x8d31fb,_0x19983b));}['renameView'](_0x14890a,_0xf05c6c,_0x1d5b62,_0x5de984){const _0x18260b=_0x354fcb;if(!this[_0x18260b(0x487)][_0x18260b(0x459)](_0xf05c6c,_0x1d5b62))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x18260b(0x402)](_0x14890a,this['_factory']['renameView'](_0x14890a['getSnapshot'](),_0xf05c6c,_0x1d5b62,_0x5de984));}[_0x354fcb(0x3a2)](_0x495806,_0x543fcc,_0x232245){const _0x1c7d01=_0x354fcb;if(!this[_0x1c7d01(0x487)][_0x1c7d01(0x459)](_0x543fcc,_0x232245))throw Error(_0x1c7d01(0x465));this['_apply'](_0x495806,this[_0x1c7d01(0x1dd)][_0x1c7d01(0x3a2)](_0x495806[_0x1c7d01(0x1f9)](),_0x543fcc,_0x232245));}[_0x354fcb(0x24d)](_0x3ef87b,_0x297af0,_0x25bc7a,_0x528d1e){const _0x54ddce=_0x354fcb;if(!this['_permissionService'][_0x54ddce(0x459)](_0x297af0,_0x25bc7a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x54ddce(0x402)](_0x3ef87b,this[_0x54ddce(0x1dd)][_0x54ddce(0x24d)](_0x3ef87b[_0x54ddce(0x1f9)](),_0x297af0,_0x25bc7a,_0x528d1e));}[_0x354fcb(0x4c1)](_0x146e08,_0x3476cb,_0x912879,_0x37ee58){const _0x43aebd=_0x354fcb;if(!this[_0x43aebd(0x487)][_0x43aebd(0x459)](_0x3476cb,_0x912879))throw Error(_0x43aebd(0x465));this[_0x43aebd(0x402)](_0x146e08,this[_0x43aebd(0x1dd)][_0x43aebd(0x4c1)](_0x146e08[_0x43aebd(0x1f9)](),_0x3476cb,_0x912879,_0x37ee58));}[_0x354fcb(0x2de)](_0x3721c1,_0x541c61,_0x1a7d50,_0x519651){const _0x2cdb47=_0x354fcb;if(!this[_0x2cdb47(0x487)][_0x2cdb47(0x459)](_0x541c61,_0x1a7d50))throw Error(_0x2cdb47(0x465));this[_0x2cdb47(0x402)](_0x3721c1,this[_0x2cdb47(0x1dd)][_0x2cdb47(0x2de)](_0x3721c1['getSnapshot'](),_0x541c61,_0x1a7d50,_0x519651));}[_0x354fcb(0x4ff)](_0x57f442,_0x5baa59,_0x12120c,_0xf2a627){const _0x57154c=_0x354fcb;if(!this[_0x57154c(0x487)][_0x57154c(0x459)](_0x5baa59,_0x12120c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x57154c(0x402)](_0x57f442,this[_0x57154c(0x1dd)][_0x57154c(0x4ff)](_0x57f442[_0x57154c(0x1f9)](),_0x5baa59,_0x12120c,_0xf2a627));}[_0x354fcb(0x178)](_0x276d6c,_0x3b5c6d,_0x5aa520,_0xc77251){const _0x50e559=_0x354fcb;if(!this['_permissionService']['canManageView'](_0x3b5c6d,_0x5aa520))throw Error(_0x50e559(0x465));this[_0x50e559(0x402)](_0x276d6c,this[_0x50e559(0x1dd)]['setViewGroup'](_0x276d6c[_0x50e559(0x1f9)](),_0x3b5c6d,_0x5aa520,_0xc77251));}[_0x354fcb(0x4fc)](_0x2eb842,_0x182c91,_0x4a6f,_0x285207,_0x131283){const _0x2ac761=_0x354fcb;if(!this['_permissionService'][_0x2ac761(0x459)](_0x182c91,_0x4a6f))throw Error(_0x2ac761(0x465));this[_0x2ac761(0x402)](_0x2eb842,this['_factory'][_0x2ac761(0x4fc)](_0x2eb842['getSnapshot'](),_0x182c91,_0x4a6f,_0x285207,_0x131283));}['setViewFieldWidth'](_0x5373e6,_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf){const _0x3d90f3=_0x354fcb;if(!this[_0x3d90f3(0x487)][_0x3d90f3(0x459)](_0xa7ad5c,_0x313ac7))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x3d90f3(0x402)](_0x5373e6,this['_factory'][_0x3d90f3(0x175)](_0x5373e6[_0x3d90f3(0x1f9)](),_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf));}['setViewFieldOrder'](_0x119ebe,_0x452d7b,_0x1166d4,_0x58359b,_0x598b77){const _0x3692ea=_0x354fcb;if(!this[_0x3692ea(0x487)][_0x3692ea(0x459)](_0x452d7b,_0x1166d4))throw Error(_0x3692ea(0x465));this[_0x3692ea(0x402)](_0x119ebe,this[_0x3692ea(0x1dd)][_0x3692ea(0x457)](_0x119ebe[_0x3692ea(0x1f9)](),_0x452d7b,_0x1166d4,_0x58359b,_0x598b77));}[_0x354fcb(0x402)](_0x12960d,_0x43bd4c){const _0xc109b1=_0x354fcb;let _0x261ae7=_0x12960d[_0xc109b1(0x1f9)]();_0x12960d[_0xc109b1(0x2ff)](this['_applier'][_0xc109b1(0x2ad)](_0x261ae7,_0x43bd4c));}[_0x354fcb(0x42d)](_0x58f9c0,_0x30b1c1,_0x32eda5,_0x1b01f2=this[_0x354fcb(0x42e)](_0x58f9c0['tables'][_0x30b1c1])){const _0x1adf00=_0x354fcb;let _0x23572b=_0x58f9c0[_0x1adf00(0x2ba)][_0x30b1c1],_0x2bb687=_0x32eda5[_0x1adf00(0x3d0)]??_0x32eda5[_0x1adf00(0x2e9)]??this[_0x1adf00(0x3a5)](),_0x526022={..._0x32eda5,'createdBy':_0x32eda5[_0x1adf00(0x3d0)]??_0x2bb687,'updatedBy':_0x32eda5[_0x1adf00(0x2e9)]??_0x2bb687,'values':{..._0x32eda5['values']}};return _0x526022['values'][_0x3b44b5]=_0x526022['id'],_0x23572b['fieldOrder'][_0x1adf00(0x461)](_0x591147=>{const _0x57dae7=_0x1adf00;let _0x351e8b=_0x23572b[_0x57dae7(0x480)][_0x591147];if(_0x351e8b&&_0x526022[_0x57dae7(0x1da)][_0x591147]===void 0x0)switch(_0x351e8b[_0x57dae7(0x33a)]){case _0x19bf94['Numbering']:var _0x3619af;_0x526022[_0x57dae7(0x1da)][_0x591147]=((_0x3619af=_0x1b01f2['get'](_0x591147))==null?void 0x0:_0x3619af())??this[_0x57dae7(0x2c7)](_0x23572b,_0x591147)();break;case _0x19bf94['CreatedBy']:_0x526022[_0x57dae7(0x3d0)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x3d0)]);break;case _0x19bf94['UpdatedBy']:_0x526022[_0x57dae7(0x2e9)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x2e9)]);break;case _0x19bf94[_0x57dae7(0x253)]:_0x526022[_0x57dae7(0x1da)][_0x591147]=B(_0x526022[_0x57dae7(0x403)]);break;case _0x19bf94[_0x57dae7(0x347)]:_0x526022['values'][_0x591147]=B(_0x526022[_0x57dae7(0x483)]);break;default:{let _0x24f6dd=_0x351e8b[_0x57dae7(0x241)];_0x24f6dd!=null&&_0x24f6dd!==''&&!(Array[_0x57dae7(0x354)](_0x24f6dd)&&_0x24f6dd['length']===0x0)&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x24f6dd);}}}),_0x526022;}[_0x354fcb(0x1d4)](_0x9230f,_0x12256f,_0x1ae0c4,_0x6db730){const _0x5cf5e2=_0x354fcb;var _0x2f2fd3,_0x278acf;let _0x3b33b0=_0x9230f['tables'][_0x12256f],_0x459d6a=((_0x2f2fd3=(_0x278acf=this[_0x5cf5e2(0x224)])[_0x5cf5e2(0x181)])==null?void 0x0:_0x2f2fd3['call'](_0x278acf))??Date['now'](),_0x2de7e2=this[_0x5cf5e2(0x3a5)](),_0x15ff43={..._0x6db730};return _0x3b33b0['fieldOrder']['forEach'](_0x8b5c59=>{const _0x312e0f=_0x5cf5e2;let _0x4c690a=_0x3b33b0['fields'][_0x8b5c59];_0x4c690a&&(_0x4c690a['type']===_0x19bf94[_0x312e0f(0x347)]&&(_0x15ff43[_0x8b5c59]=B(_0x459d6a)),_0x4c690a[_0x312e0f(0x33a)]===_0x19bf94[_0x312e0f(0x4df)]&&_0x2de7e2&&(_0x15ff43[_0x8b5c59]=_0x2de7e2));}),{'recordId':_0x1ae0c4,'values':_0x15ff43,'recordPatch':{'updatedAt':_0x459d6a,..._0x2de7e2?{'updatedBy':_0x2de7e2}:{}}};}[_0x354fcb(0x365)](_0x5d7579,_0x1ba266,_0x5b33b3){const _0x1cce48=_0x354fcb;let _0x39f67=_0x5d7579[_0x1cce48(0x2ba)][_0x1ba266];return!_0x39f67||!Yr(_0x5b33b3)?[]:_0x5b33b3[_0x1cce48(0x33a)]===_0x19bf94[_0x1cce48(0x469)]?this[_0x1cce48(0x232)](_0x39f67,_0x5b33b3['id']):Object['values'](_0x39f67[_0x1cce48(0x45a)])[_0x1cce48(0x2a2)](_0x169dbc=>{let _0xf09980=this['_getSystemFieldValue'](_0x5b33b3,_0x169dbc);return _0xf09980===void 0x0?[]:[{'recordId':_0x169dbc['id'],'values':{[_0x5b33b3['id']]:_0xf09980}}];});}[_0x354fcb(0x497)](_0x51ef9d,_0x5ac58b){const _0x11b39f=_0x354fcb;switch(_0x51ef9d['type']){case _0x19bf94[_0x11b39f(0x1fe)]:return _0x5ac58b[_0x11b39f(0x3d0)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x4df)]:return _0x5ac58b[_0x11b39f(0x2e9)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x253)]:return B(_0x5ac58b['createdAt']??Date[_0x11b39f(0x181)]());case _0x19bf94[_0x11b39f(0x347)]:return B(_0x5ac58b[_0x11b39f(0x483)]??Date[_0x11b39f(0x181)]());default:return;}}[_0x354fcb(0x42e)](_0x44cf28){const _0x4bcd80=_0x354fcb;let _0xcd6472=new Map();return _0x44cf28&&_0x44cf28[_0x4bcd80(0x1e1)][_0x4bcd80(0x461)](_0x4b66e0=>{const _0x3f953c=_0x4bcd80;let _0x42847e=_0x44cf28[_0x3f953c(0x480)][_0x4b66e0];(_0x42847e==null?void 0x0:_0x42847e[_0x3f953c(0x33a)])===_0x19bf94['Numbering']&&_0xcd6472[_0x3f953c(0x1a1)](_0x4b66e0,this['_createNumberingAllocator'](_0x44cf28,_0x4b66e0));}),_0xcd6472;}[_0x354fcb(0x2c7)](_0x18f110,_0x5ddab9){const _0x1960e5=_0x354fcb;let _0x59915c=Object['values'](_0x18f110[_0x1960e5(0x45a)])[_0x1960e5(0x498)]((_0x319dd5,_0x354b7e)=>{const _0x29302d=_0x1960e5;let _0xe9e324=Number(_0x354b7e['values'][_0x5ddab9]);return Number[_0x29302d(0x2c3)](_0xe9e324)?Math[_0x29302d(0x1b3)](_0x319dd5,_0xe9e324):_0x319dd5;},0x0);return()=>String(++_0x59915c);}['_createNumberingFieldValuePatches'](_0x24359c,_0x4f50c3){const _0x393ca1=_0x354fcb;let _0x4c330b=this[_0x393ca1(0x17a)](_0x24359c),_0x5e15d3=this['_createNumberingAllocator'](_0x24359c,_0x4f50c3);return _0x4c330b[_0x393ca1(0x2a2)](_0x20de22=>this[_0x393ca1(0x3c7)](_0x20de22[_0x393ca1(0x1da)][_0x4f50c3])?[]:[{'recordId':_0x20de22['id'],'values':{[_0x4f50c3]:_0x5e15d3()}}]);}[_0x354fcb(0x17a)](_0x591de8){const _0x36b6a7=_0x354fcb;var _0x36b779;let _0x57fbef=Object[_0x36b6a7(0x1da)](_0x591de8[_0x36b6a7(0x45a)]),_0x485b68=new Map(_0x57fbef[_0x36b6a7(0x29b)](_0x174eb0=>[_0x174eb0['id'],_0x174eb0])),_0x5526f8=[],_0x532f91=new Set();(_0x36b779=_0x591de8[_0x36b6a7(0x22d)])==null||_0x36b779['forEach'](_0x4391a3=>{const _0x6d9933=_0x36b6a7;let _0x35c9b5=_0x485b68[_0x6d9933(0x4a8)](_0x4391a3);_0x35c9b5&&(_0x5526f8[_0x6d9933(0x1f3)](_0x35c9b5),_0x532f91[_0x6d9933(0x35e)](_0x4391a3));});let _0x45cb2d=_0x57fbef[_0x36b6a7(0x397)](_0x22f63f=>!_0x532f91[_0x36b6a7(0x23f)](_0x22f63f['id']))[_0x36b6a7(0x3db)]((_0x434672,_0x355457)=>String(_0x434672[_0x36b6a7(0x3ef)]??_0x434672['id'])['localeCompare'](String(_0x355457[_0x36b6a7(0x3ef)]??_0x355457['id']))||_0x434672['id']['localeCompare'](_0x355457['id']));return[..._0x5526f8,..._0x45cb2d];}[_0x354fcb(0x3c7)](_0x246202){const _0x312bd1=_0x354fcb;return _0x246202!=null&&_0x246202!==''&&!(Array[_0x312bd1(0x354)](_0x246202)&&_0x246202[_0x312bd1(0x458)]===0x0);}[_0x354fcb(0x3a5)](){const _0x46a355=_0x354fcb;var _0x373602,_0x170e6f,_0x91153f,_0x1ba55b;return((_0x373602=(_0x170e6f=this[_0x46a355(0x224)])['getCurrentUserId'])==null?void 0x0:_0x373602[_0x46a355(0x331)](_0x170e6f))??((_0x91153f=(_0x1ba55b=this[_0x46a355(0x224)])['getCurrentUser'])==null||(_0x91153f=_0x91153f['call'](_0x1ba55b))==null?void 0x0:_0x91153f[_0x46a355(0x2db)])??void 0x0;}['_normalizeCellValue'](_0x7c134,_0x368a26,_0x3af947,_0x1f8d3d,_0x3a206f){const _0x215bc3=_0x354fcb;var _0xc61542;if(!this[_0x215bc3(0x487)][_0x215bc3(0x1d2)](_0x368a26,_0x3af947,_0x1f8d3d))throw Error(_0x215bc3(0x1a6));let _0x23cac2=(_0xc61542=_0x7c134[_0x215bc3(0x2ba)][_0x368a26])==null?void 0x0:_0xc61542[_0x215bc3(0x480)][_0x1f8d3d];if(!_0x23cac2)throw Error(_0x215bc3(0x1d3)+_0x1f8d3d+'\x22\x20does\x20not\x20exist.');let _0x10bbd9=this[_0x215bc3(0x2c4)]['get'](_0x23cac2[_0x215bc3(0x33a)]);if(_0x23cac2[_0x215bc3(0x401)]||_0x23cac2[_0x215bc3(0x1cb)]||!_0x10bbd9[_0x215bc3(0x43a)](_0x23cac2)[_0x215bc3(0x346)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x491e4d=_0x10bbd9[_0x215bc3(0x49f)](_0x3a206f,_0x23cac2),_0x4ecec0=_0x10bbd9[_0x215bc3(0x209)](_0x491e4d,_0x23cac2);if(!_0x4ecec0[_0x215bc3(0x35c)])throw Error(_0x4ecec0[_0x215bc3(0x2d9)]??_0x215bc3(0x43f));let _0x3f3b7c=_0x23cac2[_0x215bc3(0x33a)]===_0x19bf94[_0x215bc3(0x2bd)]?Ve(_0x7c134,_0x23cac2,_0x491e4d):{'valid':!0x0};if(!_0x3f3b7c[_0x215bc3(0x35c)])throw Error(_0x3f3b7c[_0x215bc3(0x2d9)]??_0x215bc3(0x3bb));return _0x491e4d;}[_0x354fcb(0x3df)](_0x16c588,_0x3d75ba){const _0x3b0559=_0x354fcb;if(_0x3d75ba['id']===_0x3b44b5||_0x3d75ba[_0x3b0559(0x33a)]===_0x19bf94[_0x3b0559(0x44f)]||_0x37b436(_0x3d75ba['name']))throw Error(_0x3b0559(0x4c4));let _0x586292=Be(_0x16c588,_0x3d75ba);if(!_0x586292[_0x3b0559(0x35c)])throw Error(_0x586292['reason']??_0x3b0559(0x248));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x2dd760=_0x354fcb;let _0x17c402=new hr();return zn()[_0x2dd760(0x461)](_0x1bc518=>_0x17c402['register'](_0x1bc518)),_0x17c402;}function Yr(_0x489b3a){const _0x425ec8=_0x354fcb;return _0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x469)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x1fe)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94['UpdatedBy']||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x253)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x347)];}function _0x2357(){const _0x337978=['_setViewFieldSetting','[BaseCommandService]:\x20invalid\x20cell\x20value.','Date','_buildGallery','false','-view-grid','lastIndexOf','normal','createView','updatePermissionPoint','getInstance','stringify','_fieldPermissions','Parent\x20Items','_hierarchyIndexCache','_disposed','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','RecordId','getUTCMonth','symbol','getUTCDay','Copy','LAST_WEEK','getProjection','_projectedViewRowsCache','setViewFieldOrder','length','canManageView','records','star','https:','base.command.ensure-base-temporal-view-date-fields','base.mutation.set-permission-rule','field/','_findCalendarDateFieldId','forEach','\x22\x20does\x20not\x20exist.','Edit','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20cannot\x20manage\x20view.','_capabilities','exec','true','Numbering','fld-','base.command.delete-base-field','[BaseCommandService]:\x20cannot\x20create\x20field.','[BasePerf]\x20','fieldId','Attachment','\x20must\x20have\x20a\x20non-empty\x20id.','string','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','size','rowId','STRING','dateFormat','\x20permission\x20denied.','#3b82f6','Export','_configService','SelfParent','#BFDBFE','splice','attachmentSets','Base\x20edit\x20permission\x20denied.','fields','canEditTable','_normalizeGanttDisplayColor','updatedAt','fieldSettings','viewIndexes','AFTER','_permissionService','_fastSortRows','PAST_7_DAYS','387000MYvFjX','base.command.update-base-field','Todo','IS_NOT','base.command.move-base-view','projection','rows','ruleId','invalidGroupField','_applier','Table','7fdUiRV','_removeSuperTables','_getSystemFieldValue','reduce','attachments','[BaseProjectionService]:\x20missing\x20view\x20\x22','check','$1\x20','custom','setFieldPermission','normalize','createRecord','__UNIVER_BASE_PERF__','dependencyFieldId','_deleteAttachmentResources','_resolveGalleryCardFieldIds','notContains',',,,\x22B\x22','invalidField','get','_buildKanban','progressFieldId','[BaseCommandService]:\x20cannot\x20delete\x20table.','_viewPermissions','End\x20date','univer.basePerf','clearBasePermission','Clear','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_initDependencies','base.command.move-base-field','fieldIndex','join','clear','[BaseCommandService]:\x20cannot\x20create\x20record.','recordPatch','_materializeGroups','BaseProjection.getProjection','recordId','localeCompare','False','timeslotSize','missingField','_resolveKanbanCoverFieldId','updateViewConfig','unitWidth','_config','[BaseCommandService]:\x20record-id\x20is\x20reserved.','Rating','syncExecuteCommand','remote','indexOf','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','subtreeEndIndex','_getStructureDirtyTableIds','optionSource','source','Kanban','primaryFieldId','_setAttachmentResources','repeat','text','currencySymbol','columnSettings','Import','base.mutation.apply-base-json1','contains','deleteTable','YESTERDAY','usableAsGanttStart','Link','fromPlainText','from','rowIndexById','UpdatedBy','attachmentSet','\x20has\x20unsupported\x20operator\x20\x22','selfParent','[RecordLink]:\x20target\x20record\x20\x22','tableName','emitPermissionDenied','@univerjs-pro/bases','_ganttBarColor','Calendar','General','_formulaCalculationTriggerService','cell','protocol','allowDangling','direction','BaseField','getAllBases','toLowerCase','_globalRevision','base.command.update-base-record-order','delete','locale','_projectedGroupsCache','MM/DD/YYYY','coverFieldId','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.create-base-view','NumberFormat','setViewFieldVisible','bases-exchange-client.operation.export-base','record/','setViewSort','createTable','includeTime','_isGanttDateField','getOwnPropertyDescriptor','Uncategorized','unique','saveMany','BASE','base.command.update-base-view-config','deletePermissionPoint','columns','Ids','getUTCFullYear','timeZone','-field-name','unitData','card','setRangeValues','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','table','[BaseViewRegistryService]:\x20view\x20type\x20\x22','getSuperTableRegistrations','base.command.update-base-cell','_cellRevisions','createBatchCreateRecordsOp','pushUndoRedo','hierarchy','keys','numfmt','createDeleteRecordsUndoOp','invalidateByOp','recordIds','invalidateByCell','isNot','colorFieldId','data','medium','childType','operand','base.command.set-base-range-values','setRecordPermission','10722330ytZByh','BaseView','record','CreateView','duplicate','_applyFormulaResult','diffValue','Unchecked','getMonth','manual','True','endDateFieldId','[BaseCommandService]:\x20cannot\x20edit\x20table.','MissingRecord','_recordIds','setViewFieldWidth','BOOLEAN','pattern','setViewGroup','base.command.batch-delete-base-records','_getOrderedRecords','base.command.delete-base-record','Gallery','A\x20table\x20with\x20this\x20name\x20already\x20exists.','scale','_rememberTable','_getJson1DirtyData','now','raw','findIndex','EXACT','base.view-registry.service','lastIndex','_buildGrid',':start','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','action','Table\x20name\x20is\x20required.','base-perf-','allowMultiple','depth','_registeredSuperTableNames','color','start','slice','rule','_resolveKanbanGroupFieldId','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','descendPath','_sortRows','duplicateField','setRecordValues','month','Currency','autoIncrement','Checkbox','base.command.create-base-field','_getKanbanConfiguredLanes','set','MissingParent','orderedRecordIds','[BaseFormula]:\x20field\x20\x22','pop','[BaseCommandService]:\x20cannot\x20edit\x20cell.','_kanbanGroupKeys','h24','Checked','registerRuleModel','targetTableId','YYYY/MM/DD','trigger','BaseJson1.json1Apply','_clearObjectEdit','Failed\x20to\x20create\x20update\x20cell\x20operation:','parentRecordId','_groupsCacheKey','max','disposeWithMe','rootRecordIds','every','long','_injector','group','Progress','getDependencies','patches','_initialize','renameTable','beforeCommandExecuted','base-range-values-v1','descend','validateFormula','tableId','measure','split','codePointAt','url','gridViewId','getPermissionPoint','_filterRows','system','getUTCDate','yyyy/mm/dd','hidden','cellData','BaseTable','base.command.duplicate-base-field','canEditCell','[BaseCommandService]:\x20field\x20\x22','_withModifiedSystemValues','en-US','_viewRowsCacheKey','_clearUnit','base.command.set-base-record-values','showFieldNames','values','edit','BaseRecord','_factory','resolvedOptions','Status','name','fieldOrder','entries','#14b8a6','cellRevision','Person','exceptions','limit','kind','displayFieldId','col','lessThanOrEqual','_baseSyncDisposables','renameFormulaUnitReferences','_cacheKey','_isCalendarDateField','conditional','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_viewRevisionKey','push','BASE_OBJECT_PERMISSION_PLUGIN','base.command.set-base-view-filter','base.command.batch-create-base-records','_tableBaseIds','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','getSnapshot','_canEdit','compose','week','invertWithDoc','CreatedBy','setConfig','subType','UNIVER_BASE','_getCachedProjection','_recordPermissions','objectType','[BaseField]:\x20invalid\x20person\x20value.','error','insertOp','_onCommandExecuted','validate','createCreateFieldOp','user','quarter','_setCachedProjection','invalid','_formulaSyncQueue','canEditRecord','params','lessThan','createViewId','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','multiple','base.viewType.gallery','undefined','average','date','invalidateByView','row','hourCycle','1181502QRUPLq','BaseProjection.filterAndSortRows','deleteField','path','_setFormulaFieldCells','COLUMN','Group','_runtimeContext','objectId','weekdays','fieldIds','maxDepth','updateRecordOrder','setBaseName','createUpdateCellOp','sum','recordOrder','includeRecords','find','_normalizeGanttConfig','includes','_createNumberingFieldValuePatches','finally','calendar','test','workingDays','dashboard/','manageView','getBase','formula','GREATER_THAN','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','toFixed','BaseCommand.createBatchCreateRecordsOp','has','startDateFieldId','defaultValue','colId','invalidReasonByRecordId','_isAllDayGanttDateRange','repairViewConfig','removeOp','clearUnit','[BaseCommandService]:\x20invalid\x20field\x20definition.','showTodayLine','format','_replaceOptional','_deleteRecordsBaseOp','moveView','forValue','_findKanbanGroupField','index','MUTATION','_plugins','CreatedAt','startsWith','TOMORROW','number','some','_setObjectEdit','_getHierarchyIndex','_executeSuperTableMutationWhileActive','base.command.delete-base-view','attachment','HH:mm','iterator','base.command.','executeCommand','remove','_rowTransformCacheSegment','[BaseHierarchy]:\x20','Redo','sortedView','width','greaterThan','createRecords','object','empty','primaryFieldName','spaceComma','globalRevision','column','create-view','Cycle','Number','_kanbanLaneTitle','base.field-registry.service','relationRole','getTypeOfUnitDisposed$','_groupCellInvalidations','allowNegative','unitId',',,\x22M\x22','attachment-','afterFieldId','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','createRegExpFromSafeFragment','Add','canCreateRecord','label','recordNamePrefix','MultiSelect','toPlainText','base.command.create-base-table','code','_dataSyncPrimaryController','colIndex','base.command.set-base-view-field-order','base.viewType.calendar','field','_resolveCardTitleFieldId','separatorStyle','pickerFieldIds','cardLayout','rowIndex','_patchCachedProjectedRows','REMOTE_BASES_PLUGIN','canCreateField','_enqueueFormulaSync','facade','packageName','_formulaService','setTablePermission','_cellInvalidations','base.command.set-base-view-field-width','map','_registerUnitPermissionPoints','_T_','_resolveBaseId','redo','_viewRevisions','[BaseCommandService]:\x20cannot\x20create\x20table.','flatMap','this-row','_getTablesToNormalize','_canUseFastSort','_projectedRowsCache','bases.fieldConfig.linkPlaceholder','getFullYear','ena','invertOp','changed','Phone','applyOp','getTypeOfUnitAdded$','filled','\x20has\x20unsupported\x20date\x20mode\x20\x22','replace','_bumpTableRevision','_getTable','syncUnit','_views','defineProperty','changeFieldType','_cellInvalidationsTouchFields','getAffectedRanges','tables','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','off','RecordLink','createSetRecordValuesOp','canDeleteField','createField','resolve','pluginName','isFinite','_fieldRegistry','spacePeriod','THIS_WEEK','_createNumberingAllocator','fieldName','\x22\x20with\x20field\x20type\x20\x22','baseRows','NEXT_7_DAYS','h12','kanban','useThousands','_instanceService','_buildCalendar','strategies','snapshot','option-','base.command.update-base-kanban-config','onStarting','day','conjunction','score','reason','addPermissionPoint','userID','ascend','[BaseHierarchy]:\x20field\x20\x22','setViewFilter','view','NEXT_30_DAYS','usableAsGanttEnd','_tableRevisions','table/','BEFORE','getUnit','240390EOLHYe','assign','fromEntries','updatedBy','short','base.mutation.','flat','5hlDvIn','_commandService','compress','exception-','toLocaleString','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','[BaseField]:\x20invalid\x20email\x20value.','register','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','beforeViewId','abs','_scheduleSuperTableSync','base.command.set-base-view-sort','base.command.duplicate-base-record','IBaseCellData.ensureTableCellLayout','_initCommands','_projectionCache','[BaseCommandService]:\x20cannot\x20delete\x20record.','setSnapshot','person','COMMAND','_normalizeCellValue','hostAnchorId','save','deleteRecords','tableRevision','majorHeaders','IS_EMPTY','conditions','revision','small','_applyingFormulaResults','oldParentRecordId','setRules','subscribe','createSuperTableReference','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','createUnit','_resolveKanbanCardFieldIds','base.viewType.gantt','_materializeFormulaTableNames','Base','major-','base.command.set-base-view-field-visible','mode','embed-ui','onCommandExecuted','FORCE_STRING','selectField','operator','DESC','tryMaterializeSnapshot','6jzmXdX','base.command.create-base-child-record','general','displayColor',':end','_patchProjectedRowsForCellInvalidations','level','thread-comment.command.','prototype','search','_projectTableRows','_isAllowedKanbanGroupField','1340IGTckn','_buildGantt','call','blue','replaceOp','FieldId','exists','PAST_30_DAYS','_isKanbanGroupField','write','UNIVER_EMBED_BASES_TABLE','type','missingRecord','basePerf','cardSize','childUnitId','CONTAINS','unshift','canEditField','config','WriteCursor','Undo','titleFieldId','editable','UpdatedAt','createBase','toString','_normalizeCalendarConfig','Base\x20','NOT_CONTAINS','Email','BaseProjection.projectGroups','795392LoMFsy','Empty','[BaseCommandService]:\x20cannot\x20edit\x20field.','canCreateTable','import','isArray','deepClone','abbreviation','formulaName','resources','doing','_basePermissions','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','valid','min','add','_initRegistries','usableAsCardCover','_scheduledSuperTableSyncs','_getTableRevision','cycle','boolean','_createSystemFieldValuePatches','viewId','version','base.command.move-base-hierarchy-record','displayText','Comment','_formulaCalculationSessionService','rules','Name','parentByRecordId','_normalizeGalleryConfig','renameView','\x22\x20is\x20not\x20registered.','status','description','Text','deleteRecord','_getAllBaseDependencyTreeCacheMap','year','-record-','invalidGanttEndField','BaseJson1.cloneForOp','registerView','canDeleteRecord','unknown','undo','children','_syncSuperTables','beforeFieldId','fromCollab','_getViewRevision','_syncBaseUnit','_canEditTable','UTC','Start\x20date','Grid','function','groupFieldId','views','editCell','[BaseField]:\x20invalid\x20progress\x20value.','info','fromChangeset','MMM\x20D,\x20YYYY','afterViewId','options','base.command.create-base-record','[BaseField]:\x20invalid\x20date\x20value.','_matchesGanttColorRule','clearTablePermission','filter','parentFieldName','moveField','compare','workingDaysOnly','order','isInteger','embedId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','Parent','#FDE68A','deleteView','_projectGroups','base-snapshot-v1','_getCurrentUserId','BaseJson1.normalizeTables','_initDataSync','BaseProjection.projectTableRows','setPoint','\x20has\x20unsupported\x20target\x20\x22','bases.fieldConfig.textPlaceholder','default','SortedView','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','frozenFieldCount','gantt','_getAllTableIds','bases.remote.config','DD/MM/YYYY','base-perf','isNaN','_groupConfigCacheSegment','_kanbanLaneColor','getAllPermissionPoint','thread-comment.mutation.','title','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','trim','[BaseField]:\x20invalid\x20multi-value\x20reference.','_calendarEventColor','_toDirtyRangePatch','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','canDeleteTable','getStructuredDependencies','#,##0','getAllUnitsForType','then','getTypePlugin','_isNonEmptyCellValue','changes','initializeUnit','MaxDepth','isEmpty','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','policy','end','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','createdBy','target','Delete','_groupProjectionFieldIds','clearViewPermission','_isColorfulKanbanGroupField','dispose','IS_NOT_EMPTY','registerCommand','href','Gantt','sort','_resolveCalendarDateFieldId','base.mutation.set-permission-rules','Done','_assertFieldDefinition','none','commaPeriod','Remote','tableOrder','INIT','duplicateRecord','updateCell','conditionalColoring','leftPaneCollapsed','\x22\x20is\x20referenced\x20by\x20','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','base.command.set-permission','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','getUnitType','[BaseCommandService]:\x20cannot\x20edit\x20record.','orderKey','valueOf','base.command.change-base-field-type','key','decorate','focusUnit','count','getTime','h:mm\x20a','viewOrder','BaseDashboard','usableAsCalendarDate','_resolveGalleryCoverFieldId','nodes','regenerateViewIds','1.2.0','depthByRecordId','matchAll','readonly','_apply','createdAt','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','Formula','result','SingleSelect','#,##0.00','updateField','local','round','createCreateRecordOp','base.command.update-base-view-conditional-color-rules','decimalPlaces','_projectRows','http:','_resolveGanttDateFieldId','108438dgwhTS','\x20cannot\x20use\x20operator\x20\x22','done','_tablePermissions','value','LAST_MONTH','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','_activeDirtyManagerService','_check','formatToParts','toPrimitive','Doing','all','#16a34a','InvalidField','leftPaneWidth','getUnitId','_getCellRevision','endsWith','periodComma','NUMBER','_filterSortFieldIds','groups','Date1900','1500984rNkvqE','invalidateByField','invalid-characters','_createRecordWithDefaults','_createNumberingAllocators','hasOwnProperty','_projectFields','_title','_univerInstanceService','base.command.rename-base-view','registerCtorForType','createDefaultConfig','[RecordLink]:\x20field\x20config\x20is\x20invalid.','members','delete-view','base.fieldType.','getCapabilities','dateMode','_normalizeCalendarDisplayColor','too-long'];_0x2357=function(){return _0x337978;};return _0x2357();}const Xr=new Set([_0x19bf94[_0x354fcb(0x1ba)],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x19e)]]);function Zr(_0x4778b1){const _0x47b5ef=_0x354fcb;let _0x10ff0f=_0x4778b1['fields'][_0x4778b1[_0x47b5ef(0x4cf)]];if((!_0x10ff0f||_0x10ff0f[_0x47b5ef(0x1cb)]!==!0x0&&_0x10ff0f['id'][_0x47b5ef(0x4f1)]()!=='id'&&_0x10ff0f[_0x47b5ef(0x1e0)][_0x47b5ef(0x3bc)]()[_0x47b5ef(0x4f1)]()!=='id')&&_0x10ff0f)return _0x10ff0f['id'];for(let _0x4eb0c0 of _0x4778b1[_0x47b5ef(0x1e1)]){let _0x51d820=_0x4778b1['fields'][_0x4eb0c0];if(_0x51d820&&_0x51d820['id']!==_0x4778b1[_0x47b5ef(0x4cf)]&&_0x51d820[_0x47b5ef(0x1cb)]!==!0x0&&_0x51d820['type']!==_0x19bf94[_0x47b5ef(0x44f)])return _0x51d820['id'];}return _0x4778b1[_0x47b5ef(0x4cf)];}function Qr(_0x238677,_0x37bfa3=[],_0x43ade3=0x5){const _0x229bf1=_0x354fcb;let _0x3d1cd8=new Set(_0x37bfa3[_0x229bf1(0x397)](_0x194139=>!!_0x194139)),_0x3cc58b=[],_0x3c7d62=[];for(let _0x453103 of _0x238677[_0x229bf1(0x1e1)]){let _0x1df681=_0x238677['fields'][_0x453103];_0x1df681&&_0x1df681[_0x229bf1(0x1cb)]!==!0x0&&_0x1df681['type']!==_0x19bf94[_0x229bf1(0x44f)]&&!_0x3d1cd8['has'](_0x1df681['id'])&&(Xr['has'](_0x1df681[_0x229bf1(0x33a)])?_0x3cc58b:_0x3c7d62)[_0x229bf1(0x1f3)](_0x1df681['id']);}return[..._0x3cc58b,..._0x3c7d62][_0x229bf1(0x192)](0x0,_0x43ade3);}function $r(){const _0x1f0379=_0x354fcb;return[{'type':_0x2b4a2c[_0x1f0379(0x388)],'i18nKey':'base.viewType.grid','createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x2b4a2c['Kanban'],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x3c0724=>{const _0x29251b=_0x1f0379;let _0x8b937a=ei(_0x3c0724);return{'groupFieldId':_0x8b937a,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x3c0724['primaryFieldId'],'fieldIds':Qr(_0x3c0724,[_0x3c0724[_0x29251b(0x4cf)],_0x8b937a])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x17ec78=_0x1f0379;throw Error(_0x17ec78(0x472));}},{'type':_0x2b4a2c[_0x1f0379(0x4e8)],'i18nKey':_0x1f0379(0x28a),'createDefaultConfig':_0x2b624a=>{const _0x37478d=_0x1f0379;let _0x3eb9ae=ti(_0x2b624a);return{'startDateFieldId':_0x3eb9ae,'endDateFieldId':ni(_0x2b624a,_0x3eb9ae),'titleFieldId':_0x2b624a['primaryFieldId'],'mode':_0x37478d(0x19b),'timeslotSize':'medium','timeZone':_0x37478d(0x40a),'displayColor':{'type':_0x37478d(0x49d),'color':_0x37478d(0x478)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3167e9=_0x1f0379;throw Error(_0x3167e9(0x4b1));}},{'type':_0x2b4a2c[_0x1f0379(0x3da)],'i18nKey':_0x1f0379(0x316),'createDefaultConfig':_0x1d2e35=>{const _0x2f3905=_0x1f0379;let _0xfc90c4=ti(_0x1d2e35);return{'startDateFieldId':_0xfc90c4,'endDateFieldId':ni(_0x1d2e35,_0xfc90c4)??_0xfc90c4,'titleFieldId':_0x1d2e35[_0x2f3905(0x4cf)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x2f3905(0x49d),'color':_0x2f3905(0x1e3)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x14b5ac=_0x1f0379;throw Error(_0x14b5ac(0x464));}},{'type':_0x2b4a2c[_0x1f0379(0x17c)],'i18nKey':_0x1f0379(0x216),'createDefaultConfig':_0x1fdfd5=>{const _0x23ccbd=_0x1f0379;let _0x4f4bbc=Zr(_0x1fdfd5);return{'coverFieldId':null,'cardLayout':_0x23ccbd(0x445),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x4f4bbc,'coverFieldId':null,'fieldIds':Qr(_0x1fdfd5,[_0x4f4bbc,_0x1fdfd5[_0x23ccbd(0x4cf)]])},'cardSize':_0x23ccbd(0x524)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x163dad=_0x1f0379;throw Error(_0x163dad(0x4f9));}}];}function ei(_0x36e05f){const _0x30c78c=_0x354fcb;var _0x5f0dbb,_0x3872b7,_0x1686d1;let _0x107ea1=_0x36e05f[_0x30c78c(0x1e1)]['map'](_0x5146d0=>_0x36e05f[_0x30c78c(0x480)][_0x5146d0])[_0x30c78c(0x397)](_0x3451cf=>!!_0x3451cf);return((_0x5f0dbb=_0x107ea1['find'](_0x24244e=>_0x24244e['type']===_0x19bf94[_0x30c78c(0x407)]||_0x24244e['type']===_0x19bf94[_0x30c78c(0x283)]||_0x24244e[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x223)]))==null?void 0x0:_0x5f0dbb['id'])??((_0x3872b7=_0x107ea1[_0x30c78c(0x22f)](_0x504ac0=>_0x504ac0[_0x30c78c(0x33a)]===_0x19bf94['Text']))==null?void 0x0:_0x3872b7['id'])??((_0x1686d1=_0x107ea1[_0x30c78c(0x22f)](_0x4497ab=>_0x4497ab['type']===_0x19bf94[_0x30c78c(0x440)]||_0x4497ab['type']===_0x19bf94['CreatedAt']||_0x4497ab[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x347)]))==null?void 0x0:_0x1686d1['id'])??_0x36e05f[_0x30c78c(0x4cf)];}function ti(_0x459957){const _0xbf53c2=_0x354fcb;var _0xd007f3;return((_0xd007f3=_0x459957[_0xbf53c2(0x1e1)][_0xbf53c2(0x29b)](_0x4e3a97=>_0x459957[_0xbf53c2(0x480)][_0x4e3a97])[_0xbf53c2(0x22f)](ri))==null?void 0x0:_0xd007f3['id'])??'';}function ni(_0xe011d3,_0xf1542){const _0x267369=_0x354fcb;var _0xf575e1;return(_0xf575e1=_0xe011d3[_0x267369(0x1e1)][_0x267369(0x29b)](_0x30b005=>_0xe011d3['fields'][_0x30b005])['find'](_0x42944d=>ri(_0x42944d)&&_0x42944d['id']!==_0xf1542))==null?void 0x0:_0xf575e1['id'];}function ri(_0x456cd5){const _0x5b1db5=_0x354fcb;return!!_0x456cd5&&_0x456cd5[_0x5b1db5(0x33a)]===_0x19bf94[_0x5b1db5(0x440)]&&_0x456cd5[_0x5b1db5(0x401)]!==!0x0&&_0x456cd5['system']!==!0x0;}const ii=_0x5d0ae0('base.projection.service'),ai=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94[_0x354fcb(0x19c)],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x440)],_0x19bf94[_0x354fcb(0x253)],_0x19bf94['UpdatedAt'],_0x19bf94[_0x354fcb(0x19e)]]),oi=0x5265c00;let si=class extends _0x1589db{constructor(_0x33e195){const _0x4cdff4=_0x354fcb;super(),this['_fieldRegistry']=_0x33e195,G(this,_0x4cdff4(0x2b5),new Map()),G(this,_0x4cdff4(0x2fd),new WeakMap()),G(this,'_projectedRowsCache',new Map()),G(this,_0x4cdff4(0x456),new Map()),G(this,_0x4cdff4(0x4f6),new Map()),G(this,_0x4cdff4(0x44c),new Map()),G(this,'_globalRevision',0x0),G(this,_0x4cdff4(0x2e2),new Map()),G(this,_0x4cdff4(0x517),new Map()),G(this,_0x4cdff4(0x299),new Map()),G(this,_0x4cdff4(0x2a0),new Map());}[_0x354fcb(0x37b)](_0x1a11a3){const _0x5eb94d=_0x354fcb;return this['_views']['set'](_0x1a11a3[_0x5eb94d(0x33a)],_0x1a11a3),_0x5b4066(()=>this[_0x5eb94d(0x2b5)][_0x5eb94d(0x4f4)](_0x1a11a3['type']));}[_0x354fcb(0x455)](_0x1ab8c6,_0x22a20f,_0xde52f6){const _0x8c2891=_0x354fcb;var _0x2c4748,_0x3509bf,_0x53debf;return I(_0x8c2891(0x4ba),()=>{const _0x8ef8e6=_0x8c2891;let _0x300e95=this[_0x8ef8e6(0x202)](_0x1ab8c6,_0x22a20f,_0xde52f6);if(_0x300e95)return _0x300e95;let _0x4133ef=_0x1ab8c6[_0x8ef8e6(0x2ba)][_0x22a20f],_0x286ce8=_0x4133ef==null?void 0x0:_0x4133ef[_0x8ef8e6(0x38b)][_0xde52f6];if(!_0x4133ef||!_0x286ce8)return this['_setCachedProjection'](_0x1ab8c6,_0x22a20f,_0xde52f6,{'type':_0x8ef8e6(0x20e),'viewType':(_0x286ce8==null?void 0x0:_0x286ce8[_0x8ef8e6(0x33a)])??_0x2b4a2c[_0x8ef8e6(0x388)],'reason':_0x8ef8e6(0x4bf)});let _0x3f2aea;switch(_0x286ce8[_0x8ef8e6(0x33a)]){case _0x2b4a2c['Grid']:_0x3f2aea=this[_0x8ef8e6(0x187)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c[_0x8ef8e6(0x3da)]:_0x3f2aea=this[_0x8ef8e6(0x330)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Kanban']:_0x3f2aea=this[_0x8ef8e6(0x4a9)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Calendar']:_0x3f2aea=this[_0x8ef8e6(0x2d0)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Gallery']:_0x3f2aea=this[_0x8ef8e6(0x441)](_0x4133ef,_0x286ce8);break;default:_0x3f2aea={'type':'invalid','viewType':_0x286ce8[_0x8ef8e6(0x33a)],'reason':_0x8ef8e6(0x4bf)};}return this[_0x8ef8e6(0x20d)](_0x1ab8c6,_0x22a20f,_0xde52f6,_0x3f2aea);},{'tableId':_0x22a20f,'viewId':_0xde52f6,'viewType':(_0x2c4748=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null||(_0x2c4748=_0x2c4748[_0x8c2891(0x38b)][_0xde52f6])==null?void 0x0:_0x2c4748[_0x8c2891(0x33a)],'records':((_0x3509bf=_0x1ab8c6['tables'][_0x22a20f])==null||(_0x3509bf=_0x3509bf[_0x8c2891(0x22d)])==null?void 0x0:_0x3509bf['length'])??Object[_0x8c2891(0x51b)](((_0x53debf=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null?void 0x0:_0x53debf['records'])??{})[_0x8c2891(0x458)]});}[_0x354fcb(0x245)](_0x42df31,_0x348e50,_0x331b93){const _0x161a71=_0x354fcb;var _0x4880c5,_0x166ed3,_0x2de594;let _0x4b855a=_0x42df31[_0x161a71(0x2ba)][_0x348e50],_0x3575f9=_0x4b855a==null?void 0x0:_0x4b855a['views'][_0x331b93];if(!_0x4b855a||!_0x3575f9)throw Error(_0x161a71(0x49a)+_0x331b93+'\x22.');let _0x5c693c=_0x105a18=>!!_0x4b855a['fields'][_0x105a18],_0x28b6c2={..._0x3575f9,'filter':_0x3575f9[_0x161a71(0x397)]?{..._0x3575f9[_0x161a71(0x397)],'conditions':_0x3575f9[_0x161a71(0x397)][_0x161a71(0x309)][_0x161a71(0x397)](_0x2955ee=>_0x5c693c(_0x2955ee[_0x161a71(0x46e)]))}:_0x3575f9['filter'],'sort':(_0x4880c5=_0x3575f9[_0x161a71(0x3db)])==null?void 0x0:_0x4880c5[_0x161a71(0x397)](_0x2cf25a=>_0x5c693c(_0x2cf25a[_0x161a71(0x46e)])),'group':(_0x166ed3=_0x3575f9[_0x161a71(0x1b9)])==null?void 0x0:_0x166ed3['filter'](_0x1fa4ce=>_0x5c693c(_0x1fa4ce['fieldId'])),'fieldOrder':(_0x2de594=_0x3575f9[_0x161a71(0x1e1)])==null?void 0x0:_0x2de594['filter'](_0x5c693c),'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x3575f9[_0x161a71(0x484)]??{})[_0x161a71(0x397)](([_0x224bee])=>_0x5c693c(_0x224bee)))};if(_0x28b6c2[_0x161a71(0x33a)]===_0x161a71(0x2cd)){var _0x211c41;let _0x1f9ec6=_0x28b6c2[_0x161a71(0x342)]??{},_0x48ff08=this[_0x161a71(0x194)](_0x4b855a,_0x28b6c2),_0x3dffcb=this[_0x161a71(0x28c)](_0x4b855a,(_0x211c41=_0x1f9ec6[_0x161a71(0x510)])==null?void 0x0:_0x211c41[_0x161a71(0x345)]);_0x28b6c2[_0x161a71(0x342)]={..._0x1f9ec6,'groupFieldId':_0x48ff08??_0x1f9ec6[_0x161a71(0x38a)],'coverFieldId':this[_0x161a71(0x4c0)](_0x4b855a,_0x1f9ec6),'cardLayout':_0x1f9ec6[_0x161a71(0x28f)]==='compose'?'compose':_0x161a71(0x445),'showFieldNames':_0x1f9ec6[_0x161a71(0x1d9)]!==!0x1,'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x1f9ec6[_0x161a71(0x484)]??{})['filter'](([_0x3f634f])=>_0x5c693c(_0x3f634f))),'columnSettings':_0x1f9ec6[_0x161a71(0x4d4)]??{},'card':{..._0x1f9ec6['card']??{},'titleFieldId':_0x3dffcb,'fieldIds':this[_0x161a71(0x315)](_0x4b855a,_0x28b6c2,_0x48ff08??'',_0x3dffcb)}};}return{'repaired':JSON[_0x161a71(0x449)](_0x28b6c2)!==JSON[_0x161a71(0x449)](_0x3575f9),'view':_0x28b6c2};}[_0x354fcb(0x51e)](){const _0x2d4c00=_0x354fcb;this[_0x2d4c00(0x4f2)]++;}[_0x354fcb(0x520)](_0x53a72e,_0x5c288a,_0x11e80e){const _0x431a21=_0x354fcb;let _0x33e551=this[_0x431a21(0x423)](_0x53a72e)+0x1;this[_0x431a21(0x517)][_0x431a21(0x1a1)](_0x53a72e,_0x33e551);let _0x214821=this['_cellInvalidations'][_0x431a21(0x4a8)](_0x53a72e)??[];_0x214821[_0x431a21(0x1f3)]({'revision':_0x33e551,'recordId':_0x5c288a,'fieldId':_0x11e80e}),this[_0x431a21(0x299)][_0x431a21(0x1a1)](_0x53a72e,_0x214821);}[_0x354fcb(0x42b)](_0x27db65,_0x18e5c9){const _0x1354a3=_0x354fcb;this[_0x1354a3(0x2b2)](_0x27db65);}['invalidateByView'](_0x360d86,_0x10bd2d){const _0x4ffd9e=_0x354fcb;this[_0x4ffd9e(0x2a0)][_0x4ffd9e(0x1a1)](this[_0x4ffd9e(0x1f2)](_0x360d86,_0x10bd2d),this[_0x4ffd9e(0x383)](_0x360d86,_0x10bd2d)+0x1);}['_getCachedProjection'](_0x29e266,_0xad3551,_0x5823ef){const _0x46c317=_0x354fcb;var _0x178ed9;let _0x447e88=(_0x178ed9=this[_0x46c317(0x2fd)]['get'](_0x29e266))==null?void 0x0:_0x178ed9[_0x46c317(0x4a8)](this[_0x46c317(0x1ee)](_0xad3551,_0x5823ef));return _0x447e88&&_0x447e88[_0x46c317(0x26d)]===this[_0x46c317(0x4f2)]&&_0x447e88['tableRevision']===this[_0x46c317(0x362)](_0xad3551)&&_0x447e88[_0x46c317(0x1e4)]===this[_0x46c317(0x423)](_0xad3551)&&_0x447e88['viewRevision']===this[_0x46c317(0x383)](_0xad3551,_0x5823ef)?_0x447e88[_0x46c317(0x48f)]:null;}[_0x354fcb(0x20d)](_0x27db7d,_0x1acded,_0x460ede,_0x373c40){const _0x4fd63e=_0x354fcb;let _0x56fa56=this[_0x4fd63e(0x2fd)][_0x4fd63e(0x4a8)](_0x27db7d);return _0x56fa56||(_0x56fa56=new Map(),this[_0x4fd63e(0x2fd)][_0x4fd63e(0x1a1)](_0x27db7d,_0x56fa56)),_0x56fa56[_0x4fd63e(0x1a1)](this[_0x4fd63e(0x1ee)](_0x1acded,_0x460ede),{'projection':_0x373c40,'globalRevision':this[_0x4fd63e(0x4f2)],'tableRevision':this[_0x4fd63e(0x362)](_0x1acded),'cellRevision':this[_0x4fd63e(0x423)](_0x1acded),'viewRevision':this[_0x4fd63e(0x383)](_0x1acded,_0x460ede)}),_0x373c40;}[_0x354fcb(0x2b2)](_0x707279){const _0x980038=_0x354fcb;this['_tableRevisions']['set'](_0x707279,this[_0x980038(0x362)](_0x707279)+0x1);}[_0x354fcb(0x362)](_0x5f172f){const _0x4a894b=_0x354fcb;return this[_0x4a894b(0x2e2)][_0x4a894b(0x4a8)](_0x5f172f)??0x0;}[_0x354fcb(0x423)](_0x29551e){const _0x5cee30=_0x354fcb;return this[_0x5cee30(0x517)][_0x5cee30(0x4a8)](_0x29551e)??0x0;}[_0x354fcb(0x383)](_0x4b35b9,_0x564b5d){const _0x2bebe3=_0x354fcb;return this[_0x2bebe3(0x2a0)][_0x2bebe3(0x4a8)](this[_0x2bebe3(0x1f2)](_0x4b35b9,_0x564b5d))??0x0;}[_0x354fcb(0x1ee)](_0x465618,_0x16993f){return _0x465618+'\x00'+_0x16993f;}[_0x354fcb(0x1d6)](_0x1bb6ad,_0x4129e4){const _0x28ab0b=_0x354fcb;return _0x1bb6ad+'\x00'+this[_0x28ab0b(0x262)](_0x4129e4);}['_groupsCacheKey'](_0x4e898a,_0x56fcb1,_0x1b832c){const _0x2d9f9f=_0x354fcb;return _0x4e898a+'\x00'+this[_0x2d9f9f(0x262)](_0x56fcb1)+'\x00'+this['_groupConfigCacheSegment'](_0x1b832c);}[_0x354fcb(0x262)](_0x2861e4){const _0x12e424=_0x354fcb;return _0x2861e4?mi({'filter':di(_0x2861e4[_0x12e424(0x397)]),'sort':pi(_0x2861e4[_0x12e424(0x3db)])}):'__all__';}[_0x354fcb(0x3b6)](_0x1a6cd0){const _0x407a9e=_0x354fcb;return mi(_0x1a6cd0['map'](_0xf444e=>({'fieldId':_0xf444e[_0x407a9e(0x46e)],'direction':_0xf444e['direction']??null})));}[_0x354fcb(0x1f2)](_0x90c919,_0x59fc11){return _0x90c919+'\x00'+_0x59fc11;}[_0x354fcb(0x187)](_0x1b9a1f,_0x76ef6e){const _0x38f4f5=_0x354fcb;var _0x38ca48;let _0x304f71=Je(_0x1b9a1f),_0x46a51e=this[_0x38f4f5(0x40f)](_0x1b9a1f,_0x76ef6e),_0x1ca098=(_0x38ca48=_0x76ef6e[_0x38f4f5(0x397)])!=null&&_0x38ca48[_0x38f4f5(0x309)][_0x38f4f5(0x458)]?this[_0x38f4f5(0x40f)](_0x1b9a1f,{..._0x76ef6e,'filter':null}):_0x46a51e,_0x1b7114=nt(this[_0x38f4f5(0x259)](_0x1b9a1f,_0x304f71,_0x76ef6e['id'],_0x1ca098[_0x38f4f5(0x29b)](_0x4f93b4=>_0x4f93b4['recordId'])),_0x1ca098,new Set(_0x46a51e[_0x38f4f5(0x29b)](_0x439557=>_0x439557[_0x38f4f5(0x4bb)])));return{'type':_0x2b4a2c[_0x38f4f5(0x388)],'fields':this[_0x38f4f5(0x430)](_0x1b9a1f,_0x76ef6e),'rows':_0x1b7114[_0x38f4f5(0x490)],'groups':this['_projectHierarchyGroups'](_0x1b9a1f,_0x76ef6e,_0x1b7114[_0x38f4f5(0x490)],_0x1b7114[_0x38f4f5(0x51a)]),'hierarchy':_0x1b7114['hierarchy'],'frozenFieldCount':typeof _0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]==_0x38f4f5(0x256)?_0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]:0x0};}[_0x354fcb(0x259)](_0x2222f4,_0x2d1b0d,_0x38a9c2,_0x49360c){const _0x488dc6=_0x354fcb;let _0x1d7715=_0x2222f4['id']+'\x00'+_0x2d1b0d+'\x00'+_0x38a9c2,_0x1d2765=this[_0x488dc6(0x423)](_0x2222f4['id']),_0x27740f=this['_hierarchyIndexCache']['get'](_0x1d7715);if(_0x27740f&&_0x27740f['globalRevision']===this['_globalRevision']&&_0x27740f[_0x488dc6(0x306)]===this['_getTableRevision'](_0x2222f4['id'])&&_0x27740f['orderedRecordIds']['length']===_0x49360c[_0x488dc6(0x458)]&&_0x27740f[_0x488dc6(0x1a3)][_0x488dc6(0x1b6)]((_0x4aab50,_0x4f3df2)=>_0x4aab50===_0x49360c[_0x4f3df2])){if(_0x27740f['cellRevision']===_0x1d2765&&_0x27740f[_0x488dc6(0x513)]===_0x2222f4)return _0x27740f[_0x488dc6(0x250)];if(!this[_0x488dc6(0x2b8)](_0x2222f4['id'],_0x27740f[_0x488dc6(0x1e4)],_0x1d2765,new Set([_0x2d1b0d])))return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{..._0x27740f,'table':_0x2222f4,'cellRevision':_0x1d2765}),_0x27740f[_0x488dc6(0x250)];}let _0x1842c6=tt(_0x2222f4,_0x2d1b0d,_0x49360c);return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{'table':_0x2222f4,'index':_0x1842c6,'orderedRecordIds':_0x49360c,'globalRevision':this[_0x488dc6(0x4f2)],'tableRevision':this['_getTableRevision'](_0x2222f4['id']),'cellRevision':_0x1d2765}),_0x1842c6;}['_projectHierarchyGroups'](_0x3d740c,_0x1bc281,_0x396e4a,_0x1867d9){const _0x1bfcf3=_0x354fcb;var _0x25aece;if(!((_0x25aece=_0x1bc281[_0x1bfcf3(0x1b9)])!=null&&_0x25aece['length']))return[];let _0x31b1d5=new Map(_0x396e4a[_0x1bfcf3(0x29b)](_0x509472=>[_0x509472[_0x1bfcf3(0x4bb)],_0x509472])),_0x298754=_0x1867d9['rootRecordIds'][_0x1bfcf3(0x2a2)](_0x17e90e=>{const _0x41c302=_0x1bfcf3;let _0x2d1ea7=_0x31b1d5[_0x41c302(0x4a8)](_0x17e90e);return _0x2d1ea7?[_0x2d1ea7]:[];}),_0x244969=this[_0x1bfcf3(0x3a3)](_0x3d740c,_0x1bc281,_0x298754),_0x3a90b5=new Map(_0x1867d9[_0x1bfcf3(0x1a3)]['map']((_0x9e9eee,_0x4647b1)=>[_0x9e9eee,_0x4647b1])),_0x43d328=_0x2a8467=>{const _0x2b57dc=_0x1bfcf3;let _0x36256a=_0x1867d9['nodes'][_0x2a8467],_0x385fa9=_0x3a90b5[_0x2b57dc(0x4a8)](_0x2a8467)??-0x1;return _0x385fa9<0x0||!_0x36256a?[]:_0x1867d9[_0x2b57dc(0x1a3)][_0x2b57dc(0x192)](_0x385fa9,_0x36256a['subtreeEndIndex']+0x1);},_0x3af8cc=_0x17507e=>{const _0x497da9=_0x1bfcf3;var _0x149bb8,_0x3e1c7f;return{..._0x17507e,'recordIds':(_0x149bb8=_0x17507e[_0x497da9(0x37f)])!=null&&_0x149bb8[_0x497da9(0x458)]?_0x17507e[_0x497da9(0x51f)]:_0x17507e[_0x497da9(0x51f)]['flatMap'](_0x43d328),'children':(_0x3e1c7f=_0x17507e['children'])==null?void 0x0:_0x3e1c7f[_0x497da9(0x29b)](_0x3af8cc)};};return _0x244969['map'](_0x3af8cc);}[_0x354fcb(0x4a9)](_0x3da628,_0x7e5b25){const _0x4061bf=_0x354fcb;var _0x3a4a75;let _0x4c5055=this[_0x4061bf(0x194)](_0x3da628,_0x7e5b25),_0x340a3e=_0x4c5055?_0x3da628[_0x4061bf(0x480)][_0x4c5055]:void 0x0;if(!_0x340a3e)return{'type':_0x4061bf(0x20e),'viewType':_0x2b4a2c[_0x4061bf(0x4ce)],'reason':_0x4061bf(0x492),'fieldId':_0x7e5b25[_0x4061bf(0x342)]['groupFieldId']};let _0x5cc3e6=this[_0x4061bf(0x40f)](_0x3da628,_0x7e5b25),_0x3f9e26=this[_0x4061bf(0x430)](_0x3da628,_0x7e5b25),_0x5a441c=_0x7e5b25[_0x4061bf(0x342)]??{},_0x457c3b=this[_0x4061bf(0x28c)](_0x3da628,(_0x3a4a75=_0x5a441c[_0x4061bf(0x510)])==null?void 0x0:_0x3a4a75[_0x4061bf(0x345)]),_0x1c78f3=this[_0x4061bf(0x315)](_0x3da628,_0x7e5b25,_0x340a3e['id'],_0x457c3b),_0x4c7bb1=new Map();if(F(_0x3da628,_0x340a3e['id'])){let _0x5aba63=this[_0x4061bf(0x259)](_0x3da628,_0x340a3e['id'],_0x7e5b25['id'],_0x5cc3e6[_0x4061bf(0x29b)](_0x1b6c71=>_0x1b6c71[_0x4061bf(0x4bb)])),_0x49636e=new Map();return _0x5cc3e6[_0x4061bf(0x461)](_0x2f851e=>{const _0x4cd98f=_0x4061bf;let _0x504761=_0x5aba63[_0x4cd98f(0x36e)][_0x4cd98f(0x4a8)](_0x2f851e[_0x4cd98f(0x4bb)])??null,_0x3915bd=_0x504761??'',_0x40b8d8=_0x504761?_0x3da628[_0x4cd98f(0x45a)][_0x504761]:void 0x0,_0x9fd1f5=_0x49636e['get'](_0x3915bd)??{'key':_0x3915bd,'title':_0x40b8d8?String(yt(_0x3da628,_0x40b8d8['id'],_0x3da628['primaryFieldId'])??_0x504761):this[_0x4cd98f(0x272)](_0x340a3e,_0x3915bd,_0x5a441c),'recordIds':[]};_0x9fd1f5[_0x4cd98f(0x51f)][_0x4cd98f(0x1f3)](_0x2f851e[_0x4cd98f(0x4bb)]),_0x49636e['set'](_0x3915bd,_0x9fd1f5);}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':[],'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this[_0x4061bf(0x4c0)](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]==='compose'?_0x4061bf(0x1fb):_0x4061bf(0x445),'showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':['',..._0x5aba63[_0x4061bf(0x1a3)]][_0x4061bf(0x2a2)](_0x26662f=>{const _0x5bac6b=_0x4061bf;let _0x1de35f=_0x49636e['get'](_0x26662f);return _0x1de35f!=null&&_0x1de35f[_0x5bac6b(0x51f)][_0x5bac6b(0x458)]?[_0x1de35f]:[];})};}return this[_0x4061bf(0x1a0)](_0x340a3e,_0x5a441c)['forEach'](_0x5af4e2=>_0x4c7bb1[_0x4061bf(0x1a1)](_0x5af4e2['key'],{..._0x5af4e2,'recordIds':[]})),_0x5cc3e6[_0x4061bf(0x461)](_0x5ce558=>{const _0x101fa9=_0x4061bf;this[_0x101fa9(0x1a7)](_0x340a3e,_0x5ce558['values'][_0x340a3e['id']])[_0x101fa9(0x461)](_0x2a0c47=>{const _0x55ced2=_0x101fa9;let _0x48ff0a=_0x4c7bb1['get'](_0x2a0c47)??{'key':_0x2a0c47,'title':this[_0x55ced2(0x272)](_0x340a3e,_0x2a0c47,_0x5a441c),'color':this[_0x55ced2(0x3b7)](_0x340a3e,_0x2a0c47,_0x5a441c),'recordIds':[]};_0x48ff0a['recordIds'][_0x55ced2(0x1f3)](_0x5ce558[_0x55ced2(0x4bb)]),_0x4c7bb1[_0x55ced2(0x1a1)](_0x2a0c47,_0x48ff0a);});}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':this[_0x4061bf(0x3a3)](_0x3da628,_0x7e5b25,_0x5cc3e6),'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]===_0x4061bf(0x1fb)?_0x4061bf(0x1fb):'normal','showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':Array['from'](_0x4c7bb1['values']())};}[_0x354fcb(0x194)](_0x526e2a,_0x56a523){const _0x55e4bd=_0x354fcb;var _0x317db2;let _0x4c0015=(_0x317db2=_0x56a523['config'])==null?void 0x0:_0x317db2['groupFieldId'];return _0x4c0015&&this[_0x55e4bd(0x337)](_0x526e2a,_0x4c0015)?_0x4c0015:this[_0x55e4bd(0x24f)](_0x526e2a,_0x1cf316=>this[_0x55e4bd(0x32e)](_0x1cf316));}['_findKanbanGroupField'](_0x53eed0,_0x250ec7){const _0x1016e4=_0x354fcb;for(let _0x4da37c of _0x53eed0[_0x1016e4(0x1e1)]){let _0x29e918=_0x53eed0[_0x1016e4(0x480)][_0x4da37c];if(_0x29e918&&_0x250ec7(_0x29e918))return _0x29e918['id'];}return null;}[_0x354fcb(0x337)](_0x3f2e6e,_0x40e919){const _0x374fe7=_0x354fcb;let _0x2c5eeb=_0x3f2e6e['fields'][_0x40e919];return this[_0x374fe7(0x32e)](_0x2c5eeb)||F(_0x3f2e6e,_0x40e919);}['_isAllowedKanbanGroupField'](_0x4d13e8){const _0x34f97a=_0x354fcb;return!!_0x4d13e8&&(_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x407)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x283)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x4c5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x1e5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x223)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x19e)]);}[_0x354fcb(0x3d5)](_0x1c0026){const _0x3832ed=_0x354fcb;return _0x1c0026[_0x3832ed(0x33a)]===_0x19bf94['SingleSelect']||_0x1c0026['type']===_0x19bf94[_0x3832ed(0x283)];}[_0x354fcb(0x4c0)](_0x576e05,_0x245baa){const _0x110539=_0x354fcb;var _0x3a8e80;let _0x263c65=_0x245baa[_0x110539(0x4f8)]??((_0x3a8e80=_0x245baa[_0x110539(0x510)])==null?void 0x0:_0x3a8e80[_0x110539(0x4f8)])??null;if(!_0x263c65)return null;let _0x37ef5f=_0x576e05[_0x110539(0x480)][_0x263c65];return _0x37ef5f&&this[_0x110539(0x466)](_0x37ef5f)['usableAsCardCover']?_0x37ef5f['id']:null;}[_0x354fcb(0x315)](_0x1d47e8,_0x460f15,_0x5cd33f,_0x49c44e=this['_resolveCardTitleFieldId'](_0x1d47e8,((()=>{const _0x1555b4=_0x354fcb;var _0x3d2408;return(_0x3d2408=_0x460f15[_0x1555b4(0x342)])==null||(_0x3d2408=_0x3d2408[_0x1555b4(0x510)])==null?void 0x0:_0x3d2408[_0x1555b4(0x345)];})()))){const _0x4fa209=_0x354fcb;var _0x58c1a2;let _0x3145b5=_0x460f15[_0x4fa209(0x342)]??{},_0x5ce1b6=(_0x58c1a2=_0x3145b5['card'])!=null&&(_0x58c1a2=_0x58c1a2[_0x4fa209(0x227)])!=null&&_0x58c1a2[_0x4fa209(0x458)]?_0x3145b5[_0x4fa209(0x510)]['fieldIds']:Qr(_0x1d47e8,[_0x49c44e,_0x1d47e8[_0x4fa209(0x4cf)],_0x5cd33f]),_0x4721af=_0x3145b5[_0x4fa209(0x484)]??{};return _0x5ce1b6[_0x4fa209(0x397)](_0x2e6e4f=>{const _0x43e3b9=_0x4fa209;var _0x12cbcb,_0x3a12d3;let _0x3a23d3=_0x1d47e8[_0x43e3b9(0x480)][_0x2e6e4f];return!(!_0x3a23d3||_0x3a23d3[_0x43e3b9(0x1cb)]===!0x0||_0x3a23d3['type']===_0x19bf94[_0x43e3b9(0x44f)]||_0x3a23d3['id']===_0x5cd33f||_0x3a23d3['id']===_0x49c44e||(_0x12cbcb=_0x460f15['fieldSettings'])!=null&&(_0x12cbcb=_0x12cbcb[_0x2e6e4f])!=null&&_0x12cbcb[_0x43e3b9(0x1ce)]||(_0x3a12d3=_0x4721af[_0x2e6e4f])!=null&&_0x3a12d3[_0x43e3b9(0x1ce)]);})[_0x4fa209(0x3db)]((_0x13b0a3,_0x5c79f0)=>{const _0x21e589=_0x4fa209;var _0xbf4cca,_0x10bb11;return(((_0xbf4cca=_0x4721af[_0x13b0a3])==null?void 0x0:_0xbf4cca[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x13b0a3))-(((_0x10bb11=_0x4721af[_0x5c79f0])==null?void 0x0:_0x10bb11[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x5c79f0));});}[_0x354fcb(0x1a0)](_0x41b42b,_0x19affb){const _0x45511a=_0x354fcb;var _0x298fe9;let _0x9949d3=(Array['isArray']((_0x298fe9=_0x41b42b['config'])==null?void 0x0:_0x298fe9[_0x45511a(0x392)])?_0x41b42b[_0x45511a(0x342)][_0x45511a(0x392)]:[])[_0x45511a(0x2a2)]((_0x58c872,_0x394814)=>{const _0x4c3cf9=_0x45511a;if(_0x58c872==null)return[];let _0x12b259=typeof _0x58c872==_0x4c3cf9(0x471)?{'id':_0x58c872,'name':_0x58c872,'color':void 0x0}:_0x58c872,_0x5cf37e=String(_0x12b259['id']??_0x12b259[_0x4c3cf9(0x1e0)]??_0x4c3cf9(0x2d3)+(_0x394814+0x1));return[{'key':_0x5cf37e,'title':String(_0x12b259[_0x4c3cf9(0x1e0)]??_0x12b259['id']??_0x5cf37e),'color':this['_kanbanLaneColor'](_0x41b42b,_0x5cf37e,_0x19affb)}];});return Object[_0x45511a(0x1e2)](_0x19affb[_0x45511a(0x4d4)]??{})['forEach'](([_0x42dd43,_0x56dda4])=>{const _0xff6424=_0x45511a;_0x9949d3[_0xff6424(0x257)](_0x10c6b7=>_0x10c6b7[_0xff6424(0x3f2)]===_0x42dd43)||_0x9949d3[_0xff6424(0x1f3)]({'key':_0x42dd43,'title':this['_isColorfulKanbanGroupField'](_0x41b42b)?_0x56dda4[_0xff6424(0x3ba)]??this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb):this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb),'color':this[_0xff6424(0x3b7)](_0x41b42b,_0x42dd43,_0x19affb)});}),_0x9949d3;}[_0x354fcb(0x1a7)](_0x5c9d32,_0x2b8ff8){const _0x517130=_0x354fcb;let _0x5d4e25=_0x320f7e=>{var _0x2c9f9d;let _0x3cc6c6=_0x320f7e==null?'':String(_0x320f7e);return!_0x3cc6c6||!this['_isColorfulKanbanGroupField'](_0x5c9d32)?_0x3cc6c6:((_0x2c9f9d=Li(_0x5c9d32,_0x3cc6c6))==null?void 0x0:_0x2c9f9d['id'])??_0x3cc6c6;};if(Array['isArray'](_0x2b8ff8)){let _0x5a119c=_0x2b8ff8['map'](_0x5d4e25)[_0x517130(0x397)](_0x3d8027=>_0x3d8027!=='');return _0x5a119c[_0x517130(0x458)]?_0x5a119c:[''];}return[_0x5d4e25(_0x2b8ff8)];}[_0x354fcb(0x272)](_0xf3bb85,_0xa54c9,_0x55c118){const _0x4669b3=_0x354fcb;if(!_0xa54c9)return _0x4669b3(0x504);let _0x28500b=Li(_0xf3bb85,_0xa54c9);return(_0x28500b==null?void 0x0:_0x28500b[_0x4669b3(0x1e0)])??_0xa54c9;}[_0x354fcb(0x3b7)](_0x2f12af,_0x475ebf,_0x399cf7){const _0x2e8b91=_0x354fcb;var _0x230112;if(this[_0x2e8b91(0x3d5)](_0x2f12af))return(_0x230112=Li(_0x2f12af,_0x475ebf))==null?void 0x0:_0x230112[_0x2e8b91(0x190)];}['_buildCalendar'](_0x112f5c,_0x469944){const _0x2244b9=_0x354fcb;let _0x23dc42=this[_0x2244b9(0x34a)](_0x112f5c,_0x469944[_0x2244b9(0x342)]??{}),_0x3595f3=_0x112f5c[_0x2244b9(0x480)][_0x23dc42['startDateFieldId']];if(!_0x3595f3||_0x3595f3['type']!==_0x19bf94[_0x2244b9(0x440)]||_0x3595f3[_0x2244b9(0x401)]===!0x0||_0x3595f3[_0x2244b9(0x1cb)]===!0x0||!this[_0x2244b9(0x466)](_0x3595f3)[_0x2244b9(0x3fa)])return{'type':'invalid','viewType':_0x2b4a2c[_0x2244b9(0x4e8)],'reason':'invalidDateField','fieldId':_0x23dc42[_0x2244b9(0x240)]};let _0x5f0bf0=_0x23dc42[_0x2244b9(0x171)]?_0x112f5c[_0x2244b9(0x480)][_0x23dc42[_0x2244b9(0x171)]]:void 0x0,_0x3a8d7b=this[_0x2244b9(0x40f)](_0x112f5c,_0x469944);return{'type':_0x2b4a2c[_0x2244b9(0x4e8)],'config':_0x23dc42,'fields':this[_0x2244b9(0x430)](_0x112f5c,_0x469944),'rows':_0x3a8d7b,'groups':this[_0x2244b9(0x3a3)](_0x112f5c,_0x469944,_0x3a8d7b),'events':_0x3a8d7b[_0x2244b9(0x2a2)](_0x16dcf3=>{const _0xbc04fd=_0x2244b9;let _0x16a5e4=dn(_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x240)]]);if(!Number[_0xbc04fd(0x2c3)](_0x16a5e4))return[];let _0x21c424=_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42['startDateFieldId']],_0x1d2f8c=_0x23dc42[_0xbc04fd(0x171)]==null?void 0x0:_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x171)]],_0x462f37=_0x23dc42['endDateFieldId']==null?void 0x0:dn(_0x1d2f8c),_0x41a05c=Number[_0xbc04fd(0x2c3)](_0x462f37)?_0x462f37:void 0x0;return[{'recordId':_0x16dcf3[_0xbc04fd(0x4bb)],'title':this[_0xbc04fd(0x431)](_0x112f5c,_0x16dcf3,_0x23dc42[_0xbc04fd(0x345)]),'start':_0x16a5e4,'end':_0x41a05c,'color':this[_0xbc04fd(0x3be)](_0x112f5c,_0x16dcf3,_0x23dc42),'startMs':_0x16a5e4,'endMs':_0x41a05c,'allDay':this['_isAllDayCalendarEvent'](_0x3595f3,_0x5f0bf0,_0x21c424,_0x1d2f8c),'fieldValues':_0x16dcf3[_0xbc04fd(0x1da)]}];})};}[_0x354fcb(0x34a)](_0x3d17cb,_0x12d143){const _0x7cc3cd=_0x354fcb;let _0x58aeac=this[_0x7cc3cd(0x3dc)](_0x3d17cb,_0x12d143['startDateFieldId']),_0x5def45=_0x12d143[_0x7cc3cd(0x171)]&&this[_0x7cc3cd(0x1ef)](_0x3d17cb,_0x12d143[_0x7cc3cd(0x171)])?_0x12d143[_0x7cc3cd(0x171)]:this['_findCalendarDateFieldId'](_0x3d17cb,_0x58aeac)??void 0x0,_0x573b64=_0x12d143[_0x7cc3cd(0x345)]?_0x3d17cb[_0x7cc3cd(0x480)][_0x12d143[_0x7cc3cd(0x345)]]:void 0x0,_0x2c8796=_0x573b64&&_0x573b64[_0x7cc3cd(0x1cb)]!==!0x0&&_0x573b64[_0x7cc3cd(0x33a)]!==_0x19bf94[_0x7cc3cd(0x44f)]?_0x12d143[_0x7cc3cd(0x345)]:_0x3d17cb['primaryFieldId'],_0x73bf5d=_0x12d143[_0x7cc3cd(0x31b)]==='day'||_0x12d143[_0x7cc3cd(0x31b)]===_0x7cc3cd(0x1fc)?_0x12d143[_0x7cc3cd(0x31b)]:_0x7cc3cd(0x19b),_0x357ff7=_0x12d143[_0x7cc3cd(0x4be)]===_0x7cc3cd(0x2ea)||_0x12d143['timeslotSize']===_0x7cc3cd(0x1b7)?_0x12d143['timeslotSize']:'medium',_0x1b0e76=typeof _0x12d143[_0x7cc3cd(0x50d)]==_0x7cc3cd(0x471)&&_0x12d143[_0x7cc3cd(0x50d)][_0x7cc3cd(0x3bc)]()?_0x12d143[_0x7cc3cd(0x50d)]:'local',_0x278035=this[_0x7cc3cd(0x43c)](_0x3d17cb,_0x12d143);return{..._0x12d143,'startDateFieldId':_0x58aeac,'endDateFieldId':_0x5def45,'titleFieldId':_0x2c8796,'mode':_0x73bf5d,'timeslotSize':_0x357ff7,'timeZone':_0x1b0e76,'displayColor':_0x278035,'fieldSettings':Object[_0x7cc3cd(0x2e8)](Object[_0x7cc3cd(0x1e2)](_0x12d143[_0x7cc3cd(0x484)]??{})[_0x7cc3cd(0x397)](([_0x5a9898])=>{const _0x33b671=_0x7cc3cd;let _0x33fc0a=_0x3d17cb[_0x33b671(0x480)][_0x5a9898];return!!(_0x33fc0a&&_0x33fc0a[_0x33b671(0x1cb)]!==!0x0&&_0x33fc0a['type']!==_0x19bf94[_0x33b671(0x44f)]);}))};}[_0x354fcb(0x3dc)](_0x587c79,_0x4c03dd){const _0x5ee6b8=_0x354fcb;return _0x4c03dd&&this[_0x5ee6b8(0x1ef)](_0x587c79,_0x4c03dd)?_0x4c03dd:this[_0x5ee6b8(0x460)](_0x587c79)??_0x4c03dd??'';}[_0x354fcb(0x460)](_0x4f33a3,_0x982623){const _0x583f7f=_0x354fcb;for(let _0x12c171 of _0x4f33a3[_0x583f7f(0x1e1)])if(_0x12c171!==_0x982623&&this[_0x583f7f(0x1ef)](_0x4f33a3,_0x12c171))return _0x12c171;return null;}['_isCalendarDateField'](_0x266bc8,_0x1254ca){const _0x2427e1=_0x354fcb;let _0x3d20d8=_0x266bc8[_0x2427e1(0x480)][_0x1254ca];return!!_0x3d20d8&&_0x3d20d8[_0x2427e1(0x33a)]===_0x19bf94[_0x2427e1(0x440)]&&_0x3d20d8['readonly']!==!0x0&&_0x3d20d8['system']!==!0x0&&this[_0x2427e1(0x466)](_0x3d20d8)[_0x2427e1(0x3fa)];}['_normalizeCalendarDisplayColor'](_0x3c4a32,_0x31a7f1){const _0x3ac245=_0x354fcb;let _0x2c4e35=_0x31a7f1[_0x3ac245(0x326)];if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='selectField'){let _0x1b2004=_0x3c4a32[_0x3ac245(0x480)][_0x2c4e35['fieldId']];if(_0x1b2004&&_0x1b2004['type']===_0x19bf94[_0x3ac245(0x407)])return _0x2c4e35;}if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='custom'&&typeof _0x2c4e35[_0x3ac245(0x190)]==_0x3ac245(0x471)&&_0x2c4e35[_0x3ac245(0x190)][_0x3ac245(0x3bc)]())return{'type':'custom','color':_0x2c4e35[_0x3ac245(0x190)]};if(_0x31a7f1[_0x3ac245(0x522)]){let _0x4d6122=_0x3c4a32['fields'][_0x31a7f1['colorFieldId']];if(_0x4d6122&&_0x4d6122[_0x3ac245(0x33a)]===_0x19bf94[_0x3ac245(0x407)])return{'type':'selectField','fieldId':_0x31a7f1[_0x3ac245(0x522)]};}return{'type':_0x3ac245(0x49d),'color':_0x3ac245(0x478)};}['_calendarEventColor'](_0x184547,_0xb1d363,_0x510452){const _0x3536c8=_0x354fcb;let _0x429c9d=_0x510452['displayColor'];if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x31f)){var _0x1ed0d2;let _0x21551e=_0x184547[_0x3536c8(0x480)][_0x429c9d['fieldId']];if(!_0x21551e)return;let _0x621684=_0xb1d363[_0x3536c8(0x1da)][_0x429c9d[_0x3536c8(0x46e)]],_0x24c6c4=Array[_0x3536c8(0x354)](_0x621684)?_0x621684[0x0]:_0x621684;return _0x24c6c4==null||(_0x1ed0d2=Li(_0x21551e,String(_0x24c6c4)))==null?void 0x0:_0x1ed0d2[_0x3536c8(0x190)];}if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x49d))return _0x429c9d[_0x3536c8(0x190)];}['_isAllDayCalendarEvent'](_0x397915,_0x1823b0,_0x31dc1d,_0x3c3917){const _0x1fbb87=_0x354fcb;var _0x9ccc80,_0x3cdd3d;let _0x5d3a7d=((_0x9ccc80=_0x397915[_0x1fbb87(0x342)])==null?void 0x0:_0x9ccc80[_0x1fbb87(0x501)])===!0x0,_0x47f987=(_0x1823b0==null||(_0x3cdd3d=_0x1823b0[_0x1fbb87(0x342)])==null?void 0x0:_0x3cdd3d['includeTime'])===!0x0;return!_0x5d3a7d&&!_0x47f987;}['_isAllDayGanttDateRange'](_0x5c7488,_0x2eee87){const _0x1250fa=_0x354fcb;var _0xb9c740,_0x2a5dc3;let _0xe57f63=((_0xb9c740=_0x5c7488[_0x1250fa(0x342)])==null?void 0x0:_0xb9c740['includeTime'])===!0x0,_0x2287aa=((_0x2a5dc3=_0x2eee87[_0x1250fa(0x342)])==null?void 0x0:_0x2a5dc3[_0x1250fa(0x501)])===!0x0;return!_0xe57f63&&!_0x2287aa;}[_0x354fcb(0x330)](_0x47acda,_0x22887c){const _0x3f0c29=_0x354fcb;let _0x205b5d=this[_0x3f0c29(0x230)](_0x47acda,_0x22887c[_0x3f0c29(0x342)]),_0x28084e=_0x47acda[_0x3f0c29(0x480)][_0x205b5d['startDateFieldId']];if(!_0x28084e||_0x28084e[_0x3f0c29(0x33a)]!==_0x19bf94[_0x3f0c29(0x440)]||_0x28084e[_0x3f0c29(0x401)]===!0x0||_0x28084e['system']===!0x0||!this[_0x3f0c29(0x466)](_0x28084e)[_0x3f0c29(0x4da)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':'invalidGanttStartField','fieldId':_0x205b5d[_0x3f0c29(0x240)]};let _0x2f7ab0=_0x47acda['fields'][_0x205b5d['endDateFieldId']];if(!_0x2f7ab0||_0x2f7ab0['type']!==_0x19bf94[_0x3f0c29(0x440)]||_0x2f7ab0[_0x3f0c29(0x401)]===!0x0||_0x2f7ab0[_0x3f0c29(0x1cb)]===!0x0||!this[_0x3f0c29(0x466)](_0x2f7ab0)[_0x3f0c29(0x2e1)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':_0x3f0c29(0x379),'fieldId':_0x205b5d['endDateFieldId']};let _0x112615=this[_0x3f0c29(0x244)](_0x28084e,_0x2f7ab0),_0x3d5d4e=this['_projectRows'](_0x47acda,_0x22887c),_0x26fe0d=_0x3d5d4e[_0x3f0c29(0x2a2)](_0x217002=>{const _0x23d776=_0x3f0c29;let _0x47bb7b=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x240)]]),_0x315dbe=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x171)]]);if(!Number['isFinite'](_0x47bb7b)||!Number[_0x23d776(0x2c3)](_0x315dbe))return[];let _0x4e3030=Math[_0x23d776(0x35d)](_0x47bb7b,_0x315dbe),_0x3ad364=Math[_0x23d776(0x1b3)](_0x47bb7b,_0x315dbe),_0x1fd114=_0x205b5d['progressFieldId']==null?void 0x0:Number(_0x217002['values'][_0x205b5d[_0x23d776(0x4aa)]]);return[{'recordId':_0x217002[_0x23d776(0x4bb)],'title':this[_0x23d776(0x431)](_0x47acda,_0x217002,_0x205b5d[_0x23d776(0x345)]),'start':_0x4e3030,'end':_0x3ad364,'color':this[_0x23d776(0x4e7)](_0x47acda,_0x217002,_0x205b5d),'progress':Number[_0x23d776(0x2c3)](_0x1fd114)?_0x1fd114:void 0x0,'workingDayCount':_0x205b5d['workingDaysOnly']?Ti(_0x4e3030,_0x3ad364,_0x205b5d[_0x23d776(0x236)]):void 0x0,'dependencyRecordIds':this[_0x23d776(0x174)](_0x217002['values'][_0x205b5d[_0x23d776(0x4a2)]??''])}];}),_0x41a6b2=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['min'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x1ac70e=>_0x1ac70e['start']))-0x5a*oi):Z(Date[_0x3f0c29(0x181)]()-0x5a*oi),_0xc71828=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['max'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x310d41=>_0x310d41['end']))+0x5b*oi):Z(Date[_0x3f0c29(0x181)]()+0x5b*oi),_0x5d874e=_i(_0x205b5d[_0x3f0c29(0x17e)],_0x41a6b2,_0xc71828,_0x205b5d[_0x3f0c29(0x39b)]?_0x205b5d['workingDays']:void 0x0);return{'type':_0x2b4a2c[_0x3f0c29(0x3da)],'fields':this[_0x3f0c29(0x430)](_0x47acda,{..._0x22887c,'config':_0x205b5d}),'rows':_0x3d5d4e,'groups':this[_0x3f0c29(0x3a3)](_0x47acda,_0x22887c,_0x3d5d4e),'config':_0x205b5d,'dateRangeAllDay':_0x112615,'timeline':{'scale':_0x205b5d[_0x3f0c29(0x17e)],'start':_0x41a6b2,'end':_0xc71828,'unitWidth':_0x5d874e[_0x3f0c29(0x4c2)],'majorHeaders':_0x5d874e[_0x3f0c29(0x307)],'columns':_0x5d874e[_0x3f0c29(0x50a)]},'bars':_0x26fe0d};}['_normalizeGanttConfig'](_0x3f588a,_0x4a3068){const _0x6c2ab1=_0x354fcb;let _0x444cca=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x240)],_0x6c2ab1(0x191)),_0x5e2715=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x171)],'end')||_0x444cca,_0x5875a5=_0x4a3068[_0x6c2ab1(0x345)]?_0x3f588a[_0x6c2ab1(0x480)][_0x4a3068[_0x6c2ab1(0x345)]]:void 0x0,_0x26625f=_0x5875a5&&_0x5875a5[_0x6c2ab1(0x1cb)]!==!0x0&&_0x5875a5['type']!==_0x19bf94[_0x6c2ab1(0x44f)]?_0x4a3068[_0x6c2ab1(0x345)]:_0x3f588a[_0x6c2ab1(0x4cf)],_0x556ea5=_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x1fc)||_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x20c)||_0x4a3068['scale']===_0x6c2ab1(0x377)?_0x4a3068['scale']:_0x6c2ab1(0x19b),_0xdc1230=gi(_0x4a3068[_0x6c2ab1(0x236)]);return{..._0x4a3068,'startDateFieldId':_0x444cca,'endDateFieldId':_0x5e2715,'titleFieldId':_0x26625f,'scale':_0x556ea5,'leftPaneWidth':typeof _0x4a3068['leftPaneWidth']==_0x6c2ab1(0x256)?_0x4a3068[_0x6c2ab1(0x421)]:void 0x0,'leftPaneCollapsed':_0x4a3068[_0x6c2ab1(0x3e8)]===!0x0,'showTodayLine':_0x4a3068[_0x6c2ab1(0x249)]!==!0x1,'displayColor':this[_0x6c2ab1(0x482)](_0x3f588a,_0x4a3068),'fieldSettings':Object['fromEntries'](Object['entries'](_0x4a3068[_0x6c2ab1(0x484)]??{})[_0x6c2ab1(0x397)](([_0x1857a7])=>{const _0x12115c=_0x6c2ab1;let _0x3b49b0=_0x3f588a[_0x12115c(0x480)][_0x1857a7];return!!(_0x3b49b0&&_0x3b49b0['system']!==!0x0&&_0x3b49b0[_0x12115c(0x33a)]!==_0x19bf94[_0x12115c(0x44f)]);})),'workingDaysOnly':_0x4a3068[_0x6c2ab1(0x39b)]===!0x0,'workingDays':_0xdc1230};}['_resolveGanttDateFieldId'](_0x5663dd,_0x21c075,_0x15b9e6){const _0x5a4ad3=_0x354fcb;if(_0x21c075&&this[_0x5a4ad3(0x502)](_0x5663dd,_0x21c075,_0x15b9e6)||_0x21c075)return _0x21c075;for(let _0x47d395 of _0x5663dd[_0x5a4ad3(0x1e1)])if(this[_0x5a4ad3(0x502)](_0x5663dd,_0x47d395,_0x15b9e6))return _0x47d395;return _0x21c075??'';}[_0x354fcb(0x502)](_0x51bdf7,_0x47d0bd,_0x37c2ed){const _0x5c2d24=_0x354fcb;let _0x132ed5=_0x51bdf7['fields'][_0x47d0bd];if(!_0x132ed5||_0x132ed5[_0x5c2d24(0x33a)]!==_0x19bf94['Date']||_0x132ed5['readonly']===!0x0||_0x132ed5['system']===!0x0)return!0x1;let _0x34c971=this[_0x5c2d24(0x466)](_0x132ed5);return _0x37c2ed===_0x5c2d24(0x191)?_0x34c971[_0x5c2d24(0x4da)]:_0x34c971[_0x5c2d24(0x2e1)];}['_normalizeGanttDisplayColor'](_0x53d98c,_0x4b0c7c){const _0x1e421a=_0x354fcb;let _0x52eb73=_0x4b0c7c[_0x1e421a(0x326)];if((_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x31f)){let _0x5c80bf=_0x53d98c['fields'][_0x52eb73[_0x1e421a(0x46e)]];if(_0x5c80bf&&_0x5c80bf[_0x1e421a(0x33a)]===_0x19bf94['SingleSelect'])return _0x52eb73;}return(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x1f0)&&Array['isArray'](_0x52eb73['rules'])?{'type':_0x1e421a(0x1f0),'rules':_0x52eb73[_0x1e421a(0x36c)][_0x1e421a(0x397)](_0x2d663b=>!!_0x53d98c[_0x1e421a(0x480)][_0x2d663b[_0x1e421a(0x46e)]])}:(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x49d)&&typeof _0x52eb73['color']=='string'&&_0x52eb73['color'][_0x1e421a(0x3bc)]()?{'type':'custom','color':_0x52eb73[_0x1e421a(0x190)]}:{'type':_0x1e421a(0x49d),'color':_0x1e421a(0x1e3)};}[_0x354fcb(0x4e7)](_0x299724,_0x4010fb,_0x4d3009){const _0x5680cd=_0x354fcb;let _0x3baa3f=_0x4d3009['displayColor'];if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])==='conditional'){let _0x24559d=_0x3baa3f[_0x5680cd(0x36c)][_0x5680cd(0x22f)](_0x24fee7=>this[_0x5680cd(0x395)](_0x299724,_0x4010fb,_0x24fee7));if(_0x24559d)return _0x24559d[_0x5680cd(0x190)];}if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x31f)){let _0x5dbc7f=_0x299724[_0x5680cd(0x480)][_0x3baa3f[_0x5680cd(0x46e)]];if(_0x5dbc7f){var _0x2b8c16;let _0x2c27f4=_0x4010fb['values'][_0x3baa3f[_0x5680cd(0x46e)]],_0x174df3=Array[_0x5680cd(0x354)](_0x2c27f4)?_0x2c27f4[0x0]:_0x2c27f4,_0xe5e634=_0x174df3==null||(_0x2b8c16=Li(_0x5dbc7f,String(_0x174df3)))==null?void 0x0:_0x2b8c16['color'];if(_0xe5e634)return _0xe5e634;}}return(_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x49d)?_0x3baa3f[_0x5680cd(0x190)]:'#14b8a6';}[_0x354fcb(0x395)](_0x2ce437,_0x20360b,_0x35a4c4){const _0x3ab36c=_0x354fcb;let _0x594443=_0x2ce437[_0x3ab36c(0x480)][_0x35a4c4[_0x3ab36c(0x46e)]];return _0x594443?xn(_0x20360b[_0x3ab36c(0x1da)][_0x594443['id']],_0x35a4c4[_0x3ab36c(0x320)],_0x35a4c4[_0x3ab36c(0x526)],_0x594443,{'dateMode':_0x35a4c4[_0x3ab36c(0x43b)]}):!0x1;}[_0x354fcb(0x441)](_0x3474bf,_0x38035c){const _0x940e8e=_0x354fcb;let _0x4ef233=this[_0x940e8e(0x40f)](_0x3474bf,_0x38035c),_0x271dc8=this['_normalizeGalleryConfig'](_0x3474bf,_0x38035c['config']??{}),_0x1ddce2=this['_projectFields'](_0x3474bf,_0x38035c);return{'type':_0x2b4a2c[_0x940e8e(0x17c)],'fields':_0x1ddce2,'rows':_0x4ef233,'groups':this[_0x940e8e(0x3a3)](_0x3474bf,_0x38035c,_0x4ef233),'titleFieldId':_0x271dc8[_0x940e8e(0x510)]['titleFieldId'],'coverFieldId':_0x271dc8[_0x940e8e(0x4f8)],'cardLayout':_0x271dc8['cardLayout']??'normal','showFieldNames':_0x271dc8['showFieldNames']!==!0x1,'visibleCardFieldIds':this[_0x940e8e(0x4a4)](_0x3474bf,_0x38035c,_0x271dc8),'cardSize':_0x271dc8[_0x940e8e(0x33d)]??_0x940e8e(0x524),'cards':_0x4ef233[_0x940e8e(0x29b)](_0x44672b=>({'recordId':_0x44672b[_0x940e8e(0x4bb)],'title':this['_title'](_0x3474bf,_0x44672b,_0x271dc8[_0x940e8e(0x510)]['titleFieldId']),'values':_0x44672b['values']}))};}[_0x354fcb(0x36f)](_0x238ad2,_0x2ee77f){const _0x1c778b=_0x354fcb;let _0x534fc6=_0x2ee77f[_0x1c778b(0x510)]??{'fieldIds':[]},_0x4654d0=this['_resolveCardTitleFieldId'](_0x238ad2,_0x534fc6[_0x1c778b(0x345)]),_0x3b90a9=this[_0x1c778b(0x3fb)](_0x238ad2,_0x2ee77f),_0x31a5c8=_0x2ee77f[_0x1c778b(0x33d)]===_0x1c778b(0x30b)||_0x2ee77f[_0x1c778b(0x33d)]==='large'?_0x2ee77f[_0x1c778b(0x33d)]:_0x1c778b(0x524);return{..._0x2ee77f,'coverFieldId':_0x3b90a9,'cardLayout':_0x2ee77f[_0x1c778b(0x28f)]===_0x1c778b(0x1fb)?'compose':_0x1c778b(0x445),'showFieldNames':_0x2ee77f[_0x1c778b(0x1d9)]!==!0x1,'fieldSettings':Object[_0x1c778b(0x2e8)](Object[_0x1c778b(0x1e2)](_0x2ee77f['fieldSettings']??{})[_0x1c778b(0x397)](([_0x8c2217])=>{const _0x2f5806=_0x1c778b;let _0x530cde=_0x238ad2[_0x2f5806(0x480)][_0x8c2217];return!!(_0x530cde&&_0x530cde[_0x2f5806(0x1cb)]!==!0x0&&_0x530cde[_0x2f5806(0x33a)]!==_0x19bf94[_0x2f5806(0x44f)]);})),'card':{..._0x534fc6,'titleFieldId':_0x4654d0,'coverFieldId':_0x3b90a9,'fieldIds':Array[_0x1c778b(0x354)](_0x534fc6['fieldIds'])?_0x534fc6[_0x1c778b(0x227)]:[]},'cardSize':_0x31a5c8};}[_0x354fcb(0x28c)](_0x4b1d45,_0x3bec48){const _0x27d0c1=_0x354fcb;let _0x3e1201=_0x3bec48?_0x4b1d45['fields'][_0x3bec48]:void 0x0;return _0x3e1201&&_0x3e1201[_0x27d0c1(0x1cb)]!==!0x0&&_0x3e1201[_0x27d0c1(0x33a)]!==_0x19bf94[_0x27d0c1(0x44f)]?_0x3e1201['id']:Zr(_0x4b1d45);}['_resolveGalleryCoverFieldId'](_0x2cbd41,_0x43c12f){const _0x189d08=_0x354fcb;var _0x15984a;let _0xe83033=_0x43c12f[_0x189d08(0x4f8)]??((_0x15984a=_0x43c12f[_0x189d08(0x510)])==null?void 0x0:_0x15984a[_0x189d08(0x4f8)])??null;if(!_0xe83033)return null;let _0x424943=_0x2cbd41[_0x189d08(0x480)][_0xe83033];return _0x424943&&this['_capabilities'](_0x424943)[_0x189d08(0x360)]?_0x424943['id']:null;}[_0x354fcb(0x4a4)](_0x28ace9,_0x3f072d,_0x329fe3){const _0x3dd36a=_0x354fcb;var _0xa1f353,_0x36dbae,_0x348889;let _0x2cd9ad=_0x329fe3[_0x3dd36a(0x484)]??{},_0x3360fd=((_0xa1f353=_0x329fe3[_0x3dd36a(0x510)])==null?void 0x0:_0xa1f353[_0x3dd36a(0x345)])??Zr(_0x28ace9),_0x3a3a4e=_0x329fe3[_0x3dd36a(0x4f8)]??((_0x36dbae=_0x329fe3['card'])==null?void 0x0:_0x36dbae[_0x3dd36a(0x4f8)])??null,_0x349960=(_0x348889=_0x329fe3[_0x3dd36a(0x510)])!=null&&(_0x348889=_0x348889['fieldIds'])!=null&&_0x348889[_0x3dd36a(0x458)]?_0x329fe3[_0x3dd36a(0x510)][_0x3dd36a(0x227)]:Qr(_0x28ace9,[_0x3360fd,_0x3a3a4e,_0x28ace9[_0x3dd36a(0x4cf)]]);return _0x349960[_0x3dd36a(0x397)](_0x5ded64=>{const _0x10cf32=_0x3dd36a;var _0x2ded56,_0x542544;let _0x5ed92e=_0x28ace9['fields'][_0x5ded64];return!(!_0x5ed92e||_0x5ed92e[_0x10cf32(0x1cb)]===!0x0||_0x5ed92e[_0x10cf32(0x33a)]===_0x19bf94[_0x10cf32(0x44f)]||_0x5ed92e['id']===_0x3360fd||_0x5ed92e['id']===_0x3a3a4e||(_0x2ded56=_0x3f072d['fieldSettings'])!=null&&(_0x2ded56=_0x2ded56[_0x5ded64])!=null&&_0x2ded56[_0x10cf32(0x1ce)]||(_0x542544=_0x2cd9ad[_0x5ded64])!=null&&_0x542544[_0x10cf32(0x1ce)]);})[_0x3dd36a(0x3db)]((_0x210bf3,_0x2cfa63)=>{const _0x4e4e5d=_0x3dd36a;var _0x5885e6,_0x10680c;return(((_0x5885e6=_0x2cd9ad[_0x210bf3])==null?void 0x0:_0x5885e6[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x210bf3))-(((_0x10680c=_0x2cd9ad[_0x2cfa63])==null?void 0x0:_0x10680c[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x2cfa63));});}['_projectFields'](_0xe852d2,_0x1b3899){const _0x2d6291=_0x354fcb;var _0x2ef45b;return((_0x2ef45b=_0x1b3899[_0x2d6291(0x1e1)])!=null&&_0x2ef45b[_0x2d6291(0x458)]?_0x1b3899['fieldOrder']:_0xe852d2[_0x2d6291(0x1e1)])[_0x2d6291(0x2a2)](_0xe3533f=>{const _0x20ca51=_0x2d6291;var _0x615e3f;let _0x227916=_0xe852d2[_0x20ca51(0x480)][_0xe3533f],_0x438f72=((_0x615e3f=_0x1b3899[_0x20ca51(0x484)])==null?void 0x0:_0x615e3f[_0xe3533f])??{};return!_0x227916||_0x227916[_0x20ca51(0x1cb)]===!0x0||_0x227916['type']===_0x19bf94[_0x20ca51(0x44f)]||_0x438f72[_0x20ca51(0x1ce)]?[]:[{'id':_0x227916['id'],'name':_0x227916[_0x20ca51(0x1e0)],'description':_0x227916[_0x20ca51(0x373)],'type':_0x227916['type'],'config':_0x227916[_0x20ca51(0x342)],'width':_0x438f72[_0x20ca51(0x266)],'setting':_0x438f72}];});}[_0x354fcb(0x40f)](_0x562d52,_0x1bfc4a){const _0x43d4e0=_0x354fcb;var _0x7f3855;return I('BaseProjection.projectRows',()=>{const _0x207bbf=_0x48d8;var _0x43bc46,_0x3053be;let _0x5b63e3=this[_0x207bbf(0x32d)](_0x562d52),_0x482e95=this[_0x207bbf(0x1d6)](_0x562d52['id'],_0x1bfc4a),_0xd2733b=this[_0x207bbf(0x423)](_0x562d52['id']),_0x4b9bed=this[_0x207bbf(0x456)][_0x207bbf(0x4a8)](_0x482e95);if(_0x4b9bed&&_0x4b9bed[_0x207bbf(0x26d)]===this[_0x207bbf(0x4f2)]&&_0x4b9bed[_0x207bbf(0x306)]===this[_0x207bbf(0x362)](_0x562d52['id'])){if(_0x4b9bed[_0x207bbf(0x1e4)]===_0xd2733b&&_0x4b9bed[_0x207bbf(0x2ca)]===_0x5b63e3)return _0x4b9bed[_0x207bbf(0x490)];if(_0x4b9bed['cellRevision']!==_0xd2733b&&!this['_cellInvalidationsTouchFields'](_0x562d52['id'],_0x4b9bed[_0x207bbf(0x1e4)],_0xd2733b,this[_0x207bbf(0x427)](_0x1bfc4a))){let _0x5b6b19=_0x4b9bed[_0x207bbf(0x490)]===_0x4b9bed['baseRows']?_0x5b63e3:this['_patchCachedProjectedRows'](_0x4b9bed[_0x207bbf(0x490)],_0x5b63e3);if(_0x5b6b19)return this['_projectedViewRowsCache'][_0x207bbf(0x1a1)](_0x482e95,{..._0x4b9bed,'rows':_0x5b6b19,'baseRows':_0x5b63e3,'cellRevision':_0xd2733b}),_0x5b6b19;}}let _0x14dd20=I(_0x207bbf(0x21e),()=>this[_0x207bbf(0x198)](_0x562d52,_0x1bfc4a,this[_0x207bbf(0x1ca)](_0x562d52,_0x1bfc4a,_0x5b63e3)),{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x207bbf(0x33a)],'rows':_0x5b63e3['length'],'filters':(_0x1bfc4a==null||(_0x43bc46=_0x1bfc4a[_0x207bbf(0x397)])==null?void 0x0:_0x43bc46[_0x207bbf(0x309)][_0x207bbf(0x458)])??0x0,'sorts':(_0x1bfc4a==null||(_0x3053be=_0x1bfc4a[_0x207bbf(0x3db)])==null?void 0x0:_0x3053be[_0x207bbf(0x458)])??0x0});return this[_0x207bbf(0x456)][_0x207bbf(0x1a1)](_0x482e95,{'table':_0x562d52,'rows':_0x14dd20,'baseRows':_0x5b63e3,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x207bbf(0x362)](_0x562d52['id']),'cellRevision':_0xd2733b}),_0x14dd20;},{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x43d4e0(0x33a)],'records':((_0x7f3855=_0x562d52[_0x43d4e0(0x22d)])==null?void 0x0:_0x7f3855[_0x43d4e0(0x458)])??Object['keys'](_0x562d52[_0x43d4e0(0x45a)]??{})[_0x43d4e0(0x458)]});}[_0x354fcb(0x32d)](_0x20daca){const _0x1f88ba=_0x354fcb;var _0x353cc1;return I(_0x1f88ba(0x3a8),()=>{const _0x5e2f24=_0x1f88ba;var _0x1518fb;let _0x12aee1=this[_0x5e2f24(0x423)](_0x20daca['id']),_0x8555c9=this[_0x5e2f24(0x2a6)][_0x5e2f24(0x4a8)](_0x20daca['id']);if(_0x8555c9&&_0x8555c9[_0x5e2f24(0x26d)]===this[_0x5e2f24(0x4f2)]&&_0x8555c9['tableRevision']===this[_0x5e2f24(0x362)](_0x20daca['id'])){if(_0x8555c9['cellRevision']===_0x12aee1&&fi(_0x8555c9[_0x5e2f24(0x513)],_0x20daca))return _0x8555c9[_0x5e2f24(0x513)]=_0x20daca,_0x8555c9[_0x5e2f24(0x490)];let _0x298a1b=this[_0x5e2f24(0x328)](_0x20daca,_0x8555c9,_0x12aee1);if(_0x298a1b)return _0x298a1b;}ui(_0x20daca)||L(_0x20daca);let _0x15285d=(_0x1518fb=_0x20daca[_0x5e2f24(0x22d)])!=null&&_0x1518fb['length']?_0x20daca[_0x5e2f24(0x22d)]:hi(_0x20daca[_0x5e2f24(0x45a)]),_0x4d9f00=I('BaseProjection.materializeTableRows',()=>{const _0x2acc2d=_0x5e2f24;let _0x281a81=[];for(let _0x10cc2f of _0x15285d){let _0x5d287c=_0x20daca[_0x2acc2d(0x45a)][_0x10cc2f];if(!_0x5d287c)continue;let _0x442dba={};for(let _0x344093 of _0x20daca[_0x2acc2d(0x1e1)])_0x442dba[_0x344093]=yt(_0x20daca,_0x5d287c['id'],_0x344093);_0x281a81[_0x2acc2d(0x1f3)]({'recordId':_0x5d287c['id'],'values':_0x442dba});}return _0x281a81;},{'tableId':_0x20daca['id'],'records':_0x15285d[_0x5e2f24(0x458)],'fields':_0x20daca[_0x5e2f24(0x1e1)][_0x5e2f24(0x458)]});return this[_0x5e2f24(0x2a6)][_0x5e2f24(0x1a1)](_0x20daca['id'],{'table':_0x20daca,'rows':_0x4d9f00,'rowIndexById':li(_0x4d9f00),'globalRevision':this[_0x5e2f24(0x4f2)],'tableRevision':this[_0x5e2f24(0x362)](_0x20daca['id']),'cellRevision':_0x12aee1}),_0x4d9f00;},{'tableId':_0x20daca['id'],'records':((_0x353cc1=_0x20daca[_0x1f88ba(0x22d)])==null?void 0x0:_0x353cc1[_0x1f88ba(0x458)])??Object[_0x1f88ba(0x51b)](_0x20daca[_0x1f88ba(0x45a)]??{})['length'],'fields':_0x20daca[_0x1f88ba(0x1e1)]['length']});}[_0x354fcb(0x328)](_0x4adf0f,_0x338ed7,_0x6d7ec6){const _0x326f5a=_0x354fcb;let _0x44566d=(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])[_0x326f5a(0x397)](_0x6aa7e1=>_0x6aa7e1[_0x326f5a(0x30a)]>_0x338ed7[_0x326f5a(0x1e4)]&&_0x6aa7e1[_0x326f5a(0x30a)]<=_0x6d7ec6);if(!_0x44566d[_0x326f5a(0x458)])return _0x338ed7['table']===_0x4adf0f?_0x338ed7['rows']:null;let _0x1e7f75=_0x338ed7['rows'],_0x4e4c99=new Map();for(let _0x25b6ec of _0x44566d){let _0x3e6113=_0x4e4c99[_0x326f5a(0x4a8)](_0x25b6ec[_0x326f5a(0x4bb)]);_0x3e6113||(_0x3e6113=new Set(),_0x4e4c99[_0x326f5a(0x1a1)](_0x25b6ec[_0x326f5a(0x4bb)],_0x3e6113)),_0x3e6113[_0x326f5a(0x35e)](_0x25b6ec[_0x326f5a(0x46e)]);}for(let [_0x41a414,_0x58ff41]of _0x4e4c99){if(!_0x4adf0f[_0x326f5a(0x45a)][_0x41a414])return null;let _0x3d547d=_0x338ed7['rowIndexById']['get'](_0x41a414);if(_0x3d547d==null)return null;_0x1e7f75===_0x338ed7[_0x326f5a(0x490)]&&(_0x1e7f75=[..._0x338ed7['rows']]);let _0x3e37be=_0x1e7f75[_0x3d547d],_0x12f57b={..._0x3e37be[_0x326f5a(0x1da)]};_0x58ff41[_0x326f5a(0x461)](_0x5744db=>{_0x12f57b[_0x5744db]=yt(_0x4adf0f,_0x41a414,_0x5744db);}),_0x1e7f75[_0x3d547d]={..._0x3e37be,'values':_0x12f57b};}let _0x540d94={'table':_0x4adf0f,'rows':_0x1e7f75,'rowIndexById':_0x338ed7[_0x326f5a(0x4de)],'globalRevision':this[_0x326f5a(0x4f2)],'tableRevision':this[_0x326f5a(0x362)](_0x4adf0f['id']),'cellRevision':_0x6d7ec6};return this[_0x326f5a(0x2a6)][_0x326f5a(0x1a1)](_0x4adf0f['id'],_0x540d94),this['_cellInvalidations']['set'](_0x4adf0f['id'],(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])['filter'](_0x41b44f=>_0x41b44f['revision']>Math[_0x326f5a(0x1b3)](0x0,_0x6d7ec6-0x100))),_0x1e7f75;}[_0x354fcb(0x291)](_0x536e7b,_0x128357){const _0x5d2ca9=_0x354fcb;let _0x541847=new Map(_0x128357[_0x5d2ca9(0x29b)](_0x116f61=>[_0x116f61['recordId'],_0x116f61])),_0x1e4e6c=!0x1,_0x4afdd3=_0x536e7b[_0x5d2ca9(0x29b)](_0x1935f5=>{const _0x3908b3=_0x5d2ca9;let _0x5372a2=_0x541847['get'](_0x1935f5[_0x3908b3(0x4bb)]);return _0x5372a2?_0x5372a2===_0x1935f5?_0x1935f5:(_0x1e4e6c=!0x0,_0x5372a2):_0x1935f5;});return _0x1e4e6c?_0x4afdd3:_0x536e7b;}[_0x354fcb(0x2b8)](_0x554a14,_0x111c98,_0x39867a,_0x38d6d3){const _0x53e283=_0x354fcb;return!_0x38d6d3['size']||_0x111c98===_0x39867a?!0x1:_0x39867a-_0x111c98>0x100||(this[_0x53e283(0x299)][_0x53e283(0x4a8)](_0x554a14)??[])['some'](_0x5b06eb=>_0x5b06eb[_0x53e283(0x30a)]>_0x111c98&&_0x5b06eb[_0x53e283(0x30a)]<=_0x39867a&&_0x38d6d3['has'](_0x5b06eb[_0x53e283(0x46e)]));}[_0x354fcb(0x427)](_0x59358b){const _0x1e0679=_0x354fcb;var _0x49b6e2,_0x475961;let _0x1bb374=new Set();return _0x59358b==null||(_0x49b6e2=_0x59358b[_0x1e0679(0x397)])==null||_0x49b6e2['conditions'][_0x1e0679(0x461)](_0x59afcf=>_0x1bb374[_0x1e0679(0x35e)](_0x59afcf[_0x1e0679(0x46e)])),_0x59358b==null||(_0x475961=_0x59358b[_0x1e0679(0x3db)])==null||_0x475961[_0x1e0679(0x461)](_0xa6f9e9=>_0x1bb374[_0x1e0679(0x35e)](_0xa6f9e9[_0x1e0679(0x46e)])),_0x1bb374;}['_groupProjectionFieldIds'](_0x1e84ad){const _0x3eb4cf=_0x354fcb;var _0x298f7b;let _0x35ffa7=this[_0x3eb4cf(0x427)](_0x1e84ad);return(_0x298f7b=_0x1e84ad['group'])==null||_0x298f7b['forEach'](_0x17776e=>_0x35ffa7[_0x3eb4cf(0x35e)](_0x17776e[_0x3eb4cf(0x46e)])),_0x35ffa7;}[_0x354fcb(0x1ca)](_0x13ec43,_0x3594fe,_0x8258fd){const _0x245080=_0x354fcb;let _0x52d761=_0x3594fe==null?void 0x0:_0x3594fe[_0x245080(0x397)];if(!(_0x52d761!=null&&_0x52d761[_0x245080(0x309)]['length']))return _0x8258fd;let _0xe9b056=_0x52d761[_0x245080(0x309)][_0x245080(0x397)](_0x27a9eb=>!Ii(_0x27a9eb));return _0xe9b056[_0x245080(0x458)]?_0x8258fd[_0x245080(0x397)](_0x291575=>{const _0x506d25=_0x245080;if(_0x52d761[_0x506d25(0x2d7)]===_0x12daa6['OR']){for(let _0x1a2d50 of _0xe9b056){let _0x1353e3=_0x13ec43['fields'][_0x1a2d50[_0x506d25(0x46e)]];if(!_0x1353e3||this[_0x506d25(0x2c4)][_0x506d25(0x4a8)](_0x1353e3['type'])[_0x506d25(0x397)](_0x291575[_0x506d25(0x1da)][_0x1353e3['id']],_0x1a2d50[_0x506d25(0x320)],_0x1a2d50[_0x506d25(0x526)],_0x1353e3))return!0x0;}return!0x1;}for(let _0x3971c7 of _0xe9b056){let _0x2d5bbc=_0x13ec43[_0x506d25(0x480)][_0x3971c7[_0x506d25(0x46e)]];if(_0x2d5bbc&&!this[_0x506d25(0x2c4)]['get'](_0x2d5bbc[_0x506d25(0x33a)])['filter'](_0x291575[_0x506d25(0x1da)][_0x2d5bbc['id']],_0x3971c7[_0x506d25(0x320)],_0x3971c7[_0x506d25(0x526)],_0x2d5bbc))return!0x1;}return!0x0;}):_0x8258fd;}[_0x354fcb(0x198)](_0x29bc21,_0x4a8b74,_0xc885f6){const _0x1e2a96=_0x354fcb;let _0x4e7303=(_0x4a8b74==null?void 0x0:_0x4a8b74[_0x1e2a96(0x3db)])??[];if(!_0x4e7303['length'])return _0xc885f6;let _0xd3e9d3=_0x4e7303['flatMap'](_0x49341d=>{const _0x294c37=_0x1e2a96;let _0x36f102=_0x29bc21[_0x294c37(0x480)][_0x49341d['fieldId']];return _0x36f102?[{..._0x49341d,'field':_0x36f102}]:[];});return _0xd3e9d3[_0x1e2a96(0x458)]?this['_canUseFastSort'](_0xd3e9d3)?this[_0x1e2a96(0x488)](_0xd3e9d3,_0xc885f6):[..._0xc885f6][_0x1e2a96(0x3db)]((_0x5a52d7,_0x2d50cc)=>{const _0x129a9e=_0x1e2a96;for(let _0x16734f of _0xd3e9d3){let _0x194d57=_0x16734f[_0x129a9e(0x28b)],_0xe9719d=this[_0x129a9e(0x2c4)]['get'](_0x194d57[_0x129a9e(0x33a)])[_0x129a9e(0x39a)](_0x5a52d7[_0x129a9e(0x1da)][_0x194d57['id']],_0x2d50cc[_0x129a9e(0x1da)][_0x194d57['id']],_0x194d57);if(_0xe9719d!==0x0)return _0x16734f[_0x129a9e(0x4ee)]===_0x7258f[_0x129a9e(0x321)]?-_0xe9719d:_0xe9719d;}return 0x0;}):_0xc885f6;}[_0x354fcb(0x2a5)](_0x4d9710){const _0xcf3d22=_0x354fcb;return _0x4d9710[_0xcf3d22(0x1b6)](_0x3c46d3=>ai['has'](_0x3c46d3[_0xcf3d22(0x28b)][_0xcf3d22(0x33a)]));}[_0x354fcb(0x488)](_0x47aaa3,_0x23c674){const _0x236da0=_0x354fcb;return _0x23c674[_0x236da0(0x29b)]((_0x5aa350,_0x8a3454)=>({'row':_0x5aa350,'index':_0x8a3454,'keys':_0x47aaa3[_0x236da0(0x29b)](_0xf2568c=>_0x5aa350[_0x236da0(0x1da)][_0xf2568c['fieldId']])}))[_0x236da0(0x3db)]((_0x1c4516,_0x40874c)=>{const _0x34e3be=_0x236da0;for(let _0x2f5fcc=0x0;_0x2f5fcc<_0x47aaa3[_0x34e3be(0x458)];_0x2f5fcc++){let _0x630521=Fi(_0x1c4516[_0x34e3be(0x51b)][_0x2f5fcc],_0x40874c[_0x34e3be(0x51b)][_0x2f5fcc]);if(_0x630521!==0x0)return _0x47aaa3[_0x2f5fcc][_0x34e3be(0x4ee)]===_0x7258f['DESC']?-_0x630521:_0x630521;}return _0x1c4516[_0x34e3be(0x250)]-_0x40874c['index'];})[_0x236da0(0x29b)](_0x3999cb=>_0x3999cb[_0x236da0(0x21b)]);}[_0x354fcb(0x3a3)](_0x29773e,_0x5b1552,_0x12c958){const _0x2c2803=_0x354fcb;var _0x166fb7;return I(_0x2c2803(0x34e),()=>{const _0x46988a=_0x2c2803;var _0x3d2b37;if(!((_0x3d2b37=_0x5b1552[_0x46988a(0x1b9)])!=null&&_0x3d2b37[_0x46988a(0x458)]))return[];let _0x9a0d54=_0x5b1552['group'][_0x46988a(0x397)](_0x129bce=>_0x29773e['fields'][_0x129bce[_0x46988a(0x46e)]]);if(!_0x9a0d54[_0x46988a(0x458)])return[];let _0x20b42d=this[_0x46988a(0x1b2)](_0x29773e['id'],_0x5b1552,_0x9a0d54),_0x1e57dc=this['_getCellRevision'](_0x29773e['id']),_0xa35966=this[_0x46988a(0x4f6)]['get'](_0x20b42d);if(_0xa35966&&_0xa35966[_0x46988a(0x26d)]===this[_0x46988a(0x4f2)]&&_0xa35966[_0x46988a(0x306)]===this[_0x46988a(0x362)](_0x29773e['id'])){if(_0xa35966[_0x46988a(0x1e4)]===_0x1e57dc&&_0xa35966[_0x46988a(0x490)]===_0x12c958)return _0xa35966['groups'];if(_0xa35966['cellRevision']!==_0x1e57dc&&!this['_cellInvalidationsTouchFields'](_0x29773e['id'],_0xa35966[_0x46988a(0x1e4)],_0x1e57dc,this[_0x46988a(0x3d3)](_0x5b1552)))return this[_0x46988a(0x4f6)][_0x46988a(0x1a1)](_0x20b42d,{..._0xa35966,'rows':_0x12c958,'cellRevision':_0x1e57dc}),_0xa35966[_0x46988a(0x428)];}let _0x4d8f85=new Map();for(let _0x26af6f of _0x12c958){let _0x3053a5=_0x4d8f85,_0x314315='';for(let _0x5d918e=0x0;_0x5d918e<_0x9a0d54['length'];_0x5d918e++){let _0x3798af=_0x9a0d54[_0x5d918e],_0x23bc09=_0x26af6f[_0x46988a(0x1da)][_0x3798af[_0x46988a(0x46e)]],_0x1fac58=ci(_0x23bc09),_0x3649ca=_0x3798af[_0x46988a(0x46e)]+'\x00'+_0x1fac58,_0x3ac2f5=_0x314315+'/'+_0x3798af['fieldId']+':'+_0x1fac58,_0x616c19=_0x3053a5[_0x46988a(0x4a8)](_0x3649ca);_0x616c19||(_0x616c19={'key':_0x1fac58,'value':_0x23bc09,'path':_0x3ac2f5,'label':_0x1fac58||_0x46988a(0x350),'fieldId':_0x3798af[_0x46988a(0x46e)],'level':_0x5d918e,'recordIds':[],'children':new Map()},_0x3053a5[_0x46988a(0x1a1)](_0x3649ca,_0x616c19)),_0x616c19[_0x46988a(0x51f)]['push'](_0x26af6f[_0x46988a(0x4bb)]),_0x3053a5=_0x616c19[_0x46988a(0x37f)],_0x314315=_0x3ac2f5;}}let _0x3b4cd9=this[_0x46988a(0x4b9)](_0x9a0d54,_0x4d8f85,0x0);return this[_0x46988a(0x4f6)]['set'](_0x20b42d,{'table':_0x29773e,'rows':_0x12c958,'groups':_0x3b4cd9,'globalRevision':this[_0x46988a(0x4f2)],'tableRevision':this[_0x46988a(0x362)](_0x29773e['id']),'cellRevision':_0x1e57dc}),_0x3b4cd9;},{'tableId':_0x29773e['id'],'viewId':_0x5b1552['id'],'viewType':_0x5b1552['type'],'rows':_0x12c958[_0x2c2803(0x458)],'groupFields':((_0x166fb7=_0x5b1552['group'])==null?void 0x0:_0x166fb7[_0x2c2803(0x458)])??0x0});}['_materializeGroups'](_0x28d864,_0x232be8,_0xc4681b){const _0x1e4f9d=_0x354fcb;var _0x4cb2c0;let _0x547ed8=Array[_0x1e4f9d(0x4dd)](_0x232be8['values']()),_0x409f79=(_0x4cb2c0=_0x28d864[_0xc4681b])==null?void 0x0:_0x4cb2c0[_0x1e4f9d(0x4ee)];return _0x409f79&&_0x547ed8['sort']((_0x4aa0ba,_0x5da257)=>{const _0x1dfb23=_0x1e4f9d;let _0x1d1f98=_0x4aa0ba['key'][_0x1dfb23(0x4bc)](_0x5da257[_0x1dfb23(0x3f2)]);return _0x409f79===_0x7258f['DESC']?-_0x1d1f98:_0x1d1f98;}),_0x547ed8[_0x1e4f9d(0x29b)](_0x218e7f=>({'key':_0x218e7f[_0x1e4f9d(0x3f2)],'value':_0x218e7f[_0x1e4f9d(0x416)],'path':_0x218e7f[_0x1e4f9d(0x220)],'label':_0x218e7f['label'],'fieldId':_0x218e7f[_0x1e4f9d(0x46e)],'level':_0x218e7f[_0x1e4f9d(0x329)],'recordIds':_0x218e7f['recordIds'],'children':this[_0x1e4f9d(0x4b9)](_0x28d864,_0x218e7f[_0x1e4f9d(0x37f)],_0xc4681b+0x1)}));}[_0x354fcb(0x431)](_0x5d3aac,_0x216c90,_0x4cdb37){const _0x1df03b=_0x354fcb;let _0x4f7076=_0x4cdb37??_0x5d3aac[_0x1df03b(0x4cf)],_0x2a4e13=_0x216c90[_0x1df03b(0x1da)][_0x4f7076];return _0x2a4e13==null?'':String(_0x2a4e13);}[_0x354fcb(0x174)](_0x58f786){const _0x28f600=_0x354fcb;if(Array[_0x28f600(0x354)](_0x58f786))return _0x58f786[_0x28f600(0x29b)](String);if(typeof _0x58f786==_0x28f600(0x471)&&_0x58f786)return[_0x58f786];}['_capabilities'](_0x111d55){const _0x11ece0=_0x354fcb;return this[_0x11ece0(0x2c4)][_0x11ece0(0x4a8)](_0x111d55[_0x11ece0(0x33a)])[_0x11ece0(0x43a)](_0x111d55);}};si=X([Y(0x0,_0x42d70a(mr))],si);function ci(_0x50b6a9){return _0x50b6a9==null?'':String(_0x50b6a9);}function li(_0x1aeb85){const _0x2c2c3c=_0x354fcb;return new Map(_0x1aeb85[_0x2c2c3c(0x29b)]((_0x306cda,_0x7ec07e)=>[_0x306cda[_0x2c2c3c(0x4bb)],_0x7ec07e]));}function ui(_0x12884d){const _0x19ec06=_0x354fcb;return!!(Array[_0x19ec06(0x354)](_0x12884d[_0x19ec06(0x22d)])&&_0x12884d[_0x19ec06(0x290)]&&_0x12884d['rowId']&&_0x12884d[_0x19ec06(0x288)]&&_0x12884d['colId']&&_0x12884d[_0x19ec06(0x1cf)]);}function di(_0x4b31b5){const _0x293b4e=_0x354fcb;let _0x331628=(_0x4b31b5==null?void 0x0:_0x4b31b5[_0x293b4e(0x309)][_0x293b4e(0x397)](_0xde636e=>!Ii(_0xde636e)))??[];return!_0x4b31b5||!_0x331628[_0x293b4e(0x458)]?null:{'conjunction':_0x4b31b5[_0x293b4e(0x2d7)],'conditions':_0x331628[_0x293b4e(0x29b)](_0x4913aa=>({'fieldId':_0x4913aa[_0x293b4e(0x46e)],'operator':_0x4913aa['operator'],'operand':_0x4913aa['operand']}))};}function fi(_0x2e1bce,_0x344a65){const _0x1584c3=_0x354fcb;return _0x2e1bce[_0x1584c3(0x45a)]===_0x344a65[_0x1584c3(0x45a)]&&_0x2e1bce[_0x1584c3(0x22d)]===_0x344a65[_0x1584c3(0x22d)]&&_0x2e1bce[_0x1584c3(0x480)]===_0x344a65[_0x1584c3(0x480)]&&_0x2e1bce[_0x1584c3(0x1e1)]===_0x344a65['fieldOrder']&&_0x2e1bce[_0x1584c3(0x1cf)]===_0x344a65['cellData']&&_0x2e1bce[_0x1584c3(0x290)]===_0x344a65[_0x1584c3(0x290)]&&_0x2e1bce[_0x1584c3(0x474)]===_0x344a65[_0x1584c3(0x474)]&&_0x2e1bce['colIndex']===_0x344a65[_0x1584c3(0x288)]&&_0x2e1bce[_0x1584c3(0x242)]===_0x344a65['colId'];}function pi(_0x5d2d9a){const _0x35da03=_0x354fcb;return _0x5d2d9a!=null&&_0x5d2d9a['length']?_0x5d2d9a[_0x35da03(0x29b)](_0x54e20b=>({'fieldId':_0x54e20b[_0x35da03(0x46e)],'direction':_0x54e20b[_0x35da03(0x4ee)]})):null;}function mi(_0x13c98c){const _0x4b4b2a=_0x354fcb;if(typeof _0x13c98c!='object'||!_0x13c98c)return JSON[_0x4b4b2a(0x449)](_0x13c98c)??_0x4b4b2a(0x217);if(Array['isArray'](_0x13c98c))return'['+_0x13c98c[_0x4b4b2a(0x29b)](mi)[_0x4b4b2a(0x4b5)](',')+']';let _0x4f962b=_0x13c98c;return'{'+Object[_0x4b4b2a(0x51b)](_0x4f962b)['sort']()[_0x4b4b2a(0x29b)](_0x4dd274=>JSON[_0x4b4b2a(0x449)](_0x4dd274)+':'+mi(_0x4f962b[_0x4dd274]))[_0x4b4b2a(0x4b5)](',')+'}';}function hi(_0x2a8175){const _0x2c7cae=_0x354fcb;let _0x1ed9e1=Object[_0x2c7cae(0x1da)](_0x2a8175)['sort']((_0x42b5df,_0x148e8f)=>_0x42b5df[_0x2c7cae(0x3ef)][_0x2c7cae(0x4bc)](_0x148e8f[_0x2c7cae(0x3ef)])),_0x50de4b=[];for(let _0x22663c of _0x1ed9e1)_0x50de4b['push'](_0x22663c['id']);return _0x50de4b;}function gi(_0x301e8b){const _0x5b41a3=_0x354fcb;return{'weekdays':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x226)])&&_0x301e8b[_0x5b41a3(0x226)]['length']?[...new Set(_0x301e8b[_0x5b41a3(0x226)][_0x5b41a3(0x397)](_0x3b7e7d=>Number['isInteger'](_0x3b7e7d)&&_0x3b7e7d>=0x1&&_0x3b7e7d<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x1e6)])?_0x301e8b[_0x5b41a3(0x1e6)]['flatMap'](_0x95cf75=>!_0x95cf75||!Number['isFinite'](_0x95cf75[_0x5b41a3(0x219)])?[]:[{'id':String(_0x95cf75['id']||_0x5b41a3(0x2f0)+_0x95cf75[_0x5b41a3(0x219)]),'date':Z(Number(_0x95cf75['date'])),'name':String(_0x95cf75['name']||'Working\x20day'),'type':_0x95cf75[_0x5b41a3(0x33a)]==='working'?'working':_0x5b41a3(0x2bc)}]):[]};}function _i(_0x1fbf28,_0x129237,_0x50e113,_0x4f6995){let _0x30ba7a=xi(_0x1fbf28,_0x129237),_0x591510=Si(_0x1fbf28,_0x50e113),_0x8c44df=vi(_0x1fbf28,_0x30ba7a,_0x591510,_0x4f6995);return{'scale':_0x1fbf28,'start':_0x30ba7a,'end':_0x591510,'unitWidth':bi(_0x1fbf28),'majorHeaders':yi(_0x1fbf28,_0x30ba7a,_0x591510),'columns':_0x8c44df};}function vi(_0x17ddff,_0x580f27,_0x4a16a1,_0x11481f){const _0x1198fb=_0x354fcb;let _0x291c72=[],_0x75cea0=_0x580f27;for(;_0x75cea0<_0x4a16a1;){let _0x40ac36=_0x17ddff===_0x1198fb(0x20c)?ji(_0x75cea0,0x7):_0x17ddff===_0x1198fb(0x377)?Mi(_0x75cea0,0x1):ji(_0x75cea0,0x1);_0x291c72['push']({'id':_0x17ddff+'-'+_0x75cea0,'label':Ci(_0x17ddff,_0x75cea0,_0x40ac36),'majorLabel':wi(_0x17ddff,_0x75cea0),'start':_0x75cea0,'end':_0x40ac36,'nonWorking':Ei(_0x75cea0,_0x40ac36,_0x11481f)}),_0x75cea0=_0x40ac36;}return _0x291c72;}function yi(_0xb54134,_0x762076,_0x100fe5){const _0x557ec7=_0x354fcb;let _0x5d3328=[],_0x539bb6=_0xb54134===_0x557ec7(0x377)?Ai(_0x762076):ki(_0x762076);for(;_0x539bb6<_0x100fe5;){let _0x1f67ae=_0xb54134===_0x557ec7(0x377)?Ni(_0x539bb6,0x1):Mi(_0x539bb6,0x1);_0x5d3328['push']({'id':_0x557ec7(0x319)+_0x539bb6,'label':_0xb54134===_0x557ec7(0x377)?String(new Date(_0x539bb6)[_0x557ec7(0x50c)]()):Pi(_0x539bb6),'start':_0x539bb6,'end':_0x1f67ae}),_0x539bb6=_0x1f67ae;}return _0x5d3328;}function bi(_0x209815){const _0x11da21=_0x354fcb;switch(_0x209815){case _0x11da21(0x1fc):return 0xac;case _0x11da21(0x20c):return 0xac;case _0x11da21(0x377):return 0x88;default:return 0x56;}}function xi(_0x4ad704,_0x1b392c){const _0x4a0306=_0x354fcb;return _0x4ad704===_0x4a0306(0x377)?Ai(_0x1b392c):_0x4ad704==='quarter'?Oi(_0x1b392c):Z(_0x1b392c);}function Si(_0x35a9f3,_0x24b15e){const _0x4b45fc=_0x354fcb;return _0x35a9f3===_0x4b45fc(0x377)?Ni(Ai(_0x24b15e),0x1):_0x35a9f3===_0x4b45fc(0x20c)?ji(Oi(_0x24b15e),0x7):ji(Z(_0x24b15e),0x1);}function Ci(_0x2a26f5,_0x4e660d,_0x5836c5){const _0x17d921=_0x354fcb;let _0x486c45=new Date(_0x4e660d);return _0x2a26f5===_0x17d921(0x20c)?_0x486c45[_0x17d921(0x1cc)]()+'-'+new Date(_0x5836c5-oi)[_0x17d921(0x1cc)]():_0x2a26f5==='year'?_0x486c45['toLocaleString'](_0x17d921(0x1d5),{'month':_0x17d921(0x2ea),'timeZone':_0x17d921(0x386)}):String(_0x486c45[_0x17d921(0x1cc)]());}function wi(_0x1098b0,_0xb6a90e){const _0x204bc6=_0x354fcb;return _0x1098b0===_0x204bc6(0x377)?String(new Date(_0xb6a90e)[_0x204bc6(0x50c)]()):Pi(_0xb6a90e);}function Ti(_0x386608,_0x369235,_0x582eb9){let _0x2b8c22=gi(_0x582eb9),_0xb70df3=0x0;for(let _0x1eba4b=Z(_0x386608);_0x1eba4b<=Z(_0x369235);_0x1eba4b=ji(_0x1eba4b,0x1))Di(_0x1eba4b,_0x2b8c22)||_0xb70df3++;return _0xb70df3;}function Ei(_0x32765b,_0x260052,_0x210fc3){if(!_0x210fc3)return!0x1;let _0x3d1a34=gi(_0x210fc3);for(let _0x5095ce=Z(_0x32765b);_0x5095ce<_0x260052;_0x5095ce=ji(_0x5095ce,0x1))if(!Di(_0x5095ce,_0x3d1a34))return!0x1;return!0x0;}function Di(_0xf7a951,_0x55d36a){const _0x335225=_0x354fcb;let _0x4ce47a=Z(_0xf7a951),_0x13978f=_0x55d36a[_0x335225(0x1e6)]['find'](_0x2271ba=>Z(_0x2271ba[_0x335225(0x219)])===_0x4ce47a);if(_0x13978f)return _0x13978f[_0x335225(0x33a)]===_0x335225(0x2bc);let _0x38d536=new Date(_0x4ce47a)[_0x335225(0x452)](),_0x133201=_0x38d536===0x0?0x7:_0x38d536;return!_0x55d36a[_0x335225(0x226)][_0x335225(0x231)](_0x133201);}function Z(_0x633eab){const _0x2097e1=_0x354fcb;let _0x4c9261=new Date(_0x633eab);return Date['UTC'](_0x4c9261[_0x2097e1(0x50c)](),_0x4c9261['getUTCMonth'](),_0x4c9261[_0x2097e1(0x1cc)]());}function Oi(_0x3c2ada){const _0x4c00fa=_0x354fcb;let _0x427423=Z(_0x3c2ada),_0x262fed=new Date(_0x427423)[_0x4c00fa(0x452)]();return ji(_0x427423,-(_0x262fed===0x0?0x6:_0x262fed-0x1));}function ki(_0x3b58e7){const _0x4298ac=_0x354fcb;let _0x520478=new Date(_0x3b58e7);return Date[_0x4298ac(0x386)](_0x520478[_0x4298ac(0x50c)](),_0x520478[_0x4298ac(0x450)](),0x1);}function Ai(_0x12b1dd){const _0x3e8467=_0x354fcb;let _0x40f0c9=new Date(_0x12b1dd);return Date[_0x3e8467(0x386)](_0x40f0c9['getUTCFullYear'](),0x0,0x1);}function ji(_0x309724,_0x4b0688){return _0x309724+_0x4b0688*oi;}function Mi(_0x5e331e,_0x2527d6){const _0x703c2b=_0x354fcb;let _0x5534b6=new Date(_0x5e331e);return Date[_0x703c2b(0x386)](_0x5534b6[_0x703c2b(0x50c)](),_0x5534b6['getUTCMonth']()+_0x2527d6,0x1);}function Ni(_0x33f513,_0x34b02a){const _0xf33ca3=_0x354fcb;let _0xb37a58=new Date(_0x33f513);return Date[_0xf33ca3(0x386)](_0xb37a58[_0xf33ca3(0x50c)]()+_0x34b02a,0x0,0x1);}function Pi(_0x4ec50b){const _0x366cf9=_0x354fcb;let _0x154dda=new Date(_0x4ec50b);return _0x154dda[_0x366cf9(0x2f1)]('en-US',{'month':_0x366cf9(0x2ea),'timeZone':'UTC'})+'\x20'+_0x154dda['getUTCFullYear']();}function Fi(_0x400543,_0x365e5c){const _0x56d1a3=_0x354fcb;if(_0x400543==null&&_0x365e5c==null)return 0x0;if(_0x400543==null)return-0x1;if(_0x365e5c==null)return 0x1;if(typeof _0x400543==_0x56d1a3(0x364)||typeof _0x365e5c=='boolean')return Number(_0x400543===!0x0)-Number(_0x365e5c===!0x0);let _0x13a2b5=Number(_0x400543),_0x2f2316=Number(_0x365e5c),_0x3cf090=Number[_0x56d1a3(0x2c3)](_0x13a2b5),_0x2526e2=Number[_0x56d1a3(0x2c3)](_0x2f2316);return _0x3cf090&&_0x2526e2?_0x13a2b5-_0x2f2316:_0x3cf090?0x1:_0x2526e2?-0x1:String(_0x400543)[_0x56d1a3(0x4bc)](String(_0x365e5c));}function Ii(_0x57ada0){const _0x218a6a=_0x354fcb;if(_0x57ada0[_0x218a6a(0x320)]!=='is'&&_0x57ada0[_0x218a6a(0x320)]!==_0x218a6a(0x521))return!0x1;let _0x1382f1=_0x57ada0[_0x218a6a(0x526)];return _0x1382f1==null?!0x0:typeof _0x1382f1==_0x218a6a(0x471)?_0x1382f1[_0x218a6a(0x3bc)]()==='':Array['isArray'](_0x1382f1)?_0x1382f1[_0x218a6a(0x458)]===0x0:!0x1;}function Li(_0x41902d,_0x2ea94f){const _0x4f0822=_0x354fcb;var _0x5c44e9;let _0x452c72=Array[_0x4f0822(0x354)]((_0x5c44e9=_0x41902d['config'])==null?void 0x0:_0x5c44e9['options'])?_0x41902d[_0x4f0822(0x342)]['options']:[];for(let _0x143cf5 of _0x452c72){if(_0x143cf5==null)continue;if(typeof _0x143cf5==_0x4f0822(0x471)){if(_0x143cf5===_0x2ea94f)return{'id':_0x143cf5,'name':_0x143cf5};continue;}let _0x3613ac=_0x143cf5,_0x29ec7d=String(_0x3613ac['id']??_0x3613ac[_0x4f0822(0x1e0)]??''),_0x2d9dab=String(_0x3613ac['name']??_0x3613ac['id']??_0x29ec7d);if(_0x29ec7d===_0x2ea94f||_0x2d9dab===_0x2ea94f)return{'id':_0x29ec7d,'name':_0x2d9dab,'color':_0x3613ac['color']==null?void 0x0:String(_0x3613ac[_0x4f0822(0x190)])};}return null;}let Ri=function(_0x5f22d8){const _0x59715e=_0x354fcb;return _0x5f22d8[_0x59715e(0x52c)]=_0x59715e(0x26f),_0x5f22d8['DeleteView']=_0x59715e(0x438),_0x5f22d8;}({});const Q={'id':_0x354fcb(0x4d6),'type':_0x3e23cf[_0x354fcb(0x251)],'handler'(_0x4df3ac,_0xd147fd){const _0xe66cd2=_0x354fcb;let {unitId:_0x57996a,op:_0x2d5027}=_0xd147fd,_0x2f263c=_0x4df3ac['get'](_0x3414e2)[_0xe66cd2(0x2e5)](_0x57996a,_0x28d752['UNIVER_BASE']);if(!_0x2f263c)return!0x1;let _0x1ea1f2=_0x2f263c[_0xe66cd2(0x1f9)](),_0x48f855=new z(),_0x46f6aa=_0x48f855[_0xe66cd2(0x2b9)](_0x2d5027),_0x94ded4=_0x48f855['applyOp'](_0x1ea1f2,_0x2d5027);return _0x2f263c[_0xe66cd2(0x2ff)](_0x94ded4),zi(_0x94ded4,_0x46f6aa,_0x4df3ac[_0xe66cd2(0x4a8)](ii)),!0x0;}};function zi(_0x5bfffd,_0x47ea27,_0x52940b){const _0xa5050=_0x354fcb;let _0x5e80c1=new Set(),_0x19b578=new Set(),_0x4a1d56=new Set();for(let _0x3bee88 of _0x47ea27){if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x2df)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88['viewId']){let _0x2d8ce6=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x366)];_0x4a1d56[_0xa5050(0x23f)](_0x2d8ce6)||(_0x4a1d56['add'](_0x2d8ce6),_0x52940b[_0xa5050(0x21a)](_0x3bee88['tableId'],_0x3bee88[_0xa5050(0x366)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x28b)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88[_0xa5050(0x46e)]){let _0x4c3640=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x46e)];_0x19b578[_0xa5050(0x23f)](_0x4c3640)||(_0x19b578[_0xa5050(0x35e)](_0x4c3640),_0x52940b['invalidateByField'](_0x3bee88[_0xa5050(0x1c3)],_0x3bee88[_0xa5050(0x46e)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]!==_0xa5050(0x4eb)){_0x52940b[_0xa5050(0x51e)]();return;}let _0x338b35=Bi(_0x5bfffd,_0x3bee88);if(!_0x338b35){_0x52940b[_0xa5050(0x51e)]();return;}let _0x45c174=_0x338b35[_0xa5050(0x1c3)]+'\x00'+_0x338b35[_0xa5050(0x4bb)]+'\x00'+_0x338b35[_0xa5050(0x46e)];_0x5e80c1['has'](_0x45c174)||(_0x5e80c1[_0xa5050(0x35e)](_0x45c174),_0x52940b['invalidateByCell'](_0x338b35['tableId'],_0x338b35['recordId'],_0x338b35[_0xa5050(0x46e)]));}}function Bi(_0x254732,_0x280717){const _0x35eb8a=_0x354fcb;var _0x39036c,_0x1d7d93;if(!_0x280717[_0x35eb8a(0x1c3)])return null;if(_0x280717['recordId']&&_0x280717[_0x35eb8a(0x46e)])return{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x280717[_0x35eb8a(0x4bb)],'fieldId':_0x280717[_0x35eb8a(0x46e)]};if(_0x280717[_0x35eb8a(0x21b)]==null||_0x280717[_0x35eb8a(0x26e)]==null)return null;let _0x14adcd=_0x254732['tables'][_0x280717['tableId']],_0x298dd3=_0x14adcd==null||(_0x39036c=_0x14adcd['rowId'])==null?void 0x0:_0x39036c[_0x280717[_0x35eb8a(0x21b)]],_0x57921e=_0x14adcd==null||(_0x1d7d93=_0x14adcd['colId'])==null?void 0x0:_0x1d7d93[_0x280717[_0x35eb8a(0x26e)]];return!_0x298dd3||!_0x57921e?null:{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x298dd3,'fieldId':_0x57921e};}const Vi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x1ae19d[_0x354fcb(0x27e)](String['raw']`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x1ae19d['createRegExpFromSafeFragment'](String['raw']`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x354fcb(0x310)](_0x2c91e5,_0x577993=_0x2c91e5['id']){const _0x34854c=_0x354fcb;var _0xffab5e;let _0x5c3bdb=((_0xffab5e=_0x2c91e5[_0x34854c(0x22d)])==null?void 0x0:_0xffab5e['length'])??Object[_0x34854c(0x1da)](_0x2c91e5['records'])[_0x34854c(0x458)];return{'sheetId':_0x577993,'titleMap':new Map(_0x2c91e5[_0x34854c(0x1e1)]['map']((_0x4ebb50,_0x553858)=>{const _0x54ff01=_0x34854c;var _0x3b38fa;return[((_0x3b38fa=_0x2c91e5[_0x54ff01(0x480)][_0x4ebb50])==null?void 0x0:_0x3b38fa[_0x54ff01(0x1e0)])??_0x4ebb50,_0x553858];})),'range':{'startRow':0x0,'endRow':Math[_0x34854c(0x1b3)](0x0,_0x5c3bdb-0x1),'startColumn':0x0,'endColumn':Math[_0x34854c(0x1b3)](0x0,_0x2c91e5[_0x34854c(0x1e1)]['length']-0x1)},'showHeader':!0x1};}[_0x354fcb(0x515)](_0x235148,_0x3f4b80){const _0x51c9ff=_0x354fcb;let _0x246cde=[],_0x3f87f3=_0x3f4b80?new Set(_0x3f4b80):null,_0xa7162=_0x49362b(_0x235148);return Object['values'](_0x235148['tables'])['filter'](_0x57f51e=>!_0x3f87f3||_0x3f87f3[_0x51c9ff(0x23f)](_0x57f51e['id']))[_0x51c9ff(0x461)](_0x1aee9c=>{const _0x523319=_0x51c9ff;let _0x3b41ba=this['createSuperTableReference'](_0x1aee9c,_0x1aee9c['id']);_0x246cde[_0x523319(0x1f3)]({'tableId':_0x1aee9c['id'],'tableName':_0xa7162['get'](_0x1aee9c['id']),'reference':_0x3b41ba});}),_0x246cde;}['validateFormula'](_0x1fe83b,_0x300246,_0x383f0f={}){const _0x312be4=_0x354fcb;let _0x504344=_0x1fe83b[_0x312be4(0x3bc)]();if(!_0x504344)return{'valid':!0x0};if(na(_0x504344))return{'valid':!0x1,'reason':_0x312be4(0x3cc)};let _0x54883d=_0x383f0f[_0x312be4(0x2d2)]?_0x49362b(_0x383f0f['snapshot']):void 0x0;for(let _0x507318 of ta(_0x504344)){let _0x2fe195=ua(_0x507318,_0x300246,_0x383f0f[_0x312be4(0x2d2)],_0x54883d);if(!_0x2fe195[_0x312be4(0x513)])return{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20\x22'+_0x507318[_0x312be4(0x4e4)]+_0x312be4(0x3cf)};if(!_0x2fe195[_0x312be4(0x28b)])return{'valid':!0x1,'reason':_0x312be4(0x1a4)+_0x507318['fieldName']+_0x312be4(0x462)};}return{'valid':!0x0};}[_0x354fcb(0x1bb)](_0x4deba6,_0x57f777,_0xf0aeee={}){const _0x2bc94c=_0x354fcb;let _0x4d5527=new Set();for(let _0x4c09f8 of this[_0x2bc94c(0x3c2)](_0x4deba6,_0x57f777,_0xf0aeee))_0x4c09f8[_0x2bc94c(0x1c3)]===_0x57f777['id']&&_0x4d5527[_0x2bc94c(0x35e)](_0x4c09f8[_0x2bc94c(0x46e)]);return Array[_0x2bc94c(0x4dd)](_0x4d5527);}['getStructuredDependencies'](_0x2e722f,_0x21d82f,_0x56e097={}){const _0x4eb733=_0x354fcb;let _0x5a924a=new Map(),_0x1d362d=_0x56e097[_0x4eb733(0x2d2)]?_0x49362b(_0x56e097[_0x4eb733(0x2d2)]):void 0x0;for(let _0x5b1a35 of ta(_0x2e722f)){let _0x43075d=ua(_0x5b1a35,_0x21d82f,_0x56e097[_0x4eb733(0x2d2)],_0x1d362d);if(!_0x43075d['table']||!_0x43075d[_0x4eb733(0x28b)])continue;let _0x259f59=_0x43075d[_0x4eb733(0x513)]['id']+'\x1f'+_0x43075d[_0x4eb733(0x28b)]['id'];_0x5a924a[_0x4eb733(0x1a1)](_0x259f59,{'tableId':_0x43075d['table']['id'],'fieldId':_0x43075d[_0x4eb733(0x28b)]['id']});}return Array[_0x4eb733(0x4dd)](_0x5a924a[_0x4eb733(0x1da)]());}};function Zi(_0x500683,_0x24013c){const _0x154152=_0x354fcb;var _0x56f0fc;let _0x52af76=[],_0x404720=(_0x56f0fc=_0x24013c[_0x154152(0x50f)])==null?void 0x0:_0x56f0fc[_0x500683['id']];return _0x404720&&Object[_0x154152(0x1e2)](_0x404720)[_0x154152(0x461)](([_0x8d2a3c,_0x256b5b])=>{const _0x44ef86=_0x154152;let _0x161627=_0x500683[_0x44ef86(0x2ba)][_0x8d2a3c];if(!_0x161627||!_0x256b5b)return;let _0x3b9c19=L(_0x161627),_0x9587=[];new _0x4bc349(_0x256b5b)[_0x44ef86(0x24e)]((_0x5989fb,_0x3d2d41,_0x4ef79a)=>{const _0x3bf17f=_0x44ef86;let _0x3caafb=Qi(_0x3b9c19,_0x5989fb,_0x3d2d41,_0x4ef79a);_0x3caafb&&_0x9587[_0x3bf17f(0x1f3)](_0x3caafb);}),_0x9587[_0x44ef86(0x458)]&&_0x52af76['push']({'unitId':_0x500683['id'],'tableId':_0x8d2a3c,'patches':_0x9587});}),_0x52af76;}function Qi(_0x1a0f68,_0x5485c4,_0x36ae32,_0x475e03){const _0xcb0de3=_0x354fcb;var _0x185e38,_0x37c58c,_0x579bd9;let _0x1fe4b8=(_0x185e38=_0x1a0f68['rowId'])==null?void 0x0:_0x185e38[_0x5485c4],_0x5aef67=(_0x37c58c=_0x1a0f68[_0xcb0de3(0x242)])==null?void 0x0:_0x37c58c[_0x36ae32];if(!_0x1fe4b8||!_0x1a0f68[_0xcb0de3(0x45a)][_0x1fe4b8]||!_0x5aef67)return null;let _0x12b826=_0x1a0f68['fields'][_0x5aef67];if(!_0x12b826||_0x12b826[_0xcb0de3(0x33a)]!=='formula')return null;let _0x3573c1=String(((_0x579bd9=_0x12b826[_0xcb0de3(0x342)])==null?void 0x0:_0x579bd9[_0xcb0de3(0x23a)])??'')['trim'](),_0x4040d8=(_0x475e03==null?void 0x0:_0x475e03['v'])??null,_0x1cbbfc={'v':_0x4040d8,'t':ea(_0x4040d8),..._0x5485c4===0x0&&_0x3573c1?{'f':_0x3573c1}:{},'si':_0x12b826['id']};return $i(vt(_0x1a0f68,_0x1fe4b8,_0x5aef67),_0x1cbbfc)?null:{'row':_0x5485c4,'col':_0x36ae32,'value':_0x1cbbfc};}function $i(_0x6d42fe,_0x31cb8f){return _0x6d42fe!=null&&Object['is'](_0x6d42fe['v']??null,_0x31cb8f['v']??null)&&_0x6d42fe['t']===_0x31cb8f['t']&&_0x6d42fe['f']===_0x31cb8f['f']&&_0x6d42fe['si']===_0x31cb8f['si'];}function ea(_0x151d30){const _0x395767=_0x354fcb;return typeof _0x151d30==_0x395767(0x256)?_0x149f0a[_0x395767(0x426)]:typeof _0x151d30==_0x395767(0x364)?_0x149f0a[_0x395767(0x176)]:typeof _0x151d30==_0x395767(0x471)?_0x149f0a['STRING']:null;}function ta(_0x65ecc5){const _0x5c82ee=_0x354fcb;let _0x5e6462=ia(_0x65ecc5,()=>''),_0x3378df=new Map(),_0x419c80=_0xe8b97b=>{_0x3378df['set']((_0xe8b97b['tableName']??'')+'\x1f'+_0xe8b97b['fieldName'],_0xe8b97b);};for(let _0x28cfac of _0x5e6462['matchAll'](Ui))_0x419c80({'fieldName':_0x28cfac[0x1],'scope':_0x5c82ee(0x2a3)});_0x5e6462=_0x5e6462['replace'](Wi,(_0x2c9165,_0x13a8a6,_0x386281,_0x13f8f0)=>(_0x419c80({'tableName':_0x13a8a6,'fieldName':_0x13f8f0,'scope':_0x386281[_0x5c82ee(0x4f1)]()===_0x5c82ee(0x523)?_0x5c82ee(0x523):'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Gi,(_0x415582,_0x21f7ef,_0x12c2a4)=>(_0x419c80({'tableName':_0x21f7ef,'fieldName':_0x12c2a4,'scope':'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](qi,(_0x4536d6,_0x57b46e,_0x44ea79,_0x5916f2)=>(_0x419c80({'fieldName':_0x5916f2,'scope':_0x44ea79[_0x5c82ee(0x4f1)]()==='data'?_0x5c82ee(0x523):_0x5c82ee(0x2a3)}),_0x57b46e+'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Ji,(_0x184c07,_0x28744a,_0x1d2b8d)=>(_0x419c80({'fieldName':_0x1d2b8d,'scope':_0x5c82ee(0x2a3)}),_0x28744a+'\x20'));for(let _0x3c85e5 of _0x5e6462[_0x5c82ee(0x400)](Ki))_0x419c80({'tableName':_0x3c85e5[0x1],'fieldName':_0x3c85e5[0x2]});for(let _0x38c8a0 of _0x5e6462[_0x5c82ee(0x400)](Yi))_0x419c80({'fieldName':_0x38c8a0[0x2],'scope':'this-row'});return Array[_0x5c82ee(0x4dd)](_0x3378df[_0x5c82ee(0x1da)]());}function na(_0x48e28e){const _0x5aac00=_0x354fcb;let _0x4d67c1=ia(_0x48e28e,()=>'\x20')[_0x5aac00(0x2b1)](Ui,'\x20')['replace'](Wi,'\x20')[_0x5aac00(0x2b1)](Gi,'\x20')['replace'](qi,_0x5aac00(0x49c))['replace'](Ji,_0x5aac00(0x49c))[_0x5aac00(0x2b1)](Ki,'\x20')['replace'](Yi,_0x5aac00(0x49c));return Vi['test'](_0x4d67c1);}function ra(_0x51a418,_0x128929){return ca(oa(_0x51a418,_0x128929),_0x128929);}function ia(_0x18a6ea,_0x4057f6){return aa(ra(_0x18a6ea,_0x4057f6),_0x4057f6);}function aa(_0x59cd6b,_0x4ceaef){const _0x4e6ca5=_0x354fcb;return _0x59cd6b[_0x4e6ca5(0x2b1)](/"(?:""|[^"])*"/g,_0x4ceaef);}function oa(_0x5b8dbf,_0x4ed800){const _0x306a05=_0x354fcb;return Hi[_0x306a05(0x186)]=0x0,_0x5b8dbf[_0x306a05(0x2b1)](Hi,(_0x2d387d,_0x19f8a5)=>la(_0x5b8dbf,_0x19f8a5)?_0x2d387d:_0x4ed800(_0x2d387d));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1a438a,_0x1a29d0){const _0x2cafba=_0x354fcb;let _0x41c5ab=[];for(sa[_0x2cafba(0x186)]=0x0;;){let _0x4f1140=sa[_0x2cafba(0x467)](_0x1a438a);if(_0x4f1140==null)break;if(la(_0x1a438a,_0x4f1140[_0x2cafba(0x250)]))continue;let _0x4072e8=sa[_0x2cafba(0x186)]-0x1,_0x5c7c4f=0x0;for(let _0x13564d=_0x4072e8;_0x13564d<_0x1a438a[_0x2cafba(0x458)];_0x13564d++)if(_0x1a438a[_0x13564d]==='['&&_0x5c7c4f++,_0x1a438a[_0x13564d]===']'&&(_0x5c7c4f--,_0x5c7c4f===0x0)){_0x41c5ab[_0x2cafba(0x1f3)]({'start':_0x4f1140[_0x2cafba(0x250)],'end':_0x13564d+0x1}),sa[_0x2cafba(0x186)]=_0x13564d+0x1;break;}}if(_0x41c5ab['length']===0x0)return _0x1a438a;let _0x2d7fd0='',_0x5c1959=0x0;for(let _0x4bd938 of _0x41c5ab)_0x2d7fd0+=_0x1a438a[_0x2cafba(0x192)](_0x5c1959,_0x4bd938['start']),_0x2d7fd0+=_0x1a29d0(_0x1a438a[_0x2cafba(0x192)](_0x4bd938[_0x2cafba(0x191)],_0x4bd938[_0x2cafba(0x3ce)])),_0x5c1959=_0x4bd938['end'];return _0x2d7fd0+_0x1a438a[_0x2cafba(0x192)](_0x5c1959);}function la(_0x12f2ce,_0x2cb3a4){let _0x1d8872=!0x1;for(let _0x18475d=0x0;_0x18475d<_0x2cb3a4;_0x18475d++)_0x12f2ce[_0x18475d]==='\x22'&&(_0x1d8872&&_0x12f2ce[_0x18475d+0x1]==='\x22'?_0x18475d++:_0x1d8872=!_0x1d8872);return _0x1d8872;}function ua(_0x21a0d2,_0x513b6e,_0x58e547,_0x3f098c){const _0x1db954=_0x354fcb;let _0x2242b1=da(_0x21a0d2[_0x1db954(0x4e4)],_0x513b6e,_0x58e547,_0x3f098c);return{'table':_0x2242b1,'field':_0x2242b1?Object[_0x1db954(0x1da)](_0x2242b1[_0x1db954(0x480)])['find'](_0xdb584=>_0xdb584['name']===_0x21a0d2[_0x1db954(0x2c8)]):void 0x0};}function da(_0x3f3d4f,_0x15e354,_0x44a674,_0x597ca4){const _0x2b859b=_0x354fcb;if(!_0x3f3d4f)return _0x15e354;if(!_0x44a674){var _0x300f49;let _0x32fdcb=_0x3f3d4f[_0x2b859b(0x4f1)]();return _0x32fdcb===_0x15e354['id']['toLowerCase']()||_0x32fdcb===_0x15e354[_0x2b859b(0x1e0)][_0x2b859b(0x4f1)]()||_0x32fdcb===((_0x300f49=_0x15e354['formulaName'])==null?void 0x0:_0x300f49[_0x2b859b(0x4f1)]())?_0x15e354:void 0x0;}let _0x1817f2=_0x3f3d4f['toLowerCase'](),_0x52b89f=_0x597ca4??_0x49362b(_0x44a674),_0x3e604e=Object[_0x2b859b(0x1da)](_0x44a674[_0x2b859b(0x2ba)])[_0x2b859b(0x397)](_0x5cc984=>{const _0x484325=_0x2b859b;var _0x4523df;return _0x5cc984['id'][_0x484325(0x4f1)]()===_0x1817f2||_0x5cc984[_0x484325(0x1e0)][_0x484325(0x4f1)]()===_0x1817f2||((_0x4523df=_0x52b89f['get'](_0x5cc984['id']))==null?void 0x0:_0x4523df['toLowerCase']())===_0x1817f2||fa(_0x5cc984['id'])[_0x484325(0x4f1)]()===_0x1817f2;});return _0x3e604e['length']===0x1?_0x3e604e[0x0]:void 0x0;}function fa(_0x488e2f){const _0xbd6be9=_0x354fcb;return _0xbd6be9(0x29d)+Array[_0xbd6be9(0x4dd)](_0x488e2f,_0x10d7b5=>{const _0x186ba2=_0xbd6be9;var _0x1ba89f;return/[A-Za-z0-9]/['test'](_0x10d7b5)?_0x10d7b5:'_x'+(((_0x1ba89f=_0x10d7b5[_0x186ba2(0x1c6)](0x0))==null?void 0x0:_0x1ba89f[_0x186ba2(0x349)](0x10))??'0')+'_';})[_0xbd6be9(0x4b5)]('');}const pa=new Xi();function ma(_0x2cea02,_0x1dddaa,_0x4845ad){const _0x4f4907=_0x354fcb;var _0x7fd86c;if(_0x4845ad[_0x4f4907(0x33a)]!==_0x19bf94['Formula'])return!0x0;let _0x54aced=String(((_0x7fd86c=_0x4845ad[_0x4f4907(0x342)])==null?void 0x0:_0x7fd86c[_0x4f4907(0x23a)])??''),_0x5e87e2=_0x2cea02[_0x4f4907(0x1f9)]();return pa['validateFormula'](_0x54aced,_0x5e87e2[_0x4f4907(0x2ba)][_0x1dddaa],{'snapshot':_0x5e87e2})[_0x4f4907(0x35c)];}function $(_0x197eb8,_0x505d41,_0x3608fd){const _0xbde71e=_0x354fcb;let _0x36c746=_0x197eb8[_0xbde71e(0x1f9)]()[_0xbde71e(0x2ba)][_0x505d41];if(!_0x36c746)return!0x1;let {viewIds:_0x4dc320,fieldIds:_0x485672,recordIds:_0x2c3f6a}=_0x3608fd||{};if(_0x4dc320){for(let _0x58b76f of _0x4dc320)if(!_0x36c746[_0xbde71e(0x38b)][_0x58b76f])return!0x1;}if(_0x485672){for(let _0x397315 of _0x485672)if(!_0x36c746[_0xbde71e(0x480)][_0x397315])return!0x1;}if(_0x2c3f6a){for(let _0xdc7b34 of _0x2c3f6a)if(!_0x36c746[_0xbde71e(0x45a)][_0xdc7b34])return!0x1;}return!0x0;}function ha(_0x3a2e3e,_0x3c5451,_0x3f9b13){const _0x4a60d0=_0x354fcb;if(_0x3f9b13['id']===_0x3b44b5||_0x3f9b13[_0x4a60d0(0x33a)]===_0x19bf94[_0x4a60d0(0x44f)]||_0x37b436(_0x3f9b13[_0x4a60d0(0x1e0)])||!ma(_0x3a2e3e,_0x3c5451,_0x3f9b13))return!0x1;let _0x495b4e=_0x3a2e3e[_0x4a60d0(0x1f9)]();if(!Be(_0x495b4e,_0x3f9b13)['valid'])return!0x1;if(_0x3f9b13['type']!==_0x19bf94['RecordLink'])return!0x0;let _0x49a022=N(_0x3f9b13);if(!_0x49a022)return!0x1;if(_0x49a022[_0x4a60d0(0x274)]===void 0x0)return!0x0;if(_0x49a022[_0x4a60d0(0x274)]!==_0x170c14[_0x4a60d0(0x3a0)]||_0x49a022['targetTableId']!==_0x3c5451||_0x49a022[_0x4a60d0(0x215)]!==!0x1)return!0x1;let _0x38dcad=_0x495b4e[_0x4a60d0(0x2ba)][_0x3c5451];return!Object[_0x4a60d0(0x1da)](_0x38dcad[_0x4a60d0(0x480)])[_0x4a60d0(0x257)](_0x3ea3cd=>{const _0x5512cc=_0x4a60d0;var _0x5b6660;return _0x3ea3cd['id']!==_0x3f9b13['id']&&_0x3ea3cd[_0x5512cc(0x33a)]===_0x19bf94[_0x5512cc(0x2bd)]&&((_0x5b6660=N(_0x3ea3cd))==null?void 0x0:_0x5b6660['relationRole'])===_0x170c14[_0x5512cc(0x3a0)];});}function ga(_0x345c3b,_0x87d7c9,_0xab055d,_0x16d2ac){const _0x4f54cb=_0x354fcb;var _0x16da24;let _0x25fb32=_0x345c3b[_0x4f54cb(0x1f9)](),_0x446e12=(_0x16da24=_0x25fb32['tables'][_0x87d7c9])==null?void 0x0:_0x16da24[_0x4f54cb(0x480)][_0xab055d];return!_0x446e12||_0x446e12['id']===_0x3b44b5||_0x446e12[_0x4f54cb(0x33a)]===_0x19bf94[_0x4f54cb(0x44f)]?!0x1:_0x446e12[_0x4f54cb(0x33a)]!==_0x19bf94[_0x4f54cb(0x2bd)]||Ve(_0x25fb32,_0x446e12,ya(_0x16d2ac))[_0x4f54cb(0x35c)];}function _a(_0xa8053e,_0x2bfbbe,_0x1f2f04){const _0x29df09=_0x354fcb;let _0x335e32=_0xa8053e[_0x29df09(0x1f9)]()[_0x29df09(0x2ba)][_0x2bfbbe];return!_0x335e32||!_0x3605be(_0x1f2f04['id'])||_0x335e32['records'][_0x1f2f04['id']]||Object[_0x29df09(0x32b)][_0x29df09(0x42f)][_0x29df09(0x331)](_0x1f2f04[_0x29df09(0x1da)],_0x3b44b5)&&_0x1f2f04[_0x29df09(0x1da)][_0x3b44b5]!==_0x1f2f04['id']?!0x1:Object[_0x29df09(0x1e2)](_0x1f2f04[_0x29df09(0x1da)])['every'](([_0x4d0990,_0x3c0a44])=>_0x4d0990===_0x3b44b5||ga(_0xa8053e,_0x2bfbbe,_0x4d0990,_0x3c0a44));}function va(_0x5704fa){const _0x5e5b0e=_0x354fcb;return{..._0x5704fa,'values':{..._0x5704fa[_0x5e5b0e(0x1da)],[_0x3b44b5]:_0x5704fa['id']}};}function ya(_0x115a3b){const _0x16b531=_0x354fcb;if(_0x115a3b&&typeof _0x115a3b==_0x16b531(0x269)&&!Array['isArray'](_0x115a3b)&&'v'in _0x115a3b){let _0x15b14a=_0x115a3b['v'];return _0x15b14a===void 0x0?null:_0x15b14a;}return _0x115a3b;}function ba(_0x7f7105,_0x5e44e0,_0x17d11d,_0x210a05){const _0x535135=_0x354fcb;let _0x4cdadc=_0x7f7105[_0x535135(0x1f9)]()['tables'][_0x5e44e0];if(!_0x4cdadc)return null;let _0x486af9=qe(_0x4cdadc),_0x3ea08d=_0x486af9??Je(_0x4cdadc),_0x4714c3=_0x17d11d[_0x535135(0x257)](_0x40f3cd=>Object[_0x535135(0x32b)][_0x535135(0x42f)][_0x535135(0x331)](_0x40f3cd[_0x535135(0x1da)],_0x3ea08d)),_0x2fcf1c=_0x486af9?_0x4cdadc['fields'][_0x486af9]:_0x4714c3?Ye(_0x4cdadc,_0x3ea08d,_0x210a05):null,_0x531478=[];for(let _0x5bfde9 of _0x17d11d){let _0x14ed18=_0x5bfde9[_0x535135(0x1da)][_0x3ea08d],_0x150edf=_0x2fcf1c!==null&&Object[_0x535135(0x32b)]['hasOwnProperty']['call'](_0x5bfde9[_0x535135(0x1da)],_0x3ea08d),_0x33c4d0=ya(_0x14ed18),_0x4b7ad2=null;if(_0x150edf){if(typeof _0x33c4d0!=_0x535135(0x471)||!ze(_0x33c4d0,!0x1)['valid'])return null;_0x4b7ad2=_0x33c4d0;}let _0x6634e9={};if(Object[_0x535135(0x1e2)](_0x5bfde9[_0x535135(0x1da)])['forEach'](([_0x29b999,_0x931916])=>{(!_0x150edf||_0x29b999!==_0x3ea08d)&&(_0x6634e9[_0x29b999]=_0x931916);}),!_a(_0x7f7105,_0x5e44e0,{..._0x5bfde9,'values':_0x6634e9}))return null;let _0x482e79={..._0x5bfde9['values']};_0x4b7ad2!==null&&(_0x482e79[_0x3ea08d]=_0x4b7ad2),_0x531478[_0x535135(0x1f3)](va({..._0x5bfde9,'values':_0x482e79}));}return{'records':_0x531478,'hierarchyFieldToMaterialize':_0x486af9?null:_0x2fcf1c,'hierarchyChanges':Qe(_0x4cdadc,_0x531478)};}const xa={'id':_0x354fcb(0x1f6),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2bb5ea,_0x58ae91){const _0x28ada7=_0x354fcb;if(!_0x58ae91)return!0x1;let _0x19df08=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3414e2),{unitId:_0x1f57b8,tableId:_0x3b9538,records:_0x80130f}=_0x58ae91,_0x131cbb=_0x19df08[_0x28ada7(0x2e5)](_0x1f57b8,_0x28d752[_0x28ada7(0x201)]),_0xf69d7c=_0x80130f[_0x28ada7(0x29b)](_0x1812ee=>_0x1812ee['id']);if(!_0x131cbb||!$(_0x131cbb,_0x3b9538)||new Set(_0xf69d7c)[_0x28ada7(0x473)]!==_0xf69d7c[_0x28ada7(0x458)])return!0x1;let _0xad5f1b=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3ff846),_0x15f111=_0x2bb5ea['get'](_0x5153d9),_0x1bc1d7=_0x2bb5ea[_0x28ada7(0x4a8)](Kr),_0x2ed0af=_0x131cbb[_0x28ada7(0x1f9)](),_0x4426f5=ba(_0x131cbb,_0x3b9538,_0x80130f);if(!_0x4426f5)return!0x1;let {records:_0xb7cbd8,hierarchyChanges:_0x4eaa1a,hierarchyFieldToMaterialize:_0x2ec815}=_0x4426f5,_0x12e5a4=_0x2ec815?_0x1bc1d7[_0x28ada7(0x20a)](_0x131cbb,_0x3b9538,_0x2ec815,_0x2ed0af[_0x28ada7(0x2ba)][_0x3b9538]['fieldOrder'][_0x28ada7(0x458)]):null,_0x4daf63=_0x1bc1d7[_0x28ada7(0x518)](_0x131cbb,_0x3b9538,_0xb7cbd8),_0x8bcc53=R([..._0x12e5a4?[_0x12e5a4]:[],_0x4daf63]),_0x3e1fe4=new z()[_0x28ada7(0x2aa)](_0x2ed0af,_0x8bcc53),_0x24cfe1={'unitId':_0x1f57b8,'op':_0x8bcc53,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a:void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x58ae91['source']??'ui':void 0x0},_0x545842={..._0x24cfe1,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x29f):void 0x0},_0x26a821={'unitId':_0x1f57b8,'op':_0x3e1fe4,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a[_0x28ada7(0x29b)](_0x4317ba=>({..._0x4317ba,'oldParentRecordId':_0x4317ba[_0x28ada7(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x37e):void 0x0};return _0xad5f1b['syncExecuteCommand'](Q['id'],_0x24cfe1)?(_0x19df08[_0x28ada7(0x3f4)](_0x1f57b8),_0x15f111['pushUndoRedo']({'unitID':_0x1f57b8,'undoMutations':[{'id':Q['id'],'params':_0x26a821}],'redoMutations':[{'id':Q['id'],'params':_0x545842}]}),!0x0):!0x1;}},Sa={'id':_0x354fcb(0x179),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1e4a33,_0x3dd651)=>{const _0xfbd03=_0x354fcb;if(!_0x3dd651)return!0x1;let _0x51a65d=_0x1e4a33[_0xfbd03(0x4a8)](_0x3414e2),{unitId:_0x5cc4dc,tableId:_0x4aa2c9,recordIds:_0x187f2d}=_0x3dd651,_0x36ed72=_0x51a65d[_0xfbd03(0x2e5)](_0x5cc4dc,_0x28d752[_0xfbd03(0x201)]);if(!_0x36ed72||!$(_0x36ed72,_0x4aa2c9,{'recordIds':_0x187f2d}))return!0x1;let _0x183521=_0x1e4a33[_0xfbd03(0x4a8)](_0x3ff846),_0x13dc4a=_0x1e4a33[_0xfbd03(0x4a8)](_0x5153d9),_0x57b7a4=_0x36ed72[_0xfbd03(0x1f9)](),_0x1a542a=et(_0x57b7a4[_0xfbd03(0x2ba)][_0x4aa2c9],_0x187f2d),_0x57e342=new W(),_0x3ee215=new z(),_0x207b6a=_0x57e342[_0xfbd03(0x305)](_0x57b7a4,_0x4aa2c9,_0x187f2d),_0x4050a3=_0x3ee215[_0xfbd03(0x2ad)](_0x57b7a4,_0x207b6a),_0x5e37a4=_0x57e342[_0xfbd03(0x51d)](_0x57b7a4,_0x4050a3,_0x4aa2c9,_0x187f2d),_0x52333d={'unitId':_0x5cc4dc,'op':_0x207b6a,'hierarchyChanges':_0x1a542a,'source':_0x3dd651['source']??'ui'},_0x222847={..._0x52333d,'source':'redo'},_0x554d10={'unitId':_0x5cc4dc,'op':_0x5e37a4,'hierarchyChanges':_0x1a542a['map'](_0x175afb=>({..._0x175afb,'oldParentRecordId':_0x175afb['parentRecordId'],'parentRecordId':_0x175afb[_0xfbd03(0x30d)]})),'source':_0xfbd03(0x37e)};return _0x183521['syncExecuteCommand'](Q['id'],_0x52333d)?(_0x51a65d['focusUnit'](_0x5cc4dc),_0x13dc4a['pushUndoRedo']({'unitID':_0x5cc4dc,'undoMutations':[{'id':Q['id'],'params':_0x554d10}],'redoMutations':[{'id':Q['id'],'params':_0x222847}]}),!0x0):!0x1;}},Ca={'id':_0x354fcb(0x3f1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x23996e,_0x99b429)=>{const _0x4b9865=_0x354fcb;if(!_0x99b429)return!0x1;let _0x1f7fe7=_0x23996e[_0x4b9865(0x4a8)](_0x3414e2),{unitId:_0x27ade3,tableId:_0x1b6f27,fieldId:_0x438555,input:_0x262da8}=_0x99b429,_0x36b248=_0x1f7fe7['getUnit'](_0x27ade3,_0x28d752['UNIVER_BASE']);if(!_0x36b248||_0x438555===_0x3b44b5||!$(_0x36b248,_0x1b6f27,{'fieldIds':[_0x438555]}))return!0x1;let _0x34f37f=_0x23996e[_0x4b9865(0x4a8)](_0x3ff846),_0x275283=_0x23996e[_0x4b9865(0x4a8)](_0x5153d9),_0x308809=_0x36b248[_0x4b9865(0x1f9)]();if(!ha(_0x36b248,_0x1b6f27,{..._0x308809[_0x4b9865(0x2ba)][_0x1b6f27]['fields'][_0x438555],..._0x262da8}))return!0x1;let _0x2918d0=new W()[_0x4b9865(0x2b7)](_0x308809,_0x1b6f27,_0x438555,_0x262da8),_0x12298b=new z()[_0x4b9865(0x2aa)](_0x308809,_0x2918d0),_0x354dab={'unitId':_0x27ade3,'op':_0x2918d0},_0x48e1b4={'unitId':_0x27ade3,'op':_0x12298b};return _0x34f37f[_0x4b9865(0x4c6)](Q['id'],_0x354dab)?(_0x1f7fe7[_0x4b9865(0x3f4)](_0x27ade3),_0x275283[_0x4b9865(0x519)]({'unitID':_0x27ade3,'undoMutations':[{'id':Q['id'],'params':_0x48e1b4}],'redoMutations':[{'id':Q['id'],'params':_0x354dab}]}),!0x0):!0x1;}},wa={'id':_0x354fcb(0x324),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3aab6f,_0x55c2ea){const _0x9cbfdb=_0x354fcb;var _0x27a8b5;if(!_0x55c2ea)return!0x1;let {unitId:_0x11b9fd,tableId:_0x153a46,parentRecordId:_0x364e06}=_0x55c2ea,_0x6b95fe=_0x3aab6f['get'](_0x3414e2),_0xf142f7=_0x6b95fe[_0x9cbfdb(0x2e5)](_0x11b9fd,_0x28d752['UNIVER_BASE']);if(!_0xf142f7||!$(_0xf142f7,_0x153a46,{'recordIds':[_0x364e06]}))throw new P('missingRecord');let _0x4319f1=_0xf142f7[_0x9cbfdb(0x1f9)](),_0x6363a0=_0x4319f1['tables'][_0x153a46],_0x110656=qe(_0x6363a0),_0x337106=_0x110656??_0x55c2ea[_0x9cbfdb(0x46e)]??Je(_0x6363a0);if(_0x110656&&_0x55c2ea[_0x9cbfdb(0x46e)]&&_0x55c2ea[_0x9cbfdb(0x46e)]!==_0x110656||_0x6363a0['fields'][_0x337106]&&!F(_0x6363a0,_0x337106))throw new P(_0x9cbfdb(0x4a7));if((tt(_0x6363a0,_0x337106)[_0x9cbfdb(0x3ff)][_0x9cbfdb(0x4a8)](_0x364e06)??0x0)+0x1>=0x5)throw new P('maxDepth');if(!_a(_0xf142f7,_0x153a46,_0x55c2ea[_0x9cbfdb(0x52b)]))return!0x1;let _0x53cca1=va({..._0x55c2ea[_0x9cbfdb(0x52b)],'values':{..._0x55c2ea[_0x9cbfdb(0x52b)][_0x9cbfdb(0x1da)],[_0x337106]:Re([_0x364e06])}}),_0x59ee0e=_0x3aab6f['get'](Kr),_0x560339=new W(),_0x26c8fe=_0x6363a0['fields'][_0x337106],_0x4bfd3e=_0x26c8fe?((_0x27a8b5=N(_0x26c8fe))==null?void 0x0:_0x27a8b5[_0x9cbfdb(0x274)])===_0x170c14['Parent']?null:_0x560339[_0x9cbfdb(0x409)](_0x4319f1,_0x153a46,_0x337106,{'config':{..._0x26c8fe[_0x9cbfdb(0x342)],'relationRole':_0x170c14['Parent']}}):_0x59ee0e[_0x9cbfdb(0x20a)](_0xf142f7,_0x153a46,Ye(_0x6363a0,_0x337106,_0x55c2ea[_0x9cbfdb(0x398)]),_0x6363a0[_0x9cbfdb(0x1e1)][_0x9cbfdb(0x458)]),_0x7a1bba=_0x59ee0e[_0x9cbfdb(0x40c)](_0xf142f7,_0x153a46,_0x53cca1),_0x388c52=R([..._0x4bfd3e?[_0x4bfd3e]:[],_0x7a1bba]),_0x17c134=new z()[_0x9cbfdb(0x2aa)](_0x4319f1,_0x388c52),_0x9fb53={'tableId':_0x153a46,'fieldId':_0x337106,'recordId':_0x53cca1['id'],'oldParentRecordId':null,'parentRecordId':_0x364e06},_0x5ea679={'unitId':_0x11b9fd,'op':_0x388c52,'trigger':wa['id'],'hierarchyChanges':[_0x9fb53],'source':_0x55c2ea[_0x9cbfdb(0x4cd)]??'ui'},_0x4775b5={..._0x5ea679,'source':_0x9cbfdb(0x29f)},_0x260d21={'unitId':_0x11b9fd,'op':_0x17c134,'trigger':wa['id'],'hierarchyChanges':[{..._0x9fb53,'oldParentRecordId':_0x364e06,'parentRecordId':null}],'source':_0x9cbfdb(0x37e)};return _0x3aab6f[_0x9cbfdb(0x4a8)](_0x3ff846)[_0x9cbfdb(0x4c6)](Q['id'],_0x5ea679)?(_0x6b95fe[_0x9cbfdb(0x3f4)](_0x11b9fd),_0x3aab6f['get'](_0x5153d9)[_0x9cbfdb(0x519)]({'unitID':_0x11b9fd,'undoMutations':[{'id':Q['id'],'params':_0x260d21}],'redoMutations':[{'id':Q['id'],'params':_0x4775b5}]}),!0x0):!0x1;}},Ta={'id':_0x354fcb(0x19f),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x26e7e8,_0x2741af){const _0x407ada=_0x354fcb;if(!_0x2741af)return!0x1;let _0x1d98c8=_0x26e7e8[_0x407ada(0x4a8)](_0x3414e2),{unitId:_0x1503df,tableId:_0x510f9a,field:_0x1ea059,index:_0x4fd16c,viewIndexes:_0x291694}=_0x2741af,_0x29337b=_0x1d98c8[_0x407ada(0x2e5)](_0x1503df,_0x28d752['UNIVER_BASE']);if(!_0x29337b||!$(_0x29337b,_0x510f9a)||_0x29337b[_0x407ada(0x1f9)]()[_0x407ada(0x2ba)][_0x510f9a][_0x407ada(0x480)][_0x1ea059['id']]||_0x4fd16c===0x0||!ha(_0x29337b,_0x510f9a,_0x1ea059))return!0x1;let _0xcc8dbe=_0x26e7e8[_0x407ada(0x4a8)](_0x3ff846),_0x2003f9=_0x26e7e8[_0x407ada(0x4a8)](_0x5153d9),_0x1935f6=_0x26e7e8[_0x407ada(0x4a8)](Kr)[_0x407ada(0x20a)](_0x29337b,_0x510f9a,_0x1ea059,_0x4fd16c,_0x291694),_0x4f9467=new z()[_0x407ada(0x2aa)](_0x29337b[_0x407ada(0x1f9)](),_0x1935f6),_0x422506={'unitId':_0x1503df,'op':_0x1935f6},_0x4264be={'unitId':_0x1503df,'op':_0x4f9467};return _0xcc8dbe[_0x407ada(0x4c6)](Q['id'],_0x422506)?(_0x1d98c8[_0x407ada(0x3f4)](_0x1503df),_0x2003f9[_0x407ada(0x519)]({'unitID':_0x1503df,'undoMutations':[{'id':Q['id'],'params':_0x4264be}],'redoMutations':[{'id':Q['id'],'params':_0x422506}]}),!0x0):!0x1;}},Ea={'id':_0x354fcb(0x393),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xd7bbb4,_0x4b8556){const _0x4dd6ad=_0x354fcb;if(!_0x4b8556)return!0x1;let _0x1cccc0=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3414e2),{unitId:_0x3f1bd7,tableId:_0x35d6c4,record:_0x113f98}=_0x4b8556,_0x19b8e7=_0x1cccc0['getUnit'](_0x3f1bd7,_0x28d752[_0x4dd6ad(0x201)]);if(!_0x19b8e7||!$(_0x19b8e7,_0x35d6c4))return!0x1;let _0x3c1f01=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3ff846),_0x267c82=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x5153d9),_0x426612=_0xd7bbb4[_0x4dd6ad(0x4a8)](Kr),_0x4be1e3=_0x19b8e7[_0x4dd6ad(0x1f9)](),_0x215bad=ba(_0x19b8e7,_0x35d6c4,[_0x113f98]);if(!_0x215bad)return!0x1;let [_0x5018ce]=_0x215bad[_0x4dd6ad(0x45a)],{hierarchyChanges:_0x5a6d6b,hierarchyFieldToMaterialize:_0x5575c6}=_0x215bad,_0x229658=_0x5575c6?_0x426612[_0x4dd6ad(0x20a)](_0x19b8e7,_0x35d6c4,_0x5575c6,_0x4be1e3['tables'][_0x35d6c4][_0x4dd6ad(0x1e1)]['length']):null,_0x536131=_0x426612[_0x4dd6ad(0x40c)](_0x19b8e7,_0x35d6c4,_0x5018ce),_0x574137=R([..._0x229658?[_0x229658]:[],_0x536131]),_0x5cd684=new z()[_0x4dd6ad(0x2aa)](_0x4be1e3,_0x574137),_0x4663db={'unitId':_0x3f1bd7,'op':_0x574137,'hierarchyChanges':_0x5a6d6b['length']?_0x5a6d6b:void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4b8556[_0x4dd6ad(0x4cd)]??'ui':void 0x0},_0xc146ae={..._0x4663db,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x29f):void 0x0},_0x12c965={'unitId':_0x3f1bd7,'op':_0x5cd684,'hierarchyChanges':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x5a6d6b[_0x4dd6ad(0x29b)](_0x505e6a=>({..._0x505e6a,'oldParentRecordId':_0x505e6a[_0x4dd6ad(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x37e):void 0x0};return _0x3c1f01[_0x4dd6ad(0x4c6)](Q['id'],_0x4663db)?(_0x1cccc0['focusUnit'](_0x3f1bd7),_0x267c82['pushUndoRedo']({'unitID':_0x3f1bd7,'undoMutations':[{'id':Q['id'],'params':_0x12c965}],'redoMutations':[{'id':Q['id'],'params':_0xc146ae}]}),!0x0):!0x1;}},Da=_0x354fcb(0x189);function Oa(_0x875f8b,_0x56c75d,_0x185f62){const _0x408055=_0x354fcb;if(!_0x56c75d[_0x408055(0x3bc)]())return{'valid':!0x1,'reason':_0x408055(0x18b),'error':'required'};if(_0x56c75d['length']>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':_0x408055(0x43d)};if(_0x56c75d['startsWith']('\x27')||_0x56c75d[_0x408055(0x424)]('\x27'))return{'valid':!0x1,'reason':_0x408055(0x3ae),'error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x408055(0x235)](_0x56c75d))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':_0x408055(0x42c)};if(!_0x5b975c(_0x56c75d))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x408055(0x20e)};let _0x4de5bd=_0x56c75d[_0x408055(0x4f1)]();return Object[_0x408055(0x1da)](_0x875f8b['tables'])[_0x408055(0x257)](_0x5e11c6=>_0x5e11c6['id']!==_0x185f62&&_0x5e11c6[_0x408055(0x1e0)][_0x408055(0x4f1)]()===_0x4de5bd)?{'valid':!0x1,'reason':_0x408055(0x17d),'error':_0x408055(0x52d)}:{'valid':!0x0};}function ka(_0x2f7180,_0x34069b){const _0x53efe9=_0x354fcb;let _0x22d0ba=_0x34069b[_0x53efe9(0x2b1)](/[:\\/?*\[\]]/g,'\x20')[_0x53efe9(0x2b1)](/^'+|'+$/g,'')[_0x53efe9(0x3bc)]()||_0x53efe9(0x494),_0x1fb671=0x1;for(;;){let _0x969cff=_0x1fb671===0x1?'':'\x20'+_0x1fb671,_0x5580cb=''+_0x22d0ba[_0x53efe9(0x192)](0x0,0x1f-_0x969cff[_0x53efe9(0x458)])+_0x969cff;if(Oa(_0x2f7180,_0x5580cb)[_0x53efe9(0x35c)])return _0x5580cb;_0x1fb671++;}}const Aa={'id':_0x354fcb(0x285),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3b74cf,_0x5252d8)=>{const _0x4ec82f=_0x354fcb;if(!_0x5252d8)return!0x1;let _0x3dfaf6=_0x3b74cf['get'](_0x3414e2),{unitId:_0x29086c,table:_0xa8ee86,index:_0x59b5d9}=_0x5252d8,_0x12bee5=_0x3dfaf6['getUnit'](_0x29086c,_0x28d752[_0x4ec82f(0x201)]);if(!_0x12bee5||_0x12bee5[_0x4ec82f(0x1f9)]()['tables'][_0xa8ee86['id']]||!Oa(_0x12bee5[_0x4ec82f(0x1f9)](),_0xa8ee86[_0x4ec82f(0x1e0)])[_0x4ec82f(0x35c)])return!0x1;try{_0x136f40(_0xa8ee86);}catch{return!0x1;}let _0x803a5d=_0x3b74cf[_0x4ec82f(0x4a8)](_0x3ff846),_0x123b68=_0x3b74cf[_0x4ec82f(0x4a8)](_0x5153d9),_0x1219ba=_0x12bee5[_0x4ec82f(0x1f9)](),_0x3c7b60=new W()[_0x4ec82f(0x500)](_0x1219ba,_0xa8ee86,_0x59b5d9),_0x5d2dde=new z()[_0x4ec82f(0x2aa)](_0x1219ba,_0x3c7b60),_0x35c665={'unitId':_0x29086c,'op':_0x3c7b60},_0x6aa692={'unitId':_0x29086c,'op':_0x5d2dde};return _0x803a5d['syncExecuteCommand'](Q['id'],_0x35c665)?(_0x3dfaf6[_0x4ec82f(0x3f4)](_0x29086c),_0x123b68[_0x4ec82f(0x519)]({'unitID':_0x29086c,'undoMutations':[{'id':Q['id'],'params':_0x6aa692}],'redoMutations':[{'id':Q['id'],'params':_0x35c665}]}),!0x0):!0x1;}};function ja(_0xd5401a,_0x40f96b,_0x204a4d=[]){const _0x160c63=_0x354fcb;let _0x447ff2=new Set([...Object[_0x160c63(0x1da)](_0xd5401a[_0x160c63(0x480)])[_0x160c63(0x397)](_0xe50ba0=>_0xe50ba0)[_0x160c63(0x29b)](_0x4641d3=>_0x4641d3['name']),..._0x204a4d[_0x160c63(0x29b)](_0x433627=>_0x433627['name'])]);if(!_0x447ff2[_0x160c63(0x23f)](_0x40f96b))return _0x40f96b;let _0x2d2332=0x2;for(;_0x447ff2[_0x160c63(0x23f)](_0x40f96b+'\x20'+_0x2d2332);)_0x2d2332++;return _0x40f96b+'\x20'+_0x2d2332;}function Ma(_0x1da0d6,_0x1f9cb5){const _0x5f2842=_0x354fcb;if(!_0x1da0d6||!_0x1f9cb5[_0x5f2842(0x458)])return;let _0x31b6b4=[..._0x1da0d6];return _0x1f9cb5[_0x5f2842(0x461)](_0x110a15=>{const _0x4c1edd=_0x5f2842;_0x31b6b4[_0x4c1edd(0x231)](_0x110a15)||_0x31b6b4[_0x4c1edd(0x1f3)](_0x110a15);}),_0x31b6b4;}const Na={'options':[{'id':'todo','name':_0x354fcb(0x48c),'color':_0x354fcb(0x47c)},{'id':_0x354fcb(0x359),'name':_0x354fcb(0x41d),'color':_0x354fcb(0x3a1)},{'id':_0x354fcb(0x414),'name':_0x354fcb(0x3de),'color':'#BBF7D0'}]},Pa={'locale':'en-US','pattern':_0x354fcb(0x1cd),'includeTime':!0x1,'hourCycle':_0x354fcb(0x1a8),'defaultMode':_0x354fcb(0x3e0)};function Fa(_0x5c7f17,_0x531222,_0x33fbd7,_0x4097c2){const _0x217588=_0x354fcb;var _0x1deb9a;let _0x428c33=new W(),_0x3d433b=_0x5c7f17[_0x217588(0x2ba)][_0x531222],_0x2e0b69=_0x3d433b?{..._0x33fbd7,'fieldOrder':[_0x3b44b5,...(_0x33fbd7[_0x217588(0x1e1)]??_0x3d433b['fieldOrder'])[_0x217588(0x397)](_0x94c1ae=>_0x94c1ae!==_0x3b44b5)],'fieldSettings':{..._0x33fbd7[_0x217588(0x484)],[_0x3b44b5]:{...(_0x1deb9a=_0x33fbd7[_0x217588(0x484)])==null?void 0x0:_0x1deb9a[_0x3b44b5],'hidden':!0x0}}}:_0x33fbd7;if(_0x3d433b&&_0x2e0b69[_0x217588(0x33a)]==='kanban'){let _0x2abafd=La(_0x3d433b,_0x2e0b69),_0x2cc439=_0x2abafd['changed']?{..._0x2e0b69,'config':_0x2abafd[_0x217588(0x342)],'fieldOrder':_0x2abafd[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return R([..._0x2abafd[_0x217588(0x480)][_0x217588(0x29b)](_0x5e9bbc=>_0x428c33[_0x217588(0x2c0)](_0x5c7f17,_0x531222,{'field':_0x5e9bbc})),_0x428c33[_0x217588(0x446)](_0x5c7f17,_0x531222,_0x2cc439,_0x4097c2)]);}if(!_0x3d433b||_0x2e0b69[_0x217588(0x33a)]!=='calendar'&&_0x2e0b69[_0x217588(0x33a)]!==_0x217588(0x3b0))return _0x428c33['createView'](_0x5c7f17,_0x531222,_0x2e0b69,_0x4097c2);let _0x2ffda2=Ia(_0x3d433b,_0x2e0b69),_0x1ebb98=_0x2ffda2[_0x217588(0x2ab)]?{..._0x2e0b69,'config':_0x2ffda2['config'],'fieldOrder':_0x2ffda2[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return _0x2e0b69[_0x217588(0x33a)]==='gantt'&&Ba(_0x2e0b69)&&(_0x1ebb98=Va(_0x3d433b,_0x1ebb98,_0x2ffda2[_0x217588(0x480)])),R([..._0x2ffda2[_0x217588(0x480)][_0x217588(0x29b)](_0x2fbd64=>_0x428c33['createField'](_0x5c7f17,_0x531222,{'field':_0x2fbd64})),_0x428c33['createView'](_0x5c7f17,_0x531222,_0x1ebb98,_0x4097c2)]);}function Ia(_0x204d68,_0x4e4455,_0x31b047=!0x1){const _0x430d0a=_0x354fcb;var _0x3fb864,_0x1056d7;let _0x21766c=_0x204d68[_0x430d0a(0x1e1)]['filter'](_0x2b9226=>Ua(_0x204d68,_0x2b9226)),_0x42412c=[],_0xa497a5={..._0x4e4455[_0x430d0a(0x342)]??{}},_0x36ac66=typeof _0xa497a5[_0x430d0a(0x240)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5[_0x430d0a(0x240)])?_0xa497a5[_0x430d0a(0x240)]:_0x21766c[0x0],_0x251cde=typeof _0xa497a5[_0x430d0a(0x171)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5['endDateFieldId'])&&_0xa497a5['endDateFieldId']!==_0x36ac66?_0xa497a5['endDateFieldId']:_0x21766c[_0x430d0a(0x22f)](_0x2347dd=>_0x2347dd!==_0x36ac66);if(!_0x36ac66){let _0xbca362=Wa(_0x204d68,_0x42412c,_0x4e4455[_0x430d0a(0x33a)]==='gantt'?_0x430d0a(0x387):_0x430d0a(0x440));_0x42412c[_0x430d0a(0x1f3)](_0xbca362),_0x36ac66=_0xbca362['id'];}if((_0x4e4455['type']===_0x430d0a(0x3b0)||_0x31b047)&&!_0x251cde){let _0x1c6254=Wa(_0x204d68,_0x42412c,_0x430d0a(0x4ad));_0x42412c[_0x430d0a(0x1f3)](_0x1c6254),_0x251cde=_0x1c6254['id'];}_0x4e4455[_0x430d0a(0x33a)]==='calendar'&&!_0x251cde&&delete _0xa497a5[_0x430d0a(0x171)],_0xa497a5['startDateFieldId']=_0x36ac66,_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x234)&&_0x251cde&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde),_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x3b0)&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde??_0x36ac66);let _0x358a1b=Ma(_0x4e4455[_0x430d0a(0x1e1)],_0x42412c[_0x430d0a(0x29b)](_0x128f3a=>_0x128f3a['id']));return{'changed':_0x42412c[_0x430d0a(0x458)]>0x0||_0xa497a5['startDateFieldId']!==((_0x3fb864=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x3fb864['startDateFieldId'])||_0xa497a5['endDateFieldId']!==((_0x1056d7=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x1056d7[_0x430d0a(0x171)])||!(!_0x358a1b||_0x30f9db[_0x430d0a(0x52f)](_0x358a1b,_0x4e4455[_0x430d0a(0x1e1)]??[])),'fields':_0x42412c,'config':_0xa497a5,'fieldOrder':_0x358a1b};}function La(_0x5413d2,_0x3623c5){const _0x132b62=_0x354fcb;var _0x5d8ee2;let _0x43d64b=[],_0x361821={..._0x3623c5[_0x132b62(0x342)]??{}},_0x559677=typeof _0x361821[_0x132b62(0x38a)]==_0x132b62(0x471)&&Ra(_0x5413d2,_0x361821[_0x132b62(0x38a)])?_0x361821[_0x132b62(0x38a)]:_0x5413d2[_0x132b62(0x1e1)]['find'](_0x51916e=>Ra(_0x5413d2,_0x51916e));if(!_0x559677){let _0xf323cd=za(_0x5413d2,_0x43d64b);_0x43d64b[_0x132b62(0x1f3)](_0xf323cd),_0x559677=_0xf323cd['id'];}_0x361821['groupFieldId']=_0x559677;let _0x30315d=Ma(_0x3623c5['fieldOrder'],_0x43d64b[_0x132b62(0x29b)](_0x49b383=>_0x49b383['id']));return{'changed':_0x43d64b[_0x132b62(0x458)]>0x0||_0x361821[_0x132b62(0x38a)]!==((_0x5d8ee2=_0x3623c5[_0x132b62(0x342)])==null?void 0x0:_0x5d8ee2[_0x132b62(0x38a)])||!(!_0x30315d||_0x30f9db[_0x132b62(0x52f)](_0x30315d,_0x3623c5[_0x132b62(0x1e1)]??[])),'fields':_0x43d64b,'config':_0x361821,'fieldOrder':_0x30315d};}function Ra(_0x355e2a,_0x45b67a){const _0x502f28=_0x354fcb;let _0xee7caf=_0x45b67a?_0x355e2a[_0x502f28(0x480)][_0x45b67a]:null;return _0xee7caf?[_0x19bf94[_0x502f28(0x407)],_0x19bf94[_0x502f28(0x283)],_0x19bf94[_0x502f28(0x4c5)],_0x19bf94[_0x502f28(0x1e5)],_0x19bf94['Group'],_0x19bf94[_0x502f28(0x19e)]]['includes'](_0xee7caf[_0x502f28(0x33a)]):!0x1;}function za(_0x103e40,_0x114031){const _0x1ff470=_0x354fcb;return{'id':_0x1ff470(0x46a)+_0x3ba5f0(0x8),'name':ja(_0x103e40,_0x1ff470(0x1df),_0x114031),'type':_0x19bf94[_0x1ff470(0x407)],'config':_0x30f9db['deepClone'](Na)};}function Ba(_0x2a8b06){const _0x16ff69=_0x354fcb;return Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x342)]??{})[_0x16ff69(0x458)]===0x0&&Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x484)]??{})['length']===0x0;}function Va(_0x5cb3ba,_0x4dcbe0,_0x16073b){const _0x3c5735=_0x354fcb;let _0x3ba525={..._0x4dcbe0[_0x3c5735(0x342)]??{}},_0x10767d=_0x16073b[_0x3c5735(0x29b)](_0x528c78=>_0x528c78['id']),_0x5a004b=[..._0x5cb3ba[_0x3c5735(0x1e1)],..._0x10767d],_0x48e017=typeof _0x3ba525[_0x3c5735(0x345)]==_0x3c5735(0x471)&&Ha(_0x5cb3ba,_0x16073b,_0x3ba525['titleFieldId'])?_0x3ba525[_0x3c5735(0x345)]:_0x5cb3ba['primaryFieldId'],_0x42e04d=typeof _0x3ba525[_0x3c5735(0x240)]=='string'?_0x3ba525[_0x3c5735(0x240)]:'',_0x662f03=typeof _0x3ba525[_0x3c5735(0x171)]==_0x3c5735(0x471)?_0x3ba525[_0x3c5735(0x171)]:_0x42e04d,_0x54a491=new Set([_0x48e017,_0x42e04d,_0x662f03][_0x3c5735(0x397)](_0x3a32fe=>_0x3a32fe&&Ha(_0x5cb3ba,_0x16073b,_0x3a32fe))),_0x473216=Object[_0x3c5735(0x2e8)](_0x5a004b[_0x3c5735(0x2a2)](_0x2af9aa=>_0x54a491['has'](_0x2af9aa)||!Ha(_0x5cb3ba,_0x16073b,_0x2af9aa)?[]:[[_0x2af9aa,{'hidden':!0x0}]]));return{..._0x4dcbe0,'config':{..._0x3ba525,'titleFieldId':_0x48e017},'fieldSettings':_0x473216};}function Ha(_0x306f2c,_0xe0dd89,_0x1058db){const _0x2c84a9=_0x354fcb;return!!(_0x306f2c[_0x2c84a9(0x480)][_0x1058db]??_0xe0dd89['find'](_0x37989f=>_0x37989f['id']===_0x1058db))&&!0x0;}function Ua(_0x598f3e,_0xedb8d9){const _0x4fe151=_0x354fcb;let _0x1663a5=_0xedb8d9?_0x598f3e[_0x4fe151(0x480)][_0xedb8d9]:null;return!!_0x1663a5&&_0x1663a5[_0x4fe151(0x33a)]===_0x19bf94[_0x4fe151(0x440)]&&_0x1663a5['readonly']!==!0x0&&_0x1663a5[_0x4fe151(0x1cb)]!==!0x0;}function Wa(_0x21a08a,_0x431532,_0x44f2ab){const _0x483204=_0x354fcb;let _0x67bbc=new Set([...Object[_0x483204(0x51b)](_0x21a08a[_0x483204(0x480)]),..._0x431532[_0x483204(0x29b)](_0x475d1c=>_0x475d1c['id'])]),_0x14502b='fld-'+_0x3ba5f0(0x8);for(;_0x67bbc[_0x483204(0x23f)](_0x14502b);)_0x14502b='fld-'+_0x3ba5f0(0x8);return{'id':_0x14502b,'name':ja(_0x21a08a,_0x44f2ab,_0x431532),'type':_0x19bf94[_0x483204(0x440)],'config':{...Pa}};}const Ga={'id':_0x354fcb(0x4fa),'type':_0x3e23cf['COMMAND'],'handler':(_0x13f132,_0x2a4eca)=>{const _0x4096c7=_0x354fcb;if(!_0x2a4eca)return!0x1;let _0x545df3=_0x13f132[_0x4096c7(0x4a8)](_0x3414e2),{unitId:_0x329b02,tableId:_0x4952e1,view:_0x1273f8,index:_0x2d41fb}=_0x2a4eca,_0x5db18e=_0x545df3[_0x4096c7(0x2e5)](_0x329b02,_0x28d752[_0x4096c7(0x201)]);if(!_0x5db18e||!$(_0x5db18e,_0x4952e1)||_0x5db18e[_0x4096c7(0x1f9)]()['tables'][_0x4952e1]['views'][_0x1273f8['id']])return!0x1;let _0xb8a458=_0x13f132['get'](_0x3ff846),_0x491fb4=_0x13f132[_0x4096c7(0x4a8)](_0x5153d9),_0xb50c0d=_0x5db18e[_0x4096c7(0x1f9)](),_0x3ddb44=Fa(_0xb50c0d,_0x4952e1,_0x1273f8,_0x2d41fb),_0x5f4253=new z()[_0x4096c7(0x2aa)](_0xb50c0d,_0x3ddb44),_0x5a9ac4={'historyAction':_0x4096c7(0x26f),'unitId':_0x329b02,'op':_0x3ddb44,'viewType':_0x1273f8[_0x4096c7(0x33a)]},_0xe1a655={'historyAction':_0x4096c7(0x438),'unitId':_0x329b02,'op':_0x5f4253,'viewType':_0x1273f8['type']};return _0xb8a458[_0x4096c7(0x4c6)](Q['id'],_0x5a9ac4)?(_0x545df3['focusUnit'](_0x329b02),_0x491fb4[_0x4096c7(0x519)]({'unitID':_0x329b02,'undoMutations':[{'id':Q['id'],'params':_0xe1a655}],'redoMutations':[{'id':Q['id'],'params':_0x5a9ac4}]}),!0x0):!0x1;}},Ka={'id':_0x354fcb(0x46b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x1e0a5e,_0x59fa23){const _0x547ad4=_0x354fcb;if(!_0x59fa23)return!0x1;let _0x1e4c91=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3414e2),{unitId:_0x1362a0,tableId:_0x49b947,fieldId:_0x12b8f0}=_0x59fa23,_0xb8829c=_0x1e4c91[_0x547ad4(0x2e5)](_0x1362a0,_0x28d752[_0x547ad4(0x201)]);if(!_0xb8829c)return!0x1;let _0x41ad1f=_0xb8829c[_0x547ad4(0x1f9)](),_0x336a89=_0x41ad1f[_0x547ad4(0x2ba)][_0x49b947];if(!$(_0xb8829c,_0x49b947,{'fieldIds':[_0x12b8f0]})||_0x336a89[_0x547ad4(0x4cf)]===_0x12b8f0||_0x12b8f0===_0x3b44b5)return!0x1;let _0x24d767=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3ff846),_0x2d7dde=_0x1e0a5e[_0x547ad4(0x4a8)](_0x5153d9),_0x325091=new W()[_0x547ad4(0x21f)](_0x41ad1f,_0x49b947,_0x12b8f0),_0x15a44e=new z()['invertOp'](_0x41ad1f,_0x325091),_0xd6ec12={'unitId':_0x1362a0,'op':_0x325091},_0x3e00ec={'unitId':_0x1362a0,'op':_0x15a44e};return _0x24d767[_0x547ad4(0x4c6)](Q['id'],_0xd6ec12)?(_0x1e4c91['focusUnit'](_0x1362a0),_0x2d7dde[_0x547ad4(0x519)]({'unitID':_0x1362a0,'undoMutations':[{'id':Q['id'],'params':_0x3e00ec}],'redoMutations':[{'id':Q['id'],'params':_0xd6ec12}]}),!0x0):!0x1;}},qa={'id':_0x354fcb(0x17b),'type':_0x3e23cf['COMMAND'],'handler':(_0x5c561b,_0x44291d)=>{const _0x2db902=_0x354fcb;if(!_0x44291d)return!0x1;let _0x4a27af=_0x5c561b[_0x2db902(0x4a8)](_0x3414e2),{unitId:_0xd435fa,tableId:_0xaa252e,recordId:_0xbce966}=_0x44291d,_0x570016=_0x4a27af['getUnit'](_0xd435fa,_0x28d752[_0x2db902(0x201)]);if(!_0x570016||!$(_0x570016,_0xaa252e,{'recordIds':[_0xbce966]}))return!0x1;let _0x11ca65=_0x5c561b['get'](_0x3ff846),_0x557f4e=_0x5c561b[_0x2db902(0x4a8)](_0x5153d9),_0x2198f3=_0x570016[_0x2db902(0x1f9)](),_0x7467b6=et(_0x2198f3['tables'][_0xaa252e],[_0xbce966]),_0x44caec=new W(),_0x24d89d=new z(),_0x478784=_0x44caec[_0x2db902(0x375)](_0x2198f3,_0xaa252e,_0xbce966),_0x3f2598=_0x24d89d[_0x2db902(0x2ad)](_0x2198f3,_0x478784),_0x2ec71a=_0x44caec['createDeleteRecordsUndoOp'](_0x2198f3,_0x3f2598,_0xaa252e,[_0xbce966]),_0x10910f={'unitId':_0xd435fa,'op':_0x478784,'hierarchyChanges':_0x7467b6,'source':_0x44291d[_0x2db902(0x4cd)]??'ui'},_0x3afdb6={..._0x10910f,'source':'redo'},_0x148a0f={'unitId':_0xd435fa,'op':_0x2ec71a,'hierarchyChanges':_0x7467b6[_0x2db902(0x29b)](_0x5b11ea=>({..._0x5b11ea,'oldParentRecordId':_0x5b11ea[_0x2db902(0x1b1)],'parentRecordId':_0x5b11ea[_0x2db902(0x30d)]})),'source':'undo'};return _0x11ca65[_0x2db902(0x4c6)](Q['id'],_0x10910f)?(_0x4a27af['focusUnit'](_0xd435fa),_0x557f4e['pushUndoRedo']({'unitID':_0xd435fa,'undoMutations':[{'id':Q['id'],'params':_0x148a0f}],'redoMutations':[{'id':Q['id'],'params':_0x3afdb6}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x306ae6,_0x2a1b87)=>{const _0x5d9c33=_0x354fcb;if(!_0x2a1b87)return!0x1;let _0x88afcb=_0x306ae6[_0x5d9c33(0x4a8)](_0x3414e2),{unitId:_0x29b358,tableId:_0x4fa18f}=_0x2a1b87,_0x5a50e2=_0x88afcb[_0x5d9c33(0x2e5)](_0x29b358,_0x28d752['UNIVER_BASE']);if(!_0x5a50e2||!$(_0x5a50e2,_0x4fa18f))return!0x1;let _0x54bd87=_0x306ae6[_0x5d9c33(0x4a8)](_0x3ff846),_0x28e214=_0x306ae6[_0x5d9c33(0x4a8)](_0x5153d9),_0x21cd1f=_0x5a50e2['getSnapshot'](),_0x6aa2b=He(_0x21cd1f,_0x4fa18f);if(_0x6aa2b[_0x5d9c33(0x458)]>0x0)return console[_0x5d9c33(0x206)]('[DeleteBaseTableCommand]:\x20table\x20\x22'+_0x4fa18f+_0x5d9c33(0x3e9)+_0x6aa2b[_0x5d9c33(0x29b)](_0x5ba2cb=>_0x5ba2cb[_0x5d9c33(0x1c3)]+'.'+_0x5ba2cb['fieldId'])[_0x5d9c33(0x4b5)](',\x20')+'.'),!0x1;let _0x1da5a1=new W()['deleteTable'](_0x21cd1f,_0x4fa18f),_0x7fa810=new z()['invertOp'](_0x21cd1f,_0x1da5a1),_0x5e1721={'unitId':_0x29b358,'op':_0x1da5a1},_0x5e76b7={'unitId':_0x29b358,'op':_0x7fa810};return _0x54bd87[_0x5d9c33(0x4c6)](Q['id'],_0x5e1721)?(_0x88afcb[_0x5d9c33(0x3f4)](_0x29b358),_0x28e214[_0x5d9c33(0x519)]({'unitID':_0x29b358,'undoMutations':[{'id':Q['id'],'params':_0x5e76b7}],'redoMutations':[{'id':Q['id'],'params':_0x5e1721}]}),!0x0):!0x1;}},Ya={'id':_0x354fcb(0x25b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x22a43b,_0x42dcc1)=>{const _0x957ca9=_0x354fcb;if(!_0x42dcc1)return!0x1;let _0xec3305=_0x22a43b[_0x957ca9(0x4a8)](_0x3414e2),{unitId:_0xae219,tableId:_0x5d8cba,viewId:_0x455666}=_0x42dcc1,_0x5bbc10=_0xec3305[_0x957ca9(0x2e5)](_0xae219,_0x28d752[_0x957ca9(0x201)]);if(!_0x5bbc10||!$(_0x5bbc10,_0x5d8cba,{'viewIds':[_0x455666]}))return!0x1;let _0x103fef=_0x22a43b[_0x957ca9(0x4a8)](_0x3ff846),_0x5c7216=_0x22a43b[_0x957ca9(0x4a8)](_0x5153d9),_0x171a9f=_0x5bbc10['getSnapshot'](),_0x4b2cc8=_0x171a9f['tables'][_0x5d8cba][_0x957ca9(0x38b)][_0x455666][_0x957ca9(0x33a)],_0x2f4ff4=new W()['deleteView'](_0x171a9f,_0x5d8cba,_0x455666),_0x2d0035=new z()[_0x957ca9(0x2aa)](_0x171a9f,_0x2f4ff4),_0x1ff356={'historyAction':_0x957ca9(0x438),'unitId':_0xae219,'op':_0x2f4ff4,'viewType':_0x4b2cc8},_0x5a05c3={'historyAction':_0x957ca9(0x26f),'unitId':_0xae219,'op':_0x2d0035,'viewType':_0x4b2cc8};return _0x103fef['syncExecuteCommand'](Q['id'],_0x1ff356)?(_0xec3305[_0x957ca9(0x3f4)](_0xae219),_0x5c7216[_0x957ca9(0x519)]({'unitID':_0xae219,'undoMutations':[{'id':Q['id'],'params':_0x5a05c3}],'redoMutations':[{'id':Q['id'],'params':_0x1ff356}]}),!0x0):!0x1;}},Xa={'id':_0x354fcb(0x1d1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3dba74,_0x3c805e)=>{const _0x4695c0=_0x354fcb;if(!_0x3c805e)return!0x1;let _0x5b91b1=_0x3dba74['get'](_0x3414e2),{unitId:_0x23735a,tableId:_0x175c40,sourceFieldId:_0x1da5b1,field:_0x4156e6,index:_0xd8f6b5,viewIndexes:_0x523806}=_0x3c805e,_0x448a9c=_0x5b91b1[_0x4695c0(0x2e5)](_0x23735a,_0x28d752[_0x4695c0(0x201)]);if(!_0x448a9c||!$(_0x448a9c,_0x175c40,{'fieldIds':[_0x1da5b1]})||_0x1da5b1===_0x3b44b5||_0x448a9c[_0x4695c0(0x1f9)]()['tables'][_0x175c40][_0x4695c0(0x480)][_0x4156e6['id']]||_0xd8f6b5===0x0||!ha(_0x448a9c,_0x175c40,_0x4156e6))return!0x1;let _0x452cb1=_0x3dba74[_0x4695c0(0x4a8)](_0x3ff846),_0x3da0a9=_0x3dba74[_0x4695c0(0x4a8)](_0x5153d9),_0x3e36d7=_0x448a9c[_0x4695c0(0x1f9)](),_0x287418=new W()[_0x4695c0(0x199)](_0x3e36d7,_0x175c40,_0x1da5b1,{'field':_0x4156e6,'index':_0xd8f6b5,'viewIndexes':_0x523806}),_0x2025da=new z()[_0x4695c0(0x2aa)](_0x3e36d7,_0x287418),_0x207180={'unitId':_0x23735a,'op':_0x287418},_0x8af91b={'unitId':_0x23735a,'op':_0x2025da};return _0x452cb1[_0x4695c0(0x4c6)](Q['id'],_0x207180)?(_0x5b91b1[_0x4695c0(0x3f4)](_0x23735a),_0x3da0a9['pushUndoRedo']({'unitID':_0x23735a,'undoMutations':[{'id':Q['id'],'params':_0x8af91b}],'redoMutations':[{'id':Q['id'],'params':_0x207180}]}),!0x0):!0x1;}},Za={'id':_0x354fcb(0x2fa),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xaf1a27,_0x2f57cd)=>{const _0x30168b=_0x354fcb;if(!_0x2f57cd)return!0x1;let _0x26898c=_0xaf1a27[_0x30168b(0x4a8)](_0x3414e2),{unitId:_0x3cea23,tableId:_0x28ce4f,sourceRecordId:_0x263f92,record:_0x415531}=_0x2f57cd,_0x29f3a1=_0x26898c[_0x30168b(0x2e5)](_0x3cea23,_0x28d752[_0x30168b(0x201)]);if(!_0x29f3a1||!$(_0x29f3a1,_0x28ce4f,{'recordIds':[_0x263f92]})||!_a(_0x29f3a1,_0x28ce4f,_0x415531))return!0x1;let _0x263ae6=_0xaf1a27[_0x30168b(0x4a8)](_0x3ff846),_0x4bb6fe=_0xaf1a27[_0x30168b(0x4a8)](_0x5153d9),_0x2a9883=_0x29f3a1[_0x30168b(0x1f9)](),_0x2aa80f=va(_0x415531),_0x32d13e=Qe(_0x2a9883['tables'][_0x28ce4f],[_0x2aa80f]),_0x51a12f=new W()['duplicateRecord'](_0x2a9883,_0x28ce4f,_0x263f92,_0x2aa80f),_0x365954=new z()['invertOp'](_0x2a9883,_0x51a12f),_0x405aa9={'unitId':_0x3cea23,'op':_0x51a12f,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e:void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x2f57cd[_0x30168b(0x4cd)]??'ui':void 0x0},_0x18f5e0={..._0x405aa9,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x29f):void 0x0},_0x46bcb7={'unitId':_0x3cea23,'op':_0x365954,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e['map'](_0xa4d85c=>({..._0xa4d85c,'oldParentRecordId':_0xa4d85c['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x37e):void 0x0};return _0x263ae6[_0x30168b(0x4c6)](Q['id'],_0x405aa9)?(_0x26898c[_0x30168b(0x3f4)](_0x3cea23),_0x4bb6fe[_0x30168b(0x519)]({'unitID':_0x3cea23,'undoMutations':[{'id':Q['id'],'params':_0x46bcb7}],'redoMutations':[{'id':Q['id'],'params':_0x18f5e0}]}),!0x0):!0x1;}},Qa={'id':_0x354fcb(0x45d),'type':_0x3e23cf['COMMAND'],'handler'(_0x748279,_0xee54d2){const _0x52c269=_0x354fcb;if(!_0xee54d2)return!0x1;let _0x3a994b=_0x748279[_0x52c269(0x4a8)](_0x3414e2),{unitId:_0x9e353e,tableId:_0x492cbb,viewId:_0x43f8fb,ensureEndDateField:_0x26b8e9}=_0xee54d2,_0x427fd0=_0x3a994b[_0x52c269(0x2e5)](_0x9e353e,_0x28d752[_0x52c269(0x201)]);if(!_0x427fd0||!$(_0x427fd0,_0x492cbb,{'viewIds':[_0x43f8fb]}))return!0x1;let _0x25755f=_0x427fd0[_0x52c269(0x1f9)](),_0x3da82d=_0x25755f[_0x52c269(0x2ba)][_0x492cbb],_0x362842=_0x3da82d==null?void 0x0:_0x3da82d[_0x52c269(0x38b)][_0x43f8fb];if(!_0x3da82d||!_0x362842||_0x362842[_0x52c269(0x33a)]!=='calendar'&&_0x362842[_0x52c269(0x33a)]!==_0x52c269(0x3b0))return!0x1;let _0x501af2=Ia(_0x3da82d,_0x362842,_0x26b8e9===!0x0);if(!_0x501af2['changed'])return!0x1;let _0x825fc=_0x748279['get'](_0x3ff846),_0x531050=_0x748279['get'](_0x5153d9),_0x1e9b23=new W(),_0x2017d7=[..._0x501af2[_0x52c269(0x480)][_0x52c269(0x29b)](_0x1c8ff9=>_0x1e9b23[_0x52c269(0x2c0)](_0x25755f,_0xee54d2[_0x52c269(0x1c3)],{'field':_0x1c8ff9})),$a([...eo(_0xee54d2[_0x52c269(0x1c3)],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x342)],_0x362842[_0x52c269(0x342)],_0x501af2[_0x52c269(0x342)])];_0x501af2['fieldOrder']&&_0x2017d7['push']($a([...eo(_0xee54d2['tableId'],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x1e1)],_0x362842[_0x52c269(0x1e1)],_0x501af2[_0x52c269(0x1e1)]));let _0x3dc2da=R(_0x2017d7),_0x33e338=new z()[_0x52c269(0x2aa)](_0x25755f,_0x3dc2da),_0x50b8d3={'unitId':_0x9e353e,'op':_0x3dc2da},_0x5d1368={'unitId':_0x9e353e,'op':_0x33e338};return _0x825fc['syncExecuteCommand'](Q['id'],_0x50b8d3)?(_0x3a994b[_0x52c269(0x3f4)](_0x9e353e),_0x531050[_0x52c269(0x519)]({'unitID':_0x9e353e,'undoMutations':[{'id':Q['id'],'params':_0x5d1368}],'redoMutations':[{'id':Q['id'],'params':_0x50b8d3}]}),!0x0):!0x1;}};function $a(_0x52a463,_0x3c9a97,_0x4b4415){const _0x1ac691=_0x354fcb;return _0x3c9a97===void 0x0?_0x370803[_0x1ac691(0x207)](_0x52a463,_0x4b4415):_0x370803[_0x1ac691(0x333)](_0x52a463,_0x3c9a97,_0x4b4415);}function eo(_0x5b7ca4,_0x545f00){const _0x53287c=_0x354fcb;return[_0x53287c(0x2ba),_0x5b7ca4,'views',_0x545f00];}const to={'id':_0x354fcb(0x4b3),'type':_0x3e23cf['COMMAND'],'handler':(_0x4c5305,_0x2f3825)=>{const _0x1c6625=_0x354fcb;if(!_0x2f3825)return!0x1;let _0x223060=_0x4c5305[_0x1c6625(0x4a8)](_0x3414e2),{unitId:_0x4ea858,tableId:_0x5a1caf,fieldId:_0x1a3dce,target:_0x4254fa}=_0x2f3825,_0x170056=_0x223060['getUnit'](_0x4ea858,_0x28d752[_0x1c6625(0x201)]),_0x43eec4=_0x4254fa[_0x1c6625(0x381)]??_0x4254fa[_0x1c6625(0x27b)];if(!_0x170056||!!_0x4254fa[_0x1c6625(0x381)]==!!_0x4254fa[_0x1c6625(0x27b)]||!_0x43eec4||_0x43eec4===_0x1a3dce||_0x1a3dce===_0x3b44b5||_0x4254fa[_0x1c6625(0x381)]===_0x3b44b5||!$(_0x170056,_0x5a1caf,{'fieldIds':[_0x1a3dce,_0x43eec4]}))return!0x1;let _0x128da3=_0x4c5305[_0x1c6625(0x4a8)](_0x3ff846),_0x3c9330=_0x4c5305[_0x1c6625(0x4a8)](_0x5153d9),_0x5e8189=_0x170056[_0x1c6625(0x1f9)](),_0x119fca=new W()[_0x1c6625(0x399)](_0x5e8189,_0x5a1caf,_0x1a3dce,_0x4254fa),_0x3b2e36=new z()['invertOp'](_0x5e8189,_0x119fca),_0x30b13e={'unitId':_0x4ea858,'op':_0x119fca},_0x29d436={'unitId':_0x4ea858,'op':_0x3b2e36};return _0x128da3[_0x1c6625(0x4c6)](Q['id'],_0x30b13e)?(_0x223060[_0x1c6625(0x3f4)](_0x4ea858),_0x3c9330[_0x1c6625(0x519)]({'unitID':_0x4ea858,'undoMutations':[{'id':Q['id'],'params':_0x29d436}],'redoMutations':[{'id':Q['id'],'params':_0x30b13e}]}),!0x0):!0x1;}},no={'id':_0x354fcb(0x368),'type':_0x3e23cf['COMMAND'],'handler':(_0x5a635f,_0x38604c)=>{const _0x10554c=_0x354fcb;var _0x31b1f3;if(!_0x38604c)return!0x1;let {unitId:_0xb22739,tableId:_0x4ecb87,recordId:_0x4fc00c,parentRecordId:_0x5770be,orderKey:_0x41ec6b}=_0x38604c,_0x2db3b1=_0x5a635f['get'](_0x3414e2),_0x5a53d1=_0x2db3b1[_0x10554c(0x2e5)](_0xb22739,_0x28d752[_0x10554c(0x201)]);if(!_0x5a53d1||!$(_0x5a53d1,_0x4ecb87,{'recordIds':[_0x4fc00c,..._0x5770be?[_0x5770be]:[]]}))throw new P('missingRecord');let _0x425442=_0x5a53d1[_0x10554c(0x1f9)](),_0x5632aa=_0x425442[_0x10554c(0x2ba)][_0x4ecb87],_0x2cbfb8=qe(_0x5632aa),_0x4175d1=_0x2cbfb8??_0x38604c[_0x10554c(0x46e)]??Je(_0x5632aa);if(_0x2cbfb8&&_0x38604c['fieldId']&&_0x38604c[_0x10554c(0x46e)]!==_0x2cbfb8||_0x5632aa[_0x10554c(0x480)][_0x4175d1]&&!F(_0x5632aa,_0x4175d1))throw new P(_0x10554c(0x4a7));let _0x4f4e3f=tt(_0x5632aa,_0x4175d1),_0x3bf6c7=it(_0x4f4e3f,_0x4fc00c,_0x5770be);if(!_0x3bf6c7[_0x10554c(0x35c)])throw new P(_0x3bf6c7['reason']===_0x3f9b5e['SelfParent']?'selfParent':_0x3bf6c7[_0x10554c(0x2d9)]===_0x3f9b5e[_0x10554c(0x270)]?_0x10554c(0x363):_0x10554c(0x228));let _0x1da767=_0x4f4e3f[_0x10554c(0x36e)]['get'](_0x4fc00c)??null,_0x375be8=_0x5632aa[_0x10554c(0x45a)][_0x4fc00c][_0x10554c(0x3ef)];if(_0x1da767===_0x5770be&&(_0x41ec6b===void 0x0||_0x41ec6b===_0x375be8))return!0x0;let _0x3f7923=_0x1da767!==_0x5770be,_0x34c0da=_0x41ec6b!==void 0x0&&_0x41ec6b!==_0x375be8,_0x1bd6f6=new W(),_0x2e4013=[],_0x2520eb=_0x5632aa[_0x10554c(0x480)][_0x4175d1],_0x2cbf12=_0x3f7923&&(!_0x2520eb||((_0x31b1f3=N(_0x2520eb))==null?void 0x0:_0x31b1f3[_0x10554c(0x274)])!==_0x170c14[_0x10554c(0x3a0)])?_0x2520eb?_0x1bd6f6[_0x10554c(0x409)](_0x425442,_0x4ecb87,_0x4175d1,{'config':{..._0x2520eb[_0x10554c(0x342)],'relationRole':_0x170c14[_0x10554c(0x3a0)]}}):_0x5a635f[_0x10554c(0x4a8)](Kr)[_0x10554c(0x20a)](_0x5a53d1,_0x4ecb87,Ye(_0x5632aa,_0x4175d1,_0x38604c[_0x10554c(0x398)]),_0x5632aa[_0x10554c(0x1e1)][_0x10554c(0x458)]):null;_0x2cbf12&&_0x2e4013['push'](_0x2cbf12),_0x3f7923&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6['updateCell'](_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1,_0x5770be?Re([_0x5770be]):'')),_0x34c0da&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6[_0x10554c(0x229)](_0x425442,_0x4ecb87,_0x4fc00c,_0x41ec6b));let _0x207867=R(_0x2e4013),_0x3fd9b8={'tableId':_0x4ecb87,'fieldId':_0x4175d1,'recordId':_0x4fc00c,'oldParentRecordId':_0x1da767,'parentRecordId':_0x5770be},_0x41efd7={'unitId':_0xb22739,'op':_0x207867,'trigger':no['id'],'hierarchyChanges':[_0x3fd9b8],'source':_0x38604c[_0x10554c(0x4cd)]??'ui'},_0x5ad8ef={..._0x41efd7,'source':_0x10554c(0x29f)};if(!_0x5a635f['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x41efd7))return!0x1;let _0x4e04ae=_0x5a53d1[_0x10554c(0x1f9)](),_0x1d9180=[];_0x3f7923&&_0x1d9180[_0x10554c(0x1f3)](ro(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1)),_0x34c0da&&_0x1d9180[_0x10554c(0x1f3)](io(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c)),_0x2cbf12&&_0x1d9180[_0x10554c(0x1f3)](new z()[_0x10554c(0x2aa)](_0x425442,_0x2cbf12));let _0x5c6776={'unitId':_0xb22739,'op':R(_0x1d9180),'trigger':no['id'],'hierarchyChanges':[{..._0x3fd9b8,'oldParentRecordId':_0x5770be,'parentRecordId':_0x1da767}],'source':'undo'};return _0x2db3b1[_0x10554c(0x3f4)](_0xb22739),_0x5a635f['get'](_0x5153d9)['pushUndoRedo']({'unitID':_0xb22739,'undoMutations':[{'id':Q['id'],'params':_0x5c6776}],'redoMutations':[{'id':Q['id'],'params':_0x5ad8ef}]}),!0x0;}};function ro(_0x40b907,_0x3117b2,_0x1ceb10,_0x111f5e,_0x59f36f){const _0x369dd2=_0x354fcb;var _0x12ec30,_0xefcbcd,_0x5625ba,_0x16ada7,_0x525e4d,_0x4a01ee,_0x33e579,_0x1baade;let _0x5cf63f=_0x40b907[_0x369dd2(0x2ba)][_0x1ceb10],_0x4a8a0c=_0x3117b2[_0x369dd2(0x2ba)][_0x1ceb10],_0x34ebaf=(_0x12ec30=_0x5cf63f[_0x369dd2(0x290)])==null?void 0x0:_0x12ec30[_0x111f5e],_0x42ab19=(_0xefcbcd=_0x5cf63f[_0x369dd2(0x288)])==null?void 0x0:_0xefcbcd[_0x59f36f],_0x3fa8dd=(_0x5625ba=_0x4a8a0c[_0x369dd2(0x290)])==null?void 0x0:_0x5625ba[_0x111f5e],_0x6e0e65=(_0x16ada7=_0x4a8a0c[_0x369dd2(0x288)])==null?void 0x0:_0x16ada7[_0x59f36f],_0x31a58a=_0x34ebaf==null||_0x42ab19==null||(_0x525e4d=_0x5cf63f[_0x369dd2(0x1cf)])==null||(_0x525e4d=_0x525e4d[_0x34ebaf])==null?void 0x0:_0x525e4d[_0x42ab19],_0x548242=_0x3fa8dd==null||_0x6e0e65==null||(_0x4a01ee=_0x4a8a0c['cellData'])==null||(_0x4a01ee=_0x4a01ee[_0x3fa8dd])==null?void 0x0:_0x4a01ee[_0x6e0e65],_0x402def=(_0x33e579=_0x5cf63f['records'][_0x111f5e])==null?void 0x0:_0x33e579[_0x369dd2(0x1da)][_0x59f36f],_0xd9d79=(_0x1baade=_0x4a8a0c['records'][_0x111f5e])==null?void 0x0:_0x1baade[_0x369dd2(0x1da)][_0x59f36f],_0x521aa5=[],_0x441ab6=ao(_0x34ebaf==null||_0x42ab19==null?null:U['cellData'](_0x1ceb10,_0x34ebaf,_0x42ab19),_0x31a58a,_0x548242);_0x441ab6&&_0x521aa5[_0x369dd2(0x1f3)](_0x441ab6);let _0x4add43=ao(U[_0x369dd2(0x4eb)](_0x1ceb10,_0x111f5e,_0x59f36f),_0x402def,_0xd9d79);return _0x4add43&&_0x521aa5[_0x369dd2(0x1f3)](_0x4add43),R(_0x521aa5);}function io(_0x5fe6f,_0x17fc84,_0x3c8c7a,_0x2d4069){const _0x3e8716=_0x354fcb;var _0x3de692,_0x426c55;let _0x55e8c2=_0x5fe6f[_0x3e8716(0x2ba)][_0x3c8c7a],_0x3377af=_0x17fc84[_0x3e8716(0x2ba)][_0x3c8c7a];return R([ao([...U[_0x3e8716(0x52b)](_0x3c8c7a,_0x2d4069),_0x3e8716(0x3ef)],(_0x3de692=_0x55e8c2[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x3de692[_0x3e8716(0x3ef)],(_0x426c55=_0x3377af[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x426c55['orderKey']),ao([...U[_0x3e8716(0x513)](_0x3c8c7a),_0x3e8716(0x22d)],_0x55e8c2[_0x3e8716(0x22d)],_0x3377af['recordOrder'])][_0x3e8716(0x397)](_0x5ef3c2=>!!_0x5ef3c2));}function ao(_0x3a28db,_0x3ad04c,_0x14bc0c){const _0x301064=_0x354fcb;if(!_0x3a28db||_0x3ad04c===void 0x0&&_0x14bc0c===void 0x0)return null;let _0x3abca5=_0x426ad9[_0x301064(0x448)]();return _0x14bc0c===void 0x0?_0x3abca5[_0x301064(0x246)](_0x3a28db,_0x3ad04c):_0x3ad04c===void 0x0?_0x3abca5[_0x301064(0x207)](_0x3a28db,_0x14bc0c):_0x3abca5['replaceOp'](_0x3a28db,_0x3ad04c,_0x14bc0c);}const oo={'id':_0x354fcb(0x48e),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xdf8b53,_0x3a6625)=>{const _0x5a063d=_0x354fcb;if(!_0x3a6625)return!0x1;let _0x5db2d1=_0xdf8b53[_0x5a063d(0x4a8)](_0x3414e2),{unitId:_0x3d9f7e,tableId:_0xb0766,viewId:_0x4571d0,target:_0x26714d}=_0x3a6625,_0x5a9183=_0x5db2d1[_0x5a063d(0x2e5)](_0x3d9f7e,_0x28d752[_0x5a063d(0x201)]),_0x28cd43=_0x26714d[_0x5a063d(0x2f6)]??_0x26714d[_0x5a063d(0x391)];if(!_0x5a9183||!_0x28cd43||_0x28cd43===_0x4571d0||!$(_0x5a9183,_0xb0766,{'viewIds':[_0x4571d0,_0x28cd43]}))return!0x1;let _0xaa1c99=_0xdf8b53[_0x5a063d(0x4a8)](_0x3ff846),_0x50f2e4=_0xdf8b53[_0x5a063d(0x4a8)](_0x5153d9),_0x56c390=_0x5a9183[_0x5a063d(0x1f9)](),_0x588aa7=new W()['moveView'](_0x56c390,_0xb0766,_0x4571d0,_0x26714d),_0x5c4e62=new z()['invertOp'](_0x56c390,_0x588aa7),_0x554b3b={'unitId':_0x3d9f7e,'op':_0x588aa7},_0x29025f={'unitId':_0x3d9f7e,'op':_0x5c4e62};return _0xaa1c99[_0x5a063d(0x4c6)](Q['id'],_0x554b3b)?(_0x5db2d1[_0x5a063d(0x3f4)](_0x3d9f7e),_0x50f2e4[_0x5a063d(0x519)]({'unitID':_0x3d9f7e,'undoMutations':[{'id':Q['id'],'params':_0x29025f}],'redoMutations':[{'id':Q['id'],'params':_0x554b3b}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x37fb73,_0x53b558)=>{const _0x25f328=_0x354fcb;if(!_0x53b558)return!0x1;let _0x59ead8=_0x37fb73['get'](_0x3414e2),{unitId:_0x19a7e5,tableId:_0xf87020,name:_0x284e99}=_0x53b558,_0x18d2e6=_0x59ead8[_0x25f328(0x2e5)](_0x19a7e5,_0x28d752[_0x25f328(0x201)]);if(!_0x18d2e6||!$(_0x18d2e6,_0xf87020)||!Oa(_0x18d2e6[_0x25f328(0x1f9)](),_0x284e99,_0xf87020)[_0x25f328(0x35c)])return!0x1;let _0x12a1d5=_0x37fb73[_0x25f328(0x4a8)](_0x3ff846),_0x14e801=_0x37fb73[_0x25f328(0x4a8)](_0x5153d9),_0x5df1e2=_0x18d2e6[_0x25f328(0x1f9)](),_0x310e93=new W()['renameTable'](_0x5df1e2,_0xf87020,_0x284e99),_0x27ca1b=new z()[_0x25f328(0x2aa)](_0x5df1e2,_0x310e93),_0x53626a={'unitId':_0x19a7e5,'op':_0x310e93},_0x1a5afd={'unitId':_0x19a7e5,'op':_0x27ca1b};return _0x12a1d5[_0x25f328(0x4c6)](Q['id'],_0x53626a)?(_0x59ead8[_0x25f328(0x3f4)](_0x19a7e5),_0x14e801[_0x25f328(0x519)]({'unitID':_0x19a7e5,'undoMutations':[{'id':Q['id'],'params':_0x1a5afd}],'redoMutations':[{'id':Q['id'],'params':_0x53626a}]}),!0x0):!0x1;}},co={'id':_0x354fcb(0x433),'type':_0x3e23cf['COMMAND'],'handler':(_0x54e0ad,_0x50e8d2)=>{const _0x2124e2=_0x354fcb;if(!_0x50e8d2)return!0x1;let _0x30e1ec=_0x54e0ad[_0x2124e2(0x4a8)](_0x3414e2),{unitId:_0xf46a8e,tableId:_0x99b171,viewId:_0x24a225,name:_0x134844}=_0x50e8d2,_0x5a905f=_0x30e1ec[_0x2124e2(0x2e5)](_0xf46a8e,_0x28d752[_0x2124e2(0x201)]);if(!_0x5a905f||!$(_0x5a905f,_0x99b171,{'viewIds':[_0x24a225]}))return!0x1;let _0x17631e=_0x54e0ad[_0x2124e2(0x4a8)](_0x3ff846),_0x24b004=_0x54e0ad[_0x2124e2(0x4a8)](_0x5153d9),_0x258a72=_0x5a905f['getSnapshot'](),_0x364395=new W()[_0x2124e2(0x370)](_0x258a72,_0x99b171,_0x24a225,_0x134844),_0x3b619d=new z()['invertOp'](_0x258a72,_0x364395),_0x11f6a9={'unitId':_0xf46a8e,'op':_0x364395},_0x2b4bff={'unitId':_0xf46a8e,'op':_0x3b619d};return _0x17631e[_0x2124e2(0x4c6)](Q['id'],_0x11f6a9)?(_0x30e1ec[_0x2124e2(0x3f4)](_0xf46a8e),_0x24b004[_0x2124e2(0x519)]({'unitID':_0xf46a8e,'undoMutations':[{'id':Q['id'],'params':_0x2b4bff}],'redoMutations':[{'id':Q['id'],'params':_0x11f6a9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2f56cc,_0x67d97d)=>{const _0x2960f0=_0x354fcb;if(!_0x67d97d)return!0x1;let _0x7b7705=_0x2f56cc[_0x2960f0(0x4a8)](_0x3414e2),{unitId:_0x47e351,tableId:_0xf7f4a1,viewId:_0x520360,fieldId:_0x8f2b65}=_0x67d97d,_0x65c667=_0x7b7705[_0x2960f0(0x2e5)](_0x47e351,_0x28d752[_0x2960f0(0x201)]);if(!_0x65c667||!$(_0x65c667,_0xf7f4a1,{'viewIds':[_0x520360],'fieldIds':[_0x8f2b65]}))return!0x1;let _0x2212ac=_0x2f56cc['get'](_0x3ff846),_0x17d3ea=_0x2f56cc[_0x2960f0(0x4a8)](_0x5153d9),_0x6cde4b=_0x65c667[_0x2960f0(0x1f9)](),_0x4dc9b5=new W()['updateViewConfig'](_0x6cde4b,_0xf7f4a1,_0x520360,{'groupFieldId':_0x8f2b65}),_0x58fe50=new z()[_0x2960f0(0x2aa)](_0x6cde4b,_0x4dc9b5),_0x1a984d={'unitId':_0x47e351,'op':_0x4dc9b5},_0x1d6bab={'unitId':_0x47e351,'op':_0x58fe50};return _0x2212ac[_0x2960f0(0x4c6)](Q['id'],_0x1a984d)?(_0x7b7705[_0x2960f0(0x3f4)](_0x47e351),_0x17d3ea[_0x2960f0(0x519)]({'unitID':_0x47e351,'undoMutations':[{'id':Q['id'],'params':_0x1d6bab}],'redoMutations':[{'id':Q['id'],'params':_0x1a984d}]}),!0x0):!0x1;}},uo={'id':'base.command.set-base-name','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x58b85e,_0x2a359d)=>{const _0x5baae1=_0x354fcb;if(!_0x2a359d)return!0x1;let _0xf889c9=_0x58b85e['get'](_0x3414e2),_0x373ca9=_0xf889c9[_0x5baae1(0x2e5)](_0x2a359d[_0x5baae1(0x278)],_0x28d752[_0x5baae1(0x201)]);if(!_0x373ca9)return!0x1;let _0x390c72=_0x373ca9[_0x5baae1(0x1f9)]()[_0x5baae1(0x1e0)];if(_0x390c72===_0x2a359d[_0x5baae1(0x1e0)])return!0x0;let _0x313438=new W(),_0x3bfe15=new z(),_0x1f73cb=[],_0x104a27=[],_0x3c4dfe=[_0x373ca9,..._0xf889c9[_0x5baae1(0x3c4)](_0x28d752[_0x5baae1(0x201)])[_0x5baae1(0x397)](_0x665e9a=>_0x665e9a[_0x5baae1(0x422)]()!==_0x2a359d[_0x5baae1(0x278)])];for(let _0x22ec3f of _0x3c4dfe){let _0x562c80=_0x22ec3f['getSnapshot'](),_0x574b4d=_0x22ec3f===_0x373ca9?_0x313438['setBaseName'](_0x562c80,_0x2a359d[_0x5baae1(0x1e0)]):_0x313438[_0x5baae1(0x1ed)](_0x562c80,_0x390c72,_0x2a359d[_0x5baae1(0x1e0)]);_0x574b4d&&(_0x1f73cb[_0x5baae1(0x1f3)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x574b4d,'trigger':uo['id']}}),_0x104a27[_0x5baae1(0x340)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x3bfe15[_0x5baae1(0x2aa)](_0x562c80,_0x574b4d),'trigger':uo['id']}}));}let _0x23028f=_0x58b85e[_0x5baae1(0x4a8)](_0x3ff846),_0x4f6be9=_0x58b85e[_0x5baae1(0x4a8)](_0x5153d9),_0xdf69c1=_0x4f6be9['__tempBatchingUndoRedo'](_0x2a359d[_0x5baae1(0x278)]);try{return _0x47a83f(_0x1f73cb,_0x23028f)[_0x5baae1(0x406)]?(_0xf889c9[_0x5baae1(0x3f4)](_0x2a359d[_0x5baae1(0x278)]),_0x4f6be9[_0x5baae1(0x519)]({'unitID':_0x2a359d[_0x5baae1(0x278)],'undoMutations':_0x104a27,'redoMutations':_0x1f73cb}),!0x0):!0x1;}finally{_0xdf69c1[_0x5baae1(0x3d6)]();}}},fo={'type':_0x3e23cf['COMMAND'],'id':_0x354fcb(0x3eb),async 'handler'(_0x5b4e2b,_0x498664){const _0xfcb841=_0x354fcb;if(!_0x498664||!Tr[_0xfcb841(0x231)](_0x498664[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664[_0xfcb841(0x278)]&&_0x498664[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)]||_0x498664[_0xfcb841(0x3cd)]&&(!['all','owner','members']['includes'](_0x498664[_0xfcb841(0x3cd)][_0xfcb841(0x1db)])||_0x498664[_0xfcb841(0x3cd)]['strategies'][_0xfcb841(0x257)](_0x2900a9=>!Tr[_0xfcb841(0x231)](_0x2900a9[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664['unitId']&&_0x2900a9[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)])))return!0x1;let _0x3c5766=Pr(_0x498664[_0xfcb841(0x278)],_0x498664[_0xfcb841(0x225)],_0x498664[_0xfcb841(0x18a)]),_0x52856d={'unitId':_0x498664[_0xfcb841(0x278)],'objectId':_0x498664[_0xfcb841(0x225)],'objectType':_0x3c5766[_0xfcb841(0x33a)]},_0x20668a=_0x5b4e2b[_0xfcb841(0x4a8)](_0x1e71b2);return _0x498664[_0xfcb841(0x261)]?await _0x20668a[_0xfcb841(0x261)](_0x52856d):_0x498664[_0xfcb841(0x3cd)]?await _0x20668a[_0xfcb841(0x304)](_0x52856d,_0x498664[_0xfcb841(0x3cd)]):await _0x20668a[_0xfcb841(0x3a9)](_0x52856d,_0x3c5766,_0x498664[_0xfcb841(0x416)]),!0x0;}},po={'type':_0x3e23cf['COMMAND'],'id':'base.command.set-permissions',async 'handler'(_0x100bd8,_0x277623){const _0x22fa11=_0x354fcb;if(!(_0x277623!=null&&_0x277623[_0x22fa11(0x278)])||!Array['isArray'](_0x277623[_0x22fa11(0x3c8)])||!_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x458)]||_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x257)](_0x30d58d=>!(_0x30d58d!=null&&_0x30d58d[_0x22fa11(0x225)])||_0x30d58d[_0x22fa11(0x225)]===_0x277623[_0x22fa11(0x278)]||_0x30d58d['policy']!==null&&(!_0x30d58d[_0x22fa11(0x3cd)]||![_0x22fa11(0x41e),'owner',_0x22fa11(0x437)][_0x22fa11(0x231)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x1db)])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)]['collaborators'])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)])||_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)][_0x22fa11(0x257)](_0x6a90c8=>_0x6a90c8[_0x22fa11(0x18a)]!==_0x391870['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x100bd8[_0x22fa11(0x4a8)](_0x1e71b2)[_0x22fa11(0x506)](_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x29b)](_0x1dbc02=>{const _0xc9760e=_0x22fa11;let _0x4b7c47=Pr(_0x277623[_0xc9760e(0x278)],_0x1dbc02['objectId'],_0x391870['Edit']);return{'unitId':_0x277623[_0xc9760e(0x278)],'objectId':_0x1dbc02[_0xc9760e(0x225)],'objectType':_0x4b7c47[_0xc9760e(0x33a)],'policy':_0x1dbc02[_0xc9760e(0x3cd)]};}));}};function mo(_0x4a7605,_0x169fa9){const _0x492735=_0x354fcb;let _0x1ae5d4=L(_0x30f9db[_0x492735(0x355)](_0x4a7605)),_0x2764ed=new Map();return _0x169fa9[_0x492735(0x461)](_0x2624d7=>{const _0x3b92fe=_0x492735;var _0x21b593,_0x4df58c;let _0x4f57a0='recordId'in _0x2624d7?_0x2624d7[_0x3b92fe(0x4bb)]:(_0x21b593=_0x1ae5d4[_0x3b92fe(0x474)])==null?void 0x0:_0x21b593[_0x2624d7[_0x3b92fe(0x21b)]],_0xb1302d=_0x3b92fe(0x46e)in _0x2624d7?_0x2624d7[_0x3b92fe(0x46e)]:(_0x4df58c=_0x1ae5d4[_0x3b92fe(0x242)])==null?void 0x0:_0x4df58c[_0x2624d7[_0x3b92fe(0x1ea)]],_0x4322f6=_0xb1302d?_0x1ae5d4[_0x3b92fe(0x480)][_0xb1302d]:void 0x0;if(!_0x4f57a0||!_0xb1302d||!_0x4322f6||!_0x1ae5d4[_0x3b92fe(0x45a)][_0x4f57a0])return;let _0x18c62a=xt(_0x2624d7[_0x3b92fe(0x416)],_0x4322f6),_0x13c7b7=wt(_0x2624d7[_0x3b92fe(0x416)],_0x18c62a,_0x4322f6,_0x1ae5d4,_0x4f57a0),_0x98fb93=_0x2764ed['get'](_0x4f57a0)??{};_0x98fb93[_0xb1302d]=_0x13c7b7,_0x2764ed['set'](_0x4f57a0,_0x98fb93);}),[..._0x2764ed][_0x492735(0x29b)](([_0x21018c,_0x14ffe7])=>({'recordId':_0x21018c,'values':_0x14ffe7}));}const ho={'id':_0x354fcb(0x527),'type':_0x3e23cf['COMMAND'],'handler'(_0x48e90c,_0x248de2){const _0x34225d=_0x354fcb;if(!_0x248de2)return!0x1;let _0x3a8cfb=_0x48e90c['get'](_0x3414e2),{unitId:_0x1d7a5b,tableId:_0x3695b9,patches:_0x1dd998}=_0x248de2,_0xdca6b1=_0x3a8cfb[_0x34225d(0x2e5)](_0x1d7a5b,_0x28d752['UNIVER_BASE']);if(!_0xdca6b1||!$(_0xdca6b1,_0x3695b9))return!0x1;let _0x522d17=_0x48e90c[_0x34225d(0x4a8)](_0x3ff846),_0x4af185=_0x48e90c[_0x34225d(0x4a8)](_0x5153d9),_0x150835=_0xdca6b1[_0x34225d(0x1f9)](),_0x4ae44d=L(_0x150835[_0x34225d(0x2ba)][_0x3695b9]),_0x361e23=_0x1dd998[_0x34225d(0x29b)](_0x4938d9=>{const _0x6f31fc=_0x34225d;var _0x45bb6c;return _0x6f31fc(0x4bb)in _0x4938d9?_0x4938d9[_0x6f31fc(0x4bb)]:(_0x45bb6c=_0x4ae44d[_0x6f31fc(0x474)])==null?void 0x0:_0x45bb6c[_0x4938d9[_0x6f31fc(0x21b)]];})[_0x34225d(0x397)](_0x3311f7=>_0x3311f7!=null),_0x2e8c15=_0x1dd998['map'](_0x5baef4=>{const _0x47e61c=_0x34225d;var _0x16b0f9;return _0x47e61c(0x46e)in _0x5baef4?_0x5baef4['fieldId']:(_0x16b0f9=_0x4ae44d[_0x47e61c(0x242)])==null?void 0x0:_0x16b0f9[_0x5baef4[_0x47e61c(0x1ea)]];})['filter'](_0x216f68=>_0x216f68!=null);if(_0x361e23[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||_0x2e8c15[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||!$(_0xdca6b1,_0x3695b9,{'recordIds':_0x361e23,'fieldIds':_0x2e8c15})||_0x1dd998[_0x34225d(0x257)]((_0x1ee261,_0x4d635d)=>!ga(_0xdca6b1,_0x3695b9,_0x2e8c15[_0x4d635d],_0x1ee261['value'])))return!0x1;let _0x355d32=Ze(_0x4ae44d,mo(_0x4ae44d,_0x1dd998)),_0x55bf89=_0x1dd998[_0x34225d(0x2a2)](_0x16c139=>{const _0x4f56ca=_0x34225d;var _0x470a08,_0x242408;if(_0x4f56ca(0x21b)in _0x16c139)return[_0x16c139];let _0x246be2=(_0x470a08=_0x4ae44d[_0x4f56ca(0x290)])==null?void 0x0:_0x470a08[_0x16c139['recordId']],_0x2a93d8=(_0x242408=_0x4ae44d[_0x4f56ca(0x288)])==null?void 0x0:_0x242408[_0x16c139[_0x4f56ca(0x46e)]];return _0x246be2==null||_0x2a93d8==null?[]:[{'row':_0x246be2,'col':_0x2a93d8,'value':_0x16c139[_0x4f56ca(0x416)]}];}),_0x3496da=new W()[_0x34225d(0x511)](_0x150835,_0x3695b9,_0x55bf89),_0x296e69=new z()[_0x34225d(0x2aa)](_0x150835,_0x3496da),_0x266074={'unitId':_0x1d7a5b,'op':_0x3496da,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32[_0x34225d(0x458)]?_0x355d32:void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x29f):void 0x0},_0x3fae15={'unitId':_0x1d7a5b,'op':_0x296e69,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32['length']?_0x355d32['map'](_0x334fb0=>({..._0x334fb0,'oldParentRecordId':_0x334fb0['parentRecordId'],'parentRecordId':_0x334fb0['oldParentRecordId']})):void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x37e):void 0x0},_0x274c81={..._0x266074,'source':_0x355d32[_0x34225d(0x458)]?_0x248de2[_0x34225d(0x4cd)]??'ui':void 0x0};return _0x522d17['syncExecuteCommand'](Q['id'],_0x274c81)?(_0x3a8cfb[_0x34225d(0x3f4)](_0x1d7a5b),_0x4af185['pushUndoRedo']({'unitID':_0x1d7a5b,'undoMutations':[{'id':Q['id'],'params':_0x3fae15}],'redoMutations':[{'id':Q['id'],'params':_0x266074}]}),!0x0):!0x1;}},go={'id':_0x354fcb(0x1d8),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xc20217,_0x23ccd4){const _0x5ce94e=_0x354fcb;if(!_0x23ccd4)return!0x1;let _0x268afb=_0xc20217['get'](_0x3414e2),{unitId:_0x4ddfa2,tableId:_0x1683af,patches:_0x3ba0e5}=_0x23ccd4,_0x428173=_0x268afb[_0x5ce94e(0x2e5)](_0x4ddfa2,_0x28d752[_0x5ce94e(0x201)]),_0x1fae4f=_0x3ba0e5[_0x5ce94e(0x29b)](_0x77d522=>_0x77d522['recordId']),_0x519798=_0x3ba0e5['flatMap'](_0x3858c6=>Object['keys'](_0x3858c6[_0x5ce94e(0x1da)]));if(!_0x428173||!$(_0x428173,_0x1683af,{'recordIds':_0x1fae4f,'fieldIds':_0x519798})||_0x3ba0e5['some'](_0x2055f5=>Object['entries'](_0x2055f5['values'])[_0x5ce94e(0x257)](([_0x158f52,_0x43bd16])=>!ga(_0x428173,_0x1683af,_0x158f52,_0x43bd16))))return!0x1;let _0x4f00db=Ze(_0x428173['getSnapshot']()[_0x5ce94e(0x2ba)][_0x1683af],_0x3ba0e5),_0x4eff50=_0xc20217[_0x5ce94e(0x4a8)](_0x3ff846),_0xceb277=_0xc20217[_0x5ce94e(0x4a8)](_0x5153d9),_0x2b31d9=_0xc20217[_0x5ce94e(0x4a8)](Kr)[_0x5ce94e(0x2be)](_0x428173,_0x1683af,_0x3ba0e5),_0x9127a2=new z()[_0x5ce94e(0x2aa)](_0x428173[_0x5ce94e(0x1f9)](),_0x2b31d9),_0x96876f={'unitId':_0x4ddfa2,'op':_0x2b31d9,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db:void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x23ccd4[_0x5ce94e(0x4cd)]??'ui':void 0x0},_0x1a4cbe={..._0x96876f,'source':_0x4f00db['length']?_0x5ce94e(0x29f):void 0x0},_0x431e6f={'unitId':_0x4ddfa2,'op':_0x9127a2,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db['map'](_0x4ed979=>({..._0x4ed979,'oldParentRecordId':_0x4ed979['parentRecordId'],'parentRecordId':_0x4ed979['oldParentRecordId']})):void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x5ce94e(0x37e):void 0x0};return _0x4eff50[_0x5ce94e(0x4c6)](Q['id'],_0x96876f)?(_0x268afb[_0x5ce94e(0x3f4)](_0x4ddfa2),_0xceb277[_0x5ce94e(0x519)]({'unitID':_0x4ddfa2,'undoMutations':[{'id':Q['id'],'params':_0x431e6f}],'redoMutations':[{'id':Q['id'],'params':_0x1a4cbe}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x3e23cf['COMMAND'],'handler':(_0x357bf9,_0x28845b)=>{const _0x747bbb=_0x354fcb;if(!_0x28845b)return!0x1;let {unitId:_0x306467,tableId:_0x4c697a,fieldId:_0x261cfe}=_0x28845b,_0x58954d=_0x357bf9[_0x747bbb(0x4a8)](_0x3414e2),_0x190b35=_0x58954d['getUnit'](_0x306467,_0x28d752[_0x747bbb(0x201)]);if(!_0x190b35||!$(_0x190b35,_0x4c697a))return!0x1;let _0x55b02d=_0x190b35['getSnapshot'](),_0x2c96a1=_0x55b02d[_0x747bbb(0x2ba)][_0x4c697a];if(_0x261cfe!==null&&!F(_0x2c96a1,_0x261cfe))throw new P('invalidField');if(qe(_0x2c96a1)===_0x261cfe)return!0x0;let _0x2e6843=new W(),_0x2f2b89=R(Object[_0x747bbb(0x1da)](_0x2c96a1[_0x747bbb(0x480)])['flatMap'](_0x180c9b=>{const _0xdf529f=_0x747bbb;if(!F(_0x2c96a1,_0x180c9b['id']))return[];let _0x40052b=N(_0x180c9b);if(!_0x40052b)return[];let _0x1ee681=_0x180c9b['id']===_0x261cfe;if(_0x40052b['relationRole']===_0x170c14[_0xdf529f(0x3a0)]===_0x1ee681)return[];let _0x5ec89b={..._0x180c9b[_0xdf529f(0x342)],'targetTableId':_0x40052b['targetTableId'],'multiple':_0x40052b['multiple']};return _0x1ee681?_0x5ec89b[_0xdf529f(0x274)]=_0x170c14[_0xdf529f(0x3a0)]:delete _0x5ec89b[_0xdf529f(0x274)],[_0x2e6843[_0xdf529f(0x409)](_0x55b02d,_0x4c697a,_0x180c9b['id'],{'config':_0x5ec89b})];})),_0x5ec537=new z()['invertOp'](_0x55b02d,_0x2f2b89),_0x2ecc1f={'unitId':_0x306467,'op':_0x2f2b89},_0x19d650={'unitId':_0x306467,'op':_0x5ec537};return _0x357bf9['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x2ecc1f)?(_0x58954d['focusUnit'](_0x306467),_0x357bf9[_0x747bbb(0x4a8)](_0x5153d9)[_0x747bbb(0x519)]({'unitID':_0x306467,'undoMutations':[{'id':Q['id'],'params':_0x19d650}],'redoMutations':[{'id':Q['id'],'params':_0x2ecc1f}]}),!0x0):!0x1;}},vo={'id':_0x354fcb(0x289),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x42e382,_0x25396d)=>{const _0x395caf=_0x354fcb;if(!_0x25396d)return!0x1;let _0x5cd9ef=_0x42e382[_0x395caf(0x4a8)](_0x3414e2),{unitId:_0x3aad90,tableId:_0x812d5b,viewId:_0x2441ca,fieldId:_0xcb49cb,target:_0xe211d4}=_0x25396d,_0x3b28d1=_0x5cd9ef[_0x395caf(0x2e5)](_0x3aad90,_0x28d752[_0x395caf(0x201)]),_0x2471ec=_0xe211d4[_0x395caf(0x381)]??_0xe211d4[_0x395caf(0x27b)];if(!_0x3b28d1||!_0x2471ec||_0x2471ec===_0xcb49cb||!$(_0x3b28d1,_0x812d5b,{'viewIds':[_0x2441ca],'fieldIds':[_0xcb49cb,_0x2471ec]}))return!0x1;let _0x3275b7=_0x3b28d1['getSnapshot']()[_0x395caf(0x2ba)][_0x812d5b],_0x23a02e=_0x3275b7[_0x395caf(0x480)][_0xcb49cb],_0x48affe=_0x3275b7['fields'][_0x2471ec];if(_0x23a02e[_0x395caf(0x1cb)]===!0x0||_0x23a02e[_0x395caf(0x33a)]===_0x19bf94[_0x395caf(0x44f)]||_0x48affe[_0x395caf(0x1cb)]===!0x0||_0x48affe['type']===_0x19bf94[_0x395caf(0x44f)])return!0x1;let _0x26293a=_0x42e382[_0x395caf(0x4a8)](_0x3ff846),_0x3e77f4=_0x42e382['get'](_0x5153d9),_0x3d521e=_0x3b28d1[_0x395caf(0x1f9)](),_0x85f42c=new W()[_0x395caf(0x457)](_0x3d521e,_0x812d5b,_0x2441ca,_0xcb49cb,_0xe211d4),_0x5e4644=new z()[_0x395caf(0x2aa)](_0x3d521e,_0x85f42c),_0x502b7a={'unitId':_0x3aad90,'op':_0x85f42c},_0x52a5bb={'unitId':_0x3aad90,'op':_0x5e4644};return _0x26293a['syncExecuteCommand'](Q['id'],_0x502b7a)?(_0x5cd9ef[_0x395caf(0x3f4)](_0x3aad90),_0x3e77f4[_0x395caf(0x519)]({'unitID':_0x3aad90,'undoMutations':[{'id':Q['id'],'params':_0x52a5bb}],'redoMutations':[{'id':Q['id'],'params':_0x502b7a}]}),!0x0):!0x1;}},yo={'id':_0x354fcb(0x31a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3965f4,_0x5e7a40){const _0x734ffe=_0x354fcb;if(!_0x5e7a40)return!0x1;let _0x2a2727=_0x3965f4[_0x734ffe(0x4a8)](_0x3414e2),{unitId:_0x57d23a,tableId:_0x48618b,viewId:_0x4dc27f,fieldId:_0x4fdd96,visible:_0x391a22}=_0x5e7a40,_0x509191=_0x2a2727[_0x734ffe(0x2e5)](_0x57d23a,_0x28d752['UNIVER_BASE']);if(!_0x509191||!$(_0x509191,_0x48618b,{'viewIds':[_0x4dc27f],'fieldIds':[_0x4fdd96]}))return!0x1;let _0x432cd=_0x509191['getSnapshot']()[_0x734ffe(0x2ba)][_0x48618b][_0x734ffe(0x480)][_0x4fdd96];if(_0x432cd[_0x734ffe(0x1cb)]===!0x0||_0x432cd[_0x734ffe(0x33a)]===_0x19bf94['RecordId'])return!0x1;let _0x1d671b=_0x3965f4[_0x734ffe(0x4a8)](_0x3ff846),_0x376249=_0x3965f4['get'](_0x5153d9),_0x2e61e1=_0x509191[_0x734ffe(0x1f9)](),_0x2cd421=new W()[_0x734ffe(0x4fc)](_0x2e61e1,_0x48618b,_0x4dc27f,_0x4fdd96,_0x391a22),_0x11d212=new z()['invertOp'](_0x2e61e1,_0x2cd421),_0x422e87={'unitId':_0x57d23a,'op':_0x2cd421},_0x1681b3={'unitId':_0x57d23a,'op':_0x11d212};return _0x1d671b[_0x734ffe(0x4c6)](Q['id'],_0x422e87)?(_0x2a2727[_0x734ffe(0x3f4)](_0x57d23a),_0x376249[_0x734ffe(0x519)]({'unitID':_0x57d23a,'undoMutations':[{'id':Q['id'],'params':_0x1681b3}],'redoMutations':[{'id':Q['id'],'params':_0x422e87}]}),!0x0):!0x1;}},bo={'id':_0x354fcb(0x29a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x19f596,_0x28f434)=>{const _0x1cca14=_0x354fcb;if(!_0x28f434)return!0x1;let _0x495c7c=_0x19f596[_0x1cca14(0x4a8)](_0x3414e2),{unitId:_0x3c592a,tableId:_0x3336d4,viewId:_0x4d7738,fieldId:_0x5158c9,width:_0x265f5b}=_0x28f434,_0x55b36f=_0x495c7c[_0x1cca14(0x2e5)](_0x3c592a,_0x28d752[_0x1cca14(0x201)]);if(!_0x55b36f||!$(_0x55b36f,_0x3336d4,{'viewIds':[_0x4d7738],'fieldIds':[_0x5158c9]}))return!0x1;let _0x58b866=_0x55b36f['getSnapshot']()[_0x1cca14(0x2ba)][_0x3336d4][_0x1cca14(0x480)][_0x5158c9];if(_0x58b866[_0x1cca14(0x1cb)]===!0x0||_0x58b866[_0x1cca14(0x33a)]===_0x19bf94[_0x1cca14(0x44f)])return!0x1;let _0x1694e3=_0x19f596['get'](_0x3ff846),_0x130574=_0x19f596[_0x1cca14(0x4a8)](_0x5153d9),_0x4bb8f4=_0x55b36f[_0x1cca14(0x1f9)](),_0x363483=new W()['setViewFieldWidth'](_0x4bb8f4,_0x3336d4,_0x4d7738,_0x5158c9,_0x265f5b),_0x428d89=new z()['invertOp'](_0x4bb8f4,_0x363483),_0x5899d5={'unitId':_0x3c592a,'op':_0x363483},_0x2a5032={'unitId':_0x3c592a,'op':_0x428d89};return _0x1694e3[_0x1cca14(0x4c6)](Q['id'],_0x5899d5)?(_0x495c7c['focusUnit'](_0x3c592a),_0x130574[_0x1cca14(0x519)]({'unitID':_0x3c592a,'undoMutations':[{'id':Q['id'],'params':_0x2a5032}],'redoMutations':[{'id':Q['id'],'params':_0x5899d5}]}),!0x0):!0x1;}},xo={'id':_0x354fcb(0x1f5),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x43322e,_0x13c680)=>{const _0xaa24e7=_0x354fcb;if(!_0x13c680)return!0x1;let _0x1834b8=_0x43322e[_0xaa24e7(0x4a8)](_0x3414e2),{unitId:_0x25398b,tableId:_0x58ff30,viewId:_0x2a4f51,filter:_0x2231d1}=_0x13c680,_0x3a6480=_0x1834b8['getUnit'](_0x25398b,_0x28d752['UNIVER_BASE']),_0x1e3a3f=(_0x2231d1==null?void 0x0:_0x2231d1[_0xaa24e7(0x309)][_0xaa24e7(0x29b)](_0x4f5b50=>_0x4f5b50[_0xaa24e7(0x46e)]))??[];if(!_0x3a6480||!$(_0x3a6480,_0x58ff30,{'viewIds':[_0x2a4f51],'fieldIds':_0x1e3a3f}))return!0x1;let _0x39cee3=_0x43322e[_0xaa24e7(0x4a8)](_0x3ff846),_0x35e7ec=_0x43322e[_0xaa24e7(0x4a8)](_0x5153d9),_0x4dc4f5=_0x3a6480[_0xaa24e7(0x1f9)](),_0x3a9e7d=new W()[_0xaa24e7(0x2de)](_0x4dc4f5,_0x58ff30,_0x2a4f51,_0x2231d1),_0x25883a=new z()['invertOp'](_0x4dc4f5,_0x3a9e7d),_0x573464={'unitId':_0x25398b,'op':_0x3a9e7d},_0x458172={'unitId':_0x25398b,'op':_0x25883a};return _0x39cee3['syncExecuteCommand'](Q['id'],_0x573464)?(_0x1834b8[_0xaa24e7(0x3f4)](_0x25398b),_0x35e7ec[_0xaa24e7(0x519)]({'unitID':_0x25398b,'undoMutations':[{'id':Q['id'],'params':_0x458172}],'redoMutations':[{'id':Q['id'],'params':_0x573464}]}),!0x0):!0x1;}},So={'id':'base.command.set-base-view-group','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1f2223,_0x409e95)=>{const _0x52ed50=_0x354fcb;if(!_0x409e95)return!0x1;let _0x262ae5=_0x1f2223[_0x52ed50(0x4a8)](_0x3414e2),{unitId:_0x176293,tableId:_0x547b5a,viewId:_0x2a6387,group:_0x2373cf}=_0x409e95,_0x4c4fff=_0x262ae5['getUnit'](_0x176293,_0x28d752[_0x52ed50(0x201)]);if(!_0x4c4fff||!$(_0x4c4fff,_0x547b5a,{'viewIds':[_0x2a6387],'fieldIds':_0x2373cf['map'](_0x39ad72=>_0x39ad72['fieldId'])}))return!0x1;let _0x6e2b2c=_0x1f2223[_0x52ed50(0x4a8)](_0x3ff846),_0x119b1a=_0x1f2223[_0x52ed50(0x4a8)](_0x5153d9),_0x17014d=_0x4c4fff[_0x52ed50(0x1f9)](),_0x5b4f26=new W()[_0x52ed50(0x178)](_0x17014d,_0x547b5a,_0x2a6387,_0x2373cf),_0x27ddb2=new z()[_0x52ed50(0x2aa)](_0x17014d,_0x5b4f26),_0xa1e651={'unitId':_0x176293,'op':_0x5b4f26},_0x4c6bd5={'unitId':_0x176293,'op':_0x27ddb2};return _0x6e2b2c[_0x52ed50(0x4c6)](Q['id'],_0xa1e651)?(_0x262ae5[_0x52ed50(0x3f4)](_0x176293),_0x119b1a[_0x52ed50(0x519)]({'unitID':_0x176293,'undoMutations':[{'id':Q['id'],'params':_0x4c6bd5}],'redoMutations':[{'id':Q['id'],'params':_0xa1e651}]}),!0x0):!0x1;}},Co={'id':_0x354fcb(0x2f9),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2c673e,_0x232c6b)=>{const _0x46678=_0x354fcb;if(!_0x232c6b)return!0x1;let _0x248c3c=_0x2c673e['get'](_0x3414e2),{unitId:_0x21d9f2,tableId:_0x3ea1b8,viewId:_0xbb3177,sort:_0x490c8b}=_0x232c6b,_0x355961=_0x248c3c[_0x46678(0x2e5)](_0x21d9f2,_0x28d752[_0x46678(0x201)]);if(!_0x355961||!$(_0x355961,_0x3ea1b8,{'viewIds':[_0xbb3177],'fieldIds':_0x490c8b[_0x46678(0x29b)](_0x229c9a=>_0x229c9a[_0x46678(0x46e)])}))return!0x1;let _0x27d1bb=_0x2c673e['get'](_0x3ff846),_0xad4b6e=_0x2c673e[_0x46678(0x4a8)](_0x5153d9),_0x51d708=_0x355961[_0x46678(0x1f9)](),_0x5b9927=new W()[_0x46678(0x4ff)](_0x51d708,_0x3ea1b8,_0xbb3177,_0x490c8b),_0x52b676=new z()[_0x46678(0x2aa)](_0x51d708,_0x5b9927),_0x517e2c={'unitId':_0x21d9f2,'op':_0x5b9927},_0x55be77={'unitId':_0x21d9f2,'op':_0x52b676};return _0x27d1bb['syncExecuteCommand'](Q['id'],_0x517e2c)?(_0x248c3c[_0x46678(0x3f4)](_0x21d9f2),_0xad4b6e['pushUndoRedo']({'unitID':_0x21d9f2,'undoMutations':[{'id':Q['id'],'params':_0x55be77}],'redoMutations':[{'id':Q['id'],'params':_0x517e2c}]}),!0x0):!0x1;}},wo={'id':_0x354fcb(0x516),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x4691b6,_0x4b0fbd){const _0x100892=_0x354fcb;if(!_0x4b0fbd)return!0x1;let _0x270c7d=_0x4691b6['get'](_0x3414e2),{unitId:_0xd8e308,tableId:_0x2a01db,recordId:_0x2feb3c,fieldId:_0x26253e,value:_0x207e7f}=_0x4b0fbd,_0x420087=_0x270c7d['getUnit'](_0xd8e308,_0x28d752[_0x100892(0x201)]);if(!_0x420087||!$(_0x420087,_0x2a01db,{'recordIds':[_0x2feb3c],'fieldIds':[_0x26253e]})||!ga(_0x420087,_0x2a01db,_0x26253e,_0x207e7f))return!0x1;let _0x13a44f=_0x420087[_0x100892(0x1f9)]()[_0x100892(0x2ba)][_0x2a01db],_0x1a0a99=F(_0x13a44f,_0x26253e)&&Xe(_0x13a44f)[_0x100892(0x231)](_0x26253e),_0x2cc69d=_0x1a0a99?tt(_0x13a44f,_0x26253e):null,_0x2a7df0=(_0x2cc69d==null?void 0x0:_0x2cc69d['parentByRecordId'][_0x100892(0x4a8)](_0x2feb3c))??null,_0x537068=_0x1a0a99?Le(_0x207e7f)[0x0]??null:null;if(_0x2cc69d){if(_0x537068&&!_0x13a44f[_0x100892(0x45a)][_0x537068])throw new P(_0x100892(0x33b));let _0x1bf85a=it(_0x2cc69d,_0x2feb3c,_0x537068);if(!_0x1bf85a['valid'])throw new P(_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x47b)]?'selfParent':_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x270)]?_0x100892(0x363):_0x100892(0x228));}let _0x313a6f=_0x4691b6['get'](_0x3ff846),_0x12afb8=_0x4691b6['get'](_0x5153d9),_0xbedd48=_0x4691b6['get'](Kr),_0x1f1822;try{_0x1f1822=_0xbedd48[_0x100892(0x22b)](_0x420087,_0x2a01db,_0x2feb3c,_0x26253e,_0x207e7f);}catch(_0x34cfcd){return console[_0x100892(0x206)](_0x100892(0x1b0),_0x34cfcd),!0x1;}let _0x58f727=new z()[_0x100892(0x2aa)](_0x420087[_0x100892(0x1f9)](),_0x1f1822),_0x1e2625=_0x1a0a99&&_0x2a7df0!==_0x537068?[{'tableId':_0x2a01db,'fieldId':_0x26253e,'recordId':_0x2feb3c,'oldParentRecordId':_0x2a7df0,'parentRecordId':_0x537068}]:void 0x0,_0xd164b7={'unitId':_0xd8e308,'op':_0x1f1822,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625,'source':_0x1e2625?_0x4b0fbd[_0x100892(0x4cd)]??'ui':void 0x0},_0xba35a7={..._0xd164b7,'source':_0x1e2625?_0x100892(0x29f):void 0x0},_0x28b3e3={'unitId':_0xd8e308,'op':_0x58f727,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625==null?void 0x0:_0x1e2625[_0x100892(0x29b)](_0x17e9b1=>({..._0x17e9b1,'oldParentRecordId':_0x17e9b1['parentRecordId'],'parentRecordId':_0x17e9b1['oldParentRecordId']})),'source':_0x1e2625?_0x100892(0x37e):void 0x0};return _0x313a6f[_0x100892(0x4c6)](Q['id'],_0xd164b7)?(_0x270c7d['focusUnit'](_0xd8e308),_0x12afb8[_0x100892(0x519)]({'unitID':_0xd8e308,'undoMutations':[{'id':Q['id'],'params':_0x28b3e3}],'redoMutations':[{'id':Q['id'],'params':_0xba35a7}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2f21f8,_0x524f9c){const _0x2e9445=_0x354fcb;if(!_0x524f9c)return!0x1;let _0x3bda89=_0x2f21f8[_0x2e9445(0x4a8)](_0x3414e2),{unitId:_0x1b6efa,tableId:_0x5f1e8b,fieldId:_0x490798}=_0x524f9c,_0x4b0bef=_0x3bda89[_0x2e9445(0x2e5)](_0x1b6efa,_0x28d752['UNIVER_BASE']);if(!_0x4b0bef||!$(_0x4b0bef,_0x5f1e8b,{'fieldIds':[_0x490798]}))return!0x1;let _0xbdfc6b=_0x2f21f8[_0x2e9445(0x4a8)](_0x3ff846),_0x555bf6=_0x2f21f8[_0x2e9445(0x4a8)](_0x5153d9),_0x5634d8=_0x4b0bef[_0x2e9445(0x1f9)](),_0x58576b=_0x524f9c[_0x2e9445(0x373)]['trim'](),_0x6a6234=new W()['updateField'](_0x5634d8,_0x5f1e8b,_0x490798,{'description':_0x58576b}),_0x4253d3=new z()[_0x2e9445(0x2aa)](_0x4b0bef[_0x2e9445(0x1f9)](),_0x6a6234),_0x5b8f30={'unitId':_0x1b6efa,'op':_0x6a6234},_0x8981f2={'unitId':_0x1b6efa,'op':_0x4253d3};return _0xbdfc6b['syncExecuteCommand'](Q['id'],_0x5b8f30)?(_0x3bda89[_0x2e9445(0x3f4)](_0x1b6efa),_0x555bf6[_0x2e9445(0x519)]({'unitID':_0x1b6efa,'undoMutations':[{'id':Q['id'],'params':_0x8981f2}],'redoMutations':[{'id':Q['id'],'params':_0x5b8f30}]}),!0x0):!0x1;}},Eo={'id':_0x354fcb(0x48b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3144c6,_0x5361e3)=>{const _0x3e2883=_0x354fcb;if(!_0x5361e3)return!0x1;let _0x14c373=_0x3144c6[_0x3e2883(0x4a8)](_0x3414e2),{unitId:_0x50febd,tableId:_0x3503b9,fieldId:_0x46fe56,patch:_0x1a7132}=_0x5361e3,_0x238fb5=_0x14c373[_0x3e2883(0x2e5)](_0x50febd,_0x28d752[_0x3e2883(0x201)]);if(!_0x238fb5||_0x46fe56===_0x3b44b5||!$(_0x238fb5,_0x3503b9,{'fieldIds':[_0x46fe56]}))return!0x1;let _0xfc176=_0x3144c6['get'](_0x3ff846),_0x494b6d=_0x3144c6[_0x3e2883(0x4a8)](_0x5153d9),_0x1e1e9f=_0x238fb5[_0x3e2883(0x1f9)]();if(!ha(_0x238fb5,_0x3503b9,{..._0x1e1e9f[_0x3e2883(0x2ba)][_0x3503b9][_0x3e2883(0x480)][_0x46fe56],..._0x1a7132}))return!0x1;let _0x113b95=new W()[_0x3e2883(0x409)](_0x1e1e9f,_0x3503b9,_0x46fe56,_0x1a7132),_0x5ef139=new z()['invertOp'](_0x1e1e9f,_0x113b95),_0x491c55={'unitId':_0x50febd,'op':_0x113b95},_0x3b0583={'unitId':_0x50febd,'op':_0x5ef139};return _0xfc176[_0x3e2883(0x4c6)](Q['id'],_0x491c55)?(_0x14c373[_0x3e2883(0x3f4)](_0x50febd),_0x494b6d[_0x3e2883(0x519)]({'unitID':_0x50febd,'undoMutations':[{'id':Q['id'],'params':_0x3b0583}],'redoMutations':[{'id':Q['id'],'params':_0x491c55}]}),!0x0):!0x1;}},Do={'id':_0x354fcb(0x2d4),'type':_0x3e23cf['COMMAND'],'handler':(_0x2fdd50,_0x1f9fea)=>{const _0x4dbd13=_0x354fcb;if(!_0x1f9fea)return!0x1;let _0x309b61=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3414e2),{unitId:_0x3e1bf1,tableId:_0x4f2f92,viewId:_0x273f52,patch:_0x433e00}=_0x1f9fea,_0x2005c7=_0x309b61['getUnit'](_0x3e1bf1,_0x28d752[_0x4dbd13(0x201)]);if(!_0x2005c7||!$(_0x2005c7,_0x4f2f92,{'viewIds':[_0x273f52]}))return!0x1;let _0x3a529d=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3ff846),_0x96df47=_0x2fdd50[_0x4dbd13(0x4a8)](_0x5153d9),_0x22e40c=_0x2005c7[_0x4dbd13(0x1f9)](),_0x34b74c=new W()['updateViewConfig'](_0x22e40c,_0x4f2f92,_0x273f52,_0x433e00),_0x16d736=new z()[_0x4dbd13(0x2aa)](_0x22e40c,_0x34b74c),_0x2fa8a7={'unitId':_0x3e1bf1,'op':_0x34b74c},_0x3cbb04={'unitId':_0x3e1bf1,'op':_0x16d736};return _0x3a529d[_0x4dbd13(0x4c6)](Q['id'],_0x2fa8a7)?(_0x309b61[_0x4dbd13(0x3f4)](_0x3e1bf1),_0x96df47[_0x4dbd13(0x519)]({'unitID':_0x3e1bf1,'undoMutations':[{'id':Q['id'],'params':_0x3cbb04}],'redoMutations':[{'id':Q['id'],'params':_0x2fa8a7}]}),!0x0):!0x1;}},Oo={'id':_0x354fcb(0x4f3),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x26578e,_0x265889)=>{const _0x71aa41=_0x354fcb;if(!_0x265889)return!0x1;let _0x28f5a4=_0x26578e['get'](_0x3414e2),{unitId:_0x5af915,tableId:_0x4e6358,recordId:_0x49fd76,orderKey:_0x1ecd42}=_0x265889,_0x236656=_0x28f5a4[_0x71aa41(0x2e5)](_0x5af915,_0x28d752[_0x71aa41(0x201)]);if(!_0x236656||!$(_0x236656,_0x4e6358,{'recordIds':[_0x49fd76]}))return!0x1;let _0x58b354=_0x26578e['get'](_0x3ff846),_0xfd174d=_0x26578e[_0x71aa41(0x4a8)](_0x5153d9),_0x2a4e0e=_0x236656[_0x71aa41(0x1f9)](),_0x4c84e6=new W()[_0x71aa41(0x229)](_0x2a4e0e,_0x4e6358,_0x49fd76,_0x1ecd42),_0x14627c=new z()[_0x71aa41(0x2aa)](_0x2a4e0e,_0x4c84e6),_0x203b33={'unitId':_0x5af915,'op':_0x4c84e6},_0x527ada={'unitId':_0x5af915,'op':_0x14627c};return _0x58b354['syncExecuteCommand'](Q['id'],_0x203b33)?(_0x28f5a4[_0x71aa41(0x3f4)](_0x5af915),_0xfd174d[_0x71aa41(0x519)]({'unitID':_0x5af915,'undoMutations':[{'id':Q['id'],'params':_0x527ada}],'redoMutations':[{'id':Q['id'],'params':_0x203b33}]}),!0x0):!0x1;}};let ko=function(_0x129941){const _0x3662e8=_0x354fcb;return _0x129941['Set']=_0x3662e8(0x1a1),_0x129941[_0x3662e8(0x27f)]=_0x3662e8(0x35e),_0x129941[_0x3662e8(0x3d2)]=_0x3662e8(0x4f4),_0x129941[_0x3662e8(0x4b0)]='clear',_0x129941;}({});const Ao={'id':_0x354fcb(0x40d),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3cd942,_0x11fb87)=>{const _0x385b20=_0x354fcb;var _0x483cc2;if(!_0x11fb87)return!0x1;let _0xc9f356=_0x3cd942[_0x385b20(0x4a8)](_0x3414e2),_0x550cba=_0xc9f356[_0x385b20(0x2e5)](_0x11fb87[_0x385b20(0x278)],_0x28d752[_0x385b20(0x201)]);if(!_0x550cba||!$(_0x550cba,_0x11fb87[_0x385b20(0x1c3)],{'viewIds':[_0x11fb87[_0x385b20(0x366)]]}))return!0x1;let _0xed793=_0x550cba['getSnapshot'](),_0x3fdb79=_0xed793[_0x385b20(0x2ba)][_0x11fb87['tableId']],_0x454c2e=jo(((_0x483cc2=_0x3fdb79['views'][_0x11fb87[_0x385b20(0x366)]][_0x385b20(0x342)][_0x385b20(0x3e7)])==null?void 0x0:_0x483cc2[_0x385b20(0x36c)])??[],_0x11fb87);if(!_0x454c2e)return!0x1;Mo(_0x3fdb79,_0x454c2e);let _0x3cb5f9=new W()[_0x385b20(0x4c1)](_0xed793,_0x11fb87['tableId'],_0x11fb87[_0x385b20(0x366)],{'conditionalColoring':_0x454c2e[_0x385b20(0x458)]?{'rules':_0x454c2e}:null}),_0x2c52cd=new z()[_0x385b20(0x2aa)](_0xed793,_0x3cb5f9),_0x3ac8c6={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x3cb5f9},_0x42c9ef={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x2c52cd};return _0x3cd942[_0x385b20(0x4a8)](_0x3ff846)[_0x385b20(0x4c6)](Q['id'],_0x3ac8c6)?(_0xc9f356[_0x385b20(0x3f4)](_0x11fb87[_0x385b20(0x278)]),_0x3cd942[_0x385b20(0x4a8)](_0x5153d9)[_0x385b20(0x519)]({'unitID':_0x11fb87[_0x385b20(0x278)],'undoMutations':[{'id':Q['id'],'params':_0x42c9ef}],'redoMutations':[{'id':Q['id'],'params':_0x3ac8c6}]}),!0x0):!0x1;}};function jo(_0x4819c6,_0xb3d9f0){const _0x22a554=_0x354fcb;switch(_0xb3d9f0[_0x22a554(0x33a)]){case'set':return _0x30f9db[_0x22a554(0x355)](_0xb3d9f0[_0x22a554(0x36c)]);case _0x22a554(0x35e):return[..._0x30f9db['deepClone'](_0x4819c6),_0x30f9db[_0x22a554(0x355)](_0xb3d9f0['rule'])];case _0x22a554(0x4f4):{let _0x5657de=_0x4819c6[_0x22a554(0x397)](_0x5945de=>_0x5945de['id']!==_0xb3d9f0[_0x22a554(0x491)]);return _0x5657de['length']===_0x4819c6['length']?null:_0x30f9db['deepClone'](_0x5657de);}case _0x22a554(0x4b6):return _0x4819c6[_0x22a554(0x458)]?[]:null;}}function Mo(_0x1ba8f9,_0x4be23b){const _0x3db896=_0x354fcb;if(!Array[_0x3db896(0x354)](_0x4be23b))throw TypeError(_0x3db896(0x313));let _0x5db824=new Set();for(let [_0x31bb9a,_0x3aeac2]of _0x4be23b[_0x3db896(0x1e2)]())Po(_0x1ba8f9,_0x3aeac2,No(_0x3aeac2,_0x31bb9a,_0x5db824));}function No(_0x11547f,_0x7111b,_0x543010){const _0x2361e6=_0x354fcb;if(!_0x11547f||typeof _0x11547f!=_0x2361e6(0x269))throw TypeError(_0x2361e6(0x311)+_0x7111b+'\x20must\x20be\x20an\x20object.');let _0x2aff6a=typeof _0x11547f['id']==_0x2361e6(0x471)&&_0x11547f['id'][_0x2361e6(0x3bc)]()?'\x22'+_0x11547f['id']+'\x22':'at\x20index\x20'+_0x7111b;if(typeof _0x11547f['id']!=_0x2361e6(0x471)||!_0x11547f['id']['trim']())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x2aff6a+_0x2361e6(0x470));if(_0x543010[_0x2361e6(0x23f)](_0x11547f['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x11547f['id']+'\x22.');_0x543010[_0x2361e6(0x35e)](_0x11547f['id']);let _0x29e373=typeof _0x11547f[_0x2361e6(0x190)]==_0x2361e6(0x471)&&_0x11547f[_0x2361e6(0x190)][_0x2361e6(0x3bc)]()?new _0x3d2caa(_0x11547f[_0x2361e6(0x190)]):null;if(!(_0x29e373!=null&&_0x29e373['isValid']))throw Error(_0x2361e6(0x2f5)+_0x2aff6a+_0x2361e6(0x44e));return _0x2aff6a;}function Po(_0x4472fe,_0x3cbd5d,_0x51108e){const _0x289dcb=_0x354fcb;let _0x215a7b=new Set(Object[_0x289dcb(0x1da)](_0x54bac1)),_0x40c600=new Set(Object[_0x289dcb(0x1da)](_0x79efc5)),_0x3cd731=new Set(Object['values'](_0x173d28));if(!_0x215a7b['has'](_0x3cbd5d[_0x289dcb(0x3d1)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x3aa)+String(_0x3cbd5d[_0x289dcb(0x3d1)])+'\x22.');let _0x736b6d=typeof _0x3cbd5d['fieldId']==_0x289dcb(0x471)?_0x4472fe[_0x289dcb(0x480)][_0x3cbd5d['fieldId']]:void 0x0;if(!_0x736b6d||_0x736b6d[_0x289dcb(0x1cb)]===!0x0||_0x736b6d[_0x289dcb(0x33a)]===_0x19bf94[_0x289dcb(0x44f)])throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x214)+String(_0x3cbd5d[_0x289dcb(0x46e)])+'\x22.');if(!_0x40c600[_0x289dcb(0x23f)](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x4e1)+String(_0x3cbd5d[_0x289dcb(0x320)])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!_0x3cd731[_0x289dcb(0x23f)](_0x3cbd5d[_0x289dcb(0x43b)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x2b0)+String(_0x3cbd5d['dateMode'])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x3d1)]===_0x54bac1[_0x289dcb(0x222)])return;let _0x2f446d=vn(_0x736b6d[_0x289dcb(0x33a)]);if(!_0x2f446d['includes'](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x413)+_0x3cbd5d[_0x289dcb(0x320)]+_0x289dcb(0x2c9)+_0x736b6d['type']+'\x22.\x20Allowed\x20operators:\x20'+_0x2f446d[_0x289dcb(0x4b5)](',\x20')+'.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!yn(_0x736b6d[_0x289dcb(0x33a)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x51108e+_0x289dcb(0x27c));}const Fo={'id':_0x354fcb(0x508),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xceccc4,_0x1f0bef)=>{const _0x45e4ca=_0x354fcb;if(!_0x1f0bef)return!0x1;let _0x27a081=_0xceccc4['get'](_0x3414e2),{unitId:_0x290850,tableId:_0x30e199,viewId:_0x228191,patch:_0x1a9086}=_0x1f0bef,_0x2ac841=_0x27a081[_0x45e4ca(0x2e5)](_0x290850,_0x28d752['UNIVER_BASE']);if(!_0x2ac841||!$(_0x2ac841,_0x30e199,{'viewIds':[_0x228191]}))return!0x1;let _0x1c8be3=_0xceccc4['get'](_0x3ff846),_0xc84e5a=_0xceccc4[_0x45e4ca(0x4a8)](_0x5153d9),_0x1401a2=_0x2ac841[_0x45e4ca(0x1f9)](),_0x338dc5=new W()[_0x45e4ca(0x4c1)](_0x1401a2,_0x30e199,_0x228191,_0x1a9086),_0x1c5e16=new z()[_0x45e4ca(0x2aa)](_0x1401a2,_0x338dc5),_0x5b0cd4={'unitId':_0x290850,'op':_0x338dc5},_0x22a988={'unitId':_0x290850,'op':_0x1c5e16};return _0x1c8be3[_0x45e4ca(0x4c6)](Q['id'],_0x5b0cd4)?(_0x27a081['focusUnit'](_0x290850),_0xc84e5a['pushUndoRedo']({'unitID':_0x290850,'undoMutations':[{'id':Q['id'],'params':_0x22a988}],'redoMutations':[{'id':Q['id'],'params':_0x5b0cd4}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x3e23cf['COMMAND'],'handler'(_0x4f555b,_0x332c93){const _0x4b8880=_0x354fcb;if(!_0x332c93)return{'valid':!0x1,'reason':_0x4b8880(0x39f)};let _0x453928=_0x4f555b[_0x4b8880(0x4a8)](_0x3414e2)[_0x4b8880(0x2e5)](_0x332c93[_0x4b8880(0x278)],_0x28d752['UNIVER_BASE']),_0x4091c4=_0x453928==null?void 0x0:_0x453928[_0x4b8880(0x1f9)](),_0x20d719=_0x4091c4==null?void 0x0:_0x4091c4[_0x4b8880(0x2ba)][_0x332c93[_0x4b8880(0x1c3)]];return!_0x4091c4||!_0x20d719?{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20does\x20not\x20exist.'}:new Xi()[_0x4b8880(0x1c2)](_0x332c93[_0x4b8880(0x23a)],_0x20d719,{'snapshot':_0x4091c4});}};let Lo=class extends _0x4a896e{constructor(_0xb5d54b){const _0x16eda2=_0x354fcb;super(_0xb5d54b,_0x16eda2(0x1f4),_0x28d752[_0x16eda2(0x201)],[_0x56e21f[_0x16eda2(0x1d0)],_0x56e21f['BaseField'],_0x56e21f['BaseRecord'],_0x56e21f[_0x16eda2(0x52a)],_0x56e21f[_0x16eda2(0x3f9)]]);}};Lo=X([Y(0x0,_0xee5072)],Lo);const Ro={'id':_0x354fcb(0x45e),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0x33a35a,_0x16ce20)=>!_0x16ce20||!_0x33a35a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x16ce20[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0x33a35a[_0x354fcb(0x4a8)](Lo)['setRule'](_0x16ce20[_0x354fcb(0x278)],_0x16ce20[_0x354fcb(0x204)],_0x16ce20[_0x354fcb(0x225)],_0x16ce20[_0x354fcb(0x193)])},zo={'id':_0x354fcb(0x3dd),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0xbeb69a,_0x4092e8)=>!_0x4092e8||!_0xbeb69a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x4092e8[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0xbeb69a[_0x354fcb(0x4a8)](Lo)[_0x354fcb(0x30e)](_0x4092e8[_0x354fcb(0x278)],_0x4092e8[_0x354fcb(0x36c)])};function Bo(_0x1771bc){const _0xb3eca0=_0x354fcb;let _0x401106=_0x1771bc[_0xb3eca0(0x181)]??Date['now'](),_0x1e0051=_0x1771bc[_0xb3eca0(0x4cf)]??_0x1771bc['id']+_0xb3eca0(0x50e),_0x1e80b7=_0x1771bc[_0xb3eca0(0x1c8)]??_0x1771bc['id']+_0xb3eca0(0x443),_0x389eb0=_0x1771bc['recordCount']??0x0,_0x4b8112=_0x5c3ee9(),_0x5ab6bc={'id':_0x1e0051,'name':_0x1771bc[_0xb3eca0(0x26b)]??_0xb3eca0(0x36d),'type':_0x19bf94[_0xb3eca0(0x374)],'config':{'placeholder':_0xb3eca0(0x3ab)}},_0x56ad1e={},_0xaaef58=[],_0x5c092e={},_0x4c3e4d={},_0x27221b={};for(let _0x13301=0x0;_0x13301<_0x389eb0;_0x13301++){let _0x2f1081=_0x1771bc['id']+_0xb3eca0(0x378)+(_0x13301+0x1);_0x56ad1e[_0x2f1081]={'id':_0x2f1081,'values':{[_0x3b44b5]:_0x2f1081,..._0x1771bc[_0xb3eca0(0x282)]?{[_0x1e0051]:_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1)}:{}},'orderKey':String(_0x13301+0x1)['padStart'](0x4,'0'),'createdAt':_0x401106,'updatedAt':_0x401106},_0xaaef58[_0xb3eca0(0x1f3)](_0x2f1081),_0x5c092e[_0x2f1081]=_0x13301,_0x4c3e4d[_0x13301]=_0x2f1081,_0x27221b[_0x13301]={0x0:{'v':_0x2f1081,'t':_0x149f0a['STRING']}},_0x1771bc['recordNamePrefix']&&(_0x27221b[_0x13301][0x1]={'v':_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1),'t':_0x149f0a['STRING']});}let _0x1552b6={'id':_0x1e80b7,'tableId':_0x1771bc['id'],'name':_0xb3eca0(0x388),'type':_0x2b4a2c[_0xb3eca0(0x388)],'fieldOrder':[_0x3b44b5,_0x1e0051],'fieldSettings':{[_0x3b44b5]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x1771bc['id'],'name':_0x1771bc[_0xb3eca0(0x1e0)],'primaryFieldId':_0x1e0051,'fieldOrder':[_0x3b44b5,_0x1e0051],'fields':{[_0x3b44b5]:_0x4b8112,[_0x1e0051]:_0x5ab6bc},'records':_0x56ad1e,'recordOrder':_0xaaef58,'rowIndex':_0x5c092e,'rowId':_0x4c3e4d,'colIndex':{[_0x3b44b5]:0x0,[_0x1e0051]:0x1},'colId':{0x0:_0x3b44b5,0x1:_0x1e0051},'cellData':_0x27221b,'views':{[_0x1e80b7]:_0x1552b6},'viewOrder':[_0x1e80b7]};}const Vo=_0x354fcb(0x339);function Ho(_0x46c524){const _0xcf2577=_0x354fcb;let _0xc784a5=Bo({'id':_0x46c524[_0xcf2577(0x303)],'name':_0x46c524[_0xcf2577(0x1e0)]??_0x46c524[_0xcf2577(0x39e)],'recordCount':0x0});return{..._0xc784a5,'resources':{..._0xc784a5[_0xcf2577(0x358)]??{},[Vo]:Go(_0x46c524)}};}function Uo(_0x5b23dd){const _0x3cc656=_0x354fcb;return{'id':Q['id'],'params':{'unitId':_0x5b23dd[_0x3cc656(0x278)],'op':_0x370803[_0x3cc656(0x33a)]['compose'](_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x2ba),_0x5b23dd[_0x3cc656(0x513)]['id']],_0x5b23dd[_0x3cc656(0x513)]),_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x3e3),_0x5b23dd[_0x3cc656(0x250)]??_0x5b23dd[_0x3cc656(0x2d2)][_0x3cc656(0x3e3)]['length']],_0x5b23dd[_0x3cc656(0x513)]['id'])),'trigger':_0x3cc656(0x31c)}};}function Wo(_0x3d9ca2){const _0x7101e8=_0x354fcb;let _0x1be666=_0x3d9ca2['snapshot'][_0x7101e8(0x3e3)][_0x7101e8(0x4c8)](_0x3d9ca2[_0x7101e8(0x1c3)]);if(!(!_0x3d9ca2['snapshot']['tables'][_0x3d9ca2[_0x7101e8(0x1c3)]]||_0x1be666<0x0))return{'id':Q['id'],'params':{'unitId':_0x3d9ca2['unitId'],'op':_0x370803['type'][_0x7101e8(0x1fb)](_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x2ba),_0x3d9ca2[_0x7101e8(0x1c3)]],_0x3d9ca2[_0x7101e8(0x2d2)][_0x7101e8(0x2ba)][_0x3d9ca2[_0x7101e8(0x1c3)]]),_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x3e3),_0x1be666],_0x3d9ca2[_0x7101e8(0x1c3)])),'trigger':_0x7101e8(0x31c)}};}function Go(_0xedb651){const _0x2dbcd6=_0x354fcb;return{'version':0x1,'embedId':_0xedb651[_0x2dbcd6(0x39e)],'hostAnchorId':_0xedb651[_0x2dbcd6(0x303)],'childUnitId':_0xedb651[_0x2dbcd6(0x33e)],'childType':_0xedb651[_0x2dbcd6(0x525)]};}function Ko(_0x44b35d){const _0x1eee40=_0x354fcb;let _0x595a9d=Math[_0x1eee40(0x1b3)](0x0,Number(_0x44b35d[_0x1eee40(0x40e)]??0x0)),_0x577650=_0x44b35d[_0x1eee40(0x2ce)]===!0x1?'0':_0x1eee40(0x3c3),_0x16907b=_0x595a9d?'.'+'0'[_0x1eee40(0x4d1)](_0x595a9d):'',_0x57c1e1=Jo(_0x44b35d['abbreviation']);return''+(_0x44b35d['currencySymbol']?Yo(_0x44b35d[_0x1eee40(0x4d3)]):'')+_0x577650+_0x16907b+_0x57c1e1;}function qo(_0x55aac2,_0x1834d8){const _0x5c492f=_0x354fcb;let _0xcfff44=Ko(_0x1834d8),_0x5eed9b=_0x5e5ce5['format'](_0xcfff44,_0x55aac2,{'throws':!0x1});return Xo(String(_0x5eed9b),_0x1834d8[_0x5c492f(0x28d)],_0x1834d8[_0x5c492f(0x4f5)]);}function Jo(_0x3e3af0){const _0x5c17f5=_0x354fcb;return _0x3e3af0==='K'?',\x22K\x22':_0x3e3af0==='M'?_0x5c17f5(0x279):_0x3e3af0==='B'?_0x5c17f5(0x4a6):'';}function Yo(_0x4c64ae){const _0x305676=_0x354fcb;return/^[A-Z]+$/i[_0x305676(0x235)](_0x4c64ae)?'\x22'+_0x4c64ae+'\x22':_0x4c64ae;}function Xo(_0xa4b339,_0x174271,_0x1bbba9){const _0x468207=_0x354fcb;let _0x51f2f8=_0x174271===_0x468207(0x40a)?Zo(_0x1bbba9):_0x174271;return _0x51f2f8===_0x468207(0x425)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x00')[_0x468207(0x2b1)](/\./g,',')['replace'](/\0/g,'.'):_0x51f2f8===_0x468207(0x26c)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20')[_0x468207(0x2b1)](/\./g,','):_0x51f2f8===_0x468207(0x2c5)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20'):_0xa4b339;}function Zo(_0x4cf187){const _0x56299f=_0x354fcb;var _0x916872,_0x27287d;let _0x533a13=_0x4cf187||new Intl[(_0x56299f(0x4fb))]()[_0x56299f(0x1de)]()[_0x56299f(0x4f5)],_0x2224cf;try{_0x2224cf=new Intl[(_0x56299f(0x4fb))](_0x533a13,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x56299f(0x41b)](0xf4240);}catch{return'commaPeriod';}let _0x34bc9a=(_0x916872=_0x2224cf[_0x56299f(0x22f)](_0x387c8d=>_0x387c8d['type']===_0x56299f(0x1b9)))==null?void 0x0:_0x916872['value'],_0x59b0ab=(_0x27287d=_0x2224cf['find'](_0x5185de=>_0x5185de['type']==='decimal'))==null?void 0x0:_0x27287d[_0x56299f(0x416)],_0x79f63c=_0x34bc9a==='\u00a0'||_0x34bc9a==='\u202f'?'\x20':_0x34bc9a;return _0x79f63c==='.'&&_0x59b0ab===','?_0x56299f(0x425):_0x79f63c==='\x20'&&_0x59b0ab===','?'spaceComma':_0x79f63c==='\x20'&&_0x59b0ab==='.'?_0x56299f(0x2c5):_0x56299f(0x3e1);}function Qo(_0x4aea1c,_0x300f08){const _0x10e7a5=_0x354fcb;let _0x4ae1f8=_0x300f08&&typeof _0x300f08==_0x10e7a5(0x269)&&!Array[_0x10e7a5(0x354)](_0x300f08)?_0x300f08:{},_0x3c95b2=$o(_0x4ae1f8[_0x10e7a5(0x40e)],0x0,0x2,0x0),_0x4268e1=_0x4aea1c[_0x10e7a5(0x23d)](_0x3c95b2);return _0x4ae1f8[_0x10e7a5(0x24a)]===_0x10e7a5(0x256)?_0x4268e1:_0x4268e1+'%';}function $o(_0x4d22b7,_0x1b9fc2,_0x5b1417,_0x42472c){const _0x445246=_0x354fcb;if(_0x4d22b7==null||_0x4d22b7==='')return _0x42472c;let _0x471592=typeof _0x4d22b7==_0x445246(0x256)?_0x4d22b7:Number(_0x4d22b7);return Number[_0x445246(0x2c3)](_0x471592)?Math['max'](_0x1b9fc2,Math[_0x445246(0x35d)](_0x5b1417,Math[_0x445246(0x40b)](_0x471592))):_0x42472c;}const es=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505),_0x354fcb(0x22c),_0x354fcb(0x218),'min',_0x354fcb(0x1b3)],ts=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505)],ns=[_0x354fcb(0x22c),'average',_0x354fcb(0x35d),_0x354fcb(0x1b3)],rs=[_0x354fcb(0x35d),_0x354fcb(0x1b3)],is=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94['Currency'],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)]]),as=new Set([_0x19bf94[_0x354fcb(0x283)],_0x19bf94[_0x354fcb(0x1e5)],_0x19bf94[_0x354fcb(0x223)]]),os='General';function ss(_0x2adb61){const _0xa6c2c3=_0x354fcb;return typeof _0x2adb61==_0xa6c2c3(0x471)&&es[_0xa6c2c3(0x231)](_0x2adb61);}function cs(_0x4abdca){const _0x3a3c76=_0x354fcb;return!_0x4abdca||typeof _0x4abdca!=_0x3a3c76(0x269)?{}:Object[_0x3a3c76(0x2e8)](Object[_0x3a3c76(0x1e2)](_0x4abdca)['filter'](_0x822ce=>ss(_0x822ce[0x1])));}function ls(_0x409a54){const _0x2a10c6=_0x354fcb;return is[_0x2a10c6(0x23f)](_0x409a54[_0x2a10c6(0x33a)])?[...ts,...ns]:_0x409a54[_0x2a10c6(0x33a)]===_0x19bf94['Formula']?[...ts,...ws(_0x409a54)===_0x2a10c6(0x219)?rs:ns]:ts;}function us(_0x240a8e,_0x25a25a){const _0x3ec0c5=_0x354fcb;return ls(_0x240a8e)[_0x3ec0c5(0x231)](_0x25a25a);}function ds(_0x36a3b2,_0x42d1d4,_0x5052f9){const _0x2bc2f7=_0x354fcb;if(!us(_0x36a3b2,_0x5052f9))return null;let _0x112613=_0x42d1d4[_0x2bc2f7(0x397)](_0x8bb13d=>!ps(_0x36a3b2,_0x8bb13d));switch(_0x5052f9){case _0x2bc2f7(0x3f5):return _0x42d1d4[_0x2bc2f7(0x458)];case _0x2bc2f7(0x2af):return _0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x26a):return _0x42d1d4[_0x2bc2f7(0x458)]-_0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x505):return new Set(_0x112613['map'](_0x1cae5e=>_s(_0x36a3b2,_0x1cae5e)))[_0x2bc2f7(0x473)];case _0x2bc2f7(0x22c):{let _0x37cfe6=ms(_0x36a3b2,_0x112613);return _0x37cfe6[_0x2bc2f7(0x458)]?gs(_0x37cfe6):null;}case _0x2bc2f7(0x218):{let _0x4976e5=ms(_0x36a3b2,_0x112613);return _0x4976e5['length']?gs(_0x4976e5)/_0x4976e5[_0x2bc2f7(0x458)]:null;}case _0x2bc2f7(0x35d):{let _0x237646=ms(_0x36a3b2,_0x112613);return _0x237646[_0x2bc2f7(0x458)]?Math[_0x2bc2f7(0x35d)](..._0x237646):null;}case _0x2bc2f7(0x1b3):{let _0x32c80b=ms(_0x36a3b2,_0x112613);return _0x32c80b['length']?Math['max'](..._0x32c80b):null;}}}function fs(_0x30eb7c,_0x34b16c,_0x493031){const _0x527f3d=_0x354fcb;if(_0x493031==null||!Number[_0x527f3d(0x2c3)](_0x493031))return'-';if(ts[_0x527f3d(0x231)](_0x34b16c))return String(_0x493031);switch(_0x30eb7c[_0x527f3d(0x33a)]){case _0x19bf94[_0x527f3d(0x271)]:return qo(_0x493031,xs(_0x30eb7c));case _0x19bf94[_0x527f3d(0x19c)]:return qo(_0x493031,Ss(_0x30eb7c));case _0x19bf94[_0x527f3d(0x1ba)]:return Qo(_0x493031,_0x30eb7c[_0x527f3d(0x342)]);case _0x19bf94[_0x527f3d(0x405)]:return Cs(_0x493031,_0x30eb7c);default:return Es(_0x493031);}}function ps(_0x23eea6,_0x2c95cf){const _0x590673=_0x354fcb;if(_0x2c95cf==null)return!0x0;if(typeof _0x2c95cf==_0x590673(0x471))return _0x2c95cf[_0x590673(0x3bc)]()==='';if(Array[_0x590673(0x354)](_0x2c95cf))return _0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x46f)]?!_0x2c95cf[_0x590673(0x257)](bs):_0x2c95cf[_0x590673(0x458)]===0x0;if(_0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x4db)]&&typeof _0x2c95cf==_0x590673(0x269)){let _0x3f71d9=_0x2c95cf;return[_0x3f71d9['text'],_0x3f71d9[_0x590673(0x1c7)]][_0x590673(0x1b6)](_0x5e1519=>_0x5e1519==null||String(_0x5e1519)[_0x590673(0x3bc)]()==='');}return!0x1;}function ms(_0x123c06,_0x4fa302){const _0x59db8d=_0x354fcb;let _0x12ad13=[];for(let _0x29bc6d of _0x4fa302){let _0x293ad5=hs(_0x123c06,_0x29bc6d);_0x293ad5!=null&&_0x12ad13[_0x59db8d(0x1f3)](_0x293ad5);}return _0x12ad13;}function hs(_0x4d27d0,_0x39a844){const _0xa18ee7=_0x354fcb;if(typeof _0x39a844=='number')return Number[_0xa18ee7(0x2c3)](_0x39a844)?_0x39a844:null;if(_0x4d27d0['type']!==_0x19bf94['Formula']&&typeof _0x39a844=='string'&&_0x39a844[_0xa18ee7(0x3bc)]()!==''){let _0x41ea52=Number(_0x39a844);return Number[_0xa18ee7(0x2c3)](_0x41ea52)?_0x41ea52:null;}return null;}function gs(_0x2f89da){const _0x1cdfc4=_0x354fcb;let _0x14ea8e=0x0,_0x52db04=0x0;for(let _0x1b5c93 of _0x2f89da){let _0x21b5ef=_0x14ea8e+_0x1b5c93;_0x52db04+=Math[_0x1cdfc4(0x2f7)](_0x14ea8e)>=Math[_0x1cdfc4(0x2f7)](_0x1b5c93)?_0x14ea8e-_0x21b5ef+_0x1b5c93:_0x1b5c93-_0x21b5ef+_0x14ea8e,_0x14ea8e=_0x21b5ef;}return _0x14ea8e+_0x52db04;}function _s(_0x2789d5,_0x4cd63a){const _0x221d7e=_0x354fcb;return as[_0x221d7e(0x23f)](_0x2789d5[_0x221d7e(0x33a)])&&Array[_0x221d7e(0x354)](_0x4cd63a)?ys([...new Set(_0x4cd63a[_0x221d7e(0x29b)](_0x3e280b=>ys(vs(_0x3e280b))))][_0x221d7e(0x3db)]()):ys(vs(_0x4cd63a));}function vs(_0x1b89b0){const _0x48910a=_0x354fcb;return Array['isArray'](_0x1b89b0)?_0x1b89b0[_0x48910a(0x29b)](vs):_0x1b89b0&&typeof _0x1b89b0=='object'?Object[_0x48910a(0x2e8)](Object[_0x48910a(0x1e2)](_0x1b89b0)[_0x48910a(0x3db)](([_0x3dd493],[_0x41a477])=>_0x3dd493[_0x48910a(0x4bc)](_0x41a477))[_0x48910a(0x29b)](([_0x16cffd,_0x2b2d25])=>[_0x16cffd,vs(_0x2b2d25)])):_0x1b89b0;}function ys(_0x2536a5){const _0x583cdc=_0x354fcb;return JSON[_0x583cdc(0x449)](_0x2536a5)??'undefined';}function bs(_0x5dc8fe){const _0x1afde1=_0x354fcb;if(typeof _0x5dc8fe=='string')return _0x5dc8fe[_0x1afde1(0x3bc)]()!=='';if(!_0x5dc8fe||typeof _0x5dc8fe!=_0x1afde1(0x269))return!0x1;let _0x2951f7=_0x5dc8fe;return[_0x2951f7['id'],_0x2951f7[_0x1afde1(0x1e0)],_0x2951f7[_0x1afde1(0x4cd)],_0x2951f7[_0x1afde1(0x1c7)],_0x2951f7['thumbnail']][_0x1afde1(0x257)](_0xab6ff9=>_0xab6ff9!=null&&String(_0xab6ff9)[_0x1afde1(0x3bc)]()!=='');}function xs(_0x2ff929){const _0x9c3246=_0x354fcb;let _0x3b18e1=Ds(_0x2ff929[_0x9c3246(0x342)]);return{'decimalPlaces':ks(_0x3b18e1[_0x9c3246(0x40e)],0x0,0x14,0x2),'separatorStyle':typeof _0x3b18e1[_0x9c3246(0x28d)]==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x28d)]:_0x9c3246(0x40a),'locale':typeof _0x3b18e1[_0x9c3246(0x4f5)]=='string'?_0x3b18e1[_0x9c3246(0x4f5)]:void 0x0,'useThousands':_0x3b18e1[_0x9c3246(0x2ce)]!==!0x1,'abbreviation':typeof _0x3b18e1['abbreviation']==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x356)]:'none'};}function Ss(_0x411d6a){const _0x380da1=_0x354fcb;let _0x4ea89b=Ds(_0x411d6a[_0x380da1(0x342)]);return{...xs(_0x411d6a),'currencySymbol':String(_0x4ea89b['currencySymbol']??'$')};}function Cs(_0x2d6721,_0x2eaef7){let _0x8f564b=Ts(_0x2eaef7);if(_0x8f564b===os)return Es(_0x2d6721);try{return String(_0x5e5ce5['format'](_0x8f564b,_0x2d6721,{'throws':!0x1}));}catch{return Es(_0x2d6721);}}function ws(_0x112cc5){const _0x10376d=_0x354fcb;let _0x29aa2a=Ds(Ds(_0x112cc5[_0x10376d(0x342)])[_0x10376d(0x51c)]);return typeof _0x29aa2a[_0x10376d(0x33a)]=='string'?_0x29aa2a[_0x10376d(0x33a)]:'general';}function Ts(_0x39c952){const _0x325160=_0x354fcb;let _0x1f99bc=Ds(Ds(_0x39c952[_0x325160(0x342)])['numfmt']);return String(_0x1f99bc[_0x325160(0x177)]??os)[_0x325160(0x3bc)]()||os;}function Es(_0x44d624){const _0x310221=_0x354fcb;return String(Number[_0x310221(0x39d)](_0x44d624)?_0x44d624:Math[_0x310221(0x40b)]((_0x44d624+0x2**-0x34)*0x64)/0x64);}function Ds(_0x3874eb){const _0x7c7c29=_0x354fcb;return _0x3874eb&&typeof _0x3874eb==_0x7c7c29(0x269)&&!Array[_0x7c7c29(0x354)](_0x3874eb)?_0x3874eb:{};}function Os(_0x17cf61){const _0x425bc8=_0x354fcb;if(_0x17cf61==null||_0x17cf61==='')return null;let _0x36cad6=typeof _0x17cf61==_0x425bc8(0x256)?_0x17cf61:Number(_0x17cf61);return Number[_0x425bc8(0x2c3)](_0x36cad6)?_0x36cad6:null;}function ks(_0x57b4dc,_0x70bd96,_0x5b3d6a,_0x3f5e42){const _0x5f42bc=_0x354fcb;let _0x22ee98=Os(_0x57b4dc);return _0x22ee98==null?_0x3f5e42:Math[_0x5f42bc(0x1b3)](_0x70bd96,Math['min'](_0x5b3d6a,Math[_0x5f42bc(0x40b)](_0x22ee98)));}function As(_0x544972,_0x43aec0){const _0x54c2e8=_0x354fcb;let _0x424486=_0x30f9db['deepClone'](_0x544972),_0x219d11=_0x43aec0[_0x54c2e8(0x22e)]===!0x0,_0x2b9516=new Map(),_0x5136e5=_0x43aec0[_0x54c2e8(0x213)]??(()=>'view-'+_0x3ba5f0(0x8)),_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)];return _0x43aec0[_0x54c2e8(0x3fd)]&&(_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)]['map'](_0x35f86=>{const _0xf541=_0x54c2e8;let _0x1f032b=_0x5136e5();return _0x2b9516[_0xf541(0x1a1)](_0x35f86,_0x1f032b),_0x1f032b;})),{..._0x424486,'id':_0x43aec0['id'],'name':_0x43aec0['name'],'records':_0x219d11?_0x424486[_0x54c2e8(0x45a)]:{},'recordOrder':_0x219d11?_0x424486[_0x54c2e8(0x22d)]:[],'rowIndex':_0x219d11?_0x424486[_0x54c2e8(0x290)]:{},'rowId':_0x219d11?_0x424486[_0x54c2e8(0x474)]:{},'cellData':_0x219d11?_0x424486[_0x54c2e8(0x1cf)]:{},'resources':_0x219d11?_0x424486[_0x54c2e8(0x358)]:{},'viewOrder':_0x8a0b8a,'views':Object['fromEntries'](Object[_0x54c2e8(0x1e2)](_0x424486['views']??{})['map'](([_0xe26fb1,_0x8c129])=>{const _0x5ee79d=_0x54c2e8;let _0x40ad41=_0x2b9516[_0x5ee79d(0x4a8)](_0xe26fb1)??(_0x43aec0['regenerateViewIds']?_0x5136e5():_0xe26fb1);return[_0x40ad41,{..._0x8c129,'id':_0x40ad41,'tableId':_0x43aec0['id']}];}))};}var js=_0x354fcb(0x4e6),Ms=_0x354fcb(0x3fe);const Ns={},Ps={};function Fs(_0x24afd0){const _0x127f33=_0x354fcb;return new z()[_0x127f33(0x2b9)](_0x24afd0);}function Is(_0x25e50b){const _0x14db31=_0x354fcb;return _0x25e50b[_0x14db31(0x1bc)][_0x14db31(0x29b)](_0x3f97e2=>({'unitId':_0x25e50b[_0x14db31(0x278)],'sheetId':_0x25e50b[_0x14db31(0x1c3)],'range':{'startRow':_0x3f97e2[_0x14db31(0x21b)],'endRow':_0x3f97e2[_0x14db31(0x21b)],'startColumn':_0x3f97e2[_0x14db31(0x1ea)],'endColumn':_0x3f97e2['col']}}));}function Ls(_0x2cda77,_0x5b8d9c){const _0x13f5c1=_0x354fcb;return{[_0x2cda77]:Object[_0x13f5c1(0x2e8)](_0x5b8d9c[_0x13f5c1(0x29b)](_0x388dae=>[_0x388dae,'1']))};}let Rs=class extends _0x1589db{constructor(_0x354736,_0x1186bc){const _0x4bce20=_0x354fcb;super(),this[_0x4bce20(0x419)]=_0x354736,this[_0x4bce20(0x432)]=_0x1186bc,this[_0x4bce20(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x3aa156=_0x354fcb;this[_0x3aa156(0x419)][_0x3aa156(0x2f4)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x1a6d44=>this[_0x3aa156(0x180)](_0x1a6d44[_0x3aa156(0x211)])}),this[_0x3aa156(0x1b4)](_0x5b4066(()=>{const _0x283288=_0x3aa156;this[_0x283288(0x419)]['remove'](Q['id']);}));}[_0x354fcb(0x2b3)](_0x4b5f7e,_0x367348){const _0x305843=_0x354fcb;let _0x18014a=this[_0x305843(0x432)]['getUnit'](_0x4b5f7e,_0x28d752[_0x305843(0x201)]);return(_0x18014a==null?void 0x0:_0x18014a[_0x305843(0x1f9)]()[_0x305843(0x2ba)][_0x367348])??null;}['_getJson1DirtyData'](_0x4f20e4){const _0x228b01=_0x354fcb;if(_0x4f20e4['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x4f20e4[_0x228b01(0x278)]||!_0x4f20e4['op'])return{'clearDependencyTreeCache':this[_0x228b01(0x376)](),'forceCalculation':!0x0};let _0x4de89c=Fs(_0x4f20e4['op']),_0x15d9b1=this[_0x228b01(0x4cb)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c);if(_0x15d9b1[_0x228b01(0x458)])return{'clearDependencyTreeCache':Ls(_0x4f20e4['unitId'],_0x15d9b1),'forceCalculation':!0x0};let _0x364d3d=Object[_0x228b01(0x1e2)](this[_0x228b01(0x276)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c))[_0x228b01(0x2a2)](([_0x11bd78,_0x217be9])=>Is({'unitId':_0x4f20e4[_0x228b01(0x278)],'tableId':_0x11bd78,'patches':_0x217be9}));return _0x364d3d[_0x228b01(0x458)]?{'dirtyRanges':_0x364d3d}:{};}[_0x354fcb(0x4cb)](_0x414915,_0xb891b9){const _0x3bac7d=_0x354fcb;let _0xc6471f=_0xb891b9[_0x3bac7d(0x397)](_0x471577=>_0x471577[_0x3bac7d(0x2d9)]!=='cell')[_0x3bac7d(0x2a2)](_0x245c38=>_0x245c38[_0x3bac7d(0x1c3)]?[_0x245c38[_0x3bac7d(0x1c3)]]:this[_0x3bac7d(0x3b1)](_0x414915));return Array['from'](new Set(_0xc6471f));}['_groupCellInvalidations'](_0xa0cff7,_0x429082){let _0x40ebad=new Set();return _0x429082['reduce']((_0x3f1384,_0x12ff2e)=>{const _0x7ccbba=_0x48d8;let _0x453554=this[_0x7ccbba(0x3bf)](_0xa0cff7,_0x12ff2e);if(!_0x453554)return _0x3f1384;let _0x3e8e59=_0x12ff2e[_0x7ccbba(0x1c3)]+':'+_0x453554[_0x7ccbba(0x21b)]+':'+_0x453554[_0x7ccbba(0x1ea)];return _0x40ebad[_0x7ccbba(0x23f)](_0x3e8e59)||(_0x40ebad['add'](_0x3e8e59),_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]=_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]??[],_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]['push'](_0x453554)),_0x3f1384;},{});}[_0x354fcb(0x3bf)](_0x2ee441,_0x363579){const _0x278e64=_0x354fcb;if(_0x363579[_0x278e64(0x2d9)]!==_0x278e64(0x4eb))return null;if(_0x363579[_0x278e64(0x21b)]!=null&&_0x363579[_0x278e64(0x26e)]!=null)return{'row':_0x363579[_0x278e64(0x21b)],'col':_0x363579['column'],'value':null};if(!_0x363579['recordId']||!_0x363579[_0x278e64(0x46e)])return null;let _0x197cfb=this[_0x278e64(0x2b3)](_0x2ee441,_0x363579[_0x278e64(0x1c3)]);if(!_0x197cfb)return null;let _0x5a3419=_t(_0x197cfb,_0x363579[_0x278e64(0x4bb)],_0x363579['fieldId']);return _0x5a3419?{'row':_0x5a3419[_0x278e64(0x21b)],'col':_0x5a3419[_0x278e64(0x1ea)],'value':null}:null;}['_getAllTableIds'](_0xf8076e){const _0xa067df=_0x354fcb;let _0x238e4c=this[_0xa067df(0x432)]['getUnit'](_0xf8076e,_0x28d752[_0xa067df(0x201)]);return Object['values']((_0x238e4c==null?void 0x0:_0x238e4c[_0xa067df(0x1f9)]()[_0xa067df(0x2ba)])??{})['map'](_0x37c321=>_0x37c321['id']);}[_0x354fcb(0x376)](){const _0xeb6522=_0x354fcb;let _0x346086=this['_univerInstanceService'][_0xeb6522(0x3c4)](_0x28d752['UNIVER_BASE'])[_0xeb6522(0x29b)](_0x118c62=>Ls(_0x118c62[_0xeb6522(0x422)](),Object['keys'](_0x118c62[_0xeb6522(0x1f9)]()[_0xeb6522(0x2ba)])));return Object[_0xeb6522(0x2e7)]({},..._0x346086);}};Rs=X([Y(0x0,_0x35d62c),Y(0x1,_0x3414e2)],Rs);let zs=class extends _0x1589db{constructor(_0x475020,_0x548a70,_0x3b4271,_0x388d1a){const _0x93894e=_0x354fcb;super(),this[_0x93894e(0x2ee)]=_0x475020,this[_0x93894e(0x432)]=_0x548a70,this[_0x93894e(0x4ea)]=_0x3b4271,this[_0x93894e(0x36b)]=_0x388d1a,G(this,_0x93894e(0x297),new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,_0x93894e(0x20f),Promise[_0x93894e(0x2c1)]()),G(this,'_applyingFormulaResults',!0x1),this[_0x93894e(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x460ddf=_0x354fcb;this['_univerInstanceService'][_0x460ddf(0x3c4)](_0x28d752[_0x460ddf(0x201)])['forEach'](_0x11dd6b=>{const _0x17149=_0x460ddf;this[_0x17149(0x2f8)](_0x11dd6b);}),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x2ae)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](({unit:_0x4efc33})=>{this['_scheduleSuperTableSync'](_0x4efc33);})),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x275)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](_0x7c5dea=>{const _0xaf2307=_0x460ddf;this['_enqueueFormulaSync'](()=>this[_0xaf2307(0x496)](_0x7c5dea[_0xaf2307(0x422)]()));})),this['disposeWithMe'](this[_0x460ddf(0x2ee)][_0x460ddf(0x31d)](_0x2f683b=>this[_0x460ddf(0x208)](_0x2f683b)));}[_0x354fcb(0x208)](_0x2ec9e7){const _0x1a6ff1=_0x354fcb;if(_0x2ec9e7['id']===_0x2d710f['id']){Vs(_0x2ec9e7[_0x1a6ff1(0x211)])&&this[_0x1a6ff1(0x52e)](_0x2ec9e7['params']);return;}if(this[_0x1a6ff1(0x30c)]||_0x2ec9e7['id']!==Q['id'])return;let _0x39afaa=Bs(_0x2ec9e7[_0x1a6ff1(0x211)])?_0x2ec9e7[_0x1a6ff1(0x211)]:void 0x0,_0xc6c36b=_0x39afaa!=null&&_0x39afaa[_0x1a6ff1(0x278)]?[this[_0x1a6ff1(0x432)][_0x1a6ff1(0x2e5)](_0x39afaa[_0x1a6ff1(0x278)],_0x28d752[_0x1a6ff1(0x201)])]['filter'](_0x55af83=>!!_0x55af83):this['_univerInstanceService'][_0x1a6ff1(0x3c4)](_0x28d752[_0x1a6ff1(0x201)]),_0xcd7450=_0x39afaa==null?void 0x0:_0x39afaa['op'];_0xc6c36b[_0x1a6ff1(0x461)](_0x33212c=>{const _0x3f04db=_0x1a6ff1;let _0x2624d0=_0xcd7450?Fs(_0xcd7450):[];(!_0xcd7450||_0x2624d0[_0x3f04db(0x257)](_0x2e0535=>_0x2e0535[_0x3f04db(0x2d9)]!=='cell'))&&this[_0x3f04db(0x2f8)](_0x33212c);});}[_0x354fcb(0x2f8)](_0x376a20){const _0x297a0c=_0x354fcb;let _0x175df6=_0x376a20[_0x297a0c(0x422)]();this[_0x297a0c(0x361)][_0x297a0c(0x23f)](_0x175df6)||(this[_0x297a0c(0x361)]['add'](_0x175df6),this[_0x297a0c(0x294)](async()=>{const _0x989283=_0x297a0c;this[_0x989283(0x361)]['delete'](_0x175df6),await this[_0x989283(0x380)](_0x376a20);}));}async[_0x354fcb(0x380)](_0x156a8d){const _0x5c8ba7=_0x354fcb;let _0x5daf55=_0x156a8d[_0x5c8ba7(0x422)](),_0x412a3e=this['_formulaService'][_0x5c8ba7(0x515)](_0x156a8d[_0x5c8ba7(0x1f9)]()),_0x58059e=new Set(_0x412a3e[_0x5c8ba7(0x29b)](({tableName:_0x3a0876})=>_0x3a0876)),_0x583753=this[_0x5c8ba7(0x18f)]['get'](_0x5daf55)??new Set();for(let _0x5f0e25 of _0x583753)if(!_0x58059e['has'](_0x5f0e25)&&!await this[_0x5c8ba7(0x25a)](_0x5d6472['id'],{'unitId':_0x5daf55,'tableName':_0x5f0e25}))return;for(let {tableName:_0x2f9ebe,reference:_0x5aeb28}of _0x412a3e)if(!await this[_0x5c8ba7(0x25a)](_0x33aa29['id'],{'unitId':_0x5daf55,'tableName':_0x2f9ebe,'reference':_0x5aeb28}))return;this[_0x5c8ba7(0x18f)][_0x5c8ba7(0x1a1)](_0x5daf55,_0x58059e);}async[_0x354fcb(0x496)](_0xd52789){const _0x171084=_0x354fcb;let _0x4035e8=this['_registeredSuperTableNames'][_0x171084(0x4a8)](_0xd52789)??new Set();for(let _0x409325 of _0x4035e8)if(!await this[_0x171084(0x25a)](_0x5d6472['id'],{'unitId':_0xd52789,'tableName':_0x409325}))return;this[_0x171084(0x18f)][_0x171084(0x4f4)](_0xd52789);}async[_0x354fcb(0x25a)](_0x3b4e35,_0x3ffd53){const _0x37b5e6=_0x354fcb;return!this[_0x37b5e6(0x44d)]&&await this[_0x37b5e6(0x2ee)]['executeCommand'](_0x3b4e35,_0x3ffd53,{'onlyLocal':!0x0})&&!this[_0x37b5e6(0x44d)];}[_0x354fcb(0x294)](_0x16d159){const _0x18740e=_0x354fcb;this[_0x18740e(0x20f)]=this[_0x18740e(0x20f)][_0x18740e(0x3c5)](_0x16d159,_0x16d159)['catch'](()=>void 0x0);}[_0x354fcb(0x52e)](_0x392a2f){const _0x2f444d=_0x354fcb;let _0x4aca71=this[_0x2f444d(0x432)]['getAllUnitsForType'](_0x28d752[_0x2f444d(0x201)]);if(!_0x4aca71[_0x2f444d(0x257)](_0x3c6bbd=>{const _0x173863=_0x2f444d;var _0x151c59;return((_0x151c59=_0x392a2f[_0x173863(0x50f)])==null?void 0x0:_0x151c59[_0x3c6bbd['getUnitId']()])!=null;}))return;let _0x1bc20a=_0x4aca71[_0x2f444d(0x2a2)](_0x46a28f=>Zi(_0x46a28f[_0x2f444d(0x1f9)](),_0x392a2f));if(!_0x1bc20a[_0x2f444d(0x458)]){this[_0x2f444d(0x36b)]['markResultApplied'](_0x2001ae[_0x2f444d(0x507)],_0x392a2f);return;}let _0x26b845=new W(),_0x41204c=_0x1bc20a[_0x2f444d(0x2a2)](_0x539c22=>Is({'unitId':_0x539c22[_0x2f444d(0x278)],'tableId':_0x539c22['tableId'],'patches':_0x539c22[_0x2f444d(0x1bc)]}));this['_applyingFormulaResults']=!0x0,(async()=>{const _0x33bac1=_0x2f444d;for(let _0x201585 of _0x1bc20a){let _0x3fac29=this[_0x33bac1(0x432)][_0x33bac1(0x2e5)](_0x201585[_0x33bac1(0x278)],_0x28d752[_0x33bac1(0x201)]);_0x3fac29&&await this[_0x33bac1(0x2ee)][_0x33bac1(0x260)](Q['id'],{'unitId':_0x201585['unitId'],'op':_0x26b845[_0x33bac1(0x511)](_0x3fac29[_0x33bac1(0x1f9)](),_0x201585[_0x33bac1(0x1c3)],_0x201585['patches']),'trigger':_0x2d710f['id']},{'onlyLocal':!0x0});}await this['_commandService'][_0x33bac1(0x260)](_0x46501c['id'],{'dirtyRanges':_0x41204c},{'onlyLocal':!0x0});})()[_0x2f444d(0x233)](()=>{const _0x29ffdb=_0x2f444d;this[_0x29ffdb(0x30c)]=!0x1,this[_0x29ffdb(0x36b)]['markResultApplied'](_0x2001ae['BASE'],_0x392a2f);});}};zs=X([Y(0x0,_0x3ff846),Y(0x1,_0x3414e2),Y(0x2,_0x42d70a(_0x4f3c26)),Y(0x3,_0x42d70a(_0x1a1f33))],zs);function Bs(_0x3cfb51){const _0x151453=_0x354fcb;return typeof _0x3cfb51=='object'&&!!_0x3cfb51&&'unitId'in _0x3cfb51&&typeof _0x3cfb51[_0x151453(0x278)]==_0x151453(0x471)&&'op'in _0x3cfb51&&Array['isArray'](_0x3cfb51['op']);}function Vs(_0x143a5e){return typeof _0x143a5e=='object'&&!!_0x143a5e&&'unitData'in _0x143a5e&&'unitOtherData'in _0x143a5e;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x1589db{constructor(_0x367cee,_0x2268be,_0x4d44bd,_0x4c53fa){const _0x41e617=_0x354fcb;super(),this[_0x41e617(0x1b8)]=_0x367cee,this['_commandService']=_0x2268be,this[_0x41e617(0x487)]=_0x4d44bd,this[_0x41e617(0x2cf)]=_0x4c53fa,this[_0x41e617(0x2cf)][_0x41e617(0x3c4)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x461)](_0x55b19f=>this['_registerUnitPermissionPoints'](_0x55b19f[_0x41e617(0x422)]())),this[_0x41e617(0x1b4)](this[_0x41e617(0x2cf)][_0x41e617(0x2ae)](_0x28d752['UNIVER_BASE'])[_0x41e617(0x30f)](({unit:_0x49f520})=>this[_0x41e617(0x29c)](_0x49f520[_0x41e617(0x422)]()))),this[_0x41e617(0x1b4)](this['_commandService'][_0x41e617(0x1bf)]((_0x41a979,_0x4ed70b)=>this[_0x41e617(0x41a)](_0x41a979,_0x4ed70b))),this['disposeWithMe'](this['_instanceService'][_0x41e617(0x275)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x30f)](_0x604213=>{const _0x47a7ed=_0x41e617;this['_injector']['get'](_0x1e71b2)[_0x47a7ed(0x247)](_0x604213[_0x47a7ed(0x422)]()),Rr(this[_0x47a7ed(0x487)],_0x604213['getUnitId']());}));}[_0x354fcb(0x29c)](_0xec7c95){const _0x31d0db=_0x354fcb;Tr['forEach'](_0x437e93=>{const _0x2079e4=_0x48d8;let _0x17ff0f=Pr(_0xec7c95,_0xec7c95,_0x437e93);this[_0x2079e4(0x487)]['getPermissionPoint'](_0x17ff0f['id'])||this[_0x2079e4(0x487)][_0x2079e4(0x2da)](_0x17ff0f);}),this[_0x31d0db(0x1b8)][_0x31d0db(0x4a8)](_0x1e71b2)[_0x31d0db(0x3c9)]({'unitId':_0xec7c95,'objectId':_0xec7c95,'objectType':_0x56e21f['Base']});}[_0x354fcb(0x41a)](_0x85ca7f,_0x49929e){const _0x764ee=_0x354fcb;var _0x18b33a;if(_0x49929e!=null&&_0x49929e[_0x764ee(0x382)]||_0x49929e!=null&&_0x49929e[_0x764ee(0x38f)])return;let _0x2eeaa2=tc(_0x85ca7f['params'])?_0x85ca7f[_0x764ee(0x211)]:void 0x0;if(_0x49929e!=null&&_0x49929e['onlyLocal']&&_0x85ca7f['id']===_0x764ee(0x4d6)&&(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x1ad)])===_0x2d710f['id'])return;let _0x51db7e=Gs(_0x85ca7f['id']),_0x196083=Ws(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x278)],_0x49929e)??(_0x51db7e?(_0x18b33a=this[_0x764ee(0x2cf)]['getCurrentUnitOfType'](_0x28d752[_0x764ee(0x201)]))==null?void 0x0:_0x18b33a[_0x764ee(0x422)]():void 0x0);if(!_0x196083||this[_0x764ee(0x2cf)][_0x764ee(0x3ed)](_0x196083)!==_0x28d752[_0x764ee(0x201)])return;if(_0x51db7e){if(!Fr(this['_permissionService'],_0x196083,_0x196083,_0x51db7e))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083),new _0x1cfc9b(_0x764ee(0x34b)+_0x391870[_0x51db7e]+_0x764ee(0x477));return;}if(Hs['has'](_0x85ca7f['id'])||!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x25f))&&!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x2eb)))return;let _0x6170bf=this['_instanceService'][_0x764ee(0x2e5)](_0x196083,_0x28d752[_0x764ee(0x201)]),_0x1c4c06=_0x6170bf?Ks(_0x6170bf,_0x2eeaa2??{},_0x85ca7f['id']):[];if(!_0x6170bf||!zr(this[_0x764ee(0x487)],_0x196083,_0x1c4c06))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083,_0x1c4c06),new _0x1cfc9b(_0x764ee(0x47f));}};Us=X([Y(0x0,_0x42d70a(_0xcce289)),Y(0x1,_0x3ff846),Y(0x2,_0x211d15),Y(0x3,_0x3414e2)],Us);function Ws(_0x580038,_0x3db079){const _0x4b903a=_0x354fcb;return typeof _0x580038==_0x4b903a(0x471)?_0x580038:typeof(_0x3db079==null?void 0x0:_0x3db079[_0x4b903a(0x278)])==_0x4b903a(0x471)?_0x3db079[_0x4b903a(0x278)]:void 0x0;}function Gs(_0x33b991){const _0x9dea7=_0x354fcb;if(_0x33b991===_0x9dea7(0x4fd)||_0x33b991==='bases-exchange-client.operation.export-base-by-format')return _0x391870[_0x9dea7(0x479)];if(_0x33b991[_0x9dea7(0x254)](_0x9dea7(0x32a))||_0x33b991['startsWith'](_0x9dea7(0x3b9)))return _0x391870['Comment'];}function Ks(_0x46a752,_0x4bf579,_0x144478){const _0x1fcf06=_0x354fcb;if(_0x144478===_0x1fcf06(0x4d6)&&ec(_0x4bf579['op']))return qs(_0x46a752,_0x4bf579['op']);let _0x25492b=new Set(),_0x2d94cd=Zs(_0x4bf579,_0x1fcf06(0x513)),_0x556ea3=typeof _0x4bf579['tableId']==_0x1fcf06(0x471)?_0x4bf579['tableId']:_0x2d94cd[0x0];if(_0x2d94cd[_0x1fcf06(0x461)](_0x58a5f9=>_0x25492b[_0x1fcf06(0x35e)](K(_0x58a5f9))),!_0x556ea3)return[..._0x25492b];let _0x3e0171=_0x46a752[_0x1fcf06(0x1f9)]()[_0x1fcf06(0x2ba)][_0x556ea3],_0x3ffead=new Set(Zs(_0x4bf579,'field')),_0x1a738=new Set(Zs(_0x4bf579,_0x1fcf06(0x52b))),_0x2f9ea6=new Set(Zs(_0x4bf579,'view'));return Qs(_0x3e0171,_0x4bf579[_0x1fcf06(0x1bc)],_0x1a738,_0x3ffead),$s(_0x4bf579,_0x3ffead),_0x3ffead[_0x1fcf06(0x461)](_0x49c218=>_0x25492b[_0x1fcf06(0x35e)](q(_0x556ea3,_0x49c218))),_0x1a738['forEach'](_0x3fb910=>_0x25492b[_0x1fcf06(0x35e)](J(_0x556ea3,_0x3fb910))),_0x2f9ea6[_0x1fcf06(0x461)](_0x34a1be=>_0x25492b[_0x1fcf06(0x35e)](Mr(_0x556ea3,_0x34a1be))),[..._0x25492b];}function qs(_0xec282c,_0x51b500){const _0x18455b=_0x354fcb;let _0x559f26=_0xec282c[_0x18455b(0x1f9)](),_0x86ac0=new z()[_0x18455b(0x2b9)](_0x51b500),_0x4011a8=Js(_0x51b500),_0x5b9498=new Set();return _0x86ac0[_0x18455b(0x461)](_0x113afa=>{const _0x4c1738=_0x18455b;var _0x5c9b74,_0x2c7432;let {tableId:_0x335ab3}=_0x113afa;if(!_0x335ab3)return;_0x5b9498[_0x4c1738(0x35e)](K(_0x335ab3));let _0x31ae50=_0x559f26[_0x4c1738(0x2ba)][_0x335ab3],_0x4aba14=_0x113afa['recordId']??(_0x113afa[_0x4c1738(0x21b)]==null||_0x31ae50==null||(_0x5c9b74=_0x31ae50[_0x4c1738(0x474)])==null?void 0x0:_0x5c9b74[_0x113afa[_0x4c1738(0x21b)]]),_0x42d1f0=_0x113afa[_0x4c1738(0x46e)]??(_0x113afa['column']==null||_0x31ae50==null||(_0x2c7432=_0x31ae50[_0x4c1738(0x242)])==null?void 0x0:_0x2c7432[_0x113afa[_0x4c1738(0x26e)]]);_0x4aba14&&_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4aba14)),_0x42d1f0&&_0x5b9498['add'](q(_0x335ab3,_0x42d1f0)),_0x113afa['viewId']&&_0x5b9498['add'](Mr(_0x335ab3,_0x113afa[_0x4c1738(0x366)])),(_0x113afa[_0x4c1738(0x2d9)]==='table'||_0x4011a8[_0x4c1738(0x23f)](_0x335ab3))&&_0x31ae50&&(Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])['forEach'](_0x5b409e=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x5b409e))),Object['keys'](_0x31ae50['records'])[_0x4c1738(0x461)](_0x4ffe3b=>_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4ffe3b))),Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x38b)])['forEach'](_0x2ec2c7=>_0x5b9498[_0x4c1738(0x35e)](Mr(_0x335ab3,_0x2ec2c7)))),_0x113afa[_0x4c1738(0x2d9)]===_0x4c1738(0x52b)&&_0x31ae50&&Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])[_0x4c1738(0x461)](_0x4810ac=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x4810ac)));}),_0x86ac0[_0x18455b(0x458)]===0x0&&Xs(_0x51b500,_0x18455b(0x3e3))&&Object[_0x18455b(0x51b)](_0x559f26[_0x18455b(0x2ba)])[_0x18455b(0x461)](_0x2df321=>_0x5b9498[_0x18455b(0x35e)](K(_0x2df321))),[..._0x5b9498];}function Js(_0x1e85c9){let _0x418d0a=new Set(),_0x3a5a63=_0x4a314c=>{const _0x295cbc=_0x48d8;Array[_0x295cbc(0x354)](_0x4a314c)&&_0x4a314c[_0x295cbc(0x461)]((_0xa0adbd,_0x34bdd5)=>{const _0x3e5021=_0x295cbc;_0xa0adbd===_0x3e5021(0x2ba)&&typeof _0x4a314c[_0x34bdd5+0x1]==_0x3e5021(0x471)&&Ys(_0x4a314c[_0x34bdd5+0x2])&&_0x418d0a[_0x3e5021(0x35e)](_0x4a314c[_0x34bdd5+0x1]),_0x3a5a63(_0xa0adbd);});};return _0x3a5a63(_0x1e85c9),_0x418d0a;}function Ys(_0x4662a5){const _0x570e0f=_0x354fcb;return!!_0x4662a5&&typeof _0x4662a5==_0x570e0f(0x269)&&!Array['isArray'](_0x4662a5)&&('i'in _0x4662a5||'r'in _0x4662a5||'p'in _0x4662a5||'d'in _0x4662a5||'es'in _0x4662a5||_0x570e0f(0x2a9)in _0x4662a5||'et'in _0x4662a5);}function Xs(_0x293b76,_0x335128){const _0x2dfe44=_0x354fcb;return Array[_0x2dfe44(0x354)](_0x293b76)&&_0x293b76[_0x2dfe44(0x257)](_0x17587=>_0x17587===_0x335128||Xs(_0x17587,_0x335128));}function Zs(_0x5113b6,_0x15d260){const _0x15f647=_0x354fcb;let _0x92be61=new Set(),_0x2b1092=_0x15d260+'Id',_0x3c0b3e=_0x15d260+_0x15f647(0x50b),_0x43b28c=(_0x41269e,_0x2f144c='')=>{const _0x3bc08e=_0x15f647;typeof _0x41269e==_0x3bc08e(0x471)?_0x2f144c===_0x2b1092&&_0x92be61['add'](_0x41269e):Array[_0x3bc08e(0x354)](_0x41269e)?_0x2f144c===_0x3c0b3e?_0x41269e[_0x3bc08e(0x461)](_0x4508e8=>{typeof _0x4508e8=='string'&&_0x92be61['add'](_0x4508e8);}):_0x41269e[_0x3bc08e(0x461)](_0x53c905=>_0x43b28c(_0x53c905,_0x2f144c)):tc(_0x41269e)&&Object[_0x3bc08e(0x1e2)](_0x41269e)[_0x3bc08e(0x461)](([_0x109cda,_0x3d29b6])=>{const _0x224578=_0x3bc08e;_0x109cda==='id'&&_0x2f144c===_0x15d260&&typeof _0x3d29b6=='string'?_0x92be61[_0x224578(0x35e)](_0x3d29b6):_0x43b28c(_0x3d29b6,_0x109cda);});};return _0x43b28c(_0x5113b6),[..._0x92be61];}function Qs(_0x8eaf,_0xa278c0,_0x1ec0cc,_0x5b0c46){const _0x16c7c0=_0x354fcb;_0x8eaf&&Array[_0x16c7c0(0x354)](_0xa278c0)&&_0xa278c0[_0x16c7c0(0x461)](_0xeffd78=>{const _0x42b249=_0x16c7c0;if(!tc(_0xeffd78))return;let _0x5a07ec=_0xeffd78;if(typeof _0x5a07ec[_0x42b249(0x21b)]==_0x42b249(0x256)){var _0x30d4df;let _0x3efc48=(_0x30d4df=_0x8eaf['rowId'])==null?void 0x0:_0x30d4df[_0x5a07ec[_0x42b249(0x21b)]];_0x3efc48&&_0x1ec0cc[_0x42b249(0x35e)](_0x3efc48);}if(typeof _0x5a07ec[_0x42b249(0x1ea)]=='number'){var _0x487d3e;let _0x52a9dd=(_0x487d3e=_0x8eaf[_0x42b249(0x242)])==null?void 0x0:_0x487d3e[_0x5a07ec[_0x42b249(0x1ea)]];_0x52a9dd&&_0x5b0c46[_0x42b249(0x35e)](_0x52a9dd);}});}function $s(_0x3d9ad3,_0x2d16d0,_0x1b0bba=''){const _0x2a7dcf=_0x354fcb;_0x3d9ad3&&typeof _0x3d9ad3==_0x2a7dcf(0x269)&&(Array['isArray'](_0x3d9ad3)?_0x3d9ad3['forEach'](_0x5d253b=>$s(_0x5d253b,_0x2d16d0,_0x1b0bba)):tc(_0x3d9ad3)&&Object['entries'](_0x3d9ad3)['forEach'](([_0xc8a885,_0xe6d304])=>{const _0x47ce79=_0x2a7dcf;_0x1b0bba===_0x47ce79(0x1da)&&_0x2d16d0[_0x47ce79(0x35e)](_0xc8a885),$s(_0xe6d304,_0x2d16d0,_0xc8a885);}));}function ec(_0x52ac20){const _0x353187=_0x354fcb;return Array[_0x353187(0x354)](_0x52ac20);}function tc(_0x39ed4e){const _0x1217f1=_0x354fcb;return typeof _0x39ed4e==_0x1217f1(0x269)&&!!_0x39ed4e&&!Array[_0x1217f1(0x354)](_0x39ed4e);}const nc=_0x5d0ae0('base.resource.service');let rc=class{constructor(_0x2fd7b3){const _0x4bc7d7=_0x354fcb;this[_0x4bc7d7(0x432)]=_0x2fd7b3;}[_0x354fcb(0x239)](_0xb004f3){const _0x4494ff=_0x354fcb;return this['_univerInstanceService']['getUnit'](_0xb004f3,_0x28d752[_0x4494ff(0x201)])??null;}[_0x354fcb(0x4f0)](){const _0x16c655=_0x354fcb;return this[_0x16c655(0x432)][_0x16c655(0x3c4)](_0x28d752[_0x16c655(0x201)]);}[_0x354fcb(0x348)](_0x4c8ab4){const _0x2e5f5e=_0x354fcb;return this['_univerInstanceService'][_0x2e5f5e(0x314)](_0x28d752['UNIVER_BASE'],_0x4c8ab4);}};rc=X([Y(0x0,_0x3414e2)],rc);const ic=_0x5d0ae0(_0x354fcb(0x185));var ac=class extends _0x1589db{constructor(..._0x9c961c){const _0x26185b=_0x354fcb;super(..._0x9c961c),G(this,_0x26185b(0x252),new Map());}[_0x354fcb(0x2f4)](_0x354014){const _0xc4c19b=_0x354fcb;return this[_0xc4c19b(0x252)][_0xc4c19b(0x1a1)](_0x354014['type'],_0x354014),_0x5b4066(()=>this[_0xc4c19b(0x252)][_0xc4c19b(0x4f4)](_0x354014[_0xc4c19b(0x33a)]));}[_0x354fcb(0x4a8)](_0xde3bf9){const _0x43d385=_0x354fcb;let _0x8992f=this[_0x43d385(0x252)][_0x43d385(0x4a8)](_0xde3bf9);if(!_0x8992f)throw Error(_0x43d385(0x514)+_0xde3bf9+'\x22\x20is\x20not\x20registered.');return _0x8992f;}['getAll'](){const _0x51691f=_0x354fcb;return Array[_0x51691f(0x4dd)](this[_0x51691f(0x252)]['values']());}};const oc=[Q];let sc=class extends _0xf65dbf{constructor(_0x30151d=Ns,_0x53a119,_0x428ee7,_0x2ff248,_0x3d2e2e,_0x1699f0){const _0x1fcfbe=_0x354fcb;super(),this[_0x1fcfbe(0x4c3)]=_0x30151d,this[_0x1fcfbe(0x1b8)]=_0x53a119,this[_0x1fcfbe(0x2ee)]=_0x428ee7,this[_0x1fcfbe(0x432)]=_0x2ff248,this[_0x1fcfbe(0x47a)]=_0x3d2e2e,this[_0x1fcfbe(0x287)]=_0x1699f0,G(this,_0x1fcfbe(0x1ec),new Map());let {..._0x44cbcd}=_0x18cc98({},Ns,this['_config']);this[_0x1fcfbe(0x47a)]['setConfig']('bases.config',_0x44cbcd),this[_0x1fcfbe(0x432)]['registerCtorForType'](_0x28d752[_0x1fcfbe(0x201)],_0x2563fc),this['_initDependencies'](),this[_0x1fcfbe(0x2fc)](),this[_0x1fcfbe(0x35f)](),this[_0x1fcfbe(0x3a7)]();}[_0x354fcb(0x2d5)](){const _0x4ee581=_0x354fcb;this[_0x4ee581(0x1b8)][_0x4ee581(0x35e)]([Lo]),this['disposeWithMe'](this[_0x4ee581(0x1b8)][_0x4ee581(0x4a8)](_0x3ff846)[_0x4ee581(0x3d8)](Ro)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x3ff846)[_0x4ee581(0x3d8)](zo)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x1e71b2)[_0x4ee581(0x1aa)](_0x56e21f['Base'],this['_injector']['get'](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x454062=_0x354fcb;_0x137ee0(this['_injector'],[[rc],[qr],[Rs]]),this[_0x454062(0x432)]['getAllUnitsForType'](_0x28d752['UNIVER_BASE'])['forEach'](_0xfae939=>this[_0x454062(0x384)](_0xfae939[_0x454062(0x422)]())),_0x137ee0(this['_injector'],[[zs],[Us]]);}[_0x354fcb(0x4b2)](){const _0x3bf3ce=_0x354fcb;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x3bf3ce(0x461)](_0x2a4c71=>this[_0x3bf3ce(0x1b8)]['add'](_0x2a4c71));}[_0x354fcb(0x2fc)](){const _0x535040=_0x354fcb;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc]['forEach'](_0xe07c3a=>this['disposeWithMe'](this[_0x535040(0x2ee)][_0x535040(0x3d8)](_0xe07c3a))),oc[_0x535040(0x461)](_0x61b654=>{const _0x37a3e3=_0x535040;var _0x4f46e2;return(_0x4f46e2=this[_0x37a3e3(0x287)])==null?void 0x0:_0x4f46e2['registerSyncingMutations'](_0x61b654);});}[_0x354fcb(0x3a7)](){const _0x4780f4=_0x354fcb;this[_0x4780f4(0x287)]&&(this[_0x4780f4(0x1b4)](this[_0x4780f4(0x432)]['getTypeOfUnitAdded$'](_0x28d752[_0x4780f4(0x201)])['subscribe'](({unit:_0x1b2d05})=>{const _0x44d50f=_0x4780f4;this[_0x44d50f(0x384)](_0x1b2d05['getUnitId']());})),this['disposeWithMe'](this[_0x4780f4(0x432)][_0x4780f4(0x275)](_0x28d752['UNIVER_BASE'])['subscribe'](_0x5a7876=>{const _0x5139d0=_0x4780f4;var _0x2491f6;(_0x2491f6=this[_0x5139d0(0x1ec)][_0x5139d0(0x4a8)](_0x5a7876[_0x5139d0(0x422)]()))==null||_0x2491f6[_0x5139d0(0x3d6)](),this[_0x5139d0(0x1ec)][_0x5139d0(0x4f4)](_0x5a7876[_0x5139d0(0x422)]());})));}[_0x354fcb(0x384)](_0x53a127){const _0x213b82=_0x354fcb;this[_0x213b82(0x287)]&&!this['_baseSyncDisposables'][_0x213b82(0x23f)](_0x53a127)&&this[_0x213b82(0x1ec)][_0x213b82(0x1a1)](_0x53a127,this['_dataSyncPrimaryController'][_0x213b82(0x2b4)](_0x53a127));}[_0x354fcb(0x35f)](){const _0x37b5a1=_0x354fcb;let _0xf7a7ce=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](mr);zn()[_0x37b5a1(0x461)](_0x15020d=>_0xf7a7ce['register'](_0x15020d));let _0x3eb799=this[_0x37b5a1(0x1b8)]['get'](ic),_0x34181e=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](ii);$r()['forEach'](_0x11cfc4=>{const _0x3a0e79=_0x37b5a1;_0x3eb799[_0x3a0e79(0x2f4)](_0x11cfc4),_0x34181e[_0x3a0e79(0x37b)](_0x11cfc4);});}};G(sc,_0x354fcb(0x2c2),'BASES_PLUGIN'),G(sc,_0x354fcb(0x296),js),G(sc,_0x354fcb(0x367),Ms),G(sc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),sc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x3414e2),Y(0x4,_0x14686f),Y(0x5,_0x560f5b(_0x274988))],sc);let cc=class extends _0xf65dbf{constructor(_0x342f9b=Ps,_0x366f54,_0x40b9e7,_0x46eefb,_0x2c8419){const _0x5aed90=_0x354fcb;super(),this['_config']=_0x342f9b,this[_0x5aed90(0x1b8)]=_0x366f54,this[_0x5aed90(0x2ee)]=_0x40b9e7,this[_0x5aed90(0x47a)]=_0x46eefb,this[_0x5aed90(0x432)]=_0x2c8419;let {..._0x5817f9}=_0x18cc98({},Ps,this['_config']);this[_0x5aed90(0x47a)][_0x5aed90(0x1ff)](_0x5aed90(0x3b2),_0x5817f9),this['_univerInstanceService'][_0x5aed90(0x434)](_0x28d752[_0x5aed90(0x201)],_0x2563fc),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x5aed90(0x461)](_0x3d4f1b=>this[_0x5aed90(0x1b8)][_0x5aed90(0x35e)](_0x3d4f1b)),oc[_0x5aed90(0x461)](_0x74c51=>this[_0x5aed90(0x1b4)](this[_0x5aed90(0x2ee)]['registerCommand'](_0x74c51)));}};G(cc,_0x354fcb(0x2c2),_0x354fcb(0x292)),G(cc,_0x354fcb(0x296),js),G(cc,_0x354fcb(0x367),Ms),G(cc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),cc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x14686f),Y(0x4,_0x3414e2)],cc);function lc(_0x264770){const _0x1f22ef=_0x354fcb;let _0x2a2281=Cc(_0x264770['query']);if(!_0x2a2281)return{'query':'','total':0x0,'matches':[]};let _0x5a71e1=[],_0x5eaa92=[];for(let _0x513e01=0x0;_0x513e01<_0x264770[_0x1f22ef(0x227)][_0x1f22ef(0x458)];_0x513e01++){if(!(_0x513e01 in _0x264770[_0x1f22ef(0x227)]))continue;let _0x1aafe=_0x264770[_0x1f22ef(0x513)]['fields'][_0x264770[_0x1f22ef(0x227)][_0x513e01]];_0x1aafe&&_0x5eaa92[_0x1f22ef(0x1f3)]({'field':_0x1aafe,'fieldIndex':_0x513e01});}_0x264770['rows'][_0x1f22ef(0x461)]((_0x4d92b6,_0x1db4c8)=>{const _0x39264e=_0x1f22ef;_0x5eaa92[_0x39264e(0x461)](({field:_0x483b50,fieldIndex:_0x16a618})=>{const _0xad4f08=_0x39264e;let _0x34b712=uc(_0x4d92b6[_0xad4f08(0x1da)][_0x483b50['id']],_0x483b50);if(!_0x34b712)return;let _0x285015=Sc(_0x2a2281,_0x34b712['searchTexts']);_0x285015<=0x0||_0x5a71e1[_0xad4f08(0x1f3)]({'recordId':_0x4d92b6[_0xad4f08(0x4bb)],'fieldId':_0x483b50['id'],'fieldType':_0x483b50[_0xad4f08(0x33a)],'text':_0x34b712[_0xad4f08(0x369)],'score':_0x285015,'rowIndex':_0x1db4c8,'fieldIndex':_0x16a618});});}),_0x5a71e1[_0x1f22ef(0x3db)]((_0x333d15,_0x456a2d)=>_0x456a2d[_0x1f22ef(0x2d8)]-_0x333d15[_0x1f22ef(0x2d8)]||_0x333d15['rowIndex']-_0x456a2d[_0x1f22ef(0x290)]||_0x333d15[_0x1f22ef(0x4b4)]-_0x456a2d[_0x1f22ef(0x4b4)]);let _0x3b213e=_0x264770[_0x1f22ef(0x1e7)]==null?_0x5a71e1:_0x5a71e1['slice'](0x0,Math[_0x1f22ef(0x1b3)](0x0,_0x264770[_0x1f22ef(0x1e7)]));return{'query':_0x2a2281,'total':_0x5a71e1['length'],'matches':Tc(_0x3b213e)};}function uc(_0x57e20d,_0x211660){const _0x1d8644=_0x354fcb;let _0x10f9b9=[];for(let _0x2a7f96 of fc(_0x57e20d,_0x211660)){let _0x346552=Cc(_0x2a7f96);_0x346552&&_0x10f9b9[_0x1d8644(0x1f3)](_0x346552);}return _0x10f9b9[_0x1d8644(0x458)]?{'displayText':dc(_0x57e20d,_0x211660),'searchTexts':wc(_0x10f9b9)}:null;}function dc(_0x1496fa,_0x47c7fd){const _0x2aef53=_0x354fcb;switch(_0x47c7fd[_0x2aef53(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94[_0x2aef53(0x283)]:case _0x19bf94[_0x2aef53(0x223)]:return pc(_0x1496fa,_0x47c7fd)['join'](',\x20');case _0x19bf94['Link']:return gc(_0x1496fa);case _0x19bf94['Date']:case _0x19bf94[_0x2aef53(0x253)]:case _0x19bf94[_0x2aef53(0x347)]:return _c(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x271)]:case _0x19bf94[_0x2aef53(0x19c)]:return vc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x1ba)]:return yc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x19e)]:return _0x1496fa?_0x2aef53(0x1a9):_0x2aef53(0x530);case _0x19bf94[_0x2aef53(0x46f)]:return bc(_0x1496fa)[_0x2aef53(0x4b5)](',\x20');default:return xc(_0x1496fa);}}function fc(_0x4c437c,_0x57ba32){const _0x4d3a03=_0x354fcb;switch(_0x57ba32[_0x4d3a03(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x4d3a03(0x223)]:{let _0x1d22a5=pc(_0x4c437c,_0x57ba32);if(Array['isArray'](_0x4c437c)){let _0x40e804=[..._0x1d22a5];for(let _0x2e7bf7=0x0;_0x2e7bf7<_0x4c437c[_0x4d3a03(0x458)];_0x2e7bf7++)_0x2e7bf7 in _0x4c437c&&_0x40e804['push'](String(_0x4c437c[_0x2e7bf7]));return _0x40e804;}return _0x4c437c==null?_0x1d22a5:[..._0x1d22a5,String(_0x4c437c)];}case _0x19bf94[_0x4d3a03(0x4db)]:{let _0x157eba=hc(_0x4c437c);return[_0x157eba[_0x4d3a03(0x4d2)],_0x157eba[_0x4d3a03(0x1c7)]];}case _0x19bf94['Date']:case _0x19bf94[_0x4d3a03(0x253)]:case _0x19bf94[_0x4d3a03(0x347)]:return[_c(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x271)]:case _0x19bf94[_0x4d3a03(0x19c)]:return[vc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x1ba)]:return[yc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94['Checkbox']:return _0x4c437c?[_0x4d3a03(0x1a9),'Yes',_0x4d3a03(0x533)]:[_0x4d3a03(0x530),'No',_0x4d3a03(0x4bd)];case _0x19bf94[_0x4d3a03(0x46f)]:return bc(_0x4c437c);default:return[xc(_0x4c437c)];}}function pc(_0x3190ba,_0x22a0fa){const _0x36ff6d=_0x354fcb;var _0x56f0ec;let _0x5e372a=Array[_0x36ff6d(0x354)]((_0x56f0ec=_0x22a0fa[_0x36ff6d(0x342)])==null?void 0x0:_0x56f0ec[_0x36ff6d(0x392)])?_0x22a0fa[_0x36ff6d(0x342)][_0x36ff6d(0x392)]:[],_0x4ad766=[];if(Array['isArray'](_0x3190ba)){for(let _0x31202f=0x0;_0x31202f<_0x3190ba[_0x36ff6d(0x458)];_0x31202f++){if(!(_0x31202f in _0x3190ba))continue;let _0x50c2b9=String(_0x3190ba[_0x31202f]);_0x50c2b9&&_0x4ad766[_0x36ff6d(0x1f3)](mc(_0x5e372a,_0x50c2b9));}return _0x4ad766;}if(_0x3190ba!=null){let _0x3f37b2=String(_0x3190ba);_0x3f37b2&&_0x4ad766['push'](mc(_0x5e372a,_0x3f37b2));}return _0x4ad766;}function mc(_0x22f599,_0x11729b){const _0x2b0609=_0x354fcb;for(let _0x26f74c of _0x22f599){if(typeof _0x26f74c==_0x2b0609(0x471)&&_0x26f74c===_0x11729b)return _0x26f74c;if(_0x26f74c&&typeof _0x26f74c==_0x2b0609(0x269)){let _0x534e75=_0x26f74c;if(String(_0x534e75['id']??_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b||String(_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b)return String(_0x534e75[_0x2b0609(0x1e0)]??_0x534e75['id']??_0x11729b);}}return _0x11729b;}function hc(_0x1dec6c){const _0xef2fee=_0x354fcb;if(_0x1dec6c&&typeof _0x1dec6c=='object'&&!Array[_0xef2fee(0x354)](_0x1dec6c)){let _0x1decc5=_0x1dec6c;return{'text':String(_0x1decc5['text']??_0x1decc5['url']??''),'url':String(_0x1decc5['url']??'')};}return{'text':xc(_0x1dec6c),'url':xc(_0x1dec6c)};}function gc(_0x1d57c1){let _0x432193=hc(_0x1d57c1);return _0x432193['text']||_0x432193['url'];}function _c(_0x30562c,_0x693337){const _0x47a581=_0x354fcb;return typeof _0x30562c!=_0x47a581(0x256)||!Number[_0x47a581(0x2c3)](_0x30562c)?'':mn(_0x30562c,_0x693337['config']);}function vc(_0x48a3b9,_0x1dde41){const _0x7520cf=_0x354fcb;let _0x457724=typeof _0x48a3b9=='number'?_0x48a3b9:Number(_0x48a3b9);return Number[_0x7520cf(0x2c3)](_0x457724)?qo(_0x457724,_0x1dde41[_0x7520cf(0x342)]):'';}function yc(_0x5f4759,_0x1c189f){const _0x5e275a=_0x354fcb;let _0x363dd6=typeof _0x5f4759==_0x5e275a(0x256)?_0x5f4759:Number(_0x5f4759);return Number[_0x5e275a(0x2c3)](_0x363dd6)?Qo(_0x363dd6,_0x1c189f[_0x5e275a(0x342)]):'';}function bc(_0x1b4004){const _0x20d9ce=_0x354fcb;return Array[_0x20d9ce(0x354)](_0x1b4004)?_0x1b4004[_0x20d9ce(0x2a2)](_0x3b2dec=>{const _0x512a43=_0x20d9ce;if(!_0x3b2dec||typeof _0x3b2dec!=_0x512a43(0x269))return[];let _0x5702a1=_0x3b2dec,_0x254b26=String(_0x5702a1[_0x512a43(0x1e0)]??_0x5702a1[_0x512a43(0x1c7)]??'')[_0x512a43(0x3bc)]();return _0x254b26?[_0x254b26]:[];}):[];}function xc(_0x89fff0){const _0x2afde5=_0x354fcb;if(_0x89fff0==null)return'';if(typeof _0x89fff0==_0x2afde5(0x364))return _0x89fff0?_0x2afde5(0x468):_0x2afde5(0x442);if(typeof _0x89fff0=='number')return String(_0x89fff0);if(Array[_0x2afde5(0x354)](_0x89fff0)){let _0x42eb9b=[];for(let _0x32c7c0=0x0;_0x32c7c0<_0x89fff0['length'];_0x32c7c0++){if(!(_0x32c7c0 in _0x89fff0))continue;let _0x1c9dcf=xc(_0x89fff0[_0x32c7c0]);_0x1c9dcf&&_0x42eb9b[_0x2afde5(0x1f3)](_0x1c9dcf);}return _0x42eb9b[_0x2afde5(0x4b5)](',\x20');}if(typeof _0x89fff0==_0x2afde5(0x269)){let _0x41c3c2=_0x89fff0;return String(_0x41c3c2['title']??_0x41c3c2[_0x2afde5(0x1e0)]??_0x41c3c2[_0x2afde5(0x4d2)]??_0x41c3c2[_0x2afde5(0x1c7)]??'')[_0x2afde5(0x3bc)]();}return String(_0x89fff0);}function Sc(_0x1b1109,_0x547bfc){const _0x4d3caa=_0x354fcb;let _0x79746d=0x0;for(let _0x1e573d of _0x547bfc)_0x1e573d&&(_0x1e573d===_0x1b1109?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0x12c):_0x1e573d['startsWith'](_0x1b1109)?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0xfa):_0x1e573d[_0x4d3caa(0x231)](_0x1b1109)&&(_0x79746d=Math['max'](_0x79746d,0xc8)));return _0x79746d;}function Cc(_0x55bba7){const _0x3d4409=_0x354fcb;return _0x55bba7[_0x3d4409(0x3bc)]()[_0x3d4409(0x2b1)](/\s+/g,'\x20')[_0x3d4409(0x4f1)]();}function wc(_0x4e5e06){return Array['from'](new Set(_0x4e5e06));}function Tc(_0x54cac1){const _0x425d2f=_0x354fcb;let _0x32dc42=[];for(let {rowIndex:_0x159881,fieldIndex:_0x5e81e0,..._0x473393}of _0x54cac1)_0x32dc42[_0x425d2f(0x1f3)](_0x473393);return _0x32dc42;}function Ec(_0xd634e7){const _0x15dc1b=_0x354fcb;return{'compress':!0x0,'kind':_0x15dc1b(0x1c0),'u':_0xd634e7[_0x15dc1b(0x278)],'t':_0xd634e7['tableId'],'p':_0xd634e7[_0x15dc1b(0x1bc)][_0x15dc1b(0x29b)](_0x1d34b7=>[_0x1d34b7['row'],_0x1d34b7[_0x15dc1b(0x1ea)],Ac(_0x1d34b7[_0x15dc1b(0x416)])]),..._0xd634e7[_0x15dc1b(0x1ad)]===void 0x0?{}:{'g':_0xd634e7['trigger']}};}function Dc(_0x1be645){const _0x1332aa=_0x354fcb;if(Lc(_0x1be645,_0x1332aa(0x1c0)),!Oc(_0x1be645)){if(!Ic(_0x1be645))throw Error(_0x1332aa(0x2bb));return _0x1be645;}return{'unitId':_0x1be645['u'],'tableId':_0x1be645['t'],'patches':_0x1be645['p'][_0x1332aa(0x29b)](([_0x4a3af1,_0x33f51a,_0x5d9c97])=>({'row':_0x4a3af1,'col':_0x33f51a,'value':jc(_0x5d9c97)})),..._0x1be645['g']===void 0x0?{}:{'trigger':_0x1be645['g']}};}function Oc(_0x2efd63){const _0x31d2dc=_0x354fcb;return!Rc(_0x2efd63)||_0x2efd63[_0x31d2dc(0x2ef)]!==!0x0||_0x2efd63[_0x31d2dc(0x1e8)]!==_0x31d2dc(0x1c0)?!0x1:typeof _0x2efd63['u']==_0x31d2dc(0x471)&&typeof _0x2efd63['t']==_0x31d2dc(0x471)&&(_0x2efd63['g']===void 0x0||typeof _0x2efd63['g']=='string')&&Array['isArray'](_0x2efd63['p'])&&_0x2efd63['p'][_0x31d2dc(0x1b6)](_0x3cee7e=>Array['isArray'](_0x3cee7e)&&_0x3cee7e[_0x31d2dc(0x458)]===0x3&&Number['isInteger'](_0x3cee7e[0x0])&&Number[_0x31d2dc(0x39d)](_0x3cee7e[0x1]));}function kc(_0x574e26){const _0x410786=_0x354fcb;return!Rc(_0x574e26)||_0x574e26[_0x410786(0x2ef)]!==!0x0||_0x574e26[_0x410786(0x1e8)]!==_0x410786(0x3a4)||!Rc(_0x574e26['tables'])?!0x1:Object[_0x410786(0x1da)](_0x574e26['tables'])['every'](_0x21dee3=>Rc(_0x21dee3)&&(_0x21dee3['cd']===void 0x0||Array['isArray'](_0x21dee3['cd'])&&_0x21dee3['cd']['every'](_0x50264d=>Array['isArray'](_0x50264d)&&_0x50264d['length']===0x3&&Number[_0x410786(0x39d)](_0x50264d[0x0])&&Number['isInteger'](_0x50264d[0x1])&&Fc(_0x50264d[0x2]))));}function Ac(_0x2cbb9e){return Pc(_0x2cbb9e)?Mc(_0x2cbb9e):_0x2cbb9e;}function jc(_0x1509b6){return Fc(_0x1509b6)?Nc(_0x1509b6):_0x1509b6;}function Mc(_0x15a704){return{'c':0x1,..._0x15a704['v']===void 0x0?{}:{'v':_0x15a704['v']},..._0x15a704['t']!==void 0x0&&_0x15a704['t']!==null?{'t':_0x15a704['t']}:_0x15a704['t']===null?{'t':null}:{},..._0x15a704['f']!==void 0x0&&_0x15a704['f']!==null?{'f':_0x15a704['f']}:_0x15a704['f']===null?{'f':null}:{},..._0x15a704['si']!==void 0x0&&_0x15a704['si']!==null?{'si':_0x15a704['si']}:_0x15a704['si']===null?{'si':null}:{},..._0x15a704['p']!==void 0x0&&_0x15a704['p']!==null?{'p':_0x15a704['p']}:_0x15a704['p']===null?{'p':null}:{}};}function Nc(_0x312dcb){return{..._0x312dcb['v']===void 0x0?{}:{'v':_0x312dcb['v']},..._0x312dcb['t']===void 0x0?{}:{'t':_0x312dcb['t']},..._0x312dcb['f']===void 0x0?{}:{'f':_0x312dcb['f']},..._0x312dcb['si']===void 0x0?{}:{'si':_0x312dcb['si']},..._0x312dcb['p']===void 0x0?{}:{'p':_0x312dcb['p']}};}function Pc(_0x5eec51){const _0x5105ce=_0x354fcb;return!!_0x5eec51&&typeof _0x5eec51==_0x5105ce(0x269)&&!Array['isArray'](_0x5eec51)&&(Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'v')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'t')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'p')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'f')||Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'si'));}function Fc(_0x27d90d){return Rc(_0x27d90d)&&_0x27d90d['c']===0x1;}function Ic(_0xc5d21d){const _0x135caf=_0x354fcb;return Rc(_0xc5d21d)&&typeof _0xc5d21d[_0x135caf(0x278)]==_0x135caf(0x471)&&typeof _0xc5d21d[_0x135caf(0x1c3)]==_0x135caf(0x471)&&(_0xc5d21d[_0x135caf(0x1ad)]===void 0x0||typeof _0xc5d21d['trigger']==_0x135caf(0x471))&&Array[_0x135caf(0x354)](_0xc5d21d[_0x135caf(0x1bc)])&&_0xc5d21d[_0x135caf(0x1bc)][_0x135caf(0x1b6)](_0x4e0db6=>Rc(_0x4e0db6)&&Number[_0x135caf(0x39d)](_0x4e0db6[_0x135caf(0x21b)])&&Number['isInteger'](_0x4e0db6[_0x135caf(0x1ea)])&&_0x135caf(0x416)in _0x4e0db6);}function Lc(_0x55dce9,_0x1b3ca9){const _0x223722=_0x354fcb;if(Rc(_0x55dce9)&&_0x55dce9['compress']===!0x0){if(_0x55dce9[_0x223722(0x1e8)]!==_0x1b3ca9)throw Error(_0x223722(0x195)+String(_0x55dce9['kind'])+'\x22.');if(!(_0x1b3ca9===_0x223722(0x1c0)?Oc(_0x55dce9):kc(_0x55dce9)))throw Error(_0x223722(0x418)+_0x1b3ca9+'\x22.');}}function _0x48d8(_0x2f0482,_0x9465a9){_0x2f0482=_0x2f0482-0x171;const _0x235733=_0x2357();let _0x48d80b=_0x235733[_0x2f0482];return _0x48d80b;}function Rc(_0x50ddb7){const _0x2cfe51=_0x354fcb;return!!_0x50ddb7&&typeof _0x50ddb7=='object'&&!Array[_0x2cfe51(0x354)](_0x50ddb7);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x5d9833 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|
|
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};
|