@univerjs-pro/bases 1.0.1 → 1.0.2

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.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +8 -8
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6c183=_0x2b5a;(function(_0x5dd0cf,_0x519b5a){const _0x5e4642=_0x2b5a,_0x25dfc5=_0x5dd0cf();while(!![]){try{const _0x1a8f2d=parseInt(_0x5e4642(0x21c))/0x1*(parseInt(_0x5e4642(0x3ee))/0x2)+parseInt(_0x5e4642(0x1d9))/0x3*(parseInt(_0x5e4642(0x1b9))/0x4)+parseInt(_0x5e4642(0x266))/0x5*(parseInt(_0x5e4642(0x49b))/0x6)+-parseInt(_0x5e4642(0x1c2))/0x7+parseInt(_0x5e4642(0x2bd))/0x8+parseInt(_0x5e4642(0x202))/0x9+-parseInt(_0x5e4642(0x123))/0xa;if(_0x1a8f2d===_0x519b5a)break;else _0x25dfc5['push'](_0x25dfc5['shift']());}catch(_0x508c96){_0x25dfc5['push'](_0x25dfc5['shift']());}}}(_0x4376,0xb7fe8));import{BASE_RECORD_ID_FIELD_ID as _0x5a35e2,BaseConditionalColorOperator as _0x50d725,BaseConditionalColorTarget as _0x4b6a96,BaseConditionalDateMode as _0x2b5b2b,BaseDataModel as _0x351ad4,BaseFieldType as _0x3a044b,BaseFilterConjunction as _0x6d8219,BaseHierarchyInvalidReason as _0x5b4879,BaseRecordLinkRole as _0x4c2417,BaseSortDirection as _0x574bb1,BaseViewType as _0x3ece31,CellValueType as _0x4dac72,ColorKit as _0x4014bd,CommandType as _0x22977e,CustomCommandExecutionError as _0x5ea448,DateSystem as _0x5c27c9,DependentOn as _0x2beafb,Disposable as _0x3b0b2d,ErrorService as _0x35b5ff,ICommandService as _0x5daeb6,IConfigService as _0x2a3cb6,IPermissionService as _0x41b15f,IResourceManagerService as _0x3ca90e,IUndoRedoService as _0x5b9522,IUniverInstanceService as _0x24efe9,Inject as _0x490adb,Injector as _0x4f0ad3,JSON1 as _0x53fdae,JSONX as _0x39141f,ObjectMatrix as _0x47103a,ObjectPermissionRuleModel as _0x65b7b4,ObjectPermissionService as _0x14b422,Optional as _0x2f9a87,PermissionStatus as _0x16215e,Plugin as _0x5e5cdb,Tools as _0x4e3c3d,UniverInstanceType as _0x5c5c99,allocateBaseFormulaTableName as _0x2afbd2,assertBaseTableRecordIdentity as _0x37d535,createBaseFormulaTableNameMap as _0x160d60,createBaseRecordIdField as _0x96204b,createIdentifier as _0x2e8f64,dateKit as _0x509f61,excelDateTimeSerial as _0x36b37f,excelSerialToDateTime as _0x33b7e5,generateRandomId as _0x456020,getBaseFormulaTableName as _0x16f020,isBaseRecordIdFieldName as _0x771c24,isValidBaseRecordId as _0x7f3dc3,merge as _0x1bd132,nameCharacterCheck as _0x5cd2f5,numfmt as _0x3bb8d4,regexp as _0x481624,sequenceExecute as _0x170e9a,toDisposable as _0x1827e4,touchDependencies as _0x55f221}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x2612d7,IActiveDirtyManagerService as _0x403c63,RemoveSuperTableMutation as _0x371cf0,SetFormulaCalculationResultMutation as _0x3da161,SetSuperTableMutation as _0x2af977,SetTriggerFormulaCalculationStartMutation as _0x174b70,UniverProFormulaEnginePlugin as _0x16e087,refactorFormulaUnitQualifier as _0x2f992f}from'@univerjs-pro/engine-formula';import{UnitAction as _0x1aafeb,UnitObject as _0x3cf49a}from'@univerjs/protocol';import{UniverLicensePlugin as _0xa2587c}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0xd3ae6f}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0xdc8395,FormulaResultApplicationType as _0x1e8264}from'@univerjs/engine-formula';function N(_0x2be6a4){const _0x3b33cc=_0x2b5a;let _0x1e38c3=_0x2be6a4['config'][_0x3b33cc(0x334)],_0x13b7e8=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x376)],_0x3a3081=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x131)],_0x44dab3=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x201)],_0x2c23=_0x2be6a4[_0x3b33cc(0x2ba)][_0x3b33cc(0x1d4)];return typeof _0x1e38c3!=_0x3b33cc(0x425)||!_0x1e38c3||typeof _0x13b7e8!=_0x3b33cc(0x1cb)||_0x3a3081!==void 0x0&&(typeof _0x3a3081!=_0x3b33cc(0x425)||!_0x3a3081)||_0x2c23!==void 0x0&&_0x2c23!==_0x4c2417[_0x3b33cc(0x2e7)]||_0x44dab3!==void 0x0&&(!Array[_0x3b33cc(0x431)](_0x44dab3)||_0x44dab3[_0x3b33cc(0x185)](_0x455881=>typeof _0x455881!=_0x3b33cc(0x425)||!_0x455881)||new Set(_0x44dab3)[_0x3b33cc(0x15b)]!==_0x44dab3[_0x3b33cc(0x13c)])?null:{'targetTableId':_0x1e38c3,'multiple':_0x13b7e8,..._0x3a3081?{'displayFieldId':_0x3a3081}:{},..._0x44dab3?{'pickerFieldIds':[..._0x44dab3]}:{},..._0x2c23?{'relationRole':_0x2c23}:{}};}function Le(_0xc10ea9){const _0x4ec874=_0x2b5a;return typeof _0xc10ea9!=_0x4ec874(0x425)||_0xc10ea9===''?[]:_0xc10ea9[_0x4ec874(0x1c0)](',');}function Re(_0x347d0c){const _0x2d26c6=_0x2b5a;return Array[_0x2d26c6(0x1d5)](new Set(_0x347d0c))[_0x2d26c6(0x11a)](',');}function ze(_0x5696ef,_0x440a81){const _0x370117=_0x2b5a;if(typeof _0x5696ef!=_0x370117(0x425))return{'valid':!0x1,'reason':_0x370117(0x402)};if(_0x5696ef==='')return{'valid':!0x0};let _0x5a70d5=_0x5696ef[_0x370117(0x1c0)](',');return!_0x440a81&&_0x5a70d5[_0x370117(0x13c)]>0x1?{'valid':!0x1,'reason':_0x370117(0x221)}:_0x5a70d5['some'](_0x27e70e=>!_0x7f3dc3(_0x27e70e))||new Set(_0x5a70d5)[_0x370117(0x15b)]!==_0x5a70d5['length']||Re(_0x5a70d5)!==_0x5696ef?{'valid':!0x1,'reason':_0x370117(0x218)}:{'valid':!0x0};}function Be(_0x10c9cc,_0x60656){const _0x22913e=_0x2b5a;if(_0x60656['type']!==_0x3a044b[_0x22913e(0x3ac)])return{'valid':!0x0};let _0x46ac91=N(_0x60656),_0xe11b27=_0x46ac91?_0x10c9cc['tables'][_0x46ac91[_0x22913e(0x334)]]:void 0x0;if(!_0x46ac91||!_0xe11b27)return{'valid':!0x1,'reason':_0x22913e(0x20f)};let _0x547589=[..._0x46ac91[_0x22913e(0x131)]?[_0x46ac91[_0x22913e(0x131)]]:[],..._0x46ac91['pickerFieldIds']??[]][_0x22913e(0x392)](_0x2a652d=>{const _0xec2bb8=_0x22913e;let _0x519970=_0xe11b27['fields'][_0x2a652d];return!_0x519970||_0x519970['system']===!0x0||_0x519970[_0xec2bb8(0x20b)]===_0x3a044b[_0xec2bb8(0x22f)];});return _0x547589?{'valid':!0x1,'reason':_0x22913e(0x391)+_0x547589+_0x22913e(0x2e3)}:{'valid':!0x0};}function Ve(_0x8f341,_0x35fb1c,_0x525548,_0x2144f0={}){const _0xcf1a3f=_0x2b5a;let _0x5793f1=N(_0x35fb1c);if(_0x35fb1c[_0xcf1a3f(0x20b)]!==_0x3a044b[_0xcf1a3f(0x3ac)]||!_0x5793f1)return{'valid':!0x1,'reason':_0xcf1a3f(0x320)};let _0x3205e0=ze(_0x525548,_0x5793f1[_0xcf1a3f(0x376)]);if(!_0x3205e0[_0xcf1a3f(0x26e)]||_0x2144f0[_0xcf1a3f(0x40f)])return _0x3205e0;let _0x29ea12=_0x8f341[_0xcf1a3f(0x298)][_0x5793f1['targetTableId']];if(!_0x29ea12)return{'valid':!0x1,'reason':_0xcf1a3f(0x20f)};let _0x57b1de=Le(_0x525548)['find'](_0x24647d=>!_0x29ea12[_0xcf1a3f(0x258)][_0x24647d]);return _0x57b1de?{'valid':!0x1,'reason':_0xcf1a3f(0x19c)+_0x57b1de+_0xcf1a3f(0x2bf)}:{'valid':!0x0};}function He(_0x1314db,_0x55f5f8){const _0x21e246=_0x2b5a;return Object[_0x21e246(0x227)](_0x1314db['tables'])[_0x21e246(0x17a)](_0x245477=>Object['values'](_0x245477[_0x21e246(0x398)])[_0x21e246(0x17a)](_0x147b42=>{const _0x5b7c2f=_0x21e246;let _0x1b317e=_0x147b42['type']===_0x3a044b[_0x5b7c2f(0x3ac)]?N(_0x147b42):null;return(_0x1b317e==null?void 0x0:_0x1b317e[_0x5b7c2f(0x334)])===_0x55f5f8?[{'tableId':_0x245477['id'],'fieldId':_0x147b42['id']}]:[];}));}const Ue=0x5,We=_0x6c183(0x2ae);let Ge=function(_0x5d06f6){const _0x331c27=_0x6c183;return _0x5d06f6[_0x331c27(0x1f9)]=_0x331c27(0x48d),_0x5d06f6[_0x331c27(0x2f9)]=_0x331c27(0x281),_0x5d06f6['SelfParent']=_0x331c27(0x1a4),_0x5d06f6[_0x331c27(0x478)]=_0x331c27(0x3b4),_0x5d06f6['MaxDepth']=_0x331c27(0x138),_0x5d06f6['SortedView']='sortedView',_0x5d06f6;}({});var P=class extends Error{constructor(_0x477638,_0x327dc0='[BaseHierarchy]:\x20'+_0x477638){const _0x35c603=_0x6c183;super(_0x327dc0),this[_0x35c603(0x3c5)]=_0x477638,this[_0x35c603(0x2a3)]=_0x35c603(0x496);}};let Ke=function(_0x263430){const _0x7de001=_0x6c183;return _0x263430['UI']='ui',_0x263430['Facade']=_0x7de001(0x305),_0x263430[_0x7de001(0x238)]=_0x7de001(0x3bf),_0x263430[_0x7de001(0x45a)]=_0x7de001(0x23c),_0x263430[_0x7de001(0x378)]='redo',_0x263430['Import']='import',_0x263430;}({});function F(_0x4a2979,_0x55fc5f){const _0xd7ff25=_0x6c183;if(!_0x55fc5f)return!0x1;let _0x16198e=_0x4a2979['fields'][_0x55fc5f];if(!_0x16198e||_0x16198e[_0xd7ff25(0x20b)]!==_0x3a044b[_0xd7ff25(0x3ac)])return!0x1;let _0xbe98d7=N(_0x16198e);return _0xbe98d7?_0xbe98d7[_0xd7ff25(0x334)]===_0x4a2979['id']&&_0xbe98d7[_0xd7ff25(0x376)]===!0x1:!0x1;}function qe(_0x5ef973){const _0x168fdd=_0x6c183;return[..._0x5ef973[_0x168fdd(0x3b5)],...Object[_0x168fdd(0x24c)](_0x5ef973[_0x168fdd(0x398)])['filter'](_0xf415ff=>!_0x5ef973['fieldOrder'][_0x168fdd(0x16a)](_0xf415ff))['sort']()][_0x168fdd(0x392)](_0x4a810a=>{const _0x434d32=_0x168fdd;var _0xa2c394;return F(_0x5ef973,_0x4a810a)?((_0xa2c394=N(_0x5ef973['fields'][_0x4a810a]))==null?void 0x0:_0xa2c394[_0x434d32(0x1d4)])===_0x4c2417[_0x434d32(0x2e7)]:!0x1;})??null;}function Je(_0x4660b5){const _0x15659b=_0x6c183;let _0x4b8657=qe(_0x4660b5);if(_0x4b8657)return _0x4b8657;let _0x473ff2=We,_0x259b01=0x2;for(;_0x4660b5[_0x15659b(0x398)][_0x473ff2];)_0x473ff2=We+'_'+_0x259b01++;return _0x473ff2;}function Ye(_0x5da45a,_0x3eb4d7=Je(_0x5da45a),_0x6edad2='Parent\x20Items'){const _0x2da938=_0x6c183;return{'id':_0x3eb4d7,'name':_0x6edad2,'type':_0x3a044b['RecordLink'],'config':{'targetTableId':_0x5da45a['id'],'multiple':!0x1,'displayFieldId':_0x5da45a[_0x2da938(0x3b2)],'pickerFieldIds':[_0x5da45a[_0x2da938(0x3b2)]],'relationRole':_0x4c2417[_0x2da938(0x2e7)]}};}function Xe(_0x45dd57){let _0x178d53=qe(_0x45dd57);return _0x178d53?[_0x178d53]:[];}function Ze(_0x11e1d9,_0x24a7e0){const _0x583f79=_0x6c183;let _0x3471be=[...Xe(_0x11e1d9)][_0x583f79(0x2be)](_0x354ee4=>_0x24a7e0['some'](_0x4fab1a=>Object[_0x583f79(0x246)][_0x583f79(0x48a)]['call'](_0x4fab1a[_0x583f79(0x227)],_0x354ee4)));if(!_0x3471be[_0x583f79(0x13c)])return[];let _0x4744f9={..._0x11e1d9[_0x583f79(0x258)]};_0x24a7e0[_0x583f79(0x2e0)](_0xaa69ad=>{const _0x2d92b2=_0x583f79;let _0x4feb56=_0x4744f9[_0xaa69ad['recordId']];_0x4feb56&&(_0x4744f9[_0xaa69ad[_0x2d92b2(0x347)]]={..._0x4feb56,'values':{..._0x4feb56[_0x2d92b2(0x227)],..._0xaa69ad['values']}});});let _0x3786f9={..._0x11e1d9,'records':_0x4744f9},_0x300342=[];return _0x3471be[_0x583f79(0x2e0)](_0x320ee6=>{const _0x2732a4=_0x583f79;let _0x58e09c=tt(_0x11e1d9,_0x320ee6),_0x573d22=tt(_0x3786f9,_0x320ee6);for(let [_0x315c08,_0x26e935]of _0x573d22[_0x2732a4(0x3b6)]){let _0x3fd7ef=_0x24a7e0['some'](_0x4ab12a=>_0x4ab12a['recordId']===_0x315c08&&Object[_0x2732a4(0x246)]['hasOwnProperty'][_0x2732a4(0x43b)](_0x4ab12a[_0x2732a4(0x227)],_0x320ee6));if(_0x58e09c[_0x2732a4(0x3b6)]['get'](_0x315c08)!==_0x26e935||_0x3fd7ef)throw new P($e(_0x26e935));}_0x24a7e0[_0x2732a4(0x2e0)](_0xe62c9a=>{const _0x11d71e=_0x2732a4;if(!Object[_0x11d71e(0x246)][_0x11d71e(0x48a)][_0x11d71e(0x43b)](_0xe62c9a[_0x11d71e(0x227)],_0x320ee6))return;let _0x21486c=_0x58e09c['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null,_0x4999ba=_0x573d22['parentByRecordId'][_0x11d71e(0x43e)](_0xe62c9a[_0x11d71e(0x347)])??null;_0x21486c!==_0x4999ba&&_0x300342[_0x11d71e(0x174)]({'tableId':_0x11e1d9['id'],'fieldId':_0x320ee6,'recordId':_0xe62c9a[_0x11d71e(0x347)],'oldParentRecordId':_0x21486c,'parentRecordId':_0x4999ba});});}),_0x300342;}function Qe(_0x477ecf,_0x2b3bd4){const _0x4fae7c=_0x6c183;let _0x10159d=_0x2b3bd4['map'](_0x3cb6b6=>_0x3cb6b6['id']);if(new Set(_0x10159d)[_0x4fae7c(0x15b)]!==_0x10159d[_0x4fae7c(0x13c)]||_0x10159d['some'](_0x2522c0=>_0x477ecf[_0x4fae7c(0x258)][_0x2522c0]))return[];let _0x341d83=Xe(_0x477ecf),_0x5891aa=_0x341d83[_0x4fae7c(0x13c)]?null:Je(_0x477ecf),_0x364808=[..._0x341d83,..._0x5891aa&&_0x2b3bd4['some'](_0x16f288=>Object['prototype'][_0x4fae7c(0x48a)][_0x4fae7c(0x43b)](_0x16f288[_0x4fae7c(0x227)],_0x5891aa))?[_0x5891aa]:[]][_0x4fae7c(0x2be)](_0x5462f1=>_0x2b3bd4['some'](_0x1555bf=>Object[_0x4fae7c(0x246)]['hasOwnProperty'][_0x4fae7c(0x43b)](_0x1555bf[_0x4fae7c(0x227)],_0x5462f1)));if(!_0x364808[_0x4fae7c(0x13c)])return[];let _0xd49a25={..._0x477ecf,'records':{..._0x477ecf[_0x4fae7c(0x258)],...Object[_0x4fae7c(0x176)](_0x2b3bd4[_0x4fae7c(0x141)](_0x7c001a=>[_0x7c001a['id'],_0x7c001a]))},'recordOrder':[..._0x477ecf[_0x4fae7c(0x1e7)]??[],..._0x2b3bd4[_0x4fae7c(0x141)](_0x26e737=>_0x26e737['id'])]},_0xdd8f05=[];return _0x364808[_0x4fae7c(0x2e0)](_0x25803e=>{const _0x2a59a2=_0x4fae7c;let _0xe16cd6=tt(_0xd49a25,_0x25803e);_0x2b3bd4[_0x2a59a2(0x2e0)](_0x5d03ec=>{const _0x160462=_0x2a59a2;let _0x5ec8e3=_0xe16cd6[_0x160462(0x3b6)][_0x160462(0x43e)](_0x5d03ec['id']);if(_0x5ec8e3)throw new P($e(_0x5ec8e3));let _0x21e5b9=_0xe16cd6[_0x160462(0x3b7)]['get'](_0x5d03ec['id'])??null;_0x21e5b9&&_0xdd8f05[_0x160462(0x174)]({'tableId':_0x477ecf['id'],'fieldId':_0x25803e,'recordId':_0x5d03ec['id'],'oldParentRecordId':null,'parentRecordId':_0x21e5b9});});}),_0xdd8f05;}function $e(_0x5ed22a){const _0x4e1b7e=_0x6c183;switch(_0x5ed22a){case _0x5b4879[_0x4e1b7e(0x23e)]:return'missingRecord';case _0x5b4879[_0x4e1b7e(0x40a)]:return'selfParent';case _0x5b4879['Cycle']:return _0x4e1b7e(0x3b4);case _0x5b4879[_0x4e1b7e(0x285)]:return _0x4e1b7e(0x138);}}function et(_0x58e3e3,_0x2c7ea0){const _0x483257=_0x6c183;let _0xa6adf5=new Set(_0x2c7ea0),_0x1de4ec=Xe(_0x58e3e3);return Object[_0x483257(0x227)](_0x58e3e3['records'])['flatMap'](_0x14cc6e=>_0xa6adf5[_0x483257(0x34b)](_0x14cc6e['id'])?[]:Array[_0x483257(0x1d5)](_0x1de4ec)[_0x483257(0x17a)](_0x54f19f=>{const _0xa3e947=_0x483257;let _0x1244ac=Le(_0x14cc6e[_0xa3e947(0x227)][_0x54f19f])[0x0]??null;return _0x1244ac&&_0xa6adf5[_0xa3e947(0x34b)](_0x1244ac)?[{'tableId':_0x58e3e3['id'],'fieldId':_0x54f19f,'recordId':_0x14cc6e['id'],'oldParentRecordId':_0x1244ac,'parentRecordId':null}]:[];}));}function tt(_0x41d7d8,_0x483118,_0x33c640=_0x41d7d8['recordOrder']??Object[_0x6c183(0x24c)](_0x41d7d8['records'])){const _0x346bcb=_0x6c183;if((_0x41d7d8[_0x346bcb(0x398)][_0x483118]||_0x483118!==Je(_0x41d7d8))&&!F(_0x41d7d8,_0x483118))throw Error(_0x346bcb(0x314)+_0x483118+'\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.');let _0x2bbcb0=at(_0x41d7d8,_0x33c640),_0xc30707=new Map(),_0x11c8af=new Map();for(let _0x15db2c of _0x2bbcb0){var _0xb2f5db;let _0x463046=Le((_0xb2f5db=_0x41d7d8[_0x346bcb(0x258)][_0x15db2c])==null?void 0x0:_0xb2f5db['values'][_0x483118])[0x0]??null;_0x463046?_0x463046===_0x15db2c?(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af[_0x346bcb(0x49e)](_0x15db2c,_0x5b4879[_0x346bcb(0x40a)])):_0x41d7d8[_0x346bcb(0x258)][_0x463046]?_0xc30707[_0x346bcb(0x49e)](_0x15db2c,_0x463046):(_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null),_0x11c8af['set'](_0x15db2c,_0x5b4879[_0x346bcb(0x23e)])):_0xc30707[_0x346bcb(0x49e)](_0x15db2c,null);}ot(_0xc30707,_0x11c8af,_0x2bbcb0),st(_0xc30707,_0x11c8af,_0x2bbcb0);let _0x22b52e=new Map(_0x2bbcb0[_0x346bcb(0x141)]((_0x3dd604,_0x1385c2)=>[_0x3dd604,_0x1385c2])),_0x434a87=new Map();for(let _0x5de3a3 of _0x2bbcb0){let _0x4b2a14=_0xc30707[_0x346bcb(0x43e)](_0x5de3a3)??null,_0x25cdb2=_0x434a87[_0x346bcb(0x43e)](_0x4b2a14)??[];_0x25cdb2[_0x346bcb(0x174)](_0x5de3a3),_0x434a87[_0x346bcb(0x49e)](_0x4b2a14,_0x25cdb2);}_0x434a87['forEach'](_0x57b9d5=>_0x57b9d5[_0x346bcb(0x277)]((_0x36361c,_0x2a5f60)=>(_0x22b52e[_0x346bcb(0x43e)](_0x36361c)??0x0)-(_0x22b52e[_0x346bcb(0x43e)](_0x2a5f60)??0x0)));let _0xb26df9=_0x434a87[_0x346bcb(0x43e)](null)??[],_0x5b5707=new Map(),_0x3dc7d5=new Map(),_0x9626da=[],_0x299ca8=(_0x5957ab,_0x2167b6)=>{const _0x4c04e3=_0x346bcb;_0x5b5707['set'](_0x5957ab,_0x2167b6),_0x9626da['push'](_0x5957ab);let _0x1174fc=0x0;for(let _0x503870 of _0x434a87['get'](_0x5957ab)??[])_0x1174fc=Math[_0x4c04e3(0x482)](_0x1174fc,0x1+_0x299ca8(_0x503870,_0x2167b6+0x1));return _0x3dc7d5['set'](_0x5957ab,_0x1174fc),_0x1174fc;};return _0xb26df9[_0x346bcb(0x2e0)](_0x29e837=>_0x299ca8(_0x29e837,0x0)),{'fieldId':_0x483118,'parentByRecordId':_0xc30707,'childrenByParentId':_0x434a87,'depthByRecordId':_0x5b5707,'subtreeHeightByRecordId':_0x3dc7d5,'invalidReasonByRecordId':_0x11c8af,'rootRecordIds':_0xb26df9,'orderedRecordIds':_0x9626da};}function nt(_0x381a07,_0x470cf7,_0x3892bd=new Set(_0x470cf7[_0x6c183(0x141)](_0x1253ea=>_0x1253ea[_0x6c183(0x347)]))){const _0x1f780e=_0x6c183;let _0x32d2a8=new Set(_0x3892bd);for(let _0x1f9f55 of _0x3892bd){let _0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1f9f55)??null;for(;_0x1d2da5;)_0x32d2a8[_0x1f780e(0x2ee)](_0x1d2da5),_0x1d2da5=_0x381a07[_0x1f780e(0x3b7)][_0x1f780e(0x43e)](_0x1d2da5)??null;}let _0x21e345=new Map(_0x470cf7[_0x1f780e(0x141)](_0x490397=>[_0x490397[_0x1f780e(0x347)],_0x490397])),_0x351bbe=_0x381a07[_0x1f780e(0x3c3)][_0x1f780e(0x2be)](_0x1da6fc=>_0x32d2a8[_0x1f780e(0x34b)](_0x1da6fc)),_0x234e45=_0x351bbe['flatMap'](_0xe1492d=>{const _0x261797=_0x1f780e;let _0xb03461=_0x21e345[_0x261797(0x43e)](_0xe1492d);return _0xb03461?[_0xb03461]:[];}),_0x65e759={};for(let _0x3ad1a6=0x0;_0x3ad1a6<_0x351bbe[_0x1f780e(0x13c)];_0x3ad1a6++){let _0x336ba6=_0x351bbe[_0x3ad1a6];_0x65e759[_0x336ba6]={'recordId':_0x336ba6,'parentRecordId':_0x381a07[_0x1f780e(0x3b7)]['get'](_0x336ba6)??null,'depth':_0x381a07[_0x1f780e(0x273)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'directChildCount':(_0x381a07[_0x1f780e(0x2c7)][_0x1f780e(0x43e)](_0x336ba6)??[])[_0x1f780e(0x13c)],'subtreeHeight':_0x381a07[_0x1f780e(0x146)][_0x1f780e(0x43e)](_0x336ba6)??0x0,'subtreeEndIndex':_0x3ad1a6,'invalidReason':_0x381a07['invalidReasonByRecordId'][_0x1f780e(0x43e)](_0x336ba6)};}let _0x5b7e1e=[];for(let _0xd987a5=0x0;_0xd987a5<_0x351bbe[_0x1f780e(0x13c)];_0xd987a5++){let _0x2edd0d=_0x351bbe[_0xd987a5],_0x3752ce=_0x65e759[_0x2edd0d]['depth'];for(;_0x5b7e1e[_0x1f780e(0x13c)]&&_0x5b7e1e[_0x5b7e1e[_0x1f780e(0x13c)]-0x1][_0x1f780e(0x3bd)]>=_0x3752ce;){let _0x2faae5=_0x5b7e1e[_0x1f780e(0x481)]();_0x65e759[_0x2faae5[_0x1f780e(0x347)]]['subtreeEndIndex']=_0xd987a5-0x1;}_0x5b7e1e['push']({'recordId':_0x2edd0d,'depth':_0x3752ce});}return _0x5b7e1e['forEach'](({recordId:_0x4c4faf})=>{const _0x33c6ed=_0x1f780e;_0x65e759[_0x4c4faf][_0x33c6ed(0x3fb)]=_0x351bbe[_0x33c6ed(0x13c)]-0x1;}),{'rows':_0x234e45,'hierarchy':{'fieldId':_0x381a07[_0x1f780e(0x2b0)],'rootRecordIds':_0x381a07[_0x1f780e(0x4ad)][_0x1f780e(0x2be)](_0x38b508=>_0x32d2a8[_0x1f780e(0x34b)](_0x38b508)),'orderedRecordIds':_0x351bbe,'nodes':_0x65e759}};}function rt(_0x475537,_0x59e3fa){const _0x4f03e9=_0x6c183;if(!_0x475537[_0x4f03e9(0x160)]||!(_0x59e3fa!=null&&_0x59e3fa['size']))return _0x475537[_0x4f03e9(0x2c5)];let _0x21d537=[],_0x50841b=0x0;for(;_0x50841b<_0x475537[_0x4f03e9(0x2c5)][_0x4f03e9(0x13c)];){let _0x51a4c4=_0x475537[_0x4f03e9(0x2c5)][_0x50841b];_0x21d537['push'](_0x51a4c4);let _0x52d34a=_0x475537[_0x4f03e9(0x160)][_0x4f03e9(0x2e4)][_0x51a4c4[_0x4f03e9(0x347)]];_0x50841b=_0x59e3fa[_0x4f03e9(0x34b)](_0x51a4c4[_0x4f03e9(0x347)])&&_0x52d34a?_0x52d34a['subtreeEndIndex']+0x1:_0x50841b+0x1;}return _0x21d537;}function it(_0x2aa3ab,_0x197172,_0x1f5a3a){const _0x3a2d7d=_0x6c183;if(!_0x1f5a3a)return{'valid':!0x0};if(_0x197172===_0x1f5a3a)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x40a)]};let _0x55be3c=_0x1f5a3a;for(;_0x55be3c;){if(_0x55be3c===_0x197172)return{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x478)]};_0x55be3c=_0x2aa3ab['parentByRecordId'][_0x3a2d7d(0x43e)](_0x55be3c)??null;}return(_0x2aa3ab['depthByRecordId'][_0x3a2d7d(0x43e)](_0x1f5a3a)??0x0)+0x1+(_0x2aa3ab[_0x3a2d7d(0x146)][_0x3a2d7d(0x43e)](_0x197172)??0x0)>=0x5?{'valid':!0x1,'reason':_0x5b4879[_0x3a2d7d(0x285)]}:{'valid':!0x0};}function at(_0x431600,_0x3fb1b5){const _0x1c569d=_0x6c183;let _0xc92e69=new Set(),_0xacdf3d=[];for(let _0x5424e9 of _0x3fb1b5)_0x431600['records'][_0x5424e9]&&!_0xc92e69[_0x1c569d(0x34b)](_0x5424e9)&&(_0xc92e69[_0x1c569d(0x2ee)](_0x5424e9),_0xacdf3d[_0x1c569d(0x174)](_0x5424e9));return Object[_0x1c569d(0x24c)](_0x431600['records'])['sort']()[_0x1c569d(0x2e0)](_0x31e898=>{const _0x4370cb=_0x1c569d;_0xc92e69[_0x4370cb(0x34b)](_0x31e898)||_0xacdf3d[_0x4370cb(0x174)](_0x31e898);}),_0xacdf3d;}function ot(_0x2d3c46,_0x4692fb,_0xbc05d5){const _0xd17422=_0x6c183;let _0x1135c7=new Set();for(let _0x75b99d of _0xbc05d5){if(_0x1135c7['has'](_0x75b99d))continue;let _0x5f0873=[],_0x3b73f1=new Map(),_0x29d32b=_0x75b99d;for(;_0x29d32b&&!_0x1135c7[_0xd17422(0x34b)](_0x29d32b);){let _0x3df1ec=_0x3b73f1[_0xd17422(0x43e)](_0x29d32b);if(_0x3df1ec!=null){let _0x19dabc=[..._0x5f0873[_0xd17422(0x12c)](_0x3df1ec)][_0xd17422(0x277)]()[_0xd17422(0x481)]();_0x2d3c46[_0xd17422(0x49e)](_0x19dabc,null),_0x4692fb[_0xd17422(0x49e)](_0x19dabc,_0x5b4879['Cycle']);break;}_0x3b73f1[_0xd17422(0x49e)](_0x29d32b,_0x5f0873[_0xd17422(0x13c)]),_0x5f0873['push'](_0x29d32b),_0x29d32b=_0x2d3c46[_0xd17422(0x43e)](_0x29d32b)??null;}_0x5f0873['forEach'](_0x455f93=>_0x1135c7[_0xd17422(0x2ee)](_0x455f93));}}function st(_0x122e9f,_0x4fa300,_0xade768){const _0x4dd917=_0x6c183;let _0x4f8640=new Map(),_0x2c50e9=_0x8234d5=>{const _0x2e2056=_0x2b5a;let _0x397d49=_0x4f8640['get'](_0x8234d5);if(_0x397d49!=null)return _0x397d49;let _0x36081e=_0x122e9f['get'](_0x8234d5)??null;if(!_0x36081e)return _0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0;let _0x2444cc=_0x2c50e9(_0x36081e)+0x1;return _0x2444cc>=0x5?(_0x122e9f[_0x2e2056(0x49e)](_0x8234d5,null),_0x4fa300['set'](_0x8234d5,_0x5b4879[_0x2e2056(0x285)]),_0x4f8640[_0x2e2056(0x49e)](_0x8234d5,0x0),0x0):(_0x4f8640['set'](_0x8234d5,_0x2444cc),_0x2444cc);};_0xade768[_0x4dd917(0x2e0)](_0x2c50e9);}let ct=0x0;function lt(){const _0x18b79c=_0x6c183;if(globalThis['__UNIVER_BASE_PERF__']===!0x0)return!0x0;try{let _0x3dfe9d=typeof location>'u'?'':location['search'],_0x2f0595=new URLSearchParams(_0x3dfe9d);if(_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))==='1'||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2b6))===_0x18b79c(0x269)||_0x2f0595[_0x18b79c(0x43e)](_0x18b79c(0x2e5))==='1')return!0x0;}catch{}try{let _0x556114=typeof localStorage>'u'?null:localStorage[_0x18b79c(0x4a2)](_0x18b79c(0x29a));return _0x556114==='1'||_0x556114===_0x18b79c(0x269);}catch{return!0x1;}}function I(_0x324efd,_0x4e870c,_0x51a978){const _0x50f4d9=_0x6c183;if(!lt())return _0x4e870c();let _0x6ef8b5=dt(),_0x4bfaaa='base-perf-'+ct++;ft(_0x4bfaaa+_0x50f4d9(0x3e6));try{return _0x4e870c();}finally{let _0x47c07b=dt()-_0x6ef8b5;ft(_0x4bfaaa+_0x50f4d9(0x4c6)),pt(_0x324efd,_0x4bfaaa+_0x50f4d9(0x3e6),_0x4bfaaa+':end'),ut(_0x324efd,_0x47c07b,_0x51a978);}}function ut(_0x3b6fed,_0x3fdc91,_0x74b852){const _0x21fc60=_0x6c183;if(!lt())return;let _0x5adf3a=Math[_0x21fc60(0x343)](_0x3fdc91*0x64)/0x64,_0x18a5cc=_0x74b852&&Object[_0x21fc60(0x24c)](_0x74b852)[_0x21fc60(0x13c)]?'\x20'+JSON[_0x21fc60(0x25f)](_0x74b852):'';console[_0x21fc60(0x435)](_0x21fc60(0x1f1)+_0x3b6fed+':\x20'+_0x5adf3a+'ms'+_0x18a5cc);}function dt(){const _0x35915c=_0x6c183;return typeof performance<'u'&&typeof performance[_0x35915c(0x2a4)]==_0x35915c(0x424)?performance['now']():Date[_0x35915c(0x2a4)]();}function ft(_0x14914d){try{if(typeof performance<'u'){var _0x262c87,_0x1edf1f;(_0x262c87=(_0x1edf1f=performance)['mark'])==null||_0x262c87['call'](_0x1edf1f,_0x14914d);}}catch{}}function pt(_0x2e467b,_0x5925ae,_0x2ea3d2){const _0x7f2478=_0x6c183;try{if(typeof performance<'u'){var _0x5d1392,_0x351fa4;(_0x5d1392=(_0x351fa4=performance)[_0x7f2478(0x1ae)])==null||_0x5d1392[_0x7f2478(0x43b)](_0x351fa4,'[BasePerf]\x20'+_0x2e467b,_0x5925ae,_0x2ea3d2);}}catch{}}function L(_0x534866){const _0x14bbf5=_0x6c183;var _0x1734b9;return lt()?I(_0x14bbf5(0x217),()=>mt(_0x534866),{'tableId':_0x534866['id'],'records':Object[_0x14bbf5(0x24c)](_0x534866[_0x14bbf5(0x258)]??{})[_0x14bbf5(0x13c)],'fields':_0x534866[_0x14bbf5(0x3b5)][_0x14bbf5(0x13c)],'hasRecordOrder':!!((_0x1734b9=_0x534866['recordOrder'])!=null&&_0x1734b9[_0x14bbf5(0x13c)])}):mt(_0x534866);}function mt(_0x38f498){const _0x1d69c3=_0x6c183;var _0x1bdb61;let _0x2e9131=_0x38f498[_0x1d69c3(0x258)]??{},_0x560b7f=_0x38f498[_0x1d69c3(0x398)]??{},_0x4d3090=((_0x1bdb61=_0x38f498[_0x1d69c3(0x1e7)])==null?void 0x0:_0x1bdb61['filter'](_0x32549b=>_0x2e9131[_0x32549b]))??[],_0x187e56=new Set(_0x4d3090),_0x2e11c1=[];for(let _0x3411a2 of Object['values'](_0x2e9131))_0x187e56['has'](_0x3411a2['id'])||_0x2e11c1[_0x1d69c3(0x174)](_0x3411a2);let _0x365846=_0x2e11c1[_0x1d69c3(0x13c)]?[..._0x4d3090,...Rt(_0x2e11c1)]:_0x4d3090,_0x4563e2=_0x38f498[_0x1d69c3(0x3b5)][_0x1d69c3(0x2be)](_0x4bfeef=>_0x560b7f[_0x4bfeef]),_0x152f6d={..._0x38f498[_0x1d69c3(0x3d0)]??{}},_0x1cf960={..._0x38f498[_0x1d69c3(0x1fe)]??{}},_0x3b8c89={..._0x38f498[_0x1d69c3(0x389)]??{}};_0x38f498[_0x1d69c3(0x1e7)]=_0x365846,_0x38f498[_0x1d69c3(0x375)]={},_0x38f498[_0x1d69c3(0x3d0)]={},_0x38f498['colIndex']={},_0x38f498[_0x1d69c3(0x1fe)]={},_0x38f498[_0x1d69c3(0x389)]={},_0x38f498['resources']={..._0x38f498[_0x1d69c3(0x421)]??{}},_0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x199)]={..._0x38f498['resources'][_0x1d69c3(0x199)]??{}},_0x38f498['resources'][_0x1d69c3(0x4b9)]={..._0x38f498[_0x1d69c3(0x421)][_0x1d69c3(0x4b9)]??{}};let _0x19ae6d=_0x38f498['rowIndex'],_0x33687a=_0x38f498['rowId'],_0x12e741=_0x38f498[_0x1d69c3(0x390)],_0x3a6e3d=_0x38f498['colId'],_0x9ef92b=_0x38f498[_0x1d69c3(0x389)];return _0x365846[_0x1d69c3(0x2e0)]((_0x3c476a,_0x5c56e6)=>{_0x19ae6d[_0x3c476a]=_0x5c56e6,_0x33687a[_0x5c56e6]=_0x3c476a;}),_0x4563e2[_0x1d69c3(0x2e0)]((_0x458028,_0x1ed264)=>{_0x12e741[_0x458028]=_0x1ed264,_0x3a6e3d[_0x1ed264]=_0x458028;}),Object[_0x1d69c3(0x279)](_0x3b8c89)['forEach'](([_0x8256c1,_0x29be1a])=>{const _0x3eee1d=_0x1d69c3;let _0x2f60c0=Number(_0x8256c1),_0x26f6d3=_0x152f6d[_0x2f60c0]??_0x365846[_0x2f60c0],_0x10cd91=_0x26f6d3?_0x19ae6d[_0x26f6d3]:void 0x0;_0x10cd91!=null&&(_0x9ef92b[_0x10cd91]={..._0x9ef92b[_0x10cd91]??{}},Object[_0x3eee1d(0x279)](_0x29be1a??{})[_0x3eee1d(0x2e0)](([_0x5a55a5,_0x438559])=>{let _0x7ddaaf=Number(_0x5a55a5),_0x4fd80b=_0x1cf960[_0x7ddaaf]??_0x4563e2[_0x7ddaaf],_0x31ef99=_0x4fd80b?_0x12e741[_0x4fd80b]:void 0x0;_0x31ef99!=null&&(_0x9ef92b[_0x10cd91][_0x31ef99]=St(_0x438559));}));}),Object['values'](_0x2e9131)[_0x1d69c3(0x2e0)](_0x28b7aa=>{const _0x21d38b=_0x1d69c3;let _0x5d71fa=_0x19ae6d[_0x28b7aa['id']];_0x5d71fa!=null&&(_0x28b7aa[_0x21d38b(0x227)]={..._0x28b7aa[_0x21d38b(0x227)]??{},[_0x5a35e2]:_0x28b7aa['id']},_0x9ef92b[_0x5d71fa]={..._0x9ef92b[_0x5d71fa]??{},0x0:{'v':_0x28b7aa['id'],'t':_0x4dac72[_0x21d38b(0x18a)]}},Object[_0x21d38b(0x279)](_0x28b7aa['values']??{})['forEach'](([_0x1fe726,_0x12ff88])=>{const _0x127068=_0x21d38b;let _0x2e2c8f=_0x560b7f[_0x1fe726];(_0x2e2c8f==null?void 0x0:_0x2e2c8f[_0x127068(0x20b)])===_0x3a044b[_0x127068(0x1ab)]&&Dt(_0x38f498,_0x28b7aa['id'],_0x1fe726,_0x12ff88);let _0x2db116=_0x12e741[_0x1fe726];if(_0x2db116==null)return;let _0x5ab2c6=_0x9ef92b[_0x5d71fa][_0x2db116];if(_0x5ab2c6!=null){jt(_0x5ab2c6,_0x2e2c8f,_0x12ff88)&&(_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f));return;}_0x9ef92b[_0x5d71fa][_0x2db116]=xt(_0x12ff88,_0x2e2c8f);}));}),_0x38f498;}function ht(_0x2ae022,_0x1e4c0f){const _0xe178f7=_0x6c183;return _0x2ae022[_0xe178f7(0x258)]=Object[_0xe178f7(0x176)](Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x258)])[_0xe178f7(0x141)](([_0x5a93ec,_0x236a46])=>[_0x5a93ec,{..._0x236a46}])),L(_0x2ae022),Object[_0xe178f7(0x279)](_0x2ae022[_0xe178f7(0x3d0)]??{})[_0xe178f7(0x2e0)](([_0x203f7c,_0x33e6b1])=>{const _0x3cc19c=_0xe178f7;var _0x41f478;let _0x16bc50=Number(_0x203f7c),_0x183a46=_0x2ae022[_0x3cc19c(0x258)][_0x33e6b1];_0x183a46&&(_0x183a46[_0x3cc19c(0x227)]={..._0x183a46[_0x3cc19c(0x227)]??{}},Object['entries'](((_0x41f478=_0x2ae022['cellData'])==null?void 0x0:_0x41f478[_0x16bc50])??{})[_0x3cc19c(0x2e0)](([_0x4be748,_0x4a8c9a])=>{const _0x179d3f=_0x3cc19c;var _0x51f3c6;let _0x3c434a=(_0x51f3c6=_0x2ae022[_0x179d3f(0x1fe)])==null?void 0x0:_0x51f3c6[Number(_0x4be748)];_0x3c434a&&_0x1e4c0f&&!_0x1e4c0f(_0x33e6b1,_0x3c434a)||(_0x3c434a===_0x5a35e2?_0x183a46['values'][_0x5a35e2]=_0x183a46['id']:_0x3c434a&&(_0x183a46[_0x179d3f(0x227)][_0x3c434a]=Ct(_0x4a8c9a,_0x2ae022['fields'][_0x3c434a],_0x2ae022,_0x33e6b1)));}));}),_0x2ae022;}function gt(_0x4c4201,_0x1bed3a){const _0x5e4c5d=_0x6c183;for(let {row:_0x4ee377,col:_0x2c24e3}of _0x1bed3a){var _0x1dbccc,_0x5aeb2f,_0x1bc06e;let _0x4557bf=(_0x1dbccc=_0x4c4201[_0x5e4c5d(0x3d0)])==null?void 0x0:_0x1dbccc[_0x4ee377],_0x55d6e1=(_0x5aeb2f=_0x4c4201[_0x5e4c5d(0x1fe)])==null?void 0x0:_0x5aeb2f[_0x2c24e3],_0x1a48e7=_0x4557bf?_0x4c4201[_0x5e4c5d(0x258)][_0x4557bf]:void 0x0;if(!_0x1a48e7||!_0x55d6e1)continue;if(_0x55d6e1===_0x5a35e2){_0x1a48e7[_0x5e4c5d(0x227)][_0x5a35e2]=_0x1a48e7['id'];continue;}let _0x4ed01d=(_0x1bc06e=_0x4c4201['cellData'])==null||(_0x1bc06e=_0x1bc06e[_0x4ee377])==null?void 0x0:_0x1bc06e[_0x2c24e3];(_0x4ed01d!=null||Object[_0x5e4c5d(0x246)][_0x5e4c5d(0x48a)][_0x5e4c5d(0x43b)](_0x1a48e7[_0x5e4c5d(0x227)]??{},_0x55d6e1))&&(_0x1a48e7[_0x5e4c5d(0x227)]={..._0x1a48e7['values']??{}},_0x1a48e7['values'][_0x55d6e1]=Ct(_0x4ed01d,_0x4c4201[_0x5e4c5d(0x398)][_0x55d6e1],_0x4c4201,_0x4557bf));}return _0x4c4201;}function _t(_0x49871b,_0x23225f,_0x387c7b){const _0x5ee162=_0x6c183;var _0x5403aa,_0x2a4211,_0x3e52d9,_0xa13413,_0x1dd1e4,_0x433960;let _0x27384e=(_0x5403aa=_0x49871b[_0x5ee162(0x375)])==null?void 0x0:_0x5403aa[_0x23225f],_0x2690af=(_0x2a4211=_0x49871b[_0x5ee162(0x390)])==null?void 0x0:_0x2a4211[_0x387c7b];if(_0x27384e!=null&&_0x2690af!=null&&((_0x3e52d9=_0x49871b[_0x5ee162(0x3d0)])==null?void 0x0:_0x3e52d9[_0x27384e])===_0x23225f&&((_0xa13413=_0x49871b[_0x5ee162(0x1fe)])==null?void 0x0:_0xa13413[_0x2690af])===_0x387c7b)return{'row':_0x27384e,'col':_0x2690af};let _0x563712=L(_0x49871b),_0x317d5c=(_0x1dd1e4=_0x563712[_0x5ee162(0x375)])==null?void 0x0:_0x1dd1e4[_0x23225f],_0x5372ae=(_0x433960=_0x563712[_0x5ee162(0x390)])==null?void 0x0:_0x433960[_0x387c7b];return _0x317d5c==null||_0x5372ae==null?null:{'row':_0x317d5c,'col':_0x5372ae};}function vt(_0x1503d6,_0x1c4ac9,_0x337e23){const _0xdd88ab=_0x6c183;var _0x1fd2d0;let _0x4ae2f3=_t(_0x1503d6,_0x1c4ac9,_0x337e23);if(_0x4ae2f3)return(_0x1fd2d0=_0x1503d6['cellData'])==null||(_0x1fd2d0=_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x4b3)]])==null?void 0x0:_0x1fd2d0[_0x4ae2f3[_0xdd88ab(0x295)]];}function yt(_0x21371a,_0x366f24,_0x2220c7){const _0x42c342=_0x6c183;var _0x55d914;let _0x564b79=vt(_0x21371a,_0x366f24,_0x2220c7),_0x2ba599=_0x21371a[_0x42c342(0x398)][_0x2220c7];if((_0x2ba599==null?void 0x0:_0x2ba599['type'])===_0x3a044b['Attachment']){var _0x2d4db3;return Ot(_0x21371a,_0x366f24,_0x2220c7)??kt((_0x2d4db3=_0x21371a['records'][_0x366f24])==null||(_0x2d4db3=_0x2d4db3['values'])==null?void 0x0:_0x2d4db3[_0x2220c7]);}if(Mt(_0x2ba599)||Nt(_0x2ba599)||(_0x2ba599==null?void 0x0:_0x2ba599[_0x42c342(0x20b)])===_0x3a044b['Link']){var _0x3e427f;let _0x5cdc8d=(_0x3e427f=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x3e427f=_0x3e427f['values'])==null?void 0x0:_0x3e427f[_0x2220c7];return _0x5cdc8d!=null&&_0x5cdc8d!==''?At(_0x5cdc8d,_0x2ba599):Ct(_0x564b79,_0x2ba599,_0x21371a,_0x366f24);}return _0x564b79&&Object['prototype'][_0x42c342(0x48a)][_0x42c342(0x43b)](_0x564b79,'v')?_0x564b79['v']??null:((_0x55d914=_0x21371a[_0x42c342(0x258)][_0x366f24])==null||(_0x55d914=_0x55d914[_0x42c342(0x227)])==null?void 0x0:_0x55d914[_0x2220c7])??null;}function bt(_0x1e5791,_0x34e651,_0x1b5652){const _0x4f3260=_0x6c183;var _0x12cdeb;let _0x75d941=vt(_0x1e5791,_0x34e651,_0x1b5652);if(_0x75d941&&Object[_0x4f3260(0x246)][_0x4f3260(0x48a)][_0x4f3260(0x43b)](_0x75d941,'v'))return _0x75d941['v']??null;let _0xa959e0=_0x1e5791['fields'][_0x1b5652];return xt(((_0x12cdeb=_0x1e5791[_0x4f3260(0x258)][_0x34e651])==null||(_0x12cdeb=_0x12cdeb[_0x4f3260(0x227)])==null?void 0x0:_0x12cdeb[_0x1b5652])??null,_0xa959e0)['v']??null;}function xt(_0x25b4fa,_0x4acb79){const _0x177c6f=_0x6c183;if(Tt(_0x25b4fa))return(_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)]?{..._0x25b4fa,'v':'','t':_0x4dac72['STRING']}:St(_0x25b4fa);if((_0x4acb79==null?void 0x0:_0x4acb79[_0x177c6f(0x20b)])===_0x3a044b[_0x177c6f(0x1ab)])return{'v':'','t':_0x4dac72[_0x177c6f(0x18a)]};if(Nt(_0x4acb79)){let _0x1f97cf=Pt(_0x25b4fa);return{'v':_0x1f97cf,'t':Lt(_0x1f97cf)};}if(Mt(_0x4acb79))return{'v':Ft(_0x25b4fa)['join'](',\x20'),'t':_0x4dac72[_0x177c6f(0x18a)]};if((_0x4acb79==null?void 0x0:_0x4acb79['type'])===_0x3a044b[_0x177c6f(0x41f)]&&_0x25b4fa&&typeof _0x25b4fa==_0x177c6f(0x3d7)&&!Array[_0x177c6f(0x431)](_0x25b4fa)){let _0x357413=_0x25b4fa;return{'v':String(_0x357413[_0x177c6f(0x3ae)]??_0x357413[_0x177c6f(0x32d)]??''),'t':_0x4dac72['STRING']};}return _0x25b4fa===null||typeof _0x25b4fa==_0x177c6f(0x425)||typeof _0x25b4fa=='number'||typeof _0x25b4fa==_0x177c6f(0x1cb)?{'v':_0x25b4fa,'t':Lt(_0x25b4fa)}:{'v':null,'t':null};}function St(_0x15d988){let _0x462742=zt(_0x15d988['t'],_0x15d988['v']);if(_0x462742===void 0x0){let {t:_0x5518ad,..._0x47c662}=_0x15d988;return _0x47c662;}return{..._0x15d988,'t':_0x462742};}function Ct(_0x29a1f0,_0x513c83,_0x7bba70,_0x685f47){const _0x1da3eb=_0x6c183;if(!_0x29a1f0)return null;if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b['Attachment'])return _0x7bba70&&_0x685f47?Ot(_0x7bba70,_0x685f47,_0x513c83['id'])??[]:[];if(Mt(_0x513c83))return Ft(_0x29a1f0['v']);if((_0x513c83==null?void 0x0:_0x513c83[_0x1da3eb(0x20b)])===_0x3a044b[_0x1da3eb(0x41f)]&&_0x7bba70&&_0x685f47){var _0x3b856a;let _0x990a08=(_0x3b856a=_0x7bba70['records'][_0x685f47])==null||(_0x3b856a=_0x3b856a[_0x1da3eb(0x227)])==null?void 0x0:_0x3b856a[_0x513c83['id']];if(_0x990a08&&typeof _0x990a08==_0x1da3eb(0x3d7)&&!Array['isArray'](_0x990a08))return _0x990a08;}return Object['prototype'][_0x1da3eb(0x48a)][_0x1da3eb(0x43b)](_0x29a1f0,'v')?_0x29a1f0['v']??null:null;}function wt(_0x481e05,_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8){const _0x1c67e2=_0x6c183;return(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x1ab)]?kt(_0x481e05):Nt(_0x205cf8)?Pt(_0x481e05):Mt(_0x205cf8)?Ft(_0x481e05):(_0x205cf8==null?void 0x0:_0x205cf8['type'])===_0x3a044b[_0x1c67e2(0x41f)]&&(_0x481e05==null||_0x481e05==='')?null:(_0x205cf8==null?void 0x0:_0x205cf8[_0x1c67e2(0x20b)])===_0x3a044b[_0x1c67e2(0x41f)]&&_0x481e05&&typeof _0x481e05==_0x1c67e2(0x3d7)&&!Array['isArray'](_0x481e05)&&!Tt(_0x481e05)?_0x481e05:Ct(_0x1d2fdb,_0x205cf8,_0x4c718b,_0x6396e8);}function Tt(_0x44a14f){const _0x512577=_0x6c183;return!!_0x44a14f&&typeof _0x44a14f==_0x512577(0x3d7)&&(Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'v')||Object['prototype']['hasOwnProperty'][_0x512577(0x43b)](_0x44a14f,'t')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'p')||Object['prototype'][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'f')||Object[_0x512577(0x246)][_0x512577(0x48a)][_0x512577(0x43b)](_0x44a14f,'si'));}function Et(_0x286138,_0x3c8988){return _0x286138+'\x1f'+_0x3c8988;}function Dt(_0x4b77ec,_0x389f24,_0x5229d5,_0x43a15c){const _0x172f6c=_0x6c183;let _0x1e9f8e=kt(_0x43a15c);_0x4b77ec['resources']={..._0x4b77ec[_0x172f6c(0x421)]??{}},_0x4b77ec[_0x172f6c(0x421)]['attachmentSets']={..._0x4b77ec[_0x172f6c(0x421)]['attachmentSets']??{}},_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x4b9)]={..._0x4b77ec['resources']['attachments']??{}};let _0x434724=Et(_0x5229d5,_0x389f24),_0x30f32b=[];for(let _0x21e4dc=0x0;_0x21e4dc<_0x1e9f8e['length'];_0x21e4dc++){if(!(_0x21e4dc in _0x1e9f8e))continue;let _0x15215d=_0x1e9f8e[_0x21e4dc],_0x38c495=String(_0x15215d['id']??_0x434724+'\x1f'+_0x21e4dc),_0x17ce1f={..._0x15215d,'id':_0x38c495};_0x4b77ec['resources'][_0x172f6c(0x4b9)][_0x38c495]=_0x17ce1f,_0x30f32b[_0x172f6c(0x174)](_0x38c495);}_0x4b77ec[_0x172f6c(0x421)][_0x172f6c(0x199)][_0x434724]=_0x30f32b;}function Ot(_0x4aad99,_0x5b889b,_0x293f73){const _0x5f5d6e=_0x6c183;var _0x5df4d4;let _0x451aa5=Et(_0x293f73,_0x5b889b),_0x564009=(_0x5df4d4=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x5df4d4=_0x5df4d4['attachmentSets'])==null?void 0x0:_0x5df4d4[_0x451aa5];if(!_0x564009)return null;let _0x175d14=[];for(let _0x784ee1=0x0;_0x784ee1<_0x564009[_0x5f5d6e(0x13c)];_0x784ee1++){var _0x59d619;if(!(_0x784ee1 in _0x564009))continue;let _0x4704b4=(_0x59d619=_0x4aad99[_0x5f5d6e(0x421)])==null||(_0x59d619=_0x59d619[_0x5f5d6e(0x4b9)])==null?void 0x0:_0x59d619[_0x564009[_0x784ee1]];_0x4704b4&&_0x175d14[_0x5f5d6e(0x174)]({..._0x4704b4});}return _0x175d14;}function kt(_0x4cf363){const _0x18511e=_0x6c183;if(_0x4cf363==null||_0x4cf363===''||Tt(_0x4cf363)&&!('id'in _0x4cf363)&&!('name'in _0x4cf363))return[];let _0x49cb2b=Array[_0x18511e(0x431)](_0x4cf363)?_0x4cf363:[_0x4cf363],_0x1a140f=[];for(let _0x445a26=0x0;_0x445a26<_0x49cb2b[_0x18511e(0x13c)];_0x445a26++){if(!(_0x445a26 in _0x49cb2b))continue;let _0x53e3e3=_0x49cb2b[_0x445a26],_0x347ac9=_0x53e3e3&&typeof _0x53e3e3=='object'?{..._0x53e3e3}:{'id':_0x18511e(0x2b7)+_0x445a26,'name':String(_0x53e3e3)};Object['keys'](_0x347ac9)[_0x18511e(0x13c)]>0x0&&_0x1a140f[_0x18511e(0x174)](_0x347ac9);}return _0x1a140f;}function At(_0x1e7c06,_0x2cba30){return(_0x2cba30==null?void 0x0:_0x2cba30['type'])===_0x3a044b['Attachment']?kt(_0x1e7c06):Nt(_0x2cba30)?Pt(_0x1e7c06):Mt(_0x2cba30)?Ft(_0x1e7c06):_0x1e7c06;}function jt(_0x383d3a,_0x4d5371,_0x344589){const _0x5c17a3=_0x6c183;return(_0x4d5371==null?void 0x0:_0x4d5371['type'])===_0x3a044b[_0x5c17a3(0x1ab)]?_0x383d3a['v']!=='':Nt(_0x4d5371)?_0x383d3a['v']!==Pt(_0x344589):Mt(_0x4d5371)?Array[_0x5c17a3(0x431)](_0x344589)&&(_0x383d3a['v']==null||_0x383d3a['v']===''):!0x1;}function Mt(_0x4d4fd3){const _0x5943f6=_0x6c183;return(_0x4d4fd3==null?void 0x0:_0x4d4fd3['type'])===_0x3a044b[_0x5943f6(0x386)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x1ad)]||(_0x4d4fd3==null?void 0x0:_0x4d4fd3[_0x5943f6(0x20b)])===_0x3a044b[_0x5943f6(0x359)]&&_0x4d4fd3[_0x5943f6(0x2ba)]['allowMultiple']===!0x0;}function Nt(_0x19a687){const _0x245e0d=_0x6c183;return(_0x19a687==null?void 0x0:_0x19a687[_0x245e0d(0x20b)])===_0x3a044b[_0x245e0d(0x359)]&&_0x19a687['config'][_0x245e0d(0x198)]!==!0x0;}function Pt(_0x19b8a3){let _0x2f3d70=Tt(_0x19b8a3)?_0x19b8a3['v']:_0x19b8a3,_0x2ec5e6=Array['isArray'](_0x2f3d70)?_0x2f3d70[0x0]:_0x2f3d70;return _0x2ec5e6==null||_0x2ec5e6===''?null:String(_0x2ec5e6);}function Ft(_0x321370){const _0x4fc6d4=_0x6c183;if(_0x321370==null||_0x321370==='')return[];let _0x45ff6f=[];if(Array[_0x4fc6d4(0x431)](_0x321370)){for(let _0x6a5a0e=0x0;_0x6a5a0e<_0x321370[_0x4fc6d4(0x13c)];_0x6a5a0e++){if(!(_0x6a5a0e in _0x321370))continue;let _0x433477=It(_0x321370[_0x6a5a0e]);_0x433477&&_0x45ff6f[_0x4fc6d4(0x174)](_0x433477);}return _0x45ff6f;}for(let _0x50f979 of String(_0x321370)[_0x4fc6d4(0x1c0)](',')){let _0x3f2b31=_0x50f979['trim']();_0x3f2b31&&_0x45ff6f['push'](_0x3f2b31);}return _0x45ff6f;}function It(_0x11813d){const _0x287b8e=_0x6c183;if(_0x11813d==null)return'';if(typeof _0x11813d==_0x287b8e(0x425)||typeof _0x11813d==_0x287b8e(0x24b)||typeof _0x11813d=='boolean')return String(_0x11813d);if(typeof _0x11813d=='object'){let _0x447d9d=_0x11813d;return String(_0x447d9d['id']??_0x447d9d[_0x287b8e(0x2a3)]??_0x447d9d[_0x287b8e(0x3ae)]??'');}return String(_0x11813d);}function Lt(_0x386f5a){const _0x53d856=_0x6c183;return _0x386f5a==null?null:typeof _0x386f5a=='number'?_0x4dac72['NUMBER']:typeof _0x386f5a==_0x53d856(0x1cb)?_0x4dac72[_0x53d856(0x1b8)]:_0x4dac72[_0x53d856(0x18a)];}function Rt(_0x568f63){const _0x2a4f6f=_0x6c183;_0x568f63[_0x2a4f6f(0x277)]((_0x281c70,_0x2fc099)=>_0x281c70[_0x2a4f6f(0x4a1)]['localeCompare'](_0x2fc099[_0x2a4f6f(0x4a1)]));let _0x257de0=[];for(let _0x5c9e7a of _0x568f63)_0x257de0[_0x2a4f6f(0x174)](_0x5c9e7a['id']);return _0x257de0;}function zt(_0xa9485a,_0x5eed5b){const _0x41d8ff=_0x6c183;return _0xa9485a===_0x4dac72[_0x41d8ff(0x18a)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x324)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x1b8)]||_0xa9485a===_0x4dac72[_0x41d8ff(0x175)]||_0xa9485a==null?_0xa9485a:Lt(_0x5eed5b??null);}function R(_0x96eccc){const _0x18483d=_0x6c183;let _0x3226d2=null;for(let _0x4ce7bb of _0x96eccc)_0x3226d2=_0x3226d2===null?_0x4ce7bb:_0x53fdae[_0x18483d(0x20b)][_0x18483d(0x2a2)](_0x3226d2,_0x4ce7bb);return _0x3226d2;}var z=class e{static[_0x6c183(0x30e)](_0xe525ab,_0x27ea61){const _0x51c1bd=_0x6c183;let _0x39b8c7=[];for(let _0x1f4bdf of _0x27ea61){let _0x4028df=Bt(_0x1f4bdf);if(!_0x4028df||_0x4028df[_0x51c1bd(0x393)]!==_0xe525ab['id'])return null;_0x39b8c7[_0x51c1bd(0x174)](_0x4028df['op']);}try{let _0x1a0182=R(_0x39b8c7);return _0x1a0182===null?_0xe525ab:new e()[_0x51c1bd(0x4c3)](_0xe525ab,_0x1a0182);}catch{return null;}}[_0x6c183(0x4c3)](_0x3bd42c,_0x104de0){const _0x5bda69=_0x6c183;let _0x3d68ba=this[_0x5bda69(0x311)](_0x104de0),_0x4f434d=I(_0x5bda69(0x3a7),()=>Xt(_0x3bd42c,_0x104de0),{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),_0x21e2a6=I('BaseJson1.json1Apply',()=>_0x53fdae[_0x5bda69(0x20b)]['apply'](_0x4f434d,_0x104de0),{'invalidations':_0x3d68ba['length']}),_0x36d3ef=Ht(_0x21e2a6,_0x3d68ba);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x21e2a6,_0x3d68ba),{'invalidations':_0x3d68ba['length']})?(Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6):(I(_0x5bda69(0x335),()=>{const _0x353d12=_0x5bda69;this[_0x353d12(0x306)](_0x21e2a6,_0x3d68ba)['forEach'](_0xdf237d=>{const _0x1aed4f=_0x353d12;let _0x5af1f7=_0x3d68ba[_0x1aed4f(0x2be)](_0x44cd95=>_0x44cd95[_0x1aed4f(0x210)]===_0xdf237d['id']),_0x1ef448=_0x5af1f7[_0x1aed4f(0x13c)]>0x0&&_0x5af1f7['every'](_0x44145c=>_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x2d5)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x37d)||_0x44145c[_0x1aed4f(0x28a)]===_0x1aed4f(0x1de)||_0x44145c['reason']===_0x1aed4f(0x493))?new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x270711=>{const _0x441529=_0x1aed4f;var _0x1eab4c;if(_0x270711[_0x441529(0x28a)]!==_0x441529(0x2d5)||!_0x270711['fieldId'])return[];let _0x3933e6=(_0x1eab4c=_0x3bd42c[_0x441529(0x298)][_0xdf237d['id']])==null?void 0x0:_0x1eab4c['fields'][_0x270711[_0x441529(0x2b0)]],_0x215778=_0xdf237d[_0x441529(0x398)][_0x270711[_0x441529(0x2b0)]];return(_0x3933e6==null?void 0x0:_0x3933e6['type'])!==(_0x215778==null?void 0x0:_0x215778['type'])||(_0x3933e6==null?void 0x0:_0x3933e6[_0x441529(0x2ba)][_0x441529(0x198)])!==(_0x215778==null?void 0x0:_0x215778['config'][_0x441529(0x198)])?[_0x270711[_0x441529(0x2b0)]]:[];})):void 0x0,_0x4d5bf1=new Set(_0x5af1f7[_0x1aed4f(0x17a)](_0x3a70d6=>{const _0x5a74cb=_0x1aed4f;var _0x372c29,_0x2d0eaf;return _0x3a70d6[_0x5a74cb(0x28a)]!==_0x5a74cb(0x1de)||_0x3a70d6[_0x5a74cb(0x4b3)]==null||_0x3a70d6[_0x5a74cb(0x229)]==null?[]:[JSON[_0x5a74cb(0x25f)]([(_0x372c29=_0xdf237d[_0x5a74cb(0x3d0)])==null?void 0x0:_0x372c29[_0x3a70d6[_0x5a74cb(0x4b3)]],(_0x2d0eaf=_0xdf237d[_0x5a74cb(0x1fe)])==null?void 0x0:_0x2d0eaf[_0x3a70d6[_0x5a74cb(0x229)]]])];}));ht(_0xdf237d,_0x1ef448?(_0x572813,_0x4de451)=>_0x1ef448['has'](_0x4de451)||_0x4d5bf1[_0x1aed4f(0x34b)](JSON['stringify']([_0x572813,_0x4de451])):void 0x0);});},{'invalidations':_0x3d68ba[_0x5bda69(0x13c)]}),Ut(_0x21e2a6,_0x36d3ef),_0x21e2a6);}[_0x6c183(0x2d8)](_0xa20adb,_0x37c6f0){const _0x22f11d=_0x6c183;return _0x53fdae['type'][_0x22f11d(0x270)](_0x37c6f0,_0xa20adb);}[_0x6c183(0x311)](_0x255214){const _0x1ea0da=_0x6c183;let _0x57a43f=qt(_0x255214);return _0x57a43f[_0x1ea0da(0x13c)]?Jt(_0x57a43f[_0x1ea0da(0x17a)](_0x29c0d2=>this[_0x1ea0da(0x311)](_0x29c0d2))):Wt(_0x255214);}[_0x6c183(0x306)](_0x15ddd5,_0x25413d){const _0x5d9d00=_0x6c183;let _0x25f26a=_0x25413d[_0x5d9d00(0x2be)](_0x961931=>_0x961931['reason']!==_0x5d9d00(0x37d));return _0x25f26a[_0x5d9d00(0x13c)]?_0x25f26a['some'](_0x4c4c61=>!_0x4c4c61[_0x5d9d00(0x210)])?Object['values'](_0x15ddd5[_0x5d9d00(0x298)]??{}):Array[_0x5d9d00(0x1d5)](new Set(_0x25f26a[_0x5d9d00(0x141)](_0x516e68=>_0x516e68[_0x5d9d00(0x210)])))[_0x5d9d00(0x17a)](_0x1dd174=>{const _0x1c9b14=_0x5d9d00;var _0x544cf7;let _0xe33c01=(_0x544cf7=_0x15ddd5[_0x1c9b14(0x298)])==null?void 0x0:_0x544cf7[_0x1dd174];return _0xe33c01?[_0xe33c01]:[];}):[];}};function Bt(_0x572886){const _0x32db7d=_0x6c183;let _0x5e8a81=_0x572886['params'];return _0x572886['id']!==_0x32db7d(0x340)||typeof _0x5e8a81!='object'||!_0x5e8a81||!(_0x32db7d(0x393)in _0x5e8a81)||typeof _0x5e8a81[_0x32db7d(0x393)]!='string'||!('op'in _0x5e8a81)||!Array[_0x32db7d(0x431)](_0x5e8a81['op'])?null:{'unitId':_0x5e8a81[_0x32db7d(0x393)],'op':_0x5e8a81['op']};}function _0x4376(){const _0x29bbb7=['_getCachedProjection','_recordIds','objectType','rowIndex','multiple','base.command.batch-delete-base-records','Redo','_resolveBaseId','localeCompare','removeOp','_applier','view','IS_EMPTY','cardSize','[BaseCommandService]:\x20cannot\x20create\x20record.','_findCalendarDateFieldId','BaseDashboard','createRegExpFromSafeFragment','h12','next7','MultiSelect','every','saveMany','cellData','setBasePermission','resolvedOptions','lastIndexOf','clearFieldPermission','_projectionCache','date','colIndex','[RecordLink]:\x20display\x20field\x20\x22','find','unitId','spacePeriod','level','conditions','recordIds','fields','createDefaultConfig','base.command.create-base-view','card','_scheduledSuperTableSyncs','label','setFieldPermission','_normalizeCalendarDisplayColor','regenerateViewIds','setTablePermission','working','invalid','all','-field-name','setRecordValues','BaseJson1.cloneForOp','getSuperTableRegistrations','readonly','_bumpTableRevision','validateFormula','RecordLink','_permissionService','text','base.field-registry.service','MUTATION','\x20must\x20have\x20a\x20non-empty\x20id.','primaryFieldId','_filterSortFieldIds','cycle','fieldOrder','invalidReasonByRecordId','parentByRecordId','clearUnit','fromChangeset','_isAllowedKanbanGroupField','registerSyncingMutations','formula','depth','_normalizeGanttDisplayColor','remote','large','_createSystemFieldValuePatches','_resolveKanbanCardFieldIds','orderedRecordIds','_assertFieldDefinition','code','True','invalidateByOp','BaseRecord','thread-comment.command.','childUnitId','mode','_commandService','format','gridViewId','system','rowId','Working\x20day','canManageView','getTime','invalidateByField','_groupsCacheKey','base.mutation.set-permission-rules','object','rowIndexById','_projectFields','conditional','getAllUnitsForType','target','[BaseCommandService]:\x20cannot\x20manage\x20view.','next30','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','_registeredSuperTableNames','base.command.change-base-field-type','_canUseFastSort','leftPaneWidth','_viewRevisions','changeFieldType',':start','_getJson1DirtyData','action','renameFormulaUnitReferences','dateMode','_projectGroups','createBatchCreateRecordsOp','getUTCDate','52RlyNdo','endDateFieldId','base.command.update-base-record-order','long','_T_','Use\x2031\x20characters\x20or\x20fewer.','_resolveCardTitleFieldId','_isAllDayCalendarEvent','invalidDateField','setBaseName','getUTCMonth','deleteView','packageName','subtreeEndIndex','raw','duplicate','updatePermissionPoint','_formulaSyncQueue','[BaseFormula]:\x20field\x20\x22','blue','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','_capabilities','MMM\x20D,\x20YYYY','Failed\x20to\x20create\x20update\x20cell\x20operation:','isInteger','bases.remote.config','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','conditionalColoring','SelfParent','canCreateField','_cellInvalidations','_getHierarchyIndex','workingDaysOnly','allowDangling','_getSystemFieldValue','_kanbanLaneTitle','_findKanbanGroupField','recordPatch','invalidGroupField','getUTCFullYear','short','setViewGroup','base.viewType.gantt','getCurrentUserId','start','clearBasePermission','ena','_enqueueFormulaSync','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','Link','NumberFormat','resources','getFullYear','formulaName','function','string','groupFieldId','after','_getKanbanConfiguredLanes','base.command.move-base-view','_isColorfulKanbanGroupField','_getCellRevision','canEditField','hostAnchorId','unitData','none','displayColor','isArray','toLowerCase','exact','Gallery','info','[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.','_canEdit','_syncSuperTables','end','INIT','call','Kanban','month','get','initializeUnit','Add','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','findIndex','exists','exceptions','Empty','custom','CONTAINS','defineProperty','_projectRows','_hierarchyIndexCache','getAllPermissionPoint','_patchProjectedRowsForCellInvalidations','create-view','indexOf','[BaseProjectionService]:\x20missing\x20view\x20\x22','showTodayLine','_initDataSync','_groupCellInvalidations','General','constructor','_applyFormulaResult','_buildGrid','this-row','leftPaneCollapsed','[BaseCommandService]:\x20cannot\x20create\x20table.','Undo','owner','members','updatedAt','childType','error','save','editable','fromPlainText','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','Phone','deleteRecord','base.command.create-base-table','createCreateRecordOp','decorate','_resolveGanttDateFieldId','canEditRecord','_clearObjectEdit','_normalizeCellValue','_applyingFormulaResults','optionSource','Table\x20name\x20is\x20required.','_instanceService','Clear','base-range-values-v1','afterFieldId','parentRecordId','BaseTable','_createNumberingAllocators','Set','Cycle','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','base.mutation.set-permission-rule','isNaN','pushUndoRedo','[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.','_resolveGalleryCardFieldIds','getInstance','markResultApplied','pop','max','createSetRecordValuesOp','_projectedRowsCache','base.viewType.kanban','executeCommand','exception-','title','dependencyFieldId','hasOwnProperty','canDeleteRecord','_getOrderedRecords','invalidField','\x20has\x20unsupported\x20date\x20mode\x20\x22','fieldSettings',',,,\x22B\x22','manual','commaPeriod','record','createBase','source','BaseHierarchyError','false','BaseProjection.getProjection','_materializeFormulaTableNames','[BaseFormula]:\x20table\x20\x22','174rXfLUM','unsubscribe','_isAllDayGanttDateRange','set','clearViewPermission','Formula','orderKey','getItem','_getTable','_isCalendarDateField','registerCommand','kanban','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','_replaceOptional','resolve','_recordPermissions','onReady','default','rootRecordIds','base.command.create-base-field','unitOtherData','_tableBaseIds','progressFieldId','UTC','row','BASE','startDateFieldId','fld-','createCreateFieldOp','_factory','attachments','currencySymbol','rule','_isGanttDateField','tableName','abs','getTypePlugin','\x20has\x20unsupported\x20operator\x20\x22','Yes','Unchecked','applyOp','rules','revision',':end','table','usableAsCalendarDate','BaseProjection.projectTableRows','contains','_initDependencies','invalidGanttStartField','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).','notContains','count','protocol','Comment','unique','Base\x20','join','setConfig','canCreateTable','setRangeValues','_dataSyncPrimaryController','__tempBatchingUndoRedo','UNIVER_EMBED_BASES_TABLE','duplicateRecord','setRule','24277520bkBCxc','BaseProjection.projectGroups','formatToParts','children','YYYY-MM-DD','base.command.duplicate-base-field','sum','record/','getTypeOfUnitAdded$','slice','thread-comment.mutation.','_normalizeGanttConfig','direction','day','displayFieldId','invalidateByView','bases-exchange-client.operation.export-base','createRecord','disposeWithMe','BaseCommand.createBatchCreateRecordsOp','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','maxDepth','compare','_cellRevisions','updateField','length','_onCommandExecuted','compress','insertOp','Progress','map','_setViewFieldSetting','isFinite','toPlainText','delete-view','subtreeHeightByRecordId','h24','past30','yyyy/mm/dd','matchAll','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','[BaseFormula]:\x20table\x20does\x20not\x20exist.','Currency','replace','_projectedGroupsCache','_groupProjectionFieldIds','_setObjectEdit','filled','_getAllBaseDependencyTreeCacheMap','_buildCalendar','base.command.set-base-view-group','_views','_withModifiedSystemValues','deleteRecords','index','defaultValue','size','columnSettings','showFieldNames','setViewFieldWidth','renameView','hierarchy','Grid','setPoint','syncExecuteCommand','timeZone','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','BASE_OBJECT_PERMISSION_PLUGIN','_getStructureDirtyTableIds','_initRegistries','[BaseField]:\x20invalid\x20progress\x20value.','includes','beforeCommandExecuted','_config','usableAsCardCover','setViewFilter','bases.config','thisMonth','_normalizeCalendarConfig','trigger','[BaseField]:\x20invalid\x20email\x20value.','push','FORCE_STRING','fromEntries','diffValue','_formulaCalculationSessionService','False','flatMap','getUnitType','snapshot','renameTable','#BFDBFE','today','replaceOp','\x22\x20is\x20referenced\x20by\x20','_initCommands','registerRuleModel','_normalizeGalleryConfig','some','spaceComma','getPermissionPoint','normalize','[BaseCommandService]:\x20cannot\x20edit\x20record.','STRING','h:mm\x20a','setViewFieldVisible','_setFormulaFieldCells','_disposed','_createNumberingAllocator','off','_globalRevision','base.command.validate-formula','_getViewRevision','primaryFieldName','_baseSyncDisposables','_resolveKanbanGroupFieldId','_check','allowMultiple','attachmentSets','_filterRows','edit','[RecordLink]:\x20target\x20record\x20\x22','getUTCDay','base.command.set-base-view-field-width','DD/MM/YYYY','_setAttachmentResources','invalidateByCell','-view-grid','[BaseCommandService]:\x20cannot\x20delete\x20table.','selfParent','_resolveKanbanCoverFieldId','_viewPermissions','medium','validate','workingDays','invalidGanttEndField','Attachment','_resolveGalleryCoverFieldId','Group','measure','beforeViewId','canDeleteTable','empty','hidden','createTable','embed-ui','getTypeOfUnitDisposed$','COMMAND','Base\x20edit\x20permission\x20denied.','BOOLEAN','4yQPuSM','titleFieldId','dispose','toLocaleString','useThousands','_univerInstanceService','createRecords','split','_groupConfigCacheSegment','2025863KsaXEU','data','_registerUnitPermissionPoints','MM/DD/YYYY','parentFieldName','base.command.delete-base-record','createdAt','Export','weekdays','boolean','Base','viewOrder','description','Gantt','usableAsGanttEnd','@univerjs-pro/bases','base.command.create-base-record','toPrimitive','relationRole','from','colorFieldId','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','#3b82f6','990861kCaGRr','abbreviation','getAll','_clearUnit','_plugins','cell','A\x20table\x20with\x20this\x20name\x20already\x20exists.','repairViewConfig','scale','_fieldPermissions','todo','changed','GREATER_THAN','updatedBy','recordOrder','createUnit','searchTexts','quarter','calendar','assign','_syncBaseUnit','viewRevision','numfmt','_scheduleSuperTableSync','[BasePerf]\x20','group','Ids','_canEditTable','Uncategorized','BaseField','past7','_setCachedProjection','InvalidField','UpdatedAt','startsWith','_ganttBarColor','timeslotSize','colId','_getAllTableIds','Edit','pickerFieldIds','2113704KJIyaQ','[BaseCommandService]:\x20cannot\x20delete\x20record.','base.command.rename-base-table','major-','base.command.duplicate-base-record','[BaseField]:\x20invalid\x20phone\x20value.','Calendar','symbol','padStart','type','Name','updateCell','SingleSelect','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','tableId','clearTablePermission','score','frozenFieldCount','Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','test','getCurrentUser','IBaseCellData.ensureTableCellLayout','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','_apply','coverFieldId','lessThanOrEqual','42383ujtTnN','cellRevision','bases.fieldConfig.textPlaceholder','#FDE68A','operator','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','canDeleteField','BASES_PLUGIN','_injector','createDeleteRecordsUndoOp','trim','values','getUnit','column','setViewFieldOrder','https:',',,\x22M\x22','base.command.update-base-kanban-config','includeTime','RecordId','_fastSortRows','local','base.command.service','Checkbox','onStarting','pattern','BaseProjection.filterAndSortRows','_cellInvalidationsTouchFields','Remote','_patchCachedProjectedRows','[BaseCommandService]:\x20field\x20\x22','average','undo','setViewSort','MissingParent','_deleteAttachmentResources','table/','UpdatedBy','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','focusUnit','before','_executeSuperTableMutationWhileActive','prototype','base.command.ensure-base-temporal-view-date-fields','Date1900','getProjection','_initialize','number','keys','base.viewType.calendar','BEFORE','base.permission.service','createField','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','attachmentSet','NOT_CONTAINS','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','Doing','[BaseCommandService]:\x20cannot\x20edit\x20table.','projection','records','createViewId','view-','duplicateField','\x22\x20is\x20not\x20registered.','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','_getCurrentUserId','stringify','Unsupported\x20Base\x20permission\x20action:\x20','getBase','dateFormat','unknown','usableAsGanttStart','subscribe','64865BXAIwL','strategies','user','true','getDependencies','gantt','MM-DD','[BaseCommandService]:\x20invalid\x20field\x20definition.','valid','Email','invertWithDoc','_title','[BaseField]:\x20invalid\x20checkbox\x20value.','depthByRecordId','base.command.delete-base-field','kind','color','sort','conjunction','entries','min','exec','required','#BBF7D0','\x20permission\x20denied.','decimalPlaces','getMonth','missingRecord','params','deleteTable','Numbering','MaxDepth','COLUMN','_fieldRegistry','viewId','splice','reason','_createRecordWithDefaults','_activeDirtyManagerService','CreatedBy','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','[BaseCommandService]:\x20record-id\x20is\x20reserved.','base.resource.service','tableRevision','missingField','deletePermissionPoint','iterator','col','createSuperTableReference','pluginName','tables','at\x20index\x20','univer.basePerf','\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.','fieldIndex','deepClone','_removeSuperTables','_basePermissions','_viewRevisionKey','_isKanbanGroupField','compose','name','now','dashboard/','bases-exchange-client.operation.export-base-by-format','getCurrentUnitOfType','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','_createRecordOrderOp','thumbnail','setSnapshot','Todo','[BaseCommandService]:\x20cannot\x20edit\x20cell.','__base_hierarchy_parent__','base.command.move-base-hierarchy-record','fieldId','getOwnPropertyDescriptor','remove','options','BaseProjection.materializeTableRows','lastIndex','basePerf','attachment-','collaborators','[BaseViewRegistryService]:\x20view\x20type\x20\x22','config','_rememberTable','REMOTE_BASES_PLUGIN','11419864EzKqdb','filter','\x22\x20does\x20not\x20exist.','small','subType','path','Rating','1.0.1','rows','_projectedViewRowsCache','childrenByParentId','[BaseField]:\x20invalid\x20date\x20value.','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','getStructuredDependencies','base.command.rename-base-view','periodComma','_cacheKey','_toDirtyRangePatch','updateViewConfig','fieldName','oldParentRecordId','embedId','_runtimeContext','afterViewId','field','person','createView','invertOp','register','en-US','base.command.set-base-view-field-visible','base.command.set-base-name','globalRevision','week','too-long','forEach','key','addPermissionPoint','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','nodes','base-perf','patches','Parent','clearRecordPermission','allowNegative','columns','policy','onCommandExecuted','_resolveCalendarDateFieldId','add','base.command.','_configService','#16a34a','formula.mutation.set-formula-calculation-result','query','[BaseCommandService]:\x20invalid\x20cell\x20value.','Number','_buildGantt','base.command.set-permission','baseRows','MissingRecord','base.command.batch-create-base-records','deleteField','delete','getCapabilities','onlyLocal','getUnitId','[BaseField]:\x20invalid\x20multi-value\x20reference.','selectField','operand','star','isEmpty','facade','_getTablesToNormalize','greaterThanOrEqual','moveView','codePointAt','_sortRows','locale','manageView','HH:mm','tryMaterializeSnapshot','[DeleteBaseTableCommand]:\x20table\x20\x22','field/','getAffectedRanges','_viewRowsCacheKey','updateRecordOrder','[BaseHierarchy]:\x20field\x20\x22','Text','order','setRecordPermission','base.fieldType.','base.command.update-base-view-conditional-color-rules','_kanbanLaneColor','syncUnit','fieldIds','_deleteRecordsBaseOp','limit','undefined','[RecordLink]:\x20field\x20config\x20is\x20invalid.','canCreateRecord','registerCtorForType','status','NUMBER','Start\x20date','[BaseCommandService]:\x20cannot\x20delete\x20field.','invalid-characters','clear','createdBy','redo','_projectTableRows','IS_NOT','url','attachment','getSnapshot','yesterday',',\x22K\x22','CreatedAt','_createNumberingFieldValuePatches','targetTableId','BaseJson1.normalizeTables','greaterThan','Copy','tableOrder','normal','BaseView','base.viewType.grid','cardLayout','beforeFieldId','[BaseFormula]:\x20validation\x20parameters\x20are\x20required.','toString','base.mutation.apply-base-json1','_matchesGanttColorRule','\x20has\x20unsupported\x20target\x20\x22','round','moveField','groups','Date','recordId','_tablePermissions','\x22\x20with\x20field\x20type\x20\x22','getDay','has','\x20cannot\x20use\x20operator\x20\x22','changes','https://','reduce','value','$1\x20','doing','_getTableRevision','_tableRevisions','recordNamePrefix','isNot','createUpdateCellOp','_materializeGroups','Person','endsWith','base.mutation.','DESC','_projectHierarchyGroups','Checked','_rowTransformCacheSegment','setViewPermission','year','views','IS_NOT_EMPTY','End\x20date','objectId','result','editCell','isNotEmpty','viewIndexes','base.command.set-base-view-sort','UNIVER_BASE','_buildGallery','[BaseCommandService]:\x20cannot\x20edit\x20field.','http:','fromCollab','separatorStyle','_buildKanban'];_0x4376=function(){return _0x29bbb7;};return _0x4376();}function Vt(_0x58653e,_0x307160){const _0x38bc50=_0x6c183;if(!_0x307160['length']||_0x307160['some'](_0x38733a=>_0x38733a[_0x38bc50(0x28a)]!=='cell'))return!0x1;let _0x440372=new Map();for(let _0xa76db3 of _0x307160){if(!_0xa76db3[_0x38bc50(0x210)]||_0xa76db3[_0x38bc50(0x4b3)]==null||_0xa76db3[_0x38bc50(0x229)]==null)continue;let _0xa5683c=_0x440372[_0x38bc50(0x43e)](_0xa76db3[_0x38bc50(0x210)])??[];_0xa5683c[_0x38bc50(0x174)]({'row':_0xa76db3[_0x38bc50(0x4b3)],'col':_0xa76db3['column']}),_0x440372[_0x38bc50(0x49e)](_0xa76db3[_0x38bc50(0x210)],_0xa5683c);}return _0x440372[_0x38bc50(0x2e0)]((_0x4fef4e,_0x1b11d0)=>{var _0x3f2413;let _0x102f54=(_0x3f2413=_0x58653e['tables'])==null?void 0x0:_0x3f2413[_0x1b11d0];_0x102f54&&gt(_0x102f54,_0x4fef4e);}),!0x0;}function Ht(_0xa42937,_0x142c71){const _0x7ce1ec=_0x6c183;let _0x28f4a0=new Set();return _0x142c71[_0x7ce1ec(0x17a)](_0x3c6dd4=>{const _0x612421=_0x7ce1ec;var _0x3ff8c5;if(!_0x3c6dd4['tableId']||!_0x3c6dd4[_0x612421(0x347)]||!_0x3c6dd4['fieldId'])return[];let _0x5f0d1c=_0x3c6dd4[_0x612421(0x210)]+'\x1f'+_0x3c6dd4[_0x612421(0x347)]+'\x1f'+_0x3c6dd4['fieldId'];if(_0x28f4a0['has'](_0x5f0d1c))return[];_0x28f4a0[_0x612421(0x2ee)](_0x5f0d1c);let _0x19f903=(_0x3ff8c5=_0xa42937[_0x612421(0x298)][_0x3c6dd4[_0x612421(0x210)]])==null||(_0x3ff8c5=_0x3ff8c5[_0x612421(0x258)][_0x3c6dd4[_0x612421(0x347)]])==null?void 0x0:_0x3ff8c5[_0x612421(0x227)];return _0x19f903?[{'tableId':_0x3c6dd4[_0x612421(0x210)],'recordId':_0x3c6dd4[_0x612421(0x347)],'fieldId':_0x3c6dd4[_0x612421(0x2b0)],'exists':Object[_0x612421(0x246)][_0x612421(0x48a)][_0x612421(0x43b)](_0x19f903,_0x3c6dd4[_0x612421(0x2b0)]),'value':_0x19f903[_0x3c6dd4[_0x612421(0x2b0)]]}]:[];});}function Ut(_0x14e9df,_0x323475){const _0x2aa34d=_0x6c183;_0x323475[_0x2aa34d(0x2e0)](_0x39042c=>{const _0x2b2e4f=_0x2aa34d;var _0x507081;let _0x2f9786=(_0x507081=_0x14e9df[_0x2b2e4f(0x298)][_0x39042c[_0x2b2e4f(0x210)]])==null||(_0x507081=_0x507081[_0x2b2e4f(0x258)][_0x39042c[_0x2b2e4f(0x347)]])==null?void 0x0:_0x507081[_0x2b2e4f(0x227)];_0x2f9786&&(_0x39042c[_0x2b2e4f(0x443)]?_0x2f9786[_0x39042c['fieldId']]=_0x39042c[_0x2b2e4f(0x350)]:delete _0x2f9786[_0x39042c[_0x2b2e4f(0x2b0)]]);});}function Wt(_0xd73b86){const _0x5df920=_0x6c183;if(!Array['isArray'](_0xd73b86)||_0xd73b86[_0x5df920(0x13c)]<0x2)return[{'tableId':'','reason':_0x5df920(0x263)}];let _0x15edbf=_0xd73b86,_0x37c3ef=_0x15edbf['indexOf']('tables');return _0x37c3ef===-0x1||typeof _0x15edbf[_0x37c3ef+0x1]!='string'?_0x15edbf[0x0]===_0x5df920(0x338)?[]:[{'tableId':'','reason':_0x5df920(0x263)}]:Gt(_0x15edbf,_0x37c3ef,String(_0x15edbf[_0x37c3ef+0x1]));}function Gt(_0x2c1db4,_0x1e2865,_0x26c7bb){const _0x3903e8=_0x6c183;let _0x241796=_0x2c1db4[_0x1e2865+0x2];return _0x241796===_0x3903e8(0x258)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?Kt(_0x2c1db4,_0x1e2865,_0x26c7bb,String(_0x2c1db4[_0x1e2865+0x3])):_0x241796===_0x3903e8(0x389)&&_0x2c1db4[_0x1e2865+0x3]!=null&&_0x2c1db4[_0x1e2865+0x4]!=null?[{'tableId':_0x26c7bb,'reason':'cell','row':Number(_0x2c1db4[_0x1e2865+0x3]),'column':Number(_0x2c1db4[_0x1e2865+0x4])}]:_0x241796===_0x3903e8(0x398)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5),'fieldId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796==='fieldOrder'?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x2d5)}]:_0x241796===_0x3903e8(0x1e7)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x493)}]:_0x241796===_0x3903e8(0x362)&&typeof _0x2c1db4[_0x1e2865+0x3]==_0x3903e8(0x425)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x37d),'viewId':String(_0x2c1db4[_0x1e2865+0x3])}]:_0x241796===_0x3903e8(0x1cd)?[{'tableId':_0x26c7bb,'reason':'view'}]:_0x241796===_0x3903e8(0x421)?[{'tableId':_0x26c7bb,'reason':_0x3903e8(0x1de)}]:[{'tableId':_0x26c7bb,'reason':_0x241796===void 0x0?_0x3903e8(0x4c7):'unknown'}];}function Kt(_0x25d2da,_0x1a07db,_0xabd3a7,_0x358041){const _0x4374ad=_0x6c183;return _0x25d2da[_0x1a07db+0x4]==='values'&&typeof _0x25d2da[_0x1a07db+0x5]==_0x4374ad(0x425)?[{'tableId':_0xabd3a7,'reason':'cell','recordId':_0x358041,'fieldId':String(_0x25d2da[_0x1a07db+0x5])}]:_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x45d)||_0x25d2da[_0x1a07db+0x4]===_0x4374ad(0x1e6)?[]:[{'tableId':_0xabd3a7,'reason':_0x4374ad(0x493),'recordId':_0x358041}];}function qt(_0x5455e7){const _0x145e2d=_0x6c183;if(!Array[_0x145e2d(0x431)](_0x5455e7))return[];let _0x5aa2c5=_0x5455e7[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);if(_0x5aa2c5[_0x145e2d(0x13c)]>0x1&&_0x5aa2c5[_0x145e2d(0x13c)]===_0x5455e7['length'])return _0x5aa2c5;let _0x4557c1=_0x5455e7[_0x145e2d(0x442)](Array['isArray']);if(_0x4557c1>0x0&&_0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x387)](Array[_0x145e2d(0x431)])){let _0xe901f5=_0x5455e7[_0x145e2d(0x12c)](0x0,_0x4557c1);return _0x5455e7['slice'](_0x4557c1)[_0x145e2d(0x141)](_0x5a5336=>[..._0xe901f5,..._0x5a5336]);}let _0x5e8f5f=_0x5455e7[_0x145e2d(0x44e)](_0x145e2d(0x298));if(_0x5e8f5f===-0x1||typeof _0x5455e7[_0x5e8f5f+0x1]!=_0x145e2d(0x425))return[];let _0x3e02a8=String(_0x5455e7[_0x5e8f5f+0x1]),_0x11072d=_0x5455e7[_0x145e2d(0x12c)](_0x5e8f5f+0x2)[_0x145e2d(0x2be)](Array[_0x145e2d(0x431)]);return _0x11072d[_0x145e2d(0x13c)]<=0x1?[]:_0x11072d[_0x145e2d(0x141)](_0x5800f1=>[_0x145e2d(0x298),_0x3e02a8,..._0x5800f1]);}function Jt(_0x3995f9){let _0x5185d8=new Set();return _0x3995f9['filter'](_0x2f41e1=>{const _0x122027=_0x2b5a;let _0x4c6010=JSON[_0x122027(0x25f)](_0x2f41e1);return!_0x5185d8[_0x122027(0x34b)](_0x4c6010)&&(_0x5185d8[_0x122027(0x2ee)](_0x4c6010),!0x0);});}function Yt(_0x558259){const _0x1569c4=_0x6c183;return _0x4e3c3d[_0x1569c4(0x29d)](_0x558259);}function Xt(_0x2fc663,_0x2c69c2){const _0x5b4b87=_0x6c183;let _0x22af51=Zt(_0x2c69c2);if(!_0x22af51[_0x5b4b87(0x13c)])return Yt(_0x2fc663);let _0x3d458e=an(_0x2fc663),_0x5a374b=new Set();for(let _0x3ea0ab of _0x22af51)en(_0x3d458e,_0x3ea0ab,_0x5a374b);return _0x3d458e;}function Zt(_0x20949d){let _0x5e2603=[];return Qt(_0x20949d,[],_0x5e2603),_0x5e2603;}function Qt(_0x226ea8,_0x4ea9fc,_0x44fe93){const _0x48b3fc=_0x6c183;if(!Array[_0x48b3fc(0x431)](_0x226ea8))return;let _0x45d5a9=[];for(let _0x35a7b5 of _0x226ea8){if(Array[_0x48b3fc(0x431)](_0x35a7b5)){Qt(_0x35a7b5,[..._0x4ea9fc,..._0x45d5a9],_0x44fe93);continue;}if($t(_0x35a7b5)){_0x44fe93[_0x48b3fc(0x174)]([..._0x4ea9fc,..._0x45d5a9]);continue;}(typeof _0x35a7b5==_0x48b3fc(0x425)||typeof _0x35a7b5=='number')&&_0x45d5a9[_0x48b3fc(0x174)](_0x35a7b5);}}function $t(_0x433a06){const _0x2e23f6=_0x6c183;if(!_0x433a06||typeof _0x433a06!='object'||Array['isArray'](_0x433a06))return!0x1;let _0x1dae1d=_0x433a06;return'i'in _0x1dae1d||'r'in _0x1dae1d||'p'in _0x1dae1d||'d'in _0x1dae1d||'es'in _0x1dae1d||_0x2e23f6(0x41c)in _0x1dae1d||'et'in _0x1dae1d;}function en(_0x23bbdb,_0x2e1358,_0x33c32a){const _0x31bf25=_0x6c183;let _0x4e83b3=_0x23bbdb,_0x2d06cc=[];for(let _0x414574=0x0;_0x414574<_0x2e1358['length']-0x1;_0x414574++){let _0x24294f=_0x2e1358[_0x414574];_0x2d06cc[_0x31bf25(0x174)](_0x24294f);let _0x3836c4=tn(_0x4e83b3,_0x24294f);if(!rn(_0x3836c4))return;let _0x5aa60d=JSON[_0x31bf25(0x25f)](_0x2d06cc);_0x33c32a[_0x31bf25(0x34b)](_0x5aa60d)||(nn(_0x4e83b3,_0x24294f,an(_0x3836c4)),_0x33c32a['add'](_0x5aa60d));let _0x59fa34=tn(_0x4e83b3,_0x24294f);if(!rn(_0x59fa34))return;_0x4e83b3=_0x59fa34;}}function tn(_0x2c7042,_0x33e1e6){const _0x2b3d57=_0x6c183;return Array[_0x2b3d57(0x431)](_0x2c7042)?typeof _0x33e1e6==_0x2b3d57(0x24b)?_0x2c7042[_0x33e1e6]:void 0x0:Reflect[_0x2b3d57(0x43e)](_0x2c7042,_0x33e1e6);}function nn(_0x1a205e,_0x39a048,_0x25b1ba){const _0x2cd5dc=_0x6c183;if(Array[_0x2cd5dc(0x431)](_0x1a205e)){typeof _0x39a048==_0x2cd5dc(0x24b)&&(_0x1a205e[_0x39a048]=_0x25b1ba);return;}Reflect[_0x2cd5dc(0x49e)](_0x1a205e,_0x39a048,_0x25b1ba);}function rn(_0x40bc00){const _0x86d418=_0x6c183;return!!_0x40bc00&&typeof _0x40bc00==_0x86d418(0x3d7);}function an(_0x545c03){const _0x3dabaf=_0x6c183;return Array[_0x3dabaf(0x431)](_0x545c03)?_0x545c03[_0x3dabaf(0x12c)]():{..._0x545c03};}const on=_0x6c183(0x149),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':'YYYY/MM/DD','yyyy-mm-dd':_0x6c183(0x127),'mm-dd':_0x6c183(0x26c),'mm/dd/yyyy':_0x6c183(0x1c5),'dd/mm/yyyy':_0x6c183(0x19f),'mmm\x20d,\x20yyyy':_0x6c183(0x404)};function B(_0x55060c,_0x4694eb=_0x5c27c9[_0x6c183(0x248)]){let _0x3c9c41=_0x509f61(_0x55060c)['valueOf']();return _0x36b37f(new Date(_0x3c9c41),_0x4694eb);}function ln(_0x1f205b,_0x349950=_0x5c27c9[_0x6c183(0x248)]){const _0x171766=_0x6c183;return _0x33b7e5(_0x1f205b,_0x349950)[_0x171766(0x3d3)]();}function un(_0x1b04a3,_0x799a6=_0x5c27c9[_0x6c183(0x248)]){const _0x121ce1=_0x6c183;if(_0x1b04a3==null||_0x1b04a3==='')return null;if(_0x1b04a3 instanceof Date)return B(_0x1b04a3,_0x799a6);if(typeof _0x1b04a3==_0x121ce1(0x24b))return Number[_0x121ce1(0x143)](_0x1b04a3)?_0x1b04a3>0xf4240?B(_0x1b04a3,_0x799a6):_0x1b04a3:null;let _0x51a501=Date['parse'](String(_0x1b04a3));return Number[_0x121ce1(0x47b)](_0x51a501)?null:B(_0x51a501,_0x799a6);}function dn(_0x3fe07a,_0x189912=_0x5c27c9[_0x6c183(0x248)]){let _0x344572=un(_0x3fe07a,_0x189912);return _0x344572==null?null:ln(_0x344572,_0x189912);}function fn(_0x43ca07={}){const _0x3b79ba=_0x6c183;let _0x210c7b=String(_0x43ca07[_0x3b79ba(0x235)]??_0x43ca07[_0x3b79ba(0x3cd)]??_0x43ca07[_0x3b79ba(0x262)]??on)['trim']()||on,_0x11d590=sn[_0x3b79ba(0x215)](_0x210c7b);return{'pattern':_0x210c7b[_0x3b79ba(0x14e)](sn,'')||on,'includeTime':typeof _0x43ca07[_0x3b79ba(0x22e)]==_0x3b79ba(0x1cb)?_0x43ca07[_0x3b79ba(0x22e)]:_0x11d590,'hourCycle':_0x43ca07['hourCycle']===_0x3b79ba(0x384)?_0x3b79ba(0x384):'h24'};}function pn(_0x8d5cc={}){let {format:_0x5bfbce,dateFormat:_0x6b1f7f,..._0x206887}=_0x8d5cc;return{..._0x206887,...fn(_0x8d5cc)};}function mn(_0x194f5e,_0xe90be={}){const _0x5e9798=_0x6c183;let _0x2352b0=dn(_0x194f5e);if(_0x2352b0==null||!Number['isFinite'](_0x2352b0))return'';let _0x302521=fn(_0xe90be);return _0x509f61(_0x2352b0)[_0x5e9798(0x3cd)](hn(_0x302521));}function hn(_0x1f34df){const _0x304e3c=_0x6c183;let {pattern:_0x1fb3cb,includeTime:_0x199180,hourCycle:_0x1dc501}=_0x1f34df,_0x3340a8=cn[_0x1fb3cb]??cn[on];return _0x199180?_0x3340a8+'\x20'+(_0x1dc501===_0x304e3c(0x384)?_0x304e3c(0x18b):_0x304e3c(0x30d)):_0x3340a8;}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([_0x3a044b[_0x6c183(0x22f)]]),V=0x5265c00;function vn(_0x3f8d03){const _0x1604b5=_0x6c183;switch(_0x3f8d03){case _0x3a044b[_0x1604b5(0x2f5)]:case _0x3a044b[_0x1604b5(0x14d)]:case _0x3a044b[_0x1604b5(0x140)]:case _0x3a044b[_0x1604b5(0x2c3)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x1e5)],_0x50d725['LESS_THAN'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x346)]:case _0x3a044b[_0x1604b5(0x332)]:case _0x3a044b[_0x1604b5(0x1fa)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x24e)],_0x50d725['AFTER'],_0x50d725[_0x1604b5(0x37e)],_0x50d725['IS_NOT_EMPTY']];case _0x3a044b[_0x1604b5(0x233)]:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)]];default:return[_0x50d725['IS'],_0x50d725[_0x1604b5(0x32c)],_0x50d725[_0x1604b5(0x447)],_0x50d725[_0x1604b5(0x253)],_0x50d725[_0x1604b5(0x37e)],_0x50d725[_0x1604b5(0x363)]];}}function yn(_0x980013){const _0x542465=_0x6c183;return _0x980013===_0x3a044b['Date']||_0x980013===_0x3a044b['CreatedAt']||_0x980013===_0x3a044b[_0x542465(0x1fa)];}function bn(_0x382c01,_0x489a6a){const _0xb6f6d7=_0x6c183;return _0x382c01==null&&_0x489a6a==null?0x0:_0x382c01==null?-0x1:_0x489a6a==null?0x1:typeof _0x382c01==_0xb6f6d7(0x24b)&&typeof _0x489a6a==_0xb6f6d7(0x24b)?_0x382c01-_0x489a6a:String(_0x382c01)[_0xb6f6d7(0x37a)](String(_0x489a6a));}function xn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf,_0x223a93={}){const _0x2df731=_0x6c183;if(_0x1237c6===_0x2df731(0x304))return Sn(_0x544b5f);if(_0x1237c6===_0x2df731(0x368))return!Sn(_0x544b5f);switch(_0x1a6daf[_0x2df731(0x20b)]){case _0x3a044b['Number']:case _0x3a044b['Currency']:case _0x3a044b['Progress']:case _0x3a044b['Rating']:return Cn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b['Date']:case _0x3a044b[_0x2df731(0x332)]:case _0x3a044b['UpdatedAt']:return Tn(_0x544b5f,_0x1237c6,_0x16fc28,_0x223a93);case _0x3a044b['Checkbox']:return jn(_0x544b5f,_0x1237c6,_0x16fc28);case _0x3a044b[_0x2df731(0x20e)]:case _0x3a044b['MultiSelect']:case _0x3a044b[_0x2df731(0x359)]:case _0x3a044b['Group']:return Nn(_0x544b5f,_0x1237c6,_0x16fc28,_0x1a6daf);default:return Pn(_0x544b5f,_0x1237c6,_0x16fc28);}}function Sn(_0x52f419){const _0x5cde00=_0x6c183;return _0x52f419==null?!0x0:Array['isArray'](_0x52f419)?_0x52f419[_0x5cde00(0x13c)]===0x0:typeof _0x52f419==_0x5cde00(0x425)&&_0x52f419[_0x5cde00(0x226)]()==='';}function Cn(_0x183f88,_0xe7f246,_0x4e5ebf){const _0x47f51e=_0x6c183;let _0xde3745=wn(_0x183f88),_0x439b67=wn(_0x4e5ebf);if(_0xde3745==null||_0x439b67==null)return!0x1;switch(_0xe7f246){case'is':return _0xde3745===_0x439b67;case _0x47f51e(0x356):return _0xde3745!==_0x439b67;case _0x47f51e(0x336):return _0xde3745>_0x439b67;case _0x47f51e(0x307):return _0xde3745>=_0x439b67;case'lessThan':return _0xde3745<_0x439b67;case _0x47f51e(0x21b):return _0xde3745<=_0x439b67;default:return!0x1;}}function wn(_0x475c3a){const _0x11725d=_0x6c183;if(_0x475c3a==null||_0x475c3a==='')return null;let _0x1c8f1c=Number(_0x475c3a);return Number[_0x11725d(0x143)](_0x1c8f1c)?_0x1c8f1c:null;}function Tn(_0x27dca7,_0x29add6,_0x4c1dfc,_0x35199b){const _0x33728c=_0x6c183;let _0x52a9a9=Dn(_0x27dca7);if(_0x52a9a9==null)return!0x1;let _0x2068df=En(_0x35199b[_0x33728c(0x3ea)]??_0x33728c(0x433),_0x4c1dfc,_0x35199b['now']);if(!_0x2068df)return!0x1;switch(_0x29add6){case'is':return _0x52a9a9>=_0x2068df['start']&&_0x52a9a9<=_0x2068df[_0x33728c(0x439)];case _0x33728c(0x356):return _0x52a9a9<_0x2068df['start']||_0x52a9a9>_0x2068df[_0x33728c(0x439)];case _0x33728c(0x244):return _0x52a9a9<_0x2068df['start'];case _0x33728c(0x427):return _0x52a9a9>_0x2068df[_0x33728c(0x439)];default:return!0x1;}}function En(_0x1875aa,_0x23fb02,_0x443000=Date[_0x6c183(0x2a4)]()){const _0x420c0f=_0x6c183;let _0x43edc7=On(_0x443000);switch(_0x1875aa){case'exact':{let _0x32d91c=Dn(_0x23fb02);return _0x32d91c==null?null:{'start':_0x32d91c,'end':_0x32d91c+V-0x1};}case _0x420c0f(0x17f):return{'start':_0x43edc7,'end':_0x43edc7+V-0x1};case'tomorrow':return{'start':_0x43edc7+V,'end':_0x43edc7+V*0x2-0x1};case _0x420c0f(0x330):return{'start':_0x43edc7-V,'end':_0x43edc7-0x1};case'thisWeek':return kn(_0x43edc7,0x0);case'lastWeek':return kn(_0x43edc7,-0x1);case _0x420c0f(0x170):return An(_0x43edc7,0x0);case'lastMonth':return An(_0x43edc7,-0x1);case _0x420c0f(0x1f7):return{'start':_0x43edc7-V*0x6,'end':_0x43edc7+V-0x1};case _0x420c0f(0x385):return{'start':_0x43edc7,'end':_0x43edc7+V*0x7-0x1};case _0x420c0f(0x148):return{'start':_0x43edc7-V*0x1d,'end':_0x43edc7+V-0x1};case _0x420c0f(0x3de):return{'start':_0x43edc7,'end':_0x43edc7+V*0x1e-0x1};}}function Dn(_0x5459be){let _0x2f8565=un(_0x5459be);return _0x2f8565==null?null:On(ln(_0x2f8565));}function On(_0x4798d8){const _0x17e8c1=_0x6c183;let _0xe91f47=new Date(_0x4798d8);return _0xe91f47['setHours'](0x0,0x0,0x0,0x0),_0xe91f47[_0x17e8c1(0x3d3)]();}function kn(_0x5d352f,_0x1b7b40){const _0x1de306=_0x6c183;let _0x941c11=_0x5d352f-(new Date(_0x5d352f)[_0x1de306(0x34a)]()+0x6)%0x7*V+_0x1b7b40*V*0x7;return{'start':_0x941c11,'end':_0x941c11+V*0x7-0x1};}function An(_0x59c990,_0x3bb7ad){const _0x3a21ed=_0x6c183;let _0x16db1b=new Date(_0x59c990),_0x32536f=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad,0x1),_0x1bbc22=new Date(_0x16db1b[_0x3a21ed(0x422)](),_0x16db1b[_0x3a21ed(0x280)]()+_0x3bb7ad+0x1,0x1);return{'start':_0x32536f[_0x3a21ed(0x3d3)](),'end':_0x1bbc22[_0x3a21ed(0x3d3)]()-0x1};}function jn(_0x1031c6,_0x331eba,_0x4576a4){const _0x2a1e00=_0x6c183;let _0x7b3651=Mn(_0x1031c6),_0x52b1b9=Mn(_0x4576a4);switch(_0x331eba){case'is':return _0x7b3651===_0x52b1b9;case _0x2a1e00(0x356):return _0x7b3651!==_0x52b1b9;default:return!0x1;}}function Mn(_0x1eea4c){const _0x5ebf20=_0x6c183;return _0x1eea4c===!0x0||_0x1eea4c===_0x5ebf20(0x269)||_0x1eea4c===0x1||_0x1eea4c==='1';}function Nn(_0xf56af1,_0x38493d,_0x37ebf7,_0x2ca56c){const _0x45ddbf=_0x6c183;let _0x351701=In(_0xf56af1,_0x2ca56c),_0x5cec58=In(_0x37ebf7,_0x2ca56c),_0x5a2ba5=_0x5cec58[_0x45ddbf(0x13c)]>0x0&&_0x5cec58[_0x45ddbf(0x185)](_0x391341=>_0x351701[_0x45ddbf(0x16a)](_0x391341));switch(_0x38493d){case'is':case'contains':return _0x5a2ba5;case _0x45ddbf(0x356):case _0x45ddbf(0x114):return!_0x5a2ba5;default:return!0x1;}}function Pn(_0x503081,_0x4d0da2,_0x53b3e2){const _0x4bac62=_0x6c183;let _0xd0521b=Fn(_0x503081),_0x3bb569=Fn(_0x53b3e2);switch(_0x4d0da2){case'is':return _0xd0521b===_0x3bb569;case _0x4bac62(0x356):return _0xd0521b!==_0x3bb569;case _0x4bac62(0x4ca):return _0x3bb569?_0xd0521b[_0x4bac62(0x16a)](_0x3bb569):!0x1;case _0x4bac62(0x114):return!_0x3bb569||!_0xd0521b[_0x4bac62(0x16a)](_0x3bb569);default:return!0x1;}}function Fn(_0x2fe538){const _0x1e343c=_0x6c183;if(Array[_0x1e343c(0x431)](_0x2fe538))return _0x2fe538[_0x1e343c(0x141)](_0x36396b=>Fn(_0x36396b))[_0x1e343c(0x11a)]('\x0a');if(_0x2fe538&&typeof _0x2fe538=='object'){let _0x121eee=_0x2fe538;return String(_0x121eee['name']??_0x121eee['label']??_0x121eee['text']??_0x121eee[_0x1e343c(0x350)]??_0x121eee['id']??'')[_0x1e343c(0x226)]()[_0x1e343c(0x432)]();}return String(_0x2fe538??'')['trim']()[_0x1e343c(0x432)]();}function In(_0x5a6ee5,_0x135be5){const _0x594016=_0x6c183;let _0x309623=Ln(_0x5a6ee5),_0x561e31=Rn(_0x135be5[_0x594016(0x2ba)]??{});return _0x309623[_0x594016(0x17a)](_0x103f46=>_0x561e31[_0x594016(0x43e)](_0x103f46)??[_0x103f46])['filter']((_0x2f0efa,_0x5d91aa,_0x1f4b77)=>_0x2f0efa!==''&&_0x1f4b77[_0x594016(0x44e)](_0x2f0efa)===_0x5d91aa);}function Ln(_0x17272c){const _0xbef247=_0x6c183;if(_0x17272c==null||_0x17272c==='')return[];if(Array[_0xbef247(0x431)](_0x17272c))return _0x17272c[_0xbef247(0x17a)](_0x50dd22=>Ln(_0x50dd22));if(_0x17272c&&typeof _0x17272c==_0xbef247(0x3d7)){let _0xf43b4e=_0x17272c;return['id','name',_0xbef247(0x39d),_0xbef247(0x350),_0xbef247(0x3ae)]['flatMap'](_0xc48f82=>Ln(_0xf43b4e[_0xc48f82]))[_0xbef247(0x2be)]((_0x5c6168,_0xdc3df8,_0xae6d0)=>_0xae6d0['indexOf'](_0x5c6168)===_0xdc3df8);}return[Fn(_0x17272c)];}function Rn(_0x1b7c59){const _0x164e51=_0x6c183;let _0x39fa0b=new Map();return(Array[_0x164e51(0x431)](_0x1b7c59[_0x164e51(0x2b3)])?_0x1b7c59[_0x164e51(0x2b3)]:[])[_0x164e51(0x2e0)](_0x26718a=>{const _0x27b740=_0x164e51;if(!_0x26718a||typeof _0x26718a!=_0x27b740(0x3d7))return;let _0x4eb76f=Ln(_0x26718a),_0xe4e984=_0x4eb76f[_0x27b740(0x2be)]((_0x10d358,_0x21e60f)=>_0x10d358!==''&&_0x4eb76f[_0x27b740(0x44e)](_0x10d358)===_0x21e60f);_0xe4e984['forEach'](_0x3f8c05=>_0x39fa0b[_0x27b740(0x49e)](_0x3f8c05,_0xe4e984));}),_0x39fa0b;}function H(_0x15ac03,_0x2b3f96={},_0x28d251=_0x393c8f=>_0x393c8f,_0x5741c6={}){const _0x361814=_0x6c183;let _0x3866fa=!_n[_0x361814(0x34b)](_0x15ac03),_0x3068e0=_0x28d251??(_0x28b360=>_0x28b360);return{'type':_0x15ac03,'i18nKey':_0x361814(0x318)+_0x15ac03,'enabled':_0x3866fa,'visibleInCreateMenu':_0x3866fa,'createDefaultConfig':_0x5741c6[_0x361814(0x399)]??(()=>({})),'createDefaultValue':_0x5741c6['createDefaultValue']??(_0x3308e6=>_0x3308e6['defaultValue']??null),'normalize':(_0x341c82,_0x549fdb)=>_0x3068e0(_0x341c82,_0x549fdb),'validate':(_0x32ae9a,_0x5f3c5d)=>{const _0x296537=_0x361814;var _0x5358ab;return _0x3866fa?((_0x5358ab=_0x5741c6[_0x296537(0x1a8)])==null?void 0x0:_0x5358ab[_0x296537(0x43b)](_0x5741c6,_0x32ae9a,_0x5f3c5d))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x3e2567,_0x37f888)=>bn(_0x3e2567,_0x37f888),'filter':(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249)=>xn(_0x5ce96f,_0x5abd1c,_0x39d388,_0x3e0249),'toPlainText':_0x5741c6[_0x361814(0x144)]??(_0x4e6bc2=>_0x4e6bc2==null?'':String(_0x4e6bc2)),'fromPlainText':_0x5741c6[_0x361814(0x462)]??(_0x2b0e67=>_0x3068e0(_0x2b0e67,{'id':'','name':'','type':_0x15ac03,'config':{}})),'getCapabilities':()=>({...gn,..._0x2b3f96,'editable':_0x3866fa&&(_0x2b3f96[_0x361814(0x461)]??gn[_0x361814(0x461)])})};}function zn(){const _0x1a28dd=_0x6c183;return[H(_0x3a044b[_0x1a28dd(0x315)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':_0x1a28dd(0x21e)}),'createDefaultValue':_0x669bb8=>_0x669bb8['defaultValue']??''}),H(_0x3a044b[_0x1a28dd(0x20e)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x224ca0=>_0x224ca0==null||_0x224ca0===''?null:String(_0x224ca0),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}})}),H(_0x3a044b['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x272643=>Array[_0x1a28dd(0x431)](_0x272643)?_0x272643[_0x1a28dd(0x141)](String):_0x272643==null?[]:[String(_0x272643)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x1a28dd(0x491)}}),'createDefaultValue':_0x43197e=>_0x43197e[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x359)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x1a28dd(0x2d6)}),'validate':Gn}),H(_0x3a044b[_0x1a28dd(0x1ad)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':'group'}),'createDefaultValue':_0x483d0f=>_0x483d0f['defaultValue']??[],'validate':Kn}),H(_0x3a044b[_0x1a28dd(0x346)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x144fc8=>un(_0x144fc8),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1ab)],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x528ff5=>_0x528ff5==null?[]:Array[_0x1a28dd(0x431)](_0x528ff5)?_0x528ff5:[_0x528ff5],{'createDefaultValue':_0x1ff62b=>_0x1ff62b[_0x1a28dd(0x15a)]??[]}),H(_0x3a044b[_0x1a28dd(0x2f5)],{},_0x52089d=>_0x52089d==null||_0x52089d===''?null:Number(_0x52089d),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x3a044b['Checkbox'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x3dedf8=>_0x3dedf8===!0x0||_0x3dedf8===_0x1a28dd(0x269)||_0x3dedf8===0x1||_0x3dedf8==='1',{'createDefaultConfig':()=>({'icon':'check','color':_0x1a28dd(0x2f1)}),'createDefaultValue':_0x371116=>_0x371116[_0x1a28dd(0x15a)]??!0x1,'validate':_0x4ea8a8=>typeof _0x4ea8a8==_0x1a28dd(0x1cb)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x272)}}),H(_0x3a044b['Link'],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.linkPlaceholder'}),'toPlainText':_0x30472d=>Zn(_0x30472d),'fromPlainText':_0x369460=>Xn(_0x369460)}),H(_0x3a044b['Formula'],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':'general','pattern':_0x1a28dd(0x453)}}),'createDefaultValue':()=>null}),H(_0x3a044b['Numbering'],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':'autoIncrement'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x464)],{'usableAsTitle':!0x0},_0x2b0143=>_0x2b0143==null?null:String(_0x2b0143)[_0x1a28dd(0x226)](),{'validate':_0x45f5a4=>_0x45f5a4==null||_0x45f5a4===''||/^\+?[0-9 ()-]{6,20}$/[_0x1a28dd(0x215)](String(_0x45f5a4))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x207)}}),H(_0x3a044b[_0x1a28dd(0x26f)],{'usableAsTitle':!0x0},_0x3d7080=>_0x3d7080==null?null:String(_0x3d7080)[_0x1a28dd(0x226)](),{'validate':_0x309542=>_0x309542==null||_0x309542===''||$n(String(_0x309542))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1a28dd(0x173)}}),H(_0x3a044b['Progress'],{'usableAsGanttProgress':!0x0},_0xc87f25=>_0xc87f25==null||_0xc87f25===''?null:Number(_0xc87f25),{'createDefaultConfig':()=>({'format':'percent','decimalPlaces':0x0,'color':_0x1a28dd(0x401),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x3369d5,_0x1081a1)=>Yn(_0x3369d5,_0x1081a1,_0x1a28dd(0x169))}),H(_0x3a044b['Currency'],{},_0x3d451b=>_0x3d451b==null||_0x3d451b===''?null:Number(_0x3d451b),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x3a044b[_0x1a28dd(0x2c3)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x2fa611=>_0x2fa611==null||_0x2fa611===''?null:Number(_0x2fa611),{'createDefaultConfig':()=>({'icon':_0x1a28dd(0x303),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x564a15,_0x3d4fd8)=>Yn(_0x564a15,_0x3d4fd8,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x3a044b['RecordLink'],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0x2ee3c3,_0x855f0c)=>ze(_0x2ee3c3,_0x855f0c[_0x1a28dd(0x2ba)][_0x1a28dd(0x376)]===!0x0)}),H(_0x3a044b['RecordId'],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x3a044b['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x382ed7=>_0x382ed7==null?null:String(_0x382ed7),{'createDefaultConfig':()=>({'provider':_0x1a28dd(0x268)}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x241)],{'editable':!0x1,'groupable':!0x0},_0x5c5e05=>_0x5c5e05==null?null:String(_0x5c5e05),{'createDefaultConfig':()=>({'provider':'user'}),'createDefaultValue':()=>null}),H(_0x3a044b[_0x1a28dd(0x332)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x43eaa2=>un(_0x43eaa2),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x3a044b[_0x1a28dd(0x1fa)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x1e683b=>un(_0x1e683b),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x66c79d=_0x6c183;return{'pattern':'#,##0.00','decimalPlaces':0x2,'separatorStyle':_0x66c79d(0x231),'useThousands':!0x0,'abbreviation':_0x66c79d(0x42f),'allowNegative':!0x0};}function Vn(){const _0x530e83=_0x6c183;return{'locale':_0x530e83(0x2da),'pattern':_0x530e83(0x149),'includeTime':!0x1,'hourCycle':_0x530e83(0x147),'defaultMode':_0x530e83(0x42f)};}function Hn(_0x469201){const _0x30e6a2=_0x6c183;return _0x469201==null||_0x469201===''?[]:Array[_0x30e6a2(0x431)](_0x469201)?_0x469201['map'](String):[String(_0x469201)];}function Un(_0x2b2586){const _0x12b38f=_0x6c183;return typeof _0x2b2586==_0x12b38f(0x425)?_0x2b2586:'';}function Wn(_0xa45271,_0x1cf6d6){const _0x523e31=_0x6c183;return _0xa45271==null||_0xa45271===''?_0x1cf6d6[_0x523e31(0x2ba)]['allowMultiple']===!0x0?[]:null:_0x1cf6d6[_0x523e31(0x2ba)][_0x523e31(0x198)]===!0x0?Array[_0x523e31(0x431)](_0xa45271)?_0xa45271[_0x523e31(0x141)](String):[String(_0xa45271)]:Array['isArray'](_0xa45271)?String(_0xa45271[0x0]??'')||null:String(_0xa45271);}function Gn(_0x135deb,_0x31678b){const _0xf83622=_0x6c183;return _0x31678b['config'][_0xf83622(0x198)]===!0x0?Kn(_0x135deb):_0x135deb==null||_0x135deb===''||typeof _0x135deb==_0xf83622(0x425)?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20person\x20value.'};}function Kn(_0x1a4c98){const _0x4f3cc1=_0x6c183;return _0x1a4c98==null||Array[_0x4f3cc1(0x431)](_0x1a4c98)&&_0x1a4c98['every'](_0x3ae5da=>typeof _0x3ae5da==_0x4f3cc1(0x425))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4f3cc1(0x300)};}function qn(_0x5277de){const _0x140b9f=_0x6c183;return _0x5277de==null||typeof _0x5277de==_0x140b9f(0x24b)&&Number[_0x140b9f(0x143)](_0x5277de)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x140b9f(0x2c8)};}function Jn(_0x20f84b,_0x451649){const _0x800bf2=_0x6c183;return _0x20f84b==null||_0x20f84b===''?{'valid':!0x0}:typeof _0x20f84b!=_0x800bf2(0x24b)||!Number[_0x800bf2(0x143)](_0x20f84b)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x451649[_0x800bf2(0x2ba)][_0x800bf2(0x2e9)]===!0x1&&_0x20f84b<0x0?{'valid':!0x1,'reason':_0x800bf2(0x479)}:{'valid':!0x0};}function Yn(_0x5a02a8,_0x11c176,_0x394bdd){const _0xa14b8c=_0x6c183;let _0x4f80d4=Jn(_0x5a02a8,_0x11c176);if(!_0x4f80d4[_0xa14b8c(0x26e)]||_0x5a02a8==null||_0x5a02a8==='')return _0x4f80d4;let _0x149fac=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x27a)]??_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x41a)]??0x0),_0x4403aa=Number(_0x11c176[_0xa14b8c(0x2ba)][_0xa14b8c(0x482)]??_0x11c176['config'][_0xa14b8c(0x439)]??0x64),_0x571ee7=Number(_0x5a02a8);return _0x571ee7>=_0x149fac&&_0x571ee7<=_0x4403aa?{'valid':!0x0}:{'valid':!0x1,'reason':_0x394bdd};}function Xn(_0x1a9f62){const _0x28cee4=_0x6c183;if(_0x1a9f62==null||_0x1a9f62==='')return null;if(typeof _0x1a9f62=='object'&&!Array[_0x28cee4(0x431)](_0x1a9f62)){let _0xb91756=_0x1a9f62,_0x2e6822=typeof _0xb91756['text']==_0x28cee4(0x425)?_0xb91756['text'][_0x28cee4(0x226)]():'',_0x500f9c=typeof _0xb91756[_0x28cee4(0x32d)]==_0x28cee4(0x425)?_0xb91756['url']['trim']():'',_0x2de4c0=Qn(_0x500f9c||_0x2e6822);return _0x2de4c0?{'text':_0x2e6822||_0x500f9c||_0x2de4c0,'url':_0x2de4c0}:null;}let _0x5b0947=String(_0x1a9f62)[_0x28cee4(0x226)](),_0x3a79e3=Qn(_0x5b0947);return _0x3a79e3?{'text':_0x5b0947,'url':_0x3a79e3}:null;}function Zn(_0x37b513){const _0xf0d793=_0x6c183;if(_0x37b513==null)return'';if(typeof _0x37b513==_0xf0d793(0x3d7)&&!Array[_0xf0d793(0x431)](_0x37b513)){let _0x559690=_0x37b513;return String(_0x559690[_0xf0d793(0x3ae)]||_0x559690[_0xf0d793(0x32d)]||'');}return String(_0x37b513);}function Qn(_0xa9f43a){const _0x19ae47=_0x6c183;let _0x4a3a10=_0xa9f43a[_0x19ae47(0x226)]();if(!_0x4a3a10)return'';let _0x356b5c=/^[a-z][a-z\d+.-]*:/i[_0x19ae47(0x215)](_0x4a3a10)?_0x4a3a10:_0x4a3a10[_0x19ae47(0x1fb)]('//')?_0x19ae47(0x22b)+_0x4a3a10:_0x19ae47(0x34e)+_0x4a3a10;try{let _0x21096f=new URL(_0x356b5c);return _0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x36e)||_0x21096f[_0x19ae47(0x116)]===_0x19ae47(0x22b)?_0x21096f['href']:'';}catch{return'';}}function $n(_0x1b60f2){const _0x4f4f63=_0x6c183;let _0x232168=_0x1b60f2[_0x4f4f63(0x44e)]('@');if(_0x232168<=0x0||_0x232168!==_0x1b60f2['lastIndexOf']('@'))return!0x1;let _0xfb2e85=_0x1b60f2[_0x4f4f63(0x12c)](_0x232168+0x1);return _0xfb2e85[_0x4f4f63(0x16a)]('.')&&!_0x1b60f2[_0x4f4f63(0x16a)]('\x20')&&!_0xfb2e85[_0x4f4f63(0x1fb)]('.')&&!_0xfb2e85[_0x4f4f63(0x35a)]('.');}const U={'table':_0x1a3d1c=>['tables',_0x1a3d1c],'field':(_0x138e72,_0x5a7d88)=>[_0x6c183(0x298),_0x138e72,'fields',_0x5a7d88],'fieldOrder':(_0x2cfbbb,_0x50204f)=>[_0x6c183(0x298),_0x2cfbbb,_0x6c183(0x3b5),_0x50204f],'record':(_0x2ea1f7,_0x3d1ee0)=>[_0x6c183(0x298),_0x2ea1f7,'records',_0x3d1ee0],'cell':(_0xb3851f,_0x24abd6,_0x1fa297)=>[_0x6c183(0x298),_0xb3851f,'records',_0x24abd6,'values',_0x1fa297],'cellData':(_0x9a6fd1,_0x138583,_0xb439f3)=>[_0x6c183(0x298),_0x9a6fd1,_0x6c183(0x389),String(_0x138583),String(_0xb439f3)],'attachmentSet':(_0x48d798,_0x5f1121)=>['tables',_0x48d798,_0x6c183(0x421),_0x6c183(0x199),_0x5f1121],'attachment':(_0x3e4efb,_0x503473)=>['tables',_0x3e4efb,_0x6c183(0x421),'attachments',_0x503473],'view':(_0x29b23c,_0x42611a)=>[_0x6c183(0x298),_0x29b23c,'views',_0x42611a],'viewFieldHidden':(_0x146121,_0x14de02,_0x337aa9)=>[_0x6c183(0x298),_0x146121,_0x6c183(0x362),_0x14de02,_0x6c183(0x48f),_0x337aa9,_0x6c183(0x1b2)]};var W=class{[_0x6c183(0x3f7)](_0x566cc3,_0x47525b){const _0x57aed3=_0x6c183;let _0x59c16e=this['renameFormulaUnitReferences'](_0x566cc3,_0x566cc3['name'],_0x47525b);return R([this[_0x57aed3(0x4a8)](['name'],_0x566cc3[_0x57aed3(0x2a3)],_0x47525b),..._0x59c16e?[_0x59c16e]:[]]);}[_0x6c183(0x3e9)](_0x5c54cc,_0x1a1155,_0x1083cf){const _0x519f2b=_0x6c183;let _0x38c9c4=Object['values'](_0x5c54cc['tables'])[_0x519f2b(0x17a)](_0x5d4394=>Object['values'](_0x5d4394[_0x519f2b(0x398)])[_0x519f2b(0x17a)](_0x5dd73f=>{const _0x1bab52=_0x519f2b;var _0x22103e,_0x20ad6b;if(_0x5dd73f[_0x1bab52(0x20b)]!==_0x3a044b['Formula'])return[];let _0x3f1361=String(((_0x22103e=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x22103e['formula'])??''),_0x581c95=_0x2f992f(_0x3f1361,_0x1a1155,_0x1083cf);return _0x581c95===_0x3f1361?[]:[this[_0x1bab52(0x4a8)]([...U['field'](_0x5d4394['id'],_0x5dd73f['id']),_0x1bab52(0x2ba),_0x1bab52(0x3bc)],(_0x20ad6b=_0x5dd73f[_0x1bab52(0x2ba)])==null?void 0x0:_0x20ad6b[_0x1bab52(0x3bc)],_0x581c95)];}));return _0x38c9c4[_0x519f2b(0x13c)]>0x0?R(_0x38c9c4):void 0x0;}['createTable'](_0x2ab47a,_0x32f756,_0x49d9aa=_0x2ab47a[_0x6c183(0x338)]['length']){const _0x243420=_0x6c183;let _0x36366b=_0x2afbd2(_0x32f756[_0x243420(0x2a3)],_0x160d60(_0x2ab47a)[_0x243420(0x227)](),_0x32f756[_0x243420(0x423)]),_0x146144=_0x32f756[_0x243420(0x423)]===_0x36366b?_0x32f756:{..._0x32f756,'formulaName':_0x36366b};return R([...this[_0x243420(0x499)](_0x2ab47a),_0x53fdae[_0x243420(0x13f)](U[_0x243420(0x4c7)](_0x32f756['id']),_0x146144),_0x53fdae['insertOp']([_0x243420(0x338),_0x49d9aa],_0x32f756['id'])]);}[_0x6c183(0x17d)](_0x4dca5d,_0x1f76a2,_0x1c2265){const _0x3dc0b4=_0x6c183;let _0x49f1c0=_0x4dca5d['tables'][_0x1f76a2];return R([...this['_materializeFormulaTableNames'](_0x4dca5d),_0x53fdae['replaceOp']([...U[_0x3dc0b4(0x4c7)](_0x1f76a2),_0x3dc0b4(0x2a3)],_0x49f1c0[_0x3dc0b4(0x2a3)],_0x1c2265)]);}[_0x6c183(0x283)](_0x4638e3,_0x477e5d){const _0x31f1fd=_0x6c183;let _0x1085b2=_0x4638e3[_0x31f1fd(0x298)][_0x477e5d],_0x8273a4=_0x4638e3[_0x31f1fd(0x338)][_0x31f1fd(0x44e)](_0x477e5d);return R([...this[_0x31f1fd(0x499)](_0x4638e3,new Set([_0x477e5d])),_0x53fdae[_0x31f1fd(0x37b)](U['table'](_0x477e5d),_0x1085b2),_0x53fdae[_0x31f1fd(0x37b)]([_0x31f1fd(0x338),_0x8273a4],_0x477e5d)]);}['createRecord'](_0xf36748,_0x57f8a2,_0xbfc906){const _0x5cbd05=_0x6c183;return this[_0x5cbd05(0x1bf)](_0xf36748,_0x57f8a2,[_0xbfc906]);}[_0x6c183(0x1bf)](_0x99461d,_0x36dd48,_0x4f24cc){const _0xc46b26=_0x6c183;let _0xcdff0c=_0x99461d[_0xc46b26(0x298)][_0x36dd48],_0x202b03=_0x4f24cc['filter'](_0x2efd33=>_0x2efd33&&!_0xcdff0c[_0xc46b26(0x258)][_0x2efd33['id']])[_0xc46b26(0x141)](_0x2b5513=>({..._0x2b5513,'values':{..._0x2b5513[_0xc46b26(0x227)],[_0x5a35e2]:_0x2b5513['id']}}));if(!_0x202b03['length'])return _0x53fdae['replaceOp']([...U[_0xc46b26(0x4c7)](_0x36dd48),_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)],_0xcdff0c[_0xc46b26(0x258)]);let _0x4ca0bc=new _0x53fdae['WriteCursor'](),_0x484d8e=[..._0x202b03]['sort']((_0xd2dc3a,_0x391186)=>_0xd2dc3a['id']<_0x391186['id']?-0x1:+(_0xd2dc3a['id']>_0x391186['id'])),_0x2dfbf8=[...U['table'](_0x36dd48),_0xc46b26(0x258)];_0x4ca0bc['descendPath'](_0x2dfbf8);for(let _0x23e667 of _0x484d8e)_0x4ca0bc['descend'](_0x23e667['id']),_0x4ca0bc['write']('i',_0x23e667),_0x4ca0bc['ascend']();for(let _0x422b26=0x0;_0x422b26<_0x2dfbf8[_0xc46b26(0x13c)];_0x422b26+=0x1)_0x4ca0bc['ascend']();return R([_0x4ca0bc[_0xc46b26(0x43e)](),this[_0xc46b26(0x2a9)](_0x99461d,_0x36dd48,_0x202b03)]);}['deleteRecord'](_0x5c4dee,_0x362156,_0x3c3d11){const _0x1a48d9=_0x6c183;return this[_0x1a48d9(0x158)](_0x5c4dee,_0x362156,[_0x3c3d11]);}[_0x6c183(0x158)](_0x42fd4e,_0x165894,_0x37819f){const _0x1b7c39=_0x6c183;let _0x110053=_0x42fd4e[_0x1b7c39(0x298)][_0x165894],_0x49c4b7=Array[_0x1b7c39(0x1d5)](new Set(_0x37819f))[_0x1b7c39(0x2be)](_0x45ab7b=>_0x110053[_0x1b7c39(0x258)][_0x45ab7b]);if(!_0x49c4b7[_0x1b7c39(0x13c)])return _0x53fdae[_0x1b7c39(0x180)]([...U['table'](_0x165894),_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)],_0x110053[_0x1b7c39(0x258)]);let _0x5358cd=new Set(_0x49c4b7),_0x4d34f8=et(_0x110053,_0x49c4b7)[_0x1b7c39(0x141)](_0x2915d6=>this['updateCell'](_0x42fd4e,_0x165894,_0x2915d6['recordId'],_0x2915d6[_0x1b7c39(0x2b0)],''));return R([this[_0x1b7c39(0x31d)](_0x42fd4e,_0x165894,_0x49c4b7,_0x5358cd),..._0x4d34f8]);}[_0x6c183(0x225)](_0x5181e2,_0x365e17,_0x42edeb,_0xc9ffd3){const _0x2f9c57=_0x6c183;let _0x10e608=_0x5181e2['tables'][_0x42edeb],_0x19d14a=Array[_0x2f9c57(0x1d5)](new Set(_0xc9ffd3))['filter'](_0x43fe8b=>_0x10e608[_0x2f9c57(0x258)][_0x43fe8b]),_0xae377e=new Set(_0x19d14a);return R([new z()[_0x2f9c57(0x2d8)](_0x5181e2,this[_0x2f9c57(0x31d)](_0x5181e2,_0x42edeb,_0x19d14a,_0xae377e)),...et(_0x10e608,_0x19d14a)['map'](_0x3b44ae=>this[_0x2f9c57(0x20d)](_0x365e17,_0x42edeb,_0x3b44ae['recordId'],_0x3b44ae[_0x2f9c57(0x2b0)],_0x3b44ae[_0x2f9c57(0x2d1)]??''))]);}[_0x6c183(0x31d)](_0x235f97,_0x4276c4,_0x1da834,_0x357416){const _0x5e4af9=_0x6c183;let _0x166df0=_0x235f97[_0x5e4af9(0x298)][_0x4276c4],_0x477052=_0x1da834[_0x5e4af9(0x141)](_0x337c48=>{const _0x59b1f2=_0x5e4af9;var _0x2d0c19;return{'recordId':_0x337c48,'index':((_0x2d0c19=_0x166df0[_0x59b1f2(0x1e7)])==null?void 0x0:_0x2d0c19[_0x59b1f2(0x44e)](_0x337c48))??-0x1};})['filter'](_0x4057c3=>_0x4057c3['index']>=0x0)['sort']((_0x506c12,_0x11a676)=>_0x11a676[_0x5e4af9(0x159)]-_0x506c12['index']);return R([..._0x1da834['map'](_0x37c6db=>_0x53fdae[_0x5e4af9(0x37b)](U[_0x5e4af9(0x493)](_0x4276c4,_0x37c6db),_0x166df0[_0x5e4af9(0x258)][_0x37c6db])),..._0x477052[_0x5e4af9(0x141)](({recordId:_0x54add7,index:_0x25aaab})=>_0x53fdae[_0x5e4af9(0x37b)](['tables',_0x4276c4,_0x5e4af9(0x1e7),_0x25aaab],_0x54add7)),...this[_0x5e4af9(0x23f)](_0x166df0,_0x4276c4,_0x2f1022=>{const _0x35ab14=_0x5e4af9;let _0x322857=_0x2f1022['slice'](_0x2f1022[_0x35ab14(0x38c)]('\x1f')+0x1);return _0x357416[_0x35ab14(0x34b)](_0x322857);})]);}['duplicateRecord'](_0x176a1c,_0x32f608,_0x578f70,_0x58d320){const _0x488bcc=_0x6c183;return this[_0x488bcc(0x134)](_0x176a1c,_0x32f608,{..._0x58d320,'values':{..._0x176a1c[_0x488bcc(0x298)][_0x32f608][_0x488bcc(0x258)][_0x578f70][_0x488bcc(0x227)],..._0x58d320[_0x488bcc(0x227)],[_0x5a35e2]:_0x58d320['id']}});}[_0x6c183(0x313)](_0x4a0f47,_0x42ce98,_0x31f2d7,_0x2771fb){const _0x4d3282=_0x6c183;let _0x59bb71=_0x4a0f47[_0x4d3282(0x298)][_0x42ce98],_0x1d630c=[...U['record'](_0x42ce98,_0x31f2d7),'orderKey'],_0x2e0df7=Object[_0x4d3282(0x227)](_0x59bb71['records'])[_0x4d3282(0x141)](_0x59e8c2=>_0x59e8c2['id']===_0x31f2d7?{..._0x59e8c2,'orderKey':_0x2771fb}:_0x59e8c2)[_0x4d3282(0x277)]((_0x3e9191,_0x22c3bf)=>String(_0x3e9191[_0x4d3282(0x4a1)]??_0x3e9191['id'])[_0x4d3282(0x37a)](String(_0x22c3bf['orderKey']??_0x22c3bf['id'])))[_0x4d3282(0x141)](_0x158d36=>_0x158d36['id']),_0x1ff5dd=[...U[_0x4d3282(0x4c7)](_0x42ce98),_0x4d3282(0x1e7)];return R([this['_replaceOptional'](_0x1d630c,_0x59bb71[_0x4d3282(0x258)][_0x31f2d7][_0x4d3282(0x4a1)],_0x2771fb),_0x59bb71[_0x4d3282(0x1e7)]?_0x53fdae['replaceOp'](_0x1ff5dd,_0x59bb71[_0x4d3282(0x1e7)],_0x2e0df7):_0x53fdae['insertOp'](_0x1ff5dd,_0x2e0df7)]);}[_0x6c183(0x20d)](_0x2c2e32,_0x5ffb95,_0x57b369,_0x37b89a,_0x5bfacb){const _0xe06ddb=_0x6c183;var _0x573598,_0x23b928;let _0x277715=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95],_0x29a2db=ar(_0x277715,_0x57b369,_0x37b89a)?_0x277715:L(_0x277715),_0x84219c=(_0x573598=_0x29a2db['rowIndex'])==null?void 0x0:_0x573598[_0x57b369],_0x1ce158=(_0x23b928=_0x29a2db['colIndex'])==null?void 0x0:_0x23b928[_0x37b89a];if(_0x84219c==null||_0x1ce158==null){var _0x51fdcb;return this[_0xe06ddb(0x4a8)](U[_0xe06ddb(0x1de)](_0x5ffb95,_0x57b369,_0x37b89a),(_0x51fdcb=_0x2c2e32[_0xe06ddb(0x298)][_0x5ffb95])==null||(_0x51fdcb=_0x51fdcb[_0xe06ddb(0x258)][_0x57b369])==null?void 0x0:_0x51fdcb[_0xe06ddb(0x227)][_0x37b89a],_0x5bfacb);}return this[_0xe06ddb(0x11d)](_0x2c2e32,_0x5ffb95,[{'row':_0x84219c,'col':_0x1ce158,'value':_0x5bfacb}]);}[_0x6c183(0x3a6)](_0x252384,_0x166502,_0x2113c6){const _0x3e99d8=_0x6c183;let _0x16f049=_0x252384['tables'][_0x166502],_0x1592f3=_0x2113c6['every'](_0x4a1099=>Object[_0x3e99d8(0x24c)](_0x4a1099[_0x3e99d8(0x227)])[_0x3e99d8(0x387)](_0x52b28c=>ar(_0x16f049,_0x4a1099[_0x3e99d8(0x347)],_0x52b28c)))?_0x16f049:L(_0x16f049),_0x49aa9b=_0x2113c6[_0x3e99d8(0x17a)](_0x1ebceb=>Object[_0x3e99d8(0x279)](_0x1ebceb[_0x3e99d8(0x227)])[_0x3e99d8(0x17a)](([_0x1df160,_0x71699e])=>{const _0x553d16=_0x3e99d8;var _0x1416b6,_0x4dae7e;let _0x44f671=(_0x1416b6=_0x1592f3[_0x553d16(0x375)])==null?void 0x0:_0x1416b6[_0x1ebceb[_0x553d16(0x347)]],_0x57909f=(_0x4dae7e=_0x1592f3[_0x553d16(0x390)])==null?void 0x0:_0x4dae7e[_0x1df160];return _0x44f671==null||_0x57909f==null?[]:[{'row':_0x44f671,'col':_0x57909f,'value':_0x71699e}];})),_0x14ef7e=_0x2113c6[_0x3e99d8(0x17a)](_0x38c71b=>Object['entries'](_0x38c71b[_0x3e99d8(0x413)]??{})[_0x3e99d8(0x141)](([_0x29ba17,_0x5d50f7])=>{const _0x3741e0=_0x3e99d8;var _0x203f66;let _0x4df911=[...U[_0x3741e0(0x493)](_0x166502,_0x38c71b['recordId']),_0x29ba17],_0x4051a6=(_0x203f66=_0x252384[_0x3741e0(0x298)][_0x166502])==null||(_0x203f66=_0x203f66['records'][_0x38c71b[_0x3741e0(0x347)]])==null?void 0x0:_0x203f66[_0x29ba17];return this[_0x3741e0(0x4a8)](_0x4df911,_0x4051a6,_0x5d50f7);}));return R([this[_0x3e99d8(0x11d)](_0x252384,_0x166502,_0x49aa9b),..._0x14ef7e]);}[_0x6c183(0x11d)](_0xea155f,_0x272a30,_0x19f4ec){const _0xc0c62=_0x6c183;let _0x18c3b4=_0xea155f[_0xc0c62(0x298)][_0x272a30],_0x357633=_0x19f4ec[_0xc0c62(0x387)](_0x4cea52=>or(_0x18c3b4,_0x4cea52['row'],_0x4cea52['col']))?_0x18c3b4:L(_0x18c3b4),_0x566c3b=new Map(),_0x32fdb4=_0x19f4ec['flatMap'](_0x3c6916=>{const _0x2ff715=_0xc0c62;var _0x5ed0c8,_0x22d780,_0x5616f3,_0x5ae7e7;let _0x1a57a8=(_0x5ed0c8=_0x357633[_0x2ff715(0x1fe)])==null?void 0x0:_0x5ed0c8[_0x3c6916['col']],_0x4e4cbe=(_0x22d780=_0x357633[_0x2ff715(0x3d0)])==null?void 0x0:_0x22d780[_0x3c6916[_0x2ff715(0x4b3)]],_0x4bd446=_0x1a57a8?_0x357633[_0x2ff715(0x398)][_0x1a57a8]:void 0x0;if(_0x1a57a8===_0x5a35e2||(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b['RecordId'])throw Error('[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.');let _0x46d1ff=xt(_0x3c6916[_0x2ff715(0x350)],_0x4bd446),_0x5c925f=(_0x5616f3=_0x357633[_0x2ff715(0x389)])==null||(_0x5616f3=_0x5616f3[_0x3c6916['row']])==null?void 0x0:_0x5616f3[_0x3c6916['col']],_0xd37345=this[_0x2ff715(0x4a8)](U[_0x2ff715(0x389)](_0x272a30,_0x3c6916[_0x2ff715(0x4b3)],_0x3c6916[_0x2ff715(0x295)]),_0x5c925f,_0x46d1ff);if(!_0x1a57a8||!_0x4e4cbe)return[_0xd37345];let _0x204c11=(_0x5ae7e7=_0x357633[_0x2ff715(0x258)][_0x4e4cbe])==null?void 0x0:_0x5ae7e7[_0x2ff715(0x227)][_0x1a57a8],_0x4cfb26=(_0x4bd446==null?void 0x0:_0x4bd446[_0x2ff715(0x20b)])===_0x3a044b[_0x2ff715(0x1ab)]?kt(_0x3c6916[_0x2ff715(0x350)]):wt(_0x3c6916['value'],_0x46d1ff,_0x4bd446,_0x357633,_0x4e4cbe),_0x1ce84a=[_0xd37345,this[_0x2ff715(0x4a8)](U[_0x2ff715(0x1de)](_0x272a30,_0x4e4cbe,_0x1a57a8),_0x204c11,_0x4cfb26)];return(_0x4bd446==null?void 0x0:_0x4bd446['type'])===_0x3a044b['Attachment']&&_0x566c3b[_0x2ff715(0x49e)](Et(_0x1a57a8,_0x4e4cbe),{'recordId':_0x4e4cbe,'fieldId':_0x1a57a8,'attachments':_0x4cfb26}),_0x1ce84a;});return _0x32fdb4[_0xc0c62(0x13c)]?R([..._0x32fdb4,...this[_0xc0c62(0x1a0)](_0x357633,_0x272a30,Array['from'](_0x566c3b[_0xc0c62(0x227)]()))]):_0x53fdae[_0xc0c62(0x180)]([_0xc0c62(0x298),_0x272a30,_0xc0c62(0x389)],_0x357633['cellData'],_0x357633[_0xc0c62(0x389)]);}['createField'](_0x3e96fc,_0x4b5de6,_0x37bf60){const _0x5d15b2=_0x6c183;let _0x270ef0=_0x3e96fc[_0x5d15b2(0x298)][_0x4b5de6];if(_0x270ef0[_0x5d15b2(0x398)][_0x37bf60[_0x5d15b2(0x2d5)]['id']]||_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x16a)](_0x37bf60['field']['id']))return _0x53fdae['replaceOp']([_0x5d15b2(0x298),_0x4b5de6,_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)],_0x270ef0[_0x5d15b2(0x3b5)]);let _0x48659b=Math[_0x5d15b2(0x482)](0x1,_0x37bf60[_0x5d15b2(0x159)]??_0x270ef0[_0x5d15b2(0x3b5)][_0x5d15b2(0x13c)]),_0xe51f35=Object['values'](_0x270ef0[_0x5d15b2(0x362)]??{})[_0x5d15b2(0x17a)](_0x3942f5=>{const _0x55c482=_0x5d15b2;var _0xcc8583;if(!_0x3942f5[_0x55c482(0x3b5)]||_0x3942f5[_0x55c482(0x3b5)][_0x55c482(0x16a)](_0x37bf60['field']['id']))return[];let _0x31d5fa=ur(((_0xcc8583=_0x37bf60[_0x55c482(0x369)])==null?void 0x0:_0xcc8583[_0x3942f5['id']])??_0x48659b,_0x3942f5[_0x55c482(0x3b5)]['length']);return[_0x53fdae[_0x55c482(0x13f)]([...U[_0x55c482(0x37d)](_0x4b5de6,_0x3942f5['id']),_0x55c482(0x3b5),_0x31d5fa],_0x37bf60[_0x55c482(0x2d5)]['id'])];});return R([..._0x37bf60[_0x5d15b2(0x2d5)][_0x5d15b2(0x20b)]===_0x3a044b['Formula']?this[_0x5d15b2(0x499)](_0x3e96fc):[],_0x53fdae['insertOp'](U[_0x5d15b2(0x2d5)](_0x4b5de6,_0x37bf60[_0x5d15b2(0x2d5)]['id']),_0x37bf60[_0x5d15b2(0x2d5)]),_0x53fdae['insertOp'](U[_0x5d15b2(0x3b5)](_0x4b5de6,_0x48659b),_0x37bf60['field']['id']),..._0xe51f35]);}['duplicateField'](_0x145410,_0x242728,_0x2a011f,_0x9ba9a6){const _0xf6f88c=_0x6c183;let _0x454fc0=_0x145410[_0xf6f88c(0x298)][_0x242728];if(!_0x454fc0[_0xf6f88c(0x398)][_0x2a011f]||_0x454fc0[_0xf6f88c(0x398)][_0x9ba9a6[_0xf6f88c(0x2d5)]['id']]||_0x454fc0[_0xf6f88c(0x3b5)][_0xf6f88c(0x16a)](_0x9ba9a6[_0xf6f88c(0x2d5)]['id']))return _0x53fdae[_0xf6f88c(0x180)]([_0xf6f88c(0x298),_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)]);let _0xee6fe8=_0x9ba9a6[_0xf6f88c(0x159)]??_0x454fc0[_0xf6f88c(0x3b5)]['indexOf'](_0x2a011f)+0x1,_0x428fb5=_0x454fc0['fieldOrder'][_0xf6f88c(0x2be)](_0xb159bf=>_0xb159bf!==_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x5cfa27=cr(_0x428fb5,_0x9ba9a6['field']['id'],_0xee6fe8),_0xf88106=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x362)]??{})[_0xf6f88c(0x17a)](_0x211dff=>{const _0x36f944=_0xf6f88c;var _0x579d32,_0x11e6e2,_0x5baf5c,_0xcf9e99;let _0x4f8171=(_0x579d32=_0x211dff[_0x36f944(0x3b5)])!=null&&_0x579d32['length']?_0x211dff[_0x36f944(0x3b5)]:_0x428fb5;if(_0x4f8171[_0x36f944(0x16a)](_0x9ba9a6['field']['id']))return[];let _0x421115=cr(_0x4f8171,_0x9ba9a6[_0x36f944(0x2d5)]['id'],((_0x11e6e2=_0x9ba9a6[_0x36f944(0x369)])==null?void 0x0:_0x11e6e2[_0x211dff['id']])??_0xee6fe8),_0x3f675d=(_0x5baf5c=_0x211dff['fieldSettings'])==null?void 0x0:_0x5baf5c[_0x2a011f];return[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x3b5)],_0x211dff[_0x36f944(0x3b5)],_0x421115),..._0x3f675d?[this[_0x36f944(0x4a8)]([...U[_0x36f944(0x37d)](_0x242728,_0x211dff['id']),_0x36f944(0x48f),_0x9ba9a6[_0x36f944(0x2d5)]['id']],(_0xcf9e99=_0x211dff[_0x36f944(0x48f)])==null?void 0x0:_0xcf9e99[_0x9ba9a6['field']['id']],_0x3f675d)]:[]];}),_0x3668fd=Object[_0xf6f88c(0x227)](_0x454fc0[_0xf6f88c(0x258)])[_0xf6f88c(0x2be)](_0x3b0c1c=>Object['prototype'][_0xf6f88c(0x48a)][_0xf6f88c(0x43b)](_0x3b0c1c['values'],_0x2a011f))[_0xf6f88c(0x141)](_0x1e914f=>this['_replaceOptional'](U[_0xf6f88c(0x1de)](_0x242728,_0x1e914f['id'],_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x1e914f['values'][_0x9ba9a6['field']['id']],_0x1e914f[_0xf6f88c(0x227)][_0x2a011f]));return R([..._0x9ba9a6['field'][_0xf6f88c(0x20b)]===_0x3a044b[_0xf6f88c(0x4a0)]?this[_0xf6f88c(0x499)](_0x145410):[],_0x53fdae['insertOp'](U[_0xf6f88c(0x2d5)](_0x242728,_0x9ba9a6[_0xf6f88c(0x2d5)]['id']),_0x9ba9a6[_0xf6f88c(0x2d5)]),_0x53fdae['replaceOp'](['tables',_0x242728,_0xf6f88c(0x3b5)],_0x454fc0[_0xf6f88c(0x3b5)],_0x5cfa27),..._0xf88106,..._0x3668fd]);}[_0x6c183(0x13b)](_0x5051d4,_0x242ac9,_0x83f840,_0x3993c2){const _0xc8cc36=_0x6c183;let _0x119e39=_0x5051d4[_0xc8cc36(0x298)][_0x242ac9][_0xc8cc36(0x398)][_0x83f840],_0x16d48c={..._0x119e39,..._0x3993c2};Object[_0xc8cc36(0x24c)](_0x3993c2)[_0xc8cc36(0x2e0)](_0x9ee7e8=>{_0x3993c2[_0x9ee7e8]===void 0x0&&delete _0x16d48c[_0x9ee7e8];});let _0x4911d6=er(_0x5051d4[_0xc8cc36(0x298)][_0x242ac9],_0x83f840,_0x119e39,_0x16d48c);_0x16d48c=_0x4911d6[_0xc8cc36(0x2d5)];let _0x4a9fce=_0x53fdae[_0xc8cc36(0x180)](U['field'](_0x242ac9,_0x83f840),_0x119e39,_0x16d48c);return _0x16d48c['type']===_0x3a044b[_0xc8cc36(0x4a0)]?R([...this['_materializeFormulaTableNames'](_0x5051d4),_0x4a9fce,...this[_0xc8cc36(0x18d)](_0x5051d4,_0x242ac9,_0x83f840,_0x16d48c)]):R([_0x4a9fce,..._0x4911d6['patches']['length']?[this['setRangeValues'](_0x5051d4,_0x242ac9,_0x4911d6['patches'])]:[]]);}[_0x6c183(0x3e5)](_0x26649e,_0x610455,_0x1ddd02,_0x255885){const _0x192675=_0x6c183;return this[_0x192675(0x13b)](_0x26649e,_0x610455,_0x1ddd02,_0x255885);}['deleteField'](_0x3875d8,_0x251d6b,_0x3a08d1){const _0x50e1d6=_0x6c183;let _0x3e8b1b=_0x3875d8['tables'][_0x251d6b];if(!(_0x3e8b1b!=null&&_0x3e8b1b['fields'][_0x3a08d1])||_0x3e8b1b[_0x50e1d6(0x3b2)]===_0x3a08d1||_0x3a08d1===_0x5a35e2)return _0x53fdae[_0x50e1d6(0x180)](['tables',_0x251d6b,_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)],_0x3e8b1b==null?void 0x0:_0x3e8b1b[_0x50e1d6(0x3b5)]);let _0x5ad8d0=_0x3e8b1b[_0x50e1d6(0x3b5)][_0x50e1d6(0x44e)](_0x3a08d1),_0x5f3aea=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x362)])[_0x50e1d6(0x17a)](_0x3919e8=>{const _0x6001c4=_0x50e1d6;var _0x16bc29,_0x7948b0,_0xd1e3c1,_0x4063fa,_0x5a71f4,_0x570883,_0x377283;let _0x4ece43=[],_0x46ae3a=((_0x16bc29=_0x3919e8['fieldOrder'])==null?void 0x0:_0x16bc29[_0x6001c4(0x44e)](_0x3a08d1))??-0x1;_0x46ae3a>=0x0&&_0x4ece43[_0x6001c4(0x174)](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x3b5),_0x46ae3a],_0x3a08d1));let _0x365a45=(_0x7948b0=_0x3919e8[_0x6001c4(0x48f)])==null?void 0x0:_0x7948b0[_0x3a08d1];_0x365a45!==void 0x0&&_0x4ece43['push'](_0x53fdae[_0x6001c4(0x37b)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x48f),_0x3a08d1],_0x365a45));let _0xb10cd0=_0x3919e8[_0x6001c4(0x2be)]?{..._0x3919e8['filter'],'conditions':_0x3919e8[_0x6001c4(0x2be)]['conditions']['filter'](_0x5a9df6=>_0x5a9df6['fieldId']!==_0x3a08d1)}:_0x3919e8[_0x6001c4(0x2be)];_0xb10cd0&&_0xb10cd0[_0x6001c4(0x396)]['length']!==((_0xd1e3c1=_0x3919e8[_0x6001c4(0x2be)])==null?void 0x0:_0xd1e3c1[_0x6001c4(0x396)]['length'])&&_0x4ece43['push'](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'filter'],_0x3919e8[_0x6001c4(0x2be)],_0xb10cd0));let _0x29435a=(_0x4063fa=_0x3919e8['sort'])==null?void 0x0:_0x4063fa[_0x6001c4(0x2be)](_0x14678a=>_0x14678a[_0x6001c4(0x2b0)]!==_0x3a08d1);_0x29435a&&_0x29435a['length']!==((_0x5a71f4=_0x3919e8[_0x6001c4(0x277)])==null?void 0x0:_0x5a71f4[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U['view'](_0x251d6b,_0x3919e8['id']),'sort'],_0x3919e8[_0x6001c4(0x277)],_0x29435a));let _0x3baff4=(_0x570883=_0x3919e8['group'])==null?void 0x0:_0x570883[_0x6001c4(0x2be)](_0xf3101=>_0xf3101['fieldId']!==_0x3a08d1);_0x3baff4&&_0x3baff4[_0x6001c4(0x13c)]!==((_0x377283=_0x3919e8[_0x6001c4(0x1f2)])==null?void 0x0:_0x377283[_0x6001c4(0x13c)])&&_0x4ece43[_0x6001c4(0x174)](this[_0x6001c4(0x4a8)]([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),_0x6001c4(0x1f2)],_0x3919e8['group'],_0x3baff4));let _0x3fc135=lr(_0x3919e8['config'],_0x3a08d1);return JSON[_0x6001c4(0x25f)](_0x3fc135)!==JSON[_0x6001c4(0x25f)](_0x3919e8['config'])&&_0x4ece43['push'](_0x53fdae['replaceOp']([...U[_0x6001c4(0x37d)](_0x251d6b,_0x3919e8['id']),'config'],_0x3919e8[_0x6001c4(0x2ba)],_0x3fc135)),_0x4ece43;}),_0x4ceb70=Object[_0x50e1d6(0x227)](_0x3e8b1b[_0x50e1d6(0x258)])[_0x50e1d6(0x17a)](_0x3ef8e7=>Object[_0x50e1d6(0x246)][_0x50e1d6(0x48a)][_0x50e1d6(0x43b)](_0x3ef8e7['values'],_0x3a08d1)?[_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x1de)](_0x251d6b,_0x3ef8e7['id'],_0x3a08d1),_0x3ef8e7['values'][_0x3a08d1])]:[]);return R([_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x2d5)](_0x251d6b,_0x3a08d1),_0x3e8b1b[_0x50e1d6(0x398)][_0x3a08d1]),_0x53fdae[_0x50e1d6(0x37b)](U[_0x50e1d6(0x3b5)](_0x251d6b,_0x5ad8d0),_0x3a08d1),..._0x5f3aea,..._0x4ceb70,...this['_deleteAttachmentResources'](_0x3e8b1b,_0x251d6b,_0x14bb5d=>_0x14bb5d[_0x50e1d6(0x1fb)](_0x3a08d1+'\x1f'))]);}[_0x6c183(0x344)](_0x43ee13,_0xbeae85,_0x3c441a,_0x35044e){const _0x288d69=_0x6c183;let _0x118955=_0x43ee13[_0x288d69(0x298)][_0xbeae85]['fieldOrder'];if(_0x3c441a===_0x5a35e2||_0x35044e[_0x288d69(0x33d)]===_0x5a35e2)throw Error(_0x288d69(0x165));let _0x396f64=sr(_0x118955,_0x3c441a,_0x35044e);return _0x53fdae[_0x288d69(0x180)]([_0x288d69(0x298),_0xbeae85,_0x288d69(0x3b5)],_0x118955,_0x396f64);}[_0x6c183(0x2d7)](_0x1622fc,_0x1ecf71,_0x4e50c7,_0x3b122f=_0x1622fc['tables'][_0x1ecf71][_0x6c183(0x1cd)][_0x6c183(0x13c)]){const _0x107e2d=_0x6c183;return R([_0x53fdae[_0x107e2d(0x13f)](U['view'](_0x1ecf71,_0x4e50c7['id']),_0x4e50c7),_0x53fdae[_0x107e2d(0x13f)]([_0x107e2d(0x298),_0x1ecf71,_0x107e2d(0x1cd),_0x3b122f],_0x4e50c7['id'])]);}[_0x6c183(0x15f)](_0xf22a06,_0x3d2746,_0xc7f641,_0x1b4284){const _0x1b702e=_0x6c183;return _0x53fdae[_0x1b702e(0x180)]([...U[_0x1b702e(0x37d)](_0x3d2746,_0xc7f641),'name'],_0xf22a06[_0x1b702e(0x298)][_0x3d2746][_0x1b702e(0x362)][_0xc7f641][_0x1b702e(0x2a3)],_0x1b4284);}['deleteView'](_0x2354fd,_0x339769,_0x106f0c){const _0x676153=_0x6c183;let _0x15e772=_0x2354fd[_0x676153(0x298)][_0x339769],_0x1d413d=_0x15e772[_0x676153(0x362)][_0x106f0c],_0xae4292=_0x15e772[_0x676153(0x1cd)]['indexOf'](_0x106f0c);return R([_0x53fdae[_0x676153(0x37b)](U['view'](_0x339769,_0x106f0c),_0x1d413d),_0x53fdae[_0x676153(0x37b)]([_0x676153(0x298),_0x339769,'viewOrder',_0xae4292],_0x106f0c)]);}[_0x6c183(0x308)](_0xd2b96,_0x13f379,_0x3c523b,_0x556111){const _0x1b665e=_0x6c183;let _0x4713c4=_0xd2b96[_0x1b665e(0x298)][_0x13f379][_0x1b665e(0x1cd)],_0x25477b=sr(_0x4713c4,_0x3c523b,{'beforeFieldId':_0x556111[_0x1b665e(0x1af)],'afterFieldId':_0x556111[_0x1b665e(0x2d4)]});return _0x53fdae[_0x1b665e(0x180)]([_0x1b665e(0x298),_0x13f379,_0x1b665e(0x1cd)],_0x4713c4,_0x25477b);}['updateViewConfig'](_0x4a059d,_0x4617b0,_0x58d8d0,_0x242b64){const _0x3cdc0a=_0x6c183;let _0x39c5bf=_0x4a059d[_0x3cdc0a(0x298)][_0x4617b0][_0x3cdc0a(0x362)][_0x58d8d0]['config']??{},_0x386e43={..._0x39c5bf,..._0x242b64};return Object['keys'](_0x242b64)[_0x3cdc0a(0x2e0)](_0x58261d=>{_0x242b64[_0x58261d]===void 0x0&&delete _0x386e43[_0x58261d];}),_0x53fdae[_0x3cdc0a(0x180)]([...U[_0x3cdc0a(0x37d)](_0x4617b0,_0x58d8d0),_0x3cdc0a(0x2ba)],_0x39c5bf,_0x386e43);}[_0x6c183(0x16e)](_0x10f781,_0x3101b8,_0x49c678,_0x188b9a){const _0x168c8a=_0x6c183;return this[_0x168c8a(0x4a8)]([...U['view'](_0x3101b8,_0x49c678),_0x168c8a(0x2be)],_0x10f781[_0x168c8a(0x298)][_0x3101b8]['views'][_0x49c678][_0x168c8a(0x2be)],_0x188b9a);}[_0x6c183(0x23d)](_0xa21fdb,_0x27bccf,_0x4f6e94,_0x8726b9){const _0x46ef7b=_0x6c183;return this[_0x46ef7b(0x4a8)]([...U[_0x46ef7b(0x37d)](_0x27bccf,_0x4f6e94),_0x46ef7b(0x277)],_0xa21fdb[_0x46ef7b(0x298)][_0x27bccf][_0x46ef7b(0x362)][_0x4f6e94]['sort'],_0x8726b9);}['setViewGroup'](_0x5bbbf4,_0xbbe032,_0x1654a2,_0x2af382){const _0x3c3c48=_0x6c183;return this[_0x3c3c48(0x4a8)]([...U['view'](_0xbbe032,_0x1654a2),'group'],_0x5bbbf4[_0x3c3c48(0x298)][_0xbbe032][_0x3c3c48(0x362)][_0x1654a2]['group'],_0x2af382);}[_0x6c183(0x18c)](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,_0x326413){return this['_setViewFieldSetting'](_0x3d8a9e,_0x1c868f,_0x118caa,_0x3f165a,{'hidden':!_0x326413});}[_0x6c183(0x15e)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,_0x3ad3d6){const _0x5c79ad=_0x6c183;return this[_0x5c79ad(0x142)](_0x1541a9,_0x3335d2,_0x420b24,_0x4d2f7b,{'width':_0x3ad3d6});}[_0x6c183(0x22a)](_0x5f484a,_0x5706d6,_0x33b768,_0x1dad8c,_0x387043){const _0x1dc155=_0x6c183;let _0x37cfee=_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x362)][_0x33b768],_0x31cb52=sr(_0x37cfee[_0x1dc155(0x3b5)]??_0x5f484a[_0x1dc155(0x298)][_0x5706d6][_0x1dc155(0x3b5)],_0x1dad8c,_0x387043);return this['_replaceOptional']([...U[_0x1dc155(0x37d)](_0x5706d6,_0x33b768),_0x1dc155(0x3b5)],_0x37cfee[_0x1dc155(0x3b5)],_0x31cb52);}[_0x6c183(0x142)](_0x156c9a,_0x31cd87,_0x54e2f0,_0x59646c,_0x497fb2){const _0x34d3ca=_0x6c183;let _0x3c42ae=_0x156c9a['tables'][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)]??{},_0x3125fa={..._0x3c42ae,[_0x59646c]:{..._0x3c42ae[_0x59646c],..._0x497fb2}};return this[_0x34d3ca(0x4a8)]([...U[_0x34d3ca(0x37d)](_0x31cd87,_0x54e2f0),'fieldSettings'],_0x156c9a[_0x34d3ca(0x298)][_0x31cd87][_0x34d3ca(0x362)][_0x54e2f0][_0x34d3ca(0x48f)],_0x3125fa);}['_createRecordOrderOp'](_0xe2d040,_0x5efb5b,_0x30b8f3){const _0x1e1a9b=_0x6c183;let _0x3afc31=_0xe2d040[_0x1e1a9b(0x298)][_0x5efb5b],_0x13a19e=new Set(_0x30b8f3['map'](_0x45723d=>_0x45723d['id'])),_0x1bbf5f=[...Object[_0x1e1a9b(0x227)](_0x3afc31[_0x1e1a9b(0x258)])[_0x1e1a9b(0x2be)](_0x3c945a=>!_0x13a19e['has'](_0x3c945a['id'])),..._0x30b8f3][_0x1e1a9b(0x277)]((_0x5a7d5a,_0x33ea5b)=>String(_0x5a7d5a['orderKey']??_0x5a7d5a['id'])[_0x1e1a9b(0x37a)](String(_0x33ea5b['orderKey']??_0x33ea5b['id'])))[_0x1e1a9b(0x141)](_0x4e68e9=>_0x4e68e9['id']),_0x16201b=[...U[_0x1e1a9b(0x4c7)](_0x5efb5b),_0x1e1a9b(0x1e7)];return _0x3afc31[_0x1e1a9b(0x1e7)]?_0x53fdae[_0x1e1a9b(0x180)](_0x16201b,_0x3afc31['recordOrder'],_0x1bbf5f):_0x53fdae[_0x1e1a9b(0x13f)](_0x16201b,_0x1bbf5f);}[_0x6c183(0x499)](_0x595d72,_0x49f9f3=new Set()){const _0x2ff6a4=_0x6c183;let _0x15e169=_0x160d60(_0x595d72);return Object[_0x2ff6a4(0x227)](_0x595d72[_0x2ff6a4(0x298)])[_0x2ff6a4(0x2be)](_0x17f7a8=>!_0x49f9f3['has'](_0x17f7a8['id']))[_0x2ff6a4(0x277)]((_0x366927,_0x487e4e)=>_0x366927['id'][_0x2ff6a4(0x37a)](_0x487e4e['id']))[_0x2ff6a4(0x17a)](_0x19ccb9=>{const _0x5cb9b7=_0x2ff6a4;let _0x56a595=_0x15e169[_0x5cb9b7(0x43e)](_0x19ccb9['id']);return!_0x56a595||_0x19ccb9[_0x5cb9b7(0x423)]===_0x56a595?[]:[this[_0x5cb9b7(0x4a8)]([...U['table'](_0x19ccb9['id']),'formulaName'],_0x19ccb9[_0x5cb9b7(0x423)],_0x56a595)];});}[_0x6c183(0x18d)](_0x37ce02,_0x4d6ca6,_0x38fb6a,_0xfbf31c){const _0x2b4989=_0x6c183;var _0x4d583b,_0x21dc43;let _0xa1cb0b=L(_0x37ce02[_0x2b4989(0x298)][_0x4d6ca6]),_0x21fd8b=String(((_0x4d583b=_0xfbf31c[_0x2b4989(0x2ba)])==null?void 0x0:_0x4d583b[_0x2b4989(0x3bc)])??'')[_0x2b4989(0x226)](),_0x1d046b=(_0x21dc43=_0xa1cb0b[_0x2b4989(0x390)])==null?void 0x0:_0x21dc43[_0x38fb6a];if(_0x1d046b==null)return[];let _0x36d0b4=_0xa1cb0b[_0x2b4989(0x1e7)]??Object['keys'](_0xa1cb0b[_0x2b4989(0x258)]),_0xadca0f=_0x36d0b4[_0x2b4989(0x141)](_0x152709=>{var _0x4ea2d6;return(_0x4ea2d6=_0xa1cb0b['rowIndex'])==null?void 0x0:_0x4ea2d6[_0x152709];})[_0x2b4989(0x392)](_0xafc05=>_0xafc05!=null);return _0x36d0b4['flatMap'](_0x261837=>{const _0x1c1216=_0x2b4989;var _0x55a6c1,_0xc64eff;let _0x128604=(_0x55a6c1=_0xa1cb0b[_0x1c1216(0x375)])==null?void 0x0:_0x55a6c1[_0x261837];if(_0x128604==null)return[];let _0xd4b124=(_0xc64eff=_0xa1cb0b[_0x1c1216(0x389)])==null||(_0xc64eff=_0xc64eff[_0x128604])==null?void 0x0:_0xc64eff[_0x1d046b],_0x272471=_0x21fd8b?_0x128604===_0xadca0f?{'f':_0x21fd8b,'si':_0x38fb6a}:{'si':_0x38fb6a}:{'v':null,'t':null};return[this[_0x1c1216(0x4a8)](U[_0x1c1216(0x389)](_0x4d6ca6,_0x128604,_0x1d046b),_0xd4b124,_0x272471)];});}['_setAttachmentResources'](_0x842449,_0x2d744a,_0x366f70){const _0x5b7a29=_0x6c183;var _0x55d75c;let _0x54a088=new Map(Object[_0x5b7a29(0x279)](((_0x55d75c=_0x842449['resources'])==null?void 0x0:_0x55d75c['attachmentSets'])??{})),_0x426bf6=new Map(),_0x2dd7d2=new Set(),_0x5abf2f=_0x366f70['map'](({recordId:_0x2d771e,fieldId:_0x4c9186,attachments:_0x4d0574})=>{const _0x50979a=_0x5b7a29;var _0x27e8ba;let _0x495dfe=Et(_0x4c9186,_0x2d771e),_0x877607=_0x4d0574[_0x50979a(0x141)]((_0x285f4b,_0x1898ef)=>String(_0x285f4b['id']??_0x495dfe+'\x1f'+_0x1898ef));return _0x2dd7d2[_0x50979a(0x2ee)](_0x495dfe),_0x54a088['set'](_0x495dfe,_0x877607),_0x4d0574[_0x50979a(0x2e0)]((_0x16bb28,_0x34c27e)=>{let _0x40e76a=_0x877607[_0x34c27e];_0x426bf6['set'](_0x40e76a,{..._0x16bb28,'id':_0x40e76a});}),this['_replaceOptional'](U[_0x50979a(0x252)](_0x2d744a,_0x495dfe),(_0x27e8ba=_0x842449['resources'])==null||(_0x27e8ba=_0x27e8ba[_0x50979a(0x199)])==null?void 0x0:_0x27e8ba[_0x495dfe],_0x877607);}),_0x2eb618=Array[_0x5b7a29(0x1d5)](_0x426bf6)[_0x5b7a29(0x141)](([_0x52b00e,_0x15d37f])=>{const _0x39445e=_0x5b7a29;var _0x276410;return this[_0x39445e(0x4a8)](U['attachment'](_0x2d744a,_0x52b00e),(_0x276410=_0x842449['resources'])==null||(_0x276410=_0x276410['attachments'])==null?void 0x0:_0x276410[_0x52b00e],_0x15d37f);}),_0x3f8625=new Set(Array[_0x5b7a29(0x1d5)](_0x54a088[_0x5b7a29(0x227)]())['flat']()),_0x290ca9=new Set(Array[_0x5b7a29(0x1d5)](_0x2dd7d2)[_0x5b7a29(0x17a)](_0x445207=>{const _0xc543da=_0x5b7a29;var _0x3dcf31;return((_0x3dcf31=_0x842449[_0xc543da(0x421)])==null||(_0x3dcf31=_0x3dcf31[_0xc543da(0x199)])==null?void 0x0:_0x3dcf31[_0x445207])??[];})),_0x407d16=Array[_0x5b7a29(0x1d5)](_0x290ca9)['flatMap'](_0x324806=>{const _0x4ff9b6=_0x5b7a29;var _0x130724;let _0x2d95b9=(_0x130724=_0x842449[_0x4ff9b6(0x421)])==null||(_0x130724=_0x130724[_0x4ff9b6(0x4b9)])==null?void 0x0:_0x130724[_0x324806];return _0x2d95b9!==void 0x0&&!_0x3f8625[_0x4ff9b6(0x34b)](_0x324806)?[_0x53fdae[_0x4ff9b6(0x37b)](U[_0x4ff9b6(0x32e)](_0x2d744a,_0x324806),_0x2d95b9)]:[];});return[..._0x5abf2f,..._0x2eb618,..._0x407d16];}[_0x6c183(0x23f)](_0x3bc7b2,_0xec1ede,_0x280e95){const _0x2eee62=_0x6c183;var _0x48d2f9;let _0x59ee60=((_0x48d2f9=_0x3bc7b2['resources'])==null?void 0x0:_0x48d2f9[_0x2eee62(0x199)])??{},_0x3af791=Object[_0x2eee62(0x279)](_0x59ee60)[_0x2eee62(0x2be)](([_0x2c8602])=>_0x280e95(_0x2c8602));if(!_0x3af791[_0x2eee62(0x13c)])return[];let _0x1d622a=new Set(Object[_0x2eee62(0x279)](_0x59ee60)['filter'](([_0x4d3eea])=>!_0x280e95(_0x4d3eea))[_0x2eee62(0x17a)](([,_0x4edaf7])=>_0x4edaf7)),_0x53a186=new Set(_0x3af791[_0x2eee62(0x17a)](([,_0x47e583])=>_0x47e583));return[..._0x3af791['map'](([_0x296300,_0x479b5f])=>_0x53fdae[_0x2eee62(0x37b)](U['attachmentSet'](_0xec1ede,_0x296300),_0x479b5f)),...Array['from'](_0x53a186)['flatMap'](_0x4ca043=>{const _0x13eda3=_0x2eee62;var _0x249a16;let _0x352e02=(_0x249a16=_0x3bc7b2[_0x13eda3(0x421)])==null||(_0x249a16=_0x249a16[_0x13eda3(0x4b9)])==null?void 0x0:_0x249a16[_0x4ca043];return _0x352e02!==void 0x0&&!_0x1d622a[_0x13eda3(0x34b)](_0x4ca043)?[_0x53fdae[_0x13eda3(0x37b)](U[_0x13eda3(0x32e)](_0xec1ede,_0x4ca043),_0x352e02)]:[];})];}[_0x6c183(0x4a8)](_0x240a3e,_0x71a5cf,_0x357a1b){const _0x369b03=_0x6c183;return _0x71a5cf===void 0x0?_0x53fdae[_0x369b03(0x13f)](_0x240a3e,_0x357a1b):_0x53fdae[_0x369b03(0x180)](_0x240a3e,_0x71a5cf,_0x357a1b);}};function er(_0x1bf9e1,_0x4c551a,_0x1fe2c0,_0x36704e){const _0x464740=_0x6c183;var _0x52c4e5;let _0x422adb=_0x36704e['type'];if(_0x1fe2c0['type']!==_0x422adb||_0x422adb!==_0x3a044b[_0x464740(0x20e)]&&_0x422adb!==_0x3a044b[_0x464740(0x386)]||tr(_0x36704e[_0x464740(0x2ba)][_0x464740(0x46e)]))return{'field':_0x36704e,'patches':[]};let _0x39d6ce=nr(_0x1fe2c0),_0x386238=nr(_0x36704e);if(![..._0x39d6ce]['some'](_0x36c878=>!_0x386238[_0x464740(0x34b)](_0x36c878)))return{'field':_0x36704e,'patches':[]};let _0x54ba3b=rr(_0x36704e[_0x464740(0x15a)],_0x386238,_0x422adb),_0x1dd44b=ir(_0x54ba3b,_0x36704e[_0x464740(0x15a)])?_0x36704e:{..._0x36704e,'defaultValue':_0x54ba3b},_0x1dcd55=L(_0x1bf9e1),_0x2e7aaa=(_0x52c4e5=_0x1dcd55['colIndex'])==null?void 0x0:_0x52c4e5[_0x4c551a];return _0x2e7aaa==null?{'field':_0x1dd44b,'patches':[]}:{'field':_0x1dd44b,'patches':(_0x1dcd55[_0x464740(0x1e7)]??[])['flatMap'](_0x4bac41=>{const _0x46d576=_0x464740;var _0x107280,_0x1fc81e;let _0x18650a=(_0x107280=_0x1dcd55['rowIndex'])==null?void 0x0:_0x107280[_0x4bac41],_0x420ed7=(_0x1fc81e=_0x1dcd55['records'][_0x4bac41])==null?void 0x0:_0x1fc81e[_0x46d576(0x227)][_0x4c551a],_0x4f675a=rr(_0x420ed7,_0x386238,_0x422adb);return _0x18650a==null||ir(_0x4f675a,_0x420ed7)?[]:[{'row':_0x18650a,'col':_0x2e7aaa,'value':_0x4f675a??null}];})};}function tr(_0x2a63a2){const _0x207840=_0x6c183;return typeof _0x2a63a2==_0x207840(0x3d7)&&!!_0x2a63a2&&_0x207840(0x20b)in _0x2a63a2&&_0x2a63a2[_0x207840(0x20b)]===_0x207840(0x2d5);}function nr(_0x5d42d5){const _0x4488ec=_0x6c183;var _0x56ccf5;let _0x3878b0=Array[_0x4488ec(0x431)]((_0x56ccf5=_0x5d42d5['config'])==null?void 0x0:_0x56ccf5[_0x4488ec(0x2b3)])?_0x5d42d5[_0x4488ec(0x2ba)][_0x4488ec(0x2b3)]:[];return new Set(_0x3878b0[_0x4488ec(0x17a)](_0x42129c=>{const _0x3dc139=_0x4488ec;if(!_0x42129c||typeof _0x42129c!=_0x3dc139(0x3d7)||!('id'in _0x42129c))return[];let _0x1731a5=String(_0x42129c['id']);return _0x1731a5?[_0x1731a5]:[];}));}function rr(_0x57c406,_0x4d508f,_0x1aeb60){const _0x38a91b=_0x6c183;if(_0x57c406==null||_0x57c406==='')return _0x57c406;if(_0x1aeb60===_0x3a044b[_0x38a91b(0x20e)])return _0x4d508f[_0x38a91b(0x34b)](String(_0x57c406))?_0x57c406:null;let _0x553fc3=Array['isArray'](_0x57c406)?_0x57c406[_0x38a91b(0x141)](String):String(_0x57c406)[_0x38a91b(0x1c0)](',')[_0x38a91b(0x141)](_0x198d80=>_0x198d80['trim']())['filter'](Boolean),_0x460507=_0x553fc3[_0x38a91b(0x2be)](_0x5cb29e=>_0x4d508f[_0x38a91b(0x34b)](_0x5cb29e));return _0x460507[_0x38a91b(0x13c)]===_0x553fc3[_0x38a91b(0x13c)]?_0x57c406:Array[_0x38a91b(0x431)](_0x57c406)?_0x460507:String(_0x57c406)[_0x38a91b(0x16a)](',')?_0x460507[_0x38a91b(0x11a)](','):_0x460507[0x0]??[];}function ir(_0x28efd3,_0x35ea25){const _0x3950e5=_0x6c183;return JSON[_0x3950e5(0x25f)](_0x28efd3)===JSON[_0x3950e5(0x25f)](_0x35ea25);}function ar(_0x91a96a,_0xdb0247,_0x544c6d){const _0x380f5c=_0x6c183;var _0x66fe55,_0x3b39c2,_0xf8df09,_0x567e47;let _0x6eed5f=(_0x66fe55=_0x91a96a['rowIndex'])==null?void 0x0:_0x66fe55[_0xdb0247],_0x13cec9=(_0x3b39c2=_0x91a96a[_0x380f5c(0x390)])==null?void 0x0:_0x3b39c2[_0x544c6d];return _0x6eed5f!=null&&_0x13cec9!=null&&((_0xf8df09=_0x91a96a['rowId'])==null?void 0x0:_0xf8df09[_0x6eed5f])===_0xdb0247&&((_0x567e47=_0x91a96a[_0x380f5c(0x1fe)])==null?void 0x0:_0x567e47[_0x13cec9])===_0x544c6d&&_0x91a96a['cellData']!=null;}function or(_0x14a626,_0x54cbcb,_0xf36515){const _0x2d00e0=_0x6c183;var _0x42ecbe,_0x3318c4;return((_0x42ecbe=_0x14a626[_0x2d00e0(0x3d0)])==null?void 0x0:_0x42ecbe[_0x54cbcb])!=null&&((_0x3318c4=_0x14a626[_0x2d00e0(0x1fe)])==null?void 0x0:_0x3318c4[_0xf36515])!=null&&_0x14a626[_0x2d00e0(0x389)]!=null;}function sr(_0x5eb570,_0x20152a,_0x4d1e8d){const _0x57c392=_0x6c183;let _0x4756f4=_0x5eb570[_0x57c392(0x2be)](_0x440e05=>_0x440e05!==_0x20152a),_0x16c390=_0x4d1e8d['beforeFieldId']?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d['beforeFieldId']):_0x4d1e8d[_0x57c392(0x473)]?_0x4756f4[_0x57c392(0x44e)](_0x4d1e8d[_0x57c392(0x473)])+0x1:_0x4756f4[_0x57c392(0x13c)];return _0x4756f4[_0x57c392(0x289)](_0x16c390<0x0?_0x4756f4[_0x57c392(0x13c)]:_0x16c390,0x0,_0x20152a),_0x4756f4;}function cr(_0x149f83,_0x55495a,_0x36f3fb){const _0x592a08=_0x6c183;let _0x592934=_0x149f83[_0x592a08(0x2be)](_0x3a36c9=>_0x3a36c9!==_0x55495a);return _0x592934[_0x592a08(0x289)](ur(_0x36f3fb,_0x592934[_0x592a08(0x13c)]),0x0,_0x55495a),_0x592934;}function lr(_0x5d082f,_0x2b7f4c,_0xcab269){const _0x270daf=_0x6c183;if(Array[_0x270daf(0x431)](_0x5d082f))return _0xcab269===_0x270daf(0x31c)?_0x5d082f[_0x270daf(0x2be)](_0xa9dc11=>_0xa9dc11!==_0x2b7f4c):_0x5d082f['flatMap'](_0x5e6f4a=>{const _0x19ffb1=_0x270daf;if(_0x5e6f4a&&typeof _0x5e6f4a==_0x19ffb1(0x3d7)&&!Array[_0x19ffb1(0x431)](_0x5e6f4a)&&_0x5e6f4a[_0x19ffb1(0x2b0)]===_0x2b7f4c)return[];let _0xb53f6=lr(_0x5e6f4a,_0x2b7f4c);return _0xb53f6===void 0x0?[]:[_0xb53f6];});if(!_0x5d082f||typeof _0x5d082f!='object')return _0xcab269!=null&&_0xcab269[_0x270daf(0x35a)]('FieldId')&&_0x5d082f===_0x2b7f4c?void 0x0:_0x5d082f;let _0x18a6ab=_0x5d082f;if(_0x18a6ab['fieldId']!==_0x2b7f4c)return Object[_0x270daf(0x176)](Object[_0x270daf(0x279)](_0x18a6ab)[_0x270daf(0x17a)](([_0x51fe6d,_0xf2c025])=>{const _0x28fb05=_0x270daf;if(_0x51fe6d===_0x2b7f4c&&_0xcab269===_0x28fb05(0x48f))return[];let _0x469a49=lr(_0xf2c025,_0x2b7f4c,_0x51fe6d);return _0x469a49===void 0x0?[]:[[_0x51fe6d,_0x469a49]];}));}function ur(_0x3d41ba,_0x21a9e6){const _0x1993fb=_0x6c183;return Math[_0x1993fb(0x482)](0x0,Math[_0x1993fb(0x27a)](_0x3d41ba,_0x21a9e6));}function dr(_0x1f9ec6){'@babel/helpers - typeof';const _0x556bf4=_0x6c183;return dr=typeof Symbol==_0x556bf4(0x424)&&typeof Symbol[_0x556bf4(0x294)]==_0x556bf4(0x209)?function(_0x35284a){return typeof _0x35284a;}:function(_0x383deb){const _0x3dc619=_0x556bf4;return _0x383deb&&typeof Symbol==_0x3dc619(0x424)&&_0x383deb[_0x3dc619(0x454)]===Symbol&&_0x383deb!==Symbol[_0x3dc619(0x246)]?'symbol':typeof _0x383deb;},dr(_0x1f9ec6);}function fr(_0x4fc481,_0x91723d){const _0x3ba384=_0x6c183;if(dr(_0x4fc481)!=_0x3ba384(0x3d7)||!_0x4fc481)return _0x4fc481;var _0x34674b=_0x4fc481[Symbol[_0x3ba384(0x1d3)]];if(_0x34674b!==void 0x0){var _0x6f5fe9=_0x34674b[_0x3ba384(0x43b)](_0x4fc481,_0x91723d||_0x3ba384(0x4ac));if(dr(_0x6f5fe9)!=_0x3ba384(0x3d7))return _0x6f5fe9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x91723d===_0x3ba384(0x425)?String:Number)(_0x4fc481);}function pr(_0x4ee82d){const _0x5a64aa=_0x6c183;var _0x548ccb=fr(_0x4ee82d,_0x5a64aa(0x425));return dr(_0x548ccb)==_0x5a64aa(0x209)?_0x548ccb:_0x548ccb+'';}function G(_0x500ff5,_0x3b76c5,_0x50333a){const _0x12cdc3=_0x6c183;return(_0x3b76c5=pr(_0x3b76c5))in _0x500ff5?Object[_0x12cdc3(0x448)](_0x500ff5,_0x3b76c5,{'value':_0x50333a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x500ff5[_0x3b76c5]=_0x50333a,_0x500ff5;}const mr=_0x2e8f64(_0x6c183(0x3af));var hr=class extends _0x3b0b2d{constructor(..._0x160926){const _0x46562f=_0x6c183;super(..._0x160926),G(this,_0x46562f(0x1dd),new Map());}[_0x6c183(0x2d9)](_0x1af74c){const _0x566f06=_0x6c183;return this['_plugins'][_0x566f06(0x49e)](_0x1af74c[_0x566f06(0x20b)],_0x1af74c),_0x1827e4(()=>this[_0x566f06(0x1dd)][_0x566f06(0x2fc)](_0x1af74c[_0x566f06(0x20b)]));}['get'](_0x286974){const _0x3a5f0a=_0x6c183;let _0x24eb91=this[_0x3a5f0a(0x1dd)][_0x3a5f0a(0x43e)](_0x286974);if(!_0x24eb91)throw Error('[BaseFieldRegistryService]:\x20field\x20type\x20\x22'+_0x286974+_0x3a5f0a(0x25c));return _0x24eb91;}[_0x6c183(0x4bf)](_0xc16cbc){const _0x344e55=_0x6c183;return this[_0x344e55(0x1dd)]['get'](_0xc16cbc);}[_0x6c183(0x1db)](){const _0x29aaa5=_0x6c183;return Array[_0x29aaa5(0x1d5)](this[_0x29aaa5(0x1dd)][_0x29aaa5(0x227)]());}},gr=class{constructor(_0x206e37){const _0x249465=_0x6c183;this[_0x249465(0x393)]=_0x206e37,G(this,_0x249465(0x20b),_0x3cf49a[_0x249465(0x1cc)]),G(this,'subType',_0x1aafeb[_0x249465(0x117)]),G(this,_0x249465(0x323),_0x16215e[_0x249465(0x43a)]),G(this,'id',void 0x0),G(this,_0x249465(0x350),!0x0),this['id']=this[_0x249465(0x20b)]+'.'+this[_0x249465(0x2c1)]+'_'+_0x206e37;}},_r=class{constructor(_0x159a19){const _0x1e0d31=_0x6c183;this[_0x1e0d31(0x393)]=_0x159a19,G(this,'type',_0x3cf49a[_0x1e0d31(0x1cc)]),G(this,_0x1e0d31(0x2c1),_0x1aafeb[_0x1e0d31(0x337)]),G(this,_0x1e0d31(0x323),_0x16215e[_0x1e0d31(0x43a)]),G(this,'id',void 0x0),G(this,_0x1e0d31(0x350),!0x0),this['id']=this['type']+'.'+this[_0x1e0d31(0x2c1)]+'_'+_0x159a19;}},vr=class{constructor(_0x57afde){const _0x214c7f=_0x6c183;this[_0x214c7f(0x393)]=_0x57afde,G(this,_0x214c7f(0x20b),_0x3cf49a['Base']),G(this,_0x214c7f(0x2c1),_0x1aafeb[_0x214c7f(0x200)]),G(this,'status',_0x16215e[_0x214c7f(0x43a)]),G(this,'id',void 0x0),G(this,_0x214c7f(0x350),!0x0),this['id']=this[_0x214c7f(0x20b)]+'.'+this[_0x214c7f(0x2c1)]+'_'+_0x57afde;}},yr=class{constructor(_0x1e7ee9){const _0x58d948=_0x6c183;this[_0x58d948(0x393)]=_0x1e7ee9,G(this,'type',_0x3cf49a[_0x58d948(0x1cc)]),G(this,_0x58d948(0x2c1),_0x1aafeb['Export']),G(this,_0x58d948(0x323),_0x16215e[_0x58d948(0x43a)]),G(this,'id',void 0x0),G(this,_0x58d948(0x350),!0x0),this['id']=this[_0x58d948(0x20b)]+'.'+this[_0x58d948(0x2c1)]+'_'+_0x1e7ee9;}},br=class{constructor(_0x4f1406,_0x3576de){const _0x515c06=_0x6c183;this[_0x515c06(0x393)]=_0x4f1406,this[_0x515c06(0x365)]=_0x3576de,G(this,_0x515c06(0x20b),_0x3cf49a[_0x515c06(0x382)]),G(this,_0x515c06(0x2c1),_0x1aafeb['Edit']),G(this,_0x515c06(0x323),_0x16215e['INIT']),G(this,'id',void 0x0),G(this,_0x515c06(0x350),!0x0),this['id']=this[_0x515c06(0x20b)]+'.'+this[_0x515c06(0x2c1)]+'_'+_0x4f1406+'_'+_0x3576de;}},xr=class{constructor(_0x35f6d3,_0x390a02){const _0x32ba36=_0x6c183;this['unitId']=_0x35f6d3,this[_0x32ba36(0x365)]=_0x390a02,G(this,_0x32ba36(0x20b),_0x3cf49a[_0x32ba36(0x1f6)]),G(this,'subType',_0x1aafeb[_0x32ba36(0x200)]),G(this,_0x32ba36(0x323),_0x16215e[_0x32ba36(0x43a)]),G(this,'id',void 0x0),G(this,_0x32ba36(0x350),!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x35f6d3+'_'+_0x390a02;}},Sr=class{constructor(_0x162b26,_0x7d9867){const _0x128711=_0x6c183;this[_0x128711(0x393)]=_0x162b26,this[_0x128711(0x365)]=_0x7d9867,G(this,_0x128711(0x20b),_0x3cf49a['BaseRecord']),G(this,'subType',_0x1aafeb[_0x128711(0x200)]),G(this,_0x128711(0x323),_0x16215e[_0x128711(0x43a)]),G(this,'id',void 0x0),G(this,_0x128711(0x350),!0x0),this['id']=this[_0x128711(0x20b)]+'.'+this['subType']+'_'+_0x162b26+'_'+_0x7d9867;}},Cr=class{constructor(_0x522de4,_0x275a10){const _0x448c3a=_0x6c183;this[_0x448c3a(0x393)]=_0x522de4,this['objectId']=_0x275a10,G(this,'type',_0x3cf49a['BaseTable']),G(this,_0x448c3a(0x2c1),_0x1aafeb[_0x448c3a(0x200)]),G(this,_0x448c3a(0x323),_0x16215e[_0x448c3a(0x43a)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this['type']+'.'+this['subType']+'_'+_0x522de4+'_'+_0x275a10;}},wr=class{constructor(_0x3d4a88,_0x5f147c){const _0x5f5a19=_0x6c183;this['unitId']=_0x3d4a88,this[_0x5f5a19(0x365)]=_0x5f147c,G(this,_0x5f5a19(0x20b),_0x3cf49a[_0x5f5a19(0x33a)]),G(this,_0x5f5a19(0x2c1),_0x1aafeb['Edit']),G(this,'status',_0x16215e[_0x5f5a19(0x43a)]),G(this,'id',void 0x0),G(this,_0x5f5a19(0x350),!0x0),this['id']=this[_0x5f5a19(0x20b)]+'.'+this[_0x5f5a19(0x2c1)]+'_'+_0x3d4a88+'_'+_0x5f147c;}};const Tr=[_0x1aafeb[_0x6c183(0x200)],_0x1aafeb[_0x6c183(0x337)],_0x1aafeb['Export'],_0x1aafeb[_0x6c183(0x117)]],Er=new Set([_0x3cf49a['Base'],_0x3cf49a[_0x6c183(0x475)],_0x3cf49a['BaseField'],_0x3cf49a[_0x6c183(0x3c8)],_0x3cf49a[_0x6c183(0x33a)],_0x3cf49a[_0x6c183(0x382)]]),Dr=_0x6c183(0x240),Or=_0x6c183(0x310),kr=_0x6c183(0x12a),Ar='view/',jr=_0x6c183(0x2a5);function K(_0x4df66c){return''+Dr+encodeURIComponent(_0x4df66c);}function q(_0x5ddd8a,_0x181f14){return''+Or+encodeURIComponent(_0x5ddd8a)+'/'+encodeURIComponent(_0x181f14);}function J(_0x50efa0,_0x1d9a13){return''+kr+encodeURIComponent(_0x50efa0)+'/'+encodeURIComponent(_0x1d9a13);}function Mr(_0x23cd0e,_0x4b3c8c){return''+Ar+encodeURIComponent(_0x23cd0e)+'/'+encodeURIComponent(_0x4b3c8c);}function Nr(_0x159d95){return''+jr+encodeURIComponent(_0x159d95);}function Pr(_0x546d74,_0x35e39c,_0xed7c08){const _0x366cbe=_0x6c183;if(_0x35e39c===_0x546d74)switch(_0xed7c08){case _0x1aafeb[_0x366cbe(0x200)]:return new vr(_0x546d74);case _0x1aafeb[_0x366cbe(0x337)]:return new _r(_0x546d74);case _0x1aafeb[_0x366cbe(0x1c9)]:return new yr(_0x546d74);case _0x1aafeb[_0x366cbe(0x117)]:return new gr(_0x546d74);default:throw Error(_0x366cbe(0x260)+_0xed7c08);}if(_0xed7c08!==_0x1aafeb[_0x366cbe(0x200)])throw Error(_0x366cbe(0x4a7)+_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Dr))return new Cr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Or))return new xr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](kr))return new Sr(_0x546d74,_0x35e39c);if(_0x35e39c[_0x366cbe(0x1fb)](Ar))return new wr(_0x546d74,_0x35e39c);if(_0x35e39c['startsWith'](jr))return new br(_0x546d74,_0x35e39c);throw Error('Unsupported\x20Base\x20permission\x20object:\x20'+_0x35e39c);}function Fr(_0xe5bcbc,_0x121748,_0x375d36,_0x571b00){const _0x469b12=_0x6c183;var _0x3403ca;return((_0x3403ca=_0xe5bcbc[_0x469b12(0x187)](Pr(_0x121748,_0x375d36,_0x571b00)['id']))==null?void 0x0:_0x3403ca[_0x469b12(0x350)])??!0x0;}function Ir(_0xb59e6d,_0x14ef8d,_0x5fba68,_0x491e4b,_0xb455e2){const _0x5ccd67=_0x6c183;let _0x26cd9b=Pr(_0x14ef8d,_0x5fba68,_0x491e4b);_0xb59e6d[_0x5ccd67(0x187)](_0x26cd9b['id'])||_0xb59e6d[_0x5ccd67(0x2e2)](_0x26cd9b),_0xb59e6d[_0x5ccd67(0x3fe)](_0x26cd9b['id'],_0xb455e2);}function Lr(_0x597f25,_0x13ce32,_0x4f8aa0,_0x2e569d){const _0x48ab5e=_0x6c183;_0x597f25[_0x48ab5e(0x293)](Pr(_0x13ce32,_0x4f8aa0,_0x2e569d)['id']);}function Rr(_0x129dde,_0x5beccc){const _0x44fad4=_0x6c183;_0x129dde[_0x44fad4(0x44b)]()[_0x44fad4(0x2e0)]((_0x322482,_0x4bd5e0)=>{const _0x541862=_0x44fad4;_0x322482['subscribe'](_0x5b4706=>{const _0x42d9f8=_0x2b5a;Er[_0x42d9f8(0x34b)](_0x5b4706['type'])&&'unitId'in _0x5b4706&&_0x5b4706[_0x42d9f8(0x393)]===_0x5beccc&&_0x129dde[_0x42d9f8(0x293)](_0x4bd5e0);})[_0x541862(0x49c)]();});}function zr(_0x5967f4,_0x347edc,_0x3d2bd4){const _0x3b46e2=_0x6c183;return Fr(_0x5967f4,_0x347edc,_0x347edc,_0x1aafeb['Edit'])&&Array[_0x3b46e2(0x1d5)](_0x3d2bd4)[_0x3b46e2(0x387)](_0x5808c2=>Fr(_0x5967f4,_0x347edc,_0x5808c2,_0x1aafeb[_0x3b46e2(0x200)]));}function Y(_0x428a95,_0x5ee01e){return function(_0xb7b503,_0x47e4c0){_0x5ee01e(_0xb7b503,_0x47e4c0,_0x428a95);};}function X(_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6){const _0x56c033=_0x6c183;var _0x94113d=arguments[_0x56c033(0x13c)],_0x177929=_0x94113d<0x3?_0x5a5c11:_0x2e59a6===null?_0x2e59a6=Object[_0x56c033(0x2b1)](_0x5a5c11,_0x263598):_0x2e59a6,_0x5c74ab;if(typeof Reflect=='object'&&typeof Reflect[_0x56c033(0x468)]==_0x56c033(0x424))_0x177929=Reflect[_0x56c033(0x468)](_0x1cbb46,_0x5a5c11,_0x263598,_0x2e59a6);else{for(var _0x1c4043=_0x1cbb46[_0x56c033(0x13c)]-0x1;_0x1c4043>=0x0;_0x1c4043--)(_0x5c74ab=_0x1cbb46[_0x1c4043])&&(_0x177929=(_0x94113d<0x3?_0x5c74ab(_0x177929):_0x94113d>0x3?_0x5c74ab(_0x5a5c11,_0x263598,_0x177929):_0x5c74ab(_0x5a5c11,_0x263598))||_0x177929);}return _0x94113d>0x3&&_0x177929&&Object[_0x56c033(0x448)](_0x5a5c11,_0x263598,_0x177929),_0x177929;}const Br=_0x2e8f64(_0x6c183(0x24f));let Vr=class extends _0x3b0b2d{constructor(_0x46ef55,_0x48bd2e){const _0x781d7f=_0x6c183;super(),this[_0x781d7f(0x3ad)]=_0x46ef55,this['_instanceService']=_0x48bd2e,G(this,_0x781d7f(0x29f),new Map()),G(this,_0x781d7f(0x348),new Map()),G(this,_0x781d7f(0x1e2),new Map()),G(this,_0x781d7f(0x4aa),new Map()),G(this,_0x781d7f(0x1a6),new Map()),G(this,'_tableBaseIds',new Map()),this[_0x781d7f(0x135)](this[_0x781d7f(0x470)][_0x781d7f(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x3ea0c9=>this['_clearUnit'](_0x3ea0c9[_0x781d7f(0x2ff)]())));}[_0x6c183(0x11c)](_0x1c8e98){const _0x2c85bd=_0x6c183;var _0x1374a8;return this[_0x2c85bd(0x437)](_0x1c8e98,[])&&(((_0x1374a8=this[_0x2c85bd(0x29f)]['get'](_0x1c8e98))==null?void 0x0:_0x1374a8['createTable'])??!0x0);}['canEditTable'](_0x5c75d3){return this['_canEditTable'](_0x5c75d3);}[_0x6c183(0x1b0)](_0x502838){const _0x5e292e=_0x6c183;var _0x28b624;return this[_0x5e292e(0x1f4)](_0x502838)&&(((_0x28b624=this['_tablePermissions'][_0x5e292e(0x43e)](_0x502838))==null?void 0x0:_0x28b624[_0x5e292e(0x2fc)])??!0x0);}['canCreateField'](_0x2243aa){const _0x1e9078=_0x6c183;var _0x1b6873;return this[_0x1e9078(0x1f4)](_0x2243aa)&&(((_0x1b6873=this[_0x1e9078(0x348)][_0x1e9078(0x43e)](_0x2243aa))==null?void 0x0:_0x1b6873[_0x1e9078(0x250)])??!0x0);}[_0x6c183(0x42c)](_0x5650f9,_0x58b4c4){const _0x568014=_0x6c183;var _0x3a548f;return this[_0x568014(0x1f4)](_0x5650f9)&&this[_0x568014(0x437)](_0x5650f9,[q(_0x5650f9,_0x58b4c4)])&&(((_0x3a548f=this[_0x568014(0x1e2)]['get'](Ur(_0x5650f9,_0x58b4c4)))==null?void 0x0:_0x3a548f[_0x568014(0x19b)])??!0x0);}[_0x6c183(0x222)](_0x563a15,_0x4b2ea2){const _0x4bfff8=_0x6c183;var _0x177d26;return this[_0x4bfff8(0x42c)](_0x563a15,_0x4b2ea2)&&(((_0x177d26=this[_0x4bfff8(0x1e2)]['get'](Ur(_0x563a15,_0x4b2ea2)))==null?void 0x0:_0x177d26[_0x4bfff8(0x2fc)])??!0x0);}[_0x6c183(0x321)](_0x21e6d2){const _0x423991=_0x6c183;var _0x2d96d4;return this[_0x423991(0x1f4)](_0x21e6d2)&&(((_0x2d96d4=this[_0x423991(0x348)][_0x423991(0x43e)](_0x21e6d2))==null?void 0x0:_0x2d96d4[_0x423991(0x134)])??!0x0);}[_0x6c183(0x46a)](_0x1b2a13,_0x38e3d5){const _0x1bc42d=_0x6c183;var _0x2a0a3e;let _0x1d6a99=this[_0x1bc42d(0x4aa)][_0x1bc42d(0x43e)](Wr(_0x1b2a13,_0x38e3d5));return this[_0x1bc42d(0x437)](_0x1b2a13,[K(_0x1b2a13),J(_0x1b2a13,_0x38e3d5)])&&(((_0x2a0a3e=this['_tablePermissions'][_0x1bc42d(0x43e)](_0x1b2a13))==null?void 0x0:_0x2a0a3e[_0x1bc42d(0x19b)])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99['edit'])??!0x0)&&((_0x1d6a99==null?void 0x0:_0x1d6a99[_0x1bc42d(0x367)])??!0x0);}['canDeleteRecord'](_0x1de9b6,_0x7e1781){const _0x140078=_0x6c183;var _0x5e62cd,_0x2ee4b2,_0x56cfc4;return this['_canEdit'](_0x1de9b6,[K(_0x1de9b6),J(_0x1de9b6,_0x7e1781)])&&(((_0x5e62cd=this[_0x140078(0x348)][_0x140078(0x43e)](_0x1de9b6))==null?void 0x0:_0x5e62cd['edit'])??!0x0)&&(((_0x2ee4b2=this[_0x140078(0x4aa)]['get'](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x2ee4b2[_0x140078(0x19b)])??!0x0)&&(((_0x56cfc4=this['_recordPermissions'][_0x140078(0x43e)](Wr(_0x1de9b6,_0x7e1781)))==null?void 0x0:_0x56cfc4[_0x140078(0x2fc)])??!0x0);}['canEditCell'](_0x48edab,_0x3556cf,_0x4e26b4){const _0x1541ea=_0x6c183;var _0x3300c6,_0x200cd6,_0x5f3d3b;let _0x5a3415=this[_0x1541ea(0x1e2)][_0x1541ea(0x43e)](Ur(_0x48edab,_0x4e26b4));return this['_canEdit'](_0x48edab,[K(_0x48edab),q(_0x48edab,_0x4e26b4),J(_0x48edab,_0x3556cf)])&&(((_0x3300c6=this[_0x1541ea(0x348)]['get'](_0x48edab))==null?void 0x0:_0x3300c6[_0x1541ea(0x19b)])??!0x0)&&(((_0x200cd6=this['_recordPermissions'][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x200cd6[_0x1541ea(0x19b)])??!0x0)&&(((_0x5f3d3b=this[_0x1541ea(0x4aa)][_0x1541ea(0x43e)](Wr(_0x48edab,_0x3556cf)))==null?void 0x0:_0x5f3d3b['editCell'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415['edit'])??!0x0)&&((_0x5a3415==null?void 0x0:_0x5a3415[_0x1541ea(0x367)])??!0x0);}[_0x6c183(0x3d2)](_0x332858,_0x2f800d){const _0x1cc067=_0x6c183;var _0x1126b3,_0x37c36c,_0x4e9148;return this[_0x1cc067(0x437)](_0x332858,[K(_0x332858),Mr(_0x332858,_0x2f800d)])&&(((_0x1126b3=this['_tablePermissions'][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x1126b3[_0x1cc067(0x19b)])??!0x0)&&(((_0x37c36c=this['_viewPermissions'][_0x1cc067(0x43e)](Gr(_0x332858,_0x2f800d)))==null?void 0x0:_0x37c36c['edit'])??!0x0)&&(((_0x4e9148=this[_0x1cc067(0x348)][_0x1cc067(0x43e)](_0x332858))==null?void 0x0:_0x4e9148[_0x1cc067(0x30c)])??!0x0);}[_0x6c183(0x38a)](_0x4522e3,_0x446f23){const _0x366325=_0x6c183;this[_0x366325(0x29f)][_0x366325(0x49e)](_0x4522e3,{...this[_0x366325(0x29f)]['get'](_0x4522e3),..._0x446f23}),_0x446f23[_0x366325(0x19b)]!==void 0x0&&Ir(this[_0x366325(0x3ad)],_0x4522e3,_0x4522e3,_0x1aafeb['Edit'],_0x446f23['edit']);}[_0x6c183(0x3a1)](_0xa39520,_0x286a6a){const _0x99db4d=_0x6c183;this['_rememberTable'](_0xa39520),this[_0x99db4d(0x348)][_0x99db4d(0x49e)](_0xa39520,{...this['_tablePermissions'][_0x99db4d(0x43e)](_0xa39520),..._0x286a6a}),this[_0x99db4d(0x151)](_0xa39520,K(_0xa39520),_0x286a6a['edit']);}[_0x6c183(0x39e)](_0x32abcb,_0x1f292f,_0x50d0e0){const _0x4f6878=_0x6c183;this[_0x4f6878(0x2bb)](_0x32abcb);let _0x2c9ff9=Ur(_0x32abcb,_0x1f292f);this[_0x4f6878(0x1e2)][_0x4f6878(0x49e)](_0x2c9ff9,{...this[_0x4f6878(0x1e2)][_0x4f6878(0x43e)](_0x2c9ff9),..._0x50d0e0}),this[_0x4f6878(0x151)](_0x32abcb,q(_0x32abcb,_0x1f292f),_0x50d0e0[_0x4f6878(0x19b)]);}[_0x6c183(0x317)](_0xa08bca,_0x496022,_0x42a035){const _0x4aee32=_0x6c183;this[_0x4aee32(0x2bb)](_0xa08bca);let _0x30c312=Wr(_0xa08bca,_0x496022);this['_recordPermissions'][_0x4aee32(0x49e)](_0x30c312,{...this[_0x4aee32(0x4aa)]['get'](_0x30c312),..._0x42a035}),this[_0x4aee32(0x151)](_0xa08bca,J(_0xa08bca,_0x496022),_0x42a035[_0x4aee32(0x19b)]);}[_0x6c183(0x360)](_0x3c1d52,_0x48b274,_0x115eec){const _0x38e416=_0x6c183;this['_rememberTable'](_0x3c1d52);let _0x13ea84=Gr(_0x3c1d52,_0x48b274);this[_0x38e416(0x1a6)]['set'](_0x13ea84,{...this['_viewPermissions'][_0x38e416(0x43e)](_0x13ea84),..._0x115eec}),this[_0x38e416(0x151)](_0x3c1d52,Mr(_0x3c1d52,_0x48b274),_0x115eec[_0x38e416(0x19b)]);}[_0x6c183(0x41b)](_0x3f2892){const _0xbd203e=_0x6c183;this[_0xbd203e(0x29f)]['delete'](_0x3f2892),Lr(this[_0xbd203e(0x3ad)],_0x3f2892,_0x3f2892,_0x1aafeb[_0xbd203e(0x200)]);}[_0x6c183(0x211)](_0x1c207b){const _0x449a32=_0x6c183;this[_0x449a32(0x348)][_0x449a32(0x2fc)](_0x1c207b),this[_0x449a32(0x46b)](_0x1c207b,K(_0x1c207b));}[_0x6c183(0x38d)](_0x1d3e1b,_0x1ea8b1){const _0x517281=_0x6c183;this[_0x517281(0x1e2)][_0x517281(0x2fc)](Ur(_0x1d3e1b,_0x1ea8b1)),this[_0x517281(0x46b)](_0x1d3e1b,q(_0x1d3e1b,_0x1ea8b1));}[_0x6c183(0x2e8)](_0x59b54d,_0x2e28e6){const _0x433437=_0x6c183;this['_recordPermissions'][_0x433437(0x2fc)](Wr(_0x59b54d,_0x2e28e6)),this['_clearObjectEdit'](_0x59b54d,J(_0x59b54d,_0x2e28e6));}[_0x6c183(0x49f)](_0x5c6879,_0x40e79b){const _0xd8bcc=_0x6c183;this[_0xd8bcc(0x1a6)][_0xd8bcc(0x2fc)](Gr(_0x5c6879,_0x40e79b)),this[_0xd8bcc(0x46b)](_0x5c6879,Mr(_0x5c6879,_0x40e79b));}['getSnapshot'](){const _0x54e50d=_0x6c183;return{'bases':Object[_0x54e50d(0x176)](this[_0x54e50d(0x29f)]),'tables':Object[_0x54e50d(0x176)](this['_tablePermissions']),'fields':Object[_0x54e50d(0x176)](this[_0x54e50d(0x1e2)]),'records':Object['fromEntries'](this[_0x54e50d(0x4aa)]),'views':Object['fromEntries'](this[_0x54e50d(0x1a6)])};}[_0x6c183(0x1f4)](_0x5a714a){const _0x4b469f=_0x6c183;var _0x453269;return this[_0x4b469f(0x437)](_0x5a714a,[K(_0x5a714a)])&&(((_0x453269=this[_0x4b469f(0x348)][_0x4b469f(0x43e)](_0x5a714a))==null?void 0x0:_0x453269[_0x4b469f(0x19b)])??!0x0);}[_0x6c183(0x437)](_0x1e7628,_0x4bcd88){const _0x493fec=_0x6c183;var _0x53bd47;let _0x241cf7=this[_0x493fec(0x379)](_0x1e7628);return!_0x241cf7||zr(this[_0x493fec(0x3ad)],_0x241cf7,_0x4bcd88)&&(((_0x53bd47=this[_0x493fec(0x29f)][_0x493fec(0x43e)](_0x241cf7))==null?void 0x0:_0x53bd47[_0x493fec(0x19b)])??!0x0);}[_0x6c183(0x151)](_0x51af38,_0x4c69dd,_0x4dae24){const _0x3bfdf5=_0x6c183;if(_0x4dae24===void 0x0)return;let _0x3f87c8=this[_0x3bfdf5(0x379)](_0x51af38);_0x3f87c8&&Ir(this[_0x3bfdf5(0x3ad)],_0x3f87c8,_0x4c69dd,_0x1aafeb[_0x3bfdf5(0x200)],_0x4dae24);}[_0x6c183(0x46b)](_0x543cb5,_0x9c1da3){const _0x2594eb=_0x6c183;let _0x50e893=this[_0x2594eb(0x379)](_0x543cb5);_0x50e893&&Lr(this['_permissionService'],_0x50e893,_0x9c1da3,_0x1aafeb[_0x2594eb(0x200)]);}['_resolveBaseId'](_0x392f31){const _0x57bb63=_0x6c183;var _0x412c20;let _0x17c8f1=this[_0x57bb63(0x470)]['getUnit'](_0x392f31,_0x5c5c99[_0x57bb63(0x36b)]);return _0x17c8f1?_0x17c8f1[_0x57bb63(0x2ff)]():(_0x412c20=this[_0x57bb63(0x470)]['getAllUnitsForType'](_0x5c5c99[_0x57bb63(0x36b)])[_0x57bb63(0x392)](_0x2da3af=>!!_0x2da3af[_0x57bb63(0x32f)]()[_0x57bb63(0x298)][_0x392f31]))==null?void 0x0:_0x412c20[_0x57bb63(0x2ff)]();}[_0x6c183(0x2bb)](_0x14a418){const _0x3062c5=_0x6c183;let _0x861c1c=this[_0x3062c5(0x379)](_0x14a418);_0x861c1c&&this[_0x3062c5(0x4b0)][_0x3062c5(0x49e)](_0x14a418,_0x861c1c);}[_0x6c183(0x1dc)](_0x2cf1fd){const _0x349767=_0x6c183;this['_basePermissions']['delete'](_0x2cf1fd),this[_0x349767(0x4b0)][_0x349767(0x2e0)]((_0x567939,_0x4d26f2)=>{const _0x38a65a=_0x349767;_0x567939===_0x2cf1fd&&(this['_tablePermissions']['delete'](_0x4d26f2),Hr(this[_0x38a65a(0x1e2)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x4aa)],_0x4d26f2+'\x1f'),Hr(this[_0x38a65a(0x1a6)],_0x4d26f2+'\x1f'),this[_0x38a65a(0x4b0)][_0x38a65a(0x2fc)](_0x4d26f2));});}};Vr=X([Y(0x0,_0x41b15f),Y(0x1,_0x24efe9)],Vr);function Hr(_0x4737a0,_0xc5004b){const _0x5df299=_0x6c183;_0x4737a0[_0x5df299(0x2e0)]((_0x3f35ea,_0x181bed)=>{const _0x427908=_0x5df299;_0x181bed[_0x427908(0x1fb)](_0xc5004b)&&_0x4737a0[_0x427908(0x2fc)](_0x181bed);});}function Ur(_0x2d8fd2,_0x526ff9){return _0x2d8fd2+'\x1f'+_0x526ff9;}function Wr(_0xd4183b,_0x1e41a1){return _0xd4183b+'\x1f'+_0x1e41a1;}function Gr(_0x3a8a63,_0x2b8c5b){return _0x3a8a63+'\x1f'+_0x2b8c5b;}const Kr=_0x2e8f64(_0x6c183(0x232));let qr=class{constructor(_0x484976,_0x5e3e76=Jr(),_0x2e8a2f={}){const _0x16d0e4=_0x6c183;this['_permissionService']=_0x484976,this[_0x16d0e4(0x287)]=_0x5e3e76,this[_0x16d0e4(0x2d3)]=_0x2e8a2f,G(this,_0x16d0e4(0x4b8),new W()),G(this,_0x16d0e4(0x37c),new z());}[_0x6c183(0x1b3)](_0xb2d68b,_0x35ac39,_0x3977ff){const _0x3db15c=_0x6c183;if(!this[_0x3db15c(0x3ad)][_0x3db15c(0x11c)](_0xb2d68b[_0x3db15c(0x2ff)]()))throw Error(_0x3db15c(0x459));_0x37d535(_0x35ac39),this['_apply'](_0xb2d68b,this[_0x3db15c(0x4b8)]['createTable'](_0xb2d68b[_0x3db15c(0x32f)](),_0x35ac39,_0x3977ff));}['renameTable'](_0x3d72cd,_0x600218,_0xe873c2){const _0x2e5ccd=_0x6c183;if(!this[_0x2e5ccd(0x3ad)]['canEditTable'](_0x600218))throw Error(_0x2e5ccd(0x256));this[_0x2e5ccd(0x219)](_0x3d72cd,this[_0x2e5ccd(0x4b8)][_0x2e5ccd(0x17d)](_0x3d72cd[_0x2e5ccd(0x32f)](),_0x600218,_0xe873c2));}[_0x6c183(0x283)](_0x3ee986,_0x1316db){const _0x2f6ad2=_0x6c183;if(!this['_permissionService'][_0x2f6ad2(0x1b0)](_0x1316db))throw Error(_0x2f6ad2(0x1a3));let _0x599b25=He(_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db);if(_0x599b25[_0x2f6ad2(0x13c)]>0x0)throw Error(_0x2f6ad2(0x408)+_0x599b25[_0x2f6ad2(0x141)](_0x5ba3c1=>_0x5ba3c1['tableId']+'.'+_0x5ba3c1['fieldId'])['join'](',\x20')+').');this[_0x2f6ad2(0x219)](_0x3ee986,this['_factory'][_0x2f6ad2(0x283)](_0x3ee986[_0x2f6ad2(0x32f)](),_0x1316db));}[_0x6c183(0x20d)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c){const _0x51d6d7=_0x6c183;this['_apply'](_0x53822f,this[_0x51d6d7(0x357)](_0x53822f,_0x386f7e,_0x88d4bc,_0x37daff,_0x23d95c));}['setRecordValues'](_0x5ae247,_0x364500,_0x314aaf){const _0x3a9ea1=_0x6c183;this[_0x3a9ea1(0x219)](_0x5ae247,this[_0x3a9ea1(0x483)](_0x5ae247,_0x364500,_0x314aaf));}['createRecord'](_0x26d75a,_0x9f284d,_0x123c39){const _0x305840=_0x6c183;this[_0x305840(0x219)](_0x26d75a,this[_0x305840(0x467)](_0x26d75a,_0x9f284d,_0x123c39));}[_0x6c183(0x357)](_0x38ac95,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9){const _0xe8fa0c=_0x6c183;let _0x51cebb=_0x38ac95[_0xe8fa0c(0x32f)](),_0x458450=this[_0xe8fa0c(0x46c)](_0x51cebb,_0x3594d7,_0x3e67c2,_0x5bd0b8,_0x2665a9),_0x2e2a64=this['_withModifiedSystemValues'](_0x51cebb,_0x3594d7,_0x3e67c2,{[_0x5bd0b8]:_0x458450});return this['_factory'][_0xe8fa0c(0x3a6)](_0x51cebb,_0x3594d7,[_0x2e2a64]);}['createSetRecordValuesOp'](_0x5db2e9,_0x56523b,_0x309bec){const _0x5baf74=_0x6c183;let _0x51edd6=_0x5db2e9['getSnapshot'](),_0x49fc00=_0x309bec[_0x5baf74(0x141)](_0x2ff194=>this[_0x5baf74(0x157)](_0x51edd6,_0x56523b,_0x2ff194[_0x5baf74(0x347)],{...Object['fromEntries'](Object[_0x5baf74(0x279)](_0x2ff194[_0x5baf74(0x227)])[_0x5baf74(0x141)](([_0x332b38,_0x658f49])=>[_0x332b38,this[_0x5baf74(0x46c)](_0x51edd6,_0x56523b,_0x2ff194['recordId'],_0x332b38,_0x658f49)]))}));return this[_0x5baf74(0x4b8)][_0x5baf74(0x3a6)](_0x51edd6,_0x56523b,_0x49fc00);}['createCreateRecordOp'](_0x547e32,_0x481b00,_0x12acec){const _0x67f7b3=_0x6c183;if(!this['_permissionService'][_0x67f7b3(0x321)](_0x481b00))throw Error(_0x67f7b3(0x380));let _0x4e7d91=_0x547e32['getSnapshot'](),_0x36e262=this[_0x67f7b3(0x476)](_0x4e7d91[_0x67f7b3(0x298)][_0x481b00]);return this[_0x67f7b3(0x4b8)][_0x67f7b3(0x134)](_0x4e7d91,_0x481b00,this[_0x67f7b3(0x28b)](_0x4e7d91,_0x481b00,_0x12acec,_0x36e262));}[_0x6c183(0x3ec)](_0x4a9353,_0xa97848,_0x2e75fd){const _0x4f7f03=_0x6c183;if(!this['_permissionService'][_0x4f7f03(0x321)](_0xa97848))throw Error(_0x4f7f03(0x380));let _0x36e5cb=_0x4a9353['getSnapshot']();return I(_0x4f7f03(0x136),()=>{const _0x9bc0b2=_0x4f7f03;let _0x5191dc=this['_createNumberingAllocators'](_0x36e5cb['tables'][_0xa97848]);return this[_0x9bc0b2(0x4b8)]['createRecords'](_0x36e5cb,_0xa97848,_0x2e75fd[_0x9bc0b2(0x141)](_0x1420fe=>this[_0x9bc0b2(0x28b)](_0x36e5cb,_0xa97848,_0x1420fe,_0x5191dc)));},{'existingRecords':Object['keys'](_0x36e5cb['tables'][_0xa97848][_0x4f7f03(0x258)])[_0x4f7f03(0x13c)],'records':_0x2e75fd[_0x4f7f03(0x13c)]});}[_0x6c183(0x4b7)](_0x993ee6,_0x198101,_0x28dbaa,_0x3b8bb0,_0x29c464){const _0x45e083=_0x6c183;if(!this[_0x45e083(0x3ad)][_0x45e083(0x40b)](_0x198101))throw Error('[BaseCommandService]:\x20cannot\x20create\x20field.');let _0x41d926=_0x993ee6[_0x45e083(0x32f)]();if(this[_0x45e083(0x3c4)](_0x41d926,_0x28dbaa),_0x3b8bb0===0x0)throw Error(_0x45e083(0x242));let _0x50ee01=this['_factory'][_0x45e083(0x250)](_0x41d926,_0x198101,{'field':_0x28dbaa,'index':_0x3b8bb0,'viewIndexes':_0x29c464}),_0x3949d0=this['_createSystemFieldValuePatches'](_0x41d926,_0x198101,_0x28dbaa);if(!_0x3949d0[_0x45e083(0x13c)])return _0x50ee01;let _0x42473c=this[_0x45e083(0x37c)][_0x45e083(0x4c3)](_0x41d926,_0x50ee01);return R([_0x50ee01,this[_0x45e083(0x4b8)]['setRecordValues'](_0x42473c,_0x198101,_0x3949d0)]);}[_0x6c183(0x465)](_0x40b5b5,_0x53689a,_0xa33012){const _0x29ba38=_0x6c183;if(!this[_0x29ba38(0x3ad)][_0x29ba38(0x48b)](_0x53689a,_0xa33012))throw Error(_0x29ba38(0x203));this[_0x29ba38(0x219)](_0x40b5b5,this['_factory'][_0x29ba38(0x465)](_0x40b5b5[_0x29ba38(0x32f)](),_0x53689a,_0xa33012));}[_0x6c183(0x121)](_0x4f44bf,_0x1f02ee,_0x2cd70e,_0x3b0652){const _0x25c532=_0x6c183;if(!this['_permissionService']['canCreateRecord'](_0x1f02ee))throw Error(_0x25c532(0x380));this['_apply'](_0x4f44bf,this[_0x25c532(0x4b8)][_0x25c532(0x121)](_0x4f44bf[_0x25c532(0x32f)](),_0x1f02ee,_0x2cd70e,{..._0x3b0652,'values':{..._0x3b0652[_0x25c532(0x227)],[_0x5a35e2]:_0x3b0652['id']}}));}[_0x6c183(0x313)](_0x174459,_0x232ab0,_0x5d67a1,_0x561e46){const _0x1e2eda=_0x6c183;if(!this[_0x1e2eda(0x3ad)][_0x1e2eda(0x46a)](_0x232ab0,_0x5d67a1))throw Error(_0x1e2eda(0x189));this[_0x1e2eda(0x219)](_0x174459,this[_0x1e2eda(0x4b8)][_0x1e2eda(0x313)](_0x174459[_0x1e2eda(0x32f)](),_0x232ab0,_0x5d67a1,_0x561e46));}['createField'](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634){const _0x3c9c2b=_0x6c183;this['_apply'](_0x4900bb,this[_0x3c9c2b(0x4b7)](_0x4900bb,_0x70ccb8,_0xacc2eb,_0x367068,_0xb85634));}[_0x6c183(0x13b)](_0x4d6deb,_0x9e8bf8,_0x4e9ac0,_0x3c64a3){const _0x5bcff0=_0x6c183;var _0x4bfc56;if(!this['_permissionService'][_0x5bcff0(0x42c)](_0x9e8bf8,_0x4e9ac0))throw Error(_0x5bcff0(0x36d));let _0x329a1f=_0x4d6deb[_0x5bcff0(0x32f)](),_0x15fa55=(_0x4bfc56=_0x329a1f[_0x5bcff0(0x298)][_0x9e8bf8])==null?void 0x0:_0x4bfc56[_0x5bcff0(0x398)][_0x4e9ac0];if(!_0x15fa55||_0x4e9ac0===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x5bcff0(0x3c4)](_0x329a1f,{..._0x15fa55,..._0x3c64a3}),this['_apply'](_0x4d6deb,this[_0x5bcff0(0x4b8)][_0x5bcff0(0x13b)](_0x329a1f,_0x9e8bf8,_0x4e9ac0,_0x3c64a3));}[_0x6c183(0x3e5)](_0x1fc326,_0x47a379,_0x2d944d,_0x55146c){const _0x216cb2=_0x6c183;var _0x462e79;if(!this[_0x216cb2(0x3ad)][_0x216cb2(0x42c)](_0x47a379,_0x2d944d))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');let _0x387688=_0x1fc326[_0x216cb2(0x32f)](),_0x30e289=(_0x462e79=_0x387688[_0x216cb2(0x298)][_0x47a379])==null?void 0x0:_0x462e79[_0x216cb2(0x398)][_0x2d944d];if(!_0x30e289||_0x2d944d===_0x5a35e2)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0x216cb2(0x3c4)](_0x387688,{..._0x30e289,..._0x55146c}),this[_0x216cb2(0x219)](_0x1fc326,this[_0x216cb2(0x4b8)]['changeFieldType'](_0x387688,_0x47a379,_0x2d944d,_0x55146c));}[_0x6c183(0x2fb)](_0x22f112,_0x529b52,_0xe9978a){const _0x27875b=_0x6c183;var _0x15496e;if(((_0x15496e=_0x22f112['getSnapshot']()[_0x27875b(0x298)][_0x529b52])==null?void 0x0:_0x15496e[_0x27875b(0x3b2)])===_0xe9978a||_0xe9978a===_0x5a35e2)throw Error(_0x27875b(0x47d));if(!this['_permissionService'][_0x27875b(0x222)](_0x529b52,_0xe9978a))throw Error(_0x27875b(0x326));this[_0x27875b(0x219)](_0x22f112,this['_factory']['deleteField'](_0x22f112['getSnapshot'](),_0x529b52,_0xe9978a));}[_0x6c183(0x344)](_0x116560,_0x362ecd,_0x11e8c0,_0x3ed191){const _0x18e48f=_0x6c183;if(!this[_0x18e48f(0x3ad)]['canEditField'](_0x362ecd,_0x11e8c0))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20field.');if(_0x11e8c0===_0x5a35e2||_0x3ed191[_0x18e48f(0x33d)]===_0x5a35e2)throw Error(_0x18e48f(0x3df));this[_0x18e48f(0x219)](_0x116560,this[_0x18e48f(0x4b8)][_0x18e48f(0x344)](_0x116560[_0x18e48f(0x32f)](),_0x362ecd,_0x11e8c0,_0x3ed191));}[_0x6c183(0x2d7)](_0x4b3f94,_0x212c25,_0x2cdee0,_0x5c214e){const _0xbd898e=_0x6c183;if(!this[_0xbd898e(0x3ad)][_0xbd898e(0x3d2)](_0x212c25,_0x2cdee0['id']))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0xbd898e(0x219)](_0x4b3f94,this[_0xbd898e(0x4b8)][_0xbd898e(0x2d7)](_0x4b3f94[_0xbd898e(0x32f)](),_0x212c25,_0x2cdee0,_0x5c214e));}[_0x6c183(0x15f)](_0x42e872,_0x113eac,_0x1eb9ed,_0x4b7258){const _0x2c883b=_0x6c183;if(!this['_permissionService'][_0x2c883b(0x3d2)](_0x113eac,_0x1eb9ed))throw Error(_0x2c883b(0x3dd));this[_0x2c883b(0x219)](_0x42e872,this[_0x2c883b(0x4b8)][_0x2c883b(0x15f)](_0x42e872['getSnapshot'](),_0x113eac,_0x1eb9ed,_0x4b7258));}['deleteView'](_0x21aca3,_0x15f760,_0x7bfb63){const _0x1e1b3b=_0x6c183;if(!this['_permissionService']['canManageView'](_0x15f760,_0x7bfb63))throw Error(_0x1e1b3b(0x3dd));this[_0x1e1b3b(0x219)](_0x21aca3,this['_factory'][_0x1e1b3b(0x3f9)](_0x21aca3[_0x1e1b3b(0x32f)](),_0x15f760,_0x7bfb63));}[_0x6c183(0x308)](_0x23620f,_0xa0041e,_0x668f54,_0x4d7837){const _0x5632b9=_0x6c183;if(!this['_permissionService'][_0x5632b9(0x3d2)](_0xa0041e,_0x668f54))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5632b9(0x219)](_0x23620f,this[_0x5632b9(0x4b8)][_0x5632b9(0x308)](_0x23620f[_0x5632b9(0x32f)](),_0xa0041e,_0x668f54,_0x4d7837));}[_0x6c183(0x2cf)](_0x305860,_0x4d4b78,_0x5cb4fb,_0x2fd56a){const _0x5c7e69=_0x6c183;if(!this[_0x5c7e69(0x3ad)]['canManageView'](_0x4d4b78,_0x5cb4fb))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x5c7e69(0x219)](_0x305860,this[_0x5c7e69(0x4b8)][_0x5c7e69(0x2cf)](_0x305860[_0x5c7e69(0x32f)](),_0x4d4b78,_0x5cb4fb,_0x2fd56a));}[_0x6c183(0x16e)](_0x21fd9a,_0x3c68e6,_0x2c7b8f,_0x98ef70){const _0x2629ea=_0x6c183;if(!this[_0x2629ea(0x3ad)]['canManageView'](_0x3c68e6,_0x2c7b8f))throw Error(_0x2629ea(0x3dd));this[_0x2629ea(0x219)](_0x21fd9a,this['_factory'][_0x2629ea(0x16e)](_0x21fd9a[_0x2629ea(0x32f)](),_0x3c68e6,_0x2c7b8f,_0x98ef70));}[_0x6c183(0x23d)](_0x7dd152,_0xb0ffe3,_0x2649e5,_0x4aa382){const _0x200caa=_0x6c183;if(!this[_0x200caa(0x3ad)][_0x200caa(0x3d2)](_0xb0ffe3,_0x2649e5))throw Error(_0x200caa(0x3dd));this[_0x200caa(0x219)](_0x7dd152,this['_factory'][_0x200caa(0x23d)](_0x7dd152[_0x200caa(0x32f)](),_0xb0ffe3,_0x2649e5,_0x4aa382));}[_0x6c183(0x417)](_0x1ced79,_0x1eddbc,_0x2d332c,_0x5ec751){const _0x194989=_0x6c183;if(!this['_permissionService'][_0x194989(0x3d2)](_0x1eddbc,_0x2d332c))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x194989(0x219)](_0x1ced79,this[_0x194989(0x4b8)][_0x194989(0x417)](_0x1ced79['getSnapshot'](),_0x1eddbc,_0x2d332c,_0x5ec751));}[_0x6c183(0x18c)](_0x947a4c,_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66){const _0x30815f=_0x6c183;if(!this['_permissionService'][_0x30815f(0x3d2)](_0x38cd59,_0x468f2f))throw Error(_0x30815f(0x3dd));this['_apply'](_0x947a4c,this['_factory'][_0x30815f(0x18c)](_0x947a4c[_0x30815f(0x32f)](),_0x38cd59,_0x468f2f,_0x2e3324,_0xd7af66));}[_0x6c183(0x15e)](_0x183c4d,_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892){const _0x473afb=_0x6c183;if(!this[_0x473afb(0x3ad)][_0x473afb(0x3d2)](_0x734d86,_0x11da5a))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x473afb(0x219)](_0x183c4d,this['_factory']['setViewFieldWidth'](_0x183c4d['getSnapshot'](),_0x734d86,_0x11da5a,_0x5bd4b9,_0x528892));}[_0x6c183(0x22a)](_0x6985f,_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347){const _0x568d0d=_0x6c183;if(!this[_0x568d0d(0x3ad)][_0x568d0d(0x3d2)](_0x4ad678,_0x5c3d02))throw Error(_0x568d0d(0x3dd));this[_0x568d0d(0x219)](_0x6985f,this['_factory'][_0x568d0d(0x22a)](_0x6985f[_0x568d0d(0x32f)](),_0x4ad678,_0x5c3d02,_0x5c85e6,_0x5bf347));}['_apply'](_0x416321,_0xdd84f0){const _0x233008=_0x6c183;let _0x15532e=_0x416321['getSnapshot']();_0x416321[_0x233008(0x2ab)](this['_applier'][_0x233008(0x4c3)](_0x15532e,_0xdd84f0));}[_0x6c183(0x28b)](_0x557be5,_0x391119,_0x12cf4c,_0x18de9a=this[_0x6c183(0x476)](_0x557be5[_0x6c183(0x298)][_0x391119])){const _0x34d246=_0x6c183;let _0x3325b8=_0x557be5['tables'][_0x391119],_0x177a8e=_0x12cf4c[_0x34d246(0x329)]??_0x12cf4c[_0x34d246(0x1e6)]??this[_0x34d246(0x25e)](),_0xdcd66d={..._0x12cf4c,'createdBy':_0x12cf4c[_0x34d246(0x329)]??_0x177a8e,'updatedBy':_0x12cf4c[_0x34d246(0x1e6)]??_0x177a8e,'values':{..._0x12cf4c[_0x34d246(0x227)]}};return _0xdcd66d[_0x34d246(0x227)][_0x5a35e2]=_0xdcd66d['id'],_0x3325b8[_0x34d246(0x3b5)][_0x34d246(0x2e0)](_0x10fbaa=>{const _0x317972=_0x34d246;let _0x59d393=_0x3325b8[_0x317972(0x398)][_0x10fbaa];if(_0x59d393&&_0xdcd66d['values'][_0x10fbaa]===void 0x0)switch(_0x59d393['type']){case _0x3a044b[_0x317972(0x284)]:var _0x27f8de;_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=((_0x27f8de=_0x18de9a[_0x317972(0x43e)](_0x10fbaa))==null?void 0x0:_0x27f8de())??this['_createNumberingAllocator'](_0x3325b8,_0x10fbaa)();break;case _0x3a044b[_0x317972(0x28d)]:_0xdcd66d['createdBy']&&(_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=_0xdcd66d[_0x317972(0x329)]);break;case _0x3a044b['UpdatedBy']:_0xdcd66d['updatedBy']&&(_0xdcd66d['values'][_0x10fbaa]=_0xdcd66d[_0x317972(0x1e6)]);break;case _0x3a044b['CreatedAt']:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d[_0x317972(0x1c8)]);break;case _0x3a044b[_0x317972(0x1fa)]:_0xdcd66d[_0x317972(0x227)][_0x10fbaa]=B(_0xdcd66d['updatedAt']);break;default:{let _0x52640f=_0x59d393[_0x317972(0x15a)];_0x52640f!=null&&_0x52640f!==''&&!(Array['isArray'](_0x52640f)&&_0x52640f[_0x317972(0x13c)]===0x0)&&(_0xdcd66d['values'][_0x10fbaa]=_0x52640f);}}}),_0xdcd66d;}[_0x6c183(0x157)](_0x5b8186,_0x30f4c2,_0x2a6d52,_0x45f002){const _0x17e6a1=_0x6c183;var _0x558c73,_0x5b62c8;let _0x1a6eb0=_0x5b8186[_0x17e6a1(0x298)][_0x30f4c2],_0x1d211b=((_0x558c73=(_0x5b62c8=this[_0x17e6a1(0x2d3)])['now'])==null?void 0x0:_0x558c73['call'](_0x5b62c8))??Date[_0x17e6a1(0x2a4)](),_0x52ff9e=this[_0x17e6a1(0x25e)](),_0x5db16d={..._0x45f002};return _0x1a6eb0['fieldOrder']['forEach'](_0x267c5a=>{const _0x24dbec=_0x17e6a1;let _0x4325ee=_0x1a6eb0['fields'][_0x267c5a];_0x4325ee&&(_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedAt']&&(_0x5db16d[_0x267c5a]=B(_0x1d211b)),_0x4325ee[_0x24dbec(0x20b)]===_0x3a044b['UpdatedBy']&&_0x52ff9e&&(_0x5db16d[_0x267c5a]=_0x52ff9e));}),{'recordId':_0x2a6d52,'values':_0x5db16d,'recordPatch':{'updatedAt':_0x1d211b,..._0x52ff9e?{'updatedBy':_0x52ff9e}:{}}};}[_0x6c183(0x3c1)](_0x5a84bc,_0x3e101a,_0x215de1){const _0x5a1b0a=_0x6c183;let _0xb31436=_0x5a84bc['tables'][_0x3e101a];return!_0xb31436||!Yr(_0x215de1)?[]:_0x215de1[_0x5a1b0a(0x20b)]===_0x3a044b[_0x5a1b0a(0x284)]?this['_createNumberingFieldValuePatches'](_0xb31436,_0x215de1['id']):Object[_0x5a1b0a(0x227)](_0xb31436[_0x5a1b0a(0x258)])['flatMap'](_0x3b3e23=>{const _0x21431d=_0x5a1b0a;let _0x4607a4=this[_0x21431d(0x410)](_0x215de1,_0x3b3e23);return _0x4607a4===void 0x0?[]:[{'recordId':_0x3b3e23['id'],'values':{[_0x215de1['id']]:_0x4607a4}}];});}[_0x6c183(0x410)](_0x57daee,_0x3d02b8){const _0x15c995=_0x6c183;switch(_0x57daee['type']){case _0x3a044b[_0x15c995(0x28d)]:return _0x3d02b8['createdBy']??this['_getCurrentUserId']();case _0x3a044b['UpdatedBy']:return _0x3d02b8[_0x15c995(0x1e6)]??this['_getCurrentUserId']();case _0x3a044b[_0x15c995(0x332)]:return B(_0x3d02b8[_0x15c995(0x1c8)]??Date[_0x15c995(0x2a4)]());case _0x3a044b[_0x15c995(0x1fa)]:return B(_0x3d02b8[_0x15c995(0x45d)]??Date[_0x15c995(0x2a4)]());default:return;}}['_createNumberingAllocators'](_0x368319){const _0x207d3c=_0x6c183;let _0x22bf77=new Map();return _0x368319&&_0x368319['fieldOrder'][_0x207d3c(0x2e0)](_0x3611ce=>{const _0x1d3645=_0x207d3c;let _0x41b624=_0x368319[_0x1d3645(0x398)][_0x3611ce];(_0x41b624==null?void 0x0:_0x41b624[_0x1d3645(0x20b)])===_0x3a044b[_0x1d3645(0x284)]&&_0x22bf77[_0x1d3645(0x49e)](_0x3611ce,this[_0x1d3645(0x18f)](_0x368319,_0x3611ce));}),_0x22bf77;}[_0x6c183(0x18f)](_0x7015d7,_0x500f3d){const _0x4fa6ff=_0x6c183;let _0x5b6c7c=Object['values'](_0x7015d7[_0x4fa6ff(0x258)])[_0x4fa6ff(0x34f)]((_0x152557,_0x3b7f70)=>{const _0x4d225b=_0x4fa6ff;let _0x2d039c=Number(_0x3b7f70['values'][_0x500f3d]);return Number[_0x4d225b(0x143)](_0x2d039c)?Math['max'](_0x152557,_0x2d039c):_0x152557;},0x0);return()=>String(++_0x5b6c7c);}[_0x6c183(0x333)](_0x1d98ed,_0x1b27a9){const _0x3a516e=_0x6c183;let _0x452393=this[_0x3a516e(0x48c)](_0x1d98ed),_0x383403=this['_createNumberingAllocator'](_0x1d98ed,_0x1b27a9);return _0x452393[_0x3a516e(0x17a)](_0x185f31=>this['_isNonEmptyCellValue'](_0x185f31[_0x3a516e(0x227)][_0x1b27a9])?[]:[{'recordId':_0x185f31['id'],'values':{[_0x1b27a9]:_0x383403()}}]);}[_0x6c183(0x48c)](_0x1074e4){const _0x4afa9a=_0x6c183;var _0xf6b2d9;let _0x27be9c=Object[_0x4afa9a(0x227)](_0x1074e4[_0x4afa9a(0x258)]),_0x6cfa66=new Map(_0x27be9c[_0x4afa9a(0x141)](_0x316a57=>[_0x316a57['id'],_0x316a57])),_0xbb43cf=[],_0x3836fa=new Set();(_0xf6b2d9=_0x1074e4[_0x4afa9a(0x1e7)])==null||_0xf6b2d9['forEach'](_0x2bcd4f=>{const _0x50ea18=_0x4afa9a;let _0x304b41=_0x6cfa66[_0x50ea18(0x43e)](_0x2bcd4f);_0x304b41&&(_0xbb43cf['push'](_0x304b41),_0x3836fa['add'](_0x2bcd4f));});let _0x163f9e=_0x27be9c['filter'](_0x557817=>!_0x3836fa[_0x4afa9a(0x34b)](_0x557817['id']))[_0x4afa9a(0x277)]((_0x1f9e43,_0x5b55a8)=>String(_0x1f9e43['orderKey']??_0x1f9e43['id'])['localeCompare'](String(_0x5b55a8['orderKey']??_0x5b55a8['id']))||_0x1f9e43['id'][_0x4afa9a(0x37a)](_0x5b55a8['id']));return[..._0xbb43cf,..._0x163f9e];}['_isNonEmptyCellValue'](_0x3359a0){const _0x3052f7=_0x6c183;return _0x3359a0!=null&&_0x3359a0!==''&&!(Array[_0x3052f7(0x431)](_0x3359a0)&&_0x3359a0[_0x3052f7(0x13c)]===0x0);}[_0x6c183(0x25e)](){const _0x5c0b51=_0x6c183;var _0x508e16,_0xfbd1d6,_0x196dff,_0x21e3c5;return((_0x508e16=(_0xfbd1d6=this['_runtimeContext'])[_0x5c0b51(0x419)])==null?void 0x0:_0x508e16[_0x5c0b51(0x43b)](_0xfbd1d6))??((_0x196dff=(_0x21e3c5=this[_0x5c0b51(0x2d3)])[_0x5c0b51(0x216)])==null||(_0x196dff=_0x196dff[_0x5c0b51(0x43b)](_0x21e3c5))==null?void 0x0:_0x196dff['userID'])??void 0x0;}['_normalizeCellValue'](_0x818c6e,_0x2e72ed,_0x40f78c,_0x48c5a4,_0x5cf3d7){const _0x22706b=_0x6c183;var _0x4467f1;if(!this['_permissionService']['canEditCell'](_0x2e72ed,_0x40f78c,_0x48c5a4))throw Error(_0x22706b(0x2ad));let _0x317dea=(_0x4467f1=_0x818c6e[_0x22706b(0x298)][_0x2e72ed])==null?void 0x0:_0x4467f1[_0x22706b(0x398)][_0x48c5a4];if(!_0x317dea)throw Error(_0x22706b(0x23a)+_0x48c5a4+_0x22706b(0x2bf));let _0x30c07d=this[_0x22706b(0x287)][_0x22706b(0x43e)](_0x317dea[_0x22706b(0x20b)]);if(_0x317dea[_0x22706b(0x3a9)]||_0x317dea['system']||!_0x30c07d[_0x22706b(0x2fd)](_0x317dea)['editable'])throw Error(_0x22706b(0x436));let _0x2589bf=_0x30c07d[_0x22706b(0x188)](_0x5cf3d7,_0x317dea),_0x35f7b9=_0x30c07d[_0x22706b(0x1a8)](_0x2589bf,_0x317dea);if(!_0x35f7b9[_0x22706b(0x26e)])throw Error(_0x35f7b9[_0x22706b(0x28a)]??_0x22706b(0x2f4));let _0x2d74c7=_0x317dea[_0x22706b(0x20b)]===_0x3a044b['RecordLink']?Ve(_0x818c6e,_0x317dea,_0x2589bf):{'valid':!0x0};if(!_0x2d74c7[_0x22706b(0x26e)])throw Error(_0x2d74c7['reason']??_0x22706b(0x14b));return _0x2589bf;}[_0x6c183(0x3c4)](_0x4c70ca,_0x5d9039){const _0x55913=_0x6c183;if(_0x5d9039['id']===_0x5a35e2||_0x5d9039[_0x55913(0x20b)]===_0x3a044b[_0x55913(0x22f)]||_0x771c24(_0x5d9039[_0x55913(0x2a3)]))throw Error(_0x55913(0x28f));let _0x1994ed=Be(_0x4c70ca,_0x5d9039);if(!_0x1994ed[_0x55913(0x26e)])throw Error(_0x1994ed['reason']??_0x55913(0x26d));}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0x36cf5f=_0x6c183;let _0xe99094=new hr();return zn()[_0x36cf5f(0x2e0)](_0x4965dd=>_0xe99094['register'](_0x4965dd)),_0xe99094;}function Yr(_0x31e6d3){const _0x58cfd7=_0x6c183;return _0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['Numbering']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x28d)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b['UpdatedBy']||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x332)]||_0x31e6d3[_0x58cfd7(0x20b)]===_0x3a044b[_0x58cfd7(0x1fa)];}const Xr=new Set([_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)],_0x3a044b[_0x6c183(0x233)]]);function Zr(_0x51cd11){const _0x4540aa=_0x6c183;let _0x41df88=_0x51cd11[_0x4540aa(0x398)][_0x51cd11[_0x4540aa(0x3b2)]];if((!_0x41df88||_0x41df88[_0x4540aa(0x3cf)]!==!0x0&&_0x41df88['id'][_0x4540aa(0x432)]()!=='id'&&_0x41df88[_0x4540aa(0x2a3)][_0x4540aa(0x226)]()[_0x4540aa(0x432)]()!=='id')&&_0x41df88)return _0x41df88['id'];for(let _0x562969 of _0x51cd11[_0x4540aa(0x3b5)]){let _0x4003cb=_0x51cd11['fields'][_0x562969];if(_0x4003cb&&_0x4003cb['id']!==_0x51cd11[_0x4540aa(0x3b2)]&&_0x4003cb['system']!==!0x0&&_0x4003cb[_0x4540aa(0x20b)]!==_0x3a044b[_0x4540aa(0x22f)])return _0x4003cb['id'];}return _0x51cd11[_0x4540aa(0x3b2)];}function Qr(_0x1e098d,_0x2305aa=[],_0x5ddb7b=0x5){const _0x40a992=_0x6c183;let _0x1c8e11=new Set(_0x2305aa[_0x40a992(0x2be)](_0x2bef4e=>!!_0x2bef4e)),_0x3209f2=[],_0x5512ce=[];for(let _0x129384 of _0x1e098d['fieldOrder']){let _0x1f55af=_0x1e098d['fields'][_0x129384];_0x1f55af&&_0x1f55af['system']!==!0x0&&_0x1f55af['type']!==_0x3a044b[_0x40a992(0x22f)]&&!_0x1c8e11[_0x40a992(0x34b)](_0x1f55af['id'])&&(Xr['has'](_0x1f55af[_0x40a992(0x20b)])?_0x3209f2:_0x5512ce)[_0x40a992(0x174)](_0x1f55af['id']);}return[..._0x3209f2,..._0x5512ce][_0x40a992(0x12c)](0x0,_0x5ddb7b);}function $r(){const _0x68a9cb=_0x6c183;return[{'type':_0x3ece31[_0x68a9cb(0x161)],'i18nKey':_0x68a9cb(0x33b),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x3ece31[_0x68a9cb(0x43c)],'i18nKey':_0x68a9cb(0x485),'createDefaultConfig':_0x454eaf=>{const _0x4b357b=_0x68a9cb;let _0x538291=ei(_0x454eaf);return{'groupFieldId':_0x538291,'coverFieldId':null,'cardLayout':'normal','showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x454eaf[_0x4b357b(0x3b2)],'fieldIds':Qr(_0x454eaf,[_0x454eaf[_0x4b357b(0x3b2)],_0x538291])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x110cb6=_0x68a9cb;throw Error(_0x110cb6(0x28e));}},{'type':_0x3ece31[_0x68a9cb(0x208)],'i18nKey':_0x68a9cb(0x24d),'createDefaultConfig':_0x532c7d=>{const _0x2054f4=_0x68a9cb;let _0x559ffb=ti(_0x532c7d);return{'startDateFieldId':_0x559ffb,'endDateFieldId':ni(_0x532c7d,_0x559ffb),'titleFieldId':_0x532c7d['primaryFieldId'],'mode':_0x2054f4(0x43d),'timeslotSize':_0x2054f4(0x1a7),'timeZone':_0x2054f4(0x231),'displayColor':{'type':'custom','color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x227358=_0x68a9cb;throw Error(_0x227358(0x214));}},{'type':_0x3ece31[_0x68a9cb(0x1cf)],'i18nKey':_0x68a9cb(0x418),'createDefaultConfig':_0x4fa132=>{const _0x255e98=_0x68a9cb;let _0xac5ebb=ti(_0x4fa132);return{'startDateFieldId':_0xac5ebb,'endDateFieldId':ni(_0x4fa132,_0xac5ebb)??_0xac5ebb,'titleFieldId':_0x4fa132['primaryFieldId'],'scale':_0x255e98(0x43d),'showTodayLine':!0x0,'displayColor':{'type':_0x255e98(0x446),'color':'#14b8a6'},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x232b47=_0x68a9cb;throw Error(_0x232b47(0x137));}},{'type':_0x3ece31['Gallery'],'i18nKey':'base.viewType.gallery','createDefaultConfig':_0x569b5c=>{const _0x33df61=_0x68a9cb;let _0x54b54d=Zr(_0x569b5c);return{'coverFieldId':null,'cardLayout':_0x33df61(0x339),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x54b54d,'coverFieldId':null,'fieldIds':Qr(_0x569b5c,[_0x54b54d,_0x569b5c[_0x33df61(0x3b2)]])},'cardSize':_0x33df61(0x1a7)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x566818=_0x68a9cb;throw Error(_0x566818(0x441));}}];}function ei(_0x590908){const _0x5908e4=_0x6c183;var _0x1e449e,_0x208d39,_0x1611df;let _0x12d44b=_0x590908[_0x5908e4(0x3b5)][_0x5908e4(0x141)](_0x890bbb=>_0x590908[_0x5908e4(0x398)][_0x890bbb])['filter'](_0x8737a2=>!!_0x8737a2);return((_0x1e449e=_0x12d44b[_0x5908e4(0x392)](_0x3b7e57=>_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x20e)]||_0x3b7e57[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x386)]||_0x3b7e57['type']===_0x3a044b[_0x5908e4(0x1ad)]))==null?void 0x0:_0x1e449e['id'])??((_0x208d39=_0x12d44b[_0x5908e4(0x392)](_0x18bd05=>_0x18bd05[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x315)]))==null?void 0x0:_0x208d39['id'])??((_0x1611df=_0x12d44b[_0x5908e4(0x392)](_0x2706aa=>_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x346)]||_0x2706aa['type']===_0x3a044b[_0x5908e4(0x332)]||_0x2706aa[_0x5908e4(0x20b)]===_0x3a044b[_0x5908e4(0x1fa)]))==null?void 0x0:_0x1611df['id'])??_0x590908[_0x5908e4(0x3b2)];}function ti(_0x3bf4f1){const _0x35b602=_0x6c183;var _0x788bb4;return((_0x788bb4=_0x3bf4f1[_0x35b602(0x3b5)]['map'](_0x2855cb=>_0x3bf4f1[_0x35b602(0x398)][_0x2855cb])[_0x35b602(0x392)](ri))==null?void 0x0:_0x788bb4['id'])??'';}function ni(_0x433493,_0x4cdb69){const _0x54d4d3=_0x6c183;var _0x2b8295;return(_0x2b8295=_0x433493[_0x54d4d3(0x3b5)]['map'](_0x134393=>_0x433493[_0x54d4d3(0x398)][_0x134393])[_0x54d4d3(0x392)](_0x3da117=>ri(_0x3da117)&&_0x3da117['id']!==_0x4cdb69))==null?void 0x0:_0x2b8295['id'];}function ri(_0x55b933){const _0x3d13ae=_0x6c183;return!!_0x55b933&&_0x55b933[_0x3d13ae(0x20b)]===_0x3a044b[_0x3d13ae(0x346)]&&_0x55b933[_0x3d13ae(0x3a9)]!==!0x0&&_0x55b933[_0x3d13ae(0x3cf)]!==!0x0;}const ii=_0x2e8f64('base.projection.service'),ai=new Set([_0x3a044b[_0x6c183(0x2f5)],_0x3a044b[_0x6c183(0x14d)],_0x3a044b[_0x6c183(0x140)],_0x3a044b['Rating'],_0x3a044b[_0x6c183(0x346)],_0x3a044b[_0x6c183(0x332)],_0x3a044b[_0x6c183(0x1fa)],_0x3a044b[_0x6c183(0x233)]]),oi=0x5265c00;let si=class extends _0x3b0b2d{constructor(_0x2f73fb){const _0x5774d8=_0x6c183;super(),this[_0x5774d8(0x287)]=_0x2f73fb,G(this,_0x5774d8(0x156),new Map()),G(this,_0x5774d8(0x38e),new WeakMap()),G(this,_0x5774d8(0x484),new Map()),G(this,_0x5774d8(0x2c6),new Map()),G(this,_0x5774d8(0x14f),new Map()),G(this,'_hierarchyIndexCache',new Map()),G(this,_0x5774d8(0x191),0x0),G(this,_0x5774d8(0x354),new Map()),G(this,_0x5774d8(0x13a),new Map()),G(this,'_cellInvalidations',new Map()),G(this,'_viewRevisions',new Map());}['registerView'](_0x4f3c1c){const _0x298bb3=_0x6c183;return this[_0x298bb3(0x156)][_0x298bb3(0x49e)](_0x4f3c1c[_0x298bb3(0x20b)],_0x4f3c1c),_0x1827e4(()=>this[_0x298bb3(0x156)][_0x298bb3(0x2fc)](_0x4f3c1c[_0x298bb3(0x20b)]));}[_0x6c183(0x249)](_0x3c8c71,_0x4f2f75,_0x583238){const _0x27ee08=_0x6c183;var _0x576867,_0x43a285,_0x331d1d;return I(_0x27ee08(0x498),()=>{const _0x2d84ff=_0x27ee08;let _0x4ba8a7=this[_0x2d84ff(0x372)](_0x3c8c71,_0x4f2f75,_0x583238);if(_0x4ba8a7)return _0x4ba8a7;let _0x5a914c=_0x3c8c71[_0x2d84ff(0x298)][_0x4f2f75],_0x4a46db=_0x5a914c==null?void 0x0:_0x5a914c['views'][_0x583238];if(!_0x5a914c||!_0x4a46db)return this['_setCachedProjection'](_0x3c8c71,_0x4f2f75,_0x583238,{'type':_0x2d84ff(0x3a3),'viewType':(_0x4a46db==null?void 0x0:_0x4a46db['type'])??_0x3ece31['Grid'],'reason':_0x2d84ff(0x292)});let _0x39a6cd;switch(_0x4a46db[_0x2d84ff(0x20b)]){case _0x3ece31['Grid']:_0x39a6cd=this[_0x2d84ff(0x456)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x1cf)]:_0x39a6cd=this[_0x2d84ff(0x2f6)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x43c)]:_0x39a6cd=this[_0x2d84ff(0x371)](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x208)]:_0x39a6cd=this['_buildCalendar'](_0x5a914c,_0x4a46db);break;case _0x3ece31[_0x2d84ff(0x434)]:_0x39a6cd=this[_0x2d84ff(0x36c)](_0x5a914c,_0x4a46db);break;default:_0x39a6cd={'type':_0x2d84ff(0x3a3),'viewType':_0x4a46db[_0x2d84ff(0x20b)],'reason':_0x2d84ff(0x292)};}return this[_0x2d84ff(0x1f8)](_0x3c8c71,_0x4f2f75,_0x583238,_0x39a6cd);},{'tableId':_0x4f2f75,'viewId':_0x583238,'viewType':(_0x576867=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x576867=_0x576867[_0x27ee08(0x362)][_0x583238])==null?void 0x0:_0x576867[_0x27ee08(0x20b)],'records':((_0x43a285=_0x3c8c71[_0x27ee08(0x298)][_0x4f2f75])==null||(_0x43a285=_0x43a285[_0x27ee08(0x1e7)])==null?void 0x0:_0x43a285[_0x27ee08(0x13c)])??Object['keys'](((_0x331d1d=_0x3c8c71['tables'][_0x4f2f75])==null?void 0x0:_0x331d1d['records'])??{})['length']});}[_0x6c183(0x1e0)](_0x4b0283,_0x4f7891,_0x3074ed){const _0x94263=_0x6c183;var _0x352b8c,_0x4935a2,_0x32a793;let _0x1e7f3a=_0x4b0283[_0x94263(0x298)][_0x4f7891],_0x5e6316=_0x1e7f3a==null?void 0x0:_0x1e7f3a[_0x94263(0x362)][_0x3074ed];if(!_0x1e7f3a||!_0x5e6316)throw Error(_0x94263(0x44f)+_0x3074ed+'\x22.');let _0xb2dce6=_0x4555ab=>!!_0x1e7f3a[_0x94263(0x398)][_0x4555ab],_0x54fdda={..._0x5e6316,'filter':_0x5e6316['filter']?{..._0x5e6316[_0x94263(0x2be)],'conditions':_0x5e6316['filter'][_0x94263(0x396)][_0x94263(0x2be)](_0x506c42=>_0xb2dce6(_0x506c42[_0x94263(0x2b0)]))}:_0x5e6316[_0x94263(0x2be)],'sort':(_0x352b8c=_0x5e6316['sort'])==null?void 0x0:_0x352b8c[_0x94263(0x2be)](_0xb1ed58=>_0xb2dce6(_0xb1ed58[_0x94263(0x2b0)])),'group':(_0x4935a2=_0x5e6316[_0x94263(0x1f2)])==null?void 0x0:_0x4935a2[_0x94263(0x2be)](_0x14a31e=>_0xb2dce6(_0x14a31e['fieldId'])),'fieldOrder':(_0x32a793=_0x5e6316[_0x94263(0x3b5)])==null?void 0x0:_0x32a793[_0x94263(0x2be)](_0xb2dce6),'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x5e6316[_0x94263(0x48f)]??{})['filter'](([_0x4c5f7f])=>_0xb2dce6(_0x4c5f7f)))};if(_0x54fdda[_0x94263(0x20b)]===_0x94263(0x4a6)){var _0x393350;let _0x3d8109=_0x54fdda['config']??{},_0x174484=this['_resolveKanbanGroupFieldId'](_0x1e7f3a,_0x54fdda),_0x236021=this[_0x94263(0x3f4)](_0x1e7f3a,(_0x393350=_0x3d8109['card'])==null?void 0x0:_0x393350[_0x94263(0x1ba)]);_0x54fdda[_0x94263(0x2ba)]={..._0x3d8109,'groupFieldId':_0x174484??_0x3d8109[_0x94263(0x426)],'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x1e7f3a,_0x3d8109),'cardLayout':_0x3d8109['cardLayout']==='compose'?_0x94263(0x2a2):_0x94263(0x339),'showFieldNames':_0x3d8109[_0x94263(0x15d)]!==!0x1,'fieldSettings':Object[_0x94263(0x176)](Object[_0x94263(0x279)](_0x3d8109[_0x94263(0x48f)]??{})[_0x94263(0x2be)](([_0x199500])=>_0xb2dce6(_0x199500))),'columnSettings':_0x3d8109[_0x94263(0x15c)]??{},'card':{..._0x3d8109[_0x94263(0x39b)]??{},'titleFieldId':_0x236021,'fieldIds':this[_0x94263(0x3c2)](_0x1e7f3a,_0x54fdda,_0x174484??'',_0x236021)}};}return{'repaired':JSON['stringify'](_0x54fdda)!==JSON[_0x94263(0x25f)](_0x5e6316),'view':_0x54fdda};}[_0x6c183(0x3c7)](){const _0x171181=_0x6c183;this[_0x171181(0x191)]++;}[_0x6c183(0x1a1)](_0x3c1d3f,_0xa9014f,_0x194a37){const _0x248d88=_0x6c183;let _0x2a59da=this['_getCellRevision'](_0x3c1d3f)+0x1;this[_0x248d88(0x13a)][_0x248d88(0x49e)](_0x3c1d3f,_0x2a59da);let _0x23fd41=this['_cellInvalidations'][_0x248d88(0x43e)](_0x3c1d3f)??[];_0x23fd41[_0x248d88(0x174)]({'revision':_0x2a59da,'recordId':_0xa9014f,'fieldId':_0x194a37}),this[_0x248d88(0x40c)][_0x248d88(0x49e)](_0x3c1d3f,_0x23fd41);}[_0x6c183(0x3d4)](_0x34178a,_0x5e05cf){const _0xf8d521=_0x6c183;this[_0xf8d521(0x3aa)](_0x34178a);}[_0x6c183(0x132)](_0x511322,_0x3f8c03){const _0x11bafb=_0x6c183;this[_0x11bafb(0x3e4)][_0x11bafb(0x49e)](this['_viewRevisionKey'](_0x511322,_0x3f8c03),this[_0x11bafb(0x193)](_0x511322,_0x3f8c03)+0x1);}[_0x6c183(0x372)](_0x4156b0,_0x5858b7,_0x69d8b1){const _0x5a7828=_0x6c183;var _0x6398c4;let _0x37f259=(_0x6398c4=this[_0x5a7828(0x38e)]['get'](_0x4156b0))==null?void 0x0:_0x6398c4[_0x5a7828(0x43e)](this['_cacheKey'](_0x5858b7,_0x69d8b1));return _0x37f259&&_0x37f259[_0x5a7828(0x2dd)]===this[_0x5a7828(0x191)]&&_0x37f259[_0x5a7828(0x291)]===this['_getTableRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x21d)]===this['_getCellRevision'](_0x5858b7)&&_0x37f259[_0x5a7828(0x1ee)]===this[_0x5a7828(0x193)](_0x5858b7,_0x69d8b1)?_0x37f259[_0x5a7828(0x257)]:null;}[_0x6c183(0x1f8)](_0x3ba26d,_0x41d421,_0x56da27,_0x197b73){const _0x187d5f=_0x6c183;let _0x84b808=this['_projectionCache'][_0x187d5f(0x43e)](_0x3ba26d);return _0x84b808||(_0x84b808=new Map(),this[_0x187d5f(0x38e)][_0x187d5f(0x49e)](_0x3ba26d,_0x84b808)),_0x84b808['set'](this['_cacheKey'](_0x41d421,_0x56da27),{'projection':_0x197b73,'globalRevision':this[_0x187d5f(0x191)],'tableRevision':this['_getTableRevision'](_0x41d421),'cellRevision':this[_0x187d5f(0x42b)](_0x41d421),'viewRevision':this[_0x187d5f(0x193)](_0x41d421,_0x56da27)}),_0x197b73;}[_0x6c183(0x3aa)](_0x57c454){const _0x521cc2=_0x6c183;this[_0x521cc2(0x354)][_0x521cc2(0x49e)](_0x57c454,this[_0x521cc2(0x353)](_0x57c454)+0x1);}[_0x6c183(0x353)](_0x18f67f){const _0x5bbc87=_0x6c183;return this[_0x5bbc87(0x354)][_0x5bbc87(0x43e)](_0x18f67f)??0x0;}[_0x6c183(0x42b)](_0x4e0237){const _0x74665a=_0x6c183;return this[_0x74665a(0x13a)][_0x74665a(0x43e)](_0x4e0237)??0x0;}[_0x6c183(0x193)](_0x509507,_0x2182c1){const _0x172853=_0x6c183;return this[_0x172853(0x3e4)][_0x172853(0x43e)](this['_viewRevisionKey'](_0x509507,_0x2182c1))??0x0;}[_0x6c183(0x2cd)](_0x32c07d,_0x3ce7f4){return _0x32c07d+'\x00'+_0x3ce7f4;}[_0x6c183(0x312)](_0x1ec138,_0x513e95){const _0x2925e4=_0x6c183;return _0x1ec138+'\x00'+this[_0x2925e4(0x35f)](_0x513e95);}[_0x6c183(0x3d5)](_0x1505ca,_0xcb197b,_0x518fe7){const _0x509415=_0x6c183;return _0x1505ca+'\x00'+this['_rowTransformCacheSegment'](_0xcb197b)+'\x00'+this[_0x509415(0x1c1)](_0x518fe7);}[_0x6c183(0x35f)](_0x41cab4){const _0x5dcba9=_0x6c183;return _0x41cab4?mi({'filter':di(_0x41cab4[_0x5dcba9(0x2be)]),'sort':pi(_0x41cab4[_0x5dcba9(0x277)])}):'__all__';}['_groupConfigCacheSegment'](_0x54a815){const _0x54121b=_0x6c183;return mi(_0x54a815[_0x54121b(0x141)](_0x35380b=>({'fieldId':_0x35380b[_0x54121b(0x2b0)],'direction':_0x35380b[_0x54121b(0x12f)]??null})));}[_0x6c183(0x2a0)](_0x3fdc30,_0x4a71ac){return _0x3fdc30+'\x00'+_0x4a71ac;}[_0x6c183(0x456)](_0x362d68,_0x5d7473){const _0x5d18b2=_0x6c183;var _0x2bfe3e;let _0x32d51d=Je(_0x362d68),_0x5ab2ab=this[_0x5d18b2(0x449)](_0x362d68,_0x5d7473),_0x44b472=(_0x2bfe3e=_0x5d7473['filter'])!=null&&_0x2bfe3e[_0x5d18b2(0x396)][_0x5d18b2(0x13c)]?this[_0x5d18b2(0x449)](_0x362d68,{..._0x5d7473,'filter':null}):_0x5ab2ab,_0xfb264d=nt(this['_getHierarchyIndex'](_0x362d68,_0x32d51d,_0x5d7473['id'],_0x44b472[_0x5d18b2(0x141)](_0x2e3b7a=>_0x2e3b7a[_0x5d18b2(0x347)])),_0x44b472,new Set(_0x5ab2ab[_0x5d18b2(0x141)](_0x4fa847=>_0x4fa847[_0x5d18b2(0x347)])));return{'type':_0x3ece31[_0x5d18b2(0x161)],'fields':this[_0x5d18b2(0x3d9)](_0x362d68,_0x5d7473),'rows':_0xfb264d[_0x5d18b2(0x2c5)],'groups':this[_0x5d18b2(0x35d)](_0x362d68,_0x5d7473,_0xfb264d[_0x5d18b2(0x2c5)],_0xfb264d[_0x5d18b2(0x160)]),'hierarchy':_0xfb264d['hierarchy'],'frozenFieldCount':typeof _0x5d7473['config'][_0x5d18b2(0x213)]==_0x5d18b2(0x24b)?_0x5d7473['config']['frozenFieldCount']:0x0};}[_0x6c183(0x40d)](_0x488d6c,_0x58f0e7,_0x28c8a8,_0x37cf30){const _0x1bdf29=_0x6c183;let _0x6b05c1=_0x488d6c['id']+'\x00'+_0x58f0e7+'\x00'+_0x28c8a8,_0x344143=this[_0x1bdf29(0x42b)](_0x488d6c['id']),_0x5e6e70=this[_0x1bdf29(0x44a)][_0x1bdf29(0x43e)](_0x6b05c1);if(_0x5e6e70&&_0x5e6e70[_0x1bdf29(0x2dd)]===this[_0x1bdf29(0x191)]&&_0x5e6e70['tableRevision']===this[_0x1bdf29(0x353)](_0x488d6c['id'])&&_0x5e6e70[_0x1bdf29(0x3c3)][_0x1bdf29(0x13c)]===_0x37cf30[_0x1bdf29(0x13c)]&&_0x5e6e70['orderedRecordIds'][_0x1bdf29(0x387)]((_0x39cf65,_0x36dd08)=>_0x39cf65===_0x37cf30[_0x36dd08])){if(_0x5e6e70[_0x1bdf29(0x21d)]===_0x344143&&_0x5e6e70[_0x1bdf29(0x4c7)]===_0x488d6c)return _0x5e6e70[_0x1bdf29(0x159)];if(!this['_cellInvalidationsTouchFields'](_0x488d6c['id'],_0x5e6e70[_0x1bdf29(0x21d)],_0x344143,new Set([_0x58f0e7])))return this['_hierarchyIndexCache']['set'](_0x6b05c1,{..._0x5e6e70,'table':_0x488d6c,'cellRevision':_0x344143}),_0x5e6e70['index'];}let _0x541b57=tt(_0x488d6c,_0x58f0e7,_0x37cf30);return this[_0x1bdf29(0x44a)]['set'](_0x6b05c1,{'table':_0x488d6c,'index':_0x541b57,'orderedRecordIds':_0x37cf30,'globalRevision':this[_0x1bdf29(0x191)],'tableRevision':this[_0x1bdf29(0x353)](_0x488d6c['id']),'cellRevision':_0x344143}),_0x541b57;}[_0x6c183(0x35d)](_0xa40e0b,_0x3ee20c,_0x395197,_0x31daac){const _0x54ece9=_0x6c183;var _0x53dfe6;if(!((_0x53dfe6=_0x3ee20c[_0x54ece9(0x1f2)])!=null&&_0x53dfe6['length']))return[];let _0x312faa=new Map(_0x395197[_0x54ece9(0x141)](_0x1348d4=>[_0x1348d4[_0x54ece9(0x347)],_0x1348d4])),_0x54be91=_0x31daac['rootRecordIds']['flatMap'](_0x33abd7=>{const _0x5b4e01=_0x54ece9;let _0x564f1c=_0x312faa[_0x5b4e01(0x43e)](_0x33abd7);return _0x564f1c?[_0x564f1c]:[];}),_0x19ecc9=this[_0x54ece9(0x3eb)](_0xa40e0b,_0x3ee20c,_0x54be91),_0x265326=new Map(_0x31daac['orderedRecordIds'][_0x54ece9(0x141)]((_0x4237a7,_0x32245c)=>[_0x4237a7,_0x32245c])),_0x3c7ba1=_0x485be2=>{const _0x23335c=_0x54ece9;let _0x7ca6bc=_0x31daac['nodes'][_0x485be2],_0x46609d=_0x265326[_0x23335c(0x43e)](_0x485be2)??-0x1;return _0x46609d<0x0||!_0x7ca6bc?[]:_0x31daac[_0x23335c(0x3c3)]['slice'](_0x46609d,_0x7ca6bc['subtreeEndIndex']+0x1);},_0x5bac22=_0x36bc0e=>{const _0x490299=_0x54ece9;var _0x418cc5,_0x1cdd68;return{..._0x36bc0e,'recordIds':(_0x418cc5=_0x36bc0e['children'])!=null&&_0x418cc5[_0x490299(0x13c)]?_0x36bc0e[_0x490299(0x397)]:_0x36bc0e['recordIds'][_0x490299(0x17a)](_0x3c7ba1),'children':(_0x1cdd68=_0x36bc0e[_0x490299(0x126)])==null?void 0x0:_0x1cdd68[_0x490299(0x141)](_0x5bac22)};};return _0x19ecc9['map'](_0x5bac22);}[_0x6c183(0x371)](_0x156bb5,_0x5a549a){const _0x259299=_0x6c183;var _0x2c55ff;let _0x36550f=this[_0x259299(0x196)](_0x156bb5,_0x5a549a),_0x34915a=_0x36550f?_0x156bb5[_0x259299(0x398)][_0x36550f]:void 0x0;if(!_0x34915a)return{'type':'invalid','viewType':_0x3ece31[_0x259299(0x43c)],'reason':_0x259299(0x414),'fieldId':_0x5a549a[_0x259299(0x2ba)][_0x259299(0x426)]};let _0x13a9d7=this[_0x259299(0x449)](_0x156bb5,_0x5a549a),_0x56605f=this[_0x259299(0x3d9)](_0x156bb5,_0x5a549a),_0x5a7c8b=_0x5a549a['config']??{},_0x549948=this[_0x259299(0x3f4)](_0x156bb5,(_0x2c55ff=_0x5a7c8b[_0x259299(0x39b)])==null?void 0x0:_0x2c55ff['titleFieldId']),_0xb10c99=this[_0x259299(0x3c2)](_0x156bb5,_0x5a549a,_0x34915a['id'],_0x549948),_0x4a9119=new Map();if(F(_0x156bb5,_0x34915a['id'])){let _0x2d500d=this[_0x259299(0x40d)](_0x156bb5,_0x34915a['id'],_0x5a549a['id'],_0x13a9d7['map'](_0x38afab=>_0x38afab['recordId'])),_0x2fe72c=new Map();return _0x13a9d7['forEach'](_0x5a9813=>{const _0x55aa99=_0x259299;let _0x2f591f=_0x2d500d[_0x55aa99(0x3b7)]['get'](_0x5a9813[_0x55aa99(0x347)])??null,_0x2ddcc9=_0x2f591f??'',_0x27fc15=_0x2f591f?_0x156bb5[_0x55aa99(0x258)][_0x2f591f]:void 0x0,_0x2e7e18=_0x2fe72c[_0x55aa99(0x43e)](_0x2ddcc9)??{'key':_0x2ddcc9,'title':_0x27fc15?String(yt(_0x156bb5,_0x27fc15['id'],_0x156bb5['primaryFieldId'])??_0x2f591f):this['_kanbanLaneTitle'](_0x34915a,_0x2ddcc9,_0x5a7c8b),'recordIds':[]};_0x2e7e18[_0x55aa99(0x397)][_0x55aa99(0x174)](_0x5a9813['recordId']),_0x2fe72c[_0x55aa99(0x49e)](_0x2ddcc9,_0x2e7e18);}),{'type':_0x3ece31[_0x259299(0x43c)],'fields':_0x56605f,'rows':_0x13a9d7,'groups':[],'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this['_resolveKanbanCoverFieldId'](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':['',..._0x2d500d[_0x259299(0x3c3)]][_0x259299(0x17a)](_0x298f92=>{const _0x5dfc10=_0x259299;let _0x2f06ca=_0x2fe72c[_0x5dfc10(0x43e)](_0x298f92);return _0x2f06ca!=null&&_0x2f06ca['recordIds'][_0x5dfc10(0x13c)]?[_0x2f06ca]:[];})};}return this[_0x259299(0x428)](_0x34915a,_0x5a7c8b)[_0x259299(0x2e0)](_0x41ef00=>_0x4a9119[_0x259299(0x49e)](_0x41ef00[_0x259299(0x2e1)],{..._0x41ef00,'recordIds':[]})),_0x13a9d7[_0x259299(0x2e0)](_0x56caaf=>{const _0x1fcb1b=_0x259299;this['_kanbanGroupKeys'](_0x34915a,_0x56caaf[_0x1fcb1b(0x227)][_0x34915a['id']])['forEach'](_0x33eae0=>{const _0x262304=_0x1fcb1b;let _0x3f0f53=_0x4a9119[_0x262304(0x43e)](_0x33eae0)??{'key':_0x33eae0,'title':this[_0x262304(0x411)](_0x34915a,_0x33eae0,_0x5a7c8b),'color':this[_0x262304(0x31a)](_0x34915a,_0x33eae0,_0x5a7c8b),'recordIds':[]};_0x3f0f53['recordIds'][_0x262304(0x174)](_0x56caaf[_0x262304(0x347)]),_0x4a9119[_0x262304(0x49e)](_0x33eae0,_0x3f0f53);});}),{'type':_0x3ece31['Kanban'],'fields':_0x56605f,'rows':_0x13a9d7,'groups':this['_projectGroups'](_0x156bb5,_0x5a549a,_0x13a9d7),'groupFieldId':_0x34915a['id'],'titleFieldId':_0x549948,'coverFieldId':this[_0x259299(0x1a5)](_0x156bb5,_0x5a7c8b),'cardLayout':_0x5a7c8b[_0x259299(0x33c)]===_0x259299(0x2a2)?_0x259299(0x2a2):_0x259299(0x339),'showFieldNames':_0x5a7c8b[_0x259299(0x15d)]!==!0x1,'visibleCardFieldIds':_0xb10c99,'lanes':Array[_0x259299(0x1d5)](_0x4a9119[_0x259299(0x227)]())};}['_resolveKanbanGroupFieldId'](_0x57f16d,_0x4c4261){const _0x371aeb=_0x6c183;var _0x581e11;let _0x5c7a7c=(_0x581e11=_0x4c4261[_0x371aeb(0x2ba)])==null?void 0x0:_0x581e11[_0x371aeb(0x426)];return _0x5c7a7c&&this[_0x371aeb(0x2a1)](_0x57f16d,_0x5c7a7c)?_0x5c7a7c:this[_0x371aeb(0x412)](_0x57f16d,_0x6ef8d8=>this[_0x371aeb(0x3ba)](_0x6ef8d8));}[_0x6c183(0x412)](_0x140b6a,_0x58ffe3){const _0x3f0f38=_0x6c183;for(let _0x48eda2 of _0x140b6a[_0x3f0f38(0x3b5)]){let _0x31e1dc=_0x140b6a[_0x3f0f38(0x398)][_0x48eda2];if(_0x31e1dc&&_0x58ffe3(_0x31e1dc))return _0x31e1dc['id'];}return null;}[_0x6c183(0x2a1)](_0x47fb7d,_0x32a8bd){const _0x2dd7b7=_0x6c183;let _0x3be031=_0x47fb7d['fields'][_0x32a8bd];return this[_0x2dd7b7(0x3ba)](_0x3be031)||F(_0x47fb7d,_0x32a8bd);}[_0x6c183(0x3ba)](_0x362be0){const _0x334ee0=_0x6c183;return!!_0x362be0&&(_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x20e)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x386)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x2c3)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x359)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x1ad)]||_0x362be0[_0x334ee0(0x20b)]===_0x3a044b[_0x334ee0(0x233)]);}[_0x6c183(0x42a)](_0x3b8d96){const _0x456b6b=_0x6c183;return _0x3b8d96['type']===_0x3a044b[_0x456b6b(0x20e)]||_0x3b8d96[_0x456b6b(0x20b)]===_0x3a044b['MultiSelect'];}['_resolveKanbanCoverFieldId'](_0x405793,_0x31f219){const _0x514141=_0x6c183;var _0x1e533c;let _0x242397=_0x31f219['coverFieldId']??((_0x1e533c=_0x31f219['card'])==null?void 0x0:_0x1e533c[_0x514141(0x21a)])??null;if(!_0x242397)return null;let _0x469db8=_0x405793[_0x514141(0x398)][_0x242397];return _0x469db8&&this[_0x514141(0x403)](_0x469db8)[_0x514141(0x16d)]?_0x469db8['id']:null;}['_resolveKanbanCardFieldIds'](_0x91f47e,_0x81d2d9,_0x335b36,_0x485c4a=this[_0x6c183(0x3f4)](_0x91f47e,((()=>{const _0x28157e=_0x6c183;var _0x4b3fa0;return(_0x4b3fa0=_0x81d2d9['config'])==null||(_0x4b3fa0=_0x4b3fa0[_0x28157e(0x39b)])==null?void 0x0:_0x4b3fa0[_0x28157e(0x1ba)];})()))){const _0x441cc4=_0x6c183;var _0x5c37a0;let _0x4b75ac=_0x81d2d9[_0x441cc4(0x2ba)]??{},_0x1359f2=(_0x5c37a0=_0x4b75ac[_0x441cc4(0x39b)])!=null&&(_0x5c37a0=_0x5c37a0['fieldIds'])!=null&&_0x5c37a0[_0x441cc4(0x13c)]?_0x4b75ac[_0x441cc4(0x39b)]['fieldIds']:Qr(_0x91f47e,[_0x485c4a,_0x91f47e[_0x441cc4(0x3b2)],_0x335b36]),_0x5532e0=_0x4b75ac[_0x441cc4(0x48f)]??{};return _0x1359f2['filter'](_0x3a225f=>{const _0x1e448c=_0x441cc4;var _0x185302,_0x30deeb;let _0x50a942=_0x91f47e[_0x1e448c(0x398)][_0x3a225f];return!(!_0x50a942||_0x50a942[_0x1e448c(0x3cf)]===!0x0||_0x50a942[_0x1e448c(0x20b)]===_0x3a044b[_0x1e448c(0x22f)]||_0x50a942['id']===_0x335b36||_0x50a942['id']===_0x485c4a||(_0x185302=_0x81d2d9['fieldSettings'])!=null&&(_0x185302=_0x185302[_0x3a225f])!=null&&_0x185302[_0x1e448c(0x1b2)]||(_0x30deeb=_0x5532e0[_0x3a225f])!=null&&_0x30deeb['hidden']);})[_0x441cc4(0x277)]((_0x4900f5,_0x443165)=>{const _0x40ce17=_0x441cc4;var _0x2db5e5,_0x184d8e;return(((_0x2db5e5=_0x5532e0[_0x4900f5])==null?void 0x0:_0x2db5e5[_0x40ce17(0x316)])??_0x1359f2['indexOf'](_0x4900f5))-(((_0x184d8e=_0x5532e0[_0x443165])==null?void 0x0:_0x184d8e[_0x40ce17(0x316)])??_0x1359f2[_0x40ce17(0x44e)](_0x443165));});}[_0x6c183(0x428)](_0x5dcff9,_0x5843fc){const _0x1d7717=_0x6c183;var _0x450cea;let _0x78fcf2=(Array[_0x1d7717(0x431)]((_0x450cea=_0x5dcff9[_0x1d7717(0x2ba)])==null?void 0x0:_0x450cea[_0x1d7717(0x2b3)])?_0x5dcff9[_0x1d7717(0x2ba)][_0x1d7717(0x2b3)]:[])['flatMap']((_0x503594,_0x51523c)=>{const _0x11c5d1=_0x1d7717;if(_0x503594==null)return[];let _0x5c75d4=typeof _0x503594=='string'?{'id':_0x503594,'name':_0x503594,'color':void 0x0}:_0x503594,_0x1e23f2=String(_0x5c75d4['id']??_0x5c75d4[_0x11c5d1(0x2a3)]??'option-'+(_0x51523c+0x1));return[{'key':_0x1e23f2,'title':String(_0x5c75d4[_0x11c5d1(0x2a3)]??_0x5c75d4['id']??_0x1e23f2),'color':this[_0x11c5d1(0x31a)](_0x5dcff9,_0x1e23f2,_0x5843fc)}];});return Object[_0x1d7717(0x279)](_0x5843fc[_0x1d7717(0x15c)]??{})[_0x1d7717(0x2e0)](([_0x1b29d8,_0x4616ca])=>{const _0x475146=_0x1d7717;_0x78fcf2['some'](_0x4d92d6=>_0x4d92d6['key']===_0x1b29d8)||_0x78fcf2[_0x475146(0x174)]({'key':_0x1b29d8,'title':this[_0x475146(0x42a)](_0x5dcff9)?_0x4616ca[_0x475146(0x488)]??this['_kanbanLaneTitle'](_0x5dcff9,_0x1b29d8,_0x5843fc):this[_0x475146(0x411)](_0x5dcff9,_0x1b29d8,_0x5843fc),'color':this[_0x475146(0x31a)](_0x5dcff9,_0x1b29d8,_0x5843fc)});}),_0x78fcf2;}['_kanbanGroupKeys'](_0x29cd1f,_0x185b7f){const _0x2dc7ea=_0x6c183;let _0x38cf4e=_0x24cb58=>{const _0x37432d=_0x2b5a;var _0x10c0b6;let _0x398c91=_0x24cb58==null?'':String(_0x24cb58);return!_0x398c91||!this[_0x37432d(0x42a)](_0x29cd1f)?_0x398c91:((_0x10c0b6=Li(_0x29cd1f,_0x398c91))==null?void 0x0:_0x10c0b6['id'])??_0x398c91;};if(Array['isArray'](_0x185b7f)){let _0x5625c5=_0x185b7f[_0x2dc7ea(0x141)](_0x38cf4e)[_0x2dc7ea(0x2be)](_0x4d68f2=>_0x4d68f2!=='');return _0x5625c5[_0x2dc7ea(0x13c)]?_0x5625c5:[''];}return[_0x38cf4e(_0x185b7f)];}[_0x6c183(0x411)](_0x55e52d,_0x1a5d3d,_0x2c182a){const _0x1a863f=_0x6c183;if(!_0x1a5d3d)return _0x1a863f(0x1f5);let _0x187bc6=Li(_0x55e52d,_0x1a5d3d);return(_0x187bc6==null?void 0x0:_0x187bc6[_0x1a863f(0x2a3)])??_0x1a5d3d;}[_0x6c183(0x31a)](_0xa04ac8,_0x50022b,_0x126e0d){const _0x23ca52=_0x6c183;var _0x5dd31a;if(this[_0x23ca52(0x42a)](_0xa04ac8))return(_0x5dd31a=Li(_0xa04ac8,_0x50022b))==null?void 0x0:_0x5dd31a[_0x23ca52(0x276)];}[_0x6c183(0x154)](_0x214901,_0x589750){const _0x4571c5=_0x6c183;let _0x538cff=this['_normalizeCalendarConfig'](_0x214901,_0x589750[_0x4571c5(0x2ba)]??{}),_0x47bbf7=_0x214901['fields'][_0x538cff[_0x4571c5(0x4b5)]];if(!_0x47bbf7||_0x47bbf7[_0x4571c5(0x20b)]!==_0x3a044b['Date']||_0x47bbf7[_0x4571c5(0x3a9)]===!0x0||_0x47bbf7[_0x4571c5(0x3cf)]===!0x0||!this[_0x4571c5(0x403)](_0x47bbf7)[_0x4571c5(0x4c8)])return{'type':'invalid','viewType':_0x3ece31['Calendar'],'reason':_0x4571c5(0x3f6),'fieldId':_0x538cff[_0x4571c5(0x4b5)]};let _0xb5b5a9=_0x538cff[_0x4571c5(0x3ef)]?_0x214901[_0x4571c5(0x398)][_0x538cff[_0x4571c5(0x3ef)]]:void 0x0,_0x36359c=this[_0x4571c5(0x449)](_0x214901,_0x589750);return{'type':_0x3ece31[_0x4571c5(0x208)],'config':_0x538cff,'fields':this[_0x4571c5(0x3d9)](_0x214901,_0x589750),'rows':_0x36359c,'groups':this[_0x4571c5(0x3eb)](_0x214901,_0x589750,_0x36359c),'events':_0x36359c['flatMap'](_0x214629=>{const _0x5c5e9a=_0x4571c5;let _0x128ea0=dn(_0x214629[_0x5c5e9a(0x227)][_0x538cff[_0x5c5e9a(0x4b5)]]);if(!Number['isFinite'](_0x128ea0))return[];let _0x24496e=_0x214629['values'][_0x538cff[_0x5c5e9a(0x4b5)]],_0x362bce=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:_0x214629['values'][_0x538cff[_0x5c5e9a(0x3ef)]],_0x1dee64=_0x538cff[_0x5c5e9a(0x3ef)]==null?void 0x0:dn(_0x362bce),_0x4286f1=Number[_0x5c5e9a(0x143)](_0x1dee64)?_0x1dee64:void 0x0;return[{'recordId':_0x214629['recordId'],'title':this[_0x5c5e9a(0x271)](_0x214901,_0x214629,_0x538cff['titleFieldId']),'start':_0x128ea0,'end':_0x4286f1,'color':this['_calendarEventColor'](_0x214901,_0x214629,_0x538cff),'startMs':_0x128ea0,'endMs':_0x4286f1,'allDay':this[_0x5c5e9a(0x3f5)](_0x47bbf7,_0xb5b5a9,_0x24496e,_0x362bce),'fieldValues':_0x214629[_0x5c5e9a(0x227)]}];})};}[_0x6c183(0x171)](_0x575c52,_0x296a3c){const _0xb5db00=_0x6c183;let _0x340e00=this['_resolveCalendarDateFieldId'](_0x575c52,_0x296a3c['startDateFieldId']),_0x2428f2=_0x296a3c[_0xb5db00(0x3ef)]&&this['_isCalendarDateField'](_0x575c52,_0x296a3c[_0xb5db00(0x3ef)])?_0x296a3c[_0xb5db00(0x3ef)]:this[_0xb5db00(0x381)](_0x575c52,_0x340e00)??void 0x0,_0xab886a=_0x296a3c[_0xb5db00(0x1ba)]?_0x575c52[_0xb5db00(0x398)][_0x296a3c[_0xb5db00(0x1ba)]]:void 0x0,_0x2dd211=_0xab886a&&_0xab886a[_0xb5db00(0x3cf)]!==!0x0&&_0xab886a[_0xb5db00(0x20b)]!==_0x3a044b[_0xb5db00(0x22f)]?_0x296a3c[_0xb5db00(0x1ba)]:_0x575c52[_0xb5db00(0x3b2)],_0x298c46=_0x296a3c['mode']===_0xb5db00(0x130)||_0x296a3c[_0xb5db00(0x3cb)]==='week'?_0x296a3c['mode']:'month',_0x2e049e=_0x296a3c['timeslotSize']===_0xb5db00(0x416)||_0x296a3c['timeslotSize']===_0xb5db00(0x3f1)?_0x296a3c[_0xb5db00(0x1fd)]:_0xb5db00(0x1a7),_0x52e61e=typeof _0x296a3c['timeZone']==_0xb5db00(0x425)&&_0x296a3c[_0xb5db00(0x164)][_0xb5db00(0x226)]()?_0x296a3c[_0xb5db00(0x164)]:_0xb5db00(0x231),_0x5f1768=this[_0xb5db00(0x39f)](_0x575c52,_0x296a3c);return{..._0x296a3c,'startDateFieldId':_0x340e00,'endDateFieldId':_0x2428f2,'titleFieldId':_0x2dd211,'mode':_0x298c46,'timeslotSize':_0x2e049e,'timeZone':_0x52e61e,'displayColor':_0x5f1768,'fieldSettings':Object[_0xb5db00(0x176)](Object['entries'](_0x296a3c['fieldSettings']??{})[_0xb5db00(0x2be)](([_0x37ff7e])=>{const _0x19c422=_0xb5db00;let _0x3b5ece=_0x575c52[_0x19c422(0x398)][_0x37ff7e];return!!(_0x3b5ece&&_0x3b5ece[_0x19c422(0x3cf)]!==!0x0&&_0x3b5ece[_0x19c422(0x20b)]!==_0x3a044b[_0x19c422(0x22f)]);}))};}[_0x6c183(0x2ed)](_0xc07962,_0x56f23f){const _0x5a5d29=_0x6c183;return _0x56f23f&&this[_0x5a5d29(0x4a4)](_0xc07962,_0x56f23f)?_0x56f23f:this[_0x5a5d29(0x381)](_0xc07962)??_0x56f23f??'';}[_0x6c183(0x381)](_0x67a48,_0x3ad5a7){const _0x448107=_0x6c183;for(let _0x172899 of _0x67a48[_0x448107(0x3b5)])if(_0x172899!==_0x3ad5a7&&this[_0x448107(0x4a4)](_0x67a48,_0x172899))return _0x172899;return null;}[_0x6c183(0x4a4)](_0x4dd16d,_0xa8fd92){const _0x5cfafd=_0x6c183;let _0x18210d=_0x4dd16d['fields'][_0xa8fd92];return!!_0x18210d&&_0x18210d['type']===_0x3a044b['Date']&&_0x18210d[_0x5cfafd(0x3a9)]!==!0x0&&_0x18210d[_0x5cfafd(0x3cf)]!==!0x0&&this['_capabilities'](_0x18210d)[_0x5cfafd(0x4c8)];}[_0x6c183(0x39f)](_0x22c364,_0x52975a){const _0x36dccb=_0x6c183;let _0x5dff4a=_0x52975a[_0x36dccb(0x430)];if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x301)){let _0x34a5f6=_0x22c364[_0x36dccb(0x398)][_0x5dff4a['fieldId']];if(_0x34a5f6&&_0x34a5f6[_0x36dccb(0x20b)]===_0x3a044b[_0x36dccb(0x20e)])return _0x5dff4a;}if((_0x5dff4a==null?void 0x0:_0x5dff4a[_0x36dccb(0x20b)])===_0x36dccb(0x446)&&typeof _0x5dff4a[_0x36dccb(0x276)]=='string'&&_0x5dff4a[_0x36dccb(0x276)][_0x36dccb(0x226)]())return{'type':_0x36dccb(0x446),'color':_0x5dff4a['color']};if(_0x52975a['colorFieldId']){let _0x43a620=_0x22c364['fields'][_0x52975a[_0x36dccb(0x1d6)]];if(_0x43a620&&_0x43a620[_0x36dccb(0x20b)]===_0x3a044b['SingleSelect'])return{'type':'selectField','fieldId':_0x52975a[_0x36dccb(0x1d6)]};}return{'type':_0x36dccb(0x446),'color':_0x36dccb(0x1d8)};}['_calendarEventColor'](_0x34b7bc,_0x227639,_0x234c79){const _0x412600=_0x6c183;let _0x36b0cb=_0x234c79[_0x412600(0x430)];if((_0x36b0cb==null?void 0x0:_0x36b0cb[_0x412600(0x20b)])===_0x412600(0x301)){var _0x30cda3;let _0x446b2d=_0x34b7bc[_0x412600(0x398)][_0x36b0cb['fieldId']];if(!_0x446b2d)return;let _0x3ce7b9=_0x227639[_0x412600(0x227)][_0x36b0cb[_0x412600(0x2b0)]],_0x31ad0c=Array[_0x412600(0x431)](_0x3ce7b9)?_0x3ce7b9[0x0]:_0x3ce7b9;return _0x31ad0c==null||(_0x30cda3=Li(_0x446b2d,String(_0x31ad0c)))==null?void 0x0:_0x30cda3[_0x412600(0x276)];}if((_0x36b0cb==null?void 0x0:_0x36b0cb['type'])===_0x412600(0x446))return _0x36b0cb[_0x412600(0x276)];}['_isAllDayCalendarEvent'](_0x4375b4,_0x2c91ea,_0x5569e7,_0x1703d5){const _0x571c17=_0x6c183;var _0x38b957,_0x2094f0;let _0x23dfc6=((_0x38b957=_0x4375b4[_0x571c17(0x2ba)])==null?void 0x0:_0x38b957[_0x571c17(0x22e)])===!0x0,_0x173cab=(_0x2c91ea==null||(_0x2094f0=_0x2c91ea[_0x571c17(0x2ba)])==null?void 0x0:_0x2094f0[_0x571c17(0x22e)])===!0x0;return!_0x23dfc6&&!_0x173cab;}[_0x6c183(0x49d)](_0x5209b9,_0x3e6092){const _0x3d22cc=_0x6c183;var _0x1946a9,_0x5953ca;let _0x17f846=((_0x1946a9=_0x5209b9[_0x3d22cc(0x2ba)])==null?void 0x0:_0x1946a9['includeTime'])===!0x0,_0x4f6525=((_0x5953ca=_0x3e6092[_0x3d22cc(0x2ba)])==null?void 0x0:_0x5953ca['includeTime'])===!0x0;return!_0x17f846&&!_0x4f6525;}[_0x6c183(0x2f6)](_0x41a9e9,_0x418d69){const _0x496164=_0x6c183;let _0x5f3621=this[_0x496164(0x12e)](_0x41a9e9,_0x418d69['config']),_0x2f7a79=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x4b5)]];if(!_0x2f7a79||_0x2f7a79[_0x496164(0x20b)]!==_0x3a044b[_0x496164(0x346)]||_0x2f7a79[_0x496164(0x3a9)]===!0x0||_0x2f7a79[_0x496164(0x3cf)]===!0x0||!this[_0x496164(0x403)](_0x2f7a79)[_0x496164(0x264)])return{'type':_0x496164(0x3a3),'viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x4cc),'fieldId':_0x5f3621['startDateFieldId']};let _0xcd21b7=_0x41a9e9[_0x496164(0x398)][_0x5f3621[_0x496164(0x3ef)]];if(!_0xcd21b7||_0xcd21b7['type']!==_0x3a044b['Date']||_0xcd21b7[_0x496164(0x3a9)]===!0x0||_0xcd21b7['system']===!0x0||!this[_0x496164(0x403)](_0xcd21b7)[_0x496164(0x1d0)])return{'type':'invalid','viewType':_0x3ece31[_0x496164(0x1cf)],'reason':_0x496164(0x1aa),'fieldId':_0x5f3621[_0x496164(0x3ef)]};let _0x1cd535=this[_0x496164(0x49d)](_0x2f7a79,_0xcd21b7),_0x31b34e=this['_projectRows'](_0x41a9e9,_0x418d69),_0x12e009=_0x31b34e[_0x496164(0x17a)](_0x3748bb=>{const _0x1c190f=_0x496164;let _0x15f206=dn(_0x3748bb['values'][_0x5f3621[_0x1c190f(0x4b5)]]),_0x3e9123=dn(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x3ef)]]);if(!Number[_0x1c190f(0x143)](_0x15f206)||!Number['isFinite'](_0x3e9123))return[];let _0x7d0243=Math[_0x1c190f(0x27a)](_0x15f206,_0x3e9123),_0x26ca03=Math[_0x1c190f(0x482)](_0x15f206,_0x3e9123),_0x50f86e=_0x5f3621['progressFieldId']==null?void 0x0:Number(_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x4b1)]]);return[{'recordId':_0x3748bb[_0x1c190f(0x347)],'title':this[_0x1c190f(0x271)](_0x41a9e9,_0x3748bb,_0x5f3621[_0x1c190f(0x1ba)]),'start':_0x7d0243,'end':_0x26ca03,'color':this[_0x1c190f(0x1fc)](_0x41a9e9,_0x3748bb,_0x5f3621),'progress':Number[_0x1c190f(0x143)](_0x50f86e)?_0x50f86e:void 0x0,'workingDayCount':_0x5f3621['workingDaysOnly']?Ti(_0x7d0243,_0x26ca03,_0x5f3621[_0x1c190f(0x1a9)]):void 0x0,'dependencyRecordIds':this['_recordIds'](_0x3748bb[_0x1c190f(0x227)][_0x5f3621[_0x1c190f(0x489)]??''])}];}),_0x33b9fa=_0x12e009[_0x496164(0x13c)]?Z(Math[_0x496164(0x27a)](..._0x12e009[_0x496164(0x141)](_0x184f14=>_0x184f14[_0x496164(0x41a)]))-0x5a*oi):Z(Date[_0x496164(0x2a4)]()-0x5a*oi),_0x1562c7=_0x12e009[_0x496164(0x13c)]?Z(Math['max'](..._0x12e009['map'](_0x13742c=>_0x13742c[_0x496164(0x439)]))+0x5b*oi):Z(Date['now']()+0x5b*oi),_0x59068d=_i(_0x5f3621['scale'],_0x33b9fa,_0x1562c7,_0x5f3621[_0x496164(0x40e)]?_0x5f3621['workingDays']:void 0x0);return{'type':_0x3ece31[_0x496164(0x1cf)],'fields':this[_0x496164(0x3d9)](_0x41a9e9,{..._0x418d69,'config':_0x5f3621}),'rows':_0x31b34e,'groups':this[_0x496164(0x3eb)](_0x41a9e9,_0x418d69,_0x31b34e),'config':_0x5f3621,'dateRangeAllDay':_0x1cd535,'timeline':{'scale':_0x5f3621['scale'],'start':_0x33b9fa,'end':_0x1562c7,'unitWidth':_0x59068d['unitWidth'],'majorHeaders':_0x59068d['majorHeaders'],'columns':_0x59068d[_0x496164(0x2ea)]},'bars':_0x12e009};}[_0x6c183(0x12e)](_0x1820b3,_0x471d91){const _0xed6a3d=_0x6c183;let _0x500db5=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91['startDateFieldId'],_0xed6a3d(0x41a)),_0x2792ac=this[_0xed6a3d(0x469)](_0x1820b3,_0x471d91[_0xed6a3d(0x3ef)],_0xed6a3d(0x439))||_0x500db5,_0x2eaac7=_0x471d91[_0xed6a3d(0x1ba)]?_0x1820b3['fields'][_0x471d91[_0xed6a3d(0x1ba)]]:void 0x0,_0x5530d2=_0x2eaac7&&_0x2eaac7[_0xed6a3d(0x3cf)]!==!0x0&&_0x2eaac7[_0xed6a3d(0x20b)]!==_0x3a044b[_0xed6a3d(0x22f)]?_0x471d91[_0xed6a3d(0x1ba)]:_0x1820b3['primaryFieldId'],_0x3157f5=_0x471d91[_0xed6a3d(0x1e1)]===_0xed6a3d(0x2de)||_0x471d91[_0xed6a3d(0x1e1)]==='quarter'||_0x471d91[_0xed6a3d(0x1e1)]==='year'?_0x471d91['scale']:_0xed6a3d(0x43d),_0x2becc6=gi(_0x471d91[_0xed6a3d(0x1a9)]);return{..._0x471d91,'startDateFieldId':_0x500db5,'endDateFieldId':_0x2792ac,'titleFieldId':_0x5530d2,'scale':_0x3157f5,'leftPaneWidth':typeof _0x471d91[_0xed6a3d(0x3e3)]=='number'?_0x471d91[_0xed6a3d(0x3e3)]:void 0x0,'leftPaneCollapsed':_0x471d91[_0xed6a3d(0x458)]===!0x0,'showTodayLine':_0x471d91[_0xed6a3d(0x450)]!==!0x1,'displayColor':this[_0xed6a3d(0x3be)](_0x1820b3,_0x471d91),'fieldSettings':Object[_0xed6a3d(0x176)](Object[_0xed6a3d(0x279)](_0x471d91['fieldSettings']??{})['filter'](([_0x3391b7])=>{const _0x521970=_0xed6a3d;let _0x12c7c8=_0x1820b3[_0x521970(0x398)][_0x3391b7];return!!(_0x12c7c8&&_0x12c7c8['system']!==!0x0&&_0x12c7c8['type']!==_0x3a044b[_0x521970(0x22f)]);})),'workingDaysOnly':_0x471d91[_0xed6a3d(0x40e)]===!0x0,'workingDays':_0x2becc6};}['_resolveGanttDateFieldId'](_0x3c6ac9,_0x9aec31,_0x2d3040){const _0x31a297=_0x6c183;if(_0x9aec31&&this['_isGanttDateField'](_0x3c6ac9,_0x9aec31,_0x2d3040)||_0x9aec31)return _0x9aec31;for(let _0x3d26e2 of _0x3c6ac9['fieldOrder'])if(this[_0x31a297(0x4bc)](_0x3c6ac9,_0x3d26e2,_0x2d3040))return _0x3d26e2;return _0x9aec31??'';}[_0x6c183(0x4bc)](_0x12f909,_0x566db7,_0x53245f){const _0x5c37fe=_0x6c183;let _0x13d709=_0x12f909['fields'][_0x566db7];if(!_0x13d709||_0x13d709['type']!==_0x3a044b[_0x5c37fe(0x346)]||_0x13d709['readonly']===!0x0||_0x13d709[_0x5c37fe(0x3cf)]===!0x0)return!0x1;let _0x10e985=this[_0x5c37fe(0x403)](_0x13d709);return _0x53245f===_0x5c37fe(0x41a)?_0x10e985[_0x5c37fe(0x264)]:_0x10e985[_0x5c37fe(0x1d0)];}['_normalizeGanttDisplayColor'](_0x4cf8f6,_0x36957f){const _0x1fbe29=_0x6c183;let _0x43ef54=_0x36957f[_0x1fbe29(0x430)];if((_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x301)){let _0x35c0ea=_0x4cf8f6[_0x1fbe29(0x398)][_0x43ef54[_0x1fbe29(0x2b0)]];if(_0x35c0ea&&_0x35c0ea['type']===_0x3a044b[_0x1fbe29(0x20e)])return _0x43ef54;}return(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])===_0x1fbe29(0x3da)&&Array['isArray'](_0x43ef54['rules'])?{'type':_0x1fbe29(0x3da),'rules':_0x43ef54[_0x1fbe29(0x4c4)][_0x1fbe29(0x2be)](_0x365ac6=>!!_0x4cf8f6['fields'][_0x365ac6[_0x1fbe29(0x2b0)]])}:(_0x43ef54==null?void 0x0:_0x43ef54[_0x1fbe29(0x20b)])==='custom'&&typeof _0x43ef54[_0x1fbe29(0x276)]==_0x1fbe29(0x425)&&_0x43ef54[_0x1fbe29(0x276)][_0x1fbe29(0x226)]()?{'type':_0x1fbe29(0x446),'color':_0x43ef54[_0x1fbe29(0x276)]}:{'type':_0x1fbe29(0x446),'color':'#14b8a6'};}[_0x6c183(0x1fc)](_0x537fbe,_0x1fce71,_0x365116){const _0x466fd5=_0x6c183;let _0x1af3f9=_0x365116[_0x466fd5(0x430)];if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x3da)){let _0xdcba3e=_0x1af3f9[_0x466fd5(0x4c4)]['find'](_0xba8ee=>this[_0x466fd5(0x341)](_0x537fbe,_0x1fce71,_0xba8ee));if(_0xdcba3e)return _0xdcba3e[_0x466fd5(0x276)];}if((_0x1af3f9==null?void 0x0:_0x1af3f9[_0x466fd5(0x20b)])===_0x466fd5(0x301)){let _0x41221e=_0x537fbe[_0x466fd5(0x398)][_0x1af3f9[_0x466fd5(0x2b0)]];if(_0x41221e){var _0x38f085;let _0x5ddf08=_0x1fce71['values'][_0x1af3f9[_0x466fd5(0x2b0)]],_0x3afd8e=Array[_0x466fd5(0x431)](_0x5ddf08)?_0x5ddf08[0x0]:_0x5ddf08,_0x5dc7bb=_0x3afd8e==null||(_0x38f085=Li(_0x41221e,String(_0x3afd8e)))==null?void 0x0:_0x38f085[_0x466fd5(0x276)];if(_0x5dc7bb)return _0x5dc7bb;}}return(_0x1af3f9==null?void 0x0:_0x1af3f9['type'])===_0x466fd5(0x446)?_0x1af3f9[_0x466fd5(0x276)]:'#14b8a6';}[_0x6c183(0x341)](_0x5cfa6a,_0x52b25e,_0x2447ab){const _0x3a7bf5=_0x6c183;let _0x32df92=_0x5cfa6a['fields'][_0x2447ab[_0x3a7bf5(0x2b0)]];return _0x32df92?xn(_0x52b25e[_0x3a7bf5(0x227)][_0x32df92['id']],_0x2447ab['operator'],_0x2447ab[_0x3a7bf5(0x302)],_0x32df92,{'dateMode':_0x2447ab['dateMode']}):!0x1;}[_0x6c183(0x36c)](_0x376ba9,_0xc0a926){const _0x29d65e=_0x6c183;let _0x1497f7=this['_projectRows'](_0x376ba9,_0xc0a926),_0x4558e1=this['_normalizeGalleryConfig'](_0x376ba9,_0xc0a926[_0x29d65e(0x2ba)]??{}),_0x1243bd=this[_0x29d65e(0x3d9)](_0x376ba9,_0xc0a926);return{'type':_0x3ece31[_0x29d65e(0x434)],'fields':_0x1243bd,'rows':_0x1497f7,'groups':this['_projectGroups'](_0x376ba9,_0xc0a926,_0x1497f7),'titleFieldId':_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)],'coverFieldId':_0x4558e1['coverFieldId'],'cardLayout':_0x4558e1[_0x29d65e(0x33c)]??_0x29d65e(0x339),'showFieldNames':_0x4558e1[_0x29d65e(0x15d)]!==!0x1,'visibleCardFieldIds':this[_0x29d65e(0x47e)](_0x376ba9,_0xc0a926,_0x4558e1),'cardSize':_0x4558e1[_0x29d65e(0x37f)]??_0x29d65e(0x1a7),'cards':_0x1497f7[_0x29d65e(0x141)](_0x13b966=>({'recordId':_0x13b966[_0x29d65e(0x347)],'title':this['_title'](_0x376ba9,_0x13b966,_0x4558e1[_0x29d65e(0x39b)][_0x29d65e(0x1ba)]),'values':_0x13b966[_0x29d65e(0x227)]}))};}[_0x6c183(0x184)](_0xaf6446,_0x55617a){const _0x240d23=_0x6c183;let _0x350a05=_0x55617a['card']??{'fieldIds':[]},_0x58e4d5=this[_0x240d23(0x3f4)](_0xaf6446,_0x350a05[_0x240d23(0x1ba)]),_0x1767ff=this[_0x240d23(0x1ac)](_0xaf6446,_0x55617a),_0x5e07d2=_0x55617a['cardSize']===_0x240d23(0x2c0)||_0x55617a[_0x240d23(0x37f)]===_0x240d23(0x3c0)?_0x55617a['cardSize']:_0x240d23(0x1a7);return{..._0x55617a,'coverFieldId':_0x1767ff,'cardLayout':_0x55617a['cardLayout']===_0x240d23(0x2a2)?_0x240d23(0x2a2):'normal','showFieldNames':_0x55617a[_0x240d23(0x15d)]!==!0x1,'fieldSettings':Object[_0x240d23(0x176)](Object[_0x240d23(0x279)](_0x55617a[_0x240d23(0x48f)]??{})['filter'](([_0x587e5f])=>{const _0x3cb423=_0x240d23;let _0x3172b1=_0xaf6446[_0x3cb423(0x398)][_0x587e5f];return!!(_0x3172b1&&_0x3172b1[_0x3cb423(0x3cf)]!==!0x0&&_0x3172b1[_0x3cb423(0x20b)]!==_0x3a044b[_0x3cb423(0x22f)]);})),'card':{..._0x350a05,'titleFieldId':_0x58e4d5,'coverFieldId':_0x1767ff,'fieldIds':Array[_0x240d23(0x431)](_0x350a05['fieldIds'])?_0x350a05[_0x240d23(0x31c)]:[]},'cardSize':_0x5e07d2};}[_0x6c183(0x3f4)](_0x18846f,_0x4f8a75){const _0x48a591=_0x6c183;let _0x11b9d8=_0x4f8a75?_0x18846f[_0x48a591(0x398)][_0x4f8a75]:void 0x0;return _0x11b9d8&&_0x11b9d8['system']!==!0x0&&_0x11b9d8[_0x48a591(0x20b)]!==_0x3a044b['RecordId']?_0x11b9d8['id']:Zr(_0x18846f);}['_resolveGalleryCoverFieldId'](_0x41f6c3,_0x31f5b3){const _0x393bdf=_0x6c183;var _0x43f49b;let _0x25d07e=_0x31f5b3[_0x393bdf(0x21a)]??((_0x43f49b=_0x31f5b3[_0x393bdf(0x39b)])==null?void 0x0:_0x43f49b['coverFieldId'])??null;if(!_0x25d07e)return null;let _0x394436=_0x41f6c3[_0x393bdf(0x398)][_0x25d07e];return _0x394436&&this['_capabilities'](_0x394436)['usableAsCardCover']?_0x394436['id']:null;}['_resolveGalleryCardFieldIds'](_0x20b267,_0x14da62,_0x5c4ecb){const _0x5d2da9=_0x6c183;var _0x5c730c,_0x1cdfe0,_0x2ae84d;let _0x3cfbd9=_0x5c4ecb[_0x5d2da9(0x48f)]??{},_0x5e2ce5=((_0x5c730c=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x5c730c[_0x5d2da9(0x1ba)])??Zr(_0x20b267),_0x36793a=_0x5c4ecb[_0x5d2da9(0x21a)]??((_0x1cdfe0=_0x5c4ecb[_0x5d2da9(0x39b)])==null?void 0x0:_0x1cdfe0[_0x5d2da9(0x21a)])??null,_0x32d0ab=(_0x2ae84d=_0x5c4ecb[_0x5d2da9(0x39b)])!=null&&(_0x2ae84d=_0x2ae84d[_0x5d2da9(0x31c)])!=null&&_0x2ae84d['length']?_0x5c4ecb[_0x5d2da9(0x39b)][_0x5d2da9(0x31c)]:Qr(_0x20b267,[_0x5e2ce5,_0x36793a,_0x20b267['primaryFieldId']]);return _0x32d0ab[_0x5d2da9(0x2be)](_0x511ab0=>{const _0x501d59=_0x5d2da9;var _0x550206,_0x796eac;let _0x1cfb01=_0x20b267['fields'][_0x511ab0];return!(!_0x1cfb01||_0x1cfb01[_0x501d59(0x3cf)]===!0x0||_0x1cfb01[_0x501d59(0x20b)]===_0x3a044b[_0x501d59(0x22f)]||_0x1cfb01['id']===_0x5e2ce5||_0x1cfb01['id']===_0x36793a||(_0x550206=_0x14da62[_0x501d59(0x48f)])!=null&&(_0x550206=_0x550206[_0x511ab0])!=null&&_0x550206[_0x501d59(0x1b2)]||(_0x796eac=_0x3cfbd9[_0x511ab0])!=null&&_0x796eac[_0x501d59(0x1b2)]);})['sort']((_0x15cf0d,_0x318898)=>{const _0x1d5319=_0x5d2da9;var _0x383320,_0x4df36d;return(((_0x383320=_0x3cfbd9[_0x15cf0d])==null?void 0x0:_0x383320['order'])??_0x32d0ab[_0x1d5319(0x44e)](_0x15cf0d))-(((_0x4df36d=_0x3cfbd9[_0x318898])==null?void 0x0:_0x4df36d[_0x1d5319(0x316)])??_0x32d0ab[_0x1d5319(0x44e)](_0x318898));});}[_0x6c183(0x3d9)](_0x360eca,_0x11f55a){const _0x48d6e8=_0x6c183;var _0x12c473;return((_0x12c473=_0x11f55a[_0x48d6e8(0x3b5)])!=null&&_0x12c473[_0x48d6e8(0x13c)]?_0x11f55a[_0x48d6e8(0x3b5)]:_0x360eca[_0x48d6e8(0x3b5)])[_0x48d6e8(0x17a)](_0x28f66d=>{const _0x4a1ddf=_0x48d6e8;var _0x4d0b9e;let _0x5c36d9=_0x360eca['fields'][_0x28f66d],_0x2bf7b5=((_0x4d0b9e=_0x11f55a['fieldSettings'])==null?void 0x0:_0x4d0b9e[_0x28f66d])??{};return!_0x5c36d9||_0x5c36d9[_0x4a1ddf(0x3cf)]===!0x0||_0x5c36d9[_0x4a1ddf(0x20b)]===_0x3a044b[_0x4a1ddf(0x22f)]||_0x2bf7b5['hidden']?[]:[{'id':_0x5c36d9['id'],'name':_0x5c36d9[_0x4a1ddf(0x2a3)],'description':_0x5c36d9[_0x4a1ddf(0x1ce)],'type':_0x5c36d9[_0x4a1ddf(0x20b)],'config':_0x5c36d9[_0x4a1ddf(0x2ba)],'width':_0x2bf7b5['width'],'setting':_0x2bf7b5}];});}[_0x6c183(0x449)](_0x34f254,_0x47b9d6){const _0x1c9cda=_0x6c183;var _0x498fe8;return I('BaseProjection.projectRows',()=>{const _0x244278=_0x2b5a;var _0x224ed4,_0x6c36a0;let _0x534c59=this['_projectTableRows'](_0x34f254),_0x2c5bc8=this[_0x244278(0x312)](_0x34f254['id'],_0x47b9d6),_0x4d648e=this[_0x244278(0x42b)](_0x34f254['id']),_0x5e19d0=this[_0x244278(0x2c6)][_0x244278(0x43e)](_0x2c5bc8);if(_0x5e19d0&&_0x5e19d0[_0x244278(0x2dd)]===this[_0x244278(0x191)]&&_0x5e19d0[_0x244278(0x291)]===this[_0x244278(0x353)](_0x34f254['id'])){if(_0x5e19d0['cellRevision']===_0x4d648e&&_0x5e19d0[_0x244278(0x2f8)]===_0x534c59)return _0x5e19d0[_0x244278(0x2c5)];if(_0x5e19d0['cellRevision']!==_0x4d648e&&!this['_cellInvalidationsTouchFields'](_0x34f254['id'],_0x5e19d0['cellRevision'],_0x4d648e,this[_0x244278(0x3b3)](_0x47b9d6))){let _0x56af3f=_0x5e19d0[_0x244278(0x2c5)]===_0x5e19d0[_0x244278(0x2f8)]?_0x534c59:this[_0x244278(0x239)](_0x5e19d0[_0x244278(0x2c5)],_0x534c59);if(_0x56af3f)return this['_projectedViewRowsCache'][_0x244278(0x49e)](_0x2c5bc8,{..._0x5e19d0,'rows':_0x56af3f,'baseRows':_0x534c59,'cellRevision':_0x4d648e}),_0x56af3f;}}let _0x456c5b=I(_0x244278(0x236),()=>this['_sortRows'](_0x34f254,_0x47b9d6,this[_0x244278(0x19a)](_0x34f254,_0x47b9d6,_0x534c59)),{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x244278(0x20b)],'rows':_0x534c59[_0x244278(0x13c)],'filters':(_0x47b9d6==null||(_0x224ed4=_0x47b9d6[_0x244278(0x2be)])==null?void 0x0:_0x224ed4[_0x244278(0x396)][_0x244278(0x13c)])??0x0,'sorts':(_0x47b9d6==null||(_0x6c36a0=_0x47b9d6[_0x244278(0x277)])==null?void 0x0:_0x6c36a0[_0x244278(0x13c)])??0x0});return this[_0x244278(0x2c6)][_0x244278(0x49e)](_0x2c5bc8,{'table':_0x34f254,'rows':_0x456c5b,'baseRows':_0x534c59,'globalRevision':this[_0x244278(0x191)],'tableRevision':this[_0x244278(0x353)](_0x34f254['id']),'cellRevision':_0x4d648e}),_0x456c5b;},{'tableId':_0x34f254['id'],'viewId':_0x47b9d6==null?void 0x0:_0x47b9d6['id'],'viewType':_0x47b9d6==null?void 0x0:_0x47b9d6[_0x1c9cda(0x20b)],'records':((_0x498fe8=_0x34f254[_0x1c9cda(0x1e7)])==null?void 0x0:_0x498fe8['length'])??Object[_0x1c9cda(0x24c)](_0x34f254['records']??{})['length']});}[_0x6c183(0x32b)](_0x2d40b7){const _0x211a8d=_0x6c183;var _0x4a3bf7;return I(_0x211a8d(0x4c9),()=>{const _0x46c208=_0x211a8d;var _0x2665e8;let _0x13467a=this[_0x46c208(0x42b)](_0x2d40b7['id']),_0x528595=this[_0x46c208(0x484)][_0x46c208(0x43e)](_0x2d40b7['id']);if(_0x528595&&_0x528595['globalRevision']===this[_0x46c208(0x191)]&&_0x528595[_0x46c208(0x291)]===this[_0x46c208(0x353)](_0x2d40b7['id'])){if(_0x528595[_0x46c208(0x21d)]===_0x13467a&&fi(_0x528595['table'],_0x2d40b7))return _0x528595['table']=_0x2d40b7,_0x528595[_0x46c208(0x2c5)];let _0x5ede6d=this[_0x46c208(0x44c)](_0x2d40b7,_0x528595,_0x13467a);if(_0x5ede6d)return _0x5ede6d;}ui(_0x2d40b7)||L(_0x2d40b7);let _0x4becc7=(_0x2665e8=_0x2d40b7[_0x46c208(0x1e7)])!=null&&_0x2665e8['length']?_0x2d40b7[_0x46c208(0x1e7)]:hi(_0x2d40b7[_0x46c208(0x258)]),_0x5a1128=I(_0x46c208(0x2b4),()=>{const _0x1733fa=_0x46c208;let _0x4d123d=[];for(let _0x568116 of _0x4becc7){let _0x329c22=_0x2d40b7['records'][_0x568116];if(!_0x329c22)continue;let _0x116d61={};for(let _0x33e3d1 of _0x2d40b7[_0x1733fa(0x3b5)])_0x116d61[_0x33e3d1]=yt(_0x2d40b7,_0x329c22['id'],_0x33e3d1);_0x4d123d['push']({'recordId':_0x329c22['id'],'values':_0x116d61});}return _0x4d123d;},{'tableId':_0x2d40b7['id'],'records':_0x4becc7[_0x46c208(0x13c)],'fields':_0x2d40b7[_0x46c208(0x3b5)]['length']});return this[_0x46c208(0x484)][_0x46c208(0x49e)](_0x2d40b7['id'],{'table':_0x2d40b7,'rows':_0x5a1128,'rowIndexById':li(_0x5a1128),'globalRevision':this[_0x46c208(0x191)],'tableRevision':this[_0x46c208(0x353)](_0x2d40b7['id']),'cellRevision':_0x13467a}),_0x5a1128;},{'tableId':_0x2d40b7['id'],'records':((_0x4a3bf7=_0x2d40b7[_0x211a8d(0x1e7)])==null?void 0x0:_0x4a3bf7[_0x211a8d(0x13c)])??Object[_0x211a8d(0x24c)](_0x2d40b7[_0x211a8d(0x258)]??{})[_0x211a8d(0x13c)],'fields':_0x2d40b7[_0x211a8d(0x3b5)]['length']});}[_0x6c183(0x44c)](_0x1f14bd,_0x1f6cdb,_0x50593c){const _0x182c41=_0x6c183;let _0x568a9b=(this['_cellInvalidations']['get'](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x340743=>_0x340743['revision']>_0x1f6cdb[_0x182c41(0x21d)]&&_0x340743[_0x182c41(0x4c5)]<=_0x50593c);if(!_0x568a9b['length'])return _0x1f6cdb[_0x182c41(0x4c7)]===_0x1f14bd?_0x1f6cdb[_0x182c41(0x2c5)]:null;let _0x356198=_0x1f6cdb[_0x182c41(0x2c5)],_0x1601ac=new Map();for(let _0x42b993 of _0x568a9b){let _0x5d149d=_0x1601ac[_0x182c41(0x43e)](_0x42b993[_0x182c41(0x347)]);_0x5d149d||(_0x5d149d=new Set(),_0x1601ac['set'](_0x42b993[_0x182c41(0x347)],_0x5d149d)),_0x5d149d[_0x182c41(0x2ee)](_0x42b993['fieldId']);}for(let [_0x3506b7,_0x24d76f]of _0x1601ac){if(!_0x1f14bd[_0x182c41(0x258)][_0x3506b7])return null;let _0x3c522d=_0x1f6cdb[_0x182c41(0x3d8)]['get'](_0x3506b7);if(_0x3c522d==null)return null;_0x356198===_0x1f6cdb['rows']&&(_0x356198=[..._0x1f6cdb[_0x182c41(0x2c5)]]);let _0x18818f=_0x356198[_0x3c522d],_0x272c5f={..._0x18818f[_0x182c41(0x227)]};_0x24d76f[_0x182c41(0x2e0)](_0x206c13=>{_0x272c5f[_0x206c13]=yt(_0x1f14bd,_0x3506b7,_0x206c13);}),_0x356198[_0x3c522d]={..._0x18818f,'values':_0x272c5f};}let _0x1d6f33={'table':_0x1f14bd,'rows':_0x356198,'rowIndexById':_0x1f6cdb[_0x182c41(0x3d8)],'globalRevision':this[_0x182c41(0x191)],'tableRevision':this[_0x182c41(0x353)](_0x1f14bd['id']),'cellRevision':_0x50593c};return this['_projectedRowsCache'][_0x182c41(0x49e)](_0x1f14bd['id'],_0x1d6f33),this[_0x182c41(0x40c)][_0x182c41(0x49e)](_0x1f14bd['id'],(this[_0x182c41(0x40c)][_0x182c41(0x43e)](_0x1f14bd['id'])??[])[_0x182c41(0x2be)](_0x35aed6=>_0x35aed6[_0x182c41(0x4c5)]>Math['max'](0x0,_0x50593c-0x100))),_0x356198;}[_0x6c183(0x239)](_0x1d44c6,_0x50fff7){const _0x5e6449=_0x6c183;let _0x1d8219=new Map(_0x50fff7[_0x5e6449(0x141)](_0x292643=>[_0x292643[_0x5e6449(0x347)],_0x292643])),_0x4824ba=!0x1,_0x2ad52e=_0x1d44c6['map'](_0xc5c951=>{const _0x296164=_0x5e6449;let _0x32d144=_0x1d8219[_0x296164(0x43e)](_0xc5c951['recordId']);return _0x32d144?_0x32d144===_0xc5c951?_0xc5c951:(_0x4824ba=!0x0,_0x32d144):_0xc5c951;});return _0x4824ba?_0x2ad52e:_0x1d44c6;}[_0x6c183(0x237)](_0x2cb009,_0x2f94c6,_0x126f39,_0x151a56){const _0x17ef79=_0x6c183;return!_0x151a56['size']||_0x2f94c6===_0x126f39?!0x1:_0x126f39-_0x2f94c6>0x100||(this[_0x17ef79(0x40c)][_0x17ef79(0x43e)](_0x2cb009)??[])[_0x17ef79(0x185)](_0x5f2675=>_0x5f2675[_0x17ef79(0x4c5)]>_0x2f94c6&&_0x5f2675[_0x17ef79(0x4c5)]<=_0x126f39&&_0x151a56[_0x17ef79(0x34b)](_0x5f2675[_0x17ef79(0x2b0)]));}['_filterSortFieldIds'](_0x5d71c1){const _0x29a4b2=_0x6c183;var _0x2909de,_0x5b1333;let _0x23d0fc=new Set();return _0x5d71c1==null||(_0x2909de=_0x5d71c1[_0x29a4b2(0x2be)])==null||_0x2909de[_0x29a4b2(0x396)][_0x29a4b2(0x2e0)](_0x50916b=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x50916b[_0x29a4b2(0x2b0)])),_0x5d71c1==null||(_0x5b1333=_0x5d71c1[_0x29a4b2(0x277)])==null||_0x5b1333['forEach'](_0x9f3820=>_0x23d0fc[_0x29a4b2(0x2ee)](_0x9f3820['fieldId'])),_0x23d0fc;}['_groupProjectionFieldIds'](_0x13c31d){const _0x3549d3=_0x6c183;var _0x12afae;let _0x4c837f=this[_0x3549d3(0x3b3)](_0x13c31d);return(_0x12afae=_0x13c31d[_0x3549d3(0x1f2)])==null||_0x12afae[_0x3549d3(0x2e0)](_0x89f287=>_0x4c837f[_0x3549d3(0x2ee)](_0x89f287[_0x3549d3(0x2b0)])),_0x4c837f;}[_0x6c183(0x19a)](_0x26b5b9,_0x5d8730,_0x107718){const _0x1d8e91=_0x6c183;let _0x33c84d=_0x5d8730==null?void 0x0:_0x5d8730[_0x1d8e91(0x2be)];if(!(_0x33c84d!=null&&_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x13c)]))return _0x107718;let _0x45a85b=_0x33c84d[_0x1d8e91(0x396)][_0x1d8e91(0x2be)](_0x312696=>!Ii(_0x312696));return _0x45a85b['length']?_0x107718[_0x1d8e91(0x2be)](_0x5f5987=>{const _0x2a9736=_0x1d8e91;if(_0x33c84d[_0x2a9736(0x278)]===_0x6d8219['OR']){for(let _0x20df96 of _0x45a85b){let _0x5db49a=_0x26b5b9['fields'][_0x20df96['fieldId']];if(!_0x5db49a||this['_fieldRegistry'][_0x2a9736(0x43e)](_0x5db49a[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987[_0x2a9736(0x227)][_0x5db49a['id']],_0x20df96[_0x2a9736(0x220)],_0x20df96[_0x2a9736(0x302)],_0x5db49a))return!0x0;}return!0x1;}for(let _0x52b382 of _0x45a85b){let _0x56d243=_0x26b5b9[_0x2a9736(0x398)][_0x52b382[_0x2a9736(0x2b0)]];if(_0x56d243&&!this[_0x2a9736(0x287)]['get'](_0x56d243[_0x2a9736(0x20b)])[_0x2a9736(0x2be)](_0x5f5987['values'][_0x56d243['id']],_0x52b382[_0x2a9736(0x220)],_0x52b382[_0x2a9736(0x302)],_0x56d243))return!0x1;}return!0x0;}):_0x107718;}[_0x6c183(0x30a)](_0x573fe5,_0x180d52,_0x4da7aa){const _0x493294=_0x6c183;let _0x5add88=(_0x180d52==null?void 0x0:_0x180d52[_0x493294(0x277)])??[];if(!_0x5add88['length'])return _0x4da7aa;let _0x4d54d8=_0x5add88[_0x493294(0x17a)](_0x232f67=>{const _0x19bd14=_0x493294;let _0x551456=_0x573fe5[_0x19bd14(0x398)][_0x232f67[_0x19bd14(0x2b0)]];return _0x551456?[{..._0x232f67,'field':_0x551456}]:[];});return _0x4d54d8['length']?this[_0x493294(0x3e2)](_0x4d54d8)?this[_0x493294(0x230)](_0x4d54d8,_0x4da7aa):[..._0x4da7aa][_0x493294(0x277)]((_0x5531b9,_0x2eea00)=>{const _0x4a29d3=_0x493294;for(let _0x4b75a7 of _0x4d54d8){let _0x4a88ce=_0x4b75a7[_0x4a29d3(0x2d5)],_0x3b4d9a=this['_fieldRegistry'][_0x4a29d3(0x43e)](_0x4a88ce[_0x4a29d3(0x20b)])[_0x4a29d3(0x139)](_0x5531b9[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x2eea00[_0x4a29d3(0x227)][_0x4a88ce['id']],_0x4a88ce);if(_0x3b4d9a!==0x0)return _0x4b75a7[_0x4a29d3(0x12f)]===_0x574bb1[_0x4a29d3(0x35c)]?-_0x3b4d9a:_0x3b4d9a;}return 0x0;}):_0x4da7aa;}[_0x6c183(0x3e2)](_0x50a031){const _0x12e12b=_0x6c183;return _0x50a031[_0x12e12b(0x387)](_0x7113f9=>ai['has'](_0x7113f9['field'][_0x12e12b(0x20b)]));}[_0x6c183(0x230)](_0x52415f,_0x592de4){const _0xb3df92=_0x6c183;return _0x592de4[_0xb3df92(0x141)]((_0x5e3236,_0xa240a9)=>({'row':_0x5e3236,'index':_0xa240a9,'keys':_0x52415f['map'](_0x1f3915=>_0x5e3236[_0xb3df92(0x227)][_0x1f3915[_0xb3df92(0x2b0)]])}))[_0xb3df92(0x277)]((_0x5e186a,_0x42a86b)=>{const _0x5f8785=_0xb3df92;for(let _0x3caeb6=0x0;_0x3caeb6<_0x52415f['length'];_0x3caeb6++){let _0x6ce8ce=Fi(_0x5e186a['keys'][_0x3caeb6],_0x42a86b[_0x5f8785(0x24c)][_0x3caeb6]);if(_0x6ce8ce!==0x0)return _0x52415f[_0x3caeb6][_0x5f8785(0x12f)]===_0x574bb1[_0x5f8785(0x35c)]?-_0x6ce8ce:_0x6ce8ce;}return _0x5e186a['index']-_0x42a86b[_0x5f8785(0x159)];})[_0xb3df92(0x141)](_0x2d3c0a=>_0x2d3c0a[_0xb3df92(0x4b3)]);}[_0x6c183(0x3eb)](_0x4d2720,_0x49e756,_0xbc4380){const _0x29f414=_0x6c183;var _0x17327a;return I(_0x29f414(0x124),()=>{const _0x229046=_0x29f414;var _0x581a4b;if(!((_0x581a4b=_0x49e756[_0x229046(0x1f2)])!=null&&_0x581a4b[_0x229046(0x13c)]))return[];let _0x134425=_0x49e756[_0x229046(0x1f2)][_0x229046(0x2be)](_0x4817f4=>_0x4d2720[_0x229046(0x398)][_0x4817f4['fieldId']]);if(!_0x134425[_0x229046(0x13c)])return[];let _0x1d724e=this[_0x229046(0x3d5)](_0x4d2720['id'],_0x49e756,_0x134425),_0x525741=this[_0x229046(0x42b)](_0x4d2720['id']),_0x468964=this[_0x229046(0x14f)][_0x229046(0x43e)](_0x1d724e);if(_0x468964&&_0x468964[_0x229046(0x2dd)]===this[_0x229046(0x191)]&&_0x468964[_0x229046(0x291)]===this[_0x229046(0x353)](_0x4d2720['id'])){if(_0x468964[_0x229046(0x21d)]===_0x525741&&_0x468964[_0x229046(0x2c5)]===_0xbc4380)return _0x468964[_0x229046(0x345)];if(_0x468964[_0x229046(0x21d)]!==_0x525741&&!this[_0x229046(0x237)](_0x4d2720['id'],_0x468964['cellRevision'],_0x525741,this[_0x229046(0x150)](_0x49e756)))return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{..._0x468964,'rows':_0xbc4380,'cellRevision':_0x525741}),_0x468964[_0x229046(0x345)];}let _0x22f523=new Map();for(let _0x5a7d6f of _0xbc4380){let _0x420685=_0x22f523,_0x9ceeca='';for(let _0x2de4a7=0x0;_0x2de4a7<_0x134425[_0x229046(0x13c)];_0x2de4a7++){let _0x3cd911=_0x134425[_0x2de4a7],_0x32457b=_0x5a7d6f['values'][_0x3cd911['fieldId']],_0x131ea8=ci(_0x32457b),_0x39f596=_0x3cd911[_0x229046(0x2b0)]+'\x00'+_0x131ea8,_0x210c47=_0x9ceeca+'/'+_0x3cd911[_0x229046(0x2b0)]+':'+_0x131ea8,_0x1d1a56=_0x420685[_0x229046(0x43e)](_0x39f596);_0x1d1a56||(_0x1d1a56={'key':_0x131ea8,'value':_0x32457b,'path':_0x210c47,'label':_0x131ea8||_0x229046(0x445),'fieldId':_0x3cd911[_0x229046(0x2b0)],'level':_0x2de4a7,'recordIds':[],'children':new Map()},_0x420685[_0x229046(0x49e)](_0x39f596,_0x1d1a56)),_0x1d1a56[_0x229046(0x397)][_0x229046(0x174)](_0x5a7d6f[_0x229046(0x347)]),_0x420685=_0x1d1a56[_0x229046(0x126)],_0x9ceeca=_0x210c47;}}let _0x51b526=this[_0x229046(0x358)](_0x134425,_0x22f523,0x0);return this[_0x229046(0x14f)][_0x229046(0x49e)](_0x1d724e,{'table':_0x4d2720,'rows':_0xbc4380,'groups':_0x51b526,'globalRevision':this[_0x229046(0x191)],'tableRevision':this[_0x229046(0x353)](_0x4d2720['id']),'cellRevision':_0x525741}),_0x51b526;},{'tableId':_0x4d2720['id'],'viewId':_0x49e756['id'],'viewType':_0x49e756[_0x29f414(0x20b)],'rows':_0xbc4380[_0x29f414(0x13c)],'groupFields':((_0x17327a=_0x49e756[_0x29f414(0x1f2)])==null?void 0x0:_0x17327a['length'])??0x0});}[_0x6c183(0x358)](_0x330f92,_0x3f3138,_0x32c956){const _0x4131e9=_0x6c183;var _0x59b6ff;let _0x189fce=Array[_0x4131e9(0x1d5)](_0x3f3138['values']()),_0x32e90c=(_0x59b6ff=_0x330f92[_0x32c956])==null?void 0x0:_0x59b6ff[_0x4131e9(0x12f)];return _0x32e90c&&_0x189fce[_0x4131e9(0x277)]((_0x5528c6,_0x527102)=>{const _0x15e803=_0x4131e9;let _0x15128f=_0x5528c6[_0x15e803(0x2e1)]['localeCompare'](_0x527102[_0x15e803(0x2e1)]);return _0x32e90c===_0x574bb1[_0x15e803(0x35c)]?-_0x15128f:_0x15128f;}),_0x189fce[_0x4131e9(0x141)](_0x13ef2b=>({'key':_0x13ef2b[_0x4131e9(0x2e1)],'value':_0x13ef2b[_0x4131e9(0x350)],'path':_0x13ef2b[_0x4131e9(0x2c2)],'label':_0x13ef2b['label'],'fieldId':_0x13ef2b['fieldId'],'level':_0x13ef2b[_0x4131e9(0x395)],'recordIds':_0x13ef2b['recordIds'],'children':this[_0x4131e9(0x358)](_0x330f92,_0x13ef2b['children'],_0x32c956+0x1)}));}[_0x6c183(0x271)](_0x3eadc9,_0x3d39d0,_0x3c4c51){const _0x3bc5c0=_0x6c183;let _0x1cc03f=_0x3c4c51??_0x3eadc9[_0x3bc5c0(0x3b2)],_0x4bf5ae=_0x3d39d0[_0x3bc5c0(0x227)][_0x1cc03f];return _0x4bf5ae==null?'':String(_0x4bf5ae);}[_0x6c183(0x373)](_0x4bd508){const _0x50ecf2=_0x6c183;if(Array['isArray'](_0x4bd508))return _0x4bd508[_0x50ecf2(0x141)](String);if(typeof _0x4bd508==_0x50ecf2(0x425)&&_0x4bd508)return[_0x4bd508];}[_0x6c183(0x403)](_0x2e75c3){const _0x4d879d=_0x6c183;return this[_0x4d879d(0x287)][_0x4d879d(0x43e)](_0x2e75c3['type'])[_0x4d879d(0x2fd)](_0x2e75c3);}};si=X([Y(0x0,_0x490adb(mr))],si);function _0x2b5a(_0x2b76f9,_0x55d52f){_0x2b76f9=_0x2b76f9-0x113;const _0x437642=_0x4376();let _0x2b5af1=_0x437642[_0x2b76f9];return _0x2b5af1;}function ci(_0x5eecd4){return _0x5eecd4==null?'':String(_0x5eecd4);}function li(_0x3e6fbc){const _0x244c7a=_0x6c183;return new Map(_0x3e6fbc[_0x244c7a(0x141)]((_0x25c40e,_0x3320f4)=>[_0x25c40e[_0x244c7a(0x347)],_0x3320f4]));}function ui(_0x11d53f){const _0x51e5d6=_0x6c183;return!!(Array[_0x51e5d6(0x431)](_0x11d53f[_0x51e5d6(0x1e7)])&&_0x11d53f[_0x51e5d6(0x375)]&&_0x11d53f['rowId']&&_0x11d53f['colIndex']&&_0x11d53f[_0x51e5d6(0x1fe)]&&_0x11d53f[_0x51e5d6(0x389)]);}function di(_0x489cd0){const _0x24791e=_0x6c183;let _0x750535=(_0x489cd0==null?void 0x0:_0x489cd0[_0x24791e(0x396)]['filter'](_0x2559c6=>!Ii(_0x2559c6)))??[];return!_0x489cd0||!_0x750535[_0x24791e(0x13c)]?null:{'conjunction':_0x489cd0[_0x24791e(0x278)],'conditions':_0x750535['map'](_0x3f02cc=>({'fieldId':_0x3f02cc['fieldId'],'operator':_0x3f02cc[_0x24791e(0x220)],'operand':_0x3f02cc[_0x24791e(0x302)]}))};}function fi(_0x300a6d,_0x128d99){const _0x25719d=_0x6c183;return _0x300a6d[_0x25719d(0x258)]===_0x128d99[_0x25719d(0x258)]&&_0x300a6d[_0x25719d(0x1e7)]===_0x128d99[_0x25719d(0x1e7)]&&_0x300a6d[_0x25719d(0x398)]===_0x128d99['fields']&&_0x300a6d['fieldOrder']===_0x128d99['fieldOrder']&&_0x300a6d[_0x25719d(0x389)]===_0x128d99['cellData']&&_0x300a6d[_0x25719d(0x375)]===_0x128d99['rowIndex']&&_0x300a6d[_0x25719d(0x3d0)]===_0x128d99[_0x25719d(0x3d0)]&&_0x300a6d[_0x25719d(0x390)]===_0x128d99['colIndex']&&_0x300a6d['colId']===_0x128d99['colId'];}function pi(_0x45be31){const _0x18082f=_0x6c183;return _0x45be31!=null&&_0x45be31[_0x18082f(0x13c)]?_0x45be31[_0x18082f(0x141)](_0x36b882=>({'fieldId':_0x36b882[_0x18082f(0x2b0)],'direction':_0x36b882[_0x18082f(0x12f)]})):null;}function mi(_0x537de6){const _0x50addd=_0x6c183;if(typeof _0x537de6!=_0x50addd(0x3d7)||!_0x537de6)return JSON[_0x50addd(0x25f)](_0x537de6)??_0x50addd(0x31f);if(Array['isArray'](_0x537de6))return'['+_0x537de6[_0x50addd(0x141)](mi)[_0x50addd(0x11a)](',')+']';let _0x20eb1f=_0x537de6;return'{'+Object['keys'](_0x20eb1f)[_0x50addd(0x277)]()[_0x50addd(0x141)](_0x25f004=>JSON['stringify'](_0x25f004)+':'+mi(_0x20eb1f[_0x25f004]))[_0x50addd(0x11a)](',')+'}';}function hi(_0x57d296){const _0x3d43ce=_0x6c183;let _0x107a55=Object['values'](_0x57d296)[_0x3d43ce(0x277)]((_0x1020d4,_0x3ea8b8)=>_0x1020d4[_0x3d43ce(0x4a1)][_0x3d43ce(0x37a)](_0x3ea8b8[_0x3d43ce(0x4a1)])),_0xf4ee4f=[];for(let _0xfc5a61 of _0x107a55)_0xf4ee4f[_0x3d43ce(0x174)](_0xfc5a61['id']);return _0xf4ee4f;}function gi(_0x31bda5){const _0x2b4c3d=_0x6c183;return{'weekdays':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x1ca)])&&_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x13c)]?[...new Set(_0x31bda5[_0x2b4c3d(0x1ca)][_0x2b4c3d(0x2be)](_0x351398=>Number[_0x2b4c3d(0x406)](_0x351398)&&_0x351398>=0x1&&_0x351398<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x2b4c3d(0x431)](_0x31bda5==null?void 0x0:_0x31bda5[_0x2b4c3d(0x444)])?_0x31bda5[_0x2b4c3d(0x444)][_0x2b4c3d(0x17a)](_0x38d091=>!_0x38d091||!Number[_0x2b4c3d(0x143)](_0x38d091[_0x2b4c3d(0x38f)])?[]:[{'id':String(_0x38d091['id']||_0x2b4c3d(0x487)+_0x38d091[_0x2b4c3d(0x38f)]),'date':Z(Number(_0x38d091[_0x2b4c3d(0x38f)])),'name':String(_0x38d091[_0x2b4c3d(0x2a3)]||_0x2b4c3d(0x3d1)),'type':_0x38d091['type']===_0x2b4c3d(0x3a2)?_0x2b4c3d(0x3a2):_0x2b4c3d(0x190)}]):[]};}function _i(_0x27084a,_0x210df6,_0x5a142b,_0xcc411a){let _0x31227b=xi(_0x27084a,_0x210df6),_0x1fd688=Si(_0x27084a,_0x5a142b),_0x531b7f=vi(_0x27084a,_0x31227b,_0x1fd688,_0xcc411a);return{'scale':_0x27084a,'start':_0x31227b,'end':_0x1fd688,'unitWidth':bi(_0x27084a),'majorHeaders':yi(_0x27084a,_0x31227b,_0x1fd688),'columns':_0x531b7f};}function vi(_0x14b39f,_0x480108,_0x44c827,_0x13d3f6){const _0x32a676=_0x6c183;let _0x5ce2a5=[],_0x52f0d6=_0x480108;for(;_0x52f0d6<_0x44c827;){let _0x529a6a=_0x14b39f===_0x32a676(0x1ea)?ji(_0x52f0d6,0x7):_0x14b39f===_0x32a676(0x361)?Mi(_0x52f0d6,0x1):ji(_0x52f0d6,0x1);_0x5ce2a5[_0x32a676(0x174)]({'id':_0x14b39f+'-'+_0x52f0d6,'label':Ci(_0x14b39f,_0x52f0d6,_0x529a6a),'majorLabel':wi(_0x14b39f,_0x52f0d6),'start':_0x52f0d6,'end':_0x529a6a,'nonWorking':Ei(_0x52f0d6,_0x529a6a,_0x13d3f6)}),_0x52f0d6=_0x529a6a;}return _0x5ce2a5;}function yi(_0x5c7694,_0x5693e2,_0x358f84){const _0x10c92a=_0x6c183;let _0x1cb32c=[],_0x2b266f=_0x5c7694===_0x10c92a(0x361)?Ai(_0x5693e2):ki(_0x5693e2);for(;_0x2b266f<_0x358f84;){let _0x516c76=_0x5c7694===_0x10c92a(0x361)?Ni(_0x2b266f,0x1):Mi(_0x2b266f,0x1);_0x1cb32c[_0x10c92a(0x174)]({'id':_0x10c92a(0x205)+_0x2b266f,'label':_0x5c7694===_0x10c92a(0x361)?String(new Date(_0x2b266f)[_0x10c92a(0x415)]()):Pi(_0x2b266f),'start':_0x2b266f,'end':_0x516c76}),_0x2b266f=_0x516c76;}return _0x1cb32c;}function bi(_0x58a07b){const _0x4cc2da=_0x6c183;switch(_0x58a07b){case _0x4cc2da(0x2de):return 0xac;case'quarter':return 0xac;case _0x4cc2da(0x361):return 0x88;default:return 0x56;}}function xi(_0x53e470,_0x2e46d5){const _0x50cba7=_0x6c183;return _0x53e470===_0x50cba7(0x361)?Ai(_0x2e46d5):_0x53e470===_0x50cba7(0x1ea)?Oi(_0x2e46d5):Z(_0x2e46d5);}function Si(_0x54a2f8,_0x48efb3){const _0x5b0cd8=_0x6c183;return _0x54a2f8===_0x5b0cd8(0x361)?Ni(Ai(_0x48efb3),0x1):_0x54a2f8===_0x5b0cd8(0x1ea)?ji(Oi(_0x48efb3),0x7):ji(Z(_0x48efb3),0x1);}function Ci(_0x2b26e1,_0x4aa76e,_0x43de02){const _0x2eabab=_0x6c183;let _0x402922=new Date(_0x4aa76e);return _0x2b26e1===_0x2eabab(0x1ea)?_0x402922[_0x2eabab(0x3ed)]()+'-'+new Date(_0x43de02-oi)[_0x2eabab(0x3ed)]():_0x2b26e1===_0x2eabab(0x361)?_0x402922[_0x2eabab(0x1bc)](_0x2eabab(0x2da),{'month':_0x2eabab(0x416),'timeZone':_0x2eabab(0x4b2)}):String(_0x402922[_0x2eabab(0x3ed)]());}function wi(_0x5926f1,_0x28fc65){return _0x5926f1==='year'?String(new Date(_0x28fc65)['getUTCFullYear']()):Pi(_0x28fc65);}function Ti(_0x239cff,_0x42f286,_0x3da196){let _0x1f92db=gi(_0x3da196),_0xc82be7=0x0;for(let _0x1ff74c=Z(_0x239cff);_0x1ff74c<=Z(_0x42f286);_0x1ff74c=ji(_0x1ff74c,0x1))Di(_0x1ff74c,_0x1f92db)||_0xc82be7++;return _0xc82be7;}function Ei(_0x3de10a,_0x4472fd,_0x250f70){if(!_0x250f70)return!0x1;let _0x376082=gi(_0x250f70);for(let _0x50c41c=Z(_0x3de10a);_0x50c41c<_0x4472fd;_0x50c41c=ji(_0x50c41c,0x1))if(!Di(_0x50c41c,_0x376082))return!0x1;return!0x0;}function Di(_0x44d86d,_0x1767ee){const _0x6a5a37=_0x6c183;let _0x525529=Z(_0x44d86d),_0x4b9a07=_0x1767ee['exceptions'][_0x6a5a37(0x392)](_0x1a89c4=>Z(_0x1a89c4['date'])===_0x525529);if(_0x4b9a07)return _0x4b9a07[_0x6a5a37(0x20b)]==='off';let _0xced94=new Date(_0x525529)['getUTCDay'](),_0xc5540=_0xced94===0x0?0x7:_0xced94;return!_0x1767ee['weekdays'][_0x6a5a37(0x16a)](_0xc5540);}function Z(_0x3dafd1){const _0x318b1e=_0x6c183;let _0xfae21b=new Date(_0x3dafd1);return Date[_0x318b1e(0x4b2)](_0xfae21b[_0x318b1e(0x415)](),_0xfae21b[_0x318b1e(0x3f8)](),_0xfae21b['getUTCDate']());}function Oi(_0x25b9b4){const _0x27c005=_0x6c183;let _0x316fe9=Z(_0x25b9b4),_0x5f1d47=new Date(_0x316fe9)[_0x27c005(0x19d)]();return ji(_0x316fe9,-(_0x5f1d47===0x0?0x6:_0x5f1d47-0x1));}function ki(_0x12946c){const _0x52745f=_0x6c183;let _0x16362e=new Date(_0x12946c);return Date[_0x52745f(0x4b2)](_0x16362e[_0x52745f(0x415)](),_0x16362e[_0x52745f(0x3f8)](),0x1);}function Ai(_0x4ffdb9){const _0x301d61=_0x6c183;let _0x2ef2c1=new Date(_0x4ffdb9);return Date[_0x301d61(0x4b2)](_0x2ef2c1[_0x301d61(0x415)](),0x0,0x1);}function ji(_0x378fb1,_0x57e240){return _0x378fb1+_0x57e240*oi;}function Mi(_0x4cef62,_0x44196d){const _0x50d057=_0x6c183;let _0x4789a1=new Date(_0x4cef62);return Date[_0x50d057(0x4b2)](_0x4789a1[_0x50d057(0x415)](),_0x4789a1[_0x50d057(0x3f8)]()+_0x44196d,0x1);}function Ni(_0x4f43de,_0x528ed4){const _0x50ddf2=_0x6c183;let _0x1ead8a=new Date(_0x4f43de);return Date[_0x50ddf2(0x4b2)](_0x1ead8a[_0x50ddf2(0x415)]()+_0x528ed4,0x0,0x1);}function Pi(_0x2b13ba){const _0x4aaf69=_0x6c183;let _0x1635e5=new Date(_0x2b13ba);return _0x1635e5[_0x4aaf69(0x1bc)](_0x4aaf69(0x2da),{'month':_0x4aaf69(0x416),'timeZone':'UTC'})+'\x20'+_0x1635e5[_0x4aaf69(0x415)]();}function Fi(_0x34748b,_0x2b358f){const _0x3206f1=_0x6c183;if(_0x34748b==null&&_0x2b358f==null)return 0x0;if(_0x34748b==null)return-0x1;if(_0x2b358f==null)return 0x1;if(typeof _0x34748b=='boolean'||typeof _0x2b358f==_0x3206f1(0x1cb))return Number(_0x34748b===!0x0)-Number(_0x2b358f===!0x0);let _0x199949=Number(_0x34748b),_0x568bc0=Number(_0x2b358f),_0x4b77d1=Number[_0x3206f1(0x143)](_0x199949),_0x246bd5=Number[_0x3206f1(0x143)](_0x568bc0);return _0x4b77d1&&_0x246bd5?_0x199949-_0x568bc0:_0x4b77d1?0x1:_0x246bd5?-0x1:String(_0x34748b)[_0x3206f1(0x37a)](String(_0x2b358f));}function Ii(_0x2a3500){const _0x16083c=_0x6c183;if(_0x2a3500[_0x16083c(0x220)]!=='is'&&_0x2a3500[_0x16083c(0x220)]!=='isNot')return!0x1;let _0x27eeec=_0x2a3500[_0x16083c(0x302)];return _0x27eeec==null?!0x0:typeof _0x27eeec=='string'?_0x27eeec[_0x16083c(0x226)]()==='':Array['isArray'](_0x27eeec)?_0x27eeec['length']===0x0:!0x1;}function Li(_0x7ec840,_0x10f713){const _0x1a2aa5=_0x6c183;var _0x38f11a;let _0x36fcc4=Array[_0x1a2aa5(0x431)]((_0x38f11a=_0x7ec840[_0x1a2aa5(0x2ba)])==null?void 0x0:_0x38f11a[_0x1a2aa5(0x2b3)])?_0x7ec840[_0x1a2aa5(0x2ba)][_0x1a2aa5(0x2b3)]:[];for(let _0x514975 of _0x36fcc4){if(_0x514975==null)continue;if(typeof _0x514975=='string'){if(_0x514975===_0x10f713)return{'id':_0x514975,'name':_0x514975};continue;}let _0x69e4cd=_0x514975,_0x446245=String(_0x69e4cd['id']??_0x69e4cd['name']??''),_0x59812a=String(_0x69e4cd[_0x1a2aa5(0x2a3)]??_0x69e4cd['id']??_0x446245);if(_0x446245===_0x10f713||_0x59812a===_0x10f713)return{'id':_0x446245,'name':_0x59812a,'color':_0x69e4cd[_0x1a2aa5(0x276)]==null?void 0x0:String(_0x69e4cd[_0x1a2aa5(0x276)])};}return null;}let Ri=function(_0x39905f){const _0x26e7c1=_0x6c183;return _0x39905f['CreateView']=_0x26e7c1(0x44d),_0x39905f['DeleteView']=_0x26e7c1(0x145),_0x39905f;}({});const Q={'id':'base.mutation.apply-base-json1','type':_0x22977e[_0x6c183(0x3b0)],'handler'(_0x4ec426,_0x57669f){const _0x26a48b=_0x6c183;let {unitId:_0x15bc5c,op:_0x590b24}=_0x57669f,_0xf1c4ea=_0x4ec426[_0x26a48b(0x43e)](_0x24efe9)[_0x26a48b(0x228)](_0x15bc5c,_0x5c5c99['UNIVER_BASE']);if(!_0xf1c4ea)return!0x1;let _0x515062=_0xf1c4ea[_0x26a48b(0x32f)](),_0x3f9fde=new z(),_0x581681=_0x3f9fde[_0x26a48b(0x311)](_0x590b24),_0x318c81=_0x3f9fde[_0x26a48b(0x4c3)](_0x515062,_0x590b24);return _0xf1c4ea[_0x26a48b(0x2ab)](_0x318c81),zi(_0x318c81,_0x581681,_0x4ec426[_0x26a48b(0x43e)](ii)),!0x0;}};function zi(_0xee9c59,_0x5f3ee1,_0x360099){const _0x516fa0=_0x6c183;let _0x5b41b2=new Set(),_0x3ccd0e=new Set(),_0x4aaba5=new Set();for(let _0x3e287e of _0x5f3ee1){if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x37d)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x288)]){let _0x18796d=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x288)];_0x4aaba5[_0x516fa0(0x34b)](_0x18796d)||(_0x4aaba5['add'](_0x18796d),_0x360099[_0x516fa0(0x132)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x288)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]===_0x516fa0(0x2d5)&&_0x3e287e[_0x516fa0(0x210)]&&_0x3e287e[_0x516fa0(0x2b0)]){let _0x282b27=_0x3e287e[_0x516fa0(0x210)]+'\x00'+_0x3e287e[_0x516fa0(0x2b0)];_0x3ccd0e[_0x516fa0(0x34b)](_0x282b27)||(_0x3ccd0e['add'](_0x282b27),_0x360099[_0x516fa0(0x3d4)](_0x3e287e[_0x516fa0(0x210)],_0x3e287e[_0x516fa0(0x2b0)]));continue;}if(_0x3e287e[_0x516fa0(0x28a)]!==_0x516fa0(0x1de)){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x23b549=Bi(_0xee9c59,_0x3e287e);if(!_0x23b549){_0x360099[_0x516fa0(0x3c7)]();return;}let _0x1b275c=_0x23b549['tableId']+'\x00'+_0x23b549['recordId']+'\x00'+_0x23b549[_0x516fa0(0x2b0)];_0x5b41b2['has'](_0x1b275c)||(_0x5b41b2[_0x516fa0(0x2ee)](_0x1b275c),_0x360099[_0x516fa0(0x1a1)](_0x23b549[_0x516fa0(0x210)],_0x23b549['recordId'],_0x23b549[_0x516fa0(0x2b0)]));}}function Bi(_0x189a20,_0x17eb4d){const _0x5a651e=_0x6c183;var _0x329e9d,_0x20098f;if(!_0x17eb4d[_0x5a651e(0x210)])return null;if(_0x17eb4d[_0x5a651e(0x347)]&&_0x17eb4d[_0x5a651e(0x2b0)])return{'tableId':_0x17eb4d['tableId'],'recordId':_0x17eb4d['recordId'],'fieldId':_0x17eb4d[_0x5a651e(0x2b0)]};if(_0x17eb4d[_0x5a651e(0x4b3)]==null||_0x17eb4d[_0x5a651e(0x229)]==null)return null;let _0x13398d=_0x189a20['tables'][_0x17eb4d[_0x5a651e(0x210)]],_0x4e3599=_0x13398d==null||(_0x329e9d=_0x13398d[_0x5a651e(0x3d0)])==null?void 0x0:_0x329e9d[_0x17eb4d['row']],_0x2a79ff=_0x13398d==null||(_0x20098f=_0x13398d[_0x5a651e(0x1fe)])==null?void 0x0:_0x20098f[_0x17eb4d[_0x5a651e(0x229)]];return!_0x4e3599||!_0x2a79ff?null:{'tableId':_0x17eb4d['tableId'],'recordId':_0x4e3599,'fieldId':_0x2a79ff};}const Vi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x481624[_0x6c183(0x383)](String[_0x6c183(0x3fc)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x6c183(0x296)](_0x3840b0,_0xef7da6=_0x3840b0['id']){const _0x444be5=_0x6c183;var _0x2943ad;let _0x2778df=((_0x2943ad=_0x3840b0[_0x444be5(0x1e7)])==null?void 0x0:_0x2943ad[_0x444be5(0x13c)])??Object['values'](_0x3840b0[_0x444be5(0x258)])[_0x444be5(0x13c)];return{'sheetId':_0xef7da6,'titleMap':new Map(_0x3840b0['fieldOrder']['map']((_0xec2dc9,_0x1acc3b)=>{const _0x3c6484=_0x444be5;var _0x12f1e4;return[((_0x12f1e4=_0x3840b0[_0x3c6484(0x398)][_0xec2dc9])==null?void 0x0:_0x12f1e4['name'])??_0xec2dc9,_0x1acc3b];})),'range':{'startRow':0x0,'endRow':Math[_0x444be5(0x482)](0x0,_0x2778df-0x1),'startColumn':0x0,'endColumn':Math['max'](0x0,_0x3840b0[_0x444be5(0x3b5)][_0x444be5(0x13c)]-0x1)},'showHeader':!0x1};}[_0x6c183(0x3a8)](_0x4157a9,_0xfc3f54){const _0x11a510=_0x6c183;let _0x60ab11=[],_0x15ed14=_0xfc3f54?new Set(_0xfc3f54):null,_0x41763c=_0x160d60(_0x4157a9);return Object['values'](_0x4157a9[_0x11a510(0x298)])['filter'](_0x151a8d=>!_0x15ed14||_0x15ed14['has'](_0x151a8d['id']))[_0x11a510(0x2e0)](_0x44640b=>{const _0x12976e=_0x11a510;let _0x39430e=this[_0x12976e(0x296)](_0x44640b,_0x44640b['id']);_0x60ab11[_0x12976e(0x174)]({'tableId':_0x44640b['id'],'tableName':_0x41763c[_0x12976e(0x43e)](_0x44640b['id']),'reference':_0x39430e});}),_0x60ab11;}[_0x6c183(0x3ab)](_0x1d26c8,_0x3d93f0,_0x59baab={}){const _0x4d4a90=_0x6c183;let _0x55c31d=_0x1d26c8[_0x4d4a90(0x226)]();if(!_0x55c31d)return{'valid':!0x0};if(na(_0x55c31d))return{'valid':!0x1,'reason':'[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.'};let _0x5cfcf6=_0x59baab[_0x4d4a90(0x17c)]?_0x160d60(_0x59baab[_0x4d4a90(0x17c)]):void 0x0;for(let _0x3cbc5f of ta(_0x55c31d)){let _0x4a7b22=ua(_0x3cbc5f,_0x3d93f0,_0x59baab[_0x4d4a90(0x17c)],_0x5cfcf6);if(!_0x4a7b22[_0x4d4a90(0x4c7)])return{'valid':!0x1,'reason':_0x4d4a90(0x49a)+_0x3cbc5f[_0x4d4a90(0x4bd)]+_0x4d4a90(0x251)};if(!_0x4a7b22[_0x4d4a90(0x2d5)])return{'valid':!0x1,'reason':_0x4d4a90(0x400)+_0x3cbc5f[_0x4d4a90(0x2d0)]+_0x4d4a90(0x2bf)};}return{'valid':!0x0};}[_0x6c183(0x26a)](_0x3c8e31,_0x367876,_0x4a2738={}){const _0x1d789d=_0x6c183;let _0x5d2639=new Set();for(let _0x45a0cf of this['getStructuredDependencies'](_0x3c8e31,_0x367876,_0x4a2738))_0x45a0cf[_0x1d789d(0x210)]===_0x367876['id']&&_0x5d2639[_0x1d789d(0x2ee)](_0x45a0cf['fieldId']);return Array[_0x1d789d(0x1d5)](_0x5d2639);}[_0x6c183(0x2ca)](_0x242502,_0x21501e,_0x380131={}){const _0xc7bdd1=_0x6c183;let _0x5c83b0=new Map(),_0x168013=_0x380131[_0xc7bdd1(0x17c)]?_0x160d60(_0x380131[_0xc7bdd1(0x17c)]):void 0x0;for(let _0x355593 of ta(_0x242502)){let _0xeda712=ua(_0x355593,_0x21501e,_0x380131[_0xc7bdd1(0x17c)],_0x168013);if(!_0xeda712[_0xc7bdd1(0x4c7)]||!_0xeda712['field'])continue;let _0xdb93c7=_0xeda712['table']['id']+'\x1f'+_0xeda712[_0xc7bdd1(0x2d5)]['id'];_0x5c83b0['set'](_0xdb93c7,{'tableId':_0xeda712['table']['id'],'fieldId':_0xeda712[_0xc7bdd1(0x2d5)]['id']});}return Array[_0xc7bdd1(0x1d5)](_0x5c83b0[_0xc7bdd1(0x227)]());}};function Zi(_0x42f92c,_0x14037f){const _0x330cef=_0x6c183;var _0x2454a1;let _0x2a2320=[],_0x2caf98=(_0x2454a1=_0x14037f[_0x330cef(0x42e)])==null?void 0x0:_0x2454a1[_0x42f92c['id']];return _0x2caf98&&Object['entries'](_0x2caf98)['forEach'](([_0x4b91be,_0x3fb16])=>{const _0x545cde=_0x330cef;let _0x3f3e7f=_0x42f92c[_0x545cde(0x298)][_0x4b91be];if(!_0x3f3e7f||!_0x3fb16)return;let _0x3d67b7=L(_0x3f3e7f),_0x17f303=[];new _0x47103a(_0x3fb16)['forValue']((_0x4d7531,_0x9ca94e,_0x580e8f)=>{const _0x1bb266=_0x545cde;let _0x530eb8=Qi(_0x3d67b7,_0x4d7531,_0x9ca94e,_0x580e8f);_0x530eb8&&_0x17f303[_0x1bb266(0x174)](_0x530eb8);}),_0x17f303[_0x545cde(0x13c)]&&_0x2a2320[_0x545cde(0x174)]({'unitId':_0x42f92c['id'],'tableId':_0x4b91be,'patches':_0x17f303});}),_0x2a2320;}function Qi(_0x34610b,_0x5b1a69,_0x2ce64c,_0x43ca6e){const _0x424899=_0x6c183;var _0x168363,_0x2d2020,_0x55862a;let _0x5342c4=(_0x168363=_0x34610b[_0x424899(0x3d0)])==null?void 0x0:_0x168363[_0x5b1a69],_0x325184=(_0x2d2020=_0x34610b['colId'])==null?void 0x0:_0x2d2020[_0x2ce64c];if(!_0x5342c4||!_0x34610b['records'][_0x5342c4]||!_0x325184)return null;let _0x5292d2=_0x34610b[_0x424899(0x398)][_0x325184];if(!_0x5292d2||_0x5292d2[_0x424899(0x20b)]!=='formula')return null;let _0x5e18a7=String(((_0x55862a=_0x5292d2[_0x424899(0x2ba)])==null?void 0x0:_0x55862a[_0x424899(0x3bc)])??'')[_0x424899(0x226)](),_0x3f57d0=(_0x43ca6e==null?void 0x0:_0x43ca6e['v'])??null,_0x12c475={'v':_0x3f57d0,'t':ea(_0x3f57d0),..._0x5b1a69===0x0&&_0x5e18a7?{'f':_0x5e18a7}:{},'si':_0x5292d2['id']};return $i(vt(_0x34610b,_0x5342c4,_0x325184),_0x12c475)?null:{'row':_0x5b1a69,'col':_0x2ce64c,'value':_0x12c475};}function $i(_0x54801c,_0xb16859){return _0x54801c!=null&&Object['is'](_0x54801c['v']??null,_0xb16859['v']??null)&&_0x54801c['t']===_0xb16859['t']&&_0x54801c['f']===_0xb16859['f']&&_0x54801c['si']===_0xb16859['si'];}function ea(_0x1e4b48){const _0x2a9117=_0x6c183;return typeof _0x1e4b48=='number'?_0x4dac72[_0x2a9117(0x324)]:typeof _0x1e4b48==_0x2a9117(0x1cb)?_0x4dac72[_0x2a9117(0x1b8)]:typeof _0x1e4b48=='string'?_0x4dac72[_0x2a9117(0x18a)]:null;}function ta(_0x173459){const _0x3c986d=_0x6c183;let _0x212359=ia(_0x173459,()=>''),_0x2bd9df=new Map(),_0x53b957=_0x56c7b0=>{const _0xa58719=_0x2b5a;_0x2bd9df[_0xa58719(0x49e)]((_0x56c7b0[_0xa58719(0x4bd)]??'')+'\x1f'+_0x56c7b0['fieldName'],_0x56c7b0);};for(let _0x3f52a9 of _0x212359[_0x3c986d(0x14a)](Ui))_0x53b957({'fieldName':_0x3f52a9[0x1],'scope':'this-row'});_0x212359=_0x212359[_0x3c986d(0x14e)](Wi,(_0x58cbfa,_0x36b73e,_0x522ec5,_0x587c69)=>(_0x53b957({'tableName':_0x36b73e,'fieldName':_0x587c69,'scope':_0x522ec5['toLowerCase']()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Gi,(_0x4e007a,_0x42ba1f,_0x28d5aa)=>(_0x53b957({'tableName':_0x42ba1f,'fieldName':_0x28d5aa,'scope':_0x3c986d(0x457)}),'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](qi,(_0xd4f9eb,_0x24fdb1,_0x4a9bc1,_0x15b69b)=>(_0x53b957({'fieldName':_0x15b69b,'scope':_0x4a9bc1[_0x3c986d(0x432)]()===_0x3c986d(0x1c3)?_0x3c986d(0x1c3):'this-row'}),_0x24fdb1+'\x20')),_0x212359=_0x212359[_0x3c986d(0x14e)](Ji,(_0x18e422,_0x1e4f7c,_0x33f8ac)=>(_0x53b957({'fieldName':_0x33f8ac,'scope':_0x3c986d(0x457)}),_0x1e4f7c+'\x20'));for(let _0x2e8968 of _0x212359['matchAll'](Ki))_0x53b957({'tableName':_0x2e8968[0x1],'fieldName':_0x2e8968[0x2]});for(let _0xb0612 of _0x212359[_0x3c986d(0x14a)](Yi))_0x53b957({'fieldName':_0xb0612[0x2],'scope':_0x3c986d(0x457)});return Array[_0x3c986d(0x1d5)](_0x2bd9df[_0x3c986d(0x227)]());}function na(_0x4b62b9){const _0x1634f7=_0x6c183;let _0x37f759=ia(_0x4b62b9,()=>'\x20')[_0x1634f7(0x14e)](Ui,'\x20')['replace'](Wi,'\x20')['replace'](Gi,'\x20')['replace'](qi,'$1\x20')[_0x1634f7(0x14e)](Ji,_0x1634f7(0x351))[_0x1634f7(0x14e)](Ki,'\x20')['replace'](Yi,_0x1634f7(0x351));return Vi[_0x1634f7(0x215)](_0x37f759);}function ra(_0x8601fa,_0x29dc63){return ca(oa(_0x8601fa,_0x29dc63),_0x29dc63);}function ia(_0x203208,_0x110e35){return aa(ra(_0x203208,_0x110e35),_0x110e35);}function aa(_0x1c820d,_0xfd49df){const _0x2f343a=_0x6c183;return _0x1c820d[_0x2f343a(0x14e)](/"(?:""|[^"])*"/g,_0xfd49df);}function oa(_0x111088,_0x385eb8){const _0xcaff5e=_0x6c183;return Hi[_0xcaff5e(0x2b5)]=0x0,_0x111088[_0xcaff5e(0x14e)](Hi,(_0x296c8e,_0x508d34)=>la(_0x111088,_0x508d34)?_0x296c8e:_0x385eb8(_0x296c8e));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x1b1ce4,_0x54e8fe){const _0x40c8ae=_0x6c183;let _0x47d6b0=[];for(sa[_0x40c8ae(0x2b5)]=0x0;;){let _0x101f90=sa[_0x40c8ae(0x27b)](_0x1b1ce4);if(_0x101f90==null)break;if(la(_0x1b1ce4,_0x101f90[_0x40c8ae(0x159)]))continue;let _0x5ae621=sa[_0x40c8ae(0x2b5)]-0x1,_0x5d3a2e=0x0;for(let _0x23fa07=_0x5ae621;_0x23fa07<_0x1b1ce4[_0x40c8ae(0x13c)];_0x23fa07++)if(_0x1b1ce4[_0x23fa07]==='['&&_0x5d3a2e++,_0x1b1ce4[_0x23fa07]===']'&&(_0x5d3a2e--,_0x5d3a2e===0x0)){_0x47d6b0[_0x40c8ae(0x174)]({'start':_0x101f90[_0x40c8ae(0x159)],'end':_0x23fa07+0x1}),sa[_0x40c8ae(0x2b5)]=_0x23fa07+0x1;break;}}if(_0x47d6b0['length']===0x0)return _0x1b1ce4;let _0x36bcbd='',_0x27172c=0x0;for(let _0x406b10 of _0x47d6b0)_0x36bcbd+=_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c,_0x406b10[_0x40c8ae(0x41a)]),_0x36bcbd+=_0x54e8fe(_0x1b1ce4['slice'](_0x406b10[_0x40c8ae(0x41a)],_0x406b10[_0x40c8ae(0x439)])),_0x27172c=_0x406b10[_0x40c8ae(0x439)];return _0x36bcbd+_0x1b1ce4[_0x40c8ae(0x12c)](_0x27172c);}function la(_0x51a254,_0x4693ad){let _0x3d356d=!0x1;for(let _0x530ea=0x0;_0x530ea<_0x4693ad;_0x530ea++)if(_0x51a254[_0x530ea]==='\x22'){if(_0x3d356d&&_0x51a254[_0x530ea+0x1]==='\x22'){_0x530ea++;continue;}_0x3d356d=!_0x3d356d;}return _0x3d356d;}function ua(_0x1f6a55,_0xaee627,_0xaec2d1,_0x496595){const _0x30417a=_0x6c183;let _0x41bfb6=da(_0x1f6a55[_0x30417a(0x4bd)],_0xaee627,_0xaec2d1,_0x496595);return{'table':_0x41bfb6,'field':_0x41bfb6?Object[_0x30417a(0x227)](_0x41bfb6[_0x30417a(0x398)])[_0x30417a(0x392)](_0x45b3d3=>_0x45b3d3['name']===_0x1f6a55['fieldName']):void 0x0};}function da(_0x3894a7,_0x12d883,_0x2dd7cf,_0x2a3263){const _0x226e35=_0x6c183;if(!_0x3894a7)return _0x12d883;if(!_0x2dd7cf){var _0x492212;let _0x2dbe43=_0x3894a7[_0x226e35(0x432)]();return _0x2dbe43===_0x12d883['id'][_0x226e35(0x432)]()||_0x2dbe43===_0x12d883[_0x226e35(0x2a3)][_0x226e35(0x432)]()||_0x2dbe43===((_0x492212=_0x12d883[_0x226e35(0x423)])==null?void 0x0:_0x492212[_0x226e35(0x432)]())?_0x12d883:void 0x0;}let _0x1561fc=_0x3894a7[_0x226e35(0x432)](),_0x146441=_0x2a3263??_0x160d60(_0x2dd7cf),_0x170d94=Object[_0x226e35(0x227)](_0x2dd7cf[_0x226e35(0x298)])[_0x226e35(0x2be)](_0x673145=>{const _0x579351=_0x226e35;var _0x3cf17b;return _0x673145['id'][_0x579351(0x432)]()===_0x1561fc||_0x673145[_0x579351(0x2a3)]['toLowerCase']()===_0x1561fc||((_0x3cf17b=_0x146441[_0x579351(0x43e)](_0x673145['id']))==null?void 0x0:_0x3cf17b['toLowerCase']())===_0x1561fc||fa(_0x673145['id'])[_0x579351(0x432)]()===_0x1561fc;});return _0x170d94[_0x226e35(0x13c)]===0x1?_0x170d94[0x0]:void 0x0;}function fa(_0x5480ba){const _0x562aab=_0x6c183;return _0x562aab(0x3f2)+Array['from'](_0x5480ba,_0x37d529=>{const _0x199108=_0x562aab;var _0x5f266d;return/[A-Za-z0-9]/[_0x199108(0x215)](_0x37d529)?_0x37d529:'_x'+(((_0x5f266d=_0x37d529[_0x199108(0x309)](0x0))==null?void 0x0:_0x5f266d[_0x199108(0x33f)](0x10))??'0')+'_';})[_0x562aab(0x11a)]('');}const pa=new Xi();function ma(_0x482dbd,_0x51bfb4,_0x2835cd){const _0x10d4d6=_0x6c183;var _0x43feac;if(_0x2835cd[_0x10d4d6(0x20b)]!==_0x3a044b[_0x10d4d6(0x4a0)])return!0x0;let _0x45ad90=String(((_0x43feac=_0x2835cd[_0x10d4d6(0x2ba)])==null?void 0x0:_0x43feac[_0x10d4d6(0x3bc)])??''),_0x2d2c91=_0x482dbd[_0x10d4d6(0x32f)]();return pa[_0x10d4d6(0x3ab)](_0x45ad90,_0x2d2c91['tables'][_0x51bfb4],{'snapshot':_0x2d2c91})[_0x10d4d6(0x26e)];}function $(_0x334943,_0x1b6aea,_0x4553c3){const _0xd80796=_0x6c183;let _0x214983=_0x334943[_0xd80796(0x32f)]()[_0xd80796(0x298)][_0x1b6aea];if(!_0x214983)return!0x1;let {viewIds:_0x45f3b3,fieldIds:_0x271555,recordIds:_0x5adec9}=_0x4553c3||{};if(_0x45f3b3){for(let _0x818299 of _0x45f3b3)if(!_0x214983['views'][_0x818299])return!0x1;}if(_0x271555){for(let _0x38cfd7 of _0x271555)if(!_0x214983[_0xd80796(0x398)][_0x38cfd7])return!0x1;}if(_0x5adec9){for(let _0x37b610 of _0x5adec9)if(!_0x214983[_0xd80796(0x258)][_0x37b610])return!0x1;}return!0x0;}function ha(_0x18291e,_0x5be5ed,_0x3caca5){const _0x376ed4=_0x6c183;if(_0x3caca5['id']===_0x5a35e2||_0x3caca5[_0x376ed4(0x20b)]===_0x3a044b[_0x376ed4(0x22f)]||_0x771c24(_0x3caca5[_0x376ed4(0x2a3)])||!ma(_0x18291e,_0x5be5ed,_0x3caca5))return!0x1;let _0x144bc0=_0x18291e[_0x376ed4(0x32f)]();if(!Be(_0x144bc0,_0x3caca5)[_0x376ed4(0x26e)])return!0x1;if(_0x3caca5[_0x376ed4(0x20b)]!==_0x3a044b[_0x376ed4(0x3ac)])return!0x0;let _0x999a8e=N(_0x3caca5);if(!_0x999a8e)return!0x1;if(_0x999a8e['relationRole']===void 0x0)return!0x0;if(_0x999a8e[_0x376ed4(0x1d4)]!==_0x4c2417[_0x376ed4(0x2e7)]||_0x999a8e[_0x376ed4(0x334)]!==_0x5be5ed||_0x999a8e[_0x376ed4(0x376)]!==!0x1)return!0x1;let _0x31f930=_0x144bc0['tables'][_0x5be5ed];return!Object[_0x376ed4(0x227)](_0x31f930['fields'])[_0x376ed4(0x185)](_0x276ba7=>{const _0xac0338=_0x376ed4;var _0x25a831;return _0x276ba7['id']!==_0x3caca5['id']&&_0x276ba7[_0xac0338(0x20b)]===_0x3a044b[_0xac0338(0x3ac)]&&((_0x25a831=N(_0x276ba7))==null?void 0x0:_0x25a831[_0xac0338(0x1d4)])===_0x4c2417[_0xac0338(0x2e7)];});}function ga(_0xfdb6c8,_0x42dba9,_0xd8e3bf,_0x16e618){const _0x1e19ae=_0x6c183;var _0x51ec14;let _0x2c7046=_0xfdb6c8[_0x1e19ae(0x32f)](),_0x5b25ff=(_0x51ec14=_0x2c7046[_0x1e19ae(0x298)][_0x42dba9])==null?void 0x0:_0x51ec14[_0x1e19ae(0x398)][_0xd8e3bf];return!_0x5b25ff||_0x5b25ff['id']===_0x5a35e2||_0x5b25ff[_0x1e19ae(0x20b)]===_0x3a044b[_0x1e19ae(0x22f)]?!0x1:_0x5b25ff[_0x1e19ae(0x20b)]!==_0x3a044b[_0x1e19ae(0x3ac)]||Ve(_0x2c7046,_0x5b25ff,ya(_0x16e618))[_0x1e19ae(0x26e)];}function _a(_0x2757e7,_0x5dc684,_0x4d41d6){const _0x108abe=_0x6c183;let _0x5abc6b=_0x2757e7['getSnapshot']()['tables'][_0x5dc684];return!_0x5abc6b||!_0x7f3dc3(_0x4d41d6['id'])||_0x5abc6b[_0x108abe(0x258)][_0x4d41d6['id']]||Object[_0x108abe(0x246)][_0x108abe(0x48a)]['call'](_0x4d41d6['values'],_0x5a35e2)&&_0x4d41d6[_0x108abe(0x227)][_0x5a35e2]!==_0x4d41d6['id']?!0x1:Object['entries'](_0x4d41d6[_0x108abe(0x227)])[_0x108abe(0x387)](([_0x38c6df,_0x582c7a])=>_0x38c6df===_0x5a35e2||ga(_0x2757e7,_0x5dc684,_0x38c6df,_0x582c7a));}function va(_0x1f6261){return{..._0x1f6261,'values':{..._0x1f6261['values'],[_0x5a35e2]:_0x1f6261['id']}};}function ya(_0x5b22dc){const _0x7d4682=_0x6c183;if(_0x5b22dc&&typeof _0x5b22dc==_0x7d4682(0x3d7)&&!Array[_0x7d4682(0x431)](_0x5b22dc)&&'v'in _0x5b22dc){let _0x26f0f1=_0x5b22dc['v'];return _0x26f0f1===void 0x0?null:_0x26f0f1;}return _0x5b22dc;}function ba(_0x56a44e,_0x11dcf0,_0x2da80b,_0xea6927){const _0x1009ac=_0x6c183;let _0x5a7bd0=_0x56a44e[_0x1009ac(0x32f)]()[_0x1009ac(0x298)][_0x11dcf0];if(!_0x5a7bd0)return null;let _0x34a6d6=qe(_0x5a7bd0),_0x1dd06b=_0x34a6d6??Je(_0x5a7bd0),_0x276149=_0x2da80b['some'](_0x526534=>Object['prototype'][_0x1009ac(0x48a)][_0x1009ac(0x43b)](_0x526534['values'],_0x1dd06b)),_0x52c19c=_0x34a6d6?_0x5a7bd0[_0x1009ac(0x398)][_0x34a6d6]:_0x276149?Ye(_0x5a7bd0,_0x1dd06b,_0xea6927):null,_0x3abe60=[];for(let _0x593ea0 of _0x2da80b){let _0x136fe6=_0x593ea0[_0x1009ac(0x227)][_0x1dd06b],_0x1ca83e=_0x52c19c!==null&&Object['prototype'][_0x1009ac(0x48a)]['call'](_0x593ea0[_0x1009ac(0x227)],_0x1dd06b),_0x384304=ya(_0x136fe6),_0x3ee6ae=null;if(_0x1ca83e){if(typeof _0x384304!=_0x1009ac(0x425)||!ze(_0x384304,!0x1)[_0x1009ac(0x26e)])return null;_0x3ee6ae=_0x384304;}let _0x2ac597={};if(Object[_0x1009ac(0x279)](_0x593ea0[_0x1009ac(0x227)])[_0x1009ac(0x2e0)](([_0x4303d4,_0x1b5d78])=>{(!_0x1ca83e||_0x4303d4!==_0x1dd06b)&&(_0x2ac597[_0x4303d4]=_0x1b5d78);}),!_a(_0x56a44e,_0x11dcf0,{..._0x593ea0,'values':_0x2ac597}))return null;let _0x550068={..._0x593ea0[_0x1009ac(0x227)]};_0x3ee6ae!==null&&(_0x550068[_0x1dd06b]=_0x3ee6ae),_0x3abe60['push'](va({..._0x593ea0,'values':_0x550068}));}return{'records':_0x3abe60,'hierarchyFieldToMaterialize':_0x34a6d6?null:_0x52c19c,'hierarchyChanges':Qe(_0x5a7bd0,_0x3abe60)};}const xa={'id':_0x6c183(0x2fa),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x12ae40,_0x4ef96d){const _0x20e18f=_0x6c183;if(!_0x4ef96d)return!0x1;let _0x1d09a1=_0x12ae40[_0x20e18f(0x43e)](_0x24efe9),{unitId:_0x1659e8,tableId:_0x3c3ff3,records:_0x49087e}=_0x4ef96d,_0x1ed92a=_0x1d09a1[_0x20e18f(0x228)](_0x1659e8,_0x5c5c99['UNIVER_BASE']),_0x4107f8=_0x49087e['map'](_0x7f5012=>_0x7f5012['id']);if(!_0x1ed92a||!$(_0x1ed92a,_0x3c3ff3)||new Set(_0x4107f8)[_0x20e18f(0x15b)]!==_0x4107f8[_0x20e18f(0x13c)])return!0x1;let _0x36d980=_0x12ae40['get'](_0x5daeb6),_0x1a17e8=_0x12ae40[_0x20e18f(0x43e)](_0x5b9522),_0x6bec=_0x12ae40['get'](Kr),_0x463621=_0x1ed92a[_0x20e18f(0x32f)](),_0x589a96=ba(_0x1ed92a,_0x3c3ff3,_0x49087e);if(!_0x589a96)return!0x1;let {records:_0x304c03,hierarchyChanges:_0x149217,hierarchyFieldToMaterialize:_0x2f4a38}=_0x589a96,_0x66717=_0x2f4a38?_0x6bec[_0x20e18f(0x4b7)](_0x1ed92a,_0x3c3ff3,_0x2f4a38,_0x463621[_0x20e18f(0x298)][_0x3c3ff3][_0x20e18f(0x3b5)][_0x20e18f(0x13c)]):null,_0x1c25a0=_0x6bec[_0x20e18f(0x3ec)](_0x1ed92a,_0x3c3ff3,_0x304c03),_0x35b22a=R([..._0x66717?[_0x66717]:[],_0x1c25a0]),_0x4f308a=new z()[_0x20e18f(0x2d8)](_0x463621,_0x35b22a),_0x1fbbb9={'unitId':_0x1659e8,'op':_0x35b22a,'hierarchyChanges':_0x149217['length']?_0x149217:void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x4ef96d[_0x20e18f(0x495)]??'ui':void 0x0},_0x25f9cf={..._0x1fbbb9,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x32a):void 0x0},_0x31cf42={'unitId':_0x1659e8,'op':_0x4f308a,'hierarchyChanges':_0x149217[_0x20e18f(0x13c)]?_0x149217[_0x20e18f(0x141)](_0xc17471=>({..._0xc17471,'oldParentRecordId':_0xc17471[_0x20e18f(0x474)],'parentRecordId':null})):void 0x0,'source':_0x149217[_0x20e18f(0x13c)]?_0x20e18f(0x23c):void 0x0};return _0x36d980[_0x20e18f(0x163)](Q['id'],_0x1fbbb9)?(_0x1d09a1[_0x20e18f(0x243)](_0x1659e8),_0x1a17e8['pushUndoRedo']({'unitID':_0x1659e8,'undoMutations':[{'id':Q['id'],'params':_0x31cf42}],'redoMutations':[{'id':Q['id'],'params':_0x25f9cf}]}),!0x0):!0x1;}},Sa={'id':_0x6c183(0x377),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3200aa,_0x48794b)=>{const _0x443a80=_0x6c183;if(!_0x48794b)return!0x1;let _0x47cc2b=_0x3200aa[_0x443a80(0x43e)](_0x24efe9),{unitId:_0x2f2fad,tableId:_0x2b0918,recordIds:_0x324ea2}=_0x48794b,_0x377798=_0x47cc2b[_0x443a80(0x228)](_0x2f2fad,_0x5c5c99[_0x443a80(0x36b)]);if(!_0x377798||!$(_0x377798,_0x2b0918,{'recordIds':_0x324ea2}))return!0x1;let _0x1f6dff=_0x3200aa[_0x443a80(0x43e)](_0x5daeb6),_0x1459dd=_0x3200aa['get'](_0x5b9522),_0x1f91f1=_0x377798[_0x443a80(0x32f)](),_0x2f5748=et(_0x1f91f1[_0x443a80(0x298)][_0x2b0918],_0x324ea2),_0x3069ab=new W(),_0x721fba=new z(),_0x3580b2=_0x3069ab[_0x443a80(0x158)](_0x1f91f1,_0x2b0918,_0x324ea2),_0x4a0929=_0x721fba['applyOp'](_0x1f91f1,_0x3580b2),_0x10a9e9=_0x3069ab['createDeleteRecordsUndoOp'](_0x1f91f1,_0x4a0929,_0x2b0918,_0x324ea2),_0x10c0e0={'unitId':_0x2f2fad,'op':_0x3580b2,'hierarchyChanges':_0x2f5748,'source':_0x48794b['source']??'ui'},_0x4de18c={..._0x10c0e0,'source':_0x443a80(0x32a)},_0x13d4bf={'unitId':_0x2f2fad,'op':_0x10a9e9,'hierarchyChanges':_0x2f5748[_0x443a80(0x141)](_0x18c676=>({..._0x18c676,'oldParentRecordId':_0x18c676[_0x443a80(0x474)],'parentRecordId':_0x18c676[_0x443a80(0x2d1)]})),'source':_0x443a80(0x23c)};return _0x1f6dff['syncExecuteCommand'](Q['id'],_0x10c0e0)?(_0x47cc2b[_0x443a80(0x243)](_0x2f2fad),_0x1459dd[_0x443a80(0x47c)]({'unitID':_0x2f2fad,'undoMutations':[{'id':Q['id'],'params':_0x13d4bf}],'redoMutations':[{'id':Q['id'],'params':_0x4de18c}]}),!0x0):!0x1;}},Ca={'id':_0x6c183(0x3e1),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0xb63fcc,_0x1f82ff)=>{const _0x53aaee=_0x6c183;if(!_0x1f82ff)return!0x1;let _0x3f5546=_0xb63fcc[_0x53aaee(0x43e)](_0x24efe9),{unitId:_0x527715,tableId:_0x10b106,fieldId:_0x5184fd,input:_0xbd6687}=_0x1f82ff,_0x320e55=_0x3f5546[_0x53aaee(0x228)](_0x527715,_0x5c5c99[_0x53aaee(0x36b)]);if(!_0x320e55||_0x5184fd===_0x5a35e2||!$(_0x320e55,_0x10b106,{'fieldIds':[_0x5184fd]}))return!0x1;let _0x3afb8e=_0xb63fcc[_0x53aaee(0x43e)](_0x5daeb6),_0x12c472=_0xb63fcc[_0x53aaee(0x43e)](_0x5b9522),_0x1ed5d1=_0x320e55[_0x53aaee(0x32f)]();if(!ha(_0x320e55,_0x10b106,{..._0x1ed5d1[_0x53aaee(0x298)][_0x10b106][_0x53aaee(0x398)][_0x5184fd],..._0xbd6687}))return!0x1;let _0x4d152b=new W()[_0x53aaee(0x3e5)](_0x1ed5d1,_0x10b106,_0x5184fd,_0xbd6687),_0x3abff7=new z()[_0x53aaee(0x2d8)](_0x1ed5d1,_0x4d152b),_0x3b7752={'unitId':_0x527715,'op':_0x4d152b},_0x1849c5={'unitId':_0x527715,'op':_0x3abff7};return _0x3afb8e['syncExecuteCommand'](Q['id'],_0x3b7752)?(_0x3f5546['focusUnit'](_0x527715),_0x12c472[_0x53aaee(0x47c)]({'unitID':_0x527715,'undoMutations':[{'id':Q['id'],'params':_0x1849c5}],'redoMutations':[{'id':Q['id'],'params':_0x3b7752}]}),!0x0):!0x1;}},wa={'id':'base.command.create-base-child-record','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x597837,_0x4b5303){const _0x1ff416=_0x6c183;var _0x7da9cb;if(!_0x4b5303)return!0x1;let {unitId:_0x577981,tableId:_0x596db9,parentRecordId:_0x4a9596}=_0x4b5303,_0x1574eb=_0x597837[_0x1ff416(0x43e)](_0x24efe9),_0x355bf5=_0x1574eb[_0x1ff416(0x228)](_0x577981,_0x5c5c99[_0x1ff416(0x36b)]);if(!_0x355bf5||!$(_0x355bf5,_0x596db9,{'recordIds':[_0x4a9596]}))throw new P('missingRecord');let _0x1e4e54=_0x355bf5[_0x1ff416(0x32f)](),_0x31ba02=_0x1e4e54[_0x1ff416(0x298)][_0x596db9],_0x354f35=qe(_0x31ba02),_0x31f28f=_0x354f35??_0x4b5303['fieldId']??Je(_0x31ba02);if(_0x354f35&&_0x4b5303[_0x1ff416(0x2b0)]&&_0x4b5303['fieldId']!==_0x354f35||_0x31ba02[_0x1ff416(0x398)][_0x31f28f]&&!F(_0x31ba02,_0x31f28f))throw new P(_0x1ff416(0x48d));if((tt(_0x31ba02,_0x31f28f)[_0x1ff416(0x273)][_0x1ff416(0x43e)](_0x4a9596)??0x0)+0x1>=0x5)throw new P(_0x1ff416(0x138));if(!_a(_0x355bf5,_0x596db9,_0x4b5303[_0x1ff416(0x493)]))return!0x1;let _0x31ee75=va({..._0x4b5303['record'],'values':{..._0x4b5303[_0x1ff416(0x493)][_0x1ff416(0x227)],[_0x31f28f]:Re([_0x4a9596])}}),_0x1c7373=_0x597837[_0x1ff416(0x43e)](Kr),_0xa1dfc2=new W(),_0x2cb5fb=_0x31ba02[_0x1ff416(0x398)][_0x31f28f],_0x39d798=_0x2cb5fb?((_0x7da9cb=N(_0x2cb5fb))==null?void 0x0:_0x7da9cb[_0x1ff416(0x1d4)])===_0x4c2417[_0x1ff416(0x2e7)]?null:_0xa1dfc2[_0x1ff416(0x13b)](_0x1e4e54,_0x596db9,_0x31f28f,{'config':{..._0x2cb5fb[_0x1ff416(0x2ba)],'relationRole':_0x4c2417[_0x1ff416(0x2e7)]}}):_0x1c7373[_0x1ff416(0x4b7)](_0x355bf5,_0x596db9,Ye(_0x31ba02,_0x31f28f,_0x4b5303[_0x1ff416(0x1c6)]),_0x31ba02[_0x1ff416(0x3b5)]['length']),_0x5e8167=_0x1c7373[_0x1ff416(0x467)](_0x355bf5,_0x596db9,_0x31ee75),_0x8ba6e0=R([..._0x39d798?[_0x39d798]:[],_0x5e8167]),_0x15eb80=new z()[_0x1ff416(0x2d8)](_0x1e4e54,_0x8ba6e0),_0x2d04c6={'tableId':_0x596db9,'fieldId':_0x31f28f,'recordId':_0x31ee75['id'],'oldParentRecordId':null,'parentRecordId':_0x4a9596},_0x175d11={'unitId':_0x577981,'op':_0x8ba6e0,'trigger':wa['id'],'hierarchyChanges':[_0x2d04c6],'source':_0x4b5303[_0x1ff416(0x495)]??'ui'},_0x4aa822={..._0x175d11,'source':_0x1ff416(0x32a)},_0x8469d4={'unitId':_0x577981,'op':_0x15eb80,'trigger':wa['id'],'hierarchyChanges':[{..._0x2d04c6,'oldParentRecordId':_0x4a9596,'parentRecordId':null}],'source':'undo'};return _0x597837[_0x1ff416(0x43e)](_0x5daeb6)[_0x1ff416(0x163)](Q['id'],_0x175d11)?(_0x1574eb[_0x1ff416(0x243)](_0x577981),_0x597837[_0x1ff416(0x43e)](_0x5b9522)[_0x1ff416(0x47c)]({'unitID':_0x577981,'undoMutations':[{'id':Q['id'],'params':_0x8469d4}],'redoMutations':[{'id':Q['id'],'params':_0x4aa822}]}),!0x0):!0x1;}},Ta={'id':_0x6c183(0x4ae),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1a0563,_0xe78845){const _0x407289=_0x6c183;if(!_0xe78845)return!0x1;let _0xce1cdc=_0x1a0563[_0x407289(0x43e)](_0x24efe9),{unitId:_0x5be20f,tableId:_0xbefe1b,field:_0x4925bb,index:_0x3106c9,viewIndexes:_0x113aa7}=_0xe78845,_0x277506=_0xce1cdc[_0x407289(0x228)](_0x5be20f,_0x5c5c99[_0x407289(0x36b)]);if(!_0x277506||!$(_0x277506,_0xbefe1b)||_0x277506[_0x407289(0x32f)]()[_0x407289(0x298)][_0xbefe1b][_0x407289(0x398)][_0x4925bb['id']]||_0x3106c9===0x0||!ha(_0x277506,_0xbefe1b,_0x4925bb))return!0x1;let _0xd3ddf1=_0x1a0563[_0x407289(0x43e)](_0x5daeb6),_0x4c49f0=_0x1a0563['get'](_0x5b9522),_0x266d25=_0x1a0563['get'](Kr)[_0x407289(0x4b7)](_0x277506,_0xbefe1b,_0x4925bb,_0x3106c9,_0x113aa7),_0x5a67d4=new z()[_0x407289(0x2d8)](_0x277506[_0x407289(0x32f)](),_0x266d25),_0x489f91={'unitId':_0x5be20f,'op':_0x266d25},_0x2ee134={'unitId':_0x5be20f,'op':_0x5a67d4};return _0xd3ddf1[_0x407289(0x163)](Q['id'],_0x489f91)?(_0xce1cdc[_0x407289(0x243)](_0x5be20f),_0x4c49f0[_0x407289(0x47c)]({'unitID':_0x5be20f,'undoMutations':[{'id':Q['id'],'params':_0x2ee134}],'redoMutations':[{'id':Q['id'],'params':_0x489f91}]}),!0x0):!0x1;}},Ea={'id':_0x6c183(0x1d2),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x207494,_0x337a69){const _0xb0801=_0x6c183;if(!_0x337a69)return!0x1;let _0xeb8d1f=_0x207494[_0xb0801(0x43e)](_0x24efe9),{unitId:_0x2ecd5e,tableId:_0x4fd3e1,record:_0x1a2fe3}=_0x337a69,_0x119ff7=_0xeb8d1f['getUnit'](_0x2ecd5e,_0x5c5c99['UNIVER_BASE']);if(!_0x119ff7||!$(_0x119ff7,_0x4fd3e1))return!0x1;let _0x4a2f18=_0x207494[_0xb0801(0x43e)](_0x5daeb6),_0x554110=_0x207494[_0xb0801(0x43e)](_0x5b9522),_0x150c70=_0x207494[_0xb0801(0x43e)](Kr),_0x124ec7=_0x119ff7['getSnapshot'](),_0xffb6a7=ba(_0x119ff7,_0x4fd3e1,[_0x1a2fe3]);if(!_0xffb6a7)return!0x1;let [_0x1bf8e7]=_0xffb6a7[_0xb0801(0x258)],{hierarchyChanges:_0x5dd0fc,hierarchyFieldToMaterialize:_0x587074}=_0xffb6a7,_0x1fa051=_0x587074?_0x150c70['createCreateFieldOp'](_0x119ff7,_0x4fd3e1,_0x587074,_0x124ec7[_0xb0801(0x298)][_0x4fd3e1][_0xb0801(0x3b5)][_0xb0801(0x13c)]):null,_0x5ba5dc=_0x150c70[_0xb0801(0x467)](_0x119ff7,_0x4fd3e1,_0x1bf8e7),_0x3a688e=R([..._0x1fa051?[_0x1fa051]:[],_0x5ba5dc]),_0x21ad56=new z()[_0xb0801(0x2d8)](_0x124ec7,_0x3a688e),_0x5a5288={'unitId':_0x2ecd5e,'op':_0x3a688e,'hierarchyChanges':_0x5dd0fc[_0xb0801(0x13c)]?_0x5dd0fc:void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0x337a69[_0xb0801(0x495)]??'ui':void 0x0},_0x3d948f={..._0x5a5288,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x32a):void 0x0},_0x14b247={'unitId':_0x2ecd5e,'op':_0x21ad56,'hierarchyChanges':_0x5dd0fc['length']?_0x5dd0fc[_0xb0801(0x141)](_0x3cb7d6=>({..._0x3cb7d6,'oldParentRecordId':_0x3cb7d6[_0xb0801(0x474)],'parentRecordId':null})):void 0x0,'source':_0x5dd0fc[_0xb0801(0x13c)]?_0xb0801(0x23c):void 0x0};return _0x4a2f18[_0xb0801(0x163)](Q['id'],_0x5a5288)?(_0xeb8d1f[_0xb0801(0x243)](_0x2ecd5e),_0x554110[_0xb0801(0x47c)]({'unitID':_0x2ecd5e,'undoMutations':[{'id':Q['id'],'params':_0x14b247}],'redoMutations':[{'id':Q['id'],'params':_0x3d948f}]}),!0x0):!0x1;}},Da=_0x6c183(0x113);function Oa(_0x249350,_0x5df53a,_0x54b8ca){const _0x551b88=_0x6c183;if(!_0x5df53a['trim']())return{'valid':!0x1,'reason':_0x551b88(0x46f),'error':_0x551b88(0x27c)};if(_0x5df53a[_0x551b88(0x13c)]>0x1f)return{'valid':!0x1,'reason':_0x551b88(0x3f3),'error':_0x551b88(0x2df)};if(_0x5df53a[_0x551b88(0x1fb)]('\x27')||_0x5df53a[_0x551b88(0x35a)]('\x27'))return{'valid':!0x1,'reason':'A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','error':'apostrophe'};if(/[:\\/?*\[\]]/[_0x551b88(0x215)](_0x5df53a))return{'valid':!0x1,'reason':_0x551b88(0x41e),'error':_0x551b88(0x327)};if(!_0x5cd2f5(_0x5df53a))return{'valid':!0x1,'reason':'Choose\x20another\x20name.','error':_0x551b88(0x3a3)};let _0x24cea1=_0x5df53a[_0x551b88(0x432)]();return Object['values'](_0x249350[_0x551b88(0x298)])[_0x551b88(0x185)](_0x103f29=>_0x103f29['id']!==_0x54b8ca&&_0x103f29['name'][_0x551b88(0x432)]()===_0x24cea1)?{'valid':!0x1,'reason':_0x551b88(0x1df),'error':_0x551b88(0x3fd)}:{'valid':!0x0};}function ka(_0x182e81,_0x57ad58){const _0x33c1e5=_0x6c183;let _0x222e62=_0x57ad58[_0x33c1e5(0x14e)](/[:\\/?*\[\]]/g,'\x20')[_0x33c1e5(0x14e)](/^'+|'+$/g,'')[_0x33c1e5(0x226)]()||'Table',_0xf12fae=0x1;for(;;){let _0x1222db=_0xf12fae===0x1?'':'\x20'+_0xf12fae,_0x23100a=''+_0x222e62[_0x33c1e5(0x12c)](0x0,0x1f-_0x1222db['length'])+_0x1222db;if(Oa(_0x182e81,_0x23100a)[_0x33c1e5(0x26e)])return _0x23100a;_0xf12fae++;}}const Aa={'id':_0x6c183(0x466),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x40b727,_0x5d767d)=>{const _0xac77c6=_0x6c183;if(!_0x5d767d)return!0x1;let _0x163daf=_0x40b727[_0xac77c6(0x43e)](_0x24efe9),{unitId:_0x4fe3cd,table:_0xcc6d0,index:_0x119b86}=_0x5d767d,_0x1193cf=_0x163daf[_0xac77c6(0x228)](_0x4fe3cd,_0x5c5c99[_0xac77c6(0x36b)]);if(!_0x1193cf||_0x1193cf[_0xac77c6(0x32f)]()[_0xac77c6(0x298)][_0xcc6d0['id']]||!Oa(_0x1193cf[_0xac77c6(0x32f)](),_0xcc6d0[_0xac77c6(0x2a3)])[_0xac77c6(0x26e)])return!0x1;try{_0x37d535(_0xcc6d0);}catch{return!0x1;}let _0x55eb1f=_0x40b727[_0xac77c6(0x43e)](_0x5daeb6),_0x57822e=_0x40b727[_0xac77c6(0x43e)](_0x5b9522),_0x3a7e92=_0x1193cf[_0xac77c6(0x32f)](),_0x23ad0c=new W()[_0xac77c6(0x1b3)](_0x3a7e92,_0xcc6d0,_0x119b86),_0x1137de=new z()['invertOp'](_0x3a7e92,_0x23ad0c),_0x540e04={'unitId':_0x4fe3cd,'op':_0x23ad0c},_0x5d8487={'unitId':_0x4fe3cd,'op':_0x1137de};return _0x55eb1f[_0xac77c6(0x163)](Q['id'],_0x540e04)?(_0x163daf[_0xac77c6(0x243)](_0x4fe3cd),_0x57822e['pushUndoRedo']({'unitID':_0x4fe3cd,'undoMutations':[{'id':Q['id'],'params':_0x5d8487}],'redoMutations':[{'id':Q['id'],'params':_0x540e04}]}),!0x0):!0x1;}};function ja(_0x2d5d9b,_0x9a2088,_0x4cfcf0=[]){const _0x427186=_0x6c183;let _0x21270a=new Set([...Object['values'](_0x2d5d9b['fields'])[_0x427186(0x2be)](_0x158c6b=>_0x158c6b)[_0x427186(0x141)](_0x424f51=>_0x424f51['name']),..._0x4cfcf0[_0x427186(0x141)](_0x17abeb=>_0x17abeb[_0x427186(0x2a3)])]);if(!_0x21270a['has'](_0x9a2088))return _0x9a2088;let _0x32eb9b=0x2;for(;_0x21270a[_0x427186(0x34b)](_0x9a2088+'\x20'+_0x32eb9b);)_0x32eb9b++;return _0x9a2088+'\x20'+_0x32eb9b;}function Ma(_0x90f91a,_0x1812d7){const _0x11a919=_0x6c183;if(!_0x90f91a||!_0x1812d7[_0x11a919(0x13c)])return;let _0x26ea51=[..._0x90f91a];return _0x1812d7[_0x11a919(0x2e0)](_0x37b36f=>{const _0x46e7cb=_0x11a919;_0x26ea51[_0x46e7cb(0x16a)](_0x37b36f)||_0x26ea51[_0x46e7cb(0x174)](_0x37b36f);}),_0x26ea51;}const Na={'options':[{'id':_0x6c183(0x1e3),'name':_0x6c183(0x2ac),'color':_0x6c183(0x17e)},{'id':_0x6c183(0x352),'name':_0x6c183(0x255),'color':_0x6c183(0x21f)},{'id':'done','name':'Done','color':_0x6c183(0x27d)}]},Pa={'locale':_0x6c183(0x2da),'pattern':_0x6c183(0x149),'includeTime':!0x1,'hourCycle':_0x6c183(0x147),'defaultMode':_0x6c183(0x42f)};function Fa(_0x1b6274,_0x3b6ce3,_0x288890,_0x24a9b3){const _0xe25609=_0x6c183;var _0x5dc82e;let _0x8d3412=new W(),_0x3ad961=_0x1b6274['tables'][_0x3b6ce3],_0x35baf1=_0x3ad961?{..._0x288890,'fieldOrder':[_0x5a35e2,...(_0x288890[_0xe25609(0x3b5)]??_0x3ad961[_0xe25609(0x3b5)])[_0xe25609(0x2be)](_0x538790=>_0x538790!==_0x5a35e2)],'fieldSettings':{..._0x288890[_0xe25609(0x48f)],[_0x5a35e2]:{...(_0x5dc82e=_0x288890[_0xe25609(0x48f)])==null?void 0x0:_0x5dc82e[_0x5a35e2],'hidden':!0x0}}}:_0x288890;if(_0x3ad961&&_0x35baf1['type']===_0xe25609(0x4a6)){let _0x2cd409=La(_0x3ad961,_0x35baf1),_0x3fed0a=_0x2cd409['changed']?{..._0x35baf1,'config':_0x2cd409[_0xe25609(0x2ba)],'fieldOrder':_0x2cd409['fieldOrder']??_0x35baf1[_0xe25609(0x3b5)]}:_0x35baf1;return R([..._0x2cd409['fields'][_0xe25609(0x141)](_0x6bf8c=>_0x8d3412[_0xe25609(0x250)](_0x1b6274,_0x3b6ce3,{'field':_0x6bf8c})),_0x8d3412['createView'](_0x1b6274,_0x3b6ce3,_0x3fed0a,_0x24a9b3)]);}if(!_0x3ad961||_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x1eb)&&_0x35baf1[_0xe25609(0x20b)]!==_0xe25609(0x26b))return _0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x35baf1,_0x24a9b3);let _0x3720c5=Ia(_0x3ad961,_0x35baf1),_0x3ebb60=_0x3720c5['changed']?{..._0x35baf1,'config':_0x3720c5[_0xe25609(0x2ba)],'fieldOrder':_0x3720c5['fieldOrder']??_0x35baf1['fieldOrder']}:_0x35baf1;return _0x35baf1['type']==='gantt'&&Ba(_0x35baf1)&&(_0x3ebb60=Va(_0x3ad961,_0x3ebb60,_0x3720c5[_0xe25609(0x398)])),R([..._0x3720c5[_0xe25609(0x398)][_0xe25609(0x141)](_0x505aad=>_0x8d3412['createField'](_0x1b6274,_0x3b6ce3,{'field':_0x505aad})),_0x8d3412[_0xe25609(0x2d7)](_0x1b6274,_0x3b6ce3,_0x3ebb60,_0x24a9b3)]);}function Ia(_0x3e84ab,_0x547a69,_0x45f1a6=!0x1){const _0x1f4f2d=_0x6c183;var _0x4a4ed5,_0x2367e5;let _0x348df2=_0x3e84ab[_0x1f4f2d(0x3b5)][_0x1f4f2d(0x2be)](_0x2c63f8=>Ua(_0x3e84ab,_0x2c63f8)),_0x332c8a=[],_0x48c52c={..._0x547a69[_0x1f4f2d(0x2ba)]??{}},_0x213c91=typeof _0x48c52c[_0x1f4f2d(0x4b5)]==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c['startDateFieldId'])?_0x48c52c[_0x1f4f2d(0x4b5)]:_0x348df2[0x0],_0x3d38a0=typeof _0x48c52c['endDateFieldId']==_0x1f4f2d(0x425)&&Ua(_0x3e84ab,_0x48c52c[_0x1f4f2d(0x3ef)])&&_0x48c52c['endDateFieldId']!==_0x213c91?_0x48c52c['endDateFieldId']:_0x348df2[_0x1f4f2d(0x392)](_0x45738d=>_0x45738d!==_0x213c91);if(!_0x213c91){let _0x13d448=Wa(_0x3e84ab,_0x332c8a,_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)?_0x1f4f2d(0x325):_0x1f4f2d(0x346));_0x332c8a[_0x1f4f2d(0x174)](_0x13d448),_0x213c91=_0x13d448['id'];}if((_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x26b)||_0x45f1a6)&&!_0x3d38a0){let _0x354c20=Wa(_0x3e84ab,_0x332c8a,_0x1f4f2d(0x364));_0x332c8a[_0x1f4f2d(0x174)](_0x354c20),_0x3d38a0=_0x354c20['id'];}_0x547a69[_0x1f4f2d(0x20b)]===_0x1f4f2d(0x1eb)&&!_0x3d38a0&&delete _0x48c52c[_0x1f4f2d(0x3ef)],_0x48c52c[_0x1f4f2d(0x4b5)]=_0x213c91,_0x547a69[_0x1f4f2d(0x20b)]==='calendar'&&_0x3d38a0&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0),_0x547a69['type']===_0x1f4f2d(0x26b)&&(_0x48c52c[_0x1f4f2d(0x3ef)]=_0x3d38a0??_0x213c91);let _0x4b3126=Ma(_0x547a69[_0x1f4f2d(0x3b5)],_0x332c8a['map'](_0x1f333d=>_0x1f333d['id']));return{'changed':_0x332c8a[_0x1f4f2d(0x13c)]>0x0||_0x48c52c[_0x1f4f2d(0x4b5)]!==((_0x4a4ed5=_0x547a69['config'])==null?void 0x0:_0x4a4ed5[_0x1f4f2d(0x4b5)])||_0x48c52c[_0x1f4f2d(0x3ef)]!==((_0x2367e5=_0x547a69[_0x1f4f2d(0x2ba)])==null?void 0x0:_0x2367e5[_0x1f4f2d(0x3ef)])||!(!_0x4b3126||_0x4e3c3d[_0x1f4f2d(0x177)](_0x4b3126,_0x547a69['fieldOrder']??[])),'fields':_0x332c8a,'config':_0x48c52c,'fieldOrder':_0x4b3126};}function La(_0x57df75,_0x1e0a28){const _0x34463e=_0x6c183;var _0x2b3f14;let _0x3e6fbf=[],_0x567f9d={..._0x1e0a28[_0x34463e(0x2ba)]??{}},_0x291a28=typeof _0x567f9d['groupFieldId']==_0x34463e(0x425)&&Ra(_0x57df75,_0x567f9d['groupFieldId'])?_0x567f9d[_0x34463e(0x426)]:_0x57df75[_0x34463e(0x3b5)]['find'](_0x11bb75=>Ra(_0x57df75,_0x11bb75));if(!_0x291a28){let _0x356f18=za(_0x57df75,_0x3e6fbf);_0x3e6fbf['push'](_0x356f18),_0x291a28=_0x356f18['id'];}_0x567f9d[_0x34463e(0x426)]=_0x291a28;let _0x4a324f=Ma(_0x1e0a28[_0x34463e(0x3b5)],_0x3e6fbf[_0x34463e(0x141)](_0x284f56=>_0x284f56['id']));return{'changed':_0x3e6fbf[_0x34463e(0x13c)]>0x0||_0x567f9d[_0x34463e(0x426)]!==((_0x2b3f14=_0x1e0a28[_0x34463e(0x2ba)])==null?void 0x0:_0x2b3f14[_0x34463e(0x426)])||!(!_0x4a324f||_0x4e3c3d[_0x34463e(0x177)](_0x4a324f,_0x1e0a28[_0x34463e(0x3b5)]??[])),'fields':_0x3e6fbf,'config':_0x567f9d,'fieldOrder':_0x4a324f};}function Ra(_0x14919a,_0x2115cc){const _0x31b855=_0x6c183;let _0x232d12=_0x2115cc?_0x14919a[_0x31b855(0x398)][_0x2115cc]:null;return _0x232d12?[_0x3a044b[_0x31b855(0x20e)],_0x3a044b[_0x31b855(0x386)],_0x3a044b[_0x31b855(0x2c3)],_0x3a044b['Person'],_0x3a044b[_0x31b855(0x1ad)],_0x3a044b[_0x31b855(0x233)]]['includes'](_0x232d12[_0x31b855(0x20b)]):!0x1;}function za(_0x467c25,_0x4d517c){const _0x4a96fb=_0x6c183;return{'id':_0x4a96fb(0x4b6)+_0x456020(0x8),'name':ja(_0x467c25,'Status',_0x4d517c),'type':_0x3a044b[_0x4a96fb(0x20e)],'config':_0x4e3c3d[_0x4a96fb(0x29d)](Na)};}function Ba(_0x42e65c){const _0x41f308=_0x6c183;return Object['keys'](_0x42e65c[_0x41f308(0x2ba)]??{})[_0x41f308(0x13c)]===0x0&&Object[_0x41f308(0x24c)](_0x42e65c[_0x41f308(0x48f)]??{})['length']===0x0;}function Va(_0x3de707,_0x315c96,_0xf7d5a1){const _0x1faa6f=_0x6c183;let _0x599611={..._0x315c96[_0x1faa6f(0x2ba)]??{}},_0x495218=_0xf7d5a1[_0x1faa6f(0x141)](_0x3af4c6=>_0x3af4c6['id']),_0x2cd4b7=[..._0x3de707[_0x1faa6f(0x3b5)],..._0x495218],_0x97a481=typeof _0x599611['titleFieldId']==_0x1faa6f(0x425)&&Ha(_0x3de707,_0xf7d5a1,_0x599611['titleFieldId'])?_0x599611[_0x1faa6f(0x1ba)]:_0x3de707[_0x1faa6f(0x3b2)],_0xd6d756=typeof _0x599611['startDateFieldId']==_0x1faa6f(0x425)?_0x599611[_0x1faa6f(0x4b5)]:'',_0x100103=typeof _0x599611['endDateFieldId']=='string'?_0x599611[_0x1faa6f(0x3ef)]:_0xd6d756,_0x30b322=new Set([_0x97a481,_0xd6d756,_0x100103][_0x1faa6f(0x2be)](_0x4fab4a=>_0x4fab4a&&Ha(_0x3de707,_0xf7d5a1,_0x4fab4a))),_0x2389a2=Object[_0x1faa6f(0x176)](_0x2cd4b7[_0x1faa6f(0x17a)](_0x52356f=>_0x30b322[_0x1faa6f(0x34b)](_0x52356f)||!Ha(_0x3de707,_0xf7d5a1,_0x52356f)?[]:[[_0x52356f,{'hidden':!0x0}]]));return{..._0x315c96,'config':{..._0x599611,'titleFieldId':_0x97a481},'fieldSettings':_0x2389a2};}function Ha(_0x1576b5,_0x2942fa,_0x299d14){const _0x27e872=_0x6c183;return!!(_0x1576b5[_0x27e872(0x398)][_0x299d14]??_0x2942fa[_0x27e872(0x392)](_0x2df538=>_0x2df538['id']===_0x299d14))&&!0x0;}function Ua(_0x11f9e5,_0x10ddd3){const _0x262d0a=_0x6c183;let _0x42cb17=_0x10ddd3?_0x11f9e5[_0x262d0a(0x398)][_0x10ddd3]:null;return!!_0x42cb17&&_0x42cb17[_0x262d0a(0x20b)]===_0x3a044b[_0x262d0a(0x346)]&&_0x42cb17['readonly']!==!0x0&&_0x42cb17[_0x262d0a(0x3cf)]!==!0x0;}function Wa(_0xc21177,_0x3557ca,_0x39fef0){const _0x39fed3=_0x6c183;let _0x22ab56=new Set([...Object[_0x39fed3(0x24c)](_0xc21177[_0x39fed3(0x398)]),..._0x3557ca[_0x39fed3(0x141)](_0x55223a=>_0x55223a['id'])]),_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);for(;_0x22ab56[_0x39fed3(0x34b)](_0x454dc8);)_0x454dc8=_0x39fed3(0x4b6)+_0x456020(0x8);return{'id':_0x454dc8,'name':ja(_0xc21177,_0x39fef0,_0x3557ca),'type':_0x3a044b['Date'],'config':{...Pa}};}const Ga={'id':_0x6c183(0x39a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x20781e,_0x46994b)=>{const _0x2a3325=_0x6c183;if(!_0x46994b)return!0x1;let _0x150bf0=_0x20781e[_0x2a3325(0x43e)](_0x24efe9),{unitId:_0x14a367,tableId:_0x33fe52,view:_0x31dd8c,index:_0x50295c}=_0x46994b,_0x5b8a9f=_0x150bf0[_0x2a3325(0x228)](_0x14a367,_0x5c5c99[_0x2a3325(0x36b)]);if(!_0x5b8a9f||!$(_0x5b8a9f,_0x33fe52)||_0x5b8a9f[_0x2a3325(0x32f)]()[_0x2a3325(0x298)][_0x33fe52][_0x2a3325(0x362)][_0x31dd8c['id']])return!0x1;let _0x30bd97=_0x20781e[_0x2a3325(0x43e)](_0x5daeb6),_0x30bdc0=_0x20781e[_0x2a3325(0x43e)](_0x5b9522),_0x5a07aa=_0x5b8a9f[_0x2a3325(0x32f)](),_0x209d4c=Fa(_0x5a07aa,_0x33fe52,_0x31dd8c,_0x50295c),_0x37d13c=new z()[_0x2a3325(0x2d8)](_0x5a07aa,_0x209d4c),_0x165bff={'historyAction':_0x2a3325(0x44d),'unitId':_0x14a367,'op':_0x209d4c,'viewType':_0x31dd8c['type']},_0x20f895={'historyAction':_0x2a3325(0x145),'unitId':_0x14a367,'op':_0x37d13c,'viewType':_0x31dd8c[_0x2a3325(0x20b)]};return _0x30bd97[_0x2a3325(0x163)](Q['id'],_0x165bff)?(_0x150bf0[_0x2a3325(0x243)](_0x14a367),_0x30bdc0[_0x2a3325(0x47c)]({'unitID':_0x14a367,'undoMutations':[{'id':Q['id'],'params':_0x20f895}],'redoMutations':[{'id':Q['id'],'params':_0x165bff}]}),!0x0):!0x1;}},Ka={'id':_0x6c183(0x274),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x553932,_0x2ff919){const _0x28b9fe=_0x6c183;if(!_0x2ff919)return!0x1;let _0x406cd3=_0x553932[_0x28b9fe(0x43e)](_0x24efe9),{unitId:_0x1fa5cc,tableId:_0x41db8b,fieldId:_0x187f29}=_0x2ff919,_0x108a22=_0x406cd3[_0x28b9fe(0x228)](_0x1fa5cc,_0x5c5c99[_0x28b9fe(0x36b)]);if(!_0x108a22)return!0x1;let _0x599ee7=_0x108a22['getSnapshot'](),_0x224077=_0x599ee7[_0x28b9fe(0x298)][_0x41db8b];if(!$(_0x108a22,_0x41db8b,{'fieldIds':[_0x187f29]})||_0x224077[_0x28b9fe(0x3b2)]===_0x187f29||_0x187f29===_0x5a35e2)return!0x1;let _0x39ce3d=_0x553932[_0x28b9fe(0x43e)](_0x5daeb6),_0x662ec7=_0x553932['get'](_0x5b9522),_0x1a9b80=new W()['deleteField'](_0x599ee7,_0x41db8b,_0x187f29),_0x911843=new z()['invertOp'](_0x599ee7,_0x1a9b80),_0x16d498={'unitId':_0x1fa5cc,'op':_0x1a9b80},_0x3c3af8={'unitId':_0x1fa5cc,'op':_0x911843};return _0x39ce3d[_0x28b9fe(0x163)](Q['id'],_0x16d498)?(_0x406cd3[_0x28b9fe(0x243)](_0x1fa5cc),_0x662ec7[_0x28b9fe(0x47c)]({'unitID':_0x1fa5cc,'undoMutations':[{'id':Q['id'],'params':_0x3c3af8}],'redoMutations':[{'id':Q['id'],'params':_0x16d498}]}),!0x0):!0x1;}},qa={'id':_0x6c183(0x1c7),'type':_0x22977e['COMMAND'],'handler':(_0x2013c9,_0x7d6d58)=>{const _0x1fef8b=_0x6c183;if(!_0x7d6d58)return!0x1;let _0x122331=_0x2013c9[_0x1fef8b(0x43e)](_0x24efe9),{unitId:_0x58407e,tableId:_0x8cade5,recordId:_0x386177}=_0x7d6d58,_0x118a2e=_0x122331['getUnit'](_0x58407e,_0x5c5c99[_0x1fef8b(0x36b)]);if(!_0x118a2e||!$(_0x118a2e,_0x8cade5,{'recordIds':[_0x386177]}))return!0x1;let _0x45e3e4=_0x2013c9['get'](_0x5daeb6),_0x23c254=_0x2013c9[_0x1fef8b(0x43e)](_0x5b9522),_0x3f01a3=_0x118a2e[_0x1fef8b(0x32f)](),_0x540d30=et(_0x3f01a3['tables'][_0x8cade5],[_0x386177]),_0x4066cf=new W(),_0xf19bfa=new z(),_0xc2f43a=_0x4066cf[_0x1fef8b(0x465)](_0x3f01a3,_0x8cade5,_0x386177),_0x37587a=_0xf19bfa[_0x1fef8b(0x4c3)](_0x3f01a3,_0xc2f43a),_0x1692a0=_0x4066cf[_0x1fef8b(0x225)](_0x3f01a3,_0x37587a,_0x8cade5,[_0x386177]),_0x19d51c={'unitId':_0x58407e,'op':_0xc2f43a,'hierarchyChanges':_0x540d30,'source':_0x7d6d58[_0x1fef8b(0x495)]??'ui'},_0x24af53={..._0x19d51c,'source':'redo'},_0x48cd46={'unitId':_0x58407e,'op':_0x1692a0,'hierarchyChanges':_0x540d30['map'](_0x4ee603=>({..._0x4ee603,'oldParentRecordId':_0x4ee603[_0x1fef8b(0x474)],'parentRecordId':_0x4ee603[_0x1fef8b(0x2d1)]})),'source':_0x1fef8b(0x23c)};return _0x45e3e4[_0x1fef8b(0x163)](Q['id'],_0x19d51c)?(_0x122331['focusUnit'](_0x58407e),_0x23c254['pushUndoRedo']({'unitID':_0x58407e,'undoMutations':[{'id':Q['id'],'params':_0x48cd46}],'redoMutations':[{'id':Q['id'],'params':_0x24af53}]}),!0x0):!0x1;}},Ja={'id':'base.command.delete-base-table','type':_0x22977e['COMMAND'],'handler':(_0x8629d6,_0x4c0627)=>{const _0x1c3550=_0x6c183;if(!_0x4c0627)return!0x1;let _0x1a26cb=_0x8629d6[_0x1c3550(0x43e)](_0x24efe9),{unitId:_0x14324c,tableId:_0x343648}=_0x4c0627,_0x80d9ab=_0x1a26cb[_0x1c3550(0x228)](_0x14324c,_0x5c5c99['UNIVER_BASE']);if(!_0x80d9ab||!$(_0x80d9ab,_0x343648))return!0x1;let _0x401154=_0x8629d6['get'](_0x5daeb6),_0x15a4d3=_0x8629d6[_0x1c3550(0x43e)](_0x5b9522),_0x375abd=_0x80d9ab[_0x1c3550(0x32f)](),_0x34eea4=He(_0x375abd,_0x343648);if(_0x34eea4[_0x1c3550(0x13c)]>0x0)return console['error'](_0x1c3550(0x30f)+_0x343648+_0x1c3550(0x181)+_0x34eea4[_0x1c3550(0x141)](_0x563c8b=>_0x563c8b[_0x1c3550(0x210)]+'.'+_0x563c8b['fieldId'])[_0x1c3550(0x11a)](',\x20')+'.'),!0x1;let _0x3417f4=new W()[_0x1c3550(0x283)](_0x375abd,_0x343648),_0x554626=new z()[_0x1c3550(0x2d8)](_0x375abd,_0x3417f4),_0x34b828={'unitId':_0x14324c,'op':_0x3417f4},_0x262e67={'unitId':_0x14324c,'op':_0x554626};return _0x401154['syncExecuteCommand'](Q['id'],_0x34b828)?(_0x1a26cb[_0x1c3550(0x243)](_0x14324c),_0x15a4d3[_0x1c3550(0x47c)]({'unitID':_0x14324c,'undoMutations':[{'id':Q['id'],'params':_0x262e67}],'redoMutations':[{'id':Q['id'],'params':_0x34b828}]}),!0x0):!0x1;}},Ya={'id':'base.command.delete-base-view','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3ea21f,_0x44b905)=>{const _0x51df61=_0x6c183;if(!_0x44b905)return!0x1;let _0x1df303=_0x3ea21f[_0x51df61(0x43e)](_0x24efe9),{unitId:_0x58134b,tableId:_0x25aaed,viewId:_0x567646}=_0x44b905,_0x4ccbdf=_0x1df303['getUnit'](_0x58134b,_0x5c5c99[_0x51df61(0x36b)]);if(!_0x4ccbdf||!$(_0x4ccbdf,_0x25aaed,{'viewIds':[_0x567646]}))return!0x1;let _0x37dffc=_0x3ea21f[_0x51df61(0x43e)](_0x5daeb6),_0x49aa2f=_0x3ea21f[_0x51df61(0x43e)](_0x5b9522),_0x1e62bd=_0x4ccbdf[_0x51df61(0x32f)](),_0x26ce89=_0x1e62bd[_0x51df61(0x298)][_0x25aaed][_0x51df61(0x362)][_0x567646][_0x51df61(0x20b)],_0x330cdc=new W()[_0x51df61(0x3f9)](_0x1e62bd,_0x25aaed,_0x567646),_0x39fabc=new z()[_0x51df61(0x2d8)](_0x1e62bd,_0x330cdc),_0x38fad1={'historyAction':_0x51df61(0x145),'unitId':_0x58134b,'op':_0x330cdc,'viewType':_0x26ce89},_0x5e1d41={'historyAction':_0x51df61(0x44d),'unitId':_0x58134b,'op':_0x39fabc,'viewType':_0x26ce89};return _0x37dffc[_0x51df61(0x163)](Q['id'],_0x38fad1)?(_0x1df303[_0x51df61(0x243)](_0x58134b),_0x49aa2f[_0x51df61(0x47c)]({'unitID':_0x58134b,'undoMutations':[{'id':Q['id'],'params':_0x5e1d41}],'redoMutations':[{'id':Q['id'],'params':_0x38fad1}]}),!0x0):!0x1;}},Xa={'id':_0x6c183(0x128),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3b6113,_0x500447)=>{const _0x3324d2=_0x6c183;if(!_0x500447)return!0x1;let _0x4c0d4f=_0x3b6113[_0x3324d2(0x43e)](_0x24efe9),{unitId:_0x48e3f4,tableId:_0x20679d,sourceFieldId:_0x448a94,field:_0x3b1a0b,index:_0x226539,viewIndexes:_0x46a890}=_0x500447,_0x54708d=_0x4c0d4f[_0x3324d2(0x228)](_0x48e3f4,_0x5c5c99[_0x3324d2(0x36b)]);if(!_0x54708d||!$(_0x54708d,_0x20679d,{'fieldIds':[_0x448a94]})||_0x448a94===_0x5a35e2||_0x54708d[_0x3324d2(0x32f)]()[_0x3324d2(0x298)][_0x20679d][_0x3324d2(0x398)][_0x3b1a0b['id']]||_0x226539===0x0||!ha(_0x54708d,_0x20679d,_0x3b1a0b))return!0x1;let _0x304d82=_0x3b6113[_0x3324d2(0x43e)](_0x5daeb6),_0x25fc76=_0x3b6113[_0x3324d2(0x43e)](_0x5b9522),_0x3790fe=_0x54708d[_0x3324d2(0x32f)](),_0x4b7342=new W()[_0x3324d2(0x25b)](_0x3790fe,_0x20679d,_0x448a94,{'field':_0x3b1a0b,'index':_0x226539,'viewIndexes':_0x46a890}),_0x480ce0=new z()[_0x3324d2(0x2d8)](_0x3790fe,_0x4b7342),_0x22178a={'unitId':_0x48e3f4,'op':_0x4b7342},_0x50184b={'unitId':_0x48e3f4,'op':_0x480ce0};return _0x304d82[_0x3324d2(0x163)](Q['id'],_0x22178a)?(_0x4c0d4f[_0x3324d2(0x243)](_0x48e3f4),_0x25fc76[_0x3324d2(0x47c)]({'unitID':_0x48e3f4,'undoMutations':[{'id':Q['id'],'params':_0x50184b}],'redoMutations':[{'id':Q['id'],'params':_0x22178a}]}),!0x0):!0x1;}},Za={'id':_0x6c183(0x206),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4c825d,_0xb32af6)=>{const _0x200970=_0x6c183;if(!_0xb32af6)return!0x1;let _0x3fa843=_0x4c825d['get'](_0x24efe9),{unitId:_0x33fb4e,tableId:_0x5d0bbc,sourceRecordId:_0x49cbe1,record:_0x25536d}=_0xb32af6,_0x1f1306=_0x3fa843[_0x200970(0x228)](_0x33fb4e,_0x5c5c99[_0x200970(0x36b)]);if(!_0x1f1306||!$(_0x1f1306,_0x5d0bbc,{'recordIds':[_0x49cbe1]})||!_a(_0x1f1306,_0x5d0bbc,_0x25536d))return!0x1;let _0x5850b4=_0x4c825d[_0x200970(0x43e)](_0x5daeb6),_0x5bc2ec=_0x4c825d[_0x200970(0x43e)](_0x5b9522),_0x46a72d=_0x1f1306['getSnapshot'](),_0x1a25da=va(_0x25536d),_0x33e0c8=Qe(_0x46a72d['tables'][_0x5d0bbc],[_0x1a25da]),_0x1cebea=new W()['duplicateRecord'](_0x46a72d,_0x5d0bbc,_0x49cbe1,_0x1a25da),_0x3a945d=new z()[_0x200970(0x2d8)](_0x46a72d,_0x1cebea),_0x4e1c68={'unitId':_0x33fb4e,'op':_0x1cebea,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8:void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?_0xb32af6['source']??'ui':void 0x0},_0x47a5d0={..._0x4e1c68,'source':_0x33e0c8['length']?'redo':void 0x0},_0x3c952b={'unitId':_0x33fb4e,'op':_0x3a945d,'hierarchyChanges':_0x33e0c8[_0x200970(0x13c)]?_0x33e0c8[_0x200970(0x141)](_0x1565b0=>({..._0x1565b0,'oldParentRecordId':_0x1565b0[_0x200970(0x474)],'parentRecordId':null})):void 0x0,'source':_0x33e0c8[_0x200970(0x13c)]?'undo':void 0x0};return _0x5850b4[_0x200970(0x163)](Q['id'],_0x4e1c68)?(_0x3fa843[_0x200970(0x243)](_0x33fb4e),_0x5bc2ec[_0x200970(0x47c)]({'unitID':_0x33fb4e,'undoMutations':[{'id':Q['id'],'params':_0x3c952b}],'redoMutations':[{'id':Q['id'],'params':_0x47a5d0}]}),!0x0):!0x1;}},Qa={'id':_0x6c183(0x247),'type':_0x22977e['COMMAND'],'handler'(_0x509c66,_0x5815a1){const _0x45d9a7=_0x6c183;if(!_0x5815a1)return!0x1;let _0x56db3a=_0x509c66[_0x45d9a7(0x43e)](_0x24efe9),{unitId:_0x1bfe58,tableId:_0x505ba5,viewId:_0x43d94c,ensureEndDateField:_0x50693b}=_0x5815a1,_0x53fdc9=_0x56db3a['getUnit'](_0x1bfe58,_0x5c5c99[_0x45d9a7(0x36b)]);if(!_0x53fdc9||!$(_0x53fdc9,_0x505ba5,{'viewIds':[_0x43d94c]}))return!0x1;let _0x4a1010=_0x53fdc9[_0x45d9a7(0x32f)](),_0x1eaf00=_0x4a1010[_0x45d9a7(0x298)][_0x505ba5],_0x9f3488=_0x1eaf00==null?void 0x0:_0x1eaf00['views'][_0x43d94c];if(!_0x1eaf00||!_0x9f3488||_0x9f3488['type']!==_0x45d9a7(0x1eb)&&_0x9f3488[_0x45d9a7(0x20b)]!==_0x45d9a7(0x26b))return!0x1;let _0x382c66=Ia(_0x1eaf00,_0x9f3488,_0x50693b===!0x0);if(!_0x382c66[_0x45d9a7(0x1e4)])return!0x1;let _0x36760a=_0x509c66[_0x45d9a7(0x43e)](_0x5daeb6),_0x446a5d=_0x509c66[_0x45d9a7(0x43e)](_0x5b9522),_0x1690e5=new W(),_0x59f306=[..._0x382c66[_0x45d9a7(0x398)][_0x45d9a7(0x141)](_0x4e8ee8=>_0x1690e5[_0x45d9a7(0x250)](_0x4a1010,_0x5815a1[_0x45d9a7(0x210)],{'field':_0x4e8ee8})),$a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'config'],_0x9f3488[_0x45d9a7(0x2ba)],_0x382c66[_0x45d9a7(0x2ba)])];_0x382c66[_0x45d9a7(0x3b5)]&&_0x59f306[_0x45d9a7(0x174)]($a([...eo(_0x5815a1[_0x45d9a7(0x210)],_0x5815a1[_0x45d9a7(0x288)]),'fieldOrder'],_0x9f3488[_0x45d9a7(0x3b5)],_0x382c66[_0x45d9a7(0x3b5)]));let _0x1b5a67=R(_0x59f306),_0x5a6179=new z()['invertOp'](_0x4a1010,_0x1b5a67),_0x320276={'unitId':_0x1bfe58,'op':_0x1b5a67},_0x1b5cdb={'unitId':_0x1bfe58,'op':_0x5a6179};return _0x36760a[_0x45d9a7(0x163)](Q['id'],_0x320276)?(_0x56db3a[_0x45d9a7(0x243)](_0x1bfe58),_0x446a5d[_0x45d9a7(0x47c)]({'unitID':_0x1bfe58,'undoMutations':[{'id':Q['id'],'params':_0x1b5cdb}],'redoMutations':[{'id':Q['id'],'params':_0x320276}]}),!0x0):!0x1;}};function $a(_0x5dbc59,_0x52ebea,_0xf49f25){const _0x306426=_0x6c183;return _0x52ebea===void 0x0?_0x53fdae[_0x306426(0x13f)](_0x5dbc59,_0xf49f25):_0x53fdae[_0x306426(0x180)](_0x5dbc59,_0x52ebea,_0xf49f25);}function eo(_0x20a60c,_0x36c2d0){const _0x30ff7f=_0x6c183;return[_0x30ff7f(0x298),_0x20a60c,_0x30ff7f(0x362),_0x36c2d0];}const to={'id':'base.command.move-base-field','type':_0x22977e['COMMAND'],'handler':(_0x16c391,_0x3b800e)=>{const _0x34e677=_0x6c183;if(!_0x3b800e)return!0x1;let _0x255867=_0x16c391[_0x34e677(0x43e)](_0x24efe9),{unitId:_0x588c3a,tableId:_0x588d53,fieldId:_0xaf49e,target:_0x41f4fb}=_0x3b800e,_0x159f7d=_0x255867[_0x34e677(0x228)](_0x588c3a,_0x5c5c99['UNIVER_BASE']),_0x5dc3f0=_0x41f4fb[_0x34e677(0x33d)]??_0x41f4fb[_0x34e677(0x473)];if(!_0x159f7d||!!_0x41f4fb[_0x34e677(0x33d)]==!!_0x41f4fb[_0x34e677(0x473)]||!_0x5dc3f0||_0x5dc3f0===_0xaf49e||_0xaf49e===_0x5a35e2||_0x41f4fb[_0x34e677(0x33d)]===_0x5a35e2||!$(_0x159f7d,_0x588d53,{'fieldIds':[_0xaf49e,_0x5dc3f0]}))return!0x1;let _0x1a8763=_0x16c391[_0x34e677(0x43e)](_0x5daeb6),_0x39f543=_0x16c391[_0x34e677(0x43e)](_0x5b9522),_0x561e63=_0x159f7d[_0x34e677(0x32f)](),_0x56c040=new W()['moveField'](_0x561e63,_0x588d53,_0xaf49e,_0x41f4fb),_0xc5b4f4=new z()[_0x34e677(0x2d8)](_0x561e63,_0x56c040),_0x2803d8={'unitId':_0x588c3a,'op':_0x56c040},_0x521d4d={'unitId':_0x588c3a,'op':_0xc5b4f4};return _0x1a8763[_0x34e677(0x163)](Q['id'],_0x2803d8)?(_0x255867[_0x34e677(0x243)](_0x588c3a),_0x39f543[_0x34e677(0x47c)]({'unitID':_0x588c3a,'undoMutations':[{'id':Q['id'],'params':_0x521d4d}],'redoMutations':[{'id':Q['id'],'params':_0x2803d8}]}),!0x0):!0x1;}},no={'id':_0x6c183(0x2af),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x427956,_0xebfa42)=>{const _0x42c0e3=_0x6c183;var _0x59d24f;if(!_0xebfa42)return!0x1;let {unitId:_0xb380b1,tableId:_0x493c16,recordId:_0x59cbe8,parentRecordId:_0x2a7989,orderKey:_0xaf908c}=_0xebfa42,_0x3ff605=_0x427956['get'](_0x24efe9),_0xec512d=_0x3ff605[_0x42c0e3(0x228)](_0xb380b1,_0x5c5c99[_0x42c0e3(0x36b)]);if(!_0xec512d||!$(_0xec512d,_0x493c16,{'recordIds':[_0x59cbe8,..._0x2a7989?[_0x2a7989]:[]]}))throw new P(_0x42c0e3(0x281));let _0x4c428d=_0xec512d[_0x42c0e3(0x32f)](),_0x1b3f18=_0x4c428d[_0x42c0e3(0x298)][_0x493c16],_0x4c3b00=qe(_0x1b3f18),_0x42088a=_0x4c3b00??_0xebfa42['fieldId']??Je(_0x1b3f18);if(_0x4c3b00&&_0xebfa42['fieldId']&&_0xebfa42['fieldId']!==_0x4c3b00||_0x1b3f18[_0x42c0e3(0x398)][_0x42088a]&&!F(_0x1b3f18,_0x42088a))throw new P(_0x42c0e3(0x48d));let _0x30139d=tt(_0x1b3f18,_0x42088a),_0x401726=it(_0x30139d,_0x59cbe8,_0x2a7989);if(!_0x401726[_0x42c0e3(0x26e)])throw new P(_0x401726['reason']===_0x5b4879[_0x42c0e3(0x40a)]?'selfParent':_0x401726['reason']===_0x5b4879[_0x42c0e3(0x478)]?'cycle':_0x42c0e3(0x138));let _0x594747=_0x30139d[_0x42c0e3(0x3b7)][_0x42c0e3(0x43e)](_0x59cbe8)??null,_0x4ee275=_0x1b3f18[_0x42c0e3(0x258)][_0x59cbe8][_0x42c0e3(0x4a1)];if(_0x594747===_0x2a7989&&(_0xaf908c===void 0x0||_0xaf908c===_0x4ee275))return!0x0;let _0x5de515=_0x594747!==_0x2a7989,_0x309e52=_0xaf908c!==void 0x0&&_0xaf908c!==_0x4ee275,_0x365fd4=new W(),_0x19291c=[],_0x21e200=_0x1b3f18['fields'][_0x42088a],_0x1d68d7=_0x5de515&&(!_0x21e200||((_0x59d24f=N(_0x21e200))==null?void 0x0:_0x59d24f[_0x42c0e3(0x1d4)])!==_0x4c2417[_0x42c0e3(0x2e7)])?_0x21e200?_0x365fd4[_0x42c0e3(0x13b)](_0x4c428d,_0x493c16,_0x42088a,{'config':{..._0x21e200[_0x42c0e3(0x2ba)],'relationRole':_0x4c2417[_0x42c0e3(0x2e7)]}}):_0x427956['get'](Kr)[_0x42c0e3(0x4b7)](_0xec512d,_0x493c16,Ye(_0x1b3f18,_0x42088a,_0xebfa42[_0x42c0e3(0x1c6)]),_0x1b3f18[_0x42c0e3(0x3b5)][_0x42c0e3(0x13c)]):null;_0x1d68d7&&_0x19291c[_0x42c0e3(0x174)](_0x1d68d7),_0x5de515&&_0x19291c[_0x42c0e3(0x174)](_0x365fd4['updateCell'](_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a,_0x2a7989?Re([_0x2a7989]):'')),_0x309e52&&_0x19291c['push'](_0x365fd4['updateRecordOrder'](_0x4c428d,_0x493c16,_0x59cbe8,_0xaf908c));let _0x298e10=R(_0x19291c),_0x4c1a73={'tableId':_0x493c16,'fieldId':_0x42088a,'recordId':_0x59cbe8,'oldParentRecordId':_0x594747,'parentRecordId':_0x2a7989},_0x143259={'unitId':_0xb380b1,'op':_0x298e10,'trigger':no['id'],'hierarchyChanges':[_0x4c1a73],'source':_0xebfa42[_0x42c0e3(0x495)]??'ui'},_0x4a210e={..._0x143259,'source':'redo'};if(!_0x427956['get'](_0x5daeb6)[_0x42c0e3(0x163)](Q['id'],_0x143259))return!0x1;let _0x37eed0=_0xec512d[_0x42c0e3(0x32f)](),_0x32eee4=[];_0x5de515&&_0x32eee4[_0x42c0e3(0x174)](ro(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8,_0x42088a)),_0x309e52&&_0x32eee4[_0x42c0e3(0x174)](io(_0x37eed0,_0x4c428d,_0x493c16,_0x59cbe8)),_0x1d68d7&&_0x32eee4[_0x42c0e3(0x174)](new z()[_0x42c0e3(0x2d8)](_0x4c428d,_0x1d68d7));let _0x42ea62={'unitId':_0xb380b1,'op':R(_0x32eee4),'trigger':no['id'],'hierarchyChanges':[{..._0x4c1a73,'oldParentRecordId':_0x2a7989,'parentRecordId':_0x594747}],'source':'undo'};return _0x3ff605[_0x42c0e3(0x243)](_0xb380b1),_0x427956[_0x42c0e3(0x43e)](_0x5b9522)[_0x42c0e3(0x47c)]({'unitID':_0xb380b1,'undoMutations':[{'id':Q['id'],'params':_0x42ea62}],'redoMutations':[{'id':Q['id'],'params':_0x4a210e}]}),!0x0;}};function ro(_0x417ee7,_0x44fef9,_0x42b989,_0x1f7f38,_0x128e22){const _0x286cbf=_0x6c183;var _0x496e3a,_0x7654ae,_0x250594,_0x49610d,_0x14e160,_0x1c8c8c,_0x2073c3,_0x1a439d;let _0x3ed69a=_0x417ee7[_0x286cbf(0x298)][_0x42b989],_0x16ea4c=_0x44fef9[_0x286cbf(0x298)][_0x42b989],_0x188501=(_0x496e3a=_0x3ed69a[_0x286cbf(0x375)])==null?void 0x0:_0x496e3a[_0x1f7f38],_0x28531b=(_0x7654ae=_0x3ed69a['colIndex'])==null?void 0x0:_0x7654ae[_0x128e22],_0x480f67=(_0x250594=_0x16ea4c[_0x286cbf(0x375)])==null?void 0x0:_0x250594[_0x1f7f38],_0x32fd6b=(_0x49610d=_0x16ea4c[_0x286cbf(0x390)])==null?void 0x0:_0x49610d[_0x128e22],_0xdb9805=_0x188501==null||_0x28531b==null||(_0x14e160=_0x3ed69a[_0x286cbf(0x389)])==null||(_0x14e160=_0x14e160[_0x188501])==null?void 0x0:_0x14e160[_0x28531b],_0xbb36e8=_0x480f67==null||_0x32fd6b==null||(_0x1c8c8c=_0x16ea4c[_0x286cbf(0x389)])==null||(_0x1c8c8c=_0x1c8c8c[_0x480f67])==null?void 0x0:_0x1c8c8c[_0x32fd6b],_0x49f79d=(_0x2073c3=_0x3ed69a[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x2073c3[_0x286cbf(0x227)][_0x128e22],_0x389ae0=(_0x1a439d=_0x16ea4c[_0x286cbf(0x258)][_0x1f7f38])==null?void 0x0:_0x1a439d[_0x286cbf(0x227)][_0x128e22],_0x485f33=[],_0x40d91f=ao(_0x188501==null||_0x28531b==null?null:U['cellData'](_0x42b989,_0x188501,_0x28531b),_0xdb9805,_0xbb36e8);_0x40d91f&&_0x485f33['push'](_0x40d91f);let _0x2131b2=ao(U[_0x286cbf(0x1de)](_0x42b989,_0x1f7f38,_0x128e22),_0x49f79d,_0x389ae0);return _0x2131b2&&_0x485f33[_0x286cbf(0x174)](_0x2131b2),R(_0x485f33);}function io(_0x404e59,_0x203e55,_0x11ca6d,_0x1f02cd){const _0x3ba420=_0x6c183;var _0x4be4b7,_0x2eca94;let _0x1f605a=_0x404e59[_0x3ba420(0x298)][_0x11ca6d],_0x41a5ae=_0x203e55[_0x3ba420(0x298)][_0x11ca6d];return R([ao([...U[_0x3ba420(0x493)](_0x11ca6d,_0x1f02cd),'orderKey'],(_0x4be4b7=_0x1f605a[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x4be4b7[_0x3ba420(0x4a1)],(_0x2eca94=_0x41a5ae[_0x3ba420(0x258)][_0x1f02cd])==null?void 0x0:_0x2eca94[_0x3ba420(0x4a1)]),ao([...U[_0x3ba420(0x4c7)](_0x11ca6d),_0x3ba420(0x1e7)],_0x1f605a[_0x3ba420(0x1e7)],_0x41a5ae[_0x3ba420(0x1e7)])][_0x3ba420(0x2be)](_0x844ab4=>!!_0x844ab4));}function ao(_0x5c024d,_0x5568e3,_0x11c614){const _0x5e4291=_0x6c183;if(!_0x5c024d||_0x5568e3===void 0x0&&_0x11c614===void 0x0)return null;let _0x4581b2=_0x39141f[_0x5e4291(0x47f)]();return _0x11c614===void 0x0?_0x4581b2[_0x5e4291(0x37b)](_0x5c024d,_0x5568e3):_0x5568e3===void 0x0?_0x4581b2['insertOp'](_0x5c024d,_0x11c614):_0x4581b2[_0x5e4291(0x180)](_0x5c024d,_0x5568e3,_0x11c614);}const oo={'id':_0x6c183(0x429),'type':_0x22977e['COMMAND'],'handler':(_0x4786c4,_0x1f084c)=>{const _0x2f3fbf=_0x6c183;if(!_0x1f084c)return!0x1;let _0x33d727=_0x4786c4['get'](_0x24efe9),{unitId:_0x2d2a49,tableId:_0x493706,viewId:_0x5c1a56,target:_0x727ce8}=_0x1f084c,_0x3cad72=_0x33d727['getUnit'](_0x2d2a49,_0x5c5c99[_0x2f3fbf(0x36b)]),_0xbd9c3=_0x727ce8[_0x2f3fbf(0x1af)]??_0x727ce8[_0x2f3fbf(0x2d4)];if(!_0x3cad72||!_0xbd9c3||_0xbd9c3===_0x5c1a56||!$(_0x3cad72,_0x493706,{'viewIds':[_0x5c1a56,_0xbd9c3]}))return!0x1;let _0x517092=_0x4786c4[_0x2f3fbf(0x43e)](_0x5daeb6),_0x4d693b=_0x4786c4[_0x2f3fbf(0x43e)](_0x5b9522),_0x4743d3=_0x3cad72[_0x2f3fbf(0x32f)](),_0x5cd167=new W()[_0x2f3fbf(0x308)](_0x4743d3,_0x493706,_0x5c1a56,_0x727ce8),_0x548a45=new z()['invertOp'](_0x4743d3,_0x5cd167),_0x359e6f={'unitId':_0x2d2a49,'op':_0x5cd167},_0x6e6d4={'unitId':_0x2d2a49,'op':_0x548a45};return _0x517092['syncExecuteCommand'](Q['id'],_0x359e6f)?(_0x33d727['focusUnit'](_0x2d2a49),_0x4d693b[_0x2f3fbf(0x47c)]({'unitID':_0x2d2a49,'undoMutations':[{'id':Q['id'],'params':_0x6e6d4}],'redoMutations':[{'id':Q['id'],'params':_0x359e6f}]}),!0x0):!0x1;}},so={'id':_0x6c183(0x204),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x26394f,_0x2c22c9)=>{const _0x3751a0=_0x6c183;if(!_0x2c22c9)return!0x1;let _0x5221a0=_0x26394f[_0x3751a0(0x43e)](_0x24efe9),{unitId:_0x100dee,tableId:_0x98b186,name:_0x54f9c6}=_0x2c22c9,_0x449f77=_0x5221a0[_0x3751a0(0x228)](_0x100dee,_0x5c5c99['UNIVER_BASE']);if(!_0x449f77||!$(_0x449f77,_0x98b186)||!Oa(_0x449f77[_0x3751a0(0x32f)](),_0x54f9c6,_0x98b186)['valid'])return!0x1;let _0x58ffad=_0x26394f[_0x3751a0(0x43e)](_0x5daeb6),_0x34897c=_0x26394f[_0x3751a0(0x43e)](_0x5b9522),_0x5ed005=_0x449f77[_0x3751a0(0x32f)](),_0x3d6cd1=new W()[_0x3751a0(0x17d)](_0x5ed005,_0x98b186,_0x54f9c6),_0x478230=new z()['invertOp'](_0x5ed005,_0x3d6cd1),_0x15406e={'unitId':_0x100dee,'op':_0x3d6cd1},_0x4f4e3a={'unitId':_0x100dee,'op':_0x478230};return _0x58ffad[_0x3751a0(0x163)](Q['id'],_0x15406e)?(_0x5221a0[_0x3751a0(0x243)](_0x100dee),_0x34897c[_0x3751a0(0x47c)]({'unitID':_0x100dee,'undoMutations':[{'id':Q['id'],'params':_0x4f4e3a}],'redoMutations':[{'id':Q['id'],'params':_0x15406e}]}),!0x0):!0x1;}},co={'id':_0x6c183(0x2cb),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x1842dd,_0x4feb4d)=>{const _0x479d4a=_0x6c183;if(!_0x4feb4d)return!0x1;let _0x4453d6=_0x1842dd[_0x479d4a(0x43e)](_0x24efe9),{unitId:_0x32579f,tableId:_0x182d83,viewId:_0x2847c5,name:_0x38d5d1}=_0x4feb4d,_0x15292f=_0x4453d6[_0x479d4a(0x228)](_0x32579f,_0x5c5c99[_0x479d4a(0x36b)]);if(!_0x15292f||!$(_0x15292f,_0x182d83,{'viewIds':[_0x2847c5]}))return!0x1;let _0x380a48=_0x1842dd[_0x479d4a(0x43e)](_0x5daeb6),_0x448785=_0x1842dd[_0x479d4a(0x43e)](_0x5b9522),_0x30ac96=_0x15292f[_0x479d4a(0x32f)](),_0x45b9f5=new W()[_0x479d4a(0x15f)](_0x30ac96,_0x182d83,_0x2847c5,_0x38d5d1),_0x58b435=new z()[_0x479d4a(0x2d8)](_0x30ac96,_0x45b9f5),_0x31ebc9={'unitId':_0x32579f,'op':_0x45b9f5},_0x29f605={'unitId':_0x32579f,'op':_0x58b435};return _0x380a48['syncExecuteCommand'](Q['id'],_0x31ebc9)?(_0x4453d6['focusUnit'](_0x32579f),_0x448785[_0x479d4a(0x47c)]({'unitID':_0x32579f,'undoMutations':[{'id':Q['id'],'params':_0x29f605}],'redoMutations':[{'id':Q['id'],'params':_0x31ebc9}]}),!0x0):!0x1;}},lo={'id':'base.command.set-base-kanban-group-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x5c1e7d,_0x4d2484)=>{const _0x2afb21=_0x6c183;if(!_0x4d2484)return!0x1;let _0x114521=_0x5c1e7d['get'](_0x24efe9),{unitId:_0x425d09,tableId:_0x388c08,viewId:_0x19aa04,fieldId:_0x36e11c}=_0x4d2484,_0x2c6b67=_0x114521[_0x2afb21(0x228)](_0x425d09,_0x5c5c99[_0x2afb21(0x36b)]);if(!_0x2c6b67||!$(_0x2c6b67,_0x388c08,{'viewIds':[_0x19aa04],'fieldIds':[_0x36e11c]}))return!0x1;let _0x50615a=_0x5c1e7d[_0x2afb21(0x43e)](_0x5daeb6),_0x441d4c=_0x5c1e7d[_0x2afb21(0x43e)](_0x5b9522),_0x3290f8=_0x2c6b67[_0x2afb21(0x32f)](),_0x2647fe=new W()[_0x2afb21(0x2cf)](_0x3290f8,_0x388c08,_0x19aa04,{'groupFieldId':_0x36e11c}),_0x23dd02=new z()['invertOp'](_0x3290f8,_0x2647fe),_0x55fb7a={'unitId':_0x425d09,'op':_0x2647fe},_0x1eafc9={'unitId':_0x425d09,'op':_0x23dd02};return _0x50615a[_0x2afb21(0x163)](Q['id'],_0x55fb7a)?(_0x114521['focusUnit'](_0x425d09),_0x441d4c[_0x2afb21(0x47c)]({'unitID':_0x425d09,'undoMutations':[{'id':Q['id'],'params':_0x1eafc9}],'redoMutations':[{'id':Q['id'],'params':_0x55fb7a}]}),!0x0):!0x1;}},uo={'id':_0x6c183(0x2dc),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3793c6,_0x55a58a)=>{const _0x1f402b=_0x6c183;if(!_0x55a58a)return!0x1;let _0x2ab599=_0x3793c6[_0x1f402b(0x43e)](_0x24efe9),_0x5cae4a=_0x2ab599[_0x1f402b(0x228)](_0x55a58a[_0x1f402b(0x393)],_0x5c5c99[_0x1f402b(0x36b)]);if(!_0x5cae4a)return!0x1;let _0x4b1816=_0x5cae4a[_0x1f402b(0x32f)]()[_0x1f402b(0x2a3)];if(_0x4b1816===_0x55a58a[_0x1f402b(0x2a3)])return!0x0;let _0x20cd09=new W(),_0x4ee92c=new z(),_0x2f822e=[],_0x86b02=[],_0x3280e5=[_0x5cae4a,..._0x2ab599[_0x1f402b(0x3db)](_0x5c5c99[_0x1f402b(0x36b)])['filter'](_0x5f30fd=>_0x5f30fd[_0x1f402b(0x2ff)]()!==_0x55a58a['unitId'])];for(let _0x3d3b66 of _0x3280e5){let _0x391160=_0x3d3b66[_0x1f402b(0x32f)](),_0x1487fa=_0x3d3b66===_0x5cae4a?_0x20cd09[_0x1f402b(0x3f7)](_0x391160,_0x55a58a[_0x1f402b(0x2a3)]):_0x20cd09[_0x1f402b(0x3e9)](_0x391160,_0x4b1816,_0x55a58a['name']);_0x1487fa&&(_0x2f822e[_0x1f402b(0x174)]({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x1487fa,'trigger':uo['id']}}),_0x86b02['unshift']({'id':Q['id'],'params':{'unitId':_0x3d3b66[_0x1f402b(0x2ff)](),'op':_0x4ee92c[_0x1f402b(0x2d8)](_0x391160,_0x1487fa),'trigger':uo['id']}}));}let _0x3c4b80=_0x3793c6[_0x1f402b(0x43e)](_0x5daeb6),_0x127ddd=_0x3793c6[_0x1f402b(0x43e)](_0x5b9522),_0x31479b=_0x127ddd[_0x1f402b(0x11f)](_0x55a58a[_0x1f402b(0x393)]);try{return _0x170e9a(_0x2f822e,_0x3c4b80)[_0x1f402b(0x366)]?(_0x2ab599['focusUnit'](_0x55a58a[_0x1f402b(0x393)]),_0x127ddd[_0x1f402b(0x47c)]({'unitID':_0x55a58a[_0x1f402b(0x393)],'undoMutations':_0x86b02,'redoMutations':_0x2f822e}),!0x0):!0x1;}finally{_0x31479b[_0x1f402b(0x1bb)]();}}},fo={'type':_0x22977e[_0x6c183(0x1b6)],'id':_0x6c183(0x2f7),async 'handler'(_0x416abf,_0xbb01bc){const _0x2ee991=_0x6c183;if(!_0xbb01bc||!Tr[_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x3e8)])||_0xbb01bc[_0x2ee991(0x365)]!==_0xbb01bc['unitId']&&_0xbb01bc[_0x2ee991(0x3e8)]!==_0x1aafeb[_0x2ee991(0x200)]||_0xbb01bc[_0x2ee991(0x2eb)]&&(![_0x2ee991(0x3a4),'owner',_0x2ee991(0x45c)][_0x2ee991(0x16a)](_0xbb01bc[_0x2ee991(0x2eb)]['edit'])||_0xbb01bc[_0x2ee991(0x2eb)]['strategies'][_0x2ee991(0x185)](_0x46427a=>!Tr[_0x2ee991(0x16a)](_0x46427a['action'])||_0xbb01bc['objectId']!==_0xbb01bc[_0x2ee991(0x393)]&&_0x46427a['action']!==_0x1aafeb[_0x2ee991(0x200)])))return!0x1;let _0x5c3e77=Pr(_0xbb01bc['unitId'],_0xbb01bc['objectId'],_0xbb01bc[_0x2ee991(0x3e8)]),_0x633332={'unitId':_0xbb01bc[_0x2ee991(0x393)],'objectId':_0xbb01bc[_0x2ee991(0x365)],'objectType':_0x5c3e77['type']},_0x2ca5a6=_0x416abf['get'](_0x14b422);return _0xbb01bc['remove']?await _0x2ca5a6[_0x2ee991(0x2b2)](_0x633332):_0xbb01bc[_0x2ee991(0x2eb)]?await _0x2ca5a6[_0x2ee991(0x460)](_0x633332,_0xbb01bc[_0x2ee991(0x2eb)]):await _0x2ca5a6[_0x2ee991(0x162)](_0x633332,_0x5c3e77,_0xbb01bc['value']),!0x0;}},po={'type':_0x22977e[_0x6c183(0x1b6)],'id':'base.command.set-permissions',async 'handler'(_0x3da2de,_0x1ab828){const _0x5c9fe8=_0x6c183;if(!(_0x1ab828!=null&&_0x1ab828[_0x5c9fe8(0x393)])||!Array[_0x5c9fe8(0x431)](_0x1ab828[_0x5c9fe8(0x34d)])||!_0x1ab828[_0x5c9fe8(0x34d)][_0x5c9fe8(0x13c)]||_0x1ab828[_0x5c9fe8(0x34d)]['some'](_0x231129=>!(_0x231129!=null&&_0x231129['objectId'])||_0x231129[_0x5c9fe8(0x365)]===_0x1ab828[_0x5c9fe8(0x393)]||_0x231129[_0x5c9fe8(0x2eb)]!==null&&(!_0x231129['policy']||![_0x5c9fe8(0x3a4),_0x5c9fe8(0x45b),_0x5c9fe8(0x45c)]['includes'](_0x231129['policy']['edit'])||!Array[_0x5c9fe8(0x431)](_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x2b8)])||!Array[_0x5c9fe8(0x431)](_0x231129['policy'][_0x5c9fe8(0x267)])||_0x231129[_0x5c9fe8(0x2eb)][_0x5c9fe8(0x267)][_0x5c9fe8(0x185)](_0x3fa54b=>_0x3fa54b[_0x5c9fe8(0x3e8)]!==_0x1aafeb['Edit']))))throw Error('Invalid\x20object\x20permission\x20batch.');return _0x3da2de[_0x5c9fe8(0x43e)](_0x14b422)[_0x5c9fe8(0x388)](_0x1ab828[_0x5c9fe8(0x34d)]['map'](_0x243c50=>{const _0x2c36ff=_0x5c9fe8;let _0x47fe52=Pr(_0x1ab828['unitId'],_0x243c50[_0x2c36ff(0x365)],_0x1aafeb[_0x2c36ff(0x200)]);return{'unitId':_0x1ab828[_0x2c36ff(0x393)],'objectId':_0x243c50[_0x2c36ff(0x365)],'objectType':_0x47fe52[_0x2c36ff(0x20b)],'policy':_0x243c50[_0x2c36ff(0x2eb)]};}));}};function mo(_0x5e6ca0,_0x40b743){const _0x16d492=_0x6c183;let _0x51b1f9=L(_0x4e3c3d[_0x16d492(0x29d)](_0x5e6ca0)),_0x553717=new Map();return _0x40b743[_0x16d492(0x2e0)](_0x5be5b0=>{const _0x14f7b9=_0x16d492;var _0x175058,_0x311932;let _0x5cd784='recordId'in _0x5be5b0?_0x5be5b0['recordId']:(_0x175058=_0x51b1f9[_0x14f7b9(0x3d0)])==null?void 0x0:_0x175058[_0x5be5b0[_0x14f7b9(0x4b3)]],_0x1b790b=_0x14f7b9(0x2b0)in _0x5be5b0?_0x5be5b0['fieldId']:(_0x311932=_0x51b1f9['colId'])==null?void 0x0:_0x311932[_0x5be5b0[_0x14f7b9(0x295)]],_0x48e95e=_0x1b790b?_0x51b1f9['fields'][_0x1b790b]:void 0x0;if(!_0x5cd784||!_0x1b790b||!_0x48e95e||!_0x51b1f9[_0x14f7b9(0x258)][_0x5cd784])return;let _0x17aedb=xt(_0x5be5b0[_0x14f7b9(0x350)],_0x48e95e),_0x3d8ec1=wt(_0x5be5b0[_0x14f7b9(0x350)],_0x17aedb,_0x48e95e,_0x51b1f9,_0x5cd784),_0x139223=_0x553717[_0x14f7b9(0x43e)](_0x5cd784)??{};_0x139223[_0x1b790b]=_0x3d8ec1,_0x553717['set'](_0x5cd784,_0x139223);}),[..._0x553717][_0x16d492(0x141)](([_0x415c16,_0x25f1a0])=>({'recordId':_0x415c16,'values':_0x25f1a0}));}const ho={'id':'base.command.set-base-range-values','type':_0x22977e['COMMAND'],'handler'(_0x14c060,_0x1c9c97){const _0x327fed=_0x6c183;if(!_0x1c9c97)return!0x1;let _0x1351e8=_0x14c060[_0x327fed(0x43e)](_0x24efe9),{unitId:_0x16e74d,tableId:_0x18cb8d,patches:_0x4f04ca}=_0x1c9c97,_0x49a797=_0x1351e8['getUnit'](_0x16e74d,_0x5c5c99[_0x327fed(0x36b)]);if(!_0x49a797||!$(_0x49a797,_0x18cb8d))return!0x1;let _0x4056bf=_0x14c060[_0x327fed(0x43e)](_0x5daeb6),_0x45fcd0=_0x14c060[_0x327fed(0x43e)](_0x5b9522),_0x477c76=_0x49a797[_0x327fed(0x32f)](),_0x41a9dd=L(_0x477c76[_0x327fed(0x298)][_0x18cb8d]),_0x41389c=_0x4f04ca[_0x327fed(0x141)](_0x352850=>{const _0xfcb518=_0x327fed;var _0x33cb8f;return _0xfcb518(0x347)in _0x352850?_0x352850[_0xfcb518(0x347)]:(_0x33cb8f=_0x41a9dd['rowId'])==null?void 0x0:_0x33cb8f[_0x352850[_0xfcb518(0x4b3)]];})[_0x327fed(0x2be)](_0x44bfc5=>_0x44bfc5!=null),_0x7fc3a7=_0x4f04ca['map'](_0x519f52=>{const _0x29a50d=_0x327fed;var _0x2b96f2;return _0x29a50d(0x2b0)in _0x519f52?_0x519f52['fieldId']:(_0x2b96f2=_0x41a9dd[_0x29a50d(0x1fe)])==null?void 0x0:_0x2b96f2[_0x519f52['col']];})[_0x327fed(0x2be)](_0xaad905=>_0xaad905!=null);if(_0x41389c['length']!==_0x4f04ca[_0x327fed(0x13c)]||_0x7fc3a7[_0x327fed(0x13c)]!==_0x4f04ca[_0x327fed(0x13c)]||!$(_0x49a797,_0x18cb8d,{'recordIds':_0x41389c,'fieldIds':_0x7fc3a7})||_0x4f04ca['some']((_0x1bbdfd,_0x1d838a)=>!ga(_0x49a797,_0x18cb8d,_0x7fc3a7[_0x1d838a],_0x1bbdfd[_0x327fed(0x350)])))return!0x1;let _0x12fb23=Ze(_0x41a9dd,mo(_0x41a9dd,_0x4f04ca)),_0x528df7=_0x4f04ca['flatMap'](_0x199e34=>{const _0x5f4fe5=_0x327fed;var _0x150eb2,_0x1ac3ef;if(_0x5f4fe5(0x4b3)in _0x199e34)return[_0x199e34];let _0x3f5525=(_0x150eb2=_0x41a9dd[_0x5f4fe5(0x375)])==null?void 0x0:_0x150eb2[_0x199e34['recordId']],_0x4d1393=(_0x1ac3ef=_0x41a9dd[_0x5f4fe5(0x390)])==null?void 0x0:_0x1ac3ef[_0x199e34[_0x5f4fe5(0x2b0)]];return _0x3f5525==null||_0x4d1393==null?[]:[{'row':_0x3f5525,'col':_0x4d1393,'value':_0x199e34['value']}];}),_0x4aebe2=new W()[_0x327fed(0x11d)](_0x477c76,_0x18cb8d,_0x528df7),_0x2693e8=new z()[_0x327fed(0x2d8)](_0x477c76,_0x4aebe2),_0x50f342={'unitId':_0x16e74d,'op':_0x4aebe2,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23[_0x327fed(0x13c)]?_0x12fb23:void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x32a):void 0x0},_0x2be506={'unitId':_0x16e74d,'op':_0x2693e8,'trigger':_0x12fb23[_0x327fed(0x13c)]?ho['id']:void 0x0,'hierarchyChanges':_0x12fb23['length']?_0x12fb23[_0x327fed(0x141)](_0x5f9093=>({..._0x5f9093,'oldParentRecordId':_0x5f9093[_0x327fed(0x474)],'parentRecordId':_0x5f9093[_0x327fed(0x2d1)]})):void 0x0,'source':_0x12fb23[_0x327fed(0x13c)]?_0x327fed(0x23c):void 0x0},_0x565a68={..._0x50f342,'source':_0x12fb23[_0x327fed(0x13c)]?_0x1c9c97['source']??'ui':void 0x0};return _0x4056bf[_0x327fed(0x163)](Q['id'],_0x565a68)?(_0x1351e8[_0x327fed(0x243)](_0x16e74d),_0x45fcd0['pushUndoRedo']({'unitID':_0x16e74d,'undoMutations':[{'id':Q['id'],'params':_0x2be506}],'redoMutations':[{'id':Q['id'],'params':_0x50f342}]}),!0x0):!0x1;}},go={'id':'base.command.set-base-record-values','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x1e0778,_0x2564d0){const _0x414b46=_0x6c183;if(!_0x2564d0)return!0x1;let _0x5af8d5=_0x1e0778[_0x414b46(0x43e)](_0x24efe9),{unitId:_0x15b6f8,tableId:_0x351723,patches:_0x28921d}=_0x2564d0,_0x137ff0=_0x5af8d5[_0x414b46(0x228)](_0x15b6f8,_0x5c5c99[_0x414b46(0x36b)]),_0x502739=_0x28921d[_0x414b46(0x141)](_0x18f7f3=>_0x18f7f3['recordId']),_0x314d33=_0x28921d['flatMap'](_0x57ffe9=>Object[_0x414b46(0x24c)](_0x57ffe9['values']));if(!_0x137ff0||!$(_0x137ff0,_0x351723,{'recordIds':_0x502739,'fieldIds':_0x314d33})||_0x28921d[_0x414b46(0x185)](_0x49a4dc=>Object[_0x414b46(0x279)](_0x49a4dc[_0x414b46(0x227)])[_0x414b46(0x185)](([_0x4f6eab,_0x2e5f94])=>!ga(_0x137ff0,_0x351723,_0x4f6eab,_0x2e5f94))))return!0x1;let _0x56dae6=Ze(_0x137ff0[_0x414b46(0x32f)]()['tables'][_0x351723],_0x28921d),_0x278ff4=_0x1e0778[_0x414b46(0x43e)](_0x5daeb6),_0xba7e20=_0x1e0778[_0x414b46(0x43e)](_0x5b9522),_0x19c97d=_0x1e0778[_0x414b46(0x43e)](Kr)[_0x414b46(0x483)](_0x137ff0,_0x351723,_0x28921d),_0x2d13ea=new z()['invertOp'](_0x137ff0[_0x414b46(0x32f)](),_0x19c97d),_0x28a9e8={'unitId':_0x15b6f8,'op':_0x19c97d,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6['length']?_0x56dae6:void 0x0,'source':_0x56dae6[_0x414b46(0x13c)]?_0x2564d0['source']??'ui':void 0x0},_0x8ece9a={..._0x28a9e8,'source':_0x56dae6[_0x414b46(0x13c)]?_0x414b46(0x32a):void 0x0},_0x9b37e5={'unitId':_0x15b6f8,'op':_0x2d13ea,'trigger':_0x56dae6[_0x414b46(0x13c)]?go['id']:void 0x0,'hierarchyChanges':_0x56dae6[_0x414b46(0x13c)]?_0x56dae6[_0x414b46(0x141)](_0x147ec1=>({..._0x147ec1,'oldParentRecordId':_0x147ec1[_0x414b46(0x474)],'parentRecordId':_0x147ec1[_0x414b46(0x2d1)]})):void 0x0,'source':_0x56dae6['length']?_0x414b46(0x23c):void 0x0};return _0x278ff4[_0x414b46(0x163)](Q['id'],_0x28a9e8)?(_0x5af8d5[_0x414b46(0x243)](_0x15b6f8),_0xba7e20[_0x414b46(0x47c)]({'unitID':_0x15b6f8,'undoMutations':[{'id':Q['id'],'params':_0x9b37e5}],'redoMutations':[{'id':Q['id'],'params':_0x8ece9a}]}),!0x0):!0x1;}},_o={'id':'base.command.set-base-table-hierarchy-field','type':_0x22977e['COMMAND'],'handler':(_0x48d4bf,_0x243235)=>{const _0x591b74=_0x6c183;if(!_0x243235)return!0x1;let {unitId:_0x5b86d9,tableId:_0x19268c,fieldId:_0x28b94a}=_0x243235,_0x36bcea=_0x48d4bf['get'](_0x24efe9),_0x21b7ae=_0x36bcea[_0x591b74(0x228)](_0x5b86d9,_0x5c5c99[_0x591b74(0x36b)]);if(!_0x21b7ae||!$(_0x21b7ae,_0x19268c))return!0x1;let _0x17aed2=_0x21b7ae[_0x591b74(0x32f)](),_0x2d2c9=_0x17aed2[_0x591b74(0x298)][_0x19268c];if(_0x28b94a!==null&&!F(_0x2d2c9,_0x28b94a))throw new P(_0x591b74(0x48d));if(qe(_0x2d2c9)===_0x28b94a)return!0x0;let _0x380ab6=new W(),_0x5f09b8=R(Object[_0x591b74(0x227)](_0x2d2c9[_0x591b74(0x398)])[_0x591b74(0x17a)](_0x3fe598=>{const _0x471370=_0x591b74;if(!F(_0x2d2c9,_0x3fe598['id']))return[];let _0x2f7fe7=N(_0x3fe598);if(!_0x2f7fe7)return[];let _0xc20bb7=_0x3fe598['id']===_0x28b94a;if(_0x2f7fe7[_0x471370(0x1d4)]===_0x4c2417[_0x471370(0x2e7)]===_0xc20bb7)return[];let _0xa0ff34={..._0x3fe598[_0x471370(0x2ba)],'targetTableId':_0x2f7fe7[_0x471370(0x334)],'multiple':_0x2f7fe7[_0x471370(0x376)]};return _0xc20bb7?_0xa0ff34[_0x471370(0x1d4)]=_0x4c2417['Parent']:delete _0xa0ff34[_0x471370(0x1d4)],[_0x380ab6[_0x471370(0x13b)](_0x17aed2,_0x19268c,_0x3fe598['id'],{'config':_0xa0ff34})];})),_0x279c33=new z()['invertOp'](_0x17aed2,_0x5f09b8),_0x3e5969={'unitId':_0x5b86d9,'op':_0x5f09b8},_0x1402b7={'unitId':_0x5b86d9,'op':_0x279c33};return _0x48d4bf[_0x591b74(0x43e)](_0x5daeb6)[_0x591b74(0x163)](Q['id'],_0x3e5969)?(_0x36bcea['focusUnit'](_0x5b86d9),_0x48d4bf[_0x591b74(0x43e)](_0x5b9522)[_0x591b74(0x47c)]({'unitID':_0x5b86d9,'undoMutations':[{'id':Q['id'],'params':_0x1402b7}],'redoMutations':[{'id':Q['id'],'params':_0x3e5969}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x22977e['COMMAND'],'handler':(_0x4d030e,_0x5c4b33)=>{const _0x2a0d26=_0x6c183;if(!_0x5c4b33)return!0x1;let _0x41977a=_0x4d030e[_0x2a0d26(0x43e)](_0x24efe9),{unitId:_0x1fcea3,tableId:_0x238994,viewId:_0x48db3c,fieldId:_0x15c513,target:_0x324800}=_0x5c4b33,_0x3cbfcf=_0x41977a[_0x2a0d26(0x228)](_0x1fcea3,_0x5c5c99[_0x2a0d26(0x36b)]),_0x2d073b=_0x324800['beforeFieldId']??_0x324800['afterFieldId'];if(!_0x3cbfcf||!_0x2d073b||_0x2d073b===_0x15c513||!$(_0x3cbfcf,_0x238994,{'viewIds':[_0x48db3c],'fieldIds':[_0x15c513,_0x2d073b]}))return!0x1;let _0x218363=_0x3cbfcf[_0x2a0d26(0x32f)]()[_0x2a0d26(0x298)][_0x238994],_0x50bf22=_0x218363['fields'][_0x15c513],_0x82f31c=_0x218363[_0x2a0d26(0x398)][_0x2d073b];if(_0x50bf22['system']===!0x0||_0x50bf22[_0x2a0d26(0x20b)]===_0x3a044b['RecordId']||_0x82f31c[_0x2a0d26(0x3cf)]===!0x0||_0x82f31c[_0x2a0d26(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x336186=_0x4d030e[_0x2a0d26(0x43e)](_0x5daeb6),_0x334595=_0x4d030e['get'](_0x5b9522),_0x606034=_0x3cbfcf[_0x2a0d26(0x32f)](),_0x17c3ae=new W()[_0x2a0d26(0x22a)](_0x606034,_0x238994,_0x48db3c,_0x15c513,_0x324800),_0x3010e4=new z()[_0x2a0d26(0x2d8)](_0x606034,_0x17c3ae),_0x58226c={'unitId':_0x1fcea3,'op':_0x17c3ae},_0x2b5f1={'unitId':_0x1fcea3,'op':_0x3010e4};return _0x336186[_0x2a0d26(0x163)](Q['id'],_0x58226c)?(_0x41977a[_0x2a0d26(0x243)](_0x1fcea3),_0x334595[_0x2a0d26(0x47c)]({'unitID':_0x1fcea3,'undoMutations':[{'id':Q['id'],'params':_0x2b5f1}],'redoMutations':[{'id':Q['id'],'params':_0x58226c}]}),!0x0):!0x1;}},yo={'id':_0x6c183(0x2db),'type':_0x22977e['COMMAND'],'handler'(_0x427c1c,_0x2b7aa1){const _0x17de56=_0x6c183;if(!_0x2b7aa1)return!0x1;let _0x463bfa=_0x427c1c[_0x17de56(0x43e)](_0x24efe9),{unitId:_0x29ab68,tableId:_0x1efa5c,viewId:_0x3d1324,fieldId:_0x136ced,visible:_0x3d367a}=_0x2b7aa1,_0x4b4edd=_0x463bfa[_0x17de56(0x228)](_0x29ab68,_0x5c5c99[_0x17de56(0x36b)]);if(!_0x4b4edd||!$(_0x4b4edd,_0x1efa5c,{'viewIds':[_0x3d1324],'fieldIds':[_0x136ced]}))return!0x1;let _0x496ac4=_0x4b4edd[_0x17de56(0x32f)]()[_0x17de56(0x298)][_0x1efa5c][_0x17de56(0x398)][_0x136ced];if(_0x496ac4['system']===!0x0||_0x496ac4[_0x17de56(0x20b)]===_0x3a044b[_0x17de56(0x22f)])return!0x1;let _0x5bde30=_0x427c1c[_0x17de56(0x43e)](_0x5daeb6),_0x12acc5=_0x427c1c[_0x17de56(0x43e)](_0x5b9522),_0x42f645=_0x4b4edd[_0x17de56(0x32f)](),_0x10ffa9=new W()[_0x17de56(0x18c)](_0x42f645,_0x1efa5c,_0x3d1324,_0x136ced,_0x3d367a),_0x3170bb=new z()[_0x17de56(0x2d8)](_0x42f645,_0x10ffa9),_0x3dbc24={'unitId':_0x29ab68,'op':_0x10ffa9},_0x56910c={'unitId':_0x29ab68,'op':_0x3170bb};return _0x5bde30[_0x17de56(0x163)](Q['id'],_0x3dbc24)?(_0x463bfa[_0x17de56(0x243)](_0x29ab68),_0x12acc5['pushUndoRedo']({'unitID':_0x29ab68,'undoMutations':[{'id':Q['id'],'params':_0x56910c}],'redoMutations':[{'id':Q['id'],'params':_0x3dbc24}]}),!0x0):!0x1;}},bo={'id':_0x6c183(0x19e),'type':_0x22977e['COMMAND'],'handler':(_0x975b21,_0x5b9957)=>{const _0x3e44c5=_0x6c183;if(!_0x5b9957)return!0x1;let _0x4f9bcd=_0x975b21['get'](_0x24efe9),{unitId:_0x344f97,tableId:_0x57fc6d,viewId:_0x2c61b7,fieldId:_0x49d1f1,width:_0x4db95d}=_0x5b9957,_0x5f500e=_0x4f9bcd[_0x3e44c5(0x228)](_0x344f97,_0x5c5c99[_0x3e44c5(0x36b)]);if(!_0x5f500e||!$(_0x5f500e,_0x57fc6d,{'viewIds':[_0x2c61b7],'fieldIds':[_0x49d1f1]}))return!0x1;let _0x377a7b=_0x5f500e[_0x3e44c5(0x32f)]()[_0x3e44c5(0x298)][_0x57fc6d]['fields'][_0x49d1f1];if(_0x377a7b['system']===!0x0||_0x377a7b[_0x3e44c5(0x20b)]===_0x3a044b['RecordId'])return!0x1;let _0x307b98=_0x975b21[_0x3e44c5(0x43e)](_0x5daeb6),_0x162e09=_0x975b21[_0x3e44c5(0x43e)](_0x5b9522),_0x5b5c05=_0x5f500e[_0x3e44c5(0x32f)](),_0x5193ef=new W()[_0x3e44c5(0x15e)](_0x5b5c05,_0x57fc6d,_0x2c61b7,_0x49d1f1,_0x4db95d),_0x2c86a2=new z()[_0x3e44c5(0x2d8)](_0x5b5c05,_0x5193ef),_0xbda717={'unitId':_0x344f97,'op':_0x5193ef},_0x22cca0={'unitId':_0x344f97,'op':_0x2c86a2};return _0x307b98[_0x3e44c5(0x163)](Q['id'],_0xbda717)?(_0x4f9bcd['focusUnit'](_0x344f97),_0x162e09[_0x3e44c5(0x47c)]({'unitID':_0x344f97,'undoMutations':[{'id':Q['id'],'params':_0x22cca0}],'redoMutations':[{'id':Q['id'],'params':_0xbda717}]}),!0x0):!0x1;}},xo={'id':'base.command.set-base-view-filter','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x2dd2f8,_0x5bec2d)=>{const _0x37997a=_0x6c183;if(!_0x5bec2d)return!0x1;let _0x53d0a7=_0x2dd2f8[_0x37997a(0x43e)](_0x24efe9),{unitId:_0x5ea0ba,tableId:_0x3f4418,viewId:_0xba101,filter:_0x11a6b5}=_0x5bec2d,_0x17022f=_0x53d0a7[_0x37997a(0x228)](_0x5ea0ba,_0x5c5c99['UNIVER_BASE']),_0x45ce59=(_0x11a6b5==null?void 0x0:_0x11a6b5[_0x37997a(0x396)][_0x37997a(0x141)](_0x29e65c=>_0x29e65c[_0x37997a(0x2b0)]))??[];if(!_0x17022f||!$(_0x17022f,_0x3f4418,{'viewIds':[_0xba101],'fieldIds':_0x45ce59}))return!0x1;let _0x432326=_0x2dd2f8[_0x37997a(0x43e)](_0x5daeb6),_0x278a1a=_0x2dd2f8['get'](_0x5b9522),_0x348ad9=_0x17022f[_0x37997a(0x32f)](),_0x549203=new W()[_0x37997a(0x16e)](_0x348ad9,_0x3f4418,_0xba101,_0x11a6b5),_0x28d399=new z()[_0x37997a(0x2d8)](_0x348ad9,_0x549203),_0x2bebc5={'unitId':_0x5ea0ba,'op':_0x549203},_0x1704d0={'unitId':_0x5ea0ba,'op':_0x28d399};return _0x432326['syncExecuteCommand'](Q['id'],_0x2bebc5)?(_0x53d0a7[_0x37997a(0x243)](_0x5ea0ba),_0x278a1a[_0x37997a(0x47c)]({'unitID':_0x5ea0ba,'undoMutations':[{'id':Q['id'],'params':_0x1704d0}],'redoMutations':[{'id':Q['id'],'params':_0x2bebc5}]}),!0x0):!0x1;}},So={'id':_0x6c183(0x155),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x37ab26,_0x433ae5)=>{const _0x953448=_0x6c183;if(!_0x433ae5)return!0x1;let _0x29f93b=_0x37ab26['get'](_0x24efe9),{unitId:_0x30e5bf,tableId:_0xeabb3e,viewId:_0x1ba7bd,group:_0x144b31}=_0x433ae5,_0x4bc384=_0x29f93b['getUnit'](_0x30e5bf,_0x5c5c99[_0x953448(0x36b)]);if(!_0x4bc384||!$(_0x4bc384,_0xeabb3e,{'viewIds':[_0x1ba7bd],'fieldIds':_0x144b31[_0x953448(0x141)](_0x1b26ae=>_0x1b26ae[_0x953448(0x2b0)])}))return!0x1;let _0x5c0388=_0x37ab26[_0x953448(0x43e)](_0x5daeb6),_0x5483d5=_0x37ab26[_0x953448(0x43e)](_0x5b9522),_0x2957c9=_0x4bc384[_0x953448(0x32f)](),_0xea3211=new W()[_0x953448(0x417)](_0x2957c9,_0xeabb3e,_0x1ba7bd,_0x144b31),_0x101852=new z()[_0x953448(0x2d8)](_0x2957c9,_0xea3211),_0x26a28f={'unitId':_0x30e5bf,'op':_0xea3211},_0x22c3eb={'unitId':_0x30e5bf,'op':_0x101852};return _0x5c0388[_0x953448(0x163)](Q['id'],_0x26a28f)?(_0x29f93b[_0x953448(0x243)](_0x30e5bf),_0x5483d5['pushUndoRedo']({'unitID':_0x30e5bf,'undoMutations':[{'id':Q['id'],'params':_0x22c3eb}],'redoMutations':[{'id':Q['id'],'params':_0x26a28f}]}),!0x0):!0x1;}},Co={'id':_0x6c183(0x36a),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x3e8ae3,_0x38caea)=>{const _0x3b80f0=_0x6c183;if(!_0x38caea)return!0x1;let _0x3b62a7=_0x3e8ae3['get'](_0x24efe9),{unitId:_0x49861d,tableId:_0x5afd84,viewId:_0x4f924f,sort:_0x273395}=_0x38caea,_0x182398=_0x3b62a7[_0x3b80f0(0x228)](_0x49861d,_0x5c5c99[_0x3b80f0(0x36b)]);if(!_0x182398||!$(_0x182398,_0x5afd84,{'viewIds':[_0x4f924f],'fieldIds':_0x273395[_0x3b80f0(0x141)](_0x1fd7fa=>_0x1fd7fa['fieldId'])}))return!0x1;let _0x583bd6=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5daeb6),_0x339a0a=_0x3e8ae3[_0x3b80f0(0x43e)](_0x5b9522),_0x102267=_0x182398[_0x3b80f0(0x32f)](),_0x2d6072=new W()[_0x3b80f0(0x23d)](_0x102267,_0x5afd84,_0x4f924f,_0x273395),_0x59c44e=new z()[_0x3b80f0(0x2d8)](_0x102267,_0x2d6072),_0x33acaf={'unitId':_0x49861d,'op':_0x2d6072},_0x3bd8fe={'unitId':_0x49861d,'op':_0x59c44e};return _0x583bd6[_0x3b80f0(0x163)](Q['id'],_0x33acaf)?(_0x3b62a7[_0x3b80f0(0x243)](_0x49861d),_0x339a0a[_0x3b80f0(0x47c)]({'unitID':_0x49861d,'undoMutations':[{'id':Q['id'],'params':_0x3bd8fe}],'redoMutations':[{'id':Q['id'],'params':_0x33acaf}]}),!0x0):!0x1;}},wo={'id':'base.command.update-base-cell','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x5658ff,_0x3c384a){const _0x25e65a=_0x6c183;if(!_0x3c384a)return!0x1;let _0x486f77=_0x5658ff[_0x25e65a(0x43e)](_0x24efe9),{unitId:_0x2d9910,tableId:_0x3a8977,recordId:_0x463d14,fieldId:_0x612a7d,value:_0x191949}=_0x3c384a,_0x6e4dd9=_0x486f77[_0x25e65a(0x228)](_0x2d9910,_0x5c5c99[_0x25e65a(0x36b)]);if(!_0x6e4dd9||!$(_0x6e4dd9,_0x3a8977,{'recordIds':[_0x463d14],'fieldIds':[_0x612a7d]})||!ga(_0x6e4dd9,_0x3a8977,_0x612a7d,_0x191949))return!0x1;let _0x2ce80d=_0x6e4dd9[_0x25e65a(0x32f)]()['tables'][_0x3a8977],_0x2cb1ba=F(_0x2ce80d,_0x612a7d)&&Xe(_0x2ce80d)[_0x25e65a(0x16a)](_0x612a7d),_0x13565e=_0x2cb1ba?tt(_0x2ce80d,_0x612a7d):null,_0x1eb857=(_0x13565e==null?void 0x0:_0x13565e[_0x25e65a(0x3b7)][_0x25e65a(0x43e)](_0x463d14))??null,_0x1e61ac=_0x2cb1ba?Le(_0x191949)[0x0]??null:null;if(_0x13565e){if(_0x1e61ac&&!_0x2ce80d['records'][_0x1e61ac])throw new P(_0x25e65a(0x281));let _0x20b89d=it(_0x13565e,_0x463d14,_0x1e61ac);if(!_0x20b89d[_0x25e65a(0x26e)])throw new P(_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x40a)]?'selfParent':_0x20b89d[_0x25e65a(0x28a)]===_0x5b4879[_0x25e65a(0x478)]?'cycle':_0x25e65a(0x138));}let _0x534f93=_0x5658ff['get'](_0x5daeb6),_0x3fa84f=_0x5658ff['get'](_0x5b9522),_0x288659=_0x5658ff['get'](Kr),_0x1ec4c0;try{_0x1ec4c0=_0x288659['createUpdateCellOp'](_0x6e4dd9,_0x3a8977,_0x463d14,_0x612a7d,_0x191949);}catch(_0x132ed6){return console[_0x25e65a(0x45f)](_0x25e65a(0x405),_0x132ed6),!0x1;}let _0x3ddbb3=new z()[_0x25e65a(0x2d8)](_0x6e4dd9[_0x25e65a(0x32f)](),_0x1ec4c0),_0x4df7ba=_0x2cb1ba&&_0x1eb857!==_0x1e61ac?[{'tableId':_0x3a8977,'fieldId':_0x612a7d,'recordId':_0x463d14,'oldParentRecordId':_0x1eb857,'parentRecordId':_0x1e61ac}]:void 0x0,_0x1ebb29={'unitId':_0x2d9910,'op':_0x1ec4c0,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba,'source':_0x4df7ba?_0x3c384a[_0x25e65a(0x495)]??'ui':void 0x0},_0x50ce69={..._0x1ebb29,'source':_0x4df7ba?_0x25e65a(0x32a):void 0x0},_0x5bda4c={'unitId':_0x2d9910,'op':_0x3ddbb3,'trigger':_0x4df7ba?wo['id']:void 0x0,'hierarchyChanges':_0x4df7ba==null?void 0x0:_0x4df7ba[_0x25e65a(0x141)](_0x5710be=>({..._0x5710be,'oldParentRecordId':_0x5710be['parentRecordId'],'parentRecordId':_0x5710be['oldParentRecordId']})),'source':_0x4df7ba?'undo':void 0x0};return _0x534f93[_0x25e65a(0x163)](Q['id'],_0x1ebb29)?(_0x486f77[_0x25e65a(0x243)](_0x2d9910),_0x3fa84f[_0x25e65a(0x47c)]({'unitID':_0x2d9910,'undoMutations':[{'id':Q['id'],'params':_0x5bda4c}],'redoMutations':[{'id':Q['id'],'params':_0x50ce69}]}),!0x0):!0x1;}},To={'id':'base.command.update-base-field-description','type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x481555,_0x20ee82){const _0x319f85=_0x6c183;if(!_0x20ee82)return!0x1;let _0x5eda3a=_0x481555['get'](_0x24efe9),{unitId:_0x481841,tableId:_0x2eaa8a,fieldId:_0x3225f9}=_0x20ee82,_0x155340=_0x5eda3a[_0x319f85(0x228)](_0x481841,_0x5c5c99[_0x319f85(0x36b)]);if(!_0x155340||!$(_0x155340,_0x2eaa8a,{'fieldIds':[_0x3225f9]}))return!0x1;let _0x3a63f5=_0x481555[_0x319f85(0x43e)](_0x5daeb6),_0x226745=_0x481555['get'](_0x5b9522),_0x372146=_0x155340[_0x319f85(0x32f)](),_0x1df328=_0x20ee82[_0x319f85(0x1ce)][_0x319f85(0x226)](),_0x4d6763=new W()[_0x319f85(0x13b)](_0x372146,_0x2eaa8a,_0x3225f9,{'description':_0x1df328}),_0x3b7f41=new z()[_0x319f85(0x2d8)](_0x155340[_0x319f85(0x32f)](),_0x4d6763),_0x40a7f3={'unitId':_0x481841,'op':_0x4d6763},_0x2b8887={'unitId':_0x481841,'op':_0x3b7f41};return _0x3a63f5[_0x319f85(0x163)](Q['id'],_0x40a7f3)?(_0x5eda3a[_0x319f85(0x243)](_0x481841),_0x226745[_0x319f85(0x47c)]({'unitID':_0x481841,'undoMutations':[{'id':Q['id'],'params':_0x2b8887}],'redoMutations':[{'id':Q['id'],'params':_0x40a7f3}]}),!0x0):!0x1;}},Eo={'id':'base.command.update-base-field','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x559bed,_0x1a2738)=>{const _0x25473a=_0x6c183;if(!_0x1a2738)return!0x1;let _0x14923b=_0x559bed['get'](_0x24efe9),{unitId:_0x52d70f,tableId:_0x2f2899,fieldId:_0x6b29ff,patch:_0x4eafee}=_0x1a2738,_0x597e4c=_0x14923b[_0x25473a(0x228)](_0x52d70f,_0x5c5c99['UNIVER_BASE']);if(!_0x597e4c||_0x6b29ff===_0x5a35e2||!$(_0x597e4c,_0x2f2899,{'fieldIds':[_0x6b29ff]}))return!0x1;let _0x56fc18=_0x559bed['get'](_0x5daeb6),_0xd68f3e=_0x559bed[_0x25473a(0x43e)](_0x5b9522),_0x17db99=_0x597e4c['getSnapshot']();if(!ha(_0x597e4c,_0x2f2899,{..._0x17db99[_0x25473a(0x298)][_0x2f2899]['fields'][_0x6b29ff],..._0x4eafee}))return!0x1;let _0x497622=new W()[_0x25473a(0x13b)](_0x17db99,_0x2f2899,_0x6b29ff,_0x4eafee),_0x5b0c1b=new z()[_0x25473a(0x2d8)](_0x17db99,_0x497622),_0x56e7e4={'unitId':_0x52d70f,'op':_0x497622},_0x5bc676={'unitId':_0x52d70f,'op':_0x5b0c1b};return _0x56fc18[_0x25473a(0x163)](Q['id'],_0x56e7e4)?(_0x14923b[_0x25473a(0x243)](_0x52d70f),_0xd68f3e[_0x25473a(0x47c)]({'unitID':_0x52d70f,'undoMutations':[{'id':Q['id'],'params':_0x5bc676}],'redoMutations':[{'id':Q['id'],'params':_0x56e7e4}]}),!0x0):!0x1;}},Do={'id':_0x6c183(0x22d),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x300004,_0x3729ed)=>{const _0x54ff90=_0x6c183;if(!_0x3729ed)return!0x1;let _0x57a8f0=_0x300004[_0x54ff90(0x43e)](_0x24efe9),{unitId:_0x39cbb8,tableId:_0x54ee49,viewId:_0x21eb18,patch:_0xb76e39}=_0x3729ed,_0x43f253=_0x57a8f0['getUnit'](_0x39cbb8,_0x5c5c99['UNIVER_BASE']);if(!_0x43f253||!$(_0x43f253,_0x54ee49,{'viewIds':[_0x21eb18]}))return!0x1;let _0xeaa984=_0x300004[_0x54ff90(0x43e)](_0x5daeb6),_0x396d5d=_0x300004[_0x54ff90(0x43e)](_0x5b9522),_0x4affd6=_0x43f253[_0x54ff90(0x32f)](),_0x1b0c06=new W()[_0x54ff90(0x2cf)](_0x4affd6,_0x54ee49,_0x21eb18,_0xb76e39),_0x332bf1=new z()[_0x54ff90(0x2d8)](_0x4affd6,_0x1b0c06),_0x200f50={'unitId':_0x39cbb8,'op':_0x1b0c06},_0x14d4b6={'unitId':_0x39cbb8,'op':_0x332bf1};return _0xeaa984['syncExecuteCommand'](Q['id'],_0x200f50)?(_0x57a8f0[_0x54ff90(0x243)](_0x39cbb8),_0x396d5d[_0x54ff90(0x47c)]({'unitID':_0x39cbb8,'undoMutations':[{'id':Q['id'],'params':_0x14d4b6}],'redoMutations':[{'id':Q['id'],'params':_0x200f50}]}),!0x0):!0x1;}},Oo={'id':_0x6c183(0x3f0),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x4d6d2c,_0x1b710f)=>{const _0x75f4ca=_0x6c183;if(!_0x1b710f)return!0x1;let _0x34eebb=_0x4d6d2c[_0x75f4ca(0x43e)](_0x24efe9),{unitId:_0x1ae3b3,tableId:_0x368843,recordId:_0x45adba,orderKey:_0x5a1a65}=_0x1b710f,_0x3c58d0=_0x34eebb['getUnit'](_0x1ae3b3,_0x5c5c99['UNIVER_BASE']);if(!_0x3c58d0||!$(_0x3c58d0,_0x368843,{'recordIds':[_0x45adba]}))return!0x1;let _0x2823d0=_0x4d6d2c[_0x75f4ca(0x43e)](_0x5daeb6),_0x20be46=_0x4d6d2c['get'](_0x5b9522),_0x26c10b=_0x3c58d0[_0x75f4ca(0x32f)](),_0x3efc54=new W()['updateRecordOrder'](_0x26c10b,_0x368843,_0x45adba,_0x5a1a65),_0x384320=new z()[_0x75f4ca(0x2d8)](_0x26c10b,_0x3efc54),_0x56a3ac={'unitId':_0x1ae3b3,'op':_0x3efc54},_0xfa72ba={'unitId':_0x1ae3b3,'op':_0x384320};return _0x2823d0['syncExecuteCommand'](Q['id'],_0x56a3ac)?(_0x34eebb[_0x75f4ca(0x243)](_0x1ae3b3),_0x20be46[_0x75f4ca(0x47c)]({'unitID':_0x1ae3b3,'undoMutations':[{'id':Q['id'],'params':_0xfa72ba}],'redoMutations':[{'id':Q['id'],'params':_0x56a3ac}]}),!0x0):!0x1;}};let ko=function(_0xe40efb){const _0x2db8d2=_0x6c183;return _0xe40efb[_0x2db8d2(0x477)]=_0x2db8d2(0x49e),_0xe40efb[_0x2db8d2(0x440)]=_0x2db8d2(0x2ee),_0xe40efb['Delete']=_0x2db8d2(0x2fc),_0xe40efb[_0x2db8d2(0x471)]=_0x2db8d2(0x328),_0xe40efb;}({});const Ao={'id':_0x6c183(0x319),'type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x15f221,_0x234869)=>{const _0x56fc69=_0x6c183;var _0x973f7e;if(!_0x234869)return!0x1;let _0x537a0b=_0x15f221[_0x56fc69(0x43e)](_0x24efe9),_0x20487b=_0x537a0b[_0x56fc69(0x228)](_0x234869[_0x56fc69(0x393)],_0x5c5c99[_0x56fc69(0x36b)]);if(!_0x20487b||!$(_0x20487b,_0x234869[_0x56fc69(0x210)],{'viewIds':[_0x234869[_0x56fc69(0x288)]]}))return!0x1;let _0x3ac0ed=_0x20487b[_0x56fc69(0x32f)](),_0x32858e=_0x3ac0ed[_0x56fc69(0x298)][_0x234869[_0x56fc69(0x210)]],_0x4ab373=jo(((_0x973f7e=_0x32858e['views'][_0x234869[_0x56fc69(0x288)]][_0x56fc69(0x2ba)][_0x56fc69(0x409)])==null?void 0x0:_0x973f7e[_0x56fc69(0x4c4)])??[],_0x234869);if(!_0x4ab373)return!0x1;Mo(_0x32858e,_0x4ab373);let _0x134dc0=new W()[_0x56fc69(0x2cf)](_0x3ac0ed,_0x234869[_0x56fc69(0x210)],_0x234869[_0x56fc69(0x288)],{'conditionalColoring':_0x4ab373[_0x56fc69(0x13c)]?{'rules':_0x4ab373}:null}),_0x2c7f60=new z()[_0x56fc69(0x2d8)](_0x3ac0ed,_0x134dc0),_0x526909={'unitId':_0x234869['unitId'],'op':_0x134dc0},_0x1db934={'unitId':_0x234869[_0x56fc69(0x393)],'op':_0x2c7f60};return _0x15f221[_0x56fc69(0x43e)](_0x5daeb6)[_0x56fc69(0x163)](Q['id'],_0x526909)?(_0x537a0b[_0x56fc69(0x243)](_0x234869['unitId']),_0x15f221[_0x56fc69(0x43e)](_0x5b9522)[_0x56fc69(0x47c)]({'unitID':_0x234869[_0x56fc69(0x393)],'undoMutations':[{'id':Q['id'],'params':_0x1db934}],'redoMutations':[{'id':Q['id'],'params':_0x526909}]}),!0x0):!0x1;}};function jo(_0x12dcf1,_0x26869f){const _0x2a7da3=_0x6c183;switch(_0x26869f[_0x2a7da3(0x20b)]){case _0x2a7da3(0x49e):return _0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4c4)]);case _0x2a7da3(0x2ee):return[..._0x4e3c3d[_0x2a7da3(0x29d)](_0x12dcf1),_0x4e3c3d[_0x2a7da3(0x29d)](_0x26869f[_0x2a7da3(0x4bb)])];case'delete':{let _0x5645d6=_0x12dcf1['filter'](_0x1e0a3a=>_0x1e0a3a['id']!==_0x26869f['ruleId']);return _0x5645d6[_0x2a7da3(0x13c)]===_0x12dcf1[_0x2a7da3(0x13c)]?null:_0x4e3c3d[_0x2a7da3(0x29d)](_0x5645d6);}case _0x2a7da3(0x328):return _0x12dcf1[_0x2a7da3(0x13c)]?[]:null;}}function Mo(_0x37aed7,_0x5ee2e0){const _0x17b624=_0x6c183;if(!Array[_0x17b624(0x431)](_0x5ee2e0))throw TypeError('[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.');let _0x389574=new Set();for(let [_0x128c86,_0x1f42c4]of _0x5ee2e0[_0x17b624(0x279)]())Po(_0x37aed7,_0x1f42c4,No(_0x1f42c4,_0x128c86,_0x389574));}function No(_0x43b043,_0x4ad330,_0x25e85f){const _0x5ce289=_0x6c183;if(!_0x43b043||typeof _0x43b043!=_0x5ce289(0x3d7))throw TypeError(_0x5ce289(0x254)+_0x4ad330+'\x20must\x20be\x20an\x20object.');let _0x52465d=typeof _0x43b043['id']==_0x5ce289(0x425)&&_0x43b043['id'][_0x5ce289(0x226)]()?'\x22'+_0x43b043['id']+'\x22':_0x5ce289(0x299)+_0x4ad330;if(typeof _0x43b043['id']!=_0x5ce289(0x425)||!_0x43b043['id'][_0x5ce289(0x226)]())throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x52465d+_0x5ce289(0x3b1));if(_0x25e85f[_0x5ce289(0x34b)](_0x43b043['id']))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22'+_0x43b043['id']+'\x22.');_0x25e85f[_0x5ce289(0x2ee)](_0x43b043['id']);let _0x326eb3=typeof _0x43b043[_0x5ce289(0x276)]==_0x5ce289(0x425)&&_0x43b043[_0x5ce289(0x276)]['trim']()?new _0x4014bd(_0x43b043['color']):null;if(!(_0x326eb3!=null&&_0x326eb3['isValid']))throw Error(_0x5ce289(0x25d)+_0x52465d+_0x5ce289(0x463));return _0x52465d;}function Po(_0x3f1574,_0xeddad7,_0x5a7223){const _0x3c1521=_0x6c183;let _0x268724=new Set(Object[_0x3c1521(0x227)](_0x4b6a96)),_0x5dc321=new Set(Object['values'](_0x50d725)),_0xa2bf88=new Set(Object[_0x3c1521(0x227)](_0x2b5b2b));if(!_0x268724[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3dc)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x342)+String(_0xeddad7[_0x3c1521(0x3dc)])+'\x22.');let _0x4bb136=typeof _0xeddad7[_0x3c1521(0x2b0)]==_0x3c1521(0x425)?_0x3f1574['fields'][_0xeddad7[_0x3c1521(0x2b0)]]:void 0x0;if(!_0x4bb136||_0x4bb136['system']===!0x0||_0x4bb136[_0x3c1521(0x20b)]===_0x3a044b['RecordId'])throw Error(_0x3c1521(0x25d)+_0x5a7223+'\x20references\x20missing\x20or\x20non-public\x20field\x20\x22'+String(_0xeddad7['fieldId'])+'\x22.');if(!_0x5dc321['has'](_0xeddad7[_0x3c1521(0x220)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x5a7223+_0x3c1521(0x4c0)+String(_0xeddad7[_0x3c1521(0x220)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!_0xa2bf88[_0x3c1521(0x34b)](_0xeddad7[_0x3c1521(0x3ea)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x48e)+String(_0xeddad7[_0x3c1521(0x3ea)])+'\x22.');if(_0xeddad7[_0x3c1521(0x3dc)]===_0x4b6a96[_0x3c1521(0x286)])return;let _0x3a49fb=vn(_0x4bb136[_0x3c1521(0x20b)]);if(!_0x3a49fb[_0x3c1521(0x16a)](_0xeddad7[_0x3c1521(0x220)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x34c)+_0xeddad7[_0x3c1521(0x220)]+_0x3c1521(0x349)+_0x4bb136[_0x3c1521(0x20b)]+'\x22.\x20Allowed\x20operators:\x20'+_0x3a49fb['join'](',\x20')+'.');if(_0xeddad7[_0x3c1521(0x3ea)]!==void 0x0&&!yn(_0x4bb136[_0x3c1521(0x20b)]))throw Error(_0x3c1521(0x25d)+_0x5a7223+_0x3c1521(0x29b));}const Fo={'id':'base.command.update-base-view-config','type':_0x22977e[_0x6c183(0x1b6)],'handler':(_0x579a7d,_0x4293fa)=>{const _0x241a63=_0x6c183;if(!_0x4293fa)return!0x1;let _0x197e91=_0x579a7d[_0x241a63(0x43e)](_0x24efe9),{unitId:_0x4e32bc,tableId:_0x112f0e,viewId:_0xf25c69,patch:_0x5ef700}=_0x4293fa,_0x17b217=_0x197e91['getUnit'](_0x4e32bc,_0x5c5c99[_0x241a63(0x36b)]);if(!_0x17b217||!$(_0x17b217,_0x112f0e,{'viewIds':[_0xf25c69]}))return!0x1;let _0x379a9d=_0x579a7d[_0x241a63(0x43e)](_0x5daeb6),_0x284cb1=_0x579a7d[_0x241a63(0x43e)](_0x5b9522),_0x5cd893=_0x17b217[_0x241a63(0x32f)](),_0x3bef41=new W()['updateViewConfig'](_0x5cd893,_0x112f0e,_0xf25c69,_0x5ef700),_0x5779a4=new z()[_0x241a63(0x2d8)](_0x5cd893,_0x3bef41),_0xd8fa34={'unitId':_0x4e32bc,'op':_0x3bef41},_0x17044d={'unitId':_0x4e32bc,'op':_0x5779a4};return _0x379a9d[_0x241a63(0x163)](Q['id'],_0xd8fa34)?(_0x197e91['focusUnit'](_0x4e32bc),_0x284cb1['pushUndoRedo']({'unitID':_0x4e32bc,'undoMutations':[{'id':Q['id'],'params':_0x17044d}],'redoMutations':[{'id':Q['id'],'params':_0xd8fa34}]}),!0x0):!0x1;}},Io={'id':_0x6c183(0x192),'type':_0x22977e[_0x6c183(0x1b6)],'handler'(_0x55db61,_0x357769){const _0x27e76e=_0x6c183;if(!_0x357769)return{'valid':!0x1,'reason':_0x27e76e(0x33e)};let _0x265563=_0x55db61[_0x27e76e(0x43e)](_0x24efe9)['getUnit'](_0x357769[_0x27e76e(0x393)],_0x5c5c99['UNIVER_BASE']),_0x187ec4=_0x265563==null?void 0x0:_0x265563[_0x27e76e(0x32f)](),_0x172ae5=_0x187ec4==null?void 0x0:_0x187ec4[_0x27e76e(0x298)][_0x357769[_0x27e76e(0x210)]];return!_0x187ec4||!_0x172ae5?{'valid':!0x1,'reason':_0x27e76e(0x14c)}:new Xi()['validateFormula'](_0x357769[_0x27e76e(0x3bc)],_0x172ae5,{'snapshot':_0x187ec4});}};let Lo=class extends _0x65b7b4{constructor(_0x16874b){const _0x3faeb0=_0x6c183;super(_0x16874b,_0x3faeb0(0x166),_0x5c5c99[_0x3faeb0(0x36b)],[_0x3cf49a[_0x3faeb0(0x475)],_0x3cf49a[_0x3faeb0(0x1f6)],_0x3cf49a[_0x3faeb0(0x3c8)],_0x3cf49a[_0x3faeb0(0x33a)],_0x3cf49a[_0x3faeb0(0x382)]]);}};Lo=X([Y(0x0,_0x3ca90e)],Lo);const Ro={'id':_0x6c183(0x47a),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3862a5,_0x2dc3a1)=>!_0x2dc3a1||!_0x3862a5[_0x6c183(0x43e)](_0x24efe9)[_0x6c183(0x228)](_0x2dc3a1[_0x6c183(0x393)],_0x5c5c99['UNIVER_BASE'])?!0x1:_0x3862a5['get'](Lo)[_0x6c183(0x122)](_0x2dc3a1[_0x6c183(0x393)],_0x2dc3a1[_0x6c183(0x374)],_0x2dc3a1[_0x6c183(0x365)],_0x2dc3a1[_0x6c183(0x4bb)])},zo={'id':_0x6c183(0x3d6),'type':_0x22977e[_0x6c183(0x3b0)],'handler':(_0x3ffd83,_0x41a327)=>!_0x41a327||!_0x3ffd83['get'](_0x24efe9)[_0x6c183(0x228)](_0x41a327[_0x6c183(0x393)],_0x5c5c99[_0x6c183(0x36b)])?!0x1:_0x3ffd83[_0x6c183(0x43e)](Lo)['setRules'](_0x41a327['unitId'],_0x41a327[_0x6c183(0x4c4)])};function Bo(_0x5bc001){const _0x3eaec9=_0x6c183;let _0x4e7052=_0x5bc001[_0x3eaec9(0x2a4)]??Date[_0x3eaec9(0x2a4)](),_0x3e714e=_0x5bc001[_0x3eaec9(0x3b2)]??_0x5bc001['id']+_0x3eaec9(0x3a5),_0x278a88=_0x5bc001[_0x3eaec9(0x3ce)]??_0x5bc001['id']+_0x3eaec9(0x1a2),_0x2507aa=_0x5bc001['recordCount']??0x0,_0x2137cc=_0x96204b(),_0x4ad020={'id':_0x3e714e,'name':_0x5bc001[_0x3eaec9(0x194)]??_0x3eaec9(0x20c),'type':_0x3a044b[_0x3eaec9(0x315)],'config':{'placeholder':_0x3eaec9(0x21e)}},_0x35c599={},_0x18beaa=[],_0x8d0ee7={},_0x500c2f={},_0x2a55b2={};for(let _0x5a3401=0x0;_0x5a3401<_0x2507aa;_0x5a3401++){let _0x9419b8=_0x5bc001['id']+'-record-'+(_0x5a3401+0x1);_0x35c599[_0x9419b8]={'id':_0x9419b8,'values':{[_0x5a35e2]:_0x9419b8,..._0x5bc001[_0x3eaec9(0x355)]?{[_0x3e714e]:_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1)}:{}},'orderKey':String(_0x5a3401+0x1)[_0x3eaec9(0x20a)](0x4,'0'),'createdAt':_0x4e7052,'updatedAt':_0x4e7052},_0x18beaa[_0x3eaec9(0x174)](_0x9419b8),_0x8d0ee7[_0x9419b8]=_0x5a3401,_0x500c2f[_0x5a3401]=_0x9419b8,_0x2a55b2[_0x5a3401]={0x0:{'v':_0x9419b8,'t':_0x4dac72[_0x3eaec9(0x18a)]}},_0x5bc001[_0x3eaec9(0x355)]&&(_0x2a55b2[_0x5a3401][0x1]={'v':_0x5bc001[_0x3eaec9(0x355)]+'\x20'+(_0x5a3401+0x1),'t':_0x4dac72['STRING']});}let _0x5615ee={'id':_0x278a88,'tableId':_0x5bc001['id'],'name':_0x3eaec9(0x161),'type':_0x3ece31[_0x3eaec9(0x161)],'fieldOrder':[_0x5a35e2,_0x3e714e],'fieldSettings':{[_0x5a35e2]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x5bc001['id'],'name':_0x5bc001['name'],'primaryFieldId':_0x3e714e,'fieldOrder':[_0x5a35e2,_0x3e714e],'fields':{[_0x5a35e2]:_0x2137cc,[_0x3e714e]:_0x4ad020},'records':_0x35c599,'recordOrder':_0x18beaa,'rowIndex':_0x8d0ee7,'rowId':_0x500c2f,'colIndex':{[_0x5a35e2]:0x0,[_0x3e714e]:0x1},'colId':{0x0:_0x5a35e2,0x1:_0x3e714e},'cellData':_0x2a55b2,'views':{[_0x278a88]:_0x5615ee},'viewOrder':[_0x278a88]};}const Vo=_0x6c183(0x120);function Ho(_0x5c3cb2){const _0x544d32=_0x6c183;let _0x559fdd=Bo({'id':_0x5c3cb2[_0x544d32(0x42d)],'name':_0x5c3cb2[_0x544d32(0x2a3)]??_0x5c3cb2[_0x544d32(0x2d2)],'recordCount':0x0});return{..._0x559fdd,'resources':{..._0x559fdd[_0x544d32(0x421)]??{},[Vo]:Go(_0x5c3cb2)}};}function Uo(_0x8be919){const _0x58efbc=_0x6c183;return{'id':Q['id'],'params':{'unitId':_0x8be919[_0x58efbc(0x393)],'op':_0x53fdae['type']['compose'](_0x53fdae['insertOp']([_0x58efbc(0x298),_0x8be919[_0x58efbc(0x4c7)]['id']],_0x8be919['table']),_0x53fdae[_0x58efbc(0x13f)]([_0x58efbc(0x338),_0x8be919[_0x58efbc(0x159)]??_0x8be919[_0x58efbc(0x17c)][_0x58efbc(0x338)][_0x58efbc(0x13c)]],_0x8be919[_0x58efbc(0x4c7)]['id'])),'trigger':_0x58efbc(0x1b4)}};}function Wo(_0x3e5f16){const _0x2658ea=_0x6c183;let _0x4e1ae5=_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x338)][_0x2658ea(0x44e)](_0x3e5f16[_0x2658ea(0x210)]);if(!(!_0x3e5f16[_0x2658ea(0x17c)][_0x2658ea(0x298)][_0x3e5f16[_0x2658ea(0x210)]]||_0x4e1ae5<0x0))return{'id':Q['id'],'params':{'unitId':_0x3e5f16[_0x2658ea(0x393)],'op':_0x53fdae['type'][_0x2658ea(0x2a2)](_0x53fdae[_0x2658ea(0x37b)]([_0x2658ea(0x298),_0x3e5f16[_0x2658ea(0x210)]],_0x3e5f16[_0x2658ea(0x17c)]['tables'][_0x3e5f16[_0x2658ea(0x210)]]),_0x53fdae['removeOp']([_0x2658ea(0x338),_0x4e1ae5],_0x3e5f16[_0x2658ea(0x210)])),'trigger':_0x2658ea(0x1b4)}};}function Go(_0x3c96d2){const _0x568f1b=_0x6c183;return{'version':0x1,'embedId':_0x3c96d2['embedId'],'hostAnchorId':_0x3c96d2[_0x568f1b(0x42d)],'childUnitId':_0x3c96d2[_0x568f1b(0x3ca)],'childType':_0x3c96d2[_0x568f1b(0x45e)]};}function Ko(_0x5cb814){const _0x4c5bb6=_0x6c183;let _0x5ee77f=Math[_0x4c5bb6(0x482)](0x0,Number(_0x5cb814['decimalPlaces']??0x0)),_0x580d2f=_0x5cb814[_0x4c5bb6(0x1bd)]===!0x1?'0':'#,##0',_0x1ae7c1=_0x5ee77f?'.'+'0'['repeat'](_0x5ee77f):'',_0x2f7fd2=Jo(_0x5cb814[_0x4c5bb6(0x1da)]);return''+(_0x5cb814[_0x4c5bb6(0x4ba)]?Yo(_0x5cb814[_0x4c5bb6(0x4ba)]):'')+_0x580d2f+_0x1ae7c1+_0x2f7fd2;}function qo(_0x4d2f2e,_0x5505a0){const _0x19e8f8=_0x6c183;let _0x3ec068=Ko(_0x5505a0),_0x5e6a54=_0x3bb8d4[_0x19e8f8(0x3cd)](_0x3ec068,_0x4d2f2e,{'throws':!0x1});return Xo(String(_0x5e6a54),_0x5505a0['separatorStyle'],_0x5505a0[_0x19e8f8(0x30b)]);}function Jo(_0x293905){const _0x53007b=_0x6c183;return _0x293905==='K'?_0x53007b(0x331):_0x293905==='M'?_0x53007b(0x22c):_0x293905==='B'?_0x53007b(0x490):'';}function Yo(_0x315b37){const _0x4b7704=_0x6c183;return/^[A-Z]+$/i[_0x4b7704(0x215)](_0x315b37)?'\x22'+_0x315b37+'\x22':_0x315b37;}function Xo(_0x8995cf,_0x5d7db8,_0xcd32a1){const _0x1fe3fd=_0x6c183;let _0x3f30e3=_0x5d7db8===_0x1fe3fd(0x231)?Zo(_0xcd32a1):_0x5d7db8;return _0x3f30e3===_0x1fe3fd(0x2cc)?_0x8995cf['replace'](/,/g,'\x00')['replace'](/\./g,',')['replace'](/\0/g,'.'):_0x3f30e3===_0x1fe3fd(0x186)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20')[_0x1fe3fd(0x14e)](/\./g,','):_0x3f30e3===_0x1fe3fd(0x394)?_0x8995cf[_0x1fe3fd(0x14e)](/,/g,'\x20'):_0x8995cf;}function Zo(_0x31f993){const _0x1afae5=_0x6c183;var _0x11e194,_0x4c7826;let _0x3f0f8a=_0x31f993||new Intl[(_0x1afae5(0x420))]()[_0x1afae5(0x38b)]()[_0x1afae5(0x30b)],_0x586638;try{_0x586638=new Intl[(_0x1afae5(0x420))](_0x3f0f8a,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})[_0x1afae5(0x125)](0xf4240);}catch{return _0x1afae5(0x492);}let _0x4e73a5=(_0x11e194=_0x586638[_0x1afae5(0x392)](_0x5d375=>_0x5d375[_0x1afae5(0x20b)]===_0x1afae5(0x1f2)))==null?void 0x0:_0x11e194[_0x1afae5(0x350)],_0x1addf9=(_0x4c7826=_0x586638[_0x1afae5(0x392)](_0x5d3152=>_0x5d3152[_0x1afae5(0x20b)]==='decimal'))==null?void 0x0:_0x4c7826[_0x1afae5(0x350)],_0x5845a4=_0x4e73a5==='\u00a0'||_0x4e73a5==='\u202f'?'\x20':_0x4e73a5;return _0x5845a4==='.'&&_0x1addf9===','?_0x1afae5(0x2cc):_0x5845a4==='\x20'&&_0x1addf9===','?_0x1afae5(0x186):_0x5845a4==='\x20'&&_0x1addf9==='.'?_0x1afae5(0x394):_0x1afae5(0x492);}function Qo(_0x499d78,_0x39c9b2){const _0xa03c55=_0x6c183;let _0x434e28=_0x39c9b2&&typeof _0x39c9b2=='object'&&!Array[_0xa03c55(0x431)](_0x39c9b2)?_0x39c9b2:{},_0x54ed90=$o(_0x434e28[_0xa03c55(0x27f)],0x0,0x2,0x0),_0x48ec03=_0x499d78['toFixed'](_0x54ed90);return _0x434e28[_0xa03c55(0x3cd)]===_0xa03c55(0x24b)?_0x48ec03:_0x48ec03+'%';}function $o(_0x45cd36,_0x402642,_0x454093,_0x14d794){const _0x35ec78=_0x6c183;if(_0x45cd36==null||_0x45cd36==='')return _0x14d794;let _0x41c840=typeof _0x45cd36==_0x35ec78(0x24b)?_0x45cd36:Number(_0x45cd36);return Number[_0x35ec78(0x143)](_0x41c840)?Math[_0x35ec78(0x482)](_0x402642,Math['min'](_0x454093,Math[_0x35ec78(0x343)](_0x41c840))):_0x14d794;}const es=[_0x6c183(0x115),_0x6c183(0x152),'empty',_0x6c183(0x118),'sum','average','min','max'],ts=[_0x6c183(0x115),_0x6c183(0x152),_0x6c183(0x1b1),_0x6c183(0x118)],ns=[_0x6c183(0x129),_0x6c183(0x23b),'min',_0x6c183(0x482)],rs=[_0x6c183(0x27a),'max'],is=new Set([_0x3a044b['Number'],_0x3a044b['Currency'],_0x3a044b[_0x6c183(0x140)],_0x3a044b[_0x6c183(0x2c3)]]),as=new Set([_0x3a044b[_0x6c183(0x386)],_0x3a044b['Person'],_0x3a044b[_0x6c183(0x1ad)]]),os=_0x6c183(0x453);function ss(_0x58502c){const _0x33f011=_0x6c183;return typeof _0x58502c==_0x33f011(0x425)&&es[_0x33f011(0x16a)](_0x58502c);}function cs(_0x97406){const _0x40c758=_0x6c183;return!_0x97406||typeof _0x97406!=_0x40c758(0x3d7)?{}:Object[_0x40c758(0x176)](Object[_0x40c758(0x279)](_0x97406)[_0x40c758(0x2be)](_0x398e07=>ss(_0x398e07[0x1])));}function ls(_0x2441b1){const _0x344693=_0x6c183;return is[_0x344693(0x34b)](_0x2441b1[_0x344693(0x20b)])?[...ts,...ns]:_0x2441b1[_0x344693(0x20b)]===_0x3a044b['Formula']?[...ts,...ws(_0x2441b1)==='date'?rs:ns]:ts;}function us(_0x362999,_0x40e319){return ls(_0x362999)['includes'](_0x40e319);}function ds(_0x13571e,_0x3eb58d,_0x28a45f){const _0x2a59c3=_0x6c183;if(!us(_0x13571e,_0x28a45f))return null;let _0x15b724=_0x3eb58d['filter'](_0x13c76c=>!ps(_0x13571e,_0x13c76c));switch(_0x28a45f){case _0x2a59c3(0x115):return _0x3eb58d[_0x2a59c3(0x13c)];case _0x2a59c3(0x152):return _0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x1b1):return _0x3eb58d[_0x2a59c3(0x13c)]-_0x15b724[_0x2a59c3(0x13c)];case _0x2a59c3(0x118):return new Set(_0x15b724[_0x2a59c3(0x141)](_0x22a2b0=>_s(_0x13571e,_0x22a2b0)))[_0x2a59c3(0x15b)];case'sum':{let _0xda07d0=ms(_0x13571e,_0x15b724);return _0xda07d0[_0x2a59c3(0x13c)]?gs(_0xda07d0):null;}case _0x2a59c3(0x23b):{let _0x4c3a0f=ms(_0x13571e,_0x15b724);return _0x4c3a0f[_0x2a59c3(0x13c)]?gs(_0x4c3a0f)/_0x4c3a0f[_0x2a59c3(0x13c)]:null;}case _0x2a59c3(0x27a):{let _0x5b190d=ms(_0x13571e,_0x15b724);return _0x5b190d['length']?Math['min'](..._0x5b190d):null;}case'max':{let _0x47afef=ms(_0x13571e,_0x15b724);return _0x47afef['length']?Math[_0x2a59c3(0x482)](..._0x47afef):null;}}}function fs(_0x3bba8c,_0x5cde9f,_0x15a317){const _0xec8b54=_0x6c183;if(_0x15a317==null||!Number['isFinite'](_0x15a317))return'-';if(ts[_0xec8b54(0x16a)](_0x5cde9f))return String(_0x15a317);switch(_0x3bba8c[_0xec8b54(0x20b)]){case _0x3a044b[_0xec8b54(0x2f5)]:return qo(_0x15a317,xs(_0x3bba8c));case _0x3a044b[_0xec8b54(0x14d)]:return qo(_0x15a317,Ss(_0x3bba8c));case _0x3a044b[_0xec8b54(0x140)]:return Qo(_0x15a317,_0x3bba8c[_0xec8b54(0x2ba)]);case _0x3a044b['Formula']:return Cs(_0x15a317,_0x3bba8c);default:return Es(_0x15a317);}}function ps(_0x4a5a21,_0x3fe90a){const _0x54df41=_0x6c183;if(_0x3fe90a==null)return!0x0;if(typeof _0x3fe90a==_0x54df41(0x425))return _0x3fe90a[_0x54df41(0x226)]()==='';if(Array[_0x54df41(0x431)](_0x3fe90a))return _0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x1ab)]?!_0x3fe90a['some'](bs):_0x3fe90a[_0x54df41(0x13c)]===0x0;if(_0x4a5a21[_0x54df41(0x20b)]===_0x3a044b[_0x54df41(0x41f)]&&typeof _0x3fe90a=='object'){let _0x5719c8=_0x3fe90a;return[_0x5719c8[_0x54df41(0x3ae)],_0x5719c8[_0x54df41(0x32d)]][_0x54df41(0x387)](_0x1edcd4=>_0x1edcd4==null||String(_0x1edcd4)[_0x54df41(0x226)]()==='');}return!0x1;}function ms(_0x16215c,_0x36713c){const _0x444650=_0x6c183;let _0x4832e1=[];for(let _0x23a722 of _0x36713c){let _0x1c2d6e=hs(_0x16215c,_0x23a722);_0x1c2d6e!=null&&_0x4832e1[_0x444650(0x174)](_0x1c2d6e);}return _0x4832e1;}function hs(_0x386775,_0x134d5d){const _0x48f395=_0x6c183;if(typeof _0x134d5d==_0x48f395(0x24b))return Number[_0x48f395(0x143)](_0x134d5d)?_0x134d5d:null;if(_0x386775[_0x48f395(0x20b)]!==_0x3a044b['Formula']&&typeof _0x134d5d=='string'&&_0x134d5d[_0x48f395(0x226)]()!==''){let _0x323e68=Number(_0x134d5d);return Number[_0x48f395(0x143)](_0x323e68)?_0x323e68:null;}return null;}function gs(_0xad7f49){const _0x3f94c3=_0x6c183;let _0x291066=0x0,_0x5644e8=0x0;for(let _0x3e73e0 of _0xad7f49){let _0x352f26=_0x291066+_0x3e73e0;_0x5644e8+=Math[_0x3f94c3(0x4be)](_0x291066)>=Math['abs'](_0x3e73e0)?_0x291066-_0x352f26+_0x3e73e0:_0x3e73e0-_0x352f26+_0x291066,_0x291066=_0x352f26;}return _0x291066+_0x5644e8;}function _s(_0x5a262d,_0x520547){const _0x1bccd6=_0x6c183;return as[_0x1bccd6(0x34b)](_0x5a262d[_0x1bccd6(0x20b)])&&Array[_0x1bccd6(0x431)](_0x520547)?ys([...new Set(_0x520547[_0x1bccd6(0x141)](_0x4dd9ad=>ys(vs(_0x4dd9ad))))][_0x1bccd6(0x277)]()):ys(vs(_0x520547));}function vs(_0x3dcc6e){const _0x50ea03=_0x6c183;return Array[_0x50ea03(0x431)](_0x3dcc6e)?_0x3dcc6e[_0x50ea03(0x141)](vs):_0x3dcc6e&&typeof _0x3dcc6e==_0x50ea03(0x3d7)?Object[_0x50ea03(0x176)](Object[_0x50ea03(0x279)](_0x3dcc6e)[_0x50ea03(0x277)](([_0x2e94ac],[_0x5192fe])=>_0x2e94ac['localeCompare'](_0x5192fe))[_0x50ea03(0x141)](([_0x4ba7e7,_0x13eb12])=>[_0x4ba7e7,vs(_0x13eb12)])):_0x3dcc6e;}function ys(_0x29125c){const _0x694f48=_0x6c183;return JSON['stringify'](_0x29125c)??_0x694f48(0x31f);}function bs(_0x30ffb2){const _0x20c794=_0x6c183;if(typeof _0x30ffb2=='string')return _0x30ffb2[_0x20c794(0x226)]()!=='';if(!_0x30ffb2||typeof _0x30ffb2!=_0x20c794(0x3d7))return!0x1;let _0x5415de=_0x30ffb2;return[_0x5415de['id'],_0x5415de[_0x20c794(0x2a3)],_0x5415de[_0x20c794(0x495)],_0x5415de[_0x20c794(0x32d)],_0x5415de[_0x20c794(0x2aa)]][_0x20c794(0x185)](_0xb6dd8=>_0xb6dd8!=null&&String(_0xb6dd8)[_0x20c794(0x226)]()!=='');}function xs(_0x506595){const _0x54153f=_0x6c183;let _0x5975cc=Ds(_0x506595[_0x54153f(0x2ba)]);return{'decimalPlaces':ks(_0x5975cc[_0x54153f(0x27f)],0x0,0x14,0x2),'separatorStyle':typeof _0x5975cc[_0x54153f(0x370)]=='string'?_0x5975cc[_0x54153f(0x370)]:_0x54153f(0x231),'locale':typeof _0x5975cc[_0x54153f(0x30b)]==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x30b)]:void 0x0,'useThousands':_0x5975cc[_0x54153f(0x1bd)]!==!0x1,'abbreviation':typeof _0x5975cc['abbreviation']==_0x54153f(0x425)?_0x5975cc[_0x54153f(0x1da)]:_0x54153f(0x42f)};}function Ss(_0x509be7){const _0x1e194a=_0x6c183;let _0x274ce7=Ds(_0x509be7[_0x1e194a(0x2ba)]);return{...xs(_0x509be7),'currencySymbol':String(_0x274ce7[_0x1e194a(0x4ba)]??'$')};}function Cs(_0x516cf4,_0xa22bfc){let _0x8c0020=Ts(_0xa22bfc);if(_0x8c0020===os)return Es(_0x516cf4);try{return String(_0x3bb8d4['format'](_0x8c0020,_0x516cf4,{'throws':!0x1}));}catch{return Es(_0x516cf4);}}function ws(_0x345290){const _0x1650f9=_0x6c183;let _0xd63928=Ds(Ds(_0x345290[_0x1650f9(0x2ba)])[_0x1650f9(0x1ef)]);return typeof _0xd63928[_0x1650f9(0x20b)]=='string'?_0xd63928['type']:'general';}function Ts(_0x1d68df){const _0x1c9cff=_0x6c183;let _0x2e9d88=Ds(Ds(_0x1d68df[_0x1c9cff(0x2ba)])[_0x1c9cff(0x1ef)]);return String(_0x2e9d88[_0x1c9cff(0x235)]??os)['trim']()||os;}function Es(_0x16cdd8){return String(Number['isInteger'](_0x16cdd8)?_0x16cdd8:Math['round']((_0x16cdd8+0x2**-0x34)*0x64)/0x64);}function Ds(_0x34b8db){const _0x38d02f=_0x6c183;return _0x34b8db&&typeof _0x34b8db=='object'&&!Array[_0x38d02f(0x431)](_0x34b8db)?_0x34b8db:{};}function Os(_0x445f99){const _0x5e4c9b=_0x6c183;if(_0x445f99==null||_0x445f99==='')return null;let _0x2d5599=typeof _0x445f99==_0x5e4c9b(0x24b)?_0x445f99:Number(_0x445f99);return Number[_0x5e4c9b(0x143)](_0x2d5599)?_0x2d5599:null;}function ks(_0x154a04,_0x51c63b,_0x23938d,_0xa4fcff){const _0x52e1eb=_0x6c183;let _0x19b309=Os(_0x154a04);return _0x19b309==null?_0xa4fcff:Math[_0x52e1eb(0x482)](_0x51c63b,Math[_0x52e1eb(0x27a)](_0x23938d,Math[_0x52e1eb(0x343)](_0x19b309)));}function As(_0x12caea,_0xe99a48){const _0xc7de8c=_0x6c183;let _0x152789=_0x4e3c3d['deepClone'](_0x12caea),_0x3fa7e7=_0xe99a48['includeRecords']===!0x0,_0x522e2b=new Map(),_0x51f3a1=_0xe99a48[_0xc7de8c(0x259)]??(()=>_0xc7de8c(0x25a)+_0x456020(0x8)),_0x42a0d2=_0x152789[_0xc7de8c(0x1cd)];return _0xe99a48[_0xc7de8c(0x3a0)]&&(_0x42a0d2=_0x152789['viewOrder'][_0xc7de8c(0x141)](_0x3b943c=>{const _0x29e8b8=_0xc7de8c;let _0x5e8592=_0x51f3a1();return _0x522e2b[_0x29e8b8(0x49e)](_0x3b943c,_0x5e8592),_0x5e8592;})),{..._0x152789,'id':_0xe99a48['id'],'name':_0xe99a48[_0xc7de8c(0x2a3)],'records':_0x3fa7e7?_0x152789[_0xc7de8c(0x258)]:{},'recordOrder':_0x3fa7e7?_0x152789[_0xc7de8c(0x1e7)]:[],'rowIndex':_0x3fa7e7?_0x152789['rowIndex']:{},'rowId':_0x3fa7e7?_0x152789[_0xc7de8c(0x3d0)]:{},'cellData':_0x3fa7e7?_0x152789[_0xc7de8c(0x389)]:{},'resources':_0x3fa7e7?_0x152789[_0xc7de8c(0x421)]:{},'viewOrder':_0x42a0d2,'views':Object['fromEntries'](Object[_0xc7de8c(0x279)](_0x152789[_0xc7de8c(0x362)]??{})[_0xc7de8c(0x141)](([_0x576877,_0xf0a9a6])=>{const _0x5a0c02=_0xc7de8c;let _0x2e9537=_0x522e2b[_0x5a0c02(0x43e)](_0x576877)??(_0xe99a48[_0x5a0c02(0x3a0)]?_0x51f3a1():_0x576877);return[_0x2e9537,{..._0xf0a9a6,'id':_0x2e9537,'tableId':_0xe99a48['id']}];}))};}var js=_0x6c183(0x1d1),Ms=_0x6c183(0x2c4);const Ns={},Ps={};function Fs(_0x3ace7d){return new z()['getAffectedRanges'](_0x3ace7d);}function Is(_0x4b806d){const _0x3181b0=_0x6c183;return _0x4b806d[_0x3181b0(0x2e6)]['map'](_0x176a01=>({'unitId':_0x4b806d[_0x3181b0(0x393)],'sheetId':_0x4b806d[_0x3181b0(0x210)],'range':{'startRow':_0x176a01['row'],'endRow':_0x176a01[_0x3181b0(0x4b3)],'startColumn':_0x176a01[_0x3181b0(0x295)],'endColumn':_0x176a01[_0x3181b0(0x295)]}}));}function Ls(_0x3a8d0c,_0x227b7e){const _0x4adc2e=_0x6c183;return{[_0x3a8d0c]:Object[_0x4adc2e(0x176)](_0x227b7e[_0x4adc2e(0x141)](_0x5adbc4=>[_0x5adbc4,'1']))};}let Rs=class extends _0x3b0b2d{constructor(_0x46f761,_0x3221e3){const _0x572423=_0x6c183;super(),this[_0x572423(0x28c)]=_0x46f761,this['_univerInstanceService']=_0x3221e3,this[_0x572423(0x24a)]();}['_initialize'](){const _0x1921c2=_0x6c183;this[_0x1921c2(0x28c)][_0x1921c2(0x2d9)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0x231922=>this[_0x1921c2(0x3e7)](_0x231922['params'])}),this[_0x1921c2(0x135)](_0x1827e4(()=>{const _0x5b45b7=_0x1921c2;this[_0x5b45b7(0x28c)][_0x5b45b7(0x2b2)](Q['id']);}));}[_0x6c183(0x4a3)](_0x4ead58,_0x1cddb0){const _0x350a62=_0x6c183;let _0x3f4de3=this[_0x350a62(0x1be)]['getUnit'](_0x4ead58,_0x5c5c99[_0x350a62(0x36b)]);return(_0x3f4de3==null?void 0x0:_0x3f4de3[_0x350a62(0x32f)]()[_0x350a62(0x298)][_0x1cddb0])??null;}[_0x6c183(0x3e7)](_0xfc0160){const _0x5f26c2=_0x6c183;if(_0xfc0160[_0x5f26c2(0x172)]===_0x5f26c2(0x2f2))return{};if(!_0xfc0160[_0x5f26c2(0x393)]||!_0xfc0160['op'])return{'clearDependencyTreeCache':this[_0x5f26c2(0x153)](),'forceCalculation':!0x0};let _0xa6262c=Fs(_0xfc0160['op']),_0x1f84db=this['_getStructureDirtyTableIds'](_0xfc0160[_0x5f26c2(0x393)],_0xa6262c);if(_0x1f84db['length'])return{'clearDependencyTreeCache':Ls(_0xfc0160[_0x5f26c2(0x393)],_0x1f84db),'forceCalculation':!0x0};let _0x2124d2=Object['entries'](this[_0x5f26c2(0x452)](_0xfc0160['unitId'],_0xa6262c))[_0x5f26c2(0x17a)](([_0x53ac4a,_0x14ae45])=>Is({'unitId':_0xfc0160[_0x5f26c2(0x393)],'tableId':_0x53ac4a,'patches':_0x14ae45}));return _0x2124d2[_0x5f26c2(0x13c)]?{'dirtyRanges':_0x2124d2}:{};}[_0x6c183(0x167)](_0x3df5f1,_0x14f721){const _0x5bb0ed=_0x6c183;let _0xb222f4=_0x14f721[_0x5bb0ed(0x2be)](_0x4fb3ad=>_0x4fb3ad[_0x5bb0ed(0x28a)]!=='cell')[_0x5bb0ed(0x17a)](_0x2c82e4=>_0x2c82e4[_0x5bb0ed(0x210)]?[_0x2c82e4[_0x5bb0ed(0x210)]]:this[_0x5bb0ed(0x1ff)](_0x3df5f1));return Array[_0x5bb0ed(0x1d5)](new Set(_0xb222f4));}['_groupCellInvalidations'](_0x400a0a,_0x5614c2){let _0x14f6ba=new Set();return _0x5614c2['reduce']((_0x434bef,_0xc1a520)=>{const _0x371dac=_0x2b5a;let _0x581999=this['_toDirtyRangePatch'](_0x400a0a,_0xc1a520);if(!_0x581999)return _0x434bef;let _0x913e72=_0xc1a520[_0x371dac(0x210)]+':'+_0x581999[_0x371dac(0x4b3)]+':'+_0x581999[_0x371dac(0x295)];return _0x14f6ba[_0x371dac(0x34b)](_0x913e72)?_0x434bef:(_0x14f6ba[_0x371dac(0x2ee)](_0x913e72),_0x434bef[_0xc1a520[_0x371dac(0x210)]]=_0x434bef[_0xc1a520[_0x371dac(0x210)]]??[],_0x434bef[_0xc1a520[_0x371dac(0x210)]][_0x371dac(0x174)](_0x581999),_0x434bef);},{});}[_0x6c183(0x2ce)](_0x3521c5,_0x35a3db){const _0x28d48f=_0x6c183;if(_0x35a3db[_0x28d48f(0x28a)]!==_0x28d48f(0x1de))return null;if(_0x35a3db[_0x28d48f(0x4b3)]!=null&&_0x35a3db[_0x28d48f(0x229)]!=null)return{'row':_0x35a3db['row'],'col':_0x35a3db['column'],'value':null};if(!_0x35a3db[_0x28d48f(0x347)]||!_0x35a3db[_0x28d48f(0x2b0)])return null;let _0x4ef7da=this['_getTable'](_0x3521c5,_0x35a3db[_0x28d48f(0x210)]);if(!_0x4ef7da)return null;let _0x586a14=_t(_0x4ef7da,_0x35a3db[_0x28d48f(0x347)],_0x35a3db['fieldId']);return _0x586a14?{'row':_0x586a14[_0x28d48f(0x4b3)],'col':_0x586a14[_0x28d48f(0x295)],'value':null}:null;}[_0x6c183(0x1ff)](_0x5ba1dd){const _0x42092c=_0x6c183;let _0x271ad8=this[_0x42092c(0x1be)][_0x42092c(0x228)](_0x5ba1dd,_0x5c5c99['UNIVER_BASE']);return Object[_0x42092c(0x227)]((_0x271ad8==null?void 0x0:_0x271ad8['getSnapshot']()[_0x42092c(0x298)])??{})[_0x42092c(0x141)](_0x47e77d=>_0x47e77d['id']);}['_getAllBaseDependencyTreeCacheMap'](){const _0x9e6e23=_0x6c183;let _0x1d62c6=this[_0x9e6e23(0x1be)][_0x9e6e23(0x3db)](_0x5c5c99[_0x9e6e23(0x36b)])[_0x9e6e23(0x141)](_0x986a5f=>Ls(_0x986a5f[_0x9e6e23(0x2ff)](),Object['keys'](_0x986a5f[_0x9e6e23(0x32f)]()[_0x9e6e23(0x298)])));return Object[_0x9e6e23(0x1ec)]({},..._0x1d62c6);}};Rs=X([Y(0x0,_0x403c63),Y(0x1,_0x24efe9)],Rs);let zs=class extends _0x3b0b2d{constructor(_0x1bda70,_0x16b012,_0x1f19c4,_0x9a4d64){const _0x4b1aac=_0x6c183;super(),this[_0x4b1aac(0x3cc)]=_0x1bda70,this[_0x4b1aac(0x1be)]=_0x16b012,this['_formulaCalculationTriggerService']=_0x1f19c4,this['_formulaCalculationSessionService']=_0x9a4d64,G(this,'_formulaService',new Xi()),G(this,'_registeredSuperTableNames',new Map()),G(this,_0x4b1aac(0x39c),new Set()),G(this,_0x4b1aac(0x3ff),Promise[_0x4b1aac(0x4a9)]()),G(this,_0x4b1aac(0x46d),!0x1),this[_0x4b1aac(0x24a)]();}['_initialize'](){const _0x4352d5=_0x6c183;this[_0x4352d5(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x4352d5(0x36b)])['forEach'](_0x443195=>{const _0x161b70=_0x4352d5;this[_0x161b70(0x1f0)](_0x443195);}),this[_0x4352d5(0x135)](this[_0x4352d5(0x1be)]['getTypeOfUnitAdded$'](_0x5c5c99[_0x4352d5(0x36b)])[_0x4352d5(0x265)](({unit:_0x3e3e99})=>{const _0x47f1e8=_0x4352d5;this[_0x47f1e8(0x1f0)](_0x3e3e99);})),this['disposeWithMe'](this[_0x4352d5(0x1be)][_0x4352d5(0x1b5)](_0x5c5c99['UNIVER_BASE'])['subscribe'](_0x182177=>{const _0x401673=_0x4352d5;this['_enqueueFormulaSync'](()=>this[_0x401673(0x29e)](_0x182177['getUnitId']()));})),this[_0x4352d5(0x135)](this['_commandService'][_0x4352d5(0x2ec)](_0x106bb9=>this[_0x4352d5(0x13d)](_0x106bb9)));}[_0x6c183(0x13d)](_0x44e5c1){const _0x5212fb=_0x6c183;if(_0x44e5c1['id']===_0x3da161['id']){Vs(_0x44e5c1['params'])&&this[_0x5212fb(0x455)](_0x44e5c1['params']);return;}if(this[_0x5212fb(0x46d)]||_0x44e5c1['id']!==Q['id'])return;let _0x1fc937=Bs(_0x44e5c1['params'])?_0x44e5c1['params']:void 0x0,_0x1254a0=_0x1fc937!=null&&_0x1fc937[_0x5212fb(0x393)]?[this['_univerInstanceService'][_0x5212fb(0x228)](_0x1fc937[_0x5212fb(0x393)],_0x5c5c99[_0x5212fb(0x36b)])][_0x5212fb(0x2be)](_0xa9e253=>!!_0xa9e253):this[_0x5212fb(0x1be)][_0x5212fb(0x3db)](_0x5c5c99[_0x5212fb(0x36b)]),_0x2f8cdd=_0x1fc937==null?void 0x0:_0x1fc937['op'];_0x1254a0['forEach'](_0x92a692=>{const _0x5b7635=_0x5212fb;let _0x46ba9f=_0x2f8cdd?Fs(_0x2f8cdd):[];(!_0x2f8cdd||_0x46ba9f['some'](_0x4e87b9=>_0x4e87b9['reason']!==_0x5b7635(0x1de)))&&this['_scheduleSuperTableSync'](_0x92a692);});}[_0x6c183(0x1f0)](_0x9f835a){const _0x3128b6=_0x6c183;let _0xa704ec=_0x9f835a[_0x3128b6(0x2ff)]();this[_0x3128b6(0x39c)][_0x3128b6(0x34b)](_0xa704ec)||(this[_0x3128b6(0x39c)]['add'](_0xa704ec),this[_0x3128b6(0x41d)](async()=>{const _0x5e8643=_0x3128b6;this[_0x5e8643(0x39c)][_0x5e8643(0x2fc)](_0xa704ec),await this['_syncSuperTables'](_0x9f835a);}));}async[_0x6c183(0x438)](_0x5af771){const _0x4ff14e=_0x6c183;let _0x55e3a8=_0x5af771[_0x4ff14e(0x2ff)](),_0x5461cd=this['_formulaService']['getSuperTableRegistrations'](_0x5af771[_0x4ff14e(0x32f)]()),_0x4ab9cb=new Set(_0x5461cd[_0x4ff14e(0x141)](({tableName:_0x12baf4})=>_0x12baf4)),_0x5ca400=this[_0x4ff14e(0x3e0)][_0x4ff14e(0x43e)](_0x55e3a8)??new Set();for(let _0x411501 of _0x5ca400)if(!_0x4ab9cb[_0x4ff14e(0x34b)](_0x411501)&&!await this[_0x4ff14e(0x245)](_0x371cf0['id'],{'unitId':_0x55e3a8,'tableName':_0x411501}))return;for(let {tableName:_0x36a504,reference:_0x430913}of _0x5461cd)if(!await this[_0x4ff14e(0x245)](_0x2af977['id'],{'unitId':_0x55e3a8,'tableName':_0x36a504,'reference':_0x430913}))return;this[_0x4ff14e(0x3e0)]['set'](_0x55e3a8,_0x4ab9cb);}async[_0x6c183(0x29e)](_0x249be5){const _0x293526=_0x6c183;let _0x8723a4=this['_registeredSuperTableNames'][_0x293526(0x43e)](_0x249be5)??new Set();for(let _0x199fbb of _0x8723a4)if(!await this['_executeSuperTableMutationWhileActive'](_0x371cf0['id'],{'unitId':_0x249be5,'tableName':_0x199fbb}))return;this[_0x293526(0x3e0)][_0x293526(0x2fc)](_0x249be5);}async[_0x6c183(0x245)](_0x6961f1,_0x263546){const _0x9b3648=_0x6c183;return!this[_0x9b3648(0x18e)]&&await this[_0x9b3648(0x3cc)][_0x9b3648(0x486)](_0x6961f1,_0x263546,{'onlyLocal':!0x0})&&!this[_0x9b3648(0x18e)];}[_0x6c183(0x41d)](_0x2073f5){const _0x390e71=_0x6c183;this[_0x390e71(0x3ff)]=this[_0x390e71(0x3ff)]['then'](_0x2073f5,_0x2073f5)['catch'](()=>void 0x0);}[_0x6c183(0x455)](_0x33bf98){const _0xdb0e53=_0x6c183;let _0x4134b9=this['_univerInstanceService'][_0xdb0e53(0x3db)](_0x5c5c99[_0xdb0e53(0x36b)]);if(!_0x4134b9['some'](_0x14d19d=>{const _0x2c4aa0=_0xdb0e53;var _0x2600b1;return((_0x2600b1=_0x33bf98[_0x2c4aa0(0x42e)])==null?void 0x0:_0x2600b1[_0x14d19d[_0x2c4aa0(0x2ff)]()])!=null;}))return;let _0x4bf57d=_0x4134b9['flatMap'](_0x439930=>Zi(_0x439930[_0xdb0e53(0x32f)](),_0x33bf98));if(!_0x4bf57d['length']){this[_0xdb0e53(0x178)][_0xdb0e53(0x480)](_0x1e8264[_0xdb0e53(0x4b4)],_0x33bf98);return;}let _0x45e61a=new W(),_0x1eba16=_0x4bf57d[_0xdb0e53(0x17a)](_0x16865f=>Is({'unitId':_0x16865f[_0xdb0e53(0x393)],'tableId':_0x16865f[_0xdb0e53(0x210)],'patches':_0x16865f[_0xdb0e53(0x2e6)]}));this[_0xdb0e53(0x46d)]=!0x0,(async()=>{const _0x4d1a31=_0xdb0e53;for(let _0x333d04 of _0x4bf57d){let _0x8614da=this[_0x4d1a31(0x1be)][_0x4d1a31(0x228)](_0x333d04[_0x4d1a31(0x393)],_0x5c5c99[_0x4d1a31(0x36b)]);_0x8614da&&await this[_0x4d1a31(0x3cc)]['executeCommand'](Q['id'],{'unitId':_0x333d04['unitId'],'op':_0x45e61a[_0x4d1a31(0x11d)](_0x8614da[_0x4d1a31(0x32f)](),_0x333d04[_0x4d1a31(0x210)],_0x333d04['patches']),'trigger':_0x3da161['id']},{'onlyLocal':!0x0});}await this[_0x4d1a31(0x3cc)][_0x4d1a31(0x486)](_0x174b70['id'],{'dirtyRanges':_0x1eba16},{'onlyLocal':!0x0});})()['finally'](()=>{const _0x338c8b=_0xdb0e53;this['_applyingFormulaResults']=!0x1,this[_0x338c8b(0x178)][_0x338c8b(0x480)](_0x1e8264[_0x338c8b(0x4b4)],_0x33bf98);});}};zs=X([Y(0x0,_0x5daeb6),Y(0x1,_0x24efe9),Y(0x2,_0x490adb(_0x2612d7)),Y(0x3,_0x490adb(_0xdc8395))],zs);function Bs(_0xb97de6){const _0xf80dd0=_0x6c183;return typeof _0xb97de6==_0xf80dd0(0x3d7)&&!!_0xb97de6&&'unitId'in _0xb97de6&&typeof _0xb97de6['unitId']==_0xf80dd0(0x425)&&'op'in _0xb97de6&&Array['isArray'](_0xb97de6['op']);}function Vs(_0x371730){const _0x3730d2=_0x6c183;return typeof _0x371730==_0x3730d2(0x3d7)&&!!_0x371730&&_0x3730d2(0x42e)in _0x371730&&_0x3730d2(0x4af)in _0x371730;}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x3b0b2d{constructor(_0x1f8a12,_0xe21c1,_0x1865ea,_0x279e5a){const _0x143489=_0x6c183;super(),this['_injector']=_0x1f8a12,this[_0x143489(0x3cc)]=_0xe21c1,this[_0x143489(0x3ad)]=_0x1865ea,this[_0x143489(0x470)]=_0x279e5a,this[_0x143489(0x470)][_0x143489(0x3db)](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x2e0)](_0x3b813d=>this['_registerUnitPermissionPoints'](_0x3b813d[_0x143489(0x2ff)]())),this['disposeWithMe'](this[_0x143489(0x470)]['getTypeOfUnitAdded$'](_0x5c5c99['UNIVER_BASE'])[_0x143489(0x265)](({unit:_0xddddc9})=>this[_0x143489(0x1c4)](_0xddddc9[_0x143489(0x2ff)]()))),this[_0x143489(0x135)](this[_0x143489(0x3cc)][_0x143489(0x16b)]((_0x2a0394,_0x15fd46)=>this[_0x143489(0x197)](_0x2a0394,_0x15fd46))),this[_0x143489(0x135)](this['_instanceService']['getTypeOfUnitDisposed$'](_0x5c5c99[_0x143489(0x36b)])[_0x143489(0x265)](_0x7566bd=>{const _0x3f43d9=_0x143489;this[_0x3f43d9(0x224)]['get'](_0x14b422)[_0x3f43d9(0x3b8)](_0x7566bd['getUnitId']()),Rr(this[_0x3f43d9(0x3ad)],_0x7566bd[_0x3f43d9(0x2ff)]());}));}['_registerUnitPermissionPoints'](_0x20f408){const _0x191e6a=_0x6c183;Tr[_0x191e6a(0x2e0)](_0x68b61=>{const _0xf32621=_0x191e6a;let _0x319018=Pr(_0x20f408,_0x20f408,_0x68b61);this['_permissionService']['getPermissionPoint'](_0x319018['id'])||this['_permissionService'][_0xf32621(0x2e2)](_0x319018);}),this['_injector']['get'](_0x14b422)[_0x191e6a(0x43f)]({'unitId':_0x20f408,'objectId':_0x20f408,'objectType':_0x3cf49a['Base']});}['_check'](_0x295aa6,_0x46578c){const _0x2b840a=_0x6c183;var _0x58dd7d;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x36f)]||_0x46578c!=null&&_0x46578c[_0x2b840a(0x3b9)])return;let _0x2a4196=tc(_0x295aa6[_0x2b840a(0x282)])?_0x295aa6[_0x2b840a(0x282)]:void 0x0;if(_0x46578c!=null&&_0x46578c[_0x2b840a(0x2fe)]&&_0x295aa6['id']===_0x2b840a(0x340)&&(_0x2a4196==null?void 0x0:_0x2a4196[_0x2b840a(0x172)])===_0x3da161['id'])return;let _0x53178a=Gs(_0x295aa6['id']),_0x69b5cd=Ws(_0x2a4196==null?void 0x0:_0x2a4196['unitId'],_0x46578c)??(_0x53178a?(_0x58dd7d=this['_instanceService'][_0x2b840a(0x2a7)](_0x5c5c99[_0x2b840a(0x36b)]))==null?void 0x0:_0x58dd7d['getUnitId']():void 0x0);if(!_0x69b5cd||this['_instanceService'][_0x2b840a(0x17b)](_0x69b5cd)!==_0x5c5c99[_0x2b840a(0x36b)])return;if(_0x53178a){if(!Fr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x69b5cd,_0x53178a))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd),new _0x5ea448(_0x2b840a(0x119)+_0x1aafeb[_0x53178a]+_0x2b840a(0x27e));return;}if(Hs[_0x2b840a(0x34b)](_0x295aa6['id'])||!_0x295aa6['id']['startsWith'](_0x2b840a(0x2ef))&&!_0x295aa6['id'][_0x2b840a(0x1fb)](_0x2b840a(0x35b)))return;let _0x126d2b=this[_0x2b840a(0x470)][_0x2b840a(0x228)](_0x69b5cd,_0x5c5c99[_0x2b840a(0x36b)]),_0x23b0f7=_0x126d2b?Ks(_0x126d2b,_0x2a4196??{},_0x295aa6['id']):[];if(!_0x126d2b||!zr(this[_0x2b840a(0x3ad)],_0x69b5cd,_0x23b0f7))throw this[_0x2b840a(0x224)]['get'](_0x35b5ff)['emitPermissionDenied'](_0x69b5cd,_0x23b0f7),new _0x5ea448(_0x2b840a(0x1b7));}};Us=X([Y(0x0,_0x490adb(_0x4f0ad3)),Y(0x1,_0x5daeb6),Y(0x2,_0x41b15f),Y(0x3,_0x24efe9)],Us);function Ws(_0x147d71,_0xb57dea){const _0x51cbd6=_0x6c183;return typeof _0x147d71==_0x51cbd6(0x425)?_0x147d71:typeof(_0xb57dea==null?void 0x0:_0xb57dea[_0x51cbd6(0x393)])==_0x51cbd6(0x425)?_0xb57dea[_0x51cbd6(0x393)]:void 0x0;}function Gs(_0x1ba0fb){const _0xed273b=_0x6c183;if(_0x1ba0fb===_0xed273b(0x133)||_0x1ba0fb===_0xed273b(0x2a6))return _0x1aafeb[_0xed273b(0x1c9)];if(_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x3c9))||_0x1ba0fb[_0xed273b(0x1fb)](_0xed273b(0x12d)))return _0x1aafeb[_0xed273b(0x117)];}function Ks(_0x4ef018,_0x37c6f9,_0x309d6c){const _0xf18cff=_0x6c183;if(_0x309d6c===_0xf18cff(0x340)&&ec(_0x37c6f9['op']))return qs(_0x4ef018,_0x37c6f9['op']);let _0x3d4b89=new Set(),_0xbbf81b=Zs(_0x37c6f9,'table'),_0x3c4819=typeof _0x37c6f9[_0xf18cff(0x210)]==_0xf18cff(0x425)?_0x37c6f9['tableId']:_0xbbf81b[0x0];if(_0xbbf81b[_0xf18cff(0x2e0)](_0x519099=>_0x3d4b89[_0xf18cff(0x2ee)](K(_0x519099))),!_0x3c4819)return[..._0x3d4b89];let _0x54e83b=_0x4ef018[_0xf18cff(0x32f)]()[_0xf18cff(0x298)][_0x3c4819],_0x22ca4c=new Set(Zs(_0x37c6f9,'field')),_0x242ca0=new Set(Zs(_0x37c6f9,'record')),_0x224ecf=new Set(Zs(_0x37c6f9,_0xf18cff(0x37d)));return Qs(_0x54e83b,_0x37c6f9[_0xf18cff(0x2e6)],_0x242ca0,_0x22ca4c),$s(_0x37c6f9,_0x22ca4c),_0x22ca4c[_0xf18cff(0x2e0)](_0x127154=>_0x3d4b89[_0xf18cff(0x2ee)](q(_0x3c4819,_0x127154))),_0x242ca0[_0xf18cff(0x2e0)](_0x479033=>_0x3d4b89[_0xf18cff(0x2ee)](J(_0x3c4819,_0x479033))),_0x224ecf[_0xf18cff(0x2e0)](_0x3343e1=>_0x3d4b89[_0xf18cff(0x2ee)](Mr(_0x3c4819,_0x3343e1))),[..._0x3d4b89];}function qs(_0x4657e0,_0x431c84){const _0x39f5ea=_0x6c183;let _0xb42767=_0x4657e0[_0x39f5ea(0x32f)](),_0x496c47=new z()['getAffectedRanges'](_0x431c84),_0x40c676=Js(_0x431c84),_0x1dbd17=new Set();return _0x496c47[_0x39f5ea(0x2e0)](_0x443e96=>{const _0x48f4f3=_0x39f5ea;var _0x4bb237,_0x4f395a;let {tableId:_0x1cdd3d}=_0x443e96;if(!_0x1cdd3d)return;_0x1dbd17[_0x48f4f3(0x2ee)](K(_0x1cdd3d));let _0x5bb9c8=_0xb42767['tables'][_0x1cdd3d],_0x15d54b=_0x443e96[_0x48f4f3(0x347)]??(_0x443e96[_0x48f4f3(0x4b3)]==null||_0x5bb9c8==null||(_0x4bb237=_0x5bb9c8[_0x48f4f3(0x3d0)])==null?void 0x0:_0x4bb237[_0x443e96[_0x48f4f3(0x4b3)]]),_0x20db45=_0x443e96[_0x48f4f3(0x2b0)]??(_0x443e96[_0x48f4f3(0x229)]==null||_0x5bb9c8==null||(_0x4f395a=_0x5bb9c8[_0x48f4f3(0x1fe)])==null?void 0x0:_0x4f395a[_0x443e96['column']]);_0x15d54b&&_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x15d54b)),_0x20db45&&_0x1dbd17['add'](q(_0x1cdd3d,_0x20db45)),_0x443e96[_0x48f4f3(0x288)]&&_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x443e96[_0x48f4f3(0x288)])),(_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x4c7)||_0x40c676[_0x48f4f3(0x34b)](_0x1cdd3d))&&_0x5bb9c8&&(Object[_0x48f4f3(0x24c)](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x445bd2=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x445bd2))),Object['keys'](_0x5bb9c8[_0x48f4f3(0x258)])[_0x48f4f3(0x2e0)](_0x5c0715=>_0x1dbd17[_0x48f4f3(0x2ee)](J(_0x1cdd3d,_0x5c0715))),Object[_0x48f4f3(0x24c)](_0x5bb9c8['views'])[_0x48f4f3(0x2e0)](_0x2ec179=>_0x1dbd17[_0x48f4f3(0x2ee)](Mr(_0x1cdd3d,_0x2ec179)))),_0x443e96[_0x48f4f3(0x28a)]===_0x48f4f3(0x493)&&_0x5bb9c8&&Object['keys'](_0x5bb9c8['fields'])[_0x48f4f3(0x2e0)](_0x438ae1=>_0x1dbd17[_0x48f4f3(0x2ee)](q(_0x1cdd3d,_0x438ae1)));}),_0x496c47[_0x39f5ea(0x13c)]===0x0&&Xs(_0x431c84,_0x39f5ea(0x338))&&Object[_0x39f5ea(0x24c)](_0xb42767[_0x39f5ea(0x298)])[_0x39f5ea(0x2e0)](_0x41b768=>_0x1dbd17[_0x39f5ea(0x2ee)](K(_0x41b768))),[..._0x1dbd17];}function Js(_0x4d769c){let _0x4bd9e8=new Set(),_0x2fe7ef=_0x13d2f6=>{const _0x5a2ac9=_0x2b5a;Array[_0x5a2ac9(0x431)](_0x13d2f6)&&_0x13d2f6[_0x5a2ac9(0x2e0)]((_0xb336b2,_0x367f9b)=>{const _0x1285e4=_0x5a2ac9;_0xb336b2===_0x1285e4(0x298)&&typeof _0x13d2f6[_0x367f9b+0x1]=='string'&&Ys(_0x13d2f6[_0x367f9b+0x2])&&_0x4bd9e8['add'](_0x13d2f6[_0x367f9b+0x1]),_0x2fe7ef(_0xb336b2);});};return _0x2fe7ef(_0x4d769c),_0x4bd9e8;}function Ys(_0x2ccb2a){const _0x2517f0=_0x6c183;return!!_0x2ccb2a&&typeof _0x2ccb2a==_0x2517f0(0x3d7)&&!Array[_0x2517f0(0x431)](_0x2ccb2a)&&('i'in _0x2ccb2a||'r'in _0x2ccb2a||'p'in _0x2ccb2a||'d'in _0x2ccb2a||'es'in _0x2ccb2a||_0x2517f0(0x41c)in _0x2ccb2a||'et'in _0x2ccb2a);}function Xs(_0x29eb89,_0x58cbc9){const _0x10c03c=_0x6c183;return Array[_0x10c03c(0x431)](_0x29eb89)&&_0x29eb89[_0x10c03c(0x185)](_0x314019=>_0x314019===_0x58cbc9||Xs(_0x314019,_0x58cbc9));}function Zs(_0x4d3141,_0x4d3372){const _0x141022=_0x6c183;let _0x3951ce=new Set(),_0x54ff00=_0x4d3372+'Id',_0x2dd418=_0x4d3372+_0x141022(0x1f3),_0x1c7444=(_0x14579d,_0x169911='')=>{const _0x318da7=_0x141022;if(typeof _0x14579d==_0x318da7(0x425)){_0x169911===_0x54ff00&&_0x3951ce[_0x318da7(0x2ee)](_0x14579d);return;}if(Array[_0x318da7(0x431)](_0x14579d)){_0x169911===_0x2dd418?_0x14579d['forEach'](_0xc0e3bc=>{const _0x3d2bf1=_0x318da7;typeof _0xc0e3bc==_0x3d2bf1(0x425)&&_0x3951ce[_0x3d2bf1(0x2ee)](_0xc0e3bc);}):_0x14579d['forEach'](_0x1714cd=>_0x1c7444(_0x1714cd,_0x169911));return;}tc(_0x14579d)&&Object[_0x318da7(0x279)](_0x14579d)[_0x318da7(0x2e0)](([_0x3d18e4,_0x1057ee])=>{const _0x5c537a=_0x318da7;_0x3d18e4==='id'&&_0x169911===_0x4d3372&&typeof _0x1057ee==_0x5c537a(0x425)?_0x3951ce[_0x5c537a(0x2ee)](_0x1057ee):_0x1c7444(_0x1057ee,_0x3d18e4);});};return _0x1c7444(_0x4d3141),[..._0x3951ce];}function Qs(_0x4c3084,_0x14ea26,_0x245548,_0x2a4175){const _0x199bc7=_0x6c183;_0x4c3084&&Array[_0x199bc7(0x431)](_0x14ea26)&&_0x14ea26[_0x199bc7(0x2e0)](_0x247f84=>{const _0x5bc144=_0x199bc7;if(!tc(_0x247f84))return;let _0x31fe47=_0x247f84;if(typeof _0x31fe47[_0x5bc144(0x4b3)]==_0x5bc144(0x24b)){var _0x23cc90;let _0x3ee5a1=(_0x23cc90=_0x4c3084[_0x5bc144(0x3d0)])==null?void 0x0:_0x23cc90[_0x31fe47['row']];_0x3ee5a1&&_0x245548[_0x5bc144(0x2ee)](_0x3ee5a1);}if(typeof _0x31fe47[_0x5bc144(0x295)]=='number'){var _0x207be8;let _0x5ae4f8=(_0x207be8=_0x4c3084['colId'])==null?void 0x0:_0x207be8[_0x31fe47['col']];_0x5ae4f8&&_0x2a4175['add'](_0x5ae4f8);}});}function $s(_0x513746,_0x5e6f71,_0x31c2c7=''){const _0x473269=_0x6c183;if(_0x513746&&typeof _0x513746==_0x473269(0x3d7)){if(Array['isArray'](_0x513746)){_0x513746[_0x473269(0x2e0)](_0xd30d90=>$s(_0xd30d90,_0x5e6f71,_0x31c2c7));return;}tc(_0x513746)&&Object[_0x473269(0x279)](_0x513746)[_0x473269(0x2e0)](([_0x2609d9,_0x48a46f])=>{const _0x35a9cd=_0x473269;_0x31c2c7==='values'&&_0x5e6f71[_0x35a9cd(0x2ee)](_0x2609d9),$s(_0x48a46f,_0x5e6f71,_0x2609d9);});}}function ec(_0x2971b9){const _0x38f85a=_0x6c183;return Array[_0x38f85a(0x431)](_0x2971b9);}function tc(_0x106c1b){const _0x290e6b=_0x6c183;return typeof _0x106c1b==_0x290e6b(0x3d7)&&!!_0x106c1b&&!Array['isArray'](_0x106c1b);}const nc=_0x2e8f64(_0x6c183(0x290));let rc=class{constructor(_0x2780a8){const _0x2bc9e1=_0x6c183;this[_0x2bc9e1(0x1be)]=_0x2780a8;}[_0x6c183(0x261)](_0x38317f){const _0x1a7051=_0x6c183;return this['_univerInstanceService'][_0x1a7051(0x228)](_0x38317f,_0x5c5c99['UNIVER_BASE'])??null;}['getAllBases'](){const _0x59def9=_0x6c183;return this[_0x59def9(0x1be)]['getAllUnitsForType'](_0x5c5c99[_0x59def9(0x36b)]);}[_0x6c183(0x494)](_0x4a7325){const _0xed7968=_0x6c183;return this[_0xed7968(0x1be)][_0xed7968(0x1e8)](_0x5c5c99[_0xed7968(0x36b)],_0x4a7325);}};rc=X([Y(0x0,_0x24efe9)],rc);const ic=_0x2e8f64('base.view-registry.service');var ac=class extends _0x3b0b2d{constructor(..._0x34e201){const _0x295221=_0x6c183;super(..._0x34e201),G(this,_0x295221(0x1dd),new Map());}[_0x6c183(0x2d9)](_0xba95cc){const _0x3b619b=_0x6c183;return this[_0x3b619b(0x1dd)][_0x3b619b(0x49e)](_0xba95cc[_0x3b619b(0x20b)],_0xba95cc),_0x1827e4(()=>this[_0x3b619b(0x1dd)]['delete'](_0xba95cc['type']));}[_0x6c183(0x43e)](_0x2cc82a){const _0x584c3e=_0x6c183;let _0x55b54f=this['_plugins'][_0x584c3e(0x43e)](_0x2cc82a);if(!_0x55b54f)throw Error(_0x584c3e(0x2b9)+_0x2cc82a+_0x584c3e(0x25c));return _0x55b54f;}[_0x6c183(0x1db)](){const _0x39d232=_0x6c183;return Array[_0x39d232(0x1d5)](this[_0x39d232(0x1dd)][_0x39d232(0x227)]());}};const oc=[Q];let sc=class extends _0x5e5cdb{constructor(_0x301c9f=Ns,_0x38fdbb,_0x63e45c,_0x43b1a7,_0x124786,_0x4f5c9a){const _0x2d3a7b=_0x6c183;super(),this[_0x2d3a7b(0x16c)]=_0x301c9f,this[_0x2d3a7b(0x224)]=_0x38fdbb,this[_0x2d3a7b(0x3cc)]=_0x63e45c,this[_0x2d3a7b(0x1be)]=_0x43b1a7,this[_0x2d3a7b(0x2f0)]=_0x124786,this['_dataSyncPrimaryController']=_0x4f5c9a,G(this,'_baseSyncDisposables',new Map());let {..._0x2eb950}=_0x1bd132({},Ns,this['_config']);this[_0x2d3a7b(0x2f0)][_0x2d3a7b(0x11b)](_0x2d3a7b(0x16f),_0x2eb950),this['_univerInstanceService']['registerCtorForType'](_0x5c5c99[_0x2d3a7b(0x36b)],_0x351ad4),this[_0x2d3a7b(0x4cb)](),this[_0x2d3a7b(0x182)](),this[_0x2d3a7b(0x168)](),this[_0x2d3a7b(0x451)]();}[_0x6c183(0x234)](){const _0x47d505=_0x6c183;this[_0x47d505(0x224)][_0x47d505(0x2ee)]([Lo]),this[_0x47d505(0x135)](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x5daeb6)[_0x47d505(0x4a5)](Ro)),this[_0x47d505(0x135)](this['_injector'][_0x47d505(0x43e)](_0x5daeb6)['registerCommand'](zo)),this['disposeWithMe'](this[_0x47d505(0x224)][_0x47d505(0x43e)](_0x14b422)[_0x47d505(0x183)](_0x3cf49a[_0x47d505(0x1cc)],this[_0x47d505(0x224)][_0x47d505(0x43e)](Lo),Ro['id'],zo['id']));}[_0x6c183(0x4ab)](){const _0x19cf96=_0x6c183;_0x55f221(this[_0x19cf96(0x224)],[[rc],[qr],[Rs]]),this[_0x19cf96(0x1be)][_0x19cf96(0x3db)](_0x5c5c99[_0x19cf96(0x36b)])[_0x19cf96(0x2e0)](_0xd33f69=>this[_0x19cf96(0x1ed)](_0xd33f69[_0x19cf96(0x2ff)]())),_0x55f221(this['_injector'],[[zs],[Us]]);}[_0x6c183(0x4cb)](){const _0x50274f=_0x6c183;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x50274f(0x2e0)](_0x4f29a1=>this[_0x50274f(0x224)]['add'](_0x4f29a1));}[_0x6c183(0x182)](){const _0x14039b=_0x6c183;[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'](_0x3cb011=>this['disposeWithMe'](this[_0x14039b(0x3cc)][_0x14039b(0x4a5)](_0x3cb011))),oc[_0x14039b(0x2e0)](_0x69d735=>{const _0x28b12b=_0x14039b;var _0xc2386b;return(_0xc2386b=this['_dataSyncPrimaryController'])==null?void 0x0:_0xc2386b[_0x28b12b(0x3bb)](_0x69d735);});}[_0x6c183(0x451)](){const _0x2419ac=_0x6c183;this[_0x2419ac(0x11e)]&&(this[_0x2419ac(0x135)](this[_0x2419ac(0x1be)][_0x2419ac(0x12b)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](({unit:_0xb47eac})=>{const _0x1ddeb1=_0x2419ac;this['_syncBaseUnit'](_0xb47eac[_0x1ddeb1(0x2ff)]());})),this['disposeWithMe'](this[_0x2419ac(0x1be)][_0x2419ac(0x1b5)](_0x5c5c99[_0x2419ac(0x36b)])[_0x2419ac(0x265)](_0x3bc5e7=>{const _0x2cf18c=_0x2419ac;var _0x10917a;(_0x10917a=this[_0x2cf18c(0x195)][_0x2cf18c(0x43e)](_0x3bc5e7['getUnitId']()))==null||_0x10917a[_0x2cf18c(0x1bb)](),this['_baseSyncDisposables'][_0x2cf18c(0x2fc)](_0x3bc5e7['getUnitId']());})));}[_0x6c183(0x1ed)](_0xb98a14){const _0x182eaf=_0x6c183;this[_0x182eaf(0x11e)]&&!this[_0x182eaf(0x195)][_0x182eaf(0x34b)](_0xb98a14)&&this[_0x182eaf(0x195)]['set'](_0xb98a14,this[_0x182eaf(0x11e)][_0x182eaf(0x31b)](_0xb98a14));}['_initRegistries'](){const _0x127091=_0x6c183;let _0x59cb14=this[_0x127091(0x224)][_0x127091(0x43e)](mr);zn()[_0x127091(0x2e0)](_0xbab98e=>_0x59cb14[_0x127091(0x2d9)](_0xbab98e));let _0x2d18d9=this[_0x127091(0x224)][_0x127091(0x43e)](ic),_0x1e0c0a=this[_0x127091(0x224)][_0x127091(0x43e)](ii);$r()['forEach'](_0x28db48=>{_0x2d18d9['register'](_0x28db48),_0x1e0c0a['registerView'](_0x28db48);});}};G(sc,'pluginName',_0x6c183(0x223)),G(sc,_0x6c183(0x3fa),js),G(sc,'version',Ms),G(sc,_0x6c183(0x20b),_0x5c5c99[_0x6c183(0x36b)]),sc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x24efe9),Y(0x4,_0x2a3cb6),Y(0x5,_0x2f9a87(_0xd3ae6f))],sc);let cc=class extends _0x5e5cdb{constructor(_0xffe1f5=Ps,_0x2b6d1f,_0x2552c2,_0x557563,_0x3c9568){const _0xf81416=_0x6c183;super(),this[_0xf81416(0x16c)]=_0xffe1f5,this[_0xf81416(0x224)]=_0x2b6d1f,this[_0xf81416(0x3cc)]=_0x2552c2,this[_0xf81416(0x2f0)]=_0x557563,this[_0xf81416(0x1be)]=_0x3c9568;let {..._0x73202b}=_0x1bd132({},Ps,this[_0xf81416(0x16c)]);this[_0xf81416(0x2f0)][_0xf81416(0x11b)](_0xf81416(0x407),_0x73202b),this[_0xf81416(0x1be)][_0xf81416(0x322)](_0x5c5c99['UNIVER_BASE'],_0x351ad4),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0xf81416(0x2e0)](_0xeeb03a=>this['_injector'][_0xf81416(0x2ee)](_0xeeb03a)),oc['forEach'](_0x569241=>this[_0xf81416(0x135)](this[_0xf81416(0x3cc)]['registerCommand'](_0x569241)));}};G(cc,_0x6c183(0x297),_0x6c183(0x2bc)),G(cc,_0x6c183(0x3fa),js),G(cc,'version',Ms),G(cc,'type',_0x5c5c99[_0x6c183(0x36b)]),cc=X([_0x2beafb(_0xa2587c,_0x16e087),Y(0x1,_0x490adb(_0x4f0ad3)),Y(0x2,_0x5daeb6),Y(0x3,_0x2a3cb6),Y(0x4,_0x24efe9)],cc);function lc(_0x4199b9){const _0x5cbbe1=_0x6c183;let _0xa07181=Cc(_0x4199b9[_0x5cbbe1(0x2f3)]);if(!_0xa07181)return{'query':'','total':0x0,'matches':[]};let _0x1a9a30=[],_0x32277f=[];for(let _0x3ba49c=0x0;_0x3ba49c<_0x4199b9[_0x5cbbe1(0x31c)][_0x5cbbe1(0x13c)];_0x3ba49c++){if(!(_0x3ba49c in _0x4199b9[_0x5cbbe1(0x31c)]))continue;let _0xc448c9=_0x4199b9[_0x5cbbe1(0x4c7)][_0x5cbbe1(0x398)][_0x4199b9[_0x5cbbe1(0x31c)][_0x3ba49c]];_0xc448c9&&_0x32277f[_0x5cbbe1(0x174)]({'field':_0xc448c9,'fieldIndex':_0x3ba49c});}_0x4199b9['rows'][_0x5cbbe1(0x2e0)]((_0x465835,_0x2e008a)=>{const _0x47f05f=_0x5cbbe1;_0x32277f[_0x47f05f(0x2e0)](({field:_0x1b8bcc,fieldIndex:_0x28ac97})=>{const _0x539839=_0x47f05f;let _0x7e1c3c=uc(_0x465835[_0x539839(0x227)][_0x1b8bcc['id']],_0x1b8bcc);if(!_0x7e1c3c)return;let _0x422b9c=Sc(_0xa07181,_0x7e1c3c[_0x539839(0x1e9)]);_0x422b9c<=0x0||_0x1a9a30[_0x539839(0x174)]({'recordId':_0x465835[_0x539839(0x347)],'fieldId':_0x1b8bcc['id'],'fieldType':_0x1b8bcc[_0x539839(0x20b)],'text':_0x7e1c3c['displayText'],'score':_0x422b9c,'rowIndex':_0x2e008a,'fieldIndex':_0x28ac97});});}),_0x1a9a30[_0x5cbbe1(0x277)]((_0x24981f,_0x366b10)=>_0x366b10[_0x5cbbe1(0x212)]-_0x24981f[_0x5cbbe1(0x212)]||_0x24981f['rowIndex']-_0x366b10['rowIndex']||_0x24981f[_0x5cbbe1(0x29c)]-_0x366b10[_0x5cbbe1(0x29c)]);let _0x1e3e0f=_0x4199b9[_0x5cbbe1(0x31e)]==null?_0x1a9a30:_0x1a9a30['slice'](0x0,Math['max'](0x0,_0x4199b9['limit']));return{'query':_0xa07181,'total':_0x1a9a30[_0x5cbbe1(0x13c)],'matches':Tc(_0x1e3e0f)};}function uc(_0x22ca00,_0x1fdfcf){const _0x54535a=_0x6c183;let _0x53b92e=[];for(let _0x423fe5 of fc(_0x22ca00,_0x1fdfcf)){let _0x421570=Cc(_0x423fe5);_0x421570&&_0x53b92e[_0x54535a(0x174)](_0x421570);}return _0x53b92e[_0x54535a(0x13c)]?{'displayText':dc(_0x22ca00,_0x1fdfcf),'searchTexts':wc(_0x53b92e)}:null;}function dc(_0x526435,_0x38a66e){const _0x4324df=_0x6c183;switch(_0x38a66e['type']){case _0x3a044b[_0x4324df(0x20e)]:case _0x3a044b[_0x4324df(0x386)]:case _0x3a044b['Group']:return pc(_0x526435,_0x38a66e)[_0x4324df(0x11a)](',\x20');case _0x3a044b[_0x4324df(0x41f)]:return gc(_0x526435);case _0x3a044b['Date']:case _0x3a044b[_0x4324df(0x332)]:case _0x3a044b['UpdatedAt']:return _c(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x2f5)]:case _0x3a044b[_0x4324df(0x14d)]:return vc(_0x526435,_0x38a66e);case _0x3a044b['Progress']:return yc(_0x526435,_0x38a66e);case _0x3a044b[_0x4324df(0x233)]:return _0x526435?_0x4324df(0x35e):_0x4324df(0x4c2);case _0x3a044b[_0x4324df(0x1ab)]:return bc(_0x526435)[_0x4324df(0x11a)](',\x20');default:return xc(_0x526435);}}function fc(_0x3c38bb,_0x612bf8){const _0x2e6bf6=_0x6c183;switch(_0x612bf8['type']){case _0x3a044b[_0x2e6bf6(0x20e)]:case _0x3a044b[_0x2e6bf6(0x386)]:case _0x3a044b[_0x2e6bf6(0x1ad)]:{let _0x125453=pc(_0x3c38bb,_0x612bf8);if(Array[_0x2e6bf6(0x431)](_0x3c38bb)){let _0x384bbc=[..._0x125453];for(let _0x5e30ce=0x0;_0x5e30ce<_0x3c38bb[_0x2e6bf6(0x13c)];_0x5e30ce++)_0x5e30ce in _0x3c38bb&&_0x384bbc[_0x2e6bf6(0x174)](String(_0x3c38bb[_0x5e30ce]));return _0x384bbc;}return _0x3c38bb==null?_0x125453:[..._0x125453,String(_0x3c38bb)];}case _0x3a044b[_0x2e6bf6(0x41f)]:{let _0x198549=hc(_0x3c38bb);return[_0x198549['text'],_0x198549[_0x2e6bf6(0x32d)]];}case _0x3a044b['Date']:case _0x3a044b[_0x2e6bf6(0x332)]:case _0x3a044b[_0x2e6bf6(0x1fa)]:return[_c(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x2f5)]:case _0x3a044b[_0x2e6bf6(0x14d)]:return[vc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b[_0x2e6bf6(0x140)]:return[yc(_0x3c38bb,_0x612bf8),xc(_0x3c38bb)];case _0x3a044b['Checkbox']:return _0x3c38bb?[_0x2e6bf6(0x35e),_0x2e6bf6(0x4c1),_0x2e6bf6(0x3c6)]:['Unchecked','No',_0x2e6bf6(0x179)];case _0x3a044b[_0x2e6bf6(0x1ab)]:return bc(_0x3c38bb);default:return[xc(_0x3c38bb)];}}function pc(_0x2aed3e,_0x57a7bc){const _0xd6e1f0=_0x6c183;var _0x32b0e1;let _0x142a2e=Array[_0xd6e1f0(0x431)]((_0x32b0e1=_0x57a7bc['config'])==null?void 0x0:_0x32b0e1[_0xd6e1f0(0x2b3)])?_0x57a7bc[_0xd6e1f0(0x2ba)]['options']:[],_0x731d3b=[];if(Array[_0xd6e1f0(0x431)](_0x2aed3e)){for(let _0x12847d=0x0;_0x12847d<_0x2aed3e[_0xd6e1f0(0x13c)];_0x12847d++){if(!(_0x12847d in _0x2aed3e))continue;let _0x2e77da=String(_0x2aed3e[_0x12847d]);_0x2e77da&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x2e77da));}return _0x731d3b;}if(_0x2aed3e!=null){let _0x3e6aa0=String(_0x2aed3e);_0x3e6aa0&&_0x731d3b[_0xd6e1f0(0x174)](mc(_0x142a2e,_0x3e6aa0));}return _0x731d3b;}function mc(_0x3f9f74,_0x690df8){const _0x3d426c=_0x6c183;for(let _0x42fba5 of _0x3f9f74){if(typeof _0x42fba5==_0x3d426c(0x425)&&_0x42fba5===_0x690df8)return _0x42fba5;if(_0x42fba5&&typeof _0x42fba5=='object'){let _0x480559=_0x42fba5;if(String(_0x480559['id']??_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8||String(_0x480559[_0x3d426c(0x2a3)]??'')===_0x690df8)return String(_0x480559[_0x3d426c(0x2a3)]??_0x480559['id']??_0x690df8);}}return _0x690df8;}function hc(_0x36a54a){const _0xc0433=_0x6c183;if(_0x36a54a&&typeof _0x36a54a=='object'&&!Array['isArray'](_0x36a54a)){let _0x39b3fe=_0x36a54a;return{'text':String(_0x39b3fe[_0xc0433(0x3ae)]??_0x39b3fe[_0xc0433(0x32d)]??''),'url':String(_0x39b3fe[_0xc0433(0x32d)]??'')};}return{'text':xc(_0x36a54a),'url':xc(_0x36a54a)};}function gc(_0x4e8961){const _0x2aeebd=_0x6c183;let _0x730bd2=hc(_0x4e8961);return _0x730bd2[_0x2aeebd(0x3ae)]||_0x730bd2[_0x2aeebd(0x32d)];}function _c(_0x18bb6c,_0x2a04ab){const _0x5000c4=_0x6c183;return typeof _0x18bb6c!=_0x5000c4(0x24b)||!Number['isFinite'](_0x18bb6c)?'':mn(_0x18bb6c,_0x2a04ab[_0x5000c4(0x2ba)]);}function vc(_0x49dc02,_0x32c317){const _0x45dbf2=_0x6c183;let _0x159edb=typeof _0x49dc02==_0x45dbf2(0x24b)?_0x49dc02:Number(_0x49dc02);return Number[_0x45dbf2(0x143)](_0x159edb)?qo(_0x159edb,_0x32c317[_0x45dbf2(0x2ba)]):'';}function yc(_0x5b5c98,_0x55dfa5){const _0x516881=_0x6c183;let _0xd47556=typeof _0x5b5c98==_0x516881(0x24b)?_0x5b5c98:Number(_0x5b5c98);return Number['isFinite'](_0xd47556)?Qo(_0xd47556,_0x55dfa5['config']):'';}function bc(_0x37783e){const _0x20c0f7=_0x6c183;return Array[_0x20c0f7(0x431)](_0x37783e)?_0x37783e['flatMap'](_0x5163bb=>{const _0x4ceb8f=_0x20c0f7;if(!_0x5163bb||typeof _0x5163bb!=_0x4ceb8f(0x3d7))return[];let _0x3dca94=_0x5163bb,_0x3dc009=String(_0x3dca94[_0x4ceb8f(0x2a3)]??_0x3dca94[_0x4ceb8f(0x32d)]??'')[_0x4ceb8f(0x226)]();return _0x3dc009?[_0x3dc009]:[];}):[];}function xc(_0x566999){const _0x418739=_0x6c183;if(_0x566999==null)return'';if(typeof _0x566999==_0x418739(0x1cb))return _0x566999?'true':_0x418739(0x497);if(typeof _0x566999=='number')return String(_0x566999);if(Array['isArray'](_0x566999)){let _0x38b947=[];for(let _0xc15adb=0x0;_0xc15adb<_0x566999[_0x418739(0x13c)];_0xc15adb++){if(!(_0xc15adb in _0x566999))continue;let _0x4b84eb=xc(_0x566999[_0xc15adb]);_0x4b84eb&&_0x38b947[_0x418739(0x174)](_0x4b84eb);}return _0x38b947[_0x418739(0x11a)](',\x20');}if(typeof _0x566999==_0x418739(0x3d7)){let _0x48a65a=_0x566999;return String(_0x48a65a['title']??_0x48a65a[_0x418739(0x2a3)]??_0x48a65a[_0x418739(0x3ae)]??_0x48a65a[_0x418739(0x32d)]??'')[_0x418739(0x226)]();}return String(_0x566999);}function Sc(_0x5cc1a8,_0x8a3a00){const _0x3943d4=_0x6c183;let _0x5afc00=0x0;for(let _0x3eeea9 of _0x8a3a00)if(_0x3eeea9){if(_0x3eeea9===_0x5cc1a8){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0x12c);continue;}if(_0x3eeea9[_0x3943d4(0x1fb)](_0x5cc1a8)){_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xfa);continue;}_0x3eeea9[_0x3943d4(0x16a)](_0x5cc1a8)&&(_0x5afc00=Math[_0x3943d4(0x482)](_0x5afc00,0xc8));}return _0x5afc00;}function Cc(_0x2be9ee){const _0x1a4ee3=_0x6c183;return _0x2be9ee[_0x1a4ee3(0x226)]()[_0x1a4ee3(0x14e)](/\s+/g,'\x20')[_0x1a4ee3(0x432)]();}function wc(_0x42f0bf){const _0x7a2ec8=_0x6c183;return Array[_0x7a2ec8(0x1d5)](new Set(_0x42f0bf));}function Tc(_0x1b06d2){const _0x52fa43=_0x6c183;let _0x1512a9=[];for(let {rowIndex:_0x131d68,fieldIndex:_0x359fbc,..._0x2e80c8}of _0x1b06d2)_0x1512a9[_0x52fa43(0x174)](_0x2e80c8);return _0x1512a9;}function Ec(_0xf5c431){const _0x22c9ce=_0x6c183;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0xf5c431[_0x22c9ce(0x393)],'t':_0xf5c431[_0x22c9ce(0x210)],'p':_0xf5c431[_0x22c9ce(0x2e6)]['map'](_0x180650=>[_0x180650[_0x22c9ce(0x4b3)],_0x180650[_0x22c9ce(0x295)],Ac(_0x180650[_0x22c9ce(0x350)])]),..._0xf5c431[_0x22c9ce(0x172)]===void 0x0?{}:{'g':_0xf5c431[_0x22c9ce(0x172)]}};}function Dc(_0xb3e175){const _0x33f9e9=_0x6c183;if(Lc(_0xb3e175,_0x33f9e9(0x472)),!Oc(_0xb3e175)){if(!Ic(_0xb3e175))throw Error(_0x33f9e9(0x2c9));return _0xb3e175;}return{'unitId':_0xb3e175['u'],'tableId':_0xb3e175['t'],'patches':_0xb3e175['p']['map'](([_0x32e72a,_0x4976e2,_0x37df08])=>({'row':_0x32e72a,'col':_0x4976e2,'value':jc(_0x37df08)})),..._0xb3e175['g']===void 0x0?{}:{'trigger':_0xb3e175['g']}};}function Oc(_0x45fa33){const _0x2eb33f=_0x6c183;return!Rc(_0x45fa33)||_0x45fa33['compress']!==!0x0||_0x45fa33[_0x2eb33f(0x275)]!==_0x2eb33f(0x472)?!0x1:typeof _0x45fa33['u']==_0x2eb33f(0x425)&&typeof _0x45fa33['t']==_0x2eb33f(0x425)&&(_0x45fa33['g']===void 0x0||typeof _0x45fa33['g']==_0x2eb33f(0x425))&&Array[_0x2eb33f(0x431)](_0x45fa33['p'])&&_0x45fa33['p'][_0x2eb33f(0x387)](_0x1cfa9e=>Array[_0x2eb33f(0x431)](_0x1cfa9e)&&_0x1cfa9e['length']===0x3&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x0])&&Number[_0x2eb33f(0x406)](_0x1cfa9e[0x1]));}function kc(_0x39d630){const _0x50d06b=_0x6c183;return!Rc(_0x39d630)||_0x39d630[_0x50d06b(0x13e)]!==!0x0||_0x39d630['kind']!=='base-snapshot-v1'||!Rc(_0x39d630['tables'])?!0x1:Object['values'](_0x39d630[_0x50d06b(0x298)])[_0x50d06b(0x387)](_0x24143c=>Rc(_0x24143c)&&(_0x24143c['cd']===void 0x0||Array[_0x50d06b(0x431)](_0x24143c['cd'])&&_0x24143c['cd']['every'](_0x13a4d2=>Array['isArray'](_0x13a4d2)&&_0x13a4d2['length']===0x3&&Number[_0x50d06b(0x406)](_0x13a4d2[0x0])&&Number[_0x50d06b(0x406)](_0x13a4d2[0x1])&&Fc(_0x13a4d2[0x2]))));}function Ac(_0x4ca9ab){return Pc(_0x4ca9ab)?Mc(_0x4ca9ab):_0x4ca9ab;}function jc(_0x27524d){return Fc(_0x27524d)?Nc(_0x27524d):_0x27524d;}function Mc(_0x11ba71){return{'c':0x1,..._0x11ba71['v']===void 0x0?{}:{'v':_0x11ba71['v']},..._0x11ba71['t']!==void 0x0&&_0x11ba71['t']!==null?{'t':_0x11ba71['t']}:_0x11ba71['t']===null?{'t':null}:{},..._0x11ba71['f']!==void 0x0&&_0x11ba71['f']!==null?{'f':_0x11ba71['f']}:_0x11ba71['f']===null?{'f':null}:{},..._0x11ba71['si']!==void 0x0&&_0x11ba71['si']!==null?{'si':_0x11ba71['si']}:_0x11ba71['si']===null?{'si':null}:{},..._0x11ba71['p']!==void 0x0&&_0x11ba71['p']!==null?{'p':_0x11ba71['p']}:_0x11ba71['p']===null?{'p':null}:{}};}function Nc(_0x8e94f5){return{..._0x8e94f5['v']===void 0x0?{}:{'v':_0x8e94f5['v']},..._0x8e94f5['t']===void 0x0?{}:{'t':_0x8e94f5['t']},..._0x8e94f5['f']===void 0x0?{}:{'f':_0x8e94f5['f']},..._0x8e94f5['si']===void 0x0?{}:{'si':_0x8e94f5['si']},..._0x8e94f5['p']===void 0x0?{}:{'p':_0x8e94f5['p']}};}function Pc(_0x575d0){const _0x51cd57=_0x6c183;return!!_0x575d0&&typeof _0x575d0==_0x51cd57(0x3d7)&&!Array[_0x51cd57(0x431)](_0x575d0)&&(Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'v')||Object[_0x51cd57(0x246)]['hasOwnProperty']['call'](_0x575d0,'t')||Object[_0x51cd57(0x246)][_0x51cd57(0x48a)][_0x51cd57(0x43b)](_0x575d0,'p')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'f')||Object[_0x51cd57(0x246)]['hasOwnProperty'][_0x51cd57(0x43b)](_0x575d0,'si'));}function Fc(_0x3bbf1f){return Rc(_0x3bbf1f)&&_0x3bbf1f['c']===0x1;}function Ic(_0x4f851f){const _0x2e6aae=_0x6c183;return Rc(_0x4f851f)&&typeof _0x4f851f['unitId']==_0x2e6aae(0x425)&&typeof _0x4f851f['tableId']=='string'&&(_0x4f851f[_0x2e6aae(0x172)]===void 0x0||typeof _0x4f851f[_0x2e6aae(0x172)]==_0x2e6aae(0x425))&&Array['isArray'](_0x4f851f[_0x2e6aae(0x2e6)])&&_0x4f851f[_0x2e6aae(0x2e6)][_0x2e6aae(0x387)](_0x15843c=>Rc(_0x15843c)&&Number[_0x2e6aae(0x406)](_0x15843c[_0x2e6aae(0x4b3)])&&Number[_0x2e6aae(0x406)](_0x15843c['col'])&&_0x2e6aae(0x350)in _0x15843c);}function Lc(_0x5ef01c,_0x565746){const _0x243904=_0x6c183;if(Rc(_0x5ef01c)&&_0x5ef01c['compress']===!0x0){if(_0x5ef01c['kind']!==_0x565746)throw Error(_0x243904(0x2a8)+String(_0x5ef01c['kind'])+'\x22.');if(!(_0x565746==='base-range-values-v1'?Oc(_0x5ef01c):kc(_0x5ef01c)))throw Error(_0x243904(0x1d7)+_0x565746+'\x22.');}}function Rc(_0x3bf43e){const _0x3a1871=_0x6c183;return!!_0x3bf43e&&typeof _0x3bf43e==_0x3a1871(0x3d7)&&!Array[_0x3a1871(0x431)](_0x3bf43e);}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,_0x16f020 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 _0x327967=_0x11ae;(function(_0xec87a,_0x412d4c){const _0x4ee3c6=_0x11ae,_0x13a870=_0xec87a();while(!![]){try{const _0x619d8f=-parseInt(_0x4ee3c6(0x3a2))/0x1*(-parseInt(_0x4ee3c6(0x427))/0x2)+-parseInt(_0x4ee3c6(0x2e9))/0x3+-parseInt(_0x4ee3c6(0x216))/0x4*(parseInt(_0x4ee3c6(0x34f))/0x5)+parseInt(_0x4ee3c6(0x3e6))/0x6+-parseInt(_0x4ee3c6(0x1ac))/0x7*(parseInt(_0x4ee3c6(0x3f7))/0x8)+parseInt(_0x4ee3c6(0x131))/0x9+-parseInt(_0x4ee3c6(0x121))/0xa;if(_0x619d8f===_0x412d4c)break;else _0x13a870['push'](_0x13a870['shift']());}catch(_0x18a297){_0x13a870['push'](_0x13a870['shift']());}}}(_0x4f42,0x75a03));import{BASE_RECORD_ID_FIELD_ID as _0x40fc9d,BaseConditionalColorOperator as _0x4710de,BaseConditionalColorTarget as _0x49363a,BaseConditionalDateMode as _0x1467aa,BaseDataModel as _0x271087,BaseFieldType as _0x1013ad,BaseFilterConjunction as _0x2fab97,BaseHierarchyInvalidReason as _0x240c41,BaseRecordLinkRole as _0x3e0df7,BaseSortDirection as _0x391c0e,BaseViewType as _0x3dd96c,CellValueType as _0x556bff,ColorKit as _0x377ff1,CommandType as _0x281ad9,CustomCommandExecutionError as _0x268330,DateSystem as _0x2dcec1,DependentOn as _0x32cfaf,Disposable as _0x4de356,ErrorService as _0xeb132,ICommandService as _0x2823d6,IConfigService as _0x3c388e,IPermissionService as _0x5cc725,IResourceManagerService as _0x2a6b91,IUndoRedoService as _0x15f92a,IUniverInstanceService as _0x3a38b9,Inject as _0x1345e2,Injector as _0x4a869a,JSON1 as _0x43163e,JSONX as _0x12a725,ObjectMatrix as _0x53a4cf,ObjectPermissionRuleModel as _0x58664a,ObjectPermissionService as _0x77c4ee,Optional as _0x388498,PermissionStatus as _0x1ebfa9,Plugin as _0x2f79be,Tools as _0x2ea00f,UniverInstanceType as _0x49a6be,allocateBaseFormulaTableName as _0x54f542,assertBaseTableRecordIdentity as _0x15f38a,createBaseFormulaTableNameMap as _0xbad9f1,createBaseRecordIdField as _0x529243,createIdentifier as _0x1ada6c,dateKit as _0x28e66b,excelDateTimeSerial as _0x54e6bc,excelSerialToDateTime as _0x568db3,generateRandomId as _0x1dd020,getBaseFormulaTableName as _0x15970e,isBaseRecordIdFieldName as _0x4fd5e0,isValidBaseRecordId as _0x522a38,merge as _0xcc3099,nameCharacterCheck as _0x4a2760,numfmt as _0x50b573,regexp as _0x23a4c4,sequenceExecute as _0x4a8c31,toDisposable as _0x569b00,touchDependencies as _0x253fbd}from'@univerjs/core';import{FormulaCalculationTriggerService as _0x18360a,IActiveDirtyManagerService as _0x1624f9,RemoveSuperTableMutation as _0x3c0f14,SetFormulaCalculationResultMutation as _0x30184a,SetSuperTableMutation as _0x574d24,SetTriggerFormulaCalculationStartMutation as _0xbd4092,UniverProFormulaEnginePlugin as _0x16307b,refactorFormulaUnitQualifier as _0x21a61d}from'@univerjs-pro/engine-formula';import{UnitAction as _0x3709ae,UnitObject as _0x230625}from'@univerjs/protocol';import{UniverLicensePlugin as _0x343622}from'@univerjs-pro/license';import{DataSyncPrimaryController as _0x1829c1}from'@univerjs/rpc';import{FormulaCalculationSessionService as _0x31dae7,FormulaResultApplicationType as _0x4cbf5b}from'@univerjs/engine-formula';function N(_0x32ae48){const _0x798058=_0x11ae;let _0x1c20a7=_0x32ae48[_0x798058(0x174)]['targetTableId'],_0xd25b67=_0x32ae48['config']['multiple'],_0x14ce76=_0x32ae48['config']['displayFieldId'],_0x32ae52=_0x32ae48['config']['pickerFieldIds'],_0x8ec418=_0x32ae48[_0x798058(0x174)][_0x798058(0x382)];return typeof _0x1c20a7!=_0x798058(0x2a0)||!_0x1c20a7||typeof _0xd25b67!='boolean'||_0x14ce76!==void 0x0&&(typeof _0x14ce76!=_0x798058(0x2a0)||!_0x14ce76)||_0x8ec418!==void 0x0&&_0x8ec418!==_0x3e0df7[_0x798058(0x4a4)]||_0x32ae52!==void 0x0&&(!Array[_0x798058(0x3fb)](_0x32ae52)||_0x32ae52[_0x798058(0x35d)](_0x3ecb7e=>typeof _0x3ecb7e!='string'||!_0x3ecb7e)||new Set(_0x32ae52)[_0x798058(0x1d0)]!==_0x32ae52['length'])?null:{'targetTableId':_0x1c20a7,'multiple':_0xd25b67,..._0x14ce76?{'displayFieldId':_0x14ce76}:{},..._0x32ae52?{'pickerFieldIds':[..._0x32ae52]}:{},..._0x8ec418?{'relationRole':_0x8ec418}:{}};}function Le(_0x275690){const _0x2fe2a1=_0x11ae;return typeof _0x275690!=_0x2fe2a1(0x2a0)||_0x275690===''?[]:_0x275690[_0x2fe2a1(0x2e5)](',');}function Re(_0x3f5687){const _0x4ccc06=_0x11ae;return Array[_0x4ccc06(0x1d1)](new Set(_0x3f5687))[_0x4ccc06(0x3a1)](',');}function ze(_0x441f1b,_0x5a164e){const _0x425dda=_0x11ae;if(typeof _0x441f1b!=_0x425dda(0x2a0))return{'valid':!0x1,'reason':_0x425dda(0x1f2)};if(_0x441f1b==='')return{'valid':!0x0};let _0x2ca89f=_0x441f1b[_0x425dda(0x2e5)](',');return!_0x5a164e&&_0x2ca89f['length']>0x1?{'valid':!0x1,'reason':_0x425dda(0x104)}:_0x2ca89f[_0x425dda(0x35d)](_0x100d95=>!_0x522a38(_0x100d95))||new Set(_0x2ca89f)[_0x425dda(0x1d0)]!==_0x2ca89f[_0x425dda(0x1bf)]||Re(_0x2ca89f)!==_0x441f1b?{'valid':!0x1,'reason':_0x425dda(0x164)}:{'valid':!0x0};}function Be(_0xb28297,_0x36b1da){const _0x18d13c=_0x11ae;if(_0x36b1da[_0x18d13c(0x346)]!==_0x1013ad[_0x18d13c(0x12f)])return{'valid':!0x0};let _0x16e702=N(_0x36b1da),_0x3c864d=_0x16e702?_0xb28297[_0x18d13c(0x486)][_0x16e702['targetTableId']]:void 0x0;if(!_0x16e702||!_0x3c864d)return{'valid':!0x1,'reason':_0x18d13c(0x1a9)};let _0x4e79e7=[..._0x16e702[_0x18d13c(0x2ca)]?[_0x16e702[_0x18d13c(0x2ca)]]:[],..._0x16e702[_0x18d13c(0x10b)]??[]][_0x18d13c(0x451)](_0x3c38e1=>{const _0xd1e89b=_0x18d13c;let _0x1ff143=_0x3c864d[_0xd1e89b(0x305)][_0x3c38e1];return!_0x1ff143||_0x1ff143[_0xd1e89b(0x272)]===!0x0||_0x1ff143[_0xd1e89b(0x346)]===_0x1013ad[_0xd1e89b(0x212)];});return _0x4e79e7?{'valid':!0x1,'reason':_0x18d13c(0x36a)+_0x4e79e7+_0x18d13c(0x4a8)}:{'valid':!0x0};}function Ve(_0x289972,_0x3bfc2c,_0x42afbb,_0x341ac4={}){const _0x5042b8=_0x11ae;let _0x6d7c54=N(_0x3bfc2c);if(_0x3bfc2c[_0x5042b8(0x346)]!==_0x1013ad[_0x5042b8(0x12f)]||!_0x6d7c54)return{'valid':!0x1,'reason':_0x5042b8(0x299)};let _0x4d3de3=ze(_0x42afbb,_0x6d7c54[_0x5042b8(0x3eb)]);if(!_0x4d3de3[_0x5042b8(0x48b)]||_0x341ac4[_0x5042b8(0x366)])return _0x4d3de3;let _0x499b61=_0x289972[_0x5042b8(0x486)][_0x6d7c54[_0x5042b8(0x16b)]];if(!_0x499b61)return{'valid':!0x1,'reason':_0x5042b8(0x1a9)};let _0xaaa988=Le(_0x42afbb)['find'](_0x2c553f=>!_0x499b61[_0x5042b8(0x1d7)][_0x2c553f]);return _0xaaa988?{'valid':!0x1,'reason':_0x5042b8(0x3db)+_0xaaa988+_0x5042b8(0x223)}:{'valid':!0x0};}function He(_0x298dda,_0x51335b){const _0x3a9c3c=_0x11ae;return Object['values'](_0x298dda['tables'])['flatMap'](_0x3d666b=>Object[_0x3a9c3c(0x259)](_0x3d666b['fields'])[_0x3a9c3c(0xeb)](_0x1479a0=>{const _0x5289f5=_0x3a9c3c;let _0x23e876=_0x1479a0[_0x5289f5(0x346)]===_0x1013ad['RecordLink']?N(_0x1479a0):null;return(_0x23e876==null?void 0x0:_0x23e876[_0x5289f5(0x16b)])===_0x51335b?[{'tableId':_0x3d666b['id'],'fieldId':_0x1479a0['id']}]:[];}));}const Ue=0x5,We=_0x327967(0x355);let Ge=function(_0x142e50){const _0x5a9b01=_0x327967;return _0x142e50[_0x5a9b01(0x11b)]=_0x5a9b01(0x421),_0x142e50[_0x5a9b01(0x256)]=_0x5a9b01(0x3bd),_0x142e50['SelfParent']=_0x5a9b01(0x43b),_0x142e50[_0x5a9b01(0x2d8)]=_0x5a9b01(0x403),_0x142e50['MaxDepth']=_0x5a9b01(0x231),_0x142e50[_0x5a9b01(0x287)]=_0x5a9b01(0x3ea),_0x142e50;}({});var P=class extends Error{constructor(_0x5f4b72,_0xddd344=_0x327967(0x2cf)+_0x5f4b72){const _0x250c1d=_0x327967;super(_0xddd344),this['code']=_0x5f4b72,this[_0x250c1d(0x158)]=_0x250c1d(0x247);}};let Ke=function(_0x1a17a7){const _0x4a8859=_0x327967;return _0x1a17a7['UI']='ui',_0x1a17a7[_0x4a8859(0x15b)]=_0x4a8859(0x111),_0x1a17a7[_0x4a8859(0x3c4)]='remote',_0x1a17a7[_0x4a8859(0x325)]='undo',_0x1a17a7[_0x4a8859(0x36e)]=_0x4a8859(0x274),_0x1a17a7[_0x4a8859(0x4a1)]=_0x4a8859(0x35a),_0x1a17a7;}({});function F(_0x25beba,_0x2f6c7f){const _0x2ecc5b=_0x327967;if(!_0x2f6c7f)return!0x1;let _0x578bf3=_0x25beba[_0x2ecc5b(0x305)][_0x2f6c7f];if(!_0x578bf3||_0x578bf3[_0x2ecc5b(0x346)]!==_0x1013ad[_0x2ecc5b(0x12f)])return!0x1;let _0x57f058=N(_0x578bf3);return _0x57f058?_0x57f058['targetTableId']===_0x25beba['id']&&_0x57f058['multiple']===!0x1:!0x1;}function qe(_0x2c1b56){const _0x32759d=_0x327967;return[..._0x2c1b56[_0x32759d(0x1f8)],...Object[_0x32759d(0x27a)](_0x2c1b56[_0x32759d(0x305)])[_0x32759d(0x1be)](_0x7efdb9=>!_0x2c1b56[_0x32759d(0x1f8)]['includes'](_0x7efdb9))['sort']()]['find'](_0x5d9350=>{const _0x2dfef3=_0x32759d;var _0x484d6f;return F(_0x2c1b56,_0x5d9350)?((_0x484d6f=N(_0x2c1b56[_0x2dfef3(0x305)][_0x5d9350]))==null?void 0x0:_0x484d6f[_0x2dfef3(0x382)])===_0x3e0df7['Parent']:!0x1;})??null;}function Je(_0x404bdf){const _0x2556b0=_0x327967;let _0x2ee720=qe(_0x404bdf);if(_0x2ee720)return _0x2ee720;let _0x3294c4=We,_0x45e5b6=0x2;for(;_0x404bdf[_0x2556b0(0x305)][_0x3294c4];)_0x3294c4=We+'_'+_0x45e5b6++;return _0x3294c4;}function Ye(_0x2d8ed6,_0x358a4c=Je(_0x2d8ed6),_0x4367b0=_0x327967(0x41f)){const _0x9064ee=_0x327967;return{'id':_0x358a4c,'name':_0x4367b0,'type':_0x1013ad[_0x9064ee(0x12f)],'config':{'targetTableId':_0x2d8ed6['id'],'multiple':!0x1,'displayFieldId':_0x2d8ed6[_0x9064ee(0x44a)],'pickerFieldIds':[_0x2d8ed6[_0x9064ee(0x44a)]],'relationRole':_0x3e0df7[_0x9064ee(0x4a4)]}};}function Xe(_0x122eda){let _0x210b7b=qe(_0x122eda);return _0x210b7b?[_0x210b7b]:[];}function Ze(_0x3d839d,_0x21904a){const _0x11cb5d=_0x327967;let _0x8bb56e=[...Xe(_0x3d839d)]['filter'](_0x7213f=>_0x21904a['some'](_0x36d13c=>Object[_0x11cb5d(0x331)][_0x11cb5d(0x150)][_0x11cb5d(0x171)](_0x36d13c['values'],_0x7213f)));if(!_0x8bb56e[_0x11cb5d(0x1bf)])return[];let _0x19a30b={..._0x3d839d[_0x11cb5d(0x1d7)]};_0x21904a[_0x11cb5d(0x29b)](_0x1d13d8=>{const _0x30c440=_0x11cb5d;let _0x58d0dd=_0x19a30b[_0x1d13d8[_0x30c440(0x345)]];_0x58d0dd&&(_0x19a30b[_0x1d13d8[_0x30c440(0x345)]]={..._0x58d0dd,'values':{..._0x58d0dd[_0x30c440(0x259)],..._0x1d13d8['values']}});});let _0x3c76f0={..._0x3d839d,'records':_0x19a30b},_0x3284e5=[];return _0x8bb56e[_0x11cb5d(0x29b)](_0x3d3f1b=>{const _0x57b813=_0x11cb5d;let _0x47dee4=tt(_0x3d839d,_0x3d3f1b),_0x38fefd=tt(_0x3c76f0,_0x3d3f1b);for(let [_0x1e7606,_0x15f533]of _0x38fefd[_0x57b813(0x206)]){let _0x4e0930=_0x21904a[_0x57b813(0x35d)](_0x548150=>_0x548150[_0x57b813(0x345)]===_0x1e7606&&Object[_0x57b813(0x331)][_0x57b813(0x150)][_0x57b813(0x171)](_0x548150[_0x57b813(0x259)],_0x3d3f1b));if(_0x47dee4[_0x57b813(0x206)][_0x57b813(0x318)](_0x1e7606)!==_0x15f533||_0x4e0930)throw new P($e(_0x15f533));}_0x21904a[_0x57b813(0x29b)](_0x468cee=>{const _0x2b0590=_0x57b813;if(!Object[_0x2b0590(0x331)][_0x2b0590(0x150)][_0x2b0590(0x171)](_0x468cee[_0x2b0590(0x259)],_0x3d3f1b))return;let _0x27c5c4=_0x47dee4[_0x2b0590(0x47c)]['get'](_0x468cee[_0x2b0590(0x345)])??null,_0x28ab78=_0x38fefd[_0x2b0590(0x47c)][_0x2b0590(0x318)](_0x468cee['recordId'])??null;_0x27c5c4!==_0x28ab78&&_0x3284e5['push']({'tableId':_0x3d839d['id'],'fieldId':_0x3d3f1b,'recordId':_0x468cee[_0x2b0590(0x345)],'oldParentRecordId':_0x27c5c4,'parentRecordId':_0x28ab78});});}),_0x3284e5;}function Qe(_0x5e1f46,_0xfff739){const _0x4f896e=_0x327967;let _0x10a2c6=_0xfff739[_0x4f896e(0x412)](_0x12e841=>_0x12e841['id']);if(new Set(_0x10a2c6)[_0x4f896e(0x1d0)]!==_0x10a2c6[_0x4f896e(0x1bf)]||_0x10a2c6[_0x4f896e(0x35d)](_0x4076af=>_0x5e1f46[_0x4f896e(0x1d7)][_0x4076af]))return[];let _0xf1122e=Xe(_0x5e1f46),_0x4d0061=_0xf1122e[_0x4f896e(0x1bf)]?null:Je(_0x5e1f46),_0x26d4dc=[..._0xf1122e,..._0x4d0061&&_0xfff739['some'](_0x347e6e=>Object[_0x4f896e(0x331)][_0x4f896e(0x150)]['call'](_0x347e6e[_0x4f896e(0x259)],_0x4d0061))?[_0x4d0061]:[]][_0x4f896e(0x1be)](_0x3284ba=>_0xfff739[_0x4f896e(0x35d)](_0x445cd5=>Object[_0x4f896e(0x331)][_0x4f896e(0x150)]['call'](_0x445cd5[_0x4f896e(0x259)],_0x3284ba)));if(!_0x26d4dc['length'])return[];let _0x7992db={..._0x5e1f46,'records':{..._0x5e1f46['records'],...Object[_0x4f896e(0x49f)](_0xfff739['map'](_0x289b7f=>[_0x289b7f['id'],_0x289b7f]))},'recordOrder':[..._0x5e1f46[_0x4f896e(0x1e2)]??[],..._0xfff739[_0x4f896e(0x412)](_0x338490=>_0x338490['id'])]},_0xf64709=[];return _0x26d4dc[_0x4f896e(0x29b)](_0x9257c6=>{const _0x419906=_0x4f896e;let _0x112683=tt(_0x7992db,_0x9257c6);_0xfff739[_0x419906(0x29b)](_0x52d96c=>{const _0x19fa2a=_0x419906;let _0x131500=_0x112683[_0x19fa2a(0x206)][_0x19fa2a(0x318)](_0x52d96c['id']);if(_0x131500)throw new P($e(_0x131500));let _0x2c7209=_0x112683[_0x19fa2a(0x47c)][_0x19fa2a(0x318)](_0x52d96c['id'])??null;_0x2c7209&&_0xf64709[_0x19fa2a(0x161)]({'tableId':_0x5e1f46['id'],'fieldId':_0x9257c6,'recordId':_0x52d96c['id'],'oldParentRecordId':null,'parentRecordId':_0x2c7209});});}),_0xf64709;}function $e(_0x3cf0a8){const _0x17e11e=_0x327967;switch(_0x3cf0a8){case _0x240c41[_0x17e11e(0x3a9)]:return _0x17e11e(0x3bd);case _0x240c41[_0x17e11e(0x38b)]:return _0x17e11e(0x43b);case _0x240c41[_0x17e11e(0x2d8)]:return'cycle';case _0x240c41['MaxDepth']:return _0x17e11e(0x231);}}function et(_0x512974,_0x1326a3){const _0x3dec9f=_0x327967;let _0x366a39=new Set(_0x1326a3),_0x159b4c=Xe(_0x512974);return Object[_0x3dec9f(0x259)](_0x512974[_0x3dec9f(0x1d7)])[_0x3dec9f(0xeb)](_0x3d8777=>_0x366a39[_0x3dec9f(0x103)](_0x3d8777['id'])?[]:Array[_0x3dec9f(0x1d1)](_0x159b4c)['flatMap'](_0x3715f1=>{const _0xb81a41=_0x3dec9f;let _0x9b48c9=Le(_0x3d8777['values'][_0x3715f1])[0x0]??null;return _0x9b48c9&&_0x366a39[_0xb81a41(0x103)](_0x9b48c9)?[{'tableId':_0x512974['id'],'fieldId':_0x3715f1,'recordId':_0x3d8777['id'],'oldParentRecordId':_0x9b48c9,'parentRecordId':null}]:[];}));}function tt(_0x260b4a,_0x222cad,_0x51c3dc=_0x260b4a[_0x327967(0x1e2)]??Object['keys'](_0x260b4a[_0x327967(0x1d7)])){const _0x2aab67=_0x327967;if((_0x260b4a[_0x2aab67(0x305)][_0x222cad]||_0x222cad!==Je(_0x260b4a))&&!F(_0x260b4a,_0x222cad))throw Error(_0x2aab67(0x4a9)+_0x222cad+_0x2aab67(0x1d6));let _0x5dc2bb=at(_0x260b4a,_0x51c3dc),_0x17f2a7=new Map(),_0x515da3=new Map();for(let _0x30ea73 of _0x5dc2bb){var _0x384b10;let _0x57572e=Le((_0x384b10=_0x260b4a[_0x2aab67(0x1d7)][_0x30ea73])==null?void 0x0:_0x384b10[_0x2aab67(0x259)][_0x222cad])[0x0]??null;_0x57572e?_0x57572e===_0x30ea73?(_0x17f2a7[_0x2aab67(0x3fe)](_0x30ea73,null),_0x515da3[_0x2aab67(0x3fe)](_0x30ea73,_0x240c41[_0x2aab67(0x38b)])):_0x260b4a[_0x2aab67(0x1d7)][_0x57572e]?_0x17f2a7[_0x2aab67(0x3fe)](_0x30ea73,_0x57572e):(_0x17f2a7['set'](_0x30ea73,null),_0x515da3['set'](_0x30ea73,_0x240c41[_0x2aab67(0x3a9)])):_0x17f2a7[_0x2aab67(0x3fe)](_0x30ea73,null);}ot(_0x17f2a7,_0x515da3,_0x5dc2bb),st(_0x17f2a7,_0x515da3,_0x5dc2bb);let _0x10eaa9=new Map(_0x5dc2bb['map']((_0x5d59f9,_0x4d8038)=>[_0x5d59f9,_0x4d8038])),_0x47801b=new Map();for(let _0x1b380b of _0x5dc2bb){let _0x506496=_0x17f2a7[_0x2aab67(0x318)](_0x1b380b)??null,_0x568c9e=_0x47801b[_0x2aab67(0x318)](_0x506496)??[];_0x568c9e['push'](_0x1b380b),_0x47801b[_0x2aab67(0x3fe)](_0x506496,_0x568c9e);}_0x47801b['forEach'](_0x161d55=>_0x161d55[_0x2aab67(0x460)]((_0xcc055b,_0x39add1)=>(_0x10eaa9[_0x2aab67(0x318)](_0xcc055b)??0x0)-(_0x10eaa9[_0x2aab67(0x318)](_0x39add1)??0x0)));let _0x510719=_0x47801b[_0x2aab67(0x318)](null)??[],_0x5a311d=new Map(),_0x4d42fb=new Map(),_0x1b7a11=[],_0x52684a=(_0x30bf12,_0xa8d9bb)=>{const _0x246344=_0x2aab67;_0x5a311d[_0x246344(0x3fe)](_0x30bf12,_0xa8d9bb),_0x1b7a11['push'](_0x30bf12);let _0x420d1f=0x0;for(let _0x2d9f1d of _0x47801b['get'](_0x30bf12)??[])_0x420d1f=Math['max'](_0x420d1f,0x1+_0x52684a(_0x2d9f1d,_0xa8d9bb+0x1));return _0x4d42fb[_0x246344(0x3fe)](_0x30bf12,_0x420d1f),_0x420d1f;};return _0x510719[_0x2aab67(0x29b)](_0x1bcd6a=>_0x52684a(_0x1bcd6a,0x0)),{'fieldId':_0x222cad,'parentByRecordId':_0x17f2a7,'childrenByParentId':_0x47801b,'depthByRecordId':_0x5a311d,'subtreeHeightByRecordId':_0x4d42fb,'invalidReasonByRecordId':_0x515da3,'rootRecordIds':_0x510719,'orderedRecordIds':_0x1b7a11};}function nt(_0x5228fd,_0x39b98c,_0xa8187f=new Set(_0x39b98c['map'](_0x3ab8d4=>_0x3ab8d4['recordId']))){const _0x3e428c=_0x327967;let _0x32a248=new Set(_0xa8187f);for(let _0x7b4cc7 of _0xa8187f){let _0x1cbfe7=_0x5228fd['parentByRecordId'][_0x3e428c(0x318)](_0x7b4cc7)??null;for(;_0x1cbfe7;)_0x32a248[_0x3e428c(0x12e)](_0x1cbfe7),_0x1cbfe7=_0x5228fd['parentByRecordId'][_0x3e428c(0x318)](_0x1cbfe7)??null;}let _0x282fd7=new Map(_0x39b98c[_0x3e428c(0x412)](_0x2b42e7=>[_0x2b42e7[_0x3e428c(0x345)],_0x2b42e7])),_0x59e2d9=_0x5228fd[_0x3e428c(0x437)][_0x3e428c(0x1be)](_0x3376da=>_0x32a248[_0x3e428c(0x103)](_0x3376da)),_0x3a7e21=_0x59e2d9['flatMap'](_0x52ae6f=>{const _0x1e7b5d=_0x3e428c;let _0x240999=_0x282fd7[_0x1e7b5d(0x318)](_0x52ae6f);return _0x240999?[_0x240999]:[];}),_0x452302={};for(let _0x28b9c5=0x0;_0x28b9c5<_0x59e2d9[_0x3e428c(0x1bf)];_0x28b9c5++){let _0x587d30=_0x59e2d9[_0x28b9c5];_0x452302[_0x587d30]={'recordId':_0x587d30,'parentRecordId':_0x5228fd[_0x3e428c(0x47c)][_0x3e428c(0x318)](_0x587d30)??null,'depth':_0x5228fd[_0x3e428c(0x308)][_0x3e428c(0x318)](_0x587d30)??0x0,'directChildCount':(_0x5228fd[_0x3e428c(0x471)][_0x3e428c(0x318)](_0x587d30)??[])['length'],'subtreeHeight':_0x5228fd[_0x3e428c(0x3a6)][_0x3e428c(0x318)](_0x587d30)??0x0,'subtreeEndIndex':_0x28b9c5,'invalidReason':_0x5228fd['invalidReasonByRecordId'][_0x3e428c(0x318)](_0x587d30)};}let _0xc4e2c1=[];for(let _0x548f75=0x0;_0x548f75<_0x59e2d9['length'];_0x548f75++){let _0x2c7cc6=_0x59e2d9[_0x548f75],_0xcbff44=_0x452302[_0x2c7cc6]['depth'];for(;_0xc4e2c1[_0x3e428c(0x1bf)]&&_0xc4e2c1[_0xc4e2c1[_0x3e428c(0x1bf)]-0x1][_0x3e428c(0x442)]>=_0xcbff44;){let _0x4eb6c5=_0xc4e2c1['pop']();_0x452302[_0x4eb6c5['recordId']]['subtreeEndIndex']=_0x548f75-0x1;}_0xc4e2c1[_0x3e428c(0x161)]({'recordId':_0x2c7cc6,'depth':_0xcbff44});}return _0xc4e2c1['forEach'](({recordId:_0x59765d})=>{_0x452302[_0x59765d]['subtreeEndIndex']=_0x59e2d9['length']-0x1;}),{'rows':_0x3a7e21,'hierarchy':{'fieldId':_0x5228fd[_0x3e428c(0x173)],'rootRecordIds':_0x5228fd[_0x3e428c(0x32f)][_0x3e428c(0x1be)](_0x471116=>_0x32a248[_0x3e428c(0x103)](_0x471116)),'orderedRecordIds':_0x59e2d9,'nodes':_0x452302}};}function rt(_0x47d198,_0x3e11f7){const _0x3a2ce8=_0x327967;if(!_0x47d198[_0x3a2ce8(0xec)]||!(_0x3e11f7!=null&&_0x3e11f7[_0x3a2ce8(0x1d0)]))return _0x47d198[_0x3a2ce8(0x26f)];let _0x1fd762=[],_0x197ecc=0x0;for(;_0x197ecc<_0x47d198[_0x3a2ce8(0x26f)][_0x3a2ce8(0x1bf)];){let _0x321b5a=_0x47d198[_0x3a2ce8(0x26f)][_0x197ecc];_0x1fd762[_0x3a2ce8(0x161)](_0x321b5a);let _0x16d493=_0x47d198[_0x3a2ce8(0xec)]['nodes'][_0x321b5a[_0x3a2ce8(0x345)]];_0x197ecc=_0x3e11f7[_0x3a2ce8(0x103)](_0x321b5a[_0x3a2ce8(0x345)])&&_0x16d493?_0x16d493[_0x3a2ce8(0x2cd)]+0x1:_0x197ecc+0x1;}return _0x1fd762;}function _0x11ae(_0x599db4,_0x3fecbf){_0x599db4=_0x599db4-0xdc;const _0x4f42a9=_0x4f42();let _0x11aea9=_0x4f42a9[_0x599db4];return _0x11aea9;}function it(_0x1912c4,_0x221a1c,_0x20cb3b){const _0x5108e0=_0x327967;if(!_0x20cb3b)return{'valid':!0x0};if(_0x221a1c===_0x20cb3b)return{'valid':!0x1,'reason':_0x240c41[_0x5108e0(0x38b)]};let _0x406ce0=_0x20cb3b;for(;_0x406ce0;){if(_0x406ce0===_0x221a1c)return{'valid':!0x1,'reason':_0x240c41[_0x5108e0(0x2d8)]};_0x406ce0=_0x1912c4[_0x5108e0(0x47c)][_0x5108e0(0x318)](_0x406ce0)??null;}return(_0x1912c4[_0x5108e0(0x308)]['get'](_0x20cb3b)??0x0)+0x1+(_0x1912c4[_0x5108e0(0x3a6)][_0x5108e0(0x318)](_0x221a1c)??0x0)>=0x5?{'valid':!0x1,'reason':_0x240c41['MaxDepth']}:{'valid':!0x0};}function at(_0x48e3df,_0x295753){const _0x5c89d2=_0x327967;let _0x1030cc=new Set(),_0x3c503e=[];for(let _0x43506e of _0x295753)_0x48e3df[_0x5c89d2(0x1d7)][_0x43506e]&&!_0x1030cc[_0x5c89d2(0x103)](_0x43506e)&&(_0x1030cc['add'](_0x43506e),_0x3c503e[_0x5c89d2(0x161)](_0x43506e));return Object[_0x5c89d2(0x27a)](_0x48e3df[_0x5c89d2(0x1d7)])['sort']()[_0x5c89d2(0x29b)](_0x127de5=>{const _0x44dd48=_0x5c89d2;_0x1030cc['has'](_0x127de5)||_0x3c503e[_0x44dd48(0x161)](_0x127de5);}),_0x3c503e;}function ot(_0x3de256,_0x238d58,_0x320114){const _0x3dfa11=_0x327967;let _0xe505ac=new Set();for(let _0x2e0a1a of _0x320114){if(_0xe505ac[_0x3dfa11(0x103)](_0x2e0a1a))continue;let _0x7f211c=[],_0x1ed3b8=new Map(),_0x5dc897=_0x2e0a1a;for(;_0x5dc897&&!_0xe505ac[_0x3dfa11(0x103)](_0x5dc897);){let _0x3394fe=_0x1ed3b8['get'](_0x5dc897);if(_0x3394fe!=null){let _0x1ad0cd=[..._0x7f211c['slice'](_0x3394fe)][_0x3dfa11(0x460)]()['pop']();_0x3de256[_0x3dfa11(0x3fe)](_0x1ad0cd,null),_0x238d58[_0x3dfa11(0x3fe)](_0x1ad0cd,_0x240c41[_0x3dfa11(0x2d8)]);break;}_0x1ed3b8[_0x3dfa11(0x3fe)](_0x5dc897,_0x7f211c[_0x3dfa11(0x1bf)]),_0x7f211c[_0x3dfa11(0x161)](_0x5dc897),_0x5dc897=_0x3de256[_0x3dfa11(0x318)](_0x5dc897)??null;}_0x7f211c[_0x3dfa11(0x29b)](_0x57a92e=>_0xe505ac['add'](_0x57a92e));}}function st(_0x3efc1e,_0x59291b,_0x5a9087){const _0x403c5c=_0x327967;let _0x4a6fac=new Map(),_0x44c2f3=_0x3e1583=>{const _0x14bc65=_0x11ae;let _0x5a9592=_0x4a6fac[_0x14bc65(0x318)](_0x3e1583);if(_0x5a9592!=null)return _0x5a9592;let _0x40488b=_0x3efc1e[_0x14bc65(0x318)](_0x3e1583)??null;if(!_0x40488b)return _0x4a6fac['set'](_0x3e1583,0x0),0x0;let _0x449560=_0x44c2f3(_0x40488b)+0x1;return _0x449560>=0x5?(_0x3efc1e[_0x14bc65(0x3fe)](_0x3e1583,null),_0x59291b[_0x14bc65(0x3fe)](_0x3e1583,_0x240c41['MaxDepth']),_0x4a6fac[_0x14bc65(0x3fe)](_0x3e1583,0x0),0x0):(_0x4a6fac[_0x14bc65(0x3fe)](_0x3e1583,_0x449560),_0x449560);};_0x5a9087[_0x403c5c(0x29b)](_0x44c2f3);}let ct=0x0;function lt(){const _0x578b28=_0x327967;if(globalThis[_0x578b28(0x22e)]===!0x0)return!0x0;try{let _0x5b6249=typeof location>'u'?'':location[_0x578b28(0x1f4)],_0x5255d8=new URLSearchParams(_0x5b6249);if(_0x5255d8[_0x578b28(0x318)]('basePerf')==='1'||_0x5255d8[_0x578b28(0x318)](_0x578b28(0x2c3))==='true'||_0x5255d8[_0x578b28(0x318)](_0x578b28(0x27c))==='1')return!0x0;}catch{}try{let _0x36493e=typeof localStorage>'u'?null:localStorage[_0x578b28(0x213)](_0x578b28(0x14d));return _0x36493e==='1'||_0x36493e===_0x578b28(0x1f3);}catch{return!0x1;}}function I(_0x571df2,_0x20a952,_0x458990){const _0x20a709=_0x327967;if(!lt())return _0x20a952();let _0x1b4122=dt(),_0x476427=_0x20a709(0x2af)+ct++;ft(_0x476427+_0x20a709(0x16e));try{return _0x20a952();}finally{let _0x391756=dt()-_0x1b4122;ft(_0x476427+_0x20a709(0x347)),pt(_0x571df2,_0x476427+_0x20a709(0x16e),_0x476427+':end'),ut(_0x571df2,_0x391756,_0x458990);}}function ut(_0x10bbd8,_0x4cca2b,_0x1a4304){const _0x30549f=_0x327967;if(!lt())return;let _0x1ea452=Math['round'](_0x4cca2b*0x64)/0x64,_0x3c1a5b=_0x1a4304&&Object[_0x30549f(0x27a)](_0x1a4304)[_0x30549f(0x1bf)]?'\x20'+JSON['stringify'](_0x1a4304):'';console[_0x30549f(0x294)](_0x30549f(0x14c)+_0x10bbd8+':\x20'+_0x1ea452+'ms'+_0x3c1a5b);}function dt(){const _0x490ce3=_0x327967;return typeof performance<'u'&&typeof performance['now']==_0x490ce3(0x2ef)?performance[_0x490ce3(0xfa)]():Date[_0x490ce3(0xfa)]();}function ft(_0xee105e){const _0x5395fc=_0x327967;try{if(typeof performance<'u'){var _0x3d3f4b,_0x4f0d3f;(_0x3d3f4b=(_0x4f0d3f=performance)[_0x5395fc(0x254)])==null||_0x3d3f4b['call'](_0x4f0d3f,_0xee105e);}}catch{}}function pt(_0xc0129d,_0x526d6b,_0x490501){const _0x1409c8=_0x327967;try{if(typeof performance<'u'){var _0x470932,_0x5565a2;(_0x470932=(_0x5565a2=performance)[_0x1409c8(0x3bb)])==null||_0x470932[_0x1409c8(0x171)](_0x5565a2,_0x1409c8(0x14c)+_0xc0129d,_0x526d6b,_0x490501);}}catch{}}function L(_0x569474){const _0x7cca15=_0x327967;var _0x2f44e1;return lt()?I(_0x7cca15(0xfe),()=>mt(_0x569474),{'tableId':_0x569474['id'],'records':Object[_0x7cca15(0x27a)](_0x569474[_0x7cca15(0x1d7)]??{})[_0x7cca15(0x1bf)],'fields':_0x569474[_0x7cca15(0x1f8)][_0x7cca15(0x1bf)],'hasRecordOrder':!!((_0x2f44e1=_0x569474[_0x7cca15(0x1e2)])!=null&&_0x2f44e1[_0x7cca15(0x1bf)])}):mt(_0x569474);}function mt(_0x23b759){const _0x16108a=_0x327967;var _0x2d2ddb;let _0x8ca96a=_0x23b759[_0x16108a(0x1d7)]??{},_0x1e1578=_0x23b759[_0x16108a(0x305)]??{},_0x3ddc48=((_0x2d2ddb=_0x23b759[_0x16108a(0x1e2)])==null?void 0x0:_0x2d2ddb[_0x16108a(0x1be)](_0x27a319=>_0x8ca96a[_0x27a319]))??[],_0x3005f2=new Set(_0x3ddc48),_0x2fcd54=[];for(let _0x435e64 of Object[_0x16108a(0x259)](_0x8ca96a))_0x3005f2['has'](_0x435e64['id'])||_0x2fcd54[_0x16108a(0x161)](_0x435e64);let _0x5b91f1=_0x2fcd54['length']?[..._0x3ddc48,...Rt(_0x2fcd54)]:_0x3ddc48,_0x9dc2ca=_0x23b759['fieldOrder'][_0x16108a(0x1be)](_0x3df87e=>_0x1e1578[_0x3df87e]),_0x1e6ec8={..._0x23b759[_0x16108a(0x2a7)]??{}},_0x2662e0={..._0x23b759[_0x16108a(0x2ba)]??{}},_0x4b9070={..._0x23b759['cellData']??{}};_0x23b759['recordOrder']=_0x5b91f1,_0x23b759['rowIndex']={},_0x23b759[_0x16108a(0x2a7)]={},_0x23b759[_0x16108a(0x22a)]={},_0x23b759[_0x16108a(0x2ba)]={},_0x23b759[_0x16108a(0xdd)]={},_0x23b759[_0x16108a(0x2b3)]={..._0x23b759[_0x16108a(0x2b3)]??{}},_0x23b759[_0x16108a(0x2b3)]['attachmentSets']={..._0x23b759[_0x16108a(0x2b3)][_0x16108a(0x40e)]??{}},_0x23b759[_0x16108a(0x2b3)][_0x16108a(0x320)]={..._0x23b759[_0x16108a(0x2b3)]['attachments']??{}};let _0xbb9fe8=_0x23b759[_0x16108a(0x257)],_0x1b6bdf=_0x23b759[_0x16108a(0x2a7)],_0x29cd69=_0x23b759[_0x16108a(0x22a)],_0x335622=_0x23b759[_0x16108a(0x2ba)],_0x24acbe=_0x23b759[_0x16108a(0xdd)];return _0x5b91f1[_0x16108a(0x29b)]((_0x5074ca,_0x37e27c)=>{_0xbb9fe8[_0x5074ca]=_0x37e27c,_0x1b6bdf[_0x37e27c]=_0x5074ca;}),_0x9dc2ca[_0x16108a(0x29b)]((_0x3b1f0c,_0x225edb)=>{_0x29cd69[_0x3b1f0c]=_0x225edb,_0x335622[_0x225edb]=_0x3b1f0c;}),Object['entries'](_0x4b9070)[_0x16108a(0x29b)](([_0x1450d8,_0x4a06a8])=>{const _0x2ea635=_0x16108a;let _0x530e89=Number(_0x1450d8),_0x16acab=_0x1e6ec8[_0x530e89]??_0x5b91f1[_0x530e89],_0x44a83c=_0x16acab?_0xbb9fe8[_0x16acab]:void 0x0;_0x44a83c!=null&&(_0x24acbe[_0x44a83c]={..._0x24acbe[_0x44a83c]??{}},Object[_0x2ea635(0x209)](_0x4a06a8??{})[_0x2ea635(0x29b)](([_0x2fe583,_0x27f0c4])=>{let _0x53066d=Number(_0x2fe583),_0x1e8575=_0x2662e0[_0x53066d]??_0x9dc2ca[_0x53066d],_0x1b9a88=_0x1e8575?_0x29cd69[_0x1e8575]:void 0x0;_0x1b9a88!=null&&(_0x24acbe[_0x44a83c][_0x1b9a88]=St(_0x27f0c4));}));}),Object[_0x16108a(0x259)](_0x8ca96a)[_0x16108a(0x29b)](_0x18a818=>{const _0x4a5bb0=_0x16108a;let _0x4ea5ac=_0xbb9fe8[_0x18a818['id']];_0x4ea5ac!=null&&(_0x18a818[_0x4a5bb0(0x259)]={..._0x18a818[_0x4a5bb0(0x259)]??{},[_0x40fc9d]:_0x18a818['id']},_0x24acbe[_0x4ea5ac]={..._0x24acbe[_0x4ea5ac]??{},0x0:{'v':_0x18a818['id'],'t':_0x556bff['STRING']}},Object['entries'](_0x18a818[_0x4a5bb0(0x259)]??{})[_0x4a5bb0(0x29b)](([_0x293bd6,_0xe20647])=>{let _0x3fa2fe=_0x1e1578[_0x293bd6];(_0x3fa2fe==null?void 0x0:_0x3fa2fe['type'])===_0x1013ad['Attachment']&&Dt(_0x23b759,_0x18a818['id'],_0x293bd6,_0xe20647);let _0x3b9d82=_0x29cd69[_0x293bd6];if(_0x3b9d82==null)return;let _0x3e066c=_0x24acbe[_0x4ea5ac][_0x3b9d82];if(_0x3e066c!=null){jt(_0x3e066c,_0x3fa2fe,_0xe20647)&&(_0x24acbe[_0x4ea5ac][_0x3b9d82]=xt(_0xe20647,_0x3fa2fe));return;}_0x24acbe[_0x4ea5ac][_0x3b9d82]=xt(_0xe20647,_0x3fa2fe);}));}),_0x23b759;}function ht(_0x10facf,_0x27f3f9){const _0x51df34=_0x327967;return _0x10facf['records']=Object[_0x51df34(0x49f)](Object[_0x51df34(0x209)](_0x10facf[_0x51df34(0x1d7)])['map'](([_0x4c5a46,_0x1c6039])=>[_0x4c5a46,{..._0x1c6039}])),L(_0x10facf),Object['entries'](_0x10facf[_0x51df34(0x2a7)]??{})[_0x51df34(0x29b)](([_0xa7429,_0x4daf5d])=>{const _0x6d1f0c=_0x51df34;var _0x5bcc5a;let _0x4869b1=Number(_0xa7429),_0x58d72d=_0x10facf[_0x6d1f0c(0x1d7)][_0x4daf5d];_0x58d72d&&(_0x58d72d[_0x6d1f0c(0x259)]={..._0x58d72d[_0x6d1f0c(0x259)]??{}},Object[_0x6d1f0c(0x209)](((_0x5bcc5a=_0x10facf['cellData'])==null?void 0x0:_0x5bcc5a[_0x4869b1])??{})[_0x6d1f0c(0x29b)](([_0x1bb150,_0x1c9cdf])=>{const _0x431f16=_0x6d1f0c;var _0x4db98c;let _0x3fd868=(_0x4db98c=_0x10facf[_0x431f16(0x2ba)])==null?void 0x0:_0x4db98c[Number(_0x1bb150)];_0x3fd868&&_0x27f3f9&&!_0x27f3f9(_0x4daf5d,_0x3fd868)||(_0x3fd868===_0x40fc9d?_0x58d72d[_0x431f16(0x259)][_0x40fc9d]=_0x58d72d['id']:_0x3fd868&&(_0x58d72d[_0x431f16(0x259)][_0x3fd868]=Ct(_0x1c9cdf,_0x10facf[_0x431f16(0x305)][_0x3fd868],_0x10facf,_0x4daf5d)));}));}),_0x10facf;}function gt(_0x3ebd50,_0xdd37e0){const _0x57e9c6=_0x327967;for(let {row:_0x2c6468,col:_0x4bf06d}of _0xdd37e0){var _0x473a08,_0x49be48,_0x5cd912;let _0x196ded=(_0x473a08=_0x3ebd50[_0x57e9c6(0x2a7)])==null?void 0x0:_0x473a08[_0x2c6468],_0x58a565=(_0x49be48=_0x3ebd50[_0x57e9c6(0x2ba)])==null?void 0x0:_0x49be48[_0x4bf06d],_0x420808=_0x196ded?_0x3ebd50[_0x57e9c6(0x1d7)][_0x196ded]:void 0x0;if(!_0x420808||!_0x58a565)continue;if(_0x58a565===_0x40fc9d){_0x420808['values'][_0x40fc9d]=_0x420808['id'];continue;}let _0x3ab8f4=(_0x5cd912=_0x3ebd50[_0x57e9c6(0xdd)])==null||(_0x5cd912=_0x5cd912[_0x2c6468])==null?void 0x0:_0x5cd912[_0x4bf06d];(_0x3ab8f4!=null||Object[_0x57e9c6(0x331)][_0x57e9c6(0x150)][_0x57e9c6(0x171)](_0x420808[_0x57e9c6(0x259)]??{},_0x58a565))&&(_0x420808[_0x57e9c6(0x259)]={..._0x420808[_0x57e9c6(0x259)]??{}},_0x420808[_0x57e9c6(0x259)][_0x58a565]=Ct(_0x3ab8f4,_0x3ebd50[_0x57e9c6(0x305)][_0x58a565],_0x3ebd50,_0x196ded));}return _0x3ebd50;}function _t(_0x137a4c,_0x523996,_0x392e70){const _0x5df792=_0x327967;var _0x39f338,_0x250ef7,_0x18ec08,_0xe0e577,_0x3a1464,_0x13e17b;let _0x798c55=(_0x39f338=_0x137a4c[_0x5df792(0x257)])==null?void 0x0:_0x39f338[_0x523996],_0x3b1838=(_0x250ef7=_0x137a4c['colIndex'])==null?void 0x0:_0x250ef7[_0x392e70];if(_0x798c55!=null&&_0x3b1838!=null&&((_0x18ec08=_0x137a4c[_0x5df792(0x2a7)])==null?void 0x0:_0x18ec08[_0x798c55])===_0x523996&&((_0xe0e577=_0x137a4c[_0x5df792(0x2ba)])==null?void 0x0:_0xe0e577[_0x3b1838])===_0x392e70)return{'row':_0x798c55,'col':_0x3b1838};let _0x44cd7c=L(_0x137a4c),_0x3d3375=(_0x3a1464=_0x44cd7c[_0x5df792(0x257)])==null?void 0x0:_0x3a1464[_0x523996],_0xa2816a=(_0x13e17b=_0x44cd7c[_0x5df792(0x22a)])==null?void 0x0:_0x13e17b[_0x392e70];return _0x3d3375==null||_0xa2816a==null?null:{'row':_0x3d3375,'col':_0xa2816a};}function vt(_0x3207df,_0x116eef,_0x2a28af){const _0x5941fc=_0x327967;var _0x17653f;let _0x420c46=_t(_0x3207df,_0x116eef,_0x2a28af);if(_0x420c46)return(_0x17653f=_0x3207df[_0x5941fc(0xdd)])==null||(_0x17653f=_0x17653f[_0x420c46['row']])==null?void 0x0:_0x17653f[_0x420c46['col']];}function yt(_0x417fac,_0x57457b,_0x15598a){const _0x320706=_0x327967;var _0x3cbda9;let _0x4d1820=vt(_0x417fac,_0x57457b,_0x15598a),_0x3e0836=_0x417fac[_0x320706(0x305)][_0x15598a];if((_0x3e0836==null?void 0x0:_0x3e0836['type'])===_0x1013ad[_0x320706(0x49d)]){var _0x370520;return Ot(_0x417fac,_0x57457b,_0x15598a)??kt((_0x370520=_0x417fac['records'][_0x57457b])==null||(_0x370520=_0x370520[_0x320706(0x259)])==null?void 0x0:_0x370520[_0x15598a]);}if(Mt(_0x3e0836)||Nt(_0x3e0836)||(_0x3e0836==null?void 0x0:_0x3e0836[_0x320706(0x346)])===_0x1013ad[_0x320706(0x170)]){var _0x5ed585;let _0x351f38=(_0x5ed585=_0x417fac[_0x320706(0x1d7)][_0x57457b])==null||(_0x5ed585=_0x5ed585[_0x320706(0x259)])==null?void 0x0:_0x5ed585[_0x15598a];return _0x351f38!=null&&_0x351f38!==''?At(_0x351f38,_0x3e0836):Ct(_0x4d1820,_0x3e0836,_0x417fac,_0x57457b);}return _0x4d1820&&Object[_0x320706(0x331)][_0x320706(0x150)]['call'](_0x4d1820,'v')?_0x4d1820['v']??null:((_0x3cbda9=_0x417fac[_0x320706(0x1d7)][_0x57457b])==null||(_0x3cbda9=_0x3cbda9['values'])==null?void 0x0:_0x3cbda9[_0x15598a])??null;}function bt(_0x36dbe4,_0x1cfaea,_0x4da394){const _0x3571d0=_0x327967;var _0x1c3b46;let _0x2fce9e=vt(_0x36dbe4,_0x1cfaea,_0x4da394);if(_0x2fce9e&&Object[_0x3571d0(0x331)][_0x3571d0(0x150)][_0x3571d0(0x171)](_0x2fce9e,'v'))return _0x2fce9e['v']??null;let _0x1ea93e=_0x36dbe4[_0x3571d0(0x305)][_0x4da394];return xt(((_0x1c3b46=_0x36dbe4[_0x3571d0(0x1d7)][_0x1cfaea])==null||(_0x1c3b46=_0x1c3b46[_0x3571d0(0x259)])==null?void 0x0:_0x1c3b46[_0x4da394])??null,_0x1ea93e)['v']??null;}function xt(_0x5ef7d1,_0x5b469b){const _0x598142=_0x327967;if(Tt(_0x5ef7d1))return(_0x5b469b==null?void 0x0:_0x5b469b[_0x598142(0x346)])===_0x1013ad[_0x598142(0x49d)]?{..._0x5ef7d1,'v':'','t':_0x556bff[_0x598142(0x334)]}:St(_0x5ef7d1);if((_0x5b469b==null?void 0x0:_0x5b469b['type'])===_0x1013ad[_0x598142(0x49d)])return{'v':'','t':_0x556bff[_0x598142(0x334)]};if(Nt(_0x5b469b)){let _0xef4ec7=Pt(_0x5ef7d1);return{'v':_0xef4ec7,'t':Lt(_0xef4ec7)};}if(Mt(_0x5b469b))return{'v':Ft(_0x5ef7d1)['join'](',\x20'),'t':_0x556bff[_0x598142(0x334)]};if((_0x5b469b==null?void 0x0:_0x5b469b['type'])===_0x1013ad[_0x598142(0x170)]&&_0x5ef7d1&&typeof _0x5ef7d1==_0x598142(0x3d8)&&!Array['isArray'](_0x5ef7d1)){let _0x2179de=_0x5ef7d1;return{'v':String(_0x2179de[_0x598142(0x179)]??_0x2179de['url']??''),'t':_0x556bff[_0x598142(0x334)]};}return _0x5ef7d1===null||typeof _0x5ef7d1=='string'||typeof _0x5ef7d1==_0x598142(0x218)||typeof _0x5ef7d1==_0x598142(0x224)?{'v':_0x5ef7d1,'t':Lt(_0x5ef7d1)}:{'v':null,'t':null};}function St(_0x265007){let _0x333244=zt(_0x265007['t'],_0x265007['v']);if(_0x333244===void 0x0){let {t:_0x179b79,..._0x5a1772}=_0x265007;return _0x5a1772;}return{..._0x265007,'t':_0x333244};}function Ct(_0x5a254f,_0x1a9f2c,_0x23cda8,_0x125b6b){const _0x99ffd5=_0x327967;if(!_0x5a254f)return null;if((_0x1a9f2c==null?void 0x0:_0x1a9f2c[_0x99ffd5(0x346)])===_0x1013ad[_0x99ffd5(0x49d)])return _0x23cda8&&_0x125b6b?Ot(_0x23cda8,_0x125b6b,_0x1a9f2c['id'])??[]:[];if(Mt(_0x1a9f2c))return Ft(_0x5a254f['v']);if((_0x1a9f2c==null?void 0x0:_0x1a9f2c[_0x99ffd5(0x346)])===_0x1013ad['Link']&&_0x23cda8&&_0x125b6b){var _0x583520;let _0x1b7203=(_0x583520=_0x23cda8[_0x99ffd5(0x1d7)][_0x125b6b])==null||(_0x583520=_0x583520[_0x99ffd5(0x259)])==null?void 0x0:_0x583520[_0x1a9f2c['id']];if(_0x1b7203&&typeof _0x1b7203==_0x99ffd5(0x3d8)&&!Array[_0x99ffd5(0x3fb)](_0x1b7203))return _0x1b7203;}return Object['prototype'][_0x99ffd5(0x150)][_0x99ffd5(0x171)](_0x5a254f,'v')?_0x5a254f['v']??null:null;}function wt(_0xbc2f2d,_0x15a33b,_0x4cd5bf,_0x4a51e3,_0x10ba82){const _0x23412a=_0x327967;return(_0x4cd5bf==null?void 0x0:_0x4cd5bf[_0x23412a(0x346)])===_0x1013ad[_0x23412a(0x49d)]?kt(_0xbc2f2d):Nt(_0x4cd5bf)?Pt(_0xbc2f2d):Mt(_0x4cd5bf)?Ft(_0xbc2f2d):(_0x4cd5bf==null?void 0x0:_0x4cd5bf[_0x23412a(0x346)])===_0x1013ad[_0x23412a(0x170)]&&(_0xbc2f2d==null||_0xbc2f2d==='')?null:(_0x4cd5bf==null?void 0x0:_0x4cd5bf['type'])===_0x1013ad[_0x23412a(0x170)]&&_0xbc2f2d&&typeof _0xbc2f2d==_0x23412a(0x3d8)&&!Array[_0x23412a(0x3fb)](_0xbc2f2d)&&!Tt(_0xbc2f2d)?_0xbc2f2d:Ct(_0x15a33b,_0x4cd5bf,_0x4a51e3,_0x10ba82);}function Tt(_0x40de29){const _0x59c287=_0x327967;return!!_0x40de29&&typeof _0x40de29==_0x59c287(0x3d8)&&(Object[_0x59c287(0x331)][_0x59c287(0x150)]['call'](_0x40de29,'v')||Object[_0x59c287(0x331)][_0x59c287(0x150)][_0x59c287(0x171)](_0x40de29,'t')||Object[_0x59c287(0x331)]['hasOwnProperty'][_0x59c287(0x171)](_0x40de29,'p')||Object['prototype'][_0x59c287(0x150)]['call'](_0x40de29,'f')||Object['prototype']['hasOwnProperty'][_0x59c287(0x171)](_0x40de29,'si'));}function Et(_0x14de81,_0x43d3a0){return _0x14de81+'\x1f'+_0x43d3a0;}function Dt(_0x3f957c,_0xec78bb,_0x451143,_0xb2de2c){const _0x1677b2=_0x327967;let _0x1c43fb=kt(_0xb2de2c);_0x3f957c[_0x1677b2(0x2b3)]={..._0x3f957c[_0x1677b2(0x2b3)]??{}},_0x3f957c[_0x1677b2(0x2b3)]['attachmentSets']={..._0x3f957c[_0x1677b2(0x2b3)][_0x1677b2(0x40e)]??{}},_0x3f957c['resources'][_0x1677b2(0x320)]={..._0x3f957c[_0x1677b2(0x2b3)][_0x1677b2(0x320)]??{}};let _0x52e0f0=Et(_0x451143,_0xec78bb),_0x37ffbc=[];for(let _0x459ed7=0x0;_0x459ed7<_0x1c43fb['length'];_0x459ed7++){if(!(_0x459ed7 in _0x1c43fb))continue;let _0x1e7f94=_0x1c43fb[_0x459ed7],_0x3bda24=String(_0x1e7f94['id']??_0x52e0f0+'\x1f'+_0x459ed7),_0x2ab3c3={..._0x1e7f94,'id':_0x3bda24};_0x3f957c[_0x1677b2(0x2b3)][_0x1677b2(0x320)][_0x3bda24]=_0x2ab3c3,_0x37ffbc[_0x1677b2(0x161)](_0x3bda24);}_0x3f957c[_0x1677b2(0x2b3)][_0x1677b2(0x40e)][_0x52e0f0]=_0x37ffbc;}function Ot(_0x535d6f,_0x278bae,_0x43c958){const _0x5d1eb2=_0x327967;var _0xc7c790;let _0x4c48fc=Et(_0x43c958,_0x278bae),_0x484e32=(_0xc7c790=_0x535d6f[_0x5d1eb2(0x2b3)])==null||(_0xc7c790=_0xc7c790[_0x5d1eb2(0x40e)])==null?void 0x0:_0xc7c790[_0x4c48fc];if(!_0x484e32)return null;let _0x586e14=[];for(let _0x42b422=0x0;_0x42b422<_0x484e32[_0x5d1eb2(0x1bf)];_0x42b422++){var _0x6b551b;if(!(_0x42b422 in _0x484e32))continue;let _0x570d19=(_0x6b551b=_0x535d6f[_0x5d1eb2(0x2b3)])==null||(_0x6b551b=_0x6b551b[_0x5d1eb2(0x320)])==null?void 0x0:_0x6b551b[_0x484e32[_0x42b422]];_0x570d19&&_0x586e14['push']({..._0x570d19});}return _0x586e14;}function kt(_0x209dbe){const _0x1749d8=_0x327967;if(_0x209dbe==null||_0x209dbe===''||Tt(_0x209dbe)&&!('id'in _0x209dbe)&&!(_0x1749d8(0x158)in _0x209dbe))return[];let _0x5c33a6=Array[_0x1749d8(0x3fb)](_0x209dbe)?_0x209dbe:[_0x209dbe],_0x210bec=[];for(let _0x392f1a=0x0;_0x392f1a<_0x5c33a6[_0x1749d8(0x1bf)];_0x392f1a++){if(!(_0x392f1a in _0x5c33a6))continue;let _0x9e3790=_0x5c33a6[_0x392f1a],_0x5b988f=_0x9e3790&&typeof _0x9e3790==_0x1749d8(0x3d8)?{..._0x9e3790}:{'id':'attachment-'+_0x392f1a,'name':String(_0x9e3790)};Object[_0x1749d8(0x27a)](_0x5b988f)['length']>0x0&&_0x210bec[_0x1749d8(0x161)](_0x5b988f);}return _0x210bec;}function At(_0x8722b7,_0x18c195){const _0x1574b1=_0x327967;return(_0x18c195==null?void 0x0:_0x18c195['type'])===_0x1013ad[_0x1574b1(0x49d)]?kt(_0x8722b7):Nt(_0x18c195)?Pt(_0x8722b7):Mt(_0x18c195)?Ft(_0x8722b7):_0x8722b7;}function jt(_0x4b88fb,_0x8ce5d1,_0x44c622){const _0x288ba3=_0x327967;return(_0x8ce5d1==null?void 0x0:_0x8ce5d1['type'])===_0x1013ad['Attachment']?_0x4b88fb['v']!=='':Nt(_0x8ce5d1)?_0x4b88fb['v']!==Pt(_0x44c622):Mt(_0x8ce5d1)?Array[_0x288ba3(0x3fb)](_0x44c622)&&(_0x4b88fb['v']==null||_0x4b88fb['v']===''):!0x1;}function Mt(_0x3c5a60){const _0x56b65a=_0x327967;return(_0x3c5a60==null?void 0x0:_0x3c5a60['type'])===_0x1013ad[_0x56b65a(0x190)]||(_0x3c5a60==null?void 0x0:_0x3c5a60[_0x56b65a(0x346)])===_0x1013ad[_0x56b65a(0xf7)]||(_0x3c5a60==null?void 0x0:_0x3c5a60[_0x56b65a(0x346)])===_0x1013ad[_0x56b65a(0x3df)]&&_0x3c5a60[_0x56b65a(0x174)][_0x56b65a(0x118)]===!0x0;}function Nt(_0x1c400e){const _0x581cbc=_0x327967;return(_0x1c400e==null?void 0x0:_0x1c400e[_0x581cbc(0x346)])===_0x1013ad[_0x581cbc(0x3df)]&&_0x1c400e[_0x581cbc(0x174)][_0x581cbc(0x118)]!==!0x0;}function Pt(_0x4b0161){const _0xb724b2=_0x327967;let _0x65abbc=Tt(_0x4b0161)?_0x4b0161['v']:_0x4b0161,_0x251530=Array[_0xb724b2(0x3fb)](_0x65abbc)?_0x65abbc[0x0]:_0x65abbc;return _0x251530==null||_0x251530===''?null:String(_0x251530);}function Ft(_0xe4831b){const _0x19e3c6=_0x327967;if(_0xe4831b==null||_0xe4831b==='')return[];let _0x39f184=[];if(Array[_0x19e3c6(0x3fb)](_0xe4831b)){for(let _0x4c8d30=0x0;_0x4c8d30<_0xe4831b['length'];_0x4c8d30++){if(!(_0x4c8d30 in _0xe4831b))continue;let _0x1a53fd=It(_0xe4831b[_0x4c8d30]);_0x1a53fd&&_0x39f184[_0x19e3c6(0x161)](_0x1a53fd);}return _0x39f184;}for(let _0x1573e0 of String(_0xe4831b)['split'](',')){let _0x12bd17=_0x1573e0[_0x19e3c6(0x140)]();_0x12bd17&&_0x39f184[_0x19e3c6(0x161)](_0x12bd17);}return _0x39f184;}function It(_0x1b2bac){const _0x19d1a6=_0x327967;if(_0x1b2bac==null)return'';if(typeof _0x1b2bac==_0x19d1a6(0x2a0)||typeof _0x1b2bac=='number'||typeof _0x1b2bac==_0x19d1a6(0x224))return String(_0x1b2bac);if(typeof _0x1b2bac==_0x19d1a6(0x3d8)){let _0x4a42f9=_0x1b2bac;return String(_0x4a42f9['id']??_0x4a42f9['name']??_0x4a42f9[_0x19d1a6(0x179)]??'');}return String(_0x1b2bac);}function Lt(_0x539610){const _0x1070b9=_0x327967;return _0x539610==null?null:typeof _0x539610==_0x1070b9(0x218)?_0x556bff[_0x1070b9(0x39f)]:typeof _0x539610==_0x1070b9(0x224)?_0x556bff['BOOLEAN']:_0x556bff[_0x1070b9(0x334)];}function Rt(_0x3ef695){const _0x2afbd5=_0x327967;_0x3ef695[_0x2afbd5(0x460)]((_0x1e0bbf,_0x3fee55)=>_0x1e0bbf[_0x2afbd5(0x44c)][_0x2afbd5(0x3a4)](_0x3fee55['orderKey']));let _0x305aff=[];for(let _0x36ea6e of _0x3ef695)_0x305aff['push'](_0x36ea6e['id']);return _0x305aff;}function zt(_0x4cf112,_0x4f6315){return _0x4cf112===_0x556bff['STRING']||_0x4cf112===_0x556bff['NUMBER']||_0x4cf112===_0x556bff['BOOLEAN']||_0x4cf112===_0x556bff['FORCE_STRING']||_0x4cf112==null?_0x4cf112:Lt(_0x4f6315??null);}function R(_0x4dd918){const _0x2e9185=_0x327967;let _0x4dee54=null;for(let _0x5292b9 of _0x4dd918)_0x4dee54=_0x4dee54===null?_0x5292b9:_0x43163e['type'][_0x2e9185(0x13d)](_0x4dee54,_0x5292b9);return _0x4dee54;}var z=class e{static[_0x327967(0x207)](_0x26dc0b,_0x4b6d0c){const _0x5a2e1b=_0x327967;let _0x837d40=[];for(let _0x1d9909 of _0x4b6d0c){let _0x2bf9c5=Bt(_0x1d9909);if(!_0x2bf9c5||_0x2bf9c5[_0x5a2e1b(0x409)]!==_0x26dc0b['id'])return null;_0x837d40[_0x5a2e1b(0x161)](_0x2bf9c5['op']);}try{let _0x921ca3=R(_0x837d40);return _0x921ca3===null?_0x26dc0b:new e()[_0x5a2e1b(0x240)](_0x26dc0b,_0x921ca3);}catch{return null;}}[_0x327967(0x240)](_0x5abef5,_0x5d3c64){const _0x4ed0a5=_0x327967;let _0x3943c1=this[_0x4ed0a5(0x19d)](_0x5d3c64),_0x484ece=I(_0x4ed0a5(0x1d3),()=>Xt(_0x5abef5,_0x5d3c64),{'invalidations':_0x3943c1[_0x4ed0a5(0x1bf)]}),_0x281f03=I(_0x4ed0a5(0x499),()=>_0x43163e[_0x4ed0a5(0x346)]['apply'](_0x484ece,_0x5d3c64),{'invalidations':_0x3943c1['length']}),_0x1acffa=Ht(_0x281f03,_0x3943c1);return I('BaseJson1.syncCellInvalidations',()=>Vt(_0x281f03,_0x3943c1),{'invalidations':_0x3943c1['length']})?(Ut(_0x281f03,_0x1acffa),_0x281f03):(I('BaseJson1.normalizeTables',()=>{const _0x35f5fc=_0x4ed0a5;this[_0x35f5fc(0x101)](_0x281f03,_0x3943c1)[_0x35f5fc(0x29b)](_0x789fd9=>{const _0xe826dd=_0x35f5fc;let _0x2518f2=_0x3943c1[_0xe826dd(0x1be)](_0x2e4aac=>_0x2e4aac[_0xe826dd(0x19a)]===_0x789fd9['id']),_0x52e116=_0x2518f2['length']>0x0&&_0x2518f2[_0xe826dd(0x44b)](_0x44f03f=>_0x44f03f[_0xe826dd(0x3bf)]==='field'||_0x44f03f[_0xe826dd(0x3bf)]===_0xe826dd(0x333)||_0x44f03f['reason']===_0xe826dd(0x228)||_0x44f03f[_0xe826dd(0x3bf)]===_0xe826dd(0x472))?new Set(_0x2518f2[_0xe826dd(0xeb)](_0x51eef1=>{const _0x3a52fc=_0xe826dd;var _0x4caa45;if(_0x51eef1['reason']!=='field'||!_0x51eef1[_0x3a52fc(0x173)])return[];let _0x297c83=(_0x4caa45=_0x5abef5[_0x3a52fc(0x486)][_0x789fd9['id']])==null?void 0x0:_0x4caa45[_0x3a52fc(0x305)][_0x51eef1[_0x3a52fc(0x173)]],_0x10babe=_0x789fd9[_0x3a52fc(0x305)][_0x51eef1[_0x3a52fc(0x173)]];return(_0x297c83==null?void 0x0:_0x297c83[_0x3a52fc(0x346)])!==(_0x10babe==null?void 0x0:_0x10babe[_0x3a52fc(0x346)])||(_0x297c83==null?void 0x0:_0x297c83['config'][_0x3a52fc(0x118)])!==(_0x10babe==null?void 0x0:_0x10babe[_0x3a52fc(0x174)][_0x3a52fc(0x118)])?[_0x51eef1[_0x3a52fc(0x173)]]:[];})):void 0x0,_0x4f1ccd=new Set(_0x2518f2['flatMap'](_0x4c949c=>{const _0x422560=_0xe826dd;var _0x30267e,_0xcee638;return _0x4c949c[_0x422560(0x3bf)]!==_0x422560(0x228)||_0x4c949c[_0x422560(0x124)]==null||_0x4c949c[_0x422560(0x115)]==null?[]:[JSON[_0x422560(0xf8)]([(_0x30267e=_0x789fd9[_0x422560(0x2a7)])==null?void 0x0:_0x30267e[_0x4c949c[_0x422560(0x124)]],(_0xcee638=_0x789fd9[_0x422560(0x2ba)])==null?void 0x0:_0xcee638[_0x4c949c[_0x422560(0x115)]]])];}));ht(_0x789fd9,_0x52e116?(_0x155778,_0x2e2095)=>_0x52e116[_0xe826dd(0x103)](_0x2e2095)||_0x4f1ccd[_0xe826dd(0x103)](JSON['stringify']([_0x155778,_0x2e2095])):void 0x0);});},{'invalidations':_0x3943c1['length']}),Ut(_0x281f03,_0x1acffa),_0x281f03);}[_0x327967(0x38e)](_0x2c1754,_0x53e2c3){const _0x1c403a=_0x327967;return _0x43163e[_0x1c403a(0x346)]['invertWithDoc'](_0x53e2c3,_0x2c1754);}[_0x327967(0x19d)](_0x3fd6b0){const _0x160fef=_0x327967;let _0x4b9e2c=qt(_0x3fd6b0);return _0x4b9e2c['length']?Jt(_0x4b9e2c[_0x160fef(0xeb)](_0x300e92=>this[_0x160fef(0x19d)](_0x300e92))):Wt(_0x3fd6b0);}[_0x327967(0x101)](_0x474f9f,_0x32f1ce){const _0x180550=_0x327967;let _0x18a758=_0x32f1ce['filter'](_0x1909ef=>_0x1909ef[_0x180550(0x3bf)]!==_0x180550(0x333));return _0x18a758[_0x180550(0x1bf)]?_0x18a758[_0x180550(0x35d)](_0x5c637f=>!_0x5c637f[_0x180550(0x19a)])?Object[_0x180550(0x259)](_0x474f9f[_0x180550(0x486)]??{}):Array[_0x180550(0x1d1)](new Set(_0x18a758[_0x180550(0x412)](_0x27fe63=>_0x27fe63['tableId'])))[_0x180550(0xeb)](_0x13d59e=>{const _0x495883=_0x180550;var _0xc6a5cb;let _0x12185c=(_0xc6a5cb=_0x474f9f[_0x495883(0x486)])==null?void 0x0:_0xc6a5cb[_0x13d59e];return _0x12185c?[_0x12185c]:[];}):[];}};function Bt(_0x268005){const _0x1820af=_0x327967;let _0x17bda6=_0x268005[_0x1820af(0x303)];return _0x268005['id']!==_0x1820af(0x444)||typeof _0x17bda6!=_0x1820af(0x3d8)||!_0x17bda6||!('unitId'in _0x17bda6)||typeof _0x17bda6[_0x1820af(0x409)]!=_0x1820af(0x2a0)||!('op'in _0x17bda6)||!Array['isArray'](_0x17bda6['op'])?null:{'unitId':_0x17bda6[_0x1820af(0x409)],'op':_0x17bda6['op']};}function Vt(_0x5e26ec,_0x36ce33){const _0x5332aa=_0x327967;if(!_0x36ce33[_0x5332aa(0x1bf)]||_0x36ce33[_0x5332aa(0x35d)](_0x26decf=>_0x26decf[_0x5332aa(0x3bf)]!=='cell'))return!0x1;let _0x20d857=new Map();for(let _0x417002 of _0x36ce33){if(!_0x417002[_0x5332aa(0x19a)]||_0x417002[_0x5332aa(0x124)]==null||_0x417002[_0x5332aa(0x115)]==null)continue;let _0x130edf=_0x20d857['get'](_0x417002['tableId'])??[];_0x130edf[_0x5332aa(0x161)]({'row':_0x417002['row'],'col':_0x417002['column']}),_0x20d857['set'](_0x417002['tableId'],_0x130edf);}return _0x20d857[_0x5332aa(0x29b)]((_0x103b42,_0x3823db)=>{var _0x52d6aa;let _0x556447=(_0x52d6aa=_0x5e26ec['tables'])==null?void 0x0:_0x52d6aa[_0x3823db];_0x556447&&gt(_0x556447,_0x103b42);}),!0x0;}function Ht(_0x2150a7,_0x3e6a5b){const _0x4a7ba6=_0x327967;let _0x13faef=new Set();return _0x3e6a5b[_0x4a7ba6(0xeb)](_0x39f797=>{const _0x33e819=_0x4a7ba6;var _0x27d5e6;if(!_0x39f797[_0x33e819(0x19a)]||!_0x39f797[_0x33e819(0x345)]||!_0x39f797[_0x33e819(0x173)])return[];let _0x11e856=_0x39f797['tableId']+'\x1f'+_0x39f797['recordId']+'\x1f'+_0x39f797[_0x33e819(0x173)];if(_0x13faef[_0x33e819(0x103)](_0x11e856))return[];_0x13faef[_0x33e819(0x12e)](_0x11e856);let _0x4af1d1=(_0x27d5e6=_0x2150a7[_0x33e819(0x486)][_0x39f797['tableId']])==null||(_0x27d5e6=_0x27d5e6[_0x33e819(0x1d7)][_0x39f797[_0x33e819(0x345)]])==null?void 0x0:_0x27d5e6[_0x33e819(0x259)];return _0x4af1d1?[{'tableId':_0x39f797[_0x33e819(0x19a)],'recordId':_0x39f797[_0x33e819(0x345)],'fieldId':_0x39f797[_0x33e819(0x173)],'exists':Object[_0x33e819(0x331)][_0x33e819(0x150)]['call'](_0x4af1d1,_0x39f797[_0x33e819(0x173)]),'value':_0x4af1d1[_0x39f797['fieldId']]}]:[];});}function Ut(_0x247655,_0x1a948f){_0x1a948f['forEach'](_0x38039b=>{const _0x3c4694=_0x11ae;var _0x1d0c3a;let _0x3cd9a8=(_0x1d0c3a=_0x247655['tables'][_0x38039b[_0x3c4694(0x19a)]])==null||(_0x1d0c3a=_0x1d0c3a[_0x3c4694(0x1d7)][_0x38039b[_0x3c4694(0x345)]])==null?void 0x0:_0x1d0c3a[_0x3c4694(0x259)];_0x3cd9a8&&(_0x38039b[_0x3c4694(0x1b7)]?_0x3cd9a8[_0x38039b[_0x3c4694(0x173)]]=_0x38039b[_0x3c4694(0x1e1)]:delete _0x3cd9a8[_0x38039b['fieldId']]);});}function Wt(_0x2fd9f6){const _0x2601da=_0x327967;if(!Array[_0x2601da(0x3fb)](_0x2fd9f6)||_0x2fd9f6[_0x2601da(0x1bf)]<0x2)return[{'tableId':'','reason':_0x2601da(0x49c)}];let _0x4ec82a=_0x2fd9f6,_0x5b09a2=_0x4ec82a[_0x2601da(0x1c5)]('tables');return _0x5b09a2===-0x1||typeof _0x4ec82a[_0x5b09a2+0x1]!=_0x2601da(0x2a0)?_0x4ec82a[0x0]==='tableOrder'?[]:[{'tableId':'','reason':_0x2601da(0x49c)}]:Gt(_0x4ec82a,_0x5b09a2,String(_0x4ec82a[_0x5b09a2+0x1]));}function Gt(_0x2795c0,_0x4ca581,_0x3fe8f3){const _0x15b9c6=_0x327967;let _0x5dabcd=_0x2795c0[_0x4ca581+0x2];return _0x5dabcd==='records'&&typeof _0x2795c0[_0x4ca581+0x3]==_0x15b9c6(0x2a0)?Kt(_0x2795c0,_0x4ca581,_0x3fe8f3,String(_0x2795c0[_0x4ca581+0x3])):_0x5dabcd===_0x15b9c6(0xdd)&&_0x2795c0[_0x4ca581+0x3]!=null&&_0x2795c0[_0x4ca581+0x4]!=null?[{'tableId':_0x3fe8f3,'reason':'cell','row':Number(_0x2795c0[_0x4ca581+0x3]),'column':Number(_0x2795c0[_0x4ca581+0x4])}]:_0x5dabcd===_0x15b9c6(0x305)&&typeof _0x2795c0[_0x4ca581+0x3]==_0x15b9c6(0x2a0)?[{'tableId':_0x3fe8f3,'reason':'field','fieldId':String(_0x2795c0[_0x4ca581+0x3])}]:_0x5dabcd===_0x15b9c6(0x1f8)?[{'tableId':_0x3fe8f3,'reason':'field'}]:_0x5dabcd===_0x15b9c6(0x1e2)?[{'tableId':_0x3fe8f3,'reason':_0x15b9c6(0x472)}]:_0x5dabcd===_0x15b9c6(0x1eb)&&typeof _0x2795c0[_0x4ca581+0x3]=='string'?[{'tableId':_0x3fe8f3,'reason':_0x15b9c6(0x333),'viewId':String(_0x2795c0[_0x4ca581+0x3])}]:_0x5dabcd===_0x15b9c6(0x2e1)?[{'tableId':_0x3fe8f3,'reason':_0x15b9c6(0x333)}]:_0x5dabcd===_0x15b9c6(0x2b3)?[{'tableId':_0x3fe8f3,'reason':'cell'}]:[{'tableId':_0x3fe8f3,'reason':_0x5dabcd===void 0x0?_0x15b9c6(0x496):_0x15b9c6(0x49c)}];}function Kt(_0xd8f721,_0x2b1858,_0xb04482,_0x2608e3){const _0x125139=_0x327967;return _0xd8f721[_0x2b1858+0x4]===_0x125139(0x259)&&typeof _0xd8f721[_0x2b1858+0x5]=='string'?[{'tableId':_0xb04482,'reason':'cell','recordId':_0x2608e3,'fieldId':String(_0xd8f721[_0x2b1858+0x5])}]:_0xd8f721[_0x2b1858+0x4]===_0x125139(0x1db)||_0xd8f721[_0x2b1858+0x4]===_0x125139(0x2c9)?[]:[{'tableId':_0xb04482,'reason':_0x125139(0x472),'recordId':_0x2608e3}];}function qt(_0x536f96){const _0xc488c3=_0x327967;if(!Array[_0xc488c3(0x3fb)](_0x536f96))return[];let _0x5def5b=_0x536f96[_0xc488c3(0x1be)](Array[_0xc488c3(0x3fb)]);if(_0x5def5b['length']>0x1&&_0x5def5b['length']===_0x536f96[_0xc488c3(0x1bf)])return _0x5def5b;let _0x43c2b2=_0x536f96['findIndex'](Array[_0xc488c3(0x3fb)]);if(_0x43c2b2>0x0&&_0x536f96[_0xc488c3(0x348)](_0x43c2b2)[_0xc488c3(0x44b)](Array[_0xc488c3(0x3fb)])){let _0x162a6d=_0x536f96[_0xc488c3(0x348)](0x0,_0x43c2b2);return _0x536f96['slice'](_0x43c2b2)[_0xc488c3(0x412)](_0x576d78=>[..._0x162a6d,..._0x576d78]);}let _0x1ce032=_0x536f96[_0xc488c3(0x1c5)](_0xc488c3(0x486));if(_0x1ce032===-0x1||typeof _0x536f96[_0x1ce032+0x1]!=_0xc488c3(0x2a0))return[];let _0x2dd000=String(_0x536f96[_0x1ce032+0x1]),_0x7ecdf9=_0x536f96['slice'](_0x1ce032+0x2)['filter'](Array[_0xc488c3(0x3fb)]);return _0x7ecdf9[_0xc488c3(0x1bf)]<=0x1?[]:_0x7ecdf9['map'](_0x1a5369=>[_0xc488c3(0x486),_0x2dd000,..._0x1a5369]);}function Jt(_0x3afdd2){const _0x592e77=_0x327967;let _0x4b2595=new Set();return _0x3afdd2[_0x592e77(0x1be)](_0x46c52e=>{const _0x52f505=_0x592e77;let _0x57358a=JSON[_0x52f505(0xf8)](_0x46c52e);return!_0x4b2595[_0x52f505(0x103)](_0x57358a)&&(_0x4b2595[_0x52f505(0x12e)](_0x57358a),!0x0);});}function Yt(_0x4a8f6a){const _0x3d42b5=_0x327967;return _0x2ea00f[_0x3d42b5(0x3e0)](_0x4a8f6a);}function Xt(_0x3e0077,_0x217b3e){let _0x4195fb=Zt(_0x217b3e);if(!_0x4195fb['length'])return Yt(_0x3e0077);let _0x2500ff=an(_0x3e0077),_0x375512=new Set();for(let _0x28183c of _0x4195fb)en(_0x2500ff,_0x28183c,_0x375512);return _0x2500ff;}function Zt(_0x15e533){let _0x321c85=[];return Qt(_0x15e533,[],_0x321c85),_0x321c85;}function Qt(_0x307b99,_0x2e5ed3,_0xfd69b4){const _0x3a2378=_0x327967;if(!Array[_0x3a2378(0x3fb)](_0x307b99))return;let _0x1903f5=[];for(let _0x759fc3 of _0x307b99){if(Array[_0x3a2378(0x3fb)](_0x759fc3)){Qt(_0x759fc3,[..._0x2e5ed3,..._0x1903f5],_0xfd69b4);continue;}if($t(_0x759fc3)){_0xfd69b4[_0x3a2378(0x161)]([..._0x2e5ed3,..._0x1903f5]);continue;}(typeof _0x759fc3=='string'||typeof _0x759fc3==_0x3a2378(0x218))&&_0x1903f5[_0x3a2378(0x161)](_0x759fc3);}}function $t(_0x56bfb6){const _0x2e958f=_0x327967;if(!_0x56bfb6||typeof _0x56bfb6!=_0x2e958f(0x3d8)||Array[_0x2e958f(0x3fb)](_0x56bfb6))return!0x1;let _0x152fef=_0x56bfb6;return'i'in _0x152fef||'r'in _0x152fef||'p'in _0x152fef||'d'in _0x152fef||'es'in _0x152fef||_0x2e958f(0x488)in _0x152fef||'et'in _0x152fef;}function en(_0x2dc184,_0x28b31c,_0x1e7431){const _0x2cc15f=_0x327967;let _0x5b45b2=_0x2dc184,_0x135214=[];for(let _0x4ac6ff=0x0;_0x4ac6ff<_0x28b31c[_0x2cc15f(0x1bf)]-0x1;_0x4ac6ff++){let _0x3b4e67=_0x28b31c[_0x4ac6ff];_0x135214[_0x2cc15f(0x161)](_0x3b4e67);let _0x1a25f6=tn(_0x5b45b2,_0x3b4e67);if(!rn(_0x1a25f6))return;let _0x5678fa=JSON['stringify'](_0x135214);_0x1e7431[_0x2cc15f(0x103)](_0x5678fa)||(nn(_0x5b45b2,_0x3b4e67,an(_0x1a25f6)),_0x1e7431[_0x2cc15f(0x12e)](_0x5678fa));let _0x33649f=tn(_0x5b45b2,_0x3b4e67);if(!rn(_0x33649f))return;_0x5b45b2=_0x33649f;}}function tn(_0x4b8f9a,_0x2c7dbe){const _0x186e8e=_0x327967;return Array[_0x186e8e(0x3fb)](_0x4b8f9a)?typeof _0x2c7dbe==_0x186e8e(0x218)?_0x4b8f9a[_0x2c7dbe]:void 0x0:Reflect[_0x186e8e(0x318)](_0x4b8f9a,_0x2c7dbe);}function nn(_0x5293e2,_0x327296,_0x1e35dc){const _0x319ea9=_0x327967;if(Array['isArray'](_0x5293e2)){typeof _0x327296=='number'&&(_0x5293e2[_0x327296]=_0x1e35dc);return;}Reflect[_0x319ea9(0x3fe)](_0x5293e2,_0x327296,_0x1e35dc);}function rn(_0x5066c3){const _0xfc96f2=_0x327967;return!!_0x5066c3&&typeof _0x5066c3==_0xfc96f2(0x3d8);}function an(_0x7e735b){const _0x24a834=_0x327967;return Array[_0x24a834(0x3fb)](_0x7e735b)?_0x7e735b[_0x24a834(0x348)]():{..._0x7e735b};}const on=_0x327967(0x20c),sn=/\s+hh:mm\s*$/i,cn={'yyyy/mm/dd':_0x327967(0x178),'yyyy-mm-dd':'YYYY-MM-DD','mm-dd':_0x327967(0x405),'mm/dd/yyyy':'MM/DD/YYYY','dd/mm/yyyy':_0x327967(0x12c),'mmm\x20d,\x20yyyy':_0x327967(0x30d)};function B(_0x11c278,_0x292e33=_0x2dcec1[_0x327967(0x107)]){const _0x28378c=_0x327967;let _0x1b841d=_0x28e66b(_0x11c278)[_0x28378c(0x160)]();return _0x54e6bc(new Date(_0x1b841d),_0x292e33);}function ln(_0x3a0449,_0x7fbbd=_0x2dcec1[_0x327967(0x107)]){const _0x3207ec=_0x327967;return _0x568db3(_0x3a0449,_0x7fbbd)[_0x3207ec(0xee)]();}function un(_0x2663b7,_0x8e1086=_0x2dcec1[_0x327967(0x107)]){const _0x1ad3a4=_0x327967;if(_0x2663b7==null||_0x2663b7==='')return null;if(_0x2663b7 instanceof Date)return B(_0x2663b7,_0x8e1086);if(typeof _0x2663b7=='number')return Number[_0x1ad3a4(0x138)](_0x2663b7)?_0x2663b7>0xf4240?B(_0x2663b7,_0x8e1086):_0x2663b7:null;let _0x41935e=Date[_0x1ad3a4(0x389)](String(_0x2663b7));return Number[_0x1ad3a4(0x242)](_0x41935e)?null:B(_0x41935e,_0x8e1086);}function dn(_0xd15216,_0x3bd06e=_0x2dcec1[_0x327967(0x107)]){let _0x110840=un(_0xd15216,_0x3bd06e);return _0x110840==null?null:ln(_0x110840,_0x3bd06e);}function fn(_0x545af2={}){const _0x529fbf=_0x327967;let _0x1f2565=String(_0x545af2['pattern']??_0x545af2[_0x529fbf(0x493)]??_0x545af2[_0x529fbf(0x227)]??on)[_0x529fbf(0x140)]()||on,_0x119062=sn['test'](_0x1f2565);return{'pattern':_0x1f2565[_0x529fbf(0x42d)](sn,'')||on,'includeTime':typeof _0x545af2[_0x529fbf(0x26e)]=='boolean'?_0x545af2[_0x529fbf(0x26e)]:_0x119062,'hourCycle':_0x545af2[_0x529fbf(0x204)]===_0x529fbf(0xef)?_0x529fbf(0xef):_0x529fbf(0x350)};}function pn(_0x25b8f0={}){let {format:_0x581d99,dateFormat:_0x18af03,..._0x3d87e0}=_0x25b8f0;return{..._0x3d87e0,...fn(_0x25b8f0)};}function mn(_0x37ebca,_0x318082={}){const _0x234efd=_0x327967;let _0xe315c5=dn(_0x37ebca);if(_0xe315c5==null||!Number[_0x234efd(0x138)](_0xe315c5))return'';let _0x5b9f4a=fn(_0x318082);return _0x28e66b(_0xe315c5)[_0x234efd(0x493)](hn(_0x5b9f4a));}function hn(_0x324b74){const _0x3229b2=_0x327967;let {pattern:_0x384d1b,includeTime:_0x51c007,hourCycle:_0x463fa7}=_0x324b74,_0x465fb0=cn[_0x384d1b]??cn[on];return _0x51c007?_0x465fb0+'\x20'+(_0x463fa7===_0x3229b2(0xef)?_0x3229b2(0x33e):_0x3229b2(0x16d)):_0x465fb0;}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([_0x1013ad['RecordId']]),V=0x5265c00;function vn(_0x154ded){const _0x133034=_0x327967;switch(_0x154ded){case _0x1013ad['Number']:case _0x1013ad[_0x133034(0x295)]:case _0x1013ad['Progress']:case _0x1013ad['Rating']:return[_0x4710de['IS'],_0x4710de[_0x133034(0x129)],_0x4710de['GREATER_THAN'],_0x4710de[_0x133034(0x3c2)],_0x4710de['IS_EMPTY'],_0x4710de[_0x133034(0x1cb)]];case _0x1013ad[_0x133034(0x2b2)]:case _0x1013ad['CreatedAt']:case _0x1013ad['UpdatedAt']:return[_0x4710de['IS'],_0x4710de[_0x133034(0x129)],_0x4710de[_0x133034(0xe1)],_0x4710de[_0x133034(0x1e9)],_0x4710de[_0x133034(0x3ec)],_0x4710de[_0x133034(0x1cb)]];case _0x1013ad[_0x133034(0x205)]:return[_0x4710de['IS'],_0x4710de['IS_NOT']];default:return[_0x4710de['IS'],_0x4710de['IS_NOT'],_0x4710de[_0x133034(0x11a)],_0x4710de[_0x133034(0x2a5)],_0x4710de[_0x133034(0x3ec)],_0x4710de[_0x133034(0x1cb)]];}}function yn(_0x48a8e2){const _0x5190c6=_0x327967;return _0x48a8e2===_0x1013ad['Date']||_0x48a8e2===_0x1013ad[_0x5190c6(0x483)]||_0x48a8e2===_0x1013ad['UpdatedAt'];}function bn(_0x2a5e32,_0x3d8e3d){const _0x16bcbd=_0x327967;return _0x2a5e32==null&&_0x3d8e3d==null?0x0:_0x2a5e32==null?-0x1:_0x3d8e3d==null?0x1:typeof _0x2a5e32==_0x16bcbd(0x218)&&typeof _0x3d8e3d==_0x16bcbd(0x218)?_0x2a5e32-_0x3d8e3d:String(_0x2a5e32)[_0x16bcbd(0x3a4)](String(_0x3d8e3d));}function xn(_0x1baa62,_0x540554,_0x5c7293,_0x50c190,_0x1ffebf={}){const _0x3d9af5=_0x327967;if(_0x540554==='isEmpty')return Sn(_0x1baa62);if(_0x540554===_0x3d9af5(0x35c))return!Sn(_0x1baa62);switch(_0x50c190[_0x3d9af5(0x346)]){case _0x1013ad['Number']:case _0x1013ad[_0x3d9af5(0x295)]:case _0x1013ad[_0x3d9af5(0x3e1)]:case _0x1013ad[_0x3d9af5(0x20a)]:return Cn(_0x1baa62,_0x540554,_0x5c7293);case _0x1013ad[_0x3d9af5(0x2b2)]:case _0x1013ad[_0x3d9af5(0x483)]:case _0x1013ad[_0x3d9af5(0xe4)]:return Tn(_0x1baa62,_0x540554,_0x5c7293,_0x1ffebf);case _0x1013ad['Checkbox']:return jn(_0x1baa62,_0x540554,_0x5c7293);case _0x1013ad[_0x3d9af5(0x413)]:case _0x1013ad[_0x3d9af5(0x190)]:case _0x1013ad[_0x3d9af5(0x3df)]:case _0x1013ad[_0x3d9af5(0xf7)]:return Nn(_0x1baa62,_0x540554,_0x5c7293,_0x50c190);default:return Pn(_0x1baa62,_0x540554,_0x5c7293);}}function Sn(_0x40ed61){const _0x30a5b2=_0x327967;return _0x40ed61==null?!0x0:Array[_0x30a5b2(0x3fb)](_0x40ed61)?_0x40ed61['length']===0x0:typeof _0x40ed61==_0x30a5b2(0x2a0)&&_0x40ed61['trim']()==='';}function Cn(_0x56fe76,_0x246680,_0x2d4192){const _0x2fd46b=_0x327967;let _0x39ca67=wn(_0x56fe76),_0x165145=wn(_0x2d4192);if(_0x39ca67==null||_0x165145==null)return!0x1;switch(_0x246680){case'is':return _0x39ca67===_0x165145;case _0x2fd46b(0x47d):return _0x39ca67!==_0x165145;case'greaterThan':return _0x39ca67>_0x165145;case _0x2fd46b(0x196):return _0x39ca67>=_0x165145;case _0x2fd46b(0x3ba):return _0x39ca67<_0x165145;case _0x2fd46b(0x438):return _0x39ca67<=_0x165145;default:return!0x1;}}function wn(_0x354052){const _0x265cf9=_0x327967;if(_0x354052==null||_0x354052==='')return null;let _0xb2b0fc=Number(_0x354052);return Number[_0x265cf9(0x138)](_0xb2b0fc)?_0xb2b0fc:null;}function Tn(_0x5172af,_0x5d5c23,_0x5361c2,_0xd209df){const _0x4aa397=_0x327967;let _0x3f5161=Dn(_0x5172af);if(_0x3f5161==null)return!0x1;let _0x5e6791=En(_0xd209df[_0x4aa397(0x365)]??_0x4aa397(0x1da),_0x5361c2,_0xd209df[_0x4aa397(0xfa)]);if(!_0x5e6791)return!0x1;switch(_0x5d5c23){case'is':return _0x3f5161>=_0x5e6791[_0x4aa397(0x47f)]&&_0x3f5161<=_0x5e6791[_0x4aa397(0x3c3)];case _0x4aa397(0x47d):return _0x3f5161<_0x5e6791['start']||_0x3f5161>_0x5e6791[_0x4aa397(0x3c3)];case _0x4aa397(0x1f6):return _0x3f5161<_0x5e6791['start'];case'after':return _0x3f5161>_0x5e6791[_0x4aa397(0x3c3)];default:return!0x1;}}function En(_0x38e1b6,_0x3af378,_0xac1e65=Date['now']()){const _0x1a9932=_0x327967;let _0x24d723=On(_0xac1e65);switch(_0x38e1b6){case _0x1a9932(0x1da):{let _0x5e7e6f=Dn(_0x3af378);return _0x5e7e6f==null?null:{'start':_0x5e7e6f,'end':_0x5e7e6f+V-0x1};}case'today':return{'start':_0x24d723,'end':_0x24d723+V-0x1};case _0x1a9932(0x3f2):return{'start':_0x24d723+V,'end':_0x24d723+V*0x2-0x1};case _0x1a9932(0x48c):return{'start':_0x24d723-V,'end':_0x24d723-0x1};case'thisWeek':return kn(_0x24d723,0x0);case _0x1a9932(0x117):return kn(_0x24d723,-0x1);case _0x1a9932(0x2f0):return An(_0x24d723,0x0);case _0x1a9932(0x4a0):return An(_0x24d723,-0x1);case _0x1a9932(0x43c):return{'start':_0x24d723-V*0x6,'end':_0x24d723+V-0x1};case'next7':return{'start':_0x24d723,'end':_0x24d723+V*0x7-0x1};case'past30':return{'start':_0x24d723-V*0x1d,'end':_0x24d723+V-0x1};case'next30':return{'start':_0x24d723,'end':_0x24d723+V*0x1e-0x1};}}function Dn(_0x2dce45){let _0x14d25c=un(_0x2dce45);return _0x14d25c==null?null:On(ln(_0x14d25c));}function On(_0x3f3bc0){const _0x454450=_0x327967;let _0x435819=new Date(_0x3f3bc0);return _0x435819[_0x454450(0x362)](0x0,0x0,0x0,0x0),_0x435819[_0x454450(0xee)]();}function kn(_0x65f02c,_0x5ee95e){let _0x2d55d8=_0x65f02c-(new Date(_0x65f02c)['getDay']()+0x6)%0x7*V+_0x5ee95e*V*0x7;return{'start':_0x2d55d8,'end':_0x2d55d8+V*0x7-0x1};}function An(_0x3eb281,_0x596615){const _0x50c09d=_0x327967;let _0x203e49=new Date(_0x3eb281),_0x22b962=new Date(_0x203e49[_0x50c09d(0x152)](),_0x203e49[_0x50c09d(0x3e3)]()+_0x596615,0x1),_0xe6f453=new Date(_0x203e49['getFullYear'](),_0x203e49['getMonth']()+_0x596615+0x1,0x1);return{'start':_0x22b962[_0x50c09d(0xee)](),'end':_0xe6f453[_0x50c09d(0xee)]()-0x1};}function jn(_0xc0235f,_0xb82004,_0x3bcf91){const _0x3875c9=_0x327967;let _0x2990a4=Mn(_0xc0235f),_0x1c5c24=Mn(_0x3bcf91);switch(_0xb82004){case'is':return _0x2990a4===_0x1c5c24;case _0x3875c9(0x47d):return _0x2990a4!==_0x1c5c24;default:return!0x1;}}function Mn(_0x4b25f5){const _0x76eaea=_0x327967;return _0x4b25f5===!0x0||_0x4b25f5===_0x76eaea(0x1f3)||_0x4b25f5===0x1||_0x4b25f5==='1';}function Nn(_0x258e59,_0x3dfcd4,_0x1c6d8a,_0x3c6fed){const _0x3f081c=_0x327967;let _0x19c2b8=In(_0x258e59,_0x3c6fed),_0x4cf479=In(_0x1c6d8a,_0x3c6fed),_0x5eb931=_0x4cf479['length']>0x0&&_0x4cf479[_0x3f081c(0x35d)](_0x72b529=>_0x19c2b8[_0x3f081c(0x45c)](_0x72b529));switch(_0x3dfcd4){case'is':case'contains':return _0x5eb931;case _0x3f081c(0x47d):case'notContains':return!_0x5eb931;default:return!0x1;}}function Pn(_0x6b0492,_0x56a053,_0x12a4fc){const _0x42b97e=_0x327967;let _0x4e44b6=Fn(_0x6b0492),_0xb60e9c=Fn(_0x12a4fc);switch(_0x56a053){case'is':return _0x4e44b6===_0xb60e9c;case _0x42b97e(0x47d):return _0x4e44b6!==_0xb60e9c;case _0x42b97e(0x38f):return _0xb60e9c?_0x4e44b6[_0x42b97e(0x45c)](_0xb60e9c):!0x1;case _0x42b97e(0xe0):return!_0xb60e9c||!_0x4e44b6['includes'](_0xb60e9c);default:return!0x1;}}function Fn(_0x3cb3ae){const _0x5200c6=_0x327967;if(Array['isArray'](_0x3cb3ae))return _0x3cb3ae[_0x5200c6(0x412)](_0x26aa46=>Fn(_0x26aa46))['join']('\x0a');if(_0x3cb3ae&&typeof _0x3cb3ae=='object'){let _0x4247eb=_0x3cb3ae;return String(_0x4247eb[_0x5200c6(0x158)]??_0x4247eb[_0x5200c6(0x33b)]??_0x4247eb[_0x5200c6(0x179)]??_0x4247eb[_0x5200c6(0x1e1)]??_0x4247eb['id']??'')['trim']()[_0x5200c6(0x3af)]();}return String(_0x3cb3ae??'')[_0x5200c6(0x140)]()[_0x5200c6(0x3af)]();}function In(_0x484366,_0x115015){const _0x1545ba=_0x327967;let _0x540213=Ln(_0x484366),_0x3ac897=Rn(_0x115015[_0x1545ba(0x174)]??{});return _0x540213[_0x1545ba(0xeb)](_0x542455=>_0x3ac897[_0x1545ba(0x318)](_0x542455)??[_0x542455])[_0x1545ba(0x1be)]((_0x5e3278,_0x49789b,_0x1e59dc)=>_0x5e3278!==''&&_0x1e59dc[_0x1545ba(0x1c5)](_0x5e3278)===_0x49789b);}function Ln(_0x5b55c0){const _0x44297b=_0x327967;if(_0x5b55c0==null||_0x5b55c0==='')return[];if(Array[_0x44297b(0x3fb)](_0x5b55c0))return _0x5b55c0[_0x44297b(0xeb)](_0x2635b8=>Ln(_0x2635b8));if(_0x5b55c0&&typeof _0x5b55c0==_0x44297b(0x3d8)){let _0x4d0eff=_0x5b55c0;return['id',_0x44297b(0x158),_0x44297b(0x33b),_0x44297b(0x1e1),_0x44297b(0x179)]['flatMap'](_0x519963=>Ln(_0x4d0eff[_0x519963]))[_0x44297b(0x1be)]((_0x1a9d7e,_0x55013f,_0x45d098)=>_0x45d098[_0x44297b(0x1c5)](_0x1a9d7e)===_0x55013f);}return[Fn(_0x5b55c0)];}function Rn(_0x14fd73){const _0x2b6bcf=_0x327967;let _0x2e43fd=new Map();return(Array[_0x2b6bcf(0x3fb)](_0x14fd73[_0x2b6bcf(0x495)])?_0x14fd73['options']:[])[_0x2b6bcf(0x29b)](_0x447d7a=>{const _0x1d1a20=_0x2b6bcf;if(!_0x447d7a||typeof _0x447d7a!=_0x1d1a20(0x3d8))return;let _0x8de69b=Ln(_0x447d7a),_0x513e72=_0x8de69b[_0x1d1a20(0x1be)]((_0x11fde4,_0x1ccc6b)=>_0x11fde4!==''&&_0x8de69b['indexOf'](_0x11fde4)===_0x1ccc6b);_0x513e72['forEach'](_0x216328=>_0x2e43fd['set'](_0x216328,_0x513e72));}),_0x2e43fd;}function H(_0x2b4eca,_0x100225={},_0x3d7a0d=_0x3d4c71=>_0x3d4c71,_0xd61c6e={}){const _0x514bfe=_0x327967;let _0x3c8b26=!_n['has'](_0x2b4eca),_0x42fa9f=_0x3d7a0d??(_0x5d3e9e=>_0x5d3e9e);return{'type':_0x2b4eca,'i18nKey':'base.fieldType.'+_0x2b4eca,'enabled':_0x3c8b26,'visibleInCreateMenu':_0x3c8b26,'createDefaultConfig':_0xd61c6e[_0x514bfe(0x2b9)]??(()=>({})),'createDefaultValue':_0xd61c6e[_0x514bfe(0x3d7)]??(_0xf3f578=>_0xf3f578[_0x514bfe(0x487)]??null),'normalize':(_0x46411c,_0x1c5c29)=>_0x42fa9f(_0x46411c,_0x1c5c29),'validate':(_0x5df733,_0x4575b5)=>{const _0x544e7c=_0x514bfe;var _0x4523a1;return _0x3c8b26?((_0x4523a1=_0xd61c6e['validate'])==null?void 0x0:_0x4523a1[_0x544e7c(0x171)](_0xd61c6e,_0x5df733,_0x4575b5))??{'valid':!0x0}:{'valid':!0x1};},'compare':(_0x183f9d,_0x7a33e2)=>bn(_0x183f9d,_0x7a33e2),'filter':(_0x4ee02a,_0xc3a9b3,_0x859559,_0x28ba46)=>xn(_0x4ee02a,_0xc3a9b3,_0x859559,_0x28ba46),'toPlainText':_0xd61c6e[_0x514bfe(0x41a)]??(_0xeedcf2=>_0xeedcf2==null?'':String(_0xeedcf2)),'fromPlainText':_0xd61c6e[_0x514bfe(0x1c3)]??(_0x3f1a79=>_0x42fa9f(_0x3f1a79,{'id':'','name':'','type':_0x2b4eca,'config':{}})),'getCapabilities':()=>({...gn,..._0x100225,'editable':_0x3c8b26&&(_0x100225[_0x514bfe(0x2bc)]??gn[_0x514bfe(0x2bc)])})};}function zn(){const _0x16a3f5=_0x327967;return[H(_0x1013ad[_0x16a3f5(0x2cb)],{'groupable':!0x0,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'placeholder':'bases.fieldConfig.textPlaceholder'}),'createDefaultValue':_0x194377=>_0x194377['defaultValue']??''}),H(_0x1013ad['SingleSelect'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0},_0x17bbdb=>_0x17bbdb==null||_0x17bbdb===''?null:String(_0x17bbdb),{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':_0x16a3f5(0x134)}})}),H(_0x1013ad['MultiSelect'],{'filterable':!0x0,'usableAsKanbanGroup':!0x0,'supportsOptions':!0x0,'supportsMultipleValues':!0x0},_0x4c169c=>Array[_0x16a3f5(0x3fb)](_0x4c169c)?_0x4c169c[_0x16a3f5(0x412)](String):_0x4c169c==null?[]:[String(_0x4c169c)],{'createDefaultConfig':()=>({'options':[],'optionSource':{'type':'manual'}}),'createDefaultValue':_0x1f9a4f=>_0x1f9a4f[_0x16a3f5(0x487)]??[]}),H(_0x1013ad['Person'],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Wn,{'createDefaultConfig':()=>({'allowMultiple':!0x1,'provider':_0x16a3f5(0x2c8)}),'validate':Gn}),H(_0x1013ad[_0x16a3f5(0xf7)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0,'supportsMultipleValues':!0x0},Hn,{'createDefaultConfig':()=>({'allowMultiple':!0x0,'provider':_0x16a3f5(0x16a)}),'createDefaultValue':_0x3e010f=>_0x3e010f[_0x16a3f5(0x487)]??[],'validate':Kn}),H(_0x1013ad[_0x16a3f5(0x2b2)],{'groupable':!0x0,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x235366=>un(_0x235366),{'createDefaultConfig':()=>Vn(),'validate':qn}),H(_0x1013ad['Attachment'],{'usableAsCardCover':!0x0,'supportsMultipleValues':!0x0},_0x2ea8a7=>_0x2ea8a7==null?[]:Array['isArray'](_0x2ea8a7)?_0x2ea8a7:[_0x2ea8a7],{'createDefaultValue':_0x1d78e8=>_0x1d78e8[_0x16a3f5(0x487)]??[]}),H(_0x1013ad[_0x16a3f5(0x302)],{},_0x48f924=>_0x48f924==null||_0x48f924===''?null:Number(_0x48f924),{'createDefaultConfig':()=>Bn(),'validate':Jn}),H(_0x1013ad[_0x16a3f5(0x205)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x26d22b=>_0x26d22b===!0x0||_0x26d22b===_0x16a3f5(0x1f3)||_0x26d22b===0x1||_0x26d22b==='1',{'createDefaultConfig':()=>({'icon':_0x16a3f5(0xfc),'color':_0x16a3f5(0xe5)}),'createDefaultValue':_0x1111fb=>_0x1111fb[_0x16a3f5(0x487)]??!0x1,'validate':_0xdc0916=>typeof _0xdc0916==_0x16a3f5(0x224)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x16a3f5(0x234)}}),H(_0x1013ad[_0x16a3f5(0x170)],{'supportsRelation':!0x0},Xn,{'createDefaultConfig':()=>({'placeholder':_0x16a3f5(0x238)}),'toPlainText':_0x3b9473=>Zn(_0x3b9473),'fromPlainText':_0x3fa913=>Xn(_0x3fa913)}),H(_0x1013ad[_0x16a3f5(0x3d9)],{'editable':!0x1},void 0x0,{'createDefaultConfig':()=>({'formula':'','dependencies':[],'numfmt':{'type':_0x16a3f5(0x42c),'pattern':_0x16a3f5(0x149)}}),'createDefaultValue':()=>null}),H(_0x1013ad[_0x16a3f5(0x1d8)],{'editable':!0x1,'usableAsTitle':!0x0},void 0x0,{'createDefaultConfig':()=>({'mode':_0x16a3f5(0x37f)}),'createDefaultValue':()=>null}),H(_0x1013ad[_0x16a3f5(0x1fc)],{'usableAsTitle':!0x0},_0x38a493=>_0x38a493==null?null:String(_0x38a493)[_0x16a3f5(0x140)](),{'validate':_0x1955ac=>_0x1955ac==null||_0x1955ac===''||/^\+?[0-9 ()-]{6,20}$/['test'](String(_0x1955ac))?{'valid':!0x0}:{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20phone\x20value.'}}),H(_0x1013ad[_0x16a3f5(0x20f)],{'usableAsTitle':!0x0},_0x4918f6=>_0x4918f6==null?null:String(_0x4918f6)[_0x16a3f5(0x140)](),{'validate':_0x6107e9=>_0x6107e9==null||_0x6107e9===''||$n(String(_0x6107e9))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x16a3f5(0x226)}}),H(_0x1013ad[_0x16a3f5(0x3e1)],{'usableAsGanttProgress':!0x0},_0x51528c=>_0x51528c==null||_0x51528c===''?null:Number(_0x51528c),{'createDefaultConfig':()=>({'format':_0x16a3f5(0x2ed),'decimalPlaces':0x0,'color':_0x16a3f5(0x465),'customRange':!0x1,'start':0x0,'end':0x64}),'validate':(_0x1d39da,_0x4d5058)=>Yn(_0x1d39da,_0x4d5058,_0x16a3f5(0x19f))}),H(_0x1013ad[_0x16a3f5(0x295)],{},_0x18e7a0=>_0x18e7a0==null||_0x18e7a0===''?null:Number(_0x18e7a0),{'createDefaultConfig':()=>({...Bn(),'currencySymbol':'$'}),'validate':Jn}),H(_0x1013ad[_0x16a3f5(0x20a)],{'groupable':!0x0,'usableAsKanbanGroup':!0x0},_0x314a51=>_0x314a51==null||_0x314a51===''?null:Number(_0x314a51),{'createDefaultConfig':()=>({'icon':_0x16a3f5(0x21d),'min':0x1,'max':0x5}),'createDefaultValue':()=>null,'validate':(_0x2cbbf8,_0x5cd5de)=>Yn(_0x2cbbf8,_0x5cd5de,'[BaseField]:\x20invalid\x20rating\x20value.')}),H(_0x1013ad[_0x16a3f5(0x12f)],{'supportsRelation':!0x0,'supportsMultipleValues':!0x0},Un,{'createDefaultConfig':()=>({'targetTableId':'','multiple':!0x1}),'createDefaultValue':()=>'','validate':(_0xe3aa51,_0x1f319f)=>ze(_0xe3aa51,_0x1f319f[_0x16a3f5(0x174)][_0x16a3f5(0x3eb)]===!0x0)}),H(_0x1013ad[_0x16a3f5(0x212)],{'editable':!0x1,'sortable':!0x0,'filterable':!0x0,'usableAsTitle':!0x0}),H(_0x1013ad['CreatedBy'],{'editable':!0x1,'groupable':!0x0},_0x4bd7ae=>_0x4bd7ae==null?null:String(_0x4bd7ae),{'createDefaultConfig':()=>({'provider':_0x16a3f5(0x25c)}),'createDefaultValue':()=>null}),H(_0x1013ad[_0x16a3f5(0x1d5)],{'editable':!0x1,'groupable':!0x0},_0x1dd639=>_0x1dd639==null?null:String(_0x1dd639),{'createDefaultConfig':()=>({'provider':_0x16a3f5(0x25c)}),'createDefaultValue':()=>null}),H(_0x1013ad[_0x16a3f5(0x483)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x49d742=>un(_0x49d742),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn}),H(_0x1013ad[_0x16a3f5(0xe4)],{'editable':!0x1,'usableAsCalendarDate':!0x0,'usableAsGanttStart':!0x0,'usableAsGanttEnd':!0x0},_0x39aa3d=>un(_0x39aa3d),{'createDefaultConfig':()=>Vn(),'createDefaultValue':()=>null,'validate':qn})];}function Bn(){const _0x56b0c3=_0x327967;return{'pattern':_0x56b0c3(0x395),'decimalPlaces':0x2,'separatorStyle':_0x56b0c3(0xea),'useThousands':!0x0,'abbreviation':_0x56b0c3(0x2d2),'allowNegative':!0x0};}function Vn(){const _0x12af3f=_0x327967;return{'locale':_0x12af3f(0x29d),'pattern':_0x12af3f(0x20c),'includeTime':!0x1,'hourCycle':'h24','defaultMode':_0x12af3f(0x2d2)};}function Hn(_0x42e61a){const _0x38b9fe=_0x327967;return _0x42e61a==null||_0x42e61a===''?[]:Array[_0x38b9fe(0x3fb)](_0x42e61a)?_0x42e61a[_0x38b9fe(0x412)](String):[String(_0x42e61a)];}function Un(_0x57dbef){const _0x3b697b=_0x327967;return typeof _0x57dbef==_0x3b697b(0x2a0)?_0x57dbef:'';}function Wn(_0x5ba25e,_0x50fb65){const _0x3855aa=_0x327967;return _0x5ba25e==null||_0x5ba25e===''?_0x50fb65[_0x3855aa(0x174)][_0x3855aa(0x118)]===!0x0?[]:null:_0x50fb65['config'][_0x3855aa(0x118)]===!0x0?Array[_0x3855aa(0x3fb)](_0x5ba25e)?_0x5ba25e['map'](String):[String(_0x5ba25e)]:Array[_0x3855aa(0x3fb)](_0x5ba25e)?String(_0x5ba25e[0x0]??'')||null:String(_0x5ba25e);}function Gn(_0xbbac2,_0x12eee7){const _0x3ef063=_0x327967;return _0x12eee7[_0x3ef063(0x174)][_0x3ef063(0x118)]===!0x0?Kn(_0xbbac2):_0xbbac2==null||_0xbbac2===''||typeof _0xbbac2==_0x3ef063(0x2a0)?{'valid':!0x0}:{'valid':!0x1,'reason':_0x3ef063(0x344)};}function Kn(_0x5dc35d){const _0x1afbca=_0x327967;return _0x5dc35d==null||Array[_0x1afbca(0x3fb)](_0x5dc35d)&&_0x5dc35d[_0x1afbca(0x44b)](_0x56d7dc=>typeof _0x56d7dc==_0x1afbca(0x2a0))?{'valid':!0x0}:{'valid':!0x1,'reason':_0x1afbca(0x310)};}function qn(_0x3b0f26){const _0xcd2d7a=_0x327967;return _0x3b0f26==null||typeof _0x3b0f26=='number'&&Number[_0xcd2d7a(0x138)](_0x3b0f26)?{'valid':!0x0}:{'valid':!0x1,'reason':_0xcd2d7a(0x290)};}function Jn(_0x45cf45,_0x3cac0d){const _0x500bde=_0x327967;return _0x45cf45==null||_0x45cf45===''?{'valid':!0x0}:typeof _0x45cf45!=_0x500bde(0x218)||!Number[_0x500bde(0x138)](_0x45cf45)?{'valid':!0x1,'reason':'[BaseField]:\x20invalid\x20number\x20value.'}:_0x3cac0d[_0x500bde(0x174)]['allowNegative']===!0x1&&_0x45cf45<0x0?{'valid':!0x1,'reason':_0x500bde(0x1fd)}:{'valid':!0x0};}function Yn(_0x409bee,_0x5c5b81,_0x4155ef){const _0x50a44f=_0x327967;let _0x5589f7=Jn(_0x409bee,_0x5c5b81);if(!_0x5589f7[_0x50a44f(0x48b)]||_0x409bee==null||_0x409bee==='')return _0x5589f7;let _0x2c6ad1=Number(_0x5c5b81['config'][_0x50a44f(0x37a)]??_0x5c5b81[_0x50a44f(0x174)][_0x50a44f(0x47f)]??0x0),_0x2ec129=Number(_0x5c5b81[_0x50a44f(0x174)]['max']??_0x5c5b81[_0x50a44f(0x174)][_0x50a44f(0x3c3)]??0x64),_0x546a9f=Number(_0x409bee);return _0x546a9f>=_0x2c6ad1&&_0x546a9f<=_0x2ec129?{'valid':!0x0}:{'valid':!0x1,'reason':_0x4155ef};}function Xn(_0x3e5693){const _0x3de853=_0x327967;if(_0x3e5693==null||_0x3e5693==='')return null;if(typeof _0x3e5693==_0x3de853(0x3d8)&&!Array['isArray'](_0x3e5693)){let _0x10d1f2=_0x3e5693,_0x52ee82=typeof _0x10d1f2['text']==_0x3de853(0x2a0)?_0x10d1f2[_0x3de853(0x179)][_0x3de853(0x140)]():'',_0x2abc7f=typeof _0x10d1f2[_0x3de853(0x15e)]==_0x3de853(0x2a0)?_0x10d1f2[_0x3de853(0x15e)][_0x3de853(0x140)]():'',_0x1b3301=Qn(_0x2abc7f||_0x52ee82);return _0x1b3301?{'text':_0x52ee82||_0x2abc7f||_0x1b3301,'url':_0x1b3301}:null;}let _0xba04a1=String(_0x3e5693)[_0x3de853(0x140)](),_0x47a34a=Qn(_0xba04a1);return _0x47a34a?{'text':_0xba04a1,'url':_0x47a34a}:null;}function Zn(_0x1545ed){const _0xaec375=_0x327967;if(_0x1545ed==null)return'';if(typeof _0x1545ed==_0xaec375(0x3d8)&&!Array['isArray'](_0x1545ed)){let _0x57c66a=_0x1545ed;return String(_0x57c66a['text']||_0x57c66a['url']||'');}return String(_0x1545ed);}function Qn(_0x151c3f){const _0x58d85b=_0x327967;let _0x5d4c4f=_0x151c3f[_0x58d85b(0x140)]();if(!_0x5d4c4f)return'';let _0x823d49=/^[a-z][a-z\d+.-]*:/i[_0x58d85b(0x3e2)](_0x5d4c4f)?_0x5d4c4f:_0x5d4c4f[_0x58d85b(0x2ad)]('//')?_0x58d85b(0x141)+_0x5d4c4f:_0x58d85b(0x156)+_0x5d4c4f;try{let _0x336629=new URL(_0x823d49);return _0x336629[_0x58d85b(0x1a3)]===_0x58d85b(0x1f9)||_0x336629[_0x58d85b(0x1a3)]==='https:'?_0x336629['href']:'';}catch{return'';}}function $n(_0x231287){const _0x40dbe5=_0x327967;let _0x3d8dcb=_0x231287[_0x40dbe5(0x1c5)]('@');if(_0x3d8dcb<=0x0||_0x3d8dcb!==_0x231287[_0x40dbe5(0x414)]('@'))return!0x1;let _0x57aab5=_0x231287[_0x40dbe5(0x348)](_0x3d8dcb+0x1);return _0x57aab5[_0x40dbe5(0x45c)]('.')&&!_0x231287['includes']('\x20')&&!_0x57aab5['startsWith']('.')&&!_0x57aab5['endsWith']('.');}const U={'table':_0x25bc3a=>[_0x327967(0x486),_0x25bc3a],'field':(_0x31fd1d,_0x328458)=>[_0x327967(0x486),_0x31fd1d,_0x327967(0x305),_0x328458],'fieldOrder':(_0xf03a91,_0x430381)=>['tables',_0xf03a91,_0x327967(0x1f8),_0x430381],'record':(_0x2cf561,_0x394f89)=>['tables',_0x2cf561,_0x327967(0x1d7),_0x394f89],'cell':(_0x31359c,_0x5abd1c,_0x172203)=>[_0x327967(0x486),_0x31359c,_0x327967(0x1d7),_0x5abd1c,_0x327967(0x259),_0x172203],'cellData':(_0x1a5120,_0x542970,_0x44106f)=>[_0x327967(0x486),_0x1a5120,_0x327967(0xdd),String(_0x542970),String(_0x44106f)],'attachmentSet':(_0x480d58,_0x5a3b95)=>['tables',_0x480d58,_0x327967(0x2b3),'attachmentSets',_0x5a3b95],'attachment':(_0xb17584,_0x3f2fc8)=>[_0x327967(0x486),_0xb17584,_0x327967(0x2b3),_0x327967(0x320),_0x3f2fc8],'view':(_0xca2b88,_0xce7aec)=>[_0x327967(0x486),_0xca2b88,_0x327967(0x1eb),_0xce7aec],'viewFieldHidden':(_0x2db12f,_0x413798,_0x34469c)=>[_0x327967(0x486),_0x2db12f,_0x327967(0x1eb),_0x413798,_0x327967(0x105),_0x34469c,_0x327967(0x30a)]};var W=class{[_0x327967(0x41e)](_0x5d4cbf,_0x35b12d){const _0x737873=_0x327967;let _0x4f38d0=this['renameFormulaUnitReferences'](_0x5d4cbf,_0x5d4cbf[_0x737873(0x158)],_0x35b12d);return R([this[_0x737873(0x435)]([_0x737873(0x158)],_0x5d4cbf['name'],_0x35b12d),..._0x4f38d0?[_0x4f38d0]:[]]);}[_0x327967(0x44f)](_0x1696df,_0x6100bf,_0x583608){const _0x4e64c1=_0x327967;let _0x2bdc71=Object[_0x4e64c1(0x259)](_0x1696df[_0x4e64c1(0x486)])['flatMap'](_0x48597d=>Object[_0x4e64c1(0x259)](_0x48597d[_0x4e64c1(0x305)])['flatMap'](_0x1a57b4=>{const _0x3f1c01=_0x4e64c1;var _0x50cf2e,_0x43c65b;if(_0x1a57b4[_0x3f1c01(0x346)]!==_0x1013ad[_0x3f1c01(0x3d9)])return[];let _0x46e4b3=String(((_0x50cf2e=_0x1a57b4[_0x3f1c01(0x174)])==null?void 0x0:_0x50cf2e[_0x3f1c01(0x377)])??''),_0x5ce4e3=_0x21a61d(_0x46e4b3,_0x6100bf,_0x583608);return _0x5ce4e3===_0x46e4b3?[]:[this[_0x3f1c01(0x435)]([...U[_0x3f1c01(0x1fe)](_0x48597d['id'],_0x1a57b4['id']),_0x3f1c01(0x174),_0x3f1c01(0x377)],(_0x43c65b=_0x1a57b4[_0x3f1c01(0x174)])==null?void 0x0:_0x43c65b[_0x3f1c01(0x377)],_0x5ce4e3)];}));return _0x2bdc71[_0x4e64c1(0x1bf)]>0x0?R(_0x2bdc71):void 0x0;}[_0x327967(0x378)](_0x538f80,_0x597a0c,_0x4cdb28=_0x538f80[_0x327967(0x39b)][_0x327967(0x1bf)]){const _0x810ac5=_0x327967;let _0x5b8f48=_0x54f542(_0x597a0c[_0x810ac5(0x158)],_0xbad9f1(_0x538f80)[_0x810ac5(0x259)](),_0x597a0c['formulaName']),_0x578140=_0x597a0c[_0x810ac5(0x3a8)]===_0x5b8f48?_0x597a0c:{..._0x597a0c,'formulaName':_0x5b8f48};return R([...this['_materializeFormulaTableNames'](_0x538f80),_0x43163e['insertOp'](U[_0x810ac5(0x496)](_0x597a0c['id']),_0x578140),_0x43163e[_0x810ac5(0xf4)](['tableOrder',_0x4cdb28],_0x597a0c['id'])]);}['renameTable'](_0x2d88ae,_0x2e42ce,_0x516103){const _0x47845a=_0x327967;let _0x5e41f1=_0x2d88ae[_0x47845a(0x486)][_0x2e42ce];return R([...this[_0x47845a(0x229)](_0x2d88ae),_0x43163e[_0x47845a(0x464)]([...U[_0x47845a(0x496)](_0x2e42ce),_0x47845a(0x158)],_0x5e41f1['name'],_0x516103)]);}['deleteTable'](_0x1ce553,_0xc4f4de){const _0x22218a=_0x327967;let _0x521202=_0x1ce553['tables'][_0xc4f4de],_0x638bfd=_0x1ce553[_0x22218a(0x39b)]['indexOf'](_0xc4f4de);return R([...this['_materializeFormulaTableNames'](_0x1ce553,new Set([_0xc4f4de])),_0x43163e[_0x22218a(0x3e5)](U[_0x22218a(0x496)](_0xc4f4de),_0x521202),_0x43163e['removeOp'](['tableOrder',_0x638bfd],_0xc4f4de)]);}[_0x327967(0x3ab)](_0x2ed5f4,_0x3cf800,_0xd32d){const _0x3e3d9c=_0x327967;return this[_0x3e3d9c(0x46e)](_0x2ed5f4,_0x3cf800,[_0xd32d]);}[_0x327967(0x46e)](_0x56309a,_0x23d33e,_0x12f459){const _0x4916ad=_0x327967;let _0x56ac17=_0x56309a[_0x4916ad(0x486)][_0x23d33e],_0x283f7b=_0x12f459['filter'](_0x2f0a63=>_0x2f0a63&&!_0x56ac17[_0x4916ad(0x1d7)][_0x2f0a63['id']])[_0x4916ad(0x412)](_0x3f5324=>({..._0x3f5324,'values':{..._0x3f5324['values'],[_0x40fc9d]:_0x3f5324['id']}}));if(!_0x283f7b[_0x4916ad(0x1bf)])return _0x43163e[_0x4916ad(0x464)]([...U[_0x4916ad(0x496)](_0x23d33e),_0x4916ad(0x1d7)],_0x56ac17[_0x4916ad(0x1d7)],_0x56ac17[_0x4916ad(0x1d7)]);let _0x75df02=new _0x43163e[(_0x4916ad(0x45e))](),_0x2673f4=[..._0x283f7b][_0x4916ad(0x460)]((_0x4c795d,_0x151ea6)=>_0x4c795d['id']<_0x151ea6['id']?-0x1:+(_0x4c795d['id']>_0x151ea6['id'])),_0x597d83=[...U[_0x4916ad(0x496)](_0x23d33e),_0x4916ad(0x1d7)];_0x75df02[_0x4916ad(0x35b)](_0x597d83);for(let _0x5147cd of _0x2673f4)_0x75df02[_0x4916ad(0x2c2)](_0x5147cd['id']),_0x75df02[_0x4916ad(0x29f)]('i',_0x5147cd),_0x75df02[_0x4916ad(0x2f3)]();for(let _0x439775=0x0;_0x439775<_0x597d83[_0x4916ad(0x1bf)];_0x439775+=0x1)_0x75df02[_0x4916ad(0x2f3)]();return R([_0x75df02[_0x4916ad(0x318)](),this[_0x4916ad(0x2a2)](_0x56309a,_0x23d33e,_0x283f7b)]);}[_0x327967(0x33a)](_0x59f8e1,_0x128265,_0x5a2433){const _0x2b83c1=_0x327967;return this[_0x2b83c1(0x109)](_0x59f8e1,_0x128265,[_0x5a2433]);}[_0x327967(0x109)](_0x5ba94e,_0x4c4145,_0x3ae1fc){const _0x72d877=_0x327967;let _0x426bde=_0x5ba94e[_0x72d877(0x486)][_0x4c4145],_0x1f71d2=Array[_0x72d877(0x1d1)](new Set(_0x3ae1fc))[_0x72d877(0x1be)](_0x4760de=>_0x426bde['records'][_0x4760de]);if(!_0x1f71d2[_0x72d877(0x1bf)])return _0x43163e[_0x72d877(0x464)]([...U['table'](_0x4c4145),_0x72d877(0x1d7)],_0x426bde[_0x72d877(0x1d7)],_0x426bde[_0x72d877(0x1d7)]);let _0x4b4c39=new Set(_0x1f71d2),_0x2a82dc=et(_0x426bde,_0x1f71d2)['map'](_0x4f1152=>this[_0x72d877(0x154)](_0x5ba94e,_0x4c4145,_0x4f1152[_0x72d877(0x345)],_0x4f1152[_0x72d877(0x173)],''));return R([this['_deleteRecordsBaseOp'](_0x5ba94e,_0x4c4145,_0x1f71d2,_0x4b4c39),..._0x2a82dc]);}[_0x327967(0x1ea)](_0x593cd1,_0xda686,_0x3cd0f4,_0x220b06){const _0x158413=_0x327967;let _0x2c9937=_0x593cd1[_0x158413(0x486)][_0x3cd0f4],_0x1546c1=Array[_0x158413(0x1d1)](new Set(_0x220b06))[_0x158413(0x1be)](_0x5deff1=>_0x2c9937['records'][_0x5deff1]),_0x5e9fb5=new Set(_0x1546c1);return R([new z()[_0x158413(0x38e)](_0x593cd1,this[_0x158413(0x494)](_0x593cd1,_0x3cd0f4,_0x1546c1,_0x5e9fb5)),...et(_0x2c9937,_0x1546c1)[_0x158413(0x412)](_0x198ae4=>this['updateCell'](_0xda686,_0x3cd0f4,_0x198ae4[_0x158413(0x345)],_0x198ae4[_0x158413(0x173)],_0x198ae4[_0x158413(0x410)]??''))]);}[_0x327967(0x494)](_0x4c0582,_0xc3e503,_0xc538b9,_0xa4fc49){const _0x546174=_0x327967;let _0xf4ab8f=_0x4c0582['tables'][_0xc3e503],_0x238c69=_0xc538b9[_0x546174(0x412)](_0x56bb33=>{const _0x91f38d=_0x546174;var _0x48256f;return{'recordId':_0x56bb33,'index':((_0x48256f=_0xf4ab8f['recordOrder'])==null?void 0x0:_0x48256f[_0x91f38d(0x1c5)](_0x56bb33))??-0x1};})[_0x546174(0x1be)](_0x2d9f5=>_0x2d9f5[_0x546174(0x1b6)]>=0x0)[_0x546174(0x460)]((_0x28de14,_0x565c42)=>_0x565c42[_0x546174(0x1b6)]-_0x28de14[_0x546174(0x1b6)]);return R([..._0xc538b9['map'](_0x589819=>_0x43163e['removeOp'](U[_0x546174(0x472)](_0xc3e503,_0x589819),_0xf4ab8f['records'][_0x589819])),..._0x238c69[_0x546174(0x412)](({recordId:_0x111e3c,index:_0x391a27})=>_0x43163e['removeOp']([_0x546174(0x486),_0xc3e503,_0x546174(0x1e2),_0x391a27],_0x111e3c)),...this[_0x546174(0x3d5)](_0xf4ab8f,_0xc3e503,_0x37ae96=>{const _0x35d2a6=_0x546174;let _0x2631bf=_0x37ae96[_0x35d2a6(0x348)](_0x37ae96[_0x35d2a6(0x414)]('\x1f')+0x1);return _0xa4fc49[_0x35d2a6(0x103)](_0x2631bf);})]);}[_0x327967(0x11d)](_0x58c759,_0xac9f70,_0x4d2bac,_0x381744){const _0x300a31=_0x327967;return this[_0x300a31(0x3ab)](_0x58c759,_0xac9f70,{..._0x381744,'values':{..._0x58c759[_0x300a31(0x486)][_0xac9f70]['records'][_0x4d2bac][_0x300a31(0x259)],..._0x381744['values'],[_0x40fc9d]:_0x381744['id']}});}[_0x327967(0x19e)](_0x59351e,_0x2afc40,_0x407571,_0x400042){const _0x10337e=_0x327967;let _0x2cc6da=_0x59351e[_0x10337e(0x486)][_0x2afc40],_0x2624db=[...U[_0x10337e(0x472)](_0x2afc40,_0x407571),_0x10337e(0x44c)],_0x57f36d=Object[_0x10337e(0x259)](_0x2cc6da[_0x10337e(0x1d7)])[_0x10337e(0x412)](_0x30128d=>_0x30128d['id']===_0x407571?{..._0x30128d,'orderKey':_0x400042}:_0x30128d)[_0x10337e(0x460)]((_0x4675a5,_0xc508f3)=>String(_0x4675a5['orderKey']??_0x4675a5['id'])[_0x10337e(0x3a4)](String(_0xc508f3[_0x10337e(0x44c)]??_0xc508f3['id'])))[_0x10337e(0x412)](_0x2a9a66=>_0x2a9a66['id']),_0x256e42=[...U[_0x10337e(0x496)](_0x2afc40),_0x10337e(0x1e2)];return R([this[_0x10337e(0x435)](_0x2624db,_0x2cc6da['records'][_0x407571][_0x10337e(0x44c)],_0x400042),_0x2cc6da[_0x10337e(0x1e2)]?_0x43163e[_0x10337e(0x464)](_0x256e42,_0x2cc6da[_0x10337e(0x1e2)],_0x57f36d):_0x43163e[_0x10337e(0xf4)](_0x256e42,_0x57f36d)]);}[_0x327967(0x154)](_0x5d42f5,_0x491bae,_0x52c8e8,_0x514337,_0x424323){const _0x35e495=_0x327967;var _0x21e205,_0x129934;let _0x2f9c63=_0x5d42f5['tables'][_0x491bae],_0x2714e7=ar(_0x2f9c63,_0x52c8e8,_0x514337)?_0x2f9c63:L(_0x2f9c63),_0x1b75fb=(_0x21e205=_0x2714e7[_0x35e495(0x257)])==null?void 0x0:_0x21e205[_0x52c8e8],_0x2d375d=(_0x129934=_0x2714e7['colIndex'])==null?void 0x0:_0x129934[_0x514337];if(_0x1b75fb==null||_0x2d375d==null){var _0x1c6110;return this['_replaceOptional'](U[_0x35e495(0x228)](_0x491bae,_0x52c8e8,_0x514337),(_0x1c6110=_0x5d42f5[_0x35e495(0x486)][_0x491bae])==null||(_0x1c6110=_0x1c6110[_0x35e495(0x1d7)][_0x52c8e8])==null?void 0x0:_0x1c6110[_0x35e495(0x259)][_0x514337],_0x424323);}return this['setRangeValues'](_0x5d42f5,_0x491bae,[{'row':_0x1b75fb,'col':_0x2d375d,'value':_0x424323}]);}['setRecordValues'](_0x25fd41,_0x435224,_0x923b78){const _0x176704=_0x327967;let _0x1412e2=_0x25fd41[_0x176704(0x486)][_0x435224],_0x17ec25=_0x923b78[_0x176704(0x44b)](_0x2d70b2=>Object[_0x176704(0x27a)](_0x2d70b2[_0x176704(0x259)])[_0x176704(0x44b)](_0x5c8cf2=>ar(_0x1412e2,_0x2d70b2[_0x176704(0x345)],_0x5c8cf2)))?_0x1412e2:L(_0x1412e2),_0x5e5de6=_0x923b78['flatMap'](_0xc247c3=>Object[_0x176704(0x209)](_0xc247c3[_0x176704(0x259)])[_0x176704(0xeb)](([_0x3e7c3f,_0x4d541f])=>{const _0x10298c=_0x176704;var _0x3968cd,_0x3d1c20;let _0x516860=(_0x3968cd=_0x17ec25['rowIndex'])==null?void 0x0:_0x3968cd[_0xc247c3[_0x10298c(0x345)]],_0xc43626=(_0x3d1c20=_0x17ec25[_0x10298c(0x22a)])==null?void 0x0:_0x3d1c20[_0x3e7c3f];return _0x516860==null||_0xc43626==null?[]:[{'row':_0x516860,'col':_0xc43626,'value':_0x4d541f}];})),_0x493530=_0x923b78[_0x176704(0xeb)](_0x1fb2fa=>Object[_0x176704(0x209)](_0x1fb2fa[_0x176704(0x37c)]??{})['map'](([_0x4e51dd,_0x12622a])=>{const _0x2a8020=_0x176704;var _0x4b279c;let _0x479262=[...U[_0x2a8020(0x472)](_0x435224,_0x1fb2fa[_0x2a8020(0x345)]),_0x4e51dd],_0x17cbaf=(_0x4b279c=_0x25fd41['tables'][_0x435224])==null||(_0x4b279c=_0x4b279c[_0x2a8020(0x1d7)][_0x1fb2fa[_0x2a8020(0x345)]])==null?void 0x0:_0x4b279c[_0x4e51dd];return this[_0x2a8020(0x435)](_0x479262,_0x17cbaf,_0x12622a);}));return R([this['setRangeValues'](_0x25fd41,_0x435224,_0x5e5de6),..._0x493530]);}[_0x327967(0x1c0)](_0x53c38e,_0x139907,_0x2d1b26){const _0x36cf36=_0x327967;let _0x4db7a4=_0x53c38e[_0x36cf36(0x486)][_0x139907],_0x5662c3=_0x2d1b26[_0x36cf36(0x44b)](_0x3f7f8b=>or(_0x4db7a4,_0x3f7f8b[_0x36cf36(0x124)],_0x3f7f8b[_0x36cf36(0x36b)]))?_0x4db7a4:L(_0x4db7a4),_0x3e2247=new Map(),_0xd0da1=_0x2d1b26[_0x36cf36(0xeb)](_0x366e30=>{const _0x44ea50=_0x36cf36;var _0x26ec00,_0x2dbc7d,_0x4f3266,_0x568f70;let _0x26900c=(_0x26ec00=_0x5662c3[_0x44ea50(0x2ba)])==null?void 0x0:_0x26ec00[_0x366e30[_0x44ea50(0x36b)]],_0x5735c9=(_0x2dbc7d=_0x5662c3['rowId'])==null?void 0x0:_0x2dbc7d[_0x366e30['row']],_0x3f2b9f=_0x26900c?_0x5662c3[_0x44ea50(0x305)][_0x26900c]:void 0x0;if(_0x26900c===_0x40fc9d||(_0x3f2b9f==null?void 0x0:_0x3f2b9f[_0x44ea50(0x346)])===_0x1013ad['RecordId'])throw Error(_0x44ea50(0x19c));let _0x4209dc=xt(_0x366e30[_0x44ea50(0x1e1)],_0x3f2b9f),_0x4cca6b=(_0x4f3266=_0x5662c3[_0x44ea50(0xdd)])==null||(_0x4f3266=_0x4f3266[_0x366e30[_0x44ea50(0x124)]])==null?void 0x0:_0x4f3266[_0x366e30['col']],_0x7f78a4=this[_0x44ea50(0x435)](U[_0x44ea50(0xdd)](_0x139907,_0x366e30['row'],_0x366e30[_0x44ea50(0x36b)]),_0x4cca6b,_0x4209dc);if(!_0x26900c||!_0x5735c9)return[_0x7f78a4];let _0xa2f928=(_0x568f70=_0x5662c3[_0x44ea50(0x1d7)][_0x5735c9])==null?void 0x0:_0x568f70['values'][_0x26900c],_0x39a4c3=(_0x3f2b9f==null?void 0x0:_0x3f2b9f[_0x44ea50(0x346)])===_0x1013ad['Attachment']?kt(_0x366e30[_0x44ea50(0x1e1)]):wt(_0x366e30[_0x44ea50(0x1e1)],_0x4209dc,_0x3f2b9f,_0x5662c3,_0x5735c9),_0x1adf30=[_0x7f78a4,this[_0x44ea50(0x435)](U[_0x44ea50(0x228)](_0x139907,_0x5735c9,_0x26900c),_0xa2f928,_0x39a4c3)];return(_0x3f2b9f==null?void 0x0:_0x3f2b9f[_0x44ea50(0x346)])===_0x1013ad[_0x44ea50(0x49d)]&&_0x3e2247[_0x44ea50(0x3fe)](Et(_0x26900c,_0x5735c9),{'recordId':_0x5735c9,'fieldId':_0x26900c,'attachments':_0x39a4c3}),_0x1adf30;});return _0xd0da1[_0x36cf36(0x1bf)]?R([..._0xd0da1,...this[_0x36cf36(0x432)](_0x5662c3,_0x139907,Array['from'](_0x3e2247[_0x36cf36(0x259)]()))]):_0x43163e[_0x36cf36(0x464)]([_0x36cf36(0x486),_0x139907,_0x36cf36(0xdd)],_0x5662c3[_0x36cf36(0xdd)],_0x5662c3['cellData']);}['createField'](_0x5c76ca,_0x7df360,_0x50f52e){const _0x3d8167=_0x327967;let _0x75273d=_0x5c76ca['tables'][_0x7df360];if(_0x75273d[_0x3d8167(0x305)][_0x50f52e[_0x3d8167(0x1fe)]['id']]||_0x75273d['fieldOrder'][_0x3d8167(0x45c)](_0x50f52e[_0x3d8167(0x1fe)]['id']))return _0x43163e[_0x3d8167(0x464)]([_0x3d8167(0x486),_0x7df360,'fieldOrder'],_0x75273d['fieldOrder'],_0x75273d[_0x3d8167(0x1f8)]);let _0x2430b1=Math[_0x3d8167(0x31a)](0x1,_0x50f52e[_0x3d8167(0x1b6)]??_0x75273d[_0x3d8167(0x1f8)]['length']),_0x16caf1=Object[_0x3d8167(0x259)](_0x75273d[_0x3d8167(0x1eb)]??{})[_0x3d8167(0xeb)](_0x40aaa6=>{const _0x404cff=_0x3d8167;var _0x5ba1f8;if(!_0x40aaa6['fieldOrder']||_0x40aaa6[_0x404cff(0x1f8)][_0x404cff(0x45c)](_0x50f52e[_0x404cff(0x1fe)]['id']))return[];let _0x1fa99f=ur(((_0x5ba1f8=_0x50f52e[_0x404cff(0x321)])==null?void 0x0:_0x5ba1f8[_0x40aaa6['id']])??_0x2430b1,_0x40aaa6[_0x404cff(0x1f8)]['length']);return[_0x43163e['insertOp']([...U['view'](_0x7df360,_0x40aaa6['id']),'fieldOrder',_0x1fa99f],_0x50f52e[_0x404cff(0x1fe)]['id'])];});return R([..._0x50f52e['field'][_0x3d8167(0x346)]===_0x1013ad['Formula']?this['_materializeFormulaTableNames'](_0x5c76ca):[],_0x43163e['insertOp'](U[_0x3d8167(0x1fe)](_0x7df360,_0x50f52e[_0x3d8167(0x1fe)]['id']),_0x50f52e[_0x3d8167(0x1fe)]),_0x43163e['insertOp'](U['fieldOrder'](_0x7df360,_0x2430b1),_0x50f52e[_0x3d8167(0x1fe)]['id']),..._0x16caf1]);}[_0x327967(0x400)](_0x2856a5,_0x5afb96,_0x3bf676,_0x114cc4){const _0xa70869=_0x327967;let _0x1f373c=_0x2856a5[_0xa70869(0x486)][_0x5afb96];if(!_0x1f373c['fields'][_0x3bf676]||_0x1f373c[_0xa70869(0x305)][_0x114cc4[_0xa70869(0x1fe)]['id']]||_0x1f373c['fieldOrder']['includes'](_0x114cc4[_0xa70869(0x1fe)]['id']))return _0x43163e[_0xa70869(0x464)]([_0xa70869(0x486),_0x5afb96,'fieldOrder'],_0x1f373c[_0xa70869(0x1f8)],_0x1f373c[_0xa70869(0x1f8)]);let _0x5984a7=_0x114cc4['index']??_0x1f373c[_0xa70869(0x1f8)][_0xa70869(0x1c5)](_0x3bf676)+0x1,_0x5ad1f7=_0x1f373c['fieldOrder'][_0xa70869(0x1be)](_0x107083=>_0x107083!==_0x114cc4[_0xa70869(0x1fe)]['id']),_0x5a88a6=cr(_0x5ad1f7,_0x114cc4['field']['id'],_0x5984a7),_0x5933c2=Object[_0xa70869(0x259)](_0x1f373c['views']??{})[_0xa70869(0xeb)](_0x37e1b9=>{const _0x579598=_0xa70869;var _0x2f656e,_0x43c6c9,_0x565372,_0x281d3d;let _0x397ac5=(_0x2f656e=_0x37e1b9['fieldOrder'])!=null&&_0x2f656e[_0x579598(0x1bf)]?_0x37e1b9['fieldOrder']:_0x5ad1f7;if(_0x397ac5['includes'](_0x114cc4[_0x579598(0x1fe)]['id']))return[];let _0x27f4a8=cr(_0x397ac5,_0x114cc4['field']['id'],((_0x43c6c9=_0x114cc4['viewIndexes'])==null?void 0x0:_0x43c6c9[_0x37e1b9['id']])??_0x5984a7),_0x29e22e=(_0x565372=_0x37e1b9[_0x579598(0x105)])==null?void 0x0:_0x565372[_0x3bf676];return[this[_0x579598(0x435)]([...U['view'](_0x5afb96,_0x37e1b9['id']),_0x579598(0x1f8)],_0x37e1b9[_0x579598(0x1f8)],_0x27f4a8),..._0x29e22e?[this[_0x579598(0x435)]([...U['view'](_0x5afb96,_0x37e1b9['id']),'fieldSettings',_0x114cc4[_0x579598(0x1fe)]['id']],(_0x281d3d=_0x37e1b9[_0x579598(0x105)])==null?void 0x0:_0x281d3d[_0x114cc4[_0x579598(0x1fe)]['id']],_0x29e22e)]:[]];}),_0x278e51=Object[_0xa70869(0x259)](_0x1f373c[_0xa70869(0x1d7)])[_0xa70869(0x1be)](_0x5d8d1c=>Object[_0xa70869(0x331)][_0xa70869(0x150)][_0xa70869(0x171)](_0x5d8d1c[_0xa70869(0x259)],_0x3bf676))[_0xa70869(0x412)](_0x5e9922=>this[_0xa70869(0x435)](U['cell'](_0x5afb96,_0x5e9922['id'],_0x114cc4[_0xa70869(0x1fe)]['id']),_0x5e9922[_0xa70869(0x259)][_0x114cc4['field']['id']],_0x5e9922[_0xa70869(0x259)][_0x3bf676]));return R([..._0x114cc4[_0xa70869(0x1fe)][_0xa70869(0x346)]===_0x1013ad[_0xa70869(0x3d9)]?this['_materializeFormulaTableNames'](_0x2856a5):[],_0x43163e[_0xa70869(0xf4)](U['field'](_0x5afb96,_0x114cc4[_0xa70869(0x1fe)]['id']),_0x114cc4[_0xa70869(0x1fe)]),_0x43163e[_0xa70869(0x464)](['tables',_0x5afb96,_0xa70869(0x1f8)],_0x1f373c[_0xa70869(0x1f8)],_0x5a88a6),..._0x5933c2,..._0x278e51]);}[_0x327967(0x3de)](_0x45ac55,_0x1fc259,_0x51f240,_0x55d4a0){const _0x2ca4a4=_0x327967;let _0x17510b=_0x45ac55[_0x2ca4a4(0x486)][_0x1fc259][_0x2ca4a4(0x305)][_0x51f240],_0x200e32={..._0x17510b,..._0x55d4a0};Object[_0x2ca4a4(0x27a)](_0x55d4a0)[_0x2ca4a4(0x29b)](_0x29cdcd=>{_0x55d4a0[_0x29cdcd]===void 0x0&&delete _0x200e32[_0x29cdcd];});let _0x610c10=er(_0x45ac55['tables'][_0x1fc259],_0x51f240,_0x17510b,_0x200e32);_0x200e32=_0x610c10['field'];let _0x23f0db=_0x43163e[_0x2ca4a4(0x464)](U[_0x2ca4a4(0x1fe)](_0x1fc259,_0x51f240),_0x17510b,_0x200e32);return _0x200e32[_0x2ca4a4(0x346)]===_0x1013ad['Formula']?R([...this[_0x2ca4a4(0x229)](_0x45ac55),_0x23f0db,...this[_0x2ca4a4(0x319)](_0x45ac55,_0x1fc259,_0x51f240,_0x200e32)]):R([_0x23f0db,..._0x610c10[_0x2ca4a4(0x14b)]['length']?[this['setRangeValues'](_0x45ac55,_0x1fc259,_0x610c10['patches'])]:[]]);}['changeFieldType'](_0x54d880,_0x275e0d,_0x1bb9db,_0x18822f){const _0x4e9dbf=_0x327967;return this[_0x4e9dbf(0x3de)](_0x54d880,_0x275e0d,_0x1bb9db,_0x18822f);}[_0x327967(0x42f)](_0x3f899f,_0xee3840,_0x4cef46){const _0xc0a8f2=_0x327967;let _0x369117=_0x3f899f['tables'][_0xee3840];if(!(_0x369117!=null&&_0x369117[_0xc0a8f2(0x305)][_0x4cef46])||_0x369117[_0xc0a8f2(0x44a)]===_0x4cef46||_0x4cef46===_0x40fc9d)return _0x43163e[_0xc0a8f2(0x464)]([_0xc0a8f2(0x486),_0xee3840,'fieldOrder'],_0x369117==null?void 0x0:_0x369117[_0xc0a8f2(0x1f8)],_0x369117==null?void 0x0:_0x369117['fieldOrder']);let _0x3997ab=_0x369117[_0xc0a8f2(0x1f8)]['indexOf'](_0x4cef46),_0x155a66=Object[_0xc0a8f2(0x259)](_0x369117['views'])[_0xc0a8f2(0xeb)](_0x176c38=>{const _0x1d0e35=_0xc0a8f2;var _0x5e89d5,_0x22b94f,_0xb56026,_0x23bdbf,_0xa29654,_0x54eb2a,_0x426407;let _0x49cff6=[],_0x517fc3=((_0x5e89d5=_0x176c38[_0x1d0e35(0x1f8)])==null?void 0x0:_0x5e89d5['indexOf'](_0x4cef46))??-0x1;_0x517fc3>=0x0&&_0x49cff6['push'](_0x43163e['removeOp']([...U[_0x1d0e35(0x333)](_0xee3840,_0x176c38['id']),_0x1d0e35(0x1f8),_0x517fc3],_0x4cef46));let _0x49ba5b=(_0x22b94f=_0x176c38[_0x1d0e35(0x105)])==null?void 0x0:_0x22b94f[_0x4cef46];_0x49ba5b!==void 0x0&&_0x49cff6[_0x1d0e35(0x161)](_0x43163e[_0x1d0e35(0x3e5)]([...U[_0x1d0e35(0x333)](_0xee3840,_0x176c38['id']),_0x1d0e35(0x105),_0x4cef46],_0x49ba5b));let _0x586e12=_0x176c38[_0x1d0e35(0x1be)]?{..._0x176c38[_0x1d0e35(0x1be)],'conditions':_0x176c38[_0x1d0e35(0x1be)][_0x1d0e35(0x39c)][_0x1d0e35(0x1be)](_0x2c2688=>_0x2c2688[_0x1d0e35(0x173)]!==_0x4cef46)}:_0x176c38[_0x1d0e35(0x1be)];_0x586e12&&_0x586e12[_0x1d0e35(0x39c)][_0x1d0e35(0x1bf)]!==((_0xb56026=_0x176c38['filter'])==null?void 0x0:_0xb56026['conditions'][_0x1d0e35(0x1bf)])&&_0x49cff6[_0x1d0e35(0x161)](this[_0x1d0e35(0x435)]([...U[_0x1d0e35(0x333)](_0xee3840,_0x176c38['id']),_0x1d0e35(0x1be)],_0x176c38[_0x1d0e35(0x1be)],_0x586e12));let _0x443c17=(_0x23bdbf=_0x176c38['sort'])==null?void 0x0:_0x23bdbf['filter'](_0x721ef6=>_0x721ef6['fieldId']!==_0x4cef46);_0x443c17&&_0x443c17[_0x1d0e35(0x1bf)]!==((_0xa29654=_0x176c38[_0x1d0e35(0x460)])==null?void 0x0:_0xa29654[_0x1d0e35(0x1bf)])&&_0x49cff6['push'](this[_0x1d0e35(0x435)]([...U[_0x1d0e35(0x333)](_0xee3840,_0x176c38['id']),_0x1d0e35(0x460)],_0x176c38[_0x1d0e35(0x460)],_0x443c17));let _0x997e43=(_0x54eb2a=_0x176c38['group'])==null?void 0x0:_0x54eb2a['filter'](_0x25e3c9=>_0x25e3c9[_0x1d0e35(0x173)]!==_0x4cef46);_0x997e43&&_0x997e43['length']!==((_0x426407=_0x176c38[_0x1d0e35(0x16a)])==null?void 0x0:_0x426407[_0x1d0e35(0x1bf)])&&_0x49cff6['push'](this[_0x1d0e35(0x435)]([...U['view'](_0xee3840,_0x176c38['id']),_0x1d0e35(0x16a)],_0x176c38[_0x1d0e35(0x16a)],_0x997e43));let _0x5cd20f=lr(_0x176c38[_0x1d0e35(0x174)],_0x4cef46);return JSON[_0x1d0e35(0xf8)](_0x5cd20f)!==JSON[_0x1d0e35(0xf8)](_0x176c38[_0x1d0e35(0x174)])&&_0x49cff6[_0x1d0e35(0x161)](_0x43163e['replaceOp']([...U[_0x1d0e35(0x333)](_0xee3840,_0x176c38['id']),'config'],_0x176c38[_0x1d0e35(0x174)],_0x5cd20f)),_0x49cff6;}),_0x28b911=Object[_0xc0a8f2(0x259)](_0x369117[_0xc0a8f2(0x1d7)])[_0xc0a8f2(0xeb)](_0x10b51d=>Object[_0xc0a8f2(0x331)]['hasOwnProperty'][_0xc0a8f2(0x171)](_0x10b51d[_0xc0a8f2(0x259)],_0x4cef46)?[_0x43163e[_0xc0a8f2(0x3e5)](U[_0xc0a8f2(0x228)](_0xee3840,_0x10b51d['id'],_0x4cef46),_0x10b51d[_0xc0a8f2(0x259)][_0x4cef46])]:[]);return R([_0x43163e['removeOp'](U[_0xc0a8f2(0x1fe)](_0xee3840,_0x4cef46),_0x369117[_0xc0a8f2(0x305)][_0x4cef46]),_0x43163e['removeOp'](U[_0xc0a8f2(0x1f8)](_0xee3840,_0x3997ab),_0x4cef46),..._0x155a66,..._0x28b911,...this[_0xc0a8f2(0x3d5)](_0x369117,_0xee3840,_0x42a07a=>_0x42a07a[_0xc0a8f2(0x2ad)](_0x4cef46+'\x1f'))]);}[_0x327967(0x420)](_0x1bdddd,_0x2e0215,_0x519699,_0x310a73){const _0x410c66=_0x327967;let _0x52a203=_0x1bdddd[_0x410c66(0x486)][_0x2e0215][_0x410c66(0x1f8)];if(_0x519699===_0x40fc9d||_0x310a73[_0x410c66(0x25b)]===_0x40fc9d)throw Error(_0x410c66(0x375));let _0x2fa377=sr(_0x52a203,_0x519699,_0x310a73);return _0x43163e[_0x410c66(0x464)]([_0x410c66(0x486),_0x2e0215,'fieldOrder'],_0x52a203,_0x2fa377);}['createView'](_0x4a45f8,_0xdb4e98,_0x5687d5,_0x19f2e6=_0x4a45f8[_0x327967(0x486)][_0xdb4e98][_0x327967(0x2e1)][_0x327967(0x1bf)]){const _0x2b9c89=_0x327967;return R([_0x43163e[_0x2b9c89(0xf4)](U[_0x2b9c89(0x333)](_0xdb4e98,_0x5687d5['id']),_0x5687d5),_0x43163e[_0x2b9c89(0xf4)]([_0x2b9c89(0x486),_0xdb4e98,'viewOrder',_0x19f2e6],_0x5687d5['id'])]);}[_0x327967(0x271)](_0x506aac,_0x41892e,_0x27db60,_0x2f808b){const _0x3c4b26=_0x327967;return _0x43163e[_0x3c4b26(0x464)]([...U['view'](_0x41892e,_0x27db60),_0x3c4b26(0x158)],_0x506aac[_0x3c4b26(0x486)][_0x41892e]['views'][_0x27db60][_0x3c4b26(0x158)],_0x2f808b);}['deleteView'](_0x183c1e,_0xf67c38,_0x5db56c){const _0x4bec9c=_0x327967;let _0x219531=_0x183c1e[_0x4bec9c(0x486)][_0xf67c38],_0x1d68e1=_0x219531['views'][_0x5db56c],_0x4add22=_0x219531[_0x4bec9c(0x2e1)][_0x4bec9c(0x1c5)](_0x5db56c);return R([_0x43163e['removeOp'](U['view'](_0xf67c38,_0x5db56c),_0x1d68e1),_0x43163e[_0x4bec9c(0x3e5)]([_0x4bec9c(0x486),_0xf67c38,_0x4bec9c(0x2e1),_0x4add22],_0x5db56c)]);}[_0x327967(0x2dc)](_0x4ec460,_0x191e1a,_0x1d9d9e,_0x2a4477){const _0x545b33=_0x327967;let _0x27b7f8=_0x4ec460[_0x545b33(0x486)][_0x191e1a][_0x545b33(0x2e1)],_0x213998=sr(_0x27b7f8,_0x1d9d9e,{'beforeFieldId':_0x2a4477[_0x545b33(0x372)],'afterFieldId':_0x2a4477['afterViewId']});return _0x43163e[_0x545b33(0x464)](['tables',_0x191e1a,_0x545b33(0x2e1)],_0x27b7f8,_0x213998);}[_0x327967(0x18c)](_0x4cd85e,_0x53f196,_0x4a4a4a,_0x594917){const _0x44e15a=_0x327967;let _0x1653e7=_0x4cd85e[_0x44e15a(0x486)][_0x53f196]['views'][_0x4a4a4a]['config']??{},_0xf77549={..._0x1653e7,..._0x594917};return Object[_0x44e15a(0x27a)](_0x594917)[_0x44e15a(0x29b)](_0x86d622=>{_0x594917[_0x86d622]===void 0x0&&delete _0xf77549[_0x86d622];}),_0x43163e[_0x44e15a(0x464)]([...U[_0x44e15a(0x333)](_0x53f196,_0x4a4a4a),'config'],_0x1653e7,_0xf77549);}[_0x327967(0x2e8)](_0x1e1482,_0x53c59f,_0x221759,_0x2fa6a2){const _0x15481f=_0x327967;return this[_0x15481f(0x435)]([...U['view'](_0x53c59f,_0x221759),_0x15481f(0x1be)],_0x1e1482[_0x15481f(0x486)][_0x53c59f]['views'][_0x221759]['filter'],_0x2fa6a2);}[_0x327967(0x2ae)](_0x199d73,_0x19848a,_0x3cf4ce,_0x2bfcad){const _0x5d231a=_0x327967;return this[_0x5d231a(0x435)]([...U[_0x5d231a(0x333)](_0x19848a,_0x3cf4ce),'sort'],_0x199d73['tables'][_0x19848a][_0x5d231a(0x1eb)][_0x3cf4ce][_0x5d231a(0x460)],_0x2bfcad);}[_0x327967(0x356)](_0xd16ea8,_0x41b1a3,_0x4447a7,_0x7ea441){const _0x4023ef=_0x327967;return this[_0x4023ef(0x435)]([...U[_0x4023ef(0x333)](_0x41b1a3,_0x4447a7),_0x4023ef(0x16a)],_0xd16ea8[_0x4023ef(0x486)][_0x41b1a3][_0x4023ef(0x1eb)][_0x4447a7]['group'],_0x7ea441);}['setViewFieldVisible'](_0x19976b,_0x4161eb,_0x1e7a79,_0x2b8174,_0x5b1694){const _0xccc74a=_0x327967;return this[_0xccc74a(0x267)](_0x19976b,_0x4161eb,_0x1e7a79,_0x2b8174,{'hidden':!_0x5b1694});}['setViewFieldWidth'](_0x42442a,_0x43dade,_0x12656d,_0x5b754,_0x41bd4b){const _0x2b34af=_0x327967;return this[_0x2b34af(0x267)](_0x42442a,_0x43dade,_0x12656d,_0x5b754,{'width':_0x41bd4b});}[_0x327967(0x25d)](_0x3de38f,_0x348b6b,_0xf394f0,_0x48d1c7,_0x420d8d){const _0x67cdbb=_0x327967;let _0x4823f2=_0x3de38f[_0x67cdbb(0x486)][_0x348b6b]['views'][_0xf394f0],_0x4ba11e=sr(_0x4823f2[_0x67cdbb(0x1f8)]??_0x3de38f[_0x67cdbb(0x486)][_0x348b6b][_0x67cdbb(0x1f8)],_0x48d1c7,_0x420d8d);return this[_0x67cdbb(0x435)]([...U[_0x67cdbb(0x333)](_0x348b6b,_0xf394f0),_0x67cdbb(0x1f8)],_0x4823f2[_0x67cdbb(0x1f8)],_0x4ba11e);}[_0x327967(0x267)](_0x7dcca6,_0x2f1d05,_0xa3e9d3,_0x5e824c,_0x197959){const _0x27aae8=_0x327967;let _0x498bf2=_0x7dcca6[_0x27aae8(0x486)][_0x2f1d05][_0x27aae8(0x1eb)][_0xa3e9d3][_0x27aae8(0x105)]??{},_0x56a8ec={..._0x498bf2,[_0x5e824c]:{..._0x498bf2[_0x5e824c],..._0x197959}};return this['_replaceOptional']([...U[_0x27aae8(0x333)](_0x2f1d05,_0xa3e9d3),'fieldSettings'],_0x7dcca6['tables'][_0x2f1d05][_0x27aae8(0x1eb)][_0xa3e9d3][_0x27aae8(0x105)],_0x56a8ec);}[_0x327967(0x2a2)](_0x3187fb,_0x1346b0,_0xd163b0){const _0x1262fd=_0x327967;let _0x3b2f3b=_0x3187fb[_0x1262fd(0x486)][_0x1346b0],_0x551cc4=new Set(_0xd163b0[_0x1262fd(0x412)](_0x43cb7e=>_0x43cb7e['id'])),_0x47995a=[...Object[_0x1262fd(0x259)](_0x3b2f3b[_0x1262fd(0x1d7)])[_0x1262fd(0x1be)](_0x5a4c32=>!_0x551cc4['has'](_0x5a4c32['id'])),..._0xd163b0]['sort']((_0x351563,_0x562798)=>String(_0x351563[_0x1262fd(0x44c)]??_0x351563['id'])[_0x1262fd(0x3a4)](String(_0x562798[_0x1262fd(0x44c)]??_0x562798['id'])))[_0x1262fd(0x412)](_0x494cff=>_0x494cff['id']),_0x199b1a=[...U[_0x1262fd(0x496)](_0x1346b0),_0x1262fd(0x1e2)];return _0x3b2f3b[_0x1262fd(0x1e2)]?_0x43163e[_0x1262fd(0x464)](_0x199b1a,_0x3b2f3b[_0x1262fd(0x1e2)],_0x47995a):_0x43163e[_0x1262fd(0xf4)](_0x199b1a,_0x47995a);}[_0x327967(0x229)](_0x279aed,_0x5cd0fd=new Set()){const _0x165468=_0x327967;let _0xcb5a33=_0xbad9f1(_0x279aed);return Object[_0x165468(0x259)](_0x279aed[_0x165468(0x486)])[_0x165468(0x1be)](_0x381c6d=>!_0x5cd0fd[_0x165468(0x103)](_0x381c6d['id']))[_0x165468(0x460)]((_0x2b2ac1,_0x5f1c80)=>_0x2b2ac1['id'][_0x165468(0x3a4)](_0x5f1c80['id']))['flatMap'](_0x18e753=>{const _0x334dc1=_0x165468;let _0xd3f7a4=_0xcb5a33[_0x334dc1(0x318)](_0x18e753['id']);return!_0xd3f7a4||_0x18e753['formulaName']===_0xd3f7a4?[]:[this['_replaceOptional']([...U[_0x334dc1(0x496)](_0x18e753['id']),_0x334dc1(0x3a8)],_0x18e753['formulaName'],_0xd3f7a4)];});}[_0x327967(0x319)](_0x573ebf,_0x340655,_0x1713c7,_0x49793c){const _0x3a59d8=_0x327967;var _0x35668c,_0x2564a2;let _0x23af63=L(_0x573ebf[_0x3a59d8(0x486)][_0x340655]),_0x494f1a=String(((_0x35668c=_0x49793c['config'])==null?void 0x0:_0x35668c[_0x3a59d8(0x377)])??'')[_0x3a59d8(0x140)](),_0x1bb998=(_0x2564a2=_0x23af63[_0x3a59d8(0x22a)])==null?void 0x0:_0x2564a2[_0x1713c7];if(_0x1bb998==null)return[];let _0x3d3d9c=_0x23af63['recordOrder']??Object['keys'](_0x23af63['records']),_0x3c3a08=_0x3d3d9c['map'](_0x293db7=>{var _0x3ed183;return(_0x3ed183=_0x23af63['rowIndex'])==null?void 0x0:_0x3ed183[_0x293db7];})[_0x3a59d8(0x451)](_0x249517=>_0x249517!=null);return _0x3d3d9c[_0x3a59d8(0xeb)](_0x4e2eaa=>{const _0x45eff5=_0x3a59d8;var _0x4b1b53,_0x516b1f;let _0x831e2b=(_0x4b1b53=_0x23af63['rowIndex'])==null?void 0x0:_0x4b1b53[_0x4e2eaa];if(_0x831e2b==null)return[];let _0x2adfbd=(_0x516b1f=_0x23af63[_0x45eff5(0xdd)])==null||(_0x516b1f=_0x516b1f[_0x831e2b])==null?void 0x0:_0x516b1f[_0x1bb998],_0x3a7b4f=_0x494f1a?_0x831e2b===_0x3c3a08?{'f':_0x494f1a,'si':_0x1713c7}:{'si':_0x1713c7}:{'v':null,'t':null};return[this[_0x45eff5(0x435)](U[_0x45eff5(0xdd)](_0x340655,_0x831e2b,_0x1bb998),_0x2adfbd,_0x3a7b4f)];});}[_0x327967(0x432)](_0x5b7fda,_0x439e32,_0x4913bd){const _0x108b5c=_0x327967;var _0x37aa08;let _0x49a9b7=new Map(Object[_0x108b5c(0x209)](((_0x37aa08=_0x5b7fda[_0x108b5c(0x2b3)])==null?void 0x0:_0x37aa08[_0x108b5c(0x40e)])??{})),_0x1b181a=new Map(),_0x4cc341=new Set(),_0x1caef2=_0x4913bd[_0x108b5c(0x412)](({recordId:_0x2b4243,fieldId:_0x5a4b42,attachments:_0x3f0ce7})=>{const _0x4cdd3b=_0x108b5c;var _0x5de884;let _0x4e9b88=Et(_0x5a4b42,_0x2b4243),_0x3685ce=_0x3f0ce7[_0x4cdd3b(0x412)]((_0x147a2b,_0x35eaaa)=>String(_0x147a2b['id']??_0x4e9b88+'\x1f'+_0x35eaaa));return _0x4cc341[_0x4cdd3b(0x12e)](_0x4e9b88),_0x49a9b7[_0x4cdd3b(0x3fe)](_0x4e9b88,_0x3685ce),_0x3f0ce7[_0x4cdd3b(0x29b)]((_0x59f288,_0x299692)=>{const _0x44c475=_0x4cdd3b;let _0x1df04a=_0x3685ce[_0x299692];_0x1b181a[_0x44c475(0x3fe)](_0x1df04a,{..._0x59f288,'id':_0x1df04a});}),this[_0x4cdd3b(0x435)](U[_0x4cdd3b(0x2ac)](_0x439e32,_0x4e9b88),(_0x5de884=_0x5b7fda[_0x4cdd3b(0x2b3)])==null||(_0x5de884=_0x5de884[_0x4cdd3b(0x40e)])==null?void 0x0:_0x5de884[_0x4e9b88],_0x3685ce);}),_0x54e79c=Array[_0x108b5c(0x1d1)](_0x1b181a)[_0x108b5c(0x412)](([_0xb0d6db,_0x5a3d43])=>{const _0x1c18dd=_0x108b5c;var _0x4b946f;return this['_replaceOptional'](U['attachment'](_0x439e32,_0xb0d6db),(_0x4b946f=_0x5b7fda['resources'])==null||(_0x4b946f=_0x4b946f[_0x1c18dd(0x320)])==null?void 0x0:_0x4b946f[_0xb0d6db],_0x5a3d43);}),_0x17f2f1=new Set(Array[_0x108b5c(0x1d1)](_0x49a9b7['values']())[_0x108b5c(0x2f5)]()),_0x4e106f=new Set(Array[_0x108b5c(0x1d1)](_0x4cc341)['flatMap'](_0x425d20=>{const _0x4369ea=_0x108b5c;var _0xf19904;return((_0xf19904=_0x5b7fda[_0x4369ea(0x2b3)])==null||(_0xf19904=_0xf19904['attachmentSets'])==null?void 0x0:_0xf19904[_0x425d20])??[];})),_0x585e31=Array[_0x108b5c(0x1d1)](_0x4e106f)['flatMap'](_0xb41eac=>{const _0x332384=_0x108b5c;var _0x90e6aa;let _0x2cb41b=(_0x90e6aa=_0x5b7fda[_0x332384(0x2b3)])==null||(_0x90e6aa=_0x90e6aa['attachments'])==null?void 0x0:_0x90e6aa[_0xb41eac];return _0x2cb41b!==void 0x0&&!_0x17f2f1[_0x332384(0x103)](_0xb41eac)?[_0x43163e[_0x332384(0x3e5)](U['attachment'](_0x439e32,_0xb41eac),_0x2cb41b)]:[];});return[..._0x1caef2,..._0x54e79c,..._0x585e31];}['_deleteAttachmentResources'](_0x4a446f,_0x57d283,_0x27d835){const _0x1319fd=_0x327967;var _0x4158da;let _0x3ecde0=((_0x4158da=_0x4a446f[_0x1319fd(0x2b3)])==null?void 0x0:_0x4158da[_0x1319fd(0x40e)])??{},_0x6701f4=Object[_0x1319fd(0x209)](_0x3ecde0)[_0x1319fd(0x1be)](([_0x2ae96b])=>_0x27d835(_0x2ae96b));if(!_0x6701f4['length'])return[];let _0x3e886f=new Set(Object[_0x1319fd(0x209)](_0x3ecde0)[_0x1319fd(0x1be)](([_0x3e5f7a])=>!_0x27d835(_0x3e5f7a))[_0x1319fd(0xeb)](([,_0x3220c6])=>_0x3220c6)),_0x5644b8=new Set(_0x6701f4[_0x1319fd(0xeb)](([,_0x5357de])=>_0x5357de));return[..._0x6701f4[_0x1319fd(0x412)](([_0x11f7d0,_0x1c1c43])=>_0x43163e[_0x1319fd(0x3e5)](U[_0x1319fd(0x2ac)](_0x57d283,_0x11f7d0),_0x1c1c43)),...Array['from'](_0x5644b8)[_0x1319fd(0xeb)](_0x1b0de9=>{const _0x4ab03d=_0x1319fd;var _0x57da8a;let _0x550ac7=(_0x57da8a=_0x4a446f[_0x4ab03d(0x2b3)])==null||(_0x57da8a=_0x57da8a[_0x4ab03d(0x320)])==null?void 0x0:_0x57da8a[_0x1b0de9];return _0x550ac7!==void 0x0&&!_0x3e886f['has'](_0x1b0de9)?[_0x43163e[_0x4ab03d(0x3e5)](U[_0x4ab03d(0x449)](_0x57d283,_0x1b0de9),_0x550ac7)]:[];})];}[_0x327967(0x435)](_0x2da5fd,_0x1ea502,_0x3c2701){return _0x1ea502===void 0x0?_0x43163e['insertOp'](_0x2da5fd,_0x3c2701):_0x43163e['replaceOp'](_0x2da5fd,_0x1ea502,_0x3c2701);}};function er(_0x56d62c,_0x4770db,_0x1b61f9,_0x960d5){const _0x5cf75a=_0x327967;var _0x114c29;let _0x31cb48=_0x960d5[_0x5cf75a(0x346)];if(_0x1b61f9[_0x5cf75a(0x346)]!==_0x31cb48||_0x31cb48!==_0x1013ad[_0x5cf75a(0x413)]&&_0x31cb48!==_0x1013ad[_0x5cf75a(0x190)]||tr(_0x960d5['config'][_0x5cf75a(0x29c)]))return{'field':_0x960d5,'patches':[]};let _0x49ec95=nr(_0x1b61f9),_0x432d28=nr(_0x960d5);if(![..._0x49ec95]['some'](_0x3aa34a=>!_0x432d28['has'](_0x3aa34a)))return{'field':_0x960d5,'patches':[]};let _0x18a1ee=rr(_0x960d5[_0x5cf75a(0x487)],_0x432d28,_0x31cb48),_0x117447=ir(_0x18a1ee,_0x960d5[_0x5cf75a(0x487)])?_0x960d5:{..._0x960d5,'defaultValue':_0x18a1ee},_0x26a6aa=L(_0x56d62c),_0xd48a20=(_0x114c29=_0x26a6aa[_0x5cf75a(0x22a)])==null?void 0x0:_0x114c29[_0x4770db];return _0xd48a20==null?{'field':_0x117447,'patches':[]}:{'field':_0x117447,'patches':(_0x26a6aa[_0x5cf75a(0x1e2)]??[])[_0x5cf75a(0xeb)](_0xeb0edf=>{var _0x198dfd,_0x179c12;let _0x6347bd=(_0x198dfd=_0x26a6aa['rowIndex'])==null?void 0x0:_0x198dfd[_0xeb0edf],_0x28640f=(_0x179c12=_0x26a6aa['records'][_0xeb0edf])==null?void 0x0:_0x179c12['values'][_0x4770db],_0x2cb2b1=rr(_0x28640f,_0x432d28,_0x31cb48);return _0x6347bd==null||ir(_0x2cb2b1,_0x28640f)?[]:[{'row':_0x6347bd,'col':_0xd48a20,'value':_0x2cb2b1??null}];})};}function tr(_0x24c7f6){const _0x159605=_0x327967;return typeof _0x24c7f6==_0x159605(0x3d8)&&!!_0x24c7f6&&_0x159605(0x346)in _0x24c7f6&&_0x24c7f6['type']===_0x159605(0x1fe);}function nr(_0x28900f){const _0x376afe=_0x327967;var _0x434de6;let _0x2715c9=Array[_0x376afe(0x3fb)]((_0x434de6=_0x28900f[_0x376afe(0x174)])==null?void 0x0:_0x434de6['options'])?_0x28900f[_0x376afe(0x174)][_0x376afe(0x495)]:[];return new Set(_0x2715c9[_0x376afe(0xeb)](_0xf393c1=>{if(!_0xf393c1||typeof _0xf393c1!='object'||!('id'in _0xf393c1))return[];let _0xd6a4e2=String(_0xf393c1['id']);return _0xd6a4e2?[_0xd6a4e2]:[];}));}function rr(_0x544376,_0x2e409e,_0x4fccac){const _0x2da09b=_0x327967;if(_0x544376==null||_0x544376==='')return _0x544376;if(_0x4fccac===_0x1013ad[_0x2da09b(0x413)])return _0x2e409e['has'](String(_0x544376))?_0x544376:null;let _0x14e94f=Array[_0x2da09b(0x3fb)](_0x544376)?_0x544376[_0x2da09b(0x412)](String):String(_0x544376)['split'](',')[_0x2da09b(0x412)](_0x3d369a=>_0x3d369a['trim']())[_0x2da09b(0x1be)](Boolean),_0x49b75d=_0x14e94f[_0x2da09b(0x1be)](_0x31c393=>_0x2e409e[_0x2da09b(0x103)](_0x31c393));return _0x49b75d[_0x2da09b(0x1bf)]===_0x14e94f[_0x2da09b(0x1bf)]?_0x544376:Array[_0x2da09b(0x3fb)](_0x544376)?_0x49b75d:String(_0x544376)['includes'](',')?_0x49b75d['join'](','):_0x49b75d[0x0]??[];}function ir(_0x5edc0e,_0x24832d){const _0x569e19=_0x327967;return JSON[_0x569e19(0xf8)](_0x5edc0e)===JSON['stringify'](_0x24832d);}function ar(_0x5445eb,_0x202661,_0x375626){const _0x458a74=_0x327967;var _0x530837,_0xa173a0,_0x2e9839,_0x41e0b4;let _0x5917c1=(_0x530837=_0x5445eb[_0x458a74(0x257)])==null?void 0x0:_0x530837[_0x202661],_0x50cef4=(_0xa173a0=_0x5445eb['colIndex'])==null?void 0x0:_0xa173a0[_0x375626];return _0x5917c1!=null&&_0x50cef4!=null&&((_0x2e9839=_0x5445eb['rowId'])==null?void 0x0:_0x2e9839[_0x5917c1])===_0x202661&&((_0x41e0b4=_0x5445eb[_0x458a74(0x2ba)])==null?void 0x0:_0x41e0b4[_0x50cef4])===_0x375626&&_0x5445eb[_0x458a74(0xdd)]!=null;}function or(_0x42607e,_0x307452,_0x44b5f3){const _0xb446ca=_0x327967;var _0x280efe,_0x148404;return((_0x280efe=_0x42607e[_0xb446ca(0x2a7)])==null?void 0x0:_0x280efe[_0x307452])!=null&&((_0x148404=_0x42607e['colId'])==null?void 0x0:_0x148404[_0x44b5f3])!=null&&_0x42607e['cellData']!=null;}function sr(_0x18a79f,_0x25a398,_0x40711a){const _0x3aeee7=_0x327967;let _0x1e59a7=_0x18a79f[_0x3aeee7(0x1be)](_0x41bebc=>_0x41bebc!==_0x25a398),_0x3dab15=_0x40711a[_0x3aeee7(0x25b)]?_0x1e59a7[_0x3aeee7(0x1c5)](_0x40711a['beforeFieldId']):_0x40711a['afterFieldId']?_0x1e59a7['indexOf'](_0x40711a[_0x3aeee7(0x338)])+0x1:_0x1e59a7[_0x3aeee7(0x1bf)];return _0x1e59a7[_0x3aeee7(0x147)](_0x3dab15<0x0?_0x1e59a7[_0x3aeee7(0x1bf)]:_0x3dab15,0x0,_0x25a398),_0x1e59a7;}function cr(_0x3920f7,_0x178e58,_0x26338d){const _0x3b64e0=_0x327967;let _0x5d4a4d=_0x3920f7[_0x3b64e0(0x1be)](_0xc36e00=>_0xc36e00!==_0x178e58);return _0x5d4a4d[_0x3b64e0(0x147)](ur(_0x26338d,_0x5d4a4d[_0x3b64e0(0x1bf)]),0x0,_0x178e58),_0x5d4a4d;}function lr(_0x1af860,_0x4f73e7,_0x1840b5){const _0x34904c=_0x327967;if(Array[_0x34904c(0x3fb)](_0x1af860))return _0x1840b5===_0x34904c(0x143)?_0x1af860[_0x34904c(0x1be)](_0x51bf70=>_0x51bf70!==_0x4f73e7):_0x1af860[_0x34904c(0xeb)](_0x52ba2a=>{const _0x5404ba=_0x34904c;if(_0x52ba2a&&typeof _0x52ba2a=='object'&&!Array[_0x5404ba(0x3fb)](_0x52ba2a)&&_0x52ba2a[_0x5404ba(0x173)]===_0x4f73e7)return[];let _0x54b713=lr(_0x52ba2a,_0x4f73e7);return _0x54b713===void 0x0?[]:[_0x54b713];});if(!_0x1af860||typeof _0x1af860!=_0x34904c(0x3d8))return _0x1840b5!=null&&_0x1840b5[_0x34904c(0x18b)]('FieldId')&&_0x1af860===_0x4f73e7?void 0x0:_0x1af860;let _0x2625c1=_0x1af860;if(_0x2625c1[_0x34904c(0x173)]!==_0x4f73e7)return Object[_0x34904c(0x49f)](Object['entries'](_0x2625c1)['flatMap'](([_0x2aec04,_0x4485ef])=>{if(_0x2aec04===_0x4f73e7&&_0x1840b5==='fieldSettings')return[];let _0x4e591a=lr(_0x4485ef,_0x4f73e7,_0x2aec04);return _0x4e591a===void 0x0?[]:[[_0x2aec04,_0x4e591a]];}));}function ur(_0x5b61e1,_0x5313a3){const _0xca240a=_0x327967;return Math[_0xca240a(0x31a)](0x0,Math[_0xca240a(0x37a)](_0x5b61e1,_0x5313a3));}function dr(_0x38299e){'@babel/helpers - typeof';const _0x4958b6=_0x327967;return dr=typeof Symbol==_0x4958b6(0x2ef)&&typeof Symbol[_0x4958b6(0x166)]=='symbol'?function(_0x299aab){return typeof _0x299aab;}:function(_0xc0a2ff){const _0x37b96e=_0x4958b6;return _0xc0a2ff&&typeof Symbol==_0x37b96e(0x2ef)&&_0xc0a2ff[_0x37b96e(0x16c)]===Symbol&&_0xc0a2ff!==Symbol[_0x37b96e(0x331)]?'symbol':typeof _0xc0a2ff;},dr(_0x38299e);}function fr(_0x54d835,_0x3f0126){const _0x286091=_0x327967;if(dr(_0x54d835)!=_0x286091(0x3d8)||!_0x54d835)return _0x54d835;var _0x453c06=_0x54d835[Symbol['toPrimitive']];if(_0x453c06!==void 0x0){var _0xec7454=_0x453c06[_0x286091(0x171)](_0x54d835,_0x3f0126||_0x286091(0x11c));if(dr(_0xec7454)!=_0x286091(0x3d8))return _0xec7454;throw TypeError(_0x286091(0x298));}return(_0x3f0126===_0x286091(0x2a0)?String:Number)(_0x54d835);}function pr(_0x3ffa87){const _0x3a9206=_0x327967;var _0xd1b183=fr(_0x3ffa87,_0x3a9206(0x2a0));return dr(_0xd1b183)==_0x3a9206(0x41c)?_0xd1b183:_0xd1b183+'';}function G(_0xf5b987,_0x959e9e,_0x5f388b){const _0x273cbc=_0x327967;return(_0x959e9e=pr(_0x959e9e))in _0xf5b987?Object[_0x273cbc(0x24b)](_0xf5b987,_0x959e9e,{'value':_0x5f388b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf5b987[_0x959e9e]=_0x5f388b,_0xf5b987;}const mr=_0x1ada6c(_0x327967(0x18a));var hr=class extends _0x4de356{constructor(..._0x1e77fd){const _0xb3a469=_0x327967;super(..._0x1e77fd),G(this,_0xb3a469(0x3ce),new Map());}[_0x327967(0x263)](_0x39eb07){const _0x51be7d=_0x327967;return this['_plugins'][_0x51be7d(0x3fe)](_0x39eb07[_0x51be7d(0x346)],_0x39eb07),_0x569b00(()=>this['_plugins']['delete'](_0x39eb07[_0x51be7d(0x346)]));}['get'](_0x375108){const _0x12b61f=_0x327967;let _0x2bf239=this['_plugins'][_0x12b61f(0x318)](_0x375108);if(!_0x2bf239)throw Error(_0x12b61f(0x470)+_0x375108+'\x22\x20is\x20not\x20registered.');return _0x2bf239;}['getTypePlugin'](_0x23a71c){const _0x322518=_0x327967;return this[_0x322518(0x3ce)][_0x322518(0x318)](_0x23a71c);}[_0x327967(0x24a)](){const _0x5490ba=_0x327967;return Array['from'](this[_0x5490ba(0x3ce)]['values']());}},gr=class{constructor(_0x3d8a76){const _0x154c73=_0x327967;this[_0x154c73(0x409)]=_0x3d8a76,G(this,_0x154c73(0x346),_0x230625['Base']),G(this,_0x154c73(0x399),_0x3709ae['Comment']),G(this,_0x154c73(0x45a),_0x1ebfa9[_0x154c73(0x364)]),G(this,'id',void 0x0),G(this,_0x154c73(0x1e1),!0x0),this['id']=this['type']+'.'+this[_0x154c73(0x399)]+'_'+_0x3d8a76;}},_r=class{constructor(_0x2a01a0){const _0x3c7749=_0x327967;this[_0x3c7749(0x409)]=_0x2a01a0,G(this,'type',_0x230625[_0x3c7749(0x336)]),G(this,_0x3c7749(0x399),_0x3709ae[_0x3c7749(0x2ea)]),G(this,_0x3c7749(0x45a),_0x1ebfa9[_0x3c7749(0x364)]),G(this,'id',void 0x0),G(this,_0x3c7749(0x1e1),!0x0),this['id']=this[_0x3c7749(0x346)]+'.'+this[_0x3c7749(0x399)]+'_'+_0x2a01a0;}},vr=class{constructor(_0x5bc94a){const _0x4fb104=_0x327967;this[_0x4fb104(0x409)]=_0x5bc94a,G(this,_0x4fb104(0x346),_0x230625['Base']),G(this,_0x4fb104(0x399),_0x3709ae[_0x4fb104(0x474)]),G(this,'status',_0x1ebfa9[_0x4fb104(0x364)]),G(this,'id',void 0x0),G(this,_0x4fb104(0x1e1),!0x0),this['id']=this[_0x4fb104(0x346)]+'.'+this[_0x4fb104(0x399)]+'_'+_0x5bc94a;}},yr=class{constructor(_0x423317){const _0x5e30fa=_0x327967;this['unitId']=_0x423317,G(this,_0x5e30fa(0x346),_0x230625[_0x5e30fa(0x336)]),G(this,'subType',_0x3709ae['Export']),G(this,_0x5e30fa(0x45a),_0x1ebfa9[_0x5e30fa(0x364)]),G(this,'id',void 0x0),G(this,_0x5e30fa(0x1e1),!0x0),this['id']=this[_0x5e30fa(0x346)]+'.'+this[_0x5e30fa(0x399)]+'_'+_0x423317;}},br=class{constructor(_0x5e3637,_0x11f013){const _0x338588=_0x327967;this['unitId']=_0x5e3637,this[_0x338588(0x136)]=_0x11f013,G(this,_0x338588(0x346),_0x230625['BaseDashboard']),G(this,_0x338588(0x399),_0x3709ae[_0x338588(0x474)]),G(this,'status',_0x1ebfa9[_0x338588(0x364)]),G(this,'id',void 0x0),G(this,_0x338588(0x1e1),!0x0),this['id']=this[_0x338588(0x346)]+'.'+this[_0x338588(0x399)]+'_'+_0x5e3637+'_'+_0x11f013;}},xr=class{constructor(_0x493f72,_0x93e5f4){const _0x26cbc1=_0x327967;this[_0x26cbc1(0x409)]=_0x493f72,this[_0x26cbc1(0x136)]=_0x93e5f4,G(this,_0x26cbc1(0x346),_0x230625['BaseField']),G(this,_0x26cbc1(0x399),_0x3709ae[_0x26cbc1(0x474)]),G(this,'status',_0x1ebfa9['INIT']),G(this,'id',void 0x0),G(this,_0x26cbc1(0x1e1),!0x0),this['id']=this[_0x26cbc1(0x346)]+'.'+this['subType']+'_'+_0x493f72+'_'+_0x93e5f4;}},Sr=class{constructor(_0x340c6c,_0x261d26){const _0x5c996f=_0x327967;this[_0x5c996f(0x409)]=_0x340c6c,this[_0x5c996f(0x136)]=_0x261d26,G(this,_0x5c996f(0x346),_0x230625[_0x5c996f(0x163)]),G(this,_0x5c996f(0x399),_0x3709ae['Edit']),G(this,'status',_0x1ebfa9[_0x5c996f(0x364)]),G(this,'id',void 0x0),G(this,_0x5c996f(0x1e1),!0x0),this['id']=this[_0x5c996f(0x346)]+'.'+this[_0x5c996f(0x399)]+'_'+_0x340c6c+'_'+_0x261d26;}},Cr=class{constructor(_0xa931b6,_0x3db753){const _0x4ac565=_0x327967;this[_0x4ac565(0x409)]=_0xa931b6,this[_0x4ac565(0x136)]=_0x3db753,G(this,_0x4ac565(0x346),_0x230625['BaseTable']),G(this,_0x4ac565(0x399),_0x3709ae[_0x4ac565(0x474)]),G(this,_0x4ac565(0x45a),_0x1ebfa9[_0x4ac565(0x364)]),G(this,'id',void 0x0),G(this,'value',!0x0),this['id']=this[_0x4ac565(0x346)]+'.'+this[_0x4ac565(0x399)]+'_'+_0xa931b6+'_'+_0x3db753;}},wr=class{constructor(_0x5ac375,_0x592a42){const _0x5e1083=_0x327967;this[_0x5e1083(0x409)]=_0x5ac375,this[_0x5e1083(0x136)]=_0x592a42,G(this,_0x5e1083(0x346),_0x230625['BaseView']),G(this,'subType',_0x3709ae['Edit']),G(this,_0x5e1083(0x45a),_0x1ebfa9['INIT']),G(this,'id',void 0x0),G(this,_0x5e1083(0x1e1),!0x0),this['id']=this[_0x5e1083(0x346)]+'.'+this[_0x5e1083(0x399)]+'_'+_0x5ac375+'_'+_0x592a42;}};const Tr=[_0x3709ae[_0x327967(0x474)],_0x3709ae['Copy'],_0x3709ae['Export'],_0x3709ae[_0x327967(0x1dd)]],Er=new Set([_0x230625[_0x327967(0x336)],_0x230625['BaseTable'],_0x230625[_0x327967(0x262)],_0x230625[_0x327967(0x163)],_0x230625['BaseView'],_0x230625[_0x327967(0x27d)]]),Dr='table/',Or=_0x327967(0x144),kr=_0x327967(0x2ab),Ar=_0x327967(0x3ed),jr='dashboard/';function K(_0x47c717){return''+Dr+encodeURIComponent(_0x47c717);}function q(_0x4b892e,_0x200291){return''+Or+encodeURIComponent(_0x4b892e)+'/'+encodeURIComponent(_0x200291);}function J(_0xe6e937,_0x36965d){return''+kr+encodeURIComponent(_0xe6e937)+'/'+encodeURIComponent(_0x36965d);}function Mr(_0x44ad88,_0x44fd39){return''+Ar+encodeURIComponent(_0x44ad88)+'/'+encodeURIComponent(_0x44fd39);}function Nr(_0x3c41ff){return''+jr+encodeURIComponent(_0x3c41ff);}function Pr(_0x4725c0,_0x1b4b94,_0x149830){const _0x46e3b4=_0x327967;if(_0x1b4b94===_0x4725c0)switch(_0x149830){case _0x3709ae['Edit']:return new vr(_0x4725c0);case _0x3709ae['Copy']:return new _r(_0x4725c0);case _0x3709ae['Export']:return new yr(_0x4725c0);case _0x3709ae[_0x46e3b4(0x1dd)]:return new gr(_0x4725c0);default:throw Error(_0x46e3b4(0x3c7)+_0x149830);}if(_0x149830!==_0x3709ae['Edit'])throw Error(_0x46e3b4(0x1de)+_0x1b4b94);if(_0x1b4b94[_0x46e3b4(0x2ad)](Dr))return new Cr(_0x4725c0,_0x1b4b94);if(_0x1b4b94[_0x46e3b4(0x2ad)](Or))return new xr(_0x4725c0,_0x1b4b94);if(_0x1b4b94[_0x46e3b4(0x2ad)](kr))return new Sr(_0x4725c0,_0x1b4b94);if(_0x1b4b94['startsWith'](Ar))return new wr(_0x4725c0,_0x1b4b94);if(_0x1b4b94[_0x46e3b4(0x2ad)](jr))return new br(_0x4725c0,_0x1b4b94);throw Error(_0x46e3b4(0x2d1)+_0x1b4b94);}function Fr(_0x431597,_0x3571ab,_0x43f40c,_0x64948c){const _0x3f2624=_0x327967;var _0x5be926;return((_0x5be926=_0x431597['getPermissionPoint'](Pr(_0x3571ab,_0x43f40c,_0x64948c)['id']))==null?void 0x0:_0x5be926[_0x3f2624(0x1e1)])??!0x0;}function Ir(_0x2d97dd,_0x98c35c,_0x127455,_0x143a67,_0x2f7ad1){const _0x26c825=_0x327967;let _0x464242=Pr(_0x98c35c,_0x127455,_0x143a67);_0x2d97dd[_0x26c825(0x45b)](_0x464242['id'])||_0x2d97dd[_0x26c825(0x46a)](_0x464242),_0x2d97dd[_0x26c825(0x260)](_0x464242['id'],_0x2f7ad1);}function Lr(_0x4d9bb2,_0x4852af,_0x47d6a1,_0x1edf06){const _0x4c63d4=_0x327967;_0x4d9bb2[_0x4c63d4(0x4a5)](Pr(_0x4852af,_0x47d6a1,_0x1edf06)['id']);}function Rr(_0xc80399,_0x5ad6ef){const _0x340087=_0x327967;_0xc80399[_0x340087(0x22f)]()[_0x340087(0x29b)]((_0x4d8f1a,_0x129975)=>{const _0xe08c0c=_0x340087;_0x4d8f1a[_0xe08c0c(0x16f)](_0x4b7a01=>{const _0x306971=_0xe08c0c;Er['has'](_0x4b7a01[_0x306971(0x346)])&&_0x306971(0x409)in _0x4b7a01&&_0x4b7a01[_0x306971(0x409)]===_0x5ad6ef&&_0xc80399['deletePermissionPoint'](_0x129975);})['unsubscribe']();});}function zr(_0x40caa3,_0x1a9a0e,_0x3ebff9){const _0x16ff40=_0x327967;return Fr(_0x40caa3,_0x1a9a0e,_0x1a9a0e,_0x3709ae[_0x16ff40(0x474)])&&Array['from'](_0x3ebff9)[_0x16ff40(0x44b)](_0x1e698d=>Fr(_0x40caa3,_0x1a9a0e,_0x1e698d,_0x3709ae[_0x16ff40(0x474)]));}function Y(_0x496732,_0xc491e6){return function(_0x123ae1,_0x26ed7a){_0xc491e6(_0x123ae1,_0x26ed7a,_0x496732);};}function X(_0x2c3d2e,_0x1763c0,_0x5e1fc2,_0xb8bc22){const _0x3f7eb4=_0x327967;var _0x5c8255=arguments['length'],_0x475624=_0x5c8255<0x3?_0x1763c0:_0xb8bc22===null?_0xb8bc22=Object[_0x3f7eb4(0x266)](_0x1763c0,_0x5e1fc2):_0xb8bc22,_0x3a8882;if(typeof Reflect==_0x3f7eb4(0x3d8)&&typeof Reflect[_0x3f7eb4(0x2bd)]==_0x3f7eb4(0x2ef))_0x475624=Reflect[_0x3f7eb4(0x2bd)](_0x2c3d2e,_0x1763c0,_0x5e1fc2,_0xb8bc22);else{for(var _0x4cb024=_0x2c3d2e[_0x3f7eb4(0x1bf)]-0x1;_0x4cb024>=0x0;_0x4cb024--)(_0x3a8882=_0x2c3d2e[_0x4cb024])&&(_0x475624=(_0x5c8255<0x3?_0x3a8882(_0x475624):_0x5c8255>0x3?_0x3a8882(_0x1763c0,_0x5e1fc2,_0x475624):_0x3a8882(_0x1763c0,_0x5e1fc2))||_0x475624);}return _0x5c8255>0x3&&_0x475624&&Object[_0x3f7eb4(0x24b)](_0x1763c0,_0x5e1fc2,_0x475624),_0x475624;}const Br=_0x1ada6c('base.permission.service');let Vr=class extends _0x4de356{constructor(_0x176871,_0x36ae5d){const _0x40e63a=_0x327967;super(),this[_0x40e63a(0x1ae)]=_0x176871,this[_0x40e63a(0x3f8)]=_0x36ae5d,G(this,_0x40e63a(0x3b2),new Map()),G(this,_0x40e63a(0x21c),new Map()),G(this,_0x40e63a(0x3c5),new Map()),G(this,_0x40e63a(0x162),new Map()),G(this,_0x40e63a(0x485),new Map()),G(this,_0x40e63a(0x44e),new Map()),this[_0x40e63a(0x29e)](this[_0x40e63a(0x3f8)][_0x40e63a(0x38d)](_0x49a6be[_0x40e63a(0xf9)])[_0x40e63a(0x16f)](_0x55b3dc=>this[_0x40e63a(0x47a)](_0x55b3dc[_0x40e63a(0x40a)]())));}[_0x327967(0x2c7)](_0x40bc93){const _0x5d4f5d=_0x327967;var _0x255b89;return this[_0x5d4f5d(0x447)](_0x40bc93,[])&&(((_0x255b89=this[_0x5d4f5d(0x3b2)][_0x5d4f5d(0x318)](_0x40bc93))==null?void 0x0:_0x255b89['createTable'])??!0x0);}[_0x327967(0x1d9)](_0x68fda1){return this['_canEditTable'](_0x68fda1);}[_0x327967(0x258)](_0x1613fc){const _0x5ca3f7=_0x327967;var _0x19019f;return this[_0x5ca3f7(0x3b1)](_0x1613fc)&&(((_0x19019f=this['_tablePermissions'][_0x5ca3f7(0x318)](_0x1613fc))==null?void 0x0:_0x19019f[_0x5ca3f7(0x253)])??!0x0);}[_0x327967(0x22c)](_0x437b8c){const _0x588787=_0x327967;var _0x49e1be;return this[_0x588787(0x3b1)](_0x437b8c)&&(((_0x49e1be=this[_0x588787(0x21c)][_0x588787(0x318)](_0x437b8c))==null?void 0x0:_0x49e1be[_0x588787(0x24c)])??!0x0);}[_0x327967(0x285)](_0x4af35,_0x367dc5){const _0x4e93bc=_0x327967;var _0x356096;return this[_0x4e93bc(0x3b1)](_0x4af35)&&this[_0x4e93bc(0x447)](_0x4af35,[q(_0x4af35,_0x367dc5)])&&(((_0x356096=this[_0x4e93bc(0x3c5)][_0x4e93bc(0x318)](Ur(_0x4af35,_0x367dc5)))==null?void 0x0:_0x356096['edit'])??!0x0);}[_0x327967(0x3cd)](_0x248a40,_0xb88cf2){const _0x54f854=_0x327967;var _0x2cd0b8;return this[_0x54f854(0x285)](_0x248a40,_0xb88cf2)&&(((_0x2cd0b8=this[_0x54f854(0x3c5)][_0x54f854(0x318)](Ur(_0x248a40,_0xb88cf2)))==null?void 0x0:_0x2cd0b8['delete'])??!0x0);}[_0x327967(0x2b6)](_0x407391){const _0x1138ab=_0x327967;var _0x5344a4;return this[_0x1138ab(0x3b1)](_0x407391)&&(((_0x5344a4=this[_0x1138ab(0x21c)]['get'](_0x407391))==null?void 0x0:_0x5344a4[_0x1138ab(0x3ab)])??!0x0);}[_0x327967(0x32a)](_0x2d6f75,_0x42c530){const _0x1742d1=_0x327967;var _0x5dbcd0;let _0x3e872e=this[_0x1742d1(0x162)][_0x1742d1(0x318)](Wr(_0x2d6f75,_0x42c530));return this[_0x1742d1(0x447)](_0x2d6f75,[K(_0x2d6f75),J(_0x2d6f75,_0x42c530)])&&(((_0x5dbcd0=this[_0x1742d1(0x21c)][_0x1742d1(0x318)](_0x2d6f75))==null?void 0x0:_0x5dbcd0['edit'])??!0x0)&&((_0x3e872e==null?void 0x0:_0x3e872e[_0x1742d1(0x248)])??!0x0)&&((_0x3e872e==null?void 0x0:_0x3e872e[_0x1742d1(0x380)])??!0x0);}[_0x327967(0x3d4)](_0x3b27f1,_0xc0969d){const _0x326016=_0x327967;var _0x1cd91e,_0x262d90,_0x9a1e37;return this[_0x326016(0x447)](_0x3b27f1,[K(_0x3b27f1),J(_0x3b27f1,_0xc0969d)])&&(((_0x1cd91e=this[_0x326016(0x21c)][_0x326016(0x318)](_0x3b27f1))==null?void 0x0:_0x1cd91e[_0x326016(0x248)])??!0x0)&&(((_0x262d90=this['_recordPermissions'][_0x326016(0x318)](Wr(_0x3b27f1,_0xc0969d)))==null?void 0x0:_0x262d90[_0x326016(0x248)])??!0x0)&&(((_0x9a1e37=this['_recordPermissions']['get'](Wr(_0x3b27f1,_0xc0969d)))==null?void 0x0:_0x9a1e37[_0x326016(0x253)])??!0x0);}[_0x327967(0x255)](_0x3e731c,_0x22573a,_0x6855d3){const _0x25f53c=_0x327967;var _0x26ffa8,_0x418eb9,_0x4bb16d;let _0x57d61d=this[_0x25f53c(0x3c5)][_0x25f53c(0x318)](Ur(_0x3e731c,_0x6855d3));return this['_canEdit'](_0x3e731c,[K(_0x3e731c),q(_0x3e731c,_0x6855d3),J(_0x3e731c,_0x22573a)])&&(((_0x26ffa8=this['_tablePermissions'][_0x25f53c(0x318)](_0x3e731c))==null?void 0x0:_0x26ffa8[_0x25f53c(0x248)])??!0x0)&&(((_0x418eb9=this[_0x25f53c(0x162)]['get'](Wr(_0x3e731c,_0x22573a)))==null?void 0x0:_0x418eb9[_0x25f53c(0x248)])??!0x0)&&(((_0x4bb16d=this['_recordPermissions'][_0x25f53c(0x318)](Wr(_0x3e731c,_0x22573a)))==null?void 0x0:_0x4bb16d[_0x25f53c(0x380)])??!0x0)&&((_0x57d61d==null?void 0x0:_0x57d61d[_0x25f53c(0x248)])??!0x0)&&((_0x57d61d==null?void 0x0:_0x57d61d[_0x25f53c(0x380)])??!0x0);}['canManageView'](_0x13dc61,_0x3c35a2){const _0x34bb8e=_0x327967;var _0x151608,_0x381eaa,_0x23ff6f;return this['_canEdit'](_0x13dc61,[K(_0x13dc61),Mr(_0x13dc61,_0x3c35a2)])&&(((_0x151608=this[_0x34bb8e(0x21c)]['get'](_0x13dc61))==null?void 0x0:_0x151608[_0x34bb8e(0x248)])??!0x0)&&(((_0x381eaa=this[_0x34bb8e(0x485)][_0x34bb8e(0x318)](Gr(_0x13dc61,_0x3c35a2)))==null?void 0x0:_0x381eaa[_0x34bb8e(0x248)])??!0x0)&&(((_0x23ff6f=this[_0x34bb8e(0x21c)]['get'](_0x13dc61))==null?void 0x0:_0x23ff6f[_0x34bb8e(0x273)])??!0x0);}['setBasePermission'](_0x1d9dc7,_0x1ebd43){const _0x42be4d=_0x327967;this[_0x42be4d(0x3b2)][_0x42be4d(0x3fe)](_0x1d9dc7,{...this[_0x42be4d(0x3b2)][_0x42be4d(0x318)](_0x1d9dc7),..._0x1ebd43}),_0x1ebd43[_0x42be4d(0x248)]!==void 0x0&&Ir(this['_permissionService'],_0x1d9dc7,_0x1d9dc7,_0x3709ae[_0x42be4d(0x474)],_0x1ebd43[_0x42be4d(0x248)]);}[_0x327967(0x13f)](_0x1d9920,_0x3f3abf){const _0x1ff764=_0x327967;this[_0x1ff764(0x26c)](_0x1d9920),this[_0x1ff764(0x21c)][_0x1ff764(0x3fe)](_0x1d9920,{...this[_0x1ff764(0x21c)][_0x1ff764(0x318)](_0x1d9920),..._0x3f3abf}),this[_0x1ff764(0x191)](_0x1d9920,K(_0x1d9920),_0x3f3abf[_0x1ff764(0x248)]);}[_0x327967(0x371)](_0x45387b,_0x16bc7f,_0x2e6290){const _0x3d76b9=_0x327967;this['_rememberTable'](_0x45387b);let _0x4ababb=Ur(_0x45387b,_0x16bc7f);this[_0x3d76b9(0x3c5)][_0x3d76b9(0x3fe)](_0x4ababb,{...this['_fieldPermissions'][_0x3d76b9(0x318)](_0x4ababb),..._0x2e6290}),this[_0x3d76b9(0x191)](_0x45387b,q(_0x45387b,_0x16bc7f),_0x2e6290[_0x3d76b9(0x248)]);}[_0x327967(0x1a4)](_0x3d52e2,_0x2eb662,_0x1bf341){const _0x1cec1c=_0x327967;this[_0x1cec1c(0x26c)](_0x3d52e2);let _0x59522b=Wr(_0x3d52e2,_0x2eb662);this[_0x1cec1c(0x162)][_0x1cec1c(0x3fe)](_0x59522b,{...this['_recordPermissions'][_0x1cec1c(0x318)](_0x59522b),..._0x1bf341}),this[_0x1cec1c(0x191)](_0x3d52e2,J(_0x3d52e2,_0x2eb662),_0x1bf341[_0x1cec1c(0x248)]);}[_0x327967(0x393)](_0x28ee39,_0x4d870f,_0x549d13){const _0x51bd43=_0x327967;this[_0x51bd43(0x26c)](_0x28ee39);let _0x71bf2f=Gr(_0x28ee39,_0x4d870f);this[_0x51bd43(0x485)]['set'](_0x71bf2f,{...this[_0x51bd43(0x485)][_0x51bd43(0x318)](_0x71bf2f),..._0x549d13}),this[_0x51bd43(0x191)](_0x28ee39,Mr(_0x28ee39,_0x4d870f),_0x549d13['edit']);}[_0x327967(0x3b5)](_0x18c2c9){const _0x3123b7=_0x327967;this[_0x3123b7(0x3b2)]['delete'](_0x18c2c9),Lr(this[_0x3123b7(0x1ae)],_0x18c2c9,_0x18c2c9,_0x3709ae['Edit']);}[_0x327967(0x31b)](_0x41222a){const _0xa65e20=_0x327967;this[_0xa65e20(0x21c)][_0xa65e20(0x253)](_0x41222a),this[_0xa65e20(0xf3)](_0x41222a,K(_0x41222a));}[_0x327967(0x339)](_0x35e014,_0x2e5638){const _0x3dfb41=_0x327967;this[_0x3dfb41(0x3c5)][_0x3dfb41(0x253)](Ur(_0x35e014,_0x2e5638)),this['_clearObjectEdit'](_0x35e014,q(_0x35e014,_0x2e5638));}[_0x327967(0x235)](_0x5381eb,_0x471a57){const _0x4e90c0=_0x327967;this['_recordPermissions']['delete'](Wr(_0x5381eb,_0x471a57)),this[_0x4e90c0(0xf3)](_0x5381eb,J(_0x5381eb,_0x471a57));}[_0x327967(0x15d)](_0x1929d7,_0x3cc34c){const _0x196c93=_0x327967;this[_0x196c93(0x485)][_0x196c93(0x253)](Gr(_0x1929d7,_0x3cc34c)),this['_clearObjectEdit'](_0x1929d7,Mr(_0x1929d7,_0x3cc34c));}['getSnapshot'](){const _0x2184a1=_0x327967;return{'bases':Object[_0x2184a1(0x49f)](this[_0x2184a1(0x3b2)]),'tables':Object['fromEntries'](this['_tablePermissions']),'fields':Object[_0x2184a1(0x49f)](this[_0x2184a1(0x3c5)]),'records':Object[_0x2184a1(0x49f)](this[_0x2184a1(0x162)]),'views':Object[_0x2184a1(0x49f)](this[_0x2184a1(0x485)])};}[_0x327967(0x3b1)](_0x4643d8){const _0x3a85e2=_0x327967;var _0x2e02eb;return this['_canEdit'](_0x4643d8,[K(_0x4643d8)])&&(((_0x2e02eb=this[_0x3a85e2(0x21c)]['get'](_0x4643d8))==null?void 0x0:_0x2e02eb[_0x3a85e2(0x248)])??!0x0);}['_canEdit'](_0x57b6e1,_0x4a84cf){const _0x39fdbd=_0x327967;var _0x59f277;let _0x5e6147=this[_0x39fdbd(0x440)](_0x57b6e1);return!_0x5e6147||zr(this['_permissionService'],_0x5e6147,_0x4a84cf)&&(((_0x59f277=this[_0x39fdbd(0x3b2)][_0x39fdbd(0x318)](_0x5e6147))==null?void 0x0:_0x59f277[_0x39fdbd(0x248)])??!0x0);}[_0x327967(0x191)](_0xda77b4,_0x1633b0,_0x2e3612){const _0x3fb77b=_0x327967;if(_0x2e3612===void 0x0)return;let _0x32244a=this[_0x3fb77b(0x440)](_0xda77b4);_0x32244a&&Ir(this[_0x3fb77b(0x1ae)],_0x32244a,_0x1633b0,_0x3709ae['Edit'],_0x2e3612);}['_clearObjectEdit'](_0x4017ea,_0x12fbc8){const _0x54e9aa=_0x327967;let _0x13e880=this[_0x54e9aa(0x440)](_0x4017ea);_0x13e880&&Lr(this[_0x54e9aa(0x1ae)],_0x13e880,_0x12fbc8,_0x3709ae['Edit']);}[_0x327967(0x440)](_0x7ed045){const _0x3e1430=_0x327967;var _0x46bc6e;let _0x355493=this[_0x3e1430(0x3f8)][_0x3e1430(0x1d4)](_0x7ed045,_0x49a6be[_0x3e1430(0xf9)]);return _0x355493?_0x355493[_0x3e1430(0x40a)]():(_0x46bc6e=this[_0x3e1430(0x3f8)]['getAllUnitsForType'](_0x49a6be[_0x3e1430(0xf9)])[_0x3e1430(0x451)](_0x33dd51=>!!_0x33dd51[_0x3e1430(0x32b)]()[_0x3e1430(0x486)][_0x7ed045]))==null?void 0x0:_0x46bc6e[_0x3e1430(0x40a)]();}[_0x327967(0x26c)](_0x4d9eb1){const _0x40267d=_0x327967;let _0x428096=this[_0x40267d(0x440)](_0x4d9eb1);_0x428096&&this[_0x40267d(0x44e)][_0x40267d(0x3fe)](_0x4d9eb1,_0x428096);}[_0x327967(0x47a)](_0x48839b){const _0x2c8271=_0x327967;this[_0x2c8271(0x3b2)][_0x2c8271(0x253)](_0x48839b),this['_tableBaseIds'][_0x2c8271(0x29b)]((_0x303975,_0x3c9389)=>{const _0x1f5272=_0x2c8271;_0x303975===_0x48839b&&(this[_0x1f5272(0x21c)]['delete'](_0x3c9389),Hr(this[_0x1f5272(0x3c5)],_0x3c9389+'\x1f'),Hr(this[_0x1f5272(0x162)],_0x3c9389+'\x1f'),Hr(this[_0x1f5272(0x485)],_0x3c9389+'\x1f'),this[_0x1f5272(0x44e)][_0x1f5272(0x253)](_0x3c9389));});}};Vr=X([Y(0x0,_0x5cc725),Y(0x1,_0x3a38b9)],Vr);function Hr(_0x30aaff,_0x435dc1){const _0x44ab5c=_0x327967;_0x30aaff[_0x44ab5c(0x29b)]((_0x5a607f,_0x41f5e7)=>{const _0x1f0bec=_0x44ab5c;_0x41f5e7[_0x1f0bec(0x2ad)](_0x435dc1)&&_0x30aaff['delete'](_0x41f5e7);});}function Ur(_0x9824a8,_0x4b4fbb){return _0x9824a8+'\x1f'+_0x4b4fbb;}function Wr(_0x393613,_0x3f7aa4){return _0x393613+'\x1f'+_0x3f7aa4;}function Gr(_0x55d0ad,_0x225969){return _0x55d0ad+'\x1f'+_0x225969;}const Kr=_0x1ada6c(_0x327967(0x3a7));let qr=class{constructor(_0x25c14a,_0x4cb0b5=Jr(),_0xbd9d8e={}){const _0x3854bf=_0x327967;this[_0x3854bf(0x1ae)]=_0x25c14a,this['_fieldRegistry']=_0x4cb0b5,this[_0x3854bf(0x34c)]=_0xbd9d8e,G(this,_0x3854bf(0x3cf),new W()),G(this,_0x3854bf(0x27e),new z());}[_0x327967(0x378)](_0x3edded,_0x21add9,_0x2df74f){const _0xda8acf=_0x327967;if(!this['_permissionService'][_0xda8acf(0x2c7)](_0x3edded[_0xda8acf(0x40a)]()))throw Error(_0xda8acf(0x3fc));_0x15f38a(_0x21add9),this[_0xda8acf(0x40d)](_0x3edded,this[_0xda8acf(0x3cf)]['createTable'](_0x3edded[_0xda8acf(0x32b)](),_0x21add9,_0x2df74f));}[_0x327967(0x48f)](_0x3896b3,_0x26afda,_0x832db1){const _0x17d7e3=_0x327967;if(!this['_permissionService'][_0x17d7e3(0x1d9)](_0x26afda))throw Error('[BaseCommandService]:\x20cannot\x20edit\x20table.');this[_0x17d7e3(0x40d)](_0x3896b3,this[_0x17d7e3(0x3cf)][_0x17d7e3(0x48f)](_0x3896b3[_0x17d7e3(0x32b)](),_0x26afda,_0x832db1));}[_0x327967(0x277)](_0x3fbcca,_0x3c40a1){const _0x359455=_0x327967;if(!this[_0x359455(0x1ae)][_0x359455(0x258)](_0x3c40a1))throw Error(_0x359455(0x31f));let _0x57499b=He(_0x3fbcca[_0x359455(0x32b)](),_0x3c40a1);if(_0x57499b[_0x359455(0x1bf)]>0x0)throw Error(_0x359455(0x42b)+_0x57499b[_0x359455(0x412)](_0x52932b=>_0x52932b['tableId']+'.'+_0x52932b[_0x359455(0x173)])[_0x359455(0x3a1)](',\x20')+').');this[_0x359455(0x40d)](_0x3fbcca,this[_0x359455(0x3cf)]['deleteTable'](_0x3fbcca[_0x359455(0x32b)](),_0x3c40a1));}[_0x327967(0x154)](_0x380138,_0x32f5b1,_0x2991ce,_0x3ef390,_0x17045a){const _0x153608=_0x327967;this[_0x153608(0x40d)](_0x380138,this['createUpdateCellOp'](_0x380138,_0x32f5b1,_0x2991ce,_0x3ef390,_0x17045a));}[_0x327967(0x249)](_0xbd97cb,_0x2d9e45,_0x28fadc){const _0x53e8c0=_0x327967;this[_0x53e8c0(0x40d)](_0xbd97cb,this[_0x53e8c0(0x289)](_0xbd97cb,_0x2d9e45,_0x28fadc));}['createRecord'](_0x33729f,_0x5ece88,_0x26b52f){const _0x429798=_0x327967;this['_apply'](_0x33729f,this[_0x429798(0x1fb)](_0x33729f,_0x5ece88,_0x26b52f));}[_0x327967(0x3a0)](_0x3a6d2c,_0x548351,_0x1dd75b,_0x2d4f9a,_0x3ee6c1){const _0xda88f1=_0x327967;let _0x40923f=_0x3a6d2c[_0xda88f1(0x32b)](),_0x58482e=this[_0xda88f1(0x41b)](_0x40923f,_0x548351,_0x1dd75b,_0x2d4f9a,_0x3ee6c1),_0x1d4771=this[_0xda88f1(0x198)](_0x40923f,_0x548351,_0x1dd75b,{[_0x2d4f9a]:_0x58482e});return this['_factory'][_0xda88f1(0x249)](_0x40923f,_0x548351,[_0x1d4771]);}['createSetRecordValuesOp'](_0x301b6c,_0x4a9635,_0xc99672){const _0x910e2=_0x327967;let _0x14b36a=_0x301b6c['getSnapshot'](),_0x1a3ad2=_0xc99672[_0x910e2(0x412)](_0x34b017=>this['_withModifiedSystemValues'](_0x14b36a,_0x4a9635,_0x34b017['recordId'],{...Object[_0x910e2(0x49f)](Object[_0x910e2(0x209)](_0x34b017[_0x910e2(0x259)])['map'](([_0x3739dd,_0x22b036])=>[_0x3739dd,this['_normalizeCellValue'](_0x14b36a,_0x4a9635,_0x34b017[_0x910e2(0x345)],_0x3739dd,_0x22b036)]))}));return this[_0x910e2(0x3cf)]['setRecordValues'](_0x14b36a,_0x4a9635,_0x1a3ad2);}[_0x327967(0x1fb)](_0x30d1ff,_0x1747ce,_0x28605b){const _0x24b676=_0x327967;if(!this[_0x24b676(0x1ae)][_0x24b676(0x2b6)](_0x1747ce))throw Error(_0x24b676(0x452));let _0x24e409=_0x30d1ff[_0x24b676(0x32b)](),_0x5d9c1d=this[_0x24b676(0x43f)](_0x24e409[_0x24b676(0x486)][_0x1747ce]);return this[_0x24b676(0x3cf)][_0x24b676(0x3ab)](_0x24e409,_0x1747ce,this[_0x24b676(0x202)](_0x24e409,_0x1747ce,_0x28605b,_0x5d9c1d));}[_0x327967(0x3ad)](_0x392997,_0x280381,_0x15db8b){const _0x4859ce=_0x327967;if(!this[_0x4859ce(0x1ae)]['canCreateRecord'](_0x280381))throw Error(_0x4859ce(0x452));let _0x5d4ff0=_0x392997[_0x4859ce(0x32b)]();return I(_0x4859ce(0xe3),()=>{const _0x4b33a0=_0x4859ce;let _0x9bda83=this['_createNumberingAllocators'](_0x5d4ff0[_0x4b33a0(0x486)][_0x280381]);return this[_0x4b33a0(0x3cf)][_0x4b33a0(0x46e)](_0x5d4ff0,_0x280381,_0x15db8b[_0x4b33a0(0x412)](_0x2a80d6=>this[_0x4b33a0(0x202)](_0x5d4ff0,_0x280381,_0x2a80d6,_0x9bda83)));},{'existingRecords':Object[_0x4859ce(0x27a)](_0x5d4ff0[_0x4859ce(0x486)][_0x280381][_0x4859ce(0x1d7)])['length'],'records':_0x15db8b[_0x4859ce(0x1bf)]});}['createCreateFieldOp'](_0x530827,_0x5492e5,_0x14ba8c,_0x5bec47,_0x5b5cd2){const _0x4d96d4=_0x327967;if(!this[_0x4d96d4(0x1ae)][_0x4d96d4(0x22c)](_0x5492e5))throw Error(_0x4d96d4(0x490));let _0x5bbd76=_0x530827[_0x4d96d4(0x32b)]();if(this['_assertFieldDefinition'](_0x5bbd76,_0x14ba8c),_0x5bec47===0x0)throw Error(_0x4d96d4(0x157));let _0x15d73d=this[_0x4d96d4(0x3cf)][_0x4d96d4(0x24c)](_0x5bbd76,_0x5492e5,{'field':_0x14ba8c,'index':_0x5bec47,'viewIndexes':_0x5b5cd2}),_0x165097=this[_0x4d96d4(0x24e)](_0x5bbd76,_0x5492e5,_0x14ba8c);if(!_0x165097[_0x4d96d4(0x1bf)])return _0x15d73d;let _0x2ed1ee=this[_0x4d96d4(0x27e)]['applyOp'](_0x5bbd76,_0x15d73d);return R([_0x15d73d,this[_0x4d96d4(0x3cf)][_0x4d96d4(0x249)](_0x2ed1ee,_0x5492e5,_0x165097)]);}[_0x327967(0x33a)](_0x189199,_0x1bc39b,_0x3fcc11){const _0xd4ca0e=_0x327967;if(!this['_permissionService']['canDeleteRecord'](_0x1bc39b,_0x3fcc11))throw Error(_0xd4ca0e(0x1bd));this[_0xd4ca0e(0x40d)](_0x189199,this['_factory'][_0xd4ca0e(0x33a)](_0x189199[_0xd4ca0e(0x32b)](),_0x1bc39b,_0x3fcc11));}[_0x327967(0x11d)](_0x5a8e0d,_0x2cca9a,_0xd3fa8a,_0x10aaeb){const _0x3a03ca=_0x327967;if(!this[_0x3a03ca(0x1ae)]['canCreateRecord'](_0x2cca9a))throw Error('[BaseCommandService]:\x20cannot\x20create\x20record.');this[_0x3a03ca(0x40d)](_0x5a8e0d,this[_0x3a03ca(0x3cf)][_0x3a03ca(0x11d)](_0x5a8e0d['getSnapshot'](),_0x2cca9a,_0xd3fa8a,{..._0x10aaeb,'values':{..._0x10aaeb[_0x3a03ca(0x259)],[_0x40fc9d]:_0x10aaeb['id']}}));}[_0x327967(0x19e)](_0x12185f,_0x3842ea,_0x3cc3c7,_0x1e0c10){const _0x5041fa=_0x327967;if(!this[_0x5041fa(0x1ae)][_0x5041fa(0x32a)](_0x3842ea,_0x3cc3c7))throw Error(_0x5041fa(0x430));this['_apply'](_0x12185f,this['_factory']['updateRecordOrder'](_0x12185f[_0x5041fa(0x32b)](),_0x3842ea,_0x3cc3c7,_0x1e0c10));}['createField'](_0x485bf3,_0x290b67,_0x18e3bf,_0x4d9cba,_0xdf233c){const _0x4f924c=_0x327967;this[_0x4f924c(0x40d)](_0x485bf3,this['createCreateFieldOp'](_0x485bf3,_0x290b67,_0x18e3bf,_0x4d9cba,_0xdf233c));}[_0x327967(0x3de)](_0x3aac4c,_0x40a384,_0x4c9733,_0x5a1e15){const _0x3e084d=_0x327967;var _0x4da998;if(!this[_0x3e084d(0x1ae)][_0x3e084d(0x285)](_0x40a384,_0x4c9733))throw Error(_0x3e084d(0x3b3));let _0x32f31a=_0x3aac4c['getSnapshot'](),_0x232c6f=(_0x4da998=_0x32f31a[_0x3e084d(0x486)][_0x40a384])==null?void 0x0:_0x4da998['fields'][_0x4c9733];if(!_0x232c6f||_0x4c9733===_0x40fc9d)throw Error('[BaseCommandService]:\x20cannot\x20edit\x20record-id.');this[_0x3e084d(0x30e)](_0x32f31a,{..._0x232c6f,..._0x5a1e15}),this[_0x3e084d(0x40d)](_0x3aac4c,this[_0x3e084d(0x3cf)][_0x3e084d(0x3de)](_0x32f31a,_0x40a384,_0x4c9733,_0x5a1e15));}[_0x327967(0x2c1)](_0x388ddb,_0xcdc46b,_0x55a8ef,_0x4de442){const _0xf45bfc=_0x327967;var _0x16f7aa;if(!this[_0xf45bfc(0x1ae)]['canEditField'](_0xcdc46b,_0x55a8ef))throw Error(_0xf45bfc(0x3b3));let _0x4be057=_0x388ddb[_0xf45bfc(0x32b)](),_0x418c8e=(_0x16f7aa=_0x4be057[_0xf45bfc(0x486)][_0xcdc46b])==null?void 0x0:_0x16f7aa[_0xf45bfc(0x305)][_0x55a8ef];if(!_0x418c8e||_0x55a8ef===_0x40fc9d)throw Error('[BaseCommandService]:\x20cannot\x20change\x20record-id\x20field\x20type.');this[_0xf45bfc(0x30e)](_0x4be057,{..._0x418c8e,..._0x4de442}),this[_0xf45bfc(0x40d)](_0x388ddb,this['_factory']['changeFieldType'](_0x4be057,_0xcdc46b,_0x55a8ef,_0x4de442));}[_0x327967(0x42f)](_0x36f6f8,_0x3df596,_0x388cb4){const _0x5b6963=_0x327967;var _0x2d6ea2;if(((_0x2d6ea2=_0x36f6f8[_0x5b6963(0x32b)]()['tables'][_0x3df596])==null?void 0x0:_0x2d6ea2[_0x5b6963(0x44a)])===_0x388cb4||_0x388cb4===_0x40fc9d)throw Error('[BaseCommandService]:\x20cannot\x20delete\x20primary\x20field.');if(!this['_permissionService']['canDeleteField'](_0x3df596,_0x388cb4))throw Error(_0x5b6963(0x187));this[_0x5b6963(0x40d)](_0x36f6f8,this[_0x5b6963(0x3cf)][_0x5b6963(0x42f)](_0x36f6f8[_0x5b6963(0x32b)](),_0x3df596,_0x388cb4));}[_0x327967(0x420)](_0xee6efb,_0x22d270,_0x5ec9ef,_0x406250){const _0x371975=_0x327967;if(!this['_permissionService']['canEditField'](_0x22d270,_0x5ec9ef))throw Error(_0x371975(0x3b3));if(_0x5ec9ef===_0x40fc9d||_0x406250['beforeFieldId']===_0x40fc9d)throw Error(_0x371975(0x2b5));this[_0x371975(0x40d)](_0xee6efb,this[_0x371975(0x3cf)][_0x371975(0x420)](_0xee6efb[_0x371975(0x32b)](),_0x22d270,_0x5ec9ef,_0x406250));}[_0x327967(0x3b7)](_0x3b4ee8,_0x176641,_0x52f28f,_0x5c3e37){const _0x239bec=_0x327967;if(!this[_0x239bec(0x1ae)][_0x239bec(0x177)](_0x176641,_0x52f28f['id']))throw Error(_0x239bec(0x1b2));this[_0x239bec(0x40d)](_0x3b4ee8,this['_factory'][_0x239bec(0x3b7)](_0x3b4ee8['getSnapshot'](),_0x176641,_0x52f28f,_0x5c3e37));}['renameView'](_0x4a0f6d,_0x3d1a87,_0x128ac9,_0x30e4a7){const _0x24e6b0=_0x327967;if(!this[_0x24e6b0(0x1ae)][_0x24e6b0(0x177)](_0x3d1a87,_0x128ac9))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this['_apply'](_0x4a0f6d,this[_0x24e6b0(0x3cf)][_0x24e6b0(0x271)](_0x4a0f6d['getSnapshot'](),_0x3d1a87,_0x128ac9,_0x30e4a7));}[_0x327967(0x467)](_0xeec845,_0x1fabc6,_0x451bfa){const _0xda731f=_0x327967;if(!this['_permissionService'][_0xda731f(0x177)](_0x1fabc6,_0x451bfa))throw Error(_0xda731f(0x1b2));this[_0xda731f(0x40d)](_0xeec845,this['_factory'][_0xda731f(0x467)](_0xeec845['getSnapshot'](),_0x1fabc6,_0x451bfa));}[_0x327967(0x2dc)](_0x23d49f,_0x1fa7bb,_0x3ec027,_0xb48df8){const _0x2598b4=_0x327967;if(!this[_0x2598b4(0x1ae)][_0x2598b4(0x177)](_0x1fa7bb,_0x3ec027))throw Error(_0x2598b4(0x1b2));this[_0x2598b4(0x40d)](_0x23d49f,this[_0x2598b4(0x3cf)][_0x2598b4(0x2dc)](_0x23d49f[_0x2598b4(0x32b)](),_0x1fa7bb,_0x3ec027,_0xb48df8));}[_0x327967(0x18c)](_0x70c3e7,_0x4b1f75,_0x475615,_0x54b9a7){const _0x522290=_0x327967;if(!this[_0x522290(0x1ae)][_0x522290(0x177)](_0x4b1f75,_0x475615))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x522290(0x40d)](_0x70c3e7,this['_factory'][_0x522290(0x18c)](_0x70c3e7[_0x522290(0x32b)](),_0x4b1f75,_0x475615,_0x54b9a7));}[_0x327967(0x2e8)](_0x36c295,_0x14583e,_0x1c98dd,_0x41e2d3){const _0x26d66a=_0x327967;if(!this['_permissionService'][_0x26d66a(0x177)](_0x14583e,_0x1c98dd))throw Error(_0x26d66a(0x1b2));this[_0x26d66a(0x40d)](_0x36c295,this[_0x26d66a(0x3cf)][_0x26d66a(0x2e8)](_0x36c295['getSnapshot'](),_0x14583e,_0x1c98dd,_0x41e2d3));}['setViewSort'](_0x5d2f8b,_0x2aa171,_0x32b85a,_0x4c95d3){const _0x3dbe4b=_0x327967;if(!this[_0x3dbe4b(0x1ae)][_0x3dbe4b(0x177)](_0x2aa171,_0x32b85a))throw Error(_0x3dbe4b(0x1b2));this['_apply'](_0x5d2f8b,this[_0x3dbe4b(0x3cf)][_0x3dbe4b(0x2ae)](_0x5d2f8b[_0x3dbe4b(0x32b)](),_0x2aa171,_0x32b85a,_0x4c95d3));}[_0x327967(0x356)](_0x413e0f,_0x36ca6f,_0x1156e1,_0x5a1683){const _0x3170d=_0x327967;if(!this['_permissionService'][_0x3170d(0x177)](_0x36ca6f,_0x1156e1))throw Error(_0x3170d(0x1b2));this[_0x3170d(0x40d)](_0x413e0f,this[_0x3170d(0x3cf)][_0x3170d(0x356)](_0x413e0f[_0x3170d(0x32b)](),_0x36ca6f,_0x1156e1,_0x5a1683));}[_0x327967(0x326)](_0x2e9f98,_0x445f65,_0x14702b,_0x43f876,_0xeb974){const _0x2590a8=_0x327967;if(!this[_0x2590a8(0x1ae)][_0x2590a8(0x177)](_0x445f65,_0x14702b))throw Error('[BaseCommandService]:\x20cannot\x20manage\x20view.');this[_0x2590a8(0x40d)](_0x2e9f98,this[_0x2590a8(0x3cf)]['setViewFieldVisible'](_0x2e9f98['getSnapshot'](),_0x445f65,_0x14702b,_0x43f876,_0xeb974));}[_0x327967(0x492)](_0x59236f,_0x50fe91,_0x6c8bfc,_0x4d7d10,_0x1046f5){const _0x517681=_0x327967;if(!this[_0x517681(0x1ae)][_0x517681(0x177)](_0x50fe91,_0x6c8bfc))throw Error(_0x517681(0x1b2));this[_0x517681(0x40d)](_0x59236f,this[_0x517681(0x3cf)][_0x517681(0x492)](_0x59236f[_0x517681(0x32b)](),_0x50fe91,_0x6c8bfc,_0x4d7d10,_0x1046f5));}['setViewFieldOrder'](_0x217341,_0x13d0cc,_0x406642,_0x489420,_0x5dc691){const _0x3bcc5b=_0x327967;if(!this[_0x3bcc5b(0x1ae)][_0x3bcc5b(0x177)](_0x13d0cc,_0x406642))throw Error(_0x3bcc5b(0x1b2));this[_0x3bcc5b(0x40d)](_0x217341,this['_factory'][_0x3bcc5b(0x25d)](_0x217341[_0x3bcc5b(0x32b)](),_0x13d0cc,_0x406642,_0x489420,_0x5dc691));}[_0x327967(0x40d)](_0xbd9d04,_0x5ba08a){const _0x3928b9=_0x327967;let _0xc067ae=_0xbd9d04[_0x3928b9(0x32b)]();_0xbd9d04[_0x3928b9(0x22b)](this[_0x3928b9(0x27e)]['applyOp'](_0xc067ae,_0x5ba08a));}[_0x327967(0x202)](_0x23a900,_0x4ff722,_0xed081d,_0x176952=this[_0x327967(0x43f)](_0x23a900['tables'][_0x4ff722])){const _0x547678=_0x327967;let _0x3a3138=_0x23a900[_0x547678(0x486)][_0x4ff722],_0x21b7c1=_0xed081d[_0x547678(0x463)]??_0xed081d['updatedBy']??this['_getCurrentUserId'](),_0x9c8402={..._0xed081d,'createdBy':_0xed081d['createdBy']??_0x21b7c1,'updatedBy':_0xed081d[_0x547678(0x2c9)]??_0x21b7c1,'values':{..._0xed081d[_0x547678(0x259)]}};return _0x9c8402[_0x547678(0x259)][_0x40fc9d]=_0x9c8402['id'],_0x3a3138[_0x547678(0x1f8)][_0x547678(0x29b)](_0x26a919=>{const _0x383d47=_0x547678;let _0x4e3f68=_0x3a3138['fields'][_0x26a919];if(_0x4e3f68&&_0x9c8402[_0x383d47(0x259)][_0x26a919]===void 0x0)switch(_0x4e3f68[_0x383d47(0x346)]){case _0x1013ad[_0x383d47(0x1d8)]:var _0x5b783c;_0x9c8402['values'][_0x26a919]=((_0x5b783c=_0x176952[_0x383d47(0x318)](_0x26a919))==null?void 0x0:_0x5b783c())??this[_0x383d47(0x199)](_0x3a3138,_0x26a919)();break;case _0x1013ad[_0x383d47(0x3dd)]:_0x9c8402[_0x383d47(0x463)]&&(_0x9c8402[_0x383d47(0x259)][_0x26a919]=_0x9c8402['createdBy']);break;case _0x1013ad[_0x383d47(0x1d5)]:_0x9c8402[_0x383d47(0x2c9)]&&(_0x9c8402[_0x383d47(0x259)][_0x26a919]=_0x9c8402[_0x383d47(0x2c9)]);break;case _0x1013ad[_0x383d47(0x483)]:_0x9c8402[_0x383d47(0x259)][_0x26a919]=B(_0x9c8402[_0x383d47(0x2f1)]);break;case _0x1013ad[_0x383d47(0xe4)]:_0x9c8402['values'][_0x26a919]=B(_0x9c8402[_0x383d47(0x1db)]);break;default:{let _0x25cd58=_0x4e3f68['defaultValue'];_0x25cd58!=null&&_0x25cd58!==''&&!(Array[_0x383d47(0x3fb)](_0x25cd58)&&_0x25cd58[_0x383d47(0x1bf)]===0x0)&&(_0x9c8402[_0x383d47(0x259)][_0x26a919]=_0x25cd58);}}}),_0x9c8402;}[_0x327967(0x198)](_0x3b6062,_0x2e5e27,_0xdf0248,_0x381509){const _0x2331cb=_0x327967;var _0x1ad982,_0x51fd67;let _0x1cba2a=_0x3b6062[_0x2331cb(0x486)][_0x2e5e27],_0x15ee32=((_0x1ad982=(_0x51fd67=this[_0x2331cb(0x34c)])[_0x2331cb(0xfa)])==null?void 0x0:_0x1ad982[_0x2331cb(0x171)](_0x51fd67))??Date[_0x2331cb(0xfa)](),_0x3975ad=this[_0x2331cb(0x3b8)](),_0x9bb336={..._0x381509};return _0x1cba2a[_0x2331cb(0x1f8)][_0x2331cb(0x29b)](_0x1b5def=>{const _0x5626d5=_0x2331cb;let _0x50d8b8=_0x1cba2a[_0x5626d5(0x305)][_0x1b5def];_0x50d8b8&&(_0x50d8b8[_0x5626d5(0x346)]===_0x1013ad[_0x5626d5(0xe4)]&&(_0x9bb336[_0x1b5def]=B(_0x15ee32)),_0x50d8b8[_0x5626d5(0x346)]===_0x1013ad[_0x5626d5(0x1d5)]&&_0x3975ad&&(_0x9bb336[_0x1b5def]=_0x3975ad));}),{'recordId':_0xdf0248,'values':_0x9bb336,'recordPatch':{'updatedAt':_0x15ee32,..._0x3975ad?{'updatedBy':_0x3975ad}:{}}};}[_0x327967(0x24e)](_0xf0c386,_0x50d50d,_0x2d94fe){const _0x5d6079=_0x327967;let _0x228350=_0xf0c386['tables'][_0x50d50d];return!_0x228350||!Yr(_0x2d94fe)?[]:_0x2d94fe[_0x5d6079(0x346)]===_0x1013ad['Numbering']?this['_createNumberingFieldValuePatches'](_0x228350,_0x2d94fe['id']):Object[_0x5d6079(0x259)](_0x228350['records'])[_0x5d6079(0xeb)](_0x520aaa=>{let _0x519c61=this['_getSystemFieldValue'](_0x2d94fe,_0x520aaa);return _0x519c61===void 0x0?[]:[{'recordId':_0x520aaa['id'],'values':{[_0x2d94fe['id']]:_0x519c61}}];});}[_0x327967(0x2e2)](_0x4f23a8,_0x53972d){const _0x118c44=_0x327967;switch(_0x4f23a8[_0x118c44(0x346)]){case _0x1013ad[_0x118c44(0x3dd)]:return _0x53972d[_0x118c44(0x463)]??this[_0x118c44(0x3b8)]();case _0x1013ad[_0x118c44(0x1d5)]:return _0x53972d[_0x118c44(0x2c9)]??this[_0x118c44(0x3b8)]();case _0x1013ad[_0x118c44(0x483)]:return B(_0x53972d['createdAt']??Date[_0x118c44(0xfa)]());case _0x1013ad['UpdatedAt']:return B(_0x53972d['updatedAt']??Date['now']());default:return;}}[_0x327967(0x43f)](_0x5b0942){const _0x4f9752=_0x327967;let _0x26d061=new Map();return _0x5b0942&&_0x5b0942[_0x4f9752(0x1f8)]['forEach'](_0x16e678=>{const _0x5d0c00=_0x4f9752;let _0x4794be=_0x5b0942[_0x5d0c00(0x305)][_0x16e678];(_0x4794be==null?void 0x0:_0x4794be[_0x5d0c00(0x346)])===_0x1013ad['Numbering']&&_0x26d061[_0x5d0c00(0x3fe)](_0x16e678,this[_0x5d0c00(0x199)](_0x5b0942,_0x16e678));}),_0x26d061;}['_createNumberingAllocator'](_0x30439c,_0x419208){const _0x48237d=_0x327967;let _0x17a419=Object[_0x48237d(0x259)](_0x30439c['records'])[_0x48237d(0x3d6)]((_0x7c7eef,_0x50430f)=>{const _0x1a73a0=_0x48237d;let _0x2ccea7=Number(_0x50430f[_0x1a73a0(0x259)][_0x419208]);return Number['isFinite'](_0x2ccea7)?Math[_0x1a73a0(0x31a)](_0x7c7eef,_0x2ccea7):_0x7c7eef;},0x0);return()=>String(++_0x17a419);}[_0x327967(0x1ed)](_0x1fb1df,_0x2ce128){const _0x487b69=_0x327967;let _0x5c3152=this[_0x487b69(0x211)](_0x1fb1df),_0x3f8785=this[_0x487b69(0x199)](_0x1fb1df,_0x2ce128);return _0x5c3152[_0x487b69(0xeb)](_0x8bc6d7=>this[_0x487b69(0x30b)](_0x8bc6d7[_0x487b69(0x259)][_0x2ce128])?[]:[{'recordId':_0x8bc6d7['id'],'values':{[_0x2ce128]:_0x3f8785()}}]);}[_0x327967(0x211)](_0x54c7f3){const _0x17ccda=_0x327967;var _0x545883;let _0x3ada25=Object[_0x17ccda(0x259)](_0x54c7f3[_0x17ccda(0x1d7)]),_0x17fc94=new Map(_0x3ada25[_0x17ccda(0x412)](_0x34e88b=>[_0x34e88b['id'],_0x34e88b])),_0x5dfc9e=[],_0xe685f7=new Set();(_0x545883=_0x54c7f3['recordOrder'])==null||_0x545883[_0x17ccda(0x29b)](_0x3a5f1e=>{const _0x2213c3=_0x17ccda;let _0x32ae67=_0x17fc94[_0x2213c3(0x318)](_0x3a5f1e);_0x32ae67&&(_0x5dfc9e[_0x2213c3(0x161)](_0x32ae67),_0xe685f7[_0x2213c3(0x12e)](_0x3a5f1e));});let _0x34dc24=_0x3ada25[_0x17ccda(0x1be)](_0x9c26a6=>!_0xe685f7['has'](_0x9c26a6['id']))[_0x17ccda(0x460)]((_0x308b29,_0x14c3b5)=>String(_0x308b29[_0x17ccda(0x44c)]??_0x308b29['id'])['localeCompare'](String(_0x14c3b5[_0x17ccda(0x44c)]??_0x14c3b5['id']))||_0x308b29['id'][_0x17ccda(0x3a4)](_0x14c3b5['id']));return[..._0x5dfc9e,..._0x34dc24];}[_0x327967(0x30b)](_0x41f844){const _0x37d465=_0x327967;return _0x41f844!=null&&_0x41f844!==''&&!(Array['isArray'](_0x41f844)&&_0x41f844[_0x37d465(0x1bf)]===0x0);}['_getCurrentUserId'](){const _0x166195=_0x327967;var _0x520788,_0x250fed,_0x2f7df5,_0x2e900d;return((_0x520788=(_0x250fed=this[_0x166195(0x34c)])[_0x166195(0x416)])==null?void 0x0:_0x520788[_0x166195(0x171)](_0x250fed))??((_0x2f7df5=(_0x2e900d=this['_runtimeContext'])[_0x166195(0x29a)])==null||(_0x2f7df5=_0x2f7df5[_0x166195(0x171)](_0x2e900d))==null?void 0x0:_0x2f7df5[_0x166195(0x3f5)])??void 0x0;}[_0x327967(0x41b)](_0x2cf7e9,_0x124dcd,_0x1c0a1d,_0x29421c,_0xe80862){const _0x5acc9c=_0x327967;var _0x10d164;if(!this[_0x5acc9c(0x1ae)]['canEditCell'](_0x124dcd,_0x1c0a1d,_0x29421c))throw Error(_0x5acc9c(0x383));let _0x33d094=(_0x10d164=_0x2cf7e9[_0x5acc9c(0x486)][_0x124dcd])==null?void 0x0:_0x10d164[_0x5acc9c(0x305)][_0x29421c];if(!_0x33d094)throw Error(_0x5acc9c(0x2fe)+_0x29421c+_0x5acc9c(0x223));let _0x186af7=this[_0x5acc9c(0x1cc)][_0x5acc9c(0x318)](_0x33d094[_0x5acc9c(0x346)]);if(_0x33d094[_0x5acc9c(0x397)]||_0x33d094['system']||!_0x186af7['getCapabilities'](_0x33d094)['editable'])throw Error('[BaseCommandService]:\x20cannot\x20edit\x20readonly\x20field.');let _0xd6a7dc=_0x186af7[_0x5acc9c(0x2ec)](_0xe80862,_0x33d094),_0x41ea91=_0x186af7[_0x5acc9c(0x186)](_0xd6a7dc,_0x33d094);if(!_0x41ea91[_0x5acc9c(0x48b)])throw Error(_0x41ea91[_0x5acc9c(0x3bf)]??_0x5acc9c(0x1b0));let _0x4d11f6=_0x33d094[_0x5acc9c(0x346)]===_0x1013ad['RecordLink']?Ve(_0x2cf7e9,_0x33d094,_0xd6a7dc):{'valid':!0x0};if(!_0x4d11f6[_0x5acc9c(0x48b)])throw Error(_0x4d11f6[_0x5acc9c(0x3bf)]??_0x5acc9c(0x28f));return _0xd6a7dc;}[_0x327967(0x30e)](_0xca1584,_0x41264a){const _0x33774b=_0x327967;if(_0x41264a['id']===_0x40fc9d||_0x41264a[_0x33774b(0x346)]===_0x1013ad[_0x33774b(0x212)]||_0x4fd5e0(_0x41264a[_0x33774b(0x158)]))throw Error(_0x33774b(0x1a8));let _0x3c410b=Be(_0xca1584,_0x41264a);if(!_0x3c410b['valid'])throw Error(_0x3c410b[_0x33774b(0x3bf)]??'[BaseCommandService]:\x20invalid\x20field\x20definition.');}};qr=X([Y(0x0,Br),Y(0x1,mr)],qr);function Jr(){const _0xcbd066=_0x327967;let _0x59780f=new hr();return zn()[_0xcbd066(0x29b)](_0x373352=>_0x59780f[_0xcbd066(0x263)](_0x373352)),_0x59780f;}function Yr(_0x4a9fc6){const _0x46b5d0=_0x327967;return _0x4a9fc6['type']===_0x1013ad[_0x46b5d0(0x1d8)]||_0x4a9fc6[_0x46b5d0(0x346)]===_0x1013ad['CreatedBy']||_0x4a9fc6[_0x46b5d0(0x346)]===_0x1013ad[_0x46b5d0(0x1d5)]||_0x4a9fc6[_0x46b5d0(0x346)]===_0x1013ad[_0x46b5d0(0x483)]||_0x4a9fc6[_0x46b5d0(0x346)]===_0x1013ad[_0x46b5d0(0xe4)];}const Xr=new Set([_0x1013ad[_0x327967(0x3e1)],_0x1013ad[_0x327967(0x20a)],_0x1013ad[_0x327967(0x205)]]);function Zr(_0x1c06b2){const _0x3155eb=_0x327967;let _0x26d094=_0x1c06b2['fields'][_0x1c06b2[_0x3155eb(0x44a)]];if((!_0x26d094||_0x26d094['system']!==!0x0&&_0x26d094['id']['toLowerCase']()!=='id'&&_0x26d094[_0x3155eb(0x158)][_0x3155eb(0x140)]()[_0x3155eb(0x3af)]()!=='id')&&_0x26d094)return _0x26d094['id'];for(let _0xabd09c of _0x1c06b2[_0x3155eb(0x1f8)]){let _0x4126c3=_0x1c06b2[_0x3155eb(0x305)][_0xabd09c];if(_0x4126c3&&_0x4126c3['id']!==_0x1c06b2[_0x3155eb(0x44a)]&&_0x4126c3[_0x3155eb(0x272)]!==!0x0&&_0x4126c3[_0x3155eb(0x346)]!==_0x1013ad['RecordId'])return _0x4126c3['id'];}return _0x1c06b2[_0x3155eb(0x44a)];}function Qr(_0x196d1d,_0x42890c=[],_0x1e8e08=0x5){const _0x1000ec=_0x327967;let _0x12f9d=new Set(_0x42890c[_0x1000ec(0x1be)](_0x5cbe94=>!!_0x5cbe94)),_0x2ad5f0=[],_0x4410c9=[];for(let _0x24bbba of _0x196d1d[_0x1000ec(0x1f8)]){let _0x2a3d81=_0x196d1d['fields'][_0x24bbba];_0x2a3d81&&_0x2a3d81[_0x1000ec(0x272)]!==!0x0&&_0x2a3d81[_0x1000ec(0x346)]!==_0x1013ad[_0x1000ec(0x212)]&&!_0x12f9d[_0x1000ec(0x103)](_0x2a3d81['id'])&&(Xr['has'](_0x2a3d81[_0x1000ec(0x346)])?_0x2ad5f0:_0x4410c9)['push'](_0x2a3d81['id']);}return[..._0x2ad5f0,..._0x4410c9]['slice'](0x0,_0x1e8e08);}function $r(){const _0x585a1f=_0x327967;return[{'type':_0x3dd96c[_0x585a1f(0xdc)],'i18nKey':_0x585a1f(0x3e9),'createDefaultConfig':()=>({}),'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x5f2cbd=_0x585a1f;throw Error(_0x5f2cbd(0x2e0));}},{'type':_0x3dd96c[_0x585a1f(0x4a2)],'i18nKey':_0x585a1f(0x1f7),'createDefaultConfig':_0x56deb7=>{const _0x291c99=_0x585a1f;let _0x55855e=ei(_0x56deb7);return{'groupFieldId':_0x55855e,'coverFieldId':null,'cardLayout':_0x291c99(0x436),'showFieldNames':!0x0,'fieldSettings':{},'columnSettings':{},'card':{'titleFieldId':_0x56deb7[_0x291c99(0x44a)],'fieldIds':Qr(_0x56deb7,[_0x56deb7[_0x291c99(0x44a)],_0x55855e])}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x456063=_0x585a1f;throw Error(_0x456063(0x155));}},{'type':_0x3dd96c['Calendar'],'i18nKey':_0x585a1f(0x30c),'createDefaultConfig':_0x573eb5=>{const _0x4b7152=_0x585a1f;let _0x285a98=ti(_0x573eb5);return{'startDateFieldId':_0x285a98,'endDateFieldId':ni(_0x573eb5,_0x285a98),'titleFieldId':_0x573eb5[_0x4b7152(0x44a)],'mode':_0x4b7152(0x3ee),'timeslotSize':_0x4b7152(0x1df),'timeZone':_0x4b7152(0xea),'displayColor':{'type':_0x4b7152(0x26b),'color':'#3b82f6'},'fieldSettings':{}};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{throw Error('Calendar\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.');}},{'type':_0x3dd96c['Gantt'],'i18nKey':_0x585a1f(0x1e8),'createDefaultConfig':_0x1ff410=>{const _0x425e26=_0x585a1f;let _0x251ed8=ti(_0x1ff410);return{'startDateFieldId':_0x251ed8,'endDateFieldId':ni(_0x1ff410,_0x251ed8)??_0x251ed8,'titleFieldId':_0x1ff410[_0x425e26(0x44a)],'scale':_0x425e26(0x3ee),'showTodayLine':!0x0,'displayColor':{'type':_0x425e26(0x26b),'color':_0x425e26(0x1e6)},'fieldSettings':{},'workingDaysOnly':!0x1};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x522d9d=_0x585a1f;throw Error(_0x522d9d(0x2fb));}},{'type':_0x3dd96c[_0x585a1f(0x386)],'i18nKey':_0x585a1f(0x120),'createDefaultConfig':_0x25c942=>{const _0x27badc=_0x585a1f;let _0x2c416f=Zr(_0x25c942);return{'coverFieldId':null,'cardLayout':_0x27badc(0x436),'showFieldNames':!0x0,'fieldSettings':{},'card':{'titleFieldId':_0x2c416f,'coverFieldId':null,'fieldIds':Qr(_0x25c942,[_0x2c416f,_0x25c942[_0x27badc(0x44a)]])},'cardSize':_0x27badc(0x1df)};},'validateConfig':()=>({'valid':!0x0}),'buildProjection':()=>{const _0x4a5e0d=_0x585a1f;throw Error(_0x4a5e0d(0x368));}}];}function ei(_0x1acce8){const _0xb599f0=_0x327967;var _0x40e1b3,_0x2acc5b,_0x5a7b32;let _0x265078=_0x1acce8[_0xb599f0(0x1f8)][_0xb599f0(0x412)](_0x11672b=>_0x1acce8['fields'][_0x11672b])['filter'](_0x30b0ab=>!!_0x30b0ab);return((_0x40e1b3=_0x265078[_0xb599f0(0x451)](_0x1f33c1=>_0x1f33c1[_0xb599f0(0x346)]===_0x1013ad[_0xb599f0(0x413)]||_0x1f33c1['type']===_0x1013ad[_0xb599f0(0x190)]||_0x1f33c1[_0xb599f0(0x346)]===_0x1013ad[_0xb599f0(0xf7)]))==null?void 0x0:_0x40e1b3['id'])??((_0x2acc5b=_0x265078['find'](_0x4e5aec=>_0x4e5aec[_0xb599f0(0x346)]===_0x1013ad[_0xb599f0(0x2cb)]))==null?void 0x0:_0x2acc5b['id'])??((_0x5a7b32=_0x265078[_0xb599f0(0x451)](_0x55299e=>_0x55299e['type']===_0x1013ad['Date']||_0x55299e[_0xb599f0(0x346)]===_0x1013ad[_0xb599f0(0x483)]||_0x55299e[_0xb599f0(0x346)]===_0x1013ad[_0xb599f0(0xe4)]))==null?void 0x0:_0x5a7b32['id'])??_0x1acce8[_0xb599f0(0x44a)];}function ti(_0x38bfbe){const _0x6e98e9=_0x327967;var _0x273d5d;return((_0x273d5d=_0x38bfbe[_0x6e98e9(0x1f8)][_0x6e98e9(0x412)](_0x310405=>_0x38bfbe[_0x6e98e9(0x305)][_0x310405])[_0x6e98e9(0x451)](ri))==null?void 0x0:_0x273d5d['id'])??'';}function ni(_0x427ebf,_0x46bbb4){const _0xd73e3e=_0x327967;var _0x142c85;return(_0x142c85=_0x427ebf['fieldOrder'][_0xd73e3e(0x412)](_0x4b0ec7=>_0x427ebf[_0xd73e3e(0x305)][_0x4b0ec7])[_0xd73e3e(0x451)](_0x53229d=>ri(_0x53229d)&&_0x53229d['id']!==_0x46bbb4))==null?void 0x0:_0x142c85['id'];}function ri(_0x3df0eb){const _0x3c44e4=_0x327967;return!!_0x3df0eb&&_0x3df0eb['type']===_0x1013ad[_0x3c44e4(0x2b2)]&&_0x3df0eb['readonly']!==!0x0&&_0x3df0eb[_0x3c44e4(0x272)]!==!0x0;}const ii=_0x1ada6c(_0x327967(0x12a)),ai=new Set([_0x1013ad[_0x327967(0x302)],_0x1013ad[_0x327967(0x295)],_0x1013ad[_0x327967(0x3e1)],_0x1013ad[_0x327967(0x20a)],_0x1013ad['Date'],_0x1013ad[_0x327967(0x483)],_0x1013ad['UpdatedAt'],_0x1013ad['Checkbox']]),oi=0x5265c00;let si=class extends _0x4de356{constructor(_0x16ea4a){const _0x5f564d=_0x327967;super(),this[_0x5f564d(0x1cc)]=_0x16ea4a,G(this,'_views',new Map()),G(this,_0x5f564d(0x1e0),new WeakMap()),G(this,_0x5f564d(0x1a0),new Map()),G(this,_0x5f564d(0x2aa),new Map()),G(this,_0x5f564d(0x4a7),new Map()),G(this,_0x5f564d(0x445),new Map()),G(this,_0x5f564d(0x13e),0x0),G(this,'_tableRevisions',new Map()),G(this,_0x5f564d(0x26d),new Map()),G(this,_0x5f564d(0x340),new Map()),G(this,_0x5f564d(0x426),new Map());}['registerView'](_0x991379){const _0x1f6ef6=_0x327967;return this['_views'][_0x1f6ef6(0x3fe)](_0x991379[_0x1f6ef6(0x346)],_0x991379),_0x569b00(()=>this[_0x1f6ef6(0x122)][_0x1f6ef6(0x253)](_0x991379[_0x1f6ef6(0x346)]));}[_0x327967(0x46d)](_0x2cabce,_0x14ee7b,_0x1e1008){const _0x1117d0=_0x327967;var _0x113cf3,_0x16af1c,_0x6ff419;return I(_0x1117d0(0x12d),()=>{const _0x5161e6=_0x1117d0;let _0x1ae247=this[_0x5161e6(0x398)](_0x2cabce,_0x14ee7b,_0x1e1008);if(_0x1ae247)return _0x1ae247;let _0x5b71cc=_0x2cabce[_0x5161e6(0x486)][_0x14ee7b],_0x509919=_0x5b71cc==null?void 0x0:_0x5b71cc[_0x5161e6(0x1eb)][_0x1e1008];if(!_0x5b71cc||!_0x509919)return this[_0x5161e6(0x317)](_0x2cabce,_0x14ee7b,_0x1e1008,{'type':'invalid','viewType':(_0x509919==null?void 0x0:_0x509919[_0x5161e6(0x346)])??_0x3dd96c[_0x5161e6(0xdc)],'reason':_0x5161e6(0x1bc)});let _0x26f717;switch(_0x509919['type']){case _0x3dd96c[_0x5161e6(0xdc)]:_0x26f717=this['_buildGrid'](_0x5b71cc,_0x509919);break;case _0x3dd96c[_0x5161e6(0x376)]:_0x26f717=this['_buildGantt'](_0x5b71cc,_0x509919);break;case _0x3dd96c[_0x5161e6(0x4a2)]:_0x26f717=this[_0x5161e6(0x180)](_0x5b71cc,_0x509919);break;case _0x3dd96c[_0x5161e6(0x322)]:_0x26f717=this['_buildCalendar'](_0x5b71cc,_0x509919);break;case _0x3dd96c['Gallery']:_0x26f717=this['_buildGallery'](_0x5b71cc,_0x509919);break;default:_0x26f717={'type':_0x5161e6(0x461),'viewType':_0x509919['type'],'reason':'missingField'};}return this['_setCachedProjection'](_0x2cabce,_0x14ee7b,_0x1e1008,_0x26f717);},{'tableId':_0x14ee7b,'viewId':_0x1e1008,'viewType':(_0x113cf3=_0x2cabce['tables'][_0x14ee7b])==null||(_0x113cf3=_0x113cf3['views'][_0x1e1008])==null?void 0x0:_0x113cf3[_0x1117d0(0x346)],'records':((_0x16af1c=_0x2cabce['tables'][_0x14ee7b])==null||(_0x16af1c=_0x16af1c[_0x1117d0(0x1e2)])==null?void 0x0:_0x16af1c[_0x1117d0(0x1bf)])??Object[_0x1117d0(0x27a)](((_0x6ff419=_0x2cabce[_0x1117d0(0x486)][_0x14ee7b])==null?void 0x0:_0x6ff419[_0x1117d0(0x1d7)])??{})[_0x1117d0(0x1bf)]});}[_0x327967(0x34e)](_0x2375ed,_0x5458dc,_0x3735a4){const _0x2035f1=_0x327967;var _0xd45ebd,_0x199197,_0x1137a6;let _0x156b0b=_0x2375ed['tables'][_0x5458dc],_0x16f968=_0x156b0b==null?void 0x0:_0x156b0b[_0x2035f1(0x1eb)][_0x3735a4];if(!_0x156b0b||!_0x16f968)throw Error('[BaseProjectionService]:\x20missing\x20view\x20\x22'+_0x3735a4+'\x22.');let _0x4426be=_0x2b69f0=>!!_0x156b0b[_0x2035f1(0x305)][_0x2b69f0],_0x3c08c3={..._0x16f968,'filter':_0x16f968[_0x2035f1(0x1be)]?{..._0x16f968[_0x2035f1(0x1be)],'conditions':_0x16f968[_0x2035f1(0x1be)][_0x2035f1(0x39c)][_0x2035f1(0x1be)](_0x10c448=>_0x4426be(_0x10c448[_0x2035f1(0x173)]))}:_0x16f968['filter'],'sort':(_0xd45ebd=_0x16f968[_0x2035f1(0x460)])==null?void 0x0:_0xd45ebd['filter'](_0x2f16dd=>_0x4426be(_0x2f16dd[_0x2035f1(0x173)])),'group':(_0x199197=_0x16f968[_0x2035f1(0x16a)])==null?void 0x0:_0x199197[_0x2035f1(0x1be)](_0x2bbc88=>_0x4426be(_0x2bbc88[_0x2035f1(0x173)])),'fieldOrder':(_0x1137a6=_0x16f968[_0x2035f1(0x1f8)])==null?void 0x0:_0x1137a6[_0x2035f1(0x1be)](_0x4426be),'fieldSettings':Object[_0x2035f1(0x49f)](Object[_0x2035f1(0x209)](_0x16f968['fieldSettings']??{})['filter'](([_0x10d4ab])=>_0x4426be(_0x10d4ab)))};if(_0x3c08c3[_0x2035f1(0x346)]===_0x2035f1(0x2c4)){var _0x3cf382;let _0x280f0c=_0x3c08c3[_0x2035f1(0x174)]??{},_0x184173=this[_0x2035f1(0x491)](_0x156b0b,_0x3c08c3),_0x3950ce=this[_0x2035f1(0x194)](_0x156b0b,(_0x3cf382=_0x280f0c[_0x2035f1(0x31c)])==null?void 0x0:_0x3cf382[_0x2035f1(0x19b)]);_0x3c08c3['config']={..._0x280f0c,'groupFieldId':_0x184173??_0x280f0c['groupFieldId'],'coverFieldId':this[_0x2035f1(0xdf)](_0x156b0b,_0x280f0c),'cardLayout':_0x280f0c['cardLayout']===_0x2035f1(0x13d)?_0x2035f1(0x13d):_0x2035f1(0x436),'showFieldNames':_0x280f0c[_0x2035f1(0x37b)]!==!0x1,'fieldSettings':Object[_0x2035f1(0x49f)](Object[_0x2035f1(0x209)](_0x280f0c[_0x2035f1(0x105)]??{})[_0x2035f1(0x1be)](([_0x47453f])=>_0x4426be(_0x47453f))),'columnSettings':_0x280f0c[_0x2035f1(0x2a4)]??{},'card':{..._0x280f0c[_0x2035f1(0x31c)]??{},'titleFieldId':_0x3950ce,'fieldIds':this[_0x2035f1(0x304)](_0x156b0b,_0x3c08c3,_0x184173??'',_0x3950ce)}};}return{'repaired':JSON[_0x2035f1(0xf8)](_0x3c08c3)!==JSON['stringify'](_0x16f968),'view':_0x3c08c3};}['invalidateByOp'](){const _0x38fbfa=_0x327967;this[_0x38fbfa(0x13e)]++;}[_0x327967(0x3b0)](_0x564027,_0x54ddd1,_0x562a1c){const _0xcb25bd=_0x327967;let _0x255860=this[_0xcb25bd(0x351)](_0x564027)+0x1;this[_0xcb25bd(0x26d)][_0xcb25bd(0x3fe)](_0x564027,_0x255860);let _0x237acc=this[_0xcb25bd(0x340)][_0xcb25bd(0x318)](_0x564027)??[];_0x237acc['push']({'revision':_0x255860,'recordId':_0x54ddd1,'fieldId':_0x562a1c}),this[_0xcb25bd(0x340)]['set'](_0x564027,_0x237acc);}[_0x327967(0x353)](_0x35bd8b,_0x3d4fd4){this['_bumpTableRevision'](_0x35bd8b);}[_0x327967(0x203)](_0x4da40f,_0x337496){const _0x418936=_0x327967;this[_0x418936(0x426)][_0x418936(0x3fe)](this['_viewRevisionKey'](_0x4da40f,_0x337496),this[_0x418936(0x32d)](_0x4da40f,_0x337496)+0x1);}[_0x327967(0x398)](_0x31c4db,_0x482e22,_0x560352){const _0x4ab548=_0x327967;var _0x4e6e5f;let _0x1c21f2=(_0x4e6e5f=this[_0x4ab548(0x1e0)][_0x4ab548(0x318)](_0x31c4db))==null?void 0x0:_0x4e6e5f[_0x4ab548(0x318)](this[_0x4ab548(0x119)](_0x482e22,_0x560352));return _0x1c21f2&&_0x1c21f2[_0x4ab548(0x172)]===this[_0x4ab548(0x13e)]&&_0x1c21f2[_0x4ab548(0x145)]===this[_0x4ab548(0x114)](_0x482e22)&&_0x1c21f2[_0x4ab548(0x37d)]===this['_getCellRevision'](_0x482e22)&&_0x1c21f2[_0x4ab548(0x1c1)]===this[_0x4ab548(0x32d)](_0x482e22,_0x560352)?_0x1c21f2[_0x4ab548(0x3e8)]:null;}[_0x327967(0x317)](_0x18431e,_0x8dbf97,_0x444b9d,_0x2d7e0c){const _0x30a155=_0x327967;let _0x52ca84=this['_projectionCache'][_0x30a155(0x318)](_0x18431e);return _0x52ca84||(_0x52ca84=new Map(),this[_0x30a155(0x1e0)]['set'](_0x18431e,_0x52ca84)),_0x52ca84[_0x30a155(0x3fe)](this[_0x30a155(0x119)](_0x8dbf97,_0x444b9d),{'projection':_0x2d7e0c,'globalRevision':this[_0x30a155(0x13e)],'tableRevision':this['_getTableRevision'](_0x8dbf97),'cellRevision':this[_0x30a155(0x351)](_0x8dbf97),'viewRevision':this['_getViewRevision'](_0x8dbf97,_0x444b9d)}),_0x2d7e0c;}[_0x327967(0x3f9)](_0x56b118){const _0x4b2d46=_0x327967;this['_tableRevisions'][_0x4b2d46(0x3fe)](_0x56b118,this[_0x4b2d46(0x114)](_0x56b118)+0x1);}[_0x327967(0x114)](_0x4fb33d){const _0x5213b2=_0x327967;return this[_0x5213b2(0x176)][_0x5213b2(0x318)](_0x4fb33d)??0x0;}['_getCellRevision'](_0x9e5940){const _0xfbfaa1=_0x327967;return this['_cellRevisions'][_0xfbfaa1(0x318)](_0x9e5940)??0x0;}['_getViewRevision'](_0x2582a6,_0x2b3572){const _0x1af731=_0x327967;return this[_0x1af731(0x426)][_0x1af731(0x318)](this[_0x1af731(0x293)](_0x2582a6,_0x2b3572))??0x0;}[_0x327967(0x119)](_0x2ff633,_0x3c5e3c){return _0x2ff633+'\x00'+_0x3c5e3c;}[_0x327967(0x396)](_0x1b5941,_0x1a9fdc){const _0xee4260=_0x327967;return _0x1b5941+'\x00'+this[_0xee4260(0x433)](_0x1a9fdc);}['_groupsCacheKey'](_0x5b4c44,_0x542257,_0x56338d){return _0x5b4c44+'\x00'+this['_rowTransformCacheSegment'](_0x542257)+'\x00'+this['_groupConfigCacheSegment'](_0x56338d);}[_0x327967(0x433)](_0x52e851){const _0x44099c=_0x327967;return _0x52e851?mi({'filter':di(_0x52e851[_0x44099c(0x1be)]),'sort':pi(_0x52e851[_0x44099c(0x460)])}):_0x44099c(0x49a);}[_0x327967(0x309)](_0x4926ab){const _0x5cf236=_0x327967;return mi(_0x4926ab[_0x5cf236(0x412)](_0x42fa1c=>({'fieldId':_0x42fa1c['fieldId'],'direction':_0x42fa1c[_0x5cf236(0x429)]??null})));}[_0x327967(0x293)](_0x342f88,_0xfc2478){return _0x342f88+'\x00'+_0xfc2478;}[_0x327967(0x1a5)](_0x135321,_0x4117d1){const _0x3cc77d=_0x327967;var _0xf660b8;let _0x2d2325=Je(_0x135321),_0x17863c=this[_0x3cc77d(0x183)](_0x135321,_0x4117d1),_0x455543=(_0xf660b8=_0x4117d1['filter'])!=null&&_0xf660b8[_0x3cc77d(0x39c)][_0x3cc77d(0x1bf)]?this[_0x3cc77d(0x183)](_0x135321,{..._0x4117d1,'filter':null}):_0x17863c,_0x4e7a1b=nt(this[_0x3cc77d(0x291)](_0x135321,_0x2d2325,_0x4117d1['id'],_0x455543[_0x3cc77d(0x412)](_0x5f4673=>_0x5f4673[_0x3cc77d(0x345)])),_0x455543,new Set(_0x17863c['map'](_0x4106f7=>_0x4106f7[_0x3cc77d(0x345)])));return{'type':_0x3dd96c[_0x3cc77d(0xdc)],'fields':this[_0x3cc77d(0x457)](_0x135321,_0x4117d1),'rows':_0x4e7a1b[_0x3cc77d(0x26f)],'groups':this[_0x3cc77d(0x106)](_0x135321,_0x4117d1,_0x4e7a1b[_0x3cc77d(0x26f)],_0x4e7a1b[_0x3cc77d(0xec)]),'hierarchy':_0x4e7a1b[_0x3cc77d(0xec)],'frozenFieldCount':typeof _0x4117d1[_0x3cc77d(0x174)][_0x3cc77d(0x2c6)]==_0x3cc77d(0x218)?_0x4117d1[_0x3cc77d(0x174)][_0x3cc77d(0x2c6)]:0x0};}[_0x327967(0x291)](_0x3aa7c0,_0x4107e1,_0x217ca6,_0x54da76){const _0x2a844e=_0x327967;let _0x5a75d5=_0x3aa7c0['id']+'\x00'+_0x4107e1+'\x00'+_0x217ca6,_0x896cc9=this[_0x2a844e(0x351)](_0x3aa7c0['id']),_0x366c87=this['_hierarchyIndexCache'][_0x2a844e(0x318)](_0x5a75d5);if(_0x366c87&&_0x366c87[_0x2a844e(0x172)]===this[_0x2a844e(0x13e)]&&_0x366c87[_0x2a844e(0x145)]===this[_0x2a844e(0x114)](_0x3aa7c0['id'])&&_0x366c87[_0x2a844e(0x437)][_0x2a844e(0x1bf)]===_0x54da76[_0x2a844e(0x1bf)]&&_0x366c87[_0x2a844e(0x437)][_0x2a844e(0x44b)]((_0x2c6816,_0x4975d9)=>_0x2c6816===_0x54da76[_0x4975d9])){if(_0x366c87['cellRevision']===_0x896cc9&&_0x366c87['table']===_0x3aa7c0)return _0x366c87[_0x2a844e(0x1b6)];if(!this[_0x2a844e(0x27b)](_0x3aa7c0['id'],_0x366c87[_0x2a844e(0x37d)],_0x896cc9,new Set([_0x4107e1])))return this[_0x2a844e(0x445)]['set'](_0x5a75d5,{..._0x366c87,'table':_0x3aa7c0,'cellRevision':_0x896cc9}),_0x366c87[_0x2a844e(0x1b6)];}let _0x4ba4b7=tt(_0x3aa7c0,_0x4107e1,_0x54da76);return this[_0x2a844e(0x445)][_0x2a844e(0x3fe)](_0x5a75d5,{'table':_0x3aa7c0,'index':_0x4ba4b7,'orderedRecordIds':_0x54da76,'globalRevision':this[_0x2a844e(0x13e)],'tableRevision':this[_0x2a844e(0x114)](_0x3aa7c0['id']),'cellRevision':_0x896cc9}),_0x4ba4b7;}[_0x327967(0x106)](_0x1505a3,_0x2dff4c,_0x487e71,_0x468a8b){const _0x16b2e5=_0x327967;var _0x6d53d7;if(!((_0x6d53d7=_0x2dff4c[_0x16b2e5(0x16a)])!=null&&_0x6d53d7[_0x16b2e5(0x1bf)]))return[];let _0x323aba=new Map(_0x487e71[_0x16b2e5(0x412)](_0x4a431d=>[_0x4a431d[_0x16b2e5(0x345)],_0x4a431d])),_0x5a8785=_0x468a8b[_0x16b2e5(0x32f)]['flatMap'](_0x47a9d0=>{const _0x13233b=_0x16b2e5;let _0x1206ee=_0x323aba[_0x13233b(0x318)](_0x47a9d0);return _0x1206ee?[_0x1206ee]:[];}),_0x358461=this[_0x16b2e5(0x297)](_0x1505a3,_0x2dff4c,_0x5a8785),_0x35a939=new Map(_0x468a8b['orderedRecordIds']['map']((_0x700bdd,_0x93f37d)=>[_0x700bdd,_0x93f37d])),_0x1474f6=_0x359c2b=>{const _0x1bb897=_0x16b2e5;let _0x16b836=_0x468a8b[_0x1bb897(0x439)][_0x359c2b],_0x13a6c2=_0x35a939[_0x1bb897(0x318)](_0x359c2b)??-0x1;return _0x13a6c2<0x0||!_0x16b836?[]:_0x468a8b[_0x1bb897(0x437)][_0x1bb897(0x348)](_0x13a6c2,_0x16b836[_0x1bb897(0x2cd)]+0x1);},_0xe01da7=_0x5b28ba=>{const _0x572dcb=_0x16b2e5;var _0x3db34d,_0x1802ee;return{..._0x5b28ba,'recordIds':(_0x3db34d=_0x5b28ba[_0x572dcb(0x22d)])!=null&&_0x3db34d[_0x572dcb(0x1bf)]?_0x5b28ba[_0x572dcb(0x3d1)]:_0x5b28ba['recordIds'][_0x572dcb(0xeb)](_0x1474f6),'children':(_0x1802ee=_0x5b28ba['children'])==null?void 0x0:_0x1802ee[_0x572dcb(0x412)](_0xe01da7)};};return _0x358461['map'](_0xe01da7);}[_0x327967(0x180)](_0x1257e7,_0x227bf0){const _0x360fc4=_0x327967;var _0x3b9410;let _0x51cbf0=this[_0x360fc4(0x491)](_0x1257e7,_0x227bf0),_0x31768a=_0x51cbf0?_0x1257e7[_0x360fc4(0x305)][_0x51cbf0]:void 0x0;if(!_0x31768a)return{'type':_0x360fc4(0x461),'viewType':_0x3dd96c[_0x360fc4(0x4a2)],'reason':_0x360fc4(0x39e),'fieldId':_0x227bf0[_0x360fc4(0x174)]['groupFieldId']};let _0x22b219=this['_projectRows'](_0x1257e7,_0x227bf0),_0x3cbbb5=this[_0x360fc4(0x457)](_0x1257e7,_0x227bf0),_0x351bda=_0x227bf0[_0x360fc4(0x174)]??{},_0x15f2e=this[_0x360fc4(0x194)](_0x1257e7,(_0x3b9410=_0x351bda[_0x360fc4(0x31c)])==null?void 0x0:_0x3b9410[_0x360fc4(0x19b)]),_0x4ee07c=this[_0x360fc4(0x304)](_0x1257e7,_0x227bf0,_0x31768a['id'],_0x15f2e),_0xa4e35d=new Map();if(F(_0x1257e7,_0x31768a['id'])){let _0x5115bd=this[_0x360fc4(0x291)](_0x1257e7,_0x31768a['id'],_0x227bf0['id'],_0x22b219['map'](_0x3b2ac0=>_0x3b2ac0[_0x360fc4(0x345)])),_0x2b4a1e=new Map();return _0x22b219['forEach'](_0x567bea=>{const _0x4ab73f=_0x360fc4;let _0x1805f0=_0x5115bd[_0x4ab73f(0x47c)][_0x4ab73f(0x318)](_0x567bea[_0x4ab73f(0x345)])??null,_0x28427b=_0x1805f0??'',_0x187339=_0x1805f0?_0x1257e7[_0x4ab73f(0x1d7)][_0x1805f0]:void 0x0,_0x2fd7d7=_0x2b4a1e[_0x4ab73f(0x318)](_0x28427b)??{'key':_0x28427b,'title':_0x187339?String(yt(_0x1257e7,_0x187339['id'],_0x1257e7['primaryFieldId'])??_0x1805f0):this['_kanbanLaneTitle'](_0x31768a,_0x28427b,_0x351bda),'recordIds':[]};_0x2fd7d7[_0x4ab73f(0x3d1)][_0x4ab73f(0x161)](_0x567bea[_0x4ab73f(0x345)]),_0x2b4a1e[_0x4ab73f(0x3fe)](_0x28427b,_0x2fd7d7);}),{'type':_0x3dd96c[_0x360fc4(0x4a2)],'fields':_0x3cbbb5,'rows':_0x22b219,'groups':[],'groupFieldId':_0x31768a['id'],'titleFieldId':_0x15f2e,'coverFieldId':this[_0x360fc4(0xdf)](_0x1257e7,_0x351bda),'cardLayout':_0x351bda['cardLayout']===_0x360fc4(0x13d)?'compose':'normal','showFieldNames':_0x351bda[_0x360fc4(0x37b)]!==!0x1,'visibleCardFieldIds':_0x4ee07c,'lanes':['',..._0x5115bd[_0x360fc4(0x437)]][_0x360fc4(0xeb)](_0x5a9ead=>{const _0x22a031=_0x360fc4;let _0x484ebd=_0x2b4a1e[_0x22a031(0x318)](_0x5a9ead);return _0x484ebd!=null&&_0x484ebd[_0x22a031(0x3d1)][_0x22a031(0x1bf)]?[_0x484ebd]:[];})};}return this[_0x360fc4(0x34d)](_0x31768a,_0x351bda)['forEach'](_0x18cadf=>_0xa4e35d[_0x360fc4(0x3fe)](_0x18cadf['key'],{..._0x18cadf,'recordIds':[]})),_0x22b219[_0x360fc4(0x29b)](_0x316d63=>{const _0x502921=_0x360fc4;this[_0x502921(0x47b)](_0x31768a,_0x316d63[_0x502921(0x259)][_0x31768a['id']])['forEach'](_0x21c34d=>{const _0x280716=_0x502921;let _0x53ec44=_0xa4e35d[_0x280716(0x318)](_0x21c34d)??{'key':_0x21c34d,'title':this[_0x280716(0x2ee)](_0x31768a,_0x21c34d,_0x351bda),'color':this[_0x280716(0x2ff)](_0x31768a,_0x21c34d,_0x351bda),'recordIds':[]};_0x53ec44[_0x280716(0x3d1)][_0x280716(0x161)](_0x316d63[_0x280716(0x345)]),_0xa4e35d[_0x280716(0x3fe)](_0x21c34d,_0x53ec44);});}),{'type':_0x3dd96c[_0x360fc4(0x4a2)],'fields':_0x3cbbb5,'rows':_0x22b219,'groups':this['_projectGroups'](_0x1257e7,_0x227bf0,_0x22b219),'groupFieldId':_0x31768a['id'],'titleFieldId':_0x15f2e,'coverFieldId':this[_0x360fc4(0xdf)](_0x1257e7,_0x351bda),'cardLayout':_0x351bda['cardLayout']===_0x360fc4(0x13d)?_0x360fc4(0x13d):'normal','showFieldNames':_0x351bda[_0x360fc4(0x37b)]!==!0x1,'visibleCardFieldIds':_0x4ee07c,'lanes':Array[_0x360fc4(0x1d1)](_0xa4e35d[_0x360fc4(0x259)]())};}[_0x327967(0x491)](_0x341ede,_0x15a1e5){const _0x382470=_0x327967;var _0x2c5796;let _0x7be566=(_0x2c5796=_0x15a1e5[_0x382470(0x174)])==null?void 0x0:_0x2c5796[_0x382470(0x110)];return _0x7be566&&this[_0x382470(0x2e3)](_0x341ede,_0x7be566)?_0x7be566:this[_0x382470(0x1b3)](_0x341ede,_0x490830=>this[_0x382470(0x133)](_0x490830));}['_findKanbanGroupField'](_0x16497d,_0x48efd8){const _0x2a6d72=_0x327967;for(let _0x5ea9f5 of _0x16497d[_0x2a6d72(0x1f8)]){let _0x11bd6d=_0x16497d['fields'][_0x5ea9f5];if(_0x11bd6d&&_0x48efd8(_0x11bd6d))return _0x11bd6d['id'];}return null;}[_0x327967(0x2e3)](_0x37ba01,_0x36ca2a){const _0x108509=_0x327967;let _0x4978bc=_0x37ba01[_0x108509(0x305)][_0x36ca2a];return this[_0x108509(0x133)](_0x4978bc)||F(_0x37ba01,_0x36ca2a);}['_isAllowedKanbanGroupField'](_0x218f3a){const _0x1bb46f=_0x327967;return!!_0x218f3a&&(_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0x413)]||_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0x190)]||_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0x20a)]||_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0x3df)]||_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0xf7)]||_0x218f3a[_0x1bb46f(0x346)]===_0x1013ad[_0x1bb46f(0x205)]);}['_isColorfulKanbanGroupField'](_0xdf4233){const _0x5e83fc=_0x327967;return _0xdf4233[_0x5e83fc(0x346)]===_0x1013ad[_0x5e83fc(0x413)]||_0xdf4233[_0x5e83fc(0x346)]===_0x1013ad[_0x5e83fc(0x190)];}[_0x327967(0xdf)](_0x522d94,_0x354120){const _0x3731ec=_0x327967;var _0xeb3023;let _0x1aa18f=_0x354120['coverFieldId']??((_0xeb3023=_0x354120[_0x3731ec(0x31c)])==null?void 0x0:_0xeb3023['coverFieldId'])??null;if(!_0x1aa18f)return null;let _0x4951ea=_0x522d94[_0x3731ec(0x305)][_0x1aa18f];return _0x4951ea&&this['_capabilities'](_0x4951ea)[_0x3731ec(0x476)]?_0x4951ea['id']:null;}[_0x327967(0x304)](_0x5342f8,_0x870e5d,_0x21512a,_0x391879=this['_resolveCardTitleFieldId'](_0x5342f8,((()=>{const _0x5ceb53=_0x327967;var _0x355656;return(_0x355656=_0x870e5d[_0x5ceb53(0x174)])==null||(_0x355656=_0x355656['card'])==null?void 0x0:_0x355656[_0x5ceb53(0x19b)];})()))){const _0x406905=_0x327967;var _0x43a1d7;let _0x354f0a=_0x870e5d[_0x406905(0x174)]??{},_0x1758db=(_0x43a1d7=_0x354f0a[_0x406905(0x31c)])!=null&&(_0x43a1d7=_0x43a1d7['fieldIds'])!=null&&_0x43a1d7['length']?_0x354f0a[_0x406905(0x31c)][_0x406905(0x143)]:Qr(_0x5342f8,[_0x391879,_0x5342f8[_0x406905(0x44a)],_0x21512a]),_0x51005f=_0x354f0a[_0x406905(0x105)]??{};return _0x1758db[_0x406905(0x1be)](_0x25cf68=>{const _0x127463=_0x406905;var _0x270ff6,_0x5031c1;let _0x270b0e=_0x5342f8[_0x127463(0x305)][_0x25cf68];return!(!_0x270b0e||_0x270b0e['system']===!0x0||_0x270b0e[_0x127463(0x346)]===_0x1013ad[_0x127463(0x212)]||_0x270b0e['id']===_0x21512a||_0x270b0e['id']===_0x391879||(_0x270ff6=_0x870e5d[_0x127463(0x105)])!=null&&(_0x270ff6=_0x270ff6[_0x25cf68])!=null&&_0x270ff6['hidden']||(_0x5031c1=_0x51005f[_0x25cf68])!=null&&_0x5031c1[_0x127463(0x30a)]);})['sort']((_0x35069d,_0xa72971)=>{const _0x147005=_0x406905;var _0x28b5a5,_0x147997;return(((_0x28b5a5=_0x51005f[_0x35069d])==null?void 0x0:_0x28b5a5[_0x147005(0x148)])??_0x1758db['indexOf'](_0x35069d))-(((_0x147997=_0x51005f[_0xa72971])==null?void 0x0:_0x147997[_0x147005(0x148)])??_0x1758db[_0x147005(0x1c5)](_0xa72971));});}[_0x327967(0x34d)](_0x3c0ce2,_0x372bf6){const _0x3f8a8f=_0x327967;var _0x5b9fbe;let _0x5df7ff=(Array['isArray']((_0x5b9fbe=_0x3c0ce2['config'])==null?void 0x0:_0x5b9fbe[_0x3f8a8f(0x495)])?_0x3c0ce2[_0x3f8a8f(0x174)][_0x3f8a8f(0x495)]:[])[_0x3f8a8f(0xeb)]((_0x11edb3,_0x5eebdc)=>{const _0xce522=_0x3f8a8f;if(_0x11edb3==null)return[];let _0x93236b=typeof _0x11edb3=='string'?{'id':_0x11edb3,'name':_0x11edb3,'color':void 0x0}:_0x11edb3,_0x5f1c7a=String(_0x93236b['id']??_0x93236b[_0xce522(0x158)]??_0xce522(0x330)+(_0x5eebdc+0x1));return[{'key':_0x5f1c7a,'title':String(_0x93236b[_0xce522(0x158)]??_0x93236b['id']??_0x5f1c7a),'color':this[_0xce522(0x2ff)](_0x3c0ce2,_0x5f1c7a,_0x372bf6)}];});return Object[_0x3f8a8f(0x209)](_0x372bf6['columnSettings']??{})[_0x3f8a8f(0x29b)](([_0x24593f,_0x48ff78])=>{const _0x550489=_0x3f8a8f;_0x5df7ff['some'](_0xe2ba33=>_0xe2ba33['key']===_0x24593f)||_0x5df7ff['push']({'key':_0x24593f,'title':this[_0x550489(0x3cc)](_0x3c0ce2)?_0x48ff78[_0x550489(0x1e5)]??this[_0x550489(0x2ee)](_0x3c0ce2,_0x24593f,_0x372bf6):this['_kanbanLaneTitle'](_0x3c0ce2,_0x24593f,_0x372bf6),'color':this[_0x550489(0x2ff)](_0x3c0ce2,_0x24593f,_0x372bf6)});}),_0x5df7ff;}[_0x327967(0x47b)](_0xcff281,_0x34001b){const _0x11a7d8=_0x327967;let _0x3d7e85=_0x4d629f=>{var _0x15d06f;let _0x1b8423=_0x4d629f==null?'':String(_0x4d629f);return!_0x1b8423||!this['_isColorfulKanbanGroupField'](_0xcff281)?_0x1b8423:((_0x15d06f=Li(_0xcff281,_0x1b8423))==null?void 0x0:_0x15d06f['id'])??_0x1b8423;};if(Array[_0x11a7d8(0x3fb)](_0x34001b)){let _0x1c3114=_0x34001b[_0x11a7d8(0x412)](_0x3d7e85)[_0x11a7d8(0x1be)](_0x172d6b=>_0x172d6b!=='');return _0x1c3114[_0x11a7d8(0x1bf)]?_0x1c3114:[''];}return[_0x3d7e85(_0x34001b)];}[_0x327967(0x2ee)](_0x3efb0b,_0x545bbe,_0x4be1a2){const _0x50a02f=_0x327967;if(!_0x545bbe)return _0x50a02f(0x42a);let _0x1419f0=Li(_0x3efb0b,_0x545bbe);return(_0x1419f0==null?void 0x0:_0x1419f0[_0x50a02f(0x158)])??_0x545bbe;}[_0x327967(0x2ff)](_0x5055d8,_0x10334e,_0x15cc9c){const _0x35a96b=_0x327967;var _0x1fb47b;if(this['_isColorfulKanbanGroupField'](_0x5055d8))return(_0x1fb47b=Li(_0x5055d8,_0x10334e))==null?void 0x0:_0x1fb47b[_0x35a96b(0x233)];}[_0x327967(0x2bb)](_0xaceaed,_0x5ea401){const _0x3a4c1f=_0x327967;let _0x16bcc7=this[_0x3a4c1f(0x296)](_0xaceaed,_0x5ea401['config']??{}),_0x313c8f=_0xaceaed[_0x3a4c1f(0x305)][_0x16bcc7[_0x3a4c1f(0x3d2)]];if(!_0x313c8f||_0x313c8f[_0x3a4c1f(0x346)]!==_0x1013ad[_0x3a4c1f(0x2b2)]||_0x313c8f[_0x3a4c1f(0x397)]===!0x0||_0x313c8f[_0x3a4c1f(0x272)]===!0x0||!this['_capabilities'](_0x313c8f)['usableAsCalendarDate'])return{'type':_0x3a4c1f(0x461),'viewType':_0x3dd96c[_0x3a4c1f(0x322)],'reason':_0x3a4c1f(0x24d),'fieldId':_0x16bcc7[_0x3a4c1f(0x3d2)]};let _0x771821=_0x16bcc7[_0x3a4c1f(0x406)]?_0xaceaed[_0x3a4c1f(0x305)][_0x16bcc7[_0x3a4c1f(0x406)]]:void 0x0,_0x45556b=this[_0x3a4c1f(0x183)](_0xaceaed,_0x5ea401);return{'type':_0x3dd96c['Calendar'],'config':_0x16bcc7,'fields':this[_0x3a4c1f(0x457)](_0xaceaed,_0x5ea401),'rows':_0x45556b,'groups':this['_projectGroups'](_0xaceaed,_0x5ea401,_0x45556b),'events':_0x45556b['flatMap'](_0x992ff9=>{const _0xae9a5b=_0x3a4c1f;let _0x52caed=dn(_0x992ff9[_0xae9a5b(0x259)][_0x16bcc7[_0xae9a5b(0x3d2)]]);if(!Number['isFinite'](_0x52caed))return[];let _0x9aa89b=_0x992ff9[_0xae9a5b(0x259)][_0x16bcc7[_0xae9a5b(0x3d2)]],_0x22c9e7=_0x16bcc7[_0xae9a5b(0x406)]==null?void 0x0:_0x992ff9[_0xae9a5b(0x259)][_0x16bcc7[_0xae9a5b(0x406)]],_0x20a39d=_0x16bcc7[_0xae9a5b(0x406)]==null?void 0x0:dn(_0x22c9e7),_0x1f5093=Number[_0xae9a5b(0x138)](_0x20a39d)?_0x20a39d:void 0x0;return[{'recordId':_0x992ff9[_0xae9a5b(0x345)],'title':this['_title'](_0xaceaed,_0x992ff9,_0x16bcc7[_0xae9a5b(0x19b)]),'start':_0x52caed,'end':_0x1f5093,'color':this['_calendarEventColor'](_0xaceaed,_0x992ff9,_0x16bcc7),'startMs':_0x52caed,'endMs':_0x1f5093,'allDay':this[_0xae9a5b(0x1a6)](_0x313c8f,_0x771821,_0x9aa89b,_0x22c9e7),'fieldValues':_0x992ff9['values']}];})};}[_0x327967(0x296)](_0x285179,_0x579a34){const _0x490e7b=_0x327967;let _0x52272c=this[_0x490e7b(0x15c)](_0x285179,_0x579a34[_0x490e7b(0x3d2)]),_0x78c48a=_0x579a34[_0x490e7b(0x406)]&&this[_0x490e7b(0x25f)](_0x285179,_0x579a34[_0x490e7b(0x406)])?_0x579a34[_0x490e7b(0x406)]:this[_0x490e7b(0x3d3)](_0x285179,_0x52272c)??void 0x0,_0x1006f9=_0x579a34[_0x490e7b(0x19b)]?_0x285179['fields'][_0x579a34['titleFieldId']]:void 0x0,_0x4afe6f=_0x1006f9&&_0x1006f9[_0x490e7b(0x272)]!==!0x0&&_0x1006f9[_0x490e7b(0x346)]!==_0x1013ad[_0x490e7b(0x212)]?_0x579a34[_0x490e7b(0x19b)]:_0x285179['primaryFieldId'],_0x1e3deb=_0x579a34['mode']==='day'||_0x579a34[_0x490e7b(0x441)]===_0x490e7b(0x39a)?_0x579a34[_0x490e7b(0x441)]:_0x490e7b(0x3ee),_0x2e3dab=_0x579a34[_0x490e7b(0x2e6)]==='short'||_0x579a34[_0x490e7b(0x2e6)]===_0x490e7b(0x466)?_0x579a34[_0x490e7b(0x2e6)]:'medium',_0x7ff5da=typeof _0x579a34[_0x490e7b(0x417)]==_0x490e7b(0x2a0)&&_0x579a34['timeZone'][_0x490e7b(0x140)]()?_0x579a34[_0x490e7b(0x417)]:'local',_0xd6c28c=this[_0x490e7b(0x39d)](_0x285179,_0x579a34);return{..._0x579a34,'startDateFieldId':_0x52272c,'endDateFieldId':_0x78c48a,'titleFieldId':_0x4afe6f,'mode':_0x1e3deb,'timeslotSize':_0x2e3dab,'timeZone':_0x7ff5da,'displayColor':_0xd6c28c,'fieldSettings':Object['fromEntries'](Object[_0x490e7b(0x209)](_0x579a34[_0x490e7b(0x105)]??{})[_0x490e7b(0x1be)](([_0x3fdded])=>{const _0x590fcb=_0x490e7b;let _0x426c01=_0x285179[_0x590fcb(0x305)][_0x3fdded];return!!(_0x426c01&&_0x426c01[_0x590fcb(0x272)]!==!0x0&&_0x426c01['type']!==_0x1013ad['RecordId']);}))};}['_resolveCalendarDateFieldId'](_0x258f25,_0x24a664){const _0x397448=_0x327967;return _0x24a664&&this[_0x397448(0x25f)](_0x258f25,_0x24a664)?_0x24a664:this[_0x397448(0x3d3)](_0x258f25)??_0x24a664??'';}[_0x327967(0x3d3)](_0x38d111,_0x135842){const _0x18336a=_0x327967;for(let _0x235dbe of _0x38d111[_0x18336a(0x1f8)])if(_0x235dbe!==_0x135842&&this[_0x18336a(0x25f)](_0x38d111,_0x235dbe))return _0x235dbe;return null;}['_isCalendarDateField'](_0x2ae89d,_0x456147){const _0x42222f=_0x327967;let _0x3a1612=_0x2ae89d[_0x42222f(0x305)][_0x456147];return!!_0x3a1612&&_0x3a1612['type']===_0x1013ad[_0x42222f(0x2b2)]&&_0x3a1612['readonly']!==!0x0&&_0x3a1612[_0x42222f(0x272)]!==!0x0&&this[_0x42222f(0x23c)](_0x3a1612)['usableAsCalendarDate'];}[_0x327967(0x39d)](_0x469275,_0x5453bc){const _0x218fda=_0x327967;let _0x121b77=_0x5453bc[_0x218fda(0xf6)];if((_0x121b77==null?void 0x0:_0x121b77[_0x218fda(0x346)])===_0x218fda(0x28b)){let _0x272c06=_0x469275[_0x218fda(0x305)][_0x121b77[_0x218fda(0x173)]];if(_0x272c06&&_0x272c06[_0x218fda(0x346)]===_0x1013ad['SingleSelect'])return _0x121b77;}if((_0x121b77==null?void 0x0:_0x121b77['type'])===_0x218fda(0x26b)&&typeof _0x121b77[_0x218fda(0x233)]=='string'&&_0x121b77[_0x218fda(0x233)][_0x218fda(0x140)]())return{'type':'custom','color':_0x121b77[_0x218fda(0x233)]};if(_0x5453bc['colorFieldId']){let _0x3594b7=_0x469275[_0x218fda(0x305)][_0x5453bc[_0x218fda(0xe8)]];if(_0x3594b7&&_0x3594b7[_0x218fda(0x346)]===_0x1013ad[_0x218fda(0x413)])return{'type':_0x218fda(0x28b),'fieldId':_0x5453bc[_0x218fda(0xe8)]};}return{'type':'custom','color':_0x218fda(0x2f9)};}[_0x327967(0x284)](_0xf4c1e9,_0x14e00a,_0x53909b){const _0x266a2c=_0x327967;let _0x786158=_0x53909b['displayColor'];if((_0x786158==null?void 0x0:_0x786158[_0x266a2c(0x346)])===_0x266a2c(0x28b)){var _0x4e6125;let _0x3f33ee=_0xf4c1e9[_0x266a2c(0x305)][_0x786158[_0x266a2c(0x173)]];if(!_0x3f33ee)return;let _0x2c9cfd=_0x14e00a[_0x266a2c(0x259)][_0x786158['fieldId']],_0x1d2c37=Array[_0x266a2c(0x3fb)](_0x2c9cfd)?_0x2c9cfd[0x0]:_0x2c9cfd;return _0x1d2c37==null||(_0x4e6125=Li(_0x3f33ee,String(_0x1d2c37)))==null?void 0x0:_0x4e6125[_0x266a2c(0x233)];}if((_0x786158==null?void 0x0:_0x786158[_0x266a2c(0x346)])===_0x266a2c(0x26b))return _0x786158[_0x266a2c(0x233)];}['_isAllDayCalendarEvent'](_0x5cccd1,_0x3eedc7,_0xf226db,_0x19af80){const _0x4b5e43=_0x327967;var _0x5d863c,_0x36d5cb;let _0x12a8cf=((_0x5d863c=_0x5cccd1[_0x4b5e43(0x174)])==null?void 0x0:_0x5d863c[_0x4b5e43(0x26e)])===!0x0,_0xfc54af=(_0x3eedc7==null||(_0x36d5cb=_0x3eedc7['config'])==null?void 0x0:_0x36d5cb[_0x4b5e43(0x26e)])===!0x0;return!_0x12a8cf&&!_0xfc54af;}[_0x327967(0x3c0)](_0x115771,_0x226d5f){const _0x2c32a2=_0x327967;var _0x4ad8d0,_0x1208fe;let _0x9aa206=((_0x4ad8d0=_0x115771[_0x2c32a2(0x174)])==null?void 0x0:_0x4ad8d0[_0x2c32a2(0x26e)])===!0x0,_0x97c637=((_0x1208fe=_0x226d5f['config'])==null?void 0x0:_0x1208fe[_0x2c32a2(0x26e)])===!0x0;return!_0x9aa206&&!_0x97c637;}[_0x327967(0x391)](_0x1e292d,_0x569681){const _0x515c58=_0x327967;let _0x595cfd=this[_0x515c58(0x1e7)](_0x1e292d,_0x569681[_0x515c58(0x174)]),_0x21018b=_0x1e292d[_0x515c58(0x305)][_0x595cfd[_0x515c58(0x3d2)]];if(!_0x21018b||_0x21018b[_0x515c58(0x346)]!==_0x1013ad['Date']||_0x21018b[_0x515c58(0x397)]===!0x0||_0x21018b['system']===!0x0||!this[_0x515c58(0x23c)](_0x21018b)[_0x515c58(0x388)])return{'type':_0x515c58(0x461),'viewType':_0x3dd96c[_0x515c58(0x376)],'reason':_0x515c58(0x1b1),'fieldId':_0x595cfd[_0x515c58(0x3d2)]};let _0x15c9df=_0x1e292d['fields'][_0x595cfd[_0x515c58(0x406)]];if(!_0x15c9df||_0x15c9df[_0x515c58(0x346)]!==_0x1013ad[_0x515c58(0x2b2)]||_0x15c9df[_0x515c58(0x397)]===!0x0||_0x15c9df[_0x515c58(0x272)]===!0x0||!this['_capabilities'](_0x15c9df)[_0x515c58(0x43d)])return{'type':_0x515c58(0x461),'viewType':_0x3dd96c[_0x515c58(0x376)],'reason':_0x515c58(0x455),'fieldId':_0x595cfd[_0x515c58(0x406)]};let _0x1fb9db=this[_0x515c58(0x3c0)](_0x21018b,_0x15c9df),_0x15f3c9=this[_0x515c58(0x183)](_0x1e292d,_0x569681),_0x34ca9a=_0x15f3c9[_0x515c58(0xeb)](_0x454c9b=>{const _0x113f68=_0x515c58;let _0x112834=dn(_0x454c9b[_0x113f68(0x259)][_0x595cfd['startDateFieldId']]),_0x5d4a96=dn(_0x454c9b[_0x113f68(0x259)][_0x595cfd['endDateFieldId']]);if(!Number[_0x113f68(0x138)](_0x112834)||!Number[_0x113f68(0x138)](_0x5d4a96))return[];let _0x9e55bc=Math[_0x113f68(0x37a)](_0x112834,_0x5d4a96),_0x31f18e=Math[_0x113f68(0x31a)](_0x112834,_0x5d4a96),_0x4b159a=_0x595cfd[_0x113f68(0x192)]==null?void 0x0:Number(_0x454c9b[_0x113f68(0x259)][_0x595cfd[_0x113f68(0x192)]]);return[{'recordId':_0x454c9b[_0x113f68(0x345)],'title':this['_title'](_0x1e292d,_0x454c9b,_0x595cfd[_0x113f68(0x19b)]),'start':_0x9e55bc,'end':_0x31f18e,'color':this[_0x113f68(0x21f)](_0x1e292d,_0x454c9b,_0x595cfd),'progress':Number['isFinite'](_0x4b159a)?_0x4b159a:void 0x0,'workingDayCount':_0x595cfd['workingDaysOnly']?Ti(_0x9e55bc,_0x31f18e,_0x595cfd[_0x113f68(0x358)]):void 0x0,'dependencyRecordIds':this[_0x113f68(0x43a)](_0x454c9b['values'][_0x595cfd['dependencyFieldId']??''])}];}),_0xe495d7=_0x34ca9a[_0x515c58(0x1bf)]?Z(Math[_0x515c58(0x37a)](..._0x34ca9a[_0x515c58(0x412)](_0x5219b1=>_0x5219b1[_0x515c58(0x47f)]))-0x5a*oi):Z(Date[_0x515c58(0xfa)]()-0x5a*oi),_0x1bbdf4=_0x34ca9a['length']?Z(Math[_0x515c58(0x31a)](..._0x34ca9a['map'](_0x2c9275=>_0x2c9275[_0x515c58(0x3c3)]))+0x5b*oi):Z(Date[_0x515c58(0xfa)]()+0x5b*oi),_0x5ae482=_i(_0x595cfd[_0x515c58(0x241)],_0xe495d7,_0x1bbdf4,_0x595cfd[_0x515c58(0x453)]?_0x595cfd[_0x515c58(0x358)]:void 0x0);return{'type':_0x3dd96c[_0x515c58(0x376)],'fields':this[_0x515c58(0x457)](_0x1e292d,{..._0x569681,'config':_0x595cfd}),'rows':_0x15f3c9,'groups':this[_0x515c58(0x297)](_0x1e292d,_0x569681,_0x15f3c9),'config':_0x595cfd,'dateRangeAllDay':_0x1fb9db,'timeline':{'scale':_0x595cfd[_0x515c58(0x241)],'start':_0xe495d7,'end':_0x1bbdf4,'unitWidth':_0x5ae482[_0x515c58(0x479)],'majorHeaders':_0x5ae482[_0x515c58(0x1ff)],'columns':_0x5ae482[_0x515c58(0x137)]},'bars':_0x34ca9a};}['_normalizeGanttConfig'](_0x500db4,_0x3b04da){const _0x2260d4=_0x327967;let _0x25bc28=this[_0x2260d4(0x3b4)](_0x500db4,_0x3b04da[_0x2260d4(0x3d2)],_0x2260d4(0x47f)),_0x1185f2=this['_resolveGanttDateFieldId'](_0x500db4,_0x3b04da['endDateFieldId'],_0x2260d4(0x3c3))||_0x25bc28,_0x10c9e5=_0x3b04da[_0x2260d4(0x19b)]?_0x500db4[_0x2260d4(0x305)][_0x3b04da[_0x2260d4(0x19b)]]:void 0x0,_0x487bc6=_0x10c9e5&&_0x10c9e5['system']!==!0x0&&_0x10c9e5[_0x2260d4(0x346)]!==_0x1013ad[_0x2260d4(0x212)]?_0x3b04da[_0x2260d4(0x19b)]:_0x500db4[_0x2260d4(0x44a)],_0x5a979d=_0x3b04da[_0x2260d4(0x241)]===_0x2260d4(0x39a)||_0x3b04da[_0x2260d4(0x241)]===_0x2260d4(0x324)||_0x3b04da[_0x2260d4(0x241)]===_0x2260d4(0x102)?_0x3b04da['scale']:_0x2260d4(0x3ee),_0x2d93ea=gi(_0x3b04da[_0x2260d4(0x358)]);return{..._0x3b04da,'startDateFieldId':_0x25bc28,'endDateFieldId':_0x1185f2,'titleFieldId':_0x487bc6,'scale':_0x5a979d,'leftPaneWidth':typeof _0x3b04da[_0x2260d4(0x323)]==_0x2260d4(0x218)?_0x3b04da[_0x2260d4(0x323)]:void 0x0,'leftPaneCollapsed':_0x3b04da[_0x2260d4(0x221)]===!0x0,'showTodayLine':_0x3b04da[_0x2260d4(0x139)]!==!0x1,'displayColor':this['_normalizeGanttDisplayColor'](_0x500db4,_0x3b04da),'fieldSettings':Object[_0x2260d4(0x49f)](Object[_0x2260d4(0x209)](_0x3b04da['fieldSettings']??{})[_0x2260d4(0x1be)](([_0x197b8d])=>{const _0x3df237=_0x2260d4;let _0x5bf833=_0x500db4[_0x3df237(0x305)][_0x197b8d];return!!(_0x5bf833&&_0x5bf833[_0x3df237(0x272)]!==!0x0&&_0x5bf833['type']!==_0x1013ad[_0x3df237(0x212)]);})),'workingDaysOnly':_0x3b04da['workingDaysOnly']===!0x0,'workingDays':_0x2d93ea};}['_resolveGanttDateFieldId'](_0x13caf2,_0x39004f,_0x2e509e){const _0x3568e4=_0x327967;if(_0x39004f&&this[_0x3568e4(0x342)](_0x13caf2,_0x39004f,_0x2e509e)||_0x39004f)return _0x39004f;for(let _0x5ef767 of _0x13caf2[_0x3568e4(0x1f8)])if(this[_0x3568e4(0x342)](_0x13caf2,_0x5ef767,_0x2e509e))return _0x5ef767;return _0x39004f??'';}[_0x327967(0x342)](_0x35accb,_0x238dc1,_0x12e7c4){const _0x28e445=_0x327967;let _0x153505=_0x35accb['fields'][_0x238dc1];if(!_0x153505||_0x153505[_0x28e445(0x346)]!==_0x1013ad['Date']||_0x153505[_0x28e445(0x397)]===!0x0||_0x153505['system']===!0x0)return!0x1;let _0xe93349=this['_capabilities'](_0x153505);return _0x12e7c4===_0x28e445(0x47f)?_0xe93349[_0x28e445(0x388)]:_0xe93349[_0x28e445(0x43d)];}['_normalizeGanttDisplayColor'](_0x41ee7f,_0x50aff5){const _0x455b57=_0x327967;let _0x442111=_0x50aff5['displayColor'];if((_0x442111==null?void 0x0:_0x442111['type'])===_0x455b57(0x28b)){let _0xbc5109=_0x41ee7f['fields'][_0x442111[_0x455b57(0x173)]];if(_0xbc5109&&_0xbc5109[_0x455b57(0x346)]===_0x1013ad[_0x455b57(0x413)])return _0x442111;}return(_0x442111==null?void 0x0:_0x442111[_0x455b57(0x346)])==='conditional'&&Array[_0x455b57(0x3fb)](_0x442111[_0x455b57(0x21a)])?{'type':_0x455b57(0x188),'rules':_0x442111[_0x455b57(0x21a)]['filter'](_0xaab968=>!!_0x41ee7f[_0x455b57(0x305)][_0xaab968[_0x455b57(0x173)]])}:(_0x442111==null?void 0x0:_0x442111['type'])===_0x455b57(0x26b)&&typeof _0x442111[_0x455b57(0x233)]==_0x455b57(0x2a0)&&_0x442111[_0x455b57(0x233)][_0x455b57(0x140)]()?{'type':_0x455b57(0x26b),'color':_0x442111[_0x455b57(0x233)]}:{'type':_0x455b57(0x26b),'color':_0x455b57(0x1e6)};}['_ganttBarColor'](_0x20d294,_0x46e341,_0x35c58b){const _0x5c9a8d=_0x327967;let _0x146dc1=_0x35c58b[_0x5c9a8d(0xf6)];if((_0x146dc1==null?void 0x0:_0x146dc1[_0x5c9a8d(0x346)])===_0x5c9a8d(0x188)){let _0x511f69=_0x146dc1[_0x5c9a8d(0x21a)][_0x5c9a8d(0x451)](_0x338628=>this[_0x5c9a8d(0x201)](_0x20d294,_0x46e341,_0x338628));if(_0x511f69)return _0x511f69['color'];}if((_0x146dc1==null?void 0x0:_0x146dc1[_0x5c9a8d(0x346)])===_0x5c9a8d(0x28b)){let _0x370f82=_0x20d294['fields'][_0x146dc1['fieldId']];if(_0x370f82){var _0x32fd83;let _0x21a7a9=_0x46e341[_0x5c9a8d(0x259)][_0x146dc1[_0x5c9a8d(0x173)]],_0x172b5a=Array[_0x5c9a8d(0x3fb)](_0x21a7a9)?_0x21a7a9[0x0]:_0x21a7a9,_0xf8d4b3=_0x172b5a==null||(_0x32fd83=Li(_0x370f82,String(_0x172b5a)))==null?void 0x0:_0x32fd83[_0x5c9a8d(0x233)];if(_0xf8d4b3)return _0xf8d4b3;}}return(_0x146dc1==null?void 0x0:_0x146dc1[_0x5c9a8d(0x346)])===_0x5c9a8d(0x26b)?_0x146dc1[_0x5c9a8d(0x233)]:_0x5c9a8d(0x1e6);}[_0x327967(0x201)](_0x319831,_0x495a04,_0x3e7314){const _0x4b944e=_0x327967;let _0x5aad97=_0x319831[_0x4b944e(0x305)][_0x3e7314[_0x4b944e(0x173)]];return _0x5aad97?xn(_0x495a04[_0x4b944e(0x259)][_0x5aad97['id']],_0x3e7314[_0x4b944e(0xfb)],_0x3e7314[_0x4b944e(0x2d4)],_0x5aad97,{'dateMode':_0x3e7314[_0x4b944e(0x365)]}):!0x1;}[_0x327967(0x1d2)](_0x27f27e,_0x4a44a8){const _0x581538=_0x327967;let _0x16400f=this[_0x581538(0x183)](_0x27f27e,_0x4a44a8),_0x3f77c9=this[_0x581538(0x12b)](_0x27f27e,_0x4a44a8['config']??{}),_0x28ab80=this['_projectFields'](_0x27f27e,_0x4a44a8);return{'type':_0x3dd96c['Gallery'],'fields':_0x28ab80,'rows':_0x16400f,'groups':this['_projectGroups'](_0x27f27e,_0x4a44a8,_0x16400f),'titleFieldId':_0x3f77c9[_0x581538(0x31c)][_0x581538(0x19b)],'coverFieldId':_0x3f77c9[_0x581538(0x1dc)],'cardLayout':_0x3f77c9[_0x581538(0x3f4)]??_0x581538(0x436),'showFieldNames':_0x3f77c9[_0x581538(0x37b)]!==!0x1,'visibleCardFieldIds':this[_0x581538(0x126)](_0x27f27e,_0x4a44a8,_0x3f77c9),'cardSize':_0x3f77c9[_0x581538(0x32c)]??_0x581538(0x1df),'cards':_0x16400f['map'](_0x44d7db=>({'recordId':_0x44d7db['recordId'],'title':this[_0x581538(0x26a)](_0x27f27e,_0x44d7db,_0x3f77c9[_0x581538(0x31c)]['titleFieldId']),'values':_0x44d7db[_0x581538(0x259)]}))};}[_0x327967(0x12b)](_0x3a3b41,_0x1792dd){const _0xfdcace=_0x327967;let _0x550355=_0x1792dd[_0xfdcace(0x31c)]??{'fieldIds':[]},_0x1cee0b=this[_0xfdcace(0x194)](_0x3a3b41,_0x550355[_0xfdcace(0x19b)]),_0x5129e2=this['_resolveGalleryCoverFieldId'](_0x3a3b41,_0x1792dd),_0x41161f=_0x1792dd['cardSize']===_0xfdcace(0x2b4)||_0x1792dd['cardSize']===_0xfdcace(0x3a3)?_0x1792dd[_0xfdcace(0x32c)]:_0xfdcace(0x1df);return{..._0x1792dd,'coverFieldId':_0x5129e2,'cardLayout':_0x1792dd['cardLayout']===_0xfdcace(0x13d)?_0xfdcace(0x13d):_0xfdcace(0x436),'showFieldNames':_0x1792dd[_0xfdcace(0x37b)]!==!0x1,'fieldSettings':Object[_0xfdcace(0x49f)](Object[_0xfdcace(0x209)](_0x1792dd['fieldSettings']??{})['filter'](([_0xafc419])=>{const _0x397c87=_0xfdcace;let _0x40f12e=_0x3a3b41[_0x397c87(0x305)][_0xafc419];return!!(_0x40f12e&&_0x40f12e[_0x397c87(0x272)]!==!0x0&&_0x40f12e['type']!==_0x1013ad[_0x397c87(0x212)]);})),'card':{..._0x550355,'titleFieldId':_0x1cee0b,'coverFieldId':_0x5129e2,'fieldIds':Array[_0xfdcace(0x3fb)](_0x550355[_0xfdcace(0x143)])?_0x550355[_0xfdcace(0x143)]:[]},'cardSize':_0x41161f};}[_0x327967(0x194)](_0x1abf66,_0x506169){const _0x132b92=_0x327967;let _0x401aa2=_0x506169?_0x1abf66[_0x132b92(0x305)][_0x506169]:void 0x0;return _0x401aa2&&_0x401aa2[_0x132b92(0x272)]!==!0x0&&_0x401aa2['type']!==_0x1013ad[_0x132b92(0x212)]?_0x401aa2['id']:Zr(_0x1abf66);}[_0x327967(0x36f)](_0x7f4afe,_0x5b1725){const _0x1bcc9c=_0x327967;var _0x17861a;let _0x5d8f2f=_0x5b1725[_0x1bcc9c(0x1dc)]??((_0x17861a=_0x5b1725['card'])==null?void 0x0:_0x17861a[_0x1bcc9c(0x1dc)])??null;if(!_0x5d8f2f)return null;let _0xedacb2=_0x7f4afe[_0x1bcc9c(0x305)][_0x5d8f2f];return _0xedacb2&&this[_0x1bcc9c(0x23c)](_0xedacb2)['usableAsCardCover']?_0xedacb2['id']:null;}[_0x327967(0x126)](_0x1fba40,_0x154910,_0x518367){const _0x18eb34=_0x327967;var _0x566ca0,_0x497e3c,_0x262cb0;let _0x5dbdaa=_0x518367[_0x18eb34(0x105)]??{},_0x22051c=((_0x566ca0=_0x518367[_0x18eb34(0x31c)])==null?void 0x0:_0x566ca0['titleFieldId'])??Zr(_0x1fba40),_0x4c3a12=_0x518367[_0x18eb34(0x1dc)]??((_0x497e3c=_0x518367[_0x18eb34(0x31c)])==null?void 0x0:_0x497e3c[_0x18eb34(0x1dc)])??null,_0x3eccb0=(_0x262cb0=_0x518367['card'])!=null&&(_0x262cb0=_0x262cb0['fieldIds'])!=null&&_0x262cb0[_0x18eb34(0x1bf)]?_0x518367[_0x18eb34(0x31c)][_0x18eb34(0x143)]:Qr(_0x1fba40,[_0x22051c,_0x4c3a12,_0x1fba40[_0x18eb34(0x44a)]]);return _0x3eccb0[_0x18eb34(0x1be)](_0x448e6a=>{const _0x1797ed=_0x18eb34;var _0x177ed5,_0x4545e0;let _0x3e9c85=_0x1fba40['fields'][_0x448e6a];return!(!_0x3e9c85||_0x3e9c85[_0x1797ed(0x272)]===!0x0||_0x3e9c85[_0x1797ed(0x346)]===_0x1013ad[_0x1797ed(0x212)]||_0x3e9c85['id']===_0x22051c||_0x3e9c85['id']===_0x4c3a12||(_0x177ed5=_0x154910['fieldSettings'])!=null&&(_0x177ed5=_0x177ed5[_0x448e6a])!=null&&_0x177ed5[_0x1797ed(0x30a)]||(_0x4545e0=_0x5dbdaa[_0x448e6a])!=null&&_0x4545e0[_0x1797ed(0x30a)]);})[_0x18eb34(0x460)]((_0x2f22c5,_0x4482d0)=>{const _0x5778be=_0x18eb34;var _0x5a3d82,_0x334513;return(((_0x5a3d82=_0x5dbdaa[_0x2f22c5])==null?void 0x0:_0x5a3d82[_0x5778be(0x148)])??_0x3eccb0['indexOf'](_0x2f22c5))-(((_0x334513=_0x5dbdaa[_0x4482d0])==null?void 0x0:_0x334513[_0x5778be(0x148)])??_0x3eccb0[_0x5778be(0x1c5)](_0x4482d0));});}[_0x327967(0x457)](_0x54f150,_0x466428){const _0xa11b1d=_0x327967;var _0x594bc7;return((_0x594bc7=_0x466428['fieldOrder'])!=null&&_0x594bc7[_0xa11b1d(0x1bf)]?_0x466428[_0xa11b1d(0x1f8)]:_0x54f150['fieldOrder'])[_0xa11b1d(0xeb)](_0x5e80cf=>{const _0x330335=_0xa11b1d;var _0x21dc3d;let _0xcc0eeb=_0x54f150[_0x330335(0x305)][_0x5e80cf],_0x249e7e=((_0x21dc3d=_0x466428['fieldSettings'])==null?void 0x0:_0x21dc3d[_0x5e80cf])??{};return!_0xcc0eeb||_0xcc0eeb[_0x330335(0x272)]===!0x0||_0xcc0eeb[_0x330335(0x346)]===_0x1013ad[_0x330335(0x212)]||_0x249e7e[_0x330335(0x30a)]?[]:[{'id':_0xcc0eeb['id'],'name':_0xcc0eeb['name'],'description':_0xcc0eeb[_0x330335(0x36d)],'type':_0xcc0eeb[_0x330335(0x346)],'config':_0xcc0eeb[_0x330335(0x174)],'width':_0x249e7e[_0x330335(0x10f)],'setting':_0x249e7e}];});}[_0x327967(0x183)](_0x453016,_0x2c319a){const _0x21faa6=_0x327967;var _0x50fe84;return I(_0x21faa6(0x270),()=>{const _0xddddaf=_0x21faa6;var _0x4826fe,_0x8fa08e;let _0x482475=this[_0xddddaf(0x38c)](_0x453016),_0x5d811b=this[_0xddddaf(0x396)](_0x453016['id'],_0x2c319a),_0x365cb5=this[_0xddddaf(0x351)](_0x453016['id']),_0x34ec66=this[_0xddddaf(0x2aa)][_0xddddaf(0x318)](_0x5d811b);if(_0x34ec66&&_0x34ec66[_0xddddaf(0x172)]===this['_globalRevision']&&_0x34ec66[_0xddddaf(0x145)]===this['_getTableRevision'](_0x453016['id'])){if(_0x34ec66['cellRevision']===_0x365cb5&&_0x34ec66[_0xddddaf(0x37e)]===_0x482475)return _0x34ec66[_0xddddaf(0x26f)];if(_0x34ec66[_0xddddaf(0x37d)]!==_0x365cb5&&!this[_0xddddaf(0x27b)](_0x453016['id'],_0x34ec66[_0xddddaf(0x37d)],_0x365cb5,this['_filterSortFieldIds'](_0x2c319a))){let _0x40a1db=_0x34ec66[_0xddddaf(0x26f)]===_0x34ec66[_0xddddaf(0x37e)]?_0x482475:this[_0xddddaf(0x3f6)](_0x34ec66['rows'],_0x482475);if(_0x40a1db)return this[_0xddddaf(0x2aa)][_0xddddaf(0x3fe)](_0x5d811b,{..._0x34ec66,'rows':_0x40a1db,'baseRows':_0x482475,'cellRevision':_0x365cb5}),_0x40a1db;}}let _0x2a4969=I(_0xddddaf(0x280),()=>this[_0xddddaf(0xff)](_0x453016,_0x2c319a,this[_0xddddaf(0x15f)](_0x453016,_0x2c319a,_0x482475)),{'tableId':_0x453016['id'],'viewId':_0x2c319a==null?void 0x0:_0x2c319a['id'],'viewType':_0x2c319a==null?void 0x0:_0x2c319a[_0xddddaf(0x346)],'rows':_0x482475[_0xddddaf(0x1bf)],'filters':(_0x2c319a==null||(_0x4826fe=_0x2c319a[_0xddddaf(0x1be)])==null?void 0x0:_0x4826fe['conditions'][_0xddddaf(0x1bf)])??0x0,'sorts':(_0x2c319a==null||(_0x8fa08e=_0x2c319a[_0xddddaf(0x460)])==null?void 0x0:_0x8fa08e[_0xddddaf(0x1bf)])??0x0});return this[_0xddddaf(0x2aa)][_0xddddaf(0x3fe)](_0x5d811b,{'table':_0x453016,'rows':_0x2a4969,'baseRows':_0x482475,'globalRevision':this[_0xddddaf(0x13e)],'tableRevision':this[_0xddddaf(0x114)](_0x453016['id']),'cellRevision':_0x365cb5}),_0x2a4969;},{'tableId':_0x453016['id'],'viewId':_0x2c319a==null?void 0x0:_0x2c319a['id'],'viewType':_0x2c319a==null?void 0x0:_0x2c319a[_0x21faa6(0x346)],'records':((_0x50fe84=_0x453016[_0x21faa6(0x1e2)])==null?void 0x0:_0x50fe84['length'])??Object['keys'](_0x453016[_0x21faa6(0x1d7)]??{})[_0x21faa6(0x1bf)]});}[_0x327967(0x38c)](_0x98e6d){const _0x45a3cc=_0x327967;var _0x75dcb1;return I(_0x45a3cc(0x381),()=>{const _0x1e8e16=_0x45a3cc;var _0x308ea0;let _0x20c580=this['_getCellRevision'](_0x98e6d['id']),_0x3f91bc=this['_projectedRowsCache'][_0x1e8e16(0x318)](_0x98e6d['id']);if(_0x3f91bc&&_0x3f91bc[_0x1e8e16(0x172)]===this[_0x1e8e16(0x13e)]&&_0x3f91bc[_0x1e8e16(0x145)]===this[_0x1e8e16(0x114)](_0x98e6d['id'])){if(_0x3f91bc['cellRevision']===_0x20c580&&fi(_0x3f91bc[_0x1e8e16(0x496)],_0x98e6d))return _0x3f91bc[_0x1e8e16(0x496)]=_0x98e6d,_0x3f91bc['rows'];let _0x12c8c8=this[_0x1e8e16(0x2de)](_0x98e6d,_0x3f91bc,_0x20c580);if(_0x12c8c8)return _0x12c8c8;}ui(_0x98e6d)||L(_0x98e6d);let _0x1c5702=(_0x308ea0=_0x98e6d[_0x1e8e16(0x1e2)])!=null&&_0x308ea0[_0x1e8e16(0x1bf)]?_0x98e6d[_0x1e8e16(0x1e2)]:hi(_0x98e6d[_0x1e8e16(0x1d7)]),_0x59218c=I('BaseProjection.materializeTableRows',()=>{const _0x235dc2=_0x1e8e16;let _0x52d37c=[];for(let _0x19c01e of _0x1c5702){let _0x21aa57=_0x98e6d[_0x235dc2(0x1d7)][_0x19c01e];if(!_0x21aa57)continue;let _0x2394c8={};for(let _0x284aa0 of _0x98e6d[_0x235dc2(0x1f8)])_0x2394c8[_0x284aa0]=yt(_0x98e6d,_0x21aa57['id'],_0x284aa0);_0x52d37c[_0x235dc2(0x161)]({'recordId':_0x21aa57['id'],'values':_0x2394c8});}return _0x52d37c;},{'tableId':_0x98e6d['id'],'records':_0x1c5702[_0x1e8e16(0x1bf)],'fields':_0x98e6d['fieldOrder'][_0x1e8e16(0x1bf)]});return this[_0x1e8e16(0x1a0)][_0x1e8e16(0x3fe)](_0x98e6d['id'],{'table':_0x98e6d,'rows':_0x59218c,'rowIndexById':li(_0x59218c),'globalRevision':this['_globalRevision'],'tableRevision':this['_getTableRevision'](_0x98e6d['id']),'cellRevision':_0x20c580}),_0x59218c;},{'tableId':_0x98e6d['id'],'records':((_0x75dcb1=_0x98e6d[_0x45a3cc(0x1e2)])==null?void 0x0:_0x75dcb1[_0x45a3cc(0x1bf)])??Object['keys'](_0x98e6d[_0x45a3cc(0x1d7)]??{})[_0x45a3cc(0x1bf)],'fields':_0x98e6d['fieldOrder']['length']});}['_patchProjectedRowsForCellInvalidations'](_0x59cc3c,_0x4427c5,_0x4e328f){const _0x2387fe=_0x327967;let _0xb80230=(this['_cellInvalidations']['get'](_0x59cc3c['id'])??[])[_0x2387fe(0x1be)](_0x5d0866=>_0x5d0866[_0x2387fe(0x49e)]>_0x4427c5[_0x2387fe(0x37d)]&&_0x5d0866[_0x2387fe(0x49e)]<=_0x4e328f);if(!_0xb80230[_0x2387fe(0x1bf)])return _0x4427c5[_0x2387fe(0x496)]===_0x59cc3c?_0x4427c5[_0x2387fe(0x26f)]:null;let _0x45d0a0=_0x4427c5[_0x2387fe(0x26f)],_0x36709a=new Map();for(let _0x158313 of _0xb80230){let _0x12a709=_0x36709a['get'](_0x158313[_0x2387fe(0x345)]);_0x12a709||(_0x12a709=new Set(),_0x36709a[_0x2387fe(0x3fe)](_0x158313['recordId'],_0x12a709)),_0x12a709[_0x2387fe(0x12e)](_0x158313['fieldId']);}for(let [_0x4b8841,_0x1aae7f]of _0x36709a){if(!_0x59cc3c[_0x2387fe(0x1d7)][_0x4b8841])return null;let _0x121b0d=_0x4427c5[_0x2387fe(0x153)][_0x2387fe(0x318)](_0x4b8841);if(_0x121b0d==null)return null;_0x45d0a0===_0x4427c5[_0x2387fe(0x26f)]&&(_0x45d0a0=[..._0x4427c5[_0x2387fe(0x26f)]]);let _0x3c7a9e=_0x45d0a0[_0x121b0d],_0x131c26={..._0x3c7a9e[_0x2387fe(0x259)]};_0x1aae7f[_0x2387fe(0x29b)](_0x156c1e=>{_0x131c26[_0x156c1e]=yt(_0x59cc3c,_0x4b8841,_0x156c1e);}),_0x45d0a0[_0x121b0d]={..._0x3c7a9e,'values':_0x131c26};}let _0x177e1e={'table':_0x59cc3c,'rows':_0x45d0a0,'rowIndexById':_0x4427c5[_0x2387fe(0x153)],'globalRevision':this[_0x2387fe(0x13e)],'tableRevision':this[_0x2387fe(0x114)](_0x59cc3c['id']),'cellRevision':_0x4e328f};return this[_0x2387fe(0x1a0)]['set'](_0x59cc3c['id'],_0x177e1e),this['_cellInvalidations'][_0x2387fe(0x3fe)](_0x59cc3c['id'],(this[_0x2387fe(0x340)][_0x2387fe(0x318)](_0x59cc3c['id'])??[])[_0x2387fe(0x1be)](_0x2be939=>_0x2be939[_0x2387fe(0x49e)]>Math[_0x2387fe(0x31a)](0x0,_0x4e328f-0x100))),_0x45d0a0;}[_0x327967(0x3f6)](_0x305a2e,_0x25227e){const _0x372399=_0x327967;let _0x1bea39=new Map(_0x25227e[_0x372399(0x412)](_0x62b642=>[_0x62b642[_0x372399(0x345)],_0x62b642])),_0x14bf1a=!0x1,_0x349afa=_0x305a2e['map'](_0x3ec098=>{let _0x3ca5ae=_0x1bea39['get'](_0x3ec098['recordId']);return _0x3ca5ae?_0x3ca5ae===_0x3ec098?_0x3ec098:(_0x14bf1a=!0x0,_0x3ca5ae):_0x3ec098;});return _0x14bf1a?_0x349afa:_0x305a2e;}[_0x327967(0x27b)](_0x3fb89d,_0x55ac66,_0x52e3c4,_0x107256){const _0x357efe=_0x327967;return!_0x107256[_0x357efe(0x1d0)]||_0x55ac66===_0x52e3c4?!0x1:_0x52e3c4-_0x55ac66>0x100||(this[_0x357efe(0x340)][_0x357efe(0x318)](_0x3fb89d)??[])[_0x357efe(0x35d)](_0x59d24a=>_0x59d24a['revision']>_0x55ac66&&_0x59d24a[_0x357efe(0x49e)]<=_0x52e3c4&&_0x107256[_0x357efe(0x103)](_0x59d24a[_0x357efe(0x173)]));}[_0x327967(0x210)](_0x2e0531){const _0x2fec92=_0x327967;var _0x5662ac,_0x1e23ba;let _0x4c1c55=new Set();return _0x2e0531==null||(_0x5662ac=_0x2e0531[_0x2fec92(0x1be)])==null||_0x5662ac[_0x2fec92(0x39c)][_0x2fec92(0x29b)](_0x520417=>_0x4c1c55[_0x2fec92(0x12e)](_0x520417['fieldId'])),_0x2e0531==null||(_0x1e23ba=_0x2e0531[_0x2fec92(0x460)])==null||_0x1e23ba['forEach'](_0x3f095a=>_0x4c1c55[_0x2fec92(0x12e)](_0x3f095a[_0x2fec92(0x173)])),_0x4c1c55;}[_0x327967(0x165)](_0x52ebe0){const _0x7c1f27=_0x327967;var _0x5e7d75;let _0x4fa2f1=this['_filterSortFieldIds'](_0x52ebe0);return(_0x5e7d75=_0x52ebe0[_0x7c1f27(0x16a)])==null||_0x5e7d75[_0x7c1f27(0x29b)](_0x2a1efa=>_0x4fa2f1[_0x7c1f27(0x12e)](_0x2a1efa[_0x7c1f27(0x173)])),_0x4fa2f1;}[_0x327967(0x15f)](_0x1ea7e2,_0x1cf163,_0x3876e3){const _0x51e7dd=_0x327967;let _0x50405b=_0x1cf163==null?void 0x0:_0x1cf163[_0x51e7dd(0x1be)];if(!(_0x50405b!=null&&_0x50405b[_0x51e7dd(0x39c)][_0x51e7dd(0x1bf)]))return _0x3876e3;let _0x12cc40=_0x50405b[_0x51e7dd(0x39c)]['filter'](_0x13510b=>!Ii(_0x13510b));return _0x12cc40[_0x51e7dd(0x1bf)]?_0x3876e3[_0x51e7dd(0x1be)](_0x2a0d8e=>{const _0x2ab7fa=_0x51e7dd;if(_0x50405b[_0x2ab7fa(0x168)]===_0x2fab97['OR']){for(let _0x33d326 of _0x12cc40){let _0x4ef13c=_0x1ea7e2[_0x2ab7fa(0x305)][_0x33d326[_0x2ab7fa(0x173)]];if(!_0x4ef13c||this[_0x2ab7fa(0x1cc)]['get'](_0x4ef13c['type'])['filter'](_0x2a0d8e[_0x2ab7fa(0x259)][_0x4ef13c['id']],_0x33d326['operator'],_0x33d326['operand'],_0x4ef13c))return!0x0;}return!0x1;}for(let _0x1580a5 of _0x12cc40){let _0x111825=_0x1ea7e2[_0x2ab7fa(0x305)][_0x1580a5[_0x2ab7fa(0x173)]];if(_0x111825&&!this[_0x2ab7fa(0x1cc)][_0x2ab7fa(0x318)](_0x111825[_0x2ab7fa(0x346)])[_0x2ab7fa(0x1be)](_0x2a0d8e[_0x2ab7fa(0x259)][_0x111825['id']],_0x1580a5[_0x2ab7fa(0xfb)],_0x1580a5[_0x2ab7fa(0x2d4)],_0x111825))return!0x1;}return!0x0;}):_0x3876e3;}[_0x327967(0xff)](_0x2d88e1,_0x148503,_0x541eae){const _0x1a5f19=_0x327967;let _0x3ce8fa=(_0x148503==null?void 0x0:_0x148503[_0x1a5f19(0x460)])??[];if(!_0x3ce8fa[_0x1a5f19(0x1bf)])return _0x541eae;let _0x491eb5=_0x3ce8fa[_0x1a5f19(0xeb)](_0x24b840=>{let _0x3e675b=_0x2d88e1['fields'][_0x24b840['fieldId']];return _0x3e675b?[{..._0x24b840,'field':_0x3e675b}]:[];});return _0x491eb5[_0x1a5f19(0x1bf)]?this[_0x1a5f19(0x458)](_0x491eb5)?this['_fastSortRows'](_0x491eb5,_0x541eae):[..._0x541eae]['sort']((_0x177a45,_0x53605b)=>{const _0x3d723a=_0x1a5f19;for(let _0x55285d of _0x491eb5){let _0x14318e=_0x55285d['field'],_0x233b2c=this['_fieldRegistry'][_0x3d723a(0x318)](_0x14318e[_0x3d723a(0x346)])['compare'](_0x177a45[_0x3d723a(0x259)][_0x14318e['id']],_0x53605b[_0x3d723a(0x259)][_0x14318e['id']],_0x14318e);if(_0x233b2c!==0x0)return _0x55285d[_0x3d723a(0x429)]===_0x391c0e[_0x3d723a(0x2e4)]?-_0x233b2c:_0x233b2c;}return 0x0;}):_0x541eae;}[_0x327967(0x458)](_0x4d2f95){const _0x2cfb9f=_0x327967;return _0x4d2f95[_0x2cfb9f(0x44b)](_0x665330=>ai[_0x2cfb9f(0x103)](_0x665330[_0x2cfb9f(0x1fe)][_0x2cfb9f(0x346)]));}['_fastSortRows'](_0x67c882,_0x50ae7b){const _0x73ddc4=_0x327967;return _0x50ae7b['map']((_0x5a8056,_0x37b9eb)=>({'row':_0x5a8056,'index':_0x37b9eb,'keys':_0x67c882[_0x73ddc4(0x412)](_0x4f7608=>_0x5a8056[_0x73ddc4(0x259)][_0x4f7608[_0x73ddc4(0x173)]])}))[_0x73ddc4(0x460)]((_0x5b06bd,_0x4eb02e)=>{const _0x2b6487=_0x73ddc4;for(let _0x3bd72b=0x0;_0x3bd72b<_0x67c882[_0x2b6487(0x1bf)];_0x3bd72b++){let _0x50da42=Fi(_0x5b06bd[_0x2b6487(0x27a)][_0x3bd72b],_0x4eb02e[_0x2b6487(0x27a)][_0x3bd72b]);if(_0x50da42!==0x0)return _0x67c882[_0x3bd72b][_0x2b6487(0x429)]===_0x391c0e[_0x2b6487(0x2e4)]?-_0x50da42:_0x50da42;}return _0x5b06bd[_0x2b6487(0x1b6)]-_0x4eb02e[_0x2b6487(0x1b6)];})[_0x73ddc4(0x412)](_0x12d17e=>_0x12d17e[_0x73ddc4(0x124)]);}[_0x327967(0x297)](_0x181e80,_0x6aa8ed,_0x571b04){const _0x2601af=_0x327967;var _0x327bd0;return I(_0x2601af(0x462),()=>{const _0x242e7a=_0x2601af;var _0x509c36;if(!((_0x509c36=_0x6aa8ed['group'])!=null&&_0x509c36[_0x242e7a(0x1bf)]))return[];let _0x48d1e9=_0x6aa8ed[_0x242e7a(0x16a)][_0x242e7a(0x1be)](_0x1c350a=>_0x181e80['fields'][_0x1c350a[_0x242e7a(0x173)]]);if(!_0x48d1e9[_0x242e7a(0x1bf)])return[];let _0x390258=this[_0x242e7a(0x10a)](_0x181e80['id'],_0x6aa8ed,_0x48d1e9),_0x3f14e8=this['_getCellRevision'](_0x181e80['id']),_0x45828d=this[_0x242e7a(0x4a7)][_0x242e7a(0x318)](_0x390258);if(_0x45828d&&_0x45828d['globalRevision']===this['_globalRevision']&&_0x45828d['tableRevision']===this[_0x242e7a(0x114)](_0x181e80['id'])){if(_0x45828d[_0x242e7a(0x37d)]===_0x3f14e8&&_0x45828d[_0x242e7a(0x26f)]===_0x571b04)return _0x45828d['groups'];if(_0x45828d[_0x242e7a(0x37d)]!==_0x3f14e8&&!this[_0x242e7a(0x27b)](_0x181e80['id'],_0x45828d[_0x242e7a(0x37d)],_0x3f14e8,this[_0x242e7a(0x165)](_0x6aa8ed)))return this['_projectedGroupsCache'][_0x242e7a(0x3fe)](_0x390258,{..._0x45828d,'rows':_0x571b04,'cellRevision':_0x3f14e8}),_0x45828d[_0x242e7a(0x23b)];}let _0x1a850b=new Map();for(let _0x42bff4 of _0x571b04){let _0x5761e5=_0x1a850b,_0xc57e53='';for(let _0x1e1dfd=0x0;_0x1e1dfd<_0x48d1e9['length'];_0x1e1dfd++){let _0x57db21=_0x48d1e9[_0x1e1dfd],_0x579e42=_0x42bff4[_0x242e7a(0x259)][_0x57db21[_0x242e7a(0x173)]],_0x218de1=ci(_0x579e42),_0x2a6a6f=_0x57db21['fieldId']+'\x00'+_0x218de1,_0x4a3fcd=_0xc57e53+'/'+_0x57db21[_0x242e7a(0x173)]+':'+_0x218de1,_0x3f005e=_0x5761e5['get'](_0x2a6a6f);_0x3f005e||(_0x3f005e={'key':_0x218de1,'value':_0x579e42,'path':_0x4a3fcd,'label':_0x218de1||'Empty','fieldId':_0x57db21['fieldId'],'level':_0x1e1dfd,'recordIds':[],'children':new Map()},_0x5761e5[_0x242e7a(0x3fe)](_0x2a6a6f,_0x3f005e)),_0x3f005e[_0x242e7a(0x3d1)][_0x242e7a(0x161)](_0x42bff4[_0x242e7a(0x345)]),_0x5761e5=_0x3f005e[_0x242e7a(0x22d)],_0xc57e53=_0x4a3fcd;}}let _0x1ecbe6=this[_0x242e7a(0x311)](_0x48d1e9,_0x1a850b,0x0);return this[_0x242e7a(0x4a7)]['set'](_0x390258,{'table':_0x181e80,'rows':_0x571b04,'groups':_0x1ecbe6,'globalRevision':this[_0x242e7a(0x13e)],'tableRevision':this[_0x242e7a(0x114)](_0x181e80['id']),'cellRevision':_0x3f14e8}),_0x1ecbe6;},{'tableId':_0x181e80['id'],'viewId':_0x6aa8ed['id'],'viewType':_0x6aa8ed[_0x2601af(0x346)],'rows':_0x571b04[_0x2601af(0x1bf)],'groupFields':((_0x327bd0=_0x6aa8ed['group'])==null?void 0x0:_0x327bd0[_0x2601af(0x1bf)])??0x0});}[_0x327967(0x311)](_0x3baa6c,_0x5f0389,_0xfc0a00){const _0x403f02=_0x327967;var _0x80b0eb;let _0x59a3be=Array[_0x403f02(0x1d1)](_0x5f0389['values']()),_0x37caff=(_0x80b0eb=_0x3baa6c[_0xfc0a00])==null?void 0x0:_0x80b0eb[_0x403f02(0x429)];return _0x37caff&&_0x59a3be[_0x403f02(0x460)]((_0x12d3bd,_0x4219b8)=>{const _0x2afe0b=_0x403f02;let _0x737661=_0x12d3bd[_0x2afe0b(0x2c5)][_0x2afe0b(0x3a4)](_0x4219b8[_0x2afe0b(0x2c5)]);return _0x37caff===_0x391c0e[_0x2afe0b(0x2e4)]?-_0x737661:_0x737661;}),_0x59a3be[_0x403f02(0x412)](_0x3b8f25=>({'key':_0x3b8f25[_0x403f02(0x2c5)],'value':_0x3b8f25[_0x403f02(0x1e1)],'path':_0x3b8f25[_0x403f02(0x361)],'label':_0x3b8f25[_0x403f02(0x33b)],'fieldId':_0x3b8f25[_0x403f02(0x173)],'level':_0x3b8f25[_0x403f02(0x478)],'recordIds':_0x3b8f25['recordIds'],'children':this[_0x403f02(0x311)](_0x3baa6c,_0x3b8f25[_0x403f02(0x22d)],_0xfc0a00+0x1)}));}['_title'](_0x558270,_0x25ea25,_0x387164){const _0xcdede5=_0x327967;let _0x4e21c3=_0x387164??_0x558270[_0xcdede5(0x44a)],_0x5af008=_0x25ea25['values'][_0x4e21c3];return _0x5af008==null?'':String(_0x5af008);}['_recordIds'](_0x2bfd00){const _0xeee49e=_0x327967;if(Array[_0xeee49e(0x3fb)](_0x2bfd00))return _0x2bfd00[_0xeee49e(0x412)](String);if(typeof _0x2bfd00==_0xeee49e(0x2a0)&&_0x2bfd00)return[_0x2bfd00];}[_0x327967(0x23c)](_0x16068b){const _0x4d66b8=_0x327967;return this[_0x4d66b8(0x1cc)]['get'](_0x16068b[_0x4d66b8(0x346)])[_0x4d66b8(0x1f1)](_0x16068b);}};si=X([Y(0x0,_0x1345e2(mr))],si);function ci(_0x1e9498){return _0x1e9498==null?'':String(_0x1e9498);}function li(_0x36c605){const _0x51d5c5=_0x327967;return new Map(_0x36c605[_0x51d5c5(0x412)]((_0x14dd7f,_0x12ae95)=>[_0x14dd7f[_0x51d5c5(0x345)],_0x12ae95]));}function ui(_0x36a983){const _0x2a2e9d=_0x327967;return!!(Array[_0x2a2e9d(0x3fb)](_0x36a983[_0x2a2e9d(0x1e2)])&&_0x36a983[_0x2a2e9d(0x257)]&&_0x36a983['rowId']&&_0x36a983[_0x2a2e9d(0x22a)]&&_0x36a983['colId']&&_0x36a983[_0x2a2e9d(0xdd)]);}function di(_0x2325a9){const _0x1f73c1=_0x327967;let _0x14c2e0=(_0x2325a9==null?void 0x0:_0x2325a9[_0x1f73c1(0x39c)][_0x1f73c1(0x1be)](_0x306d11=>!Ii(_0x306d11)))??[];return!_0x2325a9||!_0x14c2e0['length']?null:{'conjunction':_0x2325a9[_0x1f73c1(0x168)],'conditions':_0x14c2e0['map'](_0x5a48a4=>({'fieldId':_0x5a48a4[_0x1f73c1(0x173)],'operator':_0x5a48a4['operator'],'operand':_0x5a48a4[_0x1f73c1(0x2d4)]}))};}function fi(_0x4c96d6,_0x2d2bed){const _0x40e907=_0x327967;return _0x4c96d6[_0x40e907(0x1d7)]===_0x2d2bed[_0x40e907(0x1d7)]&&_0x4c96d6[_0x40e907(0x1e2)]===_0x2d2bed['recordOrder']&&_0x4c96d6[_0x40e907(0x305)]===_0x2d2bed[_0x40e907(0x305)]&&_0x4c96d6['fieldOrder']===_0x2d2bed[_0x40e907(0x1f8)]&&_0x4c96d6[_0x40e907(0xdd)]===_0x2d2bed['cellData']&&_0x4c96d6[_0x40e907(0x257)]===_0x2d2bed[_0x40e907(0x257)]&&_0x4c96d6[_0x40e907(0x2a7)]===_0x2d2bed[_0x40e907(0x2a7)]&&_0x4c96d6[_0x40e907(0x22a)]===_0x2d2bed[_0x40e907(0x22a)]&&_0x4c96d6[_0x40e907(0x2ba)]===_0x2d2bed['colId'];}function pi(_0x5540a9){const _0x411cb1=_0x327967;return _0x5540a9!=null&&_0x5540a9[_0x411cb1(0x1bf)]?_0x5540a9[_0x411cb1(0x412)](_0x46b4f9=>({'fieldId':_0x46b4f9['fieldId'],'direction':_0x46b4f9[_0x411cb1(0x429)]})):null;}function mi(_0x349060){const _0x59f7de=_0x327967;if(typeof _0x349060!=_0x59f7de(0x3d8)||!_0x349060)return JSON['stringify'](_0x349060)??_0x59f7de(0x367);if(Array[_0x59f7de(0x3fb)](_0x349060))return'['+_0x349060[_0x59f7de(0x412)](mi)[_0x59f7de(0x3a1)](',')+']';let _0x27fd64=_0x349060;return'{'+Object['keys'](_0x27fd64)[_0x59f7de(0x460)]()['map'](_0x50a19d=>JSON[_0x59f7de(0xf8)](_0x50a19d)+':'+mi(_0x27fd64[_0x50a19d]))[_0x59f7de(0x3a1)](',')+'}';}function hi(_0x4758e0){const _0x723c6a=_0x327967;let _0x47fcc8=Object['values'](_0x4758e0)[_0x723c6a(0x460)]((_0x3046fb,_0x45579d)=>_0x3046fb[_0x723c6a(0x44c)][_0x723c6a(0x3a4)](_0x45579d['orderKey'])),_0x23561d=[];for(let _0x2d1dcd of _0x47fcc8)_0x23561d[_0x723c6a(0x161)](_0x2d1dcd['id']);return _0x23561d;}function gi(_0x361f08){const _0x2b4565=_0x327967;return{'weekdays':Array['isArray'](_0x361f08==null?void 0x0:_0x361f08['weekdays'])&&_0x361f08['weekdays'][_0x2b4565(0x1bf)]?[...new Set(_0x361f08[_0x2b4565(0x159)][_0x2b4565(0x1be)](_0x137e4f=>Number[_0x2b4565(0xe9)](_0x137e4f)&&_0x137e4f>=0x1&&_0x137e4f<=0x7))]:[0x1,0x2,0x3,0x4,0x5],'exceptions':Array[_0x2b4565(0x3fb)](_0x361f08==null?void 0x0:_0x361f08[_0x2b4565(0x214)])?_0x361f08[_0x2b4565(0x214)]['flatMap'](_0x47c715=>!_0x47c715||!Number[_0x2b4565(0x138)](_0x47c715[_0x2b4565(0x17a)])?[]:[{'id':String(_0x47c715['id']||_0x2b4565(0xed)+_0x47c715['date']),'date':Z(Number(_0x47c715[_0x2b4565(0x17a)])),'name':String(_0x47c715[_0x2b4565(0x158)]||_0x2b4565(0x276)),'type':_0x47c715[_0x2b4565(0x346)]===_0x2b4565(0x100)?_0x2b4565(0x100):'off'}]):[]};}function _i(_0x21b38d,_0xa5327a,_0x5cffab,_0x3a5ce4){let _0x322773=xi(_0x21b38d,_0xa5327a),_0x2b76a1=Si(_0x21b38d,_0x5cffab),_0x2ed179=vi(_0x21b38d,_0x322773,_0x2b76a1,_0x3a5ce4);return{'scale':_0x21b38d,'start':_0x322773,'end':_0x2b76a1,'unitWidth':bi(_0x21b38d),'majorHeaders':yi(_0x21b38d,_0x322773,_0x2b76a1),'columns':_0x2ed179};}function vi(_0x48be1a,_0x55211b,_0x33495f,_0x2f8dca){const _0x3126b4=_0x327967;let _0x305a4e=[],_0x887f5d=_0x55211b;for(;_0x887f5d<_0x33495f;){let _0x2c0669=_0x48be1a===_0x3126b4(0x324)?ji(_0x887f5d,0x7):_0x48be1a===_0x3126b4(0x102)?Mi(_0x887f5d,0x1):ji(_0x887f5d,0x1);_0x305a4e['push']({'id':_0x48be1a+'-'+_0x887f5d,'label':Ci(_0x48be1a,_0x887f5d,_0x2c0669),'majorLabel':wi(_0x48be1a,_0x887f5d),'start':_0x887f5d,'end':_0x2c0669,'nonWorking':Ei(_0x887f5d,_0x2c0669,_0x2f8dca)}),_0x887f5d=_0x2c0669;}return _0x305a4e;}function yi(_0x150f22,_0xaa5e04,_0x439f12){const _0x3dbfc0=_0x327967;let _0xbbee4f=[],_0x52110b=_0x150f22==='year'?Ai(_0xaa5e04):ki(_0xaa5e04);for(;_0x52110b<_0x439f12;){let _0xa4169d=_0x150f22===_0x3dbfc0(0x102)?Ni(_0x52110b,0x1):Mi(_0x52110b,0x1);_0xbbee4f['push']({'id':_0x3dbfc0(0x1a7)+_0x52110b,'label':_0x150f22===_0x3dbfc0(0x102)?String(new Date(_0x52110b)[_0x3dbfc0(0x45d)]()):Pi(_0x52110b),'start':_0x52110b,'end':_0xa4169d}),_0x52110b=_0xa4169d;}return _0xbbee4f;}function bi(_0x172989){const _0x213b2c=_0x327967;switch(_0x172989){case _0x213b2c(0x39a):return 0xac;case _0x213b2c(0x324):return 0xac;case _0x213b2c(0x102):return 0x88;default:return 0x56;}}function xi(_0xca94f0,_0x5e42cc){return _0xca94f0==='year'?Ai(_0x5e42cc):_0xca94f0==='quarter'?Oi(_0x5e42cc):Z(_0x5e42cc);}function Si(_0x401b21,_0x5628f0){const _0x20ecf7=_0x327967;return _0x401b21===_0x20ecf7(0x102)?Ni(Ai(_0x5628f0),0x1):_0x401b21==='quarter'?ji(Oi(_0x5628f0),0x7):ji(Z(_0x5628f0),0x1);}function Ci(_0x3d0dff,_0x515f18,_0x6c3e39){const _0x4ccf75=_0x327967;let _0xff34b2=new Date(_0x515f18);return _0x3d0dff===_0x4ccf75(0x324)?_0xff34b2[_0x4ccf75(0x279)]()+'-'+new Date(_0x6c3e39-oi)[_0x4ccf75(0x279)]():_0x3d0dff===_0x4ccf75(0x102)?_0xff34b2[_0x4ccf75(0x369)](_0x4ccf75(0x29d),{'month':_0x4ccf75(0x20e),'timeZone':_0x4ccf75(0x3be)}):String(_0xff34b2['getUTCDate']());}function wi(_0x168948,_0x54a466){const _0x35a977=_0x327967;return _0x168948===_0x35a977(0x102)?String(new Date(_0x54a466)[_0x35a977(0x45d)]()):Pi(_0x54a466);}function Ti(_0x1805c1,_0x1aec59,_0x155137){let _0x74e5aa=gi(_0x155137),_0x590640=0x0;for(let _0x405a90=Z(_0x1805c1);_0x405a90<=Z(_0x1aec59);_0x405a90=ji(_0x405a90,0x1))Di(_0x405a90,_0x74e5aa)||_0x590640++;return _0x590640;}function Ei(_0x34aac9,_0x2ec525,_0x107253){if(!_0x107253)return!0x1;let _0x14dd67=gi(_0x107253);for(let _0x1e13b6=Z(_0x34aac9);_0x1e13b6<_0x2ec525;_0x1e13b6=ji(_0x1e13b6,0x1))if(!Di(_0x1e13b6,_0x14dd67))return!0x1;return!0x0;}function Di(_0x10ef4b,_0x272b4d){const _0x2597bc=_0x327967;let _0x377d57=Z(_0x10ef4b),_0x10e2bb=_0x272b4d[_0x2597bc(0x214)]['find'](_0x30b8d1=>Z(_0x30b8d1[_0x2597bc(0x17a)])===_0x377d57);if(_0x10e2bb)return _0x10e2bb[_0x2597bc(0x346)]===_0x2597bc(0x2f8);let _0x249be3=new Date(_0x377d57)[_0x2597bc(0x1ce)](),_0x12410=_0x249be3===0x0?0x7:_0x249be3;return!_0x272b4d[_0x2597bc(0x159)][_0x2597bc(0x45c)](_0x12410);}function Z(_0x3a9820){const _0x1152e7=_0x327967;let _0x4f823c=new Date(_0x3a9820);return Date[_0x1152e7(0x3be)](_0x4f823c['getUTCFullYear'](),_0x4f823c[_0x1152e7(0x4a6)](),_0x4f823c[_0x1152e7(0x279)]());}function Oi(_0x576e37){let _0x21b1d1=Z(_0x576e37),_0x32b78c=new Date(_0x21b1d1)['getUTCDay']();return ji(_0x21b1d1,-(_0x32b78c===0x0?0x6:_0x32b78c-0x1));}function ki(_0x1f2dae){const _0x21cb3d=_0x327967;let _0x14c406=new Date(_0x1f2dae);return Date[_0x21cb3d(0x3be)](_0x14c406[_0x21cb3d(0x45d)](),_0x14c406[_0x21cb3d(0x4a6)](),0x1);}function Ai(_0x238f15){const _0x1febec=_0x327967;let _0x25bfe8=new Date(_0x238f15);return Date[_0x1febec(0x3be)](_0x25bfe8[_0x1febec(0x45d)](),0x0,0x1);}function ji(_0x4d5bc3,_0x5a03a9){return _0x4d5bc3+_0x5a03a9*oi;}function Mi(_0x4f4a43,_0x39c257){const _0x2e8ae6=_0x327967;let _0x1650a8=new Date(_0x4f4a43);return Date[_0x2e8ae6(0x3be)](_0x1650a8[_0x2e8ae6(0x45d)](),_0x1650a8['getUTCMonth']()+_0x39c257,0x1);}function Ni(_0xe90477,_0x25ae7d){const _0x56911b=_0x327967;let _0x1c9951=new Date(_0xe90477);return Date['UTC'](_0x1c9951[_0x56911b(0x45d)]()+_0x25ae7d,0x0,0x1);}function Pi(_0xf81423){const _0x2ced52=_0x327967;let _0x5afe3c=new Date(_0xf81423);return _0x5afe3c[_0x2ced52(0x369)]('en-US',{'month':_0x2ced52(0x20e),'timeZone':'UTC'})+'\x20'+_0x5afe3c[_0x2ced52(0x45d)]();}function Fi(_0x590af4,_0x4290fb){const _0x4c4cf3=_0x327967;if(_0x590af4==null&&_0x4290fb==null)return 0x0;if(_0x590af4==null)return-0x1;if(_0x4290fb==null)return 0x1;if(typeof _0x590af4=='boolean'||typeof _0x4290fb==_0x4c4cf3(0x224))return Number(_0x590af4===!0x0)-Number(_0x4290fb===!0x0);let _0x20bed0=Number(_0x590af4),_0x40d5cd=Number(_0x4290fb),_0x5f292c=Number[_0x4c4cf3(0x138)](_0x20bed0),_0x4c36c7=Number['isFinite'](_0x40d5cd);return _0x5f292c&&_0x4c36c7?_0x20bed0-_0x40d5cd:_0x5f292c?0x1:_0x4c36c7?-0x1:String(_0x590af4)[_0x4c4cf3(0x3a4)](String(_0x4290fb));}function Ii(_0x4f3f1c){const _0x35d1dc=_0x327967;if(_0x4f3f1c['operator']!=='is'&&_0x4f3f1c[_0x35d1dc(0xfb)]!=='isNot')return!0x1;let _0x2c9587=_0x4f3f1c[_0x35d1dc(0x2d4)];return _0x2c9587==null?!0x0:typeof _0x2c9587==_0x35d1dc(0x2a0)?_0x2c9587[_0x35d1dc(0x140)]()==='':Array[_0x35d1dc(0x3fb)](_0x2c9587)?_0x2c9587[_0x35d1dc(0x1bf)]===0x0:!0x1;}function Li(_0x1f2395,_0x1f2dfb){const _0x140629=_0x327967;var _0x5dc942;let _0x5474df=Array['isArray']((_0x5dc942=_0x1f2395[_0x140629(0x174)])==null?void 0x0:_0x5dc942[_0x140629(0x495)])?_0x1f2395[_0x140629(0x174)][_0x140629(0x495)]:[];for(let _0x466752 of _0x5474df){if(_0x466752==null)continue;if(typeof _0x466752==_0x140629(0x2a0)){if(_0x466752===_0x1f2dfb)return{'id':_0x466752,'name':_0x466752};continue;}let _0x3d0e3e=_0x466752,_0x37d564=String(_0x3d0e3e['id']??_0x3d0e3e[_0x140629(0x158)]??''),_0x20189e=String(_0x3d0e3e['name']??_0x3d0e3e['id']??_0x37d564);if(_0x37d564===_0x1f2dfb||_0x20189e===_0x1f2dfb)return{'id':_0x37d564,'name':_0x20189e,'color':_0x3d0e3e[_0x140629(0x233)]==null?void 0x0:String(_0x3d0e3e[_0x140629(0x233)])};}return null;}let Ri=function(_0x28320a){const _0x49330f=_0x327967;return _0x28320a[_0x49330f(0x185)]=_0x49330f(0x1e3),_0x28320a[_0x49330f(0x49b)]=_0x49330f(0x1f0),_0x28320a;}({});const Q={'id':_0x327967(0x444),'type':_0x281ad9[_0x327967(0x48e)],'handler'(_0x2e3029,_0x1ea6ca){const _0x502e6b=_0x327967;let {unitId:_0x834ba1,op:_0x271469}=_0x1ea6ca,_0x8c6820=_0x2e3029[_0x502e6b(0x318)](_0x3a38b9)[_0x502e6b(0x1d4)](_0x834ba1,_0x49a6be[_0x502e6b(0xf9)]);if(!_0x8c6820)return!0x1;let _0x8d2413=_0x8c6820[_0x502e6b(0x32b)](),_0x362826=new z(),_0x4814cd=_0x362826[_0x502e6b(0x19d)](_0x271469),_0x4445a6=_0x362826[_0x502e6b(0x240)](_0x8d2413,_0x271469);return _0x8c6820[_0x502e6b(0x22b)](_0x4445a6),zi(_0x4445a6,_0x4814cd,_0x2e3029[_0x502e6b(0x318)](ii)),!0x0;}};function zi(_0x58dadf,_0x457071,_0x27f939){const _0x44cca9=_0x327967;let _0x47a0b6=new Set(),_0x233c6e=new Set(),_0x423e56=new Set();for(let _0x1f065a of _0x457071){if(_0x1f065a[_0x44cca9(0x3bf)]===_0x44cca9(0x333)&&_0x1f065a[_0x44cca9(0x19a)]&&_0x1f065a[_0x44cca9(0x2d0)]){let _0x13e4a1=_0x1f065a['tableId']+'\x00'+_0x1f065a[_0x44cca9(0x2d0)];_0x423e56[_0x44cca9(0x103)](_0x13e4a1)||(_0x423e56[_0x44cca9(0x12e)](_0x13e4a1),_0x27f939[_0x44cca9(0x203)](_0x1f065a[_0x44cca9(0x19a)],_0x1f065a[_0x44cca9(0x2d0)]));continue;}if(_0x1f065a[_0x44cca9(0x3bf)]==='field'&&_0x1f065a[_0x44cca9(0x19a)]&&_0x1f065a['fieldId']){let _0x6e0100=_0x1f065a[_0x44cca9(0x19a)]+'\x00'+_0x1f065a['fieldId'];_0x233c6e[_0x44cca9(0x103)](_0x6e0100)||(_0x233c6e['add'](_0x6e0100),_0x27f939['invalidateByField'](_0x1f065a[_0x44cca9(0x19a)],_0x1f065a[_0x44cca9(0x173)]));continue;}if(_0x1f065a[_0x44cca9(0x3bf)]!==_0x44cca9(0x228)){_0x27f939[_0x44cca9(0x1b8)]();return;}let _0x31683c=Bi(_0x58dadf,_0x1f065a);if(!_0x31683c){_0x27f939[_0x44cca9(0x1b8)]();return;}let _0x4d3d0b=_0x31683c['tableId']+'\x00'+_0x31683c[_0x44cca9(0x345)]+'\x00'+_0x31683c['fieldId'];_0x47a0b6['has'](_0x4d3d0b)||(_0x47a0b6['add'](_0x4d3d0b),_0x27f939[_0x44cca9(0x3b0)](_0x31683c['tableId'],_0x31683c[_0x44cca9(0x345)],_0x31683c[_0x44cca9(0x173)]));}}function Bi(_0x3e1c2a,_0x35cda0){const _0x3e8f68=_0x327967;var _0x2727f3,_0x21189b;if(!_0x35cda0[_0x3e8f68(0x19a)])return null;if(_0x35cda0['recordId']&&_0x35cda0[_0x3e8f68(0x173)])return{'tableId':_0x35cda0['tableId'],'recordId':_0x35cda0[_0x3e8f68(0x345)],'fieldId':_0x35cda0[_0x3e8f68(0x173)]};if(_0x35cda0[_0x3e8f68(0x124)]==null||_0x35cda0[_0x3e8f68(0x115)]==null)return null;let _0x58e525=_0x3e1c2a[_0x3e8f68(0x486)][_0x35cda0['tableId']],_0x2b592c=_0x58e525==null||(_0x2727f3=_0x58e525[_0x3e8f68(0x2a7)])==null?void 0x0:_0x2727f3[_0x35cda0[_0x3e8f68(0x124)]],_0xb8e05b=_0x58e525==null||(_0x21189b=_0x58e525[_0x3e8f68(0x2ba)])==null?void 0x0:_0x21189b[_0x35cda0['column']];return!_0x2b592c||!_0xb8e05b?null:{'tableId':_0x35cda0[_0x3e8f68(0x19a)],'recordId':_0x2b592c,'fieldId':_0xb8e05b};}const Vi=_0x23a4c4[_0x327967(0x17f)](String[_0x327967(0x1c8)]`(?:^|\W)\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?(?:$|\W)`),Hi=_0x23a4c4['createRegExpFromSafeFragment'](String[_0x327967(0x1c8)]`(?:'\[[^\]]+\](?:[^']|'')+'|\[[^\]]+\][^\s'!]+)!\$?[A-Z]{1,3}\$?\d+(?::\$?[A-Z]{1,3}\$?\d+)?`,'gi'),Ui=/\{([^}]+)\}/g,Wi=_0x23a4c4[_0x327967(0x17f)](String[_0x327967(0x1c8)]`\b([A-Z_][\w.]*)\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Gi=_0x23a4c4[_0x327967(0x17f)](String['raw']`\b([A-Z_][\w.]*)\[@\[([^\]]+)\]\]`,'gi'),Ki=_0x23a4c4[_0x327967(0x17f)](String[_0x327967(0x1c8)]`\b([A-Z_][\w.]*)\[([^\[\]#]+)\]`,'gi'),qi=_0x23a4c4[_0x327967(0x17f)](String[_0x327967(0x1c8)]`(^|[^\w\[])\[\[\s*#(This Row|Data)\s*\],\s*\[([^\]]+)\]\]`,'gi'),Ji=_0x23a4c4['createRegExpFromSafeFragment'](String['raw']`(^|[^\w\[])\[@\[([^\]]+)\]\](?!\])`,'g'),Yi=_0x23a4c4['createRegExpFromSafeFragment'](String[_0x327967(0x1c8)]`(^|[^\w\[])\[@?([^\[\]#]+)\](?!\])`,'g');var Xi=class{[_0x327967(0x3c8)](_0x19d377,_0x3004d7=_0x19d377['id']){const _0x46c878=_0x327967;var _0xf477cf;let _0x14bdb1=((_0xf477cf=_0x19d377[_0x46c878(0x1e2)])==null?void 0x0:_0xf477cf['length'])??Object[_0x46c878(0x259)](_0x19d377[_0x46c878(0x1d7)])[_0x46c878(0x1bf)];return{'sheetId':_0x3004d7,'titleMap':new Map(_0x19d377[_0x46c878(0x1f8)]['map']((_0x31e81d,_0x3c3fdc)=>{const _0x204d1e=_0x46c878;var _0x14a0ac;return[((_0x14a0ac=_0x19d377['fields'][_0x31e81d])==null?void 0x0:_0x14a0ac[_0x204d1e(0x158)])??_0x31e81d,_0x3c3fdc];})),'range':{'startRow':0x0,'endRow':Math[_0x46c878(0x31a)](0x0,_0x14bdb1-0x1),'startColumn':0x0,'endColumn':Math[_0x46c878(0x31a)](0x0,_0x19d377['fieldOrder'][_0x46c878(0x1bf)]-0x1)},'showHeader':!0x1};}[_0x327967(0x2f6)](_0x1ef916,_0x436091){const _0x575823=_0x327967;let _0x5395a4=[],_0x4b431e=_0x436091?new Set(_0x436091):null,_0xd863e9=_0xbad9f1(_0x1ef916);return Object[_0x575823(0x259)](_0x1ef916[_0x575823(0x486)])['filter'](_0x1523fe=>!_0x4b431e||_0x4b431e[_0x575823(0x103)](_0x1523fe['id']))[_0x575823(0x29b)](_0x1cbb7c=>{const _0x576111=_0x575823;let _0x3f1bd3=this['createSuperTableReference'](_0x1cbb7c,_0x1cbb7c['id']);_0x5395a4[_0x576111(0x161)]({'tableId':_0x1cbb7c['id'],'tableName':_0xd863e9[_0x576111(0x318)](_0x1cbb7c['id']),'reference':_0x3f1bd3});}),_0x5395a4;}['validateFormula'](_0x57c841,_0x34d39a,_0x48d4f3={}){const _0x1e8c32=_0x327967;let _0x3614cf=_0x57c841[_0x1e8c32(0x140)]();if(!_0x3614cf)return{'valid':!0x0};if(na(_0x3614cf))return{'valid':!0x1,'reason':_0x1e8c32(0x443)};let _0x1a6002=_0x48d4f3[_0x1e8c32(0x484)]?_0xbad9f1(_0x48d4f3[_0x1e8c32(0x484)]):void 0x0;for(let _0xc1527b of ta(_0x3614cf)){let _0x556142=ua(_0xc1527b,_0x34d39a,_0x48d4f3[_0x1e8c32(0x484)],_0x1a6002);if(!_0x556142[_0x1e8c32(0x496)])return{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20\x22'+_0xc1527b[_0x1e8c32(0x2a9)]+_0x1e8c32(0x45f)};if(!_0x556142[_0x1e8c32(0x1fe)])return{'valid':!0x1,'reason':_0x1e8c32(0xf0)+_0xc1527b[_0x1e8c32(0x489)]+'\x22\x20does\x20not\x20exist.'};}return{'valid':!0x0};}[_0x327967(0x236)](_0x1de3ae,_0xc5405b,_0x4b8d99={}){const _0x5084c2=_0x327967;let _0x4ea440=new Set();for(let _0xf10feb of this[_0x5084c2(0x2dd)](_0x1de3ae,_0xc5405b,_0x4b8d99))_0xf10feb['tableId']===_0xc5405b['id']&&_0x4ea440[_0x5084c2(0x12e)](_0xf10feb['fieldId']);return Array[_0x5084c2(0x1d1)](_0x4ea440);}['getStructuredDependencies'](_0x2b9dec,_0x2b9bdc,_0x40ca2f={}){const _0x2840e1=_0x327967;let _0x15e538=new Map(),_0x35a0c3=_0x40ca2f['snapshot']?_0xbad9f1(_0x40ca2f[_0x2840e1(0x484)]):void 0x0;for(let _0x4abadc of ta(_0x2b9dec)){let _0x31bf5a=ua(_0x4abadc,_0x2b9bdc,_0x40ca2f[_0x2840e1(0x484)],_0x35a0c3);if(!_0x31bf5a[_0x2840e1(0x496)]||!_0x31bf5a[_0x2840e1(0x1fe)])continue;let _0x512ea7=_0x31bf5a['table']['id']+'\x1f'+_0x31bf5a[_0x2840e1(0x1fe)]['id'];_0x15e538[_0x2840e1(0x3fe)](_0x512ea7,{'tableId':_0x31bf5a['table']['id'],'fieldId':_0x31bf5a[_0x2840e1(0x1fe)]['id']});}return Array[_0x2840e1(0x1d1)](_0x15e538[_0x2840e1(0x259)]());}};function Zi(_0x7df6c1,_0x39b2ba){const _0xf4b64a=_0x327967;var _0x13170a;let _0x3c54f4=[],_0x5283f5=(_0x13170a=_0x39b2ba[_0xf4b64a(0xf5)])==null?void 0x0:_0x13170a[_0x7df6c1['id']];return _0x5283f5&&Object['entries'](_0x5283f5)[_0xf4b64a(0x29b)](([_0x4821cc,_0x6141ec])=>{const _0x5af7ad=_0xf4b64a;let _0x5a51f9=_0x7df6c1[_0x5af7ad(0x486)][_0x4821cc];if(!_0x5a51f9||!_0x6141ec)return;let _0xe7318e=L(_0x5a51f9),_0x96d914=[];new _0x53a4cf(_0x6141ec)[_0x5af7ad(0x34a)]((_0x2e3c73,_0x17698a,_0x52a7bb)=>{const _0x5053e2=_0x5af7ad;let _0x2df88b=Qi(_0xe7318e,_0x2e3c73,_0x17698a,_0x52a7bb);_0x2df88b&&_0x96d914[_0x5053e2(0x161)](_0x2df88b);}),_0x96d914[_0x5af7ad(0x1bf)]&&_0x3c54f4['push']({'unitId':_0x7df6c1['id'],'tableId':_0x4821cc,'patches':_0x96d914});}),_0x3c54f4;}function Qi(_0x427eb6,_0x2b46c6,_0x4a5a9f,_0x2dedd2){const _0x3772fc=_0x327967;var _0xe98c0,_0x532d52,_0x540fcc;let _0x24682a=(_0xe98c0=_0x427eb6['rowId'])==null?void 0x0:_0xe98c0[_0x2b46c6],_0x4d99eb=(_0x532d52=_0x427eb6[_0x3772fc(0x2ba)])==null?void 0x0:_0x532d52[_0x4a5a9f];if(!_0x24682a||!_0x427eb6[_0x3772fc(0x1d7)][_0x24682a]||!_0x4d99eb)return null;let _0x8a0943=_0x427eb6[_0x3772fc(0x305)][_0x4d99eb];if(!_0x8a0943||_0x8a0943[_0x3772fc(0x346)]!==_0x3772fc(0x377))return null;let _0x465ec1=String(((_0x540fcc=_0x8a0943[_0x3772fc(0x174)])==null?void 0x0:_0x540fcc[_0x3772fc(0x377)])??'')[_0x3772fc(0x140)](),_0x40d288=(_0x2dedd2==null?void 0x0:_0x2dedd2['v'])??null,_0x3c7dcc={'v':_0x40d288,'t':ea(_0x40d288),..._0x2b46c6===0x0&&_0x465ec1?{'f':_0x465ec1}:{},'si':_0x8a0943['id']};return $i(vt(_0x427eb6,_0x24682a,_0x4d99eb),_0x3c7dcc)?null:{'row':_0x2b46c6,'col':_0x4a5a9f,'value':_0x3c7dcc};}function $i(_0x1d1863,_0x3f0426){return _0x1d1863!=null&&Object['is'](_0x1d1863['v']??null,_0x3f0426['v']??null)&&_0x1d1863['t']===_0x3f0426['t']&&_0x1d1863['f']===_0x3f0426['f']&&_0x1d1863['si']===_0x3f0426['si'];}function ea(_0x18f631){const _0xbab220=_0x327967;return typeof _0x18f631==_0xbab220(0x218)?_0x556bff[_0xbab220(0x39f)]:typeof _0x18f631==_0xbab220(0x224)?_0x556bff[_0xbab220(0x125)]:typeof _0x18f631=='string'?_0x556bff['STRING']:null;}function ta(_0x29166c){const _0xbae715=_0x327967;let _0x35ec2a=ia(_0x29166c,()=>''),_0x33c561=new Map(),_0x2aee04=_0x3d2c71=>{const _0x548d73=_0x11ae;_0x33c561[_0x548d73(0x3fe)]((_0x3d2c71[_0x548d73(0x2a9)]??'')+'\x1f'+_0x3d2c71[_0x548d73(0x489)],_0x3d2c71);};for(let _0x1e2278 of _0x35ec2a[_0xbae715(0x28d)](Ui))_0x2aee04({'fieldName':_0x1e2278[0x1],'scope':_0xbae715(0x38a)});_0x35ec2a=_0x35ec2a[_0xbae715(0x42d)](Wi,(_0x41657c,_0x1d5b51,_0x18ed51,_0x193964)=>(_0x2aee04({'tableName':_0x1d5b51,'fieldName':_0x193964,'scope':_0x18ed51['toLowerCase']()===_0xbae715(0x35f)?_0xbae715(0x35f):_0xbae715(0x38a)}),'\x20')),_0x35ec2a=_0x35ec2a[_0xbae715(0x42d)](Gi,(_0x21e1cb,_0x5f4995,_0x1a2288)=>(_0x2aee04({'tableName':_0x5f4995,'fieldName':_0x1a2288,'scope':_0xbae715(0x38a)}),'\x20')),_0x35ec2a=_0x35ec2a[_0xbae715(0x42d)](qi,(_0x4fd06d,_0x525fd4,_0x2d6aa4,_0x6949da)=>(_0x2aee04({'fieldName':_0x6949da,'scope':_0x2d6aa4[_0xbae715(0x3af)]()===_0xbae715(0x35f)?'data':_0xbae715(0x38a)}),_0x525fd4+'\x20')),_0x35ec2a=_0x35ec2a[_0xbae715(0x42d)](Ji,(_0x123b3b,_0xc7d889,_0x133283)=>(_0x2aee04({'fieldName':_0x133283,'scope':_0xbae715(0x38a)}),_0xc7d889+'\x20'));for(let _0x4f69a7 of _0x35ec2a[_0xbae715(0x28d)](Ki))_0x2aee04({'tableName':_0x4f69a7[0x1],'fieldName':_0x4f69a7[0x2]});for(let _0x285289 of _0x35ec2a[_0xbae715(0x28d)](Yi))_0x2aee04({'fieldName':_0x285289[0x2],'scope':'this-row'});return Array[_0xbae715(0x1d1)](_0x33c561['values']());}function na(_0x8da672){const _0x5b7908=_0x327967;let _0x45d44b=ia(_0x8da672,()=>'\x20')[_0x5b7908(0x42d)](Ui,'\x20')[_0x5b7908(0x42d)](Wi,'\x20')[_0x5b7908(0x42d)](Gi,'\x20')[_0x5b7908(0x42d)](qi,'$1\x20')['replace'](Ji,_0x5b7908(0x33d))[_0x5b7908(0x42d)](Ki,'\x20')['replace'](Yi,_0x5b7908(0x33d));return Vi[_0x5b7908(0x3e2)](_0x45d44b);}function ra(_0x3be881,_0x4b7225){return ca(oa(_0x3be881,_0x4b7225),_0x4b7225);}function ia(_0x5bfbe3,_0x4bcfc8){return aa(ra(_0x5bfbe3,_0x4bcfc8),_0x4bcfc8);}function aa(_0x324d35,_0x1931e6){const _0x4f7966=_0x327967;return _0x324d35[_0x4f7966(0x42d)](/"(?:""|[^"])*"/g,_0x1931e6);}function oa(_0x5d75fe,_0x30f796){const _0x385c7e=_0x327967;return Hi[_0x385c7e(0x167)]=0x0,_0x5d75fe['replace'](Hi,(_0x17b19f,_0x481c6e)=>la(_0x5d75fe,_0x481c6e)?_0x17b19f:_0x30f796(_0x17b19f));}const sa=/(?:'((?:[^']|'')+)'|\[[^\]]+\]|[A-Za-z0-9_.-]+)![^\s!\[\]]+\[/g;function ca(_0x3a8851,_0x3bce90){const _0xe07bac=_0x327967;let _0x3fa2e4=[];for(sa['lastIndex']=0x0;;){let _0x5dc34c=sa[_0xe07bac(0x1ab)](_0x3a8851);if(_0x5dc34c==null)break;if(la(_0x3a8851,_0x5dc34c[_0xe07bac(0x1b6)]))continue;let _0x5b43a5=sa[_0xe07bac(0x167)]-0x1,_0x3c2cfa=0x0;for(let _0x4daefb=_0x5b43a5;_0x4daefb<_0x3a8851['length'];_0x4daefb++)if(_0x3a8851[_0x4daefb]==='['&&_0x3c2cfa++,_0x3a8851[_0x4daefb]===']'&&(_0x3c2cfa--,_0x3c2cfa===0x0)){_0x3fa2e4[_0xe07bac(0x161)]({'start':_0x5dc34c['index'],'end':_0x4daefb+0x1}),sa[_0xe07bac(0x167)]=_0x4daefb+0x1;break;}}if(_0x3fa2e4[_0xe07bac(0x1bf)]===0x0)return _0x3a8851;let _0x4c5780='',_0x546588=0x0;for(let _0x39520a of _0x3fa2e4)_0x4c5780+=_0x3a8851[_0xe07bac(0x348)](_0x546588,_0x39520a[_0xe07bac(0x47f)]),_0x4c5780+=_0x3bce90(_0x3a8851[_0xe07bac(0x348)](_0x39520a['start'],_0x39520a[_0xe07bac(0x3c3)])),_0x546588=_0x39520a['end'];return _0x4c5780+_0x3a8851[_0xe07bac(0x348)](_0x546588);}function la(_0x32bc26,_0x489e9a){let _0x490b9c=!0x1;for(let _0x31293d=0x0;_0x31293d<_0x489e9a;_0x31293d++)if(_0x32bc26[_0x31293d]==='\x22'){if(_0x490b9c&&_0x32bc26[_0x31293d+0x1]==='\x22'){_0x31293d++;continue;}_0x490b9c=!_0x490b9c;}return _0x490b9c;}function ua(_0x458ea8,_0x524243,_0x1980e6,_0x5c7033){const _0x523eab=_0x327967;let _0x2cca82=da(_0x458ea8[_0x523eab(0x2a9)],_0x524243,_0x1980e6,_0x5c7033);return{'table':_0x2cca82,'field':_0x2cca82?Object[_0x523eab(0x259)](_0x2cca82[_0x523eab(0x305)])['find'](_0x45e5d5=>_0x45e5d5['name']===_0x458ea8[_0x523eab(0x489)]):void 0x0};}function da(_0x186bf3,_0x107265,_0x59a540,_0x1fd4e1){const _0x49a255=_0x327967;if(!_0x186bf3)return _0x107265;if(!_0x59a540){var _0x46bd17;let _0x462914=_0x186bf3[_0x49a255(0x3af)]();return _0x462914===_0x107265['id'][_0x49a255(0x3af)]()||_0x462914===_0x107265[_0x49a255(0x158)]['toLowerCase']()||_0x462914===((_0x46bd17=_0x107265[_0x49a255(0x3a8)])==null?void 0x0:_0x46bd17['toLowerCase']())?_0x107265:void 0x0;}let _0x507dfc=_0x186bf3[_0x49a255(0x3af)](),_0x1e129e=_0x1fd4e1??_0xbad9f1(_0x59a540),_0x258f00=Object[_0x49a255(0x259)](_0x59a540[_0x49a255(0x486)])[_0x49a255(0x1be)](_0x5326a7=>{const _0xa4bbc1=_0x49a255;var _0x1704b8;return _0x5326a7['id'][_0xa4bbc1(0x3af)]()===_0x507dfc||_0x5326a7['name'][_0xa4bbc1(0x3af)]()===_0x507dfc||((_0x1704b8=_0x1e129e[_0xa4bbc1(0x318)](_0x5326a7['id']))==null?void 0x0:_0x1704b8[_0xa4bbc1(0x3af)]())===_0x507dfc||fa(_0x5326a7['id'])[_0xa4bbc1(0x3af)]()===_0x507dfc;});return _0x258f00[_0x49a255(0x1bf)]===0x1?_0x258f00[0x0]:void 0x0;}function fa(_0x158831){const _0x4a307d=_0x327967;return'_T_'+Array[_0x4a307d(0x1d1)](_0x158831,_0x29e4b3=>{const _0x487def=_0x4a307d;var _0x1fca56;return/[A-Za-z0-9]/[_0x487def(0x3e2)](_0x29e4b3)?_0x29e4b3:'_x'+(((_0x1fca56=_0x29e4b3[_0x487def(0x23f)](0x0))==null?void 0x0:_0x1fca56[_0x487def(0x360)](0x10))??'0')+'_';})[_0x4a307d(0x3a1)]('');}const pa=new Xi();function ma(_0x5bcb26,_0x306484,_0x19314c){const _0x284e57=_0x327967;var _0x32a49b;if(_0x19314c[_0x284e57(0x346)]!==_0x1013ad[_0x284e57(0x3d9)])return!0x0;let _0xa14f8=String(((_0x32a49b=_0x19314c['config'])==null?void 0x0:_0x32a49b[_0x284e57(0x377)])??''),_0x119cc3=_0x5bcb26['getSnapshot']();return pa[_0x284e57(0x1ec)](_0xa14f8,_0x119cc3['tables'][_0x306484],{'snapshot':_0x119cc3})[_0x284e57(0x48b)];}function $(_0x2bba53,_0x259d6d,_0x45e196){const _0x4222c1=_0x327967;let _0x3cde8a=_0x2bba53[_0x4222c1(0x32b)]()['tables'][_0x259d6d];if(!_0x3cde8a)return!0x1;let {viewIds:_0x1808b1,fieldIds:_0x27ee62,recordIds:_0x2d1d10}=_0x45e196||{};if(_0x1808b1){for(let _0x23fdc4 of _0x1808b1)if(!_0x3cde8a[_0x4222c1(0x1eb)][_0x23fdc4])return!0x1;}if(_0x27ee62){for(let _0x3d23cf of _0x27ee62)if(!_0x3cde8a[_0x4222c1(0x305)][_0x3d23cf])return!0x1;}if(_0x2d1d10){for(let _0x10b254 of _0x2d1d10)if(!_0x3cde8a[_0x4222c1(0x1d7)][_0x10b254])return!0x1;}return!0x0;}function ha(_0x7d40aa,_0x45ee44,_0x368601){const _0x29eccd=_0x327967;if(_0x368601['id']===_0x40fc9d||_0x368601['type']===_0x1013ad['RecordId']||_0x4fd5e0(_0x368601[_0x29eccd(0x158)])||!ma(_0x7d40aa,_0x45ee44,_0x368601))return!0x1;let _0x164fc8=_0x7d40aa[_0x29eccd(0x32b)]();if(!Be(_0x164fc8,_0x368601)[_0x29eccd(0x48b)])return!0x1;if(_0x368601[_0x29eccd(0x346)]!==_0x1013ad[_0x29eccd(0x12f)])return!0x0;let _0x3ad3da=N(_0x368601);if(!_0x3ad3da)return!0x1;if(_0x3ad3da[_0x29eccd(0x382)]===void 0x0)return!0x0;if(_0x3ad3da[_0x29eccd(0x382)]!==_0x3e0df7[_0x29eccd(0x4a4)]||_0x3ad3da[_0x29eccd(0x16b)]!==_0x45ee44||_0x3ad3da[_0x29eccd(0x3eb)]!==!0x1)return!0x1;let _0x45a205=_0x164fc8[_0x29eccd(0x486)][_0x45ee44];return!Object['values'](_0x45a205['fields'])[_0x29eccd(0x35d)](_0x1e02cb=>{const _0x909003=_0x29eccd;var _0x4d93ac;return _0x1e02cb['id']!==_0x368601['id']&&_0x1e02cb[_0x909003(0x346)]===_0x1013ad[_0x909003(0x12f)]&&((_0x4d93ac=N(_0x1e02cb))==null?void 0x0:_0x4d93ac[_0x909003(0x382)])===_0x3e0df7['Parent'];});}function ga(_0x49bb7e,_0x5ca57a,_0x43433b,_0x18b87c){const _0x48174e=_0x327967;var _0x3c3834;let _0x211241=_0x49bb7e[_0x48174e(0x32b)](),_0xe2ad31=(_0x3c3834=_0x211241[_0x48174e(0x486)][_0x5ca57a])==null?void 0x0:_0x3c3834[_0x48174e(0x305)][_0x43433b];return!_0xe2ad31||_0xe2ad31['id']===_0x40fc9d||_0xe2ad31[_0x48174e(0x346)]===_0x1013ad[_0x48174e(0x212)]?!0x1:_0xe2ad31[_0x48174e(0x346)]!==_0x1013ad['RecordLink']||Ve(_0x211241,_0xe2ad31,ya(_0x18b87c))[_0x48174e(0x48b)];}function _a(_0x10d8af,_0x525ca0,_0x329ffd){const _0x52c015=_0x327967;let _0x25607d=_0x10d8af[_0x52c015(0x32b)]()[_0x52c015(0x486)][_0x525ca0];return!_0x25607d||!_0x522a38(_0x329ffd['id'])||_0x25607d[_0x52c015(0x1d7)][_0x329ffd['id']]||Object[_0x52c015(0x331)][_0x52c015(0x150)][_0x52c015(0x171)](_0x329ffd[_0x52c015(0x259)],_0x40fc9d)&&_0x329ffd[_0x52c015(0x259)][_0x40fc9d]!==_0x329ffd['id']?!0x1:Object[_0x52c015(0x209)](_0x329ffd[_0x52c015(0x259)])[_0x52c015(0x44b)](([_0x209d64,_0x29fb96])=>_0x209d64===_0x40fc9d||ga(_0x10d8af,_0x525ca0,_0x209d64,_0x29fb96));}function va(_0x32f51f){return{..._0x32f51f,'values':{..._0x32f51f['values'],[_0x40fc9d]:_0x32f51f['id']}};}function ya(_0x5eae0b){if(_0x5eae0b&&typeof _0x5eae0b=='object'&&!Array['isArray'](_0x5eae0b)&&'v'in _0x5eae0b){let _0x3983f8=_0x5eae0b['v'];return _0x3983f8===void 0x0?null:_0x3983f8;}return _0x5eae0b;}function ba(_0x496313,_0x476202,_0x519f4c,_0x208fb7){const _0x492f02=_0x327967;let _0x2bb7c9=_0x496313['getSnapshot']()['tables'][_0x476202];if(!_0x2bb7c9)return null;let _0xc71ae0=qe(_0x2bb7c9),_0x58a614=_0xc71ae0??Je(_0x2bb7c9),_0x586f24=_0x519f4c['some'](_0x47926e=>Object[_0x492f02(0x331)][_0x492f02(0x150)][_0x492f02(0x171)](_0x47926e['values'],_0x58a614)),_0x116bdc=_0xc71ae0?_0x2bb7c9[_0x492f02(0x305)][_0xc71ae0]:_0x586f24?Ye(_0x2bb7c9,_0x58a614,_0x208fb7):null,_0x524eda=[];for(let _0x33de56 of _0x519f4c){let _0x1bb899=_0x33de56['values'][_0x58a614],_0x50108a=_0x116bdc!==null&&Object[_0x492f02(0x331)][_0x492f02(0x150)]['call'](_0x33de56[_0x492f02(0x259)],_0x58a614),_0x4c74e9=ya(_0x1bb899),_0x2c9ca2=null;if(_0x50108a){if(typeof _0x4c74e9!=_0x492f02(0x2a0)||!ze(_0x4c74e9,!0x1)[_0x492f02(0x48b)])return null;_0x2c9ca2=_0x4c74e9;}let _0x4cf472={};if(Object[_0x492f02(0x209)](_0x33de56['values'])[_0x492f02(0x29b)](([_0x420613,_0x2ed0f2])=>{(!_0x50108a||_0x420613!==_0x58a614)&&(_0x4cf472[_0x420613]=_0x2ed0f2);}),!_a(_0x496313,_0x476202,{..._0x33de56,'values':_0x4cf472}))return null;let _0x153415={..._0x33de56[_0x492f02(0x259)]};_0x2c9ca2!==null&&(_0x153415[_0x58a614]=_0x2c9ca2),_0x524eda[_0x492f02(0x161)](va({..._0x33de56,'values':_0x153415}));}return{'records':_0x524eda,'hierarchyFieldToMaterialize':_0xc71ae0?null:_0x116bdc,'hierarchyChanges':Qe(_0x2bb7c9,_0x524eda)};}const xa={'id':'base.command.batch-create-base-records','type':_0x281ad9['COMMAND'],'handler'(_0x261721,_0x57c36a){const _0x29d390=_0x327967;if(!_0x57c36a)return!0x1;let _0x374f74=_0x261721[_0x29d390(0x318)](_0x3a38b9),{unitId:_0x9e6035,tableId:_0x569b99,records:_0x45d3d5}=_0x57c36a,_0x555b79=_0x374f74[_0x29d390(0x1d4)](_0x9e6035,_0x49a6be[_0x29d390(0xf9)]),_0x551735=_0x45d3d5['map'](_0x4f5c3d=>_0x4f5c3d['id']);if(!_0x555b79||!$(_0x555b79,_0x569b99)||new Set(_0x551735)[_0x29d390(0x1d0)]!==_0x551735[_0x29d390(0x1bf)])return!0x1;let _0x4814b8=_0x261721[_0x29d390(0x318)](_0x2823d6),_0x144b37=_0x261721[_0x29d390(0x318)](_0x15f92a),_0x339ddb=_0x261721[_0x29d390(0x318)](Kr),_0x355237=_0x555b79[_0x29d390(0x32b)](),_0x509e73=ba(_0x555b79,_0x569b99,_0x45d3d5);if(!_0x509e73)return!0x1;let {records:_0x124019,hierarchyChanges:_0x23c6cb,hierarchyFieldToMaterialize:_0x1595dd}=_0x509e73,_0x488c35=_0x1595dd?_0x339ddb[_0x29d390(0x40b)](_0x555b79,_0x569b99,_0x1595dd,_0x355237['tables'][_0x569b99][_0x29d390(0x1f8)][_0x29d390(0x1bf)]):null,_0x3bcf9d=_0x339ddb[_0x29d390(0x3ad)](_0x555b79,_0x569b99,_0x124019),_0x51c56e=R([..._0x488c35?[_0x488c35]:[],_0x3bcf9d]),_0xfefe2c=new z()[_0x29d390(0x38e)](_0x355237,_0x51c56e),_0x3713f9={'unitId':_0x9e6035,'op':_0x51c56e,'hierarchyChanges':_0x23c6cb[_0x29d390(0x1bf)]?_0x23c6cb:void 0x0,'source':_0x23c6cb[_0x29d390(0x1bf)]?_0x57c36a[_0x29d390(0x300)]??'ui':void 0x0},_0x4b9322={..._0x3713f9,'source':_0x23c6cb[_0x29d390(0x1bf)]?_0x29d390(0x274):void 0x0},_0x5e794f={'unitId':_0x9e6035,'op':_0xfefe2c,'hierarchyChanges':_0x23c6cb[_0x29d390(0x1bf)]?_0x23c6cb[_0x29d390(0x412)](_0x33f259=>({..._0x33f259,'oldParentRecordId':_0x33f259['parentRecordId'],'parentRecordId':null})):void 0x0,'source':_0x23c6cb[_0x29d390(0x1bf)]?_0x29d390(0x175):void 0x0};return _0x4814b8[_0x29d390(0x2f7)](Q['id'],_0x3713f9)?(_0x374f74['focusUnit'](_0x9e6035),_0x144b37[_0x29d390(0x244)]({'unitID':_0x9e6035,'undoMutations':[{'id':Q['id'],'params':_0x5e794f}],'redoMutations':[{'id':Q['id'],'params':_0x4b9322}]}),!0x0):!0x1;}},Sa={'id':_0x327967(0x2e7),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x24a928,_0x354aa9)=>{const _0x4e1423=_0x327967;if(!_0x354aa9)return!0x1;let _0x37eafc=_0x24a928[_0x4e1423(0x318)](_0x3a38b9),{unitId:_0x169be2,tableId:_0x3125ab,recordIds:_0x4c8423}=_0x354aa9,_0x3b835b=_0x37eafc[_0x4e1423(0x1d4)](_0x169be2,_0x49a6be[_0x4e1423(0xf9)]);if(!_0x3b835b||!$(_0x3b835b,_0x3125ab,{'recordIds':_0x4c8423}))return!0x1;let _0x157bdd=_0x24a928[_0x4e1423(0x318)](_0x2823d6),_0x24be3f=_0x24a928[_0x4e1423(0x318)](_0x15f92a),_0x24f60c=_0x3b835b[_0x4e1423(0x32b)](),_0xc12c0=et(_0x24f60c[_0x4e1423(0x486)][_0x3125ab],_0x4c8423),_0x350109=new W(),_0x231eaa=new z(),_0x77e3ee=_0x350109[_0x4e1423(0x109)](_0x24f60c,_0x3125ab,_0x4c8423),_0xf15f2f=_0x231eaa['applyOp'](_0x24f60c,_0x77e3ee),_0x58db78=_0x350109[_0x4e1423(0x1ea)](_0x24f60c,_0xf15f2f,_0x3125ab,_0x4c8423),_0x544f1d={'unitId':_0x169be2,'op':_0x77e3ee,'hierarchyChanges':_0xc12c0,'source':_0x354aa9[_0x4e1423(0x300)]??'ui'},_0x225f76={..._0x544f1d,'source':_0x4e1423(0x274)},_0xa57bd5={'unitId':_0x169be2,'op':_0x58db78,'hierarchyChanges':_0xc12c0[_0x4e1423(0x412)](_0x3c2dd7=>({..._0x3c2dd7,'oldParentRecordId':_0x3c2dd7[_0x4e1423(0x3a5)],'parentRecordId':_0x3c2dd7['oldParentRecordId']})),'source':_0x4e1423(0x175)};return _0x157bdd[_0x4e1423(0x2f7)](Q['id'],_0x544f1d)?(_0x37eafc[_0x4e1423(0x354)](_0x169be2),_0x24be3f[_0x4e1423(0x244)]({'unitID':_0x169be2,'undoMutations':[{'id':Q['id'],'params':_0xa57bd5}],'redoMutations':[{'id':Q['id'],'params':_0x225f76}]}),!0x0):!0x1;}},Ca={'id':_0x327967(0x316),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x330450,_0x589a91)=>{const _0x13e7f8=_0x327967;if(!_0x589a91)return!0x1;let _0x30f61d=_0x330450[_0x13e7f8(0x318)](_0x3a38b9),{unitId:_0x1bb36b,tableId:_0x1ec612,fieldId:_0x394041,input:_0x17fcad}=_0x589a91,_0x5ac775=_0x30f61d[_0x13e7f8(0x1d4)](_0x1bb36b,_0x49a6be[_0x13e7f8(0xf9)]);if(!_0x5ac775||_0x394041===_0x40fc9d||!$(_0x5ac775,_0x1ec612,{'fieldIds':[_0x394041]}))return!0x1;let _0x61bd99=_0x330450[_0x13e7f8(0x318)](_0x2823d6),_0x4a75ea=_0x330450[_0x13e7f8(0x318)](_0x15f92a),_0x4e9d03=_0x5ac775[_0x13e7f8(0x32b)]();if(!ha(_0x5ac775,_0x1ec612,{..._0x4e9d03[_0x13e7f8(0x486)][_0x1ec612][_0x13e7f8(0x305)][_0x394041],..._0x17fcad}))return!0x1;let _0x15b06a=new W()['changeFieldType'](_0x4e9d03,_0x1ec612,_0x394041,_0x17fcad),_0x262e7a=new z()[_0x13e7f8(0x38e)](_0x4e9d03,_0x15b06a),_0x2c6f2f={'unitId':_0x1bb36b,'op':_0x15b06a},_0x5db925={'unitId':_0x1bb36b,'op':_0x262e7a};return _0x61bd99[_0x13e7f8(0x2f7)](Q['id'],_0x2c6f2f)?(_0x30f61d[_0x13e7f8(0x354)](_0x1bb36b),_0x4a75ea[_0x13e7f8(0x244)]({'unitID':_0x1bb36b,'undoMutations':[{'id':Q['id'],'params':_0x5db925}],'redoMutations':[{'id':Q['id'],'params':_0x2c6f2f}]}),!0x0):!0x1;}},wa={'id':_0x327967(0xde),'type':_0x281ad9['COMMAND'],'handler'(_0x9f8155,_0x33ab0e){const _0x560959=_0x327967;var _0x5f2919;if(!_0x33ab0e)return!0x1;let {unitId:_0x1146e5,tableId:_0x2ce545,parentRecordId:_0x274a50}=_0x33ab0e,_0x2b881d=_0x9f8155[_0x560959(0x318)](_0x3a38b9),_0x342f3c=_0x2b881d[_0x560959(0x1d4)](_0x1146e5,_0x49a6be[_0x560959(0xf9)]);if(!_0x342f3c||!$(_0x342f3c,_0x2ce545,{'recordIds':[_0x274a50]}))throw new P(_0x560959(0x3bd));let _0x22a264=_0x342f3c[_0x560959(0x32b)](),_0x9dc9cb=_0x22a264[_0x560959(0x486)][_0x2ce545],_0x3a8e69=qe(_0x9dc9cb),_0x56e23c=_0x3a8e69??_0x33ab0e[_0x560959(0x173)]??Je(_0x9dc9cb);if(_0x3a8e69&&_0x33ab0e[_0x560959(0x173)]&&_0x33ab0e['fieldId']!==_0x3a8e69||_0x9dc9cb[_0x560959(0x305)][_0x56e23c]&&!F(_0x9dc9cb,_0x56e23c))throw new P(_0x560959(0x421));if((tt(_0x9dc9cb,_0x56e23c)[_0x560959(0x308)][_0x560959(0x318)](_0x274a50)??0x0)+0x1>=0x5)throw new P(_0x560959(0x231));if(!_a(_0x342f3c,_0x2ce545,_0x33ab0e[_0x560959(0x472)]))return!0x1;let _0x3df679=va({..._0x33ab0e[_0x560959(0x472)],'values':{..._0x33ab0e['record']['values'],[_0x56e23c]:Re([_0x274a50])}}),_0x136acc=_0x9f8155[_0x560959(0x318)](Kr),_0x308d7c=new W(),_0x21e527=_0x9dc9cb['fields'][_0x56e23c],_0x3e6439=_0x21e527?((_0x5f2919=N(_0x21e527))==null?void 0x0:_0x5f2919[_0x560959(0x382)])===_0x3e0df7[_0x560959(0x4a4)]?null:_0x308d7c[_0x560959(0x3de)](_0x22a264,_0x2ce545,_0x56e23c,{'config':{..._0x21e527[_0x560959(0x174)],'relationRole':_0x3e0df7[_0x560959(0x4a4)]}}):_0x136acc['createCreateFieldOp'](_0x342f3c,_0x2ce545,Ye(_0x9dc9cb,_0x56e23c,_0x33ab0e[_0x560959(0x3ff)]),_0x9dc9cb['fieldOrder'][_0x560959(0x1bf)]),_0x3599e5=_0x136acc['createCreateRecordOp'](_0x342f3c,_0x2ce545,_0x3df679),_0x590704=R([..._0x3e6439?[_0x3e6439]:[],_0x3599e5]),_0x2d638b=new z()['invertOp'](_0x22a264,_0x590704),_0x514ce7={'tableId':_0x2ce545,'fieldId':_0x56e23c,'recordId':_0x3df679['id'],'oldParentRecordId':null,'parentRecordId':_0x274a50},_0x5a1a90={'unitId':_0x1146e5,'op':_0x590704,'trigger':wa['id'],'hierarchyChanges':[_0x514ce7],'source':_0x33ab0e[_0x560959(0x300)]??'ui'},_0x21d4f7={..._0x5a1a90,'source':'redo'},_0x5a649f={'unitId':_0x1146e5,'op':_0x2d638b,'trigger':wa['id'],'hierarchyChanges':[{..._0x514ce7,'oldParentRecordId':_0x274a50,'parentRecordId':null}],'source':_0x560959(0x175)};return _0x9f8155[_0x560959(0x318)](_0x2823d6)[_0x560959(0x2f7)](Q['id'],_0x5a1a90)?(_0x2b881d[_0x560959(0x354)](_0x1146e5),_0x9f8155['get'](_0x15f92a)[_0x560959(0x244)]({'unitID':_0x1146e5,'undoMutations':[{'id':Q['id'],'params':_0x5a649f}],'redoMutations':[{'id':Q['id'],'params':_0x21d4f7}]}),!0x0):!0x1;}},Ta={'id':_0x327967(0x387),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x4b6b93,_0x50378a){const _0x56057c=_0x327967;if(!_0x50378a)return!0x1;let _0x4f39ab=_0x4b6b93[_0x56057c(0x318)](_0x3a38b9),{unitId:_0x2646b7,tableId:_0x21514f,field:_0x39a516,index:_0x2dcd04,viewIndexes:_0x115cbe}=_0x50378a,_0x20604d=_0x4f39ab[_0x56057c(0x1d4)](_0x2646b7,_0x49a6be[_0x56057c(0xf9)]);if(!_0x20604d||!$(_0x20604d,_0x21514f)||_0x20604d[_0x56057c(0x32b)]()[_0x56057c(0x486)][_0x21514f][_0x56057c(0x305)][_0x39a516['id']]||_0x2dcd04===0x0||!ha(_0x20604d,_0x21514f,_0x39a516))return!0x1;let _0x200f4c=_0x4b6b93['get'](_0x2823d6),_0x5e876b=_0x4b6b93['get'](_0x15f92a),_0x18ffa7=_0x4b6b93['get'](Kr)['createCreateFieldOp'](_0x20604d,_0x21514f,_0x39a516,_0x2dcd04,_0x115cbe),_0x15acfe=new z()['invertOp'](_0x20604d['getSnapshot'](),_0x18ffa7),_0x39641e={'unitId':_0x2646b7,'op':_0x18ffa7},_0x7eaf0d={'unitId':_0x2646b7,'op':_0x15acfe};return _0x200f4c[_0x56057c(0x2f7)](Q['id'],_0x39641e)?(_0x4f39ab[_0x56057c(0x354)](_0x2646b7),_0x5e876b['pushUndoRedo']({'unitID':_0x2646b7,'undoMutations':[{'id':Q['id'],'params':_0x7eaf0d}],'redoMutations':[{'id':Q['id'],'params':_0x39641e}]}),!0x0):!0x1;}},Ea={'id':_0x327967(0x2a6),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x4210e2,_0x13460a){const _0x2394bf=_0x327967;if(!_0x13460a)return!0x1;let _0x3179dd=_0x4210e2[_0x2394bf(0x318)](_0x3a38b9),{unitId:_0x55c2d7,tableId:_0x4bbfbb,record:_0x58744c}=_0x13460a,_0x5eed90=_0x3179dd[_0x2394bf(0x1d4)](_0x55c2d7,_0x49a6be[_0x2394bf(0xf9)]);if(!_0x5eed90||!$(_0x5eed90,_0x4bbfbb))return!0x1;let _0x556240=_0x4210e2['get'](_0x2823d6),_0x4719a5=_0x4210e2[_0x2394bf(0x318)](_0x15f92a),_0x37e94d=_0x4210e2[_0x2394bf(0x318)](Kr),_0x1c2122=_0x5eed90[_0x2394bf(0x32b)](),_0x27f87b=ba(_0x5eed90,_0x4bbfbb,[_0x58744c]);if(!_0x27f87b)return!0x1;let [_0x117e4e]=_0x27f87b['records'],{hierarchyChanges:_0x6e21ff,hierarchyFieldToMaterialize:_0x4099b5}=_0x27f87b,_0x406ded=_0x4099b5?_0x37e94d['createCreateFieldOp'](_0x5eed90,_0x4bbfbb,_0x4099b5,_0x1c2122[_0x2394bf(0x486)][_0x4bbfbb]['fieldOrder'][_0x2394bf(0x1bf)]):null,_0x11fd47=_0x37e94d[_0x2394bf(0x1fb)](_0x5eed90,_0x4bbfbb,_0x117e4e),_0x301d8b=R([..._0x406ded?[_0x406ded]:[],_0x11fd47]),_0x123759=new z()['invertOp'](_0x1c2122,_0x301d8b),_0x1292e6={'unitId':_0x55c2d7,'op':_0x301d8b,'hierarchyChanges':_0x6e21ff[_0x2394bf(0x1bf)]?_0x6e21ff:void 0x0,'source':_0x6e21ff[_0x2394bf(0x1bf)]?_0x13460a[_0x2394bf(0x300)]??'ui':void 0x0},_0x3845ac={..._0x1292e6,'source':_0x6e21ff[_0x2394bf(0x1bf)]?_0x2394bf(0x274):void 0x0},_0x44c656={'unitId':_0x55c2d7,'op':_0x123759,'hierarchyChanges':_0x6e21ff[_0x2394bf(0x1bf)]?_0x6e21ff[_0x2394bf(0x412)](_0x134d18=>({..._0x134d18,'oldParentRecordId':_0x134d18[_0x2394bf(0x3a5)],'parentRecordId':null})):void 0x0,'source':_0x6e21ff[_0x2394bf(0x1bf)]?_0x2394bf(0x175):void 0x0};return _0x556240['syncExecuteCommand'](Q['id'],_0x1292e6)?(_0x3179dd['focusUnit'](_0x55c2d7),_0x4719a5[_0x2394bf(0x244)]({'unitID':_0x55c2d7,'undoMutations':[{'id':Q['id'],'params':_0x44c656}],'redoMutations':[{'id':Q['id'],'params':_0x3845ac}]}),!0x0):!0x1;}},Da=_0x327967(0x1b4);function Oa(_0x11baa1,_0x47134a,_0x8655e8){const _0x2ad230=_0x327967;if(!_0x47134a['trim']())return{'valid':!0x1,'reason':'Table\x20name\x20is\x20required.','error':_0x2ad230(0x25a)};if(_0x47134a[_0x2ad230(0x1bf)]>0x1f)return{'valid':!0x1,'reason':_0x2ad230(0x46b),'error':_0x2ad230(0x1c7)};if(_0x47134a[_0x2ad230(0x2ad)]('\x27')||_0x47134a['endsWith']('\x27'))return{'valid':!0x1,'reason':_0x2ad230(0x10e),'error':_0x2ad230(0x418)};if(/[:\\/?*\[\]]/[_0x2ad230(0x3e2)](_0x47134a))return{'valid':!0x1,'reason':_0x2ad230(0x2db),'error':_0x2ad230(0x1a2)};if(!_0x4a2760(_0x47134a))return{'valid':!0x1,'reason':_0x2ad230(0x2ce),'error':'invalid'};let _0x45495c=_0x47134a[_0x2ad230(0x3af)]();return Object['values'](_0x11baa1[_0x2ad230(0x486)])[_0x2ad230(0x35d)](_0x21cb05=>_0x21cb05['id']!==_0x8655e8&&_0x21cb05[_0x2ad230(0x158)][_0x2ad230(0x3af)]()===_0x45495c)?{'valid':!0x1,'reason':_0x2ad230(0xf2),'error':'duplicate'}:{'valid':!0x0};}function ka(_0x58de43,_0x41489a){const _0x2bb393=_0x327967;let _0x5c7811=_0x41489a[_0x2bb393(0x42d)](/[:\\/?*\[\]]/g,'\x20')[_0x2bb393(0x42d)](/^'+|'+$/g,'')[_0x2bb393(0x140)]()||_0x2bb393(0x448),_0x74a203=0x1;for(;;){let _0xc57ce2=_0x74a203===0x1?'':'\x20'+_0x74a203,_0x4a2052=''+_0x5c7811[_0x2bb393(0x348)](0x0,0x1f-_0xc57ce2['length'])+_0xc57ce2;if(Oa(_0x58de43,_0x4a2052)[_0x2bb393(0x48b)])return _0x4a2052;_0x74a203++;}}const Aa={'id':_0x327967(0x2d5),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x8ba46d,_0x50758a)=>{const _0x7431fa=_0x327967;if(!_0x50758a)return!0x1;let _0x4df2e0=_0x8ba46d[_0x7431fa(0x318)](_0x3a38b9),{unitId:_0x185a0e,table:_0x4b5af7,index:_0x266ea3}=_0x50758a,_0x2e948e=_0x4df2e0['getUnit'](_0x185a0e,_0x49a6be['UNIVER_BASE']);if(!_0x2e948e||_0x2e948e[_0x7431fa(0x32b)]()['tables'][_0x4b5af7['id']]||!Oa(_0x2e948e[_0x7431fa(0x32b)](),_0x4b5af7['name'])[_0x7431fa(0x48b)])return!0x1;try{_0x15f38a(_0x4b5af7);}catch{return!0x1;}let _0x5130a1=_0x8ba46d[_0x7431fa(0x318)](_0x2823d6),_0xff84e2=_0x8ba46d[_0x7431fa(0x318)](_0x15f92a),_0x30290b=_0x2e948e[_0x7431fa(0x32b)](),_0x3aee76=new W()['createTable'](_0x30290b,_0x4b5af7,_0x266ea3),_0x3cc57b=new z()[_0x7431fa(0x38e)](_0x30290b,_0x3aee76),_0x496d23={'unitId':_0x185a0e,'op':_0x3aee76},_0x355f73={'unitId':_0x185a0e,'op':_0x3cc57b};return _0x5130a1[_0x7431fa(0x2f7)](Q['id'],_0x496d23)?(_0x4df2e0[_0x7431fa(0x354)](_0x185a0e),_0xff84e2[_0x7431fa(0x244)]({'unitID':_0x185a0e,'undoMutations':[{'id':Q['id'],'params':_0x355f73}],'redoMutations':[{'id':Q['id'],'params':_0x496d23}]}),!0x0):!0x1;}};function ja(_0x1742fb,_0x2ea346,_0x137a34=[]){const _0x12f37c=_0x327967;let _0x1238f1=new Set([...Object[_0x12f37c(0x259)](_0x1742fb[_0x12f37c(0x305)])[_0x12f37c(0x1be)](_0x3af9ec=>_0x3af9ec)[_0x12f37c(0x412)](_0x48cb58=>_0x48cb58[_0x12f37c(0x158)]),..._0x137a34['map'](_0x511bf0=>_0x511bf0[_0x12f37c(0x158)])]);if(!_0x1238f1[_0x12f37c(0x103)](_0x2ea346))return _0x2ea346;let _0x3456a1=0x2;for(;_0x1238f1[_0x12f37c(0x103)](_0x2ea346+'\x20'+_0x3456a1);)_0x3456a1++;return _0x2ea346+'\x20'+_0x3456a1;}function Ma(_0x4569eb,_0x18e2d0){const _0x3b835d=_0x327967;if(!_0x4569eb||!_0x18e2d0['length'])return;let _0xf9f9b8=[..._0x4569eb];return _0x18e2d0[_0x3b835d(0x29b)](_0x337450=>{const _0x261082=_0x3b835d;_0xf9f9b8[_0x261082(0x45c)](_0x337450)||_0xf9f9b8['push'](_0x337450);}),_0xf9f9b8;}const Na={'options':[{'id':_0x327967(0x343),'name':_0x327967(0x3ac),'color':_0x327967(0x337)},{'id':'doing','name':'Doing','color':_0x327967(0x10d)},{'id':_0x327967(0x3ae),'name':'Done','color':'#BBF7D0'}]},Pa={'locale':_0x327967(0x29d),'pattern':_0x327967(0x20c),'includeTime':!0x1,'hourCycle':'h24','defaultMode':_0x327967(0x2d2)};function Fa(_0x1992c9,_0x24fb54,_0x6e0407,_0x5e1bf2){const _0x4db5bf=_0x327967;var _0x6680f8;let _0x53b1bd=new W(),_0x3e92a1=_0x1992c9[_0x4db5bf(0x486)][_0x24fb54],_0x4c6014=_0x3e92a1?{..._0x6e0407,'fieldOrder':[_0x40fc9d,...(_0x6e0407['fieldOrder']??_0x3e92a1[_0x4db5bf(0x1f8)])[_0x4db5bf(0x1be)](_0x3e32f4=>_0x3e32f4!==_0x40fc9d)],'fieldSettings':{..._0x6e0407[_0x4db5bf(0x105)],[_0x40fc9d]:{...(_0x6680f8=_0x6e0407[_0x4db5bf(0x105)])==null?void 0x0:_0x6680f8[_0x40fc9d],'hidden':!0x0}}}:_0x6e0407;if(_0x3e92a1&&_0x4c6014[_0x4db5bf(0x346)]===_0x4db5bf(0x2c4)){let _0x269dcd=La(_0x3e92a1,_0x4c6014),_0x46ff8f=_0x269dcd[_0x4db5bf(0x2cc)]?{..._0x4c6014,'config':_0x269dcd[_0x4db5bf(0x174)],'fieldOrder':_0x269dcd[_0x4db5bf(0x1f8)]??_0x4c6014[_0x4db5bf(0x1f8)]}:_0x4c6014;return R([..._0x269dcd[_0x4db5bf(0x305)][_0x4db5bf(0x412)](_0x54ce00=>_0x53b1bd['createField'](_0x1992c9,_0x24fb54,{'field':_0x54ce00})),_0x53b1bd[_0x4db5bf(0x3b7)](_0x1992c9,_0x24fb54,_0x46ff8f,_0x5e1bf2)]);}if(!_0x3e92a1||_0x4c6014[_0x4db5bf(0x346)]!==_0x4db5bf(0x32e)&&_0x4c6014[_0x4db5bf(0x346)]!==_0x4db5bf(0x3ca))return _0x53b1bd[_0x4db5bf(0x3b7)](_0x1992c9,_0x24fb54,_0x4c6014,_0x5e1bf2);let _0x30ed9b=Ia(_0x3e92a1,_0x4c6014),_0x5f43b8=_0x30ed9b[_0x4db5bf(0x2cc)]?{..._0x4c6014,'config':_0x30ed9b[_0x4db5bf(0x174)],'fieldOrder':_0x30ed9b['fieldOrder']??_0x4c6014[_0x4db5bf(0x1f8)]}:_0x4c6014;return _0x4c6014[_0x4db5bf(0x346)]===_0x4db5bf(0x3ca)&&Ba(_0x4c6014)&&(_0x5f43b8=Va(_0x3e92a1,_0x5f43b8,_0x30ed9b[_0x4db5bf(0x305)])),R([..._0x30ed9b['fields'][_0x4db5bf(0x412)](_0x444ec4=>_0x53b1bd[_0x4db5bf(0x24c)](_0x1992c9,_0x24fb54,{'field':_0x444ec4})),_0x53b1bd[_0x4db5bf(0x3b7)](_0x1992c9,_0x24fb54,_0x5f43b8,_0x5e1bf2)]);}function Ia(_0x28bdbe,_0x4190fb,_0x49f52b=!0x1){const _0x54e11c=_0x327967;var _0x53c36d,_0x33d96b;let _0x297885=_0x28bdbe[_0x54e11c(0x1f8)][_0x54e11c(0x1be)](_0x449f31=>Ua(_0x28bdbe,_0x449f31)),_0x550259=[],_0x3f61bd={..._0x4190fb[_0x54e11c(0x174)]??{}},_0x456906=typeof _0x3f61bd['startDateFieldId']==_0x54e11c(0x2a0)&&Ua(_0x28bdbe,_0x3f61bd['startDateFieldId'])?_0x3f61bd[_0x54e11c(0x3d2)]:_0x297885[0x0],_0x199299=typeof _0x3f61bd[_0x54e11c(0x406)]==_0x54e11c(0x2a0)&&Ua(_0x28bdbe,_0x3f61bd['endDateFieldId'])&&_0x3f61bd[_0x54e11c(0x406)]!==_0x456906?_0x3f61bd[_0x54e11c(0x406)]:_0x297885['find'](_0x2d5254=>_0x2d5254!==_0x456906);if(!_0x456906){let _0x31a2a5=Wa(_0x28bdbe,_0x550259,_0x4190fb[_0x54e11c(0x346)]==='gantt'?_0x54e11c(0x2f2):_0x54e11c(0x2b2));_0x550259[_0x54e11c(0x161)](_0x31a2a5),_0x456906=_0x31a2a5['id'];}if((_0x4190fb[_0x54e11c(0x346)]===_0x54e11c(0x3ca)||_0x49f52b)&&!_0x199299){let _0x3a8faf=Wa(_0x28bdbe,_0x550259,_0x54e11c(0x15a));_0x550259[_0x54e11c(0x161)](_0x3a8faf),_0x199299=_0x3a8faf['id'];}_0x4190fb[_0x54e11c(0x346)]===_0x54e11c(0x32e)&&!_0x199299&&delete _0x3f61bd[_0x54e11c(0x406)],_0x3f61bd[_0x54e11c(0x3d2)]=_0x456906,_0x4190fb[_0x54e11c(0x346)]===_0x54e11c(0x32e)&&_0x199299&&(_0x3f61bd[_0x54e11c(0x406)]=_0x199299),_0x4190fb[_0x54e11c(0x346)]===_0x54e11c(0x3ca)&&(_0x3f61bd[_0x54e11c(0x406)]=_0x199299??_0x456906);let _0x52baec=Ma(_0x4190fb[_0x54e11c(0x1f8)],_0x550259['map'](_0x4ce2c5=>_0x4ce2c5['id']));return{'changed':_0x550259[_0x54e11c(0x1bf)]>0x0||_0x3f61bd[_0x54e11c(0x3d2)]!==((_0x53c36d=_0x4190fb[_0x54e11c(0x174)])==null?void 0x0:_0x53c36d[_0x54e11c(0x3d2)])||_0x3f61bd[_0x54e11c(0x406)]!==((_0x33d96b=_0x4190fb[_0x54e11c(0x174)])==null?void 0x0:_0x33d96b['endDateFieldId'])||!(!_0x52baec||_0x2ea00f[_0x54e11c(0xe6)](_0x52baec,_0x4190fb[_0x54e11c(0x1f8)]??[])),'fields':_0x550259,'config':_0x3f61bd,'fieldOrder':_0x52baec};}function La(_0x13c918,_0x43b5c5){const _0x5e5f49=_0x327967;var _0x1cb6e2;let _0x3cea5a=[],_0x24f82e={..._0x43b5c5[_0x5e5f49(0x174)]??{}},_0x282a94=typeof _0x24f82e[_0x5e5f49(0x110)]=='string'&&Ra(_0x13c918,_0x24f82e[_0x5e5f49(0x110)])?_0x24f82e[_0x5e5f49(0x110)]:_0x13c918[_0x5e5f49(0x1f8)][_0x5e5f49(0x451)](_0xc2c1bd=>Ra(_0x13c918,_0xc2c1bd));if(!_0x282a94){let _0x307cd2=za(_0x13c918,_0x3cea5a);_0x3cea5a[_0x5e5f49(0x161)](_0x307cd2),_0x282a94=_0x307cd2['id'];}_0x24f82e[_0x5e5f49(0x110)]=_0x282a94;let _0xe2f90f=Ma(_0x43b5c5[_0x5e5f49(0x1f8)],_0x3cea5a[_0x5e5f49(0x412)](_0x33fb71=>_0x33fb71['id']));return{'changed':_0x3cea5a[_0x5e5f49(0x1bf)]>0x0||_0x24f82e[_0x5e5f49(0x110)]!==((_0x1cb6e2=_0x43b5c5[_0x5e5f49(0x174)])==null?void 0x0:_0x1cb6e2[_0x5e5f49(0x110)])||!(!_0xe2f90f||_0x2ea00f[_0x5e5f49(0xe6)](_0xe2f90f,_0x43b5c5[_0x5e5f49(0x1f8)]??[])),'fields':_0x3cea5a,'config':_0x24f82e,'fieldOrder':_0xe2f90f};}function Ra(_0x2e308c,_0x39520f){const _0x4fb173=_0x327967;let _0x477dc2=_0x39520f?_0x2e308c['fields'][_0x39520f]:null;return _0x477dc2?[_0x1013ad[_0x4fb173(0x413)],_0x1013ad[_0x4fb173(0x190)],_0x1013ad['Rating'],_0x1013ad['Person'],_0x1013ad[_0x4fb173(0xf7)],_0x1013ad['Checkbox']]['includes'](_0x477dc2[_0x4fb173(0x346)]):!0x1;}function za(_0x53784e,_0x2fe01f){const _0x1a7f6c=_0x327967;return{'id':_0x1a7f6c(0x456)+_0x1dd020(0x8),'name':ja(_0x53784e,'Status',_0x2fe01f),'type':_0x1013ad[_0x1a7f6c(0x413)],'config':_0x2ea00f[_0x1a7f6c(0x3e0)](Na)};}function Ba(_0xbd2182){const _0x8cb8b8=_0x327967;return Object['keys'](_0xbd2182[_0x8cb8b8(0x174)]??{})[_0x8cb8b8(0x1bf)]===0x0&&Object[_0x8cb8b8(0x27a)](_0xbd2182['fieldSettings']??{})[_0x8cb8b8(0x1bf)]===0x0;}function Va(_0x1fd55a,_0x1d9b13,_0x5d6b7c){const _0x840ec9=_0x327967;let _0x9cfb93={..._0x1d9b13[_0x840ec9(0x174)]??{}},_0x4892d4=_0x5d6b7c[_0x840ec9(0x412)](_0x574a3c=>_0x574a3c['id']),_0x25bb6e=[..._0x1fd55a[_0x840ec9(0x1f8)],..._0x4892d4],_0x3657eb=typeof _0x9cfb93[_0x840ec9(0x19b)]==_0x840ec9(0x2a0)&&Ha(_0x1fd55a,_0x5d6b7c,_0x9cfb93[_0x840ec9(0x19b)])?_0x9cfb93[_0x840ec9(0x19b)]:_0x1fd55a[_0x840ec9(0x44a)],_0x872a2d=typeof _0x9cfb93['startDateFieldId']=='string'?_0x9cfb93[_0x840ec9(0x3d2)]:'',_0x19b374=typeof _0x9cfb93[_0x840ec9(0x406)]==_0x840ec9(0x2a0)?_0x9cfb93[_0x840ec9(0x406)]:_0x872a2d,_0x21e4f1=new Set([_0x3657eb,_0x872a2d,_0x19b374][_0x840ec9(0x1be)](_0x376b6c=>_0x376b6c&&Ha(_0x1fd55a,_0x5d6b7c,_0x376b6c))),_0x13ad6c=Object[_0x840ec9(0x49f)](_0x25bb6e[_0x840ec9(0xeb)](_0x32cd5a=>_0x21e4f1[_0x840ec9(0x103)](_0x32cd5a)||!Ha(_0x1fd55a,_0x5d6b7c,_0x32cd5a)?[]:[[_0x32cd5a,{'hidden':!0x0}]]));return{..._0x1d9b13,'config':{..._0x9cfb93,'titleFieldId':_0x3657eb},'fieldSettings':_0x13ad6c};}function Ha(_0x881345,_0x270518,_0x19288a){const _0x2fae25=_0x327967;return!!(_0x881345[_0x2fae25(0x305)][_0x19288a]??_0x270518[_0x2fae25(0x451)](_0x2bf055=>_0x2bf055['id']===_0x19288a))&&!0x0;}function Ua(_0x25973a,_0xf4e328){const _0x356b79=_0x327967;let _0x4c421a=_0xf4e328?_0x25973a[_0x356b79(0x305)][_0xf4e328]:null;return!!_0x4c421a&&_0x4c421a[_0x356b79(0x346)]===_0x1013ad['Date']&&_0x4c421a[_0x356b79(0x397)]!==!0x0&&_0x4c421a[_0x356b79(0x272)]!==!0x0;}function Wa(_0x3f1ed4,_0x4d88f5,_0x285cf7){const _0x29832a=_0x327967;let _0x595edb=new Set([...Object[_0x29832a(0x27a)](_0x3f1ed4['fields']),..._0x4d88f5[_0x29832a(0x412)](_0x370829=>_0x370829['id'])]),_0x2b5df0='fld-'+_0x1dd020(0x8);for(;_0x595edb['has'](_0x2b5df0);)_0x2b5df0=_0x29832a(0x456)+_0x1dd020(0x8);return{'id':_0x2b5df0,'name':ja(_0x3f1ed4,_0x285cf7,_0x4d88f5),'type':_0x1013ad['Date'],'config':{...Pa}};}const Ga={'id':_0x327967(0x17e),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x57cfd7,_0x4c8528)=>{const _0x2d1cc9=_0x327967;if(!_0x4c8528)return!0x1;let _0x515796=_0x57cfd7['get'](_0x3a38b9),{unitId:_0x129a31,tableId:_0x57958f,view:_0x14139e,index:_0x520f3e}=_0x4c8528,_0x14ef13=_0x515796[_0x2d1cc9(0x1d4)](_0x129a31,_0x49a6be[_0x2d1cc9(0xf9)]);if(!_0x14ef13||!$(_0x14ef13,_0x57958f)||_0x14ef13[_0x2d1cc9(0x32b)]()[_0x2d1cc9(0x486)][_0x57958f][_0x2d1cc9(0x1eb)][_0x14139e['id']])return!0x1;let _0x41eb0e=_0x57cfd7['get'](_0x2823d6),_0x5227e8=_0x57cfd7['get'](_0x15f92a),_0x193698=_0x14ef13[_0x2d1cc9(0x32b)](),_0x29fa73=Fa(_0x193698,_0x57958f,_0x14139e,_0x520f3e),_0x4b9c0b=new z()[_0x2d1cc9(0x38e)](_0x193698,_0x29fa73),_0x9a648c={'historyAction':'create-view','unitId':_0x129a31,'op':_0x29fa73,'viewType':_0x14139e[_0x2d1cc9(0x346)]},_0x52e863={'historyAction':_0x2d1cc9(0x1f0),'unitId':_0x129a31,'op':_0x4b9c0b,'viewType':_0x14139e['type']};return _0x41eb0e[_0x2d1cc9(0x2f7)](Q['id'],_0x9a648c)?(_0x515796[_0x2d1cc9(0x354)](_0x129a31),_0x5227e8[_0x2d1cc9(0x244)]({'unitID':_0x129a31,'undoMutations':[{'id':Q['id'],'params':_0x52e863}],'redoMutations':[{'id':Q['id'],'params':_0x9a648c}]}),!0x0):!0x1;}},Ka={'id':_0x327967(0x3d0),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x383574,_0x5a813d){const _0x1e986c=_0x327967;if(!_0x5a813d)return!0x1;let _0x35d13c=_0x383574[_0x1e986c(0x318)](_0x3a38b9),{unitId:_0x136b2d,tableId:_0x3d28eb,fieldId:_0x592bac}=_0x5a813d,_0x40fe66=_0x35d13c['getUnit'](_0x136b2d,_0x49a6be[_0x1e986c(0xf9)]);if(!_0x40fe66)return!0x1;let _0x28106d=_0x40fe66[_0x1e986c(0x32b)](),_0x322f19=_0x28106d[_0x1e986c(0x486)][_0x3d28eb];if(!$(_0x40fe66,_0x3d28eb,{'fieldIds':[_0x592bac]})||_0x322f19[_0x1e986c(0x44a)]===_0x592bac||_0x592bac===_0x40fc9d)return!0x1;let _0xdb58c5=_0x383574[_0x1e986c(0x318)](_0x2823d6),_0x1b6952=_0x383574['get'](_0x15f92a),_0x42e2d2=new W()[_0x1e986c(0x42f)](_0x28106d,_0x3d28eb,_0x592bac),_0x1878d9=new z()[_0x1e986c(0x38e)](_0x28106d,_0x42e2d2),_0x5560de={'unitId':_0x136b2d,'op':_0x42e2d2},_0x433221={'unitId':_0x136b2d,'op':_0x1878d9};return _0xdb58c5[_0x1e986c(0x2f7)](Q['id'],_0x5560de)?(_0x35d13c[_0x1e986c(0x354)](_0x136b2d),_0x1b6952[_0x1e986c(0x244)]({'unitID':_0x136b2d,'undoMutations':[{'id':Q['id'],'params':_0x433221}],'redoMutations':[{'id':Q['id'],'params':_0x5560de}]}),!0x0):!0x1;}},qa={'id':_0x327967(0x3fa),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x3591dc,_0x28ce08)=>{const _0x4cac8e=_0x327967;if(!_0x28ce08)return!0x1;let _0x2b4d8=_0x3591dc[_0x4cac8e(0x318)](_0x3a38b9),{unitId:_0x46cd8e,tableId:_0xc9d332,recordId:_0x2280bd}=_0x28ce08,_0x3d949b=_0x2b4d8[_0x4cac8e(0x1d4)](_0x46cd8e,_0x49a6be['UNIVER_BASE']);if(!_0x3d949b||!$(_0x3d949b,_0xc9d332,{'recordIds':[_0x2280bd]}))return!0x1;let _0x35e928=_0x3591dc['get'](_0x2823d6),_0x3e982f=_0x3591dc[_0x4cac8e(0x318)](_0x15f92a),_0x52dc5b=_0x3d949b[_0x4cac8e(0x32b)](),_0x3c6c40=et(_0x52dc5b[_0x4cac8e(0x486)][_0xc9d332],[_0x2280bd]),_0xbb98f5=new W(),_0x345827=new z(),_0x5ee693=_0xbb98f5[_0x4cac8e(0x33a)](_0x52dc5b,_0xc9d332,_0x2280bd),_0x372256=_0x345827[_0x4cac8e(0x240)](_0x52dc5b,_0x5ee693),_0x48e960=_0xbb98f5['createDeleteRecordsUndoOp'](_0x52dc5b,_0x372256,_0xc9d332,[_0x2280bd]),_0x533c7d={'unitId':_0x46cd8e,'op':_0x5ee693,'hierarchyChanges':_0x3c6c40,'source':_0x28ce08[_0x4cac8e(0x300)]??'ui'},_0xea31c8={..._0x533c7d,'source':_0x4cac8e(0x274)},_0x2c9715={'unitId':_0x46cd8e,'op':_0x48e960,'hierarchyChanges':_0x3c6c40['map'](_0x2ca763=>({..._0x2ca763,'oldParentRecordId':_0x2ca763[_0x4cac8e(0x3a5)],'parentRecordId':_0x2ca763[_0x4cac8e(0x410)]})),'source':_0x4cac8e(0x175)};return _0x35e928['syncExecuteCommand'](Q['id'],_0x533c7d)?(_0x2b4d8[_0x4cac8e(0x354)](_0x46cd8e),_0x3e982f['pushUndoRedo']({'unitID':_0x46cd8e,'undoMutations':[{'id':Q['id'],'params':_0x2c9715}],'redoMutations':[{'id':Q['id'],'params':_0xea31c8}]}),!0x0):!0x1;}},Ja={'id':_0x327967(0x4a3),'type':_0x281ad9['COMMAND'],'handler':(_0x512491,_0x4eaf62)=>{const _0x59a244=_0x327967;if(!_0x4eaf62)return!0x1;let _0x2a4ef0=_0x512491[_0x59a244(0x318)](_0x3a38b9),{unitId:_0x3429fa,tableId:_0x572a2d}=_0x4eaf62,_0x58f560=_0x2a4ef0['getUnit'](_0x3429fa,_0x49a6be[_0x59a244(0xf9)]);if(!_0x58f560||!$(_0x58f560,_0x572a2d))return!0x1;let _0x1e34d9=_0x512491[_0x59a244(0x318)](_0x2823d6),_0x4a8aa8=_0x512491[_0x59a244(0x318)](_0x15f92a),_0x905bd2=_0x58f560[_0x59a244(0x32b)](),_0x400d38=He(_0x905bd2,_0x572a2d);if(_0x400d38['length']>0x0)return console['error'](_0x59a244(0x275)+_0x572a2d+_0x59a244(0x454)+_0x400d38['map'](_0x372424=>_0x372424[_0x59a244(0x19a)]+'.'+_0x372424[_0x59a244(0x173)])[_0x59a244(0x3a1)](',\x20')+'.'),!0x1;let _0x41bf7a=new W()[_0x59a244(0x277)](_0x905bd2,_0x572a2d),_0x28d99a=new z()[_0x59a244(0x38e)](_0x905bd2,_0x41bf7a),_0x466293={'unitId':_0x3429fa,'op':_0x41bf7a},_0x4d38df={'unitId':_0x3429fa,'op':_0x28d99a};return _0x1e34d9['syncExecuteCommand'](Q['id'],_0x466293)?(_0x2a4ef0[_0x59a244(0x354)](_0x3429fa),_0x4a8aa8[_0x59a244(0x244)]({'unitID':_0x3429fa,'undoMutations':[{'id':Q['id'],'params':_0x4d38df}],'redoMutations':[{'id':Q['id'],'params':_0x466293}]}),!0x0):!0x1;}},Ya={'id':_0x327967(0x3bc),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x400930,_0x428d93)=>{const _0x2ca912=_0x327967;if(!_0x428d93)return!0x1;let _0x4de313=_0x400930['get'](_0x3a38b9),{unitId:_0x3714f7,tableId:_0x2999c3,viewId:_0x2d305b}=_0x428d93,_0x5c4c3a=_0x4de313[_0x2ca912(0x1d4)](_0x3714f7,_0x49a6be[_0x2ca912(0xf9)]);if(!_0x5c4c3a||!$(_0x5c4c3a,_0x2999c3,{'viewIds':[_0x2d305b]}))return!0x1;let _0x4097a6=_0x400930[_0x2ca912(0x318)](_0x2823d6),_0xbe1405=_0x400930[_0x2ca912(0x318)](_0x15f92a),_0x99232b=_0x5c4c3a[_0x2ca912(0x32b)](),_0x56dae6=_0x99232b[_0x2ca912(0x486)][_0x2999c3][_0x2ca912(0x1eb)][_0x2d305b]['type'],_0xc2620d=new W()['deleteView'](_0x99232b,_0x2999c3,_0x2d305b),_0x55f019=new z()['invertOp'](_0x99232b,_0xc2620d),_0x4c4cdf={'historyAction':_0x2ca912(0x1f0),'unitId':_0x3714f7,'op':_0xc2620d,'viewType':_0x56dae6},_0x1d1ba6={'historyAction':_0x2ca912(0x1e3),'unitId':_0x3714f7,'op':_0x55f019,'viewType':_0x56dae6};return _0x4097a6[_0x2ca912(0x2f7)](Q['id'],_0x4c4cdf)?(_0x4de313[_0x2ca912(0x354)](_0x3714f7),_0xbe1405[_0x2ca912(0x244)]({'unitID':_0x3714f7,'undoMutations':[{'id':Q['id'],'params':_0x1d1ba6}],'redoMutations':[{'id':Q['id'],'params':_0x4c4cdf}]}),!0x0):!0x1;}},Xa={'id':_0x327967(0x31e),'type':_0x281ad9['COMMAND'],'handler':(_0x658cd2,_0x123e40)=>{const _0x56ab50=_0x327967;if(!_0x123e40)return!0x1;let _0xf37f7d=_0x658cd2[_0x56ab50(0x318)](_0x3a38b9),{unitId:_0x45abe8,tableId:_0x1160b7,sourceFieldId:_0x1fecd7,field:_0x442d12,index:_0x2e31a3,viewIndexes:_0x5b5b55}=_0x123e40,_0xba0f58=_0xf37f7d[_0x56ab50(0x1d4)](_0x45abe8,_0x49a6be[_0x56ab50(0xf9)]);if(!_0xba0f58||!$(_0xba0f58,_0x1160b7,{'fieldIds':[_0x1fecd7]})||_0x1fecd7===_0x40fc9d||_0xba0f58['getSnapshot']()[_0x56ab50(0x486)][_0x1160b7][_0x56ab50(0x305)][_0x442d12['id']]||_0x2e31a3===0x0||!ha(_0xba0f58,_0x1160b7,_0x442d12))return!0x1;let _0x9a7f07=_0x658cd2[_0x56ab50(0x318)](_0x2823d6),_0x477891=_0x658cd2[_0x56ab50(0x318)](_0x15f92a),_0x46dd54=_0xba0f58[_0x56ab50(0x32b)](),_0x556c16=new W()[_0x56ab50(0x400)](_0x46dd54,_0x1160b7,_0x1fecd7,{'field':_0x442d12,'index':_0x2e31a3,'viewIndexes':_0x5b5b55}),_0x1920ba=new z()[_0x56ab50(0x38e)](_0x46dd54,_0x556c16),_0x2bf324={'unitId':_0x45abe8,'op':_0x556c16},_0x11335e={'unitId':_0x45abe8,'op':_0x1920ba};return _0x9a7f07[_0x56ab50(0x2f7)](Q['id'],_0x2bf324)?(_0xf37f7d['focusUnit'](_0x45abe8),_0x477891[_0x56ab50(0x244)]({'unitID':_0x45abe8,'undoMutations':[{'id':Q['id'],'params':_0x11335e}],'redoMutations':[{'id':Q['id'],'params':_0x2bf324}]}),!0x0):!0x1;}},Za={'id':_0x327967(0x2f4),'type':_0x281ad9['COMMAND'],'handler':(_0x5550fb,_0x5efcdb)=>{const _0x298adf=_0x327967;if(!_0x5efcdb)return!0x1;let _0x4bc4e7=_0x5550fb[_0x298adf(0x318)](_0x3a38b9),{unitId:_0x3d4a8e,tableId:_0x361623,sourceRecordId:_0x97b946,record:_0x1e9d67}=_0x5efcdb,_0x4fd8af=_0x4bc4e7[_0x298adf(0x1d4)](_0x3d4a8e,_0x49a6be[_0x298adf(0xf9)]);if(!_0x4fd8af||!$(_0x4fd8af,_0x361623,{'recordIds':[_0x97b946]})||!_a(_0x4fd8af,_0x361623,_0x1e9d67))return!0x1;let _0x2c72a2=_0x5550fb[_0x298adf(0x318)](_0x2823d6),_0x4a6e18=_0x5550fb[_0x298adf(0x318)](_0x15f92a),_0x5ab63f=_0x4fd8af[_0x298adf(0x32b)](),_0x27a286=va(_0x1e9d67),_0x1eef0e=Qe(_0x5ab63f[_0x298adf(0x486)][_0x361623],[_0x27a286]),_0x442644=new W()[_0x298adf(0x11d)](_0x5ab63f,_0x361623,_0x97b946,_0x27a286),_0x5dfab2=new z()['invertOp'](_0x5ab63f,_0x442644),_0x1fe3f3={'unitId':_0x3d4a8e,'op':_0x442644,'hierarchyChanges':_0x1eef0e[_0x298adf(0x1bf)]?_0x1eef0e:void 0x0,'source':_0x1eef0e['length']?_0x5efcdb[_0x298adf(0x300)]??'ui':void 0x0},_0x5c1dc9={..._0x1fe3f3,'source':_0x1eef0e[_0x298adf(0x1bf)]?_0x298adf(0x274):void 0x0},_0x1106ba={'unitId':_0x3d4a8e,'op':_0x5dfab2,'hierarchyChanges':_0x1eef0e[_0x298adf(0x1bf)]?_0x1eef0e[_0x298adf(0x412)](_0x183dbb=>({..._0x183dbb,'oldParentRecordId':_0x183dbb[_0x298adf(0x3a5)],'parentRecordId':null})):void 0x0,'source':_0x1eef0e[_0x298adf(0x1bf)]?_0x298adf(0x175):void 0x0};return _0x2c72a2['syncExecuteCommand'](Q['id'],_0x1fe3f3)?(_0x4bc4e7[_0x298adf(0x354)](_0x3d4a8e),_0x4a6e18[_0x298adf(0x244)]({'unitID':_0x3d4a8e,'undoMutations':[{'id':Q['id'],'params':_0x1106ba}],'redoMutations':[{'id':Q['id'],'params':_0x5c1dc9}]}),!0x0):!0x1;}},Qa={'id':_0x327967(0x1ca),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x29a0c7,_0xf9f12b){const _0x41f128=_0x327967;if(!_0xf9f12b)return!0x1;let _0x29b849=_0x29a0c7[_0x41f128(0x318)](_0x3a38b9),{unitId:_0x126910,tableId:_0x4eb9ef,viewId:_0x22fb40,ensureEndDateField:_0x1d54b1}=_0xf9f12b,_0x2f9b8d=_0x29b849[_0x41f128(0x1d4)](_0x126910,_0x49a6be[_0x41f128(0xf9)]);if(!_0x2f9b8d||!$(_0x2f9b8d,_0x4eb9ef,{'viewIds':[_0x22fb40]}))return!0x1;let _0x1e5830=_0x2f9b8d[_0x41f128(0x32b)](),_0x4723e9=_0x1e5830[_0x41f128(0x486)][_0x4eb9ef],_0x5e8e1f=_0x4723e9==null?void 0x0:_0x4723e9[_0x41f128(0x1eb)][_0x22fb40];if(!_0x4723e9||!_0x5e8e1f||_0x5e8e1f[_0x41f128(0x346)]!=='calendar'&&_0x5e8e1f[_0x41f128(0x346)]!==_0x41f128(0x3ca))return!0x1;let _0x5de77c=Ia(_0x4723e9,_0x5e8e1f,_0x1d54b1===!0x0);if(!_0x5de77c[_0x41f128(0x2cc)])return!0x1;let _0x1a054=_0x29a0c7['get'](_0x2823d6),_0x3b07b3=_0x29a0c7[_0x41f128(0x318)](_0x15f92a),_0x542707=new W(),_0x815c99=[..._0x5de77c[_0x41f128(0x305)]['map'](_0x1f97bc=>_0x542707[_0x41f128(0x24c)](_0x1e5830,_0xf9f12b[_0x41f128(0x19a)],{'field':_0x1f97bc})),$a([...eo(_0xf9f12b['tableId'],_0xf9f12b[_0x41f128(0x2d0)]),_0x41f128(0x174)],_0x5e8e1f[_0x41f128(0x174)],_0x5de77c['config'])];_0x5de77c['fieldOrder']&&_0x815c99[_0x41f128(0x161)]($a([...eo(_0xf9f12b[_0x41f128(0x19a)],_0xf9f12b['viewId']),'fieldOrder'],_0x5e8e1f[_0x41f128(0x1f8)],_0x5de77c['fieldOrder']));let _0x226204=R(_0x815c99),_0x44e11f=new z()['invertOp'](_0x1e5830,_0x226204),_0x3a2c99={'unitId':_0x126910,'op':_0x226204},_0x33e854={'unitId':_0x126910,'op':_0x44e11f};return _0x1a054[_0x41f128(0x2f7)](Q['id'],_0x3a2c99)?(_0x29b849['focusUnit'](_0x126910),_0x3b07b3[_0x41f128(0x244)]({'unitID':_0x126910,'undoMutations':[{'id':Q['id'],'params':_0x33e854}],'redoMutations':[{'id':Q['id'],'params':_0x3a2c99}]}),!0x0):!0x1;}};function $a(_0x48db55,_0x2d2baa,_0x15f0fd){const _0x3d33e9=_0x327967;return _0x2d2baa===void 0x0?_0x43163e[_0x3d33e9(0xf4)](_0x48db55,_0x15f0fd):_0x43163e[_0x3d33e9(0x464)](_0x48db55,_0x2d2baa,_0x15f0fd);}function eo(_0x13f272,_0x13c81b){const _0x243600=_0x327967;return[_0x243600(0x486),_0x13f272,_0x243600(0x1eb),_0x13c81b];}const to={'id':_0x327967(0x269),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x75d9f5,_0x5be591)=>{const _0x4bd83e=_0x327967;if(!_0x5be591)return!0x1;let _0x73593=_0x75d9f5[_0x4bd83e(0x318)](_0x3a38b9),{unitId:_0xbb4cca,tableId:_0x8ac588,fieldId:_0x2023fa,target:_0x1c2d85}=_0x5be591,_0x4c4519=_0x73593[_0x4bd83e(0x1d4)](_0xbb4cca,_0x49a6be[_0x4bd83e(0xf9)]),_0x450ab6=_0x1c2d85[_0x4bd83e(0x25b)]??_0x1c2d85[_0x4bd83e(0x338)];if(!_0x4c4519||!!_0x1c2d85[_0x4bd83e(0x25b)]==!!_0x1c2d85[_0x4bd83e(0x338)]||!_0x450ab6||_0x450ab6===_0x2023fa||_0x2023fa===_0x40fc9d||_0x1c2d85[_0x4bd83e(0x25b)]===_0x40fc9d||!$(_0x4c4519,_0x8ac588,{'fieldIds':[_0x2023fa,_0x450ab6]}))return!0x1;let _0x1e2e64=_0x75d9f5['get'](_0x2823d6),_0x23646b=_0x75d9f5['get'](_0x15f92a),_0x2041f4=_0x4c4519[_0x4bd83e(0x32b)](),_0x1bf630=new W()['moveField'](_0x2041f4,_0x8ac588,_0x2023fa,_0x1c2d85),_0x582a44=new z()[_0x4bd83e(0x38e)](_0x2041f4,_0x1bf630),_0x105793={'unitId':_0xbb4cca,'op':_0x1bf630},_0x4605c0={'unitId':_0xbb4cca,'op':_0x582a44};return _0x1e2e64[_0x4bd83e(0x2f7)](Q['id'],_0x105793)?(_0x73593['focusUnit'](_0xbb4cca),_0x23646b[_0x4bd83e(0x244)]({'unitID':_0xbb4cca,'undoMutations':[{'id':Q['id'],'params':_0x4605c0}],'redoMutations':[{'id':Q['id'],'params':_0x105793}]}),!0x0):!0x1;}},no={'id':_0x327967(0x181),'type':_0x281ad9['COMMAND'],'handler':(_0x18a852,_0x375cfe)=>{const _0x101e34=_0x327967;var _0x2bcd22;if(!_0x375cfe)return!0x1;let {unitId:_0x1da349,tableId:_0x4f7553,recordId:_0x27fe4c,parentRecordId:_0x3706ff,orderKey:_0x460bb6}=_0x375cfe,_0x3c3776=_0x18a852['get'](_0x3a38b9),_0x173e55=_0x3c3776[_0x101e34(0x1d4)](_0x1da349,_0x49a6be[_0x101e34(0xf9)]);if(!_0x173e55||!$(_0x173e55,_0x4f7553,{'recordIds':[_0x27fe4c,..._0x3706ff?[_0x3706ff]:[]]}))throw new P(_0x101e34(0x3bd));let _0x37f9b7=_0x173e55[_0x101e34(0x32b)](),_0x139f05=_0x37f9b7[_0x101e34(0x486)][_0x4f7553],_0x4632d0=qe(_0x139f05),_0x5e34f3=_0x4632d0??_0x375cfe['fieldId']??Je(_0x139f05);if(_0x4632d0&&_0x375cfe['fieldId']&&_0x375cfe[_0x101e34(0x173)]!==_0x4632d0||_0x139f05[_0x101e34(0x305)][_0x5e34f3]&&!F(_0x139f05,_0x5e34f3))throw new P(_0x101e34(0x421));let _0x4e29c2=tt(_0x139f05,_0x5e34f3),_0xbd7bf3=it(_0x4e29c2,_0x27fe4c,_0x3706ff);if(!_0xbd7bf3['valid'])throw new P(_0xbd7bf3[_0x101e34(0x3bf)]===_0x240c41[_0x101e34(0x38b)]?_0x101e34(0x43b):_0xbd7bf3['reason']===_0x240c41[_0x101e34(0x2d8)]?_0x101e34(0x403):'maxDepth');let _0x7a6dfa=_0x4e29c2[_0x101e34(0x47c)][_0x101e34(0x318)](_0x27fe4c)??null,_0x1cd64e=_0x139f05['records'][_0x27fe4c][_0x101e34(0x44c)];if(_0x7a6dfa===_0x3706ff&&(_0x460bb6===void 0x0||_0x460bb6===_0x1cd64e))return!0x0;let _0x5ba628=_0x7a6dfa!==_0x3706ff,_0x4bddd2=_0x460bb6!==void 0x0&&_0x460bb6!==_0x1cd64e,_0x50b193=new W(),_0xea5f0b=[],_0x4b693b=_0x139f05[_0x101e34(0x305)][_0x5e34f3],_0x40330d=_0x5ba628&&(!_0x4b693b||((_0x2bcd22=N(_0x4b693b))==null?void 0x0:_0x2bcd22[_0x101e34(0x382)])!==_0x3e0df7[_0x101e34(0x4a4)])?_0x4b693b?_0x50b193[_0x101e34(0x3de)](_0x37f9b7,_0x4f7553,_0x5e34f3,{'config':{..._0x4b693b['config'],'relationRole':_0x3e0df7[_0x101e34(0x4a4)]}}):_0x18a852[_0x101e34(0x318)](Kr)[_0x101e34(0x40b)](_0x173e55,_0x4f7553,Ye(_0x139f05,_0x5e34f3,_0x375cfe[_0x101e34(0x3ff)]),_0x139f05[_0x101e34(0x1f8)]['length']):null;_0x40330d&&_0xea5f0b['push'](_0x40330d),_0x5ba628&&_0xea5f0b[_0x101e34(0x161)](_0x50b193[_0x101e34(0x154)](_0x37f9b7,_0x4f7553,_0x27fe4c,_0x5e34f3,_0x3706ff?Re([_0x3706ff]):'')),_0x4bddd2&&_0xea5f0b[_0x101e34(0x161)](_0x50b193[_0x101e34(0x19e)](_0x37f9b7,_0x4f7553,_0x27fe4c,_0x460bb6));let _0x49ca58=R(_0xea5f0b),_0x1bdaff={'tableId':_0x4f7553,'fieldId':_0x5e34f3,'recordId':_0x27fe4c,'oldParentRecordId':_0x7a6dfa,'parentRecordId':_0x3706ff},_0x944ae9={'unitId':_0x1da349,'op':_0x49ca58,'trigger':no['id'],'hierarchyChanges':[_0x1bdaff],'source':_0x375cfe['source']??'ui'},_0x37efb5={..._0x944ae9,'source':_0x101e34(0x274)};if(!_0x18a852[_0x101e34(0x318)](_0x2823d6)[_0x101e34(0x2f7)](Q['id'],_0x944ae9))return!0x1;let _0x5a93d9=_0x173e55[_0x101e34(0x32b)](),_0x4eb6b6=[];_0x5ba628&&_0x4eb6b6[_0x101e34(0x161)](ro(_0x5a93d9,_0x37f9b7,_0x4f7553,_0x27fe4c,_0x5e34f3)),_0x4bddd2&&_0x4eb6b6[_0x101e34(0x161)](io(_0x5a93d9,_0x37f9b7,_0x4f7553,_0x27fe4c)),_0x40330d&&_0x4eb6b6['push'](new z()[_0x101e34(0x38e)](_0x37f9b7,_0x40330d));let _0x5494dc={'unitId':_0x1da349,'op':R(_0x4eb6b6),'trigger':no['id'],'hierarchyChanges':[{..._0x1bdaff,'oldParentRecordId':_0x3706ff,'parentRecordId':_0x7a6dfa}],'source':_0x101e34(0x175)};return _0x3c3776['focusUnit'](_0x1da349),_0x18a852[_0x101e34(0x318)](_0x15f92a)['pushUndoRedo']({'unitID':_0x1da349,'undoMutations':[{'id':Q['id'],'params':_0x5494dc}],'redoMutations':[{'id':Q['id'],'params':_0x37efb5}]}),!0x0;}};function ro(_0x252617,_0x26c624,_0x4a4ec9,_0x44c583,_0x5a4956){const _0xae9196=_0x327967;var _0x45748c,_0x28a262,_0x4907fe,_0x25ae07,_0x1b7057,_0x346e05,_0x3e14a4,_0x3c5739;let _0x44a905=_0x252617[_0xae9196(0x486)][_0x4a4ec9],_0x135364=_0x26c624[_0xae9196(0x486)][_0x4a4ec9],_0x41c1da=(_0x45748c=_0x44a905[_0xae9196(0x257)])==null?void 0x0:_0x45748c[_0x44c583],_0x31f310=(_0x28a262=_0x44a905['colIndex'])==null?void 0x0:_0x28a262[_0x5a4956],_0x52fd74=(_0x4907fe=_0x135364[_0xae9196(0x257)])==null?void 0x0:_0x4907fe[_0x44c583],_0x595b50=(_0x25ae07=_0x135364[_0xae9196(0x22a)])==null?void 0x0:_0x25ae07[_0x5a4956],_0x3178f1=_0x41c1da==null||_0x31f310==null||(_0x1b7057=_0x44a905[_0xae9196(0xdd)])==null||(_0x1b7057=_0x1b7057[_0x41c1da])==null?void 0x0:_0x1b7057[_0x31f310],_0x1edd95=_0x52fd74==null||_0x595b50==null||(_0x346e05=_0x135364['cellData'])==null||(_0x346e05=_0x346e05[_0x52fd74])==null?void 0x0:_0x346e05[_0x595b50],_0x31fc9f=(_0x3e14a4=_0x44a905[_0xae9196(0x1d7)][_0x44c583])==null?void 0x0:_0x3e14a4['values'][_0x5a4956],_0x3d13b9=(_0x3c5739=_0x135364[_0xae9196(0x1d7)][_0x44c583])==null?void 0x0:_0x3c5739[_0xae9196(0x259)][_0x5a4956],_0x21d43f=[],_0x10e252=ao(_0x41c1da==null||_0x31f310==null?null:U[_0xae9196(0xdd)](_0x4a4ec9,_0x41c1da,_0x31f310),_0x3178f1,_0x1edd95);_0x10e252&&_0x21d43f[_0xae9196(0x161)](_0x10e252);let _0x530326=ao(U['cell'](_0x4a4ec9,_0x44c583,_0x5a4956),_0x31fc9f,_0x3d13b9);return _0x530326&&_0x21d43f[_0xae9196(0x161)](_0x530326),R(_0x21d43f);}function io(_0x304b20,_0x460f94,_0x46f5de,_0x4c5fcd){const _0x2e7235=_0x327967;var _0x5526bc,_0x267c3c;let _0xfead39=_0x304b20['tables'][_0x46f5de],_0x364ccb=_0x460f94[_0x2e7235(0x486)][_0x46f5de];return R([ao([...U[_0x2e7235(0x472)](_0x46f5de,_0x4c5fcd),_0x2e7235(0x44c)],(_0x5526bc=_0xfead39['records'][_0x4c5fcd])==null?void 0x0:_0x5526bc['orderKey'],(_0x267c3c=_0x364ccb[_0x2e7235(0x1d7)][_0x4c5fcd])==null?void 0x0:_0x267c3c[_0x2e7235(0x44c)]),ao([...U['table'](_0x46f5de),_0x2e7235(0x1e2)],_0xfead39[_0x2e7235(0x1e2)],_0x364ccb['recordOrder'])][_0x2e7235(0x1be)](_0x143eee=>!!_0x143eee));}function ao(_0x4adb74,_0x341e34,_0x5047fe){const _0x5e32a7=_0x327967;if(!_0x4adb74||_0x341e34===void 0x0&&_0x5047fe===void 0x0)return null;let _0x219fa6=_0x12a725[_0x5e32a7(0x2d3)]();return _0x5047fe===void 0x0?_0x219fa6['removeOp'](_0x4adb74,_0x341e34):_0x341e34===void 0x0?_0x219fa6[_0x5e32a7(0xf4)](_0x4adb74,_0x5047fe):_0x219fa6[_0x5e32a7(0x464)](_0x4adb74,_0x341e34,_0x5047fe);}const oo={'id':_0x327967(0x459),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0xcf0cd4,_0x2c3d54)=>{const _0x16a102=_0x327967;if(!_0x2c3d54)return!0x1;let _0x1b4997=_0xcf0cd4[_0x16a102(0x318)](_0x3a38b9),{unitId:_0x48d638,tableId:_0x4145b3,viewId:_0x81cfde,target:_0x4c3296}=_0x2c3d54,_0x2467b6=_0x1b4997[_0x16a102(0x1d4)](_0x48d638,_0x49a6be[_0x16a102(0xf9)]),_0x21b814=_0x4c3296['beforeViewId']??_0x4c3296[_0x16a102(0x24f)];if(!_0x2467b6||!_0x21b814||_0x21b814===_0x81cfde||!$(_0x2467b6,_0x4145b3,{'viewIds':[_0x81cfde,_0x21b814]}))return!0x1;let _0x46c1a5=_0xcf0cd4[_0x16a102(0x318)](_0x2823d6),_0xe6b6b0=_0xcf0cd4[_0x16a102(0x318)](_0x15f92a),_0x519cb7=_0x2467b6[_0x16a102(0x32b)](),_0x53b7a0=new W()[_0x16a102(0x2dc)](_0x519cb7,_0x4145b3,_0x81cfde,_0x4c3296),_0x27ce1b=new z()[_0x16a102(0x38e)](_0x519cb7,_0x53b7a0),_0x1510fe={'unitId':_0x48d638,'op':_0x53b7a0},_0x4189ed={'unitId':_0x48d638,'op':_0x27ce1b};return _0x46c1a5[_0x16a102(0x2f7)](Q['id'],_0x1510fe)?(_0x1b4997[_0x16a102(0x354)](_0x48d638),_0xe6b6b0[_0x16a102(0x244)]({'unitID':_0x48d638,'undoMutations':[{'id':Q['id'],'params':_0x4189ed}],'redoMutations':[{'id':Q['id'],'params':_0x1510fe}]}),!0x0):!0x1;}},so={'id':'base.command.rename-base-table','type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x407e76,_0x80544d)=>{const _0x54261a=_0x327967;if(!_0x80544d)return!0x1;let _0x5271f9=_0x407e76[_0x54261a(0x318)](_0x3a38b9),{unitId:_0x36739b,tableId:_0x1006f3,name:_0x36abf7}=_0x80544d,_0x3b1a17=_0x5271f9[_0x54261a(0x1d4)](_0x36739b,_0x49a6be[_0x54261a(0xf9)]);if(!_0x3b1a17||!$(_0x3b1a17,_0x1006f3)||!Oa(_0x3b1a17[_0x54261a(0x32b)](),_0x36abf7,_0x1006f3)[_0x54261a(0x48b)])return!0x1;let _0x5ea47d=_0x407e76[_0x54261a(0x318)](_0x2823d6),_0x21f262=_0x407e76['get'](_0x15f92a),_0x29e010=_0x3b1a17[_0x54261a(0x32b)](),_0x14e8bf=new W()['renameTable'](_0x29e010,_0x1006f3,_0x36abf7),_0x356fd1=new z()['invertOp'](_0x29e010,_0x14e8bf),_0x523bec={'unitId':_0x36739b,'op':_0x14e8bf},_0x4970de={'unitId':_0x36739b,'op':_0x356fd1};return _0x5ea47d[_0x54261a(0x2f7)](Q['id'],_0x523bec)?(_0x5271f9[_0x54261a(0x354)](_0x36739b),_0x21f262['pushUndoRedo']({'unitID':_0x36739b,'undoMutations':[{'id':Q['id'],'params':_0x4970de}],'redoMutations':[{'id':Q['id'],'params':_0x523bec}]}),!0x0):!0x1;}},co={'id':'base.command.rename-base-view','type':_0x281ad9['COMMAND'],'handler':(_0x723d1e,_0x22df62)=>{const _0x569c5f=_0x327967;if(!_0x22df62)return!0x1;let _0x247a9e=_0x723d1e[_0x569c5f(0x318)](_0x3a38b9),{unitId:_0x75e5f7,tableId:_0x5ea481,viewId:_0x1fbe07,name:_0x1bd67e}=_0x22df62,_0x10d70f=_0x247a9e['getUnit'](_0x75e5f7,_0x49a6be[_0x569c5f(0xf9)]);if(!_0x10d70f||!$(_0x10d70f,_0x5ea481,{'viewIds':[_0x1fbe07]}))return!0x1;let _0x1e46e1=_0x723d1e['get'](_0x2823d6),_0x167606=_0x723d1e[_0x569c5f(0x318)](_0x15f92a),_0x3a6fc2=_0x10d70f['getSnapshot'](),_0x252e88=new W()[_0x569c5f(0x271)](_0x3a6fc2,_0x5ea481,_0x1fbe07,_0x1bd67e),_0x57374e=new z()['invertOp'](_0x3a6fc2,_0x252e88),_0x3a74ee={'unitId':_0x75e5f7,'op':_0x252e88},_0x49046a={'unitId':_0x75e5f7,'op':_0x57374e};return _0x1e46e1['syncExecuteCommand'](Q['id'],_0x3a74ee)?(_0x247a9e[_0x569c5f(0x354)](_0x75e5f7),_0x167606[_0x569c5f(0x244)]({'unitID':_0x75e5f7,'undoMutations':[{'id':Q['id'],'params':_0x49046a}],'redoMutations':[{'id':Q['id'],'params':_0x3a74ee}]}),!0x0):!0x1;}},lo={'id':_0x327967(0x401),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0xb028f,_0x2ed076)=>{const _0x2b0cb3=_0x327967;if(!_0x2ed076)return!0x1;let _0x1585d3=_0xb028f[_0x2b0cb3(0x318)](_0x3a38b9),{unitId:_0x5bd4d2,tableId:_0x198db8,viewId:_0x451344,fieldId:_0x57555e}=_0x2ed076,_0x5462bc=_0x1585d3[_0x2b0cb3(0x1d4)](_0x5bd4d2,_0x49a6be[_0x2b0cb3(0xf9)]);if(!_0x5462bc||!$(_0x5462bc,_0x198db8,{'viewIds':[_0x451344],'fieldIds':[_0x57555e]}))return!0x1;let _0x4dee40=_0xb028f[_0x2b0cb3(0x318)](_0x2823d6),_0xfc952=_0xb028f[_0x2b0cb3(0x318)](_0x15f92a),_0x5e92f1=_0x5462bc['getSnapshot'](),_0xa5a3d=new W()[_0x2b0cb3(0x18c)](_0x5e92f1,_0x198db8,_0x451344,{'groupFieldId':_0x57555e}),_0x54cf70=new z()[_0x2b0cb3(0x38e)](_0x5e92f1,_0xa5a3d),_0x598528={'unitId':_0x5bd4d2,'op':_0xa5a3d},_0x4d46a9={'unitId':_0x5bd4d2,'op':_0x54cf70};return _0x4dee40['syncExecuteCommand'](Q['id'],_0x598528)?(_0x1585d3[_0x2b0cb3(0x354)](_0x5bd4d2),_0xfc952[_0x2b0cb3(0x244)]({'unitID':_0x5bd4d2,'undoMutations':[{'id':Q['id'],'params':_0x4d46a9}],'redoMutations':[{'id':Q['id'],'params':_0x598528}]}),!0x0):!0x1;}},uo={'id':_0x327967(0x10c),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x1ae32c,_0x13840b)=>{const _0x167f03=_0x327967;if(!_0x13840b)return!0x1;let _0x529520=_0x1ae32c[_0x167f03(0x318)](_0x3a38b9),_0x1523a9=_0x529520[_0x167f03(0x1d4)](_0x13840b[_0x167f03(0x409)],_0x49a6be['UNIVER_BASE']);if(!_0x1523a9)return!0x1;let _0x3fb695=_0x1523a9[_0x167f03(0x32b)]()[_0x167f03(0x158)];if(_0x3fb695===_0x13840b[_0x167f03(0x158)])return!0x0;let _0x63163a=new W(),_0x55baa4=new z(),_0xfa5209=[],_0x5e13ce=[],_0x3494b4=[_0x1523a9,..._0x529520[_0x167f03(0x498)](_0x49a6be[_0x167f03(0xf9)])[_0x167f03(0x1be)](_0x12ddab=>_0x12ddab[_0x167f03(0x40a)]()!==_0x13840b[_0x167f03(0x409)])];for(let _0x24a31f of _0x3494b4){let _0x28c2e8=_0x24a31f[_0x167f03(0x32b)](),_0x14e8ef=_0x24a31f===_0x1523a9?_0x63163a[_0x167f03(0x41e)](_0x28c2e8,_0x13840b[_0x167f03(0x158)]):_0x63163a['renameFormulaUnitReferences'](_0x28c2e8,_0x3fb695,_0x13840b[_0x167f03(0x158)]);_0x14e8ef&&(_0xfa5209[_0x167f03(0x161)]({'id':Q['id'],'params':{'unitId':_0x24a31f[_0x167f03(0x40a)](),'op':_0x14e8ef,'trigger':uo['id']}}),_0x5e13ce[_0x167f03(0x245)]({'id':Q['id'],'params':{'unitId':_0x24a31f[_0x167f03(0x40a)](),'op':_0x55baa4[_0x167f03(0x38e)](_0x28c2e8,_0x14e8ef),'trigger':uo['id']}}));}let _0x178149=_0x1ae32c['get'](_0x2823d6),_0x1eaa68=_0x1ae32c[_0x167f03(0x318)](_0x15f92a),_0x5a63d0=_0x1eaa68['__tempBatchingUndoRedo'](_0x13840b['unitId']);try{return _0x4a8c31(_0xfa5209,_0x178149)[_0x167f03(0x1a1)]?(_0x529520[_0x167f03(0x354)](_0x13840b[_0x167f03(0x409)]),_0x1eaa68[_0x167f03(0x244)]({'unitID':_0x13840b[_0x167f03(0x409)],'undoMutations':_0x5e13ce,'redoMutations':_0xfa5209}),!0x0):!0x1;}finally{_0x5a63d0[_0x167f03(0x2b1)]();}}},fo={'type':_0x281ad9[_0x327967(0x23d)],'id':_0x327967(0x40c),async 'handler'(_0x2c671f,_0xa2fdac){const _0x2a4769=_0x327967;if(!_0xa2fdac||!Tr[_0x2a4769(0x45c)](_0xa2fdac[_0x2a4769(0x2b0)])||_0xa2fdac[_0x2a4769(0x136)]!==_0xa2fdac[_0x2a4769(0x409)]&&_0xa2fdac['action']!==_0x3709ae['Edit']||_0xa2fdac[_0x2a4769(0x195)]&&(![_0x2a4769(0x113),_0x2a4769(0x411),_0x2a4769(0x3fd)][_0x2a4769(0x45c)](_0xa2fdac[_0x2a4769(0x195)][_0x2a4769(0x248)])||_0xa2fdac[_0x2a4769(0x195)][_0x2a4769(0x246)]['some'](_0x4e03a8=>!Tr[_0x2a4769(0x45c)](_0x4e03a8[_0x2a4769(0x2b0)])||_0xa2fdac['objectId']!==_0xa2fdac[_0x2a4769(0x409)]&&_0x4e03a8[_0x2a4769(0x2b0)]!==_0x3709ae[_0x2a4769(0x474)])))return!0x1;let _0x43def6=Pr(_0xa2fdac[_0x2a4769(0x409)],_0xa2fdac[_0x2a4769(0x136)],_0xa2fdac['action']),_0x31f442={'unitId':_0xa2fdac['unitId'],'objectId':_0xa2fdac[_0x2a4769(0x136)],'objectType':_0x43def6[_0x2a4769(0x346)]},_0x4208f9=_0x2c671f['get'](_0x77c4ee);return _0xa2fdac[_0x2a4769(0x13b)]?await _0x4208f9[_0x2a4769(0x13b)](_0x31f442):_0xa2fdac['policy']?await _0x4208f9[_0x2a4769(0x2b8)](_0x31f442,_0xa2fdac[_0x2a4769(0x195)]):await _0x4208f9[_0x2a4769(0x17d)](_0x31f442,_0x43def6,_0xa2fdac[_0x2a4769(0x1e1)]),!0x0;}},po={'type':_0x281ad9[_0x327967(0x23d)],'id':_0x327967(0x288),async 'handler'(_0x254823,_0x95b7ae){const _0x154559=_0x327967;if(!(_0x95b7ae!=null&&_0x95b7ae[_0x154559(0x409)])||!Array[_0x154559(0x3fb)](_0x95b7ae[_0x154559(0x17c)])||!_0x95b7ae[_0x154559(0x17c)][_0x154559(0x1bf)]||_0x95b7ae[_0x154559(0x17c)][_0x154559(0x35d)](_0x32807c=>!(_0x32807c!=null&&_0x32807c[_0x154559(0x136)])||_0x32807c[_0x154559(0x136)]===_0x95b7ae['unitId']||_0x32807c[_0x154559(0x195)]!==null&&(!_0x32807c[_0x154559(0x195)]||![_0x154559(0x113),_0x154559(0x411),_0x154559(0x3fd)][_0x154559(0x45c)](_0x32807c[_0x154559(0x195)][_0x154559(0x248)])||!Array['isArray'](_0x32807c[_0x154559(0x195)][_0x154559(0x2c0)])||!Array[_0x154559(0x3fb)](_0x32807c['policy'][_0x154559(0x246)])||_0x32807c['policy']['strategies'][_0x154559(0x35d)](_0x1418c0=>_0x1418c0[_0x154559(0x2b0)]!==_0x3709ae[_0x154559(0x474)]))))throw Error(_0x154559(0x278));return _0x254823['get'](_0x77c4ee)[_0x154559(0x142)](_0x95b7ae[_0x154559(0x17c)][_0x154559(0x412)](_0x270208=>{const _0x498824=_0x154559;let _0xa8aa11=Pr(_0x95b7ae['unitId'],_0x270208[_0x498824(0x136)],_0x3709ae['Edit']);return{'unitId':_0x95b7ae['unitId'],'objectId':_0x270208['objectId'],'objectType':_0xa8aa11[_0x498824(0x346)],'policy':_0x270208[_0x498824(0x195)]};}));}};function mo(_0x27269e,_0xde827c){const _0x43c90d=_0x327967;let _0x5092a6=L(_0x2ea00f[_0x43c90d(0x3e0)](_0x27269e)),_0x2c6b49=new Map();return _0xde827c[_0x43c90d(0x29b)](_0x3e971e=>{const _0x5189c9=_0x43c90d;var _0x405e48,_0x5b38fa;let _0x46e865=_0x5189c9(0x345)in _0x3e971e?_0x3e971e[_0x5189c9(0x345)]:(_0x405e48=_0x5092a6[_0x5189c9(0x2a7)])==null?void 0x0:_0x405e48[_0x3e971e[_0x5189c9(0x124)]],_0x2671f0=_0x5189c9(0x173)in _0x3e971e?_0x3e971e['fieldId']:(_0x5b38fa=_0x5092a6[_0x5189c9(0x2ba)])==null?void 0x0:_0x5b38fa[_0x3e971e[_0x5189c9(0x36b)]],_0x3e8a90=_0x2671f0?_0x5092a6[_0x5189c9(0x305)][_0x2671f0]:void 0x0;if(!_0x46e865||!_0x2671f0||!_0x3e8a90||!_0x5092a6[_0x5189c9(0x1d7)][_0x46e865])return;let _0x3cbfb9=xt(_0x3e971e[_0x5189c9(0x1e1)],_0x3e8a90),_0xda6796=wt(_0x3e971e[_0x5189c9(0x1e1)],_0x3cbfb9,_0x3e8a90,_0x5092a6,_0x46e865),_0x26bd28=_0x2c6b49[_0x5189c9(0x318)](_0x46e865)??{};_0x26bd28[_0x2671f0]=_0xda6796,_0x2c6b49[_0x5189c9(0x3fe)](_0x46e865,_0x26bd28);}),[..._0x2c6b49]['map'](([_0x30cc5b,_0x387406])=>({'recordId':_0x30cc5b,'values':_0x387406}));}const ho={'id':_0x327967(0xe2),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x584512,_0x2039e5){const _0x99a261=_0x327967;if(!_0x2039e5)return!0x1;let _0x1567fb=_0x584512['get'](_0x3a38b9),{unitId:_0x4e538b,tableId:_0xfe89c6,patches:_0x5599c9}=_0x2039e5,_0x5a91d2=_0x1567fb[_0x99a261(0x1d4)](_0x4e538b,_0x49a6be[_0x99a261(0xf9)]);if(!_0x5a91d2||!$(_0x5a91d2,_0xfe89c6))return!0x1;let _0x21a156=_0x584512[_0x99a261(0x318)](_0x2823d6),_0x3acd=_0x584512[_0x99a261(0x318)](_0x15f92a),_0x558c4d=_0x5a91d2['getSnapshot'](),_0x959f9f=L(_0x558c4d['tables'][_0xfe89c6]),_0x275ee7=_0x5599c9[_0x99a261(0x412)](_0x5e0153=>{const _0x3a1298=_0x99a261;var _0xaa9941;return'recordId'in _0x5e0153?_0x5e0153[_0x3a1298(0x345)]:(_0xaa9941=_0x959f9f[_0x3a1298(0x2a7)])==null?void 0x0:_0xaa9941[_0x5e0153[_0x3a1298(0x124)]];})['filter'](_0xa24d56=>_0xa24d56!=null),_0x5d6d41=_0x5599c9[_0x99a261(0x412)](_0x4425d6=>{const _0x1a7f3=_0x99a261;var _0x576486;return _0x1a7f3(0x173)in _0x4425d6?_0x4425d6['fieldId']:(_0x576486=_0x959f9f['colId'])==null?void 0x0:_0x576486[_0x4425d6[_0x1a7f3(0x36b)]];})['filter'](_0x8a2941=>_0x8a2941!=null);if(_0x275ee7[_0x99a261(0x1bf)]!==_0x5599c9['length']||_0x5d6d41['length']!==_0x5599c9[_0x99a261(0x1bf)]||!$(_0x5a91d2,_0xfe89c6,{'recordIds':_0x275ee7,'fieldIds':_0x5d6d41})||_0x5599c9['some']((_0x27c025,_0x59c1b9)=>!ga(_0x5a91d2,_0xfe89c6,_0x5d6d41[_0x59c1b9],_0x27c025['value'])))return!0x1;let _0x2dd5e7=Ze(_0x959f9f,mo(_0x959f9f,_0x5599c9)),_0x4e282c=_0x5599c9['flatMap'](_0x217f48=>{const _0xc6c44f=_0x99a261;var _0x5b2d89,_0xe6d9c2;if(_0xc6c44f(0x124)in _0x217f48)return[_0x217f48];let _0x15bf12=(_0x5b2d89=_0x959f9f[_0xc6c44f(0x257)])==null?void 0x0:_0x5b2d89[_0x217f48[_0xc6c44f(0x345)]],_0x437859=(_0xe6d9c2=_0x959f9f[_0xc6c44f(0x22a)])==null?void 0x0:_0xe6d9c2[_0x217f48[_0xc6c44f(0x173)]];return _0x15bf12==null||_0x437859==null?[]:[{'row':_0x15bf12,'col':_0x437859,'value':_0x217f48[_0xc6c44f(0x1e1)]}];}),_0x4e4939=new W()[_0x99a261(0x1c0)](_0x558c4d,_0xfe89c6,_0x4e282c),_0x1dd378=new z()[_0x99a261(0x38e)](_0x558c4d,_0x4e4939),_0x2f4be1={'unitId':_0x4e538b,'op':_0x4e4939,'trigger':_0x2dd5e7[_0x99a261(0x1bf)]?ho['id']:void 0x0,'hierarchyChanges':_0x2dd5e7[_0x99a261(0x1bf)]?_0x2dd5e7:void 0x0,'source':_0x2dd5e7[_0x99a261(0x1bf)]?'redo':void 0x0},_0x4f33f9={'unitId':_0x4e538b,'op':_0x1dd378,'trigger':_0x2dd5e7['length']?ho['id']:void 0x0,'hierarchyChanges':_0x2dd5e7['length']?_0x2dd5e7[_0x99a261(0x412)](_0x3761f8=>({..._0x3761f8,'oldParentRecordId':_0x3761f8[_0x99a261(0x3a5)],'parentRecordId':_0x3761f8[_0x99a261(0x410)]})):void 0x0,'source':_0x2dd5e7[_0x99a261(0x1bf)]?_0x99a261(0x175):void 0x0},_0x218850={..._0x2f4be1,'source':_0x2dd5e7[_0x99a261(0x1bf)]?_0x2039e5[_0x99a261(0x300)]??'ui':void 0x0};return _0x21a156[_0x99a261(0x2f7)](Q['id'],_0x218850)?(_0x1567fb[_0x99a261(0x354)](_0x4e538b),_0x3acd[_0x99a261(0x244)]({'unitID':_0x4e538b,'undoMutations':[{'id':Q['id'],'params':_0x4f33f9}],'redoMutations':[{'id':Q['id'],'params':_0x2f4be1}]}),!0x0):!0x1;}},go={'id':_0x327967(0x128),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x58ac84,_0x4cac65){const _0x525ee9=_0x327967;if(!_0x4cac65)return!0x1;let _0x9cc9fb=_0x58ac84['get'](_0x3a38b9),{unitId:_0x8074ab,tableId:_0x9d808f,patches:_0x19a73a}=_0x4cac65,_0x3d6275=_0x9cc9fb['getUnit'](_0x8074ab,_0x49a6be[_0x525ee9(0xf9)]),_0x4fb316=_0x19a73a[_0x525ee9(0x412)](_0x9888ed=>_0x9888ed['recordId']),_0xda5091=_0x19a73a[_0x525ee9(0xeb)](_0x5ce8da=>Object[_0x525ee9(0x27a)](_0x5ce8da['values']));if(!_0x3d6275||!$(_0x3d6275,_0x9d808f,{'recordIds':_0x4fb316,'fieldIds':_0xda5091})||_0x19a73a[_0x525ee9(0x35d)](_0x5bd038=>Object[_0x525ee9(0x209)](_0x5bd038[_0x525ee9(0x259)])[_0x525ee9(0x35d)](([_0x411bc3,_0x59b947])=>!ga(_0x3d6275,_0x9d808f,_0x411bc3,_0x59b947))))return!0x1;let _0x2a79f9=Ze(_0x3d6275[_0x525ee9(0x32b)]()[_0x525ee9(0x486)][_0x9d808f],_0x19a73a),_0x5c7d95=_0x58ac84[_0x525ee9(0x318)](_0x2823d6),_0x4524c1=_0x58ac84[_0x525ee9(0x318)](_0x15f92a),_0x189acb=_0x58ac84[_0x525ee9(0x318)](Kr)[_0x525ee9(0x289)](_0x3d6275,_0x9d808f,_0x19a73a),_0x26501b=new z()['invertOp'](_0x3d6275[_0x525ee9(0x32b)](),_0x189acb),_0x29dae0={'unitId':_0x8074ab,'op':_0x189acb,'trigger':_0x2a79f9[_0x525ee9(0x1bf)]?go['id']:void 0x0,'hierarchyChanges':_0x2a79f9[_0x525ee9(0x1bf)]?_0x2a79f9:void 0x0,'source':_0x2a79f9['length']?_0x4cac65[_0x525ee9(0x300)]??'ui':void 0x0},_0x150405={..._0x29dae0,'source':_0x2a79f9[_0x525ee9(0x1bf)]?_0x525ee9(0x274):void 0x0},_0x151447={'unitId':_0x8074ab,'op':_0x26501b,'trigger':_0x2a79f9[_0x525ee9(0x1bf)]?go['id']:void 0x0,'hierarchyChanges':_0x2a79f9[_0x525ee9(0x1bf)]?_0x2a79f9[_0x525ee9(0x412)](_0x261dac=>({..._0x261dac,'oldParentRecordId':_0x261dac[_0x525ee9(0x3a5)],'parentRecordId':_0x261dac[_0x525ee9(0x410)]})):void 0x0,'source':_0x2a79f9[_0x525ee9(0x1bf)]?_0x525ee9(0x175):void 0x0};return _0x5c7d95[_0x525ee9(0x2f7)](Q['id'],_0x29dae0)?(_0x9cc9fb[_0x525ee9(0x354)](_0x8074ab),_0x4524c1[_0x525ee9(0x244)]({'unitID':_0x8074ab,'undoMutations':[{'id':Q['id'],'params':_0x151447}],'redoMutations':[{'id':Q['id'],'params':_0x150405}]}),!0x0):!0x1;}},_o={'id':_0x327967(0x481),'type':_0x281ad9['COMMAND'],'handler':(_0x260771,_0x266317)=>{const _0x232d89=_0x327967;if(!_0x266317)return!0x1;let {unitId:_0x4711f0,tableId:_0x1f9eb3,fieldId:_0x4512fa}=_0x266317,_0x1d2e43=_0x260771['get'](_0x3a38b9),_0x25b42c=_0x1d2e43[_0x232d89(0x1d4)](_0x4711f0,_0x49a6be['UNIVER_BASE']);if(!_0x25b42c||!$(_0x25b42c,_0x1f9eb3))return!0x1;let _0x23cd6a=_0x25b42c[_0x232d89(0x32b)](),_0x4493ff=_0x23cd6a[_0x232d89(0x486)][_0x1f9eb3];if(_0x4512fa!==null&&!F(_0x4493ff,_0x4512fa))throw new P(_0x232d89(0x421));if(qe(_0x4493ff)===_0x4512fa)return!0x0;let _0x33dbcc=new W(),_0x1680a1=R(Object[_0x232d89(0x259)](_0x4493ff[_0x232d89(0x305)])[_0x232d89(0xeb)](_0x21430b=>{const _0x41b77e=_0x232d89;if(!F(_0x4493ff,_0x21430b['id']))return[];let _0x3766d9=N(_0x21430b);if(!_0x3766d9)return[];let _0x27c4f2=_0x21430b['id']===_0x4512fa;if(_0x3766d9[_0x41b77e(0x382)]===_0x3e0df7['Parent']===_0x27c4f2)return[];let _0x43d785={..._0x21430b[_0x41b77e(0x174)],'targetTableId':_0x3766d9[_0x41b77e(0x16b)],'multiple':_0x3766d9[_0x41b77e(0x3eb)]};return _0x27c4f2?_0x43d785['relationRole']=_0x3e0df7[_0x41b77e(0x4a4)]:delete _0x43d785[_0x41b77e(0x382)],[_0x33dbcc[_0x41b77e(0x3de)](_0x23cd6a,_0x1f9eb3,_0x21430b['id'],{'config':_0x43d785})];})),_0x344bd=new z()[_0x232d89(0x38e)](_0x23cd6a,_0x1680a1),_0x44cfb8={'unitId':_0x4711f0,'op':_0x1680a1},_0x3238fd={'unitId':_0x4711f0,'op':_0x344bd};return _0x260771[_0x232d89(0x318)](_0x2823d6)['syncExecuteCommand'](Q['id'],_0x44cfb8)?(_0x1d2e43[_0x232d89(0x354)](_0x4711f0),_0x260771[_0x232d89(0x318)](_0x15f92a)[_0x232d89(0x244)]({'unitID':_0x4711f0,'undoMutations':[{'id':Q['id'],'params':_0x3238fd}],'redoMutations':[{'id':Q['id'],'params':_0x44cfb8}]}),!0x0):!0x1;}},vo={'id':'base.command.set-base-view-field-order','type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x1a2cfd,_0x2a706f)=>{const _0x9b1253=_0x327967;if(!_0x2a706f)return!0x1;let _0x96c5b9=_0x1a2cfd[_0x9b1253(0x318)](_0x3a38b9),{unitId:_0x2127a4,tableId:_0x2237c3,viewId:_0x5afce7,fieldId:_0xd3d052,target:_0x578395}=_0x2a706f,_0x10ee59=_0x96c5b9[_0x9b1253(0x1d4)](_0x2127a4,_0x49a6be['UNIVER_BASE']),_0x1ba52c=_0x578395[_0x9b1253(0x25b)]??_0x578395[_0x9b1253(0x338)];if(!_0x10ee59||!_0x1ba52c||_0x1ba52c===_0xd3d052||!$(_0x10ee59,_0x2237c3,{'viewIds':[_0x5afce7],'fieldIds':[_0xd3d052,_0x1ba52c]}))return!0x1;let _0x32d1a4=_0x10ee59[_0x9b1253(0x32b)]()[_0x9b1253(0x486)][_0x2237c3],_0x5f10f7=_0x32d1a4[_0x9b1253(0x305)][_0xd3d052],_0x5e0be6=_0x32d1a4[_0x9b1253(0x305)][_0x1ba52c];if(_0x5f10f7[_0x9b1253(0x272)]===!0x0||_0x5f10f7[_0x9b1253(0x346)]===_0x1013ad[_0x9b1253(0x212)]||_0x5e0be6[_0x9b1253(0x272)]===!0x0||_0x5e0be6[_0x9b1253(0x346)]===_0x1013ad['RecordId'])return!0x1;let _0x1c0de6=_0x1a2cfd['get'](_0x2823d6),_0x15280b=_0x1a2cfd['get'](_0x15f92a),_0x3b649f=_0x10ee59[_0x9b1253(0x32b)](),_0x582757=new W()[_0x9b1253(0x25d)](_0x3b649f,_0x2237c3,_0x5afce7,_0xd3d052,_0x578395),_0x42b6c3=new z()[_0x9b1253(0x38e)](_0x3b649f,_0x582757),_0xea819e={'unitId':_0x2127a4,'op':_0x582757},_0x5ccfe1={'unitId':_0x2127a4,'op':_0x42b6c3};return _0x1c0de6['syncExecuteCommand'](Q['id'],_0xea819e)?(_0x96c5b9[_0x9b1253(0x354)](_0x2127a4),_0x15280b[_0x9b1253(0x244)]({'unitID':_0x2127a4,'undoMutations':[{'id':Q['id'],'params':_0x5ccfe1}],'redoMutations':[{'id':Q['id'],'params':_0xea819e}]}),!0x0):!0x1;}},yo={'id':_0x327967(0x11e),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x5c4213,_0xdc68e2){const _0x1deebf=_0x327967;if(!_0xdc68e2)return!0x1;let _0x692e0c=_0x5c4213[_0x1deebf(0x318)](_0x3a38b9),{unitId:_0x4ed630,tableId:_0x2b7eb8,viewId:_0x5eb06a,fieldId:_0x5cdd17,visible:_0x147691}=_0xdc68e2,_0x556053=_0x692e0c[_0x1deebf(0x1d4)](_0x4ed630,_0x49a6be[_0x1deebf(0xf9)]);if(!_0x556053||!$(_0x556053,_0x2b7eb8,{'viewIds':[_0x5eb06a],'fieldIds':[_0x5cdd17]}))return!0x1;let _0x3c99c3=_0x556053[_0x1deebf(0x32b)]()[_0x1deebf(0x486)][_0x2b7eb8][_0x1deebf(0x305)][_0x5cdd17];if(_0x3c99c3['system']===!0x0||_0x3c99c3[_0x1deebf(0x346)]===_0x1013ad[_0x1deebf(0x212)])return!0x1;let _0x3bd86f=_0x5c4213[_0x1deebf(0x318)](_0x2823d6),_0x12305f=_0x5c4213['get'](_0x15f92a),_0x32a9a3=_0x556053[_0x1deebf(0x32b)](),_0x713b82=new W()[_0x1deebf(0x326)](_0x32a9a3,_0x2b7eb8,_0x5eb06a,_0x5cdd17,_0x147691),_0xe8a1cc=new z()['invertOp'](_0x32a9a3,_0x713b82),_0x526ffc={'unitId':_0x4ed630,'op':_0x713b82},_0x97fa55={'unitId':_0x4ed630,'op':_0xe8a1cc};return _0x3bd86f['syncExecuteCommand'](Q['id'],_0x526ffc)?(_0x692e0c[_0x1deebf(0x354)](_0x4ed630),_0x12305f[_0x1deebf(0x244)]({'unitID':_0x4ed630,'undoMutations':[{'id':Q['id'],'params':_0x97fa55}],'redoMutations':[{'id':Q['id'],'params':_0x526ffc}]}),!0x0):!0x1;}},bo={'id':_0x327967(0x3e4),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x2c211a,_0x161afb)=>{const _0xe7925d=_0x327967;if(!_0x161afb)return!0x1;let _0x4f033e=_0x2c211a[_0xe7925d(0x318)](_0x3a38b9),{unitId:_0x51e6df,tableId:_0x2c701b,viewId:_0x3d4f79,fieldId:_0x743452,width:_0x28de8b}=_0x161afb,_0x1114a3=_0x4f033e[_0xe7925d(0x1d4)](_0x51e6df,_0x49a6be[_0xe7925d(0xf9)]);if(!_0x1114a3||!$(_0x1114a3,_0x2c701b,{'viewIds':[_0x3d4f79],'fieldIds':[_0x743452]}))return!0x1;let _0x4004bd=_0x1114a3[_0xe7925d(0x32b)]()[_0xe7925d(0x486)][_0x2c701b][_0xe7925d(0x305)][_0x743452];if(_0x4004bd['system']===!0x0||_0x4004bd['type']===_0x1013ad['RecordId'])return!0x1;let _0x273ec4=_0x2c211a[_0xe7925d(0x318)](_0x2823d6),_0x2a2fcf=_0x2c211a['get'](_0x15f92a),_0x1b0860=_0x1114a3[_0xe7925d(0x32b)](),_0x4ba9e3=new W()[_0xe7925d(0x492)](_0x1b0860,_0x2c701b,_0x3d4f79,_0x743452,_0x28de8b),_0x5b0dcb=new z()[_0xe7925d(0x38e)](_0x1b0860,_0x4ba9e3),_0x23f744={'unitId':_0x51e6df,'op':_0x4ba9e3},_0x1c66a7={'unitId':_0x51e6df,'op':_0x5b0dcb};return _0x273ec4['syncExecuteCommand'](Q['id'],_0x23f744)?(_0x4f033e['focusUnit'](_0x51e6df),_0x2a2fcf['pushUndoRedo']({'unitID':_0x51e6df,'undoMutations':[{'id':Q['id'],'params':_0x1c66a7}],'redoMutations':[{'id':Q['id'],'params':_0x23f744}]}),!0x0):!0x1;}},xo={'id':_0x327967(0x215),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x200fd5,_0xe93f64)=>{const _0x5e867f=_0x327967;if(!_0xe93f64)return!0x1;let _0x182f69=_0x200fd5[_0x5e867f(0x318)](_0x3a38b9),{unitId:_0x20958b,tableId:_0x1b8ffe,viewId:_0x483ce1,filter:_0x2a1cbb}=_0xe93f64,_0x3f7c13=_0x182f69[_0x5e867f(0x1d4)](_0x20958b,_0x49a6be[_0x5e867f(0xf9)]),_0x1ab2f0=(_0x2a1cbb==null?void 0x0:_0x2a1cbb['conditions'][_0x5e867f(0x412)](_0xf89876=>_0xf89876[_0x5e867f(0x173)]))??[];if(!_0x3f7c13||!$(_0x3f7c13,_0x1b8ffe,{'viewIds':[_0x483ce1],'fieldIds':_0x1ab2f0}))return!0x1;let _0x543697=_0x200fd5['get'](_0x2823d6),_0x27dfe3=_0x200fd5[_0x5e867f(0x318)](_0x15f92a),_0x23afab=_0x3f7c13['getSnapshot'](),_0x3ae907=new W()['setViewFilter'](_0x23afab,_0x1b8ffe,_0x483ce1,_0x2a1cbb),_0x556616=new z()[_0x5e867f(0x38e)](_0x23afab,_0x3ae907),_0x384d59={'unitId':_0x20958b,'op':_0x3ae907},_0x235523={'unitId':_0x20958b,'op':_0x556616};return _0x543697[_0x5e867f(0x2f7)](Q['id'],_0x384d59)?(_0x182f69[_0x5e867f(0x354)](_0x20958b),_0x27dfe3[_0x5e867f(0x244)]({'unitID':_0x20958b,'undoMutations':[{'id':Q['id'],'params':_0x235523}],'redoMutations':[{'id':Q['id'],'params':_0x384d59}]}),!0x0):!0x1;}},So={'id':_0x327967(0x2eb),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x404685,_0x293724)=>{const _0x4538f3=_0x327967;if(!_0x293724)return!0x1;let _0x104007=_0x404685['get'](_0x3a38b9),{unitId:_0x3af44f,tableId:_0x4384b0,viewId:_0x4f4ca4,group:_0x2f4deb}=_0x293724,_0x2099c4=_0x104007[_0x4538f3(0x1d4)](_0x3af44f,_0x49a6be['UNIVER_BASE']);if(!_0x2099c4||!$(_0x2099c4,_0x4384b0,{'viewIds':[_0x4f4ca4],'fieldIds':_0x2f4deb[_0x4538f3(0x412)](_0x55c485=>_0x55c485['fieldId'])}))return!0x1;let _0x1f7f9e=_0x404685['get'](_0x2823d6),_0x383350=_0x404685[_0x4538f3(0x318)](_0x15f92a),_0x4e9956=_0x2099c4[_0x4538f3(0x32b)](),_0x49eae0=new W()[_0x4538f3(0x356)](_0x4e9956,_0x4384b0,_0x4f4ca4,_0x2f4deb),_0x45afde=new z()[_0x4538f3(0x38e)](_0x4e9956,_0x49eae0),_0x5d8122={'unitId':_0x3af44f,'op':_0x49eae0},_0x48f933={'unitId':_0x3af44f,'op':_0x45afde};return _0x1f7f9e[_0x4538f3(0x2f7)](Q['id'],_0x5d8122)?(_0x104007[_0x4538f3(0x354)](_0x3af44f),_0x383350[_0x4538f3(0x244)]({'unitID':_0x3af44f,'undoMutations':[{'id':Q['id'],'params':_0x48f933}],'redoMutations':[{'id':Q['id'],'params':_0x5d8122}]}),!0x0):!0x1;}},Co={'id':_0x327967(0x1af),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x89ca2a,_0x40eafe)=>{const _0x5f268a=_0x327967;if(!_0x40eafe)return!0x1;let _0x2365f2=_0x89ca2a[_0x5f268a(0x318)](_0x3a38b9),{unitId:_0x47df24,tableId:_0x594df6,viewId:_0x3abf93,sort:_0x49bc04}=_0x40eafe,_0x4b65e9=_0x2365f2[_0x5f268a(0x1d4)](_0x47df24,_0x49a6be['UNIVER_BASE']);if(!_0x4b65e9||!$(_0x4b65e9,_0x594df6,{'viewIds':[_0x3abf93],'fieldIds':_0x49bc04[_0x5f268a(0x412)](_0x1718a1=>_0x1718a1[_0x5f268a(0x173)])}))return!0x1;let _0x3b9340=_0x89ca2a[_0x5f268a(0x318)](_0x2823d6),_0x38d003=_0x89ca2a[_0x5f268a(0x318)](_0x15f92a),_0x2030b6=_0x4b65e9['getSnapshot'](),_0x2edf91=new W()['setViewSort'](_0x2030b6,_0x594df6,_0x3abf93,_0x49bc04),_0x401fd6=new z()[_0x5f268a(0x38e)](_0x2030b6,_0x2edf91),_0x2328a3={'unitId':_0x47df24,'op':_0x2edf91},_0x317611={'unitId':_0x47df24,'op':_0x401fd6};return _0x3b9340['syncExecuteCommand'](Q['id'],_0x2328a3)?(_0x2365f2[_0x5f268a(0x354)](_0x47df24),_0x38d003[_0x5f268a(0x244)]({'unitID':_0x47df24,'undoMutations':[{'id':Q['id'],'params':_0x317611}],'redoMutations':[{'id':Q['id'],'params':_0x2328a3}]}),!0x0):!0x1;}},wo={'id':_0x327967(0x314),'type':_0x281ad9['COMMAND'],'handler'(_0x43e271,_0x4d79ad){const _0x2d971e=_0x327967;if(!_0x4d79ad)return!0x1;let _0x1e95e5=_0x43e271['get'](_0x3a38b9),{unitId:_0x21467d,tableId:_0x4bb41c,recordId:_0x16eacc,fieldId:_0x3a870f,value:_0x555506}=_0x4d79ad,_0x391219=_0x1e95e5[_0x2d971e(0x1d4)](_0x21467d,_0x49a6be[_0x2d971e(0xf9)]);if(!_0x391219||!$(_0x391219,_0x4bb41c,{'recordIds':[_0x16eacc],'fieldIds':[_0x3a870f]})||!ga(_0x391219,_0x4bb41c,_0x3a870f,_0x555506))return!0x1;let _0x539c35=_0x391219['getSnapshot']()[_0x2d971e(0x486)][_0x4bb41c],_0x46c6ae=F(_0x539c35,_0x3a870f)&&Xe(_0x539c35)[_0x2d971e(0x45c)](_0x3a870f),_0x50566d=_0x46c6ae?tt(_0x539c35,_0x3a870f):null,_0xcd8904=(_0x50566d==null?void 0x0:_0x50566d[_0x2d971e(0x47c)][_0x2d971e(0x318)](_0x16eacc))??null,_0x240081=_0x46c6ae?Le(_0x555506)[0x0]??null:null;if(_0x50566d){if(_0x240081&&!_0x539c35[_0x2d971e(0x1d7)][_0x240081])throw new P(_0x2d971e(0x3bd));let _0x387f95=it(_0x50566d,_0x16eacc,_0x240081);if(!_0x387f95[_0x2d971e(0x48b)])throw new P(_0x387f95[_0x2d971e(0x3bf)]===_0x240c41[_0x2d971e(0x38b)]?_0x2d971e(0x43b):_0x387f95['reason']===_0x240c41[_0x2d971e(0x2d8)]?_0x2d971e(0x403):_0x2d971e(0x231));}let _0x35b470=_0x43e271[_0x2d971e(0x318)](_0x2823d6),_0x1b61ba=_0x43e271[_0x2d971e(0x318)](_0x15f92a),_0x1f6e6e=_0x43e271[_0x2d971e(0x318)](Kr),_0x345cc8;try{_0x345cc8=_0x1f6e6e[_0x2d971e(0x3a0)](_0x391219,_0x4bb41c,_0x16eacc,_0x3a870f,_0x555506);}catch(_0x258887){return console[_0x2d971e(0x313)](_0x2d971e(0xf1),_0x258887),!0x1;}let _0x10cd3e=new z()[_0x2d971e(0x38e)](_0x391219[_0x2d971e(0x32b)](),_0x345cc8),_0x41b574=_0x46c6ae&&_0xcd8904!==_0x240081?[{'tableId':_0x4bb41c,'fieldId':_0x3a870f,'recordId':_0x16eacc,'oldParentRecordId':_0xcd8904,'parentRecordId':_0x240081}]:void 0x0,_0x33120d={'unitId':_0x21467d,'op':_0x345cc8,'trigger':_0x41b574?wo['id']:void 0x0,'hierarchyChanges':_0x41b574,'source':_0x41b574?_0x4d79ad[_0x2d971e(0x300)]??'ui':void 0x0},_0x27ca6c={..._0x33120d,'source':_0x41b574?'redo':void 0x0},_0x1b6e65={'unitId':_0x21467d,'op':_0x10cd3e,'trigger':_0x41b574?wo['id']:void 0x0,'hierarchyChanges':_0x41b574==null?void 0x0:_0x41b574[_0x2d971e(0x412)](_0x4e7ef9=>({..._0x4e7ef9,'oldParentRecordId':_0x4e7ef9[_0x2d971e(0x3a5)],'parentRecordId':_0x4e7ef9[_0x2d971e(0x410)]})),'source':_0x41b574?'undo':void 0x0};return _0x35b470['syncExecuteCommand'](Q['id'],_0x33120d)?(_0x1e95e5[_0x2d971e(0x354)](_0x21467d),_0x1b61ba[_0x2d971e(0x244)]({'unitID':_0x21467d,'undoMutations':[{'id':Q['id'],'params':_0x1b6e65}],'redoMutations':[{'id':Q['id'],'params':_0x27ca6c}]}),!0x0):!0x1;}},To={'id':_0x327967(0x1fa),'type':_0x281ad9[_0x327967(0x23d)],'handler'(_0x4729f1,_0xac28e6){const _0x526ee9=_0x327967;if(!_0xac28e6)return!0x1;let _0x5b9b9a=_0x4729f1[_0x526ee9(0x318)](_0x3a38b9),{unitId:_0xb3bd44,tableId:_0x2985ae,fieldId:_0x2d5e1b}=_0xac28e6,_0xc9847e=_0x5b9b9a['getUnit'](_0xb3bd44,_0x49a6be[_0x526ee9(0xf9)]);if(!_0xc9847e||!$(_0xc9847e,_0x2985ae,{'fieldIds':[_0x2d5e1b]}))return!0x1;let _0x302fea=_0x4729f1[_0x526ee9(0x318)](_0x2823d6),_0x11ca5c=_0x4729f1[_0x526ee9(0x318)](_0x15f92a),_0x5a8679=_0xc9847e[_0x526ee9(0x32b)](),_0x318dec=_0xac28e6['description'][_0x526ee9(0x140)](),_0x344741=new W()[_0x526ee9(0x3de)](_0x5a8679,_0x2985ae,_0x2d5e1b,{'description':_0x318dec}),_0x6c85d1=new z()[_0x526ee9(0x38e)](_0xc9847e['getSnapshot'](),_0x344741),_0x27e828={'unitId':_0xb3bd44,'op':_0x344741},_0x535352={'unitId':_0xb3bd44,'op':_0x6c85d1};return _0x302fea[_0x526ee9(0x2f7)](Q['id'],_0x27e828)?(_0x5b9b9a['focusUnit'](_0xb3bd44),_0x11ca5c[_0x526ee9(0x244)]({'unitID':_0xb3bd44,'undoMutations':[{'id':Q['id'],'params':_0x535352}],'redoMutations':[{'id':Q['id'],'params':_0x27e828}]}),!0x0):!0x1;}},Eo={'id':_0x327967(0x11f),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x28ec39,_0xa2c6ec)=>{const _0x2b2b8b=_0x327967;if(!_0xa2c6ec)return!0x1;let _0x52397d=_0x28ec39[_0x2b2b8b(0x318)](_0x3a38b9),{unitId:_0x2f7446,tableId:_0x5b9332,fieldId:_0x235030,patch:_0x39dd93}=_0xa2c6ec,_0x163329=_0x52397d[_0x2b2b8b(0x1d4)](_0x2f7446,_0x49a6be[_0x2b2b8b(0xf9)]);if(!_0x163329||_0x235030===_0x40fc9d||!$(_0x163329,_0x5b9332,{'fieldIds':[_0x235030]}))return!0x1;let _0x4f8a86=_0x28ec39[_0x2b2b8b(0x318)](_0x2823d6),_0x2cdbdc=_0x28ec39[_0x2b2b8b(0x318)](_0x15f92a),_0x237df5=_0x163329[_0x2b2b8b(0x32b)]();if(!ha(_0x163329,_0x5b9332,{..._0x237df5['tables'][_0x5b9332]['fields'][_0x235030],..._0x39dd93}))return!0x1;let _0x4ff35f=new W()[_0x2b2b8b(0x3de)](_0x237df5,_0x5b9332,_0x235030,_0x39dd93),_0x290dc0=new z()[_0x2b2b8b(0x38e)](_0x237df5,_0x4ff35f),_0x27fc70={'unitId':_0x2f7446,'op':_0x4ff35f},_0x1cfb24={'unitId':_0x2f7446,'op':_0x290dc0};return _0x4f8a86['syncExecuteCommand'](Q['id'],_0x27fc70)?(_0x52397d['focusUnit'](_0x2f7446),_0x2cdbdc[_0x2b2b8b(0x244)]({'unitID':_0x2f7446,'undoMutations':[{'id':Q['id'],'params':_0x1cfb24}],'redoMutations':[{'id':Q['id'],'params':_0x27fc70}]}),!0x0):!0x1;}},Do={'id':_0x327967(0x359),'type':_0x281ad9['COMMAND'],'handler':(_0x3c67b2,_0x14c61f)=>{const _0x314ce8=_0x327967;if(!_0x14c61f)return!0x1;let _0x5ddd08=_0x3c67b2[_0x314ce8(0x318)](_0x3a38b9),{unitId:_0x44bbaf,tableId:_0x5bf869,viewId:_0x113d49,patch:_0x186183}=_0x14c61f,_0x278f95=_0x5ddd08[_0x314ce8(0x1d4)](_0x44bbaf,_0x49a6be[_0x314ce8(0xf9)]);if(!_0x278f95||!$(_0x278f95,_0x5bf869,{'viewIds':[_0x113d49]}))return!0x1;let _0x36bc72=_0x3c67b2[_0x314ce8(0x318)](_0x2823d6),_0x4d7c64=_0x3c67b2['get'](_0x15f92a),_0x1bf30e=_0x278f95[_0x314ce8(0x32b)](),_0xf88110=new W()['updateViewConfig'](_0x1bf30e,_0x5bf869,_0x113d49,_0x186183),_0x2b5768=new z()[_0x314ce8(0x38e)](_0x1bf30e,_0xf88110),_0x15ea55={'unitId':_0x44bbaf,'op':_0xf88110},_0x4f283d={'unitId':_0x44bbaf,'op':_0x2b5768};return _0x36bc72[_0x314ce8(0x2f7)](Q['id'],_0x15ea55)?(_0x5ddd08['focusUnit'](_0x44bbaf),_0x4d7c64[_0x314ce8(0x244)]({'unitID':_0x44bbaf,'undoMutations':[{'id':Q['id'],'params':_0x4f283d}],'redoMutations':[{'id':Q['id'],'params':_0x15ea55}]}),!0x0):!0x1;}},Oo={'id':_0x327967(0x1b9),'type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x53f030,_0x327d61)=>{const _0x54173e=_0x327967;if(!_0x327d61)return!0x1;let _0x3ce4d5=_0x53f030['get'](_0x3a38b9),{unitId:_0x1ff8f2,tableId:_0x3d97e7,recordId:_0x52d1a6,orderKey:_0x56dee7}=_0x327d61,_0x4e2afb=_0x3ce4d5[_0x54173e(0x1d4)](_0x1ff8f2,_0x49a6be[_0x54173e(0xf9)]);if(!_0x4e2afb||!$(_0x4e2afb,_0x3d97e7,{'recordIds':[_0x52d1a6]}))return!0x1;let _0x356764=_0x53f030[_0x54173e(0x318)](_0x2823d6),_0x3e2580=_0x53f030[_0x54173e(0x318)](_0x15f92a),_0x575bd4=_0x4e2afb[_0x54173e(0x32b)](),_0x117b52=new W()[_0x54173e(0x19e)](_0x575bd4,_0x3d97e7,_0x52d1a6,_0x56dee7),_0x4e2154=new z()[_0x54173e(0x38e)](_0x575bd4,_0x117b52),_0x336447={'unitId':_0x1ff8f2,'op':_0x117b52},_0x5ad532={'unitId':_0x1ff8f2,'op':_0x4e2154};return _0x356764['syncExecuteCommand'](Q['id'],_0x336447)?(_0x3ce4d5[_0x54173e(0x354)](_0x1ff8f2),_0x3e2580['pushUndoRedo']({'unitID':_0x1ff8f2,'undoMutations':[{'id':Q['id'],'params':_0x5ad532}],'redoMutations':[{'id':Q['id'],'params':_0x336447}]}),!0x0):!0x1;}};let ko=function(_0x3f6af1){const _0x14bb19=_0x327967;return _0x3f6af1[_0x14bb19(0x329)]=_0x14bb19(0x3fe),_0x3f6af1['Add']='add',_0x3f6af1[_0x14bb19(0x2a3)]=_0x14bb19(0x253),_0x3f6af1[_0x14bb19(0x370)]=_0x14bb19(0x2fa),_0x3f6af1;}({});const Ao={'id':'base.command.update-base-view-conditional-color-rules','type':_0x281ad9[_0x327967(0x23d)],'handler':(_0x220daa,_0x891fdb)=>{const _0x39bd06=_0x327967;var _0x4b6302;if(!_0x891fdb)return!0x1;let _0x407d11=_0x220daa['get'](_0x3a38b9),_0x17c8ce=_0x407d11['getUnit'](_0x891fdb[_0x39bd06(0x409)],_0x49a6be[_0x39bd06(0xf9)]);if(!_0x17c8ce||!$(_0x17c8ce,_0x891fdb[_0x39bd06(0x19a)],{'viewIds':[_0x891fdb[_0x39bd06(0x2d0)]]}))return!0x1;let _0x4d6d6c=_0x17c8ce[_0x39bd06(0x32b)](),_0x5b63a8=_0x4d6d6c[_0x39bd06(0x486)][_0x891fdb['tableId']],_0xfa2ba2=jo(((_0x4b6302=_0x5b63a8[_0x39bd06(0x1eb)][_0x891fdb['viewId']][_0x39bd06(0x174)]['conditionalColoring'])==null?void 0x0:_0x4b6302[_0x39bd06(0x21a)])??[],_0x891fdb);if(!_0xfa2ba2)return!0x1;Mo(_0x5b63a8,_0xfa2ba2);let _0x2f14a2=new W()[_0x39bd06(0x18c)](_0x4d6d6c,_0x891fdb[_0x39bd06(0x19a)],_0x891fdb['viewId'],{'conditionalColoring':_0xfa2ba2[_0x39bd06(0x1bf)]?{'rules':_0xfa2ba2}:null}),_0x1a8e0d=new z()['invertOp'](_0x4d6d6c,_0x2f14a2),_0x6acd4c={'unitId':_0x891fdb[_0x39bd06(0x409)],'op':_0x2f14a2},_0x5231b8={'unitId':_0x891fdb[_0x39bd06(0x409)],'op':_0x1a8e0d};return _0x220daa[_0x39bd06(0x318)](_0x2823d6)[_0x39bd06(0x2f7)](Q['id'],_0x6acd4c)?(_0x407d11[_0x39bd06(0x354)](_0x891fdb[_0x39bd06(0x409)]),_0x220daa[_0x39bd06(0x318)](_0x15f92a)[_0x39bd06(0x244)]({'unitID':_0x891fdb[_0x39bd06(0x409)],'undoMutations':[{'id':Q['id'],'params':_0x5231b8}],'redoMutations':[{'id':Q['id'],'params':_0x6acd4c}]}),!0x0):!0x1;}};function jo(_0x597c41,_0x1a324c){const _0x3ada3e=_0x327967;switch(_0x1a324c[_0x3ada3e(0x346)]){case _0x3ada3e(0x3fe):return _0x2ea00f[_0x3ada3e(0x3e0)](_0x1a324c[_0x3ada3e(0x21a)]);case _0x3ada3e(0x12e):return[..._0x2ea00f[_0x3ada3e(0x3e0)](_0x597c41),_0x2ea00f[_0x3ada3e(0x3e0)](_0x1a324c[_0x3ada3e(0x44d)])];case'delete':{let _0x4723e7=_0x597c41['filter'](_0x5af91b=>_0x5af91b['id']!==_0x1a324c[_0x3ada3e(0x2d6)]);return _0x4723e7[_0x3ada3e(0x1bf)]===_0x597c41[_0x3ada3e(0x1bf)]?null:_0x2ea00f[_0x3ada3e(0x3e0)](_0x4723e7);}case'clear':return _0x597c41[_0x3ada3e(0x1bf)]?[]:null;}}function Mo(_0x5d5d2c,_0x34d942){const _0x4b30a8=_0x327967;if(!Array[_0x4b30a8(0x3fb)](_0x34d942))throw TypeError(_0x4b30a8(0x424));let _0x294710=new Set();for(let [_0x3d0582,_0x3fb4ab]of _0x34d942[_0x4b30a8(0x209)]())Po(_0x5d5d2c,_0x3fb4ab,No(_0x3fb4ab,_0x3d0582,_0x294710));}function No(_0x153d89,_0xa9b1fe,_0x15ce74){const _0x5a6a3b=_0x327967;if(!_0x153d89||typeof _0x153d89!=_0x5a6a3b(0x3d8))throw TypeError(_0x5a6a3b(0x2bf)+_0xa9b1fe+_0x5a6a3b(0x261));let _0x26d1ce=typeof _0x153d89['id']==_0x5a6a3b(0x2a0)&&_0x153d89['id'][_0x5a6a3b(0x140)]()?'\x22'+_0x153d89['id']+'\x22':_0x5a6a3b(0x301)+_0xa9b1fe;if(typeof _0x153d89['id']!='string'||!_0x153d89['id'][_0x5a6a3b(0x140)]())throw Error(_0x5a6a3b(0x21e)+_0x26d1ce+_0x5a6a3b(0x40f));if(_0x15ce74['has'](_0x153d89['id']))throw Error(_0x5a6a3b(0x182)+_0x153d89['id']+'\x22.');_0x15ce74[_0x5a6a3b(0x12e)](_0x153d89['id']);let _0x4efcc8=typeof _0x153d89[_0x5a6a3b(0x233)]=='string'&&_0x153d89['color']['trim']()?new _0x377ff1(_0x153d89[_0x5a6a3b(0x233)]):null;if(!(_0x4efcc8!=null&&_0x4efcc8[_0x5a6a3b(0x1e4)]))throw Error(_0x5a6a3b(0x21e)+_0x26d1ce+_0x5a6a3b(0x47e));return _0x26d1ce;}function Po(_0x278625,_0x2981c2,_0x1e9237){const _0x24492f=_0x327967;let _0x27abae=new Set(Object['values'](_0x49363a)),_0x2f9dd6=new Set(Object[_0x24492f(0x259)](_0x4710de)),_0x40a646=new Set(Object[_0x24492f(0x259)](_0x1467aa));if(!_0x27abae[_0x24492f(0x103)](_0x2981c2[_0x24492f(0x469)]))throw Error(_0x24492f(0x21e)+_0x1e9237+'\x20has\x20unsupported\x20target\x20\x22'+String(_0x2981c2[_0x24492f(0x469)])+'\x22.');let _0x5ee588=typeof _0x2981c2[_0x24492f(0x173)]=='string'?_0x278625[_0x24492f(0x305)][_0x2981c2[_0x24492f(0x173)]]:void 0x0;if(!_0x5ee588||_0x5ee588[_0x24492f(0x272)]===!0x0||_0x5ee588['type']===_0x1013ad[_0x24492f(0x212)])throw Error(_0x24492f(0x21e)+_0x1e9237+_0x24492f(0x477)+String(_0x2981c2[_0x24492f(0x173)])+'\x22.');if(!_0x2f9dd6[_0x24492f(0x103)](_0x2981c2[_0x24492f(0xfb)]))throw Error(_0x24492f(0x21e)+_0x1e9237+_0x24492f(0x208)+String(_0x2981c2['operator'])+'\x22.');if(_0x2981c2[_0x24492f(0x365)]!==void 0x0&&!_0x40a646[_0x24492f(0x103)](_0x2981c2[_0x24492f(0x365)]))throw Error(_0x24492f(0x21e)+_0x1e9237+'\x20has\x20unsupported\x20date\x20mode\x20\x22'+String(_0x2981c2[_0x24492f(0x365)])+'\x22.');if(_0x2981c2['target']===_0x49363a[_0x24492f(0x18e)])return;let _0x2f14a1=vn(_0x5ee588[_0x24492f(0x346)]);if(!_0x2f14a1[_0x24492f(0x45c)](_0x2981c2[_0x24492f(0xfb)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1e9237+'\x20cannot\x20use\x20operator\x20\x22'+_0x2981c2['operator']+_0x24492f(0x1aa)+_0x5ee588[_0x24492f(0x346)]+_0x24492f(0x13a)+_0x2f14a1['join'](',\x20')+'.');if(_0x2981c2['dateMode']!==void 0x0&&!yn(_0x5ee588[_0x24492f(0x346)]))throw Error('[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20'+_0x1e9237+'\x20can\x20use\x20dateMode\x20only\x20with\x20Date,\x20CreatedAt,\x20or\x20UpdatedAt\x20fields.');}const Fo={'id':_0x327967(0x281),'type':_0x281ad9['COMMAND'],'handler':(_0x54215b,_0xb21f21)=>{const _0x50496e=_0x327967;if(!_0xb21f21)return!0x1;let _0x5f0a87=_0x54215b[_0x50496e(0x318)](_0x3a38b9),{unitId:_0x33254b,tableId:_0x3ae027,viewId:_0x1434f3,patch:_0x3d47ce}=_0xb21f21,_0x5f4705=_0x5f0a87[_0x50496e(0x1d4)](_0x33254b,_0x49a6be['UNIVER_BASE']);if(!_0x5f4705||!$(_0x5f4705,_0x3ae027,{'viewIds':[_0x1434f3]}))return!0x1;let _0x5c2d24=_0x54215b[_0x50496e(0x318)](_0x2823d6),_0x3b194a=_0x54215b[_0x50496e(0x318)](_0x15f92a),_0x41f1d6=_0x5f4705[_0x50496e(0x32b)](),_0x4f8cfe=new W()[_0x50496e(0x18c)](_0x41f1d6,_0x3ae027,_0x1434f3,_0x3d47ce),_0x2613de=new z()['invertOp'](_0x41f1d6,_0x4f8cfe),_0x109078={'unitId':_0x33254b,'op':_0x4f8cfe},_0x74b4c5={'unitId':_0x33254b,'op':_0x2613de};return _0x5c2d24['syncExecuteCommand'](Q['id'],_0x109078)?(_0x5f0a87['focusUnit'](_0x33254b),_0x3b194a['pushUndoRedo']({'unitID':_0x33254b,'undoMutations':[{'id':Q['id'],'params':_0x74b4c5}],'redoMutations':[{'id':Q['id'],'params':_0x109078}]}),!0x0):!0x1;}},Io={'id':'base.command.validate-formula','type':_0x281ad9['COMMAND'],'handler'(_0x59410e,_0x59ae5d){const _0x2c0d01=_0x327967;if(!_0x59ae5d)return{'valid':!0x1,'reason':'[BaseFormula]:\x20validation\x20parameters\x20are\x20required.'};let _0x1a7ccf=_0x59410e[_0x2c0d01(0x318)](_0x3a38b9)[_0x2c0d01(0x1d4)](_0x59ae5d[_0x2c0d01(0x409)],_0x49a6be[_0x2c0d01(0xf9)]),_0x1506bc=_0x1a7ccf==null?void 0x0:_0x1a7ccf[_0x2c0d01(0x32b)](),_0x3847e8=_0x1506bc==null?void 0x0:_0x1506bc[_0x2c0d01(0x486)][_0x59ae5d[_0x2c0d01(0x19a)]];return!_0x1506bc||!_0x3847e8?{'valid':!0x1,'reason':'[BaseFormula]:\x20table\x20does\x20not\x20exist.'}:new Xi()['validateFormula'](_0x59ae5d[_0x2c0d01(0x377)],_0x3847e8,{'snapshot':_0x1506bc});}};let Lo=class extends _0x58664a{constructor(_0x52e841){const _0x4f7cfa=_0x327967;super(_0x52e841,'BASE_OBJECT_PERMISSION_PLUGIN',_0x49a6be[_0x4f7cfa(0xf9)],[_0x230625[_0x4f7cfa(0x312)],_0x230625[_0x4f7cfa(0x262)],_0x230625[_0x4f7cfa(0x163)],_0x230625[_0x4f7cfa(0x232)],_0x230625[_0x4f7cfa(0x27d)]]);}};Lo=X([Y(0x0,_0x2a6b91)],Lo);const Ro={'id':_0x327967(0x415),'type':_0x281ad9[_0x327967(0x48e)],'handler':(_0xad5604,_0x51788d)=>!_0x51788d||!_0xad5604[_0x327967(0x318)](_0x3a38b9)[_0x327967(0x1d4)](_0x51788d[_0x327967(0x409)],_0x49a6be[_0x327967(0xf9)])?!0x1:_0xad5604[_0x327967(0x318)](Lo)[_0x327967(0x374)](_0x51788d['unitId'],_0x51788d[_0x327967(0x197)],_0x51788d[_0x327967(0x136)],_0x51788d['rule'])},zo={'id':_0x327967(0x20b),'type':_0x281ad9[_0x327967(0x48e)],'handler':(_0x12f99a,_0x5703a2)=>!_0x5703a2||!_0x12f99a['get'](_0x3a38b9)[_0x327967(0x1d4)](_0x5703a2['unitId'],_0x49a6be[_0x327967(0xf9)])?!0x1:_0x12f99a[_0x327967(0x318)](Lo)[_0x327967(0x28e)](_0x5703a2[_0x327967(0x409)],_0x5703a2[_0x327967(0x21a)])};function Bo(_0x51c3d7){const _0x50289d=_0x327967;let _0x5d708b=_0x51c3d7['now']??Date[_0x50289d(0xfa)](),_0xb4341e=_0x51c3d7[_0x50289d(0x44a)]??_0x51c3d7['id']+_0x50289d(0x1bb),_0x47febc=_0x51c3d7[_0x50289d(0x35e)]??_0x51c3d7['id']+_0x50289d(0x237),_0x447d99=_0x51c3d7[_0x50289d(0x2a1)]??0x0,_0x5c14a6=_0x529243(),_0xaf75ee={'id':_0xb4341e,'name':_0x51c3d7[_0x50289d(0x225)]??'Name','type':_0x1013ad[_0x50289d(0x2cb)],'config':{'placeholder':_0x50289d(0xfd)}},_0x22ef6d={},_0x2863ff=[],_0x1e97c6={},_0x42e23e={},_0x588d69={};for(let _0x105f3c=0x0;_0x105f3c<_0x447d99;_0x105f3c++){let _0x1a11c3=_0x51c3d7['id']+_0x50289d(0x14f)+(_0x105f3c+0x1);_0x22ef6d[_0x1a11c3]={'id':_0x1a11c3,'values':{[_0x40fc9d]:_0x1a11c3,..._0x51c3d7['recordNamePrefix']?{[_0xb4341e]:_0x51c3d7[_0x50289d(0x2fc)]+'\x20'+(_0x105f3c+0x1)}:{}},'orderKey':String(_0x105f3c+0x1)[_0x50289d(0x1cd)](0x4,'0'),'createdAt':_0x5d708b,'updatedAt':_0x5d708b},_0x2863ff['push'](_0x1a11c3),_0x1e97c6[_0x1a11c3]=_0x105f3c,_0x42e23e[_0x105f3c]=_0x1a11c3,_0x588d69[_0x105f3c]={0x0:{'v':_0x1a11c3,'t':_0x556bff[_0x50289d(0x334)]}},_0x51c3d7[_0x50289d(0x2fc)]&&(_0x588d69[_0x105f3c][0x1]={'v':_0x51c3d7['recordNamePrefix']+'\x20'+(_0x105f3c+0x1),'t':_0x556bff[_0x50289d(0x334)]});}let _0xb5eeef={'id':_0x47febc,'tableId':_0x51c3d7['id'],'name':'Grid','type':_0x3dd96c[_0x50289d(0xdc)],'fieldOrder':[_0x40fc9d,_0xb4341e],'fieldSettings':{[_0x40fc9d]:{'hidden':!0x0}},'config':{'frozenFieldCount':0x1}};return{'id':_0x51c3d7['id'],'name':_0x51c3d7[_0x50289d(0x158)],'primaryFieldId':_0xb4341e,'fieldOrder':[_0x40fc9d,_0xb4341e],'fields':{[_0x40fc9d]:_0x5c14a6,[_0xb4341e]:_0xaf75ee},'records':_0x22ef6d,'recordOrder':_0x2863ff,'rowIndex':_0x1e97c6,'rowId':_0x42e23e,'colIndex':{[_0x40fc9d]:0x0,[_0xb4341e]:0x1},'colId':{0x0:_0x40fc9d,0x1:_0xb4341e},'cellData':_0x588d69,'views':{[_0x47febc]:_0xb5eeef},'viewOrder':[_0x47febc]};}const Vo=_0x327967(0x2b7);function Ho(_0xf1e471){const _0x5b3a15=_0x327967;let _0x4cd33c=Bo({'id':_0xf1e471[_0x5b3a15(0x21b)],'name':_0xf1e471['name']??_0xf1e471[_0x5b3a15(0x239)],'recordCount':0x0});return{..._0x4cd33c,'resources':{..._0x4cd33c[_0x5b3a15(0x2b3)]??{},[Vo]:Go(_0xf1e471)}};}function Uo(_0x493d20){const _0x4ffb75=_0x327967;return{'id':Q['id'],'params':{'unitId':_0x493d20[_0x4ffb75(0x409)],'op':_0x43163e[_0x4ffb75(0x346)][_0x4ffb75(0x13d)](_0x43163e[_0x4ffb75(0xf4)]([_0x4ffb75(0x486),_0x493d20['table']['id']],_0x493d20[_0x4ffb75(0x496)]),_0x43163e[_0x4ffb75(0xf4)](['tableOrder',_0x493d20[_0x4ffb75(0x1b6)]??_0x493d20[_0x4ffb75(0x484)]['tableOrder'][_0x4ffb75(0x1bf)]],_0x493d20['table']['id'])),'trigger':_0x4ffb75(0x385)}};}function Wo(_0x55ab13){const _0x1e42f1=_0x327967;let _0x509065=_0x55ab13[_0x1e42f1(0x484)]['tableOrder'][_0x1e42f1(0x1c5)](_0x55ab13[_0x1e42f1(0x19a)]);if(!(!_0x55ab13['snapshot'][_0x1e42f1(0x486)][_0x55ab13[_0x1e42f1(0x19a)]]||_0x509065<0x0))return{'id':Q['id'],'params':{'unitId':_0x55ab13[_0x1e42f1(0x409)],'op':_0x43163e[_0x1e42f1(0x346)][_0x1e42f1(0x13d)](_0x43163e[_0x1e42f1(0x3e5)]([_0x1e42f1(0x486),_0x55ab13[_0x1e42f1(0x19a)]],_0x55ab13[_0x1e42f1(0x484)][_0x1e42f1(0x486)][_0x55ab13[_0x1e42f1(0x19a)]]),_0x43163e[_0x1e42f1(0x3e5)](['tableOrder',_0x509065],_0x55ab13[_0x1e42f1(0x19a)])),'trigger':'embed-ui'}};}function Go(_0x484098){const _0x57e5ee=_0x327967;return{'version':0x1,'embedId':_0x484098[_0x57e5ee(0x239)],'hostAnchorId':_0x484098[_0x57e5ee(0x21b)],'childUnitId':_0x484098[_0x57e5ee(0x425)],'childType':_0x484098['childType']};}function Ko(_0x3bbb9e){const _0x4872c3=_0x327967;let _0x4972d3=Math[_0x4872c3(0x31a)](0x0,Number(_0x3bbb9e[_0x4872c3(0x43e)]??0x0)),_0x13cd1a=_0x3bbb9e[_0x4872c3(0x1ef)]===!0x1?'0':_0x4872c3(0x2be),_0x12e813=_0x4972d3?'.'+'0'[_0x4872c3(0x219)](_0x4972d3):'',_0x19a521=Jo(_0x3bbb9e[_0x4872c3(0x3b6)]);return''+(_0x3bbb9e[_0x4872c3(0x497)]?Yo(_0x3bbb9e['currencySymbol']):'')+_0x13cd1a+_0x12e813+_0x19a521;}function qo(_0xaa042c,_0x456f54){const _0x5a4909=_0x327967;let _0x586809=Ko(_0x456f54),_0x3ebb52=_0x50b573[_0x5a4909(0x493)](_0x586809,_0xaa042c,{'throws':!0x1});return Xo(String(_0x3ebb52),_0x456f54[_0x5a4909(0x480)],_0x456f54[_0x5a4909(0x200)]);}function Jo(_0x368630){const _0x1d450c=_0x327967;return _0x368630==='K'?_0x1d450c(0x473):_0x368630==='M'?',,\x22M\x22':_0x368630==='B'?',,,\x22B\x22':'';}function Yo(_0x9adabe){const _0x4355c7=_0x327967;return/^[A-Z]+$/i[_0x4355c7(0x3e2)](_0x9adabe)?'\x22'+_0x9adabe+'\x22':_0x9adabe;}function Xo(_0xb06c57,_0x1f0ed8,_0x2f9b54){const _0x55e4ee=_0x327967;let _0x3bc7b0=_0x1f0ed8===_0x55e4ee(0xea)?Zo(_0x2f9b54):_0x1f0ed8;return _0x3bc7b0===_0x55e4ee(0x3c6)?_0xb06c57[_0x55e4ee(0x42d)](/,/g,'\x00')[_0x55e4ee(0x42d)](/\./g,',')[_0x55e4ee(0x42d)](/\0/g,'.'):_0x3bc7b0===_0x55e4ee(0x28a)?_0xb06c57[_0x55e4ee(0x42d)](/,/g,'\x20')[_0x55e4ee(0x42d)](/\./g,','):_0x3bc7b0===_0x55e4ee(0x31d)?_0xb06c57['replace'](/,/g,'\x20'):_0xb06c57;}function Zo(_0x17c3f6){const _0x45a487=_0x327967;var _0x45a1b6,_0x456e00;let _0x37b384=_0x17c3f6||new Intl[(_0x45a487(0x341))]()['resolvedOptions']()[_0x45a487(0x200)],_0x1832a5;try{_0x1832a5=new Intl[(_0x45a487(0x341))](_0x37b384,{'minimumFractionDigits':0x2,'maximumFractionDigits':0x2,'useGrouping':!0x0})['formatToParts'](0xf4240);}catch{return _0x45a487(0x251);}let _0x2abc01=(_0x45a1b6=_0x1832a5['find'](_0x3b95a2=>_0x3b95a2[_0x45a487(0x346)]==='group'))==null?void 0x0:_0x45a1b6[_0x45a487(0x1e1)],_0x1a5a10=(_0x456e00=_0x1832a5[_0x45a487(0x451)](_0x395353=>_0x395353[_0x45a487(0x346)]===_0x45a487(0x283)))==null?void 0x0:_0x456e00[_0x45a487(0x1e1)],_0x3dd91d=_0x2abc01==='\u00a0'||_0x2abc01==='\u202f'?'\x20':_0x2abc01;return _0x3dd91d==='.'&&_0x1a5a10===','?_0x45a487(0x3c6):_0x3dd91d==='\x20'&&_0x1a5a10===','?_0x45a487(0x28a):_0x3dd91d==='\x20'&&_0x1a5a10==='.'?'spacePeriod':_0x45a487(0x251);}function Qo(_0x3bacf6,_0x3ad9db){const _0x19faa3=_0x327967;let _0x1c9a3b=_0x3ad9db&&typeof _0x3ad9db=='object'&&!Array[_0x19faa3(0x3fb)](_0x3ad9db)?_0x3ad9db:{},_0x5e352f=$o(_0x1c9a3b[_0x19faa3(0x43e)],0x0,0x2,0x0),_0x52c850=_0x3bacf6['toFixed'](_0x5e352f);return _0x1c9a3b['format']===_0x19faa3(0x218)?_0x52c850:_0x52c850+'%';}function $o(_0x37307f,_0x20ec86,_0x1e326e,_0x25e5bf){const _0x55ef1a=_0x327967;if(_0x37307f==null||_0x37307f==='')return _0x25e5bf;let _0xcd1326=typeof _0x37307f==_0x55ef1a(0x218)?_0x37307f:Number(_0x37307f);return Number[_0x55ef1a(0x138)](_0xcd1326)?Math[_0x55ef1a(0x31a)](_0x20ec86,Math[_0x55ef1a(0x37a)](_0x1e326e,Math[_0x55ef1a(0x407)](_0xcd1326))):_0x25e5bf;}const es=[_0x327967(0x1c4),_0x327967(0x193),_0x327967(0x13c),_0x327967(0x2da),_0x327967(0x1f5),'average',_0x327967(0x37a),_0x327967(0x31a)],ts=[_0x327967(0x1c4),_0x327967(0x193),_0x327967(0x13c),'unique'],ns=[_0x327967(0x1f5),_0x327967(0x184),_0x327967(0x37a),_0x327967(0x31a)],rs=[_0x327967(0x37a),'max'],is=new Set([_0x1013ad[_0x327967(0x302)],_0x1013ad[_0x327967(0x295)],_0x1013ad[_0x327967(0x3e1)],_0x1013ad['Rating']]),as=new Set([_0x1013ad[_0x327967(0x190)],_0x1013ad[_0x327967(0x3df)],_0x1013ad[_0x327967(0xf7)]]),os=_0x327967(0x149);function ss(_0x1a053f){const _0x508b27=_0x327967;return typeof _0x1a053f==_0x508b27(0x2a0)&&es[_0x508b27(0x45c)](_0x1a053f);}function cs(_0x443f6b){const _0x1ab410=_0x327967;return!_0x443f6b||typeof _0x443f6b!=_0x1ab410(0x3d8)?{}:Object['fromEntries'](Object[_0x1ab410(0x209)](_0x443f6b)[_0x1ab410(0x1be)](_0x439601=>ss(_0x439601[0x1])));}function ls(_0x363455){const _0x1f8485=_0x327967;return is[_0x1f8485(0x103)](_0x363455['type'])?[...ts,...ns]:_0x363455[_0x1f8485(0x346)]===_0x1013ad[_0x1f8485(0x3d9)]?[...ts,...ws(_0x363455)===_0x1f8485(0x17a)?rs:ns]:ts;}function us(_0x171306,_0x32fddd){const _0x731a0f=_0x327967;return ls(_0x171306)[_0x731a0f(0x45c)](_0x32fddd);}function ds(_0x251679,_0x1a598a,_0x551f88){const _0x453600=_0x327967;if(!us(_0x251679,_0x551f88))return null;let _0x50dfd8=_0x1a598a[_0x453600(0x1be)](_0x1bedcb=>!ps(_0x251679,_0x1bedcb));switch(_0x551f88){case _0x453600(0x1c4):return _0x1a598a[_0x453600(0x1bf)];case _0x453600(0x193):return _0x50dfd8[_0x453600(0x1bf)];case _0x453600(0x13c):return _0x1a598a[_0x453600(0x1bf)]-_0x50dfd8[_0x453600(0x1bf)];case'unique':return new Set(_0x50dfd8[_0x453600(0x412)](_0x45aba3=>_s(_0x251679,_0x45aba3)))[_0x453600(0x1d0)];case _0x453600(0x1f5):{let _0x30bc28=ms(_0x251679,_0x50dfd8);return _0x30bc28[_0x453600(0x1bf)]?gs(_0x30bc28):null;}case'average':{let _0xdf7ae0=ms(_0x251679,_0x50dfd8);return _0xdf7ae0[_0x453600(0x1bf)]?gs(_0xdf7ae0)/_0xdf7ae0[_0x453600(0x1bf)]:null;}case'min':{let _0xb340fc=ms(_0x251679,_0x50dfd8);return _0xb340fc[_0x453600(0x1bf)]?Math[_0x453600(0x37a)](..._0xb340fc):null;}case'max':{let _0x168878=ms(_0x251679,_0x50dfd8);return _0x168878[_0x453600(0x1bf)]?Math['max'](..._0x168878):null;}}}function fs(_0x541b8e,_0x2ea56f,_0x171432){const _0x1d01e8=_0x327967;if(_0x171432==null||!Number[_0x1d01e8(0x138)](_0x171432))return'-';if(ts[_0x1d01e8(0x45c)](_0x2ea56f))return String(_0x171432);switch(_0x541b8e[_0x1d01e8(0x346)]){case _0x1013ad[_0x1d01e8(0x302)]:return qo(_0x171432,xs(_0x541b8e));case _0x1013ad[_0x1d01e8(0x295)]:return qo(_0x171432,Ss(_0x541b8e));case _0x1013ad[_0x1d01e8(0x3e1)]:return Qo(_0x171432,_0x541b8e[_0x1d01e8(0x174)]);case _0x1013ad[_0x1d01e8(0x3d9)]:return Cs(_0x171432,_0x541b8e);default:return Es(_0x171432);}}function ps(_0x2bd740,_0x5f20a1){const _0x1bc029=_0x327967;if(_0x5f20a1==null)return!0x0;if(typeof _0x5f20a1=='string')return _0x5f20a1['trim']()==='';if(Array[_0x1bc029(0x3fb)](_0x5f20a1))return _0x2bd740[_0x1bc029(0x346)]===_0x1013ad[_0x1bc029(0x49d)]?!_0x5f20a1[_0x1bc029(0x35d)](bs):_0x5f20a1[_0x1bc029(0x1bf)]===0x0;if(_0x2bd740['type']===_0x1013ad[_0x1bc029(0x170)]&&typeof _0x5f20a1==_0x1bc029(0x3d8)){let _0x144bdf=_0x5f20a1;return[_0x144bdf[_0x1bc029(0x179)],_0x144bdf[_0x1bc029(0x15e)]][_0x1bc029(0x44b)](_0x15ef4d=>_0x15ef4d==null||String(_0x15ef4d)[_0x1bc029(0x140)]()==='');}return!0x1;}function ms(_0x36eac1,_0x328a3e){const _0x44e569=_0x327967;let _0x36a96d=[];for(let _0x4e7147 of _0x328a3e){let _0x59fc3b=hs(_0x36eac1,_0x4e7147);_0x59fc3b!=null&&_0x36a96d[_0x44e569(0x161)](_0x59fc3b);}return _0x36a96d;}function hs(_0xfe34b8,_0x2f537f){const _0x1af97f=_0x327967;if(typeof _0x2f537f==_0x1af97f(0x218))return Number[_0x1af97f(0x138)](_0x2f537f)?_0x2f537f:null;if(_0xfe34b8[_0x1af97f(0x346)]!==_0x1013ad[_0x1af97f(0x3d9)]&&typeof _0x2f537f=='string'&&_0x2f537f[_0x1af97f(0x140)]()!==''){let _0x4ab893=Number(_0x2f537f);return Number[_0x1af97f(0x138)](_0x4ab893)?_0x4ab893:null;}return null;}function gs(_0x4b10df){const _0x3d72e0=_0x327967;let _0x58fe03=0x0,_0x36408e=0x0;for(let _0x3808e1 of _0x4b10df){let _0xede298=_0x58fe03+_0x3808e1;_0x36408e+=Math[_0x3d72e0(0x379)](_0x58fe03)>=Math[_0x3d72e0(0x379)](_0x3808e1)?_0x58fe03-_0xede298+_0x3808e1:_0x3808e1-_0xede298+_0x58fe03,_0x58fe03=_0xede298;}return _0x58fe03+_0x36408e;}function _s(_0x21c8d2,_0x44ec54){const _0x122bae=_0x327967;return as[_0x122bae(0x103)](_0x21c8d2[_0x122bae(0x346)])&&Array[_0x122bae(0x3fb)](_0x44ec54)?ys([...new Set(_0x44ec54[_0x122bae(0x412)](_0x4e5437=>ys(vs(_0x4e5437))))]['sort']()):ys(vs(_0x44ec54));}function vs(_0xdc8854){const _0x19eaad=_0x327967;return Array[_0x19eaad(0x3fb)](_0xdc8854)?_0xdc8854[_0x19eaad(0x412)](vs):_0xdc8854&&typeof _0xdc8854=='object'?Object['fromEntries'](Object['entries'](_0xdc8854)[_0x19eaad(0x460)](([_0x52555c],[_0x3301b3])=>_0x52555c[_0x19eaad(0x3a4)](_0x3301b3))[_0x19eaad(0x412)](([_0x30ffe8,_0x49e6ad])=>[_0x30ffe8,vs(_0x49e6ad)])):_0xdc8854;}function ys(_0x4dfe38){const _0x6cc1ab=_0x327967;return JSON['stringify'](_0x4dfe38)??_0x6cc1ab(0x367);}function bs(_0x54b324){const _0x1fe163=_0x327967;if(typeof _0x54b324==_0x1fe163(0x2a0))return _0x54b324[_0x1fe163(0x140)]()!=='';if(!_0x54b324||typeof _0x54b324!='object')return!0x1;let _0x45cfcb=_0x54b324;return[_0x45cfcb['id'],_0x45cfcb[_0x1fe163(0x158)],_0x45cfcb[_0x1fe163(0x300)],_0x45cfcb[_0x1fe163(0x15e)],_0x45cfcb['thumbnail']]['some'](_0xaa31b=>_0xaa31b!=null&&String(_0xaa31b)[_0x1fe163(0x140)]()!=='');}function xs(_0x944e5b){const _0x1446e2=_0x327967;let _0x29f9ab=Ds(_0x944e5b[_0x1446e2(0x174)]);return{'decimalPlaces':ks(_0x29f9ab[_0x1446e2(0x43e)],0x0,0x14,0x2),'separatorStyle':typeof _0x29f9ab[_0x1446e2(0x480)]==_0x1446e2(0x2a0)?_0x29f9ab[_0x1446e2(0x480)]:'local','locale':typeof _0x29f9ab[_0x1446e2(0x200)]==_0x1446e2(0x2a0)?_0x29f9ab[_0x1446e2(0x200)]:void 0x0,'useThousands':_0x29f9ab['useThousands']!==!0x1,'abbreviation':typeof _0x29f9ab['abbreviation']==_0x1446e2(0x2a0)?_0x29f9ab['abbreviation']:_0x1446e2(0x2d2)};}function Ss(_0x5055e7){const _0x22d425=_0x327967;let _0x384509=Ds(_0x5055e7[_0x22d425(0x174)]);return{...xs(_0x5055e7),'currencySymbol':String(_0x384509[_0x22d425(0x497)]??'$')};}function Cs(_0x4871d9,_0x3b2ff0){const _0x470a78=_0x327967;let _0x5022f7=Ts(_0x3b2ff0);if(_0x5022f7===os)return Es(_0x4871d9);try{return String(_0x50b573[_0x470a78(0x493)](_0x5022f7,_0x4871d9,{'throws':!0x1}));}catch{return Es(_0x4871d9);}}function ws(_0x2e9976){const _0x4c5baf=_0x327967;let _0x588c81=Ds(Ds(_0x2e9976[_0x4c5baf(0x174)])[_0x4c5baf(0x286)]);return typeof _0x588c81[_0x4c5baf(0x346)]==_0x4c5baf(0x2a0)?_0x588c81[_0x4c5baf(0x346)]:_0x4c5baf(0x42c);}function Ts(_0x586ebf){const _0x4c6040=_0x327967;let _0x36384b=Ds(Ds(_0x586ebf[_0x4c6040(0x174)])['numfmt']);return String(_0x36384b[_0x4c6040(0x2d7)]??os)['trim']()||os;}function Es(_0x32522e){const _0x2efdc6=_0x327967;return String(Number[_0x2efdc6(0xe9)](_0x32522e)?_0x32522e:Math[_0x2efdc6(0x407)]((_0x32522e+0x2**-0x34)*0x64)/0x64);}function Ds(_0x2354d1){const _0x1b68d4=_0x327967;return _0x2354d1&&typeof _0x2354d1==_0x1b68d4(0x3d8)&&!Array[_0x1b68d4(0x3fb)](_0x2354d1)?_0x2354d1:{};}function Os(_0x4fcacf){const _0x368abb=_0x327967;if(_0x4fcacf==null||_0x4fcacf==='')return null;let _0x2e9360=typeof _0x4fcacf==_0x368abb(0x218)?_0x4fcacf:Number(_0x4fcacf);return Number[_0x368abb(0x138)](_0x2e9360)?_0x2e9360:null;}function ks(_0x1b22a4,_0x944a5,_0x493414,_0x2d171f){const _0x25e4ab=_0x327967;let _0x3deb91=Os(_0x1b22a4);return _0x3deb91==null?_0x2d171f:Math[_0x25e4ab(0x31a)](_0x944a5,Math['min'](_0x493414,Math[_0x25e4ab(0x407)](_0x3deb91)));}function As(_0x6a6fcf,_0x2ab73c){const _0x1f6bcd=_0x327967;let _0x3ea185=_0x2ea00f['deepClone'](_0x6a6fcf),_0x59e6f8=_0x2ab73c['includeRecords']===!0x0,_0x33e535=new Map(),_0x7c527b=_0x2ab73c['createViewId']??(()=>'view-'+_0x1dd020(0x8)),_0x1baeab=_0x3ea185['viewOrder'];return _0x2ab73c[_0x1f6bcd(0x3f1)]&&(_0x1baeab=_0x3ea185[_0x1f6bcd(0x2e1)][_0x1f6bcd(0x412)](_0x10ce81=>{const _0x1984ec=_0x1f6bcd;let _0x237dc4=_0x7c527b();return _0x33e535[_0x1984ec(0x3fe)](_0x10ce81,_0x237dc4),_0x237dc4;})),{..._0x3ea185,'id':_0x2ab73c['id'],'name':_0x2ab73c[_0x1f6bcd(0x158)],'records':_0x59e6f8?_0x3ea185[_0x1f6bcd(0x1d7)]:{},'recordOrder':_0x59e6f8?_0x3ea185[_0x1f6bcd(0x1e2)]:[],'rowIndex':_0x59e6f8?_0x3ea185[_0x1f6bcd(0x257)]:{},'rowId':_0x59e6f8?_0x3ea185[_0x1f6bcd(0x2a7)]:{},'cellData':_0x59e6f8?_0x3ea185[_0x1f6bcd(0xdd)]:{},'resources':_0x59e6f8?_0x3ea185[_0x1f6bcd(0x2b3)]:{},'viewOrder':_0x1baeab,'views':Object[_0x1f6bcd(0x49f)](Object[_0x1f6bcd(0x209)](_0x3ea185[_0x1f6bcd(0x1eb)]??{})[_0x1f6bcd(0x412)](([_0x4b7ab5,_0x4a4fcd])=>{const _0x224575=_0x1f6bcd;let _0x239375=_0x33e535[_0x224575(0x318)](_0x4b7ab5)??(_0x2ab73c[_0x224575(0x3f1)]?_0x7c527b():_0x4b7ab5);return[_0x239375,{..._0x4a4fcd,'id':_0x239375,'tableId':_0x2ab73c['id']}];}))};}var js=_0x327967(0x14e),Ms=_0x327967(0x48d);const Ns={},Ps={};function Fs(_0x248705){return new z()['getAffectedRanges'](_0x248705);}function Is(_0x488b1c){const _0xcdcda1=_0x327967;return _0x488b1c[_0xcdcda1(0x14b)][_0xcdcda1(0x412)](_0x4ea842=>({'unitId':_0x488b1c['unitId'],'sheetId':_0x488b1c[_0xcdcda1(0x19a)],'range':{'startRow':_0x4ea842['row'],'endRow':_0x4ea842[_0xcdcda1(0x124)],'startColumn':_0x4ea842[_0xcdcda1(0x36b)],'endColumn':_0x4ea842[_0xcdcda1(0x36b)]}}));}function Ls(_0x1e7ff5,_0x453a67){return{[_0x1e7ff5]:Object['fromEntries'](_0x453a67['map'](_0x2d82ef=>[_0x2d82ef,'1']))};}let Rs=class extends _0x4de356{constructor(_0xa8d219,_0x20c41a){const _0x52a0bb=_0x327967;super(),this[_0x52a0bb(0x363)]=_0xa8d219,this[_0x52a0bb(0x33f)]=_0x20c41a,this[_0x52a0bb(0x28c)]();}['_initialize'](){const _0x668124=_0x327967;this[_0x668124(0x363)][_0x668124(0x263)](Q['id'],{'commandId':Q['id'],'getDirtyData':_0xd5b30f=>this['_getJson1DirtyData'](_0xd5b30f[_0x668124(0x303)])}),this[_0x668124(0x29e)](_0x569b00(()=>{const _0x31c0cc=_0x668124;this['_activeDirtyManagerService'][_0x31c0cc(0x13b)](Q['id']);}));}[_0x327967(0x25e)](_0x566a56,_0x587f34){const _0x31b044=_0x327967;let _0x16d4c2=this[_0x31b044(0x33f)][_0x31b044(0x1d4)](_0x566a56,_0x49a6be[_0x31b044(0xf9)]);return(_0x16d4c2==null?void 0x0:_0x16d4c2['getSnapshot']()[_0x31b044(0x486)][_0x587f34])??null;}[_0x327967(0x3ef)](_0x1d5b2a){const _0x3e7da7=_0x327967;if(_0x1d5b2a['trigger']==='formula.mutation.set-formula-calculation-result')return{};if(!_0x1d5b2a[_0x3e7da7(0x409)]||!_0x1d5b2a['op'])return{'clearDependencyTreeCache':this[_0x3e7da7(0x1ee)](),'forceCalculation':!0x0};let _0x3df471=Fs(_0x1d5b2a['op']),_0x2b1a87=this[_0x3e7da7(0x307)](_0x1d5b2a[_0x3e7da7(0x409)],_0x3df471);if(_0x2b1a87[_0x3e7da7(0x1bf)])return{'clearDependencyTreeCache':Ls(_0x1d5b2a[_0x3e7da7(0x409)],_0x2b1a87),'forceCalculation':!0x0};let _0x480be3=Object[_0x3e7da7(0x209)](this[_0x3e7da7(0x127)](_0x1d5b2a[_0x3e7da7(0x409)],_0x3df471))[_0x3e7da7(0xeb)](([_0x15a756,_0x326fa1])=>Is({'unitId':_0x1d5b2a[_0x3e7da7(0x409)],'tableId':_0x15a756,'patches':_0x326fa1}));return _0x480be3['length']?{'dirtyRanges':_0x480be3}:{};}[_0x327967(0x307)](_0x27394a,_0x7bf69b){const _0x1aec64=_0x327967;let _0x408045=_0x7bf69b[_0x1aec64(0x1be)](_0x4797a1=>_0x4797a1[_0x1aec64(0x3bf)]!==_0x1aec64(0x228))[_0x1aec64(0xeb)](_0x379120=>_0x379120[_0x1aec64(0x19a)]?[_0x379120[_0x1aec64(0x19a)]]:this[_0x1aec64(0x384)](_0x27394a));return Array['from'](new Set(_0x408045));}[_0x327967(0x127)](_0x453eb2,_0x36a17d){const _0xcf4214=_0x327967;let _0x535ef9=new Set();return _0x36a17d[_0xcf4214(0x3d6)]((_0x57ef77,_0x4824d7)=>{const _0x16db18=_0xcf4214;let _0x510849=this[_0x16db18(0x475)](_0x453eb2,_0x4824d7);if(!_0x510849)return _0x57ef77;let _0x4abf66=_0x4824d7[_0x16db18(0x19a)]+':'+_0x510849['row']+':'+_0x510849['col'];return _0x535ef9[_0x16db18(0x103)](_0x4abf66)?_0x57ef77:(_0x535ef9[_0x16db18(0x12e)](_0x4abf66),_0x57ef77[_0x4824d7['tableId']]=_0x57ef77[_0x4824d7[_0x16db18(0x19a)]]??[],_0x57ef77[_0x4824d7[_0x16db18(0x19a)]][_0x16db18(0x161)](_0x510849),_0x57ef77);},{});}[_0x327967(0x475)](_0x53be4c,_0x571f62){const _0x31164b=_0x327967;if(_0x571f62[_0x31164b(0x3bf)]!==_0x31164b(0x228))return null;if(_0x571f62[_0x31164b(0x124)]!=null&&_0x571f62[_0x31164b(0x115)]!=null)return{'row':_0x571f62[_0x31164b(0x124)],'col':_0x571f62[_0x31164b(0x115)],'value':null};if(!_0x571f62[_0x31164b(0x345)]||!_0x571f62[_0x31164b(0x173)])return null;let _0x572ad1=this[_0x31164b(0x25e)](_0x53be4c,_0x571f62[_0x31164b(0x19a)]);if(!_0x572ad1)return null;let _0x516efd=_t(_0x572ad1,_0x571f62[_0x31164b(0x345)],_0x571f62['fieldId']);return _0x516efd?{'row':_0x516efd[_0x31164b(0x124)],'col':_0x516efd['col'],'value':null}:null;}[_0x327967(0x384)](_0x13aa3a){const _0x27d06f=_0x327967;let _0x32bb01=this[_0x27d06f(0x33f)][_0x27d06f(0x1d4)](_0x13aa3a,_0x49a6be[_0x27d06f(0xf9)]);return Object[_0x27d06f(0x259)]((_0x32bb01==null?void 0x0:_0x32bb01[_0x27d06f(0x32b)]()[_0x27d06f(0x486)])??{})[_0x27d06f(0x412)](_0x62902c=>_0x62902c['id']);}[_0x327967(0x1ee)](){const _0x792883=_0x327967;let _0x1c0ee9=this['_univerInstanceService']['getAllUnitsForType'](_0x49a6be[_0x792883(0xf9)])[_0x792883(0x412)](_0x5a7e3e=>Ls(_0x5a7e3e[_0x792883(0x40a)](),Object[_0x792883(0x27a)](_0x5a7e3e[_0x792883(0x32b)]()[_0x792883(0x486)])));return Object[_0x792883(0x335)]({},..._0x1c0ee9);}};Rs=X([Y(0x0,_0x1624f9),Y(0x1,_0x3a38b9)],Rs);let zs=class extends _0x4de356{constructor(_0x3d2cac,_0x2d8ac0,_0x1b6faa,_0x7b5d19){const _0x430127=_0x327967;super(),this[_0x430127(0x1ba)]=_0x3d2cac,this[_0x430127(0x33f)]=_0x2d8ac0,this[_0x430127(0x217)]=_0x1b6faa,this[_0x430127(0x42e)]=_0x7b5d19,G(this,_0x430127(0x189),new Xi()),G(this,_0x430127(0x292),new Map()),G(this,_0x430127(0x450),new Set()),G(this,_0x430127(0x1c6),Promise[_0x430127(0x2d9)]()),G(this,_0x430127(0x222),!0x1),this['_initialize']();}['_initialize'](){const _0xdec188=_0x327967;this[_0xdec188(0x33f)]['getAllUnitsForType'](_0x49a6be[_0xdec188(0xf9)])[_0xdec188(0x29b)](_0x578149=>{this['_scheduleSuperTableSync'](_0x578149);}),this['disposeWithMe'](this[_0xdec188(0x33f)][_0xdec188(0x220)](_0x49a6be['UNIVER_BASE'])['subscribe'](({unit:_0x1faf9e})=>{this['_scheduleSuperTableSync'](_0x1faf9e);})),this[_0xdec188(0x29e)](this[_0xdec188(0x33f)][_0xdec188(0x38d)](_0x49a6be['UNIVER_BASE'])['subscribe'](_0xe6a1f1=>{const _0x16bc18=_0xdec188;this['_enqueueFormulaSync'](()=>this['_removeSuperTables'](_0xe6a1f1[_0x16bc18(0x40a)]()));})),this[_0xdec188(0x29e)](this[_0xdec188(0x1ba)][_0xdec188(0x250)](_0x163229=>this[_0xdec188(0x108)](_0x163229)));}['_onCommandExecuted'](_0x17fee6){const _0x15f948=_0x327967;if(_0x17fee6['id']===_0x30184a['id']){Vs(_0x17fee6[_0x15f948(0x303)])&&this[_0x15f948(0x230)](_0x17fee6[_0x15f948(0x303)]);return;}if(this[_0x15f948(0x222)]||_0x17fee6['id']!==Q['id'])return;let _0x3416f1=Bs(_0x17fee6[_0x15f948(0x303)])?_0x17fee6['params']:void 0x0,_0x400c90=_0x3416f1!=null&&_0x3416f1[_0x15f948(0x409)]?[this[_0x15f948(0x33f)][_0x15f948(0x1d4)](_0x3416f1[_0x15f948(0x409)],_0x49a6be[_0x15f948(0xf9)])][_0x15f948(0x1be)](_0x40b32f=>!!_0x40b32f):this[_0x15f948(0x33f)][_0x15f948(0x498)](_0x49a6be[_0x15f948(0xf9)]),_0x2cba3e=_0x3416f1==null?void 0x0:_0x3416f1['op'];_0x400c90[_0x15f948(0x29b)](_0x1d861d=>{const _0x58f564=_0x15f948;let _0x5ea62a=_0x2cba3e?Fs(_0x2cba3e):[];(!_0x2cba3e||_0x5ea62a[_0x58f564(0x35d)](_0x4250c0=>_0x4250c0[_0x58f564(0x3bf)]!==_0x58f564(0x228)))&&this[_0x58f564(0x1ad)](_0x1d861d);});}['_scheduleSuperTableSync'](_0x3fe683){const _0x10d297=_0x327967;let _0x9d65a9=_0x3fe683[_0x10d297(0x40a)]();this['_scheduledSuperTableSyncs'][_0x10d297(0x103)](_0x9d65a9)||(this[_0x10d297(0x450)][_0x10d297(0x12e)](_0x9d65a9),this['_enqueueFormulaSync'](async()=>{const _0x22c34b=_0x10d297;this['_scheduledSuperTableSyncs'][_0x22c34b(0x253)](_0x9d65a9),await this[_0x22c34b(0x17b)](_0x3fe683);}));}async[_0x327967(0x17b)](_0x2d863f){const _0x2dfbf6=_0x327967;let _0x5b6784=_0x2d863f[_0x2dfbf6(0x40a)](),_0x6aedba=this[_0x2dfbf6(0x189)]['getSuperTableRegistrations'](_0x2d863f[_0x2dfbf6(0x32b)]()),_0x36c969=new Set(_0x6aedba[_0x2dfbf6(0x412)](({tableName:_0x12e213})=>_0x12e213)),_0x200576=this[_0x2dfbf6(0x292)][_0x2dfbf6(0x318)](_0x5b6784)??new Set();for(let _0x3c2b7e of _0x200576)if(!_0x36c969[_0x2dfbf6(0x103)](_0x3c2b7e)&&!await this[_0x2dfbf6(0x265)](_0x3c0f14['id'],{'unitId':_0x5b6784,'tableName':_0x3c2b7e}))return;for(let {tableName:_0x12e947,reference:_0x2fc1b5}of _0x6aedba)if(!await this[_0x2dfbf6(0x265)](_0x574d24['id'],{'unitId':_0x5b6784,'tableName':_0x12e947,'reference':_0x2fc1b5}))return;this[_0x2dfbf6(0x292)][_0x2dfbf6(0x3fe)](_0x5b6784,_0x36c969);}async['_removeSuperTables'](_0x5b5b06){const _0x3744c5=_0x327967;let _0x3b9fc0=this[_0x3744c5(0x292)]['get'](_0x5b5b06)??new Set();for(let _0x2011c4 of _0x3b9fc0)if(!await this[_0x3744c5(0x265)](_0x3c0f14['id'],{'unitId':_0x5b5b06,'tableName':_0x2011c4}))return;this[_0x3744c5(0x292)][_0x3744c5(0x253)](_0x5b5b06);}async[_0x327967(0x265)](_0x1d5caa,_0x1185c6){const _0x3acce0=_0x327967;return!this['_disposed']&&await this[_0x3acce0(0x1ba)][_0x3acce0(0x27f)](_0x1d5caa,_0x1185c6,{'onlyLocal':!0x0})&&!this[_0x3acce0(0x169)];}[_0x327967(0x3dc)](_0x41fbc2){const _0x91d578=_0x327967;this['_formulaSyncQueue']=this[_0x91d578(0x1c6)][_0x91d578(0x116)](_0x41fbc2,_0x41fbc2)['catch'](()=>void 0x0);}['_applyFormulaResult'](_0x335a7){const _0x364c28=_0x327967;let _0x2f4763=this[_0x364c28(0x33f)]['getAllUnitsForType'](_0x49a6be[_0x364c28(0xf9)]);if(!_0x2f4763[_0x364c28(0x35d)](_0x27e87e=>{const _0x30ae74=_0x364c28;var _0x455620;return((_0x455620=_0x335a7['unitData'])==null?void 0x0:_0x455620[_0x27e87e[_0x30ae74(0x40a)]()])!=null;}))return;let _0x23fc8a=_0x2f4763['flatMap'](_0xf65f89=>Zi(_0xf65f89[_0x364c28(0x32b)](),_0x335a7));if(!_0x23fc8a[_0x364c28(0x1bf)]){this[_0x364c28(0x42e)][_0x364c28(0x1c9)](_0x4cbf5b[_0x364c28(0x130)],_0x335a7);return;}let _0x42f5e5=new W(),_0x3295fa=_0x23fc8a['flatMap'](_0x1a0f50=>Is({'unitId':_0x1a0f50['unitId'],'tableId':_0x1a0f50[_0x364c28(0x19a)],'patches':_0x1a0f50['patches']}));this[_0x364c28(0x222)]=!0x0,(async()=>{const _0x3af35=_0x364c28;for(let _0x1c7be8 of _0x23fc8a){let _0x1e4022=this[_0x3af35(0x33f)]['getUnit'](_0x1c7be8['unitId'],_0x49a6be[_0x3af35(0xf9)]);_0x1e4022&&await this['_commandService'][_0x3af35(0x27f)](Q['id'],{'unitId':_0x1c7be8['unitId'],'op':_0x42f5e5[_0x3af35(0x1c0)](_0x1e4022['getSnapshot'](),_0x1c7be8[_0x3af35(0x19a)],_0x1c7be8['patches']),'trigger':_0x30184a['id']},{'onlyLocal':!0x0});}await this[_0x3af35(0x1ba)]['executeCommand'](_0xbd4092['id'],{'dirtyRanges':_0x3295fa},{'onlyLocal':!0x0});})()['finally'](()=>{const _0x445df7=_0x364c28;this[_0x445df7(0x222)]=!0x1,this[_0x445df7(0x42e)][_0x445df7(0x1c9)](_0x4cbf5b[_0x445df7(0x130)],_0x335a7);});}};zs=X([Y(0x0,_0x2823d6),Y(0x1,_0x3a38b9),Y(0x2,_0x1345e2(_0x18360a)),Y(0x3,_0x1345e2(_0x31dae7))],zs);function Bs(_0x574f77){const _0x59aa43=_0x327967;return typeof _0x574f77==_0x59aa43(0x3d8)&&!!_0x574f77&&_0x59aa43(0x409)in _0x574f77&&typeof _0x574f77['unitId']=='string'&&'op'in _0x574f77&&Array['isArray'](_0x574f77['op']);}function Vs(_0xbcb317){const _0x5c051c=_0x327967;return typeof _0xbcb317==_0x5c051c(0x3d8)&&!!_0xbcb317&&_0x5c051c(0xf5)in _0xbcb317&&_0x5c051c(0x18d)in _0xbcb317;}function _0x4f42(){const _0x15a459=['base.command.delete-base-field','recordIds','startDateFieldId','_findCalendarDateFieldId','canDeleteRecord','_deleteAttachmentResources','reduce','createDefaultValue','object','Formula','fieldIndex','[RecordLink]:\x20target\x20record\x20\x22','_enqueueFormulaSync','CreatedBy','updateField','Person','deepClone','Progress','test','getMonth','base.command.set-base-view-field-width','removeOp','4064070ZjRVWZ','[BaseCompression]:\x20unsupported\x20compressed\x20payload\x20kind\x20\x22','projection','base.viewType.grid','sortedView','multiple','IS_EMPTY','view/','month','_getJson1DirtyData','[BaseViewRegistryService]:\x20view\x20type\x20\x22','regenerateViewIds','tomorrow','packageName','cardLayout','userID','_patchCachedProjectedRows','24cqDppH','_instanceService','_bumpTableRevision','base.command.delete-base-record','isArray','[BaseCommandService]:\x20cannot\x20create\x20table.','members','set','parentFieldName','duplicateField','base.command.set-base-kanban-group-field','createBase','cycle','getCurrentUnitOfType','MM-DD','endDateFieldId','round','false','unitId','getUnitId','createCreateFieldOp','base.command.set-permission','_apply','attachmentSets','\x20must\x20have\x20a\x20non-empty\x20id.','oldParentRecordId','owner','map','SingleSelect','lastIndexOf','base.mutation.set-permission-rule','getCurrentUserId','timeZone','apostrophe','_syncBaseUnit','toPlainText','_normalizeCellValue','symbol','base-snapshot-v1','setBaseName','Parent\x20Items','moveField','invalidField','bases.config','_initRegistries','[UpdateBaseViewConditionalColorRulesCommand]:\x20rules\x20must\x20be\x20an\x20array.','childUnitId','_viewRevisions','4FNepqv','kind','direction','Uncategorized','[BaseCommandService]:\x20cannot\x20delete\x20a\x20RecordLink\x20target\x20table\x20(','general','replace','_formulaCalculationSessionService','deleteField','[BaseCommandService]:\x20cannot\x20edit\x20record.','base.resource.service','_setAttachmentResources','_rowTransformCacheSegment','onlyLocal','_replaceOptional','normal','orderedRecordIds','lessThanOrEqual','nodes','_recordIds','selfParent','past7','usableAsGanttEnd','decimalPlaces','_createNumberingAllocators','_resolveBaseId','mode','depth','[BaseFormula]:\x20A1\x20references\x20and\x20ranges\x20are\x20not\x20supported\x20in\x20Base\x20formulas.','base.mutation.apply-base-json1','_hierarchyIndexCache','registerView','_canEdit','Table','attachment','primaryFieldId','every','orderKey','rule','_tableBaseIds','renameFormulaUnitReferences','_scheduledSuperTableSyncs','find','[BaseCommandService]:\x20cannot\x20create\x20record.','workingDaysOnly','\x22\x20is\x20referenced\x20by\x20','invalidGanttEndField','fld-','_projectFields','_canUseFastSort','base.command.move-base-view','status','getPermissionPoint','includes','getUTCFullYear','WriteCursor','\x22\x20does\x20not\x20exist.\x20Use\x20FBaseTable.getFormulaName()\x20or\x20getSchema().formulaName\x20for\x20structured\x20references.','sort','invalid','BaseProjection.projectGroups','createdBy','replaceOp','blue','long','deleteView','emitPermissionDenied','target','addPermissionPoint','Use\x2031\x20characters\x20or\x20fewer.','_baseSyncDisposables','getProjection','createRecords','limit','[BaseFieldRegistryService]:\x20field\x20type\x20\x22','childrenByParentId','record',',\x22K\x22','Edit','_toDirtyRangePatch','usableAsCardCover','\x20references\x20missing\x20or\x20non-public\x20field\x20\x22','level','unitWidth','_clearUnit','_kanbanGroupKeys','parentByRecordId','isNot','\x20must\x20have\x20a\x20valid\x20CSS\x20color.','start','separatorStyle','base.command.set-base-table-hierarchy-field','registerCommand','CreatedAt','snapshot','_viewPermissions','tables','defaultValue','ena','fieldName','_initCommands','valid','yesterday','1.0.2','MUTATION','renameTable','[BaseCommandService]:\x20cannot\x20create\x20field.','_resolveKanbanGroupFieldId','setViewFieldWidth','format','_deleteRecordsBaseOp','options','table','currencySymbol','getAllUnitsForType','BaseJson1.json1Apply','__all__','DeleteView','unknown','Attachment','revision','fromEntries','lastMonth','Import','Kanban','base.command.delete-base-table','Parent','deletePermissionPoint','getUTCMonth','_projectedGroupsCache','\x22\x20must\x20be\x20a\x20non-system\x20field\x20in\x20the\x20target\x20table.','[BaseHierarchy]:\x20field\x20\x22','Grid','cellData','base.command.create-base-child-record','_resolveKanbanCoverFieldId','notContains','BEFORE','base.command.set-base-range-values','BaseCommand.createBatchCreateRecordsOp','UpdatedAt','#16a34a','diffValue','Yes','colorFieldId','isInteger','local','flatMap','hierarchy','exception-','getTime','h12','[BaseFormula]:\x20field\x20\x22','Failed\x20to\x20create\x20update\x20cell\x20operation:','A\x20table\x20with\x20this\x20name\x20already\x20exists.','_clearObjectEdit','insertOp','unitData','displayColor','Group','stringify','UNIVER_BASE','now','operator','check','bases.fieldConfig.textPlaceholder','IBaseCellData.ensureTableCellLayout','_sortRows','working','_getTablesToNormalize','year','has','[RecordLink]:\x20a\x20single\x20link\x20accepts\x20only\x20one\x20record\x20id.','fieldSettings','_projectHierarchyGroups','Date1900','_onCommandExecuted','deleteRecords','_groupsCacheKey','pickerFieldIds','base.command.set-base-name','#FDE68A','A\x20table\x20name\x20cannot\x20start\x20or\x20end\x20with\x20an\x20apostrophe.','width','groupFieldId','facade','version','all','_getTableRevision','column','then','lastWeek','allowMultiple','_cacheKey','CONTAINS','InvalidField','default','duplicateRecord','base.command.set-base-view-field-visible','base.command.update-base-field','base.viewType.gallery','629040RHzDQm','_views','fromCollab','row','BOOLEAN','_resolveGalleryCardFieldIds','_groupCellInvalidations','base.command.set-base-record-values','IS_NOT','base.projection.service','_normalizeGalleryConfig','DD/MM/YYYY','BaseProjection.getProjection','add','RecordLink','BASE','5572485dyVLGr','registerCtorForType','_isAllowedKanbanGroupField','manual','beforeCommandExecuted','objectId','columns','isFinite','showTodayLine','\x22.\x20Allowed\x20operators:\x20','remove','empty','compose','_globalRevision','setTablePermission','trim','https:','saveMany','fieldIds','field/','tableRevision','compress','splice','order','General','bases-exchange-client.operation.export-base-by-format','patches','[BasePerf]\x20','univer.basePerf','@univerjs-pro/bases','-record-','hasOwnProperty','Unchecked','getFullYear','rowIndexById','updateCell','Kanban\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','https://','[BaseCommandService]:\x20cannot\x20insert\x20a\x20field\x20before\x20record-id.','name','weekdays','End\x20date','Facade','_resolveCalendarDateFieldId','clearViewPermission','url','_filterRows','valueOf','push','_recordPermissions','BaseRecord','[RecordLink]:\x20value\x20is\x20not\x20a\x20canonical\x20record\x20id\x20list.','_groupProjectionFieldIds','iterator','lastIndex','conjunction','_disposed','group','targetTableId','constructor','HH:mm',':start','subscribe','Link','call','globalRevision','fieldId','config','undo','_tableRevisions','canManageView','YYYY/MM/DD','text','date','_syncSuperTables','changes','setPoint','base.command.create-base-view','createRegExpFromSafeFragment','_buildKanban','base.command.move-base-hierarchy-record','[UpdateBaseViewConditionalColorRulesCommand]:\x20duplicate\x20rule\x20id\x20\x22','_projectRows','average','CreateView','validate','[BaseCommandService]:\x20cannot\x20delete\x20field.','conditional','_formulaService','base.field-registry.service','endsWith','updateViewConfig','unitOtherData','COLUMN','score','MultiSelect','_setObjectEdit','progressFieldId','filled','_resolveCardTitleFieldId','policy','greaterThanOrEqual','objectType','_withModifiedSystemValues','_createNumberingAllocator','tableId','titleFieldId','[BaseJson1OpFactory]:\x20cannot\x20write\x20record-id.','getAffectedRanges','updateRecordOrder','[BaseField]:\x20invalid\x20progress\x20value.','_projectedRowsCache','result','invalid-characters','protocol','setRecordPermission','_buildGrid','_isAllDayCalendarEvent','major-','[BaseCommandService]:\x20record-id\x20is\x20reserved.','[RecordLink]:\x20target\x20table\x20does\x20not\x20exist\x20in\x20this\x20Base.','\x22\x20with\x20field\x20type\x20\x22','exec','686007tKGqyz','_scheduleSuperTableSync','_permissionService','base.command.set-base-view-sort','[BaseCommandService]:\x20invalid\x20cell\x20value.','invalidGanttStartField','[BaseCommandService]:\x20cannot\x20manage\x20view.','_findKanbanGroupField','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).','getAllBases','index','exists','invalidateByOp','base.command.update-base-record-order','_commandService','-field-name','missingField','[BaseCommandService]:\x20cannot\x20delete\x20record.','filter','length','setRangeValues','viewRevision','_injector','fromPlainText','count','indexOf','_formulaSyncQueue','too-long','raw','markResultApplied','base.command.ensure-base-temporal-view-date-fields','IS_NOT_EMPTY','_fieldRegistry','padStart','getUTCDay','getUnitType','size','from','_buildGallery','BaseJson1.cloneForOp','getUnit','UpdatedBy','\x22\x20must\x20be\x20a\x20same-table,\x20single-value\x20RecordLink.','records','Numbering','canEditTable','exact','updatedAt','coverFieldId','Comment','Base\x20object\x20permissions\x20only\x20support\x20Edit:\x20','medium','_projectionCache','value','recordOrder','create-view','isValid','title','#14b8a6','_normalizeGanttConfig','base.viewType.gantt','AFTER','createDeleteRecordsUndoOp','views','validateFormula','_createNumberingFieldValuePatches','_getAllBaseDependencyTreeCacheMap','useThousands','delete-view','getCapabilities','[RecordLink]:\x20value\x20must\x20be\x20a\x20canonical\x20string.','true','search','sum','before','base.viewType.kanban','fieldOrder','http:','base.command.update-base-field-description','createCreateRecordOp','Phone','[BaseField]:\x20negative\x20numbers\x20are\x20disabled.','field','majorHeaders','locale','_matchesGanttColorRule','_createRecordWithDefaults','invalidateByView','hourCycle','Checkbox','invalidReasonByRecordId','tryMaterializeSnapshot','\x20has\x20unsupported\x20operator\x20\x22','entries','Rating','base.mutation.set-permission-rules','yyyy/mm/dd','searchTexts','short','Email','_filterSortFieldIds','_getOrderedRecords','RecordId','getItem','exceptions','base.command.set-base-view-filter','4nGFHqU','_formulaCalculationTriggerService','number','repeat','rules','hostAnchorId','_tablePermissions','star','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20','_ganttBarColor','getTypeOfUnitAdded$','leftPaneCollapsed','_applyingFormulaResults','\x22\x20does\x20not\x20exist.','boolean','primaryFieldName','[BaseField]:\x20invalid\x20email\x20value.','dateFormat','cell','_materializeFormulaTableNames','colIndex','setSnapshot','canCreateField','children','__UNIVER_BASE_PERF__','getAllPermissionPoint','_applyFormulaResult','maxDepth','BaseView','color','[BaseField]:\x20invalid\x20checkbox\x20value.','clearRecordPermission','getDependencies','-view-grid','bases.fieldConfig.linkPlaceholder','embedId','displayText','groups','_capabilities','COMMAND','False','codePointAt','applyOp','scale','isNaN','trigger','pushUndoRedo','unshift','strategies','BaseHierarchyError','edit','setRecordValues','getAll','defineProperty','createField','invalidDateField','_createSystemFieldValuePatches','afterViewId','onCommandExecuted','commaPeriod','BASES_PLUGIN','delete','mark','canEditCell','MissingRecord','rowIndex','canDeleteTable','values','required','beforeFieldId','user','setViewFieldOrder','_getTable','_isCalendarDateField','updatePermissionPoint','\x20must\x20be\x20an\x20object.','BaseField','register','pluginName','_executeSuperTableMutationWhileActive','getOwnPropertyDescriptor','_setViewFieldSetting','onStarting','base.command.move-base-field','_title','custom','_rememberTable','_cellRevisions','includeTime','rows','BaseProjection.projectRows','renameView','system','manageView','redo','[DeleteBaseTableCommand]:\x20table\x20\x22','Working\x20day','deleteTable','Invalid\x20object\x20permission\x20batch.','getUTCDate','keys','_cellInvalidationsTouchFields','base-perf','BaseDashboard','_applier','executeCommand','BaseProjection.filterAndSortRows','base.command.update-base-view-config','_configService','decimal','_calendarEventColor','canEditField','numfmt','SortedView','base.command.set-permissions','createSetRecordValuesOp','spaceComma','selectField','_initialize','matchAll','setRules','[BaseCommandService]:\x20invalid\x20RecordLink\x20value.','[BaseField]:\x20invalid\x20date\x20value.','_getHierarchyIndex','_registeredSuperTableNames','_viewRevisionKey','info','Currency','_normalizeCalendarConfig','_projectGroups','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','[RecordLink]:\x20field\x20config\x20is\x20invalid.','getCurrentUser','forEach','optionSource','en-US','disposeWithMe','write','string','recordCount','_createRecordOrderOp','Delete','columnSettings','NOT_CONTAINS','base.command.create-base-record','rowId','Checked','tableName','_projectedViewRowsCache','record/','attachmentSet','startsWith','setViewSort','base-perf-','action','dispose','Date','resources','small','[BaseCommandService]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','canCreateRecord','UNIVER_EMBED_BASES_TABLE','save','createDefaultConfig','colId','_buildCalendar','editable','decorate','#,##0','[UpdateBaseViewConditionalColorRulesCommand]:\x20rule\x20at\x20index\x20','collaborators','changeFieldType','descend','basePerf','kanban','key','frozenFieldCount','canCreateTable','person','updatedBy','displayFieldId','Text','changed','subtreeEndIndex','Choose\x20another\x20name.','[BaseHierarchy]:\x20','viewId','Unsupported\x20Base\x20permission\x20object:\x20','none','getInstance','operand','base.command.create-base-table','ruleId','pattern','Cycle','resolve','unique','A\x20table\x20name\x20cannot\x20contain\x20:\x20\x5c\x20/\x20?\x20*\x20[\x20].','moveView','getStructuredDependencies','_patchProjectedRowsForCellInvalidations','True','Grid\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','viewOrder','_getSystemFieldValue','_isKanbanGroupField','DESC','split','timeslotSize','base.command.batch-delete-base-records','setViewFilter','1310673LOFZKD','Copy','base.command.set-base-view-group','normalize','percent','_kanbanLaneTitle','function','thisMonth','createdAt','Start\x20date','ascend','base.command.duplicate-base-record','flat','getSuperTableRegistrations','syncExecuteCommand','off','#3b82f6','clear','Gantt\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','recordNamePrefix','_initDataSync','[BaseCommandService]:\x20field\x20\x22','_kanbanLaneColor','source','at\x20index\x20','Number','params','_resolveKanbanCardFieldIds','fields','_config','_getStructureDirtyTableIds','depthByRecordId','_groupConfigCacheSegment','hidden','_isNonEmptyCellValue','base.viewType.calendar','MMM\x20D,\x20YYYY','_assertFieldDefinition','base.mutation.','[BaseField]:\x20invalid\x20multi-value\x20reference.','_materializeGroups','BaseTable','error','base.command.update-base-cell','base-range-values-v1','base.command.change-base-field-type','_setCachedProjection','get','_setFormulaFieldCells','max','clearTablePermission','card','spacePeriod','base.command.duplicate-base-field','[BaseCommandService]:\x20cannot\x20delete\x20table.','attachments','viewIndexes','Calendar','leftPaneWidth','quarter','Undo','setViewFieldVisible','initializeUnit','[BaseCompression]:\x20invalid\x20uncompressed\x20range\x20values\x20payload.','Set','canEditRecord','getSnapshot','cardSize','_getViewRevision','calendar','rootRecordIds','option-','prototype','base.view-registry.service','view','STRING','assign','Base','#BFDBFE','afterFieldId','clearFieldPermission','deleteRecord','label','_initDependencies','$1\x20','h:mm\x20a','_univerInstanceService','_cellInvalidations','NumberFormat','_isGanttDateField','todo','[BaseField]:\x20invalid\x20person\x20value.','recordId','type',':end','slice','thread-comment.command.','forValue','Export','_runtimeContext','_getKanbanConfiguredLanes','repairViewConfig','2689645qiDvXP','h24','_getCellRevision','_registerUnitPermissionPoints','invalidateByField','focusUnit','__base_hierarchy_parent__','setViewGroup','base.command.','workingDays','base.command.update-base-kanban-config','import','descendPath','isNotEmpty','some','gridViewId','data','toString','path','setHours','_activeDirtyManagerService','INIT','dateMode','allowDangling','undefined','Gallery\x20projection\x20is\x20implemented\x20by\x20BaseProjectionService.','toLocaleString','[RecordLink]:\x20display\x20field\x20\x22','col','_check','description','Redo','_resolveGalleryCoverFieldId','Clear','setFieldPermission','beforeViewId','_dataSyncPrimaryController','setRule','[BaseJson1OpFactory]:\x20cannot\x20move\x20a\x20field\x20before\x20record-id.','Gantt','formula','createTable','abs','min','showFieldNames','recordPatch','cellRevision','baseRows','autoIncrement','editCell','BaseProjection.projectTableRows','relationRole','[BaseCommandService]:\x20cannot\x20edit\x20cell.','_getAllTableIds','embed-ui','Gallery','base.command.create-base-field','usableAsGanttStart','parse','this-row','SelfParent','_projectTableRows','getTypeOfUnitDisposed$','invertOp','contains','registerSyncingMutations','_buildGantt','[BaseCompression]:\x20invalid\x20compressed\x20payload\x20\x22','setViewPermission','setConfig','#,##0.00','_viewRowsCacheKey','readonly','_getCachedProjection','subType','week','tableOrder','conditions','_normalizeCalendarDisplayColor','invalidGroupField','NUMBER','createUpdateCellOp','join','258506nVMVMT','large','localeCompare','parentRecordId','subtreeHeightByRecordId','base.command.service','formulaName','MissingParent','getBase','createRecord','Todo','createBatchCreateRecordsOp','done','toLowerCase','invalidateByCell','_canEditTable','_basePermissions','[BaseCommandService]:\x20cannot\x20edit\x20field.','_resolveGanttDateFieldId','clearBasePermission','abbreviation','createView','_getCurrentUserId','thread-comment.mutation.','lessThan','measure','base.command.delete-base-view','missingRecord','UTC','reason','_isAllDayGanttDateRange','clearUnit','LESS_THAN','end','Remote','_fieldPermissions','periodComma','Unsupported\x20Base\x20permission\x20action:\x20','createSuperTableReference','Ids','gantt','\x22\x20is\x20not\x20registered.','_isColorfulKanbanGroupField','canDeleteField','_plugins','_factory'];_0x4f42=function(){return _0x15a459;};return _0x4f42();}const Hs=new Set([fo['id'],po['id'],Io['id']]);let Us=class extends _0x4de356{constructor(_0xe324cc,_0x5de7c8,_0x2509e8,_0x2658e2){const _0x324e51=_0x327967;super(),this['_injector']=_0xe324cc,this[_0x324e51(0x1ba)]=_0x5de7c8,this[_0x324e51(0x1ae)]=_0x2509e8,this[_0x324e51(0x3f8)]=_0x2658e2,this[_0x324e51(0x3f8)][_0x324e51(0x498)](_0x49a6be[_0x324e51(0xf9)])[_0x324e51(0x29b)](_0x288ef6=>this[_0x324e51(0x352)](_0x288ef6[_0x324e51(0x40a)]())),this['disposeWithMe'](this['_instanceService']['getTypeOfUnitAdded$'](_0x49a6be['UNIVER_BASE'])[_0x324e51(0x16f)](({unit:_0x36e7da})=>this[_0x324e51(0x352)](_0x36e7da[_0x324e51(0x40a)]()))),this[_0x324e51(0x29e)](this[_0x324e51(0x1ba)][_0x324e51(0x135)]((_0x1431d2,_0x3e8c3f)=>this[_0x324e51(0x36c)](_0x1431d2,_0x3e8c3f))),this[_0x324e51(0x29e)](this['_instanceService'][_0x324e51(0x38d)](_0x49a6be[_0x324e51(0xf9)])[_0x324e51(0x16f)](_0x94a30c=>{const _0x4b8d45=_0x324e51;this['_injector'][_0x4b8d45(0x318)](_0x77c4ee)[_0x4b8d45(0x3c1)](_0x94a30c[_0x4b8d45(0x40a)]()),Rr(this[_0x4b8d45(0x1ae)],_0x94a30c[_0x4b8d45(0x40a)]());}));}[_0x327967(0x352)](_0x29466b){const _0x380890=_0x327967;Tr[_0x380890(0x29b)](_0x173d9f=>{const _0x282441=_0x380890;let _0x21c99f=Pr(_0x29466b,_0x29466b,_0x173d9f);this['_permissionService'][_0x282441(0x45b)](_0x21c99f['id'])||this[_0x282441(0x1ae)][_0x282441(0x46a)](_0x21c99f);}),this['_injector'][_0x380890(0x318)](_0x77c4ee)[_0x380890(0x327)]({'unitId':_0x29466b,'objectId':_0x29466b,'objectType':_0x230625['Base']});}[_0x327967(0x36c)](_0x34a5be,_0x14eca1){const _0x2909e0=_0x327967;var _0x1f978a;if(_0x14eca1!=null&&_0x14eca1[_0x2909e0(0x123)]||_0x14eca1!=null&&_0x14eca1['fromChangeset'])return;let _0x546da0=tc(_0x34a5be[_0x2909e0(0x303)])?_0x34a5be['params']:void 0x0;if(_0x14eca1!=null&&_0x14eca1[_0x2909e0(0x434)]&&_0x34a5be['id']==='base.mutation.apply-base-json1'&&(_0x546da0==null?void 0x0:_0x546da0['trigger'])===_0x30184a['id'])return;let _0xec3074=Gs(_0x34a5be['id']),_0xc8a85=Ws(_0x546da0==null?void 0x0:_0x546da0[_0x2909e0(0x409)],_0x14eca1)??(_0xec3074?(_0x1f978a=this['_instanceService'][_0x2909e0(0x404)](_0x49a6be[_0x2909e0(0xf9)]))==null?void 0x0:_0x1f978a[_0x2909e0(0x40a)]():void 0x0);if(!_0xc8a85||this[_0x2909e0(0x3f8)][_0x2909e0(0x1cf)](_0xc8a85)!==_0x49a6be[_0x2909e0(0xf9)])return;if(_0xec3074){if(!Fr(this[_0x2909e0(0x1ae)],_0xc8a85,_0xc8a85,_0xec3074))throw this['_injector'][_0x2909e0(0x318)](_0xeb132)[_0x2909e0(0x468)](_0xc8a85),new _0x268330('Base\x20'+_0x3709ae[_0xec3074]+'\x20permission\x20denied.');return;}if(Hs[_0x2909e0(0x103)](_0x34a5be['id'])||!_0x34a5be['id']['startsWith'](_0x2909e0(0x357))&&!_0x34a5be['id'][_0x2909e0(0x2ad)](_0x2909e0(0x30f)))return;let _0x505d25=this[_0x2909e0(0x3f8)][_0x2909e0(0x1d4)](_0xc8a85,_0x49a6be[_0x2909e0(0xf9)]),_0x679fcd=_0x505d25?Ks(_0x505d25,_0x546da0??{},_0x34a5be['id']):[];if(!_0x505d25||!zr(this[_0x2909e0(0x1ae)],_0xc8a85,_0x679fcd))throw this[_0x2909e0(0x1c2)]['get'](_0xeb132)[_0x2909e0(0x468)](_0xc8a85,_0x679fcd),new _0x268330('Base\x20edit\x20permission\x20denied.');}};Us=X([Y(0x0,_0x1345e2(_0x4a869a)),Y(0x1,_0x2823d6),Y(0x2,_0x5cc725),Y(0x3,_0x3a38b9)],Us);function Ws(_0x3416b6,_0x542cb4){const _0x4fbdd1=_0x327967;return typeof _0x3416b6=='string'?_0x3416b6:typeof(_0x542cb4==null?void 0x0:_0x542cb4[_0x4fbdd1(0x409)])==_0x4fbdd1(0x2a0)?_0x542cb4[_0x4fbdd1(0x409)]:void 0x0;}function Gs(_0xafd554){const _0x536b98=_0x327967;if(_0xafd554==='bases-exchange-client.operation.export-base'||_0xafd554===_0x536b98(0x14a))return _0x3709ae[_0x536b98(0x34b)];if(_0xafd554[_0x536b98(0x2ad)](_0x536b98(0x349))||_0xafd554[_0x536b98(0x2ad)](_0x536b98(0x3b9)))return _0x3709ae['Comment'];}function Ks(_0x8312d0,_0x328a3a,_0xa45b7c){const _0xeb6649=_0x327967;if(_0xa45b7c===_0xeb6649(0x444)&&ec(_0x328a3a['op']))return qs(_0x8312d0,_0x328a3a['op']);let _0x2db530=new Set(),_0x1c33b1=Zs(_0x328a3a,_0xeb6649(0x496)),_0x5baace=typeof _0x328a3a[_0xeb6649(0x19a)]=='string'?_0x328a3a['tableId']:_0x1c33b1[0x0];if(_0x1c33b1[_0xeb6649(0x29b)](_0x14d676=>_0x2db530['add'](K(_0x14d676))),!_0x5baace)return[..._0x2db530];let _0x5bcc90=_0x8312d0[_0xeb6649(0x32b)]()['tables'][_0x5baace],_0x21a666=new Set(Zs(_0x328a3a,_0xeb6649(0x1fe))),_0x47a737=new Set(Zs(_0x328a3a,_0xeb6649(0x472))),_0x193c95=new Set(Zs(_0x328a3a,'view'));return Qs(_0x5bcc90,_0x328a3a[_0xeb6649(0x14b)],_0x47a737,_0x21a666),$s(_0x328a3a,_0x21a666),_0x21a666['forEach'](_0x5bc8d9=>_0x2db530[_0xeb6649(0x12e)](q(_0x5baace,_0x5bc8d9))),_0x47a737[_0xeb6649(0x29b)](_0x27ff6c=>_0x2db530[_0xeb6649(0x12e)](J(_0x5baace,_0x27ff6c))),_0x193c95[_0xeb6649(0x29b)](_0x30bb0c=>_0x2db530[_0xeb6649(0x12e)](Mr(_0x5baace,_0x30bb0c))),[..._0x2db530];}function qs(_0x485967,_0x2b23c0){const _0x4a4f44=_0x327967;let _0x89fd0a=_0x485967[_0x4a4f44(0x32b)](),_0x413cfd=new z()[_0x4a4f44(0x19d)](_0x2b23c0),_0x215c94=Js(_0x2b23c0),_0x174a67=new Set();return _0x413cfd['forEach'](_0x1a1203=>{const _0xb39ec5=_0x4a4f44;var _0x589c10,_0x463e79;let {tableId:_0x5a3a0e}=_0x1a1203;if(!_0x5a3a0e)return;_0x174a67[_0xb39ec5(0x12e)](K(_0x5a3a0e));let _0x5d9071=_0x89fd0a['tables'][_0x5a3a0e],_0x476a47=_0x1a1203[_0xb39ec5(0x345)]??(_0x1a1203[_0xb39ec5(0x124)]==null||_0x5d9071==null||(_0x589c10=_0x5d9071['rowId'])==null?void 0x0:_0x589c10[_0x1a1203[_0xb39ec5(0x124)]]),_0x4369b4=_0x1a1203[_0xb39ec5(0x173)]??(_0x1a1203['column']==null||_0x5d9071==null||(_0x463e79=_0x5d9071[_0xb39ec5(0x2ba)])==null?void 0x0:_0x463e79[_0x1a1203[_0xb39ec5(0x115)]]);_0x476a47&&_0x174a67[_0xb39ec5(0x12e)](J(_0x5a3a0e,_0x476a47)),_0x4369b4&&_0x174a67['add'](q(_0x5a3a0e,_0x4369b4)),_0x1a1203[_0xb39ec5(0x2d0)]&&_0x174a67[_0xb39ec5(0x12e)](Mr(_0x5a3a0e,_0x1a1203[_0xb39ec5(0x2d0)])),(_0x1a1203['reason']==='table'||_0x215c94['has'](_0x5a3a0e))&&_0x5d9071&&(Object['keys'](_0x5d9071[_0xb39ec5(0x305)])[_0xb39ec5(0x29b)](_0x59de2f=>_0x174a67[_0xb39ec5(0x12e)](q(_0x5a3a0e,_0x59de2f))),Object['keys'](_0x5d9071[_0xb39ec5(0x1d7)])[_0xb39ec5(0x29b)](_0x5829f4=>_0x174a67[_0xb39ec5(0x12e)](J(_0x5a3a0e,_0x5829f4))),Object[_0xb39ec5(0x27a)](_0x5d9071['views'])[_0xb39ec5(0x29b)](_0x348b62=>_0x174a67[_0xb39ec5(0x12e)](Mr(_0x5a3a0e,_0x348b62)))),_0x1a1203[_0xb39ec5(0x3bf)]===_0xb39ec5(0x472)&&_0x5d9071&&Object[_0xb39ec5(0x27a)](_0x5d9071[_0xb39ec5(0x305)])['forEach'](_0x6eacb3=>_0x174a67[_0xb39ec5(0x12e)](q(_0x5a3a0e,_0x6eacb3)));}),_0x413cfd[_0x4a4f44(0x1bf)]===0x0&&Xs(_0x2b23c0,_0x4a4f44(0x39b))&&Object['keys'](_0x89fd0a['tables'])[_0x4a4f44(0x29b)](_0x545e41=>_0x174a67[_0x4a4f44(0x12e)](K(_0x545e41))),[..._0x174a67];}function Js(_0x2515f9){let _0xdfe283=new Set(),_0x438934=_0x499f2b=>{const _0x5ac92c=_0x11ae;Array[_0x5ac92c(0x3fb)](_0x499f2b)&&_0x499f2b[_0x5ac92c(0x29b)]((_0x1656bb,_0x10269b)=>{const _0x1a0318=_0x5ac92c;_0x1656bb===_0x1a0318(0x486)&&typeof _0x499f2b[_0x10269b+0x1]==_0x1a0318(0x2a0)&&Ys(_0x499f2b[_0x10269b+0x2])&&_0xdfe283[_0x1a0318(0x12e)](_0x499f2b[_0x10269b+0x1]),_0x438934(_0x1656bb);});};return _0x438934(_0x2515f9),_0xdfe283;}function Ys(_0x4b329d){const _0x965b8b=_0x327967;return!!_0x4b329d&&typeof _0x4b329d==_0x965b8b(0x3d8)&&!Array[_0x965b8b(0x3fb)](_0x4b329d)&&('i'in _0x4b329d||'r'in _0x4b329d||'p'in _0x4b329d||'d'in _0x4b329d||'es'in _0x4b329d||'ena'in _0x4b329d||'et'in _0x4b329d);}function Xs(_0x237bef,_0x4e5a31){const _0x3d1c97=_0x327967;return Array[_0x3d1c97(0x3fb)](_0x237bef)&&_0x237bef[_0x3d1c97(0x35d)](_0x1922aa=>_0x1922aa===_0x4e5a31||Xs(_0x1922aa,_0x4e5a31));}function Zs(_0x16f4e4,_0x42c8f6){const _0x31c722=_0x327967;let _0x33b3ca=new Set(),_0x9c11e0=_0x42c8f6+'Id',_0x48adfa=_0x42c8f6+_0x31c722(0x3c9),_0x5ac082=(_0x266e33,_0x480bf7='')=>{const _0x359f02=_0x31c722;if(typeof _0x266e33==_0x359f02(0x2a0)){_0x480bf7===_0x9c11e0&&_0x33b3ca[_0x359f02(0x12e)](_0x266e33);return;}if(Array[_0x359f02(0x3fb)](_0x266e33)){_0x480bf7===_0x48adfa?_0x266e33[_0x359f02(0x29b)](_0x53eb29=>{const _0x5bb652=_0x359f02;typeof _0x53eb29==_0x5bb652(0x2a0)&&_0x33b3ca[_0x5bb652(0x12e)](_0x53eb29);}):_0x266e33['forEach'](_0x16d924=>_0x5ac082(_0x16d924,_0x480bf7));return;}tc(_0x266e33)&&Object[_0x359f02(0x209)](_0x266e33)[_0x359f02(0x29b)](([_0x5a17d3,_0x3a04bc])=>{const _0x4dbec6=_0x359f02;_0x5a17d3==='id'&&_0x480bf7===_0x42c8f6&&typeof _0x3a04bc==_0x4dbec6(0x2a0)?_0x33b3ca[_0x4dbec6(0x12e)](_0x3a04bc):_0x5ac082(_0x3a04bc,_0x5a17d3);});};return _0x5ac082(_0x16f4e4),[..._0x33b3ca];}function Qs(_0x4a0b70,_0x499b82,_0x2bb8f7,_0x3f0c49){const _0x9644fd=_0x327967;_0x4a0b70&&Array[_0x9644fd(0x3fb)](_0x499b82)&&_0x499b82[_0x9644fd(0x29b)](_0x383454=>{const _0x3b3d20=_0x9644fd;if(!tc(_0x383454))return;let _0x490934=_0x383454;if(typeof _0x490934[_0x3b3d20(0x124)]==_0x3b3d20(0x218)){var _0x1ea288;let _0x259da5=(_0x1ea288=_0x4a0b70[_0x3b3d20(0x2a7)])==null?void 0x0:_0x1ea288[_0x490934['row']];_0x259da5&&_0x2bb8f7[_0x3b3d20(0x12e)](_0x259da5);}if(typeof _0x490934[_0x3b3d20(0x36b)]=='number'){var _0x6a2676;let _0x1fc01c=(_0x6a2676=_0x4a0b70['colId'])==null?void 0x0:_0x6a2676[_0x490934[_0x3b3d20(0x36b)]];_0x1fc01c&&_0x3f0c49[_0x3b3d20(0x12e)](_0x1fc01c);}});}function $s(_0x472e10,_0x4fcaec,_0x2fca14=''){const _0x2ceca7=_0x327967;if(_0x472e10&&typeof _0x472e10=='object'){if(Array[_0x2ceca7(0x3fb)](_0x472e10)){_0x472e10['forEach'](_0x4149d4=>$s(_0x4149d4,_0x4fcaec,_0x2fca14));return;}tc(_0x472e10)&&Object[_0x2ceca7(0x209)](_0x472e10)[_0x2ceca7(0x29b)](([_0x24ac7a,_0x3ebffd])=>{const _0x3a0441=_0x2ceca7;_0x2fca14===_0x3a0441(0x259)&&_0x4fcaec[_0x3a0441(0x12e)](_0x24ac7a),$s(_0x3ebffd,_0x4fcaec,_0x24ac7a);});}}function ec(_0x8b9927){return Array['isArray'](_0x8b9927);}function tc(_0x2d7901){const _0x474015=_0x327967;return typeof _0x2d7901==_0x474015(0x3d8)&&!!_0x2d7901&&!Array[_0x474015(0x3fb)](_0x2d7901);}const nc=_0x1ada6c(_0x327967(0x431));let rc=class{constructor(_0x45b2c6){const _0x2b8e26=_0x327967;this[_0x2b8e26(0x33f)]=_0x45b2c6;}[_0x327967(0x3aa)](_0x34d02f){const _0xb1b01f=_0x327967;return this[_0xb1b01f(0x33f)]['getUnit'](_0x34d02f,_0x49a6be['UNIVER_BASE'])??null;}[_0x327967(0x1b5)](){const _0x39e5c5=_0x327967;return this[_0x39e5c5(0x33f)][_0x39e5c5(0x498)](_0x49a6be[_0x39e5c5(0xf9)]);}[_0x327967(0x402)](_0x2a2a30){const _0x556bc0=_0x327967;return this[_0x556bc0(0x33f)]['createUnit'](_0x49a6be[_0x556bc0(0xf9)],_0x2a2a30);}};rc=X([Y(0x0,_0x3a38b9)],rc);const ic=_0x1ada6c(_0x327967(0x332));var ac=class extends _0x4de356{constructor(..._0x4a990e){super(..._0x4a990e),G(this,'_plugins',new Map());}[_0x327967(0x263)](_0x18da9c){const _0x142b6d=_0x327967;return this[_0x142b6d(0x3ce)]['set'](_0x18da9c['type'],_0x18da9c),_0x569b00(()=>this['_plugins'][_0x142b6d(0x253)](_0x18da9c[_0x142b6d(0x346)]));}['get'](_0x1b63d){const _0x2c1bcc=_0x327967;let _0x3780f6=this['_plugins']['get'](_0x1b63d);if(!_0x3780f6)throw Error(_0x2c1bcc(0x3f0)+_0x1b63d+_0x2c1bcc(0x3cb));return _0x3780f6;}['getAll'](){const _0x232774=_0x327967;return Array[_0x232774(0x1d1)](this['_plugins'][_0x232774(0x259)]());}};const oc=[Q];let sc=class extends _0x2f79be{constructor(_0x4fb9e4=Ns,_0x5e47e6,_0x4768c3,_0x5c7371,_0x303aa6,_0x4ebf73){const _0x16ede4=_0x327967;super(),this['_config']=_0x4fb9e4,this[_0x16ede4(0x1c2)]=_0x5e47e6,this[_0x16ede4(0x1ba)]=_0x4768c3,this['_univerInstanceService']=_0x5c7371,this['_configService']=_0x303aa6,this[_0x16ede4(0x373)]=_0x4ebf73,G(this,_0x16ede4(0x46c),new Map());let {..._0x1ec61f}=_0xcc3099({},Ns,this[_0x16ede4(0x306)]);this[_0x16ede4(0x282)][_0x16ede4(0x394)](_0x16ede4(0x422),_0x1ec61f),this[_0x16ede4(0x33f)][_0x16ede4(0x132)](_0x49a6be[_0x16ede4(0xf9)],_0x271087),this[_0x16ede4(0x33c)](),this['_initCommands'](),this[_0x16ede4(0x423)](),this[_0x16ede4(0x2fd)]();}[_0x327967(0x268)](){const _0x46952a=_0x327967;this[_0x46952a(0x1c2)][_0x46952a(0x12e)]([Lo]),this[_0x46952a(0x29e)](this[_0x46952a(0x1c2)][_0x46952a(0x318)](_0x2823d6)['registerCommand'](Ro)),this[_0x46952a(0x29e)](this[_0x46952a(0x1c2)]['get'](_0x2823d6)[_0x46952a(0x482)](zo)),this[_0x46952a(0x29e)](this[_0x46952a(0x1c2)]['get'](_0x77c4ee)['registerRuleModel'](_0x230625['Base'],this[_0x46952a(0x1c2)][_0x46952a(0x318)](Lo),Ro['id'],zo['id']));}['onReady'](){const _0x4dc882=_0x327967;_0x253fbd(this['_injector'],[[rc],[qr],[Rs]]),this[_0x4dc882(0x33f)][_0x4dc882(0x498)](_0x49a6be['UNIVER_BASE'])['forEach'](_0x18c35c=>this[_0x4dc882(0x419)](_0x18c35c[_0x4dc882(0x40a)]())),_0x253fbd(this[_0x4dc882(0x1c2)],[[zs],[Us]]);}['_initDependencies'](){const _0x56826d=_0x327967;[[mr,{'useClass':hr}],[ic,{'useClass':ac}],[ii,{'useClass':si}],[nc,{'useClass':rc}],[Br,{'useClass':Vr}],[Kr,{'useClass':qr}],[Rs],[zs],[Us]][_0x56826d(0x29b)](_0x5aa418=>this[_0x56826d(0x1c2)][_0x56826d(0x12e)](_0x5aa418));}[_0x327967(0x48a)](){const _0x51619c=_0x327967;[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][_0x51619c(0x29b)](_0x1fdda0=>this[_0x51619c(0x29e)](this[_0x51619c(0x1ba)][_0x51619c(0x482)](_0x1fdda0))),oc[_0x51619c(0x29b)](_0x175722=>{const _0x173298=_0x51619c;var _0x1d84b7;return(_0x1d84b7=this[_0x173298(0x373)])==null?void 0x0:_0x1d84b7[_0x173298(0x390)](_0x175722);});}[_0x327967(0x2fd)](){const _0x24ef1d=_0x327967;this[_0x24ef1d(0x373)]&&(this['disposeWithMe'](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x49a6be[_0x24ef1d(0xf9)])[_0x24ef1d(0x16f)](({unit:_0x2af443})=>{const _0x157dd4=_0x24ef1d;this[_0x157dd4(0x419)](_0x2af443[_0x157dd4(0x40a)]());})),this[_0x24ef1d(0x29e)](this[_0x24ef1d(0x33f)][_0x24ef1d(0x38d)](_0x49a6be[_0x24ef1d(0xf9)])[_0x24ef1d(0x16f)](_0x3f16a2=>{const _0x21928c=_0x24ef1d;var _0x1b2f8a;(_0x1b2f8a=this['_baseSyncDisposables']['get'](_0x3f16a2[_0x21928c(0x40a)]()))==null||_0x1b2f8a[_0x21928c(0x2b1)](),this[_0x21928c(0x46c)]['delete'](_0x3f16a2[_0x21928c(0x40a)]());})));}['_syncBaseUnit'](_0x546f2f){const _0xab626a=_0x327967;this[_0xab626a(0x373)]&&!this['_baseSyncDisposables'][_0xab626a(0x103)](_0x546f2f)&&this['_baseSyncDisposables'][_0xab626a(0x3fe)](_0x546f2f,this[_0xab626a(0x373)]['syncUnit'](_0x546f2f));}[_0x327967(0x423)](){const _0x2ca997=_0x327967;let _0x1b14dc=this[_0x2ca997(0x1c2)][_0x2ca997(0x318)](mr);zn()[_0x2ca997(0x29b)](_0x1050b7=>_0x1b14dc[_0x2ca997(0x263)](_0x1050b7));let _0x121bc0=this[_0x2ca997(0x1c2)][_0x2ca997(0x318)](ic),_0x5f3889=this[_0x2ca997(0x1c2)][_0x2ca997(0x318)](ii);$r()[_0x2ca997(0x29b)](_0x595e27=>{const _0x469d75=_0x2ca997;_0x121bc0[_0x469d75(0x263)](_0x595e27),_0x5f3889[_0x469d75(0x446)](_0x595e27);});}};G(sc,_0x327967(0x264),_0x327967(0x252)),G(sc,'packageName',js),G(sc,_0x327967(0x112),Ms),G(sc,_0x327967(0x346),_0x49a6be[_0x327967(0xf9)]),sc=X([_0x32cfaf(_0x343622,_0x16307b),Y(0x1,_0x1345e2(_0x4a869a)),Y(0x2,_0x2823d6),Y(0x3,_0x3a38b9),Y(0x4,_0x3c388e),Y(0x5,_0x388498(_0x1829c1))],sc);let cc=class extends _0x2f79be{constructor(_0x52921f=Ps,_0x156160,_0x59f309,_0x268458,_0x171b55){const _0x379d35=_0x327967;super(),this['_config']=_0x52921f,this[_0x379d35(0x1c2)]=_0x156160,this[_0x379d35(0x1ba)]=_0x59f309,this[_0x379d35(0x282)]=_0x268458,this[_0x379d35(0x33f)]=_0x171b55;let {..._0x1b62fc}=_0xcc3099({},Ps,this['_config']);this[_0x379d35(0x282)][_0x379d35(0x394)]('bases.remote.config',_0x1b62fc),this['_univerInstanceService'][_0x379d35(0x132)](_0x49a6be[_0x379d35(0xf9)],_0x271087),[[mr,{'useClass':hr}],[ii,{'useClass':si}]][_0x379d35(0x29b)](_0x5ba266=>this['_injector']['add'](_0x5ba266)),oc[_0x379d35(0x29b)](_0x552a8e=>this[_0x379d35(0x29e)](this[_0x379d35(0x1ba)]['registerCommand'](_0x552a8e)));}};G(cc,_0x327967(0x264),'REMOTE_BASES_PLUGIN'),G(cc,_0x327967(0x3f3),js),G(cc,_0x327967(0x112),Ms),G(cc,'type',_0x49a6be['UNIVER_BASE']),cc=X([_0x32cfaf(_0x343622,_0x16307b),Y(0x1,_0x1345e2(_0x4a869a)),Y(0x2,_0x2823d6),Y(0x3,_0x3c388e),Y(0x4,_0x3a38b9)],cc);function lc(_0x1560e6){const _0x157100=_0x327967;let _0x153532=Cc(_0x1560e6['query']);if(!_0x153532)return{'query':'','total':0x0,'matches':[]};let _0x5f5d29=[],_0x20657b=[];for(let _0x3c58ad=0x0;_0x3c58ad<_0x1560e6[_0x157100(0x143)]['length'];_0x3c58ad++){if(!(_0x3c58ad in _0x1560e6[_0x157100(0x143)]))continue;let _0x6d5265=_0x1560e6[_0x157100(0x496)][_0x157100(0x305)][_0x1560e6[_0x157100(0x143)][_0x3c58ad]];_0x6d5265&&_0x20657b['push']({'field':_0x6d5265,'fieldIndex':_0x3c58ad});}_0x1560e6['rows'][_0x157100(0x29b)]((_0x57ee53,_0x5628ff)=>{const _0x55f461=_0x157100;_0x20657b[_0x55f461(0x29b)](({field:_0x328c32,fieldIndex:_0x5cf2ea})=>{const _0x461d34=_0x55f461;let _0x5cf9f5=uc(_0x57ee53[_0x461d34(0x259)][_0x328c32['id']],_0x328c32);if(!_0x5cf9f5)return;let _0x2177b9=Sc(_0x153532,_0x5cf9f5[_0x461d34(0x20d)]);_0x2177b9<=0x0||_0x5f5d29['push']({'recordId':_0x57ee53[_0x461d34(0x345)],'fieldId':_0x328c32['id'],'fieldType':_0x328c32[_0x461d34(0x346)],'text':_0x5cf9f5[_0x461d34(0x23a)],'score':_0x2177b9,'rowIndex':_0x5628ff,'fieldIndex':_0x5cf2ea});});}),_0x5f5d29['sort']((_0x3be8d4,_0x1ea92e)=>_0x1ea92e[_0x157100(0x18f)]-_0x3be8d4[_0x157100(0x18f)]||_0x3be8d4[_0x157100(0x257)]-_0x1ea92e['rowIndex']||_0x3be8d4[_0x157100(0x3da)]-_0x1ea92e[_0x157100(0x3da)]);let _0x14ad97=_0x1560e6[_0x157100(0x46f)]==null?_0x5f5d29:_0x5f5d29[_0x157100(0x348)](0x0,Math['max'](0x0,_0x1560e6[_0x157100(0x46f)]));return{'query':_0x153532,'total':_0x5f5d29['length'],'matches':Tc(_0x14ad97)};}function uc(_0x1933bd,_0x2573b6){const _0x2be448=_0x327967;let _0x1efaa2=[];for(let _0x48fbb2 of fc(_0x1933bd,_0x2573b6)){let _0x45caf7=Cc(_0x48fbb2);_0x45caf7&&_0x1efaa2['push'](_0x45caf7);}return _0x1efaa2[_0x2be448(0x1bf)]?{'displayText':dc(_0x1933bd,_0x2573b6),'searchTexts':wc(_0x1efaa2)}:null;}function dc(_0x538dc7,_0x54ef9f){const _0x261a56=_0x327967;switch(_0x54ef9f[_0x261a56(0x346)]){case _0x1013ad[_0x261a56(0x413)]:case _0x1013ad[_0x261a56(0x190)]:case _0x1013ad['Group']:return pc(_0x538dc7,_0x54ef9f)[_0x261a56(0x3a1)](',\x20');case _0x1013ad[_0x261a56(0x170)]:return gc(_0x538dc7);case _0x1013ad[_0x261a56(0x2b2)]:case _0x1013ad[_0x261a56(0x483)]:case _0x1013ad[_0x261a56(0xe4)]:return _c(_0x538dc7,_0x54ef9f);case _0x1013ad[_0x261a56(0x302)]:case _0x1013ad[_0x261a56(0x295)]:return vc(_0x538dc7,_0x54ef9f);case _0x1013ad[_0x261a56(0x3e1)]:return yc(_0x538dc7,_0x54ef9f);case _0x1013ad['Checkbox']:return _0x538dc7?_0x261a56(0x2a8):_0x261a56(0x151);case _0x1013ad['Attachment']:return bc(_0x538dc7)[_0x261a56(0x3a1)](',\x20');default:return xc(_0x538dc7);}}function fc(_0x2c2dac,_0x536654){const _0x57eb70=_0x327967;switch(_0x536654[_0x57eb70(0x346)]){case _0x1013ad[_0x57eb70(0x413)]:case _0x1013ad[_0x57eb70(0x190)]:case _0x1013ad['Group']:{let _0x369fbb=pc(_0x2c2dac,_0x536654);if(Array[_0x57eb70(0x3fb)](_0x2c2dac)){let _0x30fc99=[..._0x369fbb];for(let _0x305cf9=0x0;_0x305cf9<_0x2c2dac['length'];_0x305cf9++)_0x305cf9 in _0x2c2dac&&_0x30fc99['push'](String(_0x2c2dac[_0x305cf9]));return _0x30fc99;}return _0x2c2dac==null?_0x369fbb:[..._0x369fbb,String(_0x2c2dac)];}case _0x1013ad[_0x57eb70(0x170)]:{let _0xf1bf03=hc(_0x2c2dac);return[_0xf1bf03[_0x57eb70(0x179)],_0xf1bf03['url']];}case _0x1013ad[_0x57eb70(0x2b2)]:case _0x1013ad[_0x57eb70(0x483)]:case _0x1013ad[_0x57eb70(0xe4)]:return[_c(_0x2c2dac,_0x536654),xc(_0x2c2dac)];case _0x1013ad['Number']:case _0x1013ad[_0x57eb70(0x295)]:return[vc(_0x2c2dac,_0x536654),xc(_0x2c2dac)];case _0x1013ad[_0x57eb70(0x3e1)]:return[yc(_0x2c2dac,_0x536654),xc(_0x2c2dac)];case _0x1013ad['Checkbox']:return _0x2c2dac?[_0x57eb70(0x2a8),_0x57eb70(0xe7),_0x57eb70(0x2df)]:['Unchecked','No',_0x57eb70(0x23e)];case _0x1013ad[_0x57eb70(0x49d)]:return bc(_0x2c2dac);default:return[xc(_0x2c2dac)];}}function pc(_0x3101cb,_0x26aa54){const _0x4039bd=_0x327967;var _0x3bc013;let _0x1e4ce3=Array[_0x4039bd(0x3fb)]((_0x3bc013=_0x26aa54['config'])==null?void 0x0:_0x3bc013[_0x4039bd(0x495)])?_0x26aa54['config'][_0x4039bd(0x495)]:[],_0x1fff90=[];if(Array[_0x4039bd(0x3fb)](_0x3101cb)){for(let _0x13101b=0x0;_0x13101b<_0x3101cb[_0x4039bd(0x1bf)];_0x13101b++){if(!(_0x13101b in _0x3101cb))continue;let _0x5622a8=String(_0x3101cb[_0x13101b]);_0x5622a8&&_0x1fff90[_0x4039bd(0x161)](mc(_0x1e4ce3,_0x5622a8));}return _0x1fff90;}if(_0x3101cb!=null){let _0xf1f32a=String(_0x3101cb);_0xf1f32a&&_0x1fff90[_0x4039bd(0x161)](mc(_0x1e4ce3,_0xf1f32a));}return _0x1fff90;}function mc(_0x55ef06,_0x2a5d18){const _0x2a1f2b=_0x327967;for(let _0x1af62a of _0x55ef06){if(typeof _0x1af62a==_0x2a1f2b(0x2a0)&&_0x1af62a===_0x2a5d18)return _0x1af62a;if(_0x1af62a&&typeof _0x1af62a==_0x2a1f2b(0x3d8)){let _0x54d2f1=_0x1af62a;if(String(_0x54d2f1['id']??_0x54d2f1['name']??'')===_0x2a5d18||String(_0x54d2f1[_0x2a1f2b(0x158)]??'')===_0x2a5d18)return String(_0x54d2f1[_0x2a1f2b(0x158)]??_0x54d2f1['id']??_0x2a5d18);}}return _0x2a5d18;}function hc(_0x24c141){const _0x3d5bd0=_0x327967;if(_0x24c141&&typeof _0x24c141==_0x3d5bd0(0x3d8)&&!Array[_0x3d5bd0(0x3fb)](_0x24c141)){let _0x58cb8f=_0x24c141;return{'text':String(_0x58cb8f['text']??_0x58cb8f['url']??''),'url':String(_0x58cb8f[_0x3d5bd0(0x15e)]??'')};}return{'text':xc(_0x24c141),'url':xc(_0x24c141)};}function gc(_0x227e84){const _0x27ddf5=_0x327967;let _0x5ba4ba=hc(_0x227e84);return _0x5ba4ba[_0x27ddf5(0x179)]||_0x5ba4ba[_0x27ddf5(0x15e)];}function _c(_0x29816e,_0x515d5c){const _0x45ef90=_0x327967;return typeof _0x29816e!=_0x45ef90(0x218)||!Number[_0x45ef90(0x138)](_0x29816e)?'':mn(_0x29816e,_0x515d5c[_0x45ef90(0x174)]);}function vc(_0x31ca00,_0x17bffb){const _0x40325f=_0x327967;let _0x3e126a=typeof _0x31ca00==_0x40325f(0x218)?_0x31ca00:Number(_0x31ca00);return Number[_0x40325f(0x138)](_0x3e126a)?qo(_0x3e126a,_0x17bffb[_0x40325f(0x174)]):'';}function yc(_0x84eee,_0x5f27b4){const _0x50740d=_0x327967;let _0x24052d=typeof _0x84eee==_0x50740d(0x218)?_0x84eee:Number(_0x84eee);return Number[_0x50740d(0x138)](_0x24052d)?Qo(_0x24052d,_0x5f27b4[_0x50740d(0x174)]):'';}function bc(_0x11219a){const _0x233cdd=_0x327967;return Array[_0x233cdd(0x3fb)](_0x11219a)?_0x11219a[_0x233cdd(0xeb)](_0x471793=>{const _0x31c47b=_0x233cdd;if(!_0x471793||typeof _0x471793!=_0x31c47b(0x3d8))return[];let _0x180493=_0x471793,_0x2abd30=String(_0x180493['name']??_0x180493[_0x31c47b(0x15e)]??'')['trim']();return _0x2abd30?[_0x2abd30]:[];}):[];}function xc(_0x3736fb){const _0x4eae85=_0x327967;if(_0x3736fb==null)return'';if(typeof _0x3736fb=='boolean')return _0x3736fb?_0x4eae85(0x1f3):_0x4eae85(0x408);if(typeof _0x3736fb=='number')return String(_0x3736fb);if(Array['isArray'](_0x3736fb)){let _0x1029f7=[];for(let _0x2d6bfb=0x0;_0x2d6bfb<_0x3736fb[_0x4eae85(0x1bf)];_0x2d6bfb++){if(!(_0x2d6bfb in _0x3736fb))continue;let _0x49bb7b=xc(_0x3736fb[_0x2d6bfb]);_0x49bb7b&&_0x1029f7[_0x4eae85(0x161)](_0x49bb7b);}return _0x1029f7['join'](',\x20');}if(typeof _0x3736fb==_0x4eae85(0x3d8)){let _0x54cc0a=_0x3736fb;return String(_0x54cc0a['title']??_0x54cc0a['name']??_0x54cc0a[_0x4eae85(0x179)]??_0x54cc0a[_0x4eae85(0x15e)]??'')['trim']();}return String(_0x3736fb);}function Sc(_0x4f8d07,_0x355fa3){const _0x861d47=_0x327967;let _0x4d404d=0x0;for(let _0x271d2e of _0x355fa3)if(_0x271d2e){if(_0x271d2e===_0x4f8d07){_0x4d404d=Math[_0x861d47(0x31a)](_0x4d404d,0x12c);continue;}if(_0x271d2e['startsWith'](_0x4f8d07)){_0x4d404d=Math[_0x861d47(0x31a)](_0x4d404d,0xfa);continue;}_0x271d2e[_0x861d47(0x45c)](_0x4f8d07)&&(_0x4d404d=Math[_0x861d47(0x31a)](_0x4d404d,0xc8));}return _0x4d404d;}function Cc(_0x16f5a9){const _0x27f1a4=_0x327967;return _0x16f5a9[_0x27f1a4(0x140)]()[_0x27f1a4(0x42d)](/\s+/g,'\x20')[_0x27f1a4(0x3af)]();}function wc(_0x11977c){const _0x4b02d7=_0x327967;return Array[_0x4b02d7(0x1d1)](new Set(_0x11977c));}function Tc(_0x1ed515){const _0x4d136a=_0x327967;let _0xbcdd51=[];for(let {rowIndex:_0x3f9f4e,fieldIndex:_0x2a4ece,..._0x28ed35}of _0x1ed515)_0xbcdd51[_0x4d136a(0x161)](_0x28ed35);return _0xbcdd51;}function Ec(_0x5710e4){const _0x53264d=_0x327967;return{'compress':!0x0,'kind':'base-range-values-v1','u':_0x5710e4[_0x53264d(0x409)],'t':_0x5710e4['tableId'],'p':_0x5710e4[_0x53264d(0x14b)][_0x53264d(0x412)](_0x170584=>[_0x170584['row'],_0x170584[_0x53264d(0x36b)],Ac(_0x170584[_0x53264d(0x1e1)])]),..._0x5710e4[_0x53264d(0x243)]===void 0x0?{}:{'g':_0x5710e4[_0x53264d(0x243)]}};}function Dc(_0x3e5733){const _0x2dc3d5=_0x327967;if(Lc(_0x3e5733,_0x2dc3d5(0x315)),!Oc(_0x3e5733)){if(!Ic(_0x3e5733))throw Error(_0x2dc3d5(0x328));return _0x3e5733;}return{'unitId':_0x3e5733['u'],'tableId':_0x3e5733['t'],'patches':_0x3e5733['p'][_0x2dc3d5(0x412)](([_0x5b0ae3,_0x12325b,_0x3cea31])=>({'row':_0x5b0ae3,'col':_0x12325b,'value':jc(_0x3cea31)})),..._0x3e5733['g']===void 0x0?{}:{'trigger':_0x3e5733['g']}};}function Oc(_0x4b0ecd){const _0x4120a3=_0x327967;return!Rc(_0x4b0ecd)||_0x4b0ecd[_0x4120a3(0x146)]!==!0x0||_0x4b0ecd[_0x4120a3(0x428)]!==_0x4120a3(0x315)?!0x1:typeof _0x4b0ecd['u']==_0x4120a3(0x2a0)&&typeof _0x4b0ecd['t']=='string'&&(_0x4b0ecd['g']===void 0x0||typeof _0x4b0ecd['g']==_0x4120a3(0x2a0))&&Array[_0x4120a3(0x3fb)](_0x4b0ecd['p'])&&_0x4b0ecd['p']['every'](_0x11c95d=>Array[_0x4120a3(0x3fb)](_0x11c95d)&&_0x11c95d[_0x4120a3(0x1bf)]===0x3&&Number[_0x4120a3(0xe9)](_0x11c95d[0x0])&&Number[_0x4120a3(0xe9)](_0x11c95d[0x1]));}function kc(_0x259afe){const _0x338328=_0x327967;return!Rc(_0x259afe)||_0x259afe[_0x338328(0x146)]!==!0x0||_0x259afe[_0x338328(0x428)]!==_0x338328(0x41d)||!Rc(_0x259afe[_0x338328(0x486)])?!0x1:Object[_0x338328(0x259)](_0x259afe[_0x338328(0x486)])[_0x338328(0x44b)](_0x118481=>Rc(_0x118481)&&(_0x118481['cd']===void 0x0||Array[_0x338328(0x3fb)](_0x118481['cd'])&&_0x118481['cd'][_0x338328(0x44b)](_0x4e3f2e=>Array['isArray'](_0x4e3f2e)&&_0x4e3f2e[_0x338328(0x1bf)]===0x3&&Number[_0x338328(0xe9)](_0x4e3f2e[0x0])&&Number[_0x338328(0xe9)](_0x4e3f2e[0x1])&&Fc(_0x4e3f2e[0x2]))));}function Ac(_0x5e75ad){return Pc(_0x5e75ad)?Mc(_0x5e75ad):_0x5e75ad;}function jc(_0x38d1b2){return Fc(_0x38d1b2)?Nc(_0x38d1b2):_0x38d1b2;}function Mc(_0x1d9888){return{'c':0x1,..._0x1d9888['v']===void 0x0?{}:{'v':_0x1d9888['v']},..._0x1d9888['t']!==void 0x0&&_0x1d9888['t']!==null?{'t':_0x1d9888['t']}:_0x1d9888['t']===null?{'t':null}:{},..._0x1d9888['f']!==void 0x0&&_0x1d9888['f']!==null?{'f':_0x1d9888['f']}:_0x1d9888['f']===null?{'f':null}:{},..._0x1d9888['si']!==void 0x0&&_0x1d9888['si']!==null?{'si':_0x1d9888['si']}:_0x1d9888['si']===null?{'si':null}:{},..._0x1d9888['p']!==void 0x0&&_0x1d9888['p']!==null?{'p':_0x1d9888['p']}:_0x1d9888['p']===null?{'p':null}:{}};}function Nc(_0x5b8ab3){return{..._0x5b8ab3['v']===void 0x0?{}:{'v':_0x5b8ab3['v']},..._0x5b8ab3['t']===void 0x0?{}:{'t':_0x5b8ab3['t']},..._0x5b8ab3['f']===void 0x0?{}:{'f':_0x5b8ab3['f']},..._0x5b8ab3['si']===void 0x0?{}:{'si':_0x5b8ab3['si']},..._0x5b8ab3['p']===void 0x0?{}:{'p':_0x5b8ab3['p']}};}function Pc(_0xf298a8){const _0x286454=_0x327967;return!!_0xf298a8&&typeof _0xf298a8==_0x286454(0x3d8)&&!Array['isArray'](_0xf298a8)&&(Object['prototype']['hasOwnProperty'][_0x286454(0x171)](_0xf298a8,'v')||Object['prototype'][_0x286454(0x150)]['call'](_0xf298a8,'t')||Object[_0x286454(0x331)][_0x286454(0x150)][_0x286454(0x171)](_0xf298a8,'p')||Object[_0x286454(0x331)][_0x286454(0x150)][_0x286454(0x171)](_0xf298a8,'f')||Object[_0x286454(0x331)]['hasOwnProperty'][_0x286454(0x171)](_0xf298a8,'si'));}function Fc(_0xf37247){return Rc(_0xf37247)&&_0xf37247['c']===0x1;}function Ic(_0x4e5e44){const _0x3a9092=_0x327967;return Rc(_0x4e5e44)&&typeof _0x4e5e44[_0x3a9092(0x409)]=='string'&&typeof _0x4e5e44[_0x3a9092(0x19a)]==_0x3a9092(0x2a0)&&(_0x4e5e44['trigger']===void 0x0||typeof _0x4e5e44[_0x3a9092(0x243)]=='string')&&Array['isArray'](_0x4e5e44[_0x3a9092(0x14b)])&&_0x4e5e44['patches']['every'](_0x5e7afd=>Rc(_0x5e7afd)&&Number['isInteger'](_0x5e7afd[_0x3a9092(0x124)])&&Number[_0x3a9092(0xe9)](_0x5e7afd['col'])&&_0x3a9092(0x1e1)in _0x5e7afd);}function Lc(_0x1c4b5b,_0x24d032){const _0x27f679=_0x327967;if(Rc(_0x1c4b5b)&&_0x1c4b5b[_0x27f679(0x146)]===!0x0){if(_0x1c4b5b[_0x27f679(0x428)]!==_0x24d032)throw Error(_0x27f679(0x3e7)+String(_0x1c4b5b[_0x27f679(0x428)])+'\x22.');if(!(_0x24d032==='base-range-values-v1'?Oc(_0x1c4b5b):kc(_0x1c4b5b)))throw Error(_0x27f679(0x392)+_0x24d032+'\x22.');}}function Rc(_0x158ef4){const _0x14a49d=_0x327967;return!!_0x158ef4&&typeof _0x158ef4==_0x14a49d(0x3d8)&&!Array[_0x14a49d(0x3fb)](_0x158ef4);}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,_0x15970e 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};