@univerjs-pro/bases 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/commands/commands/validate-base-formula.command.d.ts +8 -0
  65. package/lib/types/controllers/base-formula-calculation.controller.d.ts +1 -0
  66. package/lib/types/facade/f-base.d.ts +21 -7
  67. package/lib/types/facade/f-enum.d.ts +2 -1
  68. package/lib/types/facade/f-table.d.ts +47 -7
  69. package/lib/types/index.d.ts +6 -0
  70. package/lib/types/models/base-table-name.d.ts +8 -0
  71. package/lib/types/ot/json1-op-factory.d.ts +1 -1
  72. package/lib/types/services/base-formula.service.d.ts +2 -23
  73. package/lib/umd/facade.js +1 -1
  74. package/lib/umd/index.js +1 -1
  75. package/lib/umd/locale/ar-SA.js +1 -1
  76. package/lib/umd/locale/ca-ES.js +1 -1
  77. package/lib/umd/locale/de-DE.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/es-ES.js +1 -1
  80. package/lib/umd/locale/fa-IR.js +1 -1
  81. package/lib/umd/locale/fr-FR.js +1 -1
  82. package/lib/umd/locale/id-ID.js +1 -1
  83. package/lib/umd/locale/it-IT.js +1 -1
  84. package/lib/umd/locale/ja-JP.js +1 -1
  85. package/lib/umd/locale/ko-KR.js +1 -1
  86. package/lib/umd/locale/pl-PL.js +1 -1
  87. package/lib/umd/locale/pt-BR.js +1 -1
  88. package/lib/umd/locale/ru-RU.js +1 -1
  89. package/lib/umd/locale/sk-SK.js +1 -1
  90. package/lib/umd/locale/vi-VN.js +1 -1
  91. package/lib/umd/locale/zh-CN.js +1 -1
  92. package/lib/umd/locale/zh-HK.js +1 -1
  93. package/lib/umd/locale/zh-TW.js +1 -1
  94. package/package.json +8 -8
