@univerjs-pro/bases 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/cjs/worker-BDigGzY4.js +1 -0
- package/lib/cjs/worker.js +1 -0
- 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/es/worker-1CbynS32.js +1 -0
- package/lib/es/worker.js +1 -0
- 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/config/config.d.ts +1 -1
- package/lib/types/controllers/base-formula-optional-identifier.d.ts +1 -1
- package/lib/types/fields/field-stat.d.ts +1 -1
- package/lib/types/index.d.ts +4 -1
- package/lib/types/plugin.d.ts +1 -13
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-field-registry.service.d.ts +2 -2
- package/lib/types/services/base-permission-point.d.ts +1 -1
- package/lib/types/services/base-permission.service.d.ts +1 -1
- package/lib/types/services/base-projection.service.d.ts +2 -2
- package/lib/types/services/base-resource.service.d.ts +1 -1
- package/lib/types/services/base-view-registry.service.d.ts +2 -2
- package/lib/types/worker.d.ts +14 -0
- 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/lib/worker-1CbynS32.js +1 -0
- package/lib/worker.js +1 -0
- package/package.json +17 -12
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3b2f37=_0x194d;(function(_0x2fe4d6,_0x575547){const _0x309140=_0x194d,_0x2fb67d=_0x2fe4d6();while(!![]){try{const _0x3bbe22=-parseInt(_0x309140(0x15a))/0x1+parseInt(_0x309140(0xdf))/0x2+parseInt(_0x309140(0xd7))/0x3+parseInt(_0x309140(0xe5))/0x4*(-parseInt(_0x309140(0x155))/0x5)+-parseInt(_0x309140(0xbf))/0x6+-parseInt(_0x309140(0x1b2))/0x7*(-parseInt(_0x309140(0x111))/0x8)+-parseInt(_0x309140(0x1b9))/0x9*(parseInt(_0x309140(0x127))/0xa);if(_0x3bbe22===_0x575547)break;else _0x2fb67d['push'](_0x2fb67d['shift']());}catch(_0x24fc0b){_0x2fb67d['push'](_0x2fb67d['shift']());}}}(_0x4d76,0x5a86e));import{ApplyBaseJson1Mutation as _0x34855e,BASE_TABLE_NAME_REQUIREMENTS as _0x2d6c44,BaseConditionalColorRuleUpdateType as _0x510c3e,BaseEventSource as _0x4d5524,BaseHierarchyErrorCode as _0x115291,BatchCreateBaseRecordsCommand as _0xcf9f8c,BatchDeleteBaseRecordsCommand as _0x5a7920,ChangeBaseFieldTypeCommand as _0x15b0fc,CreateBaseChildRecordCommand as _0x2a209d,CreateBaseFieldCommand as _0x174ba5,CreateBaseRecordCommand as _0x1193c8,CreateBaseTableCommand as _0x36d876,CreateBaseViewCommand as _0x1adb6d,DeleteBaseFieldCommand as _0x2fc3c0,DeleteBaseRecordCommand as _0x6344c7,DeleteBaseTableCommand as _0x337224,DeleteBaseViewCommand as _0x18125d,DuplicateBaseRecordCommand as _0x292c95,IBaseProjectionService as _0x1cb7d5,MoveBaseFieldCommand as _0x15b278,MoveBaseHierarchyRecordCommand as _0xd3c5c2,MoveBaseViewCommand as _0x37de2f,RenameBaseTableCommand as _0x1e32c6,RenameBaseViewCommand as _0xaefd70,SetBaseNameCommand as _0x8afdd0,SetBasePermissionCommand as _0x21f2d1,SetBasePermissionsCommand as _0x37c8de,SetBaseRangeValuesCommand as _0xa0c8e2,SetBaseRecordValuesCommand as _0x46d1e8,SetBaseTableHierarchyFieldCommand as _0x273e9f,SetBaseViewFieldOrderCommand as _0x42af3c,SetBaseViewFieldVisibleCommand as _0x1b428a,SetBaseViewFieldWidthCommand as _0x3596a1,SetBaseViewFilterCommand as _0x3943da,SetBaseViewGroupCommand as _0x4a854f,SetBaseViewSortCommand as _0x388049,UpdateBaseCellCommand as _0x1b0f5c,UpdateBaseFieldCommand as _0x53217d,UpdateBaseRecordOrderCommand as _0x5da32a,UpdateBaseViewConditionalColorRulesCommand as _0x4b486e,UpdateBaseViewConfigCommand as _0x45a334,ValidateBaseFormulaCommand as _0x25826c,buildBaseHierarchyIndex as _0xfa6b82,canEditBaseTargets as _0x29c269,copyBaseTableSnapshot as _0x1343fb,createUniqueBaseTableName as _0x3b265e,ensureBaseTableCellLayout as _0x81619,getActiveBaseHierarchyFieldIds as _0xdc3ff5,getBaseCellValue as _0x284376,getBaseFieldPermissionObjectId as _0x2ed12f,getBaseFormulaTableName as _0x31d1af,getBaseHierarchyDeletePromotions as _0xb2debb,getBasePermissionValue as _0xb13101,getBaseRecordPermissionObjectId as _0x262d9e,getBaseTablePermissionObjectId as _0x1a5f5e,getBaseViewPermissionObjectId as _0x7102f,getRecordLinkFieldConfig as _0x2305fd,matchesBaseCondition as _0x5ec685,parseRecordLinkIds as _0xea2e53,resolveBaseHierarchyFieldId as _0x3bde75,resolveBaseRangeHierarchyPatches as _0x55a4b7,searchBaseTable as _0x5b0210,serializeRecordLinkIds as _0x44d49b,validateBaseHierarchyRecordCreations as _0x377fbc,validateBaseHierarchyRecordPatches as _0x50df42,validateBaseTableName as _0x4a1245,validateRecordLinkValue as _0x57c749}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x3cb4f6,BaseConditionalColorOperator as _0x5f5c3b,BaseConditionalColorTarget as _0x2e83f1,BaseConditionalDateMode as _0x256a0d,BaseFieldType as _0x268b7f,BaseFilterConjunction as _0x29b07b,BaseFilterOperator as _0x547adc,BaseHierarchyInvalidReason as _0x970749,BaseRecordLinkRole as _0x116087,BaseSortDirection as _0x23c723,BaseViewType as _0x5b008e,CanceledError as _0x543b75,ICommandService as _0x3fc5b1,IPermissionService as _0x376f49,IResourceLoaderService as _0x183c06,ImageSourceType as _0x3e541f,Inject as _0x5abbd7,Injector as _0x4b43b6,Tools as _0x36fd3d,UniverInstanceType as _0xbc8b5a,createDefaultBaseTableSnapshot as _0x5bad1c,generateRandomId as _0x2ea005}from'@univerjs/core';import*as _0x30c594 from'@univerjs/core/facade';import{FBaseInitialable as _0x31080f,FEnum as _0x544088,FEventName as _0x529663,FUniver as _0x4602a3}from'@univerjs/core/facade';import{UnitAction as _0x2536af}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5d1890}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x1a9d85,_0x11536c,_0x37bd6d){const _0x4a6d30=_0x194d;this[_0x4a6d30(0x1e1)]=_0x1a9d85,this['_commandService']=_0x11536c,this[_0x4a6d30(0x199)]=_0x37bd6d;}async[_0x3b2f37(0x138)](_0x301cc3){const _0x89f5ca=_0x3b2f37;return this[_0x89f5ca(0x121)][_0x89f5ca(0xaf)](_0x37c8de['id'],{'unitId':this[_0x89f5ca(0x1e1)],'changes':_0x301cc3});}async[_0x3b2f37(0x194)](_0x2131b4,_0x3a5001){await this['_commandService']['executeCommand'](_0x21f2d1['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x2131b4,'value':_0x3a5001});}[_0x3b2f37(0xbc)](_0x56d1b0){const _0x2eabf6=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x2eabf6(0x1e1)],this[_0x2eabf6(0x1e1)],_0x56d1b0);}async[_0x3b2f37(0x135)](_0x47e6d8=!0x0){const _0xc12176=_0x3b2f37;await this['_commandService'][_0xc12176(0xaf)](_0x21f2d1['id'],{'unitId':this[_0xc12176(0x1e1)],'objectId':this['_unitId'],'action':_0x2536af[_0xc12176(0x156)],'value':_0x47e6d8});}async['setReadOnly'](){const _0x2aaa5b=_0x3b2f37;await this['_commandService'][_0x2aaa5b(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x2aaa5b(0x1e1)],'objectId':this[_0x2aaa5b(0x1e1)],'action':_0x2536af[_0x2aaa5b(0x156)],'value':!0x1});}[_0x3b2f37(0xcb)](){const _0x39b412=_0x3b2f37;return _0xb13101(this['_permissionService'],this[_0x39b412(0x1e1)],this['_unitId'],_0x2536af[_0x39b412(0x156)]);}},L=class{constructor(_0x4627a9,_0x43f967,_0x24c4f0,_0x49e6db,_0x17a061){const _0x2683eb=_0x3b2f37;this['_unitId']=_0x4627a9,this[_0x2683eb(0x1bd)]=_0x43f967,this['_parentObjectIds']=_0x24c4f0,this['_commandService']=_0x49e6db,this[_0x2683eb(0x199)]=_0x17a061;}async[_0x3b2f37(0x135)](_0x8c980c=!0x0){const _0x33a57f=_0x3b2f37;await this[_0x33a57f(0x121)]['executeCommand'](_0x21f2d1['id'],{'unitId':this[_0x33a57f(0x1e1)],'objectId':this[_0x33a57f(0x1bd)],'action':_0x2536af[_0x33a57f(0x156)],'value':_0x8c980c});}async[_0x3b2f37(0x146)](){const _0x40ed54=_0x3b2f37;await this[_0x40ed54(0x121)][_0x40ed54(0xaf)](_0x21f2d1['id'],{'unitId':this[_0x40ed54(0x1e1)],'objectId':this[_0x40ed54(0x1bd)],'action':_0x2536af[_0x40ed54(0x156)],'value':!0x1});}['canEdit'](){const _0x47bb22=_0x3b2f37;return _0x29c269(this['_permissionService'],this[_0x47bb22(0x1e1)],[...this['_parentObjectIds'],this[_0x47bb22(0x1bd)]]);}};function R(_0x1863ed,_0x5dbd83){return function(_0x516a40,_0x4102bf){_0x5dbd83(_0x516a40,_0x4102bf,_0x1863ed);};}function _0x4d76(){const _0xdfc72=['recordId','_getField','sort','getRecords','getViewByName','deleteAttachments','getId','_getFieldIds','BeforeBaseTableViewCreate','_resolveRecordIds','sourceType','primaryFieldId','getAllUnitsForType','getFieldSettings','disposeWithMe','recordOrder','Failed\x20to\x20add\x20records','fromCollab','BaseFilterConjunction','height','record','getBaseFacade','startsWith','invalid','onCommandExecuted','\x22\x20must\x20be\x20a\x20non-empty\x20string.','extend','type','getField','getDataRange','hidden','getActiveBase','entries','BeforeBaseHierarchyChange','BaseHierarchyErrorCode','addLinkedRecord','number','getNumColumns','isReadonly','Formula','executeCommand','Gallery','getSort','getColumn','_assertInBounds','fields','getSnapshot','_fireBeforeHierarchyChange','move','tableOrder','[FRecord]:\x20field\x20\x22','matches','\x20for\x20field\x20\x22','getPoint','getVisibleFields','constructor','103620GsoYcc','_baseTableId','RecordLink','getTable','Duplicate\x20Base\x20field\x20name:\x20','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','[FTable]:\x20table\x20\x22','delete','custom','deepClone','max','BaseTableCreated','canEdit','getFormulaName','orderKey','Facade','BaseRecordLinkRole','afterFieldId','deleteTable','description','views',':\x20\x22','BaseTableViewCreated','UNIVER_BASE','1640094SRpDfP','Failed\x20to\x20duplicate\x20table\x20\x22','Delete','_initBaseAfterEvents','createInstance','hasOwnProperty','unitId','recordIds','758032yZXoqy','getProjection','operator','_tableId','parentRecordId','push','210556xBPqKL','fieldIds','reason','_table','getViews','slice','addConditionalColorRule','registerEventHandler','getSchema','AND','createdAt','_getTable','[FRecord]:\x20attachment\x20at\x20index\x20','getFilter','getValues','Invalid\x20attachment\x20at\x20index\x20','default','addChild','beforeFieldId','_prepareFormulaFieldReferences','getBaseId','commonExtend','view','fieldOrder','BaseHierarchyInvalidReason','endColumn','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','primaryFieldName','function','\x22\x20does\x20not\x20exist.','addRecords','\x22:\x20expected\x20an\x20array.','setGroup','setOrderKey','setFieldWidth','size','updateConfig','getBase','group','startColumn','_base','BaseSortDirection','fieldKey','setName','1714312baJKSR','getAttachments','valid','duplicate','_initBaseBeforeEvents','orderedRecordIds','includes','\x22.\x20','_getAttachmentField','decorate','auto','\x22\x20is\x20invalid.','Date','viewId','viewOrder','filter','_commandService','BeforeBaseTableCellValueChange','update','_resourceLoaderService','fieldId','BASE64','60fCGiKu','url','_getRecord','insertTable','cancel','string','getRecord','Invalid\x20Base\x20formula.','getAncestors','notMatches','BaseTableRecordCreated','getUnitId','moveField','prototype','setEditable','_initialize','_fieldId','setObjectPermissions','createBase',':\x20expected\x20an\x20object.','some','getUnit','getRange','flatMap','[FBase]:\x20table\x20\x22','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','createView','iterator','Add','BaseFilterOperator','getChildren','setReadOnly','readonly','has','targetTableId','UUID','getConfig','setValue','\x20exceeds\x20range\x20size\x20','Failed\x20to\x20add\x20field\x20\x22','fireEvent','BaseConditionalDateMode','getTableById','_projectionService','setDefaultValue','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','30HXiSWw','Edit','tableId','defaultValue','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','288001QpHiGJ','parentByRecordId','BaseHierarchyChanged','getTableByName','rules','getPrimaryField','data:','Calendar','\x22\x20has\x20invalid\x20config.','Unsupported\x20Base\x20field\x20type\x20\x22','every','limit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','get','Name','getTableId','offset','externalReferences','getParent','getTableFacade','BaseFieldKeyEnum','saveUnit','endRow','multiple','index','BeforeBaseTableRecordCreate','BaseFieldType','_getHierarchyIndex','Failed\x20to\x20create\x20table\x20\x22','Remote','getLinkedRecordIds','find','now','length','table','visibleCardFieldIds','syncExecuteCommand','_collectDescendantIds','[FBaseRange]:\x20values\x20size\x20','getCurrentUnitOfType',',\x20range:\x20','addField','rows','setFieldVisible','_baseUnitId','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','setParent','getRecordById','RecordId','getGroup','base','deleteRecords','Kanban','queryRecords','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','defineProperty','params','records','setPoint','fromEntries','getFieldById','Invalid\x20Base\x20regex\x20filter:\x20','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','_permissionService','getName','hierarchyChanges','field','stringify','Failed\x20to\x20delete\x20table\x20\x22','getView','clear','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BeforeBaseTableFieldCreate','setHierarchyField','DESC','beforeCommandExecuted','_injector','changeType','setFilter','setValues','BeforeBaseTableCreate','warn','getValue','[FBase]:\x20invalid\x20table\x20name\x20\x22','isArray',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','caseSensitive','getPermission','21eZmbEm','_recordId','_writeFormulaExternalReferences','getDefaultValue','removeLinkedRecord','fieldSettings','getOwnPropertyDescriptor','865017GxeQsN','Event','[FRecord]:\x20RecordLink\x20field\x20\x22','values','_objectId','_getView','getTables','tables','startRow','name','BaseViewType','clearConditionalColorRules','_inject','map','source','_getHierarchyEventContext','getPrimaryFieldId','setConditionalColorRules','Set','BaseEventSource','setConfig','BaseTableFieldCreated','boolean','direction','getConditionalColorRules','Attachment','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','conditionalColoring','_univerInstanceService','BaseConditionalColorOperator','config','_viewId','rowId','URL','setLinkedRecordIds','getNumRows','object','deleteConditionalColorRule','BaseTableCellValueChanged','from','_unitId','_getRecordLinkField','[FView]:\x20view\x20\x22','localeCompare','BaseConditionalColorTarget','trim','value','setAttachments','updatedAt','indexOf','_range','getFieldByName','symbol'];_0x4d76=function(){return _0xdfc72;};return _0x4d76();}function z(_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64){const _0x2b3323=_0x3b2f37;var _0x831c65=arguments['length'],_0x2d6439=_0x831c65<0x3?_0x5e1ab0:_0xacee64===null?_0xacee64=Object[_0x2b3323(0x1b8)](_0x5e1ab0,_0x1d6142):_0xacee64,_0x573071;if(typeof Reflect==_0x2b3323(0x1dd)&&typeof Reflect[_0x2b3323(0x11a)]==_0x2b3323(0x101))_0x2d6439=Reflect[_0x2b3323(0x11a)](_0x291546,_0x5e1ab0,_0x1d6142,_0xacee64);else{for(var _0x3a2b7e=_0x291546[_0x2b3323(0x17b)]-0x1;_0x3a2b7e>=0x0;_0x3a2b7e--)(_0x573071=_0x291546[_0x3a2b7e])&&(_0x2d6439=(_0x831c65<0x3?_0x573071(_0x2d6439):_0x831c65>0x3?_0x573071(_0x5e1ab0,_0x1d6142,_0x2d6439):_0x573071(_0x5e1ab0,_0x1d6142))||_0x2d6439);}return _0x831c65>0x3&&_0x2d6439&&Object[_0x2b3323(0x191)](_0x5e1ab0,_0x1d6142,_0x2d6439),_0x2d6439;}let B=class{constructor(_0x3c9dcd,_0x498aca,_0x57300a,_0x2025fb,_0x235653){const _0x1df0ab=_0x3b2f37;this[_0x1df0ab(0x10d)]=_0x3c9dcd,this[_0x1df0ab(0xe8)]=_0x498aca,this[_0x1df0ab(0x137)]=_0x57300a,this[_0x1df0ab(0x121)]=_0x2025fb,this[_0x1df0ab(0x199)]=_0x235653;}[_0x3b2f37(0x8d)](){const _0x254540=_0x3b2f37;return this[_0x254540(0x137)];}['getPermission'](){const _0x5a5364=_0x3b2f37;let _0x10873a=this[_0x5a5364(0xe8)]['getId']();return new L(this[_0x5a5364(0x10d)][_0x5a5364(0x8d)](),_0x2ed12f(_0x10873a,this[_0x5a5364(0x137)]),[_0x1a5f5e(_0x10873a)],this[_0x5a5364(0x121)],this['_permissionService']);}[_0x3b2f37(0xa3)](){const _0x1538eb=_0x3b2f37;return this[_0x1538eb(0x88)]();}['getName'](){const _0x59b4f=_0x3b2f37;return this[_0x59b4f(0x88)]()[_0x59b4f(0x1c2)];}['getType'](){const _0x1d2285=_0x3b2f37;return this['_getField']()[_0x1d2285(0xa2)];}['getConfig'](){const _0x3af3c6=_0x3b2f37;return this[_0x3af3c6(0x88)]()[_0x3af3c6(0x1d7)];}[_0x3b2f37(0x1b5)](){const _0x5bde2a=_0x3b2f37;return this[_0x5bde2a(0x88)]()[_0x5bde2a(0x158)];}['getDescription'](){const _0x57b011=_0x3b2f37;return this[_0x57b011(0x88)]()['description'];}[_0x3b2f37(0xad)](){const _0x13b8d6=_0x3b2f37;return!!this[_0x13b8d6(0x88)]()[_0x13b8d6(0x147)];}[_0x3b2f37(0x110)](_0x28077c){return this['update']({'name':_0x28077c});}[_0x3b2f37(0x1cd)](_0x1abd3e,_0x1c2635){return this['update']({'config':_0x1abd3e},_0x1c2635);}[_0x3b2f37(0x153)](_0x76b611){return this['update']({'defaultValue':_0x76b611});}[_0x3b2f37(0x123)](_0x1e8021,_0x53769d){const _0x8e2e7e=_0x3b2f37;let _0x305220=this[_0x8e2e7e(0x88)]()['type'];return(_0x1e8021[_0x8e2e7e(0xa2)]??_0x305220)===_0x268b7f['Formula']&&(Object[_0x8e2e7e(0x134)][_0x8e2e7e(0xdc)]['call'](_0x1e8021,_0x8e2e7e(0x1d7))||_0x1e8021['type']===_0x268b7f[_0x8e2e7e(0xae)])&&!this[_0x8e2e7e(0x1b4)](_0x53769d)?!0x1:this[_0x8e2e7e(0x121)][_0x8e2e7e(0x17e)](_0x53217d['id'],{'unitId':this[_0x8e2e7e(0x10d)][_0x8e2e7e(0x8d)](),'tableId':this[_0x8e2e7e(0xe8)][_0x8e2e7e(0x8d)](),'fieldId':this[_0x8e2e7e(0x137)],'patch':_0x1e8021});}[_0x3b2f37(0x1a7)](_0x1fda9d,_0x2a6322={},_0x4547a0){const _0x2e7512=_0x3b2f37;return _0x1fda9d===_0x268b7f['Formula']&&!this['_writeFormulaExternalReferences'](_0x4547a0)?!0x1:this[_0x2e7512(0x121)]['syncExecuteCommand'](_0x15b0fc['id'],{'unitId':this[_0x2e7512(0x10d)][_0x2e7512(0x8d)](),'tableId':this[_0x2e7512(0xe8)]['getId'](),'fieldId':this[_0x2e7512(0x137)],'input':{'type':_0x1fda9d,'config':_0x2a6322}});}[_0x3b2f37(0xc6)](){const _0x545497=_0x3b2f37;return this['_commandService'][_0x545497(0x17e)](_0x2fc3c0['id'],{'unitId':this[_0x545497(0x10d)][_0x545497(0x8d)](),'tableId':this[_0x545497(0xe8)][_0x545497(0x8d)](),'fieldId':this[_0x545497(0x137)]});}[_0x3b2f37(0xb7)](_0x414325){const _0x5dee30=_0x3b2f37;return this['_commandService'][_0x5dee30(0x17e)](_0x15b278['id'],{'unitId':this[_0x5dee30(0x10d)][_0x5dee30(0x8d)](),'tableId':this[_0x5dee30(0xe8)][_0x5dee30(0x8d)](),'fieldId':this[_0x5dee30(0x137)],'target':_0x414325});}[_0x3b2f37(0x88)](){const _0x2ba0fd=_0x3b2f37;let _0x52d45f=this[_0x2ba0fd(0xe8)][_0x2ba0fd(0xc2)]()[_0x2ba0fd(0xb4)][this[_0x2ba0fd(0x137)]];if(!_0x52d45f)throw Error('[FField]:\x20field\x20\x22'+this[_0x2ba0fd(0x137)]+_0x2ba0fd(0x102));return _0x52d45f;}[_0x3b2f37(0x1b4)](_0x5848ad){const _0x88010e=_0x3b2f37;if(!_0x5848ad||!Array[_0x88010e(0x1ae)](_0x5848ad['externalReferences']))return console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x5848ad[_0x88010e(0x16b)]['length']===0x0)return!0x0;let _0x348f4a=this[_0x88010e(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x88010e(0x10d)]['getId'](),'references':_0x5848ad['externalReferences']});return _0x348f4a||console[_0x88010e(0x1ab)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x348f4a;}};B=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],B);let ot=function(_0x4539bb){const _0x23bead=_0x3b2f37;return _0x4539bb['Id']='id',_0x4539bb[_0x23bead(0x168)]=_0x23bead(0x1c2),_0x4539bb['Auto']=_0x23bead(0x11b),_0x4539bb;}({});function V(_0x562c13){const _0x1b911e=_0x3b2f37;return!!(_0x562c13&&_0x562c13['system']!==!0x0&&_0x562c13[_0x1b911e(0xa2)]!==_0x268b7f[_0x1b911e(0x18a)]);}function H(_0x321bd5,_0x2b1de6,_0x66197a='id'){const _0x531d12=_0x3b2f37;if(!_0x2b1de6)return{};let _0x40e910={};return Object[_0x531d12(0xa7)](_0x2b1de6)['forEach'](([_0x14ed14,_0x472700])=>{let _0x43a84e=ct(_0x321bd5,_0x14ed14,_0x66197a);_0x40e910[_0x43a84e]=st(_0x321bd5['fields'][_0x43a84e],_0x472700);}),_0x40e910;}function st(_0x4d5f3b,_0x3cb18b){const _0x329f2f=_0x3b2f37;if((_0x4d5f3b==null?void 0x0:_0x4d5f3b[_0x329f2f(0xa2)])!==_0x268b7f[_0x329f2f(0x1d2)]||_0x3cb18b==null)return _0x3cb18b;if(!Array['isArray'](_0x3cb18b))throw TypeError(_0x329f2f(0x187)+_0x4d5f3b[_0x329f2f(0x1c2)]+_0x329f2f(0x104));return _0x3cb18b[_0x329f2f(0x1c6)]((_0x42f16e,_0x2c8e4b)=>lt(_0x4d5f3b,_0x42f16e,_0x2c8e4b));}function ct(_0x2661c2,_0x1ab916,_0x3d94d5){const _0x438399=_0x3b2f37;if(_0x3d94d5==='id'||_0x3d94d5===_0x438399(0x11b)&&_0x2661c2[_0x438399(0xb4)][_0x1ab916])return _0x1ab916;let _0x137d69=Object[_0x438399(0x1bc)](_0x2661c2[_0x438399(0xb4)])[_0x438399(0x120)](_0x18e26c=>_0x18e26c[_0x438399(0x1c2)]===_0x1ab916);if(_0x137d69[_0x438399(0x17b)]===0x1)return _0x137d69[0x0]['id'];throw _0x137d69[_0x438399(0x17b)]>0x1?Error(_0x438399(0xc3)+_0x1ab916):Error('Base\x20field\x20not\x20found:\x20'+_0x1ab916);}function lt(_0x197ae7,_0x3b8719,_0xe94dbb){const _0x331e53=_0x3b2f37;let _0x4e36d8=_0x331e53(0xf4)+_0xe94dbb+_0x331e53(0xbb)+_0x197ae7[_0x331e53(0x1c2)]+'\x22';if(!ft(_0x3b8719))throw TypeError(_0x4e36d8+_0x331e53(0x13a));if(_0x331e53(0x128)in _0x3b8719)throw TypeError(_0x4e36d8+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x331e53(0xa2)in _0x3b8719)throw TypeError(_0x4e36d8+_0x331e53(0x1af));let _0x2a2506=U(_0x3b8719['id'],_0x4e36d8,'id'),_0x17d987=U(_0x3b8719[_0x331e53(0x1c2)],_0x4e36d8,'name'),_0xf198ad=U(_0x3b8719['source'],_0x4e36d8,'source');return{'id':_0x2a2506,'name':_0x17d987,'source':_0xf198ad,'sourceType':ut(_0x3b8719[_0x331e53(0x91)],_0xf198ad,_0x4e36d8),...dt(_0x3b8719,'mimeType',_0x4e36d8),...W(_0x3b8719,'size',_0x4e36d8),...W(_0x3b8719,'width',_0x4e36d8),...W(_0x3b8719,_0x331e53(0x9a),_0x4e36d8),...dt(_0x3b8719,'thumbnail',_0x4e36d8)};}function ut(_0x381100,_0x420284,_0xfb8681){const _0x40abaf=_0x3b2f37;if(_0x381100==null)return _0x420284[_0x40abaf(0x9d)](_0x40abaf(0x160))?_0x3e541f['BASE64']:_0x3e541f[_0x40abaf(0x1da)];if(_0x381100===_0x3e541f[_0x40abaf(0x1da)]||_0x381100===_0x3e541f[_0x40abaf(0x14a)]||_0x381100===_0x3e541f[_0x40abaf(0x126)])return _0x381100;throw TypeError(_0xfb8681+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function U(_0xc7e7b2,_0x1902ba,_0x9a6e78){const _0x3c036d=_0x3b2f37;if(typeof _0xc7e7b2!=_0x3c036d(0x12c)||!_0xc7e7b2['trim']())throw TypeError(_0x1902ba+_0x3c036d(0xd4)+_0x9a6e78+_0x3c036d(0xa0));return _0xc7e7b2;}function dt(_0x5d77d8,_0x3f23f4,_0x21031f){const _0x327e8b=_0x3b2f37;let _0x2513d0=_0x5d77d8[_0x3f23f4];if(_0x2513d0==null)return{};if(typeof _0x2513d0!='string'||!_0x2513d0[_0x327e8b(0x1e6)]())throw TypeError(_0x21031f+_0x327e8b(0xd4)+_0x3f23f4+_0x327e8b(0x1a1));return{[_0x3f23f4]:_0x2513d0};}function W(_0x1c314a,_0xc2d52c,_0x45e483){const _0x229f9d=_0x3b2f37;let _0x19d536=_0x1c314a[_0xc2d52c];if(_0x19d536==null)return{};if(typeof _0x19d536!=_0x229f9d(0xab)||!Number['isFinite'](_0x19d536)||_0x19d536<0x0)throw TypeError(_0x45e483+':\x20\x22'+_0xc2d52c+_0x229f9d(0x198));return{[_0xc2d52c]:_0x19d536};}function ft(_0x3e9009){const _0x6f8f67=_0x3b2f37;return typeof _0x3e9009==_0x6f8f67(0x1dd)&&!!_0x3e9009&&!Array['isArray'](_0x3e9009);}var G;let K=G=class{constructor(_0x5d48ff,_0x7a0d62,_0xdfa55,_0x300267,_0x55b1c2){const _0xe0ce90=_0x3b2f37;this[_0xe0ce90(0x10d)]=_0x5d48ff,this[_0xe0ce90(0xe8)]=_0x7a0d62,this[_0xe0ce90(0x84)]=_0xdfa55,this['_inject']=_0x300267,this[_0xe0ce90(0x121)]=_0x55b1c2,this['_assertInBounds']();}[_0x3b2f37(0xf9)](){const _0x3cfd61=_0x3b2f37;return this[_0x3cfd61(0x10d)]['getId']();}[_0x3b2f37(0x169)](){const _0x3a8548=_0x3b2f37;return this[_0x3a8548(0xe8)][_0x3a8548(0x8d)]();}['getRange'](){const _0x2c5877=_0x3b2f37;return{...this[_0x2c5877(0x84)]};}['getRow'](){const _0x240ab6=_0x3b2f37;return this[_0x240ab6(0x84)]['startRow'];}[_0x3b2f37(0xb2)](){const _0x1d898e=_0x3b2f37;return this[_0x1d898e(0x84)][_0x1d898e(0x10c)];}['getNumRows'](){const _0x40caa5=_0x3b2f37;return this[_0x40caa5(0x84)][_0x40caa5(0x170)]-this[_0x40caa5(0x84)]['startRow']+0x1;}[_0x3b2f37(0xac)](){const _0x328669=_0x3b2f37;return this[_0x328669(0x84)]['endColumn']-this[_0x328669(0x84)][_0x328669(0x10c)]+0x1;}[_0x3b2f37(0xf3)](){const _0x12ffff=_0x3b2f37;let _0x5c6429=this[_0x12ffff(0xf0)](),_0x270de9=this['_getFieldIds'](_0x5c6429),_0x216939=[];for(let _0x479d33=this[_0x12ffff(0x84)][_0x12ffff(0x1c1)];_0x479d33<=this[_0x12ffff(0x84)][_0x12ffff(0x170)];_0x479d33++){var _0x2e1550;let _0x5efb22=(_0x2e1550=_0x5c6429['rowId'])==null?void 0x0:_0x2e1550[_0x479d33],_0x1db53d=[];for(let _0x343761=this[_0x12ffff(0x84)][_0x12ffff(0x10c)];_0x343761<=this['_range']['endColumn'];_0x343761++){let _0x224ef0=_0x270de9[_0x343761];_0x1db53d['push'](_0x5efb22&&_0x224ef0?_0x284376(_0x5c6429,_0x5efb22,_0x224ef0):null);}_0x216939[_0x12ffff(0xe4)](_0x1db53d);}return _0x216939;}[_0x3b2f37(0x1ac)](){const _0x12d34f=_0x3b2f37;var _0x336c66;return((_0x336c66=this[_0x12d34f(0xf3)]()[0x0])==null?void 0x0:_0x336c66[0x0])??null;}[_0x3b2f37(0x14c)](_0x4673ae){const _0x8ab928=_0x3b2f37;return this[_0x8ab928(0x1a9)]([[_0x4673ae]]);}['setValues'](_0x24fbbe){const _0x31d156=_0x3b2f37;let _0x148d97=this[_0x31d156(0x1dc)](),_0x1d107e=this['getNumColumns']();if(_0x24fbbe['length']>_0x148d97||_0x24fbbe[_0x31d156(0x13b)](_0x4b1821=>_0x4b1821[_0x31d156(0x17b)]>_0x1d107e)){var _0x35cc59;throw Error(_0x31d156(0x180)+_0x24fbbe[_0x31d156(0x17b)]+'x'+(((_0x35cc59=_0x24fbbe[0x0])==null?void 0x0:_0x35cc59[_0x31d156(0x17b)])??0x0)+_0x31d156(0x14d)+_0x148d97+'x'+_0x1d107e+'.');}let _0x3b69d6=this[_0x31d156(0xf0)](),_0x446fed=this[_0x31d156(0x8e)](_0x3b69d6),_0x28bf58=_0x24fbbe[_0x31d156(0x13e)]((_0x36e34c,_0x34be3c)=>_0x36e34c['map']((_0xdacb24,_0x23e883)=>{const _0x4ef47b=_0x31d156;var _0x19edf8;let _0x287a07=this[_0x4ef47b(0x84)][_0x4ef47b(0x1c1)]+_0x34be3c,_0xe4247d=_0x446fed[this['_range']['startColumn']+_0x23e883],_0x4ed073=(_0x19edf8=_0x3b69d6[_0x4ef47b(0x1d9)])==null?void 0x0:_0x19edf8[_0x287a07];if(!_0xe4247d||!_0x4ed073)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x4ed073,'fieldId':_0xe4247d,'value':_0xdacb24};}));return this[_0x31d156(0x121)]['syncExecuteCommand'](_0xa0c8e2['id'],{'unitId':this[_0x31d156(0x10d)][_0x31d156(0x8d)](),'tableId':this[_0x31d156(0xe8)][_0x31d156(0x8d)](),'patches':_0x28bf58,'source':_0x4d5524['Facade']});}[_0x3b2f37(0x1a0)](){const _0x15a6dd=_0x3b2f37;return this[_0x15a6dd(0x1a9)](Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0x1dc)]()},()=>Array[_0x15a6dd(0x1e0)]({'length':this[_0x15a6dd(0xac)]()},()=>null)));}[_0x3b2f37(0x16a)](_0x50a7e5,_0x47938f,_0x59360a=this[_0x3b2f37(0x1dc)](),_0x2ff7c2=this['getNumColumns']()){const _0x5a6e80=_0x3b2f37;return this['_inject'][_0x5a6e80(0xdb)](G,this[_0x5a6e80(0x10d)],this[_0x5a6e80(0xe8)],{'startRow':this[_0x5a6e80(0x84)][_0x5a6e80(0x1c1)]+_0x50a7e5,'startColumn':this[_0x5a6e80(0x84)]['startColumn']+_0x47938f,'endRow':this['_range']['startRow']+_0x50a7e5+_0x59360a-0x1,'endColumn':this['_range'][_0x5a6e80(0x10c)]+_0x47938f+_0x2ff7c2-0x1},this[_0x5a6e80(0x1c5)]);}[_0x3b2f37(0xf0)](){const _0xd71b88=_0x3b2f37;let _0x4b88f3=this['_table'][_0xd71b88(0xc2)]();if(!_0x4b88f3)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return _0x81619(_0x4b88f3);}[_0x3b2f37(0xb3)](){const _0x14de8c=_0x3b2f37;var _0x2f3ea9;let _0x13f6e5=this[_0x14de8c(0xf0)](),_0x50505a=((_0x2f3ea9=_0x13f6e5['recordOrder'])==null?void 0x0:_0x2f3ea9['length'])??0x0,_0x16f13d=this['_getFieldIds'](_0x13f6e5)[_0x14de8c(0x17b)];if(this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x10c)]<0x0||this[_0x14de8c(0x84)][_0x14de8c(0x170)]<this[_0x14de8c(0x84)][_0x14de8c(0x1c1)]||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]<this[_0x14de8c(0x84)][_0x14de8c(0x10c)]||this['_range'][_0x14de8c(0x170)]>=Math[_0x14de8c(0xc9)](_0x50505a,0x1)||this[_0x14de8c(0x84)][_0x14de8c(0xfe)]>=Math[_0x14de8c(0xc9)](_0x16f13d,0x1))throw Error(_0x14de8c(0x154)+_0x50505a+',\x20max\x20columns:\x20'+_0x16f13d+_0x14de8c(0x182)+JSON[_0x14de8c(0x19d)](this[_0x14de8c(0x84)])+'.');}[_0x3b2f37(0x8e)](_0x52b09c){const _0x5a52d1=_0x3b2f37;return _0x52b09c['fieldOrder']['filter'](_0x4afa1d=>V(_0x52b09c[_0x5a52d1(0xb4)][_0x4afa1d]));}};K=G=z([R(0x4,_0x3fc5b1)],K);function q(_0x2b8520){'@babel/helpers - typeof';const _0x2623ad=_0x3b2f37;return q=typeof Symbol==_0x2623ad(0x101)&&typeof Symbol[_0x2623ad(0x142)]==_0x2623ad(0x86)?function(_0x5aa728){return typeof _0x5aa728;}:function(_0x28a085){const _0x4801f0=_0x2623ad;return _0x28a085&&typeof Symbol==_0x4801f0(0x101)&&_0x28a085[_0x4801f0(0xbe)]===Symbol&&_0x28a085!==Symbol['prototype']?'symbol':typeof _0x28a085;},q(_0x2b8520);}function _0x194d(_0x5786d4,_0x3a158a){_0x5786d4=_0x5786d4-0x80;const _0x4d762e=_0x4d76();let _0x194d99=_0x4d762e[_0x5786d4];return _0x194d99;}function pt(_0x2f3fb3,_0x29a112){const _0x25322e=_0x3b2f37;if(q(_0x2f3fb3)!=_0x25322e(0x1dd)||!_0x2f3fb3)return _0x2f3fb3;var _0x5f4ed7=_0x2f3fb3[Symbol['toPrimitive']];if(_0x5f4ed7!==void 0x0){var _0x17274e=_0x5f4ed7['call'](_0x2f3fb3,_0x29a112||_0x25322e(0xf5));if(q(_0x17274e)!=_0x25322e(0x1dd))return _0x17274e;throw TypeError(_0x25322e(0x166));}return(_0x29a112===_0x25322e(0x12c)?String:Number)(_0x2f3fb3);}function mt(_0x1cd76c){const _0x30760a=_0x3b2f37;var _0x33c2ec=pt(_0x1cd76c,_0x30760a(0x12c));return q(_0x33c2ec)==_0x30760a(0x86)?_0x33c2ec:_0x33c2ec+'';}function ht(_0x27fc03,_0x1d65a9,_0x4239e9){const _0x578c62=_0x3b2f37;return(_0x1d65a9=mt(_0x1d65a9))in _0x27fc03?Object[_0x578c62(0x191)](_0x27fc03,_0x1d65a9,{'value':_0x4239e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27fc03[_0x1d65a9]=_0x4239e9,_0x27fc03;}var J;let Y=J=class extends _0x31080f{constructor(_0x4fac5a,_0x52fd92,_0x1bcb47,_0x53346d,_0x29c643,_0x5a507e){const _0x522a14=_0x3b2f37;super(_0x53346d),this[_0x522a14(0x10d)]=_0x4fac5a,this[_0x522a14(0xe8)]=_0x52fd92,this[_0x522a14(0x1b3)]=_0x1bcb47,this[_0x522a14(0x1a6)]=_0x53346d,this[_0x522a14(0x121)]=_0x29c643,this[_0x522a14(0x199)]=_0x5a507e,ht(this,_0x522a14(0x186),void 0x0),ht(this,_0x522a14(0xc0),void 0x0),this['_baseUnitId']=_0x4fac5a[_0x522a14(0x8d)](),this['_baseTableId']=_0x52fd92[_0x522a14(0x8d)]();}[_0x3b2f37(0x9c)](){return this['_base'];}[_0x3b2f37(0x16d)](){return this['_table'];}[_0x3b2f37(0x8d)](){const _0x15baf4=_0x3b2f37;return this[_0x15baf4(0x1b3)];}['getPermission'](){const _0xca0ec8=_0x3b2f37;let _0x5869ec=this['_table'][_0xca0ec8(0x8d)]();return new L(this[_0xca0ec8(0x10d)][_0xca0ec8(0x8d)](),_0x262d9e(_0x5869ec,this[_0xca0ec8(0x1b3)]),[_0x1a5f5e(_0x5869ec)],this['_commandService'],this['_permissionService']);}[_0x3b2f37(0x12d)](){const _0x39a49b=_0x3b2f37;return{...this[_0x39a49b(0x129)](),'values':this['getValues']()};}[_0x3b2f37(0x1ac)](_0x4222f7){const _0x1d6a5c=_0x3b2f37;return V(this[_0x1d6a5c(0xe8)][_0x1d6a5c(0xc2)]()[_0x1d6a5c(0xb4)][_0x4222f7])?this[_0x1d6a5c(0x129)]()['values'][_0x4222f7]??null:null;}[_0x3b2f37(0xf3)](){const _0x58acff=_0x3b2f37;let _0x1fb4a6=this[_0x58acff(0xe8)]['getTable']();return Object[_0x58acff(0x195)](Object[_0x58acff(0xa7)](this[_0x58acff(0x129)]()['values'])[_0x58acff(0x120)](([_0x11ef6c])=>V(_0x1fb4a6['fields'][_0x11ef6c])));}[_0x3b2f37(0x14c)](_0x326899,_0x5df511){const _0x12a46b=_0x3b2f37;let _0x26da88=this[_0x12a46b(0xe8)]['getTable']()[_0x12a46b(0xb4)][_0x326899];return this['_commandService'][_0x12a46b(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x12a46b(0x10d)][_0x12a46b(0x8d)](),'tableId':this[_0x12a46b(0xe8)][_0x12a46b(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x326899,'value':st(_0x26da88,_0x5df511),'source':_0x4d5524[_0x12a46b(0xce)]});}[_0x3b2f37(0x81)](_0x1098cd,_0x5a0b1e){const _0x26dceb=_0x3b2f37;return this[_0x26dceb(0x14c)](_0x1098cd,_0x5a0b1e['map'](_0x1cb433=>({..._0x1cb433})));}['getAttachments'](_0x16dc9b){const _0x1d450b=_0x3b2f37;this[_0x1d450b(0x119)](_0x16dc9b);let _0x536b6a=this[_0x1d450b(0x1ac)](_0x16dc9b);return Array['isArray'](_0x536b6a)?_0x536b6a[_0x1d450b(0x1c6)]((_0x51aac7,_0x5c0df2)=>_t(_0x51aac7,_0x16dc9b,_0x5c0df2)):[];}[_0x3b2f37(0x8c)](_0x2f1d46,_0x122fba){const _0x2d303d=_0x3b2f37;this[_0x2d303d(0x119)](_0x2f1d46);let _0x3329b8=new Set(_0x122fba['map'](_0x3ff757=>_0x3ff757['id']));if(!_0x3329b8[_0x2d303d(0x108)])return!0x0;let _0x1e8c66=this[_0x2d303d(0x112)](_0x2f1d46),_0x2ef6d1=_0x1e8c66[_0x2d303d(0x120)](_0x5e8a8b=>!_0x3329b8[_0x2d303d(0x148)](_0x5e8a8b['id']));return _0x2ef6d1[_0x2d303d(0x17b)]===_0x1e8c66[_0x2d303d(0x17b)]||this[_0x2d303d(0x81)](_0x2f1d46,_0x2ef6d1);}['setValues'](_0x450341,_0x1ada52='id'){const _0x76e078=_0x3b2f37;let _0x123c2d=this[_0x76e078(0xe8)][_0x76e078(0xc2)](),_0x26682f=[{'recordId':this['_recordId'],'values':H(_0x123c2d,_0x450341,_0x1ada52)}];return this[_0x76e078(0x121)][_0x76e078(0x17e)](_0x46d1e8['id'],{'unitId':this[_0x76e078(0x10d)][_0x76e078(0x8d)](),'tableId':this['_table'][_0x76e078(0x8d)](),'patches':_0x26682f,'source':_0x4d5524[_0x76e078(0xce)]});}[_0x3b2f37(0xc6)](){const _0x2aac8c=_0x3b2f37;return this['_commandService'][_0x2aac8c(0x17e)](_0x6344c7['id'],{'unitId':this[_0x2aac8c(0x10d)][_0x2aac8c(0x8d)](),'tableId':this['_table']['getId'](),'recordId':this[_0x2aac8c(0x1b3)],'source':_0x4d5524['Facade']});}[_0x3b2f37(0x114)](_0x5b0283){const _0x2d2811=_0x3b2f37;let _0x20fb41={...this[_0x2d2811(0x129)](),..._0x5b0283,'id':_0x2ea005(0x6)};_0x20fb41[_0x2d2811(0x1bc)]={..._0x20fb41[_0x2d2811(0x1bc)],..._0x5b0283==null?void 0x0:_0x5b0283[_0x2d2811(0x1bc)]},Reflect['deleteProperty'](_0x20fb41[_0x2d2811(0x1bc)],_0x3cb4f6);let _0x52d787=Date[_0x2d2811(0x17a)]();if(_0x20fb41[_0x2d2811(0xcd)]||=''+_0x52d787,_0x20fb41[_0x2d2811(0xef)]||=_0x52d787,_0x20fb41['updatedAt']||=_0x52d787,!this[_0x2d2811(0x121)][_0x2d2811(0x17e)](_0x292c95['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x2d2811(0x8d)](),'sourceRecordId':this[_0x2d2811(0x1b3)],'record':_0x20fb41,'source':_0x4d5524[_0x2d2811(0xce)]}))throw Error(_0x2d2811(0x1d3)+this[_0x2d2811(0x1b3)]+'\x22.');return this[_0x2d2811(0x1a6)][_0x2d2811(0xdb)](J,this[_0x2d2811(0x10d)],this[_0x2d2811(0xe8)],_0x20fb41['id'],this['_injector']);}[_0x3b2f37(0x106)](_0x4944d8){const _0x4db303=_0x3b2f37;return this[_0x4db303(0x121)][_0x4db303(0x17e)](_0x5da32a['id'],{'unitId':this[_0x4db303(0x10d)][_0x4db303(0x8d)](),'tableId':this['_table'][_0x4db303(0x8d)](),'recordId':this['_recordId'],'orderKey':_0x4944d8});}[_0x3b2f37(0x178)](_0x591fba){const _0x12e4a5=_0x3b2f37;let _0x38ef48=this[_0x12e4a5(0x1e2)](_0x591fba),_0x5a30f7=this['getValue'](_0x38ef48['id']);return _0xea2e53(_0x5a30f7);}['setLinkedRecordIds'](_0x2058ad,_0x12a689){const _0x51eca2=_0x3b2f37;let _0x34137e=this[_0x51eca2(0x1e2)](_0x2058ad),_0x754e8a=_0x44d49b(_0x12a689),_0x1adb1b=_0x57c749(this[_0x51eca2(0x10d)][_0x51eca2(0x10a)]()['getSnapshot'](),_0x34137e,_0x754e8a);if(!_0x1adb1b[_0x51eca2(0x113)])throw Error(_0x1adb1b['reason']??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x51eca2(0x121)][_0x51eca2(0x17e)](_0x1b0f5c['id'],{'unitId':this[_0x51eca2(0x10d)]['getId'](),'tableId':this[_0x51eca2(0xe8)][_0x51eca2(0x8d)](),'recordId':this['_recordId'],'fieldId':_0x2058ad,'value':_0x754e8a,'source':_0x4d5524[_0x51eca2(0xce)]});}[_0x3b2f37(0xaa)](_0x19d0fd,_0x48fc1c){const _0x5cedfa=_0x3b2f37;let _0x1d3a5f=this['_getRecordLinkField'](_0x19d0fd),_0x316542=_0x2305fd(_0x1d3a5f);if(!_0x316542)throw Error(_0x5cedfa(0x1bb)+_0x19d0fd+_0x5cedfa(0x162));let _0x3984cc=this[_0x5cedfa(0x178)](_0x19d0fd);return _0x316542[_0x5cedfa(0x171)]&&_0x3984cc[_0x5cedfa(0x117)](_0x48fc1c)?!0x0:this[_0x5cedfa(0x1db)](_0x19d0fd,_0x316542[_0x5cedfa(0x171)]?[..._0x3984cc,_0x48fc1c]:[_0x48fc1c]);}[_0x3b2f37(0x1b6)](_0x3e42df,_0x2f07f4){const _0x54b057=_0x3b2f37;let _0x3a89b1=this[_0x54b057(0x178)](_0x3e42df);return!_0x3a89b1['includes'](_0x2f07f4)||this[_0x54b057(0x1db)](_0x3e42df,_0x3a89b1['filter'](_0x518f54=>_0x518f54!==_0x2f07f4));}[_0x3b2f37(0x16c)](_0x2403e5){const _0x3d22a6=_0x3b2f37;let _0x4103b0=this[_0x3d22a6(0x175)](_0x2403e5)[_0x3d22a6(0x15b)][_0x3d22a6(0x167)](this[_0x3d22a6(0x1b3)])??null;return _0x4103b0?this[_0x3d22a6(0xe8)][_0x3d22a6(0x189)](_0x4103b0):null;}[_0x3b2f37(0x145)](_0x5c163a){const _0x2971bf=_0x3b2f37;return(this['_getHierarchyIndex'](_0x5c163a)['childrenByParentId']['get'](this[_0x2971bf(0x1b3)])??[])[_0x2971bf(0x13e)](_0x2ace87=>{const _0x559125=_0x2971bf;let _0x54b666=this[_0x559125(0xe8)][_0x559125(0x189)](_0x2ace87);return _0x54b666?[_0x54b666]:[];});}[_0x3b2f37(0x12f)](_0xc4b12c){const _0x26a395=_0x3b2f37;let _0x2fad49=this[_0x26a395(0x175)](_0xc4b12c),_0xee1dd2=[],_0x1ac411=_0x2fad49[_0x26a395(0x15b)][_0x26a395(0x167)](this[_0x26a395(0x1b3)])??null;for(;_0x1ac411;){let _0x1d98af=this[_0x26a395(0xe8)][_0x26a395(0x189)](_0x1ac411);_0x1d98af&&_0xee1dd2['push'](_0x1d98af),_0x1ac411=_0x2fad49[_0x26a395(0x15b)]['get'](_0x1ac411)??null;}return _0xee1dd2;}['getDescendants'](_0x3c95c4){const _0x31ceb5=_0x3b2f37;let _0x4c3f73=this[_0x31ceb5(0x175)](_0x3c95c4),_0x2cc948=_0x4c3f73[_0x31ceb5(0x116)][_0x31ceb5(0x83)](this[_0x31ceb5(0x1b3)]),_0xbcbe4b=_0x4c3f73['subtreeHeightByRecordId']['has'](this[_0x31ceb5(0x1b3)])?this[_0x31ceb5(0x17f)](_0x4c3f73['childrenByParentId'],this[_0x31ceb5(0x1b3)]):[];return _0x2cc948<0x0?[]:_0xbcbe4b[_0x31ceb5(0x13e)](_0xfb2a06=>{const _0x345138=_0x31ceb5;let _0x5c7fe1=this[_0x345138(0xe8)][_0x345138(0x189)](_0xfb2a06);return _0x5c7fe1?[_0x5c7fe1]:[];});}[_0x3b2f37(0x188)](_0x4081c0,_0x914a1f,_0x14049e){const _0x9836=_0x3b2f37;return this[_0x9836(0x121)][_0x9836(0x17e)](_0xd3c5c2['id'],{'unitId':this[_0x9836(0x10d)]['getId'](),'tableId':this[_0x9836(0xe8)][_0x9836(0x8d)](),'fieldId':_0x4081c0,'recordId':this['_recordId'],'parentRecordId':_0x914a1f,'orderKey':_0x14049e,'source':_0x4d5524['Facade']});}[_0x3b2f37(0xf6)](_0x3a013a,_0x103123,_0x83cd22='id',_0x3c73db){const _0x231076=_0x3b2f37;let _0x1e27be=this[_0x231076(0xe8)]['getTable'](),_0x3d756c=Date[_0x231076(0x17a)](),_0x22aec7={..._0x3c73db,'id':_0x2ea005(0x6),'values':H(_0x1e27be,_0x103123,_0x83cd22),'orderKey':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xcd)])||''+_0x3d756c,'createdAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0xef)])||_0x3d756c,'updatedAt':(_0x3c73db==null?void 0x0:_0x3c73db[_0x231076(0x82)])||_0x3d756c};if(!this[_0x231076(0x121)][_0x231076(0x17e)](_0x2a209d['id'],{'unitId':this[_0x231076(0x10d)]['getId'](),'tableId':this['_table'][_0x231076(0x8d)](),'fieldId':_0x3a013a,'parentRecordId':this['_recordId'],'record':_0x22aec7,'source':_0x4d5524[_0x231076(0xce)]}))throw Error(_0x231076(0xc4)+this[_0x231076(0x1b3)]+'\x22.');return this['_injector'][_0x231076(0xdb)](J,this['_base'],this['_table'],_0x22aec7['id'],this[_0x231076(0x1a6)]);}[_0x3b2f37(0x175)](_0x47a5a9){const _0xd9f527=_0x3b2f37;return _0xfa6b82(this[_0xd9f527(0xe8)]['getTable'](),_0x47a5a9);}['_collectDescendantIds'](_0x4fdb25,_0x39b851){let _0x38545c=[],_0x428158=_0x51eb19=>{const _0x468189=_0x194d;for(let _0x2119df of _0x4fdb25[_0x468189(0x167)](_0x51eb19)??[])_0x38545c[_0x468189(0xe4)](_0x2119df),_0x428158(_0x2119df);};return _0x428158(_0x39b851),_0x38545c;}['_getRecord'](){const _0x311da9=_0x3b2f37;let _0x17908a=this[_0x311da9(0xe8)][_0x311da9(0xc2)]()[_0x311da9(0x193)][this['_recordId']];if(!_0x17908a)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x311da9(0x1b3)]+_0x311da9(0x102));return _0x17908a;}[_0x3b2f37(0x1e2)](_0x16a625){const _0x47b484=_0x3b2f37;let _0x182b8f=this[_0x47b484(0xe8)]['getTable']()[_0x47b484(0xb4)][_0x16a625];if(!_0x182b8f||_0x182b8f[_0x47b484(0xa2)]!==_0x268b7f['RecordLink'])throw Error(_0x47b484(0xb9)+_0x16a625+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x182b8f;}['_getAttachmentField'](_0x3da0ef){const _0x453f34=_0x3b2f37;let _0x16f380=this[_0x453f34(0xe8)][_0x453f34(0xc2)]()[_0x453f34(0xb4)][_0x3da0ef];if(!_0x16f380||_0x16f380[_0x453f34(0xa2)]!==_0x268b7f[_0x453f34(0x1d2)])throw Error(_0x453f34(0xb9)+_0x3da0ef+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x16f380;}};Y=J=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49)],Y);function gt(_0xdd1114){const _0x362fd8=_0x3b2f37;return!!(_0xdd1114&&typeof _0xdd1114=='object'&&'id'in _0xdd1114&&typeof _0xdd1114['id']==_0x362fd8(0x12c)&&'name'in _0xdd1114&&typeof _0xdd1114[_0x362fd8(0x1c2)]==_0x362fd8(0x12c));}function _t(_0x355790,_0x13c1ac,_0x439623){const _0x853e03=_0x3b2f37;if(!gt(_0x355790))throw Error(_0x853e03(0xf1)+_0x439623+'\x20in\x20field\x20\x22'+_0x13c1ac+_0x853e03(0x11c));return{..._0x355790};}let X=class{constructor(_0x586c39,_0x137759,_0x510005,_0x3469ce,_0x43a171,_0x5b1692,_0x4d37fc){const _0x1bf4c4=_0x3b2f37;this[_0x1bf4c4(0x10d)]=_0x586c39,this[_0x1bf4c4(0xe8)]=_0x137759,this[_0x1bf4c4(0x1d8)]=_0x510005,this[_0x1bf4c4(0x1a6)]=_0x3469ce,this[_0x1bf4c4(0x121)]=_0x43a171,this['_permissionService']=_0x5b1692,this['_projectionService']=_0x4d37fc;}[_0x3b2f37(0x8d)](){const _0x5369a=_0x3b2f37;return this[_0x5369a(0x1d8)];}[_0x3b2f37(0x1b1)](){const _0xe8cd22=_0x3b2f37;let _0x93c607=this[_0xe8cd22(0xe8)]['getId']();return new L(this[_0xe8cd22(0x10d)][_0xe8cd22(0x8d)](),_0x7102f(_0x93c607,this[_0xe8cd22(0x1d8)]),[_0x1a5f5e(_0x93c607)],this[_0xe8cd22(0x121)],this[_0xe8cd22(0x199)]);}[_0x3b2f37(0x19f)](){const _0x57ac0e=_0x3b2f37;return this[_0x57ac0e(0x1be)]();}['getName'](){const _0x54308a=_0x3b2f37;return this[_0x54308a(0x1be)]()[_0x54308a(0x1c2)];}['getType'](){return this['_getView']()['type'];}[_0x3b2f37(0x110)](_0x1ab4f9){const _0x9c7f89=_0x3b2f37;return this[_0x9c7f89(0x121)][_0x9c7f89(0x17e)](_0xaefd70['id'],{'unitId':this[_0x9c7f89(0x10d)][_0x9c7f89(0x8d)](),'tableId':this[_0x9c7f89(0xe8)][_0x9c7f89(0x8d)](),'viewId':this['_viewId'],'name':_0x1ab4f9});}[_0x3b2f37(0x14b)](){const _0xd37658=_0x3b2f37;let _0x22e03f=this['getType'](),_0x29856c=this[_0xd37658(0x1be)]()[_0xd37658(0x1d7)];switch(_0x22e03f){case _0x5b008e['Grid']:return _0x29856c;case _0x5b008e[_0xd37658(0x18e)]:return _0x29856c;case _0x5b008e[_0xd37658(0x161)]:return _0x29856c;case _0x5b008e['Gantt']:return _0x29856c;case _0x5b008e[_0xd37658(0xb0)]:return _0x29856c;default:return _0x29856c;}}[_0x3b2f37(0x109)](_0x25ee68){const _0x32c56a=_0x3b2f37;return this[_0x32c56a(0x121)]['syncExecuteCommand'](_0x45a334['id'],{'unitId':this[_0x32c56a(0x10d)]['getId'](),'tableId':this['_table'][_0x32c56a(0x8d)](),'viewId':this[_0x32c56a(0x1d8)],'patch':_0x25ee68});}[_0x3b2f37(0x1d1)](){const _0x1aa1a8=_0x3b2f37;var _0x534d93;return _0x36fd3d[_0x1aa1a8(0xc8)](((_0x534d93=this[_0x1aa1a8(0x1be)]()['config'][_0x1aa1a8(0x1d4)])==null?void 0x0:_0x534d93[_0x1aa1a8(0x15e)])??[]);}[_0x3b2f37(0x1ca)](_0x3e65a9){const _0x6ed120=_0x3b2f37;return this[_0x6ed120(0x121)][_0x6ed120(0x17e)](_0x4b486e['id'],{'unitId':this[_0x6ed120(0x10d)][_0x6ed120(0x8d)](),'tableId':this[_0x6ed120(0xe8)][_0x6ed120(0x8d)](),'viewId':this[_0x6ed120(0x1d8)],'type':_0x510c3e[_0x6ed120(0x1cb)],'rules':_0x3e65a9});}[_0x3b2f37(0xeb)](_0x567a92){const _0x2d7600=_0x3b2f37;return this['_commandService'][_0x2d7600(0x17e)](_0x4b486e['id'],{'unitId':this[_0x2d7600(0x10d)][_0x2d7600(0x8d)](),'tableId':this[_0x2d7600(0xe8)][_0x2d7600(0x8d)](),'viewId':this[_0x2d7600(0x1d8)],'type':_0x510c3e[_0x2d7600(0x143)],'rule':_0x567a92});}[_0x3b2f37(0x1de)](_0x531b30){const _0x5539b3=_0x3b2f37;return this[_0x5539b3(0x121)]['syncExecuteCommand'](_0x4b486e['id'],{'unitId':this[_0x5539b3(0x10d)][_0x5539b3(0x8d)](),'tableId':this[_0x5539b3(0xe8)]['getId'](),'viewId':this[_0x5539b3(0x1d8)],'type':_0x510c3e[_0x5539b3(0xd9)],'ruleId':_0x531b30});}[_0x3b2f37(0x1c4)](){const _0x757880=_0x3b2f37;return this[_0x757880(0x121)][_0x757880(0x17e)](_0x4b486e['id'],{'unitId':this[_0x757880(0x10d)]['getId'](),'tableId':this[_0x757880(0xe8)][_0x757880(0x8d)](),'viewId':this['_viewId'],'type':_0x510c3e['Clear']});}[_0x3b2f37(0xf2)](){return this['_getView']()['filter']??null;}[_0x3b2f37(0x1a8)](_0xaf2a33){const _0x20f956=_0x3b2f37;return this[_0x20f956(0x121)][_0x20f956(0x17e)](_0x3943da['id'],{'unitId':this[_0x20f956(0x10d)][_0x20f956(0x8d)](),'tableId':this[_0x20f956(0xe8)]['getId'](),'viewId':this[_0x20f956(0x1d8)],'filter':_0xaf2a33});}[_0x3b2f37(0xb1)](){const _0x262149=_0x3b2f37;return this[_0x262149(0x1be)]()[_0x262149(0x89)]??[];}['setSort'](_0x5e9e2d){const _0x25e7ce=_0x3b2f37;return this[_0x25e7ce(0x121)][_0x25e7ce(0x17e)](_0x388049['id'],{'unitId':this['_base'][_0x25e7ce(0x8d)](),'tableId':this[_0x25e7ce(0xe8)][_0x25e7ce(0x8d)](),'viewId':this['_viewId'],'sort':_0x5e9e2d});}[_0x3b2f37(0x18b)](){const _0x58a5bd=_0x3b2f37;return this[_0x58a5bd(0x1be)]()[_0x58a5bd(0x10b)]??[];}[_0x3b2f37(0x105)](_0x1583b9){const _0x5031ca=_0x3b2f37;return this[_0x5031ca(0x121)][_0x5031ca(0x17e)](_0x4a854f['id'],{'unitId':this[_0x5031ca(0x10d)]['getId'](),'tableId':this[_0x5031ca(0xe8)][_0x5031ca(0x8d)](),'viewId':this[_0x5031ca(0x1d8)],'group':_0x1583b9});}[_0x3b2f37(0x94)](_0x4ae7f8){const _0x549459=_0x3b2f37;var _0x497b86;return V(this['_table']['getTable']()['fields'][_0x4ae7f8])?((_0x497b86=this[_0x549459(0x1be)]()[_0x549459(0x1b7)])==null?void 0x0:_0x497b86[_0x4ae7f8])??{}:{};}[_0x3b2f37(0xbd)](){const _0x3d629a=_0x3b2f37;let _0x246d12=this[_0x3d629a(0xe8)][_0x3d629a(0xc2)](),_0xe9617=this[_0x3d629a(0x1be)]();return(_0xe9617[_0x3d629a(0xfc)]??_0x246d12[_0x3d629a(0xfc)])[_0x3d629a(0x120)](_0x5b2219=>{const _0xa4cfd4=_0x3d629a;var _0x57a0a6;let _0x8ce5a7=_0x246d12[_0xa4cfd4(0xb4)][_0x5b2219];return V(_0x8ce5a7)&&!((_0x57a0a6=_0xe9617['fieldSettings'])!=null&&(_0x57a0a6=_0x57a0a6[_0x5b2219])!=null&&_0x57a0a6[_0xa4cfd4(0xa5)]);})[_0x3d629a(0x1c6)](_0x68606=>this[_0x3d629a(0x1a6)][_0x3d629a(0xdb)](B,this['_base'],this[_0x3d629a(0xe8)],_0x68606));}[_0x3b2f37(0x185)](_0x5b7c02,_0x5d06d1){const _0x2448f9=_0x3b2f37;return V(this[_0x2448f9(0xe8)][_0x2448f9(0xc2)]()['fields'][_0x5b7c02])?this[_0x2448f9(0x121)][_0x2448f9(0x17e)](_0x1b428a['id'],{'unitId':this[_0x2448f9(0x10d)][_0x2448f9(0x8d)](),'tableId':this[_0x2448f9(0xe8)]['getId'](),'viewId':this[_0x2448f9(0x1d8)],'fieldId':_0x5b7c02,'visible':_0x5d06d1}):!0x1;}[_0x3b2f37(0x107)](_0x449af1,_0x4d80dd){const _0x5d801a=_0x3b2f37;return V(this[_0x5d801a(0xe8)]['getTable']()['fields'][_0x449af1])?this[_0x5d801a(0x121)][_0x5d801a(0x17e)](_0x3596a1['id'],{'unitId':this['_base'][_0x5d801a(0x8d)](),'tableId':this[_0x5d801a(0xe8)][_0x5d801a(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x449af1,'width':_0x4d80dd}):!0x1;}[_0x3b2f37(0x133)](_0x251c7f,_0x57c1b1){const _0x47500f=_0x3b2f37;let _0x4e9f86=this['_table'][_0x47500f(0xc2)](),_0x76285f=_0x57c1b1[_0x47500f(0xf7)]??_0x57c1b1[_0x47500f(0xd0)];return!V(_0x4e9f86[_0x47500f(0xb4)][_0x251c7f])||!_0x76285f||!V(_0x4e9f86[_0x47500f(0xb4)][_0x76285f])?!0x1:this['_commandService'][_0x47500f(0x17e)](_0x42af3c['id'],{'unitId':this[_0x47500f(0x10d)][_0x47500f(0x8d)](),'tableId':this['_table'][_0x47500f(0x8d)](),'viewId':this['_viewId'],'fieldId':_0x251c7f,'target':_0x57c1b1});}['move'](_0x2485af){const _0x294858=_0x3b2f37;return this[_0x294858(0x121)][_0x294858(0x17e)](_0x37de2f['id'],{'unitId':this[_0x294858(0x10d)]['getId'](),'tableId':this['_table'][_0x294858(0x8d)](),'viewId':this[_0x294858(0x1d8)],'target':_0x2485af});}[_0x3b2f37(0xc6)](){const _0x5b071b=_0x3b2f37;return this[_0x5b071b(0x121)][_0x5b071b(0x17e)](_0x18125d['id'],{'unitId':this[_0x5b071b(0x10d)]['getId'](),'tableId':this[_0x5b071b(0xe8)][_0x5b071b(0x8d)](),'viewId':this['_viewId']});}['getProjection'](){const _0x3eba86=_0x3b2f37;return this['_projectionService'][_0x3eba86(0xe0)](this[_0x3eba86(0x10d)][_0x3eba86(0x10a)]()['getSnapshot'](),this[_0x3eba86(0xe8)][_0x3eba86(0x8d)](),this[_0x3eba86(0x1d8)]);}[_0x3b2f37(0x1be)](){const _0x545b22=_0x3b2f37;let _0x201139=this[_0x545b22(0xe8)][_0x545b22(0xc2)]()[_0x545b22(0xd3)][this[_0x545b22(0x1d8)]];if(!_0x201139)throw Error(_0x545b22(0x1e3)+this[_0x545b22(0x1d8)]+_0x545b22(0x102));return _0x201139;}};X=z([R(0x4,_0x3fc5b1),R(0x5,_0x376f49),R(0x6,_0x1cb7d5)],X);let Z=class{constructor(_0x1b941a,_0x1ef31e,_0x355cd2,_0x4cbc24,_0x41d188,_0x4844b5){const _0x2d467a=_0x3b2f37;this[_0x2d467a(0x10d)]=_0x1b941a,this[_0x2d467a(0xe2)]=_0x1ef31e,this[_0x2d467a(0x1a6)]=_0x355cd2,this[_0x2d467a(0x121)]=_0x4cbc24,this[_0x2d467a(0x199)]=_0x41d188,this['_projectionService']=_0x4844b5;}['getBase'](){const _0x2ad641=_0x3b2f37;return this['_base'][_0x2ad641(0x10a)]();}[_0x3b2f37(0xc2)](){return this['_getTable']();}['getId'](){return this['_tableId'];}[_0x3b2f37(0x1b1)](){const _0xd75365=_0x3b2f37;return new L(this[_0xd75365(0x10a)]()['getUnitId'](),_0x1a5f5e(this[_0xd75365(0xe2)]),[],this['_commandService'],this[_0xd75365(0x199)]);}['getHierarchyFieldId'](){const _0x17614c=_0x3b2f37;return _0x3bde75(this[_0x17614c(0xf0)]());}[_0x3b2f37(0x1a3)](_0x1fba12){const _0x49c692=_0x3b2f37;return this['_commandService'][_0x49c692(0x17e)](_0x273e9f['id'],{'unitId':this[_0x49c692(0x10d)]['getId'](),'tableId':this['_tableId'],'fieldId':_0x1fba12});}['getName'](){const _0x1b9db2=_0x3b2f37;return this[_0x1b9db2(0xf0)]()['name'];}[_0x3b2f37(0xcc)](){const _0x3e4ed5=_0x3b2f37;let _0x56b81c=this['_base']['getBase']()[_0x3e4ed5(0xb5)]();return _0x31d1af(this[_0x3e4ed5(0xf0)](),_0x56b81c);}['setName'](_0x264d91){const _0x55dbed=_0x3b2f37;let _0x2b24f3=_0x4a1245(this[_0x55dbed(0x10d)]['getBase']()[_0x55dbed(0xb5)](),_0x264d91,this[_0x55dbed(0xe2)]);if(!_0x2b24f3[_0x55dbed(0x113)])throw Error(_0x55dbed(0x190)+_0x264d91+_0x55dbed(0x118)+_0x2d6c44+'\x20'+_0x2b24f3[_0x55dbed(0xe7)]);return this[_0x55dbed(0x121)][_0x55dbed(0x17e)](_0x1e32c6['id'],{'unitId':this['_base'][_0x55dbed(0x8d)](),'tableId':this[_0x55dbed(0xe2)],'name':_0x264d91});}['search'](_0x1668b6,_0x165a91){const _0x3708cf=_0x3b2f37;let _0xc52ed=this[_0x3708cf(0x10d)][_0x3708cf(0x10a)]()[_0x3708cf(0xb5)](),_0x1d150d=this[_0x3708cf(0xf0)]();if(_0x165a91){let _0x3dfb92=this[_0x3708cf(0x152)][_0x3708cf(0xe0)](_0xc52ed,this[_0x3708cf(0xe2)],_0x165a91),_0x3e3894=_0x1d150d[_0x3708cf(0xd3)][_0x165a91],_0x5cc989=_0x1668b6[_0x3708cf(0xe6)]??Tt(_0x1d150d,_0x3e3894,_0x3dfb92),_0x8a6a7f=_0x3708cf(0x184)in _0x3dfb92&&Array['isArray'](_0x3dfb92[_0x3708cf(0x184)])?_0x3dfb92[_0x3708cf(0x184)]:[];return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x5cc989,'rows':_0x8a6a7f});}let _0x8a1e86=(_0x1d150d['recordOrder']?_0x1d150d[_0x3708cf(0x96)]['map'](_0x2a165d=>_0x1d150d['records'][_0x2a165d]):Object['values'](_0x1d150d[_0x3708cf(0x193)])[_0x3708cf(0x89)]((_0x2a1fc1,_0x3677d6)=>_0x2a1fc1['orderKey'][_0x3708cf(0x1e4)](_0x3677d6[_0x3708cf(0xcd)])))[_0x3708cf(0x120)](_0x4facf7=>_0x4facf7)[_0x3708cf(0x1c6)](_0x12c71d=>({'recordId':_0x12c71d['id'],'values':_0x12c71d[_0x3708cf(0x1bc)]})),_0x422478=_0x1668b6[_0x3708cf(0xe6)]??_0x1d150d[_0x3708cf(0xfc)]['filter'](_0x197e63=>V(_0x1d150d[_0x3708cf(0xb4)][_0x197e63]));return _0x5b0210({..._0x1668b6,'table':_0x1d150d,'fieldIds':_0x422478,'rows':_0x8a1e86});}[_0x3b2f37(0x1c9)](){const _0x9f5570=_0x3b2f37;return this[_0x9f5570(0xf0)]()[_0x9f5570(0x92)];}['getFields'](){const _0x2fc0fb=_0x3b2f37;let _0x1385e6=this[_0x2fc0fb(0xf0)]();return _0x1385e6[_0x2fc0fb(0xfc)][_0x2fc0fb(0x1c6)](_0x5e699a=>_0x1385e6[_0x2fc0fb(0xb4)][_0x5e699a])[_0x2fc0fb(0x120)](V)['map'](_0x2a33b1=>this[_0x2fc0fb(0x1a6)][_0x2fc0fb(0xdb)](B,this[_0x2fc0fb(0x10d)],this,_0x2a33b1['id']));}[_0x3b2f37(0x196)](_0x1289ca){const _0x4282a1=_0x3b2f37;let _0x4f18f6=this['_getTable']()['fields'][_0x1289ca];return V(_0x4f18f6)?this['_injector'][_0x4282a1(0xdb)](B,this[_0x4282a1(0x10d)],this,_0x4f18f6['id']):null;}[_0x3b2f37(0x85)](_0x88fa7d){const _0x472886=_0x3b2f37;let _0x4542e5=this[_0x472886(0xf0)]()[_0x472886(0xb4)],_0x377564=Object[_0x472886(0x1bc)](_0x4542e5)[_0x472886(0x179)](_0x20583c=>V(_0x20583c)&&_0x20583c['name']===_0x88fa7d);return _0x377564?this[_0x472886(0x1a6)]['createInstance'](B,this[_0x472886(0x10d)],this,_0x377564['id']):null;}[_0x3b2f37(0x15f)](){const _0x2a5bd5=_0x3b2f37;let _0x128a06=this[_0x2a5bd5(0xf0)]()[_0x2a5bd5(0x92)];return this[_0x2a5bd5(0x1a6)][_0x2a5bd5(0xdb)](B,this[_0x2a5bd5(0x10d)],this,_0x128a06);}[_0x3b2f37(0x183)](_0x264df1,_0x584909,_0x1dc3bc){const _0x689baa=_0x3b2f37;var _0x1871b7,_0x20f3e2;if(!Object['values'](_0x268b7f)[_0x689baa(0x13b)](_0xdabea1=>_0xdabea1===_0x584909))throw Error(_0x689baa(0x163)+String(_0x584909)+'\x22.');if(_0x584909===_0x268b7f[_0x689baa(0xae)]&&this['_prepareFormulaFieldReferences'](_0x264df1,_0x1dc3bc),_0x584909===_0x268b7f[_0x689baa(0xc1)]&&(typeof(_0x1dc3bc==null||(_0x1871b7=_0x1dc3bc[_0x689baa(0x19c)])==null||(_0x1871b7=_0x1871b7['config'])==null?void 0x0:_0x1871b7[_0x689baa(0x149)])!=_0x689baa(0x12c)||typeof _0x1dc3bc[_0x689baa(0x19c)][_0x689baa(0x1d7)][_0x689baa(0x171)]!=_0x689baa(0x1cf)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x22e964={..._0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x19c)],'id':_0x2ea005(0x6),'name':_0x264df1,'type':_0x584909,'config':(_0x1dc3bc==null||(_0x20f3e2=_0x1dc3bc['field'])==null?void 0x0:_0x20f3e2[_0x689baa(0x1d7)])??{}};if(!this[_0x689baa(0x121)][_0x689baa(0x17e)](_0x174ba5['id'],{'unitId':this[_0x689baa(0x10d)][_0x689baa(0x8d)](),'tableId':this[_0x689baa(0xe2)],'field':_0x22e964,'index':_0x1dc3bc==null?void 0x0:_0x1dc3bc[_0x689baa(0x172)]}))throw Error(_0x689baa(0x14e)+_0x264df1+'\x22');return this[_0x689baa(0x1a6)][_0x689baa(0xdb)](B,this[_0x689baa(0x10d)],this,_0x22e964['id']);}[_0x3b2f37(0xf8)](_0x694acf,_0x1ffd98){const _0x4fc1e4=_0x3b2f37;var _0x83fd86;if(!_0x1ffd98||!(_0x4fc1e4(0x16b)in _0x1ffd98)||!Array['isArray'](_0x1ffd98[_0x4fc1e4(0x16b)]))throw Error(_0x4fc1e4(0x140));let _0x444b66=this[_0x4fc1e4(0x121)][_0x4fc1e4(0x17e)](_0x25826c['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'tableId':this['_tableId'],'formula':String(((_0x83fd86=_0x1ffd98[_0x4fc1e4(0x19c)])==null||(_0x83fd86=_0x83fd86[_0x4fc1e4(0x1d7)])==null?void 0x0:_0x83fd86['formula'])??'')});if(!_0x444b66['valid'])throw Error(_0x444b66[_0x4fc1e4(0xe7)]??_0x4fc1e4(0x12e));if(_0x1ffd98[_0x4fc1e4(0x16b)]['length']>0x0&&!this[_0x4fc1e4(0x121)]['syncExecuteCommand'](_0x5d1890['id'],{'unitId':this[_0x4fc1e4(0x10d)][_0x4fc1e4(0x8d)](),'references':_0x1ffd98[_0x4fc1e4(0x16b)]}))throw Error(_0x4fc1e4(0xff)+_0x694acf+'\x22');}[_0x3b2f37(0x8a)](){const _0x4c8ae1=_0x3b2f37;return this[_0x4c8ae1(0x90)]()[_0x4c8ae1(0x1c6)](_0x5e685e=>this[_0x4c8ae1(0x1a6)]['createInstance'](Y,this[_0x4c8ae1(0x10d)],this,_0x5e685e,this['_injector']));}[_0x3b2f37(0x189)](_0x453365){const _0x2fb2aa=_0x3b2f37;return this[_0x2fb2aa(0xf0)]()[_0x2fb2aa(0x193)][_0x453365]?this[_0x2fb2aa(0x1a6)][_0x2fb2aa(0xdb)](Y,this[_0x2fb2aa(0x10d)],this,_0x453365,this[_0x2fb2aa(0x1a6)]):null;}[_0x3b2f37(0x18f)](_0xe36e80={}){const _0x51e277=_0x3b2f37;let _0x9102bc=this['_getTable'](),_0x324015=this[_0x51e277(0x90)](_0xe36e80),_0x3ae0b6=Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x16a)]??0x0),_0x488ad0=_0xe36e80[_0x51e277(0x165)]==null?null:Math[_0x51e277(0xc9)](0x0,_0xe36e80[_0x51e277(0x165)]),_0x5198bd=yt(_0x324015['map'](_0x2a4ae9=>_0x9102bc[_0x51e277(0x193)][_0x2a4ae9])[_0x51e277(0x120)](_0x296dec=>xt(_0x296dec,_0x9102bc,_0xe36e80[_0x51e277(0x120)])),_0x9102bc,_0xe36e80['sort']);return{'records':vt(_0x5198bd,_0xe36e80)['map'](_0x1c6552=>this[_0x51e277(0x1a6)][_0x51e277(0xdb)](Y,this[_0x51e277(0x10d)],this,_0x1c6552['id'],this[_0x51e277(0x1a6)])),'total':_0x5198bd['length'],'offset':_0x3ae0b6,'limit':_0x488ad0,'hasMore':_0x488ad0!=null&&_0x3ae0b6+_0x488ad0<_0x5198bd['length']};}['addRecord'](_0x19bab,_0x2637dd='id',_0x524616){const _0x27565e=_0x3b2f37;let _0x3ba4f7=this[_0x27565e(0xf0)](),_0x5d2ab4=Date['now'](),_0x478eb6={..._0x524616,'id':_0x2ea005(0x6),'values':H(_0x3ba4f7,_0x19bab,_0x2637dd),'orderKey':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xcd)])||''+_0x5d2ab4,'createdAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0xef)])||_0x5d2ab4,'updatedAt':(_0x524616==null?void 0x0:_0x524616[_0x27565e(0x82)])||_0x5d2ab4};if(!this[_0x27565e(0x121)][_0x27565e(0x17e)](_0x1193c8['id'],{'unitId':this[_0x27565e(0x10d)][_0x27565e(0x8d)](),'tableId':this[_0x27565e(0xe2)],'record':_0x478eb6,'source':_0x4d5524['Facade']}))throw Error(_0x27565e(0x159)+_0x478eb6['id']+'\x22');return this[_0x27565e(0x1a6)][_0x27565e(0xdb)](Y,this[_0x27565e(0x10d)],this,_0x478eb6['id'],this[_0x27565e(0x1a6)]);}[_0x3b2f37(0x103)](_0x2722f2){const _0x37ce7d=_0x3b2f37;if(!_0x2722f2[_0x37ce7d(0x17b)])return[];let _0x2c5f93=this[_0x37ce7d(0xf0)](),_0x47d7f8=Date[_0x37ce7d(0x17a)](),_0x1e3bc2=_0x2722f2['map']((_0xa4f8c7,_0x12f69d)=>{const _0x3e2cc5=_0x37ce7d;var _0x26f5c4,_0x3bc2c1,_0x127232;return{..._0xa4f8c7[_0x3e2cc5(0x9b)],'id':_0x2ea005(0x6),'values':H(_0x2c5f93,_0xa4f8c7[_0x3e2cc5(0x1bc)],_0xa4f8c7[_0x3e2cc5(0x10f)]??'id'),'orderKey':((_0x26f5c4=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x26f5c4[_0x3e2cc5(0xcd)])||''+(_0x47d7f8+_0x12f69d),'createdAt':((_0x3bc2c1=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x3bc2c1[_0x3e2cc5(0xef)])||_0x47d7f8,'updatedAt':((_0x127232=_0xa4f8c7[_0x3e2cc5(0x9b)])==null?void 0x0:_0x127232[_0x3e2cc5(0x82)])||_0x47d7f8};});if(!this[_0x37ce7d(0x121)][_0x37ce7d(0x17e)](_0xcf9f8c['id'],{'unitId':this[_0x37ce7d(0x10d)][_0x37ce7d(0x8d)](),'tableId':this['_tableId'],'records':_0x1e3bc2,'source':_0x4d5524[_0x37ce7d(0xce)]}))throw Error(_0x37ce7d(0x97));return _0x1e3bc2[_0x37ce7d(0x1c6)](_0xbb0a43=>this[_0x37ce7d(0x1a6)][_0x37ce7d(0xdb)](Y,this[_0x37ce7d(0x10d)],this,_0xbb0a43['id'],this[_0x37ce7d(0x1a6)]));}[_0x3b2f37(0x18d)](_0x4668b7){const _0x42ed34=_0x3b2f37;return!_0x4668b7[_0x42ed34(0x17b)]||this['_commandService']['syncExecuteCommand'](_0x5a7920['id'],{'unitId':this[_0x42ed34(0x10d)][_0x42ed34(0x8d)](),'tableId':this[_0x42ed34(0xe2)],'recordIds':_0x4668b7,'source':_0x4d5524[_0x42ed34(0xce)]});}[_0x3b2f37(0x13d)](_0x2c3dbd,_0x25d4de,_0x5944e3=0x1,_0x316243=0x1){const _0x1d1289=_0x3b2f37;return this[_0x1d1289(0x1a6)]['createInstance'](K,this[_0x1d1289(0x10d)],this,{'startRow':_0x2c3dbd,'endRow':_0x2c3dbd+_0x5944e3-0x1,'startColumn':_0x25d4de,'endColumn':_0x25d4de+_0x316243-0x1},this[_0x1d1289(0x1a6)]);}[_0x3b2f37(0xa4)](){const _0x135c64=_0x3b2f37;var _0x45a8fe;let _0x1735a6=_0x81619(this[_0x135c64(0xf0)]()),_0x397185=((_0x45a8fe=_0x1735a6[_0x135c64(0x96)])==null?void 0x0:_0x45a8fe[_0x135c64(0x17b)])??0x0,_0x5ba8f0=_0x1735a6[_0x135c64(0xfc)][_0x135c64(0x120)](_0x14893e=>V(_0x1735a6[_0x135c64(0xb4)][_0x14893e]))[_0x135c64(0x17b)];return this[_0x135c64(0x13d)](0x0,0x0,Math[_0x135c64(0xc9)](_0x397185,0x1),Math[_0x135c64(0xc9)](_0x5ba8f0,0x1));}[_0x3b2f37(0xe9)](){const _0x37d0f7=_0x3b2f37;let _0x33847a=this[_0x37d0f7(0xf0)]();return _0x33847a[_0x37d0f7(0x11f)][_0x37d0f7(0x120)](_0x4a1cb6=>_0x33847a[_0x37d0f7(0xd3)][_0x4a1cb6])[_0x37d0f7(0x1c6)](_0x38e745=>this[_0x37d0f7(0x1a6)][_0x37d0f7(0xdb)](X,this[_0x37d0f7(0x10d)],this,_0x38e745,this[_0x37d0f7(0x1a6)]));}['getViewById'](_0x21b22e){const _0x124f1b=_0x3b2f37;return this['_getTable']()[_0x124f1b(0xd3)][_0x21b22e]?this[_0x124f1b(0x1a6)][_0x124f1b(0xdb)](X,this[_0x124f1b(0x10d)],this,_0x21b22e,this[_0x124f1b(0x1a6)]):null;}[_0x3b2f37(0x8b)](_0x269882){const _0x535037=_0x3b2f37;let _0xa84429=this[_0x535037(0xf0)](),_0x2e325a=Object[_0x535037(0x1bc)](_0xa84429[_0x535037(0xd3)])[_0x535037(0x179)](_0x2a3c3c=>_0x2a3c3c[_0x535037(0x1c2)]===_0x269882);return _0x2e325a?this[_0x535037(0x1a6)]['createInstance'](X,this[_0x535037(0x10d)],this,_0x2e325a['id'],this[_0x535037(0x1a6)]):null;}[_0x3b2f37(0x141)](_0x379997,_0x4255b6,_0x412d05){const _0xc54d8f=_0x3b2f37;var _0x55dba3,_0x372e00,_0x39b823,_0x5cd4cd;let _0x5a371a=this[_0xc54d8f(0xf0)](),_0x49a8c7=(_0x412d05==null||(_0x55dba3=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x55dba3['fieldOrder'])??_0x5a371a[_0xc54d8f(0xfc)],_0x4e01c9=[_0x3cb4f6,..._0x49a8c7['filter'](_0x3cd3ab=>V(_0x5a371a[_0xc54d8f(0xb4)][_0x3cd3ab]))],_0x4741f6={..._0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0xfb)],'id':_0x2ea005(0x6),'name':_0x379997,'type':_0x4255b6,'tableId':this[_0xc54d8f(0xe2)],'config':(_0x412d05==null||(_0x372e00=_0x412d05['view'])==null?void 0x0:_0x372e00[_0xc54d8f(0x1d7)])??{},'fieldOrder':_0x4e01c9,'fieldSettings':{..._0x412d05==null||(_0x39b823=_0x412d05[_0xc54d8f(0xfb)])==null?void 0x0:_0x39b823['fieldSettings'],[_0x3cb4f6]:{..._0x412d05==null||(_0x5cd4cd=_0x412d05['view'])==null||(_0x5cd4cd=_0x5cd4cd['fieldSettings'])==null?void 0x0:_0x5cd4cd[_0x3cb4f6],'hidden':!0x0}}};if(!this['_commandService'][_0xc54d8f(0x17e)](_0x1adb6d['id'],{'unitId':this[_0xc54d8f(0x10d)]['getId'](),'tableId':this[_0xc54d8f(0xe2)],'view':_0x4741f6,'index':_0x412d05==null?void 0x0:_0x412d05[_0xc54d8f(0x172)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x379997+'\x22');return this[_0xc54d8f(0x1a6)][_0xc54d8f(0xdb)](X,this['_base'],this,_0x4741f6['id'],this[_0xc54d8f(0x1a6)]);}[_0x3b2f37(0xed)](){const _0x546204=_0x3b2f37;let _0xb042b6=this[_0x546204(0xf0)](),_0x305e83=_0xb042b6[_0x546204(0xfc)][_0x546204(0x120)](_0x5eb66b=>V(_0xb042b6[_0x546204(0xb4)][_0x5eb66b])),_0x35fe98=_0xb042b6[_0x546204(0x11f)][_0x546204(0x120)](_0x50f46b=>_0xb042b6[_0x546204(0xd3)][_0x50f46b]);return{'id':_0xb042b6['id'],'name':_0xb042b6[_0x546204(0x1c2)],'formulaName':this[_0x546204(0xcc)](),'primaryFieldId':_0xb042b6[_0x546204(0x92)],'fieldIds':_0x305e83,'viewIds':_0x35fe98,'recordCount':this['_resolveRecordIds']()['length'],'fields':_0x305e83[_0x546204(0x1c6)](_0x2bc53e=>{const _0x403ffe=_0x546204;let _0x21cba2=_0xb042b6[_0x403ffe(0xb4)][_0x2bc53e];return{'id':_0x21cba2['id'],'name':_0x21cba2[_0x403ffe(0x1c2)],'type':_0x21cba2[_0x403ffe(0xa2)],'config':_0x21cba2[_0x403ffe(0x1d7)],'readonly':_0x21cba2[_0x403ffe(0x147)],'description':_0x21cba2[_0x403ffe(0xd2)]};}),'views':_0x35fe98[_0x546204(0x1c6)](_0x2bd7d8=>{const _0x42b3b0=_0x546204;let _0x4f700a=_0xb042b6['views'][_0x2bd7d8];return{'id':_0x4f700a['id'],'name':_0x4f700a[_0x42b3b0(0x1c2)],'type':_0x4f700a[_0x42b3b0(0xa2)]};})};}[_0x3b2f37(0xf0)](){const _0xf35cb=_0x3b2f37;let _0x511aa5=this['_base'][_0xf35cb(0x10a)]()[_0xf35cb(0xb5)]()[_0xf35cb(0x1c0)][this[_0xf35cb(0xe2)]];if(!_0x511aa5)throw Error(_0xf35cb(0xc5)+this[_0xf35cb(0xe2)]+_0xf35cb(0x102));return _0x511aa5;}[_0x3b2f37(0x90)](_0x25bd5b={}){const _0x2261e7=_0x3b2f37;let _0x1bfa88=this[_0x2261e7(0x10d)]['getBase']()['getSnapshot'](),_0x1f81a2=this[_0x2261e7(0xf0)]();if(_0x25bd5b['viewId']){let _0x2b3e1a=this[_0x2261e7(0x152)][_0x2261e7(0xe0)](_0x1bfa88,this[_0x2261e7(0xe2)],_0x25bd5b[_0x2261e7(0x11e)]);if(_0x2261e7(0x184)in _0x2b3e1a&&Array[_0x2261e7(0x1ae)](_0x2b3e1a[_0x2261e7(0x184)]))return _0x2b3e1a[_0x2261e7(0x184)][_0x2261e7(0x1c6)](_0x2f766a=>_0x2f766a[_0x2261e7(0x87)]);}return(_0x1f81a2[_0x2261e7(0x96)]?_0x1f81a2['recordOrder'][_0x2261e7(0x1c6)](_0x586135=>_0x1f81a2[_0x2261e7(0x193)][_0x586135]):Object[_0x2261e7(0x1bc)](_0x1f81a2['records'])[_0x2261e7(0x89)]((_0xc7b44d,_0x22eceb)=>_0xc7b44d[_0x2261e7(0xcd)]['localeCompare'](_0x22eceb['orderKey'])))[_0x2261e7(0x120)](_0x5e4380=>_0x5e4380)[_0x2261e7(0x1c6)](_0x3b85a4=>_0x3b85a4['id']);}};Z=z([R(0x3,_0x3fc5b1),R(0x4,_0x376f49),R(0x5,_0x1cb7d5)],Z);function vt(_0x23b60f,_0x1a87ea){const _0xb3cb48=_0x3b2f37;let _0x4132ef=Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x16a)]??0x0);return _0x1a87ea[_0xb3cb48(0x165)]==null?_0x23b60f[_0xb3cb48(0xea)](_0x4132ef):_0x23b60f[_0xb3cb48(0xea)](_0x4132ef,_0x4132ef+Math[_0xb3cb48(0xc9)](0x0,_0x1a87ea[_0xb3cb48(0x165)]));}function yt(_0x54b207,_0x247fe8,_0x382ab9=[]){const _0x43efdd=_0x3b2f37;return _0x382ab9[_0x43efdd(0x17b)]?[..._0x54b207][_0x43efdd(0x89)]((_0x12fbb1,_0x271ff8)=>{const _0x406a20=_0x43efdd;for(let _0x5c6f08 of _0x382ab9){var _0x2f3bb2;let _0x370ddc=_0x5c6f08[_0x406a20(0x1d0)]===_0x23c723[_0x406a20(0x1a4)]?-0x1:0x1,_0x58571f=bt(_0x12fbb1[_0x406a20(0x1bc)][_0x5c6f08[_0x406a20(0x125)]],_0x271ff8[_0x406a20(0x1bc)][_0x5c6f08['fieldId']],(_0x2f3bb2=_0x247fe8[_0x406a20(0xb4)][_0x5c6f08[_0x406a20(0x125)]])==null?void 0x0:_0x2f3bb2[_0x406a20(0xa2)]);if(_0x58571f!==0x0)return _0x58571f*_0x370ddc;}return String(_0x12fbb1[_0x406a20(0xcd)]??_0x12fbb1['id'])[_0x406a20(0x1e4)](String(_0x271ff8['orderKey']??_0x271ff8['id']));}):_0x54b207;}function bt(_0x2ba1d9,_0xfd2fac,_0x36aa1c){const _0x14022e=_0x3b2f37;return _0x2ba1d9==null&&_0xfd2fac==null?0x0:_0x2ba1d9==null?-0x1:_0xfd2fac==null?0x1:typeof _0x2ba1d9=='number'&&typeof _0xfd2fac==_0x14022e(0xab)?_0x2ba1d9-_0xfd2fac:_0x36aa1c===_0x268b7f[_0x14022e(0x11d)]?Number(_0x2ba1d9)-Number(_0xfd2fac):String(_0x2ba1d9)[_0x14022e(0x1e4)](String(_0xfd2fac));}function xt(_0x19f2aa,_0x30c131,_0x4988a4){const _0x13229f=_0x3b2f37;var _0xcd61b3;if(!_0x4988a4||!((_0xcd61b3=_0x4988a4['conditions'])!=null&&_0xcd61b3[_0x13229f(0x17b)]))return!0x0;let {conjunction:_0x34397b=_0x29b07b['OR'],conditions:_0x5b096b}=_0x4988a4;return _0x34397b===_0x29b07b[_0x13229f(0xee)]&&_0x5b096b[_0x13229f(0x17b)]>0x1?_0x5b096b[_0x13229f(0x164)](_0x565573=>St(_0x19f2aa,_0x30c131,_0x565573)):_0x5b096b['some'](_0x2991c3=>St(_0x19f2aa,_0x30c131,_0x2991c3));}function St(_0x5848eb,_0x2d072e,_0x5a762d){const _0x2fc6b2=_0x3b2f37;let _0x3ed4=_0x5848eb['values'][_0x5a762d[_0x2fc6b2(0x125)]],_0x2ff59c=_0x2d072e[_0x2fc6b2(0xb4)][_0x5a762d[_0x2fc6b2(0x125)]];if(Ct(_0x5a762d)){let _0x19a6a8=wt(_0x5a762d)['test'](String(_0x3ed4??''));return _0x5a762d['operator']===_0x2fc6b2(0xba)?_0x19a6a8:!_0x19a6a8;}return!_0x2ff59c||_0x5ec685(_0x3ed4,_0x5a762d[_0x2fc6b2(0xe1)],_0x5a762d[_0x2fc6b2(0x80)],_0x2ff59c);}function Ct(_0x16dac4){const _0x19d762=_0x3b2f37;return _0x16dac4[_0x19d762(0xe1)]===_0x19d762(0xba)||_0x16dac4['operator']===_0x19d762(0x130);}function wt(_0x1b0d81){const _0x2bdba0=_0x3b2f37;let _0x3f95c=String(_0x1b0d81['value']??'');if(_0x3f95c[_0x2bdba0(0x17b)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3f95c,_0x1b0d81[_0x2bdba0(0x1b0)]?void 0x0:'i');}catch(_0x49d2af){throw Error(_0x2bdba0(0x197)+_0x3f95c+'.\x20'+(_0x49d2af instanceof Error?_0x49d2af['message']:String(_0x49d2af)));}}function Tt(_0x1b1b85,_0x39ce55,_0x42617f){const _0x3b5006=_0x3b2f37;if(_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0x9e)&&_0x42617f[_0x3b5006(0xa2)]!==_0x3b5006(0xc7)){var _0x88d1a4;if(_0x42617f[_0x3b5006(0xa2)]===_0x5b008e[_0x3b5006(0x18e)]){var _0x435637;let _0x1dcb1b=[((_0x435637=_0x42617f[_0x3b5006(0xb4)])==null||(_0x435637=_0x435637[0x0])==null?void 0x0:_0x435637['id'])??_0x1b1b85['primaryFieldId'],..._0x42617f[_0x3b5006(0x17d)]??[]];return Array[_0x3b5006(0x1e0)](new Set(_0x1dcb1b[_0x3b5006(0x120)](_0x464f33=>!!_0x1b1b85[_0x3b5006(0xb4)][_0x464f33])));}if((_0x88d1a4=_0x42617f[_0x3b5006(0xb4)])!=null&&_0x88d1a4['length'])return _0x42617f['fields'][_0x3b5006(0x1c6)](_0x20c921=>_0x20c921['id'])[_0x3b5006(0x120)](_0x48a91f=>{const _0x54e19b=_0x3b5006;var _0x45b187;return!(!_0x1b1b85[_0x54e19b(0xb4)][_0x48a91f]||_0x39ce55!=null&&(_0x45b187=_0x39ce55[_0x54e19b(0x1b7)])!=null&&(_0x45b187=_0x45b187[_0x48a91f])!=null&&_0x45b187['hidden']);});}return _0x1b1b85['fieldOrder'][_0x3b5006(0x120)](_0x3e8e1f=>{const _0x2eebf3=_0x3b5006;var _0x2c0f89;return!(!_0x1b1b85['fields'][_0x3e8e1f]||_0x39ce55!=null&&(_0x2c0f89=_0x39ce55[_0x2eebf3(0x1b7)])!=null&&(_0x2c0f89=_0x2c0f89[_0x3e8e1f])!=null&&_0x2c0f89[_0x2eebf3(0xa5)]);});}let Q=class extends _0x30c594['FBase']{constructor(_0x59a945,_0x4b8ca6,_0x47528c,_0x32ddc5,_0x3a1130){const _0x509475=_0x3b2f37;super(),this['_base']=_0x59a945,this[_0x509475(0x1a6)]=_0x4b8ca6,this['_resourceLoaderService']=_0x47528c,this[_0x509475(0x121)]=_0x32ddc5,this[_0x509475(0x199)]=_0x3a1130;}[_0x3b2f37(0x10a)](){const _0x26b40c=_0x3b2f37;return this[_0x26b40c(0x10d)];}[_0x3b2f37(0x8d)](){const _0x564acd=_0x3b2f37;return this[_0x564acd(0x10d)]['getUnitId']();}[_0x3b2f37(0x1b1)](){const _0x6ade66=_0x3b2f37;return new at(this[_0x6ade66(0x8d)](),this['_commandService'],this[_0x6ade66(0x199)]);}['save'](){const _0x1570b7=_0x3b2f37;return this[_0x1570b7(0x124)][_0x1570b7(0x16f)](this[_0x1570b7(0x8d)]())??_0x36fd3d[_0x1570b7(0xc8)](this[_0x1570b7(0x10d)][_0x1570b7(0xb5)]());}[_0x3b2f37(0x19a)](){const _0x1b385b=_0x3b2f37;return this[_0x1b385b(0x10d)][_0x1b385b(0xb5)]()[_0x1b385b(0x1c2)];}['setName'](_0x8a8951){const _0x5c94cd=_0x3b2f37;this[_0x5c94cd(0x121)]['syncExecuteCommand'](_0x8afdd0['id'],{'unitId':this[_0x5c94cd(0x8d)](),'name':_0x8a8951});}[_0x3b2f37(0x1bf)](){const _0x1bd2bc=_0x3b2f37;let _0x151417=this['_base'][_0x1bd2bc(0xb5)]();return _0x151417[_0x1bd2bc(0xb8)][_0x1bd2bc(0x1c6)](_0x398709=>_0x151417[_0x1bd2bc(0x1c0)][_0x398709])[_0x1bd2bc(0x120)](_0x4816b1=>_0x4816b1)[_0x1bd2bc(0x1c6)](_0x3b0bfe=>this[_0x1bd2bc(0x1a6)]['createInstance'](Z,this,_0x3b0bfe['id'],this[_0x1bd2bc(0x1a6)]));}['getTableById'](_0xa69c92){const _0x38f37e=_0x3b2f37;let _0x27563e=this['_base'][_0x38f37e(0xb5)]()[_0x38f37e(0x1c0)][_0xa69c92];return _0x27563e?this[_0x38f37e(0x1a6)]['createInstance'](Z,this,_0x27563e['id'],this['_injector']):null;}[_0x3b2f37(0x15d)](_0x4e3166){const _0x451f90=_0x3b2f37;let _0x4ef96b=this[_0x451f90(0x10d)][_0x451f90(0xb5)](),_0x494bee=Object[_0x451f90(0x1bc)](_0x4ef96b[_0x451f90(0x1c0)])[_0x451f90(0x179)](_0x5a1043=>_0x5a1043[_0x451f90(0x1c2)]===_0x4e3166);return _0x494bee?this['_injector'][_0x451f90(0xdb)](Z,this,_0x494bee['id'],this[_0x451f90(0x1a6)]):null;}[_0x3b2f37(0x12a)](_0x40e9ad,_0x38aa9a){const _0x472df2=_0x3b2f37;let _0xcb710d=_0x5bad1c({'id':_0x2ea005(),'name':_0x40e9ad,..._0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)],'primaryFieldName':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x100)]}),_0x40af2a=_0x36fd3d[_0x472df2(0xfa)](_0xcb710d,(_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x17c)])??{}),_0x2105b3=_0x4a1245(this['_base'][_0x472df2(0xb5)](),_0x40af2a[_0x472df2(0x1c2)]);if(!_0x2105b3['valid'])throw Error(_0x472df2(0x1ad)+_0x40af2a[_0x472df2(0x1c2)]+_0x472df2(0x118)+_0x2d6c44+'\x20'+_0x2105b3[_0x472df2(0xe7)]);if(!this['_commandService'][_0x472df2(0x17e)](_0x36d876['id'],{'unitId':this['_base'][_0x472df2(0x132)](),'table':_0x40af2a,'index':_0x38aa9a==null?void 0x0:_0x38aa9a[_0x472df2(0x172)]}))throw Error(_0x472df2(0x176)+_0x40e9ad+'\x22.');return this[_0x472df2(0x1a6)]['createInstance'](Z,this,_0x40af2a['id'],this[_0x472df2(0x1a6)]);}[_0x3b2f37(0xd1)](_0x34e392){const _0x675c42=_0x3b2f37;let _0x4492c0=typeof _0x34e392==_0x675c42(0x12c)?_0x34e392:_0x34e392[_0x675c42(0x8d)]();if(!this['_commandService'][_0x675c42(0x17e)](_0x337224['id'],{'unitId':this['_base'][_0x675c42(0x132)](),'tableId':_0x4492c0}))throw Error(_0x675c42(0x19e)+_0x4492c0+'\x22.');return!0x0;}['duplicateTable'](_0xd42648,_0x2ed176){const _0x10989d=_0x3b2f37;let _0x1fc9a0=this[_0x10989d(0x10d)][_0x10989d(0xb5)](),_0xf5dd0a=typeof _0xd42648==_0x10989d(0x12c)?_0xd42648:_0xd42648[_0x10989d(0x8d)](),_0xe59fc9=_0x1fc9a0[_0x10989d(0x1c0)][_0xf5dd0a];if(!_0xe59fc9)throw Error(_0x10989d(0x13f)+_0xf5dd0a+_0x10989d(0x102));let _0x4ced53=_0x1fc9a0[_0x10989d(0xb8)][_0x10989d(0x83)](_0xf5dd0a)+0x1,_0x170ea2=_0x2ea005(),_0x273389=_0x1343fb(_0xe59fc9,{'id':_0x170ea2,'name':_0x3b265e(_0x1fc9a0,_0xe59fc9[_0x10989d(0x1c2)]+'\x20Copy'),'includeRecords':(_0x2ed176==null?void 0x0:_0x2ed176['includeRecords'])??!0x1,'regenerateViewIds':(_0x2ed176==null?void 0x0:_0x2ed176['regenerateViewIds'])??!0x1});if(!this[_0x10989d(0x121)][_0x10989d(0x17e)](_0x36d876['id'],{'unitId':this[_0x10989d(0x10d)][_0x10989d(0x132)](),'table':_0x273389,'index':_0x4ced53}))throw Error(_0x10989d(0xd8)+_0xf5dd0a+'\x22.');return this[_0x10989d(0x1a6)][_0x10989d(0xdb)](Z,this,_0x273389['id'],this['_injector']);}[_0x3b2f37(0xed)](){const _0x1366cd=_0x3b2f37;let _0x172f6b=this[_0x1366cd(0x10d)][_0x1366cd(0xb5)]();return{'id':_0x172f6b['id'],'name':_0x172f6b[_0x1366cd(0x1c2)],'tables':this[_0x1366cd(0x1bf)]()[_0x1366cd(0x1c6)](_0x52b2cf=>_0x52b2cf[_0x1366cd(0xed)]())};}};Q=z([R(0x1,_0x5abbd7(_0x4b43b6)),R(0x2,_0x183c06),R(0x3,_0x3fc5b1),R(0x4,_0x376f49)],Q);var Et=class extends _0x4602a3{[_0x3b2f37(0x136)](){const _0x1abc2c=_0x3b2f37;this['_initBaseBeforeEvents'](),this[_0x1abc2c(0xda)]();}[_0x3b2f37(0x139)](_0x209a45={},_0x59616f){const _0x3557da=_0x3b2f37;let _0x2159c5=this[_0x3557da(0x1d5)]['createUnit'](_0xbc8b5a[_0x3557da(0xd6)],_0x209a45,_0x59616f);return this[_0x3557da(0x1a6)]['createInstance'](Q,_0x2159c5);}[_0x3b2f37(0xa6)](){const _0x4350c4=_0x3b2f37;let _0x3fe7d0=this[_0x4350c4(0x1d5)][_0x4350c4(0x181)](_0xbc8b5a['UNIVER_BASE']);return _0x3fe7d0?this[_0x4350c4(0x1a6)][_0x4350c4(0xdb)](Q,_0x3fe7d0):null;}[_0x3b2f37(0x10a)](_0x375001){const _0x45bf18=_0x3b2f37;let _0x3e278a=this[_0x45bf18(0x1d5)][_0x45bf18(0x13c)](_0x375001,_0xbc8b5a[_0x45bf18(0xd6)]);return _0x3e278a?this[_0x45bf18(0x1a6)][_0x45bf18(0xdb)](Q,_0x3e278a):null;}['getBases'](){const _0x28dd88=_0x3b2f37;return this[_0x28dd88(0x1d5)][_0x28dd88(0x93)](_0xbc8b5a[_0x28dd88(0xd6)])[_0x28dd88(0x1c6)](_0xfe1657=>this['_injector'][_0x28dd88(0xdb)](Q,_0xfe1657));}[_0x3b2f37(0xda)](){const _0x38fe1a=_0x3b2f37;this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x15c)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)]((_0x54cc05,_0x1fc798)=>{const _0x128e6e=_0x38fe1a;var _0x2520ca;if(!$(_0x54cc05,_0x34855e))return;let _0x44f430=_0x54cc05['params'];if(!((_0x2520ca=_0x44f430[_0x128e6e(0x19b)])!=null&&_0x2520ca[_0x128e6e(0x17b)]))return;let _0x3a3662=this['getBase'](_0x44f430[_0x128e6e(0xdd)]),_0x3432fe=_0x3a3662==null?void 0x0:_0x3a3662['getTableById'](_0x44f430['hierarchyChanges'][0x0][_0x128e6e(0x157)]);if(!_0x3a3662||!_0x3432fe)return;let _0x319af1={'base':_0x3a3662,'table':_0x3432fe,'changes':_0x44f430[_0x128e6e(0x19b)],'source':_0x1fc798!=null&&_0x1fc798[_0x128e6e(0x98)]?_0x4d5524[_0x128e6e(0x177)]:_0x44f430[_0x128e6e(0x1c7)]??_0x4d5524['UI']};this[_0x128e6e(0x14f)](this[_0x128e6e(0x1ba)][_0x128e6e(0x15c)],_0x319af1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0xca)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x1e0567=>{const _0x125688=_0x38fe1a;if(_0x1e0567['id']!==_0x36d876['id'])return;let {unitId:_0x4f251f,table:_0x5497c6,index:_0x403e1e}=_0x1e0567['params'],_0x56b3ac=this['getBase'](_0x4f251f);if(!_0x56b3ac)return;let _0x4c5079={'base':_0x56b3ac,'table':_0x5497c6,'index':_0x403e1e};this[_0x125688(0x14f)](this[_0x125688(0x1ba)]['BaseTableCreated'],_0x4c5079);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1ce)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0x38e548=>{const _0x5f0925=_0x38fe1a;if(_0x38e548['id']!==_0x174ba5['id'])return;let {unitId:_0x44bb22,tableId:_0x54b026,field:_0x21c44c,index:_0xc46240,viewIndexes:_0xb07430}=_0x38e548[_0x5f0925(0x192)],_0x8c246=this[_0x5f0925(0x10a)](_0x44bb22);if(!_0x8c246)return;let _0x197aa5=_0x8c246['getTableById'](_0x54b026);if(!_0x197aa5)return;let _0x20de7e={'base':_0x8c246,'table':_0x197aa5,'field':_0x21c44c,'index':_0xc46240,'viewIndexes':_0xb07430};this['fireEvent'](this[_0x5f0925(0x1ba)][_0x5f0925(0x1ce)],_0x20de7e);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x131)],()=>this[_0x38fe1a(0x121)][_0x38fe1a(0x9f)](_0xc66bf9=>{const _0x409034=_0x38fe1a;if(_0xc66bf9['id']!==_0x1193c8['id']&&_0xc66bf9['id']!==_0xcf9f8c['id'])return;let _0x17755f=_0xc66bf9[_0x409034(0x192)],{unitId:_0x3c43ed,tableId:_0x10353d}=_0x17755f,_0x39d0b3=_0x17755f[_0x409034(0x193)]??[_0x17755f[_0x409034(0x9b)]],_0xc2b42=this['getBase'](_0x3c43ed);if(!_0xc2b42)return;let _0x38f1ba=_0xc2b42[_0x409034(0x151)](_0x10353d);if(!_0x38f1ba)return;let _0x4893f6={'base':_0xc2b42,'table':_0x38f1ba,'records':_0x39d0b3};this[_0x409034(0x14f)](this[_0x409034(0x1ba)][_0x409034(0x131)],_0x4893f6);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)]['BaseTableViewCreated'],()=>this['_commandService'][_0x38fe1a(0x9f)](_0x400a12=>{const _0x43e8df=_0x38fe1a;if(_0x400a12['id']!==_0x1adb6d['id'])return;let {unitId:_0x37d3bc,tableId:_0x54196d,view:_0x5d976d,index:_0x185f6b}=_0x400a12[_0x43e8df(0x192)],_0x11e2e2=this[_0x43e8df(0x10a)](_0x37d3bc);if(!_0x11e2e2)return;let _0x58eccd=_0x11e2e2[_0x43e8df(0x151)](_0x54196d);if(!_0x58eccd)return;let _0x1e1bb1={'base':_0x11e2e2,'table':_0x58eccd,'view':_0x5d976d,'index':_0x185f6b};this['fireEvent'](this['Event'][_0x43e8df(0xd5)],_0x1e1bb1);}))),this[_0x38fe1a(0x95)](this[_0x38fe1a(0xec)](this[_0x38fe1a(0x1ba)][_0x38fe1a(0x1df)],()=>this[_0x38fe1a(0x121)]['onCommandExecuted'](_0x24981d=>{const _0x4cc7bb=_0x38fe1a;if(_0x24981d['id']!==_0x1b0f5c['id'])return;let {unitId:_0x39cd8b,tableId:_0x17dde4,recordId:_0x3375cd,fieldId:_0x5934c4,value:_0x3b7c5f}=_0x24981d[_0x4cc7bb(0x192)],_0x72d78b=this[_0x4cc7bb(0x10a)](_0x39cd8b);if(!_0x72d78b)return;let _0x2f2dbf=_0x72d78b[_0x4cc7bb(0x151)](_0x17dde4);if(!_0x2f2dbf)return;let _0x3adeac=_0x2f2dbf[_0x4cc7bb(0x196)](_0x5934c4);if(!_0x3adeac)return;let _0x477dcf=_0x2f2dbf[_0x4cc7bb(0x189)](_0x3375cd);if(!_0x477dcf)return;let _0x5dcada={'base':_0x72d78b,'table':_0x2f2dbf,'field':_0x3adeac,'record':_0x477dcf,'value':_0x3b7c5f};this['fireEvent'](this['Event'][_0x4cc7bb(0x1df)],_0x5dcada);})));}[_0x3b2f37(0x115)](){const _0x4a5bd9=_0x3b2f37;this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0xa8)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1b25ea=>{const _0x35133a=_0x4a5bd9;if($(_0x1b25ea,_0x46d1e8)){let {unitId:_0x5ad8f4,tableId:_0x3e8606,patches:_0x468361,source:_0x5661f1=_0x4d5524['UI']}=_0x1b25ea[_0x35133a(0x192)],_0x5c2983=this['_getHierarchyEventContext'](_0x5ad8f4,_0x3e8606);if(!_0x5c2983)return;this['_fireBeforeHierarchyChange'](_0x5c2983['base'],_0x5c2983[_0x35133a(0x17c)],_0x50df42(_0x5c2983[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x468361),_0x5661f1);return;}if($(_0x1b25ea,_0xa0c8e2)){let {unitId:_0x2a234d,tableId:_0x270dda,patches:_0x5eb168,source:_0x19c6ab=_0x4d5524['UI']}=_0x1b25ea['params'],_0x53dc3f=this[_0x35133a(0x1c8)](_0x2a234d,_0x270dda);if(!_0x53dc3f)return;let _0x267754=_0x53dc3f[_0x35133a(0x17c)]['getTable']();this[_0x35133a(0xb6)](_0x53dc3f[_0x35133a(0x18c)],_0x53dc3f[_0x35133a(0x17c)],_0x50df42(_0x267754,_0x55a4b7(_0x267754,_0x5eb168)),_0x19c6ab);return;}if($(_0x1b25ea,_0x1193c8)){let _0x574efc=_0x1b25ea['params'],_0x41f2ea=this[_0x35133a(0x1c8)](_0x574efc[_0x35133a(0xdd)],_0x574efc[_0x35133a(0x157)]);if(!_0x41f2ea)return;this[_0x35133a(0xb6)](_0x41f2ea[_0x35133a(0x18c)],_0x41f2ea['table'],_0x377fbc(_0x41f2ea[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x574efc['record']]),_0x574efc[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xcf9f8c)){let _0x1d5499=_0x1b25ea[_0x35133a(0x192)],_0x5fc66c=this['_getHierarchyEventContext'](_0x1d5499['unitId'],_0x1d5499['tableId']);if(!_0x5fc66c)return;this['_fireBeforeHierarchyChange'](_0x5fc66c[_0x35133a(0x18c)],_0x5fc66c[_0x35133a(0x17c)],_0x377fbc(_0x5fc66c[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x1d5499['records']),_0x1d5499[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x292c95)){let _0x3ee38=_0x1b25ea[_0x35133a(0x192)],_0x489678=this[_0x35133a(0x1c8)](_0x3ee38['unitId'],_0x3ee38[_0x35133a(0x157)]);if(!_0x489678)return;this[_0x35133a(0xb6)](_0x489678[_0x35133a(0x18c)],_0x489678[_0x35133a(0x17c)],_0x377fbc(_0x489678[_0x35133a(0x17c)][_0x35133a(0xc2)](),[_0x3ee38[_0x35133a(0x9b)]]),_0x3ee38[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0xd3c5c2)){let _0x5dad46=_0x1b25ea['params'],_0x3a1fc8=this[_0x35133a(0x1c8)](_0x5dad46['unitId'],_0x5dad46[_0x35133a(0x157)]);if(!_0x3a1fc8)return;let _0x1c1709=_0x3a1fc8[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x48c29f=_0x5dad46['fieldId']??_0x3bde75(_0x1c1709),_0x3c28ae=_0xfa6b82(_0x1c1709,_0x48c29f)['parentByRecordId'][_0x35133a(0x167)](_0x5dad46['recordId'])??null;this['_fireBeforeHierarchyChange'](_0x3a1fc8[_0x35133a(0x18c)],_0x3a1fc8['table'],[{'tableId':_0x5dad46[_0x35133a(0x157)],'fieldId':_0x48c29f,'recordId':_0x5dad46['recordId'],'oldParentRecordId':_0x3c28ae,'parentRecordId':_0x5dad46[_0x35133a(0xe3)]}],_0x5dad46[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x2a209d)){let _0x308922=_0x1b25ea[_0x35133a(0x192)],_0x85aa12=this[_0x35133a(0x1c8)](_0x308922[_0x35133a(0xdd)],_0x308922[_0x35133a(0x157)]);if(!_0x85aa12)return;let _0x5ced3a=_0x308922[_0x35133a(0x125)]??_0x3bde75(_0x85aa12[_0x35133a(0x17c)][_0x35133a(0xc2)]());this[_0x35133a(0xb6)](_0x85aa12[_0x35133a(0x18c)],_0x85aa12[_0x35133a(0x17c)],[{'tableId':_0x308922[_0x35133a(0x157)],'fieldId':_0x5ced3a,'recordId':_0x308922['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x308922['parentRecordId']}],_0x308922[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x6344c7)){let _0x17e6ab=_0x1b25ea['params'],_0x7a92ba=this[_0x35133a(0x1c8)](_0x17e6ab['unitId'],_0x17e6ab[_0x35133a(0x157)]);if(!_0x7a92ba)return;this[_0x35133a(0xb6)](_0x7a92ba[_0x35133a(0x18c)],_0x7a92ba['table'],_0xb2debb(_0x7a92ba['table'][_0x35133a(0xc2)](),[_0x17e6ab['recordId']]),_0x17e6ab[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if($(_0x1b25ea,_0x5a7920)){let _0x7fb82d=_0x1b25ea[_0x35133a(0x192)],_0x4d4d67=this[_0x35133a(0x1c8)](_0x7fb82d[_0x35133a(0xdd)],_0x7fb82d[_0x35133a(0x157)]);if(!_0x4d4d67)return;this[_0x35133a(0xb6)](_0x4d4d67[_0x35133a(0x18c)],_0x4d4d67[_0x35133a(0x17c)],_0xb2debb(_0x4d4d67[_0x35133a(0x17c)][_0x35133a(0xc2)](),_0x7fb82d[_0x35133a(0xde)]),_0x7fb82d[_0x35133a(0x1c7)]??_0x4d5524['UI']);return;}if(!$(_0x1b25ea,_0x1b0f5c))return;let _0x5b905c=_0x1b25ea[_0x35133a(0x192)],_0x33e033=this[_0x35133a(0x1c8)](_0x5b905c[_0x35133a(0xdd)],_0x5b905c['tableId']);if(!_0x33e033)return;let _0x1db71a=_0x33e033[_0x35133a(0x17c)][_0x35133a(0xc2)]();if(!_0xdc3ff5(_0x1db71a)[_0x35133a(0x117)](_0x5b905c[_0x35133a(0x125)]))return;let _0x11f554=_0xfa6b82(_0x1db71a,_0x5b905c[_0x35133a(0x125)])['parentByRecordId'][_0x35133a(0x167)](_0x5b905c[_0x35133a(0x87)])??null,_0xe859be=_0xea2e53(_0x5b905c['value'])[0x0]??null;_0x11f554!==_0xe859be&&this[_0x35133a(0xb6)](_0x33e033['base'],_0x33e033['table'],[{'tableId':_0x5b905c['tableId'],'fieldId':_0x5b905c['fieldId'],'recordId':_0x5b905c[_0x35133a(0x87)],'oldParentRecordId':_0x11f554,'parentRecordId':_0xe859be}],_0x5b905c['source']??_0x4d5524['UI']);}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1aa)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x1bb4a1=>{const _0x3033e0=_0x4a5bd9;if(_0x1bb4a1['id']!==_0x36d876['id'])return;let {unitId:_0x1760a9,table:_0x1d8ab0,index:_0x3b374c}=_0x1bb4a1['params'],_0x14dfd0=this['getBase'](_0x1760a9);if(!_0x14dfd0)return;let _0x5bc906={'base':_0x14dfd0,'table':_0x1d8ab0,'index':_0x3b374c};if(this[_0x3033e0(0x14f)](this['Event']['BeforeBaseTableCreate'],_0x5bc906),_0x5bc906[_0x3033e0(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x1a2)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x478830=>{const _0x2a6fee=_0x4a5bd9;if(_0x478830['id']!==_0x174ba5['id'])return;let {unitId:_0x18c7dd,tableId:_0x1f73ff,field:_0x448742,index:_0x2bdf5b,viewIndexes:_0x484848}=_0x478830[_0x2a6fee(0x192)],_0x24583d=this['getBase'](_0x18c7dd);if(!_0x24583d)return;let _0x432b30=_0x24583d[_0x2a6fee(0x151)](_0x1f73ff);if(!_0x432b30)return;let _0x5b2a4a={'base':_0x24583d,'table':_0x432b30,'field':_0x448742,'index':_0x2bdf5b,'viewIndexes':_0x484848};if(this[_0x2a6fee(0x14f)](this['Event'][_0x2a6fee(0x1a2)],_0x5b2a4a),_0x5b2a4a[_0x2a6fee(0x12b)])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x173)],()=>this['_commandService']['beforeCommandExecuted'](_0x1e3ace=>{const _0x263e97=_0x4a5bd9;if(_0x1e3ace['id']!==_0x1193c8['id']&&_0x1e3ace['id']!==_0xcf9f8c['id'])return;let _0x37017a=_0x1e3ace[_0x263e97(0x192)],{unitId:_0x121a1a,tableId:_0x54c2af}=_0x37017a,_0x4ad32d=_0x37017a['records']??[_0x37017a[_0x263e97(0x9b)]],_0xd13b92=this['getBase'](_0x121a1a);if(!_0xd13b92)return;let _0x58e8d7=_0xd13b92[_0x263e97(0x151)](_0x54c2af);if(!_0x58e8d7)return;let _0x18e700={'base':_0xd13b92,'table':_0x58e8d7,'records':_0x4ad32d};if(this[_0x263e97(0x14f)](this[_0x263e97(0x1ba)][_0x263e97(0x173)],_0x18e700),_0x18e700['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this['Event'][_0x4a5bd9(0x8f)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2605f6=>{const _0x105f43=_0x4a5bd9;if(_0x2605f6['id']!==_0x1adb6d['id'])return;let {unitId:_0xe2fc9,tableId:_0x2ac037,view:_0x53983e,index:_0x40b506}=_0x2605f6[_0x105f43(0x192)],_0x220170=this[_0x105f43(0x10a)](_0xe2fc9);if(!_0x220170)return;let _0x3319c8=_0x220170[_0x105f43(0x151)](_0x2ac037);if(!_0x3319c8)return;let _0x4c3cef={'base':_0x220170,'table':_0x3319c8,'view':_0x53983e,'index':_0x40b506};if(this['fireEvent'](this[_0x105f43(0x1ba)]['BeforeBaseTableViewCreate'],_0x4c3cef),_0x4c3cef['cancel'])throw new _0x543b75();}))),this[_0x4a5bd9(0x95)](this[_0x4a5bd9(0xec)](this[_0x4a5bd9(0x1ba)][_0x4a5bd9(0x122)],()=>this[_0x4a5bd9(0x121)][_0x4a5bd9(0x1a5)](_0x2fb154=>{const _0x3742a9=_0x4a5bd9;if(_0x2fb154['id']!==_0x1b0f5c['id'])return;let {unitId:_0x51e91d,tableId:_0x4ca908,recordId:_0x5d9470,fieldId:_0x46ed6b,value:_0x370adb}=_0x2fb154[_0x3742a9(0x192)],_0x3f3d7a=this[_0x3742a9(0x10a)](_0x51e91d);if(!_0x3f3d7a)return;let _0x9923ae=_0x3f3d7a[_0x3742a9(0x151)](_0x4ca908);if(!_0x9923ae)return;let _0x25dd0a=_0x9923ae[_0x3742a9(0x196)](_0x46ed6b);if(!_0x25dd0a)return;let _0x28cb8a=_0x9923ae[_0x3742a9(0x189)](_0x5d9470);if(!_0x28cb8a)return;let _0x2b8e6c={'base':_0x3f3d7a,'table':_0x9923ae,'field':_0x25dd0a,'record':_0x28cb8a,'value':_0x370adb};if(this[_0x3742a9(0x14f)](this[_0x3742a9(0x1ba)]['BeforeBaseTableCellValueChange'],_0x2b8e6c),_0x2b8e6c[_0x3742a9(0x12b)])throw new _0x543b75();})));}[_0x3b2f37(0x1c8)](_0x1d9d16,_0x107dfd){const _0x44d604=_0x3b2f37;let _0x4d39dd=this[_0x44d604(0x10a)](_0x1d9d16),_0x50ce63=_0x4d39dd==null?void 0x0:_0x4d39dd[_0x44d604(0x151)](_0x107dfd);return _0x4d39dd&&_0x50ce63?{'base':_0x4d39dd,'table':_0x50ce63}:null;}[_0x3b2f37(0xb6)](_0x343fb4,_0x12df91,_0x341938,_0x371236){const _0xd6f883=_0x3b2f37;if(!_0x341938[_0xd6f883(0x17b)])return;let _0x4e5211={'base':_0x343fb4,'table':_0x12df91,'changes':_0x341938,'source':_0x371236};if(this[_0xd6f883(0x14f)](this[_0xd6f883(0x1ba)][_0xd6f883(0xa8)],_0x4e5211),_0x4e5211[_0xd6f883(0x12b)])throw new _0x543b75();}};function $(_0x3487d9,_0x3553b2){const _0x22f18e=_0x3b2f37;return _0x3487d9['id']===_0x3553b2['id']&&_0x3487d9[_0x22f18e(0x192)]!==void 0x0;}_0x4602a3[_0x3b2f37(0xa1)](Et);var Dt=class extends _0x544088{get[_0x3b2f37(0x174)](){return _0x268b7f;}get[_0x3b2f37(0x99)](){return _0x29b07b;}get[_0x3b2f37(0x144)](){return _0x547adc;}get[_0x3b2f37(0x16e)](){return ot;}get[_0x3b2f37(0x1c3)](){return _0x5b008e;}get[_0x3b2f37(0x1e5)](){return _0x2e83f1;}get[_0x3b2f37(0x1d6)](){return _0x5f5c3b;}get[_0x3b2f37(0x150)](){return _0x256a0d;}get[_0x3b2f37(0x10e)](){return _0x23c723;}get[_0x3b2f37(0x1cc)](){return _0x4d5524;}get[_0x3b2f37(0xa9)](){return _0x115291;}get[_0x3b2f37(0xfd)](){return _0x970749;}get[_0x3b2f37(0xcf)](){return _0x116087;}};_0x544088[_0x3b2f37(0xa1)](Dt);var Ot=class extends _0x529663{get['BaseTableCreated'](){const _0x1149f7=_0x3b2f37;return _0x1149f7(0xca);}get['BeforeBaseTableCreate'](){const _0x4a6f1a=_0x3b2f37;return _0x4a6f1a(0x1aa);}get[_0x3b2f37(0x1ce)](){return'BaseTableFieldCreated';}get[_0x3b2f37(0x1a2)](){const _0x5c7190=_0x3b2f37;return _0x5c7190(0x1a2);}get['BaseTableRecordCreated'](){const _0x3019c0=_0x3b2f37;return _0x3019c0(0x131);}get[_0x3b2f37(0x173)](){const _0x480aac=_0x3b2f37;return _0x480aac(0x173);}get['BaseTableViewCreated'](){const _0x188024=_0x3b2f37;return _0x188024(0xd5);}get[_0x3b2f37(0x8f)](){const _0x3d3b01=_0x3b2f37;return _0x3d3b01(0x8f);}get[_0x3b2f37(0x1df)](){return'BaseTableCellValueChanged';}get['BeforeBaseTableCellValueChange'](){const _0xa37d9f=_0x3b2f37;return _0xa37d9f(0x122);}get[_0x3b2f37(0x15c)](){const _0x1cc9ea=_0x3b2f37;return _0x1cc9ea(0x15c);}get['BeforeBaseHierarchyChange'](){return'BeforeBaseHierarchyChange';}};_0x529663[_0x3b2f37(0xa1)](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|
|
1
|
+
const _0x42cb2d=_0x4bdd;(function(_0x1076fc,_0x4b1d47){const _0x5aa408=_0x4bdd,_0x585dfb=_0x1076fc();while(!![]){try{const _0x21a686=-parseInt(_0x5aa408(0x179))/0x1+parseInt(_0x5aa408(0x280))/0x2+parseInt(_0x5aa408(0x18b))/0x3*(parseInt(_0x5aa408(0x215))/0x4)+parseInt(_0x5aa408(0x28f))/0x5+parseInt(_0x5aa408(0x1f0))/0x6*(-parseInt(_0x5aa408(0x183))/0x7)+-parseInt(_0x5aa408(0x1e7))/0x8*(-parseInt(_0x5aa408(0x184))/0x9)+-parseInt(_0x5aa408(0x267))/0xa;if(_0x21a686===_0x4b1d47)break;else _0x585dfb['push'](_0x585dfb['shift']());}catch(_0x4e3f6e){_0x585dfb['push'](_0x585dfb['shift']());}}}(_0x1281,0x676c2));import{ApplyBaseJson1Mutation as _0x178c24,BASE_TABLE_NAME_REQUIREMENTS as _0x2e61f6,BaseConditionalColorRuleUpdateType as _0x36384f,BaseEventSource as _0x220938,BaseHierarchyErrorCode as _0x1d94db,BatchCreateBaseRecordsCommand as _0x30ed55,BatchDeleteBaseRecordsCommand as _0x259e76,ChangeBaseFieldTypeCommand as _0x1d22f3,CreateBaseChildRecordCommand as _0x38016d,CreateBaseFieldCommand as _0x89725e,CreateBaseRecordCommand as _0x470e4e,CreateBaseTableCommand as _0x1d6ad3,CreateBaseViewCommand as _0x471b73,DeleteBaseFieldCommand as _0x14a5d6,DeleteBaseRecordCommand as _0x36855b,DeleteBaseTableCommand as _0x359c6b,DeleteBaseViewCommand as _0x3ddbc,DuplicateBaseRecordCommand as _0x328e28,IBaseProjectionService as _0x5da3e7,MoveBaseFieldCommand as _0x249bdd,MoveBaseHierarchyRecordCommand as _0x146970,MoveBaseViewCommand as _0x1f38e3,RenameBaseTableCommand as _0x47dfb5,RenameBaseViewCommand as _0x3f17b8,SetBaseNameCommand as _0x3cf18e,SetBasePermissionCommand as _0x28b4ab,SetBasePermissionsCommand as _0x1648f2,SetBaseRangeValuesCommand as _0x1fa9ec,SetBaseRecordValuesCommand as _0x54705e,SetBaseTableHierarchyFieldCommand as _0x71b3cc,SetBaseViewFieldOrderCommand as _0x3556fb,SetBaseViewFieldVisibleCommand as _0xc297cb,SetBaseViewFieldWidthCommand as _0x2dfde8,SetBaseViewFilterCommand as _0x95d2fe,SetBaseViewGroupCommand as _0x37eaa0,SetBaseViewSortCommand as _0x118bc9,UpdateBaseCellCommand as _0x50c883,UpdateBaseFieldCommand as _0x1ed29e,UpdateBaseRecordOrderCommand as _0x474036,UpdateBaseViewConditionalColorRulesCommand as _0x16d73a,UpdateBaseViewConfigCommand as _0x189b25,ValidateBaseFormulaCommand as _0x4ec7a3,buildBaseHierarchyIndex as _0x4aa1d4,canEditBaseTargets as _0x1c997c,copyBaseTableSnapshot as _0x4ca2a4,createUniqueBaseTableName as _0x242756,ensureBaseTableCellLayout as _0x240454,getActiveBaseHierarchyFieldIds as _0x1d243e,getBaseCellValue as _0x43d937,getBaseFieldPermissionObjectId as _0x12d38e,getBaseFormulaTableName as _0x7344c5,getBaseHierarchyDeletePromotions as _0x38e02b,getBasePermissionValue as _0x135be6,getBaseRecordPermissionObjectId as _0x48675a,getBaseTablePermissionObjectId as _0x50fcb8,getBaseViewPermissionObjectId as _0x3f6a97,getRecordLinkFieldConfig as _0x34bd1d,matchesBaseCondition as _0x17312a,parseRecordLinkIds as _0x46817c,resolveBaseHierarchyFieldId as _0x1d8e8c,resolveBaseRangeHierarchyPatches as _0x28902e,searchBaseTable as _0x4f0889,serializeRecordLinkIds as _0x12a947,validateBaseHierarchyRecordCreations as _0x3474ef,validateBaseHierarchyRecordPatches as _0x3495d4,validateBaseTableName as _0x17aac3,validateRecordLinkValue as _0x102940}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2737b3,BaseConditionalColorOperator as _0x47fd54,BaseConditionalColorTarget as _0x3ea519,BaseConditionalDateMode as _0x756c91,BaseFieldType as _0x334db4,BaseFilterConjunction as _0x5a09a5,BaseFilterOperator as _0xf13532,BaseHierarchyInvalidReason as _0x125b1b,BaseRecordLinkRole as _0x50fcc1,BaseSortDirection as _0x42481e,BaseViewType as _0x2dedc2,CanceledError as _0x3f6a5c,ICommandService as _0x35296b,IPermissionService as _0x5ad99d,IResourceLoaderService as _0x180241,ImageSourceType as _0x3afc43,Inject as _0x18fc25,Injector as _0x7ee076,Tools as _0x537bdf,UniverInstanceType as _0xfc0289,createDefaultBaseTableSnapshot as _0x13ff92,generateRandomId as _0x4f9ee0}from'@univerjs/core';import*as _0x37c8e5 from'@univerjs/core/facade';import{FBaseInitialable as _0x3f2488,FEnum as _0x3c7e49,FEventName as _0x3e96b9,FUniver as _0x13f4e8}from'@univerjs/core/facade';import{UnitAction as _0x5323a9}from'@univerjs/protocol';import{UpsertHostExternalReferencesCommand as _0x5c4e67}from'@univerjs-pro/engine-formula';var at=class{constructor(_0x3910b6,_0x5b70e7,_0xa0c3e1){const _0x1f0b13=_0x4bdd;this['_unitId']=_0x3910b6,this[_0x1f0b13(0x27d)]=_0x5b70e7,this['_permissionService']=_0xa0c3e1;}async[_0x42cb2d(0x2d6)](_0x59d711){const _0x6e2eeb=_0x42cb2d;return this['_commandService'][_0x6e2eeb(0x237)](_0x1648f2['id'],{'unitId':this[_0x6e2eeb(0x29b)],'changes':_0x59d711});}async[_0x42cb2d(0x2b9)](_0x589d31,_0x13fba5){const _0x614b72=_0x42cb2d;await this['_commandService'][_0x614b72(0x237)](_0x28b4ab['id'],{'unitId':this[_0x614b72(0x29b)],'objectId':this[_0x614b72(0x29b)],'action':_0x589d31,'value':_0x13fba5});}[_0x42cb2d(0x2c0)](_0x16fb9c){const _0x421e22=_0x42cb2d;return _0x135be6(this['_permissionService'],this[_0x421e22(0x29b)],this['_unitId'],_0x16fb9c);}async[_0x42cb2d(0x206)](_0x4bf1e5=!0x0){const _0x375b79=_0x42cb2d;await this[_0x375b79(0x27d)]['executeCommand'](_0x28b4ab['id'],{'unitId':this[_0x375b79(0x29b)],'objectId':this[_0x375b79(0x29b)],'action':_0x5323a9[_0x375b79(0x268)],'value':_0x4bf1e5});}async[_0x42cb2d(0x28a)](){const _0x155dff=_0x42cb2d;await this['_commandService'][_0x155dff(0x237)](_0x28b4ab['id'],{'unitId':this[_0x155dff(0x29b)],'objectId':this[_0x155dff(0x29b)],'action':_0x5323a9['Edit'],'value':!0x1});}['canEdit'](){const _0x53a307=_0x42cb2d;return _0x135be6(this[_0x53a307(0x2a5)],this['_unitId'],this[_0x53a307(0x29b)],_0x5323a9[_0x53a307(0x268)]);}},L=class{constructor(_0x57b5db,_0x13a82e,_0x63a8e1,_0x1702f8,_0x346dbb){const _0x4dea79=_0x42cb2d;this[_0x4dea79(0x29b)]=_0x57b5db,this[_0x4dea79(0x246)]=_0x13a82e,this[_0x4dea79(0x2b2)]=_0x63a8e1,this[_0x4dea79(0x27d)]=_0x1702f8,this[_0x4dea79(0x2a5)]=_0x346dbb;}async['setEditable'](_0x5d6b9f=!0x0){const _0x5881f2=_0x42cb2d;await this[_0x5881f2(0x27d)][_0x5881f2(0x237)](_0x28b4ab['id'],{'unitId':this['_unitId'],'objectId':this['_objectId'],'action':_0x5323a9[_0x5881f2(0x268)],'value':_0x5d6b9f});}async[_0x42cb2d(0x28a)](){const _0x496985=_0x42cb2d;await this[_0x496985(0x27d)][_0x496985(0x237)](_0x28b4ab['id'],{'unitId':this[_0x496985(0x29b)],'objectId':this[_0x496985(0x246)],'action':_0x5323a9[_0x496985(0x268)],'value':!0x1});}['canEdit'](){const _0xff5cf3=_0x42cb2d;return _0x1c997c(this[_0xff5cf3(0x2a5)],this['_unitId'],[...this[_0xff5cf3(0x2b2)],this['_objectId']]);}};function R(_0x13ad27,_0x2cfb21){return function(_0x2de135,_0x4ae055){_0x2cfb21(_0x2de135,_0x4ae055,_0x13ad27);};}function z(_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a){const _0x2d579f=_0x42cb2d;var _0x3aefb9=arguments[_0x2d579f(0x1b9)],_0x1703da=_0x3aefb9<0x3?_0x20301b:_0x1e653a===null?_0x1e653a=Object[_0x2d579f(0x29a)](_0x20301b,_0x57aef1):_0x1e653a,_0x5dcf95;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2d579f(0x262))_0x1703da=Reflect[_0x2d579f(0x289)](_0x82fd3e,_0x20301b,_0x57aef1,_0x1e653a);else{for(var _0x1a7e0d=_0x82fd3e[_0x2d579f(0x1b9)]-0x1;_0x1a7e0d>=0x0;_0x1a7e0d--)(_0x5dcf95=_0x82fd3e[_0x1a7e0d])&&(_0x1703da=(_0x3aefb9<0x3?_0x5dcf95(_0x1703da):_0x3aefb9>0x3?_0x5dcf95(_0x20301b,_0x57aef1,_0x1703da):_0x5dcf95(_0x20301b,_0x57aef1))||_0x1703da);}return _0x3aefb9>0x3&&_0x1703da&&Object[_0x2d579f(0x187)](_0x20301b,_0x57aef1,_0x1703da),_0x1703da;}let B=class{constructor(_0x31e807,_0x16aed2,_0x4da8b3,_0x3d1f8e,_0x379fba){const _0x3df6af=_0x42cb2d;this['_base']=_0x31e807,this[_0x3df6af(0x1f9)]=_0x16aed2,this[_0x3df6af(0x29f)]=_0x4da8b3,this[_0x3df6af(0x27d)]=_0x3d1f8e,this[_0x3df6af(0x2a5)]=_0x379fba;}[_0x42cb2d(0x25a)](){return this['_fieldId'];}[_0x42cb2d(0x274)](){const _0x5a2ca5=_0x42cb2d;let _0x1bcd16=this[_0x5a2ca5(0x1f9)][_0x5a2ca5(0x25a)]();return new L(this[_0x5a2ca5(0x204)][_0x5a2ca5(0x25a)](),_0x12d38e(_0x1bcd16,this[_0x5a2ca5(0x29f)]),[_0x50fcb8(_0x1bcd16)],this[_0x5a2ca5(0x27d)],this[_0x5a2ca5(0x2a5)]);}['getField'](){const _0x549325=_0x42cb2d;return this[_0x549325(0x23f)]();}[_0x42cb2d(0x214)](){const _0x2b027d=_0x42cb2d;return this[_0x2b027d(0x23f)]()[_0x2b027d(0x1e8)];}[_0x42cb2d(0x1ae)](){return this['_getField']()['type'];}['getConfig'](){const _0x584239=_0x42cb2d;return this[_0x584239(0x23f)]()[_0x584239(0x22b)];}['getDefaultValue'](){const _0x174744=_0x42cb2d;return this[_0x174744(0x23f)]()['defaultValue'];}[_0x42cb2d(0x2d7)](){const _0x2e44f1=_0x42cb2d;return this[_0x2e44f1(0x23f)]()['description'];}[_0x42cb2d(0x20e)](){const _0x3ace17=_0x42cb2d;return!!this[_0x3ace17(0x23f)]()['readonly'];}[_0x42cb2d(0x174)](_0x58361e){const _0x40c0ab=_0x42cb2d;return this[_0x40c0ab(0x244)]({'name':_0x58361e});}[_0x42cb2d(0x285)](_0x3518aa,_0x4f5fea){const _0x280585=_0x42cb2d;return this[_0x280585(0x244)]({'config':_0x3518aa},_0x4f5fea);}['setDefaultValue'](_0x55d1cc){return this['update']({'defaultValue':_0x55d1cc});}['update'](_0x3cdc5a,_0x16092b){const _0x445f89=_0x42cb2d;let _0x51b644=this[_0x445f89(0x23f)]()[_0x445f89(0x235)];return(_0x3cdc5a['type']??_0x51b644)===_0x334db4[_0x445f89(0x1ca)]&&(Object['prototype'][_0x445f89(0x222)][_0x445f89(0x1bc)](_0x3cdc5a,'config')||_0x3cdc5a[_0x445f89(0x235)]===_0x334db4[_0x445f89(0x1ca)])&&!this[_0x445f89(0x27e)](_0x16092b)?!0x1:this[_0x445f89(0x27d)][_0x445f89(0x1ac)](_0x1ed29e['id'],{'unitId':this[_0x445f89(0x204)][_0x445f89(0x25a)](),'tableId':this['_table'][_0x445f89(0x25a)](),'fieldId':this[_0x445f89(0x29f)],'patch':_0x3cdc5a});}[_0x42cb2d(0x1f6)](_0x5ed279,_0x12f0bd={},_0x5717b5){const _0x5bccdc=_0x42cb2d;return _0x5ed279===_0x334db4[_0x5bccdc(0x1ca)]&&!this[_0x5bccdc(0x27e)](_0x5717b5)?!0x1:this[_0x5bccdc(0x27d)][_0x5bccdc(0x1ac)](_0x1d22f3['id'],{'unitId':this['_base'][_0x5bccdc(0x25a)](),'tableId':this[_0x5bccdc(0x1f9)]['getId'](),'fieldId':this[_0x5bccdc(0x29f)],'input':{'type':_0x5ed279,'config':_0x12f0bd}});}['delete'](){const _0x2186df=_0x42cb2d;return this['_commandService'][_0x2186df(0x1ac)](_0x14a5d6['id'],{'unitId':this['_base'][_0x2186df(0x25a)](),'tableId':this[_0x2186df(0x1f9)][_0x2186df(0x25a)](),'fieldId':this['_fieldId']});}[_0x42cb2d(0x181)](_0x141b6b){const _0x280496=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x249bdd['id'],{'unitId':this[_0x280496(0x204)][_0x280496(0x25a)](),'tableId':this[_0x280496(0x1f9)][_0x280496(0x25a)](),'fieldId':this[_0x280496(0x29f)],'target':_0x141b6b});}[_0x42cb2d(0x23f)](){const _0x395b99=_0x42cb2d;let _0x1d285d=this['_table'][_0x395b99(0x1d3)]()['fields'][this[_0x395b99(0x29f)]];if(!_0x1d285d)throw Error(_0x395b99(0x18c)+this[_0x395b99(0x29f)]+_0x395b99(0x209));return _0x1d285d;}[_0x42cb2d(0x27e)](_0x513168){const _0x1d1eca=_0x42cb2d;if(!_0x513168||!Array[_0x1d1eca(0x2b0)](_0x513168[_0x1d1eca(0x26d)]))return console[_0x1d1eca(0x197)](_0x1d1eca(0x2a6)),!0x1;if(_0x513168['externalReferences'][_0x1d1eca(0x1b9)]===0x0)return!0x0;let _0x2bb2dd=this[_0x1d1eca(0x27d)][_0x1d1eca(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x1d1eca(0x204)][_0x1d1eca(0x25a)](),'references':_0x513168[_0x1d1eca(0x26d)]});return _0x2bb2dd||console['warn'](_0x1d1eca(0x1b2)),_0x2bb2dd;}};B=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d)],B);let ot=function(_0x503eed){const _0x301aa8=_0x42cb2d;return _0x503eed['Id']='id',_0x503eed[_0x301aa8(0x223)]=_0x301aa8(0x1e8),_0x503eed[_0x301aa8(0x27c)]=_0x301aa8(0x1c6),_0x503eed;}({});function _0x1281(){const _0x2ed703=['orderKey','getFieldById','getConditionalColorRules','_initBaseBeforeEvents','Facade','_getAttachmentField','setSort','createInstance','Invalid\x20attachment\x20at\x20index\x20','filter','field','mimeType','hidden','BaseSortDirection','getAllUnitsForType','getProjection','get','startColumn','_viewId','getId','sort','_resolveRecordIds','updatedAt','deleteTable','BaseRecordLinkRole','BaseTableCellValueChanged','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','function','parentRecordId','BaseEventSource','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getPrimaryFieldId','7837580CfJYRI','Edit','table','_projectionService','object','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','externalReferences','getDescendants','_getView',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','tableOrder','UUID','_initialize','getPermission','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','map','Calendar','Failed\x20to\x20add\x20records','multiple','setAttachments','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Auto','_commandService','_writeFormulaExternalReferences','startRow','1620866WqZWjy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','entries','addConditionalColorRule','endRow','setConfig','Duplicate\x20Base\x20field\x20name:\x20','test','getColumn','decorate','setReadOnly','from','has','fields','UNIVER_BASE','3313420oqWaHx','views','getRecords','_tableId',',\x20max\x20columns:\x20','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','getSnapshot','every','Unsupported\x20Base\x20field\x20type\x20\x22','cancel',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getOwnPropertyDescriptor','_unitId','fieldOrder','getParent','RecordLink','_fieldId','_getHierarchyIndex','createView','deleteConditionalColorRule','getGroup','clearConditionalColorRules','_permissionService','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseHierarchyErrorCode','_initBaseAfterEvents','fieldSettings','getChildren','Gantt','getRecord','now','recordOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isArray','value','_parentObjectIds','_collectDescendantIds','_baseUnitId','source','_getFieldIds','BeforeBaseTableRecordCreate','getActiveBase','setPoint','thumbnail','offset','getRange','Grid','getValues','BaseFieldKeyEnum','getPoint','rowId','[FRecord]:\x20field\x20\x22','onCommandExecuted','_getRecordLinkField','setLinkedRecordIds','BaseFilterConjunction','hierarchyChanges','prototype','fireEvent','Remote','delete','BaseTableCreated','slice','duplicate','setFilter','viewId','getDataRange','records','getViewById','[FRecord]:\x20record\x20\x22','custom','setObjectPermissions','getDescription','stringify','Kanban','setName','getPrimaryField','\x22\x20is\x20not\x20an\x20Attachment\x20field.','targetTableId','symbol','770206nMOnMA','BeforeBaseTableViewCreate','Failed\x20to\x20create\x20view\x20\x22','BaseViewType','direction','BaseHierarchyInvalidReason','[FBaseRange]:\x20values\x20size\x20','_univerInstanceService','move','width','7esYWzC','714546BmNQCm','_getRecord','\x22:\x20expected\x20an\x20array.','defineProperty','subtreeHeightByRecordId','unitId','readonly','3WzkOHy','[FField]:\x20field\x20\x22','disposeWithMe','URL','BaseTableFieldCreated','max','BeforeBaseTableCreate','recordId','string','createdAt','_baseTableId','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','warn','Clear','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','deleteRecords','includeRecords','regenerateViewIds','\x22\x20must\x20be\x20a\x20non-empty\x20string.','getAttachments','getNumColumns','Delete','BaseTableRecordCreated','addField','clear','getHierarchyFieldId',':\x20expected\x20an\x20object.','getSort','getCurrentUnitOfType','[FRecord]:\x20RecordLink\x20field\x20\x22','removeLinkedRecord','getTables','afterFieldId','syncExecuteCommand','AND','getType','tables','moveField',':\x20\x22','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_range','_inject','\x22\x20has\x20invalid\x20config.','Invalid\x20Base\x20formula.','[FTable]:\x20table\x20\x22','view','length','registerEventHandler','Set','call','_getHierarchyEventContext','index','tableId','height','childrenByParentId','caseSensitive','addLinkedRecord','duplicateTable','BASE64','auto','default','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','commonExtend','Formula','deepClone','primaryFieldName','trim','boolean','BaseConditionalColorOperator','indexOf','getUnit','updateConfig','getTable','_getTable','insertTable','endColumn','reason','Failed\x20to\x20create\x20table\x20\x22','getNumRows','fieldKey','fieldIds','_fireBeforeHierarchyChange','push','addRecords','setFieldVisible','getUnitId','record','getFieldSettings','getRecordById','parentByRecordId','visibleCardFieldIds','[FRecord]:\x20invalid\x20RecordLink\x20value.','72VtxUAh','name','\x20exceeds\x20range\x20size\x20','Attachment','localeCompare','\x20for\x20field\x20\x22','deleteProperty','getViewByName','BaseFilterOperator','1455546eMBpzN','getFilter','\x20in\x20field\x20\x22','[FBase]:\x20invalid\x20table\x20name\x20\x22','BeforeBaseHierarchyChange','size','changeType','setConditionalColorRules','iterator','_table','[FBase]:\x20table\x20\x22','getLinkedRecordIds','Base\x20field\x20not\x20found:\x20','operator','params','matches','BaseHierarchyChanged','_injector','_prepareFormulaFieldReferences','BeforeBaseTableCellValueChange','_base','extend','setEditable','invalid','getFormulaName','\x22\x20does\x20not\x20exist.','includes','getView','primaryFieldId','recordIds','isReadonly','_assertInBounds','getTableId','getBase','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getValue','getName','130040qWidrw',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','save','description','getRow','valid','getSchema','fieldId','base','values','setValue','find','getTableByName','hasOwnProperty','Name','getFields','setValues','number','\x22.\x20','beforeCommandExecuted','BaseTableViewCreated','BaseFieldType','config','viewOrder','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getBaseId','_recordId','flatMap','Event','BeforeBaseTableFieldCreate','[FView]:\x20view\x20\x22','_resourceLoaderService','type','formula','executeCommand','FBase','notMatches','Gallery','setGroup','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','limit','group','_getField','rows','createUnit','getTableById','system','update','conditions','_objectId'];_0x1281=function(){return _0x2ed703;};return _0x1281();}function V(_0x26a73b){const _0xe86933=_0x42cb2d;return!!(_0x26a73b&&_0x26a73b[_0xe86933(0x243)]!==!0x0&&_0x26a73b[_0xe86933(0x235)]!==_0x334db4['RecordId']);}function H(_0x36ec40,_0x4918c3,_0x41457f='id'){const _0x1b13d2=_0x42cb2d;if(!_0x4918c3)return{};let _0x171423={};return Object[_0x1b13d2(0x282)](_0x4918c3)['forEach'](([_0x13e1d5,_0x54f0e7])=>{const _0x2e498a=_0x1b13d2;let _0x35073c=ct(_0x36ec40,_0x13e1d5,_0x41457f);_0x171423[_0x35073c]=st(_0x36ec40[_0x2e498a(0x28d)][_0x35073c],_0x54f0e7);}),_0x171423;}function st(_0x5d294b,_0x4f74bd){const _0x1234ab=_0x42cb2d;if((_0x5d294b==null?void 0x0:_0x5d294b[_0x1234ab(0x235)])!==_0x334db4[_0x1234ab(0x1ea)]||_0x4f74bd==null)return _0x4f74bd;if(!Array[_0x1234ab(0x2b0)](_0x4f74bd))throw TypeError(_0x1234ab(0x265)+_0x5d294b['name']+_0x1234ab(0x186));return _0x4f74bd[_0x1234ab(0x276)]((_0x28f947,_0x13a1b5)=>lt(_0x5d294b,_0x28f947,_0x13a1b5));}function ct(_0x2bc7bc,_0x4bff9c,_0x30126f){const _0x2f42f2=_0x42cb2d;if(_0x30126f==='id'||_0x30126f===_0x2f42f2(0x1c6)&&_0x2bc7bc[_0x2f42f2(0x28d)][_0x4bff9c])return _0x4bff9c;let _0x25147d=Object['values'](_0x2bc7bc['fields'])[_0x2f42f2(0x250)](_0x306172=>_0x306172[_0x2f42f2(0x1e8)]===_0x4bff9c);if(_0x25147d[_0x2f42f2(0x1b9)]===0x1)return _0x25147d[0x0]['id'];throw _0x25147d[_0x2f42f2(0x1b9)]>0x1?Error(_0x2f42f2(0x286)+_0x4bff9c):Error(_0x2f42f2(0x1fc)+_0x4bff9c);}function lt(_0x45c8b7,_0x631533,_0x33f90f){const _0x33b2c0=_0x42cb2d;let _0x365938=_0x33b2c0(0x24f)+_0x33f90f+_0x33b2c0(0x1ec)+_0x45c8b7[_0x33b2c0(0x1e8)]+'\x22';if(!ft(_0x631533))throw TypeError(_0x365938+_0x33b2c0(0x1a5));if('url'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x216));if('type'in _0x631533)throw TypeError(_0x365938+_0x33b2c0(0x270));let _0x587bbf=U(_0x631533['id'],_0x365938,'id'),_0xecfbd=U(_0x631533[_0x33b2c0(0x1e8)],_0x365938,_0x33b2c0(0x1e8)),_0x387043=U(_0x631533[_0x33b2c0(0x2b5)],_0x365938,_0x33b2c0(0x2b5));return{'id':_0x587bbf,'name':_0xecfbd,'source':_0x387043,'sourceType':ut(_0x631533['sourceType'],_0x387043,_0x365938),...dt(_0x631533,_0x33b2c0(0x252),_0x365938),...W(_0x631533,_0x33b2c0(0x1f5),_0x365938),...W(_0x631533,_0x33b2c0(0x182),_0x365938),...W(_0x631533,_0x33b2c0(0x1c0),_0x365938),...dt(_0x631533,_0x33b2c0(0x2ba),_0x365938)};}function ut(_0x53a4ff,_0x38c863,_0x2b9c4a){const _0x4bd59c=_0x42cb2d;if(_0x53a4ff==null)return _0x38c863['startsWith']('data:')?_0x3afc43[_0x4bd59c(0x1c5)]:_0x3afc43[_0x4bd59c(0x18e)];if(_0x53a4ff===_0x3afc43[_0x4bd59c(0x18e)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x272)]||_0x53a4ff===_0x3afc43[_0x4bd59c(0x1c5)])return _0x53a4ff;throw TypeError(_0x2b9c4a+_0x4bd59c(0x299));}function U(_0x472949,_0x48a52f,_0x30697e){const _0x1ab262=_0x42cb2d;if(typeof _0x472949!=_0x1ab262(0x193)||!_0x472949[_0x1ab262(0x1cd)]())throw TypeError(_0x48a52f+':\x20\x22'+_0x30697e+_0x1ab262(0x19d));return _0x472949;}function dt(_0x3ca3c9,_0x2e9c43,_0x422a29){const _0x1244a2=_0x42cb2d;let _0x232bd6=_0x3ca3c9[_0x2e9c43];if(_0x232bd6==null)return{};if(typeof _0x232bd6!='string'||!_0x232bd6[_0x1244a2(0x1cd)]())throw TypeError(_0x422a29+':\x20\x22'+_0x2e9c43+_0x1244a2(0x23c));return{[_0x2e9c43]:_0x232bd6};}function W(_0x3eafce,_0x52caf9,_0x45afba){const _0x58ae4f=_0x42cb2d;let _0xba559c=_0x3eafce[_0x52caf9];if(_0xba559c==null)return{};if(typeof _0xba559c!=_0x58ae4f(0x226)||!Number['isFinite'](_0xba559c)||_0xba559c<0x0)throw TypeError(_0x45afba+_0x58ae4f(0x1b1)+_0x52caf9+_0x58ae4f(0x212));return{[_0x52caf9]:_0xba559c};}function ft(_0x28a42e){const _0x1fc442=_0x42cb2d;return typeof _0x28a42e==_0x1fc442(0x26b)&&!!_0x28a42e&&!Array[_0x1fc442(0x2b0)](_0x28a42e);}var G;let K=G=class{constructor(_0x2e717f,_0x1547af,_0x503659,_0x339bc1,_0x18ffbc){const _0xc91a58=_0x42cb2d;this[_0xc91a58(0x204)]=_0x2e717f,this[_0xc91a58(0x1f9)]=_0x1547af,this[_0xc91a58(0x1b3)]=_0x503659,this[_0xc91a58(0x1b4)]=_0x339bc1,this[_0xc91a58(0x27d)]=_0x18ffbc,this[_0xc91a58(0x20f)]();}[_0x42cb2d(0x22e)](){const _0x5b8482=_0x42cb2d;return this['_base'][_0x5b8482(0x25a)]();}[_0x42cb2d(0x210)](){const _0x4c4042=_0x42cb2d;return this[_0x4c4042(0x1f9)][_0x4c4042(0x25a)]();}[_0x42cb2d(0x2bc)](){const _0x208af5=_0x42cb2d;return{...this[_0x208af5(0x1b3)]};}[_0x42cb2d(0x219)](){const _0x4cede8=_0x42cb2d;return this[_0x4cede8(0x1b3)][_0x4cede8(0x27f)];}[_0x42cb2d(0x288)](){const _0x577828=_0x42cb2d;return this[_0x577828(0x1b3)][_0x577828(0x258)];}['getNumRows'](){const _0x2ca9d3=_0x42cb2d;return this[_0x2ca9d3(0x1b3)][_0x2ca9d3(0x284)]-this[_0x2ca9d3(0x1b3)]['startRow']+0x1;}['getNumColumns'](){const _0x3dd349=_0x42cb2d;return this['_range'][_0x3dd349(0x1d6)]-this['_range']['startColumn']+0x1;}[_0x42cb2d(0x2be)](){const _0x1fca08=_0x42cb2d;let _0x2341e8=this[_0x1fca08(0x1d4)](),_0x42bbe3=this[_0x1fca08(0x2b6)](_0x2341e8),_0x54569d=[];for(let _0x5d74ee=this[_0x1fca08(0x1b3)]['startRow'];_0x5d74ee<=this[_0x1fca08(0x1b3)]['endRow'];_0x5d74ee++){var _0x4d5205;let _0x2b8cb8=(_0x4d5205=_0x2341e8[_0x1fca08(0x2c1)])==null?void 0x0:_0x4d5205[_0x5d74ee],_0x20a338=[];for(let _0x107f5e=this[_0x1fca08(0x1b3)][_0x1fca08(0x258)];_0x107f5e<=this[_0x1fca08(0x1b3)][_0x1fca08(0x1d6)];_0x107f5e++){let _0x17a9e6=_0x42bbe3[_0x107f5e];_0x20a338[_0x1fca08(0x1dd)](_0x2b8cb8&&_0x17a9e6?_0x43d937(_0x2341e8,_0x2b8cb8,_0x17a9e6):null);}_0x54569d[_0x1fca08(0x1dd)](_0x20a338);}return _0x54569d;}['getValue'](){var _0x28e6b0;return((_0x28e6b0=this['getValues']()[0x0])==null?void 0x0:_0x28e6b0[0x0])??null;}[_0x42cb2d(0x21f)](_0x19bbb0){const _0x48d597=_0x42cb2d;return this[_0x48d597(0x225)]([[_0x19bbb0]]);}[_0x42cb2d(0x225)](_0x4d13df){const _0xa3d1f2=_0x42cb2d;let _0x3f10b5=this[_0xa3d1f2(0x1d9)](),_0x1476a5=this[_0xa3d1f2(0x19f)]();if(_0x4d13df[_0xa3d1f2(0x1b9)]>_0x3f10b5||_0x4d13df['some'](_0x4f3963=>_0x4f3963[_0xa3d1f2(0x1b9)]>_0x1476a5)){var _0x1e3ae4;throw Error(_0xa3d1f2(0x17f)+_0x4d13df['length']+'x'+(((_0x1e3ae4=_0x4d13df[0x0])==null?void 0x0:_0x1e3ae4['length'])??0x0)+_0xa3d1f2(0x1e9)+_0x3f10b5+'x'+_0x1476a5+'.');}let _0x464d3e=this[_0xa3d1f2(0x1d4)](),_0x35ba30=this['_getFieldIds'](_0x464d3e),_0x1414d9=_0x4d13df[_0xa3d1f2(0x230)]((_0x195372,_0x597d9b)=>_0x195372[_0xa3d1f2(0x276)]((_0x525f7a,_0x18cdbc)=>{const _0x43811d=_0xa3d1f2;var _0x1d1a87;let _0xf0153d=this['_range'][_0x43811d(0x27f)]+_0x597d9b,_0x1ee2de=_0x35ba30[this[_0x43811d(0x1b3)][_0x43811d(0x258)]+_0x18cdbc],_0x2bcf72=(_0x1d1a87=_0x464d3e[_0x43811d(0x2c1)])==null?void 0x0:_0x1d1a87[_0xf0153d];if(!_0x1ee2de||!_0x2bcf72)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x2bcf72,'fieldId':_0x1ee2de,'value':_0x525f7a};}));return this['_commandService'][_0xa3d1f2(0x1ac)](_0x1fa9ec['id'],{'unitId':this[_0xa3d1f2(0x204)][_0xa3d1f2(0x25a)](),'tableId':this['_table'][_0xa3d1f2(0x25a)](),'patches':_0x1414d9,'source':_0x220938[_0xa3d1f2(0x24b)]});}[_0x42cb2d(0x1a3)](){const _0x4ab3f0=_0x42cb2d;return this['setValues'](Array[_0x4ab3f0(0x28b)]({'length':this['getNumRows']()},()=>Array[_0x4ab3f0(0x28b)]({'length':this[_0x4ab3f0(0x19f)]()},()=>null)));}['offset'](_0x6ddc23,_0x4d03c1,_0x4fc2a5=this['getNumRows'](),_0x3103d=this[_0x42cb2d(0x19f)]()){const _0x1199a7=_0x42cb2d;return this['_inject']['createInstance'](G,this['_base'],this['_table'],{'startRow':this[_0x1199a7(0x1b3)][_0x1199a7(0x27f)]+_0x6ddc23,'startColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1,'endRow':this[_0x1199a7(0x1b3)]['startRow']+_0x6ddc23+_0x4fc2a5-0x1,'endColumn':this[_0x1199a7(0x1b3)][_0x1199a7(0x258)]+_0x4d03c1+_0x3103d-0x1},this['_inject']);}[_0x42cb2d(0x1d4)](){const _0x342bb1=_0x42cb2d;let _0x2bed35=this['_table'][_0x342bb1(0x1d3)]();if(!_0x2bed35)throw Error(_0x342bb1(0x281));return _0x240454(_0x2bed35);}[_0x42cb2d(0x20f)](){const _0x11ffff=_0x42cb2d;var _0x40bbc4;let _0x301c6f=this[_0x11ffff(0x1d4)](),_0x3daee7=((_0x40bbc4=_0x301c6f[_0x11ffff(0x2ae)])==null?void 0x0:_0x40bbc4[_0x11ffff(0x1b9)])??0x0,_0x363cbc=this[_0x11ffff(0x2b6)](_0x301c6f)[_0x11ffff(0x1b9)];if(this[_0x11ffff(0x1b3)]['startRow']<0x0||this['_range'][_0x11ffff(0x258)]<0x0||this['_range'][_0x11ffff(0x284)]<this[_0x11ffff(0x1b3)][_0x11ffff(0x27f)]||this['_range'][_0x11ffff(0x1d6)]<this['_range'][_0x11ffff(0x258)]||this[_0x11ffff(0x1b3)][_0x11ffff(0x284)]>=Math['max'](_0x3daee7,0x1)||this['_range'][_0x11ffff(0x1d6)]>=Math[_0x11ffff(0x190)](_0x363cbc,0x1))throw Error(_0x11ffff(0x26c)+_0x3daee7+_0x11ffff(0x293)+_0x363cbc+',\x20range:\x20'+JSON[_0x11ffff(0x172)](this[_0x11ffff(0x1b3)])+'.');}[_0x42cb2d(0x2b6)](_0x38f945){const _0x47ebd1=_0x42cb2d;return _0x38f945[_0x47ebd1(0x29c)][_0x47ebd1(0x250)](_0x535059=>V(_0x38f945[_0x47ebd1(0x28d)][_0x535059]));}};K=G=z([R(0x4,_0x35296b)],K);function q(_0x1baa2b){'@babel/helpers - typeof';const _0xdf8382=_0x42cb2d;return q=typeof Symbol==_0xdf8382(0x262)&&typeof Symbol[_0xdf8382(0x1f8)]==_0xdf8382(0x178)?function(_0x1c4e37){return typeof _0x1c4e37;}:function(_0x238500){const _0x50a878=_0xdf8382;return _0x238500&&typeof Symbol==_0x50a878(0x262)&&_0x238500['constructor']===Symbol&&_0x238500!==Symbol[_0x50a878(0x2c8)]?_0x50a878(0x178):typeof _0x238500;},q(_0x1baa2b);}function pt(_0x34d75e,_0x198ddb){const _0x41e2d9=_0x42cb2d;if(q(_0x34d75e)!=_0x41e2d9(0x26b)||!_0x34d75e)return _0x34d75e;var _0x13c8ea=_0x34d75e[Symbol['toPrimitive']];if(_0x13c8ea!==void 0x0){var _0x2224f5=_0x13c8ea[_0x41e2d9(0x1bc)](_0x34d75e,_0x198ddb||_0x41e2d9(0x1c7));if(q(_0x2224f5)!=_0x41e2d9(0x26b))return _0x2224f5;throw TypeError(_0x41e2d9(0x2af));}return(_0x198ddb===_0x41e2d9(0x193)?String:Number)(_0x34d75e);}function mt(_0x280636){const _0x4a038f=_0x42cb2d;var _0x4f3370=pt(_0x280636,_0x4a038f(0x193));return q(_0x4f3370)==_0x4a038f(0x178)?_0x4f3370:_0x4f3370+'';}function ht(_0x5c9347,_0x2361b8,_0x2807c1){const _0x526df3=_0x42cb2d;return(_0x2361b8=mt(_0x2361b8))in _0x5c9347?Object[_0x526df3(0x187)](_0x5c9347,_0x2361b8,{'value':_0x2807c1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c9347[_0x2361b8]=_0x2807c1,_0x5c9347;}var J;let Y=J=class extends _0x3f2488{constructor(_0x638bc7,_0x3637e5,_0x189404,_0x5341e7,_0x46494d,_0x43c28e){const _0x225267=_0x42cb2d;super(_0x5341e7),this[_0x225267(0x204)]=_0x638bc7,this[_0x225267(0x1f9)]=_0x3637e5,this[_0x225267(0x22f)]=_0x189404,this[_0x225267(0x201)]=_0x5341e7,this[_0x225267(0x27d)]=_0x46494d,this[_0x225267(0x2a5)]=_0x43c28e,ht(this,_0x225267(0x2b4),void 0x0),ht(this,_0x225267(0x195),void 0x0),this[_0x225267(0x2b4)]=_0x638bc7[_0x225267(0x25a)](),this['_baseTableId']=_0x3637e5['getId']();}['getBaseFacade'](){const _0x15b713=_0x42cb2d;return this[_0x15b713(0x204)];}['getTableFacade'](){const _0x2af711=_0x42cb2d;return this[_0x2af711(0x1f9)];}['getId'](){const _0x302794=_0x42cb2d;return this[_0x302794(0x22f)];}[_0x42cb2d(0x274)](){const _0x2ff90f=_0x42cb2d;let _0x3b7151=this['_table']['getId']();return new L(this[_0x2ff90f(0x204)][_0x2ff90f(0x25a)](),_0x48675a(_0x3b7151,this[_0x2ff90f(0x22f)]),[_0x50fcb8(_0x3b7151)],this[_0x2ff90f(0x27d)],this[_0x2ff90f(0x2a5)]);}[_0x42cb2d(0x2ac)](){const _0x5357b8=_0x42cb2d;return{...this[_0x5357b8(0x185)](),'values':this[_0x5357b8(0x2be)]()};}[_0x42cb2d(0x213)](_0x59fbf5){const _0x36f075=_0x42cb2d;return V(this[_0x36f075(0x1f9)][_0x36f075(0x1d3)]()[_0x36f075(0x28d)][_0x59fbf5])?this[_0x36f075(0x185)]()[_0x36f075(0x21e)][_0x59fbf5]??null:null;}[_0x42cb2d(0x2be)](){const _0x246cde=_0x42cb2d;let _0x1cdaae=this[_0x246cde(0x1f9)]['getTable']();return Object['fromEntries'](Object['entries'](this[_0x246cde(0x185)]()['values'])[_0x246cde(0x250)](([_0x56b4c4])=>V(_0x1cdaae[_0x246cde(0x28d)][_0x56b4c4])));}[_0x42cb2d(0x21f)](_0x402d69,_0x290e9f){const _0x1dc3b6=_0x42cb2d;let _0x5485b3=this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x1d3)]()[_0x1dc3b6(0x28d)][_0x402d69];return this[_0x1dc3b6(0x27d)][_0x1dc3b6(0x1ac)](_0x50c883['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x1dc3b6(0x1f9)][_0x1dc3b6(0x25a)](),'recordId':this[_0x1dc3b6(0x22f)],'fieldId':_0x402d69,'value':st(_0x5485b3,_0x290e9f),'source':_0x220938[_0x1dc3b6(0x24b)]});}[_0x42cb2d(0x27a)](_0x53d43f,_0x2c87cf){const _0x165ea0=_0x42cb2d;return this[_0x165ea0(0x21f)](_0x53d43f,_0x2c87cf[_0x165ea0(0x276)](_0x10f1d3=>({..._0x10f1d3})));}[_0x42cb2d(0x19e)](_0x67fa0b){const _0x322769=_0x42cb2d;this['_getAttachmentField'](_0x67fa0b);let _0x17f825=this['getValue'](_0x67fa0b);return Array[_0x322769(0x2b0)](_0x17f825)?_0x17f825[_0x322769(0x276)]((_0x1ce133,_0x1f0145)=>_t(_0x1ce133,_0x67fa0b,_0x1f0145)):[];}['deleteAttachments'](_0x37cfa2,_0x14162b){const _0x36d32d=_0x42cb2d;this[_0x36d32d(0x24c)](_0x37cfa2);let _0x1eb066=new Set(_0x14162b[_0x36d32d(0x276)](_0x8d8bf5=>_0x8d8bf5['id']));if(!_0x1eb066[_0x36d32d(0x1f5)])return!0x0;let _0x5ec5b4=this[_0x36d32d(0x19e)](_0x37cfa2),_0x216067=_0x5ec5b4[_0x36d32d(0x250)](_0x338db4=>!_0x1eb066['has'](_0x338db4['id']));return _0x216067[_0x36d32d(0x1b9)]===_0x5ec5b4[_0x36d32d(0x1b9)]||this[_0x36d32d(0x27a)](_0x37cfa2,_0x216067);}[_0x42cb2d(0x225)](_0xe25c0,_0x436d87='id'){const _0x4524b6=_0x42cb2d;let _0x17222a=this[_0x4524b6(0x1f9)][_0x4524b6(0x1d3)](),_0x2cfdef=[{'recordId':this['_recordId'],'values':H(_0x17222a,_0xe25c0,_0x436d87)}];return this[_0x4524b6(0x27d)][_0x4524b6(0x1ac)](_0x54705e['id'],{'unitId':this['_base'][_0x4524b6(0x25a)](),'tableId':this[_0x4524b6(0x1f9)][_0x4524b6(0x25a)](),'patches':_0x2cfdef,'source':_0x220938[_0x4524b6(0x24b)]});}[_0x42cb2d(0x2cb)](){const _0x21e14a=_0x42cb2d;return this['_commandService'][_0x21e14a(0x1ac)](_0x36855b['id'],{'unitId':this[_0x21e14a(0x204)][_0x21e14a(0x25a)](),'tableId':this[_0x21e14a(0x1f9)][_0x21e14a(0x25a)](),'recordId':this[_0x21e14a(0x22f)],'source':_0x220938[_0x21e14a(0x24b)]});}[_0x42cb2d(0x2ce)](_0x3e11e2){const _0x127d39=_0x42cb2d;let _0x559e1c={...this[_0x127d39(0x185)](),..._0x3e11e2,'id':_0x4f9ee0(0x6)};_0x559e1c[_0x127d39(0x21e)]={..._0x559e1c[_0x127d39(0x21e)],..._0x3e11e2==null?void 0x0:_0x3e11e2['values']},Reflect[_0x127d39(0x1ed)](_0x559e1c[_0x127d39(0x21e)],_0x2737b3);let _0x482fff=Date[_0x127d39(0x2ad)]();if(_0x559e1c[_0x127d39(0x247)]||=''+_0x482fff,_0x559e1c[_0x127d39(0x194)]||=_0x482fff,_0x559e1c['updatedAt']||=_0x482fff,!this['_commandService']['syncExecuteCommand'](_0x328e28['id'],{'unitId':this[_0x127d39(0x204)][_0x127d39(0x25a)](),'tableId':this[_0x127d39(0x1f9)][_0x127d39(0x25a)](),'sourceRecordId':this[_0x127d39(0x22f)],'record':_0x559e1c,'source':_0x220938['Facade']}))throw Error(_0x127d39(0x275)+this[_0x127d39(0x22f)]+'\x22.');return this['_injector']['createInstance'](J,this[_0x127d39(0x204)],this['_table'],_0x559e1c['id'],this[_0x127d39(0x201)]);}['setOrderKey'](_0x31c512){const _0x3b82d4=_0x42cb2d;return this[_0x3b82d4(0x27d)]['syncExecuteCommand'](_0x474036['id'],{'unitId':this['_base'][_0x3b82d4(0x25a)](),'tableId':this[_0x3b82d4(0x1f9)][_0x3b82d4(0x25a)](),'recordId':this[_0x3b82d4(0x22f)],'orderKey':_0x31c512});}['getLinkedRecordIds'](_0x21315f){const _0x251f97=_0x42cb2d;let _0x1d5ea7=this[_0x251f97(0x2c4)](_0x21315f),_0x195a11=this[_0x251f97(0x213)](_0x1d5ea7['id']);return _0x46817c(_0x195a11);}[_0x42cb2d(0x2c5)](_0x4c7b2a,_0x427852){const _0x201e16=_0x42cb2d;let _0x408aef=this[_0x201e16(0x2c4)](_0x4c7b2a),_0x596c0d=_0x12a947(_0x427852),_0x4aa4b3=_0x102940(this[_0x201e16(0x204)]['getBase']()[_0x201e16(0x295)](),_0x408aef,_0x596c0d);if(!_0x4aa4b3[_0x201e16(0x21a)])throw Error(_0x4aa4b3[_0x201e16(0x1d7)]??_0x201e16(0x1e6));return this[_0x201e16(0x27d)][_0x201e16(0x1ac)](_0x50c883['id'],{'unitId':this[_0x201e16(0x204)][_0x201e16(0x25a)](),'tableId':this[_0x201e16(0x1f9)][_0x201e16(0x25a)](),'recordId':this[_0x201e16(0x22f)],'fieldId':_0x4c7b2a,'value':_0x596c0d,'source':_0x220938[_0x201e16(0x24b)]});}[_0x42cb2d(0x1c3)](_0x116e89,_0x159f82){const _0x253fc2=_0x42cb2d;let _0x37d1f3=this[_0x253fc2(0x2c4)](_0x116e89),_0x624201=_0x34bd1d(_0x37d1f3);if(!_0x624201)throw Error(_0x253fc2(0x1a8)+_0x116e89+_0x253fc2(0x1b5));let _0xc417dd=this[_0x253fc2(0x1fb)](_0x116e89);return _0x624201['multiple']&&_0xc417dd['includes'](_0x159f82)?!0x0:this[_0x253fc2(0x2c5)](_0x116e89,_0x624201['multiple']?[..._0xc417dd,_0x159f82]:[_0x159f82]);}[_0x42cb2d(0x1a9)](_0x3b4237,_0x3b10bb){const _0x525b22=_0x42cb2d;let _0x4a504c=this[_0x525b22(0x1fb)](_0x3b4237);return!_0x4a504c[_0x525b22(0x20a)](_0x3b10bb)||this[_0x525b22(0x2c5)](_0x3b4237,_0x4a504c[_0x525b22(0x250)](_0x55a550=>_0x55a550!==_0x3b10bb));}[_0x42cb2d(0x29d)](_0x5863a2){const _0x2e1031=_0x42cb2d;let _0x65c01=this[_0x2e1031(0x2a0)](_0x5863a2)[_0x2e1031(0x1e4)][_0x2e1031(0x257)](this[_0x2e1031(0x22f)])??null;return _0x65c01?this[_0x2e1031(0x1f9)][_0x2e1031(0x1e3)](_0x65c01):null;}[_0x42cb2d(0x2aa)](_0x1c1caf){const _0x3b6c06=_0x42cb2d;return(this[_0x3b6c06(0x2a0)](_0x1c1caf)[_0x3b6c06(0x1c1)][_0x3b6c06(0x257)](this[_0x3b6c06(0x22f)])??[])[_0x3b6c06(0x230)](_0x4338c1=>{const _0x59d631=_0x3b6c06;let _0xf0b908=this['_table'][_0x59d631(0x1e3)](_0x4338c1);return _0xf0b908?[_0xf0b908]:[];});}['getAncestors'](_0x2f78c1){const _0x1e3e35=_0x42cb2d;let _0x49b1de=this[_0x1e3e35(0x2a0)](_0x2f78c1),_0x2c50e9=[],_0x21f751=_0x49b1de[_0x1e3e35(0x1e4)][_0x1e3e35(0x257)](this[_0x1e3e35(0x22f)])??null;for(;_0x21f751;){let _0x36b687=this[_0x1e3e35(0x1f9)]['getRecordById'](_0x21f751);_0x36b687&&_0x2c50e9['push'](_0x36b687),_0x21f751=_0x49b1de['parentByRecordId'][_0x1e3e35(0x257)](_0x21f751)??null;}return _0x2c50e9;}[_0x42cb2d(0x26e)](_0x5ac9d7){const _0x376213=_0x42cb2d;let _0x1a623c=this[_0x376213(0x2a0)](_0x5ac9d7),_0x2d9b21=_0x1a623c['orderedRecordIds'][_0x376213(0x1d0)](this[_0x376213(0x22f)]),_0x3d1c52=_0x1a623c[_0x376213(0x188)][_0x376213(0x28c)](this['_recordId'])?this[_0x376213(0x2b3)](_0x1a623c['childrenByParentId'],this[_0x376213(0x22f)]):[];return _0x2d9b21<0x0?[]:_0x3d1c52[_0x376213(0x230)](_0x4922b4=>{const _0x2bd080=_0x376213;let _0x3a5f10=this[_0x2bd080(0x1f9)][_0x2bd080(0x1e3)](_0x4922b4);return _0x3a5f10?[_0x3a5f10]:[];});}['setParent'](_0x4842cf,_0x55f66e,_0x5210fb){const _0x1ea76d=_0x42cb2d;return this['_commandService']['syncExecuteCommand'](_0x146970['id'],{'unitId':this[_0x1ea76d(0x204)]['getId'](),'tableId':this[_0x1ea76d(0x1f9)][_0x1ea76d(0x25a)](),'fieldId':_0x4842cf,'recordId':this[_0x1ea76d(0x22f)],'parentRecordId':_0x55f66e,'orderKey':_0x5210fb,'source':_0x220938['Facade']});}['addChild'](_0x581ebe,_0x1d3d57,_0xe95b8a='id',_0x325efa){const _0x3fd996=_0x42cb2d;let _0x525420=this[_0x3fd996(0x1f9)][_0x3fd996(0x1d3)](),_0x5d7986=Date[_0x3fd996(0x2ad)](),_0x28e448={..._0x325efa,'id':_0x4f9ee0(0x6),'values':H(_0x525420,_0x1d3d57,_0xe95b8a),'orderKey':(_0x325efa==null?void 0x0:_0x325efa['orderKey'])||''+_0x5d7986,'createdAt':(_0x325efa==null?void 0x0:_0x325efa[_0x3fd996(0x194)])||_0x5d7986,'updatedAt':(_0x325efa==null?void 0x0:_0x325efa['updatedAt'])||_0x5d7986};if(!this[_0x3fd996(0x27d)][_0x3fd996(0x1ac)](_0x38016d['id'],{'unitId':this[_0x3fd996(0x204)]['getId'](),'tableId':this[_0x3fd996(0x1f9)][_0x3fd996(0x25a)](),'fieldId':_0x581ebe,'parentRecordId':this['_recordId'],'record':_0x28e448,'source':_0x220938['Facade']}))throw Error(_0x3fd996(0x22d)+this[_0x3fd996(0x22f)]+'\x22.');return this[_0x3fd996(0x201)][_0x3fd996(0x24e)](J,this[_0x3fd996(0x204)],this[_0x3fd996(0x1f9)],_0x28e448['id'],this[_0x3fd996(0x201)]);}[_0x42cb2d(0x2a0)](_0x412124){const _0x2f60d7=_0x42cb2d;return _0x4aa1d4(this[_0x2f60d7(0x1f9)][_0x2f60d7(0x1d3)](),_0x412124);}[_0x42cb2d(0x2b3)](_0x5bafde,_0x636cfc){let _0x474cc1=[],_0x53cec5=_0x28a743=>{const _0x1f91a6=_0x4bdd;for(let _0x3ecba2 of _0x5bafde[_0x1f91a6(0x257)](_0x28a743)??[])_0x474cc1[_0x1f91a6(0x1dd)](_0x3ecba2),_0x53cec5(_0x3ecba2);};return _0x53cec5(_0x636cfc),_0x474cc1;}[_0x42cb2d(0x185)](){const _0x23593f=_0x42cb2d;let _0x2f6ad4=this[_0x23593f(0x1f9)]['getTable']()[_0x23593f(0x2d2)][this[_0x23593f(0x22f)]];if(!_0x2f6ad4)throw Error(_0x23593f(0x2d4)+this[_0x23593f(0x22f)]+_0x23593f(0x209));return _0x2f6ad4;}[_0x42cb2d(0x2c4)](_0xba6523){const _0x5df64c=_0x42cb2d;let _0x288581=this[_0x5df64c(0x1f9)][_0x5df64c(0x1d3)]()[_0x5df64c(0x28d)][_0xba6523];if(!_0x288581||_0x288581['type']!==_0x334db4[_0x5df64c(0x29e)])throw Error('[FRecord]:\x20field\x20\x22'+_0xba6523+_0x5df64c(0x1c8));return _0x288581;}[_0x42cb2d(0x24c)](_0x3ac7f2){const _0xd74f16=_0x42cb2d;let _0x40193a=this[_0xd74f16(0x1f9)][_0xd74f16(0x1d3)]()[_0xd74f16(0x28d)][_0x3ac7f2];if(!_0x40193a||_0x40193a[_0xd74f16(0x235)]!==_0x334db4[_0xd74f16(0x1ea)])throw Error(_0xd74f16(0x2c2)+_0x3ac7f2+_0xd74f16(0x176));return _0x40193a;}};Y=J=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d)],Y);function gt(_0x4e5d4b){const _0x117234=_0x42cb2d;return!!(_0x4e5d4b&&typeof _0x4e5d4b==_0x117234(0x26b)&&'id'in _0x4e5d4b&&typeof _0x4e5d4b['id']==_0x117234(0x193)&&_0x117234(0x1e8)in _0x4e5d4b&&typeof _0x4e5d4b[_0x117234(0x1e8)]==_0x117234(0x193));}function _t(_0x3477f1,_0x4835d3,_0x2e5231){const _0x20bda8=_0x42cb2d;if(!gt(_0x3477f1))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x2e5231+_0x20bda8(0x1f2)+_0x4835d3+'\x22\x20is\x20invalid.');return{..._0x3477f1};}let X=class{constructor(_0x4a76c0,_0x4e36ec,_0xad9bf1,_0x10464e,_0x561d7a,_0x553bfc,_0x238ad1){const _0x2a66bb=_0x42cb2d;this[_0x2a66bb(0x204)]=_0x4a76c0,this[_0x2a66bb(0x1f9)]=_0x4e36ec,this[_0x2a66bb(0x259)]=_0xad9bf1,this[_0x2a66bb(0x201)]=_0x10464e,this['_commandService']=_0x561d7a,this['_permissionService']=_0x553bfc,this[_0x2a66bb(0x26a)]=_0x238ad1;}[_0x42cb2d(0x25a)](){const _0x2bf69a=_0x42cb2d;return this[_0x2bf69a(0x259)];}[_0x42cb2d(0x274)](){const _0x3856e2=_0x42cb2d;let _0x3712aa=this[_0x3856e2(0x1f9)]['getId']();return new L(this['_base'][_0x3856e2(0x25a)](),_0x3f6a97(_0x3712aa,this[_0x3856e2(0x259)]),[_0x50fcb8(_0x3712aa)],this[_0x3856e2(0x27d)],this[_0x3856e2(0x2a5)]);}[_0x42cb2d(0x20b)](){const _0x161019=_0x42cb2d;return this[_0x161019(0x26f)]();}[_0x42cb2d(0x214)](){const _0x30767e=_0x42cb2d;return this[_0x30767e(0x26f)]()[_0x30767e(0x1e8)];}['getType'](){const _0x3d2348=_0x42cb2d;return this[_0x3d2348(0x26f)]()['type'];}[_0x42cb2d(0x174)](_0x5bdf48){const _0x5c4ce6=_0x42cb2d;return this['_commandService'][_0x5c4ce6(0x1ac)](_0x3f17b8['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5c4ce6(0x1f9)][_0x5c4ce6(0x25a)](),'viewId':this[_0x5c4ce6(0x259)],'name':_0x5bdf48});}['getConfig'](){const _0x442ce8=_0x42cb2d;let _0x3661e4=this['getType'](),_0x56b278=this[_0x442ce8(0x26f)]()['config'];switch(_0x3661e4){case _0x2dedc2[_0x442ce8(0x2bd)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x173)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x277)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x2ab)]:return _0x56b278;case _0x2dedc2[_0x442ce8(0x23a)]:return _0x56b278;default:return _0x56b278;}}[_0x42cb2d(0x1d2)](_0x2c1a9c){const _0x393e80=_0x42cb2d;return this[_0x393e80(0x27d)]['syncExecuteCommand'](_0x189b25['id'],{'unitId':this[_0x393e80(0x204)]['getId'](),'tableId':this['_table'][_0x393e80(0x25a)](),'viewId':this[_0x393e80(0x259)],'patch':_0x2c1a9c});}[_0x42cb2d(0x249)](){const _0x2f1478=_0x42cb2d;var _0x14adc2;return _0x537bdf['deepClone'](((_0x14adc2=this[_0x2f1478(0x26f)]()[_0x2f1478(0x22b)]['conditionalColoring'])==null?void 0x0:_0x14adc2['rules'])??[]);}[_0x42cb2d(0x1f7)](_0x36c100){const _0x109134=_0x42cb2d;return this[_0x109134(0x27d)][_0x109134(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x109134(0x204)][_0x109134(0x25a)](),'tableId':this['_table'][_0x109134(0x25a)](),'viewId':this['_viewId'],'type':_0x36384f[_0x109134(0x1bb)],'rules':_0x36c100});}[_0x42cb2d(0x283)](_0x5145a9){const _0x6e3f27=_0x42cb2d;return this[_0x6e3f27(0x27d)][_0x6e3f27(0x1ac)](_0x16d73a['id'],{'unitId':this[_0x6e3f27(0x204)][_0x6e3f27(0x25a)](),'tableId':this[_0x6e3f27(0x1f9)][_0x6e3f27(0x25a)](),'viewId':this[_0x6e3f27(0x259)],'type':_0x36384f['Add'],'rule':_0x5145a9});}[_0x42cb2d(0x2a2)](_0x24c4c9){const _0x3a1132=_0x42cb2d;return this[_0x3a1132(0x27d)][_0x3a1132(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x3a1132(0x25a)](),'tableId':this[_0x3a1132(0x1f9)]['getId'](),'viewId':this[_0x3a1132(0x259)],'type':_0x36384f[_0x3a1132(0x1a0)],'ruleId':_0x24c4c9});}[_0x42cb2d(0x2a4)](){const _0x24e85e=_0x42cb2d;return this['_commandService'][_0x24e85e(0x1ac)](_0x16d73a['id'],{'unitId':this['_base'][_0x24e85e(0x25a)](),'tableId':this[_0x24e85e(0x1f9)]['getId'](),'viewId':this[_0x24e85e(0x259)],'type':_0x36384f[_0x24e85e(0x198)]});}[_0x42cb2d(0x1f1)](){const _0x2a1c5e=_0x42cb2d;return this[_0x2a1c5e(0x26f)]()[_0x2a1c5e(0x250)]??null;}[_0x42cb2d(0x2cf)](_0x1e4990){const _0x2d9658=_0x42cb2d;return this[_0x2d9658(0x27d)][_0x2d9658(0x1ac)](_0x95d2fe['id'],{'unitId':this[_0x2d9658(0x204)][_0x2d9658(0x25a)](),'tableId':this[_0x2d9658(0x1f9)][_0x2d9658(0x25a)](),'viewId':this['_viewId'],'filter':_0x1e4990});}[_0x42cb2d(0x1a6)](){const _0x32b1dd=_0x42cb2d;return this[_0x32b1dd(0x26f)]()[_0x32b1dd(0x25b)]??[];}[_0x42cb2d(0x24d)](_0x268899){const _0x27c527=_0x42cb2d;return this[_0x27c527(0x27d)][_0x27c527(0x1ac)](_0x118bc9['id'],{'unitId':this[_0x27c527(0x204)][_0x27c527(0x25a)](),'tableId':this[_0x27c527(0x1f9)][_0x27c527(0x25a)](),'viewId':this['_viewId'],'sort':_0x268899});}[_0x42cb2d(0x2a3)](){const _0x2d71fe=_0x42cb2d;return this[_0x2d71fe(0x26f)]()[_0x2d71fe(0x23e)]??[];}[_0x42cb2d(0x23b)](_0xe009c5){const _0x9596f2=_0x42cb2d;return this[_0x9596f2(0x27d)][_0x9596f2(0x1ac)](_0x37eaa0['id'],{'unitId':this[_0x9596f2(0x204)][_0x9596f2(0x25a)](),'tableId':this[_0x9596f2(0x1f9)][_0x9596f2(0x25a)](),'viewId':this[_0x9596f2(0x259)],'group':_0xe009c5});}[_0x42cb2d(0x1e2)](_0x37deef){const _0x2ae57b=_0x42cb2d;var _0x2e0260;return V(this['_table']['getTable']()[_0x2ae57b(0x28d)][_0x37deef])?((_0x2e0260=this[_0x2ae57b(0x26f)]()['fieldSettings'])==null?void 0x0:_0x2e0260[_0x37deef])??{}:{};}['getVisibleFields'](){const _0x50ac5f=_0x42cb2d;let _0x3760e3=this[_0x50ac5f(0x1f9)][_0x50ac5f(0x1d3)](),_0xe8a7fd=this[_0x50ac5f(0x26f)]();return(_0xe8a7fd['fieldOrder']??_0x3760e3[_0x50ac5f(0x29c)])[_0x50ac5f(0x250)](_0x587338=>{const _0x101b40=_0x50ac5f;var _0x4419b5;let _0x39a2a7=_0x3760e3[_0x101b40(0x28d)][_0x587338];return V(_0x39a2a7)&&!((_0x4419b5=_0xe8a7fd[_0x101b40(0x2a9)])!=null&&(_0x4419b5=_0x4419b5[_0x587338])!=null&&_0x4419b5[_0x101b40(0x253)]);})['map'](_0x1a95e6=>this[_0x50ac5f(0x201)][_0x50ac5f(0x24e)](B,this[_0x50ac5f(0x204)],this['_table'],_0x1a95e6));}[_0x42cb2d(0x1df)](_0x6e7a36,_0x3113e2){const _0x1f2f87=_0x42cb2d;return V(this[_0x1f2f87(0x1f9)][_0x1f2f87(0x1d3)]()[_0x1f2f87(0x28d)][_0x6e7a36])?this[_0x1f2f87(0x27d)][_0x1f2f87(0x1ac)](_0xc297cb['id'],{'unitId':this[_0x1f2f87(0x204)][_0x1f2f87(0x25a)](),'tableId':this[_0x1f2f87(0x1f9)]['getId'](),'viewId':this[_0x1f2f87(0x259)],'fieldId':_0x6e7a36,'visible':_0x3113e2}):!0x1;}['setFieldWidth'](_0x5448e2,_0x39bb42){const _0x2e1628=_0x42cb2d;return V(this['_table'][_0x2e1628(0x1d3)]()[_0x2e1628(0x28d)][_0x5448e2])?this[_0x2e1628(0x27d)][_0x2e1628(0x1ac)](_0x2dfde8['id'],{'unitId':this[_0x2e1628(0x204)][_0x2e1628(0x25a)](),'tableId':this[_0x2e1628(0x1f9)][_0x2e1628(0x25a)](),'viewId':this[_0x2e1628(0x259)],'fieldId':_0x5448e2,'width':_0x39bb42}):!0x1;}[_0x42cb2d(0x1b0)](_0x37b055,_0x35644f){const _0x2889f3=_0x42cb2d;let _0x9a6a90=this[_0x2889f3(0x1f9)]['getTable'](),_0x154074=_0x35644f['beforeFieldId']??_0x35644f[_0x2889f3(0x1ab)];return!V(_0x9a6a90['fields'][_0x37b055])||!_0x154074||!V(_0x9a6a90[_0x2889f3(0x28d)][_0x154074])?!0x1:this[_0x2889f3(0x27d)][_0x2889f3(0x1ac)](_0x3556fb['id'],{'unitId':this[_0x2889f3(0x204)][_0x2889f3(0x25a)](),'tableId':this[_0x2889f3(0x1f9)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x37b055,'target':_0x35644f});}[_0x42cb2d(0x181)](_0x5ca92e){const _0x1a73c9=_0x42cb2d;return this[_0x1a73c9(0x27d)]['syncExecuteCommand'](_0x1f38e3['id'],{'unitId':this[_0x1a73c9(0x204)][_0x1a73c9(0x25a)](),'tableId':this[_0x1a73c9(0x1f9)][_0x1a73c9(0x25a)](),'viewId':this[_0x1a73c9(0x259)],'target':_0x5ca92e});}[_0x42cb2d(0x2cb)](){const _0x18194f=_0x42cb2d;return this[_0x18194f(0x27d)]['syncExecuteCommand'](_0x3ddbc['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'viewId':this[_0x18194f(0x259)]});}[_0x42cb2d(0x256)](){const _0x5c8e0a=_0x42cb2d;return this[_0x5c8e0a(0x26a)]['getProjection'](this[_0x5c8e0a(0x204)][_0x5c8e0a(0x211)]()[_0x5c8e0a(0x295)](),this[_0x5c8e0a(0x1f9)][_0x5c8e0a(0x25a)](),this[_0x5c8e0a(0x259)]);}[_0x42cb2d(0x26f)](){const _0x4e9c75=_0x42cb2d;let _0x5628dc=this[_0x4e9c75(0x1f9)][_0x4e9c75(0x1d3)]()[_0x4e9c75(0x290)][this[_0x4e9c75(0x259)]];if(!_0x5628dc)throw Error(_0x4e9c75(0x233)+this['_viewId']+'\x22\x20does\x20not\x20exist.');return _0x5628dc;}};X=z([R(0x4,_0x35296b),R(0x5,_0x5ad99d),R(0x6,_0x5da3e7)],X);let Z=class{constructor(_0x80f5bb,_0x18fcd9,_0x1b7e81,_0xa5c16d,_0x185bd3,_0x22ff3e){const _0x5cac41=_0x42cb2d;this[_0x5cac41(0x204)]=_0x80f5bb,this['_tableId']=_0x18fcd9,this['_injector']=_0x1b7e81,this[_0x5cac41(0x27d)]=_0xa5c16d,this[_0x5cac41(0x2a5)]=_0x185bd3,this[_0x5cac41(0x26a)]=_0x22ff3e;}['getBase'](){const _0xb2b14c=_0x42cb2d;return this[_0xb2b14c(0x204)][_0xb2b14c(0x211)]();}['getTable'](){const _0x579cf3=_0x42cb2d;return this[_0x579cf3(0x1d4)]();}[_0x42cb2d(0x25a)](){const _0x514b96=_0x42cb2d;return this[_0x514b96(0x292)];}['getPermission'](){const _0x5db8f4=_0x42cb2d;return new L(this[_0x5db8f4(0x211)]()['getUnitId'](),_0x50fcb8(this[_0x5db8f4(0x292)]),[],this[_0x5db8f4(0x27d)],this[_0x5db8f4(0x2a5)]);}[_0x42cb2d(0x1a4)](){const _0x15811c=_0x42cb2d;return _0x1d8e8c(this[_0x15811c(0x1d4)]());}['setHierarchyField'](_0x556039){const _0x36928e=_0x42cb2d;return this[_0x36928e(0x27d)]['syncExecuteCommand'](_0x71b3cc['id'],{'unitId':this[_0x36928e(0x204)][_0x36928e(0x25a)](),'tableId':this[_0x36928e(0x292)],'fieldId':_0x556039});}[_0x42cb2d(0x214)](){const _0x733378=_0x42cb2d;return this['_getTable']()[_0x733378(0x1e8)];}[_0x42cb2d(0x208)](){const _0x3c00b6=_0x42cb2d;let _0x3c3729=this[_0x3c00b6(0x204)][_0x3c00b6(0x211)]()[_0x3c00b6(0x295)]();return _0x7344c5(this[_0x3c00b6(0x1d4)](),_0x3c3729);}[_0x42cb2d(0x174)](_0x47f832){const _0x42c379=_0x42cb2d;let _0x588570=_0x17aac3(this[_0x42c379(0x204)][_0x42c379(0x211)]()[_0x42c379(0x295)](),_0x47f832,this[_0x42c379(0x292)]);if(!_0x588570['valid'])throw Error(_0x42c379(0x261)+_0x47f832+_0x42c379(0x227)+_0x2e61f6+'\x20'+_0x588570[_0x42c379(0x1d7)]);return this[_0x42c379(0x27d)][_0x42c379(0x1ac)](_0x47dfb5['id'],{'unitId':this[_0x42c379(0x204)][_0x42c379(0x25a)](),'tableId':this['_tableId'],'name':_0x47f832});}['search'](_0x2e8ca3,_0x35b41e){const _0x32fcd7=_0x42cb2d;let _0x4e6dbb=this[_0x32fcd7(0x204)][_0x32fcd7(0x211)]()[_0x32fcd7(0x295)](),_0x12fde8=this[_0x32fcd7(0x1d4)]();if(_0x35b41e){let _0x4dd418=this['_projectionService']['getProjection'](_0x4e6dbb,this[_0x32fcd7(0x292)],_0x35b41e),_0x19958f=_0x12fde8['views'][_0x35b41e],_0x479340=_0x2e8ca3[_0x32fcd7(0x1db)]??Tt(_0x12fde8,_0x19958f,_0x4dd418),_0x291ffa=_0x32fcd7(0x240)in _0x4dd418&&Array[_0x32fcd7(0x2b0)](_0x4dd418['rows'])?_0x4dd418[_0x32fcd7(0x240)]:[];return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x479340,'rows':_0x291ffa});}let _0x106534=(_0x12fde8[_0x32fcd7(0x2ae)]?_0x12fde8['recordOrder'][_0x32fcd7(0x276)](_0x3cc06f=>_0x12fde8[_0x32fcd7(0x2d2)][_0x3cc06f]):Object['values'](_0x12fde8[_0x32fcd7(0x2d2)])[_0x32fcd7(0x25b)]((_0x491f26,_0x3e6f5b)=>_0x491f26[_0x32fcd7(0x247)]['localeCompare'](_0x3e6f5b[_0x32fcd7(0x247)])))[_0x32fcd7(0x250)](_0x3d4707=>_0x3d4707)[_0x32fcd7(0x276)](_0x2ae147=>({'recordId':_0x2ae147['id'],'values':_0x2ae147[_0x32fcd7(0x21e)]})),_0x9d5e7d=_0x2e8ca3['fieldIds']??_0x12fde8[_0x32fcd7(0x29c)][_0x32fcd7(0x250)](_0x565f1e=>V(_0x12fde8[_0x32fcd7(0x28d)][_0x565f1e]));return _0x4f0889({..._0x2e8ca3,'table':_0x12fde8,'fieldIds':_0x9d5e7d,'rows':_0x106534});}[_0x42cb2d(0x266)](){const _0xcd4a73=_0x42cb2d;return this['_getTable']()[_0xcd4a73(0x20c)];}[_0x42cb2d(0x224)](){const _0x445177=_0x42cb2d;let _0x407e97=this[_0x445177(0x1d4)]();return _0x407e97['fieldOrder'][_0x445177(0x276)](_0x3ea043=>_0x407e97[_0x445177(0x28d)][_0x3ea043])['filter'](V)['map'](_0x55cdb7=>this['_injector']['createInstance'](B,this[_0x445177(0x204)],this,_0x55cdb7['id']));}['getFieldById'](_0x84c8e2){const _0x40a0dc=_0x42cb2d;let _0x3c5246=this[_0x40a0dc(0x1d4)]()['fields'][_0x84c8e2];return V(_0x3c5246)?this[_0x40a0dc(0x201)][_0x40a0dc(0x24e)](B,this[_0x40a0dc(0x204)],this,_0x3c5246['id']):null;}['getFieldByName'](_0x156bb3){const _0x43fab=_0x42cb2d;let _0x3ec8bf=this[_0x43fab(0x1d4)]()[_0x43fab(0x28d)],_0x2deaf3=Object[_0x43fab(0x21e)](_0x3ec8bf)[_0x43fab(0x220)](_0x18173e=>V(_0x18173e)&&_0x18173e[_0x43fab(0x1e8)]===_0x156bb3);return _0x2deaf3?this[_0x43fab(0x201)]['createInstance'](B,this['_base'],this,_0x2deaf3['id']):null;}[_0x42cb2d(0x175)](){const _0x4e13fd=_0x42cb2d;let _0x50fbd0=this[_0x4e13fd(0x1d4)]()[_0x4e13fd(0x20c)];return this[_0x4e13fd(0x201)]['createInstance'](B,this[_0x4e13fd(0x204)],this,_0x50fbd0);}[_0x42cb2d(0x1a2)](_0x72ae9e,_0x352ea3,_0x5eef85){const _0x1ddcbc=_0x42cb2d;var _0x3f1e40,_0x30e669;if(!Object['values'](_0x334db4)['some'](_0x302688=>_0x302688===_0x352ea3))throw Error(_0x1ddcbc(0x297)+String(_0x352ea3)+'\x22.');if(_0x352ea3===_0x334db4[_0x1ddcbc(0x1ca)]&&this[_0x1ddcbc(0x202)](_0x72ae9e,_0x5eef85),_0x352ea3===_0x334db4[_0x1ddcbc(0x29e)]&&(typeof(_0x5eef85==null||(_0x3f1e40=_0x5eef85[_0x1ddcbc(0x251)])==null||(_0x3f1e40=_0x3f1e40['config'])==null?void 0x0:_0x3f1e40[_0x1ddcbc(0x177)])!=_0x1ddcbc(0x193)||typeof _0x5eef85[_0x1ddcbc(0x251)][_0x1ddcbc(0x22b)][_0x1ddcbc(0x279)]!=_0x1ddcbc(0x1ce)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x1edd51={..._0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x251)],'id':_0x4f9ee0(0x6),'name':_0x72ae9e,'type':_0x352ea3,'config':(_0x5eef85==null||(_0x30e669=_0x5eef85[_0x1ddcbc(0x251)])==null?void 0x0:_0x30e669['config'])??{}};if(!this['_commandService'][_0x1ddcbc(0x1ac)](_0x89725e['id'],{'unitId':this[_0x1ddcbc(0x204)]['getId'](),'tableId':this[_0x1ddcbc(0x292)],'field':_0x1edd51,'index':_0x5eef85==null?void 0x0:_0x5eef85[_0x1ddcbc(0x1be)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x72ae9e+'\x22');return this[_0x1ddcbc(0x201)][_0x1ddcbc(0x24e)](B,this[_0x1ddcbc(0x204)],this,_0x1edd51['id']);}[_0x42cb2d(0x202)](_0x3d410e,_0x41d5ca){const _0x36142b=_0x42cb2d;var _0x5d197a;if(!_0x41d5ca||!('externalReferences'in _0x41d5ca)||!Array[_0x36142b(0x2b0)](_0x41d5ca['externalReferences']))throw Error(_0x36142b(0x196));let _0xa61f9b=this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x4ec7a3['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'tableId':this['_tableId'],'formula':String(((_0x5d197a=_0x41d5ca[_0x36142b(0x251)])==null||(_0x5d197a=_0x5d197a[_0x36142b(0x22b)])==null?void 0x0:_0x5d197a[_0x36142b(0x236)])??'')});if(!_0xa61f9b['valid'])throw Error(_0xa61f9b['reason']??_0x36142b(0x1b6));if(_0x41d5ca[_0x36142b(0x26d)][_0x36142b(0x1b9)]>0x0&&!this[_0x36142b(0x27d)][_0x36142b(0x1ac)](_0x5c4e67['id'],{'unitId':this[_0x36142b(0x204)]['getId'](),'references':_0x41d5ca['externalReferences']}))throw Error(_0x36142b(0x294)+_0x3d410e+'\x22');}[_0x42cb2d(0x291)](){const _0xd3e9fb=_0x42cb2d;return this['_resolveRecordIds']()[_0xd3e9fb(0x276)](_0xe40d9e=>this[_0xd3e9fb(0x201)][_0xd3e9fb(0x24e)](Y,this['_base'],this,_0xe40d9e,this[_0xd3e9fb(0x201)]));}[_0x42cb2d(0x1e3)](_0x2e91d6){const _0x179df2=_0x42cb2d;return this[_0x179df2(0x1d4)]()['records'][_0x2e91d6]?this[_0x179df2(0x201)]['createInstance'](Y,this[_0x179df2(0x204)],this,_0x2e91d6,this[_0x179df2(0x201)]):null;}['queryRecords'](_0x29717f={}){const _0x15de20=_0x42cb2d;let _0x18f59f=this[_0x15de20(0x1d4)](),_0x5722b6=this['_resolveRecordIds'](_0x29717f),_0x3d61b8=Math[_0x15de20(0x190)](0x0,_0x29717f['offset']??0x0),_0x1dbeed=_0x29717f[_0x15de20(0x23d)]==null?null:Math['max'](0x0,_0x29717f[_0x15de20(0x23d)]),_0x4a0043=yt(_0x5722b6[_0x15de20(0x276)](_0x168067=>_0x18f59f[_0x15de20(0x2d2)][_0x168067])[_0x15de20(0x250)](_0x18e299=>xt(_0x18e299,_0x18f59f,_0x29717f[_0x15de20(0x250)])),_0x18f59f,_0x29717f[_0x15de20(0x25b)]);return{'records':vt(_0x4a0043,_0x29717f)[_0x15de20(0x276)](_0x1332ec=>this[_0x15de20(0x201)]['createInstance'](Y,this[_0x15de20(0x204)],this,_0x1332ec['id'],this[_0x15de20(0x201)])),'total':_0x4a0043[_0x15de20(0x1b9)],'offset':_0x3d61b8,'limit':_0x1dbeed,'hasMore':_0x1dbeed!=null&&_0x3d61b8+_0x1dbeed<_0x4a0043['length']};}['addRecord'](_0x9980f7,_0x4f64e4='id',_0x2188ab){const _0x38113c=_0x42cb2d;let _0x5ad9f6=this[_0x38113c(0x1d4)](),_0xf304e6=Date[_0x38113c(0x2ad)](),_0x2e79ed={..._0x2188ab,'id':_0x4f9ee0(0x6),'values':H(_0x5ad9f6,_0x9980f7,_0x4f64e4),'orderKey':(_0x2188ab==null?void 0x0:_0x2188ab['orderKey'])||''+_0xf304e6,'createdAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x194)])||_0xf304e6,'updatedAt':(_0x2188ab==null?void 0x0:_0x2188ab[_0x38113c(0x25d)])||_0xf304e6};if(!this[_0x38113c(0x27d)]['syncExecuteCommand'](_0x470e4e['id'],{'unitId':this[_0x38113c(0x204)][_0x38113c(0x25a)](),'tableId':this[_0x38113c(0x292)],'record':_0x2e79ed,'source':_0x220938[_0x38113c(0x24b)]}))throw Error(_0x38113c(0x27b)+_0x2e79ed['id']+'\x22');return this['_injector'][_0x38113c(0x24e)](Y,this['_base'],this,_0x2e79ed['id'],this['_injector']);}[_0x42cb2d(0x1de)](_0xebe596){const _0x1874c1=_0x42cb2d;if(!_0xebe596[_0x1874c1(0x1b9)])return[];let _0x34376d=this[_0x1874c1(0x1d4)](),_0x23af18=Date[_0x1874c1(0x2ad)](),_0x2d605c=_0xebe596['map']((_0x354a81,_0x445284)=>{const _0xeb9a2b=_0x1874c1;var _0x48537c,_0x378882,_0x245301;return{..._0x354a81[_0xeb9a2b(0x1e1)],'id':_0x4f9ee0(0x6),'values':H(_0x34376d,_0x354a81['values'],_0x354a81[_0xeb9a2b(0x1da)]??'id'),'orderKey':((_0x48537c=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x48537c[_0xeb9a2b(0x247)])||''+(_0x23af18+_0x445284),'createdAt':((_0x378882=_0x354a81[_0xeb9a2b(0x1e1)])==null?void 0x0:_0x378882[_0xeb9a2b(0x194)])||_0x23af18,'updatedAt':((_0x245301=_0x354a81['record'])==null?void 0x0:_0x245301[_0xeb9a2b(0x25d)])||_0x23af18};});if(!this['_commandService']['syncExecuteCommand'](_0x30ed55['id'],{'unitId':this[_0x1874c1(0x204)][_0x1874c1(0x25a)](),'tableId':this[_0x1874c1(0x292)],'records':_0x2d605c,'source':_0x220938[_0x1874c1(0x24b)]}))throw Error(_0x1874c1(0x278));return _0x2d605c[_0x1874c1(0x276)](_0x1056a5=>this['_injector'][_0x1874c1(0x24e)](Y,this[_0x1874c1(0x204)],this,_0x1056a5['id'],this[_0x1874c1(0x201)]));}[_0x42cb2d(0x19a)](_0x57e139){const _0x3a0975=_0x42cb2d;return!_0x57e139[_0x3a0975(0x1b9)]||this[_0x3a0975(0x27d)][_0x3a0975(0x1ac)](_0x259e76['id'],{'unitId':this[_0x3a0975(0x204)][_0x3a0975(0x25a)](),'tableId':this['_tableId'],'recordIds':_0x57e139,'source':_0x220938[_0x3a0975(0x24b)]});}['getRange'](_0x8d8eb9,_0x2b7435,_0x3e6610=0x1,_0x41fa14=0x1){const _0x54001f=_0x42cb2d;return this['_injector'][_0x54001f(0x24e)](K,this[_0x54001f(0x204)],this,{'startRow':_0x8d8eb9,'endRow':_0x8d8eb9+_0x3e6610-0x1,'startColumn':_0x2b7435,'endColumn':_0x2b7435+_0x41fa14-0x1},this[_0x54001f(0x201)]);}[_0x42cb2d(0x2d1)](){const _0x1554aa=_0x42cb2d;var _0x2d526a;let _0x1d0e05=_0x240454(this[_0x1554aa(0x1d4)]()),_0x2e54b3=((_0x2d526a=_0x1d0e05[_0x1554aa(0x2ae)])==null?void 0x0:_0x2d526a[_0x1554aa(0x1b9)])??0x0,_0x4f6b2b=_0x1d0e05[_0x1554aa(0x29c)][_0x1554aa(0x250)](_0xfc249d=>V(_0x1d0e05[_0x1554aa(0x28d)][_0xfc249d]))[_0x1554aa(0x1b9)];return this[_0x1554aa(0x2bc)](0x0,0x0,Math['max'](_0x2e54b3,0x1),Math[_0x1554aa(0x190)](_0x4f6b2b,0x1));}['getViews'](){const _0xe46a05=_0x42cb2d;let _0x1d590a=this['_getTable']();return _0x1d590a[_0xe46a05(0x22c)][_0xe46a05(0x250)](_0x3b231a=>_0x1d590a[_0xe46a05(0x290)][_0x3b231a])[_0xe46a05(0x276)](_0x3782a4=>this[_0xe46a05(0x201)][_0xe46a05(0x24e)](X,this[_0xe46a05(0x204)],this,_0x3782a4,this[_0xe46a05(0x201)]));}[_0x42cb2d(0x2d3)](_0x5b4b18){const _0xef8d87=_0x42cb2d;return this['_getTable']()[_0xef8d87(0x290)][_0x5b4b18]?this[_0xef8d87(0x201)][_0xef8d87(0x24e)](X,this[_0xef8d87(0x204)],this,_0x5b4b18,this['_injector']):null;}[_0x42cb2d(0x1ee)](_0x541321){const _0x5bc91f=_0x42cb2d;let _0x45d392=this[_0x5bc91f(0x1d4)](),_0x559372=Object['values'](_0x45d392[_0x5bc91f(0x290)])['find'](_0x38e5cb=>_0x38e5cb[_0x5bc91f(0x1e8)]===_0x541321);return _0x559372?this[_0x5bc91f(0x201)][_0x5bc91f(0x24e)](X,this[_0x5bc91f(0x204)],this,_0x559372['id'],this['_injector']):null;}[_0x42cb2d(0x2a1)](_0x1cbe00,_0x48031d,_0x1abb2f){const _0x74a241=_0x42cb2d;var _0x334cfd,_0x4d3a06,_0x26a649,_0x52d818;let _0x3d36c9=this[_0x74a241(0x1d4)](),_0x40a17d=(_0x1abb2f==null||(_0x334cfd=_0x1abb2f['view'])==null?void 0x0:_0x334cfd[_0x74a241(0x29c)])??_0x3d36c9['fieldOrder'],_0x34e6fe=[_0x2737b3,..._0x40a17d[_0x74a241(0x250)](_0x48aec1=>V(_0x3d36c9[_0x74a241(0x28d)][_0x48aec1]))],_0x54381a={..._0x1abb2f==null?void 0x0:_0x1abb2f[_0x74a241(0x1b8)],'id':_0x4f9ee0(0x6),'name':_0x1cbe00,'type':_0x48031d,'tableId':this[_0x74a241(0x292)],'config':(_0x1abb2f==null||(_0x4d3a06=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x4d3a06[_0x74a241(0x22b)])??{},'fieldOrder':_0x34e6fe,'fieldSettings':{..._0x1abb2f==null||(_0x26a649=_0x1abb2f[_0x74a241(0x1b8)])==null?void 0x0:_0x26a649['fieldSettings'],[_0x2737b3]:{..._0x1abb2f==null||(_0x52d818=_0x1abb2f[_0x74a241(0x1b8)])==null||(_0x52d818=_0x52d818[_0x74a241(0x2a9)])==null?void 0x0:_0x52d818[_0x2737b3],'hidden':!0x0}}};if(!this[_0x74a241(0x27d)][_0x74a241(0x1ac)](_0x471b73['id'],{'unitId':this[_0x74a241(0x204)][_0x74a241(0x25a)](),'tableId':this[_0x74a241(0x292)],'view':_0x54381a,'index':_0x1abb2f==null?void 0x0:_0x1abb2f['index']}))throw Error(_0x74a241(0x17b)+_0x1cbe00+'\x22');return this[_0x74a241(0x201)][_0x74a241(0x24e)](X,this[_0x74a241(0x204)],this,_0x54381a['id'],this['_injector']);}[_0x42cb2d(0x21b)](){const _0x4b77e6=_0x42cb2d;let _0x4f4ea0=this[_0x4b77e6(0x1d4)](),_0xeac47d=_0x4f4ea0[_0x4b77e6(0x29c)]['filter'](_0xced9f4=>V(_0x4f4ea0[_0x4b77e6(0x28d)][_0xced9f4])),_0x254fff=_0x4f4ea0[_0x4b77e6(0x22c)]['filter'](_0x1fea3a=>_0x4f4ea0[_0x4b77e6(0x290)][_0x1fea3a]);return{'id':_0x4f4ea0['id'],'name':_0x4f4ea0[_0x4b77e6(0x1e8)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4f4ea0[_0x4b77e6(0x20c)],'fieldIds':_0xeac47d,'viewIds':_0x254fff,'recordCount':this[_0x4b77e6(0x25c)]()[_0x4b77e6(0x1b9)],'fields':_0xeac47d[_0x4b77e6(0x276)](_0x1bbee3=>{const _0x5dbea0=_0x4b77e6;let _0x5dd2c1=_0x4f4ea0[_0x5dbea0(0x28d)][_0x1bbee3];return{'id':_0x5dd2c1['id'],'name':_0x5dd2c1[_0x5dbea0(0x1e8)],'type':_0x5dd2c1['type'],'config':_0x5dd2c1['config'],'readonly':_0x5dd2c1[_0x5dbea0(0x18a)],'description':_0x5dd2c1[_0x5dbea0(0x218)]};}),'views':_0x254fff[_0x4b77e6(0x276)](_0x23ef8c=>{const _0x4006b1=_0x4b77e6;let _0x3aacda=_0x4f4ea0[_0x4006b1(0x290)][_0x23ef8c];return{'id':_0x3aacda['id'],'name':_0x3aacda['name'],'type':_0x3aacda['type']};})};}[_0x42cb2d(0x1d4)](){const _0x4feaeb=_0x42cb2d;let _0x2ae977=this[_0x4feaeb(0x204)]['getBase']()[_0x4feaeb(0x295)]()[_0x4feaeb(0x1af)][this[_0x4feaeb(0x292)]];if(!_0x2ae977)throw Error(_0x4feaeb(0x1b7)+this[_0x4feaeb(0x292)]+_0x4feaeb(0x209));return _0x2ae977;}['_resolveRecordIds'](_0x52ac23={}){const _0x25c42c=_0x42cb2d;let _0x12e0d8=this[_0x25c42c(0x204)]['getBase']()['getSnapshot'](),_0x2f82d8=this['_getTable']();if(_0x52ac23[_0x25c42c(0x2d0)]){let _0x110b71=this[_0x25c42c(0x26a)]['getProjection'](_0x12e0d8,this[_0x25c42c(0x292)],_0x52ac23[_0x25c42c(0x2d0)]);if(_0x25c42c(0x240)in _0x110b71&&Array['isArray'](_0x110b71['rows']))return _0x110b71[_0x25c42c(0x240)][_0x25c42c(0x276)](_0x2cb03d=>_0x2cb03d[_0x25c42c(0x192)]);}return(_0x2f82d8[_0x25c42c(0x2ae)]?_0x2f82d8[_0x25c42c(0x2ae)][_0x25c42c(0x276)](_0x17be18=>_0x2f82d8['records'][_0x17be18]):Object[_0x25c42c(0x21e)](_0x2f82d8[_0x25c42c(0x2d2)])[_0x25c42c(0x25b)]((_0x542cb4,_0x426351)=>_0x542cb4[_0x25c42c(0x247)][_0x25c42c(0x1eb)](_0x426351[_0x25c42c(0x247)])))[_0x25c42c(0x250)](_0x1b0e87=>_0x1b0e87)[_0x25c42c(0x276)](_0x2de2a5=>_0x2de2a5['id']);}};Z=z([R(0x3,_0x35296b),R(0x4,_0x5ad99d),R(0x5,_0x5da3e7)],Z);function vt(_0xa0c645,_0x32dd2e){const _0x53b26f=_0x42cb2d;let _0x30ecc5=Math[_0x53b26f(0x190)](0x0,_0x32dd2e[_0x53b26f(0x2bb)]??0x0);return _0x32dd2e['limit']==null?_0xa0c645['slice'](_0x30ecc5):_0xa0c645[_0x53b26f(0x2cd)](_0x30ecc5,_0x30ecc5+Math[_0x53b26f(0x190)](0x0,_0x32dd2e['limit']));}function yt(_0x1e760,_0x3b51fe,_0x51c376=[]){const _0x41e460=_0x42cb2d;return _0x51c376[_0x41e460(0x1b9)]?[..._0x1e760][_0x41e460(0x25b)]((_0x13b2ee,_0x5bccce)=>{const _0x1ca883=_0x41e460;for(let _0x33921b of _0x51c376){var _0x16a1fe;let _0x48d70d=_0x33921b[_0x1ca883(0x17d)]===_0x42481e['DESC']?-0x1:0x1,_0x4a965c=bt(_0x13b2ee[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],_0x5bccce[_0x1ca883(0x21e)][_0x33921b[_0x1ca883(0x21c)]],(_0x16a1fe=_0x3b51fe[_0x1ca883(0x28d)][_0x33921b[_0x1ca883(0x21c)]])==null?void 0x0:_0x16a1fe[_0x1ca883(0x235)]);if(_0x4a965c!==0x0)return _0x4a965c*_0x48d70d;}return String(_0x13b2ee['orderKey']??_0x13b2ee['id'])[_0x1ca883(0x1eb)](String(_0x5bccce['orderKey']??_0x5bccce['id']));}):_0x1e760;}function bt(_0x55742c,_0x31f125,_0x373462){const _0x34201c=_0x42cb2d;return _0x55742c==null&&_0x31f125==null?0x0:_0x55742c==null?-0x1:_0x31f125==null?0x1:typeof _0x55742c==_0x34201c(0x226)&&typeof _0x31f125=='number'?_0x55742c-_0x31f125:_0x373462===_0x334db4['Date']?Number(_0x55742c)-Number(_0x31f125):String(_0x55742c)[_0x34201c(0x1eb)](String(_0x31f125));}function xt(_0x313a63,_0x4a4741,_0x41049c){const _0x46af69=_0x42cb2d;var _0x18e264;if(!_0x41049c||!((_0x18e264=_0x41049c[_0x46af69(0x245)])!=null&&_0x18e264[_0x46af69(0x1b9)]))return!0x0;let {conjunction:_0x1cf314=_0x5a09a5['OR'],conditions:_0x2e834d}=_0x41049c;return _0x1cf314===_0x5a09a5[_0x46af69(0x1ad)]&&_0x2e834d[_0x46af69(0x1b9)]>0x1?_0x2e834d[_0x46af69(0x296)](_0x4118ca=>St(_0x313a63,_0x4a4741,_0x4118ca)):_0x2e834d['some'](_0x6f9237=>St(_0x313a63,_0x4a4741,_0x6f9237));}function St(_0xd49a1e,_0x3dfc3e,_0xd9539c){const _0x5aa5ab=_0x42cb2d;let _0x31b60f=_0xd49a1e[_0x5aa5ab(0x21e)][_0xd9539c[_0x5aa5ab(0x21c)]],_0x33e26e=_0x3dfc3e[_0x5aa5ab(0x28d)][_0xd9539c['fieldId']];if(Ct(_0xd9539c)){let _0x59c15d=wt(_0xd9539c)[_0x5aa5ab(0x287)](String(_0x31b60f??''));return _0xd9539c[_0x5aa5ab(0x1fd)]===_0x5aa5ab(0x1ff)?_0x59c15d:!_0x59c15d;}return!_0x33e26e||_0x17312a(_0x31b60f,_0xd9539c[_0x5aa5ab(0x1fd)],_0xd9539c[_0x5aa5ab(0x2b1)],_0x33e26e);}function Ct(_0x59ae7f){const _0x268577=_0x42cb2d;return _0x59ae7f[_0x268577(0x1fd)]===_0x268577(0x1ff)||_0x59ae7f['operator']===_0x268577(0x239);}function wt(_0x33ea30){const _0x3ef8a7=_0x42cb2d;let _0x5cd261=String(_0x33ea30['value']??'');if(_0x5cd261[_0x3ef8a7(0x1b9)]>0x200)throw Error(_0x3ef8a7(0x199));try{return new RegExp(_0x5cd261,_0x33ea30[_0x3ef8a7(0x1c2)]?void 0x0:'i');}catch(_0x65b6da){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x5cd261+'.\x20'+(_0x65b6da instanceof Error?_0x65b6da['message']:String(_0x65b6da)));}}function Tt(_0x14c47a,_0x2d3a8a,_0x2cef0e){const _0x3175ff=_0x42cb2d;if(_0x2cef0e[_0x3175ff(0x235)]!==_0x3175ff(0x207)&&_0x2cef0e['type']!==_0x3175ff(0x2d5)){var _0x4e6fe0;if(_0x2cef0e['type']===_0x2dedc2['Kanban']){var _0x5ca0a6;let _0x4c18cd=[((_0x5ca0a6=_0x2cef0e[_0x3175ff(0x28d)])==null||(_0x5ca0a6=_0x5ca0a6[0x0])==null?void 0x0:_0x5ca0a6['id'])??_0x14c47a[_0x3175ff(0x20c)],..._0x2cef0e[_0x3175ff(0x1e5)]??[]];return Array['from'](new Set(_0x4c18cd[_0x3175ff(0x250)](_0x4509f5=>!!_0x14c47a[_0x3175ff(0x28d)][_0x4509f5])));}if((_0x4e6fe0=_0x2cef0e[_0x3175ff(0x28d)])!=null&&_0x4e6fe0['length'])return _0x2cef0e[_0x3175ff(0x28d)][_0x3175ff(0x276)](_0x1dfc72=>_0x1dfc72['id'])[_0x3175ff(0x250)](_0x26cfaa=>{const _0x340325=_0x3175ff;var _0x50183e;return!(!_0x14c47a[_0x340325(0x28d)][_0x26cfaa]||_0x2d3a8a!=null&&(_0x50183e=_0x2d3a8a[_0x340325(0x2a9)])!=null&&(_0x50183e=_0x50183e[_0x26cfaa])!=null&&_0x50183e[_0x340325(0x253)]);});}return _0x14c47a[_0x3175ff(0x29c)][_0x3175ff(0x250)](_0x34a76c=>{const _0x28c045=_0x3175ff;var _0xd6da72;return!(!_0x14c47a[_0x28c045(0x28d)][_0x34a76c]||_0x2d3a8a!=null&&(_0xd6da72=_0x2d3a8a[_0x28c045(0x2a9)])!=null&&(_0xd6da72=_0xd6da72[_0x34a76c])!=null&&_0xd6da72[_0x28c045(0x253)]);});}let Q=class extends _0x37c8e5[_0x42cb2d(0x238)]{constructor(_0x33eb5e,_0x2f26b1,_0x25f8b7,_0xdaa545,_0x4e2e5f){const _0x56e8b5=_0x42cb2d;super(),this[_0x56e8b5(0x204)]=_0x33eb5e,this['_injector']=_0x2f26b1,this['_resourceLoaderService']=_0x25f8b7,this['_commandService']=_0xdaa545,this[_0x56e8b5(0x2a5)]=_0x4e2e5f;}['getBase'](){return this['_base'];}[_0x42cb2d(0x25a)](){return this['_base']['getUnitId']();}[_0x42cb2d(0x274)](){const _0x12e533=_0x42cb2d;return new at(this['getId'](),this[_0x12e533(0x27d)],this['_permissionService']);}[_0x42cb2d(0x217)](){const _0x434b9e=_0x42cb2d;return this[_0x434b9e(0x234)]['saveUnit'](this[_0x434b9e(0x25a)]())??_0x537bdf[_0x434b9e(0x1cb)](this[_0x434b9e(0x204)][_0x434b9e(0x295)]());}[_0x42cb2d(0x214)](){const _0x3dd91d=_0x42cb2d;return this[_0x3dd91d(0x204)][_0x3dd91d(0x295)]()[_0x3dd91d(0x1e8)];}[_0x42cb2d(0x174)](_0xfe5b06){const _0x28a099=_0x42cb2d;this[_0x28a099(0x27d)][_0x28a099(0x1ac)](_0x3cf18e['id'],{'unitId':this[_0x28a099(0x25a)](),'name':_0xfe5b06});}[_0x42cb2d(0x1aa)](){const _0x473131=_0x42cb2d;let _0x2ba8bb=this['_base']['getSnapshot']();return _0x2ba8bb[_0x473131(0x271)][_0x473131(0x276)](_0x466bc7=>_0x2ba8bb[_0x473131(0x1af)][_0x466bc7])['filter'](_0x270c8a=>_0x270c8a)[_0x473131(0x276)](_0x2520b6=>this[_0x473131(0x201)][_0x473131(0x24e)](Z,this,_0x2520b6['id'],this[_0x473131(0x201)]));}[_0x42cb2d(0x242)](_0x3c760d){const _0x1cc0d6=_0x42cb2d;let _0x4875bb=this[_0x1cc0d6(0x204)][_0x1cc0d6(0x295)]()[_0x1cc0d6(0x1af)][_0x3c760d];return _0x4875bb?this[_0x1cc0d6(0x201)][_0x1cc0d6(0x24e)](Z,this,_0x4875bb['id'],this[_0x1cc0d6(0x201)]):null;}[_0x42cb2d(0x221)](_0xba3874){const _0x4a8af3=_0x42cb2d;let _0x25aee4=this['_base']['getSnapshot'](),_0x185853=Object[_0x4a8af3(0x21e)](_0x25aee4[_0x4a8af3(0x1af)])[_0x4a8af3(0x220)](_0x18eafc=>_0x18eafc[_0x4a8af3(0x1e8)]===_0xba3874);return _0x185853?this[_0x4a8af3(0x201)][_0x4a8af3(0x24e)](Z,this,_0x185853['id'],this[_0x4a8af3(0x201)]):null;}[_0x42cb2d(0x1d5)](_0xa96d05,_0x2e27a4){const _0x24d228=_0x42cb2d;let _0xa708d5=_0x13ff92({'id':_0x4f9ee0(),'name':_0xa96d05,..._0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)],'primaryFieldName':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1cc)]}),_0x7f6990=_0x537bdf[_0x24d228(0x1c9)](_0xa708d5,(_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x269)])??{}),_0x1fa735=_0x17aac3(this[_0x24d228(0x204)][_0x24d228(0x295)](),_0x7f6990[_0x24d228(0x1e8)]);if(!_0x1fa735[_0x24d228(0x21a)])throw Error(_0x24d228(0x1f3)+_0x7f6990[_0x24d228(0x1e8)]+_0x24d228(0x227)+_0x2e61f6+'\x20'+_0x1fa735[_0x24d228(0x1d7)]);if(!this[_0x24d228(0x27d)][_0x24d228(0x1ac)](_0x1d6ad3['id'],{'unitId':this['_base'][_0x24d228(0x1e0)](),'table':_0x7f6990,'index':_0x2e27a4==null?void 0x0:_0x2e27a4[_0x24d228(0x1be)]}))throw Error(_0x24d228(0x1d8)+_0xa96d05+'\x22.');return this['_injector'][_0x24d228(0x24e)](Z,this,_0x7f6990['id'],this[_0x24d228(0x201)]);}[_0x42cb2d(0x25e)](_0xf0ce38){const _0x521bae=_0x42cb2d;let _0x5b34c1=typeof _0xf0ce38==_0x521bae(0x193)?_0xf0ce38:_0xf0ce38[_0x521bae(0x25a)]();if(!this[_0x521bae(0x27d)][_0x521bae(0x1ac)](_0x359c6b['id'],{'unitId':this[_0x521bae(0x204)]['getUnitId'](),'tableId':_0x5b34c1}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x5b34c1+'\x22.');return!0x0;}[_0x42cb2d(0x1c4)](_0x225ee9,_0x31ae80){const _0x6d905d=_0x42cb2d;let _0xa6deaf=this[_0x6d905d(0x204)]['getSnapshot'](),_0x1f9bdd=typeof _0x225ee9==_0x6d905d(0x193)?_0x225ee9:_0x225ee9['getId'](),_0xe27d89=_0xa6deaf[_0x6d905d(0x1af)][_0x1f9bdd];if(!_0xe27d89)throw Error(_0x6d905d(0x1fa)+_0x1f9bdd+'\x22\x20does\x20not\x20exist.');let _0x23715e=_0xa6deaf[_0x6d905d(0x271)][_0x6d905d(0x1d0)](_0x1f9bdd)+0x1,_0x33244a=_0x4f9ee0(),_0x3650cf=_0x4ca2a4(_0xe27d89,{'id':_0x33244a,'name':_0x242756(_0xa6deaf,_0xe27d89[_0x6d905d(0x1e8)]+'\x20Copy'),'includeRecords':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19b)])??!0x1,'regenerateViewIds':(_0x31ae80==null?void 0x0:_0x31ae80[_0x6d905d(0x19c)])??!0x1});if(!this[_0x6d905d(0x27d)][_0x6d905d(0x1ac)](_0x1d6ad3['id'],{'unitId':this[_0x6d905d(0x204)][_0x6d905d(0x1e0)](),'table':_0x3650cf,'index':_0x23715e}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x1f9bdd+'\x22.');return this[_0x6d905d(0x201)][_0x6d905d(0x24e)](Z,this,_0x3650cf['id'],this[_0x6d905d(0x201)]);}[_0x42cb2d(0x21b)](){const _0x1df98c=_0x42cb2d;let _0x196813=this['_base'][_0x1df98c(0x295)]();return{'id':_0x196813['id'],'name':_0x196813[_0x1df98c(0x1e8)],'tables':this['getTables']()[_0x1df98c(0x276)](_0x326cdc=>_0x326cdc[_0x1df98c(0x21b)]())};}};Q=z([R(0x1,_0x18fc25(_0x7ee076)),R(0x2,_0x180241),R(0x3,_0x35296b),R(0x4,_0x5ad99d)],Q);var Et=class extends _0x13f4e8{[_0x42cb2d(0x273)](){const _0x1d9d05=_0x42cb2d;this[_0x1d9d05(0x24a)](),this['_initBaseAfterEvents']();}['createBase'](_0xf63b95={},_0x5e588b){const _0x5a9a14=_0x42cb2d;let _0x197fbe=this[_0x5a9a14(0x180)][_0x5a9a14(0x241)](_0xfc0289['UNIVER_BASE'],_0xf63b95,_0x5e588b);return this[_0x5a9a14(0x201)][_0x5a9a14(0x24e)](Q,_0x197fbe);}[_0x42cb2d(0x2b8)](){const _0x5b2afb=_0x42cb2d;let _0x21fd5d=this[_0x5b2afb(0x180)][_0x5b2afb(0x1a7)](_0xfc0289[_0x5b2afb(0x28e)]);return _0x21fd5d?this[_0x5b2afb(0x201)]['createInstance'](Q,_0x21fd5d):null;}[_0x42cb2d(0x211)](_0x4f15cf){const _0x561793=_0x42cb2d;let _0x5efc46=this[_0x561793(0x180)][_0x561793(0x1d1)](_0x4f15cf,_0xfc0289['UNIVER_BASE']);return _0x5efc46?this[_0x561793(0x201)][_0x561793(0x24e)](Q,_0x5efc46):null;}['getBases'](){const _0x3934ab=_0x42cb2d;return this['_univerInstanceService'][_0x3934ab(0x255)](_0xfc0289[_0x3934ab(0x28e)])[_0x3934ab(0x276)](_0x251e8a=>this[_0x3934ab(0x201)][_0x3934ab(0x24e)](Q,_0x251e8a));}[_0x42cb2d(0x2a8)](){const _0x2acfcf=_0x42cb2d;this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x200)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted']((_0x1cd831,_0x1aa7d7)=>{const _0x304d64=_0x2acfcf;var _0x1f0e3d;if(!$(_0x1cd831,_0x178c24))return;let _0xefd6d5=_0x1cd831[_0x304d64(0x1fe)];if(!((_0x1f0e3d=_0xefd6d5[_0x304d64(0x2c7)])!=null&&_0x1f0e3d[_0x304d64(0x1b9)]))return;let _0x1b35fd=this['getBase'](_0xefd6d5[_0x304d64(0x189)]),_0x263da9=_0x1b35fd==null?void 0x0:_0x1b35fd['getTableById'](_0xefd6d5['hierarchyChanges'][0x0][_0x304d64(0x1bf)]);if(!_0x1b35fd||!_0x263da9)return;let _0x18ee2c={'base':_0x1b35fd,'table':_0x263da9,'changes':_0xefd6d5[_0x304d64(0x2c7)],'source':_0x1aa7d7!=null&&_0x1aa7d7['fromCollab']?_0x220938[_0x304d64(0x2ca)]:_0xefd6d5[_0x304d64(0x2b5)]??_0x220938['UI']};this[_0x304d64(0x2c9)](this[_0x304d64(0x231)][_0x304d64(0x200)],_0x18ee2c);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x2cc)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0xf16f56=>{const _0x4e830b=_0x2acfcf;if(_0xf16f56['id']!==_0x1d6ad3['id'])return;let {unitId:_0x36a4fd,table:_0x580e09,index:_0x545d8c}=_0xf16f56[_0x4e830b(0x1fe)],_0x3d510d=this['getBase'](_0x36a4fd);if(!_0x3d510d)return;let _0x5a35a0={'base':_0x3d510d,'table':_0x580e09,'index':_0x545d8c};this[_0x4e830b(0x2c9)](this['Event'][_0x4e830b(0x2cc)],_0x5a35a0);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x18f)],()=>this[_0x2acfcf(0x27d)]['onCommandExecuted'](_0x5b4d6f=>{const _0xc8fb08=_0x2acfcf;if(_0x5b4d6f['id']!==_0x89725e['id'])return;let {unitId:_0x525c91,tableId:_0x3111ff,field:_0x2c1dc0,index:_0x404f17,viewIndexes:_0x14a911}=_0x5b4d6f['params'],_0x55241b=this[_0xc8fb08(0x211)](_0x525c91);if(!_0x55241b)return;let _0x5ed3d8=_0x55241b[_0xc8fb08(0x242)](_0x3111ff);if(!_0x5ed3d8)return;let _0x54d901={'base':_0x55241b,'table':_0x5ed3d8,'field':_0x2c1dc0,'index':_0x404f17,'viewIndexes':_0x14a911};this[_0xc8fb08(0x2c9)](this[_0xc8fb08(0x231)][_0xc8fb08(0x18f)],_0x54d901);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this['Event'][_0x2acfcf(0x1a1)],()=>this['_commandService']['onCommandExecuted'](_0x4bfe62=>{const _0x2f9889=_0x2acfcf;if(_0x4bfe62['id']!==_0x470e4e['id']&&_0x4bfe62['id']!==_0x30ed55['id'])return;let _0x1e78a6=_0x4bfe62[_0x2f9889(0x1fe)],{unitId:_0x138a87,tableId:_0x58744b}=_0x1e78a6,_0x1f4602=_0x1e78a6[_0x2f9889(0x2d2)]??[_0x1e78a6[_0x2f9889(0x1e1)]],_0x55fd4e=this['getBase'](_0x138a87);if(!_0x55fd4e)return;let _0x3f968e=_0x55fd4e[_0x2f9889(0x242)](_0x58744b);if(!_0x3f968e)return;let _0x58a808={'base':_0x55fd4e,'table':_0x3f968e,'records':_0x1f4602};this[_0x2f9889(0x2c9)](this[_0x2f9889(0x231)]['BaseTableRecordCreated'],_0x58a808);}))),this[_0x2acfcf(0x18d)](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x229)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x1abf9b=>{const _0x3de63f=_0x2acfcf;if(_0x1abf9b['id']!==_0x471b73['id'])return;let {unitId:_0xaab03e,tableId:_0x3f5b6d,view:_0x42ee54,index:_0x3f2ba9}=_0x1abf9b[_0x3de63f(0x1fe)],_0x5a69e7=this[_0x3de63f(0x211)](_0xaab03e);if(!_0x5a69e7)return;let _0x41d365=_0x5a69e7[_0x3de63f(0x242)](_0x3f5b6d);if(!_0x41d365)return;let _0x5278e1={'base':_0x5a69e7,'table':_0x41d365,'view':_0x42ee54,'index':_0x3f2ba9};this[_0x3de63f(0x2c9)](this['Event'][_0x3de63f(0x229)],_0x5278e1);}))),this['disposeWithMe'](this[_0x2acfcf(0x1ba)](this[_0x2acfcf(0x231)][_0x2acfcf(0x260)],()=>this[_0x2acfcf(0x27d)][_0x2acfcf(0x2c3)](_0x3da61f=>{const _0x2311fd=_0x2acfcf;if(_0x3da61f['id']!==_0x50c883['id'])return;let {unitId:_0x3e680a,tableId:_0x4ddd9d,recordId:_0x1c7889,fieldId:_0x22cbd1,value:_0x566046}=_0x3da61f['params'],_0x153b58=this['getBase'](_0x3e680a);if(!_0x153b58)return;let _0x578a77=_0x153b58['getTableById'](_0x4ddd9d);if(!_0x578a77)return;let _0x237de1=_0x578a77[_0x2311fd(0x248)](_0x22cbd1);if(!_0x237de1)return;let _0x437a7d=_0x578a77[_0x2311fd(0x1e3)](_0x1c7889);if(!_0x437a7d)return;let _0x4a109d={'base':_0x153b58,'table':_0x578a77,'field':_0x237de1,'record':_0x437a7d,'value':_0x566046};this['fireEvent'](this[_0x2311fd(0x231)][_0x2311fd(0x260)],_0x4a109d);})));}[_0x42cb2d(0x24a)](){const _0x101f76=_0x42cb2d;this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)]['BeforeBaseHierarchyChange'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x464ba1=>{const _0x5947f8=_0x101f76;if($(_0x464ba1,_0x54705e)){let {unitId:_0xb60f64,tableId:_0x5468f4,patches:_0x5d6520,source:_0xc4724b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x27c823=this['_getHierarchyEventContext'](_0xb60f64,_0x5468f4);if(!_0x27c823)return;this['_fireBeforeHierarchyChange'](_0x27c823[_0x5947f8(0x21d)],_0x27c823[_0x5947f8(0x269)],_0x3495d4(_0x27c823[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),_0x5d6520),_0xc4724b);return;}if($(_0x464ba1,_0x1fa9ec)){let {unitId:_0x5174d7,tableId:_0x36d7f4,patches:_0x201145,source:_0x1fbd9b=_0x220938['UI']}=_0x464ba1[_0x5947f8(0x1fe)],_0x14b87a=this['_getHierarchyEventContext'](_0x5174d7,_0x36d7f4);if(!_0x14b87a)return;let _0x562047=_0x14b87a[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();this[_0x5947f8(0x1dc)](_0x14b87a[_0x5947f8(0x21d)],_0x14b87a['table'],_0x3495d4(_0x562047,_0x28902e(_0x562047,_0x201145)),_0x1fbd9b);return;}if($(_0x464ba1,_0x470e4e)){let _0x433de8=_0x464ba1[_0x5947f8(0x1fe)],_0x2fc18b=this[_0x5947f8(0x1bd)](_0x433de8['unitId'],_0x433de8['tableId']);if(!_0x2fc18b)return;this['_fireBeforeHierarchyChange'](_0x2fc18b[_0x5947f8(0x21d)],_0x2fc18b[_0x5947f8(0x269)],_0x3474ef(_0x2fc18b['table'][_0x5947f8(0x1d3)](),[_0x433de8[_0x5947f8(0x1e1)]]),_0x433de8[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x30ed55)){let _0x108a6f=_0x464ba1['params'],_0x3cdc24=this[_0x5947f8(0x1bd)](_0x108a6f[_0x5947f8(0x189)],_0x108a6f[_0x5947f8(0x1bf)]);if(!_0x3cdc24)return;this[_0x5947f8(0x1dc)](_0x3cdc24[_0x5947f8(0x21d)],_0x3cdc24[_0x5947f8(0x269)],_0x3474ef(_0x3cdc24['table']['getTable'](),_0x108a6f[_0x5947f8(0x2d2)]),_0x108a6f[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x328e28)){let _0xf3d849=_0x464ba1['params'],_0x59a3a4=this[_0x5947f8(0x1bd)](_0xf3d849['unitId'],_0xf3d849[_0x5947f8(0x1bf)]);if(!_0x59a3a4)return;this[_0x5947f8(0x1dc)](_0x59a3a4[_0x5947f8(0x21d)],_0x59a3a4[_0x5947f8(0x269)],_0x3474ef(_0x59a3a4[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xf3d849[_0x5947f8(0x1e1)]]),_0xf3d849[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x146970)){let _0x30106c=_0x464ba1[_0x5947f8(0x1fe)],_0x2eae67=this['_getHierarchyEventContext'](_0x30106c[_0x5947f8(0x189)],_0x30106c[_0x5947f8(0x1bf)]);if(!_0x2eae67)return;let _0x14de50=_0x2eae67[_0x5947f8(0x269)]['getTable'](),_0x32aebf=_0x30106c[_0x5947f8(0x21c)]??_0x1d8e8c(_0x14de50),_0x486bf6=_0x4aa1d4(_0x14de50,_0x32aebf)[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x30106c[_0x5947f8(0x192)])??null;this[_0x5947f8(0x1dc)](_0x2eae67[_0x5947f8(0x21d)],_0x2eae67['table'],[{'tableId':_0x30106c[_0x5947f8(0x1bf)],'fieldId':_0x32aebf,'recordId':_0x30106c[_0x5947f8(0x192)],'oldParentRecordId':_0x486bf6,'parentRecordId':_0x30106c[_0x5947f8(0x263)]}],_0x30106c[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x38016d)){let _0x561caf=_0x464ba1['params'],_0x144514=this[_0x5947f8(0x1bd)](_0x561caf[_0x5947f8(0x189)],_0x561caf[_0x5947f8(0x1bf)]);if(!_0x144514)return;let _0x5f4738=_0x561caf[_0x5947f8(0x21c)]??_0x1d8e8c(_0x144514[_0x5947f8(0x269)]['getTable']());this[_0x5947f8(0x1dc)](_0x144514[_0x5947f8(0x21d)],_0x144514[_0x5947f8(0x269)],[{'tableId':_0x561caf[_0x5947f8(0x1bf)],'fieldId':_0x5f4738,'recordId':_0x561caf[_0x5947f8(0x1e1)]['id'],'oldParentRecordId':null,'parentRecordId':_0x561caf[_0x5947f8(0x263)]}],_0x561caf[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if($(_0x464ba1,_0x36855b)){let _0xb66809=_0x464ba1[_0x5947f8(0x1fe)],_0x6d1287=this[_0x5947f8(0x1bd)](_0xb66809[_0x5947f8(0x189)],_0xb66809['tableId']);if(!_0x6d1287)return;this['_fireBeforeHierarchyChange'](_0x6d1287[_0x5947f8(0x21d)],_0x6d1287[_0x5947f8(0x269)],_0x38e02b(_0x6d1287[_0x5947f8(0x269)][_0x5947f8(0x1d3)](),[_0xb66809[_0x5947f8(0x192)]]),_0xb66809['source']??_0x220938['UI']);return;}if($(_0x464ba1,_0x259e76)){let _0x103c25=_0x464ba1['params'],_0x258e9c=this['_getHierarchyEventContext'](_0x103c25[_0x5947f8(0x189)],_0x103c25['tableId']);if(!_0x258e9c)return;this['_fireBeforeHierarchyChange'](_0x258e9c[_0x5947f8(0x21d)],_0x258e9c[_0x5947f8(0x269)],_0x38e02b(_0x258e9c['table'][_0x5947f8(0x1d3)](),_0x103c25[_0x5947f8(0x20d)]),_0x103c25[_0x5947f8(0x2b5)]??_0x220938['UI']);return;}if(!$(_0x464ba1,_0x50c883))return;let _0x1f1f9c=_0x464ba1[_0x5947f8(0x1fe)],_0x10bdc0=this[_0x5947f8(0x1bd)](_0x1f1f9c[_0x5947f8(0x189)],_0x1f1f9c[_0x5947f8(0x1bf)]);if(!_0x10bdc0)return;let _0x2767d1=_0x10bdc0[_0x5947f8(0x269)][_0x5947f8(0x1d3)]();if(!_0x1d243e(_0x2767d1)['includes'](_0x1f1f9c['fieldId']))return;let _0x4c03c2=_0x4aa1d4(_0x2767d1,_0x1f1f9c[_0x5947f8(0x21c)])[_0x5947f8(0x1e4)][_0x5947f8(0x257)](_0x1f1f9c[_0x5947f8(0x192)])??null,_0x1c4dd5=_0x46817c(_0x1f1f9c[_0x5947f8(0x2b1)])[0x0]??null;_0x4c03c2!==_0x1c4dd5&&this[_0x5947f8(0x1dc)](_0x10bdc0['base'],_0x10bdc0[_0x5947f8(0x269)],[{'tableId':_0x1f1f9c[_0x5947f8(0x1bf)],'fieldId':_0x1f1f9c[_0x5947f8(0x21c)],'recordId':_0x1f1f9c[_0x5947f8(0x192)],'oldParentRecordId':_0x4c03c2,'parentRecordId':_0x1c4dd5}],_0x1f1f9c[_0x5947f8(0x2b5)]??_0x220938['UI']);}))),this['disposeWithMe'](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x191)],()=>this['_commandService']['beforeCommandExecuted'](_0x568220=>{const _0x5d2ed3=_0x101f76;if(_0x568220['id']!==_0x1d6ad3['id'])return;let {unitId:_0x470e46,table:_0x3dea97,index:_0x2e80a7}=_0x568220['params'],_0x148d5b=this[_0x5d2ed3(0x211)](_0x470e46);if(!_0x148d5b)return;let _0x357b77={'base':_0x148d5b,'table':_0x3dea97,'index':_0x2e80a7};if(this[_0x5d2ed3(0x2c9)](this[_0x5d2ed3(0x231)][_0x5d2ed3(0x191)],_0x357b77),_0x357b77[_0x5d2ed3(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this[_0x101f76(0x231)][_0x101f76(0x232)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x424dfc=>{const _0x550c67=_0x101f76;if(_0x424dfc['id']!==_0x89725e['id'])return;let {unitId:_0x126094,tableId:_0x5e0407,field:_0x502c58,index:_0x5760f7,viewIndexes:_0x469202}=_0x424dfc[_0x550c67(0x1fe)],_0x553ac2=this['getBase'](_0x126094);if(!_0x553ac2)return;let _0x1e6977=_0x553ac2['getTableById'](_0x5e0407);if(!_0x1e6977)return;let _0x2bba81={'base':_0x553ac2,'table':_0x1e6977,'field':_0x502c58,'index':_0x5760f7,'viewIndexes':_0x469202};if(this[_0x550c67(0x2c9)](this[_0x550c67(0x231)][_0x550c67(0x232)],_0x2bba81),_0x2bba81[_0x550c67(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this['registerEventHandler'](this['Event']['BeforeBaseTableRecordCreate'],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x1cdee7=>{const _0x100094=_0x101f76;if(_0x1cdee7['id']!==_0x470e4e['id']&&_0x1cdee7['id']!==_0x30ed55['id'])return;let _0xeaf0e5=_0x1cdee7[_0x100094(0x1fe)],{unitId:_0xcd5528,tableId:_0x585ae5}=_0xeaf0e5,_0x2d123a=_0xeaf0e5[_0x100094(0x2d2)]??[_0xeaf0e5['record']],_0x630c57=this['getBase'](_0xcd5528);if(!_0x630c57)return;let _0x28b341=_0x630c57[_0x100094(0x242)](_0x585ae5);if(!_0x28b341)return;let _0x3df609={'base':_0x630c57,'table':_0x28b341,'records':_0x2d123a};if(this['fireEvent'](this[_0x100094(0x231)][_0x100094(0x2b7)],_0x3df609),_0x3df609[_0x100094(0x298)])throw new _0x3f6a5c();}))),this[_0x101f76(0x18d)](this[_0x101f76(0x1ba)](this[_0x101f76(0x231)][_0x101f76(0x17a)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x695f19=>{const _0x5c4ac4=_0x101f76;if(_0x695f19['id']!==_0x471b73['id'])return;let {unitId:_0x615171,tableId:_0x4ed7f1,view:_0x31d990,index:_0x14a6dc}=_0x695f19[_0x5c4ac4(0x1fe)],_0x4f56d0=this[_0x5c4ac4(0x211)](_0x615171);if(!_0x4f56d0)return;let _0x2eb5a3=_0x4f56d0[_0x5c4ac4(0x242)](_0x4ed7f1);if(!_0x2eb5a3)return;let _0xd918da={'base':_0x4f56d0,'table':_0x2eb5a3,'view':_0x31d990,'index':_0x14a6dc};if(this[_0x5c4ac4(0x2c9)](this[_0x5c4ac4(0x231)][_0x5c4ac4(0x17a)],_0xd918da),_0xd918da[_0x5c4ac4(0x298)])throw new _0x3f6a5c();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x101f76(0x203)],()=>this[_0x101f76(0x27d)][_0x101f76(0x228)](_0x486471=>{const _0xad703b=_0x101f76;if(_0x486471['id']!==_0x50c883['id'])return;let {unitId:_0x577c79,tableId:_0x365855,recordId:_0xebce0a,fieldId:_0x322e7f,value:_0x23772a}=_0x486471['params'],_0x25cb8a=this[_0xad703b(0x211)](_0x577c79);if(!_0x25cb8a)return;let _0x313f7f=_0x25cb8a[_0xad703b(0x242)](_0x365855);if(!_0x313f7f)return;let _0xd61592=_0x313f7f[_0xad703b(0x248)](_0x322e7f);if(!_0xd61592)return;let _0x50c5c9=_0x313f7f[_0xad703b(0x1e3)](_0xebce0a);if(!_0x50c5c9)return;let _0x25eb26={'base':_0x25cb8a,'table':_0x313f7f,'field':_0xd61592,'record':_0x50c5c9,'value':_0x23772a};if(this[_0xad703b(0x2c9)](this[_0xad703b(0x231)][_0xad703b(0x203)],_0x25eb26),_0x25eb26[_0xad703b(0x298)])throw new _0x3f6a5c();})));}[_0x42cb2d(0x1bd)](_0xeb111b,_0x56d918){const _0x590c73=_0x42cb2d;let _0x1fb593=this[_0x590c73(0x211)](_0xeb111b),_0x34348f=_0x1fb593==null?void 0x0:_0x1fb593['getTableById'](_0x56d918);return _0x1fb593&&_0x34348f?{'base':_0x1fb593,'table':_0x34348f}:null;}[_0x42cb2d(0x1dc)](_0x3cc8b9,_0x2e8ec3,_0x5a5146,_0x4a1d06){const _0x2a3c90=_0x42cb2d;if(!_0x5a5146[_0x2a3c90(0x1b9)])return;let _0x4fc0d8={'base':_0x3cc8b9,'table':_0x2e8ec3,'changes':_0x5a5146,'source':_0x4a1d06};if(this[_0x2a3c90(0x2c9)](this[_0x2a3c90(0x231)][_0x2a3c90(0x1f4)],_0x4fc0d8),_0x4fc0d8[_0x2a3c90(0x298)])throw new _0x3f6a5c();}};function $(_0x285b17,_0x676047){const _0x3b9146=_0x42cb2d;return _0x285b17['id']===_0x676047['id']&&_0x285b17[_0x3b9146(0x1fe)]!==void 0x0;}_0x13f4e8[_0x42cb2d(0x205)](Et);var Dt=class extends _0x3c7e49{get[_0x42cb2d(0x22a)](){return _0x334db4;}get[_0x42cb2d(0x2c6)](){return _0x5a09a5;}get[_0x42cb2d(0x1ef)](){return _0xf13532;}get[_0x42cb2d(0x2bf)](){return ot;}get[_0x42cb2d(0x17c)](){return _0x2dedc2;}get['BaseConditionalColorTarget'](){return _0x3ea519;}get[_0x42cb2d(0x1cf)](){return _0x47fd54;}get['BaseConditionalDateMode'](){return _0x756c91;}get[_0x42cb2d(0x254)](){return _0x42481e;}get[_0x42cb2d(0x264)](){return _0x220938;}get[_0x42cb2d(0x2a7)](){return _0x1d94db;}get[_0x42cb2d(0x17e)](){return _0x125b1b;}get[_0x42cb2d(0x25f)](){return _0x50fcc1;}};_0x3c7e49[_0x42cb2d(0x205)](Dt);function _0x4bdd(_0x8ee41c,_0x109b4a){_0x8ee41c=_0x8ee41c-0x172;const _0x1281bb=_0x1281();let _0x4bdd15=_0x1281bb[_0x8ee41c];return _0x4bdd15;}var Ot=class extends _0x3e96b9{get['BaseTableCreated'](){const _0x597a0b=_0x42cb2d;return _0x597a0b(0x2cc);}get[_0x42cb2d(0x191)](){const _0x30bb05=_0x42cb2d;return _0x30bb05(0x191);}get['BaseTableFieldCreated'](){const _0x2d67a7=_0x42cb2d;return _0x2d67a7(0x18f);}get[_0x42cb2d(0x232)](){const _0x3f50f4=_0x42cb2d;return _0x3f50f4(0x232);}get['BaseTableRecordCreated'](){return'BaseTableRecordCreated';}get[_0x42cb2d(0x2b7)](){const _0x44c9a6=_0x42cb2d;return _0x44c9a6(0x2b7);}get[_0x42cb2d(0x229)](){const _0x25733f=_0x42cb2d;return _0x25733f(0x229);}get[_0x42cb2d(0x17a)](){const _0x117adc=_0x42cb2d;return _0x117adc(0x17a);}get['BaseTableCellValueChanged'](){const _0x31aa5a=_0x42cb2d;return _0x31aa5a(0x260);}get[_0x42cb2d(0x203)](){return'BeforeBaseTableCellValueChange';}get[_0x42cb2d(0x200)](){const _0x27c6a9=_0x42cb2d;return _0x27c6a9(0x200);}get[_0x42cb2d(0x1f4)](){const _0x538c39=_0x42cb2d;return _0x538c39(0x1f4);}};_0x3e96b9['extend'](Ot);export{ot as BaseFieldKeyEnum,Q as FBase,L as FBaseObjectPermission,at as FBasePermission,Z as FBaseTable,B as FBaseTableField,K as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,Ot as FBasesEventNameMixin,ct as resolveBaseFieldKey,H as resolveBaseFieldValues};
|