@univerjs-pro/bases 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +21 -9
  2. package/lib/cjs/config-CTOS-Fzg.js +1 -0
  3. package/lib/cjs/facade.js +1 -1
  4. package/lib/cjs/index.js +1 -1
  5. package/lib/cjs/locale/ar-SA.js +1 -1
  6. package/lib/cjs/locale/ca-ES.js +1 -1
  7. package/lib/cjs/locale/de-DE.js +1 -1
  8. package/lib/cjs/locale/en-US.js +1 -1
  9. package/lib/cjs/locale/es-ES.js +1 -1
  10. package/lib/cjs/locale/fa-IR.js +1 -1
  11. package/lib/cjs/locale/fr-FR.js +1 -1
  12. package/lib/cjs/locale/id-ID.js +1 -1
  13. package/lib/cjs/locale/it-IT.js +1 -1
  14. package/lib/cjs/locale/ja-JP.js +1 -1
  15. package/lib/cjs/locale/ko-KR.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/vi-VN.js +1 -1
  21. package/lib/cjs/locale/zh-CN.js +1 -1
  22. package/lib/cjs/locale/zh-HK.js +1 -1
  23. package/lib/cjs/locale/zh-TW.js +1 -1
  24. package/lib/cjs/worker.js +1 -1
  25. package/lib/config-DDy_jw9I.js +1 -0
  26. package/lib/es/config-DDy_jw9I.js +1 -0
  27. package/lib/es/facade.js +1 -1
  28. package/lib/es/index.js +1 -1
  29. package/lib/es/locale/ar-SA.js +1 -1
  30. package/lib/es/locale/ca-ES.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/vi-VN.js +1 -1
  45. package/lib/es/locale/zh-CN.js +1 -1
  46. package/lib/es/locale/zh-HK.js +1 -1
  47. package/lib/es/locale/zh-TW.js +1 -1
  48. package/lib/es/worker.js +1 -1
  49. package/lib/facade.js +1 -1
  50. package/lib/index.js +1 -1
  51. package/lib/locale/ar-SA.js +1 -1
  52. package/lib/locale/ca-ES.js +1 -1
  53. package/lib/locale/de-DE.js +1 -1
  54. package/lib/locale/en-US.js +1 -1
  55. package/lib/locale/es-ES.js +1 -1
  56. package/lib/locale/fa-IR.js +1 -1
  57. package/lib/locale/fr-FR.js +1 -1
  58. package/lib/locale/id-ID.js +1 -1
  59. package/lib/locale/it-IT.js +1 -1
  60. package/lib/locale/ja-JP.js +1 -1
  61. package/lib/locale/ko-KR.js +1 -1
  62. package/lib/locale/pl-PL.js +1 -1
  63. package/lib/locale/pt-BR.js +1 -1
  64. package/lib/locale/ru-RU.js +1 -1
  65. package/lib/locale/sk-SK.js +1 -1
  66. package/lib/locale/vi-VN.js +1 -1
  67. package/lib/locale/zh-CN.js +1 -1
  68. package/lib/locale/zh-HK.js +1 -1
  69. package/lib/locale/zh-TW.js +1 -1
  70. package/lib/types/facade/f-range.d.ts +16 -2
  71. package/lib/types/facade/f-record.d.ts +14 -0
  72. package/lib/types/facade/f-table.d.ts +3 -0
  73. package/lib/types/index.d.ts +0 -3
  74. package/lib/umd/facade.js +1 -1
  75. package/lib/umd/index.js +1 -1
  76. package/lib/umd/locale/ar-SA.js +1 -1
  77. package/lib/umd/locale/ca-ES.js +1 -1
  78. package/lib/umd/locale/de-DE.js +1 -1
  79. package/lib/umd/locale/en-US.js +1 -1
  80. package/lib/umd/locale/es-ES.js +1 -1
  81. package/lib/umd/locale/fa-IR.js +1 -1
  82. package/lib/umd/locale/fr-FR.js +1 -1
  83. package/lib/umd/locale/id-ID.js +1 -1
  84. package/lib/umd/locale/it-IT.js +1 -1
  85. package/lib/umd/locale/ja-JP.js +1 -1
  86. package/lib/umd/locale/ko-KR.js +1 -1
  87. package/lib/umd/locale/pl-PL.js +1 -1
  88. package/lib/umd/locale/pt-BR.js +1 -1
  89. package/lib/umd/locale/ru-RU.js +1 -1
  90. package/lib/umd/locale/sk-SK.js +1 -1
  91. package/lib/umd/locale/vi-VN.js +1 -1
  92. package/lib/umd/locale/zh-CN.js +1 -1
  93. package/lib/umd/locale/zh-HK.js +1 -1
  94. package/lib/umd/locale/zh-TW.js +1 -1
  95. package/lib/worker.js +1 -1
  96. package/package.json +10 -10
  97. package/lib/cjs/worker-BDigGzY4.js +0 -1
  98. package/lib/es/worker-1CbynS32.js +0 -1
  99. package/lib/worker-1CbynS32.js +0 -1
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x42cb2d=_0x4bdd;(function(_0x1076fc,_0x4b1d47){const _0x5aa408=_0x4bdd,_0x585dfb=_0x1076fc();while(!![]){try{const _0x21a686=-parseInt(_0x5aa408(0x179))/0x1+parseInt(_0x5aa408(0x280))/0x2+parseInt(_0x5aa408(0x18b))/0x3*(parseInt(_0x5aa408(0x215))/0x4)+parseInt(_0x5aa408(0x28f))/0x5+parseInt(_0x5aa408(0x1f0))/0x6*(-parseInt(_0x5aa408(0x183))/0x7)+-parseInt(_0x5aa408(0x1e7))/0x8*(-parseInt(_0x5aa408(0x184))/0x9)+-parseInt(_0x5aa408(0x267))/0xa;if(_0x21a686===_0x4b1d47)break;else _0x585dfb['push'](_0x585dfb['shift']());}catch(_0x4e3f6e){_0x585dfb['push'](_0x585dfb['shift']());}}}(_0x1281,0x676c2));import{ApplyBaseJson1Mutation as _0x178c24,BASE_TABLE_NAME_REQUIREMENTS as _0x2e61f6,BaseConditionalColorRuleUpdateType as _0x36384f,BaseEventSource as _0x220938,BaseHierarchyErrorCode as _0x1d94db,BatchCreateBaseRecordsCommand as _0x30ed55,BatchDeleteBaseRecordsCommand as _0x259e76,ChangeBaseFieldTypeCommand as _0x1d22f3,CreateBaseChildRecordCommand as _0x38016d,CreateBaseFieldCommand as _0x89725e,CreateBaseRecordCommand as _0x470e4e,CreateBaseTableCommand as _0x1d6ad3,CreateBaseViewCommand as _0x471b73,DeleteBaseFieldCommand as _0x14a5d6,DeleteBaseRecordCommand as _0x36855b,DeleteBaseTableCommand as _0x359c6b,DeleteBaseViewCommand as _0x3ddbc,DuplicateBaseRecordCommand as _0x328e28,IBaseProjectionService as _0x5da3e7,MoveBaseFieldCommand as _0x249bdd,MoveBaseHierarchyRecordCommand as _0x146970,MoveBaseViewCommand as _0x1f38e3,RenameBaseTableCommand as _0x47dfb5,RenameBaseViewCommand as _0x3f17b8,SetBaseNameCommand as _0x3cf18e,SetBasePermissionCommand as _0x28b4ab,SetBasePermissionsCommand as _0x1648f2,SetBaseRangeValuesCommand as _0x1fa9ec,SetBaseRecordValuesCommand as _0x54705e,SetBaseTableHierarchyFieldCommand as _0x71b3cc,SetBaseViewFieldOrderCommand as _0x3556fb,SetBaseViewFieldVisibleCommand as _0xc297cb,SetBaseViewFieldWidthCommand as _0x2dfde8,SetBaseViewFilterCommand as _0x95d2fe,SetBaseViewGroupCommand as _0x37eaa0,SetBaseViewSortCommand as _0x118bc9,UpdateBaseCellCommand as _0x50c883,UpdateBaseFieldCommand as _0x1ed29e,UpdateBaseRecordOrderCommand as _0x474036,UpdateBaseViewConditionalColorRulesCommand as _0x16d73a,UpdateBaseViewConfigCommand as _0x189b25,ValidateBaseFormulaCommand as _0x4ec7a3,buildBaseHierarchyIndex as _0x4aa1d4,canEditBaseTargets as _0x1c997c,copyBaseTableSnapshot as _0x4ca2a4,createUniqueBaseTableName as _0x242756,ensureBaseTableCellLayout as _0x240454,getActiveBaseHierarchyFieldIds as _0x1d243e,getBaseCellValue as _0x43d937,getBaseFieldPermissionObjectId as _0x12d38e,getBaseFormulaTableName as _0x7344c5,getBaseHierarchyDeletePromotions as _0x38e02b,getBasePermissionValue as _0x135be6,getBaseRecordPermissionObjectId as _0x48675a,getBaseTablePermissionObjectId as _0x50fcb8,getBaseViewPermissionObjectId as _0x3f6a97,getRecordLinkFieldConfig as _0x34bd1d,matchesBaseCondition as _0x17312a,parseRecordLinkIds as _0x46817c,resolveBaseHierarchyFieldId as _0x1d8e8c,resolveBaseRangeHierarchyPatches as _0x28902e,searchBaseTable as _0x4f0889,serializeRecordLinkIds as _0x12a947,validateBaseHierarchyRecordCreations as _0x3474ef,validateBaseHierarchyRecordPatches as _0x3495d4,validateBaseTableName as _0x17aac3,validateRecordLinkValue as _0x102940}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2737b3,BaseConditionalColorOperator as _0x47fd54,BaseConditionalColorTarget as _0x3ea519,BaseConditionalDateMode as _0x756c91,BaseFieldType as _0x334db4,BaseFilterConjunction as _0x5a09a5,BaseFilterOperator as _0xf13532,BaseHierarchyInvalidReason as _0x125b1b,BaseRecordLinkRole as _0x50fcc1,BaseSortDirection as _0x42481e,BaseViewType as _0x2dedc2,CanceledError as _0x3f6a5c,ICommandService as _0x35296b,IPermissionService as _0x5ad99d,IResourceLoaderService as _0x180241,ImageSourceType as _0x3afc43,Inject as _0x18fc25,Injector as _0x7ee076,Tools as _0x537bdf,UniverInstanceType as _0xfc0289,createDefaultBaseTableSnapshot as _0x13ff92,generateRandomId as _0x4f9ee0}from'@univerjs/core';import*as _0x37c8e5 from'@univerjs/core/facade';import{FBaseInitialable as _0x3f2488,FEnum as _0x3c7e49,FEventName as _0x3e96b9,FUniver as _0x13f4e8}from'@univerjs/core/facade';import{UnitAction as _0x5323a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5c4e67}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3910b6,_0x5b70e7,_0xa0c3e1){const _0x1f0b13=_0x4bdd;this['_unitId']=_0x3910b6,this[_0x1f0b13(0x27d)]=_0x5b70e7,this['_permissionService']=_0xa0c3e1;}async[_0x42cb2d(0x2d6)](_0x59d711){const _0x6e2eeb=_0x42cb2d;return this['_commandService'][_0x6e2eeb(0x237)](_0x1648f2['id'],{'unitId':this[_0x6e2eeb(0x29b)],'changes':_0x59d711});}async[_0x42cb2d(0x2b9)](_0x589d31,_0x13fba5){const _0x614b72=_0x42cb2d;await this['_commandService'][_0x614b72(0x237)](_0x28b4ab['id'],{'unitId':this[_0x614b72(0x29b)],'objectId':this[_0x614b72(0x29b)],'action':_0x589d31,'value':_0x13fba5});}[_0x42cb2d(0x2c0)](_0x16fb9c){const _0x421e22=_0x42cb2d;return _0x135be6(this['_permissionService'],this[_0x421e22(0x29b)],this['_unitId'],_0x16fb9c);}async[_0x42cb2d(0x206)](_0x4bf1e5=!0x0){const _0x375b79=_0x42cb2d;await this[_0x375b79(0x27d)]['executeCommand'](_0x28b4ab['id'],{'unitId':this[_0x375b79(0x29b)],'objectId':this[_0x375b79(0x29b)],'action':_0x5323a9[_0x375b79(0x268)],'value':_0x4bf1e5});}async[_0x42cb2d(0x28a)](){const _0x155dff=_0x42cb2d;await this['_commandService'][_0x155dff(0x237)](_0x28b4ab['id'],{'unitId':this[_0x155dff(0x29b)],'objectId':this[_0x155dff(0x29b)],'action':_0x5323a9['Edit'],'value':!0x1});}['canEdit'](){const _0x53a307=_0x42cb2d;return _0x135be6(this[_0x53a307(0x2a5)],this['_unitId'],this[_0x53a307(0x29b)],_0x5323a9[_0x53a307(0x268)]);}},L=class{constructor(_0x57b5db,_0x13a82e,_0x63a8e1,_0x1702f8,_0x346dbb){const _0x4dea79=_0x42cb2d;this[_0x4dea79(0x29b)]=_0x57b5db,this[_0x4dea79(0x246)]=_0x13a82e,this[_0x4dea79(0x2b2)]=_0x63a8e1,this[_0x4dea79(0x27d)]=_0x1702f8,this[_0x4dea79(0x2a5)]=_0x346dbb;}async['setEditable'](_0x5d6b9f=!0x0){const _0x5881f2=_0x42cb2d;await this[_0x5881f2(0x27d)][_0x5881f2(0x237)](_0x28b4ab['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x5323a9[_0x5881f2(0x268)],'value':_0x5d6b9f});}async[_0x42cb2d(0x28a)](){const _0x496985=_0x42cb2d;await this[_0x496985(0x27d)][_0x496985(0x237)](_0x28b4ab['id'],{'unitId':this[_0x496985(0x29b)],'objectId':this[_0x496985(0x246)],'action':_0x5323a9[_0x496985(0x268)],'value':!0x1});}['canEdit'](){const _0xff5cf3=_0x42cb2d;return _0x1c997c(this[_0xff5cf3(0x2a5)],this['_unitId'],[...this[_0xff5cf3(0x2b2)],this['_objectId']]);}};function R(_0x13ad27,_0x2cfb21){return function(_0x2de135,_0x4ae055){_0x2cfb21(_0x2de135,_0x4ae055,_0x13ad27);};}function z(_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a){const _0x2d579f=_0x42cb2d;var _0x3aefb9=arguments[_0x2d579f(0x1b9)],_0x1703da=_0x3aefb9<0x3?_0x20301b:_0x1e653a===null?_0x1e653a=Object[_0x2d579f(0x29a)](_0x20301b,_0x57aef1):_0x1e653a,_0x5dcf95;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2d579f(0x262))_0x1703da=Reflect[_0x2d579f(0x289)](_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a);else{for(var _0x1a7e0d=_0x82fd3e[_0x2d579f(0x1b9)]-0x1;_0x1a7e0d>=0x0;_0x1a7e0d--)(_0x5dcf95=_0x82fd3e[_0x1a7e0d])&&(_0x1703da=(_0x3aefb9<0x3?_0x5dcf95(_0x1703da):_0x3aefb9>0x3?_0x5dcf95(_0x20301b,_0x57aef1,_0x1703da):_0x5dcf95(_0x20301b,_0x57aef1))||_0x1703da);}return _0x3aefb9>0x3&&_0x1703da&&Object[_0x2d579f(0x187)](_0x20301b,_0x57aef1,_0x1703da),_0x1703da;}let B=class{constructor(_0x31e807,_0x16aed2,_0x4da8b3,_0x3d1f8e,_0x379fba){const _0x3df6af=_0x42cb2d;this['_base']=_0x31e807,this[_0x3df6af(0x1f9)]=_0x16aed2,this[_0x3df6af(0x29f)]=_0x4da8b3,this[_0x3df6af(0x27d)]=_0x3d1f8e,this[_0x3df6af(0x2a5)]=_0x379fba;}[_0x42cb2d(0x25a)](){return this['_fieldId'];}[_0x42cb2d(0x274)](){const _0x5a2ca5=_0x42cb2d;let _0x1bcd16=this[_0x5a2ca5(0x1f9)][_0x5a2ca5(0x25a)]();return new L(this[_0x5a2ca5(0x204)][_0x5a2ca5(0x25a)](),_0x12d38e(_0x1bcd16,this[_0x5a2ca5(0x29f)]),[_0x50fcb8(_0x1bcd16)],this[_0x5a2ca5(0x27d)],this[_0x5a2ca5(0x2a5)]);}['getField'](){const _0x549325=_0x42cb2d;return this[_0x549325(0x23f)]();}[_0x42cb2d(0x214)](){const _0x2b027d=_0x42cb2d;return this[_0x2b027d(0x23f)]()[_0x2b027d(0x1e8)];}[_0x42cb2d(0x1ae)](){return this['_getField']()['type'];}['getConfig'](){const _0x584239=_0x42cb2d;return this[_0x584239(0x23f)]()[_0x584239(0x22b)];}['getDefaultValue'](){const _0x174744=_0x42cb2d;return this[_0x174744(0x23f)]()['defaultValue'];}[_0x42cb2d(0x2d7)](){const _0x2e44f1=_0x42cb2d;return this[_0x2e44f1(0x23f)]()['description'];}[_0x42cb2d(0x20e)](){const _0x3ace17=_0x42cb2d;return!!this[_0x3ace17(0x23f)]()['readonly'];}[_0x42cb2d(0x174)](_0x58361e){const _0x40c0ab=_0x42cb2d;return this[_0x40c0ab(0x244)]({'name':_0x58361e});}[_0x42cb2d(0x285)](_0x3518aa,_0x4f5fea){const _0x280585=_0x42cb2d;return this[_0x280585(0x244)]({'config':_0x3518aa},_0x4f5fea);}['setDefaultValue'](_0x55d1cc){return this['update']({'defaultValue':_0x55d1cc});}['update'](_0x3cdc5a,_0x16092b){const _0x445f89=_0x42cb2d;let _0x51b644=this[_0x445f89(0x23f)]()[_0x445f89(0x235)];return(_0x3cdc5a['type']??_0x51b644)===_0x334db4[_0x445f89(0x1ca)]&&(Object['prototype'][_0x445f89(0x222)][_0x445f89(0x1bc)](_0x3cdc5a,'config')||_0x3cdc5a[_0x445f89(0x235)]===_0x334db4[_0x445f89(0x1ca)])&&!this[_0x445f89(0x27e)](_0x16092b)?!0x1:this[_0x445f89(0x27d)][_0x445f89(0x1ac)](_0x1ed29e['id'],{'unitId':this[_0x445f89(0x204)][_0x445f89(0x25a)](),'tableId':this['_table'][_0x445f89(0x25a)](),'fieldId':this[_0x445f89(0x29f)],'patch':_0x3cdc5a});}[_0x42cb2d(0x1f6)](_0x5ed279,_0x12f0bd={},_0x5717b5){const _0x5bccdc=_0x42cb2d;return _0x5ed279===_0x334db4[_0x5bccdc(0x1ca)]&&!this[_0x5bccdc(0x27e)](_0x5717b5)?!0x1:this[_0x5bccdc(0x27d)][_0x5bccdc(0x1ac)](_0x1d22f3['id'],{'unitId':this['_base'][_0x5bccdc(0x25a)](),'tableId':this[_0x5bccdc(0x1f9)]['getId'](),'fieldId':this[_0x5bccdc(0x29f)],'input':{'type':_0x5ed279,'config':_0x12f0bd}});}['delete'](){const _0x2186df=_0x42cb2d;return this['_commandService'][_0x2186df(0x1ac)](_0x14a5d6['id'],{'unitId':this['_base'][_0x2186df(0x25a)](),'tableId':this[_0x2186df(0x1f9)][_0x2186df(0x25a)](),'fieldId':this['_fieldId']});}[_0x42cb2d(0x181)](_0x141b6b){const _0x280496=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x249bdd['id'],{'unitId':this[_0x280496(0x204)][_0x280496(0x25a)](),'tableId':this[_0x280496(0x1f9)][_0x280496(0x25a)](),'fieldId':this[_0x280496(0x29f)],'target':_0x141b6b});}[_0x42cb2d(0x23f)](){const _0x395b99=_0x42cb2d;let _0x1d285d=this['_table'][_0x395b99(0x1d3)]()['fields'][this[_0x395b99(0x29f)]];if(!_0x1d285d)throw Error(_0x395b99(0x18c)+this[_0x395b99(0x29f)]+_0x395b99(0x209));return _0x1d285d;}[_0x42cb2d(0x27e)](_0x513168){const _0x1d1eca=_0x42cb2d;if(!_0x513168||!Array[_0x1d1eca(0x2b0)](_0x513168[_0x1d1eca(0x26d)]))return console[_0x1d1eca(0x197)](_0x1d1eca(0x2a6)),!0x1;if(_0x513168['externalReferences'][_0x1d1eca(0x1b9)]===0x0)return!0x0;let _0x2bb2dd=this[_0x1d1eca(0x27d)][_0x1d1eca(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x1d1eca(0x204)][_0x1d1eca(0x25a)](),'references':_0x513168[_0x1d1eca(0x26d)]});return _0x2bb2dd||console['warn'](_0x1d1eca(0x1b2)),_0x2bb2dd;}};B=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d)],B);let ot=function(_0x503eed){const _0x301aa8=_0x42cb2d;return _0x503eed['Id']='id',_0x503eed[_0x301aa8(0x223)]=_0x301aa8(0x1e8),_0x503eed[_0x301aa8(0x27c)]=_0x301aa8(0x1c6),_0x503eed;}({});function _0x1281(){const _0x2ed703=['orderKey','getFieldById','getConditionalColorRules','_initBaseBeforeEvents','Facade','_getAttachmentField','setSort','createInstance','Invalid\x20attachment\x20at\x20index\x20','filter','field','mimeType','hidden','BaseSortDirection','getAllUnitsForType','getProjection','get','startColumn','_viewId','getId','sort','_resolveRecordIds','updatedAt','deleteTable','BaseRecordLinkRole','BaseTableCellValueChanged','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','function','parentRecordId','BaseEventSource','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getPrimaryFieldId','7837580CfJYRI','Edit','table','_projectionService','object','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','externalReferences','getDescendants','_getView',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','tableOrder','UUID','_initialize','getPermission','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','map','Calendar','Failed\x20to\x20add\x20records','multiple','setAttachments','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Auto','_commandService','_writeFormulaExternalReferences','startRow','1620866WqZWjy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','entries','addConditionalColorRule','endRow','setConfig','Duplicate\x20Base\x20field\x20name:\x20','test','getColumn','decorate','setReadOnly','from','has','fields','UNIVER_BASE','3313420oqWaHx','views','getRecords','_tableId',',\x20max\x20columns:\x20','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','getSnapshot','every','Unsupported\x20Base\x20field\x20type\x20\x22','cancel',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getOwnPropertyDescriptor','_unitId','fieldOrder','getParent','RecordLink','_fieldId','_getHierarchyIndex','createView','deleteConditionalColorRule','getGroup','clearConditionalColorRules','_permissionService','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyErrorCode','_initBaseAfterEvents','fieldSettings','getChildren','Gantt','getRecord','now','recordOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isArray','value','_parentObjectIds','_collectDescendantIds','_baseUnitId','source','_getFieldIds','BeforeBaseTableRecordCreate','getActiveBase','setPoint','thumbnail','offset','getRange','Grid','getValues','BaseFieldKeyEnum','getPoint','rowId','[FRecord]:\x20field\x20\x22','onCommandExecuted','_getRecordLinkField','setLinkedRecordIds','BaseFilterConjunction','hierarchyChanges','prototype','fireEvent','Remote','delete','BaseTableCreated','slice','duplicate','setFilter','viewId','getDataRange','records','getViewById','[FRecord]:\x20record\x20\x22','custom','setObjectPermissions','getDescription','stringify','Kanban','setName','getPrimaryField','\x22\x20is\x20not\x20an\x20Attachment\x20field.','targetTableId','symbol','770206nMOnMA','BeforeBaseTableViewCreate','Failed\x20to\x20create\x20view\x20\x22','BaseViewType','direction','BaseHierarchyInvalidReason','[FBaseRange]:\x20values\x20size\x20','_univerInstanceService','move','width','7esYWzC','714546BmNQCm','_getRecord','\x22:\x20expected\x20an\x20array.','defineProperty','subtreeHeightByRecordId','unitId','readonly','3WzkOHy','[FField]:\x20field\x20\x22','disposeWithMe','URL','BaseTableFieldCreated','max','BeforeBaseTableCreate','recordId','string','createdAt','_baseTableId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','warn','Clear','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','deleteRecords','includeRecords','regenerateViewIds','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getAttachments','getNumColumns','Delete','BaseTableRecordCreated','addField','clear','getHierarchyFieldId',':\x20expected\x20an\x20object.','getSort','getCurrentUnitOfType','[FRecord]:\x20RecordLink\x20field\x20\x22','removeLinkedRecord','getTables','afterFieldId','syncExecuteCommand','AND','getType','tables','moveField',':\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_range','_inject','\x22\x20has\x20invalid\x20config.','Invalid\x20Base\x20formula.','[FTable]:\x20table\x20\x22','view','length','registerEventHandler','Set','call','_getHierarchyEventContext','index','tableId','height','childrenByParentId','caseSensitive','addLinkedRecord','duplicateTable','BASE64','auto','default','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','commonExtend','Formula','deepClone','primaryFieldName','trim','boolean','BaseConditionalColorOperator','indexOf','getUnit','updateConfig','getTable','_getTable','insertTable','endColumn','reason','Failed\x20to\x20create\x20table\x20\x22','getNumRows','fieldKey','fieldIds','_fireBeforeHierarchyChange','push','addRecords','setFieldVisible','getUnitId','record','getFieldSettings','getRecordById','parentByRecordId','visibleCardFieldIds','[FRecord]:\x20invalid\x20RecordLink\x20value.','72VtxUAh','name','\x20exceeds\x20range\x20size\x20','Attachment','localeCompare','\x20for\x20field\x20\x22','deleteProperty','getViewByName','BaseFilterOperator','1455546eMBpzN','getFilter','\x20in\x20field\x20\x22','[FBase]:\x20invalid\x20table\x20name\x20\x22','BeforeBaseHierarchyChange','size','changeType','setConditionalColorRules','iterator','_table','[FBase]:\x20table\x20\x22','getLinkedRecordIds','Base\x20field\x20not\x20found:\x20','operator','params','matches','BaseHierarchyChanged','_injector','_prepareFormulaFieldReferences','BeforeBaseTableCellValueChange','_base','extend','setEditable','invalid','getFormulaName','\x22\x20does\x20not\x20exist.','includes','getView','primaryFieldId','recordIds','isReadonly','_assertInBounds','getTableId','getBase','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getValue','getName','130040qWidrw',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','save','description','getRow','valid','getSchema','fieldId','base','values','setValue','find','getTableByName','hasOwnProperty','Name','getFields','setValues','number','\x22.\x20','beforeCommandExecuted','BaseTableViewCreated','BaseFieldType','config','viewOrder','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getBaseId','_recordId','flatMap','Event','BeforeBaseTableFieldCreate','[FView]:\x20view\x20\x22','_resourceLoaderService','type','formula','executeCommand','FBase','notMatches','Gallery','setGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','limit','group','_getField','rows','createUnit','getTableById','system','update','conditions','_objectId'];_0x1281=function(){return _0x2ed703;};return _0x1281();}function V(_0x26a73b){const _0xe86933=_0x42cb2d;return!!(_0x26a73b&&_0x26a73b[_0xe86933(0x243)]!==!0x0&&_0x26a73b[_0xe86933(0x235)]!==_0x334db4['RecordId']);}function H(_0x36ec40,_0x4918c3,_0x41457f='id'){const _0x1b13d2=_0x42cb2d;if(!_0x4918c3)return{};let _0x171423={};return Object[_0x1b13d2(0x282)](_0x4918c3)['forEach'](([_0x13e1d5,_0x54f0e7])=>{const _0x2e498a=_0x1b13d2;let _0x35073c=ct(_0x36ec40,_0x13e1d5,_0x41457f);_0x171423[_0x35073c]=st(_0x36ec40[_0x2e498a(0x28d)][_0x35073c],_0x54f0e7);}),_0x171423;}function st(_0x5d294b,_0x4f74bd){const _0x1234ab=_0x42cb2d;if((_0x5d294b==null?void 0x0:_0x5d294b[_0x1234ab(0x235)])!==_0x334db4[_0x1234ab(0x1ea)]||_0x4f74bd==null)return _0x4f74bd;if(!Array[_0x1234ab(0x2b0)](_0x4f74bd))throw TypeError(_0x1234ab(0x265)+_0x5d294b['name']+_0x1234ab(0x186));return _0x4f74bd[_0x1234ab(0x276)]((_0x28f947,_0x13a1b5)=>lt(_0x5d294b,_0x28f947,_0x13a1b5));}function ct(_0x2bc7bc,_0x4bff9c,_0x30126f){const _0x2f42f2=_0x42cb2d;if(_0x30126f==='id'||_0x30126f===_0x2f42f2(0x1c6)&&_0x2bc7bc[_0x2f42f2(0x28d)][_0x4bff9c])return _0x4bff9c;let _0x25147d=Object['values'](_0x2bc7bc['fields'])[_0x2f42f2(0x250)](_0x306172=>_0x306172[_0x2f42f2(0x1e8)]===_0x4bff9c);if(_0x25147d[_0x2f42f2(0x1b9)]===0x1)return _0x25147d[0x0]['id'];throw _0x25147d[_0x2f42f2(0x1b9)]>0x1?Error(_0x2f42f2(0x286)+_0x4bff9c):Error(_0x2f42f2(0x1fc)+_0x4bff9c);}function lt(_0x45c8b7,_0x631533,_0x33f90f){const _0x33b2c0=_0x42cb2d;let _0x365938=_0x33b2c0(0x24f)+_0x33f90f+_0x33b2c0(0x1ec)+_0x45c8b7[_0x33b2c0(0x1e8)]+'\x22';if(!ft(_0x631533))throw TypeError(_0x365938+_0x33b2c0(0x1a5));if('url'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x216));if('type'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x270));let _0x587bbf=U(_0x631533['id'],_0x365938,'id'),_0xecfbd=U(_0x631533[_0x33b2c0(0x1e8)],_0x365938,_0x33b2c0(0x1e8)),_0x387043=U(_0x631533[_0x33b2c0(0x2b5)],_0x365938,_0x33b2c0(0x2b5));return{'id':_0x587bbf,'name':_0xecfbd,'source':_0x387043,'sourceType':ut(_0x631533['sourceType'],_0x387043,_0x365938),...dt(_0x631533,_0x33b2c0(0x252),_0x365938),...W(_0x631533,_0x33b2c0(0x1f5),_0x365938),...W(_0x631533,_0x33b2c0(0x182),_0x365938),...W(_0x631533,_0x33b2c0(0x1c0),_0x365938),...dt(_0x631533,_0x33b2c0(0x2ba),_0x365938)};}function ut(_0x53a4ff,_0x38c863,_0x2b9c4a){const _0x4bd59c=_0x42cb2d;if(_0x53a4ff==null)return _0x38c863['startsWith']('data:')?_0x3afc43[_0x4bd59c(0x1c5)]:_0x3afc43[_0x4bd59c(0x18e)];if(_0x53a4ff===_0x3afc43[_0x4bd59c(0x18e)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x272)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x1c5)])return _0x53a4ff;throw TypeError(_0x2b9c4a+_0x4bd59c(0x299));}function U(_0x472949,_0x48a52f,_0x30697e){const _0x1ab262=_0x42cb2d;if(typeof _0x472949!=_0x1ab262(0x193)||!_0x472949[_0x1ab262(0x1cd)]())throw TypeError(_0x48a52f+':\x20\x22'+_0x30697e+_0x1ab262(0x19d));return _0x472949;}function dt(_0x3ca3c9,_0x2e9c43,_0x422a29){const _0x1244a2=_0x42cb2d;let _0x232bd6=_0x3ca3c9[_0x2e9c43];if(_0x232bd6==null)return{};if(typeof _0x232bd6!='string'||!_0x232bd6[_0x1244a2(0x1cd)]())throw TypeError(_0x422a29+':\x20\x22'+_0x2e9c43+_0x1244a2(0x23c));return{[_0x2e9c43]:_0x232bd6};}function W(_0x3eafce,_0x52caf9,_0x45afba){const _0x58ae4f=_0x42cb2d;let _0xba559c=_0x3eafce[_0x52caf9];if(_0xba559c==null)return{};if(typeof _0xba559c!=_0x58ae4f(0x226)||!Number['isFinite'](_0xba559c)||_0xba559c<0x0)throw TypeError(_0x45afba+_0x58ae4f(0x1b1)+_0x52caf9+_0x58ae4f(0x212));return{[_0x52caf9]:_0xba559c};}function ft(_0x28a42e){const _0x1fc442=_0x42cb2d;return typeof _0x28a42e==_0x1fc442(0x26b)&&!!_0x28a42e&&!Array[_0x1fc442(0x2b0)](_0x28a42e);}var G;let K=G=class{constructor(_0x2e717f,_0x1547af,_0x503659,_0x339bc1,_0x18ffbc){const _0xc91a58=_0x42cb2d;this[_0xc91a58(0x204)]=_0x2e717f,this[_0xc91a58(0x1f9)]=_0x1547af,this[_0xc91a58(0x1b3)]=_0x503659,this[_0xc91a58(0x1b4)]=_0x339bc1,this[_0xc91a58(0x27d)]=_0x18ffbc,this[_0xc91a58(0x20f)]();}[_0x42cb2d(0x22e)](){const _0x5b8482=_0x42cb2d;return this['_base'][_0x5b8482(0x25a)]();}[_0x42cb2d(0x210)](){const _0x4c4042=_0x42cb2d;return this[_0x4c4042(0x1f9)][_0x4c4042(0x25a)]();}[_0x42cb2d(0x2bc)](){const _0x208af5=_0x42cb2d;return{...this[_0x208af5(0x1b3)]};}[_0x42cb2d(0x219)](){const _0x4cede8=_0x42cb2d;return this[_0x4cede8(0x1b3)][_0x4cede8(0x27f)];}[_0x42cb2d(0x288)](){const _0x577828=_0x42cb2d;return this[_0x577828(0x1b3)][_0x577828(0x258)];}['getNumRows'](){const _0x2ca9d3=_0x42cb2d;return this[_0x2ca9d3(0x1b3)][_0x2ca9d3(0x284)]-this[_0x2ca9d3(0x1b3)]['startRow']+0x1;}['getNumColumns'](){const _0x3dd349=_0x42cb2d;return this['_range'][_0x3dd349(0x1d6)]-this['_range']['startColumn']+0x1;}[_0x42cb2d(0x2be)](){const _0x1fca08=_0x42cb2d;let _0x2341e8=this[_0x1fca08(0x1d4)](),_0x42bbe3=this[_0x1fca08(0x2b6)](_0x2341e8),_0x54569d=[];for(let _0x5d74ee=this[_0x1fca08(0x1b3)]['startRow'];_0x5d74ee<=this[_0x1fca08(0x1b3)]['endRow'];_0x5d74ee++){var _0x4d5205;let _0x2b8cb8=(_0x4d5205=_0x2341e8[_0x1fca08(0x2c1)])==null?void 0x0:_0x4d5205[_0x5d74ee],_0x20a338=[];for(let _0x107f5e=this[_0x1fca08(0x1b3)][_0x1fca08(0x258)];_0x107f5e<=this[_0x1fca08(0x1b3)][_0x1fca08(0x1d6)];_0x107f5e++){let _0x17a9e6=_0x42bbe3[_0x107f5e];_0x20a338[_0x1fca08(0x1dd)](_0x2b8cb8&&_0x17a9e6?_0x43d937(_0x2341e8,_0x2b8cb8,_0x17a9e6):null);}_0x54569d[_0x1fca08(0x1dd)](_0x20a338);}return _0x54569d;}['getValue'](){var _0x28e6b0;return((_0x28e6b0=this['getValues']()[0x0])==null?void 0x0:_0x28e6b0[0x0])??null;}[_0x42cb2d(0x21f)](_0x19bbb0){const _0x48d597=_0x42cb2d;return this[_0x48d597(0x225)]([[_0x19bbb0]]);}[_0x42cb2d(0x225)](_0x4d13df){const _0xa3d1f2=_0x42cb2d;let _0x3f10b5=this[_0xa3d1f2(0x1d9)](),_0x1476a5=this[_0xa3d1f2(0x19f)]();if(_0x4d13df[_0xa3d1f2(0x1b9)]>_0x3f10b5||_0x4d13df['some'](_0x4f3963=>_0x4f3963[_0xa3d1f2(0x1b9)]>_0x1476a5)){var _0x1e3ae4;throw Error(_0xa3d1f2(0x17f)+_0x4d13df['length']+'x'+(((_0x1e3ae4=_0x4d13df[0x0])==null?void 0x0:_0x1e3ae4['length'])??0x0)+_0xa3d1f2(0x1e9)+_0x3f10b5+'x'+_0x1476a5+'.');}let _0x464d3e=this[_0xa3d1f2(0x1d4)](),_0x35ba30=this['_getFieldIds'](_0x464d3e),_0x1414d9=_0x4d13df[_0xa3d1f2(0x230)]((_0x195372,_0x597d9b)=>_0x195372[_0xa3d1f2(0x276)]((_0x525f7a,_0x18cdbc)=>{const _0x43811d=_0xa3d1f2;var _0x1d1a87;let _0xf0153d=this['_range'][_0x43811d(0x27f)]+_0x597d9b,_0x1ee2de=_0x35ba30[this[_0x43811d(0x1b3)][_0x43811d(0x258)]+_0x18cdbc],_0x2bcf72=(_0x1d1a87=_0x464d3e[_0x43811d(0x2c1)])==null?void 0x0:_0x1d1a87[_0xf0153d];if(!_0x1ee2de||!_0x2bcf72)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x2bcf72,'fieldId':_0x1ee2de,'value':_0x525f7a};}));return this['_commandService'][_0xa3d1f2(0x1ac)](_0x1fa9ec['id'],{'unitId':this[_0xa3d1f2(0x204)][_0xa3d1f2(0x25a)](),'tableId':this['_table'][_0xa3d1f2(0x25a)](),'patches':_0x1414d9,'source':_0x220938[_0xa3d1f2(0x24b)]});}[_0x42cb2d(0x1a3)](){const _0x4ab3f0=_0x42cb2d;return this['setValues'](Array[_0x4ab3f0(0x28b)]({'length':this['getNumRows']()},()=>Array[_0x4ab3f0(0x28b)]({'length':this[_0x4ab3f0(0x19f)]()},()=>null)));}['offset'](_0x6ddc23,_0x4d03c1,_0x4fc2a5=this['getNumRows'](),_0x3103d=this[_0x42cb2d(0x19f)]()){const _0x1199a7=_0x42cb2d;return this['_inject']['createInstance'](G,this['_base'],this['_table'],{'startRow':this[_0x1199a7(0x1b3)][_0x1199a7(0x27f)]+_0x6ddc23,'startColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1,'endRow':this[_0x1199a7(0x1b3)]['startRow']+_0x6ddc23+_0x4fc2a5-0x1,'endColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1+_0x3103d-0x1},this['_inject']);}[_0x42cb2d(0x1d4)](){const _0x342bb1=_0x42cb2d;let _0x2bed35=this['_table'][_0x342bb1(0x1d3)]();if(!_0x2bed35)throw Error(_0x342bb1(0x281));return _0x240454(_0x2bed35);}[_0x42cb2d(0x20f)](){const _0x11ffff=_0x42cb2d;var _0x40bbc4;let _0x301c6f=this[_0x11ffff(0x1d4)](),_0x3daee7=((_0x40bbc4=_0x301c6f[_0x11ffff(0x2ae)])==null?void 0x0:_0x40bbc4[_0x11ffff(0x1b9)])??0x0,_0x363cbc=this[_0x11ffff(0x2b6)](_0x301c6f)[_0x11ffff(0x1b9)];if(this[_0x11ffff(0x1b3)]['startRow']<0x0||this['_range'][_0x11ffff(0x258)]<0x0||this['_range'][_0x11ffff(0x284)]<this[_0x11ffff(0x1b3)][_0x11ffff(0x27f)]||this['_range'][_0x11ffff(0x1d6)]<this['_range'][_0x11ffff(0x258)]||this[_0x11ffff(0x1b3)][_0x11ffff(0x284)]>=Math['max'](_0x3daee7,0x1)||this['_range'][_0x11ffff(0x1d6)]>=Math[_0x11ffff(0x190)](_0x363cbc,0x1))throw Error(_0x11ffff(0x26c)+_0x3daee7+_0x11ffff(0x293)+_0x363cbc+',\x20range:\x20'+JSON[_0x11ffff(0x172)](this[_0x11ffff(0x1b3)])+'.');}[_0x42cb2d(0x2b6)](_0x38f945){const _0x47ebd1=_0x42cb2d;return _0x38f945[_0x47ebd1(0x29c)][_0x47ebd1(0x250)](_0x535059=>V(_0x38f945[_0x47ebd1(0x28d)][_0x535059]));}};K=G=z([R(0x4,_0x35296b)],K);function q(_0x1baa2b){'@babel/helpers - typeof';const _0xdf8382=_0x42cb2d;return q=typeof Symbol==_0xdf8382(0x262)&&typeof Symbol[_0xdf8382(0x1f8)]==_0xdf8382(0x178)?function(_0x1c4e37){return typeof _0x1c4e37;}:function(_0x238500){const _0x50a878=_0xdf8382;return _0x238500&&typeof Symbol==_0x50a878(0x262)&&_0x238500['constructor']===Symbol&&_0x238500!==Symbol[_0x50a878(0x2c8)]?_0x50a878(0x178):typeof _0x238500;},q(_0x1baa2b);}function pt(_0x34d75e,_0x198ddb){const _0x41e2d9=_0x42cb2d;if(q(_0x34d75e)!=_0x41e2d9(0x26b)||!_0x34d75e)return _0x34d75e;var _0x13c8ea=_0x34d75e[Symbol['toPrimitive']];if(_0x13c8ea!==void 0x0){var _0x2224f5=_0x13c8ea[_0x41e2d9(0x1bc)](_0x34d75e,_0x198ddb||_0x41e2d9(0x1c7));if(q(_0x2224f5)!=_0x41e2d9(0x26b))return _0x2224f5;throw TypeError(_0x41e2d9(0x2af));}return(_0x198ddb===_0x41e2d9(0x193)?String:Number)(_0x34d75e);}function mt(_0x280636){const _0x4a038f=_0x42cb2d;var _0x4f3370=pt(_0x280636,_0x4a038f(0x193));return q(_0x4f3370)==_0x4a038f(0x178)?_0x4f3370:_0x4f3370+'';}function ht(_0x5c9347,_0x2361b8,_0x2807c1){const _0x526df3=_0x42cb2d;return(_0x2361b8=mt(_0x2361b8))in _0x5c9347?Object[_0x526df3(0x187)](_0x5c9347,_0x2361b8,{'value':_0x2807c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c9347[_0x2361b8]=_0x2807c1,_0x5c9347;}var J;let Y=J=class extends _0x3f2488{constructor(_0x638bc7,_0x3637e5,_0x189404,_0x5341e7,_0x46494d,_0x43c28e){const _0x225267=_0x42cb2d;super(_0x5341e7),this[_0x225267(0x204)]=_0x638bc7,this[_0x225267(0x1f9)]=_0x3637e5,this[_0x225267(0x22f)]=_0x189404,this[_0x225267(0x201)]=_0x5341e7,this[_0x225267(0x27d)]=_0x46494d,this[_0x225267(0x2a5)]=_0x43c28e,ht(this,_0x225267(0x2b4),void 0x0),ht(this,_0x225267(0x195),void 0x0),this[_0x225267(0x2b4)]=_0x638bc7[_0x225267(0x25a)](),this['_baseTableId']=_0x3637e5['getId']();}['getBaseFacade'](){const _0x15b713=_0x42cb2d;return this[_0x15b713(0x204)];}['getTableFacade'](){const _0x2af711=_0x42cb2d;return this[_0x2af711(0x1f9)];}['getId'](){const _0x302794=_0x42cb2d;return this[_0x302794(0x22f)];}[_0x42cb2d(0x274)](){const _0x2ff90f=_0x42cb2d;let _0x3b7151=this['_table']['getId']();return new L(this[_0x2ff90f(0x204)][_0x2ff90f(0x25a)](),_0x48675a(_0x3b7151,this[_0x2ff90f(0x22f)]),[_0x50fcb8(_0x3b7151)],this[_0x2ff90f(0x27d)],this[_0x2ff90f(0x2a5)]);}[_0x42cb2d(0x2ac)](){const _0x5357b8=_0x42cb2d;return{...this[_0x5357b8(0x185)](),'values':this[_0x5357b8(0x2be)]()};}[_0x42cb2d(0x213)](_0x59fbf5){const _0x36f075=_0x42cb2d;return V(this[_0x36f075(0x1f9)][_0x36f075(0x1d3)]()[_0x36f075(0x28d)][_0x59fbf5])?this[_0x36f075(0x185)]()[_0x36f075(0x21e)][_0x59fbf5]??null:null;}[_0x42cb2d(0x2be)](){const _0x246cde=_0x42cb2d;let _0x1cdaae=this[_0x246cde(0x1f9)]['getTable']();return Object['fromEntries'](Object['entries'](this[_0x246cde(0x185)]()['values'])[_0x246cde(0x250)](([_0x56b4c4])=>V(_0x1cdaae[_0x246cde(0x28d)][_0x56b4c4])));}[_0x42cb2d(0x21f)](_0x402d69,_0x290e9f){const _0x1dc3b6=_0x42cb2d;let _0x5485b3=this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x1d3)]()[_0x1dc3b6(0x28d)][_0x402d69];return this[_0x1dc3b6(0x27d)][_0x1dc3b6(0x1ac)](_0x50c883['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x25a)](),'recordId':this[_0x1dc3b6(0x22f)],'fieldId':_0x402d69,'value':st(_0x5485b3,_0x290e9f),'source':_0x220938[_0x1dc3b6(0x24b)]});}[_0x42cb2d(0x27a)](_0x53d43f,_0x2c87cf){const _0x165ea0=_0x42cb2d;return this[_0x165ea0(0x21f)](_0x53d43f,_0x2c87cf[_0x165ea0(0x276)](_0x10f1d3=>({..._0x10f1d3})));}[_0x42cb2d(0x19e)](_0x67fa0b){const _0x322769=_0x42cb2d;this['_getAttachmentField'](_0x67fa0b);let _0x17f825=this['getValue'](_0x67fa0b);return Array[_0x322769(0x2b0)](_0x17f825)?_0x17f825[_0x322769(0x276)]((_0x1ce133,_0x1f0145)=>_t(_0x1ce133,_0x67fa0b,_0x1f0145)):[];}['deleteAttachments'](_0x37cfa2,_0x14162b){const _0x36d32d=_0x42cb2d;this[_0x36d32d(0x24c)](_0x37cfa2);let _0x1eb066=new Set(_0x14162b[_0x36d32d(0x276)](_0x8d8bf5=>_0x8d8bf5['id']));if(!_0x1eb066[_0x36d32d(0x1f5)])return!0x0;let _0x5ec5b4=this[_0x36d32d(0x19e)](_0x37cfa2),_0x216067=_0x5ec5b4[_0x36d32d(0x250)](_0x338db4=>!_0x1eb066['has'](_0x338db4['id']));return _0x216067[_0x36d32d(0x1b9)]===_0x5ec5b4[_0x36d32d(0x1b9)]||this[_0x36d32d(0x27a)](_0x37cfa2,_0x216067);}[_0x42cb2d(0x225)](_0xe25c0,_0x436d87='id'){const _0x4524b6=_0x42cb2d;let _0x17222a=this[_0x4524b6(0x1f9)][_0x4524b6(0x1d3)](),_0x2cfdef=[{'recordId':this['_recordId'],'values':H(_0x17222a,_0xe25c0,_0x436d87)}];return this[_0x4524b6(0x27d)][_0x4524b6(0x1ac)](_0x54705e['id'],{'unitId':this['_base'][_0x4524b6(0x25a)](),'tableId':this[_0x4524b6(0x1f9)][_0x4524b6(0x25a)](),'patches':_0x2cfdef,'source':_0x220938[_0x4524b6(0x24b)]});}[_0x42cb2d(0x2cb)](){const _0x21e14a=_0x42cb2d;return this['_commandService'][_0x21e14a(0x1ac)](_0x36855b['id'],{'unitId':this[_0x21e14a(0x204)][_0x21e14a(0x25a)](),'tableId':this[_0x21e14a(0x1f9)][_0x21e14a(0x25a)](),'recordId':this[_0x21e14a(0x22f)],'source':_0x220938[_0x21e14a(0x24b)]});}[_0x42cb2d(0x2ce)](_0x3e11e2){const _0x127d39=_0x42cb2d;let _0x559e1c={...this[_0x127d39(0x185)](),..._0x3e11e2,'id':_0x4f9ee0(0x6)};_0x559e1c[_0x127d39(0x21e)]={..._0x559e1c[_0x127d39(0x21e)],..._0x3e11e2==null?void 0x0:_0x3e11e2['values']},Reflect[_0x127d39(0x1ed)](_0x559e1c[_0x127d39(0x21e)],_0x2737b3);let _0x482fff=Date[_0x127d39(0x2ad)]();if(_0x559e1c[_0x127d39(0x247)]||=''+_0x482fff,_0x559e1c[_0x127d39(0x194)]||=_0x482fff,_0x559e1c['updatedAt']||=_0x482fff,!this['_commandService']['syncExecuteCommand'](_0x328e28['id'],{'unitId':this[_0x127d39(0x204)][_0x127d39(0x25a)](),'tableId':this[_0x127d39(0x1f9)][_0x127d39(0x25a)](),'sourceRecordId':this[_0x127d39(0x22f)],'record':_0x559e1c,'source':_0x220938['Facade']}))throw Error(_0x127d39(0x275)+this[_0x127d39(0x22f)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x127d39(0x204)],this['_table'],_0x559e1c['id'],this[_0x127d39(0x201)]);}['setOrderKey'](_0x31c512){const _0x3b82d4=_0x42cb2d;return this[_0x3b82d4(0x27d)]['syncExecuteCommand'](_0x474036['id'],{'unitId':this['_base'][_0x3b82d4(0x25a)](),'tableId':this[_0x3b82d4(0x1f9)][_0x3b82d4(0x25a)](),'recordId':this[_0x3b82d4(0x22f)],'orderKey':_0x31c512});}['getLinkedRecordIds'](_0x21315f){const _0x251f97=_0x42cb2d;let _0x1d5ea7=this[_0x251f97(0x2c4)](_0x21315f),_0x195a11=this[_0x251f97(0x213)](_0x1d5ea7['id']);return _0x46817c(_0x195a11);}[_0x42cb2d(0x2c5)](_0x4c7b2a,_0x427852){const _0x201e16=_0x42cb2d;let _0x408aef=this[_0x201e16(0x2c4)](_0x4c7b2a),_0x596c0d=_0x12a947(_0x427852),_0x4aa4b3=_0x102940(this[_0x201e16(0x204)]['getBase']()[_0x201e16(0x295)](),_0x408aef,_0x596c0d);if(!_0x4aa4b3[_0x201e16(0x21a)])throw Error(_0x4aa4b3[_0x201e16(0x1d7)]??_0x201e16(0x1e6));return this[_0x201e16(0x27d)][_0x201e16(0x1ac)](_0x50c883['id'],{'unitId':this[_0x201e16(0x204)][_0x201e16(0x25a)](),'tableId':this[_0x201e16(0x1f9)][_0x201e16(0x25a)](),'recordId':this[_0x201e16(0x22f)],'fieldId':_0x4c7b2a,'value':_0x596c0d,'source':_0x220938[_0x201e16(0x24b)]});}[_0x42cb2d(0x1c3)](_0x116e89,_0x159f82){const _0x253fc2=_0x42cb2d;let _0x37d1f3=this[_0x253fc2(0x2c4)](_0x116e89),_0x624201=_0x34bd1d(_0x37d1f3);if(!_0x624201)throw Error(_0x253fc2(0x1a8)+_0x116e89+_0x253fc2(0x1b5));let _0xc417dd=this[_0x253fc2(0x1fb)](_0x116e89);return _0x624201['multiple']&&_0xc417dd['includes'](_0x159f82)?!0x0:this[_0x253fc2(0x2c5)](_0x116e89,_0x624201['multiple']?[..._0xc417dd,_0x159f82]:[_0x159f82]);}[_0x42cb2d(0x1a9)](_0x3b4237,_0x3b10bb){const _0x525b22=_0x42cb2d;let _0x4a504c=this[_0x525b22(0x1fb)](_0x3b4237);return!_0x4a504c[_0x525b22(0x20a)](_0x3b10bb)||this[_0x525b22(0x2c5)](_0x3b4237,_0x4a504c[_0x525b22(0x250)](_0x55a550=>_0x55a550!==_0x3b10bb));}[_0x42cb2d(0x29d)](_0x5863a2){const _0x2e1031=_0x42cb2d;let _0x65c01=this[_0x2e1031(0x2a0)](_0x5863a2)[_0x2e1031(0x1e4)][_0x2e1031(0x257)](this[_0x2e1031(0x22f)])??null;return _0x65c01?this[_0x2e1031(0x1f9)][_0x2e1031(0x1e3)](_0x65c01):null;}[_0x42cb2d(0x2aa)](_0x1c1caf){const _0x3b6c06=_0x42cb2d;return(this[_0x3b6c06(0x2a0)](_0x1c1caf)[_0x3b6c06(0x1c1)][_0x3b6c06(0x257)](this[_0x3b6c06(0x22f)])??[])[_0x3b6c06(0x230)](_0x4338c1=>{const _0x59d631=_0x3b6c06;let _0xf0b908=this['_table'][_0x59d631(0x1e3)](_0x4338c1);return _0xf0b908?[_0xf0b908]:[];});}['getAncestors'](_0x2f78c1){const _0x1e3e35=_0x42cb2d;let _0x49b1de=this[_0x1e3e35(0x2a0)](_0x2f78c1),_0x2c50e9=[],_0x21f751=_0x49b1de[_0x1e3e35(0x1e4)][_0x1e3e35(0x257)](this[_0x1e3e35(0x22f)])??null;for(;_0x21f751;){let _0x36b687=this[_0x1e3e35(0x1f9)]['getRecordById'](_0x21f751);_0x36b687&&_0x2c50e9['push'](_0x36b687),_0x21f751=_0x49b1de['parentByRecordId'][_0x1e3e35(0x257)](_0x21f751)??null;}return _0x2c50e9;}[_0x42cb2d(0x26e)](_0x5ac9d7){const _0x376213=_0x42cb2d;let _0x1a623c=this[_0x376213(0x2a0)](_0x5ac9d7),_0x2d9b21=_0x1a623c['orderedRecordIds'][_0x376213(0x1d0)](this[_0x376213(0x22f)]),_0x3d1c52=_0x1a623c[_0x376213(0x188)][_0x376213(0x28c)](this['_recordId'])?this[_0x376213(0x2b3)](_0x1a623c['childrenByParentId'],this[_0x376213(0x22f)]):[];return _0x2d9b21<0x0?[]:_0x3d1c52[_0x376213(0x230)](_0x4922b4=>{const _0x2bd080=_0x376213;let _0x3a5f10=this[_0x2bd080(0x1f9)][_0x2bd080(0x1e3)](_0x4922b4);return _0x3a5f10?[_0x3a5f10]:[];});}['setParent'](_0x4842cf,_0x55f66e,_0x5210fb){const _0x1ea76d=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x146970['id'],{'unitId':this[_0x1ea76d(0x204)]['getId'](),'tableId':this[_0x1ea76d(0x1f9)][_0x1ea76d(0x25a)](),'fieldId':_0x4842cf,'recordId':this[_0x1ea76d(0x22f)],'parentRecordId':_0x55f66e,'orderKey':_0x5210fb,'source':_0x220938['Facade']});}['addChild'](_0x581ebe,_0x1d3d57,_0xe95b8a='id',_0x325efa){const _0x3fd996=_0x42cb2d;let _0x525420=this[_0x3fd996(0x1f9)][_0x3fd996(0x1d3)](),_0x5d7986=Date[_0x3fd996(0x2ad)](),_0x28e448={..._0x325efa,'id':_0x4f9ee0(0x6),'values':H(_0x525420,_0x1d3d57,_0xe95b8a),'orderKey':(_0x325efa==null?void 0x0:_0x325efa['orderKey'])||''+_0x5d7986,'createdAt':(_0x325efa==null?void 0x0:_0x325efa[_0x3fd996(0x194)])||_0x5d7986,'updatedAt':(_0x325efa==null?void 0x0:_0x325efa['updatedAt'])||_0x5d7986};if(!this[_0x3fd996(0x27d)][_0x3fd996(0x1ac)](_0x38016d['id'],{'unitId':this[_0x3fd996(0x204)]['getId'](),'tableId':this[_0x3fd996(0x1f9)][_0x3fd996(0x25a)](),'fieldId':_0x581ebe,'parentRecordId':this['_recordId'],'record':_0x28e448,'source':_0x220938['Facade']}))throw Error(_0x3fd996(0x22d)+this[_0x3fd996(0x22f)]+'\x22.');return this[_0x3fd996(0x201)][_0x3fd996(0x24e)](J,this[_0x3fd996(0x204)],this[_0x3fd996(0x1f9)],_0x28e448['id'],this[_0x3fd996(0x201)]);}[_0x42cb2d(0x2a0)](_0x412124){const _0x2f60d7=_0x42cb2d;return _0x4aa1d4(this[_0x2f60d7(0x1f9)][_0x2f60d7(0x1d3)](),_0x412124);}[_0x42cb2d(0x2b3)](_0x5bafde,_0x636cfc){let _0x474cc1=[],_0x53cec5=_0x28a743=>{const _0x1f91a6=_0x4bdd;for(let _0x3ecba2 of _0x5bafde[_0x1f91a6(0x257)](_0x28a743)??[])_0x474cc1[_0x1f91a6(0x1dd)](_0x3ecba2),_0x53cec5(_0x3ecba2);};return _0x53cec5(_0x636cfc),_0x474cc1;}[_0x42cb2d(0x185)](){const _0x23593f=_0x42cb2d;let _0x2f6ad4=this[_0x23593f(0x1f9)]['getTable']()[_0x23593f(0x2d2)][this[_0x23593f(0x22f)]];if(!_0x2f6ad4)throw Error(_0x23593f(0x2d4)+this[_0x23593f(0x22f)]+_0x23593f(0x209));return _0x2f6ad4;}[_0x42cb2d(0x2c4)](_0xba6523){const _0x5df64c=_0x42cb2d;let _0x288581=this[_0x5df64c(0x1f9)][_0x5df64c(0x1d3)]()[_0x5df64c(0x28d)][_0xba6523];if(!_0x288581||_0x288581['type']!==_0x334db4[_0x5df64c(0x29e)])throw Error('[FRecord]:\x20field\x20\x22'+_0xba6523+_0x5df64c(0x1c8));return _0x288581;}[_0x42cb2d(0x24c)](_0x3ac7f2){const _0xd74f16=_0x42cb2d;let _0x40193a=this[_0xd74f16(0x1f9)][_0xd74f16(0x1d3)]()[_0xd74f16(0x28d)][_0x3ac7f2];if(!_0x40193a||_0x40193a[_0xd74f16(0x235)]!==_0x334db4[_0xd74f16(0x1ea)])throw Error(_0xd74f16(0x2c2)+_0x3ac7f2+_0xd74f16(0x176));return _0x40193a;}};Y=J=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d)],Y);function gt(_0x4e5d4b){const _0x117234=_0x42cb2d;return!!(_0x4e5d4b&&typeof _0x4e5d4b==_0x117234(0x26b)&&'id'in _0x4e5d4b&&typeof _0x4e5d4b['id']==_0x117234(0x193)&&_0x117234(0x1e8)in _0x4e5d4b&&typeof _0x4e5d4b[_0x117234(0x1e8)]==_0x117234(0x193));}function _t(_0x3477f1,_0x4835d3,_0x2e5231){const _0x20bda8=_0x42cb2d;if(!gt(_0x3477f1))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x2e5231+_0x20bda8(0x1f2)+_0x4835d3+'\x22\x20is\x20invalid.');return{..._0x3477f1};}let X=class{constructor(_0x4a76c0,_0x4e36ec,_0xad9bf1,_0x10464e,_0x561d7a,_0x553bfc,_0x238ad1){const _0x2a66bb=_0x42cb2d;this[_0x2a66bb(0x204)]=_0x4a76c0,this[_0x2a66bb(0x1f9)]=_0x4e36ec,this[_0x2a66bb(0x259)]=_0xad9bf1,this[_0x2a66bb(0x201)]=_0x10464e,this['_commandService']=_0x561d7a,this['_permissionService']=_0x553bfc,this[_0x2a66bb(0x26a)]=_0x238ad1;}[_0x42cb2d(0x25a)](){const _0x2bf69a=_0x42cb2d;return this[_0x2bf69a(0x259)];}[_0x42cb2d(0x274)](){const _0x3856e2=_0x42cb2d;let _0x3712aa=this[_0x3856e2(0x1f9)]['getId']();return new L(this['_base'][_0x3856e2(0x25a)](),_0x3f6a97(_0x3712aa,this[_0x3856e2(0x259)]),[_0x50fcb8(_0x3712aa)],this[_0x3856e2(0x27d)],this[_0x3856e2(0x2a5)]);}[_0x42cb2d(0x20b)](){const _0x161019=_0x42cb2d;return this[_0x161019(0x26f)]();}[_0x42cb2d(0x214)](){const _0x30767e=_0x42cb2d;return this[_0x30767e(0x26f)]()[_0x30767e(0x1e8)];}['getType'](){const _0x3d2348=_0x42cb2d;return this[_0x3d2348(0x26f)]()['type'];}[_0x42cb2d(0x174)](_0x5bdf48){const _0x5c4ce6=_0x42cb2d;return this['_commandService'][_0x5c4ce6(0x1ac)](_0x3f17b8['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5c4ce6(0x1f9)][_0x5c4ce6(0x25a)](),'viewId':this[_0x5c4ce6(0x259)],'name':_0x5bdf48});}['getConfig'](){const _0x442ce8=_0x42cb2d;let _0x3661e4=this['getType'](),_0x56b278=this[_0x442ce8(0x26f)]()['config'];switch(_0x3661e4){case _0x2dedc2[_0x442ce8(0x2bd)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x173)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x277)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x2ab)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x23a)]:return _0x56b278;default:return _0x56b278;}}[_0x42cb2d(0x1d2)](_0x2c1a9c){const _0x393e80=_0x42cb2d;return this[_0x393e80(0x27d)]['syncExecuteCommand'](_0x189b25['id'],{'unitId':this[_0x393e80(0x204)]['getId'](),'tableId':this['_table'][_0x393e80(0x25a)](),'viewId':this[_0x393e80(0x259)],'patch':_0x2c1a9c});}[_0x42cb2d(0x249)](){const _0x2f1478=_0x42cb2d;var _0x14adc2;return _0x537bdf['deepClone'](((_0x14adc2=this[_0x2f1478(0x26f)]()[_0x2f1478(0x22b)]['conditionalColoring'])==null?void 0x0:_0x14adc2['rules'])??[]);}[_0x42cb2d(0x1f7)](_0x36c100){const _0x109134=_0x42cb2d;return this[_0x109134(0x27d)][_0x109134(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x109134(0x204)][_0x109134(0x25a)](),'tableId':this['_table'][_0x109134(0x25a)](),'viewId':this['_viewId'],'type':_0x36384f[_0x109134(0x1bb)],'rules':_0x36c100});}[_0x42cb2d(0x283)](_0x5145a9){const _0x6e3f27=_0x42cb2d;return this[_0x6e3f27(0x27d)][_0x6e3f27(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x6e3f27(0x204)][_0x6e3f27(0x25a)](),'tableId':this[_0x6e3f27(0x1f9)][_0x6e3f27(0x25a)](),'viewId':this[_0x6e3f27(0x259)],'type':_0x36384f['Add'],'rule':_0x5145a9});}[_0x42cb2d(0x2a2)](_0x24c4c9){const _0x3a1132=_0x42cb2d;return this[_0x3a1132(0x27d)][_0x3a1132(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x3a1132(0x25a)](),'tableId':this[_0x3a1132(0x1f9)]['getId'](),'viewId':this[_0x3a1132(0x259)],'type':_0x36384f[_0x3a1132(0x1a0)],'ruleId':_0x24c4c9});}[_0x42cb2d(0x2a4)](){const _0x24e85e=_0x42cb2d;return this['_commandService'][_0x24e85e(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x24e85e(0x25a)](),'tableId':this[_0x24e85e(0x1f9)]['getId'](),'viewId':this[_0x24e85e(0x259)],'type':_0x36384f[_0x24e85e(0x198)]});}[_0x42cb2d(0x1f1)](){const _0x2a1c5e=_0x42cb2d;return this[_0x2a1c5e(0x26f)]()[_0x2a1c5e(0x250)]??null;}[_0x42cb2d(0x2cf)](_0x1e4990){const _0x2d9658=_0x42cb2d;return this[_0x2d9658(0x27d)][_0x2d9658(0x1ac)](_0x95d2fe['id'],{'unitId':this[_0x2d9658(0x204)][_0x2d9658(0x25a)](),'tableId':this[_0x2d9658(0x1f9)][_0x2d9658(0x25a)](),'viewId':this['_viewId'],'filter':_0x1e4990});}[_0x42cb2d(0x1a6)](){const _0x32b1dd=_0x42cb2d;return this[_0x32b1dd(0x26f)]()[_0x32b1dd(0x25b)]??[];}[_0x42cb2d(0x24d)](_0x268899){const _0x27c527=_0x42cb2d;return this[_0x27c527(0x27d)][_0x27c527(0x1ac)](_0x118bc9['id'],{'unitId':this[_0x27c527(0x204)][_0x27c527(0x25a)](),'tableId':this[_0x27c527(0x1f9)][_0x27c527(0x25a)](),'viewId':this['_viewId'],'sort':_0x268899});}[_0x42cb2d(0x2a3)](){const _0x2d71fe=_0x42cb2d;return this[_0x2d71fe(0x26f)]()[_0x2d71fe(0x23e)]??[];}[_0x42cb2d(0x23b)](_0xe009c5){const _0x9596f2=_0x42cb2d;return this[_0x9596f2(0x27d)][_0x9596f2(0x1ac)](_0x37eaa0['id'],{'unitId':this[_0x9596f2(0x204)][_0x9596f2(0x25a)](),'tableId':this[_0x9596f2(0x1f9)][_0x9596f2(0x25a)](),'viewId':this[_0x9596f2(0x259)],'group':_0xe009c5});}[_0x42cb2d(0x1e2)](_0x37deef){const _0x2ae57b=_0x42cb2d;var _0x2e0260;return V(this['_table']['getTable']()[_0x2ae57b(0x28d)][_0x37deef])?((_0x2e0260=this[_0x2ae57b(0x26f)]()['fieldSettings'])==null?void 0x0:_0x2e0260[_0x37deef])??{}:{};}['getVisibleFields'](){const _0x50ac5f=_0x42cb2d;let _0x3760e3=this[_0x50ac5f(0x1f9)][_0x50ac5f(0x1d3)](),_0xe8a7fd=this[_0x50ac5f(0x26f)]();return(_0xe8a7fd['fieldOrder']??_0x3760e3[_0x50ac5f(0x29c)])[_0x50ac5f(0x250)](_0x587338=>{const _0x101b40=_0x50ac5f;var _0x4419b5;let _0x39a2a7=_0x3760e3[_0x101b40(0x28d)][_0x587338];return V(_0x39a2a7)&&!((_0x4419b5=_0xe8a7fd[_0x101b40(0x2a9)])!=null&&(_0x4419b5=_0x4419b5[_0x587338])!=null&&_0x4419b5[_0x101b40(0x253)]);})['map'](_0x1a95e6=>this[_0x50ac5f(0x201)][_0x50ac5f(0x24e)](B,this[_0x50ac5f(0x204)],this['_table'],_0x1a95e6));}[_0x42cb2d(0x1df)](_0x6e7a36,_0x3113e2){const _0x1f2f87=_0x42cb2d;return V(this[_0x1f2f87(0x1f9)][_0x1f2f87(0x1d3)]()[_0x1f2f87(0x28d)][_0x6e7a36])?this[_0x1f2f87(0x27d)][_0x1f2f87(0x1ac)](_0xc297cb['id'],{'unitId':this[_0x1f2f87(0x204)][_0x1f2f87(0x25a)](),'tableId':this[_0x1f2f87(0x1f9)]['getId'](),'viewId':this[_0x1f2f87(0x259)],'fieldId':_0x6e7a36,'visible':_0x3113e2}):!0x1;}['setFieldWidth'](_0x5448e2,_0x39bb42){const _0x2e1628=_0x42cb2d;return V(this['_table'][_0x2e1628(0x1d3)]()[_0x2e1628(0x28d)][_0x5448e2])?this[_0x2e1628(0x27d)][_0x2e1628(0x1ac)](_0x2dfde8['id'],{'unitId':this[_0x2e1628(0x204)][_0x2e1628(0x25a)](),'tableId':this[_0x2e1628(0x1f9)][_0x2e1628(0x25a)](),'viewId':this[_0x2e1628(0x259)],'fieldId':_0x5448e2,'width':_0x39bb42}):!0x1;}[_0x42cb2d(0x1b0)](_0x37b055,_0x35644f){const _0x2889f3=_0x42cb2d;let _0x9a6a90=this[_0x2889f3(0x1f9)]['getTable'](),_0x154074=_0x35644f['beforeFieldId']??_0x35644f[_0x2889f3(0x1ab)];return!V(_0x9a6a90['fields'][_0x37b055])||!_0x154074||!V(_0x9a6a90[_0x2889f3(0x28d)][_0x154074])?!0x1:this[_0x2889f3(0x27d)][_0x2889f3(0x1ac)](_0x3556fb['id'],{'unitId':this[_0x2889f3(0x204)][_0x2889f3(0x25a)](),'tableId':this[_0x2889f3(0x1f9)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x37b055,'target':_0x35644f});}[_0x42cb2d(0x181)](_0x5ca92e){const _0x1a73c9=_0x42cb2d;return this[_0x1a73c9(0x27d)]['syncExecuteCommand'](_0x1f38e3['id'],{'unitId':this[_0x1a73c9(0x204)][_0x1a73c9(0x25a)](),'tableId':this[_0x1a73c9(0x1f9)][_0x1a73c9(0x25a)](),'viewId':this[_0x1a73c9(0x259)],'target':_0x5ca92e});}[_0x42cb2d(0x2cb)](){const _0x18194f=_0x42cb2d;return this[_0x18194f(0x27d)]['syncExecuteCommand'](_0x3ddbc['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x18194f(0x259)]});}[_0x42cb2d(0x256)](){const _0x5c8e0a=_0x42cb2d;return this[_0x5c8e0a(0x26a)]['getProjection'](this[_0x5c8e0a(0x204)][_0x5c8e0a(0x211)]()[_0x5c8e0a(0x295)](),this[_0x5c8e0a(0x1f9)][_0x5c8e0a(0x25a)](),this[_0x5c8e0a(0x259)]);}[_0x42cb2d(0x26f)](){const _0x4e9c75=_0x42cb2d;let _0x5628dc=this[_0x4e9c75(0x1f9)][_0x4e9c75(0x1d3)]()[_0x4e9c75(0x290)][this[_0x4e9c75(0x259)]];if(!_0x5628dc)throw Error(_0x4e9c75(0x233)+this['_viewId']+'\x22\x20does\x20not\x20exist.');return _0x5628dc;}};X=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d),R(0x6,_0x5da3e7)],X);let Z=class{constructor(_0x80f5bb,_0x18fcd9,_0x1b7e81,_0xa5c16d,_0x185bd3,_0x22ff3e){const _0x5cac41=_0x42cb2d;this[_0x5cac41(0x204)]=_0x80f5bb,this['_tableId']=_0x18fcd9,this['_injector']=_0x1b7e81,this[_0x5cac41(0x27d)]=_0xa5c16d,this[_0x5cac41(0x2a5)]=_0x185bd3,this[_0x5cac41(0x26a)]=_0x22ff3e;}['getBase'](){const _0xb2b14c=_0x42cb2d;return this[_0xb2b14c(0x204)][_0xb2b14c(0x211)]();}['getTable'](){const _0x579cf3=_0x42cb2d;return this[_0x579cf3(0x1d4)]();}[_0x42cb2d(0x25a)](){const _0x514b96=_0x42cb2d;return this[_0x514b96(0x292)];}['getPermission'](){const _0x5db8f4=_0x42cb2d;return new L(this[_0x5db8f4(0x211)]()['getUnitId'](),_0x50fcb8(this[_0x5db8f4(0x292)]),[],this[_0x5db8f4(0x27d)],this[_0x5db8f4(0x2a5)]);}[_0x42cb2d(0x1a4)](){const _0x15811c=_0x42cb2d;return _0x1d8e8c(this[_0x15811c(0x1d4)]());}['setHierarchyField'](_0x556039){const _0x36928e=_0x42cb2d;return this[_0x36928e(0x27d)]['syncExecuteCommand'](_0x71b3cc['id'],{'unitId':this[_0x36928e(0x204)][_0x36928e(0x25a)](),'tableId':this[_0x36928e(0x292)],'fieldId':_0x556039});}[_0x42cb2d(0x214)](){const _0x733378=_0x42cb2d;return this['_getTable']()[_0x733378(0x1e8)];}[_0x42cb2d(0x208)](){const _0x3c00b6=_0x42cb2d;let _0x3c3729=this[_0x3c00b6(0x204)][_0x3c00b6(0x211)]()[_0x3c00b6(0x295)]();return _0x7344c5(this[_0x3c00b6(0x1d4)](),_0x3c3729);}[_0x42cb2d(0x174)](_0x47f832){const _0x42c379=_0x42cb2d;let _0x588570=_0x17aac3(this[_0x42c379(0x204)][_0x42c379(0x211)]()[_0x42c379(0x295)](),_0x47f832,this[_0x42c379(0x292)]);if(!_0x588570['valid'])throw Error(_0x42c379(0x261)+_0x47f832+_0x42c379(0x227)+_0x2e61f6+'\x20'+_0x588570[_0x42c379(0x1d7)]);return this[_0x42c379(0x27d)][_0x42c379(0x1ac)](_0x47dfb5['id'],{'unitId':this[_0x42c379(0x204)][_0x42c379(0x25a)](),'tableId':this['_tableId'],'name':_0x47f832});}['search'](_0x2e8ca3,_0x35b41e){const _0x32fcd7=_0x42cb2d;let _0x4e6dbb=this[_0x32fcd7(0x204)][_0x32fcd7(0x211)]()[_0x32fcd7(0x295)](),_0x12fde8=this[_0x32fcd7(0x1d4)]();if(_0x35b41e){let _0x4dd418=this['_projectionService']['getProjection'](_0x4e6dbb,this[_0x32fcd7(0x292)],_0x35b41e),_0x19958f=_0x12fde8['views'][_0x35b41e],_0x479340=_0x2e8ca3[_0x32fcd7(0x1db)]??Tt(_0x12fde8,_0x19958f,_0x4dd418),_0x291ffa=_0x32fcd7(0x240)in _0x4dd418&&Array[_0x32fcd7(0x2b0)](_0x4dd418['rows'])?_0x4dd418[_0x32fcd7(0x240)]:[];return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x479340,'rows':_0x291ffa});}let _0x106534=(_0x12fde8[_0x32fcd7(0x2ae)]?_0x12fde8['recordOrder'][_0x32fcd7(0x276)](_0x3cc06f=>_0x12fde8[_0x32fcd7(0x2d2)][_0x3cc06f]):Object['values'](_0x12fde8[_0x32fcd7(0x2d2)])[_0x32fcd7(0x25b)]((_0x491f26,_0x3e6f5b)=>_0x491f26[_0x32fcd7(0x247)]['localeCompare'](_0x3e6f5b[_0x32fcd7(0x247)])))[_0x32fcd7(0x250)](_0x3d4707=>_0x3d4707)[_0x32fcd7(0x276)](_0x2ae147=>({'recordId':_0x2ae147['id'],'values':_0x2ae147[_0x32fcd7(0x21e)]})),_0x9d5e7d=_0x2e8ca3['fieldIds']??_0x12fde8[_0x32fcd7(0x29c)][_0x32fcd7(0x250)](_0x565f1e=>V(_0x12fde8[_0x32fcd7(0x28d)][_0x565f1e]));return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x9d5e7d,'rows':_0x106534});}[_0x42cb2d(0x266)](){const _0xcd4a73=_0x42cb2d;return this['_getTable']()[_0xcd4a73(0x20c)];}[_0x42cb2d(0x224)](){const _0x445177=_0x42cb2d;let _0x407e97=this[_0x445177(0x1d4)]();return _0x407e97['fieldOrder'][_0x445177(0x276)](_0x3ea043=>_0x407e97[_0x445177(0x28d)][_0x3ea043])['filter'](V)['map'](_0x55cdb7=>this['_injector']['createInstance'](B,this[_0x445177(0x204)],this,_0x55cdb7['id']));}['getFieldById'](_0x84c8e2){const _0x40a0dc=_0x42cb2d;let _0x3c5246=this[_0x40a0dc(0x1d4)]()['fields'][_0x84c8e2];return V(_0x3c5246)?this[_0x40a0dc(0x201)][_0x40a0dc(0x24e)](B,this[_0x40a0dc(0x204)],this,_0x3c5246['id']):null;}['getFieldByName'](_0x156bb3){const _0x43fab=_0x42cb2d;let _0x3ec8bf=this[_0x43fab(0x1d4)]()[_0x43fab(0x28d)],_0x2deaf3=Object[_0x43fab(0x21e)](_0x3ec8bf)[_0x43fab(0x220)](_0x18173e=>V(_0x18173e)&&_0x18173e[_0x43fab(0x1e8)]===_0x156bb3);return _0x2deaf3?this[_0x43fab(0x201)]['createInstance'](B,this['_base'],this,_0x2deaf3['id']):null;}[_0x42cb2d(0x175)](){const _0x4e13fd=_0x42cb2d;let _0x50fbd0=this[_0x4e13fd(0x1d4)]()[_0x4e13fd(0x20c)];return this[_0x4e13fd(0x201)]['createInstance'](B,this[_0x4e13fd(0x204)],this,_0x50fbd0);}[_0x42cb2d(0x1a2)](_0x72ae9e,_0x352ea3,_0x5eef85){const _0x1ddcbc=_0x42cb2d;var _0x3f1e40,_0x30e669;if(!Object['values'](_0x334db4)['some'](_0x302688=>_0x302688===_0x352ea3))throw Error(_0x1ddcbc(0x297)+String(_0x352ea3)+'\x22.');if(_0x352ea3===_0x334db4[_0x1ddcbc(0x1ca)]&&this[_0x1ddcbc(0x202)](_0x72ae9e,_0x5eef85),_0x352ea3===_0x334db4[_0x1ddcbc(0x29e)]&&(typeof(_0x5eef85==null||(_0x3f1e40=_0x5eef85[_0x1ddcbc(0x251)])==null||(_0x3f1e40=_0x3f1e40['config'])==null?void 0x0:_0x3f1e40[_0x1ddcbc(0x177)])!=_0x1ddcbc(0x193)||typeof _0x5eef85[_0x1ddcbc(0x251)][_0x1ddcbc(0x22b)][_0x1ddcbc(0x279)]!=_0x1ddcbc(0x1ce)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x1edd51={..._0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x251)],'id':_0x4f9ee0(0x6),'name':_0x72ae9e,'type':_0x352ea3,'config':(_0x5eef85==null||(_0x30e669=_0x5eef85[_0x1ddcbc(0x251)])==null?void 0x0:_0x30e669['config'])??{}};if(!this['_commandService'][_0x1ddcbc(0x1ac)](_0x89725e['id'],{'unitId':this[_0x1ddcbc(0x204)]['getId'](),'tableId':this[_0x1ddcbc(0x292)],'field':_0x1edd51,'index':_0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x1be)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x72ae9e+'\x22');return this[_0x1ddcbc(0x201)][_0x1ddcbc(0x24e)](B,this[_0x1ddcbc(0x204)],this,_0x1edd51['id']);}[_0x42cb2d(0x202)](_0x3d410e,_0x41d5ca){const _0x36142b=_0x42cb2d;var _0x5d197a;if(!_0x41d5ca||!('externalReferences'in _0x41d5ca)||!Array[_0x36142b(0x2b0)](_0x41d5ca['externalReferences']))throw Error(_0x36142b(0x196));let _0xa61f9b=this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x4ec7a3['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x5d197a=_0x41d5ca[_0x36142b(0x251)])==null||(_0x5d197a=_0x5d197a[_0x36142b(0x22b)])==null?void 0x0:_0x5d197a[_0x36142b(0x236)])??'')});if(!_0xa61f9b['valid'])throw Error(_0xa61f9b['reason']??_0x36142b(0x1b6));if(_0x41d5ca[_0x36142b(0x26d)][_0x36142b(0x1b9)]>0x0&&!this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'references':_0x41d5ca['externalReferences']}))throw Error(_0x36142b(0x294)+_0x3d410e+'\x22');}[_0x42cb2d(0x291)](){const _0xd3e9fb=_0x42cb2d;return this['_resolveRecordIds']()[_0xd3e9fb(0x276)](_0xe40d9e=>this[_0xd3e9fb(0x201)][_0xd3e9fb(0x24e)](Y,this['_base'],this,_0xe40d9e,this[_0xd3e9fb(0x201)]));}[_0x42cb2d(0x1e3)](_0x2e91d6){const _0x179df2=_0x42cb2d;return this[_0x179df2(0x1d4)]()['records'][_0x2e91d6]?this[_0x179df2(0x201)]['createInstance'](Y,this[_0x179df2(0x204)],this,_0x2e91d6,this[_0x179df2(0x201)]):null;}['queryRecords'](_0x29717f={}){const _0x15de20=_0x42cb2d;let _0x18f59f=this[_0x15de20(0x1d4)](),_0x5722b6=this['_resolveRecordIds'](_0x29717f),_0x3d61b8=Math[_0x15de20(0x190)](0x0,_0x29717f['offset']??0x0),_0x1dbeed=_0x29717f[_0x15de20(0x23d)]==null?null:Math['max'](0x0,_0x29717f[_0x15de20(0x23d)]),_0x4a0043=yt(_0x5722b6[_0x15de20(0x276)](_0x168067=>_0x18f59f[_0x15de20(0x2d2)][_0x168067])[_0x15de20(0x250)](_0x18e299=>xt(_0x18e299,_0x18f59f,_0x29717f[_0x15de20(0x250)])),_0x18f59f,_0x29717f[_0x15de20(0x25b)]);return{'records':vt(_0x4a0043,_0x29717f)[_0x15de20(0x276)](_0x1332ec=>this[_0x15de20(0x201)]['createInstance'](Y,this[_0x15de20(0x204)],this,_0x1332ec['id'],this[_0x15de20(0x201)])),'total':_0x4a0043[_0x15de20(0x1b9)],'offset':_0x3d61b8,'limit':_0x1dbeed,'hasMore':_0x1dbeed!=null&&_0x3d61b8+_0x1dbeed<_0x4a0043['length']};}['addRecord'](_0x9980f7,_0x4f64e4='id',_0x2188ab){const _0x38113c=_0x42cb2d;let _0x5ad9f6=this[_0x38113c(0x1d4)](),_0xf304e6=Date[_0x38113c(0x2ad)](),_0x2e79ed={..._0x2188ab,'id':_0x4f9ee0(0x6),'values':H(_0x5ad9f6,_0x9980f7,_0x4f64e4),'orderKey':(_0x2188ab==null?void 0x0:_0x2188ab['orderKey'])||''+_0xf304e6,'createdAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x194)])||_0xf304e6,'updatedAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x25d)])||_0xf304e6};if(!this[_0x38113c(0x27d)]['syncExecuteCommand'](_0x470e4e['id'],{'unitId':this[_0x38113c(0x204)][_0x38113c(0x25a)](),'tableId':this[_0x38113c(0x292)],'record':_0x2e79ed,'source':_0x220938[_0x38113c(0x24b)]}))throw Error(_0x38113c(0x27b)+_0x2e79ed['id']+'\x22');return this['_injector'][_0x38113c(0x24e)](Y,this['_base'],this,_0x2e79ed['id'],this['_injector']);}[_0x42cb2d(0x1de)](_0xebe596){const _0x1874c1=_0x42cb2d;if(!_0xebe596[_0x1874c1(0x1b9)])return[];let _0x34376d=this[_0x1874c1(0x1d4)](),_0x23af18=Date[_0x1874c1(0x2ad)](),_0x2d605c=_0xebe596['map']((_0x354a81,_0x445284)=>{const _0xeb9a2b=_0x1874c1;var _0x48537c,_0x378882,_0x245301;return{..._0x354a81[_0xeb9a2b(0x1e1)],'id':_0x4f9ee0(0x6),'values':H(_0x34376d,_0x354a81['values'],_0x354a81[_0xeb9a2b(0x1da)]??'id'),'orderKey':((_0x48537c=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x48537c[_0xeb9a2b(0x247)])||''+(_0x23af18+_0x445284),'createdAt':((_0x378882=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x378882[_0xeb9a2b(0x194)])||_0x23af18,'updatedAt':((_0x245301=_0x354a81['record'])==null?void 0x0:_0x245301[_0xeb9a2b(0x25d)])||_0x23af18};});if(!this['_commandService']['syncExecuteCommand'](_0x30ed55['id'],{'unitId':this[_0x1874c1(0x204)][_0x1874c1(0x25a)](),'tableId':this[_0x1874c1(0x292)],'records':_0x2d605c,'source':_0x220938[_0x1874c1(0x24b)]}))throw Error(_0x1874c1(0x278));return _0x2d605c[_0x1874c1(0x276)](_0x1056a5=>this['_injector'][_0x1874c1(0x24e)](Y,this[_0x1874c1(0x204)],this,_0x1056a5['id'],this[_0x1874c1(0x201)]));}[_0x42cb2d(0x19a)](_0x57e139){const _0x3a0975=_0x42cb2d;return!_0x57e139[_0x3a0975(0x1b9)]||this[_0x3a0975(0x27d)][_0x3a0975(0x1ac)](_0x259e76['id'],{'unitId':this[_0x3a0975(0x204)][_0x3a0975(0x25a)](),'tableId':this['_tableId'],'recordIds':_0x57e139,'source':_0x220938[_0x3a0975(0x24b)]});}['getRange'](_0x8d8eb9,_0x2b7435,_0x3e6610=0x1,_0x41fa14=0x1){const _0x54001f=_0x42cb2d;return this['_injector'][_0x54001f(0x24e)](K,this[_0x54001f(0x204)],this,{'startRow':_0x8d8eb9,'endRow':_0x8d8eb9+_0x3e6610-0x1,'startColumn':_0x2b7435,'endColumn':_0x2b7435+_0x41fa14-0x1},this[_0x54001f(0x201)]);}[_0x42cb2d(0x2d1)](){const _0x1554aa=_0x42cb2d;var _0x2d526a;let _0x1d0e05=_0x240454(this[_0x1554aa(0x1d4)]()),_0x2e54b3=((_0x2d526a=_0x1d0e05[_0x1554aa(0x2ae)])==null?void 0x0:_0x2d526a[_0x1554aa(0x1b9)])??0x0,_0x4f6b2b=_0x1d0e05[_0x1554aa(0x29c)][_0x1554aa(0x250)](_0xfc249d=>V(_0x1d0e05[_0x1554aa(0x28d)][_0xfc249d]))[_0x1554aa(0x1b9)];return this[_0x1554aa(0x2bc)](0x0,0x0,Math['max'](_0x2e54b3,0x1),Math[_0x1554aa(0x190)](_0x4f6b2b,0x1));}['getViews'](){const _0xe46a05=_0x42cb2d;let _0x1d590a=this['_getTable']();return _0x1d590a[_0xe46a05(0x22c)][_0xe46a05(0x250)](_0x3b231a=>_0x1d590a[_0xe46a05(0x290)][_0x3b231a])[_0xe46a05(0x276)](_0x3782a4=>this[_0xe46a05(0x201)][_0xe46a05(0x24e)](X,this[_0xe46a05(0x204)],this,_0x3782a4,this[_0xe46a05(0x201)]));}[_0x42cb2d(0x2d3)](_0x5b4b18){const _0xef8d87=_0x42cb2d;return this['_getTable']()[_0xef8d87(0x290)][_0x5b4b18]?this[_0xef8d87(0x201)][_0xef8d87(0x24e)](X,this[_0xef8d87(0x204)],this,_0x5b4b18,this['_injector']):null;}[_0x42cb2d(0x1ee)](_0x541321){const _0x5bc91f=_0x42cb2d;let _0x45d392=this[_0x5bc91f(0x1d4)](),_0x559372=Object['values'](_0x45d392[_0x5bc91f(0x290)])['find'](_0x38e5cb=>_0x38e5cb[_0x5bc91f(0x1e8)]===_0x541321);return _0x559372?this[_0x5bc91f(0x201)][_0x5bc91f(0x24e)](X,this[_0x5bc91f(0x204)],this,_0x559372['id'],this['_injector']):null;}[_0x42cb2d(0x2a1)](_0x1cbe00,_0x48031d,_0x1abb2f){const _0x74a241=_0x42cb2d;var _0x334cfd,_0x4d3a06,_0x26a649,_0x52d818;let _0x3d36c9=this[_0x74a241(0x1d4)](),_0x40a17d=(_0x1abb2f==null||(_0x334cfd=_0x1abb2f['view'])==null?void 0x0:_0x334cfd[_0x74a241(0x29c)])??_0x3d36c9['fieldOrder'],_0x34e6fe=[_0x2737b3,..._0x40a17d[_0x74a241(0x250)](_0x48aec1=>V(_0x3d36c9[_0x74a241(0x28d)][_0x48aec1]))],_0x54381a={..._0x1abb2f==null?void 0x0:_0x1abb2f[_0x74a241(0x1b8)],'id':_0x4f9ee0(0x6),'name':_0x1cbe00,'type':_0x48031d,'tableId':this[_0x74a241(0x292)],'config':(_0x1abb2f==null||(_0x4d3a06=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x4d3a06[_0x74a241(0x22b)])??{},'fieldOrder':_0x34e6fe,'fieldSettings':{..._0x1abb2f==null||(_0x26a649=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x26a649['fieldSettings'],[_0x2737b3]:{..._0x1abb2f==null||(_0x52d818=_0x1abb2f[_0x74a241(0x1b8)])==null||(_0x52d818=_0x52d818[_0x74a241(0x2a9)])==null?void 0x0:_0x52d818[_0x2737b3],'hidden':!0x0}}};if(!this[_0x74a241(0x27d)][_0x74a241(0x1ac)](_0x471b73['id'],{'unitId':this[_0x74a241(0x204)][_0x74a241(0x25a)](),'tableId':this[_0x74a241(0x292)],'view':_0x54381a,'index':_0x1abb2f==null?void 0x0:_0x1abb2f['index']}))throw Error(_0x74a241(0x17b)+_0x1cbe00+'\x22');return this[_0x74a241(0x201)][_0x74a241(0x24e)](X,this[_0x74a241(0x204)],this,_0x54381a['id'],this['_injector']);}[_0x42cb2d(0x21b)](){const _0x4b77e6=_0x42cb2d;let _0x4f4ea0=this[_0x4b77e6(0x1d4)](),_0xeac47d=_0x4f4ea0[_0x4b77e6(0x29c)]['filter'](_0xced9f4=>V(_0x4f4ea0[_0x4b77e6(0x28d)][_0xced9f4])),_0x254fff=_0x4f4ea0[_0x4b77e6(0x22c)]['filter'](_0x1fea3a=>_0x4f4ea0[_0x4b77e6(0x290)][_0x1fea3a]);return{'id':_0x4f4ea0['id'],'name':_0x4f4ea0[_0x4b77e6(0x1e8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4f4ea0[_0x4b77e6(0x20c)],'fieldIds':_0xeac47d,'viewIds':_0x254fff,'recordCount':this[_0x4b77e6(0x25c)]()[_0x4b77e6(0x1b9)],'fields':_0xeac47d[_0x4b77e6(0x276)](_0x1bbee3=>{const _0x5dbea0=_0x4b77e6;let _0x5dd2c1=_0x4f4ea0[_0x5dbea0(0x28d)][_0x1bbee3];return{'id':_0x5dd2c1['id'],'name':_0x5dd2c1[_0x5dbea0(0x1e8)],'type':_0x5dd2c1['type'],'config':_0x5dd2c1['config'],'readonly':_0x5dd2c1[_0x5dbea0(0x18a)],'description':_0x5dd2c1[_0x5dbea0(0x218)]};}),'views':_0x254fff[_0x4b77e6(0x276)](_0x23ef8c=>{const _0x4006b1=_0x4b77e6;let _0x3aacda=_0x4f4ea0[_0x4006b1(0x290)][_0x23ef8c];return{'id':_0x3aacda['id'],'name':_0x3aacda['name'],'type':_0x3aacda['type']};})};}[_0x42cb2d(0x1d4)](){const _0x4feaeb=_0x42cb2d;let _0x2ae977=this[_0x4feaeb(0x204)]['getBase']()[_0x4feaeb(0x295)]()[_0x4feaeb(0x1af)][this[_0x4feaeb(0x292)]];if(!_0x2ae977)throw Error(_0x4feaeb(0x1b7)+this[_0x4feaeb(0x292)]+_0x4feaeb(0x209));return _0x2ae977;}['_resolveRecordIds'](_0x52ac23={}){const _0x25c42c=_0x42cb2d;let _0x12e0d8=this[_0x25c42c(0x204)]['getBase']()['getSnapshot'](),_0x2f82d8=this['_getTable']();if(_0x52ac23[_0x25c42c(0x2d0)]){let _0x110b71=this[_0x25c42c(0x26a)]['getProjection'](_0x12e0d8,this[_0x25c42c(0x292)],_0x52ac23[_0x25c42c(0x2d0)]);if(_0x25c42c(0x240)in _0x110b71&&Array['isArray'](_0x110b71['rows']))return _0x110b71[_0x25c42c(0x240)][_0x25c42c(0x276)](_0x2cb03d=>_0x2cb03d[_0x25c42c(0x192)]);}return(_0x2f82d8[_0x25c42c(0x2ae)]?_0x2f82d8[_0x25c42c(0x2ae)][_0x25c42c(0x276)](_0x17be18=>_0x2f82d8['records'][_0x17be18]):Object[_0x25c42c(0x21e)](_0x2f82d8[_0x25c42c(0x2d2)])[_0x25c42c(0x25b)]((_0x542cb4,_0x426351)=>_0x542cb4[_0x25c42c(0x247)][_0x25c42c(0x1eb)](_0x426351[_0x25c42c(0x247)])))[_0x25c42c(0x250)](_0x1b0e87=>_0x1b0e87)[_0x25c42c(0x276)](_0x2de2a5=>_0x2de2a5['id']);}};Z=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d),R(0x5,_0x5da3e7)],Z);function vt(_0xa0c645,_0x32dd2e){const _0x53b26f=_0x42cb2d;let _0x30ecc5=Math[_0x53b26f(0x190)](0x0,_0x32dd2e[_0x53b26f(0x2bb)]??0x0);return _0x32dd2e['limit']==null?_0xa0c645['slice'](_0x30ecc5):_0xa0c645[_0x53b26f(0x2cd)](_0x30ecc5,_0x30ecc5+Math[_0x53b26f(0x190)](0x0,_0x32dd2e['limit']));}function yt(_0x1e760,_0x3b51fe,_0x51c376=[]){const _0x41e460=_0x42cb2d;return _0x51c376[_0x41e460(0x1b9)]?[..._0x1e760][_0x41e460(0x25b)]((_0x13b2ee,_0x5bccce)=>{const _0x1ca883=_0x41e460;for(let _0x33921b of _0x51c376){var _0x16a1fe;let _0x48d70d=_0x33921b[_0x1ca883(0x17d)]===_0x42481e['DESC']?-0x1:0x1,_0x4a965c=bt(_0x13b2ee[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],_0x5bccce[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],(_0x16a1fe=_0x3b51fe[_0x1ca883(0x28d)][_0x33921b[_0x1ca883(0x21c)]])==null?void 0x0:_0x16a1fe[_0x1ca883(0x235)]);if(_0x4a965c!==0x0)return _0x4a965c*_0x48d70d;}return String(_0x13b2ee['orderKey']??_0x13b2ee['id'])[_0x1ca883(0x1eb)](String(_0x5bccce['orderKey']??_0x5bccce['id']));}):_0x1e760;}function bt(_0x55742c,_0x31f125,_0x373462){const _0x34201c=_0x42cb2d;return _0x55742c==null&&_0x31f125==null?0x0:_0x55742c==null?-0x1:_0x31f125==null?0x1:typeof _0x55742c==_0x34201c(0x226)&&typeof _0x31f125=='number'?_0x55742c-_0x31f125:_0x373462===_0x334db4['Date']?Number(_0x55742c)-Number(_0x31f125):String(_0x55742c)[_0x34201c(0x1eb)](String(_0x31f125));}function xt(_0x313a63,_0x4a4741,_0x41049c){const _0x46af69=_0x42cb2d;var _0x18e264;if(!_0x41049c||!((_0x18e264=_0x41049c[_0x46af69(0x245)])!=null&&_0x18e264[_0x46af69(0x1b9)]))return!0x0;let {conjunction:_0x1cf314=_0x5a09a5['OR'],conditions:_0x2e834d}=_0x41049c;return _0x1cf314===_0x5a09a5[_0x46af69(0x1ad)]&&_0x2e834d[_0x46af69(0x1b9)]>0x1?_0x2e834d[_0x46af69(0x296)](_0x4118ca=>St(_0x313a63,_0x4a4741,_0x4118ca)):_0x2e834d['some'](_0x6f9237=>St(_0x313a63,_0x4a4741,_0x6f9237));}function St(_0xd49a1e,_0x3dfc3e,_0xd9539c){const _0x5aa5ab=_0x42cb2d;let _0x31b60f=_0xd49a1e[_0x5aa5ab(0x21e)][_0xd9539c[_0x5aa5ab(0x21c)]],_0x33e26e=_0x3dfc3e[_0x5aa5ab(0x28d)][_0xd9539c['fieldId']];if(Ct(_0xd9539c)){let _0x59c15d=wt(_0xd9539c)[_0x5aa5ab(0x287)](String(_0x31b60f??''));return _0xd9539c[_0x5aa5ab(0x1fd)]===_0x5aa5ab(0x1ff)?_0x59c15d:!_0x59c15d;}return!_0x33e26e||_0x17312a(_0x31b60f,_0xd9539c[_0x5aa5ab(0x1fd)],_0xd9539c[_0x5aa5ab(0x2b1)],_0x33e26e);}function Ct(_0x59ae7f){const _0x268577=_0x42cb2d;return _0x59ae7f[_0x268577(0x1fd)]===_0x268577(0x1ff)||_0x59ae7f['operator']===_0x268577(0x239);}function wt(_0x33ea30){const _0x3ef8a7=_0x42cb2d;let _0x5cd261=String(_0x33ea30['value']??'');if(_0x5cd261[_0x3ef8a7(0x1b9)]>0x200)throw Error(_0x3ef8a7(0x199));try{return new RegExp(_0x5cd261,_0x33ea30[_0x3ef8a7(0x1c2)]?void 0x0:'i');}catch(_0x65b6da){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x5cd261+'.\x20'+(_0x65b6da instanceof Error?_0x65b6da['message']:String(_0x65b6da)));}}function Tt(_0x14c47a,_0x2d3a8a,_0x2cef0e){const _0x3175ff=_0x42cb2d;if(_0x2cef0e[_0x3175ff(0x235)]!==_0x3175ff(0x207)&&_0x2cef0e['type']!==_0x3175ff(0x2d5)){var _0x4e6fe0;if(_0x2cef0e['type']===_0x2dedc2['Kanban']){var _0x5ca0a6;let _0x4c18cd=[((_0x5ca0a6=_0x2cef0e[_0x3175ff(0x28d)])==null||(_0x5ca0a6=_0x5ca0a6[0x0])==null?void 0x0:_0x5ca0a6['id'])??_0x14c47a[_0x3175ff(0x20c)],..._0x2cef0e[_0x3175ff(0x1e5)]??[]];return Array['from'](new Set(_0x4c18cd[_0x3175ff(0x250)](_0x4509f5=>!!_0x14c47a[_0x3175ff(0x28d)][_0x4509f5])));}if((_0x4e6fe0=_0x2cef0e[_0x3175ff(0x28d)])!=null&&_0x4e6fe0['length'])return _0x2cef0e[_0x3175ff(0x28d)][_0x3175ff(0x276)](_0x1dfc72=>_0x1dfc72['id'])[_0x3175ff(0x250)](_0x26cfaa=>{const _0x340325=_0x3175ff;var _0x50183e;return!(!_0x14c47a[_0x340325(0x28d)][_0x26cfaa]||_0x2d3a8a!=null&&(_0x50183e=_0x2d3a8a[_0x340325(0x2a9)])!=null&&(_0x50183e=_0x50183e[_0x26cfaa])!=null&&_0x50183e[_0x340325(0x253)]);});}return _0x14c47a[_0x3175ff(0x29c)][_0x3175ff(0x250)](_0x34a76c=>{const _0x28c045=_0x3175ff;var _0xd6da72;return!(!_0x14c47a[_0x28c045(0x28d)][_0x34a76c]||_0x2d3a8a!=null&&(_0xd6da72=_0x2d3a8a[_0x28c045(0x2a9)])!=null&&(_0xd6da72=_0xd6da72[_0x34a76c])!=null&&_0xd6da72[_0x28c045(0x253)]);});}let Q=class extends _0x37c8e5[_0x42cb2d(0x238)]{constructor(_0x33eb5e,_0x2f26b1,_0x25f8b7,_0xdaa545,_0x4e2e5f){const _0x56e8b5=_0x42cb2d;super(),this[_0x56e8b5(0x204)]=_0x33eb5e,this['_injector']=_0x2f26b1,this['_resourceLoaderService']=_0x25f8b7,this['_commandService']=_0xdaa545,this[_0x56e8b5(0x2a5)]=_0x4e2e5f;}['getBase'](){return this['_base'];}[_0x42cb2d(0x25a)](){return this['_base']['getUnitId']();}[_0x42cb2d(0x274)](){const _0x12e533=_0x42cb2d;return new at(this['getId'](),this[_0x12e533(0x27d)],this['_permissionService']);}[_0x42cb2d(0x217)](){const _0x434b9e=_0x42cb2d;return this[_0x434b9e(0x234)]['saveUnit'](this[_0x434b9e(0x25a)]())??_0x537bdf[_0x434b9e(0x1cb)](this[_0x434b9e(0x204)][_0x434b9e(0x295)]());}[_0x42cb2d(0x214)](){const _0x3dd91d=_0x42cb2d;return this[_0x3dd91d(0x204)][_0x3dd91d(0x295)]()[_0x3dd91d(0x1e8)];}[_0x42cb2d(0x174)](_0xfe5b06){const _0x28a099=_0x42cb2d;this[_0x28a099(0x27d)][_0x28a099(0x1ac)](_0x3cf18e['id'],{'unitId':this[_0x28a099(0x25a)](),'name':_0xfe5b06});}[_0x42cb2d(0x1aa)](){const _0x473131=_0x42cb2d;let _0x2ba8bb=this['_base']['getSnapshot']();return _0x2ba8bb[_0x473131(0x271)][_0x473131(0x276)](_0x466bc7=>_0x2ba8bb[_0x473131(0x1af)][_0x466bc7])['filter'](_0x270c8a=>_0x270c8a)[_0x473131(0x276)](_0x2520b6=>this[_0x473131(0x201)][_0x473131(0x24e)](Z,this,_0x2520b6['id'],this[_0x473131(0x201)]));}[_0x42cb2d(0x242)](_0x3c760d){const _0x1cc0d6=_0x42cb2d;let _0x4875bb=this[_0x1cc0d6(0x204)][_0x1cc0d6(0x295)]()[_0x1cc0d6(0x1af)][_0x3c760d];return _0x4875bb?this[_0x1cc0d6(0x201)][_0x1cc0d6(0x24e)](Z,this,_0x4875bb['id'],this[_0x1cc0d6(0x201)]):null;}[_0x42cb2d(0x221)](_0xba3874){const _0x4a8af3=_0x42cb2d;let _0x25aee4=this['_base']['getSnapshot'](),_0x185853=Object[_0x4a8af3(0x21e)](_0x25aee4[_0x4a8af3(0x1af)])[_0x4a8af3(0x220)](_0x18eafc=>_0x18eafc[_0x4a8af3(0x1e8)]===_0xba3874);return _0x185853?this[_0x4a8af3(0x201)][_0x4a8af3(0x24e)](Z,this,_0x185853['id'],this[_0x4a8af3(0x201)]):null;}[_0x42cb2d(0x1d5)](_0xa96d05,_0x2e27a4){const _0x24d228=_0x42cb2d;let _0xa708d5=_0x13ff92({'id':_0x4f9ee0(),'name':_0xa96d05,..._0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)],'primaryFieldName':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1cc)]}),_0x7f6990=_0x537bdf[_0x24d228(0x1c9)](_0xa708d5,(_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)])??{}),_0x1fa735=_0x17aac3(this[_0x24d228(0x204)][_0x24d228(0x295)](),_0x7f6990[_0x24d228(0x1e8)]);if(!_0x1fa735[_0x24d228(0x21a)])throw Error(_0x24d228(0x1f3)+_0x7f6990[_0x24d228(0x1e8)]+_0x24d228(0x227)+_0x2e61f6+'\x20'+_0x1fa735[_0x24d228(0x1d7)]);if(!this[_0x24d228(0x27d)][_0x24d228(0x1ac)](_0x1d6ad3['id'],{'unitId':this['_base'][_0x24d228(0x1e0)](),'table':_0x7f6990,'index':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1be)]}))throw Error(_0x24d228(0x1d8)+_0xa96d05+'\x22.');return this['_injector'][_0x24d228(0x24e)](Z,this,_0x7f6990['id'],this[_0x24d228(0x201)]);}[_0x42cb2d(0x25e)](_0xf0ce38){const _0x521bae=_0x42cb2d;let _0x5b34c1=typeof _0xf0ce38==_0x521bae(0x193)?_0xf0ce38:_0xf0ce38[_0x521bae(0x25a)]();if(!this[_0x521bae(0x27d)][_0x521bae(0x1ac)](_0x359c6b['id'],{'unitId':this[_0x521bae(0x204)]['getUnitId'](),'tableId':_0x5b34c1}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x5b34c1+'\x22.');return!0x0;}[_0x42cb2d(0x1c4)](_0x225ee9,_0x31ae80){const _0x6d905d=_0x42cb2d;let _0xa6deaf=this[_0x6d905d(0x204)]['getSnapshot'](),_0x1f9bdd=typeof _0x225ee9==_0x6d905d(0x193)?_0x225ee9:_0x225ee9['getId'](),_0xe27d89=_0xa6deaf[_0x6d905d(0x1af)][_0x1f9bdd];if(!_0xe27d89)throw Error(_0x6d905d(0x1fa)+_0x1f9bdd+'\x22\x20does\x20not\x20exist.');let _0x23715e=_0xa6deaf[_0x6d905d(0x271)][_0x6d905d(0x1d0)](_0x1f9bdd)+0x1,_0x33244a=_0x4f9ee0(),_0x3650cf=_0x4ca2a4(_0xe27d89,{'id':_0x33244a,'name':_0x242756(_0xa6deaf,_0xe27d89[_0x6d905d(0x1e8)]+'\x20Copy'),'includeRecords':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19b)])??!0x1,'regenerateViewIds':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19c)])??!0x1});if(!this[_0x6d905d(0x27d)][_0x6d905d(0x1ac)](_0x1d6ad3['id'],{'unitId':this[_0x6d905d(0x204)][_0x6d905d(0x1e0)](),'table':_0x3650cf,'index':_0x23715e}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x1f9bdd+'\x22.');return this[_0x6d905d(0x201)][_0x6d905d(0x24e)](Z,this,_0x3650cf['id'],this[_0x6d905d(0x201)]);}[_0x42cb2d(0x21b)](){const _0x1df98c=_0x42cb2d;let _0x196813=this['_base'][_0x1df98c(0x295)]();return{'id':_0x196813['id'],'name':_0x196813[_0x1df98c(0x1e8)],'tables':this['getTables']()[_0x1df98c(0x276)](_0x326cdc=>_0x326cdc[_0x1df98c(0x21b)]())};}};Q=z([R(0x1,_0x18fc25(_0x7ee076)),R(0x2,_0x180241),R(0x3,_0x35296b),R(0x4,_0x5ad99d)],Q);var Et=class extends _0x13f4e8{[_0x42cb2d(0x273)](){const _0x1d9d05=_0x42cb2d;this[_0x1d9d05(0x24a)](),this['_initBaseAfterEvents']();}['createBase'](_0xf63b95={},_0x5e588b){const _0x5a9a14=_0x42cb2d;let _0x197fbe=this[_0x5a9a14(0x180)][_0x5a9a14(0x241)](_0xfc0289['UNIVER_BASE'],_0xf63b95,_0x5e588b);return this[_0x5a9a14(0x201)][_0x5a9a14(0x24e)](Q,_0x197fbe);}[_0x42cb2d(0x2b8)](){const _0x5b2afb=_0x42cb2d;let _0x21fd5d=this[_0x5b2afb(0x180)][_0x5b2afb(0x1a7)](_0xfc0289[_0x5b2afb(0x28e)]);return _0x21fd5d?this[_0x5b2afb(0x201)]['createInstance'](Q,_0x21fd5d):null;}[_0x42cb2d(0x211)](_0x4f15cf){const _0x561793=_0x42cb2d;let _0x5efc46=this[_0x561793(0x180)][_0x561793(0x1d1)](_0x4f15cf,_0xfc0289['UNIVER_BASE']);return _0x5efc46?this[_0x561793(0x201)][_0x561793(0x24e)](Q,_0x5efc46):null;}['getBases'](){const _0x3934ab=_0x42cb2d;return this['_univerInstanceService'][_0x3934ab(0x255)](_0xfc0289[_0x3934ab(0x28e)])[_0x3934ab(0x276)](_0x251e8a=>this[_0x3934ab(0x201)][_0x3934ab(0x24e)](Q,_0x251e8a));}[_0x42cb2d(0x2a8)](){const _0x2acfcf=_0x42cb2d;this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x200)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted']((_0x1cd831,_0x1aa7d7)=>{const _0x304d64=_0x2acfcf;var _0x1f0e3d;if(!$(_0x1cd831,_0x178c24))return;let _0xefd6d5=_0x1cd831[_0x304d64(0x1fe)];if(!((_0x1f0e3d=_0xefd6d5[_0x304d64(0x2c7)])!=null&&_0x1f0e3d[_0x304d64(0x1b9)]))return;let _0x1b35fd=this['getBase'](_0xefd6d5[_0x304d64(0x189)]),_0x263da9=_0x1b35fd==null?void 0x0:_0x1b35fd['getTableById'](_0xefd6d5['hierarchyChanges'][0x0][_0x304d64(0x1bf)]);if(!_0x1b35fd||!_0x263da9)return;let _0x18ee2c={'base':_0x1b35fd,'table':_0x263da9,'changes':_0xefd6d5[_0x304d64(0x2c7)],'source':_0x1aa7d7!=null&&_0x1aa7d7['fromCollab']?_0x220938[_0x304d64(0x2ca)]:_0xefd6d5[_0x304d64(0x2b5)]??_0x220938['UI']};this[_0x304d64(0x2c9)](this[_0x304d64(0x231)][_0x304d64(0x200)],_0x18ee2c);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x2cc)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0xf16f56=>{const _0x4e830b=_0x2acfcf;if(_0xf16f56['id']!==_0x1d6ad3['id'])return;let {unitId:_0x36a4fd,table:_0x580e09,index:_0x545d8c}=_0xf16f56[_0x4e830b(0x1fe)],_0x3d510d=this['getBase'](_0x36a4fd);if(!_0x3d510d)return;let _0x5a35a0={'base':_0x3d510d,'table':_0x580e09,'index':_0x545d8c};this[_0x4e830b(0x2c9)](this['Event'][_0x4e830b(0x2cc)],_0x5a35a0);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x18f)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0x5b4d6f=>{const _0xc8fb08=_0x2acfcf;if(_0x5b4d6f['id']!==_0x89725e['id'])return;let {unitId:_0x525c91,tableId:_0x3111ff,field:_0x2c1dc0,index:_0x404f17,viewIndexes:_0x14a911}=_0x5b4d6f['params'],_0x55241b=this[_0xc8fb08(0x211)](_0x525c91);if(!_0x55241b)return;let _0x5ed3d8=_0x55241b[_0xc8fb08(0x242)](_0x3111ff);if(!_0x5ed3d8)return;let _0x54d901={'base':_0x55241b,'table':_0x5ed3d8,'field':_0x2c1dc0,'index':_0x404f17,'viewIndexes':_0x14a911};this[_0xc8fb08(0x2c9)](this[_0xc8fb08(0x231)][_0xc8fb08(0x18f)],_0x54d901);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x1a1)],()=>this['_commandService']['onCommandExecuted'](_0x4bfe62=>{const _0x2f9889=_0x2acfcf;if(_0x4bfe62['id']!==_0x470e4e['id']&&_0x4bfe62['id']!==_0x30ed55['id'])return;let _0x1e78a6=_0x4bfe62[_0x2f9889(0x1fe)],{unitId:_0x138a87,tableId:_0x58744b}=_0x1e78a6,_0x1f4602=_0x1e78a6[_0x2f9889(0x2d2)]??[_0x1e78a6[_0x2f9889(0x1e1)]],_0x55fd4e=this['getBase'](_0x138a87);if(!_0x55fd4e)return;let _0x3f968e=_0x55fd4e[_0x2f9889(0x242)](_0x58744b);if(!_0x3f968e)return;let _0x58a808={'base':_0x55fd4e,'table':_0x3f968e,'records':_0x1f4602};this[_0x2f9889(0x2c9)](this[_0x2f9889(0x231)]['BaseTableRecordCreated'],_0x58a808);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x229)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x1abf9b=>{const _0x3de63f=_0x2acfcf;if(_0x1abf9b['id']!==_0x471b73['id'])return;let {unitId:_0xaab03e,tableId:_0x3f5b6d,view:_0x42ee54,index:_0x3f2ba9}=_0x1abf9b[_0x3de63f(0x1fe)],_0x5a69e7=this[_0x3de63f(0x211)](_0xaab03e);if(!_0x5a69e7)return;let _0x41d365=_0x5a69e7[_0x3de63f(0x242)](_0x3f5b6d);if(!_0x41d365)return;let _0x5278e1={'base':_0x5a69e7,'table':_0x41d365,'view':_0x42ee54,'index':_0x3f2ba9};this[_0x3de63f(0x2c9)](this['Event'][_0x3de63f(0x229)],_0x5278e1);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x260)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x3da61f=>{const _0x2311fd=_0x2acfcf;if(_0x3da61f['id']!==_0x50c883['id'])return;let {unitId:_0x3e680a,tableId:_0x4ddd9d,recordId:_0x1c7889,fieldId:_0x22cbd1,value:_0x566046}=_0x3da61f['params'],_0x153b58=this['getBase'](_0x3e680a);if(!_0x153b58)return;let _0x578a77=_0x153b58['getTableById'](_0x4ddd9d);if(!_0x578a77)return;let _0x237de1=_0x578a77[_0x2311fd(0x248)](_0x22cbd1);if(!_0x237de1)return;let _0x437a7d=_0x578a77[_0x2311fd(0x1e3)](_0x1c7889);if(!_0x437a7d)return;let _0x4a109d={'base':_0x153b58,'table':_0x578a77,'field':_0x237de1,'record':_0x437a7d,'value':_0x566046};this['fireEvent'](this[_0x2311fd(0x231)][_0x2311fd(0x260)],_0x4a109d);})));}[_0x42cb2d(0x24a)](){const _0x101f76=_0x42cb2d;this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)]['BeforeBaseHierarchyChange'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x464ba1=>{const _0x5947f8=_0x101f76;if($(_0x464ba1,_0x54705e)){let {unitId:_0xb60f64,tableId:_0x5468f4,patches:_0x5d6520,source:_0xc4724b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x27c823=this['_getHierarchyEventContext'](_0xb60f64,_0x5468f4);if(!_0x27c823)return;this['_fireBeforeHierarchyChange'](_0x27c823[_0x5947f8(0x21d)],_0x27c823[_0x5947f8(0x269)],_0x3495d4(_0x27c823[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),_0x5d6520),_0xc4724b);return;}if($(_0x464ba1,_0x1fa9ec)){let {unitId:_0x5174d7,tableId:_0x36d7f4,patches:_0x201145,source:_0x1fbd9b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x14b87a=this['_getHierarchyEventContext'](_0x5174d7,_0x36d7f4);if(!_0x14b87a)return;let _0x562047=_0x14b87a[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();this[_0x5947f8(0x1dc)](_0x14b87a[_0x5947f8(0x21d)],_0x14b87a['table'],_0x3495d4(_0x562047,_0x28902e(_0x562047,_0x201145)),_0x1fbd9b);return;}if($(_0x464ba1,_0x470e4e)){let _0x433de8=_0x464ba1[_0x5947f8(0x1fe)],_0x2fc18b=this[_0x5947f8(0x1bd)](_0x433de8['unitId'],_0x433de8['tableId']);if(!_0x2fc18b)return;this['_fireBeforeHierarchyChange'](_0x2fc18b[_0x5947f8(0x21d)],_0x2fc18b[_0x5947f8(0x269)],_0x3474ef(_0x2fc18b['table'][_0x5947f8(0x1d3)](),[_0x433de8[_0x5947f8(0x1e1)]]),_0x433de8[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x30ed55)){let _0x108a6f=_0x464ba1['params'],_0x3cdc24=this[_0x5947f8(0x1bd)](_0x108a6f[_0x5947f8(0x189)],_0x108a6f[_0x5947f8(0x1bf)]);if(!_0x3cdc24)return;this[_0x5947f8(0x1dc)](_0x3cdc24[_0x5947f8(0x21d)],_0x3cdc24[_0x5947f8(0x269)],_0x3474ef(_0x3cdc24['table']['getTable'](),_0x108a6f[_0x5947f8(0x2d2)]),_0x108a6f[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x328e28)){let _0xf3d849=_0x464ba1['params'],_0x59a3a4=this[_0x5947f8(0x1bd)](_0xf3d849['unitId'],_0xf3d849[_0x5947f8(0x1bf)]);if(!_0x59a3a4)return;this[_0x5947f8(0x1dc)](_0x59a3a4[_0x5947f8(0x21d)],_0x59a3a4[_0x5947f8(0x269)],_0x3474ef(_0x59a3a4[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xf3d849[_0x5947f8(0x1e1)]]),_0xf3d849[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x146970)){let _0x30106c=_0x464ba1[_0x5947f8(0x1fe)],_0x2eae67=this['_getHierarchyEventContext'](_0x30106c[_0x5947f8(0x189)],_0x30106c[_0x5947f8(0x1bf)]);if(!_0x2eae67)return;let _0x14de50=_0x2eae67[_0x5947f8(0x269)]['getTable'](),_0x32aebf=_0x30106c[_0x5947f8(0x21c)]??_0x1d8e8c(_0x14de50),_0x486bf6=_0x4aa1d4(_0x14de50,_0x32aebf)[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x30106c[_0x5947f8(0x192)])??null;this[_0x5947f8(0x1dc)](_0x2eae67[_0x5947f8(0x21d)],_0x2eae67['table'],[{'tableId':_0x30106c[_0x5947f8(0x1bf)],'fieldId':_0x32aebf,'recordId':_0x30106c[_0x5947f8(0x192)],'oldParentRecordId':_0x486bf6,'parentRecordId':_0x30106c[_0x5947f8(0x263)]}],_0x30106c[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x38016d)){let _0x561caf=_0x464ba1['params'],_0x144514=this[_0x5947f8(0x1bd)](_0x561caf[_0x5947f8(0x189)],_0x561caf[_0x5947f8(0x1bf)]);if(!_0x144514)return;let _0x5f4738=_0x561caf[_0x5947f8(0x21c)]??_0x1d8e8c(_0x144514[_0x5947f8(0x269)]['getTable']());this[_0x5947f8(0x1dc)](_0x144514[_0x5947f8(0x21d)],_0x144514[_0x5947f8(0x269)],[{'tableId':_0x561caf[_0x5947f8(0x1bf)],'fieldId':_0x5f4738,'recordId':_0x561caf[_0x5947f8(0x1e1)]['id'],'oldParentRecordId':null,'parentRecordId':_0x561caf[_0x5947f8(0x263)]}],_0x561caf[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x36855b)){let _0xb66809=_0x464ba1[_0x5947f8(0x1fe)],_0x6d1287=this[_0x5947f8(0x1bd)](_0xb66809[_0x5947f8(0x189)],_0xb66809['tableId']);if(!_0x6d1287)return;this['_fireBeforeHierarchyChange'](_0x6d1287[_0x5947f8(0x21d)],_0x6d1287[_0x5947f8(0x269)],_0x38e02b(_0x6d1287[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xb66809[_0x5947f8(0x192)]]),_0xb66809['source']??_0x220938['UI']);return;}if($(_0x464ba1,_0x259e76)){let _0x103c25=_0x464ba1['params'],_0x258e9c=this['_getHierarchyEventContext'](_0x103c25[_0x5947f8(0x189)],_0x103c25['tableId']);if(!_0x258e9c)return;this['_fireBeforeHierarchyChange'](_0x258e9c[_0x5947f8(0x21d)],_0x258e9c[_0x5947f8(0x269)],_0x38e02b(_0x258e9c['table'][_0x5947f8(0x1d3)](),_0x103c25[_0x5947f8(0x20d)]),_0x103c25[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if(!$(_0x464ba1,_0x50c883))return;let _0x1f1f9c=_0x464ba1[_0x5947f8(0x1fe)],_0x10bdc0=this[_0x5947f8(0x1bd)](_0x1f1f9c[_0x5947f8(0x189)],_0x1f1f9c[_0x5947f8(0x1bf)]);if(!_0x10bdc0)return;let _0x2767d1=_0x10bdc0[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();if(!_0x1d243e(_0x2767d1)['includes'](_0x1f1f9c['fieldId']))return;let _0x4c03c2=_0x4aa1d4(_0x2767d1,_0x1f1f9c[_0x5947f8(0x21c)])[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x1f1f9c[_0x5947f8(0x192)])??null,_0x1c4dd5=_0x46817c(_0x1f1f9c[_0x5947f8(0x2b1)])[0x0]??null;_0x4c03c2!==_0x1c4dd5&&this[_0x5947f8(0x1dc)](_0x10bdc0['base'],_0x10bdc0[_0x5947f8(0x269)],[{'tableId':_0x1f1f9c[_0x5947f8(0x1bf)],'fieldId':_0x1f1f9c[_0x5947f8(0x21c)],'recordId':_0x1f1f9c[_0x5947f8(0x192)],'oldParentRecordId':_0x4c03c2,'parentRecordId':_0x1c4dd5}],_0x1f1f9c[_0x5947f8(0x2b5)]??_0x220938['UI']);}))),this['disposeWithMe'](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x191)],()=>this['_commandService']['beforeCommandExecuted'](_0x568220=>{const _0x5d2ed3=_0x101f76;if(_0x568220['id']!==_0x1d6ad3['id'])return;let {unitId:_0x470e46,table:_0x3dea97,index:_0x2e80a7}=_0x568220['params'],_0x148d5b=this[_0x5d2ed3(0x211)](_0x470e46);if(!_0x148d5b)return;let _0x357b77={'base':_0x148d5b,'table':_0x3dea97,'index':_0x2e80a7};if(this[_0x5d2ed3(0x2c9)](this[_0x5d2ed3(0x231)][_0x5d2ed3(0x191)],_0x357b77),_0x357b77[_0x5d2ed3(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this[_0x101f76(0x231)][_0x101f76(0x232)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x424dfc=>{const _0x550c67=_0x101f76;if(_0x424dfc['id']!==_0x89725e['id'])return;let {unitId:_0x126094,tableId:_0x5e0407,field:_0x502c58,index:_0x5760f7,viewIndexes:_0x469202}=_0x424dfc[_0x550c67(0x1fe)],_0x553ac2=this['getBase'](_0x126094);if(!_0x553ac2)return;let _0x1e6977=_0x553ac2['getTableById'](_0x5e0407);if(!_0x1e6977)return;let _0x2bba81={'base':_0x553ac2,'table':_0x1e6977,'field':_0x502c58,'index':_0x5760f7,'viewIndexes':_0x469202};if(this[_0x550c67(0x2c9)](this[_0x550c67(0x231)][_0x550c67(0x232)],_0x2bba81),_0x2bba81[_0x550c67(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this['Event']['BeforeBaseTableRecordCreate'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x1cdee7=>{const _0x100094=_0x101f76;if(_0x1cdee7['id']!==_0x470e4e['id']&&_0x1cdee7['id']!==_0x30ed55['id'])return;let _0xeaf0e5=_0x1cdee7[_0x100094(0x1fe)],{unitId:_0xcd5528,tableId:_0x585ae5}=_0xeaf0e5,_0x2d123a=_0xeaf0e5[_0x100094(0x2d2)]??[_0xeaf0e5['record']],_0x630c57=this['getBase'](_0xcd5528);if(!_0x630c57)return;let _0x28b341=_0x630c57[_0x100094(0x242)](_0x585ae5);if(!_0x28b341)return;let _0x3df609={'base':_0x630c57,'table':_0x28b341,'records':_0x2d123a};if(this['fireEvent'](this[_0x100094(0x231)][_0x100094(0x2b7)],_0x3df609),_0x3df609[_0x100094(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x17a)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x695f19=>{const _0x5c4ac4=_0x101f76;if(_0x695f19['id']!==_0x471b73['id'])return;let {unitId:_0x615171,tableId:_0x4ed7f1,view:_0x31d990,index:_0x14a6dc}=_0x695f19[_0x5c4ac4(0x1fe)],_0x4f56d0=this[_0x5c4ac4(0x211)](_0x615171);if(!_0x4f56d0)return;let _0x2eb5a3=_0x4f56d0[_0x5c4ac4(0x242)](_0x4ed7f1);if(!_0x2eb5a3)return;let _0xd918da={'base':_0x4f56d0,'table':_0x2eb5a3,'view':_0x31d990,'index':_0x14a6dc};if(this[_0x5c4ac4(0x2c9)](this[_0x5c4ac4(0x231)][_0x5c4ac4(0x17a)],_0xd918da),_0xd918da[_0x5c4ac4(0x298)])throw new _0x3f6a5c();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x101f76(0x203)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x486471=>{const _0xad703b=_0x101f76;if(_0x486471['id']!==_0x50c883['id'])return;let {unitId:_0x577c79,tableId:_0x365855,recordId:_0xebce0a,fieldId:_0x322e7f,value:_0x23772a}=_0x486471['params'],_0x25cb8a=this[_0xad703b(0x211)](_0x577c79);if(!_0x25cb8a)return;let _0x313f7f=_0x25cb8a[_0xad703b(0x242)](_0x365855);if(!_0x313f7f)return;let _0xd61592=_0x313f7f[_0xad703b(0x248)](_0x322e7f);if(!_0xd61592)return;let _0x50c5c9=_0x313f7f[_0xad703b(0x1e3)](_0xebce0a);if(!_0x50c5c9)return;let _0x25eb26={'base':_0x25cb8a,'table':_0x313f7f,'field':_0xd61592,'record':_0x50c5c9,'value':_0x23772a};if(this[_0xad703b(0x2c9)](this[_0xad703b(0x231)][_0xad703b(0x203)],_0x25eb26),_0x25eb26[_0xad703b(0x298)])throw new _0x3f6a5c();})));}[_0x42cb2d(0x1bd)](_0xeb111b,_0x56d918){const _0x590c73=_0x42cb2d;let _0x1fb593=this[_0x590c73(0x211)](_0xeb111b),_0x34348f=_0x1fb593==null?void 0x0:_0x1fb593['getTableById'](_0x56d918);return _0x1fb593&&_0x34348f?{'base':_0x1fb593,'table':_0x34348f}:null;}[_0x42cb2d(0x1dc)](_0x3cc8b9,_0x2e8ec3,_0x5a5146,_0x4a1d06){const _0x2a3c90=_0x42cb2d;if(!_0x5a5146[_0x2a3c90(0x1b9)])return;let _0x4fc0d8={'base':_0x3cc8b9,'table':_0x2e8ec3,'changes':_0x5a5146,'source':_0x4a1d06};if(this[_0x2a3c90(0x2c9)](this[_0x2a3c90(0x231)][_0x2a3c90(0x1f4)],_0x4fc0d8),_0x4fc0d8[_0x2a3c90(0x298)])throw new _0x3f6a5c();}};function $(_0x285b17,_0x676047){const _0x3b9146=_0x42cb2d;return _0x285b17['id']===_0x676047['id']&&_0x285b17[_0x3b9146(0x1fe)]!==void 0x0;}_0x13f4e8[_0x42cb2d(0x205)](Et);var Dt=class extends _0x3c7e49{get[_0x42cb2d(0x22a)](){return _0x334db4;}get[_0x42cb2d(0x2c6)](){return _0x5a09a5;}get[_0x42cb2d(0x1ef)](){return _0xf13532;}get[_0x42cb2d(0x2bf)](){return ot;}get[_0x42cb2d(0x17c)](){return _0x2dedc2;}get['BaseConditionalColorTarget'](){return _0x3ea519;}get[_0x42cb2d(0x1cf)](){return _0x47fd54;}get['BaseConditionalDateMode'](){return _0x756c91;}get[_0x42cb2d(0x254)](){return _0x42481e;}get[_0x42cb2d(0x264)](){return _0x220938;}get[_0x42cb2d(0x2a7)](){return _0x1d94db;}get[_0x42cb2d(0x17e)](){return _0x125b1b;}get[_0x42cb2d(0x25f)](){return _0x50fcc1;}};_0x3c7e49[_0x42cb2d(0x205)](Dt);function _0x4bdd(_0x8ee41c,_0x109b4a){_0x8ee41c=_0x8ee41c-0x172;const _0x1281bb=_0x1281();let _0x4bdd15=_0x1281bb[_0x8ee41c];return _0x4bdd15;}var Ot=class extends _0x3e96b9{get['BaseTableCreated'](){const _0x597a0b=_0x42cb2d;return _0x597a0b(0x2cc);}get[_0x42cb2d(0x191)](){const _0x30bb05=_0x42cb2d;return _0x30bb05(0x191);}get['BaseTableFieldCreated'](){const _0x2d67a7=_0x42cb2d;return _0x2d67a7(0x18f);}get[_0x42cb2d(0x232)](){const _0x3f50f4=_0x42cb2d;return _0x3f50f4(0x232);}get['BaseTableRecordCreated'](){return'BaseTableRecordCreated';}get[_0x42cb2d(0x2b7)](){const _0x44c9a6=_0x42cb2d;return _0x44c9a6(0x2b7);}get[_0x42cb2d(0x229)](){const _0x25733f=_0x42cb2d;return _0x25733f(0x229);}get[_0x42cb2d(0x17a)](){const _0x117adc=_0x42cb2d;return _0x117adc(0x17a);}get['BaseTableCellValueChanged'](){const _0x31aa5a=_0x42cb2d;return _0x31aa5a(0x260);}get[_0x42cb2d(0x203)](){return'BeforeBaseTableCellValueChange';}get[_0x42cb2d(0x200)](){const _0x27c6a9=_0x42cb2d;return _0x27c6a9(0x200);}get[_0x42cb2d(0x1f4)](){const _0x538c39=_0x42cb2d;return _0x538c39(0x1f4);}};_0x3e96b9['extend'](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
1
+ const _0x6a5b69=_0x1896;(function(_0x2280e7,_0x4c926c){const _0x540a49=_0x1896,_0x29315f=_0x2280e7();while(!![]){try{const _0x40d40b=parseInt(_0x540a49(0x1e8))/0x1*(-parseInt(_0x540a49(0x230))/0x2)+parseInt(_0x540a49(0x2c8))/0x3*(parseInt(_0x540a49(0x23a))/0x4)+parseInt(_0x540a49(0x19c))/0x5*(-parseInt(_0x540a49(0x20f))/0x6)+-parseInt(_0x540a49(0x1de))/0x7*(parseInt(_0x540a49(0x2b5))/0x8)+-parseInt(_0x540a49(0x25f))/0x9*(-parseInt(_0x540a49(0x17e))/0xa)+parseInt(_0x540a49(0x1b6))/0xb+parseInt(_0x540a49(0x18c))/0xc*(-parseInt(_0x540a49(0x1d2))/0xd);if(_0x40d40b===_0x4c926c)break;else _0x29315f['push'](_0x29315f['shift']());}catch(_0x346ff3){_0x29315f['push'](_0x29315f['shift']());}}}(_0x37f6,0xdf3d9));import{ApplyBaseJson1Mutation as _0x4664de,BASE_TABLE_NAME_REQUIREMENTS as _0x5963f1,BaseConditionalColorRuleUpdateType as _0x21d239,BaseEventSource as _0x43f637,BaseHierarchyErrorCode as _0x53ea69,BatchCreateBaseRecordsCommand as _0x28e204,BatchDeleteBaseRecordsCommand as _0x16f69d,ChangeBaseFieldTypeCommand as _0x1af08b,CreateBaseChildRecordCommand as _0x4cd8a9,CreateBaseFieldCommand as _0x2ecef1,CreateBaseRecordCommand as _0x817aeb,CreateBaseTableCommand as _0x118e4c,CreateBaseViewCommand as _0x4efbdd,DeleteBaseFieldCommand as _0x3ceb79,DeleteBaseRecordCommand as _0x392c6f,DeleteBaseTableCommand as _0x480168,DeleteBaseViewCommand as _0x1c08cd,DuplicateBaseRecordCommand as _0x499a45,IBaseProjectionService as _0x483014,MoveBaseFieldCommand as _0x1e2afa,MoveBaseHierarchyRecordCommand as _0x448699,MoveBaseViewCommand as _0x1008cd,RenameBaseTableCommand as _0x264dca,RenameBaseViewCommand as _0x11dffb,SetBaseNameCommand as _0x280ebb,SetBasePermissionCommand as _0x59d07a,SetBasePermissionsCommand as _0x6f707f,SetBaseRangeValuesCommand as _0x50c929,SetBaseRecordValuesCommand as _0x2cebcc,SetBaseTableHierarchyFieldCommand as _0x2bda89,SetBaseViewFieldOrderCommand as _0x26a020,SetBaseViewFieldVisibleCommand as _0x5ce8b2,SetBaseViewFieldWidthCommand as _0x4154ed,SetBaseViewFilterCommand as _0x1e5f36,SetBaseViewGroupCommand as _0x545b5d,SetBaseViewSortCommand as _0x15d9fe,UpdateBaseCellCommand as _0x3a32fc,UpdateBaseFieldCommand as _0x7b3c97,UpdateBaseRecordOrderCommand as _0x43adcc,UpdateBaseViewConditionalColorRulesCommand as _0x49c748,UpdateBaseViewConfigCommand as _0x403e74,ValidateBaseFormulaCommand as _0x43f42c,buildBaseHierarchyIndex as _0x5b61b7,canEditBaseTargets as _0x10bbe0,copyBaseTableSnapshot as _0x16e20,createUniqueBaseTableName as _0x279ff1,ensureBaseTableCellLayout as _0xff35e2,getActiveBaseHierarchyFieldIds as _0x327c28,getBaseCellValue as _0x4e5b69,getBaseFieldPermissionObjectId as _0x219de7,getBaseFormulaTableName as _0x193fc0,getBaseHierarchyDeletePromotions as _0x57d1f1,getBasePermissionValue as _0x2f3e96,getBaseRecordPermissionObjectId as _0x1b9662,getBaseTablePermissionObjectId as _0x2d8a33,getBaseViewPermissionObjectId as _0x33ee0c,getRecordLinkFieldConfig as _0x3dfa8b,matchesBaseCondition as _0x17c967,parseRecordLinkIds as _0x2b8d32,resolveBaseHierarchyFieldId as _0x38a87b,resolveBaseRangeHierarchyPatches as _0x1b3dee,searchBaseTable as _0x729fff,serializeRecordLinkIds as _0xe4f0db,validateBaseHierarchyRecordCreations as _0x6f896b,validateBaseHierarchyRecordPatches as _0x22441f,validateBaseTableName as _0x4fd34e,validateRecordLinkValue as _0x46f65b}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x8c29d8,BaseConditionalColorOperator as _0x3f8d13,BaseConditionalColorTarget as _0x44652a,BaseConditionalDateMode as _0x206636,BaseFieldType as _0x1dcf64,BaseFilterConjunction as _0x4157c8,BaseFilterOperator as _0x394202,BaseHierarchyInvalidReason as _0x549f37,BaseRecordLinkRole as _0x546818,BaseSortDirection as _0x35c88d,BaseViewType as _0x144585,CanceledError as _0x35b56f,ICommandService as _0x1047ac,IPermissionService as _0x9f57f5,IResourceLoaderService as _0x595187,ImageSourceType as _0x586c40,Inject as _0x547f59,Injector as _0x3c554c,Tools as _0x2517f7,UniverInstanceType as _0x523a99,createDefaultBaseTableSnapshot as _0xe17d11,generateRandomId as _0x49e131}from'@univerjs/core';import*as _0x4e29a4 from'@univerjs/core/facade';import{FBaseInitialable as _0x2df259,FEnum as _0x21148e,FEventName as _0xf4815a,FUniver as _0x61ceef}from'@univerjs/core/facade';import{UnitAction as _0x1513c7}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x2057d2}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x22f62b,_0x4a728a,_0x31ca89){const _0x2216e7=_0x1896;this[_0x2216e7(0x23e)]=_0x22f62b,this[_0x2216e7(0x1ec)]=_0x4a728a,this[_0x2216e7(0x2a0)]=_0x31ca89;}async[_0x6a5b69(0x1b2)](_0x2a423b){const _0x57392e=_0x6a5b69;return this[_0x57392e(0x1ec)]['executeCommand'](_0x6f707f['id'],{'unitId':this[_0x57392e(0x23e)],'changes':_0x2a423b});}async[_0x6a5b69(0x2a9)](_0x5a394f,_0x115f8b){const _0x27cd7b=_0x6a5b69;await this[_0x27cd7b(0x1ec)][_0x27cd7b(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x27cd7b(0x23e)],'objectId':this[_0x27cd7b(0x23e)],'action':_0x5a394f,'value':_0x115f8b});}['getPoint'](_0x26a0a9){return _0x2f3e96(this['_permissionService'],this['_unitId'],this['_unitId'],_0x26a0a9);}async['setEditable'](_0x1a9cee=!0x0){const _0x153c48=_0x6a5b69;await this[_0x153c48(0x1ec)]['executeCommand'](_0x59d07a['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':_0x1a9cee});}async[_0x6a5b69(0x25b)](){const _0x53a7d9=_0x6a5b69;await this[_0x53a7d9(0x1ec)][_0x53a7d9(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x53a7d9(0x23e)],'objectId':this['_unitId'],'action':_0x1513c7['Edit'],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x94a6ea=_0x6a5b69;return _0x2f3e96(this[_0x94a6ea(0x2a0)],this[_0x94a6ea(0x23e)],this[_0x94a6ea(0x23e)],_0x1513c7[_0x94a6ea(0x1a6)]);}},L=class{constructor(_0xe27e24,_0x891c6e,_0x5ebe2c,_0x46818c,_0x2f45c6){const _0x11f554=_0x6a5b69;this['_unitId']=_0xe27e24,this[_0x11f554(0x299)]=_0x891c6e,this['_parentObjectIds']=_0x5ebe2c,this['_commandService']=_0x46818c,this[_0x11f554(0x2a0)]=_0x2f45c6;}async[_0x6a5b69(0x177)](_0x37a54d=!0x0){const _0x33257d=_0x6a5b69;await this[_0x33257d(0x1ec)][_0x33257d(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x33257d(0x23e)],'objectId':this[_0x33257d(0x299)],'action':_0x1513c7['Edit'],'value':_0x37a54d});}async[_0x6a5b69(0x25b)](){const _0x5d24ca=_0x6a5b69;await this[_0x5d24ca(0x1ec)][_0x5d24ca(0x2cc)](_0x59d07a['id'],{'unitId':this[_0x5d24ca(0x23e)],'objectId':this[_0x5d24ca(0x299)],'action':_0x1513c7[_0x5d24ca(0x1a6)],'value':!0x1});}[_0x6a5b69(0x1f6)](){const _0x312bca=_0x6a5b69;return _0x10bbe0(this['_permissionService'],this['_unitId'],[...this[_0x312bca(0x259)],this['_objectId']]);}};function R(_0x525d2c,_0x98e06d){return function(_0x2ece84,_0x150306){_0x98e06d(_0x2ece84,_0x150306,_0x525d2c);};}function z(_0x9d82d1,_0x119853,_0x37d23d,_0x34e991){const _0x46e928=_0x6a5b69;var _0x21f56b=arguments[_0x46e928(0x273)],_0x1c78e8=_0x21f56b<0x3?_0x119853:_0x34e991===null?_0x34e991=Object[_0x46e928(0x171)](_0x119853,_0x37d23d):_0x34e991,_0xafbc3b;if(typeof Reflect==_0x46e928(0x1d4)&&typeof Reflect[_0x46e928(0x1cd)]==_0x46e928(0x1a4))_0x1c78e8=Reflect[_0x46e928(0x1cd)](_0x9d82d1,_0x119853,_0x37d23d,_0x34e991);else{for(var _0x57b5a1=_0x9d82d1['length']-0x1;_0x57b5a1>=0x0;_0x57b5a1--)(_0xafbc3b=_0x9d82d1[_0x57b5a1])&&(_0x1c78e8=(_0x21f56b<0x3?_0xafbc3b(_0x1c78e8):_0x21f56b>0x3?_0xafbc3b(_0x119853,_0x37d23d,_0x1c78e8):_0xafbc3b(_0x119853,_0x37d23d))||_0x1c78e8);}return _0x21f56b>0x3&&_0x1c78e8&&Object[_0x46e928(0x267)](_0x119853,_0x37d23d,_0x1c78e8),_0x1c78e8;}let B=class{constructor(_0x621103,_0x5f19f9,_0x19c8ba,_0x4f8b66,_0x2d1ba5){const _0x29240b=_0x6a5b69;this[_0x29240b(0x178)]=_0x621103,this[_0x29240b(0x257)]=_0x5f19f9,this['_fieldId']=_0x19c8ba,this[_0x29240b(0x1ec)]=_0x4f8b66,this[_0x29240b(0x2a0)]=_0x2d1ba5;}[_0x6a5b69(0x271)](){return this['_fieldId'];}[_0x6a5b69(0x167)](){const _0xdb37c5=_0x6a5b69;let _0x4c007d=this[_0xdb37c5(0x257)]['getId']();return new L(this[_0xdb37c5(0x178)][_0xdb37c5(0x271)](),_0x219de7(_0x4c007d,this['_fieldId']),[_0x2d8a33(_0x4c007d)],this[_0xdb37c5(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x204)](){const _0x2ee26a=_0x6a5b69;return this[_0x2ee26a(0x233)]();}[_0x6a5b69(0x2bf)](){const _0x2325f8=_0x6a5b69;return this['_getField']()[_0x2325f8(0x258)];}[_0x6a5b69(0x287)](){const _0x52c3e6=_0x6a5b69;return this['_getField']()[_0x52c3e6(0x18d)];}[_0x6a5b69(0x262)](){const _0x4560ea=_0x6a5b69;return this[_0x4560ea(0x233)]()[_0x4560ea(0x2bb)];}[_0x6a5b69(0x202)](){const _0x14f5d4=_0x6a5b69;return this[_0x14f5d4(0x233)]()[_0x14f5d4(0x1b0)];}['getDescription'](){const _0x59deb0=_0x6a5b69;return this[_0x59deb0(0x233)]()['description'];}[_0x6a5b69(0x2a8)](){const _0x301de6=_0x6a5b69;return!!this[_0x301de6(0x233)]()[_0x301de6(0x1a5)];}[_0x6a5b69(0x16c)](_0x57e183){const _0x5cf7f5=_0x6a5b69;return this[_0x5cf7f5(0x2be)]({'name':_0x57e183});}[_0x6a5b69(0x1e1)](_0x595400,_0x4159fc){const _0x494b56=_0x6a5b69;return this[_0x494b56(0x2be)]({'config':_0x595400},_0x4159fc);}[_0x6a5b69(0x28f)](_0x5aa543){const _0x69d747=_0x6a5b69;return this[_0x69d747(0x2be)]({'defaultValue':_0x5aa543});}['update'](_0xab7651,_0x504df5){const _0x57f949=_0x6a5b69;let _0x233124=this[_0x57f949(0x233)]()[_0x57f949(0x18d)];return(_0xab7651[_0x57f949(0x18d)]??_0x233124)===_0x1dcf64['Formula']&&(Object[_0x57f949(0x174)][_0x57f949(0x280)][_0x57f949(0x20a)](_0xab7651,_0x57f949(0x2bb))||_0xab7651[_0x57f949(0x18d)]===_0x1dcf64[_0x57f949(0x269)])&&!this[_0x57f949(0x1ef)](_0x504df5)?!0x1:this['_commandService'][_0x57f949(0x1d5)](_0x7b3c97['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x57f949(0x257)][_0x57f949(0x271)](),'fieldId':this[_0x57f949(0x21b)],'patch':_0xab7651});}[_0x6a5b69(0x236)](_0x362258,_0x4b20e6={},_0x1fcc2d){const _0x413e93=_0x6a5b69;return _0x362258===_0x1dcf64[_0x413e93(0x269)]&&!this['_writeFormulaExternalReferences'](_0x1fcc2d)?!0x1:this[_0x413e93(0x1ec)]['syncExecuteCommand'](_0x1af08b['id'],{'unitId':this['_base'][_0x413e93(0x271)](),'tableId':this[_0x413e93(0x257)]['getId'](),'fieldId':this[_0x413e93(0x21b)],'input':{'type':_0x362258,'config':_0x4b20e6}});}[_0x6a5b69(0x1f2)](){const _0x2b3daa=_0x6a5b69;return this[_0x2b3daa(0x1ec)][_0x2b3daa(0x1d5)](_0x3ceb79['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2b3daa(0x257)][_0x2b3daa(0x271)](),'fieldId':this[_0x2b3daa(0x21b)]});}['move'](_0x372a48){const _0x926c35=_0x6a5b69;return this[_0x926c35(0x1ec)]['syncExecuteCommand'](_0x1e2afa['id'],{'unitId':this[_0x926c35(0x178)][_0x926c35(0x271)](),'tableId':this['_table']['getId'](),'fieldId':this[_0x926c35(0x21b)],'target':_0x372a48});}['_getField'](){const _0x2f345a=_0x6a5b69;let _0x2b211b=this['_table'][_0x2f345a(0x28e)]()[_0x2f345a(0x243)][this[_0x2f345a(0x21b)]];if(!_0x2b211b)throw Error(_0x2f345a(0x28d)+this[_0x2f345a(0x21b)]+_0x2f345a(0x2ca));return _0x2b211b;}['_writeFormulaExternalReferences'](_0x3f8fb5){const _0x410927=_0x6a5b69;if(!_0x3f8fb5||!Array['isArray'](_0x3f8fb5[_0x410927(0x198)]))return console['warn'](_0x410927(0x1d3)),!0x1;if(_0x3f8fb5['externalReferences'][_0x410927(0x273)]===0x0)return!0x0;let _0x59a6cf=this['_commandService'][_0x410927(0x1d5)](_0x2057d2['id'],{'unitId':this[_0x410927(0x178)][_0x410927(0x271)](),'references':_0x3f8fb5['externalReferences']});return _0x59a6cf||console[_0x410927(0x1f8)](_0x410927(0x24e)),_0x59a6cf;}};B=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],B);let ot=function(_0xd64cf){const _0x377efe=_0x6a5b69;return _0xd64cf['Id']='id',_0xd64cf[_0x377efe(0x27a)]=_0x377efe(0x258),_0xd64cf[_0x377efe(0x263)]=_0x377efe(0x28c),_0xd64cf;}({});function V(_0x66ddd3){const _0x122c39=_0x6a5b69;return!!(_0x66ddd3&&_0x66ddd3[_0x122c39(0x209)]!==!0x0&&_0x66ddd3['type']!==_0x1dcf64[_0x122c39(0x16f)]);}function H(_0x5683ce,_0x4ec3c7,_0x129e7c='id'){const _0x205291=_0x6a5b69;if(!_0x4ec3c7)return{};let _0x21ae9a={};return Object[_0x205291(0x1ae)](_0x4ec3c7)['forEach'](([_0x217a9f,_0x21e401])=>{const _0x4b9bc0=_0x205291;let _0x353f93=ct(_0x5683ce,_0x217a9f,_0x129e7c);_0x21ae9a[_0x353f93]=st(_0x5683ce[_0x4b9bc0(0x243)][_0x353f93],_0x21e401);}),_0x21ae9a;}function st(_0x359761,_0x178423){const _0x1f332c=_0x6a5b69;if((_0x359761==null?void 0x0:_0x359761['type'])!==_0x1dcf64['Attachment']||_0x178423==null)return _0x178423;if(!Array['isArray'](_0x178423))throw TypeError(_0x1f332c(0x1be)+_0x359761[_0x1f332c(0x258)]+'\x22:\x20expected\x20an\x20array.');return _0x178423['map']((_0x44de86,_0x480eff)=>lt(_0x359761,_0x44de86,_0x480eff));}function ct(_0x2879b7,_0x59d8b9,_0x3e6b59){const _0x178b74=_0x6a5b69;if(_0x3e6b59==='id'||_0x3e6b59===_0x178b74(0x28c)&&_0x2879b7[_0x178b74(0x243)][_0x59d8b9])return _0x59d8b9;let _0x29f759=Object[_0x178b74(0x2b6)](_0x2879b7[_0x178b74(0x243)])[_0x178b74(0x253)](_0x36aa39=>_0x36aa39['name']===_0x59d8b9);if(_0x29f759[_0x178b74(0x273)]===0x1)return _0x29f759[0x0]['id'];throw _0x29f759['length']>0x1?Error(_0x178b74(0x219)+_0x59d8b9):Error(_0x178b74(0x2b9)+_0x59d8b9);}function lt(_0x519046,_0x1996b,_0x5f01f6){const _0x1c0821=_0x6a5b69;let _0x470d0b='Invalid\x20attachment\x20at\x20index\x20'+_0x5f01f6+_0x1c0821(0x16d)+_0x519046[_0x1c0821(0x258)]+'\x22';if(!ft(_0x1996b))throw TypeError(_0x470d0b+_0x1c0821(0x1c6));if(_0x1c0821(0x241)in _0x1996b)throw TypeError(_0x470d0b+_0x1c0821(0x1aa));if(_0x1c0821(0x18d)in _0x1996b)throw TypeError(_0x470d0b+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x96bf05=U(_0x1996b['id'],_0x470d0b,'id'),_0x2866ad=U(_0x1996b[_0x1c0821(0x258)],_0x470d0b,_0x1c0821(0x258)),_0xf2dea3=U(_0x1996b['source'],_0x470d0b,_0x1c0821(0x2bd));return{'id':_0x96bf05,'name':_0x2866ad,'source':_0xf2dea3,'sourceType':ut(_0x1996b[_0x1c0821(0x1b4)],_0xf2dea3,_0x470d0b),...dt(_0x1996b,_0x1c0821(0x24c),_0x470d0b),...W(_0x1996b,_0x1c0821(0x176),_0x470d0b),...W(_0x1996b,_0x1c0821(0x1bc),_0x470d0b),...W(_0x1996b,_0x1c0821(0x275),_0x470d0b),...dt(_0x1996b,_0x1c0821(0x29e),_0x470d0b)};}function ut(_0x484d32,_0x2b2a66,_0x1cb330){const _0x417e35=_0x6a5b69;if(_0x484d32==null)return _0x2b2a66['startsWith']('data:')?_0x586c40[_0x417e35(0x288)]:_0x586c40[_0x417e35(0x1ff)];if(_0x484d32===_0x586c40['URL']||_0x484d32===_0x586c40[_0x417e35(0x2b4)]||_0x484d32===_0x586c40[_0x417e35(0x288)])return _0x484d32;throw TypeError(_0x1cb330+_0x417e35(0x294));}function U(_0x184104,_0x57f863,_0x1c4aaf){const _0xaa9944=_0x6a5b69;if(typeof _0x184104!='string'||!_0x184104[_0xaa9944(0x193)]())throw TypeError(_0x57f863+':\x20\x22'+_0x1c4aaf+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x184104;}function dt(_0x5e2376,_0x40bfa9,_0x53ccfb){const _0x259e72=_0x6a5b69;let _0x4cf7a1=_0x5e2376[_0x40bfa9];if(_0x4cf7a1==null)return{};if(typeof _0x4cf7a1!=_0x259e72(0x295)||!_0x4cf7a1['trim']())throw TypeError(_0x53ccfb+':\x20\x22'+_0x40bfa9+'\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.');return{[_0x40bfa9]:_0x4cf7a1};}function W(_0x1dfb95,_0x620a2d,_0x2cf9d1){const _0x33765a=_0x6a5b69;let _0x36f97d=_0x1dfb95[_0x620a2d];if(_0x36f97d==null)return{};if(typeof _0x36f97d!='number'||!Number[_0x33765a(0x1c5)](_0x36f97d)||_0x36f97d<0x0)throw TypeError(_0x2cf9d1+_0x33765a(0x292)+_0x620a2d+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x620a2d]:_0x36f97d};}function ft(_0x3b00bc){const _0x44e98d=_0x6a5b69;return typeof _0x3b00bc==_0x44e98d(0x1d4)&&!!_0x3b00bc&&!Array[_0x44e98d(0x285)](_0x3b00bc);}var G;let K=G=class{constructor(_0x84c89,_0x53cb11,_0x290eba,_0x286955,_0x128ac1){const _0x3e3b3e=_0x6a5b69;this[_0x3e3b3e(0x178)]=_0x84c89,this[_0x3e3b3e(0x257)]=_0x53cb11,this[_0x3e3b3e(0x1c2)]=_0x290eba,this[_0x3e3b3e(0x251)]=_0x286955,this[_0x3e3b3e(0x1ec)]=_0x128ac1,this[_0x3e3b3e(0x2c9)]();}[_0x6a5b69(0x289)](){const _0x456a79=_0x6a5b69;return this[_0x456a79(0x178)][_0x456a79(0x271)]();}[_0x6a5b69(0x180)](){const _0x820706=_0x6a5b69;return this[_0x820706(0x257)][_0x820706(0x271)]();}['getRange'](){const _0x5f3495=_0x6a5b69;return{...this[_0x5f3495(0x1c2)]};}[_0x6a5b69(0x266)](){const _0x501284=_0x6a5b69;return this[_0x501284(0x1c2)][_0x501284(0x22e)];}[_0x6a5b69(0x1e9)](){const _0x2ff242=_0x6a5b69;return this[_0x2ff242(0x1c2)][_0x2ff242(0x1d9)];}[_0x6a5b69(0x1b9)](){const _0x432d4b=_0x6a5b69;return this[_0x432d4b(0x1c2)][_0x432d4b(0x2c0)]-this['_range'][_0x432d4b(0x22e)]+0x1;}['getNumColumns'](){const _0x4440ff=_0x6a5b69;return this[_0x4440ff(0x1c2)][_0x4440ff(0x281)]-this['_range'][_0x4440ff(0x1d9)]+0x1;}[_0x6a5b69(0x17c)](){const _0x518532=_0x6a5b69;let _0x12fe27=this[_0x518532(0x2a4)](),_0x1eb0ae=this['_getFieldIds'](_0x12fe27),_0x2238ff=[];for(let _0x5ebeb9=this[_0x518532(0x1c2)][_0x518532(0x22e)];_0x5ebeb9<=this[_0x518532(0x1c2)]['endRow'];_0x5ebeb9++){var _0x517fa0;let _0x293e3d=(_0x517fa0=_0x12fe27[_0x518532(0x216)])==null?void 0x0:_0x517fa0[_0x5ebeb9],_0x365a5c=[];for(let _0x4012b9=this[_0x518532(0x1c2)][_0x518532(0x1d9)];_0x4012b9<=this[_0x518532(0x1c2)][_0x518532(0x281)];_0x4012b9++){let _0xe1a3c5=_0x1eb0ae[_0x4012b9];_0x365a5c[_0x518532(0x255)](_0x293e3d&&_0xe1a3c5?_0x4e5b69(_0x12fe27,_0x293e3d,_0xe1a3c5):null);}_0x2238ff[_0x518532(0x255)](_0x365a5c);}return _0x2238ff;}[_0x6a5b69(0x1bf)](){var _0x59971a;return((_0x59971a=this['getValues']()[0x0])==null?void 0x0:_0x59971a[0x0])??null;}[_0x6a5b69(0x213)](_0x559161){const _0x20a0b6=_0x6a5b69;return this[_0x20a0b6(0x20e)]([[_0x559161]]);}[_0x6a5b69(0x20e)](_0x4a21a2){const _0x56f57d=_0x6a5b69;let _0x5b0ef1=this[_0x56f57d(0x1b9)](),_0x8db5ef=this[_0x56f57d(0x26f)]();if(_0x4a21a2['length']>_0x5b0ef1||_0x4a21a2[_0x56f57d(0x274)](_0x7de2f2=>_0x7de2f2[_0x56f57d(0x273)]>_0x8db5ef)){var _0x761b26;throw Error(_0x56f57d(0x250)+_0x4a21a2[_0x56f57d(0x273)]+'x'+(((_0x761b26=_0x4a21a2[0x0])==null?void 0x0:_0x761b26[_0x56f57d(0x273)])??0x0)+_0x56f57d(0x1a3)+_0x5b0ef1+'x'+_0x8db5ef+'.');}let _0x3376ca=this[_0x56f57d(0x2a4)](),_0x292c9c=this[_0x56f57d(0x26b)](_0x3376ca),_0x5ca9e1=_0x4a21a2[_0x56f57d(0x184)]((_0x2e865a,_0x4a5fac)=>_0x2e865a[_0x56f57d(0x2ba)]((_0x2784a4,_0x1c738e)=>{const _0x1391ae=_0x56f57d;var _0x2cb9b3;let _0x5d8d5b=this[_0x1391ae(0x1c2)][_0x1391ae(0x22e)]+_0x4a5fac,_0x5e25fd=_0x292c9c[this['_range'][_0x1391ae(0x1d9)]+_0x1c738e],_0x30f453=(_0x2cb9b3=_0x3376ca['rowId'])==null?void 0x0:_0x2cb9b3[_0x5d8d5b];if(!_0x5e25fd||!_0x30f453)throw Error(_0x1391ae(0x272));return{'recordId':_0x30f453,'fieldId':_0x5e25fd,'value':_0x2784a4};}));return this[_0x56f57d(0x1ec)][_0x56f57d(0x1d5)](_0x50c929['id'],{'unitId':this[_0x56f57d(0x178)]['getId'](),'tableId':this[_0x56f57d(0x257)]['getId'](),'patches':_0x5ca9e1,'source':_0x43f637['Facade']});}[_0x6a5b69(0x2ab)](){const _0x25e5e2=_0x6a5b69;return this[_0x25e5e2(0x20e)](Array[_0x25e5e2(0x19f)]({'length':this['getNumRows']()},()=>Array[_0x25e5e2(0x19f)]({'length':this[_0x25e5e2(0x26f)]()},()=>null)));}[_0x6a5b69(0x26d)](_0x377bce,_0x52a991,_0x43ca58=this[_0x6a5b69(0x1b9)](),_0x4e2fe7=this[_0x6a5b69(0x26f)]()){const _0x479fef=_0x6a5b69;return this[_0x479fef(0x251)][_0x479fef(0x1d7)](G,this['_base'],this[_0x479fef(0x257)],{'startRow':this[_0x479fef(0x1c2)]['startRow']+_0x377bce,'startColumn':this[_0x479fef(0x1c2)]['startColumn']+_0x52a991,'endRow':this[_0x479fef(0x1c2)][_0x479fef(0x22e)]+_0x377bce+_0x43ca58-0x1,'endColumn':this[_0x479fef(0x1c2)][_0x479fef(0x1d9)]+_0x52a991+_0x4e2fe7-0x1},this[_0x479fef(0x251)]);}[_0x6a5b69(0x2a4)](){const _0x32dcb9=_0x6a5b69;let _0x40619c=this['_table'][_0x32dcb9(0x28e)]();if(!_0x40619c)throw Error(_0x32dcb9(0x2bc));return _0xff35e2(_0x40619c);}[_0x6a5b69(0x2c9)](){const _0x573bc3=_0x6a5b69;var _0x3449bc;let _0x43337c=this[_0x573bc3(0x2a4)](),_0x27abe6=((_0x3449bc=_0x43337c[_0x573bc3(0x2ae)])==null?void 0x0:_0x3449bc[_0x573bc3(0x273)])??0x0,_0xd2ca0d=this['_getFieldIds'](_0x43337c)[_0x573bc3(0x273)];if(this['_range'][_0x573bc3(0x22e)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]<0x0||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x22e)]||this['_range'][_0x573bc3(0x281)]<this[_0x573bc3(0x1c2)][_0x573bc3(0x1d9)]||this[_0x573bc3(0x1c2)][_0x573bc3(0x2c0)]>=Math[_0x573bc3(0x239)](_0x27abe6,0x1)||this[_0x573bc3(0x1c2)][_0x573bc3(0x281)]>=Math[_0x573bc3(0x239)](_0xd2ca0d,0x1))throw Error(_0x573bc3(0x2c1)+_0x27abe6+_0x573bc3(0x1ea)+_0xd2ca0d+_0x573bc3(0x1c0)+JSON[_0x573bc3(0x19b)](this['_range'])+'.');}[_0x6a5b69(0x26b)](_0x5bb8bf){const _0x43b55b=_0x6a5b69;return _0x5bb8bf[_0x43b55b(0x16b)][_0x43b55b(0x253)](_0x290b74=>V(_0x5bb8bf[_0x43b55b(0x243)][_0x290b74]));}};function _0x37f6(){const _0x237f64=['registerEventHandler','Calendar','addChild','multiple','BaseConditionalColorOperator','startRow','addRecords','678puZJvO','BaseConditionalDateMode','Event','_getField','duplicate','_initBaseBeforeEvents','changeType','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','custom','max','1076GYUmDR','getTableById','localeCompare','_prepareFormulaFieldReferences','_unitId','setLinkedRecordIds','getProjection','url','deleteAttachments','fields','addRecord','BeforeBaseTableFieldCreate','BaseTableRecordCreated','BeforeBaseHierarchyChange','BaseFieldKeyEnum','getBase','move','getChildren','mimeType','[FRecord]:\x20field\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','find','[FBaseRange]:\x20values\x20size\x20','_inject','Failed\x20to\x20duplicate\x20table\x20\x22','filter','viewOrder','push','_univerInstanceService','_table','name','_parentObjectIds','Set','setReadOnly','saveUnit','Kanban','createBase','9ZeZiHC','getPrimaryField','getActiveBase','getConfig','Auto','_getRecord','_fireBeforeHierarchyChange','getRow','defineProperty','iterator','Formula','fromCollab','_getFieldIds','now','offset','fieldId','getNumColumns','deleteProperty','getId','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','length','some','height','BeforeBaseTableRecordCreate','createdAt','setOrderKey','toPrimitive','Name','unitId','reason','fieldKey','getViews','getParent','hasOwnProperty','endColumn','Grid','BeforeBaseTableCreate','getFieldByName','isArray','_collectDescendantIds','getType','BASE64','getBaseId','BaseFieldType','removeLinkedRecord','auto','[FField]:\x20field\x20\x22','getTable','setDefaultValue','includes','afterFieldId',':\x20\x22','hierarchyChanges',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','string','record','addConditionalColorRule','_projectionService','_objectId','createUnit','Facade','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','FBase','thumbnail','tables','_permissionService','BaseTableCellValueChanged','BaseHierarchyInvalidReason','search','_getTable','Failed\x20to\x20create\x20table\x20\x22','indexOf','field','isReadonly','setPoint','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','clear','every','description','recordOrder','addField','number','getRecords','getRange','getAllUnitsForType','UUID','1576tyiPhS','values','invalid','getDescendants','Base\x20field\x20not\x20found:\x20','map','config','[FBaseRange]:\x20table\x20does\x20not\x20exist.','source','update','getName','endRow','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','visibleCardFieldIds','updatedAt','BaseTableViewCreated','params','BeforeBaseTableViewCreate','[FRecord]:\x20RecordLink\x20field\x20\x22','6186QjgGxG','_assertInBounds','\x22\x20does\x20not\x20exist.','beforeCommandExecuted','executeCommand','\x22\x20is\x20not\x20an\x20Attachment\x20field.','getUnitId','DESC','deepClone','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getPermission','getAncestors','slice','_getHierarchyIndex','fieldOrder','setName','\x20for\x20field\x20\x22','Remote','RecordId','_getHierarchyEventContext','getOwnPropertyDescriptor','sort','duplicateTable','prototype','_viewId','size','setEditable','_base','orderKey','Gantt','hidden','getValues','primaryFieldId','8355890waHNdT','_initBaseAfterEvents','getTableId','valid','setParent','parentByRecordId','flatMap','getRecordById','symbol','\x20Copy','value','getVisibleFields','limit','getGroup','12SElqqj','type','getTableByName','disposeWithMe','tableId','base','parentRecordId','trim','BaseHierarchyErrorCode','_initialize','getSnapshot','constructor','externalReferences','formula','setAttachments','stringify','205zDGPvm','getConditionalColorRules','_getView','from','BaseFilterConjunction','_injector','beforeFieldId','\x20exceeds\x20range\x20size\x20','function','readonly','Edit','clearConditionalColorRules','save','fieldSettings',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','views','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','[FRecord]:\x20invalid\x20RecordLink\x20value.','entries','cancel','defaultValue','targetTableId','setObjectPermissions','_baseTableId','sourceType','fromEntries','17339388WCWpLF','Failed\x20to\x20add\x20field\x20\x22','updateConfig','getNumRows','getRecord','Failed\x20to\x20delete\x20table\x20\x22','width','_resolveRecordIds','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getValue',',\x20range:\x20','message','_range','_recordId','UNIVER_BASE','isFinite',':\x20expected\x20an\x20object.','_getRecordLinkField','records','recordId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','regenerateViewIds','setHierarchyField','decorate','getView','getFormulaName','getPrimaryFieldId','BaseRecordLinkRole','2717702SWLpLy','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','object','syncExecuteCommand','index','createInstance','addLinkedRecord','startColumn','getTables','matches','includeRecords','caseSensitive','16884KhkFrp','tableOrder','getBaseFacade','setConfig','getSchema','_baseUnitId','fireEvent','moveField','BaseHierarchyChanged','BaseTableCreated','887aEAiiF','getColumn',',\x20max\x20columns:\x20','viewId','_commandService','getLinkedRecordIds','notMatches','_writeFormulaExternalReferences','queryRecords','_getAttachmentField','delete','commonExtend','rows','BeforeBaseTableCellValueChange','canEdit','getSort','warn','extend','view','Attachment','BaseTableFieldCreated','fieldIds','direction','URL','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','createView','getDefaultValue','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','getField','Add','primaryFieldName','_tableId','Invalid\x20Base\x20formula.','system','call','AND','default','getFieldById','setValues','156186SBSiOy','deleteRecords','getFilter','onCommandExecuted','setValue','recordIds','\x22\x20is\x20invalid.','rowId','insertTable','BaseConditionalColorTarget','Duplicate\x20Base\x20field\x20name:\x20','table','_fieldId','operator','Clear','\x22\x20has\x20invalid\x20config.','getHierarchyFieldId','_resourceLoaderService','\x20in\x20field\x20\x22','RecordLink','Failed\x20to\x20add\x20records','rules','getViewById','getTableFacade','getBases','group'];_0x37f6=function(){return _0x237f64;};return _0x37f6();}K=G=z([R(0x4,_0x1047ac)],K);function q(_0x2ed6e5){'@babel/helpers - typeof';const _0x3b29dc=_0x6a5b69;return q=typeof Symbol=='function'&&typeof Symbol[_0x3b29dc(0x268)]==_0x3b29dc(0x186)?function(_0x18af31){return typeof _0x18af31;}:function(_0x325fd4){const _0x380975=_0x3b29dc;return _0x325fd4&&typeof Symbol==_0x380975(0x1a4)&&_0x325fd4[_0x380975(0x197)]===Symbol&&_0x325fd4!==Symbol[_0x380975(0x174)]?_0x380975(0x186):typeof _0x325fd4;},q(_0x2ed6e5);}function pt(_0x763dfb,_0x405e0e){const _0x575819=_0x6a5b69;if(q(_0x763dfb)!='object'||!_0x763dfb)return _0x763dfb;var _0x28dbc5;if(typeof Symbol<'u'&&(_0x28dbc5=_0x763dfb[Symbol[_0x575819(0x279)]])!==void 0x0){var _0x4115b2=_0x28dbc5[_0x575819(0x20a)](_0x763dfb,_0x405e0e||_0x575819(0x20c));if(q(_0x4115b2)!=_0x575819(0x1d4))return _0x4115b2;throw TypeError(_0x575819(0x166));}return(_0x405e0e==='string'?String:Number)(_0x763dfb);}function mt(_0x5b98bb){const _0x3de768=_0x6a5b69;var _0x14d7c8=pt(_0x5b98bb,'string');return q(_0x14d7c8)==_0x3de768(0x186)?_0x14d7c8:_0x14d7c8+'';}function ht(_0x41d290,_0x1d1020,_0x2eed16){const _0x2de82b=_0x6a5b69;return(_0x1d1020=mt(_0x1d1020))in _0x41d290?Object[_0x2de82b(0x267)](_0x41d290,_0x1d1020,{'value':_0x2eed16,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41d290[_0x1d1020]=_0x2eed16,_0x41d290;}var J;let Y=J=class extends _0x2df259{constructor(_0x3427b2,_0x35d967,_0x47a4ba,_0x240af6,_0x1d7041,_0x170758){const _0x4051f5=_0x6a5b69;super(_0x240af6),this['_base']=_0x3427b2,this[_0x4051f5(0x257)]=_0x35d967,this[_0x4051f5(0x1c3)]=_0x47a4ba,this[_0x4051f5(0x1a1)]=_0x240af6,this[_0x4051f5(0x1ec)]=_0x1d7041,this[_0x4051f5(0x2a0)]=_0x170758,ht(this,_0x4051f5(0x1e3),void 0x0),ht(this,_0x4051f5(0x1b3),void 0x0),this['_baseUnitId']=_0x3427b2['getId'](),this['_baseTableId']=_0x35d967['getId']();}[_0x6a5b69(0x1e0)](){const _0x561c68=_0x6a5b69;return this[_0x561c68(0x178)];}[_0x6a5b69(0x226)](){const _0x17c123=_0x6a5b69;return this[_0x17c123(0x257)];}[_0x6a5b69(0x271)](){const _0x4c4b38=_0x6a5b69;return this[_0x4c4b38(0x1c3)];}[_0x6a5b69(0x167)](){const _0x4815fa=_0x6a5b69;let _0x250fdd=this[_0x4815fa(0x257)][_0x4815fa(0x271)]();return new L(this[_0x4815fa(0x178)][_0x4815fa(0x271)](),_0x1b9662(_0x250fdd,this[_0x4815fa(0x1c3)]),[_0x2d8a33(_0x250fdd)],this[_0x4815fa(0x1ec)],this[_0x4815fa(0x2a0)]);}[_0x6a5b69(0x1ba)](){const _0x5f5dd4=_0x6a5b69;return{...this[_0x5f5dd4(0x264)](),'values':this[_0x5f5dd4(0x17c)]()};}[_0x6a5b69(0x1bf)](_0x2f548d){const _0x196cdf=_0x6a5b69;return V(this[_0x196cdf(0x257)][_0x196cdf(0x28e)]()[_0x196cdf(0x243)][_0x2f548d])?this[_0x196cdf(0x264)]()['values'][_0x2f548d]??null:null;}[_0x6a5b69(0x17c)](){const _0x601fa3=_0x6a5b69;let _0x5e6fc6=this[_0x601fa3(0x257)][_0x601fa3(0x28e)]();return Object[_0x601fa3(0x1b5)](Object[_0x601fa3(0x1ae)](this[_0x601fa3(0x264)]()[_0x601fa3(0x2b6)])[_0x601fa3(0x253)](([_0x52d052])=>V(_0x5e6fc6[_0x601fa3(0x243)][_0x52d052])));}[_0x6a5b69(0x213)](_0x20422c,_0x48cb86){const _0x3613cf=_0x6a5b69;let _0x1b128f=this[_0x3613cf(0x257)]['getTable']()['fields'][_0x20422c];return this[_0x3613cf(0x1ec)][_0x3613cf(0x1d5)](_0x3a32fc['id'],{'unitId':this[_0x3613cf(0x178)][_0x3613cf(0x271)](),'tableId':this[_0x3613cf(0x257)]['getId'](),'recordId':this[_0x3613cf(0x1c3)],'fieldId':_0x20422c,'value':st(_0x1b128f,_0x48cb86),'source':_0x43f637['Facade']});}[_0x6a5b69(0x19a)](_0x458f7a,_0x586bf3){const _0x164dd8=_0x6a5b69;return this[_0x164dd8(0x213)](_0x458f7a,_0x586bf3[_0x164dd8(0x2ba)](_0x3c9fff=>({..._0x3c9fff})));}['getAttachments'](_0x43dac3){const _0xf0e2cd=_0x6a5b69;this[_0xf0e2cd(0x1f1)](_0x43dac3);let _0x2874c5=this[_0xf0e2cd(0x1bf)](_0x43dac3);return Array[_0xf0e2cd(0x285)](_0x2874c5)?_0x2874c5[_0xf0e2cd(0x2ba)]((_0x153e8c,_0x51763c)=>_t(_0x153e8c,_0x43dac3,_0x51763c)):[];}[_0x6a5b69(0x242)](_0x3c4ab2,_0x4a6025){const _0x29eebc=_0x6a5b69;this[_0x29eebc(0x1f1)](_0x3c4ab2);let _0x41ca72=new Set(_0x4a6025[_0x29eebc(0x2ba)](_0x2c6e56=>_0x2c6e56['id']));if(!_0x41ca72['size'])return!0x0;let _0x24520c=this['getAttachments'](_0x3c4ab2),_0x278f25=_0x24520c['filter'](_0x833bb6=>!_0x41ca72['has'](_0x833bb6['id']));return _0x278f25[_0x29eebc(0x273)]===_0x24520c[_0x29eebc(0x273)]||this['setAttachments'](_0x3c4ab2,_0x278f25);}[_0x6a5b69(0x20e)](_0x449992,_0x3ddce2='id'){const _0x23f1e4=_0x6a5b69;let _0x4f85e8=this[_0x23f1e4(0x257)][_0x23f1e4(0x28e)](),_0x4d9ffa=[{'recordId':this[_0x23f1e4(0x1c3)],'values':H(_0x4f85e8,_0x449992,_0x3ddce2)}];return this['_commandService'][_0x23f1e4(0x1d5)](_0x2cebcc['id'],{'unitId':this[_0x23f1e4(0x178)][_0x23f1e4(0x271)](),'tableId':this[_0x23f1e4(0x257)]['getId'](),'patches':_0x4d9ffa,'source':_0x43f637['Facade']});}[_0x6a5b69(0x1f2)](){const _0x27b54c=_0x6a5b69;return this[_0x27b54c(0x1ec)][_0x27b54c(0x1d5)](_0x392c6f['id'],{'unitId':this[_0x27b54c(0x178)][_0x27b54c(0x271)](),'tableId':this[_0x27b54c(0x257)][_0x27b54c(0x271)](),'recordId':this[_0x27b54c(0x1c3)],'source':_0x43f637[_0x27b54c(0x29b)]});}[_0x6a5b69(0x234)](_0x387c0e){const _0x27da57=_0x6a5b69;let _0x57935c={...this['_getRecord'](),..._0x387c0e,'id':_0x49e131(0x6)};_0x57935c[_0x27da57(0x2b6)]={..._0x57935c[_0x27da57(0x2b6)],..._0x387c0e==null?void 0x0:_0x387c0e[_0x27da57(0x2b6)]},Reflect[_0x27da57(0x270)](_0x57935c[_0x27da57(0x2b6)],_0x8c29d8);let _0x137665=Date[_0x27da57(0x26c)]();if(_0x57935c[_0x27da57(0x179)]||=''+_0x137665,_0x57935c['createdAt']||=_0x137665,_0x57935c[_0x27da57(0x2c3)]||=_0x137665,!this[_0x27da57(0x1ec)]['syncExecuteCommand'](_0x499a45['id'],{'unitId':this[_0x27da57(0x178)][_0x27da57(0x271)](),'tableId':this['_table'][_0x27da57(0x271)](),'sourceRecordId':this[_0x27da57(0x1c3)],'record':_0x57935c,'source':_0x43f637[_0x27da57(0x29b)]}))throw Error(_0x27da57(0x200)+this['_recordId']+'\x22.');return this[_0x27da57(0x1a1)][_0x27da57(0x1d7)](J,this[_0x27da57(0x178)],this[_0x27da57(0x257)],_0x57935c['id'],this[_0x27da57(0x1a1)]);}[_0x6a5b69(0x278)](_0x2fd123){const _0x508e0b=_0x6a5b69;return this[_0x508e0b(0x1ec)][_0x508e0b(0x1d5)](_0x43adcc['id'],{'unitId':this[_0x508e0b(0x178)][_0x508e0b(0x271)](),'tableId':this[_0x508e0b(0x257)][_0x508e0b(0x271)](),'recordId':this['_recordId'],'orderKey':_0x2fd123});}[_0x6a5b69(0x1ed)](_0x1209a3){const _0x24dbb9=_0x6a5b69;let _0x12b5e6=this[_0x24dbb9(0x1c7)](_0x1209a3),_0xd63ecd=this[_0x24dbb9(0x1bf)](_0x12b5e6['id']);return _0x2b8d32(_0xd63ecd);}[_0x6a5b69(0x23f)](_0x264874,_0x39f6af){const _0xa72bf7=_0x6a5b69;let _0xf78d7d=this[_0xa72bf7(0x1c7)](_0x264874),_0x587b54=_0xe4f0db(_0x39f6af),_0xa528ad=_0x46f65b(this[_0xa72bf7(0x178)][_0xa72bf7(0x249)]()[_0xa72bf7(0x196)](),_0xf78d7d,_0x587b54);if(!_0xa528ad[_0xa72bf7(0x181)])throw Error(_0xa528ad['reason']??_0xa72bf7(0x1ad));return this[_0xa72bf7(0x1ec)][_0xa72bf7(0x1d5)](_0x3a32fc['id'],{'unitId':this['_base'][_0xa72bf7(0x271)](),'tableId':this[_0xa72bf7(0x257)][_0xa72bf7(0x271)](),'recordId':this[_0xa72bf7(0x1c3)],'fieldId':_0x264874,'value':_0x587b54,'source':_0x43f637[_0xa72bf7(0x29b)]});}[_0x6a5b69(0x1d8)](_0x478a36,_0x2fad54){const _0x41e89c=_0x6a5b69;let _0x45b19b=this['_getRecordLinkField'](_0x478a36),_0x427080=_0x3dfa8b(_0x45b19b);if(!_0x427080)throw Error(_0x41e89c(0x2c7)+_0x478a36+_0x41e89c(0x21e));let _0x19ef6b=this['getLinkedRecordIds'](_0x478a36);return _0x427080[_0x41e89c(0x22c)]&&_0x19ef6b['includes'](_0x2fad54)?!0x0:this[_0x41e89c(0x23f)](_0x478a36,_0x427080[_0x41e89c(0x22c)]?[..._0x19ef6b,_0x2fad54]:[_0x2fad54]);}[_0x6a5b69(0x28b)](_0x41f451,_0x17f0e5){const _0x1296b5=_0x6a5b69;let _0x5cef2a=this[_0x1296b5(0x1ed)](_0x41f451);return!_0x5cef2a[_0x1296b5(0x290)](_0x17f0e5)||this[_0x1296b5(0x23f)](_0x41f451,_0x5cef2a['filter'](_0xfe920c=>_0xfe920c!==_0x17f0e5));}[_0x6a5b69(0x27f)](_0x35b2b8){const _0x4e73d9=_0x6a5b69;let _0x51ad38=this[_0x4e73d9(0x16a)](_0x35b2b8)[_0x4e73d9(0x183)][_0x4e73d9(0x2d1)](this[_0x4e73d9(0x1c3)])??null;return _0x51ad38?this['_table'][_0x4e73d9(0x185)](_0x51ad38):null;}[_0x6a5b69(0x24b)](_0x3bfbd2){const _0x13c217=_0x6a5b69;return(this['_getHierarchyIndex'](_0x3bfbd2)['childrenByParentId'][_0x13c217(0x2d1)](this[_0x13c217(0x1c3)])??[])[_0x13c217(0x184)](_0x465441=>{const _0x4a5ce9=_0x13c217;let _0x29dac8=this[_0x4a5ce9(0x257)]['getRecordById'](_0x465441);return _0x29dac8?[_0x29dac8]:[];});}[_0x6a5b69(0x168)](_0x5ca1fd){const _0x4d5fae=_0x6a5b69;let _0x116d65=this['_getHierarchyIndex'](_0x5ca1fd),_0x5bbd76=[],_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](this[_0x4d5fae(0x1c3)])??null;for(;_0x26d854;){let _0x103b8e=this['_table'][_0x4d5fae(0x185)](_0x26d854);_0x103b8e&&_0x5bbd76[_0x4d5fae(0x255)](_0x103b8e),_0x26d854=_0x116d65[_0x4d5fae(0x183)][_0x4d5fae(0x2d1)](_0x26d854)??null;}return _0x5bbd76;}[_0x6a5b69(0x2b8)](_0x175469){const _0x1da4d6=_0x6a5b69;let _0x469caa=this[_0x1da4d6(0x16a)](_0x175469),_0x337a70=_0x469caa['orderedRecordIds'][_0x1da4d6(0x2a6)](this[_0x1da4d6(0x1c3)]),_0x487569=_0x469caa['subtreeHeightByRecordId']['has'](this[_0x1da4d6(0x1c3)])?this[_0x1da4d6(0x286)](_0x469caa['childrenByParentId'],this[_0x1da4d6(0x1c3)]):[];return _0x337a70<0x0?[]:_0x487569[_0x1da4d6(0x184)](_0x145b1e=>{const _0x5573d7=_0x1da4d6;let _0x53095e=this[_0x5573d7(0x257)][_0x5573d7(0x185)](_0x145b1e);return _0x53095e?[_0x53095e]:[];});}[_0x6a5b69(0x182)](_0x436a53,_0x113466,_0x1c1cf8){const _0x48902d=_0x6a5b69;return this[_0x48902d(0x1ec)][_0x48902d(0x1d5)](_0x448699['id'],{'unitId':this['_base'][_0x48902d(0x271)](),'tableId':this[_0x48902d(0x257)][_0x48902d(0x271)](),'fieldId':_0x436a53,'recordId':this[_0x48902d(0x1c3)],'parentRecordId':_0x113466,'orderKey':_0x1c1cf8,'source':_0x43f637[_0x48902d(0x29b)]});}[_0x6a5b69(0x22b)](_0xe7b44d,_0x5d29ea,_0xc85a3a='id',_0x36cf32){const _0x327f87=_0x6a5b69;let _0xc2796d=this[_0x327f87(0x257)][_0x327f87(0x28e)](),_0x9b5f86=Date['now'](),_0x3b3e1b={..._0x36cf32,'id':_0x49e131(0x6),'values':H(_0xc2796d,_0x5d29ea,_0xc85a3a),'orderKey':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x179)])||''+_0x9b5f86,'createdAt':(_0x36cf32==null?void 0x0:_0x36cf32['createdAt'])||_0x9b5f86,'updatedAt':(_0x36cf32==null?void 0x0:_0x36cf32[_0x327f87(0x2c3)])||_0x9b5f86};if(!this['_commandService']['syncExecuteCommand'](_0x4cd8a9['id'],{'unitId':this[_0x327f87(0x178)][_0x327f87(0x271)](),'tableId':this[_0x327f87(0x257)]['getId'](),'fieldId':_0xe7b44d,'parentRecordId':this['_recordId'],'record':_0x3b3e1b,'source':_0x43f637[_0x327f87(0x29b)]}))throw Error(_0x327f87(0x2aa)+this[_0x327f87(0x1c3)]+'\x22.');return this['_injector'][_0x327f87(0x1d7)](J,this[_0x327f87(0x178)],this[_0x327f87(0x257)],_0x3b3e1b['id'],this[_0x327f87(0x1a1)]);}[_0x6a5b69(0x16a)](_0x602245){const _0x24ddea=_0x6a5b69;return _0x5b61b7(this[_0x24ddea(0x257)][_0x24ddea(0x28e)](),_0x602245);}['_collectDescendantIds'](_0x2cf201,_0xe4e01f){let _0xde5b5a=[],_0x213266=_0x16b3f4=>{for(let _0x50ff3b of _0x2cf201['get'](_0x16b3f4)??[])_0xde5b5a['push'](_0x50ff3b),_0x213266(_0x50ff3b);};return _0x213266(_0xe4e01f),_0xde5b5a;}['_getRecord'](){const _0x4b2edb=_0x6a5b69;let _0x565fe6=this['_table'][_0x4b2edb(0x28e)]()[_0x4b2edb(0x1c8)][this[_0x4b2edb(0x1c3)]];if(!_0x565fe6)throw Error('[FRecord]:\x20record\x20\x22'+this['_recordId']+_0x4b2edb(0x2ca));return _0x565fe6;}['_getRecordLinkField'](_0x59a3aa){const _0x46b3a0=_0x6a5b69;let _0x54fd3d=this['_table']['getTable']()[_0x46b3a0(0x243)][_0x59a3aa];if(!_0x54fd3d||_0x54fd3d[_0x46b3a0(0x18d)]!==_0x1dcf64['RecordLink'])throw Error(_0x46b3a0(0x24d)+_0x59a3aa+_0x46b3a0(0x203));return _0x54fd3d;}[_0x6a5b69(0x1f1)](_0x42b6f0){const _0x4114d3=_0x6a5b69;let _0xb7f50a=this['_table'][_0x4114d3(0x28e)]()['fields'][_0x42b6f0];if(!_0xb7f50a||_0xb7f50a[_0x4114d3(0x18d)]!==_0x1dcf64[_0x4114d3(0x1fb)])throw Error(_0x4114d3(0x24d)+_0x42b6f0+_0x4114d3(0x2cd));return _0xb7f50a;}};Y=J=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5)],Y);function gt(_0x35d22b){const _0x5375cb=_0x6a5b69;return!!(_0x35d22b&&typeof _0x35d22b==_0x5375cb(0x1d4)&&'id'in _0x35d22b&&typeof _0x35d22b['id']==_0x5375cb(0x295)&&_0x5375cb(0x258)in _0x35d22b&&typeof _0x35d22b[_0x5375cb(0x258)]==_0x5375cb(0x295));}function _t(_0x47a3e2,_0x41e968,_0x4f3b79){const _0x98826a=_0x6a5b69;if(!gt(_0x47a3e2))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x4f3b79+_0x98826a(0x221)+_0x41e968+_0x98826a(0x215));return{..._0x47a3e2};}let X=class{constructor(_0x2771c8,_0x54a339,_0x257a48,_0x554c0f,_0x3929bf,_0x83c7ad,_0x51be4b){const _0x13fe6d=_0x6a5b69;this['_base']=_0x2771c8,this['_table']=_0x54a339,this[_0x13fe6d(0x175)]=_0x257a48,this[_0x13fe6d(0x1a1)]=_0x554c0f,this[_0x13fe6d(0x1ec)]=_0x3929bf,this[_0x13fe6d(0x2a0)]=_0x83c7ad,this[_0x13fe6d(0x298)]=_0x51be4b;}[_0x6a5b69(0x271)](){const _0x39fee6=_0x6a5b69;return this[_0x39fee6(0x175)];}[_0x6a5b69(0x167)](){const _0x1f5f4d=_0x6a5b69;let _0x4191ee=this['_table'][_0x1f5f4d(0x271)]();return new L(this[_0x1f5f4d(0x178)]['getId'](),_0x33ee0c(_0x4191ee,this[_0x1f5f4d(0x175)]),[_0x2d8a33(_0x4191ee)],this[_0x1f5f4d(0x1ec)],this['_permissionService']);}[_0x6a5b69(0x1ce)](){const _0x5cf64e=_0x6a5b69;return this[_0x5cf64e(0x19e)]();}[_0x6a5b69(0x2bf)](){const _0x3dc00e=_0x6a5b69;return this[_0x3dc00e(0x19e)]()[_0x3dc00e(0x258)];}[_0x6a5b69(0x287)](){const _0x2fddb7=_0x6a5b69;return this[_0x2fddb7(0x19e)]()['type'];}[_0x6a5b69(0x16c)](_0xa71436){const _0x529181=_0x6a5b69;return this[_0x529181(0x1ec)][_0x529181(0x1d5)](_0x11dffb['id'],{'unitId':this[_0x529181(0x178)]['getId'](),'tableId':this[_0x529181(0x257)][_0x529181(0x271)](),'viewId':this['_viewId'],'name':_0xa71436});}[_0x6a5b69(0x262)](){const _0x1031b0=_0x6a5b69;let _0x3db8e0=this[_0x1031b0(0x287)](),_0x572cab=this[_0x1031b0(0x19e)]()[_0x1031b0(0x2bb)];switch(_0x3db8e0){case _0x144585[_0x1031b0(0x282)]:return _0x572cab;case _0x144585[_0x1031b0(0x25d)]:return _0x572cab;case _0x144585[_0x1031b0(0x22a)]:return _0x572cab;case _0x144585[_0x1031b0(0x17a)]:return _0x572cab;case _0x144585['Gallery']:return _0x572cab;default:return _0x572cab;}}[_0x6a5b69(0x1b8)](_0x400b2f){const _0x4bda9e=_0x6a5b69;return this[_0x4bda9e(0x1ec)]['syncExecuteCommand'](_0x403e74['id'],{'unitId':this[_0x4bda9e(0x178)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x4bda9e(0x175)],'patch':_0x400b2f});}[_0x6a5b69(0x19d)](){const _0x5d1ae3=_0x6a5b69;var _0x574c90;return _0x2517f7[_0x5d1ae3(0x2d0)](((_0x574c90=this[_0x5d1ae3(0x19e)]()[_0x5d1ae3(0x2bb)]['conditionalColoring'])==null?void 0x0:_0x574c90[_0x5d1ae3(0x224)])??[]);}['setConditionalColorRules'](_0x585102){const _0x2cc9bb=_0x6a5b69;return this[_0x2cc9bb(0x1ec)][_0x2cc9bb(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x2cc9bb(0x271)](),'tableId':this[_0x2cc9bb(0x257)][_0x2cc9bb(0x271)](),'viewId':this[_0x2cc9bb(0x175)],'type':_0x21d239[_0x2cc9bb(0x25a)],'rules':_0x585102});}[_0x6a5b69(0x297)](_0x375f0d){const _0x40a500=_0x6a5b69;return this[_0x40a500(0x1ec)][_0x40a500(0x1d5)](_0x49c748['id'],{'unitId':this[_0x40a500(0x178)][_0x40a500(0x271)](),'tableId':this[_0x40a500(0x257)][_0x40a500(0x271)](),'viewId':this[_0x40a500(0x175)],'type':_0x21d239[_0x40a500(0x205)],'rule':_0x375f0d});}['deleteConditionalColorRule'](_0x39c2cf){const _0x35963d=_0x6a5b69;return this['_commandService'][_0x35963d(0x1d5)](_0x49c748['id'],{'unitId':this['_base'][_0x35963d(0x271)](),'tableId':this[_0x35963d(0x257)]['getId'](),'viewId':this[_0x35963d(0x175)],'type':_0x21d239['Delete'],'ruleId':_0x39c2cf});}[_0x6a5b69(0x1a7)](){const _0x51a631=_0x6a5b69;return this['_commandService'][_0x51a631(0x1d5)](_0x49c748['id'],{'unitId':this[_0x51a631(0x178)][_0x51a631(0x271)](),'tableId':this['_table'][_0x51a631(0x271)](),'viewId':this[_0x51a631(0x175)],'type':_0x21d239[_0x51a631(0x21d)]});}[_0x6a5b69(0x211)](){const _0x481262=_0x6a5b69;return this['_getView']()[_0x481262(0x253)]??null;}['setFilter'](_0x17a16a){const _0x2e392f=_0x6a5b69;return this[_0x2e392f(0x1ec)][_0x2e392f(0x1d5)](_0x1e5f36['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2e392f(0x257)][_0x2e392f(0x271)](),'viewId':this[_0x2e392f(0x175)],'filter':_0x17a16a});}[_0x6a5b69(0x1f7)](){const _0x22922b=_0x6a5b69;return this[_0x22922b(0x19e)]()['sort']??[];}['setSort'](_0x10d711){const _0xc9e24e=_0x6a5b69;return this[_0xc9e24e(0x1ec)][_0xc9e24e(0x1d5)](_0x15d9fe['id'],{'unitId':this['_base'][_0xc9e24e(0x271)](),'tableId':this[_0xc9e24e(0x257)][_0xc9e24e(0x271)](),'viewId':this[_0xc9e24e(0x175)],'sort':_0x10d711});}[_0x6a5b69(0x18b)](){const _0x291996=_0x6a5b69;return this[_0x291996(0x19e)]()[_0x291996(0x228)]??[];}['setGroup'](_0x4ad48f){const _0x4043dc=_0x6a5b69;return this[_0x4043dc(0x1ec)]['syncExecuteCommand'](_0x545b5d['id'],{'unitId':this['_base'][_0x4043dc(0x271)](),'tableId':this[_0x4043dc(0x257)][_0x4043dc(0x271)](),'viewId':this['_viewId'],'group':_0x4ad48f});}['getFieldSettings'](_0x3acbec){const _0x269a80=_0x6a5b69;var _0x55b2ed;return V(this['_table']['getTable']()[_0x269a80(0x243)][_0x3acbec])?((_0x55b2ed=this['_getView']()['fieldSettings'])==null?void 0x0:_0x55b2ed[_0x3acbec])??{}:{};}[_0x6a5b69(0x189)](){const _0x37ea42=_0x6a5b69;let _0x77490c=this['_table'][_0x37ea42(0x28e)](),_0x496556=this[_0x37ea42(0x19e)]();return(_0x496556[_0x37ea42(0x16b)]??_0x77490c[_0x37ea42(0x16b)])[_0x37ea42(0x253)](_0x2b6f08=>{const _0x1d5143=_0x37ea42;var _0x566310;let _0x5183fb=_0x77490c['fields'][_0x2b6f08];return V(_0x5183fb)&&!((_0x566310=_0x496556[_0x1d5143(0x1a9)])!=null&&(_0x566310=_0x566310[_0x2b6f08])!=null&&_0x566310[_0x1d5143(0x17b)]);})[_0x37ea42(0x2ba)](_0x4a668=>this[_0x37ea42(0x1a1)][_0x37ea42(0x1d7)](B,this[_0x37ea42(0x178)],this[_0x37ea42(0x257)],_0x4a668));}['setFieldVisible'](_0x13bf2b,_0x3ae687){const _0x4dd281=_0x6a5b69;return V(this[_0x4dd281(0x257)]['getTable']()[_0x4dd281(0x243)][_0x13bf2b])?this[_0x4dd281(0x1ec)][_0x4dd281(0x1d5)](_0x5ce8b2['id'],{'unitId':this[_0x4dd281(0x178)][_0x4dd281(0x271)](),'tableId':this[_0x4dd281(0x257)][_0x4dd281(0x271)](),'viewId':this[_0x4dd281(0x175)],'fieldId':_0x13bf2b,'visible':_0x3ae687}):!0x1;}['setFieldWidth'](_0x4c4043,_0x7a853a){const _0x5268d2=_0x6a5b69;return V(this[_0x5268d2(0x257)][_0x5268d2(0x28e)]()['fields'][_0x4c4043])?this['_commandService']['syncExecuteCommand'](_0x4154ed['id'],{'unitId':this[_0x5268d2(0x178)][_0x5268d2(0x271)](),'tableId':this[_0x5268d2(0x257)][_0x5268d2(0x271)](),'viewId':this['_viewId'],'fieldId':_0x4c4043,'width':_0x7a853a}):!0x1;}[_0x6a5b69(0x1e5)](_0x5404e4,_0x1ec99b){const _0x22e9cf=_0x6a5b69;let _0x165143=this[_0x22e9cf(0x257)]['getTable'](),_0x5a7e9f=_0x1ec99b[_0x22e9cf(0x1a2)]??_0x1ec99b[_0x22e9cf(0x291)];return!V(_0x165143['fields'][_0x5404e4])||!_0x5a7e9f||!V(_0x165143['fields'][_0x5a7e9f])?!0x1:this[_0x22e9cf(0x1ec)][_0x22e9cf(0x1d5)](_0x26a020['id'],{'unitId':this[_0x22e9cf(0x178)][_0x22e9cf(0x271)](),'tableId':this[_0x22e9cf(0x257)]['getId'](),'viewId':this[_0x22e9cf(0x175)],'fieldId':_0x5404e4,'target':_0x1ec99b});}[_0x6a5b69(0x24a)](_0x20ed89){const _0x45daab=_0x6a5b69;return this['_commandService'][_0x45daab(0x1d5)](_0x1008cd['id'],{'unitId':this[_0x45daab(0x178)]['getId'](),'tableId':this[_0x45daab(0x257)]['getId'](),'viewId':this[_0x45daab(0x175)],'target':_0x20ed89});}['delete'](){const _0x115dac=_0x6a5b69;return this[_0x115dac(0x1ec)][_0x115dac(0x1d5)](_0x1c08cd['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x115dac(0x257)]['getId'](),'viewId':this[_0x115dac(0x175)]});}[_0x6a5b69(0x240)](){const _0x3a3e21=_0x6a5b69;return this['_projectionService'][_0x3a3e21(0x240)](this['_base']['getBase']()[_0x3a3e21(0x196)](),this['_table'][_0x3a3e21(0x271)](),this[_0x3a3e21(0x175)]);}[_0x6a5b69(0x19e)](){const _0x122e35=_0x6a5b69;let _0x20432a=this[_0x122e35(0x257)][_0x122e35(0x28e)]()[_0x122e35(0x1ab)][this[_0x122e35(0x175)]];if(!_0x20432a)throw Error('[FView]:\x20view\x20\x22'+this[_0x122e35(0x175)]+'\x22\x20does\x20not\x20exist.');return _0x20432a;}};X=z([R(0x4,_0x1047ac),R(0x5,_0x9f57f5),R(0x6,_0x483014)],X);let Z=class{constructor(_0x48c00a,_0x3c0f82,_0x1f59e0,_0x584657,_0x258a0f,_0x2d169a){const _0x4534a3=_0x6a5b69;this[_0x4534a3(0x178)]=_0x48c00a,this[_0x4534a3(0x207)]=_0x3c0f82,this[_0x4534a3(0x1a1)]=_0x1f59e0,this[_0x4534a3(0x1ec)]=_0x584657,this['_permissionService']=_0x258a0f,this[_0x4534a3(0x298)]=_0x2d169a;}[_0x6a5b69(0x249)](){const _0x5ccd85=_0x6a5b69;return this[_0x5ccd85(0x178)]['getBase']();}[_0x6a5b69(0x28e)](){const _0x370607=_0x6a5b69;return this[_0x370607(0x2a4)]();}['getId'](){const _0x5bbfb1=_0x6a5b69;return this[_0x5bbfb1(0x207)];}[_0x6a5b69(0x167)](){const _0x12d8f1=_0x6a5b69;return new L(this[_0x12d8f1(0x249)]()['getUnitId'](),_0x2d8a33(this[_0x12d8f1(0x207)]),[],this[_0x12d8f1(0x1ec)],this[_0x12d8f1(0x2a0)]);}[_0x6a5b69(0x21f)](){const _0x78898e=_0x6a5b69;return _0x38a87b(this[_0x78898e(0x2a4)]());}[_0x6a5b69(0x1cc)](_0x1c1c60){const _0x95b25d=_0x6a5b69;return this['_commandService']['syncExecuteCommand'](_0x2bda89['id'],{'unitId':this[_0x95b25d(0x178)][_0x95b25d(0x271)](),'tableId':this['_tableId'],'fieldId':_0x1c1c60});}[_0x6a5b69(0x2bf)](){const _0x1cfe13=_0x6a5b69;return this[_0x1cfe13(0x2a4)]()[_0x1cfe13(0x258)];}[_0x6a5b69(0x1cf)](){const _0xc8dab6=_0x6a5b69;let _0xf7c46f=this['_base'][_0xc8dab6(0x249)]()[_0xc8dab6(0x196)]();return _0x193fc0(this['_getTable'](),_0xf7c46f);}[_0x6a5b69(0x16c)](_0x40db57){const _0x4060a8=_0x6a5b69;let _0x4b4ec6=_0x4fd34e(this['_base'][_0x4060a8(0x249)]()['getSnapshot'](),_0x40db57,this[_0x4060a8(0x207)]);if(!_0x4b4ec6[_0x4060a8(0x181)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x40db57+'\x22.\x20'+_0x5963f1+'\x20'+_0x4b4ec6['reason']);return this[_0x4060a8(0x1ec)]['syncExecuteCommand'](_0x264dca['id'],{'unitId':this[_0x4060a8(0x178)][_0x4060a8(0x271)](),'tableId':this[_0x4060a8(0x207)],'name':_0x40db57});}[_0x6a5b69(0x2a3)](_0x4563a,_0x14517c){const _0x30ec75=_0x6a5b69;let _0x54be8a=this['_base'][_0x30ec75(0x249)]()[_0x30ec75(0x196)](),_0x50a328=this[_0x30ec75(0x2a4)]();if(_0x14517c){let _0x494ebb=this[_0x30ec75(0x298)][_0x30ec75(0x240)](_0x54be8a,this[_0x30ec75(0x207)],_0x14517c),_0x255ce7=_0x50a328[_0x30ec75(0x1ab)][_0x14517c],_0x562693=_0x4563a[_0x30ec75(0x1fd)]??Tt(_0x50a328,_0x255ce7,_0x494ebb),_0x5b571f=_0x30ec75(0x1f4)in _0x494ebb&&Array[_0x30ec75(0x285)](_0x494ebb[_0x30ec75(0x1f4)])?_0x494ebb['rows']:[];return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x562693,'rows':_0x5b571f});}let _0x3dcf2f=(_0x50a328['recordOrder']?_0x50a328['recordOrder'][_0x30ec75(0x2ba)](_0x1b7dba=>_0x50a328[_0x30ec75(0x1c8)][_0x1b7dba]):Object['values'](_0x50a328['records'])['sort']((_0x4c40ef,_0x3ccbeb)=>_0x4c40ef[_0x30ec75(0x179)][_0x30ec75(0x23c)](_0x3ccbeb['orderKey'])))[_0x30ec75(0x253)](_0x172fca=>_0x172fca)['map'](_0x368495=>({'recordId':_0x368495['id'],'values':_0x368495[_0x30ec75(0x2b6)]})),_0x5258ac=_0x4563a['fieldIds']??_0x50a328[_0x30ec75(0x16b)][_0x30ec75(0x253)](_0x974228=>V(_0x50a328[_0x30ec75(0x243)][_0x974228]));return _0x729fff({..._0x4563a,'table':_0x50a328,'fieldIds':_0x5258ac,'rows':_0x3dcf2f});}[_0x6a5b69(0x1d0)](){const _0x50d9ae=_0x6a5b69;return this[_0x50d9ae(0x2a4)]()[_0x50d9ae(0x17d)];}['getFields'](){const _0x4608af=_0x6a5b69;let _0x5524ae=this[_0x4608af(0x2a4)]();return _0x5524ae[_0x4608af(0x16b)]['map'](_0x212a40=>_0x5524ae[_0x4608af(0x243)][_0x212a40])[_0x4608af(0x253)](V)[_0x4608af(0x2ba)](_0x182529=>this['_injector'][_0x4608af(0x1d7)](B,this[_0x4608af(0x178)],this,_0x182529['id']));}['getFieldById'](_0x2661ef){const _0x5b18d1=_0x6a5b69;let _0x61b9b=this[_0x5b18d1(0x2a4)]()[_0x5b18d1(0x243)][_0x2661ef];return V(_0x61b9b)?this['_injector'][_0x5b18d1(0x1d7)](B,this['_base'],this,_0x61b9b['id']):null;}[_0x6a5b69(0x284)](_0x5253cf){const _0x4aee2e=_0x6a5b69;let _0x23b73c=this[_0x4aee2e(0x2a4)]()[_0x4aee2e(0x243)],_0x364f47=Object[_0x4aee2e(0x2b6)](_0x23b73c)['find'](_0x5aea6d=>V(_0x5aea6d)&&_0x5aea6d[_0x4aee2e(0x258)]===_0x5253cf);return _0x364f47?this[_0x4aee2e(0x1a1)][_0x4aee2e(0x1d7)](B,this[_0x4aee2e(0x178)],this,_0x364f47['id']):null;}[_0x6a5b69(0x260)](){const _0xa628cf=_0x6a5b69;let _0x285d2e=this[_0xa628cf(0x2a4)]()['primaryFieldId'];return this[_0xa628cf(0x1a1)]['createInstance'](B,this[_0xa628cf(0x178)],this,_0x285d2e);}[_0x6a5b69(0x2af)](_0xb70d9e,_0x50c72c,_0x443aab){const _0x4b8e6d=_0x6a5b69;var _0x34358d,_0x1fb241;if(!Object['values'](_0x1dcf64)[_0x4b8e6d(0x274)](_0x18413d=>_0x18413d===_0x50c72c))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x50c72c)+'\x22.');if(_0x50c72c===_0x1dcf64['Formula']&&this[_0x4b8e6d(0x23d)](_0xb70d9e,_0x443aab),_0x50c72c===_0x1dcf64[_0x4b8e6d(0x222)]&&(typeof(_0x443aab==null||(_0x34358d=_0x443aab[_0x4b8e6d(0x2a7)])==null||(_0x34358d=_0x34358d['config'])==null?void 0x0:_0x34358d[_0x4b8e6d(0x1b1)])!=_0x4b8e6d(0x295)||typeof _0x443aab[_0x4b8e6d(0x2a7)]['config'][_0x4b8e6d(0x22c)]!='boolean'))throw Error(_0x4b8e6d(0x1ac));let _0x16692b={..._0x443aab==null?void 0x0:_0x443aab['field'],'id':_0x49e131(0x6),'name':_0xb70d9e,'type':_0x50c72c,'config':(_0x443aab==null||(_0x1fb241=_0x443aab['field'])==null?void 0x0:_0x1fb241[_0x4b8e6d(0x2bb)])??{}};if(!this[_0x4b8e6d(0x1ec)][_0x4b8e6d(0x1d5)](_0x2ecef1['id'],{'unitId':this[_0x4b8e6d(0x178)][_0x4b8e6d(0x271)](),'tableId':this[_0x4b8e6d(0x207)],'field':_0x16692b,'index':_0x443aab==null?void 0x0:_0x443aab[_0x4b8e6d(0x1d6)]}))throw Error(_0x4b8e6d(0x1b7)+_0xb70d9e+'\x22');return this[_0x4b8e6d(0x1a1)][_0x4b8e6d(0x1d7)](B,this[_0x4b8e6d(0x178)],this,_0x16692b['id']);}['_prepareFormulaFieldReferences'](_0x31af3a,_0x1cf677){const _0x2d9d5d=_0x6a5b69;var _0x23e74e;if(!_0x1cf677||!(_0x2d9d5d(0x198)in _0x1cf677)||!Array['isArray'](_0x1cf677[_0x2d9d5d(0x198)]))throw Error(_0x2d9d5d(0x1ca));let _0x4098d7=this[_0x2d9d5d(0x1ec)][_0x2d9d5d(0x1d5)](_0x43f42c['id'],{'unitId':this['_base'][_0x2d9d5d(0x271)](),'tableId':this[_0x2d9d5d(0x207)],'formula':String(((_0x23e74e=_0x1cf677[_0x2d9d5d(0x2a7)])==null||(_0x23e74e=_0x23e74e[_0x2d9d5d(0x2bb)])==null?void 0x0:_0x23e74e[_0x2d9d5d(0x199)])??'')});if(!_0x4098d7[_0x2d9d5d(0x181)])throw Error(_0x4098d7[_0x2d9d5d(0x27c)]??_0x2d9d5d(0x208));if(_0x1cf677['externalReferences'][_0x2d9d5d(0x273)]>0x0&&!this[_0x2d9d5d(0x1ec)]['syncExecuteCommand'](_0x2057d2['id'],{'unitId':this[_0x2d9d5d(0x178)][_0x2d9d5d(0x271)](),'references':_0x1cf677[_0x2d9d5d(0x198)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x31af3a+'\x22');}[_0x6a5b69(0x2b1)](){const _0x2546d9=_0x6a5b69;return this[_0x2546d9(0x1bd)]()[_0x2546d9(0x2ba)](_0x51df7c=>this[_0x2546d9(0x1a1)][_0x2546d9(0x1d7)](Y,this[_0x2546d9(0x178)],this,_0x51df7c,this[_0x2546d9(0x1a1)]));}[_0x6a5b69(0x185)](_0x1c3f0d){const _0x38d644=_0x6a5b69;return this[_0x38d644(0x2a4)]()[_0x38d644(0x1c8)][_0x1c3f0d]?this[_0x38d644(0x1a1)]['createInstance'](Y,this[_0x38d644(0x178)],this,_0x1c3f0d,this[_0x38d644(0x1a1)]):null;}[_0x6a5b69(0x1f0)](_0x450cc9={}){const _0x3731c9=_0x6a5b69;let _0x45a87e=this[_0x3731c9(0x2a4)](),_0x1f38dc=this[_0x3731c9(0x1bd)](_0x450cc9),_0x358504=Math[_0x3731c9(0x239)](0x0,_0x450cc9['offset']??0x0),_0x3f4fd1=_0x450cc9['limit']==null?null:Math[_0x3731c9(0x239)](0x0,_0x450cc9['limit']),_0x16e273=yt(_0x1f38dc['map'](_0x56e712=>_0x45a87e['records'][_0x56e712])[_0x3731c9(0x253)](_0x1f6ec7=>xt(_0x1f6ec7,_0x45a87e,_0x450cc9['filter'])),_0x45a87e,_0x450cc9['sort']);return{'records':vt(_0x16e273,_0x450cc9)[_0x3731c9(0x2ba)](_0x46b1a3=>this[_0x3731c9(0x1a1)][_0x3731c9(0x1d7)](Y,this[_0x3731c9(0x178)],this,_0x46b1a3['id'],this['_injector'])),'total':_0x16e273[_0x3731c9(0x273)],'offset':_0x358504,'limit':_0x3f4fd1,'hasMore':_0x3f4fd1!=null&&_0x358504+_0x3f4fd1<_0x16e273['length']};}[_0x6a5b69(0x244)](_0x46ef85,_0x1b8829='id',_0x420636){const _0xe08b7b=_0x6a5b69;let _0x14fc9a=this['_getTable'](),_0xeb8e38=Date[_0xe08b7b(0x26c)](),_0x59e723={..._0x420636,'id':_0x49e131(0x6),'values':H(_0x14fc9a,_0x46ef85,_0x1b8829),'orderKey':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x179)])||''+_0xeb8e38,'createdAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x277)])||_0xeb8e38,'updatedAt':(_0x420636==null?void 0x0:_0x420636[_0xe08b7b(0x2c3)])||_0xeb8e38};if(!this[_0xe08b7b(0x1ec)][_0xe08b7b(0x1d5)](_0x817aeb['id'],{'unitId':this['_base'][_0xe08b7b(0x271)](),'tableId':this[_0xe08b7b(0x207)],'record':_0x59e723,'source':_0x43f637['Facade']}))throw Error(_0xe08b7b(0x29c)+_0x59e723['id']+'\x22');return this[_0xe08b7b(0x1a1)]['createInstance'](Y,this[_0xe08b7b(0x178)],this,_0x59e723['id'],this[_0xe08b7b(0x1a1)]);}[_0x6a5b69(0x22f)](_0x325134){const _0xc19a73=_0x6a5b69;if(!_0x325134['length'])return[];let _0x313b63=this[_0xc19a73(0x2a4)](),_0x444929=Date[_0xc19a73(0x26c)](),_0x39948e=_0x325134['map']((_0x6c1ca0,_0x3f749f)=>{const _0xead5b3=_0xc19a73;var _0x3fdd16,_0x5475ca,_0x13439c;return{..._0x6c1ca0[_0xead5b3(0x296)],'id':_0x49e131(0x6),'values':H(_0x313b63,_0x6c1ca0[_0xead5b3(0x2b6)],_0x6c1ca0[_0xead5b3(0x27d)]??'id'),'orderKey':((_0x3fdd16=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x3fdd16[_0xead5b3(0x179)])||''+(_0x444929+_0x3f749f),'createdAt':((_0x5475ca=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x5475ca[_0xead5b3(0x277)])||_0x444929,'updatedAt':((_0x13439c=_0x6c1ca0[_0xead5b3(0x296)])==null?void 0x0:_0x13439c['updatedAt'])||_0x444929};});if(!this[_0xc19a73(0x1ec)][_0xc19a73(0x1d5)](_0x28e204['id'],{'unitId':this[_0xc19a73(0x178)][_0xc19a73(0x271)](),'tableId':this[_0xc19a73(0x207)],'records':_0x39948e,'source':_0x43f637[_0xc19a73(0x29b)]}))throw Error(_0xc19a73(0x223));return _0x39948e[_0xc19a73(0x2ba)](_0x1fa199=>this[_0xc19a73(0x1a1)][_0xc19a73(0x1d7)](Y,this['_base'],this,_0x1fa199['id'],this['_injector']));}[_0x6a5b69(0x210)](_0x2b268c){const _0x5b5763=_0x6a5b69;return!_0x2b268c[_0x5b5763(0x273)]||this[_0x5b5763(0x1ec)][_0x5b5763(0x1d5)](_0x16f69d['id'],{'unitId':this[_0x5b5763(0x178)]['getId'](),'tableId':this[_0x5b5763(0x207)],'recordIds':_0x2b268c,'source':_0x43f637[_0x5b5763(0x29b)]});}[_0x6a5b69(0x2b2)](_0x5c1ff2,_0x243836,_0x2f5ec7=0x1,_0xf25938=0x1){const _0x260268=_0x6a5b69;return this[_0x260268(0x1a1)][_0x260268(0x1d7)](K,this[_0x260268(0x178)],this,{'startRow':_0x5c1ff2,'endRow':_0x5c1ff2+_0x2f5ec7-0x1,'startColumn':_0x243836,'endColumn':_0x243836+_0xf25938-0x1},this['_injector']);}['getDataRange'](){const _0x28dea8=_0x6a5b69;var _0x2c8468;let _0x57d1c1=_0xff35e2(this[_0x28dea8(0x2a4)]()),_0x381e53=((_0x2c8468=_0x57d1c1[_0x28dea8(0x2ae)])==null?void 0x0:_0x2c8468[_0x28dea8(0x273)])??0x0,_0x3cc814=_0x57d1c1[_0x28dea8(0x16b)][_0x28dea8(0x253)](_0x4c15ec=>V(_0x57d1c1[_0x28dea8(0x243)][_0x4c15ec]))[_0x28dea8(0x273)];return this[_0x28dea8(0x2b2)](0x0,0x0,Math[_0x28dea8(0x239)](_0x381e53,0x1),Math[_0x28dea8(0x239)](_0x3cc814,0x1));}[_0x6a5b69(0x27e)](){const _0x45c101=_0x6a5b69;let _0x369501=this[_0x45c101(0x2a4)]();return _0x369501[_0x45c101(0x254)][_0x45c101(0x253)](_0x20110e=>_0x369501['views'][_0x20110e])[_0x45c101(0x2ba)](_0x2bd080=>this[_0x45c101(0x1a1)][_0x45c101(0x1d7)](X,this[_0x45c101(0x178)],this,_0x2bd080,this[_0x45c101(0x1a1)]));}[_0x6a5b69(0x225)](_0x80f590){const _0x813168=_0x6a5b69;return this[_0x813168(0x2a4)]()[_0x813168(0x1ab)][_0x80f590]?this[_0x813168(0x1a1)][_0x813168(0x1d7)](X,this[_0x813168(0x178)],this,_0x80f590,this[_0x813168(0x1a1)]):null;}['getViewByName'](_0x147e09){const _0x179acc=_0x6a5b69;let _0x442609=this[_0x179acc(0x2a4)](),_0x20a86c=Object[_0x179acc(0x2b6)](_0x442609['views'])[_0x179acc(0x24f)](_0x3cd39c=>_0x3cd39c[_0x179acc(0x258)]===_0x147e09);return _0x20a86c?this[_0x179acc(0x1a1)][_0x179acc(0x1d7)](X,this[_0x179acc(0x178)],this,_0x20a86c['id'],this[_0x179acc(0x1a1)]):null;}[_0x6a5b69(0x201)](_0xc28bbb,_0x257b67,_0x39f4b3){const _0x24e25c=_0x6a5b69;var _0x258eac,_0x21f82e,_0x29b98e,_0x40ea7c;let _0x51bcbf=this['_getTable'](),_0x349226=(_0x39f4b3==null||(_0x258eac=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x258eac[_0x24e25c(0x16b)])??_0x51bcbf['fieldOrder'],_0x5cabef=[_0x8c29d8,..._0x349226[_0x24e25c(0x253)](_0x530e40=>V(_0x51bcbf[_0x24e25c(0x243)][_0x530e40]))],_0x518238={..._0x39f4b3==null?void 0x0:_0x39f4b3[_0x24e25c(0x1fa)],'id':_0x49e131(0x6),'name':_0xc28bbb,'type':_0x257b67,'tableId':this[_0x24e25c(0x207)],'config':(_0x39f4b3==null||(_0x21f82e=_0x39f4b3['view'])==null?void 0x0:_0x21f82e['config'])??{},'fieldOrder':_0x5cabef,'fieldSettings':{..._0x39f4b3==null||(_0x29b98e=_0x39f4b3[_0x24e25c(0x1fa)])==null?void 0x0:_0x29b98e[_0x24e25c(0x1a9)],[_0x8c29d8]:{..._0x39f4b3==null||(_0x40ea7c=_0x39f4b3[_0x24e25c(0x1fa)])==null||(_0x40ea7c=_0x40ea7c['fieldSettings'])==null?void 0x0:_0x40ea7c[_0x8c29d8],'hidden':!0x0}}};if(!this[_0x24e25c(0x1ec)][_0x24e25c(0x1d5)](_0x4efbdd['id'],{'unitId':this[_0x24e25c(0x178)][_0x24e25c(0x271)](),'tableId':this[_0x24e25c(0x207)],'view':_0x518238,'index':_0x39f4b3==null?void 0x0:_0x39f4b3['index']}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0xc28bbb+'\x22');return this[_0x24e25c(0x1a1)][_0x24e25c(0x1d7)](X,this[_0x24e25c(0x178)],this,_0x518238['id'],this[_0x24e25c(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5c2df4=_0x6a5b69;let _0x17986d=this['_getTable'](),_0x524d9c=_0x17986d[_0x5c2df4(0x16b)]['filter'](_0x2d1182=>V(_0x17986d['fields'][_0x2d1182])),_0x336889=_0x17986d[_0x5c2df4(0x254)][_0x5c2df4(0x253)](_0x34d4dc=>_0x17986d[_0x5c2df4(0x1ab)][_0x34d4dc]);return{'id':_0x17986d['id'],'name':_0x17986d[_0x5c2df4(0x258)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x17986d[_0x5c2df4(0x17d)],'fieldIds':_0x524d9c,'viewIds':_0x336889,'recordCount':this[_0x5c2df4(0x1bd)]()[_0x5c2df4(0x273)],'fields':_0x524d9c['map'](_0x3d0fee=>{const _0xd9f799=_0x5c2df4;let _0x48f16b=_0x17986d[_0xd9f799(0x243)][_0x3d0fee];return{'id':_0x48f16b['id'],'name':_0x48f16b[_0xd9f799(0x258)],'type':_0x48f16b[_0xd9f799(0x18d)],'config':_0x48f16b['config'],'readonly':_0x48f16b['readonly'],'description':_0x48f16b[_0xd9f799(0x2ad)]};}),'views':_0x336889['map'](_0x4889e1=>{const _0x49a2d4=_0x5c2df4;let _0x34f375=_0x17986d['views'][_0x4889e1];return{'id':_0x34f375['id'],'name':_0x34f375[_0x49a2d4(0x258)],'type':_0x34f375[_0x49a2d4(0x18d)]};})};}[_0x6a5b69(0x2a4)](){const _0x4547c8=_0x6a5b69;let _0xce9a9d=this['_base'][_0x4547c8(0x249)]()[_0x4547c8(0x196)]()[_0x4547c8(0x29f)][this['_tableId']];if(!_0xce9a9d)throw Error('[FTable]:\x20table\x20\x22'+this[_0x4547c8(0x207)]+_0x4547c8(0x2ca));return _0xce9a9d;}[_0x6a5b69(0x1bd)](_0x4d2067={}){const _0x2ef795=_0x6a5b69;let _0xfd318d=this[_0x2ef795(0x178)]['getBase']()['getSnapshot'](),_0x5c2a18=this['_getTable']();if(_0x4d2067[_0x2ef795(0x1eb)]){let _0x39ab9a=this['_projectionService']['getProjection'](_0xfd318d,this[_0x2ef795(0x207)],_0x4d2067[_0x2ef795(0x1eb)]);if(_0x2ef795(0x1f4)in _0x39ab9a&&Array[_0x2ef795(0x285)](_0x39ab9a[_0x2ef795(0x1f4)]))return _0x39ab9a[_0x2ef795(0x1f4)][_0x2ef795(0x2ba)](_0x4b34e8=>_0x4b34e8['recordId']);}return(_0x5c2a18[_0x2ef795(0x2ae)]?_0x5c2a18[_0x2ef795(0x2ae)][_0x2ef795(0x2ba)](_0x3ba9b9=>_0x5c2a18[_0x2ef795(0x1c8)][_0x3ba9b9]):Object[_0x2ef795(0x2b6)](_0x5c2a18[_0x2ef795(0x1c8)])[_0x2ef795(0x172)]((_0x8a3983,_0x1d9eec)=>_0x8a3983['orderKey']['localeCompare'](_0x1d9eec[_0x2ef795(0x179)])))[_0x2ef795(0x253)](_0x7701b1=>_0x7701b1)[_0x2ef795(0x2ba)](_0x295a5c=>_0x295a5c['id']);}};Z=z([R(0x3,_0x1047ac),R(0x4,_0x9f57f5),R(0x5,_0x483014)],Z);function vt(_0x1f799b,_0x1b737f){const _0x4fa6d1=_0x6a5b69;let _0x147693=Math['max'](0x0,_0x1b737f[_0x4fa6d1(0x26d)]??0x0);return _0x1b737f[_0x4fa6d1(0x18a)]==null?_0x1f799b[_0x4fa6d1(0x169)](_0x147693):_0x1f799b['slice'](_0x147693,_0x147693+Math[_0x4fa6d1(0x239)](0x0,_0x1b737f[_0x4fa6d1(0x18a)]));}function yt(_0x9e9385,_0x286b20,_0x3e62ff=[]){const _0x4081de=_0x6a5b69;return _0x3e62ff[_0x4081de(0x273)]?[..._0x9e9385][_0x4081de(0x172)]((_0x9820be,_0xeeeb73)=>{const _0x46edce=_0x4081de;for(let _0x31aa5a of _0x3e62ff){var _0x28f55e;let _0xcca78d=_0x31aa5a[_0x46edce(0x1fe)]===_0x35c88d[_0x46edce(0x2cf)]?-0x1:0x1,_0x36d10d=bt(_0x9820be[_0x46edce(0x2b6)][_0x31aa5a['fieldId']],_0xeeeb73[_0x46edce(0x2b6)][_0x31aa5a[_0x46edce(0x26e)]],(_0x28f55e=_0x286b20[_0x46edce(0x243)][_0x31aa5a[_0x46edce(0x26e)]])==null?void 0x0:_0x28f55e[_0x46edce(0x18d)]);if(_0x36d10d!==0x0)return _0x36d10d*_0xcca78d;}return String(_0x9820be['orderKey']??_0x9820be['id'])['localeCompare'](String(_0xeeeb73['orderKey']??_0xeeeb73['id']));}):_0x9e9385;}function bt(_0x42858d,_0x463aa6,_0x2378cf){const _0x1a971d=_0x6a5b69;return _0x42858d==null&&_0x463aa6==null?0x0:_0x42858d==null?-0x1:_0x463aa6==null?0x1:typeof _0x42858d=='number'&&typeof _0x463aa6==_0x1a971d(0x2b0)?_0x42858d-_0x463aa6:_0x2378cf===_0x1dcf64['Date']?Number(_0x42858d)-Number(_0x463aa6):String(_0x42858d)['localeCompare'](String(_0x463aa6));}function xt(_0xa4a236,_0x4ee4a6,_0x133dcd){const _0x5679a3=_0x6a5b69;var _0x34edbb;if(!_0x133dcd||!((_0x34edbb=_0x133dcd['conditions'])!=null&&_0x34edbb[_0x5679a3(0x273)]))return!0x0;let {conjunction:_0x1596e0=_0x4157c8['OR'],conditions:_0x150eb1}=_0x133dcd;return _0x1596e0===_0x4157c8[_0x5679a3(0x20b)]&&_0x150eb1['length']>0x1?_0x150eb1[_0x5679a3(0x2ac)](_0x111d25=>St(_0xa4a236,_0x4ee4a6,_0x111d25)):_0x150eb1[_0x5679a3(0x274)](_0x18a5d4=>St(_0xa4a236,_0x4ee4a6,_0x18a5d4));}function St(_0x2acc32,_0x191c74,_0x3de5a6){const _0xdd1dec=_0x6a5b69;let _0x4401f7=_0x2acc32['values'][_0x3de5a6[_0xdd1dec(0x26e)]],_0x5915d1=_0x191c74[_0xdd1dec(0x243)][_0x3de5a6[_0xdd1dec(0x26e)]];if(Ct(_0x3de5a6)){let _0x24473b=wt(_0x3de5a6)['test'](String(_0x4401f7??''));return _0x3de5a6['operator']===_0xdd1dec(0x1db)?_0x24473b:!_0x24473b;}return!_0x5915d1||_0x17c967(_0x4401f7,_0x3de5a6['operator'],_0x3de5a6[_0xdd1dec(0x188)],_0x5915d1);}function Ct(_0x3f4d5a){const _0x26c8b2=_0x6a5b69;return _0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1db)||_0x3f4d5a[_0x26c8b2(0x21c)]===_0x26c8b2(0x1ee);}function wt(_0x3509e2){const _0x16d5c3=_0x6a5b69;let _0x1f1091=String(_0x3509e2[_0x16d5c3(0x188)]??'');if(_0x1f1091[_0x16d5c3(0x273)]>0x200)throw Error(_0x16d5c3(0x237));try{return new RegExp(_0x1f1091,_0x3509e2[_0x16d5c3(0x1dd)]?void 0x0:'i');}catch(_0x301424){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x1f1091+'.\x20'+(_0x301424 instanceof Error?_0x301424[_0x16d5c3(0x1c1)]:String(_0x301424)));}}function Tt(_0x51af85,_0x31aa8c,_0x2f33c6){const _0x5ae49a=_0x6a5b69;if(_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x2b7)&&_0x2f33c6[_0x5ae49a(0x18d)]!==_0x5ae49a(0x238)){var _0x56cc36;if(_0x2f33c6[_0x5ae49a(0x18d)]===_0x144585[_0x5ae49a(0x25d)]){var _0x32d503;let _0x16467e=[((_0x32d503=_0x2f33c6[_0x5ae49a(0x243)])==null||(_0x32d503=_0x32d503[0x0])==null?void 0x0:_0x32d503['id'])??_0x51af85[_0x5ae49a(0x17d)],..._0x2f33c6[_0x5ae49a(0x2c2)]??[]];return Array[_0x5ae49a(0x19f)](new Set(_0x16467e[_0x5ae49a(0x253)](_0x21bb3f=>!!_0x51af85['fields'][_0x21bb3f])));}if((_0x56cc36=_0x2f33c6[_0x5ae49a(0x243)])!=null&&_0x56cc36['length'])return _0x2f33c6['fields']['map'](_0x31e0b1=>_0x31e0b1['id'])[_0x5ae49a(0x253)](_0x8204ac=>{const _0x772b0a=_0x5ae49a;var _0x44966b;return!(!_0x51af85['fields'][_0x8204ac]||_0x31aa8c!=null&&(_0x44966b=_0x31aa8c[_0x772b0a(0x1a9)])!=null&&(_0x44966b=_0x44966b[_0x8204ac])!=null&&_0x44966b['hidden']);});}return _0x51af85[_0x5ae49a(0x16b)][_0x5ae49a(0x253)](_0x3db99d=>{const _0x40bdc8=_0x5ae49a;var _0x19952c;return!(!_0x51af85[_0x40bdc8(0x243)][_0x3db99d]||_0x31aa8c!=null&&(_0x19952c=_0x31aa8c['fieldSettings'])!=null&&(_0x19952c=_0x19952c[_0x3db99d])!=null&&_0x19952c['hidden']);});}let Q=class extends _0x4e29a4[_0x6a5b69(0x29d)]{constructor(_0x3543d1,_0xb0932d,_0x3ae81a,_0xc6574f,_0x27aef6){const _0x240b6b=_0x6a5b69;super(),this['_base']=_0x3543d1,this[_0x240b6b(0x1a1)]=_0xb0932d,this[_0x240b6b(0x220)]=_0x3ae81a,this['_commandService']=_0xc6574f,this['_permissionService']=_0x27aef6;}['getBase'](){const _0x50e60d=_0x6a5b69;return this[_0x50e60d(0x178)];}[_0x6a5b69(0x271)](){const _0xde98b6=_0x6a5b69;return this[_0xde98b6(0x178)]['getUnitId']();}['getPermission'](){const _0x344ce8=_0x6a5b69;return new at(this[_0x344ce8(0x271)](),this[_0x344ce8(0x1ec)],this[_0x344ce8(0x2a0)]);}[_0x6a5b69(0x1a8)](){const _0x1a188d=_0x6a5b69;return this[_0x1a188d(0x220)][_0x1a188d(0x25c)](this[_0x1a188d(0x271)]())??_0x2517f7[_0x1a188d(0x2d0)](this['_base'][_0x1a188d(0x196)]());}[_0x6a5b69(0x2bf)](){const _0x1861dd=_0x6a5b69;return this[_0x1861dd(0x178)][_0x1861dd(0x196)]()[_0x1861dd(0x258)];}[_0x6a5b69(0x16c)](_0x27786c){const _0x1d90a3=_0x6a5b69;this['_commandService'][_0x1d90a3(0x1d5)](_0x280ebb['id'],{'unitId':this[_0x1d90a3(0x271)](),'name':_0x27786c});}[_0x6a5b69(0x1da)](){const _0x3c63cc=_0x6a5b69;let _0x115c85=this[_0x3c63cc(0x178)][_0x3c63cc(0x196)]();return _0x115c85[_0x3c63cc(0x1df)][_0x3c63cc(0x2ba)](_0x1bf062=>_0x115c85[_0x3c63cc(0x29f)][_0x1bf062])[_0x3c63cc(0x253)](_0x90c365=>_0x90c365)[_0x3c63cc(0x2ba)](_0x9d3e10=>this[_0x3c63cc(0x1a1)]['createInstance'](Z,this,_0x9d3e10['id'],this[_0x3c63cc(0x1a1)]));}[_0x6a5b69(0x23b)](_0x2693be){const _0xd20f04=_0x6a5b69;let _0xfdfbdd=this['_base'][_0xd20f04(0x196)]()[_0xd20f04(0x29f)][_0x2693be];return _0xfdfbdd?this['_injector'][_0xd20f04(0x1d7)](Z,this,_0xfdfbdd['id'],this[_0xd20f04(0x1a1)]):null;}[_0x6a5b69(0x18e)](_0x10726d){const _0x8b147=_0x6a5b69;let _0x254ea4=this['_base'][_0x8b147(0x196)](),_0x4b7ed1=Object[_0x8b147(0x2b6)](_0x254ea4[_0x8b147(0x29f)])[_0x8b147(0x24f)](_0x3eaaff=>_0x3eaaff['name']===_0x10726d);return _0x4b7ed1?this[_0x8b147(0x1a1)]['createInstance'](Z,this,_0x4b7ed1['id'],this[_0x8b147(0x1a1)]):null;}[_0x6a5b69(0x217)](_0x31728c,_0x26cb96){const _0x3d79c1=_0x6a5b69;let _0x5b9d27=_0xe17d11({'id':_0x49e131(),'name':_0x31728c,..._0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)],'primaryFieldName':_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x206)]}),_0x47ae03=_0x2517f7[_0x3d79c1(0x1f3)](_0x5b9d27,(_0x26cb96==null?void 0x0:_0x26cb96[_0x3d79c1(0x21a)])??{}),_0x46b0d3=_0x4fd34e(this[_0x3d79c1(0x178)][_0x3d79c1(0x196)](),_0x47ae03[_0x3d79c1(0x258)]);if(!_0x46b0d3['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x47ae03[_0x3d79c1(0x258)]+'\x22.\x20'+_0x5963f1+'\x20'+_0x46b0d3['reason']);if(!this[_0x3d79c1(0x1ec)][_0x3d79c1(0x1d5)](_0x118e4c['id'],{'unitId':this['_base'][_0x3d79c1(0x2ce)](),'table':_0x47ae03,'index':_0x26cb96==null?void 0x0:_0x26cb96['index']}))throw Error(_0x3d79c1(0x2a5)+_0x31728c+'\x22.');return this[_0x3d79c1(0x1a1)]['createInstance'](Z,this,_0x47ae03['id'],this[_0x3d79c1(0x1a1)]);}['deleteTable'](_0x297b76){const _0xb8aed=_0x6a5b69;let _0x4eada2=typeof _0x297b76==_0xb8aed(0x295)?_0x297b76:_0x297b76[_0xb8aed(0x271)]();if(!this[_0xb8aed(0x1ec)][_0xb8aed(0x1d5)](_0x480168['id'],{'unitId':this[_0xb8aed(0x178)][_0xb8aed(0x2ce)](),'tableId':_0x4eada2}))throw Error(_0xb8aed(0x1bb)+_0x4eada2+'\x22.');return!0x0;}[_0x6a5b69(0x173)](_0xf63470,_0x168ad1){const _0x34093d=_0x6a5b69;let _0x3f71c6=this[_0x34093d(0x178)][_0x34093d(0x196)](),_0x59ff83=typeof _0xf63470=='string'?_0xf63470:_0xf63470[_0x34093d(0x271)](),_0x295279=_0x3f71c6[_0x34093d(0x29f)][_0x59ff83];if(!_0x295279)throw Error('[FBase]:\x20table\x20\x22'+_0x59ff83+_0x34093d(0x2ca));let _0x3fa56e=_0x3f71c6[_0x34093d(0x1df)][_0x34093d(0x2a6)](_0x59ff83)+0x1,_0x2f4792=_0x49e131(),_0x3519e2=_0x16e20(_0x295279,{'id':_0x2f4792,'name':_0x279ff1(_0x3f71c6,_0x295279[_0x34093d(0x258)]+_0x34093d(0x187)),'includeRecords':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1dc)])??!0x1,'regenerateViewIds':(_0x168ad1==null?void 0x0:_0x168ad1[_0x34093d(0x1cb)])??!0x1});if(!this[_0x34093d(0x1ec)][_0x34093d(0x1d5)](_0x118e4c['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x3519e2,'index':_0x3fa56e}))throw Error(_0x34093d(0x252)+_0x59ff83+'\x22.');return this['_injector']['createInstance'](Z,this,_0x3519e2['id'],this[_0x34093d(0x1a1)]);}[_0x6a5b69(0x1e2)](){const _0x5072d4=_0x6a5b69;let _0x49f5a3=this[_0x5072d4(0x178)][_0x5072d4(0x196)]();return{'id':_0x49f5a3['id'],'name':_0x49f5a3[_0x5072d4(0x258)],'tables':this['getTables']()[_0x5072d4(0x2ba)](_0x53fdf0=>_0x53fdf0[_0x5072d4(0x1e2)]())};}};Q=z([R(0x1,_0x547f59(_0x3c554c)),R(0x2,_0x595187),R(0x3,_0x1047ac),R(0x4,_0x9f57f5)],Q);var Et=class extends _0x61ceef{[_0x6a5b69(0x195)](){const _0x5941ce=_0x6a5b69;this[_0x5941ce(0x235)](),this[_0x5941ce(0x17f)]();}[_0x6a5b69(0x25e)](_0x10d865={},_0xb53601){const _0x5480d7=_0x6a5b69;let _0x4291ec=this[_0x5480d7(0x256)][_0x5480d7(0x29a)](_0x523a99['UNIVER_BASE'],_0x10d865,_0xb53601);return this[_0x5480d7(0x1a1)][_0x5480d7(0x1d7)](Q,_0x4291ec);}[_0x6a5b69(0x261)](){const _0xfee1c9=_0x6a5b69;let _0x44fc27=this['_univerInstanceService']['getCurrentUnitOfType'](_0x523a99['UNIVER_BASE']);return _0x44fc27?this['_injector'][_0xfee1c9(0x1d7)](Q,_0x44fc27):null;}['getBase'](_0x279d64){const _0x42fb2e=_0x6a5b69;let _0x5f2e7e=this['_univerInstanceService']['getUnit'](_0x279d64,_0x523a99[_0x42fb2e(0x1c4)]);return _0x5f2e7e?this[_0x42fb2e(0x1a1)][_0x42fb2e(0x1d7)](Q,_0x5f2e7e):null;}[_0x6a5b69(0x227)](){const _0xcf611f=_0x6a5b69;return this[_0xcf611f(0x256)][_0xcf611f(0x2b3)](_0x523a99['UNIVER_BASE'])[_0xcf611f(0x2ba)](_0x19dbb1=>this[_0xcf611f(0x1a1)][_0xcf611f(0x1d7)](Q,_0x19dbb1));}['_initBaseAfterEvents'](){const _0x595f0d=_0x6a5b69;this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this['Event'][_0x595f0d(0x1e6)],()=>this[_0x595f0d(0x1ec)]['onCommandExecuted']((_0x45077a,_0x5e6ed1)=>{const _0xccd6a5=_0x595f0d;var _0x2bd0d4;if(!$(_0x45077a,_0x4664de))return;let _0xfbdb13=_0x45077a[_0xccd6a5(0x2c5)];if(!((_0x2bd0d4=_0xfbdb13[_0xccd6a5(0x293)])!=null&&_0x2bd0d4[_0xccd6a5(0x273)]))return;let _0x2b6ecb=this[_0xccd6a5(0x249)](_0xfbdb13['unitId']),_0x311ea5=_0x2b6ecb==null?void 0x0:_0x2b6ecb[_0xccd6a5(0x23b)](_0xfbdb13[_0xccd6a5(0x293)][0x0]['tableId']);if(!_0x2b6ecb||!_0x311ea5)return;let _0x3bfb54={'base':_0x2b6ecb,'table':_0x311ea5,'changes':_0xfbdb13[_0xccd6a5(0x293)],'source':_0x5e6ed1!=null&&_0x5e6ed1[_0xccd6a5(0x26a)]?_0x43f637[_0xccd6a5(0x16e)]:_0xfbdb13['source']??_0x43f637['UI']};this['fireEvent'](this[_0xccd6a5(0x232)][_0xccd6a5(0x1e6)],_0x3bfb54);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x1e7)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x24400a=>{const _0x555026=_0x595f0d;if(_0x24400a['id']!==_0x118e4c['id'])return;let {unitId:_0x3c973b,table:_0x33745f,index:_0x1f9ec9}=_0x24400a[_0x555026(0x2c5)],_0x4a723a=this['getBase'](_0x3c973b);if(!_0x4a723a)return;let _0x1c46ea={'base':_0x4a723a,'table':_0x33745f,'index':_0x1f9ec9};this[_0x555026(0x1e4)](this[_0x555026(0x232)][_0x555026(0x1e7)],_0x1c46ea);}))),this['disposeWithMe'](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)]['BaseTableFieldCreated'],()=>this['_commandService'][_0x595f0d(0x212)](_0x36c77a=>{const _0x5353d9=_0x595f0d;if(_0x36c77a['id']!==_0x2ecef1['id'])return;let {unitId:_0x199608,tableId:_0x58c2ef,field:_0x53bd08,index:_0x19e960,viewIndexes:_0x26c12c}=_0x36c77a[_0x5353d9(0x2c5)],_0x2ce16a=this[_0x5353d9(0x249)](_0x199608);if(!_0x2ce16a)return;let _0x1e3115=_0x2ce16a[_0x5353d9(0x23b)](_0x58c2ef);if(!_0x1e3115)return;let _0xee3a87={'base':_0x2ce16a,'table':_0x1e3115,'field':_0x53bd08,'index':_0x19e960,'viewIndexes':_0x26c12c};this['fireEvent'](this[_0x5353d9(0x232)]['BaseTableFieldCreated'],_0xee3a87);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x246)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x3df761=>{const _0x5adc43=_0x595f0d;if(_0x3df761['id']!==_0x817aeb['id']&&_0x3df761['id']!==_0x28e204['id'])return;let _0x393ba4=_0x3df761[_0x5adc43(0x2c5)],{unitId:_0x3c6a86,tableId:_0x5a3c43}=_0x393ba4,_0x2676b2=_0x393ba4['records']??[_0x393ba4['record']],_0x3ed4ac=this['getBase'](_0x3c6a86);if(!_0x3ed4ac)return;let _0x6d6d97=_0x3ed4ac[_0x5adc43(0x23b)](_0x5a3c43);if(!_0x6d6d97)return;let _0x388b54={'base':_0x3ed4ac,'table':_0x6d6d97,'records':_0x2676b2};this[_0x5adc43(0x1e4)](this[_0x5adc43(0x232)][_0x5adc43(0x246)],_0x388b54);}))),this[_0x595f0d(0x18f)](this[_0x595f0d(0x229)](this[_0x595f0d(0x232)][_0x595f0d(0x2c4)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x26df91=>{const _0x1c2804=_0x595f0d;if(_0x26df91['id']!==_0x4efbdd['id'])return;let {unitId:_0x23cdc7,tableId:_0x276f75,view:_0x51682b,index:_0x1fc36b}=_0x26df91[_0x1c2804(0x2c5)],_0x47a67e=this['getBase'](_0x23cdc7);if(!_0x47a67e)return;let _0x2b5db7=_0x47a67e[_0x1c2804(0x23b)](_0x276f75);if(!_0x2b5db7)return;let _0x807920={'base':_0x47a67e,'table':_0x2b5db7,'view':_0x51682b,'index':_0x1fc36b};this['fireEvent'](this[_0x1c2804(0x232)][_0x1c2804(0x2c4)],_0x807920);}))),this[_0x595f0d(0x18f)](this['registerEventHandler'](this[_0x595f0d(0x232)][_0x595f0d(0x2a1)],()=>this[_0x595f0d(0x1ec)][_0x595f0d(0x212)](_0x5c6d39=>{const _0x13be0d=_0x595f0d;if(_0x5c6d39['id']!==_0x3a32fc['id'])return;let {unitId:_0x12eb8b,tableId:_0x18b6e7,recordId:_0x2c5943,fieldId:_0x55dd53,value:_0x228ff1}=_0x5c6d39[_0x13be0d(0x2c5)],_0x57d854=this['getBase'](_0x12eb8b);if(!_0x57d854)return;let _0x181de8=_0x57d854[_0x13be0d(0x23b)](_0x18b6e7);if(!_0x181de8)return;let _0x208d04=_0x181de8[_0x13be0d(0x20d)](_0x55dd53);if(!_0x208d04)return;let _0x548e14=_0x181de8[_0x13be0d(0x185)](_0x2c5943);if(!_0x548e14)return;let _0x21c647={'base':_0x57d854,'table':_0x181de8,'field':_0x208d04,'record':_0x548e14,'value':_0x228ff1};this['fireEvent'](this[_0x13be0d(0x232)][_0x13be0d(0x2a1)],_0x21c647);})));}[_0x6a5b69(0x235)](){const _0x4148ec=_0x6a5b69;this['disposeWithMe'](this['registerEventHandler'](this[_0x4148ec(0x232)][_0x4148ec(0x247)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x3aa81e=>{const _0x20ae73=_0x4148ec;if($(_0x3aa81e,_0x2cebcc)){let {unitId:_0x33f60e,tableId:_0x534d39,patches:_0x18ec4e,source:_0x28c039=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x280a7f=this['_getHierarchyEventContext'](_0x33f60e,_0x534d39);if(!_0x280a7f)return;this[_0x20ae73(0x265)](_0x280a7f[_0x20ae73(0x191)],_0x280a7f['table'],_0x22441f(_0x280a7f[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x18ec4e),_0x28c039);return;}if($(_0x3aa81e,_0x50c929)){let {unitId:_0x4dc3ab,tableId:_0x10d61d,patches:_0x2f8c79,source:_0x4f3610=_0x43f637['UI']}=_0x3aa81e[_0x20ae73(0x2c5)],_0x438d81=this['_getHierarchyEventContext'](_0x4dc3ab,_0x10d61d);if(!_0x438d81)return;let _0x29a56e=_0x438d81['table']['getTable']();this['_fireBeforeHierarchyChange'](_0x438d81['base'],_0x438d81[_0x20ae73(0x21a)],_0x22441f(_0x29a56e,_0x1b3dee(_0x29a56e,_0x2f8c79)),_0x4f3610);return;}if($(_0x3aa81e,_0x817aeb)){let _0x3b152f=_0x3aa81e['params'],_0x9bde1c=this[_0x20ae73(0x170)](_0x3b152f[_0x20ae73(0x27b)],_0x3b152f['tableId']);if(!_0x9bde1c)return;this[_0x20ae73(0x265)](_0x9bde1c[_0x20ae73(0x191)],_0x9bde1c[_0x20ae73(0x21a)],_0x6f896b(_0x9bde1c['table']['getTable'](),[_0x3b152f[_0x20ae73(0x296)]]),_0x3b152f['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x28e204)){let _0x14b70d=_0x3aa81e[_0x20ae73(0x2c5)],_0x426c58=this[_0x20ae73(0x170)](_0x14b70d[_0x20ae73(0x27b)],_0x14b70d[_0x20ae73(0x190)]);if(!_0x426c58)return;this['_fireBeforeHierarchyChange'](_0x426c58[_0x20ae73(0x191)],_0x426c58[_0x20ae73(0x21a)],_0x6f896b(_0x426c58[_0x20ae73(0x21a)]['getTable'](),_0x14b70d[_0x20ae73(0x1c8)]),_0x14b70d[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x499a45)){let _0xa97c3a=_0x3aa81e['params'],_0x4fc8af=this[_0x20ae73(0x170)](_0xa97c3a[_0x20ae73(0x27b)],_0xa97c3a[_0x20ae73(0x190)]);if(!_0x4fc8af)return;this[_0x20ae73(0x265)](_0x4fc8af['base'],_0x4fc8af[_0x20ae73(0x21a)],_0x6f896b(_0x4fc8af[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0xa97c3a['record']]),_0xa97c3a[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x448699)){let _0x52435b=_0x3aa81e[_0x20ae73(0x2c5)],_0xe9b4d=this[_0x20ae73(0x170)](_0x52435b[_0x20ae73(0x27b)],_0x52435b['tableId']);if(!_0xe9b4d)return;let _0x4d9518=_0xe9b4d['table'][_0x20ae73(0x28e)](),_0x15b1c4=_0x52435b['fieldId']??_0x38a87b(_0x4d9518),_0x28d0a0=_0x5b61b7(_0x4d9518,_0x15b1c4)[_0x20ae73(0x183)]['get'](_0x52435b[_0x20ae73(0x1c9)])??null;this[_0x20ae73(0x265)](_0xe9b4d[_0x20ae73(0x191)],_0xe9b4d[_0x20ae73(0x21a)],[{'tableId':_0x52435b[_0x20ae73(0x190)],'fieldId':_0x15b1c4,'recordId':_0x52435b[_0x20ae73(0x1c9)],'oldParentRecordId':_0x28d0a0,'parentRecordId':_0x52435b[_0x20ae73(0x192)]}],_0x52435b[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x4cd8a9)){let _0x2bbfc6=_0x3aa81e[_0x20ae73(0x2c5)],_0x57dc1a=this[_0x20ae73(0x170)](_0x2bbfc6['unitId'],_0x2bbfc6[_0x20ae73(0x190)]);if(!_0x57dc1a)return;let _0xa8d04a=_0x2bbfc6['fieldId']??_0x38a87b(_0x57dc1a[_0x20ae73(0x21a)][_0x20ae73(0x28e)]());this[_0x20ae73(0x265)](_0x57dc1a[_0x20ae73(0x191)],_0x57dc1a[_0x20ae73(0x21a)],[{'tableId':_0x2bbfc6[_0x20ae73(0x190)],'fieldId':_0xa8d04a,'recordId':_0x2bbfc6[_0x20ae73(0x296)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2bbfc6['parentRecordId']}],_0x2bbfc6['source']??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x392c6f)){let _0x379272=_0x3aa81e[_0x20ae73(0x2c5)],_0x4fda42=this['_getHierarchyEventContext'](_0x379272['unitId'],_0x379272[_0x20ae73(0x190)]);if(!_0x4fda42)return;this[_0x20ae73(0x265)](_0x4fda42[_0x20ae73(0x191)],_0x4fda42['table'],_0x57d1f1(_0x4fda42[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),[_0x379272[_0x20ae73(0x1c9)]]),_0x379272[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if($(_0x3aa81e,_0x16f69d)){let _0x3130f3=_0x3aa81e[_0x20ae73(0x2c5)],_0x261d66=this[_0x20ae73(0x170)](_0x3130f3[_0x20ae73(0x27b)],_0x3130f3[_0x20ae73(0x190)]);if(!_0x261d66)return;this[_0x20ae73(0x265)](_0x261d66[_0x20ae73(0x191)],_0x261d66[_0x20ae73(0x21a)],_0x57d1f1(_0x261d66[_0x20ae73(0x21a)][_0x20ae73(0x28e)](),_0x3130f3[_0x20ae73(0x214)]),_0x3130f3[_0x20ae73(0x2bd)]??_0x43f637['UI']);return;}if(!$(_0x3aa81e,_0x3a32fc))return;let _0x3955bb=_0x3aa81e[_0x20ae73(0x2c5)],_0x3bc653=this[_0x20ae73(0x170)](_0x3955bb[_0x20ae73(0x27b)],_0x3955bb['tableId']);if(!_0x3bc653)return;let _0x2e996a=_0x3bc653[_0x20ae73(0x21a)]['getTable']();if(!_0x327c28(_0x2e996a)[_0x20ae73(0x290)](_0x3955bb[_0x20ae73(0x26e)]))return;let _0x3050ff=_0x5b61b7(_0x2e996a,_0x3955bb[_0x20ae73(0x26e)])[_0x20ae73(0x183)][_0x20ae73(0x2d1)](_0x3955bb['recordId'])??null,_0x38c706=_0x2b8d32(_0x3955bb[_0x20ae73(0x188)])[0x0]??null;_0x3050ff!==_0x38c706&&this[_0x20ae73(0x265)](_0x3bc653[_0x20ae73(0x191)],_0x3bc653[_0x20ae73(0x21a)],[{'tableId':_0x3955bb['tableId'],'fieldId':_0x3955bb['fieldId'],'recordId':_0x3955bb[_0x20ae73(0x1c9)],'oldParentRecordId':_0x3050ff,'parentRecordId':_0x38c706}],_0x3955bb[_0x20ae73(0x2bd)]??_0x43f637['UI']);}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x283)],()=>this['_commandService'][_0x4148ec(0x2cb)](_0x2acf56=>{const _0xd79b92=_0x4148ec;if(_0x2acf56['id']!==_0x118e4c['id'])return;let {unitId:_0x10c270,table:_0xe7ec27,index:_0x10d909}=_0x2acf56['params'],_0x26e354=this[_0xd79b92(0x249)](_0x10c270);if(!_0x26e354)return;let _0xf448d8={'base':_0x26e354,'table':_0xe7ec27,'index':_0x10d909};if(this[_0xd79b92(0x1e4)](this[_0xd79b92(0x232)]['BeforeBaseTableCreate'],_0xf448d8),_0xf448d8[_0xd79b92(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x245)],()=>this['_commandService']['beforeCommandExecuted'](_0x44ba5c=>{const _0x5f18a7=_0x4148ec;if(_0x44ba5c['id']!==_0x2ecef1['id'])return;let {unitId:_0x46e66b,tableId:_0x9cbc72,field:_0x2ab4b9,index:_0x45dc84,viewIndexes:_0x1e0057}=_0x44ba5c[_0x5f18a7(0x2c5)],_0x5c92f4=this[_0x5f18a7(0x249)](_0x46e66b);if(!_0x5c92f4)return;let _0x528d17=_0x5c92f4['getTableById'](_0x9cbc72);if(!_0x528d17)return;let _0x4f70d7={'base':_0x5c92f4,'table':_0x528d17,'field':_0x2ab4b9,'index':_0x45dc84,'viewIndexes':_0x1e0057};if(this[_0x5f18a7(0x1e4)](this[_0x5f18a7(0x232)][_0x5f18a7(0x245)],_0x4f70d7),_0x4f70d7['cancel'])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event'][_0x4148ec(0x276)],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0xde26c=>{const _0x3cdd47=_0x4148ec;if(_0xde26c['id']!==_0x817aeb['id']&&_0xde26c['id']!==_0x28e204['id'])return;let _0x1bfe03=_0xde26c[_0x3cdd47(0x2c5)],{unitId:_0x12c8bb,tableId:_0xb945d2}=_0x1bfe03,_0x59584d=_0x1bfe03[_0x3cdd47(0x1c8)]??[_0x1bfe03[_0x3cdd47(0x296)]],_0x2d1ed1=this[_0x3cdd47(0x249)](_0x12c8bb);if(!_0x2d1ed1)return;let _0x35e88f=_0x2d1ed1[_0x3cdd47(0x23b)](_0xb945d2);if(!_0x35e88f)return;let _0x476399={'base':_0x2d1ed1,'table':_0x35e88f,'records':_0x59584d};if(this[_0x3cdd47(0x1e4)](this['Event'][_0x3cdd47(0x276)],_0x476399),_0x476399[_0x3cdd47(0x1af)])throw new _0x35b56f();}))),this['disposeWithMe'](this[_0x4148ec(0x229)](this[_0x4148ec(0x232)][_0x4148ec(0x2c6)],()=>this[_0x4148ec(0x1ec)]['beforeCommandExecuted'](_0x2e64d6=>{const _0x41afb5=_0x4148ec;if(_0x2e64d6['id']!==_0x4efbdd['id'])return;let {unitId:_0x10aae0,tableId:_0x11e419,view:_0x1b906b,index:_0x529a18}=_0x2e64d6[_0x41afb5(0x2c5)],_0x4dfcf6=this[_0x41afb5(0x249)](_0x10aae0);if(!_0x4dfcf6)return;let _0x5be43b=_0x4dfcf6[_0x41afb5(0x23b)](_0x11e419);if(!_0x5be43b)return;let _0x349b4d={'base':_0x4dfcf6,'table':_0x5be43b,'view':_0x1b906b,'index':_0x529a18};if(this[_0x41afb5(0x1e4)](this[_0x41afb5(0x232)][_0x41afb5(0x2c6)],_0x349b4d),_0x349b4d[_0x41afb5(0x1af)])throw new _0x35b56f();}))),this[_0x4148ec(0x18f)](this[_0x4148ec(0x229)](this['Event']['BeforeBaseTableCellValueChange'],()=>this[_0x4148ec(0x1ec)][_0x4148ec(0x2cb)](_0x4fd84a=>{const _0x55782a=_0x4148ec;if(_0x4fd84a['id']!==_0x3a32fc['id'])return;let {unitId:_0x1f119f,tableId:_0x222fef,recordId:_0x14aec8,fieldId:_0x328bc3,value:_0x4c6b2a}=_0x4fd84a[_0x55782a(0x2c5)],_0x1aaf40=this[_0x55782a(0x249)](_0x1f119f);if(!_0x1aaf40)return;let _0x5038fd=_0x1aaf40['getTableById'](_0x222fef);if(!_0x5038fd)return;let _0x16040e=_0x5038fd['getFieldById'](_0x328bc3);if(!_0x16040e)return;let _0x25a38b=_0x5038fd[_0x55782a(0x185)](_0x14aec8);if(!_0x25a38b)return;let _0x1d8e14={'base':_0x1aaf40,'table':_0x5038fd,'field':_0x16040e,'record':_0x25a38b,'value':_0x4c6b2a};if(this[_0x55782a(0x1e4)](this[_0x55782a(0x232)][_0x55782a(0x1f5)],_0x1d8e14),_0x1d8e14['cancel'])throw new _0x35b56f();})));}[_0x6a5b69(0x170)](_0x26290c,_0x2b7b23){const _0x23694f=_0x6a5b69;let _0x2757bb=this['getBase'](_0x26290c),_0x1e6019=_0x2757bb==null?void 0x0:_0x2757bb[_0x23694f(0x23b)](_0x2b7b23);return _0x2757bb&&_0x1e6019?{'base':_0x2757bb,'table':_0x1e6019}:null;}[_0x6a5b69(0x265)](_0x4d503f,_0x510759,_0x2725cb,_0x2469e3){const _0x24f333=_0x6a5b69;if(!_0x2725cb[_0x24f333(0x273)])return;let _0xc429b6={'base':_0x4d503f,'table':_0x510759,'changes':_0x2725cb,'source':_0x2469e3};if(this[_0x24f333(0x1e4)](this[_0x24f333(0x232)][_0x24f333(0x247)],_0xc429b6),_0xc429b6['cancel'])throw new _0x35b56f();}};function $(_0x415add,_0x539a67){const _0x93853b=_0x6a5b69;return _0x415add['id']===_0x539a67['id']&&_0x415add[_0x93853b(0x2c5)]!==void 0x0;}_0x61ceef[_0x6a5b69(0x1f9)](Et);var Dt=class extends _0x21148e{get[_0x6a5b69(0x28a)](){return _0x1dcf64;}get[_0x6a5b69(0x1a0)](){return _0x4157c8;}get['BaseFilterOperator'](){return _0x394202;}get[_0x6a5b69(0x248)](){return ot;}get['BaseViewType'](){return _0x144585;}get[_0x6a5b69(0x218)](){return _0x44652a;}get[_0x6a5b69(0x22d)](){return _0x3f8d13;}get[_0x6a5b69(0x231)](){return _0x206636;}get['BaseSortDirection'](){return _0x35c88d;}get['BaseEventSource'](){return _0x43f637;}get[_0x6a5b69(0x194)](){return _0x53ea69;}get[_0x6a5b69(0x2a2)](){return _0x549f37;}get[_0x6a5b69(0x1d1)](){return _0x546818;}};_0x21148e[_0x6a5b69(0x1f9)](Dt);var Ot=class extends _0xf4815a{get['BaseTableCreated'](){const _0x4e4800=_0x6a5b69;return _0x4e4800(0x1e7);}get[_0x6a5b69(0x283)](){const _0x3820bf=_0x6a5b69;return _0x3820bf(0x283);}get[_0x6a5b69(0x1fc)](){return'BaseTableFieldCreated';}get[_0x6a5b69(0x245)](){const _0x1acf45=_0x6a5b69;return _0x1acf45(0x245);}get[_0x6a5b69(0x246)](){const _0x175575=_0x6a5b69;return _0x175575(0x246);}get[_0x6a5b69(0x276)](){const _0x51f543=_0x6a5b69;return _0x51f543(0x276);}get[_0x6a5b69(0x2c4)](){const _0x841e19=_0x6a5b69;return _0x841e19(0x2c4);}get[_0x6a5b69(0x2c6)](){const _0x35d1c1=_0x6a5b69;return _0x35d1c1(0x2c6);}get[_0x6a5b69(0x2a1)](){const _0x4cafb6=_0x6a5b69;return _0x4cafb6(0x2a1);}get['BeforeBaseTableCellValueChange'](){const _0x3b1310=_0x6a5b69;return _0x3b1310(0x1f5);}get[_0x6a5b69(0x1e6)](){return'BaseHierarchyChanged';}get['BeforeBaseHierarchyChange'](){const _0x500a9e=_0x6a5b69;return _0x500a9e(0x247);}};_0xf4815a['extend'](Ot);function _0x1896(_0x2d5065,_0x504d52){_0x2d5065=_0x2d5065-0x166;const _0x37f6c3=_0x37f6();let _0x189625=_0x37f6c3[_0x2d5065];return _0x189625;}export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};