@@ -1 +1 @@
1
- const _0x4e93b4=_0x6599;(function(_0x57e720,_0x3213d8){const _0x4db50c=_0x6599,_0x419f6c=_0x57e720();while(!![]){try{const _0x340d4e=-parseInt(_0x4db50c(0xc4))/0x1*(-parseInt(_0x4db50c(0xc5))/0x2)+parseInt(_0x4db50c(0xb4))/0x3*(parseInt(_0x4db50c(0xd0))/0x4)+parseInt(_0x4db50c(0xc8))/0x5+-parseInt(_0x4db50c(0xbf))/0x6*(parseInt(_0x4db50c(0xb3))/0x7)+-parseInt(_0x4db50c(0xc1))/0x8*(-parseInt(_0x4db50c(0xc9))/0x9)+-parseInt(_0x4db50c(0xb9))/0xa*(parseInt(_0x4db50c(0xc6))/0xb)+-parseInt(_0x4db50c(0xbb))/0xc*(parseInt(_0x4db50c(0xb2))/0xd);if(_0x340d4e===_0x3213d8)break;else _0x419f6c['push'](_0x419f6c['shift']());}catch(_0x5e81bd){_0x419f6c['push'](_0x419f6c['shift']());}}}(_0x45d7,0xcf8a6));function _0x45d7(){const _0x2fa813=['甘特圖','更新儲存格','欄位類型無效','建立時間','13894470cUoHUi','建立人','92580HYkFHT','刪除欄位','電子郵件','更新人','4434ymqwdI','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','271448vWoNCt','看板需要可分組欄位','儲存格值無效','1FZDZWC','2021978ZqkUhV','11nPmoAb','甘特圖檢視需要開始和結束日期欄位','1878020fWRpYO','369mmtDiC','建立欄位','行事曆需要日期欄位','欄位標題不能為空','更新檢視設定','記錄\x20ID','更新時間','2016628pGCXFR','關聯記錄','刪除記錄','377dnKcaV','12530EFmDTU','6waZueI'];_0x45d7=function(){return _0x2fa813;};return _0x45d7();}function _0x6599(_0x4f97bd,_0x490219){_0x4f97bd=_0x4f97bd-0xb0;const _0x45d766=_0x45d7();let _0x6599dd=_0x45d766[_0x4f97bd];return _0x6599dd;}const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x4e93b4(0xbd),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x4e93b4(0xb0),'recordId':_0x4e93b4(0xce),'createdBy':_0x4e93b4(0xba),'updatedBy':_0x4e93b4(0xbe),'createdAt':_0x4e93b4(0xb8),'updatedAt':_0x4e93b4(0xcf),'summary':'彙總'},'fieldConfig':{'textPlaceholder':'輸入內容','linkPlaceholder':_0x4e93b4(0xc0)},'viewType':{'grid':'表格','kanban':'看板','calendar':'行事曆','gantt':_0x4e93b4(0xb5),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x4e93b4(0xcc),'invalidFieldType':_0x4e93b4(0xb7),'invalidCellValue':_0x4e93b4(0xc3),'invalidKanbanGroupField':_0x4e93b4(0xc2),'invalidCalendarDateField':_0x4e93b4(0xcb),'invalidGanttDateField':_0x4e93b4(0xc7)},'command':{'updateCell':_0x4e93b4(0xb6),'createField':_0x4e93b4(0xca),'deleteField':_0x4e93b4(0xbc),'createRecord':'建立記錄','deleteRecord':_0x4e93b4(0xb1),'updateViewConfig':_0x4e93b4(0xcd)}}};export{e as default};
1
+ const _0x255bf0=_0x13e3;function _0x13e3(_0x2bb874,_0x1bc49a){_0x2bb874=_0x2bb874-0x15d;const _0x54265a=_0x5426();let _0x13e3cb=_0x54265a[_0x2bb874];return _0x13e3cb;}(function(_0x3dfd1b,_0x4dde21){const _0x14468d=_0x13e3,_0x2dd4eb=_0x3dfd1b();while(!![]){try{const _0x1d5df0=-parseInt(_0x14468d(0x167))/0x1+-parseInt(_0x14468d(0x15f))/0x2*(-parseInt(_0x14468d(0x16a))/0x3)+parseInt(_0x14468d(0x173))/0x4*(parseInt(_0x14468d(0x174))/0x5)+-parseInt(_0x14468d(0x17a))/0x6*(parseInt(_0x14468d(0x16d))/0x7)+-parseInt(_0x14468d(0x175))/0x8+parseInt(_0x14468d(0x161))/0x9+-parseInt(_0x14468d(0x15d))/0xa*(parseInt(_0x14468d(0x177))/0xb);if(_0x1d5df0===_0x4dde21)break;else _0x2dd4eb['push'](_0x2dd4eb['shift']());}catch(_0x26f46c){_0x2dd4eb['push'](_0x2dd4eb['shift']());}}}(_0x5426,0x7fb79));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x255bf0(0x17e),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x255bf0(0x171),'email':_0x255bf0(0x166),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x255bf0(0x160),'recordId':_0x255bf0(0x172),'createdBy':'建立人','updatedBy':_0x255bf0(0x16b),'createdAt':_0x255bf0(0x168),'updatedAt':_0x255bf0(0x162),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x255bf0(0x17d),'linkPlaceholder':_0x255bf0(0x15e)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x255bf0(0x17c),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':_0x255bf0(0x178),'invalidFieldType':_0x255bf0(0x179),'invalidCellValue':_0x255bf0(0x17b),'invalidKanbanGroupField':_0x255bf0(0x16e),'invalidCalendarDateField':_0x255bf0(0x16c),'invalidGanttDateField':_0x255bf0(0x164)},'command':{'updateCell':_0x255bf0(0x170),'createField':_0x255bf0(0x176),'deleteField':_0x255bf0(0x169),'createRecord':_0x255bf0(0x16f),'deleteRecord':_0x255bf0(0x163),'updateViewConfig':_0x255bf0(0x165)}}};function _0x5426(){const _0x468180=['儲存格值無效','行事曆','輸入內容','核取方塊','690490AVUWvF','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','185854wBSMCf','關聯記錄','7090740LbcmVK','更新時間','刪除記錄','甘特圖檢視需要開始和結束日期欄位','更新檢視設定','電子郵件','736355GthQGp','建立時間','刪除欄位','21lqlJLj','更新人','行事曆需要日期欄位','1988nkuqav','看板需要可分組欄位','建立記錄','更新儲存格','電話號碼','記錄\x20ID','148kgMBFC','72845mciBAu','1208632YFkHoA','建立欄位','77iXOjFy','欄位標題不能為空','欄位類型無效','1764DqhMdZ'];_0x5426=function(){return _0x468180;};return _0x5426();}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x336728=_0x52e5;(function(_0x416124,_0x15ac91){const _0x216814=_0x52e5,_0x2f7389=_0x416124();while(!![]){try{const _0x3a70e3=-parseInt(_0x216814(0x289))/0x1*(parseInt(_0x216814(0x1be))/0x2)+-parseInt(_0x216814(0x17f))/0x3+parseInt(_0x216814(0x242))/0x4+-parseInt(_0x216814(0x226))/0x5+parseInt(_0x216814(0x202))/0x6+-parseInt(_0x216814(0x20d))/0x7+parseInt(_0x216814(0x294))/0x8*(parseInt(_0x216814(0x2ae))/0x9);if(_0x3a70e3===_0x15ac91)break;else _0x2f7389['push'](_0x2f7389['shift']());}catch(_0x19c6ec){_0x2f7389['push'](_0x2f7389['shift']());}}}(_0xcde0,0x71752));import{ApplyBaseJson1Mutation as _0x5374e3,BaseConditionalColorRuleUpdateType as _0x43286c,BaseEventSource as _0x4fe3fa,BaseHierarchyErrorCode as _0x3d171b,BatchCreateBaseRecordsCommand as _0x144dc8,BatchDeleteBaseRecordsCommand as _0x20826e,ChangeBaseFieldTypeCommand as _0x753b97,CreateBaseChildRecordCommand as _0x5567bd,CreateBaseFieldCommand as _0x1978a1,CreateBaseRecordCommand as _0x22871f,CreateBaseTableCommand as _0x3cc0d1,CreateBaseViewCommand as _0x338c3b,DeleteBaseFieldCommand as _0x41894a,DeleteBaseRecordCommand as _0x384f53,DeleteBaseTableCommand as _0x13a13d,DeleteBaseViewCommand as _0x5d89f8,DuplicateBaseRecordCommand as _0x39fd7f,IBaseProjectionService as _0x460976,MoveBaseFieldCommand as _0x167fd9,MoveBaseHierarchyRecordCommand as _0x241dc3,MoveBaseViewCommand as _0x265b4d,RenameBaseTableCommand as _0x83c0cd,RenameBaseViewCommand as _0x65495d,SetBaseNameCommand as _0x3a2e4a,SetBaseRangeValuesCommand as _0x26fb58,SetBaseRecordValuesCommand as _0x298aea,SetBaseTableHierarchyFieldCommand as _0x3d3845,SetBaseViewFieldOrderCommand as _0x245f1a,SetBaseViewFieldVisibleCommand as _0x113ed1,SetBaseViewFieldWidthCommand as _0x5bb362,SetBaseViewFilterCommand as _0x19bf5c,SetBaseViewGroupCommand as _0x36027b,SetBaseViewSortCommand as _0x411c97,UpdateBaseCellCommand as _0x54f164,UpdateBaseFieldCommand as _0x274ee3,UpdateBaseRecordOrderCommand as _0x3a8712,UpdateBaseViewConditionalColorRulesCommand as _0x3b1b6b,UpdateBaseViewConfigCommand as _0x3cd319,buildBaseHierarchyIndex as _0xdaf857,copyBaseTableSnapshot as _0x5e421d,ensureBaseTableCellLayout as _0x1696cb,getActiveBaseHierarchyFieldIds as _0x12eab2,getBaseCellValue as _0x2904a9,getBaseHierarchyDeletePromotions as _0x3282d7,getRecordLinkFieldConfig as _0x366eec,matchesBaseCondition as _0x5e33be,parseRecordLinkIds as _0x1e19fe,resolveBaseHierarchyFieldId as _0x2ee0b8,resolveBaseRangeHierarchyPatches as _0x34fccc,searchBaseTable as _0xa27dde,serializeRecordLinkIds as _0x4005a5,validateBaseHierarchyRecordCreations as _0x3e5dd7,validateBaseHierarchyRecordPatches as _0x568123,validateRecordLinkValue as _0x107ab8}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2b3441,BaseConditionalColorOperator as _0x4e80c8,BaseConditionalColorTarget as _0x46b2d8,BaseConditionalDateMode as _0xd4945d,BaseFieldType as _0x33d599,BaseFilterConjunction as _0x5f2ca0,BaseFilterOperator as _0xf6848f,BaseHierarchyInvalidReason as _0x1c2958,BaseRecordLinkRole as _0x523fee,BaseSortDirection as _0x4baab9,BaseViewType as _0x35b90a,CanceledError as _0x10ac7b,ICommandService as _0x2d81ac,IResourceLoaderService as _0x246509,ImageSourceType as _0x1a211c,Inject as _0x25f6bc,Injector as _0x442045,Tools as _0x5bb98a,UniverInstanceType as _0x874f24,createDefaultBaseTableSnapshot as _0x16a351,generateRandomId as _0x2bd9cf}from'@univerjs/core';import{FEnum as _0x530ba6,FEventName as _0x23c09b,FUniver as _0x7df423}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x46103d}from'@univerjs-pro/engine-formula';function F(_0x51c8be,_0x537c5e){return function(_0x577ffd,_0x3ee880){_0x537c5e(_0x577ffd,_0x3ee880,_0x51c8be);};}function I(_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425){const _0x1bd441=_0x52e5;var _0x57cb92=arguments[_0x1bd441(0x1b5)],_0x2fa42e=_0x57cb92<0x3?_0x218778:_0x4f7425===null?_0x4f7425=Object['getOwnPropertyDescriptor'](_0x218778,_0x4e1bc4):_0x4f7425,_0x3926bf;if(typeof Reflect==_0x1bd441(0x21a)&&typeof Reflect['decorate']==_0x1bd441(0x288))_0x2fa42e=Reflect['decorate'](_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425);else{for(var _0x385c81=_0x3f6a3c[_0x1bd441(0x1b5)]-0x1;_0x385c81>=0x0;_0x385c81--)(_0x3926bf=_0x3f6a3c[_0x385c81])&&(_0x2fa42e=(_0x57cb92<0x3?_0x3926bf(_0x2fa42e):_0x57cb92>0x3?_0x3926bf(_0x218778,_0x4e1bc4,_0x2fa42e):_0x3926bf(_0x218778,_0x4e1bc4))||_0x2fa42e);}return _0x57cb92>0x3&&_0x2fa42e&&Object[_0x1bd441(0x203)](_0x218778,_0x4e1bc4,_0x2fa42e),_0x2fa42e;}function _0xcde0(){const _0xc184eb=['getSort','beforeCommandExecuted','offset','getName','Auto','_fireBeforeHierarchyChange','isFinite','limit',',\x20max\x20columns:\x20','Failed\x20to\x20delete\x20table\x20\x22','getSchema','_getFieldIds','Attachment','UUID','BeforeBaseTableRecordCreate','cancel','createBase','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','AND','moveField','invalid','duplicate',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getNumRows','unitId','getViews','deleteTable','getConditionalColorRules','syncExecuteCommand','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','BaseFilterOperator','BeforeBaseTableCreate','getRange','_injector','commonExtend','getTable','map','getFieldByName','setFilter',',\x20range:\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.',':\x20expected\x20an\x20object.','_getHierarchyEventContext','index','_getTable','primaryFieldId','getFieldById','search','addLinkedRecord','update','saveUnit','setName','2415840zLFjnl','defineProperty','deleteRecords','fieldOrder','getViewById','_commandService','Event','getTableById','trim','duplicateTable','getCurrentUnitOfType','4798283FktEtC','BaseSortDirection','_initBaseBeforeEvents','getUnitId','Failed\x20to\x20create\x20table\x20\x22','config','_recordId','hierarchyChanges','BeforeBaseHierarchyChange','URL','getSnapshot','\x20exceeds\x20range\x20size\x20','_collectDescendantIds','object','getVisibleFields','BaseTableCreated','getLinkedRecordIds','getProjection','getBases','BaseTableCellValueChanged','fieldSettings','fieldIds','BeforeBaseTableCellValueChange','_tableId','_viewId','4231720TKZEWs','[FRecord]:\x20record\x20\x22','direction','getRecordById','rules','move','parentByRecordId','orderedRecordIds','disposeWithMe','getRow','fireEvent','call','caseSensitive','_range','localeCompare','setGroup','BaseConditionalDateMode','_initBaseAfterEvents','getParent','BaseTableViewCreated','getId','params','table','endRow','Set','getFields','setValue','deleteProperty','291912JYbKIC','recordOrder','hasOwnProperty','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','registerEventHandler','_getRecord','_resourceLoaderService','setConditionalColorRules','records','addChild','_fieldId','includes','getDescendants','getNumColumns','visibleCardFieldIds','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','find','setParent','startColumn','Failed\x20to\x20add\x20records','getTableId','width','deepClone','RecordId','_writeFormulaExternalReferences','BASE64','[FBaseRange]:\x20values\x20size\x20','getField','_resolveRecordIds','Failed\x20to\x20add\x20field\x20\x22','slice','type','Failed\x20to\x20create\x20view\x20\x22','BeforeBaseTableFieldCreate','\x22:\x20expected\x20an\x20array.','Date','mimeType','indexOf','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','base','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','push','getFieldSettings','BaseTableRecordCreated','isReadonly','Formula','fields','getType','description','Duplicate\x20Base\x20field\x20name:\x20','setHierarchyField','Gallery','BeforeBaseTableViewCreate','setValues','setConfig','createInstance','getDataRange','some','view','_table','BaseFilterConjunction','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Clear','tableId','setDefaultValue','getValues','number','fromEntries',':\x20\x22','field','function','146469LqAIVu','insertTable','Failed\x20to\x20duplicate\x20table\x20\x22','views','conditions','hidden','conditionalColoring','queryRecords','Grid','primaryFieldName','getHierarchyFieldId','42928flnYSZ','BaseHierarchyChanged','reason','\x20Copy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','\x22\x20has\x20invalid\x20config.','sourceType','addRecords','Kanban','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','_projectionService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','save','getActiveBase','Name','getBase','flatMap','deleteConditionalColorRule','createdAt','setSort','\x22\x20does\x20not\x20exist.','data:','from','values','subtreeHeightByRecordId','_getHierarchyIndex','4491NDEuXi','setLinkedRecordIds',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','Calendar','UNIVER_BASE','test','_getField','_inject','Facade','getTables','\x22\x20must\x20be\x20a\x20non-empty\x20string.','parentRecordId','2151930wBZgze','BaseFieldType','multiple','clearConditionalColorRules','_getView','startsWith','_base','getAncestors','updateConfig','_getRecordLinkField','tables','source','rowId','BaseConditionalColorOperator','matches','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','RecordLink','recordId','name','getConfig','getFilter','addRecord','prototype','getPrimaryField','viewOrder','getTableByName','operator','getGroup','get','BaseConditionalColorTarget','fromCollab','every','getAllUnitsForType','now','max','valid','filter','createUnit','startRow','createView','childrenByParentId','getValue','setFieldVisible','isArray','getDescription','orderKey','tableOrder','viewId','externalReferences','_univerInstanceService','endColumn','Remote','_assertInBounds','value','length','notMatches','updatedAt','url','getRecords','record','Gantt','warn','BaseViewType','6FhQRnG','delete','[FRecord]:\x20invalid\x20RecordLink\x20value.','onCommandExecuted','BaseTableFieldCreated','fieldId','[FField]:\x20field\x20\x22','fieldKey','_initialize','sort','auto','string','changeType','rows','afterFieldId','system'];_0xcde0=function(){return _0xc184eb;};return _0xcde0();}let L=class{constructor(_0x4e2fb4,_0x1372c7,_0x348dee,_0x38eac8){const _0x21fddb=_0x52e5;this[_0x21fddb(0x185)]=_0x4e2fb4,this[_0x21fddb(0x27d)]=_0x1372c7,this[_0x21fddb(0x24c)]=_0x348dee,this[_0x21fddb(0x207)]=_0x38eac8;}[_0x336728(0x23a)](){const _0x1e1b3a=_0x336728;return this[_0x1e1b3a(0x24c)];}[_0x336728(0x25d)](){const _0x11b820=_0x336728;return this[_0x11b820(0x2b4)]();}[_0x336728(0x1d1)](){const _0x40f0b4=_0x336728;return this[_0x40f0b4(0x2b4)]()[_0x40f0b4(0x191)];}[_0x336728(0x271)](){const _0x499f5f=_0x336728;return this[_0x499f5f(0x2b4)]()['type'];}[_0x336728(0x192)](){const _0x405780=_0x336728;return this['_getField']()[_0x405780(0x212)];}['getDefaultValue'](){const _0x3855eb=_0x336728;return this[_0x3855eb(0x2b4)]()['defaultValue'];}[_0x336728(0x1ab)](){const _0x551eb5=_0x336728;return this[_0x551eb5(0x2b4)]()[_0x551eb5(0x272)];}[_0x336728(0x26e)](){const _0xb210e4=_0x336728;return!!this[_0xb210e4(0x2b4)]()['readonly'];}[_0x336728(0x201)](_0x309d6b){const _0x5711f5=_0x336728;return this[_0x5711f5(0x1ff)]({'name':_0x309d6b});}[_0x336728(0x278)](_0x2f88f4,_0x22bfd6){const _0x2db325=_0x336728;return this[_0x2db325(0x1ff)]({'config':_0x2f88f4},_0x22bfd6);}[_0x336728(0x282)](_0x4b0246){const _0x557ad1=_0x336728;return this[_0x557ad1(0x1ff)]({'defaultValue':_0x4b0246});}[_0x336728(0x1ff)](_0x49159b,_0x1a0b7d){const _0x437828=_0x336728;let _0x1374c0=this[_0x437828(0x2b4)]()[_0x437828(0x261)];return(_0x49159b[_0x437828(0x261)]??_0x1374c0)===_0x33d599['Formula']&&(Object[_0x437828(0x195)][_0x437828(0x244)][_0x437828(0x231)](_0x49159b,_0x437828(0x212))||_0x49159b['type']===_0x33d599[_0x437828(0x26f)])&&!this[_0x437828(0x25a)](_0x1a0b7d)?!0x1:this['_commandService'][_0x437828(0x1ea)](_0x274ee3['id'],{'unitId':this['_base'][_0x437828(0x23a)](),'tableId':this[_0x437828(0x27d)][_0x437828(0x23a)](),'fieldId':this['_fieldId'],'patch':_0x49159b});}[_0x336728(0x1ca)](_0x32ec0a,_0x5d06a9={},_0x49e791){const _0x292a26=_0x336728;return _0x32ec0a===_0x33d599[_0x292a26(0x26f)]&&!this[_0x292a26(0x25a)](_0x49e791)?!0x1:this[_0x292a26(0x207)][_0x292a26(0x1ea)](_0x753b97['id'],{'unitId':this[_0x292a26(0x185)][_0x292a26(0x23a)](),'tableId':this[_0x292a26(0x27d)][_0x292a26(0x23a)](),'fieldId':this[_0x292a26(0x24c)],'input':{'type':_0x32ec0a,'config':_0x5d06a9}});}[_0x336728(0x1bf)](){const _0x17d55a=_0x336728;return this[_0x17d55a(0x207)]['syncExecuteCommand'](_0x41894a['id'],{'unitId':this[_0x17d55a(0x185)]['getId'](),'tableId':this[_0x17d55a(0x27d)]['getId'](),'fieldId':this[_0x17d55a(0x24c)]});}['move'](_0x133438){const _0x454965=_0x336728;return this[_0x454965(0x207)][_0x454965(0x1ea)](_0x167fd9['id'],{'unitId':this[_0x454965(0x185)]['getId'](),'tableId':this[_0x454965(0x27d)][_0x454965(0x23a)](),'fieldId':this[_0x454965(0x24c)],'target':_0x133438});}[_0x336728(0x2b4)](){const _0x2302cc=_0x336728;let _0x34d8e3=this[_0x2302cc(0x27d)]['getTable']()[_0x2302cc(0x270)][this[_0x2302cc(0x24c)]];if(!_0x34d8e3)throw Error(_0x2302cc(0x1c4)+this['_fieldId']+_0x2302cc(0x2a8));return _0x34d8e3;}[_0x336728(0x25a)](_0x5945ee){const _0x29896b=_0x336728;if(!_0x5945ee||!Array[_0x29896b(0x1aa)](_0x5945ee[_0x29896b(0x1af)]))return console[_0x29896b(0x1bc)](_0x29896b(0x1df)),!0x1;if(_0x5945ee[_0x29896b(0x1af)][_0x29896b(0x1b5)]===0x0)return!0x0;let _0x559b67=this[_0x29896b(0x207)][_0x29896b(0x1ea)](_0x46103d['id'],{'unitId':this[_0x29896b(0x185)]['getId'](),'references':_0x5945ee[_0x29896b(0x1af)]});return _0x559b67||console[_0x29896b(0x1bc)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x559b67;}};L=I([F(0x3,_0x2d81ac)],L);let R=function(_0x3a51bd){const _0x570dbd=_0x336728;return _0x3a51bd['Id']='id',_0x3a51bd[_0x570dbd(0x2a2)]='name',_0x3a51bd[_0x570dbd(0x1d2)]=_0x570dbd(0x1c8),_0x3a51bd;}({});function z(_0x55e82c){const _0x39324e=_0x336728;return!!(_0x55e82c&&_0x55e82c[_0x39324e(0x1cd)]!==!0x0&&_0x55e82c[_0x39324e(0x261)]!==_0x33d599[_0x39324e(0x259)]);}function B(_0x27b8c0,_0x36d804,_0x495ca0='id'){if(!_0x36d804)return{};let _0xaa68e9={};return Object['entries'](_0x36d804)['forEach'](([_0x9d5a2e,_0x9d0599])=>{let _0x3b2ef3=H(_0x27b8c0,_0x9d5a2e,_0x495ca0);_0xaa68e9[_0x3b2ef3]=V(_0x27b8c0['fields'][_0x3b2ef3],_0x9d0599);}),_0xaa68e9;}function V(_0x2763bb,_0xbfab5d){const _0x1e7628=_0x336728;if((_0x2763bb==null?void 0x0:_0x2763bb[_0x1e7628(0x261)])!==_0x33d599[_0x1e7628(0x1da)]||_0xbfab5d==null)return _0xbfab5d;if(!Array[_0x1e7628(0x1aa)](_0xbfab5d))throw TypeError(_0x1e7628(0x29d)+_0x2763bb[_0x1e7628(0x191)]+_0x1e7628(0x264));return _0xbfab5d[_0x1e7628(0x1f2)]((_0x4dac29,_0x20b64a)=>We(_0x2763bb,_0x4dac29,_0x20b64a));}function H(_0x4f8a7a,_0x3b45e2,_0x25113f){const _0x10faa2=_0x336728;if(_0x25113f==='id'||_0x25113f===_0x10faa2(0x1c8)&&_0x4f8a7a['fields'][_0x3b45e2])return _0x3b45e2;let _0xdb01f4=Object['values'](_0x4f8a7a[_0x10faa2(0x270)])[_0x10faa2(0x1a3)](_0x2a7aad=>_0x2a7aad[_0x10faa2(0x191)]===_0x3b45e2);if(_0xdb01f4[_0x10faa2(0x1b5)]===0x1)return _0xdb01f4[0x0]['id'];throw _0xdb01f4['length']>0x1?Error(_0x10faa2(0x273)+_0x3b45e2):Error('Base\x20field\x20not\x20found:\x20'+_0x3b45e2);}function We(_0x1ccb83,_0x4bfe73,_0x5454f2){const _0x330d93=_0x336728;let _0xc735b6='Invalid\x20attachment\x20at\x20index\x20'+_0x5454f2+'\x20for\x20field\x20\x22'+_0x1ccb83[_0x330d93(0x191)]+'\x22';if(!Ke(_0x4bfe73))throw TypeError(_0xc735b6+_0x330d93(0x1f7));if(_0x330d93(0x1b8)in _0x4bfe73)throw TypeError(_0xc735b6+_0x330d93(0x2b0));if('type'in _0x4bfe73)throw TypeError(_0xc735b6+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x5f5654=U(_0x4bfe73['id'],_0xc735b6,'id'),_0x18e2d9=U(_0x4bfe73[_0x330d93(0x191)],_0xc735b6,_0x330d93(0x191)),_0x42a205=U(_0x4bfe73[_0x330d93(0x18a)],_0xc735b6,_0x330d93(0x18a));return{'id':_0x5f5654,'name':_0x18e2d9,'source':_0x42a205,'sourceType':Ge(_0x4bfe73[_0x330d93(0x29a)],_0x42a205,_0xc735b6),...W(_0x4bfe73,_0x330d93(0x266),_0xc735b6),...G(_0x4bfe73,'size',_0xc735b6),...G(_0x4bfe73,_0x330d93(0x257),_0xc735b6),...G(_0x4bfe73,'height',_0xc735b6),...W(_0x4bfe73,'thumbnail',_0xc735b6)};}function Ge(_0x13210a,_0x4c5fb5,_0x218305){const _0x5d852e=_0x336728;if(_0x13210a==null)return _0x4c5fb5[_0x5d852e(0x184)](_0x5d852e(0x2a9))?_0x1a211c[_0x5d852e(0x25b)]:_0x1a211c[_0x5d852e(0x216)];if(_0x13210a===_0x1a211c[_0x5d852e(0x216)]||_0x13210a===_0x1a211c[_0x5d852e(0x1db)]||_0x13210a===_0x1a211c[_0x5d852e(0x25b)])return _0x13210a;throw TypeError(_0x218305+_0x5d852e(0x1e4));}function U(_0x294c8a,_0x11ed20,_0x49c400){const _0x3774de=_0x336728;if(typeof _0x294c8a!='string'||!_0x294c8a[_0x3774de(0x20a)]())throw TypeError(_0x11ed20+':\x20\x22'+_0x49c400+_0x3774de(0x17d));return _0x294c8a;}function W(_0x5ccef6,_0x22dd0c,_0x3e7b19){const _0x377e2a=_0x336728;let _0x207520=_0x5ccef6[_0x22dd0c];if(_0x207520==null)return{};if(typeof _0x207520!='string'||!_0x207520[_0x377e2a(0x20a)]())throw TypeError(_0x3e7b19+_0x377e2a(0x286)+_0x22dd0c+_0x377e2a(0x1f6));return{[_0x22dd0c]:_0x207520};}function G(_0x56b86f,_0x36faad,_0x3a4177){const _0x3b7ade=_0x336728;let _0x152e9a=_0x56b86f[_0x36faad];if(_0x152e9a==null)return{};if(typeof _0x152e9a!=_0x3b7ade(0x284)||!Number[_0x3b7ade(0x1d4)](_0x152e9a)||_0x152e9a<0x0)throw TypeError(_0x3a4177+_0x3b7ade(0x286)+_0x36faad+_0x3b7ade(0x26a));return{[_0x36faad]:_0x152e9a};}function Ke(_0x50ad13){const _0x4aafcc=_0x336728;return typeof _0x50ad13==_0x4aafcc(0x21a)&&!!_0x50ad13&&!Array[_0x4aafcc(0x1aa)](_0x50ad13);}var K;let q=K=class{constructor(_0x2797d9,_0x2e7bb7,_0x198cf8,_0x471d86,_0x490b31){const _0x44fd88=_0x336728;this['_base']=_0x2797d9,this[_0x44fd88(0x27d)]=_0x2e7bb7,this[_0x44fd88(0x233)]=_0x198cf8,this['_inject']=_0x471d86,this[_0x44fd88(0x207)]=_0x490b31,this[_0x44fd88(0x1b3)]();}['getBaseId'](){const _0x38d883=_0x336728;return this[_0x38d883(0x185)][_0x38d883(0x23a)]();}[_0x336728(0x256)](){const _0x15ed3a=_0x336728;return this[_0x15ed3a(0x27d)][_0x15ed3a(0x23a)]();}[_0x336728(0x1ee)](){const _0x426107=_0x336728;return{...this[_0x426107(0x233)]};}[_0x336728(0x22f)](){const _0x3a6811=_0x336728;return this[_0x3a6811(0x233)][_0x3a6811(0x1a5)];}['getColumn'](){const _0x4c6e6d=_0x336728;return this['_range'][_0x4c6e6d(0x254)];}[_0x336728(0x1e5)](){const _0xe06983=_0x336728;return this['_range'][_0xe06983(0x23d)]-this[_0xe06983(0x233)][_0xe06983(0x1a5)]+0x1;}[_0x336728(0x24f)](){const _0x1c3293=_0x336728;return this[_0x1c3293(0x233)][_0x1c3293(0x1b1)]-this['_range'][_0x1c3293(0x254)]+0x1;}[_0x336728(0x283)](){const _0x20501c=_0x336728;let _0x451523=this['_getTable'](),_0x2a3c0d=this[_0x20501c(0x1d9)](_0x451523),_0x55b023=[];for(let _0x483194=this[_0x20501c(0x233)][_0x20501c(0x1a5)];_0x483194<=this[_0x20501c(0x233)][_0x20501c(0x23d)];_0x483194++){var _0x277f0a;let _0x4eb6c0=(_0x277f0a=_0x451523[_0x20501c(0x18b)])==null?void 0x0:_0x277f0a[_0x483194],_0x5aeb43=[];for(let _0x576f90=this[_0x20501c(0x233)]['startColumn'];_0x576f90<=this[_0x20501c(0x233)][_0x20501c(0x1b1)];_0x576f90++){let _0x3f51d8=_0x2a3c0d[_0x576f90];_0x5aeb43['push'](_0x4eb6c0&&_0x3f51d8?_0x2904a9(_0x451523,_0x4eb6c0,_0x3f51d8):null);}_0x55b023['push'](_0x5aeb43);}return _0x55b023;}[_0x336728(0x1a8)](){const _0x5ecda4=_0x336728;var _0x2fd912;return((_0x2fd912=this[_0x5ecda4(0x283)]()[0x0])==null?void 0x0:_0x2fd912[0x0])??null;}[_0x336728(0x240)](_0x239c6c){const _0x238357=_0x336728;return this[_0x238357(0x277)]([[_0x239c6c]]);}['setValues'](_0x2e0a04){const _0x4b1626=_0x336728;let _0x38b4f8=this['getNumRows'](),_0x3dfea3=this[_0x4b1626(0x24f)]();if(_0x2e0a04['length']>_0x38b4f8||_0x2e0a04[_0x4b1626(0x27b)](_0x1b0422=>_0x1b0422[_0x4b1626(0x1b5)]>_0x3dfea3)){var _0x11a10b;throw Error(_0x4b1626(0x25c)+_0x2e0a04[_0x4b1626(0x1b5)]+'x'+(((_0x11a10b=_0x2e0a04[0x0])==null?void 0x0:_0x11a10b[_0x4b1626(0x1b5)])??0x0)+_0x4b1626(0x218)+_0x38b4f8+'x'+_0x3dfea3+'.');}let _0x30c32a=this['_getTable'](),_0x5062e2=this[_0x4b1626(0x1d9)](_0x30c32a),_0x23b380=_0x2e0a04[_0x4b1626(0x2a4)]((_0x377079,_0x1dbf0a)=>_0x377079[_0x4b1626(0x1f2)]((_0x5b8280,_0x2c9f7a)=>{const _0x17d1c4=_0x4b1626;var _0x2fbbc9;let _0x3fcc3e=this['_range'][_0x17d1c4(0x1a5)]+_0x1dbf0a,_0x2c0716=_0x5062e2[this[_0x17d1c4(0x233)][_0x17d1c4(0x254)]+_0x2c9f7a],_0x342631=(_0x2fbbc9=_0x30c32a[_0x17d1c4(0x18b)])==null?void 0x0:_0x2fbbc9[_0x3fcc3e];if(!_0x2c0716||!_0x342631)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x342631,'fieldId':_0x2c0716,'value':_0x5b8280};}));return this[_0x4b1626(0x207)][_0x4b1626(0x1ea)](_0x26fb58['id'],{'unitId':this[_0x4b1626(0x185)]['getId'](),'tableId':this[_0x4b1626(0x27d)][_0x4b1626(0x23a)](),'patches':_0x23b380,'source':_0x4fe3fa[_0x4b1626(0x2b6)]});}['clear'](){const _0xb1744f=_0x336728;return this[_0xb1744f(0x277)](Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x1e5)]()},()=>Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x24f)]()},()=>null)));}['offset'](_0xb6dff2,_0x14a086,_0x513fc1=this[_0x336728(0x1e5)](),_0x3d6aec=this[_0x336728(0x24f)]()){const _0xd6ec64=_0x336728;return this[_0xd6ec64(0x2b5)][_0xd6ec64(0x279)](K,this['_base'],this[_0xd6ec64(0x27d)],{'startRow':this[_0xd6ec64(0x233)][_0xd6ec64(0x1a5)]+_0xb6dff2,'startColumn':this['_range'][_0xd6ec64(0x254)]+_0x14a086,'endRow':this[_0xd6ec64(0x233)]['startRow']+_0xb6dff2+_0x513fc1-0x1,'endColumn':this[_0xd6ec64(0x233)][_0xd6ec64(0x254)]+_0x14a086+_0x3d6aec-0x1},this['_inject']);}[_0x336728(0x1fa)](){const _0x4a3ae4=_0x336728;let _0x3f6d16=this[_0x4a3ae4(0x27d)][_0x4a3ae4(0x1f1)]();if(!_0x3f6d16)throw Error(_0x4a3ae4(0x298));return _0x1696cb(_0x3f6d16);}[_0x336728(0x1b3)](){const _0x22df94=_0x336728;var _0x284879;let _0x4484df=this['_getTable'](),_0x4e60c=((_0x284879=_0x4484df[_0x22df94(0x243)])==null?void 0x0:_0x284879[_0x22df94(0x1b5)])??0x0,_0x3fac47=this[_0x22df94(0x1d9)](_0x4484df)[_0x22df94(0x1b5)];if(this[_0x22df94(0x233)]['startRow']<0x0||this[_0x22df94(0x233)]['startColumn']<0x0||this[_0x22df94(0x233)]['endRow']<this[_0x22df94(0x233)]['startRow']||this[_0x22df94(0x233)][_0x22df94(0x1b1)]<this[_0x22df94(0x233)][_0x22df94(0x254)]||this[_0x22df94(0x233)]['endRow']>=Math[_0x22df94(0x1a1)](_0x4e60c,0x1)||this[_0x22df94(0x233)][_0x22df94(0x1b1)]>=Math[_0x22df94(0x1a1)](_0x3fac47,0x1))throw Error(_0x22df94(0x18e)+_0x4e60c+_0x22df94(0x1d6)+_0x3fac47+_0x22df94(0x1f5)+JSON['stringify'](this['_range'])+'.');}[_0x336728(0x1d9)](_0x23c909){const _0x22032a=_0x336728;return _0x23c909[_0x22032a(0x205)][_0x22032a(0x1a3)](_0x494663=>z(_0x23c909[_0x22032a(0x270)][_0x494663]));}};q=K=I([F(0x4,_0x2d81ac)],q);var J;let Y=J=class{constructor(_0x3064f7,_0x471e1f,_0x3a6a27,_0xb3f44c,_0x565e01){const _0x161f7c=_0x336728;this[_0x161f7c(0x185)]=_0x3064f7,this[_0x161f7c(0x27d)]=_0x471e1f,this[_0x161f7c(0x213)]=_0x3a6a27,this[_0x161f7c(0x2b5)]=_0xb3f44c,this['_commandService']=_0x565e01;}[_0x336728(0x23a)](){const _0x4a41fe=_0x336728;return this[_0x4a41fe(0x213)];}['getRecord'](){const _0x4cc80c=_0x336728;return{...this[_0x4cc80c(0x247)](),'values':this['getValues']()};}[_0x336728(0x1a8)](_0x144710){const _0x4ef753=_0x336728;return z(this[_0x4ef753(0x27d)][_0x4ef753(0x1f1)]()[_0x4ef753(0x270)][_0x144710])?this[_0x4ef753(0x247)]()['values'][_0x144710]??null:null;}[_0x336728(0x283)](){const _0x5720f2=_0x336728;let _0x25783d=this[_0x5720f2(0x27d)][_0x5720f2(0x1f1)]();return Object[_0x5720f2(0x285)](Object['entries'](this['_getRecord']()[_0x5720f2(0x2ab)])['filter'](([_0x2a3cb7])=>z(_0x25783d[_0x5720f2(0x270)][_0x2a3cb7])));}['setValue'](_0x5b070a,_0x1d523e){const _0x588582=_0x336728;let _0x3a8924=this[_0x588582(0x27d)][_0x588582(0x1f1)]()[_0x588582(0x270)][_0x5b070a];return this['_commandService'][_0x588582(0x1ea)](_0x54f164['id'],{'unitId':this[_0x588582(0x185)][_0x588582(0x23a)](),'tableId':this[_0x588582(0x27d)][_0x588582(0x23a)](),'recordId':this[_0x588582(0x213)],'fieldId':_0x5b070a,'value':V(_0x3a8924,_0x1d523e),'source':_0x4fe3fa[_0x588582(0x2b6)]});}['setAttachments'](_0x3adab5,_0x44dfdf){const _0x514e45=_0x336728;return this['setValue'](_0x3adab5,_0x44dfdf[_0x514e45(0x1f2)](_0xc90518=>({..._0xc90518})));}[_0x336728(0x277)](_0x41d2ee,_0x3596c0='id'){const _0x4bd61c=_0x336728;let _0x219587=this[_0x4bd61c(0x27d)]['getTable'](),_0x51f0fc=[{'recordId':this[_0x4bd61c(0x213)],'values':B(_0x219587,_0x41d2ee,_0x3596c0)}];return this[_0x4bd61c(0x207)][_0x4bd61c(0x1ea)](_0x298aea['id'],{'unitId':this[_0x4bd61c(0x185)]['getId'](),'tableId':this[_0x4bd61c(0x27d)][_0x4bd61c(0x23a)](),'patches':_0x51f0fc,'source':_0x4fe3fa[_0x4bd61c(0x2b6)]});}['delete'](){const _0x49f0cb=_0x336728;return this[_0x49f0cb(0x207)]['syncExecuteCommand'](_0x384f53['id'],{'unitId':this[_0x49f0cb(0x185)]['getId'](),'tableId':this['_table'][_0x49f0cb(0x23a)](),'recordId':this[_0x49f0cb(0x213)],'source':_0x4fe3fa[_0x49f0cb(0x2b6)]});}[_0x336728(0x1e3)](_0x39f7dd){const _0x236a01=_0x336728;let _0x5059a3={...this['_getRecord'](),..._0x39f7dd,'id':_0x2bd9cf(0x6)};_0x5059a3[_0x236a01(0x2ab)]={..._0x5059a3[_0x236a01(0x2ab)],..._0x39f7dd==null?void 0x0:_0x39f7dd['values']},Reflect[_0x236a01(0x241)](_0x5059a3[_0x236a01(0x2ab)],_0x2b3441);let _0x366d3e=Date[_0x236a01(0x1a0)]();if(_0x5059a3[_0x236a01(0x1ac)]||=''+_0x366d3e,_0x5059a3['createdAt']||=_0x366d3e,_0x5059a3[_0x236a01(0x1b7)]||=_0x366d3e,!this[_0x236a01(0x207)]['syncExecuteCommand'](_0x39fd7f['id'],{'unitId':this[_0x236a01(0x185)][_0x236a01(0x23a)](),'tableId':this[_0x236a01(0x27d)][_0x236a01(0x23a)](),'sourceRecordId':this[_0x236a01(0x213)],'record':_0x5059a3,'source':_0x4fe3fa[_0x236a01(0x2b6)]}))throw Error(_0x236a01(0x245)+this[_0x236a01(0x213)]+'\x22.');return this[_0x236a01(0x2b5)][_0x236a01(0x279)](J,this['_base'],this[_0x236a01(0x27d)],_0x5059a3['id'],this[_0x236a01(0x2b5)]);}['setOrderKey'](_0x3d9d31){const _0x1e89ce=_0x336728;return this[_0x1e89ce(0x207)][_0x1e89ce(0x1ea)](_0x3a8712['id'],{'unitId':this[_0x1e89ce(0x185)]['getId'](),'tableId':this['_table'][_0x1e89ce(0x23a)](),'recordId':this['_recordId'],'orderKey':_0x3d9d31});}['getLinkedRecordIds'](_0x5e8d78){let _0x233a60=this['_getRecordLinkField'](_0x5e8d78);return _0x1e19fe(this['getValue'](_0x233a60['id']));}[_0x336728(0x2af)](_0x45346b,_0x475340){const _0x167a8b=_0x336728;let _0x1a0a3c=this['_getRecordLinkField'](_0x45346b),_0x23ca70=_0x4005a5(_0x475340),_0x2e8af0=_0x107ab8(this[_0x167a8b(0x185)][_0x167a8b(0x2a3)]()[_0x167a8b(0x217)](),_0x1a0a3c,_0x23ca70);if(!_0x2e8af0[_0x167a8b(0x1a2)])throw Error(_0x2e8af0[_0x167a8b(0x296)]??_0x167a8b(0x1c0));return this[_0x167a8b(0x207)][_0x167a8b(0x1ea)](_0x54f164['id'],{'unitId':this[_0x167a8b(0x185)]['getId'](),'tableId':this[_0x167a8b(0x27d)][_0x167a8b(0x23a)](),'recordId':this[_0x167a8b(0x213)],'fieldId':_0x45346b,'value':_0x23ca70,'source':_0x4fe3fa[_0x167a8b(0x2b6)]});}[_0x336728(0x1fe)](_0x28ab5f,_0x52a9ad){const _0xc100=_0x336728;let _0x24639e=_0x366eec(this[_0xc100(0x188)](_0x28ab5f));if(!_0x24639e)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x28ab5f+_0xc100(0x299));let _0xfc5a94=this[_0xc100(0x21d)](_0x28ab5f);return _0x24639e[_0xc100(0x181)]&&_0xfc5a94[_0xc100(0x24d)](_0x52a9ad)?!0x0:this['setLinkedRecordIds'](_0x28ab5f,_0x24639e[_0xc100(0x181)]?[..._0xfc5a94,_0x52a9ad]:[_0x52a9ad]);}['removeLinkedRecord'](_0x24eb43,_0x4c8494){const _0x4b3b5d=_0x336728;let _0x37c997=this[_0x4b3b5d(0x21d)](_0x24eb43);return!_0x37c997[_0x4b3b5d(0x24d)](_0x4c8494)||this[_0x4b3b5d(0x2af)](_0x24eb43,_0x37c997[_0x4b3b5d(0x1a3)](_0x398e84=>_0x398e84!==_0x4c8494));}[_0x336728(0x238)](_0x59011c){const _0x125be7=_0x336728;let _0x536e7=this[_0x125be7(0x2ad)](_0x59011c)[_0x125be7(0x22c)][_0x125be7(0x19b)](this[_0x125be7(0x213)])??null;return _0x536e7?this[_0x125be7(0x27d)][_0x125be7(0x229)](_0x536e7):null;}['getChildren'](_0x3e0257){const _0x41fbbf=_0x336728;return(this['_getHierarchyIndex'](_0x3e0257)[_0x41fbbf(0x1a7)][_0x41fbbf(0x19b)](this[_0x41fbbf(0x213)])??[])[_0x41fbbf(0x2a4)](_0x4ca54b=>{const _0x46c286=_0x41fbbf;let _0x2db3a8=this[_0x46c286(0x27d)][_0x46c286(0x229)](_0x4ca54b);return _0x2db3a8?[_0x2db3a8]:[];});}[_0x336728(0x186)](_0x593157){const _0x5797d5=_0x336728;let _0x37ac8c=this[_0x5797d5(0x2ad)](_0x593157),_0x682111=[],_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)][_0x5797d5(0x19b)](this['_recordId'])??null;for(;_0xbb4614;){let _0x1f6179=this[_0x5797d5(0x27d)]['getRecordById'](_0xbb4614);_0x1f6179&&_0x682111['push'](_0x1f6179),_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)]['get'](_0xbb4614)??null;}return _0x682111;}[_0x336728(0x24e)](_0x2b1bc1){const _0x288d9d=_0x336728;let _0x5596c2=this[_0x288d9d(0x2ad)](_0x2b1bc1),_0xf66e60=_0x5596c2[_0x288d9d(0x22d)][_0x288d9d(0x267)](this['_recordId']),_0x40686b=_0x5596c2[_0x288d9d(0x2ac)]['has'](this[_0x288d9d(0x213)])?this[_0x288d9d(0x219)](_0x5596c2[_0x288d9d(0x1a7)],this[_0x288d9d(0x213)]):[];return _0xf66e60<0x0?[]:_0x40686b['flatMap'](_0x74b6b1=>{const _0x68da72=_0x288d9d;let _0x558ddc=this['_table'][_0x68da72(0x229)](_0x74b6b1);return _0x558ddc?[_0x558ddc]:[];});}[_0x336728(0x253)](_0x1b7c05,_0x5df818,_0x519de7){const _0x2944cf=_0x336728;return this[_0x2944cf(0x207)]['syncExecuteCommand'](_0x241dc3['id'],{'unitId':this[_0x2944cf(0x185)][_0x2944cf(0x23a)](),'tableId':this[_0x2944cf(0x27d)][_0x2944cf(0x23a)](),'fieldId':_0x1b7c05,'recordId':this[_0x2944cf(0x213)],'parentRecordId':_0x5df818,'orderKey':_0x519de7,'source':_0x4fe3fa['Facade']});}[_0x336728(0x24b)](_0x5a01e2,_0x3016b9,_0x59a168='id',_0x5e177e){const _0x5ae890=_0x336728;let _0x1a380c=this['_table'][_0x5ae890(0x1f1)](),_0x5a5b19=Date[_0x5ae890(0x1a0)](),_0x32fda4={..._0x5e177e,'id':_0x2bd9cf(0x6),'values':B(_0x1a380c,_0x3016b9,_0x59a168),'orderKey':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1ac)])||''+_0x5a5b19,'createdAt':(_0x5e177e==null?void 0x0:_0x5e177e['createdAt'])||_0x5a5b19,'updatedAt':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1b7)])||_0x5a5b19};if(!this[_0x5ae890(0x207)]['syncExecuteCommand'](_0x5567bd['id'],{'unitId':this[_0x5ae890(0x185)][_0x5ae890(0x23a)](),'tableId':this['_table'][_0x5ae890(0x23a)](),'fieldId':_0x5a01e2,'parentRecordId':this[_0x5ae890(0x213)],'record':_0x32fda4,'source':_0x4fe3fa[_0x5ae890(0x2b6)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5ae890(0x213)]+'\x22.');return this['_inject'][_0x5ae890(0x279)](J,this[_0x5ae890(0x185)],this[_0x5ae890(0x27d)],_0x32fda4['id'],this[_0x5ae890(0x2b5)]);}[_0x336728(0x2ad)](_0x176378){const _0x17fec3=_0x336728;return _0xdaf857(this[_0x17fec3(0x27d)]['getTable'](),_0x176378);}['_collectDescendantIds'](_0xc099e1,_0x20e468){let _0x31c498=[],_0x51364e=_0x29cb27=>{const _0x44eb36=_0x52e5;for(let _0x3cadeb of _0xc099e1[_0x44eb36(0x19b)](_0x29cb27)??[])_0x31c498[_0x44eb36(0x26b)](_0x3cadeb),_0x51364e(_0x3cadeb);};return _0x51364e(_0x20e468),_0x31c498;}[_0x336728(0x247)](){const _0x513e7f=_0x336728;let _0x994a1f=this[_0x513e7f(0x27d)]['getTable']()['records'][this[_0x513e7f(0x213)]];if(!_0x994a1f)throw Error(_0x513e7f(0x227)+this['_recordId']+_0x513e7f(0x2a8));return _0x994a1f;}[_0x336728(0x188)](_0x490015){const _0x1a7fde=_0x336728;let _0x651363=this['_table']['getTable']()[_0x1a7fde(0x270)][_0x490015];if(!_0x651363||_0x651363[_0x1a7fde(0x261)]!==_0x33d599[_0x1a7fde(0x18f)])throw Error('[FRecord]:\x20field\x20\x22'+_0x490015+_0x1a7fde(0x29f));return _0x651363;}};Y=J=I([F(0x4,_0x2d81ac)],Y);let X=class{constructor(_0x25934e,_0xf0f665,_0x4dfa9f,_0x5336c8,_0x5e2cf0,_0x3afd33){const _0x4fe8d7=_0x336728;this['_base']=_0x25934e,this['_table']=_0xf0f665,this[_0x4fe8d7(0x225)]=_0x4dfa9f,this[_0x4fe8d7(0x1ef)]=_0x5336c8,this['_commandService']=_0x5e2cf0,this[_0x4fe8d7(0x29e)]=_0x3afd33;}[_0x336728(0x23a)](){const _0x477aa1=_0x336728;return this[_0x477aa1(0x225)];}['getView'](){const _0x5a6b10=_0x336728;return this[_0x5a6b10(0x183)]();}[_0x336728(0x1d1)](){const _0xc9bdd=_0x336728;return this['_getView']()[_0xc9bdd(0x191)];}['getType'](){const _0x4aeaca=_0x336728;return this['_getView']()[_0x4aeaca(0x261)];}[_0x336728(0x201)](_0x5c1002){const _0x1c2968=_0x336728;return this[_0x1c2968(0x207)][_0x1c2968(0x1ea)](_0x65495d['id'],{'unitId':this[_0x1c2968(0x185)][_0x1c2968(0x23a)](),'tableId':this[_0x1c2968(0x27d)][_0x1c2968(0x23a)](),'viewId':this[_0x1c2968(0x225)],'name':_0x5c1002});}['getConfig'](){const _0x3e20f4=_0x336728;let _0x144ede=this[_0x3e20f4(0x271)](),_0x3e233a=this[_0x3e20f4(0x183)]()[_0x3e20f4(0x212)];switch(_0x144ede){case _0x35b90a[_0x3e20f4(0x291)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x29c)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x2b1)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x1bb)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x275)]:return _0x3e233a;default:return _0x3e233a;}}[_0x336728(0x187)](_0x474fe9){const _0x1f5ec2=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3cd319['id'],{'unitId':this[_0x1f5ec2(0x185)][_0x1f5ec2(0x23a)](),'tableId':this[_0x1f5ec2(0x27d)]['getId'](),'viewId':this[_0x1f5ec2(0x225)],'patch':_0x474fe9});}[_0x336728(0x1e9)](){const _0x248c93=_0x336728;var _0x6816cb;return _0x5bb98a[_0x248c93(0x258)](((_0x6816cb=this['_getView']()['config'][_0x248c93(0x28f)])==null?void 0x0:_0x6816cb[_0x248c93(0x22a)])??[]);}[_0x336728(0x249)](_0x59f4ee){const _0x758966=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3b1b6b['id'],{'unitId':this[_0x758966(0x185)][_0x758966(0x23a)](),'tableId':this[_0x758966(0x27d)][_0x758966(0x23a)](),'viewId':this['_viewId'],'type':_0x43286c[_0x758966(0x23e)],'rules':_0x59f4ee});}['addConditionalColorRule'](_0x2d74ed){const _0x37ee0f=_0x336728;return this['_commandService'][_0x37ee0f(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x37ee0f(0x185)]['getId'](),'tableId':this[_0x37ee0f(0x27d)][_0x37ee0f(0x23a)](),'viewId':this[_0x37ee0f(0x225)],'type':_0x43286c['Add'],'rule':_0x2d74ed});}[_0x336728(0x2a5)](_0x4ba19a){const _0x208b72=_0x336728;return this['_commandService'][_0x208b72(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x208b72(0x185)][_0x208b72(0x23a)](),'tableId':this[_0x208b72(0x27d)]['getId'](),'viewId':this[_0x208b72(0x225)],'type':_0x43286c['Delete'],'ruleId':_0x4ba19a});}[_0x336728(0x182)](){const _0x2a43a0=_0x336728;return this[_0x2a43a0(0x207)][_0x2a43a0(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x2a43a0(0x185)][_0x2a43a0(0x23a)](),'tableId':this[_0x2a43a0(0x27d)]['getId'](),'viewId':this[_0x2a43a0(0x225)],'type':_0x43286c[_0x2a43a0(0x280)]});}[_0x336728(0x193)](){const _0x2b94d2=_0x336728;return this[_0x2b94d2(0x183)]()[_0x2b94d2(0x1a3)]??null;}[_0x336728(0x1f4)](_0x34d574){const _0x27bc20=_0x336728;return this[_0x27bc20(0x207)]['syncExecuteCommand'](_0x19bf5c['id'],{'unitId':this[_0x27bc20(0x185)][_0x27bc20(0x23a)](),'tableId':this[_0x27bc20(0x27d)][_0x27bc20(0x23a)](),'viewId':this[_0x27bc20(0x225)],'filter':_0x34d574});}[_0x336728(0x1ce)](){const _0x1bc956=_0x336728;return this[_0x1bc956(0x183)]()[_0x1bc956(0x1c7)]??[];}[_0x336728(0x2a7)](_0x4b1be1){const _0x217727=_0x336728;return this[_0x217727(0x207)][_0x217727(0x1ea)](_0x411c97['id'],{'unitId':this[_0x217727(0x185)]['getId'](),'tableId':this[_0x217727(0x27d)][_0x217727(0x23a)](),'viewId':this[_0x217727(0x225)],'sort':_0x4b1be1});}[_0x336728(0x19a)](){const _0x3d173a=_0x336728;return this[_0x3d173a(0x183)]()['group']??[];}[_0x336728(0x235)](_0x2436cc){const _0x494227=_0x336728;return this[_0x494227(0x207)][_0x494227(0x1ea)](_0x36027b['id'],{'unitId':this[_0x494227(0x185)][_0x494227(0x23a)](),'tableId':this[_0x494227(0x27d)][_0x494227(0x23a)](),'viewId':this['_viewId'],'group':_0x2436cc});}[_0x336728(0x26c)](_0x1fe371){const _0x3b30b2=_0x336728;var _0x2ec6b3;return z(this[_0x3b30b2(0x27d)][_0x3b30b2(0x1f1)]()['fields'][_0x1fe371])?((_0x2ec6b3=this[_0x3b30b2(0x183)]()['fieldSettings'])==null?void 0x0:_0x2ec6b3[_0x1fe371])??{}:{};}[_0x336728(0x21b)](){const _0x4de605=_0x336728;let _0x33e39d=this['_table'][_0x4de605(0x1f1)](),_0x57b31d=this[_0x4de605(0x183)]();return(_0x57b31d['fieldOrder']??_0x33e39d['fieldOrder'])['filter'](_0x5ae757=>{const _0x4598a3=_0x4de605;var _0xd6f48d;let _0x28d751=_0x33e39d['fields'][_0x5ae757];return z(_0x28d751)&&!((_0xd6f48d=_0x57b31d[_0x4598a3(0x221)])!=null&&(_0xd6f48d=_0xd6f48d[_0x5ae757])!=null&&_0xd6f48d['hidden']);})[_0x4de605(0x1f2)](_0x4fc506=>this[_0x4de605(0x1ef)][_0x4de605(0x279)](L,this['_base'],this[_0x4de605(0x27d)],_0x4fc506));}[_0x336728(0x1a9)](_0x229d43,_0x50dab0){const _0x138dbb=_0x336728;return z(this[_0x138dbb(0x27d)][_0x138dbb(0x1f1)]()['fields'][_0x229d43])?this[_0x138dbb(0x207)][_0x138dbb(0x1ea)](_0x113ed1['id'],{'unitId':this[_0x138dbb(0x185)]['getId'](),'tableId':this[_0x138dbb(0x27d)]['getId'](),'viewId':this[_0x138dbb(0x225)],'fieldId':_0x229d43,'visible':_0x50dab0}):!0x1;}['setFieldWidth'](_0x57961c,_0x2edcf5){const _0x5a92a1=_0x336728;return z(this[_0x5a92a1(0x27d)]['getTable']()[_0x5a92a1(0x270)][_0x57961c])?this[_0x5a92a1(0x207)][_0x5a92a1(0x1ea)](_0x5bb362['id'],{'unitId':this[_0x5a92a1(0x185)][_0x5a92a1(0x23a)](),'tableId':this[_0x5a92a1(0x27d)][_0x5a92a1(0x23a)](),'viewId':this['_viewId'],'fieldId':_0x57961c,'width':_0x2edcf5}):!0x1;}[_0x336728(0x1e1)](_0x391da1,_0x1fffce){const _0x31f4b3=_0x336728;let _0x62411=this[_0x31f4b3(0x27d)][_0x31f4b3(0x1f1)](),_0x168606=_0x1fffce['beforeFieldId']??_0x1fffce[_0x31f4b3(0x1cc)];return!z(_0x62411[_0x31f4b3(0x270)][_0x391da1])||!_0x168606||!z(_0x62411[_0x31f4b3(0x270)][_0x168606])?!0x1:this['_commandService'][_0x31f4b3(0x1ea)](_0x245f1a['id'],{'unitId':this['_base'][_0x31f4b3(0x23a)](),'tableId':this['_table']['getId'](),'viewId':this[_0x31f4b3(0x225)],'fieldId':_0x391da1,'target':_0x1fffce});}[_0x336728(0x22b)](_0x1dfe21){const _0x2e33ef=_0x336728;return this[_0x2e33ef(0x207)]['syncExecuteCommand'](_0x265b4d['id'],{'unitId':this[_0x2e33ef(0x185)][_0x2e33ef(0x23a)](),'tableId':this[_0x2e33ef(0x27d)][_0x2e33ef(0x23a)](),'viewId':this[_0x2e33ef(0x225)],'target':_0x1dfe21});}[_0x336728(0x1bf)](){const _0x1f5881=_0x336728;return this['_commandService'][_0x1f5881(0x1ea)](_0x5d89f8['id'],{'unitId':this['_base'][_0x1f5881(0x23a)](),'tableId':this[_0x1f5881(0x27d)][_0x1f5881(0x23a)](),'viewId':this['_viewId']});}[_0x336728(0x21e)](){const _0x4147a4=_0x336728;return this[_0x4147a4(0x29e)][_0x4147a4(0x21e)](this[_0x4147a4(0x185)][_0x4147a4(0x2a3)]()['getSnapshot'](),this['_table'][_0x4147a4(0x23a)](),this[_0x4147a4(0x225)]);}['_getView'](){const _0x4830d5=_0x336728;let _0x31b139=this[_0x4830d5(0x27d)][_0x4830d5(0x1f1)]()[_0x4830d5(0x28c)][this[_0x4830d5(0x225)]];if(!_0x31b139)throw Error('[FView]:\x20view\x20\x22'+this[_0x4830d5(0x225)]+'\x22\x20does\x20not\x20exist.');return _0x31b139;}};X=I([F(0x4,_0x2d81ac),F(0x5,_0x460976)],X);let Z=class{constructor(_0x3c9271,_0x2fb831,_0xbaeec9,_0x2c91fc,_0x4732e4){const _0x48f981=_0x336728;this['_base']=_0x3c9271,this[_0x48f981(0x224)]=_0x2fb831,this['_injector']=_0xbaeec9,this[_0x48f981(0x207)]=_0x2c91fc,this[_0x48f981(0x29e)]=_0x4732e4;}[_0x336728(0x2a3)](){const _0x2db909=_0x336728;return this[_0x2db909(0x185)][_0x2db909(0x2a3)]();}[_0x336728(0x1f1)](){return this['_getTable']();}[_0x336728(0x23a)](){return this['_tableId'];}[_0x336728(0x293)](){const _0x58b9c9=_0x336728;return _0x2ee0b8(this[_0x58b9c9(0x1fa)]());}[_0x336728(0x274)](_0x4ee2cd){const _0x2983bf=_0x336728;return this[_0x2983bf(0x207)][_0x2983bf(0x1ea)](_0x3d3845['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2983bf(0x224)],'fieldId':_0x4ee2cd});}[_0x336728(0x1d1)](){const _0x244e8c=_0x336728;return this[_0x244e8c(0x1fa)]()[_0x244e8c(0x191)];}[_0x336728(0x201)](_0x1cf3ca){const _0x452829=_0x336728;return this[_0x452829(0x207)][_0x452829(0x1ea)](_0x83c0cd['id'],{'unitId':this[_0x452829(0x185)]['getId'](),'tableId':this[_0x452829(0x224)],'name':_0x1cf3ca});}[_0x336728(0x1fd)](_0x5e3f89,_0x4b20e5){const _0x8eafcd=_0x336728;let _0x389e01=this['_base']['getBase']()[_0x8eafcd(0x217)](),_0x5999bf=this['_getTable']();if(_0x4b20e5){let _0x4cee2e=this[_0x8eafcd(0x29e)][_0x8eafcd(0x21e)](_0x389e01,this[_0x8eafcd(0x224)],_0x4b20e5),_0x1b564e=_0x5999bf[_0x8eafcd(0x28c)][_0x4b20e5],_0x5a524b=_0x5e3f89[_0x8eafcd(0x222)]??et(_0x5999bf,_0x1b564e,_0x4cee2e),_0x3e1cff=_0x8eafcd(0x1cb)in _0x4cee2e&&Array['isArray'](_0x4cee2e[_0x8eafcd(0x1cb)])?_0x4cee2e[_0x8eafcd(0x1cb)]:[];return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x5a524b,'rows':_0x3e1cff});}let _0x40adbb=(_0x5999bf[_0x8eafcd(0x243)]?_0x5999bf[_0x8eafcd(0x243)][_0x8eafcd(0x1f2)](_0x263086=>_0x5999bf['records'][_0x263086]):Object['values'](_0x5999bf[_0x8eafcd(0x24a)])['sort']((_0x2c93ca,_0x5989f5)=>_0x2c93ca[_0x8eafcd(0x1ac)]['localeCompare'](_0x5989f5[_0x8eafcd(0x1ac)])))[_0x8eafcd(0x1a3)](_0x25786b=>_0x25786b)[_0x8eafcd(0x1f2)](_0x25f8a9=>({'recordId':_0x25f8a9['id'],'values':_0x25f8a9['values']})),_0x565326=_0x5e3f89[_0x8eafcd(0x222)]??_0x5999bf[_0x8eafcd(0x205)][_0x8eafcd(0x1a3)](_0x58c020=>z(_0x5999bf[_0x8eafcd(0x270)][_0x58c020]));return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x565326,'rows':_0x40adbb});}['getPrimaryFieldId'](){const _0x2d8ac4=_0x336728;return this['_getTable']()[_0x2d8ac4(0x1fb)];}[_0x336728(0x23f)](){const _0x30f369=_0x336728;let _0x5bd08f=this[_0x30f369(0x1fa)]();return _0x5bd08f['fieldOrder'][_0x30f369(0x1f2)](_0x415fcf=>_0x5bd08f[_0x30f369(0x270)][_0x415fcf])[_0x30f369(0x1a3)](z)[_0x30f369(0x1f2)](_0x35647a=>this['_injector'][_0x30f369(0x279)](L,this[_0x30f369(0x185)],this,_0x35647a['id']));}['getFieldById'](_0x962171){const _0x2db91d=_0x336728;let _0x2c2aff=this['_getTable']()[_0x2db91d(0x270)][_0x962171];return z(_0x2c2aff)?this[_0x2db91d(0x1ef)][_0x2db91d(0x279)](L,this['_base'],this,_0x2c2aff['id']):null;}[_0x336728(0x1f3)](_0x577e61){const _0x1ed338=_0x336728;let _0x512fb9=this[_0x1ed338(0x1fa)]()[_0x1ed338(0x270)],_0x5dfc77=Object['values'](_0x512fb9)[_0x1ed338(0x252)](_0x389c52=>z(_0x389c52)&&_0x389c52[_0x1ed338(0x191)]===_0x577e61);return _0x5dfc77?this['_injector'][_0x1ed338(0x279)](L,this['_base'],this,_0x5dfc77['id']):null;}[_0x336728(0x196)](){const _0x1e44d5=_0x336728;let _0xb3363a=this[_0x1e44d5(0x1fa)]()[_0x1e44d5(0x1fb)];return this[_0x1e44d5(0x1ef)]['createInstance'](L,this['_base'],this,_0xb3363a);}['addField'](_0x58f44c,_0x367700,_0x584afb){const _0x196d08=_0x336728;var _0x45f7ca,_0x13e314;if(!Object[_0x196d08(0x2ab)](_0x33d599)[_0x196d08(0x27b)](_0x1e49e3=>_0x1e49e3===_0x367700))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x367700)+'\x22.');if(_0x367700===_0x33d599[_0x196d08(0x26f)]){if(!_0x584afb||!(_0x196d08(0x1af)in _0x584afb)||!Array[_0x196d08(0x1aa)](_0x584afb['externalReferences']))throw Error(_0x196d08(0x251));if(_0x584afb[_0x196d08(0x1af)][_0x196d08(0x1b5)]>0x0&&!this['_commandService'][_0x196d08(0x1ea)](_0x46103d['id'],{'unitId':this[_0x196d08(0x185)]['getId'](),'references':_0x584afb[_0x196d08(0x1af)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x58f44c+'\x22');}if(_0x367700===_0x33d599[_0x196d08(0x18f)]&&(typeof(_0x584afb==null||(_0x45f7ca=_0x584afb[_0x196d08(0x287)])==null||(_0x45f7ca=_0x45f7ca[_0x196d08(0x212)])==null?void 0x0:_0x45f7ca['targetTableId'])!='string'||typeof _0x584afb['field'][_0x196d08(0x212)][_0x196d08(0x181)]!='boolean'))throw Error(_0x196d08(0x1eb));let _0x4535d1={..._0x584afb==null?void 0x0:_0x584afb[_0x196d08(0x287)],'id':_0x2bd9cf(0x6),'name':_0x58f44c,'type':_0x367700,'config':(_0x584afb==null||(_0x13e314=_0x584afb[_0x196d08(0x287)])==null?void 0x0:_0x13e314[_0x196d08(0x212)])??{}};if(!this[_0x196d08(0x207)][_0x196d08(0x1ea)](_0x1978a1['id'],{'unitId':this[_0x196d08(0x185)][_0x196d08(0x23a)](),'tableId':this['_tableId'],'field':_0x4535d1,'index':_0x584afb==null?void 0x0:_0x584afb['index']}))throw Error(_0x196d08(0x25f)+_0x58f44c+'\x22');return this[_0x196d08(0x1ef)][_0x196d08(0x279)](L,this[_0x196d08(0x185)],this,_0x4535d1['id']);}[_0x336728(0x1b9)](){const _0x1cd9b2=_0x336728;return this[_0x1cd9b2(0x25e)]()[_0x1cd9b2(0x1f2)](_0x212eec=>this[_0x1cd9b2(0x1ef)][_0x1cd9b2(0x279)](Y,this[_0x1cd9b2(0x185)],this,_0x212eec,this[_0x1cd9b2(0x1ef)]));}[_0x336728(0x229)](_0x5b110c){const _0x4a9764=_0x336728;return this[_0x4a9764(0x1fa)]()[_0x4a9764(0x24a)][_0x5b110c]?this[_0x4a9764(0x1ef)][_0x4a9764(0x279)](Y,this['_base'],this,_0x5b110c,this[_0x4a9764(0x1ef)]):null;}[_0x336728(0x290)](_0x5ecd63={}){const _0x583211=_0x336728;let _0x4c09d1=this[_0x583211(0x1fa)](),_0x3d40ef=this['_resolveRecordIds'](_0x5ecd63),_0xfe65e5=Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d0)]??0x0),_0x1fc62b=_0x5ecd63[_0x583211(0x1d5)]==null?null:Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d5)]),_0x4c65c7=Je(_0x3d40ef[_0x583211(0x1f2)](_0x4e1206=>_0x4c09d1[_0x583211(0x24a)][_0x4e1206])[_0x583211(0x1a3)](_0x32fb86=>Xe(_0x32fb86,_0x4c09d1,_0x5ecd63['filter'])),_0x4c09d1,_0x5ecd63[_0x583211(0x1c7)]);return{'records':qe(_0x4c65c7,_0x5ecd63)[_0x583211(0x1f2)](_0x26e8b4=>this[_0x583211(0x1ef)]['createInstance'](Y,this[_0x583211(0x185)],this,_0x26e8b4['id'],this[_0x583211(0x1ef)])),'total':_0x4c65c7[_0x583211(0x1b5)],'offset':_0xfe65e5,'limit':_0x1fc62b,'hasMore':_0x1fc62b!=null&&_0xfe65e5+_0x1fc62b<_0x4c65c7[_0x583211(0x1b5)]};}[_0x336728(0x194)](_0x1cb415,_0x3a0864='id',_0x27f752){const _0x4081be=_0x336728;let _0x564613=this['_getTable'](),_0x7cfe48=Date['now'](),_0x537f97={..._0x27f752,'id':_0x2bd9cf(0x6),'values':B(_0x564613,_0x1cb415,_0x3a0864),'orderKey':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1ac)])||''+_0x7cfe48,'createdAt':(_0x27f752==null?void 0x0:_0x27f752['createdAt'])||_0x7cfe48,'updatedAt':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1b7)])||_0x7cfe48};if(!this[_0x4081be(0x207)][_0x4081be(0x1ea)](_0x22871f['id'],{'unitId':this['_base'][_0x4081be(0x23a)](),'tableId':this[_0x4081be(0x224)],'record':_0x537f97,'source':_0x4fe3fa[_0x4081be(0x2b6)]}))throw Error(_0x4081be(0x27f)+_0x537f97['id']+'\x22');return this[_0x4081be(0x1ef)]['createInstance'](Y,this[_0x4081be(0x185)],this,_0x537f97['id'],this[_0x4081be(0x1ef)]);}[_0x336728(0x29b)](_0x4c1176){const _0x5dff74=_0x336728;if(!_0x4c1176[_0x5dff74(0x1b5)])return[];let _0x12787d=this[_0x5dff74(0x1fa)](),_0x3d16af=Date[_0x5dff74(0x1a0)](),_0x427216=_0x4c1176['map']((_0x163d01,_0x13d3c7)=>{const _0x2898d2=_0x5dff74;var _0x257006,_0x5712ee,_0x4d41a3;return{..._0x163d01[_0x2898d2(0x1ba)],'id':_0x2bd9cf(0x6),'values':B(_0x12787d,_0x163d01['values'],_0x163d01[_0x2898d2(0x1c5)]??'id'),'orderKey':((_0x257006=_0x163d01['record'])==null?void 0x0:_0x257006[_0x2898d2(0x1ac)])||''+(_0x3d16af+_0x13d3c7),'createdAt':((_0x5712ee=_0x163d01[_0x2898d2(0x1ba)])==null?void 0x0:_0x5712ee[_0x2898d2(0x2a6)])||_0x3d16af,'updatedAt':((_0x4d41a3=_0x163d01['record'])==null?void 0x0:_0x4d41a3[_0x2898d2(0x1b7)])||_0x3d16af};});if(!this[_0x5dff74(0x207)][_0x5dff74(0x1ea)](_0x144dc8['id'],{'unitId':this[_0x5dff74(0x185)][_0x5dff74(0x23a)](),'tableId':this['_tableId'],'records':_0x427216,'source':_0x4fe3fa['Facade']}))throw Error(_0x5dff74(0x255));return _0x427216[_0x5dff74(0x1f2)](_0x5aae61=>this[_0x5dff74(0x1ef)][_0x5dff74(0x279)](Y,this['_base'],this,_0x5aae61['id'],this[_0x5dff74(0x1ef)]));}[_0x336728(0x204)](_0x35169c){const _0x4e0c0c=_0x336728;return!_0x35169c['length']||this[_0x4e0c0c(0x207)]['syncExecuteCommand'](_0x20826e['id'],{'unitId':this['_base'][_0x4e0c0c(0x23a)](),'tableId':this['_tableId'],'recordIds':_0x35169c,'source':_0x4fe3fa[_0x4e0c0c(0x2b6)]});}[_0x336728(0x1ee)](_0x42567f,_0x3190ad,_0x2c8232=0x1,_0x2bcc94=0x1){const _0x5ee001=_0x336728;return this[_0x5ee001(0x1ef)]['createInstance'](q,this[_0x5ee001(0x185)],this,{'startRow':_0x42567f,'endRow':_0x42567f+_0x2c8232-0x1,'startColumn':_0x3190ad,'endColumn':_0x3190ad+_0x2bcc94-0x1},this[_0x5ee001(0x1ef)]);}[_0x336728(0x27a)](){const _0x3d0e2a=_0x336728;var _0x43b915;let _0x2b32e8=_0x1696cb(this[_0x3d0e2a(0x1fa)]()),_0xd8fb2b=((_0x43b915=_0x2b32e8['recordOrder'])==null?void 0x0:_0x43b915[_0x3d0e2a(0x1b5)])??0x0,_0x2f7573=_0x2b32e8[_0x3d0e2a(0x205)][_0x3d0e2a(0x1a3)](_0x25a65f=>z(_0x2b32e8['fields'][_0x25a65f]))[_0x3d0e2a(0x1b5)];return this['getRange'](0x0,0x0,Math[_0x3d0e2a(0x1a1)](_0xd8fb2b,0x1),Math[_0x3d0e2a(0x1a1)](_0x2f7573,0x1));}[_0x336728(0x1e7)](){const _0xa9b47a=_0x336728;let _0x3f5651=this[_0xa9b47a(0x1fa)]();return _0x3f5651[_0xa9b47a(0x197)][_0xa9b47a(0x1a3)](_0x52f203=>_0x3f5651[_0xa9b47a(0x28c)][_0x52f203])[_0xa9b47a(0x1f2)](_0x5d0ec8=>this['_injector'][_0xa9b47a(0x279)](X,this[_0xa9b47a(0x185)],this,_0x5d0ec8,this['_injector']));}[_0x336728(0x206)](_0x1b1d83){const _0x5497de=_0x336728;return this[_0x5497de(0x1fa)]()[_0x5497de(0x28c)][_0x1b1d83]?this['_injector'][_0x5497de(0x279)](X,this[_0x5497de(0x185)],this,_0x1b1d83,this['_injector']):null;}['getViewByName'](_0xc208ea){const _0x3d5e8e=_0x336728;let _0x5624ba=this[_0x3d5e8e(0x1fa)](),_0x381c60=Object['values'](_0x5624ba[_0x3d5e8e(0x28c)])[_0x3d5e8e(0x252)](_0x3f867c=>_0x3f867c[_0x3d5e8e(0x191)]===_0xc208ea);return _0x381c60?this[_0x3d5e8e(0x1ef)][_0x3d5e8e(0x279)](X,this[_0x3d5e8e(0x185)],this,_0x381c60['id'],this[_0x3d5e8e(0x1ef)]):null;}[_0x336728(0x1a6)](_0x6e1cb8,_0x2aacd6,_0x598ba4){const _0x2305f3=_0x336728;var _0x2e3c07,_0x126831,_0x3075f0,_0x28aea4;let _0x2ca63a=this[_0x2305f3(0x1fa)](),_0x503182=[_0x2b3441,...((_0x598ba4==null||(_0x2e3c07=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x2e3c07[_0x2305f3(0x205)])??_0x2ca63a[_0x2305f3(0x205)])[_0x2305f3(0x1a3)](_0x594c4c=>z(_0x2ca63a['fields'][_0x594c4c]))],_0x532bfb={..._0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x27c)],'id':_0x2bd9cf(0x6),'name':_0x6e1cb8,'type':_0x2aacd6,'tableId':this[_0x2305f3(0x224)],'config':(_0x598ba4==null||(_0x126831=_0x598ba4['view'])==null?void 0x0:_0x126831[_0x2305f3(0x212)])??{},'fieldOrder':_0x503182,'fieldSettings':{..._0x598ba4==null||(_0x3075f0=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x3075f0[_0x2305f3(0x221)],[_0x2b3441]:{..._0x598ba4==null||(_0x28aea4=_0x598ba4[_0x2305f3(0x27c)])==null||(_0x28aea4=_0x28aea4['fieldSettings'])==null?void 0x0:_0x28aea4[_0x2b3441],'hidden':!0x0}}};if(!this[_0x2305f3(0x207)][_0x2305f3(0x1ea)](_0x338c3b['id'],{'unitId':this[_0x2305f3(0x185)][_0x2305f3(0x23a)](),'tableId':this['_tableId'],'view':_0x532bfb,'index':_0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x1f9)]}))throw Error(_0x2305f3(0x262)+_0x6e1cb8+'\x22');return this[_0x2305f3(0x1ef)][_0x2305f3(0x279)](X,this[_0x2305f3(0x185)],this,_0x532bfb['id'],this[_0x2305f3(0x1ef)]);}[_0x336728(0x1d8)](){const _0x3e6e4f=_0x336728;let _0x3b4b8c=this[_0x3e6e4f(0x1fa)](),_0x54d37d=_0x3b4b8c[_0x3e6e4f(0x205)][_0x3e6e4f(0x1a3)](_0x49bfc3=>z(_0x3b4b8c[_0x3e6e4f(0x270)][_0x49bfc3])),_0x8f7d0e=_0x3b4b8c[_0x3e6e4f(0x197)]['filter'](_0x2370f5=>_0x3b4b8c[_0x3e6e4f(0x28c)][_0x2370f5]);return{'id':_0x3b4b8c['id'],'name':_0x3b4b8c[_0x3e6e4f(0x191)],'primaryFieldId':_0x3b4b8c[_0x3e6e4f(0x1fb)],'fieldIds':_0x54d37d,'viewIds':_0x8f7d0e,'recordCount':this[_0x3e6e4f(0x25e)]()[_0x3e6e4f(0x1b5)],'fields':_0x54d37d[_0x3e6e4f(0x1f2)](_0xac249e=>{const _0x27b70a=_0x3e6e4f;let _0x12d825=_0x3b4b8c[_0x27b70a(0x270)][_0xac249e];return{'id':_0x12d825['id'],'name':_0x12d825[_0x27b70a(0x191)],'type':_0x12d825[_0x27b70a(0x261)],'config':_0x12d825[_0x27b70a(0x212)],'readonly':_0x12d825['readonly'],'description':_0x12d825[_0x27b70a(0x272)]};}),'views':_0x8f7d0e['map'](_0x4e0209=>{const _0x42b7f2=_0x3e6e4f;let _0x1b13fd=_0x3b4b8c['views'][_0x4e0209];return{'id':_0x1b13fd['id'],'name':_0x1b13fd['name'],'type':_0x1b13fd[_0x42b7f2(0x261)]};})};}[_0x336728(0x1fa)](){const _0x2158ee=_0x336728;let _0x308978=this[_0x2158ee(0x185)][_0x2158ee(0x2a3)]()[_0x2158ee(0x217)]()['tables'][this[_0x2158ee(0x224)]];if(!_0x308978)throw Error('[FTable]:\x20table\x20\x22'+this['_tableId']+_0x2158ee(0x2a8));return _0x308978;}[_0x336728(0x25e)](_0x187f70={}){const _0x1e7f5f=_0x336728;let _0x46813c=this[_0x1e7f5f(0x185)][_0x1e7f5f(0x2a3)]()[_0x1e7f5f(0x217)](),_0x6aafe2=this[_0x1e7f5f(0x1fa)]();if(_0x187f70['viewId']){let _0x1694b4=this[_0x1e7f5f(0x29e)]['getProjection'](_0x46813c,this['_tableId'],_0x187f70[_0x1e7f5f(0x1ae)]);if('rows'in _0x1694b4&&Array[_0x1e7f5f(0x1aa)](_0x1694b4[_0x1e7f5f(0x1cb)]))return _0x1694b4[_0x1e7f5f(0x1cb)][_0x1e7f5f(0x1f2)](_0x27ba5a=>_0x27ba5a['recordId']);}return(_0x6aafe2[_0x1e7f5f(0x243)]?_0x6aafe2[_0x1e7f5f(0x243)]['map'](_0x1fd847=>_0x6aafe2[_0x1e7f5f(0x24a)][_0x1fd847]):Object['values'](_0x6aafe2[_0x1e7f5f(0x24a)])[_0x1e7f5f(0x1c7)]((_0x5f4981,_0x4e291a)=>_0x5f4981[_0x1e7f5f(0x1ac)][_0x1e7f5f(0x234)](_0x4e291a[_0x1e7f5f(0x1ac)])))[_0x1e7f5f(0x1a3)](_0x1d3985=>_0x1d3985)[_0x1e7f5f(0x1f2)](_0x17fee5=>_0x17fee5['id']);}};Z=I([F(0x3,_0x2d81ac),F(0x4,_0x460976)],Z);function _0x52e5(_0x11cead,_0x180fbf){_0x11cead=_0x11cead-0x17d;const _0xcde0e8=_0xcde0();let _0x52e5ef=_0xcde0e8[_0x11cead];return _0x52e5ef;}function qe(_0x492bcf,_0xa23636){const _0x3c7ca6=_0x336728;let _0xbfa501=Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636['offset']??0x0);return _0xa23636['limit']==null?_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501):_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501,_0xbfa501+Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636[_0x3c7ca6(0x1d5)]));}function Je(_0xf0b280,_0x41ae63,_0x454d65=[]){const _0x2feeb5=_0x336728;return _0x454d65[_0x2feeb5(0x1b5)]?[..._0xf0b280][_0x2feeb5(0x1c7)]((_0x563aaf,_0x114fa8)=>{const _0x2d24bd=_0x2feeb5;for(let _0x1845d8 of _0x454d65){var _0x55cd36;let _0x30b153=_0x1845d8[_0x2d24bd(0x228)]===_0x4baab9['DESC']?-0x1:0x1,_0x1e2af2=Ye(_0x563aaf[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],_0x114fa8[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],(_0x55cd36=_0x41ae63[_0x2d24bd(0x270)][_0x1845d8['fieldId']])==null?void 0x0:_0x55cd36[_0x2d24bd(0x261)]);if(_0x1e2af2!==0x0)return _0x1e2af2*_0x30b153;}return String(_0x563aaf[_0x2d24bd(0x1ac)]??_0x563aaf['id'])['localeCompare'](String(_0x114fa8['orderKey']??_0x114fa8['id']));}):_0xf0b280;}function Ye(_0x5589ab,_0x35f463,_0x12b60f){const _0x4ba113=_0x336728;return _0x5589ab==null&&_0x35f463==null?0x0:_0x5589ab==null?-0x1:_0x35f463==null?0x1:typeof _0x5589ab=='number'&&typeof _0x35f463==_0x4ba113(0x284)?_0x5589ab-_0x35f463:_0x12b60f===_0x33d599[_0x4ba113(0x265)]?Number(_0x5589ab)-Number(_0x35f463):String(_0x5589ab)[_0x4ba113(0x234)](String(_0x35f463));}function Xe(_0x2d4fd2,_0x56b182,_0x442142){const _0x221362=_0x336728;var _0x3196cd;if(!_0x442142||!((_0x3196cd=_0x442142[_0x221362(0x28d)])!=null&&_0x3196cd[_0x221362(0x1b5)]))return!0x0;let {conjunction:_0x2e0427=_0x5f2ca0['OR'],conditions:_0x18a901}=_0x442142;return _0x2e0427===_0x5f2ca0[_0x221362(0x1e0)]&&_0x18a901[_0x221362(0x1b5)]>0x1?_0x18a901[_0x221362(0x19e)](_0x19cf24=>Ze(_0x2d4fd2,_0x56b182,_0x19cf24)):_0x18a901['some'](_0x391b3c=>Ze(_0x2d4fd2,_0x56b182,_0x391b3c));}function Ze(_0x1de904,_0x2fc691,_0x3a9f73){const _0x8cbec6=_0x336728;let _0x4afabf=_0x1de904[_0x8cbec6(0x2ab)][_0x3a9f73[_0x8cbec6(0x1c3)]],_0xf7e061=_0x2fc691['fields'][_0x3a9f73[_0x8cbec6(0x1c3)]];if(Qe(_0x3a9f73)){let _0x473f1e=$e(_0x3a9f73)[_0x8cbec6(0x2b3)](String(_0x4afabf??''));return _0x3a9f73[_0x8cbec6(0x199)]===_0x8cbec6(0x18d)?_0x473f1e:!_0x473f1e;}return!_0xf7e061||_0x5e33be(_0x4afabf,_0x3a9f73[_0x8cbec6(0x199)],_0x3a9f73['value'],_0xf7e061);}function Qe(_0x5728c5){const _0xeaa0c=_0x336728;return _0x5728c5[_0xeaa0c(0x199)]===_0xeaa0c(0x18d)||_0x5728c5['operator']===_0xeaa0c(0x1b6);}function $e(_0x1065e4){const _0x7f8db=_0x336728;let _0x27a92e=String(_0x1065e4[_0x7f8db(0x1b4)]??'');if(_0x27a92e[_0x7f8db(0x1b5)]>0x200)throw Error(_0x7f8db(0x268));try{return new RegExp(_0x27a92e,_0x1065e4[_0x7f8db(0x232)]?void 0x0:'i');}catch(_0x10167e){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x27a92e+'.\x20'+(_0x10167e instanceof Error?_0x10167e['message']:String(_0x10167e)));}}function et(_0x12f6c2,_0x401507,_0x6583ae){const _0x37a45a=_0x336728;if(_0x6583ae[_0x37a45a(0x261)]!==_0x37a45a(0x1e2)){var _0x38824e;if(_0x6583ae['type']===_0x35b90a['Kanban']){var _0x1b568b;let _0x5d0aa4=[((_0x1b568b=_0x6583ae[_0x37a45a(0x270)])==null||(_0x1b568b=_0x1b568b[0x0])==null?void 0x0:_0x1b568b['id'])??_0x12f6c2[_0x37a45a(0x1fb)],..._0x6583ae[_0x37a45a(0x250)]??[]];return Array[_0x37a45a(0x2aa)](new Set(_0x5d0aa4[_0x37a45a(0x1a3)](_0x45a9d0=>!!_0x12f6c2['fields'][_0x45a9d0])));}if((_0x38824e=_0x6583ae['fields'])!=null&&_0x38824e[_0x37a45a(0x1b5)])return _0x6583ae[_0x37a45a(0x270)][_0x37a45a(0x1f2)](_0x65ec45=>_0x65ec45['id'])[_0x37a45a(0x1a3)](_0x597b20=>{const _0x46260f=_0x37a45a;var _0x596311;return!!(_0x12f6c2[_0x46260f(0x270)][_0x597b20]&&!(_0x401507!=null&&(_0x596311=_0x401507[_0x46260f(0x221)])!=null&&(_0x596311=_0x596311[_0x597b20])!=null&&_0x596311[_0x46260f(0x28e)]));});}return _0x12f6c2[_0x37a45a(0x205)][_0x37a45a(0x1a3)](_0x3e9a40=>{const _0x4b767a=_0x37a45a;var _0xd6a67;return!!(_0x12f6c2['fields'][_0x3e9a40]&&!(_0x401507!=null&&(_0xd6a67=_0x401507[_0x4b767a(0x221)])!=null&&(_0xd6a67=_0xd6a67[_0x3e9a40])!=null&&_0xd6a67[_0x4b767a(0x28e)]));});}let Q=class{constructor(_0xff975f,_0x26b522,_0x40b831,_0x66acc){const _0x515758=_0x336728;this[_0x515758(0x185)]=_0xff975f,this[_0x515758(0x1ef)]=_0x26b522,this[_0x515758(0x248)]=_0x40b831,this['_commandService']=_0x66acc;}[_0x336728(0x2a3)](){const _0x1dd37c=_0x336728;return this[_0x1dd37c(0x185)];}['getId'](){const _0x37f195=_0x336728;return this['_base'][_0x37f195(0x210)]();}[_0x336728(0x2a0)](){const _0xf9558d=_0x336728;return this[_0xf9558d(0x248)][_0xf9558d(0x200)](this[_0xf9558d(0x23a)]())??_0x5bb98a[_0xf9558d(0x258)](this[_0xf9558d(0x185)][_0xf9558d(0x217)]());}[_0x336728(0x1d1)](){const _0x423e39=_0x336728;return this[_0x423e39(0x185)]['getSnapshot']()[_0x423e39(0x191)];}[_0x336728(0x201)](_0x321516){const _0x1afc6b=_0x336728;this[_0x1afc6b(0x207)][_0x1afc6b(0x1ea)](_0x3a2e4a['id'],{'unitId':this[_0x1afc6b(0x23a)](),'name':_0x321516});}[_0x336728(0x2b7)](){const _0x41aace=_0x336728;let _0xdf513f=this['_base']['getSnapshot']();return _0xdf513f[_0x41aace(0x1ad)][_0x41aace(0x1f2)](_0x1d8615=>_0xdf513f[_0x41aace(0x189)][_0x1d8615])[_0x41aace(0x1a3)](_0x369e96=>_0x369e96)[_0x41aace(0x1f2)](_0x27aef5=>this[_0x41aace(0x1ef)][_0x41aace(0x279)](Z,this,_0x27aef5['id'],this[_0x41aace(0x1ef)]));}['getTableById'](_0x2139b8){const _0xfa961=_0x336728;let _0x5ab081=this['_base'][_0xfa961(0x217)]()[_0xfa961(0x189)][_0x2139b8];return _0x5ab081?this[_0xfa961(0x1ef)][_0xfa961(0x279)](Z,this,_0x5ab081['id'],this[_0xfa961(0x1ef)]):null;}[_0x336728(0x198)](_0x28c671){const _0x3293fd=_0x336728;let _0x49721e=this[_0x3293fd(0x185)][_0x3293fd(0x217)](),_0x1456df=Object[_0x3293fd(0x2ab)](_0x49721e[_0x3293fd(0x189)])[_0x3293fd(0x252)](_0xf52a38=>_0xf52a38[_0x3293fd(0x191)]===_0x28c671);return _0x1456df?this[_0x3293fd(0x1ef)][_0x3293fd(0x279)](Z,this,_0x1456df['id'],this[_0x3293fd(0x1ef)]):null;}[_0x336728(0x28a)](_0x1644a1,_0x3b0af3){const _0x507c97=_0x336728;let _0x3c44af=_0x16a351({'id':_0x2bd9cf(),'name':_0x1644a1,..._0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x23c)],'primaryFieldName':_0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x292)]}),_0x21a6dd=_0x5bb98a[_0x507c97(0x1f0)](_0x3c44af,(_0x3b0af3==null?void 0x0:_0x3b0af3['table'])??{});if(!this[_0x507c97(0x207)][_0x507c97(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x507c97(0x185)][_0x507c97(0x210)](),'table':_0x21a6dd,'index':_0x3b0af3==null?void 0x0:_0x3b0af3['index']}))throw Error(_0x507c97(0x211)+_0x1644a1+'\x22.');return this['_injector'][_0x507c97(0x279)](Z,this,_0x21a6dd['id'],this[_0x507c97(0x1ef)]);}[_0x336728(0x1e8)](_0x27f639){const _0x2fa9ac=_0x336728;let _0x3ec052=typeof _0x27f639==_0x2fa9ac(0x1c9)?_0x27f639:_0x27f639[_0x2fa9ac(0x23a)]();if(!this['_commandService'][_0x2fa9ac(0x1ea)](_0x13a13d['id'],{'unitId':this[_0x2fa9ac(0x185)]['getUnitId'](),'tableId':_0x3ec052}))throw Error(_0x2fa9ac(0x1d7)+_0x3ec052+'\x22.');return!0x0;}[_0x336728(0x20b)](_0x29c475,_0x168899){const _0x168b73=_0x336728;let _0x36d5a3=this['_base'][_0x168b73(0x217)](),_0x129e70=typeof _0x29c475=='string'?_0x29c475:_0x29c475['getId'](),_0x392e92=_0x36d5a3['tables'][_0x129e70];if(!_0x392e92)throw Error('[FBase]:\x20table\x20\x22'+_0x129e70+_0x168b73(0x2a8));let _0x59050a=_0x36d5a3['tableOrder']['indexOf'](_0x129e70)+0x1,_0x55eb8d=_0x5e421d(_0x392e92,{'id':_0x2bd9cf(),'name':_0x392e92['name']+_0x168b73(0x297),'includeRecords':(_0x168899==null?void 0x0:_0x168899['includeRecords'])??!0x1,'regenerateViewIds':(_0x168899==null?void 0x0:_0x168899['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x168b73(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x168b73(0x185)][_0x168b73(0x210)](),'table':_0x55eb8d,'index':_0x59050a}))throw Error(_0x168b73(0x28b)+_0x129e70+'\x22.');return this[_0x168b73(0x1ef)]['createInstance'](Z,this,_0x55eb8d['id'],this[_0x168b73(0x1ef)]);}[_0x336728(0x1d8)](){const _0x186225=_0x336728;let _0x5e25f1=this[_0x186225(0x185)]['getSnapshot']();return{'id':_0x5e25f1['id'],'name':_0x5e25f1[_0x186225(0x191)],'tables':this[_0x186225(0x2b7)]()['map'](_0x306dac=>_0x306dac[_0x186225(0x1d8)]())};}};Q=I([F(0x1,_0x25f6bc(_0x442045)),F(0x2,_0x246509),F(0x3,_0x2d81ac)],Q);var tt=class extends _0x7df423{[_0x336728(0x1c6)](){const _0x295d31=_0x336728;this[_0x295d31(0x20f)](),this[_0x295d31(0x237)]();}[_0x336728(0x1de)](_0x55a963={},_0x4c6cef){const _0x4bcf77=_0x336728;let _0x408399=this['_univerInstanceService'][_0x4bcf77(0x1a4)](_0x874f24[_0x4bcf77(0x2b2)],_0x55a963,_0x4c6cef);return this[_0x4bcf77(0x1ef)][_0x4bcf77(0x279)](Q,_0x408399);}[_0x336728(0x2a1)](){const _0x34fc51=_0x336728;let _0x290e72=this['_univerInstanceService'][_0x34fc51(0x20c)](_0x874f24['UNIVER_BASE']);return _0x290e72?this['_injector']['createInstance'](Q,_0x290e72):null;}[_0x336728(0x2a3)](_0x618861){const _0x5d0ddd=_0x336728;let _0x11b6cb=this[_0x5d0ddd(0x1b0)]['getUnit'](_0x618861,_0x874f24['UNIVER_BASE']);return _0x11b6cb?this[_0x5d0ddd(0x1ef)][_0x5d0ddd(0x279)](Q,_0x11b6cb):null;}[_0x336728(0x21f)](){const _0x24f4f8=_0x336728;return this['_univerInstanceService'][_0x24f4f8(0x19f)](_0x874f24['UNIVER_BASE'])[_0x24f4f8(0x1f2)](_0x53556f=>this[_0x24f4f8(0x1ef)][_0x24f4f8(0x279)](Q,_0x53556f));}[_0x336728(0x237)](){const _0x4e4d0d=_0x336728;this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x295)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)]((_0x2ee048,_0x1c315f)=>{const _0x371ffb=_0x4e4d0d;var _0x304e38;if(!$(_0x2ee048,_0x5374e3))return;let _0x41eaad=_0x2ee048[_0x371ffb(0x23b)];if(!((_0x304e38=_0x41eaad[_0x371ffb(0x214)])!=null&&_0x304e38[_0x371ffb(0x1b5)]))return;let _0x4ad86b=this[_0x371ffb(0x2a3)](_0x41eaad[_0x371ffb(0x1e6)]),_0x51b85b=_0x4ad86b==null?void 0x0:_0x4ad86b['getTableById'](_0x41eaad[_0x371ffb(0x214)][0x0][_0x371ffb(0x281)]);if(!_0x4ad86b||!_0x51b85b)return;let _0xdce23c={'base':_0x4ad86b,'table':_0x51b85b,'changes':_0x41eaad[_0x371ffb(0x214)],'source':_0x1c315f!=null&&_0x1c315f[_0x371ffb(0x19d)]?_0x4fe3fa[_0x371ffb(0x1b2)]:_0x41eaad['source']??_0x4fe3fa['UI']};this[_0x371ffb(0x230)](this[_0x371ffb(0x208)][_0x371ffb(0x295)],_0xdce23c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x21c)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x33b529=>{const _0x1d1731=_0x4e4d0d;if(_0x33b529['id']!==_0x3cc0d1['id'])return;let {unitId:_0x151dd8,table:_0x1ce52a,index:_0x372529}=_0x33b529['params'],_0x44d853=this[_0x1d1731(0x2a3)](_0x151dd8);if(!_0x44d853)return;let _0x46036c={'base':_0x44d853,'table':_0x1ce52a,'index':_0x372529};this[_0x1d1731(0x230)](this[_0x1d1731(0x208)][_0x1d1731(0x21c)],_0x46036c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x1c2)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x31e7ff=>{const _0x592190=_0x4e4d0d;if(_0x31e7ff['id']!==_0x1978a1['id'])return;let {unitId:_0x2eee4c,tableId:_0x4cbd87,field:_0x4671b9,index:_0x3dcc2f,viewIndexes:_0x17441f}=_0x31e7ff[_0x592190(0x23b)],_0x4422c2=this[_0x592190(0x2a3)](_0x2eee4c);if(!_0x4422c2)return;let _0x28be05=_0x4422c2[_0x592190(0x209)](_0x4cbd87);if(!_0x28be05)return;let _0x43a0b7={'base':_0x4422c2,'table':_0x28be05,'field':_0x4671b9,'index':_0x3dcc2f,'viewIndexes':_0x17441f};this[_0x592190(0x230)](this[_0x592190(0x208)][_0x592190(0x1c2)],_0x43a0b7);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x26d)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x3c115e=>{const _0x4276d2=_0x4e4d0d;if(_0x3c115e['id']!==_0x22871f['id']&&_0x3c115e['id']!==_0x144dc8['id'])return;let _0x57db75=_0x3c115e[_0x4276d2(0x23b)],{unitId:_0x3a3d93,tableId:_0x47158b}=_0x57db75,_0x554f86=_0x57db75[_0x4276d2(0x24a)]??[_0x57db75[_0x4276d2(0x1ba)]],_0x22b01c=this[_0x4276d2(0x2a3)](_0x3a3d93);if(!_0x22b01c)return;let _0x13ac79=_0x22b01c[_0x4276d2(0x209)](_0x47158b);if(!_0x13ac79)return;let _0x46eccc={'base':_0x22b01c,'table':_0x13ac79,'records':_0x554f86};this[_0x4276d2(0x230)](this[_0x4276d2(0x208)][_0x4276d2(0x26d)],_0x46eccc);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableViewCreated'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x513b07=>{const _0x5b137c=_0x4e4d0d;if(_0x513b07['id']!==_0x338c3b['id'])return;let {unitId:_0x3c607e,tableId:_0x4912f5,view:_0x5c4ef7,index:_0x20c451}=_0x513b07[_0x5b137c(0x23b)],_0x586790=this[_0x5b137c(0x2a3)](_0x3c607e);if(!_0x586790)return;let _0x191b23=_0x586790['getTableById'](_0x4912f5);if(!_0x191b23)return;let _0x1289b6={'base':_0x586790,'table':_0x191b23,'view':_0x5c4ef7,'index':_0x20c451};this[_0x5b137c(0x230)](this['Event'][_0x5b137c(0x239)],_0x1289b6);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableCellValueChanged'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x225ebe=>{const _0x301a06=_0x4e4d0d;if(_0x225ebe['id']!==_0x54f164['id'])return;let {unitId:_0x4ef4e8,tableId:_0x4c6d23,recordId:_0x37cf48,fieldId:_0x4abd6b,value:_0x4906ef}=_0x225ebe[_0x301a06(0x23b)],_0x4d7494=this['getBase'](_0x4ef4e8);if(!_0x4d7494)return;let _0x5a4de7=_0x4d7494[_0x301a06(0x209)](_0x4c6d23);if(!_0x5a4de7)return;let _0x3b26b8=_0x5a4de7[_0x301a06(0x1fc)](_0x4abd6b);if(!_0x3b26b8)return;let _0x32fda7=_0x5a4de7[_0x301a06(0x229)](_0x37cf48);if(!_0x32fda7)return;let _0x316b02={'base':_0x4d7494,'table':_0x5a4de7,'field':_0x3b26b8,'record':_0x32fda7,'value':_0x4906ef};this['fireEvent'](this[_0x301a06(0x208)][_0x301a06(0x220)],_0x316b02);})));}[_0x336728(0x20f)](){const _0x1e78b0=_0x336728;this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x215)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x2017bd=>{const _0x11c011=_0x1e78b0;if($(_0x2017bd,_0x298aea)){let {unitId:_0x19d816,tableId:_0x26e5d0,patches:_0x6461e3,source:_0x5b391d=_0x4fe3fa['UI']}=_0x2017bd[_0x11c011(0x23b)],_0x4e5742=this[_0x11c011(0x1f8)](_0x19d816,_0x26e5d0);if(!_0x4e5742)return;this[_0x11c011(0x1d3)](_0x4e5742['base'],_0x4e5742[_0x11c011(0x23c)],_0x568123(_0x4e5742['table'][_0x11c011(0x1f1)](),_0x6461e3),_0x5b391d);return;}if($(_0x2017bd,_0x26fb58)){let {unitId:_0xebfa9d,tableId:_0x2b27ac,patches:_0x32100d,source:_0x396fbb=_0x4fe3fa['UI']}=_0x2017bd['params'],_0x1e0603=this[_0x11c011(0x1f8)](_0xebfa9d,_0x2b27ac);if(!_0x1e0603)return;let _0x14b176=_0x1e0603[_0x11c011(0x23c)]['getTable']();this[_0x11c011(0x1d3)](_0x1e0603[_0x11c011(0x269)],_0x1e0603[_0x11c011(0x23c)],_0x568123(_0x14b176,_0x34fccc(_0x14b176,_0x32100d)),_0x396fbb);return;}if($(_0x2017bd,_0x22871f)){let _0x2ac6b3=_0x2017bd[_0x11c011(0x23b)],_0x397942=this[_0x11c011(0x1f8)](_0x2ac6b3[_0x11c011(0x1e6)],_0x2ac6b3['tableId']);if(!_0x397942)return;this[_0x11c011(0x1d3)](_0x397942['base'],_0x397942['table'],_0x3e5dd7(_0x397942[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x2ac6b3[_0x11c011(0x1ba)]]),_0x2ac6b3[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x144dc8)){let _0x45ccd6=_0x2017bd['params'],_0x17bc73=this['_getHierarchyEventContext'](_0x45ccd6[_0x11c011(0x1e6)],_0x45ccd6[_0x11c011(0x281)]);if(!_0x17bc73)return;this[_0x11c011(0x1d3)](_0x17bc73[_0x11c011(0x269)],_0x17bc73['table'],_0x3e5dd7(_0x17bc73[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x45ccd6['records']),_0x45ccd6[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x39fd7f)){let _0x2890c1=_0x2017bd[_0x11c011(0x23b)],_0x2eaaad=this[_0x11c011(0x1f8)](_0x2890c1['unitId'],_0x2890c1[_0x11c011(0x281)]);if(!_0x2eaaad)return;this[_0x11c011(0x1d3)](_0x2eaaad[_0x11c011(0x269)],_0x2eaaad[_0x11c011(0x23c)],_0x3e5dd7(_0x2eaaad[_0x11c011(0x23c)]['getTable'](),[_0x2890c1[_0x11c011(0x1ba)]]),_0x2890c1['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x241dc3)){let _0x12c462=_0x2017bd['params'],_0x3afc22=this[_0x11c011(0x1f8)](_0x12c462[_0x11c011(0x1e6)],_0x12c462['tableId']);if(!_0x3afc22)return;let _0x2d636f=_0x3afc22['table'][_0x11c011(0x1f1)](),_0x27105b=_0x12c462[_0x11c011(0x1c3)]??_0x2ee0b8(_0x2d636f),_0x2f3481=_0xdaf857(_0x2d636f,_0x27105b)[_0x11c011(0x22c)]['get'](_0x12c462[_0x11c011(0x190)])??null;this[_0x11c011(0x1d3)](_0x3afc22['base'],_0x3afc22['table'],[{'tableId':_0x12c462[_0x11c011(0x281)],'fieldId':_0x27105b,'recordId':_0x12c462['recordId'],'oldParentRecordId':_0x2f3481,'parentRecordId':_0x12c462[_0x11c011(0x17e)]}],_0x12c462[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x5567bd)){let _0x4b8c4a=_0x2017bd['params'],_0x10431a=this[_0x11c011(0x1f8)](_0x4b8c4a[_0x11c011(0x1e6)],_0x4b8c4a[_0x11c011(0x281)]);if(!_0x10431a)return;let _0x2ab84a=_0x4b8c4a[_0x11c011(0x1c3)]??_0x2ee0b8(_0x10431a['table']['getTable']());this['_fireBeforeHierarchyChange'](_0x10431a[_0x11c011(0x269)],_0x10431a['table'],[{'tableId':_0x4b8c4a[_0x11c011(0x281)],'fieldId':_0x2ab84a,'recordId':_0x4b8c4a[_0x11c011(0x1ba)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4b8c4a['parentRecordId']}],_0x4b8c4a['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x384f53)){let _0x6a497e=_0x2017bd[_0x11c011(0x23b)],_0x1427c7=this['_getHierarchyEventContext'](_0x6a497e[_0x11c011(0x1e6)],_0x6a497e[_0x11c011(0x281)]);if(!_0x1427c7)return;this[_0x11c011(0x1d3)](_0x1427c7[_0x11c011(0x269)],_0x1427c7[_0x11c011(0x23c)],_0x3282d7(_0x1427c7[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x6a497e[_0x11c011(0x190)]]),_0x6a497e[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x20826e)){let _0x472afa=_0x2017bd['params'],_0x488776=this[_0x11c011(0x1f8)](_0x472afa[_0x11c011(0x1e6)],_0x472afa['tableId']);if(!_0x488776)return;this['_fireBeforeHierarchyChange'](_0x488776[_0x11c011(0x269)],_0x488776[_0x11c011(0x23c)],_0x3282d7(_0x488776[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x472afa['recordIds']),_0x472afa[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if(!$(_0x2017bd,_0x54f164))return;let _0x56bf4d=_0x2017bd[_0x11c011(0x23b)],_0x50ed9c=this[_0x11c011(0x1f8)](_0x56bf4d['unitId'],_0x56bf4d['tableId']);if(!_0x50ed9c)return;let _0x38026d=_0x50ed9c[_0x11c011(0x23c)][_0x11c011(0x1f1)]();if(!_0x12eab2(_0x38026d)[_0x11c011(0x24d)](_0x56bf4d[_0x11c011(0x1c3)]))return;let _0x3965cd=_0xdaf857(_0x38026d,_0x56bf4d[_0x11c011(0x1c3)])[_0x11c011(0x22c)][_0x11c011(0x19b)](_0x56bf4d[_0x11c011(0x190)])??null,_0xe8ecd2=_0x1e19fe(_0x56bf4d[_0x11c011(0x1b4)])[0x0]??null;_0x3965cd!==_0xe8ecd2&&this[_0x11c011(0x1d3)](_0x50ed9c['base'],_0x50ed9c[_0x11c011(0x23c)],[{'tableId':_0x56bf4d[_0x11c011(0x281)],'fieldId':_0x56bf4d[_0x11c011(0x1c3)],'recordId':_0x56bf4d[_0x11c011(0x190)],'oldParentRecordId':_0x3965cd,'parentRecordId':_0xe8ecd2}],_0x56bf4d['source']??_0x4fe3fa['UI']);}))),this['disposeWithMe'](this[_0x1e78b0(0x246)](this['Event'][_0x1e78b0(0x1ed)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x438c4e=>{const _0x2aa364=_0x1e78b0;if(_0x438c4e['id']!==_0x3cc0d1['id'])return;let {unitId:_0x305653,table:_0x5d1dc6,index:_0x37c3d3}=_0x438c4e[_0x2aa364(0x23b)],_0x25b0f4=this[_0x2aa364(0x2a3)](_0x305653);if(!_0x25b0f4)return;let _0x39c981={'base':_0x25b0f4,'table':_0x5d1dc6,'index':_0x37c3d3};if(this[_0x2aa364(0x230)](this[_0x2aa364(0x208)][_0x2aa364(0x1ed)],_0x39c981),_0x39c981[_0x2aa364(0x1dd)])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)]['BeforeBaseTableFieldCreate'],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x5758e4=>{const _0x2269a0=_0x1e78b0;if(_0x5758e4['id']!==_0x1978a1['id'])return;let {unitId:_0x49980c,tableId:_0x5d9051,field:_0x22a509,index:_0x3cc1ea,viewIndexes:_0x4e9aa3}=_0x5758e4[_0x2269a0(0x23b)],_0x3e4f89=this[_0x2269a0(0x2a3)](_0x49980c);if(!_0x3e4f89)return;let _0x135dbc=_0x3e4f89[_0x2269a0(0x209)](_0x5d9051);if(!_0x135dbc)return;let _0x2434a7={'base':_0x3e4f89,'table':_0x135dbc,'field':_0x22a509,'index':_0x3cc1ea,'viewIndexes':_0x4e9aa3};if(this[_0x2269a0(0x230)](this[_0x2269a0(0x208)]['BeforeBaseTableFieldCreate'],_0x2434a7),_0x2434a7['cancel'])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x1dc)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x516690=>{const _0x558958=_0x1e78b0;if(_0x516690['id']!==_0x22871f['id']&&_0x516690['id']!==_0x144dc8['id'])return;let _0xcdfa49=_0x516690['params'],{unitId:_0x502a21,tableId:_0x2d13ad}=_0xcdfa49,_0x1c6fa6=_0xcdfa49[_0x558958(0x24a)]??[_0xcdfa49[_0x558958(0x1ba)]],_0x81af21=this['getBase'](_0x502a21);if(!_0x81af21)return;let _0x11bdc4=_0x81af21[_0x558958(0x209)](_0x2d13ad);if(!_0x11bdc4)return;let _0x2b751a={'base':_0x81af21,'table':_0x11bdc4,'records':_0x1c6fa6};if(this[_0x558958(0x230)](this[_0x558958(0x208)][_0x558958(0x1dc)],_0x2b751a),_0x2b751a['cancel'])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x276)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x362d62=>{const _0x59c772=_0x1e78b0;if(_0x362d62['id']!==_0x338c3b['id'])return;let {unitId:_0xc01a34,tableId:_0x47aa6a,view:_0x3bc369,index:_0xb64222}=_0x362d62[_0x59c772(0x23b)],_0x361333=this['getBase'](_0xc01a34);if(!_0x361333)return;let _0xdb0df2=_0x361333['getTableById'](_0x47aa6a);if(!_0xdb0df2)return;let _0x1f56f9={'base':_0x361333,'table':_0xdb0df2,'view':_0x3bc369,'index':_0xb64222};if(this[_0x59c772(0x230)](this[_0x59c772(0x208)][_0x59c772(0x276)],_0x1f56f9),_0x1f56f9[_0x59c772(0x1dd)])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x223)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x14ceec=>{const _0x123a60=_0x1e78b0;if(_0x14ceec['id']!==_0x54f164['id'])return;let {unitId:_0x4d75ca,tableId:_0x582119,recordId:_0x5ed89a,fieldId:_0x9eca76,value:_0x243299}=_0x14ceec[_0x123a60(0x23b)],_0x1861a6=this[_0x123a60(0x2a3)](_0x4d75ca);if(!_0x1861a6)return;let _0x5368a6=_0x1861a6[_0x123a60(0x209)](_0x582119);if(!_0x5368a6)return;let _0x24995a=_0x5368a6[_0x123a60(0x1fc)](_0x9eca76);if(!_0x24995a)return;let _0x1b715e=_0x5368a6['getRecordById'](_0x5ed89a);if(!_0x1b715e)return;let _0x46758a={'base':_0x1861a6,'table':_0x5368a6,'field':_0x24995a,'record':_0x1b715e,'value':_0x243299};if(this['fireEvent'](this[_0x123a60(0x208)][_0x123a60(0x223)],_0x46758a),_0x46758a['cancel'])throw new _0x10ac7b();})));}[_0x336728(0x1f8)](_0x3e13e5,_0xeb0d60){const _0x496477=_0x336728;let _0x4b9c5f=this[_0x496477(0x2a3)](_0x3e13e5),_0x25a7e5=_0x4b9c5f==null?void 0x0:_0x4b9c5f[_0x496477(0x209)](_0xeb0d60);return _0x4b9c5f&&_0x25a7e5?{'base':_0x4b9c5f,'table':_0x25a7e5}:null;}[_0x336728(0x1d3)](_0x5b2827,_0x5e2604,_0x70efdc,_0x10abf7){const _0x1bd9b2=_0x336728;if(!_0x70efdc[_0x1bd9b2(0x1b5)])return;let _0x2df0ea={'base':_0x5b2827,'table':_0x5e2604,'changes':_0x70efdc,'source':_0x10abf7};if(this['fireEvent'](this[_0x1bd9b2(0x208)]['BeforeBaseHierarchyChange'],_0x2df0ea),_0x2df0ea['cancel'])throw new _0x10ac7b();}};function $(_0x1055c6,_0x21b291){const _0x4af634=_0x336728;return _0x1055c6['id']===_0x21b291['id']&&_0x1055c6[_0x4af634(0x23b)]!==void 0x0;}_0x7df423['extend'](tt);var nt=class extends _0x530ba6{get[_0x336728(0x180)](){return _0x33d599;}get[_0x336728(0x27e)](){return _0x5f2ca0;}get[_0x336728(0x1ec)](){return _0xf6848f;}get['BaseFieldKeyEnum'](){return R;}get[_0x336728(0x1bd)](){return _0x35b90a;}get[_0x336728(0x19c)](){return _0x46b2d8;}get[_0x336728(0x18c)](){return _0x4e80c8;}get[_0x336728(0x236)](){return _0xd4945d;}get[_0x336728(0x20e)](){return _0x4baab9;}get['BaseEventSource'](){return _0x4fe3fa;}get['BaseHierarchyErrorCode'](){return _0x3d171b;}get['BaseHierarchyInvalidReason'](){return _0x1c2958;}get['BaseRecordLinkRole'](){return _0x523fee;}};_0x530ba6['extend'](nt);var rt=class extends _0x23c09b{get[_0x336728(0x21c)](){const _0x5b38ad=_0x336728;return _0x5b38ad(0x21c);}get[_0x336728(0x1ed)](){const _0x15a6c5=_0x336728;return _0x15a6c5(0x1ed);}get[_0x336728(0x1c2)](){const _0x54c677=_0x336728;return _0x54c677(0x1c2);}get[_0x336728(0x263)](){const _0x3ee009=_0x336728;return _0x3ee009(0x263);}get[_0x336728(0x26d)](){const _0x29d3d9=_0x336728;return _0x29d3d9(0x26d);}get[_0x336728(0x1dc)](){return'BeforeBaseTableRecordCreate';}get[_0x336728(0x239)](){const _0x4dd864=_0x336728;return _0x4dd864(0x239);}get[_0x336728(0x276)](){const _0x3d9a65=_0x336728;return _0x3d9a65(0x276);}get[_0x336728(0x220)](){const _0x42d6c5=_0x336728;return _0x42d6c5(0x220);}get[_0x336728(0x223)](){return'BeforeBaseTableCellValueChange';}get[_0x336728(0x295)](){return'BaseHierarchyChanged';}get[_0x336728(0x215)](){return'BeforeBaseHierarchyChange';}};_0x23c09b['extend'](rt);export{R as BaseFieldKeyEnum,Q as FBase,Z as FBaseTable,L as FBaseTableField,q as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,rt as FBasesEventNameMixin,H as resolveBaseFieldKey,B as resolveBaseFieldValues};
1
+ const _0x2437d5=_0xe2d7;(function(_0x2ec826,_0x49ef6b){const _0x4e650f=_0xe2d7,_0x7c6431=_0x2ec826();while(!![]){try{const _0x292bd0=-parseInt(_0x4e650f(0x1ef))/0x1*(parseInt(_0x4e650f(0x30a))/0x2)+parseInt(_0x4e650f(0x20b))/0x3+parseInt(_0x4e650f(0x23b))/0x4+-parseInt(_0x4e650f(0x2dd))/0x5+parseInt(_0x4e650f(0x2a0))/0x6*(-parseInt(_0x4e650f(0x32b))/0x7)+-parseInt(_0x4e650f(0x26e))/0x8*(parseInt(_0x4e650f(0x212))/0x9)+parseInt(_0x4e650f(0x2c5))/0xa*(parseInt(_0x4e650f(0x316))/0xb);if(_0x292bd0===_0x49ef6b)break;else _0x7c6431['push'](_0x7c6431['shift']());}catch(_0x28001c){_0x7c6431['push'](_0x7c6431['shift']());}}}(_0xf2c5,0x1c989));import{ApplyBaseJson1Mutation as _0x2cd8cd,BASE_TABLE_NAME_REQUIREMENTS as _0x1ac4a5,BaseConditionalColorRuleUpdateType as _0x56cd0d,BaseEventSource as _0x314bee,BaseHierarchyErrorCode as _0x104d26,BatchCreateBaseRecordsCommand as _0x27fe40,BatchDeleteBaseRecordsCommand as _0x4b1f8d,ChangeBaseFieldTypeCommand as _0x90a7a1,CreateBaseChildRecordCommand as _0x331bff,CreateBaseFieldCommand as _0x366cc7,CreateBaseRecordCommand as _0x56c7de,CreateBaseTableCommand as _0x550a64,CreateBaseViewCommand as _0x56d066,DeleteBaseFieldCommand as _0x3c95bf,DeleteBaseRecordCommand as _0x20f420,DeleteBaseTableCommand as _0xe693ee,DeleteBaseViewCommand as _0x41a3fa,DuplicateBaseRecordCommand as _0x22ec88,IBaseProjectionService as _0xb65b4f,MoveBaseFieldCommand as _0x489c75,MoveBaseHierarchyRecordCommand as _0x5314b7,MoveBaseViewCommand as _0x256cb9,RenameBaseTableCommand as _0x1cf244,RenameBaseViewCommand as _0x3832ae,SetBaseNameCommand as _0x235f7e,SetBaseRangeValuesCommand as _0x3cc9ba,SetBaseRecordValuesCommand as _0x226aa6,SetBaseTableHierarchyFieldCommand as _0x4c3304,SetBaseViewFieldOrderCommand as _0x201662,SetBaseViewFieldVisibleCommand as _0x1144b1,SetBaseViewFieldWidthCommand as _0x216e94,SetBaseViewFilterCommand as _0x2820e7,SetBaseViewGroupCommand as _0x48e9c7,SetBaseViewSortCommand as _0x12b8da,UpdateBaseCellCommand as _0x1b302a,UpdateBaseFieldCommand as _0x36bc2a,UpdateBaseRecordOrderCommand as _0x5393fe,UpdateBaseViewConditionalColorRulesCommand as _0x422212,UpdateBaseViewConfigCommand as _0x56aaa0,ValidateBaseFormulaCommand as _0x509e7e,buildBaseHierarchyIndex as _0x5ea354,copyBaseTableSnapshot as _0x3c3ee,createUniqueBaseTableName as _0x483446,ensureBaseTableCellLayout as _0x3a2549,getActiveBaseHierarchyFieldIds as _0x23130b,getBaseCellValue as _0x25cc0c,getBaseFormulaTableName as _0x52635f,getBaseHierarchyDeletePromotions as _0x534b36,getRecordLinkFieldConfig as _0x120b63,matchesBaseCondition as _0x5572d0,parseRecordLinkIds as _0xd9ece7,resolveBaseHierarchyFieldId as _0x28b4f1,resolveBaseRangeHierarchyPatches as _0x38c8b5,searchBaseTable as _0x3c3e7f,serializeRecordLinkIds as _0x3ae929,validateBaseHierarchyRecordCreations as _0x7b8b9c,validateBaseHierarchyRecordPatches as _0x4eb78a,validateBaseTableName as _0x313fe0,validateRecordLinkValue as _0x5e8e1a}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x31490b,BaseConditionalColorOperator as _0x1b4b6a,BaseConditionalColorTarget as _0x150b55,BaseConditionalDateMode as _0x59106c,BaseFieldType as _0x4ffd63,BaseFilterConjunction as _0x32065f,BaseFilterOperator as _0x1fe8e4,BaseHierarchyInvalidReason as _0x443457,BaseRecordLinkRole as _0xb99381,BaseSortDirection as _0x109e0b,BaseViewType as _0x206a78,CanceledError as _0x48a411,ICommandService as _0x4b711b,IResourceLoaderService as _0x4f6253,ImageSourceType as _0x56167c,Inject as _0x4604ee,Injector as _0xe12cbe,Tools as _0x58a75c,UniverInstanceType as _0x5e3bb9,createDefaultBaseTableSnapshot as _0x44e8c9,generateRandomId as _0x20bc4d}from'@univerjs/core';import{FEnum as _0xa0491f,FEventName as _0x230a28,FUniver as _0x9a9f06}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x242f30}from'@univerjs-pro/engine-formula';function R(_0x23fc47,_0x1d0c80){return function(_0x25a196,_0x565584){_0x1d0c80(_0x25a196,_0x565584,_0x23fc47);};}function z(_0x517c36,_0x5b9934,_0x28fe41,_0x1e1f66){const _0x95f8d0=_0xe2d7;var _0x24cccf=arguments[_0x95f8d0(0x220)],_0x8138fc=_0x24cccf<0x3?_0x5b9934:_0x1e1f66===null?_0x1e1f66=Object[_0x95f8d0(0x31c)](_0x5b9934,_0x28fe41):_0x1e1f66,_0xb6698f;if(typeof Reflect==_0x95f8d0(0x317)&&typeof Reflect['decorate']==_0x95f8d0(0x2b8))_0x8138fc=Reflect['decorate'](_0x517c36,_0x5b9934,_0x28fe41,_0x1e1f66);else{for(var _0x19b6f4=_0x517c36[_0x95f8d0(0x220)]-0x1;_0x19b6f4>=0x0;_0x19b6f4--)(_0xb6698f=_0x517c36[_0x19b6f4])&&(_0x8138fc=(_0x24cccf<0x3?_0xb6698f(_0x8138fc):_0x24cccf>0x3?_0xb6698f(_0x5b9934,_0x28fe41,_0x8138fc):_0xb6698f(_0x5b9934,_0x28fe41))||_0x8138fc);}return _0x24cccf>0x3&&_0x8138fc&&Object[_0x95f8d0(0x32a)](_0x5b9934,_0x28fe41,_0x8138fc),_0x8138fc;}let B=class{constructor(_0x4660f8,_0x196751,_0x52afdd,_0xa468c8){const _0x49ef73=_0xe2d7;this['_base']=_0x4660f8,this[_0x49ef73(0x284)]=_0x196751,this[_0x49ef73(0x305)]=_0x52afdd,this[_0x49ef73(0x297)]=_0xa468c8;}[_0x2437d5(0x301)](){return this['_fieldId'];}[_0x2437d5(0x240)](){const _0x3db457=_0x2437d5;return this[_0x3db457(0x236)]();}['getName'](){const _0x1b52c5=_0x2437d5;return this[_0x1b52c5(0x236)]()[_0x1b52c5(0x2f8)];}[_0x2437d5(0x31b)](){const _0x4ba08c=_0x2437d5;return this[_0x4ba08c(0x236)]()['type'];}[_0x2437d5(0x314)](){const _0x594fa6=_0x2437d5;return this[_0x594fa6(0x236)]()[_0x594fa6(0x293)];}[_0x2437d5(0x2b6)](){const _0x3bb064=_0x2437d5;return this['_getField']()[_0x3bb064(0x2db)];}[_0x2437d5(0x2fd)](){const _0x3bf1d7=_0x2437d5;return this[_0x3bf1d7(0x236)]()['description'];}[_0x2437d5(0x230)](){const _0x12533a=_0x2437d5;return!!this[_0x12533a(0x236)]()[_0x12533a(0x1eb)];}['setName'](_0x5984e5){const _0x3b2301=_0x2437d5;return this[_0x3b2301(0x270)]({'name':_0x5984e5});}['setConfig'](_0x2887c0,_0x121c67){const _0x1e0143=_0x2437d5;return this[_0x1e0143(0x270)]({'config':_0x2887c0},_0x121c67);}[_0x2437d5(0x1ff)](_0x163c8a){const _0x5ac852=_0x2437d5;return this[_0x5ac852(0x270)]({'defaultValue':_0x163c8a});}[_0x2437d5(0x270)](_0x40b9c0,_0x37fa52){const _0x2c41ee=_0x2437d5;let _0x3d3ef0=this[_0x2c41ee(0x236)]()[_0x2c41ee(0x24d)];return(_0x40b9c0[_0x2c41ee(0x24d)]??_0x3d3ef0)===_0x4ffd63[_0x2c41ee(0x214)]&&(Object[_0x2c41ee(0x2fe)][_0x2c41ee(0x296)][_0x2c41ee(0x2ca)](_0x40b9c0,_0x2c41ee(0x293))||_0x40b9c0[_0x2c41ee(0x24d)]===_0x4ffd63['Formula'])&&!this[_0x2c41ee(0x22b)](_0x37fa52)?!0x1:this[_0x2c41ee(0x297)]['syncExecuteCommand'](_0x36bc2a['id'],{'unitId':this[_0x2c41ee(0x202)][_0x2c41ee(0x301)](),'tableId':this['_table'][_0x2c41ee(0x301)](),'fieldId':this[_0x2c41ee(0x305)],'patch':_0x40b9c0});}[_0x2437d5(0x271)](_0x44d04a,_0x31abb2={},_0x338b63){const _0x413481=_0x2437d5;return _0x44d04a===_0x4ffd63[_0x413481(0x214)]&&!this[_0x413481(0x22b)](_0x338b63)?!0x1:this[_0x413481(0x297)][_0x413481(0x2e0)](_0x90a7a1['id'],{'unitId':this[_0x413481(0x202)]['getId'](),'tableId':this[_0x413481(0x284)][_0x413481(0x301)](),'fieldId':this[_0x413481(0x305)],'input':{'type':_0x44d04a,'config':_0x31abb2}});}['delete'](){const _0x696396=_0x2437d5;return this[_0x696396(0x297)]['syncExecuteCommand'](_0x3c95bf['id'],{'unitId':this['_base'][_0x696396(0x301)](),'tableId':this[_0x696396(0x284)][_0x696396(0x301)](),'fieldId':this['_fieldId']});}[_0x2437d5(0x2e5)](_0x2437ce){const _0x127ae4=_0x2437d5;return this['_commandService'][_0x127ae4(0x2e0)](_0x489c75['id'],{'unitId':this[_0x127ae4(0x202)][_0x127ae4(0x301)](),'tableId':this[_0x127ae4(0x284)][_0x127ae4(0x301)](),'fieldId':this['_fieldId'],'target':_0x2437ce});}[_0x2437d5(0x236)](){const _0x3f8ad3=_0x2437d5;let _0x5e6608=this[_0x3f8ad3(0x284)][_0x3f8ad3(0x298)]()[_0x3f8ad3(0x278)][this[_0x3f8ad3(0x305)]];if(!_0x5e6608)throw Error(_0x3f8ad3(0x225)+this[_0x3f8ad3(0x305)]+_0x3f8ad3(0x251));return _0x5e6608;}[_0x2437d5(0x22b)](_0x2f1fbc){const _0x19f3d6=_0x2437d5;if(!_0x2f1fbc||!Array[_0x19f3d6(0x26a)](_0x2f1fbc[_0x19f3d6(0x1fb)]))return console[_0x19f3d6(0x229)](_0x19f3d6(0x226)),!0x1;if(_0x2f1fbc[_0x19f3d6(0x1fb)][_0x19f3d6(0x220)]===0x0)return!0x0;let _0x447403=this['_commandService']['syncExecuteCommand'](_0x242f30['id'],{'unitId':this[_0x19f3d6(0x202)]['getId'](),'references':_0x2f1fbc[_0x19f3d6(0x1fb)]});return _0x447403||console[_0x19f3d6(0x229)](_0x19f3d6(0x324)),_0x447403;}};B=z([R(0x3,_0x4b711b)],B);let Ke=function(_0x517343){const _0x1822b0=_0x2437d5;return _0x517343['Id']='id',_0x517343[_0x1822b0(0x20e)]=_0x1822b0(0x2f8),_0x517343[_0x1822b0(0x28c)]=_0x1822b0(0x2a6),_0x517343;}({});function V(_0x322420){const _0x333a60=_0x2437d5;return!!(_0x322420&&_0x322420[_0x333a60(0x282)]!==!0x0&&_0x322420[_0x333a60(0x24d)]!==_0x4ffd63['RecordId']);}function H(_0x320e07,_0x43c680,_0x5b56a5='id'){const _0x162e26=_0x2437d5;if(!_0x43c680)return{};let _0x2c84e7={};return Object['entries'](_0x43c680)[_0x162e26(0x29f)](([_0xf845f0,_0xb7cff3])=>{const _0x32d493=_0x162e26;let _0xb48f3=Je(_0x320e07,_0xf845f0,_0x5b56a5);_0x2c84e7[_0xb48f3]=qe(_0x320e07[_0x32d493(0x278)][_0xb48f3],_0xb7cff3);}),_0x2c84e7;}function qe(_0x3b4f7e,_0x51dfd6){const _0x4a94bb=_0x2437d5;if((_0x3b4f7e==null?void 0x0:_0x3b4f7e['type'])!==_0x4ffd63['Attachment']||_0x51dfd6==null)return _0x51dfd6;if(!Array[_0x4a94bb(0x26a)](_0x51dfd6))throw TypeError(_0x4a94bb(0x279)+_0x3b4f7e[_0x4a94bb(0x2f8)]+_0x4a94bb(0x1f3));return _0x51dfd6[_0x4a94bb(0x213)]((_0x452f0f,_0xb5fb09)=>Ye(_0x3b4f7e,_0x452f0f,_0xb5fb09));}function Je(_0x3b855c,_0x430d97,_0x4de1a6){const _0x4ee69d=_0x2437d5;if(_0x4de1a6==='id'||_0x4de1a6===_0x4ee69d(0x2a6)&&_0x3b855c[_0x4ee69d(0x278)][_0x430d97])return _0x430d97;let _0x3778c7=Object[_0x4ee69d(0x231)](_0x3b855c['fields'])[_0x4ee69d(0x262)](_0x487b30=>_0x487b30['name']===_0x430d97);if(_0x3778c7['length']===0x1)return _0x3778c7[0x0]['id'];throw _0x3778c7[_0x4ee69d(0x220)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x430d97):Error(_0x4ee69d(0x27c)+_0x430d97);}function Ye(_0x53f784,_0x5f110d,_0x503d34){const _0x465e81=_0x2437d5;let _0x50f87b=_0x465e81(0x249)+_0x503d34+_0x465e81(0x2e2)+_0x53f784[_0x465e81(0x2f8)]+'\x22';if(!Qe(_0x5f110d))throw TypeError(_0x50f87b+':\x20expected\x20an\x20object.');if(_0x465e81(0x2d2)in _0x5f110d)throw TypeError(_0x50f87b+_0x465e81(0x27a));if(_0x465e81(0x24d)in _0x5f110d)throw TypeError(_0x50f87b+_0x465e81(0x1f2));let _0x2cc49d=U(_0x5f110d['id'],_0x50f87b,'id'),_0xd2e84b=U(_0x5f110d[_0x465e81(0x2f8)],_0x50f87b,_0x465e81(0x2f8)),_0x5e030c=U(_0x5f110d[_0x465e81(0x2ef)],_0x50f87b,_0x465e81(0x2ef));return{'id':_0x2cc49d,'name':_0xd2e84b,'source':_0x5e030c,'sourceType':Xe(_0x5f110d[_0x465e81(0x2b5)],_0x5e030c,_0x50f87b),...Ze(_0x5f110d,'mimeType',_0x50f87b),...W(_0x5f110d,_0x465e81(0x24b),_0x50f87b),...W(_0x5f110d,_0x465e81(0x32f),_0x50f87b),...W(_0x5f110d,_0x465e81(0x319),_0x50f87b),...Ze(_0x5f110d,_0x465e81(0x200),_0x50f87b)};}function Xe(_0x3b72a4,_0x10f87c,_0x45ab3d){const _0x4267dd=_0x2437d5;if(_0x3b72a4==null)return _0x10f87c['startsWith']('data:')?_0x56167c[_0x4267dd(0x2c2)]:_0x56167c['URL'];if(_0x3b72a4===_0x56167c[_0x4267dd(0x2ea)]||_0x3b72a4===_0x56167c[_0x4267dd(0x273)]||_0x3b72a4===_0x56167c[_0x4267dd(0x2c2)])return _0x3b72a4;throw TypeError(_0x45ab3d+_0x4267dd(0x1ec));}function U(_0x48ceb5,_0x4f4472,_0x174074){const _0x4b8939=_0x2437d5;if(typeof _0x48ceb5!=_0x4b8939(0x331)||!_0x48ceb5[_0x4b8939(0x2bc)]())throw TypeError(_0x4f4472+_0x4b8939(0x2d5)+_0x174074+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x48ceb5;}function Ze(_0x44160c,_0x5099ae,_0x17a3cb){const _0xbc9d24=_0x2437d5;let _0x2d035d=_0x44160c[_0x5099ae];if(_0x2d035d==null)return{};if(typeof _0x2d035d!=_0xbc9d24(0x331)||!_0x2d035d[_0xbc9d24(0x2bc)]())throw TypeError(_0x17a3cb+':\x20\x22'+_0x5099ae+_0xbc9d24(0x2ee));return{[_0x5099ae]:_0x2d035d};}function W(_0x1fbd31,_0x2ece73,_0x672398){const _0x36cecb=_0x2437d5;let _0x416424=_0x1fbd31[_0x2ece73];if(_0x416424==null)return{};if(typeof _0x416424!='number'||!Number[_0x36cecb(0x218)](_0x416424)||_0x416424<0x0)throw TypeError(_0x672398+':\x20\x22'+_0x2ece73+_0x36cecb(0x2ec));return{[_0x2ece73]:_0x416424};}function Qe(_0x52d671){const _0x3b3545=_0x2437d5;return typeof _0x52d671==_0x3b3545(0x317)&&!!_0x52d671&&!Array[_0x3b3545(0x26a)](_0x52d671);}var G;let K=G=class{constructor(_0x196f1d,_0x48bbec,_0x467d63,_0x593ddf,_0x3b6aee){const _0x2c41e0=_0x2437d5;this['_base']=_0x196f1d,this['_table']=_0x48bbec,this[_0x2c41e0(0x280)]=_0x467d63,this[_0x2c41e0(0x1fe)]=_0x593ddf,this[_0x2c41e0(0x297)]=_0x3b6aee,this[_0x2c41e0(0x211)]();}[_0x2437d5(0x1f0)](){const _0x719ae6=_0x2437d5;return this[_0x719ae6(0x202)]['getId']();}[_0x2437d5(0x2fc)](){const _0x29ee45=_0x2437d5;return this[_0x29ee45(0x284)][_0x29ee45(0x301)]();}[_0x2437d5(0x291)](){const _0x3285cc=_0x2437d5;return{...this[_0x3285cc(0x280)]};}[_0x2437d5(0x210)](){return this['_range']['startRow'];}[_0x2437d5(0x21f)](){const _0x1b8428=_0x2437d5;return this[_0x1b8428(0x280)][_0x1b8428(0x30f)];}[_0x2437d5(0x30c)](){const _0x56eaa4=_0x2437d5;return this[_0x56eaa4(0x280)][_0x56eaa4(0x286)]-this[_0x56eaa4(0x280)]['startRow']+0x1;}[_0x2437d5(0x328)](){const _0x107329=_0x2437d5;return this[_0x107329(0x280)][_0x107329(0x252)]-this[_0x107329(0x280)][_0x107329(0x30f)]+0x1;}['getValues'](){const _0x291b57=_0x2437d5;let _0x460f5a=this['_getTable'](),_0x29e0dc=this['_getFieldIds'](_0x460f5a),_0x283c1a=[];for(let _0xb1cd43=this['_range'][_0x291b57(0x2c3)];_0xb1cd43<=this[_0x291b57(0x280)][_0x291b57(0x286)];_0xb1cd43++){var _0x42ef4c;let _0x15a6c6=(_0x42ef4c=_0x460f5a[_0x291b57(0x2ad)])==null?void 0x0:_0x42ef4c[_0xb1cd43],_0x43f35f=[];for(let _0x404423=this[_0x291b57(0x280)]['startColumn'];_0x404423<=this[_0x291b57(0x280)][_0x291b57(0x252)];_0x404423++){let _0xa59077=_0x29e0dc[_0x404423];_0x43f35f[_0x291b57(0x1fd)](_0x15a6c6&&_0xa59077?_0x25cc0c(_0x460f5a,_0x15a6c6,_0xa59077):null);}_0x283c1a[_0x291b57(0x1fd)](_0x43f35f);}return _0x283c1a;}[_0x2437d5(0x277)](){const _0x5e55c8=_0x2437d5;var _0x2827e6;return((_0x2827e6=this[_0x5e55c8(0x2e9)]()[0x0])==null?void 0x0:_0x2827e6[0x0])??null;}[_0x2437d5(0x2ae)](_0x9cf09c){const _0x4ff7c2=_0x2437d5;return this[_0x4ff7c2(0x29e)]([[_0x9cf09c]]);}[_0x2437d5(0x29e)](_0x3f7713){const _0x401305=_0x2437d5;let _0xdd67ec=this[_0x401305(0x30c)](),_0x15967a=this[_0x401305(0x328)]();if(_0x3f7713[_0x401305(0x220)]>_0xdd67ec||_0x3f7713[_0x401305(0x306)](_0xf91684=>_0xf91684[_0x401305(0x220)]>_0x15967a)){var _0x19febf;throw Error(_0x401305(0x208)+_0x3f7713[_0x401305(0x220)]+'x'+(((_0x19febf=_0x3f7713[0x0])==null?void 0x0:_0x19febf[_0x401305(0x220)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0xdd67ec+'x'+_0x15967a+'.');}let _0xbe128a=this[_0x401305(0x2dc)](),_0x1e280e=this[_0x401305(0x2a2)](_0xbe128a),_0x58389b=_0x3f7713[_0x401305(0x250)]((_0x83060b,_0x3c2b75)=>_0x83060b[_0x401305(0x213)]((_0xfefb37,_0x4380ee)=>{const _0x1d5979=_0x401305;var _0x3fe930;let _0x157124=this['_range'][_0x1d5979(0x2c3)]+_0x3c2b75,_0x1aab89=_0x1e280e[this['_range'][_0x1d5979(0x30f)]+_0x4380ee],_0x37c654=(_0x3fe930=_0xbe128a[_0x1d5979(0x2ad)])==null?void 0x0:_0x3fe930[_0x157124];if(!_0x1aab89||!_0x37c654)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x37c654,'fieldId':_0x1aab89,'value':_0xfefb37};}));return this['_commandService'][_0x401305(0x2e0)](_0x3cc9ba['id'],{'unitId':this[_0x401305(0x202)][_0x401305(0x301)](),'tableId':this[_0x401305(0x284)]['getId'](),'patches':_0x58389b,'source':_0x314bee[_0x401305(0x264)]});}['clear'](){const _0x723259=_0x2437d5;return this[_0x723259(0x29e)](Array['from']({'length':this[_0x723259(0x30c)]()},()=>Array['from']({'length':this[_0x723259(0x328)]()},()=>null)));}[_0x2437d5(0x315)](_0x10c906,_0x32783f,_0x824153=this[_0x2437d5(0x30c)](),_0x301bfa=this[_0x2437d5(0x328)]()){const _0x1df060=_0x2437d5;return this[_0x1df060(0x1fe)][_0x1df060(0x233)](G,this['_base'],this[_0x1df060(0x284)],{'startRow':this[_0x1df060(0x280)]['startRow']+_0x10c906,'startColumn':this[_0x1df060(0x280)][_0x1df060(0x30f)]+_0x32783f,'endRow':this['_range'][_0x1df060(0x2c3)]+_0x10c906+_0x824153-0x1,'endColumn':this[_0x1df060(0x280)][_0x1df060(0x30f)]+_0x32783f+_0x301bfa-0x1},this[_0x1df060(0x1fe)]);}['_getTable'](){const _0x29293d=_0x2437d5;let _0x3b71e3=this[_0x29293d(0x284)][_0x29293d(0x298)]();if(!_0x3b71e3)throw Error(_0x29293d(0x224));return _0x3a2549(_0x3b71e3);}['_assertInBounds'](){const _0xb08694=_0x2437d5;var _0x2d2a0e;let _0x4f5802=this[_0xb08694(0x2dc)](),_0x554967=((_0x2d2a0e=_0x4f5802[_0xb08694(0x256)])==null?void 0x0:_0x2d2a0e[_0xb08694(0x220)])??0x0,_0x43230a=this[_0xb08694(0x2a2)](_0x4f5802)[_0xb08694(0x220)];if(this['_range'][_0xb08694(0x2c3)]<0x0||this['_range'][_0xb08694(0x30f)]<0x0||this[_0xb08694(0x280)][_0xb08694(0x286)]<this[_0xb08694(0x280)][_0xb08694(0x2c3)]||this[_0xb08694(0x280)][_0xb08694(0x252)]<this[_0xb08694(0x280)]['startColumn']||this[_0xb08694(0x280)][_0xb08694(0x286)]>=Math[_0xb08694(0x247)](_0x554967,0x1)||this[_0xb08694(0x280)][_0xb08694(0x252)]>=Math[_0xb08694(0x247)](_0x43230a,0x1))throw Error(_0xb08694(0x1f1)+_0x554967+_0xb08694(0x2b9)+_0x43230a+_0xb08694(0x24a)+JSON['stringify'](this[_0xb08694(0x280)])+'.');}[_0x2437d5(0x2a2)](_0x322cbd){const _0xdd8d05=_0x2437d5;return _0x322cbd['fieldOrder'][_0xdd8d05(0x262)](_0x100a30=>V(_0x322cbd['fields'][_0x100a30]));}};K=G=z([R(0x4,_0x4b711b)],K);var q;let J=q=class{constructor(_0x317822,_0x4f9356,_0x198632,_0x250bba,_0x3d54c6){const _0x2c3b54=_0x2437d5;this['_base']=_0x317822,this[_0x2c3b54(0x284)]=_0x4f9356,this[_0x2c3b54(0x265)]=_0x198632,this['_inject']=_0x250bba,this[_0x2c3b54(0x297)]=_0x3d54c6;}['getId'](){const _0x1da2f9=_0x2437d5;return this[_0x1da2f9(0x265)];}[_0x2437d5(0x2c7)](){const _0xb4512a=_0x2437d5;return{...this['_getRecord'](),'values':this[_0xb4512a(0x2e9)]()};}[_0x2437d5(0x277)](_0x40ea33){const _0x5cabec=_0x2437d5;return V(this[_0x5cabec(0x284)][_0x5cabec(0x298)]()[_0x5cabec(0x278)][_0x40ea33])?this[_0x5cabec(0x2c1)]()[_0x5cabec(0x231)][_0x40ea33]??null:null;}[_0x2437d5(0x2e9)](){const _0xdbf1a9=_0x2437d5;let _0x21e36d=this['_table']['getTable']();return Object['fromEntries'](Object[_0xdbf1a9(0x237)](this['_getRecord']()[_0xdbf1a9(0x231)])[_0xdbf1a9(0x262)](([_0x8bb9c7])=>V(_0x21e36d['fields'][_0x8bb9c7])));}[_0x2437d5(0x2ae)](_0x529166,_0x59510e){const _0x118b7a=_0x2437d5;let _0x44101f=this[_0x118b7a(0x284)][_0x118b7a(0x298)]()[_0x118b7a(0x278)][_0x529166];return this[_0x118b7a(0x297)][_0x118b7a(0x2e0)](_0x1b302a['id'],{'unitId':this[_0x118b7a(0x202)][_0x118b7a(0x301)](),'tableId':this[_0x118b7a(0x284)][_0x118b7a(0x301)](),'recordId':this[_0x118b7a(0x265)],'fieldId':_0x529166,'value':qe(_0x44101f,_0x59510e),'source':_0x314bee[_0x118b7a(0x264)]});}['setAttachments'](_0x204b8c,_0x39ee91){const _0x293d03=_0x2437d5;return this[_0x293d03(0x2ae)](_0x204b8c,_0x39ee91[_0x293d03(0x213)](_0x1a1a5c=>({..._0x1a1a5c})));}['setValues'](_0x28d88f,_0x49613a='id'){const _0x169f16=_0x2437d5;let _0x19c180=this['_table']['getTable'](),_0x18f7dd=[{'recordId':this['_recordId'],'values':H(_0x19c180,_0x28d88f,_0x49613a)}];return this['_commandService'][_0x169f16(0x2e0)](_0x226aa6['id'],{'unitId':this[_0x169f16(0x202)][_0x169f16(0x301)](),'tableId':this[_0x169f16(0x284)][_0x169f16(0x301)](),'patches':_0x18f7dd,'source':_0x314bee[_0x169f16(0x264)]});}[_0x2437d5(0x2cb)](){const _0x1de9f1=_0x2437d5;return this['_commandService'][_0x1de9f1(0x2e0)](_0x20f420['id'],{'unitId':this['_base'][_0x1de9f1(0x301)](),'tableId':this[_0x1de9f1(0x284)][_0x1de9f1(0x301)](),'recordId':this['_recordId'],'source':_0x314bee[_0x1de9f1(0x264)]});}[_0x2437d5(0x310)](_0x1c4a30){const _0x792380=_0x2437d5;let _0x5d2d0e={...this[_0x792380(0x2c1)](),..._0x1c4a30,'id':_0x20bc4d(0x6)};_0x5d2d0e[_0x792380(0x231)]={..._0x5d2d0e[_0x792380(0x231)],..._0x1c4a30==null?void 0x0:_0x1c4a30[_0x792380(0x231)]},Reflect[_0x792380(0x1ee)](_0x5d2d0e['values'],_0x31490b);let _0x158f49=Date[_0x792380(0x28a)]();if(_0x5d2d0e['orderKey']||=''+_0x158f49,_0x5d2d0e['createdAt']||=_0x158f49,_0x5d2d0e['updatedAt']||=_0x158f49,!this[_0x792380(0x297)][_0x792380(0x2e0)](_0x22ec88['id'],{'unitId':this[_0x792380(0x202)]['getId'](),'tableId':this[_0x792380(0x284)][_0x792380(0x301)](),'sourceRecordId':this['_recordId'],'record':_0x5d2d0e,'source':_0x314bee[_0x792380(0x264)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x792380(0x265)]+'\x22.');return this[_0x792380(0x1fe)][_0x792380(0x233)](q,this[_0x792380(0x202)],this[_0x792380(0x284)],_0x5d2d0e['id'],this[_0x792380(0x1fe)]);}[_0x2437d5(0x2b2)](_0x134d85){const _0x149d94=_0x2437d5;return this[_0x149d94(0x297)][_0x149d94(0x2e0)](_0x5393fe['id'],{'unitId':this[_0x149d94(0x202)][_0x149d94(0x301)](),'tableId':this['_table']['getId'](),'recordId':this[_0x149d94(0x265)],'orderKey':_0x134d85});}[_0x2437d5(0x2fb)](_0x1d55bb){const _0x5a9241=_0x2437d5;let _0x490584=this[_0x5a9241(0x32d)](_0x1d55bb);return _0xd9ece7(this[_0x5a9241(0x277)](_0x490584['id']));}['setLinkedRecordIds'](_0x521e39,_0x206882){const _0x54e7e9=_0x2437d5;let _0x525fa0=this[_0x54e7e9(0x32d)](_0x521e39),_0x82f575=_0x3ae929(_0x206882),_0x47f2d3=_0x5e8e1a(this[_0x54e7e9(0x202)][_0x54e7e9(0x241)]()[_0x54e7e9(0x30d)](),_0x525fa0,_0x82f575);if(!_0x47f2d3[_0x54e7e9(0x21b)])throw Error(_0x47f2d3['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x54e7e9(0x297)]['syncExecuteCommand'](_0x1b302a['id'],{'unitId':this[_0x54e7e9(0x202)][_0x54e7e9(0x301)](),'tableId':this['_table'][_0x54e7e9(0x301)](),'recordId':this[_0x54e7e9(0x265)],'fieldId':_0x521e39,'value':_0x82f575,'source':_0x314bee[_0x54e7e9(0x264)]});}['addLinkedRecord'](_0x660f8f,_0xbadff8){const _0x32e6d6=_0x2437d5;let _0x4a095a=_0x120b63(this[_0x32e6d6(0x32d)](_0x660f8f));if(!_0x4a095a)throw Error(_0x32e6d6(0x2c0)+_0x660f8f+_0x32e6d6(0x309));let _0x247d54=this[_0x32e6d6(0x2fb)](_0x660f8f);return _0x4a095a[_0x32e6d6(0x244)]&&_0x247d54[_0x32e6d6(0x2c6)](_0xbadff8)?!0x0:this[_0x32e6d6(0x2d8)](_0x660f8f,_0x4a095a[_0x32e6d6(0x244)]?[..._0x247d54,_0xbadff8]:[_0xbadff8]);}[_0x2437d5(0x292)](_0x530267,_0xdf0285){const _0x5d0511=_0x2437d5;let _0x37add6=this[_0x5d0511(0x2fb)](_0x530267);return!_0x37add6[_0x5d0511(0x2c6)](_0xdf0285)||this[_0x5d0511(0x2d8)](_0x530267,_0x37add6['filter'](_0x2005e9=>_0x2005e9!==_0xdf0285));}[_0x2437d5(0x2f5)](_0x7aec7a){const _0x27df23=_0x2437d5;let _0x3118c8=this[_0x27df23(0x235)](_0x7aec7a)[_0x27df23(0x1fc)][_0x27df23(0x2a5)](this[_0x27df23(0x265)])??null;return _0x3118c8?this[_0x27df23(0x284)][_0x27df23(0x2d3)](_0x3118c8):null;}[_0x2437d5(0x29c)](_0x8642c0){const _0x580110=_0x2437d5;return(this[_0x580110(0x235)](_0x8642c0)[_0x580110(0x239)]['get'](this['_recordId'])??[])[_0x580110(0x250)](_0x55cd4f=>{const _0x127e67=_0x580110;let _0x15be98=this['_table'][_0x127e67(0x2d3)](_0x55cd4f);return _0x15be98?[_0x15be98]:[];});}['getAncestors'](_0x3f1b30){const _0x4971f6=_0x2437d5;let _0x476941=this[_0x4971f6(0x235)](_0x3f1b30),_0x22fce1=[],_0x3afb32=_0x476941[_0x4971f6(0x1fc)][_0x4971f6(0x2a5)](this[_0x4971f6(0x265)])??null;for(;_0x3afb32;){let _0x19294a=this[_0x4971f6(0x284)][_0x4971f6(0x2d3)](_0x3afb32);_0x19294a&&_0x22fce1[_0x4971f6(0x1fd)](_0x19294a),_0x3afb32=_0x476941[_0x4971f6(0x1fc)]['get'](_0x3afb32)??null;}return _0x22fce1;}[_0x2437d5(0x205)](_0xb877b3){const _0x56ec71=_0x2437d5;let _0x2e0e8c=this[_0x56ec71(0x235)](_0xb877b3),_0x8c3fec=_0x2e0e8c['orderedRecordIds']['indexOf'](this['_recordId']),_0x1abacc=_0x2e0e8c['subtreeHeightByRecordId'][_0x56ec71(0x28b)](this[_0x56ec71(0x265)])?this[_0x56ec71(0x216)](_0x2e0e8c[_0x56ec71(0x239)],this[_0x56ec71(0x265)]):[];return _0x8c3fec<0x0?[]:_0x1abacc[_0x56ec71(0x250)](_0x2fc742=>{const _0x51a1a5=_0x56ec71;let _0x36d127=this[_0x51a1a5(0x284)][_0x51a1a5(0x2d3)](_0x2fc742);return _0x36d127?[_0x36d127]:[];});}[_0x2437d5(0x25c)](_0x3c95d7,_0x30b83a,_0x2022ea){const _0x5ee13c=_0x2437d5;return this[_0x5ee13c(0x297)][_0x5ee13c(0x2e0)](_0x5314b7['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5ee13c(0x284)]['getId'](),'fieldId':_0x3c95d7,'recordId':this[_0x5ee13c(0x265)],'parentRecordId':_0x30b83a,'orderKey':_0x2022ea,'source':_0x314bee[_0x5ee13c(0x264)]});}[_0x2437d5(0x27e)](_0x4042a6,_0x452f73,_0x7a0616='id',_0x44a19b){const _0x75377e=_0x2437d5;let _0x5783ed=this[_0x75377e(0x284)][_0x75377e(0x298)](),_0x301139=Date[_0x75377e(0x28a)](),_0x11ca48={..._0x44a19b,'id':_0x20bc4d(0x6),'values':H(_0x5783ed,_0x452f73,_0x7a0616),'orderKey':(_0x44a19b==null?void 0x0:_0x44a19b['orderKey'])||''+_0x301139,'createdAt':(_0x44a19b==null?void 0x0:_0x44a19b[_0x75377e(0x222)])||_0x301139,'updatedAt':(_0x44a19b==null?void 0x0:_0x44a19b[_0x75377e(0x25b)])||_0x301139};if(!this[_0x75377e(0x297)]['syncExecuteCommand'](_0x331bff['id'],{'unitId':this[_0x75377e(0x202)]['getId'](),'tableId':this[_0x75377e(0x284)]['getId'](),'fieldId':_0x4042a6,'parentRecordId':this[_0x75377e(0x265)],'record':_0x11ca48,'source':_0x314bee[_0x75377e(0x264)]}))throw Error(_0x75377e(0x2f9)+this[_0x75377e(0x265)]+'\x22.');return this[_0x75377e(0x1fe)]['createInstance'](q,this[_0x75377e(0x202)],this['_table'],_0x11ca48['id'],this['_inject']);}['_getHierarchyIndex'](_0x1d9484){const _0x37fdaa=_0x2437d5;return _0x5ea354(this[_0x37fdaa(0x284)]['getTable'](),_0x1d9484);}[_0x2437d5(0x216)](_0x54a173,_0x5577f2){let _0x192f46=[],_0xc93be2=_0x322c2d=>{const _0x347066=_0xe2d7;for(let _0x1530aa of _0x54a173[_0x347066(0x2a5)](_0x322c2d)??[])_0x192f46[_0x347066(0x1fd)](_0x1530aa),_0xc93be2(_0x1530aa);};return _0xc93be2(_0x5577f2),_0x192f46;}[_0x2437d5(0x2c1)](){const _0x3090d8=_0x2437d5;let _0x40cbd7=this[_0x3090d8(0x284)][_0x3090d8(0x298)]()[_0x3090d8(0x23c)][this[_0x3090d8(0x265)]];if(!_0x40cbd7)throw Error(_0x3090d8(0x234)+this[_0x3090d8(0x265)]+_0x3090d8(0x251));return _0x40cbd7;}[_0x2437d5(0x32d)](_0x1fdbde){const _0x2fffc0=_0x2437d5;let _0x382214=this[_0x2fffc0(0x284)][_0x2fffc0(0x298)]()[_0x2fffc0(0x278)][_0x1fdbde];if(!_0x382214||_0x382214[_0x2fffc0(0x24d)]!==_0x4ffd63[_0x2fffc0(0x28d)])throw Error(_0x2fffc0(0x2ab)+_0x1fdbde+_0x2fffc0(0x285));return _0x382214;}};J=q=z([R(0x4,_0x4b711b)],J);let Y=class{constructor(_0x542307,_0x43ad49,_0x39c6e1,_0x140ceb,_0x4b9816,_0x5d0de4){const _0xdcf6c5=_0x2437d5;this['_base']=_0x542307,this['_table']=_0x43ad49,this[_0xdcf6c5(0x22f)]=_0x39c6e1,this[_0xdcf6c5(0x2ed)]=_0x140ceb,this['_commandService']=_0x4b9816,this[_0xdcf6c5(0x28e)]=_0x5d0de4;}['getId'](){const _0x34021b=_0x2437d5;return this[_0x34021b(0x22f)];}[_0x2437d5(0x263)](){const _0x41b662=_0x2437d5;return this[_0x41b662(0x26b)]();}[_0x2437d5(0x21e)](){const _0x184690=_0x2437d5;return this[_0x184690(0x26b)]()[_0x184690(0x2f8)];}[_0x2437d5(0x31b)](){const _0x66b1a0=_0x2437d5;return this[_0x66b1a0(0x26b)]()['type'];}[_0x2437d5(0x1fa)](_0x18b4d9){const _0x4ada05=_0x2437d5;return this[_0x4ada05(0x297)]['syncExecuteCommand'](_0x3832ae['id'],{'unitId':this[_0x4ada05(0x202)]['getId'](),'tableId':this[_0x4ada05(0x284)][_0x4ada05(0x301)](),'viewId':this[_0x4ada05(0x22f)],'name':_0x18b4d9});}['getConfig'](){const _0x19af5c=_0x2437d5;let _0x22563e=this[_0x19af5c(0x31b)](),_0x55181b=this['_getView']()['config'];switch(_0x22563e){case _0x206a78[_0x19af5c(0x23a)]:return _0x55181b;case _0x206a78['Kanban']:return _0x55181b;case _0x206a78[_0x19af5c(0x232)]:return _0x55181b;case _0x206a78['Gantt']:return _0x55181b;case _0x206a78[_0x19af5c(0x25a)]:return _0x55181b;default:return _0x55181b;}}[_0x2437d5(0x223)](_0x1dfd7f){const _0x332bce=_0x2437d5;return this[_0x332bce(0x297)]['syncExecuteCommand'](_0x56aaa0['id'],{'unitId':this[_0x332bce(0x202)][_0x332bce(0x301)](),'tableId':this[_0x332bce(0x284)][_0x332bce(0x301)](),'viewId':this['_viewId'],'patch':_0x1dfd7f});}['getConditionalColorRules'](){const _0x4c08be=_0x2437d5;var _0x4932b6;return _0x58a75c[_0x4c08be(0x1f5)](((_0x4932b6=this[_0x4c08be(0x26b)]()[_0x4c08be(0x293)][_0x4c08be(0x2f1)])==null?void 0x0:_0x4932b6['rules'])??[]);}[_0x2437d5(0x20a)](_0x4732a9){const _0x274faa=_0x2437d5;return this[_0x274faa(0x297)][_0x274faa(0x2e0)](_0x422212['id'],{'unitId':this[_0x274faa(0x202)][_0x274faa(0x301)](),'tableId':this[_0x274faa(0x284)][_0x274faa(0x301)](),'viewId':this[_0x274faa(0x22f)],'type':_0x56cd0d[_0x274faa(0x2d4)],'rules':_0x4732a9});}[_0x2437d5(0x320)](_0x481159){const _0x2e7ed8=_0x2437d5;return this[_0x2e7ed8(0x297)]['syncExecuteCommand'](_0x422212['id'],{'unitId':this[_0x2e7ed8(0x202)]['getId'](),'tableId':this[_0x2e7ed8(0x284)][_0x2e7ed8(0x301)](),'viewId':this['_viewId'],'type':_0x56cd0d[_0x2e7ed8(0x248)],'rule':_0x481159});}['deleteConditionalColorRule'](_0x2bebc7){const _0x5ceb29=_0x2437d5;return this[_0x5ceb29(0x297)][_0x5ceb29(0x2e0)](_0x422212['id'],{'unitId':this[_0x5ceb29(0x202)][_0x5ceb29(0x301)](),'tableId':this[_0x5ceb29(0x284)][_0x5ceb29(0x301)](),'viewId':this[_0x5ceb29(0x22f)],'type':_0x56cd0d['Delete'],'ruleId':_0x2bebc7});}[_0x2437d5(0x326)](){const _0x544a4c=_0x2437d5;return this['_commandService'][_0x544a4c(0x2e0)](_0x422212['id'],{'unitId':this[_0x544a4c(0x202)][_0x544a4c(0x301)](),'tableId':this[_0x544a4c(0x284)][_0x544a4c(0x301)](),'viewId':this['_viewId'],'type':_0x56cd0d[_0x544a4c(0x330)]});}['getFilter'](){const _0x4f59a5=_0x2437d5;return this['_getView']()[_0x4f59a5(0x262)]??null;}[_0x2437d5(0x1f9)](_0x1e2701){const _0x16d465=_0x2437d5;return this[_0x16d465(0x297)]['syncExecuteCommand'](_0x2820e7['id'],{'unitId':this[_0x16d465(0x202)][_0x16d465(0x301)](),'tableId':this[_0x16d465(0x284)]['getId'](),'viewId':this['_viewId'],'filter':_0x1e2701});}[_0x2437d5(0x2fa)](){const _0x1d41a9=_0x2437d5;return this[_0x1d41a9(0x26b)]()[_0x1d41a9(0x1f4)]??[];}['setSort'](_0x4804bd){const _0x1e8881=_0x2437d5;return this[_0x1e8881(0x297)]['syncExecuteCommand'](_0x12b8da['id'],{'unitId':this['_base'][_0x1e8881(0x301)](),'tableId':this[_0x1e8881(0x284)]['getId'](),'viewId':this[_0x1e8881(0x22f)],'sort':_0x4804bd});}['getGroup'](){const _0x44d3f6=_0x2437d5;return this[_0x44d3f6(0x26b)]()[_0x44d3f6(0x281)]??[];}[_0x2437d5(0x20c)](_0x37f124){const _0x58beda=_0x2437d5;return this[_0x58beda(0x297)]['syncExecuteCommand'](_0x48e9c7['id'],{'unitId':this[_0x58beda(0x202)]['getId'](),'tableId':this[_0x58beda(0x284)][_0x58beda(0x301)](),'viewId':this[_0x58beda(0x22f)],'group':_0x37f124});}[_0x2437d5(0x238)](_0x41edb9){const _0x2f6817=_0x2437d5;var _0x2031ca;return V(this[_0x2f6817(0x284)][_0x2f6817(0x298)]()['fields'][_0x41edb9])?((_0x2031ca=this['_getView']()[_0x2f6817(0x2af)])==null?void 0x0:_0x2031ca[_0x41edb9])??{}:{};}['getVisibleFields'](){const _0x30d218=_0x2437d5;let _0x35b9c5=this[_0x30d218(0x284)][_0x30d218(0x298)](),_0x317313=this[_0x30d218(0x26b)]();return(_0x317313[_0x30d218(0x2a4)]??_0x35b9c5[_0x30d218(0x2a4)])[_0x30d218(0x262)](_0x861ede=>{const _0x4631d7=_0x30d218;var _0x30e00f;let _0x58cb05=_0x35b9c5[_0x4631d7(0x278)][_0x861ede];return V(_0x58cb05)&&!((_0x30e00f=_0x317313[_0x4631d7(0x2af)])!=null&&(_0x30e00f=_0x30e00f[_0x861ede])!=null&&_0x30e00f[_0x4631d7(0x289)]);})[_0x30d218(0x213)](_0x33806c=>this['_injector'][_0x30d218(0x233)](B,this['_base'],this['_table'],_0x33806c));}[_0x2437d5(0x2c9)](_0x70642a,_0x1a1414){const _0xdc073e=_0x2437d5;return V(this[_0xdc073e(0x284)][_0xdc073e(0x298)]()[_0xdc073e(0x278)][_0x70642a])?this['_commandService'][_0xdc073e(0x2e0)](_0x1144b1['id'],{'unitId':this[_0xdc073e(0x202)]['getId'](),'tableId':this[_0xdc073e(0x284)][_0xdc073e(0x301)](),'viewId':this[_0xdc073e(0x22f)],'fieldId':_0x70642a,'visible':_0x1a1414}):!0x1;}[_0x2437d5(0x227)](_0x586f2e,_0x332ca8){const _0x44705d=_0x2437d5;return V(this[_0x44705d(0x284)][_0x44705d(0x298)]()[_0x44705d(0x278)][_0x586f2e])?this[_0x44705d(0x297)][_0x44705d(0x2e0)](_0x216e94['id'],{'unitId':this['_base'][_0x44705d(0x301)](),'tableId':this[_0x44705d(0x284)][_0x44705d(0x301)](),'viewId':this[_0x44705d(0x22f)],'fieldId':_0x586f2e,'width':_0x332ca8}):!0x1;}[_0x2437d5(0x206)](_0x4bf986,_0x2e62f7){const _0x2a4a6a=_0x2437d5;let _0x3be257=this[_0x2a4a6a(0x284)][_0x2a4a6a(0x298)](),_0x25e5cc=_0x2e62f7[_0x2a4a6a(0x25e)]??_0x2e62f7[_0x2a4a6a(0x323)];return!V(_0x3be257['fields'][_0x4bf986])||!_0x25e5cc||!V(_0x3be257[_0x2a4a6a(0x278)][_0x25e5cc])?!0x1:this[_0x2a4a6a(0x297)][_0x2a4a6a(0x2e0)](_0x201662['id'],{'unitId':this[_0x2a4a6a(0x202)][_0x2a4a6a(0x301)](),'tableId':this[_0x2a4a6a(0x284)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x4bf986,'target':_0x2e62f7});}[_0x2437d5(0x2e5)](_0x219555){const _0x145510=_0x2437d5;return this[_0x145510(0x297)]['syncExecuteCommand'](_0x256cb9['id'],{'unitId':this[_0x145510(0x202)][_0x145510(0x301)](),'tableId':this[_0x145510(0x284)][_0x145510(0x301)](),'viewId':this['_viewId'],'target':_0x219555});}[_0x2437d5(0x2cb)](){const _0x5ced7d=_0x2437d5;return this[_0x5ced7d(0x297)][_0x5ced7d(0x2e0)](_0x41a3fa['id'],{'unitId':this[_0x5ced7d(0x202)][_0x5ced7d(0x301)](),'tableId':this[_0x5ced7d(0x284)][_0x5ced7d(0x301)](),'viewId':this['_viewId']});}[_0x2437d5(0x32c)](){const _0x2cadc4=_0x2437d5;return this[_0x2cadc4(0x28e)][_0x2cadc4(0x32c)](this[_0x2cadc4(0x202)][_0x2cadc4(0x241)]()['getSnapshot'](),this[_0x2cadc4(0x284)][_0x2cadc4(0x301)](),this[_0x2cadc4(0x22f)]);}[_0x2437d5(0x26b)](){const _0x2b4bff=_0x2437d5;let _0x30921c=this[_0x2b4bff(0x284)][_0x2b4bff(0x298)]()[_0x2b4bff(0x209)][this[_0x2b4bff(0x22f)]];if(!_0x30921c)throw Error('[FView]:\x20view\x20\x22'+this[_0x2b4bff(0x22f)]+_0x2b4bff(0x251));return _0x30921c;}};Y=z([R(0x4,_0x4b711b),R(0x5,_0xb65b4f)],Y);function _0xf2c5(){const _0x4bdea2=['length','BaseSortDirection','createdAt','updateConfig','[FBaseRange]:\x20table\x20does\x20not\x20exist.','[FField]:\x20field\x20\x22','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','setFieldWidth','index','warn','BaseEventSource','_writeFormulaExternalReferences','getViews','targetTableId','fromCollab','_viewId','isReadonly','values','Calendar','createInstance','[FRecord]:\x20record\x20\x22','_getHierarchyIndex','_getField','entries','getFieldSettings','childrenByParentId','Grid','129412vRIAxM','records','getActiveBase','every','getUnitId','getField','getBase','_initBaseAfterEvents','fieldKey','multiple','getCurrentUnitOfType','table','max','Add','Invalid\x20attachment\x20at\x20index\x20',',\x20range:\x20','size','view','type','BaseHierarchyInvalidReason','Event','flatMap','\x22\x20does\x20not\x20exist.','endColumn','Kanban','unitId','duplicateTable','recordOrder','getDataRange','regenerateViewIds','_initialize','Gallery','updatedAt','setParent','field','beforeFieldId','direction','Failed\x20to\x20add\x20field\x20\x22','_getHierarchyEventContext','filter','getView','Facade','_recordId','DESC','Failed\x20to\x20create\x20table\x20\x22','\x20Copy','limit','isArray','_getView','fireEvent','record','531064xwGjWq','BaseFieldType','update','changeType','getFormulaName','UUID','getTables','base','getHierarchyFieldId','getValue','fields','Invalid\x20attachment\x20value\x20for\x20field\x20\x22',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','orderKey','Base\x20field\x20not\x20found:\x20','hierarchyChanges','addChild','BaseTableViewCreated','_range','group','system','cancel','_table','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','endRow','BaseHierarchyChanged','BaseHierarchyErrorCode','hidden','now','has','Auto','RecordLink','_projectionService','BeforeBaseHierarchyChange','caseSensitive','getRange','removeLinkedRecord','config','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','find','hasOwnProperty','_commandService','getTable','addRecords','_univerInstanceService','_tableId','getChildren','operator','setValues','forEach','6HvnBgq','disposeWithMe','_getFieldIds','tableOrder','fieldOrder','get','auto','formula','\x22.\x20','localeCompare','_fireBeforeHierarchyChange','[FRecord]:\x20field\x20\x22','Failed\x20to\x20delete\x20table\x20\x22','rowId','setValue','fieldSettings','rows','_resourceLoaderService','setOrderKey','BaseConditionalColorTarget','deleteRecords','sourceType','getDefaultValue','BeforeBaseTableViewCreate','function',',\x20max\x20columns:\x20','reason','BaseTableCellValueChanged','trim','createView','Failed\x20to\x20add\x20records','getViewById','[FRecord]:\x20RecordLink\x20field\x20\x22','_getRecord','BASE64','startRow','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','10Zeklsg','includes','getRecord','setHierarchyField','setFieldVisible','call','delete','[FBase]:\x20table\x20\x22','params','createUnit','getFields','primaryFieldId','BeforeBaseTableFieldCreate','url','getRecordById','Set',':\x20\x22','UNIVER_BASE','save','setLinkedRecordIds','getUnit','BaseTableCreated','defaultValue','_getTable','495105FhjtMB','boolean','registerEventHandler','syncExecuteCommand','viewOrder','\x20for\x20field\x20\x22','extend','recordId','move','addRecord','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','saveUnit','getValues','URL','[FBase]:\x20invalid\x20table\x20name\x20\x22','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_injector','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','source','parentRecordId','conditionalColoring','getPrimaryField','getAllUnitsForType','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','getParent','onCommandExecuted','tables','name','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getSort','getLinkedRecordIds','getTableId','getDescription','prototype','BaseRecordLinkRole','includeRecords','getId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getPrimaryFieldId','fieldId','_fieldId','some','primaryFieldName','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','\x22\x20has\x20invalid\x20config.','213478YFBRwN','BaseConditionalColorOperator','getNumRows','getSnapshot','beforeCommandExecuted','startColumn','duplicate','addField','tableId','getFieldById','getConfig','offset','4528887VPwhTb','object','fieldIds','height','queryRecords','getType','getOwnPropertyDescriptor','getSchema','Failed\x20to\x20create\x20view\x20\x22','matches','addConditionalColorRule','BeforeBaseTableRecordCreate','viewId','afterFieldId','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','BaseTableFieldCreated','clearConditionalColorRules','Failed\x20to\x20duplicate\x20table\x20\x22','getNumColumns','BeforeBaseTableCreate','defineProperty','1419229mjprze','getProjection','_getRecordLinkField','Remote','width','Clear','string','readonly',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','BeforeBaseTableCellValueChange','deleteProperty','1fHiWQA','getBaseId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','\x22:\x20expected\x20an\x20array.','sort','deepClone','slice','Unsupported\x20Base\x20field\x20type\x20\x22','_resolveRecordIds','setFilter','setName','externalReferences','parentByRecordId','push','_inject','setDefaultValue','thumbnail','description','_base','value','_initBaseBeforeEvents','getDescendants','moveField','getBases','[FBaseRange]:\x20values\x20size\x20','views','setConditionalColorRules','443847xefGAL','setGroup','getFieldByName','Name','BaseTableRecordCreated','getRow','_assertInBounds','9PbPJVj','map','Formula','getRecords','_collectDescendantIds','from','isFinite','_prepareFormulaFieldReferences','conditions','valid','getTableById','notMatches','getName','getColumn'];_0xf2c5=function(){return _0x4bdea2;};return _0xf2c5();}let X=class{constructor(_0x2dbd41,_0x3c4614,_0x15e472,_0x58f559,_0x32b341){const _0x5968df=_0x2437d5;this['_base']=_0x2dbd41,this['_tableId']=_0x3c4614,this[_0x5968df(0x2ed)]=_0x15e472,this[_0x5968df(0x297)]=_0x58f559,this[_0x5968df(0x28e)]=_0x32b341;}[_0x2437d5(0x241)](){const _0x5d12ed=_0x2437d5;return this[_0x5d12ed(0x202)][_0x5d12ed(0x241)]();}[_0x2437d5(0x298)](){return this['_getTable']();}['getId'](){const _0x12338a=_0x2437d5;return this[_0x12338a(0x29b)];}[_0x2437d5(0x276)](){const _0x26bd4e=_0x2437d5;return _0x28b4f1(this[_0x26bd4e(0x2dc)]());}[_0x2437d5(0x2c8)](_0x3c4990){const _0x7b7fc0=_0x2437d5;return this[_0x7b7fc0(0x297)][_0x7b7fc0(0x2e0)](_0x4c3304['id'],{'unitId':this[_0x7b7fc0(0x202)][_0x7b7fc0(0x301)](),'tableId':this['_tableId'],'fieldId':_0x3c4990});}[_0x2437d5(0x21e)](){const _0x3ccf89=_0x2437d5;return this[_0x3ccf89(0x2dc)]()['name'];}[_0x2437d5(0x272)](){const _0x176a5c=_0x2437d5;let _0x449dcc=this[_0x176a5c(0x202)]['getBase']()[_0x176a5c(0x30d)]();return _0x52635f(this['_getTable'](),_0x449dcc);}[_0x2437d5(0x1fa)](_0x765c32){const _0x1d549c=_0x2437d5;let _0xdc2313=_0x313fe0(this[_0x1d549c(0x202)][_0x1d549c(0x241)]()[_0x1d549c(0x30d)](),_0x765c32,this['_tableId']);if(!_0xdc2313[_0x1d549c(0x21b)])throw Error(_0x1d549c(0x2f4)+_0x765c32+_0x1d549c(0x2a8)+_0x1ac4a5+'\x20'+_0xdc2313['reason']);return this[_0x1d549c(0x297)][_0x1d549c(0x2e0)](_0x1cf244['id'],{'unitId':this[_0x1d549c(0x202)][_0x1d549c(0x301)](),'tableId':this[_0x1d549c(0x29b)],'name':_0x765c32});}['search'](_0x5a61f3,_0x1c8839){const _0x2b3605=_0x2437d5;let _0x36e6e=this[_0x2b3605(0x202)][_0x2b3605(0x241)]()[_0x2b3605(0x30d)](),_0x3d7603=this[_0x2b3605(0x2dc)]();if(_0x1c8839){let _0x4626aa=this[_0x2b3605(0x28e)][_0x2b3605(0x32c)](_0x36e6e,this['_tableId'],_0x1c8839),_0x3babd3=_0x3d7603[_0x2b3605(0x209)][_0x1c8839],_0x199ecf=_0x5a61f3[_0x2b3605(0x318)]??ot(_0x3d7603,_0x3babd3,_0x4626aa),_0x4fb3f5=_0x2b3605(0x2b0)in _0x4626aa&&Array[_0x2b3605(0x26a)](_0x4626aa[_0x2b3605(0x2b0)])?_0x4626aa['rows']:[];return _0x3c3e7f({..._0x5a61f3,'table':_0x3d7603,'fieldIds':_0x199ecf,'rows':_0x4fb3f5});}let _0x178755=(_0x3d7603[_0x2b3605(0x256)]?_0x3d7603[_0x2b3605(0x256)]['map'](_0xb82761=>_0x3d7603[_0x2b3605(0x23c)][_0xb82761]):Object[_0x2b3605(0x231)](_0x3d7603[_0x2b3605(0x23c)])['sort']((_0x27d2cb,_0x423166)=>_0x27d2cb[_0x2b3605(0x27b)][_0x2b3605(0x2a9)](_0x423166[_0x2b3605(0x27b)])))[_0x2b3605(0x262)](_0x425c50=>_0x425c50)[_0x2b3605(0x213)](_0x190e91=>({'recordId':_0x190e91['id'],'values':_0x190e91[_0x2b3605(0x231)]})),_0x4d19fe=_0x5a61f3[_0x2b3605(0x318)]??_0x3d7603[_0x2b3605(0x2a4)][_0x2b3605(0x262)](_0x2f8268=>V(_0x3d7603['fields'][_0x2f8268]));return _0x3c3e7f({..._0x5a61f3,'table':_0x3d7603,'fieldIds':_0x4d19fe,'rows':_0x178755});}[_0x2437d5(0x303)](){const _0x259382=_0x2437d5;return this[_0x259382(0x2dc)]()[_0x259382(0x2d0)];}[_0x2437d5(0x2cf)](){const _0x22a13f=_0x2437d5;let _0x4f0f30=this[_0x22a13f(0x2dc)]();return _0x4f0f30[_0x22a13f(0x2a4)]['map'](_0x4f5fe6=>_0x4f0f30['fields'][_0x4f5fe6])['filter'](V)[_0x22a13f(0x213)](_0x284e35=>this[_0x22a13f(0x2ed)][_0x22a13f(0x233)](B,this[_0x22a13f(0x202)],this,_0x284e35['id']));}['getFieldById'](_0x364a77){const _0x4d1778=_0x2437d5;let _0x1db0d0=this[_0x4d1778(0x2dc)]()[_0x4d1778(0x278)][_0x364a77];return V(_0x1db0d0)?this[_0x4d1778(0x2ed)][_0x4d1778(0x233)](B,this[_0x4d1778(0x202)],this,_0x1db0d0['id']):null;}[_0x2437d5(0x20d)](_0x18d8c1){const _0x1fc19f=_0x2437d5;let _0x344559=this[_0x1fc19f(0x2dc)]()[_0x1fc19f(0x278)],_0x5b1be1=Object[_0x1fc19f(0x231)](_0x344559)[_0x1fc19f(0x295)](_0xd8b1ae=>V(_0xd8b1ae)&&_0xd8b1ae['name']===_0x18d8c1);return _0x5b1be1?this[_0x1fc19f(0x2ed)][_0x1fc19f(0x233)](B,this[_0x1fc19f(0x202)],this,_0x5b1be1['id']):null;}[_0x2437d5(0x2f2)](){const _0x1023f6=_0x2437d5;let _0x1e0272=this['_getTable']()[_0x1023f6(0x2d0)];return this['_injector'][_0x1023f6(0x233)](B,this[_0x1023f6(0x202)],this,_0x1e0272);}[_0x2437d5(0x311)](_0x18614d,_0x305e6e,_0x2bd858){const _0x58d05d=_0x2437d5;var _0x57ffd5,_0x380027;if(!Object[_0x58d05d(0x231)](_0x4ffd63)[_0x58d05d(0x306)](_0x8c0d64=>_0x8c0d64===_0x305e6e))throw Error(_0x58d05d(0x1f7)+String(_0x305e6e)+'\x22.');if(_0x305e6e===_0x4ffd63[_0x58d05d(0x214)]&&this[_0x58d05d(0x219)](_0x18614d,_0x2bd858),_0x305e6e===_0x4ffd63['RecordLink']&&(typeof(_0x2bd858==null||(_0x57ffd5=_0x2bd858[_0x58d05d(0x25d)])==null||(_0x57ffd5=_0x57ffd5[_0x58d05d(0x293)])==null?void 0x0:_0x57ffd5[_0x58d05d(0x22d)])!=_0x58d05d(0x331)||typeof _0x2bd858[_0x58d05d(0x25d)]['config'][_0x58d05d(0x244)]!=_0x58d05d(0x2de)))throw Error(_0x58d05d(0x308));let _0x115e6b={..._0x2bd858==null?void 0x0:_0x2bd858[_0x58d05d(0x25d)],'id':_0x20bc4d(0x6),'name':_0x18614d,'type':_0x305e6e,'config':(_0x2bd858==null||(_0x380027=_0x2bd858[_0x58d05d(0x25d)])==null?void 0x0:_0x380027[_0x58d05d(0x293)])??{}};if(!this['_commandService'][_0x58d05d(0x2e0)](_0x366cc7['id'],{'unitId':this['_base'][_0x58d05d(0x301)](),'tableId':this[_0x58d05d(0x29b)],'field':_0x115e6b,'index':_0x2bd858==null?void 0x0:_0x2bd858[_0x58d05d(0x228)]}))throw Error(_0x58d05d(0x260)+_0x18614d+'\x22');return this['_injector'][_0x58d05d(0x233)](B,this[_0x58d05d(0x202)],this,_0x115e6b['id']);}[_0x2437d5(0x219)](_0x396e3d,_0x1e8137){const _0x31ebb1=_0x2437d5;var _0x1fb397;if(!_0x1e8137||!('externalReferences'in _0x1e8137)||!Array[_0x31ebb1(0x26a)](_0x1e8137[_0x31ebb1(0x1fb)]))throw Error(_0x31ebb1(0x302));let _0x40f182=this[_0x31ebb1(0x297)]['syncExecuteCommand'](_0x509e7e['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'formula':String(((_0x1fb397=_0x1e8137[_0x31ebb1(0x25d)])==null||(_0x1fb397=_0x1fb397[_0x31ebb1(0x293)])==null?void 0x0:_0x1fb397[_0x31ebb1(0x2a7)])??'')});if(!_0x40f182[_0x31ebb1(0x21b)])throw Error(_0x40f182[_0x31ebb1(0x2ba)]??'Invalid\x20Base\x20formula.');if(_0x1e8137[_0x31ebb1(0x1fb)][_0x31ebb1(0x220)]>0x0&&!this[_0x31ebb1(0x297)][_0x31ebb1(0x2e0)](_0x242f30['id'],{'unitId':this[_0x31ebb1(0x202)][_0x31ebb1(0x301)](),'references':_0x1e8137[_0x31ebb1(0x1fb)]}))throw Error(_0x31ebb1(0x294)+_0x396e3d+'\x22');}[_0x2437d5(0x215)](){const _0x1c7e65=_0x2437d5;return this[_0x1c7e65(0x1f8)]()[_0x1c7e65(0x213)](_0x460904=>this[_0x1c7e65(0x2ed)][_0x1c7e65(0x233)](J,this['_base'],this,_0x460904,this[_0x1c7e65(0x2ed)]));}['getRecordById'](_0x4c8132){const _0x1f952e=_0x2437d5;return this[_0x1f952e(0x2dc)]()['records'][_0x4c8132]?this['_injector'][_0x1f952e(0x233)](J,this[_0x1f952e(0x202)],this,_0x4c8132,this[_0x1f952e(0x2ed)]):null;}[_0x2437d5(0x31a)](_0x15d614={}){const _0x5b44c9=_0x2437d5;let _0x3bbb76=this[_0x5b44c9(0x2dc)](),_0x15ec87=this[_0x5b44c9(0x1f8)](_0x15d614),_0x299670=Math['max'](0x0,_0x15d614['offset']??0x0),_0x54ad8c=_0x15d614['limit']==null?null:Math[_0x5b44c9(0x247)](0x0,_0x15d614[_0x5b44c9(0x269)]),_0x476fda=et(_0x15ec87[_0x5b44c9(0x213)](_0x328f1e=>_0x3bbb76['records'][_0x328f1e])[_0x5b44c9(0x262)](_0x412a8f=>nt(_0x412a8f,_0x3bbb76,_0x15d614[_0x5b44c9(0x262)])),_0x3bbb76,_0x15d614[_0x5b44c9(0x1f4)]);return{'records':$e(_0x476fda,_0x15d614)[_0x5b44c9(0x213)](_0x2eea1f=>this['_injector'][_0x5b44c9(0x233)](J,this[_0x5b44c9(0x202)],this,_0x2eea1f['id'],this[_0x5b44c9(0x2ed)])),'total':_0x476fda['length'],'offset':_0x299670,'limit':_0x54ad8c,'hasMore':_0x54ad8c!=null&&_0x299670+_0x54ad8c<_0x476fda['length']};}[_0x2437d5(0x2e6)](_0x437ba0,_0x2980b3='id',_0x202dbb){const _0x31f60e=_0x2437d5;let _0x37067a=this[_0x31f60e(0x2dc)](),_0x530fd3=Date[_0x31f60e(0x28a)](),_0x5bb2e1={..._0x202dbb,'id':_0x20bc4d(0x6),'values':H(_0x37067a,_0x437ba0,_0x2980b3),'orderKey':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x27b)])||''+_0x530fd3,'createdAt':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x222)])||_0x530fd3,'updatedAt':(_0x202dbb==null?void 0x0:_0x202dbb[_0x31f60e(0x25b)])||_0x530fd3};if(!this['_commandService']['syncExecuteCommand'](_0x56c7de['id'],{'unitId':this[_0x31f60e(0x202)]['getId'](),'tableId':this[_0x31f60e(0x29b)],'record':_0x5bb2e1,'source':_0x314bee[_0x31f60e(0x264)]}))throw Error(_0x31f60e(0x2c4)+_0x5bb2e1['id']+'\x22');return this['_injector'][_0x31f60e(0x233)](J,this['_base'],this,_0x5bb2e1['id'],this[_0x31f60e(0x2ed)]);}[_0x2437d5(0x299)](_0x50d7a4){const _0x2eaddd=_0x2437d5;if(!_0x50d7a4[_0x2eaddd(0x220)])return[];let _0x210fbf=this[_0x2eaddd(0x2dc)](),_0x3bf25b=Date[_0x2eaddd(0x28a)](),_0x22a416=_0x50d7a4[_0x2eaddd(0x213)]((_0x22732e,_0x204663)=>{const _0x58923c=_0x2eaddd;var _0x759970,_0x60f46c,_0x54a81c;return{..._0x22732e['record'],'id':_0x20bc4d(0x6),'values':H(_0x210fbf,_0x22732e[_0x58923c(0x231)],_0x22732e[_0x58923c(0x243)]??'id'),'orderKey':((_0x759970=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x759970[_0x58923c(0x27b)])||''+(_0x3bf25b+_0x204663),'createdAt':((_0x60f46c=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x60f46c[_0x58923c(0x222)])||_0x3bf25b,'updatedAt':((_0x54a81c=_0x22732e[_0x58923c(0x26d)])==null?void 0x0:_0x54a81c[_0x58923c(0x25b)])||_0x3bf25b};});if(!this[_0x2eaddd(0x297)][_0x2eaddd(0x2e0)](_0x27fe40['id'],{'unitId':this[_0x2eaddd(0x202)]['getId'](),'tableId':this['_tableId'],'records':_0x22a416,'source':_0x314bee[_0x2eaddd(0x264)]}))throw Error(_0x2eaddd(0x2be));return _0x22a416[_0x2eaddd(0x213)](_0x5c7b27=>this[_0x2eaddd(0x2ed)][_0x2eaddd(0x233)](J,this[_0x2eaddd(0x202)],this,_0x5c7b27['id'],this[_0x2eaddd(0x2ed)]));}[_0x2437d5(0x2b4)](_0x49b56e){const _0x373039=_0x2437d5;return!_0x49b56e['length']||this[_0x373039(0x297)]['syncExecuteCommand'](_0x4b1f8d['id'],{'unitId':this['_base'][_0x373039(0x301)](),'tableId':this['_tableId'],'recordIds':_0x49b56e,'source':_0x314bee[_0x373039(0x264)]});}[_0x2437d5(0x291)](_0x574a82,_0x29fff5,_0x42256e=0x1,_0x279574=0x1){const _0x31af2e=_0x2437d5;return this[_0x31af2e(0x2ed)][_0x31af2e(0x233)](K,this[_0x31af2e(0x202)],this,{'startRow':_0x574a82,'endRow':_0x574a82+_0x42256e-0x1,'startColumn':_0x29fff5,'endColumn':_0x29fff5+_0x279574-0x1},this['_injector']);}[_0x2437d5(0x257)](){const _0x1d4ba3=_0x2437d5;var _0x4dc249;let _0x573424=_0x3a2549(this[_0x1d4ba3(0x2dc)]()),_0x2b986e=((_0x4dc249=_0x573424[_0x1d4ba3(0x256)])==null?void 0x0:_0x4dc249[_0x1d4ba3(0x220)])??0x0,_0x2a866f=_0x573424[_0x1d4ba3(0x2a4)][_0x1d4ba3(0x262)](_0x4448aa=>V(_0x573424[_0x1d4ba3(0x278)][_0x4448aa]))[_0x1d4ba3(0x220)];return this[_0x1d4ba3(0x291)](0x0,0x0,Math[_0x1d4ba3(0x247)](_0x2b986e,0x1),Math[_0x1d4ba3(0x247)](_0x2a866f,0x1));}[_0x2437d5(0x22c)](){const _0x3b388b=_0x2437d5;let _0x437fe5=this[_0x3b388b(0x2dc)]();return _0x437fe5[_0x3b388b(0x2e1)][_0x3b388b(0x262)](_0x4a6007=>_0x437fe5['views'][_0x4a6007])['map'](_0x26c57b=>this[_0x3b388b(0x2ed)][_0x3b388b(0x233)](Y,this[_0x3b388b(0x202)],this,_0x26c57b,this['_injector']));}[_0x2437d5(0x2bf)](_0x31efb7){const _0x19af02=_0x2437d5;return this['_getTable']()[_0x19af02(0x209)][_0x31efb7]?this[_0x19af02(0x2ed)][_0x19af02(0x233)](Y,this[_0x19af02(0x202)],this,_0x31efb7,this[_0x19af02(0x2ed)]):null;}['getViewByName'](_0x506d26){const _0x2fa9f6=_0x2437d5;let _0x5210dd=this['_getTable'](),_0x304bba=Object['values'](_0x5210dd[_0x2fa9f6(0x209)])[_0x2fa9f6(0x295)](_0x11e900=>_0x11e900['name']===_0x506d26);return _0x304bba?this[_0x2fa9f6(0x2ed)][_0x2fa9f6(0x233)](Y,this[_0x2fa9f6(0x202)],this,_0x304bba['id'],this[_0x2fa9f6(0x2ed)]):null;}[_0x2437d5(0x2bd)](_0x21f76e,_0x4b29d7,_0x728c3c){const _0x3d0f61=_0x2437d5;var _0x19d291,_0x2f3f95,_0x5bc4cc,_0x326ec4;let _0x56de42=this[_0x3d0f61(0x2dc)](),_0x515594=[_0x31490b,...((_0x728c3c==null||(_0x19d291=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x19d291[_0x3d0f61(0x2a4)])??_0x56de42[_0x3d0f61(0x2a4)])[_0x3d0f61(0x262)](_0x12d2c2=>V(_0x56de42[_0x3d0f61(0x278)][_0x12d2c2]))],_0x220031={..._0x728c3c==null?void 0x0:_0x728c3c[_0x3d0f61(0x24c)],'id':_0x20bc4d(0x6),'name':_0x21f76e,'type':_0x4b29d7,'tableId':this['_tableId'],'config':(_0x728c3c==null||(_0x2f3f95=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x2f3f95['config'])??{},'fieldOrder':_0x515594,'fieldSettings':{..._0x728c3c==null||(_0x5bc4cc=_0x728c3c[_0x3d0f61(0x24c)])==null?void 0x0:_0x5bc4cc[_0x3d0f61(0x2af)],[_0x31490b]:{..._0x728c3c==null||(_0x326ec4=_0x728c3c[_0x3d0f61(0x24c)])==null||(_0x326ec4=_0x326ec4[_0x3d0f61(0x2af)])==null?void 0x0:_0x326ec4[_0x31490b],'hidden':!0x0}}};if(!this[_0x3d0f61(0x297)][_0x3d0f61(0x2e0)](_0x56d066['id'],{'unitId':this['_base'][_0x3d0f61(0x301)](),'tableId':this[_0x3d0f61(0x29b)],'view':_0x220031,'index':_0x728c3c==null?void 0x0:_0x728c3c[_0x3d0f61(0x228)]}))throw Error(_0x3d0f61(0x31e)+_0x21f76e+'\x22');return this['_injector'][_0x3d0f61(0x233)](Y,this[_0x3d0f61(0x202)],this,_0x220031['id'],this['_injector']);}[_0x2437d5(0x31d)](){const _0x2a4ded=_0x2437d5;let _0x29cc31=this[_0x2a4ded(0x2dc)](),_0x5a2875=_0x29cc31[_0x2a4ded(0x2a4)]['filter'](_0x3ef5f9=>V(_0x29cc31[_0x2a4ded(0x278)][_0x3ef5f9])),_0x44a1b4=_0x29cc31['viewOrder'][_0x2a4ded(0x262)](_0x2db0d9=>_0x29cc31[_0x2a4ded(0x209)][_0x2db0d9]);return{'id':_0x29cc31['id'],'name':_0x29cc31[_0x2a4ded(0x2f8)],'formulaName':this[_0x2a4ded(0x272)](),'primaryFieldId':_0x29cc31['primaryFieldId'],'fieldIds':_0x5a2875,'viewIds':_0x44a1b4,'recordCount':this[_0x2a4ded(0x1f8)]()['length'],'fields':_0x5a2875[_0x2a4ded(0x213)](_0x4be155=>{const _0x4e5e99=_0x2a4ded;let _0x21af29=_0x29cc31[_0x4e5e99(0x278)][_0x4be155];return{'id':_0x21af29['id'],'name':_0x21af29[_0x4e5e99(0x2f8)],'type':_0x21af29[_0x4e5e99(0x24d)],'config':_0x21af29[_0x4e5e99(0x293)],'readonly':_0x21af29[_0x4e5e99(0x1eb)],'description':_0x21af29[_0x4e5e99(0x201)]};}),'views':_0x44a1b4[_0x2a4ded(0x213)](_0x4a9c50=>{const _0x3870e2=_0x2a4ded;let _0x5b7c0c=_0x29cc31[_0x3870e2(0x209)][_0x4a9c50];return{'id':_0x5b7c0c['id'],'name':_0x5b7c0c[_0x3870e2(0x2f8)],'type':_0x5b7c0c[_0x3870e2(0x24d)]};})};}[_0x2437d5(0x2dc)](){const _0x2ff6c9=_0x2437d5;let _0x4c1ea3=this[_0x2ff6c9(0x202)][_0x2ff6c9(0x241)]()[_0x2ff6c9(0x30d)]()[_0x2ff6c9(0x2f7)][this[_0x2ff6c9(0x29b)]];if(!_0x4c1ea3)throw Error('[FTable]:\x20table\x20\x22'+this[_0x2ff6c9(0x29b)]+_0x2ff6c9(0x251));return _0x4c1ea3;}[_0x2437d5(0x1f8)](_0x4688d9={}){const _0x427e15=_0x2437d5;let _0x177ce6=this[_0x427e15(0x202)][_0x427e15(0x241)]()['getSnapshot'](),_0x46d6e2=this[_0x427e15(0x2dc)]();if(_0x4688d9['viewId']){let _0x1ce117=this['_projectionService']['getProjection'](_0x177ce6,this[_0x427e15(0x29b)],_0x4688d9[_0x427e15(0x322)]);if(_0x427e15(0x2b0)in _0x1ce117&&Array[_0x427e15(0x26a)](_0x1ce117[_0x427e15(0x2b0)]))return _0x1ce117[_0x427e15(0x2b0)][_0x427e15(0x213)](_0x37625e=>_0x37625e[_0x427e15(0x2e4)]);}return(_0x46d6e2[_0x427e15(0x256)]?_0x46d6e2[_0x427e15(0x256)]['map'](_0x2647a6=>_0x46d6e2[_0x427e15(0x23c)][_0x2647a6]):Object[_0x427e15(0x231)](_0x46d6e2[_0x427e15(0x23c)])[_0x427e15(0x1f4)]((_0xa914a4,_0x880771)=>_0xa914a4[_0x427e15(0x27b)][_0x427e15(0x2a9)](_0x880771['orderKey'])))['filter'](_0x13eea5=>_0x13eea5)[_0x427e15(0x213)](_0x4a92ae=>_0x4a92ae['id']);}};X=z([R(0x3,_0x4b711b),R(0x4,_0xb65b4f)],X);function $e(_0x59abc9,_0xc132fe){const _0x3f29fc=_0x2437d5;let _0x51cd9e=Math[_0x3f29fc(0x247)](0x0,_0xc132fe[_0x3f29fc(0x315)]??0x0);return _0xc132fe[_0x3f29fc(0x269)]==null?_0x59abc9[_0x3f29fc(0x1f6)](_0x51cd9e):_0x59abc9[_0x3f29fc(0x1f6)](_0x51cd9e,_0x51cd9e+Math[_0x3f29fc(0x247)](0x0,_0xc132fe[_0x3f29fc(0x269)]));}function et(_0x36983e,_0x4a3d82,_0x358477=[]){return _0x358477['length']?[..._0x36983e]['sort']((_0x5d288c,_0x504827)=>{const _0x63cb1b=_0xe2d7;for(let _0x17ac3d of _0x358477){var _0x376436;let _0x1dc785=_0x17ac3d[_0x63cb1b(0x25f)]===_0x109e0b[_0x63cb1b(0x266)]?-0x1:0x1,_0x30602a=tt(_0x5d288c[_0x63cb1b(0x231)][_0x17ac3d[_0x63cb1b(0x304)]],_0x504827[_0x63cb1b(0x231)][_0x17ac3d['fieldId']],(_0x376436=_0x4a3d82[_0x63cb1b(0x278)][_0x17ac3d[_0x63cb1b(0x304)]])==null?void 0x0:_0x376436[_0x63cb1b(0x24d)]);if(_0x30602a!==0x0)return _0x30602a*_0x1dc785;}return String(_0x5d288c[_0x63cb1b(0x27b)]??_0x5d288c['id'])[_0x63cb1b(0x2a9)](String(_0x504827['orderKey']??_0x504827['id']));}):_0x36983e;}function _0xe2d7(_0x1357c3,_0x3cdca5){_0x1357c3=_0x1357c3-0x1eb;const _0xf2c53e=_0xf2c5();let _0xe2d75f=_0xf2c53e[_0x1357c3];return _0xe2d75f;}function tt(_0x519a84,_0x3906be,_0x4c44f7){const _0x4771b2=_0x2437d5;return _0x519a84==null&&_0x3906be==null?0x0:_0x519a84==null?-0x1:_0x3906be==null?0x1:typeof _0x519a84=='number'&&typeof _0x3906be=='number'?_0x519a84-_0x3906be:_0x4c44f7===_0x4ffd63['Date']?Number(_0x519a84)-Number(_0x3906be):String(_0x519a84)[_0x4771b2(0x2a9)](String(_0x3906be));}function nt(_0x443f71,_0x55e8df,_0xdfb064){const _0x1314f1=_0x2437d5;var _0x515642;if(!_0xdfb064||!((_0x515642=_0xdfb064[_0x1314f1(0x21a)])!=null&&_0x515642[_0x1314f1(0x220)]))return!0x0;let {conjunction:_0xa2f36c=_0x32065f['OR'],conditions:_0x2340eb}=_0xdfb064;return _0xa2f36c===_0x32065f['AND']&&_0x2340eb[_0x1314f1(0x220)]>0x1?_0x2340eb[_0x1314f1(0x23e)](_0x4d32fc=>rt(_0x443f71,_0x55e8df,_0x4d32fc)):_0x2340eb[_0x1314f1(0x306)](_0x59c667=>rt(_0x443f71,_0x55e8df,_0x59c667));}function rt(_0x40040b,_0x3224a3,_0x54b084){const _0x2641cd=_0x2437d5;let _0x2bb176=_0x40040b[_0x2641cd(0x231)][_0x54b084[_0x2641cd(0x304)]],_0x4a8d7e=_0x3224a3[_0x2641cd(0x278)][_0x54b084[_0x2641cd(0x304)]];if(it(_0x54b084)){let _0x44ec26=at(_0x54b084)['test'](String(_0x2bb176??''));return _0x54b084[_0x2641cd(0x29d)]===_0x2641cd(0x31f)?_0x44ec26:!_0x44ec26;}return!_0x4a8d7e||_0x5572d0(_0x2bb176,_0x54b084['operator'],_0x54b084[_0x2641cd(0x203)],_0x4a8d7e);}function it(_0x4cd3af){const _0x32b26e=_0x2437d5;return _0x4cd3af[_0x32b26e(0x29d)]===_0x32b26e(0x31f)||_0x4cd3af[_0x32b26e(0x29d)]===_0x32b26e(0x21d);}function at(_0x43f37f){const _0x287c7b=_0x2437d5;let _0x451462=String(_0x43f37f[_0x287c7b(0x203)]??'');if(_0x451462['length']>0x200)throw Error(_0x287c7b(0x2e7));try{return new RegExp(_0x451462,_0x43f37f[_0x287c7b(0x290)]?void 0x0:'i');}catch(_0x1fef38){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x451462+'.\x20'+(_0x1fef38 instanceof Error?_0x1fef38['message']:String(_0x1fef38)));}}function ot(_0x115bdb,_0x24697a,_0x1f5ea5){const _0x4dda75=_0x2437d5;if(_0x1f5ea5[_0x4dda75(0x24d)]!=='invalid'){var _0x243d17;if(_0x1f5ea5[_0x4dda75(0x24d)]===_0x206a78[_0x4dda75(0x253)]){var _0x4ea5aa;let _0x124016=[((_0x4ea5aa=_0x1f5ea5[_0x4dda75(0x278)])==null||(_0x4ea5aa=_0x4ea5aa[0x0])==null?void 0x0:_0x4ea5aa['id'])??_0x115bdb[_0x4dda75(0x2d0)],..._0x1f5ea5['visibleCardFieldIds']??[]];return Array[_0x4dda75(0x217)](new Set(_0x124016['filter'](_0x4916d0=>!!_0x115bdb[_0x4dda75(0x278)][_0x4916d0])));}if((_0x243d17=_0x1f5ea5[_0x4dda75(0x278)])!=null&&_0x243d17['length'])return _0x1f5ea5[_0x4dda75(0x278)]['map'](_0x21b2fd=>_0x21b2fd['id'])[_0x4dda75(0x262)](_0x5d8b27=>{const _0x4f36f4=_0x4dda75;var _0x2b8887;return!!(_0x115bdb[_0x4f36f4(0x278)][_0x5d8b27]&&!(_0x24697a!=null&&(_0x2b8887=_0x24697a[_0x4f36f4(0x2af)])!=null&&(_0x2b8887=_0x2b8887[_0x5d8b27])!=null&&_0x2b8887[_0x4f36f4(0x289)]));});}return _0x115bdb['fieldOrder'][_0x4dda75(0x262)](_0x1a714d=>{const _0x419035=_0x4dda75;var _0x44f5df;return!!(_0x115bdb[_0x419035(0x278)][_0x1a714d]&&!(_0x24697a!=null&&(_0x44f5df=_0x24697a[_0x419035(0x2af)])!=null&&(_0x44f5df=_0x44f5df[_0x1a714d])!=null&&_0x44f5df[_0x419035(0x289)]));});}let Z=class{constructor(_0x5a024b,_0xfd450e,_0x59d7b1,_0x5d2fbe){const _0x55b00b=_0x2437d5;this[_0x55b00b(0x202)]=_0x5a024b,this[_0x55b00b(0x2ed)]=_0xfd450e,this[_0x55b00b(0x2b1)]=_0x59d7b1,this[_0x55b00b(0x297)]=_0x5d2fbe;}[_0x2437d5(0x241)](){const _0x4e9ce5=_0x2437d5;return this[_0x4e9ce5(0x202)];}[_0x2437d5(0x301)](){const _0x1e35fb=_0x2437d5;return this[_0x1e35fb(0x202)][_0x1e35fb(0x23f)]();}[_0x2437d5(0x2d7)](){const _0x419291=_0x2437d5;return this[_0x419291(0x2b1)][_0x419291(0x2e8)](this[_0x419291(0x301)]())??_0x58a75c[_0x419291(0x1f5)](this['_base'][_0x419291(0x30d)]());}[_0x2437d5(0x21e)](){const _0x537c8c=_0x2437d5;return this[_0x537c8c(0x202)][_0x537c8c(0x30d)]()['name'];}[_0x2437d5(0x1fa)](_0x25a051){const _0x276871=_0x2437d5;this[_0x276871(0x297)][_0x276871(0x2e0)](_0x235f7e['id'],{'unitId':this[_0x276871(0x301)](),'name':_0x25a051});}[_0x2437d5(0x274)](){const _0xd59a44=_0x2437d5;let _0x991136=this[_0xd59a44(0x202)][_0xd59a44(0x30d)]();return _0x991136[_0xd59a44(0x2a3)][_0xd59a44(0x213)](_0x299e78=>_0x991136['tables'][_0x299e78])[_0xd59a44(0x262)](_0x34979f=>_0x34979f)['map'](_0x188dd8=>this[_0xd59a44(0x2ed)][_0xd59a44(0x233)](X,this,_0x188dd8['id'],this[_0xd59a44(0x2ed)]));}[_0x2437d5(0x21c)](_0x19af67){const _0x31f9f7=_0x2437d5;let _0x1408dd=this['_base']['getSnapshot']()[_0x31f9f7(0x2f7)][_0x19af67];return _0x1408dd?this[_0x31f9f7(0x2ed)][_0x31f9f7(0x233)](X,this,_0x1408dd['id'],this[_0x31f9f7(0x2ed)]):null;}['getTableByName'](_0x13d9c1){const _0x15f210=_0x2437d5;let _0xa6d585=this['_base'][_0x15f210(0x30d)](),_0x157699=Object[_0x15f210(0x231)](_0xa6d585['tables'])[_0x15f210(0x295)](_0x330bf9=>_0x330bf9[_0x15f210(0x2f8)]===_0x13d9c1);return _0x157699?this[_0x15f210(0x2ed)][_0x15f210(0x233)](X,this,_0x157699['id'],this[_0x15f210(0x2ed)]):null;}['insertTable'](_0x1de2d4,_0x209f62){const _0x20eeb6=_0x2437d5;let _0x5695a5=_0x44e8c9({'id':_0x20bc4d(),'name':_0x1de2d4,..._0x209f62==null?void 0x0:_0x209f62[_0x20eeb6(0x246)],'primaryFieldName':_0x209f62==null?void 0x0:_0x209f62[_0x20eeb6(0x307)]}),_0x3323ea=_0x58a75c['commonExtend'](_0x5695a5,(_0x209f62==null?void 0x0:_0x209f62['table'])??{}),_0x522490=_0x313fe0(this[_0x20eeb6(0x202)][_0x20eeb6(0x30d)](),_0x3323ea[_0x20eeb6(0x2f8)]);if(!_0x522490[_0x20eeb6(0x21b)])throw Error(_0x20eeb6(0x2eb)+_0x3323ea[_0x20eeb6(0x2f8)]+_0x20eeb6(0x2a8)+_0x1ac4a5+'\x20'+_0x522490[_0x20eeb6(0x2ba)]);if(!this[_0x20eeb6(0x297)][_0x20eeb6(0x2e0)](_0x550a64['id'],{'unitId':this['_base'][_0x20eeb6(0x23f)](),'table':_0x3323ea,'index':_0x209f62==null?void 0x0:_0x209f62['index']}))throw Error(_0x20eeb6(0x267)+_0x1de2d4+'\x22.');return this[_0x20eeb6(0x2ed)][_0x20eeb6(0x233)](X,this,_0x3323ea['id'],this[_0x20eeb6(0x2ed)]);}['deleteTable'](_0x1e8a68){const _0x7e1ea9=_0x2437d5;let _0x562256=typeof _0x1e8a68==_0x7e1ea9(0x331)?_0x1e8a68:_0x1e8a68[_0x7e1ea9(0x301)]();if(!this[_0x7e1ea9(0x297)]['syncExecuteCommand'](_0xe693ee['id'],{'unitId':this['_base'][_0x7e1ea9(0x23f)](),'tableId':_0x562256}))throw Error(_0x7e1ea9(0x2ac)+_0x562256+'\x22.');return!0x0;}[_0x2437d5(0x255)](_0x5265c0,_0x122050){const _0x36cfef=_0x2437d5;let _0x1378e9=this[_0x36cfef(0x202)]['getSnapshot'](),_0x7ad190=typeof _0x5265c0==_0x36cfef(0x331)?_0x5265c0:_0x5265c0[_0x36cfef(0x301)](),_0x329c42=_0x1378e9[_0x36cfef(0x2f7)][_0x7ad190];if(!_0x329c42)throw Error(_0x36cfef(0x2cc)+_0x7ad190+_0x36cfef(0x251));let _0xc0c452=_0x1378e9['tableOrder']['indexOf'](_0x7ad190)+0x1,_0x3455a9=_0x3c3ee(_0x329c42,{'id':_0x20bc4d(),'name':_0x483446(_0x1378e9,_0x329c42[_0x36cfef(0x2f8)]+_0x36cfef(0x268)),'includeRecords':(_0x122050==null?void 0x0:_0x122050[_0x36cfef(0x300)])??!0x1,'regenerateViewIds':(_0x122050==null?void 0x0:_0x122050[_0x36cfef(0x258)])??!0x1});if(!this[_0x36cfef(0x297)][_0x36cfef(0x2e0)](_0x550a64['id'],{'unitId':this['_base'][_0x36cfef(0x23f)](),'table':_0x3455a9,'index':_0xc0c452}))throw Error(_0x36cfef(0x327)+_0x7ad190+'\x22.');return this[_0x36cfef(0x2ed)][_0x36cfef(0x233)](X,this,_0x3455a9['id'],this['_injector']);}[_0x2437d5(0x31d)](){const _0x769d18=_0x2437d5;let _0x4e48a6=this[_0x769d18(0x202)][_0x769d18(0x30d)]();return{'id':_0x4e48a6['id'],'name':_0x4e48a6['name'],'tables':this[_0x769d18(0x274)]()[_0x769d18(0x213)](_0x49db24=>_0x49db24['getSchema']())};}};Z=z([R(0x1,_0x4604ee(_0xe12cbe)),R(0x2,_0x4f6253),R(0x3,_0x4b711b)],Z);var st=class extends _0x9a9f06{[_0x2437d5(0x259)](){const _0x1f47be=_0x2437d5;this['_initBaseBeforeEvents'](),this[_0x1f47be(0x242)]();}['createBase'](_0x727fd1={},_0x1b4286){const _0x2e1372=_0x2437d5;let _0x591b44=this[_0x2e1372(0x29a)][_0x2e1372(0x2ce)](_0x5e3bb9['UNIVER_BASE'],_0x727fd1,_0x1b4286);return this['_injector']['createInstance'](Z,_0x591b44);}[_0x2437d5(0x23d)](){const _0x27469b=_0x2437d5;let _0x33f0ee=this[_0x27469b(0x29a)][_0x27469b(0x245)](_0x5e3bb9[_0x27469b(0x2d6)]);return _0x33f0ee?this[_0x27469b(0x2ed)][_0x27469b(0x233)](Z,_0x33f0ee):null;}['getBase'](_0x4cb888){const _0x3aa3eb=_0x2437d5;let _0x440e9c=this['_univerInstanceService'][_0x3aa3eb(0x2d9)](_0x4cb888,_0x5e3bb9[_0x3aa3eb(0x2d6)]);return _0x440e9c?this['_injector'][_0x3aa3eb(0x233)](Z,_0x440e9c):null;}[_0x2437d5(0x207)](){const _0x26ab38=_0x2437d5;return this[_0x26ab38(0x29a)][_0x26ab38(0x2f3)](_0x5e3bb9[_0x26ab38(0x2d6)])[_0x26ab38(0x213)](_0x13fba3=>this['_injector']['createInstance'](Z,_0x13fba3));}[_0x2437d5(0x242)](){const _0x4d56e3=_0x2437d5;this[_0x4d56e3(0x2a1)](this['registerEventHandler'](this['Event'][_0x4d56e3(0x287)],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)]((_0x1212a4,_0x232b39)=>{const _0x4e4106=_0x4d56e3;var _0x35ad93;if(!Q(_0x1212a4,_0x2cd8cd))return;let _0x51d8c1=_0x1212a4[_0x4e4106(0x2cd)];if(!((_0x35ad93=_0x51d8c1[_0x4e4106(0x27d)])!=null&&_0x35ad93[_0x4e4106(0x220)]))return;let _0x242deb=this[_0x4e4106(0x241)](_0x51d8c1[_0x4e4106(0x254)]),_0x509e9e=_0x242deb==null?void 0x0:_0x242deb[_0x4e4106(0x21c)](_0x51d8c1['hierarchyChanges'][0x0]['tableId']);if(!_0x242deb||!_0x509e9e)return;let _0x1d3a7d={'base':_0x242deb,'table':_0x509e9e,'changes':_0x51d8c1['hierarchyChanges'],'source':_0x232b39!=null&&_0x232b39[_0x4e4106(0x22e)]?_0x314bee[_0x4e4106(0x32e)]:_0x51d8c1[_0x4e4106(0x2ef)]??_0x314bee['UI']};this[_0x4e4106(0x26c)](this[_0x4e4106(0x24f)][_0x4e4106(0x287)],_0x1d3a7d);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x4d56e3(0x24f)][_0x4d56e3(0x2da)],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x1e0fdc=>{const _0x1c51bc=_0x4d56e3;if(_0x1e0fdc['id']!==_0x550a64['id'])return;let {unitId:_0x2d28bd,table:_0x3496e9,index:_0x327bb9}=_0x1e0fdc[_0x1c51bc(0x2cd)],_0x280517=this[_0x1c51bc(0x241)](_0x2d28bd);if(!_0x280517)return;let _0x22f6e4={'base':_0x280517,'table':_0x3496e9,'index':_0x327bb9};this[_0x1c51bc(0x26c)](this['Event'][_0x1c51bc(0x2da)],_0x22f6e4);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x4d56e3(0x325)],()=>this['_commandService'][_0x4d56e3(0x2f6)](_0x1df041=>{const _0xdc8ae9=_0x4d56e3;if(_0x1df041['id']!==_0x366cc7['id'])return;let {unitId:_0x556a3d,tableId:_0x4679e0,field:_0x246b1e,index:_0x462adf,viewIndexes:_0x2c6c85}=_0x1df041['params'],_0x47b34d=this[_0xdc8ae9(0x241)](_0x556a3d);if(!_0x47b34d)return;let _0xbbeb2d=_0x47b34d[_0xdc8ae9(0x21c)](_0x4679e0);if(!_0xbbeb2d)return;let _0x4f7d70={'base':_0x47b34d,'table':_0xbbeb2d,'field':_0x246b1e,'index':_0x462adf,'viewIndexes':_0x2c6c85};this['fireEvent'](this[_0xdc8ae9(0x24f)][_0xdc8ae9(0x325)],_0x4f7d70);}))),this[_0x4d56e3(0x2a1)](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)][_0x4d56e3(0x20f)],()=>this[_0x4d56e3(0x297)]['onCommandExecuted'](_0x32189e=>{const _0x326502=_0x4d56e3;if(_0x32189e['id']!==_0x56c7de['id']&&_0x32189e['id']!==_0x27fe40['id'])return;let _0x5acbfe=_0x32189e[_0x326502(0x2cd)],{unitId:_0x48d7e8,tableId:_0x173ac0}=_0x5acbfe,_0x4d2380=_0x5acbfe[_0x326502(0x23c)]??[_0x5acbfe[_0x326502(0x26d)]],_0x3a7518=this['getBase'](_0x48d7e8);if(!_0x3a7518)return;let _0x24a0bd=_0x3a7518[_0x326502(0x21c)](_0x173ac0);if(!_0x24a0bd)return;let _0x7c3ca1={'base':_0x3a7518,'table':_0x24a0bd,'records':_0x4d2380};this[_0x326502(0x26c)](this[_0x326502(0x24f)][_0x326502(0x20f)],_0x7c3ca1);}))),this['disposeWithMe'](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)]['BaseTableViewCreated'],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x4c23db=>{const _0x5752f2=_0x4d56e3;if(_0x4c23db['id']!==_0x56d066['id'])return;let {unitId:_0x50fbe6,tableId:_0x45ab6b,view:_0x4706ce,index:_0x2b38ac}=_0x4c23db[_0x5752f2(0x2cd)],_0x5650c8=this[_0x5752f2(0x241)](_0x50fbe6);if(!_0x5650c8)return;let _0x294b2a=_0x5650c8[_0x5752f2(0x21c)](_0x45ab6b);if(!_0x294b2a)return;let _0x112d72={'base':_0x5650c8,'table':_0x294b2a,'view':_0x4706ce,'index':_0x2b38ac};this['fireEvent'](this[_0x5752f2(0x24f)][_0x5752f2(0x27f)],_0x112d72);}))),this[_0x4d56e3(0x2a1)](this[_0x4d56e3(0x2df)](this[_0x4d56e3(0x24f)]['BaseTableCellValueChanged'],()=>this[_0x4d56e3(0x297)][_0x4d56e3(0x2f6)](_0x39a0d1=>{const _0xa454e5=_0x4d56e3;if(_0x39a0d1['id']!==_0x1b302a['id'])return;let {unitId:_0xb9f56a,tableId:_0xd39373,recordId:_0x2f174d,fieldId:_0x2ebff4,value:_0x3f495c}=_0x39a0d1[_0xa454e5(0x2cd)],_0x37bcc1=this[_0xa454e5(0x241)](_0xb9f56a);if(!_0x37bcc1)return;let _0x2fef77=_0x37bcc1[_0xa454e5(0x21c)](_0xd39373);if(!_0x2fef77)return;let _0x54fce5=_0x2fef77[_0xa454e5(0x313)](_0x2ebff4);if(!_0x54fce5)return;let _0x110e24=_0x2fef77[_0xa454e5(0x2d3)](_0x2f174d);if(!_0x110e24)return;let _0x37442c={'base':_0x37bcc1,'table':_0x2fef77,'field':_0x54fce5,'record':_0x110e24,'value':_0x3f495c};this[_0xa454e5(0x26c)](this[_0xa454e5(0x24f)][_0xa454e5(0x2bb)],_0x37442c);})));}[_0x2437d5(0x204)](){const _0x55312e=_0x2437d5;this[_0x55312e(0x2a1)](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x28f)],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x4b9c39=>{const _0x4a3d6c=_0x55312e;if(Q(_0x4b9c39,_0x226aa6)){let {unitId:_0x166ea2,tableId:_0x2f9fc7,patches:_0x5b0ea8,source:_0x4c39b9=_0x314bee['UI']}=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x4297ca=this[_0x4a3d6c(0x261)](_0x166ea2,_0x2f9fc7);if(!_0x4297ca)return;this[_0x4a3d6c(0x2aa)](_0x4297ca[_0x4a3d6c(0x275)],_0x4297ca[_0x4a3d6c(0x246)],_0x4eb78a(_0x4297ca[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x5b0ea8),_0x4c39b9);return;}if(Q(_0x4b9c39,_0x3cc9ba)){let {unitId:_0x3ca31c,tableId:_0x42e455,patches:_0x1fe1bb,source:_0xd551db=_0x314bee['UI']}=_0x4b9c39[_0x4a3d6c(0x2cd)],_0xcb07ff=this[_0x4a3d6c(0x261)](_0x3ca31c,_0x42e455);if(!_0xcb07ff)return;let _0xb72890=_0xcb07ff['table']['getTable']();this[_0x4a3d6c(0x2aa)](_0xcb07ff['base'],_0xcb07ff[_0x4a3d6c(0x246)],_0x4eb78a(_0xb72890,_0x38c8b5(_0xb72890,_0x1fe1bb)),_0xd551db);return;}if(Q(_0x4b9c39,_0x56c7de)){let _0x5dfd5f=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x204098=this[_0x4a3d6c(0x261)](_0x5dfd5f[_0x4a3d6c(0x254)],_0x5dfd5f['tableId']);if(!_0x204098)return;this[_0x4a3d6c(0x2aa)](_0x204098[_0x4a3d6c(0x275)],_0x204098[_0x4a3d6c(0x246)],_0x7b8b9c(_0x204098[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x5dfd5f[_0x4a3d6c(0x26d)]]),_0x5dfd5f[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x27fe40)){let _0x27facc=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x2a655d=this[_0x4a3d6c(0x261)](_0x27facc[_0x4a3d6c(0x254)],_0x27facc[_0x4a3d6c(0x312)]);if(!_0x2a655d)return;this[_0x4a3d6c(0x2aa)](_0x2a655d[_0x4a3d6c(0x275)],_0x2a655d[_0x4a3d6c(0x246)],_0x7b8b9c(_0x2a655d[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x27facc[_0x4a3d6c(0x23c)]),_0x27facc[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x22ec88)){let _0x2d2554=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x42faaf=this['_getHierarchyEventContext'](_0x2d2554['unitId'],_0x2d2554[_0x4a3d6c(0x312)]);if(!_0x42faaf)return;this['_fireBeforeHierarchyChange'](_0x42faaf['base'],_0x42faaf[_0x4a3d6c(0x246)],_0x7b8b9c(_0x42faaf[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x2d2554[_0x4a3d6c(0x26d)]]),_0x2d2554[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x5314b7)){let _0x55fa44=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x250695=this['_getHierarchyEventContext'](_0x55fa44[_0x4a3d6c(0x254)],_0x55fa44[_0x4a3d6c(0x312)]);if(!_0x250695)return;let _0x3d43a8=_0x250695[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x10d868=_0x55fa44['fieldId']??_0x28b4f1(_0x3d43a8),_0x5b3549=_0x5ea354(_0x3d43a8,_0x10d868)[_0x4a3d6c(0x1fc)][_0x4a3d6c(0x2a5)](_0x55fa44[_0x4a3d6c(0x2e4)])??null;this['_fireBeforeHierarchyChange'](_0x250695[_0x4a3d6c(0x275)],_0x250695[_0x4a3d6c(0x246)],[{'tableId':_0x55fa44[_0x4a3d6c(0x312)],'fieldId':_0x10d868,'recordId':_0x55fa44[_0x4a3d6c(0x2e4)],'oldParentRecordId':_0x5b3549,'parentRecordId':_0x55fa44['parentRecordId']}],_0x55fa44[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x331bff)){let _0x2ccf6d=_0x4b9c39['params'],_0x7f6de4=this['_getHierarchyEventContext'](_0x2ccf6d[_0x4a3d6c(0x254)],_0x2ccf6d[_0x4a3d6c(0x312)]);if(!_0x7f6de4)return;let _0x4a33b7=_0x2ccf6d['fieldId']??_0x28b4f1(_0x7f6de4[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)]());this['_fireBeforeHierarchyChange'](_0x7f6de4[_0x4a3d6c(0x275)],_0x7f6de4[_0x4a3d6c(0x246)],[{'tableId':_0x2ccf6d[_0x4a3d6c(0x312)],'fieldId':_0x4a33b7,'recordId':_0x2ccf6d[_0x4a3d6c(0x26d)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2ccf6d[_0x4a3d6c(0x2f0)]}],_0x2ccf6d[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x20f420)){let _0x4a5b32=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x51cdf8=this['_getHierarchyEventContext'](_0x4a5b32[_0x4a3d6c(0x254)],_0x4a5b32[_0x4a3d6c(0x312)]);if(!_0x51cdf8)return;this['_fireBeforeHierarchyChange'](_0x51cdf8['base'],_0x51cdf8['table'],_0x534b36(_0x51cdf8[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),[_0x4a5b32[_0x4a3d6c(0x2e4)]]),_0x4a5b32[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(Q(_0x4b9c39,_0x4b1f8d)){let _0x3e668d=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x29633a=this[_0x4a3d6c(0x261)](_0x3e668d[_0x4a3d6c(0x254)],_0x3e668d[_0x4a3d6c(0x312)]);if(!_0x29633a)return;this[_0x4a3d6c(0x2aa)](_0x29633a[_0x4a3d6c(0x275)],_0x29633a['table'],_0x534b36(_0x29633a[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)](),_0x3e668d['recordIds']),_0x3e668d[_0x4a3d6c(0x2ef)]??_0x314bee['UI']);return;}if(!Q(_0x4b9c39,_0x1b302a))return;let _0x388848=_0x4b9c39[_0x4a3d6c(0x2cd)],_0x312754=this['_getHierarchyEventContext'](_0x388848[_0x4a3d6c(0x254)],_0x388848[_0x4a3d6c(0x312)]);if(!_0x312754)return;let _0x51077a=_0x312754[_0x4a3d6c(0x246)][_0x4a3d6c(0x298)]();if(!_0x23130b(_0x51077a)[_0x4a3d6c(0x2c6)](_0x388848[_0x4a3d6c(0x304)]))return;let _0x1fad46=_0x5ea354(_0x51077a,_0x388848[_0x4a3d6c(0x304)])['parentByRecordId'][_0x4a3d6c(0x2a5)](_0x388848[_0x4a3d6c(0x2e4)])??null,_0x1cdfdf=_0xd9ece7(_0x388848[_0x4a3d6c(0x203)])[0x0]??null;_0x1fad46!==_0x1cdfdf&&this[_0x4a3d6c(0x2aa)](_0x312754[_0x4a3d6c(0x275)],_0x312754[_0x4a3d6c(0x246)],[{'tableId':_0x388848[_0x4a3d6c(0x312)],'fieldId':_0x388848[_0x4a3d6c(0x304)],'recordId':_0x388848[_0x4a3d6c(0x2e4)],'oldParentRecordId':_0x1fad46,'parentRecordId':_0x1cdfdf}],_0x388848['source']??_0x314bee['UI']);}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this['Event'][_0x55312e(0x329)],()=>this['_commandService'][_0x55312e(0x30e)](_0x1f9dbd=>{const _0x3698dc=_0x55312e;if(_0x1f9dbd['id']!==_0x550a64['id'])return;let {unitId:_0x4308e1,table:_0x46b0ec,index:_0x2eb293}=_0x1f9dbd[_0x3698dc(0x2cd)],_0x2c4f5c=this['getBase'](_0x4308e1);if(!_0x2c4f5c)return;let _0x4f0630={'base':_0x2c4f5c,'table':_0x46b0ec,'index':_0x2eb293};if(this['fireEvent'](this[_0x3698dc(0x24f)][_0x3698dc(0x329)],_0x4f0630),_0x4f0630[_0x3698dc(0x283)])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x2d1)],()=>this['_commandService'][_0x55312e(0x30e)](_0x3d335b=>{const _0x1cd219=_0x55312e;if(_0x3d335b['id']!==_0x366cc7['id'])return;let {unitId:_0x56efdb,tableId:_0x11a1ae,field:_0x52e25d,index:_0x171562,viewIndexes:_0x42c731}=_0x3d335b[_0x1cd219(0x2cd)],_0x117b8e=this[_0x1cd219(0x241)](_0x56efdb);if(!_0x117b8e)return;let _0x1d09a7=_0x117b8e[_0x1cd219(0x21c)](_0x11a1ae);if(!_0x1d09a7)return;let _0x4fd22e={'base':_0x117b8e,'table':_0x1d09a7,'field':_0x52e25d,'index':_0x171562,'viewIndexes':_0x42c731};if(this[_0x1cd219(0x26c)](this[_0x1cd219(0x24f)][_0x1cd219(0x2d1)],_0x4fd22e),_0x4fd22e[_0x1cd219(0x283)])throw new _0x48a411();}))),this[_0x55312e(0x2a1)](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)][_0x55312e(0x321)],()=>this['_commandService'][_0x55312e(0x30e)](_0x428b22=>{const _0x2488e8=_0x55312e;if(_0x428b22['id']!==_0x56c7de['id']&&_0x428b22['id']!==_0x27fe40['id'])return;let _0x5e3a20=_0x428b22[_0x2488e8(0x2cd)],{unitId:_0x4dc8dc,tableId:_0x49b49e}=_0x5e3a20,_0x3864b2=_0x5e3a20[_0x2488e8(0x23c)]??[_0x5e3a20[_0x2488e8(0x26d)]],_0x4cde5f=this['getBase'](_0x4dc8dc);if(!_0x4cde5f)return;let _0xa6378f=_0x4cde5f['getTableById'](_0x49b49e);if(!_0xa6378f)return;let _0x4fd1d6={'base':_0x4cde5f,'table':_0xa6378f,'records':_0x3864b2};if(this[_0x2488e8(0x26c)](this['Event'][_0x2488e8(0x321)],_0x4fd1d6),_0x4fd1d6['cancel'])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)]['BeforeBaseTableViewCreate'],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x2fac4c=>{const _0x1c1350=_0x55312e;if(_0x2fac4c['id']!==_0x56d066['id'])return;let {unitId:_0x13d3f3,tableId:_0x5453a4,view:_0x5eaeb3,index:_0x5a4441}=_0x2fac4c[_0x1c1350(0x2cd)],_0x3251eb=this[_0x1c1350(0x241)](_0x13d3f3);if(!_0x3251eb)return;let _0x12691b=_0x3251eb['getTableById'](_0x5453a4);if(!_0x12691b)return;let _0x175e46={'base':_0x3251eb,'table':_0x12691b,'view':_0x5eaeb3,'index':_0x5a4441};if(this['fireEvent'](this[_0x1c1350(0x24f)][_0x1c1350(0x2b7)],_0x175e46),_0x175e46[_0x1c1350(0x283)])throw new _0x48a411();}))),this['disposeWithMe'](this[_0x55312e(0x2df)](this[_0x55312e(0x24f)]['BeforeBaseTableCellValueChange'],()=>this[_0x55312e(0x297)][_0x55312e(0x30e)](_0x7960cc=>{const _0x37ba51=_0x55312e;if(_0x7960cc['id']!==_0x1b302a['id'])return;let {unitId:_0x574c60,tableId:_0x5d1096,recordId:_0x2383c8,fieldId:_0x330b31,value:_0x29e094}=_0x7960cc[_0x37ba51(0x2cd)],_0x5ba1d2=this[_0x37ba51(0x241)](_0x574c60);if(!_0x5ba1d2)return;let _0x1819fc=_0x5ba1d2[_0x37ba51(0x21c)](_0x5d1096);if(!_0x1819fc)return;let _0x51e998=_0x1819fc['getFieldById'](_0x330b31);if(!_0x51e998)return;let _0x366228=_0x1819fc[_0x37ba51(0x2d3)](_0x2383c8);if(!_0x366228)return;let _0x5dbbee={'base':_0x5ba1d2,'table':_0x1819fc,'field':_0x51e998,'record':_0x366228,'value':_0x29e094};if(this[_0x37ba51(0x26c)](this['Event'][_0x37ba51(0x1ed)],_0x5dbbee),_0x5dbbee[_0x37ba51(0x283)])throw new _0x48a411();})));}[_0x2437d5(0x261)](_0x122874,_0x3ae4b4){const _0x555535=_0x2437d5;let _0x81c51c=this['getBase'](_0x122874),_0x339f03=_0x81c51c==null?void 0x0:_0x81c51c[_0x555535(0x21c)](_0x3ae4b4);return _0x81c51c&&_0x339f03?{'base':_0x81c51c,'table':_0x339f03}:null;}['_fireBeforeHierarchyChange'](_0x1e6eed,_0xa4816b,_0x31d5d4,_0x2b6528){const _0x2739c3=_0x2437d5;if(!_0x31d5d4[_0x2739c3(0x220)])return;let _0xb27803={'base':_0x1e6eed,'table':_0xa4816b,'changes':_0x31d5d4,'source':_0x2b6528};if(this[_0x2739c3(0x26c)](this['Event'][_0x2739c3(0x28f)],_0xb27803),_0xb27803['cancel'])throw new _0x48a411();}};function Q(_0x8eac3b,_0xb3506e){const _0x284aa5=_0x2437d5;return _0x8eac3b['id']===_0xb3506e['id']&&_0x8eac3b[_0x284aa5(0x2cd)]!==void 0x0;}_0x9a9f06['extend'](st);var ct=class extends _0xa0491f{get[_0x2437d5(0x26f)](){return _0x4ffd63;}get['BaseFilterConjunction'](){return _0x32065f;}get['BaseFilterOperator'](){return _0x1fe8e4;}get['BaseFieldKeyEnum'](){return Ke;}get['BaseViewType'](){return _0x206a78;}get[_0x2437d5(0x2b3)](){return _0x150b55;}get[_0x2437d5(0x30b)](){return _0x1b4b6a;}get['BaseConditionalDateMode'](){return _0x59106c;}get[_0x2437d5(0x221)](){return _0x109e0b;}get[_0x2437d5(0x22a)](){return _0x314bee;}get[_0x2437d5(0x288)](){return _0x104d26;}get[_0x2437d5(0x24e)](){return _0x443457;}get[_0x2437d5(0x2ff)](){return _0xb99381;}};_0xa0491f[_0x2437d5(0x2e3)](ct);var $=class extends _0x230a28{get[_0x2437d5(0x2da)](){const _0x2cc5ed=_0x2437d5;return _0x2cc5ed(0x2da);}get['BeforeBaseTableCreate'](){return'BeforeBaseTableCreate';}get[_0x2437d5(0x325)](){const _0x277f16=_0x2437d5;return _0x277f16(0x325);}get[_0x2437d5(0x2d1)](){const _0x2ed2af=_0x2437d5;return _0x2ed2af(0x2d1);}get[_0x2437d5(0x20f)](){return'BaseTableRecordCreated';}get[_0x2437d5(0x321)](){const _0x345911=_0x2437d5;return _0x345911(0x321);}get[_0x2437d5(0x27f)](){const _0x12e54b=_0x2437d5;return _0x12e54b(0x27f);}get[_0x2437d5(0x2b7)](){const _0x5dfecb=_0x2437d5;return _0x5dfecb(0x2b7);}get[_0x2437d5(0x2bb)](){return'BaseTableCellValueChanged';}get[_0x2437d5(0x1ed)](){const _0x5a087c=_0x2437d5;return _0x5a087c(0x1ed);}get[_0x2437d5(0x287)](){const _0x33661e=_0x2437d5;return _0x33661e(0x287);}get[_0x2437d5(0x28f)](){const _0x4ab3d4=_0x2437d5;return _0x4ab3d4(0x28f);}};_0x230a28[_0x2437d5(0x2e3)]($);export{Ke as BaseFieldKeyEnum,Z as FBase,X as FBaseTable,B as FBaseTableField,K as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,Je as resolveBaseFieldKey,H as resolveBaseFieldValues};