@univerjs-pro/bases 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2530a8=_0x3370;(function(_0x12ad5b,_0x9c7f6){const _0xd97037=_0x3370,_0x2ad834=_0x12ad5b();while(!![]){try{const _0x2d086c=parseInt(_0xd97037(0x294))/0x1+parseInt(_0xd97037(0x331))/0x2*(-parseInt(_0xd97037(0x1c5))/0x3)+-parseInt(_0xd97037(0x1c0))/0x4*(-parseInt(_0xd97037(0x195))/0x5)+parseInt(_0xd97037(0x2c6))/0x6*(parseInt(_0xd97037(0x29e))/0x7)+parseInt(_0xd97037(0x303))/0x8+-parseInt(_0xd97037(0x32b))/0x9+parseInt(_0xd97037(0x2a8))/0xa*(parseInt(_0xd97037(0x2c8))/0xb);if(_0x2d086c===_0x9c7f6)break;else _0x2ad834['push'](_0x2ad834['shift']());}catch(_0x158d09){_0x2ad834['push'](_0x2ad834['shift']());}}}(_0x3dab,0xc7f44),Object[_0x2530a8(0x1cb)](exports,Symbol['toStringTag'],{'value':_0x2530a8(0x22d)}));var e=Object['create'],t=Object[_0x2530a8(0x1cb)],n=Object[_0x2530a8(0x2e5)],r=Object[_0x2530a8(0x284)],i=Object[_0x2530a8(0x1b1)],a=Object[_0x2530a8(0x240)]['hasOwnProperty'],o=(_0x3e3707,_0x59017f,_0x573ed3,_0x2fbd16)=>{const _0x5b8eb4=_0x2530a8;if(_0x59017f&&typeof _0x59017f==_0x5b8eb4(0x186)||typeof _0x59017f==_0x5b8eb4(0x311)){for(var _0x40f67b=r(_0x59017f),_0x5ee4ea=0x0,_0x42161c=_0x40f67b[_0x5b8eb4(0x1d8)],_0xa8b9f2;_0x5ee4ea<_0x42161c;_0x5ee4ea++)_0xa8b9f2=_0x40f67b[_0x5ee4ea],!a[_0x5b8eb4(0x1cd)](_0x3e3707,_0xa8b9f2)&&_0xa8b9f2!==_0x573ed3&&t(_0x3e3707,_0xa8b9f2,{'get':(_0x3df26c=>_0x59017f[_0x3df26c])['bind'](null,_0xa8b9f2),'enumerable':!(_0x2fbd16=n(_0x59017f,_0xa8b9f2))||_0x2fbd16[_0x5b8eb4(0x287)]});}return _0x3e3707;},s=(_0x238f93,_0x2c6a09,_0x181e88)=>(_0x181e88=_0x238f93==null?{}:e(i(_0x238f93)),o(_0x2c6a09||!_0x238f93||!_0x238f93[_0x2530a8(0x2cf)]||!a[_0x2530a8(0x1cd)](_0x238f93,'default')?t(_0x181e88,_0x2530a8(0x1b7),{'value':_0x238f93,'enumerable':!0x0}):_0x181e88,_0x238f93));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x2be8c5,_0x3a39ae,_0x20d098){const _0x56a442=_0x2530a8;this['_unitId']=_0x2be8c5,this[_0x56a442(0x225)]=_0x3a39ae,this[_0x56a442(0x2e0)]=_0x20d098;}async['setObjectPermissions'](_0x1dc86){const _0x568529=_0x2530a8;return this[_0x568529(0x225)][_0x568529(0x28a)](c[_0x568529(0x212)]['id'],{'unitId':this['_unitId'],'changes':_0x1dc86});}async[_0x2530a8(0x30b)](_0x452c0d,_0x33adaa){const _0x487d24=_0x2530a8;await this[_0x487d24(0x225)]['executeCommand'](c[_0x487d24(0x23e)]['id'],{'unitId':this[_0x487d24(0x1a2)],'objectId':this['_unitId'],'action':_0x452c0d,'value':_0x33adaa});}['getPoint'](_0x2c6e5e){const _0x4758fa=_0x2530a8;return(0x0,c[_0x4758fa(0x1ce)])(this[_0x4758fa(0x2e0)],this[_0x4758fa(0x1a2)],this[_0x4758fa(0x1a2)],_0x2c6e5e);}async[_0x2530a8(0x241)](_0x206123=!0x0){const _0x522886=_0x2530a8;await this[_0x522886(0x225)][_0x522886(0x28a)](c[_0x522886(0x23e)]['id'],{'unitId':this[_0x522886(0x1a2)],'objectId':this[_0x522886(0x1a2)],'action':d[_0x522886(0x238)][_0x522886(0x325)],'value':_0x206123});}async[_0x2530a8(0x32d)](){const _0x1f84af=_0x2530a8;await this[_0x1f84af(0x225)][_0x1f84af(0x28a)](c[_0x1f84af(0x23e)]['id'],{'unitId':this[_0x1f84af(0x1a2)],'objectId':this[_0x1f84af(0x1a2)],'action':d['UnitAction'][_0x1f84af(0x325)],'value':!0x1});}[_0x2530a8(0x218)](){const _0x18e207=_0x2530a8;return(0x0,c['getBasePermissionValue'])(this[_0x18e207(0x2e0)],this[_0x18e207(0x1a2)],this[_0x18e207(0x1a2)],d['UnitAction']['Edit']);}},m=class{constructor(_0x4f89c5,_0x4bccf2,_0x5dd2c8,_0xe0dd9c,_0x3a5ec7){const _0x54851f=_0x2530a8;this[_0x54851f(0x1a2)]=_0x4f89c5,this['_objectId']=_0x4bccf2,this[_0x54851f(0x27d)]=_0x5dd2c8,this[_0x54851f(0x225)]=_0xe0dd9c,this[_0x54851f(0x2e0)]=_0x3a5ec7;}async[_0x2530a8(0x241)](_0x1a6c62=!0x0){const _0x2ebaad=_0x2530a8;await this[_0x2ebaad(0x225)][_0x2ebaad(0x28a)](c[_0x2ebaad(0x23e)]['id'],{'unitId':this[_0x2ebaad(0x1a2)],'objectId':this[_0x2ebaad(0x2e1)],'action':d[_0x2ebaad(0x238)][_0x2ebaad(0x325)],'value':_0x1a6c62});}async[_0x2530a8(0x32d)](){const _0x4efb39=_0x2530a8;await this[_0x4efb39(0x225)][_0x4efb39(0x28a)](c[_0x4efb39(0x23e)]['id'],{'unitId':this[_0x4efb39(0x1a2)],'objectId':this[_0x4efb39(0x2e1)],'action':d[_0x4efb39(0x238)][_0x4efb39(0x325)],'value':!0x1});}[_0x2530a8(0x218)](){const _0x2dcc37=_0x2530a8;return(0x0,c['canEditBaseTargets'])(this[_0x2dcc37(0x2e0)],this[_0x2dcc37(0x1a2)],[...this[_0x2dcc37(0x27d)],this[_0x2dcc37(0x2e1)]]);}};function h(_0x365b5e,_0x46f422){return function(_0xf5af17,_0x134815){_0x46f422(_0xf5af17,_0x134815,_0x365b5e);};}function g(_0x3ac239,_0x516d0e,_0x4b0358,_0x53fc30){const _0x3bf608=_0x2530a8;var _0x4baf54=arguments[_0x3bf608(0x1d8)],_0x23a159=_0x4baf54<0x3?_0x516d0e:_0x53fc30===null?_0x53fc30=Object[_0x3bf608(0x2e5)](_0x516d0e,_0x4b0358):_0x53fc30,_0x530460;if(typeof Reflect==_0x3bf608(0x186)&&typeof Reflect[_0x3bf608(0x2c1)]==_0x3bf608(0x311))_0x23a159=Reflect['decorate'](_0x3ac239,_0x516d0e,_0x4b0358,_0x53fc30);else{for(var _0x36757b=_0x3ac239[_0x3bf608(0x1d8)]-0x1;_0x36757b>=0x0;_0x36757b--)(_0x530460=_0x3ac239[_0x36757b])&&(_0x23a159=(_0x4baf54<0x3?_0x530460(_0x23a159):_0x4baf54>0x3?_0x530460(_0x516d0e,_0x4b0358,_0x23a159):_0x530460(_0x516d0e,_0x4b0358))||_0x23a159);}return _0x4baf54>0x3&&_0x23a159&&Object[_0x3bf608(0x1cb)](_0x516d0e,_0x4b0358,_0x23a159),_0x23a159;}let _=class{constructor(_0x29c10e,_0x25e65d,_0x5b422f,_0x9073a7,_0x453cb7){const _0x4b82da=_0x2530a8;this['_base']=_0x29c10e,this['_table']=_0x25e65d,this[_0x4b82da(0x20b)]=_0x5b422f,this[_0x4b82da(0x225)]=_0x9073a7,this[_0x4b82da(0x2e0)]=_0x453cb7;}[_0x2530a8(0x2ef)](){const _0xaebf80=_0x2530a8;return this[_0xaebf80(0x20b)];}[_0x2530a8(0x25e)](){const _0x7fbf1a=_0x2530a8;let _0x41db13=this[_0x7fbf1a(0x1ec)]['getId']();return new m(this[_0x7fbf1a(0x2ea)][_0x7fbf1a(0x2ef)](),(0x0,c[_0x7fbf1a(0x291)])(_0x41db13,this[_0x7fbf1a(0x20b)]),[(0x0,c[_0x7fbf1a(0x1c1)])(_0x41db13)],this[_0x7fbf1a(0x225)],this[_0x7fbf1a(0x2e0)]);}[_0x2530a8(0x221)](){const _0x52f3d2=_0x2530a8;return this[_0x52f3d2(0x2bd)]();}[_0x2530a8(0x270)](){const _0x4c5785=_0x2530a8;return this['_getField']()[_0x4c5785(0x306)];}[_0x2530a8(0x233)](){const _0x4145c0=_0x2530a8;return this['_getField']()[_0x4145c0(0x2ff)];}[_0x2530a8(0x2d4)](){const _0x30b712=_0x2530a8;return this[_0x30b712(0x2bd)]()[_0x30b712(0x210)];}[_0x2530a8(0x18d)](){const _0x160ded=_0x2530a8;return this[_0x160ded(0x2bd)]()[_0x160ded(0x307)];}[_0x2530a8(0x217)](){const _0x52df71=_0x2530a8;return this[_0x52df71(0x2bd)]()['description'];}['isReadonly'](){const _0xa2b743=_0x2530a8;return!!this[_0xa2b743(0x2bd)]()[_0xa2b743(0x28e)];}[_0x2530a8(0x20c)](_0x34d1f6){return this['update']({'name':_0x34d1f6});}['setConfig'](_0x116a30,_0x43625f){return this['update']({'config':_0x116a30},_0x43625f);}['setDefaultValue'](_0xe758ca){return this['update']({'defaultValue':_0xe758ca});}[_0x2530a8(0x328)](_0x10bc51,_0xa5cc3f){const _0x108258=_0x2530a8;let _0x427d3c=this[_0x108258(0x2bd)]()[_0x108258(0x2ff)];return(_0x10bc51[_0x108258(0x2ff)]??_0x427d3c)===l[_0x108258(0x275)]['Formula']&&(Object['prototype']['hasOwnProperty'][_0x108258(0x1cd)](_0x10bc51,_0x108258(0x210))||_0x10bc51[_0x108258(0x2ff)]===l[_0x108258(0x275)][_0x108258(0x24a)])&&!this['_writeFormulaExternalReferences'](_0xa5cc3f)?!0x1:this[_0x108258(0x225)][_0x108258(0x272)](c[_0x108258(0x2b0)]['id'],{'unitId':this[_0x108258(0x2ea)][_0x108258(0x2ef)](),'tableId':this[_0x108258(0x1ec)][_0x108258(0x2ef)](),'fieldId':this[_0x108258(0x20b)],'patch':_0x10bc51});}[_0x2530a8(0x24b)](_0x34ac69,_0x20b1f9={},_0x17b721){const _0x311939=_0x2530a8;return _0x34ac69===l[_0x311939(0x275)][_0x311939(0x24a)]&&!this[_0x311939(0x2ee)](_0x17b721)?!0x1:this['_commandService']['syncExecuteCommand'](c[_0x311939(0x21b)]['id'],{'unitId':this[_0x311939(0x2ea)][_0x311939(0x2ef)](),'tableId':this[_0x311939(0x1ec)][_0x311939(0x2ef)](),'fieldId':this[_0x311939(0x20b)],'input':{'type':_0x34ac69,'config':_0x20b1f9}});}['delete'](){const _0xd1d382=_0x2530a8;return this['_commandService']['syncExecuteCommand'](c[_0xd1d382(0x1c7)]['id'],{'unitId':this[_0xd1d382(0x2ea)]['getId'](),'tableId':this[_0xd1d382(0x1ec)][_0xd1d382(0x2ef)](),'fieldId':this[_0xd1d382(0x20b)]});}[_0x2530a8(0x2ed)](_0x4d11c9){const _0x57d1cc=_0x2530a8;return this['_commandService'][_0x57d1cc(0x272)](c[_0x57d1cc(0x2b4)]['id'],{'unitId':this[_0x57d1cc(0x2ea)][_0x57d1cc(0x2ef)](),'tableId':this[_0x57d1cc(0x1ec)]['getId'](),'fieldId':this[_0x57d1cc(0x20b)],'target':_0x4d11c9});}[_0x2530a8(0x2bd)](){const _0x4852df=_0x2530a8;let _0x294e05=this['_table']['getTable']()[_0x4852df(0x263)][this['_fieldId']];if(!_0x294e05)throw Error(_0x4852df(0x1d0)+this[_0x4852df(0x20b)]+_0x4852df(0x285));return _0x294e05;}[_0x2530a8(0x2ee)](_0x55be75){const _0x13c700=_0x2530a8;if(!_0x55be75||!Array['isArray'](_0x55be75[_0x13c700(0x2be)]))return console[_0x13c700(0x2a7)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x55be75[_0x13c700(0x2be)]['length']===0x0)return!0x0;let _0x4024bb=this[_0x13c700(0x225)]['syncExecuteCommand'](f[_0x13c700(0x288)]['id'],{'unitId':this[_0x13c700(0x2ea)][_0x13c700(0x2ef)](),'references':_0x55be75['externalReferences']});return _0x4024bb||console[_0x13c700(0x2a7)](_0x13c700(0x203)),_0x4024bb;}};_=g([h(0x3,l['ICommandService']),h(0x4,l[_0x2530a8(0x260)])],_);let v=function(_0x3104dd){const _0x198903=_0x2530a8;return _0x3104dd['Id']='id',_0x3104dd[_0x198903(0x267)]=_0x198903(0x306),_0x3104dd[_0x198903(0x196)]=_0x198903(0x2aa),_0x3104dd;}({});function y(_0x1948bb){const _0x403646=_0x2530a8;return!!(_0x1948bb&&_0x1948bb[_0x403646(0x215)]!==!0x0&&_0x1948bb[_0x403646(0x2ff)]!==l['BaseFieldType'][_0x403646(0x29f)]);}function _0x3dab(){const _0x40bec8=['ValidateBaseFormulaCommand','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','validateBaseTableName','clearConditionalColorRules','type','BeforeBaseTableCellValueChange','UpdateBaseRecordOrderCommand','indexOf','2384032rJtLOO','viewId','SetBaseRecordValuesCommand','name','defaultValue','SetBaseViewFieldVisibleCommand','queryRecords','getActiveBaseHierarchyFieldIds','setPoint','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BeforeBaseHierarchyChange','AND','stringify','boolean','function','commonExtend','fieldOrder','invalid','getRecordById','fieldId','rows','BaseSortDirection','_baseTableId','ensureBaseTableCellLayout','deepClone','localeCompare','Failed\x20to\x20delete\x20table\x20\x22','clear','IBaseProjectionService','has','deleteProperty',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','getRecord','[FTable]:\x20table\x20\x22','Edit','message','getBaseHierarchyDeletePromotions','update','setOrderKey','BaseConditionalColorRuleUpdateType','11168487WfUznO','SetBaseViewFilterCommand','setReadOnly','getColumn','\x20for\x20field\x20\x22','limit','25490mflAkY','CreateBaseFieldCommand','endColumn','_resourceLoaderService','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getFieldByName','Kanban','DuplicateBaseRecordCommand','ApplyBaseJson1Mutation','Facade',',\x20max\x20columns:\x20','onCommandExecuted','setFieldWidth','matches','setValues','Gallery','[FRecord]:\x20attachment\x20at\x20index\x20','object','BaseRecordLinkRole','_getFieldIds','setValue','_getRecordLinkField','\x20Copy','Calendar','getDefaultValue','FUniver','getView','duplicate','_viewId','getViews','some','targetTableId','290iwwHKS','Auto','description','getRange','addLinkedRecord','SetBaseViewFieldOrderCommand','views','beforeCommandExecuted','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','_getAttachmentField','getTable','getBaseRecordPermissionObjectId','getAttachments','_unitId','registerEventHandler',':\x20expected\x20an\x20object.','getCurrentUnitOfType','setParent','now','fieldIds','flatMap','validateBaseHierarchyRecordCreations','getConditionalColorRules','string','BeforeBaseTableRecordCreate','Duplicate\x20Base\x20field\x20name:\x20','_getRecord','UpdateBaseViewConditionalColorRulesCommand','getPrototypeOf','SetBaseViewGroupCommand','map','Failed\x20to\x20duplicate\x20table\x20\x22','getBase','_injector','default','[FRecord]:\x20RecordLink\x20field\x20\x22','getRecordLinkFieldConfig','table','CreateBaseChildRecordCommand','CreateBaseRecordCommand','FBaseTable','get','orderKey','18372mpdUfv','getBaseTablePermissionObjectId','disposeWithMe','cancel','endRow','75RJUaew','getBaseId','DeleteBaseFieldCommand','valid','Set','\x22:\x20expected\x20an\x20array.','defineProperty','_assertInBounds','call','getBasePermissionValue','copyBaseTableSnapshot','[FField]:\x20field\x20\x22','records','visibleCardFieldIds','UniverInstanceType','Failed\x20to\x20create\x20table\x20\x22','\x22.\x20','getSnapshot','getUnit','length','size','FBaseObjectPermission','find','_initBaseBeforeEvents','BaseFieldKeyEnum','BeforeBaseTableViewCreate','getValues','getViewByName','_range','getNumRows','BaseFilterOperator','getBases','Add','_projectionService','_recordId','orderedRecordIds','parseRecordLinkIds','conditions','BASE_TABLE_NAME_REQUIREMENTS','_table','BaseFilterConjunction','number','setConditionalColorRules','getNumColumns','getDataRange','custom','_initialize','getFormulaName','Failed\x20to\x20add\x20field\x20\x22','createInstance','addRecords','trim','getTableByName','[FBaseRange]:\x20table\x20does\x20not\x20exist.','createBase',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','values','setLinkedRecordIds','serializeRecordLinkIds','validateBaseHierarchyRecordPatches','MoveBaseHierarchyRecordCommand','operator','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getTableById','_univerInstanceService',',\x20range:\x20','createView','Tools','Failed\x20to\x20create\x20view\x20\x22','_fieldId','setName','BASE64','RecordLink','UNIVER_BASE','config','getParent','SetBasePermissionsCommand','symbol','getActiveBase','system','BaseTableCellValueChanged','getDescription','canEdit','BaseConditionalDateMode','_getHierarchyEventContext','ChangeBaseFieldTypeCommand','FEnum','offset','Attachment',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','CreateBaseViewCommand','getField','Grid','deleteRecords','sort','_commandService','_baseUnitId','getViewById','record','_tableId','addConditionalColorRule','generateRandomId','base','Module','resolveBaseHierarchyFieldId','setAttachments','conditionalColoring','getRecords','FEventName','getType','getBaseFacade','toPrimitive','CreateBaseTableCommand','BaseEventSource','UnitAction','value','searchBaseTable','data:','Invalid\x20attachment\x20at\x20index\x20','URL','SetBasePermissionCommand','FBaseTableView','prototype','setEditable','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','BatchDeleteBaseRecordsCommand','isArray','unitId','includeRecords','deleteTable','IResourceLoaderService','getUnitId','Formula','changeType','rowId','addField','getBaseFormulaTableName','validateRecordLinkValue','getFieldSettings',':\x20\x22','[FBase]:\x20table\x20\x22','_initBaseAfterEvents','fireEvent','_resolveRecordIds','push','FBasesEventNameMixin','primaryFieldId','Delete','getSchema','iterator','createUnit','BaseTableFieldCreated','getPermission','getGroup','IPermissionService','url','getChildren','fields','[FRecord]:\x20record\x20\x22','saveUnit','SetBaseViewFieldWidthCommand','Name','getHierarchyFieldId','slice','ICommandService','CanceledError','setHierarchyField','duplicateTable','recordOrder','afterFieldId','getName','DeleteBaseViewCommand','syncExecuteCommand','Base\x20field\x20not\x20found:\x20','multiple','BaseFieldType','constructor','entries','getRow','index','getTables','tables','fieldKey','_parentObjectIds','SetBaseViewSortCommand','formula','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','fieldSettings','\x22\x20has\x20invalid\x20config.','notMatches','getOwnPropertyNames','\x22\x20does\x20not\x20exist.','createUniqueBaseTableName','enumerable','UpsertHostExternalReferencesCommand','params','executeCommand','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','startColumn','BaseHierarchyInvalidReason','readonly','BaseHierarchyChanged','FBaseTableRecord','getBaseFieldPermissionObjectId','BaseTableRecordCreated','BeforeBaseTableCreate','737489rekEGG','Remote','tableOrder','getProjection','[FRecord]:\x20field\x20\x22','addChild','getVisibleFields','forEach','BaseHierarchyErrorCode','_getView','77994MyoMaP','RecordId','_collectDescendantIds','[FView]:\x20view\x20\x22','parentByRecordId','moveField','hidden','matchesBaseCondition','_inject','warn','910ixHHCb','createdAt','auto','Inject','ImageSourceType','regenerateViewIds','FBaseInitialable','Event','UpdateBaseFieldCommand','BaseConditionalColorTarget','viewOrder','childrenByParentId','MoveBaseFieldCommand','save','_prepareFormulaFieldReferences','BaseTableCreated','search','includes','rules','field','tableId','_getField','externalReferences','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','UpdateBaseCellCommand','decorate','RenameBaseViewCommand','updateConfig','getValue','Injector','120qCjJPd','source','103213SSjlsU','[FRecord]:\x20invalid\x20RecordLink\x20value.','resolveBaseRangeHierarchyPatches','\x22\x20is\x20invalid.','getFilter','deleteConditionalColorRule','_fireBeforeHierarchyChange','__esModule','_getHierarchyIndex','Clear','Invalid\x20Base\x20regex\x20filter:\x20','SetBaseRangeValuesCommand','getConfig','BASE_RECORD_ID_FIELD_ID','BatchCreateBaseRecordsCommand','BaseTableViewCreated','BaseConditionalColorOperator','startRow','max','beforeFieldId','parentRecordId','height','buildBaseHierarchyIndex','recordId','_permissionService','_objectId','updatedAt','FBaseTableRange','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getOwnPropertyDescriptor','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','SetBaseTableHierarchyFieldCommand','getAllUnitsForType','deleteAttachments','_base','removeLinkedRecord','_getTable','move','_writeFormulaExternalReferences','getId','BeforeBaseTableFieldCreate','setFilter','extend','view','DeleteBaseRecordCommand','reason','[FBase]:\x20invalid\x20table\x20name\x20\x22','getSort','BaseViewType','getFieldById','hierarchyChanges'];_0x3dab=function(){return _0x40bec8;};return _0x3dab();}function b(_0x5804e7,_0x5ab595,_0x12ecd4='id'){const _0x4af5b5=_0x2530a8;if(!_0x5ab595)return{};let _0x332433={};return Object[_0x4af5b5(0x277)](_0x5ab595)[_0x4af5b5(0x29b)](([_0x795653,_0x2178f2])=>{const _0x3d5ad7=_0x4af5b5;let _0x403687=S(_0x5804e7,_0x795653,_0x12ecd4);_0x332433[_0x403687]=x(_0x5804e7[_0x3d5ad7(0x263)][_0x403687],_0x2178f2);}),_0x332433;}function x(_0x3740dc,_0x3d4a6b){const _0x4986d0=_0x2530a8;if((_0x3740dc==null?void 0x0:_0x3740dc[_0x4986d0(0x2ff)])!==l[_0x4986d0(0x275)][_0x4986d0(0x21e)]||_0x3d4a6b==null)return _0x3d4a6b;if(!Array['isArray'](_0x3d4a6b))throw TypeError(_0x4986d0(0x204)+_0x3740dc['name']+_0x4986d0(0x1ca));return _0x3d4a6b[_0x4986d0(0x1b3)]((_0x1d6822,_0x5cc037)=>C(_0x3740dc,_0x1d6822,_0x5cc037));}function S(_0x145ec1,_0x3ffcf6,_0x5d04da){const _0x2c504b=_0x2530a8;if(_0x5d04da==='id'||_0x5d04da===_0x2c504b(0x2aa)&&_0x145ec1[_0x2c504b(0x263)][_0x3ffcf6])return _0x3ffcf6;let _0x195b85=Object['values'](_0x145ec1[_0x2c504b(0x263)])[_0x2c504b(0x178)](_0x1b4c3f=>_0x1b4c3f[_0x2c504b(0x306)]===_0x3ffcf6);if(_0x195b85[_0x2c504b(0x1d8)]===0x1)return _0x195b85[0x0]['id'];throw _0x195b85[_0x2c504b(0x1d8)]>0x1?Error(_0x2c504b(0x1ae)+_0x3ffcf6):Error(_0x2c504b(0x273)+_0x3ffcf6);}function C(_0x4a4a79,_0xac0387,_0x32bd3c){const _0x377c83=_0x2530a8;let _0x5273b4=_0x377c83(0x23c)+_0x32bd3c+_0x377c83(0x32f)+_0x4a4a79[_0x377c83(0x306)]+'\x22';if(!O(_0xac0387))throw TypeError(_0x5273b4+_0x377c83(0x1a4));if(_0x377c83(0x261)in _0xac0387)throw TypeError(_0x5273b4+_0x377c83(0x1fc));if(_0x377c83(0x2ff)in _0xac0387)throw TypeError(_0x5273b4+_0x377c83(0x322));let _0x3a678d=T(_0xac0387['id'],_0x5273b4,'id'),_0x3fb99e=T(_0xac0387[_0x377c83(0x306)],_0x5273b4,_0x377c83(0x306)),_0x28c459=T(_0xac0387[_0x377c83(0x2c7)],_0x5273b4,_0x377c83(0x2c7));return{'id':_0x3a678d,'name':_0x3fb99e,'source':_0x28c459,'sourceType':w(_0xac0387['sourceType'],_0x28c459,_0x5273b4),...E(_0xac0387,'mimeType',_0x5273b4),...D(_0xac0387,_0x377c83(0x1d9),_0x5273b4),...D(_0xac0387,'width',_0x5273b4),...D(_0xac0387,_0x377c83(0x2dd),_0x5273b4),...E(_0xac0387,'thumbnail',_0x5273b4)};}function w(_0xf1aa4f,_0x352900,_0x4e19c6){const _0x5e7420=_0x2530a8;if(_0xf1aa4f==null)return _0x352900['startsWith'](_0x5e7420(0x23b))?l[_0x5e7420(0x2ac)][_0x5e7420(0x20d)]:l[_0x5e7420(0x2ac)][_0x5e7420(0x23d)];if(_0xf1aa4f===l[_0x5e7420(0x2ac)][_0x5e7420(0x23d)]||_0xf1aa4f===l[_0x5e7420(0x2ac)]['UUID']||_0xf1aa4f===l[_0x5e7420(0x2ac)][_0x5e7420(0x20d)])return _0xf1aa4f;throw TypeError(_0x4e19c6+_0x5e7420(0x21f));}function T(_0x11cf21,_0x9997ad,_0x1d5a61){const _0x604d36=_0x2530a8;if(typeof _0x11cf21!=_0x604d36(0x1ac)||!_0x11cf21[_0x604d36(0x1f8)]())throw TypeError(_0x9997ad+_0x604d36(0x251)+_0x1d5a61+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x11cf21;}function E(_0xf7fcf5,_0x31f706,_0x9c6e8c){const _0x3066f7=_0x2530a8;let _0x56aad8=_0xf7fcf5[_0x31f706];if(_0x56aad8==null)return{};if(typeof _0x56aad8!=_0x3066f7(0x1ac)||!_0x56aad8[_0x3066f7(0x1f8)]())throw TypeError(_0x9c6e8c+':\x20\x22'+_0x31f706+_0x3066f7(0x30c));return{[_0x31f706]:_0x56aad8};}function D(_0x2487dd,_0x2a478d,_0x20578a){const _0x1307b0=_0x2530a8;let _0x1c36e3=_0x2487dd[_0x2a478d];if(_0x1c36e3==null)return{};if(typeof _0x1c36e3!=_0x1307b0(0x1ee)||!Number['isFinite'](_0x1c36e3)||_0x1c36e3<0x0)throw TypeError(_0x20578a+_0x1307b0(0x251)+_0x2a478d+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x2a478d]:_0x1c36e3};}function O(_0x120f8c){const _0x10d0c1=_0x2530a8;return typeof _0x120f8c==_0x10d0c1(0x186)&&!!_0x120f8c&&!Array[_0x10d0c1(0x244)](_0x120f8c);}var k;let A=k=class{constructor(_0x22e542,_0x4c4059,_0x501ffc,_0x3d9db5,_0x426ba5){const _0x5bd06b=_0x2530a8;this[_0x5bd06b(0x2ea)]=_0x22e542,this['_table']=_0x4c4059,this[_0x5bd06b(0x1e1)]=_0x501ffc,this['_inject']=_0x3d9db5,this['_commandService']=_0x426ba5,this[_0x5bd06b(0x1cc)]();}[_0x2530a8(0x1c6)](){const _0x16459e=_0x2530a8;return this[_0x16459e(0x2ea)][_0x16459e(0x2ef)]();}['getTableId'](){const _0x3a65c4=_0x2530a8;return this[_0x3a65c4(0x1ec)][_0x3a65c4(0x2ef)]();}[_0x2530a8(0x198)](){const _0x3bf494=_0x2530a8;return{...this[_0x3bf494(0x1e1)]};}[_0x2530a8(0x278)](){const _0x28ff70=_0x2530a8;return this[_0x28ff70(0x1e1)][_0x28ff70(0x2d9)];}[_0x2530a8(0x32e)](){const _0x41c3a0=_0x2530a8;return this[_0x41c3a0(0x1e1)][_0x41c3a0(0x28c)];}[_0x2530a8(0x1e2)](){const _0x32e808=_0x2530a8;return this[_0x32e808(0x1e1)][_0x32e808(0x1c4)]-this['_range'][_0x32e808(0x2d9)]+0x1;}[_0x2530a8(0x1f0)](){const _0x3ca84e=_0x2530a8;return this[_0x3ca84e(0x1e1)][_0x3ca84e(0x176)]-this['_range'][_0x3ca84e(0x28c)]+0x1;}['getValues'](){const _0x32d8ca=_0x2530a8;let _0x329829=this[_0x32d8ca(0x2ec)](),_0x4c004f=this[_0x32d8ca(0x188)](_0x329829),_0x575201=[];for(let _0x17a6c3=this['_range'][_0x32d8ca(0x2d9)];_0x17a6c3<=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x1c4)];_0x17a6c3++){var _0x430a3e;let _0x3dbc8e=(_0x430a3e=_0x329829[_0x32d8ca(0x24c)])==null?void 0x0:_0x430a3e[_0x17a6c3],_0x44916c=[];for(let _0x5081b5=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x28c)];_0x5081b5<=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x176)];_0x5081b5++){let _0x114558=_0x4c004f[_0x5081b5];_0x44916c[_0x32d8ca(0x256)](_0x3dbc8e&&_0x114558?(0x0,c['getBaseCellValue'])(_0x329829,_0x3dbc8e,_0x114558):null);}_0x575201['push'](_0x44916c);}return _0x575201;}[_0x2530a8(0x2c4)](){const _0x25a703=_0x2530a8;var _0x48c558;return((_0x48c558=this[_0x25a703(0x1df)]()[0x0])==null?void 0x0:_0x48c558[0x0])??null;}['setValue'](_0x151799){return this['setValues']([[_0x151799]]);}[_0x2530a8(0x183)](_0x253b56){const _0x5478aa=_0x2530a8;let _0x469836=this[_0x5478aa(0x1e2)](),_0x3c5277=this[_0x5478aa(0x1f0)]();if(_0x253b56[_0x5478aa(0x1d8)]>_0x469836||_0x253b56['some'](_0x807db8=>_0x807db8[_0x5478aa(0x1d8)]>_0x3c5277)){var _0x227756;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x253b56[_0x5478aa(0x1d8)]+'x'+(((_0x227756=_0x253b56[0x0])==null?void 0x0:_0x227756[_0x5478aa(0x1d8)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x469836+'x'+_0x3c5277+'.');}let _0x204aae=this[_0x5478aa(0x2ec)](),_0x5ddf27=this[_0x5478aa(0x188)](_0x204aae),_0x2212f4=_0x253b56[_0x5478aa(0x1a9)]((_0x2612a0,_0x80d330)=>_0x2612a0[_0x5478aa(0x1b3)]((_0x4a1a3a,_0x1660c3)=>{const _0x2356cf=_0x5478aa;var _0x56212d;let _0x4598f9=this[_0x2356cf(0x1e1)]['startRow']+_0x80d330,_0x3335cd=_0x5ddf27[this[_0x2356cf(0x1e1)][_0x2356cf(0x28c)]+_0x1660c3],_0x4416e8=(_0x56212d=_0x204aae[_0x2356cf(0x24c)])==null?void 0x0:_0x56212d[_0x4598f9];if(!_0x3335cd||!_0x4416e8)throw Error(_0x2356cf(0x2bf));return{'recordId':_0x4416e8,'fieldId':_0x3335cd,'value':_0x4a1a3a};}));return this[_0x5478aa(0x225)]['syncExecuteCommand'](c[_0x5478aa(0x2d3)]['id'],{'unitId':this[_0x5478aa(0x2ea)]['getId'](),'tableId':this[_0x5478aa(0x1ec)][_0x5478aa(0x2ef)](),'patches':_0x2212f4,'source':c[_0x5478aa(0x237)]['Facade']});}[_0x2530a8(0x31e)](){const _0x87c7f8=_0x2530a8;return this['setValues'](Array['from']({'length':this[_0x87c7f8(0x1e2)]()},()=>Array['from']({'length':this['getNumColumns']()},()=>null)));}[_0x2530a8(0x21d)](_0x55c272,_0x1ac4cb,_0x1a614f=this['getNumRows'](),_0x32a912=this[_0x2530a8(0x1f0)]()){const _0x1a0cbf=_0x2530a8;return this['_inject'][_0x1a0cbf(0x1f6)](k,this['_base'],this[_0x1a0cbf(0x1ec)],{'startRow':this[_0x1a0cbf(0x1e1)][_0x1a0cbf(0x2d9)]+_0x55c272,'startColumn':this['_range'][_0x1a0cbf(0x28c)]+_0x1ac4cb,'endRow':this[_0x1a0cbf(0x1e1)][_0x1a0cbf(0x2d9)]+_0x55c272+_0x1a614f-0x1,'endColumn':this['_range'][_0x1a0cbf(0x28c)]+_0x1ac4cb+_0x32a912-0x1},this[_0x1a0cbf(0x2a6)]);}[_0x2530a8(0x2ec)](){const _0x3ff3d1=_0x2530a8;let _0x4ec602=this['_table'][_0x3ff3d1(0x19f)]();if(!_0x4ec602)throw Error(_0x3ff3d1(0x1fa));return(0x0,c[_0x3ff3d1(0x31a)])(_0x4ec602);}[_0x2530a8(0x1cc)](){const _0x5a5674=_0x2530a8;var _0x13c8c8;let _0x33bdf1=this['_getTable'](),_0x196ebd=((_0x13c8c8=_0x33bdf1[_0x5a5674(0x26e)])==null?void 0x0:_0x13c8c8[_0x5a5674(0x1d8)])??0x0,_0x1f88e8=this[_0x5a5674(0x188)](_0x33bdf1)[_0x5a5674(0x1d8)];if(this['_range'][_0x5a5674(0x2d9)]<0x0||this[_0x5a5674(0x1e1)]['startColumn']<0x0||this[_0x5a5674(0x1e1)][_0x5a5674(0x1c4)]<this['_range'][_0x5a5674(0x2d9)]||this['_range'][_0x5a5674(0x176)]<this[_0x5a5674(0x1e1)]['startColumn']||this[_0x5a5674(0x1e1)][_0x5a5674(0x1c4)]>=Math[_0x5a5674(0x2da)](_0x196ebd,0x1)||this[_0x5a5674(0x1e1)][_0x5a5674(0x176)]>=Math['max'](_0x1f88e8,0x1))throw Error(_0x5a5674(0x19d)+_0x196ebd+_0x5a5674(0x17f)+_0x1f88e8+_0x5a5674(0x207)+JSON[_0x5a5674(0x30f)](this[_0x5a5674(0x1e1)])+'.');}['_getFieldIds'](_0x2fae16){const _0x5f3467=_0x2530a8;return _0x2fae16[_0x5f3467(0x313)][_0x5f3467(0x178)](_0x5e5307=>y(_0x2fae16['fields'][_0x5e5307]));}};A=k=g([h(0x4,l[_0x2530a8(0x26a)])],A);function j(_0x2658f2){'@babel/helpers - typeof';const _0x586a97=_0x2530a8;return j=typeof Symbol==_0x586a97(0x311)&&typeof Symbol[_0x586a97(0x25b)]==_0x586a97(0x213)?function(_0x1c8db4){return typeof _0x1c8db4;}:function(_0x21cc85){const _0x41ff43=_0x586a97;return _0x21cc85&&typeof Symbol==_0x41ff43(0x311)&&_0x21cc85[_0x41ff43(0x276)]===Symbol&&_0x21cc85!==Symbol[_0x41ff43(0x240)]?_0x41ff43(0x213):typeof _0x21cc85;},j(_0x2658f2);}function M(_0x306621,_0x280310){const _0x347a22=_0x2530a8;if(j(_0x306621)!='object'||!_0x306621)return _0x306621;var _0x25e13f=_0x306621[Symbol[_0x347a22(0x235)]];if(_0x25e13f!==void 0x0){var _0x41fc33=_0x25e13f[_0x347a22(0x1cd)](_0x306621,_0x280310||_0x347a22(0x1b7));if(j(_0x41fc33)!=_0x347a22(0x186))return _0x41fc33;throw TypeError(_0x347a22(0x179));}return(_0x280310===_0x347a22(0x1ac)?String:Number)(_0x306621);}function N(_0xa741fa){const _0x336c92=_0x2530a8;var _0x3990e6=M(_0xa741fa,'string');return j(_0x3990e6)==_0x336c92(0x213)?_0x3990e6:_0x3990e6+'';}function P(_0x12ba70,_0x379c04,_0x147132){const _0x1450e5=_0x2530a8;return(_0x379c04=N(_0x379c04))in _0x12ba70?Object[_0x1450e5(0x1cb)](_0x12ba70,_0x379c04,{'value':_0x147132,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12ba70[_0x379c04]=_0x147132,_0x12ba70;}var F;let I=F=class extends u[_0x2530a8(0x2ae)]{constructor(_0xb008a6,_0x46d25d,_0x4f9f67,_0x1c35f4,_0x167fde,_0x31ffc7){const _0x364ee3=_0x2530a8;super(_0x1c35f4),this[_0x364ee3(0x2ea)]=_0xb008a6,this[_0x364ee3(0x1ec)]=_0x46d25d,this[_0x364ee3(0x1e7)]=_0x4f9f67,this['_injector']=_0x1c35f4,this['_commandService']=_0x167fde,this[_0x364ee3(0x2e0)]=_0x31ffc7,P(this,_0x364ee3(0x226),void 0x0),P(this,_0x364ee3(0x319),void 0x0),this['_baseUnitId']=_0xb008a6[_0x364ee3(0x2ef)](),this['_baseTableId']=_0x46d25d[_0x364ee3(0x2ef)]();}[_0x2530a8(0x234)](){return this['_base'];}['getTableFacade'](){return this['_table'];}[_0x2530a8(0x2ef)](){const _0x53076c=_0x2530a8;return this[_0x53076c(0x1e7)];}[_0x2530a8(0x25e)](){const _0x590ab4=_0x2530a8;let _0x19fcef=this['_table'][_0x590ab4(0x2ef)]();return new m(this['_base']['getId'](),(0x0,c[_0x590ab4(0x1a0)])(_0x19fcef,this[_0x590ab4(0x1e7)]),[(0x0,c[_0x590ab4(0x1c1)])(_0x19fcef)],this[_0x590ab4(0x225)],this[_0x590ab4(0x2e0)]);}[_0x2530a8(0x323)](){const _0x2aa7e0=_0x2530a8;return{...this[_0x2aa7e0(0x1af)](),'values':this[_0x2aa7e0(0x1df)]()};}[_0x2530a8(0x2c4)](_0x4cc66f){const _0x5b350c=_0x2530a8;return y(this[_0x5b350c(0x1ec)]['getTable']()[_0x5b350c(0x263)][_0x4cc66f])?this[_0x5b350c(0x1af)]()[_0x5b350c(0x1fd)][_0x4cc66f]??null:null;}['getValues'](){const _0x3494bc=_0x2530a8;let _0x4c1c8b=this['_table'][_0x3494bc(0x19f)]();return Object['fromEntries'](Object[_0x3494bc(0x277)](this['_getRecord']()['values'])[_0x3494bc(0x178)](([_0x4f4df7])=>y(_0x4c1c8b[_0x3494bc(0x263)][_0x4f4df7])));}[_0x2530a8(0x189)](_0x87a1c9,_0x261555){const _0x34bae3=_0x2530a8;let _0x58d40f=this[_0x34bae3(0x1ec)]['getTable']()[_0x34bae3(0x263)][_0x87a1c9];return this[_0x34bae3(0x225)][_0x34bae3(0x272)](c[_0x34bae3(0x2c0)]['id'],{'unitId':this[_0x34bae3(0x2ea)]['getId'](),'tableId':this[_0x34bae3(0x1ec)][_0x34bae3(0x2ef)](),'recordId':this[_0x34bae3(0x1e7)],'fieldId':_0x87a1c9,'value':x(_0x58d40f,_0x261555),'source':c['BaseEventSource']['Facade']});}[_0x2530a8(0x22f)](_0x4baa0d,_0x57ee09){const _0x1bbce3=_0x2530a8;return this[_0x1bbce3(0x189)](_0x4baa0d,_0x57ee09['map'](_0x493751=>({..._0x493751})));}[_0x2530a8(0x1a1)](_0x14b417){const _0x162b83=_0x2530a8;this[_0x162b83(0x19e)](_0x14b417);let _0x12e140=this[_0x162b83(0x2c4)](_0x14b417);return Array[_0x162b83(0x244)](_0x12e140)?_0x12e140[_0x162b83(0x1b3)]((_0x3c7135,_0x2c53a6)=>R(_0x3c7135,_0x14b417,_0x2c53a6)):[];}[_0x2530a8(0x2e9)](_0x5d2f18,_0x49b92a){const _0x40d7db=_0x2530a8;this[_0x40d7db(0x19e)](_0x5d2f18);let _0x55a2da=new Set(_0x49b92a['map'](_0x538d8d=>_0x538d8d['id']));if(!_0x55a2da[_0x40d7db(0x1d9)])return!0x0;let _0x27523c=this[_0x40d7db(0x1a1)](_0x5d2f18),_0x398e1c=_0x27523c['filter'](_0x11b840=>!_0x55a2da['has'](_0x11b840['id']));return _0x398e1c[_0x40d7db(0x1d8)]===_0x27523c[_0x40d7db(0x1d8)]||this[_0x40d7db(0x22f)](_0x5d2f18,_0x398e1c);}[_0x2530a8(0x183)](_0x745e7,_0x58140b='id'){const _0x16d482=_0x2530a8;let _0x5c10dd=this['_table'][_0x16d482(0x19f)](),_0x487dec=[{'recordId':this[_0x16d482(0x1e7)],'values':b(_0x5c10dd,_0x745e7,_0x58140b)}];return this['_commandService']['syncExecuteCommand'](c[_0x16d482(0x305)]['id'],{'unitId':this['_base'][_0x16d482(0x2ef)](),'tableId':this[_0x16d482(0x1ec)]['getId'](),'patches':_0x487dec,'source':c[_0x16d482(0x237)][_0x16d482(0x17e)]});}['delete'](){const _0x264d41=_0x2530a8;return this[_0x264d41(0x225)][_0x264d41(0x272)](c[_0x264d41(0x2f4)]['id'],{'unitId':this[_0x264d41(0x2ea)][_0x264d41(0x2ef)](),'tableId':this[_0x264d41(0x1ec)][_0x264d41(0x2ef)](),'recordId':this[_0x264d41(0x1e7)],'source':c['BaseEventSource'][_0x264d41(0x17e)]});}[_0x2530a8(0x190)](_0x106747){const _0x2dc93a=_0x2530a8;let _0x228fb2={...this[_0x2dc93a(0x1af)](),..._0x106747,'id':(0x0,l[_0x2dc93a(0x22b)])(0x6)};_0x228fb2['values']={..._0x228fb2[_0x2dc93a(0x1fd)],..._0x106747==null?void 0x0:_0x106747[_0x2dc93a(0x1fd)]},Reflect[_0x2dc93a(0x321)](_0x228fb2[_0x2dc93a(0x1fd)],l[_0x2dc93a(0x2d5)]);let _0x296291=Date[_0x2dc93a(0x1a7)]();if(_0x228fb2[_0x2dc93a(0x1bf)]||=''+_0x296291,_0x228fb2['createdAt']||=_0x296291,_0x228fb2['updatedAt']||=_0x296291,!this[_0x2dc93a(0x225)]['syncExecuteCommand'](c[_0x2dc93a(0x17c)]['id'],{'unitId':this[_0x2dc93a(0x2ea)][_0x2dc93a(0x2ef)](),'tableId':this['_table'][_0x2dc93a(0x2ef)](),'sourceRecordId':this[_0x2dc93a(0x1e7)],'record':_0x228fb2,'source':c[_0x2dc93a(0x237)][_0x2dc93a(0x17e)]}))throw Error(_0x2dc93a(0x28b)+this[_0x2dc93a(0x1e7)]+'\x22.');return this[_0x2dc93a(0x1b6)][_0x2dc93a(0x1f6)](F,this[_0x2dc93a(0x2ea)],this[_0x2dc93a(0x1ec)],_0x228fb2['id'],this['_injector']);}[_0x2530a8(0x329)](_0x13a44a){const _0x519f51=_0x2530a8;return this[_0x519f51(0x225)][_0x519f51(0x272)](c[_0x519f51(0x301)]['id'],{'unitId':this[_0x519f51(0x2ea)]['getId'](),'tableId':this[_0x519f51(0x1ec)][_0x519f51(0x2ef)](),'recordId':this[_0x519f51(0x1e7)],'orderKey':_0x13a44a});}['getLinkedRecordIds'](_0x1f7f94){const _0x3e910b=_0x2530a8;let _0x4b5d2b=this['_getRecordLinkField'](_0x1f7f94),_0x41c632=this[_0x3e910b(0x2c4)](_0x4b5d2b['id']);return(0x0,c[_0x3e910b(0x1e9)])(_0x41c632);}['setLinkedRecordIds'](_0x33b42d,_0x1108d7){const _0x52c1ed=_0x2530a8;let _0x5072f2=this[_0x52c1ed(0x18a)](_0x33b42d),_0x26c569=(0x0,c[_0x52c1ed(0x1ff)])(_0x1108d7),_0x11133f=(0x0,c[_0x52c1ed(0x24f)])(this[_0x52c1ed(0x2ea)][_0x52c1ed(0x1b5)]()[_0x52c1ed(0x1d6)](),_0x5072f2,_0x26c569);if(!_0x11133f[_0x52c1ed(0x1c8)])throw Error(_0x11133f[_0x52c1ed(0x2f5)]??_0x52c1ed(0x2c9));return this['_commandService'][_0x52c1ed(0x272)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x52c1ed(0x1ec)][_0x52c1ed(0x2ef)](),'recordId':this['_recordId'],'fieldId':_0x33b42d,'value':_0x26c569,'source':c['BaseEventSource']['Facade']});}[_0x2530a8(0x199)](_0x530e6b,_0x1ebb63){const _0x4e0ce1=_0x2530a8;let _0xebcbab=this[_0x4e0ce1(0x18a)](_0x530e6b),_0x52f4f0=(0x0,c[_0x4e0ce1(0x1b9)])(_0xebcbab);if(!_0x52f4f0)throw Error(_0x4e0ce1(0x1b8)+_0x530e6b+_0x4e0ce1(0x282));let _0x52ca74=this['getLinkedRecordIds'](_0x530e6b);return _0x52f4f0[_0x4e0ce1(0x274)]&&_0x52ca74[_0x4e0ce1(0x2b9)](_0x1ebb63)?!0x0:this[_0x4e0ce1(0x1fe)](_0x530e6b,_0x52f4f0[_0x4e0ce1(0x274)]?[..._0x52ca74,_0x1ebb63]:[_0x1ebb63]);}[_0x2530a8(0x2eb)](_0x46c7d1,_0x48c6be){const _0x534b52=_0x2530a8;let _0x314394=this['getLinkedRecordIds'](_0x46c7d1);return!_0x314394['includes'](_0x48c6be)||this['setLinkedRecordIds'](_0x46c7d1,_0x314394[_0x534b52(0x178)](_0x5c57e6=>_0x5c57e6!==_0x48c6be));}[_0x2530a8(0x211)](_0x5b00c1){const _0x45367b=_0x2530a8;let _0x11975b=this[_0x45367b(0x2d0)](_0x5b00c1)['parentByRecordId']['get'](this[_0x45367b(0x1e7)])??null;return _0x11975b?this[_0x45367b(0x1ec)]['getRecordById'](_0x11975b):null;}[_0x2530a8(0x262)](_0x36cd3c){const _0x3d7d7a=_0x2530a8;return(this[_0x3d7d7a(0x2d0)](_0x36cd3c)[_0x3d7d7a(0x2b3)][_0x3d7d7a(0x1be)](this[_0x3d7d7a(0x1e7)])??[])[_0x3d7d7a(0x1a9)](_0x2978ed=>{const _0x21c3cd=_0x3d7d7a;let _0x4676a5=this[_0x21c3cd(0x1ec)]['getRecordById'](_0x2978ed);return _0x4676a5?[_0x4676a5]:[];});}['getAncestors'](_0x56100e){const _0x57e33a=_0x2530a8;let _0x587edb=this['_getHierarchyIndex'](_0x56100e),_0x1ff4eb=[],_0x296366=_0x587edb[_0x57e33a(0x2a2)]['get'](this[_0x57e33a(0x1e7)])??null;for(;_0x296366;){let _0x2f84b2=this[_0x57e33a(0x1ec)][_0x57e33a(0x315)](_0x296366);_0x2f84b2&&_0x1ff4eb[_0x57e33a(0x256)](_0x2f84b2),_0x296366=_0x587edb[_0x57e33a(0x2a2)][_0x57e33a(0x1be)](_0x296366)??null;}return _0x1ff4eb;}['getDescendants'](_0x414aaf){const _0x4af0d7=_0x2530a8;let _0x48d540=this['_getHierarchyIndex'](_0x414aaf),_0xc32364=_0x48d540[_0x4af0d7(0x1e8)][_0x4af0d7(0x302)](this['_recordId']),_0x358b1d=_0x48d540['subtreeHeightByRecordId'][_0x4af0d7(0x320)](this['_recordId'])?this[_0x4af0d7(0x2a0)](_0x48d540[_0x4af0d7(0x2b3)],this[_0x4af0d7(0x1e7)]):[];return _0xc32364<0x0?[]:_0x358b1d[_0x4af0d7(0x1a9)](_0x117a59=>{const _0x2482e3=_0x4af0d7;let _0x2204eb=this[_0x2482e3(0x1ec)][_0x2482e3(0x315)](_0x117a59);return _0x2204eb?[_0x2204eb]:[];});}[_0x2530a8(0x1a6)](_0x1d7e11,_0x37cf17,_0x33916b){const _0x273faa=_0x2530a8;return this[_0x273faa(0x225)][_0x273faa(0x272)](c[_0x273faa(0x201)]['id'],{'unitId':this[_0x273faa(0x2ea)]['getId'](),'tableId':this[_0x273faa(0x1ec)][_0x273faa(0x2ef)](),'fieldId':_0x1d7e11,'recordId':this[_0x273faa(0x1e7)],'parentRecordId':_0x37cf17,'orderKey':_0x33916b,'source':c['BaseEventSource'][_0x273faa(0x17e)]});}[_0x2530a8(0x299)](_0x3c20ee,_0xc74e26,_0x33301b='id',_0x336930){const _0x443b7e=_0x2530a8;let _0x4b8109=this['_table'][_0x443b7e(0x19f)](),_0x5a31fc=Date[_0x443b7e(0x1a7)](),_0x20c3bb={..._0x336930,'id':(0x0,l[_0x443b7e(0x22b)])(0x6),'values':b(_0x4b8109,_0xc74e26,_0x33301b),'orderKey':(_0x336930==null?void 0x0:_0x336930['orderKey'])||''+_0x5a31fc,'createdAt':(_0x336930==null?void 0x0:_0x336930[_0x443b7e(0x2a9)])||_0x5a31fc,'updatedAt':(_0x336930==null?void 0x0:_0x336930[_0x443b7e(0x2e2)])||_0x5a31fc};if(!this['_commandService'][_0x443b7e(0x272)](c['CreateBaseChildRecordCommand']['id'],{'unitId':this[_0x443b7e(0x2ea)][_0x443b7e(0x2ef)](),'tableId':this[_0x443b7e(0x1ec)][_0x443b7e(0x2ef)](),'fieldId':_0x3c20ee,'parentRecordId':this[_0x443b7e(0x1e7)],'record':_0x20c3bb,'source':c[_0x443b7e(0x237)][_0x443b7e(0x17e)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x443b7e(0x1e7)]+'\x22.');return this[_0x443b7e(0x1b6)][_0x443b7e(0x1f6)](F,this[_0x443b7e(0x2ea)],this['_table'],_0x20c3bb['id'],this['_injector']);}[_0x2530a8(0x2d0)](_0x1e45b1){const _0x50755a=_0x2530a8;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x50755a(0x1ec)][_0x50755a(0x19f)](),_0x1e45b1);}[_0x2530a8(0x2a0)](_0x4a06eb,_0x5aa5c3){let _0x171cc7=[],_0xf6dd07=_0x54e6eb=>{const _0x5638af=_0x3370;for(let _0x2b52a9 of _0x4a06eb[_0x5638af(0x1be)](_0x54e6eb)??[])_0x171cc7[_0x5638af(0x256)](_0x2b52a9),_0xf6dd07(_0x2b52a9);};return _0xf6dd07(_0x5aa5c3),_0x171cc7;}['_getRecord'](){const _0x62fc2d=_0x2530a8;let _0x13606e=this[_0x62fc2d(0x1ec)][_0x62fc2d(0x19f)]()[_0x62fc2d(0x1d1)][this['_recordId']];if(!_0x13606e)throw Error(_0x62fc2d(0x264)+this[_0x62fc2d(0x1e7)]+'\x22\x20does\x20not\x20exist.');return _0x13606e;}[_0x2530a8(0x18a)](_0x5632db){const _0x11ce20=_0x2530a8;let _0x41e3a4=this[_0x11ce20(0x1ec)]['getTable']()[_0x11ce20(0x263)][_0x5632db];if(!_0x41e3a4||_0x41e3a4[_0x11ce20(0x2ff)]!==l[_0x11ce20(0x275)][_0x11ce20(0x20e)])throw Error('[FRecord]:\x20field\x20\x22'+_0x5632db+_0x11ce20(0x2fc));return _0x41e3a4;}[_0x2530a8(0x19e)](_0x12295a){const _0x42f30f=_0x2530a8;let _0x301599=this[_0x42f30f(0x1ec)][_0x42f30f(0x19f)]()['fields'][_0x12295a];if(!_0x301599||_0x301599['type']!==l[_0x42f30f(0x275)][_0x42f30f(0x21e)])throw Error(_0x42f30f(0x298)+_0x12295a+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x301599;}};I=F=g([h(0x4,l[_0x2530a8(0x26a)]),h(0x5,l['IPermissionService'])],I);function L(_0x5d8bf7){const _0x5cf5c3=_0x2530a8;return!!(_0x5d8bf7&&typeof _0x5d8bf7==_0x5cf5c3(0x186)&&'id'in _0x5d8bf7&&typeof _0x5d8bf7['id']=='string'&&'name'in _0x5d8bf7&&typeof _0x5d8bf7['name']=='string');}function R(_0x277bdb,_0x5c591b,_0x5bae4b){const _0x418f5=_0x2530a8;if(!L(_0x277bdb))throw Error(_0x418f5(0x185)+_0x5bae4b+'\x20in\x20field\x20\x22'+_0x5c591b+_0x418f5(0x2cb));return{..._0x277bdb};}let z=class{constructor(_0x24f1fa,_0x5b9e3a,_0x3198d0,_0x3bf02a,_0x5976b8,_0x1b1eec,_0x56f4cb){const _0x403013=_0x2530a8;this[_0x403013(0x2ea)]=_0x24f1fa,this[_0x403013(0x1ec)]=_0x5b9e3a,this['_viewId']=_0x3198d0,this['_injector']=_0x3bf02a,this[_0x403013(0x225)]=_0x5976b8,this[_0x403013(0x2e0)]=_0x1b1eec,this[_0x403013(0x1e6)]=_0x56f4cb;}[_0x2530a8(0x2ef)](){const _0x36c292=_0x2530a8;return this[_0x36c292(0x191)];}[_0x2530a8(0x25e)](){const _0x5de8d3=_0x2530a8;let _0x36eff1=this[_0x5de8d3(0x1ec)]['getId']();return new m(this[_0x5de8d3(0x2ea)][_0x5de8d3(0x2ef)](),(0x0,c['getBaseViewPermissionObjectId'])(_0x36eff1,this[_0x5de8d3(0x191)]),[(0x0,c[_0x5de8d3(0x1c1)])(_0x36eff1)],this[_0x5de8d3(0x225)],this[_0x5de8d3(0x2e0)]);}[_0x2530a8(0x18f)](){const _0x42c0f5=_0x2530a8;return this[_0x42c0f5(0x29d)]();}[_0x2530a8(0x270)](){const _0x559b93=_0x2530a8;return this[_0x559b93(0x29d)]()[_0x559b93(0x306)];}['getType'](){const _0x539557=_0x2530a8;return this[_0x539557(0x29d)]()[_0x539557(0x2ff)];}[_0x2530a8(0x20c)](_0x1ec168){const _0x280c07=_0x2530a8;return this[_0x280c07(0x225)][_0x280c07(0x272)](c[_0x280c07(0x2c2)]['id'],{'unitId':this[_0x280c07(0x2ea)][_0x280c07(0x2ef)](),'tableId':this[_0x280c07(0x1ec)]['getId'](),'viewId':this['_viewId'],'name':_0x1ec168});}[_0x2530a8(0x2d4)](){const _0x4da735=_0x2530a8;let _0x358eff=this[_0x4da735(0x233)](),_0x330ff2=this[_0x4da735(0x29d)]()[_0x4da735(0x210)];switch(_0x358eff){case l['BaseViewType'][_0x4da735(0x222)]:return _0x330ff2;case l['BaseViewType']['Kanban']:return _0x330ff2;case l[_0x4da735(0x2f8)][_0x4da735(0x18c)]:return _0x330ff2;case l['BaseViewType']['Gantt']:return _0x330ff2;case l[_0x4da735(0x2f8)][_0x4da735(0x184)]:return _0x330ff2;default:return _0x330ff2;}}[_0x2530a8(0x2c3)](_0x1bf0f3){const _0x33f21d=_0x2530a8;return this[_0x33f21d(0x225)][_0x33f21d(0x272)](c['UpdateBaseViewConfigCommand']['id'],{'unitId':this[_0x33f21d(0x2ea)]['getId'](),'tableId':this[_0x33f21d(0x1ec)][_0x33f21d(0x2ef)](),'viewId':this[_0x33f21d(0x191)],'patch':_0x1bf0f3});}[_0x2530a8(0x1ab)](){const _0x472fdf=_0x2530a8;var _0x3b0433;return l[_0x472fdf(0x209)]['deepClone'](((_0x3b0433=this[_0x472fdf(0x29d)]()['config'][_0x472fdf(0x230)])==null?void 0x0:_0x3b0433[_0x472fdf(0x2ba)])??[]);}[_0x2530a8(0x1ef)](_0x3867b1){const _0x257d14=_0x2530a8;return this['_commandService'][_0x257d14(0x272)](c[_0x257d14(0x1b0)]['id'],{'unitId':this[_0x257d14(0x2ea)][_0x257d14(0x2ef)](),'tableId':this[_0x257d14(0x1ec)][_0x257d14(0x2ef)](),'viewId':this[_0x257d14(0x191)],'type':c[_0x257d14(0x32a)][_0x257d14(0x1c9)],'rules':_0x3867b1});}[_0x2530a8(0x22a)](_0x271fb1){const _0x5552d9=_0x2530a8;return this['_commandService'][_0x5552d9(0x272)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base'][_0x5552d9(0x2ef)](),'tableId':this[_0x5552d9(0x1ec)][_0x5552d9(0x2ef)](),'viewId':this[_0x5552d9(0x191)],'type':c[_0x5552d9(0x32a)][_0x5552d9(0x1e5)],'rule':_0x271fb1});}[_0x2530a8(0x2cd)](_0x3f7b67){const _0x13abb1=_0x2530a8;return this[_0x13abb1(0x225)][_0x13abb1(0x272)](c[_0x13abb1(0x1b0)]['id'],{'unitId':this[_0x13abb1(0x2ea)]['getId'](),'tableId':this[_0x13abb1(0x1ec)][_0x13abb1(0x2ef)](),'viewId':this[_0x13abb1(0x191)],'type':c['BaseConditionalColorRuleUpdateType'][_0x13abb1(0x259)],'ruleId':_0x3f7b67});}[_0x2530a8(0x2fe)](){const _0x5a101c=_0x2530a8;return this[_0x5a101c(0x225)][_0x5a101c(0x272)](c[_0x5a101c(0x1b0)]['id'],{'unitId':this[_0x5a101c(0x2ea)]['getId'](),'tableId':this['_table'][_0x5a101c(0x2ef)](),'viewId':this[_0x5a101c(0x191)],'type':c[_0x5a101c(0x32a)][_0x5a101c(0x2d1)]});}[_0x2530a8(0x2cc)](){const _0x57d88b=_0x2530a8;return this[_0x57d88b(0x29d)]()[_0x57d88b(0x178)]??null;}[_0x2530a8(0x2f1)](_0x2e7b4e){const _0x2fe7af=_0x2530a8;return this[_0x2fe7af(0x225)][_0x2fe7af(0x272)](c[_0x2fe7af(0x32c)]['id'],{'unitId':this[_0x2fe7af(0x2ea)][_0x2fe7af(0x2ef)](),'tableId':this[_0x2fe7af(0x1ec)]['getId'](),'viewId':this[_0x2fe7af(0x191)],'filter':_0x2e7b4e});}[_0x2530a8(0x2f7)](){const _0x136893=_0x2530a8;return this[_0x136893(0x29d)]()[_0x136893(0x224)]??[];}['setSort'](_0x59ded6){const _0x1823ad=_0x2530a8;return this[_0x1823ad(0x225)][_0x1823ad(0x272)](c[_0x1823ad(0x27e)]['id'],{'unitId':this['_base'][_0x1823ad(0x2ef)](),'tableId':this[_0x1823ad(0x1ec)][_0x1823ad(0x2ef)](),'viewId':this[_0x1823ad(0x191)],'sort':_0x59ded6});}[_0x2530a8(0x25f)](){const _0x2fd35d=_0x2530a8;return this[_0x2fd35d(0x29d)]()['group']??[];}['setGroup'](_0x1520ae){const _0x480572=_0x2530a8;return this[_0x480572(0x225)][_0x480572(0x272)](c[_0x480572(0x1b2)]['id'],{'unitId':this[_0x480572(0x2ea)][_0x480572(0x2ef)](),'tableId':this[_0x480572(0x1ec)][_0x480572(0x2ef)](),'viewId':this['_viewId'],'group':_0x1520ae});}[_0x2530a8(0x250)](_0x2aba2d){const _0x150d5c=_0x2530a8;var _0x5b35f1;return y(this[_0x150d5c(0x1ec)][_0x150d5c(0x19f)]()[_0x150d5c(0x263)][_0x2aba2d])?((_0x5b35f1=this[_0x150d5c(0x29d)]()[_0x150d5c(0x281)])==null?void 0x0:_0x5b35f1[_0x2aba2d])??{}:{};}[_0x2530a8(0x29a)](){const _0x1f0b01=_0x2530a8;let _0x123ebb=this[_0x1f0b01(0x1ec)][_0x1f0b01(0x19f)](),_0x40c76b=this[_0x1f0b01(0x29d)]();return(_0x40c76b[_0x1f0b01(0x313)]??_0x123ebb[_0x1f0b01(0x313)])[_0x1f0b01(0x178)](_0x3bd988=>{const _0x23ccb6=_0x1f0b01;var _0x515555;let _0x44f805=_0x123ebb[_0x23ccb6(0x263)][_0x3bd988];return y(_0x44f805)&&!((_0x515555=_0x40c76b[_0x23ccb6(0x281)])!=null&&(_0x515555=_0x515555[_0x3bd988])!=null&&_0x515555[_0x23ccb6(0x2a4)]);})[_0x1f0b01(0x1b3)](_0x5bff6e=>this[_0x1f0b01(0x1b6)][_0x1f0b01(0x1f6)](_,this[_0x1f0b01(0x2ea)],this['_table'],_0x5bff6e));}['setFieldVisible'](_0x1f4920,_0x1fec77){const _0x682d9d=_0x2530a8;return y(this[_0x682d9d(0x1ec)][_0x682d9d(0x19f)]()['fields'][_0x1f4920])?this[_0x682d9d(0x225)]['syncExecuteCommand'](c[_0x682d9d(0x308)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x682d9d(0x2ef)](),'viewId':this[_0x682d9d(0x191)],'fieldId':_0x1f4920,'visible':_0x1fec77}):!0x1;}[_0x2530a8(0x181)](_0x39b48b,_0x831338){const _0x35622a=_0x2530a8;return y(this[_0x35622a(0x1ec)]['getTable']()[_0x35622a(0x263)][_0x39b48b])?this[_0x35622a(0x225)]['syncExecuteCommand'](c[_0x35622a(0x266)]['id'],{'unitId':this[_0x35622a(0x2ea)][_0x35622a(0x2ef)](),'tableId':this[_0x35622a(0x1ec)][_0x35622a(0x2ef)](),'viewId':this[_0x35622a(0x191)],'fieldId':_0x39b48b,'width':_0x831338}):!0x1;}[_0x2530a8(0x2a3)](_0x1364fa,_0x48579c){const _0x58ddf7=_0x2530a8;let _0x54ae36=this[_0x58ddf7(0x1ec)][_0x58ddf7(0x19f)](),_0x12da0b=_0x48579c[_0x58ddf7(0x2db)]??_0x48579c[_0x58ddf7(0x26f)];return!y(_0x54ae36[_0x58ddf7(0x263)][_0x1364fa])||!_0x12da0b||!y(_0x54ae36['fields'][_0x12da0b])?!0x1:this['_commandService'][_0x58ddf7(0x272)](c[_0x58ddf7(0x19a)]['id'],{'unitId':this[_0x58ddf7(0x2ea)][_0x58ddf7(0x2ef)](),'tableId':this[_0x58ddf7(0x1ec)][_0x58ddf7(0x2ef)](),'viewId':this[_0x58ddf7(0x191)],'fieldId':_0x1364fa,'target':_0x48579c});}[_0x2530a8(0x2ed)](_0x2bcdeb){const _0x218525=_0x2530a8;return this[_0x218525(0x225)][_0x218525(0x272)](c['MoveBaseViewCommand']['id'],{'unitId':this[_0x218525(0x2ea)]['getId'](),'tableId':this[_0x218525(0x1ec)]['getId'](),'viewId':this[_0x218525(0x191)],'target':_0x2bcdeb});}['delete'](){const _0x46db92=_0x2530a8;return this[_0x46db92(0x225)]['syncExecuteCommand'](c[_0x46db92(0x271)]['id'],{'unitId':this[_0x46db92(0x2ea)][_0x46db92(0x2ef)](),'tableId':this[_0x46db92(0x1ec)]['getId'](),'viewId':this['_viewId']});}['getProjection'](){const _0x2e3dc5=_0x2530a8;return this[_0x2e3dc5(0x1e6)][_0x2e3dc5(0x297)](this['_base'][_0x2e3dc5(0x1b5)]()[_0x2e3dc5(0x1d6)](),this[_0x2e3dc5(0x1ec)]['getId'](),this[_0x2e3dc5(0x191)]);}['_getView'](){const _0x3c3c09=_0x2530a8;let _0x51601c=this[_0x3c3c09(0x1ec)]['getTable']()[_0x3c3c09(0x19b)][this['_viewId']];if(!_0x51601c)throw Error(_0x3c3c09(0x2a1)+this[_0x3c3c09(0x191)]+'\x22\x20does\x20not\x20exist.');return _0x51601c;}};z=g([h(0x4,l[_0x2530a8(0x26a)]),h(0x5,l['IPermissionService']),h(0x6,c[_0x2530a8(0x31f)])],z);let B=class{constructor(_0x5cee25,_0x5e96ee,_0x193e1f,_0x33d0ce,_0x2df99b,_0x18abf3){const _0x2787ef=_0x2530a8;this['_base']=_0x5cee25,this[_0x2787ef(0x229)]=_0x5e96ee,this[_0x2787ef(0x1b6)]=_0x193e1f,this['_commandService']=_0x33d0ce,this['_permissionService']=_0x2df99b,this[_0x2787ef(0x1e6)]=_0x18abf3;}[_0x2530a8(0x1b5)](){const _0x15cc29=_0x2530a8;return this['_base'][_0x15cc29(0x1b5)]();}[_0x2530a8(0x19f)](){const _0x576a47=_0x2530a8;return this[_0x576a47(0x2ec)]();}['getId'](){return this['_tableId'];}[_0x2530a8(0x25e)](){const _0x4ac71b=_0x2530a8;return new m(this[_0x4ac71b(0x1b5)]()[_0x4ac71b(0x249)](),(0x0,c[_0x4ac71b(0x1c1)])(this[_0x4ac71b(0x229)]),[],this[_0x4ac71b(0x225)],this[_0x4ac71b(0x2e0)]);}[_0x2530a8(0x268)](){const _0x3c7038=_0x2530a8;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x3c7038(0x2ec)]());}[_0x2530a8(0x26c)](_0x685648){const _0x3f5d91=_0x2530a8;return this[_0x3f5d91(0x225)]['syncExecuteCommand'](c[_0x3f5d91(0x2e7)]['id'],{'unitId':this['_base'][_0x3f5d91(0x2ef)](),'tableId':this[_0x3f5d91(0x229)],'fieldId':_0x685648});}[_0x2530a8(0x270)](){const _0x2c6133=_0x2530a8;return this[_0x2c6133(0x2ec)]()['name'];}[_0x2530a8(0x1f4)](){const _0x30a64b=_0x2530a8;let _0x3006c7=this[_0x30a64b(0x2ea)][_0x30a64b(0x1b5)]()[_0x30a64b(0x1d6)]();return(0x0,c[_0x30a64b(0x24e)])(this[_0x30a64b(0x2ec)](),_0x3006c7);}['setName'](_0x4d2b76){const _0x249ae5=_0x2530a8;let _0x2b7c49=(0x0,c[_0x249ae5(0x2fd)])(this[_0x249ae5(0x2ea)]['getBase']()[_0x249ae5(0x1d6)](),_0x4d2b76,this['_tableId']);if(!_0x2b7c49[_0x249ae5(0x1c8)])throw Error(_0x249ae5(0x280)+_0x4d2b76+_0x249ae5(0x1d5)+c[_0x249ae5(0x1eb)]+'\x20'+_0x2b7c49[_0x249ae5(0x2f5)]);return this[_0x249ae5(0x225)][_0x249ae5(0x272)](c['RenameBaseTableCommand']['id'],{'unitId':this['_base'][_0x249ae5(0x2ef)](),'tableId':this['_tableId'],'name':_0x4d2b76});}[_0x2530a8(0x2b8)](_0xd70240,_0x362368){const _0x5a1083=_0x2530a8;let _0x1c8caa=this[_0x5a1083(0x2ea)][_0x5a1083(0x1b5)]()[_0x5a1083(0x1d6)](),_0x2bc3ff=this[_0x5a1083(0x2ec)]();if(_0x362368){let _0x450224=this[_0x5a1083(0x1e6)][_0x5a1083(0x297)](_0x1c8caa,this[_0x5a1083(0x229)],_0x362368),_0x34bdac=_0x2bc3ff[_0x5a1083(0x19b)][_0x362368],_0x3ae77c=_0xd70240[_0x5a1083(0x1a8)]??J(_0x2bc3ff,_0x34bdac,_0x450224),_0x2da80f='rows'in _0x450224&&Array[_0x5a1083(0x244)](_0x450224[_0x5a1083(0x317)])?_0x450224[_0x5a1083(0x317)]:[];return(0x0,c[_0x5a1083(0x23a)])({..._0xd70240,'table':_0x2bc3ff,'fieldIds':_0x3ae77c,'rows':_0x2da80f});}let _0x110661=(_0x2bc3ff['recordOrder']?_0x2bc3ff[_0x5a1083(0x26e)][_0x5a1083(0x1b3)](_0x3bf552=>_0x2bc3ff['records'][_0x3bf552]):Object[_0x5a1083(0x1fd)](_0x2bc3ff['records'])[_0x5a1083(0x224)]((_0x5436dd,_0x559811)=>_0x5436dd['orderKey'][_0x5a1083(0x31c)](_0x559811[_0x5a1083(0x1bf)])))['filter'](_0x962bb4=>_0x962bb4)[_0x5a1083(0x1b3)](_0x57d753=>({'recordId':_0x57d753['id'],'values':_0x57d753[_0x5a1083(0x1fd)]})),_0x38c594=_0xd70240[_0x5a1083(0x1a8)]??_0x2bc3ff[_0x5a1083(0x313)][_0x5a1083(0x178)](_0x701964=>y(_0x2bc3ff[_0x5a1083(0x263)][_0x701964]));return(0x0,c[_0x5a1083(0x23a)])({..._0xd70240,'table':_0x2bc3ff,'fieldIds':_0x38c594,'rows':_0x110661});}['getPrimaryFieldId'](){return this['_getTable']()['primaryFieldId'];}['getFields'](){const _0x46b5b3=_0x2530a8;let _0x2b0dfe=this['_getTable']();return _0x2b0dfe[_0x46b5b3(0x313)][_0x46b5b3(0x1b3)](_0x4a52bf=>_0x2b0dfe['fields'][_0x4a52bf])[_0x46b5b3(0x178)](y)[_0x46b5b3(0x1b3)](_0x22e8d2=>this[_0x46b5b3(0x1b6)]['createInstance'](_,this[_0x46b5b3(0x2ea)],this,_0x22e8d2['id']));}[_0x2530a8(0x2f9)](_0x35a88c){const _0x518de2=_0x2530a8;let _0x38ae3d=this[_0x518de2(0x2ec)]()[_0x518de2(0x263)][_0x35a88c];return y(_0x38ae3d)?this[_0x518de2(0x1b6)][_0x518de2(0x1f6)](_,this[_0x518de2(0x2ea)],this,_0x38ae3d['id']):null;}[_0x2530a8(0x17a)](_0x190f6c){const _0x149d4a=_0x2530a8;let _0x1b8ab2=this[_0x149d4a(0x2ec)]()[_0x149d4a(0x263)],_0x12767e=Object[_0x149d4a(0x1fd)](_0x1b8ab2)['find'](_0x2a2c04=>y(_0x2a2c04)&&_0x2a2c04[_0x149d4a(0x306)]===_0x190f6c);return _0x12767e?this[_0x149d4a(0x1b6)][_0x149d4a(0x1f6)](_,this[_0x149d4a(0x2ea)],this,_0x12767e['id']):null;}['getPrimaryField'](){const _0x5b3f97=_0x2530a8;let _0x1b8c13=this[_0x5b3f97(0x2ec)]()['primaryFieldId'];return this['_injector'][_0x5b3f97(0x1f6)](_,this[_0x5b3f97(0x2ea)],this,_0x1b8c13);}[_0x2530a8(0x24d)](_0x442056,_0x51017e,_0x3921f6){const _0x2ffba7=_0x2530a8;var _0x50058a,_0x275dae;if(!Object['values'](l[_0x2ffba7(0x275)])[_0x2ffba7(0x193)](_0x45e2d3=>_0x45e2d3===_0x51017e))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x51017e)+'\x22.');if(_0x51017e===l[_0x2ffba7(0x275)][_0x2ffba7(0x24a)]&&this[_0x2ffba7(0x2b6)](_0x442056,_0x3921f6),_0x51017e===l['BaseFieldType']['RecordLink']&&(typeof(_0x3921f6==null||(_0x50058a=_0x3921f6[_0x2ffba7(0x2bb)])==null||(_0x50058a=_0x50058a['config'])==null?void 0x0:_0x50058a[_0x2ffba7(0x194)])!='string'||typeof _0x3921f6[_0x2ffba7(0x2bb)][_0x2ffba7(0x210)][_0x2ffba7(0x274)]!=_0x2ffba7(0x310)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x13442d={..._0x3921f6==null?void 0x0:_0x3921f6[_0x2ffba7(0x2bb)],'id':(0x0,l[_0x2ffba7(0x22b)])(0x6),'name':_0x442056,'type':_0x51017e,'config':(_0x3921f6==null||(_0x275dae=_0x3921f6['field'])==null?void 0x0:_0x275dae[_0x2ffba7(0x210)])??{}};if(!this[_0x2ffba7(0x225)][_0x2ffba7(0x272)](c[_0x2ffba7(0x175)]['id'],{'unitId':this[_0x2ffba7(0x2ea)]['getId'](),'tableId':this[_0x2ffba7(0x229)],'field':_0x13442d,'index':_0x3921f6==null?void 0x0:_0x3921f6[_0x2ffba7(0x279)]}))throw Error(_0x2ffba7(0x1f5)+_0x442056+'\x22');return this[_0x2ffba7(0x1b6)][_0x2ffba7(0x1f6)](_,this['_base'],this,_0x13442d['id']);}[_0x2530a8(0x2b6)](_0x70c19a,_0x17ba6f){const _0x2d6b3d=_0x2530a8;var _0x3b8dd8;if(!_0x17ba6f||!(_0x2d6b3d(0x2be)in _0x17ba6f)||!Array[_0x2d6b3d(0x244)](_0x17ba6f[_0x2d6b3d(0x2be)]))throw Error(_0x2d6b3d(0x2e4));let _0x555f34=this['_commandService'][_0x2d6b3d(0x272)](c[_0x2d6b3d(0x2fb)]['id'],{'unitId':this[_0x2d6b3d(0x2ea)][_0x2d6b3d(0x2ef)](),'tableId':this[_0x2d6b3d(0x229)],'formula':String(((_0x3b8dd8=_0x17ba6f[_0x2d6b3d(0x2bb)])==null||(_0x3b8dd8=_0x3b8dd8[_0x2d6b3d(0x210)])==null?void 0x0:_0x3b8dd8[_0x2d6b3d(0x27f)])??'')});if(!_0x555f34[_0x2d6b3d(0x1c8)])throw Error(_0x555f34['reason']??'Invalid\x20Base\x20formula.');if(_0x17ba6f[_0x2d6b3d(0x2be)][_0x2d6b3d(0x1d8)]>0x0&&!this[_0x2d6b3d(0x225)][_0x2d6b3d(0x272)](f[_0x2d6b3d(0x288)]['id'],{'unitId':this['_base']['getId'](),'references':_0x17ba6f[_0x2d6b3d(0x2be)]}))throw Error(_0x2d6b3d(0x242)+_0x70c19a+'\x22');}[_0x2530a8(0x231)](){const _0x51caf4=_0x2530a8;return this['_resolveRecordIds']()['map'](_0x171d50=>this[_0x51caf4(0x1b6)]['createInstance'](I,this[_0x51caf4(0x2ea)],this,_0x171d50,this[_0x51caf4(0x1b6)]));}[_0x2530a8(0x315)](_0x47d5c5){const _0x46b25d=_0x2530a8;return this[_0x46b25d(0x2ec)]()[_0x46b25d(0x1d1)][_0x47d5c5]?this[_0x46b25d(0x1b6)][_0x46b25d(0x1f6)](I,this[_0x46b25d(0x2ea)],this,_0x47d5c5,this[_0x46b25d(0x1b6)]):null;}[_0x2530a8(0x309)](_0x113ae3={}){const _0x5c7396=_0x2530a8;let _0x23e5c3=this['_getTable'](),_0x11e799=this[_0x5c7396(0x255)](_0x113ae3),_0x29015f=Math['max'](0x0,_0x113ae3['offset']??0x0),_0x242430=_0x113ae3[_0x5c7396(0x330)]==null?null:Math[_0x5c7396(0x2da)](0x0,_0x113ae3[_0x5c7396(0x330)]),_0x53e253=H(_0x11e799[_0x5c7396(0x1b3)](_0x533390=>_0x23e5c3[_0x5c7396(0x1d1)][_0x533390])[_0x5c7396(0x178)](_0x150e18=>W(_0x150e18,_0x23e5c3,_0x113ae3['filter'])),_0x23e5c3,_0x113ae3[_0x5c7396(0x224)]);return{'records':V(_0x53e253,_0x113ae3)[_0x5c7396(0x1b3)](_0x1c991e=>this[_0x5c7396(0x1b6)][_0x5c7396(0x1f6)](I,this['_base'],this,_0x1c991e['id'],this['_injector'])),'total':_0x53e253[_0x5c7396(0x1d8)],'offset':_0x29015f,'limit':_0x242430,'hasMore':_0x242430!=null&&_0x29015f+_0x242430<_0x53e253[_0x5c7396(0x1d8)]};}['addRecord'](_0x58379b,_0x2aebb6='id',_0x448f8e){const _0x5d66ad=_0x2530a8;let _0x3bb93f=this['_getTable'](),_0x194b64=Date[_0x5d66ad(0x1a7)](),_0xb78d29={..._0x448f8e,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x3bb93f,_0x58379b,_0x2aebb6),'orderKey':(_0x448f8e==null?void 0x0:_0x448f8e[_0x5d66ad(0x1bf)])||''+_0x194b64,'createdAt':(_0x448f8e==null?void 0x0:_0x448f8e[_0x5d66ad(0x2a9)])||_0x194b64,'updatedAt':(_0x448f8e==null?void 0x0:_0x448f8e['updatedAt'])||_0x194b64};if(!this[_0x5d66ad(0x225)][_0x5d66ad(0x272)](c['CreateBaseRecordCommand']['id'],{'unitId':this[_0x5d66ad(0x2ea)][_0x5d66ad(0x2ef)](),'tableId':this[_0x5d66ad(0x229)],'record':_0xb78d29,'source':c[_0x5d66ad(0x237)][_0x5d66ad(0x17e)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0xb78d29['id']+'\x22');return this['_injector'][_0x5d66ad(0x1f6)](I,this[_0x5d66ad(0x2ea)],this,_0xb78d29['id'],this[_0x5d66ad(0x1b6)]);}[_0x2530a8(0x1f7)](_0x3ee962){const _0x12e5a3=_0x2530a8;if(!_0x3ee962['length'])return[];let _0x43b3ae=this['_getTable'](),_0x480d9d=Date[_0x12e5a3(0x1a7)](),_0x10ee17=_0x3ee962[_0x12e5a3(0x1b3)]((_0x4423d1,_0x1c9b2b)=>{const _0x31850d=_0x12e5a3;var _0x5bee27,_0x261135,_0x369cca;return{..._0x4423d1[_0x31850d(0x228)],'id':(0x0,l[_0x31850d(0x22b)])(0x6),'values':b(_0x43b3ae,_0x4423d1[_0x31850d(0x1fd)],_0x4423d1[_0x31850d(0x27c)]??'id'),'orderKey':((_0x5bee27=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x5bee27['orderKey'])||''+(_0x480d9d+_0x1c9b2b),'createdAt':((_0x261135=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x261135[_0x31850d(0x2a9)])||_0x480d9d,'updatedAt':((_0x369cca=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x369cca[_0x31850d(0x2e2)])||_0x480d9d};});if(!this['_commandService'][_0x12e5a3(0x272)](c[_0x12e5a3(0x2d6)]['id'],{'unitId':this['_base'][_0x12e5a3(0x2ef)](),'tableId':this[_0x12e5a3(0x229)],'records':_0x10ee17,'source':c[_0x12e5a3(0x237)][_0x12e5a3(0x17e)]}))throw Error('Failed\x20to\x20add\x20records');return _0x10ee17[_0x12e5a3(0x1b3)](_0x2ca330=>this['_injector'][_0x12e5a3(0x1f6)](I,this[_0x12e5a3(0x2ea)],this,_0x2ca330['id'],this[_0x12e5a3(0x1b6)]));}[_0x2530a8(0x223)](_0x1a0f2e){const _0x32e388=_0x2530a8;return!_0x1a0f2e[_0x32e388(0x1d8)]||this[_0x32e388(0x225)]['syncExecuteCommand'](c['BatchDeleteBaseRecordsCommand']['id'],{'unitId':this[_0x32e388(0x2ea)]['getId'](),'tableId':this[_0x32e388(0x229)],'recordIds':_0x1a0f2e,'source':c['BaseEventSource'][_0x32e388(0x17e)]});}[_0x2530a8(0x198)](_0x2d5891,_0x736207,_0x26f213=0x1,_0x39868a=0x1){return this['_injector']['createInstance'](A,this['_base'],this,{'startRow':_0x2d5891,'endRow':_0x2d5891+_0x26f213-0x1,'startColumn':_0x736207,'endColumn':_0x736207+_0x39868a-0x1},this['_injector']);}[_0x2530a8(0x1f1)](){const _0x184a3b=_0x2530a8;var _0x4f8682;let _0x5e9846=(0x0,c[_0x184a3b(0x31a)])(this[_0x184a3b(0x2ec)]()),_0x185db4=((_0x4f8682=_0x5e9846['recordOrder'])==null?void 0x0:_0x4f8682[_0x184a3b(0x1d8)])??0x0,_0x43ff2f=_0x5e9846[_0x184a3b(0x313)][_0x184a3b(0x178)](_0x1d9a6c=>y(_0x5e9846[_0x184a3b(0x263)][_0x1d9a6c]))[_0x184a3b(0x1d8)];return this[_0x184a3b(0x198)](0x0,0x0,Math[_0x184a3b(0x2da)](_0x185db4,0x1),Math[_0x184a3b(0x2da)](_0x43ff2f,0x1));}[_0x2530a8(0x192)](){const _0x14aa90=_0x2530a8;let _0x39d868=this[_0x14aa90(0x2ec)]();return _0x39d868[_0x14aa90(0x2b2)][_0x14aa90(0x178)](_0x7dcb32=>_0x39d868[_0x14aa90(0x19b)][_0x7dcb32])[_0x14aa90(0x1b3)](_0x29e00d=>this[_0x14aa90(0x1b6)][_0x14aa90(0x1f6)](z,this[_0x14aa90(0x2ea)],this,_0x29e00d,this[_0x14aa90(0x1b6)]));}[_0x2530a8(0x227)](_0x2bb05f){const _0x39cbdd=_0x2530a8;return this['_getTable']()[_0x39cbdd(0x19b)][_0x2bb05f]?this[_0x39cbdd(0x1b6)][_0x39cbdd(0x1f6)](z,this['_base'],this,_0x2bb05f,this[_0x39cbdd(0x1b6)]):null;}[_0x2530a8(0x1e0)](_0x30b23e){const _0x215cf9=_0x2530a8;let _0x5d9855=this[_0x215cf9(0x2ec)](),_0x28277f=Object['values'](_0x5d9855[_0x215cf9(0x19b)])['find'](_0x251e43=>_0x251e43[_0x215cf9(0x306)]===_0x30b23e);return _0x28277f?this['_injector'][_0x215cf9(0x1f6)](z,this[_0x215cf9(0x2ea)],this,_0x28277f['id'],this[_0x215cf9(0x1b6)]):null;}[_0x2530a8(0x208)](_0x51da92,_0x3d6e6d,_0x22f9ee){const _0x580d51=_0x2530a8;var _0x451b9d,_0x550a75,_0x22a2e9,_0x2c520c;let _0x6a5ee1=this[_0x580d51(0x2ec)](),_0x365bee=(_0x22f9ee==null||(_0x451b9d=_0x22f9ee['view'])==null?void 0x0:_0x451b9d[_0x580d51(0x313)])??_0x6a5ee1[_0x580d51(0x313)],_0x1d4e30=[l['BASE_RECORD_ID_FIELD_ID'],..._0x365bee[_0x580d51(0x178)](_0x11a87a=>y(_0x6a5ee1['fields'][_0x11a87a]))],_0x2f42ae={..._0x22f9ee==null?void 0x0:_0x22f9ee[_0x580d51(0x2f3)],'id':(0x0,l[_0x580d51(0x22b)])(0x6),'name':_0x51da92,'type':_0x3d6e6d,'tableId':this[_0x580d51(0x229)],'config':(_0x22f9ee==null||(_0x550a75=_0x22f9ee[_0x580d51(0x2f3)])==null?void 0x0:_0x550a75[_0x580d51(0x210)])??{},'fieldOrder':_0x1d4e30,'fieldSettings':{..._0x22f9ee==null||(_0x22a2e9=_0x22f9ee[_0x580d51(0x2f3)])==null?void 0x0:_0x22a2e9[_0x580d51(0x281)],[l[_0x580d51(0x2d5)]]:{..._0x22f9ee==null||(_0x2c520c=_0x22f9ee[_0x580d51(0x2f3)])==null||(_0x2c520c=_0x2c520c[_0x580d51(0x281)])==null?void 0x0:_0x2c520c[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x580d51(0x225)][_0x580d51(0x272)](c[_0x580d51(0x220)]['id'],{'unitId':this[_0x580d51(0x2ea)][_0x580d51(0x2ef)](),'tableId':this['_tableId'],'view':_0x2f42ae,'index':_0x22f9ee==null?void 0x0:_0x22f9ee[_0x580d51(0x279)]}))throw Error(_0x580d51(0x20a)+_0x51da92+'\x22');return this[_0x580d51(0x1b6)][_0x580d51(0x1f6)](z,this[_0x580d51(0x2ea)],this,_0x2f42ae['id'],this[_0x580d51(0x1b6)]);}[_0x2530a8(0x25a)](){const _0x2e45b3=_0x2530a8;let _0x3aea1d=this['_getTable'](),_0x454010=_0x3aea1d[_0x2e45b3(0x313)][_0x2e45b3(0x178)](_0x5df6ff=>y(_0x3aea1d[_0x2e45b3(0x263)][_0x5df6ff])),_0x1012fc=_0x3aea1d[_0x2e45b3(0x2b2)][_0x2e45b3(0x178)](_0x35ef21=>_0x3aea1d[_0x2e45b3(0x19b)][_0x35ef21]);return{'id':_0x3aea1d['id'],'name':_0x3aea1d[_0x2e45b3(0x306)],'formulaName':this[_0x2e45b3(0x1f4)](),'primaryFieldId':_0x3aea1d[_0x2e45b3(0x258)],'fieldIds':_0x454010,'viewIds':_0x1012fc,'recordCount':this[_0x2e45b3(0x255)]()[_0x2e45b3(0x1d8)],'fields':_0x454010[_0x2e45b3(0x1b3)](_0x3f3d79=>{const _0x5bf271=_0x2e45b3;let _0x1db0a1=_0x3aea1d[_0x5bf271(0x263)][_0x3f3d79];return{'id':_0x1db0a1['id'],'name':_0x1db0a1[_0x5bf271(0x306)],'type':_0x1db0a1[_0x5bf271(0x2ff)],'config':_0x1db0a1[_0x5bf271(0x210)],'readonly':_0x1db0a1['readonly'],'description':_0x1db0a1[_0x5bf271(0x197)]};}),'views':_0x1012fc[_0x2e45b3(0x1b3)](_0x3b3f1c=>{const _0x54bd87=_0x2e45b3;let _0x834850=_0x3aea1d[_0x54bd87(0x19b)][_0x3b3f1c];return{'id':_0x834850['id'],'name':_0x834850[_0x54bd87(0x306)],'type':_0x834850[_0x54bd87(0x2ff)]};})};}[_0x2530a8(0x2ec)](){const _0x393841=_0x2530a8;let _0x7f8897=this['_base'][_0x393841(0x1b5)]()[_0x393841(0x1d6)]()[_0x393841(0x27b)][this[_0x393841(0x229)]];if(!_0x7f8897)throw Error(_0x393841(0x324)+this[_0x393841(0x229)]+_0x393841(0x285));return _0x7f8897;}[_0x2530a8(0x255)](_0x55eb13={}){const _0x5299ab=_0x2530a8;let _0x3bf949=this[_0x5299ab(0x2ea)]['getBase']()[_0x5299ab(0x1d6)](),_0x755b6=this[_0x5299ab(0x2ec)]();if(_0x55eb13[_0x5299ab(0x304)]){let _0x579f75=this[_0x5299ab(0x1e6)][_0x5299ab(0x297)](_0x3bf949,this[_0x5299ab(0x229)],_0x55eb13[_0x5299ab(0x304)]);if(_0x5299ab(0x317)in _0x579f75&&Array['isArray'](_0x579f75['rows']))return _0x579f75[_0x5299ab(0x317)][_0x5299ab(0x1b3)](_0x5c781c=>_0x5c781c['recordId']);}return(_0x755b6[_0x5299ab(0x26e)]?_0x755b6['recordOrder']['map'](_0x563ccb=>_0x755b6[_0x5299ab(0x1d1)][_0x563ccb]):Object[_0x5299ab(0x1fd)](_0x755b6['records'])[_0x5299ab(0x224)]((_0x2e2334,_0x498cf5)=>_0x2e2334['orderKey'][_0x5299ab(0x31c)](_0x498cf5[_0x5299ab(0x1bf)])))[_0x5299ab(0x178)](_0x271165=>_0x271165)[_0x5299ab(0x1b3)](_0x3a4e3a=>_0x3a4e3a['id']);}};B=g([h(0x3,l[_0x2530a8(0x26a)]),h(0x4,l[_0x2530a8(0x260)]),h(0x5,c[_0x2530a8(0x31f)])],B);function V(_0x49ef03,_0x5a5652){const _0x9d0838=_0x2530a8;let _0x5cc079=Math['max'](0x0,_0x5a5652[_0x9d0838(0x21d)]??0x0);return _0x5a5652[_0x9d0838(0x330)]==null?_0x49ef03[_0x9d0838(0x269)](_0x5cc079):_0x49ef03['slice'](_0x5cc079,_0x5cc079+Math[_0x9d0838(0x2da)](0x0,_0x5a5652[_0x9d0838(0x330)]));}function H(_0x2f3ab8,_0x4a302f,_0xcb77aa=[]){return _0xcb77aa['length']?[..._0x2f3ab8]['sort']((_0x5b6d36,_0x24a120)=>{const _0x18ace7=_0x3370;for(let _0x30eda7 of _0xcb77aa){var _0x1fbb25;let _0x1a302f=_0x30eda7['direction']===l[_0x18ace7(0x318)]['DESC']?-0x1:0x1,_0x4f7348=U(_0x5b6d36[_0x18ace7(0x1fd)][_0x30eda7['fieldId']],_0x24a120[_0x18ace7(0x1fd)][_0x30eda7['fieldId']],(_0x1fbb25=_0x4a302f['fields'][_0x30eda7[_0x18ace7(0x316)]])==null?void 0x0:_0x1fbb25[_0x18ace7(0x2ff)]);if(_0x4f7348!==0x0)return _0x4f7348*_0x1a302f;}return String(_0x5b6d36[_0x18ace7(0x1bf)]??_0x5b6d36['id'])['localeCompare'](String(_0x24a120[_0x18ace7(0x1bf)]??_0x24a120['id']));}):_0x2f3ab8;}function U(_0x30dd3f,_0x261e4b,_0x1b72eb){const _0x140e48=_0x2530a8;return _0x30dd3f==null&&_0x261e4b==null?0x0:_0x30dd3f==null?-0x1:_0x261e4b==null?0x1:typeof _0x30dd3f==_0x140e48(0x1ee)&&typeof _0x261e4b==_0x140e48(0x1ee)?_0x30dd3f-_0x261e4b:_0x1b72eb===l[_0x140e48(0x275)]['Date']?Number(_0x30dd3f)-Number(_0x261e4b):String(_0x30dd3f)[_0x140e48(0x31c)](String(_0x261e4b));}function W(_0x3f8a3b,_0x3185d5,_0x296c3b){const _0x7de783=_0x2530a8;var _0x31023e;if(!_0x296c3b||!((_0x31023e=_0x296c3b[_0x7de783(0x1ea)])!=null&&_0x31023e[_0x7de783(0x1d8)]))return!0x0;let {conjunction:_0x1ad7a2=l[_0x7de783(0x1ed)]['OR'],conditions:_0x1c8274}=_0x296c3b;return _0x1ad7a2===l[_0x7de783(0x1ed)][_0x7de783(0x30e)]&&_0x1c8274[_0x7de783(0x1d8)]>0x1?_0x1c8274['every'](_0x319d3b=>G(_0x3f8a3b,_0x3185d5,_0x319d3b)):_0x1c8274[_0x7de783(0x193)](_0x51d75e=>G(_0x3f8a3b,_0x3185d5,_0x51d75e));}function G(_0x181d6a,_0x2cb84,_0x25fe0a){const _0x518660=_0x2530a8;let _0x4e56aa=_0x181d6a[_0x518660(0x1fd)][_0x25fe0a[_0x518660(0x316)]],_0x3c2aff=_0x2cb84[_0x518660(0x263)][_0x25fe0a[_0x518660(0x316)]];if(K(_0x25fe0a)){let _0x1354a3=q(_0x25fe0a)['test'](String(_0x4e56aa??''));return _0x25fe0a[_0x518660(0x202)]===_0x518660(0x182)?_0x1354a3:!_0x1354a3;}return!_0x3c2aff||(0x0,c[_0x518660(0x2a5)])(_0x4e56aa,_0x25fe0a[_0x518660(0x202)],_0x25fe0a[_0x518660(0x239)],_0x3c2aff);}function K(_0x49db15){const _0x1d8fa1=_0x2530a8;return _0x49db15[_0x1d8fa1(0x202)]===_0x1d8fa1(0x182)||_0x49db15[_0x1d8fa1(0x202)]===_0x1d8fa1(0x283);}function q(_0x54323e){const _0xc113e1=_0x2530a8;let _0x5e1cca=String(_0x54323e[_0xc113e1(0x239)]??'');if(_0x5e1cca[_0xc113e1(0x1d8)]>0x200)throw Error(_0xc113e1(0x2e6));try{return new RegExp(_0x5e1cca,_0x54323e['caseSensitive']?void 0x0:'i');}catch(_0x2a2bdc){throw Error(_0xc113e1(0x2d2)+_0x5e1cca+'.\x20'+(_0x2a2bdc instanceof Error?_0x2a2bdc[_0xc113e1(0x326)]:String(_0x2a2bdc)));}}function J(_0x3da055,_0x4a079d,_0xec2b5e){const _0x2d8bfd=_0x2530a8;if(_0xec2b5e[_0x2d8bfd(0x2ff)]!==_0x2d8bfd(0x314)&&_0xec2b5e[_0x2d8bfd(0x2ff)]!==_0x2d8bfd(0x1f2)){var _0x520f2a;if(_0xec2b5e[_0x2d8bfd(0x2ff)]===l[_0x2d8bfd(0x2f8)][_0x2d8bfd(0x17b)]){var _0x14e6db;let _0x3848ed=[((_0x14e6db=_0xec2b5e[_0x2d8bfd(0x263)])==null||(_0x14e6db=_0x14e6db[0x0])==null?void 0x0:_0x14e6db['id'])??_0x3da055[_0x2d8bfd(0x258)],..._0xec2b5e[_0x2d8bfd(0x1d2)]??[]];return Array['from'](new Set(_0x3848ed[_0x2d8bfd(0x178)](_0xb4bda0=>!!_0x3da055[_0x2d8bfd(0x263)][_0xb4bda0])));}if((_0x520f2a=_0xec2b5e[_0x2d8bfd(0x263)])!=null&&_0x520f2a[_0x2d8bfd(0x1d8)])return _0xec2b5e[_0x2d8bfd(0x263)][_0x2d8bfd(0x1b3)](_0x23f85c=>_0x23f85c['id'])[_0x2d8bfd(0x178)](_0x55ab0e=>{const _0x1d6b8e=_0x2d8bfd;var _0x4c84e3;return!(!_0x3da055[_0x1d6b8e(0x263)][_0x55ab0e]||_0x4a079d!=null&&(_0x4c84e3=_0x4a079d['fieldSettings'])!=null&&(_0x4c84e3=_0x4c84e3[_0x55ab0e])!=null&&_0x4c84e3[_0x1d6b8e(0x2a4)]);});}return _0x3da055[_0x2d8bfd(0x313)][_0x2d8bfd(0x178)](_0x479ce9=>{const _0x40f014=_0x2d8bfd;var _0x1a8096;return!(!_0x3da055['fields'][_0x479ce9]||_0x4a079d!=null&&(_0x1a8096=_0x4a079d[_0x40f014(0x281)])!=null&&(_0x1a8096=_0x1a8096[_0x479ce9])!=null&&_0x1a8096[_0x40f014(0x2a4)]);});}let Y=class extends u['FBase']{constructor(_0x5b2a8a,_0x394daf,_0x2a80a5,_0x16b0f8,_0x42e22e){const _0x413af5=_0x2530a8;super(),this[_0x413af5(0x2ea)]=_0x5b2a8a,this[_0x413af5(0x1b6)]=_0x394daf,this['_resourceLoaderService']=_0x2a80a5,this[_0x413af5(0x225)]=_0x16b0f8,this[_0x413af5(0x2e0)]=_0x42e22e;}[_0x2530a8(0x1b5)](){const _0x69ddcc=_0x2530a8;return this[_0x69ddcc(0x2ea)];}[_0x2530a8(0x2ef)](){const _0x2a512c=_0x2530a8;return this[_0x2a512c(0x2ea)][_0x2a512c(0x249)]();}[_0x2530a8(0x25e)](){const _0x576c36=_0x2530a8;return new p(this[_0x576c36(0x2ef)](),this[_0x576c36(0x225)],this['_permissionService']);}[_0x2530a8(0x2b5)](){const _0x1d182c=_0x2530a8;return this[_0x1d182c(0x177)][_0x1d182c(0x265)](this[_0x1d182c(0x2ef)]())??l[_0x1d182c(0x209)][_0x1d182c(0x31b)](this[_0x1d182c(0x2ea)][_0x1d182c(0x1d6)]());}[_0x2530a8(0x270)](){const _0x2248fa=_0x2530a8;return this[_0x2248fa(0x2ea)][_0x2248fa(0x1d6)]()[_0x2248fa(0x306)];}[_0x2530a8(0x20c)](_0x468c1b){const _0x234d70=_0x2530a8;this[_0x234d70(0x225)][_0x234d70(0x272)](c['SetBaseNameCommand']['id'],{'unitId':this['getId'](),'name':_0x468c1b});}[_0x2530a8(0x27a)](){const _0x400ab1=_0x2530a8;let _0x5e1f34=this[_0x400ab1(0x2ea)][_0x400ab1(0x1d6)]();return _0x5e1f34[_0x400ab1(0x296)][_0x400ab1(0x1b3)](_0x1f880b=>_0x5e1f34[_0x400ab1(0x27b)][_0x1f880b])[_0x400ab1(0x178)](_0x4a8a76=>_0x4a8a76)['map'](_0x4dfe00=>this['_injector'][_0x400ab1(0x1f6)](B,this,_0x4dfe00['id'],this[_0x400ab1(0x1b6)]));}[_0x2530a8(0x205)](_0x443b7d){const _0x20754c=_0x2530a8;let _0x4638c4=this[_0x20754c(0x2ea)][_0x20754c(0x1d6)]()[_0x20754c(0x27b)][_0x443b7d];return _0x4638c4?this[_0x20754c(0x1b6)][_0x20754c(0x1f6)](B,this,_0x4638c4['id'],this['_injector']):null;}[_0x2530a8(0x1f9)](_0x3dbc7c){const _0x18207a=_0x2530a8;let _0x50273b=this[_0x18207a(0x2ea)][_0x18207a(0x1d6)](),_0x122b7f=Object[_0x18207a(0x1fd)](_0x50273b[_0x18207a(0x27b)])[_0x18207a(0x1db)](_0x44b25d=>_0x44b25d['name']===_0x3dbc7c);return _0x122b7f?this[_0x18207a(0x1b6)][_0x18207a(0x1f6)](B,this,_0x122b7f['id'],this['_injector']):null;}['insertTable'](_0x5775d2,_0x94a2a2){const _0x3545f3=_0x2530a8;let _0x1edada=(0x0,l['createDefaultBaseTableSnapshot'])({'id':(0x0,l[_0x3545f3(0x22b)])(),'name':_0x5775d2,..._0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x1ba)],'primaryFieldName':_0x94a2a2==null?void 0x0:_0x94a2a2['primaryFieldName']}),_0x494044=l['Tools'][_0x3545f3(0x312)](_0x1edada,(_0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x1ba)])??{}),_0x39c41b=(0x0,c['validateBaseTableName'])(this['_base'][_0x3545f3(0x1d6)](),_0x494044[_0x3545f3(0x306)]);if(!_0x39c41b[_0x3545f3(0x1c8)])throw Error(_0x3545f3(0x2f6)+_0x494044[_0x3545f3(0x306)]+_0x3545f3(0x1d5)+c[_0x3545f3(0x1eb)]+'\x20'+_0x39c41b[_0x3545f3(0x2f5)]);if(!this[_0x3545f3(0x225)][_0x3545f3(0x272)](c[_0x3545f3(0x236)]['id'],{'unitId':this[_0x3545f3(0x2ea)][_0x3545f3(0x249)](),'table':_0x494044,'index':_0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x279)]}))throw Error(_0x3545f3(0x1d4)+_0x5775d2+'\x22.');return this[_0x3545f3(0x1b6)][_0x3545f3(0x1f6)](B,this,_0x494044['id'],this['_injector']);}[_0x2530a8(0x247)](_0x1b70fd){const _0x5a0392=_0x2530a8;let _0x225434=typeof _0x1b70fd==_0x5a0392(0x1ac)?_0x1b70fd:_0x1b70fd[_0x5a0392(0x2ef)]();if(!this[_0x5a0392(0x225)][_0x5a0392(0x272)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x5a0392(0x2ea)][_0x5a0392(0x249)](),'tableId':_0x225434}))throw Error(_0x5a0392(0x31d)+_0x225434+'\x22.');return!0x0;}[_0x2530a8(0x26d)](_0xdefc2d,_0x506e55){const _0x3ce45a=_0x2530a8;let _0x4c9aa4=this[_0x3ce45a(0x2ea)][_0x3ce45a(0x1d6)](),_0x13270c=typeof _0xdefc2d=='string'?_0xdefc2d:_0xdefc2d['getId'](),_0x2132b7=_0x4c9aa4[_0x3ce45a(0x27b)][_0x13270c];if(!_0x2132b7)throw Error(_0x3ce45a(0x252)+_0x13270c+_0x3ce45a(0x285));let _0x3455e4=_0x4c9aa4[_0x3ce45a(0x296)]['indexOf'](_0x13270c)+0x1,_0x23228f=(0x0,l[_0x3ce45a(0x22b)])(),_0x2e4ed7=(0x0,c[_0x3ce45a(0x1cf)])(_0x2132b7,{'id':_0x23228f,'name':(0x0,c[_0x3ce45a(0x286)])(_0x4c9aa4,_0x2132b7[_0x3ce45a(0x306)]+_0x3ce45a(0x18b)),'includeRecords':(_0x506e55==null?void 0x0:_0x506e55[_0x3ce45a(0x246)])??!0x1,'regenerateViewIds':(_0x506e55==null?void 0x0:_0x506e55[_0x3ce45a(0x2ad)])??!0x1});if(!this[_0x3ce45a(0x225)][_0x3ce45a(0x272)](c[_0x3ce45a(0x236)]['id'],{'unitId':this[_0x3ce45a(0x2ea)][_0x3ce45a(0x249)](),'table':_0x2e4ed7,'index':_0x3455e4}))throw Error(_0x3ce45a(0x1b4)+_0x13270c+'\x22.');return this['_injector'][_0x3ce45a(0x1f6)](B,this,_0x2e4ed7['id'],this[_0x3ce45a(0x1b6)]);}[_0x2530a8(0x25a)](){const _0x48e21e=_0x2530a8;let _0x3c69b8=this[_0x48e21e(0x2ea)][_0x48e21e(0x1d6)]();return{'id':_0x3c69b8['id'],'name':_0x3c69b8[_0x48e21e(0x306)],'tables':this[_0x48e21e(0x27a)]()['map'](_0x5341b1=>_0x5341b1['getSchema']())};}};function _0x3370(_0x532773,_0xd269ca){_0x532773=_0x532773-0x175;const _0x3dab62=_0x3dab();let _0x33709d=_0x3dab62[_0x532773];return _0x33709d;}Y=g([h(0x1,(0x0,l[_0x2530a8(0x2ab)])(l[_0x2530a8(0x2c5)])),h(0x2,l[_0x2530a8(0x248)]),h(0x3,l[_0x2530a8(0x26a)]),h(0x4,l[_0x2530a8(0x260)])],Y);var X=class extends u[_0x2530a8(0x18e)]{[_0x2530a8(0x1f3)](){const _0x24e985=_0x2530a8;this[_0x24e985(0x1dc)](),this[_0x24e985(0x253)]();}[_0x2530a8(0x1fb)](_0x1d0749={},_0x179cfc){const _0x3c0c22=_0x2530a8;let _0x4d14da=this[_0x3c0c22(0x206)][_0x3c0c22(0x25c)](l[_0x3c0c22(0x1d3)][_0x3c0c22(0x20f)],_0x1d0749,_0x179cfc);return this[_0x3c0c22(0x1b6)][_0x3c0c22(0x1f6)](Y,_0x4d14da);}[_0x2530a8(0x214)](){const _0x522546=_0x2530a8;let _0x391636=this[_0x522546(0x206)][_0x522546(0x1a5)](l[_0x522546(0x1d3)][_0x522546(0x20f)]);return _0x391636?this[_0x522546(0x1b6)][_0x522546(0x1f6)](Y,_0x391636):null;}[_0x2530a8(0x1b5)](_0xb06c6e){const _0x2a7432=_0x2530a8;let _0x407e28=this[_0x2a7432(0x206)][_0x2a7432(0x1d7)](_0xb06c6e,l['UniverInstanceType'][_0x2a7432(0x20f)]);return _0x407e28?this[_0x2a7432(0x1b6)][_0x2a7432(0x1f6)](Y,_0x407e28):null;}[_0x2530a8(0x1e4)](){const _0x184f54=_0x2530a8;return this[_0x184f54(0x206)][_0x184f54(0x2e8)](l[_0x184f54(0x1d3)][_0x184f54(0x20f)])['map'](_0x31d609=>this['_injector'][_0x184f54(0x1f6)](Y,_0x31d609));}[_0x2530a8(0x253)](){const _0x3e8606=_0x2530a8;this['disposeWithMe'](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x28f)],()=>this[_0x3e8606(0x225)]['onCommandExecuted']((_0x15e4fc,_0x3a6391)=>{const _0x1e2f79=_0x3e8606;var _0x373f63;if(!Z(_0x15e4fc,c[_0x1e2f79(0x17d)]))return;let _0x447109=_0x15e4fc[_0x1e2f79(0x289)];if(!((_0x373f63=_0x447109[_0x1e2f79(0x2fa)])!=null&&_0x373f63[_0x1e2f79(0x1d8)]))return;let _0x551a91=this[_0x1e2f79(0x1b5)](_0x447109['unitId']),_0x4b80bb=_0x551a91==null?void 0x0:_0x551a91[_0x1e2f79(0x205)](_0x447109[_0x1e2f79(0x2fa)][0x0]['tableId']);if(!_0x551a91||!_0x4b80bb)return;let _0x48e5a0={'base':_0x551a91,'table':_0x4b80bb,'changes':_0x447109[_0x1e2f79(0x2fa)],'source':_0x3a6391!=null&&_0x3a6391['fromCollab']?c[_0x1e2f79(0x237)][_0x1e2f79(0x295)]:_0x447109[_0x1e2f79(0x2c7)]??c['BaseEventSource']['UI']};this['fireEvent'](this[_0x1e2f79(0x2af)][_0x1e2f79(0x28f)],_0x48e5a0);}))),this['disposeWithMe'](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x2b7)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0x6e0ada=>{const _0x50de89=_0x3e8606;if(_0x6e0ada['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0x33d583,table:_0x82c160,index:_0x1102e4}=_0x6e0ada[_0x50de89(0x289)],_0x351bd1=this[_0x50de89(0x1b5)](_0x33d583);if(!_0x351bd1)return;let _0x2b16d8={'base':_0x351bd1,'table':_0x82c160,'index':_0x1102e4};this[_0x50de89(0x254)](this[_0x50de89(0x2af)][_0x50de89(0x2b7)],_0x2b16d8);}))),this[_0x3e8606(0x1c2)](this['registerEventHandler'](this[_0x3e8606(0x2af)][_0x3e8606(0x25d)],()=>this[_0x3e8606(0x225)]['onCommandExecuted'](_0x3e54b5=>{const _0x16bcd3=_0x3e8606;if(_0x3e54b5['id']!==c[_0x16bcd3(0x175)]['id'])return;let {unitId:_0x791766,tableId:_0x5125c4,field:_0x2e1f9d,index:_0x1b6416,viewIndexes:_0x472245}=_0x3e54b5['params'],_0x8a0f6c=this[_0x16bcd3(0x1b5)](_0x791766);if(!_0x8a0f6c)return;let _0x213d41=_0x8a0f6c['getTableById'](_0x5125c4);if(!_0x213d41)return;let _0x166f60={'base':_0x8a0f6c,'table':_0x213d41,'field':_0x2e1f9d,'index':_0x1b6416,'viewIndexes':_0x472245};this[_0x16bcd3(0x254)](this[_0x16bcd3(0x2af)][_0x16bcd3(0x25d)],_0x166f60);}))),this[_0x3e8606(0x1c2)](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x292)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0x5a3b46=>{const _0x588b41=_0x3e8606;if(_0x5a3b46['id']!==c[_0x588b41(0x1bc)]['id']&&_0x5a3b46['id']!==c[_0x588b41(0x2d6)]['id'])return;let _0xc92615=_0x5a3b46['params'],{unitId:_0x213138,tableId:_0x33db63}=_0xc92615,_0x4d90f1=_0xc92615[_0x588b41(0x1d1)]??[_0xc92615[_0x588b41(0x228)]],_0xd37ccd=this[_0x588b41(0x1b5)](_0x213138);if(!_0xd37ccd)return;let _0x4db569=_0xd37ccd[_0x588b41(0x205)](_0x33db63);if(!_0x4db569)return;let _0x3fd5c2={'base':_0xd37ccd,'table':_0x4db569,'records':_0x4d90f1};this[_0x588b41(0x254)](this[_0x588b41(0x2af)][_0x588b41(0x292)],_0x3fd5c2);}))),this[_0x3e8606(0x1c2)](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x2d7)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0xb71ba5=>{const _0x770bb7=_0x3e8606;if(_0xb71ba5['id']!==c[_0x770bb7(0x220)]['id'])return;let {unitId:_0x1b1c5e,tableId:_0x332761,view:_0x5d77df,index:_0x4b56ab}=_0xb71ba5[_0x770bb7(0x289)],_0x479527=this['getBase'](_0x1b1c5e);if(!_0x479527)return;let _0x555828=_0x479527[_0x770bb7(0x205)](_0x332761);if(!_0x555828)return;let _0x2d9066={'base':_0x479527,'table':_0x555828,'view':_0x5d77df,'index':_0x4b56ab};this[_0x770bb7(0x254)](this[_0x770bb7(0x2af)][_0x770bb7(0x2d7)],_0x2d9066);}))),this[_0x3e8606(0x1c2)](this['registerEventHandler'](this[_0x3e8606(0x2af)][_0x3e8606(0x216)],()=>this[_0x3e8606(0x225)]['onCommandExecuted'](_0x33d45c=>{const _0x34987d=_0x3e8606;if(_0x33d45c['id']!==c[_0x34987d(0x2c0)]['id'])return;let {unitId:_0x2b85a6,tableId:_0x1bf564,recordId:_0x274643,fieldId:_0x5a0f24,value:_0x445ea2}=_0x33d45c[_0x34987d(0x289)],_0x5ee4c6=this['getBase'](_0x2b85a6);if(!_0x5ee4c6)return;let _0x4c73be=_0x5ee4c6[_0x34987d(0x205)](_0x1bf564);if(!_0x4c73be)return;let _0x1aad61=_0x4c73be[_0x34987d(0x2f9)](_0x5a0f24);if(!_0x1aad61)return;let _0x4cbb7f=_0x4c73be[_0x34987d(0x315)](_0x274643);if(!_0x4cbb7f)return;let _0x4aac08={'base':_0x5ee4c6,'table':_0x4c73be,'field':_0x1aad61,'record':_0x4cbb7f,'value':_0x445ea2};this[_0x34987d(0x254)](this['Event'][_0x34987d(0x216)],_0x4aac08);})));}[_0x2530a8(0x1dc)](){const _0x346ff4=_0x2530a8;this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x30d)],()=>this[_0x346ff4(0x225)]['beforeCommandExecuted'](_0x560df3=>{const _0x2085bc=_0x346ff4;if(Z(_0x560df3,c[_0x2085bc(0x305)])){let {unitId:_0x4e146c,tableId:_0x37eb08,patches:_0x2c0bde,source:_0x2040be=c['BaseEventSource']['UI']}=_0x560df3['params'],_0x2e1188=this[_0x2085bc(0x21a)](_0x4e146c,_0x37eb08);if(!_0x2e1188)return;this[_0x2085bc(0x2ce)](_0x2e1188['base'],_0x2e1188['table'],(0x0,c[_0x2085bc(0x200)])(_0x2e1188['table'][_0x2085bc(0x19f)](),_0x2c0bde),_0x2040be);return;}if(Z(_0x560df3,c[_0x2085bc(0x2d3)])){let {unitId:_0xdabc84,tableId:_0xbffee8,patches:_0x58b1f6,source:_0x594eb6=c[_0x2085bc(0x237)]['UI']}=_0x560df3[_0x2085bc(0x289)],_0x2d11da=this[_0x2085bc(0x21a)](_0xdabc84,_0xbffee8);if(!_0x2d11da)return;let _0x51d35f=_0x2d11da['table'][_0x2085bc(0x19f)]();this['_fireBeforeHierarchyChange'](_0x2d11da[_0x2085bc(0x22c)],_0x2d11da['table'],(0x0,c[_0x2085bc(0x200)])(_0x51d35f,(0x0,c[_0x2085bc(0x2ca)])(_0x51d35f,_0x58b1f6)),_0x594eb6);return;}if(Z(_0x560df3,c['CreateBaseRecordCommand'])){let _0x4e9d11=_0x560df3[_0x2085bc(0x289)],_0x3380ee=this['_getHierarchyEventContext'](_0x4e9d11[_0x2085bc(0x245)],_0x4e9d11['tableId']);if(!_0x3380ee)return;this[_0x2085bc(0x2ce)](_0x3380ee[_0x2085bc(0x22c)],_0x3380ee[_0x2085bc(0x1ba)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x3380ee[_0x2085bc(0x1ba)]['getTable'](),[_0x4e9d11['record']]),_0x4e9d11[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x2d6)])){let _0x5e8705=_0x560df3[_0x2085bc(0x289)],_0x3f1aaf=this['_getHierarchyEventContext'](_0x5e8705[_0x2085bc(0x245)],_0x5e8705[_0x2085bc(0x2bc)]);if(!_0x3f1aaf)return;this[_0x2085bc(0x2ce)](_0x3f1aaf['base'],_0x3f1aaf['table'],(0x0,c[_0x2085bc(0x1aa)])(_0x3f1aaf['table'][_0x2085bc(0x19f)](),_0x5e8705['records']),_0x5e8705[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c['DuplicateBaseRecordCommand'])){let _0x4ea91c=_0x560df3[_0x2085bc(0x289)],_0x449891=this['_getHierarchyEventContext'](_0x4ea91c[_0x2085bc(0x245)],_0x4ea91c[_0x2085bc(0x2bc)]);if(!_0x449891)return;this[_0x2085bc(0x2ce)](_0x449891[_0x2085bc(0x22c)],_0x449891['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x449891[_0x2085bc(0x1ba)]['getTable'](),[_0x4ea91c[_0x2085bc(0x228)]]),_0x4ea91c['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x201)])){let _0x43307e=_0x560df3[_0x2085bc(0x289)],_0x41fdf2=this[_0x2085bc(0x21a)](_0x43307e[_0x2085bc(0x245)],_0x43307e['tableId']);if(!_0x41fdf2)return;let _0x1ec801=_0x41fdf2[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),_0x5df6a6=_0x43307e[_0x2085bc(0x316)]??(0x0,c[_0x2085bc(0x22e)])(_0x1ec801),_0x4ff519=(0x0,c[_0x2085bc(0x2de)])(_0x1ec801,_0x5df6a6)['parentByRecordId'][_0x2085bc(0x1be)](_0x43307e['recordId'])??null;this[_0x2085bc(0x2ce)](_0x41fdf2[_0x2085bc(0x22c)],_0x41fdf2[_0x2085bc(0x1ba)],[{'tableId':_0x43307e['tableId'],'fieldId':_0x5df6a6,'recordId':_0x43307e['recordId'],'oldParentRecordId':_0x4ff519,'parentRecordId':_0x43307e['parentRecordId']}],_0x43307e[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x1bb)])){let _0x408c90=_0x560df3[_0x2085bc(0x289)],_0x4d4cbc=this['_getHierarchyEventContext'](_0x408c90[_0x2085bc(0x245)],_0x408c90[_0x2085bc(0x2bc)]);if(!_0x4d4cbc)return;let _0xf6e85d=_0x408c90[_0x2085bc(0x316)]??(0x0,c[_0x2085bc(0x22e)])(_0x4d4cbc[_0x2085bc(0x1ba)]['getTable']());this[_0x2085bc(0x2ce)](_0x4d4cbc[_0x2085bc(0x22c)],_0x4d4cbc[_0x2085bc(0x1ba)],[{'tableId':_0x408c90['tableId'],'fieldId':_0xf6e85d,'recordId':_0x408c90[_0x2085bc(0x228)]['id'],'oldParentRecordId':null,'parentRecordId':_0x408c90[_0x2085bc(0x2dc)]}],_0x408c90[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x2f4)])){let _0x32e13c=_0x560df3[_0x2085bc(0x289)],_0x16053d=this['_getHierarchyEventContext'](_0x32e13c[_0x2085bc(0x245)],_0x32e13c[_0x2085bc(0x2bc)]);if(!_0x16053d)return;this['_fireBeforeHierarchyChange'](_0x16053d[_0x2085bc(0x22c)],_0x16053d[_0x2085bc(0x1ba)],(0x0,c[_0x2085bc(0x327)])(_0x16053d[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),[_0x32e13c['recordId']]),_0x32e13c[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x243)])){let _0x1d27ed=_0x560df3[_0x2085bc(0x289)],_0xdbf7d8=this[_0x2085bc(0x21a)](_0x1d27ed[_0x2085bc(0x245)],_0x1d27ed[_0x2085bc(0x2bc)]);if(!_0xdbf7d8)return;this[_0x2085bc(0x2ce)](_0xdbf7d8[_0x2085bc(0x22c)],_0xdbf7d8['table'],(0x0,c[_0x2085bc(0x327)])(_0xdbf7d8[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),_0x1d27ed['recordIds']),_0x1d27ed[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(!Z(_0x560df3,c[_0x2085bc(0x2c0)]))return;let _0x120a4e=_0x560df3['params'],_0x3e2ae9=this[_0x2085bc(0x21a)](_0x120a4e[_0x2085bc(0x245)],_0x120a4e[_0x2085bc(0x2bc)]);if(!_0x3e2ae9)return;let _0x55870f=_0x3e2ae9['table'][_0x2085bc(0x19f)]();if(!(0x0,c[_0x2085bc(0x30a)])(_0x55870f)[_0x2085bc(0x2b9)](_0x120a4e['fieldId']))return;let _0x4181cb=(0x0,c['buildBaseHierarchyIndex'])(_0x55870f,_0x120a4e[_0x2085bc(0x316)])[_0x2085bc(0x2a2)][_0x2085bc(0x1be)](_0x120a4e[_0x2085bc(0x2df)])??null,_0x15ae59=(0x0,c[_0x2085bc(0x1e9)])(_0x120a4e[_0x2085bc(0x239)])[0x0]??null;_0x4181cb!==_0x15ae59&&this[_0x2085bc(0x2ce)](_0x3e2ae9[_0x2085bc(0x22c)],_0x3e2ae9['table'],[{'tableId':_0x120a4e[_0x2085bc(0x2bc)],'fieldId':_0x120a4e[_0x2085bc(0x316)],'recordId':_0x120a4e[_0x2085bc(0x2df)],'oldParentRecordId':_0x4181cb,'parentRecordId':_0x15ae59}],_0x120a4e[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x293)],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x857d06=>{const _0x4cdac1=_0x346ff4;if(_0x857d06['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0xabc258,table:_0x5a550d,index:_0x2e1202}=_0x857d06['params'],_0x40b8da=this['getBase'](_0xabc258);if(!_0x40b8da)return;let _0x1706ce={'base':_0x40b8da,'table':_0x5a550d,'index':_0x2e1202};if(this[_0x4cdac1(0x254)](this[_0x4cdac1(0x2af)][_0x4cdac1(0x293)],_0x1706ce),_0x1706ce[_0x4cdac1(0x1c3)])throw new l[(_0x4cdac1(0x26b))]();}))),this[_0x346ff4(0x1c2)](this['registerEventHandler'](this['Event']['BeforeBaseTableFieldCreate'],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x53abdb=>{const _0x53579b=_0x346ff4;if(_0x53abdb['id']!==c[_0x53579b(0x175)]['id'])return;let {unitId:_0x2eeac5,tableId:_0x428c6d,field:_0x2e4e76,index:_0x5553eb,viewIndexes:_0x19d13c}=_0x53abdb[_0x53579b(0x289)],_0x3c5389=this[_0x53579b(0x1b5)](_0x2eeac5);if(!_0x3c5389)return;let _0x57cf67=_0x3c5389[_0x53579b(0x205)](_0x428c6d);if(!_0x57cf67)return;let _0x2ea57a={'base':_0x3c5389,'table':_0x57cf67,'field':_0x2e4e76,'index':_0x5553eb,'viewIndexes':_0x19d13c};if(this['fireEvent'](this['Event']['BeforeBaseTableFieldCreate'],_0x2ea57a),_0x2ea57a[_0x53579b(0x1c3)])throw new l[(_0x53579b(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x1ad)],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x2d5257=>{const _0x3938fd=_0x346ff4;if(_0x2d5257['id']!==c['CreateBaseRecordCommand']['id']&&_0x2d5257['id']!==c[_0x3938fd(0x2d6)]['id'])return;let _0x1766cf=_0x2d5257[_0x3938fd(0x289)],{unitId:_0x3526a8,tableId:_0x4c1d57}=_0x1766cf,_0xecf1ab=_0x1766cf[_0x3938fd(0x1d1)]??[_0x1766cf[_0x3938fd(0x228)]],_0x217664=this[_0x3938fd(0x1b5)](_0x3526a8);if(!_0x217664)return;let _0xf669e5=_0x217664[_0x3938fd(0x205)](_0x4c1d57);if(!_0xf669e5)return;let _0x53b2c9={'base':_0x217664,'table':_0xf669e5,'records':_0xecf1ab};if(this[_0x3938fd(0x254)](this[_0x3938fd(0x2af)][_0x3938fd(0x1ad)],_0x53b2c9),_0x53b2c9[_0x3938fd(0x1c3)])throw new l[(_0x3938fd(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x1de)],()=>this['_commandService'][_0x346ff4(0x19c)](_0x56770d=>{const _0x294c0a=_0x346ff4;if(_0x56770d['id']!==c[_0x294c0a(0x220)]['id'])return;let {unitId:_0x4d2555,tableId:_0x5599f9,view:_0x5d65bf,index:_0x460eef}=_0x56770d['params'],_0x386cee=this[_0x294c0a(0x1b5)](_0x4d2555);if(!_0x386cee)return;let _0x3b15f5=_0x386cee[_0x294c0a(0x205)](_0x5599f9);if(!_0x3b15f5)return;let _0x34137e={'base':_0x386cee,'table':_0x3b15f5,'view':_0x5d65bf,'index':_0x460eef};if(this['fireEvent'](this[_0x294c0a(0x2af)][_0x294c0a(0x1de)],_0x34137e),_0x34137e[_0x294c0a(0x1c3)])throw new l[(_0x294c0a(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x300)],()=>this['_commandService']['beforeCommandExecuted'](_0x3ea70d=>{const _0x38c9b6=_0x346ff4;if(_0x3ea70d['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x562ced,tableId:_0x3762f4,recordId:_0xb7bcac,fieldId:_0x2b0481,value:_0x3c2c2a}=_0x3ea70d[_0x38c9b6(0x289)],_0x2f90b2=this[_0x38c9b6(0x1b5)](_0x562ced);if(!_0x2f90b2)return;let _0x168602=_0x2f90b2[_0x38c9b6(0x205)](_0x3762f4);if(!_0x168602)return;let _0x3927ff=_0x168602[_0x38c9b6(0x2f9)](_0x2b0481);if(!_0x3927ff)return;let _0x2973c7=_0x168602[_0x38c9b6(0x315)](_0xb7bcac);if(!_0x2973c7)return;let _0x256d78={'base':_0x2f90b2,'table':_0x168602,'field':_0x3927ff,'record':_0x2973c7,'value':_0x3c2c2a};if(this[_0x38c9b6(0x254)](this[_0x38c9b6(0x2af)][_0x38c9b6(0x300)],_0x256d78),_0x256d78[_0x38c9b6(0x1c3)])throw new l[(_0x38c9b6(0x26b))]();})));}[_0x2530a8(0x21a)](_0xd3c36,_0xca814f){const _0xd1604=_0x2530a8;let _0x5324a9=this[_0xd1604(0x1b5)](_0xd3c36),_0x1c1aa9=_0x5324a9==null?void 0x0:_0x5324a9[_0xd1604(0x205)](_0xca814f);return _0x5324a9&&_0x1c1aa9?{'base':_0x5324a9,'table':_0x1c1aa9}:null;}[_0x2530a8(0x2ce)](_0x3252be,_0x18ca01,_0x3c79f5,_0x316f99){const _0x5997ae=_0x2530a8;if(!_0x3c79f5[_0x5997ae(0x1d8)])return;let _0x5e11d2={'base':_0x3252be,'table':_0x18ca01,'changes':_0x3c79f5,'source':_0x316f99};if(this[_0x5997ae(0x254)](this[_0x5997ae(0x2af)][_0x5997ae(0x30d)],_0x5e11d2),_0x5e11d2[_0x5997ae(0x1c3)])throw new l['CanceledError']();}};function Z(_0x2dd54b,_0x26c3a5){const _0x68746d=_0x2530a8;return _0x2dd54b['id']===_0x26c3a5['id']&&_0x2dd54b[_0x68746d(0x289)]!==void 0x0;}u[_0x2530a8(0x18e)][_0x2530a8(0x2f2)](X);var Q=class extends u[_0x2530a8(0x21c)]{get[_0x2530a8(0x275)](){const _0x4e05db=_0x2530a8;return l[_0x4e05db(0x275)];}get[_0x2530a8(0x1ed)](){return l['BaseFilterConjunction'];}get[_0x2530a8(0x1e3)](){return l['BaseFilterOperator'];}get['BaseFieldKeyEnum'](){return v;}get[_0x2530a8(0x2f8)](){const _0x28cba0=_0x2530a8;return l[_0x28cba0(0x2f8)];}get[_0x2530a8(0x2b1)](){const _0x6e58a7=_0x2530a8;return l[_0x6e58a7(0x2b1)];}get[_0x2530a8(0x2d8)](){const _0x1d26c7=_0x2530a8;return l[_0x1d26c7(0x2d8)];}get[_0x2530a8(0x219)](){const _0x552f04=_0x2530a8;return l[_0x552f04(0x219)];}get[_0x2530a8(0x318)](){return l['BaseSortDirection'];}get[_0x2530a8(0x237)](){const _0x2ef012=_0x2530a8;return c[_0x2ef012(0x237)];}get[_0x2530a8(0x29c)](){const _0x3140ff=_0x2530a8;return c[_0x3140ff(0x29c)];}get[_0x2530a8(0x28d)](){const _0x5982fc=_0x2530a8;return l[_0x5982fc(0x28d)];}get[_0x2530a8(0x187)](){const _0x233dde=_0x2530a8;return l[_0x233dde(0x187)];}};u[_0x2530a8(0x21c)]['extend'](Q);var $=class extends u['FEventName']{get[_0x2530a8(0x2b7)](){const _0x5706c2=_0x2530a8;return _0x5706c2(0x2b7);}get[_0x2530a8(0x293)](){return'BeforeBaseTableCreate';}get[_0x2530a8(0x25d)](){const _0xcdd06a=_0x2530a8;return _0xcdd06a(0x25d);}get[_0x2530a8(0x2f0)](){const _0x8fb92a=_0x2530a8;return _0x8fb92a(0x2f0);}get[_0x2530a8(0x292)](){return'BaseTableRecordCreated';}get['BeforeBaseTableRecordCreate'](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x53752e=_0x2530a8;return _0x53752e(0x2d7);}get['BeforeBaseTableViewCreate'](){const _0x2dec9e=_0x2530a8;return _0x2dec9e(0x1de);}get[_0x2530a8(0x216)](){const _0x22e8b5=_0x2530a8;return _0x22e8b5(0x216);}get[_0x2530a8(0x300)](){const _0x9a32c4=_0x2530a8;return _0x9a32c4(0x300);}get['BaseHierarchyChanged'](){const _0x2eb267=_0x2530a8;return _0x2eb267(0x28f);}get['BeforeBaseHierarchyChange'](){const _0x2d28b3=_0x2530a8;return _0x2d28b3(0x30d);}};u[_0x2530a8(0x232)]['extend']($),exports[_0x2530a8(0x1dd)]=v,Object[_0x2530a8(0x1cb)](exports,'FBase',{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x2530a8(0x1da)]=m,exports['FBasePermission']=p,Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x1bd),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x2530a8(0x1cb)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x2e3),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,_0x2530a8(0x290),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x23f),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x2530a8(0x257)]=$,exports['resolveBaseFieldKey']=S,exports['resolveBaseFieldValues']=b;
|
|
1
|
+
const _0x419bbe=_0x3983;(function(_0xbc0349,_0x915a6){const _0x5ef3ea=_0x3983,_0x2cfe49=_0xbc0349();while(!![]){try{const _0x2be6a1=parseInt(_0x5ef3ea(0x29d))/0x1+-parseInt(_0x5ef3ea(0x2cf))/0x2+-parseInt(_0x5ef3ea(0x1ee))/0x3+-parseInt(_0x5ef3ea(0x227))/0x4*(-parseInt(_0x5ef3ea(0x30a))/0x5)+parseInt(_0x5ef3ea(0x204))/0x6*(-parseInt(_0x5ef3ea(0x2b9))/0x7)+-parseInt(_0x5ef3ea(0x2bc))/0x8+parseInt(_0x5ef3ea(0x1e7))/0x9*(parseInt(_0x5ef3ea(0x2b6))/0xa);if(_0x2be6a1===_0x915a6)break;else _0x2cfe49['push'](_0x2cfe49['shift']());}catch(_0x2dc9ec){_0x2cfe49['push'](_0x2cfe49['shift']());}}}(_0x5bd4,0x4da5a),Object[_0x419bbe(0x1f8)](exports,Symbol[_0x419bbe(0x2cd)],{'value':_0x419bbe(0x242)}));var e=Object[_0x419bbe(0x18c)],t=Object[_0x419bbe(0x1f8)],n=Object[_0x419bbe(0x170)],r=Object[_0x419bbe(0x2da)],i=Object[_0x419bbe(0x186)],a=Object[_0x419bbe(0x254)][_0x419bbe(0x1a4)],o=(_0x28e5c2,_0x493cf4,_0x3820b9,_0x1741cd)=>{const _0x554d5a=_0x419bbe;if(_0x493cf4&&typeof _0x493cf4==_0x554d5a(0x1b3)||typeof _0x493cf4==_0x554d5a(0x29c)){for(var _0x5be0fa=r(_0x493cf4),_0x2e4028=0x0,_0x2d6640=_0x5be0fa[_0x554d5a(0x2a6)],_0x2cece2;_0x2e4028<_0x2d6640;_0x2e4028++)_0x2cece2=_0x5be0fa[_0x2e4028],!a[_0x554d5a(0x319)](_0x28e5c2,_0x2cece2)&&_0x2cece2!==_0x3820b9&&t(_0x28e5c2,_0x2cece2,{'get':(_0xba86c5=>_0x493cf4[_0xba86c5])['bind'](null,_0x2cece2),'enumerable':!(_0x1741cd=n(_0x493cf4,_0x2cece2))||_0x1741cd[_0x554d5a(0x1bf)]});}return _0x28e5c2;},s=(_0x1f871e,_0x2d714a,_0x349539)=>(_0x349539=_0x1f871e==null?{}:e(i(_0x1f871e)),o(_0x2d714a||!_0x1f871e||!_0x1f871e[_0x419bbe(0x1b0)]||!a[_0x419bbe(0x319)](_0x1f871e,_0x419bbe(0x2f2))?t(_0x349539,_0x419bbe(0x2f2),{'value':_0x1f871e,'enumerable':!0x0}):_0x349539,_0x1f871e));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x3416a4,_0x25cebd,_0x226efc){const _0x6c1b00=_0x419bbe;this[_0x6c1b00(0x25e)]=_0x3416a4,this[_0x6c1b00(0x1d6)]=_0x25cebd,this[_0x6c1b00(0x32f)]=_0x226efc;}async[_0x419bbe(0x2e2)](_0xbdce3e){const _0x4dc267=_0x419bbe;return this[_0x4dc267(0x1d6)][_0x4dc267(0x1f6)](c[_0x4dc267(0x226)]['id'],{'unitId':this[_0x4dc267(0x25e)],'changes':_0xbdce3e});}async[_0x419bbe(0x2fd)](_0x24339e,_0x2e7304){const _0x21b07a=_0x419bbe;await this[_0x21b07a(0x1d6)]['executeCommand'](c[_0x21b07a(0x2b1)]['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x24339e,'value':_0x2e7304});}['getPoint'](_0x2ceac0){const _0x586a35=_0x419bbe;return(0x0,c[_0x586a35(0x301)])(this['_permissionService'],this[_0x586a35(0x25e)],this[_0x586a35(0x25e)],_0x2ceac0);}async[_0x419bbe(0x23f)](_0x2e4a11=!0x0){const _0x2be441=_0x419bbe;await this[_0x2be441(0x1d6)][_0x2be441(0x1f6)](c[_0x2be441(0x2b1)]['id'],{'unitId':this[_0x2be441(0x25e)],'objectId':this['_unitId'],'action':d[_0x2be441(0x1d5)][_0x2be441(0x32a)],'value':_0x2e4a11});}async['setReadOnly'](){const _0x5dc054=_0x419bbe;await this[_0x5dc054(0x1d6)][_0x5dc054(0x1f6)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x5dc054(0x25e)],'objectId':this[_0x5dc054(0x25e)],'action':d[_0x5dc054(0x1d5)]['Edit'],'value':!0x1});}[_0x419bbe(0x189)](){const _0x3ef4f9=_0x419bbe;return(0x0,c[_0x3ef4f9(0x301)])(this['_permissionService'],this[_0x3ef4f9(0x25e)],this[_0x3ef4f9(0x25e)],d[_0x3ef4f9(0x1d5)][_0x3ef4f9(0x32a)]);}},m=class{constructor(_0x802010,_0x191bd0,_0x52b6a9,_0x377ee8,_0x3c635e){const _0x4f6b3f=_0x419bbe;this[_0x4f6b3f(0x25e)]=_0x802010,this[_0x4f6b3f(0x1e6)]=_0x191bd0,this[_0x4f6b3f(0x20e)]=_0x52b6a9,this['_commandService']=_0x377ee8,this[_0x4f6b3f(0x32f)]=_0x3c635e;}async[_0x419bbe(0x23f)](_0x23628e=!0x0){const _0xa0592c=_0x419bbe;await this[_0xa0592c(0x1d6)][_0xa0592c(0x1f6)](c[_0xa0592c(0x2b1)]['id'],{'unitId':this[_0xa0592c(0x25e)],'objectId':this[_0xa0592c(0x1e6)],'action':d['UnitAction']['Edit'],'value':_0x23628e});}async[_0x419bbe(0x253)](){const _0x5166d5=_0x419bbe;await this[_0x5166d5(0x1d6)][_0x5166d5(0x1f6)](c[_0x5166d5(0x2b1)]['id'],{'unitId':this[_0x5166d5(0x25e)],'objectId':this[_0x5166d5(0x1e6)],'action':d[_0x5166d5(0x1d5)]['Edit'],'value':!0x1});}[_0x419bbe(0x189)](){const _0x5c7bdf=_0x419bbe;return(0x0,c['canEditBaseTargets'])(this['_permissionService'],this[_0x5c7bdf(0x25e)],[...this[_0x5c7bdf(0x20e)],this['_objectId']]);}};function h(_0x2cf711,_0x7e2da1){return function(_0x165422,_0x2bf003){_0x7e2da1(_0x165422,_0x2bf003,_0x2cf711);};}function g(_0x15c0be,_0x42fa4c,_0x2b98a2,_0x513ead){const _0x5acfc0=_0x419bbe;var _0x1a8ba9=arguments[_0x5acfc0(0x2a6)],_0x1c5690=_0x1a8ba9<0x3?_0x42fa4c:_0x513ead===null?_0x513ead=Object[_0x5acfc0(0x170)](_0x42fa4c,_0x2b98a2):_0x513ead,_0x1be08a;if(typeof Reflect==_0x5acfc0(0x1b3)&&typeof Reflect[_0x5acfc0(0x2f8)]==_0x5acfc0(0x29c))_0x1c5690=Reflect[_0x5acfc0(0x2f8)](_0x15c0be,_0x42fa4c,_0x2b98a2,_0x513ead);else{for(var _0x4b28db=_0x15c0be[_0x5acfc0(0x2a6)]-0x1;_0x4b28db>=0x0;_0x4b28db--)(_0x1be08a=_0x15c0be[_0x4b28db])&&(_0x1c5690=(_0x1a8ba9<0x3?_0x1be08a(_0x1c5690):_0x1a8ba9>0x3?_0x1be08a(_0x42fa4c,_0x2b98a2,_0x1c5690):_0x1be08a(_0x42fa4c,_0x2b98a2))||_0x1c5690);}return _0x1a8ba9>0x3&&_0x1c5690&&Object[_0x5acfc0(0x1f8)](_0x42fa4c,_0x2b98a2,_0x1c5690),_0x1c5690;}let _=class{constructor(_0x5c2f30,_0x39bbf7,_0x5b22ac,_0x420fe5,_0x2f2080){const _0x59cb04=_0x419bbe;this[_0x59cb04(0x187)]=_0x5c2f30,this[_0x59cb04(0x302)]=_0x39bbf7,this[_0x59cb04(0x181)]=_0x5b22ac,this[_0x59cb04(0x1d6)]=_0x420fe5,this['_permissionService']=_0x2f2080;}[_0x419bbe(0x184)](){return this['_fieldId'];}[_0x419bbe(0x17e)](){const _0x274a9d=_0x419bbe;let _0x2423dd=this[_0x274a9d(0x302)]['getId']();return new m(this[_0x274a9d(0x187)][_0x274a9d(0x184)](),(0x0,c[_0x274a9d(0x2ec)])(_0x2423dd,this['_fieldId']),[(0x0,c['getBaseTablePermissionObjectId'])(_0x2423dd)],this[_0x274a9d(0x1d6)],this[_0x274a9d(0x32f)]);}[_0x419bbe(0x278)](){const _0x57be66=_0x419bbe;return this[_0x57be66(0x22c)]();}['getName'](){const _0x83f12e=_0x419bbe;return this['_getField']()[_0x83f12e(0x292)];}['getType'](){const _0x43e6ad=_0x419bbe;return this[_0x43e6ad(0x22c)]()['type'];}[_0x419bbe(0x291)](){const _0x5c4dc2=_0x419bbe;return this[_0x5c4dc2(0x22c)]()[_0x5c4dc2(0x1f9)];}[_0x419bbe(0x1b1)](){const _0x3e3924=_0x419bbe;return this[_0x3e3924(0x22c)]()[_0x3e3924(0x1e4)];}[_0x419bbe(0x2bb)](){const _0x5b20cc=_0x419bbe;return this['_getField']()[_0x5b20cc(0x27d)];}['isReadonly'](){const _0x2608f4=_0x419bbe;return!!this['_getField']()[_0x2608f4(0x26c)];}['setName'](_0x596ace){const _0x2ca8a0=_0x419bbe;return this[_0x2ca8a0(0x2ef)]({'name':_0x596ace});}['setConfig'](_0x11b1f4,_0x4d5ca6){const _0x3ec0af=_0x419bbe;return this[_0x3ec0af(0x2ef)]({'config':_0x11b1f4},_0x4d5ca6);}[_0x419bbe(0x1fb)](_0x577a9e){return this['update']({'defaultValue':_0x577a9e});}[_0x419bbe(0x2ef)](_0x507edb,_0x5e2f71){const _0x77104e=_0x419bbe;let _0x376720=this['_getField']()[_0x77104e(0x2df)];return(_0x507edb[_0x77104e(0x2df)]??_0x376720)===l[_0x77104e(0x307)]['Formula']&&(Object[_0x77104e(0x254)]['hasOwnProperty'][_0x77104e(0x319)](_0x507edb,_0x77104e(0x1f9))||_0x507edb['type']===l[_0x77104e(0x307)][_0x77104e(0x2f7)])&&!this['_writeFormulaExternalReferences'](_0x5e2f71)?!0x1:this[_0x77104e(0x1d6)][_0x77104e(0x16e)](c[_0x77104e(0x185)]['id'],{'unitId':this[_0x77104e(0x187)]['getId'](),'tableId':this[_0x77104e(0x302)][_0x77104e(0x184)](),'fieldId':this['_fieldId'],'patch':_0x507edb});}[_0x419bbe(0x1fd)](_0x27097f,_0xc404fb={},_0x3f670a){const _0x5893ad=_0x419bbe;return _0x27097f===l[_0x5893ad(0x307)][_0x5893ad(0x2f7)]&&!this['_writeFormulaExternalReferences'](_0x3f670a)?!0x1:this[_0x5893ad(0x1d6)][_0x5893ad(0x16e)](c['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x5893ad(0x187)][_0x5893ad(0x184)](),'tableId':this[_0x5893ad(0x302)][_0x5893ad(0x184)](),'fieldId':this[_0x5893ad(0x181)],'input':{'type':_0x27097f,'config':_0xc404fb}});}[_0x419bbe(0x207)](){const _0x56c57a=_0x419bbe;return this['_commandService']['syncExecuteCommand'](c['DeleteBaseFieldCommand']['id'],{'unitId':this[_0x56c57a(0x187)][_0x56c57a(0x184)](),'tableId':this[_0x56c57a(0x302)][_0x56c57a(0x184)](),'fieldId':this[_0x56c57a(0x181)]});}[_0x419bbe(0x289)](_0x324ead){const _0x249455=_0x419bbe;return this[_0x249455(0x1d6)][_0x249455(0x16e)](c[_0x249455(0x2f4)]['id'],{'unitId':this[_0x249455(0x187)][_0x249455(0x184)](),'tableId':this[_0x249455(0x302)][_0x249455(0x184)](),'fieldId':this[_0x249455(0x181)],'target':_0x324ead});}[_0x419bbe(0x22c)](){const _0x1e844c=_0x419bbe;let _0x414f90=this[_0x1e844c(0x302)][_0x1e844c(0x246)]()['fields'][this[_0x1e844c(0x181)]];if(!_0x414f90)throw Error(_0x1e844c(0x269)+this[_0x1e844c(0x181)]+'\x22\x20does\x20not\x20exist.');return _0x414f90;}['_writeFormulaExternalReferences'](_0x3c53a5){const _0xc21b87=_0x419bbe;if(!_0x3c53a5||!Array[_0xc21b87(0x2c8)](_0x3c53a5['externalReferences']))return console[_0xc21b87(0x24f)](_0xc21b87(0x279)),!0x1;if(_0x3c53a5[_0xc21b87(0x27b)][_0xc21b87(0x2a6)]===0x0)return!0x0;let _0x2a2cf0=this[_0xc21b87(0x1d6)][_0xc21b87(0x16e)](f[_0xc21b87(0x318)]['id'],{'unitId':this['_base']['getId'](),'references':_0x3c53a5[_0xc21b87(0x27b)]});return _0x2a2cf0||console[_0xc21b87(0x24f)](_0xc21b87(0x316)),_0x2a2cf0;}};_=g([h(0x3,l['ICommandService']),h(0x4,l[_0x419bbe(0x1da)])],_);let v=function(_0x2d36bd){const _0x383a83=_0x419bbe;return _0x2d36bd['Id']='id',_0x2d36bd['Name']=_0x383a83(0x292),_0x2d36bd[_0x383a83(0x24e)]='auto',_0x2d36bd;}({});function y(_0x24b3c8){const _0x35423d=_0x419bbe;return!!(_0x24b3c8&&_0x24b3c8[_0x35423d(0x305)]!==!0x0&&_0x24b3c8[_0x35423d(0x2df)]!==l[_0x35423d(0x307)][_0x35423d(0x265)]);}function b(_0x1327ff,_0x3b1a6a,_0x765f1='id'){const _0x177fe5=_0x419bbe;if(!_0x3b1a6a)return{};let _0x438f7d={};return Object[_0x177fe5(0x1c7)](_0x3b1a6a)[_0x177fe5(0x27c)](([_0x2bb246,_0x2e3116])=>{let _0x1bc0e4=S(_0x1327ff,_0x2bb246,_0x765f1);_0x438f7d[_0x1bc0e4]=x(_0x1327ff['fields'][_0x1bc0e4],_0x2e3116);}),_0x438f7d;}function x(_0x421ea2,_0x327446){const _0x530e06=_0x419bbe;if((_0x421ea2==null?void 0x0:_0x421ea2[_0x530e06(0x2df)])!==l['BaseFieldType'][_0x530e06(0x210)]||_0x327446==null)return _0x327446;if(!Array[_0x530e06(0x2c8)](_0x327446))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x421ea2[_0x530e06(0x292)]+_0x530e06(0x270));return _0x327446[_0x530e06(0x1ec)]((_0x12e990,_0x36f61b)=>C(_0x421ea2,_0x12e990,_0x36f61b));}function _0x3983(_0x15dceb,_0x38a689){_0x15dceb=_0x15dceb-0x16e;const _0x5bd4c5=_0x5bd4();let _0x398301=_0x5bd4c5[_0x15dceb];return _0x398301;}function S(_0x3b24bd,_0x259b6d,_0x3511f2){const _0x14646d=_0x419bbe;if(_0x3511f2==='id'||_0x3511f2===_0x14646d(0x178)&&_0x3b24bd['fields'][_0x259b6d])return _0x259b6d;let _0x524b63=Object[_0x14646d(0x2f0)](_0x3b24bd[_0x14646d(0x1ac)])[_0x14646d(0x240)](_0x192d9b=>_0x192d9b[_0x14646d(0x292)]===_0x259b6d);if(_0x524b63[_0x14646d(0x2a6)]===0x1)return _0x524b63[0x0]['id'];throw _0x524b63['length']>0x1?Error(_0x14646d(0x321)+_0x259b6d):Error(_0x14646d(0x17c)+_0x259b6d);}function C(_0x209296,_0x12a82e,_0x1bf373){const _0x28c8db=_0x419bbe;let _0x3c7215='Invalid\x20attachment\x20at\x20index\x20'+_0x1bf373+_0x28c8db(0x322)+_0x209296[_0x28c8db(0x292)]+'\x22';if(!O(_0x12a82e))throw TypeError(_0x3c7215+_0x28c8db(0x1cb));if(_0x28c8db(0x1bd)in _0x12a82e)throw TypeError(_0x3c7215+_0x28c8db(0x2f9));if(_0x28c8db(0x2df)in _0x12a82e)throw TypeError(_0x3c7215+_0x28c8db(0x232));let _0x4a92ee=T(_0x12a82e['id'],_0x3c7215,'id'),_0xe111e2=T(_0x12a82e[_0x28c8db(0x292)],_0x3c7215,_0x28c8db(0x292)),_0x3bb545=T(_0x12a82e[_0x28c8db(0x2a8)],_0x3c7215,_0x28c8db(0x2a8));return{'id':_0x4a92ee,'name':_0xe111e2,'source':_0x3bb545,'sourceType':w(_0x12a82e[_0x28c8db(0x2de)],_0x3bb545,_0x3c7215),...E(_0x12a82e,_0x28c8db(0x308),_0x3c7215),...D(_0x12a82e,_0x28c8db(0x29f),_0x3c7215),...D(_0x12a82e,_0x28c8db(0x206),_0x3c7215),...D(_0x12a82e,_0x28c8db(0x18b),_0x3c7215),...E(_0x12a82e,_0x28c8db(0x25b),_0x3c7215)};}function w(_0x392022,_0x56f3bc,_0x1b7176){const _0x3d382b=_0x419bbe;if(_0x392022==null)return _0x56f3bc[_0x3d382b(0x1df)]('data:')?l[_0x3d382b(0x179)]['BASE64']:l['ImageSourceType'][_0x3d382b(0x263)];if(_0x392022===l[_0x3d382b(0x179)][_0x3d382b(0x263)]||_0x392022===l[_0x3d382b(0x179)]['UUID']||_0x392022===l[_0x3d382b(0x179)][_0x3d382b(0x2e1)])return _0x392022;throw TypeError(_0x1b7176+_0x3d382b(0x174));}function T(_0x5c7474,_0x4a0f49,_0x5222f0){const _0x355ba4=_0x419bbe;if(typeof _0x5c7474!=_0x355ba4(0x325)||!_0x5c7474[_0x355ba4(0x1ae)]())throw TypeError(_0x4a0f49+':\x20\x22'+_0x5222f0+_0x355ba4(0x2c5));return _0x5c7474;}function E(_0x52824d,_0x2a303,_0x233b88){const _0x163dd6=_0x419bbe;let _0x5d5a10=_0x52824d[_0x2a303];if(_0x5d5a10==null)return{};if(typeof _0x5d5a10!=_0x163dd6(0x325)||!_0x5d5a10[_0x163dd6(0x1ae)]())throw TypeError(_0x233b88+_0x163dd6(0x1f3)+_0x2a303+_0x163dd6(0x218));return{[_0x2a303]:_0x5d5a10};}function D(_0xf17d4a,_0x16f520,_0x16cb7a){const _0x1bb31d=_0x419bbe;let _0x571d75=_0xf17d4a[_0x16f520];if(_0x571d75==null)return{};if(typeof _0x571d75!=_0x1bb31d(0x2b3)||!Number[_0x1bb31d(0x219)](_0x571d75)||_0x571d75<0x0)throw TypeError(_0x16cb7a+_0x1bb31d(0x1f3)+_0x16f520+_0x1bb31d(0x1c6));return{[_0x16f520]:_0x571d75};}function O(_0x40d4ea){const _0x5d0fed=_0x419bbe;return typeof _0x40d4ea==_0x5d0fed(0x1b3)&&!!_0x40d4ea&&!Array[_0x5d0fed(0x2c8)](_0x40d4ea);}var k;let A=k=class{constructor(_0x5f297e,_0x119f6f,_0x2bf3a9,_0x27e619,_0x4a7f7e){const _0x42d2f3=_0x419bbe;this[_0x42d2f3(0x187)]=_0x5f297e,this[_0x42d2f3(0x302)]=_0x119f6f,this['_range']=_0x2bf3a9,this['_inject']=_0x27e619,this[_0x42d2f3(0x1d6)]=_0x4a7f7e,this[_0x42d2f3(0x2f5)]();}[_0x419bbe(0x2c9)](){const _0xe3d52e=_0x419bbe;return this['_base'][_0xe3d52e(0x184)]();}[_0x419bbe(0x1a1)](){const _0x224960=_0x419bbe;return this[_0x224960(0x302)][_0x224960(0x184)]();}[_0x419bbe(0x245)](){const _0x59199c=_0x419bbe;return{...this[_0x59199c(0x272)]};}['getRow'](){const _0x6309fe=_0x419bbe;return this['_range'][_0x6309fe(0x188)];}[_0x419bbe(0x2ee)](){const _0x16689e=_0x419bbe;return this[_0x16689e(0x272)][_0x16689e(0x314)];}[_0x419bbe(0x2ac)](){const _0x1c5777=_0x419bbe;return this[_0x1c5777(0x272)]['endRow']-this[_0x1c5777(0x272)][_0x1c5777(0x188)]+0x1;}['getNumColumns'](){const _0x43cb62=_0x419bbe;return this[_0x43cb62(0x272)][_0x43cb62(0x1c5)]-this[_0x43cb62(0x272)]['startColumn']+0x1;}[_0x419bbe(0x295)](){const _0xde4b9d=_0x419bbe;let _0x130151=this['_getTable'](),_0x4469cb=this[_0xde4b9d(0x2ae)](_0x130151),_0x1c635f=[];for(let _0xad960=this['_range'][_0xde4b9d(0x188)];_0xad960<=this[_0xde4b9d(0x272)][_0xde4b9d(0x2d0)];_0xad960++){var _0x5f533e;let _0x39f6b8=(_0x5f533e=_0x130151[_0xde4b9d(0x205)])==null?void 0x0:_0x5f533e[_0xad960],_0x2dd015=[];for(let _0x3c89a1=this['_range'][_0xde4b9d(0x314)];_0x3c89a1<=this[_0xde4b9d(0x272)][_0xde4b9d(0x1c5)];_0x3c89a1++){let _0x2ca11e=_0x4469cb[_0x3c89a1];_0x2dd015['push'](_0x39f6b8&&_0x2ca11e?(0x0,c[_0xde4b9d(0x2bf)])(_0x130151,_0x39f6b8,_0x2ca11e):null);}_0x1c635f[_0xde4b9d(0x280)](_0x2dd015);}return _0x1c635f;}['getValue'](){const _0x596f35=_0x419bbe;var _0x47d1c4;return((_0x47d1c4=this[_0x596f35(0x295)]()[0x0])==null?void 0x0:_0x47d1c4[0x0])??null;}[_0x419bbe(0x2e6)](_0x67ae88){const _0x2d424d=_0x419bbe;return this[_0x2d424d(0x32e)]([[_0x67ae88]]);}[_0x419bbe(0x32e)](_0x3448f4){const _0x439f5e=_0x419bbe;let _0x3134f7=this['getNumRows'](),_0x2c1a7e=this[_0x439f5e(0x2eb)]();if(_0x3448f4['length']>_0x3134f7||_0x3448f4[_0x439f5e(0x25f)](_0x1cd485=>_0x1cd485[_0x439f5e(0x2a6)]>_0x2c1a7e)){var _0x4bf168;throw Error(_0x439f5e(0x2ba)+_0x3448f4[_0x439f5e(0x2a6)]+'x'+(((_0x4bf168=_0x3448f4[0x0])==null?void 0x0:_0x4bf168[_0x439f5e(0x2a6)])??0x0)+_0x439f5e(0x1d8)+_0x3134f7+'x'+_0x2c1a7e+'.');}let _0xa8d84e=this[_0x439f5e(0x16f)](),_0x4b1b36=this[_0x439f5e(0x2ae)](_0xa8d84e),_0x190902=_0x3448f4['flatMap']((_0x207ac6,_0xf50f00)=>_0x207ac6[_0x439f5e(0x1ec)]((_0x166e4b,_0x2d9b04)=>{const _0x56ee8e=_0x439f5e;var _0x42644b;let _0x1f0c6f=this[_0x56ee8e(0x272)][_0x56ee8e(0x188)]+_0xf50f00,_0x2876d9=_0x4b1b36[this[_0x56ee8e(0x272)]['startColumn']+_0x2d9b04],_0x9ab1f5=(_0x42644b=_0xa8d84e[_0x56ee8e(0x205)])==null?void 0x0:_0x42644b[_0x1f0c6f];if(!_0x2876d9||!_0x9ab1f5)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x9ab1f5,'fieldId':_0x2876d9,'value':_0x166e4b};}));return this[_0x439f5e(0x1d6)]['syncExecuteCommand'](c['SetBaseRangeValuesCommand']['id'],{'unitId':this[_0x439f5e(0x187)][_0x439f5e(0x184)](),'tableId':this[_0x439f5e(0x302)][_0x439f5e(0x184)](),'patches':_0x190902,'source':c['BaseEventSource']['Facade']});}[_0x419bbe(0x288)](){const _0x4ce0e2=_0x419bbe;return this[_0x4ce0e2(0x32e)](Array[_0x4ce0e2(0x2b7)]({'length':this['getNumRows']()},()=>Array[_0x4ce0e2(0x2b7)]({'length':this['getNumColumns']()},()=>null)));}['offset'](_0x9f157,_0xfd57a0,_0x330189=this[_0x419bbe(0x2ac)](),_0xf3f533=this[_0x419bbe(0x2eb)]()){const _0x5ca799=_0x419bbe;return this['_inject'][_0x5ca799(0x22a)](k,this[_0x5ca799(0x187)],this[_0x5ca799(0x302)],{'startRow':this['_range'][_0x5ca799(0x188)]+_0x9f157,'startColumn':this[_0x5ca799(0x272)][_0x5ca799(0x314)]+_0xfd57a0,'endRow':this[_0x5ca799(0x272)][_0x5ca799(0x188)]+_0x9f157+_0x330189-0x1,'endColumn':this[_0x5ca799(0x272)][_0x5ca799(0x314)]+_0xfd57a0+_0xf3f533-0x1},this[_0x5ca799(0x1ef)]);}[_0x419bbe(0x16f)](){const _0x1bd551=_0x419bbe;let _0x59a8f4=this[_0x1bd551(0x302)][_0x1bd551(0x246)]();if(!_0x59a8f4)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c[_0x1bd551(0x237)])(_0x59a8f4);}[_0x419bbe(0x2f5)](){const _0x267f70=_0x419bbe;var _0x72d31;let _0x175dc0=this[_0x267f70(0x16f)](),_0x33dbe6=((_0x72d31=_0x175dc0['recordOrder'])==null?void 0x0:_0x72d31[_0x267f70(0x2a6)])??0x0,_0x95b51e=this[_0x267f70(0x2ae)](_0x175dc0)[_0x267f70(0x2a6)];if(this['_range'][_0x267f70(0x188)]<0x0||this[_0x267f70(0x272)][_0x267f70(0x314)]<0x0||this[_0x267f70(0x272)][_0x267f70(0x2d0)]<this['_range'][_0x267f70(0x188)]||this[_0x267f70(0x272)][_0x267f70(0x1c5)]<this['_range'][_0x267f70(0x314)]||this[_0x267f70(0x272)][_0x267f70(0x2d0)]>=Math[_0x267f70(0x23d)](_0x33dbe6,0x1)||this['_range']['endColumn']>=Math['max'](_0x95b51e,0x1))throw Error(_0x267f70(0x2ca)+_0x33dbe6+_0x267f70(0x2f6)+_0x95b51e+_0x267f70(0x1b5)+JSON[_0x267f70(0x200)](this[_0x267f70(0x272)])+'.');}[_0x419bbe(0x2ae)](_0x5ebcb7){const _0x133d89=_0x419bbe;return _0x5ebcb7[_0x133d89(0x2c4)][_0x133d89(0x240)](_0xc94abd=>y(_0x5ebcb7[_0x133d89(0x1ac)][_0xc94abd]));}};A=k=g([h(0x4,l[_0x419bbe(0x1e1)])],A);function j(_0x520325){'@babel/helpers - typeof';const _0x42ad77=_0x419bbe;return j=typeof Symbol==_0x42ad77(0x29c)&&typeof Symbol['iterator']=='symbol'?function(_0x5abde5){return typeof _0x5abde5;}:function(_0x387c73){const _0x5455ef=_0x42ad77;return _0x387c73&&typeof Symbol==_0x5455ef(0x29c)&&_0x387c73['constructor']===Symbol&&_0x387c73!==Symbol[_0x5455ef(0x254)]?_0x5455ef(0x273):typeof _0x387c73;},j(_0x520325);}function M(_0x2e2cd5,_0x45bb74){const _0x350932=_0x419bbe;if(j(_0x2e2cd5)!='object'||!_0x2e2cd5)return _0x2e2cd5;var _0x524a1b=_0x2e2cd5[Symbol[_0x350932(0x21d)]];if(_0x524a1b!==void 0x0){var _0x3c3f82=_0x524a1b['call'](_0x2e2cd5,_0x45bb74||_0x350932(0x2f2));if(j(_0x3c3f82)!=_0x350932(0x1b3))return _0x3c3f82;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x45bb74===_0x350932(0x325)?String:Number)(_0x2e2cd5);}function _0x5bd4(){const _0x33df8a=['getDataRange','defineProperty','config','addChild','setDefaultValue','tables','changeType','FUniver','hierarchyChanges','stringify','_viewId','Unsupported\x20Base\x20field\x20type\x20\x22','getBaseHierarchyDeletePromotions','12SzYEcb','rowId','width','delete','getUnitId','FBaseTableView','valid','BASE_RECORD_ID_FIELD_ID','CreateBaseChildRecordCommand','getRecordLinkFieldConfig','_parentObjectIds','UpdateBaseViewConfigCommand','Attachment','_getHierarchyIndex','parentRecordId','Injector','FBasePermission','params','copyBaseTableSnapshot','message','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','isFinite','FBaseTableRecord','resolveBaseHierarchyFieldId','BaseConditionalDateMode','toPrimitive','SetBaseViewFieldOrderCommand','_univerInstanceService','BaseHierarchyErrorCode','CreateBaseViewCommand','extend','MoveBaseHierarchyRecordCommand','getFilter','[FRecord]:\x20invalid\x20RecordLink\x20value.','SetBasePermissionsCommand','124892OIbHHG','getRecordById','table','createInstance','BaseTableCellValueChanged','_getField','addRecords','custom','setOrderKey','cancel','find',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','beforeFieldId','FBaseObjectPermission','BaseSortDirection','_initBaseBeforeEvents','ensureBaseTableCellLayout','\x22\x20is\x20invalid.','BeforeBaseTableCellValueChange','getBaseViewPermissionObjectId','recordId','Facade','max','_baseUnitId','setEditable','filter','BASE_TABLE_NAME_REQUIREMENTS','Module','fieldSettings','moveField','getRange','getTable','RecordLink','duplicateTable','clearConditionalColorRules','hidden','matchesBaseCondition','IBaseProjectionService','BaseEventSource','Auto','warn','[FRecord]:\x20attachment\x20at\x20index\x20','_getRecordLinkField','deepClone','setReadOnly','prototype','UpdateBaseViewConditionalColorRulesCommand','getBaseTablePermissionObjectId','BaseFilterOperator','getAncestors','getDescendants','conditions','thumbnail','addRecord','setHierarchyField','_unitId','some','_getView','operator','CreateBaseTableCommand','URL','validateBaseHierarchyRecordCreations','RecordId','viewId','getTableFacade','getBases','[FField]:\x20field\x20\x22','deleteProperty','targetTableId','readonly','resolveBaseFieldValues','FBaseTableRange','offset','\x22:\x20expected\x20an\x20array.','resolveBaseRangeHierarchyPatches','_range','symbol','addConditionalColorRule','flatMap','SetBaseViewGroupCommand','search','getField','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getAttachments','externalReferences','forEach','description','setConditionalColorRules','records','push','Event','deleteConditionalColorRule','getBaseRecordPermissionObjectId','BeforeBaseTableCreate','getConditionalColorRules','UpdateBaseRecordOrderCommand','includeRecords','clear','move','_resolveRecordIds','getUnit','getParent','BaseRecordLinkRole','getSchema','\x22\x20does\x20not\x20exist.','localeCompare','getConfig','name','_collectDescendantIds','UpdateBaseCellCommand','getValues','[FBase]:\x20table\x20\x22','views','Failed\x20to\x20create\x20table\x20\x22','Calendar','CreateBaseFieldCommand','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','function','559566VaWxpb','orderedRecordIds','size','includes','getBase','Clear','SetBaseViewFilterCommand','deleteAttachments','primaryFieldName','length','primaryFieldId','source','createUniqueBaseTableName','_getAttachmentField','BaseHierarchyChanged','getNumRows','queryRecords','_getFieldIds','removeLinkedRecord','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','SetBasePermissionCommand','getFields','number','getBaseFormulaTableName','getSnapshot','378670OrkCFC','from','tableId','992789uOSHMq','[FBaseRange]:\x20values\x20size\x20','getDescription','2343752vvLEyb','getViewByName','FEventName','getBaseCellValue','multiple','BaseTableFieldCreated','sort','BeforeBaseTableRecordCreate','fieldOrder','\x22\x20must\x20be\x20a\x20non-empty\x20string.','regenerateViewIds','getPrimaryFieldId','isArray','getBaseId','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','Gallery','setFieldWidth','toStringTag','afterFieldId','1227540etvwzp','endRow','_initialize','every','record','\x22\x20is\x20not\x20an\x20Attachment\x20field.','commonExtend','insertTable','_injector','setFilter','BaseConditionalColorOperator','getOwnPropertyNames','disposeWithMe','BatchCreateBaseRecordsCommand','Kanban','sourceType','type','reason','BASE64','setObjectPermissions','getGroup','BaseFieldKeyEnum','[FRecord]:\x20RecordLink\x20field\x20\x22','setValue','SetBaseTableHierarchyFieldCommand','Inject','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','getType','getNumColumns','getBaseFieldPermissionObjectId','group','getColumn','update','values','BaseFilterConjunction','default','validateBaseTableName','MoveBaseFieldCommand','_assertInBounds',',\x20max\x20columns:\x20','Formula','decorate',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','getHierarchyFieldId','AND','parentByRecordId','setPoint','SetBaseRecordValuesCommand','ApplyBaseJson1Mutation','[FBase]:\x20invalid\x20table\x20name\x20\x22','getBasePermissionValue','_table','BaseTableCreated','getActiveBaseHierarchyFieldIds','system','invalid','BaseFieldType','mimeType','getCurrentUnitOfType','10ePJOAX','getFieldById','boolean','addField','_getRecord','subtreeHeightByRecordId','SetBaseNameCommand','indexOf','generateRandomId','parseRecordLinkIds','startColumn','_tableId','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','BeforeBaseTableViewCreate','UpsertHostExternalReferencesCommand','call','_initBaseAfterEvents','fireEvent','UniverInstanceType','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','getFieldByName','resolveBaseFieldKey','Date','Duplicate\x20Base\x20field\x20name:\x20','\x20for\x20field\x20\x22','FBaseTable','IResourceLoaderService','string','FBaseInitialable','getLinkedRecordIds','getTableById','buildBaseHierarchyIndex','Edit','[FTable]:\x20table\x20\x22','serializeRecordLinkIds','fieldKey','setValues','_permissionService','onCommandExecuted','limit','deleteTable','syncExecuteCommand','_getTable','getOwnPropertyDescriptor','updatedAt','tableOrder','DuplicateBaseRecordCommand',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','has','_recordId','auto','ImageSourceType','getName','recordIds','Base\x20field\x20not\x20found:\x20','CreateBaseRecordCommand','getPermission','BaseViewType','BaseConditionalColorRuleUpdateType','_fieldId','[FView]:\x20view\x20\x22','Tools','getId','UpdateBaseFieldCommand','getPrototypeOf','_base','startRow','canEdit','getChildren','height','create','getTables','BatchDeleteBaseRecordsCommand','createBase','\x22.\x20','rules','slice','getBaseFacade','matches','BeforeBaseHierarchyChange','[FRecord]:\x20field\x20\x22','now','setLinkedRecordIds','_projectionService','setName','getAllUnitsForType','getRecord','recordOrder','Failed\x20to\x20delete\x20table\x20\x22','getView','BaseTableViewCreated','getTableId','Gantt','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','hasOwnProperty','_fireBeforeHierarchyChange','test','SetBaseViewFieldWidthCommand','validateBaseHierarchyRecordPatches','deleteRecords','Set','RenameBaseViewCommand','fields','Failed\x20to\x20add\x20field\x20\x22','trim','BaseTableRecordCreated','__esModule','getDefaultValue','searchBaseTable','object','orderKey',',\x20range:\x20','direction','Failed\x20to\x20add\x20records','beforeCommandExecuted','getRecords','createdAt','setAttachments','get','url','[FRecord]:\x20record\x20\x22','enumerable','BaseHierarchyInvalidReason','registerEventHandler','SetBaseViewFieldVisibleCommand','BeforeBaseTableFieldCreate','formula','endColumn','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','entries','createDefaultBaseTableSnapshot','Add','value',':\x20expected\x20an\x20object.','field','getProjection','base','getTableByName','getValue','setSort','save','viewOrder','rows','UnitAction','_commandService','_getHierarchyEventContext','\x20exceeds\x20range\x20size\x20','conditionalColoring','IPermissionService','Delete','updateConfig','view','fieldId','startsWith','_prepareFormulaFieldReferences','ICommandService','FEnum','\x22\x20has\x20invalid\x20config.','defaultValue','DeleteBaseRecordCommand','_objectId','279NrWVLD','_resourceLoaderService','unitId','CanceledError','SetBaseViewSortCommand','map','caseSensitive','862362htFlzy','_inject','UNIVER_BASE','index','_baseTableId',':\x20\x22','createView','Failed\x20to\x20create\x20view\x20\x22','executeCommand'];_0x5bd4=function(){return _0x33df8a;};return _0x5bd4();}function N(_0x9e9a08){const _0x21dd3e=_0x419bbe;var _0x3734d2=M(_0x9e9a08,_0x21dd3e(0x325));return j(_0x3734d2)==_0x21dd3e(0x273)?_0x3734d2:_0x3734d2+'';}function P(_0x449236,_0x4216b5,_0x319068){const _0x2e14e5=_0x419bbe;return(_0x4216b5=N(_0x4216b5))in _0x449236?Object[_0x2e14e5(0x1f8)](_0x449236,_0x4216b5,{'value':_0x319068,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x449236[_0x4216b5]=_0x319068,_0x449236;}var F;let I=F=class extends u[_0x419bbe(0x326)]{constructor(_0x529bb8,_0x4ec499,_0x26a74b,_0x190648,_0x1e8006,_0x2fccd2){const _0x10905=_0x419bbe;super(_0x190648),this['_base']=_0x529bb8,this[_0x10905(0x302)]=_0x4ec499,this[_0x10905(0x177)]=_0x26a74b,this[_0x10905(0x2d7)]=_0x190648,this[_0x10905(0x1d6)]=_0x1e8006,this[_0x10905(0x32f)]=_0x2fccd2,P(this,_0x10905(0x23e),void 0x0),P(this,_0x10905(0x1f2),void 0x0),this[_0x10905(0x23e)]=_0x529bb8['getId'](),this[_0x10905(0x1f2)]=_0x4ec499[_0x10905(0x184)]();}[_0x419bbe(0x193)](){const _0x528618=_0x419bbe;return this[_0x528618(0x187)];}[_0x419bbe(0x267)](){const _0x300a95=_0x419bbe;return this[_0x300a95(0x302)];}[_0x419bbe(0x184)](){const _0x5a849d=_0x419bbe;return this[_0x5a849d(0x177)];}[_0x419bbe(0x17e)](){const _0x5c9279=_0x419bbe;let _0x59568b=this['_table'][_0x5c9279(0x184)]();return new m(this[_0x5c9279(0x187)][_0x5c9279(0x184)](),(0x0,c[_0x5c9279(0x283)])(_0x59568b,this['_recordId']),[(0x0,c[_0x5c9279(0x256)])(_0x59568b)],this[_0x5c9279(0x1d6)],this['_permissionService']);}[_0x419bbe(0x19c)](){const _0x24cc23=_0x419bbe;return{...this[_0x24cc23(0x30e)](),'values':this[_0x24cc23(0x295)]()};}[_0x419bbe(0x1d0)](_0x42205b){const _0x1f12be=_0x419bbe;return y(this[_0x1f12be(0x302)]['getTable']()[_0x1f12be(0x1ac)][_0x42205b])?this[_0x1f12be(0x30e)]()[_0x1f12be(0x2f0)][_0x42205b]??null:null;}['getValues'](){const _0x19359b=_0x419bbe;let _0x4e2fc9=this[_0x19359b(0x302)][_0x19359b(0x246)]();return Object['fromEntries'](Object[_0x19359b(0x1c7)](this['_getRecord']()['values'])[_0x19359b(0x240)](([_0x6e2a7b])=>y(_0x4e2fc9[_0x19359b(0x1ac)][_0x6e2a7b])));}[_0x419bbe(0x2e6)](_0x21f356,_0x8cf56e){const _0xfc7bda=_0x419bbe;let _0x29a8db=this['_table']['getTable']()[_0xfc7bda(0x1ac)][_0x21f356];return this[_0xfc7bda(0x1d6)][_0xfc7bda(0x16e)](c['UpdateBaseCellCommand']['id'],{'unitId':this[_0xfc7bda(0x187)][_0xfc7bda(0x184)](),'tableId':this[_0xfc7bda(0x302)][_0xfc7bda(0x184)](),'recordId':this[_0xfc7bda(0x177)],'fieldId':_0x21f356,'value':x(_0x29a8db,_0x8cf56e),'source':c[_0xfc7bda(0x24d)][_0xfc7bda(0x23c)]});}[_0x419bbe(0x1bb)](_0x5de2c5,_0x3763bd){const _0x36739d=_0x419bbe;return this[_0x36739d(0x2e6)](_0x5de2c5,_0x3763bd['map'](_0x23e344=>({..._0x23e344})));}[_0x419bbe(0x27a)](_0x286e80){const _0x5c9774=_0x419bbe;this['_getAttachmentField'](_0x286e80);let _0x28442a=this[_0x5c9774(0x1d0)](_0x286e80);return Array['isArray'](_0x28442a)?_0x28442a['map']((_0x2ada35,_0x155067)=>R(_0x2ada35,_0x286e80,_0x155067)):[];}[_0x419bbe(0x2a4)](_0x431aee,_0x5e3fc4){const _0x492d28=_0x419bbe;this[_0x492d28(0x2aa)](_0x431aee);let _0x47c505=new Set(_0x5e3fc4[_0x492d28(0x1ec)](_0x3081cb=>_0x3081cb['id']));if(!_0x47c505[_0x492d28(0x29f)])return!0x0;let _0x448559=this[_0x492d28(0x27a)](_0x431aee),_0x448868=_0x448559[_0x492d28(0x240)](_0x45beb1=>!_0x47c505['has'](_0x45beb1['id']));return _0x448868[_0x492d28(0x2a6)]===_0x448559[_0x492d28(0x2a6)]||this['setAttachments'](_0x431aee,_0x448868);}['setValues'](_0x584ec2,_0x5d1c75='id'){const _0x596efd=_0x419bbe;let _0x51c563=this['_table']['getTable'](),_0x4473c1=[{'recordId':this[_0x596efd(0x177)],'values':b(_0x51c563,_0x584ec2,_0x5d1c75)}];return this[_0x596efd(0x1d6)][_0x596efd(0x16e)](c['SetBaseRecordValuesCommand']['id'],{'unitId':this[_0x596efd(0x187)][_0x596efd(0x184)](),'tableId':this[_0x596efd(0x302)][_0x596efd(0x184)](),'patches':_0x4473c1,'source':c[_0x596efd(0x24d)][_0x596efd(0x23c)]});}[_0x419bbe(0x207)](){const _0x392bd0=_0x419bbe;return this[_0x392bd0(0x1d6)][_0x392bd0(0x16e)](c[_0x392bd0(0x1e5)]['id'],{'unitId':this[_0x392bd0(0x187)][_0x392bd0(0x184)](),'tableId':this['_table'][_0x392bd0(0x184)](),'recordId':this['_recordId'],'source':c[_0x392bd0(0x24d)]['Facade']});}['duplicate'](_0x3b8f77){const _0x7fb946=_0x419bbe;let _0x42d6aa={...this[_0x7fb946(0x30e)](),..._0x3b8f77,'id':(0x0,l['generateRandomId'])(0x6)};_0x42d6aa[_0x7fb946(0x2f0)]={..._0x42d6aa['values'],..._0x3b8f77==null?void 0x0:_0x3b8f77['values']},Reflect[_0x7fb946(0x26a)](_0x42d6aa[_0x7fb946(0x2f0)],l[_0x7fb946(0x20b)]);let _0x10995f=Date[_0x7fb946(0x197)]();if(_0x42d6aa['orderKey']||=''+_0x10995f,_0x42d6aa[_0x7fb946(0x1ba)]||=_0x10995f,_0x42d6aa[_0x7fb946(0x171)]||=_0x10995f,!this['_commandService']['syncExecuteCommand'](c[_0x7fb946(0x173)]['id'],{'unitId':this[_0x7fb946(0x187)]['getId'](),'tableId':this[_0x7fb946(0x302)][_0x7fb946(0x184)](),'sourceRecordId':this[_0x7fb946(0x177)],'record':_0x42d6aa,'source':c['BaseEventSource'][_0x7fb946(0x23c)]}))throw Error(_0x7fb946(0x2b0)+this[_0x7fb946(0x177)]+'\x22.');return this[_0x7fb946(0x2d7)][_0x7fb946(0x22a)](F,this[_0x7fb946(0x187)],this[_0x7fb946(0x302)],_0x42d6aa['id'],this[_0x7fb946(0x2d7)]);}[_0x419bbe(0x22f)](_0x456466){const _0x2ae68e=_0x419bbe;return this[_0x2ae68e(0x1d6)][_0x2ae68e(0x16e)](c[_0x2ae68e(0x286)]['id'],{'unitId':this[_0x2ae68e(0x187)][_0x2ae68e(0x184)](),'tableId':this[_0x2ae68e(0x302)][_0x2ae68e(0x184)](),'recordId':this['_recordId'],'orderKey':_0x456466});}[_0x419bbe(0x327)](_0xc5975b){const _0x525cfa=_0x419bbe;let _0x23ab89=this['_getRecordLinkField'](_0xc5975b),_0x39984e=this[_0x525cfa(0x1d0)](_0x23ab89['id']);return(0x0,c[_0x525cfa(0x313)])(_0x39984e);}[_0x419bbe(0x198)](_0x3d2a1,_0xd89d71){const _0x202594=_0x419bbe;let _0x16f11f=this['_getRecordLinkField'](_0x3d2a1),_0x1c524e=(0x0,c[_0x202594(0x32c)])(_0xd89d71),_0x2bee2b=(0x0,c['validateRecordLinkValue'])(this['_base'][_0x202594(0x2a1)]()[_0x202594(0x2b5)](),_0x16f11f,_0x1c524e);if(!_0x2bee2b[_0x202594(0x20a)])throw Error(_0x2bee2b[_0x202594(0x2e0)]??_0x202594(0x225));return this['_commandService'][_0x202594(0x16e)](c[_0x202594(0x294)]['id'],{'unitId':this[_0x202594(0x187)][_0x202594(0x184)](),'tableId':this['_table'][_0x202594(0x184)](),'recordId':this[_0x202594(0x177)],'fieldId':_0x3d2a1,'value':_0x1c524e,'source':c['BaseEventSource'][_0x202594(0x23c)]});}['addLinkedRecord'](_0x1b3ccb,_0x54a6ab){const _0x38902b=_0x419bbe;let _0x4d74bb=this[_0x38902b(0x251)](_0x1b3ccb),_0x1d226a=(0x0,c[_0x38902b(0x20d)])(_0x4d74bb);if(!_0x1d226a)throw Error(_0x38902b(0x2e5)+_0x1b3ccb+_0x38902b(0x1e3));let _0x2e68c1=this['getLinkedRecordIds'](_0x1b3ccb);return _0x1d226a[_0x38902b(0x2c0)]&&_0x2e68c1[_0x38902b(0x2a0)](_0x54a6ab)?!0x0:this['setLinkedRecordIds'](_0x1b3ccb,_0x1d226a['multiple']?[..._0x2e68c1,_0x54a6ab]:[_0x54a6ab]);}[_0x419bbe(0x2af)](_0x281e46,_0x49d5c3){const _0x57dee2=_0x419bbe;let _0x5d2be6=this[_0x57dee2(0x327)](_0x281e46);return!_0x5d2be6[_0x57dee2(0x2a0)](_0x49d5c3)||this[_0x57dee2(0x198)](_0x281e46,_0x5d2be6[_0x57dee2(0x240)](_0x629dcc=>_0x629dcc!==_0x49d5c3));}[_0x419bbe(0x28c)](_0x452569){const _0x30e1d2=_0x419bbe;let _0x50f7b3=this[_0x30e1d2(0x211)](_0x452569)[_0x30e1d2(0x2fc)]['get'](this[_0x30e1d2(0x177)])??null;return _0x50f7b3?this[_0x30e1d2(0x302)]['getRecordById'](_0x50f7b3):null;}[_0x419bbe(0x18a)](_0xe04e5f){const _0x4d5af8=_0x419bbe;return(this['_getHierarchyIndex'](_0xe04e5f)['childrenByParentId'][_0x4d5af8(0x1bc)](this[_0x4d5af8(0x177)])??[])[_0x4d5af8(0x275)](_0x24f2a3=>{const _0x3e2eb6=_0x4d5af8;let _0x45668f=this['_table'][_0x3e2eb6(0x228)](_0x24f2a3);return _0x45668f?[_0x45668f]:[];});}[_0x419bbe(0x258)](_0x3ba5d4){const _0x4e2f5a=_0x419bbe;let _0x560150=this['_getHierarchyIndex'](_0x3ba5d4),_0x8761b0=[],_0x1a052f=_0x560150[_0x4e2f5a(0x2fc)][_0x4e2f5a(0x1bc)](this['_recordId'])??null;for(;_0x1a052f;){let _0x6922c5=this[_0x4e2f5a(0x302)][_0x4e2f5a(0x228)](_0x1a052f);_0x6922c5&&_0x8761b0['push'](_0x6922c5),_0x1a052f=_0x560150[_0x4e2f5a(0x2fc)][_0x4e2f5a(0x1bc)](_0x1a052f)??null;}return _0x8761b0;}[_0x419bbe(0x259)](_0x243557){const _0x4ec41b=_0x419bbe;let _0x461354=this['_getHierarchyIndex'](_0x243557),_0x4f100c=_0x461354[_0x4ec41b(0x29e)]['indexOf'](this['_recordId']),_0x2a4aab=_0x461354[_0x4ec41b(0x30f)][_0x4ec41b(0x176)](this[_0x4ec41b(0x177)])?this[_0x4ec41b(0x293)](_0x461354['childrenByParentId'],this[_0x4ec41b(0x177)]):[];return _0x4f100c<0x0?[]:_0x2a4aab[_0x4ec41b(0x275)](_0x11b5f1=>{const _0x2caadf=_0x4ec41b;let _0x1b5aa1=this[_0x2caadf(0x302)][_0x2caadf(0x228)](_0x11b5f1);return _0x1b5aa1?[_0x1b5aa1]:[];});}['setParent'](_0x3bdaeb,_0x3844c0,_0x4a3f05){const _0x314fb2=_0x419bbe;return this['_commandService'][_0x314fb2(0x16e)](c[_0x314fb2(0x223)]['id'],{'unitId':this[_0x314fb2(0x187)][_0x314fb2(0x184)](),'tableId':this[_0x314fb2(0x302)][_0x314fb2(0x184)](),'fieldId':_0x3bdaeb,'recordId':this[_0x314fb2(0x177)],'parentRecordId':_0x3844c0,'orderKey':_0x4a3f05,'source':c[_0x314fb2(0x24d)]['Facade']});}[_0x419bbe(0x1fa)](_0x1aea42,_0x2a9e67,_0x101899='id',_0x1b2ddc){const _0x2f7538=_0x419bbe;let _0x124217=this[_0x2f7538(0x302)][_0x2f7538(0x246)](),_0x36f1df=Date[_0x2f7538(0x197)](),_0x2f8613={..._0x1b2ddc,'id':(0x0,l[_0x2f7538(0x312)])(0x6),'values':b(_0x124217,_0x2a9e67,_0x101899),'orderKey':(_0x1b2ddc==null?void 0x0:_0x1b2ddc[_0x2f7538(0x1b4)])||''+_0x36f1df,'createdAt':(_0x1b2ddc==null?void 0x0:_0x1b2ddc[_0x2f7538(0x1ba)])||_0x36f1df,'updatedAt':(_0x1b2ddc==null?void 0x0:_0x1b2ddc[_0x2f7538(0x171)])||_0x36f1df};if(!this[_0x2f7538(0x1d6)][_0x2f7538(0x16e)](c[_0x2f7538(0x20c)]['id'],{'unitId':this[_0x2f7538(0x187)][_0x2f7538(0x184)](),'tableId':this[_0x2f7538(0x302)]['getId'](),'fieldId':_0x1aea42,'parentRecordId':this[_0x2f7538(0x177)],'record':_0x2f8613,'source':c[_0x2f7538(0x24d)][_0x2f7538(0x23c)]}))throw Error(_0x2f7538(0x31d)+this[_0x2f7538(0x177)]+'\x22.');return this[_0x2f7538(0x2d7)]['createInstance'](F,this[_0x2f7538(0x187)],this[_0x2f7538(0x302)],_0x2f8613['id'],this[_0x2f7538(0x2d7)]);}[_0x419bbe(0x211)](_0x13c94d){const _0xa5b79a=_0x419bbe;return(0x0,c[_0xa5b79a(0x329)])(this[_0xa5b79a(0x302)][_0xa5b79a(0x246)](),_0x13c94d);}[_0x419bbe(0x293)](_0x3a04cf,_0x350e04){let _0x3d2b57=[],_0x22484b=_0x30d86c=>{const _0x3164af=_0x3983;for(let _0x2d29dd of _0x3a04cf[_0x3164af(0x1bc)](_0x30d86c)??[])_0x3d2b57[_0x3164af(0x280)](_0x2d29dd),_0x22484b(_0x2d29dd);};return _0x22484b(_0x350e04),_0x3d2b57;}[_0x419bbe(0x30e)](){const _0x3b17f9=_0x419bbe;let _0x5f32c1=this[_0x3b17f9(0x302)][_0x3b17f9(0x246)]()['records'][this[_0x3b17f9(0x177)]];if(!_0x5f32c1)throw Error(_0x3b17f9(0x1be)+this[_0x3b17f9(0x177)]+_0x3b17f9(0x28f));return _0x5f32c1;}[_0x419bbe(0x251)](_0x334a17){const _0x56b68f=_0x419bbe;let _0x377364=this[_0x56b68f(0x302)][_0x56b68f(0x246)]()[_0x56b68f(0x1ac)][_0x334a17];if(!_0x377364||_0x377364[_0x56b68f(0x2df)]!==l['BaseFieldType'][_0x56b68f(0x247)])throw Error('[FRecord]:\x20field\x20\x22'+_0x334a17+_0x56b68f(0x29b));return _0x377364;}[_0x419bbe(0x2aa)](_0x1f193f){const _0xab74c8=_0x419bbe;let _0x361fdc=this[_0xab74c8(0x302)][_0xab74c8(0x246)]()[_0xab74c8(0x1ac)][_0x1f193f];if(!_0x361fdc||_0x361fdc[_0xab74c8(0x2df)]!==l['BaseFieldType']['Attachment'])throw Error(_0xab74c8(0x196)+_0x1f193f+_0xab74c8(0x2d4));return _0x361fdc;}};I=F=g([h(0x4,l[_0x419bbe(0x1e1)]),h(0x5,l[_0x419bbe(0x1da)])],I);function L(_0x3a0f91){const _0x12f1a1=_0x419bbe;return!!(_0x3a0f91&&typeof _0x3a0f91=='object'&&'id'in _0x3a0f91&&typeof _0x3a0f91['id']==_0x12f1a1(0x325)&&_0x12f1a1(0x292)in _0x3a0f91&&typeof _0x3a0f91[_0x12f1a1(0x292)]=='string');}function R(_0x4a9876,_0x44876e,_0x2858e9){const _0x14cf26=_0x419bbe;if(!L(_0x4a9876))throw Error(_0x14cf26(0x250)+_0x2858e9+'\x20in\x20field\x20\x22'+_0x44876e+_0x14cf26(0x238));return{..._0x4a9876};}let z=class{constructor(_0x190501,_0x4c5fc6,_0xc9cf76,_0x40eae3,_0x29fe51,_0x47a04c,_0x4855f4){const _0x2ba2ad=_0x419bbe;this[_0x2ba2ad(0x187)]=_0x190501,this[_0x2ba2ad(0x302)]=_0x4c5fc6,this[_0x2ba2ad(0x201)]=_0xc9cf76,this[_0x2ba2ad(0x2d7)]=_0x40eae3,this[_0x2ba2ad(0x1d6)]=_0x29fe51,this[_0x2ba2ad(0x32f)]=_0x47a04c,this[_0x2ba2ad(0x199)]=_0x4855f4;}[_0x419bbe(0x184)](){const _0x4544ca=_0x419bbe;return this[_0x4544ca(0x201)];}[_0x419bbe(0x17e)](){const _0x5029ac=_0x419bbe;let _0x1cbbf2=this['_table'][_0x5029ac(0x184)]();return new m(this[_0x5029ac(0x187)]['getId'](),(0x0,c[_0x5029ac(0x23a)])(_0x1cbbf2,this[_0x5029ac(0x201)]),[(0x0,c[_0x5029ac(0x256)])(_0x1cbbf2)],this[_0x5029ac(0x1d6)],this[_0x5029ac(0x32f)]);}[_0x419bbe(0x19f)](){return this['_getView']();}[_0x419bbe(0x17a)](){const _0x7afbe8=_0x419bbe;return this[_0x7afbe8(0x260)]()['name'];}[_0x419bbe(0x2ea)](){const _0x5bbb66=_0x419bbe;return this[_0x5bbb66(0x260)]()[_0x5bbb66(0x2df)];}['setName'](_0x35b4fc){const _0x1cff81=_0x419bbe;return this[_0x1cff81(0x1d6)][_0x1cff81(0x16e)](c[_0x1cff81(0x1ab)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x1cff81(0x184)](),'viewId':this[_0x1cff81(0x201)],'name':_0x35b4fc});}['getConfig'](){const _0x484b8f=_0x419bbe;let _0x96a75c=this[_0x484b8f(0x2ea)](),_0x4e9466=this[_0x484b8f(0x260)]()[_0x484b8f(0x1f9)];switch(_0x96a75c){case l[_0x484b8f(0x17f)]['Grid']:return _0x4e9466;case l[_0x484b8f(0x17f)]['Kanban']:return _0x4e9466;case l[_0x484b8f(0x17f)][_0x484b8f(0x299)]:return _0x4e9466;case l['BaseViewType'][_0x484b8f(0x1a2)]:return _0x4e9466;case l['BaseViewType'][_0x484b8f(0x2cb)]:return _0x4e9466;default:return _0x4e9466;}}[_0x419bbe(0x1dc)](_0x5840ed){const _0x588958=_0x419bbe;return this[_0x588958(0x1d6)][_0x588958(0x16e)](c[_0x588958(0x20f)]['id'],{'unitId':this[_0x588958(0x187)][_0x588958(0x184)](),'tableId':this[_0x588958(0x302)][_0x588958(0x184)](),'viewId':this['_viewId'],'patch':_0x5840ed});}[_0x419bbe(0x285)](){const _0x3bc3bb=_0x419bbe;var _0x479b9f;return l[_0x3bc3bb(0x183)]['deepClone'](((_0x479b9f=this[_0x3bc3bb(0x260)]()[_0x3bc3bb(0x1f9)][_0x3bc3bb(0x1d9)])==null?void 0x0:_0x479b9f[_0x3bc3bb(0x191)])??[]);}[_0x419bbe(0x27e)](_0x4ccd24){const _0x33ee10=_0x419bbe;return this[_0x33ee10(0x1d6)][_0x33ee10(0x16e)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x33ee10(0x187)][_0x33ee10(0x184)](),'tableId':this[_0x33ee10(0x302)][_0x33ee10(0x184)](),'viewId':this[_0x33ee10(0x201)],'type':c[_0x33ee10(0x180)][_0x33ee10(0x1aa)],'rules':_0x4ccd24});}[_0x419bbe(0x274)](_0x2ac022){const _0x32a4ab=_0x419bbe;return this[_0x32a4ab(0x1d6)][_0x32a4ab(0x16e)](c[_0x32a4ab(0x255)]['id'],{'unitId':this['_base'][_0x32a4ab(0x184)](),'tableId':this[_0x32a4ab(0x302)][_0x32a4ab(0x184)](),'viewId':this[_0x32a4ab(0x201)],'type':c[_0x32a4ab(0x180)][_0x32a4ab(0x1c9)],'rule':_0x2ac022});}[_0x419bbe(0x282)](_0x543ff2){const _0x415ced=_0x419bbe;return this['_commandService'][_0x415ced(0x16e)](c[_0x415ced(0x255)]['id'],{'unitId':this[_0x415ced(0x187)]['getId'](),'tableId':this[_0x415ced(0x302)][_0x415ced(0x184)](),'viewId':this[_0x415ced(0x201)],'type':c[_0x415ced(0x180)][_0x415ced(0x1db)],'ruleId':_0x543ff2});}[_0x419bbe(0x249)](){const _0x4d2043=_0x419bbe;return this['_commandService']['syncExecuteCommand'](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x4d2043(0x302)][_0x4d2043(0x184)](),'viewId':this[_0x4d2043(0x201)],'type':c['BaseConditionalColorRuleUpdateType'][_0x4d2043(0x2a2)]});}[_0x419bbe(0x224)](){const _0x4748b9=_0x419bbe;return this[_0x4748b9(0x260)]()[_0x4748b9(0x240)]??null;}[_0x419bbe(0x2d8)](_0x4b3bfd){const _0x220974=_0x419bbe;return this[_0x220974(0x1d6)]['syncExecuteCommand'](c[_0x220974(0x2a3)]['id'],{'unitId':this[_0x220974(0x187)]['getId'](),'tableId':this[_0x220974(0x302)][_0x220974(0x184)](),'viewId':this['_viewId'],'filter':_0x4b3bfd});}['getSort'](){const _0xe23982=_0x419bbe;return this[_0xe23982(0x260)]()['sort']??[];}[_0x419bbe(0x1d1)](_0x5837b8){const _0x4dca9f=_0x419bbe;return this[_0x4dca9f(0x1d6)][_0x4dca9f(0x16e)](c[_0x4dca9f(0x1eb)]['id'],{'unitId':this['_base'][_0x4dca9f(0x184)](),'tableId':this['_table'][_0x4dca9f(0x184)](),'viewId':this[_0x4dca9f(0x201)],'sort':_0x5837b8});}[_0x419bbe(0x2e3)](){const _0xbfa4d8=_0x419bbe;return this[_0xbfa4d8(0x260)]()[_0xbfa4d8(0x2ed)]??[];}['setGroup'](_0x19ede8){const _0xa2fe68=_0x419bbe;return this[_0xa2fe68(0x1d6)]['syncExecuteCommand'](c[_0xa2fe68(0x276)]['id'],{'unitId':this[_0xa2fe68(0x187)]['getId'](),'tableId':this[_0xa2fe68(0x302)][_0xa2fe68(0x184)](),'viewId':this[_0xa2fe68(0x201)],'group':_0x19ede8});}['getFieldSettings'](_0x32ab2e){const _0x20b3a5=_0x419bbe;var _0x103c04;return y(this[_0x20b3a5(0x302)]['getTable']()['fields'][_0x32ab2e])?((_0x103c04=this[_0x20b3a5(0x260)]()[_0x20b3a5(0x243)])==null?void 0x0:_0x103c04[_0x32ab2e])??{}:{};}['getVisibleFields'](){const _0x594524=_0x419bbe;let _0x250096=this[_0x594524(0x302)]['getTable'](),_0xef292b=this[_0x594524(0x260)]();return(_0xef292b[_0x594524(0x2c4)]??_0x250096[_0x594524(0x2c4)])[_0x594524(0x240)](_0x4f740c=>{const _0x5a488d=_0x594524;var _0x4dda88;let _0x5e816a=_0x250096[_0x5a488d(0x1ac)][_0x4f740c];return y(_0x5e816a)&&!((_0x4dda88=_0xef292b[_0x5a488d(0x243)])!=null&&(_0x4dda88=_0x4dda88[_0x4f740c])!=null&&_0x4dda88[_0x5a488d(0x24a)]);})[_0x594524(0x1ec)](_0x53f3bb=>this[_0x594524(0x2d7)][_0x594524(0x22a)](_,this[_0x594524(0x187)],this[_0x594524(0x302)],_0x53f3bb));}['setFieldVisible'](_0x258160,_0x27d387){const _0x4d3179=_0x419bbe;return y(this['_table']['getTable']()[_0x4d3179(0x1ac)][_0x258160])?this[_0x4d3179(0x1d6)][_0x4d3179(0x16e)](c[_0x4d3179(0x1c2)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x4d3179(0x302)][_0x4d3179(0x184)](),'viewId':this[_0x4d3179(0x201)],'fieldId':_0x258160,'visible':_0x27d387}):!0x1;}[_0x419bbe(0x2cc)](_0x57162c,_0x526807){const _0x49e727=_0x419bbe;return y(this[_0x49e727(0x302)][_0x49e727(0x246)]()['fields'][_0x57162c])?this[_0x49e727(0x1d6)][_0x49e727(0x16e)](c[_0x49e727(0x1a7)]['id'],{'unitId':this[_0x49e727(0x187)]['getId'](),'tableId':this[_0x49e727(0x302)][_0x49e727(0x184)](),'viewId':this[_0x49e727(0x201)],'fieldId':_0x57162c,'width':_0x526807}):!0x1;}[_0x419bbe(0x244)](_0x261abe,_0x5bc067){const _0x4f1e08=_0x419bbe;let _0x29d33f=this[_0x4f1e08(0x302)][_0x4f1e08(0x246)](),_0x2f0150=_0x5bc067[_0x4f1e08(0x233)]??_0x5bc067[_0x4f1e08(0x2ce)];return!y(_0x29d33f[_0x4f1e08(0x1ac)][_0x261abe])||!_0x2f0150||!y(_0x29d33f[_0x4f1e08(0x1ac)][_0x2f0150])?!0x1:this['_commandService'][_0x4f1e08(0x16e)](c[_0x4f1e08(0x21e)]['id'],{'unitId':this[_0x4f1e08(0x187)]['getId'](),'tableId':this[_0x4f1e08(0x302)][_0x4f1e08(0x184)](),'viewId':this[_0x4f1e08(0x201)],'fieldId':_0x261abe,'target':_0x5bc067});}[_0x419bbe(0x289)](_0x1ab9ab){const _0x49f4d0=_0x419bbe;return this[_0x49f4d0(0x1d6)][_0x49f4d0(0x16e)](c['MoveBaseViewCommand']['id'],{'unitId':this['_base'][_0x49f4d0(0x184)](),'tableId':this[_0x49f4d0(0x302)][_0x49f4d0(0x184)](),'viewId':this[_0x49f4d0(0x201)],'target':_0x1ab9ab});}['delete'](){const _0x5c4fbd=_0x419bbe;return this[_0x5c4fbd(0x1d6)][_0x5c4fbd(0x16e)](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x5c4fbd(0x187)][_0x5c4fbd(0x184)](),'tableId':this[_0x5c4fbd(0x302)][_0x5c4fbd(0x184)](),'viewId':this[_0x5c4fbd(0x201)]});}[_0x419bbe(0x1cd)](){const _0x42484e=_0x419bbe;return this['_projectionService'][_0x42484e(0x1cd)](this[_0x42484e(0x187)]['getBase']()[_0x42484e(0x2b5)](),this[_0x42484e(0x302)]['getId'](),this['_viewId']);}[_0x419bbe(0x260)](){const _0x1d6113=_0x419bbe;let _0x330afc=this[_0x1d6113(0x302)][_0x1d6113(0x246)]()['views'][this['_viewId']];if(!_0x330afc)throw Error(_0x1d6113(0x182)+this[_0x1d6113(0x201)]+_0x1d6113(0x28f));return _0x330afc;}};z=g([h(0x4,l[_0x419bbe(0x1e1)]),h(0x5,l['IPermissionService']),h(0x6,c[_0x419bbe(0x24c)])],z);let B=class{constructor(_0x222fed,_0x2c6b74,_0x5912eb,_0x5d21b7,_0x3aac76,_0x1b9c95){const _0x1f275c=_0x419bbe;this[_0x1f275c(0x187)]=_0x222fed,this['_tableId']=_0x2c6b74,this['_injector']=_0x5912eb,this[_0x1f275c(0x1d6)]=_0x5d21b7,this[_0x1f275c(0x32f)]=_0x3aac76,this[_0x1f275c(0x199)]=_0x1b9c95;}[_0x419bbe(0x2a1)](){const _0x506378=_0x419bbe;return this[_0x506378(0x187)]['getBase']();}[_0x419bbe(0x246)](){const _0x37d2d6=_0x419bbe;return this[_0x37d2d6(0x16f)]();}[_0x419bbe(0x184)](){const _0x2334ce=_0x419bbe;return this[_0x2334ce(0x315)];}[_0x419bbe(0x17e)](){const _0x3c8d3b=_0x419bbe;return new m(this[_0x3c8d3b(0x2a1)]()[_0x3c8d3b(0x208)](),(0x0,c[_0x3c8d3b(0x256)])(this[_0x3c8d3b(0x315)]),[],this[_0x3c8d3b(0x1d6)],this[_0x3c8d3b(0x32f)]);}[_0x419bbe(0x2fa)](){const _0x52d9a8=_0x419bbe;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x52d9a8(0x16f)]());}[_0x419bbe(0x25d)](_0x7df6f2){const _0x350b=_0x419bbe;return this[_0x350b(0x1d6)][_0x350b(0x16e)](c[_0x350b(0x2e7)]['id'],{'unitId':this[_0x350b(0x187)][_0x350b(0x184)](),'tableId':this[_0x350b(0x315)],'fieldId':_0x7df6f2});}[_0x419bbe(0x17a)](){const _0x37a476=_0x419bbe;return this[_0x37a476(0x16f)]()[_0x37a476(0x292)];}['getFormulaName'](){const _0x194ddd=_0x419bbe;let _0x2c7c5a=this['_base'][_0x194ddd(0x2a1)]()[_0x194ddd(0x2b5)]();return(0x0,c[_0x194ddd(0x2b4)])(this['_getTable'](),_0x2c7c5a);}[_0x419bbe(0x19a)](_0x246c7d){const _0x4ae2ab=_0x419bbe;let _0x4de575=(0x0,c[_0x4ae2ab(0x2f3)])(this['_base'][_0x4ae2ab(0x2a1)]()[_0x4ae2ab(0x2b5)](),_0x246c7d,this['_tableId']);if(!_0x4de575[_0x4ae2ab(0x20a)])throw Error(_0x4ae2ab(0x175)+_0x246c7d+_0x4ae2ab(0x190)+c[_0x4ae2ab(0x241)]+'\x20'+_0x4de575[_0x4ae2ab(0x2e0)]);return this[_0x4ae2ab(0x1d6)][_0x4ae2ab(0x16e)](c['RenameBaseTableCommand']['id'],{'unitId':this[_0x4ae2ab(0x187)][_0x4ae2ab(0x184)](),'tableId':this[_0x4ae2ab(0x315)],'name':_0x246c7d});}[_0x419bbe(0x277)](_0x5c04c3,_0x258f42){const _0x2442d3=_0x419bbe;let _0x5e0635=this['_base']['getBase']()['getSnapshot'](),_0x14cd27=this[_0x2442d3(0x16f)]();if(_0x258f42){let _0x3f509b=this['_projectionService'][_0x2442d3(0x1cd)](_0x5e0635,this[_0x2442d3(0x315)],_0x258f42),_0xec0574=_0x14cd27[_0x2442d3(0x297)][_0x258f42],_0x5c55e6=_0x5c04c3['fieldIds']??J(_0x14cd27,_0xec0574,_0x3f509b),_0x46c533=_0x2442d3(0x1d4)in _0x3f509b&&Array[_0x2442d3(0x2c8)](_0x3f509b['rows'])?_0x3f509b[_0x2442d3(0x1d4)]:[];return(0x0,c[_0x2442d3(0x1b2)])({..._0x5c04c3,'table':_0x14cd27,'fieldIds':_0x5c55e6,'rows':_0x46c533});}let _0x365230=(_0x14cd27['recordOrder']?_0x14cd27[_0x2442d3(0x19d)][_0x2442d3(0x1ec)](_0x50d899=>_0x14cd27[_0x2442d3(0x27f)][_0x50d899]):Object[_0x2442d3(0x2f0)](_0x14cd27[_0x2442d3(0x27f)])[_0x2442d3(0x2c2)]((_0x299d65,_0x143f21)=>_0x299d65[_0x2442d3(0x1b4)][_0x2442d3(0x290)](_0x143f21['orderKey'])))[_0x2442d3(0x240)](_0x2923f8=>_0x2923f8)[_0x2442d3(0x1ec)](_0x4104ea=>({'recordId':_0x4104ea['id'],'values':_0x4104ea[_0x2442d3(0x2f0)]})),_0xa63793=_0x5c04c3['fieldIds']??_0x14cd27[_0x2442d3(0x2c4)]['filter'](_0x3dbe9c=>y(_0x14cd27[_0x2442d3(0x1ac)][_0x3dbe9c]));return(0x0,c[_0x2442d3(0x1b2)])({..._0x5c04c3,'table':_0x14cd27,'fieldIds':_0xa63793,'rows':_0x365230});}[_0x419bbe(0x2c7)](){const _0x2ff763=_0x419bbe;return this[_0x2ff763(0x16f)]()[_0x2ff763(0x2a7)];}[_0x419bbe(0x2b2)](){const _0x5f0da2=_0x419bbe;let _0x4f7eb4=this[_0x5f0da2(0x16f)]();return _0x4f7eb4['fieldOrder'][_0x5f0da2(0x1ec)](_0x46bcbb=>_0x4f7eb4[_0x5f0da2(0x1ac)][_0x46bcbb])[_0x5f0da2(0x240)](y)[_0x5f0da2(0x1ec)](_0x5c25ef=>this[_0x5f0da2(0x2d7)][_0x5f0da2(0x22a)](_,this[_0x5f0da2(0x187)],this,_0x5c25ef['id']));}['getFieldById'](_0x1c96ea){const _0x194864=_0x419bbe;let _0x51e30a=this[_0x194864(0x16f)]()[_0x194864(0x1ac)][_0x1c96ea];return y(_0x51e30a)?this['_injector'][_0x194864(0x22a)](_,this[_0x194864(0x187)],this,_0x51e30a['id']):null;}[_0x419bbe(0x31e)](_0x58b394){const _0xcc7c72=_0x419bbe;let _0x24993e=this[_0xcc7c72(0x16f)]()[_0xcc7c72(0x1ac)],_0xcdb6c=Object['values'](_0x24993e)[_0xcc7c72(0x231)](_0x42d724=>y(_0x42d724)&&_0x42d724[_0xcc7c72(0x292)]===_0x58b394);return _0xcdb6c?this[_0xcc7c72(0x2d7)][_0xcc7c72(0x22a)](_,this[_0xcc7c72(0x187)],this,_0xcdb6c['id']):null;}['getPrimaryField'](){const _0xc8d1d5=_0x419bbe;let _0x4aac6e=this[_0xc8d1d5(0x16f)]()[_0xc8d1d5(0x2a7)];return this[_0xc8d1d5(0x2d7)][_0xc8d1d5(0x22a)](_,this[_0xc8d1d5(0x187)],this,_0x4aac6e);}[_0x419bbe(0x30d)](_0x2fffce,_0x2fa872,_0x588955){const _0x2666e1=_0x419bbe;var _0x435731,_0x27f6aa;if(!Object[_0x2666e1(0x2f0)](l[_0x2666e1(0x307)])[_0x2666e1(0x25f)](_0x3430e6=>_0x3430e6===_0x2fa872))throw Error(_0x2666e1(0x202)+String(_0x2fa872)+'\x22.');if(_0x2fa872===l[_0x2666e1(0x307)][_0x2666e1(0x2f7)]&&this['_prepareFormulaFieldReferences'](_0x2fffce,_0x588955),_0x2fa872===l[_0x2666e1(0x307)]['RecordLink']&&(typeof(_0x588955==null||(_0x435731=_0x588955[_0x2666e1(0x1cc)])==null||(_0x435731=_0x435731[_0x2666e1(0x1f9)])==null?void 0x0:_0x435731[_0x2666e1(0x26b)])!=_0x2666e1(0x325)||typeof _0x588955[_0x2666e1(0x1cc)][_0x2666e1(0x1f9)]['multiple']!=_0x2666e1(0x30c)))throw Error(_0x2666e1(0x1a3));let _0x5c8d2b={..._0x588955==null?void 0x0:_0x588955[_0x2666e1(0x1cc)],'id':(0x0,l[_0x2666e1(0x312)])(0x6),'name':_0x2fffce,'type':_0x2fa872,'config':(_0x588955==null||(_0x27f6aa=_0x588955[_0x2666e1(0x1cc)])==null?void 0x0:_0x27f6aa[_0x2666e1(0x1f9)])??{}};if(!this['_commandService']['syncExecuteCommand'](c[_0x2666e1(0x29a)]['id'],{'unitId':this[_0x2666e1(0x187)][_0x2666e1(0x184)](),'tableId':this[_0x2666e1(0x315)],'field':_0x5c8d2b,'index':_0x588955==null?void 0x0:_0x588955['index']}))throw Error(_0x2666e1(0x1ad)+_0x2fffce+'\x22');return this[_0x2666e1(0x2d7)][_0x2666e1(0x22a)](_,this[_0x2666e1(0x187)],this,_0x5c8d2b['id']);}[_0x419bbe(0x1e0)](_0xcb6c28,_0x558884){const _0x40739a=_0x419bbe;var _0x1090f0;if(!_0x558884||!(_0x40739a(0x27b)in _0x558884)||!Array['isArray'](_0x558884[_0x40739a(0x27b)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x159df7=this[_0x40739a(0x1d6)]['syncExecuteCommand'](c['ValidateBaseFormulaCommand']['id'],{'unitId':this[_0x40739a(0x187)]['getId'](),'tableId':this[_0x40739a(0x315)],'formula':String(((_0x1090f0=_0x558884['field'])==null||(_0x1090f0=_0x1090f0[_0x40739a(0x1f9)])==null?void 0x0:_0x1090f0[_0x40739a(0x1c4)])??'')});if(!_0x159df7[_0x40739a(0x20a)])throw Error(_0x159df7['reason']??'Invalid\x20Base\x20formula.');if(_0x558884[_0x40739a(0x27b)][_0x40739a(0x2a6)]>0x0&&!this[_0x40739a(0x1d6)][_0x40739a(0x16e)](f[_0x40739a(0x318)]['id'],{'unitId':this[_0x40739a(0x187)][_0x40739a(0x184)](),'references':_0x558884[_0x40739a(0x27b)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0xcb6c28+'\x22');}[_0x419bbe(0x1b9)](){const _0x54d8c8=_0x419bbe;return this['_resolveRecordIds']()[_0x54d8c8(0x1ec)](_0x1bee81=>this[_0x54d8c8(0x2d7)][_0x54d8c8(0x22a)](I,this[_0x54d8c8(0x187)],this,_0x1bee81,this[_0x54d8c8(0x2d7)]));}[_0x419bbe(0x228)](_0x576275){const _0x28352c=_0x419bbe;return this[_0x28352c(0x16f)]()[_0x28352c(0x27f)][_0x576275]?this[_0x28352c(0x2d7)]['createInstance'](I,this[_0x28352c(0x187)],this,_0x576275,this[_0x28352c(0x2d7)]):null;}[_0x419bbe(0x2ad)](_0x11f315={}){const _0x45c29c=_0x419bbe;let _0x5d31c0=this[_0x45c29c(0x16f)](),_0x38fbb0=this[_0x45c29c(0x28a)](_0x11f315),_0x8d5360=Math[_0x45c29c(0x23d)](0x0,_0x11f315[_0x45c29c(0x26f)]??0x0),_0x30ae71=_0x11f315[_0x45c29c(0x331)]==null?null:Math['max'](0x0,_0x11f315[_0x45c29c(0x331)]),_0x175794=H(_0x38fbb0[_0x45c29c(0x1ec)](_0x40b877=>_0x5d31c0['records'][_0x40b877])[_0x45c29c(0x240)](_0x2f9aed=>W(_0x2f9aed,_0x5d31c0,_0x11f315['filter'])),_0x5d31c0,_0x11f315['sort']);return{'records':V(_0x175794,_0x11f315)[_0x45c29c(0x1ec)](_0x1c5bc8=>this[_0x45c29c(0x2d7)][_0x45c29c(0x22a)](I,this['_base'],this,_0x1c5bc8['id'],this['_injector'])),'total':_0x175794[_0x45c29c(0x2a6)],'offset':_0x8d5360,'limit':_0x30ae71,'hasMore':_0x30ae71!=null&&_0x8d5360+_0x30ae71<_0x175794[_0x45c29c(0x2a6)]};}[_0x419bbe(0x25c)](_0x57f99f,_0x5d99a4='id',_0x41990d){const _0x937658=_0x419bbe;let _0x186f35=this[_0x937658(0x16f)](),_0x596cbd=Date[_0x937658(0x197)](),_0x9733e4={..._0x41990d,'id':(0x0,l[_0x937658(0x312)])(0x6),'values':b(_0x186f35,_0x57f99f,_0x5d99a4),'orderKey':(_0x41990d==null?void 0x0:_0x41990d[_0x937658(0x1b4)])||''+_0x596cbd,'createdAt':(_0x41990d==null?void 0x0:_0x41990d[_0x937658(0x1ba)])||_0x596cbd,'updatedAt':(_0x41990d==null?void 0x0:_0x41990d[_0x937658(0x171)])||_0x596cbd};if(!this[_0x937658(0x1d6)][_0x937658(0x16e)](c[_0x937658(0x17d)]['id'],{'unitId':this[_0x937658(0x187)][_0x937658(0x184)](),'tableId':this[_0x937658(0x315)],'record':_0x9733e4,'source':c[_0x937658(0x24d)][_0x937658(0x23c)]}))throw Error(_0x937658(0x2e9)+_0x9733e4['id']+'\x22');return this['_injector'][_0x937658(0x22a)](I,this[_0x937658(0x187)],this,_0x9733e4['id'],this[_0x937658(0x2d7)]);}[_0x419bbe(0x22d)](_0xbfa36d){const _0x427ee8=_0x419bbe;if(!_0xbfa36d[_0x427ee8(0x2a6)])return[];let _0x299611=this[_0x427ee8(0x16f)](),_0x4a872d=Date[_0x427ee8(0x197)](),_0x4e86e5=_0xbfa36d['map']((_0x34716f,_0x372562)=>{const _0x2c336b=_0x427ee8;var _0x5a42d2,_0x479e1d,_0x25c2f1;return{..._0x34716f['record'],'id':(0x0,l[_0x2c336b(0x312)])(0x6),'values':b(_0x299611,_0x34716f['values'],_0x34716f[_0x2c336b(0x32d)]??'id'),'orderKey':((_0x5a42d2=_0x34716f['record'])==null?void 0x0:_0x5a42d2[_0x2c336b(0x1b4)])||''+(_0x4a872d+_0x372562),'createdAt':((_0x479e1d=_0x34716f['record'])==null?void 0x0:_0x479e1d[_0x2c336b(0x1ba)])||_0x4a872d,'updatedAt':((_0x25c2f1=_0x34716f[_0x2c336b(0x2d3)])==null?void 0x0:_0x25c2f1['updatedAt'])||_0x4a872d};});if(!this[_0x427ee8(0x1d6)][_0x427ee8(0x16e)](c[_0x427ee8(0x2dc)]['id'],{'unitId':this[_0x427ee8(0x187)]['getId'](),'tableId':this[_0x427ee8(0x315)],'records':_0x4e86e5,'source':c[_0x427ee8(0x24d)][_0x427ee8(0x23c)]}))throw Error(_0x427ee8(0x1b7));return _0x4e86e5['map'](_0x2f5a94=>this[_0x427ee8(0x2d7)]['createInstance'](I,this[_0x427ee8(0x187)],this,_0x2f5a94['id'],this[_0x427ee8(0x2d7)]));}[_0x419bbe(0x1a9)](_0x250b5c){const _0x449fe3=_0x419bbe;return!_0x250b5c['length']||this[_0x449fe3(0x1d6)][_0x449fe3(0x16e)](c[_0x449fe3(0x18e)]['id'],{'unitId':this[_0x449fe3(0x187)]['getId'](),'tableId':this[_0x449fe3(0x315)],'recordIds':_0x250b5c,'source':c[_0x449fe3(0x24d)]['Facade']});}['getRange'](_0xe66d1e,_0x3b38d3,_0x320823=0x1,_0x1dd033=0x1){const _0xa06d94=_0x419bbe;return this['_injector'][_0xa06d94(0x22a)](A,this['_base'],this,{'startRow':_0xe66d1e,'endRow':_0xe66d1e+_0x320823-0x1,'startColumn':_0x3b38d3,'endColumn':_0x3b38d3+_0x1dd033-0x1},this[_0xa06d94(0x2d7)]);}[_0x419bbe(0x1f7)](){const _0x4dfacc=_0x419bbe;var _0x467553;let _0x31a12c=(0x0,c[_0x4dfacc(0x237)])(this[_0x4dfacc(0x16f)]()),_0xa9d58b=((_0x467553=_0x31a12c['recordOrder'])==null?void 0x0:_0x467553[_0x4dfacc(0x2a6)])??0x0,_0x35ac66=_0x31a12c['fieldOrder']['filter'](_0x51aa40=>y(_0x31a12c[_0x4dfacc(0x1ac)][_0x51aa40]))['length'];return this['getRange'](0x0,0x0,Math[_0x4dfacc(0x23d)](_0xa9d58b,0x1),Math[_0x4dfacc(0x23d)](_0x35ac66,0x1));}['getViews'](){const _0x49e1d6=_0x419bbe;let _0x3ed34f=this[_0x49e1d6(0x16f)]();return _0x3ed34f[_0x49e1d6(0x1d3)][_0x49e1d6(0x240)](_0x13933c=>_0x3ed34f[_0x49e1d6(0x297)][_0x13933c])[_0x49e1d6(0x1ec)](_0x9db9e6=>this[_0x49e1d6(0x2d7)][_0x49e1d6(0x22a)](z,this['_base'],this,_0x9db9e6,this['_injector']));}['getViewById'](_0x5e3b8f){const _0x364810=_0x419bbe;return this[_0x364810(0x16f)]()['views'][_0x5e3b8f]?this[_0x364810(0x2d7)][_0x364810(0x22a)](z,this[_0x364810(0x187)],this,_0x5e3b8f,this[_0x364810(0x2d7)]):null;}[_0x419bbe(0x2bd)](_0x29f2f1){const _0x2c2740=_0x419bbe;let _0x4f269f=this['_getTable'](),_0x52e1d6=Object[_0x2c2740(0x2f0)](_0x4f269f['views'])['find'](_0x179469=>_0x179469[_0x2c2740(0x292)]===_0x29f2f1);return _0x52e1d6?this[_0x2c2740(0x2d7)][_0x2c2740(0x22a)](z,this[_0x2c2740(0x187)],this,_0x52e1d6['id'],this[_0x2c2740(0x2d7)]):null;}[_0x419bbe(0x1f4)](_0x4be59a,_0x8e58cd,_0x4d5647){const _0x2ab0e1=_0x419bbe;var _0x107055,_0x24042e,_0x15c32a,_0x4ab5bb;let _0x4efaf7=this['_getTable'](),_0x3fc419=(_0x4d5647==null||(_0x107055=_0x4d5647[_0x2ab0e1(0x1dd)])==null?void 0x0:_0x107055[_0x2ab0e1(0x2c4)])??_0x4efaf7['fieldOrder'],_0x5aa66a=[l['BASE_RECORD_ID_FIELD_ID'],..._0x3fc419['filter'](_0x28657f=>y(_0x4efaf7[_0x2ab0e1(0x1ac)][_0x28657f]))],_0x77be36={..._0x4d5647==null?void 0x0:_0x4d5647['view'],'id':(0x0,l[_0x2ab0e1(0x312)])(0x6),'name':_0x4be59a,'type':_0x8e58cd,'tableId':this[_0x2ab0e1(0x315)],'config':(_0x4d5647==null||(_0x24042e=_0x4d5647['view'])==null?void 0x0:_0x24042e['config'])??{},'fieldOrder':_0x5aa66a,'fieldSettings':{..._0x4d5647==null||(_0x15c32a=_0x4d5647[_0x2ab0e1(0x1dd)])==null?void 0x0:_0x15c32a[_0x2ab0e1(0x243)],[l[_0x2ab0e1(0x20b)]]:{..._0x4d5647==null||(_0x4ab5bb=_0x4d5647[_0x2ab0e1(0x1dd)])==null||(_0x4ab5bb=_0x4ab5bb[_0x2ab0e1(0x243)])==null?void 0x0:_0x4ab5bb[l[_0x2ab0e1(0x20b)]],'hidden':!0x0}}};if(!this[_0x2ab0e1(0x1d6)][_0x2ab0e1(0x16e)](c[_0x2ab0e1(0x221)]['id'],{'unitId':this[_0x2ab0e1(0x187)]['getId'](),'tableId':this['_tableId'],'view':_0x77be36,'index':_0x4d5647==null?void 0x0:_0x4d5647[_0x2ab0e1(0x1f1)]}))throw Error(_0x2ab0e1(0x1f5)+_0x4be59a+'\x22');return this[_0x2ab0e1(0x2d7)][_0x2ab0e1(0x22a)](z,this[_0x2ab0e1(0x187)],this,_0x77be36['id'],this[_0x2ab0e1(0x2d7)]);}['getSchema'](){const _0x1b291a=_0x419bbe;let _0x6a1b91=this[_0x1b291a(0x16f)](),_0xf5be31=_0x6a1b91[_0x1b291a(0x2c4)][_0x1b291a(0x240)](_0x4e39d0=>y(_0x6a1b91['fields'][_0x4e39d0])),_0x189d3e=_0x6a1b91[_0x1b291a(0x1d3)]['filter'](_0x49f27a=>_0x6a1b91['views'][_0x49f27a]);return{'id':_0x6a1b91['id'],'name':_0x6a1b91[_0x1b291a(0x292)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x6a1b91[_0x1b291a(0x2a7)],'fieldIds':_0xf5be31,'viewIds':_0x189d3e,'recordCount':this[_0x1b291a(0x28a)]()[_0x1b291a(0x2a6)],'fields':_0xf5be31[_0x1b291a(0x1ec)](_0x4200c3=>{const _0xcc412a=_0x1b291a;let _0xf8608b=_0x6a1b91[_0xcc412a(0x1ac)][_0x4200c3];return{'id':_0xf8608b['id'],'name':_0xf8608b[_0xcc412a(0x292)],'type':_0xf8608b[_0xcc412a(0x2df)],'config':_0xf8608b[_0xcc412a(0x1f9)],'readonly':_0xf8608b['readonly'],'description':_0xf8608b[_0xcc412a(0x27d)]};}),'views':_0x189d3e[_0x1b291a(0x1ec)](_0x188692=>{const _0x5e2673=_0x1b291a;let _0x4f8653=_0x6a1b91[_0x5e2673(0x297)][_0x188692];return{'id':_0x4f8653['id'],'name':_0x4f8653[_0x5e2673(0x292)],'type':_0x4f8653[_0x5e2673(0x2df)]};})};}[_0x419bbe(0x16f)](){const _0x24d662=_0x419bbe;let _0x3ed2e1=this[_0x24d662(0x187)][_0x24d662(0x2a1)]()['getSnapshot']()[_0x24d662(0x1fc)][this[_0x24d662(0x315)]];if(!_0x3ed2e1)throw Error(_0x24d662(0x32b)+this[_0x24d662(0x315)]+'\x22\x20does\x20not\x20exist.');return _0x3ed2e1;}[_0x419bbe(0x28a)](_0x21762b={}){const _0x115ba9=_0x419bbe;let _0x553692=this[_0x115ba9(0x187)][_0x115ba9(0x2a1)]()[_0x115ba9(0x2b5)](),_0x22a388=this['_getTable']();if(_0x21762b['viewId']){let _0x2c06c1=this['_projectionService'][_0x115ba9(0x1cd)](_0x553692,this[_0x115ba9(0x315)],_0x21762b[_0x115ba9(0x266)]);if('rows'in _0x2c06c1&&Array['isArray'](_0x2c06c1['rows']))return _0x2c06c1[_0x115ba9(0x1d4)][_0x115ba9(0x1ec)](_0x2e8f47=>_0x2e8f47[_0x115ba9(0x23b)]);}return(_0x22a388[_0x115ba9(0x19d)]?_0x22a388[_0x115ba9(0x19d)][_0x115ba9(0x1ec)](_0x33291a=>_0x22a388['records'][_0x33291a]):Object[_0x115ba9(0x2f0)](_0x22a388[_0x115ba9(0x27f)])[_0x115ba9(0x2c2)]((_0x3c6044,_0x19dce2)=>_0x3c6044[_0x115ba9(0x1b4)][_0x115ba9(0x290)](_0x19dce2['orderKey'])))[_0x115ba9(0x240)](_0x54ae4b=>_0x54ae4b)[_0x115ba9(0x1ec)](_0x27cf60=>_0x27cf60['id']);}};B=g([h(0x3,l[_0x419bbe(0x1e1)]),h(0x4,l[_0x419bbe(0x1da)]),h(0x5,c[_0x419bbe(0x24c)])],B);function V(_0x3485c4,_0x2ea03a){const _0x258a72=_0x419bbe;let _0x113c2a=Math[_0x258a72(0x23d)](0x0,_0x2ea03a[_0x258a72(0x26f)]??0x0);return _0x2ea03a[_0x258a72(0x331)]==null?_0x3485c4['slice'](_0x113c2a):_0x3485c4[_0x258a72(0x192)](_0x113c2a,_0x113c2a+Math[_0x258a72(0x23d)](0x0,_0x2ea03a['limit']));}function H(_0xc27a93,_0x39c8c5,_0x2ea23e=[]){const _0x31397c=_0x419bbe;return _0x2ea23e[_0x31397c(0x2a6)]?[..._0xc27a93][_0x31397c(0x2c2)]((_0xbc0e84,_0x17785c)=>{const _0xe1ccd2=_0x31397c;for(let _0x4258b0 of _0x2ea23e){var _0x685a9e;let _0xc5624a=_0x4258b0[_0xe1ccd2(0x1b6)]===l[_0xe1ccd2(0x235)]['DESC']?-0x1:0x1,_0x43b616=U(_0xbc0e84[_0xe1ccd2(0x2f0)][_0x4258b0[_0xe1ccd2(0x1de)]],_0x17785c[_0xe1ccd2(0x2f0)][_0x4258b0[_0xe1ccd2(0x1de)]],(_0x685a9e=_0x39c8c5[_0xe1ccd2(0x1ac)][_0x4258b0[_0xe1ccd2(0x1de)]])==null?void 0x0:_0x685a9e[_0xe1ccd2(0x2df)]);if(_0x43b616!==0x0)return _0x43b616*_0xc5624a;}return String(_0xbc0e84['orderKey']??_0xbc0e84['id'])[_0xe1ccd2(0x290)](String(_0x17785c['orderKey']??_0x17785c['id']));}):_0xc27a93;}function U(_0x161d1a,_0x565e49,_0x4d58de){const _0x159c15=_0x419bbe;return _0x161d1a==null&&_0x565e49==null?0x0:_0x161d1a==null?-0x1:_0x565e49==null?0x1:typeof _0x161d1a==_0x159c15(0x2b3)&&typeof _0x565e49=='number'?_0x161d1a-_0x565e49:_0x4d58de===l[_0x159c15(0x307)][_0x159c15(0x320)]?Number(_0x161d1a)-Number(_0x565e49):String(_0x161d1a)[_0x159c15(0x290)](String(_0x565e49));}function W(_0x1035ee,_0x5a8848,_0x45f342){const _0x4e7fb8=_0x419bbe;var _0x3b3ea8;if(!_0x45f342||!((_0x3b3ea8=_0x45f342[_0x4e7fb8(0x25a)])!=null&&_0x3b3ea8[_0x4e7fb8(0x2a6)]))return!0x0;let {conjunction:_0x38987f=l[_0x4e7fb8(0x2f1)]['OR'],conditions:_0x59ecf7}=_0x45f342;return _0x38987f===l[_0x4e7fb8(0x2f1)][_0x4e7fb8(0x2fb)]&&_0x59ecf7[_0x4e7fb8(0x2a6)]>0x1?_0x59ecf7[_0x4e7fb8(0x2d2)](_0x187936=>G(_0x1035ee,_0x5a8848,_0x187936)):_0x59ecf7[_0x4e7fb8(0x25f)](_0x231db5=>G(_0x1035ee,_0x5a8848,_0x231db5));}function G(_0x223c35,_0x4dc33a,_0x5e82fc){const _0x114af1=_0x419bbe;let _0x1ae82e=_0x223c35[_0x114af1(0x2f0)][_0x5e82fc[_0x114af1(0x1de)]],_0x1e612e=_0x4dc33a[_0x114af1(0x1ac)][_0x5e82fc[_0x114af1(0x1de)]];if(K(_0x5e82fc)){let _0x45f343=q(_0x5e82fc)[_0x114af1(0x1a6)](String(_0x1ae82e??''));return _0x5e82fc[_0x114af1(0x261)]===_0x114af1(0x194)?_0x45f343:!_0x45f343;}return!_0x1e612e||(0x0,c[_0x114af1(0x24b)])(_0x1ae82e,_0x5e82fc[_0x114af1(0x261)],_0x5e82fc['value'],_0x1e612e);}function K(_0x291f77){const _0x3a494c=_0x419bbe;return _0x291f77[_0x3a494c(0x261)]===_0x3a494c(0x194)||_0x291f77[_0x3a494c(0x261)]==='notMatches';}function q(_0x59efcb){const _0x3fdd43=_0x419bbe;let _0x3f9435=String(_0x59efcb[_0x3fdd43(0x1ca)]??'');if(_0x3f9435[_0x3fdd43(0x2a6)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3f9435,_0x59efcb[_0x3fdd43(0x1ed)]?void 0x0:'i');}catch(_0x5e31eb){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x3f9435+'.\x20'+(_0x5e31eb instanceof Error?_0x5e31eb[_0x3fdd43(0x217)]:String(_0x5e31eb)));}}function J(_0x106ae4,_0x2248e3,_0x4b466c){const _0x6fb76b=_0x419bbe;if(_0x4b466c[_0x6fb76b(0x2df)]!==_0x6fb76b(0x306)&&_0x4b466c['type']!==_0x6fb76b(0x22e)){var _0x5cc8c9;if(_0x4b466c[_0x6fb76b(0x2df)]===l['BaseViewType'][_0x6fb76b(0x2dd)]){var _0x348e03;let _0x3b9075=[((_0x348e03=_0x4b466c[_0x6fb76b(0x1ac)])==null||(_0x348e03=_0x348e03[0x0])==null?void 0x0:_0x348e03['id'])??_0x106ae4[_0x6fb76b(0x2a7)],..._0x4b466c['visibleCardFieldIds']??[]];return Array[_0x6fb76b(0x2b7)](new Set(_0x3b9075[_0x6fb76b(0x240)](_0x202b6b=>!!_0x106ae4['fields'][_0x202b6b])));}if((_0x5cc8c9=_0x4b466c[_0x6fb76b(0x1ac)])!=null&&_0x5cc8c9['length'])return _0x4b466c['fields'][_0x6fb76b(0x1ec)](_0x3d04c8=>_0x3d04c8['id'])['filter'](_0x3ac1f6=>{const _0x80586b=_0x6fb76b;var _0x161bd5;return!(!_0x106ae4[_0x80586b(0x1ac)][_0x3ac1f6]||_0x2248e3!=null&&(_0x161bd5=_0x2248e3[_0x80586b(0x243)])!=null&&(_0x161bd5=_0x161bd5[_0x3ac1f6])!=null&&_0x161bd5[_0x80586b(0x24a)]);});}return _0x106ae4['fieldOrder'][_0x6fb76b(0x240)](_0xd55960=>{const _0x5cd05b=_0x6fb76b;var _0xe61f92;return!(!_0x106ae4[_0x5cd05b(0x1ac)][_0xd55960]||_0x2248e3!=null&&(_0xe61f92=_0x2248e3[_0x5cd05b(0x243)])!=null&&(_0xe61f92=_0xe61f92[_0xd55960])!=null&&_0xe61f92[_0x5cd05b(0x24a)]);});}let Y=class extends u['FBase']{constructor(_0x19974c,_0x21e5e3,_0x565520,_0x95b1c9,_0x17fd0d){const _0x373dc2=_0x419bbe;super(),this[_0x373dc2(0x187)]=_0x19974c,this[_0x373dc2(0x2d7)]=_0x21e5e3,this[_0x373dc2(0x1e8)]=_0x565520,this[_0x373dc2(0x1d6)]=_0x95b1c9,this[_0x373dc2(0x32f)]=_0x17fd0d;}[_0x419bbe(0x2a1)](){const _0x42bf7a=_0x419bbe;return this[_0x42bf7a(0x187)];}[_0x419bbe(0x184)](){const _0xb6635d=_0x419bbe;return this[_0xb6635d(0x187)][_0xb6635d(0x208)]();}[_0x419bbe(0x17e)](){const _0x1c1b98=_0x419bbe;return new p(this[_0x1c1b98(0x184)](),this[_0x1c1b98(0x1d6)],this[_0x1c1b98(0x32f)]);}[_0x419bbe(0x1d2)](){const _0x156a62=_0x419bbe;return this['_resourceLoaderService']['saveUnit'](this['getId']())??l[_0x156a62(0x183)][_0x156a62(0x252)](this[_0x156a62(0x187)][_0x156a62(0x2b5)]());}[_0x419bbe(0x17a)](){const _0x59b96f=_0x419bbe;return this[_0x59b96f(0x187)][_0x59b96f(0x2b5)]()[_0x59b96f(0x292)];}[_0x419bbe(0x19a)](_0x4e02db){const _0x4c0c9a=_0x419bbe;this[_0x4c0c9a(0x1d6)][_0x4c0c9a(0x16e)](c[_0x4c0c9a(0x310)]['id'],{'unitId':this[_0x4c0c9a(0x184)](),'name':_0x4e02db});}['getTables'](){const _0x11125f=_0x419bbe;let _0x20cb4c=this[_0x11125f(0x187)]['getSnapshot']();return _0x20cb4c[_0x11125f(0x172)]['map'](_0x4f70dd=>_0x20cb4c[_0x11125f(0x1fc)][_0x4f70dd])[_0x11125f(0x240)](_0x34e9c9=>_0x34e9c9)[_0x11125f(0x1ec)](_0x56b1c1=>this[_0x11125f(0x2d7)]['createInstance'](B,this,_0x56b1c1['id'],this[_0x11125f(0x2d7)]));}[_0x419bbe(0x328)](_0x485cff){const _0x2e7e3e=_0x419bbe;let _0x2db989=this[_0x2e7e3e(0x187)][_0x2e7e3e(0x2b5)]()[_0x2e7e3e(0x1fc)][_0x485cff];return _0x2db989?this[_0x2e7e3e(0x2d7)][_0x2e7e3e(0x22a)](B,this,_0x2db989['id'],this[_0x2e7e3e(0x2d7)]):null;}[_0x419bbe(0x1cf)](_0x37b184){const _0x3f97de=_0x419bbe;let _0x597046=this[_0x3f97de(0x187)][_0x3f97de(0x2b5)](),_0x50c925=Object['values'](_0x597046['tables'])[_0x3f97de(0x231)](_0x5cabc6=>_0x5cabc6[_0x3f97de(0x292)]===_0x37b184);return _0x50c925?this['_injector']['createInstance'](B,this,_0x50c925['id'],this[_0x3f97de(0x2d7)]):null;}[_0x419bbe(0x2d6)](_0x324af4,_0x519a1e){const _0x1bfbc9=_0x419bbe;let _0x26698d=(0x0,l[_0x1bfbc9(0x1c8)])({'id':(0x0,l['generateRandomId'])(),'name':_0x324af4,..._0x519a1e==null?void 0x0:_0x519a1e[_0x1bfbc9(0x229)],'primaryFieldName':_0x519a1e==null?void 0x0:_0x519a1e[_0x1bfbc9(0x2a5)]}),_0x4fec69=l[_0x1bfbc9(0x183)][_0x1bfbc9(0x2d5)](_0x26698d,(_0x519a1e==null?void 0x0:_0x519a1e[_0x1bfbc9(0x229)])??{}),_0x2de710=(0x0,c['validateBaseTableName'])(this[_0x1bfbc9(0x187)]['getSnapshot'](),_0x4fec69['name']);if(!_0x2de710['valid'])throw Error(_0x1bfbc9(0x300)+_0x4fec69[_0x1bfbc9(0x292)]+_0x1bfbc9(0x190)+c[_0x1bfbc9(0x241)]+'\x20'+_0x2de710[_0x1bfbc9(0x2e0)]);if(!this[_0x1bfbc9(0x1d6)][_0x1bfbc9(0x16e)](c[_0x1bfbc9(0x262)]['id'],{'unitId':this[_0x1bfbc9(0x187)][_0x1bfbc9(0x208)](),'table':_0x4fec69,'index':_0x519a1e==null?void 0x0:_0x519a1e[_0x1bfbc9(0x1f1)]}))throw Error(_0x1bfbc9(0x298)+_0x324af4+'\x22.');return this[_0x1bfbc9(0x2d7)][_0x1bfbc9(0x22a)](B,this,_0x4fec69['id'],this[_0x1bfbc9(0x2d7)]);}[_0x419bbe(0x332)](_0x3af6db){const _0xbe9274=_0x419bbe;let _0x1d7d86=typeof _0x3af6db==_0xbe9274(0x325)?_0x3af6db:_0x3af6db[_0xbe9274(0x184)]();if(!this[_0xbe9274(0x1d6)]['syncExecuteCommand'](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0xbe9274(0x187)][_0xbe9274(0x208)](),'tableId':_0x1d7d86}))throw Error(_0xbe9274(0x19e)+_0x1d7d86+'\x22.');return!0x0;}[_0x419bbe(0x248)](_0x24f430,_0x36e6ec){const _0x3a42ce=_0x419bbe;let _0x3cbfbe=this[_0x3a42ce(0x187)][_0x3a42ce(0x2b5)](),_0x529ab5=typeof _0x24f430==_0x3a42ce(0x325)?_0x24f430:_0x24f430['getId'](),_0x12de96=_0x3cbfbe[_0x3a42ce(0x1fc)][_0x529ab5];if(!_0x12de96)throw Error(_0x3a42ce(0x296)+_0x529ab5+_0x3a42ce(0x28f));let _0x14c596=_0x3cbfbe[_0x3a42ce(0x172)][_0x3a42ce(0x311)](_0x529ab5)+0x1,_0x42357a=(0x0,l[_0x3a42ce(0x312)])(),_0x188550=(0x0,c[_0x3a42ce(0x216)])(_0x12de96,{'id':_0x42357a,'name':(0x0,c[_0x3a42ce(0x2a9)])(_0x3cbfbe,_0x12de96[_0x3a42ce(0x292)]+'\x20Copy'),'includeRecords':(_0x36e6ec==null?void 0x0:_0x36e6ec[_0x3a42ce(0x287)])??!0x1,'regenerateViewIds':(_0x36e6ec==null?void 0x0:_0x36e6ec[_0x3a42ce(0x2c6)])??!0x1});if(!this['_commandService'][_0x3a42ce(0x16e)](c[_0x3a42ce(0x262)]['id'],{'unitId':this['_base'][_0x3a42ce(0x208)](),'table':_0x188550,'index':_0x14c596}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x529ab5+'\x22.');return this[_0x3a42ce(0x2d7)][_0x3a42ce(0x22a)](B,this,_0x188550['id'],this[_0x3a42ce(0x2d7)]);}[_0x419bbe(0x28e)](){const _0xa62fc1=_0x419bbe;let _0x209d19=this['_base']['getSnapshot']();return{'id':_0x209d19['id'],'name':_0x209d19[_0xa62fc1(0x292)],'tables':this[_0xa62fc1(0x18d)]()[_0xa62fc1(0x1ec)](_0x4cabdb=>_0x4cabdb[_0xa62fc1(0x28e)]())};}};Y=g([h(0x1,(0x0,l[_0x419bbe(0x2e8)])(l[_0x419bbe(0x213)])),h(0x2,l[_0x419bbe(0x324)]),h(0x3,l[_0x419bbe(0x1e1)]),h(0x4,l[_0x419bbe(0x1da)])],Y);var X=class extends u[_0x419bbe(0x1fe)]{[_0x419bbe(0x2d1)](){const _0x230568=_0x419bbe;this['_initBaseBeforeEvents'](),this[_0x230568(0x31a)]();}[_0x419bbe(0x18f)](_0x4b21b3={},_0x43ac3a){const _0x2d95e4=_0x419bbe;let _0x2692e4=this['_univerInstanceService']['createUnit'](l[_0x2d95e4(0x31c)][_0x2d95e4(0x1f0)],_0x4b21b3,_0x43ac3a);return this[_0x2d95e4(0x2d7)][_0x2d95e4(0x22a)](Y,_0x2692e4);}['getActiveBase'](){const _0x4d3a1f=_0x419bbe;let _0x4b1b30=this[_0x4d3a1f(0x21f)][_0x4d3a1f(0x309)](l[_0x4d3a1f(0x31c)][_0x4d3a1f(0x1f0)]);return _0x4b1b30?this[_0x4d3a1f(0x2d7)]['createInstance'](Y,_0x4b1b30):null;}[_0x419bbe(0x2a1)](_0x1ab5f8){const _0x1d17ac=_0x419bbe;let _0xa75508=this[_0x1d17ac(0x21f)][_0x1d17ac(0x28b)](_0x1ab5f8,l[_0x1d17ac(0x31c)]['UNIVER_BASE']);return _0xa75508?this[_0x1d17ac(0x2d7)][_0x1d17ac(0x22a)](Y,_0xa75508):null;}[_0x419bbe(0x268)](){const _0x10650f=_0x419bbe;return this['_univerInstanceService'][_0x10650f(0x19b)](l[_0x10650f(0x31c)]['UNIVER_BASE'])[_0x10650f(0x1ec)](_0x1a484d=>this[_0x10650f(0x2d7)][_0x10650f(0x22a)](Y,_0x1a484d));}[_0x419bbe(0x31a)](){const _0x1f4970=_0x419bbe;this['disposeWithMe'](this['registerEventHandler'](this[_0x1f4970(0x281)]['BaseHierarchyChanged'],()=>this[_0x1f4970(0x1d6)]['onCommandExecuted']((_0x10b8bc,_0x5a54d0)=>{const _0x2284bc=_0x1f4970;var _0x2a2479;if(!Z(_0x10b8bc,c[_0x2284bc(0x2ff)]))return;let _0x4b0620=_0x10b8bc[_0x2284bc(0x215)];if(!((_0x2a2479=_0x4b0620[_0x2284bc(0x1ff)])!=null&&_0x2a2479[_0x2284bc(0x2a6)]))return;let _0xeb44c8=this['getBase'](_0x4b0620[_0x2284bc(0x1e9)]),_0x4a376c=_0xeb44c8==null?void 0x0:_0xeb44c8[_0x2284bc(0x328)](_0x4b0620['hierarchyChanges'][0x0]['tableId']);if(!_0xeb44c8||!_0x4a376c)return;let _0x5188a8={'base':_0xeb44c8,'table':_0x4a376c,'changes':_0x4b0620[_0x2284bc(0x1ff)],'source':_0x5a54d0!=null&&_0x5a54d0['fromCollab']?c['BaseEventSource']['Remote']:_0x4b0620[_0x2284bc(0x2a8)]??c['BaseEventSource']['UI']};this[_0x2284bc(0x31b)](this[_0x2284bc(0x281)][_0x2284bc(0x2ab)],_0x5188a8);}))),this[_0x1f4970(0x2db)](this[_0x1f4970(0x1c1)](this['Event']['BaseTableCreated'],()=>this[_0x1f4970(0x1d6)][_0x1f4970(0x330)](_0x26b166=>{const _0x3aa69f=_0x1f4970;if(_0x26b166['id']!==c[_0x3aa69f(0x262)]['id'])return;let {unitId:_0x3f74ea,table:_0x3546e3,index:_0x1d5a90}=_0x26b166['params'],_0x1001c0=this[_0x3aa69f(0x2a1)](_0x3f74ea);if(!_0x1001c0)return;let _0x129b2d={'base':_0x1001c0,'table':_0x3546e3,'index':_0x1d5a90};this[_0x3aa69f(0x31b)](this[_0x3aa69f(0x281)][_0x3aa69f(0x303)],_0x129b2d);}))),this[_0x1f4970(0x2db)](this['registerEventHandler'](this[_0x1f4970(0x281)][_0x1f4970(0x2c1)],()=>this[_0x1f4970(0x1d6)][_0x1f4970(0x330)](_0x5cbe7a=>{const _0x2a1b90=_0x1f4970;if(_0x5cbe7a['id']!==c[_0x2a1b90(0x29a)]['id'])return;let {unitId:_0x2bb069,tableId:_0x13e182,field:_0x1b7af1,index:_0x3ee651,viewIndexes:_0x94490}=_0x5cbe7a[_0x2a1b90(0x215)],_0x8ef233=this[_0x2a1b90(0x2a1)](_0x2bb069);if(!_0x8ef233)return;let _0x69fe85=_0x8ef233['getTableById'](_0x13e182);if(!_0x69fe85)return;let _0x40ff9f={'base':_0x8ef233,'table':_0x69fe85,'field':_0x1b7af1,'index':_0x3ee651,'viewIndexes':_0x94490};this[_0x2a1b90(0x31b)](this[_0x2a1b90(0x281)]['BaseTableFieldCreated'],_0x40ff9f);}))),this[_0x1f4970(0x2db)](this['registerEventHandler'](this['Event'][_0x1f4970(0x1af)],()=>this[_0x1f4970(0x1d6)][_0x1f4970(0x330)](_0x26548b=>{const _0x15cfef=_0x1f4970;if(_0x26548b['id']!==c[_0x15cfef(0x17d)]['id']&&_0x26548b['id']!==c[_0x15cfef(0x2dc)]['id'])return;let _0x20d991=_0x26548b['params'],{unitId:_0x2856c0,tableId:_0x1bcbd3}=_0x20d991,_0x2e6636=_0x20d991[_0x15cfef(0x27f)]??[_0x20d991[_0x15cfef(0x2d3)]],_0x2ac67c=this[_0x15cfef(0x2a1)](_0x2856c0);if(!_0x2ac67c)return;let _0x440923=_0x2ac67c[_0x15cfef(0x328)](_0x1bcbd3);if(!_0x440923)return;let _0x185c68={'base':_0x2ac67c,'table':_0x440923,'records':_0x2e6636};this[_0x15cfef(0x31b)](this['Event'][_0x15cfef(0x1af)],_0x185c68);}))),this['disposeWithMe'](this[_0x1f4970(0x1c1)](this['Event'][_0x1f4970(0x1a0)],()=>this['_commandService'][_0x1f4970(0x330)](_0x2f19c4=>{const _0x16051d=_0x1f4970;if(_0x2f19c4['id']!==c[_0x16051d(0x221)]['id'])return;let {unitId:_0xadc211,tableId:_0x43de9b,view:_0xdba36b,index:_0x3c4126}=_0x2f19c4[_0x16051d(0x215)],_0x3166cb=this[_0x16051d(0x2a1)](_0xadc211);if(!_0x3166cb)return;let _0x39267=_0x3166cb[_0x16051d(0x328)](_0x43de9b);if(!_0x39267)return;let _0x23001b={'base':_0x3166cb,'table':_0x39267,'view':_0xdba36b,'index':_0x3c4126};this[_0x16051d(0x31b)](this[_0x16051d(0x281)][_0x16051d(0x1a0)],_0x23001b);}))),this[_0x1f4970(0x2db)](this[_0x1f4970(0x1c1)](this[_0x1f4970(0x281)][_0x1f4970(0x22b)],()=>this['_commandService'][_0x1f4970(0x330)](_0x3e7cc4=>{const _0x2722ac=_0x1f4970;if(_0x3e7cc4['id']!==c[_0x2722ac(0x294)]['id'])return;let {unitId:_0x285f2d,tableId:_0x59d62b,recordId:_0x314163,fieldId:_0x6f811f,value:_0x362b05}=_0x3e7cc4[_0x2722ac(0x215)],_0x9d1f12=this[_0x2722ac(0x2a1)](_0x285f2d);if(!_0x9d1f12)return;let _0x588f4e=_0x9d1f12[_0x2722ac(0x328)](_0x59d62b);if(!_0x588f4e)return;let _0x3aa1c6=_0x588f4e[_0x2722ac(0x30b)](_0x6f811f);if(!_0x3aa1c6)return;let _0x1f174a=_0x588f4e[_0x2722ac(0x228)](_0x314163);if(!_0x1f174a)return;let _0x7b69a6={'base':_0x9d1f12,'table':_0x588f4e,'field':_0x3aa1c6,'record':_0x1f174a,'value':_0x362b05};this['fireEvent'](this[_0x2722ac(0x281)][_0x2722ac(0x22b)],_0x7b69a6);})));}[_0x419bbe(0x236)](){const _0x3b1474=_0x419bbe;this[_0x3b1474(0x2db)](this[_0x3b1474(0x1c1)](this['Event']['BeforeBaseHierarchyChange'],()=>this['_commandService'][_0x3b1474(0x1b8)](_0x57840a=>{const _0x14716b=_0x3b1474;if(Z(_0x57840a,c[_0x14716b(0x2fe)])){let {unitId:_0x475dbb,tableId:_0x1ffeea,patches:_0x5102d9,source:_0x788768=c[_0x14716b(0x24d)]['UI']}=_0x57840a[_0x14716b(0x215)],_0x401a1d=this['_getHierarchyEventContext'](_0x475dbb,_0x1ffeea);if(!_0x401a1d)return;this[_0x14716b(0x1a5)](_0x401a1d[_0x14716b(0x1ce)],_0x401a1d[_0x14716b(0x229)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x401a1d[_0x14716b(0x229)][_0x14716b(0x246)](),_0x5102d9),_0x788768);return;}if(Z(_0x57840a,c['SetBaseRangeValuesCommand'])){let {unitId:_0x2db511,tableId:_0x44ff57,patches:_0x17b898,source:_0x119429=c[_0x14716b(0x24d)]['UI']}=_0x57840a['params'],_0x181d4e=this[_0x14716b(0x1d7)](_0x2db511,_0x44ff57);if(!_0x181d4e)return;let _0x164a6f=_0x181d4e[_0x14716b(0x229)][_0x14716b(0x246)]();this[_0x14716b(0x1a5)](_0x181d4e[_0x14716b(0x1ce)],_0x181d4e['table'],(0x0,c[_0x14716b(0x1a8)])(_0x164a6f,(0x0,c[_0x14716b(0x271)])(_0x164a6f,_0x17b898)),_0x119429);return;}if(Z(_0x57840a,c['CreateBaseRecordCommand'])){let _0x35bc10=_0x57840a[_0x14716b(0x215)],_0x4cad6f=this[_0x14716b(0x1d7)](_0x35bc10['unitId'],_0x35bc10[_0x14716b(0x2b8)]);if(!_0x4cad6f)return;this[_0x14716b(0x1a5)](_0x4cad6f[_0x14716b(0x1ce)],_0x4cad6f['table'],(0x0,c[_0x14716b(0x264)])(_0x4cad6f[_0x14716b(0x229)][_0x14716b(0x246)](),[_0x35bc10[_0x14716b(0x2d3)]]),_0x35bc10[_0x14716b(0x2a8)]??c[_0x14716b(0x24d)]['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x2dc)])){let _0x1275cc=_0x57840a['params'],_0x434441=this['_getHierarchyEventContext'](_0x1275cc[_0x14716b(0x1e9)],_0x1275cc['tableId']);if(!_0x434441)return;this[_0x14716b(0x1a5)](_0x434441[_0x14716b(0x1ce)],_0x434441[_0x14716b(0x229)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x434441[_0x14716b(0x229)][_0x14716b(0x246)](),_0x1275cc['records']),_0x1275cc[_0x14716b(0x2a8)]??c['BaseEventSource']['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x173)])){let _0x583f71=_0x57840a[_0x14716b(0x215)],_0x328756=this[_0x14716b(0x1d7)](_0x583f71[_0x14716b(0x1e9)],_0x583f71[_0x14716b(0x2b8)]);if(!_0x328756)return;this[_0x14716b(0x1a5)](_0x328756[_0x14716b(0x1ce)],_0x328756['table'],(0x0,c[_0x14716b(0x264)])(_0x328756['table'][_0x14716b(0x246)](),[_0x583f71[_0x14716b(0x2d3)]]),_0x583f71['source']??c[_0x14716b(0x24d)]['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x223)])){let _0x397a17=_0x57840a[_0x14716b(0x215)],_0x405a73=this['_getHierarchyEventContext'](_0x397a17['unitId'],_0x397a17['tableId']);if(!_0x405a73)return;let _0x519cac=_0x405a73['table'][_0x14716b(0x246)](),_0x4f3763=_0x397a17[_0x14716b(0x1de)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x519cac),_0x568de0=(0x0,c[_0x14716b(0x329)])(_0x519cac,_0x4f3763)['parentByRecordId']['get'](_0x397a17[_0x14716b(0x23b)])??null;this[_0x14716b(0x1a5)](_0x405a73['base'],_0x405a73[_0x14716b(0x229)],[{'tableId':_0x397a17[_0x14716b(0x2b8)],'fieldId':_0x4f3763,'recordId':_0x397a17[_0x14716b(0x23b)],'oldParentRecordId':_0x568de0,'parentRecordId':_0x397a17[_0x14716b(0x212)]}],_0x397a17[_0x14716b(0x2a8)]??c['BaseEventSource']['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x20c)])){let _0x5a1602=_0x57840a[_0x14716b(0x215)],_0x3630d0=this[_0x14716b(0x1d7)](_0x5a1602[_0x14716b(0x1e9)],_0x5a1602['tableId']);if(!_0x3630d0)return;let _0x4afac7=_0x5a1602[_0x14716b(0x1de)]??(0x0,c[_0x14716b(0x21b)])(_0x3630d0[_0x14716b(0x229)][_0x14716b(0x246)]());this[_0x14716b(0x1a5)](_0x3630d0[_0x14716b(0x1ce)],_0x3630d0[_0x14716b(0x229)],[{'tableId':_0x5a1602[_0x14716b(0x2b8)],'fieldId':_0x4afac7,'recordId':_0x5a1602['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x5a1602[_0x14716b(0x212)]}],_0x5a1602[_0x14716b(0x2a8)]??c['BaseEventSource']['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x1e5)])){let _0x530286=_0x57840a[_0x14716b(0x215)],_0xf431c4=this['_getHierarchyEventContext'](_0x530286['unitId'],_0x530286[_0x14716b(0x2b8)]);if(!_0xf431c4)return;this[_0x14716b(0x1a5)](_0xf431c4['base'],_0xf431c4[_0x14716b(0x229)],(0x0,c[_0x14716b(0x203)])(_0xf431c4[_0x14716b(0x229)][_0x14716b(0x246)](),[_0x530286[_0x14716b(0x23b)]]),_0x530286[_0x14716b(0x2a8)]??c[_0x14716b(0x24d)]['UI']);return;}if(Z(_0x57840a,c[_0x14716b(0x18e)])){let _0x468ea5=_0x57840a['params'],_0x1ff912=this[_0x14716b(0x1d7)](_0x468ea5['unitId'],_0x468ea5[_0x14716b(0x2b8)]);if(!_0x1ff912)return;this[_0x14716b(0x1a5)](_0x1ff912[_0x14716b(0x1ce)],_0x1ff912[_0x14716b(0x229)],(0x0,c[_0x14716b(0x203)])(_0x1ff912['table'][_0x14716b(0x246)](),_0x468ea5[_0x14716b(0x17b)]),_0x468ea5[_0x14716b(0x2a8)]??c[_0x14716b(0x24d)]['UI']);return;}if(!Z(_0x57840a,c['UpdateBaseCellCommand']))return;let _0x171b3c=_0x57840a[_0x14716b(0x215)],_0x1fd75b=this['_getHierarchyEventContext'](_0x171b3c[_0x14716b(0x1e9)],_0x171b3c['tableId']);if(!_0x1fd75b)return;let _0x358287=_0x1fd75b[_0x14716b(0x229)][_0x14716b(0x246)]();if(!(0x0,c[_0x14716b(0x304)])(_0x358287)['includes'](_0x171b3c['fieldId']))return;let _0x5e798a=(0x0,c[_0x14716b(0x329)])(_0x358287,_0x171b3c['fieldId'])[_0x14716b(0x2fc)][_0x14716b(0x1bc)](_0x171b3c['recordId'])??null,_0x14c263=(0x0,c[_0x14716b(0x313)])(_0x171b3c['value'])[0x0]??null;_0x5e798a!==_0x14c263&&this[_0x14716b(0x1a5)](_0x1fd75b['base'],_0x1fd75b['table'],[{'tableId':_0x171b3c[_0x14716b(0x2b8)],'fieldId':_0x171b3c[_0x14716b(0x1de)],'recordId':_0x171b3c[_0x14716b(0x23b)],'oldParentRecordId':_0x5e798a,'parentRecordId':_0x14c263}],_0x171b3c[_0x14716b(0x2a8)]??c[_0x14716b(0x24d)]['UI']);}))),this[_0x3b1474(0x2db)](this['registerEventHandler'](this[_0x3b1474(0x281)][_0x3b1474(0x284)],()=>this[_0x3b1474(0x1d6)][_0x3b1474(0x1b8)](_0x58af37=>{const _0x27ef87=_0x3b1474;if(_0x58af37['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0x39aef9,table:_0x413f45,index:_0x75faaa}=_0x58af37[_0x27ef87(0x215)],_0x1d8724=this['getBase'](_0x39aef9);if(!_0x1d8724)return;let _0x4db8d5={'base':_0x1d8724,'table':_0x413f45,'index':_0x75faaa};if(this[_0x27ef87(0x31b)](this[_0x27ef87(0x281)][_0x27ef87(0x284)],_0x4db8d5),_0x4db8d5[_0x27ef87(0x230)])throw new l[(_0x27ef87(0x1ea))]();}))),this['disposeWithMe'](this[_0x3b1474(0x1c1)](this[_0x3b1474(0x281)][_0x3b1474(0x1c3)],()=>this[_0x3b1474(0x1d6)]['beforeCommandExecuted'](_0x5d39df=>{const _0x231d2c=_0x3b1474;if(_0x5d39df['id']!==c['CreateBaseFieldCommand']['id'])return;let {unitId:_0x585ad7,tableId:_0x2715a1,field:_0x375880,index:_0x449d18,viewIndexes:_0x553e2e}=_0x5d39df[_0x231d2c(0x215)],_0xdf612d=this[_0x231d2c(0x2a1)](_0x585ad7);if(!_0xdf612d)return;let _0x3014d3=_0xdf612d[_0x231d2c(0x328)](_0x2715a1);if(!_0x3014d3)return;let _0x10c502={'base':_0xdf612d,'table':_0x3014d3,'field':_0x375880,'index':_0x449d18,'viewIndexes':_0x553e2e};if(this[_0x231d2c(0x31b)](this[_0x231d2c(0x281)][_0x231d2c(0x1c3)],_0x10c502),_0x10c502['cancel'])throw new l['CanceledError']();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x3b1474(0x281)][_0x3b1474(0x2c3)],()=>this[_0x3b1474(0x1d6)][_0x3b1474(0x1b8)](_0x22ed04=>{const _0x5223b5=_0x3b1474;if(_0x22ed04['id']!==c[_0x5223b5(0x17d)]['id']&&_0x22ed04['id']!==c[_0x5223b5(0x2dc)]['id'])return;let _0x19db5b=_0x22ed04[_0x5223b5(0x215)],{unitId:_0x13f096,tableId:_0x11bf69}=_0x19db5b,_0x624075=_0x19db5b[_0x5223b5(0x27f)]??[_0x19db5b['record']],_0x5309f2=this[_0x5223b5(0x2a1)](_0x13f096);if(!_0x5309f2)return;let _0x1bdcda=_0x5309f2[_0x5223b5(0x328)](_0x11bf69);if(!_0x1bdcda)return;let _0x2f1409={'base':_0x5309f2,'table':_0x1bdcda,'records':_0x624075};if(this[_0x5223b5(0x31b)](this[_0x5223b5(0x281)][_0x5223b5(0x2c3)],_0x2f1409),_0x2f1409[_0x5223b5(0x230)])throw new l[(_0x5223b5(0x1ea))]();}))),this[_0x3b1474(0x2db)](this['registerEventHandler'](this['Event'][_0x3b1474(0x317)],()=>this['_commandService'][_0x3b1474(0x1b8)](_0x59ea6c=>{const _0x596ed3=_0x3b1474;if(_0x59ea6c['id']!==c[_0x596ed3(0x221)]['id'])return;let {unitId:_0x5cfbcb,tableId:_0x50e8aa,view:_0x5581e3,index:_0x3ae153}=_0x59ea6c[_0x596ed3(0x215)],_0x11c11d=this['getBase'](_0x5cfbcb);if(!_0x11c11d)return;let _0x9edd81=_0x11c11d[_0x596ed3(0x328)](_0x50e8aa);if(!_0x9edd81)return;let _0x4e1a46={'base':_0x11c11d,'table':_0x9edd81,'view':_0x5581e3,'index':_0x3ae153};if(this['fireEvent'](this['Event'][_0x596ed3(0x317)],_0x4e1a46),_0x4e1a46[_0x596ed3(0x230)])throw new l[(_0x596ed3(0x1ea))]();}))),this[_0x3b1474(0x2db)](this[_0x3b1474(0x1c1)](this[_0x3b1474(0x281)][_0x3b1474(0x239)],()=>this[_0x3b1474(0x1d6)]['beforeCommandExecuted'](_0x2e11da=>{const _0x261922=_0x3b1474;if(_0x2e11da['id']!==c[_0x261922(0x294)]['id'])return;let {unitId:_0x18ab7e,tableId:_0x1b6bec,recordId:_0x2b2021,fieldId:_0x35d2d7,value:_0x3be343}=_0x2e11da[_0x261922(0x215)],_0x12bce2=this[_0x261922(0x2a1)](_0x18ab7e);if(!_0x12bce2)return;let _0x4c6704=_0x12bce2[_0x261922(0x328)](_0x1b6bec);if(!_0x4c6704)return;let _0x11805f=_0x4c6704[_0x261922(0x30b)](_0x35d2d7);if(!_0x11805f)return;let _0x53a67d=_0x4c6704[_0x261922(0x228)](_0x2b2021);if(!_0x53a67d)return;let _0xa1a8eb={'base':_0x12bce2,'table':_0x4c6704,'field':_0x11805f,'record':_0x53a67d,'value':_0x3be343};if(this[_0x261922(0x31b)](this['Event'][_0x261922(0x239)],_0xa1a8eb),_0xa1a8eb['cancel'])throw new l[(_0x261922(0x1ea))]();})));}[_0x419bbe(0x1d7)](_0x211617,_0x571594){const _0x221e55=_0x419bbe;let _0x4a4ee8=this[_0x221e55(0x2a1)](_0x211617),_0x4a4891=_0x4a4ee8==null?void 0x0:_0x4a4ee8['getTableById'](_0x571594);return _0x4a4ee8&&_0x4a4891?{'base':_0x4a4ee8,'table':_0x4a4891}:null;}[_0x419bbe(0x1a5)](_0x462438,_0x471b00,_0x31236d,_0x1e10d3){const _0x157d80=_0x419bbe;if(!_0x31236d[_0x157d80(0x2a6)])return;let _0x4c3c6f={'base':_0x462438,'table':_0x471b00,'changes':_0x31236d,'source':_0x1e10d3};if(this[_0x157d80(0x31b)](this[_0x157d80(0x281)][_0x157d80(0x195)],_0x4c3c6f),_0x4c3c6f['cancel'])throw new l[(_0x157d80(0x1ea))]();}};function Z(_0x4ad689,_0x58a40b){const _0x1d55a0=_0x419bbe;return _0x4ad689['id']===_0x58a40b['id']&&_0x4ad689[_0x1d55a0(0x215)]!==void 0x0;}u['FUniver'][_0x419bbe(0x222)](X);var Q=class extends u[_0x419bbe(0x1e2)]{get['BaseFieldType'](){const _0x29cd23=_0x419bbe;return l[_0x29cd23(0x307)];}get['BaseFilterConjunction'](){const _0x1cb5ac=_0x419bbe;return l[_0x1cb5ac(0x2f1)];}get[_0x419bbe(0x257)](){const _0x227857=_0x419bbe;return l[_0x227857(0x257)];}get[_0x419bbe(0x2e4)](){return v;}get[_0x419bbe(0x17f)](){const _0x56c365=_0x419bbe;return l[_0x56c365(0x17f)];}get['BaseConditionalColorTarget'](){return l['BaseConditionalColorTarget'];}get[_0x419bbe(0x2d9)](){const _0x297d0a=_0x419bbe;return l[_0x297d0a(0x2d9)];}get[_0x419bbe(0x21c)](){const _0x231481=_0x419bbe;return l[_0x231481(0x21c)];}get[_0x419bbe(0x235)](){const _0x485857=_0x419bbe;return l[_0x485857(0x235)];}get[_0x419bbe(0x24d)](){const _0x71d062=_0x419bbe;return c[_0x71d062(0x24d)];}get[_0x419bbe(0x220)](){const _0x50a30b=_0x419bbe;return c[_0x50a30b(0x220)];}get[_0x419bbe(0x1c0)](){const _0x55a0f4=_0x419bbe;return l[_0x55a0f4(0x1c0)];}get[_0x419bbe(0x28d)](){return l['BaseRecordLinkRole'];}};u[_0x419bbe(0x1e2)][_0x419bbe(0x222)](Q);var $=class extends u[_0x419bbe(0x2be)]{get[_0x419bbe(0x303)](){return'BaseTableCreated';}get[_0x419bbe(0x284)](){const _0x30dff2=_0x419bbe;return _0x30dff2(0x284);}get['BaseTableFieldCreated'](){const _0x5f40e4=_0x419bbe;return _0x5f40e4(0x2c1);}get[_0x419bbe(0x1c3)](){return'BeforeBaseTableFieldCreate';}get[_0x419bbe(0x1af)](){const _0x552585=_0x419bbe;return _0x552585(0x1af);}get[_0x419bbe(0x2c3)](){const _0x91ed69=_0x419bbe;return _0x91ed69(0x2c3);}get[_0x419bbe(0x1a0)](){return'BaseTableViewCreated';}get[_0x419bbe(0x317)](){return'BeforeBaseTableViewCreate';}get[_0x419bbe(0x22b)](){return'BaseTableCellValueChanged';}get[_0x419bbe(0x239)](){const _0x36788a=_0x419bbe;return _0x36788a(0x239);}get['BaseHierarchyChanged'](){return'BaseHierarchyChanged';}get[_0x419bbe(0x195)](){const _0x2bbfa3=_0x419bbe;return _0x2bbfa3(0x195);}};u[_0x419bbe(0x2be)]['extend']($),exports[_0x419bbe(0x2e4)]=v,Object[_0x419bbe(0x1f8)](exports,'FBase',{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x419bbe(0x234)]=m,exports[_0x419bbe(0x214)]=p,Object[_0x419bbe(0x1f8)](exports,_0x419bbe(0x323),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x419bbe(0x1f8)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x419bbe(0x1f8)](exports,_0x419bbe(0x26e),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x419bbe(0x1f8)](exports,_0x419bbe(0x21a),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x419bbe(0x209),{'enumerable':!0x0,'get':function(){return z;}}),exports['FBasesEventNameMixin']=$,exports[_0x419bbe(0x31f)]=S,exports[_0x419bbe(0x26d)]=b;
|