@univerjs-pro/bases 1.0.0-beta.0 → 1.0.0-beta.1
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/types/commands/commands/validate-base-formula.command.d.ts +8 -0
- package/lib/types/controllers/base-formula-calculation.controller.d.ts +1 -0
- package/lib/types/facade/f-base.d.ts +21 -7
- package/lib/types/facade/f-enum.d.ts +2 -1
- package/lib/types/facade/f-table.d.ts +47 -7
- package/lib/types/index.d.ts +6 -0
- package/lib/types/models/base-table-name.d.ts +8 -0
- package/lib/types/ot/json1-op-factory.d.ts +1 -1
- package/lib/types/services/base-formula.service.d.ts +2 -23
- 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 +7 -7
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x368c49=_0x5aef;function _0x5aef(_0x584f55,_0x2e1109){_0x584f55=_0x584f55-0xb7;const _0x3f8928=_0x3f89();let _0x5aef11=_0x3f8928[_0x584f55];return _0x5aef11;}(function(_0x132d5e,_0x11d62d){const _0x4bb536=_0x5aef,_0x27f0ec=_0x132d5e();while(!![]){try{const _0xa7dd58=-parseInt(_0x4bb536(0xd1))/0x1*(parseInt(_0x4bb536(0xca))/0x2)+parseInt(_0x4bb536(0xd2))/0x3+-parseInt(_0x4bb536(0xd3))/0x4*(-parseInt(_0x4bb536(0xcd))/0x5)+-parseInt(_0x4bb536(0xc1))/0x6*(-parseInt(_0x4bb536(0xb8))/0x7)+parseInt(_0x4bb536(0xd4))/0x8+-parseInt(_0x4bb536(0xb7))/0x9+-parseInt(_0x4bb536(0xbb))/0xa*(-parseInt(_0x4bb536(0xbe))/0xb);if(_0xa7dd58===_0x11d62d)break;else _0x27f0ec['push'](_0x27f0ec['shift']());}catch(_0x33d630){_0x27f0ec['push'](_0x27f0ec['shift']());}}}(_0x3f89,0xc4771));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x368c49(0xd5),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':_0x368c49(0xc9),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x368c49(0xc7),'recordId':_0x368c49(0xce),'createdBy':_0x368c49(0xc5),'updatedBy':_0x368c49(0xbf),'createdAt':_0x368c49(0xc4),'updatedAt':_0x368c49(0xc6),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x368c49(0xcb),'linkPlaceholder':_0x368c49(0xcf)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x368c49(0xc2),'gantt':_0x368c49(0xc3),'gallery':'圖庫'},'error':{'fieldNameRequired':'欄位標題不能為空','invalidFieldType':_0x368c49(0xba),'invalidCellValue':_0x368c49(0xbd),'invalidKanbanGroupField':'看板需要可分組欄位','invalidCalendarDateField':_0x368c49(0xcc),'invalidGanttDateField':_0x368c49(0xd0)},'command':{'updateCell':_0x368c49(0xc0),'createField':_0x368c49(0xbc),'deleteField':_0x368c49(0xb9),'createRecord':'建立記錄','deleteRecord':_0x368c49(0xc8),'updateViewConfig':'更新檢視設定'}}};export{e as default};function _0x3f89(){const _0x43c650=['4ZtSGcx','輸入內容','行事曆需要日期欄位','3010xQRwyl','記錄\x20ID','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','甘特圖檢視需要開始和結束日期欄位','725749bHuMtU','1137783yvNzPS','5540yedxmw','4050736Ynmiqh','核取方塊','12519792DZKqNG','28srzYWN','刪除欄位','欄位類型無效','1476620nMXipb','建立欄位','儲存格值無效','121LMmJKq','更新人','更新儲存格','455478uGStwU','行事曆','甘特圖','建立時間','建立人','更新時間','關聯記錄','刪除記錄','電子郵件'];_0x3f89=function(){return _0x43c650;};return _0x3f89();}
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x336728=_0x52e5;(function(_0x416124,_0x15ac91){const _0x216814=_0x52e5,_0x2f7389=_0x416124();while(!![]){try{const _0x3a70e3=-parseInt(_0x216814(0x289))/0x1*(parseInt(_0x216814(0x1be))/0x2)+-parseInt(_0x216814(0x17f))/0x3+parseInt(_0x216814(0x242))/0x4+-parseInt(_0x216814(0x226))/0x5+parseInt(_0x216814(0x202))/0x6+-parseInt(_0x216814(0x20d))/0x7+parseInt(_0x216814(0x294))/0x8*(parseInt(_0x216814(0x2ae))/0x9);if(_0x3a70e3===_0x15ac91)break;else _0x2f7389['push'](_0x2f7389['shift']());}catch(_0x19c6ec){_0x2f7389['push'](_0x2f7389['shift']());}}}(_0xcde0,0x71752));import{ApplyBaseJson1Mutation as _0x5374e3,BaseConditionalColorRuleUpdateType as _0x43286c,BaseEventSource as _0x4fe3fa,BaseHierarchyErrorCode as _0x3d171b,BatchCreateBaseRecordsCommand as _0x144dc8,BatchDeleteBaseRecordsCommand as _0x20826e,ChangeBaseFieldTypeCommand as _0x753b97,CreateBaseChildRecordCommand as _0x5567bd,CreateBaseFieldCommand as _0x1978a1,CreateBaseRecordCommand as _0x22871f,CreateBaseTableCommand as _0x3cc0d1,CreateBaseViewCommand as _0x338c3b,DeleteBaseFieldCommand as _0x41894a,DeleteBaseRecordCommand as _0x384f53,DeleteBaseTableCommand as _0x13a13d,DeleteBaseViewCommand as _0x5d89f8,DuplicateBaseRecordCommand as _0x39fd7f,IBaseProjectionService as _0x460976,MoveBaseFieldCommand as _0x167fd9,MoveBaseHierarchyRecordCommand as _0x241dc3,MoveBaseViewCommand as _0x265b4d,RenameBaseTableCommand as _0x83c0cd,RenameBaseViewCommand as _0x65495d,SetBaseNameCommand as _0x3a2e4a,SetBaseRangeValuesCommand as _0x26fb58,SetBaseRecordValuesCommand as _0x298aea,SetBaseTableHierarchyFieldCommand as _0x3d3845,SetBaseViewFieldOrderCommand as _0x245f1a,SetBaseViewFieldVisibleCommand as _0x113ed1,SetBaseViewFieldWidthCommand as _0x5bb362,SetBaseViewFilterCommand as _0x19bf5c,SetBaseViewGroupCommand as _0x36027b,SetBaseViewSortCommand as _0x411c97,UpdateBaseCellCommand as _0x54f164,UpdateBaseFieldCommand as _0x274ee3,UpdateBaseRecordOrderCommand as _0x3a8712,UpdateBaseViewConditionalColorRulesCommand as _0x3b1b6b,UpdateBaseViewConfigCommand as _0x3cd319,buildBaseHierarchyIndex as _0xdaf857,copyBaseTableSnapshot as _0x5e421d,ensureBaseTableCellLayout as _0x1696cb,getActiveBaseHierarchyFieldIds as _0x12eab2,getBaseCellValue as _0x2904a9,getBaseHierarchyDeletePromotions as _0x3282d7,getRecordLinkFieldConfig as _0x366eec,matchesBaseCondition as _0x5e33be,parseRecordLinkIds as _0x1e19fe,resolveBaseHierarchyFieldId as _0x2ee0b8,resolveBaseRangeHierarchyPatches as _0x34fccc,searchBaseTable as _0xa27dde,serializeRecordLinkIds as _0x4005a5,validateBaseHierarchyRecordCreations as _0x3e5dd7,validateBaseHierarchyRecordPatches as _0x568123,validateRecordLinkValue as _0x107ab8}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2b3441,BaseConditionalColorOperator as _0x4e80c8,BaseConditionalColorTarget as _0x46b2d8,BaseConditionalDateMode as _0xd4945d,BaseFieldType as _0x33d599,BaseFilterConjunction as _0x5f2ca0,BaseFilterOperator as _0xf6848f,BaseHierarchyInvalidReason as _0x1c2958,BaseRecordLinkRole as _0x523fee,BaseSortDirection as _0x4baab9,BaseViewType as _0x35b90a,CanceledError as _0x10ac7b,ICommandService as _0x2d81ac,IResourceLoaderService as _0x246509,ImageSourceType as _0x1a211c,Inject as _0x25f6bc,Injector as _0x442045,Tools as _0x5bb98a,UniverInstanceType as _0x874f24,createDefaultBaseTableSnapshot as _0x16a351,generateRandomId as _0x2bd9cf}from'@univerjs/core';import{FEnum as _0x530ba6,FEventName as _0x23c09b,FUniver as _0x7df423}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x46103d}from'@univerjs-pro/engine-formula';function F(_0x51c8be,_0x537c5e){return function(_0x577ffd,_0x3ee880){_0x537c5e(_0x577ffd,_0x3ee880,_0x51c8be);};}function I(_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425){const _0x1bd441=_0x52e5;var _0x57cb92=arguments[_0x1bd441(0x1b5)],_0x2fa42e=_0x57cb92<0x3?_0x218778:_0x4f7425===null?_0x4f7425=Object['getOwnPropertyDescriptor'](_0x218778,_0x4e1bc4):_0x4f7425,_0x3926bf;if(typeof Reflect==_0x1bd441(0x21a)&&typeof Reflect['decorate']==_0x1bd441(0x288))_0x2fa42e=Reflect['decorate'](_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425);else{for(var _0x385c81=_0x3f6a3c[_0x1bd441(0x1b5)]-0x1;_0x385c81>=0x0;_0x385c81--)(_0x3926bf=_0x3f6a3c[_0x385c81])&&(_0x2fa42e=(_0x57cb92<0x3?_0x3926bf(_0x2fa42e):_0x57cb92>0x3?_0x3926bf(_0x218778,_0x4e1bc4,_0x2fa42e):_0x3926bf(_0x218778,_0x4e1bc4))||_0x2fa42e);}return _0x57cb92>0x3&&_0x2fa42e&&Object[_0x1bd441(0x203)](_0x218778,_0x4e1bc4,_0x2fa42e),_0x2fa42e;}function _0xcde0(){const _0xc184eb=['getSort','beforeCommandExecuted','offset','getName','Auto','_fireBeforeHierarchyChange','isFinite','limit',',\x20max\x20columns:\x20','Failed\x20to\x20delete\x20table\x20\x22','getSchema','_getFieldIds','Attachment','UUID','BeforeBaseTableRecordCreate','cancel','createBase','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','AND','moveField','invalid','duplicate',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getNumRows','unitId','getViews','deleteTable','getConditionalColorRules','syncExecuteCommand','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','BaseFilterOperator','BeforeBaseTableCreate','getRange','_injector','commonExtend','getTable','map','getFieldByName','setFilter',',\x20range:\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.',':\x20expected\x20an\x20object.','_getHierarchyEventContext','index','_getTable','primaryFieldId','getFieldById','search','addLinkedRecord','update','saveUnit','setName','2415840zLFjnl','defineProperty','deleteRecords','fieldOrder','getViewById','_commandService','Event','getTableById','trim','duplicateTable','getCurrentUnitOfType','4798283FktEtC','BaseSortDirection','_initBaseBeforeEvents','getUnitId','Failed\x20to\x20create\x20table\x20\x22','config','_recordId','hierarchyChanges','BeforeBaseHierarchyChange','URL','getSnapshot','\x20exceeds\x20range\x20size\x20','_collectDescendantIds','object','getVisibleFields','BaseTableCreated','getLinkedRecordIds','getProjection','getBases','BaseTableCellValueChanged','fieldSettings','fieldIds','BeforeBaseTableCellValueChange','_tableId','_viewId','4231720TKZEWs','[FRecord]:\x20record\x20\x22','direction','getRecordById','rules','move','parentByRecordId','orderedRecordIds','disposeWithMe','getRow','fireEvent','call','caseSensitive','_range','localeCompare','setGroup','BaseConditionalDateMode','_initBaseAfterEvents','getParent','BaseTableViewCreated','getId','params','table','endRow','Set','getFields','setValue','deleteProperty','291912JYbKIC','recordOrder','hasOwnProperty','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','registerEventHandler','_getRecord','_resourceLoaderService','setConditionalColorRules','records','addChild','_fieldId','includes','getDescendants','getNumColumns','visibleCardFieldIds','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','find','setParent','startColumn','Failed\x20to\x20add\x20records','getTableId','width','deepClone','RecordId','_writeFormulaExternalReferences','BASE64','[FBaseRange]:\x20values\x20size\x20','getField','_resolveRecordIds','Failed\x20to\x20add\x20field\x20\x22','slice','type','Failed\x20to\x20create\x20view\x20\x22','BeforeBaseTableFieldCreate','\x22:\x20expected\x20an\x20array.','Date','mimeType','indexOf','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','base','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','push','getFieldSettings','BaseTableRecordCreated','isReadonly','Formula','fields','getType','description','Duplicate\x20Base\x20field\x20name:\x20','setHierarchyField','Gallery','BeforeBaseTableViewCreate','setValues','setConfig','createInstance','getDataRange','some','view','_table','BaseFilterConjunction','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Clear','tableId','setDefaultValue','getValues','number','fromEntries',':\x20\x22','field','function','146469LqAIVu','insertTable','Failed\x20to\x20duplicate\x20table\x20\x22','views','conditions','hidden','conditionalColoring','queryRecords','Grid','primaryFieldName','getHierarchyFieldId','42928flnYSZ','BaseHierarchyChanged','reason','\x20Copy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','\x22\x20has\x20invalid\x20config.','sourceType','addRecords','Kanban','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','_projectionService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','save','getActiveBase','Name','getBase','flatMap','deleteConditionalColorRule','createdAt','setSort','\x22\x20does\x20not\x20exist.','data:','from','values','subtreeHeightByRecordId','_getHierarchyIndex','4491NDEuXi','setLinkedRecordIds',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','Calendar','UNIVER_BASE','test','_getField','_inject','Facade','getTables','\x22\x20must\x20be\x20a\x20non-empty\x20string.','parentRecordId','2151930wBZgze','BaseFieldType','multiple','clearConditionalColorRules','_getView','startsWith','_base','getAncestors','updateConfig','_getRecordLinkField','tables','source','rowId','BaseConditionalColorOperator','matches','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','RecordLink','recordId','name','getConfig','getFilter','addRecord','prototype','getPrimaryField','viewOrder','getTableByName','operator','getGroup','get','BaseConditionalColorTarget','fromCollab','every','getAllUnitsForType','now','max','valid','filter','createUnit','startRow','createView','childrenByParentId','getValue','setFieldVisible','isArray','getDescription','orderKey','tableOrder','viewId','externalReferences','_univerInstanceService','endColumn','Remote','_assertInBounds','value','length','notMatches','updatedAt','url','getRecords','record','Gantt','warn','BaseViewType','6FhQRnG','delete','[FRecord]:\x20invalid\x20RecordLink\x20value.','onCommandExecuted','BaseTableFieldCreated','fieldId','[FField]:\x20field\x20\x22','fieldKey','_initialize','sort','auto','string','changeType','rows','afterFieldId','system'];_0xcde0=function(){return _0xc184eb;};return _0xcde0();}let L=class{constructor(_0x4e2fb4,_0x1372c7,_0x348dee,_0x38eac8){const _0x21fddb=_0x52e5;this[_0x21fddb(0x185)]=_0x4e2fb4,this[_0x21fddb(0x27d)]=_0x1372c7,this[_0x21fddb(0x24c)]=_0x348dee,this[_0x21fddb(0x207)]=_0x38eac8;}[_0x336728(0x23a)](){const _0x1e1b3a=_0x336728;return this[_0x1e1b3a(0x24c)];}[_0x336728(0x25d)](){const _0x11b820=_0x336728;return this[_0x11b820(0x2b4)]();}[_0x336728(0x1d1)](){const _0x40f0b4=_0x336728;return this[_0x40f0b4(0x2b4)]()[_0x40f0b4(0x191)];}[_0x336728(0x271)](){const _0x499f5f=_0x336728;return this[_0x499f5f(0x2b4)]()['type'];}[_0x336728(0x192)](){const _0x405780=_0x336728;return this['_getField']()[_0x405780(0x212)];}['getDefaultValue'](){const _0x3855eb=_0x336728;return this[_0x3855eb(0x2b4)]()['defaultValue'];}[_0x336728(0x1ab)](){const _0x551eb5=_0x336728;return this[_0x551eb5(0x2b4)]()[_0x551eb5(0x272)];}[_0x336728(0x26e)](){const _0xb210e4=_0x336728;return!!this[_0xb210e4(0x2b4)]()['readonly'];}[_0x336728(0x201)](_0x309d6b){const _0x5711f5=_0x336728;return this[_0x5711f5(0x1ff)]({'name':_0x309d6b});}[_0x336728(0x278)](_0x2f88f4,_0x22bfd6){const _0x2db325=_0x336728;return this[_0x2db325(0x1ff)]({'config':_0x2f88f4},_0x22bfd6);}[_0x336728(0x282)](_0x4b0246){const _0x557ad1=_0x336728;return this[_0x557ad1(0x1ff)]({'defaultValue':_0x4b0246});}[_0x336728(0x1ff)](_0x49159b,_0x1a0b7d){const _0x437828=_0x336728;let _0x1374c0=this[_0x437828(0x2b4)]()[_0x437828(0x261)];return(_0x49159b[_0x437828(0x261)]??_0x1374c0)===_0x33d599['Formula']&&(Object[_0x437828(0x195)][_0x437828(0x244)][_0x437828(0x231)](_0x49159b,_0x437828(0x212))||_0x49159b['type']===_0x33d599[_0x437828(0x26f)])&&!this[_0x437828(0x25a)](_0x1a0b7d)?!0x1:this['_commandService'][_0x437828(0x1ea)](_0x274ee3['id'],{'unitId':this['_base'][_0x437828(0x23a)](),'tableId':this[_0x437828(0x27d)][_0x437828(0x23a)](),'fieldId':this['_fieldId'],'patch':_0x49159b});}[_0x336728(0x1ca)](_0x32ec0a,_0x5d06a9={},_0x49e791){const _0x292a26=_0x336728;return _0x32ec0a===_0x33d599[_0x292a26(0x26f)]&&!this[_0x292a26(0x25a)](_0x49e791)?!0x1:this[_0x292a26(0x207)][_0x292a26(0x1ea)](_0x753b97['id'],{'unitId':this[_0x292a26(0x185)][_0x292a26(0x23a)](),'tableId':this[_0x292a26(0x27d)][_0x292a26(0x23a)](),'fieldId':this[_0x292a26(0x24c)],'input':{'type':_0x32ec0a,'config':_0x5d06a9}});}[_0x336728(0x1bf)](){const _0x17d55a=_0x336728;return this[_0x17d55a(0x207)]['syncExecuteCommand'](_0x41894a['id'],{'unitId':this[_0x17d55a(0x185)]['getId'](),'tableId':this[_0x17d55a(0x27d)]['getId'](),'fieldId':this[_0x17d55a(0x24c)]});}['move'](_0x133438){const _0x454965=_0x336728;return this[_0x454965(0x207)][_0x454965(0x1ea)](_0x167fd9['id'],{'unitId':this[_0x454965(0x185)]['getId'](),'tableId':this[_0x454965(0x27d)][_0x454965(0x23a)](),'fieldId':this[_0x454965(0x24c)],'target':_0x133438});}[_0x336728(0x2b4)](){const _0x2302cc=_0x336728;let _0x34d8e3=this[_0x2302cc(0x27d)]['getTable']()[_0x2302cc(0x270)][this[_0x2302cc(0x24c)]];if(!_0x34d8e3)throw Error(_0x2302cc(0x1c4)+this['_fieldId']+_0x2302cc(0x2a8));return _0x34d8e3;}[_0x336728(0x25a)](_0x5945ee){const _0x29896b=_0x336728;if(!_0x5945ee||!Array[_0x29896b(0x1aa)](_0x5945ee[_0x29896b(0x1af)]))return console[_0x29896b(0x1bc)](_0x29896b(0x1df)),!0x1;if(_0x5945ee[_0x29896b(0x1af)][_0x29896b(0x1b5)]===0x0)return!0x0;let _0x559b67=this[_0x29896b(0x207)][_0x29896b(0x1ea)](_0x46103d['id'],{'unitId':this[_0x29896b(0x185)]['getId'](),'references':_0x5945ee[_0x29896b(0x1af)]});return _0x559b67||console[_0x29896b(0x1bc)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x559b67;}};L=I([F(0x3,_0x2d81ac)],L);let R=function(_0x3a51bd){const _0x570dbd=_0x336728;return _0x3a51bd['Id']='id',_0x3a51bd[_0x570dbd(0x2a2)]='name',_0x3a51bd[_0x570dbd(0x1d2)]=_0x570dbd(0x1c8),_0x3a51bd;}({});function z(_0x55e82c){const _0x39324e=_0x336728;return!!(_0x55e82c&&_0x55e82c[_0x39324e(0x1cd)]!==!0x0&&_0x55e82c[_0x39324e(0x261)]!==_0x33d599[_0x39324e(0x259)]);}function B(_0x27b8c0,_0x36d804,_0x495ca0='id'){if(!_0x36d804)return{};let _0xaa68e9={};return Object['entries'](_0x36d804)['forEach'](([_0x9d5a2e,_0x9d0599])=>{let _0x3b2ef3=H(_0x27b8c0,_0x9d5a2e,_0x495ca0);_0xaa68e9[_0x3b2ef3]=V(_0x27b8c0['fields'][_0x3b2ef3],_0x9d0599);}),_0xaa68e9;}function V(_0x2763bb,_0xbfab5d){const _0x1e7628=_0x336728;if((_0x2763bb==null?void 0x0:_0x2763bb[_0x1e7628(0x261)])!==_0x33d599[_0x1e7628(0x1da)]||_0xbfab5d==null)return _0xbfab5d;if(!Array[_0x1e7628(0x1aa)](_0xbfab5d))throw TypeError(_0x1e7628(0x29d)+_0x2763bb[_0x1e7628(0x191)]+_0x1e7628(0x264));return _0xbfab5d[_0x1e7628(0x1f2)]((_0x4dac29,_0x20b64a)=>We(_0x2763bb,_0x4dac29,_0x20b64a));}function H(_0x4f8a7a,_0x3b45e2,_0x25113f){const _0x10faa2=_0x336728;if(_0x25113f==='id'||_0x25113f===_0x10faa2(0x1c8)&&_0x4f8a7a['fields'][_0x3b45e2])return _0x3b45e2;let _0xdb01f4=Object['values'](_0x4f8a7a[_0x10faa2(0x270)])[_0x10faa2(0x1a3)](_0x2a7aad=>_0x2a7aad[_0x10faa2(0x191)]===_0x3b45e2);if(_0xdb01f4[_0x10faa2(0x1b5)]===0x1)return _0xdb01f4[0x0]['id'];throw _0xdb01f4['length']>0x1?Error(_0x10faa2(0x273)+_0x3b45e2):Error('Base\x20field\x20not\x20found:\x20'+_0x3b45e2);}function We(_0x1ccb83,_0x4bfe73,_0x5454f2){const _0x330d93=_0x336728;let _0xc735b6='Invalid\x20attachment\x20at\x20index\x20'+_0x5454f2+'\x20for\x20field\x20\x22'+_0x1ccb83[_0x330d93(0x191)]+'\x22';if(!Ke(_0x4bfe73))throw TypeError(_0xc735b6+_0x330d93(0x1f7));if(_0x330d93(0x1b8)in _0x4bfe73)throw TypeError(_0xc735b6+_0x330d93(0x2b0));if('type'in _0x4bfe73)throw TypeError(_0xc735b6+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x5f5654=U(_0x4bfe73['id'],_0xc735b6,'id'),_0x18e2d9=U(_0x4bfe73[_0x330d93(0x191)],_0xc735b6,_0x330d93(0x191)),_0x42a205=U(_0x4bfe73[_0x330d93(0x18a)],_0xc735b6,_0x330d93(0x18a));return{'id':_0x5f5654,'name':_0x18e2d9,'source':_0x42a205,'sourceType':Ge(_0x4bfe73[_0x330d93(0x29a)],_0x42a205,_0xc735b6),...W(_0x4bfe73,_0x330d93(0x266),_0xc735b6),...G(_0x4bfe73,'size',_0xc735b6),...G(_0x4bfe73,_0x330d93(0x257),_0xc735b6),...G(_0x4bfe73,'height',_0xc735b6),...W(_0x4bfe73,'thumbnail',_0xc735b6)};}function Ge(_0x13210a,_0x4c5fb5,_0x218305){const _0x5d852e=_0x336728;if(_0x13210a==null)return _0x4c5fb5[_0x5d852e(0x184)](_0x5d852e(0x2a9))?_0x1a211c[_0x5d852e(0x25b)]:_0x1a211c[_0x5d852e(0x216)];if(_0x13210a===_0x1a211c[_0x5d852e(0x216)]||_0x13210a===_0x1a211c[_0x5d852e(0x1db)]||_0x13210a===_0x1a211c[_0x5d852e(0x25b)])return _0x13210a;throw TypeError(_0x218305+_0x5d852e(0x1e4));}function U(_0x294c8a,_0x11ed20,_0x49c400){const _0x3774de=_0x336728;if(typeof _0x294c8a!='string'||!_0x294c8a[_0x3774de(0x20a)]())throw TypeError(_0x11ed20+':\x20\x22'+_0x49c400+_0x3774de(0x17d));return _0x294c8a;}function W(_0x5ccef6,_0x22dd0c,_0x3e7b19){const _0x377e2a=_0x336728;let _0x207520=_0x5ccef6[_0x22dd0c];if(_0x207520==null)return{};if(typeof _0x207520!='string'||!_0x207520[_0x377e2a(0x20a)]())throw TypeError(_0x3e7b19+_0x377e2a(0x286)+_0x22dd0c+_0x377e2a(0x1f6));return{[_0x22dd0c]:_0x207520};}function G(_0x56b86f,_0x36faad,_0x3a4177){const _0x3b7ade=_0x336728;let _0x152e9a=_0x56b86f[_0x36faad];if(_0x152e9a==null)return{};if(typeof _0x152e9a!=_0x3b7ade(0x284)||!Number[_0x3b7ade(0x1d4)](_0x152e9a)||_0x152e9a<0x0)throw TypeError(_0x3a4177+_0x3b7ade(0x286)+_0x36faad+_0x3b7ade(0x26a));return{[_0x36faad]:_0x152e9a};}function Ke(_0x50ad13){const _0x4aafcc=_0x336728;return typeof _0x50ad13==_0x4aafcc(0x21a)&&!!_0x50ad13&&!Array[_0x4aafcc(0x1aa)](_0x50ad13);}var K;let q=K=class{constructor(_0x2797d9,_0x2e7bb7,_0x198cf8,_0x471d86,_0x490b31){const _0x44fd88=_0x336728;this['_base']=_0x2797d9,this[_0x44fd88(0x27d)]=_0x2e7bb7,this[_0x44fd88(0x233)]=_0x198cf8,this['_inject']=_0x471d86,this[_0x44fd88(0x207)]=_0x490b31,this[_0x44fd88(0x1b3)]();}['getBaseId'](){const _0x38d883=_0x336728;return this[_0x38d883(0x185)][_0x38d883(0x23a)]();}[_0x336728(0x256)](){const _0x15ed3a=_0x336728;return this[_0x15ed3a(0x27d)][_0x15ed3a(0x23a)]();}[_0x336728(0x1ee)](){const _0x426107=_0x336728;return{...this[_0x426107(0x233)]};}[_0x336728(0x22f)](){const _0x3a6811=_0x336728;return this[_0x3a6811(0x233)][_0x3a6811(0x1a5)];}['getColumn'](){const _0x4c6e6d=_0x336728;return this['_range'][_0x4c6e6d(0x254)];}[_0x336728(0x1e5)](){const _0xe06983=_0x336728;return this['_range'][_0xe06983(0x23d)]-this[_0xe06983(0x233)][_0xe06983(0x1a5)]+0x1;}[_0x336728(0x24f)](){const _0x1c3293=_0x336728;return this[_0x1c3293(0x233)][_0x1c3293(0x1b1)]-this['_range'][_0x1c3293(0x254)]+0x1;}[_0x336728(0x283)](){const _0x20501c=_0x336728;let _0x451523=this['_getTable'](),_0x2a3c0d=this[_0x20501c(0x1d9)](_0x451523),_0x55b023=[];for(let _0x483194=this[_0x20501c(0x233)][_0x20501c(0x1a5)];_0x483194<=this[_0x20501c(0x233)][_0x20501c(0x23d)];_0x483194++){var _0x277f0a;let _0x4eb6c0=(_0x277f0a=_0x451523[_0x20501c(0x18b)])==null?void 0x0:_0x277f0a[_0x483194],_0x5aeb43=[];for(let _0x576f90=this[_0x20501c(0x233)]['startColumn'];_0x576f90<=this[_0x20501c(0x233)][_0x20501c(0x1b1)];_0x576f90++){let _0x3f51d8=_0x2a3c0d[_0x576f90];_0x5aeb43['push'](_0x4eb6c0&&_0x3f51d8?_0x2904a9(_0x451523,_0x4eb6c0,_0x3f51d8):null);}_0x55b023['push'](_0x5aeb43);}return _0x55b023;}[_0x336728(0x1a8)](){const _0x5ecda4=_0x336728;var _0x2fd912;return((_0x2fd912=this[_0x5ecda4(0x283)]()[0x0])==null?void 0x0:_0x2fd912[0x0])??null;}[_0x336728(0x240)](_0x239c6c){const _0x238357=_0x336728;return this[_0x238357(0x277)]([[_0x239c6c]]);}['setValues'](_0x2e0a04){const _0x4b1626=_0x336728;let _0x38b4f8=this['getNumRows'](),_0x3dfea3=this[_0x4b1626(0x24f)]();if(_0x2e0a04['length']>_0x38b4f8||_0x2e0a04[_0x4b1626(0x27b)](_0x1b0422=>_0x1b0422[_0x4b1626(0x1b5)]>_0x3dfea3)){var _0x11a10b;throw Error(_0x4b1626(0x25c)+_0x2e0a04[_0x4b1626(0x1b5)]+'x'+(((_0x11a10b=_0x2e0a04[0x0])==null?void 0x0:_0x11a10b[_0x4b1626(0x1b5)])??0x0)+_0x4b1626(0x218)+_0x38b4f8+'x'+_0x3dfea3+'.');}let _0x30c32a=this['_getTable'](),_0x5062e2=this[_0x4b1626(0x1d9)](_0x30c32a),_0x23b380=_0x2e0a04[_0x4b1626(0x2a4)]((_0x377079,_0x1dbf0a)=>_0x377079[_0x4b1626(0x1f2)]((_0x5b8280,_0x2c9f7a)=>{const _0x17d1c4=_0x4b1626;var _0x2fbbc9;let _0x3fcc3e=this['_range'][_0x17d1c4(0x1a5)]+_0x1dbf0a,_0x2c0716=_0x5062e2[this[_0x17d1c4(0x233)][_0x17d1c4(0x254)]+_0x2c9f7a],_0x342631=(_0x2fbbc9=_0x30c32a[_0x17d1c4(0x18b)])==null?void 0x0:_0x2fbbc9[_0x3fcc3e];if(!_0x2c0716||!_0x342631)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x342631,'fieldId':_0x2c0716,'value':_0x5b8280};}));return this[_0x4b1626(0x207)][_0x4b1626(0x1ea)](_0x26fb58['id'],{'unitId':this[_0x4b1626(0x185)]['getId'](),'tableId':this[_0x4b1626(0x27d)][_0x4b1626(0x23a)](),'patches':_0x23b380,'source':_0x4fe3fa[_0x4b1626(0x2b6)]});}['clear'](){const _0xb1744f=_0x336728;return this[_0xb1744f(0x277)](Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x1e5)]()},()=>Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x24f)]()},()=>null)));}['offset'](_0xb6dff2,_0x14a086,_0x513fc1=this[_0x336728(0x1e5)](),_0x3d6aec=this[_0x336728(0x24f)]()){const _0xd6ec64=_0x336728;return this[_0xd6ec64(0x2b5)][_0xd6ec64(0x279)](K,this['_base'],this[_0xd6ec64(0x27d)],{'startRow':this[_0xd6ec64(0x233)][_0xd6ec64(0x1a5)]+_0xb6dff2,'startColumn':this['_range'][_0xd6ec64(0x254)]+_0x14a086,'endRow':this[_0xd6ec64(0x233)]['startRow']+_0xb6dff2+_0x513fc1-0x1,'endColumn':this[_0xd6ec64(0x233)][_0xd6ec64(0x254)]+_0x14a086+_0x3d6aec-0x1},this['_inject']);}[_0x336728(0x1fa)](){const _0x4a3ae4=_0x336728;let _0x3f6d16=this[_0x4a3ae4(0x27d)][_0x4a3ae4(0x1f1)]();if(!_0x3f6d16)throw Error(_0x4a3ae4(0x298));return _0x1696cb(_0x3f6d16);}[_0x336728(0x1b3)](){const _0x22df94=_0x336728;var _0x284879;let _0x4484df=this['_getTable'](),_0x4e60c=((_0x284879=_0x4484df[_0x22df94(0x243)])==null?void 0x0:_0x284879[_0x22df94(0x1b5)])??0x0,_0x3fac47=this[_0x22df94(0x1d9)](_0x4484df)[_0x22df94(0x1b5)];if(this[_0x22df94(0x233)]['startRow']<0x0||this[_0x22df94(0x233)]['startColumn']<0x0||this[_0x22df94(0x233)]['endRow']<this[_0x22df94(0x233)]['startRow']||this[_0x22df94(0x233)][_0x22df94(0x1b1)]<this[_0x22df94(0x233)][_0x22df94(0x254)]||this[_0x22df94(0x233)]['endRow']>=Math[_0x22df94(0x1a1)](_0x4e60c,0x1)||this[_0x22df94(0x233)][_0x22df94(0x1b1)]>=Math[_0x22df94(0x1a1)](_0x3fac47,0x1))throw Error(_0x22df94(0x18e)+_0x4e60c+_0x22df94(0x1d6)+_0x3fac47+_0x22df94(0x1f5)+JSON['stringify'](this['_range'])+'.');}[_0x336728(0x1d9)](_0x23c909){const _0x22032a=_0x336728;return _0x23c909[_0x22032a(0x205)][_0x22032a(0x1a3)](_0x494663=>z(_0x23c909[_0x22032a(0x270)][_0x494663]));}};q=K=I([F(0x4,_0x2d81ac)],q);var J;let Y=J=class{constructor(_0x3064f7,_0x471e1f,_0x3a6a27,_0xb3f44c,_0x565e01){const _0x161f7c=_0x336728;this[_0x161f7c(0x185)]=_0x3064f7,this[_0x161f7c(0x27d)]=_0x471e1f,this[_0x161f7c(0x213)]=_0x3a6a27,this[_0x161f7c(0x2b5)]=_0xb3f44c,this['_commandService']=_0x565e01;}[_0x336728(0x23a)](){const _0x4a41fe=_0x336728;return this[_0x4a41fe(0x213)];}['getRecord'](){const _0x4cc80c=_0x336728;return{...this[_0x4cc80c(0x247)](),'values':this['getValues']()};}[_0x336728(0x1a8)](_0x144710){const _0x4ef753=_0x336728;return z(this[_0x4ef753(0x27d)][_0x4ef753(0x1f1)]()[_0x4ef753(0x270)][_0x144710])?this[_0x4ef753(0x247)]()['values'][_0x144710]??null:null;}[_0x336728(0x283)](){const _0x5720f2=_0x336728;let _0x25783d=this[_0x5720f2(0x27d)][_0x5720f2(0x1f1)]();return Object[_0x5720f2(0x285)](Object['entries'](this['_getRecord']()[_0x5720f2(0x2ab)])['filter'](([_0x2a3cb7])=>z(_0x25783d[_0x5720f2(0x270)][_0x2a3cb7])));}['setValue'](_0x5b070a,_0x1d523e){const _0x588582=_0x336728;let _0x3a8924=this[_0x588582(0x27d)][_0x588582(0x1f1)]()[_0x588582(0x270)][_0x5b070a];return this['_commandService'][_0x588582(0x1ea)](_0x54f164['id'],{'unitId':this[_0x588582(0x185)][_0x588582(0x23a)](),'tableId':this[_0x588582(0x27d)][_0x588582(0x23a)](),'recordId':this[_0x588582(0x213)],'fieldId':_0x5b070a,'value':V(_0x3a8924,_0x1d523e),'source':_0x4fe3fa[_0x588582(0x2b6)]});}['setAttachments'](_0x3adab5,_0x44dfdf){const _0x514e45=_0x336728;return this['setValue'](_0x3adab5,_0x44dfdf[_0x514e45(0x1f2)](_0xc90518=>({..._0xc90518})));}[_0x336728(0x277)](_0x41d2ee,_0x3596c0='id'){const _0x4bd61c=_0x336728;let _0x219587=this[_0x4bd61c(0x27d)]['getTable'](),_0x51f0fc=[{'recordId':this[_0x4bd61c(0x213)],'values':B(_0x219587,_0x41d2ee,_0x3596c0)}];return this[_0x4bd61c(0x207)][_0x4bd61c(0x1ea)](_0x298aea['id'],{'unitId':this[_0x4bd61c(0x185)]['getId'](),'tableId':this[_0x4bd61c(0x27d)][_0x4bd61c(0x23a)](),'patches':_0x51f0fc,'source':_0x4fe3fa[_0x4bd61c(0x2b6)]});}['delete'](){const _0x49f0cb=_0x336728;return this[_0x49f0cb(0x207)]['syncExecuteCommand'](_0x384f53['id'],{'unitId':this[_0x49f0cb(0x185)]['getId'](),'tableId':this['_table'][_0x49f0cb(0x23a)](),'recordId':this[_0x49f0cb(0x213)],'source':_0x4fe3fa[_0x49f0cb(0x2b6)]});}[_0x336728(0x1e3)](_0x39f7dd){const _0x236a01=_0x336728;let _0x5059a3={...this['_getRecord'](),..._0x39f7dd,'id':_0x2bd9cf(0x6)};_0x5059a3[_0x236a01(0x2ab)]={..._0x5059a3[_0x236a01(0x2ab)],..._0x39f7dd==null?void 0x0:_0x39f7dd['values']},Reflect[_0x236a01(0x241)](_0x5059a3[_0x236a01(0x2ab)],_0x2b3441);let _0x366d3e=Date[_0x236a01(0x1a0)]();if(_0x5059a3[_0x236a01(0x1ac)]||=''+_0x366d3e,_0x5059a3['createdAt']||=_0x366d3e,_0x5059a3[_0x236a01(0x1b7)]||=_0x366d3e,!this[_0x236a01(0x207)]['syncExecuteCommand'](_0x39fd7f['id'],{'unitId':this[_0x236a01(0x185)][_0x236a01(0x23a)](),'tableId':this[_0x236a01(0x27d)][_0x236a01(0x23a)](),'sourceRecordId':this[_0x236a01(0x213)],'record':_0x5059a3,'source':_0x4fe3fa[_0x236a01(0x2b6)]}))throw Error(_0x236a01(0x245)+this[_0x236a01(0x213)]+'\x22.');return this[_0x236a01(0x2b5)][_0x236a01(0x279)](J,this['_base'],this[_0x236a01(0x27d)],_0x5059a3['id'],this[_0x236a01(0x2b5)]);}['setOrderKey'](_0x3d9d31){const _0x1e89ce=_0x336728;return this[_0x1e89ce(0x207)][_0x1e89ce(0x1ea)](_0x3a8712['id'],{'unitId':this[_0x1e89ce(0x185)]['getId'](),'tableId':this['_table'][_0x1e89ce(0x23a)](),'recordId':this['_recordId'],'orderKey':_0x3d9d31});}['getLinkedRecordIds'](_0x5e8d78){let _0x233a60=this['_getRecordLinkField'](_0x5e8d78);return _0x1e19fe(this['getValue'](_0x233a60['id']));}[_0x336728(0x2af)](_0x45346b,_0x475340){const _0x167a8b=_0x336728;let _0x1a0a3c=this['_getRecordLinkField'](_0x45346b),_0x23ca70=_0x4005a5(_0x475340),_0x2e8af0=_0x107ab8(this[_0x167a8b(0x185)][_0x167a8b(0x2a3)]()[_0x167a8b(0x217)](),_0x1a0a3c,_0x23ca70);if(!_0x2e8af0[_0x167a8b(0x1a2)])throw Error(_0x2e8af0[_0x167a8b(0x296)]??_0x167a8b(0x1c0));return this[_0x167a8b(0x207)][_0x167a8b(0x1ea)](_0x54f164['id'],{'unitId':this[_0x167a8b(0x185)]['getId'](),'tableId':this[_0x167a8b(0x27d)][_0x167a8b(0x23a)](),'recordId':this[_0x167a8b(0x213)],'fieldId':_0x45346b,'value':_0x23ca70,'source':_0x4fe3fa[_0x167a8b(0x2b6)]});}[_0x336728(0x1fe)](_0x28ab5f,_0x52a9ad){const _0xc100=_0x336728;let _0x24639e=_0x366eec(this[_0xc100(0x188)](_0x28ab5f));if(!_0x24639e)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x28ab5f+_0xc100(0x299));let _0xfc5a94=this[_0xc100(0x21d)](_0x28ab5f);return _0x24639e[_0xc100(0x181)]&&_0xfc5a94[_0xc100(0x24d)](_0x52a9ad)?!0x0:this['setLinkedRecordIds'](_0x28ab5f,_0x24639e[_0xc100(0x181)]?[..._0xfc5a94,_0x52a9ad]:[_0x52a9ad]);}['removeLinkedRecord'](_0x24eb43,_0x4c8494){const _0x4b3b5d=_0x336728;let _0x37c997=this[_0x4b3b5d(0x21d)](_0x24eb43);return!_0x37c997[_0x4b3b5d(0x24d)](_0x4c8494)||this[_0x4b3b5d(0x2af)](_0x24eb43,_0x37c997[_0x4b3b5d(0x1a3)](_0x398e84=>_0x398e84!==_0x4c8494));}[_0x336728(0x238)](_0x59011c){const _0x125be7=_0x336728;let _0x536e7=this[_0x125be7(0x2ad)](_0x59011c)[_0x125be7(0x22c)][_0x125be7(0x19b)](this[_0x125be7(0x213)])??null;return _0x536e7?this[_0x125be7(0x27d)][_0x125be7(0x229)](_0x536e7):null;}['getChildren'](_0x3e0257){const _0x41fbbf=_0x336728;return(this['_getHierarchyIndex'](_0x3e0257)[_0x41fbbf(0x1a7)][_0x41fbbf(0x19b)](this[_0x41fbbf(0x213)])??[])[_0x41fbbf(0x2a4)](_0x4ca54b=>{const _0x46c286=_0x41fbbf;let _0x2db3a8=this[_0x46c286(0x27d)][_0x46c286(0x229)](_0x4ca54b);return _0x2db3a8?[_0x2db3a8]:[];});}[_0x336728(0x186)](_0x593157){const _0x5797d5=_0x336728;let _0x37ac8c=this[_0x5797d5(0x2ad)](_0x593157),_0x682111=[],_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)][_0x5797d5(0x19b)](this['_recordId'])??null;for(;_0xbb4614;){let _0x1f6179=this[_0x5797d5(0x27d)]['getRecordById'](_0xbb4614);_0x1f6179&&_0x682111['push'](_0x1f6179),_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)]['get'](_0xbb4614)??null;}return _0x682111;}[_0x336728(0x24e)](_0x2b1bc1){const _0x288d9d=_0x336728;let _0x5596c2=this[_0x288d9d(0x2ad)](_0x2b1bc1),_0xf66e60=_0x5596c2[_0x288d9d(0x22d)][_0x288d9d(0x267)](this['_recordId']),_0x40686b=_0x5596c2[_0x288d9d(0x2ac)]['has'](this[_0x288d9d(0x213)])?this[_0x288d9d(0x219)](_0x5596c2[_0x288d9d(0x1a7)],this[_0x288d9d(0x213)]):[];return _0xf66e60<0x0?[]:_0x40686b['flatMap'](_0x74b6b1=>{const _0x68da72=_0x288d9d;let _0x558ddc=this['_table'][_0x68da72(0x229)](_0x74b6b1);return _0x558ddc?[_0x558ddc]:[];});}[_0x336728(0x253)](_0x1b7c05,_0x5df818,_0x519de7){const _0x2944cf=_0x336728;return this[_0x2944cf(0x207)]['syncExecuteCommand'](_0x241dc3['id'],{'unitId':this[_0x2944cf(0x185)][_0x2944cf(0x23a)](),'tableId':this[_0x2944cf(0x27d)][_0x2944cf(0x23a)](),'fieldId':_0x1b7c05,'recordId':this[_0x2944cf(0x213)],'parentRecordId':_0x5df818,'orderKey':_0x519de7,'source':_0x4fe3fa['Facade']});}[_0x336728(0x24b)](_0x5a01e2,_0x3016b9,_0x59a168='id',_0x5e177e){const _0x5ae890=_0x336728;let _0x1a380c=this['_table'][_0x5ae890(0x1f1)](),_0x5a5b19=Date[_0x5ae890(0x1a0)](),_0x32fda4={..._0x5e177e,'id':_0x2bd9cf(0x6),'values':B(_0x1a380c,_0x3016b9,_0x59a168),'orderKey':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1ac)])||''+_0x5a5b19,'createdAt':(_0x5e177e==null?void 0x0:_0x5e177e['createdAt'])||_0x5a5b19,'updatedAt':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1b7)])||_0x5a5b19};if(!this[_0x5ae890(0x207)]['syncExecuteCommand'](_0x5567bd['id'],{'unitId':this[_0x5ae890(0x185)][_0x5ae890(0x23a)](),'tableId':this['_table'][_0x5ae890(0x23a)](),'fieldId':_0x5a01e2,'parentRecordId':this[_0x5ae890(0x213)],'record':_0x32fda4,'source':_0x4fe3fa[_0x5ae890(0x2b6)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5ae890(0x213)]+'\x22.');return this['_inject'][_0x5ae890(0x279)](J,this[_0x5ae890(0x185)],this[_0x5ae890(0x27d)],_0x32fda4['id'],this[_0x5ae890(0x2b5)]);}[_0x336728(0x2ad)](_0x176378){const _0x17fec3=_0x336728;return _0xdaf857(this[_0x17fec3(0x27d)]['getTable'](),_0x176378);}['_collectDescendantIds'](_0xc099e1,_0x20e468){let _0x31c498=[],_0x51364e=_0x29cb27=>{const _0x44eb36=_0x52e5;for(let _0x3cadeb of _0xc099e1[_0x44eb36(0x19b)](_0x29cb27)??[])_0x31c498[_0x44eb36(0x26b)](_0x3cadeb),_0x51364e(_0x3cadeb);};return _0x51364e(_0x20e468),_0x31c498;}[_0x336728(0x247)](){const _0x513e7f=_0x336728;let _0x994a1f=this[_0x513e7f(0x27d)]['getTable']()['records'][this[_0x513e7f(0x213)]];if(!_0x994a1f)throw Error(_0x513e7f(0x227)+this['_recordId']+_0x513e7f(0x2a8));return _0x994a1f;}[_0x336728(0x188)](_0x490015){const _0x1a7fde=_0x336728;let _0x651363=this['_table']['getTable']()[_0x1a7fde(0x270)][_0x490015];if(!_0x651363||_0x651363[_0x1a7fde(0x261)]!==_0x33d599[_0x1a7fde(0x18f)])throw Error('[FRecord]:\x20field\x20\x22'+_0x490015+_0x1a7fde(0x29f));return _0x651363;}};Y=J=I([F(0x4,_0x2d81ac)],Y);let X=class{constructor(_0x25934e,_0xf0f665,_0x4dfa9f,_0x5336c8,_0x5e2cf0,_0x3afd33){const _0x4fe8d7=_0x336728;this['_base']=_0x25934e,this['_table']=_0xf0f665,this[_0x4fe8d7(0x225)]=_0x4dfa9f,this[_0x4fe8d7(0x1ef)]=_0x5336c8,this['_commandService']=_0x5e2cf0,this[_0x4fe8d7(0x29e)]=_0x3afd33;}[_0x336728(0x23a)](){const _0x477aa1=_0x336728;return this[_0x477aa1(0x225)];}['getView'](){const _0x5a6b10=_0x336728;return this[_0x5a6b10(0x183)]();}[_0x336728(0x1d1)](){const _0xc9bdd=_0x336728;return this['_getView']()[_0xc9bdd(0x191)];}['getType'](){const _0x4aeaca=_0x336728;return this['_getView']()[_0x4aeaca(0x261)];}[_0x336728(0x201)](_0x5c1002){const _0x1c2968=_0x336728;return this[_0x1c2968(0x207)][_0x1c2968(0x1ea)](_0x65495d['id'],{'unitId':this[_0x1c2968(0x185)][_0x1c2968(0x23a)](),'tableId':this[_0x1c2968(0x27d)][_0x1c2968(0x23a)](),'viewId':this[_0x1c2968(0x225)],'name':_0x5c1002});}['getConfig'](){const _0x3e20f4=_0x336728;let _0x144ede=this[_0x3e20f4(0x271)](),_0x3e233a=this[_0x3e20f4(0x183)]()[_0x3e20f4(0x212)];switch(_0x144ede){case _0x35b90a[_0x3e20f4(0x291)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x29c)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x2b1)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x1bb)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x275)]:return _0x3e233a;default:return _0x3e233a;}}[_0x336728(0x187)](_0x474fe9){const _0x1f5ec2=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3cd319['id'],{'unitId':this[_0x1f5ec2(0x185)][_0x1f5ec2(0x23a)](),'tableId':this[_0x1f5ec2(0x27d)]['getId'](),'viewId':this[_0x1f5ec2(0x225)],'patch':_0x474fe9});}[_0x336728(0x1e9)](){const _0x248c93=_0x336728;var _0x6816cb;return _0x5bb98a[_0x248c93(0x258)](((_0x6816cb=this['_getView']()['config'][_0x248c93(0x28f)])==null?void 0x0:_0x6816cb[_0x248c93(0x22a)])??[]);}[_0x336728(0x249)](_0x59f4ee){const _0x758966=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3b1b6b['id'],{'unitId':this[_0x758966(0x185)][_0x758966(0x23a)](),'tableId':this[_0x758966(0x27d)][_0x758966(0x23a)](),'viewId':this['_viewId'],'type':_0x43286c[_0x758966(0x23e)],'rules':_0x59f4ee});}['addConditionalColorRule'](_0x2d74ed){const _0x37ee0f=_0x336728;return this['_commandService'][_0x37ee0f(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x37ee0f(0x185)]['getId'](),'tableId':this[_0x37ee0f(0x27d)][_0x37ee0f(0x23a)](),'viewId':this[_0x37ee0f(0x225)],'type':_0x43286c['Add'],'rule':_0x2d74ed});}[_0x336728(0x2a5)](_0x4ba19a){const _0x208b72=_0x336728;return this['_commandService'][_0x208b72(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x208b72(0x185)][_0x208b72(0x23a)](),'tableId':this[_0x208b72(0x27d)]['getId'](),'viewId':this[_0x208b72(0x225)],'type':_0x43286c['Delete'],'ruleId':_0x4ba19a});}[_0x336728(0x182)](){const _0x2a43a0=_0x336728;return this[_0x2a43a0(0x207)][_0x2a43a0(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x2a43a0(0x185)][_0x2a43a0(0x23a)](),'tableId':this[_0x2a43a0(0x27d)]['getId'](),'viewId':this[_0x2a43a0(0x225)],'type':_0x43286c[_0x2a43a0(0x280)]});}[_0x336728(0x193)](){const _0x2b94d2=_0x336728;return this[_0x2b94d2(0x183)]()[_0x2b94d2(0x1a3)]??null;}[_0x336728(0x1f4)](_0x34d574){const _0x27bc20=_0x336728;return this[_0x27bc20(0x207)]['syncExecuteCommand'](_0x19bf5c['id'],{'unitId':this[_0x27bc20(0x185)][_0x27bc20(0x23a)](),'tableId':this[_0x27bc20(0x27d)][_0x27bc20(0x23a)](),'viewId':this[_0x27bc20(0x225)],'filter':_0x34d574});}[_0x336728(0x1ce)](){const _0x1bc956=_0x336728;return this[_0x1bc956(0x183)]()[_0x1bc956(0x1c7)]??[];}[_0x336728(0x2a7)](_0x4b1be1){const _0x217727=_0x336728;return this[_0x217727(0x207)][_0x217727(0x1ea)](_0x411c97['id'],{'unitId':this[_0x217727(0x185)]['getId'](),'tableId':this[_0x217727(0x27d)][_0x217727(0x23a)](),'viewId':this[_0x217727(0x225)],'sort':_0x4b1be1});}[_0x336728(0x19a)](){const _0x3d173a=_0x336728;return this[_0x3d173a(0x183)]()['group']??[];}[_0x336728(0x235)](_0x2436cc){const _0x494227=_0x336728;return this[_0x494227(0x207)][_0x494227(0x1ea)](_0x36027b['id'],{'unitId':this[_0x494227(0x185)][_0x494227(0x23a)](),'tableId':this[_0x494227(0x27d)][_0x494227(0x23a)](),'viewId':this['_viewId'],'group':_0x2436cc});}[_0x336728(0x26c)](_0x1fe371){const _0x3b30b2=_0x336728;var _0x2ec6b3;return z(this[_0x3b30b2(0x27d)][_0x3b30b2(0x1f1)]()['fields'][_0x1fe371])?((_0x2ec6b3=this[_0x3b30b2(0x183)]()['fieldSettings'])==null?void 0x0:_0x2ec6b3[_0x1fe371])??{}:{};}[_0x336728(0x21b)](){const _0x4de605=_0x336728;let _0x33e39d=this['_table'][_0x4de605(0x1f1)](),_0x57b31d=this[_0x4de605(0x183)]();return(_0x57b31d['fieldOrder']??_0x33e39d['fieldOrder'])['filter'](_0x5ae757=>{const _0x4598a3=_0x4de605;var _0xd6f48d;let _0x28d751=_0x33e39d['fields'][_0x5ae757];return z(_0x28d751)&&!((_0xd6f48d=_0x57b31d[_0x4598a3(0x221)])!=null&&(_0xd6f48d=_0xd6f48d[_0x5ae757])!=null&&_0xd6f48d['hidden']);})[_0x4de605(0x1f2)](_0x4fc506=>this[_0x4de605(0x1ef)][_0x4de605(0x279)](L,this['_base'],this[_0x4de605(0x27d)],_0x4fc506));}[_0x336728(0x1a9)](_0x229d43,_0x50dab0){const _0x138dbb=_0x336728;return z(this[_0x138dbb(0x27d)][_0x138dbb(0x1f1)]()['fields'][_0x229d43])?this[_0x138dbb(0x207)][_0x138dbb(0x1ea)](_0x113ed1['id'],{'unitId':this[_0x138dbb(0x185)]['getId'](),'tableId':this[_0x138dbb(0x27d)]['getId'](),'viewId':this[_0x138dbb(0x225)],'fieldId':_0x229d43,'visible':_0x50dab0}):!0x1;}['setFieldWidth'](_0x57961c,_0x2edcf5){const _0x5a92a1=_0x336728;return z(this[_0x5a92a1(0x27d)]['getTable']()[_0x5a92a1(0x270)][_0x57961c])?this[_0x5a92a1(0x207)][_0x5a92a1(0x1ea)](_0x5bb362['id'],{'unitId':this[_0x5a92a1(0x185)][_0x5a92a1(0x23a)](),'tableId':this[_0x5a92a1(0x27d)][_0x5a92a1(0x23a)](),'viewId':this['_viewId'],'fieldId':_0x57961c,'width':_0x2edcf5}):!0x1;}[_0x336728(0x1e1)](_0x391da1,_0x1fffce){const _0x31f4b3=_0x336728;let _0x62411=this[_0x31f4b3(0x27d)][_0x31f4b3(0x1f1)](),_0x168606=_0x1fffce['beforeFieldId']??_0x1fffce[_0x31f4b3(0x1cc)];return!z(_0x62411[_0x31f4b3(0x270)][_0x391da1])||!_0x168606||!z(_0x62411[_0x31f4b3(0x270)][_0x168606])?!0x1:this['_commandService'][_0x31f4b3(0x1ea)](_0x245f1a['id'],{'unitId':this['_base'][_0x31f4b3(0x23a)](),'tableId':this['_table']['getId'](),'viewId':this[_0x31f4b3(0x225)],'fieldId':_0x391da1,'target':_0x1fffce});}[_0x336728(0x22b)](_0x1dfe21){const _0x2e33ef=_0x336728;return this[_0x2e33ef(0x207)]['syncExecuteCommand'](_0x265b4d['id'],{'unitId':this[_0x2e33ef(0x185)][_0x2e33ef(0x23a)](),'tableId':this[_0x2e33ef(0x27d)][_0x2e33ef(0x23a)](),'viewId':this[_0x2e33ef(0x225)],'target':_0x1dfe21});}[_0x336728(0x1bf)](){const _0x1f5881=_0x336728;return this['_commandService'][_0x1f5881(0x1ea)](_0x5d89f8['id'],{'unitId':this['_base'][_0x1f5881(0x23a)](),'tableId':this[_0x1f5881(0x27d)][_0x1f5881(0x23a)](),'viewId':this['_viewId']});}[_0x336728(0x21e)](){const _0x4147a4=_0x336728;return this[_0x4147a4(0x29e)][_0x4147a4(0x21e)](this[_0x4147a4(0x185)][_0x4147a4(0x2a3)]()['getSnapshot'](),this['_table'][_0x4147a4(0x23a)](),this[_0x4147a4(0x225)]);}['_getView'](){const _0x4830d5=_0x336728;let _0x31b139=this[_0x4830d5(0x27d)][_0x4830d5(0x1f1)]()[_0x4830d5(0x28c)][this[_0x4830d5(0x225)]];if(!_0x31b139)throw Error('[FView]:\x20view\x20\x22'+this[_0x4830d5(0x225)]+'\x22\x20does\x20not\x20exist.');return _0x31b139;}};X=I([F(0x4,_0x2d81ac),F(0x5,_0x460976)],X);let Z=class{constructor(_0x3c9271,_0x2fb831,_0xbaeec9,_0x2c91fc,_0x4732e4){const _0x48f981=_0x336728;this['_base']=_0x3c9271,this[_0x48f981(0x224)]=_0x2fb831,this['_injector']=_0xbaeec9,this[_0x48f981(0x207)]=_0x2c91fc,this[_0x48f981(0x29e)]=_0x4732e4;}[_0x336728(0x2a3)](){const _0x2db909=_0x336728;return this[_0x2db909(0x185)][_0x2db909(0x2a3)]();}[_0x336728(0x1f1)](){return this['_getTable']();}[_0x336728(0x23a)](){return this['_tableId'];}[_0x336728(0x293)](){const _0x58b9c9=_0x336728;return _0x2ee0b8(this[_0x58b9c9(0x1fa)]());}[_0x336728(0x274)](_0x4ee2cd){const _0x2983bf=_0x336728;return this[_0x2983bf(0x207)][_0x2983bf(0x1ea)](_0x3d3845['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2983bf(0x224)],'fieldId':_0x4ee2cd});}[_0x336728(0x1d1)](){const _0x244e8c=_0x336728;return this[_0x244e8c(0x1fa)]()[_0x244e8c(0x191)];}[_0x336728(0x201)](_0x1cf3ca){const _0x452829=_0x336728;return this[_0x452829(0x207)][_0x452829(0x1ea)](_0x83c0cd['id'],{'unitId':this[_0x452829(0x185)]['getId'](),'tableId':this[_0x452829(0x224)],'name':_0x1cf3ca});}[_0x336728(0x1fd)](_0x5e3f89,_0x4b20e5){const _0x8eafcd=_0x336728;let _0x389e01=this['_base']['getBase']()[_0x8eafcd(0x217)](),_0x5999bf=this['_getTable']();if(_0x4b20e5){let _0x4cee2e=this[_0x8eafcd(0x29e)][_0x8eafcd(0x21e)](_0x389e01,this[_0x8eafcd(0x224)],_0x4b20e5),_0x1b564e=_0x5999bf[_0x8eafcd(0x28c)][_0x4b20e5],_0x5a524b=_0x5e3f89[_0x8eafcd(0x222)]??et(_0x5999bf,_0x1b564e,_0x4cee2e),_0x3e1cff=_0x8eafcd(0x1cb)in _0x4cee2e&&Array['isArray'](_0x4cee2e[_0x8eafcd(0x1cb)])?_0x4cee2e[_0x8eafcd(0x1cb)]:[];return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x5a524b,'rows':_0x3e1cff});}let _0x40adbb=(_0x5999bf[_0x8eafcd(0x243)]?_0x5999bf[_0x8eafcd(0x243)][_0x8eafcd(0x1f2)](_0x263086=>_0x5999bf['records'][_0x263086]):Object['values'](_0x5999bf[_0x8eafcd(0x24a)])['sort']((_0x2c93ca,_0x5989f5)=>_0x2c93ca[_0x8eafcd(0x1ac)]['localeCompare'](_0x5989f5[_0x8eafcd(0x1ac)])))[_0x8eafcd(0x1a3)](_0x25786b=>_0x25786b)[_0x8eafcd(0x1f2)](_0x25f8a9=>({'recordId':_0x25f8a9['id'],'values':_0x25f8a9['values']})),_0x565326=_0x5e3f89[_0x8eafcd(0x222)]??_0x5999bf[_0x8eafcd(0x205)][_0x8eafcd(0x1a3)](_0x58c020=>z(_0x5999bf[_0x8eafcd(0x270)][_0x58c020]));return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x565326,'rows':_0x40adbb});}['getPrimaryFieldId'](){const _0x2d8ac4=_0x336728;return this['_getTable']()[_0x2d8ac4(0x1fb)];}[_0x336728(0x23f)](){const _0x30f369=_0x336728;let _0x5bd08f=this[_0x30f369(0x1fa)]();return _0x5bd08f['fieldOrder'][_0x30f369(0x1f2)](_0x415fcf=>_0x5bd08f[_0x30f369(0x270)][_0x415fcf])[_0x30f369(0x1a3)](z)[_0x30f369(0x1f2)](_0x35647a=>this['_injector'][_0x30f369(0x279)](L,this[_0x30f369(0x185)],this,_0x35647a['id']));}['getFieldById'](_0x962171){const _0x2db91d=_0x336728;let _0x2c2aff=this['_getTable']()[_0x2db91d(0x270)][_0x962171];return z(_0x2c2aff)?this[_0x2db91d(0x1ef)][_0x2db91d(0x279)](L,this['_base'],this,_0x2c2aff['id']):null;}[_0x336728(0x1f3)](_0x577e61){const _0x1ed338=_0x336728;let _0x512fb9=this[_0x1ed338(0x1fa)]()[_0x1ed338(0x270)],_0x5dfc77=Object['values'](_0x512fb9)[_0x1ed338(0x252)](_0x389c52=>z(_0x389c52)&&_0x389c52[_0x1ed338(0x191)]===_0x577e61);return _0x5dfc77?this['_injector'][_0x1ed338(0x279)](L,this['_base'],this,_0x5dfc77['id']):null;}[_0x336728(0x196)](){const _0x1e44d5=_0x336728;let _0xb3363a=this[_0x1e44d5(0x1fa)]()[_0x1e44d5(0x1fb)];return this[_0x1e44d5(0x1ef)]['createInstance'](L,this['_base'],this,_0xb3363a);}['addField'](_0x58f44c,_0x367700,_0x584afb){const _0x196d08=_0x336728;var _0x45f7ca,_0x13e314;if(!Object[_0x196d08(0x2ab)](_0x33d599)[_0x196d08(0x27b)](_0x1e49e3=>_0x1e49e3===_0x367700))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x367700)+'\x22.');if(_0x367700===_0x33d599[_0x196d08(0x26f)]){if(!_0x584afb||!(_0x196d08(0x1af)in _0x584afb)||!Array[_0x196d08(0x1aa)](_0x584afb['externalReferences']))throw Error(_0x196d08(0x251));if(_0x584afb[_0x196d08(0x1af)][_0x196d08(0x1b5)]>0x0&&!this['_commandService'][_0x196d08(0x1ea)](_0x46103d['id'],{'unitId':this[_0x196d08(0x185)]['getId'](),'references':_0x584afb[_0x196d08(0x1af)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x58f44c+'\x22');}if(_0x367700===_0x33d599[_0x196d08(0x18f)]&&(typeof(_0x584afb==null||(_0x45f7ca=_0x584afb[_0x196d08(0x287)])==null||(_0x45f7ca=_0x45f7ca[_0x196d08(0x212)])==null?void 0x0:_0x45f7ca['targetTableId'])!='string'||typeof _0x584afb['field'][_0x196d08(0x212)][_0x196d08(0x181)]!='boolean'))throw Error(_0x196d08(0x1eb));let _0x4535d1={..._0x584afb==null?void 0x0:_0x584afb[_0x196d08(0x287)],'id':_0x2bd9cf(0x6),'name':_0x58f44c,'type':_0x367700,'config':(_0x584afb==null||(_0x13e314=_0x584afb[_0x196d08(0x287)])==null?void 0x0:_0x13e314[_0x196d08(0x212)])??{}};if(!this[_0x196d08(0x207)][_0x196d08(0x1ea)](_0x1978a1['id'],{'unitId':this[_0x196d08(0x185)][_0x196d08(0x23a)](),'tableId':this['_tableId'],'field':_0x4535d1,'index':_0x584afb==null?void 0x0:_0x584afb['index']}))throw Error(_0x196d08(0x25f)+_0x58f44c+'\x22');return this[_0x196d08(0x1ef)][_0x196d08(0x279)](L,this[_0x196d08(0x185)],this,_0x4535d1['id']);}[_0x336728(0x1b9)](){const _0x1cd9b2=_0x336728;return this[_0x1cd9b2(0x25e)]()[_0x1cd9b2(0x1f2)](_0x212eec=>this[_0x1cd9b2(0x1ef)][_0x1cd9b2(0x279)](Y,this[_0x1cd9b2(0x185)],this,_0x212eec,this[_0x1cd9b2(0x1ef)]));}[_0x336728(0x229)](_0x5b110c){const _0x4a9764=_0x336728;return this[_0x4a9764(0x1fa)]()[_0x4a9764(0x24a)][_0x5b110c]?this[_0x4a9764(0x1ef)][_0x4a9764(0x279)](Y,this['_base'],this,_0x5b110c,this[_0x4a9764(0x1ef)]):null;}[_0x336728(0x290)](_0x5ecd63={}){const _0x583211=_0x336728;let _0x4c09d1=this[_0x583211(0x1fa)](),_0x3d40ef=this['_resolveRecordIds'](_0x5ecd63),_0xfe65e5=Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d0)]??0x0),_0x1fc62b=_0x5ecd63[_0x583211(0x1d5)]==null?null:Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d5)]),_0x4c65c7=Je(_0x3d40ef[_0x583211(0x1f2)](_0x4e1206=>_0x4c09d1[_0x583211(0x24a)][_0x4e1206])[_0x583211(0x1a3)](_0x32fb86=>Xe(_0x32fb86,_0x4c09d1,_0x5ecd63['filter'])),_0x4c09d1,_0x5ecd63[_0x583211(0x1c7)]);return{'records':qe(_0x4c65c7,_0x5ecd63)[_0x583211(0x1f2)](_0x26e8b4=>this[_0x583211(0x1ef)]['createInstance'](Y,this[_0x583211(0x185)],this,_0x26e8b4['id'],this[_0x583211(0x1ef)])),'total':_0x4c65c7[_0x583211(0x1b5)],'offset':_0xfe65e5,'limit':_0x1fc62b,'hasMore':_0x1fc62b!=null&&_0xfe65e5+_0x1fc62b<_0x4c65c7[_0x583211(0x1b5)]};}[_0x336728(0x194)](_0x1cb415,_0x3a0864='id',_0x27f752){const _0x4081be=_0x336728;let _0x564613=this['_getTable'](),_0x7cfe48=Date['now'](),_0x537f97={..._0x27f752,'id':_0x2bd9cf(0x6),'values':B(_0x564613,_0x1cb415,_0x3a0864),'orderKey':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1ac)])||''+_0x7cfe48,'createdAt':(_0x27f752==null?void 0x0:_0x27f752['createdAt'])||_0x7cfe48,'updatedAt':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1b7)])||_0x7cfe48};if(!this[_0x4081be(0x207)][_0x4081be(0x1ea)](_0x22871f['id'],{'unitId':this['_base'][_0x4081be(0x23a)](),'tableId':this[_0x4081be(0x224)],'record':_0x537f97,'source':_0x4fe3fa[_0x4081be(0x2b6)]}))throw Error(_0x4081be(0x27f)+_0x537f97['id']+'\x22');return this[_0x4081be(0x1ef)]['createInstance'](Y,this[_0x4081be(0x185)],this,_0x537f97['id'],this[_0x4081be(0x1ef)]);}[_0x336728(0x29b)](_0x4c1176){const _0x5dff74=_0x336728;if(!_0x4c1176[_0x5dff74(0x1b5)])return[];let _0x12787d=this[_0x5dff74(0x1fa)](),_0x3d16af=Date[_0x5dff74(0x1a0)](),_0x427216=_0x4c1176['map']((_0x163d01,_0x13d3c7)=>{const _0x2898d2=_0x5dff74;var _0x257006,_0x5712ee,_0x4d41a3;return{..._0x163d01[_0x2898d2(0x1ba)],'id':_0x2bd9cf(0x6),'values':B(_0x12787d,_0x163d01['values'],_0x163d01[_0x2898d2(0x1c5)]??'id'),'orderKey':((_0x257006=_0x163d01['record'])==null?void 0x0:_0x257006[_0x2898d2(0x1ac)])||''+(_0x3d16af+_0x13d3c7),'createdAt':((_0x5712ee=_0x163d01[_0x2898d2(0x1ba)])==null?void 0x0:_0x5712ee[_0x2898d2(0x2a6)])||_0x3d16af,'updatedAt':((_0x4d41a3=_0x163d01['record'])==null?void 0x0:_0x4d41a3[_0x2898d2(0x1b7)])||_0x3d16af};});if(!this[_0x5dff74(0x207)][_0x5dff74(0x1ea)](_0x144dc8['id'],{'unitId':this[_0x5dff74(0x185)][_0x5dff74(0x23a)](),'tableId':this['_tableId'],'records':_0x427216,'source':_0x4fe3fa['Facade']}))throw Error(_0x5dff74(0x255));return _0x427216[_0x5dff74(0x1f2)](_0x5aae61=>this[_0x5dff74(0x1ef)][_0x5dff74(0x279)](Y,this['_base'],this,_0x5aae61['id'],this[_0x5dff74(0x1ef)]));}[_0x336728(0x204)](_0x35169c){const _0x4e0c0c=_0x336728;return!_0x35169c['length']||this[_0x4e0c0c(0x207)]['syncExecuteCommand'](_0x20826e['id'],{'unitId':this['_base'][_0x4e0c0c(0x23a)](),'tableId':this['_tableId'],'recordIds':_0x35169c,'source':_0x4fe3fa[_0x4e0c0c(0x2b6)]});}[_0x336728(0x1ee)](_0x42567f,_0x3190ad,_0x2c8232=0x1,_0x2bcc94=0x1){const _0x5ee001=_0x336728;return this[_0x5ee001(0x1ef)]['createInstance'](q,this[_0x5ee001(0x185)],this,{'startRow':_0x42567f,'endRow':_0x42567f+_0x2c8232-0x1,'startColumn':_0x3190ad,'endColumn':_0x3190ad+_0x2bcc94-0x1},this[_0x5ee001(0x1ef)]);}[_0x336728(0x27a)](){const _0x3d0e2a=_0x336728;var _0x43b915;let _0x2b32e8=_0x1696cb(this[_0x3d0e2a(0x1fa)]()),_0xd8fb2b=((_0x43b915=_0x2b32e8['recordOrder'])==null?void 0x0:_0x43b915[_0x3d0e2a(0x1b5)])??0x0,_0x2f7573=_0x2b32e8[_0x3d0e2a(0x205)][_0x3d0e2a(0x1a3)](_0x25a65f=>z(_0x2b32e8['fields'][_0x25a65f]))[_0x3d0e2a(0x1b5)];return this['getRange'](0x0,0x0,Math[_0x3d0e2a(0x1a1)](_0xd8fb2b,0x1),Math[_0x3d0e2a(0x1a1)](_0x2f7573,0x1));}[_0x336728(0x1e7)](){const _0xa9b47a=_0x336728;let _0x3f5651=this[_0xa9b47a(0x1fa)]();return _0x3f5651[_0xa9b47a(0x197)][_0xa9b47a(0x1a3)](_0x52f203=>_0x3f5651[_0xa9b47a(0x28c)][_0x52f203])[_0xa9b47a(0x1f2)](_0x5d0ec8=>this['_injector'][_0xa9b47a(0x279)](X,this[_0xa9b47a(0x185)],this,_0x5d0ec8,this['_injector']));}[_0x336728(0x206)](_0x1b1d83){const _0x5497de=_0x336728;return this[_0x5497de(0x1fa)]()[_0x5497de(0x28c)][_0x1b1d83]?this['_injector'][_0x5497de(0x279)](X,this[_0x5497de(0x185)],this,_0x1b1d83,this['_injector']):null;}['getViewByName'](_0xc208ea){const _0x3d5e8e=_0x336728;let _0x5624ba=this[_0x3d5e8e(0x1fa)](),_0x381c60=Object['values'](_0x5624ba[_0x3d5e8e(0x28c)])[_0x3d5e8e(0x252)](_0x3f867c=>_0x3f867c[_0x3d5e8e(0x191)]===_0xc208ea);return _0x381c60?this[_0x3d5e8e(0x1ef)][_0x3d5e8e(0x279)](X,this[_0x3d5e8e(0x185)],this,_0x381c60['id'],this[_0x3d5e8e(0x1ef)]):null;}[_0x336728(0x1a6)](_0x6e1cb8,_0x2aacd6,_0x598ba4){const _0x2305f3=_0x336728;var _0x2e3c07,_0x126831,_0x3075f0,_0x28aea4;let _0x2ca63a=this[_0x2305f3(0x1fa)](),_0x503182=[_0x2b3441,...((_0x598ba4==null||(_0x2e3c07=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x2e3c07[_0x2305f3(0x205)])??_0x2ca63a[_0x2305f3(0x205)])[_0x2305f3(0x1a3)](_0x594c4c=>z(_0x2ca63a['fields'][_0x594c4c]))],_0x532bfb={..._0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x27c)],'id':_0x2bd9cf(0x6),'name':_0x6e1cb8,'type':_0x2aacd6,'tableId':this[_0x2305f3(0x224)],'config':(_0x598ba4==null||(_0x126831=_0x598ba4['view'])==null?void 0x0:_0x126831[_0x2305f3(0x212)])??{},'fieldOrder':_0x503182,'fieldSettings':{..._0x598ba4==null||(_0x3075f0=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x3075f0[_0x2305f3(0x221)],[_0x2b3441]:{..._0x598ba4==null||(_0x28aea4=_0x598ba4[_0x2305f3(0x27c)])==null||(_0x28aea4=_0x28aea4['fieldSettings'])==null?void 0x0:_0x28aea4[_0x2b3441],'hidden':!0x0}}};if(!this[_0x2305f3(0x207)][_0x2305f3(0x1ea)](_0x338c3b['id'],{'unitId':this[_0x2305f3(0x185)][_0x2305f3(0x23a)](),'tableId':this['_tableId'],'view':_0x532bfb,'index':_0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x1f9)]}))throw Error(_0x2305f3(0x262)+_0x6e1cb8+'\x22');return this[_0x2305f3(0x1ef)][_0x2305f3(0x279)](X,this[_0x2305f3(0x185)],this,_0x532bfb['id'],this[_0x2305f3(0x1ef)]);}[_0x336728(0x1d8)](){const _0x3e6e4f=_0x336728;let _0x3b4b8c=this[_0x3e6e4f(0x1fa)](),_0x54d37d=_0x3b4b8c[_0x3e6e4f(0x205)][_0x3e6e4f(0x1a3)](_0x49bfc3=>z(_0x3b4b8c[_0x3e6e4f(0x270)][_0x49bfc3])),_0x8f7d0e=_0x3b4b8c[_0x3e6e4f(0x197)]['filter'](_0x2370f5=>_0x3b4b8c[_0x3e6e4f(0x28c)][_0x2370f5]);return{'id':_0x3b4b8c['id'],'name':_0x3b4b8c[_0x3e6e4f(0x191)],'primaryFieldId':_0x3b4b8c[_0x3e6e4f(0x1fb)],'fieldIds':_0x54d37d,'viewIds':_0x8f7d0e,'recordCount':this[_0x3e6e4f(0x25e)]()[_0x3e6e4f(0x1b5)],'fields':_0x54d37d[_0x3e6e4f(0x1f2)](_0xac249e=>{const _0x27b70a=_0x3e6e4f;let _0x12d825=_0x3b4b8c[_0x27b70a(0x270)][_0xac249e];return{'id':_0x12d825['id'],'name':_0x12d825[_0x27b70a(0x191)],'type':_0x12d825[_0x27b70a(0x261)],'config':_0x12d825[_0x27b70a(0x212)],'readonly':_0x12d825['readonly'],'description':_0x12d825[_0x27b70a(0x272)]};}),'views':_0x8f7d0e['map'](_0x4e0209=>{const _0x42b7f2=_0x3e6e4f;let _0x1b13fd=_0x3b4b8c['views'][_0x4e0209];return{'id':_0x1b13fd['id'],'name':_0x1b13fd['name'],'type':_0x1b13fd[_0x42b7f2(0x261)]};})};}[_0x336728(0x1fa)](){const _0x2158ee=_0x336728;let _0x308978=this[_0x2158ee(0x185)][_0x2158ee(0x2a3)]()[_0x2158ee(0x217)]()['tables'][this[_0x2158ee(0x224)]];if(!_0x308978)throw Error('[FTable]:\x20table\x20\x22'+this['_tableId']+_0x2158ee(0x2a8));return _0x308978;}[_0x336728(0x25e)](_0x187f70={}){const _0x1e7f5f=_0x336728;let _0x46813c=this[_0x1e7f5f(0x185)][_0x1e7f5f(0x2a3)]()[_0x1e7f5f(0x217)](),_0x6aafe2=this[_0x1e7f5f(0x1fa)]();if(_0x187f70['viewId']){let _0x1694b4=this[_0x1e7f5f(0x29e)]['getProjection'](_0x46813c,this['_tableId'],_0x187f70[_0x1e7f5f(0x1ae)]);if('rows'in _0x1694b4&&Array[_0x1e7f5f(0x1aa)](_0x1694b4[_0x1e7f5f(0x1cb)]))return _0x1694b4[_0x1e7f5f(0x1cb)][_0x1e7f5f(0x1f2)](_0x27ba5a=>_0x27ba5a['recordId']);}return(_0x6aafe2[_0x1e7f5f(0x243)]?_0x6aafe2[_0x1e7f5f(0x243)]['map'](_0x1fd847=>_0x6aafe2[_0x1e7f5f(0x24a)][_0x1fd847]):Object['values'](_0x6aafe2[_0x1e7f5f(0x24a)])[_0x1e7f5f(0x1c7)]((_0x5f4981,_0x4e291a)=>_0x5f4981[_0x1e7f5f(0x1ac)][_0x1e7f5f(0x234)](_0x4e291a[_0x1e7f5f(0x1ac)])))[_0x1e7f5f(0x1a3)](_0x1d3985=>_0x1d3985)[_0x1e7f5f(0x1f2)](_0x17fee5=>_0x17fee5['id']);}};Z=I([F(0x3,_0x2d81ac),F(0x4,_0x460976)],Z);function _0x52e5(_0x11cead,_0x180fbf){_0x11cead=_0x11cead-0x17d;const _0xcde0e8=_0xcde0();let _0x52e5ef=_0xcde0e8[_0x11cead];return _0x52e5ef;}function qe(_0x492bcf,_0xa23636){const _0x3c7ca6=_0x336728;let _0xbfa501=Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636['offset']??0x0);return _0xa23636['limit']==null?_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501):_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501,_0xbfa501+Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636[_0x3c7ca6(0x1d5)]));}function Je(_0xf0b280,_0x41ae63,_0x454d65=[]){const _0x2feeb5=_0x336728;return _0x454d65[_0x2feeb5(0x1b5)]?[..._0xf0b280][_0x2feeb5(0x1c7)]((_0x563aaf,_0x114fa8)=>{const _0x2d24bd=_0x2feeb5;for(let _0x1845d8 of _0x454d65){var _0x55cd36;let _0x30b153=_0x1845d8[_0x2d24bd(0x228)]===_0x4baab9['DESC']?-0x1:0x1,_0x1e2af2=Ye(_0x563aaf[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],_0x114fa8[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],(_0x55cd36=_0x41ae63[_0x2d24bd(0x270)][_0x1845d8['fieldId']])==null?void 0x0:_0x55cd36[_0x2d24bd(0x261)]);if(_0x1e2af2!==0x0)return _0x1e2af2*_0x30b153;}return String(_0x563aaf[_0x2d24bd(0x1ac)]??_0x563aaf['id'])['localeCompare'](String(_0x114fa8['orderKey']??_0x114fa8['id']));}):_0xf0b280;}function Ye(_0x5589ab,_0x35f463,_0x12b60f){const _0x4ba113=_0x336728;return _0x5589ab==null&&_0x35f463==null?0x0:_0x5589ab==null?-0x1:_0x35f463==null?0x1:typeof _0x5589ab=='number'&&typeof _0x35f463==_0x4ba113(0x284)?_0x5589ab-_0x35f463:_0x12b60f===_0x33d599[_0x4ba113(0x265)]?Number(_0x5589ab)-Number(_0x35f463):String(_0x5589ab)[_0x4ba113(0x234)](String(_0x35f463));}function Xe(_0x2d4fd2,_0x56b182,_0x442142){const _0x221362=_0x336728;var _0x3196cd;if(!_0x442142||!((_0x3196cd=_0x442142[_0x221362(0x28d)])!=null&&_0x3196cd[_0x221362(0x1b5)]))return!0x0;let {conjunction:_0x2e0427=_0x5f2ca0['OR'],conditions:_0x18a901}=_0x442142;return _0x2e0427===_0x5f2ca0[_0x221362(0x1e0)]&&_0x18a901[_0x221362(0x1b5)]>0x1?_0x18a901[_0x221362(0x19e)](_0x19cf24=>Ze(_0x2d4fd2,_0x56b182,_0x19cf24)):_0x18a901['some'](_0x391b3c=>Ze(_0x2d4fd2,_0x56b182,_0x391b3c));}function Ze(_0x1de904,_0x2fc691,_0x3a9f73){const _0x8cbec6=_0x336728;let _0x4afabf=_0x1de904[_0x8cbec6(0x2ab)][_0x3a9f73[_0x8cbec6(0x1c3)]],_0xf7e061=_0x2fc691['fields'][_0x3a9f73[_0x8cbec6(0x1c3)]];if(Qe(_0x3a9f73)){let _0x473f1e=$e(_0x3a9f73)[_0x8cbec6(0x2b3)](String(_0x4afabf??''));return _0x3a9f73[_0x8cbec6(0x199)]===_0x8cbec6(0x18d)?_0x473f1e:!_0x473f1e;}return!_0xf7e061||_0x5e33be(_0x4afabf,_0x3a9f73[_0x8cbec6(0x199)],_0x3a9f73['value'],_0xf7e061);}function Qe(_0x5728c5){const _0xeaa0c=_0x336728;return _0x5728c5[_0xeaa0c(0x199)]===_0xeaa0c(0x18d)||_0x5728c5['operator']===_0xeaa0c(0x1b6);}function $e(_0x1065e4){const _0x7f8db=_0x336728;let _0x27a92e=String(_0x1065e4[_0x7f8db(0x1b4)]??'');if(_0x27a92e[_0x7f8db(0x1b5)]>0x200)throw Error(_0x7f8db(0x268));try{return new RegExp(_0x27a92e,_0x1065e4[_0x7f8db(0x232)]?void 0x0:'i');}catch(_0x10167e){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x27a92e+'.\x20'+(_0x10167e instanceof Error?_0x10167e['message']:String(_0x10167e)));}}function et(_0x12f6c2,_0x401507,_0x6583ae){const _0x37a45a=_0x336728;if(_0x6583ae[_0x37a45a(0x261)]!==_0x37a45a(0x1e2)){var _0x38824e;if(_0x6583ae['type']===_0x35b90a['Kanban']){var _0x1b568b;let _0x5d0aa4=[((_0x1b568b=_0x6583ae[_0x37a45a(0x270)])==null||(_0x1b568b=_0x1b568b[0x0])==null?void 0x0:_0x1b568b['id'])??_0x12f6c2[_0x37a45a(0x1fb)],..._0x6583ae[_0x37a45a(0x250)]??[]];return Array[_0x37a45a(0x2aa)](new Set(_0x5d0aa4[_0x37a45a(0x1a3)](_0x45a9d0=>!!_0x12f6c2['fields'][_0x45a9d0])));}if((_0x38824e=_0x6583ae['fields'])!=null&&_0x38824e[_0x37a45a(0x1b5)])return _0x6583ae[_0x37a45a(0x270)][_0x37a45a(0x1f2)](_0x65ec45=>_0x65ec45['id'])[_0x37a45a(0x1a3)](_0x597b20=>{const _0x46260f=_0x37a45a;var _0x596311;return!!(_0x12f6c2[_0x46260f(0x270)][_0x597b20]&&!(_0x401507!=null&&(_0x596311=_0x401507[_0x46260f(0x221)])!=null&&(_0x596311=_0x596311[_0x597b20])!=null&&_0x596311[_0x46260f(0x28e)]));});}return _0x12f6c2[_0x37a45a(0x205)][_0x37a45a(0x1a3)](_0x3e9a40=>{const _0x4b767a=_0x37a45a;var _0xd6a67;return!!(_0x12f6c2['fields'][_0x3e9a40]&&!(_0x401507!=null&&(_0xd6a67=_0x401507[_0x4b767a(0x221)])!=null&&(_0xd6a67=_0xd6a67[_0x3e9a40])!=null&&_0xd6a67[_0x4b767a(0x28e)]));});}let Q=class{constructor(_0xff975f,_0x26b522,_0x40b831,_0x66acc){const _0x515758=_0x336728;this[_0x515758(0x185)]=_0xff975f,this[_0x515758(0x1ef)]=_0x26b522,this[_0x515758(0x248)]=_0x40b831,this['_commandService']=_0x66acc;}[_0x336728(0x2a3)](){const _0x1dd37c=_0x336728;return this[_0x1dd37c(0x185)];}['getId'](){const _0x37f195=_0x336728;return this['_base'][_0x37f195(0x210)]();}[_0x336728(0x2a0)](){const _0xf9558d=_0x336728;return this[_0xf9558d(0x248)][_0xf9558d(0x200)](this[_0xf9558d(0x23a)]())??_0x5bb98a[_0xf9558d(0x258)](this[_0xf9558d(0x185)][_0xf9558d(0x217)]());}[_0x336728(0x1d1)](){const _0x423e39=_0x336728;return this[_0x423e39(0x185)]['getSnapshot']()[_0x423e39(0x191)];}[_0x336728(0x201)](_0x321516){const _0x1afc6b=_0x336728;this[_0x1afc6b(0x207)][_0x1afc6b(0x1ea)](_0x3a2e4a['id'],{'unitId':this[_0x1afc6b(0x23a)](),'name':_0x321516});}[_0x336728(0x2b7)](){const _0x41aace=_0x336728;let _0xdf513f=this['_base']['getSnapshot']();return _0xdf513f[_0x41aace(0x1ad)][_0x41aace(0x1f2)](_0x1d8615=>_0xdf513f[_0x41aace(0x189)][_0x1d8615])[_0x41aace(0x1a3)](_0x369e96=>_0x369e96)[_0x41aace(0x1f2)](_0x27aef5=>this[_0x41aace(0x1ef)][_0x41aace(0x279)](Z,this,_0x27aef5['id'],this[_0x41aace(0x1ef)]));}['getTableById'](_0x2139b8){const _0xfa961=_0x336728;let _0x5ab081=this['_base'][_0xfa961(0x217)]()[_0xfa961(0x189)][_0x2139b8];return _0x5ab081?this[_0xfa961(0x1ef)][_0xfa961(0x279)](Z,this,_0x5ab081['id'],this[_0xfa961(0x1ef)]):null;}[_0x336728(0x198)](_0x28c671){const _0x3293fd=_0x336728;let _0x49721e=this[_0x3293fd(0x185)][_0x3293fd(0x217)](),_0x1456df=Object[_0x3293fd(0x2ab)](_0x49721e[_0x3293fd(0x189)])[_0x3293fd(0x252)](_0xf52a38=>_0xf52a38[_0x3293fd(0x191)]===_0x28c671);return _0x1456df?this[_0x3293fd(0x1ef)][_0x3293fd(0x279)](Z,this,_0x1456df['id'],this[_0x3293fd(0x1ef)]):null;}[_0x336728(0x28a)](_0x1644a1,_0x3b0af3){const _0x507c97=_0x336728;let _0x3c44af=_0x16a351({'id':_0x2bd9cf(),'name':_0x1644a1,..._0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x23c)],'primaryFieldName':_0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x292)]}),_0x21a6dd=_0x5bb98a[_0x507c97(0x1f0)](_0x3c44af,(_0x3b0af3==null?void 0x0:_0x3b0af3['table'])??{});if(!this[_0x507c97(0x207)][_0x507c97(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x507c97(0x185)][_0x507c97(0x210)](),'table':_0x21a6dd,'index':_0x3b0af3==null?void 0x0:_0x3b0af3['index']}))throw Error(_0x507c97(0x211)+_0x1644a1+'\x22.');return this['_injector'][_0x507c97(0x279)](Z,this,_0x21a6dd['id'],this[_0x507c97(0x1ef)]);}[_0x336728(0x1e8)](_0x27f639){const _0x2fa9ac=_0x336728;let _0x3ec052=typeof _0x27f639==_0x2fa9ac(0x1c9)?_0x27f639:_0x27f639[_0x2fa9ac(0x23a)]();if(!this['_commandService'][_0x2fa9ac(0x1ea)](_0x13a13d['id'],{'unitId':this[_0x2fa9ac(0x185)]['getUnitId'](),'tableId':_0x3ec052}))throw Error(_0x2fa9ac(0x1d7)+_0x3ec052+'\x22.');return!0x0;}[_0x336728(0x20b)](_0x29c475,_0x168899){const _0x168b73=_0x336728;let _0x36d5a3=this['_base'][_0x168b73(0x217)](),_0x129e70=typeof _0x29c475=='string'?_0x29c475:_0x29c475['getId'](),_0x392e92=_0x36d5a3['tables'][_0x129e70];if(!_0x392e92)throw Error('[FBase]:\x20table\x20\x22'+_0x129e70+_0x168b73(0x2a8));let _0x59050a=_0x36d5a3['tableOrder']['indexOf'](_0x129e70)+0x1,_0x55eb8d=_0x5e421d(_0x392e92,{'id':_0x2bd9cf(),'name':_0x392e92['name']+_0x168b73(0x297),'includeRecords':(_0x168899==null?void 0x0:_0x168899['includeRecords'])??!0x1,'regenerateViewIds':(_0x168899==null?void 0x0:_0x168899['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x168b73(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x168b73(0x185)][_0x168b73(0x210)](),'table':_0x55eb8d,'index':_0x59050a}))throw Error(_0x168b73(0x28b)+_0x129e70+'\x22.');return this[_0x168b73(0x1ef)]['createInstance'](Z,this,_0x55eb8d['id'],this[_0x168b73(0x1ef)]);}[_0x336728(0x1d8)](){const _0x186225=_0x336728;let _0x5e25f1=this[_0x186225(0x185)]['getSnapshot']();return{'id':_0x5e25f1['id'],'name':_0x5e25f1[_0x186225(0x191)],'tables':this[_0x186225(0x2b7)]()['map'](_0x306dac=>_0x306dac[_0x186225(0x1d8)]())};}};Q=I([F(0x1,_0x25f6bc(_0x442045)),F(0x2,_0x246509),F(0x3,_0x2d81ac)],Q);var tt=class extends _0x7df423{[_0x336728(0x1c6)](){const _0x295d31=_0x336728;this[_0x295d31(0x20f)](),this[_0x295d31(0x237)]();}[_0x336728(0x1de)](_0x55a963={},_0x4c6cef){const _0x4bcf77=_0x336728;let _0x408399=this['_univerInstanceService'][_0x4bcf77(0x1a4)](_0x874f24[_0x4bcf77(0x2b2)],_0x55a963,_0x4c6cef);return this[_0x4bcf77(0x1ef)][_0x4bcf77(0x279)](Q,_0x408399);}[_0x336728(0x2a1)](){const _0x34fc51=_0x336728;let _0x290e72=this['_univerInstanceService'][_0x34fc51(0x20c)](_0x874f24['UNIVER_BASE']);return _0x290e72?this['_injector']['createInstance'](Q,_0x290e72):null;}[_0x336728(0x2a3)](_0x618861){const _0x5d0ddd=_0x336728;let _0x11b6cb=this[_0x5d0ddd(0x1b0)]['getUnit'](_0x618861,_0x874f24['UNIVER_BASE']);return _0x11b6cb?this[_0x5d0ddd(0x1ef)][_0x5d0ddd(0x279)](Q,_0x11b6cb):null;}[_0x336728(0x21f)](){const _0x24f4f8=_0x336728;return this['_univerInstanceService'][_0x24f4f8(0x19f)](_0x874f24['UNIVER_BASE'])[_0x24f4f8(0x1f2)](_0x53556f=>this[_0x24f4f8(0x1ef)][_0x24f4f8(0x279)](Q,_0x53556f));}[_0x336728(0x237)](){const _0x4e4d0d=_0x336728;this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x295)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)]((_0x2ee048,_0x1c315f)=>{const _0x371ffb=_0x4e4d0d;var _0x304e38;if(!$(_0x2ee048,_0x5374e3))return;let _0x41eaad=_0x2ee048[_0x371ffb(0x23b)];if(!((_0x304e38=_0x41eaad[_0x371ffb(0x214)])!=null&&_0x304e38[_0x371ffb(0x1b5)]))return;let _0x4ad86b=this[_0x371ffb(0x2a3)](_0x41eaad[_0x371ffb(0x1e6)]),_0x51b85b=_0x4ad86b==null?void 0x0:_0x4ad86b['getTableById'](_0x41eaad[_0x371ffb(0x214)][0x0][_0x371ffb(0x281)]);if(!_0x4ad86b||!_0x51b85b)return;let _0xdce23c={'base':_0x4ad86b,'table':_0x51b85b,'changes':_0x41eaad[_0x371ffb(0x214)],'source':_0x1c315f!=null&&_0x1c315f[_0x371ffb(0x19d)]?_0x4fe3fa[_0x371ffb(0x1b2)]:_0x41eaad['source']??_0x4fe3fa['UI']};this[_0x371ffb(0x230)](this[_0x371ffb(0x208)][_0x371ffb(0x295)],_0xdce23c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x21c)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x33b529=>{const _0x1d1731=_0x4e4d0d;if(_0x33b529['id']!==_0x3cc0d1['id'])return;let {unitId:_0x151dd8,table:_0x1ce52a,index:_0x372529}=_0x33b529['params'],_0x44d853=this[_0x1d1731(0x2a3)](_0x151dd8);if(!_0x44d853)return;let _0x46036c={'base':_0x44d853,'table':_0x1ce52a,'index':_0x372529};this[_0x1d1731(0x230)](this[_0x1d1731(0x208)][_0x1d1731(0x21c)],_0x46036c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x1c2)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x31e7ff=>{const _0x592190=_0x4e4d0d;if(_0x31e7ff['id']!==_0x1978a1['id'])return;let {unitId:_0x2eee4c,tableId:_0x4cbd87,field:_0x4671b9,index:_0x3dcc2f,viewIndexes:_0x17441f}=_0x31e7ff[_0x592190(0x23b)],_0x4422c2=this[_0x592190(0x2a3)](_0x2eee4c);if(!_0x4422c2)return;let _0x28be05=_0x4422c2[_0x592190(0x209)](_0x4cbd87);if(!_0x28be05)return;let _0x43a0b7={'base':_0x4422c2,'table':_0x28be05,'field':_0x4671b9,'index':_0x3dcc2f,'viewIndexes':_0x17441f};this[_0x592190(0x230)](this[_0x592190(0x208)][_0x592190(0x1c2)],_0x43a0b7);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x26d)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x3c115e=>{const _0x4276d2=_0x4e4d0d;if(_0x3c115e['id']!==_0x22871f['id']&&_0x3c115e['id']!==_0x144dc8['id'])return;let _0x57db75=_0x3c115e[_0x4276d2(0x23b)],{unitId:_0x3a3d93,tableId:_0x47158b}=_0x57db75,_0x554f86=_0x57db75[_0x4276d2(0x24a)]??[_0x57db75[_0x4276d2(0x1ba)]],_0x22b01c=this[_0x4276d2(0x2a3)](_0x3a3d93);if(!_0x22b01c)return;let _0x13ac79=_0x22b01c[_0x4276d2(0x209)](_0x47158b);if(!_0x13ac79)return;let _0x46eccc={'base':_0x22b01c,'table':_0x13ac79,'records':_0x554f86};this[_0x4276d2(0x230)](this[_0x4276d2(0x208)][_0x4276d2(0x26d)],_0x46eccc);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableViewCreated'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x513b07=>{const _0x5b137c=_0x4e4d0d;if(_0x513b07['id']!==_0x338c3b['id'])return;let {unitId:_0x3c607e,tableId:_0x4912f5,view:_0x5c4ef7,index:_0x20c451}=_0x513b07[_0x5b137c(0x23b)],_0x586790=this[_0x5b137c(0x2a3)](_0x3c607e);if(!_0x586790)return;let _0x191b23=_0x586790['getTableById'](_0x4912f5);if(!_0x191b23)return;let _0x1289b6={'base':_0x586790,'table':_0x191b23,'view':_0x5c4ef7,'index':_0x20c451};this[_0x5b137c(0x230)](this['Event'][_0x5b137c(0x239)],_0x1289b6);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableCellValueChanged'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x225ebe=>{const _0x301a06=_0x4e4d0d;if(_0x225ebe['id']!==_0x54f164['id'])return;let {unitId:_0x4ef4e8,tableId:_0x4c6d23,recordId:_0x37cf48,fieldId:_0x4abd6b,value:_0x4906ef}=_0x225ebe[_0x301a06(0x23b)],_0x4d7494=this['getBase'](_0x4ef4e8);if(!_0x4d7494)return;let _0x5a4de7=_0x4d7494[_0x301a06(0x209)](_0x4c6d23);if(!_0x5a4de7)return;let _0x3b26b8=_0x5a4de7[_0x301a06(0x1fc)](_0x4abd6b);if(!_0x3b26b8)return;let _0x32fda7=_0x5a4de7[_0x301a06(0x229)](_0x37cf48);if(!_0x32fda7)return;let _0x316b02={'base':_0x4d7494,'table':_0x5a4de7,'field':_0x3b26b8,'record':_0x32fda7,'value':_0x4906ef};this['fireEvent'](this[_0x301a06(0x208)][_0x301a06(0x220)],_0x316b02);})));}[_0x336728(0x20f)](){const _0x1e78b0=_0x336728;this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x215)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x2017bd=>{const _0x11c011=_0x1e78b0;if($(_0x2017bd,_0x298aea)){let {unitId:_0x19d816,tableId:_0x26e5d0,patches:_0x6461e3,source:_0x5b391d=_0x4fe3fa['UI']}=_0x2017bd[_0x11c011(0x23b)],_0x4e5742=this[_0x11c011(0x1f8)](_0x19d816,_0x26e5d0);if(!_0x4e5742)return;this[_0x11c011(0x1d3)](_0x4e5742['base'],_0x4e5742[_0x11c011(0x23c)],_0x568123(_0x4e5742['table'][_0x11c011(0x1f1)](),_0x6461e3),_0x5b391d);return;}if($(_0x2017bd,_0x26fb58)){let {unitId:_0xebfa9d,tableId:_0x2b27ac,patches:_0x32100d,source:_0x396fbb=_0x4fe3fa['UI']}=_0x2017bd['params'],_0x1e0603=this[_0x11c011(0x1f8)](_0xebfa9d,_0x2b27ac);if(!_0x1e0603)return;let _0x14b176=_0x1e0603[_0x11c011(0x23c)]['getTable']();this[_0x11c011(0x1d3)](_0x1e0603[_0x11c011(0x269)],_0x1e0603[_0x11c011(0x23c)],_0x568123(_0x14b176,_0x34fccc(_0x14b176,_0x32100d)),_0x396fbb);return;}if($(_0x2017bd,_0x22871f)){let _0x2ac6b3=_0x2017bd[_0x11c011(0x23b)],_0x397942=this[_0x11c011(0x1f8)](_0x2ac6b3[_0x11c011(0x1e6)],_0x2ac6b3['tableId']);if(!_0x397942)return;this[_0x11c011(0x1d3)](_0x397942['base'],_0x397942['table'],_0x3e5dd7(_0x397942[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x2ac6b3[_0x11c011(0x1ba)]]),_0x2ac6b3[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x144dc8)){let _0x45ccd6=_0x2017bd['params'],_0x17bc73=this['_getHierarchyEventContext'](_0x45ccd6[_0x11c011(0x1e6)],_0x45ccd6[_0x11c011(0x281)]);if(!_0x17bc73)return;this[_0x11c011(0x1d3)](_0x17bc73[_0x11c011(0x269)],_0x17bc73['table'],_0x3e5dd7(_0x17bc73[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x45ccd6['records']),_0x45ccd6[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x39fd7f)){let _0x2890c1=_0x2017bd[_0x11c011(0x23b)],_0x2eaaad=this[_0x11c011(0x1f8)](_0x2890c1['unitId'],_0x2890c1[_0x11c011(0x281)]);if(!_0x2eaaad)return;this[_0x11c011(0x1d3)](_0x2eaaad[_0x11c011(0x269)],_0x2eaaad[_0x11c011(0x23c)],_0x3e5dd7(_0x2eaaad[_0x11c011(0x23c)]['getTable'](),[_0x2890c1[_0x11c011(0x1ba)]]),_0x2890c1['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x241dc3)){let _0x12c462=_0x2017bd['params'],_0x3afc22=this[_0x11c011(0x1f8)](_0x12c462[_0x11c011(0x1e6)],_0x12c462['tableId']);if(!_0x3afc22)return;let _0x2d636f=_0x3afc22['table'][_0x11c011(0x1f1)](),_0x27105b=_0x12c462[_0x11c011(0x1c3)]??_0x2ee0b8(_0x2d636f),_0x2f3481=_0xdaf857(_0x2d636f,_0x27105b)[_0x11c011(0x22c)]['get'](_0x12c462[_0x11c011(0x190)])??null;this[_0x11c011(0x1d3)](_0x3afc22['base'],_0x3afc22['table'],[{'tableId':_0x12c462[_0x11c011(0x281)],'fieldId':_0x27105b,'recordId':_0x12c462['recordId'],'oldParentRecordId':_0x2f3481,'parentRecordId':_0x12c462[_0x11c011(0x17e)]}],_0x12c462[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x5567bd)){let _0x4b8c4a=_0x2017bd['params'],_0x10431a=this[_0x11c011(0x1f8)](_0x4b8c4a[_0x11c011(0x1e6)],_0x4b8c4a[_0x11c011(0x281)]);if(!_0x10431a)return;let _0x2ab84a=_0x4b8c4a[_0x11c011(0x1c3)]??_0x2ee0b8(_0x10431a['table']['getTable']());this['_fireBeforeHierarchyChange'](_0x10431a[_0x11c011(0x269)],_0x10431a['table'],[{'tableId':_0x4b8c4a[_0x11c011(0x281)],'fieldId':_0x2ab84a,'recordId':_0x4b8c4a[_0x11c011(0x1ba)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4b8c4a['parentRecordId']}],_0x4b8c4a['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x384f53)){let _0x6a497e=_0x2017bd[_0x11c011(0x23b)],_0x1427c7=this['_getHierarchyEventContext'](_0x6a497e[_0x11c011(0x1e6)],_0x6a497e[_0x11c011(0x281)]);if(!_0x1427c7)return;this[_0x11c011(0x1d3)](_0x1427c7[_0x11c011(0x269)],_0x1427c7[_0x11c011(0x23c)],_0x3282d7(_0x1427c7[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x6a497e[_0x11c011(0x190)]]),_0x6a497e[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x20826e)){let _0x472afa=_0x2017bd['params'],_0x488776=this[_0x11c011(0x1f8)](_0x472afa[_0x11c011(0x1e6)],_0x472afa['tableId']);if(!_0x488776)return;this['_fireBeforeHierarchyChange'](_0x488776[_0x11c011(0x269)],_0x488776[_0x11c011(0x23c)],_0x3282d7(_0x488776[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x472afa['recordIds']),_0x472afa[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if(!$(_0x2017bd,_0x54f164))return;let _0x56bf4d=_0x2017bd[_0x11c011(0x23b)],_0x50ed9c=this[_0x11c011(0x1f8)](_0x56bf4d['unitId'],_0x56bf4d['tableId']);if(!_0x50ed9c)return;let _0x38026d=_0x50ed9c[_0x11c011(0x23c)][_0x11c011(0x1f1)]();if(!_0x12eab2(_0x38026d)[_0x11c011(0x24d)](_0x56bf4d[_0x11c011(0x1c3)]))return;let _0x3965cd=_0xdaf857(_0x38026d,_0x56bf4d[_0x11c011(0x1c3)])[_0x11c011(0x22c)][_0x11c011(0x19b)](_0x56bf4d[_0x11c011(0x190)])??null,_0xe8ecd2=_0x1e19fe(_0x56bf4d[_0x11c011(0x1b4)])[0x0]??null;_0x3965cd!==_0xe8ecd2&&this[_0x11c011(0x1d3)](_0x50ed9c['base'],_0x50ed9c[_0x11c011(0x23c)],[{'tableId':_0x56bf4d[_0x11c011(0x281)],'fieldId':_0x56bf4d[_0x11c011(0x1c3)],'recordId':_0x56bf4d[_0x11c011(0x190)],'oldParentRecordId':_0x3965cd,'parentRecordId':_0xe8ecd2}],_0x56bf4d['source']??_0x4fe3fa['UI']);}))),this['disposeWithMe'](this[_0x1e78b0(0x246)](this['Event'][_0x1e78b0(0x1ed)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x438c4e=>{const _0x2aa364=_0x1e78b0;if(_0x438c4e['id']!==_0x3cc0d1['id'])return;let {unitId:_0x305653,table:_0x5d1dc6,index:_0x37c3d3}=_0x438c4e[_0x2aa364(0x23b)],_0x25b0f4=this[_0x2aa364(0x2a3)](_0x305653);if(!_0x25b0f4)return;let _0x39c981={'base':_0x25b0f4,'table':_0x5d1dc6,'index':_0x37c3d3};if(this[_0x2aa364(0x230)](this[_0x2aa364(0x208)][_0x2aa364(0x1ed)],_0x39c981),_0x39c981[_0x2aa364(0x1dd)])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)]['BeforeBaseTableFieldCreate'],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x5758e4=>{const _0x2269a0=_0x1e78b0;if(_0x5758e4['id']!==_0x1978a1['id'])return;let {unitId:_0x49980c,tableId:_0x5d9051,field:_0x22a509,index:_0x3cc1ea,viewIndexes:_0x4e9aa3}=_0x5758e4[_0x2269a0(0x23b)],_0x3e4f89=this[_0x2269a0(0x2a3)](_0x49980c);if(!_0x3e4f89)return;let _0x135dbc=_0x3e4f89[_0x2269a0(0x209)](_0x5d9051);if(!_0x135dbc)return;let _0x2434a7={'base':_0x3e4f89,'table':_0x135dbc,'field':_0x22a509,'index':_0x3cc1ea,'viewIndexes':_0x4e9aa3};if(this[_0x2269a0(0x230)](this[_0x2269a0(0x208)]['BeforeBaseTableFieldCreate'],_0x2434a7),_0x2434a7['cancel'])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x1dc)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x516690=>{const _0x558958=_0x1e78b0;if(_0x516690['id']!==_0x22871f['id']&&_0x516690['id']!==_0x144dc8['id'])return;let _0xcdfa49=_0x516690['params'],{unitId:_0x502a21,tableId:_0x2d13ad}=_0xcdfa49,_0x1c6fa6=_0xcdfa49[_0x558958(0x24a)]??[_0xcdfa49[_0x558958(0x1ba)]],_0x81af21=this['getBase'](_0x502a21);if(!_0x81af21)return;let _0x11bdc4=_0x81af21[_0x558958(0x209)](_0x2d13ad);if(!_0x11bdc4)return;let _0x2b751a={'base':_0x81af21,'table':_0x11bdc4,'records':_0x1c6fa6};if(this[_0x558958(0x230)](this[_0x558958(0x208)][_0x558958(0x1dc)],_0x2b751a),_0x2b751a['cancel'])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x276)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x362d62=>{const _0x59c772=_0x1e78b0;if(_0x362d62['id']!==_0x338c3b['id'])return;let {unitId:_0xc01a34,tableId:_0x47aa6a,view:_0x3bc369,index:_0xb64222}=_0x362d62[_0x59c772(0x23b)],_0x361333=this['getBase'](_0xc01a34);if(!_0x361333)return;let _0xdb0df2=_0x361333['getTableById'](_0x47aa6a);if(!_0xdb0df2)return;let _0x1f56f9={'base':_0x361333,'table':_0xdb0df2,'view':_0x3bc369,'index':_0xb64222};if(this[_0x59c772(0x230)](this[_0x59c772(0x208)][_0x59c772(0x276)],_0x1f56f9),_0x1f56f9[_0x59c772(0x1dd)])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x223)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x14ceec=>{const _0x123a60=_0x1e78b0;if(_0x14ceec['id']!==_0x54f164['id'])return;let {unitId:_0x4d75ca,tableId:_0x582119,recordId:_0x5ed89a,fieldId:_0x9eca76,value:_0x243299}=_0x14ceec[_0x123a60(0x23b)],_0x1861a6=this[_0x123a60(0x2a3)](_0x4d75ca);if(!_0x1861a6)return;let _0x5368a6=_0x1861a6[_0x123a60(0x209)](_0x582119);if(!_0x5368a6)return;let _0x24995a=_0x5368a6[_0x123a60(0x1fc)](_0x9eca76);if(!_0x24995a)return;let _0x1b715e=_0x5368a6['getRecordById'](_0x5ed89a);if(!_0x1b715e)return;let _0x46758a={'base':_0x1861a6,'table':_0x5368a6,'field':_0x24995a,'record':_0x1b715e,'value':_0x243299};if(this['fireEvent'](this[_0x123a60(0x208)][_0x123a60(0x223)],_0x46758a),_0x46758a['cancel'])throw new _0x10ac7b();})));}[_0x336728(0x1f8)](_0x3e13e5,_0xeb0d60){const _0x496477=_0x336728;let _0x4b9c5f=this[_0x496477(0x2a3)](_0x3e13e5),_0x25a7e5=_0x4b9c5f==null?void 0x0:_0x4b9c5f[_0x496477(0x209)](_0xeb0d60);return _0x4b9c5f&&_0x25a7e5?{'base':_0x4b9c5f,'table':_0x25a7e5}:null;}[_0x336728(0x1d3)](_0x5b2827,_0x5e2604,_0x70efdc,_0x10abf7){const _0x1bd9b2=_0x336728;if(!_0x70efdc[_0x1bd9b2(0x1b5)])return;let _0x2df0ea={'base':_0x5b2827,'table':_0x5e2604,'changes':_0x70efdc,'source':_0x10abf7};if(this['fireEvent'](this[_0x1bd9b2(0x208)]['BeforeBaseHierarchyChange'],_0x2df0ea),_0x2df0ea['cancel'])throw new _0x10ac7b();}};function $(_0x1055c6,_0x21b291){const _0x4af634=_0x336728;return _0x1055c6['id']===_0x21b291['id']&&_0x1055c6[_0x4af634(0x23b)]!==void 0x0;}_0x7df423['extend'](tt);var nt=class extends _0x530ba6{get[_0x336728(0x180)](){return _0x33d599;}get[_0x336728(0x27e)](){return _0x5f2ca0;}get[_0x336728(0x1ec)](){return _0xf6848f;}get['BaseFieldKeyEnum'](){return R;}get[_0x336728(0x1bd)](){return _0x35b90a;}get[_0x336728(0x19c)](){return _0x46b2d8;}get[_0x336728(0x18c)](){return _0x4e80c8;}get[_0x336728(0x236)](){return _0xd4945d;}get[_0x336728(0x20e)](){return _0x4baab9;}get['BaseEventSource'](){return _0x4fe3fa;}get['BaseHierarchyErrorCode'](){return _0x3d171b;}get['BaseHierarchyInvalidReason'](){return _0x1c2958;}get['BaseRecordLinkRole'](){return _0x523fee;}};_0x530ba6['extend'](nt);var rt=class extends _0x23c09b{get[_0x336728(0x21c)](){const _0x5b38ad=_0x336728;return _0x5b38ad(0x21c);}get[_0x336728(0x1ed)](){const _0x15a6c5=_0x336728;return _0x15a6c5(0x1ed);}get[_0x336728(0x1c2)](){const _0x54c677=_0x336728;return _0x54c677(0x1c2);}get[_0x336728(0x263)](){const _0x3ee009=_0x336728;return _0x3ee009(0x263);}get[_0x336728(0x26d)](){const _0x29d3d9=_0x336728;return _0x29d3d9(0x26d);}get[_0x336728(0x1dc)](){return'BeforeBaseTableRecordCreate';}get[_0x336728(0x239)](){const _0x4dd864=_0x336728;return _0x4dd864(0x239);}get[_0x336728(0x276)](){const _0x3d9a65=_0x336728;return _0x3d9a65(0x276);}get[_0x336728(0x220)](){const _0x42d6c5=_0x336728;return _0x42d6c5(0x220);}get[_0x336728(0x223)](){return'BeforeBaseTableCellValueChange';}get[_0x336728(0x295)](){return'BaseHierarchyChanged';}get[_0x336728(0x215)](){return'BeforeBaseHierarchyChange';}};_0x23c09b['extend'](rt);export{R as BaseFieldKeyEnum,Q as FBase,Z as FBaseTable,L as FBaseTableField,q as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,rt as FBasesEventNameMixin,H as resolveBaseFieldKey,B as resolveBaseFieldValues};
|
|
1
|
+
const _0x46a1c2=_0x5746;(function(_0x1534c8,_0x3226ec){const _0x3b6d9c=_0x5746,_0x21ac5e=_0x1534c8();while(!![]){try{const _0x39ce8e=parseInt(_0x3b6d9c(0x256))/0x1*(parseInt(_0x3b6d9c(0x240))/0x2)+parseInt(_0x3b6d9c(0x2ef))/0x3*(parseInt(_0x3b6d9c(0x2b4))/0x4)+-parseInt(_0x3b6d9c(0x1fc))/0x5*(parseInt(_0x3b6d9c(0x243))/0x6)+parseInt(_0x3b6d9c(0x1e9))/0x7*(parseInt(_0x3b6d9c(0x315))/0x8)+parseInt(_0x3b6d9c(0x207))/0x9+parseInt(_0x3b6d9c(0x237))/0xa*(-parseInt(_0x3b6d9c(0x217))/0xb)+-parseInt(_0x3b6d9c(0x281))/0xc*(parseInt(_0x3b6d9c(0x2f6))/0xd);if(_0x39ce8e===_0x3226ec)break;else _0x21ac5e['push'](_0x21ac5e['shift']());}catch(_0x5744a3){_0x21ac5e['push'](_0x21ac5e['shift']());}}}(_0x88d1,0x61381));import{ApplyBaseJson1Mutation as _0x4dadde,BASE_TABLE_NAME_REQUIREMENTS as _0x30ff66,BaseConditionalColorRuleUpdateType as _0x25f9f8,BaseEventSource as _0x198fc0,BaseHierarchyErrorCode as _0x1a3340,BatchCreateBaseRecordsCommand as _0x280e1e,BatchDeleteBaseRecordsCommand as _0xb3d33d,ChangeBaseFieldTypeCommand as _0x3d9d79,CreateBaseChildRecordCommand as _0x168ce8,CreateBaseFieldCommand as _0x15e597,CreateBaseRecordCommand as _0x44b407,CreateBaseTableCommand as _0x132b85,CreateBaseViewCommand as _0x58c95d,DeleteBaseFieldCommand as _0x22f2c6,DeleteBaseRecordCommand as _0x44f0bf,DeleteBaseTableCommand as _0x488c1f,DeleteBaseViewCommand as _0x13f67c,DuplicateBaseRecordCommand as _0x209820,IBaseProjectionService as _0x5db0b9,MoveBaseFieldCommand as _0x1d5397,MoveBaseHierarchyRecordCommand as _0x345dff,MoveBaseViewCommand as _0x3c52e4,RenameBaseTableCommand as _0x15e70d,RenameBaseViewCommand as _0xdf6fe9,SetBaseNameCommand as _0x1535e7,SetBaseRangeValuesCommand as _0x473f48,SetBaseRecordValuesCommand as _0x294f1c,SetBaseTableHierarchyFieldCommand as _0x10d0c8,SetBaseViewFieldOrderCommand as _0x3001eb,SetBaseViewFieldVisibleCommand as _0x171450,SetBaseViewFieldWidthCommand as _0x2a4787,SetBaseViewFilterCommand as _0x182d68,SetBaseViewGroupCommand as _0x398613,SetBaseViewSortCommand as _0x164ead,UpdateBaseCellCommand as _0x13c61e,UpdateBaseFieldCommand as _0x7c54b0,UpdateBaseRecordOrderCommand as _0x319f6b,UpdateBaseViewConditionalColorRulesCommand as _0x346c53,UpdateBaseViewConfigCommand as _0x1b5df4,ValidateBaseFormulaCommand as _0x59defd,buildBaseHierarchyIndex as _0x345aca,copyBaseTableSnapshot as _0xf70964,createUniqueBaseTableName as _0x286207,ensureBaseTableCellLayout as _0x580a6d,getActiveBaseHierarchyFieldIds as _0x303b25,getBaseCellValue as _0x41f49c,getBaseFormulaTableName as _0x499083,getBaseHierarchyDeletePromotions as _0x7c08d9,getRecordLinkFieldConfig as _0x15242e,matchesBaseCondition as _0xc3c013,parseRecordLinkIds as _0x855fa7,resolveBaseHierarchyFieldId as _0x312492,resolveBaseRangeHierarchyPatches as _0x3642d1,searchBaseTable as _0x2df9ac,serializeRecordLinkIds as _0x3d1f9e,validateBaseHierarchyRecordCreations as _0x346f38,validateBaseHierarchyRecordPatches as _0x1d70cc,validateBaseTableName as _0x545bdb,validateRecordLinkValue as _0x42ad7f}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x56d8f8,BaseConditionalColorOperator as _0x1c1f9f,BaseConditionalColorTarget as _0x5702ac,BaseConditionalDateMode as _0x82456a,BaseFieldType as _0xafe9b1,BaseFilterConjunction as _0x1e5d95,BaseFilterOperator as _0xe85ca7,BaseHierarchyInvalidReason as _0x2df78f,BaseRecordLinkRole as _0x33c6e3,BaseSortDirection as _0xd1049e,BaseViewType as _0x477789,CanceledError as _0x23915c,ICommandService as _0x3ac0f5,IResourceLoaderService as _0x4f5173,ImageSourceType as _0x205617,Inject as _0xfc1d0a,Injector as _0x38a295,Tools as _0x125277,UniverInstanceType as _0x3e59a1,createDefaultBaseTableSnapshot as _0x3e2cae,generateRandomId as _0x5f0f93}from'@univerjs/core';import{FEnum as _0x2f3189,FEventName as _0x47ca81,FUniver as _0x17aaa4}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x4e9cb6}from'@univerjs-pro/engine-formula';function R(_0xa511df,_0x247f85){return function(_0x1b6063,_0x1e4d3f){_0x247f85(_0x1b6063,_0x1e4d3f,_0xa511df);};}function z(_0x44e956,_0x57b971,_0x3515f5,_0x1a1ed5){const _0x256f83=_0x5746;var _0x14581b=arguments[_0x256f83(0x268)],_0x454122=_0x14581b<0x3?_0x57b971:_0x1a1ed5===null?_0x1a1ed5=Object[_0x256f83(0x1d7)](_0x57b971,_0x3515f5):_0x1a1ed5,_0x269e98;if(typeof Reflect=='object'&&typeof Reflect[_0x256f83(0x2be)]==_0x256f83(0x1ee))_0x454122=Reflect[_0x256f83(0x2be)](_0x44e956,_0x57b971,_0x3515f5,_0x1a1ed5);else{for(var _0x33d58c=_0x44e956[_0x256f83(0x268)]-0x1;_0x33d58c>=0x0;_0x33d58c--)(_0x269e98=_0x44e956[_0x33d58c])&&(_0x454122=(_0x14581b<0x3?_0x269e98(_0x454122):_0x14581b>0x3?_0x269e98(_0x57b971,_0x3515f5,_0x454122):_0x269e98(_0x57b971,_0x3515f5))||_0x454122);}return _0x14581b>0x3&&_0x454122&&Object[_0x256f83(0x2c1)](_0x57b971,_0x3515f5,_0x454122),_0x454122;}let B=class{constructor(_0x23e886,_0x1e043b,_0x200329,_0x439269){const _0x16d4bf=_0x5746;this[_0x16d4bf(0x1dc)]=_0x23e886,this[_0x16d4bf(0x329)]=_0x1e043b,this[_0x16d4bf(0x2c4)]=_0x200329,this['_commandService']=_0x439269;}['getId'](){const _0x507526=_0x5746;return this[_0x507526(0x2c4)];}[_0x46a1c2(0x28a)](){const _0x337013=_0x46a1c2;return this[_0x337013(0x324)]();}['getName'](){const _0x1d3138=_0x46a1c2;return this[_0x1d3138(0x324)]()['name'];}[_0x46a1c2(0x1fa)](){const _0x2e6b2e=_0x46a1c2;return this[_0x2e6b2e(0x324)]()[_0x2e6b2e(0x241)];}[_0x46a1c2(0x31d)](){const _0x3e512f=_0x46a1c2;return this['_getField']()[_0x3e512f(0x296)];}[_0x46a1c2(0x20f)](){const _0xda583a=_0x46a1c2;return this[_0xda583a(0x324)]()[_0xda583a(0x299)];}[_0x46a1c2(0x30a)](){const _0x1913af=_0x46a1c2;return this['_getField']()[_0x1913af(0x251)];}[_0x46a1c2(0x284)](){const _0x299be8=_0x46a1c2;return!!this[_0x299be8(0x324)]()['readonly'];}[_0x46a1c2(0x21f)](_0x16146a){const _0x674588=_0x46a1c2;return this[_0x674588(0x1ef)]({'name':_0x16146a});}[_0x46a1c2(0x2b0)](_0x3912bd,_0x23e7aa){const _0x276fc6=_0x46a1c2;return this[_0x276fc6(0x1ef)]({'config':_0x3912bd},_0x23e7aa);}[_0x46a1c2(0x2ea)](_0x4a6c7b){const _0xee4c7=_0x46a1c2;return this[_0xee4c7(0x1ef)]({'defaultValue':_0x4a6c7b});}[_0x46a1c2(0x1ef)](_0x1c5c56,_0x3c1b5a){const _0x181e0c=_0x46a1c2;let _0x3bf60e=this[_0x181e0c(0x324)]()[_0x181e0c(0x241)];return(_0x1c5c56[_0x181e0c(0x241)]??_0x3bf60e)===_0xafe9b1['Formula']&&(Object[_0x181e0c(0x238)][_0x181e0c(0x2f7)][_0x181e0c(0x1f8)](_0x1c5c56,'config')||_0x1c5c56[_0x181e0c(0x241)]===_0xafe9b1[_0x181e0c(0x2d4)])&&!this['_writeFormulaExternalReferences'](_0x3c1b5a)?!0x1:this[_0x181e0c(0x2e9)][_0x181e0c(0x2f2)](_0x7c54b0['id'],{'unitId':this[_0x181e0c(0x1dc)][_0x181e0c(0x28e)](),'tableId':this[_0x181e0c(0x329)][_0x181e0c(0x28e)](),'fieldId':this[_0x181e0c(0x2c4)],'patch':_0x1c5c56});}[_0x46a1c2(0x1f2)](_0x4aa05d,_0x1fd241={},_0x262e87){const _0x5f28fa=_0x46a1c2;return _0x4aa05d===_0xafe9b1[_0x5f28fa(0x2d4)]&&!this['_writeFormulaExternalReferences'](_0x262e87)?!0x1:this[_0x5f28fa(0x2e9)][_0x5f28fa(0x2f2)](_0x3d9d79['id'],{'unitId':this[_0x5f28fa(0x1dc)]['getId'](),'tableId':this[_0x5f28fa(0x329)][_0x5f28fa(0x28e)](),'fieldId':this[_0x5f28fa(0x2c4)],'input':{'type':_0x4aa05d,'config':_0x1fd241}});}[_0x46a1c2(0x229)](){const _0x5dfd41=_0x46a1c2;return this[_0x5dfd41(0x2e9)][_0x5dfd41(0x2f2)](_0x22f2c6['id'],{'unitId':this[_0x5dfd41(0x1dc)][_0x5dfd41(0x28e)](),'tableId':this[_0x5dfd41(0x329)][_0x5dfd41(0x28e)](),'fieldId':this[_0x5dfd41(0x2c4)]});}['move'](_0x5a9e2e){const _0x3665e3=_0x46a1c2;return this['_commandService'][_0x3665e3(0x2f2)](_0x1d5397['id'],{'unitId':this['_base'][_0x3665e3(0x28e)](),'tableId':this[_0x3665e3(0x329)][_0x3665e3(0x28e)](),'fieldId':this[_0x3665e3(0x2c4)],'target':_0x5a9e2e});}[_0x46a1c2(0x324)](){const _0x38f6b8=_0x46a1c2;let _0x56447d=this[_0x38f6b8(0x329)][_0x38f6b8(0x310)]()['fields'][this[_0x38f6b8(0x2c4)]];if(!_0x56447d)throw Error(_0x38f6b8(0x1e3)+this['_fieldId']+'\x22\x20does\x20not\x20exist.');return _0x56447d;}[_0x46a1c2(0x325)](_0x1b7460){const _0xce34a2=_0x46a1c2;if(!_0x1b7460||!Array[_0xce34a2(0x2db)](_0x1b7460[_0xce34a2(0x1e6)]))return console[_0xce34a2(0x23d)](_0xce34a2(0x257)),!0x1;if(_0x1b7460[_0xce34a2(0x1e6)][_0xce34a2(0x268)]===0x0)return!0x0;let _0x3f8422=this[_0xce34a2(0x2e9)][_0xce34a2(0x2f2)](_0x4e9cb6['id'],{'unitId':this[_0xce34a2(0x1dc)][_0xce34a2(0x28e)](),'references':_0x1b7460[_0xce34a2(0x1e6)]});return _0x3f8422||console[_0xce34a2(0x23d)](_0xce34a2(0x2e1)),_0x3f8422;}};B=z([R(0x3,_0x3ac0f5)],B);let Ke=function(_0x36bcb2){const _0x4b41f9=_0x46a1c2;return _0x36bcb2['Id']='id',_0x36bcb2[_0x4b41f9(0x255)]='name',_0x36bcb2[_0x4b41f9(0x2b3)]=_0x4b41f9(0x2c2),_0x36bcb2;}({});function V(_0x25d07a){const _0x5065d7=_0x46a1c2;return!!(_0x25d07a&&_0x25d07a[_0x5065d7(0x2fa)]!==!0x0&&_0x25d07a[_0x5065d7(0x241)]!==_0xafe9b1['RecordId']);}function H(_0x51fdef,_0x293246,_0x578a98='id'){const _0x341409=_0x46a1c2;if(!_0x293246)return{};let _0x134af0={};return Object[_0x341409(0x2ff)](_0x293246)[_0x341409(0x2cb)](([_0x466f0a,_0x5432f2])=>{const _0x5e1a14=_0x341409;let _0x4fb2aa=Je(_0x51fdef,_0x466f0a,_0x578a98);_0x134af0[_0x4fb2aa]=qe(_0x51fdef[_0x5e1a14(0x2b9)][_0x4fb2aa],_0x5432f2);}),_0x134af0;}function qe(_0x5e007c,_0x194c19){const _0x4269f2=_0x46a1c2;if((_0x5e007c==null?void 0x0:_0x5e007c['type'])!==_0xafe9b1[_0x4269f2(0x298)]||_0x194c19==null)return _0x194c19;if(!Array[_0x4269f2(0x2db)](_0x194c19))throw TypeError(_0x4269f2(0x227)+_0x5e007c['name']+'\x22:\x20expected\x20an\x20array.');return _0x194c19[_0x4269f2(0x232)]((_0x584aff,_0x3a661e)=>Ye(_0x5e007c,_0x584aff,_0x3a661e));}function Je(_0x1a96fd,_0x1ef60f,_0x20bc11){const _0x3bdc51=_0x46a1c2;if(_0x20bc11==='id'||_0x20bc11===_0x3bdc51(0x2c2)&&_0x1a96fd[_0x3bdc51(0x2b9)][_0x1ef60f])return _0x1ef60f;let _0x4af4cd=Object['values'](_0x1a96fd[_0x3bdc51(0x2b9)])[_0x3bdc51(0x252)](_0x485445=>_0x485445[_0x3bdc51(0x2aa)]===_0x1ef60f);if(_0x4af4cd[_0x3bdc51(0x268)]===0x1)return _0x4af4cd[0x0]['id'];throw _0x4af4cd[_0x3bdc51(0x268)]>0x1?Error(_0x3bdc51(0x239)+_0x1ef60f):Error(_0x3bdc51(0x2d1)+_0x1ef60f);}function Ye(_0x31453b,_0x1d18a8,_0x1cf8ff){const _0x23f161=_0x46a1c2;let _0x27a4df=_0x23f161(0x1db)+_0x1cf8ff+_0x23f161(0x2a8)+_0x31453b['name']+'\x22';if(!Qe(_0x1d18a8))throw TypeError(_0x27a4df+':\x20expected\x20an\x20object.');if('url'in _0x1d18a8)throw TypeError(_0x27a4df+_0x23f161(0x2fe));if('type'in _0x1d18a8)throw TypeError(_0x27a4df+_0x23f161(0x316));let _0x5ce7bf=U(_0x1d18a8['id'],_0x27a4df,'id'),_0x18cc44=U(_0x1d18a8[_0x23f161(0x2aa)],_0x27a4df,'name'),_0x13ca82=U(_0x1d18a8[_0x23f161(0x277)],_0x27a4df,_0x23f161(0x277));return{'id':_0x5ce7bf,'name':_0x18cc44,'source':_0x13ca82,'sourceType':Xe(_0x1d18a8[_0x23f161(0x20a)],_0x13ca82,_0x27a4df),...Ze(_0x1d18a8,_0x23f161(0x228),_0x27a4df),...W(_0x1d18a8,_0x23f161(0x300),_0x27a4df),...W(_0x1d18a8,'width',_0x27a4df),...W(_0x1d18a8,_0x23f161(0x1fe),_0x27a4df),...Ze(_0x1d18a8,_0x23f161(0x221),_0x27a4df)};}function Xe(_0x47f607,_0xd490cc,_0x37cf68){const _0x44b10a=_0x46a1c2;if(_0x47f607==null)return _0xd490cc['startsWith'](_0x44b10a(0x276))?_0x205617[_0x44b10a(0x2c8)]:_0x205617[_0x44b10a(0x253)];if(_0x47f607===_0x205617[_0x44b10a(0x253)]||_0x47f607===_0x205617['UUID']||_0x47f607===_0x205617['BASE64'])return _0x47f607;throw TypeError(_0x37cf68+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0x3a7c1b,_0x3ddc1e,_0x4d73a1){const _0x5cffb0=_0x46a1c2;if(typeof _0x3a7c1b!=_0x5cffb0(0x2f3)||!_0x3a7c1b[_0x5cffb0(0x2a7)]())throw TypeError(_0x3ddc1e+_0x5cffb0(0x21d)+_0x4d73a1+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x3a7c1b;}function Ze(_0x4b3a30,_0xf0520b,_0x21d8e9){const _0x4771ee=_0x46a1c2;let _0x367f11=_0x4b3a30[_0xf0520b];if(_0x367f11==null)return{};if(typeof _0x367f11!=_0x4771ee(0x2f3)||!_0x367f11[_0x4771ee(0x2a7)]())throw TypeError(_0x21d8e9+':\x20\x22'+_0xf0520b+_0x4771ee(0x288));return{[_0xf0520b]:_0x367f11};}function W(_0x37b9f2,_0x4638f4,_0x290834){const _0x2cf62a=_0x46a1c2;let _0x29a946=_0x37b9f2[_0x4638f4];if(_0x29a946==null)return{};if(typeof _0x29a946!='number'||!Number['isFinite'](_0x29a946)||_0x29a946<0x0)throw TypeError(_0x290834+_0x2cf62a(0x21d)+_0x4638f4+_0x2cf62a(0x1de));return{[_0x4638f4]:_0x29a946};}function Qe(_0x337e9d){const _0x4bd7c1=_0x46a1c2;return typeof _0x337e9d==_0x4bd7c1(0x2c9)&&!!_0x337e9d&&!Array['isArray'](_0x337e9d);}var G;let K=G=class{constructor(_0x533c79,_0x5d78ad,_0x752836,_0x53810c,_0xae2af6){const _0x521df5=_0x46a1c2;this['_base']=_0x533c79,this[_0x521df5(0x329)]=_0x5d78ad,this[_0x521df5(0x1d8)]=_0x752836,this[_0x521df5(0x2ce)]=_0x53810c,this['_commandService']=_0xae2af6,this['_assertInBounds']();}[_0x46a1c2(0x205)](){const _0x1d9582=_0x46a1c2;return this['_base'][_0x1d9582(0x28e)]();}[_0x46a1c2(0x263)](){const _0x4582bd=_0x46a1c2;return this['_table'][_0x4582bd(0x28e)]();}[_0x46a1c2(0x220)](){const _0x50c384=_0x46a1c2;return{...this[_0x50c384(0x1d8)]};}[_0x46a1c2(0x2cd)](){const _0x255af4=_0x46a1c2;return this[_0x255af4(0x1d8)][_0x255af4(0x2b6)];}[_0x46a1c2(0x25c)](){const _0x4c2abe=_0x46a1c2;return this['_range'][_0x4c2abe(0x2b1)];}[_0x46a1c2(0x23a)](){const _0x8b10c1=_0x46a1c2;return this[_0x8b10c1(0x1d8)]['endRow']-this[_0x8b10c1(0x1d8)]['startRow']+0x1;}[_0x46a1c2(0x2df)](){const _0x55029b=_0x46a1c2;return this[_0x55029b(0x1d8)]['endColumn']-this['_range'][_0x55029b(0x2b1)]+0x1;}[_0x46a1c2(0x264)](){const _0xeb3fea=_0x46a1c2;let _0x5aa3b0=this['_getTable'](),_0x350151=this[_0xeb3fea(0x2ab)](_0x5aa3b0),_0x2e9169=[];for(let _0x5ab8cc=this['_range']['startRow'];_0x5ab8cc<=this[_0xeb3fea(0x1d8)][_0xeb3fea(0x289)];_0x5ab8cc++){var _0x322482;let _0x399ae7=(_0x322482=_0x5aa3b0['rowId'])==null?void 0x0:_0x322482[_0x5ab8cc],_0x59ea2f=[];for(let _0x792cc5=this[_0xeb3fea(0x1d8)][_0xeb3fea(0x2b1)];_0x792cc5<=this[_0xeb3fea(0x1d8)]['endColumn'];_0x792cc5++){let _0x5589bd=_0x350151[_0x792cc5];_0x59ea2f[_0xeb3fea(0x2c5)](_0x399ae7&&_0x5589bd?_0x41f49c(_0x5aa3b0,_0x399ae7,_0x5589bd):null);}_0x2e9169[_0xeb3fea(0x2c5)](_0x59ea2f);}return _0x2e9169;}['getValue'](){const _0x5aebac=_0x46a1c2;var _0x4e4f58;return((_0x4e4f58=this[_0x5aebac(0x264)]()[0x0])==null?void 0x0:_0x4e4f58[0x0])??null;}[_0x46a1c2(0x200)](_0x30fd20){const _0x4a0c0d=_0x46a1c2;return this[_0x4a0c0d(0x1f4)]([[_0x30fd20]]);}[_0x46a1c2(0x1f4)](_0x55dc63){const _0x27e523=_0x46a1c2;let _0x1441ec=this[_0x27e523(0x23a)](),_0x200ecd=this[_0x27e523(0x2df)]();if(_0x55dc63[_0x27e523(0x268)]>_0x1441ec||_0x55dc63['some'](_0x2c0e79=>_0x2c0e79[_0x27e523(0x268)]>_0x200ecd)){var _0x5e2cf6;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x55dc63['length']+'x'+(((_0x5e2cf6=_0x55dc63[0x0])==null?void 0x0:_0x5e2cf6['length'])??0x0)+_0x27e523(0x1e0)+_0x1441ec+'x'+_0x200ecd+'.');}let _0x1608d1=this['_getTable'](),_0x941ea3=this[_0x27e523(0x2ab)](_0x1608d1),_0x363c31=_0x55dc63['flatMap']((_0x4e7488,_0x469281)=>_0x4e7488['map']((_0x18aa5d,_0x4b4f22)=>{const _0x204cbe=_0x27e523;var _0x552abf;let _0x5c7266=this[_0x204cbe(0x1d8)]['startRow']+_0x469281,_0x12dcc7=_0x941ea3[this['_range'][_0x204cbe(0x2b1)]+_0x4b4f22],_0x3f4780=(_0x552abf=_0x1608d1[_0x204cbe(0x21b)])==null?void 0x0:_0x552abf[_0x5c7266];if(!_0x12dcc7||!_0x3f4780)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x3f4780,'fieldId':_0x12dcc7,'value':_0x18aa5d};}));return this['_commandService'][_0x27e523(0x2f2)](_0x473f48['id'],{'unitId':this[_0x27e523(0x1dc)][_0x27e523(0x28e)](),'tableId':this[_0x27e523(0x329)][_0x27e523(0x28e)](),'patches':_0x363c31,'source':_0x198fc0[_0x27e523(0x31b)]});}[_0x46a1c2(0x27b)](){const _0x47b80b=_0x46a1c2;return this[_0x47b80b(0x1f4)](Array['from']({'length':this[_0x47b80b(0x23a)]()},()=>Array[_0x47b80b(0x29e)]({'length':this['getNumColumns']()},()=>null)));}[_0x46a1c2(0x2d6)](_0x1d937a,_0x5cffa4,_0x27c032=this['getNumRows'](),_0x513a3d=this['getNumColumns']()){const _0x47d0aa=_0x46a1c2;return this[_0x47d0aa(0x2ce)][_0x47d0aa(0x1f3)](G,this[_0x47d0aa(0x1dc)],this['_table'],{'startRow':this['_range'][_0x47d0aa(0x2b6)]+_0x1d937a,'startColumn':this[_0x47d0aa(0x1d8)][_0x47d0aa(0x2b1)]+_0x5cffa4,'endRow':this[_0x47d0aa(0x1d8)][_0x47d0aa(0x2b6)]+_0x1d937a+_0x27c032-0x1,'endColumn':this['_range'][_0x47d0aa(0x2b1)]+_0x5cffa4+_0x513a3d-0x1},this[_0x47d0aa(0x2ce)]);}[_0x46a1c2(0x2bb)](){const _0x4812f6=_0x46a1c2;let _0x4edbdc=this[_0x4812f6(0x329)][_0x4812f6(0x310)]();if(!_0x4edbdc)throw Error(_0x4812f6(0x242));return _0x580a6d(_0x4edbdc);}['_assertInBounds'](){const _0x4c04fc=_0x46a1c2;var _0x224d55;let _0x446024=this[_0x4c04fc(0x2bb)](),_0x25c5ff=((_0x224d55=_0x446024[_0x4c04fc(0x213)])==null?void 0x0:_0x224d55[_0x4c04fc(0x268)])??0x0,_0x3500df=this[_0x4c04fc(0x2ab)](_0x446024)['length'];if(this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b6)]<0x0||this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b1)]<0x0||this[_0x4c04fc(0x1d8)][_0x4c04fc(0x289)]<this[_0x4c04fc(0x1d8)][_0x4c04fc(0x2b6)]||this['_range'][_0x4c04fc(0x22b)]<this[_0x4c04fc(0x1d8)]['startColumn']||this['_range'][_0x4c04fc(0x289)]>=Math[_0x4c04fc(0x31f)](_0x25c5ff,0x1)||this[_0x4c04fc(0x1d8)]['endColumn']>=Math[_0x4c04fc(0x31f)](_0x3500df,0x1))throw Error(_0x4c04fc(0x29a)+_0x25c5ff+_0x4c04fc(0x222)+_0x3500df+_0x4c04fc(0x28f)+JSON[_0x4c04fc(0x303)](this['_range'])+'.');}[_0x46a1c2(0x2ab)](_0x5870c5){const _0x1a59a9=_0x46a1c2;return _0x5870c5[_0x1a59a9(0x249)][_0x1a59a9(0x252)](_0x358799=>V(_0x5870c5[_0x1a59a9(0x2b9)][_0x358799]));}};K=G=z([R(0x4,_0x3ac0f5)],K);var q;let J=q=class{constructor(_0x5c6460,_0x35b829,_0x4596b7,_0x3baa20,_0x2f330e){const _0x31ae15=_0x46a1c2;this[_0x31ae15(0x1dc)]=_0x5c6460,this[_0x31ae15(0x329)]=_0x35b829,this['_recordId']=_0x4596b7,this[_0x31ae15(0x2ce)]=_0x3baa20,this[_0x31ae15(0x2e9)]=_0x2f330e;}[_0x46a1c2(0x28e)](){const _0x1f1f43=_0x46a1c2;return this[_0x1f1f43(0x30e)];}[_0x46a1c2(0x202)](){const _0x37cda4=_0x46a1c2;return{...this[_0x37cda4(0x225)](),'values':this[_0x37cda4(0x264)]()};}['getValue'](_0x4631a0){const _0x1a890b=_0x46a1c2;return V(this[_0x1a890b(0x329)]['getTable']()[_0x1a890b(0x2b9)][_0x4631a0])?this[_0x1a890b(0x225)]()['values'][_0x4631a0]??null:null;}[_0x46a1c2(0x264)](){const _0x102541=_0x46a1c2;let _0x570fff=this[_0x102541(0x329)]['getTable']();return Object['fromEntries'](Object[_0x102541(0x2ff)](this[_0x102541(0x225)]()[_0x102541(0x326)])[_0x102541(0x252)](([_0x15961d])=>V(_0x570fff['fields'][_0x15961d])));}[_0x46a1c2(0x200)](_0x196b2a,_0x677c40){const _0x4b0375=_0x46a1c2;let _0x367eca=this[_0x4b0375(0x329)]['getTable']()['fields'][_0x196b2a];return this[_0x4b0375(0x2e9)][_0x4b0375(0x2f2)](_0x13c61e['id'],{'unitId':this[_0x4b0375(0x1dc)][_0x4b0375(0x28e)](),'tableId':this[_0x4b0375(0x329)][_0x4b0375(0x28e)](),'recordId':this['_recordId'],'fieldId':_0x196b2a,'value':qe(_0x367eca,_0x677c40),'source':_0x198fc0[_0x4b0375(0x31b)]});}[_0x46a1c2(0x266)](_0x6a9e83,_0xaf7bdc){const _0x1306bf=_0x46a1c2;return this[_0x1306bf(0x200)](_0x6a9e83,_0xaf7bdc[_0x1306bf(0x232)](_0x2881f4=>({..._0x2881f4})));}[_0x46a1c2(0x1f4)](_0xd4cad1,_0x1c4cc2='id'){const _0x2a39cd=_0x46a1c2;let _0x51921a=this[_0x2a39cd(0x329)][_0x2a39cd(0x310)](),_0x51e7c3=[{'recordId':this[_0x2a39cd(0x30e)],'values':H(_0x51921a,_0xd4cad1,_0x1c4cc2)}];return this[_0x2a39cd(0x2e9)][_0x2a39cd(0x2f2)](_0x294f1c['id'],{'unitId':this[_0x2a39cd(0x1dc)][_0x2a39cd(0x28e)](),'tableId':this[_0x2a39cd(0x329)][_0x2a39cd(0x28e)](),'patches':_0x51e7c3,'source':_0x198fc0[_0x2a39cd(0x31b)]});}[_0x46a1c2(0x229)](){const _0x1c4c3=_0x46a1c2;return this['_commandService'][_0x1c4c3(0x2f2)](_0x44f0bf['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'recordId':this[_0x1c4c3(0x30e)],'source':_0x198fc0[_0x1c4c3(0x31b)]});}[_0x46a1c2(0x25d)](_0xf7018b){const _0x302805=_0x46a1c2;let _0x5bf770={...this[_0x302805(0x225)](),..._0xf7018b,'id':_0x5f0f93(0x6)};_0x5bf770[_0x302805(0x326)]={..._0x5bf770[_0x302805(0x326)],..._0xf7018b==null?void 0x0:_0xf7018b['values']},Reflect[_0x302805(0x20b)](_0x5bf770[_0x302805(0x326)],_0x56d8f8);let _0xe3b655=Date[_0x302805(0x204)]();if(_0x5bf770['orderKey']||=''+_0xe3b655,_0x5bf770['createdAt']||=_0xe3b655,_0x5bf770[_0x302805(0x27a)]||=_0xe3b655,!this[_0x302805(0x2e9)][_0x302805(0x2f2)](_0x209820['id'],{'unitId':this['_base'][_0x302805(0x28e)](),'tableId':this['_table'][_0x302805(0x28e)](),'sourceRecordId':this[_0x302805(0x30e)],'record':_0x5bf770,'source':_0x198fc0['Facade']}))throw Error(_0x302805(0x2ae)+this[_0x302805(0x30e)]+'\x22.');return this[_0x302805(0x2ce)]['createInstance'](q,this[_0x302805(0x1dc)],this[_0x302805(0x329)],_0x5bf770['id'],this[_0x302805(0x2ce)]);}[_0x46a1c2(0x236)](_0x22f690){const _0x4bb0d7=_0x46a1c2;return this[_0x4bb0d7(0x2e9)][_0x4bb0d7(0x2f2)](_0x319f6b['id'],{'unitId':this[_0x4bb0d7(0x1dc)][_0x4bb0d7(0x28e)](),'tableId':this[_0x4bb0d7(0x329)]['getId'](),'recordId':this[_0x4bb0d7(0x30e)],'orderKey':_0x22f690});}[_0x46a1c2(0x2d7)](_0xcbc498){const _0x2f3d50=_0x46a1c2;let _0x6d521e=this[_0x2f3d50(0x30c)](_0xcbc498);return _0x855fa7(this[_0x2f3d50(0x27d)](_0x6d521e['id']));}[_0x46a1c2(0x1e4)](_0xed2418,_0x118267){const _0x266e7d=_0x46a1c2;let _0x4ace35=this[_0x266e7d(0x30c)](_0xed2418),_0x357c0f=_0x3d1f9e(_0x118267),_0x142e90=_0x42ad7f(this[_0x266e7d(0x1dc)][_0x266e7d(0x245)]()['getSnapshot'](),_0x4ace35,_0x357c0f);if(!_0x142e90[_0x266e7d(0x2dc)])throw Error(_0x142e90[_0x266e7d(0x273)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this['_commandService'][_0x266e7d(0x2f2)](_0x13c61e['id'],{'unitId':this['_base'][_0x266e7d(0x28e)](),'tableId':this[_0x266e7d(0x329)][_0x266e7d(0x28e)](),'recordId':this[_0x266e7d(0x30e)],'fieldId':_0xed2418,'value':_0x357c0f,'source':_0x198fc0[_0x266e7d(0x31b)]});}[_0x46a1c2(0x218)](_0x2e78de,_0xf8c765){const _0x58d613=_0x46a1c2;let _0x158e47=_0x15242e(this['_getRecordLinkField'](_0x2e78de));if(!_0x158e47)throw Error(_0x58d613(0x274)+_0x2e78de+'\x22\x20has\x20invalid\x20config.');let _0x846797=this[_0x58d613(0x2d7)](_0x2e78de);return _0x158e47[_0x58d613(0x22e)]&&_0x846797['includes'](_0xf8c765)?!0x0:this[_0x58d613(0x1e4)](_0x2e78de,_0x158e47[_0x58d613(0x22e)]?[..._0x846797,_0xf8c765]:[_0xf8c765]);}[_0x46a1c2(0x2e0)](_0x7adfe0,_0x2b5094){const _0x324899=_0x46a1c2;let _0x12b98d=this['getLinkedRecordIds'](_0x7adfe0);return!_0x12b98d[_0x324899(0x25a)](_0x2b5094)||this[_0x324899(0x1e4)](_0x7adfe0,_0x12b98d[_0x324899(0x252)](_0x242675=>_0x242675!==_0x2b5094));}[_0x46a1c2(0x272)](_0x286e39){const _0x16202f=_0x46a1c2;let _0x583f78=this[_0x16202f(0x24c)](_0x286e39)[_0x16202f(0x201)]['get'](this[_0x16202f(0x30e)])??null;return _0x583f78?this[_0x16202f(0x329)]['getRecordById'](_0x583f78):null;}[_0x46a1c2(0x327)](_0x1f1187){const _0x54cb77=_0x46a1c2;return(this[_0x54cb77(0x24c)](_0x1f1187)[_0x54cb77(0x291)]['get'](this[_0x54cb77(0x30e)])??[])[_0x54cb77(0x23e)](_0x26fad1=>{const _0x2d938f=_0x54cb77;let _0x3a7014=this[_0x2d938f(0x329)][_0x2d938f(0x320)](_0x26fad1);return _0x3a7014?[_0x3a7014]:[];});}[_0x46a1c2(0x24f)](_0x53bfe1){const _0x35324b=_0x46a1c2;let _0x1a1e30=this['_getHierarchyIndex'](_0x53bfe1),_0x37169e=[],_0x2ac6fa=_0x1a1e30[_0x35324b(0x201)]['get'](this[_0x35324b(0x30e)])??null;for(;_0x2ac6fa;){let _0x3bab0d=this['_table'][_0x35324b(0x320)](_0x2ac6fa);_0x3bab0d&&_0x37169e[_0x35324b(0x2c5)](_0x3bab0d),_0x2ac6fa=_0x1a1e30[_0x35324b(0x201)][_0x35324b(0x307)](_0x2ac6fa)??null;}return _0x37169e;}[_0x46a1c2(0x2fd)](_0x4ea204){const _0x4d4e7f=_0x46a1c2;let _0x5ddd96=this[_0x4d4e7f(0x24c)](_0x4ea204),_0x1a5c74=_0x5ddd96['orderedRecordIds'][_0x4d4e7f(0x1f0)](this[_0x4d4e7f(0x30e)]),_0x34698b=_0x5ddd96['subtreeHeightByRecordId'][_0x4d4e7f(0x2e6)](this['_recordId'])?this['_collectDescendantIds'](_0x5ddd96[_0x4d4e7f(0x291)],this['_recordId']):[];return _0x1a5c74<0x0?[]:_0x34698b[_0x4d4e7f(0x23e)](_0x3cdd31=>{const _0x59918f=_0x4d4e7f;let _0x2a3a15=this[_0x59918f(0x329)][_0x59918f(0x320)](_0x3cdd31);return _0x2a3a15?[_0x2a3a15]:[];});}['setParent'](_0x55a078,_0x4c68ad,_0x34b6cc){const _0x1a2e63=_0x46a1c2;return this[_0x1a2e63(0x2e9)][_0x1a2e63(0x2f2)](_0x345dff['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'fieldId':_0x55a078,'recordId':this[_0x1a2e63(0x30e)],'parentRecordId':_0x4c68ad,'orderKey':_0x34b6cc,'source':_0x198fc0[_0x1a2e63(0x31b)]});}[_0x46a1c2(0x30f)](_0x540b6c,_0xeac821,_0x7ba61d='id',_0x4b401c){const _0x198135=_0x46a1c2;let _0x2131b6=this[_0x198135(0x329)][_0x198135(0x310)](),_0x13dd06=Date[_0x198135(0x204)](),_0x4d4589={..._0x4b401c,'id':_0x5f0f93(0x6),'values':H(_0x2131b6,_0xeac821,_0x7ba61d),'orderKey':(_0x4b401c==null?void 0x0:_0x4b401c[_0x198135(0x1e8)])||''+_0x13dd06,'createdAt':(_0x4b401c==null?void 0x0:_0x4b401c['createdAt'])||_0x13dd06,'updatedAt':(_0x4b401c==null?void 0x0:_0x4b401c[_0x198135(0x27a)])||_0x13dd06};if(!this[_0x198135(0x2e9)][_0x198135(0x2f2)](_0x168ce8['id'],{'unitId':this[_0x198135(0x1dc)][_0x198135(0x28e)](),'tableId':this[_0x198135(0x329)]['getId'](),'fieldId':_0x540b6c,'parentRecordId':this[_0x198135(0x30e)],'record':_0x4d4589,'source':_0x198fc0[_0x198135(0x31b)]}))throw Error(_0x198135(0x22f)+this[_0x198135(0x30e)]+'\x22.');return this[_0x198135(0x2ce)][_0x198135(0x1f3)](q,this[_0x198135(0x1dc)],this[_0x198135(0x329)],_0x4d4589['id'],this[_0x198135(0x2ce)]);}[_0x46a1c2(0x24c)](_0x1f1d5d){return _0x345aca(this['_table']['getTable'](),_0x1f1d5d);}[_0x46a1c2(0x224)](_0x1773b7,_0x373e7f){let _0x549ee3=[],_0x3d483a=_0x1106bd=>{const _0x5e359b=_0x5746;for(let _0x12eaff of _0x1773b7[_0x5e359b(0x307)](_0x1106bd)??[])_0x549ee3[_0x5e359b(0x2c5)](_0x12eaff),_0x3d483a(_0x12eaff);};return _0x3d483a(_0x373e7f),_0x549ee3;}['_getRecord'](){const _0x18d1f4=_0x46a1c2;let _0x3db174=this[_0x18d1f4(0x329)][_0x18d1f4(0x310)]()[_0x18d1f4(0x302)][this[_0x18d1f4(0x30e)]];if(!_0x3db174)throw Error(_0x18d1f4(0x269)+this['_recordId']+_0x18d1f4(0x2c3));return _0x3db174;}[_0x46a1c2(0x30c)](_0x369a51){const _0x58d71d=_0x46a1c2;let _0x864f72=this[_0x58d71d(0x329)][_0x58d71d(0x310)]()[_0x58d71d(0x2b9)][_0x369a51];if(!_0x864f72||_0x864f72[_0x58d71d(0x241)]!==_0xafe9b1[_0x58d71d(0x2cc)])throw Error(_0x58d71d(0x2c6)+_0x369a51+_0x58d71d(0x21a));return _0x864f72;}};J=q=z([R(0x4,_0x3ac0f5)],J);let Y=class{constructor(_0x356cd1,_0x225251,_0x4ea1ef,_0x331bdd,_0x1524e6,_0xe8490e){const _0x5b49fa=_0x46a1c2;this[_0x5b49fa(0x1dc)]=_0x356cd1,this['_table']=_0x225251,this['_viewId']=_0x4ea1ef,this['_injector']=_0x331bdd,this[_0x5b49fa(0x2e9)]=_0x1524e6,this[_0x5b49fa(0x25e)]=_0xe8490e;}['getId'](){const _0x1df3b1=_0x46a1c2;return this[_0x1df3b1(0x267)];}[_0x46a1c2(0x2fc)](){const _0x4ec6e6=_0x46a1c2;return this[_0x4ec6e6(0x2a9)]();}['getName'](){const _0x17eae9=_0x46a1c2;return this[_0x17eae9(0x2a9)]()[_0x17eae9(0x2aa)];}['getType'](){const _0x51ae92=_0x46a1c2;return this[_0x51ae92(0x2a9)]()[_0x51ae92(0x241)];}['setName'](_0xb7ef3e){const _0x553ad9=_0x46a1c2;return this[_0x553ad9(0x2e9)][_0x553ad9(0x2f2)](_0xdf6fe9['id'],{'unitId':this[_0x553ad9(0x1dc)][_0x553ad9(0x28e)](),'tableId':this[_0x553ad9(0x329)]['getId'](),'viewId':this[_0x553ad9(0x267)],'name':_0xb7ef3e});}[_0x46a1c2(0x31d)](){const _0x32c855=_0x46a1c2;let _0x3e567d=this[_0x32c855(0x1fa)](),_0xb19de8=this['_getView']()[_0x32c855(0x296)];switch(_0x3e567d){case _0x477789[_0x32c855(0x1fd)]:return _0xb19de8;case _0x477789[_0x32c855(0x31a)]:return _0xb19de8;case _0x477789[_0x32c855(0x25f)]:return _0xb19de8;case _0x477789[_0x32c855(0x2de)]:return _0xb19de8;case _0x477789[_0x32c855(0x305)]:return _0xb19de8;default:return _0xb19de8;}}[_0x46a1c2(0x31e)](_0x16f9ed){const _0x5eba7c=_0x46a1c2;return this['_commandService']['syncExecuteCommand'](_0x1b5df4['id'],{'unitId':this[_0x5eba7c(0x1dc)][_0x5eba7c(0x28e)](),'tableId':this[_0x5eba7c(0x329)][_0x5eba7c(0x28e)](),'viewId':this[_0x5eba7c(0x267)],'patch':_0x16f9ed});}[_0x46a1c2(0x2ca)](){const _0x255467=_0x46a1c2;var _0x560d7c;return _0x125277[_0x255467(0x1ed)](((_0x560d7c=this[_0x255467(0x2a9)]()[_0x255467(0x296)][_0x255467(0x2ad)])==null?void 0x0:_0x560d7c[_0x255467(0x27f)])??[]);}[_0x46a1c2(0x1f5)](_0x2c8ecc){const _0x4af48f=_0x46a1c2;return this[_0x4af48f(0x2e9)][_0x4af48f(0x2f2)](_0x346c53['id'],{'unitId':this[_0x4af48f(0x1dc)][_0x4af48f(0x28e)](),'tableId':this[_0x4af48f(0x329)][_0x4af48f(0x28e)](),'viewId':this[_0x4af48f(0x267)],'type':_0x25f9f8[_0x4af48f(0x260)],'rules':_0x2c8ecc});}['addConditionalColorRule'](_0x2b1b16){const _0x1576d2=_0x46a1c2;return this[_0x1576d2(0x2e9)][_0x1576d2(0x2f2)](_0x346c53['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1576d2(0x329)][_0x1576d2(0x28e)](),'viewId':this[_0x1576d2(0x267)],'type':_0x25f9f8[_0x1576d2(0x244)],'rule':_0x2b1b16});}['deleteConditionalColorRule'](_0x1007b4){const _0x37531e=_0x46a1c2;return this[_0x37531e(0x2e9)][_0x37531e(0x2f2)](_0x346c53['id'],{'unitId':this[_0x37531e(0x1dc)][_0x37531e(0x28e)](),'tableId':this['_table']['getId'](),'viewId':this[_0x37531e(0x267)],'type':_0x25f9f8[_0x37531e(0x301)],'ruleId':_0x1007b4});}['clearConditionalColorRules'](){const _0x592e7a=_0x46a1c2;return this['_commandService'][_0x592e7a(0x2f2)](_0x346c53['id'],{'unitId':this[_0x592e7a(0x1dc)][_0x592e7a(0x28e)](),'tableId':this[_0x592e7a(0x329)]['getId'](),'viewId':this[_0x592e7a(0x267)],'type':_0x25f9f8['Clear']});}[_0x46a1c2(0x250)](){const _0x535092=_0x46a1c2;return this['_getView']()[_0x535092(0x252)]??null;}['setFilter'](_0x3f7a7a){const _0x2762a9=_0x46a1c2;return this[_0x2762a9(0x2e9)][_0x2762a9(0x2f2)](_0x182d68['id'],{'unitId':this[_0x2762a9(0x1dc)][_0x2762a9(0x28e)](),'tableId':this[_0x2762a9(0x329)][_0x2762a9(0x28e)](),'viewId':this[_0x2762a9(0x267)],'filter':_0x3f7a7a});}['getSort'](){const _0xf62ec7=_0x46a1c2;return this[_0xf62ec7(0x2a9)]()[_0xf62ec7(0x23c)]??[];}[_0x46a1c2(0x2a2)](_0x12ef75){const _0x1f8e46=_0x46a1c2;return this[_0x1f8e46(0x2e9)][_0x1f8e46(0x2f2)](_0x164ead['id'],{'unitId':this[_0x1f8e46(0x1dc)][_0x1f8e46(0x28e)](),'tableId':this['_table'][_0x1f8e46(0x28e)](),'viewId':this['_viewId'],'sort':_0x12ef75});}[_0x46a1c2(0x1e7)](){const _0x35ac3d=_0x46a1c2;return this[_0x35ac3d(0x2a9)]()[_0x35ac3d(0x1f6)]??[];}['setGroup'](_0x313ee5){const _0x182d45=_0x46a1c2;return this[_0x182d45(0x2e9)][_0x182d45(0x2f2)](_0x398613['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x182d45(0x28e)](),'viewId':this[_0x182d45(0x267)],'group':_0x313ee5});}[_0x46a1c2(0x2a4)](_0x5ad448){const _0x63b29f=_0x46a1c2;var _0x573843;return V(this[_0x63b29f(0x329)]['getTable']()[_0x63b29f(0x2b9)][_0x5ad448])?((_0x573843=this[_0x63b29f(0x2a9)]()['fieldSettings'])==null?void 0x0:_0x573843[_0x5ad448])??{}:{};}[_0x46a1c2(0x27c)](){const _0x3681a3=_0x46a1c2;let _0x5b541b=this[_0x3681a3(0x329)][_0x3681a3(0x310)](),_0x4df094=this[_0x3681a3(0x2a9)]();return(_0x4df094[_0x3681a3(0x249)]??_0x5b541b[_0x3681a3(0x249)])[_0x3681a3(0x252)](_0x3de25f=>{const _0x3b67d8=_0x3681a3;var _0x111f42;let _0x1d6e89=_0x5b541b[_0x3b67d8(0x2b9)][_0x3de25f];return V(_0x1d6e89)&&!((_0x111f42=_0x4df094['fieldSettings'])!=null&&(_0x111f42=_0x111f42[_0x3de25f])!=null&&_0x111f42[_0x3b67d8(0x321)]);})[_0x3681a3(0x232)](_0x14cd1b=>this[_0x3681a3(0x306)][_0x3681a3(0x1f3)](B,this[_0x3681a3(0x1dc)],this['_table'],_0x14cd1b));}['setFieldVisible'](_0x52cc3c,_0x141ee7){const _0x2ce109=_0x46a1c2;return V(this[_0x2ce109(0x329)][_0x2ce109(0x310)]()['fields'][_0x52cc3c])?this['_commandService']['syncExecuteCommand'](_0x171450['id'],{'unitId':this[_0x2ce109(0x1dc)]['getId'](),'tableId':this[_0x2ce109(0x329)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x52cc3c,'visible':_0x141ee7}):!0x1;}[_0x46a1c2(0x2dd)](_0x55a484,_0x4f67bb){const _0x4fb44d=_0x46a1c2;return V(this['_table']['getTable']()[_0x4fb44d(0x2b9)][_0x55a484])?this['_commandService']['syncExecuteCommand'](_0x2a4787['id'],{'unitId':this[_0x4fb44d(0x1dc)]['getId'](),'tableId':this['_table'][_0x4fb44d(0x28e)](),'viewId':this[_0x4fb44d(0x267)],'fieldId':_0x55a484,'width':_0x4f67bb}):!0x1;}[_0x46a1c2(0x265)](_0x11cc70,_0x3318b9){const _0x1b75a1=_0x46a1c2;let _0x3bc7b0=this[_0x1b75a1(0x329)]['getTable'](),_0x16423f=_0x3318b9[_0x1b75a1(0x2a0)]??_0x3318b9[_0x1b75a1(0x2e5)];return!V(_0x3bc7b0['fields'][_0x11cc70])||!_0x16423f||!V(_0x3bc7b0[_0x1b75a1(0x2b9)][_0x16423f])?!0x1:this[_0x1b75a1(0x2e9)][_0x1b75a1(0x2f2)](_0x3001eb['id'],{'unitId':this[_0x1b75a1(0x1dc)][_0x1b75a1(0x28e)](),'tableId':this[_0x1b75a1(0x329)]['getId'](),'viewId':this[_0x1b75a1(0x267)],'fieldId':_0x11cc70,'target':_0x3318b9});}[_0x46a1c2(0x308)](_0xd112d2){const _0x3a2bcb=_0x46a1c2;return this[_0x3a2bcb(0x2e9)][_0x3a2bcb(0x2f2)](_0x3c52e4['id'],{'unitId':this[_0x3a2bcb(0x1dc)]['getId'](),'tableId':this[_0x3a2bcb(0x329)]['getId'](),'viewId':this['_viewId'],'target':_0xd112d2});}[_0x46a1c2(0x229)](){const _0x5787d4=_0x46a1c2;return this[_0x5787d4(0x2e9)][_0x5787d4(0x2f2)](_0x13f67c['id'],{'unitId':this[_0x5787d4(0x1dc)][_0x5787d4(0x28e)](),'tableId':this[_0x5787d4(0x329)][_0x5787d4(0x28e)](),'viewId':this[_0x5787d4(0x267)]});}['getProjection'](){const _0x3c5e63=_0x46a1c2;return this[_0x3c5e63(0x25e)][_0x3c5e63(0x2ac)](this['_base']['getBase']()[_0x3c5e63(0x2b7)](),this[_0x3c5e63(0x329)][_0x3c5e63(0x28e)](),this[_0x3c5e63(0x267)]);}[_0x46a1c2(0x2a9)](){const _0x8d1ace=_0x46a1c2;let _0x1ddffe=this[_0x8d1ace(0x329)]['getTable']()[_0x8d1ace(0x283)][this[_0x8d1ace(0x267)]];if(!_0x1ddffe)throw Error(_0x8d1ace(0x1d9)+this[_0x8d1ace(0x267)]+_0x8d1ace(0x2c3));return _0x1ddffe;}};Y=z([R(0x4,_0x3ac0f5),R(0x5,_0x5db0b9)],Y);let X=class{constructor(_0x4a6d48,_0x5da5c5,_0x1f1daf,_0x2f54ef,_0x1c6ecc){const _0x6f5179=_0x46a1c2;this[_0x6f5179(0x1dc)]=_0x4a6d48,this[_0x6f5179(0x248)]=_0x5da5c5,this[_0x6f5179(0x306)]=_0x1f1daf,this[_0x6f5179(0x2e9)]=_0x2f54ef,this[_0x6f5179(0x25e)]=_0x1c6ecc;}[_0x46a1c2(0x245)](){const _0x24efe0=_0x46a1c2;return this[_0x24efe0(0x1dc)][_0x24efe0(0x245)]();}['getTable'](){const _0x4593f5=_0x46a1c2;return this[_0x4593f5(0x2bb)]();}[_0x46a1c2(0x28e)](){return this['_tableId'];}['getHierarchyFieldId'](){const _0x500fbe=_0x46a1c2;return _0x312492(this[_0x500fbe(0x2bb)]());}[_0x46a1c2(0x2e8)](_0x28a580){const _0x2bc852=_0x46a1c2;return this[_0x2bc852(0x2e9)][_0x2bc852(0x2f2)](_0x10d0c8['id'],{'unitId':this[_0x2bc852(0x1dc)][_0x2bc852(0x28e)](),'tableId':this[_0x2bc852(0x248)],'fieldId':_0x28a580});}[_0x46a1c2(0x2fb)](){const _0x4fe5e4=_0x46a1c2;return this['_getTable']()[_0x4fe5e4(0x2aa)];}[_0x46a1c2(0x2ba)](){const _0x317afa=_0x46a1c2;let _0x127507=this['_base']['getBase']()[_0x317afa(0x2b7)]();return _0x499083(this[_0x317afa(0x2bb)](),_0x127507);}[_0x46a1c2(0x21f)](_0x445c77){const _0x4d9582=_0x46a1c2;let _0x348a85=_0x545bdb(this[_0x4d9582(0x1dc)][_0x4d9582(0x245)]()[_0x4d9582(0x2b7)](),_0x445c77,this[_0x4d9582(0x248)]);if(!_0x348a85[_0x4d9582(0x2dc)])throw Error(_0x4d9582(0x2d3)+_0x445c77+_0x4d9582(0x317)+_0x30ff66+'\x20'+_0x348a85[_0x4d9582(0x273)]);return this['_commandService']['syncExecuteCommand'](_0x15e70d['id'],{'unitId':this[_0x4d9582(0x1dc)][_0x4d9582(0x28e)](),'tableId':this[_0x4d9582(0x248)],'name':_0x445c77});}[_0x46a1c2(0x2d5)](_0x493c3c,_0x2f7f2b){const _0x3213ad=_0x46a1c2;let _0x7f5210=this['_base'][_0x3213ad(0x245)]()[_0x3213ad(0x2b7)](),_0x34de9f=this[_0x3213ad(0x2bb)]();if(_0x2f7f2b){let _0x55165c=this[_0x3213ad(0x25e)][_0x3213ad(0x2ac)](_0x7f5210,this[_0x3213ad(0x248)],_0x2f7f2b),_0xb263d2=_0x34de9f['views'][_0x2f7f2b],_0x4524bc=_0x493c3c[_0x3213ad(0x1df)]??ot(_0x34de9f,_0xb263d2,_0x55165c),_0x206a83=_0x3213ad(0x212)in _0x55165c&&Array[_0x3213ad(0x2db)](_0x55165c[_0x3213ad(0x212)])?_0x55165c[_0x3213ad(0x212)]:[];return _0x2df9ac({..._0x493c3c,'table':_0x34de9f,'fieldIds':_0x4524bc,'rows':_0x206a83});}let _0x4758a4=(_0x34de9f['recordOrder']?_0x34de9f['recordOrder'][_0x3213ad(0x232)](_0x12b17c=>_0x34de9f[_0x3213ad(0x302)][_0x12b17c]):Object['values'](_0x34de9f['records'])[_0x3213ad(0x23c)]((_0x53df1e,_0x2782f8)=>_0x53df1e['orderKey']['localeCompare'](_0x2782f8['orderKey'])))[_0x3213ad(0x252)](_0x3eb9d4=>_0x3eb9d4)[_0x3213ad(0x232)](_0x721232=>({'recordId':_0x721232['id'],'values':_0x721232[_0x3213ad(0x326)]})),_0x34d05e=_0x493c3c['fieldIds']??_0x34de9f[_0x3213ad(0x249)]['filter'](_0x249aaf=>V(_0x34de9f['fields'][_0x249aaf]));return _0x2df9ac({..._0x493c3c,'table':_0x34de9f,'fieldIds':_0x34d05e,'rows':_0x4758a4});}[_0x46a1c2(0x271)](){const _0x5f04b1=_0x46a1c2;return this[_0x5f04b1(0x2bb)]()['primaryFieldId'];}[_0x46a1c2(0x2ed)](){const _0x53f785=_0x46a1c2;let _0x3652f3=this[_0x53f785(0x2bb)]();return _0x3652f3[_0x53f785(0x249)][_0x53f785(0x232)](_0x39f352=>_0x3652f3[_0x53f785(0x2b9)][_0x39f352])['filter'](V)[_0x53f785(0x232)](_0x228fa1=>this['_injector'][_0x53f785(0x1f3)](B,this['_base'],this,_0x228fa1['id']));}[_0x46a1c2(0x29d)](_0x559106){const _0x17b2ac=_0x46a1c2;let _0x3e74e4=this[_0x17b2ac(0x2bb)]()[_0x17b2ac(0x2b9)][_0x559106];return V(_0x3e74e4)?this[_0x17b2ac(0x306)][_0x17b2ac(0x1f3)](B,this['_base'],this,_0x3e74e4['id']):null;}[_0x46a1c2(0x323)](_0x41808f){const _0x5d1371=_0x46a1c2;let _0x1ab854=this['_getTable']()[_0x5d1371(0x2b9)],_0xf5c4cd=Object['values'](_0x1ab854)['find'](_0x448527=>V(_0x448527)&&_0x448527[_0x5d1371(0x2aa)]===_0x41808f);return _0xf5c4cd?this[_0x5d1371(0x306)][_0x5d1371(0x1f3)](B,this[_0x5d1371(0x1dc)],this,_0xf5c4cd['id']):null;}['getPrimaryField'](){const _0x24d443=_0x46a1c2;let _0x555713=this[_0x24d443(0x2bb)]()[_0x24d443(0x24b)];return this[_0x24d443(0x306)][_0x24d443(0x1f3)](B,this[_0x24d443(0x1dc)],this,_0x555713);}[_0x46a1c2(0x2af)](_0x598122,_0x14d9cc,_0x2a53e7){const _0xcfb1b=_0x46a1c2;var _0x5aac96,_0x1e17a1;if(!Object['values'](_0xafe9b1)[_0xcfb1b(0x259)](_0x38c6e5=>_0x38c6e5===_0x14d9cc))throw Error(_0xcfb1b(0x286)+String(_0x14d9cc)+'\x22.');if(_0x14d9cc===_0xafe9b1[_0xcfb1b(0x2d4)]&&this[_0xcfb1b(0x293)](_0x598122,_0x2a53e7),_0x14d9cc===_0xafe9b1[_0xcfb1b(0x2cc)]&&(typeof(_0x2a53e7==null||(_0x5aac96=_0x2a53e7['field'])==null||(_0x5aac96=_0x5aac96['config'])==null?void 0x0:_0x5aac96[_0xcfb1b(0x285)])!='string'||typeof _0x2a53e7[_0xcfb1b(0x2c7)][_0xcfb1b(0x296)][_0xcfb1b(0x22e)]!=_0xcfb1b(0x21c)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x42daef={..._0x2a53e7==null?void 0x0:_0x2a53e7[_0xcfb1b(0x2c7)],'id':_0x5f0f93(0x6),'name':_0x598122,'type':_0x14d9cc,'config':(_0x2a53e7==null||(_0x1e17a1=_0x2a53e7['field'])==null?void 0x0:_0x1e17a1[_0xcfb1b(0x296)])??{}};if(!this['_commandService']['syncExecuteCommand'](_0x15e597['id'],{'unitId':this['_base'][_0xcfb1b(0x28e)](),'tableId':this[_0xcfb1b(0x248)],'field':_0x42daef,'index':_0x2a53e7==null?void 0x0:_0x2a53e7[_0xcfb1b(0x215)]}))throw Error(_0xcfb1b(0x26c)+_0x598122+'\x22');return this[_0xcfb1b(0x306)][_0xcfb1b(0x1f3)](B,this['_base'],this,_0x42daef['id']);}['_prepareFormulaFieldReferences'](_0x2cd4a0,_0x848205){const _0x1a924f=_0x46a1c2;var _0x2512b3;if(!_0x848205||!(_0x1a924f(0x1e6)in _0x848205)||!Array['isArray'](_0x848205[_0x1a924f(0x1e6)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x221ace=this['_commandService'][_0x1a924f(0x2f2)](_0x59defd['id'],{'unitId':this[_0x1a924f(0x1dc)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x2512b3=_0x848205[_0x1a924f(0x2c7)])==null||(_0x2512b3=_0x2512b3[_0x1a924f(0x296)])==null?void 0x0:_0x2512b3[_0x1a924f(0x28d)])??'')});if(!_0x221ace['valid'])throw Error(_0x221ace['reason']??_0x1a924f(0x258));if(_0x848205['externalReferences']['length']>0x0&&!this['_commandService'][_0x1a924f(0x2f2)](_0x4e9cb6['id'],{'unitId':this[_0x1a924f(0x1dc)]['getId'](),'references':_0x848205[_0x1a924f(0x1e6)]}))throw Error(_0x1a924f(0x26a)+_0x2cd4a0+'\x22');}[_0x46a1c2(0x1fb)](){const _0x1313c7=_0x46a1c2;return this[_0x1313c7(0x29b)]()[_0x1313c7(0x232)](_0x2b95cf=>this[_0x1313c7(0x306)][_0x1313c7(0x1f3)](J,this[_0x1313c7(0x1dc)],this,_0x2b95cf,this[_0x1313c7(0x306)]));}[_0x46a1c2(0x320)](_0x366ab9){const _0x47a21c=_0x46a1c2;return this['_getTable']()[_0x47a21c(0x302)][_0x366ab9]?this[_0x47a21c(0x306)][_0x47a21c(0x1f3)](J,this[_0x47a21c(0x1dc)],this,_0x366ab9,this[_0x47a21c(0x306)]):null;}[_0x46a1c2(0x2ec)](_0x1f57c5={}){const _0x1a3ad3=_0x46a1c2;let _0x9ab45b=this[_0x1a3ad3(0x2bb)](),_0x1b694a=this[_0x1a3ad3(0x29b)](_0x1f57c5),_0x41767b=Math[_0x1a3ad3(0x31f)](0x0,_0x1f57c5[_0x1a3ad3(0x2d6)]??0x0),_0xb9cc32=_0x1f57c5[_0x1a3ad3(0x2a3)]==null?null:Math[_0x1a3ad3(0x31f)](0x0,_0x1f57c5['limit']),_0x1a968b=et(_0x1b694a['map'](_0x1ecee8=>_0x9ab45b[_0x1a3ad3(0x302)][_0x1ecee8])['filter'](_0x2ab359=>nt(_0x2ab359,_0x9ab45b,_0x1f57c5[_0x1a3ad3(0x252)])),_0x9ab45b,_0x1f57c5[_0x1a3ad3(0x23c)]);return{'records':$e(_0x1a968b,_0x1f57c5)['map'](_0x77700b=>this[_0x1a3ad3(0x306)][_0x1a3ad3(0x1f3)](J,this[_0x1a3ad3(0x1dc)],this,_0x77700b['id'],this[_0x1a3ad3(0x306)])),'total':_0x1a968b[_0x1a3ad3(0x268)],'offset':_0x41767b,'limit':_0xb9cc32,'hasMore':_0xb9cc32!=null&&_0x41767b+_0xb9cc32<_0x1a968b[_0x1a3ad3(0x268)]};}[_0x46a1c2(0x226)](_0x44875f,_0x40dad3='id',_0x585225){const _0x1e7be3=_0x46a1c2;let _0x16a8b0=this[_0x1e7be3(0x2bb)](),_0x51c16b=Date[_0x1e7be3(0x204)](),_0x3c362e={..._0x585225,'id':_0x5f0f93(0x6),'values':H(_0x16a8b0,_0x44875f,_0x40dad3),'orderKey':(_0x585225==null?void 0x0:_0x585225[_0x1e7be3(0x1e8)])||''+_0x51c16b,'createdAt':(_0x585225==null?void 0x0:_0x585225['createdAt'])||_0x51c16b,'updatedAt':(_0x585225==null?void 0x0:_0x585225[_0x1e7be3(0x27a)])||_0x51c16b};if(!this[_0x1e7be3(0x2e9)]['syncExecuteCommand'](_0x44b407['id'],{'unitId':this['_base'][_0x1e7be3(0x28e)](),'tableId':this['_tableId'],'record':_0x3c362e,'source':_0x198fc0[_0x1e7be3(0x31b)]}))throw Error(_0x1e7be3(0x30d)+_0x3c362e['id']+'\x22');return this[_0x1e7be3(0x306)][_0x1e7be3(0x1f3)](J,this[_0x1e7be3(0x1dc)],this,_0x3c362e['id'],this[_0x1e7be3(0x306)]);}['addRecords'](_0x228a06){const _0x56bdb7=_0x46a1c2;if(!_0x228a06[_0x56bdb7(0x268)])return[];let _0xc523a7=this['_getTable'](),_0x28a629=Date[_0x56bdb7(0x204)](),_0x28ae4d=_0x228a06[_0x56bdb7(0x232)]((_0x5a8aa6,_0x40d95d)=>{const _0x5694d3=_0x56bdb7;var _0x12d9c3,_0x171672,_0x29836b;return{..._0x5a8aa6['record'],'id':_0x5f0f93(0x6),'values':H(_0xc523a7,_0x5a8aa6[_0x5694d3(0x326)],_0x5a8aa6[_0x5694d3(0x2f5)]??'id'),'orderKey':((_0x12d9c3=_0x5a8aa6['record'])==null?void 0x0:_0x12d9c3[_0x5694d3(0x1e8)])||''+(_0x28a629+_0x40d95d),'createdAt':((_0x171672=_0x5a8aa6[_0x5694d3(0x2bc)])==null?void 0x0:_0x171672[_0x5694d3(0x206)])||_0x28a629,'updatedAt':((_0x29836b=_0x5a8aa6['record'])==null?void 0x0:_0x29836b[_0x5694d3(0x27a)])||_0x28a629};});if(!this[_0x56bdb7(0x2e9)]['syncExecuteCommand'](_0x280e1e['id'],{'unitId':this[_0x56bdb7(0x1dc)]['getId'](),'tableId':this[_0x56bdb7(0x248)],'records':_0x28ae4d,'source':_0x198fc0[_0x56bdb7(0x31b)]}))throw Error(_0x56bdb7(0x304));return _0x28ae4d[_0x56bdb7(0x232)](_0x46b067=>this['_injector'][_0x56bdb7(0x1f3)](J,this[_0x56bdb7(0x1dc)],this,_0x46b067['id'],this[_0x56bdb7(0x306)]));}['deleteRecords'](_0x37a3b2){const _0x587e7d=_0x46a1c2;return!_0x37a3b2['length']||this[_0x587e7d(0x2e9)][_0x587e7d(0x2f2)](_0xb3d33d['id'],{'unitId':this[_0x587e7d(0x1dc)]['getId'](),'tableId':this[_0x587e7d(0x248)],'recordIds':_0x37a3b2,'source':_0x198fc0['Facade']});}['getRange'](_0x34d2f5,_0x35af18,_0x648168=0x1,_0x51b7de=0x1){const _0x141fcd=_0x46a1c2;return this['_injector'][_0x141fcd(0x1f3)](K,this['_base'],this,{'startRow':_0x34d2f5,'endRow':_0x34d2f5+_0x648168-0x1,'startColumn':_0x35af18,'endColumn':_0x35af18+_0x51b7de-0x1},this[_0x141fcd(0x306)]);}[_0x46a1c2(0x210)](){const _0x2e2507=_0x46a1c2;var _0x55a9a0;let _0x5bd8e6=_0x580a6d(this[_0x2e2507(0x2bb)]()),_0xff4efa=((_0x55a9a0=_0x5bd8e6[_0x2e2507(0x213)])==null?void 0x0:_0x55a9a0[_0x2e2507(0x268)])??0x0,_0x584175=_0x5bd8e6['fieldOrder'][_0x2e2507(0x252)](_0x34d76b=>V(_0x5bd8e6[_0x2e2507(0x2b9)][_0x34d76b]))[_0x2e2507(0x268)];return this[_0x2e2507(0x220)](0x0,0x0,Math['max'](_0xff4efa,0x1),Math[_0x2e2507(0x31f)](_0x584175,0x1));}[_0x46a1c2(0x328)](){const _0xc22912=_0x46a1c2;let _0x1d40b8=this[_0xc22912(0x2bb)]();return _0x1d40b8['viewOrder'][_0xc22912(0x252)](_0x5a2ff6=>_0x1d40b8[_0xc22912(0x283)][_0x5a2ff6])[_0xc22912(0x232)](_0x2e7484=>this['_injector'][_0xc22912(0x1f3)](Y,this['_base'],this,_0x2e7484,this['_injector']));}['getViewById'](_0x876283){const _0x15e2f1=_0x46a1c2;return this[_0x15e2f1(0x2bb)]()[_0x15e2f1(0x283)][_0x876283]?this[_0x15e2f1(0x306)][_0x15e2f1(0x1f3)](Y,this['_base'],this,_0x876283,this['_injector']):null;}[_0x46a1c2(0x20d)](_0x382700){const _0x23964f=_0x46a1c2;let _0x44aa69=this[_0x23964f(0x2bb)](),_0x3cd79e=Object[_0x23964f(0x326)](_0x44aa69[_0x23964f(0x283)])[_0x23964f(0x1dd)](_0x22c79f=>_0x22c79f['name']===_0x382700);return _0x3cd79e?this[_0x23964f(0x306)][_0x23964f(0x1f3)](Y,this[_0x23964f(0x1dc)],this,_0x3cd79e['id'],this['_injector']):null;}[_0x46a1c2(0x234)](_0x371b66,_0x557f6a,_0x454eef){const _0x408023=_0x46a1c2;var _0x6dac4a,_0x1c0b03,_0xdfc3e6,_0x58c677;let _0x5ae3ff=this[_0x408023(0x2bb)](),_0x1b4745=[_0x56d8f8,...((_0x454eef==null||(_0x6dac4a=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0x6dac4a[_0x408023(0x249)])??_0x5ae3ff[_0x408023(0x249)])[_0x408023(0x252)](_0x530bde=>V(_0x5ae3ff['fields'][_0x530bde]))],_0x8b263={..._0x454eef==null?void 0x0:_0x454eef['view'],'id':_0x5f0f93(0x6),'name':_0x371b66,'type':_0x557f6a,'tableId':this[_0x408023(0x248)],'config':(_0x454eef==null||(_0x1c0b03=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0x1c0b03[_0x408023(0x296)])??{},'fieldOrder':_0x1b4745,'fieldSettings':{..._0x454eef==null||(_0xdfc3e6=_0x454eef[_0x408023(0x247)])==null?void 0x0:_0xdfc3e6[_0x408023(0x280)],[_0x56d8f8]:{..._0x454eef==null||(_0x58c677=_0x454eef[_0x408023(0x247)])==null||(_0x58c677=_0x58c677[_0x408023(0x280)])==null?void 0x0:_0x58c677[_0x56d8f8],'hidden':!0x0}}};if(!this['_commandService'][_0x408023(0x2f2)](_0x58c95d['id'],{'unitId':this['_base'][_0x408023(0x28e)](),'tableId':this[_0x408023(0x248)],'view':_0x8b263,'index':_0x454eef==null?void 0x0:_0x454eef[_0x408023(0x215)]}))throw Error(_0x408023(0x2ee)+_0x371b66+'\x22');return this[_0x408023(0x306)]['createInstance'](Y,this[_0x408023(0x1dc)],this,_0x8b263['id'],this[_0x408023(0x306)]);}[_0x46a1c2(0x1e2)](){const _0x347b6e=_0x46a1c2;let _0x154be9=this[_0x347b6e(0x2bb)](),_0x12dda1=_0x154be9[_0x347b6e(0x249)]['filter'](_0xe1d368=>V(_0x154be9[_0x347b6e(0x2b9)][_0xe1d368])),_0x336cdf=_0x154be9[_0x347b6e(0x26d)]['filter'](_0x327de8=>_0x154be9[_0x347b6e(0x283)][_0x327de8]);return{'id':_0x154be9['id'],'name':_0x154be9[_0x347b6e(0x2aa)],'formulaName':this[_0x347b6e(0x2ba)](),'primaryFieldId':_0x154be9[_0x347b6e(0x24b)],'fieldIds':_0x12dda1,'viewIds':_0x336cdf,'recordCount':this[_0x347b6e(0x29b)]()['length'],'fields':_0x12dda1['map'](_0x116250=>{const _0x153093=_0x347b6e;let _0x7dce87=_0x154be9[_0x153093(0x2b9)][_0x116250];return{'id':_0x7dce87['id'],'name':_0x7dce87['name'],'type':_0x7dce87[_0x153093(0x241)],'config':_0x7dce87[_0x153093(0x296)],'readonly':_0x7dce87['readonly'],'description':_0x7dce87['description']};}),'views':_0x336cdf['map'](_0x211b95=>{const _0x56196c=_0x347b6e;let _0x4d6977=_0x154be9[_0x56196c(0x283)][_0x211b95];return{'id':_0x4d6977['id'],'name':_0x4d6977['name'],'type':_0x4d6977[_0x56196c(0x241)]};})};}[_0x46a1c2(0x2bb)](){const _0x5bff85=_0x46a1c2;let _0xd8f664=this[_0x5bff85(0x1dc)][_0x5bff85(0x245)]()[_0x5bff85(0x2b7)]()['tables'][this['_tableId']];if(!_0xd8f664)throw Error(_0x5bff85(0x261)+this[_0x5bff85(0x248)]+'\x22\x20does\x20not\x20exist.');return _0xd8f664;}[_0x46a1c2(0x29b)](_0x550eb8={}){const _0x54a2e2=_0x46a1c2;let _0x46e1cf=this[_0x54a2e2(0x1dc)][_0x54a2e2(0x245)]()[_0x54a2e2(0x2b7)](),_0x4d1f1c=this[_0x54a2e2(0x2bb)]();if(_0x550eb8['viewId']){let _0x3b7bc3=this[_0x54a2e2(0x25e)][_0x54a2e2(0x2ac)](_0x46e1cf,this['_tableId'],_0x550eb8[_0x54a2e2(0x27e)]);if(_0x54a2e2(0x212)in _0x3b7bc3&&Array['isArray'](_0x3b7bc3['rows']))return _0x3b7bc3[_0x54a2e2(0x212)]['map'](_0x46a1e2=>_0x46a1e2[_0x54a2e2(0x275)]);}return(_0x4d1f1c[_0x54a2e2(0x213)]?_0x4d1f1c[_0x54a2e2(0x213)]['map'](_0x244c76=>_0x4d1f1c['records'][_0x244c76]):Object[_0x54a2e2(0x326)](_0x4d1f1c[_0x54a2e2(0x302)])[_0x54a2e2(0x23c)]((_0xa6cde1,_0xf4452d)=>_0xa6cde1['orderKey'][_0x54a2e2(0x254)](_0xf4452d['orderKey'])))[_0x54a2e2(0x252)](_0x1e8ff9=>_0x1e8ff9)[_0x54a2e2(0x232)](_0x48e756=>_0x48e756['id']);}};X=z([R(0x3,_0x3ac0f5),R(0x4,_0x5db0b9)],X);function $e(_0x2457fd,_0x523d4c){const _0x281d6c=_0x46a1c2;let _0xd7f391=Math[_0x281d6c(0x31f)](0x0,_0x523d4c[_0x281d6c(0x2d6)]??0x0);return _0x523d4c[_0x281d6c(0x2a3)]==null?_0x2457fd[_0x281d6c(0x2f8)](_0xd7f391):_0x2457fd[_0x281d6c(0x2f8)](_0xd7f391,_0xd7f391+Math['max'](0x0,_0x523d4c[_0x281d6c(0x2a3)]));}function et(_0x75d3a3,_0x203293,_0x5a5c2c=[]){const _0x31fe16=_0x46a1c2;return _0x5a5c2c[_0x31fe16(0x268)]?[..._0x75d3a3][_0x31fe16(0x23c)]((_0x882d87,_0x3f9b8b)=>{const _0x4efdca=_0x31fe16;for(let _0x3b8b96 of _0x5a5c2c){var _0x5f466e;let _0x5312bf=_0x3b8b96[_0x4efdca(0x26f)]===_0xd1049e[_0x4efdca(0x2e4)]?-0x1:0x1,_0x1b4b83=tt(_0x882d87[_0x4efdca(0x326)][_0x3b8b96[_0x4efdca(0x292)]],_0x3f9b8b[_0x4efdca(0x326)][_0x3b8b96[_0x4efdca(0x292)]],(_0x5f466e=_0x203293[_0x4efdca(0x2b9)][_0x3b8b96[_0x4efdca(0x292)]])==null?void 0x0:_0x5f466e[_0x4efdca(0x241)]);if(_0x1b4b83!==0x0)return _0x1b4b83*_0x5312bf;}return String(_0x882d87[_0x4efdca(0x1e8)]??_0x882d87['id'])[_0x4efdca(0x254)](String(_0x3f9b8b['orderKey']??_0x3f9b8b['id']));}):_0x75d3a3;}function tt(_0x1d2da1,_0x1776be,_0x522ffd){const _0x4f082f=_0x46a1c2;return _0x1d2da1==null&&_0x1776be==null?0x0:_0x1d2da1==null?-0x1:_0x1776be==null?0x1:typeof _0x1d2da1==_0x4f082f(0x287)&&typeof _0x1776be==_0x4f082f(0x287)?_0x1d2da1-_0x1776be:_0x522ffd===_0xafe9b1[_0x4f082f(0x31c)]?Number(_0x1d2da1)-Number(_0x1776be):String(_0x1d2da1)[_0x4f082f(0x254)](String(_0x1776be));}function nt(_0x483af5,_0x5b7b4e,_0x327920){const _0x4586a2=_0x46a1c2;var _0x185bd2;if(!_0x327920||!((_0x185bd2=_0x327920[_0x4586a2(0x2f0)])!=null&&_0x185bd2[_0x4586a2(0x268)]))return!0x0;let {conjunction:_0x176016=_0x1e5d95['OR'],conditions:_0x5240e4}=_0x327920;return _0x176016===_0x1e5d95[_0x4586a2(0x279)]&&_0x5240e4[_0x4586a2(0x268)]>0x1?_0x5240e4[_0x4586a2(0x1f7)](_0x1d3f9b=>rt(_0x483af5,_0x5b7b4e,_0x1d3f9b)):_0x5240e4['some'](_0x192487=>rt(_0x483af5,_0x5b7b4e,_0x192487));}function rt(_0x5588a7,_0x1ecfa2,_0x57a72b){const _0x1c91fc=_0x46a1c2;let _0x5c8645=_0x5588a7[_0x1c91fc(0x326)][_0x57a72b[_0x1c91fc(0x292)]],_0x42b290=_0x1ecfa2['fields'][_0x57a72b[_0x1c91fc(0x292)]];if(it(_0x57a72b)){let _0x328fa1=at(_0x57a72b)[_0x1c91fc(0x282)](String(_0x5c8645??''));return _0x57a72b[_0x1c91fc(0x26b)]===_0x1c91fc(0x312)?_0x328fa1:!_0x328fa1;}return!_0x42b290||_0xc3c013(_0x5c8645,_0x57a72b[_0x1c91fc(0x26b)],_0x57a72b[_0x1c91fc(0x24a)],_0x42b290);}function it(_0xb88ed6){const _0x207fa9=_0x46a1c2;return _0xb88ed6[_0x207fa9(0x26b)]==='matches'||_0xb88ed6['operator']===_0x207fa9(0x1eb);}function at(_0x2b812a){const _0x531e4c=_0x46a1c2;let _0x103eb5=String(_0x2b812a[_0x531e4c(0x24a)]??'');if(_0x103eb5[_0x531e4c(0x268)]>0x200)throw Error(_0x531e4c(0x23b));try{return new RegExp(_0x103eb5,_0x2b812a[_0x531e4c(0x1ea)]?void 0x0:'i');}catch(_0x494dff){throw Error(_0x531e4c(0x26e)+_0x103eb5+'.\x20'+(_0x494dff instanceof Error?_0x494dff['message']:String(_0x494dff)));}}function ot(_0x3a9f51,_0x1b827a,_0x1ec05b){const _0x1e22b7=_0x46a1c2;if(_0x1ec05b['type']!==_0x1e22b7(0x2a1)){var _0x3a2c12;if(_0x1ec05b[_0x1e22b7(0x241)]===_0x477789['Kanban']){var _0x3b4c26;let _0xc02192=[((_0x3b4c26=_0x1ec05b['fields'])==null||(_0x3b4c26=_0x3b4c26[0x0])==null?void 0x0:_0x3b4c26['id'])??_0x3a9f51[_0x1e22b7(0x24b)],..._0x1ec05b[_0x1e22b7(0x2cf)]??[]];return Array[_0x1e22b7(0x29e)](new Set(_0xc02192['filter'](_0x3666ed=>!!_0x3a9f51[_0x1e22b7(0x2b9)][_0x3666ed])));}if((_0x3a2c12=_0x1ec05b['fields'])!=null&&_0x3a2c12[_0x1e22b7(0x268)])return _0x1ec05b[_0x1e22b7(0x2b9)][_0x1e22b7(0x232)](_0x16e372=>_0x16e372['id'])['filter'](_0x58bfce=>{const _0x27ca63=_0x1e22b7;var _0xd55819;return!!(_0x3a9f51['fields'][_0x58bfce]&&!(_0x1b827a!=null&&(_0xd55819=_0x1b827a[_0x27ca63(0x280)])!=null&&(_0xd55819=_0xd55819[_0x58bfce])!=null&&_0xd55819[_0x27ca63(0x321)]));});}return _0x3a9f51[_0x1e22b7(0x249)]['filter'](_0x47108e=>{const _0x5d1674=_0x1e22b7;var _0x592368;return!!(_0x3a9f51['fields'][_0x47108e]&&!(_0x1b827a!=null&&(_0x592368=_0x1b827a[_0x5d1674(0x280)])!=null&&(_0x592368=_0x592368[_0x47108e])!=null&&_0x592368['hidden']));});}function _0x5746(_0x4a3995,_0x390d2b){_0x4a3995=_0x4a3995-0x1d7;const _0x88d198=_0x88d1();let _0x574644=_0x88d198[_0x4a3995];return _0x574644;}let Z=class{constructor(_0x18392d,_0x314bcd,_0x23fb9b,_0x19cd70){const _0x8b0159=_0x46a1c2;this[_0x8b0159(0x1dc)]=_0x18392d,this[_0x8b0159(0x306)]=_0x314bcd,this['_resourceLoaderService']=_0x23fb9b,this[_0x8b0159(0x2e9)]=_0x19cd70;}[_0x46a1c2(0x245)](){const _0x266229=_0x46a1c2;return this[_0x266229(0x1dc)];}['getId'](){const _0x3dfe17=_0x46a1c2;return this[_0x3dfe17(0x1dc)]['getUnitId']();}['save'](){const _0x1d3440=_0x46a1c2;return this[_0x1d3440(0x1ec)][_0x1d3440(0x262)](this[_0x1d3440(0x28e)]())??_0x125277['deepClone'](this[_0x1d3440(0x1dc)]['getSnapshot']());}['getName'](){const _0x377fd2=_0x46a1c2;return this['_base'][_0x377fd2(0x2b7)]()[_0x377fd2(0x2aa)];}['setName'](_0x155bce){const _0x39d2df=_0x46a1c2;this[_0x39d2df(0x2e9)][_0x39d2df(0x2f2)](_0x1535e7['id'],{'unitId':this['getId'](),'name':_0x155bce});}[_0x46a1c2(0x25b)](){const _0x510ccd=_0x46a1c2;let _0x333c1a=this['_base'][_0x510ccd(0x2b7)]();return _0x333c1a[_0x510ccd(0x29f)][_0x510ccd(0x232)](_0x51b247=>_0x333c1a['tables'][_0x51b247])[_0x510ccd(0x252)](_0x428813=>_0x428813)[_0x510ccd(0x232)](_0x4e3c54=>this[_0x510ccd(0x306)]['createInstance'](X,this,_0x4e3c54['id'],this[_0x510ccd(0x306)]));}[_0x46a1c2(0x30b)](_0x5cc6a9){const _0x181ea9=_0x46a1c2;let _0x6f476b=this[_0x181ea9(0x1dc)][_0x181ea9(0x2b7)]()[_0x181ea9(0x28c)][_0x5cc6a9];return _0x6f476b?this[_0x181ea9(0x306)]['createInstance'](X,this,_0x6f476b['id'],this[_0x181ea9(0x306)]):null;}[_0x46a1c2(0x313)](_0x485618){const _0x23d9aa=_0x46a1c2;let _0x2fca00=this['_base']['getSnapshot'](),_0x268893=Object[_0x23d9aa(0x326)](_0x2fca00[_0x23d9aa(0x28c)])['find'](_0x1c5bfb=>_0x1c5bfb['name']===_0x485618);return _0x268893?this[_0x23d9aa(0x306)][_0x23d9aa(0x1f3)](X,this,_0x268893['id'],this[_0x23d9aa(0x306)]):null;}[_0x46a1c2(0x219)](_0x3073eb,_0x132c7f){const _0x590c27=_0x46a1c2;let _0x4c2790=_0x3e2cae({'id':_0x5f0f93(),'name':_0x3073eb,..._0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x216)],'primaryFieldName':_0x132c7f==null?void 0x0:_0x132c7f['primaryFieldName']}),_0x3f4be8=_0x125277['commonExtend'](_0x4c2790,(_0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x216)])??{}),_0x5d3644=_0x545bdb(this['_base']['getSnapshot'](),_0x3f4be8['name']);if(!_0x5d3644[_0x590c27(0x2dc)])throw Error(_0x590c27(0x2a5)+_0x3f4be8[_0x590c27(0x2aa)]+_0x590c27(0x317)+_0x30ff66+'\x20'+_0x5d3644[_0x590c27(0x273)]);if(!this[_0x590c27(0x2e9)][_0x590c27(0x2f2)](_0x132b85['id'],{'unitId':this[_0x590c27(0x1dc)]['getUnitId'](),'table':_0x3f4be8,'index':_0x132c7f==null?void 0x0:_0x132c7f[_0x590c27(0x215)]}))throw Error(_0x590c27(0x1f1)+_0x3073eb+'\x22.');return this[_0x590c27(0x306)][_0x590c27(0x1f3)](X,this,_0x3f4be8['id'],this[_0x590c27(0x306)]);}['deleteTable'](_0x1fe28c){const _0xe9ab9d=_0x46a1c2;let _0x199993=typeof _0x1fe28c==_0xe9ab9d(0x2f3)?_0x1fe28c:_0x1fe28c[_0xe9ab9d(0x28e)]();if(!this[_0xe9ab9d(0x2e9)][_0xe9ab9d(0x2f2)](_0x488c1f['id'],{'unitId':this['_base'][_0xe9ab9d(0x2c0)](),'tableId':_0x199993}))throw Error(_0xe9ab9d(0x294)+_0x199993+'\x22.');return!0x0;}['duplicateTable'](_0x597d4d,_0x1e13a7){const _0x12d6d5=_0x46a1c2;let _0x17fa8a=this[_0x12d6d5(0x1dc)][_0x12d6d5(0x2b7)](),_0x580514=typeof _0x597d4d=='string'?_0x597d4d:_0x597d4d[_0x12d6d5(0x28e)](),_0x27452c=_0x17fa8a[_0x12d6d5(0x28c)][_0x580514];if(!_0x27452c)throw Error(_0x12d6d5(0x24e)+_0x580514+_0x12d6d5(0x2c3));let _0x55e885=_0x17fa8a[_0x12d6d5(0x29f)][_0x12d6d5(0x1f0)](_0x580514)+0x1,_0x9a0f=_0xf70964(_0x27452c,{'id':_0x5f0f93(),'name':_0x286207(_0x17fa8a,_0x27452c[_0x12d6d5(0x2aa)]+_0x12d6d5(0x233)),'includeRecords':(_0x1e13a7==null?void 0x0:_0x1e13a7['includeRecords'])??!0x1,'regenerateViewIds':(_0x1e13a7==null?void 0x0:_0x1e13a7[_0x12d6d5(0x208)])??!0x1});if(!this[_0x12d6d5(0x2e9)][_0x12d6d5(0x2f2)](_0x132b85['id'],{'unitId':this[_0x12d6d5(0x1dc)]['getUnitId'](),'table':_0x9a0f,'index':_0x55e885}))throw Error(_0x12d6d5(0x214)+_0x580514+'\x22.');return this[_0x12d6d5(0x306)][_0x12d6d5(0x1f3)](X,this,_0x9a0f['id'],this[_0x12d6d5(0x306)]);}[_0x46a1c2(0x1e2)](){const _0xe5d96d=_0x46a1c2;let _0x5469c3=this[_0xe5d96d(0x1dc)][_0xe5d96d(0x2b7)]();return{'id':_0x5469c3['id'],'name':_0x5469c3[_0xe5d96d(0x2aa)],'tables':this[_0xe5d96d(0x25b)]()[_0xe5d96d(0x232)](_0x33b90c=>_0x33b90c[_0xe5d96d(0x1e2)]())};}};Z=z([R(0x1,_0xfc1d0a(_0x38a295)),R(0x2,_0x4f5173),R(0x3,_0x3ac0f5)],Z);var st=class extends _0x17aaa4{['_initialize'](){const _0x513e93=_0x46a1c2;this['_initBaseBeforeEvents'](),this[_0x513e93(0x21e)]();}[_0x46a1c2(0x297)](_0x220d52={},_0x48f60a){const _0x4703be=_0x46a1c2;let _0x3d738a=this[_0x4703be(0x29c)][_0x4703be(0x2f4)](_0x3e59a1[_0x4703be(0x235)],_0x220d52,_0x48f60a);return this[_0x4703be(0x306)][_0x4703be(0x1f3)](Z,_0x3d738a);}['getActiveBase'](){const _0xc1be21=_0x46a1c2;let _0x370d10=this[_0xc1be21(0x29c)][_0xc1be21(0x209)](_0x3e59a1[_0xc1be21(0x235)]);return _0x370d10?this[_0xc1be21(0x306)][_0xc1be21(0x1f3)](Z,_0x370d10):null;}[_0x46a1c2(0x245)](_0x536c95){const _0x39f780=_0x46a1c2;let _0x9b1cf0=this[_0x39f780(0x29c)][_0x39f780(0x23f)](_0x536c95,_0x3e59a1[_0x39f780(0x235)]);return _0x9b1cf0?this[_0x39f780(0x306)][_0x39f780(0x1f3)](Z,_0x9b1cf0):null;}[_0x46a1c2(0x1e1)](){const _0x2c85bf=_0x46a1c2;return this[_0x2c85bf(0x29c)][_0x2c85bf(0x2b2)](_0x3e59a1[_0x2c85bf(0x235)])[_0x2c85bf(0x232)](_0x4034cb=>this['_injector'][_0x2c85bf(0x1f3)](Z,_0x4034cb));}[_0x46a1c2(0x21e)](){const _0x116bc4=_0x46a1c2;this[_0x116bc4(0x270)](this['registerEventHandler'](this['Event'][_0x116bc4(0x2bf)],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)]((_0x2427e8,_0xc2c1c6)=>{const _0xc87334=_0x116bc4;var _0x51deda;if(!Q(_0x2427e8,_0x4dadde))return;let _0x16b98b=_0x2427e8['params'];if(!((_0x51deda=_0x16b98b['hierarchyChanges'])!=null&&_0x51deda[_0xc87334(0x268)]))return;let _0x9c2a50=this[_0xc87334(0x245)](_0x16b98b['unitId']),_0x3d7a6c=_0x9c2a50==null?void 0x0:_0x9c2a50['getTableById'](_0x16b98b[_0xc87334(0x319)][0x0][_0xc87334(0x290)]);if(!_0x9c2a50||!_0x3d7a6c)return;let _0x71b12f={'base':_0x9c2a50,'table':_0x3d7a6c,'changes':_0x16b98b[_0xc87334(0x319)],'source':_0xc2c1c6!=null&&_0xc2c1c6['fromCollab']?_0x198fc0[_0xc87334(0x314)]:_0x16b98b['source']??_0x198fc0['UI']};this['fireEvent'](this[_0xc87334(0x278)][_0xc87334(0x2bf)],_0x71b12f);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)][_0x116bc4(0x2f9)],()=>this['_commandService']['onCommandExecuted'](_0x2508fd=>{const _0x2574df=_0x116bc4;if(_0x2508fd['id']!==_0x132b85['id'])return;let {unitId:_0x5ea436,table:_0x55640c,index:_0x4d75ac}=_0x2508fd['params'],_0x55f530=this[_0x2574df(0x245)](_0x5ea436);if(!_0x55f530)return;let _0x4c1791={'base':_0x55f530,'table':_0x55640c,'index':_0x4d75ac};this['fireEvent'](this['Event'][_0x2574df(0x2f9)],_0x4c1791);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event']['BaseTableFieldCreated'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x2dcb89=>{const _0x4d063c=_0x116bc4;if(_0x2dcb89['id']!==_0x15e597['id'])return;let {unitId:_0x35f74e,tableId:_0x168394,field:_0x226fe5,index:_0x47cf79,viewIndexes:_0x36f789}=_0x2dcb89[_0x4d063c(0x1ff)],_0x42b44d=this[_0x4d063c(0x245)](_0x35f74e);if(!_0x42b44d)return;let _0x123d78=_0x42b44d[_0x4d063c(0x30b)](_0x168394);if(!_0x123d78)return;let _0x46499f={'base':_0x42b44d,'table':_0x123d78,'field':_0x226fe5,'index':_0x47cf79,'viewIndexes':_0x36f789};this[_0x4d063c(0x1da)](this[_0x4d063c(0x278)][_0x4d063c(0x22c)],_0x46499f);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)]['BaseTableRecordCreated'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x1702ea=>{const _0x39ed04=_0x116bc4;if(_0x1702ea['id']!==_0x44b407['id']&&_0x1702ea['id']!==_0x280e1e['id'])return;let _0x5d1ea4=_0x1702ea[_0x39ed04(0x1ff)],{unitId:_0x20a7e9,tableId:_0x23207c}=_0x5d1ea4,_0x49a954=_0x5d1ea4[_0x39ed04(0x302)]??[_0x5d1ea4[_0x39ed04(0x2bc)]],_0x2239cf=this['getBase'](_0x20a7e9);if(!_0x2239cf)return;let _0x354bbb=_0x2239cf[_0x39ed04(0x30b)](_0x23207c);if(!_0x354bbb)return;let _0x352c48={'base':_0x2239cf,'table':_0x354bbb,'records':_0x49a954};this[_0x39ed04(0x1da)](this[_0x39ed04(0x278)]['BaseTableRecordCreated'],_0x352c48);}))),this['disposeWithMe'](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)][_0x116bc4(0x2d2)],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x427913=>{const _0x15d92f=_0x116bc4;if(_0x427913['id']!==_0x58c95d['id'])return;let {unitId:_0x4e9a3e,tableId:_0x376aea,view:_0xb0ba8b,index:_0x366f35}=_0x427913[_0x15d92f(0x1ff)],_0x38ae90=this[_0x15d92f(0x245)](_0x4e9a3e);if(!_0x38ae90)return;let _0x677b69=_0x38ae90[_0x15d92f(0x30b)](_0x376aea);if(!_0x677b69)return;let _0x22f923={'base':_0x38ae90,'table':_0x677b69,'view':_0xb0ba8b,'index':_0x366f35};this[_0x15d92f(0x1da)](this[_0x15d92f(0x278)][_0x15d92f(0x2d2)],_0x22f923);}))),this[_0x116bc4(0x270)](this[_0x116bc4(0x2eb)](this[_0x116bc4(0x278)]['BaseTableCellValueChanged'],()=>this[_0x116bc4(0x2e9)][_0x116bc4(0x2a6)](_0x169454=>{const _0x4d3e3b=_0x116bc4;if(_0x169454['id']!==_0x13c61e['id'])return;let {unitId:_0x48c4d8,tableId:_0x1f56bb,recordId:_0x514cad,fieldId:_0x307ea8,value:_0xf72ee9}=_0x169454['params'],_0x579f91=this[_0x4d3e3b(0x245)](_0x48c4d8);if(!_0x579f91)return;let _0x437dc9=_0x579f91['getTableById'](_0x1f56bb);if(!_0x437dc9)return;let _0x2c01f7=_0x437dc9[_0x4d3e3b(0x29d)](_0x307ea8);if(!_0x2c01f7)return;let _0x178e82=_0x437dc9['getRecordById'](_0x514cad);if(!_0x178e82)return;let _0x148311={'base':_0x579f91,'table':_0x437dc9,'field':_0x2c01f7,'record':_0x178e82,'value':_0xf72ee9};this['fireEvent'](this[_0x4d3e3b(0x278)][_0x4d3e3b(0x295)],_0x148311);})));}[_0x46a1c2(0x2b5)](){const _0x3313cc=_0x46a1c2;this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x231)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0xb91fc1=>{const _0x39cc5d=_0x3313cc;if(Q(_0xb91fc1,_0x294f1c)){let {unitId:_0x4c2eb9,tableId:_0x1067aa,patches:_0x327359,source:_0x1b7ca9=_0x198fc0['UI']}=_0xb91fc1[_0x39cc5d(0x1ff)],_0x442072=this[_0x39cc5d(0x22a)](_0x4c2eb9,_0x1067aa);if(!_0x442072)return;this[_0x39cc5d(0x246)](_0x442072[_0x39cc5d(0x203)],_0x442072['table'],_0x1d70cc(_0x442072[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0x327359),_0x1b7ca9);return;}if(Q(_0xb91fc1,_0x473f48)){let {unitId:_0x3aee85,tableId:_0x5151e7,patches:_0x3cab04,source:_0x17fbec=_0x198fc0['UI']}=_0xb91fc1[_0x39cc5d(0x1ff)],_0x2ed8b0=this[_0x39cc5d(0x22a)](_0x3aee85,_0x5151e7);if(!_0x2ed8b0)return;let _0x52ed79=_0x2ed8b0[_0x39cc5d(0x216)][_0x39cc5d(0x310)]();this[_0x39cc5d(0x246)](_0x2ed8b0[_0x39cc5d(0x203)],_0x2ed8b0[_0x39cc5d(0x216)],_0x1d70cc(_0x52ed79,_0x3642d1(_0x52ed79,_0x3cab04)),_0x17fbec);return;}if(Q(_0xb91fc1,_0x44b407)){let _0x1d3827=_0xb91fc1[_0x39cc5d(0x1ff)],_0x5e418a=this[_0x39cc5d(0x22a)](_0x1d3827['unitId'],_0x1d3827[_0x39cc5d(0x290)]);if(!_0x5e418a)return;this[_0x39cc5d(0x246)](_0x5e418a[_0x39cc5d(0x203)],_0x5e418a[_0x39cc5d(0x216)],_0x346f38(_0x5e418a['table'][_0x39cc5d(0x310)](),[_0x1d3827['record']]),_0x1d3827[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x280e1e)){let _0x28bd30=_0xb91fc1[_0x39cc5d(0x1ff)],_0x3055e1=this[_0x39cc5d(0x22a)](_0x28bd30[_0x39cc5d(0x24d)],_0x28bd30[_0x39cc5d(0x290)]);if(!_0x3055e1)return;this['_fireBeforeHierarchyChange'](_0x3055e1[_0x39cc5d(0x203)],_0x3055e1[_0x39cc5d(0x216)],_0x346f38(_0x3055e1[_0x39cc5d(0x216)]['getTable'](),_0x28bd30['records']),_0x28bd30[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x209820)){let _0x5bab78=_0xb91fc1[_0x39cc5d(0x1ff)],_0x41b962=this[_0x39cc5d(0x22a)](_0x5bab78[_0x39cc5d(0x24d)],_0x5bab78[_0x39cc5d(0x290)]);if(!_0x41b962)return;this['_fireBeforeHierarchyChange'](_0x41b962[_0x39cc5d(0x203)],_0x41b962[_0x39cc5d(0x216)],_0x346f38(_0x41b962['table'][_0x39cc5d(0x310)](),[_0x5bab78[_0x39cc5d(0x2bc)]]),_0x5bab78[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x345dff)){let _0x34efc7=_0xb91fc1[_0x39cc5d(0x1ff)],_0x1333f8=this['_getHierarchyEventContext'](_0x34efc7['unitId'],_0x34efc7['tableId']);if(!_0x1333f8)return;let _0x27942b=_0x1333f8[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0xa04c41=_0x34efc7[_0x39cc5d(0x292)]??_0x312492(_0x27942b),_0x50d9e9=_0x345aca(_0x27942b,_0xa04c41)[_0x39cc5d(0x201)]['get'](_0x34efc7['recordId'])??null;this[_0x39cc5d(0x246)](_0x1333f8['base'],_0x1333f8['table'],[{'tableId':_0x34efc7['tableId'],'fieldId':_0xa04c41,'recordId':_0x34efc7[_0x39cc5d(0x275)],'oldParentRecordId':_0x50d9e9,'parentRecordId':_0x34efc7[_0x39cc5d(0x20c)]}],_0x34efc7[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x168ce8)){let _0x4e9807=_0xb91fc1[_0x39cc5d(0x1ff)],_0x19ee15=this['_getHierarchyEventContext'](_0x4e9807[_0x39cc5d(0x24d)],_0x4e9807['tableId']);if(!_0x19ee15)return;let _0x229cbe=_0x4e9807[_0x39cc5d(0x292)]??_0x312492(_0x19ee15[_0x39cc5d(0x216)]['getTable']());this[_0x39cc5d(0x246)](_0x19ee15['base'],_0x19ee15['table'],[{'tableId':_0x4e9807['tableId'],'fieldId':_0x229cbe,'recordId':_0x4e9807[_0x39cc5d(0x2bc)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4e9807[_0x39cc5d(0x20c)]}],_0x4e9807[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0x44f0bf)){let _0x5f2e6a=_0xb91fc1[_0x39cc5d(0x1ff)],_0x46c268=this[_0x39cc5d(0x22a)](_0x5f2e6a[_0x39cc5d(0x24d)],_0x5f2e6a['tableId']);if(!_0x46c268)return;this[_0x39cc5d(0x246)](_0x46c268[_0x39cc5d(0x203)],_0x46c268[_0x39cc5d(0x216)],_0x7c08d9(_0x46c268['table'][_0x39cc5d(0x310)](),[_0x5f2e6a[_0x39cc5d(0x275)]]),_0x5f2e6a[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(Q(_0xb91fc1,_0xb3d33d)){let _0x475a2a=_0xb91fc1[_0x39cc5d(0x1ff)],_0x1f349a=this[_0x39cc5d(0x22a)](_0x475a2a[_0x39cc5d(0x24d)],_0x475a2a[_0x39cc5d(0x290)]);if(!_0x1f349a)return;this[_0x39cc5d(0x246)](_0x1f349a[_0x39cc5d(0x203)],_0x1f349a[_0x39cc5d(0x216)],_0x7c08d9(_0x1f349a[_0x39cc5d(0x216)][_0x39cc5d(0x310)](),_0x475a2a[_0x39cc5d(0x2d9)]),_0x475a2a[_0x39cc5d(0x277)]??_0x198fc0['UI']);return;}if(!Q(_0xb91fc1,_0x13c61e))return;let _0x4be547=_0xb91fc1[_0x39cc5d(0x1ff)],_0x793a19=this[_0x39cc5d(0x22a)](_0x4be547[_0x39cc5d(0x24d)],_0x4be547[_0x39cc5d(0x290)]);if(!_0x793a19)return;let _0x12a07f=_0x793a19['table'][_0x39cc5d(0x310)]();if(!_0x303b25(_0x12a07f)[_0x39cc5d(0x25a)](_0x4be547[_0x39cc5d(0x292)]))return;let _0x53fdbd=_0x345aca(_0x12a07f,_0x4be547[_0x39cc5d(0x292)])[_0x39cc5d(0x201)][_0x39cc5d(0x307)](_0x4be547[_0x39cc5d(0x275)])??null,_0x37b85e=_0x855fa7(_0x4be547['value'])[0x0]??null;_0x53fdbd!==_0x37b85e&&this['_fireBeforeHierarchyChange'](_0x793a19[_0x39cc5d(0x203)],_0x793a19[_0x39cc5d(0x216)],[{'tableId':_0x4be547['tableId'],'fieldId':_0x4be547[_0x39cc5d(0x292)],'recordId':_0x4be547[_0x39cc5d(0x275)],'oldParentRecordId':_0x53fdbd,'parentRecordId':_0x37b85e}],_0x4be547['source']??_0x198fc0['UI']);}))),this['disposeWithMe'](this[_0x3313cc(0x2eb)](this['Event'][_0x3313cc(0x2d0)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x3f0770=>{const _0x3c12f6=_0x3313cc;if(_0x3f0770['id']!==_0x132b85['id'])return;let {unitId:_0x3b81e0,table:_0x3994fb,index:_0xed464f}=_0x3f0770[_0x3c12f6(0x1ff)],_0x4e7f50=this[_0x3c12f6(0x245)](_0x3b81e0);if(!_0x4e7f50)return;let _0x28a21f={'base':_0x4e7f50,'table':_0x3994fb,'index':_0xed464f};if(this['fireEvent'](this[_0x3c12f6(0x278)]['BeforeBaseTableCreate'],_0x28a21f),_0x28a21f['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x223)],()=>this['_commandService'][_0x3313cc(0x1e5)](_0x178c76=>{const _0x381fe8=_0x3313cc;if(_0x178c76['id']!==_0x15e597['id'])return;let {unitId:_0x1b76d9,tableId:_0x460c35,field:_0x54b973,index:_0x48f0bb,viewIndexes:_0x42948c}=_0x178c76[_0x381fe8(0x1ff)],_0x821efa=this[_0x381fe8(0x245)](_0x1b76d9);if(!_0x821efa)return;let _0x3a6ca1=_0x821efa[_0x381fe8(0x30b)](_0x460c35);if(!_0x3a6ca1)return;let _0x1c8f8a={'base':_0x821efa,'table':_0x3a6ca1,'field':_0x54b973,'index':_0x48f0bb,'viewIndexes':_0x42948c};if(this[_0x381fe8(0x1da)](this[_0x381fe8(0x278)][_0x381fe8(0x223)],_0x1c8f8a),_0x1c8f8a['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this['registerEventHandler'](this['Event'][_0x3313cc(0x2d8)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x4f1e75=>{const _0x3b6aec=_0x3313cc;if(_0x4f1e75['id']!==_0x44b407['id']&&_0x4f1e75['id']!==_0x280e1e['id'])return;let _0x2030b6=_0x4f1e75[_0x3b6aec(0x1ff)],{unitId:_0x42103e,tableId:_0x52e499}=_0x2030b6,_0x2d65b4=_0x2030b6['records']??[_0x2030b6[_0x3b6aec(0x2bc)]],_0x37dc35=this['getBase'](_0x42103e);if(!_0x37dc35)return;let _0x52f1df=_0x37dc35['getTableById'](_0x52e499);if(!_0x52f1df)return;let _0x418807={'base':_0x37dc35,'table':_0x52f1df,'records':_0x2d65b4};if(this['fireEvent'](this[_0x3b6aec(0x278)][_0x3b6aec(0x2d8)],_0x418807),_0x418807[_0x3b6aec(0x2b8)])throw new _0x23915c();}))),this['disposeWithMe'](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x230)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x51ca35=>{const _0x471322=_0x3313cc;if(_0x51ca35['id']!==_0x58c95d['id'])return;let {unitId:_0x3d6ca3,tableId:_0x5bed9c,view:_0x3c93b7,index:_0x2692dd}=_0x51ca35[_0x471322(0x1ff)],_0x2d5e6a=this[_0x471322(0x245)](_0x3d6ca3);if(!_0x2d5e6a)return;let _0x6d2bf2=_0x2d5e6a[_0x471322(0x30b)](_0x5bed9c);if(!_0x6d2bf2)return;let _0x57ae15={'base':_0x2d5e6a,'table':_0x6d2bf2,'view':_0x3c93b7,'index':_0x2692dd};if(this[_0x471322(0x1da)](this[_0x471322(0x278)][_0x471322(0x230)],_0x57ae15),_0x57ae15['cancel'])throw new _0x23915c();}))),this[_0x3313cc(0x270)](this[_0x3313cc(0x2eb)](this[_0x3313cc(0x278)][_0x3313cc(0x2bd)],()=>this[_0x3313cc(0x2e9)][_0x3313cc(0x1e5)](_0x469d03=>{const _0x2e1d00=_0x3313cc;if(_0x469d03['id']!==_0x13c61e['id'])return;let {unitId:_0x88634b,tableId:_0xf3090,recordId:_0x1928c4,fieldId:_0x589abd,value:_0x2e18b1}=_0x469d03[_0x2e1d00(0x1ff)],_0x185966=this[_0x2e1d00(0x245)](_0x88634b);if(!_0x185966)return;let _0x1d5195=_0x185966['getTableById'](_0xf3090);if(!_0x1d5195)return;let _0x52a086=_0x1d5195[_0x2e1d00(0x29d)](_0x589abd);if(!_0x52a086)return;let _0xd23963=_0x1d5195[_0x2e1d00(0x320)](_0x1928c4);if(!_0xd23963)return;let _0x366baf={'base':_0x185966,'table':_0x1d5195,'field':_0x52a086,'record':_0xd23963,'value':_0x2e18b1};if(this['fireEvent'](this['Event'][_0x2e1d00(0x2bd)],_0x366baf),_0x366baf[_0x2e1d00(0x2b8)])throw new _0x23915c();})));}[_0x46a1c2(0x22a)](_0x5e4eea,_0x277aa4){const _0x5ce846=_0x46a1c2;let _0xb68665=this[_0x5ce846(0x245)](_0x5e4eea),_0x7fbbdc=_0xb68665==null?void 0x0:_0xb68665[_0x5ce846(0x30b)](_0x277aa4);return _0xb68665&&_0x7fbbdc?{'base':_0xb68665,'table':_0x7fbbdc}:null;}[_0x46a1c2(0x246)](_0x511ff1,_0x3af0da,_0x465be1,_0x34993b){const _0x315a9e=_0x46a1c2;if(!_0x465be1[_0x315a9e(0x268)])return;let _0x35fc8b={'base':_0x511ff1,'table':_0x3af0da,'changes':_0x465be1,'source':_0x34993b};if(this[_0x315a9e(0x1da)](this[_0x315a9e(0x278)][_0x315a9e(0x231)],_0x35fc8b),_0x35fc8b[_0x315a9e(0x2b8)])throw new _0x23915c();}};function Q(_0x1cf48c,_0x299065){const _0x543cbb=_0x46a1c2;return _0x1cf48c['id']===_0x299065['id']&&_0x1cf48c[_0x543cbb(0x1ff)]!==void 0x0;}_0x17aaa4[_0x46a1c2(0x311)](st);var ct=class extends _0x2f3189{get[_0x46a1c2(0x2f1)](){return _0xafe9b1;}get[_0x46a1c2(0x2e3)](){return _0x1e5d95;}get[_0x46a1c2(0x318)](){return _0xe85ca7;}get[_0x46a1c2(0x20e)](){return Ke;}get[_0x46a1c2(0x2e2)](){return _0x477789;}get[_0x46a1c2(0x2e7)](){return _0x5702ac;}get[_0x46a1c2(0x28b)](){return _0x1c1f9f;}get[_0x46a1c2(0x322)](){return _0x82456a;}get['BaseSortDirection'](){return _0xd1049e;}get[_0x46a1c2(0x2da)](){return _0x198fc0;}get[_0x46a1c2(0x309)](){return _0x1a3340;}get[_0x46a1c2(0x211)](){return _0x2df78f;}get[_0x46a1c2(0x22d)](){return _0x33c6e3;}};_0x2f3189[_0x46a1c2(0x311)](ct);var $=class extends _0x47ca81{get[_0x46a1c2(0x2f9)](){const _0x5a9f8b=_0x46a1c2;return _0x5a9f8b(0x2f9);}get[_0x46a1c2(0x2d0)](){const _0x5751dd=_0x46a1c2;return _0x5751dd(0x2d0);}get[_0x46a1c2(0x22c)](){const _0x2a4fa4=_0x46a1c2;return _0x2a4fa4(0x22c);}get[_0x46a1c2(0x223)](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x778adc=_0x46a1c2;return _0x778adc(0x1f9);}get['BeforeBaseTableRecordCreate'](){const _0x490116=_0x46a1c2;return _0x490116(0x2d8);}get[_0x46a1c2(0x2d2)](){const _0x24e092=_0x46a1c2;return _0x24e092(0x2d2);}get[_0x46a1c2(0x230)](){const _0x4f8019=_0x46a1c2;return _0x4f8019(0x230);}get[_0x46a1c2(0x295)](){const _0x85d5cb=_0x46a1c2;return _0x85d5cb(0x295);}get['BeforeBaseTableCellValueChange'](){const _0x1cb770=_0x46a1c2;return _0x1cb770(0x2bd);}get[_0x46a1c2(0x2bf)](){const _0xdcc20b=_0x46a1c2;return _0xdcc20b(0x2bf);}get[_0x46a1c2(0x231)](){return'BeforeBaseHierarchyChange';}};function _0x88d1(){const _0x2a8a98=['update','indexOf','Failed\x20to\x20create\x20table\x20\x22','changeType','createInstance','setValues','setConditionalColorRules','group','every','call','BaseTableRecordCreated','getType','getRecords','20fWcFRw','Grid','height','params','setValue','parentByRecordId','getRecord','base','now','getBaseId','createdAt','1092402oxkHJQ','regenerateViewIds','getCurrentUnitOfType','sourceType','deleteProperty','parentRecordId','getViewByName','BaseFieldKeyEnum','getDefaultValue','getDataRange','BaseHierarchyInvalidReason','rows','recordOrder','Failed\x20to\x20duplicate\x20table\x20\x22','index','table','11Dnjmml','addLinkedRecord','insertTable','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','rowId','boolean',':\x20\x22','_initBaseAfterEvents','setName','getRange','thumbnail',',\x20max\x20columns:\x20','BeforeBaseTableFieldCreate','_collectDescendantIds','_getRecord','addRecord','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','mimeType','delete','_getHierarchyEventContext','endColumn','BaseTableFieldCreated','BaseRecordLinkRole','multiple','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','BeforeBaseTableViewCreate','BeforeBaseHierarchyChange','map','\x20Copy','createView','UNIVER_BASE','setOrderKey','4061040MQhSaf','prototype','Duplicate\x20Base\x20field\x20name:\x20','getNumRows','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','sort','warn','flatMap','getUnit','1044118xZgxba','type','[FBaseRange]:\x20table\x20does\x20not\x20exist.','900042HKoEkS','Add','getBase','_fireBeforeHierarchyChange','view','_tableId','fieldOrder','value','primaryFieldId','_getHierarchyIndex','unitId','[FBase]:\x20table\x20\x22','getAncestors','getFilter','description','filter','URL','localeCompare','Name','1HdCeoS','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','Invalid\x20Base\x20formula.','some','includes','getTables','getColumn','duplicate','_projectionService','Calendar','Set','[FTable]:\x20table\x20\x22','saveUnit','getTableId','getValues','moveField','setAttachments','_viewId','length','[FRecord]:\x20record\x20\x22','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','operator','Failed\x20to\x20add\x20field\x20\x22','viewOrder','Invalid\x20Base\x20regex\x20filter:\x20','direction','disposeWithMe','getPrimaryFieldId','getParent','reason','[FRecord]:\x20RecordLink\x20field\x20\x22','recordId','data:','source','Event','AND','updatedAt','clear','getVisibleFields','getValue','viewId','rules','fieldSettings','27552HPBuyZ','test','views','isReadonly','targetTableId','Unsupported\x20Base\x20field\x20type\x20\x22','number','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','endRow','getField','BaseConditionalColorOperator','tables','formula','getId',',\x20range:\x20','tableId','childrenByParentId','fieldId','_prepareFormulaFieldReferences','Failed\x20to\x20delete\x20table\x20\x22','BaseTableCellValueChanged','config','createBase','Attachment','defaultValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','_resolveRecordIds','_univerInstanceService','getFieldById','from','tableOrder','beforeFieldId','invalid','setSort','limit','getFieldSettings','[FBase]:\x20invalid\x20table\x20name\x20\x22','onCommandExecuted','trim','\x20for\x20field\x20\x22','_getView','name','_getFieldIds','getProjection','conditionalColoring','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','addField','setConfig','startColumn','getAllUnitsForType','Auto','7840tXfjmu','_initBaseBeforeEvents','startRow','getSnapshot','cancel','fields','getFormulaName','_getTable','record','BeforeBaseTableCellValueChange','decorate','BaseHierarchyChanged','getUnitId','defineProperty','auto','\x22\x20does\x20not\x20exist.','_fieldId','push','[FRecord]:\x20field\x20\x22','field','BASE64','object','getConditionalColorRules','forEach','RecordLink','getRow','_inject','visibleCardFieldIds','BeforeBaseTableCreate','Base\x20field\x20not\x20found:\x20','BaseTableViewCreated','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','Formula','search','offset','getLinkedRecordIds','BeforeBaseTableRecordCreate','recordIds','BaseEventSource','isArray','valid','setFieldWidth','Gantt','getNumColumns','removeLinkedRecord','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','BaseViewType','BaseFilterConjunction','DESC','afterFieldId','has','BaseConditionalColorTarget','setHierarchyField','_commandService','setDefaultValue','registerEventHandler','queryRecords','getFields','Failed\x20to\x20create\x20view\x20\x22','105FHodYV','conditions','BaseFieldType','syncExecuteCommand','string','createUnit','fieldKey','143vNDApu','hasOwnProperty','slice','BaseTableCreated','system','getName','getView','getDescendants',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','entries','size','Delete','records','stringify','Failed\x20to\x20add\x20records','Gallery','_injector','get','move','BaseHierarchyErrorCode','getDescription','getTableById','_getRecordLinkField','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','_recordId','addChild','getTable','extend','matches','getTableByName','Remote','64iMXuNj',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','\x22.\x20','BaseFilterOperator','hierarchyChanges','Kanban','Facade','Date','getConfig','updateConfig','max','getRecordById','hidden','BaseConditionalDateMode','getFieldByName','_getField','_writeFormulaExternalReferences','values','getChildren','getViews','_table','getOwnPropertyDescriptor','_range','[FView]:\x20view\x20\x22','fireEvent','Invalid\x20attachment\x20at\x20index\x20','_base','find','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','fieldIds','\x20exceeds\x20range\x20size\x20','getBases','getSchema','[FField]:\x20field\x20\x22','setLinkedRecordIds','beforeCommandExecuted','externalReferences','getGroup','orderKey','627865ewGdgL','caseSensitive','notMatches','_resourceLoaderService','deepClone','function'];_0x88d1=function(){return _0x2a8a98;};return _0x88d1();}_0x47ca81[_0x46a1c2(0x311)]($);export{Ke as BaseFieldKeyEnum,Z as FBase,X as FBaseTable,B as FBaseTableField,K as FBaseTableRange,J as FBaseTableRecord,Y as FBaseTableView,$ as FBasesEventNameMixin,Je as resolveBaseFieldKey,H as resolveBaseFieldValues};
|