@univerjs-pro/bases 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x288d(_0x4991ee,_0x2c7c3e){_0x4991ee=_0x4991ee-0x1b5;const _0xc565a0=_0xc565();let _0x288d53=_0xc565a0[_0x4991ee];return _0x288d53;}const _0x359a99=_0x288d;function _0xc565(){const _0x36d650=['儲存格值無效','更新儲存格','6220jCktUb','看板需要可分組欄位','2108wwtCqs','甘特圖檢視需要開始和結束日期欄位','12078HeaVWG','行事曆','768BLRgmz','2040450UkwsTZ','1500956sqhPaK','核取方塊','71119pAyBwV','更新時間','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','電話號碼','6088jmeTRz','7ErKhvM','刪除欄位','1687660GSUBGS','輸入內容','建立時間','關聯記錄','更新人','欄位類型無效','更新檢視設定','電子郵件'];_0xc565=function(){return _0x36d650;};return _0xc565();}(function(_0x5f368c,_0x46dbc3){const _0x5e108f=_0x288d,_0x572c8a=_0x5f368c();while(!![]){try{const _0x2ab075=-parseInt(_0x5e108f(0x1cc))/0x1+parseInt(_0x5e108f(0x1c4))/0x2*(-parseInt(_0x5e108f(0x1c8))/0x3)+parseInt(_0x5e108f(0x1ca))/0x4+-parseInt(_0x5e108f(0x1b8))/0x5+parseInt(_0x5e108f(0x1c9))/0x6*(-parseInt(_0x5e108f(0x1b6))/0x7)+parseInt(_0x5e108f(0x1b5))/0x8+parseInt(_0x5e108f(0x1c6))/0x9*(parseInt(_0x5e108f(0x1c2))/0xa);if(_0x2ab075===_0x46dbc3)break;else _0x572c8a['push'](_0x572c8a['shift']());}catch(_0x30710f){_0x572c8a['push'](_0x572c8a['shift']());}}}(_0xc565,0x2eeae));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x359a99(0x1cb),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x359a99(0x1cf),'email':_0x359a99(0x1bf),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x359a99(0x1bb),'recordId':'記錄\x20ID','createdBy':'建立人','updatedBy':_0x359a99(0x1bc),'createdAt':_0x359a99(0x1ba),'updatedAt':_0x359a99(0x1cd),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x359a99(0x1b9),'linkPlaceholder':_0x359a99(0x1ce)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x359a99(0x1c7),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':_0x359a99(0x1bd),'invalidCellValue':_0x359a99(0x1c0),'invalidKanbanGroupField':_0x359a99(0x1c3),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':_0x359a99(0x1c5)},'command':{'updateCell':_0x359a99(0x1c1),'createField':'建立欄位','deleteField':_0x359a99(0x1b7),'createRecord':'建立記錄','deleteRecord':'刪除記錄','updateViewConfig':_0x359a99(0x1be)}}};module['exports']=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52461d=_0x1e0f;function _0x48fc(){const _0x55819c=['setFieldVisible','_prepareFormulaFieldReferences','conditionalColoring','Attachment','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addField','getPrimaryFieldId','BeforeBaseTableViewCreate','call','clear','getId','syncExecuteCommand','setName','recordIds','Event','fieldId','FBase','\x20in\x20field\x20\x22','getRange',',\x20max\x20columns:\x20','duplicate','hidden','Invalid\x20Base\x20regex\x20filter:\x20','getParent','endColumn','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','Failed\x20to\x20duplicate\x20table\x20\x22','_initBaseBeforeEvents','_projectionService','length','_tableId','iterator','views','_univerInstanceService','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','getDescription','orderedRecordIds','Gallery','DESC','getTable','_unitId','getProjection','conditions','deleteTable','has','offset','getFieldByName','433038zusgNE','Set','getAttachments','getViews','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','\x20for\x20field\x20\x22','mimeType','348kmXBRn','index','getPoint','BaseHierarchyChanged','_table','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','viewOrder','prototype','tableOrder','system','AND','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','base','BeforeBaseTableCellValueChange','BaseTableCreated','delete','valid','map','[FField]:\x20field\x20\x22','setGroup','toPrimitive','getRow','getRecords','move','_getRecordLinkField','Kanban','setLinkedRecordIds','getRecordById','width','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','getViewById','setReadOnly','getLinkedRecordIds','BaseEventSource','matches','update','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_commandService','getOwnPropertyDescriptor',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','Failed\x20to\x20create\x20table\x20\x22','saveUnit','getTableFacade','string','[FBase]:\x20table\x20\x22','primaryFieldId','decorate','operator','trim',':\x20expected\x20an\x20object.','queryRecords','BaseConditionalDateMode','3114zIgiHK','getFieldById','getGroup','BeforeBaseTableFieldCreate','BaseTableRecordCreated','_base','getType','rules','clearConditionalColorRules','find','setValues','changeType','message','BaseTableCellValueChanged','localeCompare','name','getPermission','getViewByName','getSnapshot','1360RcDnmQ','BaseSortDirection','disposeWithMe','deepClone','getBases','isFinite','_collectDescendantIds','Failed\x20to\x20add\x20records','from','UUID','recordId',',\x20range:\x20','fieldSettings','executeCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getFormulaName','addRecord','getPrimaryField','getTableId','size','slice','commonExtend','Formula','regenerateViewIds','fromEntries','Date','_getHierarchyEventContext','orderKey','fields','startsWith','multiple','getDataRange','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getActiveBase','max','_initialize','flatMap','value','getField','setPoint','\x22:\x20expected\x20an\x20array.','custom','\x22.\x20','Grid','_initBaseAfterEvents','getUnitId','Facade','test','Remote','sourceType','BaseTableViewCreated','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','\x20exceeds\x20range\x20size\x20','getNumRows','tables','_baseTableId','_getFieldIds','_objectId','_recordId','entries','2CmCGwZ','RecordId','get','\x22\x20has\x20invalid\x20config.','addConditionalColorRule','addLinkedRecord','params','warn','RecordLink','Failed\x20to\x20create\x20view\x20\x22',':\x20\x22','Edit','parentRecordId','includeRecords','_resourceLoaderService','search','stringify','_assertInBounds','getBaseFacade','43547irCBdx','targetTableId','_getRecord','hasOwnProperty','getConfig','deleteAttachments','field','[FBase]:\x20invalid\x20table\x20name\x20\x22','_injector','_baseUnitId','fromCollab','startColumn','height','_getTable','_parentObjectIds','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','createView','cancel','createdAt','BaseViewType','boolean','source','constructor','[FRecord]:\x20invalid\x20RecordLink\x20value.','BaseHierarchyErrorCode','some','getBaseId','getTableByName','invalid','setOrderKey','setParent','externalReferences','_getView','_getAttachmentField','_fireBeforeHierarchyChange','now','setSort','insertTable','every','BeforeBaseTableRecordCreate','getFilter','setHierarchyField','52016MrNaLE','beforeCommandExecuted','save','Delete','limit','_getHierarchyIndex','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','values','UNIVER_BASE','primaryFieldName','fireEvent','_viewId','push','\x22\x20is\x20invalid.','forEach','getRecord','_writeFormulaExternalReferences','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','defineProperty','fieldOrder','recordOrder','Gantt','\x22\x20does\x20not\x20exist.','isReadonly','BaseRecordLinkRole','getView','record','startRow','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','setEditable','getTableById','unitId','object','[FRecord]:\x20field\x20\x22','_getField','createInstance','3816YtOvZV','auto','defaultValue',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','indexOf','readonly','BASE64','BaseFieldKeyEnum','1744888LvHwhS','hierarchyChanges','getChildren','[FView]:\x20view\x20\x22','isArray','_range','_inject','BaseTableFieldCreated','reason','setAttachments','getValues','createUnit','filter','setFilter','description','rows','canEdit','view','getName','createBase','viewId','tableId','[FRecord]:\x20record\x20\x22','number','symbol','addChild','getFieldSettings','direction','_resolveRecordIds','caseSensitive','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','getTables','updatedAt','parentByRecordId','_permissionService','getValue','sort','getFields','getBase','22aaWonn','setConfig','extend','function','BeforeBaseHierarchyChange','table','registerEventHandler','getSchema','Clear','onCommandExecuted','getSort','notMatches','records','getNumColumns','thumbnail','_fieldId','config','1262172KiXrnD','endRow','includes','95hyXMrx','setConditionalColorRules','[FBaseRange]:\x20values\x20size\x20','beforeFieldId','getAllUnitsForType','updateConfig','type','BeforeBaseTableCreate','deleteProperty'];_0x48fc=function(){return _0x55819c;};return _0x48fc();}(function(_0x304f8f,_0x51c89f){const _0x2bb2ad=_0x1e0f,_0x3de77d=_0x304f8f();while(!![]){try{const _0x5c2c78=-parseInt(_0x2bb2ad(0x1d5))/0x1+parseInt(_0x2bb2ad(0xf9))/0x2*(parseInt(_0x2bb2ad(0x210))/0x3)+parseInt(_0x2bb2ad(0x136))/0x4*(parseInt(_0x2bb2ad(0x19d))/0x5)+parseInt(_0x2bb2ad(0x1dc))/0x6*(parseInt(_0x2bb2ad(0x10c))/0x7)+parseInt(_0x2bb2ad(0x162))/0x8+-parseInt(_0x2bb2ad(0x15a))/0x9*(-parseInt(_0x2bb2ad(0xbc))/0xa)+-parseInt(_0x2bb2ad(0x189))/0xb*(parseInt(_0x2bb2ad(0x19a))/0xc);if(_0x5c2c78===_0x51c89f)break;else _0x3de77d['push'](_0x3de77d['shift']());}catch(_0x4809eb){_0x3de77d['push'](_0x3de77d['shift']());}}}(_0x48fc,0x3ae9b));import{ApplyBaseJson1Mutation as _0x426009,BASE_TABLE_NAME_REQUIREMENTS as _0x37427f,BaseConditionalColorRuleUpdateType as _0x45aea4,BaseEventSource as _0x31e93c,BaseHierarchyErrorCode as _0x4efce9,BatchCreateBaseRecordsCommand as _0x2bc192,BatchDeleteBaseRecordsCommand as _0x34e6c2,ChangeBaseFieldTypeCommand as _0x14620a,CreateBaseChildRecordCommand as _0x5e51db,CreateBaseFieldCommand as _0x5649ae,CreateBaseRecordCommand as _0x2efdd1,CreateBaseTableCommand as _0x27d2e3,CreateBaseViewCommand as _0x5d854f,DeleteBaseFieldCommand as _0x3f28e6,DeleteBaseRecordCommand as _0x257b51,DeleteBaseTableCommand as _0x22fd29,DeleteBaseViewCommand as _0x4bd2e5,DuplicateBaseRecordCommand as _0x9bba9,IBaseProjectionService as _0x1ddcb6,MoveBaseFieldCommand as _0x7441ec,MoveBaseHierarchyRecordCommand as _0x5267a7,MoveBaseViewCommand as _0x4fbbd5,RenameBaseTableCommand as _0x2adfc6,RenameBaseViewCommand as _0x17bbd8,SetBaseNameCommand as _0x3776d7,SetBasePermissionCommand as _0x23684a,SetBasePermissionsCommand as _0x5883db,SetBaseRangeValuesCommand as _0x5bacf4,SetBaseRecordValuesCommand as _0x21ff8a,SetBaseTableHierarchyFieldCommand as _0x3111e0,SetBaseViewFieldOrderCommand as _0x3711a9,SetBaseViewFieldVisibleCommand as _0x558a88,SetBaseViewFieldWidthCommand as _0x3cccae,SetBaseViewFilterCommand as _0x34acd0,SetBaseViewGroupCommand as _0x3b44c4,SetBaseViewSortCommand as _0xfa97a2,UpdateBaseCellCommand as _0x20c761,UpdateBaseFieldCommand as _0x1ff958,UpdateBaseRecordOrderCommand as _0x1a08ea,UpdateBaseViewConditionalColorRulesCommand as _0x4a0521,UpdateBaseViewConfigCommand as _0x2be8c4,ValidateBaseFormulaCommand as _0x2d3f1c,buildBaseHierarchyIndex as _0x48b6a3,canEditBaseTargets as _0x6d4134,copyBaseTableSnapshot as _0x43532b,createUniqueBaseTableName as _0x51629a,ensureBaseTableCellLayout as _0x2c2e60,getActiveBaseHierarchyFieldIds as _0x145e7a,getBaseCellValue as _0x5582dc,getBaseFieldPermissionObjectId as _0x38b98c,getBaseFormulaTableName as _0x2e5aa4,getBaseHierarchyDeletePromotions as _0x169dd5,getBasePermissionValue as _0x576754,getBaseRecordPermissionObjectId as _0x533a74,getBaseTablePermissionObjectId as _0x2ffd70,getBaseViewPermissionObjectId as _0xfa3792,getRecordLinkFieldConfig as _0x737712,matchesBaseCondition as _0x2fce11,parseRecordLinkIds as _0x549917,resolveBaseHierarchyFieldId as _0x39d8f6,resolveBaseRangeHierarchyPatches as _0x631028,searchBaseTable as _0x4f1a66,serializeRecordLinkIds as _0x1e71bc,validateBaseHierarchyRecordCreations as _0x2e9f6f,validateBaseHierarchyRecordPatches as _0x2ff636,validateBaseTableName as _0x597076,validateRecordLinkValue as _0x2de149}from'@univerjs-pro/bases';function _0x1e0f(_0x41b13b,_0x5351c5){_0x41b13b=_0x41b13b-0xb5;const _0x48fc72=_0x48fc();let _0x1e0f94=_0x48fc72[_0x41b13b];return _0x1e0f94;}import{BASE_RECORD_ID_FIELD_ID as _0x23b461,BaseConditionalColorOperator as _0xe57c1a,BaseConditionalColorTarget as _0xfc34,BaseConditionalDateMode as _0x24aac6,BaseFieldType as _0x4db00c,BaseFilterConjunction as _0x964119,BaseFilterOperator as _0x5e5e09,BaseHierarchyInvalidReason as _0x449c78,BaseRecordLinkRole as _0x171d5a,BaseSortDirection as _0x114bbf,BaseViewType as _0x46c53d,CanceledError as _0x220bd1,ICommandService as _0xd6c9e9,IPermissionService as _0x24a74f,IResourceLoaderService as _0x138537,ImageSourceType as _0xc747b0,Inject as _0x398e71,Injector as _0x14fd65,Tools as _0x5ddc99,UniverInstanceType as _0x216daf,createDefaultBaseTableSnapshot as _0x256046,generateRandomId as _0x416ff3}from'@univerjs/core';import*as _0x1c1ab5 from'@univerjs/core/facade';import{FBaseInitialable as _0x4601f0,FEnum as _0x371b31,FEventName as _0x24d5c8,FUniver as _0x517ece}from'@univerjs/core/facade';import{UnitAction as _0x4d265f}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x1301ac}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x504616,_0x5f1bc9,_0x26feab){const _0x2d49be=_0x1e0f;this[_0x2d49be(0x1ce)]=_0x504616,this['_commandService']=_0x5f1bc9,this[_0x2d49be(0x184)]=_0x26feab;}async['setObjectPermissions'](_0x4c1f6c){const _0x285647=_0x1e0f;return this['_commandService'][_0x285647(0xc9)](_0x5883db['id'],{'unitId':this[_0x285647(0x1ce)],'changes':_0x4c1f6c});}async[_0x52461d(0xe3)](_0x46bd42,_0x44651e){const _0x400050=_0x52461d;await this['_commandService'][_0x400050(0xc9)](_0x23684a['id'],{'unitId':this[_0x400050(0x1ce)],'objectId':this['_unitId'],'action':_0x46bd42,'value':_0x44651e});}[_0x52461d(0x1de)](_0x5bc051){const _0x1ca949=_0x52461d;return _0x576754(this[_0x1ca949(0x184)],this[_0x1ca949(0x1ce)],this['_unitId'],_0x5bc051);}async[_0x52461d(0x153)](_0x20bfad=!0x0){const _0x323929=_0x52461d;await this[_0x323929(0x201)][_0x323929(0xc9)](_0x23684a['id'],{'unitId':this[_0x323929(0x1ce)],'objectId':this['_unitId'],'action':_0x4d265f[_0x323929(0x104)],'value':_0x20bfad});}async['setReadOnly'](){const _0x10bdce=_0x52461d;await this[_0x10bdce(0x201)][_0x10bdce(0xc9)](_0x23684a['id'],{'unitId':this[_0x10bdce(0x1ce)],'objectId':this[_0x10bdce(0x1ce)],'action':_0x4d265f['Edit'],'value':!0x1});}[_0x52461d(0x172)](){const _0x42bee5=_0x52461d;return _0x576754(this[_0x42bee5(0x184)],this[_0x42bee5(0x1ce)],this[_0x42bee5(0x1ce)],_0x4d265f[_0x42bee5(0x104)]);}},L=class{constructor(_0x4229fd,_0x436b60,_0x47e55b,_0xa56a1f,_0x4dd745){const _0x1687fd=_0x52461d;this[_0x1687fd(0x1ce)]=_0x4229fd,this[_0x1687fd(0xf6)]=_0x436b60,this[_0x1687fd(0x11a)]=_0x47e55b,this['_commandService']=_0xa56a1f,this[_0x1687fd(0x184)]=_0x4dd745;}async[_0x52461d(0x153)](_0x360848=!0x0){const _0x1aeabc=_0x52461d;await this['_commandService'][_0x1aeabc(0xc9)](_0x23684a['id'],{'unitId':this[_0x1aeabc(0x1ce)],'objectId':this[_0x1aeabc(0xf6)],'action':_0x4d265f[_0x1aeabc(0x104)],'value':_0x360848});}async[_0x52461d(0x1fb)](){const _0x231235=_0x52461d;await this[_0x231235(0x201)][_0x231235(0xc9)](_0x23684a['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x4d265f[_0x231235(0x104)],'value':!0x1});}[_0x52461d(0x172)](){const _0x1ae2e1=_0x52461d;return _0x6d4134(this[_0x1ae2e1(0x184)],this['_unitId'],[...this[_0x1ae2e1(0x11a)],this[_0x1ae2e1(0xf6)]]);}};function R(_0x583d25,_0x584a7f){return function(_0x3de27d,_0x4f8ed2){_0x584a7f(_0x3de27d,_0x4f8ed2,_0x583d25);};}function z(_0x276e74,_0x2a7d18,_0x596d38,_0x385098){const _0x32d3c0=_0x52461d;var _0x4f63c2=arguments[_0x32d3c0(0x1c3)],_0x2a10c3=_0x4f63c2<0x3?_0x2a7d18:_0x385098===null?_0x385098=Object[_0x32d3c0(0x202)](_0x2a7d18,_0x596d38):_0x385098,_0x49faa6;if(typeof Reflect==_0x32d3c0(0x156)&&typeof Reflect[_0x32d3c0(0x20a)]=='function')_0x2a10c3=Reflect[_0x32d3c0(0x20a)](_0x276e74,_0x2a7d18,_0x596d38,_0x385098);else{for(var _0x258d21=_0x276e74['length']-0x1;_0x258d21>=0x0;_0x258d21--)(_0x49faa6=_0x276e74[_0x258d21])&&(_0x2a10c3=(_0x4f63c2<0x3?_0x49faa6(_0x2a10c3):_0x4f63c2>0x3?_0x49faa6(_0x2a7d18,_0x596d38,_0x2a10c3):_0x49faa6(_0x2a7d18,_0x596d38))||_0x2a10c3);}return _0x4f63c2>0x3&&_0x2a10c3&&Object[_0x32d3c0(0x148)](_0x2a7d18,_0x596d38,_0x2a10c3),_0x2a10c3;}let B=class{constructor(_0x502258,_0x17e3fd,_0x5cbeb8,_0x5bbb55,_0x2bf76e){const _0x1c3f11=_0x52461d;this[_0x1c3f11(0x215)]=_0x502258,this[_0x1c3f11(0x1e0)]=_0x17e3fd,this[_0x1c3f11(0x198)]=_0x5cbeb8,this['_commandService']=_0x5bbb55,this[_0x1c3f11(0x184)]=_0x2bf76e;}[_0x52461d(0x1b0)](){return this['_fieldId'];}[_0x52461d(0xb9)](){const _0x23e9a5=_0x52461d;let _0x5ce707=this[_0x23e9a5(0x1e0)][_0x23e9a5(0x1b0)]();return new L(this[_0x23e9a5(0x215)][_0x23e9a5(0x1b0)](),_0x38b98c(_0x5ce707,this[_0x23e9a5(0x198)]),[_0x2ffd70(_0x5ce707)],this[_0x23e9a5(0x201)],this['_permissionService']);}[_0x52461d(0xe2)](){return this['_getField']();}[_0x52461d(0x174)](){const _0x34243b=_0x52461d;return this[_0x34243b(0x158)]()['name'];}[_0x52461d(0x216)](){const _0x3ae5d2=_0x52461d;return this[_0x3ae5d2(0x158)]()['type'];}[_0x52461d(0x110)](){const _0xef495e=_0x52461d;return this['_getField']()[_0xef495e(0x199)];}['getDefaultValue'](){const _0x125212=_0x52461d;return this[_0x125212(0x158)]()[_0x125212(0x15c)];}[_0x52461d(0x1c9)](){const _0x52b5af=_0x52461d;return this['_getField']()[_0x52b5af(0x170)];}[_0x52461d(0x14d)](){const _0x11dc1c=_0x52461d;return!!this[_0x11dc1c(0x158)]()[_0x11dc1c(0x15f)];}[_0x52461d(0x1b2)](_0x21d5fd){const _0x2a7fef=_0x52461d;return this[_0x2a7fef(0x1ff)]({'name':_0x21d5fd});}[_0x52461d(0x18a)](_0x525d3c,_0x5e5222){const _0x584313=_0x52461d;return this[_0x584313(0x1ff)]({'config':_0x525d3c},_0x5e5222);}['setDefaultValue'](_0x430dfd){return this['update']({'defaultValue':_0x430dfd});}[_0x52461d(0x1ff)](_0x5e00b7,_0xad6280){const _0x589c0f=_0x52461d;let _0x264b88=this['_getField']()[_0x589c0f(0x1a3)];return(_0x5e00b7[_0x589c0f(0x1a3)]??_0x264b88)===_0x4db00c[_0x589c0f(0xd2)]&&(Object[_0x589c0f(0x1e3)][_0x589c0f(0x10f)][_0x589c0f(0x1ae)](_0x5e00b7,_0x589c0f(0x199))||_0x5e00b7[_0x589c0f(0x1a3)]===_0x4db00c[_0x589c0f(0xd2)])&&!this[_0x589c0f(0x146)](_0xad6280)?!0x1:this[_0x589c0f(0x201)][_0x589c0f(0x1b1)](_0x1ff958['id'],{'unitId':this[_0x589c0f(0x215)][_0x589c0f(0x1b0)](),'tableId':this[_0x589c0f(0x1e0)][_0x589c0f(0x1b0)](),'fieldId':this[_0x589c0f(0x198)],'patch':_0x5e00b7});}[_0x52461d(0x21b)](_0x67b307,_0x1325ca={},_0x1d5b29){const _0x48a492=_0x52461d;return _0x67b307===_0x4db00c[_0x48a492(0xd2)]&&!this[_0x48a492(0x146)](_0x1d5b29)?!0x1:this[_0x48a492(0x201)]['syncExecuteCommand'](_0x14620a['id'],{'unitId':this['_base'][_0x48a492(0x1b0)](),'tableId':this[_0x48a492(0x1e0)][_0x48a492(0x1b0)](),'fieldId':this[_0x48a492(0x198)],'input':{'type':_0x67b307,'config':_0x1325ca}});}[_0x52461d(0x1eb)](){const _0x27f13b=_0x52461d;return this[_0x27f13b(0x201)]['syncExecuteCommand'](_0x3f28e6['id'],{'unitId':this[_0x27f13b(0x215)][_0x27f13b(0x1b0)](),'tableId':this[_0x27f13b(0x1e0)][_0x27f13b(0x1b0)](),'fieldId':this[_0x27f13b(0x198)]});}[_0x52461d(0x1f3)](_0x5aadb0){const _0x2190cf=_0x52461d;return this[_0x2190cf(0x201)]['syncExecuteCommand'](_0x7441ec['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2190cf(0x1e0)][_0x2190cf(0x1b0)](),'fieldId':this[_0x2190cf(0x198)],'target':_0x5aadb0});}[_0x52461d(0x158)](){const _0x42063e=_0x52461d;let _0x3d1bf0=this[_0x42063e(0x1e0)][_0x42063e(0x1cd)]()[_0x42063e(0xd8)][this[_0x42063e(0x198)]];if(!_0x3d1bf0)throw Error(_0x42063e(0x1ee)+this['_fieldId']+_0x42063e(0x14c));return _0x3d1bf0;}[_0x52461d(0x146)](_0x26909c){const _0x1dc6cc=_0x52461d;if(!_0x26909c||!Array[_0x1dc6cc(0x166)](_0x26909c['externalReferences']))return console[_0x1dc6cc(0x100)](_0x1dc6cc(0xdc)),!0x1;if(_0x26909c['externalReferences']['length']===0x0)return!0x0;let _0x3805cf=this[_0x1dc6cc(0x201)][_0x1dc6cc(0x1b1)](_0x1301ac['id'],{'unitId':this['_base'][_0x1dc6cc(0x1b0)](),'references':_0x26909c['externalReferences']});return _0x3805cf||console[_0x1dc6cc(0x100)](_0x1dc6cc(0x1f9)),_0x3805cf;}};B=z([R(0x3,_0xd6c9e9),R(0x4,_0x24a74f)],B);let ot=function(_0x3320da){const _0x482ad4=_0x52461d;return _0x3320da['Id']='id',_0x3320da['Name']=_0x482ad4(0xb8),_0x3320da['Auto']=_0x482ad4(0x15b),_0x3320da;}({});function V(_0x105fd7){const _0x314a60=_0x52461d;return!!(_0x105fd7&&_0x105fd7[_0x314a60(0x1e5)]!==!0x0&&_0x105fd7[_0x314a60(0x1a3)]!==_0x4db00c[_0x314a60(0xfa)]);}function H(_0x34d595,_0x3f988c,_0x435683='id'){const _0x4ff4fa=_0x52461d;if(!_0x3f988c)return{};let _0x21f69b={};return Object[_0x4ff4fa(0xf8)](_0x3f988c)[_0x4ff4fa(0x144)](([_0x4ea809,_0x1641c4])=>{let _0x1f3a76=ct(_0x34d595,_0x4ea809,_0x435683);_0x21f69b[_0x1f3a76]=st(_0x34d595['fields'][_0x1f3a76],_0x1641c4);}),_0x21f69b;}function st(_0xd11e2b,_0x43efb4){const _0x2220ee=_0x52461d;if((_0xd11e2b==null?void 0x0:_0xd11e2b[_0x2220ee(0x1a3)])!==_0x4db00c[_0x2220ee(0x1a9)]||_0x43efb4==null)return _0x43efb4;if(!Array['isArray'](_0x43efb4))throw TypeError(_0x2220ee(0x1d9)+_0xd11e2b[_0x2220ee(0xb8)]+_0x2220ee(0xe4));return _0x43efb4[_0x2220ee(0x1ed)]((_0x5b0018,_0x204030)=>lt(_0xd11e2b,_0x5b0018,_0x204030));}function ct(_0x1df888,_0x44da49,_0x22fdff){const _0x365c7e=_0x52461d;if(_0x22fdff==='id'||_0x22fdff==='auto'&&_0x1df888['fields'][_0x44da49])return _0x44da49;let _0x20adbc=Object[_0x365c7e(0x13d)](_0x1df888[_0x365c7e(0xd8)])['filter'](_0x3d4d38=>_0x3d4d38[_0x365c7e(0xb8)]===_0x44da49);if(_0x20adbc[_0x365c7e(0x1c3)]===0x1)return _0x20adbc[0x0]['id'];throw _0x20adbc[_0x365c7e(0x1c3)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x44da49):Error('Base\x20field\x20not\x20found:\x20'+_0x44da49);}function lt(_0x4aac25,_0x11082c,_0x49e7be){const _0x283255=_0x52461d;let _0x5dc5c9='Invalid\x20attachment\x20at\x20index\x20'+_0x49e7be+_0x283255(0x1da)+_0x4aac25['name']+'\x22';if(!ft(_0x11082c))throw TypeError(_0x5dc5c9+_0x283255(0x20d));if('url'in _0x11082c)throw TypeError(_0x5dc5c9+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x283255(0x1a3)in _0x11082c)throw TypeError(_0x5dc5c9+_0x283255(0x203));let _0x4168c8=U(_0x11082c['id'],_0x5dc5c9,'id'),_0x473456=U(_0x11082c[_0x283255(0xb8)],_0x5dc5c9,'name'),_0x56ebc1=U(_0x11082c['source'],_0x5dc5c9,_0x283255(0x121));return{'id':_0x4168c8,'name':_0x473456,'source':_0x56ebc1,'sourceType':ut(_0x11082c[_0x283255(0xed)],_0x56ebc1,_0x5dc5c9),...dt(_0x11082c,_0x283255(0x1db),_0x5dc5c9),...W(_0x11082c,_0x283255(0xcf),_0x5dc5c9),...W(_0x11082c,_0x283255(0x1f8),_0x5dc5c9),...W(_0x11082c,_0x283255(0x118),_0x5dc5c9),...dt(_0x11082c,_0x283255(0x197),_0x5dc5c9)};}function ut(_0x2aeb96,_0x4ba43e,_0x422f1b){const _0x55fe47=_0x52461d;if(_0x2aeb96==null)return _0x4ba43e[_0x55fe47(0xd9)]('data:')?_0xc747b0['BASE64']:_0xc747b0['URL'];if(_0x2aeb96===_0xc747b0['URL']||_0x2aeb96===_0xc747b0[_0x55fe47(0xc5)]||_0x2aeb96===_0xc747b0[_0x55fe47(0x160)])return _0x2aeb96;throw TypeError(_0x422f1b+_0x55fe47(0x15d));}function U(_0x3a1bde,_0xebda0f,_0x3eeacb){const _0x57f20a=_0x52461d;if(typeof _0x3a1bde!=_0x57f20a(0x207)||!_0x3a1bde[_0x57f20a(0x20c)]())throw TypeError(_0xebda0f+':\x20\x22'+_0x3eeacb+_0x57f20a(0xca));return _0x3a1bde;}function dt(_0x483b8f,_0x59a051,_0x25c3da){const _0x350cd4=_0x52461d;let _0x5b7d02=_0x483b8f[_0x59a051];if(_0x5b7d02==null)return{};if(typeof _0x5b7d02!=_0x350cd4(0x207)||!_0x5b7d02['trim']())throw TypeError(_0x25c3da+_0x350cd4(0x103)+_0x59a051+_0x350cd4(0x180));return{[_0x59a051]:_0x5b7d02};}function W(_0x165f8a,_0x5b4f53,_0x587c26){const _0x1cb6d4=_0x52461d;let _0x18e566=_0x165f8a[_0x5b4f53];if(_0x18e566==null)return{};if(typeof _0x18e566!=_0x1cb6d4(0x179)||!Number[_0x1cb6d4(0xc1)](_0x18e566)||_0x18e566<0x0)throw TypeError(_0x587c26+_0x1cb6d4(0x103)+_0x5b4f53+_0x1cb6d4(0x11b));return{[_0x5b4f53]:_0x18e566};}function ft(_0x11103a){const _0x5dbffd=_0x52461d;return typeof _0x11103a=='object'&&!!_0x11103a&&!Array[_0x5dbffd(0x166)](_0x11103a);}var G;let K=G=class{constructor(_0x1b5f94,_0xcadaa6,_0xd1262b,_0x510292,_0x19b221){const _0xcba279=_0x52461d;this['_base']=_0x1b5f94,this[_0xcba279(0x1e0)]=_0xcadaa6,this[_0xcba279(0x167)]=_0xd1262b,this['_inject']=_0x510292,this[_0xcba279(0x201)]=_0x19b221,this['_assertInBounds']();}[_0x52461d(0x126)](){const _0x4ae6e4=_0x52461d;return this[_0x4ae6e4(0x215)][_0x4ae6e4(0x1b0)]();}[_0x52461d(0xce)](){const _0x195485=_0x52461d;return this['_table'][_0x195485(0x1b0)]();}['getRange'](){const _0x59d848=_0x52461d;return{...this[_0x59d848(0x167)]};}[_0x52461d(0x1f1)](){const _0x2fdc5c=_0x52461d;return this[_0x2fdc5c(0x167)][_0x2fdc5c(0x151)];}['getColumn'](){const _0x4d0a9e=_0x52461d;return this['_range'][_0x4d0a9e(0x117)];}['getNumRows'](){const _0x7603c0=_0x52461d;return this[_0x7603c0(0x167)]['endRow']-this[_0x7603c0(0x167)][_0x7603c0(0x151)]+0x1;}['getNumColumns'](){const _0x2a406f=_0x52461d;return this[_0x2a406f(0x167)][_0x2a406f(0x1be)]-this['_range'][_0x2a406f(0x117)]+0x1;}[_0x52461d(0x16c)](){const _0x11b3d8=_0x52461d;let _0x30a8c7=this['_getTable'](),_0x170085=this[_0x11b3d8(0xf5)](_0x30a8c7),_0x4184b4=[];for(let _0x5850ec=this[_0x11b3d8(0x167)][_0x11b3d8(0x151)];_0x5850ec<=this[_0x11b3d8(0x167)]['endRow'];_0x5850ec++){var _0xe142e4;let _0x5418ea=(_0xe142e4=_0x30a8c7['rowId'])==null?void 0x0:_0xe142e4[_0x5850ec],_0x551d76=[];for(let _0x1447bb=this['_range'][_0x11b3d8(0x117)];_0x1447bb<=this['_range']['endColumn'];_0x1447bb++){let _0x4641ce=_0x170085[_0x1447bb];_0x551d76[_0x11b3d8(0x142)](_0x5418ea&&_0x4641ce?_0x5582dc(_0x30a8c7,_0x5418ea,_0x4641ce):null);}_0x4184b4[_0x11b3d8(0x142)](_0x551d76);}return _0x4184b4;}[_0x52461d(0x185)](){const _0x5c4262=_0x52461d;var _0x148cdc;return((_0x148cdc=this[_0x5c4262(0x16c)]()[0x0])==null?void 0x0:_0x148cdc[0x0])??null;}['setValue'](_0x2125eb){return this['setValues']([[_0x2125eb]]);}[_0x52461d(0x21a)](_0x2ee5b1){const _0x27d636=_0x52461d;let _0x525c11=this['getNumRows'](),_0x164d47=this[_0x27d636(0x196)]();if(_0x2ee5b1[_0x27d636(0x1c3)]>_0x525c11||_0x2ee5b1[_0x27d636(0x125)](_0x984465=>_0x984465[_0x27d636(0x1c3)]>_0x164d47)){var _0x5ee96b;throw Error(_0x27d636(0x19f)+_0x2ee5b1['length']+'x'+(((_0x5ee96b=_0x2ee5b1[0x0])==null?void 0x0:_0x5ee96b['length'])??0x0)+_0x27d636(0xf1)+_0x525c11+'x'+_0x164d47+'.');}let _0x3591ac=this['_getTable'](),_0x5d7607=this[_0x27d636(0xf5)](_0x3591ac),_0x499bea=_0x2ee5b1[_0x27d636(0xe0)]((_0x1b3f5e,_0x2cebd8)=>_0x1b3f5e['map']((_0x4f04f7,_0x27e069)=>{const _0x494bf9=_0x27d636;var _0x2f085f;let _0x237d69=this[_0x494bf9(0x167)]['startRow']+_0x2cebd8,_0x43bfc2=_0x5d7607[this['_range'][_0x494bf9(0x117)]+_0x27e069],_0xcd2d01=(_0x2f085f=_0x3591ac['rowId'])==null?void 0x0:_0x2f085f[_0x237d69];if(!_0x43bfc2||!_0xcd2d01)throw Error(_0x494bf9(0x1c8));return{'recordId':_0xcd2d01,'fieldId':_0x43bfc2,'value':_0x4f04f7};}));return this[_0x27d636(0x201)][_0x27d636(0x1b1)](_0x5bacf4['id'],{'unitId':this[_0x27d636(0x215)][_0x27d636(0x1b0)](),'tableId':this[_0x27d636(0x1e0)][_0x27d636(0x1b0)](),'patches':_0x499bea,'source':_0x31e93c[_0x27d636(0xea)]});}[_0x52461d(0x1af)](){const _0x25901a=_0x52461d;return this[_0x25901a(0x21a)](Array[_0x25901a(0xc4)]({'length':this[_0x25901a(0xf2)]()},()=>Array[_0x25901a(0xc4)]({'length':this['getNumColumns']()},()=>null)));}[_0x52461d(0x1d3)](_0x3d6cbe,_0x2c380a,_0x16199c=this[_0x52461d(0xf2)](),_0x23ca3e=this['getNumColumns']()){const _0x5c2bdb=_0x52461d;return this['_inject']['createInstance'](G,this['_base'],this[_0x5c2bdb(0x1e0)],{'startRow':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x151)]+_0x3d6cbe,'startColumn':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x117)]+_0x2c380a,'endRow':this[_0x5c2bdb(0x167)][_0x5c2bdb(0x151)]+_0x3d6cbe+_0x16199c-0x1,'endColumn':this['_range']['startColumn']+_0x2c380a+_0x23ca3e-0x1},this[_0x5c2bdb(0x168)]);}[_0x52461d(0x119)](){const _0x472263=_0x52461d;let _0x3fbd14=this[_0x472263(0x1e0)]['getTable']();if(!_0x3fbd14)throw Error(_0x472263(0x200));return _0x2c2e60(_0x3fbd14);}[_0x52461d(0x10a)](){const _0x49ceeb=_0x52461d;var _0x580fb7;let _0x3d796c=this[_0x49ceeb(0x119)](),_0x171a2e=((_0x580fb7=_0x3d796c[_0x49ceeb(0x14a)])==null?void 0x0:_0x580fb7[_0x49ceeb(0x1c3)])??0x0,_0x3b5d2c=this[_0x49ceeb(0xf5)](_0x3d796c)[_0x49ceeb(0x1c3)];if(this[_0x49ceeb(0x167)]['startRow']<0x0||this['_range'][_0x49ceeb(0x117)]<0x0||this[_0x49ceeb(0x167)][_0x49ceeb(0x19b)]<this['_range'][_0x49ceeb(0x151)]||this['_range'][_0x49ceeb(0x1be)]<this[_0x49ceeb(0x167)][_0x49ceeb(0x117)]||this[_0x49ceeb(0x167)][_0x49ceeb(0x19b)]>=Math[_0x49ceeb(0xde)](_0x171a2e,0x1)||this[_0x49ceeb(0x167)][_0x49ceeb(0x1be)]>=Math[_0x49ceeb(0xde)](_0x3b5d2c,0x1))throw Error(_0x49ceeb(0x147)+_0x171a2e+_0x49ceeb(0x1b9)+_0x3b5d2c+_0x49ceeb(0xc7)+JSON[_0x49ceeb(0x109)](this[_0x49ceeb(0x167)])+'.');}[_0x52461d(0xf5)](_0x5e86e2){const _0x5ec012=_0x52461d;return _0x5e86e2['fieldOrder'][_0x5ec012(0x16e)](_0x4f4eab=>V(_0x5e86e2[_0x5ec012(0xd8)][_0x4f4eab]));}};K=G=z([R(0x4,_0xd6c9e9)],K);function q(_0x36da05){'@babel/helpers - typeof';const _0x410da0=_0x52461d;return q=typeof Symbol==_0x410da0(0x18c)&&typeof Symbol[_0x410da0(0x1c5)]=='symbol'?function(_0x23d891){return typeof _0x23d891;}:function(_0x3f74d0){const _0x54b047=_0x410da0;return _0x3f74d0&&typeof Symbol==_0x54b047(0x18c)&&_0x3f74d0[_0x54b047(0x122)]===Symbol&&_0x3f74d0!==Symbol['prototype']?_0x54b047(0x17a):typeof _0x3f74d0;},q(_0x36da05);}function pt(_0x11b7f4,_0x2e2c39){const _0x136f7d=_0x52461d;if(q(_0x11b7f4)!=_0x136f7d(0x156)||!_0x11b7f4)return _0x11b7f4;var _0x10d231=_0x11b7f4[Symbol[_0x136f7d(0x1f0)]];if(_0x10d231!==void 0x0){var _0x206610=_0x10d231[_0x136f7d(0x1ae)](_0x11b7f4,_0x2e2c39||'default');if(q(_0x206610)!=_0x136f7d(0x156))return _0x206610;throw TypeError(_0x136f7d(0x1aa));}return(_0x2e2c39==='string'?String:Number)(_0x11b7f4);}function mt(_0x38861b){const _0x5c70a3=_0x52461d;var _0x25f192=pt(_0x38861b,_0x5c70a3(0x207));return q(_0x25f192)==_0x5c70a3(0x17a)?_0x25f192:_0x25f192+'';}function ht(_0x3e9bbc,_0x55b906,_0x5c7d47){const _0x3db402=_0x52461d;return(_0x55b906=mt(_0x55b906))in _0x3e9bbc?Object[_0x3db402(0x148)](_0x3e9bbc,_0x55b906,{'value':_0x5c7d47,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e9bbc[_0x55b906]=_0x5c7d47,_0x3e9bbc;}var J;let Y=J=class extends _0x4601f0{constructor(_0x4adb14,_0x4c0ae8,_0x108d64,_0x51ea28,_0x3b2015,_0x7353fd){const _0x157a6e=_0x52461d;super(_0x51ea28),this[_0x157a6e(0x215)]=_0x4adb14,this['_table']=_0x4c0ae8,this[_0x157a6e(0xf7)]=_0x108d64,this['_injector']=_0x51ea28,this['_commandService']=_0x3b2015,this[_0x157a6e(0x184)]=_0x7353fd,ht(this,_0x157a6e(0x115),void 0x0),ht(this,'_baseTableId',void 0x0),this['_baseUnitId']=_0x4adb14[_0x157a6e(0x1b0)](),this[_0x157a6e(0xf4)]=_0x4c0ae8[_0x157a6e(0x1b0)]();}[_0x52461d(0x10b)](){return this['_base'];}[_0x52461d(0x206)](){const _0x3aa4a8=_0x52461d;return this[_0x3aa4a8(0x1e0)];}[_0x52461d(0x1b0)](){const _0x2ce190=_0x52461d;return this[_0x2ce190(0xf7)];}['getPermission'](){const _0x474e1c=_0x52461d;let _0x1000ef=this[_0x474e1c(0x1e0)][_0x474e1c(0x1b0)]();return new L(this[_0x474e1c(0x215)][_0x474e1c(0x1b0)](),_0x533a74(_0x1000ef,this['_recordId']),[_0x2ffd70(_0x1000ef)],this[_0x474e1c(0x201)],this[_0x474e1c(0x184)]);}[_0x52461d(0x145)](){const _0x5ef863=_0x52461d;return{...this[_0x5ef863(0x10e)](),'values':this[_0x5ef863(0x16c)]()};}[_0x52461d(0x185)](_0x994a38){const _0x38fce5=_0x52461d;return V(this['_table'][_0x38fce5(0x1cd)]()[_0x38fce5(0xd8)][_0x994a38])?this[_0x38fce5(0x10e)]()[_0x38fce5(0x13d)][_0x994a38]??null:null;}['getValues'](){const _0x2489a4=_0x52461d;let _0x5e1662=this[_0x2489a4(0x1e0)][_0x2489a4(0x1cd)]();return Object[_0x2489a4(0xd4)](Object['entries'](this[_0x2489a4(0x10e)]()[_0x2489a4(0x13d)])['filter'](([_0x1f97fc])=>V(_0x5e1662[_0x2489a4(0xd8)][_0x1f97fc])));}['setValue'](_0x190926,_0x53bfce){const _0x3c7517=_0x52461d;let _0x2cd3b2=this[_0x3c7517(0x1e0)][_0x3c7517(0x1cd)]()[_0x3c7517(0xd8)][_0x190926];return this['_commandService'][_0x3c7517(0x1b1)](_0x20c761['id'],{'unitId':this['_base'][_0x3c7517(0x1b0)](),'tableId':this[_0x3c7517(0x1e0)]['getId'](),'recordId':this[_0x3c7517(0xf7)],'fieldId':_0x190926,'value':st(_0x2cd3b2,_0x53bfce),'source':_0x31e93c[_0x3c7517(0xea)]});}[_0x52461d(0x16b)](_0x132aed,_0x58f8e1){const _0x4f62e8=_0x52461d;return this['setValue'](_0x132aed,_0x58f8e1[_0x4f62e8(0x1ed)](_0x5c92a5=>({..._0x5c92a5})));}['getAttachments'](_0x5172ec){const _0x45fbdb=_0x52461d;this['_getAttachmentField'](_0x5172ec);let _0x5b8f7d=this['getValue'](_0x5172ec);return Array[_0x45fbdb(0x166)](_0x5b8f7d)?_0x5b8f7d[_0x45fbdb(0x1ed)]((_0x2271bd,_0x1f393c)=>_t(_0x2271bd,_0x5172ec,_0x1f393c)):[];}[_0x52461d(0x111)](_0x1cdc28,_0x4958dc){const _0x5b0cdd=_0x52461d;this[_0x5b0cdd(0x12d)](_0x1cdc28);let _0x59d418=new Set(_0x4958dc[_0x5b0cdd(0x1ed)](_0x23b836=>_0x23b836['id']));if(!_0x59d418[_0x5b0cdd(0xcf)])return!0x0;let _0x5d510d=this[_0x5b0cdd(0x1d7)](_0x1cdc28),_0x178168=_0x5d510d[_0x5b0cdd(0x16e)](_0x333a36=>!_0x59d418[_0x5b0cdd(0x1d2)](_0x333a36['id']));return _0x178168[_0x5b0cdd(0x1c3)]===_0x5d510d['length']||this[_0x5b0cdd(0x16b)](_0x1cdc28,_0x178168);}[_0x52461d(0x21a)](_0x50400c,_0x4d317a='id'){const _0x163604=_0x52461d;let _0x18c556=this['_table'][_0x163604(0x1cd)](),_0x212379=[{'recordId':this[_0x163604(0xf7)],'values':H(_0x18c556,_0x50400c,_0x4d317a)}];return this[_0x163604(0x201)][_0x163604(0x1b1)](_0x21ff8a['id'],{'unitId':this[_0x163604(0x215)][_0x163604(0x1b0)](),'tableId':this['_table'][_0x163604(0x1b0)](),'patches':_0x212379,'source':_0x31e93c['Facade']});}[_0x52461d(0x1eb)](){const _0x3e47c7=_0x52461d;return this['_commandService'][_0x3e47c7(0x1b1)](_0x257b51['id'],{'unitId':this['_base'][_0x3e47c7(0x1b0)](),'tableId':this[_0x3e47c7(0x1e0)]['getId'](),'recordId':this[_0x3e47c7(0xf7)],'source':_0x31e93c[_0x3e47c7(0xea)]});}[_0x52461d(0x1ba)](_0x56bb89){const _0x12d31b=_0x52461d;let _0x135c4d={...this[_0x12d31b(0x10e)](),..._0x56bb89,'id':_0x416ff3(0x6)};_0x135c4d[_0x12d31b(0x13d)]={..._0x135c4d[_0x12d31b(0x13d)],..._0x56bb89==null?void 0x0:_0x56bb89[_0x12d31b(0x13d)]},Reflect[_0x12d31b(0x1a5)](_0x135c4d[_0x12d31b(0x13d)],_0x23b461);let _0x1cf79a=Date['now']();if(_0x135c4d[_0x12d31b(0xd7)]||=''+_0x1cf79a,_0x135c4d[_0x12d31b(0x11e)]||=_0x1cf79a,_0x135c4d[_0x12d31b(0x182)]||=_0x1cf79a,!this['_commandService'][_0x12d31b(0x1b1)](_0x9bba9['id'],{'unitId':this['_base'][_0x12d31b(0x1b0)](),'tableId':this[_0x12d31b(0x1e0)][_0x12d31b(0x1b0)](),'sourceRecordId':this[_0x12d31b(0xf7)],'record':_0x135c4d,'source':_0x31e93c[_0x12d31b(0xea)]}))throw Error(_0x12d31b(0x1bf)+this[_0x12d31b(0xf7)]+'\x22.');return this[_0x12d31b(0x114)]['createInstance'](J,this[_0x12d31b(0x215)],this[_0x12d31b(0x1e0)],_0x135c4d['id'],this[_0x12d31b(0x114)]);}[_0x52461d(0x129)](_0x172524){const _0x1af02a=_0x52461d;return this[_0x1af02a(0x201)][_0x1af02a(0x1b1)](_0x1a08ea['id'],{'unitId':this[_0x1af02a(0x215)][_0x1af02a(0x1b0)](),'tableId':this[_0x1af02a(0x1e0)][_0x1af02a(0x1b0)](),'recordId':this[_0x1af02a(0xf7)],'orderKey':_0x172524});}[_0x52461d(0x1fc)](_0x1aa665){const _0x5d3bcd=_0x52461d;let _0x3b1c28=this[_0x5d3bcd(0x1f4)](_0x1aa665),_0x5f7546=this[_0x5d3bcd(0x185)](_0x3b1c28['id']);return _0x549917(_0x5f7546);}[_0x52461d(0x1f6)](_0x5bec47,_0x2716a8){const _0x10755f=_0x52461d;let _0x4812fd=this[_0x10755f(0x1f4)](_0x5bec47),_0x43fc43=_0x1e71bc(_0x2716a8),_0x114b16=_0x2de149(this[_0x10755f(0x215)][_0x10755f(0x188)]()[_0x10755f(0xbb)](),_0x4812fd,_0x43fc43);if(!_0x114b16['valid'])throw Error(_0x114b16[_0x10755f(0x16a)]??_0x10755f(0x123));return this[_0x10755f(0x201)][_0x10755f(0x1b1)](_0x20c761['id'],{'unitId':this[_0x10755f(0x215)]['getId'](),'tableId':this[_0x10755f(0x1e0)]['getId'](),'recordId':this[_0x10755f(0xf7)],'fieldId':_0x5bec47,'value':_0x43fc43,'source':_0x31e93c[_0x10755f(0xea)]});}[_0x52461d(0xfe)](_0x254332,_0x2a7347){const _0x8cab45=_0x52461d;let _0x4a6969=this['_getRecordLinkField'](_0x254332),_0xec570f=_0x737712(_0x4a6969);if(!_0xec570f)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x254332+_0x8cab45(0xfc));let _0x4470fb=this['getLinkedRecordIds'](_0x254332);return _0xec570f[_0x8cab45(0xda)]&&_0x4470fb[_0x8cab45(0x19c)](_0x2a7347)?!0x0:this[_0x8cab45(0x1f6)](_0x254332,_0xec570f['multiple']?[..._0x4470fb,_0x2a7347]:[_0x2a7347]);}['removeLinkedRecord'](_0x543d2c,_0x30777c){const _0x5ed32e=_0x52461d;let _0x2c3e7e=this[_0x5ed32e(0x1fc)](_0x543d2c);return!_0x2c3e7e[_0x5ed32e(0x19c)](_0x30777c)||this[_0x5ed32e(0x1f6)](_0x543d2c,_0x2c3e7e[_0x5ed32e(0x16e)](_0x3aa7bd=>_0x3aa7bd!==_0x30777c));}[_0x52461d(0x1bd)](_0x2d47e3){const _0x2afbff=_0x52461d;let _0x18dee0=this['_getHierarchyIndex'](_0x2d47e3)[_0x2afbff(0x183)][_0x2afbff(0xfb)](this[_0x2afbff(0xf7)])??null;return _0x18dee0?this[_0x2afbff(0x1e0)][_0x2afbff(0x1f7)](_0x18dee0):null;}[_0x52461d(0x164)](_0x589be3){const _0x2f6708=_0x52461d;return(this[_0x2f6708(0x13b)](_0x589be3)['childrenByParentId'][_0x2f6708(0xfb)](this[_0x2f6708(0xf7)])??[])[_0x2f6708(0xe0)](_0x428e91=>{const _0x3f11bb=_0x2f6708;let _0x158706=this[_0x3f11bb(0x1e0)][_0x3f11bb(0x1f7)](_0x428e91);return _0x158706?[_0x158706]:[];});}['getAncestors'](_0x3fb2d4){const _0x13bf6e=_0x52461d;let _0x578e50=this[_0x13bf6e(0x13b)](_0x3fb2d4),_0x3589fc=[],_0x2d5158=_0x578e50[_0x13bf6e(0x183)][_0x13bf6e(0xfb)](this[_0x13bf6e(0xf7)])??null;for(;_0x2d5158;){let _0x42d294=this[_0x13bf6e(0x1e0)][_0x13bf6e(0x1f7)](_0x2d5158);_0x42d294&&_0x3589fc[_0x13bf6e(0x142)](_0x42d294),_0x2d5158=_0x578e50[_0x13bf6e(0x183)][_0x13bf6e(0xfb)](_0x2d5158)??null;}return _0x3589fc;}['getDescendants'](_0x16fd9b){const _0x141e7b=_0x52461d;let _0x84c071=this[_0x141e7b(0x13b)](_0x16fd9b),_0x33c22b=_0x84c071[_0x141e7b(0x1ca)][_0x141e7b(0x15e)](this[_0x141e7b(0xf7)]),_0x10d470=_0x84c071['subtreeHeightByRecordId'][_0x141e7b(0x1d2)](this['_recordId'])?this[_0x141e7b(0xc2)](_0x84c071['childrenByParentId'],this[_0x141e7b(0xf7)]):[];return _0x33c22b<0x0?[]:_0x10d470[_0x141e7b(0xe0)](_0x4a53e0=>{const _0x395596=_0x141e7b;let _0xa63f39=this[_0x395596(0x1e0)]['getRecordById'](_0x4a53e0);return _0xa63f39?[_0xa63f39]:[];});}[_0x52461d(0x12a)](_0x46120c,_0x5c7ad4,_0x2c54e2){const _0x59adb4=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0x5267a7['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x59adb4(0x1e0)][_0x59adb4(0x1b0)](),'fieldId':_0x46120c,'recordId':this[_0x59adb4(0xf7)],'parentRecordId':_0x5c7ad4,'orderKey':_0x2c54e2,'source':_0x31e93c[_0x59adb4(0xea)]});}[_0x52461d(0x17b)](_0xcff611,_0xdd3016,_0x5c4787='id',_0x4d170a){const _0x2146fa=_0x52461d;let _0x27af95=this[_0x2146fa(0x1e0)][_0x2146fa(0x1cd)](),_0x138875=Date[_0x2146fa(0x12f)](),_0x5e3867={..._0x4d170a,'id':_0x416ff3(0x6),'values':H(_0x27af95,_0xdd3016,_0x5c4787),'orderKey':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0xd7)])||''+_0x138875,'createdAt':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0x11e)])||_0x138875,'updatedAt':(_0x4d170a==null?void 0x0:_0x4d170a[_0x2146fa(0x182)])||_0x138875};if(!this[_0x2146fa(0x201)][_0x2146fa(0x1b1)](_0x5e51db['id'],{'unitId':this[_0x2146fa(0x215)][_0x2146fa(0x1b0)](),'tableId':this['_table'][_0x2146fa(0x1b0)](),'fieldId':_0xcff611,'parentRecordId':this[_0x2146fa(0xf7)],'record':_0x5e3867,'source':_0x31e93c[_0x2146fa(0xea)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this['_recordId']+'\x22.');return this[_0x2146fa(0x114)][_0x2146fa(0x159)](J,this[_0x2146fa(0x215)],this[_0x2146fa(0x1e0)],_0x5e3867['id'],this['_injector']);}[_0x52461d(0x13b)](_0x2eb966){const _0x441fff=_0x52461d;return _0x48b6a3(this[_0x441fff(0x1e0)][_0x441fff(0x1cd)](),_0x2eb966);}[_0x52461d(0xc2)](_0x56f873,_0x261a61){let _0xd95cf3=[],_0x46549f=_0x1a110e=>{const _0x4a0171=_0x1e0f;for(let _0x22feca of _0x56f873[_0x4a0171(0xfb)](_0x1a110e)??[])_0xd95cf3[_0x4a0171(0x142)](_0x22feca),_0x46549f(_0x22feca);};return _0x46549f(_0x261a61),_0xd95cf3;}[_0x52461d(0x10e)](){const _0x3aa075=_0x52461d;let _0x285336=this[_0x3aa075(0x1e0)][_0x3aa075(0x1cd)]()[_0x3aa075(0x195)][this[_0x3aa075(0xf7)]];if(!_0x285336)throw Error(_0x3aa075(0x178)+this[_0x3aa075(0xf7)]+_0x3aa075(0x14c));return _0x285336;}[_0x52461d(0x1f4)](_0x1dfc76){const _0x179d44=_0x52461d;let _0x2a9875=this[_0x179d44(0x1e0)]['getTable']()[_0x179d44(0xd8)][_0x1dfc76];if(!_0x2a9875||_0x2a9875[_0x179d44(0x1a3)]!==_0x4db00c['RecordLink'])throw Error(_0x179d44(0x157)+_0x1dfc76+_0x179d44(0xf0));return _0x2a9875;}['_getAttachmentField'](_0x4de119){const _0x3f4a9b=_0x52461d;let _0x2ad502=this['_table'][_0x3f4a9b(0x1cd)]()[_0x3f4a9b(0xd8)][_0x4de119];if(!_0x2ad502||_0x2ad502[_0x3f4a9b(0x1a3)]!==_0x4db00c['Attachment'])throw Error(_0x3f4a9b(0x157)+_0x4de119+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x2ad502;}};Y=J=z([R(0x4,_0xd6c9e9),R(0x5,_0x24a74f)],Y);function gt(_0xae2f62){const _0xee5d6=_0x52461d;return!!(_0xae2f62&&typeof _0xae2f62==_0xee5d6(0x156)&&'id'in _0xae2f62&&typeof _0xae2f62['id']=='string'&&_0xee5d6(0xb8)in _0xae2f62&&typeof _0xae2f62[_0xee5d6(0xb8)]==_0xee5d6(0x207));}function _t(_0x1f7008,_0x1520db,_0x1cdbf0){const _0x1f6085=_0x52461d;if(!gt(_0x1f7008))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x1cdbf0+_0x1f6085(0x1b7)+_0x1520db+_0x1f6085(0x143));return{..._0x1f7008};}let X=class{constructor(_0x22ff1b,_0xdc1a38,_0x5f0d11,_0x49213b,_0x9d592d,_0x3934cf,_0x18eada){const _0x4e55dd=_0x52461d;this[_0x4e55dd(0x215)]=_0x22ff1b,this['_table']=_0xdc1a38,this[_0x4e55dd(0x141)]=_0x5f0d11,this['_injector']=_0x49213b,this[_0x4e55dd(0x201)]=_0x9d592d,this[_0x4e55dd(0x184)]=_0x3934cf,this[_0x4e55dd(0x1c2)]=_0x18eada;}[_0x52461d(0x1b0)](){const _0x28f178=_0x52461d;return this[_0x28f178(0x141)];}[_0x52461d(0xb9)](){const _0x4018c6=_0x52461d;let _0xab6bbf=this[_0x4018c6(0x1e0)][_0x4018c6(0x1b0)]();return new L(this['_base'][_0x4018c6(0x1b0)](),_0xfa3792(_0xab6bbf,this[_0x4018c6(0x141)]),[_0x2ffd70(_0xab6bbf)],this[_0x4018c6(0x201)],this[_0x4018c6(0x184)]);}[_0x52461d(0x14f)](){const _0x427aea=_0x52461d;return this[_0x427aea(0x12c)]();}['getName'](){const _0x2975c7=_0x52461d;return this[_0x2975c7(0x12c)]()['name'];}[_0x52461d(0x216)](){const _0x391ba1=_0x52461d;return this[_0x391ba1(0x12c)]()[_0x391ba1(0x1a3)];}[_0x52461d(0x1b2)](_0x579ee2){const _0x500721=_0x52461d;return this[_0x500721(0x201)]['syncExecuteCommand'](_0x17bbd8['id'],{'unitId':this['_base'][_0x500721(0x1b0)](),'tableId':this[_0x500721(0x1e0)][_0x500721(0x1b0)](),'viewId':this[_0x500721(0x141)],'name':_0x579ee2});}[_0x52461d(0x110)](){const _0x451d75=_0x52461d;let _0x9c76ba=this[_0x451d75(0x216)](),_0x758665=this['_getView']()[_0x451d75(0x199)];switch(_0x9c76ba){case _0x46c53d[_0x451d75(0xe7)]:return _0x758665;case _0x46c53d[_0x451d75(0x1f5)]:return _0x758665;case _0x46c53d['Calendar']:return _0x758665;case _0x46c53d[_0x451d75(0x14b)]:return _0x758665;case _0x46c53d[_0x451d75(0x1cb)]:return _0x758665;default:return _0x758665;}}[_0x52461d(0x1a2)](_0x363a02){const _0x45dcf5=_0x52461d;return this[_0x45dcf5(0x201)][_0x45dcf5(0x1b1)](_0x2be8c4['id'],{'unitId':this[_0x45dcf5(0x215)][_0x45dcf5(0x1b0)](),'tableId':this[_0x45dcf5(0x1e0)][_0x45dcf5(0x1b0)](),'viewId':this[_0x45dcf5(0x141)],'patch':_0x363a02});}['getConditionalColorRules'](){const _0x4108c0=_0x52461d;var _0x49b598;return _0x5ddc99['deepClone'](((_0x49b598=this[_0x4108c0(0x12c)]()[_0x4108c0(0x199)][_0x4108c0(0x1a8)])==null?void 0x0:_0x49b598[_0x4108c0(0x217)])??[]);}[_0x52461d(0x19e)](_0x3e098b){const _0x3a7a1d=_0x52461d;return this[_0x3a7a1d(0x201)]['syncExecuteCommand'](_0x4a0521['id'],{'unitId':this[_0x3a7a1d(0x215)][_0x3a7a1d(0x1b0)](),'tableId':this[_0x3a7a1d(0x1e0)][_0x3a7a1d(0x1b0)](),'viewId':this[_0x3a7a1d(0x141)],'type':_0x45aea4[_0x3a7a1d(0x1d6)],'rules':_0x3e098b});}[_0x52461d(0xfd)](_0x1f81a2){const _0x39ec93=_0x52461d;return this[_0x39ec93(0x201)][_0x39ec93(0x1b1)](_0x4a0521['id'],{'unitId':this[_0x39ec93(0x215)][_0x39ec93(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0x39ec93(0x141)],'type':_0x45aea4['Add'],'rule':_0x1f81a2});}['deleteConditionalColorRule'](_0x14bc33){const _0x13f312=_0x52461d;return this[_0x13f312(0x201)][_0x13f312(0x1b1)](_0x4a0521['id'],{'unitId':this[_0x13f312(0x215)][_0x13f312(0x1b0)](),'tableId':this[_0x13f312(0x1e0)][_0x13f312(0x1b0)](),'viewId':this[_0x13f312(0x141)],'type':_0x45aea4[_0x13f312(0x139)],'ruleId':_0x14bc33});}[_0x52461d(0x218)](){const _0xd19903=_0x52461d;return this[_0xd19903(0x201)][_0xd19903(0x1b1)](_0x4a0521['id'],{'unitId':this[_0xd19903(0x215)][_0xd19903(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0xd19903(0x141)],'type':_0x45aea4[_0xd19903(0x191)]});}[_0x52461d(0x134)](){const _0x2f9c4f=_0x52461d;return this['_getView']()[_0x2f9c4f(0x16e)]??null;}[_0x52461d(0x16f)](_0xcdf6e2){const _0x4beff8=_0x52461d;return this[_0x4beff8(0x201)][_0x4beff8(0x1b1)](_0x34acd0['id'],{'unitId':this[_0x4beff8(0x215)][_0x4beff8(0x1b0)](),'tableId':this[_0x4beff8(0x1e0)][_0x4beff8(0x1b0)](),'viewId':this[_0x4beff8(0x141)],'filter':_0xcdf6e2});}[_0x52461d(0x193)](){const _0xad5323=_0x52461d;return this[_0xad5323(0x12c)]()['sort']??[];}[_0x52461d(0x130)](_0x1e66f7){const _0x5df6df=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0xfa97a2['id'],{'unitId':this[_0x5df6df(0x215)][_0x5df6df(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this[_0x5df6df(0x141)],'sort':_0x1e66f7});}[_0x52461d(0x212)](){const _0x36f3fc=_0x52461d;return this[_0x36f3fc(0x12c)]()['group']??[];}[_0x52461d(0x1ef)](_0x539613){const _0x7ba496=_0x52461d;return this['_commandService']['syncExecuteCommand'](_0x3b44c4['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x7ba496(0x1b0)](),'viewId':this[_0x7ba496(0x141)],'group':_0x539613});}[_0x52461d(0x17c)](_0x3f1995){const _0x1d1fae=_0x52461d;var _0x442c79;return V(this[_0x1d1fae(0x1e0)][_0x1d1fae(0x1cd)]()[_0x1d1fae(0xd8)][_0x3f1995])?((_0x442c79=this[_0x1d1fae(0x12c)]()['fieldSettings'])==null?void 0x0:_0x442c79[_0x3f1995])??{}:{};}['getVisibleFields'](){const _0x23404e=_0x52461d;let _0x3d7df8=this[_0x23404e(0x1e0)][_0x23404e(0x1cd)](),_0x1e9c94=this[_0x23404e(0x12c)]();return(_0x1e9c94[_0x23404e(0x149)]??_0x3d7df8[_0x23404e(0x149)])[_0x23404e(0x16e)](_0x1dcecf=>{const _0x15b4fb=_0x23404e;var _0x270ffe;let _0x4b07d8=_0x3d7df8[_0x15b4fb(0xd8)][_0x1dcecf];return V(_0x4b07d8)&&!((_0x270ffe=_0x1e9c94['fieldSettings'])!=null&&(_0x270ffe=_0x270ffe[_0x1dcecf])!=null&&_0x270ffe['hidden']);})[_0x23404e(0x1ed)](_0x34d779=>this[_0x23404e(0x114)][_0x23404e(0x159)](B,this[_0x23404e(0x215)],this[_0x23404e(0x1e0)],_0x34d779));}[_0x52461d(0x1a6)](_0x5aa94c,_0x46a3c1){const _0x7c362f=_0x52461d;return V(this[_0x7c362f(0x1e0)][_0x7c362f(0x1cd)]()[_0x7c362f(0xd8)][_0x5aa94c])?this['_commandService'][_0x7c362f(0x1b1)](_0x558a88['id'],{'unitId':this['_base'][_0x7c362f(0x1b0)](),'tableId':this['_table'][_0x7c362f(0x1b0)](),'viewId':this[_0x7c362f(0x141)],'fieldId':_0x5aa94c,'visible':_0x46a3c1}):!0x1;}['setFieldWidth'](_0x277662,_0x46ff05){const _0x250a8d=_0x52461d;return V(this[_0x250a8d(0x1e0)][_0x250a8d(0x1cd)]()['fields'][_0x277662])?this[_0x250a8d(0x201)][_0x250a8d(0x1b1)](_0x3cccae['id'],{'unitId':this['_base'][_0x250a8d(0x1b0)](),'tableId':this[_0x250a8d(0x1e0)][_0x250a8d(0x1b0)](),'viewId':this[_0x250a8d(0x141)],'fieldId':_0x277662,'width':_0x46ff05}):!0x1;}['moveField'](_0x422d80,_0x58628a){const _0x372a1c=_0x52461d;let _0x599e8a=this[_0x372a1c(0x1e0)][_0x372a1c(0x1cd)](),_0x5e2ac6=_0x58628a[_0x372a1c(0x1a0)]??_0x58628a['afterFieldId'];return!V(_0x599e8a['fields'][_0x422d80])||!_0x5e2ac6||!V(_0x599e8a['fields'][_0x5e2ac6])?!0x1:this[_0x372a1c(0x201)]['syncExecuteCommand'](_0x3711a9['id'],{'unitId':this[_0x372a1c(0x215)][_0x372a1c(0x1b0)](),'tableId':this[_0x372a1c(0x1e0)][_0x372a1c(0x1b0)](),'viewId':this[_0x372a1c(0x141)],'fieldId':_0x422d80,'target':_0x58628a});}[_0x52461d(0x1f3)](_0x2c7484){const _0x1ead1a=_0x52461d;return this[_0x1ead1a(0x201)][_0x1ead1a(0x1b1)](_0x4fbbd5['id'],{'unitId':this[_0x1ead1a(0x215)][_0x1ead1a(0x1b0)](),'tableId':this[_0x1ead1a(0x1e0)][_0x1ead1a(0x1b0)](),'viewId':this['_viewId'],'target':_0x2c7484});}[_0x52461d(0x1eb)](){const _0x66598d=_0x52461d;return this[_0x66598d(0x201)][_0x66598d(0x1b1)](_0x4bd2e5['id'],{'unitId':this['_base'][_0x66598d(0x1b0)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId']});}[_0x52461d(0x1cf)](){const _0xe4463c=_0x52461d;return this[_0xe4463c(0x1c2)]['getProjection'](this['_base'][_0xe4463c(0x188)]()[_0xe4463c(0xbb)](),this[_0xe4463c(0x1e0)][_0xe4463c(0x1b0)](),this[_0xe4463c(0x141)]);}[_0x52461d(0x12c)](){const _0x1fd121=_0x52461d;let _0x3b8c43=this[_0x1fd121(0x1e0)][_0x1fd121(0x1cd)]()[_0x1fd121(0x1c6)][this[_0x1fd121(0x141)]];if(!_0x3b8c43)throw Error(_0x1fd121(0x165)+this['_viewId']+_0x1fd121(0x14c));return _0x3b8c43;}};X=z([R(0x4,_0xd6c9e9),R(0x5,_0x24a74f),R(0x6,_0x1ddcb6)],X);let Z=class{constructor(_0x5706c9,_0x322402,_0x6d0768,_0x293bad,_0x5d2f72,_0x441abe){const _0x42888c=_0x52461d;this['_base']=_0x5706c9,this[_0x42888c(0x1c4)]=_0x322402,this[_0x42888c(0x114)]=_0x6d0768,this['_commandService']=_0x293bad,this[_0x42888c(0x184)]=_0x5d2f72,this[_0x42888c(0x1c2)]=_0x441abe;}['getBase'](){const _0x175f2a=_0x52461d;return this['_base'][_0x175f2a(0x188)]();}['getTable'](){const _0x3401b9=_0x52461d;return this[_0x3401b9(0x119)]();}[_0x52461d(0x1b0)](){const _0x360904=_0x52461d;return this[_0x360904(0x1c4)];}[_0x52461d(0xb9)](){const _0x362bdc=_0x52461d;return new L(this[_0x362bdc(0x188)]()[_0x362bdc(0xe9)](),_0x2ffd70(this[_0x362bdc(0x1c4)]),[],this[_0x362bdc(0x201)],this[_0x362bdc(0x184)]);}['getHierarchyFieldId'](){const _0x2631e4=_0x52461d;return _0x39d8f6(this[_0x2631e4(0x119)]());}[_0x52461d(0x135)](_0x196870){const _0x4fb38a=_0x52461d;return this[_0x4fb38a(0x201)][_0x4fb38a(0x1b1)](_0x3111e0['id'],{'unitId':this[_0x4fb38a(0x215)]['getId'](),'tableId':this[_0x4fb38a(0x1c4)],'fieldId':_0x196870});}['getName'](){const _0x3fc1d6=_0x52461d;return this['_getTable']()[_0x3fc1d6(0xb8)];}[_0x52461d(0xcb)](){const _0x1bbaea=_0x52461d;let _0xc83ecb=this[_0x1bbaea(0x215)][_0x1bbaea(0x188)]()[_0x1bbaea(0xbb)]();return _0x2e5aa4(this[_0x1bbaea(0x119)](),_0xc83ecb);}['setName'](_0x358d44){const _0x4b22f4=_0x52461d;let _0x5af1ea=_0x597076(this[_0x4b22f4(0x215)]['getBase']()[_0x4b22f4(0xbb)](),_0x358d44,this['_tableId']);if(!_0x5af1ea[_0x4b22f4(0x1ec)])throw Error(_0x4b22f4(0xef)+_0x358d44+_0x4b22f4(0xe6)+_0x37427f+'\x20'+_0x5af1ea[_0x4b22f4(0x16a)]);return this[_0x4b22f4(0x201)][_0x4b22f4(0x1b1)](_0x2adfc6['id'],{'unitId':this[_0x4b22f4(0x215)]['getId'](),'tableId':this[_0x4b22f4(0x1c4)],'name':_0x358d44});}[_0x52461d(0x108)](_0x56e44e,_0xf8a4c7){const _0x1137fa=_0x52461d;let _0x3e1baf=this[_0x1137fa(0x215)][_0x1137fa(0x188)]()[_0x1137fa(0xbb)](),_0x199bbe=this[_0x1137fa(0x119)]();if(_0xf8a4c7){let _0x7b9e83=this[_0x1137fa(0x1c2)][_0x1137fa(0x1cf)](_0x3e1baf,this[_0x1137fa(0x1c4)],_0xf8a4c7),_0x5657cd=_0x199bbe[_0x1137fa(0x1c6)][_0xf8a4c7],_0x3df8dc=_0x56e44e['fieldIds']??Tt(_0x199bbe,_0x5657cd,_0x7b9e83),_0x57f7ba=_0x1137fa(0x171)in _0x7b9e83&&Array['isArray'](_0x7b9e83[_0x1137fa(0x171)])?_0x7b9e83[_0x1137fa(0x171)]:[];return _0x4f1a66({..._0x56e44e,'table':_0x199bbe,'fieldIds':_0x3df8dc,'rows':_0x57f7ba});}let _0x5441c9=(_0x199bbe[_0x1137fa(0x14a)]?_0x199bbe[_0x1137fa(0x14a)][_0x1137fa(0x1ed)](_0x460f21=>_0x199bbe[_0x1137fa(0x195)][_0x460f21]):Object['values'](_0x199bbe[_0x1137fa(0x195)])[_0x1137fa(0x186)]((_0x2cdf47,_0x4649b5)=>_0x2cdf47[_0x1137fa(0xd7)][_0x1137fa(0xb7)](_0x4649b5[_0x1137fa(0xd7)])))[_0x1137fa(0x16e)](_0x36083a=>_0x36083a)[_0x1137fa(0x1ed)](_0x591d74=>({'recordId':_0x591d74['id'],'values':_0x591d74['values']})),_0x5f855f=_0x56e44e['fieldIds']??_0x199bbe[_0x1137fa(0x149)][_0x1137fa(0x16e)](_0x18c484=>V(_0x199bbe['fields'][_0x18c484]));return _0x4f1a66({..._0x56e44e,'table':_0x199bbe,'fieldIds':_0x5f855f,'rows':_0x5441c9});}[_0x52461d(0x1ac)](){const _0x3a555f=_0x52461d;return this[_0x3a555f(0x119)]()[_0x3a555f(0x209)];}[_0x52461d(0x187)](){const _0x4eb98c=_0x52461d;let _0xe5c125=this[_0x4eb98c(0x119)]();return _0xe5c125[_0x4eb98c(0x149)][_0x4eb98c(0x1ed)](_0x122ff4=>_0xe5c125['fields'][_0x122ff4])[_0x4eb98c(0x16e)](V)['map'](_0x4ddc39=>this[_0x4eb98c(0x114)][_0x4eb98c(0x159)](B,this['_base'],this,_0x4ddc39['id']));}['getFieldById'](_0x32bd48){const _0x136090=_0x52461d;let _0x578c22=this[_0x136090(0x119)]()[_0x136090(0xd8)][_0x32bd48];return V(_0x578c22)?this['_injector'][_0x136090(0x159)](B,this[_0x136090(0x215)],this,_0x578c22['id']):null;}[_0x52461d(0x1d4)](_0x4983b6){const _0x13c727=_0x52461d;let _0x3d3e91=this[_0x13c727(0x119)]()[_0x13c727(0xd8)],_0x18ee87=Object[_0x13c727(0x13d)](_0x3d3e91)['find'](_0xaf419b=>V(_0xaf419b)&&_0xaf419b[_0x13c727(0xb8)]===_0x4983b6);return _0x18ee87?this['_injector'][_0x13c727(0x159)](B,this['_base'],this,_0x18ee87['id']):null;}[_0x52461d(0xcd)](){const _0x362795=_0x52461d;let _0x2a2fc0=this[_0x362795(0x119)]()[_0x362795(0x209)];return this['_injector'][_0x362795(0x159)](B,this[_0x362795(0x215)],this,_0x2a2fc0);}[_0x52461d(0x1ab)](_0x25d7b9,_0x109cd7,_0x2a3577){const _0x1d1944=_0x52461d;var _0x2d8c43,_0xc2994e;if(!Object['values'](_0x4db00c)['some'](_0x3b3218=>_0x3b3218===_0x109cd7))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x109cd7)+'\x22.');if(_0x109cd7===_0x4db00c[_0x1d1944(0xd2)]&&this[_0x1d1944(0x1a7)](_0x25d7b9,_0x2a3577),_0x109cd7===_0x4db00c[_0x1d1944(0x101)]&&(typeof(_0x2a3577==null||(_0x2d8c43=_0x2a3577[_0x1d1944(0x112)])==null||(_0x2d8c43=_0x2d8c43[_0x1d1944(0x199)])==null?void 0x0:_0x2d8c43[_0x1d1944(0x10d)])!=_0x1d1944(0x207)||typeof _0x2a3577[_0x1d1944(0x112)][_0x1d1944(0x199)][_0x1d1944(0xda)]!=_0x1d1944(0x120)))throw Error(_0x1d1944(0x13c));let _0x1eefb9={..._0x2a3577==null?void 0x0:_0x2a3577[_0x1d1944(0x112)],'id':_0x416ff3(0x6),'name':_0x25d7b9,'type':_0x109cd7,'config':(_0x2a3577==null||(_0xc2994e=_0x2a3577[_0x1d1944(0x112)])==null?void 0x0:_0xc2994e['config'])??{}};if(!this[_0x1d1944(0x201)]['syncExecuteCommand'](_0x5649ae['id'],{'unitId':this[_0x1d1944(0x215)][_0x1d1944(0x1b0)](),'tableId':this[_0x1d1944(0x1c4)],'field':_0x1eefb9,'index':_0x2a3577==null?void 0x0:_0x2a3577[_0x1d1944(0x1dd)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x25d7b9+'\x22');return this['_injector']['createInstance'](B,this[_0x1d1944(0x215)],this,_0x1eefb9['id']);}[_0x52461d(0x1a7)](_0x5e6b31,_0x5cce23){const _0x52b8ba=_0x52461d;var _0xaac404;if(!_0x5cce23||!(_0x52b8ba(0x12b)in _0x5cce23)||!Array[_0x52b8ba(0x166)](_0x5cce23[_0x52b8ba(0x12b)]))throw Error(_0x52b8ba(0x1e7));let _0x2e20c2=this[_0x52b8ba(0x201)][_0x52b8ba(0x1b1)](_0x2d3f1c['id'],{'unitId':this[_0x52b8ba(0x215)]['getId'](),'tableId':this[_0x52b8ba(0x1c4)],'formula':String(((_0xaac404=_0x5cce23[_0x52b8ba(0x112)])==null||(_0xaac404=_0xaac404[_0x52b8ba(0x199)])==null?void 0x0:_0xaac404['formula'])??'')});if(!_0x2e20c2[_0x52b8ba(0x1ec)])throw Error(_0x2e20c2[_0x52b8ba(0x16a)]??'Invalid\x20Base\x20formula.');if(_0x5cce23[_0x52b8ba(0x12b)][_0x52b8ba(0x1c3)]>0x0&&!this[_0x52b8ba(0x201)][_0x52b8ba(0x1b1)](_0x1301ac['id'],{'unitId':this[_0x52b8ba(0x215)]['getId'](),'references':_0x5cce23[_0x52b8ba(0x12b)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x5e6b31+'\x22');}[_0x52461d(0x1f2)](){const _0x48c5ad=_0x52461d;return this['_resolveRecordIds']()[_0x48c5ad(0x1ed)](_0x33439b=>this['_injector']['createInstance'](Y,this['_base'],this,_0x33439b,this[_0x48c5ad(0x114)]));}[_0x52461d(0x1f7)](_0x2d2d79){const _0x4e3ed5=_0x52461d;return this[_0x4e3ed5(0x119)]()[_0x4e3ed5(0x195)][_0x2d2d79]?this[_0x4e3ed5(0x114)][_0x4e3ed5(0x159)](Y,this[_0x4e3ed5(0x215)],this,_0x2d2d79,this[_0x4e3ed5(0x114)]):null;}[_0x52461d(0x20e)](_0x24e46e={}){const _0x5ddc09=_0x52461d;let _0x4a0013=this[_0x5ddc09(0x119)](),_0x2b45de=this['_resolveRecordIds'](_0x24e46e),_0x26ff7a=Math['max'](0x0,_0x24e46e[_0x5ddc09(0x1d3)]??0x0),_0x1cb921=_0x24e46e[_0x5ddc09(0x13a)]==null?null:Math[_0x5ddc09(0xde)](0x0,_0x24e46e[_0x5ddc09(0x13a)]),_0x3c9143=yt(_0x2b45de[_0x5ddc09(0x1ed)](_0x5c073d=>_0x4a0013[_0x5ddc09(0x195)][_0x5c073d])['filter'](_0x4c61f3=>xt(_0x4c61f3,_0x4a0013,_0x24e46e[_0x5ddc09(0x16e)])),_0x4a0013,_0x24e46e['sort']);return{'records':vt(_0x3c9143,_0x24e46e)[_0x5ddc09(0x1ed)](_0x3af312=>this['_injector'][_0x5ddc09(0x159)](Y,this[_0x5ddc09(0x215)],this,_0x3af312['id'],this[_0x5ddc09(0x114)])),'total':_0x3c9143[_0x5ddc09(0x1c3)],'offset':_0x26ff7a,'limit':_0x1cb921,'hasMore':_0x1cb921!=null&&_0x26ff7a+_0x1cb921<_0x3c9143['length']};}[_0x52461d(0xcc)](_0x21dd4f,_0x3779d6='id',_0x571f78){const _0x5e58fc=_0x52461d;let _0x15a3fe=this[_0x5e58fc(0x119)](),_0x485341=Date[_0x5e58fc(0x12f)](),_0x55f59a={..._0x571f78,'id':_0x416ff3(0x6),'values':H(_0x15a3fe,_0x21dd4f,_0x3779d6),'orderKey':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0xd7)])||''+_0x485341,'createdAt':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0x11e)])||_0x485341,'updatedAt':(_0x571f78==null?void 0x0:_0x571f78[_0x5e58fc(0x182)])||_0x485341};if(!this[_0x5e58fc(0x201)][_0x5e58fc(0x1b1)](_0x2efdd1['id'],{'unitId':this[_0x5e58fc(0x215)][_0x5e58fc(0x1b0)](),'tableId':this['_tableId'],'record':_0x55f59a,'source':_0x31e93c['Facade']}))throw Error(_0x5e58fc(0x1e1)+_0x55f59a['id']+'\x22');return this['_injector'][_0x5e58fc(0x159)](Y,this[_0x5e58fc(0x215)],this,_0x55f59a['id'],this[_0x5e58fc(0x114)]);}['addRecords'](_0x226274){const _0x1dd5d8=_0x52461d;if(!_0x226274[_0x1dd5d8(0x1c3)])return[];let _0x426338=this[_0x1dd5d8(0x119)](),_0x203c8f=Date[_0x1dd5d8(0x12f)](),_0x29c844=_0x226274['map']((_0x19a3de,_0x98aaa1)=>{const _0x4801e4=_0x1dd5d8;var _0x589e9b,_0x5b5d5d,_0x33ac8a;return{..._0x19a3de['record'],'id':_0x416ff3(0x6),'values':H(_0x426338,_0x19a3de[_0x4801e4(0x13d)],_0x19a3de['fieldKey']??'id'),'orderKey':((_0x589e9b=_0x19a3de['record'])==null?void 0x0:_0x589e9b[_0x4801e4(0xd7)])||''+(_0x203c8f+_0x98aaa1),'createdAt':((_0x5b5d5d=_0x19a3de[_0x4801e4(0x150)])==null?void 0x0:_0x5b5d5d[_0x4801e4(0x11e)])||_0x203c8f,'updatedAt':((_0x33ac8a=_0x19a3de[_0x4801e4(0x150)])==null?void 0x0:_0x33ac8a[_0x4801e4(0x182)])||_0x203c8f};});if(!this[_0x1dd5d8(0x201)]['syncExecuteCommand'](_0x2bc192['id'],{'unitId':this[_0x1dd5d8(0x215)]['getId'](),'tableId':this[_0x1dd5d8(0x1c4)],'records':_0x29c844,'source':_0x31e93c[_0x1dd5d8(0xea)]}))throw Error(_0x1dd5d8(0xc3));return _0x29c844[_0x1dd5d8(0x1ed)](_0x140f41=>this[_0x1dd5d8(0x114)][_0x1dd5d8(0x159)](Y,this[_0x1dd5d8(0x215)],this,_0x140f41['id'],this[_0x1dd5d8(0x114)]));}['deleteRecords'](_0x52b735){const _0x47ebe1=_0x52461d;return!_0x52b735[_0x47ebe1(0x1c3)]||this[_0x47ebe1(0x201)][_0x47ebe1(0x1b1)](_0x34e6c2['id'],{'unitId':this['_base']['getId'](),'tableId':this['_tableId'],'recordIds':_0x52b735,'source':_0x31e93c[_0x47ebe1(0xea)]});}['getRange'](_0x236058,_0x1c4f27,_0x1c7b15=0x1,_0x56550c=0x1){const _0x294bf3=_0x52461d;return this[_0x294bf3(0x114)][_0x294bf3(0x159)](K,this[_0x294bf3(0x215)],this,{'startRow':_0x236058,'endRow':_0x236058+_0x1c7b15-0x1,'startColumn':_0x1c4f27,'endColumn':_0x1c4f27+_0x56550c-0x1},this['_injector']);}[_0x52461d(0xdb)](){const _0x46d405=_0x52461d;var _0x2b1fdf;let _0x347179=_0x2c2e60(this[_0x46d405(0x119)]()),_0x37dce3=((_0x2b1fdf=_0x347179[_0x46d405(0x14a)])==null?void 0x0:_0x2b1fdf[_0x46d405(0x1c3)])??0x0,_0x4b76bd=_0x347179[_0x46d405(0x149)]['filter'](_0x4fdef0=>V(_0x347179['fields'][_0x4fdef0]))['length'];return this[_0x46d405(0x1b8)](0x0,0x0,Math[_0x46d405(0xde)](_0x37dce3,0x1),Math['max'](_0x4b76bd,0x1));}[_0x52461d(0x1d8)](){const _0x596bba=_0x52461d;let _0xc9fdab=this[_0x596bba(0x119)]();return _0xc9fdab[_0x596bba(0x1e2)][_0x596bba(0x16e)](_0x1dad33=>_0xc9fdab[_0x596bba(0x1c6)][_0x1dad33])[_0x596bba(0x1ed)](_0x2af3b0=>this['_injector'][_0x596bba(0x159)](X,this[_0x596bba(0x215)],this,_0x2af3b0,this[_0x596bba(0x114)]));}[_0x52461d(0x1fa)](_0x295c97){const _0x59a80a=_0x52461d;return this[_0x59a80a(0x119)]()[_0x59a80a(0x1c6)][_0x295c97]?this['_injector'][_0x59a80a(0x159)](X,this[_0x59a80a(0x215)],this,_0x295c97,this[_0x59a80a(0x114)]):null;}[_0x52461d(0xba)](_0x54e877){const _0x38ff77=_0x52461d;let _0x1ca6ce=this['_getTable'](),_0x416c5d=Object[_0x38ff77(0x13d)](_0x1ca6ce['views'])[_0x38ff77(0x219)](_0x3dbe0d=>_0x3dbe0d['name']===_0x54e877);return _0x416c5d?this['_injector'][_0x38ff77(0x159)](X,this[_0x38ff77(0x215)],this,_0x416c5d['id'],this['_injector']):null;}[_0x52461d(0x11c)](_0x11bab5,_0x21c5ec,_0x567bc3){const _0x205c3c=_0x52461d;var _0x31d010,_0x3dea38,_0x460544,_0x3a51e4;let _0x3d764d=this['_getTable'](),_0x2bb073=(_0x567bc3==null||(_0x31d010=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x31d010[_0x205c3c(0x149)])??_0x3d764d['fieldOrder'],_0x14df70=[_0x23b461,..._0x2bb073[_0x205c3c(0x16e)](_0xe55427=>V(_0x3d764d[_0x205c3c(0xd8)][_0xe55427]))],_0x2ade66={..._0x567bc3==null?void 0x0:_0x567bc3[_0x205c3c(0x173)],'id':_0x416ff3(0x6),'name':_0x11bab5,'type':_0x21c5ec,'tableId':this[_0x205c3c(0x1c4)],'config':(_0x567bc3==null||(_0x3dea38=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x3dea38[_0x205c3c(0x199)])??{},'fieldOrder':_0x14df70,'fieldSettings':{..._0x567bc3==null||(_0x460544=_0x567bc3[_0x205c3c(0x173)])==null?void 0x0:_0x460544['fieldSettings'],[_0x23b461]:{..._0x567bc3==null||(_0x3a51e4=_0x567bc3[_0x205c3c(0x173)])==null||(_0x3a51e4=_0x3a51e4[_0x205c3c(0xc8)])==null?void 0x0:_0x3a51e4[_0x23b461],'hidden':!0x0}}};if(!this['_commandService']['syncExecuteCommand'](_0x5d854f['id'],{'unitId':this[_0x205c3c(0x215)][_0x205c3c(0x1b0)](),'tableId':this['_tableId'],'view':_0x2ade66,'index':_0x567bc3==null?void 0x0:_0x567bc3['index']}))throw Error(_0x205c3c(0x102)+_0x11bab5+'\x22');return this[_0x205c3c(0x114)][_0x205c3c(0x159)](X,this[_0x205c3c(0x215)],this,_0x2ade66['id'],this[_0x205c3c(0x114)]);}['getSchema'](){const _0x1eb01d=_0x52461d;let _0x4135a3=this[_0x1eb01d(0x119)](),_0x346062=_0x4135a3[_0x1eb01d(0x149)][_0x1eb01d(0x16e)](_0x3e1f03=>V(_0x4135a3[_0x1eb01d(0xd8)][_0x3e1f03])),_0x207964=_0x4135a3[_0x1eb01d(0x1e2)][_0x1eb01d(0x16e)](_0xf8bc4b=>_0x4135a3[_0x1eb01d(0x1c6)][_0xf8bc4b]);return{'id':_0x4135a3['id'],'name':_0x4135a3[_0x1eb01d(0xb8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4135a3['primaryFieldId'],'fieldIds':_0x346062,'viewIds':_0x207964,'recordCount':this[_0x1eb01d(0x17e)]()[_0x1eb01d(0x1c3)],'fields':_0x346062[_0x1eb01d(0x1ed)](_0x2a0c50=>{const _0x3f2d39=_0x1eb01d;let _0x1d4148=_0x4135a3[_0x3f2d39(0xd8)][_0x2a0c50];return{'id':_0x1d4148['id'],'name':_0x1d4148[_0x3f2d39(0xb8)],'type':_0x1d4148[_0x3f2d39(0x1a3)],'config':_0x1d4148[_0x3f2d39(0x199)],'readonly':_0x1d4148['readonly'],'description':_0x1d4148[_0x3f2d39(0x170)]};}),'views':_0x207964[_0x1eb01d(0x1ed)](_0x2105fd=>{const _0x2fa62a=_0x1eb01d;let _0x556194=_0x4135a3[_0x2fa62a(0x1c6)][_0x2105fd];return{'id':_0x556194['id'],'name':_0x556194[_0x2fa62a(0xb8)],'type':_0x556194[_0x2fa62a(0x1a3)]};})};}[_0x52461d(0x119)](){const _0x2b11db=_0x52461d;let _0x5b53e9=this[_0x2b11db(0x215)][_0x2b11db(0x188)]()[_0x2b11db(0xbb)]()[_0x2b11db(0xf3)][this[_0x2b11db(0x1c4)]];if(!_0x5b53e9)throw Error('[FTable]:\x20table\x20\x22'+this[_0x2b11db(0x1c4)]+_0x2b11db(0x14c));return _0x5b53e9;}[_0x52461d(0x17e)](_0x55c37e={}){const _0x523b8d=_0x52461d;let _0x348406=this[_0x523b8d(0x215)][_0x523b8d(0x188)]()[_0x523b8d(0xbb)](),_0x20010d=this[_0x523b8d(0x119)]();if(_0x55c37e[_0x523b8d(0x176)]){let _0x5f3805=this[_0x523b8d(0x1c2)]['getProjection'](_0x348406,this[_0x523b8d(0x1c4)],_0x55c37e[_0x523b8d(0x176)]);if(_0x523b8d(0x171)in _0x5f3805&&Array[_0x523b8d(0x166)](_0x5f3805[_0x523b8d(0x171)]))return _0x5f3805['rows'][_0x523b8d(0x1ed)](_0x5c1315=>_0x5c1315[_0x523b8d(0xc6)]);}return(_0x20010d[_0x523b8d(0x14a)]?_0x20010d[_0x523b8d(0x14a)]['map'](_0x2d5fc7=>_0x20010d[_0x523b8d(0x195)][_0x2d5fc7]):Object['values'](_0x20010d[_0x523b8d(0x195)])[_0x523b8d(0x186)]((_0x1ef976,_0x4cc051)=>_0x1ef976[_0x523b8d(0xd7)][_0x523b8d(0xb7)](_0x4cc051[_0x523b8d(0xd7)])))['filter'](_0xa8f95f=>_0xa8f95f)['map'](_0x591d67=>_0x591d67['id']);}};Z=z([R(0x3,_0xd6c9e9),R(0x4,_0x24a74f),R(0x5,_0x1ddcb6)],Z);function vt(_0x431532,_0x161824){const _0x2d21bb=_0x52461d;let _0x309931=Math['max'](0x0,_0x161824[_0x2d21bb(0x1d3)]??0x0);return _0x161824[_0x2d21bb(0x13a)]==null?_0x431532['slice'](_0x309931):_0x431532[_0x2d21bb(0xd0)](_0x309931,_0x309931+Math[_0x2d21bb(0xde)](0x0,_0x161824[_0x2d21bb(0x13a)]));}function yt(_0x453aba,_0xfa4365,_0x3f0170=[]){const _0x558f27=_0x52461d;return _0x3f0170[_0x558f27(0x1c3)]?[..._0x453aba][_0x558f27(0x186)]((_0x6ac1ec,_0x320a43)=>{const _0x403204=_0x558f27;for(let _0x928711 of _0x3f0170){var _0x3c62a7;let _0x1595d7=_0x928711[_0x403204(0x17d)]===_0x114bbf[_0x403204(0x1cc)]?-0x1:0x1,_0xed4bc5=bt(_0x6ac1ec[_0x403204(0x13d)][_0x928711[_0x403204(0x1b5)]],_0x320a43['values'][_0x928711[_0x403204(0x1b5)]],(_0x3c62a7=_0xfa4365[_0x403204(0xd8)][_0x928711[_0x403204(0x1b5)]])==null?void 0x0:_0x3c62a7['type']);if(_0xed4bc5!==0x0)return _0xed4bc5*_0x1595d7;}return String(_0x6ac1ec[_0x403204(0xd7)]??_0x6ac1ec['id'])[_0x403204(0xb7)](String(_0x320a43[_0x403204(0xd7)]??_0x320a43['id']));}):_0x453aba;}function bt(_0x46d38b,_0x13cfdc,_0x5f4432){const _0x561656=_0x52461d;return _0x46d38b==null&&_0x13cfdc==null?0x0:_0x46d38b==null?-0x1:_0x13cfdc==null?0x1:typeof _0x46d38b==_0x561656(0x179)&&typeof _0x13cfdc=='number'?_0x46d38b-_0x13cfdc:_0x5f4432===_0x4db00c[_0x561656(0xd5)]?Number(_0x46d38b)-Number(_0x13cfdc):String(_0x46d38b)['localeCompare'](String(_0x13cfdc));}function xt(_0x580a61,_0x446389,_0x1561ba){const _0xc20ddb=_0x52461d;var _0x16efb1;if(!_0x1561ba||!((_0x16efb1=_0x1561ba[_0xc20ddb(0x1d0)])!=null&&_0x16efb1[_0xc20ddb(0x1c3)]))return!0x0;let {conjunction:_0x426688=_0x964119['OR'],conditions:_0x5edfac}=_0x1561ba;return _0x426688===_0x964119[_0xc20ddb(0x1e6)]&&_0x5edfac[_0xc20ddb(0x1c3)]>0x1?_0x5edfac[_0xc20ddb(0x132)](_0x4dcce4=>St(_0x580a61,_0x446389,_0x4dcce4)):_0x5edfac[_0xc20ddb(0x125)](_0x11cfdb=>St(_0x580a61,_0x446389,_0x11cfdb));}function St(_0x33e170,_0x3534a6,_0x40cfef){const _0x2bb0b8=_0x52461d;let _0x5ff081=_0x33e170[_0x2bb0b8(0x13d)][_0x40cfef[_0x2bb0b8(0x1b5)]],_0x11187a=_0x3534a6['fields'][_0x40cfef[_0x2bb0b8(0x1b5)]];if(Ct(_0x40cfef)){let _0x3ceeef=wt(_0x40cfef)[_0x2bb0b8(0xeb)](String(_0x5ff081??''));return _0x40cfef[_0x2bb0b8(0x20b)]===_0x2bb0b8(0x1fe)?_0x3ceeef:!_0x3ceeef;}return!_0x11187a||_0x2fce11(_0x5ff081,_0x40cfef['operator'],_0x40cfef[_0x2bb0b8(0xe1)],_0x11187a);}function Ct(_0x401e5a){const _0x3961db=_0x52461d;return _0x401e5a[_0x3961db(0x20b)]===_0x3961db(0x1fe)||_0x401e5a[_0x3961db(0x20b)]===_0x3961db(0x194);}function wt(_0x38242c){const _0x5ed535=_0x52461d;let _0x5d3618=String(_0x38242c['value']??'');if(_0x5d3618[_0x5ed535(0x1c3)]>0x200)throw Error(_0x5ed535(0x152));try{return new RegExp(_0x5d3618,_0x38242c[_0x5ed535(0x17f)]?void 0x0:'i');}catch(_0x3b6d52){throw Error(_0x5ed535(0x1bc)+_0x5d3618+'.\x20'+(_0x3b6d52 instanceof Error?_0x3b6d52[_0x5ed535(0xb5)]:String(_0x3b6d52)));}}function Tt(_0x4f57ad,_0x27a288,_0x33cb2f){const _0x36769f=_0x52461d;if(_0x33cb2f[_0x36769f(0x1a3)]!==_0x36769f(0x128)&&_0x33cb2f[_0x36769f(0x1a3)]!==_0x36769f(0xe5)){var _0x250a78;if(_0x33cb2f['type']===_0x46c53d[_0x36769f(0x1f5)]){var _0x491188;let _0x5e4b5b=[((_0x491188=_0x33cb2f[_0x36769f(0xd8)])==null||(_0x491188=_0x491188[0x0])==null?void 0x0:_0x491188['id'])??_0x4f57ad[_0x36769f(0x209)],..._0x33cb2f['visibleCardFieldIds']??[]];return Array[_0x36769f(0xc4)](new Set(_0x5e4b5b[_0x36769f(0x16e)](_0xf7e971=>!!_0x4f57ad[_0x36769f(0xd8)][_0xf7e971])));}if((_0x250a78=_0x33cb2f[_0x36769f(0xd8)])!=null&&_0x250a78[_0x36769f(0x1c3)])return _0x33cb2f['fields'][_0x36769f(0x1ed)](_0x57514a=>_0x57514a['id'])[_0x36769f(0x16e)](_0x21f76a=>{const _0x22a32e=_0x36769f;var _0x449c8b;return!(!_0x4f57ad[_0x22a32e(0xd8)][_0x21f76a]||_0x27a288!=null&&(_0x449c8b=_0x27a288[_0x22a32e(0xc8)])!=null&&(_0x449c8b=_0x449c8b[_0x21f76a])!=null&&_0x449c8b[_0x22a32e(0x1bb)]);});}return _0x4f57ad[_0x36769f(0x149)][_0x36769f(0x16e)](_0xa5ad9e=>{const _0xe2f728=_0x36769f;var _0x3c3d67;return!(!_0x4f57ad[_0xe2f728(0xd8)][_0xa5ad9e]||_0x27a288!=null&&(_0x3c3d67=_0x27a288['fieldSettings'])!=null&&(_0x3c3d67=_0x3c3d67[_0xa5ad9e])!=null&&_0x3c3d67[_0xe2f728(0x1bb)]);});}let Q=class extends _0x1c1ab5[_0x52461d(0x1b6)]{constructor(_0x4dd997,_0x194a98,_0x44b248,_0x4ce5ce,_0x10b202){const _0x59ba20=_0x52461d;super(),this[_0x59ba20(0x215)]=_0x4dd997,this[_0x59ba20(0x114)]=_0x194a98,this[_0x59ba20(0x107)]=_0x44b248,this[_0x59ba20(0x201)]=_0x4ce5ce,this[_0x59ba20(0x184)]=_0x10b202;}['getBase'](){const _0x7a600a=_0x52461d;return this[_0x7a600a(0x215)];}[_0x52461d(0x1b0)](){const _0x2399a1=_0x52461d;return this['_base'][_0x2399a1(0xe9)]();}[_0x52461d(0xb9)](){const _0x146c40=_0x52461d;return new at(this[_0x146c40(0x1b0)](),this[_0x146c40(0x201)],this[_0x146c40(0x184)]);}[_0x52461d(0x138)](){const _0x34786d=_0x52461d;return this[_0x34786d(0x107)][_0x34786d(0x205)](this['getId']())??_0x5ddc99[_0x34786d(0xbf)](this[_0x34786d(0x215)]['getSnapshot']());}[_0x52461d(0x174)](){const _0x221ecb=_0x52461d;return this[_0x221ecb(0x215)][_0x221ecb(0xbb)]()[_0x221ecb(0xb8)];}[_0x52461d(0x1b2)](_0x2cdd54){const _0x1734c2=_0x52461d;this[_0x1734c2(0x201)][_0x1734c2(0x1b1)](_0x3776d7['id'],{'unitId':this['getId'](),'name':_0x2cdd54});}[_0x52461d(0x181)](){const _0x254455=_0x52461d;let _0x275c02=this[_0x254455(0x215)]['getSnapshot']();return _0x275c02[_0x254455(0x1e4)][_0x254455(0x1ed)](_0x3651dc=>_0x275c02['tables'][_0x3651dc])[_0x254455(0x16e)](_0x33555e=>_0x33555e)['map'](_0x4cd665=>this[_0x254455(0x114)][_0x254455(0x159)](Z,this,_0x4cd665['id'],this['_injector']));}[_0x52461d(0x154)](_0x2d45ff){const _0x1e6f84=_0x52461d;let _0x52335d=this[_0x1e6f84(0x215)]['getSnapshot']()[_0x1e6f84(0xf3)][_0x2d45ff];return _0x52335d?this[_0x1e6f84(0x114)][_0x1e6f84(0x159)](Z,this,_0x52335d['id'],this[_0x1e6f84(0x114)]):null;}[_0x52461d(0x127)](_0x673928){const _0x2449bc=_0x52461d;let _0x31179b=this[_0x2449bc(0x215)][_0x2449bc(0xbb)](),_0x262bde=Object[_0x2449bc(0x13d)](_0x31179b[_0x2449bc(0xf3)])[_0x2449bc(0x219)](_0x295c63=>_0x295c63[_0x2449bc(0xb8)]===_0x673928);return _0x262bde?this['_injector']['createInstance'](Z,this,_0x262bde['id'],this[_0x2449bc(0x114)]):null;}[_0x52461d(0x131)](_0x572e90,_0x4df49e){const _0x1036a6=_0x52461d;let _0x39a53d=_0x256046({'id':_0x416ff3(),'name':_0x572e90,..._0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x18e)],'primaryFieldName':_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x13f)]}),_0x476760=_0x5ddc99[_0x1036a6(0xd1)](_0x39a53d,(_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x18e)])??{}),_0x389010=_0x597076(this[_0x1036a6(0x215)][_0x1036a6(0xbb)](),_0x476760[_0x1036a6(0xb8)]);if(!_0x389010['valid'])throw Error(_0x1036a6(0x113)+_0x476760[_0x1036a6(0xb8)]+_0x1036a6(0xe6)+_0x37427f+'\x20'+_0x389010[_0x1036a6(0x16a)]);if(!this['_commandService']['syncExecuteCommand'](_0x27d2e3['id'],{'unitId':this[_0x1036a6(0x215)]['getUnitId'](),'table':_0x476760,'index':_0x4df49e==null?void 0x0:_0x4df49e[_0x1036a6(0x1dd)]}))throw Error(_0x1036a6(0x204)+_0x572e90+'\x22.');return this[_0x1036a6(0x114)][_0x1036a6(0x159)](Z,this,_0x476760['id'],this[_0x1036a6(0x114)]);}[_0x52461d(0x1d1)](_0x3a5441){const _0x2dfb50=_0x52461d;let _0x57c867=typeof _0x3a5441=='string'?_0x3a5441:_0x3a5441[_0x2dfb50(0x1b0)]();if(!this[_0x2dfb50(0x201)]['syncExecuteCommand'](_0x22fd29['id'],{'unitId':this[_0x2dfb50(0x215)][_0x2dfb50(0xe9)](),'tableId':_0x57c867}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x57c867+'\x22.');return!0x0;}['duplicateTable'](_0x387799,_0x2ef37a){const _0x25df22=_0x52461d;let _0x2f79e1=this[_0x25df22(0x215)][_0x25df22(0xbb)](),_0x1c3cea=typeof _0x387799=='string'?_0x387799:_0x387799[_0x25df22(0x1b0)](),_0x27cbb7=_0x2f79e1[_0x25df22(0xf3)][_0x1c3cea];if(!_0x27cbb7)throw Error(_0x25df22(0x208)+_0x1c3cea+_0x25df22(0x14c));let _0x3f8bc1=_0x2f79e1[_0x25df22(0x1e4)]['indexOf'](_0x1c3cea)+0x1,_0x417dd9=_0x416ff3(),_0x424880=_0x43532b(_0x27cbb7,{'id':_0x417dd9,'name':_0x51629a(_0x2f79e1,_0x27cbb7[_0x25df22(0xb8)]+'\x20Copy'),'includeRecords':(_0x2ef37a==null?void 0x0:_0x2ef37a[_0x25df22(0x106)])??!0x1,'regenerateViewIds':(_0x2ef37a==null?void 0x0:_0x2ef37a[_0x25df22(0xd3)])??!0x1});if(!this[_0x25df22(0x201)]['syncExecuteCommand'](_0x27d2e3['id'],{'unitId':this[_0x25df22(0x215)][_0x25df22(0xe9)](),'table':_0x424880,'index':_0x3f8bc1}))throw Error(_0x25df22(0x1c0)+_0x1c3cea+'\x22.');return this[_0x25df22(0x114)][_0x25df22(0x159)](Z,this,_0x424880['id'],this[_0x25df22(0x114)]);}[_0x52461d(0x190)](){const _0x3d0b29=_0x52461d;let _0x535ee5=this[_0x3d0b29(0x215)][_0x3d0b29(0xbb)]();return{'id':_0x535ee5['id'],'name':_0x535ee5[_0x3d0b29(0xb8)],'tables':this[_0x3d0b29(0x181)]()[_0x3d0b29(0x1ed)](_0x23a15a=>_0x23a15a[_0x3d0b29(0x190)]())};}};Q=z([R(0x1,_0x398e71(_0x14fd65)),R(0x2,_0x138537),R(0x3,_0xd6c9e9),R(0x4,_0x24a74f)],Q);var Et=class extends _0x517ece{[_0x52461d(0xdf)](){const _0xd498ea=_0x52461d;this[_0xd498ea(0x1c1)](),this['_initBaseAfterEvents']();}[_0x52461d(0x175)](_0x2db2f1={},_0x1e9f39){const _0x5e58eb=_0x52461d;let _0x676020=this[_0x5e58eb(0x1c7)][_0x5e58eb(0x16d)](_0x216daf[_0x5e58eb(0x13e)],_0x2db2f1,_0x1e9f39);return this[_0x5e58eb(0x114)][_0x5e58eb(0x159)](Q,_0x676020);}[_0x52461d(0xdd)](){const _0x3705fd=_0x52461d;let _0x36cde9=this[_0x3705fd(0x1c7)]['getCurrentUnitOfType'](_0x216daf[_0x3705fd(0x13e)]);return _0x36cde9?this[_0x3705fd(0x114)][_0x3705fd(0x159)](Q,_0x36cde9):null;}[_0x52461d(0x188)](_0x467a35){const _0x1fcb06=_0x52461d;let _0x4a9923=this[_0x1fcb06(0x1c7)]['getUnit'](_0x467a35,_0x216daf[_0x1fcb06(0x13e)]);return _0x4a9923?this[_0x1fcb06(0x114)]['createInstance'](Q,_0x4a9923):null;}[_0x52461d(0xc0)](){const _0x3b4713=_0x52461d;return this[_0x3b4713(0x1c7)][_0x3b4713(0x1a1)](_0x216daf[_0x3b4713(0x13e)])[_0x3b4713(0x1ed)](_0x10d1c2=>this[_0x3b4713(0x114)]['createInstance'](Q,_0x10d1c2));}[_0x52461d(0xe8)](){const _0x509ee2=_0x52461d;this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x1df)],()=>this[_0x509ee2(0x201)]['onCommandExecuted']((_0x33ab46,_0x449d85)=>{const _0x3661c1=_0x509ee2;var _0x474df6;if(!$(_0x33ab46,_0x426009))return;let _0x5f56c8=_0x33ab46[_0x3661c1(0xff)];if(!((_0x474df6=_0x5f56c8[_0x3661c1(0x163)])!=null&&_0x474df6[_0x3661c1(0x1c3)]))return;let _0x482779=this[_0x3661c1(0x188)](_0x5f56c8[_0x3661c1(0x155)]),_0x145c26=_0x482779==null?void 0x0:_0x482779[_0x3661c1(0x154)](_0x5f56c8[_0x3661c1(0x163)][0x0]['tableId']);if(!_0x482779||!_0x145c26)return;let _0x2eae55={'base':_0x482779,'table':_0x145c26,'changes':_0x5f56c8[_0x3661c1(0x163)],'source':_0x449d85!=null&&_0x449d85[_0x3661c1(0x116)]?_0x31e93c[_0x3661c1(0xec)]:_0x5f56c8[_0x3661c1(0x121)]??_0x31e93c['UI']};this['fireEvent'](this['Event'][_0x3661c1(0x1df)],_0x2eae55);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x1ea)],()=>this[_0x509ee2(0x201)]['onCommandExecuted'](_0x2dbf3d=>{const _0x941c12=_0x509ee2;if(_0x2dbf3d['id']!==_0x27d2e3['id'])return;let {unitId:_0x4aa8a7,table:_0x4bd3b3,index:_0x154bb5}=_0x2dbf3d[_0x941c12(0xff)],_0x514135=this[_0x941c12(0x188)](_0x4aa8a7);if(!_0x514135)return;let _0x49f46b={'base':_0x514135,'table':_0x4bd3b3,'index':_0x154bb5};this[_0x941c12(0x140)](this['Event'][_0x941c12(0x1ea)],_0x49f46b);}))),this['disposeWithMe'](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)]['BaseTableFieldCreated'],()=>this[_0x509ee2(0x201)][_0x509ee2(0x192)](_0x595deb=>{const _0x532944=_0x509ee2;if(_0x595deb['id']!==_0x5649ae['id'])return;let {unitId:_0x2f1b20,tableId:_0x31104f,field:_0x5bd65c,index:_0x5dc9b7,viewIndexes:_0xb5295c}=_0x595deb[_0x532944(0xff)],_0x36609b=this['getBase'](_0x2f1b20);if(!_0x36609b)return;let _0x366dba=_0x36609b[_0x532944(0x154)](_0x31104f);if(!_0x366dba)return;let _0x5ac454={'base':_0x36609b,'table':_0x366dba,'field':_0x5bd65c,'index':_0x5dc9b7,'viewIndexes':_0xb5295c};this[_0x532944(0x140)](this[_0x532944(0x1b4)]['BaseTableFieldCreated'],_0x5ac454);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0x214)],()=>this['_commandService'][_0x509ee2(0x192)](_0x559212=>{const _0xf6149f=_0x509ee2;if(_0x559212['id']!==_0x2efdd1['id']&&_0x559212['id']!==_0x2bc192['id'])return;let _0x62a317=_0x559212[_0xf6149f(0xff)],{unitId:_0x384b96,tableId:_0x149b32}=_0x62a317,_0x2c7c69=_0x62a317[_0xf6149f(0x195)]??[_0x62a317[_0xf6149f(0x150)]],_0x28fafe=this[_0xf6149f(0x188)](_0x384b96);if(!_0x28fafe)return;let _0x535ef5=_0x28fafe[_0xf6149f(0x154)](_0x149b32);if(!_0x535ef5)return;let _0x2fede4={'base':_0x28fafe,'table':_0x535ef5,'records':_0x2c7c69};this[_0xf6149f(0x140)](this[_0xf6149f(0x1b4)][_0xf6149f(0x214)],_0x2fede4);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x509ee2(0x1b4)][_0x509ee2(0xee)],()=>this['_commandService'][_0x509ee2(0x192)](_0x5b6eb2=>{const _0x4fd70e=_0x509ee2;if(_0x5b6eb2['id']!==_0x5d854f['id'])return;let {unitId:_0x38db9e,tableId:_0x532bf5,view:_0x55511c,index:_0xfa62d2}=_0x5b6eb2[_0x4fd70e(0xff)],_0x5eed82=this[_0x4fd70e(0x188)](_0x38db9e);if(!_0x5eed82)return;let _0x16a9fa=_0x5eed82[_0x4fd70e(0x154)](_0x532bf5);if(!_0x16a9fa)return;let _0x37814d={'base':_0x5eed82,'table':_0x16a9fa,'view':_0x55511c,'index':_0xfa62d2};this[_0x4fd70e(0x140)](this['Event'][_0x4fd70e(0xee)],_0x37814d);}))),this[_0x509ee2(0xbe)](this[_0x509ee2(0x18f)](this[_0x509ee2(0x1b4)][_0x509ee2(0xb6)],()=>this[_0x509ee2(0x201)][_0x509ee2(0x192)](_0x256a63=>{const _0x581094=_0x509ee2;if(_0x256a63['id']!==_0x20c761['id'])return;let {unitId:_0x20f868,tableId:_0x335a3b,recordId:_0x57071e,fieldId:_0x993463,value:_0x5c2e85}=_0x256a63[_0x581094(0xff)],_0x48573f=this[_0x581094(0x188)](_0x20f868);if(!_0x48573f)return;let _0x2ede64=_0x48573f['getTableById'](_0x335a3b);if(!_0x2ede64)return;let _0x523d1c=_0x2ede64[_0x581094(0x211)](_0x993463);if(!_0x523d1c)return;let _0x1283a2=_0x2ede64[_0x581094(0x1f7)](_0x57071e);if(!_0x1283a2)return;let _0x48297f={'base':_0x48573f,'table':_0x2ede64,'field':_0x523d1c,'record':_0x1283a2,'value':_0x5c2e85};this[_0x581094(0x140)](this[_0x581094(0x1b4)][_0x581094(0xb6)],_0x48297f);})));}['_initBaseBeforeEvents'](){const _0x343ef2=_0x52461d;this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this['Event']['BeforeBaseHierarchyChange'],()=>this[_0x343ef2(0x201)]['beforeCommandExecuted'](_0x561a47=>{const _0x35af2e=_0x343ef2;if($(_0x561a47,_0x21ff8a)){let {unitId:_0x4ea7ee,tableId:_0x487939,patches:_0x278acd,source:_0x4f1281=_0x31e93c['UI']}=_0x561a47[_0x35af2e(0xff)],_0x3649c4=this[_0x35af2e(0xd6)](_0x4ea7ee,_0x487939);if(!_0x3649c4)return;this[_0x35af2e(0x12e)](_0x3649c4[_0x35af2e(0x1e8)],_0x3649c4[_0x35af2e(0x18e)],_0x2ff636(_0x3649c4['table'][_0x35af2e(0x1cd)](),_0x278acd),_0x4f1281);return;}if($(_0x561a47,_0x5bacf4)){let {unitId:_0x2fa5bc,tableId:_0x183ce8,patches:_0x15b5bf,source:_0x2ba49b=_0x31e93c['UI']}=_0x561a47[_0x35af2e(0xff)],_0x50ac91=this['_getHierarchyEventContext'](_0x2fa5bc,_0x183ce8);if(!_0x50ac91)return;let _0x3d286c=_0x50ac91[_0x35af2e(0x18e)][_0x35af2e(0x1cd)]();this['_fireBeforeHierarchyChange'](_0x50ac91['base'],_0x50ac91[_0x35af2e(0x18e)],_0x2ff636(_0x3d286c,_0x631028(_0x3d286c,_0x15b5bf)),_0x2ba49b);return;}if($(_0x561a47,_0x2efdd1)){let _0x10217a=_0x561a47['params'],_0xe81d37=this[_0x35af2e(0xd6)](_0x10217a[_0x35af2e(0x155)],_0x10217a['tableId']);if(!_0xe81d37)return;this[_0x35af2e(0x12e)](_0xe81d37[_0x35af2e(0x1e8)],_0xe81d37[_0x35af2e(0x18e)],_0x2e9f6f(_0xe81d37[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),[_0x10217a['record']]),_0x10217a[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x2bc192)){let _0x36f5ef=_0x561a47[_0x35af2e(0xff)],_0x21afe6=this[_0x35af2e(0xd6)](_0x36f5ef[_0x35af2e(0x155)],_0x36f5ef['tableId']);if(!_0x21afe6)return;this[_0x35af2e(0x12e)](_0x21afe6['base'],_0x21afe6['table'],_0x2e9f6f(_0x21afe6[_0x35af2e(0x18e)]['getTable'](),_0x36f5ef[_0x35af2e(0x195)]),_0x36f5ef[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x9bba9)){let _0x3f0d9c=_0x561a47[_0x35af2e(0xff)],_0xb2e0f2=this['_getHierarchyEventContext'](_0x3f0d9c['unitId'],_0x3f0d9c[_0x35af2e(0x177)]);if(!_0xb2e0f2)return;this[_0x35af2e(0x12e)](_0xb2e0f2[_0x35af2e(0x1e8)],_0xb2e0f2[_0x35af2e(0x18e)],_0x2e9f6f(_0xb2e0f2['table']['getTable'](),[_0x3f0d9c[_0x35af2e(0x150)]]),_0x3f0d9c[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x5267a7)){let _0x416077=_0x561a47[_0x35af2e(0xff)],_0xeeddf3=this[_0x35af2e(0xd6)](_0x416077[_0x35af2e(0x155)],_0x416077[_0x35af2e(0x177)]);if(!_0xeeddf3)return;let _0x20da96=_0xeeddf3[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),_0x31ee91=_0x416077[_0x35af2e(0x1b5)]??_0x39d8f6(_0x20da96),_0x3d2054=_0x48b6a3(_0x20da96,_0x31ee91)[_0x35af2e(0x183)][_0x35af2e(0xfb)](_0x416077['recordId'])??null;this[_0x35af2e(0x12e)](_0xeeddf3[_0x35af2e(0x1e8)],_0xeeddf3['table'],[{'tableId':_0x416077[_0x35af2e(0x177)],'fieldId':_0x31ee91,'recordId':_0x416077['recordId'],'oldParentRecordId':_0x3d2054,'parentRecordId':_0x416077[_0x35af2e(0x105)]}],_0x416077[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x5e51db)){let _0x36bcb6=_0x561a47[_0x35af2e(0xff)],_0x2c7a94=this[_0x35af2e(0xd6)](_0x36bcb6[_0x35af2e(0x155)],_0x36bcb6[_0x35af2e(0x177)]);if(!_0x2c7a94)return;let _0x562281=_0x36bcb6[_0x35af2e(0x1b5)]??_0x39d8f6(_0x2c7a94['table']['getTable']());this[_0x35af2e(0x12e)](_0x2c7a94[_0x35af2e(0x1e8)],_0x2c7a94[_0x35af2e(0x18e)],[{'tableId':_0x36bcb6[_0x35af2e(0x177)],'fieldId':_0x562281,'recordId':_0x36bcb6[_0x35af2e(0x150)]['id'],'oldParentRecordId':null,'parentRecordId':_0x36bcb6[_0x35af2e(0x105)]}],_0x36bcb6['source']??_0x31e93c['UI']);return;}if($(_0x561a47,_0x257b51)){let _0x3c7c9c=_0x561a47[_0x35af2e(0xff)],_0x27e839=this[_0x35af2e(0xd6)](_0x3c7c9c[_0x35af2e(0x155)],_0x3c7c9c['tableId']);if(!_0x27e839)return;this['_fireBeforeHierarchyChange'](_0x27e839[_0x35af2e(0x1e8)],_0x27e839[_0x35af2e(0x18e)],_0x169dd5(_0x27e839[_0x35af2e(0x18e)][_0x35af2e(0x1cd)](),[_0x3c7c9c[_0x35af2e(0xc6)]]),_0x3c7c9c[_0x35af2e(0x121)]??_0x31e93c['UI']);return;}if($(_0x561a47,_0x34e6c2)){let _0x338731=_0x561a47['params'],_0x5464dc=this[_0x35af2e(0xd6)](_0x338731[_0x35af2e(0x155)],_0x338731[_0x35af2e(0x177)]);if(!_0x5464dc)return;this[_0x35af2e(0x12e)](_0x5464dc['base'],_0x5464dc[_0x35af2e(0x18e)],_0x169dd5(_0x5464dc['table']['getTable'](),_0x338731[_0x35af2e(0x1b3)]),_0x338731['source']??_0x31e93c['UI']);return;}if(!$(_0x561a47,_0x20c761))return;let _0x1fb09f=_0x561a47['params'],_0x46f0d8=this[_0x35af2e(0xd6)](_0x1fb09f['unitId'],_0x1fb09f[_0x35af2e(0x177)]);if(!_0x46f0d8)return;let _0x5a9778=_0x46f0d8[_0x35af2e(0x18e)]['getTable']();if(!_0x145e7a(_0x5a9778)[_0x35af2e(0x19c)](_0x1fb09f[_0x35af2e(0x1b5)]))return;let _0x325e76=_0x48b6a3(_0x5a9778,_0x1fb09f['fieldId'])['parentByRecordId'][_0x35af2e(0xfb)](_0x1fb09f[_0x35af2e(0xc6)])??null,_0x3a49ea=_0x549917(_0x1fb09f[_0x35af2e(0xe1)])[0x0]??null;_0x325e76!==_0x3a49ea&&this[_0x35af2e(0x12e)](_0x46f0d8[_0x35af2e(0x1e8)],_0x46f0d8[_0x35af2e(0x18e)],[{'tableId':_0x1fb09f[_0x35af2e(0x177)],'fieldId':_0x1fb09f[_0x35af2e(0x1b5)],'recordId':_0x1fb09f['recordId'],'oldParentRecordId':_0x325e76,'parentRecordId':_0x3a49ea}],_0x1fb09f[_0x35af2e(0x121)]??_0x31e93c['UI']);}))),this[_0x343ef2(0xbe)](this['registerEventHandler'](this[_0x343ef2(0x1b4)]['BeforeBaseTableCreate'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x370d14=>{const _0x2c9582=_0x343ef2;if(_0x370d14['id']!==_0x27d2e3['id'])return;let {unitId:_0x4159e6,table:_0x5c857f,index:_0xd97a43}=_0x370d14['params'],_0x311b19=this[_0x2c9582(0x188)](_0x4159e6);if(!_0x311b19)return;let _0x2db90c={'base':_0x311b19,'table':_0x5c857f,'index':_0xd97a43};if(this[_0x2c9582(0x140)](this[_0x2c9582(0x1b4)]['BeforeBaseTableCreate'],_0x2db90c),_0x2db90c[_0x2c9582(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this['registerEventHandler'](this[_0x343ef2(0x1b4)][_0x343ef2(0x213)],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x5d162d=>{const _0x5fcae0=_0x343ef2;if(_0x5d162d['id']!==_0x5649ae['id'])return;let {unitId:_0x193a86,tableId:_0xfdc3f5,field:_0x7577c,index:_0x327324,viewIndexes:_0x4a1031}=_0x5d162d['params'],_0x3195ff=this[_0x5fcae0(0x188)](_0x193a86);if(!_0x3195ff)return;let _0xde8b61=_0x3195ff[_0x5fcae0(0x154)](_0xfdc3f5);if(!_0xde8b61)return;let _0x92eb93={'base':_0x3195ff,'table':_0xde8b61,'field':_0x7577c,'index':_0x327324,'viewIndexes':_0x4a1031};if(this[_0x5fcae0(0x140)](this[_0x5fcae0(0x1b4)][_0x5fcae0(0x213)],_0x92eb93),_0x92eb93[_0x5fcae0(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this[_0x343ef2(0x1b4)]['BeforeBaseTableRecordCreate'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x3bfd73=>{const _0x3c648e=_0x343ef2;if(_0x3bfd73['id']!==_0x2efdd1['id']&&_0x3bfd73['id']!==_0x2bc192['id'])return;let _0x47a4b1=_0x3bfd73[_0x3c648e(0xff)],{unitId:_0x1fc7c2,tableId:_0x3bf33b}=_0x47a4b1,_0x450fb5=_0x47a4b1[_0x3c648e(0x195)]??[_0x47a4b1[_0x3c648e(0x150)]],_0xbec340=this[_0x3c648e(0x188)](_0x1fc7c2);if(!_0xbec340)return;let _0x509abc=_0xbec340[_0x3c648e(0x154)](_0x3bf33b);if(!_0x509abc)return;let _0x550752={'base':_0xbec340,'table':_0x509abc,'records':_0x450fb5};if(this[_0x3c648e(0x140)](this[_0x3c648e(0x1b4)]['BeforeBaseTableRecordCreate'],_0x550752),_0x550752[_0x3c648e(0x11d)])throw new _0x220bd1();}))),this[_0x343ef2(0xbe)](this[_0x343ef2(0x18f)](this[_0x343ef2(0x1b4)][_0x343ef2(0x1ad)],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x4933dd=>{const _0x330034=_0x343ef2;if(_0x4933dd['id']!==_0x5d854f['id'])return;let {unitId:_0xe962ef,tableId:_0x17722f,view:_0x3631ec,index:_0x512360}=_0x4933dd[_0x330034(0xff)],_0x5bc678=this[_0x330034(0x188)](_0xe962ef);if(!_0x5bc678)return;let _0x4cd899=_0x5bc678[_0x330034(0x154)](_0x17722f);if(!_0x4cd899)return;let _0x4e2e56={'base':_0x5bc678,'table':_0x4cd899,'view':_0x3631ec,'index':_0x512360};if(this[_0x330034(0x140)](this[_0x330034(0x1b4)]['BeforeBaseTableViewCreate'],_0x4e2e56),_0x4e2e56[_0x330034(0x11d)])throw new _0x220bd1();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x343ef2(0x1b4)]['BeforeBaseTableCellValueChange'],()=>this[_0x343ef2(0x201)][_0x343ef2(0x137)](_0x453cf7=>{const _0x114d3b=_0x343ef2;if(_0x453cf7['id']!==_0x20c761['id'])return;let {unitId:_0x578c7c,tableId:_0x1d3fab,recordId:_0x1bcfb9,fieldId:_0x195542,value:_0x4736f1}=_0x453cf7['params'],_0x406862=this[_0x114d3b(0x188)](_0x578c7c);if(!_0x406862)return;let _0x5a4c33=_0x406862[_0x114d3b(0x154)](_0x1d3fab);if(!_0x5a4c33)return;let _0x6bf5d9=_0x5a4c33[_0x114d3b(0x211)](_0x195542);if(!_0x6bf5d9)return;let _0x3cbfb2=_0x5a4c33[_0x114d3b(0x1f7)](_0x1bcfb9);if(!_0x3cbfb2)return;let _0x2566f4={'base':_0x406862,'table':_0x5a4c33,'field':_0x6bf5d9,'record':_0x3cbfb2,'value':_0x4736f1};if(this[_0x114d3b(0x140)](this[_0x114d3b(0x1b4)][_0x114d3b(0x1e9)],_0x2566f4),_0x2566f4[_0x114d3b(0x11d)])throw new _0x220bd1();})));}['_getHierarchyEventContext'](_0x5034bd,_0x384700){const _0x52a6fa=_0x52461d;let _0x238ceb=this['getBase'](_0x5034bd),_0x31de89=_0x238ceb==null?void 0x0:_0x238ceb[_0x52a6fa(0x154)](_0x384700);return _0x238ceb&&_0x31de89?{'base':_0x238ceb,'table':_0x31de89}:null;}[_0x52461d(0x12e)](_0x50bc90,_0x4e8323,_0x1581a5,_0x3287f9){const _0x191bfa=_0x52461d;if(!_0x1581a5[_0x191bfa(0x1c3)])return;let _0x45d4a2={'base':_0x50bc90,'table':_0x4e8323,'changes':_0x1581a5,'source':_0x3287f9};if(this[_0x191bfa(0x140)](this[_0x191bfa(0x1b4)][_0x191bfa(0x18d)],_0x45d4a2),_0x45d4a2[_0x191bfa(0x11d)])throw new _0x220bd1();}};function $(_0x3c1d51,_0x349261){const _0x51ec27=_0x52461d;return _0x3c1d51['id']===_0x349261['id']&&_0x3c1d51[_0x51ec27(0xff)]!==void 0x0;}_0x517ece[_0x52461d(0x18b)](Et);var Dt=class extends _0x371b31{get['BaseFieldType'](){return _0x4db00c;}get['BaseFilterConjunction'](){return _0x964119;}get['BaseFilterOperator'](){return _0x5e5e09;}get[_0x52461d(0x161)](){return ot;}get[_0x52461d(0x11f)](){return _0x46c53d;}get['BaseConditionalColorTarget'](){return _0xfc34;}get['BaseConditionalColorOperator'](){return _0xe57c1a;}get[_0x52461d(0x20f)](){return _0x24aac6;}get[_0x52461d(0xbd)](){return _0x114bbf;}get[_0x52461d(0x1fd)](){return _0x31e93c;}get[_0x52461d(0x124)](){return _0x4efce9;}get['BaseHierarchyInvalidReason'](){return _0x449c78;}get[_0x52461d(0x14e)](){return _0x171d5a;}};_0x371b31[_0x52461d(0x18b)](Dt);var Ot=class extends _0x24d5c8{get[_0x52461d(0x1ea)](){const _0x4d109a=_0x52461d;return _0x4d109a(0x1ea);}get[_0x52461d(0x1a4)](){const _0x2e9a89=_0x52461d;return _0x2e9a89(0x1a4);}get[_0x52461d(0x169)](){return'BaseTableFieldCreated';}get[_0x52461d(0x213)](){const _0x3ecaa1=_0x52461d;return _0x3ecaa1(0x213);}get[_0x52461d(0x214)](){const _0x1f3f36=_0x52461d;return _0x1f3f36(0x214);}get[_0x52461d(0x133)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x574075=_0x52461d;return _0x574075(0xee);}get['BeforeBaseTableViewCreate'](){return'BeforeBaseTableViewCreate';}get[_0x52461d(0xb6)](){const _0xaa38dd=_0x52461d;return _0xaa38dd(0xb6);}get[_0x52461d(0x1e9)](){const _0x5afacc=_0x52461d;return _0x5afacc(0x1e9);}get[_0x52461d(0x1df)](){const _0x4cd396=_0x52461d;return _0x4cd396(0x1df);}get[_0x52461d(0x18d)](){const _0x406fcc=_0x52461d;return _0x406fcc(0x18d);}};_0x24d5c8[_0x52461d(0x18b)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x16c455=_0x459a;(function(_0x38be99,_0x2e15c4){const _0x53268b=_0x459a,_0x121190=_0x38be99();while(!![]){try{const _0x28fa2d=parseInt(_0x53268b(0xbb))/0x1*(parseInt(_0x53268b(0xe6))/0x2)+-parseInt(_0x53268b(0x1be))/0x3*(-parseInt(_0x53268b(0x201))/0x4)+parseInt(_0x53268b(0x17f))/0x5*(parseInt(_0x53268b(0x1e8))/0x6)+-parseInt(_0x53268b(0x1ca))/0x7+-parseInt(_0x53268b(0x150))/0x8+parseInt(_0x53268b(0x17c))/0x9+-parseInt(_0x53268b(0x153))/0xa*(parseInt(_0x53268b(0x143))/0xb);if(_0x28fa2d===_0x2e15c4)break;else _0x121190['push'](_0x121190['shift']());}catch(_0xbc0fd0){_0x121190['push'](_0x121190['shift']());}}}(_0x501e,0x683ed));import{ApplyBaseJson1Mutation as _0x2ad321,BASE_TABLE_NAME_REQUIREMENTS as _0x229298,BaseConditionalColorRuleUpdateType as _0x14071a,BaseEventSource as _0x55bebd,BaseHierarchyErrorCode as _0x34d13a,BatchCreateBaseRecordsCommand as _0x3ad558,BatchDeleteBaseRecordsCommand as _0x4d8eab,ChangeBaseFieldTypeCommand as _0x3da607,CreateBaseChildRecordCommand as _0x2e5ba5,CreateBaseFieldCommand as _0x3de3f5,CreateBaseRecordCommand as _0x3392fe,CreateBaseTableCommand as _0x5c901d,CreateBaseViewCommand as _0x4a240d,DeleteBaseFieldCommand as _0x5ddbec,DeleteBaseRecordCommand as _0x2a07c2,DeleteBaseTableCommand as _0x971b27,DeleteBaseViewCommand as _0x548359,DuplicateBaseRecordCommand as _0x12761d,IBaseProjectionService as _0x499ad2,MoveBaseFieldCommand as _0x1d8b98,MoveBaseHierarchyRecordCommand as _0x1c837a,MoveBaseViewCommand as _0x3abd85,RenameBaseTableCommand as _0x3dc70f,RenameBaseViewCommand as _0x43a829,SetBaseNameCommand as _0x841eca,SetBasePermissionCommand as _0x276001,SetBasePermissionsCommand as _0x246d81,SetBaseRangeValuesCommand as _0x5ac327,SetBaseRecordValuesCommand as _0xe2fa79,SetBaseTableHierarchyFieldCommand as _0x331078,SetBaseViewFieldOrderCommand as _0x1a9899,SetBaseViewFieldVisibleCommand as _0x29d7b1,SetBaseViewFieldWidthCommand as _0x10caef,SetBaseViewFilterCommand as _0x537303,SetBaseViewGroupCommand as _0x4e34d1,SetBaseViewSortCommand as _0x2d2d2c,UpdateBaseCellCommand as _0x56896a,UpdateBaseFieldCommand as _0x51b342,UpdateBaseRecordOrderCommand as _0x14f095,UpdateBaseViewConditionalColorRulesCommand as _0x445422,UpdateBaseViewConfigCommand as _0x5996eb,ValidateBaseFormulaCommand as _0x5cd29d,buildBaseHierarchyIndex as _0x1a3563,canEditBaseTargets as _0x588025,copyBaseTableSnapshot as _0x35aced,createUniqueBaseTableName as _0x9242a1,ensureBaseTableCellLayout as _0x5d9764,getActiveBaseHierarchyFieldIds as _0x33c8d6,getBaseCellValue as _0x5686ac,getBaseFieldPermissionObjectId as _0x58d304,getBaseFormulaTableName as _0x334dca,getBaseHierarchyDeletePromotions as _0xf2e815,getBasePermissionValue as _0x14f175,getBaseRecordPermissionObjectId as _0xa951c,getBaseTablePermissionObjectId as _0x178fd1,getBaseViewPermissionObjectId as _0x53e240,getRecordLinkFieldConfig as _0x15bd67,matchesBaseCondition as _0x1c8da0,parseRecordLinkIds as _0x335852,resolveBaseHierarchyFieldId as _0x4e6087,resolveBaseRangeHierarchyPatches as _0x5f2520,searchBaseTable as _0x3ed99e,serializeRecordLinkIds as _0x392c5e,validateBaseHierarchyRecordCreations as _0x21de02,validateBaseHierarchyRecordPatches as _0x25cefd,validateBaseTableName as _0x2628b6,validateRecordLinkValue as _0x2e4386}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x45a674,BaseConditionalColorOperator as _0x16f428,BaseConditionalColorTarget as _0x58b6cb,BaseConditionalDateMode as _0x1ee14c,BaseFieldType as _0x5c585e,BaseFilterConjunction as _0xf11f7f,BaseFilterOperator as _0x48d24a,BaseHierarchyInvalidReason as _0x59ccb4,BaseRecordLinkRole as _0x135176,BaseSortDirection as _0x1fbd79,BaseViewType as _0x1eb8c0,CanceledError as _0x3a850a,ICommandService as _0x18d666,IPermissionService as _0x5e35b8,IResourceLoaderService as _0x4e24c1,ImageSourceType as _0x354b72,Inject as _0x210e70,Injector as _0x291a51,Tools as _0x49e7b0,UniverInstanceType as _0x251beb,createDefaultBaseTableSnapshot as _0x440368,generateRandomId as _0x2fbf07}from'@univerjs/core';import*as _0x287fc3 from'@univerjs/core/facade';import{FBaseInitialable as _0x36d8f1,FEnum as _0x2fc644,FEventName as _0x35d271,FUniver as _0x292e04}from'@univerjs/core/facade';import{UnitAction as _0x538ba4}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x3fc287}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3e7695,_0xa228c,_0xc1aac9){const _0x2f49a6=_0x459a;this[_0x2f49a6(0x197)]=_0x3e7695,this[_0x2f49a6(0x106)]=_0xa228c,this[_0x2f49a6(0x1a4)]=_0xc1aac9;}async[_0x16c455(0x133)](_0x4fe634){const _0x4602f9=_0x16c455;return this['_commandService'][_0x4602f9(0xf7)](_0x246d81['id'],{'unitId':this[_0x4602f9(0x197)],'changes':_0x4fe634});}async[_0x16c455(0x1fc)](_0x11fd23,_0x48d972){const _0x334a40=_0x16c455;await this[_0x334a40(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x334a40(0x197)],'objectId':this[_0x334a40(0x197)],'action':_0x11fd23,'value':_0x48d972});}['getPoint'](_0x5d476b){const _0x531b1e=_0x16c455;return _0x14f175(this[_0x531b1e(0x1a4)],this[_0x531b1e(0x197)],this[_0x531b1e(0x197)],_0x5d476b);}async[_0x16c455(0x194)](_0x35a61f=!0x0){const _0x594daf=_0x16c455;await this[_0x594daf(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this[_0x594daf(0x197)],'objectId':this[_0x594daf(0x197)],'action':_0x538ba4['Edit'],'value':_0x35a61f});}async[_0x16c455(0x19c)](){const _0x210bc9=_0x16c455;await this[_0x210bc9(0x106)][_0x210bc9(0xf7)](_0x276001['id'],{'unitId':this[_0x210bc9(0x197)],'objectId':this[_0x210bc9(0x197)],'action':_0x538ba4['Edit'],'value':!0x1});}['canEdit'](){const _0x34e53d=_0x16c455;return _0x14f175(this[_0x34e53d(0x1a4)],this[_0x34e53d(0x197)],this[_0x34e53d(0x197)],_0x538ba4[_0x34e53d(0xe7)]);}},L=class{constructor(_0x390513,_0x181c14,_0x29dd6e,_0x5e33ef,_0x1e3aac){const _0x316e79=_0x16c455;this['_unitId']=_0x390513,this[_0x316e79(0x1ed)]=_0x181c14,this[_0x316e79(0x151)]=_0x29dd6e,this['_commandService']=_0x5e33ef,this['_permissionService']=_0x1e3aac;}async['setEditable'](_0x3f9178=!0x0){const _0x263543=_0x16c455;await this['_commandService'][_0x263543(0xf7)](_0x276001['id'],{'unitId':this[_0x263543(0x197)],'objectId':this['_objectId'],'action':_0x538ba4[_0x263543(0xe7)],'value':_0x3f9178});}async['setReadOnly'](){const _0x227171=_0x16c455;await this[_0x227171(0x106)]['executeCommand'](_0x276001['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x538ba4[_0x227171(0xe7)],'value':!0x1});}[_0x16c455(0xb8)](){const _0x418ee2=_0x16c455;return _0x588025(this['_permissionService'],this[_0x418ee2(0x197)],[...this[_0x418ee2(0x151)],this[_0x418ee2(0x1ed)]]);}};function R(_0x4a0414,_0x11de5d){return function(_0xac3766,_0x49feaf){_0x11de5d(_0xac3766,_0x49feaf,_0x4a0414);};}function z(_0x33bd65,_0x531777,_0x1871aa,_0x590a7d){const _0x60ada2=_0x16c455;var _0x130c9e=arguments[_0x60ada2(0x166)],_0x1c6076=_0x130c9e<0x3?_0x531777:_0x590a7d===null?_0x590a7d=Object[_0x60ada2(0x1fa)](_0x531777,_0x1871aa):_0x590a7d,_0x518a2e;if(typeof Reflect==_0x60ada2(0xb9)&&typeof Reflect['decorate']==_0x60ada2(0x1d1))_0x1c6076=Reflect['decorate'](_0x33bd65,_0x531777,_0x1871aa,_0x590a7d);else{for(var _0x2e5228=_0x33bd65['length']-0x1;_0x2e5228>=0x0;_0x2e5228--)(_0x518a2e=_0x33bd65[_0x2e5228])&&(_0x1c6076=(_0x130c9e<0x3?_0x518a2e(_0x1c6076):_0x130c9e>0x3?_0x518a2e(_0x531777,_0x1871aa,_0x1c6076):_0x518a2e(_0x531777,_0x1871aa))||_0x1c6076);}return _0x130c9e>0x3&&_0x1c6076&&Object['defineProperty'](_0x531777,_0x1871aa,_0x1c6076),_0x1c6076;}let B=class{constructor(_0x275c79,_0x101545,_0x49e2db,_0x493969,_0x5abb76){const _0x98a9c2=_0x16c455;this[_0x98a9c2(0xf4)]=_0x275c79,this[_0x98a9c2(0x140)]=_0x101545,this[_0x98a9c2(0x149)]=_0x49e2db,this[_0x98a9c2(0x106)]=_0x493969,this[_0x98a9c2(0x1a4)]=_0x5abb76;}[_0x16c455(0x207)](){const _0x20512a=_0x16c455;return this[_0x20512a(0x149)];}[_0x16c455(0x1d9)](){const _0x26be0a=_0x16c455;let _0x3ef35e=this[_0x26be0a(0x140)]['getId']();return new L(this[_0x26be0a(0xf4)][_0x26be0a(0x207)](),_0x58d304(_0x3ef35e,this['_fieldId']),[_0x178fd1(_0x3ef35e)],this[_0x26be0a(0x106)],this[_0x26be0a(0x1a4)]);}['getField'](){const _0x597e14=_0x16c455;return this[_0x597e14(0xe5)]();}['getName'](){const _0x24a708=_0x16c455;return this['_getField']()[_0x24a708(0x103)];}['getType'](){const _0x2120a4=_0x16c455;return this['_getField']()[_0x2120a4(0x14d)];}['getConfig'](){const _0x4f4547=_0x16c455;return this[_0x4f4547(0xe5)]()[_0x4f4547(0x1f3)];}[_0x16c455(0x1cd)](){const _0x83f587=_0x16c455;return this[_0x83f587(0xe5)]()[_0x83f587(0x16a)];}[_0x16c455(0x1e9)](){const _0x342a9b=_0x16c455;return this[_0x342a9b(0xe5)]()['description'];}[_0x16c455(0xc9)](){const _0x55564a=_0x16c455;return!!this['_getField']()[_0x55564a(0xa2)];}[_0x16c455(0xf1)](_0x17d3b8){const _0x5c713b=_0x16c455;return this[_0x5c713b(0x1f0)]({'name':_0x17d3b8});}[_0x16c455(0x1a3)](_0x2a686a,_0x475d55){const _0x580841=_0x16c455;return this[_0x580841(0x1f0)]({'config':_0x2a686a},_0x475d55);}[_0x16c455(0x1a6)](_0x3e8018){const _0x5d6d24=_0x16c455;return this[_0x5d6d24(0x1f0)]({'defaultValue':_0x3e8018});}['update'](_0x248e24,_0x5e90e7){const _0x4bee29=_0x16c455;let _0x1541c7=this[_0x4bee29(0xe5)]()[_0x4bee29(0x14d)];return(_0x248e24['type']??_0x1541c7)===_0x5c585e[_0x4bee29(0x1d2)]&&(Object[_0x4bee29(0xcb)]['hasOwnProperty'][_0x4bee29(0x136)](_0x248e24,_0x4bee29(0x1f3))||_0x248e24[_0x4bee29(0x14d)]===_0x5c585e['Formula'])&&!this[_0x4bee29(0x16b)](_0x5e90e7)?!0x1:this[_0x4bee29(0x106)][_0x4bee29(0x178)](_0x51b342['id'],{'unitId':this['_base'][_0x4bee29(0x207)](),'tableId':this[_0x4bee29(0x140)][_0x4bee29(0x207)](),'fieldId':this[_0x4bee29(0x149)],'patch':_0x248e24});}[_0x16c455(0x1e2)](_0x4f4c0c,_0x42ef2a={},_0x39d81a){const _0x26b1d7=_0x16c455;return _0x4f4c0c===_0x5c585e[_0x26b1d7(0x1d2)]&&!this['_writeFormulaExternalReferences'](_0x39d81a)?!0x1:this['_commandService']['syncExecuteCommand'](_0x3da607['id'],{'unitId':this[_0x26b1d7(0xf4)][_0x26b1d7(0x207)](),'tableId':this[_0x26b1d7(0x140)][_0x26b1d7(0x207)](),'fieldId':this[_0x26b1d7(0x149)],'input':{'type':_0x4f4c0c,'config':_0x42ef2a}});}[_0x16c455(0xcd)](){const _0x3e72f7=_0x16c455;return this[_0x3e72f7(0x106)]['syncExecuteCommand'](_0x5ddbec['id'],{'unitId':this[_0x3e72f7(0xf4)][_0x3e72f7(0x207)](),'tableId':this[_0x3e72f7(0x140)][_0x3e72f7(0x207)](),'fieldId':this[_0x3e72f7(0x149)]});}[_0x16c455(0x19b)](_0x9ac885){const _0x2abcfe=_0x16c455;return this[_0x2abcfe(0x106)][_0x2abcfe(0x178)](_0x1d8b98['id'],{'unitId':this[_0x2abcfe(0xf4)][_0x2abcfe(0x207)](),'tableId':this[_0x2abcfe(0x140)][_0x2abcfe(0x207)](),'fieldId':this['_fieldId'],'target':_0x9ac885});}[_0x16c455(0xe5)](){const _0x3c9a12=_0x16c455;let _0x530b39=this[_0x3c9a12(0x140)][_0x3c9a12(0x147)]()['fields'][this[_0x3c9a12(0x149)]];if(!_0x530b39)throw Error(_0x3c9a12(0xab)+this['_fieldId']+_0x3c9a12(0x1f6));return _0x530b39;}[_0x16c455(0x16b)](_0x1b36a2){const _0x391c8a=_0x16c455;if(!_0x1b36a2||!Array[_0x391c8a(0xea)](_0x1b36a2[_0x391c8a(0x130)]))return console[_0x391c8a(0xeb)](_0x391c8a(0x156)),!0x1;if(_0x1b36a2[_0x391c8a(0x130)][_0x391c8a(0x166)]===0x0)return!0x0;let _0x80a902=this[_0x391c8a(0x106)]['syncExecuteCommand'](_0x3fc287['id'],{'unitId':this[_0x391c8a(0xf4)][_0x391c8a(0x207)](),'references':_0x1b36a2[_0x391c8a(0x130)]});return _0x80a902||console[_0x391c8a(0xeb)](_0x391c8a(0x122)),_0x80a902;}};B=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8)],B);let ot=function(_0x51537b){const _0x282035=_0x16c455;return _0x51537b['Id']='id',_0x51537b[_0x282035(0xb3)]=_0x282035(0x103),_0x51537b[_0x282035(0xc5)]=_0x282035(0x1e5),_0x51537b;}({});function V(_0x32f5d3){const _0x50b549=_0x16c455;return!!(_0x32f5d3&&_0x32f5d3[_0x50b549(0x1bb)]!==!0x0&&_0x32f5d3[_0x50b549(0x14d)]!==_0x5c585e[_0x50b549(0x108)]);}function H(_0x317180,_0xc35f9,_0x292538='id'){const _0x2dc1e7=_0x16c455;if(!_0xc35f9)return{};let _0x3b1a59={};return Object[_0x2dc1e7(0x208)](_0xc35f9)[_0x2dc1e7(0xe2)](([_0x5b158d,_0x4c6255])=>{const _0x343d16=_0x2dc1e7;let _0x14c569=ct(_0x317180,_0x5b158d,_0x292538);_0x3b1a59[_0x14c569]=st(_0x317180[_0x343d16(0x155)][_0x14c569],_0x4c6255);}),_0x3b1a59;}function st(_0x47db89,_0xf0d0d4){const _0x4906aa=_0x16c455;if((_0x47db89==null?void 0x0:_0x47db89[_0x4906aa(0x14d)])!==_0x5c585e[_0x4906aa(0xf3)]||_0xf0d0d4==null)return _0xf0d0d4;if(!Array[_0x4906aa(0xea)](_0xf0d0d4))throw TypeError(_0x4906aa(0x15b)+_0x47db89[_0x4906aa(0x103)]+_0x4906aa(0x1ff));return _0xf0d0d4[_0x4906aa(0x176)]((_0x4c3eaf,_0x265fa4)=>lt(_0x47db89,_0x4c3eaf,_0x265fa4));}function ct(_0x3e2f79,_0x25c0c1,_0x5e5849){const _0x44c143=_0x16c455;if(_0x5e5849==='id'||_0x5e5849===_0x44c143(0x1e5)&&_0x3e2f79[_0x44c143(0x155)][_0x25c0c1])return _0x25c0c1;let _0x4cb1ec=Object['values'](_0x3e2f79['fields'])[_0x44c143(0x159)](_0x413b5d=>_0x413b5d[_0x44c143(0x103)]===_0x25c0c1);if(_0x4cb1ec[_0x44c143(0x166)]===0x1)return _0x4cb1ec[0x0]['id'];throw _0x4cb1ec[_0x44c143(0x166)]>0x1?Error(_0x44c143(0x1a1)+_0x25c0c1):Error(_0x44c143(0x1ef)+_0x25c0c1);}function lt(_0xde8fd8,_0x4a49db,_0x2917aa){const _0xa27884=_0x16c455;let _0x30f83e=_0xa27884(0x1c0)+_0x2917aa+_0xa27884(0xa0)+_0xde8fd8[_0xa27884(0x103)]+'\x22';if(!ft(_0x4a49db))throw TypeError(_0x30f83e+':\x20expected\x20an\x20object.');if(_0xa27884(0x1e1)in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x1c7));if('type'in _0x4a49db)throw TypeError(_0x30f83e+_0xa27884(0x14b));let _0x45de1b=U(_0x4a49db['id'],_0x30f83e,'id'),_0x47bafe=U(_0x4a49db[_0xa27884(0x103)],_0x30f83e,_0xa27884(0x103)),_0x5d0274=U(_0x4a49db[_0xa27884(0x191)],_0x30f83e,_0xa27884(0x191));return{'id':_0x45de1b,'name':_0x47bafe,'source':_0x5d0274,'sourceType':ut(_0x4a49db[_0xa27884(0x1a7)],_0x5d0274,_0x30f83e),...dt(_0x4a49db,_0xa27884(0x195),_0x30f83e),...W(_0x4a49db,'size',_0x30f83e),...W(_0x4a49db,_0xa27884(0x19d),_0x30f83e),...W(_0x4a49db,'height',_0x30f83e),...dt(_0x4a49db,'thumbnail',_0x30f83e)};}function ut(_0x3d28cd,_0x5421db,_0x355980){const _0x1a9147=_0x16c455;if(_0x3d28cd==null)return _0x5421db['startsWith']('data:')?_0x354b72['BASE64']:_0x354b72[_0x1a9147(0x1c8)];if(_0x3d28cd===_0x354b72[_0x1a9147(0x1c8)]||_0x3d28cd===_0x354b72[_0x1a9147(0x16c)]||_0x3d28cd===_0x354b72['BASE64'])return _0x3d28cd;throw TypeError(_0x355980+_0x1a9147(0x1f1));}function U(_0x5caa2c,_0x1f2493,_0xf61f89){const _0x4d1c4e=_0x16c455;if(typeof _0x5caa2c!=_0x4d1c4e(0x1d6)||!_0x5caa2c['trim']())throw TypeError(_0x1f2493+_0x4d1c4e(0xdb)+_0xf61f89+_0x4d1c4e(0x12a));return _0x5caa2c;}function dt(_0x514351,_0x30315f,_0xeb05d1){const _0x53c511=_0x16c455;let _0x150b96=_0x514351[_0x30315f];if(_0x150b96==null)return{};if(typeof _0x150b96!=_0x53c511(0x1d6)||!_0x150b96[_0x53c511(0x165)]())throw TypeError(_0xeb05d1+_0x53c511(0xdb)+_0x30315f+_0x53c511(0xe9));return{[_0x30315f]:_0x150b96};}function W(_0x55a343,_0x38ce3b,_0x519aef){const _0xcd879c=_0x16c455;let _0xad0a5d=_0x55a343[_0x38ce3b];if(_0xad0a5d==null)return{};if(typeof _0xad0a5d!='number'||!Number['isFinite'](_0xad0a5d)||_0xad0a5d<0x0)throw TypeError(_0x519aef+_0xcd879c(0xdb)+_0x38ce3b+_0xcd879c(0x126));return{[_0x38ce3b]:_0xad0a5d};}function ft(_0x1d782f){const _0x20eafa=_0x16c455;return typeof _0x1d782f==_0x20eafa(0xb9)&&!!_0x1d782f&&!Array[_0x20eafa(0xea)](_0x1d782f);}var G;let K=G=class{constructor(_0xdc72a,_0xac2e12,_0x1403ac,_0x3d66ed,_0x1e6d8d){const _0x548f76=_0x16c455;this[_0x548f76(0xf4)]=_0xdc72a,this['_table']=_0xac2e12,this[_0x548f76(0x1e7)]=_0x1403ac,this[_0x548f76(0x163)]=_0x3d66ed,this['_commandService']=_0x1e6d8d,this[_0x548f76(0x1f8)]();}[_0x16c455(0x171)](){const _0x8649b6=_0x16c455;return this[_0x8649b6(0xf4)][_0x8649b6(0x207)]();}['getTableId'](){const _0x427300=_0x16c455;return this[_0x427300(0x140)]['getId']();}[_0x16c455(0x15f)](){return{...this['_range']};}[_0x16c455(0x1a5)](){const _0x2bf762=_0x16c455;return this[_0x2bf762(0x1e7)][_0x2bf762(0x138)];}[_0x16c455(0x116)](){const _0x498089=_0x16c455;return this[_0x498089(0x1e7)][_0x498089(0x196)];}['getNumRows'](){const _0x176fd1=_0x16c455;return this[_0x176fd1(0x1e7)][_0x176fd1(0x1cc)]-this[_0x176fd1(0x1e7)]['startRow']+0x1;}[_0x16c455(0xee)](){const _0x3cc327=_0x16c455;return this[_0x3cc327(0x1e7)][_0x3cc327(0xff)]-this[_0x3cc327(0x1e7)]['startColumn']+0x1;}[_0x16c455(0x18e)](){const _0x4fa9ba=_0x16c455;let _0x2064cc=this[_0x4fa9ba(0x1b4)](),_0x397583=this[_0x4fa9ba(0xf5)](_0x2064cc),_0x1ced34=[];for(let _0x3a1497=this['_range']['startRow'];_0x3a1497<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0x1cc)];_0x3a1497++){var _0x512783;let _0x5ab072=(_0x512783=_0x2064cc[_0x4fa9ba(0x146)])==null?void 0x0:_0x512783[_0x3a1497],_0x132585=[];for(let _0x53816c=this[_0x4fa9ba(0x1e7)]['startColumn'];_0x53816c<=this[_0x4fa9ba(0x1e7)][_0x4fa9ba(0xff)];_0x53816c++){let _0x4b00c3=_0x397583[_0x53816c];_0x132585[_0x4fa9ba(0xda)](_0x5ab072&&_0x4b00c3?_0x5686ac(_0x2064cc,_0x5ab072,_0x4b00c3):null);}_0x1ced34['push'](_0x132585);}return _0x1ced34;}[_0x16c455(0x175)](){var _0x140ed0;return((_0x140ed0=this['getValues']()[0x0])==null?void 0x0:_0x140ed0[0x0])??null;}[_0x16c455(0x13a)](_0x555501){const _0x22fcdc=_0x16c455;return this[_0x22fcdc(0x1ec)]([[_0x555501]]);}[_0x16c455(0x1ec)](_0x2acbcf){const _0x1cd689=_0x16c455;let _0xc46e0a=this['getNumRows'](),_0x2e2ec3=this[_0x1cd689(0xee)]();if(_0x2acbcf[_0x1cd689(0x166)]>_0xc46e0a||_0x2acbcf[_0x1cd689(0x1a8)](_0x49250b=>_0x49250b[_0x1cd689(0x166)]>_0x2e2ec3)){var _0x4792da;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2acbcf[_0x1cd689(0x166)]+'x'+(((_0x4792da=_0x2acbcf[0x0])==null?void 0x0:_0x4792da[_0x1cd689(0x166)])??0x0)+_0x1cd689(0x16f)+_0xc46e0a+'x'+_0x2e2ec3+'.');}let _0x26af78=this[_0x1cd689(0x1b4)](),_0x5aa3b1=this['_getFieldIds'](_0x26af78),_0x115d16=_0x2acbcf[_0x1cd689(0x128)]((_0x3b0dd5,_0x3dfca0)=>_0x3b0dd5['map']((_0x5aa39d,_0x3d8eb2)=>{const _0x59d391=_0x1cd689;var _0x182a7e;let _0x1887ae=this[_0x59d391(0x1e7)][_0x59d391(0x138)]+_0x3dfca0,_0x493204=_0x5aa3b1[this[_0x59d391(0x1e7)][_0x59d391(0x196)]+_0x3d8eb2],_0x4dab0b=(_0x182a7e=_0x26af78['rowId'])==null?void 0x0:_0x182a7e[_0x1887ae];if(!_0x493204||!_0x4dab0b)throw Error(_0x59d391(0x19e));return{'recordId':_0x4dab0b,'fieldId':_0x493204,'value':_0x5aa39d};}));return this[_0x1cd689(0x106)][_0x1cd689(0x178)](_0x5ac327['id'],{'unitId':this['_base'][_0x1cd689(0x207)](),'tableId':this[_0x1cd689(0x140)][_0x1cd689(0x207)](),'patches':_0x115d16,'source':_0x55bebd[_0x1cd689(0x1ae)]});}[_0x16c455(0x172)](){const _0x50778e=_0x16c455;return this[_0x50778e(0x1ec)](Array[_0x50778e(0x1f4)]({'length':this['getNumRows']()},()=>Array[_0x50778e(0x1f4)]({'length':this[_0x50778e(0xee)]()},()=>null)));}[_0x16c455(0x190)](_0x19e44b,_0x5dcf62,_0x480bb7=this[_0x16c455(0x125)](),_0x5aa85d=this['getNumColumns']()){const _0x204859=_0x16c455;return this['_inject']['createInstance'](G,this[_0x204859(0xf4)],this['_table'],{'startRow':this[_0x204859(0x1e7)][_0x204859(0x138)]+_0x19e44b,'startColumn':this[_0x204859(0x1e7)][_0x204859(0x196)]+_0x5dcf62,'endRow':this['_range'][_0x204859(0x138)]+_0x19e44b+_0x480bb7-0x1,'endColumn':this['_range']['startColumn']+_0x5dcf62+_0x5aa85d-0x1},this[_0x204859(0x163)]);}['_getTable'](){const _0x3d27c1=_0x16c455;let _0x27428c=this['_table'][_0x3d27c1(0x147)]();if(!_0x27428c)throw Error(_0x3d27c1(0x1ea));return _0x5d9764(_0x27428c);}[_0x16c455(0x1f8)](){const _0x46610f=_0x16c455;var _0x17b6aa;let _0x338224=this[_0x46610f(0x1b4)](),_0xfa72d7=((_0x17b6aa=_0x338224[_0x46610f(0xdf)])==null?void 0x0:_0x17b6aa[_0x46610f(0x166)])??0x0,_0x196990=this[_0x46610f(0xf5)](_0x338224)[_0x46610f(0x166)];if(this['_range'][_0x46610f(0x138)]<0x0||this[_0x46610f(0x1e7)][_0x46610f(0x196)]<0x0||this['_range'][_0x46610f(0x1cc)]<this[_0x46610f(0x1e7)][_0x46610f(0x138)]||this[_0x46610f(0x1e7)]['endColumn']<this['_range'][_0x46610f(0x196)]||this[_0x46610f(0x1e7)][_0x46610f(0x1cc)]>=Math[_0x46610f(0x1b3)](_0xfa72d7,0x1)||this['_range'][_0x46610f(0xff)]>=Math[_0x46610f(0x1b3)](_0x196990,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0xfa72d7+',\x20max\x20columns:\x20'+_0x196990+_0x46610f(0x120)+JSON[_0x46610f(0x12d)](this[_0x46610f(0x1e7)])+'.');}[_0x16c455(0xf5)](_0x1ce6a8){const _0x20cecd=_0x16c455;return _0x1ce6a8[_0x20cecd(0xf6)][_0x20cecd(0x159)](_0x4ffb5f=>V(_0x1ce6a8[_0x20cecd(0x155)][_0x4ffb5f]));}};K=G=z([R(0x4,_0x18d666)],K);function q(_0x8261a1){'@babel/helpers - typeof';const _0x5f4780=_0x16c455;return q=typeof Symbol==_0x5f4780(0x1d1)&&typeof Symbol['iterator']==_0x5f4780(0x1c4)?function(_0x2a4a16){return typeof _0x2a4a16;}:function(_0x1f537e){const _0x552275=_0x5f4780;return _0x1f537e&&typeof Symbol==_0x552275(0x1d1)&&_0x1f537e['constructor']===Symbol&&_0x1f537e!==Symbol['prototype']?_0x552275(0x1c4):typeof _0x1f537e;},q(_0x8261a1);}function pt(_0x325de3,_0x227492){const _0x13afec=_0x16c455;if(q(_0x325de3)!=_0x13afec(0xb9)||!_0x325de3)return _0x325de3;var _0x308e0d=_0x325de3[Symbol[_0x13afec(0x1d4)]];if(_0x308e0d!==void 0x0){var _0xdfe048=_0x308e0d[_0x13afec(0x136)](_0x325de3,_0x227492||_0x13afec(0x131));if(q(_0xdfe048)!=_0x13afec(0xb9))return _0xdfe048;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x227492==='string'?String:Number)(_0x325de3);}function mt(_0x25abef){const _0x403a4b=_0x16c455;var _0x1f4e71=pt(_0x25abef,_0x403a4b(0x1d6));return q(_0x1f4e71)=='symbol'?_0x1f4e71:_0x1f4e71+'';}function ht(_0x11aebd,_0x1e619f,_0x1d5ff1){const _0x5e2b9a=_0x16c455;return(_0x1e619f=mt(_0x1e619f))in _0x11aebd?Object[_0x5e2b9a(0x1e4)](_0x11aebd,_0x1e619f,{'value':_0x1d5ff1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11aebd[_0x1e619f]=_0x1d5ff1,_0x11aebd;}var J;let Y=J=class extends _0x36d8f1{constructor(_0x40d121,_0x1929c5,_0x4843c6,_0x2edad7,_0x12d24a,_0x47a1a7){const _0x1cc9b4=_0x16c455;super(_0x2edad7),this[_0x1cc9b4(0xf4)]=_0x40d121,this[_0x1cc9b4(0x140)]=_0x1929c5,this[_0x1cc9b4(0x1c3)]=_0x4843c6,this[_0x1cc9b4(0x113)]=_0x2edad7,this['_commandService']=_0x12d24a,this[_0x1cc9b4(0x1a4)]=_0x47a1a7,ht(this,_0x1cc9b4(0x11f),void 0x0),ht(this,_0x1cc9b4(0x11d),void 0x0),this[_0x1cc9b4(0x11f)]=_0x40d121[_0x1cc9b4(0x207)](),this[_0x1cc9b4(0x11d)]=_0x1929c5[_0x1cc9b4(0x207)]();}['getBaseFacade'](){const _0x23a9a4=_0x16c455;return this[_0x23a9a4(0xf4)];}['getTableFacade'](){const _0x425012=_0x16c455;return this[_0x425012(0x140)];}[_0x16c455(0x207)](){const _0x405a56=_0x16c455;return this[_0x405a56(0x1c3)];}[_0x16c455(0x1d9)](){const _0x4bf983=_0x16c455;let _0x4950a7=this['_table'][_0x4bf983(0x207)]();return new L(this[_0x4bf983(0xf4)]['getId'](),_0xa951c(_0x4950a7,this['_recordId']),[_0x178fd1(_0x4950a7)],this[_0x4bf983(0x106)],this[_0x4bf983(0x1a4)]);}[_0x16c455(0x118)](){const _0x115372=_0x16c455;return{...this[_0x115372(0x11e)](),'values':this[_0x115372(0x18e)]()};}[_0x16c455(0x175)](_0x5b5f5b){const _0x3b169d=_0x16c455;return V(this[_0x3b169d(0x140)][_0x3b169d(0x147)]()['fields'][_0x5b5f5b])?this[_0x3b169d(0x11e)]()[_0x3b169d(0x1da)][_0x5b5f5b]??null:null;}[_0x16c455(0x18e)](){const _0x1a651c=_0x16c455;let _0x43ef4d=this[_0x1a651c(0x140)][_0x1a651c(0x147)]();return Object[_0x1a651c(0x167)](Object[_0x1a651c(0x208)](this[_0x1a651c(0x11e)]()[_0x1a651c(0x1da)])[_0x1a651c(0x159)](([_0x323334])=>V(_0x43ef4d[_0x1a651c(0x155)][_0x323334])));}[_0x16c455(0x13a)](_0x1e33af,_0x1c82b1){const _0x5cdbdd=_0x16c455;let _0x4cfd32=this[_0x5cdbdd(0x140)][_0x5cdbdd(0x147)]()[_0x5cdbdd(0x155)][_0x1e33af];return this['_commandService']['syncExecuteCommand'](_0x56896a['id'],{'unitId':this['_base'][_0x5cdbdd(0x207)](),'tableId':this['_table'][_0x5cdbdd(0x207)](),'recordId':this[_0x5cdbdd(0x1c3)],'fieldId':_0x1e33af,'value':st(_0x4cfd32,_0x1c82b1),'source':_0x55bebd[_0x5cdbdd(0x1ae)]});}[_0x16c455(0x1c6)](_0x1fbcbd,_0x35125c){const _0x566969=_0x16c455;return this['setValue'](_0x1fbcbd,_0x35125c[_0x566969(0x176)](_0x285d71=>({..._0x285d71})));}[_0x16c455(0x10d)](_0x5cfafb){const _0x4786d2=_0x16c455;this[_0x4786d2(0xbf)](_0x5cfafb);let _0xe9b0b5=this[_0x4786d2(0x175)](_0x5cfafb);return Array[_0x4786d2(0xea)](_0xe9b0b5)?_0xe9b0b5['map']((_0x4a0169,_0xd484ff)=>_t(_0x4a0169,_0x5cfafb,_0xd484ff)):[];}[_0x16c455(0x1ac)](_0x124e05,_0x2be5fe){const _0xc342bf=_0x16c455;this['_getAttachmentField'](_0x124e05);let _0x317c73=new Set(_0x2be5fe[_0xc342bf(0x176)](_0xe129c0=>_0xe129c0['id']));if(!_0x317c73[_0xc342bf(0x154)])return!0x0;let _0x4afe90=this[_0xc342bf(0x10d)](_0x124e05),_0x60d256=_0x4afe90[_0xc342bf(0x159)](_0x338e59=>!_0x317c73[_0xc342bf(0x141)](_0x338e59['id']));return _0x60d256['length']===_0x4afe90[_0xc342bf(0x166)]||this['setAttachments'](_0x124e05,_0x60d256);}['setValues'](_0x14f702,_0x420547='id'){const _0x41d07d=_0x16c455;let _0x2742e4=this['_table'][_0x41d07d(0x147)](),_0x4484f7=[{'recordId':this[_0x41d07d(0x1c3)],'values':H(_0x2742e4,_0x14f702,_0x420547)}];return this[_0x41d07d(0x106)][_0x41d07d(0x178)](_0xe2fa79['id'],{'unitId':this[_0x41d07d(0xf4)][_0x41d07d(0x207)](),'tableId':this['_table'][_0x41d07d(0x207)](),'patches':_0x4484f7,'source':_0x55bebd[_0x41d07d(0x1ae)]});}[_0x16c455(0xcd)](){const _0x5b53d9=_0x16c455;return this[_0x5b53d9(0x106)][_0x5b53d9(0x178)](_0x2a07c2['id'],{'unitId':this[_0x5b53d9(0xf4)][_0x5b53d9(0x207)](),'tableId':this[_0x5b53d9(0x140)][_0x5b53d9(0x207)](),'recordId':this[_0x5b53d9(0x1c3)],'source':_0x55bebd[_0x5b53d9(0x1ae)]});}[_0x16c455(0x169)](_0x407fc9){const _0x29c2b5=_0x16c455;let _0xa840b={...this['_getRecord'](),..._0x407fc9,'id':_0x2fbf07(0x6)};_0xa840b[_0x29c2b5(0x1da)]={..._0xa840b[_0x29c2b5(0x1da)],..._0x407fc9==null?void 0x0:_0x407fc9[_0x29c2b5(0x1da)]},Reflect['deleteProperty'](_0xa840b['values'],_0x45a674);let _0x37accc=Date[_0x29c2b5(0xe0)]();if(_0xa840b[_0x29c2b5(0xb0)]||=''+_0x37accc,_0xa840b[_0x29c2b5(0x100)]||=_0x37accc,_0xa840b[_0x29c2b5(0x1df)]||=_0x37accc,!this[_0x29c2b5(0x106)][_0x29c2b5(0x178)](_0x12761d['id'],{'unitId':this[_0x29c2b5(0xf4)]['getId'](),'tableId':this[_0x29c2b5(0x140)][_0x29c2b5(0x207)](),'sourceRecordId':this['_recordId'],'record':_0xa840b,'source':_0x55bebd[_0x29c2b5(0x1ae)]}))throw Error(_0x29c2b5(0x1d0)+this[_0x29c2b5(0x1c3)]+'\x22.');return this[_0x29c2b5(0x113)][_0x29c2b5(0x152)](J,this[_0x29c2b5(0xf4)],this[_0x29c2b5(0x140)],_0xa840b['id'],this[_0x29c2b5(0x113)]);}['setOrderKey'](_0x67497e){const _0x3714e2=_0x16c455;return this[_0x3714e2(0x106)][_0x3714e2(0x178)](_0x14f095['id'],{'unitId':this[_0x3714e2(0xf4)][_0x3714e2(0x207)](),'tableId':this[_0x3714e2(0x140)][_0x3714e2(0x207)](),'recordId':this[_0x3714e2(0x1c3)],'orderKey':_0x67497e});}[_0x16c455(0x1d5)](_0x13959c){const _0x7515c0=_0x16c455;let _0x4c3761=this[_0x7515c0(0x192)](_0x13959c),_0x4c8cae=this[_0x7515c0(0x175)](_0x4c3761['id']);return _0x335852(_0x4c8cae);}[_0x16c455(0xf2)](_0x23c183,_0x8a5f6b){const _0x3cdf82=_0x16c455;let _0x5e4a8b=this['_getRecordLinkField'](_0x23c183),_0x209e7c=_0x392c5e(_0x8a5f6b),_0x50cbbf=_0x2e4386(this['_base']['getBase']()[_0x3cdf82(0x15a)](),_0x5e4a8b,_0x209e7c);if(!_0x50cbbf['valid'])throw Error(_0x50cbbf[_0x3cdf82(0xd9)]??_0x3cdf82(0x13d));return this[_0x3cdf82(0x106)]['syncExecuteCommand'](_0x56896a['id'],{'unitId':this[_0x3cdf82(0xf4)][_0x3cdf82(0x207)](),'tableId':this[_0x3cdf82(0x140)][_0x3cdf82(0x207)](),'recordId':this[_0x3cdf82(0x1c3)],'fieldId':_0x23c183,'value':_0x209e7c,'source':_0x55bebd['Facade']});}[_0x16c455(0x1b7)](_0x297a42,_0x39790a){const _0x37c7c1=_0x16c455;let _0x4ff4db=this['_getRecordLinkField'](_0x297a42),_0x265543=_0x15bd67(_0x4ff4db);if(!_0x265543)throw Error(_0x37c7c1(0xae)+_0x297a42+_0x37c7c1(0xa6));let _0x1c9d21=this[_0x37c7c1(0x1d5)](_0x297a42);return _0x265543[_0x37c7c1(0x168)]&&_0x1c9d21['includes'](_0x39790a)?!0x0:this[_0x37c7c1(0xf2)](_0x297a42,_0x265543[_0x37c7c1(0x168)]?[..._0x1c9d21,_0x39790a]:[_0x39790a]);}[_0x16c455(0x1d3)](_0x3a6220,_0x517311){const _0x4bf7f6=_0x16c455;let _0x5067db=this[_0x4bf7f6(0x1d5)](_0x3a6220);return!_0x5067db[_0x4bf7f6(0xec)](_0x517311)||this[_0x4bf7f6(0xf2)](_0x3a6220,_0x5067db[_0x4bf7f6(0x159)](_0x2b9023=>_0x2b9023!==_0x517311));}[_0x16c455(0x12b)](_0x5f5b4d){const _0x293cb6=_0x16c455;let _0x5520c3=this[_0x293cb6(0x1c2)](_0x5f5b4d)[_0x293cb6(0x13f)][_0x293cb6(0x14f)](this[_0x293cb6(0x1c3)])??null;return _0x5520c3?this[_0x293cb6(0x140)]['getRecordById'](_0x5520c3):null;}[_0x16c455(0x157)](_0x2d97c1){const _0x62e0cc=_0x16c455;return(this[_0x62e0cc(0x1c2)](_0x2d97c1)['childrenByParentId'][_0x62e0cc(0x14f)](this[_0x62e0cc(0x1c3)])??[])[_0x62e0cc(0x128)](_0x582a40=>{const _0x31685f=_0x62e0cc;let _0x4f4da7=this[_0x31685f(0x140)]['getRecordById'](_0x582a40);return _0x4f4da7?[_0x4f4da7]:[];});}[_0x16c455(0xa5)](_0x3bd48c){const _0x5379b8=_0x16c455;let _0x906338=this[_0x5379b8(0x1c2)](_0x3bd48c),_0x2b5c1e=[],_0x5cb0b5=_0x906338['parentByRecordId'][_0x5379b8(0x14f)](this['_recordId'])??null;for(;_0x5cb0b5;){let _0x1e3d62=this[_0x5379b8(0x140)]['getRecordById'](_0x5cb0b5);_0x1e3d62&&_0x2b5c1e[_0x5379b8(0xda)](_0x1e3d62),_0x5cb0b5=_0x906338[_0x5379b8(0x13f)][_0x5379b8(0x14f)](_0x5cb0b5)??null;}return _0x2b5c1e;}['getDescendants'](_0x926d58){const _0x10f1e0=_0x16c455;let _0x1fe922=this[_0x10f1e0(0x1c2)](_0x926d58),_0x9be7b0=_0x1fe922[_0x10f1e0(0x209)][_0x10f1e0(0x107)](this[_0x10f1e0(0x1c3)]),_0x1071b1=_0x1fe922['subtreeHeightByRecordId'][_0x10f1e0(0x141)](this[_0x10f1e0(0x1c3)])?this[_0x10f1e0(0x1b2)](_0x1fe922[_0x10f1e0(0xba)],this[_0x10f1e0(0x1c3)]):[];return _0x9be7b0<0x0?[]:_0x1071b1[_0x10f1e0(0x128)](_0x3db2e6=>{const _0x5694ab=_0x10f1e0;let _0x5bf744=this[_0x5694ab(0x140)]['getRecordById'](_0x3db2e6);return _0x5bf744?[_0x5bf744]:[];});}['setParent'](_0x34af2a,_0x313837,_0x562201){const _0x6ba9a1=_0x16c455;return this[_0x6ba9a1(0x106)][_0x6ba9a1(0x178)](_0x1c837a['id'],{'unitId':this[_0x6ba9a1(0xf4)][_0x6ba9a1(0x207)](),'tableId':this[_0x6ba9a1(0x140)][_0x6ba9a1(0x207)](),'fieldId':_0x34af2a,'recordId':this[_0x6ba9a1(0x1c3)],'parentRecordId':_0x313837,'orderKey':_0x562201,'source':_0x55bebd[_0x6ba9a1(0x1ae)]});}[_0x16c455(0x199)](_0x39a4de,_0x7237c5,_0x7c485d='id',_0x19f9bc){const _0x2c99be=_0x16c455;let _0x5989c0=this['_table'][_0x2c99be(0x147)](),_0x480fa8=Date[_0x2c99be(0xe0)](),_0x394a55={..._0x19f9bc,'id':_0x2fbf07(0x6),'values':H(_0x5989c0,_0x7237c5,_0x7c485d),'orderKey':(_0x19f9bc==null?void 0x0:_0x19f9bc['orderKey'])||''+_0x480fa8,'createdAt':(_0x19f9bc==null?void 0x0:_0x19f9bc['createdAt'])||_0x480fa8,'updatedAt':(_0x19f9bc==null?void 0x0:_0x19f9bc[_0x2c99be(0x1df)])||_0x480fa8};if(!this[_0x2c99be(0x106)]['syncExecuteCommand'](_0x2e5ba5['id'],{'unitId':this[_0x2c99be(0xf4)][_0x2c99be(0x207)](),'tableId':this['_table'][_0x2c99be(0x207)](),'fieldId':_0x39a4de,'parentRecordId':this['_recordId'],'record':_0x394a55,'source':_0x55bebd[_0x2c99be(0x1ae)]}))throw Error(_0x2c99be(0x1bd)+this['_recordId']+'\x22.');return this['_injector'][_0x2c99be(0x152)](J,this[_0x2c99be(0xf4)],this[_0x2c99be(0x140)],_0x394a55['id'],this['_injector']);}['_getHierarchyIndex'](_0x2d80ae){const _0x890cff=_0x16c455;return _0x1a3563(this[_0x890cff(0x140)][_0x890cff(0x147)](),_0x2d80ae);}[_0x16c455(0x1b2)](_0x64c7d7,_0xf099a4){let _0x1e01b4=[],_0x4bfb71=_0x476acb=>{const _0x15f82d=_0x459a;for(let _0x46c163 of _0x64c7d7[_0x15f82d(0x14f)](_0x476acb)??[])_0x1e01b4[_0x15f82d(0xda)](_0x46c163),_0x4bfb71(_0x46c163);};return _0x4bfb71(_0xf099a4),_0x1e01b4;}[_0x16c455(0x11e)](){const _0x3e68f2=_0x16c455;let _0x23a668=this[_0x3e68f2(0x140)][_0x3e68f2(0x147)]()['records'][this[_0x3e68f2(0x1c3)]];if(!_0x23a668)throw Error(_0x3e68f2(0x1dc)+this[_0x3e68f2(0x1c3)]+_0x3e68f2(0x1f6));return _0x23a668;}[_0x16c455(0x192)](_0x5a1d2c){const _0x351d0a=_0x16c455;let _0x953f31=this[_0x351d0a(0x140)][_0x351d0a(0x147)]()['fields'][_0x5a1d2c];if(!_0x953f31||_0x953f31['type']!==_0x5c585e[_0x351d0a(0x18f)])throw Error(_0x351d0a(0xa1)+_0x5a1d2c+_0x351d0a(0xd4));return _0x953f31;}['_getAttachmentField'](_0x328c9a){const _0x599fba=_0x16c455;let _0x5ad6e8=this[_0x599fba(0x140)][_0x599fba(0x147)]()[_0x599fba(0x155)][_0x328c9a];if(!_0x5ad6e8||_0x5ad6e8['type']!==_0x5c585e[_0x599fba(0xf3)])throw Error('[FRecord]:\x20field\x20\x22'+_0x328c9a+_0x599fba(0xfd));return _0x5ad6e8;}};Y=J=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8)],Y);function gt(_0xe3d14){const _0x2353e7=_0x16c455;return!!(_0xe3d14&&typeof _0xe3d14==_0x2353e7(0xb9)&&'id'in _0xe3d14&&typeof _0xe3d14['id']=='string'&&_0x2353e7(0x103)in _0xe3d14&&typeof _0xe3d14[_0x2353e7(0x103)]==_0x2353e7(0x1d6));}function _t(_0x428ca8,_0x38cc44,_0x116a11){const _0x3e48a3=_0x16c455;if(!gt(_0x428ca8))throw Error(_0x3e48a3(0x1fe)+_0x116a11+_0x3e48a3(0x102)+_0x38cc44+_0x3e48a3(0x10e));return{..._0x428ca8};}let X=class{constructor(_0x28fd8c,_0x55403a,_0xf330a,_0x4dd9f0,_0x230e08,_0x3b86dd,_0x4e439f){const _0x17b6d2=_0x16c455;this[_0x17b6d2(0xf4)]=_0x28fd8c,this[_0x17b6d2(0x140)]=_0x55403a,this[_0x17b6d2(0x1eb)]=_0xf330a,this['_injector']=_0x4dd9f0,this[_0x17b6d2(0x106)]=_0x230e08,this[_0x17b6d2(0x1a4)]=_0x3b86dd,this[_0x17b6d2(0xb7)]=_0x4e439f;}[_0x16c455(0x207)](){const _0x116c5d=_0x16c455;return this[_0x116c5d(0x1eb)];}['getPermission'](){const _0x570631=_0x16c455;let _0x5d8e86=this[_0x570631(0x140)][_0x570631(0x207)]();return new L(this['_base'][_0x570631(0x207)](),_0x53e240(_0x5d8e86,this[_0x570631(0x1eb)]),[_0x178fd1(_0x5d8e86)],this[_0x570631(0x106)],this[_0x570631(0x1a4)]);}['getView'](){const _0x448d79=_0x16c455;return this[_0x448d79(0x1ab)]();}['getName'](){const _0x2f6696=_0x16c455;return this[_0x2f6696(0x1ab)]()[_0x2f6696(0x103)];}[_0x16c455(0x16d)](){const _0x5b3d2f=_0x16c455;return this[_0x5b3d2f(0x1ab)]()['type'];}[_0x16c455(0xf1)](_0x31628a){const _0x1634ca=_0x16c455;return this[_0x1634ca(0x106)][_0x1634ca(0x178)](_0x43a829['id'],{'unitId':this[_0x1634ca(0xf4)][_0x1634ca(0x207)](),'tableId':this[_0x1634ca(0x140)][_0x1634ca(0x207)](),'viewId':this[_0x1634ca(0x1eb)],'name':_0x31628a});}['getConfig'](){const _0x33de95=_0x16c455;let _0x47b3b9=this['getType'](),_0x99adc5=this[_0x33de95(0x1ab)]()[_0x33de95(0x1f3)];switch(_0x47b3b9){case _0x1eb8c0[_0x33de95(0xbc)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1db)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0xfb)]:return _0x99adc5;case _0x1eb8c0[_0x33de95(0x1f7)]:return _0x99adc5;case _0x1eb8c0['Gallery']:return _0x99adc5;default:return _0x99adc5;}}[_0x16c455(0x1a0)](_0x2d4819){const _0x35a4e8=_0x16c455;return this[_0x35a4e8(0x106)][_0x35a4e8(0x178)](_0x5996eb['id'],{'unitId':this[_0x35a4e8(0xf4)][_0x35a4e8(0x207)](),'tableId':this['_table'][_0x35a4e8(0x207)](),'viewId':this['_viewId'],'patch':_0x2d4819});}[_0x16c455(0xaf)](){const _0x552f73=_0x16c455;var _0x2a0243;return _0x49e7b0[_0x552f73(0x14e)](((_0x2a0243=this[_0x552f73(0x1ab)]()['config'][_0x552f73(0xbd)])==null?void 0x0:_0x2a0243[_0x552f73(0x158)])??[]);}['setConditionalColorRules'](_0x231846){const _0x256e79=_0x16c455;return this[_0x256e79(0x106)][_0x256e79(0x178)](_0x445422['id'],{'unitId':this[_0x256e79(0xf4)][_0x256e79(0x207)](),'tableId':this[_0x256e79(0x140)][_0x256e79(0x207)](),'viewId':this['_viewId'],'type':_0x14071a[_0x256e79(0x174)],'rules':_0x231846});}[_0x16c455(0x184)](_0x12ef7e){const _0xca1982=_0x16c455;return this[_0xca1982(0x106)][_0xca1982(0x178)](_0x445422['id'],{'unitId':this[_0xca1982(0xf4)][_0xca1982(0x207)](),'tableId':this[_0xca1982(0x140)][_0xca1982(0x207)](),'viewId':this[_0xca1982(0x1eb)],'type':_0x14071a[_0xca1982(0x1af)],'rule':_0x12ef7e});}['deleteConditionalColorRule'](_0x6f94f9){const _0x30b3b8=_0x16c455;return this[_0x30b3b8(0x106)][_0x30b3b8(0x178)](_0x445422['id'],{'unitId':this['_base'][_0x30b3b8(0x207)](),'tableId':this['_table']['getId'](),'viewId':this[_0x30b3b8(0x1eb)],'type':_0x14071a[_0x30b3b8(0x170)],'ruleId':_0x6f94f9});}[_0x16c455(0xd2)](){const _0xa2576e=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x445422['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0xa2576e(0x207)](),'viewId':this[_0xa2576e(0x1eb)],'type':_0x14071a[_0xa2576e(0x179)]});}[_0x16c455(0x115)](){const _0x456da4=_0x16c455;return this['_getView']()[_0x456da4(0x159)]??null;}['setFilter'](_0x2bf2eb){const _0x260a59=_0x16c455;return this[_0x260a59(0x106)][_0x260a59(0x178)](_0x537303['id'],{'unitId':this[_0x260a59(0xf4)][_0x260a59(0x207)](),'tableId':this['_table'][_0x260a59(0x207)](),'viewId':this['_viewId'],'filter':_0x2bf2eb});}['getSort'](){const _0x27c986=_0x16c455;return this[_0x27c986(0x1ab)]()['sort']??[];}[_0x16c455(0x1e0)](_0x3c2b74){const _0x1a3227=_0x16c455;return this[_0x1a3227(0x106)][_0x1a3227(0x178)](_0x2d2d2c['id'],{'unitId':this[_0x1a3227(0xf4)][_0x1a3227(0x207)](),'tableId':this['_table'][_0x1a3227(0x207)](),'viewId':this['_viewId'],'sort':_0x3c2b74});}[_0x16c455(0x10b)](){const _0x2ad465=_0x16c455;return this[_0x2ad465(0x1ab)]()[_0x2ad465(0xde)]??[];}[_0x16c455(0x104)](_0x400c4c){const _0x2867eb=_0x16c455;return this[_0x2867eb(0x106)][_0x2867eb(0x178)](_0x4e34d1['id'],{'unitId':this[_0x2867eb(0xf4)]['getId'](),'tableId':this['_table'][_0x2867eb(0x207)](),'viewId':this[_0x2867eb(0x1eb)],'group':_0x400c4c});}[_0x16c455(0x198)](_0x3dc86f){const _0x5a6535=_0x16c455;var _0x47d4a9;return V(this[_0x5a6535(0x140)][_0x5a6535(0x147)]()[_0x5a6535(0x155)][_0x3dc86f])?((_0x47d4a9=this['_getView']()['fieldSettings'])==null?void 0x0:_0x47d4a9[_0x3dc86f])??{}:{};}[_0x16c455(0xc7)](){const _0x558f1c=_0x16c455;let _0x570e39=this[_0x558f1c(0x140)][_0x558f1c(0x147)](),_0x32a9ad=this[_0x558f1c(0x1ab)]();return(_0x32a9ad[_0x558f1c(0xf6)]??_0x570e39[_0x558f1c(0xf6)])[_0x558f1c(0x159)](_0x3a42b2=>{const _0x3c04b0=_0x558f1c;var _0xb49863;let _0x1c9c6d=_0x570e39[_0x3c04b0(0x155)][_0x3a42b2];return V(_0x1c9c6d)&&!((_0xb49863=_0x32a9ad[_0x3c04b0(0x1de)])!=null&&(_0xb49863=_0xb49863[_0x3a42b2])!=null&&_0xb49863['hidden']);})[_0x558f1c(0x176)](_0x3362a2=>this[_0x558f1c(0x113)][_0x558f1c(0x152)](B,this[_0x558f1c(0xf4)],this[_0x558f1c(0x140)],_0x3362a2));}[_0x16c455(0xdc)](_0x45b571,_0x269da5){const _0x41f437=_0x16c455;return V(this['_table'][_0x41f437(0x147)]()['fields'][_0x45b571])?this[_0x41f437(0x106)][_0x41f437(0x178)](_0x29d7b1['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x41f437(0x140)][_0x41f437(0x207)](),'viewId':this[_0x41f437(0x1eb)],'fieldId':_0x45b571,'visible':_0x269da5}):!0x1;}[_0x16c455(0x18c)](_0x1432e3,_0x5b475f){const _0x507e3b=_0x16c455;return V(this['_table']['getTable']()[_0x507e3b(0x155)][_0x1432e3])?this[_0x507e3b(0x106)][_0x507e3b(0x178)](_0x10caef['id'],{'unitId':this[_0x507e3b(0xf4)]['getId'](),'tableId':this[_0x507e3b(0x140)][_0x507e3b(0x207)](),'viewId':this[_0x507e3b(0x1eb)],'fieldId':_0x1432e3,'width':_0x5b475f}):!0x1;}[_0x16c455(0xd7)](_0x5bc82f,_0x452f00){const _0x17c841=_0x16c455;let _0x1c519a=this[_0x17c841(0x140)][_0x17c841(0x147)](),_0x510021=_0x452f00[_0x17c841(0xbe)]??_0x452f00[_0x17c841(0xe4)];return!V(_0x1c519a[_0x17c841(0x155)][_0x5bc82f])||!_0x510021||!V(_0x1c519a['fields'][_0x510021])?!0x1:this[_0x17c841(0x106)][_0x17c841(0x178)](_0x1a9899['id'],{'unitId':this[_0x17c841(0xf4)][_0x17c841(0x207)](),'tableId':this[_0x17c841(0x140)][_0x17c841(0x207)](),'viewId':this[_0x17c841(0x1eb)],'fieldId':_0x5bc82f,'target':_0x452f00});}[_0x16c455(0x19b)](_0x5882dc){const _0x3f1443=_0x16c455;return this[_0x3f1443(0x106)]['syncExecuteCommand'](_0x3abd85['id'],{'unitId':this[_0x3f1443(0xf4)][_0x3f1443(0x207)](),'tableId':this[_0x3f1443(0x140)]['getId'](),'viewId':this[_0x3f1443(0x1eb)],'target':_0x5882dc});}[_0x16c455(0xcd)](){const _0x1eeb97=_0x16c455;return this['_commandService']['syncExecuteCommand'](_0x548359['id'],{'unitId':this[_0x1eeb97(0xf4)][_0x1eeb97(0x207)](),'tableId':this[_0x1eeb97(0x140)][_0x1eeb97(0x207)](),'viewId':this[_0x1eeb97(0x1eb)]});}[_0x16c455(0xef)](){const _0x240d1b=_0x16c455;return this[_0x240d1b(0xb7)][_0x240d1b(0xef)](this[_0x240d1b(0xf4)][_0x240d1b(0xaa)]()[_0x240d1b(0x15a)](),this['_table'][_0x240d1b(0x207)](),this[_0x240d1b(0x1eb)]);}[_0x16c455(0x1ab)](){const _0x5725e3=_0x16c455;let _0x176e7d=this[_0x5725e3(0x140)][_0x5725e3(0x147)]()[_0x5725e3(0x162)][this['_viewId']];if(!_0x176e7d)throw Error('[FView]:\x20view\x20\x22'+this['_viewId']+_0x5725e3(0x1f6));return _0x176e7d;}};X=z([R(0x4,_0x18d666),R(0x5,_0x5e35b8),R(0x6,_0x499ad2)],X);let Z=class{constructor(_0x3ecdbe,_0x1b0810,_0x155d57,_0xb59bfe,_0x1c1bd7,_0x2979ee){const _0x2242dd=_0x16c455;this[_0x2242dd(0xf4)]=_0x3ecdbe,this[_0x2242dd(0xc0)]=_0x1b0810,this[_0x2242dd(0x113)]=_0x155d57,this[_0x2242dd(0x106)]=_0xb59bfe,this[_0x2242dd(0x1a4)]=_0x1c1bd7,this['_projectionService']=_0x2979ee;}[_0x16c455(0xaa)](){const _0x252632=_0x16c455;return this[_0x252632(0xf4)][_0x252632(0xaa)]();}['getTable'](){return this['_getTable']();}[_0x16c455(0x207)](){const _0x3c8864=_0x16c455;return this[_0x3c8864(0xc0)];}['getPermission'](){const _0x507b89=_0x16c455;return new L(this[_0x507b89(0xaa)]()[_0x507b89(0x109)](),_0x178fd1(this[_0x507b89(0xc0)]),[],this[_0x507b89(0x106)],this[_0x507b89(0x1a4)]);}[_0x16c455(0x101)](){const _0x5b3a75=_0x16c455;return _0x4e6087(this[_0x5b3a75(0x1b4)]());}[_0x16c455(0x1cf)](_0x5d28a4){const _0x4be8dd=_0x16c455;return this[_0x4be8dd(0x106)][_0x4be8dd(0x178)](_0x331078['id'],{'unitId':this[_0x4be8dd(0xf4)][_0x4be8dd(0x207)](),'tableId':this[_0x4be8dd(0xc0)],'fieldId':_0x5d28a4});}[_0x16c455(0x180)](){const _0x2efa46=_0x16c455;return this[_0x2efa46(0x1b4)]()[_0x2efa46(0x103)];}[_0x16c455(0x15c)](){const _0x228ac3=_0x16c455;let _0x23f274=this[_0x228ac3(0xf4)][_0x228ac3(0xaa)]()[_0x228ac3(0x15a)]();return _0x334dca(this[_0x228ac3(0x1b4)](),_0x23f274);}[_0x16c455(0xf1)](_0x625c45){const _0x1f4f35=_0x16c455;let _0x111869=_0x2628b6(this['_base']['getBase']()[_0x1f4f35(0x15a)](),_0x625c45,this[_0x1f4f35(0xc0)]);if(!_0x111869[_0x1f4f35(0x139)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x625c45+_0x1f4f35(0x1f5)+_0x229298+'\x20'+_0x111869[_0x1f4f35(0xd9)]);return this[_0x1f4f35(0x106)]['syncExecuteCommand'](_0x3dc70f['id'],{'unitId':this[_0x1f4f35(0xf4)][_0x1f4f35(0x207)](),'tableId':this[_0x1f4f35(0xc0)],'name':_0x625c45});}[_0x16c455(0x1cb)](_0xef6927,_0x27849a){const _0x4ebbf0=_0x16c455;let _0x41fb75=this[_0x4ebbf0(0xf4)]['getBase']()[_0x4ebbf0(0x15a)](),_0x515157=this[_0x4ebbf0(0x1b4)]();if(_0x27849a){let _0x139628=this[_0x4ebbf0(0xb7)]['getProjection'](_0x41fb75,this[_0x4ebbf0(0xc0)],_0x27849a),_0xa24b44=_0x515157['views'][_0x27849a],_0x8159f7=_0xef6927['fieldIds']??Tt(_0x515157,_0xa24b44,_0x139628),_0x4f7e69=_0x4ebbf0(0x137)in _0x139628&&Array['isArray'](_0x139628[_0x4ebbf0(0x137)])?_0x139628[_0x4ebbf0(0x137)]:[];return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x8159f7,'rows':_0x4f7e69});}let _0x3a5931=(_0x515157['recordOrder']?_0x515157[_0x4ebbf0(0xdf)][_0x4ebbf0(0x176)](_0x286e5c=>_0x515157[_0x4ebbf0(0x111)][_0x286e5c]):Object['values'](_0x515157['records'])['sort']((_0x41e0ed,_0x8f4de8)=>_0x41e0ed[_0x4ebbf0(0xb0)]['localeCompare'](_0x8f4de8[_0x4ebbf0(0xb0)])))[_0x4ebbf0(0x159)](_0x1615c0=>_0x1615c0)[_0x4ebbf0(0x176)](_0xc82e5e=>({'recordId':_0xc82e5e['id'],'values':_0xc82e5e[_0x4ebbf0(0x1da)]})),_0x87b5fa=_0xef6927[_0x4ebbf0(0x1a9)]??_0x515157[_0x4ebbf0(0xf6)]['filter'](_0x155b16=>V(_0x515157[_0x4ebbf0(0x155)][_0x155b16]));return _0x3ed99e({..._0xef6927,'table':_0x515157,'fieldIds':_0x87b5fa,'rows':_0x3a5931});}[_0x16c455(0x119)](){const _0x56bb65=_0x16c455;return this['_getTable']()[_0x56bb65(0x185)];}['getFields'](){const _0x59574a=_0x16c455;let _0x438821=this[_0x59574a(0x1b4)]();return _0x438821['fieldOrder'][_0x59574a(0x176)](_0x5dd607=>_0x438821[_0x59574a(0x155)][_0x5dd607])['filter'](V)[_0x59574a(0x176)](_0x448c67=>this[_0x59574a(0x113)][_0x59574a(0x152)](B,this['_base'],this,_0x448c67['id']));}[_0x16c455(0x181)](_0x459631){const _0x5bbcc7=_0x16c455;let _0x51f4b7=this[_0x5bbcc7(0x1b4)]()[_0x5bbcc7(0x155)][_0x459631];return V(_0x51f4b7)?this[_0x5bbcc7(0x113)][_0x5bbcc7(0x152)](B,this[_0x5bbcc7(0xf4)],this,_0x51f4b7['id']):null;}['getFieldByName'](_0x5792f6){const _0x2126fe=_0x16c455;let _0x43d290=this[_0x2126fe(0x1b4)]()['fields'],_0x4f720c=Object['values'](_0x43d290)['find'](_0x3b54bc=>V(_0x3b54bc)&&_0x3b54bc[_0x2126fe(0x103)]===_0x5792f6);return _0x4f720c?this[_0x2126fe(0x113)]['createInstance'](B,this['_base'],this,_0x4f720c['id']):null;}[_0x16c455(0x145)](){const _0x12b889=_0x16c455;let _0x29403f=this[_0x12b889(0x1b4)]()[_0x12b889(0x185)];return this[_0x12b889(0x113)][_0x12b889(0x152)](B,this[_0x12b889(0xf4)],this,_0x29403f);}[_0x16c455(0x12f)](_0x24ce34,_0x42b438,_0x1fcefd){const _0x5eb3c9=_0x16c455;var _0x299de3,_0xca3180;if(!Object[_0x5eb3c9(0x1da)](_0x5c585e)[_0x5eb3c9(0x1a8)](_0xe9e27f=>_0xe9e27f===_0x42b438))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x42b438)+'\x22.');if(_0x42b438===_0x5c585e[_0x5eb3c9(0x1d2)]&&this[_0x5eb3c9(0xf0)](_0x24ce34,_0x1fcefd),_0x42b438===_0x5c585e[_0x5eb3c9(0x18f)]&&(typeof(_0x1fcefd==null||(_0x299de3=_0x1fcefd[_0x5eb3c9(0x173)])==null||(_0x299de3=_0x299de3[_0x5eb3c9(0x1f3)])==null?void 0x0:_0x299de3[_0x5eb3c9(0xb4)])!='string'||typeof _0x1fcefd['field']['config'][_0x5eb3c9(0x168)]!=_0x5eb3c9(0xad)))throw Error(_0x5eb3c9(0x124));let _0x128157={..._0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x173)],'id':_0x2fbf07(0x6),'name':_0x24ce34,'type':_0x42b438,'config':(_0x1fcefd==null||(_0xca3180=_0x1fcefd[_0x5eb3c9(0x173)])==null?void 0x0:_0xca3180['config'])??{}};if(!this[_0x5eb3c9(0x106)][_0x5eb3c9(0x178)](_0x3de3f5['id'],{'unitId':this[_0x5eb3c9(0xf4)][_0x5eb3c9(0x207)](),'tableId':this['_tableId'],'field':_0x128157,'index':_0x1fcefd==null?void 0x0:_0x1fcefd[_0x5eb3c9(0x144)]}))throw Error(_0x5eb3c9(0x117)+_0x24ce34+'\x22');return this[_0x5eb3c9(0x113)][_0x5eb3c9(0x152)](B,this[_0x5eb3c9(0xf4)],this,_0x128157['id']);}[_0x16c455(0xf0)](_0x1babe5,_0x241c7f){const _0x478345=_0x16c455;var _0x1cb15b;if(!_0x241c7f||!('externalReferences'in _0x241c7f)||!Array[_0x478345(0xea)](_0x241c7f[_0x478345(0x130)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x4a4f21=this[_0x478345(0x106)][_0x478345(0x178)](_0x5cd29d['id'],{'unitId':this[_0x478345(0xf4)]['getId'](),'tableId':this[_0x478345(0xc0)],'formula':String(((_0x1cb15b=_0x241c7f[_0x478345(0x173)])==null||(_0x1cb15b=_0x1cb15b[_0x478345(0x1f3)])==null?void 0x0:_0x1cb15b['formula'])??'')});if(!_0x4a4f21[_0x478345(0x139)])throw Error(_0x4a4f21[_0x478345(0xd9)]??'Invalid\x20Base\x20formula.');if(_0x241c7f[_0x478345(0x130)]['length']>0x0&&!this[_0x478345(0x106)][_0x478345(0x178)](_0x3fc287['id'],{'unitId':this['_base'][_0x478345(0x207)](),'references':_0x241c7f['externalReferences']}))throw Error(_0x478345(0x188)+_0x1babe5+'\x22');}[_0x16c455(0xf8)](){const _0xa67bf1=_0x16c455;return this[_0xa67bf1(0x127)]()[_0xa67bf1(0x176)](_0xb32a17=>this[_0xa67bf1(0x113)][_0xa67bf1(0x152)](Y,this['_base'],this,_0xb32a17,this[_0xa67bf1(0x113)]));}[_0x16c455(0xb6)](_0x50201d){const _0x5bbe37=_0x16c455;return this[_0x5bbe37(0x1b4)]()[_0x5bbe37(0x111)][_0x50201d]?this['_injector'][_0x5bbe37(0x152)](Y,this[_0x5bbe37(0xf4)],this,_0x50201d,this[_0x5bbe37(0x113)]):null;}[_0x16c455(0x11b)](_0x2d5226={}){const _0x4a4c6a=_0x16c455;let _0x28806d=this[_0x4a4c6a(0x1b4)](),_0x428f7a=this[_0x4a4c6a(0x127)](_0x2d5226),_0x4922e5=Math['max'](0x0,_0x2d5226[_0x4a4c6a(0x190)]??0x0),_0x4c0e84=_0x2d5226[_0x4a4c6a(0x1a2)]==null?null:Math[_0x4a4c6a(0x1b3)](0x0,_0x2d5226[_0x4a4c6a(0x1a2)]),_0x56545b=yt(_0x428f7a['map'](_0x1da5c7=>_0x28806d[_0x4a4c6a(0x111)][_0x1da5c7])[_0x4a4c6a(0x159)](_0x584e59=>xt(_0x584e59,_0x28806d,_0x2d5226[_0x4a4c6a(0x159)])),_0x28806d,_0x2d5226[_0x4a4c6a(0x1f2)]);return{'records':vt(_0x56545b,_0x2d5226)[_0x4a4c6a(0x176)](_0x80cef2=>this[_0x4a4c6a(0x113)][_0x4a4c6a(0x152)](Y,this[_0x4a4c6a(0xf4)],this,_0x80cef2['id'],this[_0x4a4c6a(0x113)])),'total':_0x56545b[_0x4a4c6a(0x166)],'offset':_0x4922e5,'limit':_0x4c0e84,'hasMore':_0x4c0e84!=null&&_0x4922e5+_0x4c0e84<_0x56545b[_0x4a4c6a(0x166)]};}[_0x16c455(0x187)](_0x3b46a2,_0x4aafa1='id',_0x438aea){const _0x540359=_0x16c455;let _0x51c9b6=this[_0x540359(0x1b4)](),_0x405a79=Date['now'](),_0x13363f={..._0x438aea,'id':_0x2fbf07(0x6),'values':H(_0x51c9b6,_0x3b46a2,_0x4aafa1),'orderKey':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0xb0)])||''+_0x405a79,'createdAt':(_0x438aea==null?void 0x0:_0x438aea[_0x540359(0x100)])||_0x405a79,'updatedAt':(_0x438aea==null?void 0x0:_0x438aea['updatedAt'])||_0x405a79};if(!this[_0x540359(0x106)][_0x540359(0x178)](_0x3392fe['id'],{'unitId':this[_0x540359(0xf4)][_0x540359(0x207)](),'tableId':this[_0x540359(0xc0)],'record':_0x13363f,'source':_0x55bebd[_0x540359(0x1ae)]}))throw Error(_0x540359(0x19a)+_0x13363f['id']+'\x22');return this[_0x540359(0x113)]['createInstance'](Y,this[_0x540359(0xf4)],this,_0x13363f['id'],this['_injector']);}[_0x16c455(0x1c5)](_0x3a61c9){const _0x14383e=_0x16c455;if(!_0x3a61c9[_0x14383e(0x166)])return[];let _0x11b9d1=this['_getTable'](),_0x4b8142=Date['now'](),_0x38d8fa=_0x3a61c9[_0x14383e(0x176)]((_0x337bf3,_0x26a816)=>{const _0x291092=_0x14383e;var _0x2edd61,_0x5221c6,_0x105db6;return{..._0x337bf3[_0x291092(0x10f)],'id':_0x2fbf07(0x6),'values':H(_0x11b9d1,_0x337bf3[_0x291092(0x1da)],_0x337bf3[_0x291092(0xa7)]??'id'),'orderKey':((_0x2edd61=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x2edd61[_0x291092(0xb0)])||''+(_0x4b8142+_0x26a816),'createdAt':((_0x5221c6=_0x337bf3['record'])==null?void 0x0:_0x5221c6[_0x291092(0x100)])||_0x4b8142,'updatedAt':((_0x105db6=_0x337bf3[_0x291092(0x10f)])==null?void 0x0:_0x105db6[_0x291092(0x1df)])||_0x4b8142};});if(!this[_0x14383e(0x106)][_0x14383e(0x178)](_0x3ad558['id'],{'unitId':this[_0x14383e(0xf4)][_0x14383e(0x207)](),'tableId':this[_0x14383e(0xc0)],'records':_0x38d8fa,'source':_0x55bebd[_0x14383e(0x1ae)]}))throw Error(_0x14383e(0xac));return _0x38d8fa[_0x14383e(0x176)](_0x8a93d2=>this[_0x14383e(0x113)][_0x14383e(0x152)](Y,this[_0x14383e(0xf4)],this,_0x8a93d2['id'],this[_0x14383e(0x113)]));}[_0x16c455(0xe8)](_0x5e34c2){const _0x55f1d8=_0x16c455;return!_0x5e34c2[_0x55f1d8(0x166)]||this['_commandService'][_0x55f1d8(0x178)](_0x4d8eab['id'],{'unitId':this[_0x55f1d8(0xf4)][_0x55f1d8(0x207)](),'tableId':this['_tableId'],'recordIds':_0x5e34c2,'source':_0x55bebd['Facade']});}[_0x16c455(0x15f)](_0x1a89a8,_0x414dfd,_0x362dd5=0x1,_0x5c176c=0x1){const _0x5e257c=_0x16c455;return this[_0x5e257c(0x113)][_0x5e257c(0x152)](K,this[_0x5e257c(0xf4)],this,{'startRow':_0x1a89a8,'endRow':_0x1a89a8+_0x362dd5-0x1,'startColumn':_0x414dfd,'endColumn':_0x414dfd+_0x5c176c-0x1},this[_0x5e257c(0x113)]);}[_0x16c455(0x1aa)](){const _0x3eb6dc=_0x16c455;var _0x51e194;let _0x91df51=_0x5d9764(this[_0x3eb6dc(0x1b4)]()),_0x505e78=((_0x51e194=_0x91df51[_0x3eb6dc(0xdf)])==null?void 0x0:_0x51e194[_0x3eb6dc(0x166)])??0x0,_0x3cae12=_0x91df51[_0x3eb6dc(0xf6)][_0x3eb6dc(0x159)](_0x2767c4=>V(_0x91df51[_0x3eb6dc(0x155)][_0x2767c4]))['length'];return this['getRange'](0x0,0x0,Math[_0x3eb6dc(0x1b3)](_0x505e78,0x1),Math[_0x3eb6dc(0x1b3)](_0x3cae12,0x1));}[_0x16c455(0x15d)](){const _0x4ba476=_0x16c455;let _0x4eae63=this[_0x4ba476(0x1b4)]();return _0x4eae63[_0x4ba476(0x177)][_0x4ba476(0x159)](_0x31a4de=>_0x4eae63[_0x4ba476(0x162)][_0x31a4de])[_0x4ba476(0x176)](_0x51431d=>this['_injector'][_0x4ba476(0x152)](X,this[_0x4ba476(0xf4)],this,_0x51431d,this[_0x4ba476(0x113)]));}[_0x16c455(0x203)](_0x4a2c0e){const _0x569075=_0x16c455;return this[_0x569075(0x1b4)]()['views'][_0x4a2c0e]?this[_0x569075(0x113)][_0x569075(0x152)](X,this[_0x569075(0xf4)],this,_0x4a2c0e,this[_0x569075(0x113)]):null;}[_0x16c455(0xd8)](_0x89dac3){const _0x1c6e30=_0x16c455;let _0x1f428e=this['_getTable'](),_0x33b810=Object['values'](_0x1f428e[_0x1c6e30(0x162)])[_0x1c6e30(0xb5)](_0x1f26e7=>_0x1f26e7[_0x1c6e30(0x103)]===_0x89dac3);return _0x33b810?this[_0x1c6e30(0x113)][_0x1c6e30(0x152)](X,this[_0x1c6e30(0xf4)],this,_0x33b810['id'],this[_0x1c6e30(0x113)]):null;}[_0x16c455(0xd1)](_0x3bcbf9,_0x10f229,_0xcfd2a0){const _0x14483a=_0x16c455;var _0x3fae1a,_0x35c93c,_0x207b7e,_0x1f38b2;let _0x367f8f=this[_0x14483a(0x1b4)](),_0x15da68=(_0xcfd2a0==null||(_0x3fae1a=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x3fae1a[_0x14483a(0xf6)])??_0x367f8f[_0x14483a(0xf6)],_0x2c0bc9=[_0x45a674,..._0x15da68[_0x14483a(0x159)](_0x228c02=>V(_0x367f8f[_0x14483a(0x155)][_0x228c02]))],_0x3dd9bc={..._0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x1bf)],'id':_0x2fbf07(0x6),'name':_0x3bcbf9,'type':_0x10f229,'tableId':this[_0x14483a(0xc0)],'config':(_0xcfd2a0==null||(_0x35c93c=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x35c93c[_0x14483a(0x1f3)])??{},'fieldOrder':_0x2c0bc9,'fieldSettings':{..._0xcfd2a0==null||(_0x207b7e=_0xcfd2a0[_0x14483a(0x1bf)])==null?void 0x0:_0x207b7e[_0x14483a(0x1de)],[_0x45a674]:{..._0xcfd2a0==null||(_0x1f38b2=_0xcfd2a0['view'])==null||(_0x1f38b2=_0x1f38b2[_0x14483a(0x1de)])==null?void 0x0:_0x1f38b2[_0x45a674],'hidden':!0x0}}};if(!this[_0x14483a(0x106)][_0x14483a(0x178)](_0x4a240d['id'],{'unitId':this[_0x14483a(0xf4)][_0x14483a(0x207)](),'tableId':this[_0x14483a(0xc0)],'view':_0x3dd9bc,'index':_0xcfd2a0==null?void 0x0:_0xcfd2a0[_0x14483a(0x144)]}))throw Error(_0x14483a(0x186)+_0x3bcbf9+'\x22');return this[_0x14483a(0x113)][_0x14483a(0x152)](X,this['_base'],this,_0x3dd9bc['id'],this[_0x14483a(0x113)]);}['getSchema'](){const _0x1a7d60=_0x16c455;let _0x4b10aa=this['_getTable'](),_0x1eeaca=_0x4b10aa[_0x1a7d60(0xf6)][_0x1a7d60(0x159)](_0x2e5f25=>V(_0x4b10aa['fields'][_0x2e5f25])),_0x2e2d3d=_0x4b10aa[_0x1a7d60(0x177)]['filter'](_0x36cd44=>_0x4b10aa[_0x1a7d60(0x162)][_0x36cd44]);return{'id':_0x4b10aa['id'],'name':_0x4b10aa[_0x1a7d60(0x103)],'formulaName':this[_0x1a7d60(0x15c)](),'primaryFieldId':_0x4b10aa[_0x1a7d60(0x185)],'fieldIds':_0x1eeaca,'viewIds':_0x2e2d3d,'recordCount':this[_0x1a7d60(0x127)]()[_0x1a7d60(0x166)],'fields':_0x1eeaca['map'](_0x1e199c=>{const _0x1d9a27=_0x1a7d60;let _0x554402=_0x4b10aa[_0x1d9a27(0x155)][_0x1e199c];return{'id':_0x554402['id'],'name':_0x554402[_0x1d9a27(0x103)],'type':_0x554402[_0x1d9a27(0x14d)],'config':_0x554402[_0x1d9a27(0x1f3)],'readonly':_0x554402['readonly'],'description':_0x554402[_0x1d9a27(0x121)]};}),'views':_0x2e2d3d['map'](_0x199893=>{const _0x47cc21=_0x1a7d60;let _0x4dc2db=_0x4b10aa[_0x47cc21(0x162)][_0x199893];return{'id':_0x4dc2db['id'],'name':_0x4dc2db['name'],'type':_0x4dc2db['type']};})};}[_0x16c455(0x1b4)](){const _0x3a9a4e=_0x16c455;let _0x4a02ca=this[_0x3a9a4e(0xf4)][_0x3a9a4e(0xaa)]()[_0x3a9a4e(0x15a)]()[_0x3a9a4e(0x148)][this[_0x3a9a4e(0xc0)]];if(!_0x4a02ca)throw Error(_0x3a9a4e(0xed)+this[_0x3a9a4e(0xc0)]+_0x3a9a4e(0x1f6));return _0x4a02ca;}[_0x16c455(0x127)](_0x5d196f={}){const _0x6db704=_0x16c455;let _0x4b06be=this[_0x6db704(0xf4)][_0x6db704(0xaa)]()[_0x6db704(0x15a)](),_0x4578bb=this[_0x6db704(0x1b4)]();if(_0x5d196f[_0x6db704(0x11c)]){let _0x2da279=this['_projectionService'][_0x6db704(0xef)](_0x4b06be,this['_tableId'],_0x5d196f[_0x6db704(0x11c)]);if('rows'in _0x2da279&&Array[_0x6db704(0xea)](_0x2da279['rows']))return _0x2da279[_0x6db704(0x137)][_0x6db704(0x176)](_0x49582f=>_0x49582f[_0x6db704(0xa8)]);}return(_0x4578bb[_0x6db704(0xdf)]?_0x4578bb[_0x6db704(0xdf)]['map'](_0x187456=>_0x4578bb[_0x6db704(0x111)][_0x187456]):Object['values'](_0x4578bb[_0x6db704(0x111)])[_0x6db704(0x1f2)]((_0x3493b6,_0x310ddb)=>_0x3493b6[_0x6db704(0xb0)][_0x6db704(0x14c)](_0x310ddb[_0x6db704(0xb0)])))[_0x6db704(0x159)](_0x300223=>_0x300223)['map'](_0x5c1b84=>_0x5c1b84['id']);}};Z=z([R(0x3,_0x18d666),R(0x4,_0x5e35b8),R(0x5,_0x499ad2)],Z);function vt(_0x54f84b,_0x4b2a36){const _0x62559e=_0x16c455;let _0x2414eb=Math[_0x62559e(0x1b3)](0x0,_0x4b2a36[_0x62559e(0x190)]??0x0);return _0x4b2a36['limit']==null?_0x54f84b['slice'](_0x2414eb):_0x54f84b[_0x62559e(0xfe)](_0x2414eb,_0x2414eb+Math['max'](0x0,_0x4b2a36[_0x62559e(0x1a2)]));}function yt(_0x1109b4,_0x47e426,_0x5c9f4d=[]){return _0x5c9f4d['length']?[..._0x1109b4]['sort']((_0x177546,_0x4c2923)=>{const _0x1e6b40=_0x459a;for(let _0x38a012 of _0x5c9f4d){var _0x361dee;let _0x3d8981=_0x38a012[_0x1e6b40(0x189)]===_0x1fbd79[_0x1e6b40(0xb1)]?-0x1:0x1,_0x5847af=bt(_0x177546[_0x1e6b40(0x1da)][_0x38a012['fieldId']],_0x4c2923[_0x1e6b40(0x1da)][_0x38a012[_0x1e6b40(0x206)]],(_0x361dee=_0x47e426['fields'][_0x38a012[_0x1e6b40(0x206)]])==null?void 0x0:_0x361dee[_0x1e6b40(0x14d)]);if(_0x5847af!==0x0)return _0x5847af*_0x3d8981;}return String(_0x177546[_0x1e6b40(0xb0)]??_0x177546['id'])['localeCompare'](String(_0x4c2923[_0x1e6b40(0xb0)]??_0x4c2923['id']));}):_0x1109b4;}function bt(_0x5a68cc,_0x178dbe,_0x31a9f8){const _0x18c044=_0x16c455;return _0x5a68cc==null&&_0x178dbe==null?0x0:_0x5a68cc==null?-0x1:_0x178dbe==null?0x1:typeof _0x5a68cc==_0x18c044(0xd3)&&typeof _0x178dbe==_0x18c044(0xd3)?_0x5a68cc-_0x178dbe:_0x31a9f8===_0x5c585e[_0x18c044(0x142)]?Number(_0x5a68cc)-Number(_0x178dbe):String(_0x5a68cc)[_0x18c044(0x14c)](String(_0x178dbe));}function xt(_0x5506fc,_0x2a069b,_0x4a2d96){const _0x414ce4=_0x16c455;var _0x37c178;if(!_0x4a2d96||!((_0x37c178=_0x4a2d96['conditions'])!=null&&_0x37c178['length']))return!0x0;let {conjunction:_0x3c6d79=_0xf11f7f['OR'],conditions:_0x12c877}=_0x4a2d96;return _0x3c6d79===_0xf11f7f['AND']&&_0x12c877[_0x414ce4(0x166)]>0x1?_0x12c877[_0x414ce4(0x17a)](_0x48acb0=>St(_0x5506fc,_0x2a069b,_0x48acb0)):_0x12c877[_0x414ce4(0x1a8)](_0x87fb17=>St(_0x5506fc,_0x2a069b,_0x87fb17));}function St(_0x556020,_0x2f858c,_0x1d0d7a){const _0xb633ec=_0x16c455;let _0x3db4be=_0x556020['values'][_0x1d0d7a[_0xb633ec(0x206)]],_0x1f0563=_0x2f858c['fields'][_0x1d0d7a[_0xb633ec(0x206)]];if(Ct(_0x1d0d7a)){let _0x5242c8=wt(_0x1d0d7a)['test'](String(_0x3db4be??''));return _0x1d0d7a[_0xb633ec(0x10c)]==='matches'?_0x5242c8:!_0x5242c8;}return!_0x1f0563||_0x1c8da0(_0x3db4be,_0x1d0d7a[_0xb633ec(0x10c)],_0x1d0d7a['value'],_0x1f0563);}function Ct(_0xfcd20e){const _0xdef729=_0x16c455;return _0xfcd20e[_0xdef729(0x10c)]===_0xdef729(0xa9)||_0xfcd20e['operator']===_0xdef729(0x1b6);}function wt(_0x3c8cd7){const _0x41efad=_0x16c455;let _0x440705=String(_0x3c8cd7['value']??'');if(_0x440705[_0x41efad(0x166)]>0x200)throw Error(_0x41efad(0x1ad));try{return new RegExp(_0x440705,_0x3c8cd7['caseSensitive']?void 0x0:'i');}catch(_0x3288fa){throw Error(_0x41efad(0xa3)+_0x440705+'.\x20'+(_0x3288fa instanceof Error?_0x3288fa[_0x41efad(0x200)]:String(_0x3288fa)));}}function Tt(_0xe96adb,_0x48eb71,_0x1d62b5){const _0xf01a3c=_0x16c455;if(_0x1d62b5[_0xf01a3c(0x14d)]!=='invalid'&&_0x1d62b5[_0xf01a3c(0x14d)]!==_0xf01a3c(0x18a)){var _0x18c1e2;if(_0x1d62b5[_0xf01a3c(0x14d)]===_0x1eb8c0[_0xf01a3c(0x1db)]){var _0x4e5b53;let _0x38fb76=[((_0x4e5b53=_0x1d62b5[_0xf01a3c(0x155)])==null||(_0x4e5b53=_0x4e5b53[0x0])==null?void 0x0:_0x4e5b53['id'])??_0xe96adb[_0xf01a3c(0x185)],..._0x1d62b5[_0xf01a3c(0xd6)]??[]];return Array['from'](new Set(_0x38fb76['filter'](_0x489728=>!!_0xe96adb[_0xf01a3c(0x155)][_0x489728])));}if((_0x18c1e2=_0x1d62b5[_0xf01a3c(0x155)])!=null&&_0x18c1e2[_0xf01a3c(0x166)])return _0x1d62b5['fields'][_0xf01a3c(0x176)](_0x2b05cc=>_0x2b05cc['id'])[_0xf01a3c(0x159)](_0x4455b8=>{const _0xca399b=_0xf01a3c;var _0x44c602;return!(!_0xe96adb[_0xca399b(0x155)][_0x4455b8]||_0x48eb71!=null&&(_0x44c602=_0x48eb71[_0xca399b(0x1de)])!=null&&(_0x44c602=_0x44c602[_0x4455b8])!=null&&_0x44c602['hidden']);});}return _0xe96adb[_0xf01a3c(0xf6)][_0xf01a3c(0x159)](_0x5abcd3=>{const _0x30d26e=_0xf01a3c;var _0x3e9be1;return!(!_0xe96adb[_0x30d26e(0x155)][_0x5abcd3]||_0x48eb71!=null&&(_0x3e9be1=_0x48eb71[_0x30d26e(0x1de)])!=null&&(_0x3e9be1=_0x3e9be1[_0x5abcd3])!=null&&_0x3e9be1[_0x30d26e(0x1ce)]);});}let Q=class extends _0x287fc3[_0x16c455(0x202)]{constructor(_0x22eceb,_0x398b77,_0xbde0b9,_0x1743ae,_0x480d89){const _0x3969a1=_0x16c455;super(),this[_0x3969a1(0xf4)]=_0x22eceb,this[_0x3969a1(0x113)]=_0x398b77,this[_0x3969a1(0x16e)]=_0xbde0b9,this['_commandService']=_0x1743ae,this[_0x3969a1(0x1a4)]=_0x480d89;}['getBase'](){const _0x529cd3=_0x16c455;return this[_0x529cd3(0xf4)];}[_0x16c455(0x207)](){const _0x3c201c=_0x16c455;return this['_base'][_0x3c201c(0x109)]();}['getPermission'](){const _0x2624db=_0x16c455;return new at(this[_0x2624db(0x207)](),this[_0x2624db(0x106)],this['_permissionService']);}[_0x16c455(0xc4)](){const _0x5d51ae=_0x16c455;return this[_0x5d51ae(0x16e)][_0x5d51ae(0x1b0)](this[_0x5d51ae(0x207)]())??_0x49e7b0['deepClone'](this[_0x5d51ae(0xf4)][_0x5d51ae(0x15a)]());}[_0x16c455(0x180)](){const _0x3b6b8a=_0x16c455;return this[_0x3b6b8a(0xf4)][_0x3b6b8a(0x15a)]()[_0x3b6b8a(0x103)];}[_0x16c455(0xf1)](_0xd36e28){const _0x1d6bff=_0x16c455;this['_commandService'][_0x1d6bff(0x178)](_0x841eca['id'],{'unitId':this['getId'](),'name':_0xd36e28});}[_0x16c455(0xc3)](){const _0x4d55d6=_0x16c455;let _0x23fc8b=this['_base']['getSnapshot']();return _0x23fc8b[_0x4d55d6(0xca)][_0x4d55d6(0x176)](_0x20a963=>_0x23fc8b[_0x4d55d6(0x148)][_0x20a963])[_0x4d55d6(0x159)](_0x1f523c=>_0x1f523c)[_0x4d55d6(0x176)](_0x4bf6a5=>this[_0x4d55d6(0x113)][_0x4d55d6(0x152)](Z,this,_0x4bf6a5['id'],this['_injector']));}[_0x16c455(0x15e)](_0x222c5e){const _0x23552e=_0x16c455;let _0x2fbffd=this['_base'][_0x23552e(0x15a)]()[_0x23552e(0x148)][_0x222c5e];return _0x2fbffd?this[_0x23552e(0x113)][_0x23552e(0x152)](Z,this,_0x2fbffd['id'],this[_0x23552e(0x113)]):null;}[_0x16c455(0x1fd)](_0x5b0f31){const _0x5c7fdf=_0x16c455;let _0x44bf13=this['_base'][_0x5c7fdf(0x15a)](),_0x4ffd5d=Object[_0x5c7fdf(0x1da)](_0x44bf13[_0x5c7fdf(0x148)])['find'](_0x14ab3f=>_0x14ab3f[_0x5c7fdf(0x103)]===_0x5b0f31);return _0x4ffd5d?this[_0x5c7fdf(0x113)][_0x5c7fdf(0x152)](Z,this,_0x4ffd5d['id'],this['_injector']):null;}[_0x16c455(0x135)](_0xc54d79,_0x4e8dc2){const _0x296cc1=_0x16c455;let _0x4ef377=_0x440368({'id':_0x2fbf07(),'name':_0xc54d79,..._0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)],'primaryFieldName':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1dd)]}),_0x2fc284=_0x49e7b0[_0x296cc1(0xc1)](_0x4ef377,(_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x1e6)])??{}),_0x11de6a=_0x2628b6(this[_0x296cc1(0xf4)][_0x296cc1(0x15a)](),_0x2fc284[_0x296cc1(0x103)]);if(!_0x11de6a[_0x296cc1(0x139)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2fc284['name']+_0x296cc1(0x1f5)+_0x229298+'\x20'+_0x11de6a[_0x296cc1(0xd9)]);if(!this[_0x296cc1(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this['_base'][_0x296cc1(0x109)](),'table':_0x2fc284,'index':_0x4e8dc2==null?void 0x0:_0x4e8dc2[_0x296cc1(0x144)]}))throw Error(_0x296cc1(0x17d)+_0xc54d79+'\x22.');return this[_0x296cc1(0x113)]['createInstance'](Z,this,_0x2fc284['id'],this['_injector']);}[_0x16c455(0x1c1)](_0x5878da){const _0x1236aa=_0x16c455;let _0x19561f=typeof _0x5878da==_0x1236aa(0x1d6)?_0x5878da:_0x5878da['getId']();if(!this['_commandService'][_0x1236aa(0x178)](_0x971b27['id'],{'unitId':this[_0x1236aa(0xf4)][_0x1236aa(0x109)](),'tableId':_0x19561f}))throw Error(_0x1236aa(0x1e3)+_0x19561f+'\x22.');return!0x0;}[_0x16c455(0x13e)](_0x5d5e24,_0x2e34a5){const _0x7586c9=_0x16c455;let _0x4434e3=this[_0x7586c9(0xf4)][_0x7586c9(0x15a)](),_0x473a2f=typeof _0x5d5e24==_0x7586c9(0x1d6)?_0x5d5e24:_0x5d5e24[_0x7586c9(0x207)](),_0xbfeece=_0x4434e3[_0x7586c9(0x148)][_0x473a2f];if(!_0xbfeece)throw Error(_0x7586c9(0x1b5)+_0x473a2f+_0x7586c9(0x1f6));let _0x1d685e=_0x4434e3[_0x7586c9(0xca)][_0x7586c9(0x107)](_0x473a2f)+0x1,_0x2646f6=_0x2fbf07(),_0xf618e7=_0x35aced(_0xbfeece,{'id':_0x2646f6,'name':_0x9242a1(_0x4434e3,_0xbfeece[_0x7586c9(0x103)]+_0x7586c9(0x182)),'includeRecords':(_0x2e34a5==null?void 0x0:_0x2e34a5['includeRecords'])??!0x1,'regenerateViewIds':(_0x2e34a5==null?void 0x0:_0x2e34a5[_0x7586c9(0xb2)])??!0x1});if(!this[_0x7586c9(0x106)]['syncExecuteCommand'](_0x5c901d['id'],{'unitId':this[_0x7586c9(0xf4)]['getUnitId'](),'table':_0xf618e7,'index':_0x1d685e}))throw Error(_0x7586c9(0x204)+_0x473a2f+'\x22.');return this[_0x7586c9(0x113)][_0x7586c9(0x152)](Z,this,_0xf618e7['id'],this[_0x7586c9(0x113)]);}[_0x16c455(0xf9)](){const _0x50a277=_0x16c455;let _0x372646=this[_0x50a277(0xf4)]['getSnapshot']();return{'id':_0x372646['id'],'name':_0x372646[_0x50a277(0x103)],'tables':this['getTables']()[_0x50a277(0x176)](_0x3d1289=>_0x3d1289[_0x50a277(0xf9)]())};}};Q=z([R(0x1,_0x210e70(_0x291a51)),R(0x2,_0x4e24c1),R(0x3,_0x18d666),R(0x4,_0x5e35b8)],Q);var Et=class extends _0x292e04{['_initialize'](){const _0x2d7486=_0x16c455;this[_0x2d7486(0x1f9)](),this[_0x2d7486(0xfc)]();}[_0x16c455(0x14a)](_0x381232={},_0x1d123f){const _0x4814ac=_0x16c455;let _0x19f500=this['_univerInstanceService'][_0x4814ac(0x193)](_0x251beb[_0x4814ac(0xe1)],_0x381232,_0x1d123f);return this[_0x4814ac(0x113)][_0x4814ac(0x152)](Q,_0x19f500);}[_0x16c455(0x12e)](){const _0x29659b=_0x16c455;let _0x2f79f5=this[_0x29659b(0xd5)][_0x29659b(0x18d)](_0x251beb[_0x29659b(0xe1)]);return _0x2f79f5?this[_0x29659b(0x113)][_0x29659b(0x152)](Q,_0x2f79f5):null;}['getBase'](_0x7296fd){const _0x26fc7e=_0x16c455;let _0x3f4623=this[_0x26fc7e(0xd5)]['getUnit'](_0x7296fd,_0x251beb[_0x26fc7e(0xe1)]);return _0x3f4623?this[_0x26fc7e(0x113)][_0x26fc7e(0x152)](Q,_0x3f4623):null;}['getBases'](){const _0x1ee196=_0x16c455;return this['_univerInstanceService'][_0x1ee196(0x1b1)](_0x251beb[_0x1ee196(0xe1)])[_0x1ee196(0x176)](_0x144a7a=>this[_0x1ee196(0x113)][_0x1ee196(0x152)](Q,_0x144a7a));}[_0x16c455(0xfc)](){const _0x13dd80=_0x16c455;this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseHierarchyChanged'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)]((_0x34289d,_0x3be2a9)=>{const _0x57c24b=_0x13dd80;var _0x4f77f6;if(!$(_0x34289d,_0x2ad321))return;let _0x2e1d5b=_0x34289d[_0x57c24b(0xdd)];if(!((_0x4f77f6=_0x2e1d5b['hierarchyChanges'])!=null&&_0x4f77f6[_0x57c24b(0x166)]))return;let _0x5a9d84=this[_0x57c24b(0xaa)](_0x2e1d5b[_0x57c24b(0x183)]),_0x2657cb=_0x5a9d84==null?void 0x0:_0x5a9d84[_0x57c24b(0x15e)](_0x2e1d5b['hierarchyChanges'][0x0][_0x57c24b(0x164)]);if(!_0x5a9d84||!_0x2657cb)return;let _0x39c841={'base':_0x5a9d84,'table':_0x2657cb,'changes':_0x2e1d5b[_0x57c24b(0x105)],'source':_0x3be2a9!=null&&_0x3be2a9[_0x57c24b(0xc8)]?_0x55bebd[_0x57c24b(0x1ee)]:_0x2e1d5b['source']??_0x55bebd['UI']};this[_0x57c24b(0xe3)](this[_0x57c24b(0x112)][_0x57c24b(0x18b)],_0x39c841);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0xfa)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x2182a4=>{const _0x46df6e=_0x13dd80;if(_0x2182a4['id']!==_0x5c901d['id'])return;let {unitId:_0x4cd35d,table:_0x4dd934,index:_0x44fbf6}=_0x2182a4['params'],_0x3db65d=this['getBase'](_0x4cd35d);if(!_0x3db65d)return;let _0x4ba1c8={'base':_0x3db65d,'table':_0x4dd934,'index':_0x44fbf6};this[_0x46df6e(0xe3)](this[_0x46df6e(0x112)][_0x46df6e(0xfa)],_0x4ba1c8);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this['Event']['BaseTableFieldCreated'],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x38fac1=>{const _0x2140fe=_0x13dd80;if(_0x38fac1['id']!==_0x3de3f5['id'])return;let {unitId:_0x447011,tableId:_0x27519e,field:_0x5becc5,index:_0x526854,viewIndexes:_0x28d968}=_0x38fac1['params'],_0x243b91=this[_0x2140fe(0xaa)](_0x447011);if(!_0x243b91)return;let _0x1454c2=_0x243b91[_0x2140fe(0x15e)](_0x27519e);if(!_0x1454c2)return;let _0x4cac68={'base':_0x243b91,'table':_0x1454c2,'field':_0x5becc5,'index':_0x526854,'viewIndexes':_0x28d968};this[_0x2140fe(0xe3)](this[_0x2140fe(0x112)][_0x2140fe(0x1c9)],_0x4cac68);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x12c)],()=>this['_commandService'][_0x13dd80(0xa4)](_0x12e433=>{const _0xe094=_0x13dd80;if(_0x12e433['id']!==_0x3392fe['id']&&_0x12e433['id']!==_0x3ad558['id'])return;let _0xf19533=_0x12e433['params'],{unitId:_0x3380f6,tableId:_0x1b9516}=_0xf19533,_0x261cb3=_0xf19533[_0xe094(0x111)]??[_0xf19533['record']],_0xba8729=this[_0xe094(0xaa)](_0x3380f6);if(!_0xba8729)return;let _0x2511c9=_0xba8729[_0xe094(0x15e)](_0x1b9516);if(!_0x2511c9)return;let _0x2eb0d3={'base':_0xba8729,'table':_0x2511c9,'records':_0x261cb3};this[_0xe094(0xe3)](this['Event'][_0xe094(0x12c)],_0x2eb0d3);}))),this[_0x13dd80(0x160)](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)][_0x13dd80(0x114)],()=>this[_0x13dd80(0x106)][_0x13dd80(0xa4)](_0x174cbc=>{const _0x394339=_0x13dd80;if(_0x174cbc['id']!==_0x4a240d['id'])return;let {unitId:_0x3aa0d6,tableId:_0x4bd35e,view:_0x1d2fcf,index:_0x29d62c}=_0x174cbc[_0x394339(0xdd)],_0x50cc60=this['getBase'](_0x3aa0d6);if(!_0x50cc60)return;let _0x3c8286=_0x50cc60[_0x394339(0x15e)](_0x4bd35e);if(!_0x3c8286)return;let _0x5360ce={'base':_0x50cc60,'table':_0x3c8286,'view':_0x1d2fcf,'index':_0x29d62c};this[_0x394339(0xe3)](this[_0x394339(0x112)][_0x394339(0x114)],_0x5360ce);}))),this['disposeWithMe'](this[_0x13dd80(0x1b9)](this[_0x13dd80(0x112)]['BaseTableCellValueChanged'],()=>this['_commandService']['onCommandExecuted'](_0x229c77=>{const _0xf0c1a2=_0x13dd80;if(_0x229c77['id']!==_0x56896a['id'])return;let {unitId:_0x3011e0,tableId:_0x285105,recordId:_0x46e609,fieldId:_0x5a73a2,value:_0x4ef8f3}=_0x229c77[_0xf0c1a2(0xdd)],_0x186e38=this[_0xf0c1a2(0xaa)](_0x3011e0);if(!_0x186e38)return;let _0x2c83fc=_0x186e38[_0xf0c1a2(0x15e)](_0x285105);if(!_0x2c83fc)return;let _0x52fd74=_0x2c83fc[_0xf0c1a2(0x181)](_0x5a73a2);if(!_0x52fd74)return;let _0x9045c7=_0x2c83fc[_0xf0c1a2(0xb6)](_0x46e609);if(!_0x9045c7)return;let _0x1e983d={'base':_0x186e38,'table':_0x2c83fc,'field':_0x52fd74,'record':_0x9045c7,'value':_0x4ef8f3};this['fireEvent'](this['Event'][_0xf0c1a2(0x1d8)],_0x1e983d);})));}[_0x16c455(0x1f9)](){const _0x5ad95a=_0x16c455;this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x161)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3ba350=>{const _0x43bf2b=_0x5ad95a;if($(_0x3ba350,_0xe2fa79)){let {unitId:_0x284a17,tableId:_0x6dd0ce,patches:_0x203072,source:_0x262eeb=_0x55bebd['UI']}=_0x3ba350[_0x43bf2b(0xdd)],_0x536e13=this[_0x43bf2b(0x1d7)](_0x284a17,_0x6dd0ce);if(!_0x536e13)return;this[_0x43bf2b(0x17b)](_0x536e13[_0x43bf2b(0xc2)],_0x536e13[_0x43bf2b(0x1e6)],_0x25cefd(_0x536e13[_0x43bf2b(0x1e6)]['getTable'](),_0x203072),_0x262eeb);return;}if($(_0x3ba350,_0x5ac327)){let {unitId:_0x482b74,tableId:_0x151cca,patches:_0x11fd8a,source:_0x360105=_0x55bebd['UI']}=_0x3ba350['params'],_0x5c4d5e=this[_0x43bf2b(0x1d7)](_0x482b74,_0x151cca);if(!_0x5c4d5e)return;let _0x186549=_0x5c4d5e[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]();this[_0x43bf2b(0x17b)](_0x5c4d5e[_0x43bf2b(0xc2)],_0x5c4d5e[_0x43bf2b(0x1e6)],_0x25cefd(_0x186549,_0x5f2520(_0x186549,_0x11fd8a)),_0x360105);return;}if($(_0x3ba350,_0x3392fe)){let _0x442afd=_0x3ba350['params'],_0x38eee0=this[_0x43bf2b(0x1d7)](_0x442afd[_0x43bf2b(0x183)],_0x442afd['tableId']);if(!_0x38eee0)return;this[_0x43bf2b(0x17b)](_0x38eee0[_0x43bf2b(0xc2)],_0x38eee0[_0x43bf2b(0x1e6)],_0x21de02(_0x38eee0[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),[_0x442afd[_0x43bf2b(0x10f)]]),_0x442afd['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x3ad558)){let _0x12a10c=_0x3ba350[_0x43bf2b(0xdd)],_0x35fd5d=this[_0x43bf2b(0x1d7)](_0x12a10c[_0x43bf2b(0x183)],_0x12a10c[_0x43bf2b(0x164)]);if(!_0x35fd5d)return;this[_0x43bf2b(0x17b)](_0x35fd5d[_0x43bf2b(0xc2)],_0x35fd5d[_0x43bf2b(0x1e6)],_0x21de02(_0x35fd5d[_0x43bf2b(0x1e6)]['getTable'](),_0x12a10c['records']),_0x12a10c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x12761d)){let _0x3b4732=_0x3ba350[_0x43bf2b(0xdd)],_0x3121cc=this[_0x43bf2b(0x1d7)](_0x3b4732[_0x43bf2b(0x183)],_0x3b4732[_0x43bf2b(0x164)]);if(!_0x3121cc)return;this['_fireBeforeHierarchyChange'](_0x3121cc[_0x43bf2b(0xc2)],_0x3121cc[_0x43bf2b(0x1e6)],_0x21de02(_0x3121cc['table'][_0x43bf2b(0x147)](),[_0x3b4732[_0x43bf2b(0x10f)]]),_0x3b4732['source']??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x1c837a)){let _0x185c71=_0x3ba350[_0x43bf2b(0xdd)],_0x32b190=this[_0x43bf2b(0x1d7)](_0x185c71[_0x43bf2b(0x183)],_0x185c71[_0x43bf2b(0x164)]);if(!_0x32b190)return;let _0x1bb568=_0x32b190[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)](),_0x234435=_0x185c71[_0x43bf2b(0x206)]??_0x4e6087(_0x1bb568),_0x4e3dea=_0x1a3563(_0x1bb568,_0x234435)['parentByRecordId'][_0x43bf2b(0x14f)](_0x185c71[_0x43bf2b(0xa8)])??null;this[_0x43bf2b(0x17b)](_0x32b190['base'],_0x32b190[_0x43bf2b(0x1e6)],[{'tableId':_0x185c71[_0x43bf2b(0x164)],'fieldId':_0x234435,'recordId':_0x185c71[_0x43bf2b(0xa8)],'oldParentRecordId':_0x4e3dea,'parentRecordId':_0x185c71[_0x43bf2b(0xd0)]}],_0x185c71[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2e5ba5)){let _0x11226e=_0x3ba350[_0x43bf2b(0xdd)],_0x296904=this[_0x43bf2b(0x1d7)](_0x11226e[_0x43bf2b(0x183)],_0x11226e[_0x43bf2b(0x164)]);if(!_0x296904)return;let _0xe9c929=_0x11226e[_0x43bf2b(0x206)]??_0x4e6087(_0x296904[_0x43bf2b(0x1e6)][_0x43bf2b(0x147)]());this[_0x43bf2b(0x17b)](_0x296904['base'],_0x296904['table'],[{'tableId':_0x11226e[_0x43bf2b(0x164)],'fieldId':_0xe9c929,'recordId':_0x11226e[_0x43bf2b(0x10f)]['id'],'oldParentRecordId':null,'parentRecordId':_0x11226e['parentRecordId']}],_0x11226e[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x2a07c2)){let _0x3b5c4c=_0x3ba350[_0x43bf2b(0xdd)],_0x57929a=this['_getHierarchyEventContext'](_0x3b5c4c['unitId'],_0x3b5c4c[_0x43bf2b(0x164)]);if(!_0x57929a)return;this['_fireBeforeHierarchyChange'](_0x57929a[_0x43bf2b(0xc2)],_0x57929a[_0x43bf2b(0x1e6)],_0xf2e815(_0x57929a['table'][_0x43bf2b(0x147)](),[_0x3b5c4c[_0x43bf2b(0xa8)]]),_0x3b5c4c[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if($(_0x3ba350,_0x4d8eab)){let _0x6617d5=_0x3ba350['params'],_0x3ab774=this[_0x43bf2b(0x1d7)](_0x6617d5['unitId'],_0x6617d5[_0x43bf2b(0x164)]);if(!_0x3ab774)return;this[_0x43bf2b(0x17b)](_0x3ab774['base'],_0x3ab774[_0x43bf2b(0x1e6)],_0xf2e815(_0x3ab774[_0x43bf2b(0x1e6)]['getTable'](),_0x6617d5[_0x43bf2b(0x1fb)]),_0x6617d5[_0x43bf2b(0x191)]??_0x55bebd['UI']);return;}if(!$(_0x3ba350,_0x56896a))return;let _0x57269e=_0x3ba350[_0x43bf2b(0xdd)],_0x5af5a4=this['_getHierarchyEventContext'](_0x57269e[_0x43bf2b(0x183)],_0x57269e[_0x43bf2b(0x164)]);if(!_0x5af5a4)return;let _0x24ccc5=_0x5af5a4['table'][_0x43bf2b(0x147)]();if(!_0x33c8d6(_0x24ccc5)['includes'](_0x57269e[_0x43bf2b(0x206)]))return;let _0x14ee33=_0x1a3563(_0x24ccc5,_0x57269e[_0x43bf2b(0x206)])[_0x43bf2b(0x13f)]['get'](_0x57269e[_0x43bf2b(0xa8)])??null,_0xd57aac=_0x335852(_0x57269e[_0x43bf2b(0xc6)])[0x0]??null;_0x14ee33!==_0xd57aac&&this[_0x43bf2b(0x17b)](_0x5af5a4[_0x43bf2b(0xc2)],_0x5af5a4[_0x43bf2b(0x1e6)],[{'tableId':_0x57269e[_0x43bf2b(0x164)],'fieldId':_0x57269e[_0x43bf2b(0x206)],'recordId':_0x57269e[_0x43bf2b(0xa8)],'oldParentRecordId':_0x14ee33,'parentRecordId':_0xd57aac}],_0x57269e[_0x43bf2b(0x191)]??_0x55bebd['UI']);}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x13b)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x2ae937=>{const _0x120a15=_0x5ad95a;if(_0x2ae937['id']!==_0x5c901d['id'])return;let {unitId:_0xa486b9,table:_0x29624e,index:_0x30b20c}=_0x2ae937['params'],_0x11e683=this[_0x120a15(0xaa)](_0xa486b9);if(!_0x11e683)return;let _0x5971a8={'base':_0x11e683,'table':_0x29624e,'index':_0x30b20c};if(this[_0x120a15(0xe3)](this[_0x120a15(0x112)]['BeforeBaseTableCreate'],_0x5971a8),_0x5971a8[_0x120a15(0x123)])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x110)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x1e68c6=>{const _0x595366=_0x5ad95a;if(_0x1e68c6['id']!==_0x3de3f5['id'])return;let {unitId:_0x4366f2,tableId:_0x230956,field:_0xb1a10a,index:_0x51981f,viewIndexes:_0x2043f0}=_0x1e68c6[_0x595366(0xdd)],_0x3d3c42=this['getBase'](_0x4366f2);if(!_0x3d3c42)return;let _0x1086d2=_0x3d3c42[_0x595366(0x15e)](_0x230956);if(!_0x1086d2)return;let _0x560296={'base':_0x3d3c42,'table':_0x1086d2,'field':_0xb1a10a,'index':_0x51981f,'viewIndexes':_0x2043f0};if(this[_0x595366(0xe3)](this[_0x595366(0x112)]['BeforeBaseTableFieldCreate'],_0x560296),_0x560296[_0x595366(0x123)])throw new _0x3a850a();}))),this['disposeWithMe'](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)]['BeforeBaseTableRecordCreate'],()=>this[_0x5ad95a(0x106)]['beforeCommandExecuted'](_0x4e841b=>{const _0x321e99=_0x5ad95a;if(_0x4e841b['id']!==_0x3392fe['id']&&_0x4e841b['id']!==_0x3ad558['id'])return;let _0x330637=_0x4e841b['params'],{unitId:_0x468703,tableId:_0x317710}=_0x330637,_0x58e3b8=_0x330637[_0x321e99(0x111)]??[_0x330637['record']],_0x251188=this['getBase'](_0x468703);if(!_0x251188)return;let _0x39c5c2=_0x251188[_0x321e99(0x15e)](_0x317710);if(!_0x39c5c2)return;let _0x119b05={'base':_0x251188,'table':_0x39c5c2,'records':_0x58e3b8};if(this[_0x321e99(0xe3)](this[_0x321e99(0x112)][_0x321e99(0x129)],_0x119b05),_0x119b05['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this['registerEventHandler'](this[_0x5ad95a(0x112)][_0x5ad95a(0x17e)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x3c1863=>{const _0x21f6a8=_0x5ad95a;if(_0x3c1863['id']!==_0x4a240d['id'])return;let {unitId:_0x254123,tableId:_0x36b74c,view:_0x3f7bb6,index:_0x2a6040}=_0x3c1863[_0x21f6a8(0xdd)],_0x7af6b2=this[_0x21f6a8(0xaa)](_0x254123);if(!_0x7af6b2)return;let _0x195282=_0x7af6b2[_0x21f6a8(0x15e)](_0x36b74c);if(!_0x195282)return;let _0x23c5eb={'base':_0x7af6b2,'table':_0x195282,'view':_0x3f7bb6,'index':_0x2a6040};if(this[_0x21f6a8(0xe3)](this[_0x21f6a8(0x112)]['BeforeBaseTableViewCreate'],_0x23c5eb),_0x23c5eb['cancel'])throw new _0x3a850a();}))),this[_0x5ad95a(0x160)](this[_0x5ad95a(0x1b9)](this[_0x5ad95a(0x112)][_0x5ad95a(0x13c)],()=>this[_0x5ad95a(0x106)][_0x5ad95a(0x1ba)](_0x307d26=>{const _0x1c664c=_0x5ad95a;if(_0x307d26['id']!==_0x56896a['id'])return;let {unitId:_0x5263e4,tableId:_0x1951d0,recordId:_0xf4622e,fieldId:_0x1c7abc,value:_0x546397}=_0x307d26[_0x1c664c(0xdd)],_0x94571e=this[_0x1c664c(0xaa)](_0x5263e4);if(!_0x94571e)return;let _0x4dedd6=_0x94571e['getTableById'](_0x1951d0);if(!_0x4dedd6)return;let _0xfdb175=_0x4dedd6[_0x1c664c(0x181)](_0x1c7abc);if(!_0xfdb175)return;let _0x339b34=_0x4dedd6['getRecordById'](_0xf4622e);if(!_0x339b34)return;let _0x2aacf4={'base':_0x94571e,'table':_0x4dedd6,'field':_0xfdb175,'record':_0x339b34,'value':_0x546397};if(this['fireEvent'](this[_0x1c664c(0x112)][_0x1c664c(0x13c)],_0x2aacf4),_0x2aacf4[_0x1c664c(0x123)])throw new _0x3a850a();})));}[_0x16c455(0x1d7)](_0x4f3907,_0x5d1748){const _0x4d1994=_0x16c455;let _0x50d4dd=this[_0x4d1994(0xaa)](_0x4f3907),_0x10771e=_0x50d4dd==null?void 0x0:_0x50d4dd[_0x4d1994(0x15e)](_0x5d1748);return _0x50d4dd&&_0x10771e?{'base':_0x50d4dd,'table':_0x10771e}:null;}['_fireBeforeHierarchyChange'](_0x1a0b32,_0x50830a,_0x48f79a,_0x557b85){const _0x3e2a1=_0x16c455;if(!_0x48f79a[_0x3e2a1(0x166)])return;let _0x132c13={'base':_0x1a0b32,'table':_0x50830a,'changes':_0x48f79a,'source':_0x557b85};if(this['fireEvent'](this['Event']['BeforeBaseHierarchyChange'],_0x132c13),_0x132c13[_0x3e2a1(0x123)])throw new _0x3a850a();}};function $(_0x220d56,_0x5e6132){const _0x3ca300=_0x16c455;return _0x220d56['id']===_0x5e6132['id']&&_0x220d56[_0x3ca300(0xdd)]!==void 0x0;}function _0x459a(_0x176eb7,_0x1816cd){_0x176eb7=_0x176eb7-0xa0;const _0x501ed9=_0x501e();let _0x459ac4=_0x501ed9[_0x176eb7];return _0x459ac4;}_0x292e04[_0x16c455(0xcc)](Et);var Dt=class extends _0x2fc644{get[_0x16c455(0x134)](){return _0x5c585e;}get['BaseFilterConjunction'](){return _0xf11f7f;}get[_0x16c455(0x10a)](){return _0x48d24a;}get[_0x16c455(0x11a)](){return ot;}get[_0x16c455(0xce)](){return _0x1eb8c0;}get[_0x16c455(0x1bc)](){return _0x58b6cb;}get[_0x16c455(0x1b8)](){return _0x16f428;}get['BaseConditionalDateMode'](){return _0x1ee14c;}get['BaseSortDirection'](){return _0x1fbd79;}get[_0x16c455(0x205)](){return _0x55bebd;}get[_0x16c455(0x19f)](){return _0x34d13a;}get[_0x16c455(0x132)](){return _0x59ccb4;}get[_0x16c455(0xcf)](){return _0x135176;}};function _0x501e(){const _0x35696c=['getId','entries','orderedRecordIds','\x20for\x20field\x20\x22','[FRecord]:\x20field\x20\x22','readonly','Invalid\x20Base\x20regex\x20filter:\x20','onCommandExecuted','getAncestors','\x22\x20has\x20invalid\x20config.','fieldKey','recordId','matches','getBase','[FField]:\x20field\x20\x22','Failed\x20to\x20add\x20records','boolean','[FRecord]:\x20RecordLink\x20field\x20\x22','getConditionalColorRules','orderKey','DESC','regenerateViewIds','Name','targetTableId','find','getRecordById','_projectionService','canEdit','object','childrenByParentId','2SrRnSt','Grid','conditionalColoring','beforeFieldId','_getAttachmentField','_tableId','commonExtend','base','getTables','save','Auto','value','getVisibleFields','fromCollab','isReadonly','tableOrder','prototype','extend','delete','BaseViewType','BaseRecordLinkRole','parentRecordId','createView','clearConditionalColorRules','number','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','_univerInstanceService','visibleCardFieldIds','moveField','getViewByName','reason','push',':\x20\x22','setFieldVisible','params','group','recordOrder','now','UNIVER_BASE','forEach','fireEvent','afterFieldId','_getField','156790DBiThi','Edit','deleteRecords','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','isArray','warn','includes','[FTable]:\x20table\x20\x22','getNumColumns','getProjection','_prepareFormulaFieldReferences','setName','setLinkedRecordIds','Attachment','_base','_getFieldIds','fieldOrder','executeCommand','getRecords','getSchema','BaseTableCreated','Calendar','_initBaseAfterEvents','\x22\x20is\x20not\x20an\x20Attachment\x20field.','slice','endColumn','createdAt','getHierarchyFieldId','\x20in\x20field\x20\x22','name','setGroup','hierarchyChanges','_commandService','indexOf','RecordId','getUnitId','BaseFilterOperator','getGroup','operator','getAttachments','\x22\x20is\x20invalid.','record','BeforeBaseTableFieldCreate','records','Event','_injector','BaseTableViewCreated','getFilter','getColumn','Failed\x20to\x20add\x20field\x20\x22','getRecord','getPrimaryFieldId','BaseFieldKeyEnum','queryRecords','viewId','_baseTableId','_getRecord','_baseUnitId',',\x20range:\x20','description','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','cancel','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','getNumRows','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_resolveRecordIds','flatMap','BeforeBaseTableRecordCreate','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getParent','BaseTableRecordCreated','stringify','getActiveBase','addField','externalReferences','default','BaseHierarchyInvalidReason','setObjectPermissions','BaseFieldType','insertTable','call','rows','startRow','valid','setValue','BeforeBaseTableCreate','BeforeBaseTableCellValueChange','[FRecord]:\x20invalid\x20RecordLink\x20value.','duplicateTable','parentByRecordId','_table','has','Date','22253Lmhgfh','index','getPrimaryField','rowId','getTable','tables','_fieldId','createBase',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','localeCompare','type','deepClone','get','3771984TFMLJI','_parentObjectIds','createInstance','1940iExhOJ','size','fields','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getChildren','rules','filter','getSnapshot','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getFormulaName','getViews','getTableById','getRange','disposeWithMe','BeforeBaseHierarchyChange','views','_inject','tableId','trim','length','fromEntries','multiple','duplicate','defaultValue','_writeFormulaExternalReferences','UUID','getType','_resourceLoaderService','\x20exceeds\x20range\x20size\x20','Delete','getBaseId','clear','field','Set','getValue','map','viewOrder','syncExecuteCommand','Clear','every','_fireBeforeHierarchyChange','1873566lYEhDy','Failed\x20to\x20create\x20table\x20\x22','BeforeBaseTableViewCreate','300140bILzGM','getName','getFieldById','\x20Copy','unitId','addConditionalColorRule','primaryFieldId','Failed\x20to\x20create\x20view\x20\x22','addRecord','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','direction','custom','BaseHierarchyChanged','setFieldWidth','getCurrentUnitOfType','getValues','RecordLink','offset','source','_getRecordLinkField','createUnit','setEditable','mimeType','startColumn','_unitId','getFieldSettings','addChild','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','move','setReadOnly','width','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','BaseHierarchyErrorCode','updateConfig','Duplicate\x20Base\x20field\x20name:\x20','limit','setConfig','_permissionService','getRow','setDefaultValue','sourceType','some','fieldIds','getDataRange','_getView','deleteAttachments','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','Facade','Add','saveUnit','getAllUnitsForType','_collectDescendantIds','max','_getTable','[FBase]:\x20table\x20\x22','notMatches','addLinkedRecord','BaseConditionalColorOperator','registerEventHandler','beforeCommandExecuted','system','BaseConditionalColorTarget','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','3mbEgwR','view','Invalid\x20attachment\x20at\x20index\x20','deleteTable','_getHierarchyIndex','_recordId','symbol','addRecords','setAttachments',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','URL','BaseTableFieldCreated','900284QrtWsg','search','endRow','getDefaultValue','hidden','setHierarchyField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','function','Formula','removeLinkedRecord','toPrimitive','getLinkedRecordIds','string','_getHierarchyEventContext','BaseTableCellValueChanged','getPermission','values','Kanban','[FRecord]:\x20record\x20\x22','primaryFieldName','fieldSettings','updatedAt','setSort','url','changeType','Failed\x20to\x20delete\x20table\x20\x22','defineProperty','auto','table','_range','36RWjCbi','getDescription','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_viewId','setValues','_objectId','Remote','Base\x20field\x20not\x20found:\x20','update',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','sort','config','from','\x22.\x20','\x22\x20does\x20not\x20exist.','Gantt','_assertInBounds','_initBaseBeforeEvents','getOwnPropertyDescriptor','recordIds','setPoint','getTableByName','[FRecord]:\x20attachment\x20at\x20index\x20','\x22:\x20expected\x20an\x20array.','message','2777716speMFm','FBase','getViewById','Failed\x20to\x20duplicate\x20table\x20\x22','BaseEventSource','fieldId'];_0x501e=function(){return _0x35696c;};return _0x501e();}_0x2fc644[_0x16c455(0xcc)](Dt);var Ot=class extends _0x35d271{get[_0x16c455(0xfa)](){const _0x590052=_0x16c455;return _0x590052(0xfa);}get[_0x16c455(0x13b)](){const _0x453a62=_0x16c455;return _0x453a62(0x13b);}get[_0x16c455(0x1c9)](){return'BaseTableFieldCreated';}get[_0x16c455(0x110)](){const _0x3d8257=_0x16c455;return _0x3d8257(0x110);}get[_0x16c455(0x12c)](){const _0x4db644=_0x16c455;return _0x4db644(0x12c);}get[_0x16c455(0x129)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x12921f=_0x16c455;return _0x12921f(0x114);}get[_0x16c455(0x17e)](){const _0x53d7e8=_0x16c455;return _0x53d7e8(0x17e);}get[_0x16c455(0x1d8)](){return'BaseTableCellValueChanged';}get[_0x16c455(0x13c)](){return'BeforeBaseTableCellValueChange';}get[_0x16c455(0x18b)](){const _0x35b863=_0x16c455;return _0x35b863(0x18b);}get['BeforeBaseHierarchyChange'](){const _0x1510de=_0x16c455;return _0x1510de(0x161);}};_0x35d271[_0x16c455(0xcc)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|