@univerjs-pro/bases 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/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/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4e663c=_0x4619;(function(_0x488d8b,_0x31754c){const _0x49c5dd=_0x4619,_0x1938ff=_0x488d8b();while(!![]){try{const _0x1f86e5=-parseInt(_0x49c5dd(0x3e1))/0x1+-parseInt(_0x49c5dd(0x173))/0x2+-parseInt(_0x49c5dd(0x37b))/0x3+-parseInt(_0x49c5dd(0x1c4))/0x4+-parseInt(_0x49c5dd(0x1ae))/0x5*(-parseInt(_0x49c5dd(0x287))/0x6)+parseInt(_0x49c5dd(0x286))/0x7+parseInt(_0x49c5dd(0x1e2))/0x8;if(_0x1f86e5===_0x31754c)break;else _0x1938ff['push'](_0x1938ff['shift']());}catch(_0xcd2ec){_0x1938ff['push'](_0x1938ff['shift']());}}}(_0x4de6,0x65ec6));import{BASE_RECORD_ID_FIELD_ID as _0x251017,BaseConditionalColorOperator as _0x385b50,BaseConditionalColorTarget as _0x4cd258,BaseConditionalDateMode as _0x4a0571,BaseDataModel as _0x48913d,BaseFieldType as _0x5f310d,BaseFilterConjunction as _0x231ccc,BaseHierarchyInvalidReason as _0x5da3fc,BaseRecordLinkRole as _0xef1c81,BaseSortDirection as _0x4012fd,BaseViewType as _0x45c2b1,CellValueType as _0x1f224e,ColorKit as _0x48af3a,CommandType as _0x551bc1,CustomCommandExecutionError as _0x200063,DateSystem as _0x4b651b,DependentOn as _0x526370,Disposable as _0x528c5b,ErrorService as _0x355726,ICommandService as _0x401540,IConfigService as _0xcac11c,IPermissionService as _0x515a1d,IResourceManagerService as _0x1cc6c1,IUndoRedoService as _0x27bed1,IUniverInstanceService as _0x31ecdb,Inject as _0x3d5ad9,Injector as _0x15b253,JSON1 as _0x1ba09c,JSONX as _0x29270d,ObjectMatrix as _0x16027e,ObjectPermissionRuleModel as _0x3e8892,ObjectPermissionService as _0x24deb1,Optional as _0x463169,PermissionStatus as _0x4f2371,Plugin as _0x20ec38,Tools as _0x6981f1,UniverInstanceType as _0x2f51c2,allocateBaseFormulaTableName as _0x1dddab,assertBaseTableRecordIdentity as _0x3a5a33,createBaseFormulaTableNameMap as _0x3e0263,createBaseRecordIdField as _0x380c2b,createIdentifier as _0x55d87a,dateKit as _0x1c7af5,excelDateTimeSerial as _0xbd2fda,excelSerialToDateTime as _0x44e2fc,generateRandomId as _0x4b8ea3,getBaseFormulaTableName as _0x350df4,isBaseRecordIdFieldName as _0x154a90,isValidBaseRecordId as _0x611fc0,merge as _0x24d015,nameCharacterCheck as _0x271f49,numfmt as _0x31df51,regexp as _0x3e15dd,sequenceExecute as _0x4d96db,toDisposable as _0x1b91c9,touchDependencies as _0x36611e}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x169377,IActiveDirtyManagerService as _0x5bae85,RemoveSuperTableMutation as _0x2a9f56,SetFormulaCalculationResultMutation as _0x1a1a15,SetSuperTableMutation as _0x3f2919,SetTriggerFormulaCalculationStartMutation as _0x3fc77d,UniverProFormulaEnginePlugin as _0x4a7af3,refactorFormulaUnitQualifier as _0x529677}from'@univerjs-pro/engine-formula';import{UnitAction as _0x3e9bc5,UnitObject as _0x127560}from'@univerjs/protocol';import{UniverLicensePlugin as _0x4b1697}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x1d9f42}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x2203c4,FormulaResultApplicationType as _0x2d04d4}from'@univerjs/engine-formula';function N(_0x40a5bc){const _0x570433=_0x4619;let _0x437d6c=_0x40a5bc[_0x570433(0x2c4)][_0x570433(0x21f)],_0xdbb694=_0x40a5bc[_0x570433(0x2c4)]['multiple'],_0x20004e=_0x40a5bc['config'][_0x570433(0x35f)],_0xf7c3a9=_0x40a5bc[_0x570433(0x2c4)][_0x570433(0x3a2)],_0x573038=_0x40a5bc[_0x570433(0x2c4)][_0x570433(0x28f)];return typeof _0x437d6c!='string'||!_0x437d6c||typeof _0xdbb694!=_0x570433(0x2dc)||_0x20004e!==void 0x0&&(typeof _0x20004e!=_0x570433(0x432)||!_0x20004e)||_0x573038!==void 0x0&&_0x573038!==_0xef1c81['Parent']||_0xf7c3a9!==void 0x0&&(!Array['isArray'](_0xf7c3a9)||_0xf7c3a9[_0x570433(0x48c)](_0x474baf=>typeof _0x474baf!=_0x570433(0x432)||!_0x474baf)||new Set(_0xf7c3a9)[_0x570433(0x263)]!==_0xf7c3a9[_0x570433(0x255)])?null:{'targetTableId':_0x437d6c,'multiple':_0xdbb694,..._0x20004e?{'displayFieldId':_0x20004e}:{},..._0xf7c3a9?{'pickerFieldIds':[..._0xf7c3a9]}:{},..._0x573038?{'relationRole':_0x573038}:{}};}function Le(_0x39f0e4){const _0x3df6cf=_0x4619;return typeof _0x39f0e4!=_0x3df6cf(0x432)||_0x39f0e4===''?[]:_0x39f0e4[_0x3df6cf(0x161)](',');}function Re(_0x36b47c){const _0x393731=_0x4619;return Array['from'](new Set(_0x36b47c))[_0x393731(0x2e9)](',');}function ze(_0x33ddce,_0x3a989b){const _0xa67aae=_0x4619;if(typeof _0x33ddce!=_0xa67aae(0x432))return{'valid':!0x1,'reason':'[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.'};if(_0x33ddce==='')return{'valid':!0x0};let _0x34236b=_0x33ddce['split'](',');return!_0x3a989b&&_0x34236b['length']>0x1?{'valid':!0x1,'reason':_0xa67aae(0x25b)}:_0x34236b[_0xa67aae(0x48c)](_0x30546b=>!_0x611fc0(_0x30546b))||new Set(_0x34236b)[_0xa67aae(0x263)]!==_0x34236b[_0xa67aae(0x255)]||Re(_0x34236b)!==_0x33ddce?{'valid':!0x1,'reason':_0xa67aae(0x43b)}:{'valid':!0x0};}function Be(_0x13b6dd,_0x21b98e){const _0x513e85=_0x4619;if(_0x21b98e[_0x513e85(0x111)]!==_0x5f310d['RecordLink'])return{'valid':!0x0};let _0x23b400=N(_0x21b98e),_0x576898=_0x23b400?_0x13b6dd[_0x513e85(0x13e)][_0x23b400['targetTableId']]:void 0x0;if(!_0x23b400||!_0x576898)return{'valid':!0x1,'reason':_0x513e85(0x3aa)};let _0xe64074=[..._0x23b400[_0x513e85(0x35f)]?[_0x23b400[_0x513e85(0x35f)]]:[],..._0x23b400[_0x513e85(0x3a2)]??[]][_0x513e85(0x143)](_0x5178bc=>{const _0xab6fc4=_0x513e85;let _0x12cb7c=_0x576898[_0xab6fc4(0x45e)][_0x5178bc];return!_0x12cb7c||_0x12cb7c[_0xab6fc4(0x39c)]===!0x0||_0x12cb7c[_0xab6fc4(0x111)]===_0x5f310d[_0xab6fc4(0x44e)];});return _0xe64074?{'valid':!0x1,'reason':_0x513e85(0x2d1)+_0xe64074+_0x513e85(0x364)}:{'valid':!0x0};}function Ve(_0x46fd12,_0x96e8fd,_0x385d5d,_0x2facc7={}){const _0x38a270=_0x4619;let _0x12ec6f=N(_0x96e8fd);if(_0x96e8fd['type']!==_0x5f310d[_0x38a270(0x3e4)]||!_0x12ec6f)return{'valid':!0x1,'reason':_0x38a270(0x3ac)};let _0x11e4cf=ze(_0x385d5d,_0x12ec6f[_0x38a270(0x1cf)]);if(!_0x11e4cf[_0x38a270(0x39f)]||_0x2facc7['allowDangling'])return _0x11e4cf;let _0x3067e9=_0x46fd12[_0x38a270(0x13e)][_0x12ec6f[_0x38a270(0x21f)]];if(!_0x3067e9)return{'valid':!0x1,'reason':_0x38a270(0x3aa)};let _0x4e2f20=Le(_0x385d5d)[_0x38a270(0x143)](_0x19e2a0=>!_0x3067e9[_0x38a270(0x3f2)][_0x19e2a0]);return _0x4e2f20?{'valid':!0x1,'reason':_0x38a270(0x292)+_0x4e2f20+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0x20330a,_0x239513){const _0x2de10d=_0x4619;return Object[_0x2de10d(0x325)](_0x20330a[_0x2de10d(0x13e)])[_0x2de10d(0x1fb)](_0x336694=>Object[_0x2de10d(0x325)](_0x336694['fields'])[_0x2de10d(0x1fb)](_0x67f1f6=>{const _0x38a69a=_0x2de10d;let _0x242d5f=_0x67f1f6[_0x38a69a(0x111)]===_0x5f310d[_0x38a69a(0x3e4)]?N(_0x67f1f6):null;return(_0x242d5f==null?void 0x0:_0x242d5f[_0x38a69a(0x21f)])===_0x239513?[{'tableId':_0x336694['id'],'fieldId':_0x67f1f6['id']}]:[];}));}const Ue=0x5,We=_0x4e663c(0x4a4);let Ge=function(_0x12761a){const _0x13de7a=_0x4e663c;return _0x12761a[_0x13de7a(0x1f3)]=_0x13de7a(0x24e),_0x12761a[_0x13de7a(0x392)]='missingRecord',_0x12761a[_0x13de7a(0x237)]=_0x13de7a(0x1a4),_0x12761a[_0x13de7a(0x38b)]=_0x13de7a(0x242),_0x12761a[_0x13de7a(0x41f)]='maxDepth',_0x12761a[_0x13de7a(0x354)]=_0x13de7a(0x18d),_0x12761a;}({});var P=class extends Error{constructor(_0x22369c,_0x1769d1=_0x4e663c(0x3e0)+_0x22369c){const _0x3acefa=_0x4e663c;super(_0x1769d1),this['code']=_0x22369c,this[_0x3acefa(0x269)]=_0x3acefa(0x4bd);}};let Ke=function(_0x214021){const _0x5d6dc5=_0x4e663c;return _0x214021['UI']='ui',_0x214021[_0x5d6dc5(0x434)]=_0x5d6dc5(0x271),_0x214021['Remote']=_0x5d6dc5(0x208),_0x214021[_0x5d6dc5(0x395)]='undo',_0x214021[_0x5d6dc5(0x409)]=_0x5d6dc5(0x249),_0x214021[_0x5d6dc5(0x36c)]=_0x5d6dc5(0x45b),_0x214021;}({});function F(_0xf23379,_0x359796){const _0x37ff98=_0x4e663c;if(!_0x359796)return!0x1;let _0x24cdab=_0xf23379[_0x37ff98(0x45e)][_0x359796];if(!_0x24cdab||_0x24cdab[_0x37ff98(0x111)]!==_0x5f310d[_0x37ff98(0x3e4)])return!0x1;let _0x428efc=N(_0x24cdab);return _0x428efc?_0x428efc[_0x37ff98(0x21f)]===_0xf23379['id']&&_0x428efc[_0x37ff98(0x1cf)]===!0x1:!0x1;}function qe(_0xe14012){const _0x231d4a=_0x4e663c;return[..._0xe14012['fieldOrder'],...Object[_0x231d4a(0x467)](_0xe14012['fields'])['filter'](_0x43bb6d=>!_0xe14012[_0x231d4a(0x4c0)][_0x231d4a(0x176)](_0x43bb6d))[_0x231d4a(0x3db)]()][_0x231d4a(0x143)](_0x4db2a8=>{const _0x1735d6=_0x231d4a;var _0x7570d2;return F(_0xe14012,_0x4db2a8)?((_0x7570d2=N(_0xe14012['fields'][_0x4db2a8]))==null?void 0x0:_0x7570d2[_0x1735d6(0x28f)])===_0xef1c81[_0x1735d6(0x367)]:!0x1;})??null;}function Je(_0x272dd6){const _0x5bb647=_0x4e663c;let _0x589b37=qe(_0x272dd6);if(_0x589b37)return _0x589b37;let _0x34d433=We,_0x42b796=0x2;for(;_0x272dd6[_0x5bb647(0x45e)][_0x34d433];)_0x34d433=We+'_'+_0x42b796++;return _0x34d433;}function Ye(_0x176863,_0x5a7927=Je(_0x176863),_0x1771c7=_0x4e663c(0x18b)){const _0x282c06=_0x4e663c;return{'id':_0x5a7927,'name':_0x1771c7,'type':_0x5f310d[_0x282c06(0x3e4)],'config':{'targetTableId':_0x176863['id'],'multiple':!0x1,'displayFieldId':_0x176863[_0x282c06(0x210)],'pickerFieldIds':[_0x176863['primaryFieldId']],'relationRole':_0xef1c81[_0x282c06(0x367)]}};}function Xe(_0x103296){let _0x529753=qe(_0x103296);return _0x529753?[_0x529753]:[];}function Ze(_0x466197,_0x6d24d){const _0x3b9742=_0x4e663c;let _0x242201=[...Xe(_0x466197)]['filter'](_0x4e50d8=>_0x6d24d[_0x3b9742(0x48c)](_0x2a2543=>Object[_0x3b9742(0x4a2)][_0x3b9742(0x236)][_0x3b9742(0x3bf)](_0x2a2543[_0x3b9742(0x325)],_0x4e50d8)));if(!_0x242201[_0x3b9742(0x255)])return[];let _0x5540b3={..._0x466197[_0x3b9742(0x3f2)]};_0x6d24d[_0x3b9742(0x29f)](_0x1c86bb=>{const _0x446d8d=_0x3b9742;let _0x3e4815=_0x5540b3[_0x1c86bb[_0x446d8d(0x1ef)]];_0x3e4815&&(_0x5540b3[_0x1c86bb[_0x446d8d(0x1ef)]]={..._0x3e4815,'values':{..._0x3e4815[_0x446d8d(0x325)],..._0x1c86bb[_0x446d8d(0x325)]}});});let _0x2243db={..._0x466197,'records':_0x5540b3},_0x49cc32=[];return _0x242201[_0x3b9742(0x29f)](_0x36fbd6=>{const _0x455960=_0x3b9742;let _0x1c51a8=tt(_0x466197,_0x36fbd6),_0x3a464b=tt(_0x2243db,_0x36fbd6);for(let [_0x2d3c07,_0x35aa2d]of _0x3a464b[_0x455960(0x185)]){let _0x504f31=_0x6d24d[_0x455960(0x48c)](_0x460de2=>_0x460de2[_0x455960(0x1ef)]===_0x2d3c07&&Object[_0x455960(0x4a2)][_0x455960(0x236)]['call'](_0x460de2[_0x455960(0x325)],_0x36fbd6));if(_0x1c51a8[_0x455960(0x185)][_0x455960(0x1f4)](_0x2d3c07)!==_0x35aa2d||_0x504f31)throw new P($e(_0x35aa2d));}_0x6d24d[_0x455960(0x29f)](_0x437a2e=>{const _0x2acad3=_0x455960;if(!Object[_0x2acad3(0x4a2)][_0x2acad3(0x236)][_0x2acad3(0x3bf)](_0x437a2e['values'],_0x36fbd6))return;let _0x1899e2=_0x1c51a8['parentByRecordId'][_0x2acad3(0x1f4)](_0x437a2e[_0x2acad3(0x1ef)])??null,_0x8c2dc4=_0x3a464b[_0x2acad3(0x158)]['get'](_0x437a2e[_0x2acad3(0x1ef)])??null;_0x1899e2!==_0x8c2dc4&&_0x49cc32[_0x2acad3(0x25c)]({'tableId':_0x466197['id'],'fieldId':_0x36fbd6,'recordId':_0x437a2e[_0x2acad3(0x1ef)],'oldParentRecordId':_0x1899e2,'parentRecordId':_0x8c2dc4});});}),_0x49cc32;}function Qe(_0x27dba4,_0x11b301){const _0x26fa4b=_0x4e663c;let _0x840fb1=_0x11b301[_0x26fa4b(0x19c)](_0x37f545=>_0x37f545['id']);if(new Set(_0x840fb1)[_0x26fa4b(0x263)]!==_0x840fb1[_0x26fa4b(0x255)]||_0x840fb1[_0x26fa4b(0x48c)](_0x166892=>_0x27dba4[_0x26fa4b(0x3f2)][_0x166892]))return[];let _0x2f1ee9=Xe(_0x27dba4),_0xa4c7f5=_0x2f1ee9[_0x26fa4b(0x255)]?null:Je(_0x27dba4),_0x245be5=[..._0x2f1ee9,..._0xa4c7f5&&_0x11b301['some'](_0x41a756=>Object['prototype'][_0x26fa4b(0x236)]['call'](_0x41a756[_0x26fa4b(0x325)],_0xa4c7f5))?[_0xa4c7f5]:[]][_0x26fa4b(0x20d)](_0x36bf97=>_0x11b301['some'](_0x55687e=>Object['prototype'][_0x26fa4b(0x236)][_0x26fa4b(0x3bf)](_0x55687e[_0x26fa4b(0x325)],_0x36bf97)));if(!_0x245be5['length'])return[];let _0x18597f={..._0x27dba4,'records':{..._0x27dba4['records'],...Object[_0x26fa4b(0x147)](_0x11b301['map'](_0x21de45=>[_0x21de45['id'],_0x21de45]))},'recordOrder':[..._0x27dba4['recordOrder']??[],..._0x11b301[_0x26fa4b(0x19c)](_0x2d724e=>_0x2d724e['id'])]},_0x407f4f=[];return _0x245be5[_0x26fa4b(0x29f)](_0x551984=>{const _0x1fde3a=_0x26fa4b;let _0x5c1caa=tt(_0x18597f,_0x551984);_0x11b301[_0x1fde3a(0x29f)](_0x512766=>{const _0x1e6a22=_0x1fde3a;let _0x17c2f4=_0x5c1caa[_0x1e6a22(0x185)]['get'](_0x512766['id']);if(_0x17c2f4)throw new P($e(_0x17c2f4));let _0x4f324c=_0x5c1caa[_0x1e6a22(0x158)][_0x1e6a22(0x1f4)](_0x512766['id'])??null;_0x4f324c&&_0x407f4f[_0x1e6a22(0x25c)]({'tableId':_0x27dba4['id'],'fieldId':_0x551984,'recordId':_0x512766['id'],'oldParentRecordId':null,'parentRecordId':_0x4f324c});});}),_0x407f4f;}function $e(_0x3b58bd){const _0x1368e3=_0x4e663c;switch(_0x3b58bd){case _0x5da3fc[_0x1368e3(0x411)]:return _0x1368e3(0x218);case _0x5da3fc[_0x1368e3(0x237)]:return _0x1368e3(0x1a4);case _0x5da3fc[_0x1368e3(0x38b)]:return'cycle';case _0x5da3fc[_0x1368e3(0x41f)]:return _0x1368e3(0x198);}}function et(_0x168957,_0x58e05d){const _0x532c55=_0x4e663c;let _0x1aae7c=new Set(_0x58e05d),_0x5b49ed=Xe(_0x168957);return Object[_0x532c55(0x325)](_0x168957[_0x532c55(0x3f2)])['flatMap'](_0x30f6c2=>_0x1aae7c['has'](_0x30f6c2['id'])?[]:Array[_0x532c55(0x40e)](_0x5b49ed)['flatMap'](_0x4a2f37=>{const _0x54f367=_0x532c55;let _0x48ea12=Le(_0x30f6c2['values'][_0x4a2f37])[0x0]??null;return _0x48ea12&&_0x1aae7c[_0x54f367(0x19e)](_0x48ea12)?[{'tableId':_0x168957['id'],'fieldId':_0x4a2f37,'recordId':_0x30f6c2['id'],'oldParentRecordId':_0x48ea12,'parentRecordId':null}]:[];}));}function tt(_0x5ca1ae,_0x23cdbd,_0x2f97ac=_0x5ca1ae[_0x4e663c(0x36b)]??Object['keys'](_0x5ca1ae[_0x4e663c(0x3f2)])){const _0x813716=_0x4e663c;if((_0x5ca1ae[_0x813716(0x45e)][_0x23cdbd]||_0x23cdbd!==Je(_0x5ca1ae))&&!F(_0x5ca1ae,_0x23cdbd))throw Error(_0x813716(0x13b)+_0x23cdbd+_0x813716(0x44a));let _0x341245=at(_0x5ca1ae,_0x2f97ac),_0x3e10cc=new Map(),_0x924d58=new Map();for(let _0x2c40de of _0x341245){var _0x2eb739;let _0x58b674=Le((_0x2eb739=_0x5ca1ae[_0x813716(0x3f2)][_0x2c40de])==null?void 0x0:_0x2eb739[_0x813716(0x325)][_0x23cdbd])[0x0]??null;_0x58b674?_0x58b674===_0x2c40de?(_0x3e10cc[_0x813716(0x233)](_0x2c40de,null),_0x924d58[_0x813716(0x233)](_0x2c40de,_0x5da3fc[_0x813716(0x237)])):_0x5ca1ae[_0x813716(0x3f2)][_0x58b674]?_0x3e10cc[_0x813716(0x233)](_0x2c40de,_0x58b674):(_0x3e10cc[_0x813716(0x233)](_0x2c40de,null),_0x924d58[_0x813716(0x233)](_0x2c40de,_0x5da3fc['MissingParent'])):_0x3e10cc[_0x813716(0x233)](_0x2c40de,null);}ot(_0x3e10cc,_0x924d58,_0x341245),st(_0x3e10cc,_0x924d58,_0x341245);let _0x502f60=new Map(_0x341245[_0x813716(0x19c)]((_0x4beb79,_0x2ab216)=>[_0x4beb79,_0x2ab216])),_0x21fb2c=new Map();for(let _0x51a4a9 of _0x341245){let _0x4e77b4=_0x3e10cc[_0x813716(0x1f4)](_0x51a4a9)??null,_0x207752=_0x21fb2c['get'](_0x4e77b4)??[];_0x207752[_0x813716(0x25c)](_0x51a4a9),_0x21fb2c['set'](_0x4e77b4,_0x207752);}_0x21fb2c['forEach'](_0x5c8a3d=>_0x5c8a3d[_0x813716(0x3db)]((_0x5c24f4,_0x44f596)=>(_0x502f60[_0x813716(0x1f4)](_0x5c24f4)??0x0)-(_0x502f60[_0x813716(0x1f4)](_0x44f596)??0x0)));let _0x4b6d85=_0x21fb2c[_0x813716(0x1f4)](null)??[],_0x30d635=new Map(),_0x1a0f09=new Map(),_0x328fa9=[],_0x28c987=(_0x4e7e08,_0x2ca89c)=>{const _0x4eaf4f=_0x813716;_0x30d635[_0x4eaf4f(0x233)](_0x4e7e08,_0x2ca89c),_0x328fa9['push'](_0x4e7e08);let _0x21dad0=0x0;for(let _0x623286 of _0x21fb2c[_0x4eaf4f(0x1f4)](_0x4e7e08)??[])_0x21dad0=Math['max'](_0x21dad0,0x1+_0x28c987(_0x623286,_0x2ca89c+0x1));return _0x1a0f09[_0x4eaf4f(0x233)](_0x4e7e08,_0x21dad0),_0x21dad0;};return _0x4b6d85[_0x813716(0x29f)](_0x566264=>_0x28c987(_0x566264,0x0)),{'fieldId':_0x23cdbd,'parentByRecordId':_0x3e10cc,'childrenByParentId':_0x21fb2c,'depthByRecordId':_0x30d635,'subtreeHeightByRecordId':_0x1a0f09,'invalidReasonByRecordId':_0x924d58,'rootRecordIds':_0x4b6d85,'orderedRecordIds':_0x328fa9};}function nt(_0x5f106b,_0x4d4fa4,_0x397385=new Set(_0x4d4fa4['map'](_0x1d3b19=>_0x1d3b19[_0x4e663c(0x1ef)]))){const _0x3b6878=_0x4e663c;let _0x4b57b5=new Set(_0x397385);for(let _0x598747 of _0x397385){let _0x1f5da7=_0x5f106b[_0x3b6878(0x158)]['get'](_0x598747)??null;for(;_0x1f5da7;)_0x4b57b5[_0x3b6878(0x133)](_0x1f5da7),_0x1f5da7=_0x5f106b['parentByRecordId'][_0x3b6878(0x1f4)](_0x1f5da7)??null;}let _0xcb053a=new Map(_0x4d4fa4[_0x3b6878(0x19c)](_0x5a25b6=>[_0x5a25b6[_0x3b6878(0x1ef)],_0x5a25b6])),_0x1133c3=_0x5f106b['orderedRecordIds'][_0x3b6878(0x20d)](_0x2427f1=>_0x4b57b5['has'](_0x2427f1)),_0x28aeb6=_0x1133c3[_0x3b6878(0x1fb)](_0x3b7a57=>{const _0x2c1fc1=_0x3b6878;let _0x47d873=_0xcb053a[_0x2c1fc1(0x1f4)](_0x3b7a57);return _0x47d873?[_0x47d873]:[];}),_0x322a0c={};for(let _0x352bea=0x0;_0x352bea<_0x1133c3[_0x3b6878(0x255)];_0x352bea++){let _0x9ff541=_0x1133c3[_0x352bea];_0x322a0c[_0x9ff541]={'recordId':_0x9ff541,'parentRecordId':_0x5f106b['parentByRecordId']['get'](_0x9ff541)??null,'depth':_0x5f106b[_0x3b6878(0x3ca)]['get'](_0x9ff541)??0x0,'directChildCount':(_0x5f106b[_0x3b6878(0x3d1)][_0x3b6878(0x1f4)](_0x9ff541)??[])[_0x3b6878(0x255)],'subtreeHeight':_0x5f106b[_0x3b6878(0x3d4)][_0x3b6878(0x1f4)](_0x9ff541)??0x0,'subtreeEndIndex':_0x352bea,'invalidReason':_0x5f106b[_0x3b6878(0x185)][_0x3b6878(0x1f4)](_0x9ff541)};}let _0x3a0417=[];for(let _0x5d6aa7=0x0;_0x5d6aa7<_0x1133c3['length'];_0x5d6aa7++){let _0x103428=_0x1133c3[_0x5d6aa7],_0x88559b=_0x322a0c[_0x103428]['depth'];for(;_0x3a0417[_0x3b6878(0x255)]&&_0x3a0417[_0x3a0417[_0x3b6878(0x255)]-0x1][_0x3b6878(0x3c1)]>=_0x88559b;){let _0x1a3a43=_0x3a0417[_0x3b6878(0x472)]();_0x322a0c[_0x1a3a43[_0x3b6878(0x1ef)]][_0x3b6878(0x3a3)]=_0x5d6aa7-0x1;}_0x3a0417[_0x3b6878(0x25c)]({'recordId':_0x103428,'depth':_0x88559b});}return _0x3a0417['forEach'](({recordId:_0xb6925})=>{const _0x1fca4a=_0x3b6878;_0x322a0c[_0xb6925][_0x1fca4a(0x3a3)]=_0x1133c3[_0x1fca4a(0x255)]-0x1;}),{'rows':_0x28aeb6,'hierarchy':{'fieldId':_0x5f106b[_0x3b6878(0x2be)],'rootRecordIds':_0x5f106b[_0x3b6878(0x46a)][_0x3b6878(0x20d)](_0x525cab=>_0x4b57b5[_0x3b6878(0x19e)](_0x525cab)),'orderedRecordIds':_0x1133c3,'nodes':_0x322a0c}};}function rt(_0x324eb4,_0x57d134){const _0x59140b=_0x4e663c;if(!_0x324eb4['hierarchy']||!(_0x57d134!=null&&_0x57d134['size']))return _0x324eb4['rows'];let _0x4f8167=[],_0xc765f3=0x0;for(;_0xc765f3<_0x324eb4['rows'][_0x59140b(0x255)];){let _0xb00728=_0x324eb4[_0x59140b(0x377)][_0xc765f3];_0x4f8167[_0x59140b(0x25c)](_0xb00728);let _0x458d47=_0x324eb4[_0x59140b(0x26b)][_0x59140b(0x2a3)][_0xb00728[_0x59140b(0x1ef)]];_0xc765f3=_0x57d134[_0x59140b(0x19e)](_0xb00728['recordId'])&&_0x458d47?_0x458d47[_0x59140b(0x3a3)]+0x1:_0xc765f3+0x1;}return _0x4f8167;}function it(_0x588e49,_0x22a258,_0xe44fc2){const _0xb01878=_0x4e663c;if(!_0xe44fc2)return{'valid':!0x0};if(_0x22a258===_0xe44fc2)return{'valid':!0x1,'reason':_0x5da3fc[_0xb01878(0x237)]};let _0x3f4ad1=_0xe44fc2;for(;_0x3f4ad1;){if(_0x3f4ad1===_0x22a258)return{'valid':!0x1,'reason':_0x5da3fc['Cycle']};_0x3f4ad1=_0x588e49[_0xb01878(0x158)]['get'](_0x3f4ad1)??null;}return(_0x588e49[_0xb01878(0x3ca)][_0xb01878(0x1f4)](_0xe44fc2)??0x0)+0x1+(_0x588e49[_0xb01878(0x3d4)][_0xb01878(0x1f4)](_0x22a258)??0x0)>=0x5?{'valid':!0x1,'reason':_0x5da3fc[_0xb01878(0x41f)]}:{'valid':!0x0};}function at(_0x533d7c,_0x4b3541){const _0x3859f0=_0x4e663c;let _0x55d910=new Set(),_0x2a4c1e=[];for(let _0x390c21 of _0x4b3541)_0x533d7c['records'][_0x390c21]&&!_0x55d910[_0x3859f0(0x19e)](_0x390c21)&&(_0x55d910[_0x3859f0(0x133)](_0x390c21),_0x2a4c1e[_0x3859f0(0x25c)](_0x390c21));return Object[_0x3859f0(0x467)](_0x533d7c[_0x3859f0(0x3f2)])['sort']()[_0x3859f0(0x29f)](_0x157818=>{const _0x1830f0=_0x3859f0;_0x55d910[_0x1830f0(0x19e)](_0x157818)||_0x2a4c1e[_0x1830f0(0x25c)](_0x157818);}),_0x2a4c1e;}function ot(_0x2bc142,_0x1ad62f,_0x4cb3b6){const _0x1248c0=_0x4e663c;let _0x47c62f=new Set();for(let _0x17128c of _0x4cb3b6){if(_0x47c62f['has'](_0x17128c))continue;let _0x35ebd4=[],_0x357456=new Map(),_0x42265e=_0x17128c;for(;_0x42265e&&!_0x47c62f['has'](_0x42265e);){let _0x4bcfbf=_0x357456['get'](_0x42265e);if(_0x4bcfbf!=null){let _0x318d64=[..._0x35ebd4[_0x1248c0(0x183)](_0x4bcfbf)][_0x1248c0(0x3db)]()[_0x1248c0(0x472)]();_0x2bc142['set'](_0x318d64,null),_0x1ad62f[_0x1248c0(0x233)](_0x318d64,_0x5da3fc[_0x1248c0(0x38b)]);break;}_0x357456[_0x1248c0(0x233)](_0x42265e,_0x35ebd4[_0x1248c0(0x255)]),_0x35ebd4['push'](_0x42265e),_0x42265e=_0x2bc142[_0x1248c0(0x1f4)](_0x42265e)??null;}_0x35ebd4[_0x1248c0(0x29f)](_0x42ef01=>_0x47c62f[_0x1248c0(0x133)](_0x42ef01));}}function st(_0x2fdeab,_0x219765,_0x571ef1){const _0xba4b1b=_0x4e663c;let _0x283214=new Map(),_0x35f8d3=_0x161ec6=>{const _0x5cc496=_0x4619;let _0x2d7a25=_0x283214[_0x5cc496(0x1f4)](_0x161ec6);if(_0x2d7a25!=null)return _0x2d7a25;let _0x4c4c9e=_0x2fdeab[_0x5cc496(0x1f4)](_0x161ec6)??null;if(!_0x4c4c9e)return _0x283214[_0x5cc496(0x233)](_0x161ec6,0x0),0x0;let _0x3e7ee0=_0x35f8d3(_0x4c4c9e)+0x1;return _0x3e7ee0>=0x5?(_0x2fdeab['set'](_0x161ec6,null),_0x219765[_0x5cc496(0x233)](_0x161ec6,_0x5da3fc[_0x5cc496(0x41f)]),_0x283214['set'](_0x161ec6,0x0),0x0):(_0x283214['set'](_0x161ec6,_0x3e7ee0),_0x3e7ee0);};_0x571ef1[_0xba4b1b(0x29f)](_0x35f8d3);}let ct=0x0;function lt(){const _0x570c9b=_0x4e663c;if(globalThis[_0x570c9b(0x480)]===!0x0)return!0x0;try{let _0x5b31b6=typeof location>'u'?'':location[_0x570c9b(0x353)],_0x1b51f4=new URLSearchParams(_0x5b31b6);if(_0x1b51f4[_0x570c9b(0x1f4)](_0x570c9b(0x46f))==='1'||_0x1b51f4['get']('basePerf')==='true'||_0x1b51f4[_0x570c9b(0x1f4)]('base-perf')==='1')return!0x0;}catch{}try{let _0x3bcc3c=typeof localStorage>'u'?null:localStorage['getItem'](_0x570c9b(0x2af));return _0x3bcc3c==='1'||_0x3bcc3c==='true';}catch{return!0x1;}}function I(_0x5ead88,_0xb3231f,_0xc3140e){const _0x539d06=_0x4e663c;if(!lt())return _0xb3231f();let _0x2bec3e=dt(),_0x211333=_0x539d06(0x2da)+ct++;ft(_0x211333+':start');try{return _0xb3231f();}finally{let _0x4b3c34=dt()-_0x2bec3e;ft(_0x211333+_0x539d06(0x23d)),pt(_0x5ead88,_0x211333+_0x539d06(0x196),_0x211333+':end'),ut(_0x5ead88,_0x4b3c34,_0xc3140e);}}function ut(_0x56e9f4,_0x3db7eb,_0x190abb){const _0x6d724f=_0x4e663c;if(!lt())return;let _0x7ff5a=Math[_0x6d724f(0x496)](_0x3db7eb*0x64)/0x64,_0x93abe5=_0x190abb&&Object[_0x6d724f(0x467)](_0x190abb)[_0x6d724f(0x255)]?'\x20'+JSON[_0x6d724f(0x1ff)](_0x190abb):'';console[_0x6d724f(0x4cc)]('[BasePerf]\x20'+_0x56e9f4+':\x20'+_0x7ff5a+'ms'+_0x93abe5);}function dt(){const _0x59fcbc=_0x4e663c;return typeof performance<'u'&&typeof performance[_0x59fcbc(0x2cf)]==_0x59fcbc(0x3eb)?performance['now']():Date[_0x59fcbc(0x2cf)]();}function ft(_0x35fd24){const _0x47743b=_0x4e663c;try{if(typeof performance<'u'){var _0x446500,_0x40450d;(_0x446500=(_0x40450d=performance)[_0x47743b(0x1a7)])==null||_0x446500[_0x47743b(0x3bf)](_0x40450d,_0x35fd24);}}catch{}}function pt(_0x2c9428,_0x333a1e,_0x17e83){const _0x4e816d=_0x4e663c;try{if(typeof performance<'u'){var _0x2d19bf,_0x579f75;(_0x2d19bf=(_0x579f75=performance)[_0x4e816d(0x134)])==null||_0x2d19bf[_0x4e816d(0x3bf)](_0x579f75,_0x4e816d(0x3bc)+_0x2c9428,_0x333a1e,_0x17e83);}}catch{}}function L(_0x479c24){const _0x8018c3=_0x4e663c;var _0x2b5a64;return lt()?I(_0x8018c3(0x425),()=>mt(_0x479c24),{'tableId':_0x479c24['id'],'records':Object[_0x8018c3(0x467)](_0x479c24[_0x8018c3(0x3f2)]??{})[_0x8018c3(0x255)],'fields':_0x479c24[_0x8018c3(0x4c0)][_0x8018c3(0x255)],'hasRecordOrder':!!((_0x2b5a64=_0x479c24[_0x8018c3(0x36b)])!=null&&_0x2b5a64['length'])}):mt(_0x479c24);}function mt(_0x52c3e5){const _0x53c200=_0x4e663c;var _0x1ec8be;let _0x437473=_0x52c3e5[_0x53c200(0x3f2)]??{},_0x9c9624=_0x52c3e5[_0x53c200(0x45e)]??{},_0x173bf7=((_0x1ec8be=_0x52c3e5[_0x53c200(0x36b)])==null?void 0x0:_0x1ec8be['filter'](_0x237535=>_0x437473[_0x237535]))??[],_0x4b61da=new Set(_0x173bf7),_0x30f23d=[];for(let _0x4c314b of Object[_0x53c200(0x325)](_0x437473))_0x4b61da[_0x53c200(0x19e)](_0x4c314b['id'])||_0x30f23d[_0x53c200(0x25c)](_0x4c314b);let _0x42c884=_0x30f23d[_0x53c200(0x255)]?[..._0x173bf7,...Rt(_0x30f23d)]:_0x173bf7,_0x863e79=_0x52c3e5['fieldOrder']['filter'](_0x361acb=>_0x9c9624[_0x361acb]),_0x5d23d7={..._0x52c3e5[_0x53c200(0x2e1)]??{}},_0x11706c={..._0x52c3e5['colId']??{}},_0x10e5b0={..._0x52c3e5[_0x53c200(0x171)]??{}};_0x52c3e5[_0x53c200(0x36b)]=_0x42c884,_0x52c3e5['rowIndex']={},_0x52c3e5[_0x53c200(0x2e1)]={},_0x52c3e5[_0x53c200(0x293)]={},_0x52c3e5[_0x53c200(0x48b)]={},_0x52c3e5[_0x53c200(0x171)]={},_0x52c3e5[_0x53c200(0x2e4)]={..._0x52c3e5[_0x53c200(0x2e4)]??{}},_0x52c3e5[_0x53c200(0x2e4)][_0x53c200(0x289)]={..._0x52c3e5['resources'][_0x53c200(0x289)]??{}},_0x52c3e5[_0x53c200(0x2e4)][_0x53c200(0x2ff)]={..._0x52c3e5['resources'][_0x53c200(0x2ff)]??{}};let _0x317622=_0x52c3e5[_0x53c200(0x200)],_0x516dd7=_0x52c3e5[_0x53c200(0x2e1)],_0x35f299=_0x52c3e5['colIndex'],_0x431d41=_0x52c3e5[_0x53c200(0x48b)],_0x586f6f=_0x52c3e5['cellData'];return _0x42c884[_0x53c200(0x29f)]((_0x119ccb,_0x2e8dba)=>{_0x317622[_0x119ccb]=_0x2e8dba,_0x516dd7[_0x2e8dba]=_0x119ccb;}),_0x863e79[_0x53c200(0x29f)]((_0x1505b0,_0x53b3cc)=>{_0x35f299[_0x1505b0]=_0x53b3cc,_0x431d41[_0x53b3cc]=_0x1505b0;}),Object[_0x53c200(0x3ee)](_0x10e5b0)[_0x53c200(0x29f)](([_0x2370c3,_0x125b62])=>{const _0x19b168=_0x53c200;let _0x5e7a29=Number(_0x2370c3),_0x16d07a=_0x5d23d7[_0x5e7a29]??_0x42c884[_0x5e7a29],_0x511593=_0x16d07a?_0x317622[_0x16d07a]:void 0x0;_0x511593!=null&&(_0x586f6f[_0x511593]={..._0x586f6f[_0x511593]??{}},Object[_0x19b168(0x3ee)](_0x125b62??{})['forEach'](([_0x5eec66,_0x43bd84])=>{let _0x3387b8=Number(_0x5eec66),_0x3b80b4=_0x11706c[_0x3387b8]??_0x863e79[_0x3387b8],_0x576f79=_0x3b80b4?_0x35f299[_0x3b80b4]:void 0x0;_0x576f79!=null&&(_0x586f6f[_0x511593][_0x576f79]=St(_0x43bd84));}));}),Object[_0x53c200(0x325)](_0x437473)[_0x53c200(0x29f)](_0x29b386=>{const _0x2ca238=_0x53c200;let _0x4a681f=_0x317622[_0x29b386['id']];_0x4a681f!=null&&(_0x29b386[_0x2ca238(0x325)]={..._0x29b386[_0x2ca238(0x325)]??{},[_0x251017]:_0x29b386['id']},_0x586f6f[_0x4a681f]={..._0x586f6f[_0x4a681f]??{},0x0:{'v':_0x29b386['id'],'t':_0x1f224e[_0x2ca238(0x120)]}},Object[_0x2ca238(0x3ee)](_0x29b386[_0x2ca238(0x325)]??{})[_0x2ca238(0x29f)](([_0x186ccb,_0x82a7b5])=>{const _0x4bc531=_0x2ca238;let _0x2e9965=_0x9c9624[_0x186ccb];(_0x2e9965==null?void 0x0:_0x2e9965[_0x4bc531(0x111)])===_0x5f310d['Attachment']&&Dt(_0x52c3e5,_0x29b386['id'],_0x186ccb,_0x82a7b5);let _0x40075a=_0x35f299[_0x186ccb];if(_0x40075a==null)return;let _0x140b1e=_0x586f6f[_0x4a681f][_0x40075a];(_0x140b1e==null||jt(_0x140b1e,_0x2e9965,_0x82a7b5))&&(_0x586f6f[_0x4a681f][_0x40075a]=xt(_0x82a7b5,_0x2e9965));}));}),_0x52c3e5;}function ht(_0x36f1bb,_0x608330){const _0x520f7f=_0x4e663c;return _0x36f1bb[_0x520f7f(0x3f2)]=Object[_0x520f7f(0x147)](Object['entries'](_0x36f1bb['records'])[_0x520f7f(0x19c)](([_0x26e1b3,_0x5b7f2e])=>[_0x26e1b3,{..._0x5b7f2e}])),L(_0x36f1bb),Object['entries'](_0x36f1bb[_0x520f7f(0x2e1)]??{})['forEach'](([_0x1417f1,_0x326eb6])=>{const _0x1badfc=_0x520f7f;var _0x556e4a;let _0x478993=Number(_0x1417f1),_0x39ef7e=_0x36f1bb[_0x1badfc(0x3f2)][_0x326eb6];_0x39ef7e&&(_0x39ef7e[_0x1badfc(0x325)]={..._0x39ef7e[_0x1badfc(0x325)]??{}},Object[_0x1badfc(0x3ee)](((_0x556e4a=_0x36f1bb[_0x1badfc(0x171)])==null?void 0x0:_0x556e4a[_0x478993])??{})[_0x1badfc(0x29f)](([_0x65e267,_0x4b46fa])=>{const _0x34dbd2=_0x1badfc;var _0x2aa21c;let _0x474c01=(_0x2aa21c=_0x36f1bb[_0x34dbd2(0x48b)])==null?void 0x0:_0x2aa21c[Number(_0x65e267)];_0x474c01&&_0x608330&&!_0x608330(_0x326eb6,_0x474c01)||(_0x474c01===_0x251017?_0x39ef7e[_0x34dbd2(0x325)][_0x251017]=_0x39ef7e['id']:_0x474c01&&(_0x39ef7e[_0x34dbd2(0x325)][_0x474c01]=Ct(_0x4b46fa,_0x36f1bb[_0x34dbd2(0x45e)][_0x474c01],_0x36f1bb,_0x326eb6)));}));}),_0x36f1bb;}function gt(_0x1b37b9,_0x2314de){const _0x48de7a=_0x4e663c;for(let {row:_0x39389e,col:_0x40d4ce}of _0x2314de){var _0x17b421,_0x2dcaf1,_0x518401;let _0x2906e5=(_0x17b421=_0x1b37b9[_0x48de7a(0x2e1)])==null?void 0x0:_0x17b421[_0x39389e],_0x223ca2=(_0x2dcaf1=_0x1b37b9['colId'])==null?void 0x0:_0x2dcaf1[_0x40d4ce],_0x6f0359=_0x2906e5?_0x1b37b9['records'][_0x2906e5]:void 0x0;if(!_0x6f0359||!_0x223ca2)continue;if(_0x223ca2===_0x251017){_0x6f0359['values'][_0x251017]=_0x6f0359['id'];continue;}let _0x30d27a=(_0x518401=_0x1b37b9[_0x48de7a(0x171)])==null||(_0x518401=_0x518401[_0x39389e])==null?void 0x0:_0x518401[_0x40d4ce];(_0x30d27a!=null||Object[_0x48de7a(0x4a2)][_0x48de7a(0x236)]['call'](_0x6f0359['values']??{},_0x223ca2))&&(_0x6f0359['values']={..._0x6f0359[_0x48de7a(0x325)]??{}},_0x6f0359[_0x48de7a(0x325)][_0x223ca2]=Ct(_0x30d27a,_0x1b37b9[_0x48de7a(0x45e)][_0x223ca2],_0x1b37b9,_0x2906e5));}return _0x1b37b9;}function _t(_0x241aef,_0x162c60,_0x44abd5){const _0x1b8742=_0x4e663c;var _0x1fd81c,_0x3a4c71,_0x124a8d,_0x3448df,_0x443ff7,_0x14f0e3;let _0x5f1af0=(_0x1fd81c=_0x241aef['rowIndex'])==null?void 0x0:_0x1fd81c[_0x162c60],_0x20e55b=(_0x3a4c71=_0x241aef[_0x1b8742(0x293)])==null?void 0x0:_0x3a4c71[_0x44abd5];if(_0x5f1af0!=null&&_0x20e55b!=null&&((_0x124a8d=_0x241aef[_0x1b8742(0x2e1)])==null?void 0x0:_0x124a8d[_0x5f1af0])===_0x162c60&&((_0x3448df=_0x241aef[_0x1b8742(0x48b)])==null?void 0x0:_0x3448df[_0x20e55b])===_0x44abd5)return{'row':_0x5f1af0,'col':_0x20e55b};let _0x4046fb=L(_0x241aef),_0x1229a7=(_0x443ff7=_0x4046fb[_0x1b8742(0x200)])==null?void 0x0:_0x443ff7[_0x162c60],_0x361b77=(_0x14f0e3=_0x4046fb[_0x1b8742(0x293)])==null?void 0x0:_0x14f0e3[_0x44abd5];return _0x1229a7==null||_0x361b77==null?null:{'row':_0x1229a7,'col':_0x361b77};}function vt(_0x7c800e,_0x268640,_0x3cc56b){const _0x811a77=_0x4e663c;var _0xa2e158;let _0x403546=_t(_0x7c800e,_0x268640,_0x3cc56b);if(_0x403546)return(_0xa2e158=_0x7c800e['cellData'])==null||(_0xa2e158=_0xa2e158[_0x403546[_0x811a77(0x302)]])==null?void 0x0:_0xa2e158[_0x403546[_0x811a77(0x26f)]];}function yt(_0x23d053,_0x1f7d2e,_0x4d5112){const _0x487fa2=_0x4e663c;var _0x1bc0e0;let _0x331071=vt(_0x23d053,_0x1f7d2e,_0x4d5112),_0x38002=_0x23d053['fields'][_0x4d5112];if((_0x38002==null?void 0x0:_0x38002[_0x487fa2(0x111)])===_0x5f310d[_0x487fa2(0x151)]){var _0xc79303;return Ot(_0x23d053,_0x1f7d2e,_0x4d5112)??kt((_0xc79303=_0x23d053['records'][_0x1f7d2e])==null||(_0xc79303=_0xc79303[_0x487fa2(0x325)])==null?void 0x0:_0xc79303[_0x4d5112]);}if(Mt(_0x38002)||Nt(_0x38002)||(_0x38002==null?void 0x0:_0x38002[_0x487fa2(0x111)])===_0x5f310d[_0x487fa2(0x3a7)]){var _0x4fafd5;let _0x3e91b6=(_0x4fafd5=_0x23d053[_0x487fa2(0x3f2)][_0x1f7d2e])==null||(_0x4fafd5=_0x4fafd5[_0x487fa2(0x325)])==null?void 0x0:_0x4fafd5[_0x4d5112];return _0x3e91b6!=null&&_0x3e91b6!==''?At(_0x3e91b6,_0x38002):Ct(_0x331071,_0x38002,_0x23d053,_0x1f7d2e);}return _0x331071&&Object['prototype'][_0x487fa2(0x236)]['call'](_0x331071,'v')?_0x331071['v']??null:((_0x1bc0e0=_0x23d053[_0x487fa2(0x3f2)][_0x1f7d2e])==null||(_0x1bc0e0=_0x1bc0e0[_0x487fa2(0x325)])==null?void 0x0:_0x1bc0e0[_0x4d5112])??null;}function bt(_0x3015ad,_0x380ef2,_0x26f1bf){const _0xc45bfe=_0x4e663c;var _0x19d008;let _0xb549bb=vt(_0x3015ad,_0x380ef2,_0x26f1bf);if(_0xb549bb&&Object['prototype']['hasOwnProperty'][_0xc45bfe(0x3bf)](_0xb549bb,'v'))return _0xb549bb['v']??null;let _0x3f5fba=_0x3015ad['fields'][_0x26f1bf];return xt(((_0x19d008=_0x3015ad[_0xc45bfe(0x3f2)][_0x380ef2])==null||(_0x19d008=_0x19d008[_0xc45bfe(0x325)])==null?void 0x0:_0x19d008[_0x26f1bf])??null,_0x3f5fba)['v']??null;}function xt(_0x4f5397,_0x1e0d0c){const _0x8724b8=_0x4e663c;if(Tt(_0x4f5397))return(_0x1e0d0c==null?void 0x0:_0x1e0d0c['type'])===_0x5f310d[_0x8724b8(0x151)]?{..._0x4f5397,'v':'','t':_0x1f224e[_0x8724b8(0x120)]}:St(_0x4f5397);if((_0x1e0d0c==null?void 0x0:_0x1e0d0c[_0x8724b8(0x111)])===_0x5f310d['Attachment'])return{'v':'','t':_0x1f224e[_0x8724b8(0x120)]};if(Nt(_0x1e0d0c)){let _0x336538=Pt(_0x4f5397);return{'v':_0x336538,'t':Lt(_0x336538)};}if(Mt(_0x1e0d0c))return{'v':Ft(_0x4f5397)[_0x8724b8(0x2e9)](',\x20'),'t':_0x1f224e[_0x8724b8(0x120)]};if((_0x1e0d0c==null?void 0x0:_0x1e0d0c[_0x8724b8(0x111)])===_0x5f310d['Link']&&_0x4f5397&&typeof _0x4f5397==_0x8724b8(0x37c)&&!Array[_0x8724b8(0x454)](_0x4f5397)){let _0x180abb=_0x4f5397;return{'v':String(_0x180abb['text']??_0x180abb[_0x8724b8(0x282)]??''),'t':_0x1f224e[_0x8724b8(0x120)]};}return _0x4f5397===null||typeof _0x4f5397==_0x8724b8(0x432)||typeof _0x4f5397=='number'||typeof _0x4f5397==_0x8724b8(0x2dc)?{'v':_0x4f5397,'t':Lt(_0x4f5397)}:{'v':null,'t':null};}function St(_0x4728e2){let _0x4cfefe=zt(_0x4728e2['t'],_0x4728e2['v']);if(_0x4cfefe===void 0x0){let {t:_0x406f9c,..._0x3eb03d}=_0x4728e2;return _0x3eb03d;}return{..._0x4728e2,'t':_0x4cfefe};}function Ct(_0x42263f,_0x551625,_0x100d4c,_0x2df390){const _0x1c1499=_0x4e663c;if(!_0x42263f)return null;if((_0x551625==null?void 0x0:_0x551625[_0x1c1499(0x111)])===_0x5f310d[_0x1c1499(0x151)])return _0x100d4c&&_0x2df390?Ot(_0x100d4c,_0x2df390,_0x551625['id'])??[]:[];if(Mt(_0x551625))return Ft(_0x42263f['v']);if((_0x551625==null?void 0x0:_0x551625[_0x1c1499(0x111)])===_0x5f310d[_0x1c1499(0x3a7)]&&_0x100d4c&&_0x2df390){var _0x41aed3;let _0x14ff2d=(_0x41aed3=_0x100d4c[_0x1c1499(0x3f2)][_0x2df390])==null||(_0x41aed3=_0x41aed3[_0x1c1499(0x325)])==null?void 0x0:_0x41aed3[_0x551625['id']];if(_0x14ff2d&&typeof _0x14ff2d=='object'&&!Array['isArray'](_0x14ff2d))return _0x14ff2d;}return Object[_0x1c1499(0x4a2)]['hasOwnProperty'][_0x1c1499(0x3bf)](_0x42263f,'v')?_0x42263f['v']??null:null;}function wt(_0x17a4e4,_0x9a460e,_0x29f1cc,_0x144fea,_0x2a29a0){const _0x561a9d=_0x4e663c;return(_0x29f1cc==null?void 0x0:_0x29f1cc[_0x561a9d(0x111)])===_0x5f310d[_0x561a9d(0x151)]?kt(_0x17a4e4):Nt(_0x29f1cc)?Pt(_0x17a4e4):Mt(_0x29f1cc)?Ft(_0x17a4e4):(_0x29f1cc==null?void 0x0:_0x29f1cc[_0x561a9d(0x111)])===_0x5f310d['Link']&&(_0x17a4e4==null||_0x17a4e4==='')?null:(_0x29f1cc==null?void 0x0:_0x29f1cc[_0x561a9d(0x111)])===_0x5f310d['Link']&&_0x17a4e4&&typeof _0x17a4e4==_0x561a9d(0x37c)&&!Array[_0x561a9d(0x454)](_0x17a4e4)&&!Tt(_0x17a4e4)?_0x17a4e4:Ct(_0x9a460e,_0x29f1cc,_0x144fea,_0x2a29a0);}function Tt(_0x3ae7ed){const _0x5ca025=_0x4e663c;return!!_0x3ae7ed&&typeof _0x3ae7ed==_0x5ca025(0x37c)&&(Object[_0x5ca025(0x4a2)][_0x5ca025(0x236)][_0x5ca025(0x3bf)](_0x3ae7ed,'v')||Object[_0x5ca025(0x4a2)][_0x5ca025(0x236)]['call'](_0x3ae7ed,'t')||Object[_0x5ca025(0x4a2)][_0x5ca025(0x236)][_0x5ca025(0x3bf)](_0x3ae7ed,'p')||Object[_0x5ca025(0x4a2)][_0x5ca025(0x236)][_0x5ca025(0x3bf)](_0x3ae7ed,'f')||Object[_0x5ca025(0x4a2)][_0x5ca025(0x236)]['call'](_0x3ae7ed,'si'));}function Et(_0x37a750,_0x11f827){return _0x37a750+'\x1f'+_0x11f827;}function Dt(_0x52efe2,_0xc12300,_0x5ea39b,_0x59ed21){const _0x445075=_0x4e663c;let _0x725f6b=kt(_0x59ed21);_0x52efe2[_0x445075(0x2e4)]={..._0x52efe2[_0x445075(0x2e4)]??{}},_0x52efe2[_0x445075(0x2e4)]['attachmentSets']={..._0x52efe2[_0x445075(0x2e4)][_0x445075(0x289)]??{}},_0x52efe2['resources'][_0x445075(0x2ff)]={..._0x52efe2['resources']['attachments']??{}};let _0x49c2cd=Et(_0x5ea39b,_0xc12300),_0x408bc6=[];for(let _0x13e6d3=0x0;_0x13e6d3<_0x725f6b[_0x445075(0x255)];_0x13e6d3++){if(!(_0x13e6d3 in _0x725f6b))continue;let _0xfcf365=_0x725f6b[_0x13e6d3],_0x36cd2a=String(_0xfcf365['id']??_0x49c2cd+'\x1f'+_0x13e6d3),_0x3235ae={..._0xfcf365,'id':_0x36cd2a};_0x52efe2[_0x445075(0x2e4)][_0x445075(0x2ff)][_0x36cd2a]=_0x3235ae,_0x408bc6[_0x445075(0x25c)](_0x36cd2a);}_0x52efe2[_0x445075(0x2e4)]['attachmentSets'][_0x49c2cd]=_0x408bc6;}function Ot(_0xbbe10b,_0x4d85ad,_0xecf347){const _0x56761b=_0x4e663c;var _0x1a96e3;let _0x1bd2ba=Et(_0xecf347,_0x4d85ad),_0x23d6e1=(_0x1a96e3=_0xbbe10b[_0x56761b(0x2e4)])==null||(_0x1a96e3=_0x1a96e3['attachmentSets'])==null?void 0x0:_0x1a96e3[_0x1bd2ba];if(!_0x23d6e1)return null;let _0x5e5794=[];for(let _0x2e9863=0x0;_0x2e9863<_0x23d6e1['length'];_0x2e9863++){var _0x4d6226;if(!(_0x2e9863 in _0x23d6e1))continue;let _0x3253f0=(_0x4d6226=_0xbbe10b['resources'])==null||(_0x4d6226=_0x4d6226['attachments'])==null?void 0x0:_0x4d6226[_0x23d6e1[_0x2e9863]];_0x3253f0&&_0x5e5794[_0x56761b(0x25c)]({..._0x3253f0});}return _0x5e5794;}function kt(_0x3fc914){const _0x12647e=_0x4e663c;if(_0x3fc914==null||_0x3fc914===''||Tt(_0x3fc914)&&!('id'in _0x3fc914)&&!(_0x12647e(0x269)in _0x3fc914))return[];let _0x451d32=Array[_0x12647e(0x454)](_0x3fc914)?_0x3fc914:[_0x3fc914],_0x437f3f=[];for(let _0x19192c=0x0;_0x19192c<_0x451d32[_0x12647e(0x255)];_0x19192c++){if(!(_0x19192c in _0x451d32))continue;let _0x511875=_0x451d32[_0x19192c],_0x52e28d=_0x511875&&typeof _0x511875==_0x12647e(0x37c)?{..._0x511875}:{'id':_0x12647e(0x202)+_0x19192c,'name':String(_0x511875)};Object['keys'](_0x52e28d)['length']>0x0&&_0x437f3f[_0x12647e(0x25c)](_0x52e28d);}return _0x437f3f;}function At(_0x326351,_0xd39173){const _0x3b553f=_0x4e663c;return(_0xd39173==null?void 0x0:_0xd39173[_0x3b553f(0x111)])===_0x5f310d['Attachment']?kt(_0x326351):Nt(_0xd39173)?Pt(_0x326351):Mt(_0xd39173)?Ft(_0x326351):_0x326351;}function jt(_0x13c9de,_0x4efa9c,_0xa5a2dd){const _0x49a3ed=_0x4e663c;return(_0x4efa9c==null?void 0x0:_0x4efa9c['type'])===_0x5f310d[_0x49a3ed(0x151)]?_0x13c9de['v']!=='':Nt(_0x4efa9c)?_0x13c9de['v']!==Pt(_0xa5a2dd):Mt(_0x4efa9c)?Array['isArray'](_0xa5a2dd)&&(_0x13c9de['v']==null||_0x13c9de['v']===''):!0x1;}function Mt(_0x288e91){const _0x4566fa=_0x4e663c;return(_0x288e91==null?void 0x0:_0x288e91['type'])===_0x5f310d['MultiSelect']||(_0x288e91==null?void 0x0:_0x288e91[_0x4566fa(0x111)])===_0x5f310d[_0x4566fa(0x19d)]||(_0x288e91==null?void 0x0:_0x288e91[_0x4566fa(0x111)])===_0x5f310d['Person']&&_0x288e91[_0x4566fa(0x2c4)]['allowMultiple']===!0x0;}function Nt(_0x1469cc){const _0x2b264e=_0x4e663c;return(_0x1469cc==null?void 0x0:_0x1469cc[_0x2b264e(0x111)])===_0x5f310d['Person']&&_0x1469cc[_0x2b264e(0x2c4)][_0x2b264e(0x297)]!==!0x0;}function Pt(_0x5ef7bf){let _0x1c1773=Tt(_0x5ef7bf)?_0x5ef7bf['v']:_0x5ef7bf,_0x12a9fc=Array['isArray'](_0x1c1773)?_0x1c1773[0x0]:_0x1c1773;return _0x12a9fc==null||_0x12a9fc===''?null:String(_0x12a9fc);}function Ft(_0x522a34){const _0x511729=_0x4e663c;if(_0x522a34==null||_0x522a34==='')return[];let _0x400aff=[];if(Array[_0x511729(0x454)](_0x522a34)){for(let _0x5b6427=0x0;_0x5b6427<_0x522a34[_0x511729(0x255)];_0x5b6427++){if(!(_0x5b6427 in _0x522a34))continue;let _0x3485e2=It(_0x522a34[_0x5b6427]);_0x3485e2&&_0x400aff[_0x511729(0x25c)](_0x3485e2);}return _0x400aff;}for(let _0x5d4ff5 of String(_0x522a34)[_0x511729(0x161)](',')){let _0x4d174a=_0x5d4ff5['trim']();_0x4d174a&&_0x400aff[_0x511729(0x25c)](_0x4d174a);}return _0x400aff;}function It(_0x3b0621){const _0x22dbed=_0x4e663c;if(_0x3b0621==null)return'';if(typeof _0x3b0621==_0x22dbed(0x432)||typeof _0x3b0621=='number'||typeof _0x3b0621==_0x22dbed(0x2dc))return String(_0x3b0621);if(typeof _0x3b0621==_0x22dbed(0x37c)){let _0x4277fc=_0x3b0621;return String(_0x4277fc['id']??_0x4277fc[_0x22dbed(0x269)]??_0x4277fc['text']??'');}return String(_0x3b0621);}function Lt(_0x504972){const _0x2580a1=_0x4e663c;return _0x504972==null?null:typeof _0x504972=='number'?_0x1f224e[_0x2580a1(0x4b3)]:typeof _0x504972==_0x2580a1(0x2dc)?_0x1f224e['BOOLEAN']:_0x1f224e[_0x2580a1(0x120)];}function Rt(_0x818d0b){const _0x3a6526=_0x4e663c;_0x818d0b[_0x3a6526(0x3db)]((_0x571778,_0x5326e9)=>_0x571778[_0x3a6526(0x1b7)][_0x3a6526(0x3f7)](_0x5326e9[_0x3a6526(0x1b7)]));let _0x5925ad=[];for(let _0x275dac of _0x818d0b)_0x5925ad[_0x3a6526(0x25c)](_0x275dac['id']);return _0x5925ad;}function zt(_0x42abfa,_0x34ae57){const _0x3a48cf=_0x4e663c;return _0x42abfa===_0x1f224e[_0x3a48cf(0x120)]||_0x42abfa===_0x1f224e[_0x3a48cf(0x4b3)]||_0x42abfa===_0x1f224e[_0x3a48cf(0x369)]||_0x42abfa===_0x1f224e[_0x3a48cf(0x412)]||_0x42abfa==null?_0x42abfa:Lt(_0x34ae57??null);}function R(_0x528eba){const _0x290d6e=_0x4e663c;let _0x46c18c=null;for(let _0x295054 of _0x528eba)_0x46c18c=_0x46c18c===null?_0x295054:_0x1ba09c[_0x290d6e(0x111)][_0x290d6e(0x1fa)](_0x46c18c,_0x295054);return _0x46c18c;}var z=class e{static[_0x4e663c(0x258)](_0x5e1581,_0x587391){const _0x5597d8=_0x4e663c;let _0x5c2eb4=[];for(let _0x18c7c7 of _0x587391){let _0x5ed490=Bt(_0x18c7c7);if(!_0x5ed490||_0x5ed490[_0x5597d8(0x2a9)]!==_0x5e1581['id'])return null;_0x5c2eb4[_0x5597d8(0x25c)](_0x5ed490['op']);}try{let _0x2ee4db=R(_0x5c2eb4);return _0x2ee4db===null?_0x5e1581:new e()['applyOp'](_0x5e1581,_0x2ee4db);}catch{return null;}}[_0x4e663c(0x3f0)](_0x5316c0,_0x5b24b5){const _0x222f4b=_0x4e663c;let _0x542b10=this[_0x222f4b(0x1d0)](_0x5b24b5),_0x5ac68c=I('BaseJson1.cloneForOp',()=>Xt(_0x5316c0,_0x5b24b5),{'invalidations':_0x542b10['length']}),_0x3abc69=I('BaseJson1.json1Apply',()=>_0x1ba09c[_0x222f4b(0x111)][_0x222f4b(0x2d6)](_0x5ac68c,_0x5b24b5),{'invalidations':_0x542b10[_0x222f4b(0x255)]}),_0x417107=Ht(_0x3abc69,_0x542b10);return I(_0x222f4b(0x1f8),()=>Vt(_0x3abc69,_0x542b10),{'invalidations':_0x542b10[_0x222f4b(0x255)]})?(Ut(_0x3abc69,_0x417107),_0x3abc69):(I('BaseJson1.normalizeTables',()=>{const _0x45600c=_0x222f4b;this[_0x45600c(0x209)](_0x3abc69,_0x542b10)[_0x45600c(0x29f)](_0x245018=>{const _0xb5198a=_0x45600c;let _0x284cf5=_0x542b10['filter'](_0x127cb7=>_0x127cb7['tableId']===_0x245018['id']),_0x11f005=_0x284cf5[_0xb5198a(0x255)]>0x0&&_0x284cf5[_0xb5198a(0x361)](_0x5a82c1=>_0x5a82c1[_0xb5198a(0x41c)]===_0xb5198a(0x163)||_0x5a82c1[_0xb5198a(0x41c)]===_0xb5198a(0x155)||_0x5a82c1[_0xb5198a(0x41c)]===_0xb5198a(0x1a2)||_0x5a82c1['reason']===_0xb5198a(0x2e0))?new Set(_0x284cf5[_0xb5198a(0x1fb)](_0x2c920d=>{const _0x548a05=_0xb5198a;var _0x30c5c1;if(_0x2c920d[_0x548a05(0x41c)]!==_0x548a05(0x163)||!_0x2c920d[_0x548a05(0x2be)])return[];let _0xc4dc35=(_0x30c5c1=_0x5316c0[_0x548a05(0x13e)][_0x245018['id']])==null?void 0x0:_0x30c5c1['fields'][_0x2c920d[_0x548a05(0x2be)]],_0x3fd08e=_0x245018[_0x548a05(0x45e)][_0x2c920d[_0x548a05(0x2be)]];return(_0xc4dc35==null?void 0x0:_0xc4dc35[_0x548a05(0x111)])!==(_0x3fd08e==null?void 0x0:_0x3fd08e[_0x548a05(0x111)])||(_0xc4dc35==null?void 0x0:_0xc4dc35[_0x548a05(0x2c4)][_0x548a05(0x297)])!==(_0x3fd08e==null?void 0x0:_0x3fd08e[_0x548a05(0x2c4)][_0x548a05(0x297)])?[_0x2c920d['fieldId']]:[];})):void 0x0,_0x9b981e=new Set(_0x284cf5[_0xb5198a(0x1fb)](_0x39f34c=>{const _0x79cc7b=_0xb5198a;var _0x38686c,_0x4ed87e;return _0x39f34c[_0x79cc7b(0x41c)]!==_0x79cc7b(0x1a2)||_0x39f34c[_0x79cc7b(0x302)]==null||_0x39f34c[_0x79cc7b(0x1cd)]==null?[]:[JSON[_0x79cc7b(0x1ff)]([(_0x38686c=_0x245018[_0x79cc7b(0x2e1)])==null?void 0x0:_0x38686c[_0x39f34c[_0x79cc7b(0x302)]],(_0x4ed87e=_0x245018[_0x79cc7b(0x48b)])==null?void 0x0:_0x4ed87e[_0x39f34c[_0x79cc7b(0x1cd)]]])];}));ht(_0x245018,_0x11f005?(_0x472321,_0x4a673a)=>_0x11f005[_0xb5198a(0x19e)](_0x4a673a)||_0x9b981e[_0xb5198a(0x19e)](JSON[_0xb5198a(0x1ff)]([_0x472321,_0x4a673a])):void 0x0);});},{'invalidations':_0x542b10['length']}),Ut(_0x3abc69,_0x417107),_0x3abc69);}[_0x4e663c(0x44c)](_0x4ee7ab,_0x447cf2){const _0x1f0c5c=_0x4e663c;return _0x1ba09c[_0x1f0c5c(0x111)][_0x1f0c5c(0x283)](_0x447cf2,_0x4ee7ab);}[_0x4e663c(0x1d0)](_0x1c8943){const _0x149793=_0x4e663c;let _0x4e197c=qt(_0x1c8943);return _0x4e197c[_0x149793(0x255)]?Jt(_0x4e197c[_0x149793(0x1fb)](_0xad9e85=>this['getAffectedRanges'](_0xad9e85))):Wt(_0x1c8943);}[_0x4e663c(0x209)](_0x1c6510,_0x59d723){const _0x42c5fd=_0x4e663c;let _0x1da6a8=_0x59d723['filter'](_0x59714b=>_0x59714b[_0x42c5fd(0x41c)]!=='view');return _0x1da6a8[_0x42c5fd(0x255)]?_0x1da6a8[_0x42c5fd(0x48c)](_0x271983=>!_0x271983['tableId'])?Object[_0x42c5fd(0x325)](_0x1c6510['tables']??{}):Array[_0x42c5fd(0x40e)](new Set(_0x1da6a8[_0x42c5fd(0x19c)](_0x248205=>_0x248205[_0x42c5fd(0x3a6)])))[_0x42c5fd(0x1fb)](_0x1c770e=>{const _0x58a89d=_0x42c5fd;var _0x1edb30;let _0x1b44d6=(_0x1edb30=_0x1c6510[_0x58a89d(0x13e)])==null?void 0x0:_0x1edb30[_0x1c770e];return _0x1b44d6?[_0x1b44d6]:[];}):[];}};function Bt(_0x4c65fb){const _0x29213b=_0x4e663c;let _0x2908eb=_0x4c65fb['params'];return _0x4c65fb['id']!=='base.mutation.apply-base-json1'||typeof _0x2908eb!=_0x29213b(0x37c)||!_0x2908eb||!(_0x29213b(0x2a9)in _0x2908eb)||typeof _0x2908eb['unitId']!='string'||!('op'in _0x2908eb)||!Array['isArray'](_0x2908eb['op'])?null:{'unitId':_0x2908eb['unitId'],'op':_0x2908eb['op']};}function Vt(_0x1d3814,_0x3aea81){const _0x1e3979=_0x4e663c;if(!_0x3aea81[_0x1e3979(0x255)]||_0x3aea81[_0x1e3979(0x48c)](_0x5d0c1f=>_0x5d0c1f[_0x1e3979(0x41c)]!==_0x1e3979(0x1a2)))return!0x1;let _0x381453=new Map();for(let _0x880f48 of _0x3aea81){if(!_0x880f48['tableId']||_0x880f48[_0x1e3979(0x302)]==null||_0x880f48['column']==null)continue;let _0x31605c=_0x381453['get'](_0x880f48[_0x1e3979(0x3a6)])??[];_0x31605c[_0x1e3979(0x25c)]({'row':_0x880f48[_0x1e3979(0x302)],'col':_0x880f48[_0x1e3979(0x1cd)]}),_0x381453[_0x1e3979(0x233)](_0x880f48[_0x1e3979(0x3a6)],_0x31605c);}return _0x381453[_0x1e3979(0x29f)]((_0x1fe9cd,_0x11f850)=>{const _0x4244c9=_0x1e3979;var _0x165941;let _0x49853d=(_0x165941=_0x1d3814[_0x4244c9(0x13e)])==null?void 0x0:_0x165941[_0x11f850];_0x49853d&>(_0x49853d,_0x1fe9cd);}),!0x0;}function Ht(_0x4673bf,_0x33194c){const _0x3cf8ea=_0x4e663c;let _0x27bb44=new Set();return _0x33194c[_0x3cf8ea(0x1fb)](_0x5f15b7=>{const _0x1dbe93=_0x3cf8ea;var _0x190b28;if(!_0x5f15b7[_0x1dbe93(0x3a6)]||!_0x5f15b7[_0x1dbe93(0x1ef)]||!_0x5f15b7[_0x1dbe93(0x2be)])return[];let _0x5884d9=_0x5f15b7[_0x1dbe93(0x3a6)]+'\x1f'+_0x5f15b7[_0x1dbe93(0x1ef)]+'\x1f'+_0x5f15b7[_0x1dbe93(0x2be)];if(_0x27bb44[_0x1dbe93(0x19e)](_0x5884d9))return[];_0x27bb44['add'](_0x5884d9);let _0x44944b=(_0x190b28=_0x4673bf['tables'][_0x5f15b7[_0x1dbe93(0x3a6)]])==null||(_0x190b28=_0x190b28[_0x1dbe93(0x3f2)][_0x5f15b7['recordId']])==null?void 0x0:_0x190b28['values'];return _0x44944b?[{'tableId':_0x5f15b7['tableId'],'recordId':_0x5f15b7[_0x1dbe93(0x1ef)],'fieldId':_0x5f15b7['fieldId'],'exists':Object[_0x1dbe93(0x4a2)][_0x1dbe93(0x236)][_0x1dbe93(0x3bf)](_0x44944b,_0x5f15b7['fieldId']),'value':_0x44944b[_0x5f15b7['fieldId']]}]:[];});}function Ut(_0x4267d5,_0x4cc8d6){const _0x2dfbe1=_0x4e663c;_0x4cc8d6[_0x2dfbe1(0x29f)](_0x51d642=>{const _0x28a970=_0x2dfbe1;var _0x2d4e46;let _0x351394=(_0x2d4e46=_0x4267d5[_0x28a970(0x13e)][_0x51d642['tableId']])==null||(_0x2d4e46=_0x2d4e46[_0x28a970(0x3f2)][_0x51d642[_0x28a970(0x1ef)]])==null?void 0x0:_0x2d4e46[_0x28a970(0x325)];_0x351394&&(_0x51d642[_0x28a970(0x3de)]?_0x351394[_0x51d642[_0x28a970(0x2be)]]=_0x51d642[_0x28a970(0x401)]:delete _0x351394[_0x51d642[_0x28a970(0x2be)]]);});}function Wt(_0x3ff00a){const _0x352740=_0x4e663c;if(!Array[_0x352740(0x454)](_0x3ff00a)||_0x3ff00a[_0x352740(0x255)]<0x2)return[{'tableId':'','reason':_0x352740(0x182)}];let _0x575bc0=_0x3ff00a,_0x14ddbc=_0x575bc0[_0x352740(0x137)](_0x352740(0x13e));return _0x14ddbc===-0x1||typeof _0x575bc0[_0x14ddbc+0x1]!=_0x352740(0x432)?_0x575bc0[0x0]===_0x352740(0x33c)?[]:[{'tableId':'','reason':_0x352740(0x182)}]:Gt(_0x575bc0,_0x14ddbc,String(_0x575bc0[_0x14ddbc+0x1]));}function Gt(_0x2fc478,_0x3dd691,_0x1391b4){const _0x4f0ddc=_0x4e663c;let _0x5d434c=_0x2fc478[_0x3dd691+0x2];return _0x5d434c===_0x4f0ddc(0x3f2)&&typeof _0x2fc478[_0x3dd691+0x3]==_0x4f0ddc(0x432)?Kt(_0x2fc478,_0x3dd691,_0x1391b4,String(_0x2fc478[_0x3dd691+0x3])):_0x5d434c===_0x4f0ddc(0x171)&&_0x2fc478[_0x3dd691+0x3]!=null&&_0x2fc478[_0x3dd691+0x4]!=null?[{'tableId':_0x1391b4,'reason':_0x4f0ddc(0x1a2),'row':Number(_0x2fc478[_0x3dd691+0x3]),'column':Number(_0x2fc478[_0x3dd691+0x4])}]:_0x5d434c===_0x4f0ddc(0x45e)&&typeof _0x2fc478[_0x3dd691+0x3]==_0x4f0ddc(0x432)?[{'tableId':_0x1391b4,'reason':_0x4f0ddc(0x163),'fieldId':String(_0x2fc478[_0x3dd691+0x3])}]:_0x5d434c==='fieldOrder'?[{'tableId':_0x1391b4,'reason':'field'}]:_0x5d434c===_0x4f0ddc(0x36b)?[{'tableId':_0x1391b4,'reason':_0x4f0ddc(0x2e0)}]:_0x5d434c===_0x4f0ddc(0x2ac)&&typeof _0x2fc478[_0x3dd691+0x3]==_0x4f0ddc(0x432)?[{'tableId':_0x1391b4,'reason':'view','viewId':String(_0x2fc478[_0x3dd691+0x3])}]:_0x5d434c===_0x4f0ddc(0x4cb)?[{'tableId':_0x1391b4,'reason':_0x4f0ddc(0x155)}]:_0x5d434c===_0x4f0ddc(0x2e4)?[{'tableId':_0x1391b4,'reason':_0x4f0ddc(0x1a2)}]:[{'tableId':_0x1391b4,'reason':_0x5d434c===void 0x0?_0x4f0ddc(0x291):_0x4f0ddc(0x182)}];}function Kt(_0x5dab06,_0xd1dcd,_0x2c08ab,_0x550104){const _0x3b7905=_0x4e663c;return _0x5dab06[_0xd1dcd+0x4]===_0x3b7905(0x325)&&typeof _0x5dab06[_0xd1dcd+0x5]==_0x3b7905(0x432)?[{'tableId':_0x2c08ab,'reason':_0x3b7905(0x1a2),'recordId':_0x550104,'fieldId':String(_0x5dab06[_0xd1dcd+0x5])}]:_0x5dab06[_0xd1dcd+0x4]==='updatedAt'||_0x5dab06[_0xd1dcd+0x4]===_0x3b7905(0x4b0)?[]:[{'tableId':_0x2c08ab,'reason':_0x3b7905(0x2e0),'recordId':_0x550104}];}function qt(_0x215c78){const _0x2c09d6=_0x4e663c;if(!Array[_0x2c09d6(0x454)](_0x215c78))return[];let _0x462de6=_0x215c78[_0x2c09d6(0x20d)](Array['isArray']);if(_0x462de6[_0x2c09d6(0x255)]>0x1&&_0x462de6[_0x2c09d6(0x255)]===_0x215c78[_0x2c09d6(0x255)])return _0x462de6;let _0x308915=_0x215c78['findIndex'](Array[_0x2c09d6(0x454)]);if(_0x308915>0x0&&_0x215c78['slice'](_0x308915)[_0x2c09d6(0x361)](Array[_0x2c09d6(0x454)])){let _0x31df15=_0x215c78['slice'](0x0,_0x308915);return _0x215c78[_0x2c09d6(0x183)](_0x308915)[_0x2c09d6(0x19c)](_0xc5462f=>[..._0x31df15,..._0xc5462f]);}let _0x169b4d=_0x215c78[_0x2c09d6(0x137)](_0x2c09d6(0x13e));if(_0x169b4d===-0x1||typeof _0x215c78[_0x169b4d+0x1]!=_0x2c09d6(0x432))return[];let _0x15fe03=String(_0x215c78[_0x169b4d+0x1]),_0x1ae8e5=_0x215c78[_0x2c09d6(0x183)](_0x169b4d+0x2)['filter'](Array[_0x2c09d6(0x454)]);return _0x1ae8e5['length']<=0x1?[]:_0x1ae8e5[_0x2c09d6(0x19c)](_0x7b00da=>[_0x2c09d6(0x13e),_0x15fe03,..._0x7b00da]);}function Jt(_0x5a3f47){const _0x580daa=_0x4e663c;let _0x5742fc=new Set();return _0x5a3f47[_0x580daa(0x20d)](_0x552b21=>{const _0xf7044c=_0x580daa;let _0x5cc0e3=JSON[_0xf7044c(0x1ff)](_0x552b21);return!_0x5742fc[_0xf7044c(0x19e)](_0x5cc0e3)&&(_0x5742fc[_0xf7044c(0x133)](_0x5cc0e3),!0x0);});}function Yt(_0xe984ac){const _0x34a818=_0x4e663c;return _0x6981f1[_0x34a818(0x12f)](_0xe984ac);}function Xt(_0x5dad1f,_0x513e25){const _0x16b373=_0x4e663c;let _0x1f969e=Zt(_0x513e25);if(!_0x1f969e[_0x16b373(0x255)])return Yt(_0x5dad1f);let _0x29489a=an(_0x5dad1f),_0x4c690e=new Set();for(let _0x258c8d of _0x1f969e)en(_0x29489a,_0x258c8d,_0x4c690e);return _0x29489a;}function Zt(_0x5702d4){let _0x366831=[];return Qt(_0x5702d4,[],_0x366831),_0x366831;}function Qt(_0x2bc582,_0x5ffd68,_0x5db5ea){const _0x21f22f=_0x4e663c;if(!Array[_0x21f22f(0x454)](_0x2bc582))return;let _0x3ea1a1=[];for(let _0x38d76d of _0x2bc582)Array[_0x21f22f(0x454)](_0x38d76d)?Qt(_0x38d76d,[..._0x5ffd68,..._0x3ea1a1],_0x5db5ea):$t(_0x38d76d)?_0x5db5ea['push']([..._0x5ffd68,..._0x3ea1a1]):(typeof _0x38d76d=='string'||typeof _0x38d76d==_0x21f22f(0x24a))&&_0x3ea1a1[_0x21f22f(0x25c)](_0x38d76d);}function $t(_0x523f10){const _0x54f39a=_0x4e663c;if(!_0x523f10||typeof _0x523f10!='object'||Array[_0x54f39a(0x454)](_0x523f10))return!0x1;let _0x449927=_0x523f10;return'i'in _0x449927||'r'in _0x449927||'p'in _0x449927||'d'in _0x449927||'es'in _0x449927||_0x54f39a(0x441)in _0x449927||'et'in _0x449927;}function en(_0x29a07b,_0x41eb56,_0x142d7b){const _0x2b1501=_0x4e663c;let _0x48a4b3=_0x29a07b,_0x10734=[];for(let _0x35447a=0x0;_0x35447a<_0x41eb56[_0x2b1501(0x255)]-0x1;_0x35447a++){let _0x8e7471=_0x41eb56[_0x35447a];_0x10734['push'](_0x8e7471);let _0x32d097=tn(_0x48a4b3,_0x8e7471);if(!rn(_0x32d097))return;let _0x2b5076=JSON[_0x2b1501(0x1ff)](_0x10734);_0x142d7b[_0x2b1501(0x19e)](_0x2b5076)||(nn(_0x48a4b3,_0x8e7471,an(_0x32d097)),_0x142d7b[_0x2b1501(0x133)](_0x2b5076));let _0xceab32=tn(_0x48a4b3,_0x8e7471);if(!rn(_0xceab32))return;_0x48a4b3=_0xceab32;}}function tn(_0x221fdd,_0x464513){const _0x24c3f9=_0x4e663c;return Array[_0x24c3f9(0x454)](_0x221fdd)?typeof _0x464513==_0x24c3f9(0x24a)?_0x221fdd[_0x464513]:void 0x0:Reflect[_0x24c3f9(0x1f4)](_0x221fdd,_0x464513);}function nn(_0x451f2c,_0x5550d5,_0x204dc7){const _0x436b2e=_0x4e663c;Array[_0x436b2e(0x454)](_0x451f2c)?typeof _0x5550d5==_0x436b2e(0x24a)&&(_0x451f2c[_0x5550d5]=_0x204dc7):Reflect[_0x436b2e(0x233)](_0x451f2c,_0x5550d5,_0x204dc7);}function rn(_0x1feb04){const _0x4e6e4d=_0x4e663c;return!!_0x1feb04&&typeof _0x1feb04==_0x4e6e4d(0x37c);}function an(_0x1c0c9a){const _0x249f60=_0x4e663c;return Array[_0x249f60(0x454)](_0x1c0c9a)?_0x1c0c9a[_0x249f60(0x183)]():{..._0x1c0c9a};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x4e663c(0x32c),'yyyy-mm-dd':_0x4e663c(0x323),'mm-dd':_0x4e663c(0x140),'mm/dd/yyyy':_0x4e663c(0x2d9),'dd/mm/yyyy':_0x4e663c(0x241),'mmm\x20d,\x20yyyy':_0x4e663c(0x3d7)};function B(_0x4fce03,_0x340b6e=_0x4b651b[_0x4e663c(0x24d)]){const _0x4145ea=_0x4e663c;let _0x18c50e=_0x1c7af5(_0x4fce03)[_0x4145ea(0x328)]();return _0xbd2fda(new Date(_0x18c50e),_0x340b6e);}function ln(_0x3f994b,_0x49c682=_0x4b651b[_0x4e663c(0x24d)]){const _0x2dfaec=_0x4e663c;return _0x44e2fc(_0x3f994b,_0x49c682)[_0x2dfaec(0x1d1)]();}function un(_0x5a947a,_0x3c2814=_0x4b651b[_0x4e663c(0x24d)]){const _0x5dcac0=_0x4e663c;if(_0x5a947a==null||_0x5a947a==='')return null;if(_0x5a947a instanceof Date)return B(_0x5a947a,_0x3c2814);if(typeof _0x5a947a==_0x5dcac0(0x24a))return Number[_0x5dcac0(0x402)](_0x5a947a)?_0x5a947a>0xf4240?B(_0x5a947a,_0x3c2814):_0x5a947a:null;let _0x342c58=Date[_0x5dcac0(0x1d7)](String(_0x5a947a));return Number['isNaN'](_0x342c58)?null:B(_0x342c58,_0x3c2814);}function dn(_0x2f5ef2,_0x3ea6cf=_0x4b651b[_0x4e663c(0x24d)]){let _0xa7b099=un(_0x2f5ef2,_0x3ea6cf);return _0xa7b099==null?null:ln(_0xa7b099,_0x3ea6cf);}function fn(_0x442104={}){const _0x433ad9=_0x4e663c;let _0x36af4b=String(_0x442104[_0x433ad9(0x301)]??_0x442104[_0x433ad9(0x379)]??_0x442104[_0x433ad9(0x4c7)]??on)[_0x433ad9(0x319)]()||on,_0x129e15=sn[_0x433ad9(0x355)](_0x36af4b);return{'pattern':_0x36af4b[_0x433ad9(0x13d)](sn,'')||on,'includeTime':typeof _0x442104[_0x433ad9(0x122)]==_0x433ad9(0x2dc)?_0x442104['includeTime']:_0x129e15,'hourCycle':_0x442104[_0x433ad9(0x2b9)]===_0x433ad9(0x1a1)?_0x433ad9(0x1a1):'h24'};}function pn(_0x3e9a4d={}){let {format:_0x3fbf23,dateFormat:_0x4cef2e,..._0x1b57ac}=_0x3e9a4d;return{..._0x1b57ac,...fn(_0x3e9a4d)};}function mn(_0x23ca88,_0x474124={}){const _0x10c63d=_0x4e663c;let _0x2f51c0=dn(_0x23ca88);if(_0x2f51c0==null||!Number['isFinite'](_0x2f51c0))return'';let _0x397c81=fn(_0x474124);return _0x1c7af5(_0x2f51c0)[_0x10c63d(0x379)](hn(_0x397c81));}function hn(_0x8353e8){const _0x1c3098=_0x4e663c;let {pattern:_0x15bab0,includeTime:_0xd95b5e,hourCycle:_0x22f891}=_0x8353e8,_0x4813b4=cn[_0x15bab0]??cn[on];return _0xd95b5e?_0x4813b4+'\x20'+(_0x22f891===_0x1c3098(0x1a1)?_0x1c3098(0x1ea):_0x1c3098(0x3b0)):_0x4813b4;}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([_0x5f310d[_0x4e663c(0x44e)]]);function vn(_0x27d9f5){const _0x3c0e78=_0x4e663c;switch(_0x27d9f5){case _0x5f310d[_0x3c0e78(0x376)]:case _0x5f310d[_0x3c0e78(0x144)]:case _0x5f310d[_0x3c0e78(0x46d)]:case _0x5f310d['Rating']:return[_0x385b50['IS'],_0x385b50[_0x3c0e78(0x30d)],_0x385b50['GREATER_THAN'],_0x385b50['LESS_THAN'],_0x385b50[_0x3c0e78(0x2c8)],_0x385b50[_0x3c0e78(0x48a)]];case _0x5f310d[_0x3c0e78(0x14a)]:case _0x5f310d[_0x3c0e78(0x260)]:case _0x5f310d[_0x3c0e78(0x40c)]:return[_0x385b50['IS'],_0x385b50[_0x3c0e78(0x30d)],_0x385b50['BEFORE'],_0x385b50['AFTER'],_0x385b50[_0x3c0e78(0x2c8)],_0x385b50[_0x3c0e78(0x48a)]];case _0x5f310d[_0x3c0e78(0x280)]:return[_0x385b50['IS'],_0x385b50['IS_NOT']];default:return[_0x385b50['IS'],_0x385b50['IS_NOT'],_0x385b50['CONTAINS'],_0x385b50['NOT_CONTAINS'],_0x385b50['IS_EMPTY'],_0x385b50[_0x3c0e78(0x48a)]];}}function yn(_0x5b9ae7){const _0x1b260b=_0x4e663c;return _0x5b9ae7===_0x5f310d[_0x1b260b(0x14a)]||_0x5b9ae7===_0x5f310d[_0x1b260b(0x260)]||_0x5b9ae7===_0x5f310d[_0x1b260b(0x40c)];}function bn(_0x2ce0f0,_0x3fa385){const _0x3a6678=_0x4e663c;return _0x2ce0f0==null&&_0x3fa385==null?0x0:_0x2ce0f0==null?-0x1:_0x3fa385==null?0x1:typeof _0x2ce0f0==_0x3a6678(0x24a)&&typeof _0x3fa385==_0x3a6678(0x24a)?_0x2ce0f0-_0x3fa385:String(_0x2ce0f0)['localeCompare'](String(_0x3fa385));}function xn(_0x5e9997,_0x548a96,_0x3b92bf,_0xd5a518,_0x25ad65={}){const _0x5dee02=_0x4e663c;if(_0x548a96===_0x5dee02(0x270))return Sn(_0x5e9997);if(_0x548a96===_0x5dee02(0x119))return!Sn(_0x5e9997);switch(_0xd5a518[_0x5dee02(0x111)]){case _0x5f310d[_0x5dee02(0x376)]:case _0x5f310d['Currency']:case _0x5f310d[_0x5dee02(0x46d)]:case _0x5f310d[_0x5dee02(0x29c)]:return Cn(_0x5e9997,_0x548a96,_0x3b92bf);case _0x5f310d['Date']:case _0x5f310d[_0x5dee02(0x260)]:case _0x5f310d[_0x5dee02(0x40c)]:return Tn(_0x5e9997,_0x548a96,_0x3b92bf,_0x25ad65);case _0x5f310d[_0x5dee02(0x280)]:return jn(_0x5e9997,_0x548a96,_0x3b92bf);case _0x5f310d['SingleSelect']:case _0x5f310d[_0x5dee02(0x3b2)]:case _0x5f310d[_0x5dee02(0x447)]:case _0x5f310d[_0x5dee02(0x19d)]:return Nn(_0x5e9997,_0x548a96,_0x3b92bf,_0xd5a518);default:return Pn(_0x5e9997,_0x548a96,_0x3b92bf);}}function Sn(_0x1c0c76){const _0x28f598=_0x4e663c;return _0x1c0c76==null?!0x0:Array['isArray'](_0x1c0c76)?_0x1c0c76[_0x28f598(0x255)]===0x0:typeof _0x1c0c76==_0x28f598(0x432)&&_0x1c0c76[_0x28f598(0x319)]()==='';}function Cn(_0x5f21c8,_0x2f89cb,_0x4a1487){const _0x460336=_0x4e663c;let _0x50c9a4=wn(_0x5f21c8),_0x30fd79=wn(_0x4a1487);if(_0x50c9a4==null||_0x30fd79==null)return!0x1;switch(_0x2f89cb){case'is':return _0x50c9a4===_0x30fd79;case _0x460336(0x349):return _0x50c9a4!==_0x30fd79;case _0x460336(0x4a9):return _0x50c9a4>_0x30fd79;case _0x460336(0x113):return _0x50c9a4>=_0x30fd79;case _0x460336(0x227):return _0x50c9a4<_0x30fd79;case _0x460336(0x3ef):return _0x50c9a4<=_0x30fd79;default:return!0x1;}}function wn(_0x44c347){const _0xaff2f1=_0x4e663c;if(_0x44c347==null||_0x44c347==='')return null;let _0xe9cc5f=Number(_0x44c347);return Number[_0xaff2f1(0x402)](_0xe9cc5f)?_0xe9cc5f:null;}function Tn(_0x5348f7,_0x450fd0,_0x4865ac,_0x2a5bc5){const _0x6f0878=_0x4e663c;let _0x2b376e=Dn(_0x5348f7);if(_0x2b376e==null)return!0x1;let _0x540fe6=En(_0x2a5bc5[_0x6f0878(0x226)]??_0x4a0571[_0x6f0878(0x343)],_0x4865ac,_0x2a5bc5['now']);if(!_0x540fe6)return!0x1;switch(_0x450fd0){case _0x385b50['IS']:return _0x2b376e>=_0x540fe6['start']&&_0x2b376e<=_0x540fe6['end'];case _0x385b50[_0x6f0878(0x30d)]:return _0x2b376e<_0x540fe6[_0x6f0878(0x1f5)]||_0x2b376e>_0x540fe6[_0x6f0878(0x256)];case _0x385b50[_0x6f0878(0x2c1)]:return _0x2b376e<_0x540fe6['start'];case _0x385b50[_0x6f0878(0x288)]:return _0x2b376e>_0x540fe6['end'];default:return!0x1;}}function En(_0x201197,_0xb2e9d1,_0xde4ed8=Date[_0x4e663c(0x2cf)]()){const _0x14e73e=_0x4e663c;let _0x17fe0d=On(_0xde4ed8);switch(_0x201197){case _0x4a0571[_0x14e73e(0x343)]:{let _0x4686c6=Dn(_0xb2e9d1);return _0x4686c6==null?null:V(_0x4686c6,0x0,0x1);}case _0x4a0571[_0x14e73e(0x15e)]:return V(_0x17fe0d,0x0,0x1);case _0x4a0571[_0x14e73e(0x21d)]:return V(_0x17fe0d,0x1,0x1);case _0x4a0571[_0x14e73e(0x426)]:return V(_0x17fe0d,-0x1,0x1);case _0x4a0571['THIS_WEEK']:return kn(_0x17fe0d,0x0);case _0x4a0571[_0x14e73e(0x3e7)]:return kn(_0x17fe0d,-0x1);case _0x4a0571[_0x14e73e(0x295)]:return An(_0x17fe0d,0x0);case _0x4a0571[_0x14e73e(0x394)]:return An(_0x17fe0d,-0x1);case _0x4a0571[_0x14e73e(0x135)]:return V(_0x17fe0d,-0x6,0x7);case _0x4a0571[_0x14e73e(0x30a)]:return V(_0x17fe0d,0x0,0x7);case _0x4a0571[_0x14e73e(0x32b)]:return V(_0x17fe0d,-0x1d,0x1e);case _0x4a0571['NEXT_30_DAYS']:return V(_0x17fe0d,0x0,0x1e);}}function Dn(_0x5ead27){let _0x457493=un(_0x5ead27);return _0x457493==null?null:On(ln(_0x457493));}function On(_0x2643a2){const _0x4a3fca=_0x4e663c;let _0x2bf27c=new Date(_0x2643a2);return _0x2bf27c[_0x4a3fca(0x44b)](0x0,0x0,0x0,0x0),_0x2bf27c[_0x4a3fca(0x1d1)]();}function kn(_0x42ad3c,_0x395fec){const _0x356597=_0x4e663c;return V(_0x42ad3c,-((new Date(_0x42ad3c)[_0x356597(0x136)]()+0x6)%0x7)+_0x395fec*0x7,0x7);}function V(_0x17a6ff,_0x5921ac,_0x3d75c1){const _0x18b038=_0x4e663c;let _0x5d97f1=_0x1c7af5(_0x17a6ff)[_0x18b038(0x133)](_0x5921ac,_0x18b038(0x22c));return{'start':_0x5d97f1['valueOf'](),'end':_0x5d97f1[_0x18b038(0x133)](_0x3d75c1,_0x18b038(0x22c))[_0x18b038(0x328)]()-0x1};}function An(_0x461da9,_0x3d0666){const _0xbc8c34=_0x4e663c;let _0x42732d=new Date(_0x461da9),_0x3e727e=new Date(_0x42732d['getFullYear'](),_0x42732d[_0xbc8c34(0x29e)]()+_0x3d0666,0x1),_0x42b084=new Date(_0x42732d[_0xbc8c34(0x1ec)](),_0x42732d[_0xbc8c34(0x29e)]()+_0x3d0666+0x1,0x1);return{'start':_0x3e727e[_0xbc8c34(0x1d1)](),'end':_0x42b084['getTime']()-0x1};}function jn(_0x37a9ee,_0x38c629,_0x120c83){const _0x582bc3=_0x4e663c;let _0x4136d6=Mn(_0x37a9ee),_0x36b164=Mn(_0x120c83);switch(_0x38c629){case'is':return _0x4136d6===_0x36b164;case _0x582bc3(0x349):return _0x4136d6!==_0x36b164;default:return!0x1;}}function Mn(_0x35c66d){const _0x1f7f00=_0x4e663c;return _0x35c66d===!0x0||_0x35c66d===_0x1f7f00(0x44d)||_0x35c66d===0x1||_0x35c66d==='1';}function Nn(_0x364a19,_0x292f47,_0x547e50,_0x29b92c){const _0x17e5d6=_0x4e663c;let _0x2ace1f=In(_0x364a19,_0x29b92c),_0x46e74f=In(_0x547e50,_0x29b92c),_0xc4d681=_0x46e74f[_0x17e5d6(0x255)]>0x0&&_0x46e74f[_0x17e5d6(0x48c)](_0x57043c=>_0x2ace1f['includes'](_0x57043c));switch(_0x292f47){case'is':case _0x17e5d6(0x34d):return _0xc4d681;case _0x17e5d6(0x349):case'notContains':return!_0xc4d681;default:return!0x1;}}function Pn(_0x1ed986,_0x45141d,_0x2c60eb){const _0x2d44b8=_0x4e663c;let _0x3df303=Fn(_0x1ed986),_0x5a9bf9=Fn(_0x2c60eb);switch(_0x45141d){case'is':return _0x3df303===_0x5a9bf9;case _0x2d44b8(0x349):return _0x3df303!==_0x5a9bf9;case _0x2d44b8(0x34d):return _0x5a9bf9?_0x3df303['includes'](_0x5a9bf9):!0x1;case _0x2d44b8(0x254):return!_0x5a9bf9||!_0x3df303['includes'](_0x5a9bf9);default:return!0x1;}}function Fn(_0x3945a9){const _0x2ca81d=_0x4e663c;if(Array[_0x2ca81d(0x454)](_0x3945a9))return _0x3945a9['map'](_0x4614e6=>Fn(_0x4614e6))[_0x2ca81d(0x2e9)]('\x0a');if(_0x3945a9&&typeof _0x3945a9=='object'){let _0x135803=_0x3945a9;return String(_0x135803[_0x2ca81d(0x269)]??_0x135803[_0x2ca81d(0x418)]??_0x135803[_0x2ca81d(0x10f)]??_0x135803[_0x2ca81d(0x401)]??_0x135803['id']??'')[_0x2ca81d(0x319)]()[_0x2ca81d(0x2ec)]();}return String(_0x3945a9??'')[_0x2ca81d(0x319)]()[_0x2ca81d(0x2ec)]();}function In(_0x12c2fe,_0x390965){const _0x2347f2=_0x4e663c;let _0x166700=Ln(_0x12c2fe),_0x23a976=Rn(_0x390965[_0x2347f2(0x2c4)]??{});return _0x166700[_0x2347f2(0x1fb)](_0x94db5=>_0x23a976[_0x2347f2(0x1f4)](_0x94db5)??[_0x94db5])['filter']((_0x35465d,_0x4ef6b7,_0x2ebed3)=>_0x35465d!==''&&_0x2ebed3['indexOf'](_0x35465d)===_0x4ef6b7);}function Ln(_0x47ee0e){const _0xe726c9=_0x4e663c;if(_0x47ee0e==null||_0x47ee0e==='')return[];if(Array[_0xe726c9(0x454)](_0x47ee0e))return _0x47ee0e[_0xe726c9(0x1fb)](_0x8012f0=>Ln(_0x8012f0));if(_0x47ee0e&&typeof _0x47ee0e=='object'){let _0x4654cd=_0x47ee0e;return['id','name',_0xe726c9(0x418),_0xe726c9(0x401),'text'][_0xe726c9(0x1fb)](_0x59c4a4=>Ln(_0x4654cd[_0x59c4a4]))[_0xe726c9(0x20d)]((_0x5ca470,_0x1e23b0,_0x1235b1)=>_0x1235b1[_0xe726c9(0x137)](_0x5ca470)===_0x1e23b0);}return[Fn(_0x47ee0e)];}function Rn(_0x330ece){const _0x32fcfe=_0x4e663c;let _0x5af1cf=new Map();return(Array[_0x32fcfe(0x454)](_0x330ece[_0x32fcfe(0x17f)])?_0x330ece[_0x32fcfe(0x17f)]:[])[_0x32fcfe(0x29f)](_0x1eff61=>{const _0x9d6588=_0x32fcfe;if(!_0x1eff61||typeof _0x1eff61!=_0x9d6588(0x37c))return;let _0x1c30aa=Ln(_0x1eff61),_0x443a61=_0x1c30aa['filter']((_0x437f2d,_0x1e43b8)=>_0x437f2d!==''&&_0x1c30aa[_0x9d6588(0x137)](_0x437f2d)===_0x1e43b8);_0x443a61[_0x9d6588(0x29f)](_0x36e3bb=>_0x5af1cf[_0x9d6588(0x233)](_0x36e3bb,_0x443a61));}),_0x5af1cf;}function H(_0x345606,_0x508782={},_0x1608a4=_0x819ce9=>_0x819ce9,_0x3eb71e={}){const _0x248b41=_0x4e663c;let _0x2c495a=!_n[_0x248b41(0x19e)](_0x345606),_0x4c2998=_0x1608a4??(_0x13e1de=>_0x13e1de);return{'type':_0x345606,'i18nKey':_0x248b41(0x1cc)+_0x345606,'enabled':_0x2c495a,'visibleInCreateMenu':_0x2c495a,'createDefaultConfig':_0x3eb71e[_0x248b41(0x3d2)]??(()=>({})),'createDefaultValue':_0x3eb71e[_0x248b41(0x462)]??(_0x10a175=>_0x10a175['defaultValue']??null),'normalize':(_0x2d4e49,_0x472d04)=>_0x4c2998(_0x2d4e49,_0x472d04),'validate':(_0x9dbda5,_0xa684fb)=>{var _0x164ac1;return _0x2c495a?((_0x164ac1=_0x3eb71e['validate'])==null?void 0x0:_0x164ac1['call'](_0x3eb71e,_0x9dbda5,_0xa684fb))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x3009f5,_0x12b64d)=>bn(_0x3009f5,_0x12b64d),'filter':(_0x430140,_0x431d5e,_0x15c10e,_0x1a5676)=>xn(_0x430140,_0x431d5e,_0x15c10e,_0x1a5676),'toPlainText':_0x3eb71e[_0x248b41(0x2a7)]??(_0xd8954d=>_0xd8954d==null?'':String(_0xd8954d)),'fromPlainText':_0x3eb71e['fromPlainText']??(_0x55677f=>_0x4c2998(_0x55677f,{'id':'','name':'','type':_0x345606,'config':{}})),'getCapabilities':()=>({...gn,..._0x508782,'editable':_0x2c495a&&(_0x508782[_0x248b41(0x31d)]??gn[_0x248b41(0x31d)])})};}function zn(){const _0x127ae7=_0x4e663c;return[H(_0x5f310d[_0x127ae7(0x3d0)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.textPlaceholder'}),'createDefaultValue':_0x17df23=>_0x17df23[_0x127ae7(0x38a)]??''}),H(_0x5f310d[_0x127ae7(0x1d9)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x5db8d8=>_0x5db8d8==null||_0x5db8d8===''?null:String(_0x5db8d8),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x127ae7(0x438)}})}),H(_0x5f310d[_0x127ae7(0x3b2)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x15293a=>Array['isArray'](_0x15293a)?_0x15293a[_0x127ae7(0x19c)](String):_0x15293a==null?[]:[String(_0x15293a)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x127ae7(0x438)}}),'createDefaultValue':_0x5c990b=>_0x5c990b['defaultValue']??[]}),H(_0x5f310d[_0x127ae7(0x447)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x127ae7(0x3ff)}),'validate':Gn}),H(_0x5f310d[_0x127ae7(0x19d)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x127ae7(0x29d)}),'createDefaultValue':_0x2e651c=>_0x2e651c[_0x127ae7(0x38a)]??[],'validate':Kn}),H(_0x5f310d[_0x127ae7(0x14a)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x5c6b25=>un(_0x5c6b25),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x5f310d['Attachment'],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x5ba040=>_0x5ba040==null?[]:Array[_0x127ae7(0x454)](_0x5ba040)?_0x5ba040:[_0x5ba040],{'createDefaultValue':_0x4cbe8f=>_0x4cbe8f[_0x127ae7(0x38a)]??[]}),H(_0x5f310d[_0x127ae7(0x376)],{},_0x456acd=>_0x456acd==null||_0x456acd===''?null:Number(_0x456acd),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x5f310d['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x10f4a7=>_0x10f4a7===!0x0||_0x10f4a7==='true'||_0x10f4a7===0x1||_0x10f4a7==='1',{'createDefaultConfig':()=>({'icon':_0x127ae7(0x342),'color':'#16a34a'}),'createDefaultValue':_0xb16817=>_0xb16817['defaultValue']??!0x1,'validate':_0xc073c2=>typeof _0xc073c2==_0x127ae7(0x2dc)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),H(_0x5f310d[_0x127ae7(0x3a7)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x127ae7(0x27e)}),'toPlainText':_0x54f3ee=>Zn(_0x54f3ee),'fromPlainText':_0x1b3221=>Xn(_0x1b3221)}),H(_0x5f310d[_0x127ae7(0x38d)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':'general','pattern':_0x127ae7(0x1db)}}),'createDefaultValue':()=>null}),H(_0x5f310d['Numbering'],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x127ae7(0x2d3)}),'createDefaultValue':()=>null}),H(_0x5f310d[_0x127ae7(0x1fe)],{'usableAsTitle':!0x0},_0x337279=>_0x337279==null?null:String(_0x337279)['trim'](),{'validate':_0x1f057c=>_0x1f057c==null||_0x1f057c===''||/^\+?[0-9 ()-]{6,20}$/[_0x127ae7(0x355)](String(_0x1f057c))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x127ae7(0x2f6)}}),H(_0x5f310d[_0x127ae7(0x3e5)],{'usableAsTitle':!0x0},_0x16d05e=>_0x16d05e==null?null:String(_0x16d05e)[_0x127ae7(0x319)](),{'validate':_0x3d9c26=>_0x3d9c26==null||_0x3d9c26===''||$n(String(_0x3d9c26))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20email\x20value.'}}),H(_0x5f310d['Progress'],{'usableAsGanttProgress':!0x0},_0x393f2c=>_0x393f2c==null||_0x393f2c===''?null:Number(_0x393f2c),{'createDefaultConfig':()=>({'format':_0x127ae7(0x1b0),'decimalPlaces':0x0,'color':'blue','customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x21dabf,_0x10d72b)=>Yn(_0x21dabf,_0x10d72b,_0x127ae7(0x2b3))}),H(_0x5f310d[_0x127ae7(0x144)],{},_0x18f060=>_0x18f060==null||_0x18f060===''?null:Number(_0x18f060),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x5f310d[_0x127ae7(0x29c)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x31d8b5=>_0x31d8b5==null||_0x31d8b5===''?null:Number(_0x31d8b5),{'createDefaultConfig':()=>({'icon':_0x127ae7(0x250),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x4b9881,_0x4567ad)=>Yn(_0x4b9881,_0x4567ad,_0x127ae7(0x195))}),H(_0x5f310d['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x2d2492,_0x1f30b7)=>ze(_0x2d2492,_0x1f30b7[_0x127ae7(0x2c4)][_0x127ae7(0x1cf)]===!0x0)}),H(_0x5f310d[_0x127ae7(0x44e)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x5f310d[_0x127ae7(0x3bd)],{'editable':!0x1,'groupable':!0x0},_0x30c2a5=>_0x30c2a5==null?null:String(_0x30c2a5),{'createDefaultConfig':()=>({'provider':_0x127ae7(0x453)}),'createDefaultValue':()=>null}),H(_0x5f310d[_0x127ae7(0x33f)],{'editable':!0x1,'groupable':!0x0},_0x24e26b=>_0x24e26b==null?null:String(_0x24e26b),{'createDefaultConfig':()=>({'provider':_0x127ae7(0x453)}),'createDefaultValue':()=>null}),H(_0x5f310d[_0x127ae7(0x260)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x3c5c32=>un(_0x3c5c32),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x5f310d[_0x127ae7(0x40c)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x211464=>un(_0x211464),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x96d3e3=_0x4e663c;return{'pattern':_0x96d3e3(0x417),'decimalPlaces':0x2,'separatorStyle':'local','useThousands':!0x0,'abbreviation':'none','allowNegative':!0x0};}function Vn(){const _0x5c45ba=_0x4e663c;return{'locale':_0x5c45ba(0x322),'pattern':_0x5c45ba(0x3cd),'includeTime':!0x1,'hourCycle':'h24','defaultMode':_0x5c45ba(0x170)};}function Hn(_0xc163c){const _0x5e108f=_0x4e663c;return _0xc163c==null||_0xc163c===''?[]:Array[_0x5e108f(0x454)](_0xc163c)?_0xc163c[_0x5e108f(0x19c)](String):[String(_0xc163c)];}function Un(_0x8efe88){const _0x57e2f6=_0x4e663c;return typeof _0x8efe88==_0x57e2f6(0x432)?_0x8efe88:'';}function Wn(_0x4a4db3,_0x349f1d){const _0x2cc590=_0x4e663c;return _0x4a4db3==null||_0x4a4db3===''?_0x349f1d[_0x2cc590(0x2c4)][_0x2cc590(0x297)]===!0x0?[]:null:_0x349f1d['config']['allowMultiple']===!0x0?Array[_0x2cc590(0x454)](_0x4a4db3)?_0x4a4db3[_0x2cc590(0x19c)](String):[String(_0x4a4db3)]:Array[_0x2cc590(0x454)](_0x4a4db3)?String(_0x4a4db3[0x0]??'')||null:String(_0x4a4db3);}function Gn(_0xf8be25,_0x240408){const _0x34e5b7=_0x4e663c;return _0x240408[_0x34e5b7(0x2c4)][_0x34e5b7(0x297)]===!0x0?Kn(_0xf8be25):_0xf8be25==null||_0xf8be25===''||typeof _0xf8be25=='string'?{'valid':!0x0}:{'valid':!0x1,'reason':_0x34e5b7(0x317)};}function Kn(_0x73a107){const _0x3aafa5=_0x4e663c;return _0x73a107==null||Array[_0x3aafa5(0x454)](_0x73a107)&&_0x73a107[_0x3aafa5(0x361)](_0x3a1f18=>typeof _0x3a1f18==_0x3aafa5(0x432))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3aafa5(0x1f6)};}function qn(_0x259f78){const _0x315ccd=_0x4e663c;return _0x259f78==null||typeof _0x259f78==_0x315ccd(0x24a)&&Number['isFinite'](_0x259f78)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x315ccd(0x262)};}function Jn(_0x312516,_0x400210){const _0x87c06c=_0x4e663c;return _0x312516==null||_0x312516===''?{'valid':!0x0}:typeof _0x312516!=_0x87c06c(0x24a)||!Number['isFinite'](_0x312516)?{'valid':!0x1,'reason':_0x87c06c(0x160)}:_0x400210[_0x87c06c(0x2c4)][_0x87c06c(0x3e2)]===!0x1&&_0x312516<0x0?{'valid':!0x1,'reason':'[BaseField]:\x20negative\x20numbers\x20are\x20disabled.'}:{'valid':!0x0};}function Yn(_0x55fe5e,_0x13341d,_0x392a3b){const _0x57601b=_0x4e663c;let _0xb94ec2=Jn(_0x55fe5e,_0x13341d);if(!_0xb94ec2[_0x57601b(0x39f)]||_0x55fe5e==null||_0x55fe5e==='')return _0xb94ec2;let _0x20ce08=Number(_0x13341d['config'][_0x57601b(0x34c)]??_0x13341d[_0x57601b(0x2c4)][_0x57601b(0x1f5)]??0x0),_0x554c1b=Number(_0x13341d[_0x57601b(0x2c4)][_0x57601b(0x251)]??_0x13341d[_0x57601b(0x2c4)][_0x57601b(0x256)]??0x64),_0x5808dd=Number(_0x55fe5e);return _0x5808dd>=_0x20ce08&&_0x5808dd<=_0x554c1b?{'valid':!0x0}:{'valid':!0x1,'reason':_0x392a3b};}function Xn(_0x502fcb){const _0x408495=_0x4e663c;if(_0x502fcb==null||_0x502fcb==='')return null;if(typeof _0x502fcb=='object'&&!Array[_0x408495(0x454)](_0x502fcb)){let _0xf0533=_0x502fcb,_0x8710f3=typeof _0xf0533[_0x408495(0x10f)]==_0x408495(0x432)?_0xf0533[_0x408495(0x10f)][_0x408495(0x319)]():'',_0x394390=typeof _0xf0533[_0x408495(0x282)]==_0x408495(0x432)?_0xf0533[_0x408495(0x282)]['trim']():'',_0x3dbb45=Qn(_0x394390||_0x8710f3);return _0x3dbb45?{'text':_0x8710f3||_0x394390||_0x3dbb45,'url':_0x3dbb45}:null;}let _0xb633d9=String(_0x502fcb)[_0x408495(0x319)](),_0x2b9abf=Qn(_0xb633d9);return _0x2b9abf?{'text':_0xb633d9,'url':_0x2b9abf}:null;}function Zn(_0xe5df23){const _0x31e53b=_0x4e663c;if(_0xe5df23==null)return'';if(typeof _0xe5df23==_0x31e53b(0x37c)&&!Array[_0x31e53b(0x454)](_0xe5df23)){let _0x3d9cf9=_0xe5df23;return String(_0x3d9cf9[_0x31e53b(0x10f)]||_0x3d9cf9[_0x31e53b(0x282)]||'');}return String(_0xe5df23);}function Qn(_0x28df7a){const _0x5d56c7=_0x4e663c;let _0x11e0a0=_0x28df7a[_0x5d56c7(0x319)]();if(!_0x11e0a0)return'';let _0x7cd29e=/^[a-z][a-z\d+.-]*:/i[_0x5d56c7(0x355)](_0x11e0a0)?_0x11e0a0:_0x11e0a0[_0x5d56c7(0x29a)]('//')?_0x5d56c7(0x362)+_0x11e0a0:_0x5d56c7(0x2f3)+_0x11e0a0;try{let _0x1f4a90=new URL(_0x7cd29e);return _0x1f4a90[_0x5d56c7(0x31f)]===_0x5d56c7(0x47d)||_0x1f4a90['protocol']==='https:'?_0x1f4a90[_0x5d56c7(0x3dd)]:'';}catch{return'';}}function $n(_0x4a0729){const _0x140f2f=_0x4e663c;let _0x16adf0=_0x4a0729[_0x140f2f(0x137)]('@');if(_0x16adf0<=0x0||_0x16adf0!==_0x4a0729['lastIndexOf']('@'))return!0x1;let _0x19af9c=_0x4a0729['slice'](_0x16adf0+0x1);return _0x19af9c['includes']('.')&&!_0x4a0729[_0x140f2f(0x176)]('\x20')&&!_0x19af9c[_0x140f2f(0x29a)]('.')&&!_0x19af9c[_0x140f2f(0x3a8)]('.');}const U={'table':_0xbfde7f=>[_0x4e663c(0x13e),_0xbfde7f],'field':(_0x46a7bc,_0x1c5a5d)=>[_0x4e663c(0x13e),_0x46a7bc,'fields',_0x1c5a5d],'fieldOrder':(_0x463a1d,_0xb3227e)=>[_0x4e663c(0x13e),_0x463a1d,_0x4e663c(0x4c0),_0xb3227e],'record':(_0x267f35,_0x2117ff)=>[_0x4e663c(0x13e),_0x267f35,_0x4e663c(0x3f2),_0x2117ff],'cell':(_0x13ed56,_0x49f761,_0x3a47d8)=>['tables',_0x13ed56,_0x4e663c(0x3f2),_0x49f761,_0x4e663c(0x325),_0x3a47d8],'cellData':(_0x2ed544,_0x3ae28d,_0x5deb8c)=>[_0x4e663c(0x13e),_0x2ed544,'cellData',String(_0x3ae28d),String(_0x5deb8c)],'attachmentSet':(_0x252fc8,_0x27d7bb)=>[_0x4e663c(0x13e),_0x252fc8,_0x4e663c(0x2e4),'attachmentSets',_0x27d7bb],'attachment':(_0x53df0f,_0x103266)=>[_0x4e663c(0x13e),_0x53df0f,_0x4e663c(0x2e4),_0x4e663c(0x2ff),_0x103266],'view':(_0x487b39,_0x4f1e21)=>[_0x4e663c(0x13e),_0x487b39,_0x4e663c(0x2ac),_0x4f1e21],'viewFieldHidden':(_0x34583f,_0x5639b0,_0x1d9ee5)=>['tables',_0x34583f,_0x4e663c(0x2ac),_0x5639b0,_0x4e663c(0x180),_0x1d9ee5,_0x4e663c(0x35a)]};var W=class{[_0x4e663c(0x19a)](_0x4c88a0,_0x20a924){const _0x2f6d99=_0x4e663c;let _0x780e1a=this[_0x2f6d99(0x215)](_0x4c88a0,_0x4c88a0[_0x2f6d99(0x269)],_0x20a924);return R([this['_replaceOptional']([_0x2f6d99(0x269)],_0x4c88a0[_0x2f6d99(0x269)],_0x20a924),..._0x780e1a?[_0x780e1a]:[]]);}[_0x4e663c(0x215)](_0x499553,_0x27c210,_0x36cdd9){const _0x5d1dcd=_0x4e663c;let _0x2cd3b7=Object[_0x5d1dcd(0x325)](_0x499553[_0x5d1dcd(0x13e)])[_0x5d1dcd(0x1fb)](_0x25c41d=>Object[_0x5d1dcd(0x325)](_0x25c41d[_0x5d1dcd(0x45e)])['flatMap'](_0xdb0ee6=>{const _0x2dfe32=_0x5d1dcd;var _0x2c7106,_0x57ed36;if(_0xdb0ee6[_0x2dfe32(0x111)]!==_0x5f310d[_0x2dfe32(0x38d)])return[];let _0xb692ed=String(((_0x2c7106=_0xdb0ee6[_0x2dfe32(0x2c4)])==null?void 0x0:_0x2c7106['formula'])??''),_0x3cd243=_0x529677(_0xb692ed,_0x27c210,_0x36cdd9);return _0x3cd243===_0xb692ed?[]:[this[_0x2dfe32(0x4c4)]([...U[_0x2dfe32(0x163)](_0x25c41d['id'],_0xdb0ee6['id']),'config',_0x2dfe32(0x489)],(_0x57ed36=_0xdb0ee6['config'])==null?void 0x0:_0x57ed36[_0x2dfe32(0x489)],_0x3cd243)];}));return _0x2cd3b7['length']>0x0?R(_0x2cd3b7):void 0x0;}[_0x4e663c(0x487)](_0x22cfcd,_0x5edfd0,_0x2fbd1a=_0x22cfcd[_0x4e663c(0x33c)]['length']){const _0x58a5c4=_0x4e663c;let _0x165e0c=_0x1dddab(_0x5edfd0['name'],_0x3e0263(_0x22cfcd)['values'](),_0x5edfd0['formulaName']),_0x5ea7ff=_0x5edfd0[_0x58a5c4(0x2c7)]===_0x165e0c?_0x5edfd0:{..._0x5edfd0,'formulaName':_0x165e0c};return R([...this[_0x58a5c4(0x1c0)](_0x22cfcd),_0x1ba09c[_0x58a5c4(0x1dc)](U[_0x58a5c4(0x291)](_0x5edfd0['id']),_0x5ea7ff),_0x1ba09c['insertOp'](['tableOrder',_0x2fbd1a],_0x5edfd0['id'])]);}[_0x4e663c(0x112)](_0x16d9ce,_0x527bdf,_0x187b41){const _0x34d8b1=_0x4e663c;let _0x216364=_0x16d9ce['tables'][_0x527bdf];return R([...this[_0x34d8b1(0x1c0)](_0x16d9ce),_0x1ba09c[_0x34d8b1(0x4ab)]([...U[_0x34d8b1(0x291)](_0x527bdf),_0x34d8b1(0x269)],_0x216364['name'],_0x187b41)]);}['deleteTable'](_0x415651,_0x17cba4){const _0x10532a=_0x4e663c;let _0x5c5bfd=_0x415651[_0x10532a(0x13e)][_0x17cba4],_0x5155bb=_0x415651[_0x10532a(0x33c)]['indexOf'](_0x17cba4);return R([...this[_0x10532a(0x1c0)](_0x415651,new Set([_0x17cba4])),_0x1ba09c[_0x10532a(0x397)](U[_0x10532a(0x291)](_0x17cba4),_0x5c5bfd),_0x1ba09c[_0x10532a(0x397)]([_0x10532a(0x33c),_0x5155bb],_0x17cba4)]);}[_0x4e663c(0x4be)](_0xc6e6e4,_0x121297,_0x430d62){const _0x13bab9=_0x4e663c;return this[_0x13bab9(0x442)](_0xc6e6e4,_0x121297,[_0x430d62]);}[_0x4e663c(0x442)](_0x5edaea,_0x2ee8e2,_0x319202){const _0x3eed99=_0x4e663c;let _0x29a744=_0x5edaea[_0x3eed99(0x13e)][_0x2ee8e2],_0x6910c4=_0x319202[_0x3eed99(0x20d)](_0x2c9c58=>_0x2c9c58&&!_0x29a744[_0x3eed99(0x3f2)][_0x2c9c58['id']])['map'](_0x53c241=>({..._0x53c241,'values':{..._0x53c241[_0x3eed99(0x325)],[_0x251017]:_0x53c241['id']}}));if(!_0x6910c4[_0x3eed99(0x255)])return _0x1ba09c[_0x3eed99(0x4ab)]([...U[_0x3eed99(0x291)](_0x2ee8e2),'records'],_0x29a744[_0x3eed99(0x3f2)],_0x29a744['records']);let _0x52fefd=new _0x1ba09c[(_0x3eed99(0x49e))](),_0x27a25e=[..._0x6910c4][_0x3eed99(0x3db)]((_0x275967,_0x1e27fd)=>_0x275967['id']<_0x1e27fd['id']?-0x1:+(_0x275967['id']>_0x1e27fd['id'])),_0x3cae0b=[...U[_0x3eed99(0x291)](_0x2ee8e2),_0x3eed99(0x3f2)];_0x52fefd[_0x3eed99(0x484)](_0x3cae0b);for(let _0x17f062 of _0x27a25e)_0x52fefd[_0x3eed99(0x2f7)](_0x17f062['id']),_0x52fefd[_0x3eed99(0x312)]('i',_0x17f062),_0x52fefd[_0x3eed99(0x138)]();for(let _0x12e2ab=0x0;_0x12e2ab<_0x3cae0b[_0x3eed99(0x255)];_0x12e2ab+=0x1)_0x52fefd['ascend']();return R([_0x52fefd[_0x3eed99(0x1f4)](),this[_0x3eed99(0x167)](_0x5edaea,_0x2ee8e2,_0x6910c4)]);}[_0x4e663c(0x14d)](_0x317354,_0x3aeeb8,_0x24ad27){const _0x27d18c=_0x4e663c;return this[_0x27d18c(0x4c2)](_0x317354,_0x3aeeb8,[_0x24ad27]);}[_0x4e663c(0x4c2)](_0x14bb54,_0x388928,_0x2c8086){const _0x5f059b=_0x4e663c;let _0x3c43d7=_0x14bb54['tables'][_0x388928],_0x2cb9ea=Array[_0x5f059b(0x40e)](new Set(_0x2c8086))[_0x5f059b(0x20d)](_0x18b40f=>_0x3c43d7['records'][_0x18b40f]);if(!_0x2cb9ea[_0x5f059b(0x255)])return _0x1ba09c[_0x5f059b(0x4ab)]([...U[_0x5f059b(0x291)](_0x388928),_0x5f059b(0x3f2)],_0x3c43d7[_0x5f059b(0x3f2)],_0x3c43d7[_0x5f059b(0x3f2)]);let _0xb7814a=new Set(_0x2cb9ea),_0x1d902a=et(_0x3c43d7,_0x2cb9ea)['map'](_0x14cdfb=>this[_0x5f059b(0x446)](_0x14bb54,_0x388928,_0x14cdfb['recordId'],_0x14cdfb[_0x5f059b(0x2be)],''));return R([this[_0x5f059b(0x142)](_0x14bb54,_0x388928,_0x2cb9ea,_0xb7814a),..._0x1d902a]);}[_0x4e663c(0x1ab)](_0x343814,_0x419f5b,_0x19d527,_0x57302e){const _0x554960=_0x4e663c;let _0x170aed=_0x343814[_0x554960(0x13e)][_0x19d527],_0x24fb5b=Array['from'](new Set(_0x57302e))[_0x554960(0x20d)](_0xe8af3f=>_0x170aed[_0x554960(0x3f2)][_0xe8af3f]),_0x220170=new Set(_0x24fb5b);return R([new z()[_0x554960(0x44c)](_0x343814,this[_0x554960(0x142)](_0x343814,_0x19d527,_0x24fb5b,_0x220170)),...et(_0x170aed,_0x24fb5b)[_0x554960(0x19c)](_0x2be692=>this['updateCell'](_0x419f5b,_0x19d527,_0x2be692['recordId'],_0x2be692[_0x554960(0x2be)],_0x2be692[_0x554960(0x20a)]??''))]);}['_deleteRecordsBaseOp'](_0x56d345,_0xb4f318,_0x418d27,_0x58203e){const _0xd541a5=_0x4e663c;let _0x30afe0=_0x56d345['tables'][_0xb4f318],_0xb0d87f=_0x418d27['map'](_0x2cd2f5=>{const _0x2b6b63=_0x4619;var _0x4ca82d;return{'recordId':_0x2cd2f5,'index':((_0x4ca82d=_0x30afe0['recordOrder'])==null?void 0x0:_0x4ca82d[_0x2b6b63(0x137)](_0x2cd2f5))??-0x1};})['filter'](_0x463a17=>_0x463a17[_0xd541a5(0x455)]>=0x0)[_0xd541a5(0x3db)]((_0x52bd35,_0x1c84f4)=>_0x1c84f4['index']-_0x52bd35[_0xd541a5(0x455)]);return R([..._0x418d27['map'](_0x41606f=>_0x1ba09c[_0xd541a5(0x397)](U[_0xd541a5(0x2e0)](_0xb4f318,_0x41606f),_0x30afe0[_0xd541a5(0x3f2)][_0x41606f])),..._0xb0d87f[_0xd541a5(0x19c)](({recordId:_0x330a2c,index:_0x36ab85})=>_0x1ba09c[_0xd541a5(0x397)]([_0xd541a5(0x13e),_0xb4f318,_0xd541a5(0x36b),_0x36ab85],_0x330a2c)),...this['_deleteAttachmentResources'](_0x30afe0,_0xb4f318,_0x529ec1=>{const _0xc13143=_0xd541a5;let _0x5ac91e=_0x529ec1[_0xc13143(0x183)](_0x529ec1[_0xc13143(0x3e3)]('\x1f')+0x1);return _0x58203e[_0xc13143(0x19e)](_0x5ac91e);})]);}['duplicateRecord'](_0x1f6b00,_0x40931e,_0x17ac8a,_0x415a55){const _0x9da5ca=_0x4e663c;return this[_0x9da5ca(0x4be)](_0x1f6b00,_0x40931e,{..._0x415a55,'values':{..._0x1f6b00[_0x9da5ca(0x13e)][_0x40931e]['records'][_0x17ac8a][_0x9da5ca(0x325)],..._0x415a55['values'],[_0x251017]:_0x415a55['id']}});}['updateRecordOrder'](_0x5ea20c,_0x36cc64,_0x1b7da4,_0x5965fb){const _0x30bad0=_0x4e663c;let _0x466429=_0x5ea20c['tables'][_0x36cc64],_0xaf8719=[...U[_0x30bad0(0x2e0)](_0x36cc64,_0x1b7da4),_0x30bad0(0x1b7)],_0x518d77=Object[_0x30bad0(0x325)](_0x466429[_0x30bad0(0x3f2)])['map'](_0x37a9b3=>_0x37a9b3['id']===_0x1b7da4?{..._0x37a9b3,'orderKey':_0x5965fb}:_0x37a9b3)[_0x30bad0(0x3db)]((_0x2bae12,_0x399ef1)=>String(_0x2bae12[_0x30bad0(0x1b7)]??_0x2bae12['id'])[_0x30bad0(0x3f7)](String(_0x399ef1[_0x30bad0(0x1b7)]??_0x399ef1['id'])))[_0x30bad0(0x19c)](_0xfc21a8=>_0xfc21a8['id']),_0x34aeb1=[...U[_0x30bad0(0x291)](_0x36cc64),_0x30bad0(0x36b)];return R([this[_0x30bad0(0x4c4)](_0xaf8719,_0x466429[_0x30bad0(0x3f2)][_0x1b7da4][_0x30bad0(0x1b7)],_0x5965fb),_0x466429[_0x30bad0(0x36b)]?_0x1ba09c[_0x30bad0(0x4ab)](_0x34aeb1,_0x466429[_0x30bad0(0x36b)],_0x518d77):_0x1ba09c[_0x30bad0(0x1dc)](_0x34aeb1,_0x518d77)]);}[_0x4e663c(0x446)](_0x55b1f9,_0x1992d8,_0x1a1574,_0x32013b,_0x1b8343){const _0x34ae34=_0x4e663c;var _0x33d886,_0x44b6fd;let _0x225c40=_0x55b1f9[_0x34ae34(0x13e)][_0x1992d8],_0x35682c=ar(_0x225c40,_0x1a1574,_0x32013b)?_0x225c40:L(_0x225c40),_0x3f3515=(_0x33d886=_0x35682c[_0x34ae34(0x200)])==null?void 0x0:_0x33d886[_0x1a1574],_0x5e3de0=(_0x44b6fd=_0x35682c[_0x34ae34(0x293)])==null?void 0x0:_0x44b6fd[_0x32013b];if(_0x3f3515==null||_0x5e3de0==null){var _0x2d2358;return this['_replaceOptional'](U['cell'](_0x1992d8,_0x1a1574,_0x32013b),(_0x2d2358=_0x55b1f9[_0x34ae34(0x13e)][_0x1992d8])==null||(_0x2d2358=_0x2d2358['records'][_0x1a1574])==null?void 0x0:_0x2d2358[_0x34ae34(0x325)][_0x32013b],_0x1b8343);}return this[_0x34ae34(0x48e)](_0x55b1f9,_0x1992d8,[{'row':_0x3f3515,'col':_0x5e3de0,'value':_0x1b8343}]);}['setRecordValues'](_0x29c31d,_0xebffa0,_0x1715a7){const _0x312129=_0x4e663c;let _0xf3e5f2=_0x29c31d[_0x312129(0x13e)][_0xebffa0],_0x4a2846=_0x1715a7[_0x312129(0x361)](_0x384421=>Object[_0x312129(0x467)](_0x384421[_0x312129(0x325)])[_0x312129(0x361)](_0x51d538=>ar(_0xf3e5f2,_0x384421[_0x312129(0x1ef)],_0x51d538)))?_0xf3e5f2:L(_0xf3e5f2),_0x148013=_0x1715a7[_0x312129(0x1fb)](_0x4b6032=>Object[_0x312129(0x3ee)](_0x4b6032[_0x312129(0x325)])[_0x312129(0x1fb)](([_0x5a6da2,_0xa5c32e])=>{const _0x55c30e=_0x312129;var _0x2a6685,_0x477ad3;let _0x7c3dae=(_0x2a6685=_0x4a2846[_0x55c30e(0x200)])==null?void 0x0:_0x2a6685[_0x4b6032[_0x55c30e(0x1ef)]],_0xfbb9fe=(_0x477ad3=_0x4a2846[_0x55c30e(0x293)])==null?void 0x0:_0x477ad3[_0x5a6da2];return _0x7c3dae==null||_0xfbb9fe==null?[]:[{'row':_0x7c3dae,'col':_0xfbb9fe,'value':_0xa5c32e}];})),_0x3f8fe5=_0x1715a7['flatMap'](_0x49db39=>Object[_0x312129(0x3ee)](_0x49db39['recordPatch']??{})[_0x312129(0x19c)](([_0x1a965b,_0x43ca29])=>{const _0x5714a0=_0x312129;var _0x5b962c;let _0x572706=[...U['record'](_0xebffa0,_0x49db39[_0x5714a0(0x1ef)]),_0x1a965b],_0x544fcf=(_0x5b962c=_0x29c31d['tables'][_0xebffa0])==null||(_0x5b962c=_0x5b962c['records'][_0x49db39[_0x5714a0(0x1ef)]])==null?void 0x0:_0x5b962c[_0x1a965b];return this[_0x5714a0(0x4c4)](_0x572706,_0x544fcf,_0x43ca29);}));return R([this['setRangeValues'](_0x29c31d,_0xebffa0,_0x148013),..._0x3f8fe5]);}[_0x4e663c(0x48e)](_0x4b5676,_0x1ebc5f,_0x2d6912){const _0x1cdbe4=_0x4e663c;let _0x6b190=_0x4b5676[_0x1cdbe4(0x13e)][_0x1ebc5f],_0x49df92=_0x2d6912[_0x1cdbe4(0x361)](_0x2b1335=>or(_0x6b190,_0x2b1335['row'],_0x2b1335['col']))?_0x6b190:L(_0x6b190),_0x389f1a=new Map(),_0x4e1729=_0x2d6912[_0x1cdbe4(0x1fb)](_0x23dbca=>{const _0x5d3a9a=_0x1cdbe4;var _0x172672,_0x2023a1,_0x5b068a,_0x1415f3;let _0x3fe4a0=(_0x172672=_0x49df92[_0x5d3a9a(0x48b)])==null?void 0x0:_0x172672[_0x23dbca[_0x5d3a9a(0x26f)]],_0x4f4160=(_0x2023a1=_0x49df92[_0x5d3a9a(0x2e1)])==null?void 0x0:_0x2023a1[_0x23dbca[_0x5d3a9a(0x302)]],_0x322c6d=_0x3fe4a0?_0x49df92['fields'][_0x3fe4a0]:void 0x0;if(_0x3fe4a0===_0x251017||(_0x322c6d==null?void 0x0:_0x322c6d['type'])===_0x5f310d[_0x5d3a9a(0x44e)])throw Error(_0x5d3a9a(0x48d));let _0x3a8b6a=xt(_0x23dbca[_0x5d3a9a(0x401)],_0x322c6d),_0x185e65=(_0x5b068a=_0x49df92[_0x5d3a9a(0x171)])==null||(_0x5b068a=_0x5b068a[_0x23dbca[_0x5d3a9a(0x302)]])==null?void 0x0:_0x5b068a[_0x23dbca[_0x5d3a9a(0x26f)]],_0x5407a5=this[_0x5d3a9a(0x4c4)](U[_0x5d3a9a(0x171)](_0x1ebc5f,_0x23dbca[_0x5d3a9a(0x302)],_0x23dbca[_0x5d3a9a(0x26f)]),_0x185e65,_0x3a8b6a);if(!_0x3fe4a0||!_0x4f4160)return[_0x5407a5];let _0x29614c=(_0x1415f3=_0x49df92[_0x5d3a9a(0x3f2)][_0x4f4160])==null?void 0x0:_0x1415f3['values'][_0x3fe4a0],_0x20225b=(_0x322c6d==null?void 0x0:_0x322c6d[_0x5d3a9a(0x111)])===_0x5f310d[_0x5d3a9a(0x151)]?kt(_0x23dbca[_0x5d3a9a(0x401)]):wt(_0x23dbca[_0x5d3a9a(0x401)],_0x3a8b6a,_0x322c6d,_0x49df92,_0x4f4160),_0x47a695=[_0x5407a5,this[_0x5d3a9a(0x4c4)](U['cell'](_0x1ebc5f,_0x4f4160,_0x3fe4a0),_0x29614c,_0x20225b)];return(_0x322c6d==null?void 0x0:_0x322c6d[_0x5d3a9a(0x111)])===_0x5f310d[_0x5d3a9a(0x151)]&&_0x389f1a['set'](Et(_0x3fe4a0,_0x4f4160),{'recordId':_0x4f4160,'fieldId':_0x3fe4a0,'attachments':_0x20225b}),_0x47a695;});return _0x4e1729[_0x1cdbe4(0x255)]?R([..._0x4e1729,...this[_0x1cdbe4(0x132)](_0x49df92,_0x1ebc5f,Array[_0x1cdbe4(0x40e)](_0x389f1a[_0x1cdbe4(0x325)]()))]):_0x1ba09c[_0x1cdbe4(0x4ab)]([_0x1cdbe4(0x13e),_0x1ebc5f,'cellData'],_0x49df92['cellData'],_0x49df92[_0x1cdbe4(0x171)]);}['createField'](_0x1450b2,_0x2d9f68,_0x3a0b0a){const _0x2fbbdc=_0x4e663c;let _0x5119c4=_0x1450b2['tables'][_0x2d9f68];if(_0x5119c4[_0x2fbbdc(0x45e)][_0x3a0b0a[_0x2fbbdc(0x163)]['id']]||_0x5119c4[_0x2fbbdc(0x4c0)][_0x2fbbdc(0x176)](_0x3a0b0a[_0x2fbbdc(0x163)]['id']))return _0x1ba09c[_0x2fbbdc(0x4ab)]([_0x2fbbdc(0x13e),_0x2d9f68,_0x2fbbdc(0x4c0)],_0x5119c4[_0x2fbbdc(0x4c0)],_0x5119c4['fieldOrder']);let _0x1fd564=Math[_0x2fbbdc(0x251)](0x1,_0x3a0b0a[_0x2fbbdc(0x455)]??_0x5119c4[_0x2fbbdc(0x4c0)][_0x2fbbdc(0x255)]),_0x1d4400=Object[_0x2fbbdc(0x325)](_0x5119c4[_0x2fbbdc(0x2ac)]??{})[_0x2fbbdc(0x1fb)](_0xaa3a4=>{const _0x53f56e=_0x2fbbdc;var _0x54bfaf;if(!_0xaa3a4[_0x53f56e(0x4c0)]||_0xaa3a4[_0x53f56e(0x4c0)][_0x53f56e(0x176)](_0x3a0b0a['field']['id']))return[];let _0x2dca35=ur(((_0x54bfaf=_0x3a0b0a['viewIndexes'])==null?void 0x0:_0x54bfaf[_0xaa3a4['id']])??_0x1fd564,_0xaa3a4['fieldOrder']['length']);return[_0x1ba09c[_0x53f56e(0x1dc)]([...U['view'](_0x2d9f68,_0xaa3a4['id']),'fieldOrder',_0x2dca35],_0x3a0b0a[_0x53f56e(0x163)]['id'])];});return R([..._0x3a0b0a['field'][_0x2fbbdc(0x111)]===_0x5f310d['Formula']?this[_0x2fbbdc(0x1c0)](_0x1450b2):[],_0x1ba09c['insertOp'](U[_0x2fbbdc(0x163)](_0x2d9f68,_0x3a0b0a[_0x2fbbdc(0x163)]['id']),_0x3a0b0a[_0x2fbbdc(0x163)]),_0x1ba09c[_0x2fbbdc(0x1dc)](U[_0x2fbbdc(0x4c0)](_0x2d9f68,_0x1fd564),_0x3a0b0a['field']['id']),..._0x1d4400]);}[_0x4e663c(0x459)](_0x1f45a5,_0x59607c,_0x34334d,_0x22e52a){const _0xbdc15d=_0x4e663c;let _0x5f15f4=_0x1f45a5[_0xbdc15d(0x13e)][_0x59607c];if(!_0x5f15f4['fields'][_0x34334d]||_0x5f15f4[_0xbdc15d(0x45e)][_0x22e52a[_0xbdc15d(0x163)]['id']]||_0x5f15f4['fieldOrder'][_0xbdc15d(0x176)](_0x22e52a[_0xbdc15d(0x163)]['id']))return _0x1ba09c['replaceOp'](['tables',_0x59607c,_0xbdc15d(0x4c0)],_0x5f15f4[_0xbdc15d(0x4c0)],_0x5f15f4['fieldOrder']);let _0x413d4b=_0x22e52a[_0xbdc15d(0x455)]??_0x5f15f4[_0xbdc15d(0x4c0)][_0xbdc15d(0x137)](_0x34334d)+0x1,_0x2ee585=_0x5f15f4['fieldOrder'][_0xbdc15d(0x20d)](_0x592cc8=>_0x592cc8!==_0x22e52a[_0xbdc15d(0x163)]['id']),_0x580df7=cr(_0x2ee585,_0x22e52a['field']['id'],_0x413d4b),_0x311b81=Object[_0xbdc15d(0x325)](_0x5f15f4[_0xbdc15d(0x2ac)]??{})[_0xbdc15d(0x1fb)](_0x375177=>{const _0x8bbfdc=_0xbdc15d;var _0x24fa79,_0x17c779,_0x25927f,_0x315a30;let _0x18ece2=(_0x24fa79=_0x375177[_0x8bbfdc(0x4c0)])!=null&&_0x24fa79['length']?_0x375177[_0x8bbfdc(0x4c0)]:_0x2ee585;if(_0x18ece2[_0x8bbfdc(0x176)](_0x22e52a[_0x8bbfdc(0x163)]['id']))return[];let _0x7105e=cr(_0x18ece2,_0x22e52a['field']['id'],((_0x17c779=_0x22e52a[_0x8bbfdc(0x39d)])==null?void 0x0:_0x17c779[_0x375177['id']])??_0x413d4b),_0x2dc481=(_0x25927f=_0x375177[_0x8bbfdc(0x180)])==null?void 0x0:_0x25927f[_0x34334d];return[this[_0x8bbfdc(0x4c4)]([...U[_0x8bbfdc(0x155)](_0x59607c,_0x375177['id']),'fieldOrder'],_0x375177[_0x8bbfdc(0x4c0)],_0x7105e),..._0x2dc481?[this[_0x8bbfdc(0x4c4)]([...U[_0x8bbfdc(0x155)](_0x59607c,_0x375177['id']),_0x8bbfdc(0x180),_0x22e52a[_0x8bbfdc(0x163)]['id']],(_0x315a30=_0x375177[_0x8bbfdc(0x180)])==null?void 0x0:_0x315a30[_0x22e52a[_0x8bbfdc(0x163)]['id']],_0x2dc481)]:[]];}),_0x5655b2=Object[_0xbdc15d(0x325)](_0x5f15f4[_0xbdc15d(0x3f2)])['filter'](_0x5dabcc=>Object[_0xbdc15d(0x4a2)][_0xbdc15d(0x236)][_0xbdc15d(0x3bf)](_0x5dabcc[_0xbdc15d(0x325)],_0x34334d))[_0xbdc15d(0x19c)](_0x5f1b5b=>this[_0xbdc15d(0x4c4)](U['cell'](_0x59607c,_0x5f1b5b['id'],_0x22e52a[_0xbdc15d(0x163)]['id']),_0x5f1b5b[_0xbdc15d(0x325)][_0x22e52a[_0xbdc15d(0x163)]['id']],_0x5f1b5b[_0xbdc15d(0x325)][_0x34334d]));return R([..._0x22e52a['field']['type']===_0x5f310d[_0xbdc15d(0x38d)]?this[_0xbdc15d(0x1c0)](_0x1f45a5):[],_0x1ba09c['insertOp'](U['field'](_0x59607c,_0x22e52a[_0xbdc15d(0x163)]['id']),_0x22e52a[_0xbdc15d(0x163)]),_0x1ba09c[_0xbdc15d(0x4ab)](['tables',_0x59607c,_0xbdc15d(0x4c0)],_0x5f15f4[_0xbdc15d(0x4c0)],_0x580df7),..._0x311b81,..._0x5655b2]);}[_0x4e663c(0x190)](_0x2424b0,_0x5c1bec,_0x34e31e,_0x4c2662){const _0x5bf28e=_0x4e663c;let _0x239142=_0x2424b0['tables'][_0x5c1bec]['fields'][_0x34e31e],_0x56d31a={..._0x239142,..._0x4c2662};Object[_0x5bf28e(0x467)](_0x4c2662)[_0x5bf28e(0x29f)](_0x4cfd02=>{_0x4c2662[_0x4cfd02]===void 0x0&&delete _0x56d31a[_0x4cfd02];});let _0x55e96a=er(_0x2424b0[_0x5bf28e(0x13e)][_0x5c1bec],_0x34e31e,_0x239142,_0x56d31a);_0x56d31a=_0x55e96a['field'];let _0x83dd3b=_0x1ba09c[_0x5bf28e(0x4ab)](U['field'](_0x5c1bec,_0x34e31e),_0x239142,_0x56d31a);return _0x56d31a[_0x5bf28e(0x111)]===_0x5f310d[_0x5bf28e(0x38d)]?R([...this['_materializeFormulaTableNames'](_0x2424b0),_0x83dd3b,...this[_0x5bf28e(0x259)](_0x2424b0,_0x5c1bec,_0x34e31e,_0x56d31a)]):R([_0x83dd3b,..._0x55e96a[_0x5bf28e(0x2ee)]['length']?[this['setRangeValues'](_0x2424b0,_0x5c1bec,_0x55e96a[_0x5bf28e(0x2ee)])]:[]]);}[_0x4e663c(0x222)](_0x146892,_0x44dc6a,_0x3b9238,_0x44b0d9){return this['updateField'](_0x146892,_0x44dc6a,_0x3b9238,_0x44b0d9);}['deleteField'](_0x38287e,_0x3e4cbf,_0x2210e1){const _0xc045b6=_0x4e663c;let _0x42abb7=_0x38287e[_0xc045b6(0x13e)][_0x3e4cbf];if(!(_0x42abb7!=null&&_0x42abb7[_0xc045b6(0x45e)][_0x2210e1])||_0x42abb7[_0xc045b6(0x210)]===_0x2210e1||_0x2210e1===_0x251017)return _0x1ba09c[_0xc045b6(0x4ab)](['tables',_0x3e4cbf,_0xc045b6(0x4c0)],_0x42abb7==null?void 0x0:_0x42abb7[_0xc045b6(0x4c0)],_0x42abb7==null?void 0x0:_0x42abb7[_0xc045b6(0x4c0)]);let _0x22d87e=_0x42abb7[_0xc045b6(0x4c0)][_0xc045b6(0x137)](_0x2210e1),_0x55bb14=Object[_0xc045b6(0x325)](_0x42abb7[_0xc045b6(0x2ac)])[_0xc045b6(0x1fb)](_0x1e39d8=>{const _0x397b20=_0xc045b6;var _0x48549c,_0x1ff15f,_0x57f9f1,_0x534cab,_0x54a9cf,_0xbe9f54,_0x160f14;let _0x1e2547=[],_0x56b0e6=((_0x48549c=_0x1e39d8[_0x397b20(0x4c0)])==null?void 0x0:_0x48549c[_0x397b20(0x137)](_0x2210e1))??-0x1;_0x56b0e6>=0x0&&_0x1e2547[_0x397b20(0x25c)](_0x1ba09c['removeOp']([...U['view'](_0x3e4cbf,_0x1e39d8['id']),'fieldOrder',_0x56b0e6],_0x2210e1));let _0x35edde=(_0x1ff15f=_0x1e39d8[_0x397b20(0x180)])==null?void 0x0:_0x1ff15f[_0x2210e1];_0x35edde!==void 0x0&&_0x1e2547[_0x397b20(0x25c)](_0x1ba09c[_0x397b20(0x397)]([...U[_0x397b20(0x155)](_0x3e4cbf,_0x1e39d8['id']),_0x397b20(0x180),_0x2210e1],_0x35edde));let _0x57e43f=_0x1e39d8[_0x397b20(0x20d)]?{..._0x1e39d8[_0x397b20(0x20d)],'conditions':_0x1e39d8['filter'][_0x397b20(0x495)][_0x397b20(0x20d)](_0x782baf=>_0x782baf[_0x397b20(0x2be)]!==_0x2210e1)}:_0x1e39d8[_0x397b20(0x20d)];_0x57e43f&&_0x57e43f[_0x397b20(0x495)][_0x397b20(0x255)]!==((_0x57f9f1=_0x1e39d8[_0x397b20(0x20d)])==null?void 0x0:_0x57f9f1[_0x397b20(0x495)]['length'])&&_0x1e2547[_0x397b20(0x25c)](this[_0x397b20(0x4c4)]([...U[_0x397b20(0x155)](_0x3e4cbf,_0x1e39d8['id']),_0x397b20(0x20d)],_0x1e39d8[_0x397b20(0x20d)],_0x57e43f));let _0x23b9e7=(_0x534cab=_0x1e39d8['sort'])==null?void 0x0:_0x534cab['filter'](_0xc2f716=>_0xc2f716[_0x397b20(0x2be)]!==_0x2210e1);_0x23b9e7&&_0x23b9e7[_0x397b20(0x255)]!==((_0x54a9cf=_0x1e39d8[_0x397b20(0x3db)])==null?void 0x0:_0x54a9cf[_0x397b20(0x255)])&&_0x1e2547[_0x397b20(0x25c)](this[_0x397b20(0x4c4)]([...U[_0x397b20(0x155)](_0x3e4cbf,_0x1e39d8['id']),_0x397b20(0x3db)],_0x1e39d8[_0x397b20(0x3db)],_0x23b9e7));let _0x6b3ea5=(_0xbe9f54=_0x1e39d8['group'])==null?void 0x0:_0xbe9f54[_0x397b20(0x20d)](_0x3f7875=>_0x3f7875[_0x397b20(0x2be)]!==_0x2210e1);_0x6b3ea5&&_0x6b3ea5[_0x397b20(0x255)]!==((_0x160f14=_0x1e39d8[_0x397b20(0x29d)])==null?void 0x0:_0x160f14['length'])&&_0x1e2547[_0x397b20(0x25c)](this[_0x397b20(0x4c4)]([...U[_0x397b20(0x155)](_0x3e4cbf,_0x1e39d8['id']),_0x397b20(0x29d)],_0x1e39d8[_0x397b20(0x29d)],_0x6b3ea5));let _0x54c845=lr(_0x1e39d8[_0x397b20(0x2c4)],_0x2210e1);return JSON[_0x397b20(0x1ff)](_0x54c845)!==JSON[_0x397b20(0x1ff)](_0x1e39d8[_0x397b20(0x2c4)])&&_0x1e2547[_0x397b20(0x25c)](_0x1ba09c['replaceOp']([...U[_0x397b20(0x155)](_0x3e4cbf,_0x1e39d8['id']),_0x397b20(0x2c4)],_0x1e39d8[_0x397b20(0x2c4)],_0x54c845)),_0x1e2547;}),_0x55469d=Object[_0xc045b6(0x325)](_0x42abb7[_0xc045b6(0x3f2)])[_0xc045b6(0x1fb)](_0xeb566e=>Object['prototype'][_0xc045b6(0x236)][_0xc045b6(0x3bf)](_0xeb566e[_0xc045b6(0x325)],_0x2210e1)?[_0x1ba09c[_0xc045b6(0x397)](U[_0xc045b6(0x1a2)](_0x3e4cbf,_0xeb566e['id'],_0x2210e1),_0xeb566e[_0xc045b6(0x325)][_0x2210e1])]:[]);return R([_0x1ba09c['removeOp'](U['field'](_0x3e4cbf,_0x2210e1),_0x42abb7[_0xc045b6(0x45e)][_0x2210e1]),_0x1ba09c['removeOp'](U[_0xc045b6(0x4c0)](_0x3e4cbf,_0x22d87e),_0x2210e1),..._0x55bb14,..._0x55469d,...this[_0xc045b6(0x1b4)](_0x42abb7,_0x3e4cbf,_0x190d82=>_0x190d82[_0xc045b6(0x29a)](_0x2210e1+'\x1f'))]);}[_0x4e663c(0x114)](_0x45a87f,_0x396b49,_0x2a548e,_0x360778){const _0xc8d053=_0x4e663c;let _0x23cc5e=_0x45a87f[_0xc8d053(0x13e)][_0x396b49][_0xc8d053(0x4c0)];if(_0x2a548e===_0x251017||_0x360778[_0xc8d053(0x244)]===_0x251017)throw Error(_0xc8d053(0x2db));let _0x366222=sr(_0x23cc5e,_0x2a548e,_0x360778);return _0x1ba09c[_0xc8d053(0x4ab)]([_0xc8d053(0x13e),_0x396b49,'fieldOrder'],_0x23cc5e,_0x366222);}[_0x4e663c(0x1bd)](_0x4b3d82,_0xd6642d,_0x151d87,_0x1cea41=_0x4b3d82[_0x4e663c(0x13e)][_0xd6642d][_0x4e663c(0x4cb)]['length']){const _0x321a26=_0x4e663c;return R([_0x1ba09c[_0x321a26(0x1dc)](U['view'](_0xd6642d,_0x151d87['id']),_0x151d87),_0x1ba09c[_0x321a26(0x1dc)](['tables',_0xd6642d,'viewOrder',_0x1cea41],_0x151d87['id'])]);}[_0x4e663c(0x2c3)](_0x5947bc,_0x5cdcc0,_0x3be678,_0xbe21d9){const _0x55dcab=_0x4e663c;return _0x1ba09c[_0x55dcab(0x4ab)]([...U[_0x55dcab(0x155)](_0x5cdcc0,_0x3be678),_0x55dcab(0x269)],_0x5947bc[_0x55dcab(0x13e)][_0x5cdcc0][_0x55dcab(0x2ac)][_0x3be678]['name'],_0xbe21d9);}[_0x4e663c(0x4c6)](_0x1fa762,_0x3fe4c9,_0x4ba1f2){const _0x96ec96=_0x4e663c;let _0x51b235=_0x1fa762[_0x96ec96(0x13e)][_0x3fe4c9],_0x301ed1=_0x51b235[_0x96ec96(0x2ac)][_0x4ba1f2],_0x233bd0=_0x51b235[_0x96ec96(0x4cb)][_0x96ec96(0x137)](_0x4ba1f2);return R([_0x1ba09c[_0x96ec96(0x397)](U[_0x96ec96(0x155)](_0x3fe4c9,_0x4ba1f2),_0x301ed1),_0x1ba09c[_0x96ec96(0x397)]([_0x96ec96(0x13e),_0x3fe4c9,_0x96ec96(0x4cb),_0x233bd0],_0x4ba1f2)]);}[_0x4e663c(0x471)](_0x251faa,_0x50b9db,_0x2e0ea5,_0x33723d){const _0x11ef62=_0x4e663c;let _0x1dd34e=_0x251faa[_0x11ef62(0x13e)][_0x50b9db][_0x11ef62(0x4cb)],_0x51752b=sr(_0x1dd34e,_0x2e0ea5,{'beforeFieldId':_0x33723d['beforeViewId'],'afterFieldId':_0x33723d['afterViewId']});return _0x1ba09c[_0x11ef62(0x4ab)]([_0x11ef62(0x13e),_0x50b9db,'viewOrder'],_0x1dd34e,_0x51752b);}[_0x4e663c(0x2dd)](_0x436a32,_0x35ecf7,_0x3a1dad,_0x4503e7){const _0x456aac=_0x4e663c;let _0x2f2b7b=_0x436a32[_0x456aac(0x13e)][_0x35ecf7][_0x456aac(0x2ac)][_0x3a1dad][_0x456aac(0x2c4)]??{},_0x29d3af={..._0x2f2b7b,..._0x4503e7};return Object[_0x456aac(0x467)](_0x4503e7)[_0x456aac(0x29f)](_0x1c863a=>{_0x4503e7[_0x1c863a]===void 0x0&&delete _0x29d3af[_0x1c863a];}),_0x1ba09c[_0x456aac(0x4ab)]([...U[_0x456aac(0x155)](_0x35ecf7,_0x3a1dad),_0x456aac(0x2c4)],_0x2f2b7b,_0x29d3af);}[_0x4e663c(0x341)](_0x38c25f,_0x35b56f,_0x5a89c8,_0x5ec72a){const _0x408d2f=_0x4e663c;return this[_0x408d2f(0x4c4)]([...U[_0x408d2f(0x155)](_0x35b56f,_0x5a89c8),_0x408d2f(0x20d)],_0x38c25f[_0x408d2f(0x13e)][_0x35b56f][_0x408d2f(0x2ac)][_0x5a89c8][_0x408d2f(0x20d)],_0x5ec72a);}['setViewSort'](_0x48822a,_0x35de72,_0x3007eb,_0xaba02a){const _0xbd2f77=_0x4e663c;return this[_0xbd2f77(0x4c4)]([...U[_0xbd2f77(0x155)](_0x35de72,_0x3007eb),'sort'],_0x48822a[_0xbd2f77(0x13e)][_0x35de72][_0xbd2f77(0x2ac)][_0x3007eb]['sort'],_0xaba02a);}['setViewGroup'](_0x57b899,_0x222525,_0x2370ed,_0x2b2686){const _0x2c03ea=_0x4e663c;return this[_0x2c03ea(0x4c4)]([...U['view'](_0x222525,_0x2370ed),_0x2c03ea(0x29d)],_0x57b899[_0x2c03ea(0x13e)][_0x222525][_0x2c03ea(0x2ac)][_0x2370ed]['group'],_0x2b2686);}[_0x4e663c(0x31e)](_0x2116c9,_0x2b5495,_0x46ba02,_0xf3b7b9,_0x12166a){const _0x58602c=_0x4e663c;return this[_0x58602c(0x1e8)](_0x2116c9,_0x2b5495,_0x46ba02,_0xf3b7b9,{'hidden':!_0x12166a});}['setViewFieldWidth'](_0x23e2ae,_0x511695,_0x24f95f,_0x5ca0f0,_0x36028d){return this['_setViewFieldSetting'](_0x23e2ae,_0x511695,_0x24f95f,_0x5ca0f0,{'width':_0x36028d});}[_0x4e663c(0x18a)](_0x27ced4,_0xbcc945,_0x1b0821,_0x4fa88c,_0xde733a){const _0x47f0a0=_0x4e663c;let _0x54e19e=_0x27ced4[_0x47f0a0(0x13e)][_0xbcc945]['views'][_0x1b0821],_0x49a8c9=sr(_0x54e19e[_0x47f0a0(0x4c0)]??_0x27ced4[_0x47f0a0(0x13e)][_0xbcc945]['fieldOrder'],_0x4fa88c,_0xde733a);return this[_0x47f0a0(0x4c4)]([...U[_0x47f0a0(0x155)](_0xbcc945,_0x1b0821),_0x47f0a0(0x4c0)],_0x54e19e[_0x47f0a0(0x4c0)],_0x49a8c9);}[_0x4e663c(0x1e8)](_0x296804,_0x1aa57a,_0x4fcb32,_0x243da2,_0x30ff0a){const _0x588ea1=_0x4e663c;let _0x388c53=_0x296804[_0x588ea1(0x13e)][_0x1aa57a][_0x588ea1(0x2ac)][_0x4fcb32][_0x588ea1(0x180)]??{},_0x478454={..._0x388c53,[_0x243da2]:{..._0x388c53[_0x243da2],..._0x30ff0a}};return this['_replaceOptional']([...U[_0x588ea1(0x155)](_0x1aa57a,_0x4fcb32),_0x588ea1(0x180)],_0x296804[_0x588ea1(0x13e)][_0x1aa57a]['views'][_0x4fcb32][_0x588ea1(0x180)],_0x478454);}[_0x4e663c(0x167)](_0x4aff6f,_0x3a7218,_0x4bea61){const _0x3accd7=_0x4e663c;let _0x293348=_0x4aff6f[_0x3accd7(0x13e)][_0x3a7218],_0x73d92d=new Set(_0x4bea61[_0x3accd7(0x19c)](_0x428a34=>_0x428a34['id'])),_0x45e6f3=[...Object['values'](_0x293348['records'])['filter'](_0x1e5fb4=>!_0x73d92d[_0x3accd7(0x19e)](_0x1e5fb4['id'])),..._0x4bea61]['sort']((_0x21674f,_0x51d024)=>String(_0x21674f[_0x3accd7(0x1b7)]??_0x21674f['id'])[_0x3accd7(0x3f7)](String(_0x51d024['orderKey']??_0x51d024['id'])))['map'](_0x33149f=>_0x33149f['id']),_0x3b2d55=[...U[_0x3accd7(0x291)](_0x3a7218),_0x3accd7(0x36b)];return _0x293348[_0x3accd7(0x36b)]?_0x1ba09c['replaceOp'](_0x3b2d55,_0x293348[_0x3accd7(0x36b)],_0x45e6f3):_0x1ba09c[_0x3accd7(0x1dc)](_0x3b2d55,_0x45e6f3);}[_0x4e663c(0x1c0)](_0x3d8538,_0x494867=new Set()){const _0x558eee=_0x4e663c;let _0x4950bd=_0x3e0263(_0x3d8538);return Object[_0x558eee(0x325)](_0x3d8538[_0x558eee(0x13e)])[_0x558eee(0x20d)](_0x4d16b3=>!_0x494867[_0x558eee(0x19e)](_0x4d16b3['id']))[_0x558eee(0x3db)]((_0xe9c4b,_0xae3732)=>_0xe9c4b['id'][_0x558eee(0x3f7)](_0xae3732['id']))['flatMap'](_0x371515=>{const _0x3292f4=_0x558eee;let _0xabb5fe=_0x4950bd['get'](_0x371515['id']);return!_0xabb5fe||_0x371515[_0x3292f4(0x2c7)]===_0xabb5fe?[]:[this['_replaceOptional']([...U['table'](_0x371515['id']),_0x3292f4(0x2c7)],_0x371515['formulaName'],_0xabb5fe)];});}[_0x4e663c(0x259)](_0x1f1144,_0x504463,_0x4f75a1,_0x385a5b){const _0xa1cc0c=_0x4e663c;var _0x2f09ec,_0x110bc2;let _0x144aa4=L(_0x1f1144[_0xa1cc0c(0x13e)][_0x504463]),_0x3a4cbe=String(((_0x2f09ec=_0x385a5b[_0xa1cc0c(0x2c4)])==null?void 0x0:_0x2f09ec[_0xa1cc0c(0x489)])??'')[_0xa1cc0c(0x319)](),_0x146b06=(_0x110bc2=_0x144aa4[_0xa1cc0c(0x293)])==null?void 0x0:_0x110bc2[_0x4f75a1];if(_0x146b06==null)return[];let _0x2925ab=_0x144aa4[_0xa1cc0c(0x36b)]??Object['keys'](_0x144aa4[_0xa1cc0c(0x3f2)]),_0x4b9f69=_0x2925ab['map'](_0x58bfd2=>{const _0x2572ba=_0xa1cc0c;var _0x377925;return(_0x377925=_0x144aa4[_0x2572ba(0x200)])==null?void 0x0:_0x377925[_0x58bfd2];})[_0xa1cc0c(0x143)](_0xdef545=>_0xdef545!=null);return _0x2925ab[_0xa1cc0c(0x1fb)](_0x253680=>{const _0x2bd06c=_0xa1cc0c;var _0x3b4abe,_0x1b8a8e;let _0x196d1c=(_0x3b4abe=_0x144aa4['rowIndex'])==null?void 0x0:_0x3b4abe[_0x253680];if(_0x196d1c==null)return[];let _0x164fba=(_0x1b8a8e=_0x144aa4[_0x2bd06c(0x171)])==null||(_0x1b8a8e=_0x1b8a8e[_0x196d1c])==null?void 0x0:_0x1b8a8e[_0x146b06],_0x389686=_0x3a4cbe?_0x196d1c===_0x4b9f69?{'f':_0x3a4cbe,'si':_0x4f75a1}:{'si':_0x4f75a1}:{'v':null,'t':null};return[this['_replaceOptional'](U[_0x2bd06c(0x171)](_0x504463,_0x196d1c,_0x146b06),_0x164fba,_0x389686)];});}[_0x4e663c(0x132)](_0x245fc8,_0x32781d,_0x2a35d1){const _0x41a972=_0x4e663c;var _0x198423;let _0x17d1a7=new Map(Object['entries'](((_0x198423=_0x245fc8['resources'])==null?void 0x0:_0x198423[_0x41a972(0x289)])??{})),_0x55e16d=new Map(),_0x33bea4=new Set(),_0x38def0=_0x2a35d1[_0x41a972(0x19c)](({recordId:_0x552f83,fieldId:_0x4971e5,attachments:_0x18af9a})=>{const _0x34d2a7=_0x41a972;var _0x36b2d1;let _0x2ee6dd=Et(_0x4971e5,_0x552f83),_0x494157=_0x18af9a[_0x34d2a7(0x19c)]((_0xee12d9,_0x32b95a)=>String(_0xee12d9['id']??_0x2ee6dd+'\x1f'+_0x32b95a));return _0x33bea4[_0x34d2a7(0x133)](_0x2ee6dd),_0x17d1a7['set'](_0x2ee6dd,_0x494157),_0x18af9a[_0x34d2a7(0x29f)]((_0x5d4f70,_0xba388c)=>{const _0x32fec7=_0x34d2a7;let _0x837044=_0x494157[_0xba388c];_0x55e16d[_0x32fec7(0x233)](_0x837044,{..._0x5d4f70,'id':_0x837044});}),this[_0x34d2a7(0x4c4)](U[_0x34d2a7(0x139)](_0x32781d,_0x2ee6dd),(_0x36b2d1=_0x245fc8[_0x34d2a7(0x2e4)])==null||(_0x36b2d1=_0x36b2d1[_0x34d2a7(0x289)])==null?void 0x0:_0x36b2d1[_0x2ee6dd],_0x494157);}),_0x416b89=Array[_0x41a972(0x40e)](_0x55e16d)['map'](([_0x3fedae,_0x4a1297])=>{const _0x3d4452=_0x41a972;var _0x4ee487;return this['_replaceOptional'](U['attachment'](_0x32781d,_0x3fedae),(_0x4ee487=_0x245fc8[_0x3d4452(0x2e4)])==null||(_0x4ee487=_0x4ee487[_0x3d4452(0x2ff)])==null?void 0x0:_0x4ee487[_0x3fedae],_0x4a1297);}),_0x37c0a1=new Set(Array[_0x41a972(0x40e)](_0x17d1a7[_0x41a972(0x325)]())[_0x41a972(0x231)]()),_0x5df70a=new Set(Array[_0x41a972(0x40e)](_0x33bea4)[_0x41a972(0x1fb)](_0x387425=>{const _0x52ce95=_0x41a972;var _0x31fdcc;return((_0x31fdcc=_0x245fc8[_0x52ce95(0x2e4)])==null||(_0x31fdcc=_0x31fdcc[_0x52ce95(0x289)])==null?void 0x0:_0x31fdcc[_0x387425])??[];})),_0x1cde4c=Array['from'](_0x5df70a)[_0x41a972(0x1fb)](_0x577822=>{const _0x324dfe=_0x41a972;var _0x304414;let _0x52dd79=(_0x304414=_0x245fc8[_0x324dfe(0x2e4)])==null||(_0x304414=_0x304414[_0x324dfe(0x2ff)])==null?void 0x0:_0x304414[_0x577822];return _0x52dd79!==void 0x0&&!_0x37c0a1[_0x324dfe(0x19e)](_0x577822)?[_0x1ba09c['removeOp'](U['attachment'](_0x32781d,_0x577822),_0x52dd79)]:[];});return[..._0x38def0,..._0x416b89,..._0x1cde4c];}['_deleteAttachmentResources'](_0x1750be,_0xaee163,_0x3a3923){const _0x1a63cd=_0x4e663c;var _0x21276a;let _0x549ba9=((_0x21276a=_0x1750be[_0x1a63cd(0x2e4)])==null?void 0x0:_0x21276a[_0x1a63cd(0x289)])??{},_0x4b97eb=Object[_0x1a63cd(0x3ee)](_0x549ba9)['filter'](([_0x33bcb3])=>_0x3a3923(_0x33bcb3));if(!_0x4b97eb['length'])return[];let _0x2c4984=new Set(Object[_0x1a63cd(0x3ee)](_0x549ba9)['filter'](([_0x2dc5c3])=>!_0x3a3923(_0x2dc5c3))['flatMap'](([,_0x837062])=>_0x837062)),_0x18a149=new Set(_0x4b97eb[_0x1a63cd(0x1fb)](([,_0x29c89b])=>_0x29c89b));return[..._0x4b97eb[_0x1a63cd(0x19c)](([_0x45e2b6,_0x2fbf91])=>_0x1ba09c[_0x1a63cd(0x397)](U['attachmentSet'](_0xaee163,_0x45e2b6),_0x2fbf91)),...Array['from'](_0x18a149)[_0x1a63cd(0x1fb)](_0x449011=>{const _0x1441bc=_0x1a63cd;var _0x1a0620;let _0x111a47=(_0x1a0620=_0x1750be[_0x1441bc(0x2e4)])==null||(_0x1a0620=_0x1a0620['attachments'])==null?void 0x0:_0x1a0620[_0x449011];return _0x111a47!==void 0x0&&!_0x2c4984['has'](_0x449011)?[_0x1ba09c[_0x1441bc(0x397)](U[_0x1441bc(0x1c6)](_0xaee163,_0x449011),_0x111a47)]:[];})];}[_0x4e663c(0x4c4)](_0x69651,_0x36ede0,_0x579863){return _0x36ede0===void 0x0?_0x1ba09c['insertOp'](_0x69651,_0x579863):_0x1ba09c['replaceOp'](_0x69651,_0x36ede0,_0x579863);}};function er(_0x42283c,_0x187c3b,_0x3308e4,_0x5d9c89){const _0xe70e21=_0x4e663c;var _0x2409d2;let _0x10a67b=_0x5d9c89[_0xe70e21(0x111)];if(_0x3308e4[_0xe70e21(0x111)]!==_0x10a67b||_0x10a67b!==_0x5f310d[_0xe70e21(0x1d9)]&&_0x10a67b!==_0x5f310d[_0xe70e21(0x3b2)]||tr(_0x5d9c89[_0xe70e21(0x2c4)][_0xe70e21(0x347)]))return{'field':_0x5d9c89,'patches':[]};let _0x5da26b=nr(_0x3308e4),_0x593611=nr(_0x5d9c89);if(![..._0x5da26b][_0xe70e21(0x48c)](_0x12f30a=>!_0x593611['has'](_0x12f30a)))return{'field':_0x5d9c89,'patches':[]};let _0x43534c=rr(_0x5d9c89[_0xe70e21(0x38a)],_0x593611,_0x10a67b),_0x7e4e5c=ir(_0x43534c,_0x5d9c89[_0xe70e21(0x38a)])?_0x5d9c89:{..._0x5d9c89,'defaultValue':_0x43534c},_0xe3e96d=L(_0x42283c),_0x4a72ac=(_0x2409d2=_0xe3e96d[_0xe70e21(0x293)])==null?void 0x0:_0x2409d2[_0x187c3b];return _0x4a72ac==null?{'field':_0x7e4e5c,'patches':[]}:{'field':_0x7e4e5c,'patches':(_0xe3e96d[_0xe70e21(0x36b)]??[])[_0xe70e21(0x1fb)](_0x581cf7=>{const _0x5490ec=_0xe70e21;var _0x4ca1fb,_0x59a701;let _0x36ecc8=(_0x4ca1fb=_0xe3e96d[_0x5490ec(0x200)])==null?void 0x0:_0x4ca1fb[_0x581cf7],_0x5e5f1e=(_0x59a701=_0xe3e96d[_0x5490ec(0x3f2)][_0x581cf7])==null?void 0x0:_0x59a701[_0x5490ec(0x325)][_0x187c3b],_0x31881c=rr(_0x5e5f1e,_0x593611,_0x10a67b);return _0x36ecc8==null||ir(_0x31881c,_0x5e5f1e)?[]:[{'row':_0x36ecc8,'col':_0x4a72ac,'value':_0x31881c??null}];})};}function tr(_0xe41c8){const _0x5f1010=_0x4e663c;return typeof _0xe41c8==_0x5f1010(0x37c)&&!!_0xe41c8&&_0x5f1010(0x111)in _0xe41c8&&_0xe41c8['type']===_0x5f1010(0x163);}function nr(_0x276436){const _0x5aa82f=_0x4e663c;var _0x2e7bab;let _0x53070b=Array[_0x5aa82f(0x454)]((_0x2e7bab=_0x276436['config'])==null?void 0x0:_0x2e7bab[_0x5aa82f(0x17f)])?_0x276436[_0x5aa82f(0x2c4)][_0x5aa82f(0x17f)]:[];return new Set(_0x53070b[_0x5aa82f(0x1fb)](_0x36a97e=>{const _0x15b7c0=_0x5aa82f;if(!_0x36a97e||typeof _0x36a97e!=_0x15b7c0(0x37c)||!('id'in _0x36a97e))return[];let _0x42aca8=String(_0x36a97e['id']);return _0x42aca8?[_0x42aca8]:[];}));}function rr(_0x2a5a84,_0x9df8ff,_0x581764){const _0x321942=_0x4e663c;if(_0x2a5a84==null||_0x2a5a84==='')return _0x2a5a84;if(_0x581764===_0x5f310d['SingleSelect'])return _0x9df8ff['has'](String(_0x2a5a84))?_0x2a5a84:null;let _0x5a2a8c=Array[_0x321942(0x454)](_0x2a5a84)?_0x2a5a84[_0x321942(0x19c)](String):String(_0x2a5a84)[_0x321942(0x161)](',')['map'](_0x47e0d6=>_0x47e0d6['trim']())[_0x321942(0x20d)](Boolean),_0xd5e2f8=_0x5a2a8c[_0x321942(0x20d)](_0x5123b1=>_0x9df8ff[_0x321942(0x19e)](_0x5123b1));return _0xd5e2f8['length']===_0x5a2a8c[_0x321942(0x255)]?_0x2a5a84:Array[_0x321942(0x454)](_0x2a5a84)?_0xd5e2f8:String(_0x2a5a84)[_0x321942(0x176)](',')?_0xd5e2f8[_0x321942(0x2e9)](','):_0xd5e2f8[0x0]??[];}function ir(_0x1f3d7b,_0xd5bd2a){const _0x18ce81=_0x4e663c;return JSON['stringify'](_0x1f3d7b)===JSON[_0x18ce81(0x1ff)](_0xd5bd2a);}function ar(_0x2dc5a4,_0x3e45b9,_0x284801){const _0x140e65=_0x4e663c;var _0x336e7e,_0x2737a3,_0x52da77,_0x5aa785;let _0x23c65b=(_0x336e7e=_0x2dc5a4[_0x140e65(0x200)])==null?void 0x0:_0x336e7e[_0x3e45b9],_0x577763=(_0x2737a3=_0x2dc5a4[_0x140e65(0x293)])==null?void 0x0:_0x2737a3[_0x284801];return _0x23c65b!=null&&_0x577763!=null&&((_0x52da77=_0x2dc5a4[_0x140e65(0x2e1)])==null?void 0x0:_0x52da77[_0x23c65b])===_0x3e45b9&&((_0x5aa785=_0x2dc5a4[_0x140e65(0x48b)])==null?void 0x0:_0x5aa785[_0x577763])===_0x284801&&_0x2dc5a4['cellData']!=null;}function or(_0x190676,_0x529a45,_0x34fce0){const _0x4b3519=_0x4e663c;var _0x109e30,_0x27cbca;return((_0x109e30=_0x190676[_0x4b3519(0x2e1)])==null?void 0x0:_0x109e30[_0x529a45])!=null&&((_0x27cbca=_0x190676['colId'])==null?void 0x0:_0x27cbca[_0x34fce0])!=null&&_0x190676[_0x4b3519(0x171)]!=null;}function sr(_0x289191,_0x2a20dd,_0x5a6c0c){const _0x5e0fcf=_0x4e663c;let _0x55a2f5=_0x289191[_0x5e0fcf(0x20d)](_0x312880=>_0x312880!==_0x2a20dd),_0x57283f=_0x5a6c0c[_0x5e0fcf(0x244)]?_0x55a2f5[_0x5e0fcf(0x137)](_0x5a6c0c[_0x5e0fcf(0x244)]):_0x5a6c0c['afterFieldId']?_0x55a2f5[_0x5e0fcf(0x137)](_0x5a6c0c[_0x5e0fcf(0x1e4)])+0x1:_0x55a2f5[_0x5e0fcf(0x255)];return _0x55a2f5[_0x5e0fcf(0x2ad)](_0x57283f<0x0?_0x55a2f5[_0x5e0fcf(0x255)]:_0x57283f,0x0,_0x2a20dd),_0x55a2f5;}function cr(_0x57fb64,_0x4e9b13,_0x26f595){const _0xf2ffe3=_0x4e663c;let _0x3da3b2=_0x57fb64[_0xf2ffe3(0x20d)](_0x29df4c=>_0x29df4c!==_0x4e9b13);return _0x3da3b2[_0xf2ffe3(0x2ad)](ur(_0x26f595,_0x3da3b2['length']),0x0,_0x4e9b13),_0x3da3b2;}function lr(_0x1ad996,_0x53c5a8,_0x5dbb53){const _0x192dbc=_0x4e663c;if(Array[_0x192dbc(0x454)](_0x1ad996))return _0x5dbb53===_0x192dbc(0x2c5)?_0x1ad996[_0x192dbc(0x20d)](_0x2b565f=>_0x2b565f!==_0x53c5a8):_0x1ad996[_0x192dbc(0x1fb)](_0x2662e7=>{const _0x576e16=_0x192dbc;if(_0x2662e7&&typeof _0x2662e7==_0x576e16(0x37c)&&!Array[_0x576e16(0x454)](_0x2662e7)&&_0x2662e7[_0x576e16(0x2be)]===_0x53c5a8)return[];let _0x103717=lr(_0x2662e7,_0x53c5a8);return _0x103717===void 0x0?[]:[_0x103717];});if(!_0x1ad996||typeof _0x1ad996!=_0x192dbc(0x37c))return _0x5dbb53!=null&&_0x5dbb53[_0x192dbc(0x3a8)](_0x192dbc(0x2cb))&&_0x1ad996===_0x53c5a8?void 0x0:_0x1ad996;let _0x1ea565=_0x1ad996;if(_0x1ea565[_0x192dbc(0x2be)]!==_0x53c5a8)return Object[_0x192dbc(0x147)](Object['entries'](_0x1ea565)['flatMap'](([_0x4eb514,_0x25ec25])=>{const _0x1d5365=_0x192dbc;if(_0x4eb514===_0x53c5a8&&_0x5dbb53===_0x1d5365(0x180))return[];let _0x428a87=lr(_0x25ec25,_0x53c5a8,_0x4eb514);return _0x428a87===void 0x0?[]:[[_0x4eb514,_0x428a87]];}));}function ur(_0x30fcea,_0x1c4d26){const _0xd95645=_0x4e663c;return Math['max'](0x0,Math[_0xd95645(0x34c)](_0x30fcea,_0x1c4d26));}function dr(_0x2e4579){'@babel/helpers - typeof';const _0x43762c=_0x4e663c;return dr=typeof Symbol==_0x43762c(0x3eb)&&typeof Symbol[_0x43762c(0x228)]=='symbol'?function(_0x557730){return typeof _0x557730;}:function(_0xbb8913){const _0x258599=_0x43762c;return _0xbb8913&&typeof Symbol==_0x258599(0x3eb)&&_0xbb8913['constructor']===Symbol&&_0xbb8913!==Symbol[_0x258599(0x4a2)]?_0x258599(0x14f):typeof _0xbb8913;},dr(_0x2e4579);}function fr(_0x4d6963,_0x314994){const _0x3de514=_0x4e663c;if(dr(_0x4d6963)!=_0x3de514(0x37c)||!_0x4d6963)return _0x4d6963;var _0x455a81=_0x4d6963[Symbol[_0x3de514(0x145)]];if(_0x455a81!==void 0x0){var _0x2108a1=_0x455a81[_0x3de514(0x3bf)](_0x4d6963,_0x314994||_0x3de514(0x2f4));if(dr(_0x2108a1)!='object')return _0x2108a1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x314994==='string'?String:Number)(_0x4d6963);}function pr(_0x461979){const _0x3ff101=_0x4e663c;var _0x1cdfc9=fr(_0x461979,_0x3ff101(0x432));return dr(_0x1cdfc9)==_0x3ff101(0x14f)?_0x1cdfc9:_0x1cdfc9+'';}function G(_0x54a629,_0x2095ad,_0x1191a5){const _0x5c075d=_0x4e663c;return(_0x2095ad=pr(_0x2095ad))in _0x54a629?Object[_0x5c075d(0x475)](_0x54a629,_0x2095ad,{'value':_0x1191a5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54a629[_0x2095ad]=_0x1191a5,_0x54a629;}const mr=_0x55d87a(_0x4e663c(0x23f));var hr=class extends _0x528c5b{constructor(..._0xd475af){const _0x28f7db=_0x4e663c;super(..._0xd475af),G(this,_0x28f7db(0x156),new Map());}[_0x4e663c(0x2bb)](_0x499051){const _0x258cc8=_0x4e663c;return this['_plugins'][_0x258cc8(0x233)](_0x499051[_0x258cc8(0x111)],_0x499051),_0x1b91c9(()=>this[_0x258cc8(0x156)][_0x258cc8(0x1f1)](_0x499051[_0x258cc8(0x111)]));}[_0x4e663c(0x1f4)](_0x14cabd){const _0x3402d4=_0x4e663c;let _0x19bf33=this[_0x3402d4(0x156)][_0x3402d4(0x1f4)](_0x14cabd);if(!_0x19bf33)throw Error(_0x3402d4(0x1c1)+_0x14cabd+_0x3402d4(0x1e7));return _0x19bf33;}['getTypePlugin'](_0x3d68dd){const _0x313f11=_0x4e663c;return this[_0x313f11(0x156)][_0x313f11(0x1f4)](_0x3d68dd);}[_0x4e663c(0x363)](){const _0x968364=_0x4e663c;return Array[_0x968364(0x40e)](this['_plugins'][_0x968364(0x325)]());}},gr=class{constructor(_0x222a70){const _0x417c37=_0x4e663c;this[_0x417c37(0x2a9)]=_0x222a70,G(this,_0x417c37(0x111),_0x127560['Base']),G(this,_0x417c37(0x321),_0x3e9bc5['Comment']),G(this,_0x417c37(0x33e),_0x4f2371['INIT']),G(this,'id',void 0x0),G(this,_0x417c37(0x401),!0x0),this['id']=this[_0x417c37(0x111)]+'.'+this[_0x417c37(0x321)]+'_'+_0x222a70;}},_r=class{constructor(_0x4eab19){const _0x1ccf2b=_0x4e663c;this['unitId']=_0x4eab19,G(this,_0x1ccf2b(0x111),_0x127560['Base']),G(this,'subType',_0x3e9bc5[_0x1ccf2b(0x197)]),G(this,'status',_0x4f2371['INIT']),G(this,'id',void 0x0),G(this,_0x1ccf2b(0x401),!0x0),this['id']=this[_0x1ccf2b(0x111)]+'.'+this[_0x1ccf2b(0x321)]+'_'+_0x4eab19;}},vr=class{constructor(_0x261a16){const _0x1ebf7a=_0x4e663c;this[_0x1ebf7a(0x2a9)]=_0x261a16,G(this,_0x1ebf7a(0x111),_0x127560['Base']),G(this,'subType',_0x3e9bc5[_0x1ebf7a(0x3a5)]),G(this,_0x1ebf7a(0x33e),_0x4f2371[_0x1ebf7a(0x1b8)]),G(this,'id',void 0x0),G(this,_0x1ebf7a(0x401),!0x0),this['id']=this[_0x1ebf7a(0x111)]+'.'+this[_0x1ebf7a(0x321)]+'_'+_0x261a16;}},yr=class{constructor(_0x5c93b0){const _0xe27c30=_0x4e663c;this[_0xe27c30(0x2a9)]=_0x5c93b0,G(this,'type',_0x127560['Base']),G(this,_0xe27c30(0x321),_0x3e9bc5[_0xe27c30(0x278)]),G(this,'status',_0x4f2371['INIT']),G(this,'id',void 0x0),G(this,_0xe27c30(0x401),!0x0),this['id']=this['type']+'.'+this[_0xe27c30(0x321)]+'_'+_0x5c93b0;}},br=class{constructor(_0xb2cca1,_0x310a13){const _0xb8dc5e=_0x4e663c;this['unitId']=_0xb2cca1,this['objectId']=_0x310a13,G(this,_0xb8dc5e(0x111),_0x127560[_0xb8dc5e(0x273)]),G(this,_0xb8dc5e(0x321),_0x3e9bc5[_0xb8dc5e(0x3a5)]),G(this,_0xb8dc5e(0x33e),_0x4f2371[_0xb8dc5e(0x1b8)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0xb8dc5e(0x111)]+'.'+this[_0xb8dc5e(0x321)]+'_'+_0xb2cca1+'_'+_0x310a13;}},xr=class{constructor(_0x59f9db,_0x439b9e){const _0x17cb6e=_0x4e663c;this['unitId']=_0x59f9db,this[_0x17cb6e(0x331)]=_0x439b9e,G(this,_0x17cb6e(0x111),_0x127560[_0x17cb6e(0x37f)]),G(this,'subType',_0x3e9bc5[_0x17cb6e(0x3a5)]),G(this,_0x17cb6e(0x33e),_0x4f2371['INIT']),G(this,'id',void 0x0),G(this,_0x17cb6e(0x401),!0x0),this['id']=this['type']+'.'+this[_0x17cb6e(0x321)]+'_'+_0x59f9db+'_'+_0x439b9e;}},Sr=class{constructor(_0x1b3b8e,_0x5c6827){const _0x329900=_0x4e663c;this[_0x329900(0x2a9)]=_0x1b3b8e,this['objectId']=_0x5c6827,G(this,_0x329900(0x111),_0x127560[_0x329900(0x43a)]),G(this,_0x329900(0x321),_0x3e9bc5['Edit']),G(this,_0x329900(0x33e),_0x4f2371[_0x329900(0x1b8)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x329900(0x111)]+'.'+this[_0x329900(0x321)]+'_'+_0x1b3b8e+'_'+_0x5c6827;}},Cr=class{constructor(_0x16af55,_0x59ff4c){const _0x439056=_0x4e663c;this[_0x439056(0x2a9)]=_0x16af55,this[_0x439056(0x331)]=_0x59ff4c,G(this,_0x439056(0x111),_0x127560[_0x439056(0x204)]),G(this,'subType',_0x3e9bc5[_0x439056(0x3a5)]),G(this,_0x439056(0x33e),_0x4f2371[_0x439056(0x1b8)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x439056(0x321)]+'_'+_0x16af55+'_'+_0x59ff4c;}},wr=class{constructor(_0x1f5b52,_0x1612db){const _0x35fd1e=_0x4e663c;this[_0x35fd1e(0x2a9)]=_0x1f5b52,this[_0x35fd1e(0x331)]=_0x1612db,G(this,_0x35fd1e(0x111),_0x127560[_0x35fd1e(0x207)]),G(this,_0x35fd1e(0x321),_0x3e9bc5[_0x35fd1e(0x3a5)]),G(this,_0x35fd1e(0x33e),_0x4f2371[_0x35fd1e(0x1b8)]),G(this,'id',void 0x0),G(this,_0x35fd1e(0x401),!0x0),this['id']=this[_0x35fd1e(0x111)]+'.'+this[_0x35fd1e(0x321)]+'_'+_0x1f5b52+'_'+_0x1612db;}};const Tr=[_0x3e9bc5[_0x4e663c(0x3a5)],_0x3e9bc5['Copy'],_0x3e9bc5[_0x4e663c(0x278)],_0x3e9bc5[_0x4e663c(0x27f)]],Er=new Set([_0x127560[_0x4e663c(0x2e8)],_0x127560['BaseTable'],_0x127560[_0x4e663c(0x37f)],_0x127560[_0x4e663c(0x43a)],_0x127560['BaseView'],_0x127560['BaseDashboard']]),Dr=_0x4e663c(0x464),Or=_0x4e663c(0x15a),kr='record/',Ar=_0x4e663c(0x211),jr='dashboard/';function K(_0x4802c0){return''+Dr+encodeURIComponent(_0x4802c0);}function q(_0x1f2ae0,_0x31e2f7){return''+Or+encodeURIComponent(_0x1f2ae0)+'/'+encodeURIComponent(_0x31e2f7);}function J(_0xc0295c,_0x2901cb){return''+kr+encodeURIComponent(_0xc0295c)+'/'+encodeURIComponent(_0x2901cb);}function Mr(_0x574ef1,_0x12d86d){return''+Ar+encodeURIComponent(_0x574ef1)+'/'+encodeURIComponent(_0x12d86d);}function Nr(_0x1f5468){return''+jr+encodeURIComponent(_0x1f5468);}function Pr(_0x4e2275,_0x990c6f,_0x4a6330){const _0x3af393=_0x4e663c;if(_0x990c6f===_0x4e2275)switch(_0x4a6330){case _0x3e9bc5[_0x3af393(0x3a5)]:return new vr(_0x4e2275);case _0x3e9bc5[_0x3af393(0x197)]:return new _r(_0x4e2275);case _0x3e9bc5['Export']:return new yr(_0x4e2275);case _0x3e9bc5[_0x3af393(0x27f)]:return new gr(_0x4e2275);default:throw Error(_0x3af393(0x3df)+_0x4a6330);}if(_0x4a6330!==_0x3e9bc5['Edit'])throw Error(_0x3af393(0x344)+_0x990c6f);if(_0x990c6f[_0x3af393(0x29a)](Dr))return new Cr(_0x4e2275,_0x990c6f);if(_0x990c6f[_0x3af393(0x29a)](Or))return new xr(_0x4e2275,_0x990c6f);if(_0x990c6f[_0x3af393(0x29a)](kr))return new Sr(_0x4e2275,_0x990c6f);if(_0x990c6f[_0x3af393(0x29a)](Ar))return new wr(_0x4e2275,_0x990c6f);if(_0x990c6f[_0x3af393(0x29a)](jr))return new br(_0x4e2275,_0x990c6f);throw Error(_0x3af393(0x148)+_0x990c6f);}function Fr(_0x7fe935,_0x247c89,_0x222ad2,_0x5b2602){const _0x33d0d7=_0x4e663c;var _0x1bd9ba;return((_0x1bd9ba=_0x7fe935[_0x33d0d7(0x3a0)](Pr(_0x247c89,_0x222ad2,_0x5b2602)['id']))==null?void 0x0:_0x1bd9ba[_0x33d0d7(0x401)])??!0x0;}function Ir(_0x1e6c73,_0x355e44,_0x5119b8,_0x268d51,_0x562082){const _0x5e3922=_0x4e663c;let _0x5b409f=Pr(_0x355e44,_0x5119b8,_0x268d51);_0x1e6c73['getPermissionPoint'](_0x5b409f['id'])||_0x1e6c73[_0x5e3922(0x1bf)](_0x5b409f),_0x1e6c73['updatePermissionPoint'](_0x5b409f['id'],_0x562082);}function Lr(_0x3585c8,_0x313c61,_0x16e851,_0xd6cb1e){const _0x120964=_0x4e663c;_0x3585c8[_0x120964(0x366)](Pr(_0x313c61,_0x16e851,_0xd6cb1e)['id']);}function Rr(_0x49739b,_0x446323){const _0x501359=_0x4e663c;_0x49739b[_0x501359(0x332)]()['forEach']((_0x5d7eae,_0x5f45f8)=>{const _0x3e9a7e=_0x501359;_0x5d7eae[_0x3e9a7e(0x238)](_0x2d2f23=>{const _0x581a89=_0x3e9a7e;Er['has'](_0x2d2f23[_0x581a89(0x111)])&&_0x581a89(0x2a9)in _0x2d2f23&&_0x2d2f23['unitId']===_0x446323&&_0x49739b[_0x581a89(0x366)](_0x5f45f8);})[_0x3e9a7e(0x340)]();});}function zr(_0x5ca646,_0x1c77d9,_0x5d7d17){const _0x5a8a6c=_0x4e663c;return Fr(_0x5ca646,_0x1c77d9,_0x1c77d9,_0x3e9bc5[_0x5a8a6c(0x3a5)])&&Array[_0x5a8a6c(0x40e)](_0x5d7d17)['every'](_0x2060d0=>Fr(_0x5ca646,_0x1c77d9,_0x2060d0,_0x3e9bc5[_0x5a8a6c(0x3a5)]));}function Y(_0x455824,_0x332f21){return function(_0xd03e5c,_0x5d3ecc){_0x332f21(_0xd03e5c,_0x5d3ecc,_0x455824);};}function X(_0x7d4ffd,_0x2ec381,_0x106fc5,_0x26e4e2){const _0x58830a=_0x4e663c;var _0x34664e=arguments[_0x58830a(0x255)],_0x381787=_0x34664e<0x3?_0x2ec381:_0x26e4e2===null?_0x26e4e2=Object['getOwnPropertyDescriptor'](_0x2ec381,_0x106fc5):_0x26e4e2,_0x7f7974;if(typeof Reflect==_0x58830a(0x37c)&&typeof Reflect[_0x58830a(0x1a6)]==_0x58830a(0x3eb))_0x381787=Reflect[_0x58830a(0x1a6)](_0x7d4ffd,_0x2ec381,_0x106fc5,_0x26e4e2);else{for(var _0x374b5f=_0x7d4ffd[_0x58830a(0x255)]-0x1;_0x374b5f>=0x0;_0x374b5f--)(_0x7f7974=_0x7d4ffd[_0x374b5f])&&(_0x381787=(_0x34664e<0x3?_0x7f7974(_0x381787):_0x34664e>0x3?_0x7f7974(_0x2ec381,_0x106fc5,_0x381787):_0x7f7974(_0x2ec381,_0x106fc5))||_0x381787);}return _0x34664e>0x3&&_0x381787&&Object[_0x58830a(0x475)](_0x2ec381,_0x106fc5,_0x381787),_0x381787;}const Br=_0x55d87a(_0x4e663c(0x274));let Vr=class extends _0x528c5b{constructor(_0x3c7ed2,_0x1820ad){const _0x2e1e3b=_0x4e663c;super(),this[_0x2e1e3b(0x11f)]=_0x3c7ed2,this['_instanceService']=_0x1820ad,G(this,_0x2e1e3b(0x3f4),new Map()),G(this,_0x2e1e3b(0x14b),new Map()),G(this,_0x2e1e3b(0x466),new Map()),G(this,'_recordPermissions',new Map()),G(this,'_viewPermissions',new Map()),G(this,_0x2e1e3b(0x18c),new Map()),this[_0x2e1e3b(0x4d0)](this[_0x2e1e3b(0x3fd)][_0x2e1e3b(0x18f)](_0x2f51c2['UNIVER_BASE'])[_0x2e1e3b(0x238)](_0x2532cd=>this[_0x2e1e3b(0x1df)](_0x2532cd[_0x2e1e3b(0x16e)]())));}['canCreateTable'](_0x3b3936){const _0x1f519b=_0x4e663c;var _0x533a6c;return this[_0x1f519b(0x4ad)](_0x3b3936,[])&&(((_0x533a6c=this[_0x1f519b(0x3f4)][_0x1f519b(0x1f4)](_0x3b3936))==null?void 0x0:_0x533a6c[_0x1f519b(0x487)])??!0x0);}[_0x4e663c(0x35e)](_0x1af2c0){const _0x491767=_0x4e663c;return this[_0x491767(0x2a8)](_0x1af2c0);}[_0x4e663c(0x1b1)](_0x45312){const _0x3dd2c4=_0x4e663c;var _0xe4c087;return this[_0x3dd2c4(0x2a8)](_0x45312)&&(((_0xe4c087=this[_0x3dd2c4(0x14b)][_0x3dd2c4(0x1f4)](_0x45312))==null?void 0x0:_0xe4c087[_0x3dd2c4(0x1f1)])??!0x0);}['canCreateField'](_0x220950){const _0x3e5564=_0x4e663c;var _0x4763bc;return this[_0x3e5564(0x2a8)](_0x220950)&&(((_0x4763bc=this[_0x3e5564(0x14b)][_0x3e5564(0x1f4)](_0x220950))==null?void 0x0:_0x4763bc[_0x3e5564(0x229)])??!0x0);}[_0x4e663c(0x141)](_0x594c84,_0x5c1ee3){const _0x4818a5=_0x4e663c;var _0x2b2bbe;return this[_0x4818a5(0x2a8)](_0x594c84)&&this[_0x4818a5(0x4ad)](_0x594c84,[q(_0x594c84,_0x5c1ee3)])&&(((_0x2b2bbe=this[_0x4818a5(0x466)]['get'](Ur(_0x594c84,_0x5c1ee3)))==null?void 0x0:_0x2b2bbe[_0x4818a5(0x41a)])??!0x0);}[_0x4e663c(0x2b2)](_0x4be2e6,_0x419634){const _0x278d11=_0x4e663c;var _0xfeef05;return this['canEditField'](_0x4be2e6,_0x419634)&&(((_0xfeef05=this['_fieldPermissions'][_0x278d11(0x1f4)](Ur(_0x4be2e6,_0x419634)))==null?void 0x0:_0xfeef05[_0x278d11(0x1f1)])??!0x0);}['canCreateRecord'](_0x5ca72e){const _0x2c8f12=_0x4e663c;var _0x1cc37b;return this[_0x2c8f12(0x2a8)](_0x5ca72e)&&(((_0x1cc37b=this[_0x2c8f12(0x14b)][_0x2c8f12(0x1f4)](_0x5ca72e))==null?void 0x0:_0x1cc37b[_0x2c8f12(0x4be)])??!0x0);}[_0x4e663c(0x146)](_0x15c144,_0x12fe79){const _0x3f585c=_0x4e663c;var _0x58ddeb;let _0x300c3d=this[_0x3f585c(0x34f)][_0x3f585c(0x1f4)](Wr(_0x15c144,_0x12fe79));return this[_0x3f585c(0x4ad)](_0x15c144,[K(_0x15c144),J(_0x15c144,_0x12fe79)])&&(((_0x58ddeb=this[_0x3f585c(0x14b)][_0x3f585c(0x1f4)](_0x15c144))==null?void 0x0:_0x58ddeb[_0x3f585c(0x41a)])??!0x0)&&((_0x300c3d==null?void 0x0:_0x300c3d[_0x3f585c(0x41a)])??!0x0)&&((_0x300c3d==null?void 0x0:_0x300c3d[_0x3f585c(0x26c)])??!0x0);}['canDeleteRecord'](_0xc279d1,_0x1ebabd){const _0x2a5a79=_0x4e663c;var _0x16cc30,_0x5b9f33,_0x7646f6;return this[_0x2a5a79(0x4ad)](_0xc279d1,[K(_0xc279d1),J(_0xc279d1,_0x1ebabd)])&&(((_0x16cc30=this[_0x2a5a79(0x14b)][_0x2a5a79(0x1f4)](_0xc279d1))==null?void 0x0:_0x16cc30[_0x2a5a79(0x41a)])??!0x0)&&(((_0x5b9f33=this['_recordPermissions'][_0x2a5a79(0x1f4)](Wr(_0xc279d1,_0x1ebabd)))==null?void 0x0:_0x5b9f33[_0x2a5a79(0x41a)])??!0x0)&&(((_0x7646f6=this['_recordPermissions'][_0x2a5a79(0x1f4)](Wr(_0xc279d1,_0x1ebabd)))==null?void 0x0:_0x7646f6[_0x2a5a79(0x1f1)])??!0x0);}['canEditCell'](_0x50cec1,_0x42a0a3,_0x1922e5){const _0x2f7277=_0x4e663c;var _0x4fd186,_0x110615,_0x322eb6;let _0x17f2d9=this[_0x2f7277(0x466)]['get'](Ur(_0x50cec1,_0x1922e5));return this['_canEdit'](_0x50cec1,[K(_0x50cec1),q(_0x50cec1,_0x1922e5),J(_0x50cec1,_0x42a0a3)])&&(((_0x4fd186=this[_0x2f7277(0x14b)]['get'](_0x50cec1))==null?void 0x0:_0x4fd186[_0x2f7277(0x41a)])??!0x0)&&(((_0x110615=this[_0x2f7277(0x34f)][_0x2f7277(0x1f4)](Wr(_0x50cec1,_0x42a0a3)))==null?void 0x0:_0x110615['edit'])??!0x0)&&(((_0x322eb6=this[_0x2f7277(0x34f)]['get'](Wr(_0x50cec1,_0x42a0a3)))==null?void 0x0:_0x322eb6[_0x2f7277(0x26c)])??!0x0)&&((_0x17f2d9==null?void 0x0:_0x17f2d9[_0x2f7277(0x41a)])??!0x0)&&((_0x17f2d9==null?void 0x0:_0x17f2d9['editCell'])??!0x0);}[_0x4e663c(0x4c8)](_0x5e7686,_0x5cf9c6){const _0x3e9590=_0x4e663c;var _0x3e8178,_0x1ccc97,_0x463550;return this[_0x3e9590(0x4ad)](_0x5e7686,[K(_0x5e7686),Mr(_0x5e7686,_0x5cf9c6)])&&(((_0x3e8178=this['_tablePermissions'][_0x3e9590(0x1f4)](_0x5e7686))==null?void 0x0:_0x3e8178[_0x3e9590(0x41a)])??!0x0)&&(((_0x1ccc97=this[_0x3e9590(0x485)][_0x3e9590(0x1f4)](Gr(_0x5e7686,_0x5cf9c6)))==null?void 0x0:_0x1ccc97[_0x3e9590(0x41a)])??!0x0)&&(((_0x463550=this[_0x3e9590(0x14b)][_0x3e9590(0x1f4)](_0x5e7686))==null?void 0x0:_0x463550[_0x3e9590(0x166)])??!0x0);}[_0x4e663c(0x232)](_0x287b80,_0x4c607f){const _0x528c9d=_0x4e663c;this[_0x528c9d(0x3f4)][_0x528c9d(0x233)](_0x287b80,{...this[_0x528c9d(0x3f4)]['get'](_0x287b80),..._0x4c607f}),_0x4c607f[_0x528c9d(0x41a)]!==void 0x0&&Ir(this[_0x528c9d(0x11f)],_0x287b80,_0x287b80,_0x3e9bc5[_0x528c9d(0x3a5)],_0x4c607f[_0x528c9d(0x41a)]);}[_0x4e663c(0x4a3)](_0x4a44b5,_0x51cfaf){const _0x546223=_0x4e663c;this['_rememberTable'](_0x4a44b5),this[_0x546223(0x14b)][_0x546223(0x233)](_0x4a44b5,{...this[_0x546223(0x14b)][_0x546223(0x1f4)](_0x4a44b5),..._0x51cfaf}),this[_0x546223(0x3f3)](_0x4a44b5,K(_0x4a44b5),_0x51cfaf['edit']);}[_0x4e663c(0x296)](_0x14f958,_0x2debf5,_0x5b532b){const _0xda59cd=_0x4e663c;this[_0xda59cd(0x35d)](_0x14f958);let _0x2a9eb9=Ur(_0x14f958,_0x2debf5);this[_0xda59cd(0x466)][_0xda59cd(0x233)](_0x2a9eb9,{...this[_0xda59cd(0x466)][_0xda59cd(0x1f4)](_0x2a9eb9),..._0x5b532b}),this[_0xda59cd(0x3f3)](_0x14f958,q(_0x14f958,_0x2debf5),_0x5b532b['edit']);}[_0x4e663c(0x313)](_0x1c20fe,_0x43a93d,_0x131721){const _0x4a5e2d=_0x4e663c;this[_0x4a5e2d(0x35d)](_0x1c20fe);let _0x55abd5=Wr(_0x1c20fe,_0x43a93d);this[_0x4a5e2d(0x34f)][_0x4a5e2d(0x233)](_0x55abd5,{...this['_recordPermissions'][_0x4a5e2d(0x1f4)](_0x55abd5),..._0x131721}),this[_0x4a5e2d(0x3f3)](_0x1c20fe,J(_0x1c20fe,_0x43a93d),_0x131721[_0x4a5e2d(0x41a)]);}[_0x4e663c(0x20e)](_0x234829,_0x2374b8,_0x544265){const _0x57747e=_0x4e663c;this[_0x57747e(0x35d)](_0x234829);let _0x20958e=Gr(_0x234829,_0x2374b8);this[_0x57747e(0x485)][_0x57747e(0x233)](_0x20958e,{...this[_0x57747e(0x485)][_0x57747e(0x1f4)](_0x20958e),..._0x544265}),this[_0x57747e(0x3f3)](_0x234829,Mr(_0x234829,_0x2374b8),_0x544265[_0x57747e(0x41a)]);}[_0x4e663c(0x3d5)](_0x56fbed){const _0x301b5c=_0x4e663c;this[_0x301b5c(0x3f4)][_0x301b5c(0x1f1)](_0x56fbed),Lr(this['_permissionService'],_0x56fbed,_0x56fbed,_0x3e9bc5[_0x301b5c(0x3a5)]);}[_0x4e663c(0x3e8)](_0x5c1216){const _0x160e7c=_0x4e663c;this['_tablePermissions'][_0x160e7c(0x1f1)](_0x5c1216),this[_0x160e7c(0x117)](_0x5c1216,K(_0x5c1216));}[_0x4e663c(0x474)](_0x57b29f,_0x5cacb9){const _0x16ca32=_0x4e663c;this[_0x16ca32(0x466)][_0x16ca32(0x1f1)](Ur(_0x57b29f,_0x5cacb9)),this[_0x16ca32(0x117)](_0x57b29f,q(_0x57b29f,_0x5cacb9));}['clearRecordPermission'](_0xf746bb,_0x5954b6){const _0x437cb6=_0x4e663c;this[_0x437cb6(0x34f)][_0x437cb6(0x1f1)](Wr(_0xf746bb,_0x5954b6)),this[_0x437cb6(0x117)](_0xf746bb,J(_0xf746bb,_0x5954b6));}[_0x4e663c(0x413)](_0x148f34,_0x13683b){const _0x579a4c=_0x4e663c;this[_0x579a4c(0x485)][_0x579a4c(0x1f1)](Gr(_0x148f34,_0x13683b)),this[_0x579a4c(0x117)](_0x148f34,Mr(_0x148f34,_0x13683b));}[_0x4e663c(0x12c)](){const _0x13d077=_0x4e663c;return{'bases':Object[_0x13d077(0x147)](this[_0x13d077(0x3f4)]),'tables':Object[_0x13d077(0x147)](this[_0x13d077(0x14b)]),'fields':Object[_0x13d077(0x147)](this[_0x13d077(0x466)]),'records':Object[_0x13d077(0x147)](this[_0x13d077(0x34f)]),'views':Object[_0x13d077(0x147)](this[_0x13d077(0x485)])};}['_canEditTable'](_0x30bdec){const _0x4b417f=_0x4e663c;var _0x1a0723;return this['_canEdit'](_0x30bdec,[K(_0x30bdec)])&&(((_0x1a0723=this[_0x4b417f(0x14b)][_0x4b417f(0x1f4)](_0x30bdec))==null?void 0x0:_0x1a0723[_0x4b417f(0x41a)])??!0x0);}['_canEdit'](_0x1b0d63,_0x51fc57){const _0x9cfb93=_0x4e663c;var _0x2b67df;let _0x3264e6=this['_resolveBaseId'](_0x1b0d63);return!_0x3264e6||zr(this[_0x9cfb93(0x11f)],_0x3264e6,_0x51fc57)&&(((_0x2b67df=this[_0x9cfb93(0x3f4)]['get'](_0x3264e6))==null?void 0x0:_0x2b67df[_0x9cfb93(0x41a)])??!0x0);}[_0x4e663c(0x3f3)](_0x39957a,_0x25d0dd,_0x481528){const _0x2b77ef=_0x4e663c;if(_0x481528===void 0x0)return;let _0x1a56c1=this[_0x2b77ef(0x433)](_0x39957a);_0x1a56c1&&Ir(this[_0x2b77ef(0x11f)],_0x1a56c1,_0x25d0dd,_0x3e9bc5[_0x2b77ef(0x3a5)],_0x481528);}[_0x4e663c(0x117)](_0x458a05,_0x4c47a1){const _0x4599e2=_0x4e663c;let _0x814763=this[_0x4599e2(0x433)](_0x458a05);_0x814763&&Lr(this[_0x4599e2(0x11f)],_0x814763,_0x4c47a1,_0x3e9bc5['Edit']);}[_0x4e663c(0x433)](_0x32ae73){const _0x187dab=_0x4e663c;var _0x21914b;let _0x20f0df=this['_instanceService'][_0x187dab(0x403)](_0x32ae73,_0x2f51c2[_0x187dab(0x1e3)]);return _0x20f0df?_0x20f0df['getUnitId']():(_0x21914b=this[_0x187dab(0x3fd)][_0x187dab(0x422)](_0x2f51c2[_0x187dab(0x1e3)])['find'](_0x5b5455=>!!_0x5b5455[_0x187dab(0x12c)]()[_0x187dab(0x13e)][_0x32ae73]))==null?void 0x0:_0x21914b[_0x187dab(0x16e)]();}[_0x4e663c(0x35d)](_0x29c163){const _0x140742=_0x4e663c;let _0x4d8776=this[_0x140742(0x433)](_0x29c163);_0x4d8776&&this['_tableBaseIds'][_0x140742(0x233)](_0x29c163,_0x4d8776);}['_clearUnit'](_0xc8a406){const _0x27f194=_0x4e663c;this[_0x27f194(0x3f4)][_0x27f194(0x1f1)](_0xc8a406),this[_0x27f194(0x18c)]['forEach']((_0x335fd9,_0x57abe8)=>{const _0x2425a4=_0x27f194;_0x335fd9===_0xc8a406&&(this['_tablePermissions'][_0x2425a4(0x1f1)](_0x57abe8),Hr(this[_0x2425a4(0x466)],_0x57abe8+'\x1f'),Hr(this[_0x2425a4(0x34f)],_0x57abe8+'\x1f'),Hr(this[_0x2425a4(0x485)],_0x57abe8+'\x1f'),this[_0x2425a4(0x18c)][_0x2425a4(0x1f1)](_0x57abe8));});}};Vr=X([Y(0x0,_0x515a1d),Y(0x1,_0x31ecdb)],Vr);function Hr(_0x57c1be,_0x54087a){const _0x5aa860=_0x4e663c;_0x57c1be[_0x5aa860(0x29f)]((_0x5020a6,_0x3ecea3)=>{const _0x3c0dac=_0x5aa860;_0x3ecea3[_0x3c0dac(0x29a)](_0x54087a)&&_0x57c1be[_0x3c0dac(0x1f1)](_0x3ecea3);});}function Ur(_0x1ec26f,_0x5d3772){return _0x1ec26f+'\x1f'+_0x5d3772;}function Wr(_0x41733b,_0x44235f){return _0x41733b+'\x1f'+_0x44235f;}function _0x4619(_0x305e2b,_0xf3e32c){_0x305e2b=_0x305e2b-0x10e;const _0x4de65b=_0x4de6();let _0x461940=_0x4de65b[_0x305e2b];return _0x461940;}function Gr(_0x641b43,_0x2fc36b){return _0x641b43+'\x1f'+_0x2fc36b;}const Kr=_0x55d87a(_0x4e663c(0x334));let qr=class{constructor(_0x5910a1,_0x10fe3f=Jr(),_0x14263d={}){const _0x36993e=_0x4e663c;this[_0x36993e(0x11f)]=_0x5910a1,this[_0x36993e(0x13f)]=_0x10fe3f,this[_0x36993e(0x4b2)]=_0x14263d,G(this,_0x36993e(0x1d8),new W()),G(this,_0x36993e(0x1d6),new z());}[_0x4e663c(0x487)](_0x59ab14,_0x37f65e,_0x823b21){const _0x2826d8=_0x4e663c;if(!this[_0x2826d8(0x11f)]['canCreateTable'](_0x59ab14[_0x2826d8(0x16e)]()))throw Error(_0x2826d8(0x1b6));_0x3a5a33(_0x37f65e),this['_apply'](_0x59ab14,this['_factory'][_0x2826d8(0x487)](_0x59ab14[_0x2826d8(0x12c)](),_0x37f65e,_0x823b21));}[_0x4e663c(0x112)](_0x9f342d,_0x117787,_0x555efd){const _0x1e71b6=_0x4e663c;if(!this[_0x1e71b6(0x11f)][_0x1e71b6(0x35e)](_0x117787))throw Error(_0x1e71b6(0x420));this[_0x1e71b6(0x3cb)](_0x9f342d,this[_0x1e71b6(0x1d8)][_0x1e71b6(0x112)](_0x9f342d[_0x1e71b6(0x12c)](),_0x117787,_0x555efd));}[_0x4e663c(0x2bd)](_0x2fb3c6,_0xaf3f1b){const _0x19c17a=_0x4e663c;if(!this['_permissionService'][_0x19c17a(0x1b1)](_0xaf3f1b))throw Error(_0x19c17a(0x43c));let _0x489e12=He(_0x2fb3c6[_0x19c17a(0x12c)](),_0xaf3f1b);if(_0x489e12[_0x19c17a(0x255)]>0x0)throw Error(_0x19c17a(0x318)+_0x489e12[_0x19c17a(0x19c)](_0x168a6c=>_0x168a6c[_0x19c17a(0x3a6)]+'.'+_0x168a6c[_0x19c17a(0x2be)])[_0x19c17a(0x2e9)](',\x20')+').');this['_apply'](_0x2fb3c6,this[_0x19c17a(0x1d8)][_0x19c17a(0x2bd)](_0x2fb3c6['getSnapshot'](),_0xaf3f1b));}[_0x4e663c(0x446)](_0x11dc62,_0x1d6e83,_0x154009,_0x117edb,_0x145d48){const _0x3aca35=_0x4e663c;this[_0x3aca35(0x3cb)](_0x11dc62,this[_0x3aca35(0x436)](_0x11dc62,_0x1d6e83,_0x154009,_0x117edb,_0x145d48));}[_0x4e663c(0x4c9)](_0x90f0a5,_0x304165,_0x394bf){const _0x1998a2=_0x4e663c;this[_0x1998a2(0x3cb)](_0x90f0a5,this['createSetRecordValuesOp'](_0x90f0a5,_0x304165,_0x394bf));}['createRecord'](_0x5939cc,_0x40848d,_0x1af138){const _0x42a8a2=_0x4e663c;this[_0x42a8a2(0x3cb)](_0x5939cc,this[_0x42a8a2(0x4cf)](_0x5939cc,_0x40848d,_0x1af138));}['createUpdateCellOp'](_0x571e2a,_0x402a60,_0x128591,_0x1f05cc,_0x568d31){const _0x32f6d6=_0x4e663c;let _0x295c72=_0x571e2a[_0x32f6d6(0x12c)](),_0x58d04c=this[_0x32f6d6(0x335)](_0x295c72,_0x402a60,_0x128591,_0x1f05cc,_0x568d31),_0x35453e=this[_0x32f6d6(0x4d1)](_0x295c72,_0x402a60,_0x128591,{[_0x1f05cc]:_0x58d04c});return this[_0x32f6d6(0x1d8)][_0x32f6d6(0x4c9)](_0x295c72,_0x402a60,[_0x35453e]);}[_0x4e663c(0x253)](_0x3f3f63,_0x2de704,_0x2455b1){const _0x21d187=_0x4e663c;let _0x4b5c94=_0x3f3f63['getSnapshot'](),_0x51cd79=_0x2455b1['map'](_0x539c8b=>this[_0x21d187(0x4d1)](_0x4b5c94,_0x2de704,_0x539c8b[_0x21d187(0x1ef)],{...Object['fromEntries'](Object['entries'](_0x539c8b[_0x21d187(0x325)])['map'](([_0x462ccd,_0x1d89f7])=>[_0x462ccd,this[_0x21d187(0x335)](_0x4b5c94,_0x2de704,_0x539c8b['recordId'],_0x462ccd,_0x1d89f7)]))}));return this[_0x21d187(0x1d8)][_0x21d187(0x4c9)](_0x4b5c94,_0x2de704,_0x51cd79);}[_0x4e663c(0x4cf)](_0x45dd97,_0xa9e660,_0x534193){const _0x5ca672=_0x4e663c;if(!this[_0x5ca672(0x11f)][_0x5ca672(0x2fe)](_0xa9e660))throw Error(_0x5ca672(0x477));let _0x4a83c3=_0x45dd97[_0x5ca672(0x12c)](),_0x229d3c=this[_0x5ca672(0x178)](_0x4a83c3[_0x5ca672(0x13e)][_0xa9e660]);return this[_0x5ca672(0x1d8)][_0x5ca672(0x4be)](_0x4a83c3,_0xa9e660,this[_0x5ca672(0x1ba)](_0x4a83c3,_0xa9e660,_0x534193,_0x229d3c));}['createBatchCreateRecordsOp'](_0x5e58a4,_0x3a28a8,_0x3c8916){const _0x136f03=_0x4e663c;if(!this['_permissionService'][_0x136f03(0x2fe)](_0x3a28a8))throw Error(_0x136f03(0x477));let _0x323885=_0x5e58a4[_0x136f03(0x12c)]();return I(_0x136f03(0x315),()=>{const _0x3aaa0d=_0x136f03;let _0x5144d4=this['_createNumberingAllocators'](_0x323885['tables'][_0x3a28a8]);return this[_0x3aaa0d(0x1d8)][_0x3aaa0d(0x442)](_0x323885,_0x3a28a8,_0x3c8916['map'](_0x11c88d=>this[_0x3aaa0d(0x1ba)](_0x323885,_0x3a28a8,_0x11c88d,_0x5144d4)));},{'existingRecords':Object['keys'](_0x323885[_0x136f03(0x13e)][_0x3a28a8][_0x136f03(0x3f2)])['length'],'records':_0x3c8916['length']});}[_0x4e663c(0x32e)](_0xa18048,_0x2e92e6,_0x1f0d53,_0x110e9f,_0x47d3a1){const _0x3463dc=_0x4e663c;if(!this['_permissionService'][_0x3463dc(0x1bc)](_0x2e92e6))throw Error(_0x3463dc(0x3cf));let _0x54032d=_0xa18048['getSnapshot']();if(this[_0x3463dc(0x2c9)](_0x54032d,_0x1f0d53),_0x110e9f===0x0)throw Error(_0x3463dc(0x118));let _0x299086=this[_0x3463dc(0x1d8)][_0x3463dc(0x229)](_0x54032d,_0x2e92e6,{'field':_0x1f0d53,'index':_0x110e9f,'viewIndexes':_0x47d3a1}),_0x4e6d81=this[_0x3463dc(0x351)](_0x54032d,_0x2e92e6,_0x1f0d53);if(!_0x4e6d81[_0x3463dc(0x255)])return _0x299086;let _0x1026ef=this[_0x3463dc(0x1d6)]['applyOp'](_0x54032d,_0x299086);return R([_0x299086,this[_0x3463dc(0x1d8)]['setRecordValues'](_0x1026ef,_0x2e92e6,_0x4e6d81)]);}[_0x4e663c(0x14d)](_0x12f224,_0x10a46d,_0x4a2381){const _0x24599d=_0x4e663c;if(!this[_0x24599d(0x11f)]['canDeleteRecord'](_0x10a46d,_0x4a2381))throw Error(_0x24599d(0x17d));this[_0x24599d(0x3cb)](_0x12f224,this[_0x24599d(0x1d8)][_0x24599d(0x14d)](_0x12f224[_0x24599d(0x12c)](),_0x10a46d,_0x4a2381));}[_0x4e663c(0x458)](_0x1cc25d,_0x5eef06,_0x1d1c9d,_0x53efa2){const _0x59ef71=_0x4e663c;if(!this['_permissionService'][_0x59ef71(0x2fe)](_0x5eef06))throw Error(_0x59ef71(0x477));this[_0x59ef71(0x3cb)](_0x1cc25d,this[_0x59ef71(0x1d8)]['duplicateRecord'](_0x1cc25d[_0x59ef71(0x12c)](),_0x5eef06,_0x1d1c9d,{..._0x53efa2,'values':{..._0x53efa2['values'],[_0x251017]:_0x53efa2['id']}}));}[_0x4e663c(0x2a2)](_0xf172ed,_0x782d7,_0x1295da,_0xd54cb1){const _0x46c918=_0x4e663c;if(!this[_0x46c918(0x11f)]['canEditRecord'](_0x782d7,_0x1295da))throw Error(_0x46c918(0x2d0));this[_0x46c918(0x3cb)](_0xf172ed,this['_factory'][_0x46c918(0x2a2)](_0xf172ed[_0x46c918(0x12c)](),_0x782d7,_0x1295da,_0xd54cb1));}[_0x4e663c(0x229)](_0x4267a6,_0x288949,_0x271048,_0x260476,_0x5f1432){const _0x587164=_0x4e663c;this[_0x587164(0x3cb)](_0x4267a6,this[_0x587164(0x32e)](_0x4267a6,_0x288949,_0x271048,_0x260476,_0x5f1432));}[_0x4e663c(0x190)](_0x21eae2,_0x2ae435,_0x1a2ddb,_0x17fe48){const _0x44730b=_0x4e663c;var _0x253986;if(!this[_0x44730b(0x11f)][_0x44730b(0x141)](_0x2ae435,_0x1a2ddb))throw Error(_0x44730b(0x1fd));let _0x5bc085=_0x21eae2[_0x44730b(0x12c)](),_0x277fd9=(_0x253986=_0x5bc085[_0x44730b(0x13e)][_0x2ae435])==null?void 0x0:_0x253986[_0x44730b(0x45e)][_0x1a2ddb];if(!_0x277fd9||_0x1a2ddb===_0x251017)throw Error(_0x44730b(0x492));this[_0x44730b(0x2c9)](_0x5bc085,{..._0x277fd9,..._0x17fe48}),this[_0x44730b(0x3cb)](_0x21eae2,this[_0x44730b(0x1d8)][_0x44730b(0x190)](_0x5bc085,_0x2ae435,_0x1a2ddb,_0x17fe48));}[_0x4e663c(0x222)](_0x12bac6,_0x36b0ae,_0x383fba,_0x4f82d8){const _0x55464d=_0x4e663c;var _0xb350ad;if(!this[_0x55464d(0x11f)][_0x55464d(0x141)](_0x36b0ae,_0x383fba))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x14da0b=_0x12bac6[_0x55464d(0x12c)](),_0x1e7bc0=(_0xb350ad=_0x14da0b['tables'][_0x36b0ae])==null?void 0x0:_0xb350ad[_0x55464d(0x45e)][_0x383fba];if(!_0x1e7bc0||_0x383fba===_0x251017)throw Error(_0x55464d(0x352));this[_0x55464d(0x2c9)](_0x14da0b,{..._0x1e7bc0,..._0x4f82d8}),this[_0x55464d(0x3cb)](_0x12bac6,this['_factory'][_0x55464d(0x222)](_0x14da0b,_0x36b0ae,_0x383fba,_0x4f82d8));}[_0x4e663c(0x2cc)](_0x38e80c,_0x493edb,_0x3f7d51){const _0x50b78e=_0x4e663c;var _0x20dec9;if(((_0x20dec9=_0x38e80c[_0x50b78e(0x12c)]()[_0x50b78e(0x13e)][_0x493edb])==null?void 0x0:_0x20dec9[_0x50b78e(0x210)])===_0x3f7d51||_0x3f7d51===_0x251017)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this['_permissionService'][_0x50b78e(0x2b2)](_0x493edb,_0x3f7d51))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this['_apply'](_0x38e80c,this['_factory'][_0x50b78e(0x2cc)](_0x38e80c['getSnapshot'](),_0x493edb,_0x3f7d51));}[_0x4e663c(0x114)](_0x53e508,_0x1aa359,_0x3c2347,_0x25737f){const _0xc8ec74=_0x4e663c;if(!this[_0xc8ec74(0x11f)][_0xc8ec74(0x141)](_0x1aa359,_0x3c2347))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x3c2347===_0x251017||_0x25737f[_0xc8ec74(0x244)]===_0x251017)throw Error(_0xc8ec74(0x19b));this[_0xc8ec74(0x3cb)](_0x53e508,this[_0xc8ec74(0x1d8)]['moveField'](_0x53e508[_0xc8ec74(0x12c)](),_0x1aa359,_0x3c2347,_0x25737f));}[_0x4e663c(0x1bd)](_0x30cec3,_0x26c61d,_0x189841,_0x5a5fd7){const _0x3d79df=_0x4e663c;if(!this['_permissionService'][_0x3d79df(0x4c8)](_0x26c61d,_0x189841['id']))throw Error(_0x3d79df(0x4a7));this['_apply'](_0x30cec3,this[_0x3d79df(0x1d8)][_0x3d79df(0x1bd)](_0x30cec3['getSnapshot'](),_0x26c61d,_0x189841,_0x5a5fd7));}[_0x4e663c(0x2c3)](_0x2c6bea,_0x4a8a0b,_0x287401,_0x1f8cdb){const _0x287405=_0x4e663c;if(!this[_0x287405(0x11f)][_0x287405(0x4c8)](_0x4a8a0b,_0x287401))throw Error(_0x287405(0x4a7));this[_0x287405(0x3cb)](_0x2c6bea,this[_0x287405(0x1d8)][_0x287405(0x2c3)](_0x2c6bea[_0x287405(0x12c)](),_0x4a8a0b,_0x287401,_0x1f8cdb));}[_0x4e663c(0x4c6)](_0x4aa41a,_0x1f07f7,_0x13fd4d){const _0x3ac577=_0x4e663c;if(!this[_0x3ac577(0x11f)]['canManageView'](_0x1f07f7,_0x13fd4d))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x3ac577(0x3cb)](_0x4aa41a,this[_0x3ac577(0x1d8)]['deleteView'](_0x4aa41a[_0x3ac577(0x12c)](),_0x1f07f7,_0x13fd4d));}[_0x4e663c(0x471)](_0x3cb61b,_0x1f7659,_0x26c5d5,_0x457af9){const _0x344c28=_0x4e663c;if(!this['_permissionService'][_0x344c28(0x4c8)](_0x1f7659,_0x26c5d5))throw Error(_0x344c28(0x4a7));this[_0x344c28(0x3cb)](_0x3cb61b,this['_factory'][_0x344c28(0x471)](_0x3cb61b[_0x344c28(0x12c)](),_0x1f7659,_0x26c5d5,_0x457af9));}['updateViewConfig'](_0x1f8475,_0x11bbfa,_0x375f8a,_0x1d0970){const _0x404a46=_0x4e663c;if(!this[_0x404a46(0x11f)][_0x404a46(0x4c8)](_0x11bbfa,_0x375f8a))throw Error(_0x404a46(0x4a7));this[_0x404a46(0x3cb)](_0x1f8475,this[_0x404a46(0x1d8)][_0x404a46(0x2dd)](_0x1f8475[_0x404a46(0x12c)](),_0x11bbfa,_0x375f8a,_0x1d0970));}[_0x4e663c(0x341)](_0x13988e,_0x4daa9c,_0x3b21ff,_0x149640){const _0x285637=_0x4e663c;if(!this[_0x285637(0x11f)][_0x285637(0x4c8)](_0x4daa9c,_0x3b21ff))throw Error(_0x285637(0x4a7));this['_apply'](_0x13988e,this['_factory'][_0x285637(0x341)](_0x13988e['getSnapshot'](),_0x4daa9c,_0x3b21ff,_0x149640));}['setViewSort'](_0x3b28f2,_0x28c066,_0x3b501c,_0x1cf2ed){const _0x22762f=_0x4e663c;if(!this[_0x22762f(0x11f)][_0x22762f(0x4c8)](_0x28c066,_0x3b501c))throw Error(_0x22762f(0x4a7));this[_0x22762f(0x3cb)](_0x3b28f2,this['_factory']['setViewSort'](_0x3b28f2[_0x22762f(0x12c)](),_0x28c066,_0x3b501c,_0x1cf2ed));}[_0x4e663c(0x116)](_0x3c673f,_0x12d04c,_0x596f6e,_0x3e2f59){const _0x394ab2=_0x4e663c;if(!this['_permissionService'][_0x394ab2(0x4c8)](_0x12d04c,_0x596f6e))throw Error(_0x394ab2(0x4a7));this[_0x394ab2(0x3cb)](_0x3c673f,this[_0x394ab2(0x1d8)][_0x394ab2(0x116)](_0x3c673f[_0x394ab2(0x12c)](),_0x12d04c,_0x596f6e,_0x3e2f59));}['setViewFieldVisible'](_0x2a14a0,_0x1fd9f9,_0x148af0,_0x52bbeb,_0x29a873){const _0x3adf86=_0x4e663c;if(!this['_permissionService']['canManageView'](_0x1fd9f9,_0x148af0))throw Error(_0x3adf86(0x4a7));this[_0x3adf86(0x3cb)](_0x2a14a0,this[_0x3adf86(0x1d8)][_0x3adf86(0x31e)](_0x2a14a0[_0x3adf86(0x12c)](),_0x1fd9f9,_0x148af0,_0x52bbeb,_0x29a873));}['setViewFieldWidth'](_0xe7a6bf,_0x2e083f,_0x4b73cb,_0x36fc06,_0x13c345){const _0x152c57=_0x4e663c;if(!this['_permissionService']['canManageView'](_0x2e083f,_0x4b73cb))throw Error(_0x152c57(0x4a7));this[_0x152c57(0x3cb)](_0xe7a6bf,this['_factory']['setViewFieldWidth'](_0xe7a6bf[_0x152c57(0x12c)](),_0x2e083f,_0x4b73cb,_0x36fc06,_0x13c345));}['setViewFieldOrder'](_0x1182cf,_0x43be04,_0x3b1295,_0x408667,_0x263dca){const _0x1ebcc7=_0x4e663c;if(!this[_0x1ebcc7(0x11f)][_0x1ebcc7(0x4c8)](_0x43be04,_0x3b1295))throw Error(_0x1ebcc7(0x4a7));this['_apply'](_0x1182cf,this['_factory'][_0x1ebcc7(0x18a)](_0x1182cf[_0x1ebcc7(0x12c)](),_0x43be04,_0x3b1295,_0x408667,_0x263dca));}[_0x4e663c(0x3cb)](_0x2c8bfd,_0x2e9cca){const _0x3a3ec7=_0x4e663c;let _0x85bf34=_0x2c8bfd[_0x3a3ec7(0x12c)]();_0x2c8bfd['setSnapshot'](this['_applier'][_0x3a3ec7(0x3f0)](_0x85bf34,_0x2e9cca));}[_0x4e663c(0x1ba)](_0x486baa,_0x340694,_0x4f352e,_0x92dc21=this['_createNumberingAllocators'](_0x486baa['tables'][_0x340694])){const _0xf21f7e=_0x4e663c;let _0x2c3698=_0x486baa['tables'][_0x340694],_0x46ee7f=_0x4f352e[_0xf21f7e(0x346)]??_0x4f352e[_0xf21f7e(0x4b0)]??this[_0xf21f7e(0x49f)](),_0x533f8f={..._0x4f352e,'createdBy':_0x4f352e[_0xf21f7e(0x346)]??_0x46ee7f,'updatedBy':_0x4f352e[_0xf21f7e(0x4b0)]??_0x46ee7f,'values':{..._0x4f352e[_0xf21f7e(0x325)]}};return _0x533f8f[_0xf21f7e(0x325)][_0x251017]=_0x533f8f['id'],_0x2c3698[_0xf21f7e(0x4c0)][_0xf21f7e(0x29f)](_0x2a2bdb=>{const _0x3b0c7b=_0xf21f7e;let _0xe7a941=_0x2c3698[_0x3b0c7b(0x45e)][_0x2a2bdb];if(_0xe7a941&&_0x533f8f[_0x3b0c7b(0x325)][_0x2a2bdb]===void 0x0)switch(_0xe7a941[_0x3b0c7b(0x111)]){case _0x5f310d['Numbering']:var _0x3e31d4;_0x533f8f[_0x3b0c7b(0x325)][_0x2a2bdb]=((_0x3e31d4=_0x92dc21[_0x3b0c7b(0x1f4)](_0x2a2bdb))==null?void 0x0:_0x3e31d4())??this[_0x3b0c7b(0x14e)](_0x2c3698,_0x2a2bdb)();break;case _0x5f310d[_0x3b0c7b(0x3bd)]:_0x533f8f['createdBy']&&(_0x533f8f['values'][_0x2a2bdb]=_0x533f8f[_0x3b0c7b(0x346)]);break;case _0x5f310d['UpdatedBy']:_0x533f8f[_0x3b0c7b(0x4b0)]&&(_0x533f8f[_0x3b0c7b(0x325)][_0x2a2bdb]=_0x533f8f[_0x3b0c7b(0x4b0)]);break;case _0x5f310d[_0x3b0c7b(0x260)]:_0x533f8f['values'][_0x2a2bdb]=B(_0x533f8f['createdAt']);break;case _0x5f310d[_0x3b0c7b(0x40c)]:_0x533f8f[_0x3b0c7b(0x325)][_0x2a2bdb]=B(_0x533f8f[_0x3b0c7b(0x1a9)]);break;default:{let _0x54bfc4=_0xe7a941[_0x3b0c7b(0x38a)];_0x54bfc4!=null&&_0x54bfc4!==''&&!(Array['isArray'](_0x54bfc4)&&_0x54bfc4[_0x3b0c7b(0x255)]===0x0)&&(_0x533f8f[_0x3b0c7b(0x325)][_0x2a2bdb]=_0x54bfc4);}}}),_0x533f8f;}['_withModifiedSystemValues'](_0x497540,_0x5918b4,_0x10b41b,_0x42c023){const _0x29e3a0=_0x4e663c;var _0x3d10a3,_0x5b71fe;let _0x25fe6d=_0x497540[_0x29e3a0(0x13e)][_0x5918b4],_0x4e81ab=((_0x3d10a3=(_0x5b71fe=this[_0x29e3a0(0x4b2)])[_0x29e3a0(0x2cf)])==null?void 0x0:_0x3d10a3[_0x29e3a0(0x3bf)](_0x5b71fe))??Date['now'](),_0x514397=this[_0x29e3a0(0x49f)](),_0x15d8b9={..._0x42c023};return _0x25fe6d[_0x29e3a0(0x4c0)]['forEach'](_0x2264b3=>{const _0x47fcab=_0x29e3a0;let _0x1d6921=_0x25fe6d[_0x47fcab(0x45e)][_0x2264b3];_0x1d6921&&(_0x1d6921[_0x47fcab(0x111)]===_0x5f310d[_0x47fcab(0x40c)]&&(_0x15d8b9[_0x2264b3]=B(_0x4e81ab)),_0x1d6921[_0x47fcab(0x111)]===_0x5f310d[_0x47fcab(0x33f)]&&_0x514397&&(_0x15d8b9[_0x2264b3]=_0x514397));}),{'recordId':_0x10b41b,'values':_0x15d8b9,'recordPatch':{'updatedAt':_0x4e81ab,..._0x514397?{'updatedBy':_0x514397}:{}}};}['_createSystemFieldValuePatches'](_0x238290,_0x532d02,_0x558fa7){const _0x3c9ddb=_0x4e663c;let _0x1ebfa8=_0x238290[_0x3c9ddb(0x13e)][_0x532d02];return!_0x1ebfa8||!Yr(_0x558fa7)?[]:_0x558fa7[_0x3c9ddb(0x111)]===_0x5f310d[_0x3c9ddb(0x3b4)]?this[_0x3c9ddb(0x22b)](_0x1ebfa8,_0x558fa7['id']):Object[_0x3c9ddb(0x325)](_0x1ebfa8['records'])[_0x3c9ddb(0x1fb)](_0x3fa0dd=>{const _0x414563=_0x3c9ddb;let _0x206221=this[_0x414563(0x266)](_0x558fa7,_0x3fa0dd);return _0x206221===void 0x0?[]:[{'recordId':_0x3fa0dd['id'],'values':{[_0x558fa7['id']]:_0x206221}}];});}[_0x4e663c(0x266)](_0x20fc5b,_0x5c35ff){const _0x3f4b27=_0x4e663c;switch(_0x20fc5b['type']){case _0x5f310d[_0x3f4b27(0x3bd)]:return _0x5c35ff[_0x3f4b27(0x346)]??this[_0x3f4b27(0x49f)]();case _0x5f310d[_0x3f4b27(0x33f)]:return _0x5c35ff[_0x3f4b27(0x4b0)]??this[_0x3f4b27(0x49f)]();case _0x5f310d[_0x3f4b27(0x260)]:return B(_0x5c35ff[_0x3f4b27(0x162)]??Date[_0x3f4b27(0x2cf)]());case _0x5f310d[_0x3f4b27(0x40c)]:return B(_0x5c35ff[_0x3f4b27(0x1a9)]??Date[_0x3f4b27(0x2cf)]());default:return;}}[_0x4e663c(0x178)](_0x2efa74){const _0x538bee=_0x4e663c;let _0x1082ff=new Map();return _0x2efa74&&_0x2efa74['fieldOrder'][_0x538bee(0x29f)](_0x3baebc=>{const _0x164c50=_0x538bee;let _0x5157e7=_0x2efa74[_0x164c50(0x45e)][_0x3baebc];(_0x5157e7==null?void 0x0:_0x5157e7[_0x164c50(0x111)])===_0x5f310d[_0x164c50(0x3b4)]&&_0x1082ff[_0x164c50(0x233)](_0x3baebc,this['_createNumberingAllocator'](_0x2efa74,_0x3baebc));}),_0x1082ff;}[_0x4e663c(0x14e)](_0x144250,_0x3bfd87){const _0x3f4f03=_0x4e663c;let _0x48421a=Object[_0x3f4f03(0x325)](_0x144250[_0x3f4f03(0x3f2)])[_0x3f4f03(0x3d3)]((_0x3309a6,_0x47b03f)=>{const _0x5439ed=_0x3f4f03;let _0x55483b=Number(_0x47b03f[_0x5439ed(0x325)][_0x3bfd87]);return Number[_0x5439ed(0x402)](_0x55483b)?Math['max'](_0x3309a6,_0x55483b):_0x3309a6;},0x0);return()=>String(++_0x48421a);}[_0x4e663c(0x22b)](_0x5f5896,_0x10d089){const _0x6f6b48=_0x4e663c;let _0x5d4e0d=this[_0x6f6b48(0x264)](_0x5f5896),_0xe97cf8=this[_0x6f6b48(0x14e)](_0x5f5896,_0x10d089);return _0x5d4e0d[_0x6f6b48(0x1fb)](_0x59b0d0=>this[_0x6f6b48(0x3f8)](_0x59b0d0['values'][_0x10d089])?[]:[{'recordId':_0x59b0d0['id'],'values':{[_0x10d089]:_0xe97cf8()}}]);}[_0x4e663c(0x264)](_0x59d99f){const _0x3fd5c4=_0x4e663c;var _0x38d06e;let _0x3471e7=Object[_0x3fd5c4(0x325)](_0x59d99f['records']),_0x3e1ef6=new Map(_0x3471e7[_0x3fd5c4(0x19c)](_0x3700b8=>[_0x3700b8['id'],_0x3700b8])),_0x145d68=[],_0x4b61f0=new Set();(_0x38d06e=_0x59d99f[_0x3fd5c4(0x36b)])==null||_0x38d06e[_0x3fd5c4(0x29f)](_0x1addf8=>{const _0x27c05c=_0x3fd5c4;let _0x75b41f=_0x3e1ef6[_0x27c05c(0x1f4)](_0x1addf8);_0x75b41f&&(_0x145d68[_0x27c05c(0x25c)](_0x75b41f),_0x4b61f0['add'](_0x1addf8));});let _0x34c7e5=_0x3471e7[_0x3fd5c4(0x20d)](_0xce0c2a=>!_0x4b61f0['has'](_0xce0c2a['id']))[_0x3fd5c4(0x3db)]((_0x244183,_0x270518)=>String(_0x244183['orderKey']??_0x244183['id'])['localeCompare'](String(_0x270518[_0x3fd5c4(0x1b7)]??_0x270518['id']))||_0x244183['id'][_0x3fd5c4(0x3f7)](_0x270518['id']));return[..._0x145d68,..._0x34c7e5];}[_0x4e663c(0x3f8)](_0x3161ac){const _0x1540df=_0x4e663c;return _0x3161ac!=null&&_0x3161ac!==''&&!(Array[_0x1540df(0x454)](_0x3161ac)&&_0x3161ac[_0x1540df(0x255)]===0x0);}['_getCurrentUserId'](){const _0x409aa5=_0x4e663c;var _0x43b9d1,_0x16e809,_0x24296d,_0x4376c4;return((_0x43b9d1=(_0x16e809=this['_runtimeContext'])[_0x409aa5(0x1e0)])==null?void 0x0:_0x43b9d1[_0x409aa5(0x3bf)](_0x16e809))??((_0x24296d=(_0x4376c4=this[_0x409aa5(0x4b2)])[_0x409aa5(0x214)])==null||(_0x24296d=_0x24296d['call'](_0x4376c4))==null?void 0x0:_0x24296d[_0x409aa5(0x2e6)])??void 0x0;}[_0x4e663c(0x335)](_0x3d0d27,_0x273683,_0x52751a,_0x2f3bda,_0x22968b){const _0x8140db=_0x4e663c;var _0x339ce5;if(!this['_permissionService'][_0x8140db(0x391)](_0x273683,_0x52751a,_0x2f3bda))throw Error(_0x8140db(0x31b));let _0x583fb9=(_0x339ce5=_0x3d0d27[_0x8140db(0x13e)][_0x273683])==null?void 0x0:_0x339ce5[_0x8140db(0x45e)][_0x2f3bda];if(!_0x583fb9)throw Error(_0x8140db(0x387)+_0x2f3bda+_0x8140db(0x4b1));let _0xb83477=this[_0x8140db(0x13f)][_0x8140db(0x1f4)](_0x583fb9[_0x8140db(0x111)]);if(_0x583fb9['readonly']||_0x583fb9['system']||!_0xb83477[_0x8140db(0x4b9)](_0x583fb9)[_0x8140db(0x31d)])throw Error(_0x8140db(0x404));let _0x11afa3=_0xb83477[_0x8140db(0x388)](_0x22968b,_0x583fb9),_0x35ee28=_0xb83477['validate'](_0x11afa3,_0x583fb9);if(!_0x35ee28[_0x8140db(0x39f)])throw Error(_0x35ee28['reason']??'[BaseCommandService]:\x20invalid\x20cell\x20value.');let _0x2a4867=_0x583fb9[_0x8140db(0x111)]===_0x5f310d[_0x8140db(0x3e4)]?Ve(_0x3d0d27,_0x583fb9,_0x11afa3):{'valid':!0x0};if(!_0x2a4867['valid'])throw Error(_0x2a4867[_0x8140db(0x41c)]??'[BaseCommandService]:\x20invalid\x20RecordLink\x20value.');return _0x11afa3;}[_0x4e663c(0x2c9)](_0x446876,_0x206358){const _0x41f6c2=_0x4e663c;if(_0x206358['id']===_0x251017||_0x206358[_0x41f6c2(0x111)]===_0x5f310d[_0x41f6c2(0x44e)]||_0x154a90(_0x206358[_0x41f6c2(0x269)]))throw Error(_0x41f6c2(0x126));let _0x25068b=Be(_0x446876,_0x206358);if(!_0x25068b['valid'])throw Error(_0x25068b[_0x41f6c2(0x41c)]??_0x41f6c2(0x49b));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x1becc9=_0x4e663c;let _0x1703f2=new hr();return zn()[_0x1becc9(0x29f)](_0x430532=>_0x1703f2[_0x1becc9(0x2bb)](_0x430532)),_0x1703f2;}function Yr(_0x1dfe50){const _0x5685f2=_0x4e663c;return _0x1dfe50[_0x5685f2(0x111)]===_0x5f310d[_0x5685f2(0x3b4)]||_0x1dfe50[_0x5685f2(0x111)]===_0x5f310d[_0x5685f2(0x3bd)]||_0x1dfe50[_0x5685f2(0x111)]===_0x5f310d[_0x5685f2(0x33f)]||_0x1dfe50[_0x5685f2(0x111)]===_0x5f310d[_0x5685f2(0x260)]||_0x1dfe50[_0x5685f2(0x111)]===_0x5f310d[_0x5685f2(0x40c)];}const Xr=new Set([_0x5f310d[_0x4e663c(0x46d)],_0x5f310d[_0x4e663c(0x29c)],_0x5f310d[_0x4e663c(0x280)]]);function Zr(_0x145859){const _0x2439fb=_0x4e663c;let _0x26566a=_0x145859[_0x2439fb(0x45e)][_0x145859['primaryFieldId']];if((!_0x26566a||_0x26566a[_0x2439fb(0x39c)]!==!0x0&&_0x26566a['id'][_0x2439fb(0x2ec)]()!=='id'&&_0x26566a[_0x2439fb(0x269)][_0x2439fb(0x319)]()['toLowerCase']()!=='id')&&_0x26566a)return _0x26566a['id'];for(let _0x3820af of _0x145859[_0x2439fb(0x4c0)]){let _0x4260c7=_0x145859['fields'][_0x3820af];if(_0x4260c7&&_0x4260c7['id']!==_0x145859['primaryFieldId']&&_0x4260c7[_0x2439fb(0x39c)]!==!0x0&&_0x4260c7[_0x2439fb(0x111)]!==_0x5f310d[_0x2439fb(0x44e)])return _0x4260c7['id'];}return _0x145859[_0x2439fb(0x210)];}function Qr(_0x3e6192,_0x1b4847=[],_0x6cd6f1=0x5){const _0x5dcc9b=_0x4e663c;let _0x3568fb=new Set(_0x1b4847['filter'](_0x73fb4e=>!!_0x73fb4e)),_0x32ddc6=[],_0x3996b0=[];for(let _0x3e6b92 of _0x3e6192['fieldOrder']){let _0x4ef09b=_0x3e6192['fields'][_0x3e6b92];_0x4ef09b&&_0x4ef09b[_0x5dcc9b(0x39c)]!==!0x0&&_0x4ef09b[_0x5dcc9b(0x111)]!==_0x5f310d[_0x5dcc9b(0x44e)]&&!_0x3568fb['has'](_0x4ef09b['id'])&&(Xr[_0x5dcc9b(0x19e)](_0x4ef09b['type'])?_0x32ddc6:_0x3996b0)[_0x5dcc9b(0x25c)](_0x4ef09b['id']);}return[..._0x32ddc6,..._0x3996b0]['slice'](0x0,_0x6cd6f1);}function $r(){const _0x4611c7=_0x4e663c;return[{'type':_0x45c2b1['Grid'],'i18nKey':_0x4611c7(0x20f),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x19ddc3=_0x4611c7;throw Error(_0x19ddc3(0x37d));}},{'type':_0x45c2b1['Kanban'],'i18nKey':_0x4611c7(0x284),'createDefaultConfig':_0x4a417a=>{const _0x3b0d4f=_0x4611c7;let _0xab1d4e=ei(_0x4a417a);return{'groupFieldId':_0xab1d4e,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x4a417a['primaryFieldId'],'fieldIds':Qr(_0x4a417a,[_0x4a417a[_0x3b0d4f(0x210)],_0xab1d4e])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x482212=_0x4611c7;throw Error(_0x482212(0x333));}},{'type':_0x45c2b1[_0x4611c7(0x2a4)],'i18nKey':_0x4611c7(0x3e6),'createDefaultConfig':_0x3cebb9=>{const _0x4dc734=_0x4611c7;let _0x1e4423=ti(_0x3cebb9);return{'startDateFieldId':_0x1e4423,'endDateFieldId':ni(_0x3cebb9,_0x1e4423),'titleFieldId':_0x3cebb9[_0x4dc734(0x210)],'mode':_0x4dc734(0x390),'timeslotSize':_0x4dc734(0x25d),'timeZone':_0x4dc734(0x40a),'displayColor':{'type':_0x4dc734(0x1da),'color':_0x4dc734(0x32f)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x546323=_0x4611c7;throw Error(_0x546323(0x2b7));}},{'type':_0x45c2b1[_0x4611c7(0x194)],'i18nKey':_0x4611c7(0x45f),'createDefaultConfig':_0x12a9a1=>{const _0x38264c=_0x4611c7;let _0x8c6989=ti(_0x12a9a1);return{'startDateFieldId':_0x8c6989,'endDateFieldId':ni(_0x12a9a1,_0x8c6989)??_0x8c6989,'titleFieldId':_0x12a9a1[_0x38264c(0x210)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x38264c(0x1da),'color':_0x38264c(0x40b)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x303816=_0x4611c7;throw Error(_0x303816(0x168));}},{'type':_0x45c2b1[_0x4611c7(0x311)],'i18nKey':_0x4611c7(0x375),'createDefaultConfig':_0x1cc2de=>{const _0x4d7699=_0x4611c7;let _0x281e2d=Zr(_0x1cc2de);return{'coverFieldId':null,'cardLayout':_0x4d7699(0x499),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x281e2d,'coverFieldId':null,'fieldIds':Qr(_0x1cc2de,[_0x281e2d,_0x1cc2de[_0x4d7699(0x210)]])},'cardSize':'medium'};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x8f0fe8=_0x4611c7;throw Error(_0x8f0fe8(0x457));}}];}function ei(_0x39d5d2){const _0x5f0aef=_0x4e663c;var _0x14150b,_0x3264c8,_0x7c25f1;let _0x2cb188=_0x39d5d2[_0x5f0aef(0x4c0)][_0x5f0aef(0x19c)](_0x420b27=>_0x39d5d2['fields'][_0x420b27])['filter'](_0x570a50=>!!_0x570a50);return((_0x14150b=_0x2cb188['find'](_0x5305d3=>_0x5305d3['type']===_0x5f310d['SingleSelect']||_0x5305d3[_0x5f0aef(0x111)]===_0x5f310d[_0x5f0aef(0x3b2)]||_0x5305d3[_0x5f0aef(0x111)]===_0x5f310d['Group']))==null?void 0x0:_0x14150b['id'])??((_0x3264c8=_0x2cb188[_0x5f0aef(0x143)](_0x5c80f2=>_0x5c80f2[_0x5f0aef(0x111)]===_0x5f310d['Text']))==null?void 0x0:_0x3264c8['id'])??((_0x7c25f1=_0x2cb188[_0x5f0aef(0x143)](_0x4425e4=>_0x4425e4[_0x5f0aef(0x111)]===_0x5f310d[_0x5f0aef(0x14a)]||_0x4425e4['type']===_0x5f310d[_0x5f0aef(0x260)]||_0x4425e4[_0x5f0aef(0x111)]===_0x5f310d[_0x5f0aef(0x40c)]))==null?void 0x0:_0x7c25f1['id'])??_0x39d5d2[_0x5f0aef(0x210)];}function ti(_0x1daac4){const _0x17e167=_0x4e663c;var _0x2e7d85;return((_0x2e7d85=_0x1daac4[_0x17e167(0x4c0)][_0x17e167(0x19c)](_0x43d529=>_0x1daac4[_0x17e167(0x45e)][_0x43d529])['find'](ri))==null?void 0x0:_0x2e7d85['id'])??'';}function ni(_0x421025,_0x646498){const _0x43447f=_0x4e663c;var _0x2a2fbe;return(_0x2a2fbe=_0x421025[_0x43447f(0x4c0)]['map'](_0x29010b=>_0x421025[_0x43447f(0x45e)][_0x29010b])['find'](_0x358310=>ri(_0x358310)&&_0x358310['id']!==_0x646498))==null?void 0x0:_0x2a2fbe['id'];}function ri(_0x3dae68){const _0x3e57ca=_0x4e663c;return!!_0x3dae68&&_0x3dae68[_0x3e57ca(0x111)]===_0x5f310d['Date']&&_0x3dae68[_0x3e57ca(0x3c7)]!==!0x0&&_0x3dae68[_0x3e57ca(0x39c)]!==!0x0;}const ii=_0x55d87a(_0x4e663c(0x199)),ai=new Set([_0x5f310d['Number'],_0x5f310d['Currency'],_0x5f310d[_0x4e663c(0x46d)],_0x5f310d[_0x4e663c(0x29c)],_0x5f310d[_0x4e663c(0x14a)],_0x5f310d['CreatedAt'],_0x5f310d[_0x4e663c(0x40c)],_0x5f310d['Checkbox']]),oi=0x5265c00;let si=class extends _0x528c5b{constructor(_0x5c5a9c){const _0x1403c9=_0x4e663c;super(),this[_0x1403c9(0x13f)]=_0x5c5a9c,G(this,'_views',new Map()),G(this,_0x1403c9(0x174),new WeakMap()),G(this,_0x1403c9(0x285),new Map()),G(this,_0x1403c9(0x365),new Map()),G(this,'_projectedGroupsCache',new Map()),G(this,_0x1403c9(0x456),new Map()),G(this,_0x1403c9(0x2ae),0x0),G(this,'_tableRevisions',new Map()),G(this,_0x1403c9(0x268),new Map()),G(this,'_cellInvalidations',new Map()),G(this,_0x1403c9(0x2f5),new Map());}[_0x4e663c(0x276)](_0x33559f){const _0x4830f3=_0x4e663c;return this[_0x4830f3(0x3a9)]['set'](_0x33559f[_0x4830f3(0x111)],_0x33559f),_0x1b91c9(()=>this['_views'][_0x4830f3(0x1f1)](_0x33559f[_0x4830f3(0x111)]));}['getProjection'](_0x32d8ad,_0x4ee722,_0x25e0d8){const _0x43b0cf=_0x4e663c;var _0x28e817,_0x783ed2,_0x148862;return I(_0x43b0cf(0x3ba),()=>{const _0x12789b=_0x43b0cf;let _0x302895=this[_0x12789b(0x35b)](_0x32d8ad,_0x4ee722,_0x25e0d8);if(_0x302895)return _0x302895;let _0x4387ee=_0x32d8ad['tables'][_0x4ee722],_0x4139b9=_0x4387ee==null?void 0x0:_0x4387ee[_0x12789b(0x2ac)][_0x25e0d8];if(!_0x4387ee||!_0x4139b9)return this[_0x12789b(0x324)](_0x32d8ad,_0x4ee722,_0x25e0d8,{'type':_0x12789b(0x491),'viewType':(_0x4139b9==null?void 0x0:_0x4139b9['type'])??_0x45c2b1['Grid'],'reason':'missingField'});let _0x5b3926;switch(_0x4139b9[_0x12789b(0x111)]){case _0x45c2b1['Grid']:_0x5b3926=this['_buildGrid'](_0x4387ee,_0x4139b9);break;case _0x45c2b1['Gantt']:_0x5b3926=this[_0x12789b(0x46e)](_0x4387ee,_0x4139b9);break;case _0x45c2b1['Kanban']:_0x5b3926=this[_0x12789b(0x461)](_0x4387ee,_0x4139b9);break;case _0x45c2b1[_0x12789b(0x2a4)]:_0x5b3926=this[_0x12789b(0x18e)](_0x4387ee,_0x4139b9);break;case _0x45c2b1[_0x12789b(0x311)]:_0x5b3926=this[_0x12789b(0x2ba)](_0x4387ee,_0x4139b9);break;default:_0x5b3926={'type':_0x12789b(0x491),'viewType':_0x4139b9[_0x12789b(0x111)],'reason':_0x12789b(0x306)};}return this[_0x12789b(0x324)](_0x32d8ad,_0x4ee722,_0x25e0d8,_0x5b3926);},{'tableId':_0x4ee722,'viewId':_0x25e0d8,'viewType':(_0x28e817=_0x32d8ad[_0x43b0cf(0x13e)][_0x4ee722])==null||(_0x28e817=_0x28e817['views'][_0x25e0d8])==null?void 0x0:_0x28e817[_0x43b0cf(0x111)],'records':((_0x783ed2=_0x32d8ad[_0x43b0cf(0x13e)][_0x4ee722])==null||(_0x783ed2=_0x783ed2['recordOrder'])==null?void 0x0:_0x783ed2['length'])??Object[_0x43b0cf(0x467)](((_0x148862=_0x32d8ad[_0x43b0cf(0x13e)][_0x4ee722])==null?void 0x0:_0x148862[_0x43b0cf(0x3f2)])??{})['length']});}['repairViewConfig'](_0x83e081,_0x55ac96,_0xa2ee47){const _0x2b1cf1=_0x4e663c;var _0xa0334c,_0x1bce2e,_0x30e12d;let _0x12432a=_0x83e081['tables'][_0x55ac96],_0x182ffd=_0x12432a==null?void 0x0:_0x12432a['views'][_0xa2ee47];if(!_0x12432a||!_0x182ffd)throw Error(_0x2b1cf1(0x2f9)+_0xa2ee47+'\x22.');let _0x3910ba=_0x1c1221=>!!_0x12432a[_0x2b1cf1(0x45e)][_0x1c1221],_0x35c4cb={..._0x182ffd,'filter':_0x182ffd[_0x2b1cf1(0x20d)]?{..._0x182ffd[_0x2b1cf1(0x20d)],'conditions':_0x182ffd['filter'][_0x2b1cf1(0x495)][_0x2b1cf1(0x20d)](_0xf70456=>_0x3910ba(_0xf70456[_0x2b1cf1(0x2be)]))}:_0x182ffd[_0x2b1cf1(0x20d)],'sort':(_0xa0334c=_0x182ffd['sort'])==null?void 0x0:_0xa0334c[_0x2b1cf1(0x20d)](_0x45fb55=>_0x3910ba(_0x45fb55[_0x2b1cf1(0x2be)])),'group':(_0x1bce2e=_0x182ffd[_0x2b1cf1(0x29d)])==null?void 0x0:_0x1bce2e['filter'](_0x1d357b=>_0x3910ba(_0x1d357b[_0x2b1cf1(0x2be)])),'fieldOrder':(_0x30e12d=_0x182ffd[_0x2b1cf1(0x4c0)])==null?void 0x0:_0x30e12d['filter'](_0x3910ba),'fieldSettings':Object[_0x2b1cf1(0x147)](Object[_0x2b1cf1(0x3ee)](_0x182ffd[_0x2b1cf1(0x180)]??{})[_0x2b1cf1(0x20d)](([_0x5ce5c6])=>_0x3910ba(_0x5ce5c6)))};if(_0x35c4cb[_0x2b1cf1(0x111)]===_0x2b1cf1(0x290)){var _0x40ce03;let _0x410801=_0x35c4cb['config']??{},_0x3b939e=this[_0x2b1cf1(0x385)](_0x12432a,_0x35c4cb),_0x555121=this[_0x2b1cf1(0x308)](_0x12432a,(_0x40ce03=_0x410801['card'])==null?void 0x0:_0x40ce03['titleFieldId']);_0x35c4cb[_0x2b1cf1(0x2c4)]={..._0x410801,'groupFieldId':_0x3b939e??_0x410801[_0x2b1cf1(0x2fd)],'coverFieldId':this[_0x2b1cf1(0x2d5)](_0x12432a,_0x410801),'cardLayout':_0x410801['cardLayout']===_0x2b1cf1(0x1fa)?_0x2b1cf1(0x1fa):_0x2b1cf1(0x499),'showFieldNames':_0x410801[_0x2b1cf1(0x31a)]!==!0x1,'fieldSettings':Object[_0x2b1cf1(0x147)](Object[_0x2b1cf1(0x3ee)](_0x410801['fieldSettings']??{})[_0x2b1cf1(0x20d)](([_0x543527])=>_0x3910ba(_0x543527))),'columnSettings':_0x410801[_0x2b1cf1(0x380)]??{},'card':{..._0x410801[_0x2b1cf1(0x336)]??{},'titleFieldId':_0x555121,'fieldIds':this[_0x2b1cf1(0x4b4)](_0x12432a,_0x35c4cb,_0x3b939e??'',_0x555121)}};}return{'repaired':JSON['stringify'](_0x35c4cb)!==JSON[_0x2b1cf1(0x1ff)](_0x182ffd),'view':_0x35c4cb};}['invalidateByOp'](){const _0x44ee73=_0x4e663c;this[_0x44ee73(0x2ae)]++;}['invalidateByCell'](_0x21fa65,_0x737db,_0x54b7dd){const _0x23402c=_0x4e663c;let _0x429144=this[_0x23402c(0x25a)](_0x21fa65)+0x1;this[_0x23402c(0x268)]['set'](_0x21fa65,_0x429144);let _0x443161=this['_cellInvalidations'][_0x23402c(0x1f4)](_0x21fa65)??[];_0x443161[_0x23402c(0x25c)]({'revision':_0x429144,'recordId':_0x737db,'fieldId':_0x54b7dd}),this[_0x23402c(0x11c)]['set'](_0x21fa65,_0x443161);}[_0x4e663c(0x490)](_0x5f241b,_0x148153){const _0x9de52=_0x4e663c;this[_0x9de52(0x45a)](_0x5f241b);}['invalidateByView'](_0x5694fe,_0x3b9432){const _0x1a3b73=_0x4e663c;this[_0x1a3b73(0x2f5)][_0x1a3b73(0x233)](this['_viewRevisionKey'](_0x5694fe,_0x3b9432),this[_0x1a3b73(0x4bf)](_0x5694fe,_0x3b9432)+0x1);}[_0x4e663c(0x35b)](_0x10baf5,_0x2f8d61,_0x6ff279){const _0x32e859=_0x4e663c;var _0x57f12;let _0x598f63=(_0x57f12=this[_0x32e859(0x174)][_0x32e859(0x1f4)](_0x10baf5))==null?void 0x0:_0x57f12[_0x32e859(0x1f4)](this[_0x32e859(0x399)](_0x2f8d61,_0x6ff279));return _0x598f63&&_0x598f63[_0x32e859(0x206)]===this[_0x32e859(0x2ae)]&&_0x598f63[_0x32e859(0x2ce)]===this[_0x32e859(0x248)](_0x2f8d61)&&_0x598f63[_0x32e859(0x34e)]===this[_0x32e859(0x25a)](_0x2f8d61)&&_0x598f63['viewRevision']===this['_getViewRevision'](_0x2f8d61,_0x6ff279)?_0x598f63[_0x32e859(0x4a0)]:null;}['_setCachedProjection'](_0xa57f8c,_0x1484fe,_0x32437b,_0x382a56){const _0x3e5d19=_0x4e663c;let _0x22539a=this[_0x3e5d19(0x174)][_0x3e5d19(0x1f4)](_0xa57f8c);return _0x22539a||(_0x22539a=new Map(),this[_0x3e5d19(0x174)][_0x3e5d19(0x233)](_0xa57f8c,_0x22539a)),_0x22539a[_0x3e5d19(0x233)](this[_0x3e5d19(0x399)](_0x1484fe,_0x32437b),{'projection':_0x382a56,'globalRevision':this[_0x3e5d19(0x2ae)],'tableRevision':this[_0x3e5d19(0x248)](_0x1484fe),'cellRevision':this[_0x3e5d19(0x25a)](_0x1484fe),'viewRevision':this[_0x3e5d19(0x4bf)](_0x1484fe,_0x32437b)}),_0x382a56;}['_bumpTableRevision'](_0x4b03de){const _0x594c56=_0x4e663c;this[_0x594c56(0x219)]['set'](_0x4b03de,this[_0x594c56(0x248)](_0x4b03de)+0x1);}[_0x4e663c(0x248)](_0x4a43c6){const _0x3cd6a1=_0x4e663c;return this[_0x3cd6a1(0x219)][_0x3cd6a1(0x1f4)](_0x4a43c6)??0x0;}[_0x4e663c(0x25a)](_0x15081b){const _0x343d7b=_0x4e663c;return this[_0x343d7b(0x268)][_0x343d7b(0x1f4)](_0x15081b)??0x0;}[_0x4e663c(0x4bf)](_0x36731d,_0x49527c){const _0x5d33a8=_0x4e663c;return this[_0x5d33a8(0x2f5)]['get'](this[_0x5d33a8(0x42c)](_0x36731d,_0x49527c))??0x0;}[_0x4e663c(0x399)](_0x1d13f8,_0x1f5dd7){return _0x1d13f8+'\x00'+_0x1f5dd7;}[_0x4e663c(0x48f)](_0x2452ca,_0x115b09){const _0x1e71d9=_0x4e663c;return _0x2452ca+'\x00'+this[_0x1e71d9(0x4ac)](_0x115b09);}[_0x4e663c(0x393)](_0x494899,_0x389cbf,_0x1a6d3e){const _0x202505=_0x4e663c;return _0x494899+'\x00'+this['_rowTransformCacheSegment'](_0x389cbf)+'\x00'+this[_0x202505(0x2eb)](_0x1a6d3e);}[_0x4e663c(0x4ac)](_0x18467d){const _0xcca0b4=_0x4e663c;return _0x18467d?mi({'filter':di(_0x18467d[_0xcca0b4(0x20d)]),'sort':pi(_0x18467d[_0xcca0b4(0x3db)])}):_0xcca0b4(0x419);}['_groupConfigCacheSegment'](_0x5a1c4f){const _0x456b55=_0x4e663c;return mi(_0x5a1c4f[_0x456b55(0x19c)](_0x522bc9=>({'fieldId':_0x522bc9[_0x456b55(0x2be)],'direction':_0x522bc9[_0x456b55(0x4c3)]??null})));}[_0x4e663c(0x42c)](_0x30f8de,_0xda006e){return _0x30f8de+'\x00'+_0xda006e;}[_0x4e663c(0x3f5)](_0x4077a7,_0x361f7d){const _0x37216d=_0x4e663c;var _0x484925;let _0x5ca9af=Je(_0x4077a7),_0x405320=this[_0x37216d(0x357)](_0x4077a7,_0x361f7d),_0x1f2011=(_0x484925=_0x361f7d[_0x37216d(0x20d)])!=null&&_0x484925[_0x37216d(0x495)][_0x37216d(0x255)]?this[_0x37216d(0x357)](_0x4077a7,{..._0x361f7d,'filter':null}):_0x405320,_0x383aca=nt(this['_getHierarchyIndex'](_0x4077a7,_0x5ca9af,_0x361f7d['id'],_0x1f2011[_0x37216d(0x19c)](_0x54f8c4=>_0x54f8c4[_0x37216d(0x1ef)])),_0x1f2011,new Set(_0x405320['map'](_0x172689=>_0x172689[_0x37216d(0x1ef)])));return{'type':_0x45c2b1[_0x37216d(0x374)],'fields':this[_0x37216d(0x43d)](_0x4077a7,_0x361f7d),'rows':_0x383aca[_0x37216d(0x377)],'groups':this[_0x37216d(0x463)](_0x4077a7,_0x361f7d,_0x383aca[_0x37216d(0x377)],_0x383aca['hierarchy']),'hierarchy':_0x383aca[_0x37216d(0x26b)],'frozenFieldCount':typeof _0x361f7d[_0x37216d(0x2c4)][_0x37216d(0x337)]==_0x37216d(0x24a)?_0x361f7d[_0x37216d(0x2c4)][_0x37216d(0x337)]:0x0};}[_0x4e663c(0x339)](_0x554c9d,_0xa61297,_0x1efeed,_0x104c93){const _0x33295b=_0x4e663c;let _0x56fa2b=_0x554c9d['id']+'\x00'+_0xa61297+'\x00'+_0x1efeed,_0x2d820f=this['_getCellRevision'](_0x554c9d['id']),_0x49ff3e=this[_0x33295b(0x456)][_0x33295b(0x1f4)](_0x56fa2b);if(_0x49ff3e&&_0x49ff3e[_0x33295b(0x206)]===this[_0x33295b(0x2ae)]&&_0x49ff3e[_0x33295b(0x2ce)]===this[_0x33295b(0x248)](_0x554c9d['id'])&&_0x49ff3e['orderedRecordIds'][_0x33295b(0x255)]===_0x104c93['length']&&_0x49ff3e[_0x33295b(0x3f9)][_0x33295b(0x361)]((_0x32195b,_0x4cee3f)=>_0x32195b===_0x104c93[_0x4cee3f])){if(_0x49ff3e[_0x33295b(0x34e)]===_0x2d820f&&_0x49ff3e['table']===_0x554c9d)return _0x49ff3e[_0x33295b(0x455)];if(!this[_0x33295b(0x22e)](_0x554c9d['id'],_0x49ff3e[_0x33295b(0x34e)],_0x2d820f,new Set([_0xa61297])))return this['_hierarchyIndexCache'][_0x33295b(0x233)](_0x56fa2b,{..._0x49ff3e,'table':_0x554c9d,'cellRevision':_0x2d820f}),_0x49ff3e[_0x33295b(0x455)];}let _0x1c878d=tt(_0x554c9d,_0xa61297,_0x104c93);return this['_hierarchyIndexCache'][_0x33295b(0x233)](_0x56fa2b,{'table':_0x554c9d,'index':_0x1c878d,'orderedRecordIds':_0x104c93,'globalRevision':this[_0x33295b(0x2ae)],'tableRevision':this[_0x33295b(0x248)](_0x554c9d['id']),'cellRevision':_0x2d820f}),_0x1c878d;}[_0x4e663c(0x463)](_0x5437c8,_0x42db4c,_0x4e67e7,_0x5ee6bb){const _0x66c3e7=_0x4e663c;var _0x53870f;if(!((_0x53870f=_0x42db4c[_0x66c3e7(0x29d)])!=null&&_0x53870f[_0x66c3e7(0x255)]))return[];let _0x5c1e46=new Map(_0x4e67e7[_0x66c3e7(0x19c)](_0x3381cf=>[_0x3381cf[_0x66c3e7(0x1ef)],_0x3381cf])),_0x31b3e4=_0x5ee6bb[_0x66c3e7(0x46a)][_0x66c3e7(0x1fb)](_0x5d4c5a=>{let _0x1b3b89=_0x5c1e46['get'](_0x5d4c5a);return _0x1b3b89?[_0x1b3b89]:[];}),_0x65e45f=this[_0x66c3e7(0x421)](_0x5437c8,_0x42db4c,_0x31b3e4),_0x5e6adb=new Map(_0x5ee6bb[_0x66c3e7(0x3f9)][_0x66c3e7(0x19c)]((_0x1d896f,_0x23dd28)=>[_0x1d896f,_0x23dd28])),_0x3d27d6=_0x17cd3a=>{const _0x4ecad8=_0x66c3e7;let _0x4c65fa=_0x5ee6bb['nodes'][_0x17cd3a],_0x527bbf=_0x5e6adb[_0x4ecad8(0x1f4)](_0x17cd3a)??-0x1;return _0x527bbf<0x0||!_0x4c65fa?[]:_0x5ee6bb[_0x4ecad8(0x3f9)][_0x4ecad8(0x183)](_0x527bbf,_0x4c65fa['subtreeEndIndex']+0x1);},_0x1382c5=_0x5a8610=>{const _0x728257=_0x66c3e7;var _0xa3ed60,_0x182cff;return{..._0x5a8610,'recordIds':(_0xa3ed60=_0x5a8610['children'])!=null&&_0xa3ed60[_0x728257(0x255)]?_0x5a8610['recordIds']:_0x5a8610[_0x728257(0x1c9)]['flatMap'](_0x3d27d6),'children':(_0x182cff=_0x5a8610[_0x728257(0x1c3)])==null?void 0x0:_0x182cff[_0x728257(0x19c)](_0x1382c5)};};return _0x65e45f[_0x66c3e7(0x19c)](_0x1382c5);}['_buildKanban'](_0x4d4109,_0xcfaf75){const _0x588cc7=_0x4e663c;var _0x399630;let _0x561bd3=this[_0x588cc7(0x385)](_0x4d4109,_0xcfaf75),_0xca9163=_0x561bd3?_0x4d4109[_0x588cc7(0x45e)][_0x561bd3]:void 0x0;if(!_0xca9163)return{'type':_0x588cc7(0x491),'viewType':_0x45c2b1['Kanban'],'reason':'invalidGroupField','fieldId':_0xcfaf75[_0x588cc7(0x2c4)][_0x588cc7(0x2fd)]};let _0x25d7e4=this[_0x588cc7(0x357)](_0x4d4109,_0xcfaf75),_0x412a8e=this[_0x588cc7(0x43d)](_0x4d4109,_0xcfaf75),_0x1924c0=_0xcfaf75[_0x588cc7(0x2c4)]??{},_0x22ab37=this[_0x588cc7(0x308)](_0x4d4109,(_0x399630=_0x1924c0['card'])==null?void 0x0:_0x399630[_0x588cc7(0x10e)]),_0x3b72a2=this['_resolveKanbanCardFieldIds'](_0x4d4109,_0xcfaf75,_0xca9163['id'],_0x22ab37),_0x58600a=new Map();if(F(_0x4d4109,_0xca9163['id'])){let _0x3dbcb5=this[_0x588cc7(0x339)](_0x4d4109,_0xca9163['id'],_0xcfaf75['id'],_0x25d7e4['map'](_0x5c377e=>_0x5c377e[_0x588cc7(0x1ef)])),_0x5c05e=new Map();return _0x25d7e4['forEach'](_0x2815e5=>{const _0x3fdbb9=_0x588cc7;let _0xbd4ec2=_0x3dbcb5['parentByRecordId']['get'](_0x2815e5[_0x3fdbb9(0x1ef)])??null,_0x274ca0=_0xbd4ec2??'',_0x3433c3=_0xbd4ec2?_0x4d4109[_0x3fdbb9(0x3f2)][_0xbd4ec2]:void 0x0,_0x48f0c5=_0x5c05e[_0x3fdbb9(0x1f4)](_0x274ca0)??{'key':_0x274ca0,'title':_0x3433c3?String(yt(_0x4d4109,_0x3433c3['id'],_0x4d4109['primaryFieldId'])??_0xbd4ec2):this[_0x3fdbb9(0x2c0)](_0xca9163,_0x274ca0,_0x1924c0),'recordIds':[]};_0x48f0c5[_0x3fdbb9(0x1c9)]['push'](_0x2815e5[_0x3fdbb9(0x1ef)]),_0x5c05e[_0x3fdbb9(0x233)](_0x274ca0,_0x48f0c5);}),{'type':_0x45c2b1['Kanban'],'fields':_0x412a8e,'rows':_0x25d7e4,'groups':[],'groupFieldId':_0xca9163['id'],'titleFieldId':_0x22ab37,'coverFieldId':this[_0x588cc7(0x2d5)](_0x4d4109,_0x1924c0),'cardLayout':_0x1924c0[_0x588cc7(0x217)]==='compose'?_0x588cc7(0x1fa):_0x588cc7(0x499),'showFieldNames':_0x1924c0[_0x588cc7(0x31a)]!==!0x1,'visibleCardFieldIds':_0x3b72a2,'lanes':['',..._0x3dbcb5[_0x588cc7(0x3f9)]][_0x588cc7(0x1fb)](_0x123d5e=>{const _0x44f33b=_0x588cc7;let _0x4165ee=_0x5c05e[_0x44f33b(0x1f4)](_0x123d5e);return _0x4165ee!=null&&_0x4165ee[_0x44f33b(0x1c9)][_0x44f33b(0x255)]?[_0x4165ee]:[];})};}return this[_0x588cc7(0x405)](_0xca9163,_0x1924c0)[_0x588cc7(0x29f)](_0x370875=>_0x58600a[_0x588cc7(0x233)](_0x370875[_0x588cc7(0x407)],{..._0x370875,'recordIds':[]})),_0x25d7e4[_0x588cc7(0x29f)](_0x20cc66=>{const _0x30b3b8=_0x588cc7;this[_0x30b3b8(0x235)](_0xca9163,_0x20cc66['values'][_0xca9163['id']])[_0x30b3b8(0x29f)](_0x4c4af0=>{const _0x4e8fb4=_0x30b3b8;let _0x42a07a=_0x58600a[_0x4e8fb4(0x1f4)](_0x4c4af0)??{'key':_0x4c4af0,'title':this['_kanbanLaneTitle'](_0xca9163,_0x4c4af0,_0x1924c0),'color':this[_0x4e8fb4(0x32a)](_0xca9163,_0x4c4af0,_0x1924c0),'recordIds':[]};_0x42a07a[_0x4e8fb4(0x1c9)][_0x4e8fb4(0x25c)](_0x20cc66['recordId']),_0x58600a[_0x4e8fb4(0x233)](_0x4c4af0,_0x42a07a);});}),{'type':_0x45c2b1[_0x588cc7(0x383)],'fields':_0x412a8e,'rows':_0x25d7e4,'groups':this['_projectGroups'](_0x4d4109,_0xcfaf75,_0x25d7e4),'groupFieldId':_0xca9163['id'],'titleFieldId':_0x22ab37,'coverFieldId':this[_0x588cc7(0x2d5)](_0x4d4109,_0x1924c0),'cardLayout':_0x1924c0[_0x588cc7(0x217)]==='compose'?_0x588cc7(0x1fa):_0x588cc7(0x499),'showFieldNames':_0x1924c0[_0x588cc7(0x31a)]!==!0x1,'visibleCardFieldIds':_0x3b72a2,'lanes':Array[_0x588cc7(0x40e)](_0x58600a[_0x588cc7(0x325)]())};}[_0x4e663c(0x385)](_0x48df56,_0x131c65){const _0x511876=_0x4e663c;var _0x4bb10d;let _0x188f43=(_0x4bb10d=_0x131c65[_0x511876(0x2c4)])==null?void 0x0:_0x4bb10d[_0x511876(0x2fd)];return _0x188f43&&this[_0x511876(0x157)](_0x48df56,_0x188f43)?_0x188f43:this['_findKanbanGroupField'](_0x48df56,_0x43da82=>this['_isAllowedKanbanGroupField'](_0x43da82));}[_0x4e663c(0x3ec)](_0xaa4fbe,_0x379b43){const _0x31a9b1=_0x4e663c;for(let _0x509587 of _0xaa4fbe['fieldOrder']){let _0x155b5c=_0xaa4fbe[_0x31a9b1(0x45e)][_0x509587];if(_0x155b5c&&_0x379b43(_0x155b5c))return _0x155b5c['id'];}return null;}[_0x4e663c(0x157)](_0xd6e68b,_0x37f397){const _0x325554=_0x4e663c;let _0xe1fe0b=_0xd6e68b[_0x325554(0x45e)][_0x37f397];return this[_0x325554(0x14c)](_0xe1fe0b)||F(_0xd6e68b,_0x37f397);}[_0x4e663c(0x14c)](_0x252a07){const _0x17d831=_0x4e663c;return!!_0x252a07&&(_0x252a07[_0x17d831(0x111)]===_0x5f310d['SingleSelect']||_0x252a07[_0x17d831(0x111)]===_0x5f310d['MultiSelect']||_0x252a07['type']===_0x5f310d['Rating']||_0x252a07[_0x17d831(0x111)]===_0x5f310d['Person']||_0x252a07['type']===_0x5f310d[_0x17d831(0x19d)]||_0x252a07[_0x17d831(0x111)]===_0x5f310d[_0x17d831(0x280)]);}[_0x4e663c(0x110)](_0x55c127){const _0x3c150e=_0x4e663c;return _0x55c127[_0x3c150e(0x111)]===_0x5f310d[_0x3c150e(0x1d9)]||_0x55c127[_0x3c150e(0x111)]===_0x5f310d[_0x3c150e(0x3b2)];}['_resolveKanbanCoverFieldId'](_0x1fed7a,_0x111ead){const _0xcbd2a5=_0x4e663c;var _0x543988;let _0xfda80e=_0x111ead[_0xcbd2a5(0x2f1)]??((_0x543988=_0x111ead['card'])==null?void 0x0:_0x543988['coverFieldId'])??null;if(!_0xfda80e)return null;let _0x442473=_0x1fed7a['fields'][_0xfda80e];return _0x442473&&this[_0xcbd2a5(0x11d)](_0x442473)[_0xcbd2a5(0x245)]?_0x442473['id']:null;}[_0x4e663c(0x4b4)](_0x322ef6,_0x33f6d4,_0x4e8f12,_0x5d558f=this['_resolveCardTitleFieldId'](_0x322ef6,((()=>{const _0x41c4b2=_0x4e663c;var _0x22bae3;return(_0x22bae3=_0x33f6d4[_0x41c4b2(0x2c4)])==null||(_0x22bae3=_0x22bae3[_0x41c4b2(0x336)])==null?void 0x0:_0x22bae3[_0x41c4b2(0x10e)];})()))){const _0x1ed6e3=_0x4e663c;var _0x58c25c;let _0xdafe65=_0x33f6d4[_0x1ed6e3(0x2c4)]??{},_0x4ccd5c=(_0x58c25c=_0xdafe65[_0x1ed6e3(0x336)])!=null&&(_0x58c25c=_0x58c25c['fieldIds'])!=null&&_0x58c25c[_0x1ed6e3(0x255)]?_0xdafe65[_0x1ed6e3(0x336)][_0x1ed6e3(0x2c5)]:Qr(_0x322ef6,[_0x5d558f,_0x322ef6['primaryFieldId'],_0x4e8f12]),_0x25d5c3=_0xdafe65[_0x1ed6e3(0x180)]??{};return _0x4ccd5c[_0x1ed6e3(0x20d)](_0x1d54f3=>{const _0x4160ab=_0x1ed6e3;var _0x183b2d,_0x457e86;let _0x2f7121=_0x322ef6[_0x4160ab(0x45e)][_0x1d54f3];return!(!_0x2f7121||_0x2f7121[_0x4160ab(0x39c)]===!0x0||_0x2f7121['type']===_0x5f310d[_0x4160ab(0x44e)]||_0x2f7121['id']===_0x4e8f12||_0x2f7121['id']===_0x5d558f||(_0x183b2d=_0x33f6d4[_0x4160ab(0x180)])!=null&&(_0x183b2d=_0x183b2d[_0x1d54f3])!=null&&_0x183b2d[_0x4160ab(0x35a)]||(_0x457e86=_0x25d5c3[_0x1d54f3])!=null&&_0x457e86[_0x4160ab(0x35a)]);})[_0x1ed6e3(0x3db)]((_0xd93595,_0x22a75e)=>{const _0x3a3ad4=_0x1ed6e3;var _0x4371d6,_0x1c1daa;return(((_0x4371d6=_0x25d5c3[_0xd93595])==null?void 0x0:_0x4371d6[_0x3a3ad4(0x2a5)])??_0x4ccd5c['indexOf'](_0xd93595))-(((_0x1c1daa=_0x25d5c3[_0x22a75e])==null?void 0x0:_0x1c1daa['order'])??_0x4ccd5c[_0x3a3ad4(0x137)](_0x22a75e));});}['_getKanbanConfiguredLanes'](_0x33537d,_0x1d2ca3){const _0x53197f=_0x4e663c;var _0x3575fb;let _0x316def=(Array[_0x53197f(0x454)]((_0x3575fb=_0x33537d['config'])==null?void 0x0:_0x3575fb['options'])?_0x33537d[_0x53197f(0x2c4)][_0x53197f(0x17f)]:[])[_0x53197f(0x1fb)]((_0x52cecd,_0x414c01)=>{const _0x15fcb1=_0x53197f;if(_0x52cecd==null)return[];let _0xd72219=typeof _0x52cecd=='string'?{'id':_0x52cecd,'name':_0x52cecd,'color':void 0x0}:_0x52cecd,_0x11ebcc=String(_0xd72219['id']??_0xd72219[_0x15fcb1(0x269)]??_0x15fcb1(0x3c0)+(_0x414c01+0x1));return[{'key':_0x11ebcc,'title':String(_0xd72219['name']??_0xd72219['id']??_0x11ebcc),'color':this['_kanbanLaneColor'](_0x33537d,_0x11ebcc,_0x1d2ca3)}];});return Object['entries'](_0x1d2ca3[_0x53197f(0x380)]??{})[_0x53197f(0x29f)](([_0x2d8bf7,_0x4cf1c7])=>{const _0xb28ace=_0x53197f;_0x316def['some'](_0x26d6bc=>_0x26d6bc[_0xb28ace(0x407)]===_0x2d8bf7)||_0x316def[_0xb28ace(0x25c)]({'key':_0x2d8bf7,'title':this[_0xb28ace(0x110)](_0x33537d)?_0x4cf1c7[_0xb28ace(0x330)]??this['_kanbanLaneTitle'](_0x33537d,_0x2d8bf7,_0x1d2ca3):this[_0xb28ace(0x2c0)](_0x33537d,_0x2d8bf7,_0x1d2ca3),'color':this['_kanbanLaneColor'](_0x33537d,_0x2d8bf7,_0x1d2ca3)});}),_0x316def;}[_0x4e663c(0x235)](_0xf014aa,_0x494e1d){const _0x101414=_0x4e663c;let _0x4f1120=_0x55a084=>{const _0x2f2595=_0x4619;var _0x2a64a4;let _0x10f96f=_0x55a084==null?'':String(_0x55a084);return!_0x10f96f||!this[_0x2f2595(0x110)](_0xf014aa)?_0x10f96f:((_0x2a64a4=Li(_0xf014aa,_0x10f96f))==null?void 0x0:_0x2a64a4['id'])??_0x10f96f;};if(Array[_0x101414(0x454)](_0x494e1d)){let _0x2b7f88=_0x494e1d['map'](_0x4f1120)[_0x101414(0x20d)](_0x574152=>_0x574152!=='');return _0x2b7f88[_0x101414(0x255)]?_0x2b7f88:[''];}return[_0x4f1120(_0x494e1d)];}[_0x4e663c(0x2c0)](_0x44b6a6,_0x3a0f8d,_0x29ea94){const _0x2725e7=_0x4e663c;if(!_0x3a0f8d)return _0x2725e7(0x16b);let _0x45e0be=Li(_0x44b6a6,_0x3a0f8d);return(_0x45e0be==null?void 0x0:_0x45e0be[_0x2725e7(0x269)])??_0x3a0f8d;}[_0x4e663c(0x32a)](_0x3c8604,_0x5d6977,_0x5a6120){const _0x20c24a=_0x4e663c;var _0x50f4f7;if(this[_0x20c24a(0x110)](_0x3c8604))return(_0x50f4f7=Li(_0x3c8604,_0x5d6977))==null?void 0x0:_0x50f4f7[_0x20c24a(0x416)];}[_0x4e663c(0x18e)](_0x1e087f,_0x16c28c){const _0x4e28e9=_0x4e663c;let _0x312374=this[_0x4e28e9(0x27b)](_0x1e087f,_0x16c28c[_0x4e28e9(0x2c4)]??{}),_0x303d8c=_0x1e087f['fields'][_0x312374[_0x4e28e9(0x1d2)]];if(!_0x303d8c||_0x303d8c[_0x4e28e9(0x111)]!==_0x5f310d['Date']||_0x303d8c['readonly']===!0x0||_0x303d8c[_0x4e28e9(0x39c)]===!0x0||!this[_0x4e28e9(0x11d)](_0x303d8c)[_0x4e28e9(0x193)])return{'type':'invalid','viewType':_0x45c2b1['Calendar'],'reason':'invalidDateField','fieldId':_0x312374[_0x4e28e9(0x1d2)]};let _0x34dce7=_0x312374[_0x4e28e9(0x1be)]?_0x1e087f['fields'][_0x312374['endDateFieldId']]:void 0x0,_0x3153b0=this[_0x4e28e9(0x357)](_0x1e087f,_0x16c28c);return{'type':_0x45c2b1[_0x4e28e9(0x2a4)],'config':_0x312374,'fields':this['_projectFields'](_0x1e087f,_0x16c28c),'rows':_0x3153b0,'groups':this[_0x4e28e9(0x421)](_0x1e087f,_0x16c28c,_0x3153b0),'events':_0x3153b0[_0x4e28e9(0x1fb)](_0x50a1e6=>{const _0x3dff3b=_0x4e28e9;let _0x22df0e=dn(_0x50a1e6[_0x3dff3b(0x325)][_0x312374[_0x3dff3b(0x1d2)]]);if(!Number['isFinite'](_0x22df0e))return[];let _0x3ed397=_0x50a1e6[_0x3dff3b(0x325)][_0x312374[_0x3dff3b(0x1d2)]],_0x55381a=_0x312374['endDateFieldId']==null?void 0x0:_0x50a1e6[_0x3dff3b(0x325)][_0x312374[_0x3dff3b(0x1be)]],_0x9e7c81=_0x312374[_0x3dff3b(0x1be)]==null?void 0x0:dn(_0x55381a),_0x5a96b9=Number[_0x3dff3b(0x402)](_0x9e7c81)?_0x9e7c81:void 0x0;return[{'recordId':_0x50a1e6[_0x3dff3b(0x1ef)],'title':this['_title'](_0x1e087f,_0x50a1e6,_0x312374[_0x3dff3b(0x10e)]),'start':_0x22df0e,'end':_0x5a96b9,'color':this[_0x3dff3b(0x2b4)](_0x1e087f,_0x50a1e6,_0x312374),'startMs':_0x22df0e,'endMs':_0x5a96b9,'allDay':this[_0x3dff3b(0x17a)](_0x303d8c,_0x34dce7,_0x3ed397,_0x55381a),'fieldValues':_0x50a1e6['values']}];})};}[_0x4e663c(0x27b)](_0x2feda4,_0x5e3575){const _0x4b4ddc=_0x4e663c;let _0x3ed0ce=this[_0x4b4ddc(0x201)](_0x2feda4,_0x5e3575[_0x4b4ddc(0x1d2)]),_0x5d4d0d=_0x5e3575[_0x4b4ddc(0x1be)]&&this[_0x4b4ddc(0x44f)](_0x2feda4,_0x5e3575[_0x4b4ddc(0x1be)])?_0x5e3575[_0x4b4ddc(0x1be)]:this['_findCalendarDateFieldId'](_0x2feda4,_0x3ed0ce)??void 0x0,_0x5ba2ef=_0x5e3575[_0x4b4ddc(0x10e)]?_0x2feda4[_0x4b4ddc(0x45e)][_0x5e3575[_0x4b4ddc(0x10e)]]:void 0x0,_0x3acad6=_0x5ba2ef&&_0x5ba2ef[_0x4b4ddc(0x39c)]!==!0x0&&_0x5ba2ef[_0x4b4ddc(0x111)]!==_0x5f310d[_0x4b4ddc(0x44e)]?_0x5e3575[_0x4b4ddc(0x10e)]:_0x2feda4[_0x4b4ddc(0x210)],_0x2fe56a=_0x5e3575[_0x4b4ddc(0x4b8)]===_0x4b4ddc(0x22c)||_0x5e3575['mode']==='week'?_0x5e3575[_0x4b4ddc(0x4b8)]:'month',_0x240849=_0x5e3575['timeslotSize']===_0x4b4ddc(0x39a)||_0x5e3575[_0x4b4ddc(0x1c2)]===_0x4b4ddc(0x1aa)?_0x5e3575['timeslotSize']:'medium',_0x579285=typeof _0x5e3575['timeZone']=='string'&&_0x5e3575[_0x4b4ddc(0x2ea)]['trim']()?_0x5e3575[_0x4b4ddc(0x2ea)]:_0x4b4ddc(0x40a),_0x52cb2f=this[_0x4b4ddc(0x22a)](_0x2feda4,_0x5e3575);return{..._0x5e3575,'startDateFieldId':_0x3ed0ce,'endDateFieldId':_0x5d4d0d,'titleFieldId':_0x3acad6,'mode':_0x2fe56a,'timeslotSize':_0x240849,'timeZone':_0x579285,'displayColor':_0x52cb2f,'fieldSettings':Object[_0x4b4ddc(0x147)](Object[_0x4b4ddc(0x3ee)](_0x5e3575[_0x4b4ddc(0x180)]??{})[_0x4b4ddc(0x20d)](([_0x19b3d0])=>{const _0x5b4d5e=_0x4b4ddc;let _0x37e74f=_0x2feda4[_0x5b4d5e(0x45e)][_0x19b3d0];return!!(_0x37e74f&&_0x37e74f[_0x5b4d5e(0x39c)]!==!0x0&&_0x37e74f[_0x5b4d5e(0x111)]!==_0x5f310d['RecordId']);}))};}['_resolveCalendarDateFieldId'](_0x5d99b6,_0x53a563){const _0xc92cc6=_0x4e663c;return _0x53a563&&this[_0xc92cc6(0x44f)](_0x5d99b6,_0x53a563)?_0x53a563:this[_0xc92cc6(0x191)](_0x5d99b6)??_0x53a563??'';}['_findCalendarDateFieldId'](_0x5c2369,_0x4d49c2){const _0x5b15ed=_0x4e663c;for(let _0x4beaff of _0x5c2369[_0x5b15ed(0x4c0)])if(_0x4beaff!==_0x4d49c2&&this[_0x5b15ed(0x44f)](_0x5c2369,_0x4beaff))return _0x4beaff;return null;}[_0x4e663c(0x44f)](_0x203d28,_0x40aabb){const _0x351433=_0x4e663c;let _0x160f68=_0x203d28[_0x351433(0x45e)][_0x40aabb];return!!_0x160f68&&_0x160f68[_0x351433(0x111)]===_0x5f310d[_0x351433(0x14a)]&&_0x160f68['readonly']!==!0x0&&_0x160f68['system']!==!0x0&&this['_capabilities'](_0x160f68)[_0x351433(0x193)];}[_0x4e663c(0x22a)](_0x37319c,_0x4f2053){const _0x59b831=_0x4e663c;let _0x4e6323=_0x4f2053[_0x59b831(0x2de)];if((_0x4e6323==null?void 0x0:_0x4e6323[_0x59b831(0x111)])===_0x59b831(0x478)){let _0x1560dc=_0x37319c[_0x59b831(0x45e)][_0x4e6323[_0x59b831(0x2be)]];if(_0x1560dc&&_0x1560dc['type']===_0x5f310d['SingleSelect'])return _0x4e6323;}if((_0x4e6323==null?void 0x0:_0x4e6323['type'])===_0x59b831(0x1da)&&typeof _0x4e6323['color']==_0x59b831(0x432)&&_0x4e6323[_0x59b831(0x416)][_0x59b831(0x319)]())return{'type':_0x59b831(0x1da),'color':_0x4e6323[_0x59b831(0x416)]};if(_0x4f2053['colorFieldId']){let _0x523b6e=_0x37319c[_0x59b831(0x45e)][_0x4f2053['colorFieldId']];if(_0x523b6e&&_0x523b6e[_0x59b831(0x111)]===_0x5f310d[_0x59b831(0x1d9)])return{'type':_0x59b831(0x478),'fieldId':_0x4f2053[_0x59b831(0x2d2)]};}return{'type':'custom','color':_0x59b831(0x32f)};}[_0x4e663c(0x2b4)](_0x570f4f,_0x475e64,_0x1316ef){const _0x20b18d=_0x4e663c;let _0x138786=_0x1316ef[_0x20b18d(0x2de)];if((_0x138786==null?void 0x0:_0x138786[_0x20b18d(0x111)])===_0x20b18d(0x478)){var _0x26d434;let _0x434242=_0x570f4f['fields'][_0x138786[_0x20b18d(0x2be)]];if(!_0x434242)return;let _0x3e068f=_0x475e64[_0x20b18d(0x325)][_0x138786['fieldId']],_0x5bec4b=Array[_0x20b18d(0x454)](_0x3e068f)?_0x3e068f[0x0]:_0x3e068f;return _0x5bec4b==null||(_0x26d434=Li(_0x434242,String(_0x5bec4b)))==null?void 0x0:_0x26d434[_0x20b18d(0x416)];}if((_0x138786==null?void 0x0:_0x138786[_0x20b18d(0x111)])===_0x20b18d(0x1da))return _0x138786[_0x20b18d(0x416)];}['_isAllDayCalendarEvent'](_0x5ad206,_0xd12ffe,_0x59f6e4,_0xc9623c){const _0x2119df=_0x4e663c;var _0x4a6bde,_0x26fddf;let _0x1e1b75=((_0x4a6bde=_0x5ad206['config'])==null?void 0x0:_0x4a6bde[_0x2119df(0x122)])===!0x0,_0x16b86f=(_0xd12ffe==null||(_0x26fddf=_0xd12ffe['config'])==null?void 0x0:_0x26fddf[_0x2119df(0x122)])===!0x0;return!_0x1e1b75&&!_0x16b86f;}[_0x4e663c(0x386)](_0x441171,_0x35f039){const _0x5653b2=_0x4e663c;var _0x15b8db,_0x3eff9d;let _0x2c9844=((_0x15b8db=_0x441171[_0x5653b2(0x2c4)])==null?void 0x0:_0x15b8db[_0x5653b2(0x122)])===!0x0,_0x2dcf5f=((_0x3eff9d=_0x35f039[_0x5653b2(0x2c4)])==null?void 0x0:_0x3eff9d[_0x5653b2(0x122)])===!0x0;return!_0x2c9844&&!_0x2dcf5f;}[_0x4e663c(0x46e)](_0x3a04c3,_0x804bfb){const _0x534e08=_0x4e663c;let _0x59a654=this['_normalizeGanttConfig'](_0x3a04c3,_0x804bfb[_0x534e08(0x2c4)]),_0x543938=_0x3a04c3['fields'][_0x59a654['startDateFieldId']];if(!_0x543938||_0x543938[_0x534e08(0x111)]!==_0x5f310d[_0x534e08(0x14a)]||_0x543938[_0x534e08(0x3c7)]===!0x0||_0x543938[_0x534e08(0x39c)]===!0x0||!this['_capabilities'](_0x543938)[_0x534e08(0x177)])return{'type':_0x534e08(0x491),'viewType':_0x45c2b1[_0x534e08(0x194)],'reason':'invalidGanttStartField','fieldId':_0x59a654[_0x534e08(0x1d2)]};let _0x2fa480=_0x3a04c3[_0x534e08(0x45e)][_0x59a654['endDateFieldId']];if(!_0x2fa480||_0x2fa480[_0x534e08(0x111)]!==_0x5f310d[_0x534e08(0x14a)]||_0x2fa480['readonly']===!0x0||_0x2fa480['system']===!0x0||!this[_0x534e08(0x11d)](_0x2fa480)[_0x534e08(0x345)])return{'type':_0x534e08(0x491),'viewType':_0x45c2b1[_0x534e08(0x194)],'reason':_0x534e08(0x4a6),'fieldId':_0x59a654[_0x534e08(0x1be)]};let _0x17c0ad=this[_0x534e08(0x386)](_0x543938,_0x2fa480),_0x197f63=this[_0x534e08(0x357)](_0x3a04c3,_0x804bfb),_0x55bd2a=_0x197f63[_0x534e08(0x1fb)](_0x7e74ef=>{const _0x48e619=_0x534e08;let _0x160ef7=dn(_0x7e74ef[_0x48e619(0x325)][_0x59a654[_0x48e619(0x1d2)]]),_0x3ebff9=dn(_0x7e74ef[_0x48e619(0x325)][_0x59a654[_0x48e619(0x1be)]]);if(!Number['isFinite'](_0x160ef7)||!Number[_0x48e619(0x402)](_0x3ebff9))return[];let _0x2cba18=Math[_0x48e619(0x34c)](_0x160ef7,_0x3ebff9),_0x29c3cc=Math[_0x48e619(0x251)](_0x160ef7,_0x3ebff9),_0x2f0af4=_0x59a654[_0x48e619(0x39b)]==null?void 0x0:Number(_0x7e74ef['values'][_0x59a654[_0x48e619(0x39b)]]);return[{'recordId':_0x7e74ef[_0x48e619(0x1ef)],'title':this[_0x48e619(0x1f9)](_0x3a04c3,_0x7e74ef,_0x59a654[_0x48e619(0x10e)]),'start':_0x2cba18,'end':_0x29c3cc,'color':this[_0x48e619(0x16a)](_0x3a04c3,_0x7e74ef,_0x59a654),'progress':Number[_0x48e619(0x402)](_0x2f0af4)?_0x2f0af4:void 0x0,'workingDayCount':_0x59a654[_0x48e619(0x348)]?Ti(_0x2cba18,_0x29c3cc,_0x59a654[_0x48e619(0x3e9)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x7e74ef['values'][_0x59a654[_0x48e619(0x1ed)]??''])}];}),_0x335909=_0x55bd2a[_0x534e08(0x255)]?Z(Math['min'](..._0x55bd2a[_0x534e08(0x19c)](_0xe8dab6=>_0xe8dab6['start']))-0x5a*oi):Z(Date[_0x534e08(0x2cf)]()-0x5a*oi),_0x3c90b8=_0x55bd2a[_0x534e08(0x255)]?Z(Math[_0x534e08(0x251)](..._0x55bd2a['map'](_0x4b8150=>_0x4b8150[_0x534e08(0x256)]))+0x5b*oi):Z(Date[_0x534e08(0x2cf)]()+0x5b*oi),_0x63322f=_i(_0x59a654[_0x534e08(0x4b6)],_0x335909,_0x3c90b8,_0x59a654[_0x534e08(0x348)]?_0x59a654[_0x534e08(0x3e9)]:void 0x0);return{'type':_0x45c2b1[_0x534e08(0x194)],'fields':this[_0x534e08(0x43d)](_0x3a04c3,{..._0x804bfb,'config':_0x59a654}),'rows':_0x197f63,'groups':this[_0x534e08(0x421)](_0x3a04c3,_0x804bfb,_0x197f63),'config':_0x59a654,'dateRangeAllDay':_0x17c0ad,'timeline':{'scale':_0x59a654[_0x534e08(0x4b6)],'start':_0x335909,'end':_0x3c90b8,'unitWidth':_0x63322f['unitWidth'],'majorHeaders':_0x63322f[_0x534e08(0x38c)],'columns':_0x63322f['columns']},'bars':_0x55bd2a};}[_0x4e663c(0x32d)](_0x3e9bf2,_0x3ca1b7){const _0x156991=_0x4e663c;let _0x51a68f=this[_0x156991(0x3c5)](_0x3e9bf2,_0x3ca1b7[_0x156991(0x1d2)],'start'),_0x557d7d=this['_resolveGanttDateFieldId'](_0x3e9bf2,_0x3ca1b7[_0x156991(0x1be)],_0x156991(0x256))||_0x51a68f,_0x3a55df=_0x3ca1b7[_0x156991(0x10e)]?_0x3e9bf2[_0x156991(0x45e)][_0x3ca1b7[_0x156991(0x10e)]]:void 0x0,_0x4e6053=_0x3a55df&&_0x3a55df['system']!==!0x0&&_0x3a55df[_0x156991(0x111)]!==_0x5f310d[_0x156991(0x44e)]?_0x3ca1b7[_0x156991(0x10e)]:_0x3e9bf2['primaryFieldId'],_0x5f074c=_0x3ca1b7[_0x156991(0x4b6)]===_0x156991(0x2e3)||_0x3ca1b7[_0x156991(0x4b6)]===_0x156991(0x305)||_0x3ca1b7[_0x156991(0x4b6)]===_0x156991(0x3f6)?_0x3ca1b7[_0x156991(0x4b6)]:_0x156991(0x390),_0xb52a8e=gi(_0x3ca1b7[_0x156991(0x3e9)]);return{..._0x3ca1b7,'startDateFieldId':_0x51a68f,'endDateFieldId':_0x557d7d,'titleFieldId':_0x4e6053,'scale':_0x5f074c,'leftPaneWidth':typeof _0x3ca1b7['leftPaneWidth']==_0x156991(0x24a)?_0x3ca1b7[_0x156991(0x3c2)]:void 0x0,'leftPaneCollapsed':_0x3ca1b7[_0x156991(0x1c7)]===!0x0,'showTodayLine':_0x3ca1b7[_0x156991(0x400)]!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x3e9bf2,_0x3ca1b7),'fieldSettings':Object[_0x156991(0x147)](Object[_0x156991(0x3ee)](_0x3ca1b7[_0x156991(0x180)]??{})['filter'](([_0x5e94c9])=>{const _0x4e6b82=_0x156991;let _0x298353=_0x3e9bf2[_0x4e6b82(0x45e)][_0x5e94c9];return!!(_0x298353&&_0x298353['system']!==!0x0&&_0x298353['type']!==_0x5f310d[_0x4e6b82(0x44e)]);})),'workingDaysOnly':_0x3ca1b7[_0x156991(0x348)]===!0x0,'workingDays':_0xb52a8e};}[_0x4e663c(0x3c5)](_0x308451,_0xfb97d2,_0xd3acb){const _0xa2f1ec=_0x4e663c;if(_0xfb97d2&&this[_0xa2f1ec(0x12d)](_0x308451,_0xfb97d2,_0xd3acb)||_0xfb97d2)return _0xfb97d2;for(let _0x41199a of _0x308451[_0xa2f1ec(0x4c0)])if(this['_isGanttDateField'](_0x308451,_0x41199a,_0xd3acb))return _0x41199a;return _0xfb97d2??'';}[_0x4e663c(0x12d)](_0x14eca1,_0x264cbb,_0x13daab){const _0x599779=_0x4e663c;let _0xa13f40=_0x14eca1[_0x599779(0x45e)][_0x264cbb];if(!_0xa13f40||_0xa13f40[_0x599779(0x111)]!==_0x5f310d[_0x599779(0x14a)]||_0xa13f40[_0x599779(0x3c7)]===!0x0||_0xa13f40['system']===!0x0)return!0x1;let _0x25c25f=this[_0x599779(0x11d)](_0xa13f40);return _0x13daab==='start'?_0x25c25f[_0x599779(0x177)]:_0x25c25f[_0x599779(0x345)];}[_0x4e663c(0x2f2)](_0x1c2c7d,_0x93f49b){const _0x42e7c9=_0x4e663c;let _0x2eeb00=_0x93f49b[_0x42e7c9(0x2de)];if((_0x2eeb00==null?void 0x0:_0x2eeb00[_0x42e7c9(0x111)])===_0x42e7c9(0x478)){let _0x221ed7=_0x1c2c7d[_0x42e7c9(0x45e)][_0x2eeb00[_0x42e7c9(0x2be)]];if(_0x221ed7&&_0x221ed7[_0x42e7c9(0x111)]===_0x5f310d[_0x42e7c9(0x1d9)])return _0x2eeb00;}return(_0x2eeb00==null?void 0x0:_0x2eeb00['type'])===_0x42e7c9(0x27a)&&Array[_0x42e7c9(0x454)](_0x2eeb00[_0x42e7c9(0x370)])?{'type':_0x42e7c9(0x27a),'rules':_0x2eeb00['rules'][_0x42e7c9(0x20d)](_0x2645ec=>!!_0x1c2c7d[_0x42e7c9(0x45e)][_0x2645ec[_0x42e7c9(0x2be)]])}:(_0x2eeb00==null?void 0x0:_0x2eeb00[_0x42e7c9(0x111)])===_0x42e7c9(0x1da)&&typeof _0x2eeb00[_0x42e7c9(0x416)]==_0x42e7c9(0x432)&&_0x2eeb00[_0x42e7c9(0x416)][_0x42e7c9(0x319)]()?{'type':'custom','color':_0x2eeb00['color']}:{'type':_0x42e7c9(0x1da),'color':_0x42e7c9(0x40b)};}[_0x4e663c(0x16a)](_0x313216,_0x1a72b4,_0x36d31b){const _0x30e8d0=_0x4e663c;let _0x5a321d=_0x36d31b[_0x30e8d0(0x2de)];if((_0x5a321d==null?void 0x0:_0x5a321d[_0x30e8d0(0x111)])===_0x30e8d0(0x27a)){let _0x406c23=_0x5a321d[_0x30e8d0(0x370)]['find'](_0x4436ac=>this['_matchesGanttColorRule'](_0x313216,_0x1a72b4,_0x4436ac));if(_0x406c23)return _0x406c23[_0x30e8d0(0x416)];}if((_0x5a321d==null?void 0x0:_0x5a321d['type'])===_0x30e8d0(0x478)){let _0x579708=_0x313216[_0x30e8d0(0x45e)][_0x5a321d[_0x30e8d0(0x2be)]];if(_0x579708){var _0x6dd79f;let _0x5e8865=_0x1a72b4[_0x30e8d0(0x325)][_0x5a321d[_0x30e8d0(0x2be)]],_0x232715=Array[_0x30e8d0(0x454)](_0x5e8865)?_0x5e8865[0x0]:_0x5e8865,_0x4ad1a6=_0x232715==null||(_0x6dd79f=Li(_0x579708,String(_0x232715)))==null?void 0x0:_0x6dd79f[_0x30e8d0(0x416)];if(_0x4ad1a6)return _0x4ad1a6;}}return(_0x5a321d==null?void 0x0:_0x5a321d[_0x30e8d0(0x111)])===_0x30e8d0(0x1da)?_0x5a321d[_0x30e8d0(0x416)]:_0x30e8d0(0x40b);}[_0x4e663c(0x3a1)](_0x2f654f,_0x2e1b01,_0x32fa4a){const _0x5d0582=_0x4e663c;let _0x254c62=_0x2f654f['fields'][_0x32fa4a[_0x5d0582(0x2be)]];return _0x254c62?xn(_0x2e1b01[_0x5d0582(0x325)][_0x254c62['id']],_0x32fa4a[_0x5d0582(0x36e)],_0x32fa4a['operand'],_0x254c62,{'dateMode':_0x32fa4a['dateMode']}):!0x1;}[_0x4e663c(0x2ba)](_0x11feb2,_0x23c7be){const _0x1cdc5a=_0x4e663c;let _0x3ee010=this[_0x1cdc5a(0x357)](_0x11feb2,_0x23c7be),_0x116fdc=this[_0x1cdc5a(0x396)](_0x11feb2,_0x23c7be[_0x1cdc5a(0x2c4)]??{}),_0x1ac124=this['_projectFields'](_0x11feb2,_0x23c7be);return{'type':_0x45c2b1['Gallery'],'fields':_0x1ac124,'rows':_0x3ee010,'groups':this[_0x1cdc5a(0x421)](_0x11feb2,_0x23c7be,_0x3ee010),'titleFieldId':_0x116fdc[_0x1cdc5a(0x336)][_0x1cdc5a(0x10e)],'coverFieldId':_0x116fdc[_0x1cdc5a(0x2f1)],'cardLayout':_0x116fdc[_0x1cdc5a(0x217)]??_0x1cdc5a(0x499),'showFieldNames':_0x116fdc['showFieldNames']!==!0x1,'visibleCardFieldIds':this['_resolveGalleryCardFieldIds'](_0x11feb2,_0x23c7be,_0x116fdc),'cardSize':_0x116fdc[_0x1cdc5a(0x3c4)]??_0x1cdc5a(0x25d),'cards':_0x3ee010[_0x1cdc5a(0x19c)](_0x8a28a0=>({'recordId':_0x8a28a0[_0x1cdc5a(0x1ef)],'title':this[_0x1cdc5a(0x1f9)](_0x11feb2,_0x8a28a0,_0x116fdc[_0x1cdc5a(0x336)]['titleFieldId']),'values':_0x8a28a0[_0x1cdc5a(0x325)]}))};}[_0x4e663c(0x396)](_0x2690da,_0x14a866){const _0x15730f=_0x4e663c;let _0x3a87da=_0x14a866[_0x15730f(0x336)]??{'fieldIds':[]},_0x526758=this['_resolveCardTitleFieldId'](_0x2690da,_0x3a87da[_0x15730f(0x10e)]),_0x179d00=this[_0x15730f(0x4a8)](_0x2690da,_0x14a866),_0x47ac40=_0x14a866['cardSize']===_0x15730f(0x316)||_0x14a866['cardSize']===_0x15730f(0x3b9)?_0x14a866[_0x15730f(0x3c4)]:_0x15730f(0x25d);return{..._0x14a866,'coverFieldId':_0x179d00,'cardLayout':_0x14a866[_0x15730f(0x217)]===_0x15730f(0x1fa)?_0x15730f(0x1fa):_0x15730f(0x499),'showFieldNames':_0x14a866[_0x15730f(0x31a)]!==!0x1,'fieldSettings':Object[_0x15730f(0x147)](Object[_0x15730f(0x3ee)](_0x14a866[_0x15730f(0x180)]??{})[_0x15730f(0x20d)](([_0x4aa91e])=>{const _0x254bb0=_0x15730f;let _0x1a9200=_0x2690da[_0x254bb0(0x45e)][_0x4aa91e];return!!(_0x1a9200&&_0x1a9200[_0x254bb0(0x39c)]!==!0x0&&_0x1a9200[_0x254bb0(0x111)]!==_0x5f310d['RecordId']);})),'card':{..._0x3a87da,'titleFieldId':_0x526758,'coverFieldId':_0x179d00,'fieldIds':Array[_0x15730f(0x454)](_0x3a87da['fieldIds'])?_0x3a87da[_0x15730f(0x2c5)]:[]},'cardSize':_0x47ac40};}['_resolveCardTitleFieldId'](_0x1f49ef,_0x2c4589){const _0x14bfe7=_0x4e663c;let _0xa75e6a=_0x2c4589?_0x1f49ef[_0x14bfe7(0x45e)][_0x2c4589]:void 0x0;return _0xa75e6a&&_0xa75e6a[_0x14bfe7(0x39c)]!==!0x0&&_0xa75e6a[_0x14bfe7(0x111)]!==_0x5f310d[_0x14bfe7(0x44e)]?_0xa75e6a['id']:Zr(_0x1f49ef);}['_resolveGalleryCoverFieldId'](_0x1d00b2,_0x54a2bf){const _0x29ccc6=_0x4e663c;var _0x388a6c;let _0x368536=_0x54a2bf[_0x29ccc6(0x2f1)]??((_0x388a6c=_0x54a2bf[_0x29ccc6(0x336)])==null?void 0x0:_0x388a6c[_0x29ccc6(0x2f1)])??null;if(!_0x368536)return null;let _0x2abbd7=_0x1d00b2[_0x29ccc6(0x45e)][_0x368536];return _0x2abbd7&&this['_capabilities'](_0x2abbd7)[_0x29ccc6(0x245)]?_0x2abbd7['id']:null;}[_0x4e663c(0x4ce)](_0x3a45ce,_0x4d1a49,_0xa14e95){const _0x2b0b75=_0x4e663c;var _0x6d80b5,_0x14dfee,_0xaf5945;let _0x472537=_0xa14e95[_0x2b0b75(0x180)]??{},_0x2b8d11=((_0x6d80b5=_0xa14e95[_0x2b0b75(0x336)])==null?void 0x0:_0x6d80b5['titleFieldId'])??Zr(_0x3a45ce),_0x317038=_0xa14e95[_0x2b0b75(0x2f1)]??((_0x14dfee=_0xa14e95[_0x2b0b75(0x336)])==null?void 0x0:_0x14dfee[_0x2b0b75(0x2f1)])??null,_0x486b9e=(_0xaf5945=_0xa14e95['card'])!=null&&(_0xaf5945=_0xaf5945[_0x2b0b75(0x2c5)])!=null&&_0xaf5945[_0x2b0b75(0x255)]?_0xa14e95[_0x2b0b75(0x336)][_0x2b0b75(0x2c5)]:Qr(_0x3a45ce,[_0x2b8d11,_0x317038,_0x3a45ce[_0x2b0b75(0x210)]]);return _0x486b9e[_0x2b0b75(0x20d)](_0x595ac6=>{const _0x5fbd05=_0x2b0b75;var _0x41b58c,_0x3d418b;let _0x5d1dec=_0x3a45ce[_0x5fbd05(0x45e)][_0x595ac6];return!(!_0x5d1dec||_0x5d1dec[_0x5fbd05(0x39c)]===!0x0||_0x5d1dec[_0x5fbd05(0x111)]===_0x5f310d[_0x5fbd05(0x44e)]||_0x5d1dec['id']===_0x2b8d11||_0x5d1dec['id']===_0x317038||(_0x41b58c=_0x4d1a49[_0x5fbd05(0x180)])!=null&&(_0x41b58c=_0x41b58c[_0x595ac6])!=null&&_0x41b58c[_0x5fbd05(0x35a)]||(_0x3d418b=_0x472537[_0x595ac6])!=null&&_0x3d418b['hidden']);})[_0x2b0b75(0x3db)]((_0x19799c,_0x42de29)=>{const _0x35e39f=_0x2b0b75;var _0x1b5966,_0x1dd003;return(((_0x1b5966=_0x472537[_0x19799c])==null?void 0x0:_0x1b5966[_0x35e39f(0x2a5)])??_0x486b9e['indexOf'](_0x19799c))-(((_0x1dd003=_0x472537[_0x42de29])==null?void 0x0:_0x1dd003['order'])??_0x486b9e['indexOf'](_0x42de29));});}['_projectFields'](_0x2d5398,_0x5cf052){const _0x28c24c=_0x4e663c;var _0x5d180c;return((_0x5d180c=_0x5cf052['fieldOrder'])!=null&&_0x5d180c['length']?_0x5cf052['fieldOrder']:_0x2d5398[_0x28c24c(0x4c0)])[_0x28c24c(0x1fb)](_0x51dcec=>{const _0x4986b9=_0x28c24c;var _0x2a37f4;let _0x5e355e=_0x2d5398[_0x4986b9(0x45e)][_0x51dcec],_0x21e7c4=((_0x2a37f4=_0x5cf052[_0x4986b9(0x180)])==null?void 0x0:_0x2a37f4[_0x51dcec])??{};return!_0x5e355e||_0x5e355e['system']===!0x0||_0x5e355e['type']===_0x5f310d[_0x4986b9(0x44e)]||_0x21e7c4[_0x4986b9(0x35a)]?[]:[{'id':_0x5e355e['id'],'name':_0x5e355e[_0x4986b9(0x269)],'description':_0x5e355e[_0x4986b9(0x15b)],'type':_0x5e355e[_0x4986b9(0x111)],'config':_0x5e355e[_0x4986b9(0x2c4)],'width':_0x21e7c4[_0x4986b9(0x21b)],'setting':_0x21e7c4}];});}[_0x4e663c(0x357)](_0x2baad3,_0x4e7650){const _0x4696e7=_0x4e663c;var _0xad3cf3;return I(_0x4696e7(0x36a),()=>{const _0x1f9613=_0x4696e7;var _0x5d9fd7,_0x11e5f4;let _0x217f95=this[_0x1f9613(0x465)](_0x2baad3),_0x147234=this[_0x1f9613(0x48f)](_0x2baad3['id'],_0x4e7650),_0x384ee9=this[_0x1f9613(0x25a)](_0x2baad3['id']),_0x1ed53d=this[_0x1f9613(0x365)][_0x1f9613(0x1f4)](_0x147234);if(_0x1ed53d&&_0x1ed53d['globalRevision']===this[_0x1f9613(0x2ae)]&&_0x1ed53d[_0x1f9613(0x2ce)]===this['_getTableRevision'](_0x2baad3['id'])){if(_0x1ed53d['cellRevision']===_0x384ee9&&_0x1ed53d[_0x1f9613(0x4bb)]===_0x217f95)return _0x1ed53d['rows'];if(_0x1ed53d['cellRevision']!==_0x384ee9&&!this['_cellInvalidationsTouchFields'](_0x2baad3['id'],_0x1ed53d[_0x1f9613(0x34e)],_0x384ee9,this[_0x1f9613(0x468)](_0x4e7650))){let _0x16f427=_0x1ed53d[_0x1f9613(0x377)]===_0x1ed53d['baseRows']?_0x217f95:this['_patchCachedProjectedRows'](_0x1ed53d['rows'],_0x217f95);if(_0x16f427)return this[_0x1f9613(0x365)][_0x1f9613(0x233)](_0x147234,{..._0x1ed53d,'rows':_0x16f427,'baseRows':_0x217f95,'cellRevision':_0x384ee9}),_0x16f427;}}let _0x428374=I(_0x1f9613(0x205),()=>this[_0x1f9613(0x41b)](_0x2baad3,_0x4e7650,this[_0x1f9613(0x3b8)](_0x2baad3,_0x4e7650,_0x217f95)),{'tableId':_0x2baad3['id'],'viewId':_0x4e7650==null?void 0x0:_0x4e7650['id'],'viewType':_0x4e7650==null?void 0x0:_0x4e7650[_0x1f9613(0x111)],'rows':_0x217f95['length'],'filters':(_0x4e7650==null||(_0x5d9fd7=_0x4e7650[_0x1f9613(0x20d)])==null?void 0x0:_0x5d9fd7[_0x1f9613(0x495)][_0x1f9613(0x255)])??0x0,'sorts':(_0x4e7650==null||(_0x11e5f4=_0x4e7650[_0x1f9613(0x3db)])==null?void 0x0:_0x11e5f4['length'])??0x0});return this[_0x1f9613(0x365)][_0x1f9613(0x233)](_0x147234,{'table':_0x2baad3,'rows':_0x428374,'baseRows':_0x217f95,'globalRevision':this[_0x1f9613(0x2ae)],'tableRevision':this[_0x1f9613(0x248)](_0x2baad3['id']),'cellRevision':_0x384ee9}),_0x428374;},{'tableId':_0x2baad3['id'],'viewId':_0x4e7650==null?void 0x0:_0x4e7650['id'],'viewType':_0x4e7650==null?void 0x0:_0x4e7650[_0x4696e7(0x111)],'records':((_0xad3cf3=_0x2baad3[_0x4696e7(0x36b)])==null?void 0x0:_0xad3cf3[_0x4696e7(0x255)])??Object[_0x4696e7(0x467)](_0x2baad3[_0x4696e7(0x3f2)]??{})[_0x4696e7(0x255)]});}[_0x4e663c(0x465)](_0x50707b){const _0x42f9e6=_0x4e663c;var _0x54af39;return I(_0x42f9e6(0x1a8),()=>{const _0x348d3c=_0x42f9e6;var _0xd3621b;let _0x16fc9a=this[_0x348d3c(0x25a)](_0x50707b['id']),_0x56f6db=this[_0x348d3c(0x285)]['get'](_0x50707b['id']);if(_0x56f6db&&_0x56f6db['globalRevision']===this['_globalRevision']&&_0x56f6db[_0x348d3c(0x2ce)]===this[_0x348d3c(0x248)](_0x50707b['id'])){if(_0x56f6db[_0x348d3c(0x34e)]===_0x16fc9a&&fi(_0x56f6db[_0x348d3c(0x291)],_0x50707b))return _0x56f6db[_0x348d3c(0x291)]=_0x50707b,_0x56f6db['rows'];let _0x32281=this[_0x348d3c(0x1f2)](_0x50707b,_0x56f6db,_0x16fc9a);if(_0x32281)return _0x32281;}ui(_0x50707b)||L(_0x50707b);let _0xef9966=(_0xd3621b=_0x50707b[_0x348d3c(0x36b)])!=null&&_0xd3621b[_0x348d3c(0x255)]?_0x50707b[_0x348d3c(0x36b)]:hi(_0x50707b[_0x348d3c(0x3f2)]),_0x51d28b=I(_0x348d3c(0x45d),()=>{const _0x5f53ec=_0x348d3c;let _0x2c8140=[];for(let _0x598dce of _0xef9966){let _0x2f0998=_0x50707b[_0x5f53ec(0x3f2)][_0x598dce];if(!_0x2f0998)continue;let _0x5be969={};for(let _0x270495 of _0x50707b['fieldOrder'])_0x5be969[_0x270495]=yt(_0x50707b,_0x2f0998['id'],_0x270495);_0x2c8140['push']({'recordId':_0x2f0998['id'],'values':_0x5be969});}return _0x2c8140;},{'tableId':_0x50707b['id'],'records':_0xef9966['length'],'fields':_0x50707b[_0x348d3c(0x4c0)][_0x348d3c(0x255)]});return this[_0x348d3c(0x285)][_0x348d3c(0x233)](_0x50707b['id'],{'table':_0x50707b,'rows':_0x51d28b,'rowIndexById':li(_0x51d28b),'globalRevision':this[_0x348d3c(0x2ae)],'tableRevision':this[_0x348d3c(0x248)](_0x50707b['id']),'cellRevision':_0x16fc9a}),_0x51d28b;},{'tableId':_0x50707b['id'],'records':((_0x54af39=_0x50707b['recordOrder'])==null?void 0x0:_0x54af39[_0x42f9e6(0x255)])??Object['keys'](_0x50707b[_0x42f9e6(0x3f2)]??{})[_0x42f9e6(0x255)],'fields':_0x50707b['fieldOrder'][_0x42f9e6(0x255)]});}[_0x4e663c(0x1f2)](_0x36b4f7,_0xd12cff,_0x54a860){const _0x3a9c53=_0x4e663c;let _0x27aaf7=(this[_0x3a9c53(0x11c)][_0x3a9c53(0x1f4)](_0x36b4f7['id'])??[])[_0x3a9c53(0x20d)](_0x3e44de=>_0x3e44de[_0x3a9c53(0x187)]>_0xd12cff['cellRevision']&&_0x3e44de[_0x3a9c53(0x187)]<=_0x54a860);if(!_0x27aaf7[_0x3a9c53(0x255)])return _0xd12cff[_0x3a9c53(0x291)]===_0x36b4f7?_0xd12cff[_0x3a9c53(0x377)]:null;let _0x4c578c=_0xd12cff['rows'],_0x5e72de=new Map();for(let _0xdf6f6b of _0x27aaf7){let _0x397522=_0x5e72de[_0x3a9c53(0x1f4)](_0xdf6f6b['recordId']);_0x397522||(_0x397522=new Set(),_0x5e72de['set'](_0xdf6f6b[_0x3a9c53(0x1ef)],_0x397522)),_0x397522['add'](_0xdf6f6b['fieldId']);}for(let [_0x592a78,_0xd57179]of _0x5e72de){if(!_0x36b4f7[_0x3a9c53(0x3f2)][_0x592a78])return null;let _0x116fa=_0xd12cff[_0x3a9c53(0x40f)][_0x3a9c53(0x1f4)](_0x592a78);if(_0x116fa==null)return null;_0x4c578c===_0xd12cff[_0x3a9c53(0x377)]&&(_0x4c578c=[..._0xd12cff[_0x3a9c53(0x377)]]);let _0x349fbb=_0x4c578c[_0x116fa],_0x309d05={..._0x349fbb[_0x3a9c53(0x325)]};_0xd57179[_0x3a9c53(0x29f)](_0x18e4d5=>{_0x309d05[_0x18e4d5]=yt(_0x36b4f7,_0x592a78,_0x18e4d5);}),_0x4c578c[_0x116fa]={..._0x349fbb,'values':_0x309d05};}let _0x6e69b5={'table':_0x36b4f7,'rows':_0x4c578c,'rowIndexById':_0xd12cff['rowIndexById'],'globalRevision':this['_globalRevision'],'tableRevision':this['_getTableRevision'](_0x36b4f7['id']),'cellRevision':_0x54a860};return this[_0x3a9c53(0x285)][_0x3a9c53(0x233)](_0x36b4f7['id'],_0x6e69b5),this[_0x3a9c53(0x11c)][_0x3a9c53(0x233)](_0x36b4f7['id'],(this[_0x3a9c53(0x11c)][_0x3a9c53(0x1f4)](_0x36b4f7['id'])??[])['filter'](_0x31f51e=>_0x31f51e[_0x3a9c53(0x187)]>Math[_0x3a9c53(0x251)](0x0,_0x54a860-0x100))),_0x4c578c;}[_0x4e663c(0x3d8)](_0x4ff37e,_0x5e7bed){const _0x1a0bb9=_0x4e663c;let _0x38bd3d=new Map(_0x5e7bed[_0x1a0bb9(0x19c)](_0x5514db=>[_0x5514db[_0x1a0bb9(0x1ef)],_0x5514db])),_0x15f285=!0x1,_0x459d94=_0x4ff37e[_0x1a0bb9(0x19c)](_0x235e89=>{const _0x3aa845=_0x1a0bb9;let _0x12c5cf=_0x38bd3d['get'](_0x235e89[_0x3aa845(0x1ef)]);return _0x12c5cf?_0x12c5cf===_0x235e89?_0x235e89:(_0x15f285=!0x0,_0x12c5cf):_0x235e89;});return _0x15f285?_0x459d94:_0x4ff37e;}[_0x4e663c(0x22e)](_0x483fd7,_0x1d2535,_0x7b37e6,_0x5cbf5f){const _0x1534f9=_0x4e663c;return!_0x5cbf5f[_0x1534f9(0x263)]||_0x1d2535===_0x7b37e6?!0x1:_0x7b37e6-_0x1d2535>0x100||(this['_cellInvalidations'][_0x1534f9(0x1f4)](_0x483fd7)??[])[_0x1534f9(0x48c)](_0x1b0bd6=>_0x1b0bd6[_0x1534f9(0x187)]>_0x1d2535&&_0x1b0bd6[_0x1534f9(0x187)]<=_0x7b37e6&&_0x5cbf5f['has'](_0x1b0bd6['fieldId']));}[_0x4e663c(0x468)](_0x2d4805){const _0x2a6445=_0x4e663c;var _0x15ef9c,_0x3f0415;let _0x49d3ab=new Set();return _0x2d4805==null||(_0x15ef9c=_0x2d4805[_0x2a6445(0x20d)])==null||_0x15ef9c[_0x2a6445(0x495)]['forEach'](_0xc5a9a9=>_0x49d3ab[_0x2a6445(0x133)](_0xc5a9a9['fieldId'])),_0x2d4805==null||(_0x3f0415=_0x2d4805[_0x2a6445(0x3db)])==null||_0x3f0415[_0x2a6445(0x29f)](_0x50d7f5=>_0x49d3ab[_0x2a6445(0x133)](_0x50d7f5['fieldId'])),_0x49d3ab;}['_groupProjectionFieldIds'](_0x471086){const _0x8af187=_0x4e663c;var _0x576da2;let _0x578382=this['_filterSortFieldIds'](_0x471086);return(_0x576da2=_0x471086[_0x8af187(0x29d)])==null||_0x576da2[_0x8af187(0x29f)](_0x32cb6a=>_0x578382['add'](_0x32cb6a[_0x8af187(0x2be)])),_0x578382;}[_0x4e663c(0x3b8)](_0x3ec24c,_0x5b368f,_0x4142e4){const _0x3732e5=_0x4e663c;let _0x140f0d=_0x5b368f==null?void 0x0:_0x5b368f['filter'];if(!(_0x140f0d!=null&&_0x140f0d['conditions'][_0x3732e5(0x255)]))return _0x4142e4;let _0x39a2bb=_0x140f0d[_0x3732e5(0x495)]['filter'](_0x11b28e=>!Ii(_0x11b28e));return _0x39a2bb[_0x3732e5(0x255)]?_0x4142e4['filter'](_0xba8519=>{const _0x2ca884=_0x3732e5;if(_0x140f0d[_0x2ca884(0x2df)]===_0x231ccc['OR']){for(let _0x2db43f of _0x39a2bb){let _0x3eb76d=_0x3ec24c[_0x2ca884(0x45e)][_0x2db43f[_0x2ca884(0x2be)]];if(!_0x3eb76d||this['_fieldRegistry'][_0x2ca884(0x1f4)](_0x3eb76d[_0x2ca884(0x111)])[_0x2ca884(0x20d)](_0xba8519[_0x2ca884(0x325)][_0x3eb76d['id']],_0x2db43f['operator'],_0x2db43f[_0x2ca884(0x440)],_0x3eb76d))return!0x0;}return!0x1;}for(let _0x1bc4a0 of _0x39a2bb){let _0x327945=_0x3ec24c[_0x2ca884(0x45e)][_0x1bc4a0[_0x2ca884(0x2be)]];if(_0x327945&&!this[_0x2ca884(0x13f)]['get'](_0x327945['type'])[_0x2ca884(0x20d)](_0xba8519[_0x2ca884(0x325)][_0x327945['id']],_0x1bc4a0[_0x2ca884(0x36e)],_0x1bc4a0[_0x2ca884(0x440)],_0x327945))return!0x1;}return!0x0;}):_0x4142e4;}[_0x4e663c(0x41b)](_0x77f492,_0x3e0cf8,_0x5cc7d0){const _0x495903=_0x4e663c;let _0x1fa1e6=(_0x3e0cf8==null?void 0x0:_0x3e0cf8[_0x495903(0x3db)])??[];if(!_0x1fa1e6[_0x495903(0x255)])return _0x5cc7d0;let _0x3b83ae=_0x1fa1e6[_0x495903(0x1fb)](_0x28879a=>{const _0x498e1a=_0x495903;let _0x353873=_0x77f492['fields'][_0x28879a[_0x498e1a(0x2be)]];return _0x353873?[{..._0x28879a,'field':_0x353873}]:[];});return _0x3b83ae['length']?this['_canUseFastSort'](_0x3b83ae)?this['_fastSortRows'](_0x3b83ae,_0x5cc7d0):[..._0x5cc7d0][_0x495903(0x3db)]((_0x3b7818,_0x11fedd)=>{const _0xcd2d04=_0x495903;for(let _0x5ba2c6 of _0x3b83ae){let _0x37e93b=_0x5ba2c6[_0xcd2d04(0x163)],_0x2e0c77=this[_0xcd2d04(0x13f)][_0xcd2d04(0x1f4)](_0x37e93b['type'])[_0xcd2d04(0x1af)](_0x3b7818['values'][_0x37e93b['id']],_0x11fedd[_0xcd2d04(0x325)][_0x37e93b['id']],_0x37e93b);if(_0x2e0c77!==0x0)return _0x5ba2c6[_0xcd2d04(0x4c3)]===_0x4012fd[_0xcd2d04(0x16c)]?-_0x2e0c77:_0x2e0c77;}return 0x0;}):_0x5cc7d0;}[_0x4e663c(0x257)](_0x4d92d9){const _0x1aa135=_0x4e663c;return _0x4d92d9['every'](_0x51c814=>ai['has'](_0x51c814[_0x1aa135(0x163)]['type']));}['_fastSortRows'](_0x1d2d11,_0x46b547){const _0x47496f=_0x4e663c;return _0x46b547['map']((_0x4cedf9,_0x22aceb)=>({'row':_0x4cedf9,'index':_0x22aceb,'keys':_0x1d2d11['map'](_0x4e6174=>_0x4cedf9[_0x47496f(0x325)][_0x4e6174['fieldId']])}))[_0x47496f(0x3db)]((_0x4d8454,_0x463dc5)=>{const _0x2faa0b=_0x47496f;for(let _0x617e30=0x0;_0x617e30<_0x1d2d11[_0x2faa0b(0x255)];_0x617e30++){let _0x1ed436=Fi(_0x4d8454[_0x2faa0b(0x467)][_0x617e30],_0x463dc5[_0x2faa0b(0x467)][_0x617e30]);if(_0x1ed436!==0x0)return _0x1d2d11[_0x617e30][_0x2faa0b(0x4c3)]===_0x4012fd[_0x2faa0b(0x16c)]?-_0x1ed436:_0x1ed436;}return _0x4d8454[_0x2faa0b(0x455)]-_0x463dc5[_0x2faa0b(0x455)];})['map'](_0x10c8a0=>_0x10c8a0[_0x47496f(0x302)]);}[_0x4e663c(0x421)](_0x204f9d,_0x5a4e5c,_0x15e9f1){const _0x2f4572=_0x4e663c;var _0x2b78d2;return I(_0x2f4572(0x2a1),()=>{const _0x16f085=_0x2f4572;var _0x424222;if(!((_0x424222=_0x5a4e5c['group'])!=null&&_0x424222[_0x16f085(0x255)]))return[];let _0x4f665b=_0x5a4e5c[_0x16f085(0x29d)][_0x16f085(0x20d)](_0x3a30cc=>_0x204f9d[_0x16f085(0x45e)][_0x3a30cc[_0x16f085(0x2be)]]);if(!_0x4f665b[_0x16f085(0x255)])return[];let _0x3df92c=this['_groupsCacheKey'](_0x204f9d['id'],_0x5a4e5c,_0x4f665b),_0x584049=this['_getCellRevision'](_0x204f9d['id']),_0xa766bf=this[_0x16f085(0x11a)][_0x16f085(0x1f4)](_0x3df92c);if(_0xa766bf&&_0xa766bf[_0x16f085(0x206)]===this[_0x16f085(0x2ae)]&&_0xa766bf[_0x16f085(0x2ce)]===this[_0x16f085(0x248)](_0x204f9d['id'])){if(_0xa766bf[_0x16f085(0x34e)]===_0x584049&&_0xa766bf[_0x16f085(0x377)]===_0x15e9f1)return _0xa766bf[_0x16f085(0x184)];if(_0xa766bf['cellRevision']!==_0x584049&&!this[_0x16f085(0x22e)](_0x204f9d['id'],_0xa766bf[_0x16f085(0x34e)],_0x584049,this[_0x16f085(0x1b2)](_0x5a4e5c)))return this['_projectedGroupsCache'][_0x16f085(0x233)](_0x3df92c,{..._0xa766bf,'rows':_0x15e9f1,'cellRevision':_0x584049}),_0xa766bf['groups'];}let _0x4ef45c=new Map();for(let _0x4a2c42 of _0x15e9f1){let _0x139f1a=_0x4ef45c,_0xbf9d6d='';for(let _0x573c8e=0x0;_0x573c8e<_0x4f665b[_0x16f085(0x255)];_0x573c8e++){let _0x232d0f=_0x4f665b[_0x573c8e],_0x20dad5=_0x4a2c42[_0x16f085(0x325)][_0x232d0f[_0x16f085(0x2be)]],_0x2e5ffe=ci(_0x20dad5),_0x19bd75=_0x232d0f['fieldId']+'\x00'+_0x2e5ffe,_0x224720=_0xbf9d6d+'/'+_0x232d0f[_0x16f085(0x2be)]+':'+_0x2e5ffe,_0x233577=_0x139f1a['get'](_0x19bd75);_0x233577||(_0x233577={'key':_0x2e5ffe,'value':_0x20dad5,'path':_0x224720,'label':_0x2e5ffe||_0x16f085(0x2f8),'fieldId':_0x232d0f[_0x16f085(0x2be)],'level':_0x573c8e,'recordIds':[],'children':new Map()},_0x139f1a[_0x16f085(0x233)](_0x19bd75,_0x233577)),_0x233577[_0x16f085(0x1c9)]['push'](_0x4a2c42[_0x16f085(0x1ef)]),_0x139f1a=_0x233577[_0x16f085(0x1c3)],_0xbf9d6d=_0x224720;}}let _0x18a704=this['_materializeGroups'](_0x4f665b,_0x4ef45c,0x0);return this['_projectedGroupsCache'][_0x16f085(0x233)](_0x3df92c,{'table':_0x204f9d,'rows':_0x15e9f1,'groups':_0x18a704,'globalRevision':this[_0x16f085(0x2ae)],'tableRevision':this[_0x16f085(0x248)](_0x204f9d['id']),'cellRevision':_0x584049}),_0x18a704;},{'tableId':_0x204f9d['id'],'viewId':_0x5a4e5c['id'],'viewType':_0x5a4e5c[_0x2f4572(0x111)],'rows':_0x15e9f1[_0x2f4572(0x255)],'groupFields':((_0x2b78d2=_0x5a4e5c[_0x2f4572(0x29d)])==null?void 0x0:_0x2b78d2[_0x2f4572(0x255)])??0x0});}['_materializeGroups'](_0x19ef91,_0x3fa563,_0x5adca6){const _0x5da86b=_0x4e663c;var _0x5b5e42;let _0x1bb32d=Array[_0x5da86b(0x40e)](_0x3fa563[_0x5da86b(0x325)]()),_0x356a0b=(_0x5b5e42=_0x19ef91[_0x5adca6])==null?void 0x0:_0x5b5e42[_0x5da86b(0x4c3)];return _0x356a0b&&_0x1bb32d['sort']((_0x2b7ebb,_0x5be46c)=>{const _0x141118=_0x5da86b;let _0x37b9a0=_0x2b7ebb[_0x141118(0x407)][_0x141118(0x3f7)](_0x5be46c['key']);return _0x356a0b===_0x4012fd[_0x141118(0x16c)]?-_0x37b9a0:_0x37b9a0;}),_0x1bb32d['map'](_0x18064c=>({'key':_0x18064c[_0x5da86b(0x407)],'value':_0x18064c['value'],'path':_0x18064c[_0x5da86b(0x223)],'label':_0x18064c['label'],'fieldId':_0x18064c['fieldId'],'level':_0x18064c[_0x5da86b(0x1b5)],'recordIds':_0x18064c[_0x5da86b(0x1c9)],'children':this[_0x5da86b(0x1c5)](_0x19ef91,_0x18064c[_0x5da86b(0x1c3)],_0x5adca6+0x1)}));}['_title'](_0x2e20e3,_0x271dd8,_0x3539f2){const _0x497cee=_0x4e663c;let _0xf7b23e=_0x3539f2??_0x2e20e3[_0x497cee(0x210)],_0x23e674=_0x271dd8['values'][_0xf7b23e];return _0x23e674==null?'':String(_0x23e674);}[_0x4e663c(0x3ab)](_0x3cec50){const _0x1a2163=_0x4e663c;if(Array[_0x1a2163(0x454)](_0x3cec50))return _0x3cec50[_0x1a2163(0x19c)](String);if(typeof _0x3cec50==_0x1a2163(0x432)&&_0x3cec50)return[_0x3cec50];}[_0x4e663c(0x11d)](_0x3ef007){const _0x26ec34=_0x4e663c;return this[_0x26ec34(0x13f)][_0x26ec34(0x1f4)](_0x3ef007['type'])[_0x26ec34(0x4b9)](_0x3ef007);}};si=X([Y(0x0,_0x3d5ad9(mr))],si);function ci(_0x24535c){return _0x24535c==null?'':String(_0x24535c);}function li(_0x5b86c4){const _0x16015f=_0x4e663c;return new Map(_0x5b86c4['map']((_0x151577,_0x15f7c9)=>[_0x151577[_0x16015f(0x1ef)],_0x15f7c9]));}function ui(_0x685657){const _0x463013=_0x4e663c;return!!(Array[_0x463013(0x454)](_0x685657['recordOrder'])&&_0x685657[_0x463013(0x200)]&&_0x685657[_0x463013(0x2e1)]&&_0x685657['colIndex']&&_0x685657[_0x463013(0x48b)]&&_0x685657[_0x463013(0x171)]);}function di(_0x17ec02){const _0x55f584=_0x4e663c;let _0x13e04f=(_0x17ec02==null?void 0x0:_0x17ec02['conditions'][_0x55f584(0x20d)](_0x4bac50=>!Ii(_0x4bac50)))??[];return!_0x17ec02||!_0x13e04f[_0x55f584(0x255)]?null:{'conjunction':_0x17ec02[_0x55f584(0x2df)],'conditions':_0x13e04f[_0x55f584(0x19c)](_0x9c1d04=>({'fieldId':_0x9c1d04[_0x55f584(0x2be)],'operator':_0x9c1d04[_0x55f584(0x36e)],'operand':_0x9c1d04['operand']}))};}function fi(_0xe3adf3,_0x4abe0c){const _0x595993=_0x4e663c;return _0xe3adf3[_0x595993(0x3f2)]===_0x4abe0c['records']&&_0xe3adf3['recordOrder']===_0x4abe0c[_0x595993(0x36b)]&&_0xe3adf3['fields']===_0x4abe0c[_0x595993(0x45e)]&&_0xe3adf3['fieldOrder']===_0x4abe0c[_0x595993(0x4c0)]&&_0xe3adf3[_0x595993(0x171)]===_0x4abe0c[_0x595993(0x171)]&&_0xe3adf3[_0x595993(0x200)]===_0x4abe0c[_0x595993(0x200)]&&_0xe3adf3[_0x595993(0x2e1)]===_0x4abe0c['rowId']&&_0xe3adf3['colIndex']===_0x4abe0c['colIndex']&&_0xe3adf3[_0x595993(0x48b)]===_0x4abe0c[_0x595993(0x48b)];}function pi(_0x332d57){const _0x2359fb=_0x4e663c;return _0x332d57!=null&&_0x332d57[_0x2359fb(0x255)]?_0x332d57[_0x2359fb(0x19c)](_0x3fe90f=>({'fieldId':_0x3fe90f[_0x2359fb(0x2be)],'direction':_0x3fe90f['direction']})):null;}function mi(_0x4ebaad){const _0x573d75=_0x4e663c;if(typeof _0x4ebaad!=_0x573d75(0x37c)||!_0x4ebaad)return JSON[_0x573d75(0x1ff)](_0x4ebaad)??'undefined';if(Array[_0x573d75(0x454)](_0x4ebaad))return'['+_0x4ebaad[_0x573d75(0x19c)](mi)[_0x573d75(0x2e9)](',')+']';let _0xee6561=_0x4ebaad;return'{'+Object[_0x573d75(0x467)](_0xee6561)[_0x573d75(0x3db)]()[_0x573d75(0x19c)](_0x2e7e1b=>JSON[_0x573d75(0x1ff)](_0x2e7e1b)+':'+mi(_0xee6561[_0x2e7e1b]))[_0x573d75(0x2e9)](',')+'}';}function hi(_0x1b4239){const _0x66fc00=_0x4e663c;let _0x12a4a4=Object[_0x66fc00(0x325)](_0x1b4239)[_0x66fc00(0x3db)]((_0x396ce9,_0x4f4f07)=>_0x396ce9[_0x66fc00(0x1b7)]['localeCompare'](_0x4f4f07[_0x66fc00(0x1b7)])),_0xb3024=[];for(let _0x5c2db0 of _0x12a4a4)_0xb3024[_0x66fc00(0x25c)](_0x5c2db0['id']);return _0xb3024;}function gi(_0x5564ee){const _0x5bdd3e=_0x4e663c;return{'weekdays':Array[_0x5bdd3e(0x454)](_0x5564ee==null?void 0x0:_0x5564ee[_0x5bdd3e(0x371)])&&_0x5564ee[_0x5bdd3e(0x371)][_0x5bdd3e(0x255)]?[...new Set(_0x5564ee[_0x5bdd3e(0x371)][_0x5bdd3e(0x20d)](_0x4bcffd=>Number[_0x5bdd3e(0x3fc)](_0x4bcffd)&&_0x4bcffd>=0x1&&_0x4bcffd<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array['isArray'](_0x5564ee==null?void 0x0:_0x5564ee[_0x5bdd3e(0x125)])?_0x5564ee[_0x5bdd3e(0x125)][_0x5bdd3e(0x1fb)](_0x555106=>!_0x555106||!Number[_0x5bdd3e(0x402)](_0x555106[_0x5bdd3e(0x4ba)])?[]:[{'id':String(_0x555106['id']||'exception-'+_0x555106[_0x5bdd3e(0x4ba)]),'date':Z(Number(_0x555106[_0x5bdd3e(0x4ba)])),'name':String(_0x555106[_0x5bdd3e(0x269)]||'Working\x20day'),'type':_0x555106[_0x5bdd3e(0x111)]===_0x5bdd3e(0x30f)?_0x5bdd3e(0x30f):'off'}]):[]};}function _i(_0x552ee9,_0x17e044,_0x2ba903,_0x4aba2e){let _0x21547b=xi(_0x552ee9,_0x17e044),_0x511407=Si(_0x552ee9,_0x2ba903),_0x5bdcb4=vi(_0x552ee9,_0x21547b,_0x511407,_0x4aba2e);return{'scale':_0x552ee9,'start':_0x21547b,'end':_0x511407,'unitWidth':bi(_0x552ee9),'majorHeaders':yi(_0x552ee9,_0x21547b,_0x511407),'columns':_0x5bdcb4};}function vi(_0x4ea9dc,_0x2fa905,_0x32910f,_0x2f66ac){const _0xd5e3db=_0x4e663c;let _0x1b84ed=[],_0x2e73ab=_0x2fa905;for(;_0x2e73ab<_0x32910f;){let _0x324531=_0x4ea9dc===_0xd5e3db(0x305)?ji(_0x2e73ab,0x7):_0x4ea9dc==='year'?Mi(_0x2e73ab,0x1):ji(_0x2e73ab,0x1);_0x1b84ed[_0xd5e3db(0x25c)]({'id':_0x4ea9dc+'-'+_0x2e73ab,'label':Ci(_0x4ea9dc,_0x2e73ab,_0x324531),'majorLabel':wi(_0x4ea9dc,_0x2e73ab),'start':_0x2e73ab,'end':_0x324531,'nonWorking':Ei(_0x2e73ab,_0x324531,_0x2f66ac)}),_0x2e73ab=_0x324531;}return _0x1b84ed;}function yi(_0x1764df,_0x19e9ec,_0x139a13){const _0x351132=_0x4e663c;let _0x28e4a7=[],_0x4f4dc1=_0x1764df==='year'?Ai(_0x19e9ec):ki(_0x19e9ec);for(;_0x4f4dc1<_0x139a13;){let _0x31a6ed=_0x1764df===_0x351132(0x3f6)?Ni(_0x4f4dc1,0x1):Mi(_0x4f4dc1,0x1);_0x28e4a7['push']({'id':'major-'+_0x4f4dc1,'label':_0x1764df===_0x351132(0x3f6)?String(new Date(_0x4f4dc1)[_0x351132(0x1c8)]()):Pi(_0x4f4dc1),'start':_0x4f4dc1,'end':_0x31a6ed}),_0x4f4dc1=_0x31a6ed;}return _0x28e4a7;}function bi(_0x46403f){const _0x51b208=_0x4e663c;switch(_0x46403f){case _0x51b208(0x2e3):return 0xac;case _0x51b208(0x305):return 0xac;case _0x51b208(0x3f6):return 0x88;default:return 0x56;}}function xi(_0x20f979,_0x2f46df){const _0x1d1e31=_0x4e663c;return _0x20f979===_0x1d1e31(0x3f6)?Ai(_0x2f46df):_0x20f979==='quarter'?Oi(_0x2f46df):Z(_0x2f46df);}function Si(_0x396b8b,_0x46f851){const _0x593229=_0x4e663c;return _0x396b8b===_0x593229(0x3f6)?Ni(Ai(_0x46f851),0x1):_0x396b8b===_0x593229(0x305)?ji(Oi(_0x46f851),0x7):ji(Z(_0x46f851),0x1);}function Ci(_0x523d55,_0x516d13,_0x3d2a55){const _0xc752f3=_0x4e663c;let _0x5b9cf1=new Date(_0x516d13);return _0x523d55===_0xc752f3(0x305)?_0x5b9cf1[_0xc752f3(0x368)]()+'-'+new Date(_0x3d2a55-oi)['getUTCDate']():_0x523d55===_0xc752f3(0x3f6)?_0x5b9cf1[_0xc752f3(0x123)](_0xc752f3(0x322),{'month':'short','timeZone':_0xc752f3(0x203)}):String(_0x5b9cf1['getUTCDate']());}function wi(_0x178019,_0xafe345){const _0x15d8ae=_0x4e663c;return _0x178019===_0x15d8ae(0x3f6)?String(new Date(_0xafe345)[_0x15d8ae(0x1c8)]()):Pi(_0xafe345);}function Ti(_0x17005b,_0x256d6b,_0x40ff57){let _0x275f51=gi(_0x40ff57),_0x59b979=0x0;for(let _0x58394c=Z(_0x17005b);_0x58394c<=Z(_0x256d6b);_0x58394c=ji(_0x58394c,0x1))Di(_0x58394c,_0x275f51)||_0x59b979++;return _0x59b979;}function Ei(_0x2fa2c9,_0x232b12,_0x1acd98){if(!_0x1acd98)return!0x1;let _0x8eb382=gi(_0x1acd98);for(let _0x2c1e98=Z(_0x2fa2c9);_0x2c1e98<_0x232b12;_0x2c1e98=ji(_0x2c1e98,0x1))if(!Di(_0x2c1e98,_0x8eb382))return!0x1;return!0x0;}function Di(_0x1a788e,_0x249df6){const _0x137d51=_0x4e663c;let _0x2b9292=Z(_0x1a788e),_0x330864=_0x249df6['exceptions']['find'](_0x3506ba=>Z(_0x3506ba[_0x137d51(0x4ba)])===_0x2b9292);if(_0x330864)return _0x330864[_0x137d51(0x111)]===_0x137d51(0x2ca);let _0xbb8e04=new Date(_0x2b9292)[_0x137d51(0x450)](),_0x5c1437=_0xbb8e04===0x0?0x7:_0xbb8e04;return!_0x249df6[_0x137d51(0x371)][_0x137d51(0x176)](_0x5c1437);}function Z(_0x5ef51f){const _0x85f2a1=_0x4e663c;let _0x4c0f8b=new Date(_0x5ef51f);return Date['UTC'](_0x4c0f8b['getUTCFullYear'](),_0x4c0f8b[_0x85f2a1(0x124)](),_0x4c0f8b['getUTCDate']());}function Oi(_0xe88d0){const _0x2ac8df=_0x4e663c;let _0x33428a=Z(_0xe88d0),_0x258e70=new Date(_0x33428a)[_0x2ac8df(0x450)]();return ji(_0x33428a,-(_0x258e70===0x0?0x6:_0x258e70-0x1));}function ki(_0x583d29){const _0x127714=_0x4e663c;let _0x1747db=new Date(_0x583d29);return Date[_0x127714(0x203)](_0x1747db[_0x127714(0x1c8)](),_0x1747db[_0x127714(0x124)](),0x1);}function Ai(_0x30ecde){const _0x38ef08=_0x4e663c;let _0x3a89ab=new Date(_0x30ecde);return Date[_0x38ef08(0x203)](_0x3a89ab[_0x38ef08(0x1c8)](),0x0,0x1);}function ji(_0x34f75c,_0x2fe3ed){return _0x34f75c+_0x2fe3ed*oi;}function Mi(_0x1ba7fb,_0x559534){const _0x45e872=_0x4e663c;let _0x45ad9c=new Date(_0x1ba7fb);return Date['UTC'](_0x45ad9c['getUTCFullYear'](),_0x45ad9c[_0x45e872(0x124)]()+_0x559534,0x1);}function Ni(_0x49848f,_0x3047e4){const _0x4a14e5=_0x4e663c;let _0x4bf148=new Date(_0x49848f);return Date[_0x4a14e5(0x203)](_0x4bf148[_0x4a14e5(0x1c8)]()+_0x3047e4,0x0,0x1);}function Pi(_0x5dc025){const _0x28ae92=_0x4e663c;let _0x5cc153=new Date(_0x5dc025);return _0x5cc153['toLocaleString'](_0x28ae92(0x322),{'month':_0x28ae92(0x39a),'timeZone':_0x28ae92(0x203)})+'\x20'+_0x5cc153[_0x28ae92(0x1c8)]();}function Fi(_0x17e544,_0x3db9ec){const _0x5610ab=_0x4e663c;if(_0x17e544==null&&_0x3db9ec==null)return 0x0;if(_0x17e544==null)return-0x1;if(_0x3db9ec==null)return 0x1;if(typeof _0x17e544==_0x5610ab(0x2dc)||typeof _0x3db9ec==_0x5610ab(0x2dc))return Number(_0x17e544===!0x0)-Number(_0x3db9ec===!0x0);let _0x268717=Number(_0x17e544),_0x44a6d9=Number(_0x3db9ec),_0x2acb69=Number[_0x5610ab(0x402)](_0x268717),_0x450271=Number['isFinite'](_0x44a6d9);return _0x2acb69&&_0x450271?_0x268717-_0x44a6d9:_0x2acb69?0x1:_0x450271?-0x1:String(_0x17e544)[_0x5610ab(0x3f7)](String(_0x3db9ec));}function Ii(_0x42a5af){const _0x4788d=_0x4e663c;if(_0x42a5af[_0x4788d(0x36e)]!=='is'&&_0x42a5af[_0x4788d(0x36e)]!==_0x4788d(0x349))return!0x1;let _0x51c882=_0x42a5af[_0x4788d(0x440)];return _0x51c882==null?!0x0:typeof _0x51c882==_0x4788d(0x432)?_0x51c882[_0x4788d(0x319)]()==='':Array[_0x4788d(0x454)](_0x51c882)?_0x51c882[_0x4788d(0x255)]===0x0:!0x1;}function Li(_0x2a9109,_0x2013a5){const _0x5efae7=_0x4e663c;var _0x3ee513;let _0x58fb20=Array['isArray']((_0x3ee513=_0x2a9109['config'])==null?void 0x0:_0x3ee513['options'])?_0x2a9109[_0x5efae7(0x2c4)][_0x5efae7(0x17f)]:[];for(let _0x1093a8 of _0x58fb20){if(_0x1093a8==null)continue;if(typeof _0x1093a8==_0x5efae7(0x432)){if(_0x1093a8===_0x2013a5)return{'id':_0x1093a8,'name':_0x1093a8};continue;}let _0x39245f=_0x1093a8,_0x4a56b1=String(_0x39245f['id']??_0x39245f[_0x5efae7(0x269)]??''),_0x3857a7=String(_0x39245f[_0x5efae7(0x269)]??_0x39245f['id']??_0x4a56b1);if(_0x4a56b1===_0x2013a5||_0x3857a7===_0x2013a5)return{'id':_0x4a56b1,'name':_0x3857a7,'color':_0x39245f[_0x5efae7(0x416)]==null?void 0x0:String(_0x39245f['color'])};}return null;}let Ri=function(_0x14da16){const _0xfdde0e=_0x4e663c;return _0x14da16[_0xfdde0e(0x31c)]=_0xfdde0e(0x25e),_0x14da16['DeleteView']='delete-view',_0x14da16;}({});const Q={'id':_0x4e663c(0x2fa),'type':_0x551bc1[_0x4e663c(0x338)],'handler'(_0x2f778d,_0x2366d1){const _0x2fbc16=_0x4e663c;let {unitId:_0x36039a,op:_0x502a9f}=_0x2366d1,_0x277400=_0x2f778d[_0x2fbc16(0x1f4)](_0x31ecdb)[_0x2fbc16(0x403)](_0x36039a,_0x2f51c2[_0x2fbc16(0x1e3)]);if(!_0x277400)return!0x1;let _0x4eaa7d=_0x277400[_0x2fbc16(0x12c)](),_0xf6a9fe=new z(),_0xac35c5=_0xf6a9fe['getAffectedRanges'](_0x502a9f),_0x2a6c48=_0xf6a9fe[_0x2fbc16(0x3f0)](_0x4eaa7d,_0x502a9f);return _0x277400[_0x2fbc16(0x224)](_0x2a6c48),zi(_0x2a6c48,_0xac35c5,_0x2f778d[_0x2fbc16(0x1f4)](ii)),!0x0;}};function zi(_0x407f52,_0x5a24d6,_0x4e8251){const _0x41d1d1=_0x4e663c;let _0x332000=new Set(),_0x5d3997=new Set(),_0x2e1103=new Set();for(let _0x526de0 of _0x5a24d6){if(_0x526de0[_0x41d1d1(0x41c)]===_0x41d1d1(0x155)&&_0x526de0[_0x41d1d1(0x3a6)]&&_0x526de0[_0x41d1d1(0x152)]){let _0x28ef4a=_0x526de0[_0x41d1d1(0x3a6)]+'\x00'+_0x526de0[_0x41d1d1(0x152)];_0x2e1103[_0x41d1d1(0x19e)](_0x28ef4a)||(_0x2e1103['add'](_0x28ef4a),_0x4e8251['invalidateByView'](_0x526de0[_0x41d1d1(0x3a6)],_0x526de0['viewId']));continue;}if(_0x526de0[_0x41d1d1(0x41c)]===_0x41d1d1(0x163)&&_0x526de0[_0x41d1d1(0x3a6)]&&_0x526de0[_0x41d1d1(0x2be)]){let _0x4992c7=_0x526de0['tableId']+'\x00'+_0x526de0[_0x41d1d1(0x2be)];_0x5d3997['has'](_0x4992c7)||(_0x5d3997[_0x41d1d1(0x133)](_0x4992c7),_0x4e8251[_0x41d1d1(0x490)](_0x526de0['tableId'],_0x526de0[_0x41d1d1(0x2be)]));continue;}if(_0x526de0[_0x41d1d1(0x41c)]!==_0x41d1d1(0x1a2)){_0x4e8251[_0x41d1d1(0x1a0)]();return;}let _0x24927d=Bi(_0x407f52,_0x526de0);if(!_0x24927d){_0x4e8251[_0x41d1d1(0x1a0)]();return;}let _0x5e8d18=_0x24927d['tableId']+'\x00'+_0x24927d[_0x41d1d1(0x1ef)]+'\x00'+_0x24927d[_0x41d1d1(0x2be)];_0x332000[_0x41d1d1(0x19e)](_0x5e8d18)||(_0x332000[_0x41d1d1(0x133)](_0x5e8d18),_0x4e8251[_0x41d1d1(0x1fc)](_0x24927d[_0x41d1d1(0x3a6)],_0x24927d['recordId'],_0x24927d['fieldId']));}}function Bi(_0x4dcefa,_0x3c9142){const _0x303680=_0x4e663c;var _0x10738a,_0x4831e3;if(!_0x3c9142['tableId'])return null;if(_0x3c9142[_0x303680(0x1ef)]&&_0x3c9142[_0x303680(0x2be)])return{'tableId':_0x3c9142[_0x303680(0x3a6)],'recordId':_0x3c9142['recordId'],'fieldId':_0x3c9142['fieldId']};if(_0x3c9142[_0x303680(0x302)]==null||_0x3c9142[_0x303680(0x1cd)]==null)return null;let _0x11775f=_0x4dcefa[_0x303680(0x13e)][_0x3c9142[_0x303680(0x3a6)]],_0x149b49=_0x11775f==null||(_0x10738a=_0x11775f[_0x303680(0x2e1)])==null?void 0x0:_0x10738a[_0x3c9142[_0x303680(0x302)]],_0x3e1947=_0x11775f==null||(_0x4831e3=_0x11775f[_0x303680(0x48b)])==null?void 0x0:_0x4831e3[_0x3c9142['column']];return!_0x149b49||!_0x3e1947?null:{'tableId':_0x3c9142[_0x303680(0x3a6)],'recordId':_0x149b49,'fieldId':_0x3e1947};}const Vi=_0x3e15dd[_0x4e663c(0x482)](String['raw']`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x3e15dd[_0x4e663c(0x482)](String[_0x4e663c(0x3b6)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x3e15dd['createRegExpFromSafeFragment'](String['raw']`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x3e15dd[_0x4e663c(0x482)](String[_0x4e663c(0x3b6)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x3e15dd[_0x4e663c(0x482)](String[_0x4e663c(0x3b6)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x3e15dd[_0x4e663c(0x482)](String[_0x4e663c(0x3b6)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x3e15dd[_0x4e663c(0x482)](String[_0x4e663c(0x3b6)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x3e15dd['createRegExpFromSafeFragment'](String[_0x4e663c(0x3b6)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x4e663c(0x486)](_0x3995c2,_0x50b00d=_0x3995c2['id']){const _0x376546=_0x4e663c;var _0x5a28a9;let _0x504ad9=((_0x5a28a9=_0x3995c2[_0x376546(0x36b)])==null?void 0x0:_0x5a28a9[_0x376546(0x255)])??Object[_0x376546(0x325)](_0x3995c2[_0x376546(0x3f2)])[_0x376546(0x255)];return{'sheetId':_0x50b00d,'titleMap':new Map(_0x3995c2[_0x376546(0x4c0)][_0x376546(0x19c)]((_0x4a7c2c,_0x3f949a)=>{const _0x3a38e9=_0x376546;var _0x17d640;return[((_0x17d640=_0x3995c2[_0x3a38e9(0x45e)][_0x4a7c2c])==null?void 0x0:_0x17d640['name'])??_0x4a7c2c,_0x3f949a];})),'range':{'startRow':0x0,'endRow':Math[_0x376546(0x251)](0x0,_0x504ad9-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x3995c2[_0x376546(0x4c0)][_0x376546(0x255)]-0x1)},'showHeader':!0x1};}[_0x4e663c(0x33d)](_0x354dd9,_0x75405c){const _0x458303=_0x4e663c;let _0x27a3b4=[],_0x40623d=_0x75405c?new Set(_0x75405c):null,_0x4186c2=_0x3e0263(_0x354dd9);return Object[_0x458303(0x325)](_0x354dd9[_0x458303(0x13e)])[_0x458303(0x20d)](_0x3ee094=>!_0x40623d||_0x40623d[_0x458303(0x19e)](_0x3ee094['id']))[_0x458303(0x29f)](_0x590876=>{const _0x231a2f=_0x458303;let _0x237b44=this['createSuperTableReference'](_0x590876,_0x590876['id']);_0x27a3b4[_0x231a2f(0x25c)]({'tableId':_0x590876['id'],'tableName':_0x4186c2[_0x231a2f(0x1f4)](_0x590876['id']),'reference':_0x237b44});}),_0x27a3b4;}['validateFormula'](_0x92683b,_0x5209ab,_0x1deba3={}){const _0x375cb1=_0x4e663c;let _0x50190f=_0x92683b['trim']();if(!_0x50190f)return{'valid':!0x0};if(na(_0x50190f))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x50a842=_0x1deba3[_0x375cb1(0x2b0)]?_0x3e0263(_0x1deba3[_0x375cb1(0x2b0)]):void 0x0;for(let _0x1f3683 of ta(_0x50190f)){let _0x347b2b=ua(_0x1f3683,_0x5209ab,_0x1deba3[_0x375cb1(0x2b0)],_0x50a842);if(!_0x347b2b[_0x375cb1(0x291)])return{'valid':!0x1,'reason':_0x375cb1(0x47e)+_0x1f3683[_0x375cb1(0x2ef)]+_0x375cb1(0x45c)};if(!_0x347b2b['field'])return{'valid':!0x1,'reason':'[BaseFormula]:\x20field\x20\x22'+_0x1f3683['fieldName']+_0x375cb1(0x4b1)};}return{'valid':!0x0};}[_0x4e663c(0x12a)](_0x4b932d,_0x495fc1,_0x5459d7={}){const _0x25b439=_0x4e663c;let _0x119c07=new Set();for(let _0x16e578 of this[_0x25b439(0x216)](_0x4b932d,_0x495fc1,_0x5459d7))_0x16e578[_0x25b439(0x3a6)]===_0x495fc1['id']&&_0x119c07[_0x25b439(0x133)](_0x16e578[_0x25b439(0x2be)]);return Array[_0x25b439(0x40e)](_0x119c07);}['getStructuredDependencies'](_0x43c1b0,_0x3be2d9,_0x10fc9f={}){const _0x15e457=_0x4e663c;let _0x2bac40=new Map(),_0x21b131=_0x10fc9f[_0x15e457(0x2b0)]?_0x3e0263(_0x10fc9f[_0x15e457(0x2b0)]):void 0x0;for(let _0x28bd1e of ta(_0x43c1b0)){let _0x5189d8=ua(_0x28bd1e,_0x3be2d9,_0x10fc9f[_0x15e457(0x2b0)],_0x21b131);if(!_0x5189d8[_0x15e457(0x291)]||!_0x5189d8[_0x15e457(0x163)])continue;let _0x669184=_0x5189d8['table']['id']+'\x1f'+_0x5189d8[_0x15e457(0x163)]['id'];_0x2bac40[_0x15e457(0x233)](_0x669184,{'tableId':_0x5189d8['table']['id'],'fieldId':_0x5189d8['field']['id']});}return Array[_0x15e457(0x40e)](_0x2bac40[_0x15e457(0x325)]());}};function Zi(_0x1013cd,_0x4ff66f){const _0x2d2092=_0x4e663c;var _0x191e9f;let _0x1bb132=[],_0x5d9f14=(_0x191e9f=_0x4ff66f[_0x2d2092(0x320)])==null?void 0x0:_0x191e9f[_0x1013cd['id']];return _0x5d9f14&&Object[_0x2d2092(0x3ee)](_0x5d9f14)[_0x2d2092(0x29f)](([_0x358f1e,_0x40167f])=>{const _0x1873ba=_0x2d2092;let _0x225f1d=_0x1013cd[_0x1873ba(0x13e)][_0x358f1e];if(!_0x225f1d||!_0x40167f)return;let _0x5d3026=L(_0x225f1d),_0x30a4de=[];new _0x16027e(_0x40167f)['forValue']((_0x528db3,_0x4d71f1,_0x419b07)=>{const _0x2980c2=_0x1873ba;let _0x1dc19b=Qi(_0x5d3026,_0x528db3,_0x4d71f1,_0x419b07);_0x1dc19b&&_0x30a4de[_0x2980c2(0x25c)](_0x1dc19b);}),_0x30a4de[_0x1873ba(0x255)]&&_0x1bb132[_0x1873ba(0x25c)]({'unitId':_0x1013cd['id'],'tableId':_0x358f1e,'patches':_0x30a4de});}),_0x1bb132;}function Qi(_0x280ac8,_0x7bcafc,_0xadde1a,_0x4516e7){const _0x3305af=_0x4e663c;var _0x85cd93,_0x4e5a9e,_0x22993a;let _0x20a318=(_0x85cd93=_0x280ac8[_0x3305af(0x2e1)])==null?void 0x0:_0x85cd93[_0x7bcafc],_0x3483a2=(_0x4e5a9e=_0x280ac8[_0x3305af(0x48b)])==null?void 0x0:_0x4e5a9e[_0xadde1a];if(!_0x20a318||!_0x280ac8[_0x3305af(0x3f2)][_0x20a318]||!_0x3483a2)return null;let _0x414591=_0x280ac8['fields'][_0x3483a2];if(!_0x414591||_0x414591[_0x3305af(0x111)]!==_0x3305af(0x489))return null;let _0x75705b=String(((_0x22993a=_0x414591[_0x3305af(0x2c4)])==null?void 0x0:_0x22993a[_0x3305af(0x489)])??'')[_0x3305af(0x319)](),_0x1c05b7=(_0x4516e7==null?void 0x0:_0x4516e7['v'])??null,_0x49cc21={'v':_0x1c05b7,'t':ea(_0x1c05b7),..._0x7bcafc===0x0&&_0x75705b?{'f':_0x75705b}:{},'si':_0x414591['id']};return $i(vt(_0x280ac8,_0x20a318,_0x3483a2),_0x49cc21)?null:{'row':_0x7bcafc,'col':_0xadde1a,'value':_0x49cc21};}function $i(_0x49d111,_0x3540b2){return _0x49d111!=null&&Object['is'](_0x49d111['v']??null,_0x3540b2['v']??null)&&_0x49d111['t']===_0x3540b2['t']&&_0x49d111['f']===_0x3540b2['f']&&_0x49d111['si']===_0x3540b2['si'];}function ea(_0x5ba1bd){const _0x3039a7=_0x4e663c;return typeof _0x5ba1bd==_0x3039a7(0x24a)?_0x1f224e[_0x3039a7(0x4b3)]:typeof _0x5ba1bd=='boolean'?_0x1f224e[_0x3039a7(0x369)]:typeof _0x5ba1bd==_0x3039a7(0x432)?_0x1f224e['STRING']:null;}function ta(_0x20c54e){const _0x5dede3=_0x4e663c;let _0x2d498c=ia(_0x20c54e,()=>''),_0x3f67c9=new Map(),_0x21455a=_0x370931=>{const _0x2b7566=_0x4619;_0x3f67c9[_0x2b7566(0x233)]((_0x370931[_0x2b7566(0x2ef)]??'')+'\x1f'+_0x370931[_0x2b7566(0x1f7)],_0x370931);};for(let _0x414c11 of _0x2d498c[_0x5dede3(0x165)](Ui))_0x21455a({'fieldName':_0x414c11[0x1],'scope':'this-row'});_0x2d498c=_0x2d498c[_0x5dede3(0x13d)](Wi,(_0x267d8e,_0x32606d,_0x1b24a8,_0x29dc28)=>(_0x21455a({'tableName':_0x32606d,'fieldName':_0x29dc28,'scope':_0x1b24a8[_0x5dede3(0x2ec)]()===_0x5dede3(0x327)?_0x5dede3(0x327):_0x5dede3(0x437)}),'\x20')),_0x2d498c=_0x2d498c[_0x5dede3(0x13d)](Gi,(_0x45181b,_0x3b6a5c,_0x2e9d46)=>(_0x21455a({'tableName':_0x3b6a5c,'fieldName':_0x2e9d46,'scope':_0x5dede3(0x437)}),'\x20')),_0x2d498c=_0x2d498c[_0x5dede3(0x13d)](qi,(_0x3303cc,_0x2c7bde,_0x4df5d9,_0x4639d6)=>(_0x21455a({'fieldName':_0x4639d6,'scope':_0x4df5d9['toLowerCase']()===_0x5dede3(0x327)?_0x5dede3(0x327):'this-row'}),_0x2c7bde+'\x20')),_0x2d498c=_0x2d498c[_0x5dede3(0x13d)](Ji,(_0x296c84,_0x17ff05,_0x436d1d)=>(_0x21455a({'fieldName':_0x436d1d,'scope':'this-row'}),_0x17ff05+'\x20'));for(let _0xadd596 of _0x2d498c[_0x5dede3(0x165)](Ki))_0x21455a({'tableName':_0xadd596[0x1],'fieldName':_0xadd596[0x2]});for(let _0x43bd4e of _0x2d498c[_0x5dede3(0x165)](Yi))_0x21455a({'fieldName':_0x43bd4e[0x2],'scope':_0x5dede3(0x437)});return Array['from'](_0x3f67c9[_0x5dede3(0x325)]());}function na(_0x10e185){const _0x5aa45e=_0x4e663c;let _0x3c5bb3=ia(_0x10e185,()=>'\x20')[_0x5aa45e(0x13d)](Ui,'\x20')['replace'](Wi,'\x20')[_0x5aa45e(0x13d)](Gi,'\x20')[_0x5aa45e(0x13d)](qi,'$1\x20')[_0x5aa45e(0x13d)](Ji,_0x5aa45e(0x4c1))['replace'](Ki,'\x20')[_0x5aa45e(0x13d)](Yi,'$1\x20');return Vi[_0x5aa45e(0x355)](_0x3c5bb3);}function ra(_0x7bfa17,_0x52efce){return ca(oa(_0x7bfa17,_0x52efce),_0x52efce);}function ia(_0x1f2b3e,_0x2376fc){return aa(ra(_0x1f2b3e,_0x2376fc),_0x2376fc);}function aa(_0x14d30e,_0x4b3a06){return _0x14d30e['replace'](/"(?:""|[^"])*"/g,_0x4b3a06);}function oa(_0x242002,_0x25d55f){const _0x508a64=_0x4e663c;return Hi[_0x508a64(0x2e2)]=0x0,_0x242002[_0x508a64(0x13d)](Hi,(_0x520556,_0x3a9094)=>la(_0x242002,_0x3a9094)?_0x520556:_0x25d55f(_0x520556));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x5a67ef,_0x3f576a){const _0x3b04ab=_0x4e663c;let _0xfe335b=[];for(sa[_0x3b04ab(0x2e2)]=0x0;;){let _0x5d7648=sa[_0x3b04ab(0x4bc)](_0x5a67ef);if(_0x5d7648==null)break;if(la(_0x5a67ef,_0x5d7648[_0x3b04ab(0x455)]))continue;let _0x9a2810=sa[_0x3b04ab(0x2e2)]-0x1,_0x25e9c3=0x0;for(let _0x134948=_0x9a2810;_0x134948<_0x5a67ef[_0x3b04ab(0x255)];_0x134948++)if(_0x5a67ef[_0x134948]==='['&&_0x25e9c3++,_0x5a67ef[_0x134948]===']'&&(_0x25e9c3--,_0x25e9c3===0x0)){_0xfe335b[_0x3b04ab(0x25c)]({'start':_0x5d7648['index'],'end':_0x134948+0x1}),sa[_0x3b04ab(0x2e2)]=_0x134948+0x1;break;}}if(_0xfe335b[_0x3b04ab(0x255)]===0x0)return _0x5a67ef;let _0x131a6f='',_0x312edb=0x0;for(let _0x156bfa of _0xfe335b)_0x131a6f+=_0x5a67ef['slice'](_0x312edb,_0x156bfa[_0x3b04ab(0x1f5)]),_0x131a6f+=_0x3f576a(_0x5a67ef[_0x3b04ab(0x183)](_0x156bfa['start'],_0x156bfa[_0x3b04ab(0x256)])),_0x312edb=_0x156bfa[_0x3b04ab(0x256)];return _0x131a6f+_0x5a67ef[_0x3b04ab(0x183)](_0x312edb);}function la(_0x11785b,_0x48c235){let _0xda635c=!0x1;for(let _0x487582=0x0;_0x487582<_0x48c235;_0x487582++)_0x11785b[_0x487582]==='\x22'&&(_0xda635c&&_0x11785b[_0x487582+0x1]==='\x22'?_0x487582++:_0xda635c=!_0xda635c);return _0xda635c;}function ua(_0x27693a,_0x526a34,_0x41f1b0,_0x3e03f4){const _0x5c7257=_0x4e663c;let _0x1a091b=da(_0x27693a[_0x5c7257(0x2ef)],_0x526a34,_0x41f1b0,_0x3e03f4);return{'table':_0x1a091b,'field':_0x1a091b?Object[_0x5c7257(0x325)](_0x1a091b[_0x5c7257(0x45e)])[_0x5c7257(0x143)](_0x3e6071=>_0x3e6071[_0x5c7257(0x269)]===_0x27693a[_0x5c7257(0x1f7)]):void 0x0};}function da(_0xf0c28a,_0x3e370e,_0x2a5477,_0x526c56){const _0x233e41=_0x4e663c;if(!_0xf0c28a)return _0x3e370e;if(!_0x2a5477){var _0x32d076;let _0x49df23=_0xf0c28a[_0x233e41(0x2ec)]();return _0x49df23===_0x3e370e['id'][_0x233e41(0x2ec)]()||_0x49df23===_0x3e370e[_0x233e41(0x269)][_0x233e41(0x2ec)]()||_0x49df23===((_0x32d076=_0x3e370e['formulaName'])==null?void 0x0:_0x32d076[_0x233e41(0x2ec)]())?_0x3e370e:void 0x0;}let _0x162183=_0xf0c28a[_0x233e41(0x2ec)](),_0x15445d=_0x526c56??_0x3e0263(_0x2a5477),_0x39c8c3=Object['values'](_0x2a5477[_0x233e41(0x13e)])[_0x233e41(0x20d)](_0xd02cce=>{const _0x1d9dda=_0x233e41;var _0x2008e0;return _0xd02cce['id']['toLowerCase']()===_0x162183||_0xd02cce[_0x1d9dda(0x269)]['toLowerCase']()===_0x162183||((_0x2008e0=_0x15445d[_0x1d9dda(0x1f4)](_0xd02cce['id']))==null?void 0x0:_0x2008e0['toLowerCase']())===_0x162183||fa(_0xd02cce['id'])[_0x1d9dda(0x2ec)]()===_0x162183;});return _0x39c8c3[_0x233e41(0x255)]===0x1?_0x39c8c3[0x0]:void 0x0;}function fa(_0x14f769){const _0x279249=_0x4e663c;return _0x279249(0x2a6)+Array['from'](_0x14f769,_0x5da4c6=>{const _0xfd18d6=_0x279249;var _0x28f6ad;return/[A-Za-z0-9]/[_0xfd18d6(0x355)](_0x5da4c6)?_0x5da4c6:'_x'+(((_0x28f6ad=_0x5da4c6[_0xfd18d6(0x309)](0x0))==null?void 0x0:_0x28f6ad[_0xfd18d6(0x1d5)](0x10))??'0')+'_';})[_0x279249(0x2e9)]('');}const pa=new Xi();function ma(_0x4c1b23,_0x2bc26f,_0x2c7086){const _0x1fbf11=_0x4e663c;var _0x1df7ac;if(_0x2c7086[_0x1fbf11(0x111)]!==_0x5f310d[_0x1fbf11(0x38d)])return!0x0;let _0x4a3fd5=String(((_0x1df7ac=_0x2c7086[_0x1fbf11(0x2c4)])==null?void 0x0:_0x1df7ac[_0x1fbf11(0x489)])??''),_0x817f0d=_0x4c1b23[_0x1fbf11(0x12c)]();return pa[_0x1fbf11(0x445)](_0x4a3fd5,_0x817f0d[_0x1fbf11(0x13e)][_0x2bc26f],{'snapshot':_0x817f0d})[_0x1fbf11(0x39f)];}function $(_0x396518,_0x467e2e,_0x29d61b){const _0x3e58f3=_0x4e663c;let _0x2363d8=_0x396518['getSnapshot']()[_0x3e58f3(0x13e)][_0x467e2e];if(!_0x2363d8)return!0x1;let {viewIds:_0xcf228f,fieldIds:_0x4d60b6,recordIds:_0x3b1cb5}=_0x29d61b||{};if(_0xcf228f){for(let _0x50d952 of _0xcf228f)if(!_0x2363d8[_0x3e58f3(0x2ac)][_0x50d952])return!0x1;}if(_0x4d60b6){for(let _0x1ea62e of _0x4d60b6)if(!_0x2363d8['fields'][_0x1ea62e])return!0x1;}if(_0x3b1cb5){for(let _0x3162ba of _0x3b1cb5)if(!_0x2363d8[_0x3e58f3(0x3f2)][_0x3162ba])return!0x1;}return!0x0;}function ha(_0x307911,_0xc7770e,_0x3f11c6){const _0x322416=_0x4e663c;if(_0x3f11c6['id']===_0x251017||_0x3f11c6['type']===_0x5f310d['RecordId']||_0x154a90(_0x3f11c6[_0x322416(0x269)])||!ma(_0x307911,_0xc7770e,_0x3f11c6))return!0x1;let _0x3ddd38=_0x307911[_0x322416(0x12c)]();if(!Be(_0x3ddd38,_0x3f11c6)['valid'])return!0x1;if(_0x3f11c6['type']!==_0x5f310d[_0x322416(0x3e4)])return!0x0;let _0x2b8c08=N(_0x3f11c6);if(!_0x2b8c08)return!0x1;if(_0x2b8c08[_0x322416(0x28f)]===void 0x0)return!0x0;if(_0x2b8c08['relationRole']!==_0xef1c81[_0x322416(0x367)]||_0x2b8c08[_0x322416(0x21f)]!==_0xc7770e||_0x2b8c08[_0x322416(0x1cf)]!==!0x1)return!0x1;let _0x1d0e93=_0x3ddd38[_0x322416(0x13e)][_0xc7770e];return!Object['values'](_0x1d0e93[_0x322416(0x45e)])[_0x322416(0x48c)](_0x174675=>{const _0x33803a=_0x322416;var _0x1e0527;return _0x174675['id']!==_0x3f11c6['id']&&_0x174675[_0x33803a(0x111)]===_0x5f310d['RecordLink']&&((_0x1e0527=N(_0x174675))==null?void 0x0:_0x1e0527[_0x33803a(0x28f)])===_0xef1c81[_0x33803a(0x367)];});}function ga(_0x579f4b,_0x15c03c,_0x26c737,_0x298d20){const _0x1c8669=_0x4e663c;var _0x29f1b2;let _0x40c5b8=_0x579f4b[_0x1c8669(0x12c)](),_0x46e6d4=(_0x29f1b2=_0x40c5b8[_0x1c8669(0x13e)][_0x15c03c])==null?void 0x0:_0x29f1b2[_0x1c8669(0x45e)][_0x26c737];return!_0x46e6d4||_0x46e6d4['id']===_0x251017||_0x46e6d4['type']===_0x5f310d[_0x1c8669(0x44e)]?!0x1:_0x46e6d4[_0x1c8669(0x111)]!==_0x5f310d[_0x1c8669(0x3e4)]||Ve(_0x40c5b8,_0x46e6d4,ya(_0x298d20))[_0x1c8669(0x39f)];}function _a(_0x1161de,_0x237187,_0x2b562c){const _0x282ed0=_0x4e663c;let _0x1e1c39=_0x1161de[_0x282ed0(0x12c)]()['tables'][_0x237187];return!_0x1e1c39||!_0x611fc0(_0x2b562c['id'])||_0x1e1c39[_0x282ed0(0x3f2)][_0x2b562c['id']]||Object[_0x282ed0(0x4a2)][_0x282ed0(0x236)]['call'](_0x2b562c[_0x282ed0(0x325)],_0x251017)&&_0x2b562c[_0x282ed0(0x325)][_0x251017]!==_0x2b562c['id']?!0x1:Object[_0x282ed0(0x3ee)](_0x2b562c[_0x282ed0(0x325)])[_0x282ed0(0x361)](([_0x46790d,_0x5e1be5])=>_0x46790d===_0x251017||ga(_0x1161de,_0x237187,_0x46790d,_0x5e1be5));}function va(_0x2f6397){const _0x1a23a8=_0x4e663c;return{..._0x2f6397,'values':{..._0x2f6397[_0x1a23a8(0x325)],[_0x251017]:_0x2f6397['id']}};}function ya(_0x30ea47){const _0x10ea99=_0x4e663c;if(_0x30ea47&&typeof _0x30ea47==_0x10ea99(0x37c)&&!Array[_0x10ea99(0x454)](_0x30ea47)&&'v'in _0x30ea47){let _0x46e265=_0x30ea47['v'];return _0x46e265===void 0x0?null:_0x46e265;}return _0x30ea47;}function ba(_0x4425ec,_0x5788d5,_0x2c6625,_0x598d3f){const _0x33bc33=_0x4e663c;let _0x15c18d=_0x4425ec[_0x33bc33(0x12c)]()[_0x33bc33(0x13e)][_0x5788d5];if(!_0x15c18d)return null;let _0x3b7902=qe(_0x15c18d),_0x391dfe=_0x3b7902??Je(_0x15c18d),_0x413ba3=_0x2c6625[_0x33bc33(0x48c)](_0x46b1cd=>Object[_0x33bc33(0x4a2)][_0x33bc33(0x236)][_0x33bc33(0x3bf)](_0x46b1cd[_0x33bc33(0x325)],_0x391dfe)),_0x3d1189=_0x3b7902?_0x15c18d[_0x33bc33(0x45e)][_0x3b7902]:_0x413ba3?Ye(_0x15c18d,_0x391dfe,_0x598d3f):null,_0x11e884=[];for(let _0x5b283a of _0x2c6625){let _0x440d10=_0x5b283a['values'][_0x391dfe],_0x3ac306=_0x3d1189!==null&&Object[_0x33bc33(0x4a2)]['hasOwnProperty']['call'](_0x5b283a[_0x33bc33(0x325)],_0x391dfe),_0x45e787=ya(_0x440d10),_0x4213ad=null;if(_0x3ac306){if(typeof _0x45e787!='string'||!ze(_0x45e787,!0x1)[_0x33bc33(0x39f)])return null;_0x4213ad=_0x45e787;}let _0x2f5e2c={};if(Object['entries'](_0x5b283a['values'])[_0x33bc33(0x29f)](([_0x96226f,_0x3057a6])=>{(!_0x3ac306||_0x96226f!==_0x391dfe)&&(_0x2f5e2c[_0x96226f]=_0x3057a6);}),!_a(_0x4425ec,_0x5788d5,{..._0x5b283a,'values':_0x2f5e2c}))return null;let _0x106140={..._0x5b283a['values']};_0x4213ad!==null&&(_0x106140[_0x391dfe]=_0x4213ad),_0x11e884[_0x33bc33(0x25c)](va({..._0x5b283a,'values':_0x106140}));}return{'records':_0x11e884,'hierarchyFieldToMaterialize':_0x3b7902?null:_0x3d1189,'hierarchyChanges':Qe(_0x15c18d,_0x11e884)};}const xa={'id':_0x4e663c(0x131),'type':_0x551bc1['COMMAND'],'handler'(_0x12f5cd,_0x2eee54){const _0x523cc4=_0x4e663c;if(!_0x2eee54)return!0x1;let _0x32b21e=_0x12f5cd[_0x523cc4(0x1f4)](_0x31ecdb),{unitId:_0x1e9c13,tableId:_0x2e7c20,records:_0x15e89f}=_0x2eee54,_0x58da1a=_0x32b21e[_0x523cc4(0x403)](_0x1e9c13,_0x2f51c2[_0x523cc4(0x1e3)]),_0x2322d9=_0x15e89f[_0x523cc4(0x19c)](_0x24d6f9=>_0x24d6f9['id']);if(!_0x58da1a||!$(_0x58da1a,_0x2e7c20)||new Set(_0x2322d9)[_0x523cc4(0x263)]!==_0x2322d9[_0x523cc4(0x255)])return!0x1;let _0x584268=_0x12f5cd[_0x523cc4(0x1f4)](_0x401540),_0x49394c=_0x12f5cd[_0x523cc4(0x1f4)](_0x27bed1),_0x206366=_0x12f5cd[_0x523cc4(0x1f4)](Kr),_0x12d271=_0x58da1a[_0x523cc4(0x12c)](),_0x17a8b4=ba(_0x58da1a,_0x2e7c20,_0x15e89f);if(!_0x17a8b4)return!0x1;let {records:_0x52656b,hierarchyChanges:_0x47f026,hierarchyFieldToMaterialize:_0x212999}=_0x17a8b4,_0x375f3e=_0x212999?_0x206366[_0x523cc4(0x32e)](_0x58da1a,_0x2e7c20,_0x212999,_0x12d271[_0x523cc4(0x13e)][_0x2e7c20][_0x523cc4(0x4c0)][_0x523cc4(0x255)]):null,_0x29d67c=_0x206366[_0x523cc4(0x1f0)](_0x58da1a,_0x2e7c20,_0x52656b),_0xb9cd15=R([..._0x375f3e?[_0x375f3e]:[],_0x29d67c]),_0x2217b6=new z()['invertOp'](_0x12d271,_0xb9cd15),_0x543b34={'unitId':_0x1e9c13,'op':_0xb9cd15,'hierarchyChanges':_0x47f026['length']?_0x47f026:void 0x0,'source':_0x47f026[_0x523cc4(0x255)]?_0x2eee54[_0x523cc4(0x408)]??'ui':void 0x0},_0x4a9c1f={..._0x543b34,'source':_0x47f026[_0x523cc4(0x255)]?_0x523cc4(0x249):void 0x0},_0x571bb2={'unitId':_0x1e9c13,'op':_0x2217b6,'hierarchyChanges':_0x47f026[_0x523cc4(0x255)]?_0x47f026[_0x523cc4(0x19c)](_0x30a53f=>({..._0x30a53f,'oldParentRecordId':_0x30a53f[_0x523cc4(0x26d)],'parentRecordId':null})):void 0x0,'source':_0x47f026['length']?_0x523cc4(0x2fb):void 0x0};return _0x584268[_0x523cc4(0x3fb)](Q['id'],_0x543b34)?(_0x32b21e[_0x523cc4(0x267)](_0x1e9c13),_0x49394c[_0x523cc4(0x2d8)]({'unitID':_0x1e9c13,'undoMutations':[{'id':Q['id'],'params':_0x571bb2}],'redoMutations':[{'id':Q['id'],'params':_0x4a9c1f}]}),!0x0):!0x1;}},Sa={'id':_0x4e663c(0x1ad),'type':_0x551bc1['COMMAND'],'handler':(_0x3faede,_0x594bc8)=>{const _0x2d624c=_0x4e663c;if(!_0x594bc8)return!0x1;let _0x5273c7=_0x3faede[_0x2d624c(0x1f4)](_0x31ecdb),{unitId:_0x5c225b,tableId:_0x262b49,recordIds:_0x77437f}=_0x594bc8,_0x26db91=_0x5273c7['getUnit'](_0x5c225b,_0x2f51c2[_0x2d624c(0x1e3)]);if(!_0x26db91||!$(_0x26db91,_0x262b49,{'recordIds':_0x77437f}))return!0x1;let _0x3a98c6=_0x3faede['get'](_0x401540),_0x49fe88=_0x3faede[_0x2d624c(0x1f4)](_0x27bed1),_0x5ddc3d=_0x26db91[_0x2d624c(0x12c)](),_0x562225=et(_0x5ddc3d[_0x2d624c(0x13e)][_0x262b49],_0x77437f),_0x3a2cb5=new W(),_0xb0bd29=new z(),_0x4bba7f=_0x3a2cb5[_0x2d624c(0x4c2)](_0x5ddc3d,_0x262b49,_0x77437f),_0x4cbcc5=_0xb0bd29[_0x2d624c(0x3f0)](_0x5ddc3d,_0x4bba7f),_0x570b3e=_0x3a2cb5[_0x2d624c(0x1ab)](_0x5ddc3d,_0x4cbcc5,_0x262b49,_0x77437f),_0x3efde3={'unitId':_0x5c225b,'op':_0x4bba7f,'hierarchyChanges':_0x562225,'source':_0x594bc8[_0x2d624c(0x408)]??'ui'},_0x2e30bd={..._0x3efde3,'source':_0x2d624c(0x249)},_0x313bfe={'unitId':_0x5c225b,'op':_0x570b3e,'hierarchyChanges':_0x562225[_0x2d624c(0x19c)](_0x1808c6=>({..._0x1808c6,'oldParentRecordId':_0x1808c6['parentRecordId'],'parentRecordId':_0x1808c6['oldParentRecordId']})),'source':_0x2d624c(0x2fb)};return _0x3a98c6[_0x2d624c(0x3fb)](Q['id'],_0x3efde3)?(_0x5273c7[_0x2d624c(0x267)](_0x5c225b),_0x49fe88['pushUndoRedo']({'unitID':_0x5c225b,'undoMutations':[{'id':Q['id'],'params':_0x313bfe}],'redoMutations':[{'id':Q['id'],'params':_0x2e30bd}]}),!0x0):!0x1;}},Ca={'id':_0x4e663c(0x294),'type':_0x551bc1['COMMAND'],'handler':(_0x308f46,_0x244708)=>{const _0x1a1311=_0x4e663c;if(!_0x244708)return!0x1;let _0x564102=_0x308f46[_0x1a1311(0x1f4)](_0x31ecdb),{unitId:_0x48a80d,tableId:_0x24d3d8,fieldId:_0xd19479,input:_0x102db3}=_0x244708,_0x402f51=_0x564102['getUnit'](_0x48a80d,_0x2f51c2[_0x1a1311(0x1e3)]);if(!_0x402f51||_0xd19479===_0x251017||!$(_0x402f51,_0x24d3d8,{'fieldIds':[_0xd19479]}))return!0x1;let _0x24d672=_0x308f46[_0x1a1311(0x1f4)](_0x401540),_0x356cdd=_0x308f46[_0x1a1311(0x1f4)](_0x27bed1),_0xd595c8=_0x402f51[_0x1a1311(0x12c)]();if(!ha(_0x402f51,_0x24d3d8,{..._0xd595c8[_0x1a1311(0x13e)][_0x24d3d8][_0x1a1311(0x45e)][_0xd19479],..._0x102db3}))return!0x1;let _0x2eed01=new W()[_0x1a1311(0x222)](_0xd595c8,_0x24d3d8,_0xd19479,_0x102db3),_0x1d39e9=new z()['invertOp'](_0xd595c8,_0x2eed01),_0x349f54={'unitId':_0x48a80d,'op':_0x2eed01},_0x1a7b4c={'unitId':_0x48a80d,'op':_0x1d39e9};return _0x24d672[_0x1a1311(0x3fb)](Q['id'],_0x349f54)?(_0x564102['focusUnit'](_0x48a80d),_0x356cdd['pushUndoRedo']({'unitID':_0x48a80d,'undoMutations':[{'id':Q['id'],'params':_0x1a7b4c}],'redoMutations':[{'id':Q['id'],'params':_0x349f54}]}),!0x0):!0x1;}},wa={'id':'base.command.create-base-child-record','type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x19b38f,_0x3139ee){const _0x3fc8e7=_0x4e663c;var _0x5ce48d;if(!_0x3139ee)return!0x1;let {unitId:_0x3b8068,tableId:_0x5c722d,parentRecordId:_0x3ea856}=_0x3139ee,_0xbfd149=_0x19b38f[_0x3fc8e7(0x1f4)](_0x31ecdb),_0x4f8ec2=_0xbfd149['getUnit'](_0x3b8068,_0x2f51c2['UNIVER_BASE']);if(!_0x4f8ec2||!$(_0x4f8ec2,_0x5c722d,{'recordIds':[_0x3ea856]}))throw new P(_0x3fc8e7(0x218));let _0x166640=_0x4f8ec2[_0x3fc8e7(0x12c)](),_0x10a74e=_0x166640[_0x3fc8e7(0x13e)][_0x5c722d],_0xe6a8f=qe(_0x10a74e),_0x176659=_0xe6a8f??_0x3139ee[_0x3fc8e7(0x2be)]??Je(_0x10a74e);if(_0xe6a8f&&_0x3139ee[_0x3fc8e7(0x2be)]&&_0x3139ee[_0x3fc8e7(0x2be)]!==_0xe6a8f||_0x10a74e[_0x3fc8e7(0x45e)][_0x176659]&&!F(_0x10a74e,_0x176659))throw new P(_0x3fc8e7(0x24e));if((tt(_0x10a74e,_0x176659)[_0x3fc8e7(0x3ca)][_0x3fc8e7(0x1f4)](_0x3ea856)??0x0)+0x1>=0x5)throw new P(_0x3fc8e7(0x198));if(!_a(_0x4f8ec2,_0x5c722d,_0x3139ee[_0x3fc8e7(0x2e0)]))return!0x1;let _0x599544=va({..._0x3139ee[_0x3fc8e7(0x2e0)],'values':{..._0x3139ee['record'][_0x3fc8e7(0x325)],[_0x176659]:Re([_0x3ea856])}}),_0x58ac7e=_0x19b38f[_0x3fc8e7(0x1f4)](Kr),_0x58d528=new W(),_0x4e43cf=_0x10a74e['fields'][_0x176659],_0x5f2afc=_0x4e43cf?((_0x5ce48d=N(_0x4e43cf))==null?void 0x0:_0x5ce48d[_0x3fc8e7(0x28f)])===_0xef1c81[_0x3fc8e7(0x367)]?null:_0x58d528[_0x3fc8e7(0x190)](_0x166640,_0x5c722d,_0x176659,{'config':{..._0x4e43cf[_0x3fc8e7(0x2c4)],'relationRole':_0xef1c81['Parent']}}):_0x58ac7e[_0x3fc8e7(0x32e)](_0x4f8ec2,_0x5c722d,Ye(_0x10a74e,_0x176659,_0x3139ee[_0x3fc8e7(0x38f)]),_0x10a74e[_0x3fc8e7(0x4c0)][_0x3fc8e7(0x255)]),_0x20e1d9=_0x58ac7e[_0x3fc8e7(0x4cf)](_0x4f8ec2,_0x5c722d,_0x599544),_0x1067a4=R([..._0x5f2afc?[_0x5f2afc]:[],_0x20e1d9]),_0x7b7e1b=new z()[_0x3fc8e7(0x44c)](_0x166640,_0x1067a4),_0x412a31={'tableId':_0x5c722d,'fieldId':_0x176659,'recordId':_0x599544['id'],'oldParentRecordId':null,'parentRecordId':_0x3ea856},_0x94956f={'unitId':_0x3b8068,'op':_0x1067a4,'trigger':wa['id'],'hierarchyChanges':[_0x412a31],'source':_0x3139ee['source']??'ui'},_0xb9995c={..._0x94956f,'source':_0x3fc8e7(0x249)},_0xd677b3={'unitId':_0x3b8068,'op':_0x7b7e1b,'trigger':wa['id'],'hierarchyChanges':[{..._0x412a31,'oldParentRecordId':_0x3ea856,'parentRecordId':null}],'source':_0x3fc8e7(0x2fb)};return _0x19b38f['get'](_0x401540)[_0x3fc8e7(0x3fb)](Q['id'],_0x94956f)?(_0xbfd149[_0x3fc8e7(0x267)](_0x3b8068),_0x19b38f[_0x3fc8e7(0x1f4)](_0x27bed1)[_0x3fc8e7(0x2d8)]({'unitID':_0x3b8068,'undoMutations':[{'id':Q['id'],'params':_0xd677b3}],'redoMutations':[{'id':Q['id'],'params':_0xb9995c}]}),!0x0):!0x1;}},Ta={'id':_0x4e663c(0x389),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x3a8e6a,_0x2c9e07){const _0x7a7b54=_0x4e663c;if(!_0x2c9e07)return!0x1;let _0xb3919b=_0x3a8e6a[_0x7a7b54(0x1f4)](_0x31ecdb),{unitId:_0x2115c7,tableId:_0x154245,field:_0x52546f,index:_0x5391e8,viewIndexes:_0x6234a0}=_0x2c9e07,_0x11c57c=_0xb3919b[_0x7a7b54(0x403)](_0x2115c7,_0x2f51c2[_0x7a7b54(0x1e3)]);if(!_0x11c57c||!$(_0x11c57c,_0x154245)||_0x11c57c[_0x7a7b54(0x12c)]()[_0x7a7b54(0x13e)][_0x154245][_0x7a7b54(0x45e)][_0x52546f['id']]||_0x5391e8===0x0||!ha(_0x11c57c,_0x154245,_0x52546f))return!0x1;let _0x4f7583=_0x3a8e6a['get'](_0x401540),_0x336c0b=_0x3a8e6a[_0x7a7b54(0x1f4)](_0x27bed1),_0x37a92d=_0x3a8e6a[_0x7a7b54(0x1f4)](Kr)[_0x7a7b54(0x32e)](_0x11c57c,_0x154245,_0x52546f,_0x5391e8,_0x6234a0),_0x4b32f1=new z()['invertOp'](_0x11c57c[_0x7a7b54(0x12c)](),_0x37a92d),_0x29ca0b={'unitId':_0x2115c7,'op':_0x37a92d},_0x772223={'unitId':_0x2115c7,'op':_0x4b32f1};return _0x4f7583['syncExecuteCommand'](Q['id'],_0x29ca0b)?(_0xb3919b[_0x7a7b54(0x267)](_0x2115c7),_0x336c0b[_0x7a7b54(0x2d8)]({'unitID':_0x2115c7,'undoMutations':[{'id':Q['id'],'params':_0x772223}],'redoMutations':[{'id':Q['id'],'params':_0x29ca0b}]}),!0x0):!0x1;}},Ea={'id':_0x4e663c(0x4a5),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x47109d,_0x3094f8){const _0x3cf507=_0x4e663c;if(!_0x3094f8)return!0x1;let _0x3dff1a=_0x47109d[_0x3cf507(0x1f4)](_0x31ecdb),{unitId:_0x5b6aff,tableId:_0x12a8fa,record:_0x292a55}=_0x3094f8,_0x4fc61c=_0x3dff1a[_0x3cf507(0x403)](_0x5b6aff,_0x2f51c2[_0x3cf507(0x1e3)]);if(!_0x4fc61c||!$(_0x4fc61c,_0x12a8fa))return!0x1;let _0x510ff3=_0x47109d['get'](_0x401540),_0x57dd10=_0x47109d['get'](_0x27bed1),_0x34d7f0=_0x47109d[_0x3cf507(0x1f4)](Kr),_0x342cae=_0x4fc61c[_0x3cf507(0x12c)](),_0x175a3e=ba(_0x4fc61c,_0x12a8fa,[_0x292a55]);if(!_0x175a3e)return!0x1;let [_0x5d2e4d]=_0x175a3e[_0x3cf507(0x3f2)],{hierarchyChanges:_0x526cc0,hierarchyFieldToMaterialize:_0x5e1a51}=_0x175a3e,_0x4a2f89=_0x5e1a51?_0x34d7f0['createCreateFieldOp'](_0x4fc61c,_0x12a8fa,_0x5e1a51,_0x342cae[_0x3cf507(0x13e)][_0x12a8fa][_0x3cf507(0x4c0)][_0x3cf507(0x255)]):null,_0x2d9712=_0x34d7f0['createCreateRecordOp'](_0x4fc61c,_0x12a8fa,_0x5d2e4d),_0x395e2b=R([..._0x4a2f89?[_0x4a2f89]:[],_0x2d9712]),_0x4f0e8f=new z()[_0x3cf507(0x44c)](_0x342cae,_0x395e2b),_0x4beda4={'unitId':_0x5b6aff,'op':_0x395e2b,'hierarchyChanges':_0x526cc0['length']?_0x526cc0:void 0x0,'source':_0x526cc0[_0x3cf507(0x255)]?_0x3094f8[_0x3cf507(0x408)]??'ui':void 0x0},_0x8a0cf2={..._0x4beda4,'source':_0x526cc0[_0x3cf507(0x255)]?'redo':void 0x0},_0x58434d={'unitId':_0x5b6aff,'op':_0x4f0e8f,'hierarchyChanges':_0x526cc0[_0x3cf507(0x255)]?_0x526cc0[_0x3cf507(0x19c)](_0x25d25e=>({..._0x25d25e,'oldParentRecordId':_0x25d25e[_0x3cf507(0x26d)],'parentRecordId':null})):void 0x0,'source':_0x526cc0[_0x3cf507(0x255)]?_0x3cf507(0x2fb):void 0x0};return _0x510ff3[_0x3cf507(0x3fb)](Q['id'],_0x4beda4)?(_0x3dff1a[_0x3cf507(0x267)](_0x5b6aff),_0x57dd10[_0x3cf507(0x2d8)]({'unitID':_0x5b6aff,'undoMutations':[{'id':Q['id'],'params':_0x58434d}],'redoMutations':[{'id':Q['id'],'params':_0x8a0cf2}]}),!0x0):!0x1;}},Da='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).';function Oa(_0x4605de,_0x3fa670,_0x34b6ba){const _0x3af7b6=_0x4e663c;if(!_0x3fa670[_0x3af7b6(0x319)]())return{'valid':!0x1,'reason':_0x3af7b6(0x358),'error':'required'};if(_0x3fa670[_0x3af7b6(0x255)]>0x1f)return{'valid':!0x1,'reason':_0x3af7b6(0x186),'error':_0x3af7b6(0x2fc)};if(_0x3fa670[_0x3af7b6(0x29a)]('\x27')||_0x3fa670[_0x3af7b6(0x3a8)]('\x27'))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','error':_0x3af7b6(0x2c6)};if(/[:\\/?*\[\]]/['test'](_0x3fa670))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':_0x3af7b6(0x1ca)};if(!_0x271f49(_0x3fa670))return{'valid':!0x1,'reason':_0x3af7b6(0x34b),'error':_0x3af7b6(0x491)};let _0x28f14b=_0x3fa670['toLowerCase']();return Object[_0x3af7b6(0x325)](_0x4605de[_0x3af7b6(0x13e)])[_0x3af7b6(0x48c)](_0x426b3e=>_0x426b3e['id']!==_0x34b6ba&&_0x426b3e[_0x3af7b6(0x269)][_0x3af7b6(0x2ec)]()===_0x28f14b)?{'valid':!0x1,'reason':_0x3af7b6(0x47a),'error':_0x3af7b6(0x181)}:{'valid':!0x0};}function ka(_0x2cce64,_0x3f2a1f){const _0x22ded7=_0x4e663c;let _0x53d161=_0x3f2a1f['replace'](/[:\\/?*\[\]]/g,'\x20')[_0x22ded7(0x13d)](/^'+|'+$/g,'')['trim']()||'Table',_0x2a4cc5=0x1;for(;;){let _0x523e05=_0x2a4cc5===0x1?'':'\x20'+_0x2a4cc5,_0x354b70=''+_0x53d161[_0x22ded7(0x183)](0x0,0x1f-_0x523e05['length'])+_0x523e05;if(Oa(_0x2cce64,_0x354b70)[_0x22ded7(0x39f)])return _0x354b70;_0x2a4cc5++;}}const Aa={'id':'base.command.create-base-table','type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x19cc94,_0x6a4abb)=>{const _0x51148f=_0x4e663c;if(!_0x6a4abb)return!0x1;let _0x2ba84b=_0x19cc94[_0x51148f(0x1f4)](_0x31ecdb),{unitId:_0x297dcd,table:_0x212ae5,index:_0x4b782d}=_0x6a4abb,_0x2c9239=_0x2ba84b['getUnit'](_0x297dcd,_0x2f51c2[_0x51148f(0x1e3)]);if(!_0x2c9239||_0x2c9239[_0x51148f(0x12c)]()[_0x51148f(0x13e)][_0x212ae5['id']]||!Oa(_0x2c9239[_0x51148f(0x12c)](),_0x212ae5[_0x51148f(0x269)])[_0x51148f(0x39f)])return!0x1;try{_0x3a5a33(_0x212ae5);}catch{return!0x1;}let _0x1e6ca6=_0x19cc94[_0x51148f(0x1f4)](_0x401540),_0x3bab45=_0x19cc94[_0x51148f(0x1f4)](_0x27bed1),_0x2a02f4=_0x2c9239[_0x51148f(0x12c)](),_0x55fdda=new W()[_0x51148f(0x487)](_0x2a02f4,_0x212ae5,_0x4b782d),_0x219b5c=new z()[_0x51148f(0x44c)](_0x2a02f4,_0x55fdda),_0x418bea={'unitId':_0x297dcd,'op':_0x55fdda},_0x54c9af={'unitId':_0x297dcd,'op':_0x219b5c};return _0x1e6ca6[_0x51148f(0x3fb)](Q['id'],_0x418bea)?(_0x2ba84b[_0x51148f(0x267)](_0x297dcd),_0x3bab45['pushUndoRedo']({'unitID':_0x297dcd,'undoMutations':[{'id':Q['id'],'params':_0x54c9af}],'redoMutations':[{'id':Q['id'],'params':_0x418bea}]}),!0x0):!0x1;}};function ja(_0x3e4858,_0x12464f,_0x2f669f=[]){const _0x59946e=_0x4e663c;let _0x1a0c5e=new Set([...Object['values'](_0x3e4858[_0x59946e(0x45e)])['filter'](_0x2c9125=>_0x2c9125)['map'](_0x2bf8b7=>_0x2bf8b7[_0x59946e(0x269)]),..._0x2f669f[_0x59946e(0x19c)](_0x441eb5=>_0x441eb5[_0x59946e(0x269)])]);if(!_0x1a0c5e[_0x59946e(0x19e)](_0x12464f))return _0x12464f;let _0x1d248b=0x2;for(;_0x1a0c5e[_0x59946e(0x19e)](_0x12464f+'\x20'+_0x1d248b);)_0x1d248b++;return _0x12464f+'\x20'+_0x1d248b;}function Ma(_0x2dccfd,_0x40a642){const _0x36f2eb=_0x4e663c;if(!_0x2dccfd||!_0x40a642[_0x36f2eb(0x255)])return;let _0x20326b=[..._0x2dccfd];return _0x40a642[_0x36f2eb(0x29f)](_0x1ba0c7=>{const _0x1d533b=_0x36f2eb;_0x20326b[_0x1d533b(0x176)](_0x1ba0c7)||_0x20326b[_0x1d533b(0x25c)](_0x1ba0c7);}),_0x20326b;}const Na={'options':[{'id':'todo','name':'Todo','color':_0x4e663c(0x3af)},{'id':_0x4e663c(0x3b3),'name':_0x4e663c(0x33a),'color':_0x4e663c(0x498)},{'id':_0x4e663c(0x497),'name':_0x4e663c(0x252),'color':'#BBF7D0'}]},Pa={'locale':'en-US','pattern':'yyyy/mm/dd','includeTime':!0x1,'hourCycle':_0x4e663c(0x115),'defaultMode':_0x4e663c(0x170)};function Fa(_0x473dd1,_0x5a2aa6,_0x56d3a7,_0x410606){const _0x2bdcea=_0x4e663c;var _0xdc6f08;let _0x408010=new W(),_0x3bd761=_0x473dd1[_0x2bdcea(0x13e)][_0x5a2aa6],_0x2330ed=_0x3bd761?{..._0x56d3a7,'fieldOrder':[_0x251017,...(_0x56d3a7[_0x2bdcea(0x4c0)]??_0x3bd761[_0x2bdcea(0x4c0)])[_0x2bdcea(0x20d)](_0x33f751=>_0x33f751!==_0x251017)],'fieldSettings':{..._0x56d3a7[_0x2bdcea(0x180)],[_0x251017]:{...(_0xdc6f08=_0x56d3a7['fieldSettings'])==null?void 0x0:_0xdc6f08[_0x251017],'hidden':!0x0}}}:_0x56d3a7;if(_0x3bd761&&_0x2330ed[_0x2bdcea(0x111)]==='kanban'){let _0x5d485f=La(_0x3bd761,_0x2330ed),_0x19e1b7=_0x5d485f[_0x2bdcea(0x28a)]?{..._0x2330ed,'config':_0x5d485f['config'],'fieldOrder':_0x5d485f[_0x2bdcea(0x4c0)]??_0x2330ed[_0x2bdcea(0x4c0)]}:_0x2330ed;return R([..._0x5d485f[_0x2bdcea(0x45e)][_0x2bdcea(0x19c)](_0x526cef=>_0x408010[_0x2bdcea(0x229)](_0x473dd1,_0x5a2aa6,{'field':_0x526cef})),_0x408010[_0x2bdcea(0x1bd)](_0x473dd1,_0x5a2aa6,_0x19e1b7,_0x410606)]);}if(!_0x3bd761||_0x2330ed[_0x2bdcea(0x111)]!==_0x2bdcea(0x3ae)&&_0x2330ed[_0x2bdcea(0x111)]!==_0x2bdcea(0x28c))return _0x408010['createView'](_0x473dd1,_0x5a2aa6,_0x2330ed,_0x410606);let _0x2d5736=Ia(_0x3bd761,_0x2330ed),_0x24e3f5=_0x2d5736[_0x2bdcea(0x28a)]?{..._0x2330ed,'config':_0x2d5736[_0x2bdcea(0x2c4)],'fieldOrder':_0x2d5736[_0x2bdcea(0x4c0)]??_0x2330ed['fieldOrder']}:_0x2330ed;return _0x2330ed[_0x2bdcea(0x111)]===_0x2bdcea(0x28c)&&Ba(_0x2330ed)&&(_0x24e3f5=Va(_0x3bd761,_0x24e3f5,_0x2d5736[_0x2bdcea(0x45e)])),R([..._0x2d5736['fields']['map'](_0x5dc398=>_0x408010[_0x2bdcea(0x229)](_0x473dd1,_0x5a2aa6,{'field':_0x5dc398})),_0x408010[_0x2bdcea(0x1bd)](_0x473dd1,_0x5a2aa6,_0x24e3f5,_0x410606)]);}function Ia(_0x3bcf92,_0x2c7499,_0x4a8369=!0x1){const _0x3e3c13=_0x4e663c;var _0x1b640d,_0x569d77;let _0x3285dd=_0x3bcf92[_0x3e3c13(0x4c0)][_0x3e3c13(0x20d)](_0x172cd4=>Ua(_0x3bcf92,_0x172cd4)),_0x3e12d3=[],_0x1b0081={..._0x2c7499['config']??{}},_0x4a1fce=typeof _0x1b0081[_0x3e3c13(0x1d2)]==_0x3e3c13(0x432)&&Ua(_0x3bcf92,_0x1b0081[_0x3e3c13(0x1d2)])?_0x1b0081[_0x3e3c13(0x1d2)]:_0x3285dd[0x0],_0x44e897=typeof _0x1b0081['endDateFieldId']=='string'&&Ua(_0x3bcf92,_0x1b0081[_0x3e3c13(0x1be)])&&_0x1b0081[_0x3e3c13(0x1be)]!==_0x4a1fce?_0x1b0081[_0x3e3c13(0x1be)]:_0x3285dd[_0x3e3c13(0x143)](_0x31bb28=>_0x31bb28!==_0x4a1fce);if(!_0x4a1fce){let _0x15e2aa=Wa(_0x3bcf92,_0x3e12d3,_0x2c7499['type']===_0x3e3c13(0x28c)?_0x3e3c13(0x127):_0x3e3c13(0x14a));_0x3e12d3['push'](_0x15e2aa),_0x4a1fce=_0x15e2aa['id'];}if((_0x2c7499[_0x3e3c13(0x111)]===_0x3e3c13(0x28c)||_0x4a8369)&&!_0x44e897){let _0x5a58d2=Wa(_0x3bcf92,_0x3e12d3,_0x3e3c13(0x42b));_0x3e12d3['push'](_0x5a58d2),_0x44e897=_0x5a58d2['id'];}_0x2c7499['type']===_0x3e3c13(0x3ae)&&!_0x44e897&&delete _0x1b0081[_0x3e3c13(0x1be)],_0x1b0081[_0x3e3c13(0x1d2)]=_0x4a1fce,_0x2c7499[_0x3e3c13(0x111)]===_0x3e3c13(0x3ae)&&_0x44e897&&(_0x1b0081[_0x3e3c13(0x1be)]=_0x44e897),_0x2c7499['type']===_0x3e3c13(0x28c)&&(_0x1b0081[_0x3e3c13(0x1be)]=_0x44e897??_0x4a1fce);let _0x2b262c=Ma(_0x2c7499['fieldOrder'],_0x3e12d3[_0x3e3c13(0x19c)](_0x3d5f93=>_0x3d5f93['id']));return{'changed':_0x3e12d3[_0x3e3c13(0x255)]>0x0||_0x1b0081[_0x3e3c13(0x1d2)]!==((_0x1b640d=_0x2c7499[_0x3e3c13(0x2c4)])==null?void 0x0:_0x1b640d[_0x3e3c13(0x1d2)])||_0x1b0081['endDateFieldId']!==((_0x569d77=_0x2c7499['config'])==null?void 0x0:_0x569d77[_0x3e3c13(0x1be)])||!(!_0x2b262c||_0x6981f1[_0x3e3c13(0x23b)](_0x2b262c,_0x2c7499[_0x3e3c13(0x4c0)]??[])),'fields':_0x3e12d3,'config':_0x1b0081,'fieldOrder':_0x2b262c};}function La(_0x4231a5,_0x5905d0){const _0x3555cc=_0x4e663c;var _0x1e81ed;let _0x13be73=[],_0x578c75={..._0x5905d0[_0x3555cc(0x2c4)]??{}},_0x106cbe=typeof _0x578c75[_0x3555cc(0x2fd)]=='string'&&Ra(_0x4231a5,_0x578c75[_0x3555cc(0x2fd)])?_0x578c75[_0x3555cc(0x2fd)]:_0x4231a5[_0x3555cc(0x4c0)]['find'](_0x44e8ea=>Ra(_0x4231a5,_0x44e8ea));if(!_0x106cbe){let _0xb3d178=za(_0x4231a5,_0x13be73);_0x13be73['push'](_0xb3d178),_0x106cbe=_0xb3d178['id'];}_0x578c75[_0x3555cc(0x2fd)]=_0x106cbe;let _0x5e395c=Ma(_0x5905d0[_0x3555cc(0x4c0)],_0x13be73[_0x3555cc(0x19c)](_0x5c1fac=>_0x5c1fac['id']));return{'changed':_0x13be73[_0x3555cc(0x255)]>0x0||_0x578c75[_0x3555cc(0x2fd)]!==((_0x1e81ed=_0x5905d0[_0x3555cc(0x2c4)])==null?void 0x0:_0x1e81ed[_0x3555cc(0x2fd)])||!(!_0x5e395c||_0x6981f1[_0x3555cc(0x23b)](_0x5e395c,_0x5905d0[_0x3555cc(0x4c0)]??[])),'fields':_0x13be73,'config':_0x578c75,'fieldOrder':_0x5e395c};}function Ra(_0x673b80,_0x578d95){const _0x541ea0=_0x4e663c;let _0x4538bc=_0x578d95?_0x673b80[_0x541ea0(0x45e)][_0x578d95]:null;return _0x4538bc?[_0x5f310d[_0x541ea0(0x1d9)],_0x5f310d[_0x541ea0(0x3b2)],_0x5f310d[_0x541ea0(0x29c)],_0x5f310d['Person'],_0x5f310d[_0x541ea0(0x19d)],_0x5f310d[_0x541ea0(0x280)]][_0x541ea0(0x176)](_0x4538bc[_0x541ea0(0x111)]):!0x1;}function za(_0x5cf4dc,_0x45fc56){const _0x509166=_0x4e663c;return{'id':_0x509166(0x428)+_0x4b8ea3(0x8),'name':ja(_0x5cf4dc,_0x509166(0x261),_0x45fc56),'type':_0x5f310d['SingleSelect'],'config':_0x6981f1[_0x509166(0x12f)](Na)};}function Ba(_0x464f50){const _0x4f8aa9=_0x4e663c;return Object['keys'](_0x464f50['config']??{})[_0x4f8aa9(0x255)]===0x0&&Object[_0x4f8aa9(0x467)](_0x464f50['fieldSettings']??{})['length']===0x0;}function Va(_0x25964d,_0x5da852,_0x3a3b34){const _0x51b345=_0x4e663c;let _0x3df663={..._0x5da852[_0x51b345(0x2c4)]??{}},_0x331cb2=_0x3a3b34['map'](_0x5da4d0=>_0x5da4d0['id']),_0x17d2d7=[..._0x25964d[_0x51b345(0x4c0)],..._0x331cb2],_0x5c3d79=typeof _0x3df663[_0x51b345(0x10e)]==_0x51b345(0x432)&&Ha(_0x25964d,_0x3a3b34,_0x3df663[_0x51b345(0x10e)])?_0x3df663[_0x51b345(0x10e)]:_0x25964d['primaryFieldId'],_0xe6a67e=typeof _0x3df663[_0x51b345(0x1d2)]==_0x51b345(0x432)?_0x3df663[_0x51b345(0x1d2)]:'',_0x275828=typeof _0x3df663[_0x51b345(0x1be)]==_0x51b345(0x432)?_0x3df663[_0x51b345(0x1be)]:_0xe6a67e,_0x2b484a=new Set([_0x5c3d79,_0xe6a67e,_0x275828][_0x51b345(0x20d)](_0x5e4589=>_0x5e4589&&Ha(_0x25964d,_0x3a3b34,_0x5e4589))),_0x39860c=Object[_0x51b345(0x147)](_0x17d2d7[_0x51b345(0x1fb)](_0xfb5009=>_0x2b484a[_0x51b345(0x19e)](_0xfb5009)||!Ha(_0x25964d,_0x3a3b34,_0xfb5009)?[]:[[_0xfb5009,{'hidden':!0x0}]]));return{..._0x5da852,'config':{..._0x3df663,'titleFieldId':_0x5c3d79},'fieldSettings':_0x39860c};}function Ha(_0x255e71,_0x3d9df0,_0x30f180){const _0x532047=_0x4e663c;return!!(_0x255e71[_0x532047(0x45e)][_0x30f180]??_0x3d9df0[_0x532047(0x143)](_0x350bbc=>_0x350bbc['id']===_0x30f180))&&!0x0;}function Ua(_0x434fb9,_0x545d54){const _0x4292fc=_0x4e663c;let _0x31f061=_0x545d54?_0x434fb9[_0x4292fc(0x45e)][_0x545d54]:null;return!!_0x31f061&&_0x31f061['type']===_0x5f310d[_0x4292fc(0x14a)]&&_0x31f061[_0x4292fc(0x3c7)]!==!0x0&&_0x31f061[_0x4292fc(0x39c)]!==!0x0;}function Wa(_0x2ec960,_0x17cbd2,_0x4eebe6){const _0x295d3b=_0x4e663c;let _0xcd57ac=new Set([...Object['keys'](_0x2ec960[_0x295d3b(0x45e)]),..._0x17cbd2['map'](_0x206d1a=>_0x206d1a['id'])]),_0xf3531f=_0x295d3b(0x428)+_0x4b8ea3(0x8);for(;_0xcd57ac[_0x295d3b(0x19e)](_0xf3531f);)_0xf3531f=_0x295d3b(0x428)+_0x4b8ea3(0x8);return{'id':_0xf3531f,'name':ja(_0x2ec960,_0x4eebe6,_0x17cbd2),'type':_0x5f310d['Date'],'config':{...Pa}};}const Ga={'id':_0x4e663c(0x11b),'type':_0x551bc1['COMMAND'],'handler':(_0x6a9b23,_0x36b6c9)=>{const _0x2a1492=_0x4e663c;if(!_0x36b6c9)return!0x1;let _0x4e433a=_0x6a9b23[_0x2a1492(0x1f4)](_0x31ecdb),{unitId:_0x519a4a,tableId:_0x413e52,view:_0x173576,index:_0x14c766}=_0x36b6c9,_0x16d348=_0x4e433a[_0x2a1492(0x403)](_0x519a4a,_0x2f51c2[_0x2a1492(0x1e3)]);if(!_0x16d348||!$(_0x16d348,_0x413e52)||_0x16d348['getSnapshot']()['tables'][_0x413e52][_0x2a1492(0x2ac)][_0x173576['id']])return!0x1;let _0x18bb48=_0x6a9b23[_0x2a1492(0x1f4)](_0x401540),_0xc919ae=_0x6a9b23[_0x2a1492(0x1f4)](_0x27bed1),_0x4e560c=_0x16d348[_0x2a1492(0x12c)](),_0x2bf310=Fa(_0x4e560c,_0x413e52,_0x173576,_0x14c766),_0x5c6721=new z()[_0x2a1492(0x44c)](_0x4e560c,_0x2bf310),_0x1bb76b={'historyAction':_0x2a1492(0x25e),'unitId':_0x519a4a,'op':_0x2bf310,'viewType':_0x173576['type']},_0x354682={'historyAction':'delete-view','unitId':_0x519a4a,'op':_0x5c6721,'viewType':_0x173576[_0x2a1492(0x111)]};return _0x18bb48[_0x2a1492(0x3fb)](Q['id'],_0x1bb76b)?(_0x4e433a[_0x2a1492(0x267)](_0x519a4a),_0xc919ae[_0x2a1492(0x2d8)]({'unitID':_0x519a4a,'undoMutations':[{'id':Q['id'],'params':_0x354682}],'redoMutations':[{'id':Q['id'],'params':_0x1bb76b}]}),!0x0):!0x1;}},Ka={'id':_0x4e663c(0x483),'type':_0x551bc1['COMMAND'],'handler'(_0xaeb3c6,_0x549718){const _0x396c3a=_0x4e663c;if(!_0x549718)return!0x1;let _0x27cba4=_0xaeb3c6[_0x396c3a(0x1f4)](_0x31ecdb),{unitId:_0x1a9d4e,tableId:_0x2f2a42,fieldId:_0x40c1ea}=_0x549718,_0x2787e0=_0x27cba4['getUnit'](_0x1a9d4e,_0x2f51c2['UNIVER_BASE']);if(!_0x2787e0)return!0x1;let _0xaea4bb=_0x2787e0[_0x396c3a(0x12c)](),_0x4bc574=_0xaea4bb['tables'][_0x2f2a42];if(!$(_0x2787e0,_0x2f2a42,{'fieldIds':[_0x40c1ea]})||_0x4bc574['primaryFieldId']===_0x40c1ea||_0x40c1ea===_0x251017)return!0x1;let _0x49ed69=_0xaeb3c6[_0x396c3a(0x1f4)](_0x401540),_0x4a67f5=_0xaeb3c6[_0x396c3a(0x1f4)](_0x27bed1),_0x2bd4e8=new W()[_0x396c3a(0x2cc)](_0xaea4bb,_0x2f2a42,_0x40c1ea),_0x5c68ec=new z()[_0x396c3a(0x44c)](_0xaea4bb,_0x2bd4e8),_0x3cc462={'unitId':_0x1a9d4e,'op':_0x2bd4e8},_0x52e386={'unitId':_0x1a9d4e,'op':_0x5c68ec};return _0x49ed69[_0x396c3a(0x3fb)](Q['id'],_0x3cc462)?(_0x27cba4[_0x396c3a(0x267)](_0x1a9d4e),_0x4a67f5[_0x396c3a(0x2d8)]({'unitID':_0x1a9d4e,'undoMutations':[{'id':Q['id'],'params':_0x52e386}],'redoMutations':[{'id':Q['id'],'params':_0x3cc462}]}),!0x0):!0x1;}},qa={'id':_0x4e663c(0x175),'type':_0x551bc1['COMMAND'],'handler':(_0xa4daa2,_0x3b2035)=>{const _0x4d0b31=_0x4e663c;if(!_0x3b2035)return!0x1;let _0x4ce6cf=_0xa4daa2[_0x4d0b31(0x1f4)](_0x31ecdb),{unitId:_0x2a1b96,tableId:_0x4ac96e,recordId:_0x3fa376}=_0x3b2035,_0x352f9a=_0x4ce6cf[_0x4d0b31(0x403)](_0x2a1b96,_0x2f51c2[_0x4d0b31(0x1e3)]);if(!_0x352f9a||!$(_0x352f9a,_0x4ac96e,{'recordIds':[_0x3fa376]}))return!0x1;let _0x300377=_0xa4daa2['get'](_0x401540),_0x3fcd91=_0xa4daa2['get'](_0x27bed1),_0x54f122=_0x352f9a[_0x4d0b31(0x12c)](),_0x23bb1b=et(_0x54f122[_0x4d0b31(0x13e)][_0x4ac96e],[_0x3fa376]),_0x2e0823=new W(),_0x163a05=new z(),_0x31b66a=_0x2e0823['deleteRecord'](_0x54f122,_0x4ac96e,_0x3fa376),_0x42326b=_0x163a05[_0x4d0b31(0x3f0)](_0x54f122,_0x31b66a),_0x124e1b=_0x2e0823['createDeleteRecordsUndoOp'](_0x54f122,_0x42326b,_0x4ac96e,[_0x3fa376]),_0x1218ec={'unitId':_0x2a1b96,'op':_0x31b66a,'hierarchyChanges':_0x23bb1b,'source':_0x3b2035[_0x4d0b31(0x408)]??'ui'},_0xc22ded={..._0x1218ec,'source':_0x4d0b31(0x249)},_0x12eb43={'unitId':_0x2a1b96,'op':_0x124e1b,'hierarchyChanges':_0x23bb1b[_0x4d0b31(0x19c)](_0x1af910=>({..._0x1af910,'oldParentRecordId':_0x1af910[_0x4d0b31(0x26d)],'parentRecordId':_0x1af910['oldParentRecordId']})),'source':_0x4d0b31(0x2fb)};return _0x300377[_0x4d0b31(0x3fb)](Q['id'],_0x1218ec)?(_0x4ce6cf[_0x4d0b31(0x267)](_0x2a1b96),_0x3fcd91[_0x4d0b31(0x2d8)]({'unitID':_0x2a1b96,'undoMutations':[{'id':Q['id'],'params':_0x12eb43}],'redoMutations':[{'id':Q['id'],'params':_0xc22ded}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x3e372f,_0x3b08f2)=>{const _0x4e052a=_0x4e663c;if(!_0x3b08f2)return!0x1;let _0x134e81=_0x3e372f[_0x4e052a(0x1f4)](_0x31ecdb),{unitId:_0x5c83d6,tableId:_0x573864}=_0x3b08f2,_0x43319c=_0x134e81[_0x4e052a(0x403)](_0x5c83d6,_0x2f51c2[_0x4e052a(0x1e3)]);if(!_0x43319c||!$(_0x43319c,_0x573864))return!0x1;let _0x3100c4=_0x3e372f['get'](_0x401540),_0x176b8a=_0x3e372f['get'](_0x27bed1),_0x40690a=_0x43319c['getSnapshot'](),_0x2a646a=He(_0x40690a,_0x573864);if(_0x2a646a['length']>0x0)return console[_0x4e052a(0x3c6)](_0x4e052a(0x3c9)+_0x573864+'\x22\x20is\x20referenced\x20by\x20'+_0x2a646a[_0x4e052a(0x19c)](_0x2af208=>_0x2af208[_0x4e052a(0x3a6)]+'.'+_0x2af208[_0x4e052a(0x2be)])[_0x4e052a(0x2e9)](',\x20')+'.'),!0x1;let _0x4045b9=new W()['deleteTable'](_0x40690a,_0x573864),_0xc491f3=new z()[_0x4e052a(0x44c)](_0x40690a,_0x4045b9),_0x44c4a2={'unitId':_0x5c83d6,'op':_0x4045b9},_0x144b1a={'unitId':_0x5c83d6,'op':_0xc491f3};return _0x3100c4[_0x4e052a(0x3fb)](Q['id'],_0x44c4a2)?(_0x134e81[_0x4e052a(0x267)](_0x5c83d6),_0x176b8a[_0x4e052a(0x2d8)]({'unitID':_0x5c83d6,'undoMutations':[{'id':Q['id'],'params':_0x144b1a}],'redoMutations':[{'id':Q['id'],'params':_0x44c4a2}]}),!0x0):!0x1;}},Ya={'id':_0x4e663c(0x1ce),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0xd9104e,_0x53caba)=>{const _0x28f812=_0x4e663c;if(!_0x53caba)return!0x1;let _0x87aab3=_0xd9104e[_0x28f812(0x1f4)](_0x31ecdb),{unitId:_0x599b24,tableId:_0x527a01,viewId:_0x5dcad7}=_0x53caba,_0x1c402b=_0x87aab3[_0x28f812(0x403)](_0x599b24,_0x2f51c2[_0x28f812(0x1e3)]);if(!_0x1c402b||!$(_0x1c402b,_0x527a01,{'viewIds':[_0x5dcad7]}))return!0x1;let _0x4a0cf8=_0xd9104e[_0x28f812(0x1f4)](_0x401540),_0x49c154=_0xd9104e[_0x28f812(0x1f4)](_0x27bed1),_0x54254c=_0x1c402b[_0x28f812(0x12c)](),_0x5a8370=_0x54254c[_0x28f812(0x13e)][_0x527a01][_0x28f812(0x2ac)][_0x5dcad7][_0x28f812(0x111)],_0x166cbe=new W()['deleteView'](_0x54254c,_0x527a01,_0x5dcad7),_0x20ee5f=new z()[_0x28f812(0x44c)](_0x54254c,_0x166cbe),_0x3677bf={'historyAction':_0x28f812(0x46c),'unitId':_0x599b24,'op':_0x166cbe,'viewType':_0x5a8370},_0x175ca6={'historyAction':_0x28f812(0x25e),'unitId':_0x599b24,'op':_0x20ee5f,'viewType':_0x5a8370};return _0x4a0cf8['syncExecuteCommand'](Q['id'],_0x3677bf)?(_0x87aab3[_0x28f812(0x267)](_0x599b24),_0x49c154[_0x28f812(0x2d8)]({'unitID':_0x599b24,'undoMutations':[{'id':Q['id'],'params':_0x175ca6}],'redoMutations':[{'id':Q['id'],'params':_0x3677bf}]}),!0x0):!0x1;}},Xa={'id':_0x4e663c(0x213),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x13697a,_0x506be9)=>{const _0x281ad8=_0x4e663c;if(!_0x506be9)return!0x1;let _0xf58d6e=_0x13697a[_0x281ad8(0x1f4)](_0x31ecdb),{unitId:_0xc27b4a,tableId:_0x2e1464,sourceFieldId:_0x5f457d,field:_0x25deef,index:_0x658598,viewIndexes:_0x4dd754}=_0x506be9,_0x1390b1=_0xf58d6e['getUnit'](_0xc27b4a,_0x2f51c2['UNIVER_BASE']);if(!_0x1390b1||!$(_0x1390b1,_0x2e1464,{'fieldIds':[_0x5f457d]})||_0x5f457d===_0x251017||_0x1390b1[_0x281ad8(0x12c)]()[_0x281ad8(0x13e)][_0x2e1464][_0x281ad8(0x45e)][_0x25deef['id']]||_0x658598===0x0||!ha(_0x1390b1,_0x2e1464,_0x25deef))return!0x1;let _0x104ba0=_0x13697a[_0x281ad8(0x1f4)](_0x401540),_0x4036ae=_0x13697a[_0x281ad8(0x1f4)](_0x27bed1),_0x10be1f=_0x1390b1[_0x281ad8(0x12c)](),_0x27f1cf=new W()['duplicateField'](_0x10be1f,_0x2e1464,_0x5f457d,{'field':_0x25deef,'index':_0x658598,'viewIndexes':_0x4dd754}),_0x37c0cb=new z()[_0x281ad8(0x44c)](_0x10be1f,_0x27f1cf),_0x5cdd6b={'unitId':_0xc27b4a,'op':_0x27f1cf},_0x2cf8f1={'unitId':_0xc27b4a,'op':_0x37c0cb};return _0x104ba0['syncExecuteCommand'](Q['id'],_0x5cdd6b)?(_0xf58d6e[_0x281ad8(0x267)](_0xc27b4a),_0x4036ae[_0x281ad8(0x2d8)]({'unitID':_0xc27b4a,'undoMutations':[{'id':Q['id'],'params':_0x2cf8f1}],'redoMutations':[{'id':Q['id'],'params':_0x5cdd6b}]}),!0x0):!0x1;}},Za={'id':_0x4e663c(0x154),'type':_0x551bc1['COMMAND'],'handler':(_0x56b7d7,_0x2508a0)=>{const _0x4cc97f=_0x4e663c;if(!_0x2508a0)return!0x1;let _0x32f2d5=_0x56b7d7[_0x4cc97f(0x1f4)](_0x31ecdb),{unitId:_0xab931e,tableId:_0x5b628a,sourceRecordId:_0x5a955f,record:_0x3c1b61}=_0x2508a0,_0x4b3395=_0x32f2d5[_0x4cc97f(0x403)](_0xab931e,_0x2f51c2[_0x4cc97f(0x1e3)]);if(!_0x4b3395||!$(_0x4b3395,_0x5b628a,{'recordIds':[_0x5a955f]})||!_a(_0x4b3395,_0x5b628a,_0x3c1b61))return!0x1;let _0x54a86e=_0x56b7d7[_0x4cc97f(0x1f4)](_0x401540),_0xf21b85=_0x56b7d7['get'](_0x27bed1),_0x4c85c6=_0x4b3395['getSnapshot'](),_0x409c50=va(_0x3c1b61),_0x498c23=Qe(_0x4c85c6[_0x4cc97f(0x13e)][_0x5b628a],[_0x409c50]),_0x4800b8=new W()[_0x4cc97f(0x458)](_0x4c85c6,_0x5b628a,_0x5a955f,_0x409c50),_0x5ace5a=new z()['invertOp'](_0x4c85c6,_0x4800b8),_0x2b3c2a={'unitId':_0xab931e,'op':_0x4800b8,'hierarchyChanges':_0x498c23[_0x4cc97f(0x255)]?_0x498c23:void 0x0,'source':_0x498c23[_0x4cc97f(0x255)]?_0x2508a0[_0x4cc97f(0x408)]??'ui':void 0x0},_0x47b818={..._0x2b3c2a,'source':_0x498c23[_0x4cc97f(0x255)]?_0x4cc97f(0x249):void 0x0},_0x4aa984={'unitId':_0xab931e,'op':_0x5ace5a,'hierarchyChanges':_0x498c23['length']?_0x498c23[_0x4cc97f(0x19c)](_0x3fe571=>({..._0x3fe571,'oldParentRecordId':_0x3fe571['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x498c23['length']?_0x4cc97f(0x2fb):void 0x0};return _0x54a86e[_0x4cc97f(0x3fb)](Q['id'],_0x2b3c2a)?(_0x32f2d5[_0x4cc97f(0x267)](_0xab931e),_0xf21b85[_0x4cc97f(0x2d8)]({'unitID':_0xab931e,'undoMutations':[{'id':Q['id'],'params':_0x4aa984}],'redoMutations':[{'id':Q['id'],'params':_0x47b818}]}),!0x0):!0x1;}},Qa={'id':'base.command.ensure-base-temporal-view-date-fields','type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x2187e4,_0x15979b){const _0xdaae28=_0x4e663c;if(!_0x15979b)return!0x1;let _0x531861=_0x2187e4[_0xdaae28(0x1f4)](_0x31ecdb),{unitId:_0x5c021c,tableId:_0x4a8d4b,viewId:_0x29f1c5,ensureEndDateField:_0x4cd6d9}=_0x15979b,_0x2d9e0f=_0x531861[_0xdaae28(0x403)](_0x5c021c,_0x2f51c2[_0xdaae28(0x1e3)]);if(!_0x2d9e0f||!$(_0x2d9e0f,_0x4a8d4b,{'viewIds':[_0x29f1c5]}))return!0x1;let _0x5bf5af=_0x2d9e0f[_0xdaae28(0x12c)](),_0x4dc9af=_0x5bf5af[_0xdaae28(0x13e)][_0x4a8d4b],_0x1068ba=_0x4dc9af==null?void 0x0:_0x4dc9af[_0xdaae28(0x2ac)][_0x29f1c5];if(!_0x4dc9af||!_0x1068ba||_0x1068ba[_0xdaae28(0x111)]!=='calendar'&&_0x1068ba['type']!==_0xdaae28(0x28c))return!0x1;let _0x105f5d=Ia(_0x4dc9af,_0x1068ba,_0x4cd6d9===!0x0);if(!_0x105f5d['changed'])return!0x1;let _0x308cbf=_0x2187e4['get'](_0x401540),_0x116eaf=_0x2187e4[_0xdaae28(0x1f4)](_0x27bed1),_0x6333fe=new W(),_0x52d219=[..._0x105f5d[_0xdaae28(0x45e)][_0xdaae28(0x19c)](_0x516ea1=>_0x6333fe['createField'](_0x5bf5af,_0x15979b['tableId'],{'field':_0x516ea1})),$a([...eo(_0x15979b[_0xdaae28(0x3a6)],_0x15979b['viewId']),'config'],_0x1068ba[_0xdaae28(0x2c4)],_0x105f5d[_0xdaae28(0x2c4)])];_0x105f5d[_0xdaae28(0x4c0)]&&_0x52d219[_0xdaae28(0x25c)]($a([...eo(_0x15979b[_0xdaae28(0x3a6)],_0x15979b[_0xdaae28(0x152)]),_0xdaae28(0x4c0)],_0x1068ba[_0xdaae28(0x4c0)],_0x105f5d[_0xdaae28(0x4c0)]));let _0x4ae68e=R(_0x52d219),_0x2807cc=new z()[_0xdaae28(0x44c)](_0x5bf5af,_0x4ae68e),_0x4a2566={'unitId':_0x5c021c,'op':_0x4ae68e},_0x5f5a8={'unitId':_0x5c021c,'op':_0x2807cc};return _0x308cbf[_0xdaae28(0x3fb)](Q['id'],_0x4a2566)?(_0x531861[_0xdaae28(0x267)](_0x5c021c),_0x116eaf[_0xdaae28(0x2d8)]({'unitID':_0x5c021c,'undoMutations':[{'id':Q['id'],'params':_0x5f5a8}],'redoMutations':[{'id':Q['id'],'params':_0x4a2566}]}),!0x0):!0x1;}};function $a(_0x106409,_0x25cc6c,_0x1bdd90){const _0xb20055=_0x4e663c;return _0x25cc6c===void 0x0?_0x1ba09c[_0xb20055(0x1dc)](_0x106409,_0x1bdd90):_0x1ba09c[_0xb20055(0x4ab)](_0x106409,_0x25cc6c,_0x1bdd90);}function eo(_0x315f82,_0x32e2eb){const _0x1fb3fe=_0x4e663c;return[_0x1fb3fe(0x13e),_0x315f82,_0x1fb3fe(0x2ac),_0x32e2eb];}const to={'id':_0x4e663c(0x3bb),'type':_0x551bc1['COMMAND'],'handler':(_0xa65239,_0x3fa48a)=>{const _0x1558aa=_0x4e663c;if(!_0x3fa48a)return!0x1;let _0xef24fb=_0xa65239[_0x1558aa(0x1f4)](_0x31ecdb),{unitId:_0x1f14b2,tableId:_0x27d9ba,fieldId:_0x25a946,target:_0x2d2094}=_0x3fa48a,_0x75801=_0xef24fb[_0x1558aa(0x403)](_0x1f14b2,_0x2f51c2['UNIVER_BASE']),_0xec95dc=_0x2d2094[_0x1558aa(0x244)]??_0x2d2094[_0x1558aa(0x1e4)];if(!_0x75801||!!_0x2d2094[_0x1558aa(0x244)]==!!_0x2d2094[_0x1558aa(0x1e4)]||!_0xec95dc||_0xec95dc===_0x25a946||_0x25a946===_0x251017||_0x2d2094[_0x1558aa(0x244)]===_0x251017||!$(_0x75801,_0x27d9ba,{'fieldIds':[_0x25a946,_0xec95dc]}))return!0x1;let _0x572d3e=_0xa65239[_0x1558aa(0x1f4)](_0x401540),_0x37a272=_0xa65239[_0x1558aa(0x1f4)](_0x27bed1),_0x1f80de=_0x75801[_0x1558aa(0x12c)](),_0x1aa5da=new W()[_0x1558aa(0x114)](_0x1f80de,_0x27d9ba,_0x25a946,_0x2d2094),_0x105ecd=new z()['invertOp'](_0x1f80de,_0x1aa5da),_0x560708={'unitId':_0x1f14b2,'op':_0x1aa5da},_0x1eb9c6={'unitId':_0x1f14b2,'op':_0x105ecd};return _0x572d3e[_0x1558aa(0x3fb)](Q['id'],_0x560708)?(_0xef24fb[_0x1558aa(0x267)](_0x1f14b2),_0x37a272['pushUndoRedo']({'unitID':_0x1f14b2,'undoMutations':[{'id':Q['id'],'params':_0x1eb9c6}],'redoMutations':[{'id':Q['id'],'params':_0x560708}]}),!0x0):!0x1;}},no={'id':'base.command.move-base-hierarchy-record','type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x22c338,_0x5995e7)=>{const _0x26e21d=_0x4e663c;var _0x467417;if(!_0x5995e7)return!0x1;let {unitId:_0x55233e,tableId:_0x5996a7,recordId:_0x258a13,parentRecordId:_0x43811a,orderKey:_0x2caef1}=_0x5995e7,_0x1ebc2b=_0x22c338[_0x26e21d(0x1f4)](_0x31ecdb),_0x51a594=_0x1ebc2b['getUnit'](_0x55233e,_0x2f51c2[_0x26e21d(0x1e3)]);if(!_0x51a594||!$(_0x51a594,_0x5996a7,{'recordIds':[_0x258a13,..._0x43811a?[_0x43811a]:[]]}))throw new P(_0x26e21d(0x218));let _0x157961=_0x51a594[_0x26e21d(0x12c)](),_0x56dc50=_0x157961[_0x26e21d(0x13e)][_0x5996a7],_0x5cea04=qe(_0x56dc50),_0x3d6e02=_0x5cea04??_0x5995e7[_0x26e21d(0x2be)]??Je(_0x56dc50);if(_0x5cea04&&_0x5995e7['fieldId']&&_0x5995e7[_0x26e21d(0x2be)]!==_0x5cea04||_0x56dc50['fields'][_0x3d6e02]&&!F(_0x56dc50,_0x3d6e02))throw new P(_0x26e21d(0x24e));let _0x24efad=tt(_0x56dc50,_0x3d6e02),_0x52de0f=it(_0x24efad,_0x258a13,_0x43811a);if(!_0x52de0f['valid'])throw new P(_0x52de0f[_0x26e21d(0x41c)]===_0x5da3fc[_0x26e21d(0x237)]?_0x26e21d(0x1a4):_0x52de0f[_0x26e21d(0x41c)]===_0x5da3fc[_0x26e21d(0x38b)]?_0x26e21d(0x242):_0x26e21d(0x198));let _0x42120f=_0x24efad[_0x26e21d(0x158)][_0x26e21d(0x1f4)](_0x258a13)??null,_0x3e00bb=_0x56dc50[_0x26e21d(0x3f2)][_0x258a13]['orderKey'];if(_0x42120f===_0x43811a&&(_0x2caef1===void 0x0||_0x2caef1===_0x3e00bb))return!0x0;let _0xb12587=_0x42120f!==_0x43811a,_0x531f14=_0x2caef1!==void 0x0&&_0x2caef1!==_0x3e00bb,_0x233195=new W(),_0x595cbf=[],_0x47e568=_0x56dc50['fields'][_0x3d6e02],_0x373abb=_0xb12587&&(!_0x47e568||((_0x467417=N(_0x47e568))==null?void 0x0:_0x467417['relationRole'])!==_0xef1c81[_0x26e21d(0x367)])?_0x47e568?_0x233195[_0x26e21d(0x190)](_0x157961,_0x5996a7,_0x3d6e02,{'config':{..._0x47e568['config'],'relationRole':_0xef1c81[_0x26e21d(0x367)]}}):_0x22c338[_0x26e21d(0x1f4)](Kr)[_0x26e21d(0x32e)](_0x51a594,_0x5996a7,Ye(_0x56dc50,_0x3d6e02,_0x5995e7[_0x26e21d(0x38f)]),_0x56dc50[_0x26e21d(0x4c0)][_0x26e21d(0x255)]):null;_0x373abb&&_0x595cbf[_0x26e21d(0x25c)](_0x373abb),_0xb12587&&_0x595cbf['push'](_0x233195[_0x26e21d(0x446)](_0x157961,_0x5996a7,_0x258a13,_0x3d6e02,_0x43811a?Re([_0x43811a]):'')),_0x531f14&&_0x595cbf[_0x26e21d(0x25c)](_0x233195[_0x26e21d(0x2a2)](_0x157961,_0x5996a7,_0x258a13,_0x2caef1));let _0x513d8e=R(_0x595cbf),_0x3435d2={'tableId':_0x5996a7,'fieldId':_0x3d6e02,'recordId':_0x258a13,'oldParentRecordId':_0x42120f,'parentRecordId':_0x43811a},_0x589d7c={'unitId':_0x55233e,'op':_0x513d8e,'trigger':no['id'],'hierarchyChanges':[_0x3435d2],'source':_0x5995e7[_0x26e21d(0x408)]??'ui'},_0xb2c949={..._0x589d7c,'source':_0x26e21d(0x249)};if(!_0x22c338[_0x26e21d(0x1f4)](_0x401540)[_0x26e21d(0x3fb)](Q['id'],_0x589d7c))return!0x1;let _0x19980e=_0x51a594[_0x26e21d(0x12c)](),_0x204687=[];_0xb12587&&_0x204687[_0x26e21d(0x25c)](ro(_0x19980e,_0x157961,_0x5996a7,_0x258a13,_0x3d6e02)),_0x531f14&&_0x204687[_0x26e21d(0x25c)](io(_0x19980e,_0x157961,_0x5996a7,_0x258a13)),_0x373abb&&_0x204687[_0x26e21d(0x25c)](new z()[_0x26e21d(0x44c)](_0x157961,_0x373abb));let _0x33e956={'unitId':_0x55233e,'op':R(_0x204687),'trigger':no['id'],'hierarchyChanges':[{..._0x3435d2,'oldParentRecordId':_0x43811a,'parentRecordId':_0x42120f}],'source':_0x26e21d(0x2fb)};return _0x1ebc2b['focusUnit'](_0x55233e),_0x22c338['get'](_0x27bed1)[_0x26e21d(0x2d8)]({'unitID':_0x55233e,'undoMutations':[{'id':Q['id'],'params':_0x33e956}],'redoMutations':[{'id':Q['id'],'params':_0xb2c949}]}),!0x0;}};function ro(_0x295790,_0x18b2c6,_0x13835b,_0x570d30,_0x3b4e70){const _0x262a25=_0x4e663c;var _0x4bd8ee,_0x1b7b64,_0x301837,_0x5e97d5,_0x4fd5f9,_0x3a2760,_0x13471b,_0x54acfe;let _0x35fc93=_0x295790[_0x262a25(0x13e)][_0x13835b],_0x253a4c=_0x18b2c6[_0x262a25(0x13e)][_0x13835b],_0x44c6f6=(_0x4bd8ee=_0x35fc93[_0x262a25(0x200)])==null?void 0x0:_0x4bd8ee[_0x570d30],_0x49876b=(_0x1b7b64=_0x35fc93['colIndex'])==null?void 0x0:_0x1b7b64[_0x3b4e70],_0x42b116=(_0x301837=_0x253a4c['rowIndex'])==null?void 0x0:_0x301837[_0x570d30],_0x2bea83=(_0x5e97d5=_0x253a4c[_0x262a25(0x293)])==null?void 0x0:_0x5e97d5[_0x3b4e70],_0x3158b9=_0x44c6f6==null||_0x49876b==null||(_0x4fd5f9=_0x35fc93['cellData'])==null||(_0x4fd5f9=_0x4fd5f9[_0x44c6f6])==null?void 0x0:_0x4fd5f9[_0x49876b],_0x11a9f8=_0x42b116==null||_0x2bea83==null||(_0x3a2760=_0x253a4c['cellData'])==null||(_0x3a2760=_0x3a2760[_0x42b116])==null?void 0x0:_0x3a2760[_0x2bea83],_0x1a00c4=(_0x13471b=_0x35fc93[_0x262a25(0x3f2)][_0x570d30])==null?void 0x0:_0x13471b[_0x262a25(0x325)][_0x3b4e70],_0x44008e=(_0x54acfe=_0x253a4c[_0x262a25(0x3f2)][_0x570d30])==null?void 0x0:_0x54acfe[_0x262a25(0x325)][_0x3b4e70],_0x1e3fe4=[],_0x4b9b3f=ao(_0x44c6f6==null||_0x49876b==null?null:U[_0x262a25(0x171)](_0x13835b,_0x44c6f6,_0x49876b),_0x3158b9,_0x11a9f8);_0x4b9b3f&&_0x1e3fe4[_0x262a25(0x25c)](_0x4b9b3f);let _0x3ad5b3=ao(U['cell'](_0x13835b,_0x570d30,_0x3b4e70),_0x1a00c4,_0x44008e);return _0x3ad5b3&&_0x1e3fe4[_0x262a25(0x25c)](_0x3ad5b3),R(_0x1e3fe4);}function io(_0x4a82c2,_0x1d97c5,_0x26d7ef,_0x3180f1){const _0x25ce34=_0x4e663c;var _0x9297b3,_0x216720;let _0xda3fb0=_0x4a82c2[_0x25ce34(0x13e)][_0x26d7ef],_0x63e91d=_0x1d97c5['tables'][_0x26d7ef];return R([ao([...U[_0x25ce34(0x2e0)](_0x26d7ef,_0x3180f1),_0x25ce34(0x1b7)],(_0x9297b3=_0xda3fb0[_0x25ce34(0x3f2)][_0x3180f1])==null?void 0x0:_0x9297b3['orderKey'],(_0x216720=_0x63e91d['records'][_0x3180f1])==null?void 0x0:_0x216720[_0x25ce34(0x1b7)]),ao([...U[_0x25ce34(0x291)](_0x26d7ef),_0x25ce34(0x36b)],_0xda3fb0['recordOrder'],_0x63e91d[_0x25ce34(0x36b)])][_0x25ce34(0x20d)](_0x420a51=>!!_0x420a51));}function ao(_0x353a47,_0x31166c,_0x4b6428){const _0x7ddd7b=_0x4e663c;if(!_0x353a47||_0x31166c===void 0x0&&_0x4b6428===void 0x0)return null;let _0x3657cc=_0x29270d['getInstance']();return _0x4b6428===void 0x0?_0x3657cc[_0x7ddd7b(0x397)](_0x353a47,_0x31166c):_0x31166c===void 0x0?_0x3657cc[_0x7ddd7b(0x1dc)](_0x353a47,_0x4b6428):_0x3657cc[_0x7ddd7b(0x4ab)](_0x353a47,_0x31166c,_0x4b6428);}const oo={'id':_0x4e663c(0x265),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x2ce5db,_0x4abb7b)=>{const _0x88485d=_0x4e663c;if(!_0x4abb7b)return!0x1;let _0x4b9fd2=_0x2ce5db['get'](_0x31ecdb),{unitId:_0x4caaa9,tableId:_0x285bc6,viewId:_0x1578b2,target:_0x7abcc1}=_0x4abb7b,_0x3686c3=_0x4b9fd2[_0x88485d(0x403)](_0x4caaa9,_0x2f51c2[_0x88485d(0x1e3)]),_0x141049=_0x7abcc1[_0x88485d(0x169)]??_0x7abcc1[_0x88485d(0x3cc)];if(!_0x3686c3||!_0x141049||_0x141049===_0x1578b2||!$(_0x3686c3,_0x285bc6,{'viewIds':[_0x1578b2,_0x141049]}))return!0x1;let _0x1ec422=_0x2ce5db[_0x88485d(0x1f4)](_0x401540),_0x43dd3c=_0x2ce5db[_0x88485d(0x1f4)](_0x27bed1),_0x30d60=_0x3686c3[_0x88485d(0x12c)](),_0xef8956=new W()[_0x88485d(0x471)](_0x30d60,_0x285bc6,_0x1578b2,_0x7abcc1),_0x32c077=new z()['invertOp'](_0x30d60,_0xef8956),_0x1d4986={'unitId':_0x4caaa9,'op':_0xef8956},_0x10dadb={'unitId':_0x4caaa9,'op':_0x32c077};return _0x1ec422[_0x88485d(0x3fb)](Q['id'],_0x1d4986)?(_0x4b9fd2[_0x88485d(0x267)](_0x4caaa9),_0x43dd3c[_0x88485d(0x2d8)]({'unitID':_0x4caaa9,'undoMutations':[{'id':Q['id'],'params':_0x10dadb}],'redoMutations':[{'id':Q['id'],'params':_0x1d4986}]}),!0x0):!0x1;}},so={'id':_0x4e663c(0x275),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x39e225,_0x3d07ae)=>{const _0x2f694b=_0x4e663c;if(!_0x3d07ae)return!0x1;let _0x110c42=_0x39e225[_0x2f694b(0x1f4)](_0x31ecdb),{unitId:_0xf0ba9d,tableId:_0x22adfd,name:_0x5c8e9e}=_0x3d07ae,_0x4fbfbf=_0x110c42['getUnit'](_0xf0ba9d,_0x2f51c2[_0x2f694b(0x1e3)]);if(!_0x4fbfbf||!$(_0x4fbfbf,_0x22adfd)||!Oa(_0x4fbfbf[_0x2f694b(0x12c)](),_0x5c8e9e,_0x22adfd)[_0x2f694b(0x39f)])return!0x1;let _0x5de8df=_0x39e225[_0x2f694b(0x1f4)](_0x401540),_0x27cdd0=_0x39e225['get'](_0x27bed1),_0x23e847=_0x4fbfbf[_0x2f694b(0x12c)](),_0x5bf413=new W()['renameTable'](_0x23e847,_0x22adfd,_0x5c8e9e),_0x4ac494=new z()[_0x2f694b(0x44c)](_0x23e847,_0x5bf413),_0x301c1d={'unitId':_0xf0ba9d,'op':_0x5bf413},_0x412ab2={'unitId':_0xf0ba9d,'op':_0x4ac494};return _0x5de8df[_0x2f694b(0x3fb)](Q['id'],_0x301c1d)?(_0x110c42[_0x2f694b(0x267)](_0xf0ba9d),_0x27cdd0[_0x2f694b(0x2d8)]({'unitID':_0xf0ba9d,'undoMutations':[{'id':Q['id'],'params':_0x412ab2}],'redoMutations':[{'id':Q['id'],'params':_0x301c1d}]}),!0x0):!0x1;}},co={'id':_0x4e663c(0x24f),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x4f1e0f,_0x2b9d00)=>{const _0x5ab5be=_0x4e663c;if(!_0x2b9d00)return!0x1;let _0x4de34f=_0x4f1e0f[_0x5ab5be(0x1f4)](_0x31ecdb),{unitId:_0x39204d,tableId:_0x3b73e3,viewId:_0x243596,name:_0x338ef9}=_0x2b9d00,_0x381f83=_0x4de34f['getUnit'](_0x39204d,_0x2f51c2['UNIVER_BASE']);if(!_0x381f83||!$(_0x381f83,_0x3b73e3,{'viewIds':[_0x243596]}))return!0x1;let _0x491de7=_0x4f1e0f['get'](_0x401540),_0x217e72=_0x4f1e0f['get'](_0x27bed1),_0x22744f=_0x381f83['getSnapshot'](),_0x16f17c=new W()['renameView'](_0x22744f,_0x3b73e3,_0x243596,_0x338ef9),_0x3735b4=new z()['invertOp'](_0x22744f,_0x16f17c),_0x11b887={'unitId':_0x39204d,'op':_0x16f17c},_0x154e8a={'unitId':_0x39204d,'op':_0x3735b4};return _0x491de7[_0x5ab5be(0x3fb)](Q['id'],_0x11b887)?(_0x4de34f[_0x5ab5be(0x267)](_0x39204d),_0x217e72['pushUndoRedo']({'unitID':_0x39204d,'undoMutations':[{'id':Q['id'],'params':_0x154e8a}],'redoMutations':[{'id':Q['id'],'params':_0x11b887}]}),!0x0):!0x1;}},lo={'id':_0x4e663c(0x1cb),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x4953d5,_0x3a2792)=>{const _0x2efa1e=_0x4e663c;if(!_0x3a2792)return!0x1;let _0x1274b0=_0x4953d5[_0x2efa1e(0x1f4)](_0x31ecdb),{unitId:_0x560bec,tableId:_0x9d1990,viewId:_0x3226f3,fieldId:_0x43996c}=_0x3a2792,_0x4c37f2=_0x1274b0['getUnit'](_0x560bec,_0x2f51c2[_0x2efa1e(0x1e3)]);if(!_0x4c37f2||!$(_0x4c37f2,_0x9d1990,{'viewIds':[_0x3226f3],'fieldIds':[_0x43996c]}))return!0x1;let _0x2e4838=_0x4953d5[_0x2efa1e(0x1f4)](_0x401540),_0x1779b8=_0x4953d5['get'](_0x27bed1),_0x2c47b2=_0x4c37f2[_0x2efa1e(0x12c)](),_0x812b4c=new W()[_0x2efa1e(0x2dd)](_0x2c47b2,_0x9d1990,_0x3226f3,{'groupFieldId':_0x43996c}),_0x23ef2c=new z()[_0x2efa1e(0x44c)](_0x2c47b2,_0x812b4c),_0x24e5f5={'unitId':_0x560bec,'op':_0x812b4c},_0x26b19c={'unitId':_0x560bec,'op':_0x23ef2c};return _0x2e4838['syncExecuteCommand'](Q['id'],_0x24e5f5)?(_0x1274b0[_0x2efa1e(0x267)](_0x560bec),_0x1779b8[_0x2efa1e(0x2d8)]({'unitID':_0x560bec,'undoMutations':[{'id':Q['id'],'params':_0x26b19c}],'redoMutations':[{'id':Q['id'],'params':_0x24e5f5}]}),!0x0):!0x1;}},uo={'id':_0x4e663c(0x12e),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0xe98ce4,_0x51014f)=>{const _0x3fe89d=_0x4e663c;if(!_0x51014f)return!0x1;let _0x212f44=_0xe98ce4[_0x3fe89d(0x1f4)](_0x31ecdb),_0x373204=_0x212f44[_0x3fe89d(0x403)](_0x51014f[_0x3fe89d(0x2a9)],_0x2f51c2[_0x3fe89d(0x1e3)]);if(!_0x373204)return!0x1;let _0x2b079a=_0x373204[_0x3fe89d(0x12c)]()[_0x3fe89d(0x269)];if(_0x2b079a===_0x51014f['name'])return!0x0;let _0x65f382=new W(),_0x1779ef=new z(),_0x32b45e=[],_0x252090=[],_0x3f94bd=[_0x373204,..._0x212f44['getAllUnitsForType'](_0x2f51c2[_0x3fe89d(0x1e3)])[_0x3fe89d(0x20d)](_0x4652d4=>_0x4652d4['getUnitId']()!==_0x51014f[_0x3fe89d(0x2a9)])];for(let _0x29479d of _0x3f94bd){let _0xd8c902=_0x29479d[_0x3fe89d(0x12c)](),_0x36d015=_0x29479d===_0x373204?_0x65f382[_0x3fe89d(0x19a)](_0xd8c902,_0x51014f[_0x3fe89d(0x269)]):_0x65f382[_0x3fe89d(0x215)](_0xd8c902,_0x2b079a,_0x51014f[_0x3fe89d(0x269)]);_0x36d015&&(_0x32b45e[_0x3fe89d(0x25c)]({'id':Q['id'],'params':{'unitId':_0x29479d[_0x3fe89d(0x16e)](),'op':_0x36d015,'trigger':uo['id']}}),_0x252090['unshift']({'id':Q['id'],'params':{'unitId':_0x29479d[_0x3fe89d(0x16e)](),'op':_0x1779ef[_0x3fe89d(0x44c)](_0xd8c902,_0x36d015),'trigger':uo['id']}}));}let _0x4603de=_0xe98ce4[_0x3fe89d(0x1f4)](_0x401540),_0x4f5f71=_0xe98ce4['get'](_0x27bed1),_0x1ed496=_0x4f5f71[_0x3fe89d(0x13a)](_0x51014f[_0x3fe89d(0x2a9)]);try{return _0x4d96db(_0x32b45e,_0x4603de)[_0x3fe89d(0x493)]?(_0x212f44['focusUnit'](_0x51014f[_0x3fe89d(0x2a9)]),_0x4f5f71['pushUndoRedo']({'unitID':_0x51014f['unitId'],'undoMutations':_0x252090,'redoMutations':_0x32b45e}),!0x0):!0x1;}finally{_0x1ed496[_0x3fe89d(0x4af)]();}}},fo={'type':_0x551bc1[_0x4e663c(0x22d)],'id':_0x4e663c(0x243),async 'handler'(_0x2d6dd3,_0x504687){const _0x54c6bd=_0x4e663c;if(!_0x504687||!Tr[_0x54c6bd(0x176)](_0x504687['action'])||_0x504687[_0x54c6bd(0x331)]!==_0x504687[_0x54c6bd(0x2a9)]&&_0x504687[_0x54c6bd(0x4b5)]!==_0x3e9bc5[_0x54c6bd(0x3a5)]||_0x504687['policy']&&(![_0x54c6bd(0x121),'owner',_0x54c6bd(0x21a)][_0x54c6bd(0x176)](_0x504687[_0x54c6bd(0x247)][_0x54c6bd(0x41a)])||_0x504687[_0x54c6bd(0x247)][_0x54c6bd(0x239)]['some'](_0x1e7982=>!Tr[_0x54c6bd(0x176)](_0x1e7982['action'])||_0x504687[_0x54c6bd(0x331)]!==_0x504687[_0x54c6bd(0x2a9)]&&_0x1e7982[_0x54c6bd(0x4b5)]!==_0x3e9bc5['Edit'])))return!0x1;let _0x46b2e9=Pr(_0x504687['unitId'],_0x504687[_0x54c6bd(0x331)],_0x504687[_0x54c6bd(0x4b5)]),_0x3abf1f={'unitId':_0x504687[_0x54c6bd(0x2a9)],'objectId':_0x504687[_0x54c6bd(0x331)],'objectType':_0x46b2e9['type']},_0x22382c=_0x2d6dd3['get'](_0x24deb1);return _0x504687[_0x54c6bd(0x2bc)]?await _0x22382c[_0x54c6bd(0x2bc)](_0x3abf1f):_0x504687['policy']?await _0x22382c[_0x54c6bd(0x382)](_0x3abf1f,_0x504687[_0x54c6bd(0x247)]):await _0x22382c[_0x54c6bd(0x153)](_0x3abf1f,_0x46b2e9,_0x504687[_0x54c6bd(0x401)]),!0x0;}},po={'type':_0x551bc1['COMMAND'],'id':_0x4e663c(0x4a1),async 'handler'(_0x290d25,_0x1491bb){const _0x3e1286=_0x4e663c;if(!(_0x1491bb!=null&&_0x1491bb['unitId'])||!Array[_0x3e1286(0x454)](_0x1491bb['changes'])||!_0x1491bb['changes'][_0x3e1286(0x255)]||_0x1491bb['changes'][_0x3e1286(0x48c)](_0x5a4285=>!(_0x5a4285!=null&&_0x5a4285[_0x3e1286(0x331)])||_0x5a4285[_0x3e1286(0x331)]===_0x1491bb['unitId']||_0x5a4285[_0x3e1286(0x247)]!==null&&(!_0x5a4285[_0x3e1286(0x247)]||!['all',_0x3e1286(0x272),'members'][_0x3e1286(0x176)](_0x5a4285[_0x3e1286(0x247)][_0x3e1286(0x41a)])||!Array[_0x3e1286(0x454)](_0x5a4285[_0x3e1286(0x247)][_0x3e1286(0x2aa)])||!Array[_0x3e1286(0x454)](_0x5a4285[_0x3e1286(0x247)][_0x3e1286(0x239)])||_0x5a4285[_0x3e1286(0x247)][_0x3e1286(0x239)][_0x3e1286(0x48c)](_0x36e895=>_0x36e895[_0x3e1286(0x4b5)]!==_0x3e9bc5[_0x3e1286(0x3a5)]))))throw Error(_0x3e1286(0x359));return _0x290d25[_0x3e1286(0x1f4)](_0x24deb1)[_0x3e1286(0x303)](_0x1491bb['changes']['map'](_0x1b0957=>{const _0xd03778=_0x3e1286;let _0x146942=Pr(_0x1491bb['unitId'],_0x1b0957[_0xd03778(0x331)],_0x3e9bc5['Edit']);return{'unitId':_0x1491bb[_0xd03778(0x2a9)],'objectId':_0x1b0957[_0xd03778(0x331)],'objectType':_0x146942[_0xd03778(0x111)],'policy':_0x1b0957['policy']};}));}};function mo(_0x3e1eb0,_0x531a67){const _0x13a8a9=_0x4e663c;let _0x544b14=L(_0x6981f1[_0x13a8a9(0x12f)](_0x3e1eb0)),_0x4d5c29=new Map();return _0x531a67['forEach'](_0x39510a=>{const _0x290c05=_0x13a8a9;var _0x5b34b9,_0x34e281;let _0x3ee1da='recordId'in _0x39510a?_0x39510a[_0x290c05(0x1ef)]:(_0x5b34b9=_0x544b14[_0x290c05(0x2e1)])==null?void 0x0:_0x5b34b9[_0x39510a[_0x290c05(0x302)]],_0xe42b94='fieldId'in _0x39510a?_0x39510a[_0x290c05(0x2be)]:(_0x34e281=_0x544b14[_0x290c05(0x48b)])==null?void 0x0:_0x34e281[_0x39510a[_0x290c05(0x26f)]],_0x15f39c=_0xe42b94?_0x544b14[_0x290c05(0x45e)][_0xe42b94]:void 0x0;if(!_0x3ee1da||!_0xe42b94||!_0x15f39c||!_0x544b14['records'][_0x3ee1da])return;let _0x1dc83b=xt(_0x39510a[_0x290c05(0x401)],_0x15f39c),_0x505568=wt(_0x39510a[_0x290c05(0x401)],_0x1dc83b,_0x15f39c,_0x544b14,_0x3ee1da),_0x117c5f=_0x4d5c29[_0x290c05(0x1f4)](_0x3ee1da)??{};_0x117c5f[_0xe42b94]=_0x505568,_0x4d5c29['set'](_0x3ee1da,_0x117c5f);}),[..._0x4d5c29]['map'](([_0x13e902,_0x56789c])=>({'recordId':_0x13e902,'values':_0x56789c}));}const ho={'id':_0x4e663c(0x28e),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x5bbbfd,_0x44f4d2){const _0x332c12=_0x4e663c;if(!_0x44f4d2)return!0x1;let _0x5d9180=_0x5bbbfd[_0x332c12(0x1f4)](_0x31ecdb),{unitId:_0x4d084a,tableId:_0x527b46,patches:_0x29fb14}=_0x44f4d2,_0x447ed9=_0x5d9180[_0x332c12(0x403)](_0x4d084a,_0x2f51c2[_0x332c12(0x1e3)]);if(!_0x447ed9||!$(_0x447ed9,_0x527b46))return!0x1;let _0x3ba9a5=_0x5bbbfd['get'](_0x401540),_0x260298=_0x5bbbfd[_0x332c12(0x1f4)](_0x27bed1),_0x5efc79=_0x447ed9[_0x332c12(0x12c)](),_0x353e8c=L(_0x5efc79[_0x332c12(0x13e)][_0x527b46]),_0x2a6208=_0x29fb14['map'](_0x18fd23=>{const _0x34d4d7=_0x332c12;var _0x37147d;return _0x34d4d7(0x1ef)in _0x18fd23?_0x18fd23['recordId']:(_0x37147d=_0x353e8c[_0x34d4d7(0x2e1)])==null?void 0x0:_0x37147d[_0x18fd23[_0x34d4d7(0x302)]];})[_0x332c12(0x20d)](_0x21b148=>_0x21b148!=null),_0x52c022=_0x29fb14['map'](_0x1632d5=>{const _0x404639=_0x332c12;var _0x3ab8fe;return'fieldId'in _0x1632d5?_0x1632d5[_0x404639(0x2be)]:(_0x3ab8fe=_0x353e8c[_0x404639(0x48b)])==null?void 0x0:_0x3ab8fe[_0x1632d5[_0x404639(0x26f)]];})[_0x332c12(0x20d)](_0x226a8d=>_0x226a8d!=null);if(_0x2a6208['length']!==_0x29fb14[_0x332c12(0x255)]||_0x52c022[_0x332c12(0x255)]!==_0x29fb14[_0x332c12(0x255)]||!$(_0x447ed9,_0x527b46,{'recordIds':_0x2a6208,'fieldIds':_0x52c022})||_0x29fb14['some']((_0x441bae,_0x121260)=>!ga(_0x447ed9,_0x527b46,_0x52c022[_0x121260],_0x441bae[_0x332c12(0x401)])))return!0x1;let _0x2363de=Ze(_0x353e8c,mo(_0x353e8c,_0x29fb14)),_0x336bf8=_0x29fb14[_0x332c12(0x1fb)](_0x191747=>{const _0x32834e=_0x332c12;var _0x1a68d0,_0x514b68;if(_0x32834e(0x302)in _0x191747)return[_0x191747];let _0x42a77a=(_0x1a68d0=_0x353e8c[_0x32834e(0x200)])==null?void 0x0:_0x1a68d0[_0x191747['recordId']],_0x206b24=(_0x514b68=_0x353e8c['colIndex'])==null?void 0x0:_0x514b68[_0x191747[_0x32834e(0x2be)]];return _0x42a77a==null||_0x206b24==null?[]:[{'row':_0x42a77a,'col':_0x206b24,'value':_0x191747[_0x32834e(0x401)]}];}),_0x48f62d=new W()[_0x332c12(0x48e)](_0x5efc79,_0x527b46,_0x336bf8),_0x15d99f=new z()[_0x332c12(0x44c)](_0x5efc79,_0x48f62d),_0x331dc8={'unitId':_0x4d084a,'op':_0x48f62d,'trigger':_0x2363de['length']?ho['id']:void 0x0,'hierarchyChanges':_0x2363de[_0x332c12(0x255)]?_0x2363de:void 0x0,'source':_0x2363de[_0x332c12(0x255)]?'redo':void 0x0},_0x4a1bee={'unitId':_0x4d084a,'op':_0x15d99f,'trigger':_0x2363de[_0x332c12(0x255)]?ho['id']:void 0x0,'hierarchyChanges':_0x2363de[_0x332c12(0x255)]?_0x2363de['map'](_0x352d8c=>({..._0x352d8c,'oldParentRecordId':_0x352d8c[_0x332c12(0x26d)],'parentRecordId':_0x352d8c['oldParentRecordId']})):void 0x0,'source':_0x2363de[_0x332c12(0x255)]?_0x332c12(0x2fb):void 0x0},_0x163721={..._0x331dc8,'source':_0x2363de['length']?_0x44f4d2[_0x332c12(0x408)]??'ui':void 0x0};return _0x3ba9a5[_0x332c12(0x3fb)](Q['id'],_0x163721)?(_0x5d9180[_0x332c12(0x267)](_0x4d084a),_0x260298['pushUndoRedo']({'unitID':_0x4d084a,'undoMutations':[{'id':Q['id'],'params':_0x4a1bee}],'redoMutations':[{'id':Q['id'],'params':_0x331dc8}]}),!0x0):!0x1;}},go={'id':_0x4e663c(0x398),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x25767a,_0x416f1e){const _0x379eef=_0x4e663c;if(!_0x416f1e)return!0x1;let _0x7db957=_0x25767a[_0x379eef(0x1f4)](_0x31ecdb),{unitId:_0x48b950,tableId:_0x231836,patches:_0x2b453b}=_0x416f1e,_0x54f81d=_0x7db957[_0x379eef(0x403)](_0x48b950,_0x2f51c2[_0x379eef(0x1e3)]),_0x11077d=_0x2b453b['map'](_0x1873c1=>_0x1873c1[_0x379eef(0x1ef)]),_0x203f9b=_0x2b453b[_0x379eef(0x1fb)](_0x4f936a=>Object[_0x379eef(0x467)](_0x4f936a[_0x379eef(0x325)]));if(!_0x54f81d||!$(_0x54f81d,_0x231836,{'recordIds':_0x11077d,'fieldIds':_0x203f9b})||_0x2b453b[_0x379eef(0x48c)](_0xe4b563=>Object[_0x379eef(0x3ee)](_0xe4b563[_0x379eef(0x325)])[_0x379eef(0x48c)](([_0x172e4d,_0xa92edc])=>!ga(_0x54f81d,_0x231836,_0x172e4d,_0xa92edc))))return!0x1;let _0x5ac739=Ze(_0x54f81d['getSnapshot']()['tables'][_0x231836],_0x2b453b),_0x1962b8=_0x25767a[_0x379eef(0x1f4)](_0x401540),_0x30fe47=_0x25767a['get'](_0x27bed1),_0x1b1029=_0x25767a[_0x379eef(0x1f4)](Kr)['createSetRecordValuesOp'](_0x54f81d,_0x231836,_0x2b453b),_0xde2d88=new z()['invertOp'](_0x54f81d[_0x379eef(0x12c)](),_0x1b1029),_0x170058={'unitId':_0x48b950,'op':_0x1b1029,'trigger':_0x5ac739[_0x379eef(0x255)]?go['id']:void 0x0,'hierarchyChanges':_0x5ac739[_0x379eef(0x255)]?_0x5ac739:void 0x0,'source':_0x5ac739[_0x379eef(0x255)]?_0x416f1e[_0x379eef(0x408)]??'ui':void 0x0},_0x123000={..._0x170058,'source':_0x5ac739[_0x379eef(0x255)]?_0x379eef(0x249):void 0x0},_0x32d382={'unitId':_0x48b950,'op':_0xde2d88,'trigger':_0x5ac739[_0x379eef(0x255)]?go['id']:void 0x0,'hierarchyChanges':_0x5ac739[_0x379eef(0x255)]?_0x5ac739[_0x379eef(0x19c)](_0x4a5e43=>({..._0x4a5e43,'oldParentRecordId':_0x4a5e43[_0x379eef(0x26d)],'parentRecordId':_0x4a5e43[_0x379eef(0x20a)]})):void 0x0,'source':_0x5ac739[_0x379eef(0x255)]?_0x379eef(0x2fb):void 0x0};return _0x1962b8[_0x379eef(0x3fb)](Q['id'],_0x170058)?(_0x7db957[_0x379eef(0x267)](_0x48b950),_0x30fe47[_0x379eef(0x2d8)]({'unitID':_0x48b950,'undoMutations':[{'id':Q['id'],'params':_0x32d382}],'redoMutations':[{'id':Q['id'],'params':_0x123000}]}),!0x0):!0x1;}},_o={'id':_0x4e663c(0x1e5),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x5d6d7e,_0x19791c)=>{const _0x5d3365=_0x4e663c;if(!_0x19791c)return!0x1;let {unitId:_0x3e7afa,tableId:_0x369825,fieldId:_0x58e8d0}=_0x19791c,_0x3ad524=_0x5d6d7e['get'](_0x31ecdb),_0x678268=_0x3ad524[_0x5d3365(0x403)](_0x3e7afa,_0x2f51c2[_0x5d3365(0x1e3)]);if(!_0x678268||!$(_0x678268,_0x369825))return!0x1;let _0x494dce=_0x678268['getSnapshot'](),_0x10a743=_0x494dce['tables'][_0x369825];if(_0x58e8d0!==null&&!F(_0x10a743,_0x58e8d0))throw new P(_0x5d3365(0x24e));if(qe(_0x10a743)===_0x58e8d0)return!0x0;let _0x13162a=new W(),_0x46195d=R(Object['values'](_0x10a743['fields'])[_0x5d3365(0x1fb)](_0x2a0004=>{const _0x593621=_0x5d3365;if(!F(_0x10a743,_0x2a0004['id']))return[];let _0x100e1f=N(_0x2a0004);if(!_0x100e1f)return[];let _0x2b8eff=_0x2a0004['id']===_0x58e8d0;if(_0x100e1f['relationRole']===_0xef1c81[_0x593621(0x367)]===_0x2b8eff)return[];let _0xd41d60={..._0x2a0004['config'],'targetTableId':_0x100e1f[_0x593621(0x21f)],'multiple':_0x100e1f[_0x593621(0x1cf)]};return _0x2b8eff?_0xd41d60[_0x593621(0x28f)]=_0xef1c81['Parent']:delete _0xd41d60[_0x593621(0x28f)],[_0x13162a[_0x593621(0x190)](_0x494dce,_0x369825,_0x2a0004['id'],{'config':_0xd41d60})];})),_0x36a613=new z()[_0x5d3365(0x44c)](_0x494dce,_0x46195d),_0x8de993={'unitId':_0x3e7afa,'op':_0x46195d},_0x419121={'unitId':_0x3e7afa,'op':_0x36a613};return _0x5d6d7e[_0x5d3365(0x1f4)](_0x401540)[_0x5d3365(0x3fb)](Q['id'],_0x8de993)?(_0x3ad524['focusUnit'](_0x3e7afa),_0x5d6d7e[_0x5d3365(0x1f4)](_0x27bed1)[_0x5d3365(0x2d8)]({'unitID':_0x3e7afa,'undoMutations':[{'id':Q['id'],'params':_0x419121}],'redoMutations':[{'id':Q['id'],'params':_0x8de993}]}),!0x0):!0x1;}},vo={'id':_0x4e663c(0x449),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x9ffb8f,_0x27b960)=>{const _0x1ead3b=_0x4e663c;if(!_0x27b960)return!0x1;let _0x2765dd=_0x9ffb8f['get'](_0x31ecdb),{unitId:_0x58b8c0,tableId:_0x4ac389,viewId:_0xa2e897,fieldId:_0x37791d,target:_0x436ab2}=_0x27b960,_0x28da9a=_0x2765dd[_0x1ead3b(0x403)](_0x58b8c0,_0x2f51c2[_0x1ead3b(0x1e3)]),_0x554f01=_0x436ab2[_0x1ead3b(0x244)]??_0x436ab2[_0x1ead3b(0x1e4)];if(!_0x28da9a||!_0x554f01||_0x554f01===_0x37791d||!$(_0x28da9a,_0x4ac389,{'viewIds':[_0xa2e897],'fieldIds':[_0x37791d,_0x554f01]}))return!0x1;let _0x3b4dde=_0x28da9a[_0x1ead3b(0x12c)]()[_0x1ead3b(0x13e)][_0x4ac389],_0x5b2a94=_0x3b4dde[_0x1ead3b(0x45e)][_0x37791d],_0x1fce65=_0x3b4dde[_0x1ead3b(0x45e)][_0x554f01];if(_0x5b2a94[_0x1ead3b(0x39c)]===!0x0||_0x5b2a94[_0x1ead3b(0x111)]===_0x5f310d[_0x1ead3b(0x44e)]||_0x1fce65['system']===!0x0||_0x1fce65[_0x1ead3b(0x111)]===_0x5f310d[_0x1ead3b(0x44e)])return!0x1;let _0x57cd79=_0x9ffb8f['get'](_0x401540),_0x4a37b6=_0x9ffb8f[_0x1ead3b(0x1f4)](_0x27bed1),_0xbf307e=_0x28da9a[_0x1ead3b(0x12c)](),_0x5acca0=new W()[_0x1ead3b(0x18a)](_0xbf307e,_0x4ac389,_0xa2e897,_0x37791d,_0x436ab2),_0x53c325=new z()['invertOp'](_0xbf307e,_0x5acca0),_0x42ad0d={'unitId':_0x58b8c0,'op':_0x5acca0},_0x2f9a32={'unitId':_0x58b8c0,'op':_0x53c325};return _0x57cd79[_0x1ead3b(0x3fb)](Q['id'],_0x42ad0d)?(_0x2765dd[_0x1ead3b(0x267)](_0x58b8c0),_0x4a37b6['pushUndoRedo']({'unitID':_0x58b8c0,'undoMutations':[{'id':Q['id'],'params':_0x2f9a32}],'redoMutations':[{'id':Q['id'],'params':_0x42ad0d}]}),!0x0):!0x1;}},yo={'id':_0x4e663c(0x29b),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x2de06c,_0x5b76eb){const _0x565486=_0x4e663c;if(!_0x5b76eb)return!0x1;let _0x112155=_0x2de06c[_0x565486(0x1f4)](_0x31ecdb),{unitId:_0x48cfd1,tableId:_0x5be8e7,viewId:_0xb9cc98,fieldId:_0x2f57e1,visible:_0xb533f5}=_0x5b76eb,_0x5732ab=_0x112155[_0x565486(0x403)](_0x48cfd1,_0x2f51c2['UNIVER_BASE']);if(!_0x5732ab||!$(_0x5732ab,_0x5be8e7,{'viewIds':[_0xb9cc98],'fieldIds':[_0x2f57e1]}))return!0x1;let _0x1625f0=_0x5732ab['getSnapshot']()[_0x565486(0x13e)][_0x5be8e7][_0x565486(0x45e)][_0x2f57e1];if(_0x1625f0[_0x565486(0x39c)]===!0x0||_0x1625f0[_0x565486(0x111)]===_0x5f310d[_0x565486(0x44e)])return!0x1;let _0x46db18=_0x2de06c['get'](_0x401540),_0x2e294e=_0x2de06c[_0x565486(0x1f4)](_0x27bed1),_0x5c6e9d=_0x5732ab['getSnapshot'](),_0x2858a7=new W()[_0x565486(0x31e)](_0x5c6e9d,_0x5be8e7,_0xb9cc98,_0x2f57e1,_0xb533f5),_0x50b34a=new z()['invertOp'](_0x5c6e9d,_0x2858a7),_0x22ef58={'unitId':_0x48cfd1,'op':_0x2858a7},_0x11705c={'unitId':_0x48cfd1,'op':_0x50b34a};return _0x46db18['syncExecuteCommand'](Q['id'],_0x22ef58)?(_0x112155[_0x565486(0x267)](_0x48cfd1),_0x2e294e['pushUndoRedo']({'unitID':_0x48cfd1,'undoMutations':[{'id':Q['id'],'params':_0x11705c}],'redoMutations':[{'id':Q['id'],'params':_0x22ef58}]}),!0x0):!0x1;}},bo={'id':'base.command.set-base-view-field-width','type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x3ac4aa,_0x1d2886)=>{const _0x11a58e=_0x4e663c;if(!_0x1d2886)return!0x1;let _0x24736e=_0x3ac4aa[_0x11a58e(0x1f4)](_0x31ecdb),{unitId:_0x382261,tableId:_0xa3099f,viewId:_0x3bc966,fieldId:_0x33b5ad,width:_0x1c0614}=_0x1d2886,_0x4b0bc8=_0x24736e[_0x11a58e(0x403)](_0x382261,_0x2f51c2[_0x11a58e(0x1e3)]);if(!_0x4b0bc8||!$(_0x4b0bc8,_0xa3099f,{'viewIds':[_0x3bc966],'fieldIds':[_0x33b5ad]}))return!0x1;let _0x57d70a=_0x4b0bc8[_0x11a58e(0x12c)]()['tables'][_0xa3099f][_0x11a58e(0x45e)][_0x33b5ad];if(_0x57d70a[_0x11a58e(0x39c)]===!0x0||_0x57d70a[_0x11a58e(0x111)]===_0x5f310d['RecordId'])return!0x1;let _0x94eb70=_0x3ac4aa[_0x11a58e(0x1f4)](_0x401540),_0x1e33e4=_0x3ac4aa['get'](_0x27bed1),_0x61cde8=_0x4b0bc8['getSnapshot'](),_0x5c78c3=new W()[_0x11a58e(0x299)](_0x61cde8,_0xa3099f,_0x3bc966,_0x33b5ad,_0x1c0614),_0x39cc18=new z()[_0x11a58e(0x44c)](_0x61cde8,_0x5c78c3),_0x376f34={'unitId':_0x382261,'op':_0x5c78c3},_0x48cc8c={'unitId':_0x382261,'op':_0x39cc18};return _0x94eb70[_0x11a58e(0x3fb)](Q['id'],_0x376f34)?(_0x24736e[_0x11a58e(0x267)](_0x382261),_0x1e33e4[_0x11a58e(0x2d8)]({'unitID':_0x382261,'undoMutations':[{'id':Q['id'],'params':_0x48cc8c}],'redoMutations':[{'id':Q['id'],'params':_0x376f34}]}),!0x0):!0x1;}},xo={'id':_0x4e663c(0x1ee),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x47bbe9,_0xf134d2)=>{const _0x5c482c=_0x4e663c;if(!_0xf134d2)return!0x1;let _0x41574b=_0x47bbe9[_0x5c482c(0x1f4)](_0x31ecdb),{unitId:_0x52c565,tableId:_0x4c37c6,viewId:_0x57d2db,filter:_0x5ec619}=_0xf134d2,_0x38bcd2=_0x41574b[_0x5c482c(0x403)](_0x52c565,_0x2f51c2['UNIVER_BASE']),_0x50160b=(_0x5ec619==null?void 0x0:_0x5ec619[_0x5c482c(0x495)]['map'](_0x32fa4e=>_0x32fa4e[_0x5c482c(0x2be)]))??[];if(!_0x38bcd2||!$(_0x38bcd2,_0x4c37c6,{'viewIds':[_0x57d2db],'fieldIds':_0x50160b}))return!0x1;let _0x1f0929=_0x47bbe9['get'](_0x401540),_0x4fb4b9=_0x47bbe9[_0x5c482c(0x1f4)](_0x27bed1),_0x34d216=_0x38bcd2[_0x5c482c(0x12c)](),_0x48cfd3=new W()[_0x5c482c(0x341)](_0x34d216,_0x4c37c6,_0x57d2db,_0x5ec619),_0x43b455=new z()[_0x5c482c(0x44c)](_0x34d216,_0x48cfd3),_0x20f8db={'unitId':_0x52c565,'op':_0x48cfd3},_0x218c28={'unitId':_0x52c565,'op':_0x43b455};return _0x1f0929[_0x5c482c(0x3fb)](Q['id'],_0x20f8db)?(_0x41574b['focusUnit'](_0x52c565),_0x4fb4b9['pushUndoRedo']({'unitID':_0x52c565,'undoMutations':[{'id':Q['id'],'params':_0x218c28}],'redoMutations':[{'id':Q['id'],'params':_0x20f8db}]}),!0x0):!0x1;}},So={'id':_0x4e663c(0x212),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x2c8e0f,_0x531560)=>{const _0x590046=_0x4e663c;if(!_0x531560)return!0x1;let _0x2a2397=_0x2c8e0f[_0x590046(0x1f4)](_0x31ecdb),{unitId:_0x2ecf3e,tableId:_0x3b9fae,viewId:_0x137286,group:_0x5b73df}=_0x531560,_0x4a47b0=_0x2a2397[_0x590046(0x403)](_0x2ecf3e,_0x2f51c2[_0x590046(0x1e3)]);if(!_0x4a47b0||!$(_0x4a47b0,_0x3b9fae,{'viewIds':[_0x137286],'fieldIds':_0x5b73df['map'](_0x53a354=>_0x53a354[_0x590046(0x2be)])}))return!0x1;let _0xd8ff73=_0x2c8e0f[_0x590046(0x1f4)](_0x401540),_0x2e752f=_0x2c8e0f[_0x590046(0x1f4)](_0x27bed1),_0x2f5e32=_0x4a47b0[_0x590046(0x12c)](),_0x46482c=new W()[_0x590046(0x116)](_0x2f5e32,_0x3b9fae,_0x137286,_0x5b73df),_0x4ee308=new z()['invertOp'](_0x2f5e32,_0x46482c),_0x4c2bd8={'unitId':_0x2ecf3e,'op':_0x46482c},_0x172aa6={'unitId':_0x2ecf3e,'op':_0x4ee308};return _0xd8ff73[_0x590046(0x3fb)](Q['id'],_0x4c2bd8)?(_0x2a2397[_0x590046(0x267)](_0x2ecf3e),_0x2e752f[_0x590046(0x2d8)]({'unitID':_0x2ecf3e,'undoMutations':[{'id':Q['id'],'params':_0x172aa6}],'redoMutations':[{'id':Q['id'],'params':_0x4c2bd8}]}),!0x0):!0x1;}},Co={'id':'base.command.set-base-view-sort','type':_0x551bc1['COMMAND'],'handler':(_0x49ddd2,_0x402a8a)=>{const _0x31847f=_0x4e663c;if(!_0x402a8a)return!0x1;let _0xfc34cb=_0x49ddd2[_0x31847f(0x1f4)](_0x31ecdb),{unitId:_0x4ec587,tableId:_0x25a621,viewId:_0x4ac426,sort:_0x426ada}=_0x402a8a,_0x1b685c=_0xfc34cb[_0x31847f(0x403)](_0x4ec587,_0x2f51c2['UNIVER_BASE']);if(!_0x1b685c||!$(_0x1b685c,_0x25a621,{'viewIds':[_0x4ac426],'fieldIds':_0x426ada[_0x31847f(0x19c)](_0x549a2c=>_0x549a2c['fieldId'])}))return!0x1;let _0x464dee=_0x49ddd2[_0x31847f(0x1f4)](_0x401540),_0x31955c=_0x49ddd2['get'](_0x27bed1),_0x4be28c=_0x1b685c['getSnapshot'](),_0x160dc9=new W()[_0x31847f(0x298)](_0x4be28c,_0x25a621,_0x4ac426,_0x426ada),_0x5a9390=new z()[_0x31847f(0x44c)](_0x4be28c,_0x160dc9),_0x48ce8b={'unitId':_0x4ec587,'op':_0x160dc9},_0x42ed0a={'unitId':_0x4ec587,'op':_0x5a9390};return _0x464dee[_0x31847f(0x3fb)](Q['id'],_0x48ce8b)?(_0xfc34cb[_0x31847f(0x267)](_0x4ec587),_0x31955c[_0x31847f(0x2d8)]({'unitID':_0x4ec587,'undoMutations':[{'id':Q['id'],'params':_0x42ed0a}],'redoMutations':[{'id':Q['id'],'params':_0x48ce8b}]}),!0x0):!0x1;}},wo={'id':'base.command.update-base-cell','type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x27d9cf,_0x120a6d){const _0x250831=_0x4e663c;if(!_0x120a6d)return!0x1;let _0x32ae06=_0x27d9cf['get'](_0x31ecdb),{unitId:_0x4c9431,tableId:_0x14a02e,recordId:_0x4c5355,fieldId:_0x3b6cf6,value:_0x24f82a}=_0x120a6d,_0x1d32d9=_0x32ae06[_0x250831(0x403)](_0x4c9431,_0x2f51c2[_0x250831(0x1e3)]);if(!_0x1d32d9||!$(_0x1d32d9,_0x14a02e,{'recordIds':[_0x4c5355],'fieldIds':[_0x3b6cf6]})||!ga(_0x1d32d9,_0x14a02e,_0x3b6cf6,_0x24f82a))return!0x1;let _0x5812c1=_0x1d32d9[_0x250831(0x12c)]()[_0x250831(0x13e)][_0x14a02e],_0x4c1013=F(_0x5812c1,_0x3b6cf6)&&Xe(_0x5812c1)[_0x250831(0x176)](_0x3b6cf6),_0x360fd7=_0x4c1013?tt(_0x5812c1,_0x3b6cf6):null,_0x2d961b=(_0x360fd7==null?void 0x0:_0x360fd7[_0x250831(0x158)][_0x250831(0x1f4)](_0x4c5355))??null,_0x2d9952=_0x4c1013?Le(_0x24f82a)[0x0]??null:null;if(_0x360fd7){if(_0x2d9952&&!_0x5812c1[_0x250831(0x3f2)][_0x2d9952])throw new P(_0x250831(0x218));let _0x2e1b22=it(_0x360fd7,_0x4c5355,_0x2d9952);if(!_0x2e1b22[_0x250831(0x39f)])throw new P(_0x2e1b22['reason']===_0x5da3fc[_0x250831(0x237)]?_0x250831(0x1a4):_0x2e1b22['reason']===_0x5da3fc[_0x250831(0x38b)]?_0x250831(0x242):_0x250831(0x198));}let _0x54ac07=_0x27d9cf[_0x250831(0x1f4)](_0x401540),_0x4f5d8d=_0x27d9cf[_0x250831(0x1f4)](_0x27bed1),_0x533099=_0x27d9cf[_0x250831(0x1f4)](Kr),_0x10314d;try{_0x10314d=_0x533099['createUpdateCellOp'](_0x1d32d9,_0x14a02e,_0x4c5355,_0x3b6cf6,_0x24f82a);}catch(_0x397b92){return console[_0x250831(0x3c6)](_0x250831(0x37a),_0x397b92),!0x1;}let _0x48c4b6=new z()[_0x250831(0x44c)](_0x1d32d9[_0x250831(0x12c)](),_0x10314d),_0x4fabe6=_0x4c1013&&_0x2d961b!==_0x2d9952?[{'tableId':_0x14a02e,'fieldId':_0x3b6cf6,'recordId':_0x4c5355,'oldParentRecordId':_0x2d961b,'parentRecordId':_0x2d9952}]:void 0x0,_0x5f2c1b={'unitId':_0x4c9431,'op':_0x10314d,'trigger':_0x4fabe6?wo['id']:void 0x0,'hierarchyChanges':_0x4fabe6,'source':_0x4fabe6?_0x120a6d[_0x250831(0x408)]??'ui':void 0x0},_0x7b6da1={..._0x5f2c1b,'source':_0x4fabe6?'redo':void 0x0},_0x250541={'unitId':_0x4c9431,'op':_0x48c4b6,'trigger':_0x4fabe6?wo['id']:void 0x0,'hierarchyChanges':_0x4fabe6==null?void 0x0:_0x4fabe6[_0x250831(0x19c)](_0x1a068a=>({..._0x1a068a,'oldParentRecordId':_0x1a068a['parentRecordId'],'parentRecordId':_0x1a068a[_0x250831(0x20a)]})),'source':_0x4fabe6?_0x250831(0x2fb):void 0x0};return _0x54ac07[_0x250831(0x3fb)](Q['id'],_0x5f2c1b)?(_0x32ae06[_0x250831(0x267)](_0x4c9431),_0x4f5d8d[_0x250831(0x2d8)]({'unitID':_0x4c9431,'undoMutations':[{'id':Q['id'],'params':_0x250541}],'redoMutations':[{'id':Q['id'],'params':_0x7b6da1}]}),!0x0):!0x1;}},To={'id':_0x4e663c(0x1ac),'type':_0x551bc1[_0x4e663c(0x22d)],'handler'(_0x1d2bdf,_0x3e3847){const _0x4a6410=_0x4e663c;if(!_0x3e3847)return!0x1;let _0x29d51d=_0x1d2bdf[_0x4a6410(0x1f4)](_0x31ecdb),{unitId:_0x3cac86,tableId:_0x275dcc,fieldId:_0x21aa80}=_0x3e3847,_0x410c6a=_0x29d51d[_0x4a6410(0x403)](_0x3cac86,_0x2f51c2['UNIVER_BASE']);if(!_0x410c6a||!$(_0x410c6a,_0x275dcc,{'fieldIds':[_0x21aa80]}))return!0x1;let _0xa5fa98=_0x1d2bdf[_0x4a6410(0x1f4)](_0x401540),_0x4b413e=_0x1d2bdf[_0x4a6410(0x1f4)](_0x27bed1),_0x39e63c=_0x410c6a['getSnapshot'](),_0x2b7c44=_0x3e3847[_0x4a6410(0x15b)]['trim'](),_0x403139=new W()['updateField'](_0x39e63c,_0x275dcc,_0x21aa80,{'description':_0x2b7c44}),_0x406860=new z()[_0x4a6410(0x44c)](_0x410c6a[_0x4a6410(0x12c)](),_0x403139),_0x36e095={'unitId':_0x3cac86,'op':_0x403139},_0x58f120={'unitId':_0x3cac86,'op':_0x406860};return _0xa5fa98[_0x4a6410(0x3fb)](Q['id'],_0x36e095)?(_0x29d51d[_0x4a6410(0x267)](_0x3cac86),_0x4b413e['pushUndoRedo']({'unitID':_0x3cac86,'undoMutations':[{'id':Q['id'],'params':_0x58f120}],'redoMutations':[{'id':Q['id'],'params':_0x36e095}]}),!0x0):!0x1;}},Eo={'id':_0x4e663c(0x2d7),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0xcd6424,_0x319dc4)=>{const _0x210a0b=_0x4e663c;if(!_0x319dc4)return!0x1;let _0x3a6831=_0xcd6424[_0x210a0b(0x1f4)](_0x31ecdb),{unitId:_0x46c195,tableId:_0x1683d5,fieldId:_0x4bd1a1,patch:_0x4e5007}=_0x319dc4,_0x477da6=_0x3a6831[_0x210a0b(0x403)](_0x46c195,_0x2f51c2[_0x210a0b(0x1e3)]);if(!_0x477da6||_0x4bd1a1===_0x251017||!$(_0x477da6,_0x1683d5,{'fieldIds':[_0x4bd1a1]}))return!0x1;let _0x518928=_0xcd6424[_0x210a0b(0x1f4)](_0x401540),_0x281738=_0xcd6424[_0x210a0b(0x1f4)](_0x27bed1),_0x137ad6=_0x477da6['getSnapshot']();if(!ha(_0x477da6,_0x1683d5,{..._0x137ad6[_0x210a0b(0x13e)][_0x1683d5][_0x210a0b(0x45e)][_0x4bd1a1],..._0x4e5007}))return!0x1;let _0x3e6d75=new W()[_0x210a0b(0x190)](_0x137ad6,_0x1683d5,_0x4bd1a1,_0x4e5007),_0x44e88a=new z()[_0x210a0b(0x44c)](_0x137ad6,_0x3e6d75),_0x41e61c={'unitId':_0x46c195,'op':_0x3e6d75},_0x192502={'unitId':_0x46c195,'op':_0x44e88a};return _0x518928[_0x210a0b(0x3fb)](Q['id'],_0x41e61c)?(_0x3a6831[_0x210a0b(0x267)](_0x46c195),_0x281738[_0x210a0b(0x2d8)]({'unitID':_0x46c195,'undoMutations':[{'id':Q['id'],'params':_0x192502}],'redoMutations':[{'id':Q['id'],'params':_0x41e61c}]}),!0x0):!0x1;}},Do={'id':'base.command.update-base-kanban-config','type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x4cb6bb,_0x31f3a8)=>{const _0xdf759f=_0x4e663c;if(!_0x31f3a8)return!0x1;let _0x56c8bd=_0x4cb6bb['get'](_0x31ecdb),{unitId:_0x4564c2,tableId:_0x255447,viewId:_0x4543cc,patch:_0x2aabda}=_0x31f3a8,_0x37d5a0=_0x56c8bd[_0xdf759f(0x403)](_0x4564c2,_0x2f51c2[_0xdf759f(0x1e3)]);if(!_0x37d5a0||!$(_0x37d5a0,_0x255447,{'viewIds':[_0x4543cc]}))return!0x1;let _0x9231aa=_0x4cb6bb[_0xdf759f(0x1f4)](_0x401540),_0x1c8e05=_0x4cb6bb[_0xdf759f(0x1f4)](_0x27bed1),_0x569a51=_0x37d5a0[_0xdf759f(0x12c)](),_0x49ca0e=new W()[_0xdf759f(0x2dd)](_0x569a51,_0x255447,_0x4543cc,_0x2aabda),_0x4e8bf9=new z()[_0xdf759f(0x44c)](_0x569a51,_0x49ca0e),_0x1814c1={'unitId':_0x4564c2,'op':_0x49ca0e},_0x4795d0={'unitId':_0x4564c2,'op':_0x4e8bf9};return _0x9231aa[_0xdf759f(0x3fb)](Q['id'],_0x1814c1)?(_0x56c8bd[_0xdf759f(0x267)](_0x4564c2),_0x1c8e05[_0xdf759f(0x2d8)]({'unitID':_0x4564c2,'undoMutations':[{'id':Q['id'],'params':_0x4795d0}],'redoMutations':[{'id':Q['id'],'params':_0x1814c1}]}),!0x0):!0x1;}},Oo={'id':_0x4e663c(0x30c),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x2ff85,_0x5c0837)=>{const _0x45d791=_0x4e663c;if(!_0x5c0837)return!0x1;let _0x3045d9=_0x2ff85[_0x45d791(0x1f4)](_0x31ecdb),{unitId:_0xc27f02,tableId:_0x166ee9,recordId:_0x5b4cd0,orderKey:_0x8a57ab}=_0x5c0837,_0x540fea=_0x3045d9['getUnit'](_0xc27f02,_0x2f51c2[_0x45d791(0x1e3)]);if(!_0x540fea||!$(_0x540fea,_0x166ee9,{'recordIds':[_0x5b4cd0]}))return!0x1;let _0x544dc3=_0x2ff85[_0x45d791(0x1f4)](_0x401540),_0x36193d=_0x2ff85['get'](_0x27bed1),_0x1df916=_0x540fea[_0x45d791(0x12c)](),_0x609b6=new W()['updateRecordOrder'](_0x1df916,_0x166ee9,_0x5b4cd0,_0x8a57ab),_0x7f93b2=new z()[_0x45d791(0x44c)](_0x1df916,_0x609b6),_0x4180e8={'unitId':_0xc27f02,'op':_0x609b6},_0x20bef6={'unitId':_0xc27f02,'op':_0x7f93b2};return _0x544dc3['syncExecuteCommand'](Q['id'],_0x4180e8)?(_0x3045d9[_0x45d791(0x267)](_0xc27f02),_0x36193d['pushUndoRedo']({'unitID':_0xc27f02,'undoMutations':[{'id':Q['id'],'params':_0x20bef6}],'redoMutations':[{'id':Q['id'],'params':_0x4180e8}]}),!0x0):!0x1;}};let ko=function(_0x2eadc8){const _0x361dcf=_0x4e663c;return _0x2eadc8[_0x361dcf(0x3be)]=_0x361dcf(0x233),_0x2eadc8['Add']=_0x361dcf(0x133),_0x2eadc8['Delete']=_0x361dcf(0x1f1),_0x2eadc8[_0x361dcf(0x1d4)]=_0x361dcf(0x350),_0x2eadc8;}({});const Ao={'id':_0x4e663c(0x47b),'type':_0x551bc1['COMMAND'],'handler':(_0x207fde,_0x4df7d5)=>{const _0x37c76b=_0x4e663c;var _0x14aa4f;if(!_0x4df7d5)return!0x1;let _0x3412c2=_0x207fde[_0x37c76b(0x1f4)](_0x31ecdb),_0x33822b=_0x3412c2['getUnit'](_0x4df7d5[_0x37c76b(0x2a9)],_0x2f51c2[_0x37c76b(0x1e3)]);if(!_0x33822b||!$(_0x33822b,_0x4df7d5['tableId'],{'viewIds':[_0x4df7d5[_0x37c76b(0x152)]]}))return!0x1;let _0x446aca=_0x33822b[_0x37c76b(0x12c)](),_0x251f09=_0x446aca[_0x37c76b(0x13e)][_0x4df7d5[_0x37c76b(0x3a6)]],_0x5a0f69=jo(((_0x14aa4f=_0x251f09['views'][_0x4df7d5[_0x37c76b(0x152)]]['config']['conditionalColoring'])==null?void 0x0:_0x14aa4f['rules'])??[],_0x4df7d5);if(!_0x5a0f69)return!0x1;Mo(_0x251f09,_0x5a0f69);let _0x48a9e0=new W()[_0x37c76b(0x2dd)](_0x446aca,_0x4df7d5['tableId'],_0x4df7d5[_0x37c76b(0x152)],{'conditionalColoring':_0x5a0f69[_0x37c76b(0x255)]?{'rules':_0x5a0f69}:null}),_0x2dc44d=new z()[_0x37c76b(0x44c)](_0x446aca,_0x48a9e0),_0x4f036c={'unitId':_0x4df7d5['unitId'],'op':_0x48a9e0},_0xf8a9a6={'unitId':_0x4df7d5['unitId'],'op':_0x2dc44d};return _0x207fde[_0x37c76b(0x1f4)](_0x401540)['syncExecuteCommand'](Q['id'],_0x4f036c)?(_0x3412c2[_0x37c76b(0x267)](_0x4df7d5[_0x37c76b(0x2a9)]),_0x207fde['get'](_0x27bed1)[_0x37c76b(0x2d8)]({'unitID':_0x4df7d5[_0x37c76b(0x2a9)],'undoMutations':[{'id':Q['id'],'params':_0xf8a9a6}],'redoMutations':[{'id':Q['id'],'params':_0x4f036c}]}),!0x0):!0x1;}};function jo(_0xf3a37a,_0x57ed42){const _0xa8d703=_0x4e663c;switch(_0x57ed42[_0xa8d703(0x111)]){case _0xa8d703(0x233):return _0x6981f1['deepClone'](_0x57ed42[_0xa8d703(0x370)]);case'add':return[..._0x6981f1[_0xa8d703(0x12f)](_0xf3a37a),_0x6981f1[_0xa8d703(0x12f)](_0x57ed42[_0xa8d703(0x414)])];case _0xa8d703(0x1f1):{let _0x546142=_0xf3a37a[_0xa8d703(0x20d)](_0x569b66=>_0x569b66['id']!==_0x57ed42[_0xa8d703(0x3c8)]);return _0x546142[_0xa8d703(0x255)]===_0xf3a37a['length']?null:_0x6981f1['deepClone'](_0x546142);}case _0xa8d703(0x350):return _0xf3a37a[_0xa8d703(0x255)]?[]:null;}}function Mo(_0x4da8ee,_0x317cda){const _0x296e07=_0x4e663c;if(!Array[_0x296e07(0x454)](_0x317cda))throw TypeError(_0x296e07(0x11e));let _0x5e2f7c=new Set();for(let [_0xa089e,_0x52fe88]of _0x317cda[_0x296e07(0x3ee)]())Po(_0x4da8ee,_0x52fe88,No(_0x52fe88,_0xa089e,_0x5e2f7c));}function No(_0x1f8478,_0x2dfd73,_0x34e788){const _0x562c46=_0x4e663c;if(!_0x1f8478||typeof _0x1f8478!=_0x562c46(0x37c))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20'+_0x2dfd73+_0x562c46(0x4aa));let _0x43b6ef=typeof _0x1f8478['id']==_0x562c46(0x432)&&_0x1f8478['id'][_0x562c46(0x319)]()?'\x22'+_0x1f8478['id']+'\x22':_0x562c46(0x164)+_0x2dfd73;if(typeof _0x1f8478['id']!=_0x562c46(0x432)||!_0x1f8478['id']['trim']())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x43b6ef+_0x562c46(0x15d));if(_0x34e788['has'](_0x1f8478['id']))throw Error(_0x562c46(0x2c2)+_0x1f8478['id']+'\x22.');_0x34e788[_0x562c46(0x133)](_0x1f8478['id']);let _0x208b33=typeof _0x1f8478[_0x562c46(0x416)]==_0x562c46(0x432)&&_0x1f8478['color']['trim']()?new _0x48af3a(_0x1f8478[_0x562c46(0x416)]):null;if(!(_0x208b33!=null&&_0x208b33['isValid']))throw Error(_0x562c46(0x310)+_0x43b6ef+_0x562c46(0x24c));return _0x43b6ef;}function Po(_0x36d6c4,_0x5f525c,_0x4ebe49){const _0xc761a1=_0x4e663c;let _0x47c76f=new Set(Object[_0xc761a1(0x325)](_0x4cd258)),_0x16a01e=new Set(Object['values'](_0x385b50)),_0x3821dd=new Set(Object[_0xc761a1(0x325)](_0x4a0571));if(!_0x47c76f['has'](_0x5f525c[_0xc761a1(0x1e6)]))throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x2cd)+String(_0x5f525c[_0xc761a1(0x1e6)])+'\x22.');let _0x5d9cb8=typeof _0x5f525c[_0xc761a1(0x2be)]==_0xc761a1(0x432)?_0x36d6c4[_0xc761a1(0x45e)][_0x5f525c[_0xc761a1(0x2be)]]:void 0x0;if(!_0x5d9cb8||_0x5d9cb8[_0xc761a1(0x39c)]===!0x0||_0x5d9cb8[_0xc761a1(0x111)]===_0x5f310d[_0xc761a1(0x44e)])throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x128)+String(_0x5f525c[_0xc761a1(0x2be)])+'\x22.');if(!_0x16a01e[_0xc761a1(0x19e)](_0x5f525c[_0xc761a1(0x36e)]))throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x378)+String(_0x5f525c[_0xc761a1(0x36e)])+'\x22.');if(_0x5f525c[_0xc761a1(0x226)]!==void 0x0&&!_0x3821dd[_0xc761a1(0x19e)](_0x5f525c[_0xc761a1(0x226)]))throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x17e)+String(_0x5f525c[_0xc761a1(0x226)])+'\x22.');if(_0x5f525c[_0xc761a1(0x1e6)]===_0x4cd258['COLUMN'])return;let _0x401d18=vn(_0x5d9cb8[_0xc761a1(0x111)]);if(!_0x401d18[_0xc761a1(0x176)](_0x5f525c[_0xc761a1(0x36e)]))throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x15f)+_0x5f525c[_0xc761a1(0x36e)]+_0xc761a1(0x443)+_0x5d9cb8[_0xc761a1(0x111)]+'\x22.\x20Allowed\x20operators:\x20'+_0x401d18[_0xc761a1(0x2e9)](',\x20')+'.');if(_0x5f525c['dateMode']!==void 0x0&&!yn(_0x5d9cb8[_0xc761a1(0x111)]))throw Error(_0xc761a1(0x310)+_0x4ebe49+_0xc761a1(0x2b1));}const Fo={'id':_0x4e663c(0x4cd),'type':_0x551bc1[_0x4e663c(0x22d)],'handler':(_0x36d906,_0xcff36)=>{const _0x5e1770=_0x4e663c;if(!_0xcff36)return!0x1;let _0x9191a0=_0x36d906[_0x5e1770(0x1f4)](_0x31ecdb),{unitId:_0x305312,tableId:_0x46b8df,viewId:_0x11a635,patch:_0x2cd26c}=_0xcff36,_0x1214c8=_0x9191a0[_0x5e1770(0x403)](_0x305312,_0x2f51c2[_0x5e1770(0x1e3)]);if(!_0x1214c8||!$(_0x1214c8,_0x46b8df,{'viewIds':[_0x11a635]}))return!0x1;let _0x52b137=_0x36d906[_0x5e1770(0x1f4)](_0x401540),_0x45d2c9=_0x36d906[_0x5e1770(0x1f4)](_0x27bed1),_0x56f363=_0x1214c8[_0x5e1770(0x12c)](),_0x1df59f=new W()[_0x5e1770(0x2dd)](_0x56f363,_0x46b8df,_0x11a635,_0x2cd26c),_0x33935c=new z()[_0x5e1770(0x44c)](_0x56f363,_0x1df59f),_0xfa2ee5={'unitId':_0x305312,'op':_0x1df59f},_0x436373={'unitId':_0x305312,'op':_0x33935c};return _0x52b137[_0x5e1770(0x3fb)](Q['id'],_0xfa2ee5)?(_0x9191a0[_0x5e1770(0x267)](_0x305312),_0x45d2c9[_0x5e1770(0x2d8)]({'unitID':_0x305312,'undoMutations':[{'id':Q['id'],'params':_0x436373}],'redoMutations':[{'id':Q['id'],'params':_0xfa2ee5}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x551bc1['COMMAND'],'handler'(_0x8baed4,_0x226cfa){const _0x57c821=_0x4e663c;if(!_0x226cfa)return{'valid':!0x1,'reason':'[BaseFormula]:\x20validation\x20parameters\x20are\x20required.'};let _0x3cab47=_0x8baed4[_0x57c821(0x1f4)](_0x31ecdb)['getUnit'](_0x226cfa[_0x57c821(0x2a9)],_0x2f51c2[_0x57c821(0x1e3)]),_0xa2ab8f=_0x3cab47==null?void 0x0:_0x3cab47[_0x57c821(0x12c)](),_0x42253d=_0xa2ab8f==null?void 0x0:_0xa2ab8f[_0x57c821(0x13e)][_0x226cfa['tableId']];return!_0xa2ab8f||!_0x42253d?{'valid':!0x1,'reason':_0x57c821(0x24b)}:new Xi()[_0x57c821(0x445)](_0x226cfa[_0x57c821(0x489)],_0x42253d,{'snapshot':_0xa2ab8f});}};let Lo=class extends _0x3e8892{constructor(_0x492224){const _0x5e2e08=_0x4e663c;super(_0x492224,_0x5e2e08(0x36f),_0x2f51c2['UNIVER_BASE'],[_0x127560[_0x5e2e08(0x204)],_0x127560[_0x5e2e08(0x37f)],_0x127560[_0x5e2e08(0x43a)],_0x127560[_0x5e2e08(0x207)],_0x127560['BaseDashboard']]);}};Lo=X([Y(0x0,_0x1cc6c1)],Lo);const Ro={'id':_0x4e663c(0x37e),'type':_0x551bc1[_0x4e663c(0x338)],'handler':(_0x205447,_0x13dbd5)=>!_0x13dbd5||!_0x205447['get'](_0x31ecdb)[_0x4e663c(0x403)](_0x13dbd5[_0x4e663c(0x2a9)],_0x2f51c2['UNIVER_BASE'])?!0x1:_0x205447[_0x4e663c(0x1f4)](Lo)[_0x4e663c(0x22f)](_0x13dbd5[_0x4e663c(0x2a9)],_0x13dbd5[_0x4e663c(0x13c)],_0x13dbd5[_0x4e663c(0x331)],_0x13dbd5['rule'])},zo={'id':_0x4e663c(0x15c),'type':_0x551bc1[_0x4e663c(0x338)],'handler':(_0xf90db9,_0x2702d4)=>!_0x2702d4||!_0xf90db9[_0x4e663c(0x1f4)](_0x31ecdb)['getUnit'](_0x2702d4[_0x4e663c(0x2a9)],_0x2f51c2[_0x4e663c(0x1e3)])?!0x1:_0xf90db9[_0x4e663c(0x1f4)](Lo)[_0x4e663c(0x326)](_0x2702d4['unitId'],_0x2702d4[_0x4e663c(0x370)])};function Bo(_0x11adbb){const _0x37d330=_0x4e663c;let _0x46c9a5=_0x11adbb[_0x37d330(0x2cf)]??Date[_0x37d330(0x2cf)](),_0x39f310=_0x11adbb[_0x37d330(0x210)]??_0x11adbb['id']+_0x37d330(0x281),_0x15fa63=_0x11adbb['gridViewId']??_0x11adbb['id']+_0x37d330(0x23a),_0x337e2a=_0x11adbb[_0x37d330(0x424)]??0x0,_0x33d55d=_0x380c2b(),_0x58d94e={'id':_0x39f310,'name':_0x11adbb[_0x37d330(0x49c)]??_0x37d330(0x221),'type':_0x5f310d[_0x37d330(0x3d0)],'config':{'placeholder':_0x37d330(0x2b5)}},_0x51f9d2={},_0x2befe1=[],_0x29f64b={},_0x595be9={},_0x10a5d3={};for(let _0x5b2e4c=0x0;_0x5b2e4c<_0x337e2a;_0x5b2e4c++){let _0x2eda98=_0x11adbb['id']+_0x37d330(0x3b1)+(_0x5b2e4c+0x1);_0x51f9d2[_0x2eda98]={'id':_0x2eda98,'values':{[_0x251017]:_0x2eda98,..._0x11adbb[_0x37d330(0x246)]?{[_0x39f310]:_0x11adbb['recordNamePrefix']+'\x20'+(_0x5b2e4c+0x1)}:{}},'orderKey':String(_0x5b2e4c+0x1)[_0x37d330(0x240)](0x4,'0'),'createdAt':_0x46c9a5,'updatedAt':_0x46c9a5},_0x2befe1[_0x37d330(0x25c)](_0x2eda98),_0x29f64b[_0x2eda98]=_0x5b2e4c,_0x595be9[_0x5b2e4c]=_0x2eda98,_0x10a5d3[_0x5b2e4c]={0x0:{'v':_0x2eda98,'t':_0x1f224e[_0x37d330(0x120)]}},_0x11adbb['recordNamePrefix']&&(_0x10a5d3[_0x5b2e4c][0x1]={'v':_0x11adbb[_0x37d330(0x246)]+'\x20'+(_0x5b2e4c+0x1),'t':_0x1f224e[_0x37d330(0x120)]});}let _0x4f4329={'id':_0x15fa63,'tableId':_0x11adbb['id'],'name':_0x37d330(0x374),'type':_0x45c2b1['Grid'],'fieldOrder':[_0x251017,_0x39f310],'fieldSettings':{[_0x251017]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x11adbb['id'],'name':_0x11adbb[_0x37d330(0x269)],'primaryFieldId':_0x39f310,'fieldOrder':[_0x251017,_0x39f310],'fields':{[_0x251017]:_0x33d55d,[_0x39f310]:_0x58d94e},'records':_0x51f9d2,'recordOrder':_0x2befe1,'rowIndex':_0x29f64b,'rowId':_0x595be9,'colIndex':{[_0x251017]:0x0,[_0x39f310]:0x1},'colId':{0x0:_0x251017,0x1:_0x39f310},'cellData':_0x10a5d3,'views':{[_0x15fa63]:_0x4f4329},'viewOrder':[_0x15fa63]};}const Vo='UNIVER_EMBED_BASES_TABLE';function Ho(_0x32bace){const _0x382632=_0x4e663c;let _0x3ac15c=Bo({'id':_0x32bace['hostAnchorId'],'name':_0x32bace[_0x382632(0x269)]??_0x32bace[_0x382632(0x3da)],'recordCount':0x0});return{..._0x3ac15c,'resources':{..._0x3ac15c[_0x382632(0x2e4)]??{},[Vo]:Go(_0x32bace)}};}function Uo(_0x4084f5){const _0x13eddb=_0x4e663c;return{'id':Q['id'],'params':{'unitId':_0x4084f5[_0x13eddb(0x2a9)],'op':_0x1ba09c['type']['compose'](_0x1ba09c[_0x13eddb(0x1dc)]([_0x13eddb(0x13e),_0x4084f5[_0x13eddb(0x291)]['id']],_0x4084f5[_0x13eddb(0x291)]),_0x1ba09c[_0x13eddb(0x1dc)]([_0x13eddb(0x33c),_0x4084f5[_0x13eddb(0x455)]??_0x4084f5['snapshot'][_0x13eddb(0x33c)][_0x13eddb(0x255)]],_0x4084f5['table']['id'])),'trigger':'embed-ui'}};}function Wo(_0x57ee5e){const _0x504639=_0x4e663c;let _0x13389a=_0x57ee5e[_0x504639(0x2b0)][_0x504639(0x33c)][_0x504639(0x137)](_0x57ee5e[_0x504639(0x3a6)]);if(!(!_0x57ee5e[_0x504639(0x2b0)][_0x504639(0x13e)][_0x57ee5e[_0x504639(0x3a6)]]||_0x13389a<0x0))return{'id':Q['id'],'params':{'unitId':_0x57ee5e[_0x504639(0x2a9)],'op':_0x1ba09c['type'][_0x504639(0x1fa)](_0x1ba09c[_0x504639(0x397)]([_0x504639(0x13e),_0x57ee5e['tableId']],_0x57ee5e[_0x504639(0x2b0)][_0x504639(0x13e)][_0x57ee5e[_0x504639(0x3a6)]]),_0x1ba09c['removeOp']([_0x504639(0x33c),_0x13389a],_0x57ee5e['tableId'])),'trigger':_0x504639(0x304)}};}function Go(_0x1685e3){const _0x5a3efe=_0x4e663c;return{'version':0x1,'embedId':_0x1685e3[_0x5a3efe(0x3da)],'hostAnchorId':_0x1685e3['hostAnchorId'],'childUnitId':_0x1685e3[_0x5a3efe(0x30e)],'childType':_0x1685e3[_0x5a3efe(0x356)]};}function Ko(_0x29d21c){const _0x3cf1ca=_0x4e663c;let _0x45edef=Math[_0x3cf1ca(0x251)](0x0,Number(_0x29d21c[_0x3cf1ca(0x26a)]??0x0)),_0x13f764=_0x29d21c[_0x3cf1ca(0x469)]===!0x1?'0':_0x3cf1ca(0x2d4),_0x3e9c59=_0x45edef?'.'+'0'['repeat'](_0x45edef):'',_0x198863=Jo(_0x29d21c[_0x3cf1ca(0x16f)]);return''+(_0x29d21c[_0x3cf1ca(0x2b6)]?Yo(_0x29d21c[_0x3cf1ca(0x2b6)]):'')+_0x13f764+_0x3e9c59+_0x198863;}function qo(_0x5e9bdc,_0x24c97c){const _0x21ee3c=_0x4e663c;let _0xf1cfef=Ko(_0x24c97c),_0x37fd0c=_0x31df51[_0x21ee3c(0x379)](_0xf1cfef,_0x5e9bdc,{'throws':!0x1});return Xo(String(_0x37fd0c),_0x24c97c['separatorStyle'],_0x24c97c[_0x21ee3c(0x39e)]);}function Jo(_0x5b382a){const _0x4344ea=_0x4e663c;return _0x5b382a==='K'?_0x4344ea(0x43e):_0x5b382a==='M'?_0x4344ea(0x3c3):_0x5b382a==='B'?_0x4344ea(0x130):'';}function Yo(_0x5242fe){return/^[A-Z]+$/i['test'](_0x5242fe)?'\x22'+_0x5242fe+'\x22':_0x5242fe;}function Xo(_0x187d3e,_0x210a4b,_0x149fbd){const _0x1fb4c0=_0x4e663c;let _0x3201a6=_0x210a4b===_0x1fb4c0(0x40a)?Zo(_0x149fbd):_0x210a4b;return _0x3201a6==='periodComma'?_0x187d3e[_0x1fb4c0(0x13d)](/,/g,'\x00')[_0x1fb4c0(0x13d)](/\./g,',')[_0x1fb4c0(0x13d)](/\0/g,'.'):_0x3201a6===_0x1fb4c0(0x1de)?_0x187d3e[_0x1fb4c0(0x13d)](/,/g,'\x20')[_0x1fb4c0(0x13d)](/\./g,','):_0x3201a6===_0x1fb4c0(0x20c)?_0x187d3e[_0x1fb4c0(0x13d)](/,/g,'\x20'):_0x187d3e;}function Zo(_0x286ef7){const _0x4204da=_0x4e663c;var _0x77dfb4,_0x20e1cc;let _0x39b848=_0x286ef7||new Intl[(_0x4204da(0x3ea))]()[_0x4204da(0x1d3)]()[_0x4204da(0x39e)],_0x92be94;try{_0x92be94=new Intl[(_0x4204da(0x3ea))](_0x39b848,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x4204da(0x427)](0xf4240);}catch{return _0x4204da(0x4b7);}let _0x1c61a9=(_0x77dfb4=_0x92be94['find'](_0x1bc733=>_0x1bc733[_0x4204da(0x111)]===_0x4204da(0x29d)))==null?void 0x0:_0x77dfb4[_0x4204da(0x401)],_0x2efdc8=(_0x20e1cc=_0x92be94['find'](_0x36d520=>_0x36d520[_0x4204da(0x111)]===_0x4204da(0x21e)))==null?void 0x0:_0x20e1cc['value'],_0x311082=_0x1c61a9==='\u00a0'||_0x1c61a9==='\u202f'?'\x20':_0x1c61a9;return _0x311082==='.'&&_0x2efdc8===','?_0x4204da(0x2e7):_0x311082==='\x20'&&_0x2efdc8===','?_0x4204da(0x1de):_0x311082==='\x20'&&_0x2efdc8==='.'?_0x4204da(0x20c):'commaPeriod';}function Qo(_0x301efb,_0x3016e8){const _0x427287=_0x4e663c;let _0x4ce949=_0x3016e8&&typeof _0x3016e8==_0x427287(0x37c)&&!Array[_0x427287(0x454)](_0x3016e8)?_0x3016e8:{},_0x4c6428=$o(_0x4ce949[_0x427287(0x26a)],0x0,0x2,0x0),_0x45a720=_0x301efb[_0x427287(0x20b)](_0x4c6428);return _0x4ce949['format']===_0x427287(0x24a)?_0x45a720:_0x45a720+'%';}function $o(_0x25b15c,_0x4cfb3c,_0xcdbe76,_0x5ec404){const _0x4ef766=_0x4e663c;if(_0x25b15c==null||_0x25b15c==='')return _0x5ec404;let _0x579b83=typeof _0x25b15c==_0x4ef766(0x24a)?_0x25b15c:Number(_0x25b15c);return Number[_0x4ef766(0x402)](_0x579b83)?Math[_0x4ef766(0x251)](_0x4cfb3c,Math[_0x4ef766(0x34c)](_0xcdbe76,Math[_0x4ef766(0x496)](_0x579b83))):_0x5ec404;}const es=['count','filled',_0x4e663c(0x47f),'unique',_0x4e663c(0x360),_0x4e663c(0x430),'min',_0x4e663c(0x251)],ts=[_0x4e663c(0x23c),_0x4e663c(0x149),'empty','unique'],ns=[_0x4e663c(0x360),_0x4e663c(0x430),'min',_0x4e663c(0x251)],rs=['min',_0x4e663c(0x251)],is=new Set([_0x5f310d[_0x4e663c(0x376)],_0x5f310d['Currency'],_0x5f310d[_0x4e663c(0x46d)],_0x5f310d[_0x4e663c(0x29c)]]),as=new Set([_0x5f310d[_0x4e663c(0x3b2)],_0x5f310d[_0x4e663c(0x447)],_0x5f310d[_0x4e663c(0x19d)]]),os=_0x4e663c(0x1db);function ss(_0x2e6f80){const _0x4487c9=_0x4e663c;return typeof _0x2e6f80==_0x4487c9(0x432)&&es[_0x4487c9(0x176)](_0x2e6f80);}function cs(_0x841fdd){const _0x1eba3d=_0x4e663c;return!_0x841fdd||typeof _0x841fdd!=_0x1eba3d(0x37c)?{}:Object[_0x1eba3d(0x147)](Object[_0x1eba3d(0x3ee)](_0x841fdd)['filter'](_0x2962e3=>ss(_0x2962e3[0x1])));}function ls(_0x12c5fb){const _0x24d668=_0x4e663c;return is['has'](_0x12c5fb[_0x24d668(0x111)])?[...ts,...ns]:_0x12c5fb[_0x24d668(0x111)]===_0x5f310d[_0x24d668(0x38d)]?[...ts,...ws(_0x12c5fb)===_0x24d668(0x4ba)?rs:ns]:ts;}function us(_0x2b585e,_0x450988){return ls(_0x2b585e)['includes'](_0x450988);}function ds(_0x176edd,_0x503f59,_0x48045d){const _0x2d6027=_0x4e663c;if(!us(_0x176edd,_0x48045d))return null;let _0x4a5b9c=_0x503f59['filter'](_0x3619ae=>!ps(_0x176edd,_0x3619ae));switch(_0x48045d){case'count':return _0x503f59[_0x2d6027(0x255)];case _0x2d6027(0x149):return _0x4a5b9c[_0x2d6027(0x255)];case _0x2d6027(0x47f):return _0x503f59[_0x2d6027(0x255)]-_0x4a5b9c[_0x2d6027(0x255)];case'unique':return new Set(_0x4a5b9c[_0x2d6027(0x19c)](_0x130e35=>_s(_0x176edd,_0x130e35)))['size'];case _0x2d6027(0x360):{let _0x18e050=ms(_0x176edd,_0x4a5b9c);return _0x18e050[_0x2d6027(0x255)]?gs(_0x18e050):null;}case _0x2d6027(0x430):{let _0x1cbc74=ms(_0x176edd,_0x4a5b9c);return _0x1cbc74[_0x2d6027(0x255)]?gs(_0x1cbc74)/_0x1cbc74['length']:null;}case _0x2d6027(0x34c):{let _0x747a5d=ms(_0x176edd,_0x4a5b9c);return _0x747a5d[_0x2d6027(0x255)]?Math[_0x2d6027(0x34c)](..._0x747a5d):null;}case'max':{let _0x42574f=ms(_0x176edd,_0x4a5b9c);return _0x42574f['length']?Math[_0x2d6027(0x251)](..._0x42574f):null;}}}function fs(_0x29cd71,_0x26571d,_0x788f7f){const _0x5a12a0=_0x4e663c;if(_0x788f7f==null||!Number[_0x5a12a0(0x402)](_0x788f7f))return'-';if(ts[_0x5a12a0(0x176)](_0x26571d))return String(_0x788f7f);switch(_0x29cd71[_0x5a12a0(0x111)]){case _0x5f310d[_0x5a12a0(0x376)]:return qo(_0x788f7f,xs(_0x29cd71));case _0x5f310d[_0x5a12a0(0x144)]:return qo(_0x788f7f,Ss(_0x29cd71));case _0x5f310d['Progress']:return Qo(_0x788f7f,_0x29cd71['config']);case _0x5f310d['Formula']:return Cs(_0x788f7f,_0x29cd71);default:return Es(_0x788f7f);}}function ps(_0x1cf669,_0xaa9804){const _0x169189=_0x4e663c;if(_0xaa9804==null)return!0x0;if(typeof _0xaa9804==_0x169189(0x432))return _0xaa9804[_0x169189(0x319)]()==='';if(Array['isArray'](_0xaa9804))return _0x1cf669['type']===_0x5f310d[_0x169189(0x151)]?!_0xaa9804[_0x169189(0x48c)](bs):_0xaa9804[_0x169189(0x255)]===0x0;if(_0x1cf669[_0x169189(0x111)]===_0x5f310d[_0x169189(0x3a7)]&&typeof _0xaa9804==_0x169189(0x37c)){let _0xcfa529=_0xaa9804;return[_0xcfa529[_0x169189(0x10f)],_0xcfa529[_0x169189(0x282)]][_0x169189(0x361)](_0x3e5efd=>_0x3e5efd==null||String(_0x3e5efd)[_0x169189(0x319)]()==='');}return!0x1;}function ms(_0x314d2b,_0x20fb6e){let _0x13b693=[];for(let _0x511d3e of _0x20fb6e){let _0x425bf4=hs(_0x314d2b,_0x511d3e);_0x425bf4!=null&&_0x13b693['push'](_0x425bf4);}return _0x13b693;}function hs(_0x380406,_0x1df80b){const _0x3e00ea=_0x4e663c;if(typeof _0x1df80b==_0x3e00ea(0x24a))return Number[_0x3e00ea(0x402)](_0x1df80b)?_0x1df80b:null;if(_0x380406['type']!==_0x5f310d['Formula']&&typeof _0x1df80b=='string'&&_0x1df80b[_0x3e00ea(0x319)]()!==''){let _0x2a1818=Number(_0x1df80b);return Number['isFinite'](_0x2a1818)?_0x2a1818:null;}return null;}function gs(_0x1e5ce7){const _0xcddad2=_0x4e663c;let _0xc9bc3f=0x0,_0x36316d=0x0;for(let _0x12a0a1 of _0x1e5ce7){let _0x5589a1=_0xc9bc3f+_0x12a0a1;_0x36316d+=Math[_0xcddad2(0x2f0)](_0xc9bc3f)>=Math[_0xcddad2(0x2f0)](_0x12a0a1)?_0xc9bc3f-_0x5589a1+_0x12a0a1:_0x12a0a1-_0x5589a1+_0xc9bc3f,_0xc9bc3f=_0x5589a1;}return _0xc9bc3f+_0x36316d;}function _s(_0x4bf9a4,_0xc0064b){const _0x434455=_0x4e663c;return as[_0x434455(0x19e)](_0x4bf9a4[_0x434455(0x111)])&&Array['isArray'](_0xc0064b)?ys([...new Set(_0xc0064b[_0x434455(0x19c)](_0x7d966a=>ys(vs(_0x7d966a))))][_0x434455(0x3db)]()):ys(vs(_0xc0064b));}function vs(_0x307dfe){const _0x4d8eeb=_0x4e663c;return Array[_0x4d8eeb(0x454)](_0x307dfe)?_0x307dfe[_0x4d8eeb(0x19c)](vs):_0x307dfe&&typeof _0x307dfe=='object'?Object[_0x4d8eeb(0x147)](Object[_0x4d8eeb(0x3ee)](_0x307dfe)['sort'](([_0x27a560],[_0x3f479c])=>_0x27a560[_0x4d8eeb(0x3f7)](_0x3f479c))['map'](([_0x159eae,_0x18e1d2])=>[_0x159eae,vs(_0x18e1d2)])):_0x307dfe;}function ys(_0x5d8dbb){const _0x1f8a61=_0x4e663c;return JSON[_0x1f8a61(0x1ff)](_0x5d8dbb)??_0x1f8a61(0x431);}function bs(_0x276dda){const _0x51fb22=_0x4e663c;if(typeof _0x276dda==_0x51fb22(0x432))return _0x276dda[_0x51fb22(0x319)]()!=='';if(!_0x276dda||typeof _0x276dda!=_0x51fb22(0x37c))return!0x1;let _0x67138=_0x276dda;return[_0x67138['id'],_0x67138[_0x51fb22(0x269)],_0x67138[_0x51fb22(0x408)],_0x67138['url'],_0x67138[_0x51fb22(0x1a3)]][_0x51fb22(0x48c)](_0x2a74e5=>_0x2a74e5!=null&&String(_0x2a74e5)[_0x51fb22(0x319)]()!=='');}function xs(_0x109ad9){const _0x45b5bc=_0x4e663c;let _0xfeb594=Ds(_0x109ad9['config']);return{'decimalPlaces':ks(_0xfeb594[_0x45b5bc(0x26a)],0x0,0x14,0x2),'separatorStyle':typeof _0xfeb594[_0x45b5bc(0x34a)]=='string'?_0xfeb594[_0x45b5bc(0x34a)]:_0x45b5bc(0x40a),'locale':typeof _0xfeb594[_0x45b5bc(0x39e)]==_0x45b5bc(0x432)?_0xfeb594[_0x45b5bc(0x39e)]:void 0x0,'useThousands':_0xfeb594[_0x45b5bc(0x469)]!==!0x1,'abbreviation':typeof _0xfeb594[_0x45b5bc(0x16f)]==_0x45b5bc(0x432)?_0xfeb594[_0x45b5bc(0x16f)]:'none'};}function Ss(_0x5dd033){const _0x4e3a84=_0x4e663c;let _0x5454cf=Ds(_0x5dd033[_0x4e3a84(0x2c4)]);return{...xs(_0x5dd033),'currencySymbol':String(_0x5454cf[_0x4e3a84(0x2b6)]??'$')};}function Cs(_0xbebc53,_0x59d2f2){const _0x480e54=_0x4e663c;let _0x20534b=Ts(_0x59d2f2);if(_0x20534b===os)return Es(_0xbebc53);try{return String(_0x31df51[_0x480e54(0x379)](_0x20534b,_0xbebc53,{'throws':!0x1}));}catch{return Es(_0xbebc53);}}function ws(_0x16adac){const _0x3cd8b5=_0x4e663c;let _0x2bb2d4=Ds(Ds(_0x16adac['config'])[_0x3cd8b5(0x3a4)]);return typeof _0x2bb2d4['type']==_0x3cd8b5(0x432)?_0x2bb2d4[_0x3cd8b5(0x111)]:_0x3cd8b5(0x2b8);}function Ts(_0x45171e){const _0x5deecf=_0x4e663c;let _0x358e9f=Ds(Ds(_0x45171e[_0x5deecf(0x2c4)])[_0x5deecf(0x3a4)]);return String(_0x358e9f[_0x5deecf(0x301)]??os)[_0x5deecf(0x319)]()||os;}function Es(_0xb6ea1f){const _0x148517=_0x4e663c;return String(Number[_0x148517(0x3fc)](_0xb6ea1f)?_0xb6ea1f:Math[_0x148517(0x496)]((_0xb6ea1f+0x2**-0x34)*0x64)/0x64);}function Ds(_0x2b2ffc){const _0xf85210=_0x4e663c;return _0x2b2ffc&&typeof _0x2b2ffc=='object'&&!Array[_0xf85210(0x454)](_0x2b2ffc)?_0x2b2ffc:{};}function Os(_0x507035){const _0x1d291e=_0x4e663c;if(_0x507035==null||_0x507035==='')return null;let _0x4703ae=typeof _0x507035==_0x1d291e(0x24a)?_0x507035:Number(_0x507035);return Number[_0x1d291e(0x402)](_0x4703ae)?_0x4703ae:null;}function _0x4de6(){const _0x4b64a5=['isArray','index','_hierarchyIndexCache','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','duplicateRecord','duplicateField','_bumpTableRevision','import','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','BaseProjection.materializeTableRows','fields','base.viewType.gantt','bases-exchange-client.operation.export-base-by-format','_buildKanban','createDefaultValue','_projectHierarchyGroups','table/','_projectTableRows','_fieldPermissions','keys','_filterSortFieldIds','useThousands','rootRecordIds','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','delete-view','Progress','_buildGantt','basePerf','_formulaCalculationTriggerService','moveView','pop','_disposed','clearFieldPermission','defineProperty','onCommandExecuted','[BaseCommandService]:\x20cannot\x20create\x20record.','selectField','BASES_PLUGIN','A\x20table\x20with\x20this\x20name\x20already\x20exists.','base.command.update-base-view-conditional-color-rules','trigger','http:','[BaseFormula]:\x20table\x20\x22','empty','__UNIVER_BASE_PERF__','_getJson1DirtyData','createRegExpFromSafeFragment','base.command.delete-base-field','descendPath','_viewPermissions','createSuperTableReference','createTable','base-snapshot-v1','formula','IS_NOT_EMPTY','colId','some','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','setRangeValues','_viewRowsCacheKey','invalidateByField','invalid','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','result','query','conditions','round','done','#FDE68A','normal','limit','[BaseCommandService]:\x20invalid\x20field\x20definition.','primaryFieldName','_scheduledSuperTableSyncs','WriteCursor','_getCurrentUserId','projection','base.command.set-permissions','prototype','setTablePermission','__base_hierarchy_parent__','base.command.create-base-record','invalidGanttEndField','[BaseCommandService]:\x20cannot\x20manage\x20view.','_resolveGalleryCoverFieldId','greaterThan','\x20must\x20be\x20an\x20object.','replaceOp','_rowTransformCacheSegment','_canEdit','bases-exchange-client.operation.export-base','dispose','updatedBy','\x22\x20does\x20not\x20exist.','_runtimeContext','NUMBER','_resolveKanbanCardFieldIds','action','scale','commaPeriod','mode','getCapabilities','date','baseRows','exec','BaseHierarchyError','createRecord','_getViewRevision','fieldOrder','$1\x20','deleteRecords','direction','_replaceOptional','_removeSuperTables','deleteView','dateFormat','canManageView','setRecordValues','REMOTE_BASES_PLUGIN','viewOrder','info','base.command.update-base-view-config','_resolveGalleryCardFieldIds','createCreateRecordOp','disposeWithMe','_withModifiedSystemValues','kind','titleFieldId','text','_isColorfulKanbanGroupField','type','renameTable','greaterThanOrEqual','moveField','h24','setViewGroup','_clearObjectEdit','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','isNotEmpty','_projectedGroupsCache','base.command.create-base-view','_cellInvalidations','_capabilities','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','_permissionService','STRING','all','includeTime','toLocaleString','getUTCMonth','exceptions','[BaseCommandService]:\x20record-id\x20is\x20reserved.','Start\x20date','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','compress','getDependencies','includeRecords','getSnapshot','_isGanttDateField','base.command.set-base-name','deepClone',',,,\x22B\x22','base.command.batch-create-base-records','_setAttachmentResources','add','measure','PAST_7_DAYS','getDay','indexOf','ascend','attachmentSet','__tempBatchingUndoRedo','[BaseHierarchy]:\x20field\x20\x22','objectType','replace','tables','_fieldRegistry','MM-DD','canEditField','_deleteRecordsBaseOp','find','Currency','toPrimitive','canEditRecord','fromEntries','Unsupported\x20Base\x20permission\x20object:\x20','filled','Date','_tablePermissions','_isAllowedKanbanGroupField','deleteRecord','_createNumberingAllocator','symbol','_getAllBaseDependencyTreeCacheMap','Attachment','viewId','setPoint','base.command.duplicate-base-record','view','_plugins','_isKanbanGroupField','parentByRecordId','packageName','field/','description','base.mutation.set-permission-rules','\x20must\x20have\x20a\x20non-empty\x20id.','TODAY','\x20cannot\x20use\x20operator\x20\x22','[BaseField]:\x20invalid\x20number\x20value.','split','createdAt','field','at\x20index\x20','matchAll','manageView','_createRecordOrderOp','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','beforeViewId','_ganttBarColor','Uncategorized','DESC','params','getUnitId','abbreviation','none','cellData','Unchecked','728086lHYAIx','_projectionCache','base.command.delete-base-record','includes','usableAsGanttStart','_createNumberingAllocators','Checked','_isAllDayCalendarEvent','bases.config','base.command.','[BaseCommandService]:\x20cannot\x20delete\x20record.','\x20has\x20unsupported\x20date\x20mode\x20\x22','options','fieldSettings','duplicate','unknown','slice','groups','invalidReasonByRecordId','Use\x2031\x20characters\x20or\x20fewer.','revision','_getAllTableIds','thread-comment.command.','setViewFieldOrder','Parent\x20Items','_tableBaseIds','sortedView','_buildCalendar','getTypeOfUnitDisposed$','updateField','_findCalendarDateFieldId','_configService','usableAsCalendarDate','Gantt','[BaseField]:\x20invalid\x20rating\x20value.',':start','Copy','maxDepth','base.projection.service','setBaseName','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','map','Group','has','_applyingFormulaResults','invalidateByOp','h12','cell','thumbnail','selfParent','[BaseViewRegistryService]:\x20view\x20type\x20\x22','decorate','mark','BaseProjection.projectTableRows','updatedAt','long','createDeleteRecordsUndoOp','base.command.update-base-field-description','base.command.batch-delete-base-records','5ZqWlsI','compare','percent','canDeleteTable','_groupProjectionFieldIds','_toDirtyRangePatch','_deleteAttachmentResources','level','[BaseCommandService]:\x20cannot\x20create\x20table.','orderKey','INIT','base-range-values-v1','_createRecordWithDefaults','base.resource.service','canCreateField','createView','endDateFieldId','addPermissionPoint','_materializeFormulaTableNames','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','timeslotSize','children','2613768RHtXMI','_materializeGroups','attachment','leftPaneCollapsed','getUTCFullYear','recordIds','invalid-characters','base.command.set-base-kanban-group-field','base.fieldType.','column','base.command.delete-base-view','multiple','getAffectedRanges','getTime','startDateFieldId','resolvedOptions','Clear','toString','_applier','parse','_factory','SingleSelect','custom','General','insertOp','_syncSuperTables','spaceComma','_clearUnit','getCurrentUserId','\x20permission\x20denied.','18743888lWoQLR','UNIVER_BASE','afterFieldId','base.command.set-base-table-hierarchy-field','target','\x22\x20is\x20not\x20registered.','_setViewFieldSetting','_applyFormulaResult','h:mm\x20a','_executeSuperTableMutationWhileActive','getFullYear','dependencyFieldId','base.command.set-base-view-filter','recordId','createBatchCreateRecordsOp','delete','_patchProjectedRowsForCellInvalidations','InvalidField','get','start','[BaseField]:\x20invalid\x20multi-value\x20reference.','fieldName','BaseJson1.syncCellInvalidations','_title','compose','flatMap','invalidateByCell','[BaseCommandService]:\x20cannot\x20edit\x20field.','Phone','stringify','rowIndex','_resolveCalendarDateFieldId','attachment-','UTC','BaseTable','BaseProjection.filterAndSortRows','globalRevision','BaseView','remote','_getTablesToNormalize','oldParentRecordId','toFixed','spacePeriod','filter','setViewPermission','base.viewType.grid','primaryFieldId','view/','base.command.set-base-view-group','base.command.duplicate-base-field','getCurrentUser','renameFormulaUnitReferences','getStructuredDependencies','cardLayout','missingRecord','_tableRevisions','members','width','_formulaSyncQueue','TOMORROW','decimal','targetTableId','registerSyncingMutations','Name','changeFieldType','path','setSnapshot','registerCtorForType','dateMode','lessThan','iterator','createField','_normalizeCalendarDisplayColor','_createNumberingFieldValuePatches','day','COMMAND','_cellInvalidationsTouchFields','setRule','registerRuleModel','flat','setBasePermission','set','onReady','_kanbanGroupKeys','hasOwnProperty','SelfParent','subscribe','strategies','-view-grid','diffValue','count',':end','thread-comment.mutation.','base.field-registry.service','padStart','DD/MM/YYYY','cycle','base.command.set-permission','beforeFieldId','usableAsCardCover','recordNamePrefix','policy','_getTableRevision','redo','number','[BaseFormula]:\x20table\x20does\x20not\x20exist.','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','Date1900','invalidField','base.command.rename-base-view','star','max','Done','createSetRecordValuesOp','notContains','length','end','_canUseFastSort','tryMaterializeSnapshot','_setFormulaFieldCells','_getCellRevision','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','push','medium','create-view','_commandService','CreatedAt','Status','[BaseField]:\x20invalid\x20date\x20value.','size','_getOrderedRecords','base.command.move-base-view','_getSystemFieldValue','focusUnit','_cellRevisions','name','decimalPlaces','hierarchy','editCell','parentRecordId','_formulaCalculationSessionService','col','isEmpty','facade','owner','BaseDashboard','base.permission.service','base.command.rename-base-table','registerView','fieldIndex','Export','getAllBases','conditional','_normalizeCalendarConfig','_activeDirtyManagerService','regenerateViewIds','bases.fieldConfig.linkPlaceholder','Comment','Checkbox','-field-name','url','invertWithDoc','base.viewType.kanban','_projectedRowsCache','2722881sJBIfq','1298568ILZPGg','AFTER','attachmentSets','changed','onStarting','gantt','_check','base.command.set-base-range-values','relationRole','kanban','table','[RecordLink]:\x20target\x20record\x20\x22','colIndex','base.command.change-base-field-type','THIS_MONTH','setFieldPermission','allowMultiple','setViewSort','setViewFieldWidth','startsWith','base.command.set-base-view-field-visible','Rating','group','getMonth','forEach','_baseSyncDisposables','BaseProjection.projectGroups','updateRecordOrder','nodes','Calendar','order','_T_','toPlainText','_canEditTable','unitId','collaborators','registerCommand','views','splice','_globalRevision','univer.basePerf','snapshot','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','canDeleteField','[BaseField]:\x20invalid\x20progress\x20value.','_calendarEventColor','bases.fieldConfig.textPlaceholder','currencySymbol','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','general','hourCycle','_buildGallery','register','remove','deleteTable','fieldId','@univerjs-pro/bases','_kanbanLaneTitle','BEFORE','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','renameView','config','fieldIds','apostrophe','formulaName','IS_EMPTY','_assertFieldDefinition','off','FieldId','deleteField','\x20has\x20unsupported\x20target\x20\x22','tableRevision','now','[BaseCommandService]:\x20cannot\x20edit\x20record.','[RecordLink]:\x20display\x20field\x20\x22','colorFieldId','autoIncrement','#,##0','_resolveKanbanCoverFieldId','apply','base.command.update-base-field','pushUndoRedo','MM/DD/YYYY','base-perf-','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','boolean','updateViewConfig','displayColor','conjunction','record','rowId','lastIndex','week','resources','bases.remote.config','userID','periodComma','Base','join','timeZone','_groupConfigCacheSegment','toLowerCase','_scheduleSuperTableSync','patches','tableName','abs','coverFieldId','_normalizeGanttDisplayColor','https://','default','_viewRevisions','[BaseField]:\x20invalid\x20phone\x20value.','descend','Empty','[BaseProjectionService]:\x20missing\x20view\x20\x22','base.mutation.apply-base-json1','undo','too-long','groupFieldId','canCreateRecord','attachments','false','pattern','row','saveMany','embed-ui','quarter','missingField','_formulaService','_resolveCardTitleFieldId','codePointAt','NEXT_7_DAYS','_registerUnitPermissionPoints','base.command.update-base-record-order','IS_NOT','childUnitId','working','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','Gallery','write','setRecordPermission','_initDependencies','BaseCommand.createBatchCreateRecordsOp','small','[BaseField]:\x20invalid\x20person\x20value.','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','trim','showFieldNames','[BaseCommandService]:\x20cannot\x20edit\x20cell.','CreateView','editable','setViewFieldVisible','protocol','unitData','subType','en-US','YYYY-MM-DD','_setCachedProjection','values','setRules','data','valueOf','_initCommands','_kanbanLaneColor','PAST_30_DAYS','YYYY/MM/DD','_normalizeGanttConfig','createCreateFieldOp','#3b82f6','title','objectId','getAllPermissionPoint','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.service','_normalizeCellValue','card','frozenFieldCount','MUTATION','_getHierarchyIndex','Doing','_initRegistries','tableOrder','getSuperTableRegistrations','status','UpdatedBy','unsubscribe','setViewFilter','check','EXACT','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','usableAsGanttEnd','createdBy','optionSource','workingDaysOnly','isNot','separatorStyle','Choose\x20another\x20name.','min','contains','cellRevision','_recordPermissions','clear','_createSystemFieldValuePatches','[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.','search','SortedView','test','childType','_projectRows','Table\x20name\x20is\x20required.','Invalid\x20object\x20permission\x20batch.','hidden','_getCachedProjection','createViewId','_rememberTable','canEditTable','displayFieldId','sum','every','https:','getAll','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','_projectedViewRowsCache','deletePermissionPoint','Parent','getUTCDate','BOOLEAN','BaseProjection.projectRows','recordOrder','Import','markResultApplied','operator','BASE_OBJECT_PERMISSION_PLUGIN','rules','weekdays','syncUnit','_config','Grid','base.viewType.gallery','Number','rows','\x20has\x20unsupported\x20operator\x20\x22','format','Failed\x20to\x20create\x20update\x20cell\x20operation:','2235012YDGsld','object','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.mutation.set-permission-rule','BaseField','columnSettings','_initDataSync','save','Kanban','base.view-registry.service','_resolveKanbanGroupFieldId','_isAllDayGanttDateRange','[BaseCommandService]:\x20field\x20\x22','normalize','base.command.create-base-field','defaultValue','Cycle','majorHeaders','Formula','createBase','parentFieldName','month','canEditCell','MissingRecord','_groupsCacheKey','LAST_MONTH','Undo','_normalizeGalleryConfig','removeOp','base.command.set-base-record-values','_cacheKey','short','progressFieldId','system','viewIndexes','locale','valid','getPermissionPoint','_matchesGanttColorRule','pickerFieldIds','subtreeEndIndex','numfmt','Edit','tableId','Link','endsWith','_views','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','_recordIds','[RecordLink]:\x20field\x20config\x20is\x20invalid.','clearUnit','calendar','#BFDBFE','HH:mm','-record-','MultiSelect','doing','Numbering','_initialize','raw','setConfig','_filterRows','large','BaseProjection.getProjection','base.command.move-base-field','[BasePerf]\x20','CreatedBy','Set','call','option-','depth','leftPaneWidth',',,\x22M\x22','cardSize','_resolveGanttDateFieldId','error','readonly','ruleId','[DeleteBaseTableCommand]:\x20table\x20\x22','depthByRecordId','_apply','afterViewId','yyyy/mm/dd','searchTexts','[BaseCommandService]:\x20cannot\x20create\x20field.','Text','childrenByParentId','createDefaultConfig','reduce','subtreeHeightByRecordId','clearBasePermission','score','MMM\x20D,\x20YYYY','_patchCachedProjectedRows','_getStructureDirtyTableIds','embedId','sort','_registeredSuperTableNames','href','exists','Unsupported\x20Base\x20permission\x20action:\x20','[BaseHierarchy]:\x20','768430iWHOdk','allowNegative','lastIndexOf','RecordLink','Email','base.viewType.calendar','LAST_WEEK','clearTablePermission','workingDays','NumberFormat','function','_findKanbanGroupField','_onCommandExecuted','entries','lessThanOrEqual','applyOp','_getTable','records','_setObjectEdit','_basePermissions','_buildGrid','year','localeCompare','_isNonEmptyCellValue','orderedRecordIds','finally','syncExecuteCommand','isInteger','_instanceService','displayText','person','showTodayLine','value','isFinite','getUnit','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_getKanbanConfiguredLanes','_syncBaseUnit','key','source','Redo','local','#14b8a6','UpdatedAt','pluginName','from','rowIndexById','beforeCommandExecuted','MissingParent','FORCE_STRING','clearViewPermission','rule','True','color','#,##0.00','label','__all__','edit','_sortRows','reason','version','_injector','MaxDepth','[BaseCommandService]:\x20cannot\x20edit\x20table.','_projectGroups','getAllUnitsForType','base.mutation.','recordCount','IBaseCellData.ensureTableCellLayout','YESTERDAY','formatToParts','fld-','resolve','_enqueueFormulaSync','End\x20date','_viewRevisionKey','fromChangeset','createUnit','executeCommand','average','undefined','string','_resolveBaseId','Facade','BASE','createUpdateCellOp','this-row','manual','getTypeOfUnitAdded$','BaseRecord','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','[BaseCommandService]:\x20cannot\x20delete\x20table.','_projectFields',',\x22K\x22','getCurrentUnitOfType','operand','ena','createRecords','\x22\x20with\x20field\x20type\x20\x22','emitPermissionDenied','validateFormula','updateCell','Person','_univerInstanceService','base.command.set-base-view-field-order','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','setHours','invertOp','true','RecordId','_isCalendarDateField','getUTCDay','_dataSyncPrimaryController','catch','user'];_0x4de6=function(){return _0x4b64a5;};return _0x4de6();}function ks(_0x116ffc,_0x469dc6,_0x4b1175,_0x446bcb){const _0x51750f=_0x4e663c;let _0x1fc0ab=Os(_0x116ffc);return _0x1fc0ab==null?_0x446bcb:Math['max'](_0x469dc6,Math[_0x51750f(0x34c)](_0x4b1175,Math[_0x51750f(0x496)](_0x1fc0ab)));}function As(_0x26957d,_0x5a08e4){const _0x212017=_0x4e663c;let _0x5cfe50=_0x6981f1[_0x212017(0x12f)](_0x26957d),_0x34e818=_0x5a08e4[_0x212017(0x12b)]===!0x0,_0x199c46=new Map(),_0x2b74bd=_0x5a08e4[_0x212017(0x35c)]??(()=>'view-'+_0x4b8ea3(0x8)),_0x1d3bc6=_0x5cfe50[_0x212017(0x4cb)];return _0x5a08e4[_0x212017(0x27d)]&&(_0x1d3bc6=_0x5cfe50[_0x212017(0x4cb)][_0x212017(0x19c)](_0x36868c=>{const _0x357f1f=_0x212017;let _0x5cccfd=_0x2b74bd();return _0x199c46[_0x357f1f(0x233)](_0x36868c,_0x5cccfd),_0x5cccfd;})),{..._0x5cfe50,'id':_0x5a08e4['id'],'name':_0x5a08e4[_0x212017(0x269)],'records':_0x34e818?_0x5cfe50[_0x212017(0x3f2)]:{},'recordOrder':_0x34e818?_0x5cfe50[_0x212017(0x36b)]:[],'rowIndex':_0x34e818?_0x5cfe50['rowIndex']:{},'rowId':_0x34e818?_0x5cfe50[_0x212017(0x2e1)]:{},'cellData':_0x34e818?_0x5cfe50[_0x212017(0x171)]:{},'resources':_0x34e818?_0x5cfe50[_0x212017(0x2e4)]:{},'viewOrder':_0x1d3bc6,'views':Object[_0x212017(0x147)](Object[_0x212017(0x3ee)](_0x5cfe50[_0x212017(0x2ac)]??{})[_0x212017(0x19c)](([_0x803485,_0x29976d])=>{let _0x5bc5f9=_0x199c46['get'](_0x803485)??(_0x5a08e4['regenerateViewIds']?_0x2b74bd():_0x803485);return[_0x5bc5f9,{..._0x29976d,'id':_0x5bc5f9,'tableId':_0x5a08e4['id']}];}))};}var js=_0x4e663c(0x2bf),Ms='1.1.0';const Ns={},Ps={};function Fs(_0x417343){const _0x48d011=_0x4e663c;return new z()[_0x48d011(0x1d0)](_0x417343);}function Is(_0x22d67a){const _0x4d99fd=_0x4e663c;return _0x22d67a[_0x4d99fd(0x2ee)][_0x4d99fd(0x19c)](_0x21bcdb=>({'unitId':_0x22d67a[_0x4d99fd(0x2a9)],'sheetId':_0x22d67a[_0x4d99fd(0x3a6)],'range':{'startRow':_0x21bcdb[_0x4d99fd(0x302)],'endRow':_0x21bcdb[_0x4d99fd(0x302)],'startColumn':_0x21bcdb[_0x4d99fd(0x26f)],'endColumn':_0x21bcdb['col']}}));}function Ls(_0xa3d515,_0x20e37b){const _0x5ae487=_0x4e663c;return{[_0xa3d515]:Object[_0x5ae487(0x147)](_0x20e37b['map'](_0x44faa5=>[_0x44faa5,'1']))};}let Rs=class extends _0x528c5b{constructor(_0x95471f,_0x3b789b){const _0x49ff6e=_0x4e663c;super(),this[_0x49ff6e(0x27c)]=_0x95471f,this[_0x49ff6e(0x448)]=_0x3b789b,this['_initialize']();}[_0x4e663c(0x3b5)](){const _0x5a8f9e=_0x4e663c;this['_activeDirtyManagerService'][_0x5a8f9e(0x2bb)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x5d54c2=>this[_0x5a8f9e(0x481)](_0x5d54c2[_0x5a8f9e(0x16d)])}),this['disposeWithMe'](_0x1b91c9(()=>{const _0xcab077=_0x5a8f9e;this[_0xcab077(0x27c)]['remove'](Q['id']);}));}[_0x4e663c(0x3f1)](_0x4da8b0,_0x37a9e7){const _0xec1f50=_0x4e663c;let _0x3ce7cb=this[_0xec1f50(0x448)][_0xec1f50(0x403)](_0x4da8b0,_0x2f51c2[_0xec1f50(0x1e3)]);return(_0x3ce7cb==null?void 0x0:_0x3ce7cb['getSnapshot']()[_0xec1f50(0x13e)][_0x37a9e7])??null;}[_0x4e663c(0x481)](_0x511211){const _0x5e280a=_0x4e663c;if(_0x511211[_0x5e280a(0x47c)]==='formula.mutation.set-formula-calculation-result')return{};if(!_0x511211[_0x5e280a(0x2a9)]||!_0x511211['op'])return{'clearDependencyTreeCache':this['_getAllBaseDependencyTreeCacheMap'](),'forceCalculation':!0x0};let _0x5aa1c6=Fs(_0x511211['op']),_0x1a7f9a=this[_0x5e280a(0x3d9)](_0x511211[_0x5e280a(0x2a9)],_0x5aa1c6);if(_0x1a7f9a[_0x5e280a(0x255)])return{'clearDependencyTreeCache':Ls(_0x511211[_0x5e280a(0x2a9)],_0x1a7f9a),'forceCalculation':!0x0};let _0x4e3556=Object[_0x5e280a(0x3ee)](this['_groupCellInvalidations'](_0x511211[_0x5e280a(0x2a9)],_0x5aa1c6))[_0x5e280a(0x1fb)](([_0x24c7a0,_0x1cd75a])=>Is({'unitId':_0x511211[_0x5e280a(0x2a9)],'tableId':_0x24c7a0,'patches':_0x1cd75a}));return _0x4e3556[_0x5e280a(0x255)]?{'dirtyRanges':_0x4e3556}:{};}[_0x4e663c(0x3d9)](_0x52e971,_0x11c5c7){const _0xdf34fc=_0x4e663c;let _0x4b5064=_0x11c5c7[_0xdf34fc(0x20d)](_0x127dc7=>_0x127dc7[_0xdf34fc(0x41c)]!==_0xdf34fc(0x1a2))[_0xdf34fc(0x1fb)](_0x4b927c=>_0x4b927c[_0xdf34fc(0x3a6)]?[_0x4b927c[_0xdf34fc(0x3a6)]]:this[_0xdf34fc(0x188)](_0x52e971));return Array[_0xdf34fc(0x40e)](new Set(_0x4b5064));}['_groupCellInvalidations'](_0x5db7a8,_0x37ed7b){const _0x1951e2=_0x4e663c;let _0x2ff6cf=new Set();return _0x37ed7b[_0x1951e2(0x3d3)]((_0x4bb4b6,_0x33c23b)=>{const _0x2c03d2=_0x1951e2;let _0x25d62b=this[_0x2c03d2(0x1b3)](_0x5db7a8,_0x33c23b);if(!_0x25d62b)return _0x4bb4b6;let _0x4bc62c=_0x33c23b[_0x2c03d2(0x3a6)]+':'+_0x25d62b[_0x2c03d2(0x302)]+':'+_0x25d62b[_0x2c03d2(0x26f)];return _0x2ff6cf['has'](_0x4bc62c)||(_0x2ff6cf[_0x2c03d2(0x133)](_0x4bc62c),_0x4bb4b6[_0x33c23b[_0x2c03d2(0x3a6)]]=_0x4bb4b6[_0x33c23b[_0x2c03d2(0x3a6)]]??[],_0x4bb4b6[_0x33c23b[_0x2c03d2(0x3a6)]][_0x2c03d2(0x25c)](_0x25d62b)),_0x4bb4b6;},{});}['_toDirtyRangePatch'](_0x37b310,_0x1e973c){const _0x220759=_0x4e663c;if(_0x1e973c[_0x220759(0x41c)]!==_0x220759(0x1a2))return null;if(_0x1e973c[_0x220759(0x302)]!=null&&_0x1e973c[_0x220759(0x1cd)]!=null)return{'row':_0x1e973c[_0x220759(0x302)],'col':_0x1e973c[_0x220759(0x1cd)],'value':null};if(!_0x1e973c['recordId']||!_0x1e973c[_0x220759(0x2be)])return null;let _0x412f79=this[_0x220759(0x3f1)](_0x37b310,_0x1e973c[_0x220759(0x3a6)]);if(!_0x412f79)return null;let _0x1ee859=_t(_0x412f79,_0x1e973c['recordId'],_0x1e973c[_0x220759(0x2be)]);return _0x1ee859?{'row':_0x1ee859[_0x220759(0x302)],'col':_0x1ee859['col'],'value':null}:null;}['_getAllTableIds'](_0x2517bd){const _0x8bd72=_0x4e663c;let _0x2f95ce=this[_0x8bd72(0x448)][_0x8bd72(0x403)](_0x2517bd,_0x2f51c2['UNIVER_BASE']);return Object[_0x8bd72(0x325)]((_0x2f95ce==null?void 0x0:_0x2f95ce[_0x8bd72(0x12c)]()[_0x8bd72(0x13e)])??{})['map'](_0x55f01e=>_0x55f01e['id']);}[_0x4e663c(0x150)](){const _0x4e889b=_0x4e663c;let _0x57ed2c=this[_0x4e889b(0x448)][_0x4e889b(0x422)](_0x2f51c2[_0x4e889b(0x1e3)])['map'](_0x1649c9=>Ls(_0x1649c9[_0x4e889b(0x16e)](),Object[_0x4e889b(0x467)](_0x1649c9[_0x4e889b(0x12c)]()[_0x4e889b(0x13e)])));return Object['assign']({},..._0x57ed2c);}};Rs=X([Y(0x0,_0x5bae85),Y(0x1,_0x31ecdb)],Rs);let zs=class extends _0x528c5b{constructor(_0x52ea2a,_0x183dae,_0x3428af,_0x4dad8f){const _0x1983c6=_0x4e663c;super(),this[_0x1983c6(0x25f)]=_0x52ea2a,this[_0x1983c6(0x448)]=_0x183dae,this[_0x1983c6(0x470)]=_0x3428af,this[_0x1983c6(0x26e)]=_0x4dad8f,G(this,_0x1983c6(0x307),new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,_0x1983c6(0x49d),new Set()),G(this,_0x1983c6(0x21c),Promise[_0x1983c6(0x429)]()),G(this,_0x1983c6(0x19f),!0x1),this['_initialize']();}[_0x4e663c(0x3b5)](){const _0x743778=_0x4e663c;this[_0x743778(0x448)]['getAllUnitsForType'](_0x2f51c2[_0x743778(0x1e3)])[_0x743778(0x29f)](_0x61da52=>{const _0x4e38bd=_0x743778;this[_0x4e38bd(0x2ed)](_0x61da52);}),this[_0x743778(0x4d0)](this[_0x743778(0x448)]['getTypeOfUnitAdded$'](_0x2f51c2[_0x743778(0x1e3)])['subscribe'](({unit:_0x55ceac})=>{this['_scheduleSuperTableSync'](_0x55ceac);})),this['disposeWithMe'](this[_0x743778(0x448)][_0x743778(0x18f)](_0x2f51c2[_0x743778(0x1e3)])[_0x743778(0x238)](_0x1d8b26=>{const _0x2ba861=_0x743778;this[_0x2ba861(0x42a)](()=>this[_0x2ba861(0x4c5)](_0x1d8b26[_0x2ba861(0x16e)]()));})),this[_0x743778(0x4d0)](this[_0x743778(0x25f)][_0x743778(0x476)](_0x3b7936=>this[_0x743778(0x3ed)](_0x3b7936)));}[_0x4e663c(0x3ed)](_0x407529){const _0x2b1d63=_0x4e663c;if(_0x407529['id']===_0x1a1a15['id']){Vs(_0x407529[_0x2b1d63(0x16d)])&&this[_0x2b1d63(0x1e9)](_0x407529[_0x2b1d63(0x16d)]);return;}if(this[_0x2b1d63(0x19f)]||_0x407529['id']!==Q['id'])return;let _0x1cc4f7=Bs(_0x407529[_0x2b1d63(0x16d)])?_0x407529[_0x2b1d63(0x16d)]:void 0x0,_0x4e7960=_0x1cc4f7!=null&&_0x1cc4f7[_0x2b1d63(0x2a9)]?[this[_0x2b1d63(0x448)][_0x2b1d63(0x403)](_0x1cc4f7[_0x2b1d63(0x2a9)],_0x2f51c2[_0x2b1d63(0x1e3)])][_0x2b1d63(0x20d)](_0x1d167b=>!!_0x1d167b):this[_0x2b1d63(0x448)][_0x2b1d63(0x422)](_0x2f51c2[_0x2b1d63(0x1e3)]),_0x319b1d=_0x1cc4f7==null?void 0x0:_0x1cc4f7['op'];_0x4e7960[_0x2b1d63(0x29f)](_0x436559=>{const _0x298999=_0x2b1d63;let _0x59915b=_0x319b1d?Fs(_0x319b1d):[];(!_0x319b1d||_0x59915b[_0x298999(0x48c)](_0x58da63=>_0x58da63[_0x298999(0x41c)]!==_0x298999(0x1a2)))&&this[_0x298999(0x2ed)](_0x436559);});}[_0x4e663c(0x2ed)](_0x5abecb){const _0x5438ad=_0x4e663c;let _0x54281e=_0x5abecb[_0x5438ad(0x16e)]();this[_0x5438ad(0x49d)]['has'](_0x54281e)||(this[_0x5438ad(0x49d)][_0x5438ad(0x133)](_0x54281e),this[_0x5438ad(0x42a)](async()=>{const _0x17e374=_0x5438ad;this[_0x17e374(0x49d)][_0x17e374(0x1f1)](_0x54281e),await this[_0x17e374(0x1dd)](_0x5abecb);}));}async[_0x4e663c(0x1dd)](_0x376e00){const _0x477407=_0x4e663c;let _0x177236=_0x376e00[_0x477407(0x16e)](),_0x44cd46=this[_0x477407(0x307)][_0x477407(0x33d)](_0x376e00[_0x477407(0x12c)]()),_0x8e9ed3=new Set(_0x44cd46[_0x477407(0x19c)](({tableName:_0xe07a75})=>_0xe07a75)),_0x31f33d=this[_0x477407(0x3dc)][_0x477407(0x1f4)](_0x177236)??new Set();for(let _0xbc1dac of _0x31f33d)if(!_0x8e9ed3['has'](_0xbc1dac)&&!await this[_0x477407(0x1eb)](_0x2a9f56['id'],{'unitId':_0x177236,'tableName':_0xbc1dac}))return;for(let {tableName:_0x2d3f16,reference:_0x493085}of _0x44cd46)if(!await this[_0x477407(0x1eb)](_0x3f2919['id'],{'unitId':_0x177236,'tableName':_0x2d3f16,'reference':_0x493085}))return;this[_0x477407(0x3dc)][_0x477407(0x233)](_0x177236,_0x8e9ed3);}async[_0x4e663c(0x4c5)](_0x55b16b){const _0x3ee918=_0x4e663c;let _0x3d6b90=this['_registeredSuperTableNames'][_0x3ee918(0x1f4)](_0x55b16b)??new Set();for(let _0xd6a604 of _0x3d6b90)if(!await this[_0x3ee918(0x1eb)](_0x2a9f56['id'],{'unitId':_0x55b16b,'tableName':_0xd6a604}))return;this[_0x3ee918(0x3dc)][_0x3ee918(0x1f1)](_0x55b16b);}async['_executeSuperTableMutationWhileActive'](_0x285990,_0x1927e2){const _0x279b07=_0x4e663c;return!this['_disposed']&&await this[_0x279b07(0x25f)][_0x279b07(0x42f)](_0x285990,_0x1927e2,{'onlyLocal':!0x0})&&!this[_0x279b07(0x473)];}[_0x4e663c(0x42a)](_0x1925f0){const _0x3fcc2a=_0x4e663c;this['_formulaSyncQueue']=this['_formulaSyncQueue']['then'](_0x1925f0,_0x1925f0)[_0x3fcc2a(0x452)](()=>void 0x0);}[_0x4e663c(0x1e9)](_0x1d7020){const _0x1b651b=_0x4e663c;let _0x14f8c3=this['_univerInstanceService'][_0x1b651b(0x422)](_0x2f51c2[_0x1b651b(0x1e3)]);if(!_0x14f8c3[_0x1b651b(0x48c)](_0x2f8a99=>{const _0x5e6954=_0x1b651b;var _0x1da44c;return((_0x1da44c=_0x1d7020[_0x5e6954(0x320)])==null?void 0x0:_0x1da44c[_0x2f8a99[_0x5e6954(0x16e)]()])!=null;}))return;let _0x55e4f9=_0x14f8c3['flatMap'](_0xdbb25a=>Zi(_0xdbb25a[_0x1b651b(0x12c)](),_0x1d7020));if(!_0x55e4f9['length']){this[_0x1b651b(0x26e)][_0x1b651b(0x36d)](_0x2d04d4[_0x1b651b(0x435)],_0x1d7020);return;}let _0x358123=new W(),_0x14e2cd=_0x55e4f9[_0x1b651b(0x1fb)](_0x174758=>Is({'unitId':_0x174758[_0x1b651b(0x2a9)],'tableId':_0x174758['tableId'],'patches':_0x174758['patches']}));this[_0x1b651b(0x19f)]=!0x0,(async()=>{const _0x381a18=_0x1b651b;for(let _0x58f984 of _0x55e4f9){let _0x23541f=this[_0x381a18(0x448)]['getUnit'](_0x58f984[_0x381a18(0x2a9)],_0x2f51c2['UNIVER_BASE']);_0x23541f&&await this[_0x381a18(0x25f)][_0x381a18(0x42f)](Q['id'],{'unitId':_0x58f984['unitId'],'op':_0x358123['setRangeValues'](_0x23541f[_0x381a18(0x12c)](),_0x58f984[_0x381a18(0x3a6)],_0x58f984['patches']),'trigger':_0x1a1a15['id']},{'onlyLocal':!0x0});}await this[_0x381a18(0x25f)][_0x381a18(0x42f)](_0x3fc77d['id'],{'dirtyRanges':_0x14e2cd},{'onlyLocal':!0x0});})()[_0x1b651b(0x3fa)](()=>{const _0x415413=_0x1b651b;this[_0x415413(0x19f)]=!0x1,this[_0x415413(0x26e)]['markResultApplied'](_0x2d04d4[_0x415413(0x435)],_0x1d7020);});}};zs=X([Y(0x0,_0x401540),Y(0x1,_0x31ecdb),Y(0x2,_0x3d5ad9(_0x169377)),Y(0x3,_0x3d5ad9(_0x2203c4))],zs);function Bs(_0x948897){const _0x1c9300=_0x4e663c;return typeof _0x948897==_0x1c9300(0x37c)&&!!_0x948897&&_0x1c9300(0x2a9)in _0x948897&&typeof _0x948897['unitId']=='string'&&'op'in _0x948897&&Array[_0x1c9300(0x454)](_0x948897['op']);}function Vs(_0x3f4fcf){const _0x530b76=_0x4e663c;return typeof _0x3f4fcf==_0x530b76(0x37c)&&!!_0x3f4fcf&&_0x530b76(0x320)in _0x3f4fcf&&'unitOtherData'in _0x3f4fcf;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x528c5b{constructor(_0x4f353b,_0xee271d,_0x5af83a,_0x4a0614){const _0x25b375=_0x4e663c;super(),this['_injector']=_0x4f353b,this[_0x25b375(0x25f)]=_0xee271d,this['_permissionService']=_0x5af83a,this['_instanceService']=_0x4a0614,this[_0x25b375(0x3fd)][_0x25b375(0x422)](_0x2f51c2['UNIVER_BASE'])[_0x25b375(0x29f)](_0x289645=>this[_0x25b375(0x30b)](_0x289645['getUnitId']())),this['disposeWithMe'](this[_0x25b375(0x3fd)][_0x25b375(0x439)](_0x2f51c2[_0x25b375(0x1e3)])[_0x25b375(0x238)](({unit:_0x3f5f03})=>this[_0x25b375(0x30b)](_0x3f5f03[_0x25b375(0x16e)]()))),this[_0x25b375(0x4d0)](this[_0x25b375(0x25f)][_0x25b375(0x410)]((_0x2caf04,_0x5e8495)=>this['_check'](_0x2caf04,_0x5e8495))),this['disposeWithMe'](this[_0x25b375(0x3fd)][_0x25b375(0x18f)](_0x2f51c2[_0x25b375(0x1e3)])[_0x25b375(0x238)](_0x5a8152=>{const _0x281635=_0x25b375;this[_0x281635(0x41e)]['get'](_0x24deb1)[_0x281635(0x3ad)](_0x5a8152[_0x281635(0x16e)]()),Rr(this[_0x281635(0x11f)],_0x5a8152['getUnitId']());}));}[_0x4e663c(0x30b)](_0x2f7ba0){const _0x1655ae=_0x4e663c;Tr[_0x1655ae(0x29f)](_0x4bb244=>{const _0x3d47ef=_0x1655ae;let _0x1f573c=Pr(_0x2f7ba0,_0x2f7ba0,_0x4bb244);this[_0x3d47ef(0x11f)][_0x3d47ef(0x3a0)](_0x1f573c['id'])||this[_0x3d47ef(0x11f)]['addPermissionPoint'](_0x1f573c);}),this[_0x1655ae(0x41e)][_0x1655ae(0x1f4)](_0x24deb1)['initializeUnit']({'unitId':_0x2f7ba0,'objectId':_0x2f7ba0,'objectType':_0x127560['Base']});}[_0x4e663c(0x28d)](_0xa2b74,_0x38c18d){const _0xdd0f07=_0x4e663c;var _0x3cffc8;if(_0x38c18d!=null&&_0x38c18d['fromCollab']||_0x38c18d!=null&&_0x38c18d[_0xdd0f07(0x42d)])return;let _0x4ba068=tc(_0xa2b74[_0xdd0f07(0x16d)])?_0xa2b74[_0xdd0f07(0x16d)]:void 0x0;if(_0x38c18d!=null&&_0x38c18d['onlyLocal']&&_0xa2b74['id']===_0xdd0f07(0x2fa)&&(_0x4ba068==null?void 0x0:_0x4ba068[_0xdd0f07(0x47c)])===_0x1a1a15['id'])return;let _0xa562ad=Gs(_0xa2b74['id']),_0xea297c=Ws(_0x4ba068==null?void 0x0:_0x4ba068[_0xdd0f07(0x2a9)],_0x38c18d)??(_0xa562ad?(_0x3cffc8=this[_0xdd0f07(0x3fd)][_0xdd0f07(0x43f)](_0x2f51c2[_0xdd0f07(0x1e3)]))==null?void 0x0:_0x3cffc8[_0xdd0f07(0x16e)]():void 0x0);if(!_0xea297c||this[_0xdd0f07(0x3fd)]['getUnitType'](_0xea297c)!==_0x2f51c2['UNIVER_BASE'])return;if(_0xa562ad){if(!Fr(this[_0xdd0f07(0x11f)],_0xea297c,_0xea297c,_0xa562ad))throw this['_injector'][_0xdd0f07(0x1f4)](_0x355726)[_0xdd0f07(0x444)](_0xea297c),new _0x200063('Base\x20'+_0x3e9bc5[_0xa562ad]+_0xdd0f07(0x1e1));return;}if(Hs['has'](_0xa2b74['id'])||!_0xa2b74['id']['startsWith'](_0xdd0f07(0x17c))&&!_0xa2b74['id']['startsWith'](_0xdd0f07(0x423)))return;let _0x5b1fe8=this[_0xdd0f07(0x3fd)][_0xdd0f07(0x403)](_0xea297c,_0x2f51c2['UNIVER_BASE']),_0x11ce3b=_0x5b1fe8?Ks(_0x5b1fe8,_0x4ba068??{},_0xa2b74['id']):[];if(!_0x5b1fe8||!zr(this[_0xdd0f07(0x11f)],_0xea297c,_0x11ce3b))throw this[_0xdd0f07(0x41e)]['get'](_0x355726)[_0xdd0f07(0x444)](_0xea297c,_0x11ce3b),new _0x200063('Base\x20edit\x20permission\x20denied.');}};Us=X([Y(0x0,_0x3d5ad9(_0x15b253)),Y(0x1,_0x401540),Y(0x2,_0x515a1d),Y(0x3,_0x31ecdb)],Us);function Ws(_0x2a441f,_0x5a4c71){const _0x1da69=_0x4e663c;return typeof _0x2a441f==_0x1da69(0x432)?_0x2a441f:typeof(_0x5a4c71==null?void 0x0:_0x5a4c71[_0x1da69(0x2a9)])=='string'?_0x5a4c71[_0x1da69(0x2a9)]:void 0x0;}function Gs(_0x4bb70c){const _0x4a3b57=_0x4e663c;if(_0x4bb70c===_0x4a3b57(0x4ae)||_0x4bb70c===_0x4a3b57(0x460))return _0x3e9bc5[_0x4a3b57(0x278)];if(_0x4bb70c[_0x4a3b57(0x29a)](_0x4a3b57(0x189))||_0x4bb70c[_0x4a3b57(0x29a)](_0x4a3b57(0x23e)))return _0x3e9bc5[_0x4a3b57(0x27f)];}function Ks(_0x242bf4,_0x4d0259,_0x1e0c1d){const _0x5a3b93=_0x4e663c;if(_0x1e0c1d===_0x5a3b93(0x2fa)&&ec(_0x4d0259['op']))return qs(_0x242bf4,_0x4d0259['op']);let _0x471300=new Set(),_0x7ab07d=Zs(_0x4d0259,_0x5a3b93(0x291)),_0x5546f6=typeof _0x4d0259[_0x5a3b93(0x3a6)]=='string'?_0x4d0259[_0x5a3b93(0x3a6)]:_0x7ab07d[0x0];if(_0x7ab07d[_0x5a3b93(0x29f)](_0x1c0a97=>_0x471300['add'](K(_0x1c0a97))),!_0x5546f6)return[..._0x471300];let _0x5a99a2=_0x242bf4[_0x5a3b93(0x12c)]()[_0x5a3b93(0x13e)][_0x5546f6],_0x24b353=new Set(Zs(_0x4d0259,'field')),_0x4133ab=new Set(Zs(_0x4d0259,'record')),_0x3e1874=new Set(Zs(_0x4d0259,'view'));return Qs(_0x5a99a2,_0x4d0259[_0x5a3b93(0x2ee)],_0x4133ab,_0x24b353),$s(_0x4d0259,_0x24b353),_0x24b353['forEach'](_0xc8b223=>_0x471300[_0x5a3b93(0x133)](q(_0x5546f6,_0xc8b223))),_0x4133ab['forEach'](_0x116f4f=>_0x471300[_0x5a3b93(0x133)](J(_0x5546f6,_0x116f4f))),_0x3e1874[_0x5a3b93(0x29f)](_0x9f25fe=>_0x471300['add'](Mr(_0x5546f6,_0x9f25fe))),[..._0x471300];}function qs(_0x198039,_0x4a161d){const _0x5e3021=_0x4e663c;let _0x9302cc=_0x198039['getSnapshot'](),_0x40a32d=new z()[_0x5e3021(0x1d0)](_0x4a161d),_0x29fbf8=Js(_0x4a161d),_0x49bd9c=new Set();return _0x40a32d['forEach'](_0x123586=>{const _0x25414c=_0x5e3021;var _0x488239,_0x2fb35c;let {tableId:_0x2e8ac0}=_0x123586;if(!_0x2e8ac0)return;_0x49bd9c[_0x25414c(0x133)](K(_0x2e8ac0));let _0x1e8c7e=_0x9302cc['tables'][_0x2e8ac0],_0x587155=_0x123586[_0x25414c(0x1ef)]??(_0x123586[_0x25414c(0x302)]==null||_0x1e8c7e==null||(_0x488239=_0x1e8c7e[_0x25414c(0x2e1)])==null?void 0x0:_0x488239[_0x123586[_0x25414c(0x302)]]),_0x13fc27=_0x123586[_0x25414c(0x2be)]??(_0x123586['column']==null||_0x1e8c7e==null||(_0x2fb35c=_0x1e8c7e['colId'])==null?void 0x0:_0x2fb35c[_0x123586[_0x25414c(0x1cd)]]);_0x587155&&_0x49bd9c[_0x25414c(0x133)](J(_0x2e8ac0,_0x587155)),_0x13fc27&&_0x49bd9c['add'](q(_0x2e8ac0,_0x13fc27)),_0x123586[_0x25414c(0x152)]&&_0x49bd9c[_0x25414c(0x133)](Mr(_0x2e8ac0,_0x123586[_0x25414c(0x152)])),(_0x123586['reason']===_0x25414c(0x291)||_0x29fbf8[_0x25414c(0x19e)](_0x2e8ac0))&&_0x1e8c7e&&(Object['keys'](_0x1e8c7e[_0x25414c(0x45e)])[_0x25414c(0x29f)](_0x1dc0e5=>_0x49bd9c[_0x25414c(0x133)](q(_0x2e8ac0,_0x1dc0e5))),Object['keys'](_0x1e8c7e['records'])[_0x25414c(0x29f)](_0x4c2c8a=>_0x49bd9c['add'](J(_0x2e8ac0,_0x4c2c8a))),Object[_0x25414c(0x467)](_0x1e8c7e[_0x25414c(0x2ac)])[_0x25414c(0x29f)](_0x218043=>_0x49bd9c[_0x25414c(0x133)](Mr(_0x2e8ac0,_0x218043)))),_0x123586[_0x25414c(0x41c)]==='record'&&_0x1e8c7e&&Object[_0x25414c(0x467)](_0x1e8c7e['fields'])[_0x25414c(0x29f)](_0xd5b6af=>_0x49bd9c[_0x25414c(0x133)](q(_0x2e8ac0,_0xd5b6af)));}),_0x40a32d['length']===0x0&&Xs(_0x4a161d,_0x5e3021(0x33c))&&Object['keys'](_0x9302cc['tables'])['forEach'](_0x42aa98=>_0x49bd9c[_0x5e3021(0x133)](K(_0x42aa98))),[..._0x49bd9c];}function Js(_0x433c48){let _0x35954e=new Set(),_0x25fb1c=_0x379e8f=>{const _0x416335=_0x4619;Array[_0x416335(0x454)](_0x379e8f)&&_0x379e8f[_0x416335(0x29f)]((_0x355657,_0x427972)=>{const _0x2b9c7e=_0x416335;_0x355657===_0x2b9c7e(0x13e)&&typeof _0x379e8f[_0x427972+0x1]=='string'&&Ys(_0x379e8f[_0x427972+0x2])&&_0x35954e['add'](_0x379e8f[_0x427972+0x1]),_0x25fb1c(_0x355657);});};return _0x25fb1c(_0x433c48),_0x35954e;}function Ys(_0x6f31e1){const _0x160d7f=_0x4e663c;return!!_0x6f31e1&&typeof _0x6f31e1==_0x160d7f(0x37c)&&!Array[_0x160d7f(0x454)](_0x6f31e1)&&('i'in _0x6f31e1||'r'in _0x6f31e1||'p'in _0x6f31e1||'d'in _0x6f31e1||'es'in _0x6f31e1||_0x160d7f(0x441)in _0x6f31e1||'et'in _0x6f31e1);}function Xs(_0x90d4e5,_0x3c8784){return Array['isArray'](_0x90d4e5)&&_0x90d4e5['some'](_0x4a2907=>_0x4a2907===_0x3c8784||Xs(_0x4a2907,_0x3c8784));}function Zs(_0xc90fe0,_0x3b862b){let _0x1f77df=new Set(),_0x44a517=_0x3b862b+'Id',_0x1f9d31=_0x3b862b+'Ids',_0x5c290b=(_0x451d3f,_0x2ba8ab='')=>{const _0x49240b=_0x4619;typeof _0x451d3f==_0x49240b(0x432)?_0x2ba8ab===_0x44a517&&_0x1f77df[_0x49240b(0x133)](_0x451d3f):Array[_0x49240b(0x454)](_0x451d3f)?_0x2ba8ab===_0x1f9d31?_0x451d3f['forEach'](_0x19cfc3=>{const _0x39fd63=_0x49240b;typeof _0x19cfc3==_0x39fd63(0x432)&&_0x1f77df[_0x39fd63(0x133)](_0x19cfc3);}):_0x451d3f[_0x49240b(0x29f)](_0x3f48ff=>_0x5c290b(_0x3f48ff,_0x2ba8ab)):tc(_0x451d3f)&&Object[_0x49240b(0x3ee)](_0x451d3f)['forEach'](([_0x195472,_0xa9fbad])=>{const _0x3eae3a=_0x49240b;_0x195472==='id'&&_0x2ba8ab===_0x3b862b&&typeof _0xa9fbad==_0x3eae3a(0x432)?_0x1f77df[_0x3eae3a(0x133)](_0xa9fbad):_0x5c290b(_0xa9fbad,_0x195472);});};return _0x5c290b(_0xc90fe0),[..._0x1f77df];}function Qs(_0xbd392,_0x3d33ca,_0x5058c1,_0x2620a3){const _0x22e735=_0x4e663c;_0xbd392&&Array[_0x22e735(0x454)](_0x3d33ca)&&_0x3d33ca[_0x22e735(0x29f)](_0x13c436=>{const _0x2bfffd=_0x22e735;if(!tc(_0x13c436))return;let _0x7d0161=_0x13c436;if(typeof _0x7d0161[_0x2bfffd(0x302)]==_0x2bfffd(0x24a)){var _0x31c55e;let _0x92a6ef=(_0x31c55e=_0xbd392['rowId'])==null?void 0x0:_0x31c55e[_0x7d0161[_0x2bfffd(0x302)]];_0x92a6ef&&_0x5058c1['add'](_0x92a6ef);}if(typeof _0x7d0161['col']=='number'){var _0xc0eb6c;let _0x415358=(_0xc0eb6c=_0xbd392[_0x2bfffd(0x48b)])==null?void 0x0:_0xc0eb6c[_0x7d0161[_0x2bfffd(0x26f)]];_0x415358&&_0x2620a3[_0x2bfffd(0x133)](_0x415358);}});}function $s(_0x594332,_0x7773c0,_0x23c178=''){const _0x2cec62=_0x4e663c;_0x594332&&typeof _0x594332==_0x2cec62(0x37c)&&(Array[_0x2cec62(0x454)](_0x594332)?_0x594332[_0x2cec62(0x29f)](_0xf54307=>$s(_0xf54307,_0x7773c0,_0x23c178)):tc(_0x594332)&&Object[_0x2cec62(0x3ee)](_0x594332)[_0x2cec62(0x29f)](([_0x7d0a7a,_0x4cf844])=>{const _0x50dd36=_0x2cec62;_0x23c178===_0x50dd36(0x325)&&_0x7773c0[_0x50dd36(0x133)](_0x7d0a7a),$s(_0x4cf844,_0x7773c0,_0x7d0a7a);}));}function ec(_0x589170){return Array['isArray'](_0x589170);}function tc(_0x159875){const _0x354f46=_0x4e663c;return typeof _0x159875==_0x354f46(0x37c)&&!!_0x159875&&!Array[_0x354f46(0x454)](_0x159875);}const nc=_0x55d87a(_0x4e663c(0x1bb));let rc=class{constructor(_0x23cec8){this['_univerInstanceService']=_0x23cec8;}['getBase'](_0x26d68a){const _0x27608c=_0x4e663c;return this[_0x27608c(0x448)][_0x27608c(0x403)](_0x26d68a,_0x2f51c2[_0x27608c(0x1e3)])??null;}[_0x4e663c(0x279)](){const _0x22940d=_0x4e663c;return this[_0x22940d(0x448)][_0x22940d(0x422)](_0x2f51c2['UNIVER_BASE']);}[_0x4e663c(0x38e)](_0x527825){const _0x1e4b7e=_0x4e663c;return this['_univerInstanceService'][_0x1e4b7e(0x42e)](_0x2f51c2[_0x1e4b7e(0x1e3)],_0x527825);}};rc=X([Y(0x0,_0x31ecdb)],rc);const ic=_0x55d87a(_0x4e663c(0x384));var ac=class extends _0x528c5b{constructor(..._0x114f8d){const _0x3871e3=_0x4e663c;super(..._0x114f8d),G(this,_0x3871e3(0x156),new Map());}['register'](_0x28736c){const _0x5ac87e=_0x4e663c;return this[_0x5ac87e(0x156)][_0x5ac87e(0x233)](_0x28736c['type'],_0x28736c),_0x1b91c9(()=>this[_0x5ac87e(0x156)][_0x5ac87e(0x1f1)](_0x28736c[_0x5ac87e(0x111)]));}[_0x4e663c(0x1f4)](_0x3c8d03){const _0x50943f=_0x4e663c;let _0xcac2a6=this[_0x50943f(0x156)][_0x50943f(0x1f4)](_0x3c8d03);if(!_0xcac2a6)throw Error(_0x50943f(0x1a5)+_0x3c8d03+_0x50943f(0x1e7));return _0xcac2a6;}[_0x4e663c(0x363)](){const _0x594a03=_0x4e663c;return Array['from'](this[_0x594a03(0x156)][_0x594a03(0x325)]());}};const oc=[Q];let sc=class extends _0x20ec38{constructor(_0x4475d3=Ns,_0x29341e,_0x4dfe47,_0x585f83,_0x32891b,_0x3a761d){const _0x2c1993=_0x4e663c;super(),this['_config']=_0x4475d3,this[_0x2c1993(0x41e)]=_0x29341e,this['_commandService']=_0x4dfe47,this[_0x2c1993(0x448)]=_0x585f83,this[_0x2c1993(0x192)]=_0x32891b,this['_dataSyncPrimaryController']=_0x3a761d,G(this,'_baseSyncDisposables',new Map());let {..._0x209cd3}=_0x24d015({},Ns,this['_config']);this['_configService'][_0x2c1993(0x3b7)](_0x2c1993(0x17b),_0x209cd3),this['_univerInstanceService']['registerCtorForType'](_0x2f51c2['UNIVER_BASE'],_0x48913d),this[_0x2c1993(0x314)](),this[_0x2c1993(0x329)](),this['_initRegistries'](),this[_0x2c1993(0x381)]();}[_0x4e663c(0x28b)](){const _0x47c9ed=_0x4e663c;this[_0x47c9ed(0x41e)][_0x47c9ed(0x133)]([Lo]),this[_0x47c9ed(0x4d0)](this[_0x47c9ed(0x41e)][_0x47c9ed(0x1f4)](_0x401540)[_0x47c9ed(0x2ab)](Ro)),this[_0x47c9ed(0x4d0)](this[_0x47c9ed(0x41e)][_0x47c9ed(0x1f4)](_0x401540)[_0x47c9ed(0x2ab)](zo)),this[_0x47c9ed(0x4d0)](this[_0x47c9ed(0x41e)][_0x47c9ed(0x1f4)](_0x24deb1)[_0x47c9ed(0x230)](_0x127560[_0x47c9ed(0x2e8)],this[_0x47c9ed(0x41e)]['get'](Lo),Ro['id'],zo['id']));}[_0x4e663c(0x234)](){const _0x280d7e=_0x4e663c;_0x36611e(this[_0x280d7e(0x41e)],[[rc],[qr],[Rs]]),this[_0x280d7e(0x448)][_0x280d7e(0x422)](_0x2f51c2['UNIVER_BASE'])[_0x280d7e(0x29f)](_0x479ce5=>this[_0x280d7e(0x406)](_0x479ce5['getUnitId']())),_0x36611e(this['_injector'],[[zs],[Us]]);}[_0x4e663c(0x314)](){const _0x390994=_0x4e663c;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]]['forEach'](_0x286f8c=>this[_0x390994(0x41e)]['add'](_0x286f8c));}[_0x4e663c(0x329)](){const _0x1677d5=_0x4e663c;[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][_0x1677d5(0x29f)](_0x3894ee=>this[_0x1677d5(0x4d0)](this[_0x1677d5(0x25f)][_0x1677d5(0x2ab)](_0x3894ee))),oc[_0x1677d5(0x29f)](_0x9448df=>{const _0x331836=_0x1677d5;var _0x2575a6;return(_0x2575a6=this[_0x331836(0x451)])==null?void 0x0:_0x2575a6[_0x331836(0x220)](_0x9448df);});}['_initDataSync'](){const _0x2de93d=_0x4e663c;this[_0x2de93d(0x451)]&&(this[_0x2de93d(0x4d0)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2f51c2[_0x2de93d(0x1e3)])[_0x2de93d(0x238)](({unit:_0x537be7})=>{const _0x372d2c=_0x2de93d;this[_0x372d2c(0x406)](_0x537be7[_0x372d2c(0x16e)]());})),this['disposeWithMe'](this[_0x2de93d(0x448)]['getTypeOfUnitDisposed$'](_0x2f51c2[_0x2de93d(0x1e3)])[_0x2de93d(0x238)](_0x289474=>{const _0x351857=_0x2de93d;var _0x4ef3c5;(_0x4ef3c5=this[_0x351857(0x2a0)]['get'](_0x289474[_0x351857(0x16e)]()))==null||_0x4ef3c5['dispose'](),this[_0x351857(0x2a0)]['delete'](_0x289474[_0x351857(0x16e)]());})));}['_syncBaseUnit'](_0x2db990){const _0x51df4c=_0x4e663c;this[_0x51df4c(0x451)]&&!this[_0x51df4c(0x2a0)][_0x51df4c(0x19e)](_0x2db990)&&this[_0x51df4c(0x2a0)]['set'](_0x2db990,this[_0x51df4c(0x451)][_0x51df4c(0x372)](_0x2db990));}[_0x4e663c(0x33b)](){const _0x18e47f=_0x4e663c;let _0x2bec9b=this['_injector'][_0x18e47f(0x1f4)](mr);zn()[_0x18e47f(0x29f)](_0x526299=>_0x2bec9b[_0x18e47f(0x2bb)](_0x526299));let _0xab1aae=this[_0x18e47f(0x41e)][_0x18e47f(0x1f4)](ic),_0x59795e=this[_0x18e47f(0x41e)][_0x18e47f(0x1f4)](ii);$r()[_0x18e47f(0x29f)](_0xb912be=>{const _0x4c5f4d=_0x18e47f;_0xab1aae['register'](_0xb912be),_0x59795e[_0x4c5f4d(0x276)](_0xb912be);});}};G(sc,_0x4e663c(0x40d),_0x4e663c(0x479)),G(sc,_0x4e663c(0x159),js),G(sc,'version',Ms),G(sc,_0x4e663c(0x111),_0x2f51c2[_0x4e663c(0x1e3)]),sc=X([_0x526370(_0x4b1697,_0x4a7af3),Y(0x1,_0x3d5ad9(_0x15b253)),Y(0x2,_0x401540),Y(0x3,_0x31ecdb),Y(0x4,_0xcac11c),Y(0x5,_0x463169(_0x1d9f42))],sc);let cc=class extends _0x20ec38{constructor(_0x402816=Ps,_0x191a06,_0x639074,_0x443dbf,_0x599f76){const _0x42d3ef=_0x4e663c;super(),this['_config']=_0x402816,this['_injector']=_0x191a06,this['_commandService']=_0x639074,this[_0x42d3ef(0x192)]=_0x443dbf,this[_0x42d3ef(0x448)]=_0x599f76;let {..._0x375029}=_0x24d015({},Ps,this[_0x42d3ef(0x373)]);this[_0x42d3ef(0x192)][_0x42d3ef(0x3b7)](_0x42d3ef(0x2e5),_0x375029),this[_0x42d3ef(0x448)][_0x42d3ef(0x225)](_0x2f51c2[_0x42d3ef(0x1e3)],_0x48913d),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x42d3ef(0x29f)](_0x409f33=>this[_0x42d3ef(0x41e)][_0x42d3ef(0x133)](_0x409f33)),oc[_0x42d3ef(0x29f)](_0x37da72=>this[_0x42d3ef(0x4d0)](this[_0x42d3ef(0x25f)]['registerCommand'](_0x37da72)));}};G(cc,_0x4e663c(0x40d),_0x4e663c(0x4ca)),G(cc,_0x4e663c(0x159),js),G(cc,_0x4e663c(0x41d),Ms),G(cc,_0x4e663c(0x111),_0x2f51c2[_0x4e663c(0x1e3)]),cc=X([_0x526370(_0x4b1697,_0x4a7af3),Y(0x1,_0x3d5ad9(_0x15b253)),Y(0x2,_0x401540),Y(0x3,_0xcac11c),Y(0x4,_0x31ecdb)],cc);function lc(_0x173274){const _0x57800b=_0x4e663c;let _0x37330b=Cc(_0x173274[_0x57800b(0x494)]);if(!_0x37330b)return{'query':'','total':0x0,'matches':[]};let _0x3b4562=[],_0x10f8a6=[];for(let _0x565c5e=0x0;_0x565c5e<_0x173274['fieldIds'][_0x57800b(0x255)];_0x565c5e++){if(!(_0x565c5e in _0x173274[_0x57800b(0x2c5)]))continue;let _0x267697=_0x173274[_0x57800b(0x291)][_0x57800b(0x45e)][_0x173274[_0x57800b(0x2c5)][_0x565c5e]];_0x267697&&_0x10f8a6[_0x57800b(0x25c)]({'field':_0x267697,'fieldIndex':_0x565c5e});}_0x173274[_0x57800b(0x377)][_0x57800b(0x29f)]((_0x39ee2e,_0x8836c2)=>{const _0x1a8d03=_0x57800b;_0x10f8a6[_0x1a8d03(0x29f)](({field:_0x418676,fieldIndex:_0x536a70})=>{const _0x42d11b=_0x1a8d03;let _0x237126=uc(_0x39ee2e['values'][_0x418676['id']],_0x418676);if(!_0x237126)return;let _0x4709d2=Sc(_0x37330b,_0x237126[_0x42d11b(0x3ce)]);_0x4709d2<=0x0||_0x3b4562[_0x42d11b(0x25c)]({'recordId':_0x39ee2e['recordId'],'fieldId':_0x418676['id'],'fieldType':_0x418676['type'],'text':_0x237126[_0x42d11b(0x3fe)],'score':_0x4709d2,'rowIndex':_0x8836c2,'fieldIndex':_0x536a70});});}),_0x3b4562[_0x57800b(0x3db)]((_0x2f709a,_0x5d2913)=>_0x5d2913[_0x57800b(0x3d6)]-_0x2f709a[_0x57800b(0x3d6)]||_0x2f709a[_0x57800b(0x200)]-_0x5d2913['rowIndex']||_0x2f709a['fieldIndex']-_0x5d2913[_0x57800b(0x277)]);let _0xe3d6dd=_0x173274['limit']==null?_0x3b4562:_0x3b4562[_0x57800b(0x183)](0x0,Math[_0x57800b(0x251)](0x0,_0x173274[_0x57800b(0x49a)]));return{'query':_0x37330b,'total':_0x3b4562['length'],'matches':Tc(_0xe3d6dd)};}function uc(_0xd5d8f6,_0x8fe49f){const _0x12f304=_0x4e663c;let _0x3fbf98=[];for(let _0x596b3e of fc(_0xd5d8f6,_0x8fe49f)){let _0x669a60=Cc(_0x596b3e);_0x669a60&&_0x3fbf98[_0x12f304(0x25c)](_0x669a60);}return _0x3fbf98['length']?{'displayText':dc(_0xd5d8f6,_0x8fe49f),'searchTexts':wc(_0x3fbf98)}:null;}function dc(_0x751be9,_0x27533d){const _0x583646=_0x4e663c;switch(_0x27533d[_0x583646(0x111)]){case _0x5f310d[_0x583646(0x1d9)]:case _0x5f310d[_0x583646(0x3b2)]:case _0x5f310d[_0x583646(0x19d)]:return pc(_0x751be9,_0x27533d)['join'](',\x20');case _0x5f310d['Link']:return gc(_0x751be9);case _0x5f310d[_0x583646(0x14a)]:case _0x5f310d[_0x583646(0x260)]:case _0x5f310d[_0x583646(0x40c)]:return _c(_0x751be9,_0x27533d);case _0x5f310d[_0x583646(0x376)]:case _0x5f310d[_0x583646(0x144)]:return vc(_0x751be9,_0x27533d);case _0x5f310d['Progress']:return yc(_0x751be9,_0x27533d);case _0x5f310d['Checkbox']:return _0x751be9?_0x583646(0x179):_0x583646(0x172);case _0x5f310d[_0x583646(0x151)]:return bc(_0x751be9)[_0x583646(0x2e9)](',\x20');default:return xc(_0x751be9);}}function fc(_0x30cbb2,_0x5ae089){const _0x50664b=_0x4e663c;switch(_0x5ae089[_0x50664b(0x111)]){case _0x5f310d[_0x50664b(0x1d9)]:case _0x5f310d[_0x50664b(0x3b2)]:case _0x5f310d[_0x50664b(0x19d)]:{let _0x50fe50=pc(_0x30cbb2,_0x5ae089);if(Array['isArray'](_0x30cbb2)){let _0x4a1553=[..._0x50fe50];for(let _0x1f5bac=0x0;_0x1f5bac<_0x30cbb2['length'];_0x1f5bac++)_0x1f5bac in _0x30cbb2&&_0x4a1553[_0x50664b(0x25c)](String(_0x30cbb2[_0x1f5bac]));return _0x4a1553;}return _0x30cbb2==null?_0x50fe50:[..._0x50fe50,String(_0x30cbb2)];}case _0x5f310d[_0x50664b(0x3a7)]:{let _0xd0e868=hc(_0x30cbb2);return[_0xd0e868[_0x50664b(0x10f)],_0xd0e868[_0x50664b(0x282)]];}case _0x5f310d[_0x50664b(0x14a)]:case _0x5f310d['CreatedAt']:case _0x5f310d[_0x50664b(0x40c)]:return[_c(_0x30cbb2,_0x5ae089),xc(_0x30cbb2)];case _0x5f310d[_0x50664b(0x376)]:case _0x5f310d[_0x50664b(0x144)]:return[vc(_0x30cbb2,_0x5ae089),xc(_0x30cbb2)];case _0x5f310d[_0x50664b(0x46d)]:return[yc(_0x30cbb2,_0x5ae089),xc(_0x30cbb2)];case _0x5f310d['Checkbox']:return _0x30cbb2?['Checked','Yes',_0x50664b(0x415)]:[_0x50664b(0x172),'No','False'];case _0x5f310d[_0x50664b(0x151)]:return bc(_0x30cbb2);default:return[xc(_0x30cbb2)];}}function pc(_0x1c0e01,_0x4fe6cd){const _0x4d39af=_0x4e663c;var _0x5a27e4;let _0x573865=Array[_0x4d39af(0x454)]((_0x5a27e4=_0x4fe6cd['config'])==null?void 0x0:_0x5a27e4[_0x4d39af(0x17f)])?_0x4fe6cd[_0x4d39af(0x2c4)]['options']:[],_0x19610d=[];if(Array[_0x4d39af(0x454)](_0x1c0e01)){for(let _0xf6f1e3=0x0;_0xf6f1e3<_0x1c0e01[_0x4d39af(0x255)];_0xf6f1e3++){if(!(_0xf6f1e3 in _0x1c0e01))continue;let _0x46e501=String(_0x1c0e01[_0xf6f1e3]);_0x46e501&&_0x19610d[_0x4d39af(0x25c)](mc(_0x573865,_0x46e501));}return _0x19610d;}if(_0x1c0e01!=null){let _0x534cf0=String(_0x1c0e01);_0x534cf0&&_0x19610d[_0x4d39af(0x25c)](mc(_0x573865,_0x534cf0));}return _0x19610d;}function mc(_0x599a7a,_0x477205){const _0x1bf037=_0x4e663c;for(let _0x58ba77 of _0x599a7a){if(typeof _0x58ba77==_0x1bf037(0x432)&&_0x58ba77===_0x477205)return _0x58ba77;if(_0x58ba77&&typeof _0x58ba77==_0x1bf037(0x37c)){let _0x359fa8=_0x58ba77;if(String(_0x359fa8['id']??_0x359fa8[_0x1bf037(0x269)]??'')===_0x477205||String(_0x359fa8[_0x1bf037(0x269)]??'')===_0x477205)return String(_0x359fa8[_0x1bf037(0x269)]??_0x359fa8['id']??_0x477205);}}return _0x477205;}function hc(_0x47bcd5){const _0x118dcb=_0x4e663c;if(_0x47bcd5&&typeof _0x47bcd5==_0x118dcb(0x37c)&&!Array[_0x118dcb(0x454)](_0x47bcd5)){let _0x49bbb3=_0x47bcd5;return{'text':String(_0x49bbb3['text']??_0x49bbb3[_0x118dcb(0x282)]??''),'url':String(_0x49bbb3[_0x118dcb(0x282)]??'')};}return{'text':xc(_0x47bcd5),'url':xc(_0x47bcd5)};}function gc(_0x375a86){const _0x292437=_0x4e663c;let _0x251b88=hc(_0x375a86);return _0x251b88[_0x292437(0x10f)]||_0x251b88['url'];}function _c(_0x1a2747,_0x6e3541){const _0x46d256=_0x4e663c;return typeof _0x1a2747!=_0x46d256(0x24a)||!Number[_0x46d256(0x402)](_0x1a2747)?'':mn(_0x1a2747,_0x6e3541[_0x46d256(0x2c4)]);}function vc(_0x3c3a0c,_0x482e6d){const _0x125ea0=_0x4e663c;let _0xe9a360=typeof _0x3c3a0c==_0x125ea0(0x24a)?_0x3c3a0c:Number(_0x3c3a0c);return Number[_0x125ea0(0x402)](_0xe9a360)?qo(_0xe9a360,_0x482e6d[_0x125ea0(0x2c4)]):'';}function yc(_0x22f693,_0xd3e4b6){const _0x292f8d=_0x4e663c;let _0x4566c5=typeof _0x22f693==_0x292f8d(0x24a)?_0x22f693:Number(_0x22f693);return Number[_0x292f8d(0x402)](_0x4566c5)?Qo(_0x4566c5,_0xd3e4b6[_0x292f8d(0x2c4)]):'';}function bc(_0x2cc490){const _0x18b91f=_0x4e663c;return Array[_0x18b91f(0x454)](_0x2cc490)?_0x2cc490[_0x18b91f(0x1fb)](_0x3b89c6=>{const _0x95a12e=_0x18b91f;if(!_0x3b89c6||typeof _0x3b89c6!=_0x95a12e(0x37c))return[];let _0x32604a=_0x3b89c6,_0x41b3c0=String(_0x32604a[_0x95a12e(0x269)]??_0x32604a[_0x95a12e(0x282)]??'')[_0x95a12e(0x319)]();return _0x41b3c0?[_0x41b3c0]:[];}):[];}function xc(_0xdfc084){const _0x43bb3d=_0x4e663c;if(_0xdfc084==null)return'';if(typeof _0xdfc084==_0x43bb3d(0x2dc))return _0xdfc084?_0x43bb3d(0x44d):_0x43bb3d(0x300);if(typeof _0xdfc084==_0x43bb3d(0x24a))return String(_0xdfc084);if(Array['isArray'](_0xdfc084)){let _0x2d0c93=[];for(let _0x27bcc6=0x0;_0x27bcc6<_0xdfc084['length'];_0x27bcc6++){if(!(_0x27bcc6 in _0xdfc084))continue;let _0xe29b7=xc(_0xdfc084[_0x27bcc6]);_0xe29b7&&_0x2d0c93[_0x43bb3d(0x25c)](_0xe29b7);}return _0x2d0c93['join'](',\x20');}if(typeof _0xdfc084=='object'){let _0x41ad0f=_0xdfc084;return String(_0x41ad0f[_0x43bb3d(0x330)]??_0x41ad0f[_0x43bb3d(0x269)]??_0x41ad0f[_0x43bb3d(0x10f)]??_0x41ad0f[_0x43bb3d(0x282)]??'')[_0x43bb3d(0x319)]();}return String(_0xdfc084);}function Sc(_0x5a2fa7,_0x1cc492){const _0x3557e0=_0x4e663c;let _0x393e9c=0x0;for(let _0x169cdc of _0x1cc492)_0x169cdc&&(_0x169cdc===_0x5a2fa7?_0x393e9c=Math['max'](_0x393e9c,0x12c):_0x169cdc['startsWith'](_0x5a2fa7)?_0x393e9c=Math[_0x3557e0(0x251)](_0x393e9c,0xfa):_0x169cdc[_0x3557e0(0x176)](_0x5a2fa7)&&(_0x393e9c=Math[_0x3557e0(0x251)](_0x393e9c,0xc8)));return _0x393e9c;}function Cc(_0x204cc6){const _0x44a39a=_0x4e663c;return _0x204cc6[_0x44a39a(0x319)]()[_0x44a39a(0x13d)](/\s+/g,'\x20')['toLowerCase']();}function wc(_0x33e1cc){const _0x4439b3=_0x4e663c;return Array[_0x4439b3(0x40e)](new Set(_0x33e1cc));}function Tc(_0x47bfd8){const _0x113f85=_0x4e663c;let _0x3c1ba9=[];for(let {rowIndex:_0x2b84f3,fieldIndex:_0x52835d,..._0x3176db}of _0x47bfd8)_0x3c1ba9[_0x113f85(0x25c)](_0x3176db);return _0x3c1ba9;}function Ec(_0x488fca){const _0xc56141=_0x4e663c;return{'compress':!0x0,'kind':_0xc56141(0x1b9),'u':_0x488fca[_0xc56141(0x2a9)],'t':_0x488fca[_0xc56141(0x3a6)],'p':_0x488fca['patches'][_0xc56141(0x19c)](_0x3ae043=>[_0x3ae043['row'],_0x3ae043[_0xc56141(0x26f)],Ac(_0x3ae043[_0xc56141(0x401)])]),..._0x488fca['trigger']===void 0x0?{}:{'g':_0x488fca[_0xc56141(0x47c)]}};}function Dc(_0x496037){const _0x15f80b=_0x4e663c;if(Lc(_0x496037,_0x15f80b(0x1b9)),!Oc(_0x496037)){if(!Ic(_0x496037))throw Error('[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.');return _0x496037;}return{'unitId':_0x496037['u'],'tableId':_0x496037['t'],'patches':_0x496037['p'][_0x15f80b(0x19c)](([_0x576599,_0x266887,_0x24dbd0])=>({'row':_0x576599,'col':_0x266887,'value':jc(_0x24dbd0)})),..._0x496037['g']===void 0x0?{}:{'trigger':_0x496037['g']}};}function Oc(_0x20ee89){const _0x5528ec=_0x4e663c;return!Rc(_0x20ee89)||_0x20ee89['compress']!==!0x0||_0x20ee89[_0x5528ec(0x4d2)]!==_0x5528ec(0x1b9)?!0x1:typeof _0x20ee89['u']=='string'&&typeof _0x20ee89['t']==_0x5528ec(0x432)&&(_0x20ee89['g']===void 0x0||typeof _0x20ee89['g']=='string')&&Array[_0x5528ec(0x454)](_0x20ee89['p'])&&_0x20ee89['p'][_0x5528ec(0x361)](_0x839489=>Array[_0x5528ec(0x454)](_0x839489)&&_0x839489[_0x5528ec(0x255)]===0x3&&Number[_0x5528ec(0x3fc)](_0x839489[0x0])&&Number[_0x5528ec(0x3fc)](_0x839489[0x1]));}function kc(_0x5d77c9){const _0xd96452=_0x4e663c;return!Rc(_0x5d77c9)||_0x5d77c9[_0xd96452(0x129)]!==!0x0||_0x5d77c9[_0xd96452(0x4d2)]!==_0xd96452(0x488)||!Rc(_0x5d77c9[_0xd96452(0x13e)])?!0x1:Object[_0xd96452(0x325)](_0x5d77c9[_0xd96452(0x13e)])[_0xd96452(0x361)](_0x38047e=>Rc(_0x38047e)&&(_0x38047e['cd']===void 0x0||Array[_0xd96452(0x454)](_0x38047e['cd'])&&_0x38047e['cd'][_0xd96452(0x361)](_0x3b51d7=>Array['isArray'](_0x3b51d7)&&_0x3b51d7[_0xd96452(0x255)]===0x3&&Number['isInteger'](_0x3b51d7[0x0])&&Number['isInteger'](_0x3b51d7[0x1])&&Fc(_0x3b51d7[0x2]))));}function Ac(_0x430404){return Pc(_0x430404)?Mc(_0x430404):_0x430404;}function jc(_0x2c864d){return Fc(_0x2c864d)?Nc(_0x2c864d):_0x2c864d;}function Mc(_0x1998e7){return{'c':0x1,..._0x1998e7['v']===void 0x0?{}:{'v':_0x1998e7['v']},..._0x1998e7['t']!==void 0x0&&_0x1998e7['t']!==null?{'t':_0x1998e7['t']}:_0x1998e7['t']===null?{'t':null}:{},..._0x1998e7['f']!==void 0x0&&_0x1998e7['f']!==null?{'f':_0x1998e7['f']}:_0x1998e7['f']===null?{'f':null}:{},..._0x1998e7['si']!==void 0x0&&_0x1998e7['si']!==null?{'si':_0x1998e7['si']}:_0x1998e7['si']===null?{'si':null}:{},..._0x1998e7['p']!==void 0x0&&_0x1998e7['p']!==null?{'p':_0x1998e7['p']}:_0x1998e7['p']===null?{'p':null}:{}};}function Nc(_0x3ce86d){return{..._0x3ce86d['v']===void 0x0?{}:{'v':_0x3ce86d['v']},..._0x3ce86d['t']===void 0x0?{}:{'t':_0x3ce86d['t']},..._0x3ce86d['f']===void 0x0?{}:{'f':_0x3ce86d['f']},..._0x3ce86d['si']===void 0x0?{}:{'si':_0x3ce86d['si']},..._0x3ce86d['p']===void 0x0?{}:{'p':_0x3ce86d['p']}};}function Pc(_0x4dbfeb){const _0x2c640f=_0x4e663c;return!!_0x4dbfeb&&typeof _0x4dbfeb==_0x2c640f(0x37c)&&!Array[_0x2c640f(0x454)](_0x4dbfeb)&&(Object[_0x2c640f(0x4a2)][_0x2c640f(0x236)]['call'](_0x4dbfeb,'v')||Object[_0x2c640f(0x4a2)][_0x2c640f(0x236)][_0x2c640f(0x3bf)](_0x4dbfeb,'t')||Object[_0x2c640f(0x4a2)]['hasOwnProperty']['call'](_0x4dbfeb,'p')||Object[_0x2c640f(0x4a2)][_0x2c640f(0x236)]['call'](_0x4dbfeb,'f')||Object[_0x2c640f(0x4a2)][_0x2c640f(0x236)][_0x2c640f(0x3bf)](_0x4dbfeb,'si'));}function Fc(_0x48f30f){return Rc(_0x48f30f)&&_0x48f30f['c']===0x1;}function Ic(_0x241293){const _0x4d057e=_0x4e663c;return Rc(_0x241293)&&typeof _0x241293[_0x4d057e(0x2a9)]==_0x4d057e(0x432)&&typeof _0x241293['tableId']==_0x4d057e(0x432)&&(_0x241293[_0x4d057e(0x47c)]===void 0x0||typeof _0x241293[_0x4d057e(0x47c)]=='string')&&Array[_0x4d057e(0x454)](_0x241293[_0x4d057e(0x2ee)])&&_0x241293['patches'][_0x4d057e(0x361)](_0x10f581=>Rc(_0x10f581)&&Number[_0x4d057e(0x3fc)](_0x10f581[_0x4d057e(0x302)])&&Number[_0x4d057e(0x3fc)](_0x10f581['col'])&&_0x4d057e(0x401)in _0x10f581);}function Lc(_0x383b02,_0x158f6e){const _0x6d5ae6=_0x4e663c;if(Rc(_0x383b02)&&_0x383b02[_0x6d5ae6(0x129)]===!0x0){if(_0x383b02['kind']!==_0x158f6e)throw Error('[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22'+String(_0x383b02[_0x6d5ae6(0x4d2)])+'\x22.');if(!(_0x158f6e===_0x6d5ae6(0x1b9)?Oc(_0x383b02):kc(_0x383b02)))throw Error(_0x6d5ae6(0x46b)+_0x158f6e+'\x22.');}}function Rc(_0x63caf){const _0x59f9b4=_0x4e663c;return!!_0x63caf&&typeof _0x63caf==_0x59f9b4(0x37c)&&!Array[_0x59f9b4(0x454)](_0x63caf);}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,_0x350df4 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|
|
1
|
+
const _0x354fcb=_0x48d8;(function(_0x14c018,_0x5b1382){const _0x23cbd7=_0x48d8,_0x123ec2=_0x14c018();while(!![]){try{const _0x4b267c=-parseInt(_0x23cbd7(0x48a))/0x1+parseInt(_0x23cbd7(0x323))/0x2*(parseInt(_0x23cbd7(0x21d))/0x3)+parseInt(_0x23cbd7(0x42a))/0x4*(-parseInt(_0x23cbd7(0x2ed))/0x5)+-parseInt(_0x23cbd7(0x2e6))/0x6+parseInt(_0x23cbd7(0x495))/0x7*(parseInt(_0x23cbd7(0x34f))/0x8)+-parseInt(_0x23cbd7(0x529))/0x9+parseInt(_0x23cbd7(0x32f))/0xa*(parseInt(_0x23cbd7(0x412))/0xb);if(_0x4b267c===_0x5b1382)break;else _0x123ec2['push'](_0x123ec2['shift']());}catch(_0x3256cc){_0x123ec2['push'](_0x123ec2['shift']());}}}(_0x2357,0x947d9));import{BASE_RECORD_ID_FIELD_ID as _0x3b44b5,BaseConditionalColorOperator as _0x79efc5,BaseConditionalColorTarget as _0x54bac1,BaseConditionalDateMode as _0x173d28,BaseDataModel as _0x2563fc,BaseFieldType as _0x19bf94,BaseFilterConjunction as _0x12daa6,BaseHierarchyInvalidReason as _0x3f9b5e,BaseRecordLinkRole as _0x170c14,BaseSortDirection as _0x7258f,BaseViewType as _0x2b4a2c,CellValueType as _0x149f0a,ColorKit as _0x3d2caa,CommandType as _0x3e23cf,CustomCommandExecutionError as _0x1cfc9b,DateSystem as _0x4547e4,DependentOn as _0x1bcd22,Disposable as _0x1589db,ErrorService as _0x359424,ICommandService as _0x3ff846,IConfigService as _0x14686f,IPermissionService as _0x211d15,IResourceManagerService as _0xee5072,IUndoRedoService as _0x5153d9,IUniverInstanceService as _0x3414e2,Inject as _0x42d70a,Injector as _0xcce289,JSON1 as _0x370803,JSONX as _0x426ad9,ObjectMatrix as _0x4bc349,ObjectPermissionRuleModel as _0x4a896e,ObjectPermissionService as _0x1e71b2,Optional as _0x560f5b,PermissionStatus as _0x15f2b3,Plugin as _0xf65dbf,Tools as _0x30f9db,UniverInstanceType as _0x28d752,allocateBaseFormulaTableName as _0x3ec76b,assertBaseTableRecordIdentity as _0x136f40,createBaseFormulaTableNameMap as _0x49362b,createBaseRecordIdField as _0x5c3ee9,createIdentifier as _0x5d0ae0,dateKit as _0x5cea60,excelDateTimeSerial as _0xa41fad,excelSerialToDateTime as _0x156e38,generateRandomId as _0x3ba5f0,getBaseFormulaTableName as _0x5d9833,isBaseRecordIdFieldName as _0x37b436,isValidBaseRecordId as _0x3605be,merge as _0x18cc98,nameCharacterCheck as _0x5b975c,numfmt as _0x5e5ce5,regexp as _0x1ae19d,sequenceExecute as _0x47a83f,toDisposable as _0x5b4066,touchDependencies as _0x137ee0}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x4f3c26,IActiveDirtyManagerService as _0x35d62c,RemoveSuperTableMutation as _0x5d6472,SetFormulaCalculationResultMutation as _0x2d710f,SetSuperTableMutation as _0x33aa29,SetTriggerFormulaCalculationStartMutation as _0x46501c,UniverProFormulaEnginePlugin as _0x36289a,refactorFormulaUnitQualifier as _0x5981a8}from'@univerjs-pro/engine-formula';import{UnitAction as _0x391870,UnitObject as _0x56e21f}from'@univerjs/protocol';import{UniverLicensePlugin as _0x534d74}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x274988}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x1a1f33,FormulaResultApplicationType as _0x2001ae}from'@univerjs/engine-formula';function N(_0x1b83d5){const _0x77a462=_0x48d8;let _0x483dd8=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1ab)],_0x3caf20=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x215)],_0x23e744=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x1e9)],_0x230351=_0x1b83d5['config'][_0x77a462(0x28e)],_0x43e002=_0x1b83d5[_0x77a462(0x342)][_0x77a462(0x274)];return typeof _0x483dd8!='string'||!_0x483dd8||typeof _0x3caf20!=_0x77a462(0x364)||_0x23e744!==void 0x0&&(typeof _0x23e744!=_0x77a462(0x471)||!_0x23e744)||_0x43e002!==void 0x0&&_0x43e002!==_0x170c14[_0x77a462(0x3a0)]||_0x230351!==void 0x0&&(!Array[_0x77a462(0x354)](_0x230351)||_0x230351[_0x77a462(0x257)](_0x545c8e=>typeof _0x545c8e!=_0x77a462(0x471)||!_0x545c8e)||new Set(_0x230351)['size']!==_0x230351[_0x77a462(0x458)])?null:{'targetTableId':_0x483dd8,'multiple':_0x3caf20,..._0x23e744?{'displayFieldId':_0x23e744}:{},..._0x230351?{'pickerFieldIds':[..._0x230351]}:{},..._0x43e002?{'relationRole':_0x43e002}:{}};}function Le(_0x268bd0){const _0xc3b165=_0x48d8;return typeof _0x268bd0!=_0xc3b165(0x471)||_0x268bd0===''?[]:_0x268bd0['split'](',');}function Re(_0x5b15c1){const _0x29cd03=_0x48d8;return Array[_0x29cd03(0x4dd)](new Set(_0x5b15c1))[_0x29cd03(0x4b5)](',');}function ze(_0x2cbe7a,_0x1d6e8e){const _0x350bb6=_0x48d8;if(typeof _0x2cbe7a!=_0x350bb6(0x471))return{'valid':!0x1,'reason':_0x350bb6(0x3ea)};if(_0x2cbe7a==='')return{'valid':!0x0};let _0x172c9b=_0x2cbe7a[_0x350bb6(0x1c5)](',');return!_0x1d6e8e&&_0x172c9b[_0x350bb6(0x458)]>0x1?{'valid':!0x1,'reason':_0x350bb6(0x404)}:_0x172c9b[_0x350bb6(0x257)](_0x1cea61=>!_0x3605be(_0x1cea61))||new Set(_0x172c9b)[_0x350bb6(0x473)]!==_0x172c9b[_0x350bb6(0x458)]||Re(_0x172c9b)!==_0x2cbe7a?{'valid':!0x1,'reason':_0x350bb6(0x3ec)}:{'valid':!0x0};}function Be(_0x101a62,_0x27ecee){const _0x30b013=_0x48d8;if(_0x27ecee[_0x30b013(0x33a)]!==_0x19bf94[_0x30b013(0x2bd)])return{'valid':!0x0};let _0x26dcc1=N(_0x27ecee),_0x2d46fe=_0x26dcc1?_0x101a62[_0x30b013(0x2ba)][_0x26dcc1[_0x30b013(0x1ab)]]:void 0x0;if(!_0x26dcc1||!_0x2d46fe)return{'valid':!0x1,'reason':_0x30b013(0x23c)};let _0x13e60c=[..._0x26dcc1[_0x30b013(0x1e9)]?[_0x26dcc1[_0x30b013(0x1e9)]]:[],..._0x26dcc1[_0x30b013(0x28e)]??[]][_0x30b013(0x22f)](_0x2082e0=>{const _0x5f537c=_0x30b013;let _0x5e01e4=_0x2d46fe['fields'][_0x2082e0];return!_0x5e01e4||_0x5e01e4[_0x5f537c(0x1cb)]===!0x0||_0x5e01e4[_0x5f537c(0x33a)]===_0x19bf94[_0x5f537c(0x44f)];});return _0x13e60c?{'valid':!0x1,'reason':'[RecordLink]:\x20display\x20field\x20\x22'+_0x13e60c+_0x30b013(0x3c0)}:{'valid':!0x0};}function Ve(_0x4227bd,_0x3c36d0,_0x3c0bce,_0x4f91ca={}){const _0x22a23c=_0x48d8;let _0x496096=N(_0x3c36d0);if(_0x3c36d0[_0x22a23c(0x33a)]!==_0x19bf94[_0x22a23c(0x2bd)]||!_0x496096)return{'valid':!0x1,'reason':_0x22a23c(0x436)};let _0x3dcbef=ze(_0x3c0bce,_0x496096[_0x22a23c(0x215)]);if(!_0x3dcbef[_0x22a23c(0x35c)]||_0x4f91ca[_0x22a23c(0x4ed)])return _0x3dcbef;let _0x23173c=_0x4227bd[_0x22a23c(0x2ba)][_0x496096['targetTableId']];if(!_0x23173c)return{'valid':!0x1,'reason':_0x22a23c(0x23c)};let _0x57feba=Le(_0x3c0bce)[_0x22a23c(0x22f)](_0x35e12d=>!_0x23173c['records'][_0x35e12d]);return _0x57feba?{'valid':!0x1,'reason':_0x22a23c(0x4e3)+_0x57feba+'\x22\x20does\x20not\x20exist.'}:{'valid':!0x0};}function He(_0x3e67a7,_0x41f9ba){const _0x2ba1ea=_0x48d8;return Object['values'](_0x3e67a7[_0x2ba1ea(0x2ba)])[_0x2ba1ea(0x2a2)](_0x1bfd18=>Object[_0x2ba1ea(0x1da)](_0x1bfd18[_0x2ba1ea(0x480)])[_0x2ba1ea(0x2a2)](_0x4847f8=>{const _0x3ace01=_0x2ba1ea;let _0x398de2=_0x4847f8['type']===_0x19bf94['RecordLink']?N(_0x4847f8):null;return(_0x398de2==null?void 0x0:_0x398de2[_0x3ace01(0x1ab)])===_0x41f9ba?[{'tableId':_0x1bfd18['id'],'fieldId':_0x4847f8['id']}]:[];}));}const Ue=0x5,We='__base_hierarchy_parent__';let Ge=function(_0x4be870){const _0x34ee5c=_0x48d8;return _0x4be870[_0x34ee5c(0x420)]=_0x34ee5c(0x4a7),_0x4be870[_0x34ee5c(0x173)]=_0x34ee5c(0x33b),_0x4be870[_0x34ee5c(0x47b)]=_0x34ee5c(0x4e2),_0x4be870[_0x34ee5c(0x270)]='cycle',_0x4be870['MaxDepth']='maxDepth',_0x4be870[_0x34ee5c(0x3ad)]=_0x34ee5c(0x265),_0x4be870;}({});var P=class extends Error{constructor(_0x13fca8,_0x561d74=_0x354fcb(0x263)+_0x13fca8){const _0x40e87b=_0x354fcb;super(_0x561d74),this[_0x40e87b(0x286)]=_0x13fca8,this['name']='BaseHierarchyError';}};let Ke=function(_0x3ad43f){const _0x272854=_0x354fcb;return _0x3ad43f['UI']='ui',_0x3ad43f['Facade']=_0x272854(0x295),_0x3ad43f[_0x272854(0x3e2)]=_0x272854(0x4c7),_0x3ad43f[_0x272854(0x344)]=_0x272854(0x37e),_0x3ad43f[_0x272854(0x264)]='redo',_0x3ad43f[_0x272854(0x4d5)]=_0x272854(0x353),_0x3ad43f;}({});function F(_0x51ad2f,_0x18bbb6){const _0x2a57ac=_0x354fcb;if(!_0x18bbb6)return!0x1;let _0x2078e7=_0x51ad2f['fields'][_0x18bbb6];if(!_0x2078e7||_0x2078e7[_0x2a57ac(0x33a)]!==_0x19bf94[_0x2a57ac(0x2bd)])return!0x1;let _0x1049ba=N(_0x2078e7);return _0x1049ba?_0x1049ba[_0x2a57ac(0x1ab)]===_0x51ad2f['id']&&_0x1049ba[_0x2a57ac(0x215)]===!0x1:!0x1;}function qe(_0xe20b6c){const _0x9247e0=_0x354fcb;return[..._0xe20b6c['fieldOrder'],...Object[_0x9247e0(0x51b)](_0xe20b6c[_0x9247e0(0x480)])[_0x9247e0(0x397)](_0x3ddf28=>!_0xe20b6c[_0x9247e0(0x1e1)][_0x9247e0(0x231)](_0x3ddf28))['sort']()][_0x9247e0(0x22f)](_0x1b3c20=>{const _0x1428b5=_0x9247e0;var _0x258498;return F(_0xe20b6c,_0x1b3c20)?((_0x258498=N(_0xe20b6c[_0x1428b5(0x480)][_0x1b3c20]))==null?void 0x0:_0x258498[_0x1428b5(0x274)])===_0x170c14[_0x1428b5(0x3a0)]:!0x1;})??null;}function Je(_0x2df4d8){const _0x2d89a9=_0x354fcb;let _0x319d25=qe(_0x2df4d8);if(_0x319d25)return _0x319d25;let _0x25dc72=We,_0x503111=0x2;for(;_0x2df4d8[_0x2d89a9(0x480)][_0x25dc72];)_0x25dc72=We+'_'+_0x503111++;return _0x25dc72;}function Ye(_0x2a8c2a,_0x13c0fa=Je(_0x2a8c2a),_0x498dd7=_0x354fcb(0x44b)){const _0x194fbe=_0x354fcb;return{'id':_0x13c0fa,'name':_0x498dd7,'type':_0x19bf94[_0x194fbe(0x2bd)],'config':{'targetTableId':_0x2a8c2a['id'],'multiple':!0x1,'displayFieldId':_0x2a8c2a['primaryFieldId'],'pickerFieldIds':[_0x2a8c2a[_0x194fbe(0x4cf)]],'relationRole':_0x170c14[_0x194fbe(0x3a0)]}};}function Xe(_0x4f65c1){let _0xdd503e=qe(_0x4f65c1);return _0xdd503e?[_0xdd503e]:[];}function Ze(_0x1710b0,_0xe482a2){const _0x40c6a9=_0x354fcb;let _0x576bc1=[...Xe(_0x1710b0)][_0x40c6a9(0x397)](_0x5a419a=>_0xe482a2[_0x40c6a9(0x257)](_0x181ece=>Object[_0x40c6a9(0x32b)]['hasOwnProperty'][_0x40c6a9(0x331)](_0x181ece[_0x40c6a9(0x1da)],_0x5a419a)));if(!_0x576bc1[_0x40c6a9(0x458)])return[];let _0x167b9={..._0x1710b0['records']};_0xe482a2['forEach'](_0x3f1033=>{const _0x1d4aa2=_0x40c6a9;let _0x59a4fe=_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]];_0x59a4fe&&(_0x167b9[_0x3f1033[_0x1d4aa2(0x4bb)]]={..._0x59a4fe,'values':{..._0x59a4fe[_0x1d4aa2(0x1da)],..._0x3f1033[_0x1d4aa2(0x1da)]}});});let _0x23b45a={..._0x1710b0,'records':_0x167b9},_0xa32648=[];return _0x576bc1[_0x40c6a9(0x461)](_0x4df01d=>{const _0x440053=_0x40c6a9;let _0x7b3f82=tt(_0x1710b0,_0x4df01d),_0x3d6de2=tt(_0x23b45a,_0x4df01d);for(let [_0x588e49,_0x4a432]of _0x3d6de2[_0x440053(0x243)]){let _0x155f44=_0xe482a2[_0x440053(0x257)](_0x22b0fa=>_0x22b0fa[_0x440053(0x4bb)]===_0x588e49&&Object[_0x440053(0x32b)][_0x440053(0x42f)]['call'](_0x22b0fa[_0x440053(0x1da)],_0x4df01d));if(_0x7b3f82['invalidReasonByRecordId'][_0x440053(0x4a8)](_0x588e49)!==_0x4a432||_0x155f44)throw new P($e(_0x4a432));}_0xe482a2[_0x440053(0x461)](_0x1e3c17=>{const _0x431dca=_0x440053;if(!Object[_0x431dca(0x32b)][_0x431dca(0x42f)][_0x431dca(0x331)](_0x1e3c17['values'],_0x4df01d))return;let _0x324725=_0x7b3f82[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17['recordId'])??null,_0x55b7a5=_0x3d6de2[_0x431dca(0x36e)][_0x431dca(0x4a8)](_0x1e3c17[_0x431dca(0x4bb)])??null;_0x324725!==_0x55b7a5&&_0xa32648[_0x431dca(0x1f3)]({'tableId':_0x1710b0['id'],'fieldId':_0x4df01d,'recordId':_0x1e3c17[_0x431dca(0x4bb)],'oldParentRecordId':_0x324725,'parentRecordId':_0x55b7a5});});}),_0xa32648;}function Qe(_0x4dc622,_0x365b08){const _0x5e4a26=_0x354fcb;let _0x6ea3c=_0x365b08[_0x5e4a26(0x29b)](_0x5ce93d=>_0x5ce93d['id']);if(new Set(_0x6ea3c)[_0x5e4a26(0x473)]!==_0x6ea3c['length']||_0x6ea3c['some'](_0x7c3952=>_0x4dc622[_0x5e4a26(0x45a)][_0x7c3952]))return[];let _0x293c95=Xe(_0x4dc622),_0xd9895c=_0x293c95[_0x5e4a26(0x458)]?null:Je(_0x4dc622),_0x27f219=[..._0x293c95,..._0xd9895c&&_0x365b08['some'](_0x3c6499=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x3c6499[_0x5e4a26(0x1da)],_0xd9895c))?[_0xd9895c]:[]]['filter'](_0x74737c=>_0x365b08[_0x5e4a26(0x257)](_0x372523=>Object[_0x5e4a26(0x32b)][_0x5e4a26(0x42f)][_0x5e4a26(0x331)](_0x372523[_0x5e4a26(0x1da)],_0x74737c)));if(!_0x27f219[_0x5e4a26(0x458)])return[];let _0x32087e={..._0x4dc622,'records':{..._0x4dc622[_0x5e4a26(0x45a)],...Object[_0x5e4a26(0x2e8)](_0x365b08[_0x5e4a26(0x29b)](_0x3fb6a5=>[_0x3fb6a5['id'],_0x3fb6a5]))},'recordOrder':[..._0x4dc622[_0x5e4a26(0x22d)]??[],..._0x365b08[_0x5e4a26(0x29b)](_0x1bada3=>_0x1bada3['id'])]},_0x5864cb=[];return _0x27f219['forEach'](_0x2ebd84=>{const _0x24cb3f=_0x5e4a26;let _0x5d50f7=tt(_0x32087e,_0x2ebd84);_0x365b08[_0x24cb3f(0x461)](_0xeb6c0=>{const _0x57ceab=_0x24cb3f;let _0x879faa=_0x5d50f7[_0x57ceab(0x243)]['get'](_0xeb6c0['id']);if(_0x879faa)throw new P($e(_0x879faa));let _0x559bbf=_0x5d50f7[_0x57ceab(0x36e)][_0x57ceab(0x4a8)](_0xeb6c0['id'])??null;_0x559bbf&&_0x5864cb[_0x57ceab(0x1f3)]({'tableId':_0x4dc622['id'],'fieldId':_0x2ebd84,'recordId':_0xeb6c0['id'],'oldParentRecordId':null,'parentRecordId':_0x559bbf});});}),_0x5864cb;}function $e(_0x3d7907){const _0x58b07c=_0x354fcb;switch(_0x3d7907){case _0x3f9b5e[_0x58b07c(0x1a2)]:return _0x58b07c(0x33b);case _0x3f9b5e[_0x58b07c(0x47b)]:return'selfParent';case _0x3f9b5e[_0x58b07c(0x270)]:return _0x58b07c(0x363);case _0x3f9b5e[_0x58b07c(0x3ca)]:return _0x58b07c(0x228);}}function et(_0x260145,_0xfbbbe0){const _0x4ea0f7=_0x354fcb;let _0x2d07c6=new Set(_0xfbbbe0),_0x5d3097=Xe(_0x260145);return Object[_0x4ea0f7(0x1da)](_0x260145['records'])[_0x4ea0f7(0x2a2)](_0x7bae6b=>_0x2d07c6[_0x4ea0f7(0x23f)](_0x7bae6b['id'])?[]:Array[_0x4ea0f7(0x4dd)](_0x5d3097)[_0x4ea0f7(0x2a2)](_0x482141=>{const _0x4fe4f4=_0x4ea0f7;let _0x347cbf=Le(_0x7bae6b['values'][_0x482141])[0x0]??null;return _0x347cbf&&_0x2d07c6[_0x4fe4f4(0x23f)](_0x347cbf)?[{'tableId':_0x260145['id'],'fieldId':_0x482141,'recordId':_0x7bae6b['id'],'oldParentRecordId':_0x347cbf,'parentRecordId':null}]:[];}));}function tt(_0x46f903,_0xdc4986,_0x3f01e6=_0x46f903[_0x354fcb(0x22d)]??Object[_0x354fcb(0x51b)](_0x46f903['records'])){const _0x1e22db=_0x354fcb;if((_0x46f903[_0x1e22db(0x480)][_0xdc4986]||_0xdc4986!==Je(_0x46f903))&&!F(_0x46f903,_0xdc4986))throw Error(_0x1e22db(0x2dd)+_0xdc4986+_0x1e22db(0x1f1));let _0x1d7344=at(_0x46f903,_0x3f01e6),_0x452be3=new Map(),_0x4b1151=new Map();for(let _0x2860f7 of _0x1d7344){var _0x21c3c3;let _0x42ee2=Le((_0x21c3c3=_0x46f903[_0x1e22db(0x45a)][_0x2860f7])==null?void 0x0:_0x21c3c3[_0x1e22db(0x1da)][_0xdc4986])[0x0]??null;_0x42ee2?_0x42ee2===_0x2860f7?(_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e['SelfParent'])):_0x46f903['records'][_0x42ee2]?_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,_0x42ee2):(_0x452be3['set'](_0x2860f7,null),_0x4b1151[_0x1e22db(0x1a1)](_0x2860f7,_0x3f9b5e[_0x1e22db(0x1a2)])):_0x452be3[_0x1e22db(0x1a1)](_0x2860f7,null);}ot(_0x452be3,_0x4b1151,_0x1d7344),st(_0x452be3,_0x4b1151,_0x1d7344);let _0x45723e=new Map(_0x1d7344[_0x1e22db(0x29b)]((_0x258430,_0x21b053)=>[_0x258430,_0x21b053])),_0x44fa53=new Map();for(let _0x53d107 of _0x1d7344){let _0x59fdbf=_0x452be3[_0x1e22db(0x4a8)](_0x53d107)??null,_0x4fc43a=_0x44fa53[_0x1e22db(0x4a8)](_0x59fdbf)??[];_0x4fc43a['push'](_0x53d107),_0x44fa53[_0x1e22db(0x1a1)](_0x59fdbf,_0x4fc43a);}_0x44fa53[_0x1e22db(0x461)](_0xa07234=>_0xa07234['sort']((_0x5c1fdd,_0x4dee8e)=>(_0x45723e['get'](_0x5c1fdd)??0x0)-(_0x45723e[_0x1e22db(0x4a8)](_0x4dee8e)??0x0)));let _0x4c273e=_0x44fa53[_0x1e22db(0x4a8)](null)??[],_0x18e716=new Map(),_0x55680d=new Map(),_0x50995e=[],_0x5814db=(_0x5e2b94,_0x16f5be)=>{const _0x35fc6b=_0x1e22db;_0x18e716[_0x35fc6b(0x1a1)](_0x5e2b94,_0x16f5be),_0x50995e['push'](_0x5e2b94);let _0x47033a=0x0;for(let _0x1ff62a of _0x44fa53['get'](_0x5e2b94)??[])_0x47033a=Math[_0x35fc6b(0x1b3)](_0x47033a,0x1+_0x5814db(_0x1ff62a,_0x16f5be+0x1));return _0x55680d['set'](_0x5e2b94,_0x47033a),_0x47033a;};return _0x4c273e[_0x1e22db(0x461)](_0x2554f6=>_0x5814db(_0x2554f6,0x0)),{'fieldId':_0xdc4986,'parentByRecordId':_0x452be3,'childrenByParentId':_0x44fa53,'depthByRecordId':_0x18e716,'subtreeHeightByRecordId':_0x55680d,'invalidReasonByRecordId':_0x4b1151,'rootRecordIds':_0x4c273e,'orderedRecordIds':_0x50995e};}function nt(_0x1f1b45,_0x3ae769,_0x34ab72=new Set(_0x3ae769[_0x354fcb(0x29b)](_0x5c5efa=>_0x5c5efa[_0x354fcb(0x4bb)]))){const _0x6d71cd=_0x354fcb;let _0xd64451=new Set(_0x34ab72);for(let _0x28499c of _0x34ab72){let _0x3c5ef6=_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x28499c)??null;for(;_0x3c5ef6;)_0xd64451[_0x6d71cd(0x35e)](_0x3c5ef6),_0x3c5ef6=_0x1f1b45[_0x6d71cd(0x36e)][_0x6d71cd(0x4a8)](_0x3c5ef6)??null;}let _0x879cdd=new Map(_0x3ae769['map'](_0x950456=>[_0x950456['recordId'],_0x950456])),_0xfc9f29=_0x1f1b45[_0x6d71cd(0x1a3)][_0x6d71cd(0x397)](_0x330e2a=>_0xd64451['has'](_0x330e2a)),_0x148631=_0xfc9f29[_0x6d71cd(0x2a2)](_0xf29d89=>{let _0x53a751=_0x879cdd['get'](_0xf29d89);return _0x53a751?[_0x53a751]:[];}),_0x5c8450={};for(let _0x28d485=0x0;_0x28d485<_0xfc9f29[_0x6d71cd(0x458)];_0x28d485++){let _0x295a7d=_0xfc9f29[_0x28d485];_0x5c8450[_0x295a7d]={'recordId':_0x295a7d,'parentRecordId':_0x1f1b45['parentByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??null,'depth':_0x1f1b45[_0x6d71cd(0x3ff)][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'directChildCount':(_0x1f1b45['childrenByParentId']['get'](_0x295a7d)??[])['length'],'subtreeHeight':_0x1f1b45['subtreeHeightByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)??0x0,'subtreeEndIndex':_0x28d485,'invalidReason':_0x1f1b45['invalidReasonByRecordId'][_0x6d71cd(0x4a8)](_0x295a7d)};}let _0x1517c4=[];for(let _0x2262d0=0x0;_0x2262d0<_0xfc9f29[_0x6d71cd(0x458)];_0x2262d0++){let _0x3c73d8=_0xfc9f29[_0x2262d0],_0x3582ae=_0x5c8450[_0x3c73d8][_0x6d71cd(0x18e)];for(;_0x1517c4[_0x6d71cd(0x458)]&&_0x1517c4[_0x1517c4[_0x6d71cd(0x458)]-0x1][_0x6d71cd(0x18e)]>=_0x3582ae;){let _0x46ac08=_0x1517c4[_0x6d71cd(0x1a5)]();_0x5c8450[_0x46ac08[_0x6d71cd(0x4bb)]]['subtreeEndIndex']=_0x2262d0-0x1;}_0x1517c4[_0x6d71cd(0x1f3)]({'recordId':_0x3c73d8,'depth':_0x3582ae});}return _0x1517c4[_0x6d71cd(0x461)](({recordId:_0xa8e6f9})=>{const _0xd6daaf=_0x6d71cd;_0x5c8450[_0xa8e6f9]['subtreeEndIndex']=_0xfc9f29[_0xd6daaf(0x458)]-0x1;}),{'rows':_0x148631,'hierarchy':{'fieldId':_0x1f1b45[_0x6d71cd(0x46e)],'rootRecordIds':_0x1f1b45[_0x6d71cd(0x1b5)][_0x6d71cd(0x397)](_0x11bc19=>_0xd64451[_0x6d71cd(0x23f)](_0x11bc19)),'orderedRecordIds':_0xfc9f29,'nodes':_0x5c8450}};}function rt(_0x2c46e7,_0x328b1d){const _0x336543=_0x354fcb;if(!_0x2c46e7[_0x336543(0x51a)]||!(_0x328b1d!=null&&_0x328b1d[_0x336543(0x473)]))return _0x2c46e7[_0x336543(0x490)];let _0x29584b=[],_0x1b4bd0=0x0;for(;_0x1b4bd0<_0x2c46e7['rows'][_0x336543(0x458)];){let _0x4cf535=_0x2c46e7['rows'][_0x1b4bd0];_0x29584b['push'](_0x4cf535);let _0x4a9393=_0x2c46e7[_0x336543(0x51a)][_0x336543(0x3fc)][_0x4cf535[_0x336543(0x4bb)]];_0x1b4bd0=_0x328b1d[_0x336543(0x23f)](_0x4cf535['recordId'])&&_0x4a9393?_0x4a9393[_0x336543(0x4ca)]+0x1:_0x1b4bd0+0x1;}return _0x29584b;}function it(_0x1d54eb,_0x3f128a,_0x4563a2){const _0x20b196=_0x354fcb;if(!_0x4563a2)return{'valid':!0x0};if(_0x3f128a===_0x4563a2)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x47b)]};let _0x2ad891=_0x4563a2;for(;_0x2ad891;){if(_0x2ad891===_0x3f128a)return{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x270)]};_0x2ad891=_0x1d54eb[_0x20b196(0x36e)]['get'](_0x2ad891)??null;}return(_0x1d54eb['depthByRecordId'][_0x20b196(0x4a8)](_0x4563a2)??0x0)+0x1+(_0x1d54eb['subtreeHeightByRecordId'][_0x20b196(0x4a8)](_0x3f128a)??0x0)>=0x5?{'valid':!0x1,'reason':_0x3f9b5e[_0x20b196(0x3ca)]}:{'valid':!0x0};}function at(_0x174ad5,_0x59b925){const _0x2eecdf=_0x354fcb;let _0x33db10=new Set(),_0x136c88=[];for(let _0x6c711f of _0x59b925)_0x174ad5['records'][_0x6c711f]&&!_0x33db10[_0x2eecdf(0x23f)](_0x6c711f)&&(_0x33db10[_0x2eecdf(0x35e)](_0x6c711f),_0x136c88['push'](_0x6c711f));return Object['keys'](_0x174ad5[_0x2eecdf(0x45a)])[_0x2eecdf(0x3db)]()[_0x2eecdf(0x461)](_0x2a55a7=>{const _0x49513f=_0x2eecdf;_0x33db10[_0x49513f(0x23f)](_0x2a55a7)||_0x136c88['push'](_0x2a55a7);}),_0x136c88;}function ot(_0x13650d,_0x1ddcaa,_0x24d18d){const _0x27b35f=_0x354fcb;let _0x16327c=new Set();for(let _0x1dd87e of _0x24d18d){if(_0x16327c[_0x27b35f(0x23f)](_0x1dd87e))continue;let _0x2d0a49=[],_0x914088=new Map(),_0x3767bf=_0x1dd87e;for(;_0x3767bf&&!_0x16327c[_0x27b35f(0x23f)](_0x3767bf);){let _0x46002c=_0x914088[_0x27b35f(0x4a8)](_0x3767bf);if(_0x46002c!=null){let _0x23cbf2=[..._0x2d0a49[_0x27b35f(0x192)](_0x46002c)][_0x27b35f(0x3db)]()[_0x27b35f(0x1a5)]();_0x13650d[_0x27b35f(0x1a1)](_0x23cbf2,null),_0x1ddcaa[_0x27b35f(0x1a1)](_0x23cbf2,_0x3f9b5e[_0x27b35f(0x270)]);break;}_0x914088[_0x27b35f(0x1a1)](_0x3767bf,_0x2d0a49[_0x27b35f(0x458)]),_0x2d0a49[_0x27b35f(0x1f3)](_0x3767bf),_0x3767bf=_0x13650d['get'](_0x3767bf)??null;}_0x2d0a49[_0x27b35f(0x461)](_0xe79556=>_0x16327c[_0x27b35f(0x35e)](_0xe79556));}}function st(_0x552bd3,_0x4e1875,_0x401111){const _0x26109c=_0x354fcb;let _0x23a337=new Map(),_0x314047=_0x2a2789=>{const _0x2c27f1=_0x48d8;let _0x530355=_0x23a337[_0x2c27f1(0x4a8)](_0x2a2789);if(_0x530355!=null)return _0x530355;let _0x2e186e=_0x552bd3[_0x2c27f1(0x4a8)](_0x2a2789)??null;if(!_0x2e186e)return _0x23a337[_0x2c27f1(0x1a1)](_0x2a2789,0x0),0x0;let _0x43bfad=_0x314047(_0x2e186e)+0x1;return _0x43bfad>=0x5?(_0x552bd3[_0x2c27f1(0x1a1)](_0x2a2789,null),_0x4e1875[_0x2c27f1(0x1a1)](_0x2a2789,_0x3f9b5e[_0x2c27f1(0x3ca)]),_0x23a337['set'](_0x2a2789,0x0),0x0):(_0x23a337['set'](_0x2a2789,_0x43bfad),_0x43bfad);};_0x401111[_0x26109c(0x461)](_0x314047);}let ct=0x0;function lt(){const _0x20b3c1=_0x354fcb;if(globalThis[_0x20b3c1(0x4a1)]===!0x0)return!0x0;try{let _0x72253=typeof location>'u'?'':location[_0x20b3c1(0x32c)],_0x364ea6=new URLSearchParams(_0x72253);if(_0x364ea6[_0x20b3c1(0x4a8)]('basePerf')==='1'||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x33c))===_0x20b3c1(0x468)||_0x364ea6[_0x20b3c1(0x4a8)](_0x20b3c1(0x3b4))==='1')return!0x0;}catch{}try{let _0x791da2=typeof localStorage>'u'?null:localStorage['getItem'](_0x20b3c1(0x4ae));return _0x791da2==='1'||_0x791da2===_0x20b3c1(0x468);}catch{return!0x1;}}function I(_0x2c7f0d,_0x8f94f1,_0x51d304){const _0xd21ba7=_0x354fcb;if(!lt())return _0x8f94f1();let _0x4218d1=dt(),_0x769fb=_0xd21ba7(0x18c)+ct++;ft(_0x769fb+_0xd21ba7(0x188));try{return _0x8f94f1();}finally{let _0xea747=dt()-_0x4218d1;ft(_0x769fb+_0xd21ba7(0x327)),pt(_0x2c7f0d,_0x769fb+':start',_0x769fb+':end'),ut(_0x2c7f0d,_0xea747,_0x51d304);}}function ut(_0x3817b1,_0xf716c8,_0x51495f){const _0x452fbf=_0x354fcb;if(!lt())return;let _0x4bbbec=Math['round'](_0xf716c8*0x64)/0x64,_0x47ed2e=_0x51495f&&Object['keys'](_0x51495f)[_0x452fbf(0x458)]?'\x20'+JSON[_0x452fbf(0x449)](_0x51495f):'';console[_0x452fbf(0x38e)]('[BasePerf]\x20'+_0x3817b1+':\x20'+_0x4bbbec+'ms'+_0x47ed2e);}function dt(){const _0x44ffb1=_0x354fcb;return typeof performance<'u'&&typeof performance['now']=='function'?performance['now']():Date[_0x44ffb1(0x181)]();}function ft(_0x832b23){try{if(typeof performance<'u'){var _0x5ed05c,_0x3f3c75;(_0x5ed05c=(_0x3f3c75=performance)['mark'])==null||_0x5ed05c['call'](_0x3f3c75,_0x832b23);}}catch{}}function pt(_0x3d5036,_0x31ddb1,_0x36d7f8){const _0x21b5e9=_0x354fcb;try{if(typeof performance<'u'){var _0x53bdbc,_0x49ef63;(_0x53bdbc=(_0x49ef63=performance)[_0x21b5e9(0x1c4)])==null||_0x53bdbc[_0x21b5e9(0x331)](_0x49ef63,_0x21b5e9(0x46d)+_0x3d5036,_0x31ddb1,_0x36d7f8);}}catch{}}function L(_0x1179e2){const _0x4eec3f=_0x354fcb;var _0x315456;return lt()?I(_0x4eec3f(0x2fb),()=>mt(_0x1179e2),{'tableId':_0x1179e2['id'],'records':Object[_0x4eec3f(0x51b)](_0x1179e2['records']??{})[_0x4eec3f(0x458)],'fields':_0x1179e2[_0x4eec3f(0x1e1)]['length'],'hasRecordOrder':!!((_0x315456=_0x1179e2[_0x4eec3f(0x22d)])!=null&&_0x315456[_0x4eec3f(0x458)])}):mt(_0x1179e2);}function mt(_0x1866c9){const _0x409962=_0x354fcb;var _0x3a7265;let _0x21e0ea=_0x1866c9[_0x409962(0x45a)]??{},_0x429bf4=_0x1866c9[_0x409962(0x480)]??{},_0x3fd4fb=((_0x3a7265=_0x1866c9[_0x409962(0x22d)])==null?void 0x0:_0x3a7265[_0x409962(0x397)](_0x20b093=>_0x21e0ea[_0x20b093]))??[],_0x45f65a=new Set(_0x3fd4fb),_0x592df8=[];for(let _0x4c3d15 of Object[_0x409962(0x1da)](_0x21e0ea))_0x45f65a[_0x409962(0x23f)](_0x4c3d15['id'])||_0x592df8[_0x409962(0x1f3)](_0x4c3d15);let _0x3b623b=_0x592df8[_0x409962(0x458)]?[..._0x3fd4fb,...Rt(_0x592df8)]:_0x3fd4fb,_0x4ef437=_0x1866c9[_0x409962(0x1e1)][_0x409962(0x397)](_0x44d1e5=>_0x429bf4[_0x44d1e5]),_0x4389a9={..._0x1866c9[_0x409962(0x474)]??{}},_0x4d5dbb={..._0x1866c9[_0x409962(0x242)]??{}},_0x51223f={..._0x1866c9[_0x409962(0x1cf)]??{}};_0x1866c9[_0x409962(0x22d)]=_0x3b623b,_0x1866c9[_0x409962(0x290)]={},_0x1866c9[_0x409962(0x474)]={},_0x1866c9[_0x409962(0x288)]={},_0x1866c9[_0x409962(0x242)]={},_0x1866c9[_0x409962(0x1cf)]={},_0x1866c9['resources']={..._0x1866c9[_0x409962(0x358)]??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x47e)]={..._0x1866c9[_0x409962(0x358)]['attachmentSets']??{}},_0x1866c9[_0x409962(0x358)][_0x409962(0x499)]={..._0x1866c9['resources'][_0x409962(0x499)]??{}};let _0x599f51=_0x1866c9[_0x409962(0x290)],_0x557e8d=_0x1866c9['rowId'],_0x479f94=_0x1866c9['colIndex'],_0x5948d1=_0x1866c9[_0x409962(0x242)],_0x5e01af=_0x1866c9[_0x409962(0x1cf)];return _0x3b623b['forEach']((_0x18178d,_0x5f4e48)=>{_0x599f51[_0x18178d]=_0x5f4e48,_0x557e8d[_0x5f4e48]=_0x18178d;}),_0x4ef437[_0x409962(0x461)]((_0x2364b8,_0x4219a1)=>{_0x479f94[_0x2364b8]=_0x4219a1,_0x5948d1[_0x4219a1]=_0x2364b8;}),Object[_0x409962(0x1e2)](_0x51223f)[_0x409962(0x461)](([_0x31bcbb,_0x117267])=>{const _0x4ce48d=_0x409962;let _0xd4895b=Number(_0x31bcbb),_0x58f536=_0x4389a9[_0xd4895b]??_0x3b623b[_0xd4895b],_0x441b62=_0x58f536?_0x599f51[_0x58f536]:void 0x0;_0x441b62!=null&&(_0x5e01af[_0x441b62]={..._0x5e01af[_0x441b62]??{}},Object['entries'](_0x117267??{})[_0x4ce48d(0x461)](([_0x5466d4,_0x439216])=>{let _0x75ed5c=Number(_0x5466d4),_0x3906fe=_0x4d5dbb[_0x75ed5c]??_0x4ef437[_0x75ed5c],_0x2280c2=_0x3906fe?_0x479f94[_0x3906fe]:void 0x0;_0x2280c2!=null&&(_0x5e01af[_0x441b62][_0x2280c2]=St(_0x439216));}));}),Object[_0x409962(0x1da)](_0x21e0ea)[_0x409962(0x461)](_0x1b770a=>{const _0x590d78=_0x409962;let _0x1ecdf4=_0x599f51[_0x1b770a['id']];_0x1ecdf4!=null&&(_0x1b770a[_0x590d78(0x1da)]={..._0x1b770a[_0x590d78(0x1da)]??{},[_0x3b44b5]:_0x1b770a['id']},_0x5e01af[_0x1ecdf4]={..._0x5e01af[_0x1ecdf4]??{},0x0:{'v':_0x1b770a['id'],'t':_0x149f0a[_0x590d78(0x475)]}},Object[_0x590d78(0x1e2)](_0x1b770a['values']??{})[_0x590d78(0x461)](([_0x301044,_0xdfa354])=>{const _0x45f318=_0x590d78;let _0x5a6e6f=_0x429bf4[_0x301044];(_0x5a6e6f==null?void 0x0:_0x5a6e6f[_0x45f318(0x33a)])===_0x19bf94[_0x45f318(0x46f)]&&Dt(_0x1866c9,_0x1b770a['id'],_0x301044,_0xdfa354);let _0x49b454=_0x479f94[_0x301044];if(_0x49b454==null)return;let _0x317cce=_0x5e01af[_0x1ecdf4][_0x49b454];(_0x317cce==null||jt(_0x317cce,_0x5a6e6f,_0xdfa354))&&(_0x5e01af[_0x1ecdf4][_0x49b454]=xt(_0xdfa354,_0x5a6e6f));}));}),_0x1866c9;}function ht(_0x3edcee,_0x593d25){const _0x553a52=_0x354fcb;return _0x3edcee[_0x553a52(0x45a)]=Object[_0x553a52(0x2e8)](Object['entries'](_0x3edcee[_0x553a52(0x45a)])[_0x553a52(0x29b)](([_0x46ef20,_0x1ddbe6])=>[_0x46ef20,{..._0x1ddbe6}])),L(_0x3edcee),Object[_0x553a52(0x1e2)](_0x3edcee[_0x553a52(0x474)]??{})[_0x553a52(0x461)](([_0x423484,_0x5c3120])=>{const _0x1528c8=_0x553a52;var _0x22c524;let _0xe623bc=Number(_0x423484),_0x4a0a64=_0x3edcee[_0x1528c8(0x45a)][_0x5c3120];_0x4a0a64&&(_0x4a0a64['values']={..._0x4a0a64['values']??{}},Object[_0x1528c8(0x1e2)](((_0x22c524=_0x3edcee[_0x1528c8(0x1cf)])==null?void 0x0:_0x22c524[_0xe623bc])??{})['forEach'](([_0x42420b,_0x56b0ce])=>{const _0x1b2133=_0x1528c8;var _0x2c2288;let _0x4b588d=(_0x2c2288=_0x3edcee[_0x1b2133(0x242)])==null?void 0x0:_0x2c2288[Number(_0x42420b)];_0x4b588d&&_0x593d25&&!_0x593d25(_0x5c3120,_0x4b588d)||(_0x4b588d===_0x3b44b5?_0x4a0a64[_0x1b2133(0x1da)][_0x3b44b5]=_0x4a0a64['id']:_0x4b588d&&(_0x4a0a64[_0x1b2133(0x1da)][_0x4b588d]=Ct(_0x56b0ce,_0x3edcee[_0x1b2133(0x480)][_0x4b588d],_0x3edcee,_0x5c3120)));}));}),_0x3edcee;}function gt(_0x46b949,_0x58a910){const _0x298e2f=_0x354fcb;for(let {row:_0x26d9f3,col:_0xa54b4d}of _0x58a910){var _0x442096,_0x52bf24,_0x3284fb;let _0xe9a244=(_0x442096=_0x46b949['rowId'])==null?void 0x0:_0x442096[_0x26d9f3],_0x1cb47c=(_0x52bf24=_0x46b949[_0x298e2f(0x242)])==null?void 0x0:_0x52bf24[_0xa54b4d],_0x185f25=_0xe9a244?_0x46b949[_0x298e2f(0x45a)][_0xe9a244]:void 0x0;if(!_0x185f25||!_0x1cb47c)continue;if(_0x1cb47c===_0x3b44b5){_0x185f25[_0x298e2f(0x1da)][_0x3b44b5]=_0x185f25['id'];continue;}let _0x305f8c=(_0x3284fb=_0x46b949[_0x298e2f(0x1cf)])==null||(_0x3284fb=_0x3284fb[_0x26d9f3])==null?void 0x0:_0x3284fb[_0xa54b4d];(_0x305f8c!=null||Object['prototype'][_0x298e2f(0x42f)]['call'](_0x185f25[_0x298e2f(0x1da)]??{},_0x1cb47c))&&(_0x185f25[_0x298e2f(0x1da)]={..._0x185f25['values']??{}},_0x185f25[_0x298e2f(0x1da)][_0x1cb47c]=Ct(_0x305f8c,_0x46b949[_0x298e2f(0x480)][_0x1cb47c],_0x46b949,_0xe9a244));}return _0x46b949;}function _t(_0x5e47d4,_0x134246,_0x1ddd02){const _0x2dd944=_0x354fcb;var _0x1b3194,_0x130eef,_0x2d1497,_0x59c31c,_0xe2c45b,_0x5a927e;let _0x494ff6=(_0x1b3194=_0x5e47d4[_0x2dd944(0x290)])==null?void 0x0:_0x1b3194[_0x134246],_0x46ef39=(_0x130eef=_0x5e47d4[_0x2dd944(0x288)])==null?void 0x0:_0x130eef[_0x1ddd02];if(_0x494ff6!=null&&_0x46ef39!=null&&((_0x2d1497=_0x5e47d4[_0x2dd944(0x474)])==null?void 0x0:_0x2d1497[_0x494ff6])===_0x134246&&((_0x59c31c=_0x5e47d4[_0x2dd944(0x242)])==null?void 0x0:_0x59c31c[_0x46ef39])===_0x1ddd02)return{'row':_0x494ff6,'col':_0x46ef39};let _0x104a5b=L(_0x5e47d4),_0x26db20=(_0xe2c45b=_0x104a5b['rowIndex'])==null?void 0x0:_0xe2c45b[_0x134246],_0xf9b7ec=(_0x5a927e=_0x104a5b[_0x2dd944(0x288)])==null?void 0x0:_0x5a927e[_0x1ddd02];return _0x26db20==null||_0xf9b7ec==null?null:{'row':_0x26db20,'col':_0xf9b7ec};}function vt(_0x1b2953,_0x3007dc,_0x294437){const _0x5e57c0=_0x354fcb;var _0x52ba47;let _0x2f519d=_t(_0x1b2953,_0x3007dc,_0x294437);if(_0x2f519d)return(_0x52ba47=_0x1b2953['cellData'])==null||(_0x52ba47=_0x52ba47[_0x2f519d[_0x5e57c0(0x21b)]])==null?void 0x0:_0x52ba47[_0x2f519d[_0x5e57c0(0x1ea)]];}function yt(_0x56728d,_0x5dbb20,_0x49af4e){const _0x552811=_0x354fcb;var _0x2288a8;let _0x4deeae=vt(_0x56728d,_0x5dbb20,_0x49af4e),_0x3cb7d8=_0x56728d[_0x552811(0x480)][_0x49af4e];if((_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x46f)]){var _0x4b0723;return Ot(_0x56728d,_0x5dbb20,_0x49af4e)??kt((_0x4b0723=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x4b0723=_0x4b0723[_0x552811(0x1da)])==null?void 0x0:_0x4b0723[_0x49af4e]);}if(Mt(_0x3cb7d8)||Nt(_0x3cb7d8)||(_0x3cb7d8==null?void 0x0:_0x3cb7d8[_0x552811(0x33a)])===_0x19bf94[_0x552811(0x4db)]){var _0x12d76d;let _0x1afa7b=(_0x12d76d=_0x56728d[_0x552811(0x45a)][_0x5dbb20])==null||(_0x12d76d=_0x12d76d['values'])==null?void 0x0:_0x12d76d[_0x49af4e];return _0x1afa7b!=null&&_0x1afa7b!==''?At(_0x1afa7b,_0x3cb7d8):Ct(_0x4deeae,_0x3cb7d8,_0x56728d,_0x5dbb20);}return _0x4deeae&&Object[_0x552811(0x32b)][_0x552811(0x42f)]['call'](_0x4deeae,'v')?_0x4deeae['v']??null:((_0x2288a8=_0x56728d['records'][_0x5dbb20])==null||(_0x2288a8=_0x2288a8[_0x552811(0x1da)])==null?void 0x0:_0x2288a8[_0x49af4e])??null;}function bt(_0x175439,_0x3a5e47,_0x1363e3){const _0x1186b4=_0x354fcb;var _0x202b2e;let _0x12e467=vt(_0x175439,_0x3a5e47,_0x1363e3);if(_0x12e467&&Object[_0x1186b4(0x32b)][_0x1186b4(0x42f)][_0x1186b4(0x331)](_0x12e467,'v'))return _0x12e467['v']??null;let _0x158044=_0x175439[_0x1186b4(0x480)][_0x1363e3];return xt(((_0x202b2e=_0x175439[_0x1186b4(0x45a)][_0x3a5e47])==null||(_0x202b2e=_0x202b2e[_0x1186b4(0x1da)])==null?void 0x0:_0x202b2e[_0x1363e3])??null,_0x158044)['v']??null;}function xt(_0x2ee3a8,_0x40cdb1){const _0x2ecbf9=_0x354fcb;if(Tt(_0x2ee3a8))return(_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x46f)]?{..._0x2ee3a8,'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]}:St(_0x2ee3a8);if((_0x40cdb1==null?void 0x0:_0x40cdb1[_0x2ecbf9(0x33a)])===_0x19bf94[_0x2ecbf9(0x46f)])return{'v':'','t':_0x149f0a[_0x2ecbf9(0x475)]};if(Nt(_0x40cdb1)){let _0x2c44bb=Pt(_0x2ee3a8);return{'v':_0x2c44bb,'t':Lt(_0x2c44bb)};}if(Mt(_0x40cdb1))return{'v':Ft(_0x2ee3a8)[_0x2ecbf9(0x4b5)](',\x20'),'t':_0x149f0a[_0x2ecbf9(0x475)]};if((_0x40cdb1==null?void 0x0:_0x40cdb1['type'])===_0x19bf94[_0x2ecbf9(0x4db)]&&_0x2ee3a8&&typeof _0x2ee3a8==_0x2ecbf9(0x269)&&!Array[_0x2ecbf9(0x354)](_0x2ee3a8)){let _0x30944f=_0x2ee3a8;return{'v':String(_0x30944f[_0x2ecbf9(0x4d2)]??_0x30944f[_0x2ecbf9(0x1c7)]??''),'t':_0x149f0a[_0x2ecbf9(0x475)]};}return _0x2ee3a8===null||typeof _0x2ee3a8==_0x2ecbf9(0x471)||typeof _0x2ee3a8=='number'||typeof _0x2ee3a8==_0x2ecbf9(0x364)?{'v':_0x2ee3a8,'t':Lt(_0x2ee3a8)}:{'v':null,'t':null};}function St(_0x11313e){let _0x22413d=zt(_0x11313e['t'],_0x11313e['v']);if(_0x22413d===void 0x0){let {t:_0x7a81f1,..._0x3c745d}=_0x11313e;return _0x3c745d;}return{..._0x11313e,'t':_0x22413d};}function Ct(_0x2d7b40,_0x33661f,_0x171d4a,_0x1166d9){const _0x1fbdc4=_0x354fcb;if(!_0x2d7b40)return null;if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x46f)])return _0x171d4a&&_0x1166d9?Ot(_0x171d4a,_0x1166d9,_0x33661f['id'])??[]:[];if(Mt(_0x33661f))return Ft(_0x2d7b40['v']);if((_0x33661f==null?void 0x0:_0x33661f[_0x1fbdc4(0x33a)])===_0x19bf94[_0x1fbdc4(0x4db)]&&_0x171d4a&&_0x1166d9){var _0x12ba77;let _0xc36b6b=(_0x12ba77=_0x171d4a[_0x1fbdc4(0x45a)][_0x1166d9])==null||(_0x12ba77=_0x12ba77[_0x1fbdc4(0x1da)])==null?void 0x0:_0x12ba77[_0x33661f['id']];if(_0xc36b6b&&typeof _0xc36b6b=='object'&&!Array[_0x1fbdc4(0x354)](_0xc36b6b))return _0xc36b6b;}return Object[_0x1fbdc4(0x32b)][_0x1fbdc4(0x42f)]['call'](_0x2d7b40,'v')?_0x2d7b40['v']??null:null;}function wt(_0x4e2b12,_0x44cd39,_0x4262e2,_0x533a76,_0x42509f){const _0x5c5b0f=_0x354fcb;return(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x46f)]?kt(_0x4e2b12):Nt(_0x4262e2)?Pt(_0x4e2b12):Mt(_0x4262e2)?Ft(_0x4e2b12):(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&(_0x4e2b12==null||_0x4e2b12==='')?null:(_0x4262e2==null?void 0x0:_0x4262e2[_0x5c5b0f(0x33a)])===_0x19bf94[_0x5c5b0f(0x4db)]&&_0x4e2b12&&typeof _0x4e2b12=='object'&&!Array[_0x5c5b0f(0x354)](_0x4e2b12)&&!Tt(_0x4e2b12)?_0x4e2b12:Ct(_0x44cd39,_0x4262e2,_0x533a76,_0x42509f);}function Tt(_0x3184d1){const _0x322a99=_0x354fcb;return!!_0x3184d1&&typeof _0x3184d1==_0x322a99(0x269)&&(Object['prototype']['hasOwnProperty'][_0x322a99(0x331)](_0x3184d1,'v')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'t')||Object['prototype'][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'p')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)]['call'](_0x3184d1,'f')||Object[_0x322a99(0x32b)][_0x322a99(0x42f)][_0x322a99(0x331)](_0x3184d1,'si'));}function Et(_0x17e499,_0x18881a){return _0x17e499+'\x1f'+_0x18881a;}function Dt(_0x25c6ea,_0x40962d,_0x3f2a17,_0x2fe5ec){const _0x4a187b=_0x354fcb;let _0x223164=kt(_0x2fe5ec);_0x25c6ea[_0x4a187b(0x358)]={..._0x25c6ea[_0x4a187b(0x358)]??{}},_0x25c6ea['resources'][_0x4a187b(0x47e)]={..._0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)]??{}},_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)]={..._0x25c6ea['resources']['attachments']??{}};let _0x301fce=Et(_0x3f2a17,_0x40962d),_0x41e1ef=[];for(let _0x3dc778=0x0;_0x3dc778<_0x223164['length'];_0x3dc778++){if(!(_0x3dc778 in _0x223164))continue;let _0xb40b94=_0x223164[_0x3dc778],_0xf86c0c=String(_0xb40b94['id']??_0x301fce+'\x1f'+_0x3dc778),_0x3acec5={..._0xb40b94,'id':_0xf86c0c};_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x499)][_0xf86c0c]=_0x3acec5,_0x41e1ef[_0x4a187b(0x1f3)](_0xf86c0c);}_0x25c6ea[_0x4a187b(0x358)][_0x4a187b(0x47e)][_0x301fce]=_0x41e1ef;}function Ot(_0x17fa1f,_0xa1615d,_0x55c570){const _0x4981ef=_0x354fcb;var _0xb65491;let _0x4d6ae2=Et(_0x55c570,_0xa1615d),_0x3fa93f=(_0xb65491=_0x17fa1f[_0x4981ef(0x358)])==null||(_0xb65491=_0xb65491[_0x4981ef(0x47e)])==null?void 0x0:_0xb65491[_0x4d6ae2];if(!_0x3fa93f)return null;let _0x169758=[];for(let _0x37c96f=0x0;_0x37c96f<_0x3fa93f[_0x4981ef(0x458)];_0x37c96f++){var _0x408091;if(!(_0x37c96f in _0x3fa93f))continue;let _0x2b6b4b=(_0x408091=_0x17fa1f[_0x4981ef(0x358)])==null||(_0x408091=_0x408091[_0x4981ef(0x499)])==null?void 0x0:_0x408091[_0x3fa93f[_0x37c96f]];_0x2b6b4b&&_0x169758[_0x4981ef(0x1f3)]({..._0x2b6b4b});}return _0x169758;}function kt(_0x33faab){const _0x59ae2e=_0x354fcb;if(_0x33faab==null||_0x33faab===''||Tt(_0x33faab)&&!('id'in _0x33faab)&&!('name'in _0x33faab))return[];let _0x112571=Array[_0x59ae2e(0x354)](_0x33faab)?_0x33faab:[_0x33faab],_0x1c9fc6=[];for(let _0x364490=0x0;_0x364490<_0x112571[_0x59ae2e(0x458)];_0x364490++){if(!(_0x364490 in _0x112571))continue;let _0x188128=_0x112571[_0x364490],_0x4c0386=_0x188128&&typeof _0x188128==_0x59ae2e(0x269)?{..._0x188128}:{'id':_0x59ae2e(0x27a)+_0x364490,'name':String(_0x188128)};Object[_0x59ae2e(0x51b)](_0x4c0386)[_0x59ae2e(0x458)]>0x0&&_0x1c9fc6[_0x59ae2e(0x1f3)](_0x4c0386);}return _0x1c9fc6;}function At(_0x26a45b,_0x4d45f1){return(_0x4d45f1==null?void 0x0:_0x4d45f1['type'])===_0x19bf94['Attachment']?kt(_0x26a45b):Nt(_0x4d45f1)?Pt(_0x26a45b):Mt(_0x4d45f1)?Ft(_0x26a45b):_0x26a45b;}function jt(_0x3ff1b5,_0x1fc569,_0x77bb3c){const _0x35d81b=_0x354fcb;return(_0x1fc569==null?void 0x0:_0x1fc569[_0x35d81b(0x33a)])===_0x19bf94['Attachment']?_0x3ff1b5['v']!=='':Nt(_0x1fc569)?_0x3ff1b5['v']!==Pt(_0x77bb3c):Mt(_0x1fc569)?Array['isArray'](_0x77bb3c)&&(_0x3ff1b5['v']==null||_0x3ff1b5['v']===''):!0x1;}function Mt(_0x43dc37){const _0x3d4d9c=_0x354fcb;return(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94[_0x3d4d9c(0x283)]||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Group']||(_0x43dc37==null?void 0x0:_0x43dc37[_0x3d4d9c(0x33a)])===_0x19bf94['Person']&&_0x43dc37[_0x3d4d9c(0x342)]['allowMultiple']===!0x0;}function Nt(_0x28c76f){const _0x3a0ea9=_0x354fcb;return(_0x28c76f==null?void 0x0:_0x28c76f[_0x3a0ea9(0x33a)])===_0x19bf94[_0x3a0ea9(0x1e5)]&&_0x28c76f[_0x3a0ea9(0x342)][_0x3a0ea9(0x18d)]!==!0x0;}function Pt(_0x5d0d11){let _0x408d83=Tt(_0x5d0d11)?_0x5d0d11['v']:_0x5d0d11,_0x310d4a=Array['isArray'](_0x408d83)?_0x408d83[0x0]:_0x408d83;return _0x310d4a==null||_0x310d4a===''?null:String(_0x310d4a);}function Ft(_0x1919e3){const _0x14b229=_0x354fcb;if(_0x1919e3==null||_0x1919e3==='')return[];let _0x410f2a=[];if(Array[_0x14b229(0x354)](_0x1919e3)){for(let _0x164b9a=0x0;_0x164b9a<_0x1919e3[_0x14b229(0x458)];_0x164b9a++){if(!(_0x164b9a in _0x1919e3))continue;let _0x4f7889=It(_0x1919e3[_0x164b9a]);_0x4f7889&&_0x410f2a['push'](_0x4f7889);}return _0x410f2a;}for(let _0x2bd2f3 of String(_0x1919e3)[_0x14b229(0x1c5)](',')){let _0xeaf506=_0x2bd2f3['trim']();_0xeaf506&&_0x410f2a[_0x14b229(0x1f3)](_0xeaf506);}return _0x410f2a;}function It(_0x35c04a){const _0x2c2060=_0x354fcb;if(_0x35c04a==null)return'';if(typeof _0x35c04a==_0x2c2060(0x471)||typeof _0x35c04a==_0x2c2060(0x256)||typeof _0x35c04a=='boolean')return String(_0x35c04a);if(typeof _0x35c04a=='object'){let _0x5e082f=_0x35c04a;return String(_0x5e082f['id']??_0x5e082f[_0x2c2060(0x1e0)]??_0x5e082f['text']??'');}return String(_0x35c04a);}function Lt(_0x466920){const _0x5d62ce=_0x354fcb;return _0x466920==null?null:typeof _0x466920=='number'?_0x149f0a['NUMBER']:typeof _0x466920=='boolean'?_0x149f0a[_0x5d62ce(0x176)]:_0x149f0a[_0x5d62ce(0x475)];}function Rt(_0x3a78d2){const _0x2bd55d=_0x354fcb;_0x3a78d2[_0x2bd55d(0x3db)]((_0x885cb0,_0x4beebc)=>_0x885cb0[_0x2bd55d(0x3ef)]['localeCompare'](_0x4beebc['orderKey']));let _0x16031b=[];for(let _0x229565 of _0x3a78d2)_0x16031b['push'](_0x229565['id']);return _0x16031b;}function zt(_0x48d91a,_0x33ccb1){const _0x142e04=_0x354fcb;return _0x48d91a===_0x149f0a[_0x142e04(0x475)]||_0x48d91a===_0x149f0a[_0x142e04(0x426)]||_0x48d91a===_0x149f0a[_0x142e04(0x176)]||_0x48d91a===_0x149f0a[_0x142e04(0x31e)]||_0x48d91a==null?_0x48d91a:Lt(_0x33ccb1??null);}function R(_0x482f2c){let _0x7201d2=null;for(let _0x547d17 of _0x482f2c)_0x7201d2=_0x7201d2===null?_0x547d17:_0x370803['type']['compose'](_0x7201d2,_0x547d17);return _0x7201d2;}var z=class e{static[_0x354fcb(0x322)](_0x2a19d9,_0x4db787){const _0x5ea286=_0x354fcb;let _0x2ef1fd=[];for(let _0x49a2bb of _0x4db787){let _0x1b351c=Bt(_0x49a2bb);if(!_0x1b351c||_0x1b351c['unitId']!==_0x2a19d9['id'])return null;_0x2ef1fd[_0x5ea286(0x1f3)](_0x1b351c['op']);}try{let _0x2d13ce=R(_0x2ef1fd);return _0x2d13ce===null?_0x2a19d9:new e()[_0x5ea286(0x2ad)](_0x2a19d9,_0x2d13ce);}catch{return null;}}[_0x354fcb(0x2ad)](_0x53c3de,_0x2f9315){const _0x383cc1=_0x354fcb;let _0x46a373=this['getAffectedRanges'](_0x2f9315),_0x16e80e=I(_0x383cc1(0x37a),()=>Xt(_0x53c3de,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x33b52d=I(_0x383cc1(0x1ae),()=>_0x370803[_0x383cc1(0x33a)]['apply'](_0x16e80e,_0x2f9315),{'invalidations':_0x46a373[_0x383cc1(0x458)]}),_0x19b153=Ht(_0x33b52d,_0x46a373);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x33b52d,_0x46a373),{'invalidations':_0x46a373[_0x383cc1(0x458)]})?(Ut(_0x33b52d,_0x19b153),_0x33b52d):(I(_0x383cc1(0x3a6),()=>{const _0x243c0a=_0x383cc1;this[_0x243c0a(0x2a4)](_0x33b52d,_0x46a373)[_0x243c0a(0x461)](_0x163efb=>{const _0x5a20cc=_0x243c0a;let _0x20ac7b=_0x46a373['filter'](_0x22afee=>_0x22afee[_0x5a20cc(0x1c3)]===_0x163efb['id']),_0x5ad8dc=_0x20ac7b[_0x5a20cc(0x458)]>0x0&&_0x20ac7b['every'](_0x2e6194=>_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x28b)||_0x2e6194['reason']==='view'||_0x2e6194[_0x5a20cc(0x2d9)]===_0x5a20cc(0x4eb)||_0x2e6194['reason']==='record')?new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x2a4d20=>{const _0x40eadc=_0x5a20cc;var _0x573ccb;if(_0x2a4d20['reason']!==_0x40eadc(0x28b)||!_0x2a4d20[_0x40eadc(0x46e)])return[];let _0x585c62=(_0x573ccb=_0x53c3de['tables'][_0x163efb['id']])==null?void 0x0:_0x573ccb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]],_0x57f49e=_0x163efb[_0x40eadc(0x480)][_0x2a4d20[_0x40eadc(0x46e)]];return(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x33a)])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x33a)])||(_0x585c62==null?void 0x0:_0x585c62[_0x40eadc(0x342)]['allowMultiple'])!==(_0x57f49e==null?void 0x0:_0x57f49e[_0x40eadc(0x342)][_0x40eadc(0x18d)])?[_0x2a4d20[_0x40eadc(0x46e)]]:[];})):void 0x0,_0x106c63=new Set(_0x20ac7b[_0x5a20cc(0x2a2)](_0x3920b3=>{const _0x369dad=_0x5a20cc;var _0x14d1a3,_0x39f229;return _0x3920b3[_0x369dad(0x2d9)]!==_0x369dad(0x4eb)||_0x3920b3['row']==null||_0x3920b3[_0x369dad(0x26e)]==null?[]:[JSON[_0x369dad(0x449)]([(_0x14d1a3=_0x163efb[_0x369dad(0x474)])==null?void 0x0:_0x14d1a3[_0x3920b3[_0x369dad(0x21b)]],(_0x39f229=_0x163efb['colId'])==null?void 0x0:_0x39f229[_0x3920b3['column']]])];}));ht(_0x163efb,_0x5ad8dc?(_0x290643,_0x576e84)=>_0x5ad8dc['has'](_0x576e84)||_0x106c63['has'](JSON[_0x5a20cc(0x449)]([_0x290643,_0x576e84])):void 0x0);});},{'invalidations':_0x46a373[_0x383cc1(0x458)]}),Ut(_0x33b52d,_0x19b153),_0x33b52d);}[_0x354fcb(0x2aa)](_0x1ef376,_0x5de11d){const _0x872c56=_0x354fcb;return _0x370803[_0x872c56(0x33a)][_0x872c56(0x1fd)](_0x5de11d,_0x1ef376);}[_0x354fcb(0x2b9)](_0x437cac){const _0x2393a4=_0x354fcb;let _0x2a873c=qt(_0x437cac);return _0x2a873c[_0x2393a4(0x458)]?Jt(_0x2a873c[_0x2393a4(0x2a2)](_0x444164=>this['getAffectedRanges'](_0x444164))):Wt(_0x437cac);}[_0x354fcb(0x2a4)](_0x2baae9,_0x309960){const _0x362bdc=_0x354fcb;let _0x59a87b=_0x309960[_0x362bdc(0x397)](_0x4c5233=>_0x4c5233['reason']!==_0x362bdc(0x2df));return _0x59a87b[_0x362bdc(0x458)]?_0x59a87b['some'](_0x57cb5d=>!_0x57cb5d[_0x362bdc(0x1c3)])?Object[_0x362bdc(0x1da)](_0x2baae9[_0x362bdc(0x2ba)]??{}):Array[_0x362bdc(0x4dd)](new Set(_0x59a87b[_0x362bdc(0x29b)](_0xce4b56=>_0xce4b56['tableId'])))[_0x362bdc(0x2a2)](_0x3c7632=>{var _0x8fdc49;let _0x3527af=(_0x8fdc49=_0x2baae9['tables'])==null?void 0x0:_0x8fdc49[_0x3c7632];return _0x3527af?[_0x3527af]:[];}):[];}};function Bt(_0x387d7c){const _0x6f9ad=_0x354fcb;let _0x15280f=_0x387d7c['params'];return _0x387d7c['id']!==_0x6f9ad(0x4d6)||typeof _0x15280f!=_0x6f9ad(0x269)||!_0x15280f||!(_0x6f9ad(0x278)in _0x15280f)||typeof _0x15280f['unitId']!=_0x6f9ad(0x471)||!('op'in _0x15280f)||!Array[_0x6f9ad(0x354)](_0x15280f['op'])?null:{'unitId':_0x15280f[_0x6f9ad(0x278)],'op':_0x15280f['op']};}function Vt(_0x1559c6,_0x4806f9){const _0x5adb30=_0x354fcb;if(!_0x4806f9[_0x5adb30(0x458)]||_0x4806f9[_0x5adb30(0x257)](_0x261695=>_0x261695[_0x5adb30(0x2d9)]!==_0x5adb30(0x4eb)))return!0x1;let _0x1bb496=new Map();for(let _0x1fabd2 of _0x4806f9){if(!_0x1fabd2[_0x5adb30(0x1c3)]||_0x1fabd2[_0x5adb30(0x21b)]==null||_0x1fabd2[_0x5adb30(0x26e)]==null)continue;let _0x5a9406=_0x1bb496['get'](_0x1fabd2[_0x5adb30(0x1c3)])??[];_0x5a9406[_0x5adb30(0x1f3)]({'row':_0x1fabd2['row'],'col':_0x1fabd2['column']}),_0x1bb496[_0x5adb30(0x1a1)](_0x1fabd2['tableId'],_0x5a9406);}return _0x1bb496[_0x5adb30(0x461)]((_0x5c7850,_0x1568c6)=>{const _0x2dd908=_0x5adb30;var _0xbd3e05;let _0x2f678f=(_0xbd3e05=_0x1559c6[_0x2dd908(0x2ba)])==null?void 0x0:_0xbd3e05[_0x1568c6];_0x2f678f&>(_0x2f678f,_0x5c7850);}),!0x0;}function Ht(_0x228b2d,_0xf68c42){const _0x5869a4=_0x354fcb;let _0x3b000b=new Set();return _0xf68c42[_0x5869a4(0x2a2)](_0x50b6c7=>{const _0x4d9bad=_0x5869a4;var _0x345998;if(!_0x50b6c7['tableId']||!_0x50b6c7[_0x4d9bad(0x4bb)]||!_0x50b6c7[_0x4d9bad(0x46e)])return[];let _0x1f9463=_0x50b6c7['tableId']+'\x1f'+_0x50b6c7[_0x4d9bad(0x4bb)]+'\x1f'+_0x50b6c7['fieldId'];if(_0x3b000b[_0x4d9bad(0x23f)](_0x1f9463))return[];_0x3b000b[_0x4d9bad(0x35e)](_0x1f9463);let _0x5a109b=(_0x345998=_0x228b2d[_0x4d9bad(0x2ba)][_0x50b6c7['tableId']])==null||(_0x345998=_0x345998[_0x4d9bad(0x45a)][_0x50b6c7[_0x4d9bad(0x4bb)]])==null?void 0x0:_0x345998[_0x4d9bad(0x1da)];return _0x5a109b?[{'tableId':_0x50b6c7[_0x4d9bad(0x1c3)],'recordId':_0x50b6c7[_0x4d9bad(0x4bb)],'fieldId':_0x50b6c7[_0x4d9bad(0x46e)],'exists':Object[_0x4d9bad(0x32b)][_0x4d9bad(0x42f)][_0x4d9bad(0x331)](_0x5a109b,_0x50b6c7[_0x4d9bad(0x46e)]),'value':_0x5a109b[_0x50b6c7[_0x4d9bad(0x46e)]]}]:[];});}function Ut(_0x36d0fd,_0x32b5ec){_0x32b5ec['forEach'](_0x24a2d8=>{const _0x3d689d=_0x48d8;var _0x1db230;let _0x359f0e=(_0x1db230=_0x36d0fd[_0x3d689d(0x2ba)][_0x24a2d8[_0x3d689d(0x1c3)]])==null||(_0x1db230=_0x1db230[_0x3d689d(0x45a)][_0x24a2d8[_0x3d689d(0x4bb)]])==null?void 0x0:_0x1db230[_0x3d689d(0x1da)];_0x359f0e&&(_0x24a2d8[_0x3d689d(0x335)]?_0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]=_0x24a2d8['value']:delete _0x359f0e[_0x24a2d8[_0x3d689d(0x46e)]]);});}function Wt(_0x354c8c){const _0x3fd53e=_0x354fcb;if(!Array[_0x3fd53e(0x354)](_0x354c8c)||_0x354c8c[_0x3fd53e(0x458)]<0x2)return[{'tableId':'','reason':'unknown'}];let _0x4f6ef0=_0x354c8c,_0x92a771=_0x4f6ef0['indexOf'](_0x3fd53e(0x2ba));return _0x92a771===-0x1||typeof _0x4f6ef0[_0x92a771+0x1]!=_0x3fd53e(0x471)?_0x4f6ef0[0x0]===_0x3fd53e(0x3e3)?[]:[{'tableId':'','reason':_0x3fd53e(0x37d)}]:Gt(_0x4f6ef0,_0x92a771,String(_0x4f6ef0[_0x92a771+0x1]));}function Gt(_0x1e42b5,_0x4cc015,_0x1985fd){const _0x231a34=_0x354fcb;let _0x51ea8f=_0x1e42b5[_0x4cc015+0x2];return _0x51ea8f==='records'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?Kt(_0x1e42b5,_0x4cc015,_0x1985fd,String(_0x1e42b5[_0x4cc015+0x3])):_0x51ea8f===_0x231a34(0x1cf)&&_0x1e42b5[_0x4cc015+0x3]!=null&&_0x1e42b5[_0x4cc015+0x4]!=null?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb),'row':Number(_0x1e42b5[_0x4cc015+0x3]),'column':Number(_0x1e42b5[_0x4cc015+0x4])}]:_0x51ea8f==='fields'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b),'fieldId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f===_0x231a34(0x1e1)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x28b)}]:_0x51ea8f===_0x231a34(0x22d)?[{'tableId':_0x1985fd,'reason':'record'}]:_0x51ea8f==='views'&&typeof _0x1e42b5[_0x4cc015+0x3]==_0x231a34(0x471)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df),'viewId':String(_0x1e42b5[_0x4cc015+0x3])}]:_0x51ea8f==='viewOrder'?[{'tableId':_0x1985fd,'reason':_0x231a34(0x2df)}]:_0x51ea8f===_0x231a34(0x358)?[{'tableId':_0x1985fd,'reason':_0x231a34(0x4eb)}]:[{'tableId':_0x1985fd,'reason':_0x51ea8f===void 0x0?'table':_0x231a34(0x37d)}];}function Kt(_0x43ae2d,_0x39e026,_0x288c80,_0x43694b){const _0x17baea=_0x354fcb;return _0x43ae2d[_0x39e026+0x4]===_0x17baea(0x1da)&&typeof _0x43ae2d[_0x39e026+0x5]==_0x17baea(0x471)?[{'tableId':_0x288c80,'reason':_0x17baea(0x4eb),'recordId':_0x43694b,'fieldId':String(_0x43ae2d[_0x39e026+0x5])}]:_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x483)||_0x43ae2d[_0x39e026+0x4]===_0x17baea(0x2e9)?[]:[{'tableId':_0x288c80,'reason':_0x17baea(0x52b),'recordId':_0x43694b}];}function qt(_0x3105df){const _0x3eff5b=_0x354fcb;if(!Array[_0x3eff5b(0x354)](_0x3105df))return[];let _0x303c45=_0x3105df[_0x3eff5b(0x397)](Array['isArray']);if(_0x303c45[_0x3eff5b(0x458)]>0x1&&_0x303c45[_0x3eff5b(0x458)]===_0x3105df[_0x3eff5b(0x458)])return _0x303c45;let _0x311c8e=_0x3105df[_0x3eff5b(0x183)](Array[_0x3eff5b(0x354)]);if(_0x311c8e>0x0&&_0x3105df[_0x3eff5b(0x192)](_0x311c8e)['every'](Array[_0x3eff5b(0x354)])){let _0x31ca8e=_0x3105df['slice'](0x0,_0x311c8e);return _0x3105df[_0x3eff5b(0x192)](_0x311c8e)[_0x3eff5b(0x29b)](_0x27f281=>[..._0x31ca8e,..._0x27f281]);}let _0x313750=_0x3105df[_0x3eff5b(0x4c8)](_0x3eff5b(0x2ba));if(_0x313750===-0x1||typeof _0x3105df[_0x313750+0x1]!=_0x3eff5b(0x471))return[];let _0x1c826c=String(_0x3105df[_0x313750+0x1]),_0x59967f=_0x3105df['slice'](_0x313750+0x2)['filter'](Array['isArray']);return _0x59967f[_0x3eff5b(0x458)]<=0x1?[]:_0x59967f['map'](_0x53334d=>['tables',_0x1c826c,..._0x53334d]);}function Jt(_0x3cef58){let _0x38da5f=new Set();return _0x3cef58['filter'](_0x4b685b=>{const _0x52ccf5=_0x48d8;let _0x11951d=JSON[_0x52ccf5(0x449)](_0x4b685b);return!_0x38da5f[_0x52ccf5(0x23f)](_0x11951d)&&(_0x38da5f[_0x52ccf5(0x35e)](_0x11951d),!0x0);});}function Yt(_0xeaec73){return _0x30f9db['deepClone'](_0xeaec73);}function Xt(_0x2678e4,_0x2c0691){const _0xb5e7f7=_0x354fcb;let _0x1de794=Zt(_0x2c0691);if(!_0x1de794[_0xb5e7f7(0x458)])return Yt(_0x2678e4);let _0x1d2149=an(_0x2678e4),_0x1307c7=new Set();for(let _0x2986f5 of _0x1de794)en(_0x1d2149,_0x2986f5,_0x1307c7);return _0x1d2149;}function Zt(_0x448431){let _0x1ff7ef=[];return Qt(_0x448431,[],_0x1ff7ef),_0x1ff7ef;}function Qt(_0x4ba57d,_0x40ba19,_0x55924c){const _0x4b5113=_0x354fcb;if(!Array[_0x4b5113(0x354)](_0x4ba57d))return;let _0x3c3f67=[];for(let _0x5e1c61 of _0x4ba57d)Array[_0x4b5113(0x354)](_0x5e1c61)?Qt(_0x5e1c61,[..._0x40ba19,..._0x3c3f67],_0x55924c):$t(_0x5e1c61)?_0x55924c[_0x4b5113(0x1f3)]([..._0x40ba19,..._0x3c3f67]):(typeof _0x5e1c61==_0x4b5113(0x471)||typeof _0x5e1c61==_0x4b5113(0x256))&&_0x3c3f67[_0x4b5113(0x1f3)](_0x5e1c61);}function $t(_0x394ded){const _0x3c55bc=_0x354fcb;if(!_0x394ded||typeof _0x394ded!=_0x3c55bc(0x269)||Array[_0x3c55bc(0x354)](_0x394ded))return!0x1;let _0x50caf2=_0x394ded;return'i'in _0x50caf2||'r'in _0x50caf2||'p'in _0x50caf2||'d'in _0x50caf2||'es'in _0x50caf2||'ena'in _0x50caf2||'et'in _0x50caf2;}function en(_0x451b3d,_0x13301d,_0x4070d5){const _0x3574ab=_0x354fcb;let _0x1872d9=_0x451b3d,_0x1c4d05=[];for(let _0x31eaaf=0x0;_0x31eaaf<_0x13301d[_0x3574ab(0x458)]-0x1;_0x31eaaf++){let _0x2c2626=_0x13301d[_0x31eaaf];_0x1c4d05[_0x3574ab(0x1f3)](_0x2c2626);let _0x48406a=tn(_0x1872d9,_0x2c2626);if(!rn(_0x48406a))return;let _0x359bb3=JSON['stringify'](_0x1c4d05);_0x4070d5[_0x3574ab(0x23f)](_0x359bb3)||(nn(_0x1872d9,_0x2c2626,an(_0x48406a)),_0x4070d5['add'](_0x359bb3));let _0x24edca=tn(_0x1872d9,_0x2c2626);if(!rn(_0x24edca))return;_0x1872d9=_0x24edca;}}function tn(_0x556cc0,_0x55e95c){const _0xfdc55a=_0x354fcb;return Array['isArray'](_0x556cc0)?typeof _0x55e95c==_0xfdc55a(0x256)?_0x556cc0[_0x55e95c]:void 0x0:Reflect['get'](_0x556cc0,_0x55e95c);}function nn(_0xb5159d,_0x576e8a,_0x4c8727){const _0x6ce77a=_0x354fcb;Array[_0x6ce77a(0x354)](_0xb5159d)?typeof _0x576e8a=='number'&&(_0xb5159d[_0x576e8a]=_0x4c8727):Reflect['set'](_0xb5159d,_0x576e8a,_0x4c8727);}function rn(_0x52777f){const _0x30673d=_0x354fcb;return!!_0x52777f&&typeof _0x52777f==_0x30673d(0x269);}function an(_0x55e561){const _0x12de4d=_0x354fcb;return Array[_0x12de4d(0x354)](_0x55e561)?_0x55e561[_0x12de4d(0x192)]():{..._0x55e561};}const on='yyyy/mm/dd',sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x354fcb(0x1ac),'yyyy-mm-dd':'YYYY-MM-DD','mm-dd':'MM-DD','mm/dd/yyyy':_0x354fcb(0x4f7),'dd/mm/yyyy':_0x354fcb(0x3b3),'mmm\x20d,\x20yyyy':_0x354fcb(0x390)};function B(_0x163012,_0x1cab90=_0x4547e4[_0x354fcb(0x429)]){const _0x35e5d4=_0x354fcb;let _0x3fba62=_0x5cea60(_0x163012)[_0x35e5d4(0x3f0)]();return _0xa41fad(new Date(_0x3fba62),_0x1cab90);}function ln(_0x1940fc,_0x24dc02=_0x4547e4[_0x354fcb(0x429)]){const _0x13505a=_0x354fcb;return _0x156e38(_0x1940fc,_0x24dc02)[_0x13505a(0x3f6)]();}function un(_0xcdc644,_0x5ae89d=_0x4547e4[_0x354fcb(0x429)]){const _0x1d9513=_0x354fcb;if(_0xcdc644==null||_0xcdc644==='')return null;if(_0xcdc644 instanceof Date)return B(_0xcdc644,_0x5ae89d);if(typeof _0xcdc644==_0x1d9513(0x256))return Number[_0x1d9513(0x2c3)](_0xcdc644)?_0xcdc644>0xf4240?B(_0xcdc644,_0x5ae89d):_0xcdc644:null;let _0x48cd0e=Date['parse'](String(_0xcdc644));return Number[_0x1d9513(0x3b5)](_0x48cd0e)?null:B(_0x48cd0e,_0x5ae89d);}function dn(_0x5d8e9b,_0x560799=_0x4547e4[_0x354fcb(0x429)]){let _0x3a9aa5=un(_0x5d8e9b,_0x560799);return _0x3a9aa5==null?null:ln(_0x3a9aa5,_0x560799);}function fn(_0x1e99f7={}){const _0xe30d4b=_0x354fcb;let _0x5a3088=String(_0x1e99f7[_0xe30d4b(0x177)]??_0x1e99f7[_0xe30d4b(0x24a)]??_0x1e99f7[_0xe30d4b(0x476)]??on)[_0xe30d4b(0x3bc)]()||on,_0x319c5d=sn[_0xe30d4b(0x235)](_0x5a3088);return{'pattern':_0x5a3088[_0xe30d4b(0x2b1)](sn,'')||on,'includeTime':typeof _0x1e99f7['includeTime']==_0xe30d4b(0x364)?_0x1e99f7[_0xe30d4b(0x501)]:_0x319c5d,'hourCycle':_0x1e99f7[_0xe30d4b(0x21c)]===_0xe30d4b(0x2cc)?_0xe30d4b(0x2cc):_0xe30d4b(0x1a8)};}function pn(_0x934520={}){let {format:_0x50f4df,dateFormat:_0xa8ab7f,..._0x28346d}=_0x934520;return{..._0x28346d,...fn(_0x934520)};}function mn(_0x4d91d5,_0x579845={}){const _0x5c32c8=_0x354fcb;let _0x44d2a0=dn(_0x4d91d5);if(_0x44d2a0==null||!Number[_0x5c32c8(0x2c3)](_0x44d2a0))return'';let _0x2ccda7=fn(_0x579845);return _0x5cea60(_0x44d2a0)[_0x5c32c8(0x24a)](hn(_0x2ccda7));}function hn(_0x1527e2){const _0x8be71c=_0x354fcb;let {pattern:_0x55c560,includeTime:_0x4e4890,hourCycle:_0x139373}=_0x1527e2,_0x396135=cn[_0x55c560]??cn[on];return _0x4e4890?_0x396135+'\x20'+(_0x139373===_0x8be71c(0x2cc)?_0x8be71c(0x3f7):_0x8be71c(0x25d)):_0x396135;}const gn={'editable':!0x0,'sortable':!0x0,'filterable':!0x0,'groupable':!0x1,'usableAsKanbanGroup':!0x1,'usableAsCalendarDate':!0x1,'usableAsGanttStart':!0x1,'usableAsGanttEnd':!0x1,'usableAsGanttProgress':!0x1,'usableAsCardCover':!0x1,'usableAsTitle':!0x1},_n=new Set([_0x19bf94[_0x354fcb(0x44f)]]);function vn(_0x15d581){const _0x40e74c=_0x354fcb;switch(_0x15d581){case _0x19bf94['Number']:case _0x19bf94[_0x40e74c(0x19c)]:case _0x19bf94[_0x40e74c(0x1ba)]:case _0x19bf94[_0x40e74c(0x4c5)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x23b)],_0x79efc5['LESS_THAN'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x440)]:case _0x19bf94[_0x40e74c(0x253)]:case _0x19bf94['UpdatedAt']:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5['BEFORE'],_0x79efc5['AFTER'],_0x79efc5[_0x40e74c(0x308)],_0x79efc5[_0x40e74c(0x3d7)]];case _0x19bf94[_0x40e74c(0x19e)]:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)]];default:return[_0x79efc5['IS'],_0x79efc5[_0x40e74c(0x48d)],_0x79efc5[_0x40e74c(0x33f)],_0x79efc5[_0x40e74c(0x34c)],_0x79efc5['IS_EMPTY'],_0x79efc5['IS_NOT_EMPTY']];}}function yn(_0x1bd2bb){const _0x2d5e9a=_0x354fcb;return _0x1bd2bb===_0x19bf94['Date']||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x253)]||_0x1bd2bb===_0x19bf94[_0x2d5e9a(0x347)];}function bn(_0x2e58f9,_0x5ef577){const _0x547784=_0x354fcb;return _0x2e58f9==null&&_0x5ef577==null?0x0:_0x2e58f9==null?-0x1:_0x5ef577==null?0x1:typeof _0x2e58f9==_0x547784(0x256)&&typeof _0x5ef577==_0x547784(0x256)?_0x2e58f9-_0x5ef577:String(_0x2e58f9)[_0x547784(0x4bc)](String(_0x5ef577));}function xn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223,_0x37a850={}){const _0x198adb=_0x354fcb;if(_0x430f43===_0x198adb(0x3cb))return Sn(_0x3f284f);if(_0x430f43==='isNotEmpty')return!Sn(_0x3f284f);switch(_0x198223[_0x198adb(0x33a)]){case _0x19bf94[_0x198adb(0x271)]:case _0x19bf94[_0x198adb(0x19c)]:case _0x19bf94[_0x198adb(0x1ba)]:case _0x19bf94[_0x198adb(0x4c5)]:return Cn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94[_0x198adb(0x440)]:case _0x19bf94['CreatedAt']:case _0x19bf94[_0x198adb(0x347)]:return Tn(_0x3f284f,_0x430f43,_0x1c65b2,_0x37a850);case _0x19bf94[_0x198adb(0x19e)]:return jn(_0x3f284f,_0x430f43,_0x1c65b2);case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x198adb(0x1e5)]:case _0x19bf94['Group']:return Nn(_0x3f284f,_0x430f43,_0x1c65b2,_0x198223);default:return Pn(_0x3f284f,_0x430f43,_0x1c65b2);}}function Sn(_0x6c1087){const _0x154548=_0x354fcb;return _0x6c1087==null?!0x0:Array[_0x154548(0x354)](_0x6c1087)?_0x6c1087[_0x154548(0x458)]===0x0:typeof _0x6c1087==_0x154548(0x471)&&_0x6c1087[_0x154548(0x3bc)]()==='';}function Cn(_0xe3b88f,_0x5ba7ba,_0x542d03){const _0x48366b=_0x354fcb;let _0x3cc6a9=wn(_0xe3b88f),_0x3e5755=wn(_0x542d03);if(_0x3cc6a9==null||_0x3e5755==null)return!0x1;switch(_0x5ba7ba){case'is':return _0x3cc6a9===_0x3e5755;case _0x48366b(0x521):return _0x3cc6a9!==_0x3e5755;case _0x48366b(0x267):return _0x3cc6a9>_0x3e5755;case'greaterThanOrEqual':return _0x3cc6a9>=_0x3e5755;case _0x48366b(0x212):return _0x3cc6a9<_0x3e5755;case _0x48366b(0x1eb):return _0x3cc6a9<=_0x3e5755;default:return!0x1;}}function wn(_0x2da85c){const _0x105ad2=_0x354fcb;if(_0x2da85c==null||_0x2da85c==='')return null;let _0x324912=Number(_0x2da85c);return Number[_0x105ad2(0x2c3)](_0x324912)?_0x324912:null;}function Tn(_0x1fa8ea,_0x48c1fd,_0x3d0e73,_0x3025e3){const _0x4e08e5=_0x354fcb;let _0x31d594=Dn(_0x1fa8ea);if(_0x31d594==null)return!0x1;let _0x5b5e8b=En(_0x3025e3[_0x4e08e5(0x43b)]??_0x173d28[_0x4e08e5(0x184)],_0x3d0e73,_0x3025e3[_0x4e08e5(0x181)]);if(!_0x5b5e8b)return!0x1;switch(_0x48c1fd){case _0x79efc5['IS']:return _0x31d594>=_0x5b5e8b[_0x4e08e5(0x191)]&&_0x31d594<=_0x5b5e8b[_0x4e08e5(0x3ce)];case _0x79efc5[_0x4e08e5(0x48d)]:return _0x31d594<_0x5b5e8b[_0x4e08e5(0x191)]||_0x31d594>_0x5b5e8b['end'];case _0x79efc5[_0x4e08e5(0x2e4)]:return _0x31d594<_0x5b5e8b['start'];case _0x79efc5[_0x4e08e5(0x486)]:return _0x31d594>_0x5b5e8b['end'];default:return!0x1;}}function En(_0x1bdaa3,_0x1660b8,_0xbff055=Date['now']()){const _0x9e8950=_0x354fcb;let _0x3f1656=On(_0xbff055);switch(_0x1bdaa3){case _0x173d28[_0x9e8950(0x184)]:{let _0x3e4223=Dn(_0x1660b8);return _0x3e4223==null?null:V(_0x3e4223,0x0,0x1);}case _0x173d28['TODAY']:return V(_0x3f1656,0x0,0x1);case _0x173d28[_0x9e8950(0x255)]:return V(_0x3f1656,0x1,0x1);case _0x173d28[_0x9e8950(0x4d9)]:return V(_0x3f1656,-0x1,0x1);case _0x173d28[_0x9e8950(0x2c6)]:return kn(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x454)]:return kn(_0x3f1656,-0x1);case _0x173d28['THIS_MONTH']:return An(_0x3f1656,0x0);case _0x173d28[_0x9e8950(0x417)]:return An(_0x3f1656,-0x1);case _0x173d28[_0x9e8950(0x489)]:return V(_0x3f1656,-0x6,0x7);case _0x173d28[_0x9e8950(0x2cb)]:return V(_0x3f1656,0x0,0x7);case _0x173d28[_0x9e8950(0x336)]:return V(_0x3f1656,-0x1d,0x1e);case _0x173d28[_0x9e8950(0x2e0)]:return V(_0x3f1656,0x0,0x1e);}}function Dn(_0x21b6fa){let _0x1975e0=un(_0x21b6fa);return _0x1975e0==null?null:On(ln(_0x1975e0));}function On(_0x54b4e7){let _0x3e86c=new Date(_0x54b4e7);return _0x3e86c['setHours'](0x0,0x0,0x0,0x0),_0x3e86c['getTime']();}function kn(_0x3a23ed,_0x16233a){return V(_0x3a23ed,-((new Date(_0x3a23ed)['getDay']()+0x6)%0x7)+_0x16233a*0x7,0x7);}function V(_0x1b2bdf,_0xc992bf,_0x5955c3){const _0x2258b7=_0x354fcb;let _0x12e3aa=_0x5cea60(_0x1b2bdf)[_0x2258b7(0x35e)](_0xc992bf,_0x2258b7(0x2d6));return{'start':_0x12e3aa[_0x2258b7(0x3f0)](),'end':_0x12e3aa[_0x2258b7(0x35e)](_0x5955c3,_0x2258b7(0x2d6))[_0x2258b7(0x3f0)]()-0x1};}function An(_0x27694d,_0x40a215){const _0x50db6f=_0x354fcb;let _0x224710=new Date(_0x27694d),_0x564c4c=new Date(_0x224710[_0x50db6f(0x2a8)](),_0x224710[_0x50db6f(0x531)]()+_0x40a215,0x1),_0x4fa8a5=new Date(_0x224710['getFullYear'](),_0x224710[_0x50db6f(0x531)]()+_0x40a215+0x1,0x1);return{'start':_0x564c4c['getTime'](),'end':_0x4fa8a5[_0x50db6f(0x3f6)]()-0x1};}function jn(_0x23de59,_0x4cf9e5,_0x3eb924){let _0x535d8e=Mn(_0x23de59),_0x21f170=Mn(_0x3eb924);switch(_0x4cf9e5){case'is':return _0x535d8e===_0x21f170;case'isNot':return _0x535d8e!==_0x21f170;default:return!0x1;}}function Mn(_0x28e28b){return _0x28e28b===!0x0||_0x28e28b==='true'||_0x28e28b===0x1||_0x28e28b==='1';}function Nn(_0x5475dd,_0x5d16d4,_0x3a9407,_0x642d9b){const _0xedbb0a=_0x354fcb;let _0x4c06b3=In(_0x5475dd,_0x642d9b),_0xd26c6a=In(_0x3a9407,_0x642d9b),_0xe0094c=_0xd26c6a['length']>0x0&&_0xd26c6a[_0xedbb0a(0x257)](_0x3cf325=>_0x4c06b3[_0xedbb0a(0x231)](_0x3cf325));switch(_0x5d16d4){case'is':case _0xedbb0a(0x4d7):return _0xe0094c;case _0xedbb0a(0x521):case _0xedbb0a(0x4a5):return!_0xe0094c;default:return!0x1;}}function Pn(_0x2a141f,_0x534d4a,_0x4c9fd){const _0x34d2e1=_0x354fcb;let _0x1c98b9=Fn(_0x2a141f),_0x183d47=Fn(_0x4c9fd);switch(_0x534d4a){case'is':return _0x1c98b9===_0x183d47;case _0x34d2e1(0x521):return _0x1c98b9!==_0x183d47;case _0x34d2e1(0x4d7):return _0x183d47?_0x1c98b9[_0x34d2e1(0x231)](_0x183d47):!0x1;case _0x34d2e1(0x4a5):return!_0x183d47||!_0x1c98b9[_0x34d2e1(0x231)](_0x183d47);default:return!0x1;}}function Fn(_0x23e09c){const _0x5defcf=_0x354fcb;if(Array[_0x5defcf(0x354)](_0x23e09c))return _0x23e09c['map'](_0x35d3c2=>Fn(_0x35d3c2))['join']('\x0a');if(_0x23e09c&&typeof _0x23e09c==_0x5defcf(0x269)){let _0x71ae6a=_0x23e09c;return String(_0x71ae6a['name']??_0x71ae6a['label']??_0x71ae6a[_0x5defcf(0x4d2)]??_0x71ae6a['value']??_0x71ae6a['id']??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}return String(_0x23e09c??'')[_0x5defcf(0x3bc)]()[_0x5defcf(0x4f1)]();}function In(_0x4cc2a0,_0x1a83e1){const _0x18bda8=_0x354fcb;let _0x509f67=Ln(_0x4cc2a0),_0x1cb46c=Rn(_0x1a83e1[_0x18bda8(0x342)]??{});return _0x509f67[_0x18bda8(0x2a2)](_0x127756=>_0x1cb46c[_0x18bda8(0x4a8)](_0x127756)??[_0x127756])[_0x18bda8(0x397)]((_0x25cf07,_0x2c891d,_0x1907ab)=>_0x25cf07!==''&&_0x1907ab[_0x18bda8(0x4c8)](_0x25cf07)===_0x2c891d);}function Ln(_0x3b3e8f){const _0xfda5e5=_0x354fcb;if(_0x3b3e8f==null||_0x3b3e8f==='')return[];if(Array['isArray'](_0x3b3e8f))return _0x3b3e8f[_0xfda5e5(0x2a2)](_0x17889a=>Ln(_0x17889a));if(_0x3b3e8f&&typeof _0x3b3e8f==_0xfda5e5(0x269)){let _0x516133=_0x3b3e8f;return['id','name',_0xfda5e5(0x281),_0xfda5e5(0x416),_0xfda5e5(0x4d2)][_0xfda5e5(0x2a2)](_0xb2f89e=>Ln(_0x516133[_0xb2f89e]))[_0xfda5e5(0x397)]((_0x11157d,_0x412ad0,_0x189c26)=>_0x189c26[_0xfda5e5(0x4c8)](_0x11157d)===_0x412ad0);}return[Fn(_0x3b3e8f)];}function Rn(_0x2ee1d0){const _0x17cd19=_0x354fcb;let _0x2b4241=new Map();return(Array[_0x17cd19(0x354)](_0x2ee1d0['options'])?_0x2ee1d0[_0x17cd19(0x392)]:[])[_0x17cd19(0x461)](_0x38e858=>{const _0x28cea6=_0x17cd19;if(!_0x38e858||typeof _0x38e858!='object')return;let _0x39acb9=Ln(_0x38e858),_0x539759=_0x39acb9[_0x28cea6(0x397)]((_0x2b1df8,_0x300a27)=>_0x2b1df8!==''&&_0x39acb9['indexOf'](_0x2b1df8)===_0x300a27);_0x539759[_0x28cea6(0x461)](_0x2c7633=>_0x2b4241['set'](_0x2c7633,_0x539759));}),_0x2b4241;}function H(_0xe52b86,_0x420fa4={},_0xbfa693=_0x4eecc9=>_0x4eecc9,_0x4f142a={}){const _0x2c00e4=_0x354fcb;let _0x4fdf8b=!_n[_0x2c00e4(0x23f)](_0xe52b86),_0x86474e=_0xbfa693??(_0x40f62c=>_0x40f62c);return{'type':_0xe52b86,'i18nKey':_0x2c00e4(0x439)+_0xe52b86,'enabled':_0x4fdf8b,'visibleInCreateMenu':_0x4fdf8b,'createDefaultConfig':_0x4f142a[_0x2c00e4(0x435)]??(()=>({})),'createDefaultValue':_0x4f142a['createDefaultValue']??(_0x6f1610=>_0x6f1610['defaultValue']??null),'normalize':(_0x19b85a,_0x2af6f5)=>_0x86474e(_0x19b85a,_0x2af6f5),'validate':(_0x1c09c2,_0x32c821)=>{const _0x647eee=_0x2c00e4;var _0x548719;return _0x4fdf8b?((_0x548719=_0x4f142a[_0x647eee(0x209)])==null?void 0x0:_0x548719[_0x647eee(0x331)](_0x4f142a,_0x1c09c2,_0x32c821))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x40a8c1,_0x52cd36)=>bn(_0x40a8c1,_0x52cd36),'filter':(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b)=>xn(_0x1c8ac9,_0x16707a,_0x15e424,_0x2dbe7b),'toPlainText':_0x4f142a[_0x2c00e4(0x284)]??(_0x115b45=>_0x115b45==null?'':String(_0x115b45)),'fromPlainText':_0x4f142a[_0x2c00e4(0x4dc)]??(_0x412e92=>_0x86474e(_0x412e92,{'id':'','name':'','type':_0xe52b86,'config':{}})),'getCapabilities':()=>({...gn,..._0x420fa4,'editable':_0x4fdf8b&&(_0x420fa4[_0x2c00e4(0x346)]??gn[_0x2c00e4(0x346)])})};}function zn(){const _0x1ee0c6=_0x354fcb;return[H(_0x19bf94['Text'],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x3ab)}),'createDefaultValue':_0x1e958a=>_0x1e958a[_0x1ee0c6(0x241)]??''}),H(_0x19bf94['SingleSelect'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x327416=>_0x327416==null||_0x327416===''?null:String(_0x327416),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}})}),H(_0x19bf94[_0x1ee0c6(0x283)],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x45d3b4=>Array[_0x1ee0c6(0x354)](_0x45d3b4)?_0x45d3b4[_0x1ee0c6(0x29b)](String):_0x45d3b4==null?[]:[String(_0x45d3b4)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1ee0c6(0x532)}}),'createDefaultValue':_0x543094=>_0x543094[_0x1ee0c6(0x241)]??[]}),H(_0x19bf94[_0x1ee0c6(0x1e5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1ee0c6(0x300)}),'validate':Gn}),H(_0x19bf94[_0x1ee0c6(0x223)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x1ee0c6(0x1b9)}),'createDefaultValue':_0x423748=>_0x423748['defaultValue']??[],'validate':Kn}),H(_0x19bf94[_0x1ee0c6(0x440)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x218bac=>un(_0x218bac),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x46f)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x4d8792=>_0x4d8792==null?[]:Array[_0x1ee0c6(0x354)](_0x4d8792)?_0x4d8792:[_0x4d8792],{'createDefaultValue':_0x2fbefa=>_0x2fbefa['defaultValue']??[]}),H(_0x19bf94[_0x1ee0c6(0x271)],{},_0x5afd92=>_0x5afd92==null||_0x5afd92===''?null:Number(_0x5afd92),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x19bf94['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x237b0a=>_0x237b0a===!0x0||_0x237b0a===_0x1ee0c6(0x468)||_0x237b0a===0x1||_0x237b0a==='1',{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x49b),'color':_0x1ee0c6(0x41f)}),'createDefaultValue':_0x55f08d=>_0x55f08d[_0x1ee0c6(0x241)]??!0x1,'validate':_0x459646=>typeof _0x459646==_0x1ee0c6(0x364)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20checkbox\x20value.'}}),H(_0x19bf94['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x1ee0c6(0x2a7)}),'toPlainText':_0x4842aa=>Zn(_0x4842aa),'fromPlainText':_0x5b2aa4=>Xn(_0x5b2aa4)}),H(_0x19bf94[_0x1ee0c6(0x405)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x1ee0c6(0x325),'pattern':_0x1ee0c6(0x4e9)}}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x469)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x1ee0c6(0x19d)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x2ac)],{'usableAsTitle':!0x0},_0xa5f8aa=>_0xa5f8aa==null?null:String(_0xa5f8aa)[_0x1ee0c6(0x3bc)](),{'validate':_0x13a6f8=>_0x13a6f8==null||_0x13a6f8===''||/^\+?[0-9 ()-]{6,20}$/['test'](String(_0x13a6f8))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x19bf94[_0x1ee0c6(0x34d)],{'usableAsTitle':!0x0},_0xe88a27=>_0xe88a27==null?null:String(_0xe88a27)[_0x1ee0c6(0x3bc)](),{'validate':_0x59c90e=>_0x59c90e==null||_0x59c90e===''||$n(String(_0x59c90e))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1ee0c6(0x2f3)}}),H(_0x19bf94[_0x1ee0c6(0x1ba)],{'usableAsGanttProgress':!0x0},_0xa4c57a=>_0xa4c57a==null||_0xa4c57a===''?null:Number(_0xa4c57a),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1ee0c6(0x332),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x1e411d,_0x527781)=>Yn(_0x1e411d,_0x527781,_0x1ee0c6(0x38d))}),H(_0x19bf94[_0x1ee0c6(0x19c)],{},_0x5325bd=>_0x5325bd==null||_0x5325bd===''?null:Number(_0x5325bd),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x19bf94[_0x1ee0c6(0x4c5)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x571480=>_0x571480==null||_0x571480===''?null:Number(_0x571480),{'createDefaultConfig':()=>({'icon':_0x1ee0c6(0x45b),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x3ec766,_0x13fd53)=>Yn(_0x3ec766,_0x13fd53,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x19bf94[_0x1ee0c6(0x2bd)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x3f27e4,_0x388120)=>ze(_0x3f27e4,_0x388120[_0x1ee0c6(0x342)]['multiple']===!0x0)}),H(_0x19bf94[_0x1ee0c6(0x44f)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x19bf94[_0x1ee0c6(0x1fe)],{'editable':!0x1,'groupable':!0x0},_0x198be3=>_0x198be3==null?null:String(_0x198be3),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x4df)],{'editable':!0x1,'groupable':!0x0},_0xc7f252=>_0xc7f252==null?null:String(_0xc7f252),{'createDefaultConfig':()=>({'provider':_0x1ee0c6(0x20b)}),'createDefaultValue':()=>null}),H(_0x19bf94[_0x1ee0c6(0x253)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x6a04d1=>un(_0x6a04d1),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x19bf94[_0x1ee0c6(0x347)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x463347=>un(_0x463347),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x5003ba=_0x354fcb;return{'pattern':_0x5003ba(0x408),'decimalPlaces':0x2,'separatorStyle':_0x5003ba(0x40a),'useThousands':!0x0,'abbreviation':_0x5003ba(0x3e0),'allowNegative':!0x0};}function Vn(){const _0x213d14=_0x354fcb;return{'locale':_0x213d14(0x1d5),'pattern':_0x213d14(0x1cd),'includeTime':!0x1,'hourCycle':_0x213d14(0x1a8),'defaultMode':_0x213d14(0x3e0)};}function Hn(_0x1fde51){const _0x26e1fe=_0x354fcb;return _0x1fde51==null||_0x1fde51===''?[]:Array[_0x26e1fe(0x354)](_0x1fde51)?_0x1fde51[_0x26e1fe(0x29b)](String):[String(_0x1fde51)];}function Un(_0x1074a8){const _0x28df28=_0x354fcb;return typeof _0x1074a8==_0x28df28(0x471)?_0x1074a8:'';}function Wn(_0x848846,_0x38c948){const _0x3a4f60=_0x354fcb;return _0x848846==null||_0x848846===''?_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?[]:null:_0x38c948[_0x3a4f60(0x342)][_0x3a4f60(0x18d)]===!0x0?Array[_0x3a4f60(0x354)](_0x848846)?_0x848846[_0x3a4f60(0x29b)](String):[String(_0x848846)]:Array['isArray'](_0x848846)?String(_0x848846[0x0]??'')||null:String(_0x848846);}function Gn(_0x390d94,_0x3805f5){const _0x3be165=_0x354fcb;return _0x3805f5['config']['allowMultiple']===!0x0?Kn(_0x390d94):_0x390d94==null||_0x390d94===''||typeof _0x390d94==_0x3be165(0x471)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3be165(0x205)};}function Kn(_0x799c5f){const _0xb31783=_0x354fcb;return _0x799c5f==null||Array[_0xb31783(0x354)](_0x799c5f)&&_0x799c5f['every'](_0x24fdab=>typeof _0x24fdab==_0xb31783(0x471))?{'valid':!0x0}:{'valid':!0x1,'reason':_0xb31783(0x3bd)};}function qn(_0x391f0b){const _0x4add78=_0x354fcb;return _0x391f0b==null||typeof _0x391f0b==_0x4add78(0x256)&&Number[_0x4add78(0x2c3)](_0x391f0b)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4add78(0x394)};}function Jn(_0x59e7e1,_0x3db74b){const _0x5459f9=_0x354fcb;return _0x59e7e1==null||_0x59e7e1===''?{'valid':!0x0}:typeof _0x59e7e1!=_0x5459f9(0x256)||!Number[_0x5459f9(0x2c3)](_0x59e7e1)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x3db74b[_0x5459f9(0x342)][_0x5459f9(0x277)]===!0x1&&_0x59e7e1<0x0?{'valid':!0x1,'reason':_0x5459f9(0x4c9)}:{'valid':!0x0};}function Yn(_0x1dc9da,_0x5c49f8,_0x2e949c){const _0x54d96c=_0x354fcb;let _0x4e7ab0=Jn(_0x1dc9da,_0x5c49f8);if(!_0x4e7ab0[_0x54d96c(0x35c)]||_0x1dc9da==null||_0x1dc9da==='')return _0x4e7ab0;let _0x58a0da=Number(_0x5c49f8[_0x54d96c(0x342)]['min']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x191)]??0x0),_0x3078fb=Number(_0x5c49f8['config']['max']??_0x5c49f8[_0x54d96c(0x342)][_0x54d96c(0x3ce)]??0x64),_0x5cf1ef=Number(_0x1dc9da);return _0x5cf1ef>=_0x58a0da&&_0x5cf1ef<=_0x3078fb?{'valid':!0x0}:{'valid':!0x1,'reason':_0x2e949c};}function Xn(_0x225fff){const _0x313ac6=_0x354fcb;if(_0x225fff==null||_0x225fff==='')return null;if(typeof _0x225fff==_0x313ac6(0x269)&&!Array[_0x313ac6(0x354)](_0x225fff)){let _0x232094=_0x225fff,_0x7e9c53=typeof _0x232094[_0x313ac6(0x4d2)]==_0x313ac6(0x471)?_0x232094['text'][_0x313ac6(0x3bc)]():'',_0x5d8565=typeof _0x232094[_0x313ac6(0x1c7)]=='string'?_0x232094[_0x313ac6(0x1c7)]['trim']():'',_0x5d7200=Qn(_0x5d8565||_0x7e9c53);return _0x5d7200?{'text':_0x7e9c53||_0x5d8565||_0x5d7200,'url':_0x5d7200}:null;}let _0x55557f=String(_0x225fff)[_0x313ac6(0x3bc)](),_0x42b333=Qn(_0x55557f);return _0x42b333?{'text':_0x55557f,'url':_0x42b333}:null;}function Zn(_0x5768b8){const _0x25ba4f=_0x354fcb;if(_0x5768b8==null)return'';if(typeof _0x5768b8=='object'&&!Array[_0x25ba4f(0x354)](_0x5768b8)){let _0x5841cd=_0x5768b8;return String(_0x5841cd[_0x25ba4f(0x4d2)]||_0x5841cd[_0x25ba4f(0x1c7)]||'');}return String(_0x5768b8);}function Qn(_0x57d5f5){const _0x568d70=_0x354fcb;let _0x403c7a=_0x57d5f5['trim']();if(!_0x403c7a)return'';let _0x57033f=/^[a-z][a-z\d+.-]*:/i['test'](_0x403c7a)?_0x403c7a:_0x403c7a[_0x568d70(0x254)]('//')?_0x568d70(0x45c)+_0x403c7a:'https://'+_0x403c7a;try{let _0x14ad9a=new URL(_0x57033f);return _0x14ad9a['protocol']===_0x568d70(0x410)||_0x14ad9a[_0x568d70(0x4ec)]===_0x568d70(0x45c)?_0x14ad9a[_0x568d70(0x3d9)]:'';}catch{return'';}}function $n(_0x5b1d4c){const _0x51541b=_0x354fcb;let _0x1f1465=_0x5b1d4c[_0x51541b(0x4c8)]('@');if(_0x1f1465<=0x0||_0x1f1465!==_0x5b1d4c[_0x51541b(0x444)]('@'))return!0x1;let _0x31134e=_0x5b1d4c[_0x51541b(0x192)](_0x1f1465+0x1);return _0x31134e['includes']('.')&&!_0x5b1d4c[_0x51541b(0x231)]('\x20')&&!_0x31134e[_0x51541b(0x254)]('.')&&!_0x31134e[_0x51541b(0x424)]('.');}const U={'table':_0x356416=>['tables',_0x356416],'field':(_0x337c3c,_0x3edec2)=>[_0x354fcb(0x2ba),_0x337c3c,_0x354fcb(0x480),_0x3edec2],'fieldOrder':(_0x14429c,_0x587a81)=>[_0x354fcb(0x2ba),_0x14429c,_0x354fcb(0x1e1),_0x587a81],'record':(_0x18f554,_0x24f935)=>[_0x354fcb(0x2ba),_0x18f554,_0x354fcb(0x45a),_0x24f935],'cell':(_0x4420bb,_0x424782,_0xf2cec8)=>[_0x354fcb(0x2ba),_0x4420bb,_0x354fcb(0x45a),_0x424782,_0x354fcb(0x1da),_0xf2cec8],'cellData':(_0x5d9c6f,_0x3c289d,_0xbd87cf)=>[_0x354fcb(0x2ba),_0x5d9c6f,_0x354fcb(0x1cf),String(_0x3c289d),String(_0xbd87cf)],'attachmentSet':(_0x4ccfd7,_0x529080)=>['tables',_0x4ccfd7,_0x354fcb(0x358),_0x354fcb(0x47e),_0x529080],'attachment':(_0x4a64ed,_0x21ac81)=>[_0x354fcb(0x2ba),_0x4a64ed,'resources',_0x354fcb(0x499),_0x21ac81],'view':(_0x265723,_0x34d7d2)=>['tables',_0x265723,_0x354fcb(0x38b),_0x34d7d2],'viewFieldHidden':(_0x122178,_0x299f55,_0x19540d)=>[_0x354fcb(0x2ba),_0x122178,'views',_0x299f55,_0x354fcb(0x484),_0x19540d,'hidden']};var W=class{[_0x354fcb(0x22a)](_0x196e68,_0x262fbc){const _0x108d4f=_0x354fcb;let _0x1c1902=this[_0x108d4f(0x1ed)](_0x196e68,_0x196e68[_0x108d4f(0x1e0)],_0x262fbc);return R([this[_0x108d4f(0x24b)]([_0x108d4f(0x1e0)],_0x196e68[_0x108d4f(0x1e0)],_0x262fbc),..._0x1c1902?[_0x1c1902]:[]]);}[_0x354fcb(0x1ed)](_0x32db73,_0x22c1d3,_0x38541a){const _0xbce59c=_0x354fcb;let _0x567e2f=Object[_0xbce59c(0x1da)](_0x32db73['tables'])['flatMap'](_0x4a381a=>Object[_0xbce59c(0x1da)](_0x4a381a[_0xbce59c(0x480)])[_0xbce59c(0x2a2)](_0x54c828=>{const _0xd1200d=_0xbce59c;var _0x2e45f7,_0x59ba07;if(_0x54c828[_0xd1200d(0x33a)]!==_0x19bf94[_0xd1200d(0x405)])return[];let _0x2d164f=String(((_0x2e45f7=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x2e45f7[_0xd1200d(0x23a)])??''),_0x5b35f8=_0x5981a8(_0x2d164f,_0x22c1d3,_0x38541a);return _0x5b35f8===_0x2d164f?[]:[this['_replaceOptional']([...U[_0xd1200d(0x28b)](_0x4a381a['id'],_0x54c828['id']),_0xd1200d(0x342),_0xd1200d(0x23a)],(_0x59ba07=_0x54c828[_0xd1200d(0x342)])==null?void 0x0:_0x59ba07[_0xd1200d(0x23a)],_0x5b35f8)];}));return _0x567e2f[_0xbce59c(0x458)]>0x0?R(_0x567e2f):void 0x0;}[_0x354fcb(0x500)](_0x5bcd44,_0x4f9dc3,_0x221442=_0x5bcd44[_0x354fcb(0x3e3)]['length']){const _0x4d74de=_0x354fcb;let _0x60153a=_0x3ec76b(_0x4f9dc3[_0x4d74de(0x1e0)],_0x49362b(_0x5bcd44)[_0x4d74de(0x1da)](),_0x4f9dc3[_0x4d74de(0x357)]),_0x4dece8=_0x4f9dc3[_0x4d74de(0x357)]===_0x60153a?_0x4f9dc3:{..._0x4f9dc3,'formulaName':_0x60153a};return R([...this[_0x4d74de(0x317)](_0x5bcd44),_0x370803[_0x4d74de(0x207)](U[_0x4d74de(0x513)](_0x4f9dc3['id']),_0x4dece8),_0x370803[_0x4d74de(0x207)](['tableOrder',_0x221442],_0x4f9dc3['id'])]);}[_0x354fcb(0x1be)](_0x2aa89f,_0x52aa2d,_0x15c8e2){const _0x1c80ab=_0x354fcb;let _0x9e5153=_0x2aa89f[_0x1c80ab(0x2ba)][_0x52aa2d];return R([...this[_0x1c80ab(0x317)](_0x2aa89f),_0x370803['replaceOp']([...U[_0x1c80ab(0x513)](_0x52aa2d),_0x1c80ab(0x1e0)],_0x9e5153[_0x1c80ab(0x1e0)],_0x15c8e2)]);}[_0x354fcb(0x4d8)](_0x8c193e,_0x1efc7c){const _0x4aa7d8=_0x354fcb;let _0x39ce3c=_0x8c193e['tables'][_0x1efc7c],_0x1fa51b=_0x8c193e[_0x4aa7d8(0x3e3)]['indexOf'](_0x1efc7c);return R([...this[_0x4aa7d8(0x317)](_0x8c193e,new Set([_0x1efc7c])),_0x370803[_0x4aa7d8(0x246)](U[_0x4aa7d8(0x513)](_0x1efc7c),_0x39ce3c),_0x370803[_0x4aa7d8(0x246)](['tableOrder',_0x1fa51b],_0x1efc7c)]);}[_0x354fcb(0x4a0)](_0x11e87b,_0x5197d,_0x2058f0){return this['createRecords'](_0x11e87b,_0x5197d,[_0x2058f0]);}[_0x354fcb(0x268)](_0x5372be,_0x46bf77,_0x5bb7f1){const _0x493bde=_0x354fcb;let _0x225d5a=_0x5372be[_0x493bde(0x2ba)][_0x46bf77],_0xff005e=_0x5bb7f1[_0x493bde(0x397)](_0x42c980=>_0x42c980&&!_0x225d5a[_0x493bde(0x45a)][_0x42c980['id']])[_0x493bde(0x29b)](_0x163c45=>({..._0x163c45,'values':{..._0x163c45[_0x493bde(0x1da)],[_0x3b44b5]:_0x163c45['id']}}));if(!_0xff005e['length'])return _0x370803[_0x493bde(0x333)]([...U[_0x493bde(0x513)](_0x46bf77),'records'],_0x225d5a[_0x493bde(0x45a)],_0x225d5a['records']);let _0x4f2a99=new _0x370803[(_0x493bde(0x343))](),_0x1896aa=[..._0xff005e][_0x493bde(0x3db)]((_0x439094,_0x4561f6)=>_0x439094['id']<_0x4561f6['id']?-0x1:+(_0x439094['id']>_0x4561f6['id'])),_0x578ad6=[...U[_0x493bde(0x513)](_0x46bf77),'records'];_0x4f2a99[_0x493bde(0x197)](_0x578ad6);for(let _0x5f2136 of _0x1896aa)_0x4f2a99[_0x493bde(0x1c1)](_0x5f2136['id']),_0x4f2a99[_0x493bde(0x338)]('i',_0x5f2136),_0x4f2a99[_0x493bde(0x2dc)]();for(let _0x10be1a=0x0;_0x10be1a<_0x578ad6[_0x493bde(0x458)];_0x10be1a+=0x1)_0x4f2a99['ascend']();return R([_0x4f2a99[_0x493bde(0x4a8)](),this['_createRecordOrderOp'](_0x5372be,_0x46bf77,_0xff005e)]);}[_0x354fcb(0x375)](_0x448e08,_0x41e5d5,_0x5b644f){const _0x3d76c7=_0x354fcb;return this[_0x3d76c7(0x305)](_0x448e08,_0x41e5d5,[_0x5b644f]);}[_0x354fcb(0x305)](_0x2eb6c6,_0x4dac0e,_0x441b2e){const _0x4d2249=_0x354fcb;let _0x367a20=_0x2eb6c6[_0x4d2249(0x2ba)][_0x4dac0e],_0x3d15c8=Array['from'](new Set(_0x441b2e))[_0x4d2249(0x397)](_0x1282c1=>_0x367a20['records'][_0x1282c1]);if(!_0x3d15c8['length'])return _0x370803[_0x4d2249(0x333)]([...U[_0x4d2249(0x513)](_0x4dac0e),_0x4d2249(0x45a)],_0x367a20[_0x4d2249(0x45a)],_0x367a20['records']);let _0x5a3a3a=new Set(_0x3d15c8),_0x323d9c=et(_0x367a20,_0x3d15c8)['map'](_0x57177b=>this[_0x4d2249(0x3e6)](_0x2eb6c6,_0x4dac0e,_0x57177b['recordId'],_0x57177b[_0x4d2249(0x46e)],''));return R([this[_0x4d2249(0x24c)](_0x2eb6c6,_0x4dac0e,_0x3d15c8,_0x5a3a3a),..._0x323d9c]);}[_0x354fcb(0x51d)](_0x541777,_0x531b53,_0x5518ae,_0x39ee30){const _0x19b61e=_0x354fcb;let _0x3526a4=_0x541777[_0x19b61e(0x2ba)][_0x5518ae],_0xfa08c4=Array[_0x19b61e(0x4dd)](new Set(_0x39ee30))[_0x19b61e(0x397)](_0x3ef604=>_0x3526a4[_0x19b61e(0x45a)][_0x3ef604]),_0x4dcb96=new Set(_0xfa08c4);return R([new z()[_0x19b61e(0x2aa)](_0x541777,this[_0x19b61e(0x24c)](_0x541777,_0x5518ae,_0xfa08c4,_0x4dcb96)),...et(_0x3526a4,_0xfa08c4)['map'](_0x669415=>this[_0x19b61e(0x3e6)](_0x531b53,_0x5518ae,_0x669415[_0x19b61e(0x4bb)],_0x669415[_0x19b61e(0x46e)],_0x669415[_0x19b61e(0x30d)]??''))]);}[_0x354fcb(0x24c)](_0x30d54f,_0x25683e,_0x556b49,_0x4468ad){const _0x54974a=_0x354fcb;let _0xa2aa49=_0x30d54f['tables'][_0x25683e],_0x4a5745=_0x556b49[_0x54974a(0x29b)](_0x1fc5ac=>{const _0x2f7eaf=_0x54974a;var _0x30b1a3;return{'recordId':_0x1fc5ac,'index':((_0x30b1a3=_0xa2aa49[_0x2f7eaf(0x22d)])==null?void 0x0:_0x30b1a3[_0x2f7eaf(0x4c8)](_0x1fc5ac))??-0x1};})[_0x54974a(0x397)](_0x3a25cc=>_0x3a25cc[_0x54974a(0x250)]>=0x0)['sort']((_0x276a42,_0x5edd0e)=>_0x5edd0e[_0x54974a(0x250)]-_0x276a42['index']);return R([..._0x556b49['map'](_0x5c1476=>_0x370803[_0x54974a(0x246)](U[_0x54974a(0x52b)](_0x25683e,_0x5c1476),_0xa2aa49[_0x54974a(0x45a)][_0x5c1476])),..._0x4a5745[_0x54974a(0x29b)](({recordId:_0x33c015,index:_0x5bb885})=>_0x370803[_0x54974a(0x246)]([_0x54974a(0x2ba),_0x25683e,'recordOrder',_0x5bb885],_0x33c015)),...this[_0x54974a(0x4a3)](_0xa2aa49,_0x25683e,_0x3953a6=>{const _0x3a831a=_0x54974a;let _0x257273=_0x3953a6[_0x3a831a(0x192)](_0x3953a6[_0x3a831a(0x444)]('\x1f')+0x1);return _0x4468ad[_0x3a831a(0x23f)](_0x257273);})]);}[_0x354fcb(0x3e5)](_0x5ea815,_0x45cf19,_0x12d5f2,_0x562f2e){const _0x4147ed=_0x354fcb;return this[_0x4147ed(0x4a0)](_0x5ea815,_0x45cf19,{..._0x562f2e,'values':{..._0x5ea815[_0x4147ed(0x2ba)][_0x45cf19][_0x4147ed(0x45a)][_0x12d5f2][_0x4147ed(0x1da)],..._0x562f2e[_0x4147ed(0x1da)],[_0x3b44b5]:_0x562f2e['id']}});}[_0x354fcb(0x229)](_0x15de97,_0x2239cb,_0x5a1aec,_0x4ec67a){const _0x18ae2b=_0x354fcb;let _0x280fde=_0x15de97[_0x18ae2b(0x2ba)][_0x2239cb],_0x4d1c6e=[...U['record'](_0x2239cb,_0x5a1aec),_0x18ae2b(0x3ef)],_0xcd69e4=Object[_0x18ae2b(0x1da)](_0x280fde[_0x18ae2b(0x45a)])[_0x18ae2b(0x29b)](_0x2f3024=>_0x2f3024['id']===_0x5a1aec?{..._0x2f3024,'orderKey':_0x4ec67a}:_0x2f3024)[_0x18ae2b(0x3db)]((_0x56e55f,_0x4e4277)=>String(_0x56e55f[_0x18ae2b(0x3ef)]??_0x56e55f['id'])[_0x18ae2b(0x4bc)](String(_0x4e4277[_0x18ae2b(0x3ef)]??_0x4e4277['id'])))[_0x18ae2b(0x29b)](_0x4694e2=>_0x4694e2['id']),_0x4725cb=[...U['table'](_0x2239cb),'recordOrder'];return R([this[_0x18ae2b(0x24b)](_0x4d1c6e,_0x280fde[_0x18ae2b(0x45a)][_0x5a1aec]['orderKey'],_0x4ec67a),_0x280fde[_0x18ae2b(0x22d)]?_0x370803[_0x18ae2b(0x333)](_0x4725cb,_0x280fde[_0x18ae2b(0x22d)],_0xcd69e4):_0x370803[_0x18ae2b(0x207)](_0x4725cb,_0xcd69e4)]);}['updateCell'](_0x442947,_0x1e74fe,_0x2251df,_0x1ff27f,_0x54d826){const _0x24f67f=_0x354fcb;var _0x38757f,_0x218502;let _0x16d4d9=_0x442947['tables'][_0x1e74fe],_0x109f2d=ar(_0x16d4d9,_0x2251df,_0x1ff27f)?_0x16d4d9:L(_0x16d4d9),_0x5acb88=(_0x38757f=_0x109f2d[_0x24f67f(0x290)])==null?void 0x0:_0x38757f[_0x2251df],_0x3da42e=(_0x218502=_0x109f2d[_0x24f67f(0x288)])==null?void 0x0:_0x218502[_0x1ff27f];if(_0x5acb88==null||_0x3da42e==null){var _0x5519dd;return this['_replaceOptional'](U[_0x24f67f(0x4eb)](_0x1e74fe,_0x2251df,_0x1ff27f),(_0x5519dd=_0x442947[_0x24f67f(0x2ba)][_0x1e74fe])==null||(_0x5519dd=_0x5519dd[_0x24f67f(0x45a)][_0x2251df])==null?void 0x0:_0x5519dd[_0x24f67f(0x1da)][_0x1ff27f],_0x54d826);}return this[_0x24f67f(0x511)](_0x442947,_0x1e74fe,[{'row':_0x5acb88,'col':_0x3da42e,'value':_0x54d826}]);}[_0x354fcb(0x19a)](_0x42b2b1,_0x5ea59e,_0x28f40b){const _0x5c77a2=_0x354fcb;let _0xfbd4d0=_0x42b2b1['tables'][_0x5ea59e],_0x22dcb9=_0x28f40b[_0x5c77a2(0x1b6)](_0x32f45a=>Object[_0x5c77a2(0x51b)](_0x32f45a[_0x5c77a2(0x1da)])[_0x5c77a2(0x1b6)](_0xb9b906=>ar(_0xfbd4d0,_0x32f45a['recordId'],_0xb9b906)))?_0xfbd4d0:L(_0xfbd4d0),_0x286017=_0x28f40b['flatMap'](_0x228547=>Object[_0x5c77a2(0x1e2)](_0x228547[_0x5c77a2(0x1da)])[_0x5c77a2(0x2a2)](([_0x537411,_0x331e55])=>{const _0x525ea7=_0x5c77a2;var _0x2a8ecf,_0x53edf0;let _0x12ec42=(_0x2a8ecf=_0x22dcb9[_0x525ea7(0x290)])==null?void 0x0:_0x2a8ecf[_0x228547[_0x525ea7(0x4bb)]],_0x25d862=(_0x53edf0=_0x22dcb9[_0x525ea7(0x288)])==null?void 0x0:_0x53edf0[_0x537411];return _0x12ec42==null||_0x25d862==null?[]:[{'row':_0x12ec42,'col':_0x25d862,'value':_0x331e55}];})),_0x211c8f=_0x28f40b[_0x5c77a2(0x2a2)](_0x5f41e0=>Object[_0x5c77a2(0x1e2)](_0x5f41e0[_0x5c77a2(0x4b8)]??{})['map'](([_0x450e48,_0x3866a5])=>{const _0xfe8910=_0x5c77a2;var _0x4ec52e;let _0xa959d9=[...U[_0xfe8910(0x52b)](_0x5ea59e,_0x5f41e0[_0xfe8910(0x4bb)]),_0x450e48],_0x6a4810=(_0x4ec52e=_0x42b2b1[_0xfe8910(0x2ba)][_0x5ea59e])==null||(_0x4ec52e=_0x4ec52e[_0xfe8910(0x45a)][_0x5f41e0[_0xfe8910(0x4bb)]])==null?void 0x0:_0x4ec52e[_0x450e48];return this['_replaceOptional'](_0xa959d9,_0x6a4810,_0x3866a5);}));return R([this[_0x5c77a2(0x511)](_0x42b2b1,_0x5ea59e,_0x286017),..._0x211c8f]);}[_0x354fcb(0x511)](_0x37b665,_0x20d686,_0x4ab010){const _0x111137=_0x354fcb;let _0xab954b=_0x37b665[_0x111137(0x2ba)][_0x20d686],_0x4510d7=_0x4ab010[_0x111137(0x1b6)](_0x295918=>or(_0xab954b,_0x295918['row'],_0x295918[_0x111137(0x1ea)]))?_0xab954b:L(_0xab954b),_0x3f6015=new Map(),_0x533cf2=_0x4ab010['flatMap'](_0x26a4d1=>{const _0x545c52=_0x111137;var _0x160a99,_0x52dccc,_0x42c4d7,_0x36eba1;let _0x1069ed=(_0x160a99=_0x4510d7[_0x545c52(0x242)])==null?void 0x0:_0x160a99[_0x26a4d1[_0x545c52(0x1ea)]],_0x16a050=(_0x52dccc=_0x4510d7[_0x545c52(0x474)])==null?void 0x0:_0x52dccc[_0x26a4d1[_0x545c52(0x21b)]],_0x50d2f8=_0x1069ed?_0x4510d7['fields'][_0x1069ed]:void 0x0;if(_0x1069ed===_0x3b44b5||(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x44f)])throw Error(_0x545c52(0x2f2));let _0x2ae7d5=xt(_0x26a4d1[_0x545c52(0x416)],_0x50d2f8),_0x3b5daf=(_0x42c4d7=_0x4510d7[_0x545c52(0x1cf)])==null||(_0x42c4d7=_0x42c4d7[_0x26a4d1['row']])==null?void 0x0:_0x42c4d7[_0x26a4d1[_0x545c52(0x1ea)]],_0x3b889e=this[_0x545c52(0x24b)](U[_0x545c52(0x1cf)](_0x20d686,_0x26a4d1[_0x545c52(0x21b)],_0x26a4d1[_0x545c52(0x1ea)]),_0x3b5daf,_0x2ae7d5);if(!_0x1069ed||!_0x16a050)return[_0x3b889e];let _0x403a0f=(_0x36eba1=_0x4510d7[_0x545c52(0x45a)][_0x16a050])==null?void 0x0:_0x36eba1[_0x545c52(0x1da)][_0x1069ed],_0x2f56e8=(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]?kt(_0x26a4d1[_0x545c52(0x416)]):wt(_0x26a4d1[_0x545c52(0x416)],_0x2ae7d5,_0x50d2f8,_0x4510d7,_0x16a050),_0xe1c566=[_0x3b889e,this[_0x545c52(0x24b)](U[_0x545c52(0x4eb)](_0x20d686,_0x16a050,_0x1069ed),_0x403a0f,_0x2f56e8)];return(_0x50d2f8==null?void 0x0:_0x50d2f8[_0x545c52(0x33a)])===_0x19bf94[_0x545c52(0x46f)]&&_0x3f6015[_0x545c52(0x1a1)](Et(_0x1069ed,_0x16a050),{'recordId':_0x16a050,'fieldId':_0x1069ed,'attachments':_0x2f56e8}),_0xe1c566;});return _0x533cf2['length']?R([..._0x533cf2,...this[_0x111137(0x4d0)](_0x4510d7,_0x20d686,Array[_0x111137(0x4dd)](_0x3f6015[_0x111137(0x1da)]()))]):_0x370803['replaceOp']([_0x111137(0x2ba),_0x20d686,_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)],_0x4510d7[_0x111137(0x1cf)]);}['createField'](_0x17fb5e,_0x5a9c7e,_0x3bbf65){const _0x155938=_0x354fcb;let _0xd19cad=_0x17fb5e[_0x155938(0x2ba)][_0x5a9c7e];if(_0xd19cad[_0x155938(0x480)][_0x3bbf65[_0x155938(0x28b)]['id']]||_0xd19cad['fieldOrder'][_0x155938(0x231)](_0x3bbf65[_0x155938(0x28b)]['id']))return _0x370803['replaceOp']([_0x155938(0x2ba),_0x5a9c7e,_0x155938(0x1e1)],_0xd19cad['fieldOrder'],_0xd19cad[_0x155938(0x1e1)]);let _0x35521b=Math[_0x155938(0x1b3)](0x1,_0x3bbf65[_0x155938(0x250)]??_0xd19cad['fieldOrder']['length']),_0xa7eb07=Object[_0x155938(0x1da)](_0xd19cad[_0x155938(0x38b)]??{})['flatMap'](_0x174848=>{const _0x5885bd=_0x155938;var _0x3701d2;if(!_0x174848[_0x5885bd(0x1e1)]||_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x231)](_0x3bbf65['field']['id']))return[];let _0x3bc4e7=ur(((_0x3701d2=_0x3bbf65[_0x5885bd(0x485)])==null?void 0x0:_0x3701d2[_0x174848['id']])??_0x35521b,_0x174848[_0x5885bd(0x1e1)][_0x5885bd(0x458)]);return[_0x370803[_0x5885bd(0x207)]([...U[_0x5885bd(0x2df)](_0x5a9c7e,_0x174848['id']),_0x5885bd(0x1e1),_0x3bc4e7],_0x3bbf65[_0x5885bd(0x28b)]['id'])];});return R([..._0x3bbf65[_0x155938(0x28b)]['type']===_0x19bf94['Formula']?this[_0x155938(0x317)](_0x17fb5e):[],_0x370803[_0x155938(0x207)](U[_0x155938(0x28b)](_0x5a9c7e,_0x3bbf65[_0x155938(0x28b)]['id']),_0x3bbf65[_0x155938(0x28b)]),_0x370803[_0x155938(0x207)](U[_0x155938(0x1e1)](_0x5a9c7e,_0x35521b),_0x3bbf65[_0x155938(0x28b)]['id']),..._0xa7eb07]);}['duplicateField'](_0x156f99,_0x5b3db4,_0x351a31,_0x49bb5d){const _0x1a538f=_0x354fcb;let _0x261205=_0x156f99[_0x1a538f(0x2ba)][_0x5b3db4];if(!_0x261205[_0x1a538f(0x480)][_0x351a31]||_0x261205[_0x1a538f(0x480)][_0x49bb5d['field']['id']]||_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x231)](_0x49bb5d[_0x1a538f(0x28b)]['id']))return _0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)]);let _0xe8de3d=_0x49bb5d[_0x1a538f(0x250)]??_0x261205[_0x1a538f(0x1e1)][_0x1a538f(0x4c8)](_0x351a31)+0x1,_0x52ebf3=_0x261205[_0x1a538f(0x1e1)]['filter'](_0x311e98=>_0x311e98!==_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x129ce0=cr(_0x52ebf3,_0x49bb5d['field']['id'],_0xe8de3d),_0x18a295=Object['values'](_0x261205[_0x1a538f(0x38b)]??{})[_0x1a538f(0x2a2)](_0x32a69d=>{const _0x8d3ebf=_0x1a538f;var _0x53bd82,_0xe6ce78,_0x32b816,_0x17c0ac;let _0x5cfd98=(_0x53bd82=_0x32a69d[_0x8d3ebf(0x1e1)])!=null&&_0x53bd82['length']?_0x32a69d[_0x8d3ebf(0x1e1)]:_0x52ebf3;if(_0x5cfd98[_0x8d3ebf(0x231)](_0x49bb5d[_0x8d3ebf(0x28b)]['id']))return[];let _0x1531bc=cr(_0x5cfd98,_0x49bb5d[_0x8d3ebf(0x28b)]['id'],((_0xe6ce78=_0x49bb5d['viewIndexes'])==null?void 0x0:_0xe6ce78[_0x32a69d['id']])??_0xe8de3d),_0x1f9fb5=(_0x32b816=_0x32a69d['fieldSettings'])==null?void 0x0:_0x32b816[_0x351a31];return[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),'fieldOrder'],_0x32a69d[_0x8d3ebf(0x1e1)],_0x1531bc),..._0x1f9fb5?[this[_0x8d3ebf(0x24b)]([...U[_0x8d3ebf(0x2df)](_0x5b3db4,_0x32a69d['id']),_0x8d3ebf(0x484),_0x49bb5d[_0x8d3ebf(0x28b)]['id']],(_0x17c0ac=_0x32a69d[_0x8d3ebf(0x484)])==null?void 0x0:_0x17c0ac[_0x49bb5d[_0x8d3ebf(0x28b)]['id']],_0x1f9fb5)]:[]];}),_0x3b4784=Object[_0x1a538f(0x1da)](_0x261205[_0x1a538f(0x45a)])[_0x1a538f(0x397)](_0x4441f9=>Object[_0x1a538f(0x32b)][_0x1a538f(0x42f)]['call'](_0x4441f9[_0x1a538f(0x1da)],_0x351a31))['map'](_0x27104b=>this[_0x1a538f(0x24b)](U[_0x1a538f(0x4eb)](_0x5b3db4,_0x27104b['id'],_0x49bb5d[_0x1a538f(0x28b)]['id']),_0x27104b[_0x1a538f(0x1da)][_0x49bb5d[_0x1a538f(0x28b)]['id']],_0x27104b[_0x1a538f(0x1da)][_0x351a31]));return R([..._0x49bb5d['field'][_0x1a538f(0x33a)]===_0x19bf94[_0x1a538f(0x405)]?this[_0x1a538f(0x317)](_0x156f99):[],_0x370803[_0x1a538f(0x207)](U[_0x1a538f(0x28b)](_0x5b3db4,_0x49bb5d['field']['id']),_0x49bb5d[_0x1a538f(0x28b)]),_0x370803[_0x1a538f(0x333)]([_0x1a538f(0x2ba),_0x5b3db4,_0x1a538f(0x1e1)],_0x261205[_0x1a538f(0x1e1)],_0x129ce0),..._0x18a295,..._0x3b4784]);}[_0x354fcb(0x409)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x415ad5){const _0x421e04=_0x354fcb;let _0x33fc00=_0x350791['tables'][_0x4d6b11][_0x421e04(0x480)][_0x2cb2a3],_0x2be9c8={..._0x33fc00,..._0x415ad5};Object[_0x421e04(0x51b)](_0x415ad5)[_0x421e04(0x461)](_0x1069e0=>{_0x415ad5[_0x1069e0]===void 0x0&&delete _0x2be9c8[_0x1069e0];});let _0x5bb06f=er(_0x350791[_0x421e04(0x2ba)][_0x4d6b11],_0x2cb2a3,_0x33fc00,_0x2be9c8);_0x2be9c8=_0x5bb06f[_0x421e04(0x28b)];let _0xb323a=_0x370803['replaceOp'](U[_0x421e04(0x28b)](_0x4d6b11,_0x2cb2a3),_0x33fc00,_0x2be9c8);return _0x2be9c8[_0x421e04(0x33a)]===_0x19bf94[_0x421e04(0x405)]?R([...this[_0x421e04(0x317)](_0x350791),_0xb323a,...this[_0x421e04(0x221)](_0x350791,_0x4d6b11,_0x2cb2a3,_0x2be9c8)]):R([_0xb323a,..._0x5bb06f[_0x421e04(0x1bc)][_0x421e04(0x458)]?[this['setRangeValues'](_0x350791,_0x4d6b11,_0x5bb06f[_0x421e04(0x1bc)])]:[]]);}[_0x354fcb(0x2b7)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6){const _0x3b8569=_0x354fcb;return this[_0x3b8569(0x409)](_0x1f3e4e,_0x4a39a4,_0x28ee06,_0x5721b6);}['deleteField'](_0x215a4b,_0x259f5c,_0x6dbd9f){const _0x959eb1=_0x354fcb;let _0x5bc7a5=_0x215a4b[_0x959eb1(0x2ba)][_0x259f5c];if(!(_0x5bc7a5!=null&&_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f])||_0x5bc7a5['primaryFieldId']===_0x6dbd9f||_0x6dbd9f===_0x3b44b5)return _0x370803['replaceOp']([_0x959eb1(0x2ba),_0x259f5c,_0x959eb1(0x1e1)],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder'],_0x5bc7a5==null?void 0x0:_0x5bc7a5['fieldOrder']);let _0x3a9042=_0x5bc7a5[_0x959eb1(0x1e1)][_0x959eb1(0x4c8)](_0x6dbd9f),_0x4589b0=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x38b)])[_0x959eb1(0x2a2)](_0x39d898=>{const _0x3ec393=_0x959eb1;var _0x1cbe01,_0x3b900d,_0x409075,_0x282d9f,_0x2592f6,_0x12bf39,_0x2993af;let _0x1f898c=[],_0x5e88ab=((_0x1cbe01=_0x39d898[_0x3ec393(0x1e1)])==null?void 0x0:_0x1cbe01['indexOf'](_0x6dbd9f))??-0x1;_0x5e88ab>=0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803['removeOp']([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x1e1),_0x5e88ab],_0x6dbd9f));let _0xacedc0=(_0x3b900d=_0x39d898[_0x3ec393(0x484)])==null?void 0x0:_0x3b900d[_0x6dbd9f];_0xacedc0!==void 0x0&&_0x1f898c[_0x3ec393(0x1f3)](_0x370803[_0x3ec393(0x246)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x484),_0x6dbd9f],_0xacedc0));let _0x1801c7=_0x39d898[_0x3ec393(0x397)]?{..._0x39d898['filter'],'conditions':_0x39d898['filter'][_0x3ec393(0x309)][_0x3ec393(0x397)](_0x3aecd8=>_0x3aecd8[_0x3ec393(0x46e)]!==_0x6dbd9f)}:_0x39d898[_0x3ec393(0x397)];_0x1801c7&&_0x1801c7[_0x3ec393(0x309)][_0x3ec393(0x458)]!==((_0x409075=_0x39d898[_0x3ec393(0x397)])==null?void 0x0:_0x409075[_0x3ec393(0x309)]['length'])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'filter'],_0x39d898[_0x3ec393(0x397)],_0x1801c7));let _0x2da8f1=(_0x282d9f=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x282d9f[_0x3ec393(0x397)](_0x58f684=>_0x58f684['fieldId']!==_0x6dbd9f);_0x2da8f1&&_0x2da8f1[_0x3ec393(0x458)]!==((_0x2592f6=_0x39d898[_0x3ec393(0x3db)])==null?void 0x0:_0x2592f6[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),_0x3ec393(0x3db)],_0x39d898[_0x3ec393(0x3db)],_0x2da8f1));let _0x1385af=(_0x12bf39=_0x39d898['group'])==null?void 0x0:_0x12bf39[_0x3ec393(0x397)](_0x2aea05=>_0x2aea05['fieldId']!==_0x6dbd9f);_0x1385af&&_0x1385af['length']!==((_0x2993af=_0x39d898['group'])==null?void 0x0:_0x2993af[_0x3ec393(0x458)])&&_0x1f898c[_0x3ec393(0x1f3)](this[_0x3ec393(0x24b)]([...U[_0x3ec393(0x2df)](_0x259f5c,_0x39d898['id']),'group'],_0x39d898[_0x3ec393(0x1b9)],_0x1385af));let _0x5198f7=lr(_0x39d898[_0x3ec393(0x342)],_0x6dbd9f);return JSON['stringify'](_0x5198f7)!==JSON[_0x3ec393(0x449)](_0x39d898['config'])&&_0x1f898c['push'](_0x370803[_0x3ec393(0x333)]([...U['view'](_0x259f5c,_0x39d898['id']),'config'],_0x39d898[_0x3ec393(0x342)],_0x5198f7)),_0x1f898c;}),_0xf25c5d=Object[_0x959eb1(0x1da)](_0x5bc7a5[_0x959eb1(0x45a)])['flatMap'](_0x15970e=>Object['prototype']['hasOwnProperty']['call'](_0x15970e['values'],_0x6dbd9f)?[_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x4eb)](_0x259f5c,_0x15970e['id'],_0x6dbd9f),_0x15970e[_0x959eb1(0x1da)][_0x6dbd9f])]:[]);return R([_0x370803[_0x959eb1(0x246)](U[_0x959eb1(0x28b)](_0x259f5c,_0x6dbd9f),_0x5bc7a5[_0x959eb1(0x480)][_0x6dbd9f]),_0x370803['removeOp'](U[_0x959eb1(0x1e1)](_0x259f5c,_0x3a9042),_0x6dbd9f),..._0x4589b0,..._0xf25c5d,...this[_0x959eb1(0x4a3)](_0x5bc7a5,_0x259f5c,_0x2b5dfa=>_0x2b5dfa[_0x959eb1(0x254)](_0x6dbd9f+'\x1f'))]);}[_0x354fcb(0x399)](_0x2f1b7b,_0x5e237d,_0x37e3e8,_0x501b8e){const _0x493c1d=_0x354fcb;let _0x353105=_0x2f1b7b[_0x493c1d(0x2ba)][_0x5e237d]['fieldOrder'];if(_0x37e3e8===_0x3b44b5||_0x501b8e['beforeFieldId']===_0x3b44b5)throw Error(_0x493c1d(0x1f8));let _0xf529fd=sr(_0x353105,_0x37e3e8,_0x501b8e);return _0x370803[_0x493c1d(0x333)]([_0x493c1d(0x2ba),_0x5e237d,'fieldOrder'],_0x353105,_0xf529fd);}[_0x354fcb(0x446)](_0x5078f0,_0x15d27d,_0x18ad44,_0x3d7d1d=_0x5078f0[_0x354fcb(0x2ba)][_0x15d27d]['viewOrder'][_0x354fcb(0x458)]){const _0x284e53=_0x354fcb;return R([_0x370803[_0x284e53(0x207)](U['view'](_0x15d27d,_0x18ad44['id']),_0x18ad44),_0x370803['insertOp']([_0x284e53(0x2ba),_0x15d27d,_0x284e53(0x3f8),_0x3d7d1d],_0x18ad44['id'])]);}[_0x354fcb(0x370)](_0x4bb194,_0x5b038f,_0x37b347,_0x445fb4){const _0x1d0efe=_0x354fcb;return _0x370803[_0x1d0efe(0x333)]([...U['view'](_0x5b038f,_0x37b347),_0x1d0efe(0x1e0)],_0x4bb194[_0x1d0efe(0x2ba)][_0x5b038f]['views'][_0x37b347][_0x1d0efe(0x1e0)],_0x445fb4);}['deleteView'](_0x20502c,_0x15550f,_0x304c88){const _0x2db9b9=_0x354fcb;let _0x1ebe19=_0x20502c[_0x2db9b9(0x2ba)][_0x15550f],_0x5288fe=_0x1ebe19[_0x2db9b9(0x38b)][_0x304c88],_0x52cbb3=_0x1ebe19[_0x2db9b9(0x3f8)][_0x2db9b9(0x4c8)](_0x304c88);return R([_0x370803[_0x2db9b9(0x246)](U[_0x2db9b9(0x2df)](_0x15550f,_0x304c88),_0x5288fe),_0x370803['removeOp']([_0x2db9b9(0x2ba),_0x15550f,_0x2db9b9(0x3f8),_0x52cbb3],_0x304c88)]);}['moveView'](_0x27ed7e,_0x3c8511,_0x62ab24,_0x178e9d){const _0x57ad45=_0x354fcb;let _0x520409=_0x27ed7e[_0x57ad45(0x2ba)][_0x3c8511][_0x57ad45(0x3f8)],_0x287cbd=sr(_0x520409,_0x62ab24,{'beforeFieldId':_0x178e9d[_0x57ad45(0x2f6)],'afterFieldId':_0x178e9d['afterViewId']});return _0x370803[_0x57ad45(0x333)]([_0x57ad45(0x2ba),_0x3c8511,_0x57ad45(0x3f8)],_0x520409,_0x287cbd);}['updateViewConfig'](_0x449ddf,_0x4516c6,_0x38e5e4,_0x4a077f){const _0x30e3d4=_0x354fcb;let _0x2899bc=_0x449ddf[_0x30e3d4(0x2ba)][_0x4516c6][_0x30e3d4(0x38b)][_0x38e5e4][_0x30e3d4(0x342)]??{},_0x47371f={..._0x2899bc,..._0x4a077f};return Object['keys'](_0x4a077f)[_0x30e3d4(0x461)](_0x30a71c=>{_0x4a077f[_0x30a71c]===void 0x0&&delete _0x47371f[_0x30a71c];}),_0x370803[_0x30e3d4(0x333)]([...U[_0x30e3d4(0x2df)](_0x4516c6,_0x38e5e4),'config'],_0x2899bc,_0x47371f);}['setViewFilter'](_0x3c5f1f,_0x19a0be,_0x511fa0,_0x44b75a){const _0xdd413a=_0x354fcb;return this[_0xdd413a(0x24b)]([...U[_0xdd413a(0x2df)](_0x19a0be,_0x511fa0),_0xdd413a(0x397)],_0x3c5f1f[_0xdd413a(0x2ba)][_0x19a0be]['views'][_0x511fa0][_0xdd413a(0x397)],_0x44b75a);}['setViewSort'](_0x34c328,_0x5291a3,_0x4a6537,_0x322d67){const _0x20f58f=_0x354fcb;return this['_replaceOptional']([...U[_0x20f58f(0x2df)](_0x5291a3,_0x4a6537),'sort'],_0x34c328['tables'][_0x5291a3][_0x20f58f(0x38b)][_0x4a6537][_0x20f58f(0x3db)],_0x322d67);}[_0x354fcb(0x178)](_0x4cb7e8,_0x1f6eed,_0x47997b,_0x4d9bbb){const _0x383d5b=_0x354fcb;return this['_replaceOptional']([...U[_0x383d5b(0x2df)](_0x1f6eed,_0x47997b),'group'],_0x4cb7e8[_0x383d5b(0x2ba)][_0x1f6eed][_0x383d5b(0x38b)][_0x47997b][_0x383d5b(0x1b9)],_0x4d9bbb);}['setViewFieldVisible'](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,_0x34cb69){const _0x4b8341=_0x354fcb;return this[_0x4b8341(0x43e)](_0x3ccd01,_0x9765a4,_0x3f9430,_0x22face,{'hidden':!_0x34cb69});}[_0x354fcb(0x175)](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,_0x50b61c){return this['_setViewFieldSetting'](_0x1bf376,_0x1b4e10,_0x136e28,_0x15fb87,{'width':_0x50b61c});}[_0x354fcb(0x457)](_0x43f4d4,_0x431093,_0x503ed9,_0x1cd65d,_0x85d626){const _0x435dd0=_0x354fcb;let _0xb010b8=_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x38b)][_0x503ed9],_0x4af35d=sr(_0xb010b8[_0x435dd0(0x1e1)]??_0x43f4d4[_0x435dd0(0x2ba)][_0x431093][_0x435dd0(0x1e1)],_0x1cd65d,_0x85d626);return this[_0x435dd0(0x24b)]([...U[_0x435dd0(0x2df)](_0x431093,_0x503ed9),_0x435dd0(0x1e1)],_0xb010b8[_0x435dd0(0x1e1)],_0x4af35d);}['_setViewFieldSetting'](_0x39a88a,_0x2ab5f0,_0x139107,_0x44b745,_0x3bcafe){const _0x41fa9c=_0x354fcb;let _0x506a9e=_0x39a88a[_0x41fa9c(0x2ba)][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)]??{},_0xc87a73={..._0x506a9e,[_0x44b745]:{..._0x506a9e[_0x44b745],..._0x3bcafe}};return this[_0x41fa9c(0x24b)]([...U[_0x41fa9c(0x2df)](_0x2ab5f0,_0x139107),_0x41fa9c(0x484)],_0x39a88a['tables'][_0x2ab5f0][_0x41fa9c(0x38b)][_0x139107][_0x41fa9c(0x484)],_0xc87a73);}['_createRecordOrderOp'](_0x29fe1b,_0x38fd19,_0x5b17fa){const _0x278d36=_0x354fcb;let _0x4366b5=_0x29fe1b[_0x278d36(0x2ba)][_0x38fd19],_0x27289e=new Set(_0x5b17fa['map'](_0xf25330=>_0xf25330['id'])),_0x331ac2=[...Object['values'](_0x4366b5[_0x278d36(0x45a)])['filter'](_0x10d105=>!_0x27289e[_0x278d36(0x23f)](_0x10d105['id'])),..._0x5b17fa][_0x278d36(0x3db)]((_0x1b28b1,_0x4b446a)=>String(_0x1b28b1[_0x278d36(0x3ef)]??_0x1b28b1['id'])[_0x278d36(0x4bc)](String(_0x4b446a[_0x278d36(0x3ef)]??_0x4b446a['id'])))[_0x278d36(0x29b)](_0x58c1c3=>_0x58c1c3['id']),_0x4c1c7c=[...U[_0x278d36(0x513)](_0x38fd19),'recordOrder'];return _0x4366b5[_0x278d36(0x22d)]?_0x370803[_0x278d36(0x333)](_0x4c1c7c,_0x4366b5[_0x278d36(0x22d)],_0x331ac2):_0x370803[_0x278d36(0x207)](_0x4c1c7c,_0x331ac2);}[_0x354fcb(0x317)](_0x2ac4eb,_0x4d7da9=new Set()){const _0x2f29c7=_0x354fcb;let _0x3a0254=_0x49362b(_0x2ac4eb);return Object[_0x2f29c7(0x1da)](_0x2ac4eb[_0x2f29c7(0x2ba)])[_0x2f29c7(0x397)](_0x160c11=>!_0x4d7da9[_0x2f29c7(0x23f)](_0x160c11['id']))[_0x2f29c7(0x3db)]((_0xcbf928,_0x481b6d)=>_0xcbf928['id']['localeCompare'](_0x481b6d['id']))[_0x2f29c7(0x2a2)](_0x1548d5=>{const _0xb6a915=_0x2f29c7;let _0x32a8d2=_0x3a0254['get'](_0x1548d5['id']);return!_0x32a8d2||_0x1548d5[_0xb6a915(0x357)]===_0x32a8d2?[]:[this[_0xb6a915(0x24b)]([...U[_0xb6a915(0x513)](_0x1548d5['id']),'formulaName'],_0x1548d5[_0xb6a915(0x357)],_0x32a8d2)];});}[_0x354fcb(0x221)](_0x60476a,_0x5cdaf5,_0x5376be,_0x5e4af0){const _0x489f30=_0x354fcb;var _0x37906f,_0x33caf8;let _0x372dc4=L(_0x60476a[_0x489f30(0x2ba)][_0x5cdaf5]),_0x263fb6=String(((_0x37906f=_0x5e4af0[_0x489f30(0x342)])==null?void 0x0:_0x37906f['formula'])??'')[_0x489f30(0x3bc)](),_0x56db75=(_0x33caf8=_0x372dc4['colIndex'])==null?void 0x0:_0x33caf8[_0x5376be];if(_0x56db75==null)return[];let _0xcd098d=_0x372dc4['recordOrder']??Object['keys'](_0x372dc4[_0x489f30(0x45a)]),_0x2286b4=_0xcd098d[_0x489f30(0x29b)](_0x2ba7e0=>{const _0x3a1b68=_0x489f30;var _0x26bb6b;return(_0x26bb6b=_0x372dc4[_0x3a1b68(0x290)])==null?void 0x0:_0x26bb6b[_0x2ba7e0];})['find'](_0xd6e2fe=>_0xd6e2fe!=null);return _0xcd098d[_0x489f30(0x2a2)](_0x46b177=>{var _0x10ac9b,_0x450308;let _0x4bbf69=(_0x10ac9b=_0x372dc4['rowIndex'])==null?void 0x0:_0x10ac9b[_0x46b177];if(_0x4bbf69==null)return[];let _0x558af1=(_0x450308=_0x372dc4['cellData'])==null||(_0x450308=_0x450308[_0x4bbf69])==null?void 0x0:_0x450308[_0x56db75],_0x4ad5b2=_0x263fb6?_0x4bbf69===_0x2286b4?{'f':_0x263fb6,'si':_0x5376be}:{'si':_0x5376be}:{'v':null,'t':null};return[this['_replaceOptional'](U['cellData'](_0x5cdaf5,_0x4bbf69,_0x56db75),_0x558af1,_0x4ad5b2)];});}['_setAttachmentResources'](_0x2005ce,_0xe31bf7,_0x4c2a45){const _0x1c9e0b=_0x354fcb;var _0x53de44;let _0x4d0ec2=new Map(Object[_0x1c9e0b(0x1e2)](((_0x53de44=_0x2005ce[_0x1c9e0b(0x358)])==null?void 0x0:_0x53de44[_0x1c9e0b(0x47e)])??{})),_0x3b32e3=new Map(),_0x29d3d2=new Set(),_0xda3729=_0x4c2a45[_0x1c9e0b(0x29b)](({recordId:_0x5e3b0d,fieldId:_0x1606e2,attachments:_0x3880f6})=>{const _0x73b0d3=_0x1c9e0b;var _0x24d11e;let _0x1cbece=Et(_0x1606e2,_0x5e3b0d),_0x25504b=_0x3880f6[_0x73b0d3(0x29b)]((_0x2464d0,_0x2268ef)=>String(_0x2464d0['id']??_0x1cbece+'\x1f'+_0x2268ef));return _0x29d3d2[_0x73b0d3(0x35e)](_0x1cbece),_0x4d0ec2[_0x73b0d3(0x1a1)](_0x1cbece,_0x25504b),_0x3880f6[_0x73b0d3(0x461)]((_0x494324,_0x1bce80)=>{let _0x2e35a1=_0x25504b[_0x1bce80];_0x3b32e3['set'](_0x2e35a1,{..._0x494324,'id':_0x2e35a1});}),this[_0x73b0d3(0x24b)](U[_0x73b0d3(0x4e0)](_0xe31bf7,_0x1cbece),(_0x24d11e=_0x2005ce[_0x73b0d3(0x358)])==null||(_0x24d11e=_0x24d11e[_0x73b0d3(0x47e)])==null?void 0x0:_0x24d11e[_0x1cbece],_0x25504b);}),_0x5a2787=Array[_0x1c9e0b(0x4dd)](_0x3b32e3)[_0x1c9e0b(0x29b)](([_0x172805,_0x1cbcbe])=>{const _0x465bde=_0x1c9e0b;var _0x385059;return this[_0x465bde(0x24b)](U[_0x465bde(0x25c)](_0xe31bf7,_0x172805),(_0x385059=_0x2005ce[_0x465bde(0x358)])==null||(_0x385059=_0x385059['attachments'])==null?void 0x0:_0x385059[_0x172805],_0x1cbcbe);}),_0xa6ebff=new Set(Array[_0x1c9e0b(0x4dd)](_0x4d0ec2['values']())[_0x1c9e0b(0x2ec)]()),_0x30ee1d=new Set(Array[_0x1c9e0b(0x4dd)](_0x29d3d2)['flatMap'](_0x58be78=>{const _0x515d81=_0x1c9e0b;var _0x288209;return((_0x288209=_0x2005ce[_0x515d81(0x358)])==null||(_0x288209=_0x288209['attachmentSets'])==null?void 0x0:_0x288209[_0x58be78])??[];})),_0x1413e6=Array[_0x1c9e0b(0x4dd)](_0x30ee1d)['flatMap'](_0x481f33=>{const _0x4bda0a=_0x1c9e0b;var _0x5c0bf9;let _0x2ac245=(_0x5c0bf9=_0x2005ce[_0x4bda0a(0x358)])==null||(_0x5c0bf9=_0x5c0bf9['attachments'])==null?void 0x0:_0x5c0bf9[_0x481f33];return _0x2ac245!==void 0x0&&!_0xa6ebff['has'](_0x481f33)?[_0x370803[_0x4bda0a(0x246)](U[_0x4bda0a(0x25c)](_0xe31bf7,_0x481f33),_0x2ac245)]:[];});return[..._0xda3729,..._0x5a2787,..._0x1413e6];}[_0x354fcb(0x4a3)](_0x2bdf39,_0x8e81,_0x4e65db){const _0x434755=_0x354fcb;var _0x136d82;let _0x4a4930=((_0x136d82=_0x2bdf39[_0x434755(0x358)])==null?void 0x0:_0x136d82[_0x434755(0x47e)])??{},_0x2576e0=Object['entries'](_0x4a4930)[_0x434755(0x397)](([_0x5c44cd])=>_0x4e65db(_0x5c44cd));if(!_0x2576e0[_0x434755(0x458)])return[];let _0xa8b1a8=new Set(Object[_0x434755(0x1e2)](_0x4a4930)[_0x434755(0x397)](([_0x5b9845])=>!_0x4e65db(_0x5b9845))[_0x434755(0x2a2)](([,_0x1c4f51])=>_0x1c4f51)),_0x277db8=new Set(_0x2576e0[_0x434755(0x2a2)](([,_0x21aed9])=>_0x21aed9));return[..._0x2576e0['map'](([_0xece8cf,_0xb34c44])=>_0x370803['removeOp'](U[_0x434755(0x4e0)](_0x8e81,_0xece8cf),_0xb34c44)),...Array[_0x434755(0x4dd)](_0x277db8)[_0x434755(0x2a2)](_0x4fd623=>{const _0x1eb994=_0x434755;var _0x2f6a76;let _0x217090=(_0x2f6a76=_0x2bdf39[_0x1eb994(0x358)])==null||(_0x2f6a76=_0x2f6a76[_0x1eb994(0x499)])==null?void 0x0:_0x2f6a76[_0x4fd623];return _0x217090!==void 0x0&&!_0xa8b1a8['has'](_0x4fd623)?[_0x370803['removeOp'](U['attachment'](_0x8e81,_0x4fd623),_0x217090)]:[];})];}['_replaceOptional'](_0x578527,_0x6a9fcc,_0x1b2b7a){const _0x1b745b=_0x354fcb;return _0x6a9fcc===void 0x0?_0x370803[_0x1b745b(0x207)](_0x578527,_0x1b2b7a):_0x370803['replaceOp'](_0x578527,_0x6a9fcc,_0x1b2b7a);}};function er(_0x1df614,_0x349f62,_0xa05447,_0x5485b7){const _0x400b6e=_0x354fcb;var _0x3c02c6;let _0x4a1ee5=_0x5485b7['type'];if(_0xa05447['type']!==_0x4a1ee5||_0x4a1ee5!==_0x19bf94[_0x400b6e(0x407)]&&_0x4a1ee5!==_0x19bf94[_0x400b6e(0x283)]||tr(_0x5485b7[_0x400b6e(0x342)][_0x400b6e(0x4cc)]))return{'field':_0x5485b7,'patches':[]};let _0x5acc62=nr(_0xa05447),_0x38a359=nr(_0x5485b7);if(![..._0x5acc62][_0x400b6e(0x257)](_0x4a8897=>!_0x38a359[_0x400b6e(0x23f)](_0x4a8897)))return{'field':_0x5485b7,'patches':[]};let _0x21a537=rr(_0x5485b7[_0x400b6e(0x241)],_0x38a359,_0x4a1ee5),_0x5ae6f9=ir(_0x21a537,_0x5485b7['defaultValue'])?_0x5485b7:{..._0x5485b7,'defaultValue':_0x21a537},_0x221abb=L(_0x1df614),_0x4ea783=(_0x3c02c6=_0x221abb[_0x400b6e(0x288)])==null?void 0x0:_0x3c02c6[_0x349f62];return _0x4ea783==null?{'field':_0x5ae6f9,'patches':[]}:{'field':_0x5ae6f9,'patches':(_0x221abb[_0x400b6e(0x22d)]??[])['flatMap'](_0x1e94a6=>{const _0x3f379b=_0x400b6e;var _0x4f2cbd,_0x1a5141;let _0x3bd8b2=(_0x4f2cbd=_0x221abb['rowIndex'])==null?void 0x0:_0x4f2cbd[_0x1e94a6],_0x1c0d3b=(_0x1a5141=_0x221abb['records'][_0x1e94a6])==null?void 0x0:_0x1a5141[_0x3f379b(0x1da)][_0x349f62],_0x3e6bd7=rr(_0x1c0d3b,_0x38a359,_0x4a1ee5);return _0x3bd8b2==null||ir(_0x3e6bd7,_0x1c0d3b)?[]:[{'row':_0x3bd8b2,'col':_0x4ea783,'value':_0x3e6bd7??null}];})};}function tr(_0x3df10c){const _0x5d7d2c=_0x354fcb;return typeof _0x3df10c==_0x5d7d2c(0x269)&&!!_0x3df10c&&_0x5d7d2c(0x33a)in _0x3df10c&&_0x3df10c[_0x5d7d2c(0x33a)]===_0x5d7d2c(0x28b);}function nr(_0x83ae51){const _0x58bf45=_0x354fcb;var _0x3412a3;let _0x5b977d=Array[_0x58bf45(0x354)]((_0x3412a3=_0x83ae51['config'])==null?void 0x0:_0x3412a3[_0x58bf45(0x392)])?_0x83ae51[_0x58bf45(0x342)]['options']:[];return new Set(_0x5b977d['flatMap'](_0xbb98ac=>{const _0x49bc89=_0x58bf45;if(!_0xbb98ac||typeof _0xbb98ac!=_0x49bc89(0x269)||!('id'in _0xbb98ac))return[];let _0x43006c=String(_0xbb98ac['id']);return _0x43006c?[_0x43006c]:[];}));}function rr(_0x2cc61d,_0x56260e,_0x4f53dc){const _0x37cd83=_0x354fcb;if(_0x2cc61d==null||_0x2cc61d==='')return _0x2cc61d;if(_0x4f53dc===_0x19bf94['SingleSelect'])return _0x56260e[_0x37cd83(0x23f)](String(_0x2cc61d))?_0x2cc61d:null;let _0x1b7112=Array[_0x37cd83(0x354)](_0x2cc61d)?_0x2cc61d['map'](String):String(_0x2cc61d)['split'](',')[_0x37cd83(0x29b)](_0x3127fd=>_0x3127fd[_0x37cd83(0x3bc)]())[_0x37cd83(0x397)](Boolean),_0x3452d7=_0x1b7112[_0x37cd83(0x397)](_0x5982a0=>_0x56260e[_0x37cd83(0x23f)](_0x5982a0));return _0x3452d7[_0x37cd83(0x458)]===_0x1b7112['length']?_0x2cc61d:Array['isArray'](_0x2cc61d)?_0x3452d7:String(_0x2cc61d)[_0x37cd83(0x231)](',')?_0x3452d7[_0x37cd83(0x4b5)](','):_0x3452d7[0x0]??[];}function ir(_0x35b304,_0x42dea8){const _0x2648d6=_0x354fcb;return JSON[_0x2648d6(0x449)](_0x35b304)===JSON['stringify'](_0x42dea8);}function ar(_0x282280,_0x2d8157,_0x29be59){const _0xa89b1c=_0x354fcb;var _0x22f403,_0x2a8be2,_0x476cd2,_0x41f1d7;let _0x52cbe2=(_0x22f403=_0x282280[_0xa89b1c(0x290)])==null?void 0x0:_0x22f403[_0x2d8157],_0x14287a=(_0x2a8be2=_0x282280[_0xa89b1c(0x288)])==null?void 0x0:_0x2a8be2[_0x29be59];return _0x52cbe2!=null&&_0x14287a!=null&&((_0x476cd2=_0x282280[_0xa89b1c(0x474)])==null?void 0x0:_0x476cd2[_0x52cbe2])===_0x2d8157&&((_0x41f1d7=_0x282280[_0xa89b1c(0x242)])==null?void 0x0:_0x41f1d7[_0x14287a])===_0x29be59&&_0x282280[_0xa89b1c(0x1cf)]!=null;}function or(_0x322a7b,_0x248f31,_0x30bc9f){const _0x2fa164=_0x354fcb;var _0x370674,_0x55fc65;return((_0x370674=_0x322a7b[_0x2fa164(0x474)])==null?void 0x0:_0x370674[_0x248f31])!=null&&((_0x55fc65=_0x322a7b['colId'])==null?void 0x0:_0x55fc65[_0x30bc9f])!=null&&_0x322a7b[_0x2fa164(0x1cf)]!=null;}function sr(_0x5a038e,_0x8cd1f1,_0x5722f6){const _0x315efc=_0x354fcb;let _0x2721da=_0x5a038e['filter'](_0x2c2216=>_0x2c2216!==_0x8cd1f1),_0x239dc7=_0x5722f6['beforeFieldId']?_0x2721da['indexOf'](_0x5722f6[_0x315efc(0x381)]):_0x5722f6[_0x315efc(0x27b)]?_0x2721da[_0x315efc(0x4c8)](_0x5722f6[_0x315efc(0x27b)])+0x1:_0x2721da[_0x315efc(0x458)];return _0x2721da[_0x315efc(0x47d)](_0x239dc7<0x0?_0x2721da[_0x315efc(0x458)]:_0x239dc7,0x0,_0x8cd1f1),_0x2721da;}function cr(_0x4c6eae,_0x31b7fd,_0x2b42e7){const _0x1b4876=_0x354fcb;let _0x16acf0=_0x4c6eae['filter'](_0x5a0255=>_0x5a0255!==_0x31b7fd);return _0x16acf0[_0x1b4876(0x47d)](ur(_0x2b42e7,_0x16acf0['length']),0x0,_0x31b7fd),_0x16acf0;}function lr(_0x47cb45,_0x34c493,_0x5e9db4){const _0x519d4b=_0x354fcb;if(Array[_0x519d4b(0x354)](_0x47cb45))return _0x5e9db4===_0x519d4b(0x227)?_0x47cb45[_0x519d4b(0x397)](_0x123be4=>_0x123be4!==_0x34c493):_0x47cb45[_0x519d4b(0x2a2)](_0x1c5e0f=>{const _0x46ab4d=_0x519d4b;if(_0x1c5e0f&&typeof _0x1c5e0f=='object'&&!Array[_0x46ab4d(0x354)](_0x1c5e0f)&&_0x1c5e0f[_0x46ab4d(0x46e)]===_0x34c493)return[];let _0x4800f7=lr(_0x1c5e0f,_0x34c493);return _0x4800f7===void 0x0?[]:[_0x4800f7];});if(!_0x47cb45||typeof _0x47cb45!='object')return _0x5e9db4!=null&&_0x5e9db4[_0x519d4b(0x424)](_0x519d4b(0x334))&&_0x47cb45===_0x34c493?void 0x0:_0x47cb45;let _0x52813b=_0x47cb45;if(_0x52813b[_0x519d4b(0x46e)]!==_0x34c493)return Object[_0x519d4b(0x2e8)](Object['entries'](_0x52813b)[_0x519d4b(0x2a2)](([_0x405a84,_0x4a8ea2])=>{const _0x4cb536=_0x519d4b;if(_0x405a84===_0x34c493&&_0x5e9db4===_0x4cb536(0x484))return[];let _0x5ad692=lr(_0x4a8ea2,_0x34c493,_0x405a84);return _0x5ad692===void 0x0?[]:[[_0x405a84,_0x5ad692]];}));}function ur(_0x2c8671,_0x414a05){const _0x4eccc4=_0x354fcb;return Math[_0x4eccc4(0x1b3)](0x0,Math[_0x4eccc4(0x35d)](_0x2c8671,_0x414a05));}function dr(_0x119f09){'@babel/helpers - typeof';const _0x4768ed=_0x354fcb;return dr=typeof Symbol=='function'&&typeof Symbol[_0x4768ed(0x25e)]==_0x4768ed(0x451)?function(_0x3a7d16){return typeof _0x3a7d16;}:function(_0x466350){const _0x36d362=_0x4768ed;return _0x466350&&typeof Symbol==_0x36d362(0x389)&&_0x466350['constructor']===Symbol&&_0x466350!==Symbol[_0x36d362(0x32b)]?_0x36d362(0x451):typeof _0x466350;},dr(_0x119f09);}function fr(_0x62cb11,_0x362e71){const _0x5b3a55=_0x354fcb;if(dr(_0x62cb11)!='object'||!_0x62cb11)return _0x62cb11;var _0x20c4c3=_0x62cb11[Symbol[_0x5b3a55(0x41c)]];if(_0x20c4c3!==void 0x0){var _0x1a3183=_0x20c4c3[_0x5b3a55(0x331)](_0x62cb11,_0x362e71||_0x5b3a55(0x3ac));if(dr(_0x1a3183)!=_0x5b3a55(0x269))return _0x1a3183;throw TypeError(_0x5b3a55(0x512));}return(_0x362e71===_0x5b3a55(0x471)?String:Number)(_0x62cb11);}function pr(_0x159e2c){const _0x5ceb1d=_0x354fcb;var _0x1f3263=fr(_0x159e2c,_0x5ceb1d(0x471));return dr(_0x1f3263)=='symbol'?_0x1f3263:_0x1f3263+'';}function G(_0x319a67,_0x5f30bf,_0x1f76e6){const _0x30867e=_0x354fcb;return(_0x5f30bf=pr(_0x5f30bf))in _0x319a67?Object[_0x30867e(0x2b6)](_0x319a67,_0x5f30bf,{'value':_0x1f76e6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x319a67[_0x5f30bf]=_0x1f76e6,_0x319a67;}const mr=_0x5d0ae0(_0x354fcb(0x273));var hr=class extends _0x1589db{constructor(..._0x4c3777){const _0x5abb94=_0x354fcb;super(..._0x4c3777),G(this,_0x5abb94(0x252),new Map());}[_0x354fcb(0x2f4)](_0x360f7c){const _0x25febb=_0x354fcb;return this[_0x25febb(0x252)]['set'](_0x360f7c[_0x25febb(0x33a)],_0x360f7c),_0x5b4066(()=>this[_0x25febb(0x252)]['delete'](_0x360f7c[_0x25febb(0x33a)]));}[_0x354fcb(0x4a8)](_0x777a4f){const _0x150fd9=_0x354fcb;let _0x2ef3e7=this[_0x150fd9(0x252)]['get'](_0x777a4f);if(!_0x2ef3e7)throw Error(_0x150fd9(0x196)+_0x777a4f+_0x150fd9(0x371));return _0x2ef3e7;}[_0x354fcb(0x3c6)](_0x111415){const _0x294496=_0x354fcb;return this[_0x294496(0x252)][_0x294496(0x4a8)](_0x111415);}['getAll'](){const _0x419445=_0x354fcb;return Array[_0x419445(0x4dd)](this['_plugins'][_0x419445(0x1da)]());}},gr=class{constructor(_0x3bf1f8){const _0x32f669=_0x354fcb;this[_0x32f669(0x278)]=_0x3bf1f8,G(this,_0x32f669(0x33a),_0x56e21f['Base']),G(this,_0x32f669(0x200),_0x391870[_0x32f669(0x36a)]),G(this,_0x32f669(0x372),_0x15f2b3[_0x32f669(0x3e4)]),G(this,'id',void 0x0),G(this,_0x32f669(0x416),!0x0),this['id']=this[_0x32f669(0x33a)]+'.'+this[_0x32f669(0x200)]+'_'+_0x3bf1f8;}},_r=class{constructor(_0x2672a6){const _0x5f0de4=_0x354fcb;this['unitId']=_0x2672a6,G(this,_0x5f0de4(0x33a),_0x56e21f['Base']),G(this,'subType',_0x391870['Copy']),G(this,'status',_0x15f2b3[_0x5f0de4(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x5f0de4(0x33a)]+'.'+this[_0x5f0de4(0x200)]+'_'+_0x2672a6;}},vr=class{constructor(_0x296b01){const _0xce174d=_0x354fcb;this[_0xce174d(0x278)]=_0x296b01,G(this,_0xce174d(0x33a),_0x56e21f[_0xce174d(0x318)]),G(this,'subType',_0x391870['Edit']),G(this,_0xce174d(0x372),_0x15f2b3[_0xce174d(0x3e4)]),G(this,'id',void 0x0),G(this,_0xce174d(0x416),!0x0),this['id']=this[_0xce174d(0x33a)]+'.'+this[_0xce174d(0x200)]+'_'+_0x296b01;}},yr=class{constructor(_0x47dda2){const _0x4411f6=_0x354fcb;this['unitId']=_0x47dda2,G(this,_0x4411f6(0x33a),_0x56e21f[_0x4411f6(0x318)]),G(this,'subType',_0x391870[_0x4411f6(0x479)]),G(this,_0x4411f6(0x372),_0x15f2b3[_0x4411f6(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x4411f6(0x200)]+'_'+_0x47dda2;}},br=class{constructor(_0x2fe77e,_0xcdf329){const _0x35a572=_0x354fcb;this[_0x35a572(0x278)]=_0x2fe77e,this[_0x35a572(0x225)]=_0xcdf329,G(this,'type',_0x56e21f[_0x35a572(0x3f9)]),G(this,'subType',_0x391870[_0x35a572(0x463)]),G(this,_0x35a572(0x372),_0x15f2b3[_0x35a572(0x3e4)]),G(this,'id',void 0x0),G(this,_0x35a572(0x416),!0x0),this['id']=this[_0x35a572(0x33a)]+'.'+this[_0x35a572(0x200)]+'_'+_0x2fe77e+'_'+_0xcdf329;}},xr=class{constructor(_0x478fd6,_0x3f5799){const _0x46c1dd=_0x354fcb;this[_0x46c1dd(0x278)]=_0x478fd6,this['objectId']=_0x3f5799,G(this,'type',_0x56e21f['BaseField']),G(this,_0x46c1dd(0x200),_0x391870[_0x46c1dd(0x463)]),G(this,_0x46c1dd(0x372),_0x15f2b3[_0x46c1dd(0x3e4)]),G(this,'id',void 0x0),G(this,_0x46c1dd(0x416),!0x0),this['id']=this[_0x46c1dd(0x33a)]+'.'+this[_0x46c1dd(0x200)]+'_'+_0x478fd6+'_'+_0x3f5799;}},Sr=class{constructor(_0x4dd240,_0x394d23){const _0x1a093c=_0x354fcb;this[_0x1a093c(0x278)]=_0x4dd240,this['objectId']=_0x394d23,G(this,_0x1a093c(0x33a),_0x56e21f[_0x1a093c(0x1dc)]),G(this,_0x1a093c(0x200),_0x391870['Edit']),G(this,_0x1a093c(0x372),_0x15f2b3[_0x1a093c(0x3e4)]),G(this,'id',void 0x0),G(this,_0x1a093c(0x416),!0x0),this['id']=this[_0x1a093c(0x33a)]+'.'+this[_0x1a093c(0x200)]+'_'+_0x4dd240+'_'+_0x394d23;}},Cr=class{constructor(_0x5b0327,_0x13a9ba){const _0x128c5d=_0x354fcb;this[_0x128c5d(0x278)]=_0x5b0327,this[_0x128c5d(0x225)]=_0x13a9ba,G(this,'type',_0x56e21f['BaseTable']),G(this,_0x128c5d(0x200),_0x391870['Edit']),G(this,_0x128c5d(0x372),_0x15f2b3[_0x128c5d(0x3e4)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this[_0x128c5d(0x200)]+'_'+_0x5b0327+'_'+_0x13a9ba;}},wr=class{constructor(_0x58754b,_0x4621b4){const _0x45651b=_0x354fcb;this['unitId']=_0x58754b,this[_0x45651b(0x225)]=_0x4621b4,G(this,_0x45651b(0x33a),_0x56e21f[_0x45651b(0x52a)]),G(this,_0x45651b(0x200),_0x391870[_0x45651b(0x463)]),G(this,'status',_0x15f2b3[_0x45651b(0x3e4)]),G(this,'id',void 0x0),G(this,_0x45651b(0x416),!0x0),this['id']=this[_0x45651b(0x33a)]+'.'+this['subType']+'_'+_0x58754b+'_'+_0x4621b4;}};const Tr=[_0x391870[_0x354fcb(0x463)],_0x391870[_0x354fcb(0x453)],_0x391870[_0x354fcb(0x479)],_0x391870[_0x354fcb(0x36a)]],Er=new Set([_0x56e21f['Base'],_0x56e21f[_0x354fcb(0x1d0)],_0x56e21f[_0x354fcb(0x4ef)],_0x56e21f[_0x354fcb(0x1dc)],_0x56e21f[_0x354fcb(0x52a)],_0x56e21f['BaseDashboard']]),Dr=_0x354fcb(0x2e3),Or=_0x354fcb(0x45f),kr=_0x354fcb(0x4fe),Ar='view/',jr=_0x354fcb(0x237);function K(_0x20420e){return''+Dr+encodeURIComponent(_0x20420e);}function q(_0x345ce0,_0x5df5a5){return''+Or+encodeURIComponent(_0x345ce0)+'/'+encodeURIComponent(_0x5df5a5);}function J(_0x260ed1,_0x44e15d){return''+kr+encodeURIComponent(_0x260ed1)+'/'+encodeURIComponent(_0x44e15d);}function Mr(_0x4f7cfb,_0x4eabe5){return''+Ar+encodeURIComponent(_0x4f7cfb)+'/'+encodeURIComponent(_0x4eabe5);}function Nr(_0xecf542){return''+jr+encodeURIComponent(_0xecf542);}function Pr(_0x47b93d,_0x309b52,_0x1b1b13){const _0x4a84dd=_0x354fcb;if(_0x309b52===_0x47b93d)switch(_0x1b1b13){case _0x391870[_0x4a84dd(0x463)]:return new vr(_0x47b93d);case _0x391870[_0x4a84dd(0x453)]:return new _r(_0x47b93d);case _0x391870['Export']:return new yr(_0x47b93d);case _0x391870[_0x4a84dd(0x36a)]:return new gr(_0x47b93d);default:throw Error('Unsupported\x20Base\x20permission\x20action:\x20'+_0x1b1b13);}if(_0x1b1b13!==_0x391870[_0x4a84dd(0x463)])throw Error(_0x4a84dd(0x35b)+_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Dr))return new Cr(_0x47b93d,_0x309b52);if(_0x309b52['startsWith'](Or))return new xr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](kr))return new Sr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](Ar))return new wr(_0x47b93d,_0x309b52);if(_0x309b52[_0x4a84dd(0x254)](jr))return new br(_0x47b93d,_0x309b52);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x309b52);}function Fr(_0x3d5373,_0x46f426,_0x5645d7,_0x5a49e0){const _0x1bfa1d=_0x354fcb;var _0x2623c5;return((_0x2623c5=_0x3d5373['getPermissionPoint'](Pr(_0x46f426,_0x5645d7,_0x5a49e0)['id']))==null?void 0x0:_0x2623c5[_0x1bfa1d(0x416)])??!0x0;}function Ir(_0x46e807,_0x21472,_0x4de206,_0x447016,_0x3fd401){const _0x4c40ba=_0x354fcb;let _0x27f719=Pr(_0x21472,_0x4de206,_0x447016);_0x46e807[_0x4c40ba(0x1c9)](_0x27f719['id'])||_0x46e807[_0x4c40ba(0x2da)](_0x27f719),_0x46e807[_0x4c40ba(0x447)](_0x27f719['id'],_0x3fd401);}function Lr(_0x20fbce,_0x3f38d4,_0x397b8e,_0x13c53a){const _0x471c61=_0x354fcb;_0x20fbce[_0x471c61(0x509)](Pr(_0x3f38d4,_0x397b8e,_0x13c53a)['id']);}function Rr(_0x293b92,_0x52540c){const _0x3a8192=_0x354fcb;_0x293b92[_0x3a8192(0x3b8)]()[_0x3a8192(0x461)]((_0xf884e0,_0x5c35fd)=>{const _0xed9c89=_0x3a8192;_0xf884e0[_0xed9c89(0x30f)](_0x98e0a0=>{const _0x277bf3=_0xed9c89;Er[_0x277bf3(0x23f)](_0x98e0a0[_0x277bf3(0x33a)])&&_0x277bf3(0x278)in _0x98e0a0&&_0x98e0a0[_0x277bf3(0x278)]===_0x52540c&&_0x293b92[_0x277bf3(0x509)](_0x5c35fd);})['unsubscribe']();});}function zr(_0x3cf926,_0x4336b7,_0x5ecca1){const _0x335ac1=_0x354fcb;return Fr(_0x3cf926,_0x4336b7,_0x4336b7,_0x391870[_0x335ac1(0x463)])&&Array[_0x335ac1(0x4dd)](_0x5ecca1)[_0x335ac1(0x1b6)](_0x4bd53e=>Fr(_0x3cf926,_0x4336b7,_0x4bd53e,_0x391870[_0x335ac1(0x463)]));}function Y(_0x78ec34,_0x4ca9b1){return function(_0x3a39d8,_0x5b9233){_0x4ca9b1(_0x3a39d8,_0x5b9233,_0x78ec34);};}function X(_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd){const _0xf37495=_0x354fcb;var _0xd580ef=arguments[_0xf37495(0x458)],_0x270476=_0xd580ef<0x3?_0x530b93:_0x38eccd===null?_0x38eccd=Object[_0xf37495(0x503)](_0x530b93,_0x29f355):_0x38eccd,_0x309d5a;if(typeof Reflect==_0xf37495(0x269)&&typeof Reflect[_0xf37495(0x3f3)]==_0xf37495(0x389))_0x270476=Reflect[_0xf37495(0x3f3)](_0x3e7abe,_0x530b93,_0x29f355,_0x38eccd);else{for(var _0x2eacbf=_0x3e7abe[_0xf37495(0x458)]-0x1;_0x2eacbf>=0x0;_0x2eacbf--)(_0x309d5a=_0x3e7abe[_0x2eacbf])&&(_0x270476=(_0xd580ef<0x3?_0x309d5a(_0x270476):_0xd580ef>0x3?_0x309d5a(_0x530b93,_0x29f355,_0x270476):_0x309d5a(_0x530b93,_0x29f355))||_0x270476);}return _0xd580ef>0x3&&_0x270476&&Object[_0xf37495(0x2b6)](_0x530b93,_0x29f355,_0x270476),_0x270476;}const Br=_0x5d0ae0('base.permission.service');let Vr=class extends _0x1589db{constructor(_0x577945,_0x5c4df7){const _0x356a2f=_0x354fcb;super(),this[_0x356a2f(0x487)]=_0x577945,this[_0x356a2f(0x2cf)]=_0x5c4df7,G(this,_0x356a2f(0x35a),new Map()),G(this,'_tablePermissions',new Map()),G(this,'_fieldPermissions',new Map()),G(this,'_recordPermissions',new Map()),G(this,_0x356a2f(0x4ac),new Map()),G(this,_0x356a2f(0x1f7),new Map()),this[_0x356a2f(0x1b4)](this[_0x356a2f(0x2cf)]['getTypeOfUnitDisposed$'](_0x28d752['UNIVER_BASE'])[_0x356a2f(0x30f)](_0x5e235f=>this[_0x356a2f(0x1d7)](_0x5e235f[_0x356a2f(0x422)]())));}[_0x354fcb(0x352)](_0x6322f6){const _0x4b6f65=_0x354fcb;var _0x33ce2e;return this[_0x4b6f65(0x1fa)](_0x6322f6,[])&&(((_0x33ce2e=this[_0x4b6f65(0x35a)][_0x4b6f65(0x4a8)](_0x6322f6))==null?void 0x0:_0x33ce2e[_0x4b6f65(0x500)])??!0x0);}[_0x354fcb(0x481)](_0x5239bf){const _0x2b0046=_0x354fcb;return this[_0x2b0046(0x385)](_0x5239bf);}[_0x354fcb(0x3c1)](_0x54ae4d){const _0x3873ca=_0x354fcb;var _0x303a3d;return this['_canEditTable'](_0x54ae4d)&&(((_0x303a3d=this[_0x3873ca(0x415)][_0x3873ca(0x4a8)](_0x54ae4d))==null?void 0x0:_0x303a3d[_0x3873ca(0x4f4)])??!0x0);}[_0x354fcb(0x293)](_0x1643c6){const _0x5938ae=_0x354fcb;var _0x5b6476;return this[_0x5938ae(0x385)](_0x1643c6)&&(((_0x5b6476=this[_0x5938ae(0x415)][_0x5938ae(0x4a8)](_0x1643c6))==null?void 0x0:_0x5b6476[_0x5938ae(0x2c0)])??!0x0);}[_0x354fcb(0x341)](_0x46c98f,_0x1e81f4){const _0x16ffe1=_0x354fcb;var _0x2d9c53;return this[_0x16ffe1(0x385)](_0x46c98f)&&this[_0x16ffe1(0x1fa)](_0x46c98f,[q(_0x46c98f,_0x1e81f4)])&&(((_0x2d9c53=this[_0x16ffe1(0x44a)]['get'](Ur(_0x46c98f,_0x1e81f4)))==null?void 0x0:_0x2d9c53[_0x16ffe1(0x1db)])??!0x0);}['canDeleteField'](_0x24b017,_0x3db578){const _0xc9f061=_0x354fcb;var _0x524990;return this['canEditField'](_0x24b017,_0x3db578)&&(((_0x524990=this['_fieldPermissions'][_0xc9f061(0x4a8)](Ur(_0x24b017,_0x3db578)))==null?void 0x0:_0x524990[_0xc9f061(0x4f4)])??!0x0);}['canCreateRecord'](_0x249808){const _0x1a99ce=_0x354fcb;var _0x114502;return this[_0x1a99ce(0x385)](_0x249808)&&(((_0x114502=this[_0x1a99ce(0x415)][_0x1a99ce(0x4a8)](_0x249808))==null?void 0x0:_0x114502[_0x1a99ce(0x4a0)])??!0x0);}[_0x354fcb(0x210)](_0x1f8e43,_0xd65409){const _0x4c3154=_0x354fcb;var _0x229e30;let _0x2eab8f=this[_0x4c3154(0x203)][_0x4c3154(0x4a8)](Wr(_0x1f8e43,_0xd65409));return this[_0x4c3154(0x1fa)](_0x1f8e43,[K(_0x1f8e43),J(_0x1f8e43,_0xd65409)])&&(((_0x229e30=this[_0x4c3154(0x415)][_0x4c3154(0x4a8)](_0x1f8e43))==null?void 0x0:_0x229e30['edit'])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f[_0x4c3154(0x1db)])??!0x0)&&((_0x2eab8f==null?void 0x0:_0x2eab8f['editCell'])??!0x0);}['canDeleteRecord'](_0x49d50e,_0x4dab7c){const _0x465eec=_0x354fcb;var _0x29d943,_0x45794d,_0x5eb41;return this['_canEdit'](_0x49d50e,[K(_0x49d50e),J(_0x49d50e,_0x4dab7c)])&&(((_0x29d943=this[_0x465eec(0x415)]['get'](_0x49d50e))==null?void 0x0:_0x29d943[_0x465eec(0x1db)])??!0x0)&&(((_0x45794d=this[_0x465eec(0x203)]['get'](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x45794d[_0x465eec(0x1db)])??!0x0)&&(((_0x5eb41=this[_0x465eec(0x203)][_0x465eec(0x4a8)](Wr(_0x49d50e,_0x4dab7c)))==null?void 0x0:_0x5eb41[_0x465eec(0x4f4)])??!0x0);}['canEditCell'](_0x20d995,_0x3c3d05,_0x2f3075){const _0x110ae9=_0x354fcb;var _0x392d0f,_0x1bdd1c,_0x2d0caa;let _0x442eb2=this['_fieldPermissions'][_0x110ae9(0x4a8)](Ur(_0x20d995,_0x2f3075));return this[_0x110ae9(0x1fa)](_0x20d995,[K(_0x20d995),q(_0x20d995,_0x2f3075),J(_0x20d995,_0x3c3d05)])&&(((_0x392d0f=this[_0x110ae9(0x415)][_0x110ae9(0x4a8)](_0x20d995))==null?void 0x0:_0x392d0f[_0x110ae9(0x1db)])??!0x0)&&(((_0x1bdd1c=this[_0x110ae9(0x203)][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x1bdd1c[_0x110ae9(0x1db)])??!0x0)&&(((_0x2d0caa=this['_recordPermissions'][_0x110ae9(0x4a8)](Wr(_0x20d995,_0x3c3d05)))==null?void 0x0:_0x2d0caa[_0x110ae9(0x38c)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x1db)])??!0x0)&&((_0x442eb2==null?void 0x0:_0x442eb2[_0x110ae9(0x38c)])??!0x0);}['canManageView'](_0xc4e424,_0xcec1f4){const _0x180261=_0x354fcb;var _0x120ba2,_0x494753,_0x157359;return this['_canEdit'](_0xc4e424,[K(_0xc4e424),Mr(_0xc4e424,_0xcec1f4)])&&(((_0x120ba2=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x120ba2[_0x180261(0x1db)])??!0x0)&&(((_0x494753=this[_0x180261(0x4ac)][_0x180261(0x4a8)](Gr(_0xc4e424,_0xcec1f4)))==null?void 0x0:_0x494753[_0x180261(0x1db)])??!0x0)&&(((_0x157359=this[_0x180261(0x415)][_0x180261(0x4a8)](_0xc4e424))==null?void 0x0:_0x157359[_0x180261(0x238)])??!0x0);}['setBasePermission'](_0x4538cb,_0x5a1c95){const _0x449fa8=_0x354fcb;this['_basePermissions'][_0x449fa8(0x1a1)](_0x4538cb,{...this['_basePermissions'][_0x449fa8(0x4a8)](_0x4538cb),..._0x5a1c95}),_0x5a1c95[_0x449fa8(0x1db)]!==void 0x0&&Ir(this['_permissionService'],_0x4538cb,_0x4538cb,_0x391870['Edit'],_0x5a1c95[_0x449fa8(0x1db)]);}[_0x354fcb(0x298)](_0x2af400,_0x19c399){const _0x5d2b3e=_0x354fcb;this['_rememberTable'](_0x2af400),this[_0x5d2b3e(0x415)][_0x5d2b3e(0x1a1)](_0x2af400,{...this[_0x5d2b3e(0x415)]['get'](_0x2af400),..._0x19c399}),this[_0x5d2b3e(0x258)](_0x2af400,K(_0x2af400),_0x19c399['edit']);}[_0x354fcb(0x49e)](_0x31a8e1,_0xe7c615,_0x328d33){const _0xdc1ab1=_0x354fcb;this[_0xdc1ab1(0x17f)](_0x31a8e1);let _0x43d2ea=Ur(_0x31a8e1,_0xe7c615);this[_0xdc1ab1(0x44a)][_0xdc1ab1(0x1a1)](_0x43d2ea,{...this['_fieldPermissions'][_0xdc1ab1(0x4a8)](_0x43d2ea),..._0x328d33}),this[_0xdc1ab1(0x258)](_0x31a8e1,q(_0x31a8e1,_0xe7c615),_0x328d33[_0xdc1ab1(0x1db)]);}[_0x354fcb(0x528)](_0xdb3ce6,_0x60690f,_0x5a27ab){const _0x257241=_0x354fcb;this['_rememberTable'](_0xdb3ce6);let _0xa6d074=Wr(_0xdb3ce6,_0x60690f);this[_0x257241(0x203)][_0x257241(0x1a1)](_0xa6d074,{...this['_recordPermissions']['get'](_0xa6d074),..._0x5a27ab}),this[_0x257241(0x258)](_0xdb3ce6,J(_0xdb3ce6,_0x60690f),_0x5a27ab[_0x257241(0x1db)]);}['setViewPermission'](_0x2c1540,_0x17d4de,_0xe66408){const _0x23a80a=_0x354fcb;this[_0x23a80a(0x17f)](_0x2c1540);let _0x16b60d=Gr(_0x2c1540,_0x17d4de);this[_0x23a80a(0x4ac)][_0x23a80a(0x1a1)](_0x16b60d,{...this['_viewPermissions'][_0x23a80a(0x4a8)](_0x16b60d),..._0xe66408}),this[_0x23a80a(0x258)](_0x2c1540,Mr(_0x2c1540,_0x17d4de),_0xe66408[_0x23a80a(0x1db)]);}[_0x354fcb(0x4af)](_0xdea016){const _0x2507ae=_0x354fcb;this[_0x2507ae(0x35a)]['delete'](_0xdea016),Lr(this[_0x2507ae(0x487)],_0xdea016,_0xdea016,_0x391870['Edit']);}[_0x354fcb(0x396)](_0xc5ea9e){const _0x160e6e=_0x354fcb;this[_0x160e6e(0x415)]['delete'](_0xc5ea9e),this[_0x160e6e(0x1af)](_0xc5ea9e,K(_0xc5ea9e));}['clearFieldPermission'](_0x3848bf,_0x1d06e8){const _0x44fb61=_0x354fcb;this['_fieldPermissions'][_0x44fb61(0x4f4)](Ur(_0x3848bf,_0x1d06e8)),this['_clearObjectEdit'](_0x3848bf,q(_0x3848bf,_0x1d06e8));}['clearRecordPermission'](_0x444a45,_0x3c4487){const _0x59073f=_0x354fcb;this[_0x59073f(0x203)][_0x59073f(0x4f4)](Wr(_0x444a45,_0x3c4487)),this[_0x59073f(0x1af)](_0x444a45,J(_0x444a45,_0x3c4487));}[_0x354fcb(0x3d4)](_0x131e5a,_0x2db216){const _0x33adf0=_0x354fcb;this[_0x33adf0(0x4ac)][_0x33adf0(0x4f4)](Gr(_0x131e5a,_0x2db216)),this[_0x33adf0(0x1af)](_0x131e5a,Mr(_0x131e5a,_0x2db216));}[_0x354fcb(0x1f9)](){const _0xf507f8=_0x354fcb;return{'bases':Object['fromEntries'](this[_0xf507f8(0x35a)]),'tables':Object['fromEntries'](this[_0xf507f8(0x415)]),'fields':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x44a)]),'records':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x203)]),'views':Object[_0xf507f8(0x2e8)](this[_0xf507f8(0x4ac)])};}[_0x354fcb(0x385)](_0x5bb8c8){const _0x4cc536=_0x354fcb;var _0x367e54;return this[_0x4cc536(0x1fa)](_0x5bb8c8,[K(_0x5bb8c8)])&&(((_0x367e54=this['_tablePermissions'][_0x4cc536(0x4a8)](_0x5bb8c8))==null?void 0x0:_0x367e54[_0x4cc536(0x1db)])??!0x0);}['_canEdit'](_0x2691f1,_0x245589){const _0x230a9c=_0x354fcb;var _0x4d06a5;let _0x596618=this[_0x230a9c(0x29e)](_0x2691f1);return!_0x596618||zr(this[_0x230a9c(0x487)],_0x596618,_0x245589)&&(((_0x4d06a5=this[_0x230a9c(0x35a)][_0x230a9c(0x4a8)](_0x596618))==null?void 0x0:_0x4d06a5[_0x230a9c(0x1db)])??!0x0);}[_0x354fcb(0x258)](_0x22066a,_0x25c1d8,_0x29b876){const _0x3004ce=_0x354fcb;if(_0x29b876===void 0x0)return;let _0x1e19b7=this[_0x3004ce(0x29e)](_0x22066a);_0x1e19b7&&Ir(this[_0x3004ce(0x487)],_0x1e19b7,_0x25c1d8,_0x391870[_0x3004ce(0x463)],_0x29b876);}[_0x354fcb(0x1af)](_0x3166e4,_0x13e85a){const _0x2315fe=_0x354fcb;let _0x295718=this[_0x2315fe(0x29e)](_0x3166e4);_0x295718&&Lr(this[_0x2315fe(0x487)],_0x295718,_0x13e85a,_0x391870['Edit']);}['_resolveBaseId'](_0x2182a5){const _0x41ecb1=_0x354fcb;var _0x5b806a;let _0x6a1f7a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x2e5)](_0x2182a5,_0x28d752[_0x41ecb1(0x201)]);return _0x6a1f7a?_0x6a1f7a[_0x41ecb1(0x422)]():(_0x5b806a=this[_0x41ecb1(0x2cf)][_0x41ecb1(0x3c4)](_0x28d752[_0x41ecb1(0x201)])[_0x41ecb1(0x22f)](_0x585e21=>!!_0x585e21[_0x41ecb1(0x1f9)]()[_0x41ecb1(0x2ba)][_0x2182a5]))==null?void 0x0:_0x5b806a[_0x41ecb1(0x422)]();}[_0x354fcb(0x17f)](_0x7cbdee){const _0x1753db=_0x354fcb;let _0x4ea156=this['_resolveBaseId'](_0x7cbdee);_0x4ea156&&this['_tableBaseIds'][_0x1753db(0x1a1)](_0x7cbdee,_0x4ea156);}[_0x354fcb(0x1d7)](_0x34fae6){const _0x16d10f=_0x354fcb;this[_0x16d10f(0x35a)]['delete'](_0x34fae6),this[_0x16d10f(0x1f7)]['forEach']((_0x3138e1,_0x4dbd61)=>{const _0x551cd6=_0x16d10f;_0x3138e1===_0x34fae6&&(this[_0x551cd6(0x415)]['delete'](_0x4dbd61),Hr(this[_0x551cd6(0x44a)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x203)],_0x4dbd61+'\x1f'),Hr(this[_0x551cd6(0x4ac)],_0x4dbd61+'\x1f'),this[_0x551cd6(0x1f7)][_0x551cd6(0x4f4)](_0x4dbd61));});}};Vr=X([Y(0x0,_0x211d15),Y(0x1,_0x3414e2)],Vr);function Hr(_0x132a94,_0x116bae){_0x132a94['forEach']((_0x56d054,_0x1ecc89)=>{const _0x22066b=_0x48d8;_0x1ecc89[_0x22066b(0x254)](_0x116bae)&&_0x132a94[_0x22066b(0x4f4)](_0x1ecc89);});}function Ur(_0x217b18,_0xc3e301){return _0x217b18+'\x1f'+_0xc3e301;}function Wr(_0xfd0a74,_0x3f5279){return _0xfd0a74+'\x1f'+_0x3f5279;}function Gr(_0x16f727,_0xa7f5c){return _0x16f727+'\x1f'+_0xa7f5c;}const Kr=_0x5d0ae0('base.command.service');let qr=class{constructor(_0x3411e0,_0x3c4f98=Jr(),_0x5d681c={}){const _0x4d8ae6=_0x354fcb;this['_permissionService']=_0x3411e0,this['_fieldRegistry']=_0x3c4f98,this[_0x4d8ae6(0x224)]=_0x5d681c,G(this,_0x4d8ae6(0x1dd),new W()),G(this,'_applier',new z());}[_0x354fcb(0x500)](_0x576e37,_0x1ecddc,_0x139169){const _0x36c325=_0x354fcb;if(!this['_permissionService'][_0x36c325(0x352)](_0x576e37[_0x36c325(0x422)]()))throw Error(_0x36c325(0x2a1));_0x136f40(_0x1ecddc),this[_0x36c325(0x402)](_0x576e37,this['_factory'][_0x36c325(0x500)](_0x576e37[_0x36c325(0x1f9)](),_0x1ecddc,_0x139169));}[_0x354fcb(0x1be)](_0x20e2eb,_0x2bb71e,_0x31770c){const _0x57a14a=_0x354fcb;if(!this[_0x57a14a(0x487)]['canEditTable'](_0x2bb71e))throw Error(_0x57a14a(0x172));this[_0x57a14a(0x402)](_0x20e2eb,this[_0x57a14a(0x1dd)][_0x57a14a(0x1be)](_0x20e2eb[_0x57a14a(0x1f9)](),_0x2bb71e,_0x31770c));}[_0x354fcb(0x4d8)](_0x41ee6c,_0x34512d){const _0x57446b=_0x354fcb;if(!this[_0x57446b(0x487)][_0x57446b(0x3c1)](_0x34512d))throw Error(_0x57446b(0x4ab));let _0x299e50=He(_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d);if(_0x299e50['length']>0x0)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20('+_0x299e50['map'](_0x119b4a=>_0x119b4a[_0x57446b(0x1c3)]+'.'+_0x119b4a[_0x57446b(0x46e)])['join'](',\x20')+').');this['_apply'](_0x41ee6c,this[_0x57446b(0x1dd)]['deleteTable'](_0x41ee6c[_0x57446b(0x1f9)](),_0x34512d));}[_0x354fcb(0x3e6)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07){const _0x287ee8=_0x354fcb;this[_0x287ee8(0x402)](_0x545ecf,this[_0x287ee8(0x22b)](_0x545ecf,_0x3856bc,_0x36fe1a,_0x2b324d,_0x360e07));}[_0x354fcb(0x19a)](_0x5f4c8d,_0x3e656d,_0x371b9a){const _0x3e1e25=_0x354fcb;this['_apply'](_0x5f4c8d,this[_0x3e1e25(0x2be)](_0x5f4c8d,_0x3e656d,_0x371b9a));}[_0x354fcb(0x4a0)](_0x524291,_0x8fccab,_0x255c1e){const _0x2bbd68=_0x354fcb;this[_0x2bbd68(0x402)](_0x524291,this[_0x2bbd68(0x40c)](_0x524291,_0x8fccab,_0x255c1e));}[_0x354fcb(0x22b)](_0x3fb30d,_0xfe837,_0x4fefb8,_0x49f915,_0x259688){const _0x5a7b99=_0x354fcb;let _0x484b48=_0x3fb30d[_0x5a7b99(0x1f9)](),_0x37468=this[_0x5a7b99(0x302)](_0x484b48,_0xfe837,_0x4fefb8,_0x49f915,_0x259688),_0xcb7a2c=this[_0x5a7b99(0x1d4)](_0x484b48,_0xfe837,_0x4fefb8,{[_0x49f915]:_0x37468});return this[_0x5a7b99(0x1dd)]['setRecordValues'](_0x484b48,_0xfe837,[_0xcb7a2c]);}['createSetRecordValuesOp'](_0x393153,_0x1d66a2,_0x4ad9f9){const _0x6f14d7=_0x354fcb;let _0x2db3c6=_0x393153[_0x6f14d7(0x1f9)](),_0x584128=_0x4ad9f9['map'](_0x47b5d8=>this[_0x6f14d7(0x1d4)](_0x2db3c6,_0x1d66a2,_0x47b5d8[_0x6f14d7(0x4bb)],{...Object[_0x6f14d7(0x2e8)](Object['entries'](_0x47b5d8[_0x6f14d7(0x1da)])[_0x6f14d7(0x29b)](([_0x5dcf85,_0x25be6e])=>[_0x5dcf85,this[_0x6f14d7(0x302)](_0x2db3c6,_0x1d66a2,_0x47b5d8['recordId'],_0x5dcf85,_0x25be6e)]))}));return this[_0x6f14d7(0x1dd)]['setRecordValues'](_0x2db3c6,_0x1d66a2,_0x584128);}[_0x354fcb(0x40c)](_0x2c140c,_0x19a31f,_0x93ce33){const _0x45de8f=_0x354fcb;if(!this[_0x45de8f(0x487)]['canCreateRecord'](_0x19a31f))throw Error(_0x45de8f(0x4b7));let _0x3d36b7=_0x2c140c['getSnapshot'](),_0x357efd=this['_createNumberingAllocators'](_0x3d36b7[_0x45de8f(0x2ba)][_0x19a31f]);return this[_0x45de8f(0x1dd)][_0x45de8f(0x4a0)](_0x3d36b7,_0x19a31f,this[_0x45de8f(0x42d)](_0x3d36b7,_0x19a31f,_0x93ce33,_0x357efd));}[_0x354fcb(0x518)](_0xabba5,_0x30e6d1,_0xc0fe8c){const _0x339f8b=_0x354fcb;if(!this[_0x339f8b(0x487)][_0x339f8b(0x280)](_0x30e6d1))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');let _0x425088=_0xabba5['getSnapshot']();return I(_0x339f8b(0x23e),()=>{const _0x1fb40f=_0x339f8b;let _0x1f8915=this[_0x1fb40f(0x42e)](_0x425088['tables'][_0x30e6d1]);return this[_0x1fb40f(0x1dd)][_0x1fb40f(0x268)](_0x425088,_0x30e6d1,_0xc0fe8c[_0x1fb40f(0x29b)](_0x490da8=>this['_createRecordWithDefaults'](_0x425088,_0x30e6d1,_0x490da8,_0x1f8915)));},{'existingRecords':Object[_0x339f8b(0x51b)](_0x425088['tables'][_0x30e6d1][_0x339f8b(0x45a)])[_0x339f8b(0x458)],'records':_0xc0fe8c[_0x339f8b(0x458)]});}['createCreateFieldOp'](_0x449389,_0x1d731f,_0x1abb77,_0x3a743d,_0x2bdead){const _0x1d3187=_0x354fcb;if(!this[_0x1d3187(0x487)]['canCreateField'](_0x1d731f))throw Error(_0x1d3187(0x46c));let _0x431b03=_0x449389[_0x1d3187(0x1f9)]();if(this[_0x1d3187(0x3df)](_0x431b03,_0x1abb77),_0x3a743d===0x0)throw Error('[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.');let _0x1e980e=this['_factory'][_0x1d3187(0x2c0)](_0x431b03,_0x1d731f,{'field':_0x1abb77,'index':_0x3a743d,'viewIndexes':_0x2bdead}),_0x3a5908=this[_0x1d3187(0x365)](_0x431b03,_0x1d731f,_0x1abb77);if(!_0x3a5908[_0x1d3187(0x458)])return _0x1e980e;let _0xd5a6a=this[_0x1d3187(0x493)][_0x1d3187(0x2ad)](_0x431b03,_0x1e980e);return R([_0x1e980e,this['_factory']['setRecordValues'](_0xd5a6a,_0x1d731f,_0x3a5908)]);}[_0x354fcb(0x375)](_0x51f826,_0x4e980e,_0x3805c6){const _0x5475f0=_0x354fcb;if(!this[_0x5475f0(0x487)][_0x5475f0(0x37c)](_0x4e980e,_0x3805c6))throw Error(_0x5475f0(0x2fe));this[_0x5475f0(0x402)](_0x51f826,this[_0x5475f0(0x1dd)]['deleteRecord'](_0x51f826[_0x5475f0(0x1f9)](),_0x4e980e,_0x3805c6));}[_0x354fcb(0x3e5)](_0x2de52a,_0x32bf0f,_0x39d1ee,_0x332642){const _0x269b77=_0x354fcb;if(!this['_permissionService'][_0x269b77(0x280)](_0x32bf0f))throw Error(_0x269b77(0x4b7));this[_0x269b77(0x402)](_0x2de52a,this['_factory'][_0x269b77(0x3e5)](_0x2de52a['getSnapshot'](),_0x32bf0f,_0x39d1ee,{..._0x332642,'values':{..._0x332642[_0x269b77(0x1da)],[_0x3b44b5]:_0x332642['id']}}));}[_0x354fcb(0x229)](_0x35fbe9,_0x4df03a,_0x4d069e,_0x4f7cc2){const _0x24ef2a=_0x354fcb;if(!this['_permissionService']['canEditRecord'](_0x4df03a,_0x4d069e))throw Error(_0x24ef2a(0x3ee));this[_0x24ef2a(0x402)](_0x35fbe9,this['_factory']['updateRecordOrder'](_0x35fbe9[_0x24ef2a(0x1f9)](),_0x4df03a,_0x4d069e,_0x4f7cc2));}[_0x354fcb(0x2c0)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db){const _0x3eb11f=_0x354fcb;this['_apply'](_0x11e555,this[_0x3eb11f(0x20a)](_0x11e555,_0xdc81ea,_0x40ebf3,_0x22fb85,_0x23b8db));}['updateField'](_0x18cb38,_0x5d9f3a,_0x423d24,_0x483b01){const _0x16043a=_0x354fcb;var _0x5e0c35;if(!this[_0x16043a(0x487)][_0x16043a(0x341)](_0x5d9f3a,_0x423d24))throw Error(_0x16043a(0x351));let _0x1de38c=_0x18cb38[_0x16043a(0x1f9)](),_0x1bb796=(_0x5e0c35=_0x1de38c[_0x16043a(0x2ba)][_0x5d9f3a])==null?void 0x0:_0x5e0c35[_0x16043a(0x480)][_0x423d24];if(!_0x1bb796||_0x423d24===_0x3b44b5)throw Error(_0x16043a(0x27d));this[_0x16043a(0x3df)](_0x1de38c,{..._0x1bb796,..._0x483b01}),this[_0x16043a(0x402)](_0x18cb38,this[_0x16043a(0x1dd)][_0x16043a(0x409)](_0x1de38c,_0x5d9f3a,_0x423d24,_0x483b01));}['changeFieldType'](_0x292f35,_0x1cd207,_0x5863e3,_0x458e6a){const _0x45643b=_0x354fcb;var _0xacd85f;if(!this['_permissionService'][_0x45643b(0x341)](_0x1cd207,_0x5863e3))throw Error(_0x45643b(0x351));let _0xd4aaf5=_0x292f35['getSnapshot'](),_0x4e62b2=(_0xacd85f=_0xd4aaf5['tables'][_0x1cd207])==null?void 0x0:_0xacd85f[_0x45643b(0x480)][_0x5863e3];if(!_0x4e62b2||_0x5863e3===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x45643b(0x3df)](_0xd4aaf5,{..._0x4e62b2,..._0x458e6a}),this['_apply'](_0x292f35,this[_0x45643b(0x1dd)][_0x45643b(0x2b7)](_0xd4aaf5,_0x1cd207,_0x5863e3,_0x458e6a));}[_0x354fcb(0x21f)](_0x57176a,_0x4403ba,_0xb94338){const _0x24e3e8=_0x354fcb;var _0x313e94;if(((_0x313e94=_0x57176a['getSnapshot']()[_0x24e3e8(0x2ba)][_0x4403ba])==null?void 0x0:_0x313e94[_0x24e3e8(0x4cf)])===_0xb94338||_0xb94338===_0x3b44b5)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this[_0x24e3e8(0x487)][_0x24e3e8(0x2bf)](_0x4403ba,_0xb94338))throw Error('[BaseCommandService]:\x20cannot\x20delete\x20field.');this[_0x24e3e8(0x402)](_0x57176a,this[_0x24e3e8(0x1dd)]['deleteField'](_0x57176a[_0x24e3e8(0x1f9)](),_0x4403ba,_0xb94338));}[_0x354fcb(0x399)](_0x44cab7,_0x394e2f,_0x57fc6f,_0x53a0cb){const _0x1e440c=_0x354fcb;if(!this[_0x1e440c(0x487)][_0x1e440c(0x341)](_0x394e2f,_0x57fc6f))throw Error(_0x1e440c(0x351));if(_0x57fc6f===_0x3b44b5||_0x53a0cb[_0x1e440c(0x381)]===_0x3b44b5)throw Error(_0x1e440c(0x312));this[_0x1e440c(0x402)](_0x44cab7,this[_0x1e440c(0x1dd)][_0x1e440c(0x399)](_0x44cab7['getSnapshot'](),_0x394e2f,_0x57fc6f,_0x53a0cb));}[_0x354fcb(0x446)](_0x308e24,_0x20c275,_0x8d31fb,_0x19983b){const _0x11370c=_0x354fcb;if(!this[_0x11370c(0x487)][_0x11370c(0x459)](_0x20c275,_0x8d31fb['id']))throw Error(_0x11370c(0x465));this[_0x11370c(0x402)](_0x308e24,this[_0x11370c(0x1dd)]['createView'](_0x308e24['getSnapshot'](),_0x20c275,_0x8d31fb,_0x19983b));}['renameView'](_0x14890a,_0xf05c6c,_0x1d5b62,_0x5de984){const _0x18260b=_0x354fcb;if(!this[_0x18260b(0x487)][_0x18260b(0x459)](_0xf05c6c,_0x1d5b62))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x18260b(0x402)](_0x14890a,this['_factory']['renameView'](_0x14890a['getSnapshot'](),_0xf05c6c,_0x1d5b62,_0x5de984));}[_0x354fcb(0x3a2)](_0x495806,_0x543fcc,_0x232245){const _0x1c7d01=_0x354fcb;if(!this[_0x1c7d01(0x487)][_0x1c7d01(0x459)](_0x543fcc,_0x232245))throw Error(_0x1c7d01(0x465));this['_apply'](_0x495806,this[_0x1c7d01(0x1dd)][_0x1c7d01(0x3a2)](_0x495806[_0x1c7d01(0x1f9)](),_0x543fcc,_0x232245));}[_0x354fcb(0x24d)](_0x3ef87b,_0x297af0,_0x25bc7a,_0x528d1e){const _0x54ddce=_0x354fcb;if(!this['_permissionService'][_0x54ddce(0x459)](_0x297af0,_0x25bc7a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x54ddce(0x402)](_0x3ef87b,this[_0x54ddce(0x1dd)][_0x54ddce(0x24d)](_0x3ef87b[_0x54ddce(0x1f9)](),_0x297af0,_0x25bc7a,_0x528d1e));}[_0x354fcb(0x4c1)](_0x146e08,_0x3476cb,_0x912879,_0x37ee58){const _0x43aebd=_0x354fcb;if(!this[_0x43aebd(0x487)][_0x43aebd(0x459)](_0x3476cb,_0x912879))throw Error(_0x43aebd(0x465));this[_0x43aebd(0x402)](_0x146e08,this[_0x43aebd(0x1dd)][_0x43aebd(0x4c1)](_0x146e08[_0x43aebd(0x1f9)](),_0x3476cb,_0x912879,_0x37ee58));}[_0x354fcb(0x2de)](_0x3721c1,_0x541c61,_0x1a7d50,_0x519651){const _0x2cdb47=_0x354fcb;if(!this[_0x2cdb47(0x487)][_0x2cdb47(0x459)](_0x541c61,_0x1a7d50))throw Error(_0x2cdb47(0x465));this[_0x2cdb47(0x402)](_0x3721c1,this[_0x2cdb47(0x1dd)][_0x2cdb47(0x2de)](_0x3721c1['getSnapshot'](),_0x541c61,_0x1a7d50,_0x519651));}[_0x354fcb(0x4ff)](_0x57f442,_0x5baa59,_0x12120c,_0xf2a627){const _0x57154c=_0x354fcb;if(!this[_0x57154c(0x487)][_0x57154c(0x459)](_0x5baa59,_0x12120c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x57154c(0x402)](_0x57f442,this[_0x57154c(0x1dd)][_0x57154c(0x4ff)](_0x57f442[_0x57154c(0x1f9)](),_0x5baa59,_0x12120c,_0xf2a627));}[_0x354fcb(0x178)](_0x276d6c,_0x3b5c6d,_0x5aa520,_0xc77251){const _0x50e559=_0x354fcb;if(!this['_permissionService']['canManageView'](_0x3b5c6d,_0x5aa520))throw Error(_0x50e559(0x465));this[_0x50e559(0x402)](_0x276d6c,this[_0x50e559(0x1dd)]['setViewGroup'](_0x276d6c[_0x50e559(0x1f9)](),_0x3b5c6d,_0x5aa520,_0xc77251));}[_0x354fcb(0x4fc)](_0x2eb842,_0x182c91,_0x4a6f,_0x285207,_0x131283){const _0x2ac761=_0x354fcb;if(!this['_permissionService'][_0x2ac761(0x459)](_0x182c91,_0x4a6f))throw Error(_0x2ac761(0x465));this[_0x2ac761(0x402)](_0x2eb842,this['_factory'][_0x2ac761(0x4fc)](_0x2eb842['getSnapshot'](),_0x182c91,_0x4a6f,_0x285207,_0x131283));}['setViewFieldWidth'](_0x5373e6,_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf){const _0x3d90f3=_0x354fcb;if(!this[_0x3d90f3(0x487)][_0x3d90f3(0x459)](_0xa7ad5c,_0x313ac7))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x3d90f3(0x402)](_0x5373e6,this['_factory'][_0x3d90f3(0x175)](_0x5373e6[_0x3d90f3(0x1f9)](),_0xa7ad5c,_0x313ac7,_0x3212f3,_0x3f08cf));}['setViewFieldOrder'](_0x119ebe,_0x452d7b,_0x1166d4,_0x58359b,_0x598b77){const _0x3692ea=_0x354fcb;if(!this[_0x3692ea(0x487)][_0x3692ea(0x459)](_0x452d7b,_0x1166d4))throw Error(_0x3692ea(0x465));this[_0x3692ea(0x402)](_0x119ebe,this[_0x3692ea(0x1dd)][_0x3692ea(0x457)](_0x119ebe[_0x3692ea(0x1f9)](),_0x452d7b,_0x1166d4,_0x58359b,_0x598b77));}[_0x354fcb(0x402)](_0x12960d,_0x43bd4c){const _0xc109b1=_0x354fcb;let _0x261ae7=_0x12960d[_0xc109b1(0x1f9)]();_0x12960d[_0xc109b1(0x2ff)](this['_applier'][_0xc109b1(0x2ad)](_0x261ae7,_0x43bd4c));}[_0x354fcb(0x42d)](_0x58f9c0,_0x30b1c1,_0x32eda5,_0x1b01f2=this[_0x354fcb(0x42e)](_0x58f9c0['tables'][_0x30b1c1])){const _0x1adf00=_0x354fcb;let _0x23572b=_0x58f9c0[_0x1adf00(0x2ba)][_0x30b1c1],_0x2bb687=_0x32eda5[_0x1adf00(0x3d0)]??_0x32eda5[_0x1adf00(0x2e9)]??this[_0x1adf00(0x3a5)](),_0x526022={..._0x32eda5,'createdBy':_0x32eda5[_0x1adf00(0x3d0)]??_0x2bb687,'updatedBy':_0x32eda5[_0x1adf00(0x2e9)]??_0x2bb687,'values':{..._0x32eda5['values']}};return _0x526022['values'][_0x3b44b5]=_0x526022['id'],_0x23572b['fieldOrder'][_0x1adf00(0x461)](_0x591147=>{const _0x57dae7=_0x1adf00;let _0x351e8b=_0x23572b[_0x57dae7(0x480)][_0x591147];if(_0x351e8b&&_0x526022[_0x57dae7(0x1da)][_0x591147]===void 0x0)switch(_0x351e8b[_0x57dae7(0x33a)]){case _0x19bf94['Numbering']:var _0x3619af;_0x526022[_0x57dae7(0x1da)][_0x591147]=((_0x3619af=_0x1b01f2['get'](_0x591147))==null?void 0x0:_0x3619af())??this[_0x57dae7(0x2c7)](_0x23572b,_0x591147)();break;case _0x19bf94['CreatedBy']:_0x526022[_0x57dae7(0x3d0)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x3d0)]);break;case _0x19bf94['UpdatedBy']:_0x526022[_0x57dae7(0x2e9)]&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x526022[_0x57dae7(0x2e9)]);break;case _0x19bf94[_0x57dae7(0x253)]:_0x526022[_0x57dae7(0x1da)][_0x591147]=B(_0x526022[_0x57dae7(0x403)]);break;case _0x19bf94[_0x57dae7(0x347)]:_0x526022['values'][_0x591147]=B(_0x526022[_0x57dae7(0x483)]);break;default:{let _0x24f6dd=_0x351e8b[_0x57dae7(0x241)];_0x24f6dd!=null&&_0x24f6dd!==''&&!(Array[_0x57dae7(0x354)](_0x24f6dd)&&_0x24f6dd['length']===0x0)&&(_0x526022[_0x57dae7(0x1da)][_0x591147]=_0x24f6dd);}}}),_0x526022;}[_0x354fcb(0x1d4)](_0x9230f,_0x12256f,_0x1ae0c4,_0x6db730){const _0x5cf5e2=_0x354fcb;var _0x2f2fd3,_0x278acf;let _0x3b33b0=_0x9230f['tables'][_0x12256f],_0x459d6a=((_0x2f2fd3=(_0x278acf=this[_0x5cf5e2(0x224)])[_0x5cf5e2(0x181)])==null?void 0x0:_0x2f2fd3['call'](_0x278acf))??Date['now'](),_0x2de7e2=this[_0x5cf5e2(0x3a5)](),_0x15ff43={..._0x6db730};return _0x3b33b0['fieldOrder']['forEach'](_0x8b5c59=>{const _0x312e0f=_0x5cf5e2;let _0x4c690a=_0x3b33b0['fields'][_0x8b5c59];_0x4c690a&&(_0x4c690a['type']===_0x19bf94[_0x312e0f(0x347)]&&(_0x15ff43[_0x8b5c59]=B(_0x459d6a)),_0x4c690a[_0x312e0f(0x33a)]===_0x19bf94[_0x312e0f(0x4df)]&&_0x2de7e2&&(_0x15ff43[_0x8b5c59]=_0x2de7e2));}),{'recordId':_0x1ae0c4,'values':_0x15ff43,'recordPatch':{'updatedAt':_0x459d6a,..._0x2de7e2?{'updatedBy':_0x2de7e2}:{}}};}[_0x354fcb(0x365)](_0x5d7579,_0x1ba266,_0x5b33b3){const _0x1cce48=_0x354fcb;let _0x39f67=_0x5d7579[_0x1cce48(0x2ba)][_0x1ba266];return!_0x39f67||!Yr(_0x5b33b3)?[]:_0x5b33b3[_0x1cce48(0x33a)]===_0x19bf94[_0x1cce48(0x469)]?this[_0x1cce48(0x232)](_0x39f67,_0x5b33b3['id']):Object['values'](_0x39f67[_0x1cce48(0x45a)])[_0x1cce48(0x2a2)](_0x169dbc=>{let _0xf09980=this['_getSystemFieldValue'](_0x5b33b3,_0x169dbc);return _0xf09980===void 0x0?[]:[{'recordId':_0x169dbc['id'],'values':{[_0x5b33b3['id']]:_0xf09980}}];});}[_0x354fcb(0x497)](_0x51ef9d,_0x5ac58b){const _0x11b39f=_0x354fcb;switch(_0x51ef9d['type']){case _0x19bf94[_0x11b39f(0x1fe)]:return _0x5ac58b[_0x11b39f(0x3d0)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x4df)]:return _0x5ac58b[_0x11b39f(0x2e9)]??this[_0x11b39f(0x3a5)]();case _0x19bf94[_0x11b39f(0x253)]:return B(_0x5ac58b['createdAt']??Date[_0x11b39f(0x181)]());case _0x19bf94[_0x11b39f(0x347)]:return B(_0x5ac58b[_0x11b39f(0x483)]??Date[_0x11b39f(0x181)]());default:return;}}[_0x354fcb(0x42e)](_0x44cf28){const _0x4bcd80=_0x354fcb;let _0xcd6472=new Map();return _0x44cf28&&_0x44cf28[_0x4bcd80(0x1e1)][_0x4bcd80(0x461)](_0x4b66e0=>{const _0x3f953c=_0x4bcd80;let _0x42847e=_0x44cf28[_0x3f953c(0x480)][_0x4b66e0];(_0x42847e==null?void 0x0:_0x42847e[_0x3f953c(0x33a)])===_0x19bf94['Numbering']&&_0xcd6472[_0x3f953c(0x1a1)](_0x4b66e0,this['_createNumberingAllocator'](_0x44cf28,_0x4b66e0));}),_0xcd6472;}[_0x354fcb(0x2c7)](_0x18f110,_0x5ddab9){const _0x1960e5=_0x354fcb;let _0x59915c=Object['values'](_0x18f110[_0x1960e5(0x45a)])[_0x1960e5(0x498)]((_0x319dd5,_0x354b7e)=>{const _0x29302d=_0x1960e5;let _0xe9e324=Number(_0x354b7e['values'][_0x5ddab9]);return Number[_0x29302d(0x2c3)](_0xe9e324)?Math[_0x29302d(0x1b3)](_0x319dd5,_0xe9e324):_0x319dd5;},0x0);return()=>String(++_0x59915c);}['_createNumberingFieldValuePatches'](_0x24359c,_0x4f50c3){const _0x393ca1=_0x354fcb;let _0x4c330b=this[_0x393ca1(0x17a)](_0x24359c),_0x5e15d3=this['_createNumberingAllocator'](_0x24359c,_0x4f50c3);return _0x4c330b[_0x393ca1(0x2a2)](_0x20de22=>this[_0x393ca1(0x3c7)](_0x20de22[_0x393ca1(0x1da)][_0x4f50c3])?[]:[{'recordId':_0x20de22['id'],'values':{[_0x4f50c3]:_0x5e15d3()}}]);}[_0x354fcb(0x17a)](_0x591de8){const _0x36b6a7=_0x354fcb;var _0x36b779;let _0x57fbef=Object[_0x36b6a7(0x1da)](_0x591de8[_0x36b6a7(0x45a)]),_0x485b68=new Map(_0x57fbef[_0x36b6a7(0x29b)](_0x174eb0=>[_0x174eb0['id'],_0x174eb0])),_0x5526f8=[],_0x532f91=new Set();(_0x36b779=_0x591de8[_0x36b6a7(0x22d)])==null||_0x36b779['forEach'](_0x4391a3=>{const _0x6d9933=_0x36b6a7;let _0x35c9b5=_0x485b68[_0x6d9933(0x4a8)](_0x4391a3);_0x35c9b5&&(_0x5526f8[_0x6d9933(0x1f3)](_0x35c9b5),_0x532f91[_0x6d9933(0x35e)](_0x4391a3));});let _0x45cb2d=_0x57fbef[_0x36b6a7(0x397)](_0x22f63f=>!_0x532f91[_0x36b6a7(0x23f)](_0x22f63f['id']))[_0x36b6a7(0x3db)]((_0x434672,_0x355457)=>String(_0x434672[_0x36b6a7(0x3ef)]??_0x434672['id'])['localeCompare'](String(_0x355457[_0x36b6a7(0x3ef)]??_0x355457['id']))||_0x434672['id']['localeCompare'](_0x355457['id']));return[..._0x5526f8,..._0x45cb2d];}[_0x354fcb(0x3c7)](_0x246202){const _0x312bd1=_0x354fcb;return _0x246202!=null&&_0x246202!==''&&!(Array[_0x312bd1(0x354)](_0x246202)&&_0x246202[_0x312bd1(0x458)]===0x0);}[_0x354fcb(0x3a5)](){const _0x46a355=_0x354fcb;var _0x373602,_0x170e6f,_0x91153f,_0x1ba55b;return((_0x373602=(_0x170e6f=this[_0x46a355(0x224)])['getCurrentUserId'])==null?void 0x0:_0x373602[_0x46a355(0x331)](_0x170e6f))??((_0x91153f=(_0x1ba55b=this[_0x46a355(0x224)])['getCurrentUser'])==null||(_0x91153f=_0x91153f['call'](_0x1ba55b))==null?void 0x0:_0x91153f[_0x46a355(0x2db)])??void 0x0;}['_normalizeCellValue'](_0x7c134,_0x368a26,_0x3af947,_0x1f8d3d,_0x3a206f){const _0x215bc3=_0x354fcb;var _0xc61542;if(!this[_0x215bc3(0x487)][_0x215bc3(0x1d2)](_0x368a26,_0x3af947,_0x1f8d3d))throw Error(_0x215bc3(0x1a6));let _0x23cac2=(_0xc61542=_0x7c134[_0x215bc3(0x2ba)][_0x368a26])==null?void 0x0:_0xc61542[_0x215bc3(0x480)][_0x1f8d3d];if(!_0x23cac2)throw Error(_0x215bc3(0x1d3)+_0x1f8d3d+'\x22\x20does\x20not\x20exist.');let _0x10bbd9=this[_0x215bc3(0x2c4)]['get'](_0x23cac2[_0x215bc3(0x33a)]);if(_0x23cac2[_0x215bc3(0x401)]||_0x23cac2[_0x215bc3(0x1cb)]||!_0x10bbd9[_0x215bc3(0x43a)](_0x23cac2)[_0x215bc3(0x346)])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0x491e4d=_0x10bbd9[_0x215bc3(0x49f)](_0x3a206f,_0x23cac2),_0x4ecec0=_0x10bbd9[_0x215bc3(0x209)](_0x491e4d,_0x23cac2);if(!_0x4ecec0[_0x215bc3(0x35c)])throw Error(_0x4ecec0[_0x215bc3(0x2d9)]??_0x215bc3(0x43f));let _0x3f3b7c=_0x23cac2[_0x215bc3(0x33a)]===_0x19bf94[_0x215bc3(0x2bd)]?Ve(_0x7c134,_0x23cac2,_0x491e4d):{'valid':!0x0};if(!_0x3f3b7c[_0x215bc3(0x35c)])throw Error(_0x3f3b7c[_0x215bc3(0x2d9)]??_0x215bc3(0x3bb));return _0x491e4d;}[_0x354fcb(0x3df)](_0x16c588,_0x3d75ba){const _0x3b0559=_0x354fcb;if(_0x3d75ba['id']===_0x3b44b5||_0x3d75ba[_0x3b0559(0x33a)]===_0x19bf94[_0x3b0559(0x44f)]||_0x37b436(_0x3d75ba['name']))throw Error(_0x3b0559(0x4c4));let _0x586292=Be(_0x16c588,_0x3d75ba);if(!_0x586292[_0x3b0559(0x35c)])throw Error(_0x586292['reason']??_0x3b0559(0x248));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x2dd760=_0x354fcb;let _0x17c402=new hr();return zn()[_0x2dd760(0x461)](_0x1bc518=>_0x17c402['register'](_0x1bc518)),_0x17c402;}function Yr(_0x489b3a){const _0x425ec8=_0x354fcb;return _0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x469)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x1fe)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94['UpdatedBy']||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x253)]||_0x489b3a[_0x425ec8(0x33a)]===_0x19bf94[_0x425ec8(0x347)];}function _0x2357(){const _0x337978=['_setViewFieldSetting','[BaseCommandService]:\x20invalid\x20cell\x20value.','Date','_buildGallery','false','-view-grid','lastIndexOf','normal','createView','updatePermissionPoint','getInstance','stringify','_fieldPermissions','Parent\x20Items','_hierarchyIndexCache','_disposed','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','RecordId','getUTCMonth','symbol','getUTCDay','Copy','LAST_WEEK','getProjection','_projectedViewRowsCache','setViewFieldOrder','length','canManageView','records','star','https:','base.command.ensure-base-temporal-view-date-fields','base.mutation.set-permission-rule','field/','_findCalendarDateFieldId','forEach','\x22\x20does\x20not\x20exist.','Edit','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20cannot\x20manage\x20view.','_capabilities','exec','true','Numbering','fld-','base.command.delete-base-field','[BaseCommandService]:\x20cannot\x20create\x20field.','[BasePerf]\x20','fieldId','Attachment','\x20must\x20have\x20a\x20non-empty\x20id.','string','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','size','rowId','STRING','dateFormat','\x20permission\x20denied.','#3b82f6','Export','_configService','SelfParent','#BFDBFE','splice','attachmentSets','Base\x20edit\x20permission\x20denied.','fields','canEditTable','_normalizeGanttDisplayColor','updatedAt','fieldSettings','viewIndexes','AFTER','_permissionService','_fastSortRows','PAST_7_DAYS','387000MYvFjX','base.command.update-base-field','Todo','IS_NOT','base.command.move-base-view','projection','rows','ruleId','invalidGroupField','_applier','Table','7fdUiRV','_removeSuperTables','_getSystemFieldValue','reduce','attachments','[BaseProjectionService]:\x20missing\x20view\x20\x22','check','$1\x20','custom','setFieldPermission','normalize','createRecord','__UNIVER_BASE_PERF__','dependencyFieldId','_deleteAttachmentResources','_resolveGalleryCardFieldIds','notContains',',,,\x22B\x22','invalidField','get','_buildKanban','progressFieldId','[BaseCommandService]:\x20cannot\x20delete\x20table.','_viewPermissions','End\x20date','univer.basePerf','clearBasePermission','Clear','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','_initDependencies','base.command.move-base-field','fieldIndex','join','clear','[BaseCommandService]:\x20cannot\x20create\x20record.','recordPatch','_materializeGroups','BaseProjection.getProjection','recordId','localeCompare','False','timeslotSize','missingField','_resolveKanbanCoverFieldId','updateViewConfig','unitWidth','_config','[BaseCommandService]:\x20record-id\x20is\x20reserved.','Rating','syncExecuteCommand','remote','indexOf','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','subtreeEndIndex','_getStructureDirtyTableIds','optionSource','source','Kanban','primaryFieldId','_setAttachmentResources','repeat','text','currencySymbol','columnSettings','Import','base.mutation.apply-base-json1','contains','deleteTable','YESTERDAY','usableAsGanttStart','Link','fromPlainText','from','rowIndexById','UpdatedBy','attachmentSet','\x20has\x20unsupported\x20operator\x20\x22','selfParent','[RecordLink]:\x20target\x20record\x20\x22','tableName','emitPermissionDenied','@univerjs-pro/bases','_ganttBarColor','Calendar','General','_formulaCalculationTriggerService','cell','protocol','allowDangling','direction','BaseField','getAllBases','toLowerCase','_globalRevision','base.command.update-base-record-order','delete','locale','_projectedGroupsCache','MM/DD/YYYY','coverFieldId','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','base.command.create-base-view','NumberFormat','setViewFieldVisible','bases-exchange-client.operation.export-base','record/','setViewSort','createTable','includeTime','_isGanttDateField','getOwnPropertyDescriptor','Uncategorized','unique','saveMany','BASE','base.command.update-base-view-config','deletePermissionPoint','columns','Ids','getUTCFullYear','timeZone','-field-name','unitData','card','setRangeValues','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','table','[BaseViewRegistryService]:\x20view\x20type\x20\x22','getSuperTableRegistrations','base.command.update-base-cell','_cellRevisions','createBatchCreateRecordsOp','pushUndoRedo','hierarchy','keys','numfmt','createDeleteRecordsUndoOp','invalidateByOp','recordIds','invalidateByCell','isNot','colorFieldId','data','medium','childType','operand','base.command.set-base-range-values','setRecordPermission','10722330ytZByh','BaseView','record','CreateView','duplicate','_applyFormulaResult','diffValue','Unchecked','getMonth','manual','True','endDateFieldId','[BaseCommandService]:\x20cannot\x20edit\x20table.','MissingRecord','_recordIds','setViewFieldWidth','BOOLEAN','pattern','setViewGroup','base.command.batch-delete-base-records','_getOrderedRecords','base.command.delete-base-record','Gallery','A\x20table\x20with\x20this\x20name\x20already\x20exists.','scale','_rememberTable','_getJson1DirtyData','now','raw','findIndex','EXACT','base.view-registry.service','lastIndex','_buildGrid',':start','Base\x20table\x20names\x20are\x20exported\x20as\x20Excel\x20worksheet\x20names\x20and\x20must\x20contain\x201-31\x20characters,\x20not\x20start\x20or\x20end\x20with\x20an\x20apostrophe,\x20not\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20],\x20and\x20be\x20unique\x20(case-insensitive).','action','Table\x20name\x20is\x20required.','base-perf-','allowMultiple','depth','_registeredSuperTableNames','color','start','slice','rule','_resolveKanbanGroupFieldId','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','descendPath','_sortRows','duplicateField','setRecordValues','month','Currency','autoIncrement','Checkbox','base.command.create-base-field','_getKanbanConfiguredLanes','set','MissingParent','orderedRecordIds','[BaseFormula]:\x20field\x20\x22','pop','[BaseCommandService]:\x20cannot\x20edit\x20cell.','_kanbanGroupKeys','h24','Checked','registerRuleModel','targetTableId','YYYY/MM/DD','trigger','BaseJson1.json1Apply','_clearObjectEdit','Failed\x20to\x20create\x20update\x20cell\x20operation:','parentRecordId','_groupsCacheKey','max','disposeWithMe','rootRecordIds','every','long','_injector','group','Progress','getDependencies','patches','_initialize','renameTable','beforeCommandExecuted','base-range-values-v1','descend','validateFormula','tableId','measure','split','codePointAt','url','gridViewId','getPermissionPoint','_filterRows','system','getUTCDate','yyyy/mm/dd','hidden','cellData','BaseTable','base.command.duplicate-base-field','canEditCell','[BaseCommandService]:\x20field\x20\x22','_withModifiedSystemValues','en-US','_viewRowsCacheKey','_clearUnit','base.command.set-base-record-values','showFieldNames','values','edit','BaseRecord','_factory','resolvedOptions','Status','name','fieldOrder','entries','#14b8a6','cellRevision','Person','exceptions','limit','kind','displayFieldId','col','lessThanOrEqual','_baseSyncDisposables','renameFormulaUnitReferences','_cacheKey','_isCalendarDateField','conditional','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','_viewRevisionKey','push','BASE_OBJECT_PERMISSION_PLUGIN','base.command.set-base-view-filter','base.command.batch-create-base-records','_tableBaseIds','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','getSnapshot','_canEdit','compose','week','invertWithDoc','CreatedBy','setConfig','subType','UNIVER_BASE','_getCachedProjection','_recordPermissions','objectType','[BaseField]:\x20invalid\x20person\x20value.','error','insertOp','_onCommandExecuted','validate','createCreateFieldOp','user','quarter','_setCachedProjection','invalid','_formulaSyncQueue','canEditRecord','params','lessThan','createViewId','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','multiple','base.viewType.gallery','undefined','average','date','invalidateByView','row','hourCycle','1181502QRUPLq','BaseProjection.filterAndSortRows','deleteField','path','_setFormulaFieldCells','COLUMN','Group','_runtimeContext','objectId','weekdays','fieldIds','maxDepth','updateRecordOrder','setBaseName','createUpdateCellOp','sum','recordOrder','includeRecords','find','_normalizeGanttConfig','includes','_createNumberingFieldValuePatches','finally','calendar','test','workingDays','dashboard/','manageView','getBase','formula','GREATER_THAN','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','toFixed','BaseCommand.createBatchCreateRecordsOp','has','startDateFieldId','defaultValue','colId','invalidReasonByRecordId','_isAllDayGanttDateRange','repairViewConfig','removeOp','clearUnit','[BaseCommandService]:\x20invalid\x20field\x20definition.','showTodayLine','format','_replaceOptional','_deleteRecordsBaseOp','moveView','forValue','_findKanbanGroupField','index','MUTATION','_plugins','CreatedAt','startsWith','TOMORROW','number','some','_setObjectEdit','_getHierarchyIndex','_executeSuperTableMutationWhileActive','base.command.delete-base-view','attachment','HH:mm','iterator','base.command.','executeCommand','remove','_rowTransformCacheSegment','[BaseHierarchy]:\x20','Redo','sortedView','width','greaterThan','createRecords','object','empty','primaryFieldName','spaceComma','globalRevision','column','create-view','Cycle','Number','_kanbanLaneTitle','base.field-registry.service','relationRole','getTypeOfUnitDisposed$','_groupCellInvalidations','allowNegative','unitId',',,\x22M\x22','attachment-','afterFieldId','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','[BaseCommandService]:\x20cannot\x20edit\x20record-id.','createRegExpFromSafeFragment','Add','canCreateRecord','label','recordNamePrefix','MultiSelect','toPlainText','base.command.create-base-table','code','_dataSyncPrimaryController','colIndex','base.command.set-base-view-field-order','base.viewType.calendar','field','_resolveCardTitleFieldId','separatorStyle','pickerFieldIds','cardLayout','rowIndex','_patchCachedProjectedRows','REMOTE_BASES_PLUGIN','canCreateField','_enqueueFormulaSync','facade','packageName','_formulaService','setTablePermission','_cellInvalidations','base.command.set-base-view-field-width','map','_registerUnitPermissionPoints','_T_','_resolveBaseId','redo','_viewRevisions','[BaseCommandService]:\x20cannot\x20create\x20table.','flatMap','this-row','_getTablesToNormalize','_canUseFastSort','_projectedRowsCache','bases.fieldConfig.linkPlaceholder','getFullYear','ena','invertOp','changed','Phone','applyOp','getTypeOfUnitAdded$','filled','\x20has\x20unsupported\x20date\x20mode\x20\x22','replace','_bumpTableRevision','_getTable','syncUnit','_views','defineProperty','changeFieldType','_cellInvalidationsTouchFields','getAffectedRanges','tables','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','off','RecordLink','createSetRecordValuesOp','canDeleteField','createField','resolve','pluginName','isFinite','_fieldRegistry','spacePeriod','THIS_WEEK','_createNumberingAllocator','fieldName','\x22\x20with\x20field\x20type\x20\x22','baseRows','NEXT_7_DAYS','h12','kanban','useThousands','_instanceService','_buildCalendar','strategies','snapshot','option-','base.command.update-base-kanban-config','onStarting','day','conjunction','score','reason','addPermissionPoint','userID','ascend','[BaseHierarchy]:\x20field\x20\x22','setViewFilter','view','NEXT_30_DAYS','usableAsGanttEnd','_tableRevisions','table/','BEFORE','getUnit','240390EOLHYe','assign','fromEntries','updatedBy','short','base.mutation.','flat','5hlDvIn','_commandService','compress','exception-','toLocaleString','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','[BaseField]:\x20invalid\x20email\x20value.','register','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','beforeViewId','abs','_scheduleSuperTableSync','base.command.set-base-view-sort','base.command.duplicate-base-record','IBaseCellData.ensureTableCellLayout','_initCommands','_projectionCache','[BaseCommandService]:\x20cannot\x20delete\x20record.','setSnapshot','person','COMMAND','_normalizeCellValue','hostAnchorId','save','deleteRecords','tableRevision','majorHeaders','IS_EMPTY','conditions','revision','small','_applyingFormulaResults','oldParentRecordId','setRules','subscribe','createSuperTableReference','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','createUnit','_resolveKanbanCardFieldIds','base.viewType.gantt','_materializeFormulaTableNames','Base','major-','base.command.set-base-view-field-visible','mode','embed-ui','onCommandExecuted','FORCE_STRING','selectField','operator','DESC','tryMaterializeSnapshot','6jzmXdX','base.command.create-base-child-record','general','displayColor',':end','_patchProjectedRowsForCellInvalidations','level','thread-comment.command.','prototype','search','_projectTableRows','_isAllowedKanbanGroupField','1340IGTckn','_buildGantt','call','blue','replaceOp','FieldId','exists','PAST_30_DAYS','_isKanbanGroupField','write','UNIVER_EMBED_BASES_TABLE','type','missingRecord','basePerf','cardSize','childUnitId','CONTAINS','unshift','canEditField','config','WriteCursor','Undo','titleFieldId','editable','UpdatedAt','createBase','toString','_normalizeCalendarConfig','Base\x20','NOT_CONTAINS','Email','BaseProjection.projectGroups','795392LoMFsy','Empty','[BaseCommandService]:\x20cannot\x20edit\x20field.','canCreateTable','import','isArray','deepClone','abbreviation','formulaName','resources','doing','_basePermissions','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','valid','min','add','_initRegistries','usableAsCardCover','_scheduledSuperTableSyncs','_getTableRevision','cycle','boolean','_createSystemFieldValuePatches','viewId','version','base.command.move-base-hierarchy-record','displayText','Comment','_formulaCalculationSessionService','rules','Name','parentByRecordId','_normalizeGalleryConfig','renameView','\x22\x20is\x20not\x20registered.','status','description','Text','deleteRecord','_getAllBaseDependencyTreeCacheMap','year','-record-','invalidGanttEndField','BaseJson1.cloneForOp','registerView','canDeleteRecord','unknown','undo','children','_syncSuperTables','beforeFieldId','fromCollab','_getViewRevision','_syncBaseUnit','_canEditTable','UTC','Start\x20date','Grid','function','groupFieldId','views','editCell','[BaseField]:\x20invalid\x20progress\x20value.','info','fromChangeset','MMM\x20D,\x20YYYY','afterViewId','options','base.command.create-base-record','[BaseField]:\x20invalid\x20date\x20value.','_matchesGanttColorRule','clearTablePermission','filter','parentFieldName','moveField','compare','workingDaysOnly','order','isInteger','embedId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','Parent','#FDE68A','deleteView','_projectGroups','base-snapshot-v1','_getCurrentUserId','BaseJson1.normalizeTables','_initDataSync','BaseProjection.projectTableRows','setPoint','\x20has\x20unsupported\x20target\x20\x22','bases.fieldConfig.textPlaceholder','default','SortedView','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','frozenFieldCount','gantt','_getAllTableIds','bases.remote.config','DD/MM/YYYY','base-perf','isNaN','_groupConfigCacheSegment','_kanbanLaneColor','getAllPermissionPoint','thread-comment.mutation.','title','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','trim','[BaseField]:\x20invalid\x20multi-value\x20reference.','_calendarEventColor','_toDirtyRangePatch','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','canDeleteTable','getStructuredDependencies','#,##0','getAllUnitsForType','then','getTypePlugin','_isNonEmptyCellValue','changes','initializeUnit','MaxDepth','isEmpty','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','policy','end','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','createdBy','target','Delete','_groupProjectionFieldIds','clearViewPermission','_isColorfulKanbanGroupField','dispose','IS_NOT_EMPTY','registerCommand','href','Gantt','sort','_resolveCalendarDateFieldId','base.mutation.set-permission-rules','Done','_assertFieldDefinition','none','commaPeriod','Remote','tableOrder','INIT','duplicateRecord','updateCell','conditionalColoring','leftPaneCollapsed','\x22\x20is\x20referenced\x20by\x20','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','base.command.set-permission','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','getUnitType','[BaseCommandService]:\x20cannot\x20edit\x20record.','orderKey','valueOf','base.command.change-base-field-type','key','decorate','focusUnit','count','getTime','h:mm\x20a','viewOrder','BaseDashboard','usableAsCalendarDate','_resolveGalleryCoverFieldId','nodes','regenerateViewIds','1.2.0','depthByRecordId','matchAll','readonly','_apply','createdAt','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','Formula','result','SingleSelect','#,##0.00','updateField','local','round','createCreateRecordOp','base.command.update-base-view-conditional-color-rules','decimalPlaces','_projectRows','http:','_resolveGanttDateFieldId','108438dgwhTS','\x20cannot\x20use\x20operator\x20\x22','done','_tablePermissions','value','LAST_MONTH','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','_activeDirtyManagerService','_check','formatToParts','toPrimitive','Doing','all','#16a34a','InvalidField','leftPaneWidth','getUnitId','_getCellRevision','endsWith','periodComma','NUMBER','_filterSortFieldIds','groups','Date1900','1500984rNkvqE','invalidateByField','invalid-characters','_createRecordWithDefaults','_createNumberingAllocators','hasOwnProperty','_projectFields','_title','_univerInstanceService','base.command.rename-base-view','registerCtorForType','createDefaultConfig','[RecordLink]:\x20field\x20config\x20is\x20invalid.','members','delete-view','base.fieldType.','getCapabilities','dateMode','_normalizeCalendarDisplayColor','too-long'];_0x2357=function(){return _0x337978;};return _0x2357();}const Xr=new Set([_0x19bf94[_0x354fcb(0x1ba)],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x19e)]]);function Zr(_0x4778b1){const _0x47b5ef=_0x354fcb;let _0x10ff0f=_0x4778b1['fields'][_0x4778b1[_0x47b5ef(0x4cf)]];if((!_0x10ff0f||_0x10ff0f[_0x47b5ef(0x1cb)]!==!0x0&&_0x10ff0f['id'][_0x47b5ef(0x4f1)]()!=='id'&&_0x10ff0f[_0x47b5ef(0x1e0)][_0x47b5ef(0x3bc)]()[_0x47b5ef(0x4f1)]()!=='id')&&_0x10ff0f)return _0x10ff0f['id'];for(let _0x4eb0c0 of _0x4778b1[_0x47b5ef(0x1e1)]){let _0x51d820=_0x4778b1['fields'][_0x4eb0c0];if(_0x51d820&&_0x51d820['id']!==_0x4778b1[_0x47b5ef(0x4cf)]&&_0x51d820[_0x47b5ef(0x1cb)]!==!0x0&&_0x51d820['type']!==_0x19bf94[_0x47b5ef(0x44f)])return _0x51d820['id'];}return _0x4778b1[_0x47b5ef(0x4cf)];}function Qr(_0x238677,_0x37bfa3=[],_0x43ade3=0x5){const _0x229bf1=_0x354fcb;let _0x3d1cd8=new Set(_0x37bfa3[_0x229bf1(0x397)](_0x194139=>!!_0x194139)),_0x3cc58b=[],_0x3c7d62=[];for(let _0x453103 of _0x238677[_0x229bf1(0x1e1)]){let _0x1df681=_0x238677['fields'][_0x453103];_0x1df681&&_0x1df681[_0x229bf1(0x1cb)]!==!0x0&&_0x1df681['type']!==_0x19bf94[_0x229bf1(0x44f)]&&!_0x3d1cd8['has'](_0x1df681['id'])&&(Xr['has'](_0x1df681[_0x229bf1(0x33a)])?_0x3cc58b:_0x3c7d62)[_0x229bf1(0x1f3)](_0x1df681['id']);}return[..._0x3cc58b,..._0x3c7d62][_0x229bf1(0x192)](0x0,_0x43ade3);}function $r(){const _0x1f0379=_0x354fcb;return[{'type':_0x2b4a2c[_0x1f0379(0x388)],'i18nKey':'base.viewType.grid','createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x2b4a2c['Kanban'],'i18nKey':'base.viewType.kanban','createDefaultConfig':_0x3c0724=>{const _0x29251b=_0x1f0379;let _0x8b937a=ei(_0x3c0724);return{'groupFieldId':_0x8b937a,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x3c0724['primaryFieldId'],'fieldIds':Qr(_0x3c0724,[_0x3c0724[_0x29251b(0x4cf)],_0x8b937a])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x17ec78=_0x1f0379;throw Error(_0x17ec78(0x472));}},{'type':_0x2b4a2c[_0x1f0379(0x4e8)],'i18nKey':_0x1f0379(0x28a),'createDefaultConfig':_0x2b624a=>{const _0x37478d=_0x1f0379;let _0x3eb9ae=ti(_0x2b624a);return{'startDateFieldId':_0x3eb9ae,'endDateFieldId':ni(_0x2b624a,_0x3eb9ae),'titleFieldId':_0x2b624a['primaryFieldId'],'mode':_0x37478d(0x19b),'timeslotSize':'medium','timeZone':_0x37478d(0x40a),'displayColor':{'type':_0x37478d(0x49d),'color':_0x37478d(0x478)},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x3167e9=_0x1f0379;throw Error(_0x3167e9(0x4b1));}},{'type':_0x2b4a2c[_0x1f0379(0x3da)],'i18nKey':_0x1f0379(0x316),'createDefaultConfig':_0x1d2e35=>{const _0x2f3905=_0x1f0379;let _0xfc90c4=ti(_0x1d2e35);return{'startDateFieldId':_0xfc90c4,'endDateFieldId':ni(_0x1d2e35,_0xfc90c4)??_0xfc90c4,'titleFieldId':_0x1d2e35[_0x2f3905(0x4cf)],'scale':'month','showTodayLine':!0x0,'displayColor':{'type':_0x2f3905(0x49d),'color':_0x2f3905(0x1e3)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x14b5ac=_0x1f0379;throw Error(_0x14b5ac(0x464));}},{'type':_0x2b4a2c[_0x1f0379(0x17c)],'i18nKey':_0x1f0379(0x216),'createDefaultConfig':_0x1fdfd5=>{const _0x23ccbd=_0x1f0379;let _0x4f4bbc=Zr(_0x1fdfd5);return{'coverFieldId':null,'cardLayout':_0x23ccbd(0x445),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x4f4bbc,'coverFieldId':null,'fieldIds':Qr(_0x1fdfd5,[_0x4f4bbc,_0x1fdfd5[_0x23ccbd(0x4cf)]])},'cardSize':_0x23ccbd(0x524)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x163dad=_0x1f0379;throw Error(_0x163dad(0x4f9));}}];}function ei(_0x36e05f){const _0x30c78c=_0x354fcb;var _0x5f0dbb,_0x3872b7,_0x1686d1;let _0x107ea1=_0x36e05f[_0x30c78c(0x1e1)]['map'](_0x5146d0=>_0x36e05f[_0x30c78c(0x480)][_0x5146d0])[_0x30c78c(0x397)](_0x3451cf=>!!_0x3451cf);return((_0x5f0dbb=_0x107ea1['find'](_0x24244e=>_0x24244e['type']===_0x19bf94[_0x30c78c(0x407)]||_0x24244e['type']===_0x19bf94[_0x30c78c(0x283)]||_0x24244e[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x223)]))==null?void 0x0:_0x5f0dbb['id'])??((_0x3872b7=_0x107ea1[_0x30c78c(0x22f)](_0x504ac0=>_0x504ac0[_0x30c78c(0x33a)]===_0x19bf94['Text']))==null?void 0x0:_0x3872b7['id'])??((_0x1686d1=_0x107ea1[_0x30c78c(0x22f)](_0x4497ab=>_0x4497ab['type']===_0x19bf94[_0x30c78c(0x440)]||_0x4497ab['type']===_0x19bf94['CreatedAt']||_0x4497ab[_0x30c78c(0x33a)]===_0x19bf94[_0x30c78c(0x347)]))==null?void 0x0:_0x1686d1['id'])??_0x36e05f[_0x30c78c(0x4cf)];}function ti(_0x459957){const _0xbf53c2=_0x354fcb;var _0xd007f3;return((_0xd007f3=_0x459957[_0xbf53c2(0x1e1)][_0xbf53c2(0x29b)](_0x4e3a97=>_0x459957[_0xbf53c2(0x480)][_0x4e3a97])[_0xbf53c2(0x22f)](ri))==null?void 0x0:_0xd007f3['id'])??'';}function ni(_0xe011d3,_0xf1542){const _0x267369=_0x354fcb;var _0xf575e1;return(_0xf575e1=_0xe011d3[_0x267369(0x1e1)][_0x267369(0x29b)](_0x30b005=>_0xe011d3['fields'][_0x30b005])['find'](_0x42944d=>ri(_0x42944d)&&_0x42944d['id']!==_0xf1542))==null?void 0x0:_0xf575e1['id'];}function ri(_0x456cd5){const _0x5b1db5=_0x354fcb;return!!_0x456cd5&&_0x456cd5[_0x5b1db5(0x33a)]===_0x19bf94[_0x5b1db5(0x440)]&&_0x456cd5[_0x5b1db5(0x401)]!==!0x0&&_0x456cd5['system']!==!0x0;}const ii=_0x5d0ae0('base.projection.service'),ai=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94[_0x354fcb(0x19c)],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)],_0x19bf94[_0x354fcb(0x440)],_0x19bf94[_0x354fcb(0x253)],_0x19bf94['UpdatedAt'],_0x19bf94[_0x354fcb(0x19e)]]),oi=0x5265c00;let si=class extends _0x1589db{constructor(_0x33e195){const _0x4cdff4=_0x354fcb;super(),this['_fieldRegistry']=_0x33e195,G(this,_0x4cdff4(0x2b5),new Map()),G(this,_0x4cdff4(0x2fd),new WeakMap()),G(this,'_projectedRowsCache',new Map()),G(this,_0x4cdff4(0x456),new Map()),G(this,_0x4cdff4(0x4f6),new Map()),G(this,_0x4cdff4(0x44c),new Map()),G(this,'_globalRevision',0x0),G(this,_0x4cdff4(0x2e2),new Map()),G(this,_0x4cdff4(0x517),new Map()),G(this,_0x4cdff4(0x299),new Map()),G(this,_0x4cdff4(0x2a0),new Map());}[_0x354fcb(0x37b)](_0x1a11a3){const _0x5eb94d=_0x354fcb;return this['_views']['set'](_0x1a11a3[_0x5eb94d(0x33a)],_0x1a11a3),_0x5b4066(()=>this[_0x5eb94d(0x2b5)][_0x5eb94d(0x4f4)](_0x1a11a3['type']));}[_0x354fcb(0x455)](_0x1ab8c6,_0x22a20f,_0xde52f6){const _0x8c2891=_0x354fcb;var _0x2c4748,_0x3509bf,_0x53debf;return I(_0x8c2891(0x4ba),()=>{const _0x8ef8e6=_0x8c2891;let _0x300e95=this[_0x8ef8e6(0x202)](_0x1ab8c6,_0x22a20f,_0xde52f6);if(_0x300e95)return _0x300e95;let _0x4133ef=_0x1ab8c6[_0x8ef8e6(0x2ba)][_0x22a20f],_0x286ce8=_0x4133ef==null?void 0x0:_0x4133ef[_0x8ef8e6(0x38b)][_0xde52f6];if(!_0x4133ef||!_0x286ce8)return this['_setCachedProjection'](_0x1ab8c6,_0x22a20f,_0xde52f6,{'type':_0x8ef8e6(0x20e),'viewType':(_0x286ce8==null?void 0x0:_0x286ce8[_0x8ef8e6(0x33a)])??_0x2b4a2c[_0x8ef8e6(0x388)],'reason':_0x8ef8e6(0x4bf)});let _0x3f2aea;switch(_0x286ce8[_0x8ef8e6(0x33a)]){case _0x2b4a2c['Grid']:_0x3f2aea=this[_0x8ef8e6(0x187)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c[_0x8ef8e6(0x3da)]:_0x3f2aea=this[_0x8ef8e6(0x330)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Kanban']:_0x3f2aea=this[_0x8ef8e6(0x4a9)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Calendar']:_0x3f2aea=this[_0x8ef8e6(0x2d0)](_0x4133ef,_0x286ce8);break;case _0x2b4a2c['Gallery']:_0x3f2aea=this[_0x8ef8e6(0x441)](_0x4133ef,_0x286ce8);break;default:_0x3f2aea={'type':'invalid','viewType':_0x286ce8[_0x8ef8e6(0x33a)],'reason':_0x8ef8e6(0x4bf)};}return this[_0x8ef8e6(0x20d)](_0x1ab8c6,_0x22a20f,_0xde52f6,_0x3f2aea);},{'tableId':_0x22a20f,'viewId':_0xde52f6,'viewType':(_0x2c4748=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null||(_0x2c4748=_0x2c4748[_0x8c2891(0x38b)][_0xde52f6])==null?void 0x0:_0x2c4748[_0x8c2891(0x33a)],'records':((_0x3509bf=_0x1ab8c6['tables'][_0x22a20f])==null||(_0x3509bf=_0x3509bf[_0x8c2891(0x22d)])==null?void 0x0:_0x3509bf['length'])??Object[_0x8c2891(0x51b)](((_0x53debf=_0x1ab8c6[_0x8c2891(0x2ba)][_0x22a20f])==null?void 0x0:_0x53debf['records'])??{})[_0x8c2891(0x458)]});}[_0x354fcb(0x245)](_0x42df31,_0x348e50,_0x331b93){const _0x161a71=_0x354fcb;var _0x4880c5,_0x166ed3,_0x2de594;let _0x4b855a=_0x42df31[_0x161a71(0x2ba)][_0x348e50],_0x3575f9=_0x4b855a==null?void 0x0:_0x4b855a['views'][_0x331b93];if(!_0x4b855a||!_0x3575f9)throw Error(_0x161a71(0x49a)+_0x331b93+'\x22.');let _0x5c693c=_0x105a18=>!!_0x4b855a['fields'][_0x105a18],_0x28b6c2={..._0x3575f9,'filter':_0x3575f9[_0x161a71(0x397)]?{..._0x3575f9[_0x161a71(0x397)],'conditions':_0x3575f9[_0x161a71(0x397)][_0x161a71(0x309)][_0x161a71(0x397)](_0x2955ee=>_0x5c693c(_0x2955ee[_0x161a71(0x46e)]))}:_0x3575f9['filter'],'sort':(_0x4880c5=_0x3575f9[_0x161a71(0x3db)])==null?void 0x0:_0x4880c5[_0x161a71(0x397)](_0x2cf25a=>_0x5c693c(_0x2cf25a[_0x161a71(0x46e)])),'group':(_0x166ed3=_0x3575f9[_0x161a71(0x1b9)])==null?void 0x0:_0x166ed3['filter'](_0x1fa4ce=>_0x5c693c(_0x1fa4ce['fieldId'])),'fieldOrder':(_0x2de594=_0x3575f9[_0x161a71(0x1e1)])==null?void 0x0:_0x2de594['filter'](_0x5c693c),'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x3575f9[_0x161a71(0x484)]??{})[_0x161a71(0x397)](([_0x224bee])=>_0x5c693c(_0x224bee)))};if(_0x28b6c2[_0x161a71(0x33a)]===_0x161a71(0x2cd)){var _0x211c41;let _0x1f9ec6=_0x28b6c2[_0x161a71(0x342)]??{},_0x48ff08=this[_0x161a71(0x194)](_0x4b855a,_0x28b6c2),_0x3dffcb=this[_0x161a71(0x28c)](_0x4b855a,(_0x211c41=_0x1f9ec6[_0x161a71(0x510)])==null?void 0x0:_0x211c41[_0x161a71(0x345)]);_0x28b6c2[_0x161a71(0x342)]={..._0x1f9ec6,'groupFieldId':_0x48ff08??_0x1f9ec6[_0x161a71(0x38a)],'coverFieldId':this[_0x161a71(0x4c0)](_0x4b855a,_0x1f9ec6),'cardLayout':_0x1f9ec6[_0x161a71(0x28f)]==='compose'?'compose':_0x161a71(0x445),'showFieldNames':_0x1f9ec6[_0x161a71(0x1d9)]!==!0x1,'fieldSettings':Object[_0x161a71(0x2e8)](Object[_0x161a71(0x1e2)](_0x1f9ec6[_0x161a71(0x484)]??{})['filter'](([_0x3f634f])=>_0x5c693c(_0x3f634f))),'columnSettings':_0x1f9ec6[_0x161a71(0x4d4)]??{},'card':{..._0x1f9ec6['card']??{},'titleFieldId':_0x3dffcb,'fieldIds':this[_0x161a71(0x315)](_0x4b855a,_0x28b6c2,_0x48ff08??'',_0x3dffcb)}};}return{'repaired':JSON[_0x161a71(0x449)](_0x28b6c2)!==JSON[_0x161a71(0x449)](_0x3575f9),'view':_0x28b6c2};}[_0x354fcb(0x51e)](){const _0x2d4c00=_0x354fcb;this[_0x2d4c00(0x4f2)]++;}[_0x354fcb(0x520)](_0x53a72e,_0x5c288a,_0x11e80e){const _0x431a21=_0x354fcb;let _0x33e551=this[_0x431a21(0x423)](_0x53a72e)+0x1;this[_0x431a21(0x517)][_0x431a21(0x1a1)](_0x53a72e,_0x33e551);let _0x214821=this['_cellInvalidations'][_0x431a21(0x4a8)](_0x53a72e)??[];_0x214821[_0x431a21(0x1f3)]({'revision':_0x33e551,'recordId':_0x5c288a,'fieldId':_0x11e80e}),this[_0x431a21(0x299)][_0x431a21(0x1a1)](_0x53a72e,_0x214821);}[_0x354fcb(0x42b)](_0x27db65,_0x18e5c9){const _0x1354a3=_0x354fcb;this[_0x1354a3(0x2b2)](_0x27db65);}['invalidateByView'](_0x360d86,_0x10bd2d){const _0x4ffd9e=_0x354fcb;this[_0x4ffd9e(0x2a0)][_0x4ffd9e(0x1a1)](this[_0x4ffd9e(0x1f2)](_0x360d86,_0x10bd2d),this[_0x4ffd9e(0x383)](_0x360d86,_0x10bd2d)+0x1);}['_getCachedProjection'](_0x29e266,_0xad3551,_0x5823ef){const _0x46c317=_0x354fcb;var _0x178ed9;let _0x447e88=(_0x178ed9=this[_0x46c317(0x2fd)]['get'](_0x29e266))==null?void 0x0:_0x178ed9[_0x46c317(0x4a8)](this[_0x46c317(0x1ee)](_0xad3551,_0x5823ef));return _0x447e88&&_0x447e88[_0x46c317(0x26d)]===this[_0x46c317(0x4f2)]&&_0x447e88['tableRevision']===this[_0x46c317(0x362)](_0xad3551)&&_0x447e88[_0x46c317(0x1e4)]===this[_0x46c317(0x423)](_0xad3551)&&_0x447e88['viewRevision']===this[_0x46c317(0x383)](_0xad3551,_0x5823ef)?_0x447e88[_0x46c317(0x48f)]:null;}[_0x354fcb(0x20d)](_0x27db7d,_0x1acded,_0x460ede,_0x373c40){const _0x4fd63e=_0x354fcb;let _0x56fa56=this[_0x4fd63e(0x2fd)][_0x4fd63e(0x4a8)](_0x27db7d);return _0x56fa56||(_0x56fa56=new Map(),this[_0x4fd63e(0x2fd)][_0x4fd63e(0x1a1)](_0x27db7d,_0x56fa56)),_0x56fa56[_0x4fd63e(0x1a1)](this[_0x4fd63e(0x1ee)](_0x1acded,_0x460ede),{'projection':_0x373c40,'globalRevision':this[_0x4fd63e(0x4f2)],'tableRevision':this[_0x4fd63e(0x362)](_0x1acded),'cellRevision':this[_0x4fd63e(0x423)](_0x1acded),'viewRevision':this[_0x4fd63e(0x383)](_0x1acded,_0x460ede)}),_0x373c40;}[_0x354fcb(0x2b2)](_0x707279){const _0x980038=_0x354fcb;this['_tableRevisions']['set'](_0x707279,this[_0x980038(0x362)](_0x707279)+0x1);}[_0x354fcb(0x362)](_0x5f172f){const _0x4a894b=_0x354fcb;return this[_0x4a894b(0x2e2)][_0x4a894b(0x4a8)](_0x5f172f)??0x0;}[_0x354fcb(0x423)](_0x29551e){const _0x5cee30=_0x354fcb;return this[_0x5cee30(0x517)][_0x5cee30(0x4a8)](_0x29551e)??0x0;}[_0x354fcb(0x383)](_0x4b35b9,_0x564b5d){const _0x2bebe3=_0x354fcb;return this[_0x2bebe3(0x2a0)][_0x2bebe3(0x4a8)](this[_0x2bebe3(0x1f2)](_0x4b35b9,_0x564b5d))??0x0;}[_0x354fcb(0x1ee)](_0x465618,_0x16993f){return _0x465618+'\x00'+_0x16993f;}[_0x354fcb(0x1d6)](_0x1bb6ad,_0x4129e4){const _0x28ab0b=_0x354fcb;return _0x1bb6ad+'\x00'+this[_0x28ab0b(0x262)](_0x4129e4);}['_groupsCacheKey'](_0x4e898a,_0x56fcb1,_0x1b832c){const _0x2d9f9f=_0x354fcb;return _0x4e898a+'\x00'+this[_0x2d9f9f(0x262)](_0x56fcb1)+'\x00'+this['_groupConfigCacheSegment'](_0x1b832c);}[_0x354fcb(0x262)](_0x2861e4){const _0x12e424=_0x354fcb;return _0x2861e4?mi({'filter':di(_0x2861e4[_0x12e424(0x397)]),'sort':pi(_0x2861e4[_0x12e424(0x3db)])}):'__all__';}[_0x354fcb(0x3b6)](_0x1a6cd0){const _0x407a9e=_0x354fcb;return mi(_0x1a6cd0['map'](_0xf444e=>({'fieldId':_0xf444e[_0x407a9e(0x46e)],'direction':_0xf444e['direction']??null})));}[_0x354fcb(0x1f2)](_0x90c919,_0x59fc11){return _0x90c919+'\x00'+_0x59fc11;}[_0x354fcb(0x187)](_0x1b9a1f,_0x76ef6e){const _0x38f4f5=_0x354fcb;var _0x38ca48;let _0x304f71=Je(_0x1b9a1f),_0x46a51e=this[_0x38f4f5(0x40f)](_0x1b9a1f,_0x76ef6e),_0x1ca098=(_0x38ca48=_0x76ef6e[_0x38f4f5(0x397)])!=null&&_0x38ca48[_0x38f4f5(0x309)][_0x38f4f5(0x458)]?this[_0x38f4f5(0x40f)](_0x1b9a1f,{..._0x76ef6e,'filter':null}):_0x46a51e,_0x1b7114=nt(this[_0x38f4f5(0x259)](_0x1b9a1f,_0x304f71,_0x76ef6e['id'],_0x1ca098[_0x38f4f5(0x29b)](_0x4f93b4=>_0x4f93b4['recordId'])),_0x1ca098,new Set(_0x46a51e[_0x38f4f5(0x29b)](_0x439557=>_0x439557[_0x38f4f5(0x4bb)])));return{'type':_0x2b4a2c[_0x38f4f5(0x388)],'fields':this[_0x38f4f5(0x430)](_0x1b9a1f,_0x76ef6e),'rows':_0x1b7114[_0x38f4f5(0x490)],'groups':this['_projectHierarchyGroups'](_0x1b9a1f,_0x76ef6e,_0x1b7114[_0x38f4f5(0x490)],_0x1b7114[_0x38f4f5(0x51a)]),'hierarchy':_0x1b7114['hierarchy'],'frozenFieldCount':typeof _0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]==_0x38f4f5(0x256)?_0x76ef6e[_0x38f4f5(0x342)][_0x38f4f5(0x3af)]:0x0};}[_0x354fcb(0x259)](_0x2222f4,_0x2d1b0d,_0x38a9c2,_0x49360c){const _0x488dc6=_0x354fcb;let _0x1d7715=_0x2222f4['id']+'\x00'+_0x2d1b0d+'\x00'+_0x38a9c2,_0x1d2765=this[_0x488dc6(0x423)](_0x2222f4['id']),_0x27740f=this['_hierarchyIndexCache']['get'](_0x1d7715);if(_0x27740f&&_0x27740f['globalRevision']===this['_globalRevision']&&_0x27740f[_0x488dc6(0x306)]===this['_getTableRevision'](_0x2222f4['id'])&&_0x27740f['orderedRecordIds']['length']===_0x49360c[_0x488dc6(0x458)]&&_0x27740f[_0x488dc6(0x1a3)][_0x488dc6(0x1b6)]((_0x4aab50,_0x4f3df2)=>_0x4aab50===_0x49360c[_0x4f3df2])){if(_0x27740f['cellRevision']===_0x1d2765&&_0x27740f[_0x488dc6(0x513)]===_0x2222f4)return _0x27740f[_0x488dc6(0x250)];if(!this[_0x488dc6(0x2b8)](_0x2222f4['id'],_0x27740f[_0x488dc6(0x1e4)],_0x1d2765,new Set([_0x2d1b0d])))return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{..._0x27740f,'table':_0x2222f4,'cellRevision':_0x1d2765}),_0x27740f[_0x488dc6(0x250)];}let _0x1842c6=tt(_0x2222f4,_0x2d1b0d,_0x49360c);return this['_hierarchyIndexCache'][_0x488dc6(0x1a1)](_0x1d7715,{'table':_0x2222f4,'index':_0x1842c6,'orderedRecordIds':_0x49360c,'globalRevision':this[_0x488dc6(0x4f2)],'tableRevision':this['_getTableRevision'](_0x2222f4['id']),'cellRevision':_0x1d2765}),_0x1842c6;}['_projectHierarchyGroups'](_0x3d740c,_0x1bc281,_0x396e4a,_0x1867d9){const _0x1bfcf3=_0x354fcb;var _0x25aece;if(!((_0x25aece=_0x1bc281[_0x1bfcf3(0x1b9)])!=null&&_0x25aece['length']))return[];let _0x31b1d5=new Map(_0x396e4a[_0x1bfcf3(0x29b)](_0x509472=>[_0x509472[_0x1bfcf3(0x4bb)],_0x509472])),_0x298754=_0x1867d9['rootRecordIds'][_0x1bfcf3(0x2a2)](_0x17e90e=>{const _0x41c302=_0x1bfcf3;let _0x2d1ea7=_0x31b1d5[_0x41c302(0x4a8)](_0x17e90e);return _0x2d1ea7?[_0x2d1ea7]:[];}),_0x244969=this[_0x1bfcf3(0x3a3)](_0x3d740c,_0x1bc281,_0x298754),_0x3a90b5=new Map(_0x1867d9[_0x1bfcf3(0x1a3)]['map']((_0x9e9eee,_0x4647b1)=>[_0x9e9eee,_0x4647b1])),_0x43d328=_0x2a8467=>{const _0x2b57dc=_0x1bfcf3;let _0x36256a=_0x1867d9['nodes'][_0x2a8467],_0x385fa9=_0x3a90b5[_0x2b57dc(0x4a8)](_0x2a8467)??-0x1;return _0x385fa9<0x0||!_0x36256a?[]:_0x1867d9[_0x2b57dc(0x1a3)][_0x2b57dc(0x192)](_0x385fa9,_0x36256a['subtreeEndIndex']+0x1);},_0x3af8cc=_0x17507e=>{const _0x497da9=_0x1bfcf3;var _0x149bb8,_0x3e1c7f;return{..._0x17507e,'recordIds':(_0x149bb8=_0x17507e[_0x497da9(0x37f)])!=null&&_0x149bb8[_0x497da9(0x458)]?_0x17507e[_0x497da9(0x51f)]:_0x17507e[_0x497da9(0x51f)]['flatMap'](_0x43d328),'children':(_0x3e1c7f=_0x17507e['children'])==null?void 0x0:_0x3e1c7f[_0x497da9(0x29b)](_0x3af8cc)};};return _0x244969['map'](_0x3af8cc);}[_0x354fcb(0x4a9)](_0x3da628,_0x7e5b25){const _0x4061bf=_0x354fcb;var _0x3a4a75;let _0x4c5055=this[_0x4061bf(0x194)](_0x3da628,_0x7e5b25),_0x340a3e=_0x4c5055?_0x3da628[_0x4061bf(0x480)][_0x4c5055]:void 0x0;if(!_0x340a3e)return{'type':_0x4061bf(0x20e),'viewType':_0x2b4a2c[_0x4061bf(0x4ce)],'reason':_0x4061bf(0x492),'fieldId':_0x7e5b25[_0x4061bf(0x342)]['groupFieldId']};let _0x5cc3e6=this[_0x4061bf(0x40f)](_0x3da628,_0x7e5b25),_0x3f9e26=this[_0x4061bf(0x430)](_0x3da628,_0x7e5b25),_0x5a441c=_0x7e5b25[_0x4061bf(0x342)]??{},_0x457c3b=this[_0x4061bf(0x28c)](_0x3da628,(_0x3a4a75=_0x5a441c[_0x4061bf(0x510)])==null?void 0x0:_0x3a4a75[_0x4061bf(0x345)]),_0x1c78f3=this[_0x4061bf(0x315)](_0x3da628,_0x7e5b25,_0x340a3e['id'],_0x457c3b),_0x4c7bb1=new Map();if(F(_0x3da628,_0x340a3e['id'])){let _0x5aba63=this[_0x4061bf(0x259)](_0x3da628,_0x340a3e['id'],_0x7e5b25['id'],_0x5cc3e6[_0x4061bf(0x29b)](_0x1b6c71=>_0x1b6c71[_0x4061bf(0x4bb)])),_0x49636e=new Map();return _0x5cc3e6[_0x4061bf(0x461)](_0x2f851e=>{const _0x4cd98f=_0x4061bf;let _0x504761=_0x5aba63[_0x4cd98f(0x36e)][_0x4cd98f(0x4a8)](_0x2f851e[_0x4cd98f(0x4bb)])??null,_0x3915bd=_0x504761??'',_0x40b8d8=_0x504761?_0x3da628[_0x4cd98f(0x45a)][_0x504761]:void 0x0,_0x9fd1f5=_0x49636e['get'](_0x3915bd)??{'key':_0x3915bd,'title':_0x40b8d8?String(yt(_0x3da628,_0x40b8d8['id'],_0x3da628['primaryFieldId'])??_0x504761):this[_0x4cd98f(0x272)](_0x340a3e,_0x3915bd,_0x5a441c),'recordIds':[]};_0x9fd1f5[_0x4cd98f(0x51f)][_0x4cd98f(0x1f3)](_0x2f851e[_0x4cd98f(0x4bb)]),_0x49636e['set'](_0x3915bd,_0x9fd1f5);}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':[],'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this[_0x4061bf(0x4c0)](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]==='compose'?_0x4061bf(0x1fb):_0x4061bf(0x445),'showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':['',..._0x5aba63[_0x4061bf(0x1a3)]][_0x4061bf(0x2a2)](_0x26662f=>{const _0x5bac6b=_0x4061bf;let _0x1de35f=_0x49636e['get'](_0x26662f);return _0x1de35f!=null&&_0x1de35f[_0x5bac6b(0x51f)][_0x5bac6b(0x458)]?[_0x1de35f]:[];})};}return this[_0x4061bf(0x1a0)](_0x340a3e,_0x5a441c)['forEach'](_0x5af4e2=>_0x4c7bb1[_0x4061bf(0x1a1)](_0x5af4e2['key'],{..._0x5af4e2,'recordIds':[]})),_0x5cc3e6[_0x4061bf(0x461)](_0x5ce558=>{const _0x101fa9=_0x4061bf;this[_0x101fa9(0x1a7)](_0x340a3e,_0x5ce558['values'][_0x340a3e['id']])[_0x101fa9(0x461)](_0x2a0c47=>{const _0x55ced2=_0x101fa9;let _0x48ff0a=_0x4c7bb1['get'](_0x2a0c47)??{'key':_0x2a0c47,'title':this[_0x55ced2(0x272)](_0x340a3e,_0x2a0c47,_0x5a441c),'color':this[_0x55ced2(0x3b7)](_0x340a3e,_0x2a0c47,_0x5a441c),'recordIds':[]};_0x48ff0a['recordIds'][_0x55ced2(0x1f3)](_0x5ce558[_0x55ced2(0x4bb)]),_0x4c7bb1[_0x55ced2(0x1a1)](_0x2a0c47,_0x48ff0a);});}),{'type':_0x2b4a2c[_0x4061bf(0x4ce)],'fields':_0x3f9e26,'rows':_0x5cc3e6,'groups':this[_0x4061bf(0x3a3)](_0x3da628,_0x7e5b25,_0x5cc3e6),'groupFieldId':_0x340a3e['id'],'titleFieldId':_0x457c3b,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x3da628,_0x5a441c),'cardLayout':_0x5a441c[_0x4061bf(0x28f)]===_0x4061bf(0x1fb)?_0x4061bf(0x1fb):'normal','showFieldNames':_0x5a441c[_0x4061bf(0x1d9)]!==!0x1,'visibleCardFieldIds':_0x1c78f3,'lanes':Array['from'](_0x4c7bb1['values']())};}[_0x354fcb(0x194)](_0x526e2a,_0x56a523){const _0x55e4bd=_0x354fcb;var _0x317db2;let _0x4c0015=(_0x317db2=_0x56a523['config'])==null?void 0x0:_0x317db2['groupFieldId'];return _0x4c0015&&this[_0x55e4bd(0x337)](_0x526e2a,_0x4c0015)?_0x4c0015:this[_0x55e4bd(0x24f)](_0x526e2a,_0x1cf316=>this[_0x55e4bd(0x32e)](_0x1cf316));}['_findKanbanGroupField'](_0x53eed0,_0x250ec7){const _0x1016e4=_0x354fcb;for(let _0x4da37c of _0x53eed0[_0x1016e4(0x1e1)]){let _0x29e918=_0x53eed0[_0x1016e4(0x480)][_0x4da37c];if(_0x29e918&&_0x250ec7(_0x29e918))return _0x29e918['id'];}return null;}[_0x354fcb(0x337)](_0x3f2e6e,_0x40e919){const _0x374fe7=_0x354fcb;let _0x2c5eeb=_0x3f2e6e['fields'][_0x40e919];return this[_0x374fe7(0x32e)](_0x2c5eeb)||F(_0x3f2e6e,_0x40e919);}['_isAllowedKanbanGroupField'](_0x4d13e8){const _0x34f97a=_0x354fcb;return!!_0x4d13e8&&(_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x407)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x283)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x4c5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x1e5)]||_0x4d13e8['type']===_0x19bf94[_0x34f97a(0x223)]||_0x4d13e8[_0x34f97a(0x33a)]===_0x19bf94[_0x34f97a(0x19e)]);}[_0x354fcb(0x3d5)](_0x1c0026){const _0x3832ed=_0x354fcb;return _0x1c0026[_0x3832ed(0x33a)]===_0x19bf94['SingleSelect']||_0x1c0026['type']===_0x19bf94[_0x3832ed(0x283)];}[_0x354fcb(0x4c0)](_0x576e05,_0x245baa){const _0x110539=_0x354fcb;var _0x3a8e80;let _0x263c65=_0x245baa[_0x110539(0x4f8)]??((_0x3a8e80=_0x245baa[_0x110539(0x510)])==null?void 0x0:_0x3a8e80[_0x110539(0x4f8)])??null;if(!_0x263c65)return null;let _0x37ef5f=_0x576e05[_0x110539(0x480)][_0x263c65];return _0x37ef5f&&this[_0x110539(0x466)](_0x37ef5f)['usableAsCardCover']?_0x37ef5f['id']:null;}[_0x354fcb(0x315)](_0x1d47e8,_0x460f15,_0x5cd33f,_0x49c44e=this['_resolveCardTitleFieldId'](_0x1d47e8,((()=>{const _0x1555b4=_0x354fcb;var _0x3d2408;return(_0x3d2408=_0x460f15[_0x1555b4(0x342)])==null||(_0x3d2408=_0x3d2408[_0x1555b4(0x510)])==null?void 0x0:_0x3d2408[_0x1555b4(0x345)];})()))){const _0x4fa209=_0x354fcb;var _0x58c1a2;let _0x3145b5=_0x460f15[_0x4fa209(0x342)]??{},_0x5ce1b6=(_0x58c1a2=_0x3145b5['card'])!=null&&(_0x58c1a2=_0x58c1a2[_0x4fa209(0x227)])!=null&&_0x58c1a2[_0x4fa209(0x458)]?_0x3145b5[_0x4fa209(0x510)]['fieldIds']:Qr(_0x1d47e8,[_0x49c44e,_0x1d47e8[_0x4fa209(0x4cf)],_0x5cd33f]),_0x4721af=_0x3145b5[_0x4fa209(0x484)]??{};return _0x5ce1b6[_0x4fa209(0x397)](_0x2e6e4f=>{const _0x43e3b9=_0x4fa209;var _0x12cbcb,_0x3a12d3;let _0x3a23d3=_0x1d47e8[_0x43e3b9(0x480)][_0x2e6e4f];return!(!_0x3a23d3||_0x3a23d3[_0x43e3b9(0x1cb)]===!0x0||_0x3a23d3['type']===_0x19bf94[_0x43e3b9(0x44f)]||_0x3a23d3['id']===_0x5cd33f||_0x3a23d3['id']===_0x49c44e||(_0x12cbcb=_0x460f15['fieldSettings'])!=null&&(_0x12cbcb=_0x12cbcb[_0x2e6e4f])!=null&&_0x12cbcb[_0x43e3b9(0x1ce)]||(_0x3a12d3=_0x4721af[_0x2e6e4f])!=null&&_0x3a12d3[_0x43e3b9(0x1ce)]);})[_0x4fa209(0x3db)]((_0x13b0a3,_0x5c79f0)=>{const _0x21e589=_0x4fa209;var _0xbf4cca,_0x10bb11;return(((_0xbf4cca=_0x4721af[_0x13b0a3])==null?void 0x0:_0xbf4cca[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x13b0a3))-(((_0x10bb11=_0x4721af[_0x5c79f0])==null?void 0x0:_0x10bb11[_0x21e589(0x39c)])??_0x5ce1b6[_0x21e589(0x4c8)](_0x5c79f0));});}[_0x354fcb(0x1a0)](_0x41b42b,_0x19affb){const _0x45511a=_0x354fcb;var _0x298fe9;let _0x9949d3=(Array['isArray']((_0x298fe9=_0x41b42b['config'])==null?void 0x0:_0x298fe9[_0x45511a(0x392)])?_0x41b42b[_0x45511a(0x342)][_0x45511a(0x392)]:[])[_0x45511a(0x2a2)]((_0x58c872,_0x394814)=>{const _0x4c3cf9=_0x45511a;if(_0x58c872==null)return[];let _0x12b259=typeof _0x58c872==_0x4c3cf9(0x471)?{'id':_0x58c872,'name':_0x58c872,'color':void 0x0}:_0x58c872,_0x5cf37e=String(_0x12b259['id']??_0x12b259[_0x4c3cf9(0x1e0)]??_0x4c3cf9(0x2d3)+(_0x394814+0x1));return[{'key':_0x5cf37e,'title':String(_0x12b259[_0x4c3cf9(0x1e0)]??_0x12b259['id']??_0x5cf37e),'color':this['_kanbanLaneColor'](_0x41b42b,_0x5cf37e,_0x19affb)}];});return Object[_0x45511a(0x1e2)](_0x19affb[_0x45511a(0x4d4)]??{})['forEach'](([_0x42dd43,_0x56dda4])=>{const _0xff6424=_0x45511a;_0x9949d3[_0xff6424(0x257)](_0x10c6b7=>_0x10c6b7[_0xff6424(0x3f2)]===_0x42dd43)||_0x9949d3[_0xff6424(0x1f3)]({'key':_0x42dd43,'title':this['_isColorfulKanbanGroupField'](_0x41b42b)?_0x56dda4[_0xff6424(0x3ba)]??this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb):this[_0xff6424(0x272)](_0x41b42b,_0x42dd43,_0x19affb),'color':this[_0xff6424(0x3b7)](_0x41b42b,_0x42dd43,_0x19affb)});}),_0x9949d3;}[_0x354fcb(0x1a7)](_0x5c9d32,_0x2b8ff8){const _0x517130=_0x354fcb;let _0x5d4e25=_0x320f7e=>{var _0x2c9f9d;let _0x3cc6c6=_0x320f7e==null?'':String(_0x320f7e);return!_0x3cc6c6||!this['_isColorfulKanbanGroupField'](_0x5c9d32)?_0x3cc6c6:((_0x2c9f9d=Li(_0x5c9d32,_0x3cc6c6))==null?void 0x0:_0x2c9f9d['id'])??_0x3cc6c6;};if(Array['isArray'](_0x2b8ff8)){let _0x5a119c=_0x2b8ff8['map'](_0x5d4e25)[_0x517130(0x397)](_0x3d8027=>_0x3d8027!=='');return _0x5a119c[_0x517130(0x458)]?_0x5a119c:[''];}return[_0x5d4e25(_0x2b8ff8)];}[_0x354fcb(0x272)](_0xf3bb85,_0xa54c9,_0x55c118){const _0x4669b3=_0x354fcb;if(!_0xa54c9)return _0x4669b3(0x504);let _0x28500b=Li(_0xf3bb85,_0xa54c9);return(_0x28500b==null?void 0x0:_0x28500b[_0x4669b3(0x1e0)])??_0xa54c9;}[_0x354fcb(0x3b7)](_0x2f12af,_0x475ebf,_0x399cf7){const _0x2e8b91=_0x354fcb;var _0x230112;if(this[_0x2e8b91(0x3d5)](_0x2f12af))return(_0x230112=Li(_0x2f12af,_0x475ebf))==null?void 0x0:_0x230112[_0x2e8b91(0x190)];}['_buildCalendar'](_0x112f5c,_0x469944){const _0x2244b9=_0x354fcb;let _0x23dc42=this[_0x2244b9(0x34a)](_0x112f5c,_0x469944[_0x2244b9(0x342)]??{}),_0x3595f3=_0x112f5c[_0x2244b9(0x480)][_0x23dc42['startDateFieldId']];if(!_0x3595f3||_0x3595f3['type']!==_0x19bf94[_0x2244b9(0x440)]||_0x3595f3[_0x2244b9(0x401)]===!0x0||_0x3595f3[_0x2244b9(0x1cb)]===!0x0||!this[_0x2244b9(0x466)](_0x3595f3)[_0x2244b9(0x3fa)])return{'type':'invalid','viewType':_0x2b4a2c[_0x2244b9(0x4e8)],'reason':'invalidDateField','fieldId':_0x23dc42[_0x2244b9(0x240)]};let _0x5f0bf0=_0x23dc42[_0x2244b9(0x171)]?_0x112f5c[_0x2244b9(0x480)][_0x23dc42[_0x2244b9(0x171)]]:void 0x0,_0x3a8d7b=this[_0x2244b9(0x40f)](_0x112f5c,_0x469944);return{'type':_0x2b4a2c[_0x2244b9(0x4e8)],'config':_0x23dc42,'fields':this[_0x2244b9(0x430)](_0x112f5c,_0x469944),'rows':_0x3a8d7b,'groups':this[_0x2244b9(0x3a3)](_0x112f5c,_0x469944,_0x3a8d7b),'events':_0x3a8d7b[_0x2244b9(0x2a2)](_0x16dcf3=>{const _0xbc04fd=_0x2244b9;let _0x16a5e4=dn(_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x240)]]);if(!Number[_0xbc04fd(0x2c3)](_0x16a5e4))return[];let _0x21c424=_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42['startDateFieldId']],_0x1d2f8c=_0x23dc42[_0xbc04fd(0x171)]==null?void 0x0:_0x16dcf3[_0xbc04fd(0x1da)][_0x23dc42[_0xbc04fd(0x171)]],_0x462f37=_0x23dc42['endDateFieldId']==null?void 0x0:dn(_0x1d2f8c),_0x41a05c=Number[_0xbc04fd(0x2c3)](_0x462f37)?_0x462f37:void 0x0;return[{'recordId':_0x16dcf3[_0xbc04fd(0x4bb)],'title':this[_0xbc04fd(0x431)](_0x112f5c,_0x16dcf3,_0x23dc42[_0xbc04fd(0x345)]),'start':_0x16a5e4,'end':_0x41a05c,'color':this[_0xbc04fd(0x3be)](_0x112f5c,_0x16dcf3,_0x23dc42),'startMs':_0x16a5e4,'endMs':_0x41a05c,'allDay':this['_isAllDayCalendarEvent'](_0x3595f3,_0x5f0bf0,_0x21c424,_0x1d2f8c),'fieldValues':_0x16dcf3[_0xbc04fd(0x1da)]}];})};}[_0x354fcb(0x34a)](_0x3d17cb,_0x12d143){const _0x7cc3cd=_0x354fcb;let _0x58aeac=this[_0x7cc3cd(0x3dc)](_0x3d17cb,_0x12d143['startDateFieldId']),_0x5def45=_0x12d143[_0x7cc3cd(0x171)]&&this[_0x7cc3cd(0x1ef)](_0x3d17cb,_0x12d143[_0x7cc3cd(0x171)])?_0x12d143[_0x7cc3cd(0x171)]:this['_findCalendarDateFieldId'](_0x3d17cb,_0x58aeac)??void 0x0,_0x573b64=_0x12d143[_0x7cc3cd(0x345)]?_0x3d17cb[_0x7cc3cd(0x480)][_0x12d143[_0x7cc3cd(0x345)]]:void 0x0,_0x2c8796=_0x573b64&&_0x573b64[_0x7cc3cd(0x1cb)]!==!0x0&&_0x573b64[_0x7cc3cd(0x33a)]!==_0x19bf94[_0x7cc3cd(0x44f)]?_0x12d143[_0x7cc3cd(0x345)]:_0x3d17cb['primaryFieldId'],_0x73bf5d=_0x12d143[_0x7cc3cd(0x31b)]==='day'||_0x12d143[_0x7cc3cd(0x31b)]===_0x7cc3cd(0x1fc)?_0x12d143[_0x7cc3cd(0x31b)]:_0x7cc3cd(0x19b),_0x357ff7=_0x12d143[_0x7cc3cd(0x4be)]===_0x7cc3cd(0x2ea)||_0x12d143['timeslotSize']===_0x7cc3cd(0x1b7)?_0x12d143['timeslotSize']:'medium',_0x1b0e76=typeof _0x12d143[_0x7cc3cd(0x50d)]==_0x7cc3cd(0x471)&&_0x12d143[_0x7cc3cd(0x50d)][_0x7cc3cd(0x3bc)]()?_0x12d143[_0x7cc3cd(0x50d)]:'local',_0x278035=this[_0x7cc3cd(0x43c)](_0x3d17cb,_0x12d143);return{..._0x12d143,'startDateFieldId':_0x58aeac,'endDateFieldId':_0x5def45,'titleFieldId':_0x2c8796,'mode':_0x73bf5d,'timeslotSize':_0x357ff7,'timeZone':_0x1b0e76,'displayColor':_0x278035,'fieldSettings':Object[_0x7cc3cd(0x2e8)](Object[_0x7cc3cd(0x1e2)](_0x12d143[_0x7cc3cd(0x484)]??{})[_0x7cc3cd(0x397)](([_0x5a9898])=>{const _0x33b671=_0x7cc3cd;let _0x33fc0a=_0x3d17cb[_0x33b671(0x480)][_0x5a9898];return!!(_0x33fc0a&&_0x33fc0a[_0x33b671(0x1cb)]!==!0x0&&_0x33fc0a['type']!==_0x19bf94[_0x33b671(0x44f)]);}))};}[_0x354fcb(0x3dc)](_0x587c79,_0x4c03dd){const _0x5ee6b8=_0x354fcb;return _0x4c03dd&&this[_0x5ee6b8(0x1ef)](_0x587c79,_0x4c03dd)?_0x4c03dd:this[_0x5ee6b8(0x460)](_0x587c79)??_0x4c03dd??'';}[_0x354fcb(0x460)](_0x4f33a3,_0x982623){const _0x583f7f=_0x354fcb;for(let _0x12c171 of _0x4f33a3[_0x583f7f(0x1e1)])if(_0x12c171!==_0x982623&&this[_0x583f7f(0x1ef)](_0x4f33a3,_0x12c171))return _0x12c171;return null;}['_isCalendarDateField'](_0x266bc8,_0x1254ca){const _0x2427e1=_0x354fcb;let _0x3d20d8=_0x266bc8[_0x2427e1(0x480)][_0x1254ca];return!!_0x3d20d8&&_0x3d20d8[_0x2427e1(0x33a)]===_0x19bf94[_0x2427e1(0x440)]&&_0x3d20d8['readonly']!==!0x0&&_0x3d20d8['system']!==!0x0&&this[_0x2427e1(0x466)](_0x3d20d8)[_0x2427e1(0x3fa)];}['_normalizeCalendarDisplayColor'](_0x3c4a32,_0x31a7f1){const _0x3ac245=_0x354fcb;let _0x2c4e35=_0x31a7f1[_0x3ac245(0x326)];if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='selectField'){let _0x1b2004=_0x3c4a32[_0x3ac245(0x480)][_0x2c4e35['fieldId']];if(_0x1b2004&&_0x1b2004['type']===_0x19bf94[_0x3ac245(0x407)])return _0x2c4e35;}if((_0x2c4e35==null?void 0x0:_0x2c4e35[_0x3ac245(0x33a)])==='custom'&&typeof _0x2c4e35[_0x3ac245(0x190)]==_0x3ac245(0x471)&&_0x2c4e35[_0x3ac245(0x190)][_0x3ac245(0x3bc)]())return{'type':'custom','color':_0x2c4e35[_0x3ac245(0x190)]};if(_0x31a7f1[_0x3ac245(0x522)]){let _0x4d6122=_0x3c4a32['fields'][_0x31a7f1['colorFieldId']];if(_0x4d6122&&_0x4d6122[_0x3ac245(0x33a)]===_0x19bf94[_0x3ac245(0x407)])return{'type':'selectField','fieldId':_0x31a7f1[_0x3ac245(0x522)]};}return{'type':_0x3ac245(0x49d),'color':_0x3ac245(0x478)};}['_calendarEventColor'](_0x184547,_0xb1d363,_0x510452){const _0x3536c8=_0x354fcb;let _0x429c9d=_0x510452['displayColor'];if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x31f)){var _0x1ed0d2;let _0x21551e=_0x184547[_0x3536c8(0x480)][_0x429c9d['fieldId']];if(!_0x21551e)return;let _0x621684=_0xb1d363[_0x3536c8(0x1da)][_0x429c9d[_0x3536c8(0x46e)]],_0x24c6c4=Array[_0x3536c8(0x354)](_0x621684)?_0x621684[0x0]:_0x621684;return _0x24c6c4==null||(_0x1ed0d2=Li(_0x21551e,String(_0x24c6c4)))==null?void 0x0:_0x1ed0d2[_0x3536c8(0x190)];}if((_0x429c9d==null?void 0x0:_0x429c9d[_0x3536c8(0x33a)])===_0x3536c8(0x49d))return _0x429c9d[_0x3536c8(0x190)];}['_isAllDayCalendarEvent'](_0x397915,_0x1823b0,_0x31dc1d,_0x3c3917){const _0x1fbb87=_0x354fcb;var _0x9ccc80,_0x3cdd3d;let _0x5d3a7d=((_0x9ccc80=_0x397915[_0x1fbb87(0x342)])==null?void 0x0:_0x9ccc80[_0x1fbb87(0x501)])===!0x0,_0x47f987=(_0x1823b0==null||(_0x3cdd3d=_0x1823b0[_0x1fbb87(0x342)])==null?void 0x0:_0x3cdd3d['includeTime'])===!0x0;return!_0x5d3a7d&&!_0x47f987;}['_isAllDayGanttDateRange'](_0x5c7488,_0x2eee87){const _0x1250fa=_0x354fcb;var _0xb9c740,_0x2a5dc3;let _0xe57f63=((_0xb9c740=_0x5c7488[_0x1250fa(0x342)])==null?void 0x0:_0xb9c740['includeTime'])===!0x0,_0x2287aa=((_0x2a5dc3=_0x2eee87[_0x1250fa(0x342)])==null?void 0x0:_0x2a5dc3[_0x1250fa(0x501)])===!0x0;return!_0xe57f63&&!_0x2287aa;}[_0x354fcb(0x330)](_0x47acda,_0x22887c){const _0x3f0c29=_0x354fcb;let _0x205b5d=this[_0x3f0c29(0x230)](_0x47acda,_0x22887c[_0x3f0c29(0x342)]),_0x28084e=_0x47acda[_0x3f0c29(0x480)][_0x205b5d['startDateFieldId']];if(!_0x28084e||_0x28084e[_0x3f0c29(0x33a)]!==_0x19bf94[_0x3f0c29(0x440)]||_0x28084e[_0x3f0c29(0x401)]===!0x0||_0x28084e['system']===!0x0||!this[_0x3f0c29(0x466)](_0x28084e)[_0x3f0c29(0x4da)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':'invalidGanttStartField','fieldId':_0x205b5d[_0x3f0c29(0x240)]};let _0x2f7ab0=_0x47acda['fields'][_0x205b5d['endDateFieldId']];if(!_0x2f7ab0||_0x2f7ab0['type']!==_0x19bf94[_0x3f0c29(0x440)]||_0x2f7ab0[_0x3f0c29(0x401)]===!0x0||_0x2f7ab0[_0x3f0c29(0x1cb)]===!0x0||!this[_0x3f0c29(0x466)](_0x2f7ab0)[_0x3f0c29(0x2e1)])return{'type':_0x3f0c29(0x20e),'viewType':_0x2b4a2c[_0x3f0c29(0x3da)],'reason':_0x3f0c29(0x379),'fieldId':_0x205b5d['endDateFieldId']};let _0x112615=this[_0x3f0c29(0x244)](_0x28084e,_0x2f7ab0),_0x3d5d4e=this['_projectRows'](_0x47acda,_0x22887c),_0x26fe0d=_0x3d5d4e[_0x3f0c29(0x2a2)](_0x217002=>{const _0x23d776=_0x3f0c29;let _0x47bb7b=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x240)]]),_0x315dbe=dn(_0x217002[_0x23d776(0x1da)][_0x205b5d[_0x23d776(0x171)]]);if(!Number['isFinite'](_0x47bb7b)||!Number[_0x23d776(0x2c3)](_0x315dbe))return[];let _0x4e3030=Math[_0x23d776(0x35d)](_0x47bb7b,_0x315dbe),_0x3ad364=Math[_0x23d776(0x1b3)](_0x47bb7b,_0x315dbe),_0x1fd114=_0x205b5d['progressFieldId']==null?void 0x0:Number(_0x217002['values'][_0x205b5d[_0x23d776(0x4aa)]]);return[{'recordId':_0x217002[_0x23d776(0x4bb)],'title':this[_0x23d776(0x431)](_0x47acda,_0x217002,_0x205b5d[_0x23d776(0x345)]),'start':_0x4e3030,'end':_0x3ad364,'color':this[_0x23d776(0x4e7)](_0x47acda,_0x217002,_0x205b5d),'progress':Number[_0x23d776(0x2c3)](_0x1fd114)?_0x1fd114:void 0x0,'workingDayCount':_0x205b5d['workingDaysOnly']?Ti(_0x4e3030,_0x3ad364,_0x205b5d[_0x23d776(0x236)]):void 0x0,'dependencyRecordIds':this[_0x23d776(0x174)](_0x217002['values'][_0x205b5d[_0x23d776(0x4a2)]??''])}];}),_0x41a6b2=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['min'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x1ac70e=>_0x1ac70e['start']))-0x5a*oi):Z(Date[_0x3f0c29(0x181)]()-0x5a*oi),_0xc71828=_0x26fe0d[_0x3f0c29(0x458)]?Z(Math['max'](..._0x26fe0d[_0x3f0c29(0x29b)](_0x310d41=>_0x310d41['end']))+0x5b*oi):Z(Date[_0x3f0c29(0x181)]()+0x5b*oi),_0x5d874e=_i(_0x205b5d[_0x3f0c29(0x17e)],_0x41a6b2,_0xc71828,_0x205b5d[_0x3f0c29(0x39b)]?_0x205b5d['workingDays']:void 0x0);return{'type':_0x2b4a2c[_0x3f0c29(0x3da)],'fields':this[_0x3f0c29(0x430)](_0x47acda,{..._0x22887c,'config':_0x205b5d}),'rows':_0x3d5d4e,'groups':this[_0x3f0c29(0x3a3)](_0x47acda,_0x22887c,_0x3d5d4e),'config':_0x205b5d,'dateRangeAllDay':_0x112615,'timeline':{'scale':_0x205b5d[_0x3f0c29(0x17e)],'start':_0x41a6b2,'end':_0xc71828,'unitWidth':_0x5d874e[_0x3f0c29(0x4c2)],'majorHeaders':_0x5d874e[_0x3f0c29(0x307)],'columns':_0x5d874e[_0x3f0c29(0x50a)]},'bars':_0x26fe0d};}['_normalizeGanttConfig'](_0x3f588a,_0x4a3068){const _0x6c2ab1=_0x354fcb;let _0x444cca=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x240)],_0x6c2ab1(0x191)),_0x5e2715=this[_0x6c2ab1(0x411)](_0x3f588a,_0x4a3068[_0x6c2ab1(0x171)],'end')||_0x444cca,_0x5875a5=_0x4a3068[_0x6c2ab1(0x345)]?_0x3f588a[_0x6c2ab1(0x480)][_0x4a3068[_0x6c2ab1(0x345)]]:void 0x0,_0x26625f=_0x5875a5&&_0x5875a5[_0x6c2ab1(0x1cb)]!==!0x0&&_0x5875a5['type']!==_0x19bf94[_0x6c2ab1(0x44f)]?_0x4a3068[_0x6c2ab1(0x345)]:_0x3f588a[_0x6c2ab1(0x4cf)],_0x556ea5=_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x1fc)||_0x4a3068[_0x6c2ab1(0x17e)]===_0x6c2ab1(0x20c)||_0x4a3068['scale']===_0x6c2ab1(0x377)?_0x4a3068['scale']:_0x6c2ab1(0x19b),_0xdc1230=gi(_0x4a3068[_0x6c2ab1(0x236)]);return{..._0x4a3068,'startDateFieldId':_0x444cca,'endDateFieldId':_0x5e2715,'titleFieldId':_0x26625f,'scale':_0x556ea5,'leftPaneWidth':typeof _0x4a3068['leftPaneWidth']==_0x6c2ab1(0x256)?_0x4a3068[_0x6c2ab1(0x421)]:void 0x0,'leftPaneCollapsed':_0x4a3068[_0x6c2ab1(0x3e8)]===!0x0,'showTodayLine':_0x4a3068[_0x6c2ab1(0x249)]!==!0x1,'displayColor':this[_0x6c2ab1(0x482)](_0x3f588a,_0x4a3068),'fieldSettings':Object['fromEntries'](Object['entries'](_0x4a3068[_0x6c2ab1(0x484)]??{})[_0x6c2ab1(0x397)](([_0x1857a7])=>{const _0x12115c=_0x6c2ab1;let _0x3b49b0=_0x3f588a[_0x12115c(0x480)][_0x1857a7];return!!(_0x3b49b0&&_0x3b49b0['system']!==!0x0&&_0x3b49b0[_0x12115c(0x33a)]!==_0x19bf94[_0x12115c(0x44f)]);})),'workingDaysOnly':_0x4a3068[_0x6c2ab1(0x39b)]===!0x0,'workingDays':_0xdc1230};}['_resolveGanttDateFieldId'](_0x5663dd,_0x21c075,_0x15b9e6){const _0x5a4ad3=_0x354fcb;if(_0x21c075&&this[_0x5a4ad3(0x502)](_0x5663dd,_0x21c075,_0x15b9e6)||_0x21c075)return _0x21c075;for(let _0x47d395 of _0x5663dd[_0x5a4ad3(0x1e1)])if(this[_0x5a4ad3(0x502)](_0x5663dd,_0x47d395,_0x15b9e6))return _0x47d395;return _0x21c075??'';}[_0x354fcb(0x502)](_0x51bdf7,_0x47d0bd,_0x37c2ed){const _0x5c2d24=_0x354fcb;let _0x132ed5=_0x51bdf7['fields'][_0x47d0bd];if(!_0x132ed5||_0x132ed5[_0x5c2d24(0x33a)]!==_0x19bf94['Date']||_0x132ed5['readonly']===!0x0||_0x132ed5['system']===!0x0)return!0x1;let _0x34c971=this[_0x5c2d24(0x466)](_0x132ed5);return _0x37c2ed===_0x5c2d24(0x191)?_0x34c971[_0x5c2d24(0x4da)]:_0x34c971[_0x5c2d24(0x2e1)];}['_normalizeGanttDisplayColor'](_0x53d98c,_0x4b0c7c){const _0x1e421a=_0x354fcb;let _0x52eb73=_0x4b0c7c[_0x1e421a(0x326)];if((_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x31f)){let _0x5c80bf=_0x53d98c['fields'][_0x52eb73[_0x1e421a(0x46e)]];if(_0x5c80bf&&_0x5c80bf[_0x1e421a(0x33a)]===_0x19bf94['SingleSelect'])return _0x52eb73;}return(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x1f0)&&Array['isArray'](_0x52eb73['rules'])?{'type':_0x1e421a(0x1f0),'rules':_0x52eb73[_0x1e421a(0x36c)][_0x1e421a(0x397)](_0x2d663b=>!!_0x53d98c[_0x1e421a(0x480)][_0x2d663b[_0x1e421a(0x46e)]])}:(_0x52eb73==null?void 0x0:_0x52eb73[_0x1e421a(0x33a)])===_0x1e421a(0x49d)&&typeof _0x52eb73['color']=='string'&&_0x52eb73['color'][_0x1e421a(0x3bc)]()?{'type':'custom','color':_0x52eb73[_0x1e421a(0x190)]}:{'type':_0x1e421a(0x49d),'color':_0x1e421a(0x1e3)};}[_0x354fcb(0x4e7)](_0x299724,_0x4010fb,_0x4d3009){const _0x5680cd=_0x354fcb;let _0x3baa3f=_0x4d3009['displayColor'];if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])==='conditional'){let _0x24559d=_0x3baa3f[_0x5680cd(0x36c)][_0x5680cd(0x22f)](_0x24fee7=>this[_0x5680cd(0x395)](_0x299724,_0x4010fb,_0x24fee7));if(_0x24559d)return _0x24559d[_0x5680cd(0x190)];}if((_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x31f)){let _0x5dbc7f=_0x299724[_0x5680cd(0x480)][_0x3baa3f[_0x5680cd(0x46e)]];if(_0x5dbc7f){var _0x2b8c16;let _0x2c27f4=_0x4010fb['values'][_0x3baa3f[_0x5680cd(0x46e)]],_0x174df3=Array[_0x5680cd(0x354)](_0x2c27f4)?_0x2c27f4[0x0]:_0x2c27f4,_0xe5e634=_0x174df3==null||(_0x2b8c16=Li(_0x5dbc7f,String(_0x174df3)))==null?void 0x0:_0x2b8c16['color'];if(_0xe5e634)return _0xe5e634;}}return(_0x3baa3f==null?void 0x0:_0x3baa3f['type'])===_0x5680cd(0x49d)?_0x3baa3f[_0x5680cd(0x190)]:'#14b8a6';}[_0x354fcb(0x395)](_0x2ce437,_0x20360b,_0x35a4c4){const _0x3ab36c=_0x354fcb;let _0x594443=_0x2ce437[_0x3ab36c(0x480)][_0x35a4c4[_0x3ab36c(0x46e)]];return _0x594443?xn(_0x20360b[_0x3ab36c(0x1da)][_0x594443['id']],_0x35a4c4[_0x3ab36c(0x320)],_0x35a4c4[_0x3ab36c(0x526)],_0x594443,{'dateMode':_0x35a4c4[_0x3ab36c(0x43b)]}):!0x1;}[_0x354fcb(0x441)](_0x3474bf,_0x38035c){const _0x940e8e=_0x354fcb;let _0x4ef233=this[_0x940e8e(0x40f)](_0x3474bf,_0x38035c),_0x271dc8=this['_normalizeGalleryConfig'](_0x3474bf,_0x38035c['config']??{}),_0x1ddce2=this['_projectFields'](_0x3474bf,_0x38035c);return{'type':_0x2b4a2c[_0x940e8e(0x17c)],'fields':_0x1ddce2,'rows':_0x4ef233,'groups':this[_0x940e8e(0x3a3)](_0x3474bf,_0x38035c,_0x4ef233),'titleFieldId':_0x271dc8[_0x940e8e(0x510)]['titleFieldId'],'coverFieldId':_0x271dc8[_0x940e8e(0x4f8)],'cardLayout':_0x271dc8['cardLayout']??'normal','showFieldNames':_0x271dc8['showFieldNames']!==!0x1,'visibleCardFieldIds':this[_0x940e8e(0x4a4)](_0x3474bf,_0x38035c,_0x271dc8),'cardSize':_0x271dc8[_0x940e8e(0x33d)]??_0x940e8e(0x524),'cards':_0x4ef233[_0x940e8e(0x29b)](_0x44672b=>({'recordId':_0x44672b[_0x940e8e(0x4bb)],'title':this['_title'](_0x3474bf,_0x44672b,_0x271dc8[_0x940e8e(0x510)]['titleFieldId']),'values':_0x44672b['values']}))};}[_0x354fcb(0x36f)](_0x238ad2,_0x2ee77f){const _0x1c778b=_0x354fcb;let _0x534fc6=_0x2ee77f[_0x1c778b(0x510)]??{'fieldIds':[]},_0x4654d0=this['_resolveCardTitleFieldId'](_0x238ad2,_0x534fc6[_0x1c778b(0x345)]),_0x3b90a9=this[_0x1c778b(0x3fb)](_0x238ad2,_0x2ee77f),_0x31a5c8=_0x2ee77f[_0x1c778b(0x33d)]===_0x1c778b(0x30b)||_0x2ee77f[_0x1c778b(0x33d)]==='large'?_0x2ee77f[_0x1c778b(0x33d)]:_0x1c778b(0x524);return{..._0x2ee77f,'coverFieldId':_0x3b90a9,'cardLayout':_0x2ee77f[_0x1c778b(0x28f)]===_0x1c778b(0x1fb)?'compose':_0x1c778b(0x445),'showFieldNames':_0x2ee77f[_0x1c778b(0x1d9)]!==!0x1,'fieldSettings':Object[_0x1c778b(0x2e8)](Object[_0x1c778b(0x1e2)](_0x2ee77f['fieldSettings']??{})[_0x1c778b(0x397)](([_0x8c2217])=>{const _0x2f5806=_0x1c778b;let _0x530cde=_0x238ad2[_0x2f5806(0x480)][_0x8c2217];return!!(_0x530cde&&_0x530cde[_0x2f5806(0x1cb)]!==!0x0&&_0x530cde[_0x2f5806(0x33a)]!==_0x19bf94[_0x2f5806(0x44f)]);})),'card':{..._0x534fc6,'titleFieldId':_0x4654d0,'coverFieldId':_0x3b90a9,'fieldIds':Array[_0x1c778b(0x354)](_0x534fc6['fieldIds'])?_0x534fc6[_0x1c778b(0x227)]:[]},'cardSize':_0x31a5c8};}[_0x354fcb(0x28c)](_0x4b1d45,_0x3bec48){const _0x27d0c1=_0x354fcb;let _0x3e1201=_0x3bec48?_0x4b1d45['fields'][_0x3bec48]:void 0x0;return _0x3e1201&&_0x3e1201[_0x27d0c1(0x1cb)]!==!0x0&&_0x3e1201[_0x27d0c1(0x33a)]!==_0x19bf94[_0x27d0c1(0x44f)]?_0x3e1201['id']:Zr(_0x4b1d45);}['_resolveGalleryCoverFieldId'](_0x2cbd41,_0x43c12f){const _0x189d08=_0x354fcb;var _0x15984a;let _0xe83033=_0x43c12f[_0x189d08(0x4f8)]??((_0x15984a=_0x43c12f[_0x189d08(0x510)])==null?void 0x0:_0x15984a[_0x189d08(0x4f8)])??null;if(!_0xe83033)return null;let _0x424943=_0x2cbd41[_0x189d08(0x480)][_0xe83033];return _0x424943&&this['_capabilities'](_0x424943)[_0x189d08(0x360)]?_0x424943['id']:null;}[_0x354fcb(0x4a4)](_0x28ace9,_0x3f072d,_0x329fe3){const _0x3dd36a=_0x354fcb;var _0xa1f353,_0x36dbae,_0x348889;let _0x2cd9ad=_0x329fe3[_0x3dd36a(0x484)]??{},_0x3360fd=((_0xa1f353=_0x329fe3[_0x3dd36a(0x510)])==null?void 0x0:_0xa1f353[_0x3dd36a(0x345)])??Zr(_0x28ace9),_0x3a3a4e=_0x329fe3[_0x3dd36a(0x4f8)]??((_0x36dbae=_0x329fe3['card'])==null?void 0x0:_0x36dbae[_0x3dd36a(0x4f8)])??null,_0x349960=(_0x348889=_0x329fe3[_0x3dd36a(0x510)])!=null&&(_0x348889=_0x348889['fieldIds'])!=null&&_0x348889[_0x3dd36a(0x458)]?_0x329fe3[_0x3dd36a(0x510)][_0x3dd36a(0x227)]:Qr(_0x28ace9,[_0x3360fd,_0x3a3a4e,_0x28ace9[_0x3dd36a(0x4cf)]]);return _0x349960[_0x3dd36a(0x397)](_0x5ded64=>{const _0x10cf32=_0x3dd36a;var _0x2ded56,_0x542544;let _0x5ed92e=_0x28ace9['fields'][_0x5ded64];return!(!_0x5ed92e||_0x5ed92e[_0x10cf32(0x1cb)]===!0x0||_0x5ed92e[_0x10cf32(0x33a)]===_0x19bf94[_0x10cf32(0x44f)]||_0x5ed92e['id']===_0x3360fd||_0x5ed92e['id']===_0x3a3a4e||(_0x2ded56=_0x3f072d['fieldSettings'])!=null&&(_0x2ded56=_0x2ded56[_0x5ded64])!=null&&_0x2ded56[_0x10cf32(0x1ce)]||(_0x542544=_0x2cd9ad[_0x5ded64])!=null&&_0x542544[_0x10cf32(0x1ce)]);})[_0x3dd36a(0x3db)]((_0x210bf3,_0x2cfa63)=>{const _0x4e4e5d=_0x3dd36a;var _0x5885e6,_0x10680c;return(((_0x5885e6=_0x2cd9ad[_0x210bf3])==null?void 0x0:_0x5885e6[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x210bf3))-(((_0x10680c=_0x2cd9ad[_0x2cfa63])==null?void 0x0:_0x10680c[_0x4e4e5d(0x39c)])??_0x349960[_0x4e4e5d(0x4c8)](_0x2cfa63));});}['_projectFields'](_0xe852d2,_0x1b3899){const _0x2d6291=_0x354fcb;var _0x2ef45b;return((_0x2ef45b=_0x1b3899[_0x2d6291(0x1e1)])!=null&&_0x2ef45b[_0x2d6291(0x458)]?_0x1b3899['fieldOrder']:_0xe852d2[_0x2d6291(0x1e1)])[_0x2d6291(0x2a2)](_0xe3533f=>{const _0x20ca51=_0x2d6291;var _0x615e3f;let _0x227916=_0xe852d2[_0x20ca51(0x480)][_0xe3533f],_0x438f72=((_0x615e3f=_0x1b3899[_0x20ca51(0x484)])==null?void 0x0:_0x615e3f[_0xe3533f])??{};return!_0x227916||_0x227916[_0x20ca51(0x1cb)]===!0x0||_0x227916['type']===_0x19bf94[_0x20ca51(0x44f)]||_0x438f72[_0x20ca51(0x1ce)]?[]:[{'id':_0x227916['id'],'name':_0x227916[_0x20ca51(0x1e0)],'description':_0x227916[_0x20ca51(0x373)],'type':_0x227916['type'],'config':_0x227916[_0x20ca51(0x342)],'width':_0x438f72[_0x20ca51(0x266)],'setting':_0x438f72}];});}[_0x354fcb(0x40f)](_0x562d52,_0x1bfc4a){const _0x43d4e0=_0x354fcb;var _0x7f3855;return I('BaseProjection.projectRows',()=>{const _0x207bbf=_0x48d8;var _0x43bc46,_0x3053be;let _0x5b63e3=this[_0x207bbf(0x32d)](_0x562d52),_0x482e95=this[_0x207bbf(0x1d6)](_0x562d52['id'],_0x1bfc4a),_0xd2733b=this[_0x207bbf(0x423)](_0x562d52['id']),_0x4b9bed=this[_0x207bbf(0x456)][_0x207bbf(0x4a8)](_0x482e95);if(_0x4b9bed&&_0x4b9bed[_0x207bbf(0x26d)]===this[_0x207bbf(0x4f2)]&&_0x4b9bed[_0x207bbf(0x306)]===this[_0x207bbf(0x362)](_0x562d52['id'])){if(_0x4b9bed[_0x207bbf(0x1e4)]===_0xd2733b&&_0x4b9bed[_0x207bbf(0x2ca)]===_0x5b63e3)return _0x4b9bed[_0x207bbf(0x490)];if(_0x4b9bed['cellRevision']!==_0xd2733b&&!this['_cellInvalidationsTouchFields'](_0x562d52['id'],_0x4b9bed[_0x207bbf(0x1e4)],_0xd2733b,this[_0x207bbf(0x427)](_0x1bfc4a))){let _0x5b6b19=_0x4b9bed[_0x207bbf(0x490)]===_0x4b9bed['baseRows']?_0x5b63e3:this['_patchCachedProjectedRows'](_0x4b9bed[_0x207bbf(0x490)],_0x5b63e3);if(_0x5b6b19)return this['_projectedViewRowsCache'][_0x207bbf(0x1a1)](_0x482e95,{..._0x4b9bed,'rows':_0x5b6b19,'baseRows':_0x5b63e3,'cellRevision':_0xd2733b}),_0x5b6b19;}}let _0x14dd20=I(_0x207bbf(0x21e),()=>this[_0x207bbf(0x198)](_0x562d52,_0x1bfc4a,this[_0x207bbf(0x1ca)](_0x562d52,_0x1bfc4a,_0x5b63e3)),{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x207bbf(0x33a)],'rows':_0x5b63e3['length'],'filters':(_0x1bfc4a==null||(_0x43bc46=_0x1bfc4a[_0x207bbf(0x397)])==null?void 0x0:_0x43bc46[_0x207bbf(0x309)][_0x207bbf(0x458)])??0x0,'sorts':(_0x1bfc4a==null||(_0x3053be=_0x1bfc4a[_0x207bbf(0x3db)])==null?void 0x0:_0x3053be[_0x207bbf(0x458)])??0x0});return this[_0x207bbf(0x456)][_0x207bbf(0x1a1)](_0x482e95,{'table':_0x562d52,'rows':_0x14dd20,'baseRows':_0x5b63e3,'globalRevision':this['_globalRevision'],'tableRevision':this[_0x207bbf(0x362)](_0x562d52['id']),'cellRevision':_0xd2733b}),_0x14dd20;},{'tableId':_0x562d52['id'],'viewId':_0x1bfc4a==null?void 0x0:_0x1bfc4a['id'],'viewType':_0x1bfc4a==null?void 0x0:_0x1bfc4a[_0x43d4e0(0x33a)],'records':((_0x7f3855=_0x562d52[_0x43d4e0(0x22d)])==null?void 0x0:_0x7f3855[_0x43d4e0(0x458)])??Object['keys'](_0x562d52[_0x43d4e0(0x45a)]??{})[_0x43d4e0(0x458)]});}[_0x354fcb(0x32d)](_0x20daca){const _0x1f88ba=_0x354fcb;var _0x353cc1;return I(_0x1f88ba(0x3a8),()=>{const _0x5e2f24=_0x1f88ba;var _0x1518fb;let _0x12aee1=this[_0x5e2f24(0x423)](_0x20daca['id']),_0x8555c9=this[_0x5e2f24(0x2a6)][_0x5e2f24(0x4a8)](_0x20daca['id']);if(_0x8555c9&&_0x8555c9[_0x5e2f24(0x26d)]===this[_0x5e2f24(0x4f2)]&&_0x8555c9['tableRevision']===this[_0x5e2f24(0x362)](_0x20daca['id'])){if(_0x8555c9['cellRevision']===_0x12aee1&&fi(_0x8555c9[_0x5e2f24(0x513)],_0x20daca))return _0x8555c9[_0x5e2f24(0x513)]=_0x20daca,_0x8555c9[_0x5e2f24(0x490)];let _0x298a1b=this[_0x5e2f24(0x328)](_0x20daca,_0x8555c9,_0x12aee1);if(_0x298a1b)return _0x298a1b;}ui(_0x20daca)||L(_0x20daca);let _0x15285d=(_0x1518fb=_0x20daca[_0x5e2f24(0x22d)])!=null&&_0x1518fb['length']?_0x20daca[_0x5e2f24(0x22d)]:hi(_0x20daca[_0x5e2f24(0x45a)]),_0x4d9f00=I('BaseProjection.materializeTableRows',()=>{const _0x2acc2d=_0x5e2f24;let _0x281a81=[];for(let _0x10cc2f of _0x15285d){let _0x5d287c=_0x20daca[_0x2acc2d(0x45a)][_0x10cc2f];if(!_0x5d287c)continue;let _0x442dba={};for(let _0x344093 of _0x20daca[_0x2acc2d(0x1e1)])_0x442dba[_0x344093]=yt(_0x20daca,_0x5d287c['id'],_0x344093);_0x281a81[_0x2acc2d(0x1f3)]({'recordId':_0x5d287c['id'],'values':_0x442dba});}return _0x281a81;},{'tableId':_0x20daca['id'],'records':_0x15285d[_0x5e2f24(0x458)],'fields':_0x20daca[_0x5e2f24(0x1e1)][_0x5e2f24(0x458)]});return this[_0x5e2f24(0x2a6)][_0x5e2f24(0x1a1)](_0x20daca['id'],{'table':_0x20daca,'rows':_0x4d9f00,'rowIndexById':li(_0x4d9f00),'globalRevision':this[_0x5e2f24(0x4f2)],'tableRevision':this[_0x5e2f24(0x362)](_0x20daca['id']),'cellRevision':_0x12aee1}),_0x4d9f00;},{'tableId':_0x20daca['id'],'records':((_0x353cc1=_0x20daca[_0x1f88ba(0x22d)])==null?void 0x0:_0x353cc1[_0x1f88ba(0x458)])??Object[_0x1f88ba(0x51b)](_0x20daca[_0x1f88ba(0x45a)]??{})['length'],'fields':_0x20daca[_0x1f88ba(0x1e1)]['length']});}[_0x354fcb(0x328)](_0x4adf0f,_0x338ed7,_0x6d7ec6){const _0x326f5a=_0x354fcb;let _0x44566d=(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])[_0x326f5a(0x397)](_0x6aa7e1=>_0x6aa7e1[_0x326f5a(0x30a)]>_0x338ed7[_0x326f5a(0x1e4)]&&_0x6aa7e1[_0x326f5a(0x30a)]<=_0x6d7ec6);if(!_0x44566d[_0x326f5a(0x458)])return _0x338ed7['table']===_0x4adf0f?_0x338ed7['rows']:null;let _0x1e7f75=_0x338ed7['rows'],_0x4e4c99=new Map();for(let _0x25b6ec of _0x44566d){let _0x3e6113=_0x4e4c99[_0x326f5a(0x4a8)](_0x25b6ec[_0x326f5a(0x4bb)]);_0x3e6113||(_0x3e6113=new Set(),_0x4e4c99[_0x326f5a(0x1a1)](_0x25b6ec[_0x326f5a(0x4bb)],_0x3e6113)),_0x3e6113[_0x326f5a(0x35e)](_0x25b6ec[_0x326f5a(0x46e)]);}for(let [_0x41a414,_0x58ff41]of _0x4e4c99){if(!_0x4adf0f[_0x326f5a(0x45a)][_0x41a414])return null;let _0x3d547d=_0x338ed7['rowIndexById']['get'](_0x41a414);if(_0x3d547d==null)return null;_0x1e7f75===_0x338ed7[_0x326f5a(0x490)]&&(_0x1e7f75=[..._0x338ed7['rows']]);let _0x3e37be=_0x1e7f75[_0x3d547d],_0x12f57b={..._0x3e37be[_0x326f5a(0x1da)]};_0x58ff41[_0x326f5a(0x461)](_0x5744db=>{_0x12f57b[_0x5744db]=yt(_0x4adf0f,_0x41a414,_0x5744db);}),_0x1e7f75[_0x3d547d]={..._0x3e37be,'values':_0x12f57b};}let _0x540d94={'table':_0x4adf0f,'rows':_0x1e7f75,'rowIndexById':_0x338ed7[_0x326f5a(0x4de)],'globalRevision':this[_0x326f5a(0x4f2)],'tableRevision':this[_0x326f5a(0x362)](_0x4adf0f['id']),'cellRevision':_0x6d7ec6};return this[_0x326f5a(0x2a6)][_0x326f5a(0x1a1)](_0x4adf0f['id'],_0x540d94),this['_cellInvalidations']['set'](_0x4adf0f['id'],(this[_0x326f5a(0x299)][_0x326f5a(0x4a8)](_0x4adf0f['id'])??[])['filter'](_0x41b44f=>_0x41b44f['revision']>Math[_0x326f5a(0x1b3)](0x0,_0x6d7ec6-0x100))),_0x1e7f75;}[_0x354fcb(0x291)](_0x536e7b,_0x128357){const _0x5d2ca9=_0x354fcb;let _0x541847=new Map(_0x128357[_0x5d2ca9(0x29b)](_0x116f61=>[_0x116f61['recordId'],_0x116f61])),_0x1e4e6c=!0x1,_0x4afdd3=_0x536e7b[_0x5d2ca9(0x29b)](_0x1935f5=>{const _0x3908b3=_0x5d2ca9;let _0x5372a2=_0x541847['get'](_0x1935f5[_0x3908b3(0x4bb)]);return _0x5372a2?_0x5372a2===_0x1935f5?_0x1935f5:(_0x1e4e6c=!0x0,_0x5372a2):_0x1935f5;});return _0x1e4e6c?_0x4afdd3:_0x536e7b;}[_0x354fcb(0x2b8)](_0x554a14,_0x111c98,_0x39867a,_0x38d6d3){const _0x53e283=_0x354fcb;return!_0x38d6d3['size']||_0x111c98===_0x39867a?!0x1:_0x39867a-_0x111c98>0x100||(this[_0x53e283(0x299)][_0x53e283(0x4a8)](_0x554a14)??[])['some'](_0x5b06eb=>_0x5b06eb[_0x53e283(0x30a)]>_0x111c98&&_0x5b06eb[_0x53e283(0x30a)]<=_0x39867a&&_0x38d6d3['has'](_0x5b06eb[_0x53e283(0x46e)]));}[_0x354fcb(0x427)](_0x59358b){const _0x1e0679=_0x354fcb;var _0x49b6e2,_0x475961;let _0x1bb374=new Set();return _0x59358b==null||(_0x49b6e2=_0x59358b[_0x1e0679(0x397)])==null||_0x49b6e2['conditions'][_0x1e0679(0x461)](_0x59afcf=>_0x1bb374[_0x1e0679(0x35e)](_0x59afcf[_0x1e0679(0x46e)])),_0x59358b==null||(_0x475961=_0x59358b[_0x1e0679(0x3db)])==null||_0x475961[_0x1e0679(0x461)](_0xa6f9e9=>_0x1bb374[_0x1e0679(0x35e)](_0xa6f9e9[_0x1e0679(0x46e)])),_0x1bb374;}['_groupProjectionFieldIds'](_0x1e84ad){const _0x3eb4cf=_0x354fcb;var _0x298f7b;let _0x35ffa7=this[_0x3eb4cf(0x427)](_0x1e84ad);return(_0x298f7b=_0x1e84ad['group'])==null||_0x298f7b['forEach'](_0x17776e=>_0x35ffa7[_0x3eb4cf(0x35e)](_0x17776e[_0x3eb4cf(0x46e)])),_0x35ffa7;}[_0x354fcb(0x1ca)](_0x13ec43,_0x3594fe,_0x8258fd){const _0x245080=_0x354fcb;let _0x52d761=_0x3594fe==null?void 0x0:_0x3594fe[_0x245080(0x397)];if(!(_0x52d761!=null&&_0x52d761[_0x245080(0x309)]['length']))return _0x8258fd;let _0xe9b056=_0x52d761[_0x245080(0x309)][_0x245080(0x397)](_0x27a9eb=>!Ii(_0x27a9eb));return _0xe9b056[_0x245080(0x458)]?_0x8258fd[_0x245080(0x397)](_0x291575=>{const _0x506d25=_0x245080;if(_0x52d761[_0x506d25(0x2d7)]===_0x12daa6['OR']){for(let _0x1a2d50 of _0xe9b056){let _0x1353e3=_0x13ec43['fields'][_0x1a2d50[_0x506d25(0x46e)]];if(!_0x1353e3||this[_0x506d25(0x2c4)][_0x506d25(0x4a8)](_0x1353e3['type'])[_0x506d25(0x397)](_0x291575[_0x506d25(0x1da)][_0x1353e3['id']],_0x1a2d50[_0x506d25(0x320)],_0x1a2d50[_0x506d25(0x526)],_0x1353e3))return!0x0;}return!0x1;}for(let _0x3971c7 of _0xe9b056){let _0x2d5bbc=_0x13ec43[_0x506d25(0x480)][_0x3971c7[_0x506d25(0x46e)]];if(_0x2d5bbc&&!this[_0x506d25(0x2c4)]['get'](_0x2d5bbc[_0x506d25(0x33a)])['filter'](_0x291575[_0x506d25(0x1da)][_0x2d5bbc['id']],_0x3971c7[_0x506d25(0x320)],_0x3971c7[_0x506d25(0x526)],_0x2d5bbc))return!0x1;}return!0x0;}):_0x8258fd;}[_0x354fcb(0x198)](_0x29bc21,_0x4a8b74,_0xc885f6){const _0x1e2a96=_0x354fcb;let _0x4e7303=(_0x4a8b74==null?void 0x0:_0x4a8b74[_0x1e2a96(0x3db)])??[];if(!_0x4e7303['length'])return _0xc885f6;let _0xd3e9d3=_0x4e7303['flatMap'](_0x49341d=>{const _0x294c37=_0x1e2a96;let _0x36f102=_0x29bc21[_0x294c37(0x480)][_0x49341d['fieldId']];return _0x36f102?[{..._0x49341d,'field':_0x36f102}]:[];});return _0xd3e9d3[_0x1e2a96(0x458)]?this['_canUseFastSort'](_0xd3e9d3)?this[_0x1e2a96(0x488)](_0xd3e9d3,_0xc885f6):[..._0xc885f6][_0x1e2a96(0x3db)]((_0x5a52d7,_0x2d50cc)=>{const _0x129a9e=_0x1e2a96;for(let _0x16734f of _0xd3e9d3){let _0x194d57=_0x16734f[_0x129a9e(0x28b)],_0xe9719d=this[_0x129a9e(0x2c4)]['get'](_0x194d57[_0x129a9e(0x33a)])[_0x129a9e(0x39a)](_0x5a52d7[_0x129a9e(0x1da)][_0x194d57['id']],_0x2d50cc[_0x129a9e(0x1da)][_0x194d57['id']],_0x194d57);if(_0xe9719d!==0x0)return _0x16734f[_0x129a9e(0x4ee)]===_0x7258f[_0x129a9e(0x321)]?-_0xe9719d:_0xe9719d;}return 0x0;}):_0xc885f6;}[_0x354fcb(0x2a5)](_0x4d9710){const _0xcf3d22=_0x354fcb;return _0x4d9710[_0xcf3d22(0x1b6)](_0x3c46d3=>ai['has'](_0x3c46d3[_0xcf3d22(0x28b)][_0xcf3d22(0x33a)]));}[_0x354fcb(0x488)](_0x47aaa3,_0x23c674){const _0x236da0=_0x354fcb;return _0x23c674[_0x236da0(0x29b)]((_0x5aa350,_0x8a3454)=>({'row':_0x5aa350,'index':_0x8a3454,'keys':_0x47aaa3[_0x236da0(0x29b)](_0xf2568c=>_0x5aa350[_0x236da0(0x1da)][_0xf2568c['fieldId']])}))[_0x236da0(0x3db)]((_0x1c4516,_0x40874c)=>{const _0x34e3be=_0x236da0;for(let _0x2f5fcc=0x0;_0x2f5fcc<_0x47aaa3[_0x34e3be(0x458)];_0x2f5fcc++){let _0x630521=Fi(_0x1c4516[_0x34e3be(0x51b)][_0x2f5fcc],_0x40874c[_0x34e3be(0x51b)][_0x2f5fcc]);if(_0x630521!==0x0)return _0x47aaa3[_0x2f5fcc][_0x34e3be(0x4ee)]===_0x7258f['DESC']?-_0x630521:_0x630521;}return _0x1c4516[_0x34e3be(0x250)]-_0x40874c['index'];})[_0x236da0(0x29b)](_0x3999cb=>_0x3999cb[_0x236da0(0x21b)]);}[_0x354fcb(0x3a3)](_0x29773e,_0x5b1552,_0x12c958){const _0x2c2803=_0x354fcb;var _0x166fb7;return I(_0x2c2803(0x34e),()=>{const _0x46988a=_0x2c2803;var _0x3d2b37;if(!((_0x3d2b37=_0x5b1552[_0x46988a(0x1b9)])!=null&&_0x3d2b37[_0x46988a(0x458)]))return[];let _0x9a0d54=_0x5b1552['group'][_0x46988a(0x397)](_0x129bce=>_0x29773e['fields'][_0x129bce[_0x46988a(0x46e)]]);if(!_0x9a0d54[_0x46988a(0x458)])return[];let _0x20b42d=this[_0x46988a(0x1b2)](_0x29773e['id'],_0x5b1552,_0x9a0d54),_0x1e57dc=this['_getCellRevision'](_0x29773e['id']),_0xa35966=this[_0x46988a(0x4f6)]['get'](_0x20b42d);if(_0xa35966&&_0xa35966[_0x46988a(0x26d)]===this[_0x46988a(0x4f2)]&&_0xa35966[_0x46988a(0x306)]===this[_0x46988a(0x362)](_0x29773e['id'])){if(_0xa35966[_0x46988a(0x1e4)]===_0x1e57dc&&_0xa35966[_0x46988a(0x490)]===_0x12c958)return _0xa35966['groups'];if(_0xa35966['cellRevision']!==_0x1e57dc&&!this['_cellInvalidationsTouchFields'](_0x29773e['id'],_0xa35966[_0x46988a(0x1e4)],_0x1e57dc,this[_0x46988a(0x3d3)](_0x5b1552)))return this[_0x46988a(0x4f6)][_0x46988a(0x1a1)](_0x20b42d,{..._0xa35966,'rows':_0x12c958,'cellRevision':_0x1e57dc}),_0xa35966[_0x46988a(0x428)];}let _0x4d8f85=new Map();for(let _0x26af6f of _0x12c958){let _0x3053a5=_0x4d8f85,_0x314315='';for(let _0x5d918e=0x0;_0x5d918e<_0x9a0d54['length'];_0x5d918e++){let _0x3798af=_0x9a0d54[_0x5d918e],_0x23bc09=_0x26af6f[_0x46988a(0x1da)][_0x3798af[_0x46988a(0x46e)]],_0x1fac58=ci(_0x23bc09),_0x3649ca=_0x3798af[_0x46988a(0x46e)]+'\x00'+_0x1fac58,_0x3ac2f5=_0x314315+'/'+_0x3798af['fieldId']+':'+_0x1fac58,_0x616c19=_0x3053a5[_0x46988a(0x4a8)](_0x3649ca);_0x616c19||(_0x616c19={'key':_0x1fac58,'value':_0x23bc09,'path':_0x3ac2f5,'label':_0x1fac58||_0x46988a(0x350),'fieldId':_0x3798af[_0x46988a(0x46e)],'level':_0x5d918e,'recordIds':[],'children':new Map()},_0x3053a5[_0x46988a(0x1a1)](_0x3649ca,_0x616c19)),_0x616c19[_0x46988a(0x51f)]['push'](_0x26af6f[_0x46988a(0x4bb)]),_0x3053a5=_0x616c19[_0x46988a(0x37f)],_0x314315=_0x3ac2f5;}}let _0x3b4cd9=this[_0x46988a(0x4b9)](_0x9a0d54,_0x4d8f85,0x0);return this[_0x46988a(0x4f6)]['set'](_0x20b42d,{'table':_0x29773e,'rows':_0x12c958,'groups':_0x3b4cd9,'globalRevision':this[_0x46988a(0x4f2)],'tableRevision':this[_0x46988a(0x362)](_0x29773e['id']),'cellRevision':_0x1e57dc}),_0x3b4cd9;},{'tableId':_0x29773e['id'],'viewId':_0x5b1552['id'],'viewType':_0x5b1552['type'],'rows':_0x12c958[_0x2c2803(0x458)],'groupFields':((_0x166fb7=_0x5b1552['group'])==null?void 0x0:_0x166fb7[_0x2c2803(0x458)])??0x0});}['_materializeGroups'](_0x28d864,_0x232be8,_0xc4681b){const _0x1e4f9d=_0x354fcb;var _0x4cb2c0;let _0x547ed8=Array[_0x1e4f9d(0x4dd)](_0x232be8['values']()),_0x409f79=(_0x4cb2c0=_0x28d864[_0xc4681b])==null?void 0x0:_0x4cb2c0[_0x1e4f9d(0x4ee)];return _0x409f79&&_0x547ed8['sort']((_0x4aa0ba,_0x5da257)=>{const _0x1dfb23=_0x1e4f9d;let _0x1d1f98=_0x4aa0ba['key'][_0x1dfb23(0x4bc)](_0x5da257[_0x1dfb23(0x3f2)]);return _0x409f79===_0x7258f['DESC']?-_0x1d1f98:_0x1d1f98;}),_0x547ed8[_0x1e4f9d(0x29b)](_0x218e7f=>({'key':_0x218e7f[_0x1e4f9d(0x3f2)],'value':_0x218e7f[_0x1e4f9d(0x416)],'path':_0x218e7f[_0x1e4f9d(0x220)],'label':_0x218e7f['label'],'fieldId':_0x218e7f[_0x1e4f9d(0x46e)],'level':_0x218e7f[_0x1e4f9d(0x329)],'recordIds':_0x218e7f['recordIds'],'children':this[_0x1e4f9d(0x4b9)](_0x28d864,_0x218e7f[_0x1e4f9d(0x37f)],_0xc4681b+0x1)}));}[_0x354fcb(0x431)](_0x5d3aac,_0x216c90,_0x4cdb37){const _0x1df03b=_0x354fcb;let _0x4f7076=_0x4cdb37??_0x5d3aac[_0x1df03b(0x4cf)],_0x2a4e13=_0x216c90[_0x1df03b(0x1da)][_0x4f7076];return _0x2a4e13==null?'':String(_0x2a4e13);}[_0x354fcb(0x174)](_0x58f786){const _0x28f600=_0x354fcb;if(Array[_0x28f600(0x354)](_0x58f786))return _0x58f786[_0x28f600(0x29b)](String);if(typeof _0x58f786==_0x28f600(0x471)&&_0x58f786)return[_0x58f786];}['_capabilities'](_0x111d55){const _0x11ece0=_0x354fcb;return this[_0x11ece0(0x2c4)][_0x11ece0(0x4a8)](_0x111d55[_0x11ece0(0x33a)])[_0x11ece0(0x43a)](_0x111d55);}};si=X([Y(0x0,_0x42d70a(mr))],si);function ci(_0x50b6a9){return _0x50b6a9==null?'':String(_0x50b6a9);}function li(_0x1aeb85){const _0x2c2c3c=_0x354fcb;return new Map(_0x1aeb85[_0x2c2c3c(0x29b)]((_0x306cda,_0x7ec07e)=>[_0x306cda[_0x2c2c3c(0x4bb)],_0x7ec07e]));}function ui(_0x12884d){const _0x19ec06=_0x354fcb;return!!(Array[_0x19ec06(0x354)](_0x12884d[_0x19ec06(0x22d)])&&_0x12884d[_0x19ec06(0x290)]&&_0x12884d['rowId']&&_0x12884d[_0x19ec06(0x288)]&&_0x12884d['colId']&&_0x12884d[_0x19ec06(0x1cf)]);}function di(_0x4b31b5){const _0x293b4e=_0x354fcb;let _0x331628=(_0x4b31b5==null?void 0x0:_0x4b31b5[_0x293b4e(0x309)][_0x293b4e(0x397)](_0xde636e=>!Ii(_0xde636e)))??[];return!_0x4b31b5||!_0x331628[_0x293b4e(0x458)]?null:{'conjunction':_0x4b31b5[_0x293b4e(0x2d7)],'conditions':_0x331628[_0x293b4e(0x29b)](_0x4913aa=>({'fieldId':_0x4913aa[_0x293b4e(0x46e)],'operator':_0x4913aa['operator'],'operand':_0x4913aa['operand']}))};}function fi(_0x2e1bce,_0x344a65){const _0x1584c3=_0x354fcb;return _0x2e1bce[_0x1584c3(0x45a)]===_0x344a65[_0x1584c3(0x45a)]&&_0x2e1bce[_0x1584c3(0x22d)]===_0x344a65[_0x1584c3(0x22d)]&&_0x2e1bce[_0x1584c3(0x480)]===_0x344a65[_0x1584c3(0x480)]&&_0x2e1bce[_0x1584c3(0x1e1)]===_0x344a65['fieldOrder']&&_0x2e1bce[_0x1584c3(0x1cf)]===_0x344a65['cellData']&&_0x2e1bce[_0x1584c3(0x290)]===_0x344a65[_0x1584c3(0x290)]&&_0x2e1bce[_0x1584c3(0x474)]===_0x344a65[_0x1584c3(0x474)]&&_0x2e1bce['colIndex']===_0x344a65[_0x1584c3(0x288)]&&_0x2e1bce[_0x1584c3(0x242)]===_0x344a65['colId'];}function pi(_0x5d2d9a){const _0x35da03=_0x354fcb;return _0x5d2d9a!=null&&_0x5d2d9a['length']?_0x5d2d9a[_0x35da03(0x29b)](_0x54e20b=>({'fieldId':_0x54e20b[_0x35da03(0x46e)],'direction':_0x54e20b[_0x35da03(0x4ee)]})):null;}function mi(_0x13c98c){const _0x4b4b2a=_0x354fcb;if(typeof _0x13c98c!='object'||!_0x13c98c)return JSON[_0x4b4b2a(0x449)](_0x13c98c)??_0x4b4b2a(0x217);if(Array['isArray'](_0x13c98c))return'['+_0x13c98c[_0x4b4b2a(0x29b)](mi)[_0x4b4b2a(0x4b5)](',')+']';let _0x4f962b=_0x13c98c;return'{'+Object[_0x4b4b2a(0x51b)](_0x4f962b)['sort']()[_0x4b4b2a(0x29b)](_0x4dd274=>JSON[_0x4b4b2a(0x449)](_0x4dd274)+':'+mi(_0x4f962b[_0x4dd274]))[_0x4b4b2a(0x4b5)](',')+'}';}function hi(_0x2a8175){const _0x2c7cae=_0x354fcb;let _0x1ed9e1=Object[_0x2c7cae(0x1da)](_0x2a8175)['sort']((_0x42b5df,_0x148e8f)=>_0x42b5df[_0x2c7cae(0x3ef)][_0x2c7cae(0x4bc)](_0x148e8f[_0x2c7cae(0x3ef)])),_0x50de4b=[];for(let _0x22663c of _0x1ed9e1)_0x50de4b['push'](_0x22663c['id']);return _0x50de4b;}function gi(_0x301e8b){const _0x5b41a3=_0x354fcb;return{'weekdays':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x226)])&&_0x301e8b[_0x5b41a3(0x226)]['length']?[...new Set(_0x301e8b[_0x5b41a3(0x226)][_0x5b41a3(0x397)](_0x3b7e7d=>Number['isInteger'](_0x3b7e7d)&&_0x3b7e7d>=0x1&&_0x3b7e7d<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x5b41a3(0x354)](_0x301e8b==null?void 0x0:_0x301e8b[_0x5b41a3(0x1e6)])?_0x301e8b[_0x5b41a3(0x1e6)]['flatMap'](_0x95cf75=>!_0x95cf75||!Number['isFinite'](_0x95cf75[_0x5b41a3(0x219)])?[]:[{'id':String(_0x95cf75['id']||_0x5b41a3(0x2f0)+_0x95cf75[_0x5b41a3(0x219)]),'date':Z(Number(_0x95cf75['date'])),'name':String(_0x95cf75['name']||'Working\x20day'),'type':_0x95cf75[_0x5b41a3(0x33a)]==='working'?'working':_0x5b41a3(0x2bc)}]):[]};}function _i(_0x1fbf28,_0x129237,_0x50e113,_0x4f6995){let _0x30ba7a=xi(_0x1fbf28,_0x129237),_0x591510=Si(_0x1fbf28,_0x50e113),_0x8c44df=vi(_0x1fbf28,_0x30ba7a,_0x591510,_0x4f6995);return{'scale':_0x1fbf28,'start':_0x30ba7a,'end':_0x591510,'unitWidth':bi(_0x1fbf28),'majorHeaders':yi(_0x1fbf28,_0x30ba7a,_0x591510),'columns':_0x8c44df};}function vi(_0x17ddff,_0x580f27,_0x4a16a1,_0x11481f){const _0x1198fb=_0x354fcb;let _0x291c72=[],_0x75cea0=_0x580f27;for(;_0x75cea0<_0x4a16a1;){let _0x40ac36=_0x17ddff===_0x1198fb(0x20c)?ji(_0x75cea0,0x7):_0x17ddff===_0x1198fb(0x377)?Mi(_0x75cea0,0x1):ji(_0x75cea0,0x1);_0x291c72['push']({'id':_0x17ddff+'-'+_0x75cea0,'label':Ci(_0x17ddff,_0x75cea0,_0x40ac36),'majorLabel':wi(_0x17ddff,_0x75cea0),'start':_0x75cea0,'end':_0x40ac36,'nonWorking':Ei(_0x75cea0,_0x40ac36,_0x11481f)}),_0x75cea0=_0x40ac36;}return _0x291c72;}function yi(_0xb54134,_0x762076,_0x100fe5){const _0x557ec7=_0x354fcb;let _0x5d3328=[],_0x539bb6=_0xb54134===_0x557ec7(0x377)?Ai(_0x762076):ki(_0x762076);for(;_0x539bb6<_0x100fe5;){let _0x1f67ae=_0xb54134===_0x557ec7(0x377)?Ni(_0x539bb6,0x1):Mi(_0x539bb6,0x1);_0x5d3328['push']({'id':_0x557ec7(0x319)+_0x539bb6,'label':_0xb54134===_0x557ec7(0x377)?String(new Date(_0x539bb6)[_0x557ec7(0x50c)]()):Pi(_0x539bb6),'start':_0x539bb6,'end':_0x1f67ae}),_0x539bb6=_0x1f67ae;}return _0x5d3328;}function bi(_0x209815){const _0x11da21=_0x354fcb;switch(_0x209815){case _0x11da21(0x1fc):return 0xac;case _0x11da21(0x20c):return 0xac;case _0x11da21(0x377):return 0x88;default:return 0x56;}}function xi(_0x4ad704,_0x1b392c){const _0x4a0306=_0x354fcb;return _0x4ad704===_0x4a0306(0x377)?Ai(_0x1b392c):_0x4ad704==='quarter'?Oi(_0x1b392c):Z(_0x1b392c);}function Si(_0x35a9f3,_0x24b15e){const _0x4b45fc=_0x354fcb;return _0x35a9f3===_0x4b45fc(0x377)?Ni(Ai(_0x24b15e),0x1):_0x35a9f3===_0x4b45fc(0x20c)?ji(Oi(_0x24b15e),0x7):ji(Z(_0x24b15e),0x1);}function Ci(_0x2a26f5,_0x4e660d,_0x5836c5){const _0x17d921=_0x354fcb;let _0x486c45=new Date(_0x4e660d);return _0x2a26f5===_0x17d921(0x20c)?_0x486c45[_0x17d921(0x1cc)]()+'-'+new Date(_0x5836c5-oi)[_0x17d921(0x1cc)]():_0x2a26f5==='year'?_0x486c45['toLocaleString'](_0x17d921(0x1d5),{'month':_0x17d921(0x2ea),'timeZone':_0x17d921(0x386)}):String(_0x486c45[_0x17d921(0x1cc)]());}function wi(_0x1098b0,_0xb6a90e){const _0x204bc6=_0x354fcb;return _0x1098b0===_0x204bc6(0x377)?String(new Date(_0xb6a90e)[_0x204bc6(0x50c)]()):Pi(_0xb6a90e);}function Ti(_0x386608,_0x369235,_0x582eb9){let _0x2b8c22=gi(_0x582eb9),_0xb70df3=0x0;for(let _0x1eba4b=Z(_0x386608);_0x1eba4b<=Z(_0x369235);_0x1eba4b=ji(_0x1eba4b,0x1))Di(_0x1eba4b,_0x2b8c22)||_0xb70df3++;return _0xb70df3;}function Ei(_0x32765b,_0x260052,_0x210fc3){if(!_0x210fc3)return!0x1;let _0x3d1a34=gi(_0x210fc3);for(let _0x5095ce=Z(_0x32765b);_0x5095ce<_0x260052;_0x5095ce=ji(_0x5095ce,0x1))if(!Di(_0x5095ce,_0x3d1a34))return!0x1;return!0x0;}function Di(_0xf7a951,_0x55d36a){const _0x335225=_0x354fcb;let _0x4ce47a=Z(_0xf7a951),_0x13978f=_0x55d36a[_0x335225(0x1e6)]['find'](_0x2271ba=>Z(_0x2271ba[_0x335225(0x219)])===_0x4ce47a);if(_0x13978f)return _0x13978f[_0x335225(0x33a)]===_0x335225(0x2bc);let _0x38d536=new Date(_0x4ce47a)[_0x335225(0x452)](),_0x133201=_0x38d536===0x0?0x7:_0x38d536;return!_0x55d36a[_0x335225(0x226)][_0x335225(0x231)](_0x133201);}function Z(_0x633eab){const _0x2097e1=_0x354fcb;let _0x4c9261=new Date(_0x633eab);return Date['UTC'](_0x4c9261[_0x2097e1(0x50c)](),_0x4c9261['getUTCMonth'](),_0x4c9261[_0x2097e1(0x1cc)]());}function Oi(_0x3c2ada){const _0x4c00fa=_0x354fcb;let _0x427423=Z(_0x3c2ada),_0x262fed=new Date(_0x427423)[_0x4c00fa(0x452)]();return ji(_0x427423,-(_0x262fed===0x0?0x6:_0x262fed-0x1));}function ki(_0x3b58e7){const _0x4298ac=_0x354fcb;let _0x520478=new Date(_0x3b58e7);return Date[_0x4298ac(0x386)](_0x520478[_0x4298ac(0x50c)](),_0x520478[_0x4298ac(0x450)](),0x1);}function Ai(_0x12b1dd){const _0x3e8467=_0x354fcb;let _0x40f0c9=new Date(_0x12b1dd);return Date[_0x3e8467(0x386)](_0x40f0c9['getUTCFullYear'](),0x0,0x1);}function ji(_0x309724,_0x4b0688){return _0x309724+_0x4b0688*oi;}function Mi(_0x5e331e,_0x2527d6){const _0x703c2b=_0x354fcb;let _0x5534b6=new Date(_0x5e331e);return Date[_0x703c2b(0x386)](_0x5534b6[_0x703c2b(0x50c)](),_0x5534b6['getUTCMonth']()+_0x2527d6,0x1);}function Ni(_0x33f513,_0x34b02a){const _0xf33ca3=_0x354fcb;let _0xb37a58=new Date(_0x33f513);return Date[_0xf33ca3(0x386)](_0xb37a58[_0xf33ca3(0x50c)]()+_0x34b02a,0x0,0x1);}function Pi(_0x4ec50b){const _0x366cf9=_0x354fcb;let _0x154dda=new Date(_0x4ec50b);return _0x154dda[_0x366cf9(0x2f1)]('en-US',{'month':_0x366cf9(0x2ea),'timeZone':'UTC'})+'\x20'+_0x154dda['getUTCFullYear']();}function Fi(_0x400543,_0x365e5c){const _0x56d1a3=_0x354fcb;if(_0x400543==null&&_0x365e5c==null)return 0x0;if(_0x400543==null)return-0x1;if(_0x365e5c==null)return 0x1;if(typeof _0x400543==_0x56d1a3(0x364)||typeof _0x365e5c=='boolean')return Number(_0x400543===!0x0)-Number(_0x365e5c===!0x0);let _0x13a2b5=Number(_0x400543),_0x2f2316=Number(_0x365e5c),_0x3cf090=Number[_0x56d1a3(0x2c3)](_0x13a2b5),_0x2526e2=Number[_0x56d1a3(0x2c3)](_0x2f2316);return _0x3cf090&&_0x2526e2?_0x13a2b5-_0x2f2316:_0x3cf090?0x1:_0x2526e2?-0x1:String(_0x400543)[_0x56d1a3(0x4bc)](String(_0x365e5c));}function Ii(_0x57ada0){const _0x218a6a=_0x354fcb;if(_0x57ada0[_0x218a6a(0x320)]!=='is'&&_0x57ada0[_0x218a6a(0x320)]!==_0x218a6a(0x521))return!0x1;let _0x1382f1=_0x57ada0[_0x218a6a(0x526)];return _0x1382f1==null?!0x0:typeof _0x1382f1==_0x218a6a(0x471)?_0x1382f1[_0x218a6a(0x3bc)]()==='':Array['isArray'](_0x1382f1)?_0x1382f1[_0x218a6a(0x458)]===0x0:!0x1;}function Li(_0x41902d,_0x2ea94f){const _0x4f0822=_0x354fcb;var _0x5c44e9;let _0x452c72=Array[_0x4f0822(0x354)]((_0x5c44e9=_0x41902d['config'])==null?void 0x0:_0x5c44e9['options'])?_0x41902d[_0x4f0822(0x342)]['options']:[];for(let _0x143cf5 of _0x452c72){if(_0x143cf5==null)continue;if(typeof _0x143cf5==_0x4f0822(0x471)){if(_0x143cf5===_0x2ea94f)return{'id':_0x143cf5,'name':_0x143cf5};continue;}let _0x3613ac=_0x143cf5,_0x29ec7d=String(_0x3613ac['id']??_0x3613ac[_0x4f0822(0x1e0)]??''),_0x2d9dab=String(_0x3613ac['name']??_0x3613ac['id']??_0x29ec7d);if(_0x29ec7d===_0x2ea94f||_0x2d9dab===_0x2ea94f)return{'id':_0x29ec7d,'name':_0x2d9dab,'color':_0x3613ac['color']==null?void 0x0:String(_0x3613ac[_0x4f0822(0x190)])};}return null;}let Ri=function(_0x5f22d8){const _0x59715e=_0x354fcb;return _0x5f22d8[_0x59715e(0x52c)]=_0x59715e(0x26f),_0x5f22d8['DeleteView']=_0x59715e(0x438),_0x5f22d8;}({});const Q={'id':_0x354fcb(0x4d6),'type':_0x3e23cf[_0x354fcb(0x251)],'handler'(_0x4df3ac,_0xd147fd){const _0xe66cd2=_0x354fcb;let {unitId:_0x57996a,op:_0x2d5027}=_0xd147fd,_0x2f263c=_0x4df3ac['get'](_0x3414e2)[_0xe66cd2(0x2e5)](_0x57996a,_0x28d752['UNIVER_BASE']);if(!_0x2f263c)return!0x1;let _0x1ea1f2=_0x2f263c[_0xe66cd2(0x1f9)](),_0x48f855=new z(),_0x46f6aa=_0x48f855[_0xe66cd2(0x2b9)](_0x2d5027),_0x94ded4=_0x48f855['applyOp'](_0x1ea1f2,_0x2d5027);return _0x2f263c[_0xe66cd2(0x2ff)](_0x94ded4),zi(_0x94ded4,_0x46f6aa,_0x4df3ac[_0xe66cd2(0x4a8)](ii)),!0x0;}};function zi(_0x5bfffd,_0x47ea27,_0x52940b){const _0xa5050=_0x354fcb;let _0x5e80c1=new Set(),_0x19b578=new Set(),_0x4a1d56=new Set();for(let _0x3bee88 of _0x47ea27){if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x2df)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88['viewId']){let _0x2d8ce6=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x366)];_0x4a1d56[_0xa5050(0x23f)](_0x2d8ce6)||(_0x4a1d56['add'](_0x2d8ce6),_0x52940b[_0xa5050(0x21a)](_0x3bee88['tableId'],_0x3bee88[_0xa5050(0x366)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]===_0xa5050(0x28b)&&_0x3bee88[_0xa5050(0x1c3)]&&_0x3bee88[_0xa5050(0x46e)]){let _0x4c3640=_0x3bee88[_0xa5050(0x1c3)]+'\x00'+_0x3bee88[_0xa5050(0x46e)];_0x19b578[_0xa5050(0x23f)](_0x4c3640)||(_0x19b578[_0xa5050(0x35e)](_0x4c3640),_0x52940b['invalidateByField'](_0x3bee88[_0xa5050(0x1c3)],_0x3bee88[_0xa5050(0x46e)]));continue;}if(_0x3bee88[_0xa5050(0x2d9)]!==_0xa5050(0x4eb)){_0x52940b[_0xa5050(0x51e)]();return;}let _0x338b35=Bi(_0x5bfffd,_0x3bee88);if(!_0x338b35){_0x52940b[_0xa5050(0x51e)]();return;}let _0x45c174=_0x338b35[_0xa5050(0x1c3)]+'\x00'+_0x338b35[_0xa5050(0x4bb)]+'\x00'+_0x338b35[_0xa5050(0x46e)];_0x5e80c1['has'](_0x45c174)||(_0x5e80c1[_0xa5050(0x35e)](_0x45c174),_0x52940b['invalidateByCell'](_0x338b35['tableId'],_0x338b35['recordId'],_0x338b35[_0xa5050(0x46e)]));}}function Bi(_0x254732,_0x280717){const _0x35eb8a=_0x354fcb;var _0x39036c,_0x1d7d93;if(!_0x280717[_0x35eb8a(0x1c3)])return null;if(_0x280717['recordId']&&_0x280717[_0x35eb8a(0x46e)])return{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x280717[_0x35eb8a(0x4bb)],'fieldId':_0x280717[_0x35eb8a(0x46e)]};if(_0x280717[_0x35eb8a(0x21b)]==null||_0x280717[_0x35eb8a(0x26e)]==null)return null;let _0x14adcd=_0x254732['tables'][_0x280717['tableId']],_0x298dd3=_0x14adcd==null||(_0x39036c=_0x14adcd['rowId'])==null?void 0x0:_0x39036c[_0x280717[_0x35eb8a(0x21b)]],_0x57921e=_0x14adcd==null||(_0x1d7d93=_0x14adcd['colId'])==null?void 0x0:_0x1d7d93[_0x280717[_0x35eb8a(0x26e)]];return!_0x298dd3||!_0x57921e?null:{'tableId':_0x280717[_0x35eb8a(0x1c3)],'recordId':_0x298dd3,'fieldId':_0x57921e};}const Vi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x1ae19d[_0x354fcb(0x27e)](String['raw']`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x1ae19d[_0x354fcb(0x27e)](String[_0x354fcb(0x182)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x1ae19d['createRegExpFromSafeFragment'](String['raw']`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x354fcb(0x310)](_0x2c91e5,_0x577993=_0x2c91e5['id']){const _0x34854c=_0x354fcb;var _0xffab5e;let _0x5c3bdb=((_0xffab5e=_0x2c91e5[_0x34854c(0x22d)])==null?void 0x0:_0xffab5e['length'])??Object[_0x34854c(0x1da)](_0x2c91e5['records'])[_0x34854c(0x458)];return{'sheetId':_0x577993,'titleMap':new Map(_0x2c91e5[_0x34854c(0x1e1)]['map']((_0x4ebb50,_0x553858)=>{const _0x54ff01=_0x34854c;var _0x3b38fa;return[((_0x3b38fa=_0x2c91e5[_0x54ff01(0x480)][_0x4ebb50])==null?void 0x0:_0x3b38fa[_0x54ff01(0x1e0)])??_0x4ebb50,_0x553858];})),'range':{'startRow':0x0,'endRow':Math[_0x34854c(0x1b3)](0x0,_0x5c3bdb-0x1),'startColumn':0x0,'endColumn':Math[_0x34854c(0x1b3)](0x0,_0x2c91e5[_0x34854c(0x1e1)]['length']-0x1)},'showHeader':!0x1};}[_0x354fcb(0x515)](_0x235148,_0x3f4b80){const _0x51c9ff=_0x354fcb;let _0x246cde=[],_0x3f87f3=_0x3f4b80?new Set(_0x3f4b80):null,_0xa7162=_0x49362b(_0x235148);return Object['values'](_0x235148['tables'])['filter'](_0x57f51e=>!_0x3f87f3||_0x3f87f3[_0x51c9ff(0x23f)](_0x57f51e['id']))[_0x51c9ff(0x461)](_0x1aee9c=>{const _0x523319=_0x51c9ff;let _0x3b41ba=this['createSuperTableReference'](_0x1aee9c,_0x1aee9c['id']);_0x246cde[_0x523319(0x1f3)]({'tableId':_0x1aee9c['id'],'tableName':_0xa7162['get'](_0x1aee9c['id']),'reference':_0x3b41ba});}),_0x246cde;}['validateFormula'](_0x1fe83b,_0x300246,_0x383f0f={}){const _0x312be4=_0x354fcb;let _0x504344=_0x1fe83b[_0x312be4(0x3bc)]();if(!_0x504344)return{'valid':!0x0};if(na(_0x504344))return{'valid':!0x1,'reason':_0x312be4(0x3cc)};let _0x54883d=_0x383f0f[_0x312be4(0x2d2)]?_0x49362b(_0x383f0f['snapshot']):void 0x0;for(let _0x507318 of ta(_0x504344)){let _0x2fe195=ua(_0x507318,_0x300246,_0x383f0f[_0x312be4(0x2d2)],_0x54883d);if(!_0x2fe195[_0x312be4(0x513)])return{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20\x22'+_0x507318[_0x312be4(0x4e4)]+_0x312be4(0x3cf)};if(!_0x2fe195[_0x312be4(0x28b)])return{'valid':!0x1,'reason':_0x312be4(0x1a4)+_0x507318['fieldName']+_0x312be4(0x462)};}return{'valid':!0x0};}[_0x354fcb(0x1bb)](_0x4deba6,_0x57f777,_0xf0aeee={}){const _0x2bc94c=_0x354fcb;let _0x4d5527=new Set();for(let _0x4c09f8 of this[_0x2bc94c(0x3c2)](_0x4deba6,_0x57f777,_0xf0aeee))_0x4c09f8[_0x2bc94c(0x1c3)]===_0x57f777['id']&&_0x4d5527[_0x2bc94c(0x35e)](_0x4c09f8[_0x2bc94c(0x46e)]);return Array[_0x2bc94c(0x4dd)](_0x4d5527);}['getStructuredDependencies'](_0x2e722f,_0x21d82f,_0x56e097={}){const _0x4eb733=_0x354fcb;let _0x5a924a=new Map(),_0x1d362d=_0x56e097[_0x4eb733(0x2d2)]?_0x49362b(_0x56e097[_0x4eb733(0x2d2)]):void 0x0;for(let _0x5b1a35 of ta(_0x2e722f)){let _0x43075d=ua(_0x5b1a35,_0x21d82f,_0x56e097[_0x4eb733(0x2d2)],_0x1d362d);if(!_0x43075d['table']||!_0x43075d[_0x4eb733(0x28b)])continue;let _0x259f59=_0x43075d[_0x4eb733(0x513)]['id']+'\x1f'+_0x43075d[_0x4eb733(0x28b)]['id'];_0x5a924a[_0x4eb733(0x1a1)](_0x259f59,{'tableId':_0x43075d['table']['id'],'fieldId':_0x43075d[_0x4eb733(0x28b)]['id']});}return Array[_0x4eb733(0x4dd)](_0x5a924a[_0x4eb733(0x1da)]());}};function Zi(_0x500683,_0x24013c){const _0x154152=_0x354fcb;var _0x56f0fc;let _0x52af76=[],_0x404720=(_0x56f0fc=_0x24013c[_0x154152(0x50f)])==null?void 0x0:_0x56f0fc[_0x500683['id']];return _0x404720&&Object[_0x154152(0x1e2)](_0x404720)[_0x154152(0x461)](([_0x8d2a3c,_0x256b5b])=>{const _0x44ef86=_0x154152;let _0x161627=_0x500683[_0x44ef86(0x2ba)][_0x8d2a3c];if(!_0x161627||!_0x256b5b)return;let _0x3b9c19=L(_0x161627),_0x9587=[];new _0x4bc349(_0x256b5b)[_0x44ef86(0x24e)]((_0x5989fb,_0x3d2d41,_0x4ef79a)=>{const _0x3bf17f=_0x44ef86;let _0x3caafb=Qi(_0x3b9c19,_0x5989fb,_0x3d2d41,_0x4ef79a);_0x3caafb&&_0x9587[_0x3bf17f(0x1f3)](_0x3caafb);}),_0x9587[_0x44ef86(0x458)]&&_0x52af76['push']({'unitId':_0x500683['id'],'tableId':_0x8d2a3c,'patches':_0x9587});}),_0x52af76;}function Qi(_0x1a0f68,_0x5485c4,_0x36ae32,_0x475e03){const _0xcb0de3=_0x354fcb;var _0x185e38,_0x37c58c,_0x579bd9;let _0x1fe4b8=(_0x185e38=_0x1a0f68['rowId'])==null?void 0x0:_0x185e38[_0x5485c4],_0x5aef67=(_0x37c58c=_0x1a0f68[_0xcb0de3(0x242)])==null?void 0x0:_0x37c58c[_0x36ae32];if(!_0x1fe4b8||!_0x1a0f68[_0xcb0de3(0x45a)][_0x1fe4b8]||!_0x5aef67)return null;let _0x12b826=_0x1a0f68['fields'][_0x5aef67];if(!_0x12b826||_0x12b826[_0xcb0de3(0x33a)]!=='formula')return null;let _0x3573c1=String(((_0x579bd9=_0x12b826[_0xcb0de3(0x342)])==null?void 0x0:_0x579bd9[_0xcb0de3(0x23a)])??'')['trim'](),_0x4040d8=(_0x475e03==null?void 0x0:_0x475e03['v'])??null,_0x1cbbfc={'v':_0x4040d8,'t':ea(_0x4040d8),..._0x5485c4===0x0&&_0x3573c1?{'f':_0x3573c1}:{},'si':_0x12b826['id']};return $i(vt(_0x1a0f68,_0x1fe4b8,_0x5aef67),_0x1cbbfc)?null:{'row':_0x5485c4,'col':_0x36ae32,'value':_0x1cbbfc};}function $i(_0x6d42fe,_0x31cb8f){return _0x6d42fe!=null&&Object['is'](_0x6d42fe['v']??null,_0x31cb8f['v']??null)&&_0x6d42fe['t']===_0x31cb8f['t']&&_0x6d42fe['f']===_0x31cb8f['f']&&_0x6d42fe['si']===_0x31cb8f['si'];}function ea(_0x151d30){const _0x395767=_0x354fcb;return typeof _0x151d30==_0x395767(0x256)?_0x149f0a[_0x395767(0x426)]:typeof _0x151d30==_0x395767(0x364)?_0x149f0a[_0x395767(0x176)]:typeof _0x151d30==_0x395767(0x471)?_0x149f0a['STRING']:null;}function ta(_0x65ecc5){const _0x5c82ee=_0x354fcb;let _0x5e6462=ia(_0x65ecc5,()=>''),_0x3378df=new Map(),_0x419c80=_0xe8b97b=>{_0x3378df['set']((_0xe8b97b['tableName']??'')+'\x1f'+_0xe8b97b['fieldName'],_0xe8b97b);};for(let _0x28cfac of _0x5e6462['matchAll'](Ui))_0x419c80({'fieldName':_0x28cfac[0x1],'scope':_0x5c82ee(0x2a3)});_0x5e6462=_0x5e6462['replace'](Wi,(_0x2c9165,_0x13a8a6,_0x386281,_0x13f8f0)=>(_0x419c80({'tableName':_0x13a8a6,'fieldName':_0x13f8f0,'scope':_0x386281[_0x5c82ee(0x4f1)]()===_0x5c82ee(0x523)?_0x5c82ee(0x523):'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Gi,(_0x415582,_0x21f7ef,_0x12c2a4)=>(_0x419c80({'tableName':_0x21f7ef,'fieldName':_0x12c2a4,'scope':'this-row'}),'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](qi,(_0x4536d6,_0x57b46e,_0x44ea79,_0x5916f2)=>(_0x419c80({'fieldName':_0x5916f2,'scope':_0x44ea79[_0x5c82ee(0x4f1)]()==='data'?_0x5c82ee(0x523):_0x5c82ee(0x2a3)}),_0x57b46e+'\x20')),_0x5e6462=_0x5e6462[_0x5c82ee(0x2b1)](Ji,(_0x184c07,_0x28744a,_0x1d2b8d)=>(_0x419c80({'fieldName':_0x1d2b8d,'scope':_0x5c82ee(0x2a3)}),_0x28744a+'\x20'));for(let _0x3c85e5 of _0x5e6462[_0x5c82ee(0x400)](Ki))_0x419c80({'tableName':_0x3c85e5[0x1],'fieldName':_0x3c85e5[0x2]});for(let _0x38c8a0 of _0x5e6462[_0x5c82ee(0x400)](Yi))_0x419c80({'fieldName':_0x38c8a0[0x2],'scope':'this-row'});return Array[_0x5c82ee(0x4dd)](_0x3378df[_0x5c82ee(0x1da)]());}function na(_0x48e28e){const _0x5aac00=_0x354fcb;let _0x4d67c1=ia(_0x48e28e,()=>'\x20')[_0x5aac00(0x2b1)](Ui,'\x20')['replace'](Wi,'\x20')[_0x5aac00(0x2b1)](Gi,'\x20')['replace'](qi,_0x5aac00(0x49c))['replace'](Ji,_0x5aac00(0x49c))[_0x5aac00(0x2b1)](Ki,'\x20')['replace'](Yi,_0x5aac00(0x49c));return Vi['test'](_0x4d67c1);}function ra(_0x51a418,_0x128929){return ca(oa(_0x51a418,_0x128929),_0x128929);}function ia(_0x18a6ea,_0x4057f6){return aa(ra(_0x18a6ea,_0x4057f6),_0x4057f6);}function aa(_0x59cd6b,_0x4ceaef){const _0x4e6ca5=_0x354fcb;return _0x59cd6b[_0x4e6ca5(0x2b1)](/"(?:""|[^"])*"/g,_0x4ceaef);}function oa(_0x5b8dbf,_0x4ed800){const _0x306a05=_0x354fcb;return Hi[_0x306a05(0x186)]=0x0,_0x5b8dbf[_0x306a05(0x2b1)](Hi,(_0x2d387d,_0x19f8a5)=>la(_0x5b8dbf,_0x19f8a5)?_0x2d387d:_0x4ed800(_0x2d387d));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1a438a,_0x1a29d0){const _0x2cafba=_0x354fcb;let _0x41c5ab=[];for(sa[_0x2cafba(0x186)]=0x0;;){let _0x4f1140=sa[_0x2cafba(0x467)](_0x1a438a);if(_0x4f1140==null)break;if(la(_0x1a438a,_0x4f1140[_0x2cafba(0x250)]))continue;let _0x4072e8=sa[_0x2cafba(0x186)]-0x1,_0x5c7c4f=0x0;for(let _0x13564d=_0x4072e8;_0x13564d<_0x1a438a[_0x2cafba(0x458)];_0x13564d++)if(_0x1a438a[_0x13564d]==='['&&_0x5c7c4f++,_0x1a438a[_0x13564d]===']'&&(_0x5c7c4f--,_0x5c7c4f===0x0)){_0x41c5ab[_0x2cafba(0x1f3)]({'start':_0x4f1140[_0x2cafba(0x250)],'end':_0x13564d+0x1}),sa[_0x2cafba(0x186)]=_0x13564d+0x1;break;}}if(_0x41c5ab['length']===0x0)return _0x1a438a;let _0x2d7fd0='',_0x5c1959=0x0;for(let _0x4bd938 of _0x41c5ab)_0x2d7fd0+=_0x1a438a[_0x2cafba(0x192)](_0x5c1959,_0x4bd938['start']),_0x2d7fd0+=_0x1a29d0(_0x1a438a[_0x2cafba(0x192)](_0x4bd938[_0x2cafba(0x191)],_0x4bd938[_0x2cafba(0x3ce)])),_0x5c1959=_0x4bd938['end'];return _0x2d7fd0+_0x1a438a[_0x2cafba(0x192)](_0x5c1959);}function la(_0x12f2ce,_0x2cb3a4){let _0x1d8872=!0x1;for(let _0x18475d=0x0;_0x18475d<_0x2cb3a4;_0x18475d++)_0x12f2ce[_0x18475d]==='\x22'&&(_0x1d8872&&_0x12f2ce[_0x18475d+0x1]==='\x22'?_0x18475d++:_0x1d8872=!_0x1d8872);return _0x1d8872;}function ua(_0x21a0d2,_0x513b6e,_0x58e547,_0x3f098c){const _0x1db954=_0x354fcb;let _0x2242b1=da(_0x21a0d2[_0x1db954(0x4e4)],_0x513b6e,_0x58e547,_0x3f098c);return{'table':_0x2242b1,'field':_0x2242b1?Object[_0x1db954(0x1da)](_0x2242b1[_0x1db954(0x480)])['find'](_0xdb584=>_0xdb584['name']===_0x21a0d2[_0x1db954(0x2c8)]):void 0x0};}function da(_0x3f3d4f,_0x15e354,_0x44a674,_0x597ca4){const _0x2b859b=_0x354fcb;if(!_0x3f3d4f)return _0x15e354;if(!_0x44a674){var _0x300f49;let _0x32fdcb=_0x3f3d4f[_0x2b859b(0x4f1)]();return _0x32fdcb===_0x15e354['id']['toLowerCase']()||_0x32fdcb===_0x15e354[_0x2b859b(0x1e0)][_0x2b859b(0x4f1)]()||_0x32fdcb===((_0x300f49=_0x15e354['formulaName'])==null?void 0x0:_0x300f49[_0x2b859b(0x4f1)]())?_0x15e354:void 0x0;}let _0x1817f2=_0x3f3d4f['toLowerCase'](),_0x52b89f=_0x597ca4??_0x49362b(_0x44a674),_0x3e604e=Object[_0x2b859b(0x1da)](_0x44a674[_0x2b859b(0x2ba)])[_0x2b859b(0x397)](_0x5cc984=>{const _0x484325=_0x2b859b;var _0x4523df;return _0x5cc984['id'][_0x484325(0x4f1)]()===_0x1817f2||_0x5cc984[_0x484325(0x1e0)][_0x484325(0x4f1)]()===_0x1817f2||((_0x4523df=_0x52b89f['get'](_0x5cc984['id']))==null?void 0x0:_0x4523df['toLowerCase']())===_0x1817f2||fa(_0x5cc984['id'])[_0x484325(0x4f1)]()===_0x1817f2;});return _0x3e604e['length']===0x1?_0x3e604e[0x0]:void 0x0;}function fa(_0x488e2f){const _0xbd6be9=_0x354fcb;return _0xbd6be9(0x29d)+Array[_0xbd6be9(0x4dd)](_0x488e2f,_0x10d7b5=>{const _0x186ba2=_0xbd6be9;var _0x1ba89f;return/[A-Za-z0-9]/['test'](_0x10d7b5)?_0x10d7b5:'_x'+(((_0x1ba89f=_0x10d7b5[_0x186ba2(0x1c6)](0x0))==null?void 0x0:_0x1ba89f[_0x186ba2(0x349)](0x10))??'0')+'_';})[_0xbd6be9(0x4b5)]('');}const pa=new Xi();function ma(_0x2cea02,_0x1dddaa,_0x4845ad){const _0x4f4907=_0x354fcb;var _0x7fd86c;if(_0x4845ad[_0x4f4907(0x33a)]!==_0x19bf94['Formula'])return!0x0;let _0x54aced=String(((_0x7fd86c=_0x4845ad[_0x4f4907(0x342)])==null?void 0x0:_0x7fd86c[_0x4f4907(0x23a)])??''),_0x5e87e2=_0x2cea02[_0x4f4907(0x1f9)]();return pa['validateFormula'](_0x54aced,_0x5e87e2[_0x4f4907(0x2ba)][_0x1dddaa],{'snapshot':_0x5e87e2})[_0x4f4907(0x35c)];}function $(_0x197eb8,_0x505d41,_0x3608fd){const _0xbde71e=_0x354fcb;let _0x36c746=_0x197eb8[_0xbde71e(0x1f9)]()[_0xbde71e(0x2ba)][_0x505d41];if(!_0x36c746)return!0x1;let {viewIds:_0x4dc320,fieldIds:_0x485672,recordIds:_0x2c3f6a}=_0x3608fd||{};if(_0x4dc320){for(let _0x58b76f of _0x4dc320)if(!_0x36c746[_0xbde71e(0x38b)][_0x58b76f])return!0x1;}if(_0x485672){for(let _0x397315 of _0x485672)if(!_0x36c746[_0xbde71e(0x480)][_0x397315])return!0x1;}if(_0x2c3f6a){for(let _0xdc7b34 of _0x2c3f6a)if(!_0x36c746[_0xbde71e(0x45a)][_0xdc7b34])return!0x1;}return!0x0;}function ha(_0x3a2e3e,_0x3c5451,_0x3f9b13){const _0x4a60d0=_0x354fcb;if(_0x3f9b13['id']===_0x3b44b5||_0x3f9b13[_0x4a60d0(0x33a)]===_0x19bf94[_0x4a60d0(0x44f)]||_0x37b436(_0x3f9b13[_0x4a60d0(0x1e0)])||!ma(_0x3a2e3e,_0x3c5451,_0x3f9b13))return!0x1;let _0x495b4e=_0x3a2e3e[_0x4a60d0(0x1f9)]();if(!Be(_0x495b4e,_0x3f9b13)['valid'])return!0x1;if(_0x3f9b13['type']!==_0x19bf94['RecordLink'])return!0x0;let _0x49a022=N(_0x3f9b13);if(!_0x49a022)return!0x1;if(_0x49a022[_0x4a60d0(0x274)]===void 0x0)return!0x0;if(_0x49a022[_0x4a60d0(0x274)]!==_0x170c14[_0x4a60d0(0x3a0)]||_0x49a022['targetTableId']!==_0x3c5451||_0x49a022[_0x4a60d0(0x215)]!==!0x1)return!0x1;let _0x38dcad=_0x495b4e[_0x4a60d0(0x2ba)][_0x3c5451];return!Object[_0x4a60d0(0x1da)](_0x38dcad[_0x4a60d0(0x480)])[_0x4a60d0(0x257)](_0x3ea3cd=>{const _0x5512cc=_0x4a60d0;var _0x5b6660;return _0x3ea3cd['id']!==_0x3f9b13['id']&&_0x3ea3cd[_0x5512cc(0x33a)]===_0x19bf94[_0x5512cc(0x2bd)]&&((_0x5b6660=N(_0x3ea3cd))==null?void 0x0:_0x5b6660['relationRole'])===_0x170c14[_0x5512cc(0x3a0)];});}function ga(_0x345c3b,_0x87d7c9,_0xab055d,_0x16d2ac){const _0x4f54cb=_0x354fcb;var _0x16da24;let _0x25fb32=_0x345c3b[_0x4f54cb(0x1f9)](),_0x446e12=(_0x16da24=_0x25fb32['tables'][_0x87d7c9])==null?void 0x0:_0x16da24[_0x4f54cb(0x480)][_0xab055d];return!_0x446e12||_0x446e12['id']===_0x3b44b5||_0x446e12[_0x4f54cb(0x33a)]===_0x19bf94[_0x4f54cb(0x44f)]?!0x1:_0x446e12[_0x4f54cb(0x33a)]!==_0x19bf94[_0x4f54cb(0x2bd)]||Ve(_0x25fb32,_0x446e12,ya(_0x16d2ac))[_0x4f54cb(0x35c)];}function _a(_0xa8053e,_0x2bfbbe,_0x1f2f04){const _0x29df09=_0x354fcb;let _0x335e32=_0xa8053e[_0x29df09(0x1f9)]()[_0x29df09(0x2ba)][_0x2bfbbe];return!_0x335e32||!_0x3605be(_0x1f2f04['id'])||_0x335e32['records'][_0x1f2f04['id']]||Object[_0x29df09(0x32b)][_0x29df09(0x42f)][_0x29df09(0x331)](_0x1f2f04[_0x29df09(0x1da)],_0x3b44b5)&&_0x1f2f04[_0x29df09(0x1da)][_0x3b44b5]!==_0x1f2f04['id']?!0x1:Object[_0x29df09(0x1e2)](_0x1f2f04[_0x29df09(0x1da)])['every'](([_0x4d0990,_0x3c0a44])=>_0x4d0990===_0x3b44b5||ga(_0xa8053e,_0x2bfbbe,_0x4d0990,_0x3c0a44));}function va(_0x5704fa){const _0x5e5b0e=_0x354fcb;return{..._0x5704fa,'values':{..._0x5704fa[_0x5e5b0e(0x1da)],[_0x3b44b5]:_0x5704fa['id']}};}function ya(_0x115a3b){const _0x16b531=_0x354fcb;if(_0x115a3b&&typeof _0x115a3b==_0x16b531(0x269)&&!Array['isArray'](_0x115a3b)&&'v'in _0x115a3b){let _0x15b14a=_0x115a3b['v'];return _0x15b14a===void 0x0?null:_0x15b14a;}return _0x115a3b;}function ba(_0x7f7105,_0x5e44e0,_0x17d11d,_0x210a05){const _0x535135=_0x354fcb;let _0x4cdadc=_0x7f7105[_0x535135(0x1f9)]()['tables'][_0x5e44e0];if(!_0x4cdadc)return null;let _0x486af9=qe(_0x4cdadc),_0x3ea08d=_0x486af9??Je(_0x4cdadc),_0x4714c3=_0x17d11d[_0x535135(0x257)](_0x40f3cd=>Object[_0x535135(0x32b)][_0x535135(0x42f)][_0x535135(0x331)](_0x40f3cd[_0x535135(0x1da)],_0x3ea08d)),_0x2fcf1c=_0x486af9?_0x4cdadc['fields'][_0x486af9]:_0x4714c3?Ye(_0x4cdadc,_0x3ea08d,_0x210a05):null,_0x531478=[];for(let _0x5bfde9 of _0x17d11d){let _0x14ed18=_0x5bfde9[_0x535135(0x1da)][_0x3ea08d],_0x150edf=_0x2fcf1c!==null&&Object[_0x535135(0x32b)]['hasOwnProperty']['call'](_0x5bfde9[_0x535135(0x1da)],_0x3ea08d),_0x33c4d0=ya(_0x14ed18),_0x4b7ad2=null;if(_0x150edf){if(typeof _0x33c4d0!=_0x535135(0x471)||!ze(_0x33c4d0,!0x1)['valid'])return null;_0x4b7ad2=_0x33c4d0;}let _0x6634e9={};if(Object[_0x535135(0x1e2)](_0x5bfde9[_0x535135(0x1da)])['forEach'](([_0x29b999,_0x931916])=>{(!_0x150edf||_0x29b999!==_0x3ea08d)&&(_0x6634e9[_0x29b999]=_0x931916);}),!_a(_0x7f7105,_0x5e44e0,{..._0x5bfde9,'values':_0x6634e9}))return null;let _0x482e79={..._0x5bfde9['values']};_0x4b7ad2!==null&&(_0x482e79[_0x3ea08d]=_0x4b7ad2),_0x531478[_0x535135(0x1f3)](va({..._0x5bfde9,'values':_0x482e79}));}return{'records':_0x531478,'hierarchyFieldToMaterialize':_0x486af9?null:_0x2fcf1c,'hierarchyChanges':Qe(_0x4cdadc,_0x531478)};}const xa={'id':_0x354fcb(0x1f6),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2bb5ea,_0x58ae91){const _0x28ada7=_0x354fcb;if(!_0x58ae91)return!0x1;let _0x19df08=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3414e2),{unitId:_0x1f57b8,tableId:_0x3b9538,records:_0x80130f}=_0x58ae91,_0x131cbb=_0x19df08[_0x28ada7(0x2e5)](_0x1f57b8,_0x28d752[_0x28ada7(0x201)]),_0xf69d7c=_0x80130f[_0x28ada7(0x29b)](_0x1812ee=>_0x1812ee['id']);if(!_0x131cbb||!$(_0x131cbb,_0x3b9538)||new Set(_0xf69d7c)[_0x28ada7(0x473)]!==_0xf69d7c[_0x28ada7(0x458)])return!0x1;let _0xad5f1b=_0x2bb5ea[_0x28ada7(0x4a8)](_0x3ff846),_0x15f111=_0x2bb5ea['get'](_0x5153d9),_0x1bc1d7=_0x2bb5ea[_0x28ada7(0x4a8)](Kr),_0x2ed0af=_0x131cbb[_0x28ada7(0x1f9)](),_0x4426f5=ba(_0x131cbb,_0x3b9538,_0x80130f);if(!_0x4426f5)return!0x1;let {records:_0xb7cbd8,hierarchyChanges:_0x4eaa1a,hierarchyFieldToMaterialize:_0x2ec815}=_0x4426f5,_0x12e5a4=_0x2ec815?_0x1bc1d7[_0x28ada7(0x20a)](_0x131cbb,_0x3b9538,_0x2ec815,_0x2ed0af[_0x28ada7(0x2ba)][_0x3b9538]['fieldOrder'][_0x28ada7(0x458)]):null,_0x4daf63=_0x1bc1d7[_0x28ada7(0x518)](_0x131cbb,_0x3b9538,_0xb7cbd8),_0x8bcc53=R([..._0x12e5a4?[_0x12e5a4]:[],_0x4daf63]),_0x3e1fe4=new z()[_0x28ada7(0x2aa)](_0x2ed0af,_0x8bcc53),_0x24cfe1={'unitId':_0x1f57b8,'op':_0x8bcc53,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a:void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x58ae91['source']??'ui':void 0x0},_0x545842={..._0x24cfe1,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x29f):void 0x0},_0x26a821={'unitId':_0x1f57b8,'op':_0x3e1fe4,'hierarchyChanges':_0x4eaa1a[_0x28ada7(0x458)]?_0x4eaa1a[_0x28ada7(0x29b)](_0x4317ba=>({..._0x4317ba,'oldParentRecordId':_0x4317ba[_0x28ada7(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x4eaa1a[_0x28ada7(0x458)]?_0x28ada7(0x37e):void 0x0};return _0xad5f1b['syncExecuteCommand'](Q['id'],_0x24cfe1)?(_0x19df08[_0x28ada7(0x3f4)](_0x1f57b8),_0x15f111['pushUndoRedo']({'unitID':_0x1f57b8,'undoMutations':[{'id':Q['id'],'params':_0x26a821}],'redoMutations':[{'id':Q['id'],'params':_0x545842}]}),!0x0):!0x1;}},Sa={'id':_0x354fcb(0x179),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1e4a33,_0x3dd651)=>{const _0xfbd03=_0x354fcb;if(!_0x3dd651)return!0x1;let _0x51a65d=_0x1e4a33[_0xfbd03(0x4a8)](_0x3414e2),{unitId:_0x5cc4dc,tableId:_0x4aa2c9,recordIds:_0x187f2d}=_0x3dd651,_0x36ed72=_0x51a65d[_0xfbd03(0x2e5)](_0x5cc4dc,_0x28d752[_0xfbd03(0x201)]);if(!_0x36ed72||!$(_0x36ed72,_0x4aa2c9,{'recordIds':_0x187f2d}))return!0x1;let _0x183521=_0x1e4a33[_0xfbd03(0x4a8)](_0x3ff846),_0x13dc4a=_0x1e4a33[_0xfbd03(0x4a8)](_0x5153d9),_0x57b7a4=_0x36ed72[_0xfbd03(0x1f9)](),_0x1a542a=et(_0x57b7a4[_0xfbd03(0x2ba)][_0x4aa2c9],_0x187f2d),_0x57e342=new W(),_0x3ee215=new z(),_0x207b6a=_0x57e342[_0xfbd03(0x305)](_0x57b7a4,_0x4aa2c9,_0x187f2d),_0x4050a3=_0x3ee215[_0xfbd03(0x2ad)](_0x57b7a4,_0x207b6a),_0x5e37a4=_0x57e342[_0xfbd03(0x51d)](_0x57b7a4,_0x4050a3,_0x4aa2c9,_0x187f2d),_0x52333d={'unitId':_0x5cc4dc,'op':_0x207b6a,'hierarchyChanges':_0x1a542a,'source':_0x3dd651['source']??'ui'},_0x222847={..._0x52333d,'source':'redo'},_0x554d10={'unitId':_0x5cc4dc,'op':_0x5e37a4,'hierarchyChanges':_0x1a542a['map'](_0x175afb=>({..._0x175afb,'oldParentRecordId':_0x175afb['parentRecordId'],'parentRecordId':_0x175afb[_0xfbd03(0x30d)]})),'source':_0xfbd03(0x37e)};return _0x183521['syncExecuteCommand'](Q['id'],_0x52333d)?(_0x51a65d['focusUnit'](_0x5cc4dc),_0x13dc4a['pushUndoRedo']({'unitID':_0x5cc4dc,'undoMutations':[{'id':Q['id'],'params':_0x554d10}],'redoMutations':[{'id':Q['id'],'params':_0x222847}]}),!0x0):!0x1;}},Ca={'id':_0x354fcb(0x3f1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x23996e,_0x99b429)=>{const _0x4b9865=_0x354fcb;if(!_0x99b429)return!0x1;let _0x1f7fe7=_0x23996e[_0x4b9865(0x4a8)](_0x3414e2),{unitId:_0x27ade3,tableId:_0x1b6f27,fieldId:_0x438555,input:_0x262da8}=_0x99b429,_0x36b248=_0x1f7fe7['getUnit'](_0x27ade3,_0x28d752['UNIVER_BASE']);if(!_0x36b248||_0x438555===_0x3b44b5||!$(_0x36b248,_0x1b6f27,{'fieldIds':[_0x438555]}))return!0x1;let _0x34f37f=_0x23996e[_0x4b9865(0x4a8)](_0x3ff846),_0x275283=_0x23996e[_0x4b9865(0x4a8)](_0x5153d9),_0x308809=_0x36b248[_0x4b9865(0x1f9)]();if(!ha(_0x36b248,_0x1b6f27,{..._0x308809[_0x4b9865(0x2ba)][_0x1b6f27]['fields'][_0x438555],..._0x262da8}))return!0x1;let _0x2918d0=new W()[_0x4b9865(0x2b7)](_0x308809,_0x1b6f27,_0x438555,_0x262da8),_0x12298b=new z()[_0x4b9865(0x2aa)](_0x308809,_0x2918d0),_0x354dab={'unitId':_0x27ade3,'op':_0x2918d0},_0x48e1b4={'unitId':_0x27ade3,'op':_0x12298b};return _0x34f37f[_0x4b9865(0x4c6)](Q['id'],_0x354dab)?(_0x1f7fe7[_0x4b9865(0x3f4)](_0x27ade3),_0x275283[_0x4b9865(0x519)]({'unitID':_0x27ade3,'undoMutations':[{'id':Q['id'],'params':_0x48e1b4}],'redoMutations':[{'id':Q['id'],'params':_0x354dab}]}),!0x0):!0x1;}},wa={'id':_0x354fcb(0x324),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3aab6f,_0x55c2ea){const _0x9cbfdb=_0x354fcb;var _0x27a8b5;if(!_0x55c2ea)return!0x1;let {unitId:_0x11b9fd,tableId:_0x153a46,parentRecordId:_0x364e06}=_0x55c2ea,_0x6b95fe=_0x3aab6f['get'](_0x3414e2),_0xf142f7=_0x6b95fe[_0x9cbfdb(0x2e5)](_0x11b9fd,_0x28d752['UNIVER_BASE']);if(!_0xf142f7||!$(_0xf142f7,_0x153a46,{'recordIds':[_0x364e06]}))throw new P('missingRecord');let _0x4319f1=_0xf142f7[_0x9cbfdb(0x1f9)](),_0x6363a0=_0x4319f1['tables'][_0x153a46],_0x110656=qe(_0x6363a0),_0x337106=_0x110656??_0x55c2ea[_0x9cbfdb(0x46e)]??Je(_0x6363a0);if(_0x110656&&_0x55c2ea[_0x9cbfdb(0x46e)]&&_0x55c2ea[_0x9cbfdb(0x46e)]!==_0x110656||_0x6363a0['fields'][_0x337106]&&!F(_0x6363a0,_0x337106))throw new P(_0x9cbfdb(0x4a7));if((tt(_0x6363a0,_0x337106)[_0x9cbfdb(0x3ff)][_0x9cbfdb(0x4a8)](_0x364e06)??0x0)+0x1>=0x5)throw new P('maxDepth');if(!_a(_0xf142f7,_0x153a46,_0x55c2ea[_0x9cbfdb(0x52b)]))return!0x1;let _0x53cca1=va({..._0x55c2ea[_0x9cbfdb(0x52b)],'values':{..._0x55c2ea[_0x9cbfdb(0x52b)][_0x9cbfdb(0x1da)],[_0x337106]:Re([_0x364e06])}}),_0x59ee0e=_0x3aab6f['get'](Kr),_0x560339=new W(),_0x26c8fe=_0x6363a0['fields'][_0x337106],_0x4bfd3e=_0x26c8fe?((_0x27a8b5=N(_0x26c8fe))==null?void 0x0:_0x27a8b5[_0x9cbfdb(0x274)])===_0x170c14['Parent']?null:_0x560339[_0x9cbfdb(0x409)](_0x4319f1,_0x153a46,_0x337106,{'config':{..._0x26c8fe[_0x9cbfdb(0x342)],'relationRole':_0x170c14['Parent']}}):_0x59ee0e[_0x9cbfdb(0x20a)](_0xf142f7,_0x153a46,Ye(_0x6363a0,_0x337106,_0x55c2ea[_0x9cbfdb(0x398)]),_0x6363a0[_0x9cbfdb(0x1e1)][_0x9cbfdb(0x458)]),_0x7a1bba=_0x59ee0e[_0x9cbfdb(0x40c)](_0xf142f7,_0x153a46,_0x53cca1),_0x388c52=R([..._0x4bfd3e?[_0x4bfd3e]:[],_0x7a1bba]),_0x17c134=new z()[_0x9cbfdb(0x2aa)](_0x4319f1,_0x388c52),_0x9fb53={'tableId':_0x153a46,'fieldId':_0x337106,'recordId':_0x53cca1['id'],'oldParentRecordId':null,'parentRecordId':_0x364e06},_0x5ea679={'unitId':_0x11b9fd,'op':_0x388c52,'trigger':wa['id'],'hierarchyChanges':[_0x9fb53],'source':_0x55c2ea[_0x9cbfdb(0x4cd)]??'ui'},_0x4775b5={..._0x5ea679,'source':_0x9cbfdb(0x29f)},_0x260d21={'unitId':_0x11b9fd,'op':_0x17c134,'trigger':wa['id'],'hierarchyChanges':[{..._0x9fb53,'oldParentRecordId':_0x364e06,'parentRecordId':null}],'source':_0x9cbfdb(0x37e)};return _0x3aab6f[_0x9cbfdb(0x4a8)](_0x3ff846)[_0x9cbfdb(0x4c6)](Q['id'],_0x5ea679)?(_0x6b95fe[_0x9cbfdb(0x3f4)](_0x11b9fd),_0x3aab6f['get'](_0x5153d9)[_0x9cbfdb(0x519)]({'unitID':_0x11b9fd,'undoMutations':[{'id':Q['id'],'params':_0x260d21}],'redoMutations':[{'id':Q['id'],'params':_0x4775b5}]}),!0x0):!0x1;}},Ta={'id':_0x354fcb(0x19f),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x26e7e8,_0x2741af){const _0x407ada=_0x354fcb;if(!_0x2741af)return!0x1;let _0x1d98c8=_0x26e7e8[_0x407ada(0x4a8)](_0x3414e2),{unitId:_0x1503df,tableId:_0x510f9a,field:_0x1ea059,index:_0x4fd16c,viewIndexes:_0x291694}=_0x2741af,_0x29337b=_0x1d98c8[_0x407ada(0x2e5)](_0x1503df,_0x28d752['UNIVER_BASE']);if(!_0x29337b||!$(_0x29337b,_0x510f9a)||_0x29337b[_0x407ada(0x1f9)]()[_0x407ada(0x2ba)][_0x510f9a][_0x407ada(0x480)][_0x1ea059['id']]||_0x4fd16c===0x0||!ha(_0x29337b,_0x510f9a,_0x1ea059))return!0x1;let _0xcc8dbe=_0x26e7e8[_0x407ada(0x4a8)](_0x3ff846),_0x2003f9=_0x26e7e8[_0x407ada(0x4a8)](_0x5153d9),_0x1935f6=_0x26e7e8[_0x407ada(0x4a8)](Kr)[_0x407ada(0x20a)](_0x29337b,_0x510f9a,_0x1ea059,_0x4fd16c,_0x291694),_0x4f9467=new z()[_0x407ada(0x2aa)](_0x29337b[_0x407ada(0x1f9)](),_0x1935f6),_0x422506={'unitId':_0x1503df,'op':_0x1935f6},_0x4264be={'unitId':_0x1503df,'op':_0x4f9467};return _0xcc8dbe[_0x407ada(0x4c6)](Q['id'],_0x422506)?(_0x1d98c8[_0x407ada(0x3f4)](_0x1503df),_0x2003f9[_0x407ada(0x519)]({'unitID':_0x1503df,'undoMutations':[{'id':Q['id'],'params':_0x4264be}],'redoMutations':[{'id':Q['id'],'params':_0x422506}]}),!0x0):!0x1;}},Ea={'id':_0x354fcb(0x393),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xd7bbb4,_0x4b8556){const _0x4dd6ad=_0x354fcb;if(!_0x4b8556)return!0x1;let _0x1cccc0=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3414e2),{unitId:_0x3f1bd7,tableId:_0x35d6c4,record:_0x113f98}=_0x4b8556,_0x19b8e7=_0x1cccc0['getUnit'](_0x3f1bd7,_0x28d752[_0x4dd6ad(0x201)]);if(!_0x19b8e7||!$(_0x19b8e7,_0x35d6c4))return!0x1;let _0x3c1f01=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x3ff846),_0x267c82=_0xd7bbb4[_0x4dd6ad(0x4a8)](_0x5153d9),_0x426612=_0xd7bbb4[_0x4dd6ad(0x4a8)](Kr),_0x4be1e3=_0x19b8e7[_0x4dd6ad(0x1f9)](),_0x215bad=ba(_0x19b8e7,_0x35d6c4,[_0x113f98]);if(!_0x215bad)return!0x1;let [_0x5018ce]=_0x215bad[_0x4dd6ad(0x45a)],{hierarchyChanges:_0x5a6d6b,hierarchyFieldToMaterialize:_0x5575c6}=_0x215bad,_0x229658=_0x5575c6?_0x426612[_0x4dd6ad(0x20a)](_0x19b8e7,_0x35d6c4,_0x5575c6,_0x4be1e3['tables'][_0x35d6c4][_0x4dd6ad(0x1e1)]['length']):null,_0x536131=_0x426612[_0x4dd6ad(0x40c)](_0x19b8e7,_0x35d6c4,_0x5018ce),_0x574137=R([..._0x229658?[_0x229658]:[],_0x536131]),_0x5cd684=new z()[_0x4dd6ad(0x2aa)](_0x4be1e3,_0x574137),_0x4663db={'unitId':_0x3f1bd7,'op':_0x574137,'hierarchyChanges':_0x5a6d6b['length']?_0x5a6d6b:void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4b8556[_0x4dd6ad(0x4cd)]??'ui':void 0x0},_0xc146ae={..._0x4663db,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x29f):void 0x0},_0x12c965={'unitId':_0x3f1bd7,'op':_0x5cd684,'hierarchyChanges':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x5a6d6b[_0x4dd6ad(0x29b)](_0x505e6a=>({..._0x505e6a,'oldParentRecordId':_0x505e6a[_0x4dd6ad(0x1b1)],'parentRecordId':null})):void 0x0,'source':_0x5a6d6b[_0x4dd6ad(0x458)]?_0x4dd6ad(0x37e):void 0x0};return _0x3c1f01[_0x4dd6ad(0x4c6)](Q['id'],_0x4663db)?(_0x1cccc0['focusUnit'](_0x3f1bd7),_0x267c82['pushUndoRedo']({'unitID':_0x3f1bd7,'undoMutations':[{'id':Q['id'],'params':_0x12c965}],'redoMutations':[{'id':Q['id'],'params':_0xc146ae}]}),!0x0):!0x1;}},Da=_0x354fcb(0x189);function Oa(_0x875f8b,_0x56c75d,_0x185f62){const _0x408055=_0x354fcb;if(!_0x56c75d[_0x408055(0x3bc)]())return{'valid':!0x1,'reason':_0x408055(0x18b),'error':'required'};if(_0x56c75d['length']>0x1f)return{'valid':!0x1,'reason':'Use\x2031\x20characters\x20or\x20fewer.','error':_0x408055(0x43d)};if(_0x56c75d['startsWith']('\x27')||_0x56c75d[_0x408055(0x424)]('\x27'))return{'valid':!0x1,'reason':_0x408055(0x3ae),'error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x408055(0x235)](_0x56c75d))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','error':_0x408055(0x42c)};if(!_0x5b975c(_0x56c75d))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x408055(0x20e)};let _0x4de5bd=_0x56c75d[_0x408055(0x4f1)]();return Object[_0x408055(0x1da)](_0x875f8b['tables'])[_0x408055(0x257)](_0x5e11c6=>_0x5e11c6['id']!==_0x185f62&&_0x5e11c6[_0x408055(0x1e0)][_0x408055(0x4f1)]()===_0x4de5bd)?{'valid':!0x1,'reason':_0x408055(0x17d),'error':_0x408055(0x52d)}:{'valid':!0x0};}function ka(_0x2f7180,_0x34069b){const _0x53efe9=_0x354fcb;let _0x22d0ba=_0x34069b[_0x53efe9(0x2b1)](/[:\\/?*\[\]]/g,'\x20')[_0x53efe9(0x2b1)](/^'+|'+$/g,'')[_0x53efe9(0x3bc)]()||_0x53efe9(0x494),_0x1fb671=0x1;for(;;){let _0x969cff=_0x1fb671===0x1?'':'\x20'+_0x1fb671,_0x5580cb=''+_0x22d0ba[_0x53efe9(0x192)](0x0,0x1f-_0x969cff[_0x53efe9(0x458)])+_0x969cff;if(Oa(_0x2f7180,_0x5580cb)[_0x53efe9(0x35c)])return _0x5580cb;_0x1fb671++;}}const Aa={'id':_0x354fcb(0x285),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3b74cf,_0x5252d8)=>{const _0x4ec82f=_0x354fcb;if(!_0x5252d8)return!0x1;let _0x3dfaf6=_0x3b74cf['get'](_0x3414e2),{unitId:_0x29086c,table:_0xa8ee86,index:_0x59b5d9}=_0x5252d8,_0x12bee5=_0x3dfaf6['getUnit'](_0x29086c,_0x28d752[_0x4ec82f(0x201)]);if(!_0x12bee5||_0x12bee5[_0x4ec82f(0x1f9)]()['tables'][_0xa8ee86['id']]||!Oa(_0x12bee5[_0x4ec82f(0x1f9)](),_0xa8ee86[_0x4ec82f(0x1e0)])[_0x4ec82f(0x35c)])return!0x1;try{_0x136f40(_0xa8ee86);}catch{return!0x1;}let _0x803a5d=_0x3b74cf[_0x4ec82f(0x4a8)](_0x3ff846),_0x123b68=_0x3b74cf[_0x4ec82f(0x4a8)](_0x5153d9),_0x1219ba=_0x12bee5[_0x4ec82f(0x1f9)](),_0x3c7b60=new W()[_0x4ec82f(0x500)](_0x1219ba,_0xa8ee86,_0x59b5d9),_0x5d2dde=new z()[_0x4ec82f(0x2aa)](_0x1219ba,_0x3c7b60),_0x35c665={'unitId':_0x29086c,'op':_0x3c7b60},_0x6aa692={'unitId':_0x29086c,'op':_0x5d2dde};return _0x803a5d['syncExecuteCommand'](Q['id'],_0x35c665)?(_0x3dfaf6[_0x4ec82f(0x3f4)](_0x29086c),_0x123b68[_0x4ec82f(0x519)]({'unitID':_0x29086c,'undoMutations':[{'id':Q['id'],'params':_0x6aa692}],'redoMutations':[{'id':Q['id'],'params':_0x35c665}]}),!0x0):!0x1;}};function ja(_0xd5401a,_0x40f96b,_0x204a4d=[]){const _0x160c63=_0x354fcb;let _0x447ff2=new Set([...Object[_0x160c63(0x1da)](_0xd5401a[_0x160c63(0x480)])[_0x160c63(0x397)](_0xe50ba0=>_0xe50ba0)[_0x160c63(0x29b)](_0x4641d3=>_0x4641d3['name']),..._0x204a4d[_0x160c63(0x29b)](_0x433627=>_0x433627['name'])]);if(!_0x447ff2[_0x160c63(0x23f)](_0x40f96b))return _0x40f96b;let _0x2d2332=0x2;for(;_0x447ff2[_0x160c63(0x23f)](_0x40f96b+'\x20'+_0x2d2332);)_0x2d2332++;return _0x40f96b+'\x20'+_0x2d2332;}function Ma(_0x1da0d6,_0x1f9cb5){const _0x5f2842=_0x354fcb;if(!_0x1da0d6||!_0x1f9cb5[_0x5f2842(0x458)])return;let _0x31b6b4=[..._0x1da0d6];return _0x1f9cb5[_0x5f2842(0x461)](_0x110a15=>{const _0x4c1edd=_0x5f2842;_0x31b6b4[_0x4c1edd(0x231)](_0x110a15)||_0x31b6b4[_0x4c1edd(0x1f3)](_0x110a15);}),_0x31b6b4;}const Na={'options':[{'id':'todo','name':_0x354fcb(0x48c),'color':_0x354fcb(0x47c)},{'id':_0x354fcb(0x359),'name':_0x354fcb(0x41d),'color':_0x354fcb(0x3a1)},{'id':_0x354fcb(0x414),'name':_0x354fcb(0x3de),'color':'#BBF7D0'}]},Pa={'locale':'en-US','pattern':_0x354fcb(0x1cd),'includeTime':!0x1,'hourCycle':_0x354fcb(0x1a8),'defaultMode':_0x354fcb(0x3e0)};function Fa(_0x5c7f17,_0x531222,_0x33fbd7,_0x4097c2){const _0x217588=_0x354fcb;var _0x1deb9a;let _0x428c33=new W(),_0x3d433b=_0x5c7f17[_0x217588(0x2ba)][_0x531222],_0x2e0b69=_0x3d433b?{..._0x33fbd7,'fieldOrder':[_0x3b44b5,...(_0x33fbd7[_0x217588(0x1e1)]??_0x3d433b['fieldOrder'])[_0x217588(0x397)](_0x94c1ae=>_0x94c1ae!==_0x3b44b5)],'fieldSettings':{..._0x33fbd7[_0x217588(0x484)],[_0x3b44b5]:{...(_0x1deb9a=_0x33fbd7[_0x217588(0x484)])==null?void 0x0:_0x1deb9a[_0x3b44b5],'hidden':!0x0}}}:_0x33fbd7;if(_0x3d433b&&_0x2e0b69[_0x217588(0x33a)]==='kanban'){let _0x2abafd=La(_0x3d433b,_0x2e0b69),_0x2cc439=_0x2abafd['changed']?{..._0x2e0b69,'config':_0x2abafd[_0x217588(0x342)],'fieldOrder':_0x2abafd[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return R([..._0x2abafd[_0x217588(0x480)][_0x217588(0x29b)](_0x5e9bbc=>_0x428c33[_0x217588(0x2c0)](_0x5c7f17,_0x531222,{'field':_0x5e9bbc})),_0x428c33[_0x217588(0x446)](_0x5c7f17,_0x531222,_0x2cc439,_0x4097c2)]);}if(!_0x3d433b||_0x2e0b69[_0x217588(0x33a)]!=='calendar'&&_0x2e0b69[_0x217588(0x33a)]!==_0x217588(0x3b0))return _0x428c33['createView'](_0x5c7f17,_0x531222,_0x2e0b69,_0x4097c2);let _0x2ffda2=Ia(_0x3d433b,_0x2e0b69),_0x1ebb98=_0x2ffda2[_0x217588(0x2ab)]?{..._0x2e0b69,'config':_0x2ffda2['config'],'fieldOrder':_0x2ffda2[_0x217588(0x1e1)]??_0x2e0b69[_0x217588(0x1e1)]}:_0x2e0b69;return _0x2e0b69[_0x217588(0x33a)]==='gantt'&&Ba(_0x2e0b69)&&(_0x1ebb98=Va(_0x3d433b,_0x1ebb98,_0x2ffda2[_0x217588(0x480)])),R([..._0x2ffda2[_0x217588(0x480)][_0x217588(0x29b)](_0x2fbd64=>_0x428c33['createField'](_0x5c7f17,_0x531222,{'field':_0x2fbd64})),_0x428c33['createView'](_0x5c7f17,_0x531222,_0x1ebb98,_0x4097c2)]);}function Ia(_0x204d68,_0x4e4455,_0x31b047=!0x1){const _0x430d0a=_0x354fcb;var _0x3fb864,_0x1056d7;let _0x21766c=_0x204d68[_0x430d0a(0x1e1)]['filter'](_0x2b9226=>Ua(_0x204d68,_0x2b9226)),_0x42412c=[],_0xa497a5={..._0x4e4455[_0x430d0a(0x342)]??{}},_0x36ac66=typeof _0xa497a5[_0x430d0a(0x240)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5[_0x430d0a(0x240)])?_0xa497a5[_0x430d0a(0x240)]:_0x21766c[0x0],_0x251cde=typeof _0xa497a5[_0x430d0a(0x171)]==_0x430d0a(0x471)&&Ua(_0x204d68,_0xa497a5['endDateFieldId'])&&_0xa497a5['endDateFieldId']!==_0x36ac66?_0xa497a5['endDateFieldId']:_0x21766c[_0x430d0a(0x22f)](_0x2347dd=>_0x2347dd!==_0x36ac66);if(!_0x36ac66){let _0xbca362=Wa(_0x204d68,_0x42412c,_0x4e4455[_0x430d0a(0x33a)]==='gantt'?_0x430d0a(0x387):_0x430d0a(0x440));_0x42412c[_0x430d0a(0x1f3)](_0xbca362),_0x36ac66=_0xbca362['id'];}if((_0x4e4455['type']===_0x430d0a(0x3b0)||_0x31b047)&&!_0x251cde){let _0x1c6254=Wa(_0x204d68,_0x42412c,_0x430d0a(0x4ad));_0x42412c[_0x430d0a(0x1f3)](_0x1c6254),_0x251cde=_0x1c6254['id'];}_0x4e4455[_0x430d0a(0x33a)]==='calendar'&&!_0x251cde&&delete _0xa497a5[_0x430d0a(0x171)],_0xa497a5['startDateFieldId']=_0x36ac66,_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x234)&&_0x251cde&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde),_0x4e4455[_0x430d0a(0x33a)]===_0x430d0a(0x3b0)&&(_0xa497a5[_0x430d0a(0x171)]=_0x251cde??_0x36ac66);let _0x358a1b=Ma(_0x4e4455[_0x430d0a(0x1e1)],_0x42412c[_0x430d0a(0x29b)](_0x128f3a=>_0x128f3a['id']));return{'changed':_0x42412c[_0x430d0a(0x458)]>0x0||_0xa497a5['startDateFieldId']!==((_0x3fb864=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x3fb864['startDateFieldId'])||_0xa497a5['endDateFieldId']!==((_0x1056d7=_0x4e4455[_0x430d0a(0x342)])==null?void 0x0:_0x1056d7[_0x430d0a(0x171)])||!(!_0x358a1b||_0x30f9db[_0x430d0a(0x52f)](_0x358a1b,_0x4e4455[_0x430d0a(0x1e1)]??[])),'fields':_0x42412c,'config':_0xa497a5,'fieldOrder':_0x358a1b};}function La(_0x5413d2,_0x3623c5){const _0x132b62=_0x354fcb;var _0x5d8ee2;let _0x43d64b=[],_0x361821={..._0x3623c5[_0x132b62(0x342)]??{}},_0x559677=typeof _0x361821[_0x132b62(0x38a)]==_0x132b62(0x471)&&Ra(_0x5413d2,_0x361821[_0x132b62(0x38a)])?_0x361821[_0x132b62(0x38a)]:_0x5413d2[_0x132b62(0x1e1)]['find'](_0x51916e=>Ra(_0x5413d2,_0x51916e));if(!_0x559677){let _0xf323cd=za(_0x5413d2,_0x43d64b);_0x43d64b[_0x132b62(0x1f3)](_0xf323cd),_0x559677=_0xf323cd['id'];}_0x361821['groupFieldId']=_0x559677;let _0x30315d=Ma(_0x3623c5['fieldOrder'],_0x43d64b[_0x132b62(0x29b)](_0x49b383=>_0x49b383['id']));return{'changed':_0x43d64b[_0x132b62(0x458)]>0x0||_0x361821[_0x132b62(0x38a)]!==((_0x5d8ee2=_0x3623c5[_0x132b62(0x342)])==null?void 0x0:_0x5d8ee2[_0x132b62(0x38a)])||!(!_0x30315d||_0x30f9db[_0x132b62(0x52f)](_0x30315d,_0x3623c5[_0x132b62(0x1e1)]??[])),'fields':_0x43d64b,'config':_0x361821,'fieldOrder':_0x30315d};}function Ra(_0x355e2a,_0x45b67a){const _0x502f28=_0x354fcb;let _0xee7caf=_0x45b67a?_0x355e2a[_0x502f28(0x480)][_0x45b67a]:null;return _0xee7caf?[_0x19bf94[_0x502f28(0x407)],_0x19bf94[_0x502f28(0x283)],_0x19bf94[_0x502f28(0x4c5)],_0x19bf94[_0x502f28(0x1e5)],_0x19bf94['Group'],_0x19bf94[_0x502f28(0x19e)]]['includes'](_0xee7caf[_0x502f28(0x33a)]):!0x1;}function za(_0x103e40,_0x114031){const _0x1ff470=_0x354fcb;return{'id':_0x1ff470(0x46a)+_0x3ba5f0(0x8),'name':ja(_0x103e40,_0x1ff470(0x1df),_0x114031),'type':_0x19bf94[_0x1ff470(0x407)],'config':_0x30f9db['deepClone'](Na)};}function Ba(_0x2a8b06){const _0x16ff69=_0x354fcb;return Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x342)]??{})[_0x16ff69(0x458)]===0x0&&Object[_0x16ff69(0x51b)](_0x2a8b06[_0x16ff69(0x484)]??{})['length']===0x0;}function Va(_0x5cb3ba,_0x4dcbe0,_0x16073b){const _0x3c5735=_0x354fcb;let _0x3ba525={..._0x4dcbe0[_0x3c5735(0x342)]??{}},_0x10767d=_0x16073b[_0x3c5735(0x29b)](_0x528c78=>_0x528c78['id']),_0x5a004b=[..._0x5cb3ba[_0x3c5735(0x1e1)],..._0x10767d],_0x48e017=typeof _0x3ba525[_0x3c5735(0x345)]==_0x3c5735(0x471)&&Ha(_0x5cb3ba,_0x16073b,_0x3ba525['titleFieldId'])?_0x3ba525[_0x3c5735(0x345)]:_0x5cb3ba['primaryFieldId'],_0x42e04d=typeof _0x3ba525[_0x3c5735(0x240)]=='string'?_0x3ba525[_0x3c5735(0x240)]:'',_0x662f03=typeof _0x3ba525[_0x3c5735(0x171)]==_0x3c5735(0x471)?_0x3ba525[_0x3c5735(0x171)]:_0x42e04d,_0x54a491=new Set([_0x48e017,_0x42e04d,_0x662f03][_0x3c5735(0x397)](_0x3a32fe=>_0x3a32fe&&Ha(_0x5cb3ba,_0x16073b,_0x3a32fe))),_0x473216=Object[_0x3c5735(0x2e8)](_0x5a004b[_0x3c5735(0x2a2)](_0x2af9aa=>_0x54a491['has'](_0x2af9aa)||!Ha(_0x5cb3ba,_0x16073b,_0x2af9aa)?[]:[[_0x2af9aa,{'hidden':!0x0}]]));return{..._0x4dcbe0,'config':{..._0x3ba525,'titleFieldId':_0x48e017},'fieldSettings':_0x473216};}function Ha(_0x306f2c,_0xe0dd89,_0x1058db){const _0x2c84a9=_0x354fcb;return!!(_0x306f2c[_0x2c84a9(0x480)][_0x1058db]??_0xe0dd89['find'](_0x37989f=>_0x37989f['id']===_0x1058db))&&!0x0;}function Ua(_0x598f3e,_0xedb8d9){const _0x4fe151=_0x354fcb;let _0x1663a5=_0xedb8d9?_0x598f3e[_0x4fe151(0x480)][_0xedb8d9]:null;return!!_0x1663a5&&_0x1663a5[_0x4fe151(0x33a)]===_0x19bf94[_0x4fe151(0x440)]&&_0x1663a5['readonly']!==!0x0&&_0x1663a5[_0x4fe151(0x1cb)]!==!0x0;}function Wa(_0x21a08a,_0x431532,_0x44f2ab){const _0x483204=_0x354fcb;let _0x67bbc=new Set([...Object[_0x483204(0x51b)](_0x21a08a[_0x483204(0x480)]),..._0x431532[_0x483204(0x29b)](_0x475d1c=>_0x475d1c['id'])]),_0x14502b='fld-'+_0x3ba5f0(0x8);for(;_0x67bbc[_0x483204(0x23f)](_0x14502b);)_0x14502b='fld-'+_0x3ba5f0(0x8);return{'id':_0x14502b,'name':ja(_0x21a08a,_0x44f2ab,_0x431532),'type':_0x19bf94[_0x483204(0x440)],'config':{...Pa}};}const Ga={'id':_0x354fcb(0x4fa),'type':_0x3e23cf['COMMAND'],'handler':(_0x13f132,_0x2a4eca)=>{const _0x4096c7=_0x354fcb;if(!_0x2a4eca)return!0x1;let _0x545df3=_0x13f132[_0x4096c7(0x4a8)](_0x3414e2),{unitId:_0x329b02,tableId:_0x4952e1,view:_0x1273f8,index:_0x2d41fb}=_0x2a4eca,_0x5db18e=_0x545df3[_0x4096c7(0x2e5)](_0x329b02,_0x28d752[_0x4096c7(0x201)]);if(!_0x5db18e||!$(_0x5db18e,_0x4952e1)||_0x5db18e[_0x4096c7(0x1f9)]()['tables'][_0x4952e1]['views'][_0x1273f8['id']])return!0x1;let _0xb8a458=_0x13f132['get'](_0x3ff846),_0x491fb4=_0x13f132[_0x4096c7(0x4a8)](_0x5153d9),_0xb50c0d=_0x5db18e[_0x4096c7(0x1f9)](),_0x3ddb44=Fa(_0xb50c0d,_0x4952e1,_0x1273f8,_0x2d41fb),_0x5f4253=new z()[_0x4096c7(0x2aa)](_0xb50c0d,_0x3ddb44),_0x5a9ac4={'historyAction':_0x4096c7(0x26f),'unitId':_0x329b02,'op':_0x3ddb44,'viewType':_0x1273f8[_0x4096c7(0x33a)]},_0xe1a655={'historyAction':_0x4096c7(0x438),'unitId':_0x329b02,'op':_0x5f4253,'viewType':_0x1273f8['type']};return _0xb8a458[_0x4096c7(0x4c6)](Q['id'],_0x5a9ac4)?(_0x545df3['focusUnit'](_0x329b02),_0x491fb4[_0x4096c7(0x519)]({'unitID':_0x329b02,'undoMutations':[{'id':Q['id'],'params':_0xe1a655}],'redoMutations':[{'id':Q['id'],'params':_0x5a9ac4}]}),!0x0):!0x1;}},Ka={'id':_0x354fcb(0x46b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x1e0a5e,_0x59fa23){const _0x547ad4=_0x354fcb;if(!_0x59fa23)return!0x1;let _0x1e4c91=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3414e2),{unitId:_0x1362a0,tableId:_0x49b947,fieldId:_0x12b8f0}=_0x59fa23,_0xb8829c=_0x1e4c91[_0x547ad4(0x2e5)](_0x1362a0,_0x28d752[_0x547ad4(0x201)]);if(!_0xb8829c)return!0x1;let _0x41ad1f=_0xb8829c[_0x547ad4(0x1f9)](),_0x336a89=_0x41ad1f[_0x547ad4(0x2ba)][_0x49b947];if(!$(_0xb8829c,_0x49b947,{'fieldIds':[_0x12b8f0]})||_0x336a89[_0x547ad4(0x4cf)]===_0x12b8f0||_0x12b8f0===_0x3b44b5)return!0x1;let _0x24d767=_0x1e0a5e[_0x547ad4(0x4a8)](_0x3ff846),_0x2d7dde=_0x1e0a5e[_0x547ad4(0x4a8)](_0x5153d9),_0x325091=new W()[_0x547ad4(0x21f)](_0x41ad1f,_0x49b947,_0x12b8f0),_0x15a44e=new z()['invertOp'](_0x41ad1f,_0x325091),_0xd6ec12={'unitId':_0x1362a0,'op':_0x325091},_0x3e00ec={'unitId':_0x1362a0,'op':_0x15a44e};return _0x24d767[_0x547ad4(0x4c6)](Q['id'],_0xd6ec12)?(_0x1e4c91['focusUnit'](_0x1362a0),_0x2d7dde[_0x547ad4(0x519)]({'unitID':_0x1362a0,'undoMutations':[{'id':Q['id'],'params':_0x3e00ec}],'redoMutations':[{'id':Q['id'],'params':_0xd6ec12}]}),!0x0):!0x1;}},qa={'id':_0x354fcb(0x17b),'type':_0x3e23cf['COMMAND'],'handler':(_0x5c561b,_0x44291d)=>{const _0x2db902=_0x354fcb;if(!_0x44291d)return!0x1;let _0x4a27af=_0x5c561b[_0x2db902(0x4a8)](_0x3414e2),{unitId:_0xd435fa,tableId:_0xaa252e,recordId:_0xbce966}=_0x44291d,_0x570016=_0x4a27af['getUnit'](_0xd435fa,_0x28d752[_0x2db902(0x201)]);if(!_0x570016||!$(_0x570016,_0xaa252e,{'recordIds':[_0xbce966]}))return!0x1;let _0x11ca65=_0x5c561b['get'](_0x3ff846),_0x557f4e=_0x5c561b[_0x2db902(0x4a8)](_0x5153d9),_0x2198f3=_0x570016[_0x2db902(0x1f9)](),_0x7467b6=et(_0x2198f3['tables'][_0xaa252e],[_0xbce966]),_0x44caec=new W(),_0x24d89d=new z(),_0x478784=_0x44caec[_0x2db902(0x375)](_0x2198f3,_0xaa252e,_0xbce966),_0x3f2598=_0x24d89d[_0x2db902(0x2ad)](_0x2198f3,_0x478784),_0x2ec71a=_0x44caec['createDeleteRecordsUndoOp'](_0x2198f3,_0x3f2598,_0xaa252e,[_0xbce966]),_0x10910f={'unitId':_0xd435fa,'op':_0x478784,'hierarchyChanges':_0x7467b6,'source':_0x44291d[_0x2db902(0x4cd)]??'ui'},_0x3afdb6={..._0x10910f,'source':'redo'},_0x148a0f={'unitId':_0xd435fa,'op':_0x2ec71a,'hierarchyChanges':_0x7467b6[_0x2db902(0x29b)](_0x5b11ea=>({..._0x5b11ea,'oldParentRecordId':_0x5b11ea[_0x2db902(0x1b1)],'parentRecordId':_0x5b11ea[_0x2db902(0x30d)]})),'source':'undo'};return _0x11ca65[_0x2db902(0x4c6)](Q['id'],_0x10910f)?(_0x4a27af['focusUnit'](_0xd435fa),_0x557f4e['pushUndoRedo']({'unitID':_0xd435fa,'undoMutations':[{'id':Q['id'],'params':_0x148a0f}],'redoMutations':[{'id':Q['id'],'params':_0x3afdb6}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x306ae6,_0x2a1b87)=>{const _0x5d9c33=_0x354fcb;if(!_0x2a1b87)return!0x1;let _0x88afcb=_0x306ae6[_0x5d9c33(0x4a8)](_0x3414e2),{unitId:_0x29b358,tableId:_0x4fa18f}=_0x2a1b87,_0x5a50e2=_0x88afcb[_0x5d9c33(0x2e5)](_0x29b358,_0x28d752['UNIVER_BASE']);if(!_0x5a50e2||!$(_0x5a50e2,_0x4fa18f))return!0x1;let _0x54bd87=_0x306ae6[_0x5d9c33(0x4a8)](_0x3ff846),_0x28e214=_0x306ae6[_0x5d9c33(0x4a8)](_0x5153d9),_0x21cd1f=_0x5a50e2['getSnapshot'](),_0x6aa2b=He(_0x21cd1f,_0x4fa18f);if(_0x6aa2b[_0x5d9c33(0x458)]>0x0)return console[_0x5d9c33(0x206)]('[DeleteBaseTableCommand]:\x20table\x20\x22'+_0x4fa18f+_0x5d9c33(0x3e9)+_0x6aa2b[_0x5d9c33(0x29b)](_0x5ba2cb=>_0x5ba2cb[_0x5d9c33(0x1c3)]+'.'+_0x5ba2cb['fieldId'])[_0x5d9c33(0x4b5)](',\x20')+'.'),!0x1;let _0x1da5a1=new W()['deleteTable'](_0x21cd1f,_0x4fa18f),_0x7fa810=new z()['invertOp'](_0x21cd1f,_0x1da5a1),_0x5e1721={'unitId':_0x29b358,'op':_0x1da5a1},_0x5e76b7={'unitId':_0x29b358,'op':_0x7fa810};return _0x54bd87[_0x5d9c33(0x4c6)](Q['id'],_0x5e1721)?(_0x88afcb[_0x5d9c33(0x3f4)](_0x29b358),_0x28e214[_0x5d9c33(0x519)]({'unitID':_0x29b358,'undoMutations':[{'id':Q['id'],'params':_0x5e76b7}],'redoMutations':[{'id':Q['id'],'params':_0x5e1721}]}),!0x0):!0x1;}},Ya={'id':_0x354fcb(0x25b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x22a43b,_0x42dcc1)=>{const _0x957ca9=_0x354fcb;if(!_0x42dcc1)return!0x1;let _0xec3305=_0x22a43b[_0x957ca9(0x4a8)](_0x3414e2),{unitId:_0xae219,tableId:_0x5d8cba,viewId:_0x455666}=_0x42dcc1,_0x5bbc10=_0xec3305[_0x957ca9(0x2e5)](_0xae219,_0x28d752[_0x957ca9(0x201)]);if(!_0x5bbc10||!$(_0x5bbc10,_0x5d8cba,{'viewIds':[_0x455666]}))return!0x1;let _0x103fef=_0x22a43b[_0x957ca9(0x4a8)](_0x3ff846),_0x5c7216=_0x22a43b[_0x957ca9(0x4a8)](_0x5153d9),_0x171a9f=_0x5bbc10['getSnapshot'](),_0x4b2cc8=_0x171a9f['tables'][_0x5d8cba][_0x957ca9(0x38b)][_0x455666][_0x957ca9(0x33a)],_0x2f4ff4=new W()['deleteView'](_0x171a9f,_0x5d8cba,_0x455666),_0x2d0035=new z()[_0x957ca9(0x2aa)](_0x171a9f,_0x2f4ff4),_0x1ff356={'historyAction':_0x957ca9(0x438),'unitId':_0xae219,'op':_0x2f4ff4,'viewType':_0x4b2cc8},_0x5a05c3={'historyAction':_0x957ca9(0x26f),'unitId':_0xae219,'op':_0x2d0035,'viewType':_0x4b2cc8};return _0x103fef['syncExecuteCommand'](Q['id'],_0x1ff356)?(_0xec3305[_0x957ca9(0x3f4)](_0xae219),_0x5c7216[_0x957ca9(0x519)]({'unitID':_0xae219,'undoMutations':[{'id':Q['id'],'params':_0x5a05c3}],'redoMutations':[{'id':Q['id'],'params':_0x1ff356}]}),!0x0):!0x1;}},Xa={'id':_0x354fcb(0x1d1),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3dba74,_0x3c805e)=>{const _0x4695c0=_0x354fcb;if(!_0x3c805e)return!0x1;let _0x5b91b1=_0x3dba74['get'](_0x3414e2),{unitId:_0x23735a,tableId:_0x175c40,sourceFieldId:_0x1da5b1,field:_0x4156e6,index:_0xd8f6b5,viewIndexes:_0x523806}=_0x3c805e,_0x448a9c=_0x5b91b1[_0x4695c0(0x2e5)](_0x23735a,_0x28d752[_0x4695c0(0x201)]);if(!_0x448a9c||!$(_0x448a9c,_0x175c40,{'fieldIds':[_0x1da5b1]})||_0x1da5b1===_0x3b44b5||_0x448a9c[_0x4695c0(0x1f9)]()['tables'][_0x175c40][_0x4695c0(0x480)][_0x4156e6['id']]||_0xd8f6b5===0x0||!ha(_0x448a9c,_0x175c40,_0x4156e6))return!0x1;let _0x452cb1=_0x3dba74[_0x4695c0(0x4a8)](_0x3ff846),_0x3da0a9=_0x3dba74[_0x4695c0(0x4a8)](_0x5153d9),_0x3e36d7=_0x448a9c[_0x4695c0(0x1f9)](),_0x287418=new W()[_0x4695c0(0x199)](_0x3e36d7,_0x175c40,_0x1da5b1,{'field':_0x4156e6,'index':_0xd8f6b5,'viewIndexes':_0x523806}),_0x2025da=new z()[_0x4695c0(0x2aa)](_0x3e36d7,_0x287418),_0x207180={'unitId':_0x23735a,'op':_0x287418},_0x8af91b={'unitId':_0x23735a,'op':_0x2025da};return _0x452cb1[_0x4695c0(0x4c6)](Q['id'],_0x207180)?(_0x5b91b1[_0x4695c0(0x3f4)](_0x23735a),_0x3da0a9['pushUndoRedo']({'unitID':_0x23735a,'undoMutations':[{'id':Q['id'],'params':_0x8af91b}],'redoMutations':[{'id':Q['id'],'params':_0x207180}]}),!0x0):!0x1;}},Za={'id':_0x354fcb(0x2fa),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xaf1a27,_0x2f57cd)=>{const _0x30168b=_0x354fcb;if(!_0x2f57cd)return!0x1;let _0x26898c=_0xaf1a27[_0x30168b(0x4a8)](_0x3414e2),{unitId:_0x3cea23,tableId:_0x28ce4f,sourceRecordId:_0x263f92,record:_0x415531}=_0x2f57cd,_0x29f3a1=_0x26898c[_0x30168b(0x2e5)](_0x3cea23,_0x28d752[_0x30168b(0x201)]);if(!_0x29f3a1||!$(_0x29f3a1,_0x28ce4f,{'recordIds':[_0x263f92]})||!_a(_0x29f3a1,_0x28ce4f,_0x415531))return!0x1;let _0x263ae6=_0xaf1a27[_0x30168b(0x4a8)](_0x3ff846),_0x4bb6fe=_0xaf1a27[_0x30168b(0x4a8)](_0x5153d9),_0x2a9883=_0x29f3a1[_0x30168b(0x1f9)](),_0x2aa80f=va(_0x415531),_0x32d13e=Qe(_0x2a9883['tables'][_0x28ce4f],[_0x2aa80f]),_0x51a12f=new W()['duplicateRecord'](_0x2a9883,_0x28ce4f,_0x263f92,_0x2aa80f),_0x365954=new z()['invertOp'](_0x2a9883,_0x51a12f),_0x405aa9={'unitId':_0x3cea23,'op':_0x51a12f,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e:void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x2f57cd[_0x30168b(0x4cd)]??'ui':void 0x0},_0x18f5e0={..._0x405aa9,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x29f):void 0x0},_0x46bcb7={'unitId':_0x3cea23,'op':_0x365954,'hierarchyChanges':_0x32d13e[_0x30168b(0x458)]?_0x32d13e['map'](_0xa4d85c=>({..._0xa4d85c,'oldParentRecordId':_0xa4d85c['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x32d13e[_0x30168b(0x458)]?_0x30168b(0x37e):void 0x0};return _0x263ae6[_0x30168b(0x4c6)](Q['id'],_0x405aa9)?(_0x26898c[_0x30168b(0x3f4)](_0x3cea23),_0x4bb6fe[_0x30168b(0x519)]({'unitID':_0x3cea23,'undoMutations':[{'id':Q['id'],'params':_0x46bcb7}],'redoMutations':[{'id':Q['id'],'params':_0x18f5e0}]}),!0x0):!0x1;}},Qa={'id':_0x354fcb(0x45d),'type':_0x3e23cf['COMMAND'],'handler'(_0x748279,_0xee54d2){const _0x52c269=_0x354fcb;if(!_0xee54d2)return!0x1;let _0x3a994b=_0x748279[_0x52c269(0x4a8)](_0x3414e2),{unitId:_0x9e353e,tableId:_0x492cbb,viewId:_0x43f8fb,ensureEndDateField:_0x26b8e9}=_0xee54d2,_0x427fd0=_0x3a994b[_0x52c269(0x2e5)](_0x9e353e,_0x28d752[_0x52c269(0x201)]);if(!_0x427fd0||!$(_0x427fd0,_0x492cbb,{'viewIds':[_0x43f8fb]}))return!0x1;let _0x25755f=_0x427fd0[_0x52c269(0x1f9)](),_0x3da82d=_0x25755f[_0x52c269(0x2ba)][_0x492cbb],_0x362842=_0x3da82d==null?void 0x0:_0x3da82d[_0x52c269(0x38b)][_0x43f8fb];if(!_0x3da82d||!_0x362842||_0x362842[_0x52c269(0x33a)]!=='calendar'&&_0x362842[_0x52c269(0x33a)]!==_0x52c269(0x3b0))return!0x1;let _0x501af2=Ia(_0x3da82d,_0x362842,_0x26b8e9===!0x0);if(!_0x501af2['changed'])return!0x1;let _0x825fc=_0x748279['get'](_0x3ff846),_0x531050=_0x748279['get'](_0x5153d9),_0x1e9b23=new W(),_0x2017d7=[..._0x501af2[_0x52c269(0x480)][_0x52c269(0x29b)](_0x1c8ff9=>_0x1e9b23[_0x52c269(0x2c0)](_0x25755f,_0xee54d2[_0x52c269(0x1c3)],{'field':_0x1c8ff9})),$a([...eo(_0xee54d2[_0x52c269(0x1c3)],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x342)],_0x362842[_0x52c269(0x342)],_0x501af2[_0x52c269(0x342)])];_0x501af2['fieldOrder']&&_0x2017d7['push']($a([...eo(_0xee54d2['tableId'],_0xee54d2[_0x52c269(0x366)]),_0x52c269(0x1e1)],_0x362842[_0x52c269(0x1e1)],_0x501af2[_0x52c269(0x1e1)]));let _0x3dc2da=R(_0x2017d7),_0x33e338=new z()[_0x52c269(0x2aa)](_0x25755f,_0x3dc2da),_0x50b8d3={'unitId':_0x9e353e,'op':_0x3dc2da},_0x5d1368={'unitId':_0x9e353e,'op':_0x33e338};return _0x825fc['syncExecuteCommand'](Q['id'],_0x50b8d3)?(_0x3a994b[_0x52c269(0x3f4)](_0x9e353e),_0x531050[_0x52c269(0x519)]({'unitID':_0x9e353e,'undoMutations':[{'id':Q['id'],'params':_0x5d1368}],'redoMutations':[{'id':Q['id'],'params':_0x50b8d3}]}),!0x0):!0x1;}};function $a(_0x52a463,_0x3c9a97,_0x4b4415){const _0x1ac691=_0x354fcb;return _0x3c9a97===void 0x0?_0x370803[_0x1ac691(0x207)](_0x52a463,_0x4b4415):_0x370803[_0x1ac691(0x333)](_0x52a463,_0x3c9a97,_0x4b4415);}function eo(_0x5b7ca4,_0x545f00){const _0x53287c=_0x354fcb;return[_0x53287c(0x2ba),_0x5b7ca4,'views',_0x545f00];}const to={'id':_0x354fcb(0x4b3),'type':_0x3e23cf['COMMAND'],'handler':(_0x4c5305,_0x2f3825)=>{const _0x1c6625=_0x354fcb;if(!_0x2f3825)return!0x1;let _0x223060=_0x4c5305[_0x1c6625(0x4a8)](_0x3414e2),{unitId:_0x4ea858,tableId:_0x5a1caf,fieldId:_0x1a3dce,target:_0x4254fa}=_0x2f3825,_0x170056=_0x223060['getUnit'](_0x4ea858,_0x28d752[_0x1c6625(0x201)]),_0x43eec4=_0x4254fa[_0x1c6625(0x381)]??_0x4254fa[_0x1c6625(0x27b)];if(!_0x170056||!!_0x4254fa[_0x1c6625(0x381)]==!!_0x4254fa[_0x1c6625(0x27b)]||!_0x43eec4||_0x43eec4===_0x1a3dce||_0x1a3dce===_0x3b44b5||_0x4254fa[_0x1c6625(0x381)]===_0x3b44b5||!$(_0x170056,_0x5a1caf,{'fieldIds':[_0x1a3dce,_0x43eec4]}))return!0x1;let _0x128da3=_0x4c5305[_0x1c6625(0x4a8)](_0x3ff846),_0x3c9330=_0x4c5305[_0x1c6625(0x4a8)](_0x5153d9),_0x5e8189=_0x170056[_0x1c6625(0x1f9)](),_0x119fca=new W()[_0x1c6625(0x399)](_0x5e8189,_0x5a1caf,_0x1a3dce,_0x4254fa),_0x3b2e36=new z()['invertOp'](_0x5e8189,_0x119fca),_0x30b13e={'unitId':_0x4ea858,'op':_0x119fca},_0x29d436={'unitId':_0x4ea858,'op':_0x3b2e36};return _0x128da3[_0x1c6625(0x4c6)](Q['id'],_0x30b13e)?(_0x223060[_0x1c6625(0x3f4)](_0x4ea858),_0x3c9330[_0x1c6625(0x519)]({'unitID':_0x4ea858,'undoMutations':[{'id':Q['id'],'params':_0x29d436}],'redoMutations':[{'id':Q['id'],'params':_0x30b13e}]}),!0x0):!0x1;}},no={'id':_0x354fcb(0x368),'type':_0x3e23cf['COMMAND'],'handler':(_0x5a635f,_0x38604c)=>{const _0x10554c=_0x354fcb;var _0x31b1f3;if(!_0x38604c)return!0x1;let {unitId:_0xb22739,tableId:_0x4ecb87,recordId:_0x4fc00c,parentRecordId:_0x5770be,orderKey:_0x41ec6b}=_0x38604c,_0x2db3b1=_0x5a635f['get'](_0x3414e2),_0x5a53d1=_0x2db3b1[_0x10554c(0x2e5)](_0xb22739,_0x28d752[_0x10554c(0x201)]);if(!_0x5a53d1||!$(_0x5a53d1,_0x4ecb87,{'recordIds':[_0x4fc00c,..._0x5770be?[_0x5770be]:[]]}))throw new P('missingRecord');let _0x425442=_0x5a53d1[_0x10554c(0x1f9)](),_0x5632aa=_0x425442[_0x10554c(0x2ba)][_0x4ecb87],_0x2cbfb8=qe(_0x5632aa),_0x4175d1=_0x2cbfb8??_0x38604c[_0x10554c(0x46e)]??Je(_0x5632aa);if(_0x2cbfb8&&_0x38604c['fieldId']&&_0x38604c[_0x10554c(0x46e)]!==_0x2cbfb8||_0x5632aa[_0x10554c(0x480)][_0x4175d1]&&!F(_0x5632aa,_0x4175d1))throw new P(_0x10554c(0x4a7));let _0x4f4e3f=tt(_0x5632aa,_0x4175d1),_0x3bf6c7=it(_0x4f4e3f,_0x4fc00c,_0x5770be);if(!_0x3bf6c7[_0x10554c(0x35c)])throw new P(_0x3bf6c7['reason']===_0x3f9b5e['SelfParent']?'selfParent':_0x3bf6c7[_0x10554c(0x2d9)]===_0x3f9b5e[_0x10554c(0x270)]?_0x10554c(0x363):_0x10554c(0x228));let _0x1da767=_0x4f4e3f[_0x10554c(0x36e)]['get'](_0x4fc00c)??null,_0x375be8=_0x5632aa[_0x10554c(0x45a)][_0x4fc00c][_0x10554c(0x3ef)];if(_0x1da767===_0x5770be&&(_0x41ec6b===void 0x0||_0x41ec6b===_0x375be8))return!0x0;let _0x3f7923=_0x1da767!==_0x5770be,_0x34c0da=_0x41ec6b!==void 0x0&&_0x41ec6b!==_0x375be8,_0x1bd6f6=new W(),_0x2e4013=[],_0x2520eb=_0x5632aa[_0x10554c(0x480)][_0x4175d1],_0x2cbf12=_0x3f7923&&(!_0x2520eb||((_0x31b1f3=N(_0x2520eb))==null?void 0x0:_0x31b1f3[_0x10554c(0x274)])!==_0x170c14[_0x10554c(0x3a0)])?_0x2520eb?_0x1bd6f6[_0x10554c(0x409)](_0x425442,_0x4ecb87,_0x4175d1,{'config':{..._0x2520eb[_0x10554c(0x342)],'relationRole':_0x170c14[_0x10554c(0x3a0)]}}):_0x5a635f[_0x10554c(0x4a8)](Kr)[_0x10554c(0x20a)](_0x5a53d1,_0x4ecb87,Ye(_0x5632aa,_0x4175d1,_0x38604c[_0x10554c(0x398)]),_0x5632aa[_0x10554c(0x1e1)][_0x10554c(0x458)]):null;_0x2cbf12&&_0x2e4013['push'](_0x2cbf12),_0x3f7923&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6['updateCell'](_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1,_0x5770be?Re([_0x5770be]):'')),_0x34c0da&&_0x2e4013[_0x10554c(0x1f3)](_0x1bd6f6[_0x10554c(0x229)](_0x425442,_0x4ecb87,_0x4fc00c,_0x41ec6b));let _0x207867=R(_0x2e4013),_0x3fd9b8={'tableId':_0x4ecb87,'fieldId':_0x4175d1,'recordId':_0x4fc00c,'oldParentRecordId':_0x1da767,'parentRecordId':_0x5770be},_0x41efd7={'unitId':_0xb22739,'op':_0x207867,'trigger':no['id'],'hierarchyChanges':[_0x3fd9b8],'source':_0x38604c[_0x10554c(0x4cd)]??'ui'},_0x5ad8ef={..._0x41efd7,'source':_0x10554c(0x29f)};if(!_0x5a635f['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x41efd7))return!0x1;let _0x4e04ae=_0x5a53d1[_0x10554c(0x1f9)](),_0x1d9180=[];_0x3f7923&&_0x1d9180[_0x10554c(0x1f3)](ro(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c,_0x4175d1)),_0x34c0da&&_0x1d9180[_0x10554c(0x1f3)](io(_0x4e04ae,_0x425442,_0x4ecb87,_0x4fc00c)),_0x2cbf12&&_0x1d9180[_0x10554c(0x1f3)](new z()[_0x10554c(0x2aa)](_0x425442,_0x2cbf12));let _0x5c6776={'unitId':_0xb22739,'op':R(_0x1d9180),'trigger':no['id'],'hierarchyChanges':[{..._0x3fd9b8,'oldParentRecordId':_0x5770be,'parentRecordId':_0x1da767}],'source':'undo'};return _0x2db3b1[_0x10554c(0x3f4)](_0xb22739),_0x5a635f['get'](_0x5153d9)['pushUndoRedo']({'unitID':_0xb22739,'undoMutations':[{'id':Q['id'],'params':_0x5c6776}],'redoMutations':[{'id':Q['id'],'params':_0x5ad8ef}]}),!0x0;}};function ro(_0x40b907,_0x3117b2,_0x1ceb10,_0x111f5e,_0x59f36f){const _0x369dd2=_0x354fcb;var _0x12ec30,_0xefcbcd,_0x5625ba,_0x16ada7,_0x525e4d,_0x4a01ee,_0x33e579,_0x1baade;let _0x5cf63f=_0x40b907[_0x369dd2(0x2ba)][_0x1ceb10],_0x4a8a0c=_0x3117b2[_0x369dd2(0x2ba)][_0x1ceb10],_0x34ebaf=(_0x12ec30=_0x5cf63f[_0x369dd2(0x290)])==null?void 0x0:_0x12ec30[_0x111f5e],_0x42ab19=(_0xefcbcd=_0x5cf63f[_0x369dd2(0x288)])==null?void 0x0:_0xefcbcd[_0x59f36f],_0x3fa8dd=(_0x5625ba=_0x4a8a0c[_0x369dd2(0x290)])==null?void 0x0:_0x5625ba[_0x111f5e],_0x6e0e65=(_0x16ada7=_0x4a8a0c[_0x369dd2(0x288)])==null?void 0x0:_0x16ada7[_0x59f36f],_0x31a58a=_0x34ebaf==null||_0x42ab19==null||(_0x525e4d=_0x5cf63f[_0x369dd2(0x1cf)])==null||(_0x525e4d=_0x525e4d[_0x34ebaf])==null?void 0x0:_0x525e4d[_0x42ab19],_0x548242=_0x3fa8dd==null||_0x6e0e65==null||(_0x4a01ee=_0x4a8a0c['cellData'])==null||(_0x4a01ee=_0x4a01ee[_0x3fa8dd])==null?void 0x0:_0x4a01ee[_0x6e0e65],_0x402def=(_0x33e579=_0x5cf63f['records'][_0x111f5e])==null?void 0x0:_0x33e579[_0x369dd2(0x1da)][_0x59f36f],_0xd9d79=(_0x1baade=_0x4a8a0c['records'][_0x111f5e])==null?void 0x0:_0x1baade[_0x369dd2(0x1da)][_0x59f36f],_0x521aa5=[],_0x441ab6=ao(_0x34ebaf==null||_0x42ab19==null?null:U['cellData'](_0x1ceb10,_0x34ebaf,_0x42ab19),_0x31a58a,_0x548242);_0x441ab6&&_0x521aa5[_0x369dd2(0x1f3)](_0x441ab6);let _0x4add43=ao(U[_0x369dd2(0x4eb)](_0x1ceb10,_0x111f5e,_0x59f36f),_0x402def,_0xd9d79);return _0x4add43&&_0x521aa5[_0x369dd2(0x1f3)](_0x4add43),R(_0x521aa5);}function io(_0x5fe6f,_0x17fc84,_0x3c8c7a,_0x2d4069){const _0x3e8716=_0x354fcb;var _0x3de692,_0x426c55;let _0x55e8c2=_0x5fe6f[_0x3e8716(0x2ba)][_0x3c8c7a],_0x3377af=_0x17fc84[_0x3e8716(0x2ba)][_0x3c8c7a];return R([ao([...U[_0x3e8716(0x52b)](_0x3c8c7a,_0x2d4069),_0x3e8716(0x3ef)],(_0x3de692=_0x55e8c2[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x3de692[_0x3e8716(0x3ef)],(_0x426c55=_0x3377af[_0x3e8716(0x45a)][_0x2d4069])==null?void 0x0:_0x426c55['orderKey']),ao([...U[_0x3e8716(0x513)](_0x3c8c7a),_0x3e8716(0x22d)],_0x55e8c2[_0x3e8716(0x22d)],_0x3377af['recordOrder'])][_0x3e8716(0x397)](_0x5ef3c2=>!!_0x5ef3c2));}function ao(_0x3a28db,_0x3ad04c,_0x14bc0c){const _0x301064=_0x354fcb;if(!_0x3a28db||_0x3ad04c===void 0x0&&_0x14bc0c===void 0x0)return null;let _0x3abca5=_0x426ad9[_0x301064(0x448)]();return _0x14bc0c===void 0x0?_0x3abca5[_0x301064(0x246)](_0x3a28db,_0x3ad04c):_0x3ad04c===void 0x0?_0x3abca5[_0x301064(0x207)](_0x3a28db,_0x14bc0c):_0x3abca5['replaceOp'](_0x3a28db,_0x3ad04c,_0x14bc0c);}const oo={'id':_0x354fcb(0x48e),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xdf8b53,_0x3a6625)=>{const _0x5a063d=_0x354fcb;if(!_0x3a6625)return!0x1;let _0x5db2d1=_0xdf8b53[_0x5a063d(0x4a8)](_0x3414e2),{unitId:_0x3d9f7e,tableId:_0xb0766,viewId:_0x4571d0,target:_0x26714d}=_0x3a6625,_0x5a9183=_0x5db2d1[_0x5a063d(0x2e5)](_0x3d9f7e,_0x28d752[_0x5a063d(0x201)]),_0x28cd43=_0x26714d[_0x5a063d(0x2f6)]??_0x26714d[_0x5a063d(0x391)];if(!_0x5a9183||!_0x28cd43||_0x28cd43===_0x4571d0||!$(_0x5a9183,_0xb0766,{'viewIds':[_0x4571d0,_0x28cd43]}))return!0x1;let _0xaa1c99=_0xdf8b53[_0x5a063d(0x4a8)](_0x3ff846),_0x50f2e4=_0xdf8b53[_0x5a063d(0x4a8)](_0x5153d9),_0x56c390=_0x5a9183[_0x5a063d(0x1f9)](),_0x588aa7=new W()['moveView'](_0x56c390,_0xb0766,_0x4571d0,_0x26714d),_0x5c4e62=new z()['invertOp'](_0x56c390,_0x588aa7),_0x554b3b={'unitId':_0x3d9f7e,'op':_0x588aa7},_0x29025f={'unitId':_0x3d9f7e,'op':_0x5c4e62};return _0xaa1c99[_0x5a063d(0x4c6)](Q['id'],_0x554b3b)?(_0x5db2d1[_0x5a063d(0x3f4)](_0x3d9f7e),_0x50f2e4[_0x5a063d(0x519)]({'unitID':_0x3d9f7e,'undoMutations':[{'id':Q['id'],'params':_0x29025f}],'redoMutations':[{'id':Q['id'],'params':_0x554b3b}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x37fb73,_0x53b558)=>{const _0x25f328=_0x354fcb;if(!_0x53b558)return!0x1;let _0x59ead8=_0x37fb73['get'](_0x3414e2),{unitId:_0x19a7e5,tableId:_0xf87020,name:_0x284e99}=_0x53b558,_0x18d2e6=_0x59ead8[_0x25f328(0x2e5)](_0x19a7e5,_0x28d752[_0x25f328(0x201)]);if(!_0x18d2e6||!$(_0x18d2e6,_0xf87020)||!Oa(_0x18d2e6[_0x25f328(0x1f9)](),_0x284e99,_0xf87020)[_0x25f328(0x35c)])return!0x1;let _0x12a1d5=_0x37fb73[_0x25f328(0x4a8)](_0x3ff846),_0x14e801=_0x37fb73[_0x25f328(0x4a8)](_0x5153d9),_0x5df1e2=_0x18d2e6[_0x25f328(0x1f9)](),_0x310e93=new W()['renameTable'](_0x5df1e2,_0xf87020,_0x284e99),_0x27ca1b=new z()[_0x25f328(0x2aa)](_0x5df1e2,_0x310e93),_0x53626a={'unitId':_0x19a7e5,'op':_0x310e93},_0x1a5afd={'unitId':_0x19a7e5,'op':_0x27ca1b};return _0x12a1d5[_0x25f328(0x4c6)](Q['id'],_0x53626a)?(_0x59ead8[_0x25f328(0x3f4)](_0x19a7e5),_0x14e801[_0x25f328(0x519)]({'unitID':_0x19a7e5,'undoMutations':[{'id':Q['id'],'params':_0x1a5afd}],'redoMutations':[{'id':Q['id'],'params':_0x53626a}]}),!0x0):!0x1;}},co={'id':_0x354fcb(0x433),'type':_0x3e23cf['COMMAND'],'handler':(_0x54e0ad,_0x50e8d2)=>{const _0x2124e2=_0x354fcb;if(!_0x50e8d2)return!0x1;let _0x30e1ec=_0x54e0ad[_0x2124e2(0x4a8)](_0x3414e2),{unitId:_0xf46a8e,tableId:_0x99b171,viewId:_0x24a225,name:_0x134844}=_0x50e8d2,_0x5a905f=_0x30e1ec[_0x2124e2(0x2e5)](_0xf46a8e,_0x28d752[_0x2124e2(0x201)]);if(!_0x5a905f||!$(_0x5a905f,_0x99b171,{'viewIds':[_0x24a225]}))return!0x1;let _0x17631e=_0x54e0ad[_0x2124e2(0x4a8)](_0x3ff846),_0x24b004=_0x54e0ad[_0x2124e2(0x4a8)](_0x5153d9),_0x258a72=_0x5a905f['getSnapshot'](),_0x364395=new W()[_0x2124e2(0x370)](_0x258a72,_0x99b171,_0x24a225,_0x134844),_0x3b619d=new z()['invertOp'](_0x258a72,_0x364395),_0x11f6a9={'unitId':_0xf46a8e,'op':_0x364395},_0x2b4bff={'unitId':_0xf46a8e,'op':_0x3b619d};return _0x17631e[_0x2124e2(0x4c6)](Q['id'],_0x11f6a9)?(_0x30e1ec[_0x2124e2(0x3f4)](_0xf46a8e),_0x24b004[_0x2124e2(0x519)]({'unitID':_0xf46a8e,'undoMutations':[{'id':Q['id'],'params':_0x2b4bff}],'redoMutations':[{'id':Q['id'],'params':_0x11f6a9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2f56cc,_0x67d97d)=>{const _0x2960f0=_0x354fcb;if(!_0x67d97d)return!0x1;let _0x7b7705=_0x2f56cc[_0x2960f0(0x4a8)](_0x3414e2),{unitId:_0x47e351,tableId:_0xf7f4a1,viewId:_0x520360,fieldId:_0x8f2b65}=_0x67d97d,_0x65c667=_0x7b7705[_0x2960f0(0x2e5)](_0x47e351,_0x28d752[_0x2960f0(0x201)]);if(!_0x65c667||!$(_0x65c667,_0xf7f4a1,{'viewIds':[_0x520360],'fieldIds':[_0x8f2b65]}))return!0x1;let _0x2212ac=_0x2f56cc['get'](_0x3ff846),_0x17d3ea=_0x2f56cc[_0x2960f0(0x4a8)](_0x5153d9),_0x6cde4b=_0x65c667[_0x2960f0(0x1f9)](),_0x4dc9b5=new W()['updateViewConfig'](_0x6cde4b,_0xf7f4a1,_0x520360,{'groupFieldId':_0x8f2b65}),_0x58fe50=new z()[_0x2960f0(0x2aa)](_0x6cde4b,_0x4dc9b5),_0x1a984d={'unitId':_0x47e351,'op':_0x4dc9b5},_0x1d6bab={'unitId':_0x47e351,'op':_0x58fe50};return _0x2212ac[_0x2960f0(0x4c6)](Q['id'],_0x1a984d)?(_0x7b7705[_0x2960f0(0x3f4)](_0x47e351),_0x17d3ea[_0x2960f0(0x519)]({'unitID':_0x47e351,'undoMutations':[{'id':Q['id'],'params':_0x1d6bab}],'redoMutations':[{'id':Q['id'],'params':_0x1a984d}]}),!0x0):!0x1;}},uo={'id':'base.command.set-base-name','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x58b85e,_0x2a359d)=>{const _0x5baae1=_0x354fcb;if(!_0x2a359d)return!0x1;let _0xf889c9=_0x58b85e['get'](_0x3414e2),_0x373ca9=_0xf889c9[_0x5baae1(0x2e5)](_0x2a359d[_0x5baae1(0x278)],_0x28d752[_0x5baae1(0x201)]);if(!_0x373ca9)return!0x1;let _0x390c72=_0x373ca9[_0x5baae1(0x1f9)]()[_0x5baae1(0x1e0)];if(_0x390c72===_0x2a359d[_0x5baae1(0x1e0)])return!0x0;let _0x313438=new W(),_0x3bfe15=new z(),_0x1f73cb=[],_0x104a27=[],_0x3c4dfe=[_0x373ca9,..._0xf889c9[_0x5baae1(0x3c4)](_0x28d752[_0x5baae1(0x201)])[_0x5baae1(0x397)](_0x665e9a=>_0x665e9a[_0x5baae1(0x422)]()!==_0x2a359d[_0x5baae1(0x278)])];for(let _0x22ec3f of _0x3c4dfe){let _0x562c80=_0x22ec3f['getSnapshot'](),_0x574b4d=_0x22ec3f===_0x373ca9?_0x313438['setBaseName'](_0x562c80,_0x2a359d[_0x5baae1(0x1e0)]):_0x313438[_0x5baae1(0x1ed)](_0x562c80,_0x390c72,_0x2a359d[_0x5baae1(0x1e0)]);_0x574b4d&&(_0x1f73cb[_0x5baae1(0x1f3)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x574b4d,'trigger':uo['id']}}),_0x104a27[_0x5baae1(0x340)]({'id':Q['id'],'params':{'unitId':_0x22ec3f[_0x5baae1(0x422)](),'op':_0x3bfe15[_0x5baae1(0x2aa)](_0x562c80,_0x574b4d),'trigger':uo['id']}}));}let _0x23028f=_0x58b85e[_0x5baae1(0x4a8)](_0x3ff846),_0x4f6be9=_0x58b85e[_0x5baae1(0x4a8)](_0x5153d9),_0xdf69c1=_0x4f6be9['__tempBatchingUndoRedo'](_0x2a359d[_0x5baae1(0x278)]);try{return _0x47a83f(_0x1f73cb,_0x23028f)[_0x5baae1(0x406)]?(_0xf889c9[_0x5baae1(0x3f4)](_0x2a359d[_0x5baae1(0x278)]),_0x4f6be9[_0x5baae1(0x519)]({'unitID':_0x2a359d[_0x5baae1(0x278)],'undoMutations':_0x104a27,'redoMutations':_0x1f73cb}),!0x0):!0x1;}finally{_0xdf69c1[_0x5baae1(0x3d6)]();}}},fo={'type':_0x3e23cf['COMMAND'],'id':_0x354fcb(0x3eb),async 'handler'(_0x5b4e2b,_0x498664){const _0xfcb841=_0x354fcb;if(!_0x498664||!Tr[_0xfcb841(0x231)](_0x498664[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664[_0xfcb841(0x278)]&&_0x498664[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)]||_0x498664[_0xfcb841(0x3cd)]&&(!['all','owner','members']['includes'](_0x498664[_0xfcb841(0x3cd)][_0xfcb841(0x1db)])||_0x498664[_0xfcb841(0x3cd)]['strategies'][_0xfcb841(0x257)](_0x2900a9=>!Tr[_0xfcb841(0x231)](_0x2900a9[_0xfcb841(0x18a)])||_0x498664[_0xfcb841(0x225)]!==_0x498664['unitId']&&_0x2900a9[_0xfcb841(0x18a)]!==_0x391870[_0xfcb841(0x463)])))return!0x1;let _0x3c5766=Pr(_0x498664[_0xfcb841(0x278)],_0x498664[_0xfcb841(0x225)],_0x498664[_0xfcb841(0x18a)]),_0x52856d={'unitId':_0x498664[_0xfcb841(0x278)],'objectId':_0x498664[_0xfcb841(0x225)],'objectType':_0x3c5766[_0xfcb841(0x33a)]},_0x20668a=_0x5b4e2b[_0xfcb841(0x4a8)](_0x1e71b2);return _0x498664[_0xfcb841(0x261)]?await _0x20668a[_0xfcb841(0x261)](_0x52856d):_0x498664[_0xfcb841(0x3cd)]?await _0x20668a[_0xfcb841(0x304)](_0x52856d,_0x498664[_0xfcb841(0x3cd)]):await _0x20668a[_0xfcb841(0x3a9)](_0x52856d,_0x3c5766,_0x498664[_0xfcb841(0x416)]),!0x0;}},po={'type':_0x3e23cf['COMMAND'],'id':'base.command.set-permissions',async 'handler'(_0x100bd8,_0x277623){const _0x22fa11=_0x354fcb;if(!(_0x277623!=null&&_0x277623[_0x22fa11(0x278)])||!Array['isArray'](_0x277623[_0x22fa11(0x3c8)])||!_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x458)]||_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x257)](_0x30d58d=>!(_0x30d58d!=null&&_0x30d58d[_0x22fa11(0x225)])||_0x30d58d[_0x22fa11(0x225)]===_0x277623[_0x22fa11(0x278)]||_0x30d58d['policy']!==null&&(!_0x30d58d[_0x22fa11(0x3cd)]||![_0x22fa11(0x41e),'owner',_0x22fa11(0x437)][_0x22fa11(0x231)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x1db)])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)]['collaborators'])||!Array[_0x22fa11(0x354)](_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)])||_0x30d58d[_0x22fa11(0x3cd)][_0x22fa11(0x2d1)][_0x22fa11(0x257)](_0x6a90c8=>_0x6a90c8[_0x22fa11(0x18a)]!==_0x391870['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x100bd8[_0x22fa11(0x4a8)](_0x1e71b2)[_0x22fa11(0x506)](_0x277623[_0x22fa11(0x3c8)][_0x22fa11(0x29b)](_0x1dbc02=>{const _0xc9760e=_0x22fa11;let _0x4b7c47=Pr(_0x277623[_0xc9760e(0x278)],_0x1dbc02['objectId'],_0x391870['Edit']);return{'unitId':_0x277623[_0xc9760e(0x278)],'objectId':_0x1dbc02[_0xc9760e(0x225)],'objectType':_0x4b7c47[_0xc9760e(0x33a)],'policy':_0x1dbc02[_0xc9760e(0x3cd)]};}));}};function mo(_0x4a7605,_0x169fa9){const _0x492735=_0x354fcb;let _0x1ae5d4=L(_0x30f9db[_0x492735(0x355)](_0x4a7605)),_0x2764ed=new Map();return _0x169fa9[_0x492735(0x461)](_0x2624d7=>{const _0x3b92fe=_0x492735;var _0x21b593,_0x4df58c;let _0x4f57a0='recordId'in _0x2624d7?_0x2624d7[_0x3b92fe(0x4bb)]:(_0x21b593=_0x1ae5d4[_0x3b92fe(0x474)])==null?void 0x0:_0x21b593[_0x2624d7[_0x3b92fe(0x21b)]],_0xb1302d=_0x3b92fe(0x46e)in _0x2624d7?_0x2624d7[_0x3b92fe(0x46e)]:(_0x4df58c=_0x1ae5d4[_0x3b92fe(0x242)])==null?void 0x0:_0x4df58c[_0x2624d7[_0x3b92fe(0x1ea)]],_0x4322f6=_0xb1302d?_0x1ae5d4[_0x3b92fe(0x480)][_0xb1302d]:void 0x0;if(!_0x4f57a0||!_0xb1302d||!_0x4322f6||!_0x1ae5d4[_0x3b92fe(0x45a)][_0x4f57a0])return;let _0x18c62a=xt(_0x2624d7[_0x3b92fe(0x416)],_0x4322f6),_0x13c7b7=wt(_0x2624d7[_0x3b92fe(0x416)],_0x18c62a,_0x4322f6,_0x1ae5d4,_0x4f57a0),_0x98fb93=_0x2764ed['get'](_0x4f57a0)??{};_0x98fb93[_0xb1302d]=_0x13c7b7,_0x2764ed['set'](_0x4f57a0,_0x98fb93);}),[..._0x2764ed][_0x492735(0x29b)](([_0x21018c,_0x14ffe7])=>({'recordId':_0x21018c,'values':_0x14ffe7}));}const ho={'id':_0x354fcb(0x527),'type':_0x3e23cf['COMMAND'],'handler'(_0x48e90c,_0x248de2){const _0x34225d=_0x354fcb;if(!_0x248de2)return!0x1;let _0x3a8cfb=_0x48e90c['get'](_0x3414e2),{unitId:_0x1d7a5b,tableId:_0x3695b9,patches:_0x1dd998}=_0x248de2,_0xdca6b1=_0x3a8cfb[_0x34225d(0x2e5)](_0x1d7a5b,_0x28d752['UNIVER_BASE']);if(!_0xdca6b1||!$(_0xdca6b1,_0x3695b9))return!0x1;let _0x522d17=_0x48e90c[_0x34225d(0x4a8)](_0x3ff846),_0x4af185=_0x48e90c[_0x34225d(0x4a8)](_0x5153d9),_0x150835=_0xdca6b1[_0x34225d(0x1f9)](),_0x4ae44d=L(_0x150835[_0x34225d(0x2ba)][_0x3695b9]),_0x361e23=_0x1dd998[_0x34225d(0x29b)](_0x4938d9=>{const _0x6f31fc=_0x34225d;var _0x45bb6c;return _0x6f31fc(0x4bb)in _0x4938d9?_0x4938d9[_0x6f31fc(0x4bb)]:(_0x45bb6c=_0x4ae44d[_0x6f31fc(0x474)])==null?void 0x0:_0x45bb6c[_0x4938d9[_0x6f31fc(0x21b)]];})[_0x34225d(0x397)](_0x3311f7=>_0x3311f7!=null),_0x2e8c15=_0x1dd998['map'](_0x5baef4=>{const _0x47e61c=_0x34225d;var _0x16b0f9;return _0x47e61c(0x46e)in _0x5baef4?_0x5baef4['fieldId']:(_0x16b0f9=_0x4ae44d[_0x47e61c(0x242)])==null?void 0x0:_0x16b0f9[_0x5baef4[_0x47e61c(0x1ea)]];})['filter'](_0x216f68=>_0x216f68!=null);if(_0x361e23[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||_0x2e8c15[_0x34225d(0x458)]!==_0x1dd998[_0x34225d(0x458)]||!$(_0xdca6b1,_0x3695b9,{'recordIds':_0x361e23,'fieldIds':_0x2e8c15})||_0x1dd998[_0x34225d(0x257)]((_0x1ee261,_0x4d635d)=>!ga(_0xdca6b1,_0x3695b9,_0x2e8c15[_0x4d635d],_0x1ee261['value'])))return!0x1;let _0x355d32=Ze(_0x4ae44d,mo(_0x4ae44d,_0x1dd998)),_0x55bf89=_0x1dd998[_0x34225d(0x2a2)](_0x16c139=>{const _0x4f56ca=_0x34225d;var _0x470a08,_0x242408;if(_0x4f56ca(0x21b)in _0x16c139)return[_0x16c139];let _0x246be2=(_0x470a08=_0x4ae44d[_0x4f56ca(0x290)])==null?void 0x0:_0x470a08[_0x16c139['recordId']],_0x2a93d8=(_0x242408=_0x4ae44d[_0x4f56ca(0x288)])==null?void 0x0:_0x242408[_0x16c139[_0x4f56ca(0x46e)]];return _0x246be2==null||_0x2a93d8==null?[]:[{'row':_0x246be2,'col':_0x2a93d8,'value':_0x16c139[_0x4f56ca(0x416)]}];}),_0x3496da=new W()[_0x34225d(0x511)](_0x150835,_0x3695b9,_0x55bf89),_0x296e69=new z()[_0x34225d(0x2aa)](_0x150835,_0x3496da),_0x266074={'unitId':_0x1d7a5b,'op':_0x3496da,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32[_0x34225d(0x458)]?_0x355d32:void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x29f):void 0x0},_0x3fae15={'unitId':_0x1d7a5b,'op':_0x296e69,'trigger':_0x355d32['length']?ho['id']:void 0x0,'hierarchyChanges':_0x355d32['length']?_0x355d32['map'](_0x334fb0=>({..._0x334fb0,'oldParentRecordId':_0x334fb0['parentRecordId'],'parentRecordId':_0x334fb0['oldParentRecordId']})):void 0x0,'source':_0x355d32[_0x34225d(0x458)]?_0x34225d(0x37e):void 0x0},_0x274c81={..._0x266074,'source':_0x355d32[_0x34225d(0x458)]?_0x248de2[_0x34225d(0x4cd)]??'ui':void 0x0};return _0x522d17['syncExecuteCommand'](Q['id'],_0x274c81)?(_0x3a8cfb[_0x34225d(0x3f4)](_0x1d7a5b),_0x4af185['pushUndoRedo']({'unitID':_0x1d7a5b,'undoMutations':[{'id':Q['id'],'params':_0x3fae15}],'redoMutations':[{'id':Q['id'],'params':_0x266074}]}),!0x0):!0x1;}},go={'id':_0x354fcb(0x1d8),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0xc20217,_0x23ccd4){const _0x5ce94e=_0x354fcb;if(!_0x23ccd4)return!0x1;let _0x268afb=_0xc20217['get'](_0x3414e2),{unitId:_0x4ddfa2,tableId:_0x1683af,patches:_0x3ba0e5}=_0x23ccd4,_0x428173=_0x268afb[_0x5ce94e(0x2e5)](_0x4ddfa2,_0x28d752[_0x5ce94e(0x201)]),_0x1fae4f=_0x3ba0e5[_0x5ce94e(0x29b)](_0x77d522=>_0x77d522['recordId']),_0x519798=_0x3ba0e5['flatMap'](_0x3858c6=>Object['keys'](_0x3858c6[_0x5ce94e(0x1da)]));if(!_0x428173||!$(_0x428173,_0x1683af,{'recordIds':_0x1fae4f,'fieldIds':_0x519798})||_0x3ba0e5['some'](_0x2055f5=>Object['entries'](_0x2055f5['values'])[_0x5ce94e(0x257)](([_0x158f52,_0x43bd16])=>!ga(_0x428173,_0x1683af,_0x158f52,_0x43bd16))))return!0x1;let _0x4f00db=Ze(_0x428173['getSnapshot']()[_0x5ce94e(0x2ba)][_0x1683af],_0x3ba0e5),_0x4eff50=_0xc20217[_0x5ce94e(0x4a8)](_0x3ff846),_0xceb277=_0xc20217[_0x5ce94e(0x4a8)](_0x5153d9),_0x2b31d9=_0xc20217[_0x5ce94e(0x4a8)](Kr)[_0x5ce94e(0x2be)](_0x428173,_0x1683af,_0x3ba0e5),_0x9127a2=new z()[_0x5ce94e(0x2aa)](_0x428173[_0x5ce94e(0x1f9)](),_0x2b31d9),_0x96876f={'unitId':_0x4ddfa2,'op':_0x2b31d9,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db:void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x23ccd4[_0x5ce94e(0x4cd)]??'ui':void 0x0},_0x1a4cbe={..._0x96876f,'source':_0x4f00db['length']?_0x5ce94e(0x29f):void 0x0},_0x431e6f={'unitId':_0x4ddfa2,'op':_0x9127a2,'trigger':_0x4f00db[_0x5ce94e(0x458)]?go['id']:void 0x0,'hierarchyChanges':_0x4f00db[_0x5ce94e(0x458)]?_0x4f00db['map'](_0x4ed979=>({..._0x4ed979,'oldParentRecordId':_0x4ed979['parentRecordId'],'parentRecordId':_0x4ed979['oldParentRecordId']})):void 0x0,'source':_0x4f00db[_0x5ce94e(0x458)]?_0x5ce94e(0x37e):void 0x0};return _0x4eff50[_0x5ce94e(0x4c6)](Q['id'],_0x96876f)?(_0x268afb[_0x5ce94e(0x3f4)](_0x4ddfa2),_0xceb277[_0x5ce94e(0x519)]({'unitID':_0x4ddfa2,'undoMutations':[{'id':Q['id'],'params':_0x431e6f}],'redoMutations':[{'id':Q['id'],'params':_0x1a4cbe}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x3e23cf['COMMAND'],'handler':(_0x357bf9,_0x28845b)=>{const _0x747bbb=_0x354fcb;if(!_0x28845b)return!0x1;let {unitId:_0x306467,tableId:_0x4c697a,fieldId:_0x261cfe}=_0x28845b,_0x58954d=_0x357bf9[_0x747bbb(0x4a8)](_0x3414e2),_0x190b35=_0x58954d['getUnit'](_0x306467,_0x28d752[_0x747bbb(0x201)]);if(!_0x190b35||!$(_0x190b35,_0x4c697a))return!0x1;let _0x55b02d=_0x190b35['getSnapshot'](),_0x2c96a1=_0x55b02d[_0x747bbb(0x2ba)][_0x4c697a];if(_0x261cfe!==null&&!F(_0x2c96a1,_0x261cfe))throw new P('invalidField');if(qe(_0x2c96a1)===_0x261cfe)return!0x0;let _0x2e6843=new W(),_0x2f2b89=R(Object[_0x747bbb(0x1da)](_0x2c96a1[_0x747bbb(0x480)])['flatMap'](_0x180c9b=>{const _0xdf529f=_0x747bbb;if(!F(_0x2c96a1,_0x180c9b['id']))return[];let _0x40052b=N(_0x180c9b);if(!_0x40052b)return[];let _0x1ee681=_0x180c9b['id']===_0x261cfe;if(_0x40052b['relationRole']===_0x170c14[_0xdf529f(0x3a0)]===_0x1ee681)return[];let _0x5ec89b={..._0x180c9b[_0xdf529f(0x342)],'targetTableId':_0x40052b['targetTableId'],'multiple':_0x40052b['multiple']};return _0x1ee681?_0x5ec89b[_0xdf529f(0x274)]=_0x170c14[_0xdf529f(0x3a0)]:delete _0x5ec89b[_0xdf529f(0x274)],[_0x2e6843[_0xdf529f(0x409)](_0x55b02d,_0x4c697a,_0x180c9b['id'],{'config':_0x5ec89b})];})),_0x5ec537=new z()['invertOp'](_0x55b02d,_0x2f2b89),_0x2ecc1f={'unitId':_0x306467,'op':_0x2f2b89},_0x19d650={'unitId':_0x306467,'op':_0x5ec537};return _0x357bf9['get'](_0x3ff846)['syncExecuteCommand'](Q['id'],_0x2ecc1f)?(_0x58954d['focusUnit'](_0x306467),_0x357bf9[_0x747bbb(0x4a8)](_0x5153d9)[_0x747bbb(0x519)]({'unitID':_0x306467,'undoMutations':[{'id':Q['id'],'params':_0x19d650}],'redoMutations':[{'id':Q['id'],'params':_0x2ecc1f}]}),!0x0):!0x1;}},vo={'id':_0x354fcb(0x289),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x42e382,_0x25396d)=>{const _0x395caf=_0x354fcb;if(!_0x25396d)return!0x1;let _0x5cd9ef=_0x42e382[_0x395caf(0x4a8)](_0x3414e2),{unitId:_0x3aad90,tableId:_0x812d5b,viewId:_0x2441ca,fieldId:_0xcb49cb,target:_0xe211d4}=_0x25396d,_0x3b28d1=_0x5cd9ef[_0x395caf(0x2e5)](_0x3aad90,_0x28d752[_0x395caf(0x201)]),_0x2471ec=_0xe211d4[_0x395caf(0x381)]??_0xe211d4[_0x395caf(0x27b)];if(!_0x3b28d1||!_0x2471ec||_0x2471ec===_0xcb49cb||!$(_0x3b28d1,_0x812d5b,{'viewIds':[_0x2441ca],'fieldIds':[_0xcb49cb,_0x2471ec]}))return!0x1;let _0x3275b7=_0x3b28d1['getSnapshot']()[_0x395caf(0x2ba)][_0x812d5b],_0x23a02e=_0x3275b7[_0x395caf(0x480)][_0xcb49cb],_0x48affe=_0x3275b7['fields'][_0x2471ec];if(_0x23a02e[_0x395caf(0x1cb)]===!0x0||_0x23a02e[_0x395caf(0x33a)]===_0x19bf94[_0x395caf(0x44f)]||_0x48affe[_0x395caf(0x1cb)]===!0x0||_0x48affe['type']===_0x19bf94[_0x395caf(0x44f)])return!0x1;let _0x26293a=_0x42e382[_0x395caf(0x4a8)](_0x3ff846),_0x3e77f4=_0x42e382['get'](_0x5153d9),_0x3d521e=_0x3b28d1[_0x395caf(0x1f9)](),_0x85f42c=new W()[_0x395caf(0x457)](_0x3d521e,_0x812d5b,_0x2441ca,_0xcb49cb,_0xe211d4),_0x5e4644=new z()[_0x395caf(0x2aa)](_0x3d521e,_0x85f42c),_0x502b7a={'unitId':_0x3aad90,'op':_0x85f42c},_0x52a5bb={'unitId':_0x3aad90,'op':_0x5e4644};return _0x26293a['syncExecuteCommand'](Q['id'],_0x502b7a)?(_0x5cd9ef[_0x395caf(0x3f4)](_0x3aad90),_0x3e77f4[_0x395caf(0x519)]({'unitID':_0x3aad90,'undoMutations':[{'id':Q['id'],'params':_0x52a5bb}],'redoMutations':[{'id':Q['id'],'params':_0x502b7a}]}),!0x0):!0x1;}},yo={'id':_0x354fcb(0x31a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x3965f4,_0x5e7a40){const _0x734ffe=_0x354fcb;if(!_0x5e7a40)return!0x1;let _0x2a2727=_0x3965f4[_0x734ffe(0x4a8)](_0x3414e2),{unitId:_0x57d23a,tableId:_0x48618b,viewId:_0x4dc27f,fieldId:_0x4fdd96,visible:_0x391a22}=_0x5e7a40,_0x509191=_0x2a2727[_0x734ffe(0x2e5)](_0x57d23a,_0x28d752['UNIVER_BASE']);if(!_0x509191||!$(_0x509191,_0x48618b,{'viewIds':[_0x4dc27f],'fieldIds':[_0x4fdd96]}))return!0x1;let _0x432cd=_0x509191['getSnapshot']()[_0x734ffe(0x2ba)][_0x48618b][_0x734ffe(0x480)][_0x4fdd96];if(_0x432cd[_0x734ffe(0x1cb)]===!0x0||_0x432cd[_0x734ffe(0x33a)]===_0x19bf94['RecordId'])return!0x1;let _0x1d671b=_0x3965f4[_0x734ffe(0x4a8)](_0x3ff846),_0x376249=_0x3965f4['get'](_0x5153d9),_0x2e61e1=_0x509191[_0x734ffe(0x1f9)](),_0x2cd421=new W()[_0x734ffe(0x4fc)](_0x2e61e1,_0x48618b,_0x4dc27f,_0x4fdd96,_0x391a22),_0x11d212=new z()['invertOp'](_0x2e61e1,_0x2cd421),_0x422e87={'unitId':_0x57d23a,'op':_0x2cd421},_0x1681b3={'unitId':_0x57d23a,'op':_0x11d212};return _0x1d671b[_0x734ffe(0x4c6)](Q['id'],_0x422e87)?(_0x2a2727[_0x734ffe(0x3f4)](_0x57d23a),_0x376249[_0x734ffe(0x519)]({'unitID':_0x57d23a,'undoMutations':[{'id':Q['id'],'params':_0x1681b3}],'redoMutations':[{'id':Q['id'],'params':_0x422e87}]}),!0x0):!0x1;}},bo={'id':_0x354fcb(0x29a),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x19f596,_0x28f434)=>{const _0x1cca14=_0x354fcb;if(!_0x28f434)return!0x1;let _0x495c7c=_0x19f596[_0x1cca14(0x4a8)](_0x3414e2),{unitId:_0x3c592a,tableId:_0x3336d4,viewId:_0x4d7738,fieldId:_0x5158c9,width:_0x265f5b}=_0x28f434,_0x55b36f=_0x495c7c[_0x1cca14(0x2e5)](_0x3c592a,_0x28d752[_0x1cca14(0x201)]);if(!_0x55b36f||!$(_0x55b36f,_0x3336d4,{'viewIds':[_0x4d7738],'fieldIds':[_0x5158c9]}))return!0x1;let _0x58b866=_0x55b36f['getSnapshot']()[_0x1cca14(0x2ba)][_0x3336d4][_0x1cca14(0x480)][_0x5158c9];if(_0x58b866[_0x1cca14(0x1cb)]===!0x0||_0x58b866[_0x1cca14(0x33a)]===_0x19bf94[_0x1cca14(0x44f)])return!0x1;let _0x1694e3=_0x19f596['get'](_0x3ff846),_0x130574=_0x19f596[_0x1cca14(0x4a8)](_0x5153d9),_0x4bb8f4=_0x55b36f[_0x1cca14(0x1f9)](),_0x363483=new W()['setViewFieldWidth'](_0x4bb8f4,_0x3336d4,_0x4d7738,_0x5158c9,_0x265f5b),_0x428d89=new z()['invertOp'](_0x4bb8f4,_0x363483),_0x5899d5={'unitId':_0x3c592a,'op':_0x363483},_0x2a5032={'unitId':_0x3c592a,'op':_0x428d89};return _0x1694e3[_0x1cca14(0x4c6)](Q['id'],_0x5899d5)?(_0x495c7c['focusUnit'](_0x3c592a),_0x130574[_0x1cca14(0x519)]({'unitID':_0x3c592a,'undoMutations':[{'id':Q['id'],'params':_0x2a5032}],'redoMutations':[{'id':Q['id'],'params':_0x5899d5}]}),!0x0):!0x1;}},xo={'id':_0x354fcb(0x1f5),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x43322e,_0x13c680)=>{const _0xaa24e7=_0x354fcb;if(!_0x13c680)return!0x1;let _0x1834b8=_0x43322e[_0xaa24e7(0x4a8)](_0x3414e2),{unitId:_0x25398b,tableId:_0x58ff30,viewId:_0x2a4f51,filter:_0x2231d1}=_0x13c680,_0x3a6480=_0x1834b8['getUnit'](_0x25398b,_0x28d752['UNIVER_BASE']),_0x1e3a3f=(_0x2231d1==null?void 0x0:_0x2231d1[_0xaa24e7(0x309)][_0xaa24e7(0x29b)](_0x4f5b50=>_0x4f5b50[_0xaa24e7(0x46e)]))??[];if(!_0x3a6480||!$(_0x3a6480,_0x58ff30,{'viewIds':[_0x2a4f51],'fieldIds':_0x1e3a3f}))return!0x1;let _0x39cee3=_0x43322e[_0xaa24e7(0x4a8)](_0x3ff846),_0x35e7ec=_0x43322e[_0xaa24e7(0x4a8)](_0x5153d9),_0x4dc4f5=_0x3a6480[_0xaa24e7(0x1f9)](),_0x3a9e7d=new W()[_0xaa24e7(0x2de)](_0x4dc4f5,_0x58ff30,_0x2a4f51,_0x2231d1),_0x25883a=new z()['invertOp'](_0x4dc4f5,_0x3a9e7d),_0x573464={'unitId':_0x25398b,'op':_0x3a9e7d},_0x458172={'unitId':_0x25398b,'op':_0x25883a};return _0x39cee3['syncExecuteCommand'](Q['id'],_0x573464)?(_0x1834b8[_0xaa24e7(0x3f4)](_0x25398b),_0x35e7ec[_0xaa24e7(0x519)]({'unitID':_0x25398b,'undoMutations':[{'id':Q['id'],'params':_0x458172}],'redoMutations':[{'id':Q['id'],'params':_0x573464}]}),!0x0):!0x1;}},So={'id':'base.command.set-base-view-group','type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x1f2223,_0x409e95)=>{const _0x52ed50=_0x354fcb;if(!_0x409e95)return!0x1;let _0x262ae5=_0x1f2223[_0x52ed50(0x4a8)](_0x3414e2),{unitId:_0x176293,tableId:_0x547b5a,viewId:_0x2a6387,group:_0x2373cf}=_0x409e95,_0x4c4fff=_0x262ae5['getUnit'](_0x176293,_0x28d752[_0x52ed50(0x201)]);if(!_0x4c4fff||!$(_0x4c4fff,_0x547b5a,{'viewIds':[_0x2a6387],'fieldIds':_0x2373cf['map'](_0x39ad72=>_0x39ad72['fieldId'])}))return!0x1;let _0x6e2b2c=_0x1f2223[_0x52ed50(0x4a8)](_0x3ff846),_0x119b1a=_0x1f2223[_0x52ed50(0x4a8)](_0x5153d9),_0x17014d=_0x4c4fff[_0x52ed50(0x1f9)](),_0x5b4f26=new W()[_0x52ed50(0x178)](_0x17014d,_0x547b5a,_0x2a6387,_0x2373cf),_0x27ddb2=new z()[_0x52ed50(0x2aa)](_0x17014d,_0x5b4f26),_0xa1e651={'unitId':_0x176293,'op':_0x5b4f26},_0x4c6bd5={'unitId':_0x176293,'op':_0x27ddb2};return _0x6e2b2c[_0x52ed50(0x4c6)](Q['id'],_0xa1e651)?(_0x262ae5[_0x52ed50(0x3f4)](_0x176293),_0x119b1a[_0x52ed50(0x519)]({'unitID':_0x176293,'undoMutations':[{'id':Q['id'],'params':_0x4c6bd5}],'redoMutations':[{'id':Q['id'],'params':_0xa1e651}]}),!0x0):!0x1;}},Co={'id':_0x354fcb(0x2f9),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x2c673e,_0x232c6b)=>{const _0x46678=_0x354fcb;if(!_0x232c6b)return!0x1;let _0x248c3c=_0x2c673e['get'](_0x3414e2),{unitId:_0x21d9f2,tableId:_0x3ea1b8,viewId:_0xbb3177,sort:_0x490c8b}=_0x232c6b,_0x355961=_0x248c3c[_0x46678(0x2e5)](_0x21d9f2,_0x28d752[_0x46678(0x201)]);if(!_0x355961||!$(_0x355961,_0x3ea1b8,{'viewIds':[_0xbb3177],'fieldIds':_0x490c8b[_0x46678(0x29b)](_0x229c9a=>_0x229c9a[_0x46678(0x46e)])}))return!0x1;let _0x27d1bb=_0x2c673e['get'](_0x3ff846),_0xad4b6e=_0x2c673e[_0x46678(0x4a8)](_0x5153d9),_0x51d708=_0x355961[_0x46678(0x1f9)](),_0x5b9927=new W()[_0x46678(0x4ff)](_0x51d708,_0x3ea1b8,_0xbb3177,_0x490c8b),_0x52b676=new z()[_0x46678(0x2aa)](_0x51d708,_0x5b9927),_0x517e2c={'unitId':_0x21d9f2,'op':_0x5b9927},_0x55be77={'unitId':_0x21d9f2,'op':_0x52b676};return _0x27d1bb['syncExecuteCommand'](Q['id'],_0x517e2c)?(_0x248c3c[_0x46678(0x3f4)](_0x21d9f2),_0xad4b6e['pushUndoRedo']({'unitID':_0x21d9f2,'undoMutations':[{'id':Q['id'],'params':_0x55be77}],'redoMutations':[{'id':Q['id'],'params':_0x517e2c}]}),!0x0):!0x1;}},wo={'id':_0x354fcb(0x516),'type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x4691b6,_0x4b0fbd){const _0x100892=_0x354fcb;if(!_0x4b0fbd)return!0x1;let _0x270c7d=_0x4691b6['get'](_0x3414e2),{unitId:_0xd8e308,tableId:_0x2a01db,recordId:_0x2feb3c,fieldId:_0x26253e,value:_0x207e7f}=_0x4b0fbd,_0x420087=_0x270c7d['getUnit'](_0xd8e308,_0x28d752[_0x100892(0x201)]);if(!_0x420087||!$(_0x420087,_0x2a01db,{'recordIds':[_0x2feb3c],'fieldIds':[_0x26253e]})||!ga(_0x420087,_0x2a01db,_0x26253e,_0x207e7f))return!0x1;let _0x13a44f=_0x420087[_0x100892(0x1f9)]()[_0x100892(0x2ba)][_0x2a01db],_0x1a0a99=F(_0x13a44f,_0x26253e)&&Xe(_0x13a44f)[_0x100892(0x231)](_0x26253e),_0x2cc69d=_0x1a0a99?tt(_0x13a44f,_0x26253e):null,_0x2a7df0=(_0x2cc69d==null?void 0x0:_0x2cc69d['parentByRecordId'][_0x100892(0x4a8)](_0x2feb3c))??null,_0x537068=_0x1a0a99?Le(_0x207e7f)[0x0]??null:null;if(_0x2cc69d){if(_0x537068&&!_0x13a44f[_0x100892(0x45a)][_0x537068])throw new P(_0x100892(0x33b));let _0x1bf85a=it(_0x2cc69d,_0x2feb3c,_0x537068);if(!_0x1bf85a['valid'])throw new P(_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x47b)]?'selfParent':_0x1bf85a[_0x100892(0x2d9)]===_0x3f9b5e[_0x100892(0x270)]?_0x100892(0x363):_0x100892(0x228));}let _0x313a6f=_0x4691b6['get'](_0x3ff846),_0x12afb8=_0x4691b6['get'](_0x5153d9),_0xbedd48=_0x4691b6['get'](Kr),_0x1f1822;try{_0x1f1822=_0xbedd48[_0x100892(0x22b)](_0x420087,_0x2a01db,_0x2feb3c,_0x26253e,_0x207e7f);}catch(_0x34cfcd){return console[_0x100892(0x206)](_0x100892(0x1b0),_0x34cfcd),!0x1;}let _0x58f727=new z()[_0x100892(0x2aa)](_0x420087[_0x100892(0x1f9)](),_0x1f1822),_0x1e2625=_0x1a0a99&&_0x2a7df0!==_0x537068?[{'tableId':_0x2a01db,'fieldId':_0x26253e,'recordId':_0x2feb3c,'oldParentRecordId':_0x2a7df0,'parentRecordId':_0x537068}]:void 0x0,_0xd164b7={'unitId':_0xd8e308,'op':_0x1f1822,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625,'source':_0x1e2625?_0x4b0fbd[_0x100892(0x4cd)]??'ui':void 0x0},_0xba35a7={..._0xd164b7,'source':_0x1e2625?_0x100892(0x29f):void 0x0},_0x28b3e3={'unitId':_0xd8e308,'op':_0x58f727,'trigger':_0x1e2625?wo['id']:void 0x0,'hierarchyChanges':_0x1e2625==null?void 0x0:_0x1e2625[_0x100892(0x29b)](_0x17e9b1=>({..._0x17e9b1,'oldParentRecordId':_0x17e9b1['parentRecordId'],'parentRecordId':_0x17e9b1['oldParentRecordId']})),'source':_0x1e2625?_0x100892(0x37e):void 0x0};return _0x313a6f[_0x100892(0x4c6)](Q['id'],_0xd164b7)?(_0x270c7d['focusUnit'](_0xd8e308),_0x12afb8[_0x100892(0x519)]({'unitID':_0xd8e308,'undoMutations':[{'id':Q['id'],'params':_0x28b3e3}],'redoMutations':[{'id':Q['id'],'params':_0xba35a7}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x3e23cf[_0x354fcb(0x301)],'handler'(_0x2f21f8,_0x524f9c){const _0x2e9445=_0x354fcb;if(!_0x524f9c)return!0x1;let _0x3bda89=_0x2f21f8[_0x2e9445(0x4a8)](_0x3414e2),{unitId:_0x1b6efa,tableId:_0x5f1e8b,fieldId:_0x490798}=_0x524f9c,_0x4b0bef=_0x3bda89[_0x2e9445(0x2e5)](_0x1b6efa,_0x28d752['UNIVER_BASE']);if(!_0x4b0bef||!$(_0x4b0bef,_0x5f1e8b,{'fieldIds':[_0x490798]}))return!0x1;let _0xbdfc6b=_0x2f21f8[_0x2e9445(0x4a8)](_0x3ff846),_0x555bf6=_0x2f21f8[_0x2e9445(0x4a8)](_0x5153d9),_0x5634d8=_0x4b0bef[_0x2e9445(0x1f9)](),_0x58576b=_0x524f9c[_0x2e9445(0x373)]['trim'](),_0x6a6234=new W()['updateField'](_0x5634d8,_0x5f1e8b,_0x490798,{'description':_0x58576b}),_0x4253d3=new z()[_0x2e9445(0x2aa)](_0x4b0bef[_0x2e9445(0x1f9)](),_0x6a6234),_0x5b8f30={'unitId':_0x1b6efa,'op':_0x6a6234},_0x8981f2={'unitId':_0x1b6efa,'op':_0x4253d3};return _0xbdfc6b['syncExecuteCommand'](Q['id'],_0x5b8f30)?(_0x3bda89[_0x2e9445(0x3f4)](_0x1b6efa),_0x555bf6[_0x2e9445(0x519)]({'unitID':_0x1b6efa,'undoMutations':[{'id':Q['id'],'params':_0x8981f2}],'redoMutations':[{'id':Q['id'],'params':_0x5b8f30}]}),!0x0):!0x1;}},Eo={'id':_0x354fcb(0x48b),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3144c6,_0x5361e3)=>{const _0x3e2883=_0x354fcb;if(!_0x5361e3)return!0x1;let _0x14c373=_0x3144c6[_0x3e2883(0x4a8)](_0x3414e2),{unitId:_0x50febd,tableId:_0x3503b9,fieldId:_0x46fe56,patch:_0x1a7132}=_0x5361e3,_0x238fb5=_0x14c373[_0x3e2883(0x2e5)](_0x50febd,_0x28d752[_0x3e2883(0x201)]);if(!_0x238fb5||_0x46fe56===_0x3b44b5||!$(_0x238fb5,_0x3503b9,{'fieldIds':[_0x46fe56]}))return!0x1;let _0xfc176=_0x3144c6['get'](_0x3ff846),_0x494b6d=_0x3144c6[_0x3e2883(0x4a8)](_0x5153d9),_0x1e1e9f=_0x238fb5[_0x3e2883(0x1f9)]();if(!ha(_0x238fb5,_0x3503b9,{..._0x1e1e9f[_0x3e2883(0x2ba)][_0x3503b9][_0x3e2883(0x480)][_0x46fe56],..._0x1a7132}))return!0x1;let _0x113b95=new W()[_0x3e2883(0x409)](_0x1e1e9f,_0x3503b9,_0x46fe56,_0x1a7132),_0x5ef139=new z()['invertOp'](_0x1e1e9f,_0x113b95),_0x491c55={'unitId':_0x50febd,'op':_0x113b95},_0x3b0583={'unitId':_0x50febd,'op':_0x5ef139};return _0xfc176[_0x3e2883(0x4c6)](Q['id'],_0x491c55)?(_0x14c373[_0x3e2883(0x3f4)](_0x50febd),_0x494b6d[_0x3e2883(0x519)]({'unitID':_0x50febd,'undoMutations':[{'id':Q['id'],'params':_0x3b0583}],'redoMutations':[{'id':Q['id'],'params':_0x491c55}]}),!0x0):!0x1;}},Do={'id':_0x354fcb(0x2d4),'type':_0x3e23cf['COMMAND'],'handler':(_0x2fdd50,_0x1f9fea)=>{const _0x4dbd13=_0x354fcb;if(!_0x1f9fea)return!0x1;let _0x309b61=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3414e2),{unitId:_0x3e1bf1,tableId:_0x4f2f92,viewId:_0x273f52,patch:_0x433e00}=_0x1f9fea,_0x2005c7=_0x309b61['getUnit'](_0x3e1bf1,_0x28d752[_0x4dbd13(0x201)]);if(!_0x2005c7||!$(_0x2005c7,_0x4f2f92,{'viewIds':[_0x273f52]}))return!0x1;let _0x3a529d=_0x2fdd50[_0x4dbd13(0x4a8)](_0x3ff846),_0x96df47=_0x2fdd50[_0x4dbd13(0x4a8)](_0x5153d9),_0x22e40c=_0x2005c7[_0x4dbd13(0x1f9)](),_0x34b74c=new W()['updateViewConfig'](_0x22e40c,_0x4f2f92,_0x273f52,_0x433e00),_0x16d736=new z()[_0x4dbd13(0x2aa)](_0x22e40c,_0x34b74c),_0x2fa8a7={'unitId':_0x3e1bf1,'op':_0x34b74c},_0x3cbb04={'unitId':_0x3e1bf1,'op':_0x16d736};return _0x3a529d[_0x4dbd13(0x4c6)](Q['id'],_0x2fa8a7)?(_0x309b61[_0x4dbd13(0x3f4)](_0x3e1bf1),_0x96df47[_0x4dbd13(0x519)]({'unitID':_0x3e1bf1,'undoMutations':[{'id':Q['id'],'params':_0x3cbb04}],'redoMutations':[{'id':Q['id'],'params':_0x2fa8a7}]}),!0x0):!0x1;}},Oo={'id':_0x354fcb(0x4f3),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x26578e,_0x265889)=>{const _0x71aa41=_0x354fcb;if(!_0x265889)return!0x1;let _0x28f5a4=_0x26578e['get'](_0x3414e2),{unitId:_0x5af915,tableId:_0x4e6358,recordId:_0x49fd76,orderKey:_0x1ecd42}=_0x265889,_0x236656=_0x28f5a4[_0x71aa41(0x2e5)](_0x5af915,_0x28d752[_0x71aa41(0x201)]);if(!_0x236656||!$(_0x236656,_0x4e6358,{'recordIds':[_0x49fd76]}))return!0x1;let _0x58b354=_0x26578e['get'](_0x3ff846),_0xfd174d=_0x26578e[_0x71aa41(0x4a8)](_0x5153d9),_0x2a4e0e=_0x236656[_0x71aa41(0x1f9)](),_0x4c84e6=new W()[_0x71aa41(0x229)](_0x2a4e0e,_0x4e6358,_0x49fd76,_0x1ecd42),_0x14627c=new z()[_0x71aa41(0x2aa)](_0x2a4e0e,_0x4c84e6),_0x203b33={'unitId':_0x5af915,'op':_0x4c84e6},_0x527ada={'unitId':_0x5af915,'op':_0x14627c};return _0x58b354['syncExecuteCommand'](Q['id'],_0x203b33)?(_0x28f5a4[_0x71aa41(0x3f4)](_0x5af915),_0xfd174d[_0x71aa41(0x519)]({'unitID':_0x5af915,'undoMutations':[{'id':Q['id'],'params':_0x527ada}],'redoMutations':[{'id':Q['id'],'params':_0x203b33}]}),!0x0):!0x1;}};let ko=function(_0x129941){const _0x3662e8=_0x354fcb;return _0x129941['Set']=_0x3662e8(0x1a1),_0x129941[_0x3662e8(0x27f)]=_0x3662e8(0x35e),_0x129941[_0x3662e8(0x3d2)]=_0x3662e8(0x4f4),_0x129941[_0x3662e8(0x4b0)]='clear',_0x129941;}({});const Ao={'id':_0x354fcb(0x40d),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0x3cd942,_0x11fb87)=>{const _0x385b20=_0x354fcb;var _0x483cc2;if(!_0x11fb87)return!0x1;let _0xc9f356=_0x3cd942[_0x385b20(0x4a8)](_0x3414e2),_0x550cba=_0xc9f356[_0x385b20(0x2e5)](_0x11fb87[_0x385b20(0x278)],_0x28d752[_0x385b20(0x201)]);if(!_0x550cba||!$(_0x550cba,_0x11fb87[_0x385b20(0x1c3)],{'viewIds':[_0x11fb87[_0x385b20(0x366)]]}))return!0x1;let _0xed793=_0x550cba['getSnapshot'](),_0x3fdb79=_0xed793[_0x385b20(0x2ba)][_0x11fb87['tableId']],_0x454c2e=jo(((_0x483cc2=_0x3fdb79['views'][_0x11fb87[_0x385b20(0x366)]][_0x385b20(0x342)][_0x385b20(0x3e7)])==null?void 0x0:_0x483cc2[_0x385b20(0x36c)])??[],_0x11fb87);if(!_0x454c2e)return!0x1;Mo(_0x3fdb79,_0x454c2e);let _0x3cb5f9=new W()[_0x385b20(0x4c1)](_0xed793,_0x11fb87['tableId'],_0x11fb87[_0x385b20(0x366)],{'conditionalColoring':_0x454c2e[_0x385b20(0x458)]?{'rules':_0x454c2e}:null}),_0x2c52cd=new z()[_0x385b20(0x2aa)](_0xed793,_0x3cb5f9),_0x3ac8c6={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x3cb5f9},_0x42c9ef={'unitId':_0x11fb87[_0x385b20(0x278)],'op':_0x2c52cd};return _0x3cd942[_0x385b20(0x4a8)](_0x3ff846)[_0x385b20(0x4c6)](Q['id'],_0x3ac8c6)?(_0xc9f356[_0x385b20(0x3f4)](_0x11fb87[_0x385b20(0x278)]),_0x3cd942[_0x385b20(0x4a8)](_0x5153d9)[_0x385b20(0x519)]({'unitID':_0x11fb87[_0x385b20(0x278)],'undoMutations':[{'id':Q['id'],'params':_0x42c9ef}],'redoMutations':[{'id':Q['id'],'params':_0x3ac8c6}]}),!0x0):!0x1;}};function jo(_0x4819c6,_0xb3d9f0){const _0x22a554=_0x354fcb;switch(_0xb3d9f0[_0x22a554(0x33a)]){case'set':return _0x30f9db[_0x22a554(0x355)](_0xb3d9f0[_0x22a554(0x36c)]);case _0x22a554(0x35e):return[..._0x30f9db['deepClone'](_0x4819c6),_0x30f9db[_0x22a554(0x355)](_0xb3d9f0['rule'])];case _0x22a554(0x4f4):{let _0x5657de=_0x4819c6[_0x22a554(0x397)](_0x5945de=>_0x5945de['id']!==_0xb3d9f0[_0x22a554(0x491)]);return _0x5657de['length']===_0x4819c6['length']?null:_0x30f9db['deepClone'](_0x5657de);}case _0x22a554(0x4b6):return _0x4819c6[_0x22a554(0x458)]?[]:null;}}function Mo(_0x1ba8f9,_0x4be23b){const _0x3db896=_0x354fcb;if(!Array[_0x3db896(0x354)](_0x4be23b))throw TypeError(_0x3db896(0x313));let _0x5db824=new Set();for(let [_0x31bb9a,_0x3aeac2]of _0x4be23b[_0x3db896(0x1e2)]())Po(_0x1ba8f9,_0x3aeac2,No(_0x3aeac2,_0x31bb9a,_0x5db824));}function No(_0x11547f,_0x7111b,_0x543010){const _0x2361e6=_0x354fcb;if(!_0x11547f||typeof _0x11547f!=_0x2361e6(0x269))throw TypeError(_0x2361e6(0x311)+_0x7111b+'\x20must\x20be\x20an\x20object.');let _0x2aff6a=typeof _0x11547f['id']==_0x2361e6(0x471)&&_0x11547f['id'][_0x2361e6(0x3bc)]()?'\x22'+_0x11547f['id']+'\x22':'at\x20index\x20'+_0x7111b;if(typeof _0x11547f['id']!=_0x2361e6(0x471)||!_0x11547f['id']['trim']())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x2aff6a+_0x2361e6(0x470));if(_0x543010[_0x2361e6(0x23f)](_0x11547f['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x11547f['id']+'\x22.');_0x543010[_0x2361e6(0x35e)](_0x11547f['id']);let _0x29e373=typeof _0x11547f[_0x2361e6(0x190)]==_0x2361e6(0x471)&&_0x11547f[_0x2361e6(0x190)][_0x2361e6(0x3bc)]()?new _0x3d2caa(_0x11547f[_0x2361e6(0x190)]):null;if(!(_0x29e373!=null&&_0x29e373['isValid']))throw Error(_0x2361e6(0x2f5)+_0x2aff6a+_0x2361e6(0x44e));return _0x2aff6a;}function Po(_0x4472fe,_0x3cbd5d,_0x51108e){const _0x289dcb=_0x354fcb;let _0x215a7b=new Set(Object[_0x289dcb(0x1da)](_0x54bac1)),_0x40c600=new Set(Object[_0x289dcb(0x1da)](_0x79efc5)),_0x3cd731=new Set(Object['values'](_0x173d28));if(!_0x215a7b['has'](_0x3cbd5d[_0x289dcb(0x3d1)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x3aa)+String(_0x3cbd5d[_0x289dcb(0x3d1)])+'\x22.');let _0x736b6d=typeof _0x3cbd5d['fieldId']==_0x289dcb(0x471)?_0x4472fe[_0x289dcb(0x480)][_0x3cbd5d['fieldId']]:void 0x0;if(!_0x736b6d||_0x736b6d[_0x289dcb(0x1cb)]===!0x0||_0x736b6d[_0x289dcb(0x33a)]===_0x19bf94[_0x289dcb(0x44f)])throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x214)+String(_0x3cbd5d[_0x289dcb(0x46e)])+'\x22.');if(!_0x40c600[_0x289dcb(0x23f)](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x4e1)+String(_0x3cbd5d[_0x289dcb(0x320)])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!_0x3cd731[_0x289dcb(0x23f)](_0x3cbd5d[_0x289dcb(0x43b)]))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x2b0)+String(_0x3cbd5d['dateMode'])+'\x22.');if(_0x3cbd5d[_0x289dcb(0x3d1)]===_0x54bac1[_0x289dcb(0x222)])return;let _0x2f446d=vn(_0x736b6d[_0x289dcb(0x33a)]);if(!_0x2f446d['includes'](_0x3cbd5d['operator']))throw Error(_0x289dcb(0x2f5)+_0x51108e+_0x289dcb(0x413)+_0x3cbd5d[_0x289dcb(0x320)]+_0x289dcb(0x2c9)+_0x736b6d['type']+'\x22.\x20Allowed\x20operators:\x20'+_0x2f446d[_0x289dcb(0x4b5)](',\x20')+'.');if(_0x3cbd5d[_0x289dcb(0x43b)]!==void 0x0&&!yn(_0x736b6d[_0x289dcb(0x33a)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x51108e+_0x289dcb(0x27c));}const Fo={'id':_0x354fcb(0x508),'type':_0x3e23cf[_0x354fcb(0x301)],'handler':(_0xceccc4,_0x1f0bef)=>{const _0x45e4ca=_0x354fcb;if(!_0x1f0bef)return!0x1;let _0x27a081=_0xceccc4['get'](_0x3414e2),{unitId:_0x290850,tableId:_0x30e199,viewId:_0x228191,patch:_0x1a9086}=_0x1f0bef,_0x2ac841=_0x27a081[_0x45e4ca(0x2e5)](_0x290850,_0x28d752['UNIVER_BASE']);if(!_0x2ac841||!$(_0x2ac841,_0x30e199,{'viewIds':[_0x228191]}))return!0x1;let _0x1c8be3=_0xceccc4['get'](_0x3ff846),_0xc84e5a=_0xceccc4[_0x45e4ca(0x4a8)](_0x5153d9),_0x1401a2=_0x2ac841[_0x45e4ca(0x1f9)](),_0x338dc5=new W()[_0x45e4ca(0x4c1)](_0x1401a2,_0x30e199,_0x228191,_0x1a9086),_0x1c5e16=new z()[_0x45e4ca(0x2aa)](_0x1401a2,_0x338dc5),_0x5b0cd4={'unitId':_0x290850,'op':_0x338dc5},_0x22a988={'unitId':_0x290850,'op':_0x1c5e16};return _0x1c8be3[_0x45e4ca(0x4c6)](Q['id'],_0x5b0cd4)?(_0x27a081['focusUnit'](_0x290850),_0xc84e5a['pushUndoRedo']({'unitID':_0x290850,'undoMutations':[{'id':Q['id'],'params':_0x22a988}],'redoMutations':[{'id':Q['id'],'params':_0x5b0cd4}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x3e23cf['COMMAND'],'handler'(_0x4f555b,_0x332c93){const _0x4b8880=_0x354fcb;if(!_0x332c93)return{'valid':!0x1,'reason':_0x4b8880(0x39f)};let _0x453928=_0x4f555b[_0x4b8880(0x4a8)](_0x3414e2)[_0x4b8880(0x2e5)](_0x332c93[_0x4b8880(0x278)],_0x28d752['UNIVER_BASE']),_0x4091c4=_0x453928==null?void 0x0:_0x453928[_0x4b8880(0x1f9)](),_0x20d719=_0x4091c4==null?void 0x0:_0x4091c4[_0x4b8880(0x2ba)][_0x332c93[_0x4b8880(0x1c3)]];return!_0x4091c4||!_0x20d719?{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20does\x20not\x20exist.'}:new Xi()[_0x4b8880(0x1c2)](_0x332c93[_0x4b8880(0x23a)],_0x20d719,{'snapshot':_0x4091c4});}};let Lo=class extends _0x4a896e{constructor(_0xb5d54b){const _0x16eda2=_0x354fcb;super(_0xb5d54b,_0x16eda2(0x1f4),_0x28d752[_0x16eda2(0x201)],[_0x56e21f[_0x16eda2(0x1d0)],_0x56e21f['BaseField'],_0x56e21f['BaseRecord'],_0x56e21f[_0x16eda2(0x52a)],_0x56e21f[_0x16eda2(0x3f9)]]);}};Lo=X([Y(0x0,_0xee5072)],Lo);const Ro={'id':_0x354fcb(0x45e),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0x33a35a,_0x16ce20)=>!_0x16ce20||!_0x33a35a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x16ce20[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0x33a35a[_0x354fcb(0x4a8)](Lo)['setRule'](_0x16ce20[_0x354fcb(0x278)],_0x16ce20[_0x354fcb(0x204)],_0x16ce20[_0x354fcb(0x225)],_0x16ce20[_0x354fcb(0x193)])},zo={'id':_0x354fcb(0x3dd),'type':_0x3e23cf[_0x354fcb(0x251)],'handler':(_0xbeb69a,_0x4092e8)=>!_0x4092e8||!_0xbeb69a[_0x354fcb(0x4a8)](_0x3414e2)[_0x354fcb(0x2e5)](_0x4092e8[_0x354fcb(0x278)],_0x28d752[_0x354fcb(0x201)])?!0x1:_0xbeb69a[_0x354fcb(0x4a8)](Lo)[_0x354fcb(0x30e)](_0x4092e8[_0x354fcb(0x278)],_0x4092e8[_0x354fcb(0x36c)])};function Bo(_0x1771bc){const _0xb3eca0=_0x354fcb;let _0x401106=_0x1771bc[_0xb3eca0(0x181)]??Date['now'](),_0x1e0051=_0x1771bc[_0xb3eca0(0x4cf)]??_0x1771bc['id']+_0xb3eca0(0x50e),_0x1e80b7=_0x1771bc[_0xb3eca0(0x1c8)]??_0x1771bc['id']+_0xb3eca0(0x443),_0x389eb0=_0x1771bc['recordCount']??0x0,_0x4b8112=_0x5c3ee9(),_0x5ab6bc={'id':_0x1e0051,'name':_0x1771bc[_0xb3eca0(0x26b)]??_0xb3eca0(0x36d),'type':_0x19bf94[_0xb3eca0(0x374)],'config':{'placeholder':_0xb3eca0(0x3ab)}},_0x56ad1e={},_0xaaef58=[],_0x5c092e={},_0x4c3e4d={},_0x27221b={};for(let _0x13301=0x0;_0x13301<_0x389eb0;_0x13301++){let _0x2f1081=_0x1771bc['id']+_0xb3eca0(0x378)+(_0x13301+0x1);_0x56ad1e[_0x2f1081]={'id':_0x2f1081,'values':{[_0x3b44b5]:_0x2f1081,..._0x1771bc[_0xb3eca0(0x282)]?{[_0x1e0051]:_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1)}:{}},'orderKey':String(_0x13301+0x1)['padStart'](0x4,'0'),'createdAt':_0x401106,'updatedAt':_0x401106},_0xaaef58[_0xb3eca0(0x1f3)](_0x2f1081),_0x5c092e[_0x2f1081]=_0x13301,_0x4c3e4d[_0x13301]=_0x2f1081,_0x27221b[_0x13301]={0x0:{'v':_0x2f1081,'t':_0x149f0a['STRING']}},_0x1771bc['recordNamePrefix']&&(_0x27221b[_0x13301][0x1]={'v':_0x1771bc[_0xb3eca0(0x282)]+'\x20'+(_0x13301+0x1),'t':_0x149f0a['STRING']});}let _0x1552b6={'id':_0x1e80b7,'tableId':_0x1771bc['id'],'name':_0xb3eca0(0x388),'type':_0x2b4a2c[_0xb3eca0(0x388)],'fieldOrder':[_0x3b44b5,_0x1e0051],'fieldSettings':{[_0x3b44b5]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x1771bc['id'],'name':_0x1771bc[_0xb3eca0(0x1e0)],'primaryFieldId':_0x1e0051,'fieldOrder':[_0x3b44b5,_0x1e0051],'fields':{[_0x3b44b5]:_0x4b8112,[_0x1e0051]:_0x5ab6bc},'records':_0x56ad1e,'recordOrder':_0xaaef58,'rowIndex':_0x5c092e,'rowId':_0x4c3e4d,'colIndex':{[_0x3b44b5]:0x0,[_0x1e0051]:0x1},'colId':{0x0:_0x3b44b5,0x1:_0x1e0051},'cellData':_0x27221b,'views':{[_0x1e80b7]:_0x1552b6},'viewOrder':[_0x1e80b7]};}const Vo=_0x354fcb(0x339);function Ho(_0x46c524){const _0xcf2577=_0x354fcb;let _0xc784a5=Bo({'id':_0x46c524[_0xcf2577(0x303)],'name':_0x46c524[_0xcf2577(0x1e0)]??_0x46c524[_0xcf2577(0x39e)],'recordCount':0x0});return{..._0xc784a5,'resources':{..._0xc784a5[_0xcf2577(0x358)]??{},[Vo]:Go(_0x46c524)}};}function Uo(_0x5b23dd){const _0x3cc656=_0x354fcb;return{'id':Q['id'],'params':{'unitId':_0x5b23dd[_0x3cc656(0x278)],'op':_0x370803[_0x3cc656(0x33a)]['compose'](_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x2ba),_0x5b23dd[_0x3cc656(0x513)]['id']],_0x5b23dd[_0x3cc656(0x513)]),_0x370803[_0x3cc656(0x207)]([_0x3cc656(0x3e3),_0x5b23dd[_0x3cc656(0x250)]??_0x5b23dd[_0x3cc656(0x2d2)][_0x3cc656(0x3e3)]['length']],_0x5b23dd[_0x3cc656(0x513)]['id'])),'trigger':_0x3cc656(0x31c)}};}function Wo(_0x3d9ca2){const _0x7101e8=_0x354fcb;let _0x1be666=_0x3d9ca2['snapshot'][_0x7101e8(0x3e3)][_0x7101e8(0x4c8)](_0x3d9ca2[_0x7101e8(0x1c3)]);if(!(!_0x3d9ca2['snapshot']['tables'][_0x3d9ca2[_0x7101e8(0x1c3)]]||_0x1be666<0x0))return{'id':Q['id'],'params':{'unitId':_0x3d9ca2['unitId'],'op':_0x370803['type'][_0x7101e8(0x1fb)](_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x2ba),_0x3d9ca2[_0x7101e8(0x1c3)]],_0x3d9ca2[_0x7101e8(0x2d2)][_0x7101e8(0x2ba)][_0x3d9ca2[_0x7101e8(0x1c3)]]),_0x370803[_0x7101e8(0x246)]([_0x7101e8(0x3e3),_0x1be666],_0x3d9ca2[_0x7101e8(0x1c3)])),'trigger':_0x7101e8(0x31c)}};}function Go(_0xedb651){const _0x2dbcd6=_0x354fcb;return{'version':0x1,'embedId':_0xedb651[_0x2dbcd6(0x39e)],'hostAnchorId':_0xedb651[_0x2dbcd6(0x303)],'childUnitId':_0xedb651[_0x2dbcd6(0x33e)],'childType':_0xedb651[_0x2dbcd6(0x525)]};}function Ko(_0x44b35d){const _0x1eee40=_0x354fcb;let _0x595a9d=Math[_0x1eee40(0x1b3)](0x0,Number(_0x44b35d[_0x1eee40(0x40e)]??0x0)),_0x577650=_0x44b35d[_0x1eee40(0x2ce)]===!0x1?'0':_0x1eee40(0x3c3),_0x16907b=_0x595a9d?'.'+'0'[_0x1eee40(0x4d1)](_0x595a9d):'',_0x57c1e1=Jo(_0x44b35d['abbreviation']);return''+(_0x44b35d['currencySymbol']?Yo(_0x44b35d[_0x1eee40(0x4d3)]):'')+_0x577650+_0x16907b+_0x57c1e1;}function qo(_0x55aac2,_0x1834d8){const _0x5c492f=_0x354fcb;let _0xcfff44=Ko(_0x1834d8),_0x5eed9b=_0x5e5ce5['format'](_0xcfff44,_0x55aac2,{'throws':!0x1});return Xo(String(_0x5eed9b),_0x1834d8[_0x5c492f(0x28d)],_0x1834d8[_0x5c492f(0x4f5)]);}function Jo(_0x3e3af0){const _0x5c17f5=_0x354fcb;return _0x3e3af0==='K'?',\x22K\x22':_0x3e3af0==='M'?_0x5c17f5(0x279):_0x3e3af0==='B'?_0x5c17f5(0x4a6):'';}function Yo(_0x4c64ae){const _0x305676=_0x354fcb;return/^[A-Z]+$/i[_0x305676(0x235)](_0x4c64ae)?'\x22'+_0x4c64ae+'\x22':_0x4c64ae;}function Xo(_0xa4b339,_0x174271,_0x1bbba9){const _0x468207=_0x354fcb;let _0x51f2f8=_0x174271===_0x468207(0x40a)?Zo(_0x1bbba9):_0x174271;return _0x51f2f8===_0x468207(0x425)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x00')[_0x468207(0x2b1)](/\./g,',')['replace'](/\0/g,'.'):_0x51f2f8===_0x468207(0x26c)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20')[_0x468207(0x2b1)](/\./g,','):_0x51f2f8===_0x468207(0x2c5)?_0xa4b339[_0x468207(0x2b1)](/,/g,'\x20'):_0xa4b339;}function Zo(_0x4cf187){const _0x56299f=_0x354fcb;var _0x916872,_0x27287d;let _0x533a13=_0x4cf187||new Intl[(_0x56299f(0x4fb))]()[_0x56299f(0x1de)]()[_0x56299f(0x4f5)],_0x2224cf;try{_0x2224cf=new Intl[(_0x56299f(0x4fb))](_0x533a13,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x56299f(0x41b)](0xf4240);}catch{return'commaPeriod';}let _0x34bc9a=(_0x916872=_0x2224cf[_0x56299f(0x22f)](_0x387c8d=>_0x387c8d['type']===_0x56299f(0x1b9)))==null?void 0x0:_0x916872['value'],_0x59b0ab=(_0x27287d=_0x2224cf['find'](_0x5185de=>_0x5185de['type']==='decimal'))==null?void 0x0:_0x27287d[_0x56299f(0x416)],_0x79f63c=_0x34bc9a==='\u00a0'||_0x34bc9a==='\u202f'?'\x20':_0x34bc9a;return _0x79f63c==='.'&&_0x59b0ab===','?_0x56299f(0x425):_0x79f63c==='\x20'&&_0x59b0ab===','?'spaceComma':_0x79f63c==='\x20'&&_0x59b0ab==='.'?_0x56299f(0x2c5):_0x56299f(0x3e1);}function Qo(_0x4aea1c,_0x300f08){const _0x10e7a5=_0x354fcb;let _0x4ae1f8=_0x300f08&&typeof _0x300f08==_0x10e7a5(0x269)&&!Array[_0x10e7a5(0x354)](_0x300f08)?_0x300f08:{},_0x3c95b2=$o(_0x4ae1f8[_0x10e7a5(0x40e)],0x0,0x2,0x0),_0x4268e1=_0x4aea1c[_0x10e7a5(0x23d)](_0x3c95b2);return _0x4ae1f8[_0x10e7a5(0x24a)]===_0x10e7a5(0x256)?_0x4268e1:_0x4268e1+'%';}function $o(_0x4d22b7,_0x1b9fc2,_0x5b1417,_0x42472c){const _0x445246=_0x354fcb;if(_0x4d22b7==null||_0x4d22b7==='')return _0x42472c;let _0x471592=typeof _0x4d22b7==_0x445246(0x256)?_0x4d22b7:Number(_0x4d22b7);return Number[_0x445246(0x2c3)](_0x471592)?Math['max'](_0x1b9fc2,Math[_0x445246(0x35d)](_0x5b1417,Math[_0x445246(0x40b)](_0x471592))):_0x42472c;}const es=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505),_0x354fcb(0x22c),_0x354fcb(0x218),'min',_0x354fcb(0x1b3)],ts=[_0x354fcb(0x3f5),_0x354fcb(0x2af),_0x354fcb(0x26a),_0x354fcb(0x505)],ns=[_0x354fcb(0x22c),'average',_0x354fcb(0x35d),_0x354fcb(0x1b3)],rs=[_0x354fcb(0x35d),_0x354fcb(0x1b3)],is=new Set([_0x19bf94[_0x354fcb(0x271)],_0x19bf94['Currency'],_0x19bf94['Progress'],_0x19bf94[_0x354fcb(0x4c5)]]),as=new Set([_0x19bf94[_0x354fcb(0x283)],_0x19bf94[_0x354fcb(0x1e5)],_0x19bf94[_0x354fcb(0x223)]]),os='General';function ss(_0x2adb61){const _0xa6c2c3=_0x354fcb;return typeof _0x2adb61==_0xa6c2c3(0x471)&&es[_0xa6c2c3(0x231)](_0x2adb61);}function cs(_0x4abdca){const _0x3a3c76=_0x354fcb;return!_0x4abdca||typeof _0x4abdca!=_0x3a3c76(0x269)?{}:Object[_0x3a3c76(0x2e8)](Object[_0x3a3c76(0x1e2)](_0x4abdca)['filter'](_0x822ce=>ss(_0x822ce[0x1])));}function ls(_0x409a54){const _0x2a10c6=_0x354fcb;return is[_0x2a10c6(0x23f)](_0x409a54[_0x2a10c6(0x33a)])?[...ts,...ns]:_0x409a54[_0x2a10c6(0x33a)]===_0x19bf94['Formula']?[...ts,...ws(_0x409a54)===_0x2a10c6(0x219)?rs:ns]:ts;}function us(_0x240a8e,_0x25a25a){const _0x3ec0c5=_0x354fcb;return ls(_0x240a8e)[_0x3ec0c5(0x231)](_0x25a25a);}function ds(_0x36a3b2,_0x42d1d4,_0x5052f9){const _0x2bc2f7=_0x354fcb;if(!us(_0x36a3b2,_0x5052f9))return null;let _0x112613=_0x42d1d4[_0x2bc2f7(0x397)](_0x8bb13d=>!ps(_0x36a3b2,_0x8bb13d));switch(_0x5052f9){case _0x2bc2f7(0x3f5):return _0x42d1d4[_0x2bc2f7(0x458)];case _0x2bc2f7(0x2af):return _0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x26a):return _0x42d1d4[_0x2bc2f7(0x458)]-_0x112613[_0x2bc2f7(0x458)];case _0x2bc2f7(0x505):return new Set(_0x112613['map'](_0x1cae5e=>_s(_0x36a3b2,_0x1cae5e)))[_0x2bc2f7(0x473)];case _0x2bc2f7(0x22c):{let _0x37cfe6=ms(_0x36a3b2,_0x112613);return _0x37cfe6[_0x2bc2f7(0x458)]?gs(_0x37cfe6):null;}case _0x2bc2f7(0x218):{let _0x4976e5=ms(_0x36a3b2,_0x112613);return _0x4976e5['length']?gs(_0x4976e5)/_0x4976e5[_0x2bc2f7(0x458)]:null;}case _0x2bc2f7(0x35d):{let _0x237646=ms(_0x36a3b2,_0x112613);return _0x237646[_0x2bc2f7(0x458)]?Math[_0x2bc2f7(0x35d)](..._0x237646):null;}case _0x2bc2f7(0x1b3):{let _0x32c80b=ms(_0x36a3b2,_0x112613);return _0x32c80b['length']?Math['max'](..._0x32c80b):null;}}}function fs(_0x30eb7c,_0x34b16c,_0x493031){const _0x527f3d=_0x354fcb;if(_0x493031==null||!Number[_0x527f3d(0x2c3)](_0x493031))return'-';if(ts[_0x527f3d(0x231)](_0x34b16c))return String(_0x493031);switch(_0x30eb7c[_0x527f3d(0x33a)]){case _0x19bf94[_0x527f3d(0x271)]:return qo(_0x493031,xs(_0x30eb7c));case _0x19bf94[_0x527f3d(0x19c)]:return qo(_0x493031,Ss(_0x30eb7c));case _0x19bf94[_0x527f3d(0x1ba)]:return Qo(_0x493031,_0x30eb7c[_0x527f3d(0x342)]);case _0x19bf94[_0x527f3d(0x405)]:return Cs(_0x493031,_0x30eb7c);default:return Es(_0x493031);}}function ps(_0x23eea6,_0x2c95cf){const _0x590673=_0x354fcb;if(_0x2c95cf==null)return!0x0;if(typeof _0x2c95cf==_0x590673(0x471))return _0x2c95cf[_0x590673(0x3bc)]()==='';if(Array[_0x590673(0x354)](_0x2c95cf))return _0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x46f)]?!_0x2c95cf[_0x590673(0x257)](bs):_0x2c95cf[_0x590673(0x458)]===0x0;if(_0x23eea6[_0x590673(0x33a)]===_0x19bf94[_0x590673(0x4db)]&&typeof _0x2c95cf==_0x590673(0x269)){let _0x3f71d9=_0x2c95cf;return[_0x3f71d9['text'],_0x3f71d9[_0x590673(0x1c7)]][_0x590673(0x1b6)](_0x5e1519=>_0x5e1519==null||String(_0x5e1519)[_0x590673(0x3bc)]()==='');}return!0x1;}function ms(_0x123c06,_0x4fa302){const _0x59db8d=_0x354fcb;let _0x12ad13=[];for(let _0x29bc6d of _0x4fa302){let _0x293ad5=hs(_0x123c06,_0x29bc6d);_0x293ad5!=null&&_0x12ad13[_0x59db8d(0x1f3)](_0x293ad5);}return _0x12ad13;}function hs(_0x4d27d0,_0x39a844){const _0xa18ee7=_0x354fcb;if(typeof _0x39a844=='number')return Number[_0xa18ee7(0x2c3)](_0x39a844)?_0x39a844:null;if(_0x4d27d0['type']!==_0x19bf94['Formula']&&typeof _0x39a844=='string'&&_0x39a844[_0xa18ee7(0x3bc)]()!==''){let _0x41ea52=Number(_0x39a844);return Number[_0xa18ee7(0x2c3)](_0x41ea52)?_0x41ea52:null;}return null;}function gs(_0x2f89da){const _0x1cdfc4=_0x354fcb;let _0x14ea8e=0x0,_0x52db04=0x0;for(let _0x1b5c93 of _0x2f89da){let _0x21b5ef=_0x14ea8e+_0x1b5c93;_0x52db04+=Math[_0x1cdfc4(0x2f7)](_0x14ea8e)>=Math[_0x1cdfc4(0x2f7)](_0x1b5c93)?_0x14ea8e-_0x21b5ef+_0x1b5c93:_0x1b5c93-_0x21b5ef+_0x14ea8e,_0x14ea8e=_0x21b5ef;}return _0x14ea8e+_0x52db04;}function _s(_0x2789d5,_0x4cd63a){const _0x221d7e=_0x354fcb;return as[_0x221d7e(0x23f)](_0x2789d5[_0x221d7e(0x33a)])&&Array[_0x221d7e(0x354)](_0x4cd63a)?ys([...new Set(_0x4cd63a[_0x221d7e(0x29b)](_0x3e280b=>ys(vs(_0x3e280b))))][_0x221d7e(0x3db)]()):ys(vs(_0x4cd63a));}function vs(_0x1b89b0){const _0x48910a=_0x354fcb;return Array['isArray'](_0x1b89b0)?_0x1b89b0[_0x48910a(0x29b)](vs):_0x1b89b0&&typeof _0x1b89b0=='object'?Object[_0x48910a(0x2e8)](Object[_0x48910a(0x1e2)](_0x1b89b0)[_0x48910a(0x3db)](([_0x3dd493],[_0x41a477])=>_0x3dd493[_0x48910a(0x4bc)](_0x41a477))[_0x48910a(0x29b)](([_0x16cffd,_0x2b2d25])=>[_0x16cffd,vs(_0x2b2d25)])):_0x1b89b0;}function ys(_0x2536a5){const _0x583cdc=_0x354fcb;return JSON[_0x583cdc(0x449)](_0x2536a5)??'undefined';}function bs(_0x5dc8fe){const _0x1afde1=_0x354fcb;if(typeof _0x5dc8fe=='string')return _0x5dc8fe[_0x1afde1(0x3bc)]()!=='';if(!_0x5dc8fe||typeof _0x5dc8fe!=_0x1afde1(0x269))return!0x1;let _0x2951f7=_0x5dc8fe;return[_0x2951f7['id'],_0x2951f7[_0x1afde1(0x1e0)],_0x2951f7[_0x1afde1(0x4cd)],_0x2951f7[_0x1afde1(0x1c7)],_0x2951f7['thumbnail']][_0x1afde1(0x257)](_0xab6ff9=>_0xab6ff9!=null&&String(_0xab6ff9)[_0x1afde1(0x3bc)]()!=='');}function xs(_0x2ff929){const _0x9c3246=_0x354fcb;let _0x3b18e1=Ds(_0x2ff929[_0x9c3246(0x342)]);return{'decimalPlaces':ks(_0x3b18e1[_0x9c3246(0x40e)],0x0,0x14,0x2),'separatorStyle':typeof _0x3b18e1[_0x9c3246(0x28d)]==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x28d)]:_0x9c3246(0x40a),'locale':typeof _0x3b18e1[_0x9c3246(0x4f5)]=='string'?_0x3b18e1[_0x9c3246(0x4f5)]:void 0x0,'useThousands':_0x3b18e1[_0x9c3246(0x2ce)]!==!0x1,'abbreviation':typeof _0x3b18e1['abbreviation']==_0x9c3246(0x471)?_0x3b18e1[_0x9c3246(0x356)]:'none'};}function Ss(_0x411d6a){const _0x380da1=_0x354fcb;let _0x4ea89b=Ds(_0x411d6a[_0x380da1(0x342)]);return{...xs(_0x411d6a),'currencySymbol':String(_0x4ea89b['currencySymbol']??'$')};}function Cs(_0x2d6721,_0x2eaef7){let _0x8f564b=Ts(_0x2eaef7);if(_0x8f564b===os)return Es(_0x2d6721);try{return String(_0x5e5ce5['format'](_0x8f564b,_0x2d6721,{'throws':!0x1}));}catch{return Es(_0x2d6721);}}function ws(_0x112cc5){const _0x10376d=_0x354fcb;let _0x29aa2a=Ds(Ds(_0x112cc5[_0x10376d(0x342)])[_0x10376d(0x51c)]);return typeof _0x29aa2a[_0x10376d(0x33a)]=='string'?_0x29aa2a[_0x10376d(0x33a)]:'general';}function Ts(_0x39c952){const _0x325160=_0x354fcb;let _0x1f99bc=Ds(Ds(_0x39c952[_0x325160(0x342)])['numfmt']);return String(_0x1f99bc[_0x325160(0x177)]??os)[_0x325160(0x3bc)]()||os;}function Es(_0x44d624){const _0x310221=_0x354fcb;return String(Number[_0x310221(0x39d)](_0x44d624)?_0x44d624:Math[_0x310221(0x40b)]((_0x44d624+0x2**-0x34)*0x64)/0x64);}function Ds(_0x3874eb){const _0x7c7c29=_0x354fcb;return _0x3874eb&&typeof _0x3874eb==_0x7c7c29(0x269)&&!Array[_0x7c7c29(0x354)](_0x3874eb)?_0x3874eb:{};}function Os(_0x17cf61){const _0x425bc8=_0x354fcb;if(_0x17cf61==null||_0x17cf61==='')return null;let _0x36cad6=typeof _0x17cf61==_0x425bc8(0x256)?_0x17cf61:Number(_0x17cf61);return Number[_0x425bc8(0x2c3)](_0x36cad6)?_0x36cad6:null;}function ks(_0x57b4dc,_0x70bd96,_0x5b3d6a,_0x3f5e42){const _0x5f42bc=_0x354fcb;let _0x22ee98=Os(_0x57b4dc);return _0x22ee98==null?_0x3f5e42:Math[_0x5f42bc(0x1b3)](_0x70bd96,Math['min'](_0x5b3d6a,Math[_0x5f42bc(0x40b)](_0x22ee98)));}function As(_0x544972,_0x43aec0){const _0x54c2e8=_0x354fcb;let _0x424486=_0x30f9db['deepClone'](_0x544972),_0x219d11=_0x43aec0[_0x54c2e8(0x22e)]===!0x0,_0x2b9516=new Map(),_0x5136e5=_0x43aec0[_0x54c2e8(0x213)]??(()=>'view-'+_0x3ba5f0(0x8)),_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)];return _0x43aec0[_0x54c2e8(0x3fd)]&&(_0x8a0b8a=_0x424486[_0x54c2e8(0x3f8)]['map'](_0x35f86=>{const _0xf541=_0x54c2e8;let _0x1f032b=_0x5136e5();return _0x2b9516[_0xf541(0x1a1)](_0x35f86,_0x1f032b),_0x1f032b;})),{..._0x424486,'id':_0x43aec0['id'],'name':_0x43aec0['name'],'records':_0x219d11?_0x424486[_0x54c2e8(0x45a)]:{},'recordOrder':_0x219d11?_0x424486[_0x54c2e8(0x22d)]:[],'rowIndex':_0x219d11?_0x424486[_0x54c2e8(0x290)]:{},'rowId':_0x219d11?_0x424486[_0x54c2e8(0x474)]:{},'cellData':_0x219d11?_0x424486[_0x54c2e8(0x1cf)]:{},'resources':_0x219d11?_0x424486[_0x54c2e8(0x358)]:{},'viewOrder':_0x8a0b8a,'views':Object['fromEntries'](Object[_0x54c2e8(0x1e2)](_0x424486['views']??{})['map'](([_0xe26fb1,_0x8c129])=>{const _0x5ee79d=_0x54c2e8;let _0x40ad41=_0x2b9516[_0x5ee79d(0x4a8)](_0xe26fb1)??(_0x43aec0['regenerateViewIds']?_0x5136e5():_0xe26fb1);return[_0x40ad41,{..._0x8c129,'id':_0x40ad41,'tableId':_0x43aec0['id']}];}))};}var js=_0x354fcb(0x4e6),Ms=_0x354fcb(0x3fe);const Ns={},Ps={};function Fs(_0x24afd0){const _0x127f33=_0x354fcb;return new z()[_0x127f33(0x2b9)](_0x24afd0);}function Is(_0x25e50b){const _0x14db31=_0x354fcb;return _0x25e50b[_0x14db31(0x1bc)][_0x14db31(0x29b)](_0x3f97e2=>({'unitId':_0x25e50b[_0x14db31(0x278)],'sheetId':_0x25e50b[_0x14db31(0x1c3)],'range':{'startRow':_0x3f97e2[_0x14db31(0x21b)],'endRow':_0x3f97e2[_0x14db31(0x21b)],'startColumn':_0x3f97e2[_0x14db31(0x1ea)],'endColumn':_0x3f97e2['col']}}));}function Ls(_0x2cda77,_0x5b8d9c){const _0x13f5c1=_0x354fcb;return{[_0x2cda77]:Object[_0x13f5c1(0x2e8)](_0x5b8d9c[_0x13f5c1(0x29b)](_0x388dae=>[_0x388dae,'1']))};}let Rs=class extends _0x1589db{constructor(_0x354736,_0x1186bc){const _0x4bce20=_0x354fcb;super(),this[_0x4bce20(0x419)]=_0x354736,this[_0x4bce20(0x432)]=_0x1186bc,this[_0x4bce20(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x3aa156=_0x354fcb;this[_0x3aa156(0x419)][_0x3aa156(0x2f4)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x1a6d44=>this[_0x3aa156(0x180)](_0x1a6d44[_0x3aa156(0x211)])}),this[_0x3aa156(0x1b4)](_0x5b4066(()=>{const _0x283288=_0x3aa156;this[_0x283288(0x419)]['remove'](Q['id']);}));}[_0x354fcb(0x2b3)](_0x4b5f7e,_0x367348){const _0x305843=_0x354fcb;let _0x18014a=this[_0x305843(0x432)]['getUnit'](_0x4b5f7e,_0x28d752[_0x305843(0x201)]);return(_0x18014a==null?void 0x0:_0x18014a[_0x305843(0x1f9)]()[_0x305843(0x2ba)][_0x367348])??null;}['_getJson1DirtyData'](_0x4f20e4){const _0x228b01=_0x354fcb;if(_0x4f20e4['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x4f20e4[_0x228b01(0x278)]||!_0x4f20e4['op'])return{'clearDependencyTreeCache':this[_0x228b01(0x376)](),'forceCalculation':!0x0};let _0x4de89c=Fs(_0x4f20e4['op']),_0x15d9b1=this[_0x228b01(0x4cb)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c);if(_0x15d9b1[_0x228b01(0x458)])return{'clearDependencyTreeCache':Ls(_0x4f20e4['unitId'],_0x15d9b1),'forceCalculation':!0x0};let _0x364d3d=Object[_0x228b01(0x1e2)](this[_0x228b01(0x276)](_0x4f20e4[_0x228b01(0x278)],_0x4de89c))[_0x228b01(0x2a2)](([_0x11bd78,_0x217be9])=>Is({'unitId':_0x4f20e4[_0x228b01(0x278)],'tableId':_0x11bd78,'patches':_0x217be9}));return _0x364d3d[_0x228b01(0x458)]?{'dirtyRanges':_0x364d3d}:{};}[_0x354fcb(0x4cb)](_0x414915,_0xb891b9){const _0x3bac7d=_0x354fcb;let _0xc6471f=_0xb891b9[_0x3bac7d(0x397)](_0x471577=>_0x471577[_0x3bac7d(0x2d9)]!=='cell')[_0x3bac7d(0x2a2)](_0x245c38=>_0x245c38[_0x3bac7d(0x1c3)]?[_0x245c38[_0x3bac7d(0x1c3)]]:this[_0x3bac7d(0x3b1)](_0x414915));return Array['from'](new Set(_0xc6471f));}['_groupCellInvalidations'](_0xa0cff7,_0x429082){let _0x40ebad=new Set();return _0x429082['reduce']((_0x3f1384,_0x12ff2e)=>{const _0x7ccbba=_0x48d8;let _0x453554=this[_0x7ccbba(0x3bf)](_0xa0cff7,_0x12ff2e);if(!_0x453554)return _0x3f1384;let _0x3e8e59=_0x12ff2e[_0x7ccbba(0x1c3)]+':'+_0x453554[_0x7ccbba(0x21b)]+':'+_0x453554[_0x7ccbba(0x1ea)];return _0x40ebad[_0x7ccbba(0x23f)](_0x3e8e59)||(_0x40ebad['add'](_0x3e8e59),_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]=_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]??[],_0x3f1384[_0x12ff2e[_0x7ccbba(0x1c3)]]['push'](_0x453554)),_0x3f1384;},{});}[_0x354fcb(0x3bf)](_0x2ee441,_0x363579){const _0x278e64=_0x354fcb;if(_0x363579[_0x278e64(0x2d9)]!==_0x278e64(0x4eb))return null;if(_0x363579[_0x278e64(0x21b)]!=null&&_0x363579[_0x278e64(0x26e)]!=null)return{'row':_0x363579[_0x278e64(0x21b)],'col':_0x363579['column'],'value':null};if(!_0x363579['recordId']||!_0x363579[_0x278e64(0x46e)])return null;let _0x197cfb=this[_0x278e64(0x2b3)](_0x2ee441,_0x363579[_0x278e64(0x1c3)]);if(!_0x197cfb)return null;let _0x5a3419=_t(_0x197cfb,_0x363579[_0x278e64(0x4bb)],_0x363579['fieldId']);return _0x5a3419?{'row':_0x5a3419[_0x278e64(0x21b)],'col':_0x5a3419[_0x278e64(0x1ea)],'value':null}:null;}['_getAllTableIds'](_0xf8076e){const _0xa067df=_0x354fcb;let _0x238e4c=this[_0xa067df(0x432)]['getUnit'](_0xf8076e,_0x28d752[_0xa067df(0x201)]);return Object['values']((_0x238e4c==null?void 0x0:_0x238e4c[_0xa067df(0x1f9)]()[_0xa067df(0x2ba)])??{})['map'](_0x37c321=>_0x37c321['id']);}[_0x354fcb(0x376)](){const _0xeb6522=_0x354fcb;let _0x346086=this['_univerInstanceService'][_0xeb6522(0x3c4)](_0x28d752['UNIVER_BASE'])[_0xeb6522(0x29b)](_0x118c62=>Ls(_0x118c62[_0xeb6522(0x422)](),Object['keys'](_0x118c62[_0xeb6522(0x1f9)]()[_0xeb6522(0x2ba)])));return Object[_0xeb6522(0x2e7)]({},..._0x346086);}};Rs=X([Y(0x0,_0x35d62c),Y(0x1,_0x3414e2)],Rs);let zs=class extends _0x1589db{constructor(_0x475020,_0x548a70,_0x3b4271,_0x388d1a){const _0x93894e=_0x354fcb;super(),this[_0x93894e(0x2ee)]=_0x475020,this[_0x93894e(0x432)]=_0x548a70,this[_0x93894e(0x4ea)]=_0x3b4271,this[_0x93894e(0x36b)]=_0x388d1a,G(this,_0x93894e(0x297),new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,'_scheduledSuperTableSyncs',new Set()),G(this,_0x93894e(0x20f),Promise[_0x93894e(0x2c1)]()),G(this,'_applyingFormulaResults',!0x1),this[_0x93894e(0x1bd)]();}[_0x354fcb(0x1bd)](){const _0x460ddf=_0x354fcb;this['_univerInstanceService'][_0x460ddf(0x3c4)](_0x28d752[_0x460ddf(0x201)])['forEach'](_0x11dd6b=>{const _0x17149=_0x460ddf;this[_0x17149(0x2f8)](_0x11dd6b);}),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x2ae)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](({unit:_0x4efc33})=>{this['_scheduleSuperTableSync'](_0x4efc33);})),this[_0x460ddf(0x1b4)](this[_0x460ddf(0x432)][_0x460ddf(0x275)](_0x28d752[_0x460ddf(0x201)])[_0x460ddf(0x30f)](_0x7c5dea=>{const _0xaf2307=_0x460ddf;this['_enqueueFormulaSync'](()=>this[_0xaf2307(0x496)](_0x7c5dea[_0xaf2307(0x422)]()));})),this['disposeWithMe'](this[_0x460ddf(0x2ee)][_0x460ddf(0x31d)](_0x2f683b=>this[_0x460ddf(0x208)](_0x2f683b)));}[_0x354fcb(0x208)](_0x2ec9e7){const _0x1a6ff1=_0x354fcb;if(_0x2ec9e7['id']===_0x2d710f['id']){Vs(_0x2ec9e7[_0x1a6ff1(0x211)])&&this[_0x1a6ff1(0x52e)](_0x2ec9e7['params']);return;}if(this[_0x1a6ff1(0x30c)]||_0x2ec9e7['id']!==Q['id'])return;let _0x39afaa=Bs(_0x2ec9e7[_0x1a6ff1(0x211)])?_0x2ec9e7[_0x1a6ff1(0x211)]:void 0x0,_0xc6c36b=_0x39afaa!=null&&_0x39afaa[_0x1a6ff1(0x278)]?[this[_0x1a6ff1(0x432)][_0x1a6ff1(0x2e5)](_0x39afaa[_0x1a6ff1(0x278)],_0x28d752[_0x1a6ff1(0x201)])]['filter'](_0x55af83=>!!_0x55af83):this['_univerInstanceService'][_0x1a6ff1(0x3c4)](_0x28d752[_0x1a6ff1(0x201)]),_0xcd7450=_0x39afaa==null?void 0x0:_0x39afaa['op'];_0xc6c36b[_0x1a6ff1(0x461)](_0x33212c=>{const _0x3f04db=_0x1a6ff1;let _0x2624d0=_0xcd7450?Fs(_0xcd7450):[];(!_0xcd7450||_0x2624d0[_0x3f04db(0x257)](_0x2e0535=>_0x2e0535[_0x3f04db(0x2d9)]!=='cell'))&&this[_0x3f04db(0x2f8)](_0x33212c);});}[_0x354fcb(0x2f8)](_0x376a20){const _0x297a0c=_0x354fcb;let _0x175df6=_0x376a20[_0x297a0c(0x422)]();this[_0x297a0c(0x361)][_0x297a0c(0x23f)](_0x175df6)||(this[_0x297a0c(0x361)]['add'](_0x175df6),this[_0x297a0c(0x294)](async()=>{const _0x989283=_0x297a0c;this[_0x989283(0x361)]['delete'](_0x175df6),await this[_0x989283(0x380)](_0x376a20);}));}async[_0x354fcb(0x380)](_0x156a8d){const _0x5c8ba7=_0x354fcb;let _0x5daf55=_0x156a8d[_0x5c8ba7(0x422)](),_0x412a3e=this['_formulaService'][_0x5c8ba7(0x515)](_0x156a8d[_0x5c8ba7(0x1f9)]()),_0x58059e=new Set(_0x412a3e[_0x5c8ba7(0x29b)](({tableName:_0x3a0876})=>_0x3a0876)),_0x583753=this[_0x5c8ba7(0x18f)]['get'](_0x5daf55)??new Set();for(let _0x5f0e25 of _0x583753)if(!_0x58059e['has'](_0x5f0e25)&&!await this[_0x5c8ba7(0x25a)](_0x5d6472['id'],{'unitId':_0x5daf55,'tableName':_0x5f0e25}))return;for(let {tableName:_0x2f9ebe,reference:_0x5aeb28}of _0x412a3e)if(!await this[_0x5c8ba7(0x25a)](_0x33aa29['id'],{'unitId':_0x5daf55,'tableName':_0x2f9ebe,'reference':_0x5aeb28}))return;this[_0x5c8ba7(0x18f)][_0x5c8ba7(0x1a1)](_0x5daf55,_0x58059e);}async[_0x354fcb(0x496)](_0xd52789){const _0x171084=_0x354fcb;let _0x4035e8=this['_registeredSuperTableNames'][_0x171084(0x4a8)](_0xd52789)??new Set();for(let _0x409325 of _0x4035e8)if(!await this[_0x171084(0x25a)](_0x5d6472['id'],{'unitId':_0xd52789,'tableName':_0x409325}))return;this[_0x171084(0x18f)][_0x171084(0x4f4)](_0xd52789);}async[_0x354fcb(0x25a)](_0x3b4e35,_0x3ffd53){const _0x37b5e6=_0x354fcb;return!this[_0x37b5e6(0x44d)]&&await this[_0x37b5e6(0x2ee)]['executeCommand'](_0x3b4e35,_0x3ffd53,{'onlyLocal':!0x0})&&!this[_0x37b5e6(0x44d)];}[_0x354fcb(0x294)](_0x16d159){const _0x18740e=_0x354fcb;this[_0x18740e(0x20f)]=this[_0x18740e(0x20f)][_0x18740e(0x3c5)](_0x16d159,_0x16d159)['catch'](()=>void 0x0);}[_0x354fcb(0x52e)](_0x392a2f){const _0x2f444d=_0x354fcb;let _0x4aca71=this[_0x2f444d(0x432)]['getAllUnitsForType'](_0x28d752[_0x2f444d(0x201)]);if(!_0x4aca71[_0x2f444d(0x257)](_0x3c6bbd=>{const _0x173863=_0x2f444d;var _0x151c59;return((_0x151c59=_0x392a2f[_0x173863(0x50f)])==null?void 0x0:_0x151c59[_0x3c6bbd['getUnitId']()])!=null;}))return;let _0x1bc20a=_0x4aca71[_0x2f444d(0x2a2)](_0x46a28f=>Zi(_0x46a28f[_0x2f444d(0x1f9)](),_0x392a2f));if(!_0x1bc20a[_0x2f444d(0x458)]){this[_0x2f444d(0x36b)]['markResultApplied'](_0x2001ae[_0x2f444d(0x507)],_0x392a2f);return;}let _0x26b845=new W(),_0x41204c=_0x1bc20a[_0x2f444d(0x2a2)](_0x539c22=>Is({'unitId':_0x539c22[_0x2f444d(0x278)],'tableId':_0x539c22['tableId'],'patches':_0x539c22[_0x2f444d(0x1bc)]}));this['_applyingFormulaResults']=!0x0,(async()=>{const _0x33bac1=_0x2f444d;for(let _0x201585 of _0x1bc20a){let _0x3fac29=this[_0x33bac1(0x432)][_0x33bac1(0x2e5)](_0x201585[_0x33bac1(0x278)],_0x28d752[_0x33bac1(0x201)]);_0x3fac29&&await this[_0x33bac1(0x2ee)][_0x33bac1(0x260)](Q['id'],{'unitId':_0x201585['unitId'],'op':_0x26b845[_0x33bac1(0x511)](_0x3fac29[_0x33bac1(0x1f9)](),_0x201585[_0x33bac1(0x1c3)],_0x201585['patches']),'trigger':_0x2d710f['id']},{'onlyLocal':!0x0});}await this['_commandService'][_0x33bac1(0x260)](_0x46501c['id'],{'dirtyRanges':_0x41204c},{'onlyLocal':!0x0});})()[_0x2f444d(0x233)](()=>{const _0x29ffdb=_0x2f444d;this[_0x29ffdb(0x30c)]=!0x1,this[_0x29ffdb(0x36b)]['markResultApplied'](_0x2001ae['BASE'],_0x392a2f);});}};zs=X([Y(0x0,_0x3ff846),Y(0x1,_0x3414e2),Y(0x2,_0x42d70a(_0x4f3c26)),Y(0x3,_0x42d70a(_0x1a1f33))],zs);function Bs(_0x3cfb51){const _0x151453=_0x354fcb;return typeof _0x3cfb51=='object'&&!!_0x3cfb51&&'unitId'in _0x3cfb51&&typeof _0x3cfb51[_0x151453(0x278)]==_0x151453(0x471)&&'op'in _0x3cfb51&&Array['isArray'](_0x3cfb51['op']);}function Vs(_0x143a5e){return typeof _0x143a5e=='object'&&!!_0x143a5e&&'unitData'in _0x143a5e&&'unitOtherData'in _0x143a5e;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x1589db{constructor(_0x367cee,_0x2268be,_0x4d44bd,_0x4c53fa){const _0x41e617=_0x354fcb;super(),this[_0x41e617(0x1b8)]=_0x367cee,this['_commandService']=_0x2268be,this[_0x41e617(0x487)]=_0x4d44bd,this[_0x41e617(0x2cf)]=_0x4c53fa,this[_0x41e617(0x2cf)][_0x41e617(0x3c4)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x461)](_0x55b19f=>this['_registerUnitPermissionPoints'](_0x55b19f[_0x41e617(0x422)]())),this[_0x41e617(0x1b4)](this[_0x41e617(0x2cf)][_0x41e617(0x2ae)](_0x28d752['UNIVER_BASE'])[_0x41e617(0x30f)](({unit:_0x49f520})=>this[_0x41e617(0x29c)](_0x49f520[_0x41e617(0x422)]()))),this[_0x41e617(0x1b4)](this['_commandService'][_0x41e617(0x1bf)]((_0x41a979,_0x4ed70b)=>this[_0x41e617(0x41a)](_0x41a979,_0x4ed70b))),this['disposeWithMe'](this['_instanceService'][_0x41e617(0x275)](_0x28d752[_0x41e617(0x201)])[_0x41e617(0x30f)](_0x604213=>{const _0x47a7ed=_0x41e617;this['_injector']['get'](_0x1e71b2)[_0x47a7ed(0x247)](_0x604213[_0x47a7ed(0x422)]()),Rr(this[_0x47a7ed(0x487)],_0x604213['getUnitId']());}));}[_0x354fcb(0x29c)](_0xec7c95){const _0x31d0db=_0x354fcb;Tr['forEach'](_0x437e93=>{const _0x2079e4=_0x48d8;let _0x17ff0f=Pr(_0xec7c95,_0xec7c95,_0x437e93);this[_0x2079e4(0x487)]['getPermissionPoint'](_0x17ff0f['id'])||this[_0x2079e4(0x487)][_0x2079e4(0x2da)](_0x17ff0f);}),this[_0x31d0db(0x1b8)][_0x31d0db(0x4a8)](_0x1e71b2)[_0x31d0db(0x3c9)]({'unitId':_0xec7c95,'objectId':_0xec7c95,'objectType':_0x56e21f['Base']});}[_0x354fcb(0x41a)](_0x85ca7f,_0x49929e){const _0x764ee=_0x354fcb;var _0x18b33a;if(_0x49929e!=null&&_0x49929e[_0x764ee(0x382)]||_0x49929e!=null&&_0x49929e[_0x764ee(0x38f)])return;let _0x2eeaa2=tc(_0x85ca7f['params'])?_0x85ca7f[_0x764ee(0x211)]:void 0x0;if(_0x49929e!=null&&_0x49929e['onlyLocal']&&_0x85ca7f['id']===_0x764ee(0x4d6)&&(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x1ad)])===_0x2d710f['id'])return;let _0x51db7e=Gs(_0x85ca7f['id']),_0x196083=Ws(_0x2eeaa2==null?void 0x0:_0x2eeaa2[_0x764ee(0x278)],_0x49929e)??(_0x51db7e?(_0x18b33a=this[_0x764ee(0x2cf)]['getCurrentUnitOfType'](_0x28d752[_0x764ee(0x201)]))==null?void 0x0:_0x18b33a[_0x764ee(0x422)]():void 0x0);if(!_0x196083||this[_0x764ee(0x2cf)][_0x764ee(0x3ed)](_0x196083)!==_0x28d752[_0x764ee(0x201)])return;if(_0x51db7e){if(!Fr(this['_permissionService'],_0x196083,_0x196083,_0x51db7e))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083),new _0x1cfc9b(_0x764ee(0x34b)+_0x391870[_0x51db7e]+_0x764ee(0x477));return;}if(Hs['has'](_0x85ca7f['id'])||!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x25f))&&!_0x85ca7f['id'][_0x764ee(0x254)](_0x764ee(0x2eb)))return;let _0x6170bf=this['_instanceService'][_0x764ee(0x2e5)](_0x196083,_0x28d752[_0x764ee(0x201)]),_0x1c4c06=_0x6170bf?Ks(_0x6170bf,_0x2eeaa2??{},_0x85ca7f['id']):[];if(!_0x6170bf||!zr(this[_0x764ee(0x487)],_0x196083,_0x1c4c06))throw this[_0x764ee(0x1b8)][_0x764ee(0x4a8)](_0x359424)[_0x764ee(0x4e5)](_0x196083,_0x1c4c06),new _0x1cfc9b(_0x764ee(0x47f));}};Us=X([Y(0x0,_0x42d70a(_0xcce289)),Y(0x1,_0x3ff846),Y(0x2,_0x211d15),Y(0x3,_0x3414e2)],Us);function Ws(_0x580038,_0x3db079){const _0x4b903a=_0x354fcb;return typeof _0x580038==_0x4b903a(0x471)?_0x580038:typeof(_0x3db079==null?void 0x0:_0x3db079[_0x4b903a(0x278)])==_0x4b903a(0x471)?_0x3db079[_0x4b903a(0x278)]:void 0x0;}function Gs(_0x33b991){const _0x9dea7=_0x354fcb;if(_0x33b991===_0x9dea7(0x4fd)||_0x33b991==='bases-exchange-client.operation.export-base-by-format')return _0x391870[_0x9dea7(0x479)];if(_0x33b991[_0x9dea7(0x254)](_0x9dea7(0x32a))||_0x33b991['startsWith'](_0x9dea7(0x3b9)))return _0x391870['Comment'];}function Ks(_0x46a752,_0x4bf579,_0x144478){const _0x1fcf06=_0x354fcb;if(_0x144478===_0x1fcf06(0x4d6)&&ec(_0x4bf579['op']))return qs(_0x46a752,_0x4bf579['op']);let _0x25492b=new Set(),_0x2d94cd=Zs(_0x4bf579,_0x1fcf06(0x513)),_0x556ea3=typeof _0x4bf579['tableId']==_0x1fcf06(0x471)?_0x4bf579['tableId']:_0x2d94cd[0x0];if(_0x2d94cd[_0x1fcf06(0x461)](_0x58a5f9=>_0x25492b[_0x1fcf06(0x35e)](K(_0x58a5f9))),!_0x556ea3)return[..._0x25492b];let _0x3e0171=_0x46a752[_0x1fcf06(0x1f9)]()[_0x1fcf06(0x2ba)][_0x556ea3],_0x3ffead=new Set(Zs(_0x4bf579,'field')),_0x1a738=new Set(Zs(_0x4bf579,_0x1fcf06(0x52b))),_0x2f9ea6=new Set(Zs(_0x4bf579,'view'));return Qs(_0x3e0171,_0x4bf579[_0x1fcf06(0x1bc)],_0x1a738,_0x3ffead),$s(_0x4bf579,_0x3ffead),_0x3ffead[_0x1fcf06(0x461)](_0x49c218=>_0x25492b[_0x1fcf06(0x35e)](q(_0x556ea3,_0x49c218))),_0x1a738['forEach'](_0x3fb910=>_0x25492b[_0x1fcf06(0x35e)](J(_0x556ea3,_0x3fb910))),_0x2f9ea6[_0x1fcf06(0x461)](_0x34a1be=>_0x25492b[_0x1fcf06(0x35e)](Mr(_0x556ea3,_0x34a1be))),[..._0x25492b];}function qs(_0xec282c,_0x51b500){const _0x18455b=_0x354fcb;let _0x559f26=_0xec282c[_0x18455b(0x1f9)](),_0x86ac0=new z()[_0x18455b(0x2b9)](_0x51b500),_0x4011a8=Js(_0x51b500),_0x5b9498=new Set();return _0x86ac0[_0x18455b(0x461)](_0x113afa=>{const _0x4c1738=_0x18455b;var _0x5c9b74,_0x2c7432;let {tableId:_0x335ab3}=_0x113afa;if(!_0x335ab3)return;_0x5b9498[_0x4c1738(0x35e)](K(_0x335ab3));let _0x31ae50=_0x559f26[_0x4c1738(0x2ba)][_0x335ab3],_0x4aba14=_0x113afa['recordId']??(_0x113afa[_0x4c1738(0x21b)]==null||_0x31ae50==null||(_0x5c9b74=_0x31ae50[_0x4c1738(0x474)])==null?void 0x0:_0x5c9b74[_0x113afa[_0x4c1738(0x21b)]]),_0x42d1f0=_0x113afa[_0x4c1738(0x46e)]??(_0x113afa['column']==null||_0x31ae50==null||(_0x2c7432=_0x31ae50[_0x4c1738(0x242)])==null?void 0x0:_0x2c7432[_0x113afa[_0x4c1738(0x26e)]]);_0x4aba14&&_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4aba14)),_0x42d1f0&&_0x5b9498['add'](q(_0x335ab3,_0x42d1f0)),_0x113afa['viewId']&&_0x5b9498['add'](Mr(_0x335ab3,_0x113afa[_0x4c1738(0x366)])),(_0x113afa[_0x4c1738(0x2d9)]==='table'||_0x4011a8[_0x4c1738(0x23f)](_0x335ab3))&&_0x31ae50&&(Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])['forEach'](_0x5b409e=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x5b409e))),Object['keys'](_0x31ae50['records'])[_0x4c1738(0x461)](_0x4ffe3b=>_0x5b9498[_0x4c1738(0x35e)](J(_0x335ab3,_0x4ffe3b))),Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x38b)])['forEach'](_0x2ec2c7=>_0x5b9498[_0x4c1738(0x35e)](Mr(_0x335ab3,_0x2ec2c7)))),_0x113afa[_0x4c1738(0x2d9)]===_0x4c1738(0x52b)&&_0x31ae50&&Object[_0x4c1738(0x51b)](_0x31ae50[_0x4c1738(0x480)])[_0x4c1738(0x461)](_0x4810ac=>_0x5b9498[_0x4c1738(0x35e)](q(_0x335ab3,_0x4810ac)));}),_0x86ac0[_0x18455b(0x458)]===0x0&&Xs(_0x51b500,_0x18455b(0x3e3))&&Object[_0x18455b(0x51b)](_0x559f26[_0x18455b(0x2ba)])[_0x18455b(0x461)](_0x2df321=>_0x5b9498[_0x18455b(0x35e)](K(_0x2df321))),[..._0x5b9498];}function Js(_0x1e85c9){let _0x418d0a=new Set(),_0x3a5a63=_0x4a314c=>{const _0x295cbc=_0x48d8;Array[_0x295cbc(0x354)](_0x4a314c)&&_0x4a314c[_0x295cbc(0x461)]((_0xa0adbd,_0x34bdd5)=>{const _0x3e5021=_0x295cbc;_0xa0adbd===_0x3e5021(0x2ba)&&typeof _0x4a314c[_0x34bdd5+0x1]==_0x3e5021(0x471)&&Ys(_0x4a314c[_0x34bdd5+0x2])&&_0x418d0a[_0x3e5021(0x35e)](_0x4a314c[_0x34bdd5+0x1]),_0x3a5a63(_0xa0adbd);});};return _0x3a5a63(_0x1e85c9),_0x418d0a;}function Ys(_0x4662a5){const _0x570e0f=_0x354fcb;return!!_0x4662a5&&typeof _0x4662a5==_0x570e0f(0x269)&&!Array['isArray'](_0x4662a5)&&('i'in _0x4662a5||'r'in _0x4662a5||'p'in _0x4662a5||'d'in _0x4662a5||'es'in _0x4662a5||_0x570e0f(0x2a9)in _0x4662a5||'et'in _0x4662a5);}function Xs(_0x293b76,_0x335128){const _0x2dfe44=_0x354fcb;return Array[_0x2dfe44(0x354)](_0x293b76)&&_0x293b76[_0x2dfe44(0x257)](_0x17587=>_0x17587===_0x335128||Xs(_0x17587,_0x335128));}function Zs(_0x5113b6,_0x15d260){const _0x15f647=_0x354fcb;let _0x92be61=new Set(),_0x2b1092=_0x15d260+'Id',_0x3c0b3e=_0x15d260+_0x15f647(0x50b),_0x43b28c=(_0x41269e,_0x2f144c='')=>{const _0x3bc08e=_0x15f647;typeof _0x41269e==_0x3bc08e(0x471)?_0x2f144c===_0x2b1092&&_0x92be61['add'](_0x41269e):Array[_0x3bc08e(0x354)](_0x41269e)?_0x2f144c===_0x3c0b3e?_0x41269e[_0x3bc08e(0x461)](_0x4508e8=>{typeof _0x4508e8=='string'&&_0x92be61['add'](_0x4508e8);}):_0x41269e[_0x3bc08e(0x461)](_0x53c905=>_0x43b28c(_0x53c905,_0x2f144c)):tc(_0x41269e)&&Object[_0x3bc08e(0x1e2)](_0x41269e)[_0x3bc08e(0x461)](([_0x109cda,_0x3d29b6])=>{const _0x224578=_0x3bc08e;_0x109cda==='id'&&_0x2f144c===_0x15d260&&typeof _0x3d29b6=='string'?_0x92be61[_0x224578(0x35e)](_0x3d29b6):_0x43b28c(_0x3d29b6,_0x109cda);});};return _0x43b28c(_0x5113b6),[..._0x92be61];}function Qs(_0x8eaf,_0xa278c0,_0x1ec0cc,_0x5b0c46){const _0x16c7c0=_0x354fcb;_0x8eaf&&Array[_0x16c7c0(0x354)](_0xa278c0)&&_0xa278c0[_0x16c7c0(0x461)](_0xeffd78=>{const _0x42b249=_0x16c7c0;if(!tc(_0xeffd78))return;let _0x5a07ec=_0xeffd78;if(typeof _0x5a07ec[_0x42b249(0x21b)]==_0x42b249(0x256)){var _0x30d4df;let _0x3efc48=(_0x30d4df=_0x8eaf['rowId'])==null?void 0x0:_0x30d4df[_0x5a07ec[_0x42b249(0x21b)]];_0x3efc48&&_0x1ec0cc[_0x42b249(0x35e)](_0x3efc48);}if(typeof _0x5a07ec[_0x42b249(0x1ea)]=='number'){var _0x487d3e;let _0x52a9dd=(_0x487d3e=_0x8eaf[_0x42b249(0x242)])==null?void 0x0:_0x487d3e[_0x5a07ec[_0x42b249(0x1ea)]];_0x52a9dd&&_0x5b0c46[_0x42b249(0x35e)](_0x52a9dd);}});}function $s(_0x3d9ad3,_0x2d16d0,_0x1b0bba=''){const _0x2a7dcf=_0x354fcb;_0x3d9ad3&&typeof _0x3d9ad3==_0x2a7dcf(0x269)&&(Array['isArray'](_0x3d9ad3)?_0x3d9ad3['forEach'](_0x5d253b=>$s(_0x5d253b,_0x2d16d0,_0x1b0bba)):tc(_0x3d9ad3)&&Object['entries'](_0x3d9ad3)['forEach'](([_0xc8a885,_0xe6d304])=>{const _0x47ce79=_0x2a7dcf;_0x1b0bba===_0x47ce79(0x1da)&&_0x2d16d0[_0x47ce79(0x35e)](_0xc8a885),$s(_0xe6d304,_0x2d16d0,_0xc8a885);}));}function ec(_0x52ac20){const _0x353187=_0x354fcb;return Array[_0x353187(0x354)](_0x52ac20);}function tc(_0x39ed4e){const _0x1217f1=_0x354fcb;return typeof _0x39ed4e==_0x1217f1(0x269)&&!!_0x39ed4e&&!Array[_0x1217f1(0x354)](_0x39ed4e);}const nc=_0x5d0ae0('base.resource.service');let rc=class{constructor(_0x2fd7b3){const _0x4bc7d7=_0x354fcb;this[_0x4bc7d7(0x432)]=_0x2fd7b3;}[_0x354fcb(0x239)](_0xb004f3){const _0x4494ff=_0x354fcb;return this['_univerInstanceService']['getUnit'](_0xb004f3,_0x28d752[_0x4494ff(0x201)])??null;}[_0x354fcb(0x4f0)](){const _0x16c655=_0x354fcb;return this[_0x16c655(0x432)][_0x16c655(0x3c4)](_0x28d752[_0x16c655(0x201)]);}[_0x354fcb(0x348)](_0x4c8ab4){const _0x2e5f5e=_0x354fcb;return this['_univerInstanceService'][_0x2e5f5e(0x314)](_0x28d752['UNIVER_BASE'],_0x4c8ab4);}};rc=X([Y(0x0,_0x3414e2)],rc);const ic=_0x5d0ae0(_0x354fcb(0x185));var ac=class extends _0x1589db{constructor(..._0x9c961c){const _0x26185b=_0x354fcb;super(..._0x9c961c),G(this,_0x26185b(0x252),new Map());}[_0x354fcb(0x2f4)](_0x354014){const _0xc4c19b=_0x354fcb;return this[_0xc4c19b(0x252)][_0xc4c19b(0x1a1)](_0x354014['type'],_0x354014),_0x5b4066(()=>this[_0xc4c19b(0x252)][_0xc4c19b(0x4f4)](_0x354014[_0xc4c19b(0x33a)]));}[_0x354fcb(0x4a8)](_0xde3bf9){const _0x43d385=_0x354fcb;let _0x8992f=this[_0x43d385(0x252)][_0x43d385(0x4a8)](_0xde3bf9);if(!_0x8992f)throw Error(_0x43d385(0x514)+_0xde3bf9+'\x22\x20is\x20not\x20registered.');return _0x8992f;}['getAll'](){const _0x51691f=_0x354fcb;return Array[_0x51691f(0x4dd)](this[_0x51691f(0x252)]['values']());}};const oc=[Q];let sc=class extends _0xf65dbf{constructor(_0x30151d=Ns,_0x53a119,_0x428ee7,_0x2ff248,_0x3d2e2e,_0x1699f0){const _0x1fcfbe=_0x354fcb;super(),this[_0x1fcfbe(0x4c3)]=_0x30151d,this[_0x1fcfbe(0x1b8)]=_0x53a119,this[_0x1fcfbe(0x2ee)]=_0x428ee7,this[_0x1fcfbe(0x432)]=_0x2ff248,this[_0x1fcfbe(0x47a)]=_0x3d2e2e,this[_0x1fcfbe(0x287)]=_0x1699f0,G(this,_0x1fcfbe(0x1ec),new Map());let {..._0x44cbcd}=_0x18cc98({},Ns,this['_config']);this[_0x1fcfbe(0x47a)]['setConfig']('bases.config',_0x44cbcd),this[_0x1fcfbe(0x432)]['registerCtorForType'](_0x28d752[_0x1fcfbe(0x201)],_0x2563fc),this['_initDependencies'](),this[_0x1fcfbe(0x2fc)](),this[_0x1fcfbe(0x35f)](),this[_0x1fcfbe(0x3a7)]();}[_0x354fcb(0x2d5)](){const _0x4ee581=_0x354fcb;this[_0x4ee581(0x1b8)][_0x4ee581(0x35e)]([Lo]),this['disposeWithMe'](this[_0x4ee581(0x1b8)][_0x4ee581(0x4a8)](_0x3ff846)[_0x4ee581(0x3d8)](Ro)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x3ff846)[_0x4ee581(0x3d8)](zo)),this[_0x4ee581(0x1b4)](this['_injector']['get'](_0x1e71b2)[_0x4ee581(0x1aa)](_0x56e21f['Base'],this['_injector']['get'](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x454062=_0x354fcb;_0x137ee0(this['_injector'],[[rc],[qr],[Rs]]),this[_0x454062(0x432)]['getAllUnitsForType'](_0x28d752['UNIVER_BASE'])['forEach'](_0xfae939=>this[_0x454062(0x384)](_0xfae939[_0x454062(0x422)]())),_0x137ee0(this['_injector'],[[zs],[Us]]);}[_0x354fcb(0x4b2)](){const _0x3bf3ce=_0x354fcb;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x3bf3ce(0x461)](_0x2a4c71=>this[_0x3bf3ce(0x1b8)]['add'](_0x2a4c71));}[_0x354fcb(0x2fc)](){const _0x535040=_0x354fcb;[Aa,so,Ja,wo,go,ho,Ea,wa,xa,qa,Sa,Za,Oo,no,Ta,Xa,Eo,To,Ca,Ka,to,Io,Ga,Qa,co,uo,Ya,oo,Fo,Ao,lo,fo,po,Do,xo,Co,So,_o,yo,bo,vo,...oc]['forEach'](_0xe07c3a=>this['disposeWithMe'](this[_0x535040(0x2ee)][_0x535040(0x3d8)](_0xe07c3a))),oc[_0x535040(0x461)](_0x61b654=>{const _0x37a3e3=_0x535040;var _0x4f46e2;return(_0x4f46e2=this[_0x37a3e3(0x287)])==null?void 0x0:_0x4f46e2['registerSyncingMutations'](_0x61b654);});}[_0x354fcb(0x3a7)](){const _0x4780f4=_0x354fcb;this[_0x4780f4(0x287)]&&(this[_0x4780f4(0x1b4)](this[_0x4780f4(0x432)]['getTypeOfUnitAdded$'](_0x28d752[_0x4780f4(0x201)])['subscribe'](({unit:_0x1b2d05})=>{const _0x44d50f=_0x4780f4;this[_0x44d50f(0x384)](_0x1b2d05['getUnitId']());})),this['disposeWithMe'](this[_0x4780f4(0x432)][_0x4780f4(0x275)](_0x28d752['UNIVER_BASE'])['subscribe'](_0x5a7876=>{const _0x5139d0=_0x4780f4;var _0x2491f6;(_0x2491f6=this[_0x5139d0(0x1ec)][_0x5139d0(0x4a8)](_0x5a7876[_0x5139d0(0x422)]()))==null||_0x2491f6[_0x5139d0(0x3d6)](),this[_0x5139d0(0x1ec)][_0x5139d0(0x4f4)](_0x5a7876[_0x5139d0(0x422)]());})));}[_0x354fcb(0x384)](_0x53a127){const _0x213b82=_0x354fcb;this[_0x213b82(0x287)]&&!this['_baseSyncDisposables'][_0x213b82(0x23f)](_0x53a127)&&this[_0x213b82(0x1ec)][_0x213b82(0x1a1)](_0x53a127,this['_dataSyncPrimaryController'][_0x213b82(0x2b4)](_0x53a127));}[_0x354fcb(0x35f)](){const _0x37b5a1=_0x354fcb;let _0xf7a7ce=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](mr);zn()[_0x37b5a1(0x461)](_0x15020d=>_0xf7a7ce['register'](_0x15020d));let _0x3eb799=this[_0x37b5a1(0x1b8)]['get'](ic),_0x34181e=this[_0x37b5a1(0x1b8)][_0x37b5a1(0x4a8)](ii);$r()['forEach'](_0x11cfc4=>{const _0x3a0e79=_0x37b5a1;_0x3eb799[_0x3a0e79(0x2f4)](_0x11cfc4),_0x34181e[_0x3a0e79(0x37b)](_0x11cfc4);});}};G(sc,_0x354fcb(0x2c2),'BASES_PLUGIN'),G(sc,_0x354fcb(0x296),js),G(sc,_0x354fcb(0x367),Ms),G(sc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),sc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x3414e2),Y(0x4,_0x14686f),Y(0x5,_0x560f5b(_0x274988))],sc);let cc=class extends _0xf65dbf{constructor(_0x342f9b=Ps,_0x366f54,_0x40b9e7,_0x46eefb,_0x2c8419){const _0x5aed90=_0x354fcb;super(),this['_config']=_0x342f9b,this[_0x5aed90(0x1b8)]=_0x366f54,this[_0x5aed90(0x2ee)]=_0x40b9e7,this[_0x5aed90(0x47a)]=_0x46eefb,this[_0x5aed90(0x432)]=_0x2c8419;let {..._0x5817f9}=_0x18cc98({},Ps,this['_config']);this[_0x5aed90(0x47a)][_0x5aed90(0x1ff)](_0x5aed90(0x3b2),_0x5817f9),this['_univerInstanceService'][_0x5aed90(0x434)](_0x28d752[_0x5aed90(0x201)],_0x2563fc),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x5aed90(0x461)](_0x3d4f1b=>this[_0x5aed90(0x1b8)][_0x5aed90(0x35e)](_0x3d4f1b)),oc[_0x5aed90(0x461)](_0x74c51=>this[_0x5aed90(0x1b4)](this[_0x5aed90(0x2ee)]['registerCommand'](_0x74c51)));}};G(cc,_0x354fcb(0x2c2),_0x354fcb(0x292)),G(cc,_0x354fcb(0x296),js),G(cc,_0x354fcb(0x367),Ms),G(cc,_0x354fcb(0x33a),_0x28d752['UNIVER_BASE']),cc=X([_0x1bcd22(_0x534d74,_0x36289a),Y(0x1,_0x42d70a(_0xcce289)),Y(0x2,_0x3ff846),Y(0x3,_0x14686f),Y(0x4,_0x3414e2)],cc);function lc(_0x264770){const _0x1f22ef=_0x354fcb;let _0x2a2281=Cc(_0x264770['query']);if(!_0x2a2281)return{'query':'','total':0x0,'matches':[]};let _0x5a71e1=[],_0x5eaa92=[];for(let _0x513e01=0x0;_0x513e01<_0x264770[_0x1f22ef(0x227)][_0x1f22ef(0x458)];_0x513e01++){if(!(_0x513e01 in _0x264770[_0x1f22ef(0x227)]))continue;let _0x1aafe=_0x264770[_0x1f22ef(0x513)]['fields'][_0x264770[_0x1f22ef(0x227)][_0x513e01]];_0x1aafe&&_0x5eaa92[_0x1f22ef(0x1f3)]({'field':_0x1aafe,'fieldIndex':_0x513e01});}_0x264770['rows'][_0x1f22ef(0x461)]((_0x4d92b6,_0x1db4c8)=>{const _0x39264e=_0x1f22ef;_0x5eaa92[_0x39264e(0x461)](({field:_0x483b50,fieldIndex:_0x16a618})=>{const _0xad4f08=_0x39264e;let _0x34b712=uc(_0x4d92b6[_0xad4f08(0x1da)][_0x483b50['id']],_0x483b50);if(!_0x34b712)return;let _0x285015=Sc(_0x2a2281,_0x34b712['searchTexts']);_0x285015<=0x0||_0x5a71e1[_0xad4f08(0x1f3)]({'recordId':_0x4d92b6[_0xad4f08(0x4bb)],'fieldId':_0x483b50['id'],'fieldType':_0x483b50[_0xad4f08(0x33a)],'text':_0x34b712[_0xad4f08(0x369)],'score':_0x285015,'rowIndex':_0x1db4c8,'fieldIndex':_0x16a618});});}),_0x5a71e1[_0x1f22ef(0x3db)]((_0x333d15,_0x456a2d)=>_0x456a2d[_0x1f22ef(0x2d8)]-_0x333d15[_0x1f22ef(0x2d8)]||_0x333d15['rowIndex']-_0x456a2d[_0x1f22ef(0x290)]||_0x333d15[_0x1f22ef(0x4b4)]-_0x456a2d[_0x1f22ef(0x4b4)]);let _0x3b213e=_0x264770[_0x1f22ef(0x1e7)]==null?_0x5a71e1:_0x5a71e1['slice'](0x0,Math[_0x1f22ef(0x1b3)](0x0,_0x264770[_0x1f22ef(0x1e7)]));return{'query':_0x2a2281,'total':_0x5a71e1['length'],'matches':Tc(_0x3b213e)};}function uc(_0x57e20d,_0x211660){const _0x1d8644=_0x354fcb;let _0x10f9b9=[];for(let _0x2a7f96 of fc(_0x57e20d,_0x211660)){let _0x346552=Cc(_0x2a7f96);_0x346552&&_0x10f9b9[_0x1d8644(0x1f3)](_0x346552);}return _0x10f9b9[_0x1d8644(0x458)]?{'displayText':dc(_0x57e20d,_0x211660),'searchTexts':wc(_0x10f9b9)}:null;}function dc(_0x1496fa,_0x47c7fd){const _0x2aef53=_0x354fcb;switch(_0x47c7fd[_0x2aef53(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94[_0x2aef53(0x283)]:case _0x19bf94[_0x2aef53(0x223)]:return pc(_0x1496fa,_0x47c7fd)['join'](',\x20');case _0x19bf94['Link']:return gc(_0x1496fa);case _0x19bf94['Date']:case _0x19bf94[_0x2aef53(0x253)]:case _0x19bf94[_0x2aef53(0x347)]:return _c(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x271)]:case _0x19bf94[_0x2aef53(0x19c)]:return vc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x1ba)]:return yc(_0x1496fa,_0x47c7fd);case _0x19bf94[_0x2aef53(0x19e)]:return _0x1496fa?_0x2aef53(0x1a9):_0x2aef53(0x530);case _0x19bf94[_0x2aef53(0x46f)]:return bc(_0x1496fa)[_0x2aef53(0x4b5)](',\x20');default:return xc(_0x1496fa);}}function fc(_0x4c437c,_0x57ba32){const _0x4d3a03=_0x354fcb;switch(_0x57ba32[_0x4d3a03(0x33a)]){case _0x19bf94['SingleSelect']:case _0x19bf94['MultiSelect']:case _0x19bf94[_0x4d3a03(0x223)]:{let _0x1d22a5=pc(_0x4c437c,_0x57ba32);if(Array['isArray'](_0x4c437c)){let _0x40e804=[..._0x1d22a5];for(let _0x2e7bf7=0x0;_0x2e7bf7<_0x4c437c[_0x4d3a03(0x458)];_0x2e7bf7++)_0x2e7bf7 in _0x4c437c&&_0x40e804['push'](String(_0x4c437c[_0x2e7bf7]));return _0x40e804;}return _0x4c437c==null?_0x1d22a5:[..._0x1d22a5,String(_0x4c437c)];}case _0x19bf94[_0x4d3a03(0x4db)]:{let _0x157eba=hc(_0x4c437c);return[_0x157eba[_0x4d3a03(0x4d2)],_0x157eba[_0x4d3a03(0x1c7)]];}case _0x19bf94['Date']:case _0x19bf94[_0x4d3a03(0x253)]:case _0x19bf94[_0x4d3a03(0x347)]:return[_c(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x271)]:case _0x19bf94[_0x4d3a03(0x19c)]:return[vc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94[_0x4d3a03(0x1ba)]:return[yc(_0x4c437c,_0x57ba32),xc(_0x4c437c)];case _0x19bf94['Checkbox']:return _0x4c437c?[_0x4d3a03(0x1a9),'Yes',_0x4d3a03(0x533)]:[_0x4d3a03(0x530),'No',_0x4d3a03(0x4bd)];case _0x19bf94[_0x4d3a03(0x46f)]:return bc(_0x4c437c);default:return[xc(_0x4c437c)];}}function pc(_0x3190ba,_0x22a0fa){const _0x36ff6d=_0x354fcb;var _0x56f0ec;let _0x5e372a=Array[_0x36ff6d(0x354)]((_0x56f0ec=_0x22a0fa[_0x36ff6d(0x342)])==null?void 0x0:_0x56f0ec[_0x36ff6d(0x392)])?_0x22a0fa[_0x36ff6d(0x342)][_0x36ff6d(0x392)]:[],_0x4ad766=[];if(Array['isArray'](_0x3190ba)){for(let _0x31202f=0x0;_0x31202f<_0x3190ba[_0x36ff6d(0x458)];_0x31202f++){if(!(_0x31202f in _0x3190ba))continue;let _0x50c2b9=String(_0x3190ba[_0x31202f]);_0x50c2b9&&_0x4ad766[_0x36ff6d(0x1f3)](mc(_0x5e372a,_0x50c2b9));}return _0x4ad766;}if(_0x3190ba!=null){let _0x3f37b2=String(_0x3190ba);_0x3f37b2&&_0x4ad766['push'](mc(_0x5e372a,_0x3f37b2));}return _0x4ad766;}function mc(_0x22f599,_0x11729b){const _0x2b0609=_0x354fcb;for(let _0x26f74c of _0x22f599){if(typeof _0x26f74c==_0x2b0609(0x471)&&_0x26f74c===_0x11729b)return _0x26f74c;if(_0x26f74c&&typeof _0x26f74c==_0x2b0609(0x269)){let _0x534e75=_0x26f74c;if(String(_0x534e75['id']??_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b||String(_0x534e75[_0x2b0609(0x1e0)]??'')===_0x11729b)return String(_0x534e75[_0x2b0609(0x1e0)]??_0x534e75['id']??_0x11729b);}}return _0x11729b;}function hc(_0x1dec6c){const _0xef2fee=_0x354fcb;if(_0x1dec6c&&typeof _0x1dec6c=='object'&&!Array[_0xef2fee(0x354)](_0x1dec6c)){let _0x1decc5=_0x1dec6c;return{'text':String(_0x1decc5['text']??_0x1decc5['url']??''),'url':String(_0x1decc5['url']??'')};}return{'text':xc(_0x1dec6c),'url':xc(_0x1dec6c)};}function gc(_0x1d57c1){let _0x432193=hc(_0x1d57c1);return _0x432193['text']||_0x432193['url'];}function _c(_0x30562c,_0x693337){const _0x47a581=_0x354fcb;return typeof _0x30562c!=_0x47a581(0x256)||!Number[_0x47a581(0x2c3)](_0x30562c)?'':mn(_0x30562c,_0x693337['config']);}function vc(_0x48a3b9,_0x1dde41){const _0x7520cf=_0x354fcb;let _0x457724=typeof _0x48a3b9=='number'?_0x48a3b9:Number(_0x48a3b9);return Number[_0x7520cf(0x2c3)](_0x457724)?qo(_0x457724,_0x1dde41[_0x7520cf(0x342)]):'';}function yc(_0x5f4759,_0x1c189f){const _0x5e275a=_0x354fcb;let _0x363dd6=typeof _0x5f4759==_0x5e275a(0x256)?_0x5f4759:Number(_0x5f4759);return Number[_0x5e275a(0x2c3)](_0x363dd6)?Qo(_0x363dd6,_0x1c189f[_0x5e275a(0x342)]):'';}function bc(_0x1b4004){const _0x20d9ce=_0x354fcb;return Array[_0x20d9ce(0x354)](_0x1b4004)?_0x1b4004[_0x20d9ce(0x2a2)](_0x3b2dec=>{const _0x512a43=_0x20d9ce;if(!_0x3b2dec||typeof _0x3b2dec!=_0x512a43(0x269))return[];let _0x5702a1=_0x3b2dec,_0x254b26=String(_0x5702a1[_0x512a43(0x1e0)]??_0x5702a1[_0x512a43(0x1c7)]??'')[_0x512a43(0x3bc)]();return _0x254b26?[_0x254b26]:[];}):[];}function xc(_0x89fff0){const _0x2afde5=_0x354fcb;if(_0x89fff0==null)return'';if(typeof _0x89fff0==_0x2afde5(0x364))return _0x89fff0?_0x2afde5(0x468):_0x2afde5(0x442);if(typeof _0x89fff0=='number')return String(_0x89fff0);if(Array[_0x2afde5(0x354)](_0x89fff0)){let _0x42eb9b=[];for(let _0x32c7c0=0x0;_0x32c7c0<_0x89fff0['length'];_0x32c7c0++){if(!(_0x32c7c0 in _0x89fff0))continue;let _0x1c9dcf=xc(_0x89fff0[_0x32c7c0]);_0x1c9dcf&&_0x42eb9b[_0x2afde5(0x1f3)](_0x1c9dcf);}return _0x42eb9b[_0x2afde5(0x4b5)](',\x20');}if(typeof _0x89fff0==_0x2afde5(0x269)){let _0x41c3c2=_0x89fff0;return String(_0x41c3c2['title']??_0x41c3c2[_0x2afde5(0x1e0)]??_0x41c3c2[_0x2afde5(0x4d2)]??_0x41c3c2[_0x2afde5(0x1c7)]??'')[_0x2afde5(0x3bc)]();}return String(_0x89fff0);}function Sc(_0x1b1109,_0x547bfc){const _0x4d3caa=_0x354fcb;let _0x79746d=0x0;for(let _0x1e573d of _0x547bfc)_0x1e573d&&(_0x1e573d===_0x1b1109?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0x12c):_0x1e573d['startsWith'](_0x1b1109)?_0x79746d=Math[_0x4d3caa(0x1b3)](_0x79746d,0xfa):_0x1e573d[_0x4d3caa(0x231)](_0x1b1109)&&(_0x79746d=Math['max'](_0x79746d,0xc8)));return _0x79746d;}function Cc(_0x55bba7){const _0x3d4409=_0x354fcb;return _0x55bba7[_0x3d4409(0x3bc)]()[_0x3d4409(0x2b1)](/\s+/g,'\x20')[_0x3d4409(0x4f1)]();}function wc(_0x4e5e06){return Array['from'](new Set(_0x4e5e06));}function Tc(_0x54cac1){const _0x425d2f=_0x354fcb;let _0x32dc42=[];for(let {rowIndex:_0x159881,fieldIndex:_0x5e81e0,..._0x473393}of _0x54cac1)_0x32dc42[_0x425d2f(0x1f3)](_0x473393);return _0x32dc42;}function Ec(_0xd634e7){const _0x15dc1b=_0x354fcb;return{'compress':!0x0,'kind':_0x15dc1b(0x1c0),'u':_0xd634e7[_0x15dc1b(0x278)],'t':_0xd634e7['tableId'],'p':_0xd634e7[_0x15dc1b(0x1bc)][_0x15dc1b(0x29b)](_0x1d34b7=>[_0x1d34b7['row'],_0x1d34b7[_0x15dc1b(0x1ea)],Ac(_0x1d34b7[_0x15dc1b(0x416)])]),..._0xd634e7[_0x15dc1b(0x1ad)]===void 0x0?{}:{'g':_0xd634e7['trigger']}};}function Dc(_0x1be645){const _0x1332aa=_0x354fcb;if(Lc(_0x1be645,_0x1332aa(0x1c0)),!Oc(_0x1be645)){if(!Ic(_0x1be645))throw Error(_0x1332aa(0x2bb));return _0x1be645;}return{'unitId':_0x1be645['u'],'tableId':_0x1be645['t'],'patches':_0x1be645['p'][_0x1332aa(0x29b)](([_0x4a3af1,_0x33f51a,_0x5d9c97])=>({'row':_0x4a3af1,'col':_0x33f51a,'value':jc(_0x5d9c97)})),..._0x1be645['g']===void 0x0?{}:{'trigger':_0x1be645['g']}};}function Oc(_0x2efd63){const _0x31d2dc=_0x354fcb;return!Rc(_0x2efd63)||_0x2efd63[_0x31d2dc(0x2ef)]!==!0x0||_0x2efd63[_0x31d2dc(0x1e8)]!==_0x31d2dc(0x1c0)?!0x1:typeof _0x2efd63['u']==_0x31d2dc(0x471)&&typeof _0x2efd63['t']==_0x31d2dc(0x471)&&(_0x2efd63['g']===void 0x0||typeof _0x2efd63['g']=='string')&&Array['isArray'](_0x2efd63['p'])&&_0x2efd63['p'][_0x31d2dc(0x1b6)](_0x3cee7e=>Array['isArray'](_0x3cee7e)&&_0x3cee7e[_0x31d2dc(0x458)]===0x3&&Number['isInteger'](_0x3cee7e[0x0])&&Number[_0x31d2dc(0x39d)](_0x3cee7e[0x1]));}function kc(_0x574e26){const _0x410786=_0x354fcb;return!Rc(_0x574e26)||_0x574e26[_0x410786(0x2ef)]!==!0x0||_0x574e26[_0x410786(0x1e8)]!==_0x410786(0x3a4)||!Rc(_0x574e26['tables'])?!0x1:Object[_0x410786(0x1da)](_0x574e26['tables'])['every'](_0x21dee3=>Rc(_0x21dee3)&&(_0x21dee3['cd']===void 0x0||Array['isArray'](_0x21dee3['cd'])&&_0x21dee3['cd']['every'](_0x50264d=>Array['isArray'](_0x50264d)&&_0x50264d['length']===0x3&&Number[_0x410786(0x39d)](_0x50264d[0x0])&&Number['isInteger'](_0x50264d[0x1])&&Fc(_0x50264d[0x2]))));}function Ac(_0x2cbb9e){return Pc(_0x2cbb9e)?Mc(_0x2cbb9e):_0x2cbb9e;}function jc(_0x1509b6){return Fc(_0x1509b6)?Nc(_0x1509b6):_0x1509b6;}function Mc(_0x15a704){return{'c':0x1,..._0x15a704['v']===void 0x0?{}:{'v':_0x15a704['v']},..._0x15a704['t']!==void 0x0&&_0x15a704['t']!==null?{'t':_0x15a704['t']}:_0x15a704['t']===null?{'t':null}:{},..._0x15a704['f']!==void 0x0&&_0x15a704['f']!==null?{'f':_0x15a704['f']}:_0x15a704['f']===null?{'f':null}:{},..._0x15a704['si']!==void 0x0&&_0x15a704['si']!==null?{'si':_0x15a704['si']}:_0x15a704['si']===null?{'si':null}:{},..._0x15a704['p']!==void 0x0&&_0x15a704['p']!==null?{'p':_0x15a704['p']}:_0x15a704['p']===null?{'p':null}:{}};}function Nc(_0x312dcb){return{..._0x312dcb['v']===void 0x0?{}:{'v':_0x312dcb['v']},..._0x312dcb['t']===void 0x0?{}:{'t':_0x312dcb['t']},..._0x312dcb['f']===void 0x0?{}:{'f':_0x312dcb['f']},..._0x312dcb['si']===void 0x0?{}:{'si':_0x312dcb['si']},..._0x312dcb['p']===void 0x0?{}:{'p':_0x312dcb['p']}};}function Pc(_0x5eec51){const _0x5105ce=_0x354fcb;return!!_0x5eec51&&typeof _0x5eec51==_0x5105ce(0x269)&&!Array['isArray'](_0x5eec51)&&(Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'v')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'t')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'p')||Object[_0x5105ce(0x32b)][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'f')||Object['prototype'][_0x5105ce(0x42f)][_0x5105ce(0x331)](_0x5eec51,'si'));}function Fc(_0x27d90d){return Rc(_0x27d90d)&&_0x27d90d['c']===0x1;}function Ic(_0xc5d21d){const _0x135caf=_0x354fcb;return Rc(_0xc5d21d)&&typeof _0xc5d21d[_0x135caf(0x278)]==_0x135caf(0x471)&&typeof _0xc5d21d[_0x135caf(0x1c3)]==_0x135caf(0x471)&&(_0xc5d21d[_0x135caf(0x1ad)]===void 0x0||typeof _0xc5d21d['trigger']==_0x135caf(0x471))&&Array[_0x135caf(0x354)](_0xc5d21d[_0x135caf(0x1bc)])&&_0xc5d21d[_0x135caf(0x1bc)][_0x135caf(0x1b6)](_0x4e0db6=>Rc(_0x4e0db6)&&Number[_0x135caf(0x39d)](_0x4e0db6[_0x135caf(0x21b)])&&Number['isInteger'](_0x4e0db6[_0x135caf(0x1ea)])&&_0x135caf(0x416)in _0x4e0db6);}function Lc(_0x55dce9,_0x1b3ca9){const _0x223722=_0x354fcb;if(Rc(_0x55dce9)&&_0x55dce9['compress']===!0x0){if(_0x55dce9[_0x223722(0x1e8)]!==_0x1b3ca9)throw Error(_0x223722(0x195)+String(_0x55dce9['kind'])+'\x22.');if(!(_0x1b3ca9===_0x223722(0x1c0)?Oc(_0x55dce9):kc(_0x55dce9)))throw Error(_0x223722(0x418)+_0x1b3ca9+'\x22.');}}function _0x48d8(_0x2f0482,_0x9465a9){_0x2f0482=_0x2f0482-0x171;const _0x235733=_0x2357();let _0x48d80b=_0x235733[_0x2f0482];return _0x48d80b;}function Rc(_0x50ddb7){const _0x2cfe51=_0x354fcb;return!!_0x50ddb7&&typeof _0x50ddb7=='object'&&!Array[_0x2cfe51(0x354)](_0x50ddb7);}export{Q as ApplyBaseJson1Mutation,es as BASE_FIELD_STAT_TYPES,Ue as BASE_HIERARCHY_MAX_LEVELS,We as BASE_HIERARCHY_PARENT_FIELD_ID,Da as BASE_TABLE_NAME_REQUIREMENTS,Tr as BASE_UNIT_PERMISSION_ACTIONS,ko as BaseConditionalColorRuleUpdateType,Ke as BaseEventSource,Xi as BaseFormulaService,P as BaseHierarchyError,Ge as BaseHierarchyErrorCode,Ri as BaseHistoryAction,z as BaseJson1OpApplier,W as BaseJson1OpFactory,xa as BatchCreateBaseRecordsCommand,Sa as BatchDeleteBaseRecordsCommand,Ca as ChangeBaseFieldTypeCommand,wa as CreateBaseChildRecordCommand,Ta as CreateBaseFieldCommand,Ea as CreateBaseRecordCommand,Aa as CreateBaseTableCommand,Ga as CreateBaseViewCommand,Ka as DeleteBaseFieldCommand,qa as DeleteBaseRecordCommand,Ja as DeleteBaseTableCommand,Ya as DeleteBaseViewCommand,Xa as DuplicateBaseFieldCommand,Za as DuplicateBaseRecordCommand,Vo as EMBED_BASES_TABLE_RESOURCE_KEY,Qa as EnsureBaseTemporalViewDateFieldsCommand,Kr as IBaseCommandService,Br as IBasePermissionService,ii as IBaseProjectionService,ic as IBaseViewRegistryService,to as MoveBaseFieldCommand,no as MoveBaseHierarchyRecordCommand,oo as MoveBaseViewCommand,so as RenameBaseTableCommand,co as RenameBaseViewCommand,lo as SetBaseKanbanGroupFieldCommand,uo as SetBaseNameCommand,fo as SetBasePermissionCommand,Ro as SetBasePermissionRuleMutation,zo as SetBasePermissionRulesMutation,po as SetBasePermissionsCommand,ho as SetBaseRangeValuesCommand,go as SetBaseRecordValuesCommand,_o as SetBaseTableHierarchyFieldCommand,vo as SetBaseViewFieldOrderCommand,yo as SetBaseViewFieldVisibleCommand,bo as SetBaseViewFieldWidthCommand,xo as SetBaseViewFilterCommand,So as SetBaseViewGroupCommand,Co as SetBaseViewSortCommand,sc as UniverBasesPlugin,cc as UniverRemoteBasesPlugin,wo as UpdateBaseCellCommand,Eo as UpdateBaseFieldCommand,To as UpdateBaseFieldDescriptionCommand,Do as UpdateBaseKanbanConfigCommand,Oo as UpdateBaseRecordOrderCommand,Ao as UpdateBaseViewConditionalColorRulesCommand,Fo as UpdateBaseViewConfigCommand,Io as ValidateBaseFormulaCommand,dn as baseDateSerialToDateMs,tt as buildBaseHierarchyIndex,ds as calculateBaseFieldStat,zr as canEditBaseTargets,Ec as compressBaseRangeValuesPayload,As as copyBaseTableSnapshot,Ye as createBaseHierarchyParentField,Bo as createDefaultBaseTableSnapshot,Ho as createEmbedBasesTable,Uo as createEmbedBasesTableAddMutation,Wo as createEmbedBasesTableRemoveMutation,ka as createUniqueBaseTableName,B as dateToExcelSerial,Dc as decompressBaseRangeValuesPayload,L as ensureBaseTableCellLayout,He as findRecordLinkReferences,mn as formatBaseDateValue,fs as formatBaseFieldStatValue,qo as formatBaseNumberValue,Qo as formatBaseProgressValue,Xe as getActiveBaseHierarchyFieldIds,bt as getBaseCellFormulaValue,yt as getBaseCellValue,vn as getBaseConditionalColorOperators,Nr as getBaseDashboardPermissionObjectId,q as getBaseFieldPermissionObjectId,_0x5d9833 as getBaseFormulaTableName,et as getBaseHierarchyDeletePromotions,qe as getBaseHierarchyFieldId,Fr as getBasePermissionValue,J as getBaseRecordPermissionObjectId,K as getBaseTablePermissionObjectId,Mr as getBaseViewPermissionObjectId,N as getRecordLinkFieldConfig,ls as getSupportedBaseFieldStatTypes,rt as getVisibleBaseHierarchyRows,Zo as inferBaseSeparatorStyle,yn as isBaseConditionalColorDateField,ps as isBaseFieldStatEmptyValue,us as isBaseFieldStatSupported,ss as isBaseFieldStatType,F as isBaseHierarchyField,Oc as isCompressedBaseRangeValuesPayload,xn as matchesBaseCondition,pn as normalizeBaseDateFieldConfig,un as normalizeBaseDateSerial,cs as normalizeBaseFieldStatsConfig,Le as parseRecordLinkIds,nt as projectBaseHierarchy,fn as resolveBaseDateFieldConfig,Je as resolveBaseHierarchyFieldId,mo as resolveBaseRangeHierarchyPatches,lc as searchBaseTable,Re as serializeRecordLinkIds,Ir as setBasePermissionValue,I as traceBasePerformance,ja as uniqueFieldName,it as validateBaseHierarchyMove,Qe as validateBaseHierarchyRecordCreations,Ze as validateBaseHierarchyRecordPatches,Oa as validateBaseTableName,ze as validateCanonicalRecordLinkValue,Be as validateRecordLinkField,Ve as validateRecordLinkValue};
|