@univerjs-pro/bases 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/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 _0x2481ff=_0x31f5;(function(_0x2b0c3f,_0x2ed3ac){const _0x296636=_0x31f5,_0x154543=_0x2b0c3f();while(!![]){try{const _0x3b5402=-parseInt(_0x296636(0x143))/0x1*(parseInt(_0x296636(0x161))/0x2)+parseInt(_0x296636(0x1a2))/0x3*(-parseInt(_0x296636(0x285))/0x4)+-parseInt(_0x296636(0x181))/0x5*(parseInt(_0x296636(0x177))/0x6)+parseInt(_0x296636(0x1bd))/0x7*(parseInt(_0x296636(0x186))/0x8)+-parseInt(_0x296636(0x243))/0x9*(-parseInt(_0x296636(0x170))/0xa)+-parseInt(_0x296636(0x1b3))/0xb+parseInt(_0x296636(0x121))/0xc*(parseInt(_0x296636(0x1f6))/0xd);if(_0x3b5402===_0x2ed3ac)break;else _0x154543['push'](_0x154543['shift']());}catch(_0x3ef39c){_0x154543['push'](_0x154543['shift']());}}}(_0x9181,0xcacf7),Object[_0x2481ff(0x2c1)](exports,Symbol[_0x2481ff(0x197)],{'value':_0x2481ff(0x22f)}));var e=Object[_0x2481ff(0x112)],t=Object['defineProperty'],n=Object[_0x2481ff(0x15e)],r=Object['getOwnPropertyNames'],i=Object[_0x2481ff(0x282)],a=Object[_0x2481ff(0x286)][_0x2481ff(0x294)],o=(_0x917e8,_0x4b8561,_0x25b768,_0x58c9b9)=>{const _0x468aef=_0x2481ff;if(_0x4b8561&&typeof _0x4b8561==_0x468aef(0x137)||typeof _0x4b8561==_0x468aef(0x134)){for(var _0x469725=r(_0x4b8561),_0x1c04d1=0x0,_0x3c5341=_0x469725[_0x468aef(0x256)],_0x8631e;_0x1c04d1<_0x3c5341;_0x1c04d1++)_0x8631e=_0x469725[_0x1c04d1],!a[_0x468aef(0x238)](_0x917e8,_0x8631e)&&_0x8631e!==_0x25b768&&t(_0x917e8,_0x8631e,{'get':(_0x4781a7=>_0x4b8561[_0x4781a7])[_0x468aef(0x2be)](null,_0x8631e),'enumerable':!(_0x58c9b9=n(_0x4b8561,_0x8631e))||_0x58c9b9[_0x468aef(0x29c)]});}return _0x917e8;},s=(_0xb45b84,_0x270479,_0x1897dc)=>(_0x1897dc=_0xb45b84==null?{}:e(i(_0xb45b84)),o(_0x270479||!_0xb45b84||!_0xb45b84['__esModule']||!a[_0x2481ff(0x238)](_0xb45b84,_0x2481ff(0x2bf))?t(_0x1897dc,_0x2481ff(0x2bf),{'value':_0xb45b84,'enumerable':!0x0}):_0x1897dc,_0xb45b84));function _0x31f5(_0x4706f0,_0x5ae1bd){_0x4706f0=_0x4706f0-0x10c;const _0x91813=_0x9181();let _0x31f5b2=_0x91813[_0x4706f0];return _0x31f5b2;}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(_0x3e6eb4,_0x305cf8,_0x337804){const _0x425b15=_0x2481ff;this[_0x425b15(0x188)]=_0x3e6eb4,this['_commandService']=_0x305cf8,this[_0x425b15(0x267)]=_0x337804;}async[_0x2481ff(0x251)](_0x560820){const _0x3a39a5=_0x2481ff;return this[_0x3a39a5(0x13e)][_0x3a39a5(0x199)](c[_0x3a39a5(0x2a8)]['id'],{'unitId':this['_unitId'],'changes':_0x560820});}async['setPoint'](_0x14cc65,_0x33987d){const _0x55633e=_0x2481ff;await this[_0x55633e(0x13e)]['executeCommand'](c[_0x55633e(0x17b)]['id'],{'unitId':this[_0x55633e(0x188)],'objectId':this[_0x55633e(0x188)],'action':_0x14cc65,'value':_0x33987d});}[_0x2481ff(0x296)](_0xecc8b8){const _0xc5640=_0x2481ff;return(0x0,c[_0xc5640(0x19f)])(this[_0xc5640(0x267)],this['_unitId'],this[_0xc5640(0x188)],_0xecc8b8);}async['setEditable'](_0x4488d2=!0x0){const _0x3cd654=_0x2481ff;await this['_commandService'][_0x3cd654(0x199)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x3cd654(0x188)],'objectId':this[_0x3cd654(0x188)],'action':d[_0x3cd654(0x17d)][_0x3cd654(0x24b)],'value':_0x4488d2});}async['setReadOnly'](){const _0x854b20=_0x2481ff;await this[_0x854b20(0x13e)][_0x854b20(0x199)](c[_0x854b20(0x17b)]['id'],{'unitId':this[_0x854b20(0x188)],'objectId':this[_0x854b20(0x188)],'action':d[_0x854b20(0x17d)][_0x854b20(0x24b)],'value':!0x1});}[_0x2481ff(0x1d6)](){const _0x1c2f79=_0x2481ff;return(0x0,c[_0x1c2f79(0x19f)])(this[_0x1c2f79(0x267)],this[_0x1c2f79(0x188)],this[_0x1c2f79(0x188)],d['UnitAction'][_0x1c2f79(0x24b)]);}},m=class{constructor(_0x9a08e8,_0x553492,_0x542939,_0x3f441c,_0x39de51){const _0x201ac2=_0x2481ff;this[_0x201ac2(0x188)]=_0x9a08e8,this[_0x201ac2(0x1ba)]=_0x553492,this[_0x201ac2(0x1f7)]=_0x542939,this[_0x201ac2(0x13e)]=_0x3f441c,this[_0x201ac2(0x267)]=_0x39de51;}async[_0x2481ff(0x162)](_0x3e3fc3=!0x0){const _0x44285b=_0x2481ff;await this['_commandService'][_0x44285b(0x199)](c['SetBasePermissionCommand']['id'],{'unitId':this['_unitId'],'objectId':this[_0x44285b(0x1ba)],'action':d['UnitAction']['Edit'],'value':_0x3e3fc3});}async[_0x2481ff(0x274)](){const _0x2afa42=_0x2481ff;await this[_0x2afa42(0x13e)]['executeCommand'](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x2afa42(0x188)],'objectId':this[_0x2afa42(0x1ba)],'action':d[_0x2afa42(0x17d)]['Edit'],'value':!0x1});}['canEdit'](){const _0x254fdc=_0x2481ff;return(0x0,c['canEditBaseTargets'])(this[_0x254fdc(0x267)],this[_0x254fdc(0x188)],[...this[_0x254fdc(0x1f7)],this[_0x254fdc(0x1ba)]]);}};function h(_0xa3a360,_0x96b448){return function(_0x18d187,_0x48ef08){_0x96b448(_0x18d187,_0x48ef08,_0xa3a360);};}function g(_0x5417c0,_0x23587c,_0x2e50e8,_0x34808b){const _0x3ca00f=_0x2481ff;var _0x29fa47=arguments[_0x3ca00f(0x256)],_0x450431=_0x29fa47<0x3?_0x23587c:_0x34808b===null?_0x34808b=Object[_0x3ca00f(0x15e)](_0x23587c,_0x2e50e8):_0x34808b,_0x47123c;if(typeof Reflect==_0x3ca00f(0x137)&&typeof Reflect['decorate']==_0x3ca00f(0x134))_0x450431=Reflect[_0x3ca00f(0x227)](_0x5417c0,_0x23587c,_0x2e50e8,_0x34808b);else{for(var _0x919d4c=_0x5417c0[_0x3ca00f(0x256)]-0x1;_0x919d4c>=0x0;_0x919d4c--)(_0x47123c=_0x5417c0[_0x919d4c])&&(_0x450431=(_0x29fa47<0x3?_0x47123c(_0x450431):_0x29fa47>0x3?_0x47123c(_0x23587c,_0x2e50e8,_0x450431):_0x47123c(_0x23587c,_0x2e50e8))||_0x450431);}return _0x29fa47>0x3&&_0x450431&&Object[_0x3ca00f(0x2c1)](_0x23587c,_0x2e50e8,_0x450431),_0x450431;}let _=class{constructor(_0x9b3ddc,_0x173ee8,_0x4c32b7,_0x5cebc6,_0x212f0a){const _0xe0ed0=_0x2481ff;this[_0xe0ed0(0x217)]=_0x9b3ddc,this['_table']=_0x173ee8,this['_fieldId']=_0x4c32b7,this[_0xe0ed0(0x13e)]=_0x5cebc6,this[_0xe0ed0(0x267)]=_0x212f0a;}[_0x2481ff(0x178)](){return this['_fieldId'];}[_0x2481ff(0x1f1)](){const _0x3b6416=_0x2481ff;let _0x8af938=this[_0x3b6416(0x1c0)][_0x3b6416(0x178)]();return new m(this['_base'][_0x3b6416(0x178)](),(0x0,c[_0x3b6416(0x221)])(_0x8af938,this[_0x3b6416(0x17e)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x8af938)],this[_0x3b6416(0x13e)],this[_0x3b6416(0x267)]);}[_0x2481ff(0x230)](){return this['_getField']();}[_0x2481ff(0x120)](){const _0x4bc7fb=_0x2481ff;return this[_0x4bc7fb(0x1f8)]()[_0x4bc7fb(0x22c)];}['getType'](){const _0x1b50cb=_0x2481ff;return this[_0x1b50cb(0x1f8)]()[_0x1b50cb(0x18e)];}[_0x2481ff(0x196)](){const _0x5a4d16=_0x2481ff;return this[_0x5a4d16(0x1f8)]()['config'];}[_0x2481ff(0x23d)](){const _0x5cb525=_0x2481ff;return this[_0x5cb525(0x1f8)]()[_0x5cb525(0x265)];}['getDescription'](){const _0x16b449=_0x2481ff;return this['_getField']()[_0x16b449(0x222)];}[_0x2481ff(0x25d)](){const _0x19a0da=_0x2481ff;return!!this[_0x19a0da(0x1f8)]()['readonly'];}[_0x2481ff(0x22d)](_0xb0580d){const _0x196559=_0x2481ff;return this[_0x196559(0x119)]({'name':_0xb0580d});}['setConfig'](_0x2c279,_0x2d1264){const _0xde9f50=_0x2481ff;return this[_0xde9f50(0x119)]({'config':_0x2c279},_0x2d1264);}[_0x2481ff(0x2c2)](_0x33887d){const _0x48757e=_0x2481ff;return this[_0x48757e(0x119)]({'defaultValue':_0x33887d});}[_0x2481ff(0x119)](_0x3468af,_0x4416c7){const _0x1ebf41=_0x2481ff;let _0x8d4617=this[_0x1ebf41(0x1f8)]()[_0x1ebf41(0x18e)];return(_0x3468af['type']??_0x8d4617)===l['BaseFieldType']['Formula']&&(Object[_0x1ebf41(0x286)][_0x1ebf41(0x294)][_0x1ebf41(0x238)](_0x3468af,_0x1ebf41(0x147))||_0x3468af['type']===l[_0x1ebf41(0x272)][_0x1ebf41(0x19e)])&&!this['_writeFormulaExternalReferences'](_0x4416c7)?!0x1:this[_0x1ebf41(0x13e)][_0x1ebf41(0x13f)](c['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x1ebf41(0x217)][_0x1ebf41(0x178)](),'tableId':this[_0x1ebf41(0x1c0)][_0x1ebf41(0x178)](),'fieldId':this['_fieldId'],'patch':_0x3468af});}[_0x2481ff(0x1e8)](_0x5b8307,_0x39e4ac={},_0x1643a5){const _0x4a35ae=_0x2481ff;return _0x5b8307===l['BaseFieldType']['Formula']&&!this[_0x4a35ae(0x1c2)](_0x1643a5)?!0x1:this['_commandService']['syncExecuteCommand'](c[_0x4a35ae(0x1db)]['id'],{'unitId':this[_0x4a35ae(0x217)]['getId'](),'tableId':this[_0x4a35ae(0x1c0)]['getId'](),'fieldId':this[_0x4a35ae(0x17e)],'input':{'type':_0x5b8307,'config':_0x39e4ac}});}[_0x2481ff(0x1d0)](){const _0x8ee3d0=_0x2481ff;return this[_0x8ee3d0(0x13e)]['syncExecuteCommand'](c[_0x8ee3d0(0x23b)]['id'],{'unitId':this[_0x8ee3d0(0x217)][_0x8ee3d0(0x178)](),'tableId':this[_0x8ee3d0(0x1c0)][_0x8ee3d0(0x178)](),'fieldId':this[_0x8ee3d0(0x17e)]});}[_0x2481ff(0x11d)](_0x1ba520){const _0x4f31ae=_0x2481ff;return this[_0x4f31ae(0x13e)]['syncExecuteCommand'](c['MoveBaseFieldCommand']['id'],{'unitId':this[_0x4f31ae(0x217)][_0x4f31ae(0x178)](),'tableId':this[_0x4f31ae(0x1c0)][_0x4f31ae(0x178)](),'fieldId':this[_0x4f31ae(0x17e)],'target':_0x1ba520});}[_0x2481ff(0x1f8)](){const _0x33f2e8=_0x2481ff;let _0x2793dd=this[_0x33f2e8(0x1c0)]['getTable']()[_0x33f2e8(0x214)][this[_0x33f2e8(0x17e)]];if(!_0x2793dd)throw Error(_0x33f2e8(0x1ca)+this[_0x33f2e8(0x17e)]+_0x33f2e8(0x21f));return _0x2793dd;}[_0x2481ff(0x1c2)](_0x4cd16f){const _0x2288af=_0x2481ff;if(!_0x4cd16f||!Array[_0x2288af(0x1a4)](_0x4cd16f[_0x2288af(0x1c7)]))return console[_0x2288af(0x142)](_0x2288af(0x11f)),!0x1;if(_0x4cd16f[_0x2288af(0x1c7)][_0x2288af(0x256)]===0x0)return!0x0;let _0x165029=this[_0x2288af(0x13e)][_0x2288af(0x13f)](f['UpsertHostExternalReferencesCommand']['id'],{'unitId':this[_0x2288af(0x217)]['getId'](),'references':_0x4cd16f[_0x2288af(0x1c7)]});return _0x165029||console[_0x2288af(0x142)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x165029;}};_=g([h(0x3,l['ICommandService']),h(0x4,l[_0x2481ff(0x17f)])],_);let v=function(_0xf067bf){const _0x56127a=_0x2481ff;return _0xf067bf['Id']='id',_0xf067bf['Name']='name',_0xf067bf[_0x56127a(0x124)]='auto',_0xf067bf;}({});function y(_0x5c5a39){const _0x5bd8fb=_0x2481ff;return!!(_0x5c5a39&&_0x5c5a39[_0x5bd8fb(0x235)]!==!0x0&&_0x5c5a39[_0x5bd8fb(0x18e)]!==l[_0x5bd8fb(0x272)][_0x5bd8fb(0x2ae)]);}function b(_0x2a545b,_0x3e2295,_0x411d1c='id'){const _0x384030=_0x2481ff;if(!_0x3e2295)return{};let _0x31a4e3={};return Object[_0x384030(0x1d7)](_0x3e2295)[_0x384030(0x24f)](([_0x3f32b2,_0x39d56f])=>{const _0x10f58c=_0x384030;let _0x5dedf9=S(_0x2a545b,_0x3f32b2,_0x411d1c);_0x31a4e3[_0x5dedf9]=x(_0x2a545b[_0x10f58c(0x214)][_0x5dedf9],_0x39d56f);}),_0x31a4e3;}function x(_0x58d6e7,_0x3d5e66){const _0x26863d=_0x2481ff;if((_0x58d6e7==null?void 0x0:_0x58d6e7[_0x26863d(0x18e)])!==l['BaseFieldType'][_0x26863d(0x116)]||_0x3d5e66==null)return _0x3d5e66;if(!Array[_0x26863d(0x1a4)](_0x3d5e66))throw TypeError(_0x26863d(0x2b2)+_0x58d6e7['name']+_0x26863d(0x297));return _0x3d5e66[_0x26863d(0x21d)]((_0x4eccc3,_0x2d2ca7)=>C(_0x58d6e7,_0x4eccc3,_0x2d2ca7));}function S(_0x32f653,_0x329c60,_0x5d0bbd){const _0x2b9ab2=_0x2481ff;if(_0x5d0bbd==='id'||_0x5d0bbd==='auto'&&_0x32f653[_0x2b9ab2(0x214)][_0x329c60])return _0x329c60;let _0x431bf8=Object[_0x2b9ab2(0x11e)](_0x32f653[_0x2b9ab2(0x214)])[_0x2b9ab2(0x1b1)](_0x3c311e=>_0x3c311e[_0x2b9ab2(0x22c)]===_0x329c60);if(_0x431bf8[_0x2b9ab2(0x256)]===0x1)return _0x431bf8[0x0]['id'];throw _0x431bf8['length']>0x1?Error(_0x2b9ab2(0x1cd)+_0x329c60):Error(_0x2b9ab2(0x19b)+_0x329c60);}function C(_0x2f32d0,_0x314c8f,_0x3dedc1){const _0x2073d6=_0x2481ff;let _0x5c6856=_0x2073d6(0x1c8)+_0x3dedc1+_0x2073d6(0x139)+_0x2f32d0[_0x2073d6(0x22c)]+'\x22';if(!O(_0x314c8f))throw TypeError(_0x5c6856+_0x2073d6(0x273));if(_0x2073d6(0x212)in _0x314c8f)throw TypeError(_0x5c6856+_0x2073d6(0x2c0));if(_0x2073d6(0x18e)in _0x314c8f)throw TypeError(_0x5c6856+_0x2073d6(0x224));let _0x5ab912=T(_0x314c8f['id'],_0x5c6856,'id'),_0x4a22ca=T(_0x314c8f[_0x2073d6(0x22c)],_0x5c6856,_0x2073d6(0x22c)),_0x188b0d=T(_0x314c8f[_0x2073d6(0x2b0)],_0x5c6856,'source');return{'id':_0x5ab912,'name':_0x4a22ca,'source':_0x188b0d,'sourceType':w(_0x314c8f[_0x2073d6(0x122)],_0x188b0d,_0x5c6856),...E(_0x314c8f,_0x2073d6(0x17c),_0x5c6856),...D(_0x314c8f,_0x2073d6(0x225),_0x5c6856),...D(_0x314c8f,_0x2073d6(0x152),_0x5c6856),...D(_0x314c8f,'height',_0x5c6856),...E(_0x314c8f,_0x2073d6(0x110),_0x5c6856)};}function w(_0x1c117a,_0xd11a0c,_0x3abf4b){const _0x520b7d=_0x2481ff;if(_0x1c117a==null)return _0xd11a0c['startsWith']('data:')?l['ImageSourceType'][_0x520b7d(0x1aa)]:l[_0x520b7d(0x115)][_0x520b7d(0x1fc)];if(_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x1fc)]||_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x12d)]||_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x1aa)])return _0x1c117a;throw TypeError(_0x3abf4b+_0x520b7d(0x14b));}function T(_0x3147eb,_0x4f2dc4,_0x21526c){const _0x126144=_0x2481ff;if(typeof _0x3147eb!='string'||!_0x3147eb[_0x126144(0x2b6)]())throw TypeError(_0x4f2dc4+_0x126144(0x1ce)+_0x21526c+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x3147eb;}function E(_0x4ab24f,_0x550d84,_0x1a06a2){const _0x133f67=_0x2481ff;let _0x378df4=_0x4ab24f[_0x550d84];if(_0x378df4==null)return{};if(typeof _0x378df4!=_0x133f67(0x20e)||!_0x378df4[_0x133f67(0x2b6)]())throw TypeError(_0x1a06a2+_0x133f67(0x1ce)+_0x550d84+_0x133f67(0x1ae));return{[_0x550d84]:_0x378df4};}function _0x9181(){const _0x5f118a=['Attachment','UNIVER_BASE','limit','update','BaseFieldKeyEnum','includeRecords','getLinkedRecordIds','move','values','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getName','732HGVFDb','sourceType','setFieldWidth','Auto','Add','addRecord','Gallery','rowId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','setValues','setOrderKey','setParent','UUID','BaseTableCellValueChanged','view','extend','_getAttachmentField','invalid','RenameBaseTableCommand','function','parentRecordId','FUniver','object','MoveBaseHierarchyRecordCommand','\x20for\x20field\x20\x22','_univerInstanceService','addLinkedRecord','recordOrder','Date','_commandService','syncExecuteCommand','BaseRecordLinkRole','toPrimitive','warn','2pUtCap','\x22\x20is\x20not\x20an\x20Attachment\x20field.','getValues','\x20exceeds\x20range\x20size\x20','config','BatchCreateBaseRecordsCommand','BeforeBaseTableCellValueChange','getChildren',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','_tableId','number','BaseTableRecordCreated','tableId','getFields','records','width','resolveBaseHierarchyFieldId','removeLinkedRecord','BaseConditionalColorOperator','getAllUnitsForType','fromCollab','[FRecord]:\x20RecordLink\x20field\x20\x22','UpdateBaseCellCommand',',\x20max\x20columns:\x20','getFieldByName','_injector','createUniqueBaseTableName','getOwnPropertyDescriptor','operator','getBaseFormulaTableName','538036FioXpM','setEditable','queryRecords','includes','CanceledError','getAttachments','fieldOrder','MoveBaseViewCommand','endRow','flatMap','get','conditionalColoring','resolveBaseRangeHierarchyPatches','fireEvent','saveUnit','804750LVYFlH','getFormulaName','indexOf','moveField','Clear','BaseViewType','getBase','13398uisXww','getId','BaseTableCreated','validateBaseTableName','SetBasePermissionCommand','mimeType','UnitAction','_fieldId','IPermissionService','deleteAttachments','1120vAGYmw','getActiveBaseHierarchyFieldIds','addField','_resolveRecordIds','notMatches','48zVlhbl','createInstance','_unitId','getBases','_getRecordLinkField','deleteProperty','getRecordById','getBaseTablePermissionObjectId','type','deleteTable','has','\x20Copy','deepClone','startRow','offset','fieldId','getConfig','toStringTag','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','executeCommand','FBaseInitialable','Base\x20field\x20not\x20found:\x20','fieldSettings','setAttachments','Formula','getBasePermissionValue','_assertInBounds','validateBaseHierarchyRecordPatches','84WgYOkZ','field','isArray','_initBaseAfterEvents','slice','DESC','CreateBaseRecordCommand','Inject','BASE64','ensureBaseTableCellLayout','SetBaseViewSortCommand','SetBaseViewFilterCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','addRecords','_resourceLoaderService','filter','[FRecord]:\x20record\x20\x22','3013450FdYTBM','createBase','fromEntries','primaryFieldId','record','orderKey','getSnapshot','_objectId','getActiveBase','[FView]:\x20view\x20\x22','731311ImiDDr','BASE_TABLE_NAME_REQUIREMENTS','_baseUnitId','_table','BaseFilterOperator','_writeFormulaExternalReferences','getBaseViewPermissionObjectId','startColumn','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','[FBase]:\x20table\x20\x22','externalReferences','Invalid\x20attachment\x20at\x20index\x20','endColumn','[FField]:\x20field\x20\x22','_getTable','RecordLink','Duplicate\x20Base\x20field\x20name:\x20',':\x20\x22','getFilter','delete','getRange','createdAt','Set','ValidateBaseFormulaCommand','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','canEdit','entries','getTable','index','getFieldById','ChangeBaseFieldTypeCommand','BaseTableFieldCreated','Failed\x20to\x20add\x20records','_projectionService','IResourceLoaderService','setConditionalColorRules','updateConfig','BeforeBaseTableCreate','Invalid\x20Base\x20formula.','test','BeforeBaseHierarchyChange','iterator','getNumColumns','changeType','getSort',',\x20range:\x20','cancel','recordId','createDefaultBaseTableSnapshot','some','createView','getViewById','getPermission','Invalid\x20Base\x20regex\x20filter:\x20','viewId','caseSensitive','[FRecord]:\x20field\x20\x22','210106MSkvyd','_parentObjectIds','_getField','registerEventHandler','getTables','_range','URL','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','ApplyBaseJson1Mutation','searchBaseTable','orderedRecordIds','BatchDeleteBaseRecordsCommand','UniverInstanceType','deleteRecords','generateRandomId','_recordId','_getHierarchyEventContext','_getRecord','BeforeBaseTableFieldCreate','BaseTableViewCreated','BaseConditionalColorRuleUpdateType','UpdateBaseRecordOrderCommand','getPrimaryField','_inject','string','sort','getValue','\x20in\x20field\x20\x22','url','localeCompare','fields','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','BaseEventSource','_base','FBasePermission','params','valid','getAncestors','SetBaseViewGroupCommand','map','getRecord','\x22\x20does\x20not\x20exist.','FBaseTableView','getBaseFieldPermissionObjectId','description','tables',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','size','BaseHierarchyInvalidReason','decorate','getRecords','commonExtend','SetBaseTableHierarchyFieldCommand','_initBaseBeforeEvents','name','setName','beforeCommandExecuted','Module','getField','UpdateBaseViewConditionalColorRulesCommand','parseRecordLinkIds','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','SetBaseViewFieldVisibleCommand','system','fieldKey','getColumn','call','Kanban','DuplicateBaseRecordCommand','DeleteBaseFieldCommand','FBase','getDefaultValue','disposeWithMe','Unsupported\x20Base\x20field\x20type\x20\x22','UpsertHostExternalReferencesCommand','getNumRows','setGroup','135DzpJoh','getTableByName','validateBaseHierarchyRecordCreations','childrenByParentId','CreateBaseTableCommand','getPrimaryFieldId','fieldIds','getBaseHierarchyDeletePromotions','Edit','boolean','readonly','BeforeBaseTableRecordCreate','forEach','addConditionalColorRule','setObjectPermissions','_getHierarchyIndex','getHierarchyFieldId','value','now','length','CreateBaseViewCommand','setFieldVisible','Gantt','Event','message','visibleCardFieldIds','isReadonly','DeleteBaseRecordCommand','_getFieldIds','find','duplicateTable','addChild','getTableId','getBaseId','defaultValue','CreateBaseFieldCommand','_permissionService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','BaseConditionalDateMode','max','FBaseTable','CreateBaseChildRecordCommand','from','getUnitId','unitId','BaseConditionalColorTarget','setSort','BaseFieldType',':\x20expected\x20an\x20object.','setReadOnly','\x22.\x20','[FTable]:\x20table\x20\x22','multiple','matchesBaseCondition','push','SetBaseNameCommand','_fireBeforeHierarchyChange','getRow','ICommandService','SetBaseRangeValuesCommand','updatedAt','hidden','setValue','getPrototypeOf','IBaseProjectionService','onCommandExecuted','96708PltkYO','prototype','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','constructor','getTableById','getGroup','getDataRange','Failed\x20to\x20create\x20table\x20\x22','_viewId','BaseFilterConjunction','getVisibleFields','resolveBaseFieldValues','UpdateBaseViewConfigCommand','parentByRecordId','_prepareFormulaFieldReferences','hasOwnProperty','symbol','getPoint','\x22:\x20expected\x20an\x20array.','group','reason','Failed\x20to\x20add\x20field\x20\x22','_baseTableId','enumerable','subtreeHeightByRecordId','Failed\x20to\x20duplicate\x20table\x20\x22','\x22\x20has\x20invalid\x20config.','deleteConditionalColorRule','BeforeBaseTableViewCreate','afterFieldId','save','serializeRecordLinkIds','_getView','matches','BaseSortDirection','SetBasePermissionsCommand','getProjection','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','duplicate','FBaseTableField','table','RecordId','SetBaseViewFieldWidthCommand','source','Tools','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','Facade','hierarchyChanges','getFieldSettings','trim','FBasesEventNameMixin','setLinkedRecordIds','BASE_RECORD_ID_FIELD_ID','views','rows','SetBaseViewFieldOrderCommand','getView','bind','default',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','defineProperty','setDefaultValue','getParent','buildBaseHierarchyIndex','FEventName','\x22\x20is\x20invalid.','conditions','base','BaseHierarchyChanged','thumbnail','getTableFacade','create','Grid','RenameBaseViewCommand','ImageSourceType'];_0x9181=function(){return _0x5f118a;};return _0x9181();}function D(_0x12dd1e,_0x117551,_0x54d902){const _0x394576=_0x2481ff;let _0xd91c37=_0x12dd1e[_0x117551];if(_0xd91c37==null)return{};if(typeof _0xd91c37!=_0x394576(0x14d)||!Number['isFinite'](_0xd91c37)||_0xd91c37<0x0)throw TypeError(_0x54d902+_0x394576(0x1ce)+_0x117551+_0x394576(0x1d5));return{[_0x117551]:_0xd91c37};}function O(_0x107da1){const _0x418327=_0x2481ff;return typeof _0x107da1==_0x418327(0x137)&&!!_0x107da1&&!Array[_0x418327(0x1a4)](_0x107da1);}var k;let A=k=class{constructor(_0x236549,_0x1facf3,_0x273d61,_0x718111,_0x358fa7){const _0x25e050=_0x2481ff;this[_0x25e050(0x217)]=_0x236549,this['_table']=_0x1facf3,this[_0x25e050(0x1fb)]=_0x273d61,this['_inject']=_0x718111,this[_0x25e050(0x13e)]=_0x358fa7,this[_0x25e050(0x1a0)]();}[_0x2481ff(0x264)](){return this['_base']['getId']();}[_0x2481ff(0x263)](){const _0x410bc8=_0x2481ff;return this[_0x410bc8(0x1c0)][_0x410bc8(0x178)]();}[_0x2481ff(0x1d1)](){const _0x7232a9=_0x2481ff;return{...this[_0x7232a9(0x1fb)]};}[_0x2481ff(0x27c)](){const _0x16a44e=_0x2481ff;return this[_0x16a44e(0x1fb)][_0x16a44e(0x193)];}[_0x2481ff(0x237)](){return this['_range']['startColumn'];}[_0x2481ff(0x241)](){const _0x36a829=_0x2481ff;return this['_range']['endRow']-this['_range'][_0x36a829(0x193)]+0x1;}[_0x2481ff(0x1e7)](){const _0x391484=_0x2481ff;return this['_range'][_0x391484(0x1c9)]-this[_0x391484(0x1fb)][_0x391484(0x1c4)]+0x1;}['getValues'](){const _0x4e2b84=_0x2481ff;let _0x1dea21=this['_getTable'](),_0x36488b=this[_0x4e2b84(0x25f)](_0x1dea21),_0x45da42=[];for(let _0x41391a=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x193)];_0x41391a<=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x169)];_0x41391a++){var _0x3ac8a0;let _0x583d2f=(_0x3ac8a0=_0x1dea21[_0x4e2b84(0x128)])==null?void 0x0:_0x3ac8a0[_0x41391a],_0x170602=[];for(let _0x5cf4bf=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x1c4)];_0x5cf4bf<=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x1c9)];_0x5cf4bf++){let _0x1a2830=_0x36488b[_0x5cf4bf];_0x170602[_0x4e2b84(0x279)](_0x583d2f&&_0x1a2830?(0x0,c['getBaseCellValue'])(_0x1dea21,_0x583d2f,_0x1a2830):null);}_0x45da42[_0x4e2b84(0x279)](_0x170602);}return _0x45da42;}[_0x2481ff(0x210)](){var _0x428cb3;return((_0x428cb3=this['getValues']()[0x0])==null?void 0x0:_0x428cb3[0x0])??null;}['setValue'](_0x245521){const _0x2dd0bc=_0x2481ff;return this[_0x2dd0bc(0x12a)]([[_0x245521]]);}[_0x2481ff(0x12a)](_0x2d5971){const _0x36d6aa=_0x2481ff;let _0x58d057=this['getNumRows'](),_0x318b20=this['getNumColumns']();if(_0x2d5971[_0x36d6aa(0x256)]>_0x58d057||_0x2d5971['some'](_0x51eefe=>_0x51eefe[_0x36d6aa(0x256)]>_0x318b20)){var _0x1d7f3d;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2d5971[_0x36d6aa(0x256)]+'x'+(((_0x1d7f3d=_0x2d5971[0x0])==null?void 0x0:_0x1d7f3d[_0x36d6aa(0x256)])??0x0)+_0x36d6aa(0x146)+_0x58d057+'x'+_0x318b20+'.');}let _0x576ded=this[_0x36d6aa(0x1cb)](),_0x41b4a2=this[_0x36d6aa(0x25f)](_0x576ded),_0x168dd7=_0x2d5971[_0x36d6aa(0x16a)]((_0x4cea5a,_0x410cc1)=>_0x4cea5a[_0x36d6aa(0x21d)]((_0x538177,_0x5e89f3)=>{const _0x46ab3f=_0x36d6aa;var _0xaff91;let _0xed7f93=this[_0x46ab3f(0x1fb)][_0x46ab3f(0x193)]+_0x410cc1,_0x157d64=_0x41b4a2[this[_0x46ab3f(0x1fb)][_0x46ab3f(0x1c4)]+_0x5e89f3],_0x5e20d5=(_0xaff91=_0x576ded['rowId'])==null?void 0x0:_0xaff91[_0xed7f93];if(!_0x157d64||!_0x5e20d5)throw Error(_0x46ab3f(0x1fd));return{'recordId':_0x5e20d5,'fieldId':_0x157d64,'value':_0x538177};}));return this[_0x36d6aa(0x13e)][_0x36d6aa(0x13f)](c[_0x36d6aa(0x27e)]['id'],{'unitId':this['_base'][_0x36d6aa(0x178)](),'tableId':this['_table'][_0x36d6aa(0x178)](),'patches':_0x168dd7,'source':c['BaseEventSource'][_0x36d6aa(0x2b3)]});}['clear'](){const _0xe6d5b=_0x2481ff;return this[_0xe6d5b(0x12a)](Array[_0xe6d5b(0x26d)]({'length':this[_0xe6d5b(0x241)]()},()=>Array['from']({'length':this[_0xe6d5b(0x1e7)]()},()=>null)));}[_0x2481ff(0x194)](_0x4137cc,_0x1d0545,_0x3dcd05=this[_0x2481ff(0x241)](),_0x118bd8=this[_0x2481ff(0x1e7)]()){const _0x2ce700=_0x2481ff;return this['_inject']['createInstance'](k,this[_0x2ce700(0x217)],this['_table'],{'startRow':this['_range'][_0x2ce700(0x193)]+_0x4137cc,'startColumn':this['_range'][_0x2ce700(0x1c4)]+_0x1d0545,'endRow':this['_range']['startRow']+_0x4137cc+_0x3dcd05-0x1,'endColumn':this['_range'][_0x2ce700(0x1c4)]+_0x1d0545+_0x118bd8-0x1},this[_0x2ce700(0x20d)]);}['_getTable'](){let _0x460c82=this['_table']['getTable']();if(!_0x460c82)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c['ensureBaseTableCellLayout'])(_0x460c82);}[_0x2481ff(0x1a0)](){const _0x2ec258=_0x2481ff;var _0x222b31;let _0x4ae2dc=this['_getTable'](),_0x4a5bf7=((_0x222b31=_0x4ae2dc[_0x2ec258(0x13c)])==null?void 0x0:_0x222b31[_0x2ec258(0x256)])??0x0,_0x23d421=this[_0x2ec258(0x25f)](_0x4ae2dc)['length'];if(this[_0x2ec258(0x1fb)]['startRow']<0x0||this['_range'][_0x2ec258(0x1c4)]<0x0||this[_0x2ec258(0x1fb)][_0x2ec258(0x169)]<this['_range'][_0x2ec258(0x193)]||this[_0x2ec258(0x1fb)][_0x2ec258(0x1c9)]<this[_0x2ec258(0x1fb)]['startColumn']||this['_range'][_0x2ec258(0x169)]>=Math['max'](_0x4a5bf7,0x1)||this[_0x2ec258(0x1fb)][_0x2ec258(0x1c9)]>=Math['max'](_0x23d421,0x1))throw Error(_0x2ec258(0x233)+_0x4a5bf7+_0x2ec258(0x15a)+_0x23d421+_0x2ec258(0x1ea)+JSON['stringify'](this[_0x2ec258(0x1fb)])+'.');}['_getFieldIds'](_0x106b94){const _0x478db2=_0x2481ff;return _0x106b94[_0x478db2(0x167)]['filter'](_0x1e9064=>y(_0x106b94[_0x478db2(0x214)][_0x1e9064]));}};A=k=g([h(0x4,l['ICommandService'])],A);function j(_0x3e5436){'@babel/helpers - typeof';const _0x275f7b=_0x2481ff;return j=typeof Symbol==_0x275f7b(0x134)&&typeof Symbol[_0x275f7b(0x1e6)]==_0x275f7b(0x295)?function(_0x376fee){return typeof _0x376fee;}:function(_0x3bf647){const _0x8a0aa8=_0x275f7b;return _0x3bf647&&typeof Symbol==_0x8a0aa8(0x134)&&_0x3bf647[_0x8a0aa8(0x288)]===Symbol&&_0x3bf647!==Symbol[_0x8a0aa8(0x286)]?_0x8a0aa8(0x295):typeof _0x3bf647;},j(_0x3e5436);}function M(_0x38289a,_0x24ed81){const _0x36e14b=_0x2481ff;if(j(_0x38289a)!=_0x36e14b(0x137)||!_0x38289a)return _0x38289a;var _0x313021=_0x38289a[Symbol[_0x36e14b(0x141)]];if(_0x313021!==void 0x0){var _0x1295fe=_0x313021[_0x36e14b(0x238)](_0x38289a,_0x24ed81||'default');if(j(_0x1295fe)!='object')return _0x1295fe;throw TypeError(_0x36e14b(0x215));}return(_0x24ed81===_0x36e14b(0x20e)?String:Number)(_0x38289a);}function N(_0x14a3f7){const _0x1551e9=_0x2481ff;var _0x708db4=M(_0x14a3f7,'string');return j(_0x708db4)==_0x1551e9(0x295)?_0x708db4:_0x708db4+'';}function P(_0x57d070,_0x4bceeb,_0x520b1f){return(_0x4bceeb=N(_0x4bceeb))in _0x57d070?Object['defineProperty'](_0x57d070,_0x4bceeb,{'value':_0x520b1f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57d070[_0x4bceeb]=_0x520b1f,_0x57d070;}var F;let I=F=class extends u[_0x2481ff(0x19a)]{constructor(_0x26dcf0,_0x5796e7,_0x504c35,_0x26287f,_0x5eddea,_0x5c6c8b){const _0x1f00a4=_0x2481ff;super(_0x26287f),this['_base']=_0x26dcf0,this[_0x1f00a4(0x1c0)]=_0x5796e7,this[_0x1f00a4(0x205)]=_0x504c35,this[_0x1f00a4(0x15c)]=_0x26287f,this[_0x1f00a4(0x13e)]=_0x5eddea,this[_0x1f00a4(0x267)]=_0x5c6c8b,P(this,_0x1f00a4(0x1bf),void 0x0),P(this,'_baseTableId',void 0x0),this[_0x1f00a4(0x1bf)]=_0x26dcf0[_0x1f00a4(0x178)](),this[_0x1f00a4(0x29b)]=_0x5796e7[_0x1f00a4(0x178)]();}['getBaseFacade'](){const _0x2ae9a1=_0x2481ff;return this[_0x2ae9a1(0x217)];}[_0x2481ff(0x111)](){const _0xee2eb4=_0x2481ff;return this[_0xee2eb4(0x1c0)];}[_0x2481ff(0x178)](){const _0x28c331=_0x2481ff;return this[_0x28c331(0x205)];}['getPermission'](){const _0x12c879=_0x2481ff;let _0x24cfd7=this[_0x12c879(0x1c0)][_0x12c879(0x178)]();return new m(this[_0x12c879(0x217)][_0x12c879(0x178)](),(0x0,c['getBaseRecordPermissionObjectId'])(_0x24cfd7,this[_0x12c879(0x205)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x24cfd7)],this['_commandService'],this[_0x12c879(0x267)]);}[_0x2481ff(0x21e)](){const _0x4759c4=_0x2481ff;return{...this[_0x4759c4(0x207)](),'values':this[_0x4759c4(0x145)]()};}[_0x2481ff(0x210)](_0xb06a24){const _0x334376=_0x2481ff;return y(this['_table'][_0x334376(0x1d8)]()['fields'][_0xb06a24])?this[_0x334376(0x207)]()[_0x334376(0x11e)][_0xb06a24]??null:null;}[_0x2481ff(0x145)](){const _0x49197e=_0x2481ff;let _0x23d78e=this[_0x49197e(0x1c0)]['getTable']();return Object[_0x49197e(0x1b5)](Object[_0x49197e(0x1d7)](this[_0x49197e(0x207)]()[_0x49197e(0x11e)])[_0x49197e(0x1b1)](([_0x2ade23])=>y(_0x23d78e[_0x49197e(0x214)][_0x2ade23])));}['setValue'](_0x33a6b9,_0x472ff2){const _0x12b03=_0x2481ff;let _0x585eb4=this[_0x12b03(0x1c0)][_0x12b03(0x1d8)]()[_0x12b03(0x214)][_0x33a6b9];return this[_0x12b03(0x13e)][_0x12b03(0x13f)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x12b03(0x178)](),'tableId':this[_0x12b03(0x1c0)]['getId'](),'recordId':this['_recordId'],'fieldId':_0x33a6b9,'value':x(_0x585eb4,_0x472ff2),'source':c['BaseEventSource'][_0x12b03(0x2b3)]});}[_0x2481ff(0x19d)](_0x21c85f,_0x379c8f){const _0x426126=_0x2481ff;return this[_0x426126(0x281)](_0x21c85f,_0x379c8f[_0x426126(0x21d)](_0x3721f9=>({..._0x3721f9})));}[_0x2481ff(0x166)](_0x1417d9){const _0x5ea950=_0x2481ff;this[_0x5ea950(0x131)](_0x1417d9);let _0x352d7a=this['getValue'](_0x1417d9);return Array[_0x5ea950(0x1a4)](_0x352d7a)?_0x352d7a[_0x5ea950(0x21d)]((_0x28bf39,_0x12ba88)=>R(_0x28bf39,_0x1417d9,_0x12ba88)):[];}[_0x2481ff(0x180)](_0x1c9f45,_0x811559){const _0x2ab810=_0x2481ff;this[_0x2ab810(0x131)](_0x1c9f45);let _0x275a80=new Set(_0x811559[_0x2ab810(0x21d)](_0x18f987=>_0x18f987['id']));if(!_0x275a80['size'])return!0x0;let _0x3e4fd7=this[_0x2ab810(0x166)](_0x1c9f45),_0x197264=_0x3e4fd7[_0x2ab810(0x1b1)](_0x5467bd=>!_0x275a80[_0x2ab810(0x190)](_0x5467bd['id']));return _0x197264[_0x2ab810(0x256)]===_0x3e4fd7[_0x2ab810(0x256)]||this[_0x2ab810(0x19d)](_0x1c9f45,_0x197264);}[_0x2481ff(0x12a)](_0x24daa7,_0x2e81c6='id'){const _0x5ea9cb=_0x2481ff;let _0x5eb9ff=this[_0x5ea9cb(0x1c0)][_0x5ea9cb(0x1d8)](),_0x57958a=[{'recordId':this[_0x5ea9cb(0x205)],'values':b(_0x5eb9ff,_0x24daa7,_0x2e81c6)}];return this[_0x5ea9cb(0x13e)][_0x5ea9cb(0x13f)](c['SetBaseRecordValuesCommand']['id'],{'unitId':this['_base'][_0x5ea9cb(0x178)](),'tableId':this[_0x5ea9cb(0x1c0)]['getId'](),'patches':_0x57958a,'source':c['BaseEventSource'][_0x5ea9cb(0x2b3)]});}['delete'](){const _0x3ee5d1=_0x2481ff;return this[_0x3ee5d1(0x13e)][_0x3ee5d1(0x13f)](c[_0x3ee5d1(0x25e)]['id'],{'unitId':this[_0x3ee5d1(0x217)][_0x3ee5d1(0x178)](),'tableId':this['_table'][_0x3ee5d1(0x178)](),'recordId':this['_recordId'],'source':c[_0x3ee5d1(0x216)][_0x3ee5d1(0x2b3)]});}[_0x2481ff(0x2ab)](_0x3073b0){const _0x161dc6=_0x2481ff;let _0x2d030e={...this['_getRecord'](),..._0x3073b0,'id':(0x0,l[_0x161dc6(0x204)])(0x6)};_0x2d030e[_0x161dc6(0x11e)]={..._0x2d030e[_0x161dc6(0x11e)],..._0x3073b0==null?void 0x0:_0x3073b0[_0x161dc6(0x11e)]},Reflect[_0x161dc6(0x18b)](_0x2d030e[_0x161dc6(0x11e)],l[_0x161dc6(0x2b9)]);let _0x3a32f4=Date['now']();if(_0x2d030e[_0x161dc6(0x1b8)]||=''+_0x3a32f4,_0x2d030e[_0x161dc6(0x1d2)]||=_0x3a32f4,_0x2d030e['updatedAt']||=_0x3a32f4,!this[_0x161dc6(0x13e)][_0x161dc6(0x13f)](c[_0x161dc6(0x23a)]['id'],{'unitId':this[_0x161dc6(0x217)][_0x161dc6(0x178)](),'tableId':this[_0x161dc6(0x1c0)][_0x161dc6(0x178)](),'sourceRecordId':this[_0x161dc6(0x205)],'record':_0x2d030e,'source':c[_0x161dc6(0x216)]['Facade']}))throw Error(_0x161dc6(0x198)+this[_0x161dc6(0x205)]+'\x22.');return this[_0x161dc6(0x15c)][_0x161dc6(0x187)](F,this[_0x161dc6(0x217)],this['_table'],_0x2d030e['id'],this[_0x161dc6(0x15c)]);}[_0x2481ff(0x12b)](_0x14821d){const _0x1fa7b2=_0x2481ff;return this[_0x1fa7b2(0x13e)]['syncExecuteCommand'](c[_0x1fa7b2(0x20b)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'recordId':this['_recordId'],'orderKey':_0x14821d});}[_0x2481ff(0x11c)](_0x44b97b){const _0x269fee=_0x2481ff;let _0x3b3464=this['_getRecordLinkField'](_0x44b97b),_0x25d46d=this[_0x269fee(0x210)](_0x3b3464['id']);return(0x0,c[_0x269fee(0x232)])(_0x25d46d);}['setLinkedRecordIds'](_0x3715b0,_0x15fdf0){const _0x27b659=_0x2481ff;let _0x235b9a=this[_0x27b659(0x18a)](_0x3715b0),_0x4630e5=(0x0,c[_0x27b659(0x2a4)])(_0x15fdf0),_0x2b7ca5=(0x0,c['validateRecordLinkValue'])(this[_0x27b659(0x217)][_0x27b659(0x176)]()[_0x27b659(0x1b9)](),_0x235b9a,_0x4630e5);if(!_0x2b7ca5[_0x27b659(0x21a)])throw Error(_0x2b7ca5[_0x27b659(0x299)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x27b659(0x13e)][_0x27b659(0x13f)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x27b659(0x178)](),'tableId':this[_0x27b659(0x1c0)][_0x27b659(0x178)](),'recordId':this['_recordId'],'fieldId':_0x3715b0,'value':_0x4630e5,'source':c[_0x27b659(0x216)][_0x27b659(0x2b3)]});}[_0x2481ff(0x13b)](_0xbc6fc5,_0x406cd5){const _0x6b2c=_0x2481ff;let _0x5bf615=this[_0x6b2c(0x18a)](_0xbc6fc5),_0x4ba457=(0x0,c['getRecordLinkFieldConfig'])(_0x5bf615);if(!_0x4ba457)throw Error(_0x6b2c(0x158)+_0xbc6fc5+_0x6b2c(0x29f));let _0x4dbefb=this[_0x6b2c(0x11c)](_0xbc6fc5);return _0x4ba457['multiple']&&_0x4dbefb[_0x6b2c(0x164)](_0x406cd5)?!0x0:this[_0x6b2c(0x2b8)](_0xbc6fc5,_0x4ba457[_0x6b2c(0x277)]?[..._0x4dbefb,_0x406cd5]:[_0x406cd5]);}[_0x2481ff(0x154)](_0x249cc9,_0x1e8569){const _0x365d33=_0x2481ff;let _0x3a01d4=this[_0x365d33(0x11c)](_0x249cc9);return!_0x3a01d4[_0x365d33(0x164)](_0x1e8569)||this[_0x365d33(0x2b8)](_0x249cc9,_0x3a01d4[_0x365d33(0x1b1)](_0x40b444=>_0x40b444!==_0x1e8569));}[_0x2481ff(0x2c3)](_0xf951aa){const _0x277eb5=_0x2481ff;let _0xd65f83=this[_0x277eb5(0x252)](_0xf951aa)[_0x277eb5(0x292)][_0x277eb5(0x16b)](this[_0x277eb5(0x205)])??null;return _0xd65f83?this['_table'][_0x277eb5(0x18c)](_0xd65f83):null;}[_0x2481ff(0x14a)](_0x14b22c){const _0x40632d=_0x2481ff;return(this[_0x40632d(0x252)](_0x14b22c)[_0x40632d(0x246)][_0x40632d(0x16b)](this[_0x40632d(0x205)])??[])[_0x40632d(0x16a)](_0x3481b3=>{const _0x407709=_0x40632d;let _0x17ab74=this[_0x407709(0x1c0)]['getRecordById'](_0x3481b3);return _0x17ab74?[_0x17ab74]:[];});}[_0x2481ff(0x21b)](_0x354064){const _0x3f166b=_0x2481ff;let _0x53e7ba=this['_getHierarchyIndex'](_0x354064),_0x14f888=[],_0x4ad930=_0x53e7ba['parentByRecordId'][_0x3f166b(0x16b)](this[_0x3f166b(0x205)])??null;for(;_0x4ad930;){let _0x4402ec=this[_0x3f166b(0x1c0)]['getRecordById'](_0x4ad930);_0x4402ec&&_0x14f888[_0x3f166b(0x279)](_0x4402ec),_0x4ad930=_0x53e7ba['parentByRecordId'][_0x3f166b(0x16b)](_0x4ad930)??null;}return _0x14f888;}['getDescendants'](_0xf3eedd){const _0x41e4c8=_0x2481ff;let _0x4271b6=this[_0x41e4c8(0x252)](_0xf3eedd),_0x232bc0=_0x4271b6[_0x41e4c8(0x200)][_0x41e4c8(0x172)](this[_0x41e4c8(0x205)]),_0x29930d=_0x4271b6[_0x41e4c8(0x29d)][_0x41e4c8(0x190)](this['_recordId'])?this['_collectDescendantIds'](_0x4271b6[_0x41e4c8(0x246)],this[_0x41e4c8(0x205)]):[];return _0x232bc0<0x0?[]:_0x29930d[_0x41e4c8(0x16a)](_0x461a77=>{const _0x5bc714=_0x41e4c8;let _0x361f1b=this[_0x5bc714(0x1c0)][_0x5bc714(0x18c)](_0x461a77);return _0x361f1b?[_0x361f1b]:[];});}[_0x2481ff(0x12c)](_0x594904,_0x24c09a,_0x1334fb){const _0x2a0fdc=_0x2481ff;return this[_0x2a0fdc(0x13e)][_0x2a0fdc(0x13f)](c[_0x2a0fdc(0x138)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x2a0fdc(0x178)](),'fieldId':_0x594904,'recordId':this[_0x2a0fdc(0x205)],'parentRecordId':_0x24c09a,'orderKey':_0x1334fb,'source':c[_0x2a0fdc(0x216)]['Facade']});}[_0x2481ff(0x262)](_0x111fd9,_0x4517f7,_0x28cb7c='id',_0xccebcb){const _0xe0c372=_0x2481ff;let _0x2b286b=this[_0xe0c372(0x1c0)][_0xe0c372(0x1d8)](),_0x3c01a7=Date['now'](),_0x38b2b5={..._0xccebcb,'id':(0x0,l[_0xe0c372(0x204)])(0x6),'values':b(_0x2b286b,_0x4517f7,_0x28cb7c),'orderKey':(_0xccebcb==null?void 0x0:_0xccebcb['orderKey'])||''+_0x3c01a7,'createdAt':(_0xccebcb==null?void 0x0:_0xccebcb[_0xe0c372(0x1d2)])||_0x3c01a7,'updatedAt':(_0xccebcb==null?void 0x0:_0xccebcb[_0xe0c372(0x27f)])||_0x3c01a7};if(!this[_0xe0c372(0x13e)][_0xe0c372(0x13f)](c['CreateBaseChildRecordCommand']['id'],{'unitId':this[_0xe0c372(0x217)][_0xe0c372(0x178)](),'tableId':this[_0xe0c372(0x1c0)]['getId'](),'fieldId':_0x111fd9,'parentRecordId':this[_0xe0c372(0x205)],'record':_0x38b2b5,'source':c[_0xe0c372(0x216)]['Facade']}))throw Error(_0xe0c372(0x1c5)+this[_0xe0c372(0x205)]+'\x22.');return this['_injector'][_0xe0c372(0x187)](F,this[_0xe0c372(0x217)],this[_0xe0c372(0x1c0)],_0x38b2b5['id'],this['_injector']);}[_0x2481ff(0x252)](_0x2635f7){const _0x12d5a5=_0x2481ff;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x12d5a5(0x1c0)]['getTable'](),_0x2635f7);}['_collectDescendantIds'](_0x4b2081,_0x214845){let _0x360446=[],_0x5852a5=_0xee1370=>{const _0x50be60=_0x31f5;for(let _0x5bafd8 of _0x4b2081[_0x50be60(0x16b)](_0xee1370)??[])_0x360446[_0x50be60(0x279)](_0x5bafd8),_0x5852a5(_0x5bafd8);};return _0x5852a5(_0x214845),_0x360446;}['_getRecord'](){const _0x1bf3ad=_0x2481ff;let _0x410507=this[_0x1bf3ad(0x1c0)][_0x1bf3ad(0x1d8)]()[_0x1bf3ad(0x151)][this[_0x1bf3ad(0x205)]];if(!_0x410507)throw Error(_0x1bf3ad(0x1b2)+this['_recordId']+_0x1bf3ad(0x21f));return _0x410507;}[_0x2481ff(0x18a)](_0x62e9b7){const _0x5ab46b=_0x2481ff;let _0xd1bff=this[_0x5ab46b(0x1c0)]['getTable']()[_0x5ab46b(0x214)][_0x62e9b7];if(!_0xd1bff||_0xd1bff[_0x5ab46b(0x18e)]!==l[_0x5ab46b(0x272)][_0x5ab46b(0x1cc)])throw Error(_0x5ab46b(0x1f5)+_0x62e9b7+_0x5ab46b(0x268));return _0xd1bff;}[_0x2481ff(0x131)](_0x264625){const _0x30ba28=_0x2481ff;let _0x20bfd6=this['_table'][_0x30ba28(0x1d8)]()['fields'][_0x264625];if(!_0x20bfd6||_0x20bfd6[_0x30ba28(0x18e)]!==l[_0x30ba28(0x272)][_0x30ba28(0x116)])throw Error(_0x30ba28(0x1f5)+_0x264625+_0x30ba28(0x144));return _0x20bfd6;}};I=F=g([h(0x4,l[_0x2481ff(0x27d)]),h(0x5,l[_0x2481ff(0x17f)])],I);function L(_0x5d08fd){const _0x22a770=_0x2481ff;return!!(_0x5d08fd&&typeof _0x5d08fd==_0x22a770(0x137)&&'id'in _0x5d08fd&&typeof _0x5d08fd['id']==_0x22a770(0x20e)&&_0x22a770(0x22c)in _0x5d08fd&&typeof _0x5d08fd[_0x22a770(0x22c)]==_0x22a770(0x20e));}function R(_0x2340f7,_0x2e92da,_0x78f73f){const _0x118a0f=_0x2481ff;if(!L(_0x2340f7))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x78f73f+_0x118a0f(0x211)+_0x2e92da+_0x118a0f(0x10c));return{..._0x2340f7};}let z=class{constructor(_0x5da5d1,_0x2f6958,_0x117c4a,_0x1eee5f,_0xf5816e,_0x4a2b48,_0x59330e){const _0x283d5c=_0x2481ff;this[_0x283d5c(0x217)]=_0x5da5d1,this[_0x283d5c(0x1c0)]=_0x2f6958,this[_0x283d5c(0x28d)]=_0x117c4a,this[_0x283d5c(0x15c)]=_0x1eee5f,this['_commandService']=_0xf5816e,this['_permissionService']=_0x4a2b48,this[_0x283d5c(0x1de)]=_0x59330e;}[_0x2481ff(0x178)](){const _0x4cc9e0=_0x2481ff;return this[_0x4cc9e0(0x28d)];}[_0x2481ff(0x1f1)](){const _0x383d75=_0x2481ff;let _0x4e0912=this[_0x383d75(0x1c0)][_0x383d75(0x178)]();return new m(this[_0x383d75(0x217)][_0x383d75(0x178)](),(0x0,c[_0x383d75(0x1c3)])(_0x4e0912,this['_viewId']),[(0x0,c[_0x383d75(0x18d)])(_0x4e0912)],this[_0x383d75(0x13e)],this[_0x383d75(0x267)]);}[_0x2481ff(0x2bd)](){const _0x12fd5b=_0x2481ff;return this[_0x12fd5b(0x2a5)]();}[_0x2481ff(0x120)](){const _0x4925c6=_0x2481ff;return this[_0x4925c6(0x2a5)]()[_0x4925c6(0x22c)];}['getType'](){const _0x372e93=_0x2481ff;return this[_0x372e93(0x2a5)]()['type'];}[_0x2481ff(0x22d)](_0x3eaffa){const _0x4c4ab6=_0x2481ff;return this[_0x4c4ab6(0x13e)][_0x4c4ab6(0x13f)](c[_0x4c4ab6(0x114)]['id'],{'unitId':this[_0x4c4ab6(0x217)]['getId'](),'tableId':this[_0x4c4ab6(0x1c0)]['getId'](),'viewId':this['_viewId'],'name':_0x3eaffa});}[_0x2481ff(0x196)](){const _0x17f907=_0x2481ff;let _0x1eb7de=this['getType'](),_0x29653b=this['_getView']()[_0x17f907(0x147)];switch(_0x1eb7de){case l[_0x17f907(0x175)][_0x17f907(0x113)]:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x239)]:return _0x29653b;case l[_0x17f907(0x175)]['Calendar']:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x259)]:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x127)]:return _0x29653b;default:return _0x29653b;}}[_0x2481ff(0x1e1)](_0x12c678){const _0x185491=_0x2481ff;return this[_0x185491(0x13e)][_0x185491(0x13f)](c[_0x185491(0x291)]['id'],{'unitId':this[_0x185491(0x217)][_0x185491(0x178)](),'tableId':this[_0x185491(0x1c0)][_0x185491(0x178)](),'viewId':this[_0x185491(0x28d)],'patch':_0x12c678});}['getConditionalColorRules'](){const _0x57bdf9=_0x2481ff;var _0x4fa01d;return l[_0x57bdf9(0x2b1)][_0x57bdf9(0x192)](((_0x4fa01d=this[_0x57bdf9(0x2a5)]()[_0x57bdf9(0x147)][_0x57bdf9(0x16c)])==null?void 0x0:_0x4fa01d['rules'])??[]);}[_0x2481ff(0x1e0)](_0x30cbac){const _0x3a0d2e=_0x2481ff;return this[_0x3a0d2e(0x13e)][_0x3a0d2e(0x13f)](c[_0x3a0d2e(0x231)]['id'],{'unitId':this[_0x3a0d2e(0x217)][_0x3a0d2e(0x178)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'type':c[_0x3a0d2e(0x20a)][_0x3a0d2e(0x1d3)],'rules':_0x30cbac});}[_0x2481ff(0x250)](_0x50c8a4){const _0x42df67=_0x2481ff;return this[_0x42df67(0x13e)][_0x42df67(0x13f)](c[_0x42df67(0x231)]['id'],{'unitId':this[_0x42df67(0x217)]['getId'](),'tableId':this[_0x42df67(0x1c0)][_0x42df67(0x178)](),'viewId':this[_0x42df67(0x28d)],'type':c[_0x42df67(0x20a)][_0x42df67(0x125)],'rule':_0x50c8a4});}[_0x2481ff(0x2a0)](_0x18d7a7){const _0x1d22a1=_0x2481ff;return this[_0x1d22a1(0x13e)][_0x1d22a1(0x13f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x1d22a1(0x217)]['getId'](),'tableId':this[_0x1d22a1(0x1c0)][_0x1d22a1(0x178)](),'viewId':this[_0x1d22a1(0x28d)],'type':c[_0x1d22a1(0x20a)]['Delete'],'ruleId':_0x18d7a7});}['clearConditionalColorRules'](){const _0x5ef3b7=_0x2481ff;return this[_0x5ef3b7(0x13e)][_0x5ef3b7(0x13f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base'][_0x5ef3b7(0x178)](),'tableId':this[_0x5ef3b7(0x1c0)][_0x5ef3b7(0x178)](),'viewId':this['_viewId'],'type':c[_0x5ef3b7(0x20a)][_0x5ef3b7(0x174)]});}[_0x2481ff(0x1cf)](){const _0x511b28=_0x2481ff;return this[_0x511b28(0x2a5)]()['filter']??null;}['setFilter'](_0x2433f3){const _0x57505e=_0x2481ff;return this[_0x57505e(0x13e)]['syncExecuteCommand'](c[_0x57505e(0x1ad)]['id'],{'unitId':this[_0x57505e(0x217)]['getId'](),'tableId':this[_0x57505e(0x1c0)][_0x57505e(0x178)](),'viewId':this[_0x57505e(0x28d)],'filter':_0x2433f3});}[_0x2481ff(0x1e9)](){const _0x10e19c=_0x2481ff;return this[_0x10e19c(0x2a5)]()[_0x10e19c(0x20f)]??[];}[_0x2481ff(0x271)](_0x12a67b){const _0x362329=_0x2481ff;return this[_0x362329(0x13e)][_0x362329(0x13f)](c[_0x362329(0x1ac)]['id'],{'unitId':this[_0x362329(0x217)][_0x362329(0x178)](),'tableId':this['_table'][_0x362329(0x178)](),'viewId':this['_viewId'],'sort':_0x12a67b});}[_0x2481ff(0x28a)](){const _0x44a50e=_0x2481ff;return this[_0x44a50e(0x2a5)]()[_0x44a50e(0x298)]??[];}[_0x2481ff(0x242)](_0x486ac2){const _0x252a6d=_0x2481ff;return this[_0x252a6d(0x13e)][_0x252a6d(0x13f)](c[_0x252a6d(0x21c)]['id'],{'unitId':this[_0x252a6d(0x217)]['getId'](),'tableId':this[_0x252a6d(0x1c0)][_0x252a6d(0x178)](),'viewId':this[_0x252a6d(0x28d)],'group':_0x486ac2});}[_0x2481ff(0x2b5)](_0x42b399){const _0x367bdc=_0x2481ff;var _0x3777eb;return y(this[_0x367bdc(0x1c0)][_0x367bdc(0x1d8)]()['fields'][_0x42b399])?((_0x3777eb=this[_0x367bdc(0x2a5)]()['fieldSettings'])==null?void 0x0:_0x3777eb[_0x42b399])??{}:{};}[_0x2481ff(0x28f)](){const _0x1c1531=_0x2481ff;let _0x5e3367=this['_table'][_0x1c1531(0x1d8)](),_0x477ba2=this[_0x1c1531(0x2a5)]();return(_0x477ba2[_0x1c1531(0x167)]??_0x5e3367[_0x1c1531(0x167)])[_0x1c1531(0x1b1)](_0x14e965=>{const _0x2fdcc6=_0x1c1531;var _0x1777b3;let _0x24201b=_0x5e3367[_0x2fdcc6(0x214)][_0x14e965];return y(_0x24201b)&&!((_0x1777b3=_0x477ba2[_0x2fdcc6(0x19c)])!=null&&(_0x1777b3=_0x1777b3[_0x14e965])!=null&&_0x1777b3['hidden']);})[_0x1c1531(0x21d)](_0x4b7eb1=>this[_0x1c1531(0x15c)][_0x1c1531(0x187)](_,this[_0x1c1531(0x217)],this['_table'],_0x4b7eb1));}[_0x2481ff(0x258)](_0x3ea8a7,_0x4c8436){const _0x1d2bd4=_0x2481ff;return y(this[_0x1d2bd4(0x1c0)][_0x1d2bd4(0x1d8)]()['fields'][_0x3ea8a7])?this[_0x1d2bd4(0x13e)][_0x1d2bd4(0x13f)](c[_0x1d2bd4(0x234)]['id'],{'unitId':this[_0x1d2bd4(0x217)]['getId'](),'tableId':this['_table'][_0x1d2bd4(0x178)](),'viewId':this[_0x1d2bd4(0x28d)],'fieldId':_0x3ea8a7,'visible':_0x4c8436}):!0x1;}[_0x2481ff(0x123)](_0x5931b6,_0x4085f8){const _0xaa3134=_0x2481ff;return y(this[_0xaa3134(0x1c0)]['getTable']()[_0xaa3134(0x214)][_0x5931b6])?this[_0xaa3134(0x13e)][_0xaa3134(0x13f)](c[_0xaa3134(0x2af)]['id'],{'unitId':this[_0xaa3134(0x217)][_0xaa3134(0x178)](),'tableId':this[_0xaa3134(0x1c0)][_0xaa3134(0x178)](),'viewId':this[_0xaa3134(0x28d)],'fieldId':_0x5931b6,'width':_0x4085f8}):!0x1;}[_0x2481ff(0x173)](_0x37b489,_0x573abc){const _0x21597f=_0x2481ff;let _0x5f4803=this[_0x21597f(0x1c0)]['getTable'](),_0x25bd15=_0x573abc['beforeFieldId']??_0x573abc[_0x21597f(0x2a2)];return!y(_0x5f4803['fields'][_0x37b489])||!_0x25bd15||!y(_0x5f4803[_0x21597f(0x214)][_0x25bd15])?!0x1:this[_0x21597f(0x13e)]['syncExecuteCommand'](c[_0x21597f(0x2bc)]['id'],{'unitId':this[_0x21597f(0x217)][_0x21597f(0x178)](),'tableId':this[_0x21597f(0x1c0)][_0x21597f(0x178)](),'viewId':this['_viewId'],'fieldId':_0x37b489,'target':_0x573abc});}[_0x2481ff(0x11d)](_0x5112f2){const _0x5bbe92=_0x2481ff;return this[_0x5bbe92(0x13e)][_0x5bbe92(0x13f)](c[_0x5bbe92(0x168)]['id'],{'unitId':this['_base'][_0x5bbe92(0x178)](),'tableId':this['_table'][_0x5bbe92(0x178)](),'viewId':this[_0x5bbe92(0x28d)],'target':_0x5112f2});}[_0x2481ff(0x1d0)](){const _0x213765=_0x2481ff;return this['_commandService'][_0x213765(0x13f)](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x213765(0x217)][_0x213765(0x178)](),'tableId':this[_0x213765(0x1c0)]['getId'](),'viewId':this[_0x213765(0x28d)]});}['getProjection'](){const _0x290f5c=_0x2481ff;return this[_0x290f5c(0x1de)][_0x290f5c(0x2a9)](this['_base'][_0x290f5c(0x176)]()[_0x290f5c(0x1b9)](),this['_table'][_0x290f5c(0x178)](),this[_0x290f5c(0x28d)]);}[_0x2481ff(0x2a5)](){const _0x1650bd=_0x2481ff;let _0x165d9d=this[_0x1650bd(0x1c0)][_0x1650bd(0x1d8)]()[_0x1650bd(0x2ba)][this['_viewId']];if(!_0x165d9d)throw Error(_0x1650bd(0x1bc)+this[_0x1650bd(0x28d)]+'\x22\x20does\x20not\x20exist.');return _0x165d9d;}};z=g([h(0x4,l[_0x2481ff(0x27d)]),h(0x5,l[_0x2481ff(0x17f)]),h(0x6,c[_0x2481ff(0x283)])],z);let B=class{constructor(_0x502349,_0x194e60,_0x24b2d6,_0x28b7ab,_0x161e06,_0x598474){const _0x257331=_0x2481ff;this[_0x257331(0x217)]=_0x502349,this[_0x257331(0x14c)]=_0x194e60,this['_injector']=_0x24b2d6,this[_0x257331(0x13e)]=_0x28b7ab,this[_0x257331(0x267)]=_0x161e06,this[_0x257331(0x1de)]=_0x598474;}[_0x2481ff(0x176)](){const _0x502f59=_0x2481ff;return this[_0x502f59(0x217)][_0x502f59(0x176)]();}[_0x2481ff(0x1d8)](){return this['_getTable']();}['getId'](){const _0x4b8b3d=_0x2481ff;return this[_0x4b8b3d(0x14c)];}[_0x2481ff(0x1f1)](){const _0x385d7d=_0x2481ff;return new m(this[_0x385d7d(0x176)]()[_0x385d7d(0x26e)](),(0x0,c[_0x385d7d(0x18d)])(this[_0x385d7d(0x14c)]),[],this['_commandService'],this[_0x385d7d(0x267)]);}[_0x2481ff(0x253)](){const _0x54e03b=_0x2481ff;return(0x0,c[_0x54e03b(0x153)])(this[_0x54e03b(0x1cb)]());}['setHierarchyField'](_0x26df22){const _0x1c0660=_0x2481ff;return this[_0x1c0660(0x13e)][_0x1c0660(0x13f)](c[_0x1c0660(0x22a)]['id'],{'unitId':this[_0x1c0660(0x217)][_0x1c0660(0x178)](),'tableId':this[_0x1c0660(0x14c)],'fieldId':_0x26df22});}[_0x2481ff(0x120)](){const _0x1f6244=_0x2481ff;return this[_0x1f6244(0x1cb)]()[_0x1f6244(0x22c)];}[_0x2481ff(0x171)](){const _0x283597=_0x2481ff;let _0x9a51cb=this[_0x283597(0x217)][_0x283597(0x176)]()[_0x283597(0x1b9)]();return(0x0,c[_0x283597(0x160)])(this[_0x283597(0x1cb)](),_0x9a51cb);}[_0x2481ff(0x22d)](_0x46c832){const _0x374d68=_0x2481ff;let _0x415fbe=(0x0,c[_0x374d68(0x17a)])(this[_0x374d68(0x217)][_0x374d68(0x176)]()[_0x374d68(0x1b9)](),_0x46c832,this['_tableId']);if(!_0x415fbe[_0x374d68(0x21a)])throw Error(_0x374d68(0x2aa)+_0x46c832+_0x374d68(0x275)+c[_0x374d68(0x1be)]+'\x20'+_0x415fbe[_0x374d68(0x299)]);return this[_0x374d68(0x13e)][_0x374d68(0x13f)](c[_0x374d68(0x133)]['id'],{'unitId':this[_0x374d68(0x217)][_0x374d68(0x178)](),'tableId':this[_0x374d68(0x14c)],'name':_0x46c832});}['search'](_0x34019b,_0x38f18a){const _0xa68d02=_0x2481ff;let _0x37106b=this['_base'][_0xa68d02(0x176)]()[_0xa68d02(0x1b9)](),_0x41d3d4=this[_0xa68d02(0x1cb)]();if(_0x38f18a){let _0x10303e=this['_projectionService'][_0xa68d02(0x2a9)](_0x37106b,this[_0xa68d02(0x14c)],_0x38f18a),_0x3d6d1c=_0x41d3d4['views'][_0x38f18a],_0x286d59=_0x34019b['fieldIds']??J(_0x41d3d4,_0x3d6d1c,_0x10303e),_0x16c45f=_0xa68d02(0x2bb)in _0x10303e&&Array['isArray'](_0x10303e['rows'])?_0x10303e[_0xa68d02(0x2bb)]:[];return(0x0,c[_0xa68d02(0x1ff)])({..._0x34019b,'table':_0x41d3d4,'fieldIds':_0x286d59,'rows':_0x16c45f});}let _0xc9fc6c=(_0x41d3d4[_0xa68d02(0x13c)]?_0x41d3d4[_0xa68d02(0x13c)][_0xa68d02(0x21d)](_0x2c8f3b=>_0x41d3d4[_0xa68d02(0x151)][_0x2c8f3b]):Object[_0xa68d02(0x11e)](_0x41d3d4[_0xa68d02(0x151)])['sort']((_0x5b3271,_0x1de388)=>_0x5b3271[_0xa68d02(0x1b8)]['localeCompare'](_0x1de388['orderKey'])))[_0xa68d02(0x1b1)](_0x58313a=>_0x58313a)[_0xa68d02(0x21d)](_0x561c3e=>({'recordId':_0x561c3e['id'],'values':_0x561c3e['values']})),_0x3af033=_0x34019b[_0xa68d02(0x249)]??_0x41d3d4[_0xa68d02(0x167)][_0xa68d02(0x1b1)](_0x3b5789=>y(_0x41d3d4[_0xa68d02(0x214)][_0x3b5789]));return(0x0,c[_0xa68d02(0x1ff)])({..._0x34019b,'table':_0x41d3d4,'fieldIds':_0x3af033,'rows':_0xc9fc6c});}[_0x2481ff(0x248)](){const _0x3702fe=_0x2481ff;return this[_0x3702fe(0x1cb)]()['primaryFieldId'];}[_0x2481ff(0x150)](){const _0x4ceeca=_0x2481ff;let _0x151fc9=this[_0x4ceeca(0x1cb)]();return _0x151fc9[_0x4ceeca(0x167)][_0x4ceeca(0x21d)](_0x5203b8=>_0x151fc9[_0x4ceeca(0x214)][_0x5203b8])[_0x4ceeca(0x1b1)](y)[_0x4ceeca(0x21d)](_0x585d70=>this[_0x4ceeca(0x15c)][_0x4ceeca(0x187)](_,this[_0x4ceeca(0x217)],this,_0x585d70['id']));}[_0x2481ff(0x1da)](_0x5d79d2){const _0x4e6cd4=_0x2481ff;let _0x1df6d7=this[_0x4e6cd4(0x1cb)]()['fields'][_0x5d79d2];return y(_0x1df6d7)?this[_0x4e6cd4(0x15c)][_0x4e6cd4(0x187)](_,this[_0x4e6cd4(0x217)],this,_0x1df6d7['id']):null;}[_0x2481ff(0x15b)](_0x1e5350){const _0x4165e6=_0x2481ff;let _0x896fee=this['_getTable']()['fields'],_0x51fd72=Object[_0x4165e6(0x11e)](_0x896fee)[_0x4165e6(0x260)](_0x477aa8=>y(_0x477aa8)&&_0x477aa8['name']===_0x1e5350);return _0x51fd72?this[_0x4165e6(0x15c)][_0x4165e6(0x187)](_,this[_0x4165e6(0x217)],this,_0x51fd72['id']):null;}[_0x2481ff(0x20c)](){const _0x680ac7=_0x2481ff;let _0x10b93e=this[_0x680ac7(0x1cb)]()[_0x680ac7(0x1b6)];return this[_0x680ac7(0x15c)][_0x680ac7(0x187)](_,this[_0x680ac7(0x217)],this,_0x10b93e);}[_0x2481ff(0x183)](_0x4fe23c,_0xc9b1c2,_0x549120){const _0x2bcbca=_0x2481ff;var _0xed2e96,_0xe6800f;if(!Object[_0x2bcbca(0x11e)](l[_0x2bcbca(0x272)])[_0x2bcbca(0x1ee)](_0x4da259=>_0x4da259===_0xc9b1c2))throw Error(_0x2bcbca(0x23f)+String(_0xc9b1c2)+'\x22.');if(_0xc9b1c2===l[_0x2bcbca(0x272)][_0x2bcbca(0x19e)]&&this[_0x2bcbca(0x293)](_0x4fe23c,_0x549120),_0xc9b1c2===l['BaseFieldType']['RecordLink']&&(typeof(_0x549120==null||(_0xed2e96=_0x549120[_0x2bcbca(0x1a3)])==null||(_0xed2e96=_0xed2e96[_0x2bcbca(0x147)])==null?void 0x0:_0xed2e96['targetTableId'])!=_0x2bcbca(0x20e)||typeof _0x549120[_0x2bcbca(0x1a3)][_0x2bcbca(0x147)][_0x2bcbca(0x277)]!=_0x2bcbca(0x24c)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x5a2224={..._0x549120==null?void 0x0:_0x549120[_0x2bcbca(0x1a3)],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x4fe23c,'type':_0xc9b1c2,'config':(_0x549120==null||(_0xe6800f=_0x549120[_0x2bcbca(0x1a3)])==null?void 0x0:_0xe6800f[_0x2bcbca(0x147)])??{}};if(!this['_commandService']['syncExecuteCommand'](c[_0x2bcbca(0x266)]['id'],{'unitId':this['_base'][_0x2bcbca(0x178)](),'tableId':this[_0x2bcbca(0x14c)],'field':_0x5a2224,'index':_0x549120==null?void 0x0:_0x549120['index']}))throw Error(_0x2bcbca(0x29a)+_0x4fe23c+'\x22');return this[_0x2bcbca(0x15c)][_0x2bcbca(0x187)](_,this[_0x2bcbca(0x217)],this,_0x5a2224['id']);}[_0x2481ff(0x293)](_0x20b948,_0x245219){const _0x34488a=_0x2481ff;var _0x52d289;if(!_0x245219||!(_0x34488a(0x1c7)in _0x245219)||!Array[_0x34488a(0x1a4)](_0x245219[_0x34488a(0x1c7)]))throw Error(_0x34488a(0x287));let _0x3e8be4=this[_0x34488a(0x13e)][_0x34488a(0x13f)](c[_0x34488a(0x1d4)]['id'],{'unitId':this[_0x34488a(0x217)][_0x34488a(0x178)](),'tableId':this['_tableId'],'formula':String(((_0x52d289=_0x245219['field'])==null||(_0x52d289=_0x52d289[_0x34488a(0x147)])==null?void 0x0:_0x52d289['formula'])??'')});if(!_0x3e8be4[_0x34488a(0x21a)])throw Error(_0x3e8be4['reason']??_0x34488a(0x1e3));if(_0x245219['externalReferences']['length']>0x0&&!this['_commandService'][_0x34488a(0x13f)](f[_0x34488a(0x240)]['id'],{'unitId':this['_base']['getId'](),'references':_0x245219[_0x34488a(0x1c7)]}))throw Error(_0x34488a(0x129)+_0x20b948+'\x22');}[_0x2481ff(0x228)](){const _0x5e661f=_0x2481ff;return this[_0x5e661f(0x184)]()[_0x5e661f(0x21d)](_0x424683=>this[_0x5e661f(0x15c)][_0x5e661f(0x187)](I,this[_0x5e661f(0x217)],this,_0x424683,this[_0x5e661f(0x15c)]));}[_0x2481ff(0x18c)](_0x4b20d2){const _0x35d0ca=_0x2481ff;return this['_getTable']()['records'][_0x4b20d2]?this[_0x35d0ca(0x15c)][_0x35d0ca(0x187)](I,this['_base'],this,_0x4b20d2,this[_0x35d0ca(0x15c)]):null;}[_0x2481ff(0x163)](_0xcc57ec={}){const _0x57926c=_0x2481ff;let _0x212c6f=this[_0x57926c(0x1cb)](),_0x11aa56=this['_resolveRecordIds'](_0xcc57ec),_0x295ec8=Math['max'](0x0,_0xcc57ec[_0x57926c(0x194)]??0x0),_0x38ea19=_0xcc57ec[_0x57926c(0x118)]==null?null:Math[_0x57926c(0x26a)](0x0,_0xcc57ec[_0x57926c(0x118)]),_0x23cdba=H(_0x11aa56[_0x57926c(0x21d)](_0x5d54b2=>_0x212c6f[_0x57926c(0x151)][_0x5d54b2])[_0x57926c(0x1b1)](_0x20bb56=>W(_0x20bb56,_0x212c6f,_0xcc57ec['filter'])),_0x212c6f,_0xcc57ec[_0x57926c(0x20f)]);return{'records':V(_0x23cdba,_0xcc57ec)['map'](_0x168644=>this['_injector'][_0x57926c(0x187)](I,this[_0x57926c(0x217)],this,_0x168644['id'],this[_0x57926c(0x15c)])),'total':_0x23cdba[_0x57926c(0x256)],'offset':_0x295ec8,'limit':_0x38ea19,'hasMore':_0x38ea19!=null&&_0x295ec8+_0x38ea19<_0x23cdba[_0x57926c(0x256)]};}[_0x2481ff(0x126)](_0x4b6621,_0x5b0660='id',_0xe4ffe4){const _0x1ed946=_0x2481ff;let _0x2fbd34=this['_getTable'](),_0x3cf2fc=Date[_0x1ed946(0x255)](),_0x2e8009={..._0xe4ffe4,'id':(0x0,l[_0x1ed946(0x204)])(0x6),'values':b(_0x2fbd34,_0x4b6621,_0x5b0660),'orderKey':(_0xe4ffe4==null?void 0x0:_0xe4ffe4[_0x1ed946(0x1b8)])||''+_0x3cf2fc,'createdAt':(_0xe4ffe4==null?void 0x0:_0xe4ffe4[_0x1ed946(0x1d2)])||_0x3cf2fc,'updatedAt':(_0xe4ffe4==null?void 0x0:_0xe4ffe4['updatedAt'])||_0x3cf2fc};if(!this[_0x1ed946(0x13e)][_0x1ed946(0x13f)](c[_0x1ed946(0x1a8)]['id'],{'unitId':this['_base'][_0x1ed946(0x178)](),'tableId':this[_0x1ed946(0x14c)],'record':_0x2e8009,'source':c[_0x1ed946(0x216)][_0x1ed946(0x2b3)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x2e8009['id']+'\x22');return this['_injector'][_0x1ed946(0x187)](I,this[_0x1ed946(0x217)],this,_0x2e8009['id'],this[_0x1ed946(0x15c)]);}[_0x2481ff(0x1af)](_0x353693){const _0x1ca153=_0x2481ff;if(!_0x353693['length'])return[];let _0x4198ef=this[_0x1ca153(0x1cb)](),_0x37a42e=Date[_0x1ca153(0x255)](),_0x29ea1f=_0x353693[_0x1ca153(0x21d)]((_0x2517f8,_0x120d7e)=>{const _0x3d4d0d=_0x1ca153;var _0x55b973,_0x53bfe9,_0x165226;return{..._0x2517f8[_0x3d4d0d(0x1b7)],'id':(0x0,l[_0x3d4d0d(0x204)])(0x6),'values':b(_0x4198ef,_0x2517f8[_0x3d4d0d(0x11e)],_0x2517f8[_0x3d4d0d(0x236)]??'id'),'orderKey':((_0x55b973=_0x2517f8[_0x3d4d0d(0x1b7)])==null?void 0x0:_0x55b973[_0x3d4d0d(0x1b8)])||''+(_0x37a42e+_0x120d7e),'createdAt':((_0x53bfe9=_0x2517f8['record'])==null?void 0x0:_0x53bfe9[_0x3d4d0d(0x1d2)])||_0x37a42e,'updatedAt':((_0x165226=_0x2517f8[_0x3d4d0d(0x1b7)])==null?void 0x0:_0x165226[_0x3d4d0d(0x27f)])||_0x37a42e};});if(!this[_0x1ca153(0x13e)]['syncExecuteCommand'](c[_0x1ca153(0x148)]['id'],{'unitId':this[_0x1ca153(0x217)]['getId'](),'tableId':this[_0x1ca153(0x14c)],'records':_0x29ea1f,'source':c['BaseEventSource'][_0x1ca153(0x2b3)]}))throw Error(_0x1ca153(0x1dd));return _0x29ea1f[_0x1ca153(0x21d)](_0x34d07d=>this['_injector'][_0x1ca153(0x187)](I,this['_base'],this,_0x34d07d['id'],this[_0x1ca153(0x15c)]));}[_0x2481ff(0x203)](_0x57437d){const _0x23db01=_0x2481ff;return!_0x57437d[_0x23db01(0x256)]||this['_commandService'][_0x23db01(0x13f)](c[_0x23db01(0x201)]['id'],{'unitId':this[_0x23db01(0x217)][_0x23db01(0x178)](),'tableId':this[_0x23db01(0x14c)],'recordIds':_0x57437d,'source':c[_0x23db01(0x216)]['Facade']});}[_0x2481ff(0x1d1)](_0x2a19e8,_0x1b432e,_0x22b293=0x1,_0x59aed3=0x1){const _0x5d944d=_0x2481ff;return this[_0x5d944d(0x15c)]['createInstance'](A,this['_base'],this,{'startRow':_0x2a19e8,'endRow':_0x2a19e8+_0x22b293-0x1,'startColumn':_0x1b432e,'endColumn':_0x1b432e+_0x59aed3-0x1},this[_0x5d944d(0x15c)]);}[_0x2481ff(0x28b)](){const _0x3d21c3=_0x2481ff;var _0x920643;let _0x24104a=(0x0,c[_0x3d21c3(0x1ab)])(this['_getTable']()),_0x25a196=((_0x920643=_0x24104a[_0x3d21c3(0x13c)])==null?void 0x0:_0x920643[_0x3d21c3(0x256)])??0x0,_0x1089f2=_0x24104a['fieldOrder'][_0x3d21c3(0x1b1)](_0x4938a0=>y(_0x24104a[_0x3d21c3(0x214)][_0x4938a0]))['length'];return this['getRange'](0x0,0x0,Math[_0x3d21c3(0x26a)](_0x25a196,0x1),Math[_0x3d21c3(0x26a)](_0x1089f2,0x1));}['getViews'](){const _0x367624=_0x2481ff;let _0x35dfd7=this['_getTable']();return _0x35dfd7['viewOrder']['filter'](_0x2f72a5=>_0x35dfd7[_0x367624(0x2ba)][_0x2f72a5])[_0x367624(0x21d)](_0x2a77dd=>this['_injector'][_0x367624(0x187)](z,this[_0x367624(0x217)],this,_0x2a77dd,this[_0x367624(0x15c)]));}[_0x2481ff(0x1f0)](_0x2ffff9){const _0x456bfd=_0x2481ff;return this[_0x456bfd(0x1cb)]()[_0x456bfd(0x2ba)][_0x2ffff9]?this[_0x456bfd(0x15c)][_0x456bfd(0x187)](z,this['_base'],this,_0x2ffff9,this['_injector']):null;}['getViewByName'](_0x27fd8b){const _0x1f0bc0=_0x2481ff;let _0x235cd4=this[_0x1f0bc0(0x1cb)](),_0xde4941=Object[_0x1f0bc0(0x11e)](_0x235cd4[_0x1f0bc0(0x2ba)])[_0x1f0bc0(0x260)](_0x10e716=>_0x10e716[_0x1f0bc0(0x22c)]===_0x27fd8b);return _0xde4941?this[_0x1f0bc0(0x15c)]['createInstance'](z,this[_0x1f0bc0(0x217)],this,_0xde4941['id'],this[_0x1f0bc0(0x15c)]):null;}[_0x2481ff(0x1ef)](_0x20b993,_0x56f783,_0x37b7e4){const _0x3fc52a=_0x2481ff;var _0x3d441f,_0x5beafa,_0x29ebda,_0x4331be;let _0x326ca1=this[_0x3fc52a(0x1cb)](),_0x169719=(_0x37b7e4==null||(_0x3d441f=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x3d441f['fieldOrder'])??_0x326ca1[_0x3fc52a(0x167)],_0x4d5305=[l['BASE_RECORD_ID_FIELD_ID'],..._0x169719[_0x3fc52a(0x1b1)](_0x4a0524=>y(_0x326ca1[_0x3fc52a(0x214)][_0x4a0524]))],_0x322587={..._0x37b7e4==null?void 0x0:_0x37b7e4[_0x3fc52a(0x12f)],'id':(0x0,l[_0x3fc52a(0x204)])(0x6),'name':_0x20b993,'type':_0x56f783,'tableId':this[_0x3fc52a(0x14c)],'config':(_0x37b7e4==null||(_0x5beafa=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x5beafa[_0x3fc52a(0x147)])??{},'fieldOrder':_0x4d5305,'fieldSettings':{..._0x37b7e4==null||(_0x29ebda=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x29ebda[_0x3fc52a(0x19c)],[l[_0x3fc52a(0x2b9)]]:{..._0x37b7e4==null||(_0x4331be=_0x37b7e4[_0x3fc52a(0x12f)])==null||(_0x4331be=_0x4331be['fieldSettings'])==null?void 0x0:_0x4331be[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x3fc52a(0x13e)][_0x3fc52a(0x13f)](c[_0x3fc52a(0x257)]['id'],{'unitId':this[_0x3fc52a(0x217)]['getId'](),'tableId':this['_tableId'],'view':_0x322587,'index':_0x37b7e4==null?void 0x0:_0x37b7e4[_0x3fc52a(0x1d9)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x20b993+'\x22');return this[_0x3fc52a(0x15c)][_0x3fc52a(0x187)](z,this['_base'],this,_0x322587['id'],this[_0x3fc52a(0x15c)]);}['getSchema'](){const _0x14e92f=_0x2481ff;let _0x1d4012=this[_0x14e92f(0x1cb)](),_0x1e4827=_0x1d4012[_0x14e92f(0x167)][_0x14e92f(0x1b1)](_0x1ed693=>y(_0x1d4012['fields'][_0x1ed693])),_0x4b959c=_0x1d4012['viewOrder'][_0x14e92f(0x1b1)](_0x2c349c=>_0x1d4012[_0x14e92f(0x2ba)][_0x2c349c]);return{'id':_0x1d4012['id'],'name':_0x1d4012[_0x14e92f(0x22c)],'formulaName':this[_0x14e92f(0x171)](),'primaryFieldId':_0x1d4012[_0x14e92f(0x1b6)],'fieldIds':_0x1e4827,'viewIds':_0x4b959c,'recordCount':this[_0x14e92f(0x184)]()['length'],'fields':_0x1e4827[_0x14e92f(0x21d)](_0x124b80=>{const _0x1a4f1b=_0x14e92f;let _0x4dec81=_0x1d4012[_0x1a4f1b(0x214)][_0x124b80];return{'id':_0x4dec81['id'],'name':_0x4dec81[_0x1a4f1b(0x22c)],'type':_0x4dec81[_0x1a4f1b(0x18e)],'config':_0x4dec81['config'],'readonly':_0x4dec81[_0x1a4f1b(0x24d)],'description':_0x4dec81['description']};}),'views':_0x4b959c[_0x14e92f(0x21d)](_0x248808=>{const _0x2049a3=_0x14e92f;let _0x5f0803=_0x1d4012['views'][_0x248808];return{'id':_0x5f0803['id'],'name':_0x5f0803[_0x2049a3(0x22c)],'type':_0x5f0803[_0x2049a3(0x18e)]};})};}[_0x2481ff(0x1cb)](){const _0x329568=_0x2481ff;let _0x32b174=this['_base'][_0x329568(0x176)]()['getSnapshot']()[_0x329568(0x223)][this[_0x329568(0x14c)]];if(!_0x32b174)throw Error(_0x329568(0x276)+this[_0x329568(0x14c)]+_0x329568(0x21f));return _0x32b174;}[_0x2481ff(0x184)](_0x3f89f1={}){const _0x417a07=_0x2481ff;let _0x59decf=this[_0x417a07(0x217)]['getBase']()[_0x417a07(0x1b9)](),_0x177a6e=this[_0x417a07(0x1cb)]();if(_0x3f89f1[_0x417a07(0x1f3)]){let _0x255673=this[_0x417a07(0x1de)][_0x417a07(0x2a9)](_0x59decf,this[_0x417a07(0x14c)],_0x3f89f1[_0x417a07(0x1f3)]);if(_0x417a07(0x2bb)in _0x255673&&Array[_0x417a07(0x1a4)](_0x255673[_0x417a07(0x2bb)]))return _0x255673[_0x417a07(0x2bb)][_0x417a07(0x21d)](_0x358a64=>_0x358a64[_0x417a07(0x1ec)]);}return(_0x177a6e[_0x417a07(0x13c)]?_0x177a6e[_0x417a07(0x13c)][_0x417a07(0x21d)](_0x1b0f5e=>_0x177a6e['records'][_0x1b0f5e]):Object[_0x417a07(0x11e)](_0x177a6e[_0x417a07(0x151)])[_0x417a07(0x20f)]((_0x1d1520,_0x4cfddd)=>_0x1d1520[_0x417a07(0x1b8)]['localeCompare'](_0x4cfddd[_0x417a07(0x1b8)])))['filter'](_0x3f0ec9=>_0x3f0ec9)['map'](_0x2bdd96=>_0x2bdd96['id']);}};B=g([h(0x3,l[_0x2481ff(0x27d)]),h(0x4,l[_0x2481ff(0x17f)]),h(0x5,c[_0x2481ff(0x283)])],B);function V(_0x17d025,_0x492f66){const _0x42bd79=_0x2481ff;let _0x1cdffa=Math[_0x42bd79(0x26a)](0x0,_0x492f66['offset']??0x0);return _0x492f66['limit']==null?_0x17d025[_0x42bd79(0x1a6)](_0x1cdffa):_0x17d025[_0x42bd79(0x1a6)](_0x1cdffa,_0x1cdffa+Math['max'](0x0,_0x492f66[_0x42bd79(0x118)]));}function H(_0x235c67,_0x2c08ac,_0x407252=[]){const _0x4d9c38=_0x2481ff;return _0x407252[_0x4d9c38(0x256)]?[..._0x235c67][_0x4d9c38(0x20f)]((_0x5044ce,_0x3227ac)=>{const _0x456fbc=_0x4d9c38;for(let _0x4c0416 of _0x407252){var _0x415b84;let _0x13ddf0=_0x4c0416['direction']===l['BaseSortDirection'][_0x456fbc(0x1a7)]?-0x1:0x1,_0x11831f=U(_0x5044ce[_0x456fbc(0x11e)][_0x4c0416[_0x456fbc(0x195)]],_0x3227ac[_0x456fbc(0x11e)][_0x4c0416[_0x456fbc(0x195)]],(_0x415b84=_0x2c08ac['fields'][_0x4c0416[_0x456fbc(0x195)]])==null?void 0x0:_0x415b84[_0x456fbc(0x18e)]);if(_0x11831f!==0x0)return _0x11831f*_0x13ddf0;}return String(_0x5044ce[_0x456fbc(0x1b8)]??_0x5044ce['id'])[_0x456fbc(0x213)](String(_0x3227ac['orderKey']??_0x3227ac['id']));}):_0x235c67;}function U(_0x55d2d5,_0x445592,_0xff3e08){const _0x250d59=_0x2481ff;return _0x55d2d5==null&&_0x445592==null?0x0:_0x55d2d5==null?-0x1:_0x445592==null?0x1:typeof _0x55d2d5==_0x250d59(0x14d)&&typeof _0x445592==_0x250d59(0x14d)?_0x55d2d5-_0x445592:_0xff3e08===l[_0x250d59(0x272)][_0x250d59(0x13d)]?Number(_0x55d2d5)-Number(_0x445592):String(_0x55d2d5)[_0x250d59(0x213)](String(_0x445592));}function W(_0x1efc3f,_0x169911,_0x5686d1){const _0x26fc00=_0x2481ff;var _0x95b61e;if(!_0x5686d1||!((_0x95b61e=_0x5686d1[_0x26fc00(0x10d)])!=null&&_0x95b61e['length']))return!0x0;let {conjunction:_0x49dc8b=l[_0x26fc00(0x28e)]['OR'],conditions:_0x44ebd5}=_0x5686d1;return _0x49dc8b===l[_0x26fc00(0x28e)]['AND']&&_0x44ebd5['length']>0x1?_0x44ebd5['every'](_0x1dc27f=>G(_0x1efc3f,_0x169911,_0x1dc27f)):_0x44ebd5[_0x26fc00(0x1ee)](_0x2d087e=>G(_0x1efc3f,_0x169911,_0x2d087e));}function G(_0x32f5d3,_0x2d31a4,_0xe07cad){const _0x2d20c6=_0x2481ff;let _0x2b8285=_0x32f5d3[_0x2d20c6(0x11e)][_0xe07cad['fieldId']],_0x1227d1=_0x2d31a4['fields'][_0xe07cad['fieldId']];if(K(_0xe07cad)){let _0x4a4682=q(_0xe07cad)[_0x2d20c6(0x1e4)](String(_0x2b8285??''));return _0xe07cad[_0x2d20c6(0x15f)]===_0x2d20c6(0x2a6)?_0x4a4682:!_0x4a4682;}return!_0x1227d1||(0x0,c[_0x2d20c6(0x278)])(_0x2b8285,_0xe07cad[_0x2d20c6(0x15f)],_0xe07cad[_0x2d20c6(0x254)],_0x1227d1);}function K(_0x5cde55){const _0x30150d=_0x2481ff;return _0x5cde55[_0x30150d(0x15f)]===_0x30150d(0x2a6)||_0x5cde55[_0x30150d(0x15f)]===_0x30150d(0x185);}function q(_0x33b5cc){const _0x2eed0a=_0x2481ff;let _0x3eb20c=String(_0x33b5cc[_0x2eed0a(0x254)]??'');if(_0x3eb20c[_0x2eed0a(0x256)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3eb20c,_0x33b5cc[_0x2eed0a(0x1f4)]?void 0x0:'i');}catch(_0x58e2df){throw Error(_0x2eed0a(0x1f2)+_0x3eb20c+'.\x20'+(_0x58e2df instanceof Error?_0x58e2df[_0x2eed0a(0x25b)]:String(_0x58e2df)));}}function J(_0x5dec44,_0x3aeb7e,_0x4c1e3f){const _0x6c0228=_0x2481ff;if(_0x4c1e3f[_0x6c0228(0x18e)]!==_0x6c0228(0x132)&&_0x4c1e3f['type']!=='custom'){var _0x263d58;if(_0x4c1e3f['type']===l[_0x6c0228(0x175)][_0x6c0228(0x239)]){var _0x44fce4;let _0x3aba01=[((_0x44fce4=_0x4c1e3f[_0x6c0228(0x214)])==null||(_0x44fce4=_0x44fce4[0x0])==null?void 0x0:_0x44fce4['id'])??_0x5dec44[_0x6c0228(0x1b6)],..._0x4c1e3f[_0x6c0228(0x25c)]??[]];return Array[_0x6c0228(0x26d)](new Set(_0x3aba01[_0x6c0228(0x1b1)](_0x1243b5=>!!_0x5dec44['fields'][_0x1243b5])));}if((_0x263d58=_0x4c1e3f['fields'])!=null&&_0x263d58[_0x6c0228(0x256)])return _0x4c1e3f[_0x6c0228(0x214)][_0x6c0228(0x21d)](_0x5e5f32=>_0x5e5f32['id'])[_0x6c0228(0x1b1)](_0x2c9a0c=>{const _0xd2890d=_0x6c0228;var _0x15af68;return!(!_0x5dec44[_0xd2890d(0x214)][_0x2c9a0c]||_0x3aeb7e!=null&&(_0x15af68=_0x3aeb7e[_0xd2890d(0x19c)])!=null&&(_0x15af68=_0x15af68[_0x2c9a0c])!=null&&_0x15af68['hidden']);});}return _0x5dec44['fieldOrder'][_0x6c0228(0x1b1)](_0x39da6e=>{const _0x44f518=_0x6c0228;var _0x285d4f;return!(!_0x5dec44[_0x44f518(0x214)][_0x39da6e]||_0x3aeb7e!=null&&(_0x285d4f=_0x3aeb7e['fieldSettings'])!=null&&(_0x285d4f=_0x285d4f[_0x39da6e])!=null&&_0x285d4f[_0x44f518(0x280)]);});}let Y=class extends u['FBase']{constructor(_0x14f9d8,_0x11ea90,_0x473a3c,_0x5069a2,_0x5ab6ea){const _0x1a77b8=_0x2481ff;super(),this[_0x1a77b8(0x217)]=_0x14f9d8,this[_0x1a77b8(0x15c)]=_0x11ea90,this[_0x1a77b8(0x1b0)]=_0x473a3c,this[_0x1a77b8(0x13e)]=_0x5069a2,this[_0x1a77b8(0x267)]=_0x5ab6ea;}[_0x2481ff(0x176)](){const _0x1b1e8b=_0x2481ff;return this[_0x1b1e8b(0x217)];}[_0x2481ff(0x178)](){const _0x1ed976=_0x2481ff;return this[_0x1ed976(0x217)]['getUnitId']();}[_0x2481ff(0x1f1)](){const _0x5d29b3=_0x2481ff;return new p(this[_0x5d29b3(0x178)](),this[_0x5d29b3(0x13e)],this[_0x5d29b3(0x267)]);}[_0x2481ff(0x2a3)](){const _0x44326e=_0x2481ff;return this['_resourceLoaderService'][_0x44326e(0x16f)](this[_0x44326e(0x178)]())??l[_0x44326e(0x2b1)][_0x44326e(0x192)](this['_base'][_0x44326e(0x1b9)]());}['getName'](){const _0x1fb73b=_0x2481ff;return this[_0x1fb73b(0x217)][_0x1fb73b(0x1b9)]()[_0x1fb73b(0x22c)];}[_0x2481ff(0x22d)](_0x43c7ba){const _0x4148e9=_0x2481ff;this['_commandService'][_0x4148e9(0x13f)](c[_0x4148e9(0x27a)]['id'],{'unitId':this[_0x4148e9(0x178)](),'name':_0x43c7ba});}[_0x2481ff(0x1fa)](){const _0x48964c=_0x2481ff;let _0x37b3b4=this[_0x48964c(0x217)]['getSnapshot']();return _0x37b3b4['tableOrder'][_0x48964c(0x21d)](_0x35636c=>_0x37b3b4[_0x48964c(0x223)][_0x35636c])[_0x48964c(0x1b1)](_0xcf4b2b=>_0xcf4b2b)[_0x48964c(0x21d)](_0x412cb5=>this[_0x48964c(0x15c)][_0x48964c(0x187)](B,this,_0x412cb5['id'],this[_0x48964c(0x15c)]));}[_0x2481ff(0x289)](_0x2755b5){const _0x44d2ab=_0x2481ff;let _0x585e64=this['_base'][_0x44d2ab(0x1b9)]()[_0x44d2ab(0x223)][_0x2755b5];return _0x585e64?this[_0x44d2ab(0x15c)]['createInstance'](B,this,_0x585e64['id'],this['_injector']):null;}[_0x2481ff(0x244)](_0x213d77){const _0x5a683a=_0x2481ff;let _0x1e7265=this[_0x5a683a(0x217)]['getSnapshot'](),_0x3461b9=Object['values'](_0x1e7265['tables'])[_0x5a683a(0x260)](_0x260b9d=>_0x260b9d[_0x5a683a(0x22c)]===_0x213d77);return _0x3461b9?this[_0x5a683a(0x15c)][_0x5a683a(0x187)](B,this,_0x3461b9['id'],this['_injector']):null;}['insertTable'](_0x46e7ea,_0x43b374){const _0x2cb800=_0x2481ff;let _0x206797=(0x0,l[_0x2cb800(0x1ed)])({'id':(0x0,l[_0x2cb800(0x204)])(),'name':_0x46e7ea,..._0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x2ad)],'primaryFieldName':_0x43b374==null?void 0x0:_0x43b374['primaryFieldName']}),_0x33bd86=l['Tools'][_0x2cb800(0x229)](_0x206797,(_0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x2ad)])??{}),_0x23a1ce=(0x0,c[_0x2cb800(0x17a)])(this['_base']['getSnapshot'](),_0x33bd86[_0x2cb800(0x22c)]);if(!_0x23a1ce[_0x2cb800(0x21a)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x33bd86[_0x2cb800(0x22c)]+_0x2cb800(0x275)+c[_0x2cb800(0x1be)]+'\x20'+_0x23a1ce['reason']);if(!this[_0x2cb800(0x13e)][_0x2cb800(0x13f)](c[_0x2cb800(0x247)]['id'],{'unitId':this[_0x2cb800(0x217)][_0x2cb800(0x26e)](),'table':_0x33bd86,'index':_0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x1d9)]}))throw Error(_0x2cb800(0x28c)+_0x46e7ea+'\x22.');return this[_0x2cb800(0x15c)]['createInstance'](B,this,_0x33bd86['id'],this[_0x2cb800(0x15c)]);}[_0x2481ff(0x18f)](_0x114c8e){const _0x4291b8=_0x2481ff;let _0x2d321d=typeof _0x114c8e==_0x4291b8(0x20e)?_0x114c8e:_0x114c8e[_0x4291b8(0x178)]();if(!this['_commandService'][_0x4291b8(0x13f)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x4291b8(0x217)]['getUnitId'](),'tableId':_0x2d321d}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x2d321d+'\x22.');return!0x0;}[_0x2481ff(0x261)](_0x2ee15b,_0x537596){const _0x43e3fe=_0x2481ff;let _0x613d1a=this[_0x43e3fe(0x217)][_0x43e3fe(0x1b9)](),_0x45b838=typeof _0x2ee15b==_0x43e3fe(0x20e)?_0x2ee15b:_0x2ee15b['getId'](),_0x232ece=_0x613d1a[_0x43e3fe(0x223)][_0x45b838];if(!_0x232ece)throw Error(_0x43e3fe(0x1c6)+_0x45b838+'\x22\x20does\x20not\x20exist.');let _0x276375=_0x613d1a['tableOrder'][_0x43e3fe(0x172)](_0x45b838)+0x1,_0xee4114=(0x0,l[_0x43e3fe(0x204)])(),_0x415f74=(0x0,c['copyBaseTableSnapshot'])(_0x232ece,{'id':_0xee4114,'name':(0x0,c[_0x43e3fe(0x15d)])(_0x613d1a,_0x232ece[_0x43e3fe(0x22c)]+_0x43e3fe(0x191)),'includeRecords':(_0x537596==null?void 0x0:_0x537596[_0x43e3fe(0x11b)])??!0x1,'regenerateViewIds':(_0x537596==null?void 0x0:_0x537596['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x43e3fe(0x13f)](c[_0x43e3fe(0x247)]['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x415f74,'index':_0x276375}))throw Error(_0x43e3fe(0x29e)+_0x45b838+'\x22.');return this['_injector'][_0x43e3fe(0x187)](B,this,_0x415f74['id'],this['_injector']);}['getSchema'](){const _0x1ebfbf=_0x2481ff;let _0x486438=this['_base'][_0x1ebfbf(0x1b9)]();return{'id':_0x486438['id'],'name':_0x486438[_0x1ebfbf(0x22c)],'tables':this[_0x1ebfbf(0x1fa)]()['map'](_0x2e9310=>_0x2e9310['getSchema']())};}};Y=g([h(0x1,(0x0,l[_0x2481ff(0x1a9)])(l['Injector'])),h(0x2,l[_0x2481ff(0x1df)]),h(0x3,l[_0x2481ff(0x27d)]),h(0x4,l['IPermissionService'])],Y);var X=class extends u[_0x2481ff(0x136)]{['_initialize'](){const _0xa895be=_0x2481ff;this['_initBaseBeforeEvents'](),this[_0xa895be(0x1a5)]();}[_0x2481ff(0x1b4)](_0x5d1462={},_0xf050c5){const _0x1f6cbb=_0x2481ff;let _0xe66ec8=this['_univerInstanceService']['createUnit'](l[_0x1f6cbb(0x202)][_0x1f6cbb(0x117)],_0x5d1462,_0xf050c5);return this['_injector'][_0x1f6cbb(0x187)](Y,_0xe66ec8);}[_0x2481ff(0x1bb)](){const _0x3d494a=_0x2481ff;let _0x32881b=this[_0x3d494a(0x13a)]['getCurrentUnitOfType'](l[_0x3d494a(0x202)][_0x3d494a(0x117)]);return _0x32881b?this[_0x3d494a(0x15c)]['createInstance'](Y,_0x32881b):null;}[_0x2481ff(0x176)](_0x1a9eb4){const _0x597b2c=_0x2481ff;let _0x26eca0=this[_0x597b2c(0x13a)]['getUnit'](_0x1a9eb4,l[_0x597b2c(0x202)][_0x597b2c(0x117)]);return _0x26eca0?this[_0x597b2c(0x15c)]['createInstance'](Y,_0x26eca0):null;}[_0x2481ff(0x189)](){const _0x3ef020=_0x2481ff;return this[_0x3ef020(0x13a)][_0x3ef020(0x156)](l[_0x3ef020(0x202)][_0x3ef020(0x117)])[_0x3ef020(0x21d)](_0x4fefd1=>this[_0x3ef020(0x15c)][_0x3ef020(0x187)](Y,_0x4fefd1));}[_0x2481ff(0x1a5)](){const _0x2eb57a=_0x2481ff;this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)]['BaseHierarchyChanged'],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)]((_0x2b3ec6,_0x1a9c03)=>{const _0x1774cc=_0x2eb57a;var _0x32e943;if(!Z(_0x2b3ec6,c[_0x1774cc(0x1fe)]))return;let _0x132664=_0x2b3ec6['params'];if(!((_0x32e943=_0x132664[_0x1774cc(0x2b4)])!=null&&_0x32e943[_0x1774cc(0x256)]))return;let _0x2a826d=this['getBase'](_0x132664['unitId']),_0x5cb46a=_0x2a826d==null?void 0x0:_0x2a826d[_0x1774cc(0x289)](_0x132664[_0x1774cc(0x2b4)][0x0][_0x1774cc(0x14f)]);if(!_0x2a826d||!_0x5cb46a)return;let _0x3e3add={'base':_0x2a826d,'table':_0x5cb46a,'changes':_0x132664[_0x1774cc(0x2b4)],'source':_0x1a9c03!=null&&_0x1a9c03[_0x1774cc(0x157)]?c[_0x1774cc(0x216)]['Remote']:_0x132664['source']??c[_0x1774cc(0x216)]['UI']};this[_0x1774cc(0x16e)](this[_0x1774cc(0x25a)][_0x1774cc(0x10f)],_0x3e3add);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x179)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0x549438=>{const _0x3a39a9=_0x2eb57a;if(_0x549438['id']!==c[_0x3a39a9(0x247)]['id'])return;let {unitId:_0x50d6bb,table:_0x1d40a4,index:_0x3989f0}=_0x549438[_0x3a39a9(0x219)],_0x462f3f=this[_0x3a39a9(0x176)](_0x50d6bb);if(!_0x462f3f)return;let _0x45a4de={'base':_0x462f3f,'table':_0x1d40a4,'index':_0x3989f0};this['fireEvent'](this['Event'][_0x3a39a9(0x179)],_0x45a4de);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this['Event'][_0x2eb57a(0x1dc)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0xdc3768=>{const _0x2503e2=_0x2eb57a;if(_0xdc3768['id']!==c[_0x2503e2(0x266)]['id'])return;let {unitId:_0x252570,tableId:_0x589d0d,field:_0x29179e,index:_0x158c61,viewIndexes:_0x1b268c}=_0xdc3768[_0x2503e2(0x219)],_0x17edf0=this[_0x2503e2(0x176)](_0x252570);if(!_0x17edf0)return;let _0x2ad076=_0x17edf0[_0x2503e2(0x289)](_0x589d0d);if(!_0x2ad076)return;let _0xb40f18={'base':_0x17edf0,'table':_0x2ad076,'field':_0x29179e,'index':_0x158c61,'viewIndexes':_0x1b268c};this[_0x2503e2(0x16e)](this[_0x2503e2(0x25a)][_0x2503e2(0x1dc)],_0xb40f18);}))),this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x14e)],()=>this[_0x2eb57a(0x13e)]['onCommandExecuted'](_0x34b5a1=>{const _0x327ffb=_0x2eb57a;if(_0x34b5a1['id']!==c['CreateBaseRecordCommand']['id']&&_0x34b5a1['id']!==c[_0x327ffb(0x148)]['id'])return;let _0x19949e=_0x34b5a1[_0x327ffb(0x219)],{unitId:_0x547d06,tableId:_0x350455}=_0x19949e,_0x260717=_0x19949e[_0x327ffb(0x151)]??[_0x19949e[_0x327ffb(0x1b7)]],_0x23a0a9=this['getBase'](_0x547d06);if(!_0x23a0a9)return;let _0x6ebfbe=_0x23a0a9[_0x327ffb(0x289)](_0x350455);if(!_0x6ebfbe)return;let _0x3918f7={'base':_0x23a0a9,'table':_0x6ebfbe,'records':_0x260717};this[_0x327ffb(0x16e)](this[_0x327ffb(0x25a)]['BaseTableRecordCreated'],_0x3918f7);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x209)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0x1e01c8=>{const _0x490c3b=_0x2eb57a;if(_0x1e01c8['id']!==c[_0x490c3b(0x257)]['id'])return;let {unitId:_0x10e43f,tableId:_0x4962b,view:_0x58d92a,index:_0x36d6e7}=_0x1e01c8[_0x490c3b(0x219)],_0x154dbf=this[_0x490c3b(0x176)](_0x10e43f);if(!_0x154dbf)return;let _0x3c07ab=_0x154dbf[_0x490c3b(0x289)](_0x4962b);if(!_0x3c07ab)return;let _0x240ff9={'base':_0x154dbf,'table':_0x3c07ab,'view':_0x58d92a,'index':_0x36d6e7};this[_0x490c3b(0x16e)](this[_0x490c3b(0x25a)][_0x490c3b(0x209)],_0x240ff9);}))),this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x12e)],()=>this['_commandService']['onCommandExecuted'](_0x33e74e=>{const _0x4a7570=_0x2eb57a;if(_0x33e74e['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x27977e,tableId:_0x32ef10,recordId:_0x2c13ff,fieldId:_0x3e3a30,value:_0x1f92e7}=_0x33e74e[_0x4a7570(0x219)],_0xe5d5c=this[_0x4a7570(0x176)](_0x27977e);if(!_0xe5d5c)return;let _0x294c13=_0xe5d5c['getTableById'](_0x32ef10);if(!_0x294c13)return;let _0x22f432=_0x294c13[_0x4a7570(0x1da)](_0x3e3a30);if(!_0x22f432)return;let _0x50e3af=_0x294c13[_0x4a7570(0x18c)](_0x2c13ff);if(!_0x50e3af)return;let _0x5451ce={'base':_0xe5d5c,'table':_0x294c13,'field':_0x22f432,'record':_0x50e3af,'value':_0x1f92e7};this[_0x4a7570(0x16e)](this[_0x4a7570(0x25a)][_0x4a7570(0x12e)],_0x5451ce);})));}[_0x2481ff(0x22b)](){const _0x19a011=_0x2481ff;this[_0x19a011(0x23e)](this[_0x19a011(0x1f9)](this['Event'][_0x19a011(0x1e5)],()=>this[_0x19a011(0x13e)]['beforeCommandExecuted'](_0x1b3169=>{const _0x4d5be5=_0x19a011;if(Z(_0x1b3169,c['SetBaseRecordValuesCommand'])){let {unitId:_0x10ac27,tableId:_0x44e9f8,patches:_0x2192c4,source:_0x1c17a1=c['BaseEventSource']['UI']}=_0x1b3169[_0x4d5be5(0x219)],_0x2c0fd5=this[_0x4d5be5(0x206)](_0x10ac27,_0x44e9f8);if(!_0x2c0fd5)return;this[_0x4d5be5(0x27b)](_0x2c0fd5[_0x4d5be5(0x10e)],_0x2c0fd5[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x1a1)])(_0x2c0fd5['table']['getTable'](),_0x2192c4),_0x1c17a1);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x27e)])){let {unitId:_0x43bb38,tableId:_0x5632dc,patches:_0x299eba,source:_0x2b18c7=c[_0x4d5be5(0x216)]['UI']}=_0x1b3169[_0x4d5be5(0x219)],_0x26d482=this[_0x4d5be5(0x206)](_0x43bb38,_0x5632dc);if(!_0x26d482)return;let _0x534f25=_0x26d482['table'][_0x4d5be5(0x1d8)]();this[_0x4d5be5(0x27b)](_0x26d482['base'],_0x26d482[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x1a1)])(_0x534f25,(0x0,c[_0x4d5be5(0x16d)])(_0x534f25,_0x299eba)),_0x2b18c7);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x1a8)])){let _0x4243df=_0x1b3169[_0x4d5be5(0x219)],_0x1213b2=this[_0x4d5be5(0x206)](_0x4243df[_0x4d5be5(0x26f)],_0x4243df[_0x4d5be5(0x14f)]);if(!_0x1213b2)return;this[_0x4d5be5(0x27b)](_0x1213b2[_0x4d5be5(0x10e)],_0x1213b2['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x1213b2[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),[_0x4243df[_0x4d5be5(0x1b7)]]),_0x4243df[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c['BatchCreateBaseRecordsCommand'])){let _0x887553=_0x1b3169[_0x4d5be5(0x219)],_0x49580c=this['_getHierarchyEventContext'](_0x887553[_0x4d5be5(0x26f)],_0x887553[_0x4d5be5(0x14f)]);if(!_0x49580c)return;this[_0x4d5be5(0x27b)](_0x49580c[_0x4d5be5(0x10e)],_0x49580c[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x245)])(_0x49580c[_0x4d5be5(0x2ad)]['getTable'](),_0x887553[_0x4d5be5(0x151)]),_0x887553['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x23a)])){let _0x335245=_0x1b3169[_0x4d5be5(0x219)],_0x2ee314=this[_0x4d5be5(0x206)](_0x335245[_0x4d5be5(0x26f)],_0x335245[_0x4d5be5(0x14f)]);if(!_0x2ee314)return;this[_0x4d5be5(0x27b)](_0x2ee314[_0x4d5be5(0x10e)],_0x2ee314['table'],(0x0,c[_0x4d5be5(0x245)])(_0x2ee314['table'][_0x4d5be5(0x1d8)](),[_0x335245[_0x4d5be5(0x1b7)]]),_0x335245[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c['MoveBaseHierarchyRecordCommand'])){let _0x169588=_0x1b3169[_0x4d5be5(0x219)],_0x41c887=this[_0x4d5be5(0x206)](_0x169588[_0x4d5be5(0x26f)],_0x169588[_0x4d5be5(0x14f)]);if(!_0x41c887)return;let _0x2e23fb=_0x41c887['table'][_0x4d5be5(0x1d8)](),_0x1bf558=_0x169588['fieldId']??(0x0,c[_0x4d5be5(0x153)])(_0x2e23fb),_0x1b59d7=(0x0,c['buildBaseHierarchyIndex'])(_0x2e23fb,_0x1bf558)[_0x4d5be5(0x292)][_0x4d5be5(0x16b)](_0x169588[_0x4d5be5(0x1ec)])??null;this['_fireBeforeHierarchyChange'](_0x41c887['base'],_0x41c887[_0x4d5be5(0x2ad)],[{'tableId':_0x169588[_0x4d5be5(0x14f)],'fieldId':_0x1bf558,'recordId':_0x169588[_0x4d5be5(0x1ec)],'oldParentRecordId':_0x1b59d7,'parentRecordId':_0x169588[_0x4d5be5(0x135)]}],_0x169588['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x26c)])){let _0x2209f1=_0x1b3169[_0x4d5be5(0x219)],_0x4d8142=this['_getHierarchyEventContext'](_0x2209f1['unitId'],_0x2209f1[_0x4d5be5(0x14f)]);if(!_0x4d8142)return;let _0xf4edb1=_0x2209f1[_0x4d5be5(0x195)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x4d8142[_0x4d5be5(0x2ad)]['getTable']());this[_0x4d5be5(0x27b)](_0x4d8142[_0x4d5be5(0x10e)],_0x4d8142['table'],[{'tableId':_0x2209f1[_0x4d5be5(0x14f)],'fieldId':_0xf4edb1,'recordId':_0x2209f1['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x2209f1['parentRecordId']}],_0x2209f1[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x25e)])){let _0x1cc4f5=_0x1b3169['params'],_0x49e7f4=this[_0x4d5be5(0x206)](_0x1cc4f5[_0x4d5be5(0x26f)],_0x1cc4f5[_0x4d5be5(0x14f)]);if(!_0x49e7f4)return;this[_0x4d5be5(0x27b)](_0x49e7f4[_0x4d5be5(0x10e)],_0x49e7f4['table'],(0x0,c[_0x4d5be5(0x24a)])(_0x49e7f4[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),[_0x1cc4f5[_0x4d5be5(0x1ec)]]),_0x1cc4f5[_0x4d5be5(0x2b0)]??c['BaseEventSource']['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x201)])){let _0x3a8e36=_0x1b3169[_0x4d5be5(0x219)],_0x495f20=this[_0x4d5be5(0x206)](_0x3a8e36[_0x4d5be5(0x26f)],_0x3a8e36[_0x4d5be5(0x14f)]);if(!_0x495f20)return;this[_0x4d5be5(0x27b)](_0x495f20[_0x4d5be5(0x10e)],_0x495f20['table'],(0x0,c[_0x4d5be5(0x24a)])(_0x495f20[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),_0x3a8e36['recordIds']),_0x3a8e36['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(!Z(_0x1b3169,c[_0x4d5be5(0x159)]))return;let _0x36a24c=_0x1b3169[_0x4d5be5(0x219)],_0x5449ab=this[_0x4d5be5(0x206)](_0x36a24c[_0x4d5be5(0x26f)],_0x36a24c[_0x4d5be5(0x14f)]);if(!_0x5449ab)return;let _0x511565=_0x5449ab[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)]();if(!(0x0,c[_0x4d5be5(0x182)])(_0x511565)[_0x4d5be5(0x164)](_0x36a24c[_0x4d5be5(0x195)]))return;let _0x16832e=(0x0,c[_0x4d5be5(0x2c4)])(_0x511565,_0x36a24c['fieldId'])[_0x4d5be5(0x292)]['get'](_0x36a24c[_0x4d5be5(0x1ec)])??null,_0x4c679d=(0x0,c[_0x4d5be5(0x232)])(_0x36a24c[_0x4d5be5(0x254)])[0x0]??null;_0x16832e!==_0x4c679d&&this[_0x4d5be5(0x27b)](_0x5449ab[_0x4d5be5(0x10e)],_0x5449ab[_0x4d5be5(0x2ad)],[{'tableId':_0x36a24c[_0x4d5be5(0x14f)],'fieldId':_0x36a24c[_0x4d5be5(0x195)],'recordId':_0x36a24c['recordId'],'oldParentRecordId':_0x16832e,'parentRecordId':_0x4c679d}],_0x36a24c['source']??c[_0x4d5be5(0x216)]['UI']);}))),this[_0x19a011(0x23e)](this['registerEventHandler'](this[_0x19a011(0x25a)][_0x19a011(0x1e2)],()=>this[_0x19a011(0x13e)]['beforeCommandExecuted'](_0x24e709=>{const _0x44de38=_0x19a011;if(_0x24e709['id']!==c[_0x44de38(0x247)]['id'])return;let {unitId:_0x4c90cd,table:_0x5bd99f,index:_0x1c38dd}=_0x24e709[_0x44de38(0x219)],_0x148ed4=this[_0x44de38(0x176)](_0x4c90cd);if(!_0x148ed4)return;let _0x4014b9={'base':_0x148ed4,'table':_0x5bd99f,'index':_0x1c38dd};if(this[_0x44de38(0x16e)](this[_0x44de38(0x25a)]['BeforeBaseTableCreate'],_0x4014b9),_0x4014b9[_0x44de38(0x1eb)])throw new l[(_0x44de38(0x165))]();}))),this['disposeWithMe'](this[_0x19a011(0x1f9)](this[_0x19a011(0x25a)]['BeforeBaseTableFieldCreate'],()=>this['_commandService'][_0x19a011(0x22e)](_0x24e446=>{const _0x207978=_0x19a011;if(_0x24e446['id']!==c[_0x207978(0x266)]['id'])return;let {unitId:_0x1dc599,tableId:_0x4e571d,field:_0x4bd4ca,index:_0x4b9f4e,viewIndexes:_0x25d6ef}=_0x24e446[_0x207978(0x219)],_0x1e26e5=this[_0x207978(0x176)](_0x1dc599);if(!_0x1e26e5)return;let _0x5e3dd5=_0x1e26e5[_0x207978(0x289)](_0x4e571d);if(!_0x5e3dd5)return;let _0x462e8a={'base':_0x1e26e5,'table':_0x5e3dd5,'field':_0x4bd4ca,'index':_0x4b9f4e,'viewIndexes':_0x25d6ef};if(this['fireEvent'](this[_0x207978(0x25a)][_0x207978(0x208)],_0x462e8a),_0x462e8a['cancel'])throw new l[(_0x207978(0x165))]();}))),this[_0x19a011(0x23e)](this['registerEventHandler'](this[_0x19a011(0x25a)][_0x19a011(0x24e)],()=>this['_commandService']['beforeCommandExecuted'](_0x47b3a4=>{const _0x1a18f7=_0x19a011;if(_0x47b3a4['id']!==c[_0x1a18f7(0x1a8)]['id']&&_0x47b3a4['id']!==c[_0x1a18f7(0x148)]['id'])return;let _0x48ca29=_0x47b3a4[_0x1a18f7(0x219)],{unitId:_0x49962c,tableId:_0x39b4d1}=_0x48ca29,_0x2868f5=_0x48ca29[_0x1a18f7(0x151)]??[_0x48ca29['record']],_0x4de50c=this[_0x1a18f7(0x176)](_0x49962c);if(!_0x4de50c)return;let _0x492c58=_0x4de50c[_0x1a18f7(0x289)](_0x39b4d1);if(!_0x492c58)return;let _0x50844a={'base':_0x4de50c,'table':_0x492c58,'records':_0x2868f5};if(this['fireEvent'](this[_0x1a18f7(0x25a)]['BeforeBaseTableRecordCreate'],_0x50844a),_0x50844a[_0x1a18f7(0x1eb)])throw new l[(_0x1a18f7(0x165))]();}))),this[_0x19a011(0x23e)](this[_0x19a011(0x1f9)](this['Event']['BeforeBaseTableViewCreate'],()=>this[_0x19a011(0x13e)][_0x19a011(0x22e)](_0x17cb7e=>{const _0x44da3c=_0x19a011;if(_0x17cb7e['id']!==c['CreateBaseViewCommand']['id'])return;let {unitId:_0x362dc9,tableId:_0x53f361,view:_0x406c20,index:_0x420add}=_0x17cb7e[_0x44da3c(0x219)],_0x2eee64=this[_0x44da3c(0x176)](_0x362dc9);if(!_0x2eee64)return;let _0x28001e=_0x2eee64[_0x44da3c(0x289)](_0x53f361);if(!_0x28001e)return;let _0x47a4c1={'base':_0x2eee64,'table':_0x28001e,'view':_0x406c20,'index':_0x420add};if(this[_0x44da3c(0x16e)](this[_0x44da3c(0x25a)][_0x44da3c(0x2a1)],_0x47a4c1),_0x47a4c1[_0x44da3c(0x1eb)])throw new l['CanceledError']();}))),this['disposeWithMe'](this[_0x19a011(0x1f9)](this[_0x19a011(0x25a)][_0x19a011(0x149)],()=>this[_0x19a011(0x13e)][_0x19a011(0x22e)](_0xa3da56=>{const _0x15364e=_0x19a011;if(_0xa3da56['id']!==c[_0x15364e(0x159)]['id'])return;let {unitId:_0x30c504,tableId:_0x252d42,recordId:_0x14dde0,fieldId:_0x2d4fee,value:_0x5483c3}=_0xa3da56[_0x15364e(0x219)],_0x3d1d7a=this[_0x15364e(0x176)](_0x30c504);if(!_0x3d1d7a)return;let _0x17af38=_0x3d1d7a['getTableById'](_0x252d42);if(!_0x17af38)return;let _0x73613f=_0x17af38['getFieldById'](_0x2d4fee);if(!_0x73613f)return;let _0x4ca882=_0x17af38[_0x15364e(0x18c)](_0x14dde0);if(!_0x4ca882)return;let _0x2d6f17={'base':_0x3d1d7a,'table':_0x17af38,'field':_0x73613f,'record':_0x4ca882,'value':_0x5483c3};if(this[_0x15364e(0x16e)](this[_0x15364e(0x25a)]['BeforeBaseTableCellValueChange'],_0x2d6f17),_0x2d6f17[_0x15364e(0x1eb)])throw new l[(_0x15364e(0x165))]();})));}[_0x2481ff(0x206)](_0x362ef7,_0x258137){const _0x4aeb1a=_0x2481ff;let _0x41979e=this[_0x4aeb1a(0x176)](_0x362ef7),_0x12b471=_0x41979e==null?void 0x0:_0x41979e[_0x4aeb1a(0x289)](_0x258137);return _0x41979e&&_0x12b471?{'base':_0x41979e,'table':_0x12b471}:null;}[_0x2481ff(0x27b)](_0x4e27b0,_0x21e13e,_0x4f3b86,_0x475239){const _0x1d640d=_0x2481ff;if(!_0x4f3b86[_0x1d640d(0x256)])return;let _0x449321={'base':_0x4e27b0,'table':_0x21e13e,'changes':_0x4f3b86,'source':_0x475239};if(this[_0x1d640d(0x16e)](this[_0x1d640d(0x25a)]['BeforeBaseHierarchyChange'],_0x449321),_0x449321[_0x1d640d(0x1eb)])throw new l['CanceledError']();}};function Z(_0x1f87f8,_0x1fbfe1){return _0x1f87f8['id']===_0x1fbfe1['id']&&_0x1f87f8['params']!==void 0x0;}u[_0x2481ff(0x136)][_0x2481ff(0x130)](X);var Q=class extends u['FEnum']{get['BaseFieldType'](){const _0x2c9f66=_0x2481ff;return l[_0x2c9f66(0x272)];}get[_0x2481ff(0x28e)](){const _0x214710=_0x2481ff;return l[_0x214710(0x28e)];}get['BaseFilterOperator'](){const _0x22631e=_0x2481ff;return l[_0x22631e(0x1c1)];}get[_0x2481ff(0x11a)](){return v;}get[_0x2481ff(0x175)](){return l['BaseViewType'];}get[_0x2481ff(0x270)](){const _0x57c918=_0x2481ff;return l[_0x57c918(0x270)];}get[_0x2481ff(0x155)](){return l['BaseConditionalColorOperator'];}get[_0x2481ff(0x269)](){return l['BaseConditionalDateMode'];}get[_0x2481ff(0x2a7)](){const _0x26a5c7=_0x2481ff;return l[_0x26a5c7(0x2a7)];}get[_0x2481ff(0x216)](){const _0x4c69ad=_0x2481ff;return c[_0x4c69ad(0x216)];}get['BaseHierarchyErrorCode'](){return c['BaseHierarchyErrorCode'];}get[_0x2481ff(0x226)](){const _0x1cc7f0=_0x2481ff;return l[_0x1cc7f0(0x226)];}get[_0x2481ff(0x140)](){const _0x36327c=_0x2481ff;return l[_0x36327c(0x140)];}};u['FEnum']['extend'](Q);var $=class extends u['FEventName']{get[_0x2481ff(0x179)](){const _0x2bb003=_0x2481ff;return _0x2bb003(0x179);}get[_0x2481ff(0x1e2)](){const _0x28626d=_0x2481ff;return _0x28626d(0x1e2);}get[_0x2481ff(0x1dc)](){const _0x53b284=_0x2481ff;return _0x53b284(0x1dc);}get[_0x2481ff(0x208)](){const _0x2c963f=_0x2481ff;return _0x2c963f(0x208);}get[_0x2481ff(0x14e)](){return'BaseTableRecordCreated';}get[_0x2481ff(0x24e)](){const _0x16f8d4=_0x2481ff;return _0x16f8d4(0x24e);}get['BaseTableViewCreated'](){const _0x3a824b=_0x2481ff;return _0x3a824b(0x209);}get[_0x2481ff(0x2a1)](){const _0x257f49=_0x2481ff;return _0x257f49(0x2a1);}get[_0x2481ff(0x12e)](){const _0x4c77d0=_0x2481ff;return _0x4c77d0(0x12e);}get[_0x2481ff(0x149)](){const _0x4d31e1=_0x2481ff;return _0x4d31e1(0x149);}get[_0x2481ff(0x10f)](){const _0x4d4ed2=_0x2481ff;return _0x4d4ed2(0x10f);}get[_0x2481ff(0x1e5)](){return'BeforeBaseHierarchyChange';}};u[_0x2481ff(0x2c5)][_0x2481ff(0x130)]($),exports['BaseFieldKeyEnum']=v,Object['defineProperty'](exports,_0x2481ff(0x23c),{'enumerable':!0x0,'get':function(){return Y;}}),exports['FBaseObjectPermission']=m,exports[_0x2481ff(0x218)]=p,Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x26b),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x2ac),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x2481ff(0x2c1)](exports,'FBaseTableRange',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x2481ff(0x2c1)](exports,'FBaseTableRecord',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x220),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x2481ff(0x2b7)]=$,exports['resolveBaseFieldKey']=S,exports[_0x2481ff(0x290)]=b;
|
|
1
|
+
const _0xa13645=_0x4960;(function(_0x12ba56,_0x124775){const _0x19ec70=_0x4960,_0x103dd0=_0x12ba56();while(!![]){try{const _0x2b4198=parseInt(_0x19ec70(0x1f8))/0x1*(-parseInt(_0x19ec70(0x295))/0x2)+-parseInt(_0x19ec70(0x2bd))/0x3+parseInt(_0x19ec70(0x32a))/0x4*(-parseInt(_0x19ec70(0x310))/0x5)+-parseInt(_0x19ec70(0x208))/0x6+-parseInt(_0x19ec70(0x2a2))/0x7+parseInt(_0x19ec70(0x245))/0x8*(-parseInt(_0x19ec70(0x2d5))/0x9)+parseInt(_0x19ec70(0x327))/0xa;if(_0x2b4198===_0x124775)break;else _0x103dd0['push'](_0x103dd0['shift']());}catch(_0x3da2e3){_0x103dd0['push'](_0x103dd0['shift']());}}}(_0x141e,0x7fb6e),Object['defineProperty'](exports,Symbol[_0xa13645(0x2a9)],{'value':_0xa13645(0x2ec)}));var e=Object[_0xa13645(0x1b8)],t=Object[_0xa13645(0x31d)],n=Object[_0xa13645(0x1d8)],r=Object['getOwnPropertyNames'],i=Object[_0xa13645(0x2ca)],a=Object[_0xa13645(0x2ac)][_0xa13645(0x280)],o=(_0x564b32,_0x4875c2,_0x195ef4,_0x45619f)=>{const _0x40418c=_0xa13645;if(_0x4875c2&&typeof _0x4875c2==_0x40418c(0x20b)||typeof _0x4875c2==_0x40418c(0x2a4)){for(var _0x4ff419=r(_0x4875c2),_0x2204ad=0x0,_0x1c7dbc=_0x4ff419[_0x40418c(0x2c8)],_0x4da624;_0x2204ad<_0x1c7dbc;_0x2204ad++)_0x4da624=_0x4ff419[_0x2204ad],!a[_0x40418c(0x22d)](_0x564b32,_0x4da624)&&_0x4da624!==_0x195ef4&&t(_0x564b32,_0x4da624,{'get':(_0x1f1139=>_0x4875c2[_0x1f1139])['bind'](null,_0x4da624),'enumerable':!(_0x45619f=n(_0x4875c2,_0x4da624))||_0x45619f[_0x40418c(0x26c)]});}return _0x564b32;},s=(_0x1bdfbe,_0x4af749,_0xf1786c)=>(_0xf1786c=_0x1bdfbe==null?{}:e(i(_0x1bdfbe)),o(_0x4af749||!_0x1bdfbe||!_0x1bdfbe[_0xa13645(0x23b)]||!a['call'](_0x1bdfbe,_0xa13645(0x2e6))?t(_0xf1786c,_0xa13645(0x2e6),{'value':_0x1bdfbe,'enumerable':!0x0}):_0xf1786c,_0x1bdfbe));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(_0x33548f,_0xe36045,_0x402927){const _0x16356c=_0xa13645;this[_0x16356c(0x31b)]=_0x33548f,this['_commandService']=_0xe36045,this[_0x16356c(0x2a3)]=_0x402927;}async[_0xa13645(0x2b6)](_0x4b3d86){const _0x3711e6=_0xa13645;return this[_0x3711e6(0x1f9)][_0x3711e6(0x1cc)](c[_0x3711e6(0x27b)]['id'],{'unitId':this[_0x3711e6(0x31b)],'changes':_0x4b3d86});}async[_0xa13645(0x230)](_0x5d9531,_0x4c9cbf){const _0x4a1e45=_0xa13645;await this[_0x4a1e45(0x1f9)][_0x4a1e45(0x1cc)](c[_0x4a1e45(0x226)]['id'],{'unitId':this[_0x4a1e45(0x31b)],'objectId':this['_unitId'],'action':_0x5d9531,'value':_0x4c9cbf});}['getPoint'](_0x49a10f){const _0x530674=_0xa13645;return(0x0,c[_0x530674(0x2de)])(this[_0x530674(0x2a3)],this[_0x530674(0x31b)],this['_unitId'],_0x49a10f);}async[_0xa13645(0x262)](_0x36d4c4=!0x0){const _0x5b37f3=_0xa13645;await this[_0x5b37f3(0x1f9)]['executeCommand'](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x5b37f3(0x31b)],'objectId':this[_0x5b37f3(0x31b)],'action':d[_0x5b37f3(0x1c4)]['Edit'],'value':_0x36d4c4});}async[_0xa13645(0x2a6)](){const _0x54d6aa=_0xa13645;await this[_0x54d6aa(0x1f9)][_0x54d6aa(0x1cc)](c[_0x54d6aa(0x226)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x54d6aa(0x31b)],'action':d[_0x54d6aa(0x1c4)]['Edit'],'value':!0x1});}['canEdit'](){const _0x28901f=_0xa13645;return(0x0,c[_0x28901f(0x2de)])(this['_permissionService'],this[_0x28901f(0x31b)],this[_0x28901f(0x31b)],d[_0x28901f(0x1c4)]['Edit']);}},m=class{constructor(_0x5a6444,_0x41d780,_0xd5fd8c,_0x1735da,_0x3ac2bc){const _0x332170=_0xa13645;this['_unitId']=_0x5a6444,this[_0x332170(0x269)]=_0x41d780,this[_0x332170(0x2bb)]=_0xd5fd8c,this[_0x332170(0x1f9)]=_0x1735da,this[_0x332170(0x2a3)]=_0x3ac2bc;}async[_0xa13645(0x262)](_0x51ca44=!0x0){const _0x13c064=_0xa13645;await this[_0x13c064(0x1f9)][_0x13c064(0x1cc)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x13c064(0x31b)],'objectId':this['_objectId'],'action':d[_0x13c064(0x1c4)][_0x13c064(0x2c1)],'value':_0x51ca44});}async[_0xa13645(0x2a6)](){const _0x1705e2=_0xa13645;await this[_0x1705e2(0x1f9)][_0x1705e2(0x1cc)](c[_0x1705e2(0x226)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x1705e2(0x269)],'action':d[_0x1705e2(0x1c4)][_0x1705e2(0x2c1)],'value':!0x1});}[_0xa13645(0x1b3)](){const _0x6f92d6=_0xa13645;return(0x0,c[_0x6f92d6(0x2f6)])(this[_0x6f92d6(0x2a3)],this[_0x6f92d6(0x31b)],[...this[_0x6f92d6(0x2bb)],this[_0x6f92d6(0x269)]]);}};function h(_0x40934f,_0xb2e57){return function(_0x25bcbd,_0x438df3){_0xb2e57(_0x25bcbd,_0x438df3,_0x40934f);};}function g(_0x1759ea,_0x5af0d5,_0x2e770c,_0x10b482){const _0x37a34a=_0xa13645;var _0x421e2f=arguments[_0x37a34a(0x2c8)],_0x32165a=_0x421e2f<0x3?_0x5af0d5:_0x10b482===null?_0x10b482=Object['getOwnPropertyDescriptor'](_0x5af0d5,_0x2e770c):_0x10b482,_0x1144bc;if(typeof Reflect==_0x37a34a(0x20b)&&typeof Reflect[_0x37a34a(0x1c9)]==_0x37a34a(0x2a4))_0x32165a=Reflect['decorate'](_0x1759ea,_0x5af0d5,_0x2e770c,_0x10b482);else{for(var _0x6ee67c=_0x1759ea[_0x37a34a(0x2c8)]-0x1;_0x6ee67c>=0x0;_0x6ee67c--)(_0x1144bc=_0x1759ea[_0x6ee67c])&&(_0x32165a=(_0x421e2f<0x3?_0x1144bc(_0x32165a):_0x421e2f>0x3?_0x1144bc(_0x5af0d5,_0x2e770c,_0x32165a):_0x1144bc(_0x5af0d5,_0x2e770c))||_0x32165a);}return _0x421e2f>0x3&&_0x32165a&&Object['defineProperty'](_0x5af0d5,_0x2e770c,_0x32165a),_0x32165a;}let _=class{constructor(_0x5deca6,_0x2046d1,_0x3875e7,_0x9dc287,_0x4b6c74){const _0xf8a7ee=_0xa13645;this[_0xf8a7ee(0x2ab)]=_0x5deca6,this[_0xf8a7ee(0x248)]=_0x2046d1,this[_0xf8a7ee(0x1fd)]=_0x3875e7,this[_0xf8a7ee(0x1f9)]=_0x9dc287,this[_0xf8a7ee(0x2a3)]=_0x4b6c74;}[_0xa13645(0x20d)](){return this['_fieldId'];}[_0xa13645(0x2b0)](){const _0x2597fe=_0xa13645;let _0x2b1192=this[_0x2597fe(0x248)][_0x2597fe(0x20d)]();return new m(this[_0x2597fe(0x2ab)][_0x2597fe(0x20d)](),(0x0,c[_0x2597fe(0x2af)])(_0x2b1192,this['_fieldId']),[(0x0,c[_0x2597fe(0x1ae)])(_0x2b1192)],this[_0x2597fe(0x1f9)],this[_0x2597fe(0x2a3)]);}[_0xa13645(0x350)](){const _0xfedfc8=_0xa13645;return this[_0xfedfc8(0x29a)]();}[_0xa13645(0x2df)](){const _0x18cc70=_0xa13645;return this[_0x18cc70(0x29a)]()[_0x18cc70(0x346)];}[_0xa13645(0x330)](){const _0x27ee2a=_0xa13645;return this[_0x27ee2a(0x29a)]()[_0x27ee2a(0x246)];}[_0xa13645(0x23f)](){const _0x30da5f=_0xa13645;return this[_0x30da5f(0x29a)]()['config'];}[_0xa13645(0x20e)](){const _0xbcbfa2=_0xa13645;return this[_0xbcbfa2(0x29a)]()[_0xbcbfa2(0x273)];}['getDescription'](){const _0x269a00=_0xa13645;return this['_getField']()[_0x269a00(0x2e7)];}[_0xa13645(0x28e)](){const _0x29e3a7=_0xa13645;return!!this[_0x29e3a7(0x29a)]()[_0x29e3a7(0x29c)];}['setName'](_0x1dd2d5){const _0x50963e=_0xa13645;return this[_0x50963e(0x1dc)]({'name':_0x1dd2d5});}['setConfig'](_0x5257af,_0x503caa){const _0x740e05=_0xa13645;return this[_0x740e05(0x1dc)]({'config':_0x5257af},_0x503caa);}['setDefaultValue'](_0x292021){const _0x1c6d44=_0xa13645;return this[_0x1c6d44(0x1dc)]({'defaultValue':_0x292021});}[_0xa13645(0x1dc)](_0x16834c,_0xda8bf8){const _0x4e2acc=_0xa13645;let _0x4e7bce=this[_0x4e2acc(0x29a)]()[_0x4e2acc(0x246)];return(_0x16834c['type']??_0x4e7bce)===l[_0x4e2acc(0x1cb)]['Formula']&&(Object[_0x4e2acc(0x2ac)]['hasOwnProperty'][_0x4e2acc(0x22d)](_0x16834c,_0x4e2acc(0x2be))||_0x16834c[_0x4e2acc(0x246)]===l[_0x4e2acc(0x1cb)][_0x4e2acc(0x1c6)])&&!this[_0x4e2acc(0x1e9)](_0xda8bf8)?!0x1:this[_0x4e2acc(0x1f9)][_0x4e2acc(0x34a)](c[_0x4e2acc(0x264)]['id'],{'unitId':this['_base'][_0x4e2acc(0x20d)](),'tableId':this[_0x4e2acc(0x248)][_0x4e2acc(0x20d)](),'fieldId':this[_0x4e2acc(0x1fd)],'patch':_0x16834c});}['changeType'](_0x4e6750,_0x3e051c={},_0x323f9d){const _0x2a2bab=_0xa13645;return _0x4e6750===l[_0x2a2bab(0x1cb)][_0x2a2bab(0x1c6)]&&!this[_0x2a2bab(0x1e9)](_0x323f9d)?!0x1:this[_0x2a2bab(0x1f9)][_0x2a2bab(0x34a)](c[_0x2a2bab(0x2bc)]['id'],{'unitId':this[_0x2a2bab(0x2ab)][_0x2a2bab(0x20d)](),'tableId':this[_0x2a2bab(0x248)][_0x2a2bab(0x20d)](),'fieldId':this['_fieldId'],'input':{'type':_0x4e6750,'config':_0x3e051c}});}[_0xa13645(0x243)](){const _0x5ccfcf=_0xa13645;return this[_0x5ccfcf(0x1f9)][_0x5ccfcf(0x34a)](c[_0x5ccfcf(0x331)]['id'],{'unitId':this['_base'][_0x5ccfcf(0x20d)](),'tableId':this[_0x5ccfcf(0x248)][_0x5ccfcf(0x20d)](),'fieldId':this['_fieldId']});}[_0xa13645(0x1b7)](_0x56d007){const _0x59d80d=_0xa13645;return this[_0x59d80d(0x1f9)]['syncExecuteCommand'](c[_0x59d80d(0x2c2)]['id'],{'unitId':this[_0x59d80d(0x2ab)][_0x59d80d(0x20d)](),'tableId':this[_0x59d80d(0x248)][_0x59d80d(0x20d)](),'fieldId':this['_fieldId'],'target':_0x56d007});}['_getField'](){const _0x338611=_0xa13645;let _0x5d8fd6=this[_0x338611(0x248)][_0x338611(0x30b)]()[_0x338611(0x31e)][this[_0x338611(0x1fd)]];if(!_0x5d8fd6)throw Error(_0x338611(0x1f6)+this[_0x338611(0x1fd)]+_0x338611(0x2ad));return _0x5d8fd6;}[_0xa13645(0x1e9)](_0xfcb426){const _0x146335=_0xa13645;if(!_0xfcb426||!Array[_0x146335(0x2ed)](_0xfcb426[_0x146335(0x20f)]))return console[_0x146335(0x27d)](_0x146335(0x283)),!0x1;if(_0xfcb426[_0x146335(0x20f)][_0x146335(0x2c8)]===0x0)return!0x0;let _0x4b025f=this[_0x146335(0x1f9)][_0x146335(0x34a)](f[_0x146335(0x2dd)]['id'],{'unitId':this[_0x146335(0x2ab)][_0x146335(0x20d)](),'references':_0xfcb426[_0x146335(0x20f)]});return _0x4b025f||console[_0x146335(0x27d)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x4b025f;}};_=g([h(0x3,l[_0xa13645(0x1d4)]),h(0x4,l[_0xa13645(0x1eb)])],_);let v=function(_0x234158){const _0x14784e=_0xa13645;return _0x234158['Id']='id',_0x234158[_0x14784e(0x22e)]=_0x14784e(0x346),_0x234158[_0x14784e(0x307)]=_0x14784e(0x321),_0x234158;}({});function y(_0x102ab3){const _0x12d25a=_0xa13645;return!!(_0x102ab3&&_0x102ab3[_0x12d25a(0x1db)]!==!0x0&&_0x102ab3[_0x12d25a(0x246)]!==l[_0x12d25a(0x1cb)][_0x12d25a(0x24f)]);}function b(_0x31e681,_0x280f77,_0x5caffd='id'){if(!_0x280f77)return{};let _0x424077={};return Object['entries'](_0x280f77)['forEach'](([_0x5926a9,_0x160c4a])=>{const _0x49ee9b=_0x4960;let _0x189f7b=S(_0x31e681,_0x5926a9,_0x5caffd);_0x424077[_0x189f7b]=x(_0x31e681[_0x49ee9b(0x31e)][_0x189f7b],_0x160c4a);}),_0x424077;}function x(_0x1ec756,_0x23d7e8){const _0x5545de=_0xa13645;if((_0x1ec756==null?void 0x0:_0x1ec756[_0x5545de(0x246)])!==l['BaseFieldType'][_0x5545de(0x209)]||_0x23d7e8==null)return _0x23d7e8;if(!Array[_0x5545de(0x2ed)](_0x23d7e8))throw TypeError(_0x5545de(0x2d7)+_0x1ec756[_0x5545de(0x346)]+_0x5545de(0x328));return _0x23d7e8[_0x5545de(0x1d5)]((_0x7e5518,_0x4d9c6b)=>C(_0x1ec756,_0x7e5518,_0x4d9c6b));}function S(_0x2b02d0,_0x1a6768,_0x4088cc){const _0x131b98=_0xa13645;if(_0x4088cc==='id'||_0x4088cc===_0x131b98(0x321)&&_0x2b02d0[_0x131b98(0x31e)][_0x1a6768])return _0x1a6768;let _0x336467=Object[_0x131b98(0x27c)](_0x2b02d0[_0x131b98(0x31e)])[_0x131b98(0x271)](_0x4d70d1=>_0x4d70d1['name']===_0x1a6768);if(_0x336467[_0x131b98(0x2c8)]===0x1)return _0x336467[0x0]['id'];throw _0x336467[_0x131b98(0x2c8)]>0x1?Error('Duplicate\x20Base\x20field\x20name:\x20'+_0x1a6768):Error(_0x131b98(0x1c8)+_0x1a6768);}function C(_0xc45f5a,_0x221517,_0x143e3c){const _0x1b88c4=_0xa13645;let _0x1826d0=_0x1b88c4(0x30e)+_0x143e3c+_0x1b88c4(0x1e4)+_0xc45f5a['name']+'\x22';if(!O(_0x221517))throw TypeError(_0x1826d0+_0x1b88c4(0x22c));if('url'in _0x221517)throw TypeError(_0x1826d0+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x1b88c4(0x246)in _0x221517)throw TypeError(_0x1826d0+_0x1b88c4(0x222));let _0x2d1e50=T(_0x221517['id'],_0x1826d0,'id'),_0x4947ba=T(_0x221517[_0x1b88c4(0x346)],_0x1826d0,_0x1b88c4(0x346)),_0x1c54cb=T(_0x221517[_0x1b88c4(0x281)],_0x1826d0,_0x1b88c4(0x281));return{'id':_0x2d1e50,'name':_0x4947ba,'source':_0x1c54cb,'sourceType':w(_0x221517[_0x1b88c4(0x251)],_0x1c54cb,_0x1826d0),...E(_0x221517,'mimeType',_0x1826d0),...D(_0x221517,'size',_0x1826d0),...D(_0x221517,_0x1b88c4(0x1d0),_0x1826d0),...D(_0x221517,_0x1b88c4(0x1c1),_0x1826d0),...E(_0x221517,_0x1b88c4(0x26b),_0x1826d0)};}function w(_0x2a30b8,_0x10279f,_0x268baf){const _0x5b95be=_0xa13645;if(_0x2a30b8==null)return _0x10279f[_0x5b95be(0x357)]('data:')?l['ImageSourceType'][_0x5b95be(0x319)]:l[_0x5b95be(0x356)][_0x5b95be(0x312)];if(_0x2a30b8===l[_0x5b95be(0x356)]['URL']||_0x2a30b8===l['ImageSourceType']['UUID']||_0x2a30b8===l[_0x5b95be(0x356)][_0x5b95be(0x319)])return _0x2a30b8;throw TypeError(_0x268baf+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function T(_0x176c09,_0x3f5dce,_0x4fde90){const _0x21c438=_0xa13645;if(typeof _0x176c09!=_0x21c438(0x317)||!_0x176c09[_0x21c438(0x311)]())throw TypeError(_0x3f5dce+_0x21c438(0x35a)+_0x4fde90+_0x21c438(0x2a1));return _0x176c09;}function E(_0x27c1d8,_0x12ab63,_0x432b81){const _0x4c8330=_0xa13645;let _0x458669=_0x27c1d8[_0x12ab63];if(_0x458669==null)return{};if(typeof _0x458669!=_0x4c8330(0x317)||!_0x458669[_0x4c8330(0x311)]())throw TypeError(_0x432b81+_0x4c8330(0x35a)+_0x12ab63+_0x4c8330(0x1b5));return{[_0x12ab63]:_0x458669};}function D(_0x24fead,_0x273a9f,_0x3acc89){const _0x2134f4=_0xa13645;let _0x42feb5=_0x24fead[_0x273a9f];if(_0x42feb5==null)return{};if(typeof _0x42feb5!=_0x2134f4(0x359)||!Number[_0x2134f4(0x2d8)](_0x42feb5)||_0x42feb5<0x0)throw TypeError(_0x3acc89+_0x2134f4(0x35a)+_0x273a9f+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x273a9f]:_0x42feb5};}function O(_0x3771e4){const _0x59977c=_0xa13645;return typeof _0x3771e4=='object'&&!!_0x3771e4&&!Array[_0x59977c(0x2ed)](_0x3771e4);}function _0x141e(){const _0x589753=['_fireBeforeHierarchyChange','_prepareFormulaFieldReferences','Facade','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','getSnapshot','RecordId','Kanban','sourceType','tables','DuplicateBaseRecordCommand','BaseHierarchyChanged','createUniqueBaseTableName','ensureBaseTableCellLayout','push','_recordId','Remote','getAllUnitsForType','getSchema','value','[FRecord]:\x20attachment\x20at\x20index\x20','records','_univerInstanceService','CreateBaseFieldCommand','iterator','setEditable','FBaseTableView','UpdateBaseFieldCommand','operator','UpdateBaseCellCommand','Invalid\x20Base\x20regex\x20filter:\x20','_getRecordLinkField','_objectId','RecordLink','thumbnail','enumerable','UpdateBaseViewConditionalColorRulesCommand','fireEvent','getBase','includes','filter','SetBaseViewFilterCommand','defaultValue','validateBaseTableName','getRecordLinkFieldConfig','BaseSortDirection','Failed\x20to\x20duplicate\x20table\x20\x22','getView','\x20exceeds\x20range\x20size\x20','getCurrentUnitOfType','SetBasePermissionsCommand','values','warn','FBaseObjectPermission','getPrimaryField','hasOwnProperty','source','Gallery','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','Event','index','createdAt','getViews','_inject','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','BaseConditionalColorOperator','FBaseInitialable','direction','getPrimaryFieldId','isReadonly','BaseHierarchyErrorCode','setAttachments','BASE_RECORD_ID_FIELD_ID','getBaseViewPermissionObjectId','parentRecordId','viewId','214358blimng','deleteTable','setName','Tools','regenerateViewIds','_getField','[FView]:\x20view\x20\x22','readonly','UniverInstanceType','RenameBaseViewCommand','fieldId','hierarchyChanges','\x22\x20must\x20be\x20a\x20non-empty\x20string.','3294277izdvSU','_permissionService','function','[FTable]:\x20table\x20\x22','setReadOnly','slice','insertTable','toStringTag','record','_base','prototype','\x22\x20does\x20not\x20exist.','getLinkedRecordIds','getBaseFieldPermissionObjectId','getPermission','SetBaseViewSortCommand','orderedRecordIds','[FRecord]:\x20record\x20\x22','endColumn','rows','setObjectPermissions','_tableId','reason','FUniver','parseRecordLinkIds','_parentObjectIds','ChangeBaseFieldTypeCommand','318996oiyiaE','config','generateRandomId','primaryFieldName','Edit','MoveBaseFieldCommand','includeRecords','getBaseHierarchyDeletePromotions','offset','FBaseTableField','BaseFilterOperator','length','fromEntries','getPrototypeOf','tableOrder','startRow','beforeFieldId','getAncestors','FEnum','FBase','find','BaseTableRecordCreated','CreateBaseChildRecordCommand','buildBaseHierarchyIndex','9eDSBeN','getTableFacade','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','isFinite','updatedAt','addConditionalColorRule','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','_resourceLoaderService','UpsertHostExternalReferencesCommand','getBasePermissionValue','getName','deepClone','setLinkedRecordIds','BaseTableViewCreated','setGroup','FBaseTable','IBaseProjectionService','default','description','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_getRecord','updateConfig','duplicate','Module','isArray','Grid','DeleteBaseTableCommand','Clear','getTableByName','FBasePermission','matches','\x22\x20is\x20invalid.','Gantt','canEditBaseTargets','[FRecord]:\x20RecordLink\x20field\x20\x22','_initBaseBeforeEvents','clearConditionalColorRules','params','BeforeBaseTableViewCreate','view','deleteProperty','MoveBaseViewCommand','group','getUnitId','getRecords','save','copyBaseTableSnapshot','getFieldByName','validateBaseHierarchyRecordCreations','BaseHierarchyInvalidReason','Auto','Failed\x20to\x20delete\x20table\x20\x22','now','getFilter','getTable','getBaseRecordPermissionObjectId','getGroup','Invalid\x20attachment\x20at\x20index\x20','\x22\x20has\x20invalid\x20config.','11950Yueyzn','trim','URL','getParent','SetBaseNameCommand','_initBaseAfterEvents','Inject','string','createUnit','BASE64','tableId','_unitId','[FBaseRange]:\x20values\x20size\x20','defineProperty','fields','flatMap','CreateBaseViewCommand','auto','\x22.\x20','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','setValues','FEventName','_baseUnitId','31610710vyrohZ','\x22:\x20expected\x20an\x20array.','symbol','1164nclKJk','_getView','valid','BeforeBaseTableFieldCreate','onCommandExecuted','getValue','getType','DeleteBaseFieldCommand','FBaseTableRecord','sort','fieldOrder','addRecords','_range','endRow','[FBase]:\x20table\x20\x22','hidden','localeCompare','getDataRange','BeforeBaseTableRecordCreate','getProjection','CreateBaseTableCommand','_collectDescendantIds','limit','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','setSort','removeLinkedRecord','getTableById','SetBaseTableHierarchyFieldCommand','name','Failed\x20to\x20add\x20records','setValue','cancel','syncExecuteCommand','BaseConditionalColorRuleUpdateType','entries','BaseFilterConjunction','SetBaseRecordValuesCommand','table','getField','UNIVER_BASE','max','primaryFieldId','BaseConditionalColorTarget','FBasesEventNameMixin','ImageSourceType','startsWith','beforeCommandExecuted','number',':\x20\x22','queryRecords','BaseEventSource','SetBaseViewFieldVisibleCommand','resolveBaseFieldKey','rowId','BaseTableFieldCreated','getDescendants','setFilter','CreateBaseRecordCommand','has','_assertInBounds','getFieldById','startColumn','getBaseTablePermissionObjectId','UpdateBaseRecordOrderCommand','duplicateTable','stringify','getBaseId','canEdit','custom','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','getRecordById','move','create','addField','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','_viewId','_injector','BaseFieldKeyEnum','getViewById','getActiveBaseHierarchyFieldIds','setOrderKey','height','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','UnitAction','validateBaseHierarchyRecordPatches','Formula','searchBaseTable','Base\x20field\x20not\x20found:\x20','decorate','setFieldWidth','BaseFieldType','executeCommand','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','_resolveRecordIds','createInstance','width','ValidateBaseFormulaCommand','IResourceLoaderService','BaseViewType','ICommandService','map','[FBaseRange]:\x20table\x20does\x20not\x20exist.','formula','getOwnPropertyDescriptor','parentByRecordId','BatchDeleteBaseRecordsCommand','system','update','DeleteBaseRecordCommand','BaseRecordLinkRole','BaseTableCreated','test','Add','_baseTableId','constructor','\x20for\x20field\x20\x22','\x20in\x20field\x20\x22','getValues','some','setParent','_writeFormulaExternalReferences','views','IPermissionService','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','disposeWithMe','field','UpdateBaseViewConfigCommand','Set','childrenByParentId','deleteAttachments','caseSensitive','orderKey','getNumRows','[FField]:\x20field\x20\x22','commonExtend','1QmaRsd','_commandService','viewOrder','visibleCardFieldIds','getFormulaName','_fieldId','fieldSettings','DESC','deleteRecords','recordId','addRecord','registerEventHandler','BatchCreateBaseRecordsCommand','createDefaultBaseTableSnapshot','BaseTableCellValueChanged','MoveBaseHierarchyRecordCommand','2180508wuKwll','Attachment','SetBaseViewFieldOrderCommand','object','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','getId','getDefaultValue','externalReferences','getTables','getColumn','multiple','resolveBaseRangeHierarchyPatches','from','CanceledError','createView','_getHierarchyEventContext','Injector','getNumColumns','unitId','BaseConditionalDateMode','fieldIds','getUnit','SetBaseRangeValuesCommand','_getHierarchyIndex','getBaseCellValue','get',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','base','_initialize','BeforeBaseTableCreate','SetBasePermissionCommand','Failed\x20to\x20create\x20view\x20\x22','BASE_TABLE_NAME_REQUIREMENTS','fieldKey','recordIds','conditions',':\x20expected\x20an\x20object.','call','Name','BeforeBaseTableCellValueChange','setPoint','getAttachments','BeforeBaseHierarchyChange','_getAttachmentField','_getFieldIds','extend','_getTable','FBaseTableRange','indexOf','serializeRecordLinkIds','afterFieldId','__esModule','saveUnit','[FRecord]:\x20field\x20\x22','getHierarchyFieldId','getConfig','[FRecord]:\x20invalid\x20RecordLink\x20value.','Unsupported\x20Base\x20field\x20type\x20\x22','recordOrder','delete','_projectionService','7159384bRnSus','type','setHierarchyField','_table','clear'];_0x141e=function(){return _0x589753;};return _0x141e();}var k;let A=k=class{constructor(_0x57870b,_0x2dfec7,_0x373f65,_0x541b02,_0x21e0a4){const _0x30caf0=_0xa13645;this[_0x30caf0(0x2ab)]=_0x57870b,this['_table']=_0x2dfec7,this[_0x30caf0(0x336)]=_0x373f65,this[_0x30caf0(0x288)]=_0x541b02,this[_0x30caf0(0x1f9)]=_0x21e0a4,this[_0x30caf0(0x1ab)]();}[_0xa13645(0x1b2)](){const _0x4ee74f=_0xa13645;return this[_0x4ee74f(0x2ab)][_0x4ee74f(0x20d)]();}['getTableId'](){const _0x334113=_0xa13645;return this[_0x334113(0x248)][_0x334113(0x20d)]();}[_0xa13645(0x1c3)](){const _0x22d095=_0xa13645;return{...this[_0x22d095(0x336)]};}['getRow'](){const _0x1fa7ac=_0xa13645;return this[_0x1fa7ac(0x336)][_0x1fa7ac(0x2cc)];}[_0xa13645(0x211)](){const _0x14034a=_0xa13645;return this[_0x14034a(0x336)][_0x14034a(0x1ad)];}['getNumRows'](){const _0x2a8f50=_0xa13645;return this['_range'][_0x2a8f50(0x337)]-this[_0x2a8f50(0x336)]['startRow']+0x1;}[_0xa13645(0x219)](){const _0x4addde=_0xa13645;return this[_0x4addde(0x336)]['endColumn']-this[_0x4addde(0x336)]['startColumn']+0x1;}[_0xa13645(0x1e6)](){const _0x453805=_0xa13645;let _0x3d4101=this[_0x453805(0x236)](),_0x34c21d=this[_0x453805(0x234)](_0x3d4101),_0xe2866=[];for(let _0x58ded0=this['_range'][_0x453805(0x2cc)];_0x58ded0<=this[_0x453805(0x336)]['endRow'];_0x58ded0++){var _0x4d6e6b;let _0x3ec5b9=(_0x4d6e6b=_0x3d4101[_0x453805(0x35f)])==null?void 0x0:_0x4d6e6b[_0x58ded0],_0x53d142=[];for(let _0x8d9c47=this['_range'][_0x453805(0x1ad)];_0x8d9c47<=this[_0x453805(0x336)]['endColumn'];_0x8d9c47++){let _0x74d740=_0x34c21d[_0x8d9c47];_0x53d142[_0x453805(0x257)](_0x3ec5b9&&_0x74d740?(0x0,c[_0x453805(0x220)])(_0x3d4101,_0x3ec5b9,_0x74d740):null);}_0xe2866[_0x453805(0x257)](_0x53d142);}return _0xe2866;}[_0xa13645(0x32f)](){const _0x48694b=_0xa13645;var _0x240f81;return((_0x240f81=this[_0x48694b(0x1e6)]()[0x0])==null?void 0x0:_0x240f81[0x0])??null;}[_0xa13645(0x348)](_0x1728de){const _0x44081b=_0xa13645;return this[_0x44081b(0x324)]([[_0x1728de]]);}[_0xa13645(0x324)](_0x4bbffe){const _0x1768d4=_0xa13645;let _0x8c6bf9=this[_0x1768d4(0x1f5)](),_0x5160b0=this['getNumColumns']();if(_0x4bbffe[_0x1768d4(0x2c8)]>_0x8c6bf9||_0x4bbffe[_0x1768d4(0x1e7)](_0x59aeac=>_0x59aeac['length']>_0x5160b0)){var _0x33509f;throw Error(_0x1768d4(0x31c)+_0x4bbffe[_0x1768d4(0x2c8)]+'x'+(((_0x33509f=_0x4bbffe[0x0])==null?void 0x0:_0x33509f[_0x1768d4(0x2c8)])??0x0)+_0x1768d4(0x279)+_0x8c6bf9+'x'+_0x5160b0+'.');}let _0x582e40=this[_0x1768d4(0x236)](),_0x291de9=this[_0x1768d4(0x234)](_0x582e40),_0x146f03=_0x4bbffe[_0x1768d4(0x31f)]((_0x5421b6,_0x8c2bc3)=>_0x5421b6[_0x1768d4(0x1d5)]((_0x16a04e,_0x11f14b)=>{const _0x43123c=_0x1768d4;var _0x286561;let _0x2b372d=this[_0x43123c(0x336)][_0x43123c(0x2cc)]+_0x8c2bc3,_0x2e6f8e=_0x291de9[this[_0x43123c(0x336)][_0x43123c(0x1ad)]+_0x11f14b],_0x81f962=(_0x286561=_0x582e40[_0x43123c(0x35f)])==null?void 0x0:_0x286561[_0x2b372d];if(!_0x2e6f8e||!_0x81f962)throw Error(_0x43123c(0x2db));return{'recordId':_0x81f962,'fieldId':_0x2e6f8e,'value':_0x16a04e};}));return this[_0x1768d4(0x1f9)][_0x1768d4(0x34a)](c['SetBaseRangeValuesCommand']['id'],{'unitId':this[_0x1768d4(0x2ab)][_0x1768d4(0x20d)](),'tableId':this[_0x1768d4(0x248)][_0x1768d4(0x20d)](),'patches':_0x146f03,'source':c[_0x1768d4(0x35c)][_0x1768d4(0x24c)]});}[_0xa13645(0x249)](){const _0x29066e=_0xa13645;return this[_0x29066e(0x324)](Array[_0x29066e(0x214)]({'length':this[_0x29066e(0x1f5)]()},()=>Array[_0x29066e(0x214)]({'length':this[_0x29066e(0x219)]()},()=>null)));}[_0xa13645(0x2c5)](_0xc7fee3,_0x112a0d,_0x838d0b=this[_0xa13645(0x1f5)](),_0x455330=this[_0xa13645(0x219)]()){const _0xb7122b=_0xa13645;return this[_0xb7122b(0x288)][_0xb7122b(0x1cf)](k,this[_0xb7122b(0x2ab)],this['_table'],{'startRow':this[_0xb7122b(0x336)][_0xb7122b(0x2cc)]+_0xc7fee3,'startColumn':this['_range'][_0xb7122b(0x1ad)]+_0x112a0d,'endRow':this[_0xb7122b(0x336)]['startRow']+_0xc7fee3+_0x838d0b-0x1,'endColumn':this['_range'][_0xb7122b(0x1ad)]+_0x112a0d+_0x455330-0x1},this[_0xb7122b(0x288)]);}[_0xa13645(0x236)](){const _0xc486bd=_0xa13645;let _0x3f67f9=this[_0xc486bd(0x248)]['getTable']();if(!_0x3f67f9)throw Error(_0xc486bd(0x1d6));return(0x0,c[_0xc486bd(0x256)])(_0x3f67f9);}[_0xa13645(0x1ab)](){const _0x2ac3e6=_0xa13645;var _0x14f0be;let _0xa68e2=this[_0x2ac3e6(0x236)](),_0x4d8c57=((_0x14f0be=_0xa68e2[_0x2ac3e6(0x242)])==null?void 0x0:_0x14f0be[_0x2ac3e6(0x2c8)])??0x0,_0x525ad4=this[_0x2ac3e6(0x234)](_0xa68e2)['length'];if(this[_0x2ac3e6(0x336)]['startRow']<0x0||this['_range']['startColumn']<0x0||this[_0x2ac3e6(0x336)][_0x2ac3e6(0x337)]<this[_0x2ac3e6(0x336)][_0x2ac3e6(0x2cc)]||this[_0x2ac3e6(0x336)]['endColumn']<this[_0x2ac3e6(0x336)][_0x2ac3e6(0x1ad)]||this['_range'][_0x2ac3e6(0x337)]>=Math[_0x2ac3e6(0x352)](_0x4d8c57,0x1)||this[_0x2ac3e6(0x336)][_0x2ac3e6(0x2b4)]>=Math['max'](_0x525ad4,0x1))throw Error(_0x2ac3e6(0x20c)+_0x4d8c57+',\x20max\x20columns:\x20'+_0x525ad4+',\x20range:\x20'+JSON[_0x2ac3e6(0x1b1)](this['_range'])+'.');}[_0xa13645(0x234)](_0x24e103){const _0x4d4d03=_0xa13645;return _0x24e103[_0x4d4d03(0x334)]['filter'](_0x227cc5=>y(_0x24e103[_0x4d4d03(0x31e)][_0x227cc5]));}};A=k=g([h(0x4,l[_0xa13645(0x1d4)])],A);function j(_0x50e2a3){'@babel/helpers - typeof';const _0x1dc1ab=_0xa13645;return j=typeof Symbol==_0x1dc1ab(0x2a4)&&typeof Symbol[_0x1dc1ab(0x261)]==_0x1dc1ab(0x329)?function(_0x28caf1){return typeof _0x28caf1;}:function(_0x5693c2){const _0x2a5e7a=_0x1dc1ab;return _0x5693c2&&typeof Symbol==_0x2a5e7a(0x2a4)&&_0x5693c2[_0x2a5e7a(0x1e3)]===Symbol&&_0x5693c2!==Symbol['prototype']?_0x2a5e7a(0x329):typeof _0x5693c2;},j(_0x50e2a3);}function M(_0x189720,_0x5a0b3b){const _0x351566=_0xa13645;if(j(_0x189720)!='object'||!_0x189720)return _0x189720;var _0x3da909=_0x189720[Symbol['toPrimitive']];if(_0x3da909!==void 0x0){var _0x477404=_0x3da909[_0x351566(0x22d)](_0x189720,_0x5a0b3b||_0x351566(0x2e6));if(j(_0x477404)!=_0x351566(0x20b))return _0x477404;throw TypeError(_0x351566(0x1c2));}return(_0x5a0b3b==='string'?String:Number)(_0x189720);}function N(_0x4621f0){const _0x2afa96=_0xa13645;var _0x2b7e5f=M(_0x4621f0,_0x2afa96(0x317));return j(_0x2b7e5f)==_0x2afa96(0x329)?_0x2b7e5f:_0x2b7e5f+'';}function P(_0x202f44,_0x4112ee,_0x5170b8){const _0x5548ab=_0xa13645;return(_0x4112ee=N(_0x4112ee))in _0x202f44?Object[_0x5548ab(0x31d)](_0x202f44,_0x4112ee,{'value':_0x5170b8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x202f44[_0x4112ee]=_0x5170b8,_0x202f44;}var F;let I=F=class extends u[_0xa13645(0x28b)]{constructor(_0x205c34,_0x214241,_0x55980a,_0x25cfc3,_0x331f89,_0x343cfb){const _0x32f7ea=_0xa13645;super(_0x25cfc3),this[_0x32f7ea(0x2ab)]=_0x205c34,this[_0x32f7ea(0x248)]=_0x214241,this[_0x32f7ea(0x258)]=_0x55980a,this['_injector']=_0x25cfc3,this[_0x32f7ea(0x1f9)]=_0x331f89,this['_permissionService']=_0x343cfb,P(this,_0x32f7ea(0x326),void 0x0),P(this,'_baseTableId',void 0x0),this[_0x32f7ea(0x326)]=_0x205c34[_0x32f7ea(0x20d)](),this[_0x32f7ea(0x1e2)]=_0x214241[_0x32f7ea(0x20d)]();}['getBaseFacade'](){return this['_base'];}[_0xa13645(0x2d6)](){const _0x27fa98=_0xa13645;return this[_0x27fa98(0x248)];}[_0xa13645(0x20d)](){const _0x3802a4=_0xa13645;return this[_0x3802a4(0x258)];}[_0xa13645(0x2b0)](){const _0x208df1=_0xa13645;let _0x483715=this['_table'][_0x208df1(0x20d)]();return new m(this[_0x208df1(0x2ab)][_0x208df1(0x20d)](),(0x0,c[_0x208df1(0x30c)])(_0x483715,this[_0x208df1(0x258)]),[(0x0,c[_0x208df1(0x1ae)])(_0x483715)],this[_0x208df1(0x1f9)],this[_0x208df1(0x2a3)]);}['getRecord'](){const _0x203d53=_0xa13645;return{...this['_getRecord'](),'values':this[_0x203d53(0x1e6)]()};}['getValue'](_0x4707b7){const _0x84c375=_0xa13645;return y(this[_0x84c375(0x248)]['getTable']()[_0x84c375(0x31e)][_0x4707b7])?this['_getRecord']()[_0x84c375(0x27c)][_0x4707b7]??null:null;}['getValues'](){const _0x5b7824=_0xa13645;let _0x4953ad=this[_0x5b7824(0x248)]['getTable']();return Object[_0x5b7824(0x2c9)](Object[_0x5b7824(0x34c)](this[_0x5b7824(0x2e9)]()['values'])['filter'](([_0x621742])=>y(_0x4953ad['fields'][_0x621742])));}[_0xa13645(0x348)](_0x258633,_0x560a41){const _0x5d3c3e=_0xa13645;let _0x3a00eb=this[_0x5d3c3e(0x248)][_0x5d3c3e(0x30b)]()[_0x5d3c3e(0x31e)][_0x258633];return this[_0x5d3c3e(0x1f9)][_0x5d3c3e(0x34a)](c[_0x5d3c3e(0x266)]['id'],{'unitId':this[_0x5d3c3e(0x2ab)][_0x5d3c3e(0x20d)](),'tableId':this[_0x5d3c3e(0x248)][_0x5d3c3e(0x20d)](),'recordId':this[_0x5d3c3e(0x258)],'fieldId':_0x258633,'value':x(_0x3a00eb,_0x560a41),'source':c[_0x5d3c3e(0x35c)][_0x5d3c3e(0x24c)]});}[_0xa13645(0x290)](_0x12ed16,_0x1b8fcc){const _0xf3703c=_0xa13645;return this[_0xf3703c(0x348)](_0x12ed16,_0x1b8fcc[_0xf3703c(0x1d5)](_0x266630=>({..._0x266630})));}[_0xa13645(0x231)](_0x416376){const _0x4843d5=_0xa13645;this['_getAttachmentField'](_0x416376);let _0x4d4084=this['getValue'](_0x416376);return Array[_0x4843d5(0x2ed)](_0x4d4084)?_0x4d4084[_0x4843d5(0x1d5)]((_0x29bcb1,_0x144e62)=>R(_0x29bcb1,_0x416376,_0x144e62)):[];}[_0xa13645(0x1f2)](_0x201a8f,_0x4da57c){const _0x4e9497=_0xa13645;this[_0x4e9497(0x233)](_0x201a8f);let _0x5b771e=new Set(_0x4da57c['map'](_0x497814=>_0x497814['id']));if(!_0x5b771e['size'])return!0x0;let _0x58b19a=this['getAttachments'](_0x201a8f),_0x872f4d=_0x58b19a[_0x4e9497(0x271)](_0x4c686b=>!_0x5b771e[_0x4e9497(0x1aa)](_0x4c686b['id']));return _0x872f4d[_0x4e9497(0x2c8)]===_0x58b19a[_0x4e9497(0x2c8)]||this[_0x4e9497(0x290)](_0x201a8f,_0x872f4d);}[_0xa13645(0x324)](_0x393571,_0x1ce4b2='id'){const _0x9ca70b=_0xa13645;let _0x4b88af=this['_table'][_0x9ca70b(0x30b)](),_0x42baf2=[{'recordId':this[_0x9ca70b(0x258)],'values':b(_0x4b88af,_0x393571,_0x1ce4b2)}];return this['_commandService']['syncExecuteCommand'](c[_0x9ca70b(0x34e)]['id'],{'unitId':this[_0x9ca70b(0x2ab)][_0x9ca70b(0x20d)](),'tableId':this[_0x9ca70b(0x248)][_0x9ca70b(0x20d)](),'patches':_0x42baf2,'source':c[_0x9ca70b(0x35c)][_0x9ca70b(0x24c)]});}['delete'](){const _0x296674=_0xa13645;return this[_0x296674(0x1f9)][_0x296674(0x34a)](c[_0x296674(0x1dd)]['id'],{'unitId':this['_base'][_0x296674(0x20d)](),'tableId':this[_0x296674(0x248)]['getId'](),'recordId':this['_recordId'],'source':c[_0x296674(0x35c)][_0x296674(0x24c)]});}[_0xa13645(0x2eb)](_0x203a68){const _0x4c8005=_0xa13645;let _0x3a5bd4={...this['_getRecord'](),..._0x203a68,'id':(0x0,l[_0x4c8005(0x2bf)])(0x6)};_0x3a5bd4[_0x4c8005(0x27c)]={..._0x3a5bd4[_0x4c8005(0x27c)],..._0x203a68==null?void 0x0:_0x203a68[_0x4c8005(0x27c)]},Reflect[_0x4c8005(0x2fd)](_0x3a5bd4[_0x4c8005(0x27c)],l[_0x4c8005(0x291)]);let _0x423821=Date['now']();if(_0x3a5bd4['orderKey']||=''+_0x423821,_0x3a5bd4[_0x4c8005(0x286)]||=_0x423821,_0x3a5bd4[_0x4c8005(0x2d9)]||=_0x423821,!this['_commandService'][_0x4c8005(0x34a)](c[_0x4c8005(0x253)]['id'],{'unitId':this[_0x4c8005(0x2ab)]['getId'](),'tableId':this[_0x4c8005(0x248)]['getId'](),'sourceRecordId':this[_0x4c8005(0x258)],'record':_0x3a5bd4,'source':c[_0x4c8005(0x35c)][_0x4c8005(0x24c)]}))throw Error(_0x4c8005(0x1ba)+this['_recordId']+'\x22.');return this[_0x4c8005(0x1bc)]['createInstance'](F,this[_0x4c8005(0x2ab)],this[_0x4c8005(0x248)],_0x3a5bd4['id'],this[_0x4c8005(0x1bc)]);}[_0xa13645(0x1c0)](_0x478fcf){const _0x5b4ea5=_0xa13645;return this['_commandService'][_0x5b4ea5(0x34a)](c[_0x5b4ea5(0x1af)]['id'],{'unitId':this[_0x5b4ea5(0x2ab)]['getId'](),'tableId':this[_0x5b4ea5(0x248)]['getId'](),'recordId':this[_0x5b4ea5(0x258)],'orderKey':_0x478fcf});}['getLinkedRecordIds'](_0x59b4eb){const _0x958cf0=_0xa13645;let _0x449d5e=this[_0x958cf0(0x268)](_0x59b4eb),_0x9d2b51=this[_0x958cf0(0x32f)](_0x449d5e['id']);return(0x0,c['parseRecordLinkIds'])(_0x9d2b51);}[_0xa13645(0x2e1)](_0x4c076d,_0x2e7ba9){const _0x5c2a4e=_0xa13645;let _0x49059a=this[_0x5c2a4e(0x268)](_0x4c076d),_0x31f922=(0x0,c[_0x5c2a4e(0x239)])(_0x2e7ba9),_0x3f9c70=(0x0,c['validateRecordLinkValue'])(this[_0x5c2a4e(0x2ab)]['getBase']()[_0x5c2a4e(0x24e)](),_0x49059a,_0x31f922);if(!_0x3f9c70[_0x5c2a4e(0x32c)])throw Error(_0x3f9c70[_0x5c2a4e(0x2b8)]??_0x5c2a4e(0x240));return this[_0x5c2a4e(0x1f9)]['syncExecuteCommand'](c[_0x5c2a4e(0x266)]['id'],{'unitId':this[_0x5c2a4e(0x2ab)][_0x5c2a4e(0x20d)](),'tableId':this[_0x5c2a4e(0x248)][_0x5c2a4e(0x20d)](),'recordId':this[_0x5c2a4e(0x258)],'fieldId':_0x4c076d,'value':_0x31f922,'source':c['BaseEventSource'][_0x5c2a4e(0x24c)]});}['addLinkedRecord'](_0x40fdfb,_0x3c4cd3){const _0xc4e2fe=_0xa13645;let _0x22f012=this[_0xc4e2fe(0x268)](_0x40fdfb),_0x291bca=(0x0,c[_0xc4e2fe(0x275)])(_0x22f012);if(!_0x291bca)throw Error(_0xc4e2fe(0x2f7)+_0x40fdfb+_0xc4e2fe(0x30f));let _0x1f209a=this[_0xc4e2fe(0x2ae)](_0x40fdfb);return _0x291bca[_0xc4e2fe(0x212)]&&_0x1f209a['includes'](_0x3c4cd3)?!0x0:this[_0xc4e2fe(0x2e1)](_0x40fdfb,_0x291bca[_0xc4e2fe(0x212)]?[..._0x1f209a,_0x3c4cd3]:[_0x3c4cd3]);}[_0xa13645(0x343)](_0x51deb9,_0x3033e7){const _0x398b34=_0xa13645;let _0x5ed969=this['getLinkedRecordIds'](_0x51deb9);return!_0x5ed969[_0x398b34(0x270)](_0x3033e7)||this[_0x398b34(0x2e1)](_0x51deb9,_0x5ed969['filter'](_0xb35f85=>_0xb35f85!==_0x3033e7));}[_0xa13645(0x313)](_0x153d74){const _0x475458=_0xa13645;let _0x25d862=this[_0x475458(0x21f)](_0x153d74)[_0x475458(0x1d9)][_0x475458(0x221)](this[_0x475458(0x258)])??null;return _0x25d862?this[_0x475458(0x248)][_0x475458(0x1b6)](_0x25d862):null;}['getChildren'](_0x4a5bd7){const _0x1b9806=_0xa13645;return(this['_getHierarchyIndex'](_0x4a5bd7)[_0x1b9806(0x1f1)][_0x1b9806(0x221)](this['_recordId'])??[])['flatMap'](_0x33f69c=>{const _0x4061b0=_0x1b9806;let _0x25ac30=this[_0x4061b0(0x248)][_0x4061b0(0x1b6)](_0x33f69c);return _0x25ac30?[_0x25ac30]:[];});}[_0xa13645(0x2ce)](_0x3b664b){const _0x14dccd=_0xa13645;let _0x2db68c=this['_getHierarchyIndex'](_0x3b664b),_0x35e225=[],_0x4beb14=_0x2db68c[_0x14dccd(0x1d9)][_0x14dccd(0x221)](this[_0x14dccd(0x258)])??null;for(;_0x4beb14;){let _0x3ce940=this['_table'][_0x14dccd(0x1b6)](_0x4beb14);_0x3ce940&&_0x35e225[_0x14dccd(0x257)](_0x3ce940),_0x4beb14=_0x2db68c[_0x14dccd(0x1d9)][_0x14dccd(0x221)](_0x4beb14)??null;}return _0x35e225;}[_0xa13645(0x361)](_0x40225b){const _0x4569c1=_0xa13645;let _0x3bfb90=this[_0x4569c1(0x21f)](_0x40225b),_0x2a37a5=_0x3bfb90[_0x4569c1(0x2b2)][_0x4569c1(0x238)](this[_0x4569c1(0x258)]),_0x142497=_0x3bfb90['subtreeHeightByRecordId'][_0x4569c1(0x1aa)](this['_recordId'])?this['_collectDescendantIds'](_0x3bfb90['childrenByParentId'],this[_0x4569c1(0x258)]):[];return _0x2a37a5<0x0?[]:_0x142497[_0x4569c1(0x31f)](_0x389f70=>{const _0x11d15c=_0x4569c1;let _0x3c7285=this[_0x11d15c(0x248)][_0x11d15c(0x1b6)](_0x389f70);return _0x3c7285?[_0x3c7285]:[];});}[_0xa13645(0x1e8)](_0x570091,_0xd2c4c9,_0x285e79){const _0x4557a1=_0xa13645;return this[_0x4557a1(0x1f9)][_0x4557a1(0x34a)](c[_0x4557a1(0x207)]['id'],{'unitId':this[_0x4557a1(0x2ab)][_0x4557a1(0x20d)](),'tableId':this['_table'][_0x4557a1(0x20d)](),'fieldId':_0x570091,'recordId':this['_recordId'],'parentRecordId':_0xd2c4c9,'orderKey':_0x285e79,'source':c[_0x4557a1(0x35c)][_0x4557a1(0x24c)]});}['addChild'](_0x1ed3bb,_0x35628e,_0xc904db='id',_0x13a3ff){const _0x35a9b2=_0xa13645;let _0x387630=this[_0x35a9b2(0x248)][_0x35a9b2(0x30b)](),_0x143d5b=Date[_0x35a9b2(0x309)](),_0x2093fb={..._0x13a3ff,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x387630,_0x35628e,_0xc904db),'orderKey':(_0x13a3ff==null?void 0x0:_0x13a3ff[_0x35a9b2(0x1f4)])||''+_0x143d5b,'createdAt':(_0x13a3ff==null?void 0x0:_0x13a3ff[_0x35a9b2(0x286)])||_0x143d5b,'updatedAt':(_0x13a3ff==null?void 0x0:_0x13a3ff[_0x35a9b2(0x2d9)])||_0x143d5b};if(!this[_0x35a9b2(0x1f9)][_0x35a9b2(0x34a)](c[_0x35a9b2(0x2d3)]['id'],{'unitId':this[_0x35a9b2(0x2ab)][_0x35a9b2(0x20d)](),'tableId':this[_0x35a9b2(0x248)]['getId'](),'fieldId':_0x1ed3bb,'parentRecordId':this['_recordId'],'record':_0x2093fb,'source':c['BaseEventSource'][_0x35a9b2(0x24c)]}))throw Error(_0x35a9b2(0x341)+this[_0x35a9b2(0x258)]+'\x22.');return this[_0x35a9b2(0x1bc)][_0x35a9b2(0x1cf)](F,this[_0x35a9b2(0x2ab)],this['_table'],_0x2093fb['id'],this['_injector']);}['_getHierarchyIndex'](_0x4820cd){const _0x47eb7e=_0xa13645;return(0x0,c[_0x47eb7e(0x2d4)])(this[_0x47eb7e(0x248)][_0x47eb7e(0x30b)](),_0x4820cd);}[_0xa13645(0x33f)](_0x2493e7,_0x2b3705){let _0x12b4fc=[],_0x280e1f=_0x25e679=>{const _0x4e44ff=_0x4960;for(let _0x1f7ef2 of _0x2493e7[_0x4e44ff(0x221)](_0x25e679)??[])_0x12b4fc[_0x4e44ff(0x257)](_0x1f7ef2),_0x280e1f(_0x1f7ef2);};return _0x280e1f(_0x2b3705),_0x12b4fc;}[_0xa13645(0x2e9)](){const _0x979a72=_0xa13645;let _0x510698=this[_0x979a72(0x248)]['getTable']()[_0x979a72(0x25e)][this[_0x979a72(0x258)]];if(!_0x510698)throw Error(_0x979a72(0x2b3)+this[_0x979a72(0x258)]+_0x979a72(0x2ad));return _0x510698;}['_getRecordLinkField'](_0x3fe3f9){const _0x1aa0e7=_0xa13645;let _0x50c5a9=this[_0x1aa0e7(0x248)][_0x1aa0e7(0x30b)]()[_0x1aa0e7(0x31e)][_0x3fe3f9];if(!_0x50c5a9||_0x50c5a9[_0x1aa0e7(0x246)]!==l[_0x1aa0e7(0x1cb)][_0x1aa0e7(0x26a)])throw Error(_0x1aa0e7(0x23d)+_0x3fe3f9+_0x1aa0e7(0x289));return _0x50c5a9;}[_0xa13645(0x233)](_0x93a567){const _0x500bcb=_0xa13645;let _0x2d99ce=this[_0x500bcb(0x248)][_0x500bcb(0x30b)]()['fields'][_0x93a567];if(!_0x2d99ce||_0x2d99ce[_0x500bcb(0x246)]!==l['BaseFieldType'][_0x500bcb(0x209)])throw Error('[FRecord]:\x20field\x20\x22'+_0x93a567+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x2d99ce;}};I=F=g([h(0x4,l[_0xa13645(0x1d4)]),h(0x5,l[_0xa13645(0x1eb)])],I);function L(_0x2b9bdb){const _0x30f9ab=_0xa13645;return!!(_0x2b9bdb&&typeof _0x2b9bdb=='object'&&'id'in _0x2b9bdb&&typeof _0x2b9bdb['id']==_0x30f9ab(0x317)&&_0x30f9ab(0x346)in _0x2b9bdb&&typeof _0x2b9bdb['name']==_0x30f9ab(0x317));}function R(_0x4ceb45,_0x47db27,_0x158d24){const _0x4f71d5=_0xa13645;if(!L(_0x4ceb45))throw Error(_0x4f71d5(0x25d)+_0x158d24+_0x4f71d5(0x1e5)+_0x47db27+_0x4f71d5(0x2f4));return{..._0x4ceb45};}let z=class{constructor(_0xd24dfd,_0x2a39dd,_0x21bbaf,_0x5584fd,_0x54fd78,_0xddf811,_0x580fa8){const _0x2f8c9c=_0xa13645;this[_0x2f8c9c(0x2ab)]=_0xd24dfd,this['_table']=_0x2a39dd,this[_0x2f8c9c(0x1bb)]=_0x21bbaf,this[_0x2f8c9c(0x1bc)]=_0x5584fd,this['_commandService']=_0x54fd78,this['_permissionService']=_0xddf811,this[_0x2f8c9c(0x244)]=_0x580fa8;}[_0xa13645(0x20d)](){const _0x3a42e6=_0xa13645;return this[_0x3a42e6(0x1bb)];}[_0xa13645(0x2b0)](){const _0x2f5a14=_0xa13645;let _0x4af61a=this[_0x2f5a14(0x248)][_0x2f5a14(0x20d)]();return new m(this[_0x2f5a14(0x2ab)]['getId'](),(0x0,c[_0x2f5a14(0x292)])(_0x4af61a,this[_0x2f5a14(0x1bb)]),[(0x0,c[_0x2f5a14(0x1ae)])(_0x4af61a)],this[_0x2f5a14(0x1f9)],this[_0x2f5a14(0x2a3)]);}[_0xa13645(0x278)](){const _0x275cf6=_0xa13645;return this[_0x275cf6(0x32b)]();}[_0xa13645(0x2df)](){const _0x44a5d6=_0xa13645;return this[_0x44a5d6(0x32b)]()[_0x44a5d6(0x346)];}['getType'](){const _0x19ab74=_0xa13645;return this[_0x19ab74(0x32b)]()[_0x19ab74(0x246)];}[_0xa13645(0x297)](_0x55cac3){const _0x1c22bb=_0xa13645;return this['_commandService']['syncExecuteCommand'](c[_0x1c22bb(0x29e)]['id'],{'unitId':this[_0x1c22bb(0x2ab)][_0x1c22bb(0x20d)](),'tableId':this[_0x1c22bb(0x248)]['getId'](),'viewId':this['_viewId'],'name':_0x55cac3});}[_0xa13645(0x23f)](){const _0x3db098=_0xa13645;let _0x4141ef=this[_0x3db098(0x330)](),_0x5c3bca=this[_0x3db098(0x32b)]()[_0x3db098(0x2be)];switch(_0x4141ef){case l[_0x3db098(0x1d3)][_0x3db098(0x2ee)]:return _0x5c3bca;case l[_0x3db098(0x1d3)][_0x3db098(0x250)]:return _0x5c3bca;case l['BaseViewType']['Calendar']:return _0x5c3bca;case l['BaseViewType'][_0x3db098(0x2f5)]:return _0x5c3bca;case l[_0x3db098(0x1d3)][_0x3db098(0x282)]:return _0x5c3bca;default:return _0x5c3bca;}}[_0xa13645(0x2ea)](_0x280e93){const _0xe65b63=_0xa13645;return this[_0xe65b63(0x1f9)][_0xe65b63(0x34a)](c[_0xe65b63(0x1ef)]['id'],{'unitId':this[_0xe65b63(0x2ab)][_0xe65b63(0x20d)](),'tableId':this[_0xe65b63(0x248)]['getId'](),'viewId':this['_viewId'],'patch':_0x280e93});}['getConditionalColorRules'](){const _0x23cd09=_0xa13645;var _0x18e513;return l[_0x23cd09(0x298)][_0x23cd09(0x2e0)](((_0x18e513=this[_0x23cd09(0x32b)]()[_0x23cd09(0x2be)]['conditionalColoring'])==null?void 0x0:_0x18e513['rules'])??[]);}['setConditionalColorRules'](_0x23c604){const _0x148595=_0xa13645;return this[_0x148595(0x1f9)][_0x148595(0x34a)](c[_0x148595(0x26d)]['id'],{'unitId':this[_0x148595(0x2ab)]['getId'](),'tableId':this[_0x148595(0x248)][_0x148595(0x20d)](),'viewId':this[_0x148595(0x1bb)],'type':c['BaseConditionalColorRuleUpdateType'][_0x148595(0x1f0)],'rules':_0x23c604});}[_0xa13645(0x2da)](_0x4d1a30){const _0x4ffae6=_0xa13645;return this[_0x4ffae6(0x1f9)][_0x4ffae6(0x34a)](c[_0x4ffae6(0x26d)]['id'],{'unitId':this[_0x4ffae6(0x2ab)][_0x4ffae6(0x20d)](),'tableId':this[_0x4ffae6(0x248)][_0x4ffae6(0x20d)](),'viewId':this[_0x4ffae6(0x1bb)],'type':c[_0x4ffae6(0x34b)][_0x4ffae6(0x1e1)],'rule':_0x4d1a30});}['deleteConditionalColorRule'](_0x56d816){const _0x2ecd6d=_0xa13645;return this[_0x2ecd6d(0x1f9)][_0x2ecd6d(0x34a)](c[_0x2ecd6d(0x26d)]['id'],{'unitId':this[_0x2ecd6d(0x2ab)][_0x2ecd6d(0x20d)](),'tableId':this[_0x2ecd6d(0x248)][_0x2ecd6d(0x20d)](),'viewId':this[_0x2ecd6d(0x1bb)],'type':c[_0x2ecd6d(0x34b)]['Delete'],'ruleId':_0x56d816});}[_0xa13645(0x2f9)](){const _0x179e68=_0xa13645;return this[_0x179e68(0x1f9)][_0x179e68(0x34a)](c[_0x179e68(0x26d)]['id'],{'unitId':this[_0x179e68(0x2ab)][_0x179e68(0x20d)](),'tableId':this[_0x179e68(0x248)]['getId'](),'viewId':this[_0x179e68(0x1bb)],'type':c[_0x179e68(0x34b)][_0x179e68(0x2f0)]});}[_0xa13645(0x30a)](){const _0x269fae=_0xa13645;return this['_getView']()[_0x269fae(0x271)]??null;}[_0xa13645(0x362)](_0x4aec9e){const _0x5f4d29=_0xa13645;return this[_0x5f4d29(0x1f9)][_0x5f4d29(0x34a)](c[_0x5f4d29(0x272)]['id'],{'unitId':this[_0x5f4d29(0x2ab)]['getId'](),'tableId':this[_0x5f4d29(0x248)]['getId'](),'viewId':this['_viewId'],'filter':_0x4aec9e});}['getSort'](){return this['_getView']()['sort']??[];}[_0xa13645(0x342)](_0x3b852c){const _0x4d66fc=_0xa13645;return this[_0x4d66fc(0x1f9)]['syncExecuteCommand'](c[_0x4d66fc(0x2b1)]['id'],{'unitId':this[_0x4d66fc(0x2ab)][_0x4d66fc(0x20d)](),'tableId':this[_0x4d66fc(0x248)][_0x4d66fc(0x20d)](),'viewId':this[_0x4d66fc(0x1bb)],'sort':_0x3b852c});}[_0xa13645(0x30d)](){const _0x16bbd2=_0xa13645;return this[_0x16bbd2(0x32b)]()[_0x16bbd2(0x2ff)]??[];}[_0xa13645(0x2e3)](_0x403b35){const _0x4a8bc9=_0xa13645;return this[_0x4a8bc9(0x1f9)][_0x4a8bc9(0x34a)](c['SetBaseViewGroupCommand']['id'],{'unitId':this[_0x4a8bc9(0x2ab)][_0x4a8bc9(0x20d)](),'tableId':this[_0x4a8bc9(0x248)]['getId'](),'viewId':this[_0x4a8bc9(0x1bb)],'group':_0x403b35});}['getFieldSettings'](_0x125d82){const _0x3ad9ee=_0xa13645;var _0x1a6be8;return y(this[_0x3ad9ee(0x248)]['getTable']()['fields'][_0x125d82])?((_0x1a6be8=this[_0x3ad9ee(0x32b)]()['fieldSettings'])==null?void 0x0:_0x1a6be8[_0x125d82])??{}:{};}['getVisibleFields'](){const _0x5cd688=_0xa13645;let _0x2323c9=this[_0x5cd688(0x248)]['getTable'](),_0x772ead=this[_0x5cd688(0x32b)]();return(_0x772ead[_0x5cd688(0x334)]??_0x2323c9[_0x5cd688(0x334)])[_0x5cd688(0x271)](_0x33a388=>{const _0x2539e0=_0x5cd688;var _0x307045;let _0x1397d8=_0x2323c9[_0x2539e0(0x31e)][_0x33a388];return y(_0x1397d8)&&!((_0x307045=_0x772ead['fieldSettings'])!=null&&(_0x307045=_0x307045[_0x33a388])!=null&&_0x307045[_0x2539e0(0x339)]);})[_0x5cd688(0x1d5)](_0x57967a=>this[_0x5cd688(0x1bc)]['createInstance'](_,this[_0x5cd688(0x2ab)],this['_table'],_0x57967a));}['setFieldVisible'](_0xf15c2d,_0x26c10e){const _0x1a8918=_0xa13645;return y(this[_0x1a8918(0x248)]['getTable']()[_0x1a8918(0x31e)][_0xf15c2d])?this[_0x1a8918(0x1f9)]['syncExecuteCommand'](c[_0x1a8918(0x35d)]['id'],{'unitId':this[_0x1a8918(0x2ab)][_0x1a8918(0x20d)](),'tableId':this[_0x1a8918(0x248)][_0x1a8918(0x20d)](),'viewId':this[_0x1a8918(0x1bb)],'fieldId':_0xf15c2d,'visible':_0x26c10e}):!0x1;}[_0xa13645(0x1ca)](_0xedd3f,_0x344169){const _0x3efadd=_0xa13645;return y(this[_0x3efadd(0x248)]['getTable']()[_0x3efadd(0x31e)][_0xedd3f])?this[_0x3efadd(0x1f9)][_0x3efadd(0x34a)](c['SetBaseViewFieldWidthCommand']['id'],{'unitId':this[_0x3efadd(0x2ab)][_0x3efadd(0x20d)](),'tableId':this[_0x3efadd(0x248)]['getId'](),'viewId':this[_0x3efadd(0x1bb)],'fieldId':_0xedd3f,'width':_0x344169}):!0x1;}['moveField'](_0x11aeb8,_0x41a961){const _0x3f51f4=_0xa13645;let _0x3267e9=this[_0x3f51f4(0x248)]['getTable'](),_0xa39447=_0x41a961[_0x3f51f4(0x2cd)]??_0x41a961[_0x3f51f4(0x23a)];return!y(_0x3267e9[_0x3f51f4(0x31e)][_0x11aeb8])||!_0xa39447||!y(_0x3267e9[_0x3f51f4(0x31e)][_0xa39447])?!0x1:this[_0x3f51f4(0x1f9)]['syncExecuteCommand'](c[_0x3f51f4(0x20a)]['id'],{'unitId':this[_0x3f51f4(0x2ab)][_0x3f51f4(0x20d)](),'tableId':this[_0x3f51f4(0x248)][_0x3f51f4(0x20d)](),'viewId':this['_viewId'],'fieldId':_0x11aeb8,'target':_0x41a961});}['move'](_0x48b342){const _0xc47ed0=_0xa13645;return this[_0xc47ed0(0x1f9)][_0xc47ed0(0x34a)](c[_0xc47ed0(0x2fe)]['id'],{'unitId':this[_0xc47ed0(0x2ab)][_0xc47ed0(0x20d)](),'tableId':this['_table'][_0xc47ed0(0x20d)](),'viewId':this[_0xc47ed0(0x1bb)],'target':_0x48b342});}[_0xa13645(0x243)](){const _0x4b89a5=_0xa13645;return this[_0x4b89a5(0x1f9)][_0x4b89a5(0x34a)](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x4b89a5(0x2ab)][_0x4b89a5(0x20d)](),'tableId':this[_0x4b89a5(0x248)][_0x4b89a5(0x20d)](),'viewId':this[_0x4b89a5(0x1bb)]});}[_0xa13645(0x33d)](){const _0x4f9bb5=_0xa13645;return this[_0x4f9bb5(0x244)][_0x4f9bb5(0x33d)](this['_base'][_0x4f9bb5(0x26f)]()[_0x4f9bb5(0x24e)](),this['_table'][_0x4f9bb5(0x20d)](),this[_0x4f9bb5(0x1bb)]);}['_getView'](){const _0x5781dd=_0xa13645;let _0x50900c=this['_table']['getTable']()[_0x5781dd(0x1ea)][this[_0x5781dd(0x1bb)]];if(!_0x50900c)throw Error(_0x5781dd(0x29b)+this[_0x5781dd(0x1bb)]+_0x5781dd(0x2ad));return _0x50900c;}};z=g([h(0x4,l['ICommandService']),h(0x5,l[_0xa13645(0x1eb)]),h(0x6,c['IBaseProjectionService'])],z);let B=class{constructor(_0x1bd227,_0x4114e5,_0x19f8ad,_0x1039b4,_0xcbd3e3,_0x365620){const _0x3382d3=_0xa13645;this['_base']=_0x1bd227,this[_0x3382d3(0x2b7)]=_0x4114e5,this[_0x3382d3(0x1bc)]=_0x19f8ad,this[_0x3382d3(0x1f9)]=_0x1039b4,this[_0x3382d3(0x2a3)]=_0xcbd3e3,this['_projectionService']=_0x365620;}[_0xa13645(0x26f)](){const _0x36cee3=_0xa13645;return this[_0x36cee3(0x2ab)]['getBase']();}[_0xa13645(0x30b)](){const _0x2e2b34=_0xa13645;return this[_0x2e2b34(0x236)]();}[_0xa13645(0x20d)](){return this['_tableId'];}['getPermission'](){const _0x38101d=_0xa13645;return new m(this[_0x38101d(0x26f)]()[_0x38101d(0x300)](),(0x0,c[_0x38101d(0x1ae)])(this[_0x38101d(0x2b7)]),[],this[_0x38101d(0x1f9)],this[_0x38101d(0x2a3)]);}[_0xa13645(0x23e)](){const _0x32ba29=_0xa13645;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x32ba29(0x236)]());}[_0xa13645(0x247)](_0x1e2769){const _0x337300=_0xa13645;return this[_0x337300(0x1f9)]['syncExecuteCommand'](c[_0x337300(0x345)]['id'],{'unitId':this[_0x337300(0x2ab)][_0x337300(0x20d)](),'tableId':this['_tableId'],'fieldId':_0x1e2769});}['getName'](){const _0x1e2e2c=_0xa13645;return this[_0x1e2e2c(0x236)]()['name'];}[_0xa13645(0x1fc)](){const _0x1557ae=_0xa13645;let _0x482442=this['_base'][_0x1557ae(0x26f)]()['getSnapshot']();return(0x0,c['getBaseFormulaTableName'])(this[_0x1557ae(0x236)](),_0x482442);}[_0xa13645(0x297)](_0x48c914){const _0x133b5d=_0xa13645;let _0x21e699=(0x0,c['validateBaseTableName'])(this['_base'][_0x133b5d(0x26f)]()[_0x133b5d(0x24e)](),_0x48c914,this[_0x133b5d(0x2b7)]);if(!_0x21e699[_0x133b5d(0x32c)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x48c914+_0x133b5d(0x322)+c['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x21e699[_0x133b5d(0x2b8)]);return this[_0x133b5d(0x1f9)][_0x133b5d(0x34a)](c['RenameBaseTableCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x133b5d(0x2b7)],'name':_0x48c914});}['search'](_0x16089c,_0x28d812){const _0x4969b4=_0xa13645;let _0x1e9fab=this[_0x4969b4(0x2ab)][_0x4969b4(0x26f)]()[_0x4969b4(0x24e)](),_0xfbcf8b=this['_getTable']();if(_0x28d812){let _0x12ab7a=this[_0x4969b4(0x244)][_0x4969b4(0x33d)](_0x1e9fab,this[_0x4969b4(0x2b7)],_0x28d812),_0x51fb21=_0xfbcf8b[_0x4969b4(0x1ea)][_0x28d812],_0x149314=_0x16089c['fieldIds']??J(_0xfbcf8b,_0x51fb21,_0x12ab7a),_0x13120a=_0x4969b4(0x2b5)in _0x12ab7a&&Array[_0x4969b4(0x2ed)](_0x12ab7a[_0x4969b4(0x2b5)])?_0x12ab7a[_0x4969b4(0x2b5)]:[];return(0x0,c['searchBaseTable'])({..._0x16089c,'table':_0xfbcf8b,'fieldIds':_0x149314,'rows':_0x13120a});}let _0x125381=(_0xfbcf8b[_0x4969b4(0x242)]?_0xfbcf8b[_0x4969b4(0x242)][_0x4969b4(0x1d5)](_0x9d56c5=>_0xfbcf8b[_0x4969b4(0x25e)][_0x9d56c5]):Object[_0x4969b4(0x27c)](_0xfbcf8b[_0x4969b4(0x25e)])[_0x4969b4(0x333)]((_0x30b3cc,_0x556d11)=>_0x30b3cc[_0x4969b4(0x1f4)][_0x4969b4(0x33a)](_0x556d11[_0x4969b4(0x1f4)])))['filter'](_0x1c0a19=>_0x1c0a19)[_0x4969b4(0x1d5)](_0x386fca=>({'recordId':_0x386fca['id'],'values':_0x386fca['values']})),_0x23c63d=_0x16089c[_0x4969b4(0x21c)]??_0xfbcf8b[_0x4969b4(0x334)][_0x4969b4(0x271)](_0xa5d102=>y(_0xfbcf8b[_0x4969b4(0x31e)][_0xa5d102]));return(0x0,c[_0x4969b4(0x1c7)])({..._0x16089c,'table':_0xfbcf8b,'fieldIds':_0x23c63d,'rows':_0x125381});}[_0xa13645(0x28d)](){const _0x1bf7e1=_0xa13645;return this[_0x1bf7e1(0x236)]()[_0x1bf7e1(0x353)];}['getFields'](){const _0x1f23b3=_0xa13645;let _0x5ba96f=this[_0x1f23b3(0x236)]();return _0x5ba96f[_0x1f23b3(0x334)][_0x1f23b3(0x1d5)](_0x3ca665=>_0x5ba96f[_0x1f23b3(0x31e)][_0x3ca665])['filter'](y)[_0x1f23b3(0x1d5)](_0x3f66c1=>this[_0x1f23b3(0x1bc)]['createInstance'](_,this[_0x1f23b3(0x2ab)],this,_0x3f66c1['id']));}[_0xa13645(0x1ac)](_0x3a0242){const _0x22a8d6=_0xa13645;let _0x35e26b=this[_0x22a8d6(0x236)]()[_0x22a8d6(0x31e)][_0x3a0242];return y(_0x35e26b)?this[_0x22a8d6(0x1bc)]['createInstance'](_,this[_0x22a8d6(0x2ab)],this,_0x35e26b['id']):null;}[_0xa13645(0x304)](_0x255379){const _0x57ed8f=_0xa13645;let _0x4a7c11=this[_0x57ed8f(0x236)]()[_0x57ed8f(0x31e)],_0xb25072=Object[_0x57ed8f(0x27c)](_0x4a7c11)[_0x57ed8f(0x2d1)](_0x197042=>y(_0x197042)&&_0x197042['name']===_0x255379);return _0xb25072?this[_0x57ed8f(0x1bc)][_0x57ed8f(0x1cf)](_,this[_0x57ed8f(0x2ab)],this,_0xb25072['id']):null;}[_0xa13645(0x27f)](){const _0x1088fb=_0xa13645;let _0x45b17a=this[_0x1088fb(0x236)]()[_0x1088fb(0x353)];return this['_injector'][_0x1088fb(0x1cf)](_,this['_base'],this,_0x45b17a);}[_0xa13645(0x1b9)](_0x211e7a,_0x202114,_0x87ac5a){const _0x534e0f=_0xa13645;var _0x1e9868,_0x1c9131;if(!Object['values'](l['BaseFieldType'])[_0x534e0f(0x1e7)](_0x5009be=>_0x5009be===_0x202114))throw Error(_0x534e0f(0x241)+String(_0x202114)+'\x22.');if(_0x202114===l['BaseFieldType'][_0x534e0f(0x1c6)]&&this[_0x534e0f(0x24b)](_0x211e7a,_0x87ac5a),_0x202114===l['BaseFieldType']['RecordLink']&&(typeof(_0x87ac5a==null||(_0x1e9868=_0x87ac5a[_0x534e0f(0x1ee)])==null||(_0x1e9868=_0x1e9868[_0x534e0f(0x2be)])==null?void 0x0:_0x1e9868['targetTableId'])!=_0x534e0f(0x317)||typeof _0x87ac5a[_0x534e0f(0x1ee)][_0x534e0f(0x2be)]['multiple']!='boolean'))throw Error(_0x534e0f(0x323));let _0x3ad317={..._0x87ac5a==null?void 0x0:_0x87ac5a[_0x534e0f(0x1ee)],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x211e7a,'type':_0x202114,'config':(_0x87ac5a==null||(_0x1c9131=_0x87ac5a[_0x534e0f(0x1ee)])==null?void 0x0:_0x1c9131['config'])??{}};if(!this[_0x534e0f(0x1f9)][_0x534e0f(0x34a)](c[_0x534e0f(0x260)]['id'],{'unitId':this[_0x534e0f(0x2ab)][_0x534e0f(0x20d)](),'tableId':this[_0x534e0f(0x2b7)],'field':_0x3ad317,'index':_0x87ac5a==null?void 0x0:_0x87ac5a['index']}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x211e7a+'\x22');return this[_0x534e0f(0x1bc)][_0x534e0f(0x1cf)](_,this[_0x534e0f(0x2ab)],this,_0x3ad317['id']);}[_0xa13645(0x24b)](_0x470274,_0x49a1c9){const _0x239206=_0xa13645;var _0x1273a5;if(!_0x49a1c9||!(_0x239206(0x20f)in _0x49a1c9)||!Array['isArray'](_0x49a1c9[_0x239206(0x20f)]))throw Error(_0x239206(0x1cd));let _0x2cbd4d=this[_0x239206(0x1f9)][_0x239206(0x34a)](c[_0x239206(0x1d1)]['id'],{'unitId':this[_0x239206(0x2ab)]['getId'](),'tableId':this[_0x239206(0x2b7)],'formula':String(((_0x1273a5=_0x49a1c9[_0x239206(0x1ee)])==null||(_0x1273a5=_0x1273a5['config'])==null?void 0x0:_0x1273a5[_0x239206(0x1d7)])??'')});if(!_0x2cbd4d[_0x239206(0x32c)])throw Error(_0x2cbd4d[_0x239206(0x2b8)]??'Invalid\x20Base\x20formula.');if(_0x49a1c9['externalReferences'][_0x239206(0x2c8)]>0x0&&!this[_0x239206(0x1f9)][_0x239206(0x34a)](f['UpsertHostExternalReferencesCommand']['id'],{'unitId':this[_0x239206(0x2ab)][_0x239206(0x20d)](),'references':_0x49a1c9['externalReferences']}))throw Error(_0x239206(0x2e8)+_0x470274+'\x22');}[_0xa13645(0x301)](){const _0x3ad1ce=_0xa13645;return this[_0x3ad1ce(0x1ce)]()[_0x3ad1ce(0x1d5)](_0x278fe5=>this[_0x3ad1ce(0x1bc)][_0x3ad1ce(0x1cf)](I,this['_base'],this,_0x278fe5,this[_0x3ad1ce(0x1bc)]));}[_0xa13645(0x1b6)](_0x5f5bab){const _0xd95f7e=_0xa13645;return this[_0xd95f7e(0x236)]()[_0xd95f7e(0x25e)][_0x5f5bab]?this[_0xd95f7e(0x1bc)][_0xd95f7e(0x1cf)](I,this[_0xd95f7e(0x2ab)],this,_0x5f5bab,this['_injector']):null;}[_0xa13645(0x35b)](_0x590454={}){const _0x2ef84d=_0xa13645;let _0x44de70=this[_0x2ef84d(0x236)](),_0x105b06=this[_0x2ef84d(0x1ce)](_0x590454),_0x3001e8=Math['max'](0x0,_0x590454[_0x2ef84d(0x2c5)]??0x0),_0x24f643=_0x590454[_0x2ef84d(0x340)]==null?null:Math[_0x2ef84d(0x352)](0x0,_0x590454[_0x2ef84d(0x340)]),_0xb204d=H(_0x105b06['map'](_0x3f0f5=>_0x44de70[_0x2ef84d(0x25e)][_0x3f0f5])['filter'](_0x1c18b6=>W(_0x1c18b6,_0x44de70,_0x590454[_0x2ef84d(0x271)])),_0x44de70,_0x590454[_0x2ef84d(0x333)]);return{'records':V(_0xb204d,_0x590454)[_0x2ef84d(0x1d5)](_0x5456eb=>this[_0x2ef84d(0x1bc)][_0x2ef84d(0x1cf)](I,this[_0x2ef84d(0x2ab)],this,_0x5456eb['id'],this['_injector'])),'total':_0xb204d['length'],'offset':_0x3001e8,'limit':_0x24f643,'hasMore':_0x24f643!=null&&_0x3001e8+_0x24f643<_0xb204d[_0x2ef84d(0x2c8)]};}[_0xa13645(0x202)](_0x370725,_0x47311a='id',_0x17c3b9){const _0x5cbfdc=_0xa13645;let _0x17bf6a=this[_0x5cbfdc(0x236)](),_0x37ecf8=Date[_0x5cbfdc(0x309)](),_0x4592c9={..._0x17c3b9,'id':(0x0,l[_0x5cbfdc(0x2bf)])(0x6),'values':b(_0x17bf6a,_0x370725,_0x47311a),'orderKey':(_0x17c3b9==null?void 0x0:_0x17c3b9['orderKey'])||''+_0x37ecf8,'createdAt':(_0x17c3b9==null?void 0x0:_0x17c3b9[_0x5cbfdc(0x286)])||_0x37ecf8,'updatedAt':(_0x17c3b9==null?void 0x0:_0x17c3b9[_0x5cbfdc(0x2d9)])||_0x37ecf8};if(!this['_commandService'][_0x5cbfdc(0x34a)](c[_0x5cbfdc(0x363)]['id'],{'unitId':this['_base'][_0x5cbfdc(0x20d)](),'tableId':this[_0x5cbfdc(0x2b7)],'record':_0x4592c9,'source':c['BaseEventSource'][_0x5cbfdc(0x24c)]}))throw Error(_0x5cbfdc(0x24d)+_0x4592c9['id']+'\x22');return this[_0x5cbfdc(0x1bc)][_0x5cbfdc(0x1cf)](I,this[_0x5cbfdc(0x2ab)],this,_0x4592c9['id'],this[_0x5cbfdc(0x1bc)]);}[_0xa13645(0x335)](_0x40985b){const _0x14fd60=_0xa13645;if(!_0x40985b['length'])return[];let _0x2303cf=this['_getTable'](),_0x490b4c=Date[_0x14fd60(0x309)](),_0x28a93a=_0x40985b[_0x14fd60(0x1d5)]((_0x4b84a4,_0x45e373)=>{const _0x186ce9=_0x14fd60;var _0x32c764,_0x6645aa,_0x15d97d;return{..._0x4b84a4[_0x186ce9(0x2aa)],'id':(0x0,l[_0x186ce9(0x2bf)])(0x6),'values':b(_0x2303cf,_0x4b84a4[_0x186ce9(0x27c)],_0x4b84a4[_0x186ce9(0x229)]??'id'),'orderKey':((_0x32c764=_0x4b84a4[_0x186ce9(0x2aa)])==null?void 0x0:_0x32c764[_0x186ce9(0x1f4)])||''+(_0x490b4c+_0x45e373),'createdAt':((_0x6645aa=_0x4b84a4['record'])==null?void 0x0:_0x6645aa['createdAt'])||_0x490b4c,'updatedAt':((_0x15d97d=_0x4b84a4[_0x186ce9(0x2aa)])==null?void 0x0:_0x15d97d[_0x186ce9(0x2d9)])||_0x490b4c};});if(!this['_commandService'][_0x14fd60(0x34a)](c[_0x14fd60(0x204)]['id'],{'unitId':this[_0x14fd60(0x2ab)]['getId'](),'tableId':this[_0x14fd60(0x2b7)],'records':_0x28a93a,'source':c[_0x14fd60(0x35c)][_0x14fd60(0x24c)]}))throw Error(_0x14fd60(0x347));return _0x28a93a['map'](_0x1b2c37=>this[_0x14fd60(0x1bc)][_0x14fd60(0x1cf)](I,this[_0x14fd60(0x2ab)],this,_0x1b2c37['id'],this[_0x14fd60(0x1bc)]));}[_0xa13645(0x200)](_0x3503cf){const _0x15ab99=_0xa13645;return!_0x3503cf[_0x15ab99(0x2c8)]||this['_commandService'][_0x15ab99(0x34a)](c['BatchDeleteBaseRecordsCommand']['id'],{'unitId':this[_0x15ab99(0x2ab)][_0x15ab99(0x20d)](),'tableId':this['_tableId'],'recordIds':_0x3503cf,'source':c[_0x15ab99(0x35c)]['Facade']});}[_0xa13645(0x1c3)](_0xcca95d,_0x2921d5,_0x296800=0x1,_0x28b647=0x1){const _0x29e8f6=_0xa13645;return this['_injector']['createInstance'](A,this[_0x29e8f6(0x2ab)],this,{'startRow':_0xcca95d,'endRow':_0xcca95d+_0x296800-0x1,'startColumn':_0x2921d5,'endColumn':_0x2921d5+_0x28b647-0x1},this[_0x29e8f6(0x1bc)]);}[_0xa13645(0x33b)](){const _0x454f95=_0xa13645;var _0x222839;let _0x27920c=(0x0,c[_0x454f95(0x256)])(this[_0x454f95(0x236)]()),_0x3d2fd0=((_0x222839=_0x27920c[_0x454f95(0x242)])==null?void 0x0:_0x222839[_0x454f95(0x2c8)])??0x0,_0x39adce=_0x27920c[_0x454f95(0x334)][_0x454f95(0x271)](_0x976f6b=>y(_0x27920c['fields'][_0x976f6b]))[_0x454f95(0x2c8)];return this[_0x454f95(0x1c3)](0x0,0x0,Math[_0x454f95(0x352)](_0x3d2fd0,0x1),Math[_0x454f95(0x352)](_0x39adce,0x1));}[_0xa13645(0x287)](){const _0x19545f=_0xa13645;let _0x3d390d=this[_0x19545f(0x236)]();return _0x3d390d[_0x19545f(0x1fa)][_0x19545f(0x271)](_0x356598=>_0x3d390d[_0x19545f(0x1ea)][_0x356598])[_0x19545f(0x1d5)](_0x40d299=>this['_injector'][_0x19545f(0x1cf)](z,this[_0x19545f(0x2ab)],this,_0x40d299,this[_0x19545f(0x1bc)]));}[_0xa13645(0x1be)](_0x32a5e1){const _0x11165c=_0xa13645;return this[_0x11165c(0x236)]()['views'][_0x32a5e1]?this['_injector'][_0x11165c(0x1cf)](z,this[_0x11165c(0x2ab)],this,_0x32a5e1,this[_0x11165c(0x1bc)]):null;}['getViewByName'](_0x2c1945){const _0x23a405=_0xa13645;let _0x1d8d55=this['_getTable'](),_0x541931=Object['values'](_0x1d8d55[_0x23a405(0x1ea)])[_0x23a405(0x2d1)](_0x95888f=>_0x95888f[_0x23a405(0x346)]===_0x2c1945);return _0x541931?this[_0x23a405(0x1bc)][_0x23a405(0x1cf)](z,this[_0x23a405(0x2ab)],this,_0x541931['id'],this[_0x23a405(0x1bc)]):null;}[_0xa13645(0x216)](_0x7fdbb2,_0x354253,_0xacdc1f){const _0x1eed9d=_0xa13645;var _0x580175,_0x1fd692,_0x8adaba,_0x3252e0;let _0x537996=this['_getTable'](),_0x38ae60=(_0xacdc1f==null||(_0x580175=_0xacdc1f['view'])==null?void 0x0:_0x580175['fieldOrder'])??_0x537996['fieldOrder'],_0x4fe116=[l[_0x1eed9d(0x291)],..._0x38ae60['filter'](_0x375446=>y(_0x537996[_0x1eed9d(0x31e)][_0x375446]))],_0xc0158d={..._0xacdc1f==null?void 0x0:_0xacdc1f[_0x1eed9d(0x2fc)],'id':(0x0,l[_0x1eed9d(0x2bf)])(0x6),'name':_0x7fdbb2,'type':_0x354253,'tableId':this[_0x1eed9d(0x2b7)],'config':(_0xacdc1f==null||(_0x1fd692=_0xacdc1f[_0x1eed9d(0x2fc)])==null?void 0x0:_0x1fd692[_0x1eed9d(0x2be)])??{},'fieldOrder':_0x4fe116,'fieldSettings':{..._0xacdc1f==null||(_0x8adaba=_0xacdc1f[_0x1eed9d(0x2fc)])==null?void 0x0:_0x8adaba[_0x1eed9d(0x1fe)],[l[_0x1eed9d(0x291)]]:{..._0xacdc1f==null||(_0x3252e0=_0xacdc1f[_0x1eed9d(0x2fc)])==null||(_0x3252e0=_0x3252e0[_0x1eed9d(0x1fe)])==null?void 0x0:_0x3252e0[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this['_commandService'][_0x1eed9d(0x34a)](c['CreateBaseViewCommand']['id'],{'unitId':this[_0x1eed9d(0x2ab)]['getId'](),'tableId':this[_0x1eed9d(0x2b7)],'view':_0xc0158d,'index':_0xacdc1f==null?void 0x0:_0xacdc1f[_0x1eed9d(0x285)]}))throw Error(_0x1eed9d(0x227)+_0x7fdbb2+'\x22');return this['_injector']['createInstance'](z,this[_0x1eed9d(0x2ab)],this,_0xc0158d['id'],this[_0x1eed9d(0x1bc)]);}[_0xa13645(0x25b)](){const _0x159370=_0xa13645;let _0x258b6c=this[_0x159370(0x236)](),_0x21694b=_0x258b6c[_0x159370(0x334)][_0x159370(0x271)](_0x5b950b=>y(_0x258b6c['fields'][_0x5b950b])),_0x539e6a=_0x258b6c[_0x159370(0x1fa)][_0x159370(0x271)](_0x194bd3=>_0x258b6c[_0x159370(0x1ea)][_0x194bd3]);return{'id':_0x258b6c['id'],'name':_0x258b6c[_0x159370(0x346)],'formulaName':this[_0x159370(0x1fc)](),'primaryFieldId':_0x258b6c['primaryFieldId'],'fieldIds':_0x21694b,'viewIds':_0x539e6a,'recordCount':this[_0x159370(0x1ce)]()[_0x159370(0x2c8)],'fields':_0x21694b[_0x159370(0x1d5)](_0x14cda5=>{const _0x351e19=_0x159370;let _0xcf24d6=_0x258b6c[_0x351e19(0x31e)][_0x14cda5];return{'id':_0xcf24d6['id'],'name':_0xcf24d6[_0x351e19(0x346)],'type':_0xcf24d6[_0x351e19(0x246)],'config':_0xcf24d6['config'],'readonly':_0xcf24d6[_0x351e19(0x29c)],'description':_0xcf24d6[_0x351e19(0x2e7)]};}),'views':_0x539e6a[_0x159370(0x1d5)](_0x48941f=>{const _0x50ceda=_0x159370;let _0x53b36c=_0x258b6c[_0x50ceda(0x1ea)][_0x48941f];return{'id':_0x53b36c['id'],'name':_0x53b36c[_0x50ceda(0x346)],'type':_0x53b36c['type']};})};}[_0xa13645(0x236)](){const _0x470d02=_0xa13645;let _0x148162=this[_0x470d02(0x2ab)]['getBase']()['getSnapshot']()[_0x470d02(0x252)][this['_tableId']];if(!_0x148162)throw Error(_0x470d02(0x2a5)+this[_0x470d02(0x2b7)]+'\x22\x20does\x20not\x20exist.');return _0x148162;}['_resolveRecordIds'](_0x283cfd={}){const _0x286675=_0xa13645;let _0xa6b0b1=this[_0x286675(0x2ab)][_0x286675(0x26f)]()[_0x286675(0x24e)](),_0x1ab614=this[_0x286675(0x236)]();if(_0x283cfd['viewId']){let _0x5866f5=this[_0x286675(0x244)][_0x286675(0x33d)](_0xa6b0b1,this[_0x286675(0x2b7)],_0x283cfd[_0x286675(0x294)]);if(_0x286675(0x2b5)in _0x5866f5&&Array[_0x286675(0x2ed)](_0x5866f5[_0x286675(0x2b5)]))return _0x5866f5['rows'][_0x286675(0x1d5)](_0x23e28c=>_0x23e28c[_0x286675(0x201)]);}return(_0x1ab614[_0x286675(0x242)]?_0x1ab614[_0x286675(0x242)]['map'](_0x5d51b1=>_0x1ab614['records'][_0x5d51b1]):Object['values'](_0x1ab614['records'])[_0x286675(0x333)]((_0x29c9d5,_0x21f97)=>_0x29c9d5['orderKey'][_0x286675(0x33a)](_0x21f97[_0x286675(0x1f4)])))[_0x286675(0x271)](_0x1f811a=>_0x1f811a)[_0x286675(0x1d5)](_0x4d7220=>_0x4d7220['id']);}};function _0x4960(_0x1aa4c9,_0x3dbdcc){_0x1aa4c9=_0x1aa4c9-0x1aa;const _0x141ed1=_0x141e();let _0x4960b3=_0x141ed1[_0x1aa4c9];return _0x4960b3;}B=g([h(0x3,l[_0xa13645(0x1d4)]),h(0x4,l[_0xa13645(0x1eb)]),h(0x5,c[_0xa13645(0x2e5)])],B);function V(_0x29306a,_0x331bd7){const _0x37f025=_0xa13645;let _0x418220=Math[_0x37f025(0x352)](0x0,_0x331bd7[_0x37f025(0x2c5)]??0x0);return _0x331bd7[_0x37f025(0x340)]==null?_0x29306a['slice'](_0x418220):_0x29306a[_0x37f025(0x2a7)](_0x418220,_0x418220+Math['max'](0x0,_0x331bd7[_0x37f025(0x340)]));}function H(_0x1f4c68,_0x4a0ad8,_0x2fb675=[]){const _0x561958=_0xa13645;return _0x2fb675[_0x561958(0x2c8)]?[..._0x1f4c68][_0x561958(0x333)]((_0x32ba08,_0x16ceb5)=>{const _0xf5d06e=_0x561958;for(let _0x22aa9f of _0x2fb675){var _0x51778d;let _0x30865d=_0x22aa9f[_0xf5d06e(0x28c)]===l[_0xf5d06e(0x276)][_0xf5d06e(0x1ff)]?-0x1:0x1,_0x5e5b3e=U(_0x32ba08[_0xf5d06e(0x27c)][_0x22aa9f[_0xf5d06e(0x29f)]],_0x16ceb5['values'][_0x22aa9f[_0xf5d06e(0x29f)]],(_0x51778d=_0x4a0ad8[_0xf5d06e(0x31e)][_0x22aa9f[_0xf5d06e(0x29f)]])==null?void 0x0:_0x51778d[_0xf5d06e(0x246)]);if(_0x5e5b3e!==0x0)return _0x5e5b3e*_0x30865d;}return String(_0x32ba08[_0xf5d06e(0x1f4)]??_0x32ba08['id'])[_0xf5d06e(0x33a)](String(_0x16ceb5[_0xf5d06e(0x1f4)]??_0x16ceb5['id']));}):_0x1f4c68;}function U(_0x1c8d6e,_0x4f8fba,_0x2c93ef){const _0x9f5b62=_0xa13645;return _0x1c8d6e==null&&_0x4f8fba==null?0x0:_0x1c8d6e==null?-0x1:_0x4f8fba==null?0x1:typeof _0x1c8d6e=='number'&&typeof _0x4f8fba==_0x9f5b62(0x359)?_0x1c8d6e-_0x4f8fba:_0x2c93ef===l[_0x9f5b62(0x1cb)]['Date']?Number(_0x1c8d6e)-Number(_0x4f8fba):String(_0x1c8d6e)[_0x9f5b62(0x33a)](String(_0x4f8fba));}function W(_0x23a86a,_0x94975b,_0x3d3705){const _0x5abd6f=_0xa13645;var _0x44d805;if(!_0x3d3705||!((_0x44d805=_0x3d3705[_0x5abd6f(0x22b)])!=null&&_0x44d805['length']))return!0x0;let {conjunction:_0x36f5cf=l[_0x5abd6f(0x34d)]['OR'],conditions:_0x223a4e}=_0x3d3705;return _0x36f5cf===l[_0x5abd6f(0x34d)]['AND']&&_0x223a4e['length']>0x1?_0x223a4e['every'](_0x4b2cbc=>G(_0x23a86a,_0x94975b,_0x4b2cbc)):_0x223a4e[_0x5abd6f(0x1e7)](_0x49467b=>G(_0x23a86a,_0x94975b,_0x49467b));}function G(_0x62a1b8,_0x2e41f7,_0x5bba0b){const _0xad7010=_0xa13645;let _0x4e33e1=_0x62a1b8[_0xad7010(0x27c)][_0x5bba0b[_0xad7010(0x29f)]],_0x27e8e5=_0x2e41f7[_0xad7010(0x31e)][_0x5bba0b[_0xad7010(0x29f)]];if(K(_0x5bba0b)){let _0x193430=q(_0x5bba0b)[_0xad7010(0x1e0)](String(_0x4e33e1??''));return _0x5bba0b[_0xad7010(0x265)]===_0xad7010(0x2f3)?_0x193430:!_0x193430;}return!_0x27e8e5||(0x0,c['matchesBaseCondition'])(_0x4e33e1,_0x5bba0b[_0xad7010(0x265)],_0x5bba0b[_0xad7010(0x25c)],_0x27e8e5);}function K(_0x3594aa){const _0x5b56a0=_0xa13645;return _0x3594aa[_0x5b56a0(0x265)]==='matches'||_0x3594aa[_0x5b56a0(0x265)]==='notMatches';}function q(_0x98e448){const _0x2fb933=_0xa13645;let _0x2c88e1=String(_0x98e448[_0x2fb933(0x25c)]??'');if(_0x2c88e1[_0x2fb933(0x2c8)]>0x200)throw Error(_0x2fb933(0x1ec));try{return new RegExp(_0x2c88e1,_0x98e448[_0x2fb933(0x1f3)]?void 0x0:'i');}catch(_0x1db717){throw Error(_0x2fb933(0x267)+_0x2c88e1+'.\x20'+(_0x1db717 instanceof Error?_0x1db717['message']:String(_0x1db717)));}}function J(_0x54ebc7,_0x4c4b8c,_0x2c6275){const _0x43c235=_0xa13645;if(_0x2c6275[_0x43c235(0x246)]!=='invalid'&&_0x2c6275['type']!==_0x43c235(0x1b4)){var _0x3973ed;if(_0x2c6275[_0x43c235(0x246)]===l[_0x43c235(0x1d3)][_0x43c235(0x250)]){var _0xb565a4;let _0x333a43=[((_0xb565a4=_0x2c6275[_0x43c235(0x31e)])==null||(_0xb565a4=_0xb565a4[0x0])==null?void 0x0:_0xb565a4['id'])??_0x54ebc7[_0x43c235(0x353)],..._0x2c6275[_0x43c235(0x1fb)]??[]];return Array[_0x43c235(0x214)](new Set(_0x333a43[_0x43c235(0x271)](_0x4ead93=>!!_0x54ebc7[_0x43c235(0x31e)][_0x4ead93])));}if((_0x3973ed=_0x2c6275[_0x43c235(0x31e)])!=null&&_0x3973ed[_0x43c235(0x2c8)])return _0x2c6275['fields'][_0x43c235(0x1d5)](_0x3a1019=>_0x3a1019['id'])[_0x43c235(0x271)](_0x5348ac=>{const _0x2d6b43=_0x43c235;var _0xac6420;return!(!_0x54ebc7[_0x2d6b43(0x31e)][_0x5348ac]||_0x4c4b8c!=null&&(_0xac6420=_0x4c4b8c[_0x2d6b43(0x1fe)])!=null&&(_0xac6420=_0xac6420[_0x5348ac])!=null&&_0xac6420['hidden']);});}return _0x54ebc7[_0x43c235(0x334)]['filter'](_0x270327=>{const _0x434fcc=_0x43c235;var _0x2df798;return!(!_0x54ebc7[_0x434fcc(0x31e)][_0x270327]||_0x4c4b8c!=null&&(_0x2df798=_0x4c4b8c['fieldSettings'])!=null&&(_0x2df798=_0x2df798[_0x270327])!=null&&_0x2df798['hidden']);});}let Y=class extends u[_0xa13645(0x2d0)]{constructor(_0x4b97da,_0x104a4e,_0xf26309,_0xab45bb,_0x55ef79){const _0x5ade75=_0xa13645;super(),this[_0x5ade75(0x2ab)]=_0x4b97da,this[_0x5ade75(0x1bc)]=_0x104a4e,this[_0x5ade75(0x2dc)]=_0xf26309,this['_commandService']=_0xab45bb,this[_0x5ade75(0x2a3)]=_0x55ef79;}['getBase'](){const _0x740559=_0xa13645;return this[_0x740559(0x2ab)];}[_0xa13645(0x20d)](){return this['_base']['getUnitId']();}[_0xa13645(0x2b0)](){const _0x704d8f=_0xa13645;return new p(this[_0x704d8f(0x20d)](),this[_0x704d8f(0x1f9)],this['_permissionService']);}[_0xa13645(0x302)](){const _0x3fc22c=_0xa13645;return this['_resourceLoaderService'][_0x3fc22c(0x23c)](this['getId']())??l[_0x3fc22c(0x298)][_0x3fc22c(0x2e0)](this[_0x3fc22c(0x2ab)]['getSnapshot']());}['getName'](){const _0x4688e1=_0xa13645;return this[_0x4688e1(0x2ab)]['getSnapshot']()[_0x4688e1(0x346)];}[_0xa13645(0x297)](_0x35fdc4){const _0x14d982=_0xa13645;this['_commandService'][_0x14d982(0x34a)](c[_0x14d982(0x314)]['id'],{'unitId':this[_0x14d982(0x20d)](),'name':_0x35fdc4});}[_0xa13645(0x210)](){const _0x5c47e7=_0xa13645;let _0x3c6bfa=this[_0x5c47e7(0x2ab)][_0x5c47e7(0x24e)]();return _0x3c6bfa[_0x5c47e7(0x2cb)][_0x5c47e7(0x1d5)](_0x1543c0=>_0x3c6bfa[_0x5c47e7(0x252)][_0x1543c0])['filter'](_0x10970d=>_0x10970d)['map'](_0x38e917=>this['_injector'][_0x5c47e7(0x1cf)](B,this,_0x38e917['id'],this[_0x5c47e7(0x1bc)]));}['getTableById'](_0xe842a4){const _0x23c9c2=_0xa13645;let _0x242b9a=this['_base'][_0x23c9c2(0x24e)]()[_0x23c9c2(0x252)][_0xe842a4];return _0x242b9a?this['_injector'][_0x23c9c2(0x1cf)](B,this,_0x242b9a['id'],this[_0x23c9c2(0x1bc)]):null;}[_0xa13645(0x2f1)](_0x5b49d1){const _0x37fe17=_0xa13645;let _0x43100d=this[_0x37fe17(0x2ab)]['getSnapshot'](),_0x4ce652=Object[_0x37fe17(0x27c)](_0x43100d[_0x37fe17(0x252)])[_0x37fe17(0x2d1)](_0xfbef6=>_0xfbef6[_0x37fe17(0x346)]===_0x5b49d1);return _0x4ce652?this[_0x37fe17(0x1bc)][_0x37fe17(0x1cf)](B,this,_0x4ce652['id'],this[_0x37fe17(0x1bc)]):null;}[_0xa13645(0x2a8)](_0x1478b4,_0x50e240){const _0x2af897=_0xa13645;let _0x607c3e=(0x0,l[_0x2af897(0x205)])({'id':(0x0,l[_0x2af897(0x2bf)])(),'name':_0x1478b4,..._0x50e240==null?void 0x0:_0x50e240[_0x2af897(0x34f)],'primaryFieldName':_0x50e240==null?void 0x0:_0x50e240[_0x2af897(0x2c0)]}),_0x2c5a34=l[_0x2af897(0x298)][_0x2af897(0x1f7)](_0x607c3e,(_0x50e240==null?void 0x0:_0x50e240['table'])??{}),_0x36e154=(0x0,c[_0x2af897(0x274)])(this[_0x2af897(0x2ab)]['getSnapshot'](),_0x2c5a34[_0x2af897(0x346)]);if(!_0x36e154['valid'])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x2c5a34[_0x2af897(0x346)]+_0x2af897(0x322)+c[_0x2af897(0x228)]+'\x20'+_0x36e154[_0x2af897(0x2b8)]);if(!this[_0x2af897(0x1f9)][_0x2af897(0x34a)](c['CreateBaseTableCommand']['id'],{'unitId':this[_0x2af897(0x2ab)][_0x2af897(0x300)](),'table':_0x2c5a34,'index':_0x50e240==null?void 0x0:_0x50e240[_0x2af897(0x285)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x1478b4+'\x22.');return this['_injector'][_0x2af897(0x1cf)](B,this,_0x2c5a34['id'],this[_0x2af897(0x1bc)]);}[_0xa13645(0x296)](_0x247e54){const _0x5ca3fc=_0xa13645;let _0x2af311=typeof _0x247e54==_0x5ca3fc(0x317)?_0x247e54:_0x247e54[_0x5ca3fc(0x20d)]();if(!this['_commandService'][_0x5ca3fc(0x34a)](c[_0x5ca3fc(0x2ef)]['id'],{'unitId':this[_0x5ca3fc(0x2ab)]['getUnitId'](),'tableId':_0x2af311}))throw Error(_0x5ca3fc(0x308)+_0x2af311+'\x22.');return!0x0;}[_0xa13645(0x1b0)](_0x3c0c8a,_0x1c2a5b){const _0x542341=_0xa13645;let _0x176d2c=this['_base'][_0x542341(0x24e)](),_0x5acb19=typeof _0x3c0c8a=='string'?_0x3c0c8a:_0x3c0c8a['getId'](),_0x503ba2=_0x176d2c['tables'][_0x5acb19];if(!_0x503ba2)throw Error(_0x542341(0x338)+_0x5acb19+'\x22\x20does\x20not\x20exist.');let _0x4fc654=_0x176d2c[_0x542341(0x2cb)][_0x542341(0x238)](_0x5acb19)+0x1,_0x58d2fd=(0x0,l[_0x542341(0x2bf)])(),_0x3f7fad=(0x0,c[_0x542341(0x303)])(_0x503ba2,{'id':_0x58d2fd,'name':(0x0,c[_0x542341(0x255)])(_0x176d2c,_0x503ba2['name']+'\x20Copy'),'includeRecords':(_0x1c2a5b==null?void 0x0:_0x1c2a5b[_0x542341(0x2c3)])??!0x1,'regenerateViewIds':(_0x1c2a5b==null?void 0x0:_0x1c2a5b[_0x542341(0x299)])??!0x1});if(!this[_0x542341(0x1f9)]['syncExecuteCommand'](c[_0x542341(0x33e)]['id'],{'unitId':this[_0x542341(0x2ab)]['getUnitId'](),'table':_0x3f7fad,'index':_0x4fc654}))throw Error(_0x542341(0x277)+_0x5acb19+'\x22.');return this[_0x542341(0x1bc)][_0x542341(0x1cf)](B,this,_0x3f7fad['id'],this['_injector']);}[_0xa13645(0x25b)](){const _0x1fbd2a=_0xa13645;let _0x16f701=this[_0x1fbd2a(0x2ab)]['getSnapshot']();return{'id':_0x16f701['id'],'name':_0x16f701[_0x1fbd2a(0x346)],'tables':this[_0x1fbd2a(0x210)]()[_0x1fbd2a(0x1d5)](_0x41dd0e=>_0x41dd0e[_0x1fbd2a(0x25b)]())};}};Y=g([h(0x1,(0x0,l[_0xa13645(0x316)])(l[_0xa13645(0x218)])),h(0x2,l[_0xa13645(0x1d2)]),h(0x3,l[_0xa13645(0x1d4)]),h(0x4,l['IPermissionService'])],Y);var X=class extends u[_0xa13645(0x2b9)]{[_0xa13645(0x224)](){const _0x51d5cb=_0xa13645;this[_0x51d5cb(0x2f8)](),this[_0x51d5cb(0x315)]();}['createBase'](_0x5c7e2e={},_0x458c16){const _0x2ccaa0=_0xa13645;let _0x230795=this[_0x2ccaa0(0x25f)][_0x2ccaa0(0x318)](l[_0x2ccaa0(0x29d)][_0x2ccaa0(0x351)],_0x5c7e2e,_0x458c16);return this[_0x2ccaa0(0x1bc)][_0x2ccaa0(0x1cf)](Y,_0x230795);}['getActiveBase'](){const _0x469192=_0xa13645;let _0xff5892=this['_univerInstanceService'][_0x469192(0x27a)](l['UniverInstanceType']['UNIVER_BASE']);return _0xff5892?this[_0x469192(0x1bc)][_0x469192(0x1cf)](Y,_0xff5892):null;}[_0xa13645(0x26f)](_0x4dacc1){const _0x34c2a5=_0xa13645;let _0x4fb3f3=this[_0x34c2a5(0x25f)][_0x34c2a5(0x21d)](_0x4dacc1,l[_0x34c2a5(0x29d)][_0x34c2a5(0x351)]);return _0x4fb3f3?this[_0x34c2a5(0x1bc)][_0x34c2a5(0x1cf)](Y,_0x4fb3f3):null;}['getBases'](){const _0x21e79e=_0xa13645;return this['_univerInstanceService'][_0x21e79e(0x25a)](l[_0x21e79e(0x29d)][_0x21e79e(0x351)])[_0x21e79e(0x1d5)](_0x25de8b=>this[_0x21e79e(0x1bc)][_0x21e79e(0x1cf)](Y,_0x25de8b));}[_0xa13645(0x315)](){const _0x3299fc=_0xa13645;this[_0x3299fc(0x1ed)](this[_0x3299fc(0x203)](this[_0x3299fc(0x284)][_0x3299fc(0x254)],()=>this[_0x3299fc(0x1f9)][_0x3299fc(0x32e)]((_0x12227c,_0x24eb51)=>{const _0x44d719=_0x3299fc;var _0x5eba46;if(!Z(_0x12227c,c['ApplyBaseJson1Mutation']))return;let _0x299466=_0x12227c[_0x44d719(0x2fa)];if(!((_0x5eba46=_0x299466[_0x44d719(0x2a0)])!=null&&_0x5eba46['length']))return;let _0x5ab7b7=this[_0x44d719(0x26f)](_0x299466[_0x44d719(0x21a)]),_0x4cc0c0=_0x5ab7b7==null?void 0x0:_0x5ab7b7[_0x44d719(0x344)](_0x299466[_0x44d719(0x2a0)][0x0][_0x44d719(0x31a)]);if(!_0x5ab7b7||!_0x4cc0c0)return;let _0x328ff4={'base':_0x5ab7b7,'table':_0x4cc0c0,'changes':_0x299466['hierarchyChanges'],'source':_0x24eb51!=null&&_0x24eb51['fromCollab']?c[_0x44d719(0x35c)][_0x44d719(0x259)]:_0x299466['source']??c['BaseEventSource']['UI']};this['fireEvent'](this[_0x44d719(0x284)][_0x44d719(0x254)],_0x328ff4);}))),this[_0x3299fc(0x1ed)](this[_0x3299fc(0x203)](this['Event'][_0x3299fc(0x1df)],()=>this[_0x3299fc(0x1f9)][_0x3299fc(0x32e)](_0x4c85de=>{const _0x1b5e50=_0x3299fc;if(_0x4c85de['id']!==c[_0x1b5e50(0x33e)]['id'])return;let {unitId:_0x32e1bf,table:_0x41440e,index:_0x249bf5}=_0x4c85de[_0x1b5e50(0x2fa)],_0x1915aa=this[_0x1b5e50(0x26f)](_0x32e1bf);if(!_0x1915aa)return;let _0x1afafc={'base':_0x1915aa,'table':_0x41440e,'index':_0x249bf5};this['fireEvent'](this['Event'][_0x1b5e50(0x1df)],_0x1afafc);}))),this[_0x3299fc(0x1ed)](this['registerEventHandler'](this[_0x3299fc(0x284)][_0x3299fc(0x360)],()=>this[_0x3299fc(0x1f9)][_0x3299fc(0x32e)](_0x12f0f7=>{const _0x5e8645=_0x3299fc;if(_0x12f0f7['id']!==c[_0x5e8645(0x260)]['id'])return;let {unitId:_0x121d46,tableId:_0x100645,field:_0x273912,index:_0x22f8bf,viewIndexes:_0x1ec2f2}=_0x12f0f7['params'],_0x282f7b=this[_0x5e8645(0x26f)](_0x121d46);if(!_0x282f7b)return;let _0x5cc302=_0x282f7b[_0x5e8645(0x344)](_0x100645);if(!_0x5cc302)return;let _0x5415bd={'base':_0x282f7b,'table':_0x5cc302,'field':_0x273912,'index':_0x22f8bf,'viewIndexes':_0x1ec2f2};this[_0x5e8645(0x26e)](this[_0x5e8645(0x284)][_0x5e8645(0x360)],_0x5415bd);}))),this[_0x3299fc(0x1ed)](this['registerEventHandler'](this['Event']['BaseTableRecordCreated'],()=>this['_commandService'][_0x3299fc(0x32e)](_0x259788=>{const _0x3e8fae=_0x3299fc;if(_0x259788['id']!==c[_0x3e8fae(0x363)]['id']&&_0x259788['id']!==c[_0x3e8fae(0x204)]['id'])return;let _0x11c62a=_0x259788[_0x3e8fae(0x2fa)],{unitId:_0x4efc2a,tableId:_0x525d8f}=_0x11c62a,_0x4add1e=_0x11c62a['records']??[_0x11c62a[_0x3e8fae(0x2aa)]],_0x5c9d1f=this[_0x3e8fae(0x26f)](_0x4efc2a);if(!_0x5c9d1f)return;let _0x3fd43c=_0x5c9d1f[_0x3e8fae(0x344)](_0x525d8f);if(!_0x3fd43c)return;let _0x102052={'base':_0x5c9d1f,'table':_0x3fd43c,'records':_0x4add1e};this[_0x3e8fae(0x26e)](this[_0x3e8fae(0x284)][_0x3e8fae(0x2d2)],_0x102052);}))),this['disposeWithMe'](this[_0x3299fc(0x203)](this['Event']['BaseTableViewCreated'],()=>this[_0x3299fc(0x1f9)][_0x3299fc(0x32e)](_0x47577d=>{const _0x957e26=_0x3299fc;if(_0x47577d['id']!==c[_0x957e26(0x320)]['id'])return;let {unitId:_0x351319,tableId:_0x174f47,view:_0x2c1340,index:_0x4db778}=_0x47577d['params'],_0x4865c8=this[_0x957e26(0x26f)](_0x351319);if(!_0x4865c8)return;let _0x61c60f=_0x4865c8[_0x957e26(0x344)](_0x174f47);if(!_0x61c60f)return;let _0x1a24e6={'base':_0x4865c8,'table':_0x61c60f,'view':_0x2c1340,'index':_0x4db778};this[_0x957e26(0x26e)](this['Event']['BaseTableViewCreated'],_0x1a24e6);}))),this[_0x3299fc(0x1ed)](this[_0x3299fc(0x203)](this[_0x3299fc(0x284)][_0x3299fc(0x206)],()=>this[_0x3299fc(0x1f9)]['onCommandExecuted'](_0x3ca797=>{const _0x39d88f=_0x3299fc;if(_0x3ca797['id']!==c[_0x39d88f(0x266)]['id'])return;let {unitId:_0x36914b,tableId:_0x46c10d,recordId:_0x51008c,fieldId:_0x5c2fb5,value:_0x456d66}=_0x3ca797[_0x39d88f(0x2fa)],_0x473024=this[_0x39d88f(0x26f)](_0x36914b);if(!_0x473024)return;let _0x48c824=_0x473024['getTableById'](_0x46c10d);if(!_0x48c824)return;let _0x3c3363=_0x48c824[_0x39d88f(0x1ac)](_0x5c2fb5);if(!_0x3c3363)return;let _0x5f3f39=_0x48c824[_0x39d88f(0x1b6)](_0x51008c);if(!_0x5f3f39)return;let _0x2d75a7={'base':_0x473024,'table':_0x48c824,'field':_0x3c3363,'record':_0x5f3f39,'value':_0x456d66};this['fireEvent'](this['Event'][_0x39d88f(0x206)],_0x2d75a7);})));}['_initBaseBeforeEvents'](){const _0x2cbf3f=_0xa13645;this['disposeWithMe'](this[_0x2cbf3f(0x203)](this[_0x2cbf3f(0x284)][_0x2cbf3f(0x232)],()=>this[_0x2cbf3f(0x1f9)][_0x2cbf3f(0x358)](_0xf40dc1=>{const _0x3a1457=_0x2cbf3f;if(Z(_0xf40dc1,c['SetBaseRecordValuesCommand'])){let {unitId:_0x12e616,tableId:_0x17b44e,patches:_0x39e034,source:_0x329349=c['BaseEventSource']['UI']}=_0xf40dc1[_0x3a1457(0x2fa)],_0x43c338=this['_getHierarchyEventContext'](_0x12e616,_0x17b44e);if(!_0x43c338)return;this[_0x3a1457(0x24a)](_0x43c338[_0x3a1457(0x223)],_0x43c338[_0x3a1457(0x34f)],(0x0,c[_0x3a1457(0x1c5)])(_0x43c338[_0x3a1457(0x34f)][_0x3a1457(0x30b)](),_0x39e034),_0x329349);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x21e)])){let {unitId:_0x4dfedf,tableId:_0x3a692d,patches:_0x1a9ab8,source:_0xaf3ca4=c['BaseEventSource']['UI']}=_0xf40dc1['params'],_0x46499b=this['_getHierarchyEventContext'](_0x4dfedf,_0x3a692d);if(!_0x46499b)return;let _0x93f29=_0x46499b[_0x3a1457(0x34f)][_0x3a1457(0x30b)]();this[_0x3a1457(0x24a)](_0x46499b[_0x3a1457(0x223)],_0x46499b['table'],(0x0,c[_0x3a1457(0x1c5)])(_0x93f29,(0x0,c[_0x3a1457(0x213)])(_0x93f29,_0x1a9ab8)),_0xaf3ca4);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x363)])){let _0x4fadaf=_0xf40dc1[_0x3a1457(0x2fa)],_0x35c1ea=this['_getHierarchyEventContext'](_0x4fadaf['unitId'],_0x4fadaf[_0x3a1457(0x31a)]);if(!_0x35c1ea)return;this[_0x3a1457(0x24a)](_0x35c1ea[_0x3a1457(0x223)],_0x35c1ea['table'],(0x0,c[_0x3a1457(0x305)])(_0x35c1ea[_0x3a1457(0x34f)]['getTable'](),[_0x4fadaf[_0x3a1457(0x2aa)]]),_0x4fadaf[_0x3a1457(0x281)]??c[_0x3a1457(0x35c)]['UI']);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x204)])){let _0xaf04d1=_0xf40dc1[_0x3a1457(0x2fa)],_0x59f366=this['_getHierarchyEventContext'](_0xaf04d1['unitId'],_0xaf04d1[_0x3a1457(0x31a)]);if(!_0x59f366)return;this['_fireBeforeHierarchyChange'](_0x59f366[_0x3a1457(0x223)],_0x59f366[_0x3a1457(0x34f)],(0x0,c[_0x3a1457(0x305)])(_0x59f366[_0x3a1457(0x34f)]['getTable'](),_0xaf04d1[_0x3a1457(0x25e)]),_0xaf04d1[_0x3a1457(0x281)]??c[_0x3a1457(0x35c)]['UI']);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x253)])){let _0xde99e1=_0xf40dc1['params'],_0x246dd3=this[_0x3a1457(0x217)](_0xde99e1['unitId'],_0xde99e1['tableId']);if(!_0x246dd3)return;this[_0x3a1457(0x24a)](_0x246dd3[_0x3a1457(0x223)],_0x246dd3[_0x3a1457(0x34f)],(0x0,c[_0x3a1457(0x305)])(_0x246dd3[_0x3a1457(0x34f)][_0x3a1457(0x30b)](),[_0xde99e1[_0x3a1457(0x2aa)]]),_0xde99e1[_0x3a1457(0x281)]??c['BaseEventSource']['UI']);return;}if(Z(_0xf40dc1,c['MoveBaseHierarchyRecordCommand'])){let _0x6979e1=_0xf40dc1['params'],_0x2ea91b=this['_getHierarchyEventContext'](_0x6979e1[_0x3a1457(0x21a)],_0x6979e1['tableId']);if(!_0x2ea91b)return;let _0x5cfcd2=_0x2ea91b[_0x3a1457(0x34f)][_0x3a1457(0x30b)](),_0x5093c0=_0x6979e1[_0x3a1457(0x29f)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x5cfcd2),_0x316bf1=(0x0,c['buildBaseHierarchyIndex'])(_0x5cfcd2,_0x5093c0)['parentByRecordId'][_0x3a1457(0x221)](_0x6979e1[_0x3a1457(0x201)])??null;this[_0x3a1457(0x24a)](_0x2ea91b[_0x3a1457(0x223)],_0x2ea91b['table'],[{'tableId':_0x6979e1[_0x3a1457(0x31a)],'fieldId':_0x5093c0,'recordId':_0x6979e1[_0x3a1457(0x201)],'oldParentRecordId':_0x316bf1,'parentRecordId':_0x6979e1[_0x3a1457(0x293)]}],_0x6979e1[_0x3a1457(0x281)]??c['BaseEventSource']['UI']);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x2d3)])){let _0x175333=_0xf40dc1[_0x3a1457(0x2fa)],_0x1451e3=this[_0x3a1457(0x217)](_0x175333[_0x3a1457(0x21a)],_0x175333[_0x3a1457(0x31a)]);if(!_0x1451e3)return;let _0xd029eb=_0x175333[_0x3a1457(0x29f)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x1451e3[_0x3a1457(0x34f)][_0x3a1457(0x30b)]());this[_0x3a1457(0x24a)](_0x1451e3['base'],_0x1451e3[_0x3a1457(0x34f)],[{'tableId':_0x175333[_0x3a1457(0x31a)],'fieldId':_0xd029eb,'recordId':_0x175333[_0x3a1457(0x2aa)]['id'],'oldParentRecordId':null,'parentRecordId':_0x175333[_0x3a1457(0x293)]}],_0x175333[_0x3a1457(0x281)]??c['BaseEventSource']['UI']);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x1dd)])){let _0x419d3c=_0xf40dc1['params'],_0x572002=this[_0x3a1457(0x217)](_0x419d3c['unitId'],_0x419d3c['tableId']);if(!_0x572002)return;this['_fireBeforeHierarchyChange'](_0x572002['base'],_0x572002[_0x3a1457(0x34f)],(0x0,c[_0x3a1457(0x2c4)])(_0x572002['table'][_0x3a1457(0x30b)](),[_0x419d3c[_0x3a1457(0x201)]]),_0x419d3c[_0x3a1457(0x281)]??c['BaseEventSource']['UI']);return;}if(Z(_0xf40dc1,c[_0x3a1457(0x1da)])){let _0x365a4a=_0xf40dc1[_0x3a1457(0x2fa)],_0x83f7e4=this[_0x3a1457(0x217)](_0x365a4a[_0x3a1457(0x21a)],_0x365a4a[_0x3a1457(0x31a)]);if(!_0x83f7e4)return;this[_0x3a1457(0x24a)](_0x83f7e4[_0x3a1457(0x223)],_0x83f7e4[_0x3a1457(0x34f)],(0x0,c['getBaseHierarchyDeletePromotions'])(_0x83f7e4[_0x3a1457(0x34f)]['getTable'](),_0x365a4a[_0x3a1457(0x22a)]),_0x365a4a[_0x3a1457(0x281)]??c[_0x3a1457(0x35c)]['UI']);return;}if(!Z(_0xf40dc1,c[_0x3a1457(0x266)]))return;let _0x439ad1=_0xf40dc1[_0x3a1457(0x2fa)],_0x1a0023=this['_getHierarchyEventContext'](_0x439ad1[_0x3a1457(0x21a)],_0x439ad1[_0x3a1457(0x31a)]);if(!_0x1a0023)return;let _0x544395=_0x1a0023['table'][_0x3a1457(0x30b)]();if(!(0x0,c[_0x3a1457(0x1bf)])(_0x544395)[_0x3a1457(0x270)](_0x439ad1[_0x3a1457(0x29f)]))return;let _0x1b2087=(0x0,c['buildBaseHierarchyIndex'])(_0x544395,_0x439ad1[_0x3a1457(0x29f)])[_0x3a1457(0x1d9)][_0x3a1457(0x221)](_0x439ad1['recordId'])??null,_0x3102fe=(0x0,c[_0x3a1457(0x2ba)])(_0x439ad1[_0x3a1457(0x25c)])[0x0]??null;_0x1b2087!==_0x3102fe&&this[_0x3a1457(0x24a)](_0x1a0023[_0x3a1457(0x223)],_0x1a0023['table'],[{'tableId':_0x439ad1[_0x3a1457(0x31a)],'fieldId':_0x439ad1[_0x3a1457(0x29f)],'recordId':_0x439ad1[_0x3a1457(0x201)],'oldParentRecordId':_0x1b2087,'parentRecordId':_0x3102fe}],_0x439ad1[_0x3a1457(0x281)]??c[_0x3a1457(0x35c)]['UI']);}))),this[_0x2cbf3f(0x1ed)](this[_0x2cbf3f(0x203)](this['Event'][_0x2cbf3f(0x225)],()=>this[_0x2cbf3f(0x1f9)]['beforeCommandExecuted'](_0x1d7e95=>{const _0x1d535b=_0x2cbf3f;if(_0x1d7e95['id']!==c[_0x1d535b(0x33e)]['id'])return;let {unitId:_0x4ae22d,table:_0x36a4aa,index:_0x285624}=_0x1d7e95[_0x1d535b(0x2fa)],_0x104e50=this[_0x1d535b(0x26f)](_0x4ae22d);if(!_0x104e50)return;let _0x1ca7c7={'base':_0x104e50,'table':_0x36a4aa,'index':_0x285624};if(this['fireEvent'](this[_0x1d535b(0x284)][_0x1d535b(0x225)],_0x1ca7c7),_0x1ca7c7[_0x1d535b(0x349)])throw new l['CanceledError']();}))),this['disposeWithMe'](this[_0x2cbf3f(0x203)](this[_0x2cbf3f(0x284)]['BeforeBaseTableFieldCreate'],()=>this[_0x2cbf3f(0x1f9)][_0x2cbf3f(0x358)](_0x370174=>{const _0x41ac9d=_0x2cbf3f;if(_0x370174['id']!==c[_0x41ac9d(0x260)]['id'])return;let {unitId:_0x31e959,tableId:_0x56691e,field:_0xc2f33b,index:_0x166ea5,viewIndexes:_0x2bc4b1}=_0x370174[_0x41ac9d(0x2fa)],_0xb9ab61=this['getBase'](_0x31e959);if(!_0xb9ab61)return;let _0x56ec36=_0xb9ab61[_0x41ac9d(0x344)](_0x56691e);if(!_0x56ec36)return;let _0x4006c2={'base':_0xb9ab61,'table':_0x56ec36,'field':_0xc2f33b,'index':_0x166ea5,'viewIndexes':_0x2bc4b1};if(this[_0x41ac9d(0x26e)](this[_0x41ac9d(0x284)]['BeforeBaseTableFieldCreate'],_0x4006c2),_0x4006c2[_0x41ac9d(0x349)])throw new l[(_0x41ac9d(0x215))]();}))),this['disposeWithMe'](this[_0x2cbf3f(0x203)](this[_0x2cbf3f(0x284)]['BeforeBaseTableRecordCreate'],()=>this[_0x2cbf3f(0x1f9)][_0x2cbf3f(0x358)](_0x198017=>{const _0x2bcf74=_0x2cbf3f;if(_0x198017['id']!==c[_0x2bcf74(0x363)]['id']&&_0x198017['id']!==c[_0x2bcf74(0x204)]['id'])return;let _0x2323ea=_0x198017[_0x2bcf74(0x2fa)],{unitId:_0x3083b0,tableId:_0x44a5e4}=_0x2323ea,_0x2f2468=_0x2323ea[_0x2bcf74(0x25e)]??[_0x2323ea['record']],_0x4d987c=this[_0x2bcf74(0x26f)](_0x3083b0);if(!_0x4d987c)return;let _0x8dc8d5=_0x4d987c[_0x2bcf74(0x344)](_0x44a5e4);if(!_0x8dc8d5)return;let _0x3b2d39={'base':_0x4d987c,'table':_0x8dc8d5,'records':_0x2f2468};if(this['fireEvent'](this[_0x2bcf74(0x284)]['BeforeBaseTableRecordCreate'],_0x3b2d39),_0x3b2d39['cancel'])throw new l['CanceledError']();}))),this[_0x2cbf3f(0x1ed)](this[_0x2cbf3f(0x203)](this[_0x2cbf3f(0x284)][_0x2cbf3f(0x2fb)],()=>this['_commandService'][_0x2cbf3f(0x358)](_0x1c1f52=>{const _0x452ebf=_0x2cbf3f;if(_0x1c1f52['id']!==c[_0x452ebf(0x320)]['id'])return;let {unitId:_0x1c1352,tableId:_0x56c4dc,view:_0x1002a1,index:_0x2812ca}=_0x1c1f52[_0x452ebf(0x2fa)],_0x94e75d=this[_0x452ebf(0x26f)](_0x1c1352);if(!_0x94e75d)return;let _0x2f701b=_0x94e75d[_0x452ebf(0x344)](_0x56c4dc);if(!_0x2f701b)return;let _0x70bae7={'base':_0x94e75d,'table':_0x2f701b,'view':_0x1002a1,'index':_0x2812ca};if(this[_0x452ebf(0x26e)](this[_0x452ebf(0x284)][_0x452ebf(0x2fb)],_0x70bae7),_0x70bae7[_0x452ebf(0x349)])throw new l[(_0x452ebf(0x215))]();}))),this[_0x2cbf3f(0x1ed)](this[_0x2cbf3f(0x203)](this[_0x2cbf3f(0x284)]['BeforeBaseTableCellValueChange'],()=>this[_0x2cbf3f(0x1f9)][_0x2cbf3f(0x358)](_0x239c5e=>{const _0x17cd89=_0x2cbf3f;if(_0x239c5e['id']!==c[_0x17cd89(0x266)]['id'])return;let {unitId:_0x309952,tableId:_0x1be1d1,recordId:_0x13f4d3,fieldId:_0x28378b,value:_0x4ea015}=_0x239c5e[_0x17cd89(0x2fa)],_0x455291=this[_0x17cd89(0x26f)](_0x309952);if(!_0x455291)return;let _0x41dd2f=_0x455291['getTableById'](_0x1be1d1);if(!_0x41dd2f)return;let _0x403898=_0x41dd2f['getFieldById'](_0x28378b);if(!_0x403898)return;let _0x2159bc=_0x41dd2f['getRecordById'](_0x13f4d3);if(!_0x2159bc)return;let _0x175550={'base':_0x455291,'table':_0x41dd2f,'field':_0x403898,'record':_0x2159bc,'value':_0x4ea015};if(this[_0x17cd89(0x26e)](this[_0x17cd89(0x284)][_0x17cd89(0x22f)],_0x175550),_0x175550[_0x17cd89(0x349)])throw new l['CanceledError']();})));}[_0xa13645(0x217)](_0x227628,_0x318962){const _0x6765bf=_0xa13645;let _0x4540b0=this[_0x6765bf(0x26f)](_0x227628),_0x27f17=_0x4540b0==null?void 0x0:_0x4540b0[_0x6765bf(0x344)](_0x318962);return _0x4540b0&&_0x27f17?{'base':_0x4540b0,'table':_0x27f17}:null;}['_fireBeforeHierarchyChange'](_0x411cb3,_0x45e2da,_0xee1b56,_0x3c9397){const _0x278216=_0xa13645;if(!_0xee1b56[_0x278216(0x2c8)])return;let _0xdb9c46={'base':_0x411cb3,'table':_0x45e2da,'changes':_0xee1b56,'source':_0x3c9397};if(this[_0x278216(0x26e)](this['Event']['BeforeBaseHierarchyChange'],_0xdb9c46),_0xdb9c46[_0x278216(0x349)])throw new l['CanceledError']();}};function Z(_0x29a55f,_0x5b9755){const _0x4a4cf7=_0xa13645;return _0x29a55f['id']===_0x5b9755['id']&&_0x29a55f[_0x4a4cf7(0x2fa)]!==void 0x0;}u[_0xa13645(0x2b9)]['extend'](X);var Q=class extends u[_0xa13645(0x2cf)]{get['BaseFieldType'](){return l['BaseFieldType'];}get[_0xa13645(0x34d)](){return l['BaseFilterConjunction'];}get['BaseFilterOperator'](){const _0x5c751a=_0xa13645;return l[_0x5c751a(0x2c7)];}get[_0xa13645(0x1bd)](){return v;}get['BaseViewType'](){return l['BaseViewType'];}get[_0xa13645(0x354)](){const _0x5b881e=_0xa13645;return l[_0x5b881e(0x354)];}get['BaseConditionalColorOperator'](){const _0x26173e=_0xa13645;return l[_0x26173e(0x28a)];}get['BaseConditionalDateMode'](){const _0x2e309a=_0xa13645;return l[_0x2e309a(0x21b)];}get[_0xa13645(0x276)](){const _0x46c860=_0xa13645;return l[_0x46c860(0x276)];}get[_0xa13645(0x35c)](){const _0x51ec48=_0xa13645;return c[_0x51ec48(0x35c)];}get[_0xa13645(0x28f)](){return c['BaseHierarchyErrorCode'];}get[_0xa13645(0x306)](){const _0x46bb76=_0xa13645;return l[_0x46bb76(0x306)];}get['BaseRecordLinkRole'](){const _0x5266d3=_0xa13645;return l[_0x5266d3(0x1de)];}};u[_0xa13645(0x2cf)][_0xa13645(0x235)](Q);var $=class extends u[_0xa13645(0x325)]{get[_0xa13645(0x1df)](){const _0x14c79e=_0xa13645;return _0x14c79e(0x1df);}get[_0xa13645(0x225)](){return'BeforeBaseTableCreate';}get[_0xa13645(0x360)](){const _0x1504f4=_0xa13645;return _0x1504f4(0x360);}get['BeforeBaseTableFieldCreate'](){const _0x15c4a0=_0xa13645;return _0x15c4a0(0x32d);}get[_0xa13645(0x2d2)](){const _0x1496e1=_0xa13645;return _0x1496e1(0x2d2);}get['BeforeBaseTableRecordCreate'](){const _0x6cd39d=_0xa13645;return _0x6cd39d(0x33c);}get[_0xa13645(0x2e2)](){const _0x2fc1e8=_0xa13645;return _0x2fc1e8(0x2e2);}get[_0xa13645(0x2fb)](){const _0x1e335b=_0xa13645;return _0x1e335b(0x2fb);}get[_0xa13645(0x206)](){const _0x4db3e4=_0xa13645;return _0x4db3e4(0x206);}get[_0xa13645(0x22f)](){const _0x33be53=_0xa13645;return _0x33be53(0x22f);}get[_0xa13645(0x254)](){const _0x141fd1=_0xa13645;return _0x141fd1(0x254);}get['BeforeBaseHierarchyChange'](){const _0x27c322=_0xa13645;return _0x27c322(0x232);}};u['FEventName']['extend']($),exports[_0xa13645(0x1bd)]=v,Object[_0xa13645(0x31d)](exports,_0xa13645(0x2d0),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0xa13645(0x27e)]=m,exports[_0xa13645(0x2f2)]=p,Object['defineProperty'](exports,_0xa13645(0x2e4),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0xa13645(0x31d)](exports,_0xa13645(0x2c6),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0xa13645(0x31d)](exports,_0xa13645(0x237),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0xa13645(0x31d)](exports,_0xa13645(0x332),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0xa13645(0x31d)](exports,_0xa13645(0x263),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0xa13645(0x355)]=$,exports[_0xa13645(0x35e)]=S,exports['resolveBaseFieldValues']=b;
|