@univerjs-pro/bases 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -9
- package/lib/cjs/config-BHbUCCo4.js +1 -0
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/cjs/worker.js +1 -1
- package/lib/config-C9tN8Oda.js +1 -0
- package/lib/es/config-C9tN8Oda.js +1 -0
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/es/worker.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/facade/f-range.d.ts +16 -2
- package/lib/types/facade/f-record.d.ts +14 -0
- package/lib/types/facade/f-table.d.ts +3 -0
- package/lib/types/index.d.ts +0 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/lib/worker.js +1 -1
- package/package.json +10 -10
- package/lib/cjs/worker-BDigGzY4.js +0 -1
- package/lib/es/worker-1CbynS32.js +0 -1
- package/lib/worker-1CbynS32.js +0 -1
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x34ded2=_0x3bb1;(function(_0x336ef3,_0x427373){const _0x48acff=_0x3bb1,_0x2bd5b6=_0x336ef3();while(!![]){try{const _0x54cd48=-parseInt(_0x48acff(0x169))/0x1+parseInt(_0x48acff(0x145))/0x2*(parseInt(_0x48acff(0x229))/0x3)+-parseInt(_0x48acff(0x136))/0x4*(-parseInt(_0x48acff(0x1a5))/0x5)+-parseInt(_0x48acff(0x1c9))/0x6*(-parseInt(_0x48acff(0x16a))/0x7)+-parseInt(_0x48acff(0x13f))/0x8*(-parseInt(_0x48acff(0x17b))/0x9)+-parseInt(_0x48acff(0x1a2))/0xa+-parseInt(_0x48acff(0x2b5))/0xb*(parseInt(_0x48acff(0x212))/0xc);if(_0x54cd48===_0x427373)break;else _0x2bd5b6['push'](_0x2bd5b6['shift']());}catch(_0x1d4e27){_0x2bd5b6['push'](_0x2bd5b6['shift']());}}}(_0x638a,0x3b14f),Object[_0x34ded2(0x1a0)](exports,Symbol[_0x34ded2(0x171)],{'value':_0x34ded2(0x1be)}));var e=Object[_0x34ded2(0x2af)],t=Object[_0x34ded2(0x1a0)],n=Object['getOwnPropertyDescriptor'],r=Object[_0x34ded2(0x21d)],i=Object[_0x34ded2(0x257)],a=Object[_0x34ded2(0x2c5)][_0x34ded2(0x249)],o=(_0xc398bf,_0x3d624d,_0x195194,_0xfbe90c)=>{const _0x4adc07=_0x34ded2;if(_0x3d624d&&typeof _0x3d624d==_0x4adc07(0x1fa)||typeof _0x3d624d=='function'){for(var _0x2c47fa=r(_0x3d624d),_0x251984=0x0,_0x5f525e=_0x2c47fa[_0x4adc07(0x1b5)],_0x2ac3e3;_0x251984<_0x5f525e;_0x251984++)_0x2ac3e3=_0x2c47fa[_0x251984],!a[_0x4adc07(0x2cc)](_0xc398bf,_0x2ac3e3)&&_0x2ac3e3!==_0x195194&&t(_0xc398bf,_0x2ac3e3,{'get':(_0x3b677d=>_0x3d624d[_0x3b677d])[_0x4adc07(0x211)](null,_0x2ac3e3),'enumerable':!(_0xfbe90c=n(_0x3d624d,_0x2ac3e3))||_0xfbe90c[_0x4adc07(0x13b)]});}return _0xc398bf;},s=(_0x32c7dc,_0x3ca9f5,_0x499994)=>(_0x499994=_0x32c7dc==null?{}:e(i(_0x32c7dc)),o(_0x3ca9f5||!_0x32c7dc||!_0x32c7dc[_0x34ded2(0x140)]||!a['call'](_0x32c7dc,'default')?t(_0x499994,_0x34ded2(0x1ac),{'value':_0x32c7dc,'enumerable':!0x0}):_0x499994,_0x32c7dc));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(_0xc34562,_0x2cfc95,_0x3eac9b){const _0x4266cc=_0x34ded2;this[_0x4266cc(0x265)]=_0xc34562,this[_0x4266cc(0x270)]=_0x2cfc95,this[_0x4266cc(0x2b7)]=_0x3eac9b;}async[_0x34ded2(0x1e0)](_0x48eedd){const _0x5cf43=_0x34ded2;return this[_0x5cf43(0x270)][_0x5cf43(0x274)](c[_0x5cf43(0x26d)]['id'],{'unitId':this[_0x5cf43(0x265)],'changes':_0x48eedd});}async['setPoint'](_0x201c65,_0x5137d0){const _0x4d821b=_0x34ded2;await this[_0x4d821b(0x270)][_0x4d821b(0x274)](c[_0x4d821b(0x18c)]['id'],{'unitId':this[_0x4d821b(0x265)],'objectId':this[_0x4d821b(0x265)],'action':_0x201c65,'value':_0x5137d0});}[_0x34ded2(0x135)](_0x3aed18){const _0x39bf65=_0x34ded2;return(0x0,c[_0x39bf65(0x1f5)])(this[_0x39bf65(0x2b7)],this[_0x39bf65(0x265)],this['_unitId'],_0x3aed18);}async[_0x34ded2(0x18b)](_0x1ed099=!0x0){const _0x2c74b5=_0x34ded2;await this[_0x2c74b5(0x270)][_0x2c74b5(0x274)](c[_0x2c74b5(0x18c)]['id'],{'unitId':this[_0x2c74b5(0x265)],'objectId':this[_0x2c74b5(0x265)],'action':d[_0x2c74b5(0x1b4)][_0x2c74b5(0x236)],'value':_0x1ed099});}async[_0x34ded2(0x1f3)](){const _0x57efaa=_0x34ded2;await this[_0x57efaa(0x270)][_0x57efaa(0x274)](c[_0x57efaa(0x18c)]['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':d[_0x57efaa(0x1b4)][_0x57efaa(0x236)],'value':!0x1});}[_0x34ded2(0x16c)](){const _0xc4c653=_0x34ded2;return(0x0,c[_0xc4c653(0x1f5)])(this[_0xc4c653(0x2b7)],this[_0xc4c653(0x265)],this[_0xc4c653(0x265)],d[_0xc4c653(0x1b4)][_0xc4c653(0x236)]);}},m=class{constructor(_0x45c737,_0x2e726a,_0x3b5a92,_0x34c6ab,_0x233392){const _0x2e32da=_0x34ded2;this[_0x2e32da(0x265)]=_0x45c737,this['_objectId']=_0x2e726a,this[_0x2e32da(0x2a2)]=_0x3b5a92,this[_0x2e32da(0x270)]=_0x34c6ab,this[_0x2e32da(0x2b7)]=_0x233392;}async['setEditable'](_0x5ce0e6=!0x0){const _0x36055f=_0x34ded2;await this[_0x36055f(0x270)][_0x36055f(0x274)](c[_0x36055f(0x18c)]['id'],{'unitId':this[_0x36055f(0x265)],'objectId':this[_0x36055f(0x239)],'action':d[_0x36055f(0x1b4)][_0x36055f(0x236)],'value':_0x5ce0e6});}async[_0x34ded2(0x1f3)](){const _0x5ccea1=_0x34ded2;await this[_0x5ccea1(0x270)][_0x5ccea1(0x274)](c[_0x5ccea1(0x18c)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x5ccea1(0x239)],'action':d[_0x5ccea1(0x1b4)][_0x5ccea1(0x236)],'value':!0x1});}[_0x34ded2(0x16c)](){const _0x9a8448=_0x34ded2;return(0x0,c[_0x9a8448(0x247)])(this[_0x9a8448(0x2b7)],this[_0x9a8448(0x265)],[...this['_parentObjectIds'],this[_0x9a8448(0x239)]]);}};function h(_0x149f95,_0x64cca0){return function(_0x10708e,_0x5f0af2){_0x64cca0(_0x10708e,_0x5f0af2,_0x149f95);};}function g(_0x458a2d,_0x5590bd,_0x50e2a4,_0x51434a){const _0x1fccf1=_0x34ded2;var _0x3f469e=arguments['length'],_0x4b42c2=_0x3f469e<0x3?_0x5590bd:_0x51434a===null?_0x51434a=Object['getOwnPropertyDescriptor'](_0x5590bd,_0x50e2a4):_0x51434a,_0x5732e5;if(typeof Reflect==_0x1fccf1(0x1fa)&&typeof Reflect[_0x1fccf1(0x163)]=='function')_0x4b42c2=Reflect[_0x1fccf1(0x163)](_0x458a2d,_0x5590bd,_0x50e2a4,_0x51434a);else{for(var _0x14d141=_0x458a2d['length']-0x1;_0x14d141>=0x0;_0x14d141--)(_0x5732e5=_0x458a2d[_0x14d141])&&(_0x4b42c2=(_0x3f469e<0x3?_0x5732e5(_0x4b42c2):_0x3f469e>0x3?_0x5732e5(_0x5590bd,_0x50e2a4,_0x4b42c2):_0x5732e5(_0x5590bd,_0x50e2a4))||_0x4b42c2);}return _0x3f469e>0x3&&_0x4b42c2&&Object['defineProperty'](_0x5590bd,_0x50e2a4,_0x4b42c2),_0x4b42c2;}let _=class{constructor(_0xed44dd,_0x1a7174,_0x1907aa,_0x3172cf,_0x313a88){const _0x2e084e=_0x34ded2;this[_0x2e084e(0x1e9)]=_0xed44dd,this['_table']=_0x1a7174,this[_0x2e084e(0x1ff)]=_0x1907aa,this[_0x2e084e(0x270)]=_0x3172cf,this[_0x2e084e(0x2b7)]=_0x313a88;}[_0x34ded2(0x1bd)](){const _0x307528=_0x34ded2;return this[_0x307528(0x1ff)];}['getPermission'](){const _0x31c78c=_0x34ded2;let _0x56830b=this['_table'][_0x31c78c(0x1bd)]();return new m(this[_0x31c78c(0x1e9)]['getId'](),(0x0,c[_0x31c78c(0x184)])(_0x56830b,this[_0x31c78c(0x1ff)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x56830b)],this[_0x31c78c(0x270)],this['_permissionService']);}[_0x34ded2(0x2c6)](){return this['_getField']();}[_0x34ded2(0x23d)](){const _0xf9fd4e=_0x34ded2;return this[_0xf9fd4e(0x198)]()[_0xf9fd4e(0x18e)];}[_0x34ded2(0x254)](){const _0x470b63=_0x34ded2;return this[_0x470b63(0x198)]()[_0x470b63(0x1e4)];}[_0x34ded2(0x150)](){return this['_getField']()['config'];}[_0x34ded2(0x23c)](){const _0x2e58c2=_0x34ded2;return this[_0x2e58c2(0x198)]()[_0x2e58c2(0x2b1)];}[_0x34ded2(0x210)](){const _0xa9a46d=_0x34ded2;return this[_0xa9a46d(0x198)]()[_0xa9a46d(0x279)];}[_0x34ded2(0x251)](){const _0xb2db9a=_0x34ded2;return!!this['_getField']()[_0xb2db9a(0x1c5)];}[_0x34ded2(0x152)](_0x41c37c){const _0x2c6309=_0x34ded2;return this[_0x2c6309(0x26b)]({'name':_0x41c37c});}[_0x34ded2(0x155)](_0x3d83f5,_0x58ec5b){const _0x2efd8b=_0x34ded2;return this[_0x2efd8b(0x26b)]({'config':_0x3d83f5},_0x58ec5b);}[_0x34ded2(0x23a)](_0x5556e9){const _0x3f5e57=_0x34ded2;return this[_0x3f5e57(0x26b)]({'defaultValue':_0x5556e9});}[_0x34ded2(0x26b)](_0x21544f,_0x3ff878){const _0x14e01d=_0x34ded2;let _0x2fe930=this[_0x14e01d(0x198)]()[_0x14e01d(0x1e4)];return(_0x21544f[_0x14e01d(0x1e4)]??_0x2fe930)===l[_0x14e01d(0x25a)][_0x14e01d(0x168)]&&(Object[_0x14e01d(0x2c5)][_0x14e01d(0x249)][_0x14e01d(0x2cc)](_0x21544f,'config')||_0x21544f[_0x14e01d(0x1e4)]===l['BaseFieldType'][_0x14e01d(0x168)])&&!this[_0x14e01d(0x2cd)](_0x3ff878)?!0x1:this[_0x14e01d(0x270)][_0x14e01d(0x14d)](c[_0x14e01d(0x16d)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x14e01d(0x214)][_0x14e01d(0x1bd)](),'fieldId':this[_0x14e01d(0x1ff)],'patch':_0x21544f});}[_0x34ded2(0x298)](_0x4f2e36,_0x589260={},_0x4a75ae){const _0x2022df=_0x34ded2;return _0x4f2e36===l[_0x2022df(0x25a)][_0x2022df(0x168)]&&!this['_writeFormulaExternalReferences'](_0x4a75ae)?!0x1:this[_0x2022df(0x270)]['syncExecuteCommand'](c['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x2022df(0x1e9)]['getId'](),'tableId':this[_0x2022df(0x214)][_0x2022df(0x1bd)](),'fieldId':this['_fieldId'],'input':{'type':_0x4f2e36,'config':_0x589260}});}[_0x34ded2(0x2b2)](){const _0x2d81c8=_0x34ded2;return this[_0x2d81c8(0x270)][_0x2d81c8(0x14d)](c['DeleteBaseFieldCommand']['id'],{'unitId':this['_base'][_0x2d81c8(0x1bd)](),'tableId':this[_0x2d81c8(0x214)][_0x2d81c8(0x1bd)](),'fieldId':this[_0x2d81c8(0x1ff)]});}[_0x34ded2(0x139)](_0x217930){const _0x543516=_0x34ded2;return this[_0x543516(0x270)][_0x543516(0x14d)](c[_0x543516(0x290)]['id'],{'unitId':this['_base'][_0x543516(0x1bd)](),'tableId':this[_0x543516(0x214)][_0x543516(0x1bd)](),'fieldId':this[_0x543516(0x1ff)],'target':_0x217930});}[_0x34ded2(0x198)](){const _0x8b27ca=_0x34ded2;let _0x376337=this[_0x8b27ca(0x214)]['getTable']()[_0x8b27ca(0x1c8)][this[_0x8b27ca(0x1ff)]];if(!_0x376337)throw Error(_0x8b27ca(0x21e)+this[_0x8b27ca(0x1ff)]+_0x8b27ca(0x12a));return _0x376337;}[_0x34ded2(0x2cd)](_0x49c4fb){const _0xc2bc0f=_0x34ded2;if(!_0x49c4fb||!Array[_0xc2bc0f(0x125)](_0x49c4fb['externalReferences']))return console[_0xc2bc0f(0x1f4)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x49c4fb[_0xc2bc0f(0x133)][_0xc2bc0f(0x1b5)]===0x0)return!0x0;let _0x2e853b=this[_0xc2bc0f(0x270)][_0xc2bc0f(0x14d)](f[_0xc2bc0f(0x202)]['id'],{'unitId':this['_base']['getId'](),'references':_0x49c4fb[_0xc2bc0f(0x133)]});return _0x2e853b||console[_0xc2bc0f(0x1f4)](_0xc2bc0f(0x12e)),_0x2e853b;}};_=g([h(0x3,l[_0x34ded2(0x153)]),h(0x4,l[_0x34ded2(0x277)])],_);let v=function(_0x667845){const _0x3f705c=_0x34ded2;return _0x667845['Id']='id',_0x667845[_0x3f705c(0x283)]='name',_0x667845[_0x3f705c(0x2c2)]=_0x3f705c(0x216),_0x667845;}({});function y(_0x2e2971){const _0x2cfc2e=_0x34ded2;return!!(_0x2e2971&&_0x2e2971['system']!==!0x0&&_0x2e2971['type']!==l[_0x2cfc2e(0x25a)]['RecordId']);}function b(_0x1349a5,_0x26d9cd,_0x125965='id'){const _0x1e8b95=_0x34ded2;if(!_0x26d9cd)return{};let _0x54d0a0={};return Object[_0x1e8b95(0x2ab)](_0x26d9cd)[_0x1e8b95(0x1c3)](([_0x5d4927,_0x42ac93])=>{const _0x54cf38=_0x1e8b95;let _0x43766f=S(_0x1349a5,_0x5d4927,_0x125965);_0x54d0a0[_0x43766f]=x(_0x1349a5[_0x54cf38(0x1c8)][_0x43766f],_0x42ac93);}),_0x54d0a0;}function x(_0x4f1a8a,_0xeff8c7){const _0x707b79=_0x34ded2;if((_0x4f1a8a==null?void 0x0:_0x4f1a8a[_0x707b79(0x1e4)])!==l[_0x707b79(0x25a)][_0x707b79(0x1a3)]||_0xeff8c7==null)return _0xeff8c7;if(!Array[_0x707b79(0x125)](_0xeff8c7))throw TypeError(_0x707b79(0x2a3)+_0x4f1a8a[_0x707b79(0x18e)]+_0x707b79(0x164));return _0xeff8c7[_0x707b79(0x10b)]((_0x14283f,_0xea48a1)=>C(_0x4f1a8a,_0x14283f,_0xea48a1));}function S(_0x443818,_0x5df893,_0x100d00){const _0x4ed017=_0x34ded2;if(_0x100d00==='id'||_0x100d00===_0x4ed017(0x216)&&_0x443818[_0x4ed017(0x1c8)][_0x5df893])return _0x5df893;let _0x212cb4=Object[_0x4ed017(0x241)](_0x443818[_0x4ed017(0x1c8)])['filter'](_0x38fc79=>_0x38fc79['name']===_0x5df893);if(_0x212cb4['length']===0x1)return _0x212cb4[0x0]['id'];throw _0x212cb4[_0x4ed017(0x1b5)]>0x1?Error(_0x4ed017(0x159)+_0x5df893):Error('Base\x20field\x20not\x20found:\x20'+_0x5df893);}function C(_0xd074a8,_0xbcc30c,_0x32c47d){const _0x3d9f66=_0x34ded2;let _0x53bc63=_0x3d9f66(0x1d6)+_0x32c47d+_0x3d9f66(0x119)+_0xd074a8[_0x3d9f66(0x18e)]+'\x22';if(!O(_0xbcc30c))throw TypeError(_0x53bc63+_0x3d9f66(0x1e1));if(_0x3d9f66(0x1e7)in _0xbcc30c)throw TypeError(_0x53bc63+_0x3d9f66(0x2a8));if('type'in _0xbcc30c)throw TypeError(_0x53bc63+_0x3d9f66(0x179));let _0x5b37ff=T(_0xbcc30c['id'],_0x53bc63,'id'),_0x2ce890=T(_0xbcc30c[_0x3d9f66(0x18e)],_0x53bc63,_0x3d9f66(0x18e)),_0x2ef551=T(_0xbcc30c[_0x3d9f66(0x27f)],_0x53bc63,_0x3d9f66(0x27f));return{'id':_0x5b37ff,'name':_0x2ce890,'source':_0x2ef551,'sourceType':w(_0xbcc30c['sourceType'],_0x2ef551,_0x53bc63),...E(_0xbcc30c,_0x3d9f66(0x205),_0x53bc63),...D(_0xbcc30c,_0x3d9f66(0x258),_0x53bc63),...D(_0xbcc30c,'width',_0x53bc63),...D(_0xbcc30c,'height',_0x53bc63),...E(_0xbcc30c,_0x3d9f66(0x227),_0x53bc63)};}function w(_0x4200b0,_0x323383,_0x593196){const _0x33a522=_0x34ded2;if(_0x4200b0==null)return _0x323383[_0x33a522(0x1f8)](_0x33a522(0x1ad))?l[_0x33a522(0x18f)][_0x33a522(0x255)]:l['ImageSourceType'][_0x33a522(0x1b9)];if(_0x4200b0===l[_0x33a522(0x18f)]['URL']||_0x4200b0===l[_0x33a522(0x18f)][_0x33a522(0x148)]||_0x4200b0===l[_0x33a522(0x18f)]['BASE64'])return _0x4200b0;throw TypeError(_0x593196+_0x33a522(0x244));}function T(_0x528ea9,_0x53a969,_0x300671){const _0x464a7a=_0x34ded2;if(typeof _0x528ea9!=_0x464a7a(0x131)||!_0x528ea9[_0x464a7a(0x1af)]())throw TypeError(_0x53a969+_0x464a7a(0x25f)+_0x300671+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x528ea9;}function E(_0xdc7eb7,_0x10aa5c,_0x14991c){const _0x34e05d=_0x34ded2;let _0xd92cc=_0xdc7eb7[_0x10aa5c];if(_0xd92cc==null)return{};if(typeof _0xd92cc!=_0x34e05d(0x131)||!_0xd92cc[_0x34e05d(0x1af)]())throw TypeError(_0x14991c+_0x34e05d(0x25f)+_0x10aa5c+_0x34e05d(0x20f));return{[_0x10aa5c]:_0xd92cc};}function D(_0x31c691,_0x4b7e83,_0x53af57){const _0x69c2ef=_0x34ded2;let _0x109a5f=_0x31c691[_0x4b7e83];if(_0x109a5f==null)return{};if(typeof _0x109a5f!='number'||!Number[_0x69c2ef(0x25e)](_0x109a5f)||_0x109a5f<0x0)throw TypeError(_0x53af57+_0x69c2ef(0x25f)+_0x4b7e83+_0x69c2ef(0x180));return{[_0x4b7e83]:_0x109a5f};}function O(_0x2ba0bf){const _0x49925e=_0x34ded2;return typeof _0x2ba0bf==_0x49925e(0x1fa)&&!!_0x2ba0bf&&!Array[_0x49925e(0x125)](_0x2ba0bf);}var k;let A=k=class{constructor(_0x207e8f,_0x236e94,_0x36eedf,_0x21aca3,_0x18ca98){const _0x1e6787=_0x34ded2;this['_base']=_0x207e8f,this['_table']=_0x236e94,this['_range']=_0x36eedf,this[_0x1e6787(0x23e)]=_0x21aca3,this[_0x1e6787(0x270)]=_0x18ca98,this[_0x1e6787(0x24b)]();}['getBaseId'](){const _0x55fcb7=_0x34ded2;return this[_0x55fcb7(0x1e9)][_0x55fcb7(0x1bd)]();}[_0x34ded2(0x25c)](){const _0x3b1f92=_0x34ded2;return this[_0x3b1f92(0x214)]['getId']();}[_0x34ded2(0x193)](){return{...this['_range']};}[_0x34ded2(0x176)](){const _0x31b77e=_0x34ded2;return this['_range'][_0x31b77e(0x1e8)];}[_0x34ded2(0x2ca)](){const _0x5e9119=_0x34ded2;return this[_0x5e9119(0x197)][_0x5e9119(0x1c1)];}[_0x34ded2(0x1fd)](){const _0x33bbab=_0x34ded2;return this[_0x33bbab(0x197)]['endRow']-this[_0x33bbab(0x197)][_0x33bbab(0x1e8)]+0x1;}[_0x34ded2(0x1fe)](){const _0xc9db17=_0x34ded2;return this['_range'][_0xc9db17(0x13e)]-this[_0xc9db17(0x197)][_0xc9db17(0x1c1)]+0x1;}['getValues'](){const _0x145068=_0x34ded2;let _0x579d27=this[_0x145068(0x19d)](),_0x9d9d4e=this[_0x145068(0x24a)](_0x579d27),_0x4cbf52=[];for(let _0x518291=this[_0x145068(0x197)][_0x145068(0x1e8)];_0x518291<=this['_range']['endRow'];_0x518291++){var _0x1f85be;let _0x3d56ec=(_0x1f85be=_0x579d27['rowId'])==null?void 0x0:_0x1f85be[_0x518291],_0x3b6250=[];for(let _0x1f4358=this[_0x145068(0x197)][_0x145068(0x1c1)];_0x1f4358<=this[_0x145068(0x197)]['endColumn'];_0x1f4358++){let _0x1a41ba=_0x9d9d4e[_0x1f4358];_0x3b6250[_0x145068(0x1bc)](_0x3d56ec&&_0x1a41ba?(0x0,c['getBaseCellValue'])(_0x579d27,_0x3d56ec,_0x1a41ba):null);}_0x4cbf52['push'](_0x3b6250);}return _0x4cbf52;}[_0x34ded2(0x21c)](){const _0x50b244=_0x34ded2;var _0x5176ad;return((_0x5176ad=this[_0x50b244(0x2b3)]()[0x0])==null?void 0x0:_0x5176ad[0x0])??null;}[_0x34ded2(0x27b)](_0x1971e){const _0x3e21eb=_0x34ded2;return this[_0x3e21eb(0x1c6)]([[_0x1971e]]);}[_0x34ded2(0x1c6)](_0x5ca21a){const _0x369897=_0x34ded2;let _0x31daa7=this[_0x369897(0x1fd)](),_0x5ad0fe=this[_0x369897(0x1fe)]();if(_0x5ca21a['length']>_0x31daa7||_0x5ca21a[_0x369897(0x18a)](_0x5d8fe7=>_0x5d8fe7[_0x369897(0x1b5)]>_0x5ad0fe)){var _0x43169b;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x5ca21a['length']+'x'+(((_0x43169b=_0x5ca21a[0x0])==null?void 0x0:_0x43169b[_0x369897(0x1b5)])??0x0)+_0x369897(0x186)+_0x31daa7+'x'+_0x5ad0fe+'.');}let _0x5b748a=this[_0x369897(0x19d)](),_0x45f311=this[_0x369897(0x24a)](_0x5b748a),_0x34c95b=_0x5ca21a[_0x369897(0x181)]((_0x268aff,_0x10b405)=>_0x268aff[_0x369897(0x10b)]((_0x197297,_0x2d9b35)=>{const _0x81fc59=_0x369897;var _0x567327;let _0x1dad40=this[_0x81fc59(0x197)][_0x81fc59(0x1e8)]+_0x10b405,_0x12e572=_0x45f311[this[_0x81fc59(0x197)][_0x81fc59(0x1c1)]+_0x2d9b35],_0x1d71c4=(_0x567327=_0x5b748a['rowId'])==null?void 0x0:_0x567327[_0x1dad40];if(!_0x12e572||!_0x1d71c4)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x1d71c4,'fieldId':_0x12e572,'value':_0x197297};}));return this[_0x369897(0x270)][_0x369897(0x14d)](c[_0x369897(0x209)]['id'],{'unitId':this[_0x369897(0x1e9)][_0x369897(0x1bd)](),'tableId':this[_0x369897(0x214)]['getId'](),'patches':_0x34c95b,'source':c['BaseEventSource'][_0x369897(0x1f9)]});}['clear'](){const _0xde5e37=_0x34ded2;return this['setValues'](Array[_0xde5e37(0x1d8)]({'length':this[_0xde5e37(0x1fd)]()},()=>Array[_0xde5e37(0x1d8)]({'length':this[_0xde5e37(0x1fe)]()},()=>null)));}[_0x34ded2(0x16b)](_0x3535ca,_0x534b57,_0x57be6e=this['getNumRows'](),_0x10630f=this['getNumColumns']()){const _0xa60556=_0x34ded2;return this[_0xa60556(0x23e)][_0xa60556(0x2c0)](k,this[_0xa60556(0x1e9)],this['_table'],{'startRow':this[_0xa60556(0x197)]['startRow']+_0x3535ca,'startColumn':this['_range']['startColumn']+_0x534b57,'endRow':this[_0xa60556(0x197)][_0xa60556(0x1e8)]+_0x3535ca+_0x57be6e-0x1,'endColumn':this['_range'][_0xa60556(0x1c1)]+_0x534b57+_0x10630f-0x1},this[_0xa60556(0x23e)]);}[_0x34ded2(0x19d)](){const _0x708286=_0x34ded2;let _0x201c17=this['_table'][_0x708286(0x2cf)]();if(!_0x201c17)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c[_0x708286(0x1c0)])(_0x201c17);}['_assertInBounds'](){const _0x9947a9=_0x34ded2;var _0x303eaa;let _0x69db91=this[_0x9947a9(0x19d)](),_0x46e244=((_0x303eaa=_0x69db91[_0x9947a9(0x146)])==null?void 0x0:_0x303eaa[_0x9947a9(0x1b5)])??0x0,_0x17f7ce=this[_0x9947a9(0x24a)](_0x69db91)[_0x9947a9(0x1b5)];if(this[_0x9947a9(0x197)][_0x9947a9(0x1e8)]<0x0||this[_0x9947a9(0x197)][_0x9947a9(0x1c1)]<0x0||this[_0x9947a9(0x197)][_0x9947a9(0x1c7)]<this['_range']['startRow']||this['_range'][_0x9947a9(0x13e)]<this[_0x9947a9(0x197)]['startColumn']||this[_0x9947a9(0x197)]['endRow']>=Math[_0x9947a9(0x28e)](_0x46e244,0x1)||this[_0x9947a9(0x197)]['endColumn']>=Math[_0x9947a9(0x28e)](_0x17f7ce,0x1))throw Error(_0x9947a9(0x138)+_0x46e244+_0x9947a9(0x1eb)+_0x17f7ce+_0x9947a9(0x12c)+JSON[_0x9947a9(0x20a)](this['_range'])+'.');}[_0x34ded2(0x24a)](_0x328af9){const _0x36a3da=_0x34ded2;return _0x328af9[_0x36a3da(0x276)][_0x36a3da(0x120)](_0x4cfe7e=>y(_0x328af9[_0x36a3da(0x1c8)][_0x4cfe7e]));}};A=k=g([h(0x4,l[_0x34ded2(0x153)])],A);function j(_0x4286da){'@babel/helpers - typeof';const _0x49b5b8=_0x34ded2;return j=typeof Symbol==_0x49b5b8(0x17d)&&typeof Symbol[_0x49b5b8(0x29a)]=='symbol'?function(_0x40a7b6){return typeof _0x40a7b6;}:function(_0x3a124f){const _0x355f73=_0x49b5b8;return _0x3a124f&&typeof Symbol==_0x355f73(0x17d)&&_0x3a124f[_0x355f73(0x188)]===Symbol&&_0x3a124f!==Symbol['prototype']?_0x355f73(0x287):typeof _0x3a124f;},j(_0x4286da);}function M(_0xdabaeb,_0x4c09c9){const _0x3dceef=_0x34ded2;if(j(_0xdabaeb)!=_0x3dceef(0x1fa)||!_0xdabaeb)return _0xdabaeb;var _0x1b64ab=_0xdabaeb[Symbol[_0x3dceef(0x19a)]];if(_0x1b64ab!==void 0x0){var _0x59efa3=_0x1b64ab[_0x3dceef(0x2cc)](_0xdabaeb,_0x4c09c9||'default');if(j(_0x59efa3)!=_0x3dceef(0x1fa))return _0x59efa3;throw TypeError(_0x3dceef(0x220));}return(_0x4c09c9===_0x3dceef(0x131)?String:Number)(_0xdabaeb);}function N(_0x5b2cf3){const _0x4ece00=_0x34ded2;var _0x53928f=M(_0x5b2cf3,_0x4ece00(0x131));return j(_0x53928f)==_0x4ece00(0x287)?_0x53928f:_0x53928f+'';}function P(_0x3e378b,_0x5b9548,_0x43d545){const _0x3dc027=_0x34ded2;return(_0x5b9548=N(_0x5b9548))in _0x3e378b?Object[_0x3dc027(0x1a0)](_0x3e378b,_0x5b9548,{'value':_0x43d545,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e378b[_0x5b9548]=_0x43d545,_0x3e378b;}function _0x638a(){const _0x551838=['SetBaseNameCommand','auto','_initBaseAfterEvents','targetTableId','getGroup','searchBaseTable','validateBaseTableName','getValue','getOwnPropertyNames','[FField]:\x20field\x20\x22','SetBaseViewFieldWidthCommand','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_recordId','getTableById','rules','reason','\x22.\x20','SetBaseTableHierarchyFieldCommand','thumbnail','UNIVER_BASE','195qcaSaB','DESC','FBaseInitialable','FBaseTableRange','FBaseTable','matches','FUniver','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','BeforeBaseTableRecordCreate','CreateBaseFieldCommand','afterFieldId','getBaseTablePermissionObjectId','buildBaseHierarchyIndex','Edit','BaseConditionalColorOperator','validateRecordLinkValue','_objectId','setDefaultValue','BaseTableCreated','getDefaultValue','getName','_inject','BaseTableViewCreated','[FRecord]:\x20invalid\x20RecordLink\x20value.','values','CreateBaseViewCommand','Calendar',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','\x20in\x20field\x20\x22','FEnum','canEditBaseTargets','fromEntries','hasOwnProperty','_getFieldIds','_assertInBounds','visibleCardFieldIds','fieldIds','_collectDescendantIds','addRecord','BaseViewType','isReadonly','_getHierarchyEventContext','getBaseHierarchyDeletePromotions','getType','BASE64','rows','getPrototypeOf','size','test','BaseFieldType','getDescendants','getTableId','SetBaseRecordValuesCommand','isFinite',':\x20\x22','removeLinkedRecord','number','getBases','fieldId','getBaseFacade','_unitId','has','DuplicateBaseRecordCommand','beforeFieldId','setParent','getUnit','update','getAncestors','SetBasePermissionsCommand','_getView','table','_commandService','IBaseProjectionService','Grid','queryRecords','executeCommand','now','fieldOrder','IPermissionService','valid','description','includeRecords','setValue','base','getLinkedRecordIds','_viewId','source','validateBaseHierarchyRecordCreations','cancel','Failed\x20to\x20create\x20table\x20\x22','Name','generateRandomId','search','BeforeBaseTableCreate','symbol','FBase','CanceledError','setGroup','getFieldSettings','getChildren','conditions','max','resolveBaseRangeHierarchyPatches','MoveBaseFieldCommand','config','getFormulaName','BaseTableCellValueChanged','multiple','fieldKey','_tableId','deleteConditionalColorRule','changeType','parentRecordId','iterator','viewId','getFilter','getParent','getTableByName','BASE_TABLE_NAME_REQUIREMENTS','UpdateBaseViewConditionalColorRulesCommand','getRecord','_parentObjectIds','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','views','createDefaultBaseTableSnapshot','orderKey','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','hidden','BaseHierarchyChanged','entries','BaseConditionalColorRuleUpdateType','Clear','beforeCommandExecuted','create','getFieldByName','defaultValue','delete','getValues','duplicate','242hYbeVd','getRecordLinkFieldConfig','_permissionService','getBase','BeforeBaseHierarchyChange','record','[FBase]:\x20table\x20\x22','BaseRecordLinkRole','setFilter','getSnapshot','viewOrder','createInstance','ApplyBaseJson1Mutation','Auto','parentByRecordId','Failed\x20to\x20create\x20view\x20\x22','prototype','getField','getFieldById','unitId','view','getColumn','_baseTableId','call','_writeFormulaExternalReferences','FBaseTableField','getTable','map','getProjection','Inject','Failed\x20to\x20add\x20field\x20\x22','DeleteBaseViewCommand','fieldSettings','notMatches','primaryFieldId','getTableFacade','_projectionService','createBase','getUnitId','IResourceLoaderService','getFields','\x20for\x20field\x20\x22','deepClone','getBaseFormulaTableName','getView','SetBaseViewFilterCommand','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getCurrentUnitOfType','filter','group','getSort','_initialize','[FView]:\x20view\x20\x22','isArray','BatchDeleteBaseRecordsCommand','UpdateBaseRecordOrderCommand','tableOrder','BaseFilterOperator','\x22\x20does\x20not\x20exist.','UpdateBaseCellCommand',',\x20range:\x20','getHierarchyFieldId','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','primaryFieldName','SetBaseViewGroupCommand','string','recordId','externalReferences','_fireBeforeHierarchyChange','getPoint','759508RRaRrt','BaseConditionalColorTarget','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','move','message','enumerable','FBasePermission','deleteRecords','endColumn','872ksUPHH','__esModule','value','AND','localeCompare','Failed\x20to\x20delete\x20table\x20\x22','6298mdAGNf','recordOrder','sort','UUID','Set','getPrimaryFieldId','FEventName','FBaseObjectPermission','syncExecuteCommand','DeleteBaseTableCommand','Event','getConfig','getViewByName','setName','ICommandService','getTables','setConfig','UpdateBaseViewConfigCommand','parseRecordLinkIds','Invalid\x20Base\x20formula.','Duplicate\x20Base\x20field\x20name:\x20','addRecords','_injector','[FRecord]:\x20attachment\x20at\x20index\x20','getVisibleFields','_resourceLoaderService','fireEvent','CreateBaseChildRecordCommand','_initBaseBeforeEvents','includes','decorate','\x22:\x20expected\x20an\x20array.','custom','getRecordById','resolveBaseFieldValues','Formula','150245qSCTZT','14PniYNm','offset','canEdit','UpdateBaseFieldCommand','Unsupported\x20Base\x20field\x20type\x20\x22','Kanban','hierarchyChanges','toStringTag','_baseUnitId','Delete','BaseFieldKeyEnum','_prepareFormulaFieldReferences','getRow','Gantt','UniverInstanceType',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','disposeWithMe','7155MDtKyI','extend','function','_getHierarchyIndex','operator','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','flatMap','FBasesEventNameMixin','BASE_RECORD_ID_FIELD_ID','getBaseFieldPermissionObjectId','getSchema','\x20exceeds\x20range\x20size\x20','getDataRange','constructor','params','some','setEditable','SetBasePermissionCommand','deleteProperty','name','ImageSourceType','CreateBaseRecordCommand','updatedAt','getConditionalColorRules','getRange','duplicateTable','indexOf','onCommandExecuted','_range','_getField','ValidateBaseFormulaCommand','toPrimitive','tables','clearConditionalColorRules','_getTable','MoveBaseHierarchyRecordCommand','_univerInstanceService','defineProperty','BaseTableFieldCreated','3539400tIrLJM','Attachment','getRecords','10LZohqV','createView','BaseHierarchyErrorCode','CreateBaseTableCommand','field','getViewById','validateBaseHierarchyRecordPatches','default','data:','limit','trim','BaseHierarchyInvalidReason','BaseEventSource','_resolveRecordIds','_getRecordLinkField','UnitAction','length','get','\x22\x20is\x20not\x20an\x20Attachment\x20field.','find','URL','every','registerEventHandler','push','getId','Module','RecordLink','ensureBaseTableCellLayout','startColumn','Remote','forEach','setLinkedRecordIds','readonly','setValues','endRow','fields','1112112ircgxs','childrenByParentId','deleteAttachments','BeforeBaseTableCellValueChange','direction','BaseFilterConjunction','Invalid\x20Base\x20regex\x20filter:\x20','records','getAttachments','addLinkedRecord','Failed\x20to\x20duplicate\x20table\x20\x22','[FRecord]:\x20record\x20\x22','deleteTable','Invalid\x20attachment\x20at\x20index\x20','setFieldVisible','from','BaseTableRecordCreated','tableId','resolveBaseHierarchyFieldId','copyBaseTableSnapshot','_getRecord','BaseConditionalDateMode','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','setObjectPermissions',':\x20expected\x20an\x20object.','regenerateViewIds','boolean','type','moveField','DeleteBaseRecordCommand','url','startRow','_base','BaseSortDirection',',\x20max\x20columns:\x20','BeforeBaseTableViewCreate','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','addField','invalid','[FRecord]:\x20field\x20\x22','index','setHierarchyField','setReadOnly','warn','getBasePermissionValue','setAttachments','_getAttachmentField','startsWith','Facade','object','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','createUnit','getNumRows','getNumColumns','_fieldId','BatchCreateBaseRecordsCommand','saveUnit','UpsertHostExternalReferencesCommand','orderedRecordIds','getPermission','mimeType','caseSensitive','Add','Tools','SetBaseRangeValuesCommand','stringify','getBaseRecordPermissionObjectId','\x22\x20is\x20invalid.','createdAt','setConditionalColorRules','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','getDescription','bind','161244tBqrZE','BeforeBaseTableFieldCreate','_table'];_0x638a=function(){return _0x551838;};return _0x638a();}var F;let I=F=class extends u[_0x34ded2(0x22b)]{constructor(_0x47abce,_0x2fa6a0,_0x32121d,_0x5ce2c9,_0x476ad0,_0x54c0f7){const _0xa29704=_0x34ded2;super(_0x5ce2c9),this[_0xa29704(0x1e9)]=_0x47abce,this[_0xa29704(0x214)]=_0x2fa6a0,this[_0xa29704(0x221)]=_0x32121d,this[_0xa29704(0x15b)]=_0x5ce2c9,this['_commandService']=_0x476ad0,this[_0xa29704(0x2b7)]=_0x54c0f7,P(this,'_baseUnitId',void 0x0),P(this,_0xa29704(0x2cb),void 0x0),this[_0xa29704(0x172)]=_0x47abce[_0xa29704(0x1bd)](),this[_0xa29704(0x2cb)]=_0x2fa6a0[_0xa29704(0x1bd)]();}[_0x34ded2(0x264)](){const _0x21eecd=_0x34ded2;return this[_0x21eecd(0x1e9)];}[_0x34ded2(0x113)](){const _0x40cf63=_0x34ded2;return this[_0x40cf63(0x214)];}[_0x34ded2(0x1bd)](){const _0x4a3fbb=_0x34ded2;return this[_0x4a3fbb(0x221)];}[_0x34ded2(0x204)](){const _0x14d7f2=_0x34ded2;let _0x2644c9=this[_0x14d7f2(0x214)][_0x14d7f2(0x1bd)]();return new m(this[_0x14d7f2(0x1e9)][_0x14d7f2(0x1bd)](),(0x0,c[_0x14d7f2(0x20b)])(_0x2644c9,this['_recordId']),[(0x0,c['getBaseTablePermissionObjectId'])(_0x2644c9)],this[_0x14d7f2(0x270)],this['_permissionService']);}[_0x34ded2(0x2a1)](){return{...this['_getRecord'](),'values':this['getValues']()};}[_0x34ded2(0x21c)](_0x4fc0bd){const _0x41726f=_0x34ded2;return y(this['_table'][_0x41726f(0x2cf)]()[_0x41726f(0x1c8)][_0x4fc0bd])?this[_0x41726f(0x1dd)]()['values'][_0x4fc0bd]??null:null;}['getValues'](){const _0x5d3ab3=_0x34ded2;let _0x385b76=this['_table']['getTable']();return Object[_0x5d3ab3(0x248)](Object[_0x5d3ab3(0x2ab)](this['_getRecord']()['values'])[_0x5d3ab3(0x120)](([_0x4e5cc])=>y(_0x385b76[_0x5d3ab3(0x1c8)][_0x4e5cc])));}[_0x34ded2(0x27b)](_0xb65883,_0x1cfdef){const _0x5f45dc=_0x34ded2;let _0x5748b8=this[_0x5f45dc(0x214)][_0x5f45dc(0x2cf)]()[_0x5f45dc(0x1c8)][_0xb65883];return this[_0x5f45dc(0x270)]['syncExecuteCommand'](c[_0x5f45dc(0x12b)]['id'],{'unitId':this[_0x5f45dc(0x1e9)][_0x5f45dc(0x1bd)](),'tableId':this[_0x5f45dc(0x214)][_0x5f45dc(0x1bd)](),'recordId':this[_0x5f45dc(0x221)],'fieldId':_0xb65883,'value':x(_0x5748b8,_0x1cfdef),'source':c[_0x5f45dc(0x1b1)][_0x5f45dc(0x1f9)]});}[_0x34ded2(0x1f6)](_0x225e23,_0x3e2dcb){const _0x5132b1=_0x34ded2;return this['setValue'](_0x225e23,_0x3e2dcb[_0x5132b1(0x10b)](_0x57060b=>({..._0x57060b})));}[_0x34ded2(0x1d1)](_0x1789e1){const _0x390433=_0x34ded2;this[_0x390433(0x1f7)](_0x1789e1);let _0x54130c=this[_0x390433(0x21c)](_0x1789e1);return Array[_0x390433(0x125)](_0x54130c)?_0x54130c[_0x390433(0x10b)]((_0x3569e7,_0x4bad57)=>R(_0x3569e7,_0x1789e1,_0x4bad57)):[];}[_0x34ded2(0x1cb)](_0xbebbd5,_0x1ace8c){const _0x22d4fe=_0x34ded2;this[_0x22d4fe(0x1f7)](_0xbebbd5);let _0x2d6127=new Set(_0x1ace8c[_0x22d4fe(0x10b)](_0x43e162=>_0x43e162['id']));if(!_0x2d6127['size'])return!0x0;let _0x10a735=this['getAttachments'](_0xbebbd5),_0x4a9bdd=_0x10a735[_0x22d4fe(0x120)](_0x2d7865=>!_0x2d6127['has'](_0x2d7865['id']));return _0x4a9bdd[_0x22d4fe(0x1b5)]===_0x10a735['length']||this[_0x22d4fe(0x1f6)](_0xbebbd5,_0x4a9bdd);}[_0x34ded2(0x1c6)](_0x4b5368,_0xe023ac='id'){const _0x2cf867=_0x34ded2;let _0x1881c1=this[_0x2cf867(0x214)]['getTable'](),_0x4d64a9=[{'recordId':this['_recordId'],'values':b(_0x1881c1,_0x4b5368,_0xe023ac)}];return this['_commandService'][_0x2cf867(0x14d)](c[_0x2cf867(0x25d)]['id'],{'unitId':this[_0x2cf867(0x1e9)]['getId'](),'tableId':this[_0x2cf867(0x214)]['getId'](),'patches':_0x4d64a9,'source':c[_0x2cf867(0x1b1)]['Facade']});}[_0x34ded2(0x2b2)](){const _0x19b32e=_0x34ded2;return this[_0x19b32e(0x270)][_0x19b32e(0x14d)](c[_0x19b32e(0x1e6)]['id'],{'unitId':this[_0x19b32e(0x1e9)][_0x19b32e(0x1bd)](),'tableId':this[_0x19b32e(0x214)][_0x19b32e(0x1bd)](),'recordId':this[_0x19b32e(0x221)],'source':c['BaseEventSource'][_0x19b32e(0x1f9)]});}[_0x34ded2(0x2b4)](_0x5dbc9b){const _0x498b07=_0x34ded2;let _0x334cfb={...this[_0x498b07(0x1dd)](),..._0x5dbc9b,'id':(0x0,l[_0x498b07(0x284)])(0x6)};_0x334cfb[_0x498b07(0x241)]={..._0x334cfb[_0x498b07(0x241)],..._0x5dbc9b==null?void 0x0:_0x5dbc9b[_0x498b07(0x241)]},Reflect[_0x498b07(0x18d)](_0x334cfb['values'],l[_0x498b07(0x183)]);let _0x7c2ce8=Date[_0x498b07(0x275)]();if(_0x334cfb['orderKey']||=''+_0x7c2ce8,_0x334cfb['createdAt']||=_0x7c2ce8,_0x334cfb['updatedAt']||=_0x7c2ce8,!this[_0x498b07(0x270)][_0x498b07(0x14d)](c[_0x498b07(0x267)]['id'],{'unitId':this[_0x498b07(0x1e9)][_0x498b07(0x1bd)](),'tableId':this[_0x498b07(0x214)][_0x498b07(0x1bd)](),'sourceRecordId':this[_0x498b07(0x221)],'record':_0x334cfb,'source':c[_0x498b07(0x1b1)][_0x498b07(0x1f9)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x498b07(0x221)]+'\x22.');return this[_0x498b07(0x15b)][_0x498b07(0x2c0)](F,this[_0x498b07(0x1e9)],this['_table'],_0x334cfb['id'],this[_0x498b07(0x15b)]);}['setOrderKey'](_0xb19986){const _0xb88fb6=_0x34ded2;return this['_commandService'][_0xb88fb6(0x14d)](c[_0xb88fb6(0x127)]['id'],{'unitId':this[_0xb88fb6(0x1e9)][_0xb88fb6(0x1bd)](),'tableId':this[_0xb88fb6(0x214)]['getId'](),'recordId':this['_recordId'],'orderKey':_0xb19986});}[_0x34ded2(0x27d)](_0x4d8928){const _0x3cfd94=_0x34ded2;let _0x100d90=this['_getRecordLinkField'](_0x4d8928),_0x3c7bc4=this[_0x3cfd94(0x21c)](_0x100d90['id']);return(0x0,c[_0x3cfd94(0x157)])(_0x3c7bc4);}['setLinkedRecordIds'](_0x441641,_0x401d3d){const _0x37e57f=_0x34ded2;let _0x19e8f9=this[_0x37e57f(0x1b3)](_0x441641),_0x31fc1a=(0x0,c['serializeRecordLinkIds'])(_0x401d3d),_0x963d16=(0x0,c[_0x37e57f(0x238)])(this[_0x37e57f(0x1e9)][_0x37e57f(0x2b8)]()[_0x37e57f(0x2be)](),_0x19e8f9,_0x31fc1a);if(!_0x963d16[_0x37e57f(0x278)])throw Error(_0x963d16['reason']??_0x37e57f(0x240));return this['_commandService']['syncExecuteCommand'](c[_0x37e57f(0x12b)]['id'],{'unitId':this[_0x37e57f(0x1e9)]['getId'](),'tableId':this['_table']['getId'](),'recordId':this[_0x37e57f(0x221)],'fieldId':_0x441641,'value':_0x31fc1a,'source':c['BaseEventSource'][_0x37e57f(0x1f9)]});}[_0x34ded2(0x1d2)](_0x3a985e,_0x1e85fc){const _0x51c2aa=_0x34ded2;let _0xa6be9e=this[_0x51c2aa(0x1b3)](_0x3a985e),_0x4b1024=(0x0,c[_0x51c2aa(0x2b6)])(_0xa6be9e);if(!_0x4b1024)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x3a985e+'\x22\x20has\x20invalid\x20config.');let _0x3b1bc5=this['getLinkedRecordIds'](_0x3a985e);return _0x4b1024['multiple']&&_0x3b1bc5[_0x51c2aa(0x162)](_0x1e85fc)?!0x0:this['setLinkedRecordIds'](_0x3a985e,_0x4b1024[_0x51c2aa(0x294)]?[..._0x3b1bc5,_0x1e85fc]:[_0x1e85fc]);}[_0x34ded2(0x260)](_0x34761b,_0x365c0f){const _0x119c46=_0x34ded2;let _0xbbecb8=this[_0x119c46(0x27d)](_0x34761b);return!_0xbbecb8[_0x119c46(0x162)](_0x365c0f)||this[_0x119c46(0x1c4)](_0x34761b,_0xbbecb8[_0x119c46(0x120)](_0x4b10ca=>_0x4b10ca!==_0x365c0f));}[_0x34ded2(0x29d)](_0x22b63b){const _0x35f775=_0x34ded2;let _0x198588=this['_getHierarchyIndex'](_0x22b63b)['parentByRecordId'][_0x35f775(0x1b6)](this[_0x35f775(0x221)])??null;return _0x198588?this['_table']['getRecordById'](_0x198588):null;}[_0x34ded2(0x28c)](_0x4a231a){const _0x5c821d=_0x34ded2;return(this['_getHierarchyIndex'](_0x4a231a)['childrenByParentId']['get'](this['_recordId'])??[])[_0x5c821d(0x181)](_0x2b4388=>{const _0x3b91f7=_0x5c821d;let _0x37818b=this['_table'][_0x3b91f7(0x166)](_0x2b4388);return _0x37818b?[_0x37818b]:[];});}[_0x34ded2(0x26c)](_0x621227){const _0xb5336=_0x34ded2;let _0x452994=this['_getHierarchyIndex'](_0x621227),_0x238cd6=[],_0x1aabeb=_0x452994[_0xb5336(0x2c3)][_0xb5336(0x1b6)](this[_0xb5336(0x221)])??null;for(;_0x1aabeb;){let _0x32f93e=this[_0xb5336(0x214)]['getRecordById'](_0x1aabeb);_0x32f93e&&_0x238cd6[_0xb5336(0x1bc)](_0x32f93e),_0x1aabeb=_0x452994[_0xb5336(0x2c3)][_0xb5336(0x1b6)](_0x1aabeb)??null;}return _0x238cd6;}[_0x34ded2(0x25b)](_0x4c9d41){const _0x18a8b3=_0x34ded2;let _0x3a67e6=this[_0x18a8b3(0x17e)](_0x4c9d41),_0x34a61b=_0x3a67e6[_0x18a8b3(0x203)][_0x18a8b3(0x195)](this[_0x18a8b3(0x221)]),_0x384b87=_0x3a67e6['subtreeHeightByRecordId'][_0x18a8b3(0x266)](this['_recordId'])?this[_0x18a8b3(0x24e)](_0x3a67e6[_0x18a8b3(0x1ca)],this[_0x18a8b3(0x221)]):[];return _0x34a61b<0x0?[]:_0x384b87[_0x18a8b3(0x181)](_0x2a0f57=>{const _0x584a20=_0x18a8b3;let _0x5cea05=this['_table'][_0x584a20(0x166)](_0x2a0f57);return _0x5cea05?[_0x5cea05]:[];});}[_0x34ded2(0x269)](_0x1e83bd,_0x2b9d57,_0x30295d){const _0x7a7a34=_0x34ded2;return this[_0x7a7a34(0x270)][_0x7a7a34(0x14d)](c[_0x7a7a34(0x19e)]['id'],{'unitId':this[_0x7a7a34(0x1e9)][_0x7a7a34(0x1bd)](),'tableId':this[_0x7a7a34(0x214)]['getId'](),'fieldId':_0x1e83bd,'recordId':this[_0x7a7a34(0x221)],'parentRecordId':_0x2b9d57,'orderKey':_0x30295d,'source':c[_0x7a7a34(0x1b1)][_0x7a7a34(0x1f9)]});}['addChild'](_0xa7d7e0,_0x529ad1,_0x28758b='id',_0x5c6a38){const _0x353655=_0x34ded2;let _0x125481=this['_table'][_0x353655(0x2cf)](),_0x35afd6=Date['now'](),_0x4f7f8e={..._0x5c6a38,'id':(0x0,l[_0x353655(0x284)])(0x6),'values':b(_0x125481,_0x529ad1,_0x28758b),'orderKey':(_0x5c6a38==null?void 0x0:_0x5c6a38['orderKey'])||''+_0x35afd6,'createdAt':(_0x5c6a38==null?void 0x0:_0x5c6a38['createdAt'])||_0x35afd6,'updatedAt':(_0x5c6a38==null?void 0x0:_0x5c6a38[_0x353655(0x191)])||_0x35afd6};if(!this[_0x353655(0x270)][_0x353655(0x14d)](c[_0x353655(0x160)]['id'],{'unitId':this[_0x353655(0x1e9)][_0x353655(0x1bd)](),'tableId':this[_0x353655(0x214)][_0x353655(0x1bd)](),'fieldId':_0xa7d7e0,'parentRecordId':this['_recordId'],'record':_0x4f7f8e,'source':c[_0x353655(0x1b1)][_0x353655(0x1f9)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x353655(0x221)]+'\x22.');return this[_0x353655(0x15b)][_0x353655(0x2c0)](F,this['_base'],this[_0x353655(0x214)],_0x4f7f8e['id'],this[_0x353655(0x15b)]);}['_getHierarchyIndex'](_0x41fe40){const _0x9f00d6=_0x34ded2;return(0x0,c[_0x9f00d6(0x235)])(this[_0x9f00d6(0x214)]['getTable'](),_0x41fe40);}[_0x34ded2(0x24e)](_0x3fea70,_0x41d38d){let _0x22422f=[],_0xdc32c0=_0x29d3e5=>{const _0x159963=_0x3bb1;for(let _0x37226e of _0x3fea70['get'](_0x29d3e5)??[])_0x22422f[_0x159963(0x1bc)](_0x37226e),_0xdc32c0(_0x37226e);};return _0xdc32c0(_0x41d38d),_0x22422f;}[_0x34ded2(0x1dd)](){const _0xe0fa92=_0x34ded2;let _0x2d2281=this[_0xe0fa92(0x214)][_0xe0fa92(0x2cf)]()['records'][this[_0xe0fa92(0x221)]];if(!_0x2d2281)throw Error(_0xe0fa92(0x1d4)+this[_0xe0fa92(0x221)]+_0xe0fa92(0x12a));return _0x2d2281;}[_0x34ded2(0x1b3)](_0x3d844d){const _0x11f545=_0x34ded2;let _0x2fb8d6=this['_table']['getTable']()['fields'][_0x3d844d];if(!_0x2fb8d6||_0x2fb8d6['type']!==l[_0x11f545(0x25a)]['RecordLink'])throw Error(_0x11f545(0x1f0)+_0x3d844d+_0x11f545(0x230));return _0x2fb8d6;}['_getAttachmentField'](_0x211798){const _0x3c8b8c=_0x34ded2;let _0x58ba0f=this[_0x3c8b8c(0x214)][_0x3c8b8c(0x2cf)]()[_0x3c8b8c(0x1c8)][_0x211798];if(!_0x58ba0f||_0x58ba0f[_0x3c8b8c(0x1e4)]!==l[_0x3c8b8c(0x25a)][_0x3c8b8c(0x1a3)])throw Error(_0x3c8b8c(0x1f0)+_0x211798+_0x3c8b8c(0x1b7));return _0x58ba0f;}};I=F=g([h(0x4,l[_0x34ded2(0x153)]),h(0x5,l[_0x34ded2(0x277)])],I);function _0x3bb1(_0x1f1708,_0x306bd8){_0x1f1708=_0x1f1708-0x10b;const _0x638aae=_0x638a();let _0x3bb1da=_0x638aae[_0x1f1708];return _0x3bb1da;}function L(_0x3bcb0d){const _0x2bd50e=_0x34ded2;return!!(_0x3bcb0d&&typeof _0x3bcb0d==_0x2bd50e(0x1fa)&&'id'in _0x3bcb0d&&typeof _0x3bcb0d['id']=='string'&&_0x2bd50e(0x18e)in _0x3bcb0d&&typeof _0x3bcb0d['name']==_0x2bd50e(0x131));}function R(_0x9ee858,_0x947d35,_0x248842){const _0x2ae0fd=_0x34ded2;if(!L(_0x9ee858))throw Error(_0x2ae0fd(0x15c)+_0x248842+_0x2ae0fd(0x245)+_0x947d35+_0x2ae0fd(0x20c));return{..._0x9ee858};}let z=class{constructor(_0x39e350,_0xe1e30a,_0x1ab772,_0x55f79a,_0x24de71,_0x2d073a,_0x136406){const _0xbf6bad=_0x34ded2;this['_base']=_0x39e350,this[_0xbf6bad(0x214)]=_0xe1e30a,this[_0xbf6bad(0x27e)]=_0x1ab772,this[_0xbf6bad(0x15b)]=_0x55f79a,this[_0xbf6bad(0x270)]=_0x24de71,this[_0xbf6bad(0x2b7)]=_0x2d073a,this[_0xbf6bad(0x114)]=_0x136406;}[_0x34ded2(0x1bd)](){return this['_viewId'];}[_0x34ded2(0x204)](){const _0x31aa06=_0x34ded2;let _0x55758e=this['_table'][_0x31aa06(0x1bd)]();return new m(this[_0x31aa06(0x1e9)][_0x31aa06(0x1bd)](),(0x0,c['getBaseViewPermissionObjectId'])(_0x55758e,this[_0x31aa06(0x27e)]),[(0x0,c[_0x31aa06(0x234)])(_0x55758e)],this[_0x31aa06(0x270)],this[_0x31aa06(0x2b7)]);}[_0x34ded2(0x11c)](){const _0x22b218=_0x34ded2;return this[_0x22b218(0x26e)]();}[_0x34ded2(0x23d)](){const _0x365b93=_0x34ded2;return this[_0x365b93(0x26e)]()[_0x365b93(0x18e)];}[_0x34ded2(0x254)](){return this['_getView']()['type'];}[_0x34ded2(0x152)](_0x23932f){const _0x4d08bb=_0x34ded2;return this[_0x4d08bb(0x270)][_0x4d08bb(0x14d)](c['RenameBaseViewCommand']['id'],{'unitId':this[_0x4d08bb(0x1e9)][_0x4d08bb(0x1bd)](),'tableId':this[_0x4d08bb(0x214)][_0x4d08bb(0x1bd)](),'viewId':this[_0x4d08bb(0x27e)],'name':_0x23932f});}[_0x34ded2(0x150)](){const _0x464754=_0x34ded2;let _0x5827a3=this[_0x464754(0x254)](),_0x37a2d4=this[_0x464754(0x26e)]()[_0x464754(0x291)];switch(_0x5827a3){case l[_0x464754(0x250)][_0x464754(0x272)]:return _0x37a2d4;case l[_0x464754(0x250)][_0x464754(0x16f)]:return _0x37a2d4;case l['BaseViewType'][_0x464754(0x243)]:return _0x37a2d4;case l['BaseViewType'][_0x464754(0x177)]:return _0x37a2d4;case l[_0x464754(0x250)]['Gallery']:return _0x37a2d4;default:return _0x37a2d4;}}['updateConfig'](_0x2a1096){const _0x1a73df=_0x34ded2;return this[_0x1a73df(0x270)]['syncExecuteCommand'](c[_0x1a73df(0x156)]['id'],{'unitId':this[_0x1a73df(0x1e9)][_0x1a73df(0x1bd)](),'tableId':this[_0x1a73df(0x214)][_0x1a73df(0x1bd)](),'viewId':this[_0x1a73df(0x27e)],'patch':_0x2a1096});}[_0x34ded2(0x192)](){const _0x2b1bb9=_0x34ded2;var _0x276e9;return l[_0x2b1bb9(0x208)][_0x2b1bb9(0x11a)](((_0x276e9=this[_0x2b1bb9(0x26e)]()[_0x2b1bb9(0x291)]['conditionalColoring'])==null?void 0x0:_0x276e9[_0x2b1bb9(0x223)])??[]);}[_0x34ded2(0x20e)](_0x1d941c){const _0x4cd9ef=_0x34ded2;return this[_0x4cd9ef(0x270)]['syncExecuteCommand'](c[_0x4cd9ef(0x2a0)]['id'],{'unitId':this['_base'][_0x4cd9ef(0x1bd)](),'tableId':this[_0x4cd9ef(0x214)][_0x4cd9ef(0x1bd)](),'viewId':this['_viewId'],'type':c[_0x4cd9ef(0x2ac)][_0x4cd9ef(0x149)],'rules':_0x1d941c});}['addConditionalColorRule'](_0x17a795){const _0x3e8046=_0x34ded2;return this[_0x3e8046(0x270)]['syncExecuteCommand'](c[_0x3e8046(0x2a0)]['id'],{'unitId':this[_0x3e8046(0x1e9)][_0x3e8046(0x1bd)](),'tableId':this[_0x3e8046(0x214)][_0x3e8046(0x1bd)](),'viewId':this[_0x3e8046(0x27e)],'type':c[_0x3e8046(0x2ac)][_0x3e8046(0x207)],'rule':_0x17a795});}[_0x34ded2(0x297)](_0x59ad3e){const _0x4662fb=_0x34ded2;return this[_0x4662fb(0x270)][_0x4662fb(0x14d)](c[_0x4662fb(0x2a0)]['id'],{'unitId':this['_base'][_0x4662fb(0x1bd)](),'tableId':this[_0x4662fb(0x214)][_0x4662fb(0x1bd)](),'viewId':this[_0x4662fb(0x27e)],'type':c['BaseConditionalColorRuleUpdateType'][_0x4662fb(0x173)],'ruleId':_0x59ad3e});}[_0x34ded2(0x19c)](){const _0x120522=_0x34ded2;return this[_0x120522(0x270)][_0x120522(0x14d)](c[_0x120522(0x2a0)]['id'],{'unitId':this[_0x120522(0x1e9)][_0x120522(0x1bd)](),'tableId':this['_table']['getId'](),'viewId':this[_0x120522(0x27e)],'type':c['BaseConditionalColorRuleUpdateType'][_0x120522(0x2ad)]});}[_0x34ded2(0x29c)](){const _0x20bfd3=_0x34ded2;return this[_0x20bfd3(0x26e)]()[_0x20bfd3(0x120)]??null;}[_0x34ded2(0x2bd)](_0x27d87c){const _0x48af00=_0x34ded2;return this[_0x48af00(0x270)][_0x48af00(0x14d)](c[_0x48af00(0x11d)]['id'],{'unitId':this[_0x48af00(0x1e9)][_0x48af00(0x1bd)](),'tableId':this['_table'][_0x48af00(0x1bd)](),'viewId':this[_0x48af00(0x27e)],'filter':_0x27d87c});}[_0x34ded2(0x122)](){const _0x3d383b=_0x34ded2;return this[_0x3d383b(0x26e)]()[_0x3d383b(0x147)]??[];}['setSort'](_0x19b01c){const _0x4e8644=_0x34ded2;return this[_0x4e8644(0x270)][_0x4e8644(0x14d)](c['SetBaseViewSortCommand']['id'],{'unitId':this[_0x4e8644(0x1e9)][_0x4e8644(0x1bd)](),'tableId':this[_0x4e8644(0x214)]['getId'](),'viewId':this[_0x4e8644(0x27e)],'sort':_0x19b01c});}[_0x34ded2(0x219)](){const _0x590150=_0x34ded2;return this[_0x590150(0x26e)]()[_0x590150(0x121)]??[];}[_0x34ded2(0x28a)](_0x1166c8){const _0x15f763=_0x34ded2;return this[_0x15f763(0x270)][_0x15f763(0x14d)](c[_0x15f763(0x130)]['id'],{'unitId':this[_0x15f763(0x1e9)][_0x15f763(0x1bd)](),'tableId':this[_0x15f763(0x214)]['getId'](),'viewId':this[_0x15f763(0x27e)],'group':_0x1166c8});}[_0x34ded2(0x28b)](_0x414f5f){const _0xc45562=_0x34ded2;var _0x12e176;return y(this[_0xc45562(0x214)][_0xc45562(0x2cf)]()[_0xc45562(0x1c8)][_0x414f5f])?((_0x12e176=this[_0xc45562(0x26e)]()['fieldSettings'])==null?void 0x0:_0x12e176[_0x414f5f])??{}:{};}[_0x34ded2(0x15d)](){const _0x56bf6d=_0x34ded2;let _0x471c2f=this['_table'][_0x56bf6d(0x2cf)](),_0x3f0b14=this[_0x56bf6d(0x26e)]();return(_0x3f0b14[_0x56bf6d(0x276)]??_0x471c2f[_0x56bf6d(0x276)])[_0x56bf6d(0x120)](_0x580470=>{const _0x288d8b=_0x56bf6d;var _0x2f0395;let _0x4affbd=_0x471c2f[_0x288d8b(0x1c8)][_0x580470];return y(_0x4affbd)&&!((_0x2f0395=_0x3f0b14[_0x288d8b(0x110)])!=null&&(_0x2f0395=_0x2f0395[_0x580470])!=null&&_0x2f0395[_0x288d8b(0x2a9)]);})[_0x56bf6d(0x10b)](_0x3d1c57=>this[_0x56bf6d(0x15b)][_0x56bf6d(0x2c0)](_,this['_base'],this[_0x56bf6d(0x214)],_0x3d1c57));}[_0x34ded2(0x1d7)](_0x3d7d74,_0x1a05b1){const _0x4c0aaa=_0x34ded2;return y(this[_0x4c0aaa(0x214)][_0x4c0aaa(0x2cf)]()[_0x4c0aaa(0x1c8)][_0x3d7d74])?this[_0x4c0aaa(0x270)][_0x4c0aaa(0x14d)](c['SetBaseViewFieldVisibleCommand']['id'],{'unitId':this[_0x4c0aaa(0x1e9)]['getId'](),'tableId':this[_0x4c0aaa(0x214)][_0x4c0aaa(0x1bd)](),'viewId':this[_0x4c0aaa(0x27e)],'fieldId':_0x3d7d74,'visible':_0x1a05b1}):!0x1;}['setFieldWidth'](_0x2db9a5,_0x381946){const _0xa21cd=_0x34ded2;return y(this[_0xa21cd(0x214)]['getTable']()[_0xa21cd(0x1c8)][_0x2db9a5])?this['_commandService']['syncExecuteCommand'](c[_0xa21cd(0x21f)]['id'],{'unitId':this[_0xa21cd(0x1e9)][_0xa21cd(0x1bd)](),'tableId':this[_0xa21cd(0x214)][_0xa21cd(0x1bd)](),'viewId':this[_0xa21cd(0x27e)],'fieldId':_0x2db9a5,'width':_0x381946}):!0x1;}[_0x34ded2(0x1e5)](_0x49dce9,_0x2dc354){const _0xe7d6a0=_0x34ded2;let _0x5d0535=this['_table']['getTable'](),_0x1e2355=_0x2dc354[_0xe7d6a0(0x268)]??_0x2dc354[_0xe7d6a0(0x233)];return!y(_0x5d0535['fields'][_0x49dce9])||!_0x1e2355||!y(_0x5d0535[_0xe7d6a0(0x1c8)][_0x1e2355])?!0x1:this[_0xe7d6a0(0x270)]['syncExecuteCommand'](c['SetBaseViewFieldOrderCommand']['id'],{'unitId':this[_0xe7d6a0(0x1e9)][_0xe7d6a0(0x1bd)](),'tableId':this[_0xe7d6a0(0x214)]['getId'](),'viewId':this[_0xe7d6a0(0x27e)],'fieldId':_0x49dce9,'target':_0x2dc354});}[_0x34ded2(0x139)](_0x35fe8f){const _0x6d5953=_0x34ded2;return this[_0x6d5953(0x270)]['syncExecuteCommand'](c['MoveBaseViewCommand']['id'],{'unitId':this[_0x6d5953(0x1e9)]['getId'](),'tableId':this[_0x6d5953(0x214)][_0x6d5953(0x1bd)](),'viewId':this[_0x6d5953(0x27e)],'target':_0x35fe8f});}[_0x34ded2(0x2b2)](){const _0x4c96ea=_0x34ded2;return this['_commandService'][_0x4c96ea(0x14d)](c[_0x4c96ea(0x10f)]['id'],{'unitId':this[_0x4c96ea(0x1e9)][_0x4c96ea(0x1bd)](),'tableId':this[_0x4c96ea(0x214)][_0x4c96ea(0x1bd)](),'viewId':this[_0x4c96ea(0x27e)]});}[_0x34ded2(0x10c)](){const _0x5d19a7=_0x34ded2;return this[_0x5d19a7(0x114)][_0x5d19a7(0x10c)](this[_0x5d19a7(0x1e9)][_0x5d19a7(0x2b8)]()[_0x5d19a7(0x2be)](),this[_0x5d19a7(0x214)][_0x5d19a7(0x1bd)](),this['_viewId']);}[_0x34ded2(0x26e)](){const _0x458a25=_0x34ded2;let _0x53ff4c=this[_0x458a25(0x214)][_0x458a25(0x2cf)]()[_0x458a25(0x2a4)][this[_0x458a25(0x27e)]];if(!_0x53ff4c)throw Error(_0x458a25(0x124)+this[_0x458a25(0x27e)]+'\x22\x20does\x20not\x20exist.');return _0x53ff4c;}};z=g([h(0x4,l[_0x34ded2(0x153)]),h(0x5,l[_0x34ded2(0x277)]),h(0x6,c[_0x34ded2(0x271)])],z);let B=class{constructor(_0x18cd6c,_0x1e194f,_0x2568b2,_0x31120a,_0xb5eaf6,_0x3a532f){const _0xd94730=_0x34ded2;this[_0xd94730(0x1e9)]=_0x18cd6c,this[_0xd94730(0x296)]=_0x1e194f,this[_0xd94730(0x15b)]=_0x2568b2,this['_commandService']=_0x31120a,this['_permissionService']=_0xb5eaf6,this[_0xd94730(0x114)]=_0x3a532f;}['getBase'](){const _0x3fa105=_0x34ded2;return this[_0x3fa105(0x1e9)][_0x3fa105(0x2b8)]();}[_0x34ded2(0x2cf)](){const _0x36f935=_0x34ded2;return this[_0x36f935(0x19d)]();}['getId'](){const _0xc6b2f8=_0x34ded2;return this[_0xc6b2f8(0x296)];}[_0x34ded2(0x204)](){const _0x2570c2=_0x34ded2;return new m(this['getBase']()['getUnitId'](),(0x0,c[_0x2570c2(0x234)])(this[_0x2570c2(0x296)]),[],this[_0x2570c2(0x270)],this[_0x2570c2(0x2b7)]);}[_0x34ded2(0x12d)](){const _0x2267e0=_0x34ded2;return(0x0,c[_0x2267e0(0x1db)])(this[_0x2267e0(0x19d)]());}[_0x34ded2(0x1f2)](_0xad35f0){const _0x331c3a=_0x34ded2;return this[_0x331c3a(0x270)][_0x331c3a(0x14d)](c[_0x331c3a(0x226)]['id'],{'unitId':this[_0x331c3a(0x1e9)][_0x331c3a(0x1bd)](),'tableId':this[_0x331c3a(0x296)],'fieldId':_0xad35f0});}[_0x34ded2(0x23d)](){const _0x4c153e=_0x34ded2;return this[_0x4c153e(0x19d)]()[_0x4c153e(0x18e)];}['getFormulaName'](){const _0x1e91c2=_0x34ded2;let _0x1bf2f9=this[_0x1e91c2(0x1e9)]['getBase']()[_0x1e91c2(0x2be)]();return(0x0,c[_0x1e91c2(0x11b)])(this[_0x1e91c2(0x19d)](),_0x1bf2f9);}[_0x34ded2(0x152)](_0x3a2e6){const _0x4cf353=_0x34ded2;let _0xdb9a83=(0x0,c['validateBaseTableName'])(this['_base'][_0x4cf353(0x2b8)]()[_0x4cf353(0x2be)](),_0x3a2e6,this[_0x4cf353(0x296)]);if(!_0xdb9a83[_0x4cf353(0x278)])throw Error(_0x4cf353(0x1df)+_0x3a2e6+_0x4cf353(0x225)+c[_0x4cf353(0x29f)]+'\x20'+_0xdb9a83[_0x4cf353(0x224)]);return this[_0x4cf353(0x270)][_0x4cf353(0x14d)](c['RenameBaseTableCommand']['id'],{'unitId':this['_base'][_0x4cf353(0x1bd)](),'tableId':this['_tableId'],'name':_0x3a2e6});}[_0x34ded2(0x285)](_0x4f10d3,_0xbac789){const _0x280c3f=_0x34ded2;let _0xeaa5bd=this['_base']['getBase']()['getSnapshot'](),_0x42fc43=this['_getTable']();if(_0xbac789){let _0x1cd26c=this[_0x280c3f(0x114)]['getProjection'](_0xeaa5bd,this[_0x280c3f(0x296)],_0xbac789),_0x12d9f2=_0x42fc43[_0x280c3f(0x2a4)][_0xbac789],_0x4240ed=_0x4f10d3[_0x280c3f(0x24d)]??J(_0x42fc43,_0x12d9f2,_0x1cd26c),_0x29d76e=_0x280c3f(0x256)in _0x1cd26c&&Array['isArray'](_0x1cd26c[_0x280c3f(0x256)])?_0x1cd26c[_0x280c3f(0x256)]:[];return(0x0,c['searchBaseTable'])({..._0x4f10d3,'table':_0x42fc43,'fieldIds':_0x4240ed,'rows':_0x29d76e});}let _0x5bbf4f=(_0x42fc43[_0x280c3f(0x146)]?_0x42fc43[_0x280c3f(0x146)]['map'](_0x1b607d=>_0x42fc43[_0x280c3f(0x1d0)][_0x1b607d]):Object[_0x280c3f(0x241)](_0x42fc43['records'])[_0x280c3f(0x147)]((_0x4b87c7,_0xb0ca6e)=>_0x4b87c7['orderKey']['localeCompare'](_0xb0ca6e[_0x280c3f(0x2a6)])))[_0x280c3f(0x120)](_0x1b0e30=>_0x1b0e30)['map'](_0xf6ae39=>({'recordId':_0xf6ae39['id'],'values':_0xf6ae39[_0x280c3f(0x241)]})),_0x3dad24=_0x4f10d3[_0x280c3f(0x24d)]??_0x42fc43[_0x280c3f(0x276)]['filter'](_0x45292b=>y(_0x42fc43[_0x280c3f(0x1c8)][_0x45292b]));return(0x0,c[_0x280c3f(0x21a)])({..._0x4f10d3,'table':_0x42fc43,'fieldIds':_0x3dad24,'rows':_0x5bbf4f});}[_0x34ded2(0x14a)](){const _0x1aaf59=_0x34ded2;return this[_0x1aaf59(0x19d)]()[_0x1aaf59(0x112)];}[_0x34ded2(0x118)](){const _0x294d7e=_0x34ded2;let _0xf0b53b=this[_0x294d7e(0x19d)]();return _0xf0b53b[_0x294d7e(0x276)]['map'](_0x4a7066=>_0xf0b53b[_0x294d7e(0x1c8)][_0x4a7066])[_0x294d7e(0x120)](y)['map'](_0x2fd857=>this['_injector'][_0x294d7e(0x2c0)](_,this[_0x294d7e(0x1e9)],this,_0x2fd857['id']));}[_0x34ded2(0x2c7)](_0x130472){const _0x47e4e5=_0x34ded2;let _0x1151d1=this[_0x47e4e5(0x19d)]()[_0x47e4e5(0x1c8)][_0x130472];return y(_0x1151d1)?this[_0x47e4e5(0x15b)]['createInstance'](_,this[_0x47e4e5(0x1e9)],this,_0x1151d1['id']):null;}[_0x34ded2(0x2b0)](_0x3e83a3){const _0x43f52d=_0x34ded2;let _0x430ca8=this[_0x43f52d(0x19d)]()['fields'],_0x39fe35=Object[_0x43f52d(0x241)](_0x430ca8)[_0x43f52d(0x1b8)](_0x3b014e=>y(_0x3b014e)&&_0x3b014e['name']===_0x3e83a3);return _0x39fe35?this[_0x43f52d(0x15b)][_0x43f52d(0x2c0)](_,this['_base'],this,_0x39fe35['id']):null;}['getPrimaryField'](){const _0x22057c=_0x34ded2;let _0x96f837=this[_0x22057c(0x19d)]()['primaryFieldId'];return this[_0x22057c(0x15b)][_0x22057c(0x2c0)](_,this[_0x22057c(0x1e9)],this,_0x96f837);}[_0x34ded2(0x1ee)](_0x167e4c,_0x545bc6,_0x2f15e7){const _0x481251=_0x34ded2;var _0x42c022,_0x2b9f2c;if(!Object[_0x481251(0x241)](l[_0x481251(0x25a)])[_0x481251(0x18a)](_0x1ca533=>_0x1ca533===_0x545bc6))throw Error(_0x481251(0x16e)+String(_0x545bc6)+'\x22.');if(_0x545bc6===l[_0x481251(0x25a)][_0x481251(0x168)]&&this[_0x481251(0x175)](_0x167e4c,_0x2f15e7),_0x545bc6===l[_0x481251(0x25a)][_0x481251(0x1bf)]&&(typeof(_0x2f15e7==null||(_0x42c022=_0x2f15e7['field'])==null||(_0x42c022=_0x42c022[_0x481251(0x291)])==null?void 0x0:_0x42c022[_0x481251(0x218)])!=_0x481251(0x131)||typeof _0x2f15e7['field'][_0x481251(0x291)][_0x481251(0x294)]!=_0x481251(0x1e3)))throw Error(_0x481251(0x1ed));let _0x217d2f={..._0x2f15e7==null?void 0x0:_0x2f15e7['field'],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x167e4c,'type':_0x545bc6,'config':(_0x2f15e7==null||(_0x2b9f2c=_0x2f15e7[_0x481251(0x1a9)])==null?void 0x0:_0x2b9f2c[_0x481251(0x291)])??{}};if(!this[_0x481251(0x270)]['syncExecuteCommand'](c[_0x481251(0x232)]['id'],{'unitId':this[_0x481251(0x1e9)][_0x481251(0x1bd)](),'tableId':this['_tableId'],'field':_0x217d2f,'index':_0x2f15e7==null?void 0x0:_0x2f15e7[_0x481251(0x1f1)]}))throw Error(_0x481251(0x10e)+_0x167e4c+'\x22');return this[_0x481251(0x15b)][_0x481251(0x2c0)](_,this['_base'],this,_0x217d2f['id']);}[_0x34ded2(0x175)](_0x2648e9,_0x430744){const _0x5328d0=_0x34ded2;var _0x150f1f;if(!_0x430744||!(_0x5328d0(0x133)in _0x430744)||!Array[_0x5328d0(0x125)](_0x430744['externalReferences']))throw Error(_0x5328d0(0x2a7));let _0x35cd13=this[_0x5328d0(0x270)][_0x5328d0(0x14d)](c[_0x5328d0(0x199)]['id'],{'unitId':this[_0x5328d0(0x1e9)][_0x5328d0(0x1bd)](),'tableId':this['_tableId'],'formula':String(((_0x150f1f=_0x430744['field'])==null||(_0x150f1f=_0x150f1f[_0x5328d0(0x291)])==null?void 0x0:_0x150f1f['formula'])??'')});if(!_0x35cd13[_0x5328d0(0x278)])throw Error(_0x35cd13[_0x5328d0(0x224)]??_0x5328d0(0x158));if(_0x430744[_0x5328d0(0x133)]['length']>0x0&&!this[_0x5328d0(0x270)][_0x5328d0(0x14d)](f['UpsertHostExternalReferencesCommand']['id'],{'unitId':this['_base'][_0x5328d0(0x1bd)](),'references':_0x430744[_0x5328d0(0x133)]}))throw Error(_0x5328d0(0x1fb)+_0x2648e9+'\x22');}[_0x34ded2(0x1a4)](){const _0x3ff8fd=_0x34ded2;return this[_0x3ff8fd(0x1b2)]()[_0x3ff8fd(0x10b)](_0x5a22e6=>this['_injector'][_0x3ff8fd(0x2c0)](I,this[_0x3ff8fd(0x1e9)],this,_0x5a22e6,this['_injector']));}['getRecordById'](_0xdcf773){const _0x3e5c99=_0x34ded2;return this['_getTable']()[_0x3e5c99(0x1d0)][_0xdcf773]?this['_injector'][_0x3e5c99(0x2c0)](I,this[_0x3e5c99(0x1e9)],this,_0xdcf773,this[_0x3e5c99(0x15b)]):null;}[_0x34ded2(0x273)](_0x226750={}){const _0x330332=_0x34ded2;let _0x5d8fdd=this['_getTable'](),_0x2b56f1=this[_0x330332(0x1b2)](_0x226750),_0x502246=Math[_0x330332(0x28e)](0x0,_0x226750[_0x330332(0x16b)]??0x0),_0x1db0b0=_0x226750[_0x330332(0x1ae)]==null?null:Math[_0x330332(0x28e)](0x0,_0x226750['limit']),_0x471d46=H(_0x2b56f1[_0x330332(0x10b)](_0xc004fd=>_0x5d8fdd[_0x330332(0x1d0)][_0xc004fd])[_0x330332(0x120)](_0x251794=>W(_0x251794,_0x5d8fdd,_0x226750[_0x330332(0x120)])),_0x5d8fdd,_0x226750[_0x330332(0x147)]);return{'records':V(_0x471d46,_0x226750)[_0x330332(0x10b)](_0x43b5d0=>this[_0x330332(0x15b)][_0x330332(0x2c0)](I,this['_base'],this,_0x43b5d0['id'],this['_injector'])),'total':_0x471d46[_0x330332(0x1b5)],'offset':_0x502246,'limit':_0x1db0b0,'hasMore':_0x1db0b0!=null&&_0x502246+_0x1db0b0<_0x471d46[_0x330332(0x1b5)]};}[_0x34ded2(0x24f)](_0x414e37,_0x2f8a7b='id',_0x31716b){const _0x381298=_0x34ded2;let _0xf9cb97=this[_0x381298(0x19d)](),_0x5578ef=Date[_0x381298(0x275)](),_0x346224={..._0x31716b,'id':(0x0,l[_0x381298(0x284)])(0x6),'values':b(_0xf9cb97,_0x414e37,_0x2f8a7b),'orderKey':(_0x31716b==null?void 0x0:_0x31716b[_0x381298(0x2a6)])||''+_0x5578ef,'createdAt':(_0x31716b==null?void 0x0:_0x31716b[_0x381298(0x20d)])||_0x5578ef,'updatedAt':(_0x31716b==null?void 0x0:_0x31716b[_0x381298(0x191)])||_0x5578ef};if(!this['_commandService'][_0x381298(0x14d)](c[_0x381298(0x190)]['id'],{'unitId':this[_0x381298(0x1e9)][_0x381298(0x1bd)](),'tableId':this[_0x381298(0x296)],'record':_0x346224,'source':c['BaseEventSource'][_0x381298(0x1f9)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x346224['id']+'\x22');return this[_0x381298(0x15b)][_0x381298(0x2c0)](I,this[_0x381298(0x1e9)],this,_0x346224['id'],this[_0x381298(0x15b)]);}[_0x34ded2(0x15a)](_0x1486cd){const _0xcca640=_0x34ded2;if(!_0x1486cd[_0xcca640(0x1b5)])return[];let _0x44c45e=this['_getTable'](),_0x368a6c=Date['now'](),_0x373f87=_0x1486cd[_0xcca640(0x10b)]((_0x1e6505,_0x239ff0)=>{const _0x422705=_0xcca640;var _0x24958e,_0x3b1130,_0x321d91;return{..._0x1e6505['record'],'id':(0x0,l[_0x422705(0x284)])(0x6),'values':b(_0x44c45e,_0x1e6505[_0x422705(0x241)],_0x1e6505[_0x422705(0x295)]??'id'),'orderKey':((_0x24958e=_0x1e6505[_0x422705(0x2ba)])==null?void 0x0:_0x24958e[_0x422705(0x2a6)])||''+(_0x368a6c+_0x239ff0),'createdAt':((_0x3b1130=_0x1e6505[_0x422705(0x2ba)])==null?void 0x0:_0x3b1130[_0x422705(0x20d)])||_0x368a6c,'updatedAt':((_0x321d91=_0x1e6505[_0x422705(0x2ba)])==null?void 0x0:_0x321d91['updatedAt'])||_0x368a6c};});if(!this[_0xcca640(0x270)]['syncExecuteCommand'](c['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0xcca640(0x1e9)][_0xcca640(0x1bd)](),'tableId':this[_0xcca640(0x296)],'records':_0x373f87,'source':c[_0xcca640(0x1b1)]['Facade']}))throw Error('Failed\x20to\x20add\x20records');return _0x373f87[_0xcca640(0x10b)](_0x44f7ef=>this[_0xcca640(0x15b)]['createInstance'](I,this[_0xcca640(0x1e9)],this,_0x44f7ef['id'],this[_0xcca640(0x15b)]));}[_0x34ded2(0x13d)](_0x259fcc){const _0x4e1dd1=_0x34ded2;return!_0x259fcc['length']||this[_0x4e1dd1(0x270)][_0x4e1dd1(0x14d)](c[_0x4e1dd1(0x126)]['id'],{'unitId':this[_0x4e1dd1(0x1e9)][_0x4e1dd1(0x1bd)](),'tableId':this['_tableId'],'recordIds':_0x259fcc,'source':c['BaseEventSource']['Facade']});}[_0x34ded2(0x193)](_0x1d21f3,_0x549af6,_0x33e176=0x1,_0x22f351=0x1){const _0x36cdb1=_0x34ded2;return this[_0x36cdb1(0x15b)][_0x36cdb1(0x2c0)](A,this[_0x36cdb1(0x1e9)],this,{'startRow':_0x1d21f3,'endRow':_0x1d21f3+_0x33e176-0x1,'startColumn':_0x549af6,'endColumn':_0x549af6+_0x22f351-0x1},this[_0x36cdb1(0x15b)]);}[_0x34ded2(0x187)](){const _0x44413b=_0x34ded2;var _0x3879a7;let _0x4f4bc5=(0x0,c[_0x44413b(0x1c0)])(this['_getTable']()),_0x16d2fd=((_0x3879a7=_0x4f4bc5['recordOrder'])==null?void 0x0:_0x3879a7[_0x44413b(0x1b5)])??0x0,_0x5a71b1=_0x4f4bc5[_0x44413b(0x276)]['filter'](_0x56063d=>y(_0x4f4bc5['fields'][_0x56063d]))[_0x44413b(0x1b5)];return this[_0x44413b(0x193)](0x0,0x0,Math[_0x44413b(0x28e)](_0x16d2fd,0x1),Math[_0x44413b(0x28e)](_0x5a71b1,0x1));}['getViews'](){const _0x40534b=_0x34ded2;let _0x5377df=this['_getTable']();return _0x5377df[_0x40534b(0x2bf)][_0x40534b(0x120)](_0x23fe4f=>_0x5377df[_0x40534b(0x2a4)][_0x23fe4f])[_0x40534b(0x10b)](_0x377d15=>this[_0x40534b(0x15b)][_0x40534b(0x2c0)](z,this['_base'],this,_0x377d15,this[_0x40534b(0x15b)]));}[_0x34ded2(0x1aa)](_0x52b4c6){const _0x4accdf=_0x34ded2;return this[_0x4accdf(0x19d)]()['views'][_0x52b4c6]?this['_injector'][_0x4accdf(0x2c0)](z,this[_0x4accdf(0x1e9)],this,_0x52b4c6,this[_0x4accdf(0x15b)]):null;}[_0x34ded2(0x151)](_0x29285c){const _0x570f3a=_0x34ded2;let _0x42adb3=this['_getTable'](),_0x26c1ab=Object[_0x570f3a(0x241)](_0x42adb3[_0x570f3a(0x2a4)])[_0x570f3a(0x1b8)](_0x332f45=>_0x332f45[_0x570f3a(0x18e)]===_0x29285c);return _0x26c1ab?this[_0x570f3a(0x15b)][_0x570f3a(0x2c0)](z,this[_0x570f3a(0x1e9)],this,_0x26c1ab['id'],this[_0x570f3a(0x15b)]):null;}[_0x34ded2(0x1a6)](_0x348a98,_0x9712e8,_0x531165){const _0x82c7be=_0x34ded2;var _0x15d8a3,_0x546833,_0x1c2ae1,_0x1253de;let _0x415b8f=this['_getTable'](),_0x27d964=(_0x531165==null||(_0x15d8a3=_0x531165[_0x82c7be(0x2c9)])==null?void 0x0:_0x15d8a3[_0x82c7be(0x276)])??_0x415b8f[_0x82c7be(0x276)],_0x332656=[l['BASE_RECORD_ID_FIELD_ID'],..._0x27d964[_0x82c7be(0x120)](_0x4be5cc=>y(_0x415b8f[_0x82c7be(0x1c8)][_0x4be5cc]))],_0x423e65={..._0x531165==null?void 0x0:_0x531165['view'],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x348a98,'type':_0x9712e8,'tableId':this[_0x82c7be(0x296)],'config':(_0x531165==null||(_0x546833=_0x531165[_0x82c7be(0x2c9)])==null?void 0x0:_0x546833[_0x82c7be(0x291)])??{},'fieldOrder':_0x332656,'fieldSettings':{..._0x531165==null||(_0x1c2ae1=_0x531165[_0x82c7be(0x2c9)])==null?void 0x0:_0x1c2ae1[_0x82c7be(0x110)],[l['BASE_RECORD_ID_FIELD_ID']]:{..._0x531165==null||(_0x1253de=_0x531165['view'])==null||(_0x1253de=_0x1253de[_0x82c7be(0x110)])==null?void 0x0:_0x1253de[l[_0x82c7be(0x183)]],'hidden':!0x0}}};if(!this[_0x82c7be(0x270)][_0x82c7be(0x14d)](c[_0x82c7be(0x242)]['id'],{'unitId':this[_0x82c7be(0x1e9)]['getId'](),'tableId':this['_tableId'],'view':_0x423e65,'index':_0x531165==null?void 0x0:_0x531165[_0x82c7be(0x1f1)]}))throw Error(_0x82c7be(0x2c4)+_0x348a98+'\x22');return this[_0x82c7be(0x15b)]['createInstance'](z,this[_0x82c7be(0x1e9)],this,_0x423e65['id'],this[_0x82c7be(0x15b)]);}[_0x34ded2(0x185)](){const _0x35c8c3=_0x34ded2;let _0x45182b=this[_0x35c8c3(0x19d)](),_0x3e8a6f=_0x45182b[_0x35c8c3(0x276)][_0x35c8c3(0x120)](_0x242742=>y(_0x45182b[_0x35c8c3(0x1c8)][_0x242742])),_0x42e9c5=_0x45182b[_0x35c8c3(0x2bf)]['filter'](_0xc06035=>_0x45182b[_0x35c8c3(0x2a4)][_0xc06035]);return{'id':_0x45182b['id'],'name':_0x45182b[_0x35c8c3(0x18e)],'formulaName':this[_0x35c8c3(0x292)](),'primaryFieldId':_0x45182b[_0x35c8c3(0x112)],'fieldIds':_0x3e8a6f,'viewIds':_0x42e9c5,'recordCount':this['_resolveRecordIds']()[_0x35c8c3(0x1b5)],'fields':_0x3e8a6f[_0x35c8c3(0x10b)](_0x2bcc6e=>{const _0x16cf84=_0x35c8c3;let _0x30858f=_0x45182b['fields'][_0x2bcc6e];return{'id':_0x30858f['id'],'name':_0x30858f[_0x16cf84(0x18e)],'type':_0x30858f[_0x16cf84(0x1e4)],'config':_0x30858f[_0x16cf84(0x291)],'readonly':_0x30858f['readonly'],'description':_0x30858f[_0x16cf84(0x279)]};}),'views':_0x42e9c5[_0x35c8c3(0x10b)](_0x26c202=>{const _0x5cea7f=_0x35c8c3;let _0x41f8a8=_0x45182b[_0x5cea7f(0x2a4)][_0x26c202];return{'id':_0x41f8a8['id'],'name':_0x41f8a8[_0x5cea7f(0x18e)],'type':_0x41f8a8[_0x5cea7f(0x1e4)]};})};}[_0x34ded2(0x19d)](){const _0x272723=_0x34ded2;let _0xc2167d=this['_base'][_0x272723(0x2b8)]()[_0x272723(0x2be)]()['tables'][this['_tableId']];if(!_0xc2167d)throw Error('[FTable]:\x20table\x20\x22'+this['_tableId']+_0x272723(0x12a));return _0xc2167d;}[_0x34ded2(0x1b2)](_0x1a394f={}){const _0x3c25cf=_0x34ded2;let _0x5a05ef=this[_0x3c25cf(0x1e9)][_0x3c25cf(0x2b8)]()[_0x3c25cf(0x2be)](),_0x4ef555=this['_getTable']();if(_0x1a394f[_0x3c25cf(0x29b)]){let _0x51c347=this[_0x3c25cf(0x114)][_0x3c25cf(0x10c)](_0x5a05ef,this[_0x3c25cf(0x296)],_0x1a394f[_0x3c25cf(0x29b)]);if(_0x3c25cf(0x256)in _0x51c347&&Array['isArray'](_0x51c347[_0x3c25cf(0x256)]))return _0x51c347['rows'][_0x3c25cf(0x10b)](_0x40538d=>_0x40538d[_0x3c25cf(0x132)]);}return(_0x4ef555['recordOrder']?_0x4ef555[_0x3c25cf(0x146)][_0x3c25cf(0x10b)](_0x1d9c1c=>_0x4ef555[_0x3c25cf(0x1d0)][_0x1d9c1c]):Object[_0x3c25cf(0x241)](_0x4ef555[_0x3c25cf(0x1d0)])[_0x3c25cf(0x147)]((_0x5e3fa7,_0x19ae49)=>_0x5e3fa7[_0x3c25cf(0x2a6)]['localeCompare'](_0x19ae49['orderKey'])))[_0x3c25cf(0x120)](_0xf75095=>_0xf75095)[_0x3c25cf(0x10b)](_0x38096b=>_0x38096b['id']);}};B=g([h(0x3,l[_0x34ded2(0x153)]),h(0x4,l[_0x34ded2(0x277)]),h(0x5,c['IBaseProjectionService'])],B);function V(_0x4e71bb,_0x1b08b1){const _0x1bd806=_0x34ded2;let _0x44f784=Math['max'](0x0,_0x1b08b1[_0x1bd806(0x16b)]??0x0);return _0x1b08b1[_0x1bd806(0x1ae)]==null?_0x4e71bb['slice'](_0x44f784):_0x4e71bb['slice'](_0x44f784,_0x44f784+Math[_0x1bd806(0x28e)](0x0,_0x1b08b1['limit']));}function H(_0x59ce63,_0x1caeeb,_0x4e650=[]){const _0x442301=_0x34ded2;return _0x4e650[_0x442301(0x1b5)]?[..._0x59ce63]['sort']((_0x16dd1c,_0x4f6c03)=>{const _0x1509ca=_0x442301;for(let _0x455818 of _0x4e650){var _0x4b4fa3;let _0x2c97d1=_0x455818[_0x1509ca(0x1cd)]===l[_0x1509ca(0x1ea)][_0x1509ca(0x22a)]?-0x1:0x1,_0x5a3a14=U(_0x16dd1c['values'][_0x455818['fieldId']],_0x4f6c03[_0x1509ca(0x241)][_0x455818[_0x1509ca(0x263)]],(_0x4b4fa3=_0x1caeeb[_0x1509ca(0x1c8)][_0x455818[_0x1509ca(0x263)]])==null?void 0x0:_0x4b4fa3[_0x1509ca(0x1e4)]);if(_0x5a3a14!==0x0)return _0x5a3a14*_0x2c97d1;}return String(_0x16dd1c['orderKey']??_0x16dd1c['id'])[_0x1509ca(0x143)](String(_0x4f6c03[_0x1509ca(0x2a6)]??_0x4f6c03['id']));}):_0x59ce63;}function U(_0x1f1678,_0x2d74b9,_0x2b9ec6){const _0x3b1ee5=_0x34ded2;return _0x1f1678==null&&_0x2d74b9==null?0x0:_0x1f1678==null?-0x1:_0x2d74b9==null?0x1:typeof _0x1f1678=='number'&&typeof _0x2d74b9==_0x3b1ee5(0x261)?_0x1f1678-_0x2d74b9:_0x2b9ec6===l[_0x3b1ee5(0x25a)]['Date']?Number(_0x1f1678)-Number(_0x2d74b9):String(_0x1f1678)[_0x3b1ee5(0x143)](String(_0x2d74b9));}function W(_0xd09f57,_0x2dd63a,_0x34f8eb){const _0x10dfa9=_0x34ded2;var _0x5831e8;if(!_0x34f8eb||!((_0x5831e8=_0x34f8eb[_0x10dfa9(0x28d)])!=null&&_0x5831e8[_0x10dfa9(0x1b5)]))return!0x0;let {conjunction:_0x4e08aa=l[_0x10dfa9(0x1ce)]['OR'],conditions:_0x578b79}=_0x34f8eb;return _0x4e08aa===l[_0x10dfa9(0x1ce)][_0x10dfa9(0x142)]&&_0x578b79[_0x10dfa9(0x1b5)]>0x1?_0x578b79[_0x10dfa9(0x1ba)](_0x3c41a2=>G(_0xd09f57,_0x2dd63a,_0x3c41a2)):_0x578b79[_0x10dfa9(0x18a)](_0x179a59=>G(_0xd09f57,_0x2dd63a,_0x179a59));}function G(_0x478e88,_0x5c75b8,_0x55c008){const _0x5b6763=_0x34ded2;let _0xaf2805=_0x478e88[_0x5b6763(0x241)][_0x55c008['fieldId']],_0x176a89=_0x5c75b8['fields'][_0x55c008[_0x5b6763(0x263)]];if(K(_0x55c008)){let _0x1f1fc6=q(_0x55c008)[_0x5b6763(0x259)](String(_0xaf2805??''));return _0x55c008[_0x5b6763(0x17f)]===_0x5b6763(0x22e)?_0x1f1fc6:!_0x1f1fc6;}return!_0x176a89||(0x0,c['matchesBaseCondition'])(_0xaf2805,_0x55c008['operator'],_0x55c008['value'],_0x176a89);}function K(_0x2d6c47){const _0x4d8991=_0x34ded2;return _0x2d6c47[_0x4d8991(0x17f)]==='matches'||_0x2d6c47[_0x4d8991(0x17f)]===_0x4d8991(0x111);}function q(_0x2cd67e){const _0x9dd657=_0x34ded2;let _0x13871b=String(_0x2cd67e[_0x9dd657(0x141)]??'');if(_0x13871b[_0x9dd657(0x1b5)]>0x200)throw Error(_0x9dd657(0x11e));try{return new RegExp(_0x13871b,_0x2cd67e[_0x9dd657(0x206)]?void 0x0:'i');}catch(_0x44e53a){throw Error(_0x9dd657(0x1cf)+_0x13871b+'.\x20'+(_0x44e53a instanceof Error?_0x44e53a[_0x9dd657(0x13a)]:String(_0x44e53a)));}}function J(_0x37fa32,_0x4178b2,_0x32f155){const _0x364c2b=_0x34ded2;if(_0x32f155[_0x364c2b(0x1e4)]!==_0x364c2b(0x1ef)&&_0x32f155[_0x364c2b(0x1e4)]!==_0x364c2b(0x165)){var _0x53c159;if(_0x32f155[_0x364c2b(0x1e4)]===l[_0x364c2b(0x250)][_0x364c2b(0x16f)]){var _0x168b8b;let _0x572217=[((_0x168b8b=_0x32f155[_0x364c2b(0x1c8)])==null||(_0x168b8b=_0x168b8b[0x0])==null?void 0x0:_0x168b8b['id'])??_0x37fa32[_0x364c2b(0x112)],..._0x32f155[_0x364c2b(0x24c)]??[]];return Array[_0x364c2b(0x1d8)](new Set(_0x572217[_0x364c2b(0x120)](_0x46bd28=>!!_0x37fa32[_0x364c2b(0x1c8)][_0x46bd28])));}if((_0x53c159=_0x32f155[_0x364c2b(0x1c8)])!=null&&_0x53c159[_0x364c2b(0x1b5)])return _0x32f155[_0x364c2b(0x1c8)][_0x364c2b(0x10b)](_0x278f39=>_0x278f39['id'])[_0x364c2b(0x120)](_0x447b9b=>{const _0x4f2415=_0x364c2b;var _0x22d90e;return!(!_0x37fa32[_0x4f2415(0x1c8)][_0x447b9b]||_0x4178b2!=null&&(_0x22d90e=_0x4178b2[_0x4f2415(0x110)])!=null&&(_0x22d90e=_0x22d90e[_0x447b9b])!=null&&_0x22d90e[_0x4f2415(0x2a9)]);});}return _0x37fa32[_0x364c2b(0x276)][_0x364c2b(0x120)](_0x1ae165=>{const _0x3ad80d=_0x364c2b;var _0x4dd3f2;return!(!_0x37fa32[_0x3ad80d(0x1c8)][_0x1ae165]||_0x4178b2!=null&&(_0x4dd3f2=_0x4178b2['fieldSettings'])!=null&&(_0x4dd3f2=_0x4dd3f2[_0x1ae165])!=null&&_0x4dd3f2[_0x3ad80d(0x2a9)]);});}let Y=class extends u[_0x34ded2(0x288)]{constructor(_0x1221c0,_0x416a10,_0x2f8e6f,_0x1c057e,_0x27ef39){const _0x4bef5e=_0x34ded2;super(),this['_base']=_0x1221c0,this[_0x4bef5e(0x15b)]=_0x416a10,this[_0x4bef5e(0x15e)]=_0x2f8e6f,this['_commandService']=_0x1c057e,this[_0x4bef5e(0x2b7)]=_0x27ef39;}[_0x34ded2(0x2b8)](){return this['_base'];}[_0x34ded2(0x1bd)](){return this['_base']['getUnitId']();}[_0x34ded2(0x204)](){const _0x1a86ee=_0x34ded2;return new p(this[_0x1a86ee(0x1bd)](),this[_0x1a86ee(0x270)],this['_permissionService']);}['save'](){const _0x56b9e6=_0x34ded2;return this[_0x56b9e6(0x15e)][_0x56b9e6(0x201)](this['getId']())??l[_0x56b9e6(0x208)][_0x56b9e6(0x11a)](this[_0x56b9e6(0x1e9)][_0x56b9e6(0x2be)]());}[_0x34ded2(0x23d)](){const _0x581e30=_0x34ded2;return this['_base']['getSnapshot']()[_0x581e30(0x18e)];}[_0x34ded2(0x152)](_0x37b6a8){const _0x4322ff=_0x34ded2;this['_commandService'][_0x4322ff(0x14d)](c[_0x4322ff(0x215)]['id'],{'unitId':this['getId'](),'name':_0x37b6a8});}[_0x34ded2(0x154)](){const _0xbc33e6=_0x34ded2;let _0x445aff=this[_0xbc33e6(0x1e9)][_0xbc33e6(0x2be)]();return _0x445aff[_0xbc33e6(0x128)]['map'](_0x49f52b=>_0x445aff[_0xbc33e6(0x19b)][_0x49f52b])['filter'](_0x60f45a=>_0x60f45a)[_0xbc33e6(0x10b)](_0x3b7e00=>this[_0xbc33e6(0x15b)][_0xbc33e6(0x2c0)](B,this,_0x3b7e00['id'],this[_0xbc33e6(0x15b)]));}[_0x34ded2(0x222)](_0x41a26c){const _0x56a5e7=_0x34ded2;let _0x4fffb9=this[_0x56a5e7(0x1e9)][_0x56a5e7(0x2be)]()['tables'][_0x41a26c];return _0x4fffb9?this['_injector'][_0x56a5e7(0x2c0)](B,this,_0x4fffb9['id'],this['_injector']):null;}[_0x34ded2(0x29e)](_0x175290){const _0x5d66be=_0x34ded2;let _0x2ff10b=this[_0x5d66be(0x1e9)][_0x5d66be(0x2be)](),_0x4029cf=Object[_0x5d66be(0x241)](_0x2ff10b[_0x5d66be(0x19b)])[_0x5d66be(0x1b8)](_0x1a9b59=>_0x1a9b59[_0x5d66be(0x18e)]===_0x175290);return _0x4029cf?this[_0x5d66be(0x15b)][_0x5d66be(0x2c0)](B,this,_0x4029cf['id'],this[_0x5d66be(0x15b)]):null;}['insertTable'](_0x16169c,_0x213977){const _0x30c0da=_0x34ded2;let _0x9143b3=(0x0,l[_0x30c0da(0x2a5)])({'id':(0x0,l[_0x30c0da(0x284)])(),'name':_0x16169c,..._0x213977==null?void 0x0:_0x213977[_0x30c0da(0x26f)],'primaryFieldName':_0x213977==null?void 0x0:_0x213977[_0x30c0da(0x12f)]}),_0x577072=l[_0x30c0da(0x208)]['commonExtend'](_0x9143b3,(_0x213977==null?void 0x0:_0x213977[_0x30c0da(0x26f)])??{}),_0x22362c=(0x0,c[_0x30c0da(0x21b)])(this[_0x30c0da(0x1e9)]['getSnapshot'](),_0x577072[_0x30c0da(0x18e)]);if(!_0x22362c[_0x30c0da(0x278)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x577072[_0x30c0da(0x18e)]+_0x30c0da(0x225)+c[_0x30c0da(0x29f)]+'\x20'+_0x22362c[_0x30c0da(0x224)]);if(!this['_commandService'][_0x30c0da(0x14d)](c[_0x30c0da(0x1a8)]['id'],{'unitId':this[_0x30c0da(0x1e9)][_0x30c0da(0x116)](),'table':_0x577072,'index':_0x213977==null?void 0x0:_0x213977[_0x30c0da(0x1f1)]}))throw Error(_0x30c0da(0x282)+_0x16169c+'\x22.');return this['_injector'][_0x30c0da(0x2c0)](B,this,_0x577072['id'],this['_injector']);}[_0x34ded2(0x1d5)](_0x1e4c88){const _0x4a93bf=_0x34ded2;let _0x2eab38=typeof _0x1e4c88==_0x4a93bf(0x131)?_0x1e4c88:_0x1e4c88[_0x4a93bf(0x1bd)]();if(!this['_commandService'][_0x4a93bf(0x14d)](c[_0x4a93bf(0x14e)]['id'],{'unitId':this['_base'][_0x4a93bf(0x116)](),'tableId':_0x2eab38}))throw Error(_0x4a93bf(0x144)+_0x2eab38+'\x22.');return!0x0;}[_0x34ded2(0x194)](_0x21c87c,_0x12ebf0){const _0x1842b0=_0x34ded2;let _0x442a15=this[_0x1842b0(0x1e9)][_0x1842b0(0x2be)](),_0x4268a9=typeof _0x21c87c==_0x1842b0(0x131)?_0x21c87c:_0x21c87c[_0x1842b0(0x1bd)](),_0x4fe13f=_0x442a15[_0x1842b0(0x19b)][_0x4268a9];if(!_0x4fe13f)throw Error(_0x1842b0(0x2bb)+_0x4268a9+_0x1842b0(0x12a));let _0x14d1f5=_0x442a15['tableOrder'][_0x1842b0(0x195)](_0x4268a9)+0x1,_0x33ba24=(0x0,l[_0x1842b0(0x284)])(),_0x2ed273=(0x0,c[_0x1842b0(0x1dc)])(_0x4fe13f,{'id':_0x33ba24,'name':(0x0,c['createUniqueBaseTableName'])(_0x442a15,_0x4fe13f[_0x1842b0(0x18e)]+'\x20Copy'),'includeRecords':(_0x12ebf0==null?void 0x0:_0x12ebf0[_0x1842b0(0x27a)])??!0x1,'regenerateViewIds':(_0x12ebf0==null?void 0x0:_0x12ebf0[_0x1842b0(0x1e2)])??!0x1});if(!this[_0x1842b0(0x270)][_0x1842b0(0x14d)](c[_0x1842b0(0x1a8)]['id'],{'unitId':this[_0x1842b0(0x1e9)][_0x1842b0(0x116)](),'table':_0x2ed273,'index':_0x14d1f5}))throw Error(_0x1842b0(0x1d3)+_0x4268a9+'\x22.');return this[_0x1842b0(0x15b)][_0x1842b0(0x2c0)](B,this,_0x2ed273['id'],this[_0x1842b0(0x15b)]);}['getSchema'](){const _0x530fbc=_0x34ded2;let _0x2ba1de=this[_0x530fbc(0x1e9)][_0x530fbc(0x2be)]();return{'id':_0x2ba1de['id'],'name':_0x2ba1de['name'],'tables':this[_0x530fbc(0x154)]()['map'](_0x55b45f=>_0x55b45f[_0x530fbc(0x185)]())};}};Y=g([h(0x1,(0x0,l[_0x34ded2(0x10d)])(l['Injector'])),h(0x2,l[_0x34ded2(0x117)]),h(0x3,l[_0x34ded2(0x153)]),h(0x4,l['IPermissionService'])],Y);var X=class extends u[_0x34ded2(0x22f)]{[_0x34ded2(0x123)](){const _0x3e309e=_0x34ded2;this[_0x3e309e(0x161)](),this[_0x3e309e(0x217)]();}[_0x34ded2(0x115)](_0x4bb5e1={},_0x4bca35){const _0x400ae1=_0x34ded2;let _0x2c6e37=this[_0x400ae1(0x19f)][_0x400ae1(0x1fc)](l[_0x400ae1(0x178)][_0x400ae1(0x228)],_0x4bb5e1,_0x4bca35);return this[_0x400ae1(0x15b)][_0x400ae1(0x2c0)](Y,_0x2c6e37);}['getActiveBase'](){const _0x436394=_0x34ded2;let _0x3dffae=this[_0x436394(0x19f)][_0x436394(0x11f)](l[_0x436394(0x178)][_0x436394(0x228)]);return _0x3dffae?this[_0x436394(0x15b)][_0x436394(0x2c0)](Y,_0x3dffae):null;}[_0x34ded2(0x2b8)](_0x2f1fc2){const _0x1d1510=_0x34ded2;let _0x5b5fdb=this[_0x1d1510(0x19f)][_0x1d1510(0x26a)](_0x2f1fc2,l[_0x1d1510(0x178)][_0x1d1510(0x228)]);return _0x5b5fdb?this[_0x1d1510(0x15b)][_0x1d1510(0x2c0)](Y,_0x5b5fdb):null;}[_0x34ded2(0x262)](){const _0x8625ee=_0x34ded2;return this[_0x8625ee(0x19f)]['getAllUnitsForType'](l[_0x8625ee(0x178)][_0x8625ee(0x228)])[_0x8625ee(0x10b)](_0x35ce65=>this[_0x8625ee(0x15b)]['createInstance'](Y,_0x35ce65));}[_0x34ded2(0x217)](){const _0x4b0e72=_0x34ded2;this[_0x4b0e72(0x17a)](this['registerEventHandler'](this[_0x4b0e72(0x14f)]['BaseHierarchyChanged'],()=>this['_commandService'][_0x4b0e72(0x196)]((_0x405374,_0x50b8d3)=>{const _0x251edc=_0x4b0e72;var _0x33d75d;if(!Z(_0x405374,c[_0x251edc(0x2c1)]))return;let _0x2012be=_0x405374['params'];if(!((_0x33d75d=_0x2012be[_0x251edc(0x170)])!=null&&_0x33d75d[_0x251edc(0x1b5)]))return;let _0x251c16=this['getBase'](_0x2012be[_0x251edc(0x2c8)]),_0x256486=_0x251c16==null?void 0x0:_0x251c16[_0x251edc(0x222)](_0x2012be[_0x251edc(0x170)][0x0][_0x251edc(0x1da)]);if(!_0x251c16||!_0x256486)return;let _0x537571={'base':_0x251c16,'table':_0x256486,'changes':_0x2012be['hierarchyChanges'],'source':_0x50b8d3!=null&&_0x50b8d3['fromCollab']?c[_0x251edc(0x1b1)][_0x251edc(0x1c2)]:_0x2012be[_0x251edc(0x27f)]??c['BaseEventSource']['UI']};this[_0x251edc(0x15f)](this[_0x251edc(0x14f)][_0x251edc(0x2aa)],_0x537571);}))),this[_0x4b0e72(0x17a)](this[_0x4b0e72(0x1bb)](this['Event'][_0x4b0e72(0x23b)],()=>this[_0x4b0e72(0x270)][_0x4b0e72(0x196)](_0x1c4fef=>{const _0x2f59ce=_0x4b0e72;if(_0x1c4fef['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0xfa52ab,table:_0x4045c1,index:_0x4eb829}=_0x1c4fef[_0x2f59ce(0x189)],_0x38779c=this[_0x2f59ce(0x2b8)](_0xfa52ab);if(!_0x38779c)return;let _0x286bb9={'base':_0x38779c,'table':_0x4045c1,'index':_0x4eb829};this[_0x2f59ce(0x15f)](this[_0x2f59ce(0x14f)]['BaseTableCreated'],_0x286bb9);}))),this[_0x4b0e72(0x17a)](this[_0x4b0e72(0x1bb)](this[_0x4b0e72(0x14f)]['BaseTableFieldCreated'],()=>this[_0x4b0e72(0x270)][_0x4b0e72(0x196)](_0x546f29=>{const _0x222d32=_0x4b0e72;if(_0x546f29['id']!==c[_0x222d32(0x232)]['id'])return;let {unitId:_0xe3eac3,tableId:_0x503bb4,field:_0x13cc81,index:_0x559e2a,viewIndexes:_0x2fed95}=_0x546f29[_0x222d32(0x189)],_0x35bd6c=this[_0x222d32(0x2b8)](_0xe3eac3);if(!_0x35bd6c)return;let _0x9f2ddd=_0x35bd6c[_0x222d32(0x222)](_0x503bb4);if(!_0x9f2ddd)return;let _0x16787d={'base':_0x35bd6c,'table':_0x9f2ddd,'field':_0x13cc81,'index':_0x559e2a,'viewIndexes':_0x2fed95};this[_0x222d32(0x15f)](this['Event'][_0x222d32(0x1a1)],_0x16787d);}))),this[_0x4b0e72(0x17a)](this[_0x4b0e72(0x1bb)](this[_0x4b0e72(0x14f)]['BaseTableRecordCreated'],()=>this[_0x4b0e72(0x270)][_0x4b0e72(0x196)](_0x50a492=>{const _0x322710=_0x4b0e72;if(_0x50a492['id']!==c['CreateBaseRecordCommand']['id']&&_0x50a492['id']!==c['BatchCreateBaseRecordsCommand']['id'])return;let _0x5411e1=_0x50a492[_0x322710(0x189)],{unitId:_0x3a1545,tableId:_0x12d2ad}=_0x5411e1,_0x23229e=_0x5411e1[_0x322710(0x1d0)]??[_0x5411e1[_0x322710(0x2ba)]],_0x229922=this[_0x322710(0x2b8)](_0x3a1545);if(!_0x229922)return;let _0x4f057c=_0x229922['getTableById'](_0x12d2ad);if(!_0x4f057c)return;let _0x4cd0ee={'base':_0x229922,'table':_0x4f057c,'records':_0x23229e};this[_0x322710(0x15f)](this[_0x322710(0x14f)][_0x322710(0x1d9)],_0x4cd0ee);}))),this[_0x4b0e72(0x17a)](this['registerEventHandler'](this[_0x4b0e72(0x14f)]['BaseTableViewCreated'],()=>this[_0x4b0e72(0x270)][_0x4b0e72(0x196)](_0x537b36=>{const _0x890794=_0x4b0e72;if(_0x537b36['id']!==c[_0x890794(0x242)]['id'])return;let {unitId:_0x170f11,tableId:_0x5300bf,view:_0x46fa2a,index:_0x2b1d59}=_0x537b36[_0x890794(0x189)],_0x472572=this[_0x890794(0x2b8)](_0x170f11);if(!_0x472572)return;let _0x3b0132=_0x472572[_0x890794(0x222)](_0x5300bf);if(!_0x3b0132)return;let _0x3b9001={'base':_0x472572,'table':_0x3b0132,'view':_0x46fa2a,'index':_0x2b1d59};this[_0x890794(0x15f)](this['Event'][_0x890794(0x23f)],_0x3b9001);}))),this[_0x4b0e72(0x17a)](this[_0x4b0e72(0x1bb)](this[_0x4b0e72(0x14f)][_0x4b0e72(0x293)],()=>this[_0x4b0e72(0x270)][_0x4b0e72(0x196)](_0x30fe1e=>{const _0x104965=_0x4b0e72;if(_0x30fe1e['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x49d8a0,tableId:_0x2a105e,recordId:_0x4ea227,fieldId:_0x15b337,value:_0x325693}=_0x30fe1e[_0x104965(0x189)],_0x68e2c2=this['getBase'](_0x49d8a0);if(!_0x68e2c2)return;let _0x5e58ff=_0x68e2c2[_0x104965(0x222)](_0x2a105e);if(!_0x5e58ff)return;let _0x4a7dac=_0x5e58ff['getFieldById'](_0x15b337);if(!_0x4a7dac)return;let _0x340e0e=_0x5e58ff[_0x104965(0x166)](_0x4ea227);if(!_0x340e0e)return;let _0xbb9f42={'base':_0x68e2c2,'table':_0x5e58ff,'field':_0x4a7dac,'record':_0x340e0e,'value':_0x325693};this[_0x104965(0x15f)](this[_0x104965(0x14f)][_0x104965(0x293)],_0xbb9f42);})));}[_0x34ded2(0x161)](){const _0x8bbe30=_0x34ded2;this[_0x8bbe30(0x17a)](this['registerEventHandler'](this[_0x8bbe30(0x14f)][_0x8bbe30(0x2b9)],()=>this[_0x8bbe30(0x270)][_0x8bbe30(0x2ae)](_0x16cb35=>{const _0x300b9a=_0x8bbe30;if(Z(_0x16cb35,c[_0x300b9a(0x25d)])){let {unitId:_0x11f70f,tableId:_0x39ebb4,patches:_0x5a19ee,source:_0x1a8985=c[_0x300b9a(0x1b1)]['UI']}=_0x16cb35['params'],_0x312a30=this['_getHierarchyEventContext'](_0x11f70f,_0x39ebb4);if(!_0x312a30)return;this[_0x300b9a(0x134)](_0x312a30[_0x300b9a(0x27c)],_0x312a30[_0x300b9a(0x26f)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x312a30['table']['getTable'](),_0x5a19ee),_0x1a8985);return;}if(Z(_0x16cb35,c[_0x300b9a(0x209)])){let {unitId:_0x51e791,tableId:_0x3df497,patches:_0x51a0a3,source:_0x2785a1=c['BaseEventSource']['UI']}=_0x16cb35[_0x300b9a(0x189)],_0xe153c2=this[_0x300b9a(0x252)](_0x51e791,_0x3df497);if(!_0xe153c2)return;let _0x331f4a=_0xe153c2['table'][_0x300b9a(0x2cf)]();this[_0x300b9a(0x134)](_0xe153c2[_0x300b9a(0x27c)],_0xe153c2[_0x300b9a(0x26f)],(0x0,c[_0x300b9a(0x1ab)])(_0x331f4a,(0x0,c[_0x300b9a(0x28f)])(_0x331f4a,_0x51a0a3)),_0x2785a1);return;}if(Z(_0x16cb35,c[_0x300b9a(0x190)])){let _0x3d5c04=_0x16cb35[_0x300b9a(0x189)],_0x11566b=this[_0x300b9a(0x252)](_0x3d5c04[_0x300b9a(0x2c8)],_0x3d5c04[_0x300b9a(0x1da)]);if(!_0x11566b)return;this['_fireBeforeHierarchyChange'](_0x11566b[_0x300b9a(0x27c)],_0x11566b['table'],(0x0,c[_0x300b9a(0x280)])(_0x11566b[_0x300b9a(0x26f)][_0x300b9a(0x2cf)](),[_0x3d5c04['record']]),_0x3d5c04[_0x300b9a(0x27f)]??c[_0x300b9a(0x1b1)]['UI']);return;}if(Z(_0x16cb35,c[_0x300b9a(0x200)])){let _0x443a6b=_0x16cb35[_0x300b9a(0x189)],_0x1b5bd6=this['_getHierarchyEventContext'](_0x443a6b['unitId'],_0x443a6b['tableId']);if(!_0x1b5bd6)return;this[_0x300b9a(0x134)](_0x1b5bd6[_0x300b9a(0x27c)],_0x1b5bd6[_0x300b9a(0x26f)],(0x0,c[_0x300b9a(0x280)])(_0x1b5bd6[_0x300b9a(0x26f)]['getTable'](),_0x443a6b['records']),_0x443a6b[_0x300b9a(0x27f)]??c[_0x300b9a(0x1b1)]['UI']);return;}if(Z(_0x16cb35,c[_0x300b9a(0x267)])){let _0x42fe31=_0x16cb35['params'],_0x37f6a0=this[_0x300b9a(0x252)](_0x42fe31[_0x300b9a(0x2c8)],_0x42fe31['tableId']);if(!_0x37f6a0)return;this['_fireBeforeHierarchyChange'](_0x37f6a0[_0x300b9a(0x27c)],_0x37f6a0['table'],(0x0,c[_0x300b9a(0x280)])(_0x37f6a0[_0x300b9a(0x26f)]['getTable'](),[_0x42fe31[_0x300b9a(0x2ba)]]),_0x42fe31['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x16cb35,c['MoveBaseHierarchyRecordCommand'])){let _0x3a8bb=_0x16cb35[_0x300b9a(0x189)],_0x78f053=this[_0x300b9a(0x252)](_0x3a8bb[_0x300b9a(0x2c8)],_0x3a8bb[_0x300b9a(0x1da)]);if(!_0x78f053)return;let _0x48edb8=_0x78f053['table'][_0x300b9a(0x2cf)](),_0x170ab2=_0x3a8bb[_0x300b9a(0x263)]??(0x0,c[_0x300b9a(0x1db)])(_0x48edb8),_0x6a3dce=(0x0,c['buildBaseHierarchyIndex'])(_0x48edb8,_0x170ab2)[_0x300b9a(0x2c3)][_0x300b9a(0x1b6)](_0x3a8bb['recordId'])??null;this[_0x300b9a(0x134)](_0x78f053[_0x300b9a(0x27c)],_0x78f053[_0x300b9a(0x26f)],[{'tableId':_0x3a8bb[_0x300b9a(0x1da)],'fieldId':_0x170ab2,'recordId':_0x3a8bb[_0x300b9a(0x132)],'oldParentRecordId':_0x6a3dce,'parentRecordId':_0x3a8bb[_0x300b9a(0x299)]}],_0x3a8bb['source']??c[_0x300b9a(0x1b1)]['UI']);return;}if(Z(_0x16cb35,c[_0x300b9a(0x160)])){let _0x5b5c2=_0x16cb35[_0x300b9a(0x189)],_0x3d1f8a=this[_0x300b9a(0x252)](_0x5b5c2[_0x300b9a(0x2c8)],_0x5b5c2['tableId']);if(!_0x3d1f8a)return;let _0x26a374=_0x5b5c2[_0x300b9a(0x263)]??(0x0,c[_0x300b9a(0x1db)])(_0x3d1f8a[_0x300b9a(0x26f)][_0x300b9a(0x2cf)]());this[_0x300b9a(0x134)](_0x3d1f8a[_0x300b9a(0x27c)],_0x3d1f8a[_0x300b9a(0x26f)],[{'tableId':_0x5b5c2[_0x300b9a(0x1da)],'fieldId':_0x26a374,'recordId':_0x5b5c2[_0x300b9a(0x2ba)]['id'],'oldParentRecordId':null,'parentRecordId':_0x5b5c2[_0x300b9a(0x299)]}],_0x5b5c2[_0x300b9a(0x27f)]??c['BaseEventSource']['UI']);return;}if(Z(_0x16cb35,c['DeleteBaseRecordCommand'])){let _0x4ef035=_0x16cb35[_0x300b9a(0x189)],_0x1fa636=this[_0x300b9a(0x252)](_0x4ef035[_0x300b9a(0x2c8)],_0x4ef035[_0x300b9a(0x1da)]);if(!_0x1fa636)return;this[_0x300b9a(0x134)](_0x1fa636[_0x300b9a(0x27c)],_0x1fa636[_0x300b9a(0x26f)],(0x0,c[_0x300b9a(0x253)])(_0x1fa636['table']['getTable'](),[_0x4ef035[_0x300b9a(0x132)]]),_0x4ef035[_0x300b9a(0x27f)]??c[_0x300b9a(0x1b1)]['UI']);return;}if(Z(_0x16cb35,c[_0x300b9a(0x126)])){let _0x44bc1b=_0x16cb35['params'],_0x23dac4=this[_0x300b9a(0x252)](_0x44bc1b[_0x300b9a(0x2c8)],_0x44bc1b[_0x300b9a(0x1da)]);if(!_0x23dac4)return;this['_fireBeforeHierarchyChange'](_0x23dac4[_0x300b9a(0x27c)],_0x23dac4[_0x300b9a(0x26f)],(0x0,c[_0x300b9a(0x253)])(_0x23dac4['table'][_0x300b9a(0x2cf)](),_0x44bc1b['recordIds']),_0x44bc1b[_0x300b9a(0x27f)]??c[_0x300b9a(0x1b1)]['UI']);return;}if(!Z(_0x16cb35,c[_0x300b9a(0x12b)]))return;let _0x12edb9=_0x16cb35['params'],_0x13d684=this[_0x300b9a(0x252)](_0x12edb9['unitId'],_0x12edb9[_0x300b9a(0x1da)]);if(!_0x13d684)return;let _0x4bf4ae=_0x13d684[_0x300b9a(0x26f)][_0x300b9a(0x2cf)]();if(!(0x0,c['getActiveBaseHierarchyFieldIds'])(_0x4bf4ae)[_0x300b9a(0x162)](_0x12edb9[_0x300b9a(0x263)]))return;let _0xeb2a9a=(0x0,c['buildBaseHierarchyIndex'])(_0x4bf4ae,_0x12edb9[_0x300b9a(0x263)])[_0x300b9a(0x2c3)][_0x300b9a(0x1b6)](_0x12edb9['recordId'])??null,_0x548227=(0x0,c['parseRecordLinkIds'])(_0x12edb9[_0x300b9a(0x141)])[0x0]??null;_0xeb2a9a!==_0x548227&&this['_fireBeforeHierarchyChange'](_0x13d684[_0x300b9a(0x27c)],_0x13d684[_0x300b9a(0x26f)],[{'tableId':_0x12edb9[_0x300b9a(0x1da)],'fieldId':_0x12edb9[_0x300b9a(0x263)],'recordId':_0x12edb9[_0x300b9a(0x132)],'oldParentRecordId':_0xeb2a9a,'parentRecordId':_0x548227}],_0x12edb9['source']??c[_0x300b9a(0x1b1)]['UI']);}))),this['disposeWithMe'](this[_0x8bbe30(0x1bb)](this['Event'][_0x8bbe30(0x286)],()=>this[_0x8bbe30(0x270)]['beforeCommandExecuted'](_0x4a6a07=>{const _0x5069b7=_0x8bbe30;if(_0x4a6a07['id']!==c[_0x5069b7(0x1a8)]['id'])return;let {unitId:_0x2d8745,table:_0x1f0d72,index:_0x32c926}=_0x4a6a07[_0x5069b7(0x189)],_0x5c38ec=this[_0x5069b7(0x2b8)](_0x2d8745);if(!_0x5c38ec)return;let _0x101f71={'base':_0x5c38ec,'table':_0x1f0d72,'index':_0x32c926};if(this['fireEvent'](this[_0x5069b7(0x14f)][_0x5069b7(0x286)],_0x101f71),_0x101f71[_0x5069b7(0x281)])throw new l['CanceledError']();}))),this[_0x8bbe30(0x17a)](this[_0x8bbe30(0x1bb)](this[_0x8bbe30(0x14f)]['BeforeBaseTableFieldCreate'],()=>this['_commandService']['beforeCommandExecuted'](_0x1b465d=>{const _0x3a1ea6=_0x8bbe30;if(_0x1b465d['id']!==c['CreateBaseFieldCommand']['id'])return;let {unitId:_0x2c7e8b,tableId:_0x9cfc84,field:_0x378547,index:_0x138cea,viewIndexes:_0x2149dd}=_0x1b465d[_0x3a1ea6(0x189)],_0x3baea1=this['getBase'](_0x2c7e8b);if(!_0x3baea1)return;let _0x26f8e1=_0x3baea1[_0x3a1ea6(0x222)](_0x9cfc84);if(!_0x26f8e1)return;let _0x9b81e={'base':_0x3baea1,'table':_0x26f8e1,'field':_0x378547,'index':_0x138cea,'viewIndexes':_0x2149dd};if(this[_0x3a1ea6(0x15f)](this[_0x3a1ea6(0x14f)][_0x3a1ea6(0x213)],_0x9b81e),_0x9b81e[_0x3a1ea6(0x281)])throw new l['CanceledError']();}))),this['disposeWithMe'](this[_0x8bbe30(0x1bb)](this[_0x8bbe30(0x14f)][_0x8bbe30(0x231)],()=>this[_0x8bbe30(0x270)][_0x8bbe30(0x2ae)](_0x5304b4=>{const _0x3e45ad=_0x8bbe30;if(_0x5304b4['id']!==c[_0x3e45ad(0x190)]['id']&&_0x5304b4['id']!==c[_0x3e45ad(0x200)]['id'])return;let _0x50988b=_0x5304b4[_0x3e45ad(0x189)],{unitId:_0x56f851,tableId:_0xf801bc}=_0x50988b,_0x247e5b=_0x50988b[_0x3e45ad(0x1d0)]??[_0x50988b[_0x3e45ad(0x2ba)]],_0x282995=this['getBase'](_0x56f851);if(!_0x282995)return;let _0xeded5e=_0x282995[_0x3e45ad(0x222)](_0xf801bc);if(!_0xeded5e)return;let _0x36514d={'base':_0x282995,'table':_0xeded5e,'records':_0x247e5b};if(this[_0x3e45ad(0x15f)](this[_0x3e45ad(0x14f)][_0x3e45ad(0x231)],_0x36514d),_0x36514d[_0x3e45ad(0x281)])throw new l[(_0x3e45ad(0x289))]();}))),this[_0x8bbe30(0x17a)](this[_0x8bbe30(0x1bb)](this[_0x8bbe30(0x14f)]['BeforeBaseTableViewCreate'],()=>this['_commandService'][_0x8bbe30(0x2ae)](_0x3d268c=>{const _0x28df63=_0x8bbe30;if(_0x3d268c['id']!==c[_0x28df63(0x242)]['id'])return;let {unitId:_0x13a72d,tableId:_0x5819a4,view:_0x3da413,index:_0x279b4b}=_0x3d268c['params'],_0x39b7ee=this['getBase'](_0x13a72d);if(!_0x39b7ee)return;let _0x42c368=_0x39b7ee[_0x28df63(0x222)](_0x5819a4);if(!_0x42c368)return;let _0x1d7498={'base':_0x39b7ee,'table':_0x42c368,'view':_0x3da413,'index':_0x279b4b};if(this[_0x28df63(0x15f)](this[_0x28df63(0x14f)]['BeforeBaseTableViewCreate'],_0x1d7498),_0x1d7498[_0x28df63(0x281)])throw new l['CanceledError']();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x8bbe30(0x1cc)],()=>this[_0x8bbe30(0x270)]['beforeCommandExecuted'](_0x5da498=>{const _0x31b487=_0x8bbe30;if(_0x5da498['id']!==c[_0x31b487(0x12b)]['id'])return;let {unitId:_0x64ee9d,tableId:_0x32fcf3,recordId:_0x34862b,fieldId:_0x1fb16d,value:_0x471278}=_0x5da498['params'],_0x4c86fa=this['getBase'](_0x64ee9d);if(!_0x4c86fa)return;let _0x5a9c18=_0x4c86fa['getTableById'](_0x32fcf3);if(!_0x5a9c18)return;let _0x5b6aba=_0x5a9c18['getFieldById'](_0x1fb16d);if(!_0x5b6aba)return;let _0x29c058=_0x5a9c18['getRecordById'](_0x34862b);if(!_0x29c058)return;let _0x4d9336={'base':_0x4c86fa,'table':_0x5a9c18,'field':_0x5b6aba,'record':_0x29c058,'value':_0x471278};if(this[_0x31b487(0x15f)](this['Event'][_0x31b487(0x1cc)],_0x4d9336),_0x4d9336[_0x31b487(0x281)])throw new l['CanceledError']();})));}[_0x34ded2(0x252)](_0x3212d1,_0x1cccd0){const _0x5a62f2=_0x34ded2;let _0x5abf6d=this[_0x5a62f2(0x2b8)](_0x3212d1),_0x56952d=_0x5abf6d==null?void 0x0:_0x5abf6d['getTableById'](_0x1cccd0);return _0x5abf6d&&_0x56952d?{'base':_0x5abf6d,'table':_0x56952d}:null;}['_fireBeforeHierarchyChange'](_0xeb0e42,_0x793426,_0x4fb842,_0x301533){const _0x3a5690=_0x34ded2;if(!_0x4fb842[_0x3a5690(0x1b5)])return;let _0x111e3a={'base':_0xeb0e42,'table':_0x793426,'changes':_0x4fb842,'source':_0x301533};if(this[_0x3a5690(0x15f)](this[_0x3a5690(0x14f)][_0x3a5690(0x2b9)],_0x111e3a),_0x111e3a['cancel'])throw new l[(_0x3a5690(0x289))]();}};function Z(_0x457fea,_0x32a9a4){const _0x5cc1e2=_0x34ded2;return _0x457fea['id']===_0x32a9a4['id']&&_0x457fea[_0x5cc1e2(0x189)]!==void 0x0;}u[_0x34ded2(0x22f)]['extend'](X);var Q=class extends u[_0x34ded2(0x246)]{get[_0x34ded2(0x25a)](){const _0x1d8225=_0x34ded2;return l[_0x1d8225(0x25a)];}get[_0x34ded2(0x1ce)](){const _0x12bae9=_0x34ded2;return l[_0x12bae9(0x1ce)];}get[_0x34ded2(0x129)](){const _0x44454c=_0x34ded2;return l[_0x44454c(0x129)];}get['BaseFieldKeyEnum'](){return v;}get['BaseViewType'](){const _0x651aea=_0x34ded2;return l[_0x651aea(0x250)];}get['BaseConditionalColorTarget'](){const _0x17e323=_0x34ded2;return l[_0x17e323(0x137)];}get[_0x34ded2(0x237)](){const _0x5ace30=_0x34ded2;return l[_0x5ace30(0x237)];}get[_0x34ded2(0x1de)](){const _0xd450fe=_0x34ded2;return l[_0xd450fe(0x1de)];}get[_0x34ded2(0x1ea)](){return l['BaseSortDirection'];}get['BaseEventSource'](){const _0x400b08=_0x34ded2;return c[_0x400b08(0x1b1)];}get['BaseHierarchyErrorCode'](){const _0x278ddd=_0x34ded2;return c[_0x278ddd(0x1a7)];}get[_0x34ded2(0x1b0)](){const _0x572a0a=_0x34ded2;return l[_0x572a0a(0x1b0)];}get['BaseRecordLinkRole'](){const _0x93886c=_0x34ded2;return l[_0x93886c(0x2bc)];}};u[_0x34ded2(0x246)][_0x34ded2(0x17c)](Q);var $=class extends u['FEventName']{get[_0x34ded2(0x23b)](){const _0x83fea=_0x34ded2;return _0x83fea(0x23b);}get[_0x34ded2(0x286)](){return'BeforeBaseTableCreate';}get[_0x34ded2(0x1a1)](){const _0x3cc0f8=_0x34ded2;return _0x3cc0f8(0x1a1);}get[_0x34ded2(0x213)](){const _0x1157c9=_0x34ded2;return _0x1157c9(0x213);}get['BaseTableRecordCreated'](){const _0x905cd6=_0x34ded2;return _0x905cd6(0x1d9);}get['BeforeBaseTableRecordCreate'](){const _0x5c2bad=_0x34ded2;return _0x5c2bad(0x231);}get[_0x34ded2(0x23f)](){return'BaseTableViewCreated';}get[_0x34ded2(0x1ec)](){const _0x39a042=_0x34ded2;return _0x39a042(0x1ec);}get['BaseTableCellValueChanged'](){const _0x1229f1=_0x34ded2;return _0x1229f1(0x293);}get[_0x34ded2(0x1cc)](){return'BeforeBaseTableCellValueChange';}get[_0x34ded2(0x2aa)](){const _0x40e9f0=_0x34ded2;return _0x40e9f0(0x2aa);}get[_0x34ded2(0x2b9)](){const _0x5f140e=_0x34ded2;return _0x5f140e(0x2b9);}};u[_0x34ded2(0x14b)][_0x34ded2(0x17c)]($),exports[_0x34ded2(0x174)]=v,Object[_0x34ded2(0x1a0)](exports,_0x34ded2(0x288),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x34ded2(0x14c)]=m,exports[_0x34ded2(0x13c)]=p,Object[_0x34ded2(0x1a0)](exports,_0x34ded2(0x22d),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x34ded2(0x1a0)](exports,_0x34ded2(0x2ce),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x34ded2(0x1a0)](exports,_0x34ded2(0x22c),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,'FBaseTableRecord',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x34ded2(0x1a0)](exports,'FBaseTableView',{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x34ded2(0x182)]=$,exports['resolveBaseFieldKey']=S,exports[_0x34ded2(0x167)]=b;
|
|
1
|
+
const _0xf6fc87=_0x5acb;(function(_0xc276b,_0x391367){const _0x354dd7=_0x5acb,_0x1cb336=_0xc276b();while(!![]){try{const _0x5826e2=-parseInt(_0x354dd7(0x184))/0x1*(parseInt(_0x354dd7(0x156))/0x2)+parseInt(_0x354dd7(0x2e8))/0x3*(parseInt(_0x354dd7(0x212))/0x4)+parseInt(_0x354dd7(0x147))/0x5*(parseInt(_0x354dd7(0x256))/0x6)+parseInt(_0x354dd7(0x20f))/0x7*(-parseInt(_0x354dd7(0x259))/0x8)+parseInt(_0x354dd7(0x1b8))/0x9*(parseInt(_0x354dd7(0x1a5))/0xa)+parseInt(_0x354dd7(0x248))/0xb+parseInt(_0x354dd7(0x243))/0xc;if(_0x5826e2===_0x391367)break;else _0x1cb336['push'](_0x1cb336['shift']());}catch(_0x152a05){_0x1cb336['push'](_0x1cb336['shift']());}}}(_0x566b,0x8e8b7),Object[_0xf6fc87(0x26d)](exports,Symbol[_0xf6fc87(0x298)],{'value':_0xf6fc87(0x23d)}));var e=Object[_0xf6fc87(0x21f)],t=Object[_0xf6fc87(0x26d)],n=Object['getOwnPropertyDescriptor'],r=Object[_0xf6fc87(0x268)],i=Object['getPrototypeOf'],a=Object['prototype'][_0xf6fc87(0x263)],o=(_0x3a79ba,_0x3f575b,_0x5bf8c3,_0xcb9e39)=>{const _0x4a03fa=_0xf6fc87;if(_0x3f575b&&typeof _0x3f575b==_0x4a03fa(0x1a6)||typeof _0x3f575b==_0x4a03fa(0x28b)){for(var _0x2812a6=r(_0x3f575b),_0x3b2e7c=0x0,_0x392e10=_0x2812a6['length'],_0x19b06a;_0x3b2e7c<_0x392e10;_0x3b2e7c++)_0x19b06a=_0x2812a6[_0x3b2e7c],!a[_0x4a03fa(0x289)](_0x3a79ba,_0x19b06a)&&_0x19b06a!==_0x5bf8c3&&t(_0x3a79ba,_0x19b06a,{'get':(_0x164686=>_0x3f575b[_0x164686])['bind'](null,_0x19b06a),'enumerable':!(_0xcb9e39=n(_0x3f575b,_0x19b06a))||_0xcb9e39[_0x4a03fa(0x22d)]});}return _0x3a79ba;},s=(_0x152fbd,_0x11ad04,_0x7e89b8)=>(_0x7e89b8=_0x152fbd==null?{}:e(i(_0x152fbd)),o(_0x11ad04||!_0x152fbd||!_0x152fbd[_0xf6fc87(0x1a8)]||!a[_0xf6fc87(0x289)](_0x152fbd,'default')?t(_0x7e89b8,'default',{'value':_0x152fbd,'enumerable':!0x0}):_0x7e89b8,_0x152fbd));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(_0x776d1e,_0x2775ed,_0x4e541a){const _0x146da1=_0xf6fc87;this[_0x146da1(0x2e1)]=_0x776d1e,this[_0x146da1(0x134)]=_0x2775ed,this[_0x146da1(0x1e6)]=_0x4e541a;}async[_0xf6fc87(0x2d7)](_0x36c202){const _0x4c6264=_0xf6fc87;return this[_0x4c6264(0x134)][_0x4c6264(0x293)](c[_0x4c6264(0x22f)]['id'],{'unitId':this[_0x4c6264(0x2e1)],'changes':_0x36c202});}async[_0xf6fc87(0x1e7)](_0x48f631,_0x1e5119){const _0x4e34b5=_0xf6fc87;await this[_0x4e34b5(0x134)]['executeCommand'](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x4e34b5(0x2e1)],'objectId':this[_0x4e34b5(0x2e1)],'action':_0x48f631,'value':_0x1e5119});}[_0xf6fc87(0x2a1)](_0x281371){const _0x17045b=_0xf6fc87;return(0x0,c['getBasePermissionValue'])(this[_0x17045b(0x1e6)],this['_unitId'],this[_0x17045b(0x2e1)],_0x281371);}async[_0xf6fc87(0x179)](_0xd297bb=!0x0){const _0x3a898a=_0xf6fc87;await this[_0x3a898a(0x134)][_0x3a898a(0x293)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x3a898a(0x2e1)],'objectId':this['_unitId'],'action':d['UnitAction']['Edit'],'value':_0xd297bb});}async[_0xf6fc87(0x2a6)](){const _0x51d2d7=_0xf6fc87;await this[_0x51d2d7(0x134)]['executeCommand'](c[_0x51d2d7(0x22a)]['id'],{'unitId':this[_0x51d2d7(0x2e1)],'objectId':this[_0x51d2d7(0x2e1)],'action':d[_0x51d2d7(0x220)][_0x51d2d7(0x141)],'value':!0x1});}[_0xf6fc87(0x1a2)](){const _0x359aed=_0xf6fc87;return(0x0,c[_0x359aed(0x297)])(this[_0x359aed(0x1e6)],this[_0x359aed(0x2e1)],this[_0x359aed(0x2e1)],d[_0x359aed(0x220)][_0x359aed(0x141)]);}},m=class{constructor(_0x2d24f5,_0x166adc,_0x4c2923,_0x43f96d,_0x4766d6){const _0x29eb6e=_0xf6fc87;this[_0x29eb6e(0x2e1)]=_0x2d24f5,this[_0x29eb6e(0x12f)]=_0x166adc,this[_0x29eb6e(0x2ab)]=_0x4c2923,this[_0x29eb6e(0x134)]=_0x43f96d,this['_permissionService']=_0x4766d6;}async['setEditable'](_0xb481af=!0x0){const _0x31f236=_0xf6fc87;await this['_commandService'][_0x31f236(0x293)](c[_0x31f236(0x22a)]['id'],{'unitId':this[_0x31f236(0x2e1)],'objectId':this[_0x31f236(0x12f)],'action':d[_0x31f236(0x220)][_0x31f236(0x141)],'value':_0xb481af});}async[_0xf6fc87(0x2a6)](){const _0x411fb4=_0xf6fc87;await this[_0x411fb4(0x134)][_0x411fb4(0x293)](c[_0x411fb4(0x22a)]['id'],{'unitId':this[_0x411fb4(0x2e1)],'objectId':this[_0x411fb4(0x12f)],'action':d[_0x411fb4(0x220)][_0x411fb4(0x141)],'value':!0x1});}['canEdit'](){const _0x9c9c2e=_0xf6fc87;return(0x0,c[_0x9c9c2e(0x25e)])(this['_permissionService'],this[_0x9c9c2e(0x2e1)],[...this[_0x9c9c2e(0x2ab)],this['_objectId']]);}};function h(_0x4d41e8,_0xfeb6b7){return function(_0x3bb003,_0x18c33b){_0xfeb6b7(_0x3bb003,_0x18c33b,_0x4d41e8);};}function g(_0x4dac1f,_0x114ac0,_0x2bc2b8,_0x2fff4b){const _0x501b98=_0xf6fc87;var _0x1a6df1=arguments[_0x501b98(0x2d5)],_0x2db133=_0x1a6df1<0x3?_0x114ac0:_0x2fff4b===null?_0x2fff4b=Object[_0x501b98(0x255)](_0x114ac0,_0x2bc2b8):_0x2fff4b,_0x4c1d39;if(typeof Reflect=='object'&&typeof Reflect[_0x501b98(0x1a9)]==_0x501b98(0x28b))_0x2db133=Reflect[_0x501b98(0x1a9)](_0x4dac1f,_0x114ac0,_0x2bc2b8,_0x2fff4b);else{for(var _0x3decc4=_0x4dac1f[_0x501b98(0x2d5)]-0x1;_0x3decc4>=0x0;_0x3decc4--)(_0x4c1d39=_0x4dac1f[_0x3decc4])&&(_0x2db133=(_0x1a6df1<0x3?_0x4c1d39(_0x2db133):_0x1a6df1>0x3?_0x4c1d39(_0x114ac0,_0x2bc2b8,_0x2db133):_0x4c1d39(_0x114ac0,_0x2bc2b8))||_0x2db133);}return _0x1a6df1>0x3&&_0x2db133&&Object[_0x501b98(0x26d)](_0x114ac0,_0x2bc2b8,_0x2db133),_0x2db133;}let _=class{constructor(_0x304dd0,_0x3618b7,_0x4fc894,_0x253aa0,_0x3becad){const _0x3d1dcb=_0xf6fc87;this['_base']=_0x304dd0,this[_0x3d1dcb(0x150)]=_0x3618b7,this[_0x3d1dcb(0x2d2)]=_0x4fc894,this[_0x3d1dcb(0x134)]=_0x253aa0,this[_0x3d1dcb(0x1e6)]=_0x3becad;}['getId'](){const _0x1364d6=_0xf6fc87;return this[_0x1364d6(0x2d2)];}[_0xf6fc87(0x2c6)](){const _0x5654e8=_0xf6fc87;let _0x418ccb=this[_0x5654e8(0x150)][_0x5654e8(0x1f8)]();return new m(this['_base'][_0x5654e8(0x1f8)](),(0x0,c[_0x5654e8(0x215)])(_0x418ccb,this[_0x5654e8(0x2d2)]),[(0x0,c[_0x5654e8(0x1f2)])(_0x418ccb)],this[_0x5654e8(0x134)],this[_0x5654e8(0x1e6)]);}[_0xf6fc87(0x2be)](){return this['_getField']();}[_0xf6fc87(0x1a0)](){const _0x3831e3=_0xf6fc87;return this[_0x3831e3(0x12d)]()[_0x3831e3(0x2ea)];}[_0xf6fc87(0x2df)](){const _0x1165a9=_0xf6fc87;return this['_getField']()[_0x1165a9(0x14d)];}[_0xf6fc87(0x1c7)](){const _0x19d2cd=_0xf6fc87;return this[_0x19d2cd(0x12d)]()[_0x19d2cd(0x154)];}[_0xf6fc87(0x28e)](){const _0x197d9d=_0xf6fc87;return this[_0x197d9d(0x12d)]()['defaultValue'];}[_0xf6fc87(0x2e6)](){const _0x32bda5=_0xf6fc87;return this[_0x32bda5(0x12d)]()[_0x32bda5(0x252)];}[_0xf6fc87(0x2ae)](){const _0x4ed1bc=_0xf6fc87;return!!this[_0x4ed1bc(0x12d)]()[_0x4ed1bc(0x1e8)];}[_0xf6fc87(0x26f)](_0x47f311){return this['update']({'name':_0x47f311});}['setConfig'](_0x4efe07,_0x3419ce){const _0xcbee79=_0xf6fc87;return this[_0xcbee79(0x246)]({'config':_0x4efe07},_0x3419ce);}[_0xf6fc87(0x162)](_0x48f3b2){const _0x3ff673=_0xf6fc87;return this[_0x3ff673(0x246)]({'defaultValue':_0x48f3b2});}[_0xf6fc87(0x246)](_0x376a7b,_0x26e873){const _0x3ec18c=_0xf6fc87;let _0x181794=this[_0x3ec18c(0x12d)]()['type'];return(_0x376a7b[_0x3ec18c(0x14d)]??_0x181794)===l[_0x3ec18c(0x13f)]['Formula']&&(Object[_0x3ec18c(0x28f)][_0x3ec18c(0x263)][_0x3ec18c(0x289)](_0x376a7b,_0x3ec18c(0x154))||_0x376a7b[_0x3ec18c(0x14d)]===l[_0x3ec18c(0x13f)][_0x3ec18c(0x13b)])&&!this[_0x3ec18c(0x29a)](_0x26e873)?!0x1:this[_0x3ec18c(0x134)][_0x3ec18c(0x1e1)](c[_0x3ec18c(0x2eb)]['id'],{'unitId':this[_0x3ec18c(0x233)]['getId'](),'tableId':this['_table'][_0x3ec18c(0x1f8)](),'fieldId':this[_0x3ec18c(0x2d2)],'patch':_0x376a7b});}[_0xf6fc87(0x1d4)](_0x236dd5,_0x375f3a={},_0x177da3){const _0x310c40=_0xf6fc87;return _0x236dd5===l[_0x310c40(0x13f)]['Formula']&&!this[_0x310c40(0x29a)](_0x177da3)?!0x1:this[_0x310c40(0x134)][_0x310c40(0x1e1)](c[_0x310c40(0x15a)]['id'],{'unitId':this[_0x310c40(0x233)]['getId'](),'tableId':this[_0x310c40(0x150)][_0x310c40(0x1f8)](),'fieldId':this[_0x310c40(0x2d2)],'input':{'type':_0x236dd5,'config':_0x375f3a}});}[_0xf6fc87(0x175)](){const _0x46bef2=_0xf6fc87;return this['_commandService'][_0x46bef2(0x1e1)](c[_0x46bef2(0x1e3)]['id'],{'unitId':this['_base'][_0x46bef2(0x1f8)](),'tableId':this['_table'][_0x46bef2(0x1f8)](),'fieldId':this[_0x46bef2(0x2d2)]});}[_0xf6fc87(0x1f1)](_0x1b643d){const _0x3cbb49=_0xf6fc87;return this[_0x3cbb49(0x134)]['syncExecuteCommand'](c[_0x3cbb49(0x210)]['id'],{'unitId':this[_0x3cbb49(0x233)][_0x3cbb49(0x1f8)](),'tableId':this[_0x3cbb49(0x150)][_0x3cbb49(0x1f8)](),'fieldId':this['_fieldId'],'target':_0x1b643d});}[_0xf6fc87(0x12d)](){const _0xf1abf7=_0xf6fc87;let _0x467780=this[_0xf1abf7(0x150)][_0xf1abf7(0x1fb)]()['fields'][this[_0xf1abf7(0x2d2)]];if(!_0x467780)throw Error('[FField]:\x20field\x20\x22'+this[_0xf1abf7(0x2d2)]+_0xf1abf7(0x23f));return _0x467780;}[_0xf6fc87(0x29a)](_0x2d7a0a){const _0x1236b7=_0xf6fc87;if(!_0x2d7a0a||!Array[_0x1236b7(0x1e9)](_0x2d7a0a[_0x1236b7(0x227)]))return console[_0x1236b7(0x24f)](_0x1236b7(0x132)),!0x1;if(_0x2d7a0a['externalReferences'][_0x1236b7(0x2d5)]===0x0)return!0x0;let _0x4f6ea4=this[_0x1236b7(0x134)]['syncExecuteCommand'](f[_0x1236b7(0x26c)]['id'],{'unitId':this[_0x1236b7(0x233)]['getId'](),'references':_0x2d7a0a[_0x1236b7(0x227)]});return _0x4f6ea4||console[_0x1236b7(0x24f)](_0x1236b7(0x207)),_0x4f6ea4;}};_=g([h(0x3,l[_0xf6fc87(0x137)]),h(0x4,l[_0xf6fc87(0x296)])],_);let v=function(_0x27305e){const _0x3777be=_0xf6fc87;return _0x27305e['Id']='id',_0x27305e[_0x3777be(0x1d8)]=_0x3777be(0x2ea),_0x27305e[_0x3777be(0x1a4)]=_0x3777be(0x18d),_0x27305e;}({});function y(_0x4aba0a){const _0x49bbc5=_0xf6fc87;return!!(_0x4aba0a&&_0x4aba0a['system']!==!0x0&&_0x4aba0a[_0x49bbc5(0x14d)]!==l['BaseFieldType'][_0x49bbc5(0x15c)]);}function b(_0x3f2b17,_0x1dd784,_0x34ef99='id'){const _0x2017c5=_0xf6fc87;if(!_0x1dd784)return{};let _0x2f8eb2={};return Object['entries'](_0x1dd784)[_0x2017c5(0x1ba)](([_0x941255,_0x349a2f])=>{const _0x489720=_0x2017c5;let _0x529b45=S(_0x3f2b17,_0x941255,_0x34ef99);_0x2f8eb2[_0x529b45]=x(_0x3f2b17[_0x489720(0x191)][_0x529b45],_0x349a2f);}),_0x2f8eb2;}function x(_0x4ef620,_0x337e27){const _0x1d6eb2=_0xf6fc87;if((_0x4ef620==null?void 0x0:_0x4ef620[_0x1d6eb2(0x14d)])!==l[_0x1d6eb2(0x13f)][_0x1d6eb2(0x2b7)]||_0x337e27==null)return _0x337e27;if(!Array[_0x1d6eb2(0x1e9)](_0x337e27))throw TypeError(_0x1d6eb2(0x2b9)+_0x4ef620['name']+_0x1d6eb2(0x28c));return _0x337e27['map']((_0x320378,_0xf00cb0)=>C(_0x4ef620,_0x320378,_0xf00cb0));}function S(_0x53ebcb,_0xf05bc6,_0xc44811){const _0xa64c01=_0xf6fc87;if(_0xc44811==='id'||_0xc44811==='auto'&&_0x53ebcb[_0xa64c01(0x191)][_0xf05bc6])return _0xf05bc6;let _0x542459=Object[_0xa64c01(0x197)](_0x53ebcb['fields'])['filter'](_0x59198e=>_0x59198e[_0xa64c01(0x2ea)]===_0xf05bc6);if(_0x542459[_0xa64c01(0x2d5)]===0x1)return _0x542459[0x0]['id'];throw _0x542459['length']>0x1?Error(_0xa64c01(0x27a)+_0xf05bc6):Error(_0xa64c01(0x1f6)+_0xf05bc6);}function C(_0x30f939,_0x30b897,_0x14d1e3){const _0x4f930b=_0xf6fc87;let _0x4cd047=_0x4f930b(0x24c)+_0x14d1e3+_0x4f930b(0x2d1)+_0x30f939['name']+'\x22';if(!O(_0x30b897))throw TypeError(_0x4cd047+_0x4f930b(0x171));if('url'in _0x30b897)throw TypeError(_0x4cd047+_0x4f930b(0x136));if(_0x4f930b(0x14d)in _0x30b897)throw TypeError(_0x4cd047+_0x4f930b(0x2b3));let _0x1d822e=T(_0x30b897['id'],_0x4cd047,'id'),_0x51428c=T(_0x30b897[_0x4f930b(0x2ea)],_0x4cd047,_0x4f930b(0x2ea)),_0x159df7=T(_0x30b897['source'],_0x4cd047,_0x4f930b(0x1ff));return{'id':_0x1d822e,'name':_0x51428c,'source':_0x159df7,'sourceType':w(_0x30b897[_0x4f930b(0x211)],_0x159df7,_0x4cd047),...E(_0x30b897,_0x4f930b(0x1bc),_0x4cd047),...D(_0x30b897,'size',_0x4cd047),...D(_0x30b897,_0x4f930b(0x19b),_0x4cd047),...D(_0x30b897,'height',_0x4cd047),...E(_0x30b897,'thumbnail',_0x4cd047)};}function w(_0x38c172,_0x1e2ef0,_0x39489c){const _0x428ff5=_0xf6fc87;if(_0x38c172==null)return _0x1e2ef0[_0x428ff5(0x1d3)](_0x428ff5(0x1ef))?l[_0x428ff5(0x2d6)][_0x428ff5(0x12e)]:l[_0x428ff5(0x2d6)][_0x428ff5(0x15b)];if(_0x38c172===l[_0x428ff5(0x2d6)][_0x428ff5(0x15b)]||_0x38c172===l['ImageSourceType'][_0x428ff5(0x170)]||_0x38c172===l[_0x428ff5(0x2d6)][_0x428ff5(0x12e)])return _0x38c172;throw TypeError(_0x39489c+_0x428ff5(0x2cb));}function T(_0x2138c9,_0x45a224,_0x43ba94){const _0x15fb5c=_0xf6fc87;if(typeof _0x2138c9!=_0x15fb5c(0x224)||!_0x2138c9[_0x15fb5c(0x27b)]())throw TypeError(_0x45a224+':\x20\x22'+_0x43ba94+_0x15fb5c(0x135));return _0x2138c9;}function E(_0x4e8c0a,_0x248f5,_0x22dbf2){const _0x8718e3=_0xf6fc87;let _0x1a682f=_0x4e8c0a[_0x248f5];if(_0x1a682f==null)return{};if(typeof _0x1a682f!='string'||!_0x1a682f[_0x8718e3(0x27b)]())throw TypeError(_0x22dbf2+_0x8718e3(0x2a9)+_0x248f5+_0x8718e3(0x1cd));return{[_0x248f5]:_0x1a682f};}function D(_0x3a398c,_0x2f524a,_0x29604f){const _0x5c853=_0xf6fc87;let _0x2432dc=_0x3a398c[_0x2f524a];if(_0x2432dc==null)return{};if(typeof _0x2432dc!='number'||!Number[_0x5c853(0x161)](_0x2432dc)||_0x2432dc<0x0)throw TypeError(_0x29604f+_0x5c853(0x2a9)+_0x2f524a+_0x5c853(0x286));return{[_0x2f524a]:_0x2432dc};}function O(_0x483b4f){const _0x2fb6ae=_0xf6fc87;return typeof _0x483b4f==_0x2fb6ae(0x1a6)&&!!_0x483b4f&&!Array[_0x2fb6ae(0x1e9)](_0x483b4f);}var k;let A=k=class{constructor(_0x29c3b8,_0xc4aef3,_0x1f2d64,_0x3e3226,_0x4a98bf){const _0x15cd5d=_0xf6fc87;this[_0x15cd5d(0x233)]=_0x29c3b8,this[_0x15cd5d(0x150)]=_0xc4aef3,this['_range']=_0x1f2d64,this[_0x15cd5d(0x1b3)]=_0x3e3226,this[_0x15cd5d(0x134)]=_0x4a98bf,this['_assertInBounds']();}[_0xf6fc87(0x278)](){const _0x3683b3=_0xf6fc87;return this[_0x3683b3(0x233)]['getId']();}[_0xf6fc87(0x274)](){const _0x41ad1f=_0xf6fc87;return this[_0x41ad1f(0x150)][_0x41ad1f(0x1f8)]();}['getRange'](){return{...this['_range']};}[_0xf6fc87(0x229)](){const _0x46df92=_0xf6fc87;return this[_0x46df92(0x244)][_0x46df92(0x280)];}[_0xf6fc87(0x1ac)](){const _0x42f1c8=_0xf6fc87;return this['_range'][_0x42f1c8(0x235)];}[_0xf6fc87(0x204)](){const _0x383484=_0xf6fc87;return this['_range'][_0x383484(0x16a)]-this[_0x383484(0x244)][_0x383484(0x280)]+0x1;}['getNumColumns'](){const _0x358d62=_0xf6fc87;return this['_range']['endColumn']-this[_0x358d62(0x244)][_0x358d62(0x235)]+0x1;}[_0xf6fc87(0x2ca)](){const _0x1e49c1=_0xf6fc87;let _0x4c10df=this[_0x1e49c1(0x2c2)](),_0x436802=this['_getFieldIds'](_0x4c10df),_0x18ba15=[];for(let _0x10ca15=this[_0x1e49c1(0x244)][_0x1e49c1(0x280)];_0x10ca15<=this[_0x1e49c1(0x244)][_0x1e49c1(0x16a)];_0x10ca15++){var _0x8f63e7;let _0x57e840=(_0x8f63e7=_0x4c10df[_0x1e49c1(0x226)])==null?void 0x0:_0x8f63e7[_0x10ca15],_0xb9ee3b=[];for(let _0x2a2855=this[_0x1e49c1(0x244)][_0x1e49c1(0x235)];_0x2a2855<=this[_0x1e49c1(0x244)][_0x1e49c1(0x214)];_0x2a2855++){let _0x2200cf=_0x436802[_0x2a2855];_0xb9ee3b[_0x1e49c1(0x285)](_0x57e840&&_0x2200cf?(0x0,c['getBaseCellValue'])(_0x4c10df,_0x57e840,_0x2200cf):null);}_0x18ba15[_0x1e49c1(0x285)](_0xb9ee3b);}return _0x18ba15;}[_0xf6fc87(0x27e)](){const _0x12d328=_0xf6fc87;var _0x3a7c82;return((_0x3a7c82=this[_0x12d328(0x2ca)]()[0x0])==null?void 0x0:_0x3a7c82[0x0])??null;}['setValue'](_0x30a939){const _0x1e7b0f=_0xf6fc87;return this[_0x1e7b0f(0x294)]([[_0x30a939]]);}[_0xf6fc87(0x294)](_0xb41fde){const _0x4e04a2=_0xf6fc87;let _0x2dda00=this[_0x4e04a2(0x204)](),_0xcac317=this[_0x4e04a2(0x29c)]();if(_0xb41fde['length']>_0x2dda00||_0xb41fde['some'](_0x2ed17e=>_0x2ed17e[_0x4e04a2(0x2d5)]>_0xcac317)){var _0x24a9fe;throw Error(_0x4e04a2(0x20d)+_0xb41fde['length']+'x'+(((_0x24a9fe=_0xb41fde[0x0])==null?void 0x0:_0x24a9fe['length'])??0x0)+_0x4e04a2(0x2d8)+_0x2dda00+'x'+_0xcac317+'.');}let _0x450d48=this[_0x4e04a2(0x2c2)](),_0x28ea9c=this['_getFieldIds'](_0x450d48),_0x1b805c=_0xb41fde[_0x4e04a2(0x2c1)]((_0x21cc15,_0x461cf3)=>_0x21cc15[_0x4e04a2(0x29f)]((_0x2a06fc,_0x475e51)=>{const _0xf39acf=_0x4e04a2;var _0x26a5d3;let _0x26ece4=this['_range'][_0xf39acf(0x280)]+_0x461cf3,_0x5b3539=_0x28ea9c[this[_0xf39acf(0x244)][_0xf39acf(0x235)]+_0x475e51],_0x6e9a07=(_0x26a5d3=_0x450d48[_0xf39acf(0x226)])==null?void 0x0:_0x26a5d3[_0x26ece4];if(!_0x5b3539||!_0x6e9a07)throw Error(_0xf39acf(0x2ac));return{'recordId':_0x6e9a07,'fieldId':_0x5b3539,'value':_0x2a06fc};}));return this['_commandService'][_0x4e04a2(0x1e1)](c['SetBaseRangeValuesCommand']['id'],{'unitId':this['_base'][_0x4e04a2(0x1f8)](),'tableId':this['_table'][_0x4e04a2(0x1f8)](),'patches':_0x1b805c,'source':c[_0x4e04a2(0x15e)][_0x4e04a2(0x1d2)]});}[_0xf6fc87(0x2cd)](){const _0x13c0fe=_0xf6fc87;return this[_0x13c0fe(0x294)](Array['from']({'length':this[_0x13c0fe(0x204)]()},()=>Array['from']({'length':this[_0x13c0fe(0x29c)]()},()=>null)));}['offset'](_0x44e35b,_0x209213,_0x553ae8=this['getNumRows'](),_0x546f2c=this[_0xf6fc87(0x29c)]()){const _0x1431d1=_0xf6fc87;return this[_0x1431d1(0x1b3)][_0x1431d1(0x221)](k,this[_0x1431d1(0x233)],this[_0x1431d1(0x150)],{'startRow':this['_range'][_0x1431d1(0x280)]+_0x44e35b,'startColumn':this[_0x1431d1(0x244)][_0x1431d1(0x235)]+_0x209213,'endRow':this[_0x1431d1(0x244)][_0x1431d1(0x280)]+_0x44e35b+_0x553ae8-0x1,'endColumn':this['_range'][_0x1431d1(0x235)]+_0x209213+_0x546f2c-0x1},this['_inject']);}[_0xf6fc87(0x2c2)](){const _0x294a43=_0xf6fc87;let _0x2ebe4a=this[_0x294a43(0x150)][_0x294a43(0x1fb)]();if(!_0x2ebe4a)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c[_0x294a43(0x240)])(_0x2ebe4a);}['_assertInBounds'](){const _0x7e7377=_0xf6fc87;var _0x383c18;let _0x9f9b96=this[_0x7e7377(0x2c2)](),_0x132759=((_0x383c18=_0x9f9b96[_0x7e7377(0x180)])==null?void 0x0:_0x383c18['length'])??0x0,_0x97ca89=this[_0x7e7377(0x238)](_0x9f9b96)[_0x7e7377(0x2d5)];if(this['_range']['startRow']<0x0||this['_range'][_0x7e7377(0x235)]<0x0||this[_0x7e7377(0x244)][_0x7e7377(0x16a)]<this[_0x7e7377(0x244)][_0x7e7377(0x280)]||this['_range'][_0x7e7377(0x214)]<this[_0x7e7377(0x244)]['startColumn']||this[_0x7e7377(0x244)][_0x7e7377(0x16a)]>=Math[_0x7e7377(0x25a)](_0x132759,0x1)||this[_0x7e7377(0x244)][_0x7e7377(0x214)]>=Math[_0x7e7377(0x25a)](_0x97ca89,0x1))throw Error(_0x7e7377(0x1dc)+_0x132759+_0x7e7377(0x188)+_0x97ca89+_0x7e7377(0x25c)+JSON['stringify'](this[_0x7e7377(0x244)])+'.');}[_0xf6fc87(0x238)](_0x1f8634){const _0x28794d=_0xf6fc87;return _0x1f8634[_0x28794d(0x23b)]['filter'](_0x4d5aa7=>y(_0x1f8634['fields'][_0x4d5aa7]));}};A=k=g([h(0x4,l[_0xf6fc87(0x137)])],A);function j(_0x5d0905){'@babel/helpers - typeof';const _0x46c52a=_0xf6fc87;return j=typeof Symbol==_0x46c52a(0x28b)&&typeof Symbol[_0x46c52a(0x2e2)]==_0x46c52a(0x1e2)?function(_0x397538){return typeof _0x397538;}:function(_0x53af31){const _0x489d0f=_0x46c52a;return _0x53af31&&typeof Symbol==_0x489d0f(0x28b)&&_0x53af31[_0x489d0f(0x21d)]===Symbol&&_0x53af31!==Symbol[_0x489d0f(0x28f)]?'symbol':typeof _0x53af31;},j(_0x5d0905);}function M(_0x5b694d,_0xf47bfc){const _0x125a78=_0xf6fc87;if(j(_0x5b694d)!=_0x125a78(0x1a6)||!_0x5b694d)return _0x5b694d;var _0x176e8e;if(typeof Symbol<'u'&&(_0x176e8e=_0x5b694d[Symbol[_0x125a78(0x205)]])!==void 0x0){var _0x52b0a9=_0x176e8e[_0x125a78(0x289)](_0x5b694d,_0xf47bfc||_0x125a78(0x299));if(j(_0x52b0a9)!=_0x125a78(0x1a6))return _0x52b0a9;throw TypeError(_0x125a78(0x203));}return(_0xf47bfc===_0x125a78(0x224)?String:Number)(_0x5b694d);}function N(_0x1e550f){const _0x2230cc=_0xf6fc87;var _0x607c57=M(_0x1e550f,_0x2230cc(0x224));return j(_0x607c57)=='symbol'?_0x607c57:_0x607c57+'';}function P(_0x546366,_0x1f79c5,_0x2d4f83){const _0x18e693=_0xf6fc87;return(_0x1f79c5=N(_0x1f79c5))in _0x546366?Object[_0x18e693(0x26d)](_0x546366,_0x1f79c5,{'value':_0x2d4f83,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x546366[_0x1f79c5]=_0x2d4f83,_0x546366;}function _0x5acb(_0x1d82ec,_0x598cdb){_0x1d82ec=_0x1d82ec-0x12a;const _0x566bd9=_0x566b();let _0x5acb29=_0x566bd9[_0x1d82ec];return _0x5acb29;}var F;let I=F=class extends u[_0xf6fc87(0x2c4)]{constructor(_0x3d8d42,_0x2156af,_0x4f6565,_0x146d90,_0x148d0a,_0x532391){const _0x714172=_0xf6fc87;super(_0x146d90),this[_0x714172(0x233)]=_0x3d8d42,this[_0x714172(0x150)]=_0x2156af,this[_0x714172(0x2b5)]=_0x4f6565,this[_0x714172(0x230)]=_0x146d90,this[_0x714172(0x134)]=_0x148d0a,this[_0x714172(0x1e6)]=_0x532391,P(this,_0x714172(0x2e5),void 0x0),P(this,_0x714172(0x2b2),void 0x0),this['_baseUnitId']=_0x3d8d42[_0x714172(0x1f8)](),this[_0x714172(0x2b2)]=_0x2156af[_0x714172(0x1f8)]();}[_0xf6fc87(0x13a)](){const _0x4c01cb=_0xf6fc87;return this[_0x4c01cb(0x233)];}[_0xf6fc87(0x241)](){return this['_table'];}[_0xf6fc87(0x1f8)](){const _0x145c8d=_0xf6fc87;return this[_0x145c8d(0x2b5)];}[_0xf6fc87(0x2c6)](){const _0x533cbc=_0xf6fc87;let _0xc51b78=this[_0x533cbc(0x150)][_0x533cbc(0x1f8)]();return new m(this['_base']['getId'](),(0x0,c['getBaseRecordPermissionObjectId'])(_0xc51b78,this[_0x533cbc(0x2b5)]),[(0x0,c[_0x533cbc(0x1f2)])(_0xc51b78)],this['_commandService'],this[_0x533cbc(0x1e6)]);}[_0xf6fc87(0x295)](){return{...this['_getRecord'](),'values':this['getValues']()};}[_0xf6fc87(0x27e)](_0x5bbc9f){const _0x5de60f=_0xf6fc87;return y(this[_0x5de60f(0x150)][_0x5de60f(0x1fb)]()[_0x5de60f(0x191)][_0x5bbc9f])?this[_0x5de60f(0x281)]()[_0x5de60f(0x197)][_0x5bbc9f]??null:null;}[_0xf6fc87(0x2ca)](){const _0x9dae1b=_0xf6fc87;let _0x81dc6d=this['_table'][_0x9dae1b(0x1fb)]();return Object[_0x9dae1b(0x130)](Object[_0x9dae1b(0x16e)](this['_getRecord']()[_0x9dae1b(0x197)])[_0x9dae1b(0x24a)](([_0x2e6ebf])=>y(_0x81dc6d[_0x9dae1b(0x191)][_0x2e6ebf])));}[_0xf6fc87(0x22e)](_0x3e9afe,_0x43c94a){const _0x2f08b5=_0xf6fc87;let _0x371ac3=this[_0x2f08b5(0x150)][_0x2f08b5(0x1fb)]()[_0x2f08b5(0x191)][_0x3e9afe];return this['_commandService'][_0x2f08b5(0x1e1)](c[_0x2f08b5(0x1b7)]['id'],{'unitId':this[_0x2f08b5(0x233)][_0x2f08b5(0x1f8)](),'tableId':this[_0x2f08b5(0x150)]['getId'](),'recordId':this['_recordId'],'fieldId':_0x3e9afe,'value':x(_0x371ac3,_0x43c94a),'source':c[_0x2f08b5(0x15e)][_0x2f08b5(0x1d2)]});}[_0xf6fc87(0x2b1)](_0x23c3ed,_0x17d4e1){const _0x98abe8=_0xf6fc87;return this['setValue'](_0x23c3ed,_0x17d4e1[_0x98abe8(0x29f)](_0x115217=>({..._0x115217})));}[_0xf6fc87(0x2ce)](_0x310e50){const _0x4cd1f2=_0xf6fc87;this['_getAttachmentField'](_0x310e50);let _0x3f9972=this[_0x4cd1f2(0x27e)](_0x310e50);return Array['isArray'](_0x3f9972)?_0x3f9972[_0x4cd1f2(0x29f)]((_0x3ffb9c,_0x298359)=>R(_0x3ffb9c,_0x310e50,_0x298359)):[];}[_0xf6fc87(0x2dc)](_0x59ae17,_0xb77fa2){const _0x54495c=_0xf6fc87;this[_0x54495c(0x163)](_0x59ae17);let _0x54c5b3=new Set(_0xb77fa2[_0x54495c(0x29f)](_0x13c3f1=>_0x13c3f1['id']));if(!_0x54c5b3[_0x54495c(0x177)])return!0x0;let _0x541dd7=this['getAttachments'](_0x59ae17),_0x1fa22a=_0x541dd7[_0x54495c(0x24a)](_0x44542a=>!_0x54c5b3[_0x54495c(0x1fe)](_0x44542a['id']));return _0x1fa22a[_0x54495c(0x2d5)]===_0x541dd7[_0x54495c(0x2d5)]||this['setAttachments'](_0x59ae17,_0x1fa22a);}['setValues'](_0x3484fb,_0x20db80='id'){const _0x1b2ceb=_0xf6fc87;let _0x4ba665=this[_0x1b2ceb(0x150)][_0x1b2ceb(0x1fb)](),_0xebaf3c=[{'recordId':this[_0x1b2ceb(0x2b5)],'values':b(_0x4ba665,_0x3484fb,_0x20db80)}];return this[_0x1b2ceb(0x134)]['syncExecuteCommand'](c[_0x1b2ceb(0x2e7)]['id'],{'unitId':this['_base'][_0x1b2ceb(0x1f8)](),'tableId':this['_table'][_0x1b2ceb(0x1f8)](),'patches':_0xebaf3c,'source':c[_0x1b2ceb(0x15e)][_0x1b2ceb(0x1d2)]});}[_0xf6fc87(0x175)](){const _0x561560=_0xf6fc87;return this['_commandService']['syncExecuteCommand'](c[_0x561560(0x2c9)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x561560(0x150)][_0x561560(0x1f8)](),'recordId':this[_0x561560(0x2b5)],'source':c[_0x561560(0x15e)][_0x561560(0x1d2)]});}['duplicate'](_0x23b3b8){const _0x4b951d=_0xf6fc87;let _0x3aa53f={...this[_0x4b951d(0x281)](),..._0x23b3b8,'id':(0x0,l['generateRandomId'])(0x6)};_0x3aa53f[_0x4b951d(0x197)]={..._0x3aa53f[_0x4b951d(0x197)],..._0x23b3b8==null?void 0x0:_0x23b3b8[_0x4b951d(0x197)]},Reflect[_0x4b951d(0x174)](_0x3aa53f[_0x4b951d(0x197)],l['BASE_RECORD_ID_FIELD_ID']);let _0x688c2a=Date[_0x4b951d(0x1cf)]();if(_0x3aa53f[_0x4b951d(0x291)]||=''+_0x688c2a,_0x3aa53f['createdAt']||=_0x688c2a,_0x3aa53f[_0x4b951d(0x2a3)]||=_0x688c2a,!this[_0x4b951d(0x134)]['syncExecuteCommand'](c[_0x4b951d(0x1fd)]['id'],{'unitId':this[_0x4b951d(0x233)][_0x4b951d(0x1f8)](),'tableId':this[_0x4b951d(0x150)][_0x4b951d(0x1f8)](),'sourceRecordId':this[_0x4b951d(0x2b5)],'record':_0x3aa53f,'source':c[_0x4b951d(0x15e)][_0x4b951d(0x1d2)]}))throw Error(_0x4b951d(0x14a)+this[_0x4b951d(0x2b5)]+'\x22.');return this[_0x4b951d(0x230)][_0x4b951d(0x221)](F,this[_0x4b951d(0x233)],this[_0x4b951d(0x150)],_0x3aa53f['id'],this[_0x4b951d(0x230)]);}[_0xf6fc87(0x12b)](_0x3f1292){const _0x315cf7=_0xf6fc87;return this[_0x315cf7(0x134)]['syncExecuteCommand'](c['UpdateBaseRecordOrderCommand']['id'],{'unitId':this[_0x315cf7(0x233)][_0x315cf7(0x1f8)](),'tableId':this[_0x315cf7(0x150)]['getId'](),'recordId':this[_0x315cf7(0x2b5)],'orderKey':_0x3f1292});}[_0xf6fc87(0x222)](_0x4b4077){const _0xff8da0=_0xf6fc87;let _0x257323=this['_getRecordLinkField'](_0x4b4077),_0x2beeaa=this[_0xff8da0(0x27e)](_0x257323['id']);return(0x0,c[_0xff8da0(0x1b9)])(_0x2beeaa);}[_0xf6fc87(0x22c)](_0x1572ef,_0x3bf010){const _0x2e5508=_0xf6fc87;let _0x2fd8ba=this['_getRecordLinkField'](_0x1572ef),_0x422f70=(0x0,c[_0x2e5508(0x1fa)])(_0x3bf010),_0x1ea0ea=(0x0,c[_0x2e5508(0x14f)])(this[_0x2e5508(0x233)][_0x2e5508(0x2af)]()['getSnapshot'](),_0x2fd8ba,_0x422f70);if(!_0x1ea0ea[_0x2e5508(0x219)])throw Error(_0x1ea0ea[_0x2e5508(0x273)]??_0x2e5508(0x14c));return this[_0x2e5508(0x134)]['syncExecuteCommand'](c[_0x2e5508(0x1b7)]['id'],{'unitId':this[_0x2e5508(0x233)]['getId'](),'tableId':this[_0x2e5508(0x150)]['getId'](),'recordId':this[_0x2e5508(0x2b5)],'fieldId':_0x1572ef,'value':_0x422f70,'source':c['BaseEventSource'][_0x2e5508(0x1d2)]});}['addLinkedRecord'](_0x4b23fc,_0x1a0b67){const _0x583302=_0xf6fc87;let _0x2be432=this[_0x583302(0x14e)](_0x4b23fc),_0x391ac4=(0x0,c['getRecordLinkFieldConfig'])(_0x2be432);if(!_0x391ac4)throw Error(_0x583302(0x1d7)+_0x4b23fc+_0x583302(0x261));let _0x505bcf=this[_0x583302(0x222)](_0x4b23fc);return _0x391ac4[_0x583302(0x283)]&&_0x505bcf[_0x583302(0x21a)](_0x1a0b67)?!0x0:this[_0x583302(0x22c)](_0x4b23fc,_0x391ac4[_0x583302(0x283)]?[..._0x505bcf,_0x1a0b67]:[_0x1a0b67]);}['removeLinkedRecord'](_0x415964,_0x208d79){const _0x58078d=_0xf6fc87;let _0x72156=this[_0x58078d(0x222)](_0x415964);return!_0x72156[_0x58078d(0x21a)](_0x208d79)||this[_0x58078d(0x22c)](_0x415964,_0x72156[_0x58078d(0x24a)](_0x218071=>_0x218071!==_0x208d79));}[_0xf6fc87(0x2a4)](_0x4768d9){const _0x1f2b49=_0xf6fc87;let _0x5a7642=this[_0x1f2b49(0x16f)](_0x4768d9)[_0x1f2b49(0x2ba)][_0x1f2b49(0x2e4)](this[_0x1f2b49(0x2b5)])??null;return _0x5a7642?this[_0x1f2b49(0x150)][_0x1f2b49(0x284)](_0x5a7642):null;}[_0xf6fc87(0x269)](_0x460f37){const _0x4d5ccf=_0xf6fc87;return(this[_0x4d5ccf(0x16f)](_0x460f37)[_0x4d5ccf(0x12c)][_0x4d5ccf(0x2e4)](this[_0x4d5ccf(0x2b5)])??[])[_0x4d5ccf(0x2c1)](_0x2e30cc=>{const _0x3ef55b=_0x4d5ccf;let _0xfa55de=this[_0x3ef55b(0x150)][_0x3ef55b(0x284)](_0x2e30cc);return _0xfa55de?[_0xfa55de]:[];});}['getAncestors'](_0x32b3f7){const _0x401c60=_0xf6fc87;let _0x1852ec=this['_getHierarchyIndex'](_0x32b3f7),_0x54d0c0=[],_0x25e4a9=_0x1852ec[_0x401c60(0x2ba)][_0x401c60(0x2e4)](this[_0x401c60(0x2b5)])??null;for(;_0x25e4a9;){let _0x1f875b=this[_0x401c60(0x150)][_0x401c60(0x284)](_0x25e4a9);_0x1f875b&&_0x54d0c0[_0x401c60(0x285)](_0x1f875b),_0x25e4a9=_0x1852ec[_0x401c60(0x2ba)][_0x401c60(0x2e4)](_0x25e4a9)??null;}return _0x54d0c0;}[_0xf6fc87(0x276)](_0x266013){const _0x1cc93e=_0xf6fc87;let _0x67f701=this['_getHierarchyIndex'](_0x266013),_0x418fa7=_0x67f701['orderedRecordIds']['indexOf'](this['_recordId']),_0x13a9ea=_0x67f701[_0x1cc93e(0x292)]['has'](this[_0x1cc93e(0x2b5)])?this['_collectDescendantIds'](_0x67f701[_0x1cc93e(0x12c)],this['_recordId']):[];return _0x418fa7<0x0?[]:_0x13a9ea[_0x1cc93e(0x2c1)](_0x2b39cc=>{const _0x3bcb73=_0x1cc93e;let _0x1ed2f5=this[_0x3bcb73(0x150)][_0x3bcb73(0x284)](_0x2b39cc);return _0x1ed2f5?[_0x1ed2f5]:[];});}[_0xf6fc87(0x131)](_0x131f60,_0x32e4f5,_0x66b9ac){const _0xbe1ca2=_0xf6fc87;return this['_commandService'][_0xbe1ca2(0x1e1)](c[_0xbe1ca2(0x1da)]['id'],{'unitId':this['_base'][_0xbe1ca2(0x1f8)](),'tableId':this[_0xbe1ca2(0x150)]['getId'](),'fieldId':_0x131f60,'recordId':this[_0xbe1ca2(0x2b5)],'parentRecordId':_0x32e4f5,'orderKey':_0x66b9ac,'source':c[_0xbe1ca2(0x15e)]['Facade']});}['addChild'](_0x320cd3,_0x22a77a,_0x26b585='id',_0xe176e4){const _0x1d8bfd=_0xf6fc87;let _0x12e23f=this[_0x1d8bfd(0x150)][_0x1d8bfd(0x1fb)](),_0x544104=Date['now'](),_0x5635f5={..._0xe176e4,'id':(0x0,l[_0x1d8bfd(0x1d9)])(0x6),'values':b(_0x12e23f,_0x22a77a,_0x26b585),'orderKey':(_0xe176e4==null?void 0x0:_0xe176e4[_0x1d8bfd(0x291)])||''+_0x544104,'createdAt':(_0xe176e4==null?void 0x0:_0xe176e4[_0x1d8bfd(0x2cf)])||_0x544104,'updatedAt':(_0xe176e4==null?void 0x0:_0xe176e4[_0x1d8bfd(0x2a3)])||_0x544104};if(!this[_0x1d8bfd(0x134)][_0x1d8bfd(0x1e1)](c[_0x1d8bfd(0x1fc)]['id'],{'unitId':this[_0x1d8bfd(0x233)]['getId'](),'tableId':this[_0x1d8bfd(0x150)][_0x1d8bfd(0x1f8)](),'fieldId':_0x320cd3,'parentRecordId':this['_recordId'],'record':_0x5635f5,'source':c[_0x1d8bfd(0x15e)]['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this['_recordId']+'\x22.');return this[_0x1d8bfd(0x230)][_0x1d8bfd(0x221)](F,this['_base'],this[_0x1d8bfd(0x150)],_0x5635f5['id'],this[_0x1d8bfd(0x230)]);}[_0xf6fc87(0x16f)](_0x1ee798){const _0x7ee3bc=_0xf6fc87;return(0x0,c[_0x7ee3bc(0x1ae)])(this[_0x7ee3bc(0x150)][_0x7ee3bc(0x1fb)](),_0x1ee798);}[_0xf6fc87(0x20b)](_0x292428,_0x4fbf59){let _0x1201b6=[],_0x7ad2a6=_0x961e07=>{const _0x47fc14=_0x5acb;for(let _0x52f957 of _0x292428[_0x47fc14(0x2e4)](_0x961e07)??[])_0x1201b6[_0x47fc14(0x285)](_0x52f957),_0x7ad2a6(_0x52f957);};return _0x7ad2a6(_0x4fbf59),_0x1201b6;}[_0xf6fc87(0x281)](){const _0x5c789e=_0xf6fc87;let _0x33025e=this[_0x5c789e(0x150)][_0x5c789e(0x1fb)]()[_0x5c789e(0x169)][this[_0x5c789e(0x2b5)]];if(!_0x33025e)throw Error(_0x5c789e(0x2c5)+this[_0x5c789e(0x2b5)]+_0x5c789e(0x23f));return _0x33025e;}['_getRecordLinkField'](_0x1ac247){const _0x3eacf7=_0xf6fc87;let _0x36f5be=this[_0x3eacf7(0x150)][_0x3eacf7(0x1fb)]()[_0x3eacf7(0x191)][_0x1ac247];if(!_0x36f5be||_0x36f5be['type']!==l['BaseFieldType'][_0x3eacf7(0x218)])throw Error('[FRecord]:\x20field\x20\x22'+_0x1ac247+_0x3eacf7(0x146));return _0x36f5be;}['_getAttachmentField'](_0x4ed554){const _0x36f6be=_0xf6fc87;let _0x1faecd=this[_0x36f6be(0x150)][_0x36f6be(0x1fb)]()[_0x36f6be(0x191)][_0x4ed554];if(!_0x1faecd||_0x1faecd[_0x36f6be(0x14d)]!==l[_0x36f6be(0x13f)][_0x36f6be(0x2b7)])throw Error('[FRecord]:\x20field\x20\x22'+_0x4ed554+_0x36f6be(0x21e));return _0x1faecd;}};I=F=g([h(0x4,l['ICommandService']),h(0x5,l[_0xf6fc87(0x296)])],I);function L(_0x1d32f1){const _0x198d03=_0xf6fc87;return!!(_0x1d32f1&&typeof _0x1d32f1==_0x198d03(0x1a6)&&'id'in _0x1d32f1&&typeof _0x1d32f1['id']==_0x198d03(0x224)&&'name'in _0x1d32f1&&typeof _0x1d32f1['name']==_0x198d03(0x224));}function R(_0x314a16,_0x51e198,_0x271524){const _0xf59776=_0xf6fc87;if(!L(_0x314a16))throw Error(_0xf59776(0x1d6)+_0x271524+_0xf59776(0x1db)+_0x51e198+_0xf59776(0x2db));return{..._0x314a16};}let z=class{constructor(_0x5506b1,_0x29d74c,_0x340ce6,_0xfddf57,_0xbc4efb,_0x135a97,_0x17c6f7){const _0x10a10e=_0xf6fc87;this[_0x10a10e(0x233)]=_0x5506b1,this[_0x10a10e(0x150)]=_0x29d74c,this[_0x10a10e(0x1af)]=_0x340ce6,this[_0x10a10e(0x230)]=_0xfddf57,this[_0x10a10e(0x134)]=_0xbc4efb,this[_0x10a10e(0x1e6)]=_0x135a97,this[_0x10a10e(0x24b)]=_0x17c6f7;}['getId'](){return this['_viewId'];}['getPermission'](){const _0x2f32c8=_0xf6fc87;let _0x1b588e=this[_0x2f32c8(0x150)][_0x2f32c8(0x1f8)]();return new m(this['_base'][_0x2f32c8(0x1f8)](),(0x0,c[_0x2f32c8(0x16b)])(_0x1b588e,this[_0x2f32c8(0x1af)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x1b588e)],this[_0x2f32c8(0x134)],this[_0x2f32c8(0x1e6)]);}[_0xf6fc87(0x29e)](){const _0x1ebae3=_0xf6fc87;return this[_0x1ebae3(0x237)]();}[_0xf6fc87(0x1a0)](){const _0x32d906=_0xf6fc87;return this[_0x32d906(0x237)]()[_0x32d906(0x2ea)];}[_0xf6fc87(0x2df)](){const _0x407ac8=_0xf6fc87;return this[_0x407ac8(0x237)]()['type'];}['setName'](_0x823ca0){const _0x3d9d34=_0xf6fc87;return this[_0x3d9d34(0x134)]['syncExecuteCommand'](c[_0x3d9d34(0x13d)]['id'],{'unitId':this[_0x3d9d34(0x233)]['getId'](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'name':_0x823ca0});}[_0xf6fc87(0x1c7)](){const _0x347736=_0xf6fc87;let _0x54b961=this[_0x347736(0x2df)](),_0x3cf568=this['_getView']()[_0x347736(0x154)];switch(_0x54b961){case l[_0x347736(0x21c)][_0x347736(0x245)]:return _0x3cf568;case l[_0x347736(0x21c)][_0x347736(0x267)]:return _0x3cf568;case l[_0x347736(0x21c)][_0x347736(0x231)]:return _0x3cf568;case l['BaseViewType'][_0x347736(0x145)]:return _0x3cf568;case l[_0x347736(0x21c)][_0x347736(0x1de)]:return _0x3cf568;default:return _0x3cf568;}}[_0xf6fc87(0x1dd)](_0x564d33){const _0x20ed57=_0xf6fc87;return this[_0x20ed57(0x134)][_0x20ed57(0x1e1)](c[_0x20ed57(0x1ab)]['id'],{'unitId':this[_0x20ed57(0x233)]['getId'](),'tableId':this['_table'][_0x20ed57(0x1f8)](),'viewId':this[_0x20ed57(0x1af)],'patch':_0x564d33});}[_0xf6fc87(0x262)](){const _0x332576=_0xf6fc87;var _0x19fff3;return l[_0x332576(0x223)][_0x332576(0x275)](((_0x19fff3=this[_0x332576(0x237)]()['config'][_0x332576(0x176)])==null?void 0x0:_0x19fff3['rules'])??[]);}[_0xf6fc87(0x1ec)](_0x2e51c4){const _0x2d542f=_0xf6fc87;return this[_0x2d542f(0x134)][_0x2d542f(0x1e1)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x2d542f(0x233)][_0x2d542f(0x1f8)](),'tableId':this[_0x2d542f(0x150)]['getId'](),'viewId':this[_0x2d542f(0x1af)],'type':c['BaseConditionalColorRuleUpdateType'][_0x2d542f(0x2e0)],'rules':_0x2e51c4});}[_0xf6fc87(0x2a8)](_0x5279ce){const _0x18d2a9=_0xf6fc87;return this['_commandService']['syncExecuteCommand'](c[_0x18d2a9(0x153)]['id'],{'unitId':this[_0x18d2a9(0x233)][_0x18d2a9(0x1f8)](),'tableId':this['_table'][_0x18d2a9(0x1f8)](),'viewId':this['_viewId'],'type':c[_0x18d2a9(0x270)]['Add'],'rule':_0x5279ce});}[_0xf6fc87(0x17f)](_0x1de6b9){const _0x191215=_0xf6fc87;return this[_0x191215(0x134)][_0x191215(0x1e1)](c[_0x191215(0x153)]['id'],{'unitId':this['_base'][_0x191215(0x1f8)](),'tableId':this[_0x191215(0x150)][_0x191215(0x1f8)](),'viewId':this[_0x191215(0x1af)],'type':c['BaseConditionalColorRuleUpdateType'][_0x191215(0x16d)],'ruleId':_0x1de6b9});}['clearConditionalColorRules'](){const _0xe0c442=_0xf6fc87;return this['_commandService'][_0xe0c442(0x1e1)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0xe0c442(0x233)][_0xe0c442(0x1f8)](),'tableId':this[_0xe0c442(0x150)][_0xe0c442(0x1f8)](),'viewId':this['_viewId'],'type':c['BaseConditionalColorRuleUpdateType']['Clear']});}[_0xf6fc87(0x1c2)](){const _0x5ba25a=_0xf6fc87;return this['_getView']()[_0x5ba25a(0x24a)]??null;}['setFilter'](_0x2b5d4e){const _0x2d0ffe=_0xf6fc87;return this[_0x2d0ffe(0x134)][_0x2d0ffe(0x1e1)](c[_0x2d0ffe(0x17c)]['id'],{'unitId':this[_0x2d0ffe(0x233)][_0x2d0ffe(0x1f8)](),'tableId':this['_table'][_0x2d0ffe(0x1f8)](),'viewId':this[_0x2d0ffe(0x1af)],'filter':_0x2b5d4e});}[_0xf6fc87(0x1b6)](){const _0x26ccc7=_0xf6fc87;return this[_0x26ccc7(0x237)]()[_0x26ccc7(0x18a)]??[];}['setSort'](_0xbc1f85){const _0x2f35e9=_0xf6fc87;return this[_0x2f35e9(0x134)][_0x2f35e9(0x1e1)](c[_0x2f35e9(0x12a)]['id'],{'unitId':this[_0x2f35e9(0x233)]['getId'](),'tableId':this[_0x2f35e9(0x150)][_0x2f35e9(0x1f8)](),'viewId':this[_0x2f35e9(0x1af)],'sort':_0xbc1f85});}[_0xf6fc87(0x1f9)](){const _0x420aa8=_0xf6fc87;return this[_0x420aa8(0x237)]()[_0x420aa8(0x19a)]??[];}[_0xf6fc87(0x15d)](_0x1ae687){const _0x4a92ba=_0xf6fc87;return this[_0x4a92ba(0x134)]['syncExecuteCommand'](c['SetBaseViewGroupCommand']['id'],{'unitId':this['_base'][_0x4a92ba(0x1f8)](),'tableId':this[_0x4a92ba(0x150)]['getId'](),'viewId':this[_0x4a92ba(0x1af)],'group':_0x1ae687});}[_0xf6fc87(0x21b)](_0x4caa99){const _0x42d4e6=_0xf6fc87;var _0xfaa1d4;return y(this['_table'][_0x42d4e6(0x1fb)]()[_0x42d4e6(0x191)][_0x4caa99])?((_0xfaa1d4=this[_0x42d4e6(0x237)]()[_0x42d4e6(0x2cc)])==null?void 0x0:_0xfaa1d4[_0x4caa99])??{}:{};}[_0xf6fc87(0x19f)](){const _0x16f103=_0xf6fc87;let _0xc3f01a=this[_0x16f103(0x150)][_0x16f103(0x1fb)](),_0x26ef2c=this['_getView']();return(_0x26ef2c[_0x16f103(0x23b)]??_0xc3f01a[_0x16f103(0x23b)])['filter'](_0x2fdf1d=>{const _0x2d3173=_0x16f103;var _0x1bbdfb;let _0x18bcab=_0xc3f01a[_0x2d3173(0x191)][_0x2fdf1d];return y(_0x18bcab)&&!((_0x1bbdfb=_0x26ef2c[_0x2d3173(0x2cc)])!=null&&(_0x1bbdfb=_0x1bbdfb[_0x2fdf1d])!=null&&_0x1bbdfb['hidden']);})[_0x16f103(0x29f)](_0xe30d5b=>this['_injector'][_0x16f103(0x221)](_,this[_0x16f103(0x233)],this[_0x16f103(0x150)],_0xe30d5b));}['setFieldVisible'](_0x5d1af8,_0x3e33ee){const _0x4a8a92=_0xf6fc87;return y(this['_table']['getTable']()['fields'][_0x5d1af8])?this['_commandService'][_0x4a8a92(0x1e1)](c[_0x4a8a92(0x265)]['id'],{'unitId':this[_0x4a8a92(0x233)]['getId'](),'tableId':this[_0x4a8a92(0x150)][_0x4a8a92(0x1f8)](),'viewId':this[_0x4a8a92(0x1af)],'fieldId':_0x5d1af8,'visible':_0x3e33ee}):!0x1;}[_0xf6fc87(0x1f5)](_0x262004,_0x560e73){const _0x997fe9=_0xf6fc87;return y(this[_0x997fe9(0x150)][_0x997fe9(0x1fb)]()[_0x997fe9(0x191)][_0x262004])?this[_0x997fe9(0x134)][_0x997fe9(0x1e1)](c[_0x997fe9(0x239)]['id'],{'unitId':this['_base'][_0x997fe9(0x1f8)](),'tableId':this[_0x997fe9(0x150)][_0x997fe9(0x1f8)](),'viewId':this[_0x997fe9(0x1af)],'fieldId':_0x262004,'width':_0x560e73}):!0x1;}['moveField'](_0x463f54,_0x571095){const _0x3f72b9=_0xf6fc87;let _0x1204fc=this[_0x3f72b9(0x150)][_0x3f72b9(0x1fb)](),_0x90b0b4=_0x571095[_0x3f72b9(0x1b5)]??_0x571095[_0x3f72b9(0x234)];return!y(_0x1204fc[_0x3f72b9(0x191)][_0x463f54])||!_0x90b0b4||!y(_0x1204fc[_0x3f72b9(0x191)][_0x90b0b4])?!0x1:this[_0x3f72b9(0x134)]['syncExecuteCommand'](c[_0x3f72b9(0x27f)]['id'],{'unitId':this[_0x3f72b9(0x233)][_0x3f72b9(0x1f8)](),'tableId':this[_0x3f72b9(0x150)][_0x3f72b9(0x1f8)](),'viewId':this[_0x3f72b9(0x1af)],'fieldId':_0x463f54,'target':_0x571095});}[_0xf6fc87(0x1f1)](_0x29e487){const _0x54a0ae=_0xf6fc87;return this['_commandService']['syncExecuteCommand'](c[_0x54a0ae(0x1c8)]['id'],{'unitId':this[_0x54a0ae(0x233)][_0x54a0ae(0x1f8)](),'tableId':this[_0x54a0ae(0x150)][_0x54a0ae(0x1f8)](),'viewId':this[_0x54a0ae(0x1af)],'target':_0x29e487});}[_0xf6fc87(0x175)](){const _0x3c0956=_0xf6fc87;return this[_0x3c0956(0x134)]['syncExecuteCommand'](c[_0x3c0956(0x1bb)]['id'],{'unitId':this[_0x3c0956(0x233)][_0x3c0956(0x1f8)](),'tableId':this[_0x3c0956(0x150)][_0x3c0956(0x1f8)](),'viewId':this[_0x3c0956(0x1af)]});}[_0xf6fc87(0x18b)](){const _0x34af0b=_0xf6fc87;return this[_0x34af0b(0x24b)][_0x34af0b(0x18b)](this[_0x34af0b(0x233)][_0x34af0b(0x2af)]()['getSnapshot'](),this[_0x34af0b(0x150)][_0x34af0b(0x1f8)](),this[_0x34af0b(0x1af)]);}['_getView'](){const _0x22e7b4=_0xf6fc87;let _0x324f4f=this['_table']['getTable']()[_0x22e7b4(0x1bd)][this[_0x22e7b4(0x1af)]];if(!_0x324f4f)throw Error('[FView]:\x20view\x20\x22'+this[_0x22e7b4(0x1af)]+_0x22e7b4(0x23f));return _0x324f4f;}};z=g([h(0x4,l[_0xf6fc87(0x137)]),h(0x5,l['IPermissionService']),h(0x6,c['IBaseProjectionService'])],z);let B=class{constructor(_0x46f942,_0x511152,_0x9892f9,_0x3f06cb,_0x29c857,_0x12c2ac){const _0x280f29=_0xf6fc87;this[_0x280f29(0x233)]=_0x46f942,this['_tableId']=_0x511152,this[_0x280f29(0x230)]=_0x9892f9,this[_0x280f29(0x134)]=_0x3f06cb,this[_0x280f29(0x1e6)]=_0x29c857,this[_0x280f29(0x24b)]=_0x12c2ac;}[_0xf6fc87(0x2af)](){const _0x5e5aa2=_0xf6fc87;return this[_0x5e5aa2(0x233)][_0x5e5aa2(0x2af)]();}['getTable'](){return this['_getTable']();}[_0xf6fc87(0x1f8)](){return this['_tableId'];}[_0xf6fc87(0x2c6)](){const _0x26f74b=_0xf6fc87;return new m(this[_0x26f74b(0x2af)]()['getUnitId'](),(0x0,c[_0x26f74b(0x1f2)])(this['_tableId']),[],this[_0x26f74b(0x134)],this['_permissionService']);}['getHierarchyFieldId'](){const _0x3f7fbf=_0xf6fc87;return(0x0,c[_0x3f7fbf(0x1e4)])(this['_getTable']());}[_0xf6fc87(0x2bb)](_0xf51b04){const _0x36f2e9=_0xf6fc87;return this[_0x36f2e9(0x134)][_0x36f2e9(0x1e1)](c[_0x36f2e9(0x178)]['id'],{'unitId':this[_0x36f2e9(0x233)][_0x36f2e9(0x1f8)](),'tableId':this[_0x36f2e9(0x2a2)],'fieldId':_0xf51b04});}[_0xf6fc87(0x1a0)](){const _0x19f980=_0xf6fc87;return this[_0x19f980(0x2c2)]()[_0x19f980(0x2ea)];}[_0xf6fc87(0x1c3)](){const _0x3df914=_0xf6fc87;let _0x475e7b=this[_0x3df914(0x233)][_0x3df914(0x2af)]()['getSnapshot']();return(0x0,c[_0x3df914(0x159)])(this[_0x3df914(0x2c2)](),_0x475e7b);}[_0xf6fc87(0x26f)](_0x8c6366){const _0x5db4c5=_0xf6fc87;let _0x35637d=(0x0,c[_0x5db4c5(0x1e5)])(this[_0x5db4c5(0x233)][_0x5db4c5(0x2af)]()[_0x5db4c5(0x1c9)](),_0x8c6366,this[_0x5db4c5(0x2a2)]);if(!_0x35637d['valid'])throw Error(_0x5db4c5(0x2e9)+_0x8c6366+_0x5db4c5(0x2bc)+c[_0x5db4c5(0x13e)]+'\x20'+_0x35637d[_0x5db4c5(0x273)]);return this[_0x5db4c5(0x134)]['syncExecuteCommand'](c[_0x5db4c5(0x18e)]['id'],{'unitId':this['_base'][_0x5db4c5(0x1f8)](),'tableId':this[_0x5db4c5(0x2a2)],'name':_0x8c6366});}[_0xf6fc87(0x208)](_0x38321d,_0x4652ce){const _0x4bc3fa=_0xf6fc87;let _0x371ef8=this[_0x4bc3fa(0x233)][_0x4bc3fa(0x2af)]()['getSnapshot'](),_0x40902d=this['_getTable']();if(_0x4652ce){let _0x5728ea=this[_0x4bc3fa(0x24b)][_0x4bc3fa(0x18b)](_0x371ef8,this[_0x4bc3fa(0x2a2)],_0x4652ce),_0x5b801a=_0x40902d[_0x4bc3fa(0x1bd)][_0x4652ce],_0x55ab36=_0x38321d[_0x4bc3fa(0x198)]??J(_0x40902d,_0x5b801a,_0x5728ea),_0x3ce406=_0x4bc3fa(0x1d5)in _0x5728ea&&Array['isArray'](_0x5728ea[_0x4bc3fa(0x1d5)])?_0x5728ea[_0x4bc3fa(0x1d5)]:[];return(0x0,c[_0x4bc3fa(0x187)])({..._0x38321d,'table':_0x40902d,'fieldIds':_0x55ab36,'rows':_0x3ce406});}let _0x4bdc6c=(_0x40902d[_0x4bc3fa(0x180)]?_0x40902d['recordOrder'][_0x4bc3fa(0x29f)](_0x2662b8=>_0x40902d['records'][_0x2662b8]):Object[_0x4bc3fa(0x197)](_0x40902d['records'])[_0x4bc3fa(0x18a)]((_0x38da46,_0x33ede9)=>_0x38da46[_0x4bc3fa(0x291)][_0x4bc3fa(0x152)](_0x33ede9[_0x4bc3fa(0x291)])))[_0x4bc3fa(0x24a)](_0x34911b=>_0x34911b)[_0x4bc3fa(0x29f)](_0xb33558=>({'recordId':_0xb33558['id'],'values':_0xb33558['values']})),_0x5ace40=_0x38321d[_0x4bc3fa(0x198)]??_0x40902d[_0x4bc3fa(0x23b)][_0x4bc3fa(0x24a)](_0x45f3bf=>y(_0x40902d[_0x4bc3fa(0x191)][_0x45f3bf]));return(0x0,c[_0x4bc3fa(0x187)])({..._0x38321d,'table':_0x40902d,'fieldIds':_0x5ace40,'rows':_0x4bdc6c});}[_0xf6fc87(0x24d)](){const _0x5d7b32=_0xf6fc87;return this[_0x5d7b32(0x2c2)]()[_0x5d7b32(0x2c7)];}[_0xf6fc87(0x1eb)](){const _0x311e62=_0xf6fc87;let _0x2aecad=this[_0x311e62(0x2c2)]();return _0x2aecad[_0x311e62(0x23b)][_0x311e62(0x29f)](_0x2eb90b=>_0x2aecad['fields'][_0x2eb90b])[_0x311e62(0x24a)](y)[_0x311e62(0x29f)](_0x5979e2=>this[_0x311e62(0x230)][_0x311e62(0x221)](_,this['_base'],this,_0x5979e2['id']));}[_0xf6fc87(0x254)](_0x4a3866){const _0x287a09=_0xf6fc87;let _0x14f530=this[_0x287a09(0x2c2)]()[_0x287a09(0x191)][_0x4a3866];return y(_0x14f530)?this[_0x287a09(0x230)][_0x287a09(0x221)](_,this['_base'],this,_0x14f530['id']):null;}['getFieldByName'](_0x58c74c){const _0x4340a5=_0xf6fc87;let _0x12d585=this[_0x4340a5(0x2c2)]()[_0x4340a5(0x191)],_0x237669=Object[_0x4340a5(0x197)](_0x12d585)[_0x4340a5(0x25d)](_0x5c050a=>y(_0x5c050a)&&_0x5c050a['name']===_0x58c74c);return _0x237669?this[_0x4340a5(0x230)][_0x4340a5(0x221)](_,this[_0x4340a5(0x233)],this,_0x237669['id']):null;}[_0xf6fc87(0x1e0)](){const _0x4b9851=_0xf6fc87;let _0xbcdba1=this[_0x4b9851(0x2c2)]()['primaryFieldId'];return this[_0x4b9851(0x230)]['createInstance'](_,this[_0x4b9851(0x233)],this,_0xbcdba1);}[_0xf6fc87(0x27d)](_0x3c44d0,_0x697bb,_0x366f82){const _0x495dc5=_0xf6fc87;var _0x276e2e,_0x30c5f8;if(!Object[_0x495dc5(0x197)](l[_0x495dc5(0x13f)])['some'](_0x48c022=>_0x48c022===_0x697bb))throw Error(_0x495dc5(0x144)+String(_0x697bb)+'\x22.');if(_0x697bb===l[_0x495dc5(0x13f)]['Formula']&&this['_prepareFormulaFieldReferences'](_0x3c44d0,_0x366f82),_0x697bb===l[_0x495dc5(0x13f)][_0x495dc5(0x218)]&&(typeof(_0x366f82==null||(_0x276e2e=_0x366f82[_0x495dc5(0x173)])==null||(_0x276e2e=_0x276e2e[_0x495dc5(0x154)])==null?void 0x0:_0x276e2e['targetTableId'])!=_0x495dc5(0x224)||typeof _0x366f82[_0x495dc5(0x173)]['config'][_0x495dc5(0x283)]!=_0x495dc5(0x16c)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x120b9e={..._0x366f82==null?void 0x0:_0x366f82[_0x495dc5(0x173)],'id':(0x0,l[_0x495dc5(0x1d9)])(0x6),'name':_0x3c44d0,'type':_0x697bb,'config':(_0x366f82==null||(_0x30c5f8=_0x366f82['field'])==null?void 0x0:_0x30c5f8[_0x495dc5(0x154)])??{}};if(!this[_0x495dc5(0x134)][_0x495dc5(0x1e1)](c[_0x495dc5(0x1a7)]['id'],{'unitId':this['_base'][_0x495dc5(0x1f8)](),'tableId':this[_0x495dc5(0x2a2)],'field':_0x120b9e,'index':_0x366f82==null?void 0x0:_0x366f82[_0x495dc5(0x213)]}))throw Error(_0x495dc5(0x1bf)+_0x3c44d0+'\x22');return this[_0x495dc5(0x230)][_0x495dc5(0x221)](_,this['_base'],this,_0x120b9e['id']);}[_0xf6fc87(0x28d)](_0x3faef2,_0x283f84){const _0x49e1d=_0xf6fc87;var _0x268505;if(!_0x283f84||!(_0x49e1d(0x227)in _0x283f84)||!Array['isArray'](_0x283f84[_0x49e1d(0x227)]))throw Error(_0x49e1d(0x202));let _0x334100=this[_0x49e1d(0x134)]['syncExecuteCommand'](c[_0x49e1d(0x138)]['id'],{'unitId':this[_0x49e1d(0x233)][_0x49e1d(0x1f8)](),'tableId':this['_tableId'],'formula':String(((_0x268505=_0x283f84[_0x49e1d(0x173)])==null||(_0x268505=_0x268505[_0x49e1d(0x154)])==null?void 0x0:_0x268505[_0x49e1d(0x260)])??'')});if(!_0x334100[_0x49e1d(0x219)])throw Error(_0x334100[_0x49e1d(0x273)]??'Invalid\x20Base\x20formula.');if(_0x283f84[_0x49e1d(0x227)][_0x49e1d(0x2d5)]>0x0&&!this[_0x49e1d(0x134)][_0x49e1d(0x1e1)](f[_0x49e1d(0x26c)]['id'],{'unitId':this[_0x49e1d(0x233)][_0x49e1d(0x1f8)](),'references':_0x283f84[_0x49e1d(0x227)]}))throw Error(_0x49e1d(0x2b8)+_0x3faef2+'\x22');}[_0xf6fc87(0x29b)](){const _0xa122=_0xf6fc87;return this[_0xa122(0x27c)]()[_0xa122(0x29f)](_0x22ac37=>this[_0xa122(0x230)]['createInstance'](I,this[_0xa122(0x233)],this,_0x22ac37,this[_0xa122(0x230)]));}['getRecordById'](_0x352c21){const _0x1bc0b3=_0xf6fc87;return this[_0x1bc0b3(0x2c2)]()[_0x1bc0b3(0x169)][_0x352c21]?this[_0x1bc0b3(0x230)]['createInstance'](I,this['_base'],this,_0x352c21,this[_0x1bc0b3(0x230)]):null;}[_0xf6fc87(0x1b4)](_0x11c115={}){const _0x30b77d=_0xf6fc87;let _0x248e60=this[_0x30b77d(0x2c2)](),_0x4dfd92=this['_resolveRecordIds'](_0x11c115),_0x53871f=Math[_0x30b77d(0x25a)](0x0,_0x11c115['offset']??0x0),_0x6c428=_0x11c115[_0x30b77d(0x17b)]==null?null:Math[_0x30b77d(0x25a)](0x0,_0x11c115['limit']),_0x53748d=H(_0x4dfd92[_0x30b77d(0x29f)](_0x4405b4=>_0x248e60['records'][_0x4405b4])[_0x30b77d(0x24a)](_0xb749ae=>W(_0xb749ae,_0x248e60,_0x11c115[_0x30b77d(0x24a)])),_0x248e60,_0x11c115[_0x30b77d(0x18a)]);return{'records':V(_0x53748d,_0x11c115)[_0x30b77d(0x29f)](_0x4b8a5f=>this[_0x30b77d(0x230)][_0x30b77d(0x221)](I,this[_0x30b77d(0x233)],this,_0x4b8a5f['id'],this[_0x30b77d(0x230)])),'total':_0x53748d[_0x30b77d(0x2d5)],'offset':_0x53871f,'limit':_0x6c428,'hasMore':_0x6c428!=null&&_0x53871f+_0x6c428<_0x53748d[_0x30b77d(0x2d5)]};}[_0xf6fc87(0x196)](_0x45b9c2,_0x2b1bec='id',_0x4daeec){const _0x30bb3d=_0xf6fc87;let _0x1a4011=this[_0x30bb3d(0x2c2)](),_0x1baf94=Date[_0x30bb3d(0x1cf)](),_0x11b930={..._0x4daeec,'id':(0x0,l[_0x30bb3d(0x1d9)])(0x6),'values':b(_0x1a4011,_0x45b9c2,_0x2b1bec),'orderKey':(_0x4daeec==null?void 0x0:_0x4daeec[_0x30bb3d(0x291)])||''+_0x1baf94,'createdAt':(_0x4daeec==null?void 0x0:_0x4daeec[_0x30bb3d(0x2cf)])||_0x1baf94,'updatedAt':(_0x4daeec==null?void 0x0:_0x4daeec[_0x30bb3d(0x2a3)])||_0x1baf94};if(!this['_commandService'][_0x30bb3d(0x1e1)](c['CreateBaseRecordCommand']['id'],{'unitId':this['_base'][_0x30bb3d(0x1f8)](),'tableId':this[_0x30bb3d(0x2a2)],'record':_0x11b930,'source':c[_0x30bb3d(0x15e)][_0x30bb3d(0x1d2)]}))throw Error(_0x30bb3d(0x1c4)+_0x11b930['id']+'\x22');return this[_0x30bb3d(0x230)]['createInstance'](I,this['_base'],this,_0x11b930['id'],this['_injector']);}[_0xf6fc87(0x18f)](_0x1fdc9c){const _0x5a868e=_0xf6fc87;if(!_0x1fdc9c[_0x5a868e(0x2d5)])return[];let _0x54a9bb=this[_0x5a868e(0x2c2)](),_0x11f41d=Date['now'](),_0x5be16d=_0x1fdc9c[_0x5a868e(0x29f)]((_0x3cf349,_0x349323)=>{const _0x4dab2d=_0x5a868e;var _0x5a9ca2,_0x4e5149,_0xc9ef60;return{..._0x3cf349[_0x4dab2d(0x1c5)],'id':(0x0,l[_0x4dab2d(0x1d9)])(0x6),'values':b(_0x54a9bb,_0x3cf349[_0x4dab2d(0x197)],_0x3cf349[_0x4dab2d(0x20c)]??'id'),'orderKey':((_0x5a9ca2=_0x3cf349['record'])==null?void 0x0:_0x5a9ca2[_0x4dab2d(0x291)])||''+(_0x11f41d+_0x349323),'createdAt':((_0x4e5149=_0x3cf349[_0x4dab2d(0x1c5)])==null?void 0x0:_0x4e5149[_0x4dab2d(0x2cf)])||_0x11f41d,'updatedAt':((_0xc9ef60=_0x3cf349[_0x4dab2d(0x1c5)])==null?void 0x0:_0xc9ef60['updatedAt'])||_0x11f41d};});if(!this[_0x5a868e(0x134)][_0x5a868e(0x1e1)](c[_0x5a868e(0x1cb)]['id'],{'unitId':this['_base'][_0x5a868e(0x1f8)](),'tableId':this[_0x5a868e(0x2a2)],'records':_0x5be16d,'source':c[_0x5a868e(0x15e)][_0x5a868e(0x1d2)]}))throw Error(_0x5a868e(0x2a0));return _0x5be16d[_0x5a868e(0x29f)](_0x2bbadb=>this[_0x5a868e(0x230)][_0x5a868e(0x221)](I,this['_base'],this,_0x2bbadb['id'],this['_injector']));}['deleteRecords'](_0x554f84){const _0x362720=_0xf6fc87;return!_0x554f84[_0x362720(0x2d5)]||this[_0x362720(0x134)][_0x362720(0x1e1)](c[_0x362720(0x160)]['id'],{'unitId':this[_0x362720(0x233)][_0x362720(0x1f8)](),'tableId':this['_tableId'],'recordIds':_0x554f84,'source':c['BaseEventSource'][_0x362720(0x1d2)]});}[_0xf6fc87(0x200)](_0x585cd6,_0x33a7ec,_0x28d165=0x1,_0x21b87c=0x1){const _0x241d90=_0xf6fc87;return this['_injector'][_0x241d90(0x221)](A,this['_base'],this,{'startRow':_0x585cd6,'endRow':_0x585cd6+_0x28d165-0x1,'startColumn':_0x33a7ec,'endColumn':_0x33a7ec+_0x21b87c-0x1},this[_0x241d90(0x230)]);}[_0xf6fc87(0x258)](){const _0x516d0b=_0xf6fc87;var _0x51c93f;let _0x50b37f=(0x0,c['ensureBaseTableCellLayout'])(this['_getTable']()),_0x415d08=((_0x51c93f=_0x50b37f[_0x516d0b(0x180)])==null?void 0x0:_0x51c93f['length'])??0x0,_0x538d45=_0x50b37f['fieldOrder'][_0x516d0b(0x24a)](_0x55ed66=>y(_0x50b37f[_0x516d0b(0x191)][_0x55ed66]))[_0x516d0b(0x2d5)];return this[_0x516d0b(0x200)](0x0,0x0,Math[_0x516d0b(0x25a)](_0x415d08,0x1),Math['max'](_0x538d45,0x1));}[_0xf6fc87(0x17e)](){const _0x5d0819=_0xf6fc87;let _0x150354=this['_getTable']();return _0x150354[_0x5d0819(0x195)][_0x5d0819(0x24a)](_0x219c45=>_0x150354[_0x5d0819(0x1bd)][_0x219c45])['map'](_0x4754ab=>this[_0x5d0819(0x230)][_0x5d0819(0x221)](z,this['_base'],this,_0x4754ab,this[_0x5d0819(0x230)]));}[_0xf6fc87(0x1ce)](_0x534849){const _0xe5cd16=_0xf6fc87;return this[_0xe5cd16(0x2c2)]()[_0xe5cd16(0x1bd)][_0x534849]?this[_0xe5cd16(0x230)]['createInstance'](z,this['_base'],this,_0x534849,this[_0xe5cd16(0x230)]):null;}[_0xf6fc87(0x25f)](_0x2c92a5){const _0x115e58=_0xf6fc87;let _0x2749fd=this[_0x115e58(0x2c2)](),_0x3d8350=Object[_0x115e58(0x197)](_0x2749fd[_0x115e58(0x1bd)])[_0x115e58(0x25d)](_0x44790f=>_0x44790f[_0x115e58(0x2ea)]===_0x2c92a5);return _0x3d8350?this[_0x115e58(0x230)]['createInstance'](z,this[_0x115e58(0x233)],this,_0x3d8350['id'],this[_0x115e58(0x230)]):null;}[_0xf6fc87(0x2aa)](_0x3b8d5f,_0x3a2591,_0x1eeb5d){const _0x5c3348=_0xf6fc87;var _0x20cff8,_0x1733ba,_0x3fe71d,_0x4834bb;let _0x332904=this[_0x5c3348(0x2c2)](),_0x4d3722=(_0x1eeb5d==null||(_0x20cff8=_0x1eeb5d[_0x5c3348(0x13c)])==null?void 0x0:_0x20cff8[_0x5c3348(0x23b)])??_0x332904[_0x5c3348(0x23b)],_0x4ca0ec=[l[_0x5c3348(0x1d1)],..._0x4d3722[_0x5c3348(0x24a)](_0x399702=>y(_0x332904[_0x5c3348(0x191)][_0x399702]))],_0x418e20={..._0x1eeb5d==null?void 0x0:_0x1eeb5d[_0x5c3348(0x13c)],'id':(0x0,l[_0x5c3348(0x1d9)])(0x6),'name':_0x3b8d5f,'type':_0x3a2591,'tableId':this[_0x5c3348(0x2a2)],'config':(_0x1eeb5d==null||(_0x1733ba=_0x1eeb5d[_0x5c3348(0x13c)])==null?void 0x0:_0x1733ba['config'])??{},'fieldOrder':_0x4ca0ec,'fieldSettings':{..._0x1eeb5d==null||(_0x3fe71d=_0x1eeb5d['view'])==null?void 0x0:_0x3fe71d[_0x5c3348(0x2cc)],[l['BASE_RECORD_ID_FIELD_ID']]:{..._0x1eeb5d==null||(_0x4834bb=_0x1eeb5d['view'])==null||(_0x4834bb=_0x4834bb[_0x5c3348(0x2cc)])==null?void 0x0:_0x4834bb[l[_0x5c3348(0x1d1)]],'hidden':!0x0}}};if(!this[_0x5c3348(0x134)][_0x5c3348(0x1e1)](c['CreateBaseViewCommand']['id'],{'unitId':this[_0x5c3348(0x233)][_0x5c3348(0x1f8)](),'tableId':this[_0x5c3348(0x2a2)],'view':_0x418e20,'index':_0x1eeb5d==null?void 0x0:_0x1eeb5d[_0x5c3348(0x213)]}))throw Error(_0x5c3348(0x190)+_0x3b8d5f+'\x22');return this[_0x5c3348(0x230)][_0x5c3348(0x221)](z,this['_base'],this,_0x418e20['id'],this[_0x5c3348(0x230)]);}[_0xf6fc87(0x23a)](){const _0x4bc57c=_0xf6fc87;let _0x4b65e8=this[_0x4bc57c(0x2c2)](),_0x300b42=_0x4b65e8[_0x4bc57c(0x23b)][_0x4bc57c(0x24a)](_0x14ac27=>y(_0x4b65e8[_0x4bc57c(0x191)][_0x14ac27])),_0xe9fafe=_0x4b65e8[_0x4bc57c(0x195)][_0x4bc57c(0x24a)](_0x471b66=>_0x4b65e8[_0x4bc57c(0x1bd)][_0x471b66]);return{'id':_0x4b65e8['id'],'name':_0x4b65e8[_0x4bc57c(0x2ea)],'formulaName':this['getFormulaName'](),'primaryFieldId':_0x4b65e8[_0x4bc57c(0x2c7)],'fieldIds':_0x300b42,'viewIds':_0xe9fafe,'recordCount':this[_0x4bc57c(0x27c)]()[_0x4bc57c(0x2d5)],'fields':_0x300b42['map'](_0x4acba2=>{const _0x50b474=_0x4bc57c;let _0x543e35=_0x4b65e8['fields'][_0x4acba2];return{'id':_0x543e35['id'],'name':_0x543e35['name'],'type':_0x543e35[_0x50b474(0x14d)],'config':_0x543e35[_0x50b474(0x154)],'readonly':_0x543e35[_0x50b474(0x1e8)],'description':_0x543e35['description']};}),'views':_0xe9fafe['map'](_0x257cfb=>{const _0x389268=_0x4bc57c;let _0x6fd7b=_0x4b65e8[_0x389268(0x1bd)][_0x257cfb];return{'id':_0x6fd7b['id'],'name':_0x6fd7b[_0x389268(0x2ea)],'type':_0x6fd7b['type']};})};}[_0xf6fc87(0x2c2)](){const _0x177867=_0xf6fc87;let _0x32fa27=this[_0x177867(0x233)][_0x177867(0x2af)]()[_0x177867(0x1c9)]()[_0x177867(0x216)][this[_0x177867(0x2a2)]];if(!_0x32fa27)throw Error(_0x177867(0x201)+this[_0x177867(0x2a2)]+_0x177867(0x23f));return _0x32fa27;}[_0xf6fc87(0x27c)](_0x1ffa8b={}){const _0x789ad1=_0xf6fc87;let _0x523595=this[_0x789ad1(0x233)][_0x789ad1(0x2af)]()[_0x789ad1(0x1c9)](),_0x303e70=this[_0x789ad1(0x2c2)]();if(_0x1ffa8b[_0x789ad1(0x2bd)]){let _0x411377=this[_0x789ad1(0x24b)][_0x789ad1(0x18b)](_0x523595,this['_tableId'],_0x1ffa8b[_0x789ad1(0x2bd)]);if(_0x789ad1(0x1d5)in _0x411377&&Array[_0x789ad1(0x1e9)](_0x411377[_0x789ad1(0x1d5)]))return _0x411377['rows']['map'](_0x414a8a=>_0x414a8a['recordId']);}return(_0x303e70['recordOrder']?_0x303e70['recordOrder'][_0x789ad1(0x29f)](_0xa12604=>_0x303e70['records'][_0xa12604]):Object[_0x789ad1(0x197)](_0x303e70[_0x789ad1(0x169)])[_0x789ad1(0x18a)]((_0x59a49a,_0xa35d6e)=>_0x59a49a[_0x789ad1(0x291)]['localeCompare'](_0xa35d6e['orderKey'])))[_0x789ad1(0x24a)](_0x2defb8=>_0x2defb8)[_0x789ad1(0x29f)](_0x59dd20=>_0x59dd20['id']);}};B=g([h(0x3,l[_0xf6fc87(0x137)]),h(0x4,l[_0xf6fc87(0x296)]),h(0x5,c['IBaseProjectionService'])],B);function V(_0x8fe878,_0x56aa4b){const _0xb6ca8c=_0xf6fc87;let _0x189f2a=Math['max'](0x0,_0x56aa4b[_0xb6ca8c(0x277)]??0x0);return _0x56aa4b[_0xb6ca8c(0x17b)]==null?_0x8fe878[_0xb6ca8c(0x2da)](_0x189f2a):_0x8fe878[_0xb6ca8c(0x2da)](_0x189f2a,_0x189f2a+Math[_0xb6ca8c(0x25a)](0x0,_0x56aa4b['limit']));}function H(_0x19340d,_0x54d7d3,_0x1f9d48=[]){const _0x526b00=_0xf6fc87;return _0x1f9d48[_0x526b00(0x2d5)]?[..._0x19340d][_0x526b00(0x18a)]((_0x5bd7d3,_0x26ac2a)=>{const _0x32692c=_0x526b00;for(let _0x5a09b5 of _0x1f9d48){var _0x59a308;let _0x3d4f32=_0x5a09b5[_0x32692c(0x22b)]===l[_0x32692c(0x26e)][_0x32692c(0x206)]?-0x1:0x1,_0x47b35f=U(_0x5bd7d3[_0x32692c(0x197)][_0x5a09b5['fieldId']],_0x26ac2a[_0x32692c(0x197)][_0x5a09b5[_0x32692c(0x272)]],(_0x59a308=_0x54d7d3[_0x32692c(0x191)][_0x5a09b5[_0x32692c(0x272)]])==null?void 0x0:_0x59a308['type']);if(_0x47b35f!==0x0)return _0x47b35f*_0x3d4f32;}return String(_0x5bd7d3[_0x32692c(0x291)]??_0x5bd7d3['id'])['localeCompare'](String(_0x26ac2a[_0x32692c(0x291)]??_0x26ac2a['id']));}):_0x19340d;}function U(_0x5ebb45,_0x5005a7,_0x1fc6e4){const _0x33e6bd=_0xf6fc87;return _0x5ebb45==null&&_0x5005a7==null?0x0:_0x5ebb45==null?-0x1:_0x5005a7==null?0x1:typeof _0x5ebb45==_0x33e6bd(0x242)&&typeof _0x5005a7=='number'?_0x5ebb45-_0x5005a7:_0x1fc6e4===l[_0x33e6bd(0x13f)][_0x33e6bd(0x2ad)]?Number(_0x5ebb45)-Number(_0x5005a7):String(_0x5ebb45)[_0x33e6bd(0x152)](String(_0x5005a7));}function W(_0x25be1a,_0x4267d7,_0x5697fa){const _0xbaf2e3=_0xf6fc87;var _0x3061bf;if(!_0x5697fa||!((_0x3061bf=_0x5697fa[_0xbaf2e3(0x193)])!=null&&_0x3061bf['length']))return!0x0;let {conjunction:_0x114653=l['BaseFilterConjunction']['OR'],conditions:_0x1b0dcc}=_0x5697fa;return _0x114653===l[_0xbaf2e3(0x279)][_0xbaf2e3(0x17d)]&&_0x1b0dcc['length']>0x1?_0x1b0dcc['every'](_0x4f43a8=>G(_0x25be1a,_0x4267d7,_0x4f43a8)):_0x1b0dcc[_0xbaf2e3(0x185)](_0x5e6bd6=>G(_0x25be1a,_0x4267d7,_0x5e6bd6));}function G(_0x5e1706,_0x1cf9d4,_0x358aad){const _0x1436ad=_0xf6fc87;let _0x15081b=_0x5e1706[_0x1436ad(0x197)][_0x358aad[_0x1436ad(0x272)]],_0x1fb611=_0x1cf9d4['fields'][_0x358aad['fieldId']];if(K(_0x358aad)){let _0x315f00=q(_0x358aad)[_0x1436ad(0x1cc)](String(_0x15081b??''));return _0x358aad['operator']===_0x1436ad(0x2d9)?_0x315f00:!_0x315f00;}return!_0x1fb611||(0x0,c[_0x1436ad(0x2e3)])(_0x15081b,_0x358aad[_0x1436ad(0x139)],_0x358aad['value'],_0x1fb611);}function _0x566b(){const _0x2cc9a0=['BaseConditionalColorRuleUpdateType','getBases','fieldId','reason','getTableId','deepClone','getDescendants','offset','getBaseId','BaseFilterConjunction','Duplicate\x20Base\x20field\x20name:\x20','trim','_resolveRecordIds','addField','getValue','SetBaseViewFieldOrderCommand','startRow','_getRecord','UniverInstanceType','multiple','getRecordById','push','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','extend','BeforeBaseTableCellValueChange','call','value','function','\x22:\x20expected\x20an\x20array.','_prepareFormulaFieldReferences','getDefaultValue','prototype','registerEventHandler','orderKey','subtreeHeightByRecordId','executeCommand','setValues','getRecord','IPermissionService','getBasePermissionValue','toStringTag','default','_writeFormulaExternalReferences','getRecords','getNumColumns','resolveBaseFieldKey','getView','map','Failed\x20to\x20add\x20records','getPoint','_tableId','updatedAt','getParent','Event','setReadOnly','BeforeBaseHierarchyChange','addConditionalColorRule',':\x20\x22','createView','_parentObjectIds','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','Date','isReadonly','getBase','_initialize','setAttachments','_baseTableId',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','recordIds','_recordId','BaseRecordLinkRole','Attachment','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','parentByRecordId','setHierarchyField','\x22.\x20','viewId','getField','validateBaseHierarchyRecordPatches','BeforeBaseTableViewCreate','flatMap','_getTable','createDefaultBaseTableSnapshot','FBaseInitialable','[FRecord]:\x20record\x20\x22','getPermission','primaryFieldId','invalid','DeleteBaseRecordCommand','getValues',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','fieldSettings','clear','getAttachments','createdAt','BaseTableViewCreated','\x20for\x20field\x20\x22','_fieldId','getAllUnitsForType','CreateBaseTableCommand','length','ImageSourceType','setObjectPermissions','\x20exceeds\x20range\x20size\x20','matches','slice','\x22\x20is\x20invalid.','deleteAttachments','BeforeBaseTableCreate','table','getType','Set','_unitId','iterator','matchesBaseCondition','get','_baseUnitId','getDescription','SetBaseRecordValuesCommand','711zCmKHy','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','name','UpdateBaseFieldCommand','primaryFieldName','SetBaseViewSortCommand','setOrderKey','childrenByParentId','_getField','BASE64','_objectId','fromEntries','setParent','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','caseSensitive','_commandService','\x22\x20must\x20be\x20a\x20non-empty\x20string.',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','ICommandService','ValidateBaseFormulaCommand','operator','getBaseFacade','Formula','view','RenameBaseViewCommand','BASE_TABLE_NAME_REQUIREMENTS','BaseFieldType','commonExtend','Edit','createUniqueBaseTableName','params','Unsupported\x20Base\x20field\x20type\x20\x22','Gantt','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','10YgYVRy','_getHierarchyEventContext','BaseTableRecordCreated','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','from','[FRecord]:\x20invalid\x20RecordLink\x20value.','type','_getRecordLinkField','validateRecordLinkValue','_table','BaseConditionalColorOperator','localeCompare','UpdateBaseViewConditionalColorRulesCommand','config','FEventName','1176364YIevqB','unitId','cancel','getBaseFormulaTableName','ChangeBaseFieldTypeCommand','URL','RecordId','setGroup','BaseEventSource','CanceledError','BatchDeleteBaseRecordsCommand','isFinite','setDefaultValue','_getAttachmentField','deleteTable','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','CreateBaseRecordCommand','BaseTableCellValueChanged','_resourceLoaderService','records','endRow','getBaseViewPermissionObjectId','boolean','Delete','entries','_getHierarchyIndex','UUID',':\x20expected\x20an\x20object.','tableId','field','deleteProperty','delete','conditionalColoring','size','SetBaseTableHierarchyFieldCommand','setEditable','UNIVER_BASE','limit','SetBaseViewFilterCommand','AND','getViews','deleteConditionalColorRule','recordOrder','Inject','beforeCommandExecuted','BeforeBaseTableFieldCreate','1rwvGxd','some','ApplyBaseJson1Mutation','searchBaseTable',',\x20max\x20columns:\x20','[FBase]:\x20invalid\x20table\x20name\x20\x22','sort','getProjection','getActiveBaseHierarchyFieldIds','auto','RenameBaseTableCommand','addRecords','Failed\x20to\x20create\x20view\x20\x22','fields','tableOrder','conditions','FBasesEventNameMixin','viewOrder','addRecord','values','fieldIds','BaseFieldKeyEnum','group','width','getTableById','save','[FBase]:\x20table\x20\x22','getVisibleFields','getName','fromCollab','canEdit','BaseConditionalDateMode','Auto','26900aDErWd','object','CreateBaseFieldCommand','__esModule','decorate','CreateBaseViewCommand','UpdateBaseViewConfigCommand','getColumn','onCommandExecuted','buildBaseHierarchyIndex','_viewId','BaseHierarchyErrorCode','base','FBaseTableRecord','_inject','queryRecords','beforeFieldId','getSort','UpdateBaseCellCommand','36hsPyUW','parseRecordLinkIds','forEach','DeleteBaseViewCommand','mimeType','views','recordId','Failed\x20to\x20add\x20field\x20\x22','hidden','BaseFilterOperator','getFilter','getFormulaName','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','record','DeleteBaseTableCommand','getConfig','MoveBaseViewCommand','getSnapshot','disposeWithMe','BatchCreateBaseRecordsCommand','test','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','getViewById','now','resolveBaseFieldValues','BASE_RECORD_ID_FIELD_ID','Facade','startsWith','changeType','rows','[FRecord]:\x20attachment\x20at\x20index\x20','[FRecord]:\x20RecordLink\x20field\x20\x22','Name','generateRandomId','MoveBaseHierarchyRecordCommand','\x20in\x20field\x20\x22','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','updateConfig','Gallery','duplicateTable','getPrimaryField','syncExecuteCommand','symbol','DeleteBaseFieldCommand','resolveBaseHierarchyFieldId','validateBaseTableName','_permissionService','setPoint','readonly','isArray','BeforeBaseTableRecordCreate','getFields','setConditionalColorRules','Failed\x20to\x20duplicate\x20table\x20\x22','indexOf','data:','_initBaseBeforeEvents','move','getBaseTablePermissionObjectId','BaseTableFieldCreated','Invalid\x20Base\x20regex\x20filter:\x20','setFieldWidth','Base\x20field\x20not\x20found:\x20','getTables','getId','getGroup','serializeRecordLinkIds','getTable','CreateBaseChildRecordCommand','DuplicateBaseRecordCommand','has','source','getRange','[FTable]:\x20table\x20\x22','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getNumRows','toPrimitive','DESC','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','search','_initBaseAfterEvents','BaseTableCreated','_collectDescendantIds','fieldKey','[FBaseRange]:\x20values\x20size\x20','FBaseTableRange','350xbZJha','MoveBaseFieldCommand','sourceType','4548BvqRJM','index','endColumn','getBaseFieldPermissionObjectId','tables','fireEvent','RecordLink','valid','includes','getFieldSettings','BaseViewType','constructor','\x22\x20is\x20not\x20an\x20Attachment\x20field.','create','UnitAction','createInstance','getLinkedRecordIds','Tools','string','FBase','rowId','externalReferences','FBaseObjectPermission','getRow','SetBasePermissionCommand','direction','setLinkedRecordIds','enumerable','setValue','SetBasePermissionsCommand','_injector','Calendar','getActiveBase','_base','afterFieldId','startColumn','parentRecordId','_getView','_getFieldIds','SetBaseViewFieldWidthCommand','getSchema','fieldOrder','BaseHierarchyChanged','Module','IResourceLoaderService','\x22\x20does\x20not\x20exist.','ensureBaseTableCellLayout','getTableFacade','number','17715276kxOvhj','_range','Grid','update','custom','3235749jvyGHX','saveUnit','filter','_projectionService','Invalid\x20attachment\x20at\x20index\x20','getPrimaryFieldId','FEnum','warn','getTableByName','message','description','_fireBeforeHierarchyChange','getFieldById','getOwnPropertyDescriptor','91902dPbjHh','_univerInstanceService','getDataRange','145480WLeNJP','max','\x20Copy',',\x20range:\x20','find','canEditBaseTargets','getViewByName','formula','\x22\x20has\x20invalid\x20config.','getConditionalColorRules','hasOwnProperty','getUnitId','SetBaseViewFieldVisibleCommand','hierarchyChanges','Kanban','getOwnPropertyNames','getChildren','validateBaseHierarchyRecordCreations','createBase','UpsertHostExternalReferencesCommand','defineProperty','BaseSortDirection','setName'];_0x566b=function(){return _0x2cc9a0;};return _0x566b();}function K(_0x50ae5a){const _0x3ccf70=_0xf6fc87;return _0x50ae5a[_0x3ccf70(0x139)]==='matches'||_0x50ae5a[_0x3ccf70(0x139)]==='notMatches';}function q(_0x4134dd){const _0xcfc27f=_0xf6fc87;let _0x479058=String(_0x4134dd[_0xcfc27f(0x28a)]??'');if(_0x479058['length']>0x200)throw Error(_0xcfc27f(0x165));try{return new RegExp(_0x479058,_0x4134dd[_0xcfc27f(0x133)]?void 0x0:'i');}catch(_0x4c24b3){throw Error(_0xcfc27f(0x1f4)+_0x479058+'.\x20'+(_0x4c24b3 instanceof Error?_0x4c24b3[_0xcfc27f(0x251)]:String(_0x4c24b3)));}}function J(_0x2d1a4b,_0x4cb1e3,_0x438b6d){const _0x5e8ac5=_0xf6fc87;if(_0x438b6d[_0x5e8ac5(0x14d)]!==_0x5e8ac5(0x2c8)&&_0x438b6d[_0x5e8ac5(0x14d)]!==_0x5e8ac5(0x247)){var _0x4f2273;if(_0x438b6d[_0x5e8ac5(0x14d)]===l[_0x5e8ac5(0x21c)][_0x5e8ac5(0x267)]){var _0x13ed3d;let _0x34fd7c=[((_0x13ed3d=_0x438b6d[_0x5e8ac5(0x191)])==null||(_0x13ed3d=_0x13ed3d[0x0])==null?void 0x0:_0x13ed3d['id'])??_0x2d1a4b['primaryFieldId'],..._0x438b6d['visibleCardFieldIds']??[]];return Array[_0x5e8ac5(0x14b)](new Set(_0x34fd7c[_0x5e8ac5(0x24a)](_0x43a639=>!!_0x2d1a4b[_0x5e8ac5(0x191)][_0x43a639])));}if((_0x4f2273=_0x438b6d['fields'])!=null&&_0x4f2273[_0x5e8ac5(0x2d5)])return _0x438b6d['fields'][_0x5e8ac5(0x29f)](_0x52da2b=>_0x52da2b['id'])[_0x5e8ac5(0x24a)](_0x249a57=>{const _0x3dfb27=_0x5e8ac5;var _0x426c6a;return!(!_0x2d1a4b[_0x3dfb27(0x191)][_0x249a57]||_0x4cb1e3!=null&&(_0x426c6a=_0x4cb1e3['fieldSettings'])!=null&&(_0x426c6a=_0x426c6a[_0x249a57])!=null&&_0x426c6a['hidden']);});}return _0x2d1a4b[_0x5e8ac5(0x23b)][_0x5e8ac5(0x24a)](_0xbc22ef=>{const _0x1da498=_0x5e8ac5;var _0x1d9087;return!(!_0x2d1a4b[_0x1da498(0x191)][_0xbc22ef]||_0x4cb1e3!=null&&(_0x1d9087=_0x4cb1e3['fieldSettings'])!=null&&(_0x1d9087=_0x1d9087[_0xbc22ef])!=null&&_0x1d9087[_0x1da498(0x1c0)]);});}let Y=class extends u[_0xf6fc87(0x225)]{constructor(_0x356197,_0x2a715a,_0x518623,_0x157393,_0x22001f){const _0x5234b8=_0xf6fc87;super(),this['_base']=_0x356197,this[_0x5234b8(0x230)]=_0x2a715a,this[_0x5234b8(0x168)]=_0x518623,this[_0x5234b8(0x134)]=_0x157393,this[_0x5234b8(0x1e6)]=_0x22001f;}[_0xf6fc87(0x2af)](){const _0x18bd8e=_0xf6fc87;return this[_0x18bd8e(0x233)];}[_0xf6fc87(0x1f8)](){return this['_base']['getUnitId']();}[_0xf6fc87(0x2c6)](){const _0x7df766=_0xf6fc87;return new p(this[_0x7df766(0x1f8)](),this[_0x7df766(0x134)],this[_0x7df766(0x1e6)]);}[_0xf6fc87(0x19d)](){const _0x468c0c=_0xf6fc87;return this['_resourceLoaderService'][_0x468c0c(0x249)](this[_0x468c0c(0x1f8)]())??l[_0x468c0c(0x223)]['deepClone'](this[_0x468c0c(0x233)][_0x468c0c(0x1c9)]());}['getName'](){const _0x1ff484=_0xf6fc87;return this['_base'][_0x1ff484(0x1c9)]()[_0x1ff484(0x2ea)];}[_0xf6fc87(0x26f)](_0x4d4afc){const _0x747456=_0xf6fc87;this[_0x747456(0x134)]['syncExecuteCommand'](c['SetBaseNameCommand']['id'],{'unitId':this[_0x747456(0x1f8)](),'name':_0x4d4afc});}['getTables'](){const _0x1b9ad1=_0xf6fc87;let _0x1b03d2=this['_base']['getSnapshot']();return _0x1b03d2[_0x1b9ad1(0x192)]['map'](_0x24142a=>_0x1b03d2[_0x1b9ad1(0x216)][_0x24142a])[_0x1b9ad1(0x24a)](_0x271d60=>_0x271d60)['map'](_0x2e4e2d=>this[_0x1b9ad1(0x230)][_0x1b9ad1(0x221)](B,this,_0x2e4e2d['id'],this[_0x1b9ad1(0x230)]));}['getTableById'](_0x28062b){const _0x4d8be8=_0xf6fc87;let _0xacf5dd=this[_0x4d8be8(0x233)][_0x4d8be8(0x1c9)]()[_0x4d8be8(0x216)][_0x28062b];return _0xacf5dd?this[_0x4d8be8(0x230)][_0x4d8be8(0x221)](B,this,_0xacf5dd['id'],this[_0x4d8be8(0x230)]):null;}[_0xf6fc87(0x250)](_0x558e88){const _0x139f7b=_0xf6fc87;let _0x429ecb=this[_0x139f7b(0x233)]['getSnapshot'](),_0x1edfa6=Object[_0x139f7b(0x197)](_0x429ecb[_0x139f7b(0x216)])['find'](_0x5ef696=>_0x5ef696[_0x139f7b(0x2ea)]===_0x558e88);return _0x1edfa6?this['_injector'][_0x139f7b(0x221)](B,this,_0x1edfa6['id'],this['_injector']):null;}['insertTable'](_0x5a2646,_0x1c0010){const _0x25b503=_0xf6fc87;let _0x5f4162=(0x0,l[_0x25b503(0x2c3)])({'id':(0x0,l[_0x25b503(0x1d9)])(),'name':_0x5a2646,..._0x1c0010==null?void 0x0:_0x1c0010[_0x25b503(0x2de)],'primaryFieldName':_0x1c0010==null?void 0x0:_0x1c0010[_0x25b503(0x2ec)]}),_0x3274e7=l[_0x25b503(0x223)][_0x25b503(0x140)](_0x5f4162,(_0x1c0010==null?void 0x0:_0x1c0010[_0x25b503(0x2de)])??{}),_0x58bc74=(0x0,c[_0x25b503(0x1e5)])(this[_0x25b503(0x233)][_0x25b503(0x1c9)](),_0x3274e7['name']);if(!_0x58bc74['valid'])throw Error(_0x25b503(0x189)+_0x3274e7[_0x25b503(0x2ea)]+'\x22.\x20'+c[_0x25b503(0x13e)]+'\x20'+_0x58bc74[_0x25b503(0x273)]);if(!this[_0x25b503(0x134)]['syncExecuteCommand'](c['CreateBaseTableCommand']['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x3274e7,'index':_0x1c0010==null?void 0x0:_0x1c0010[_0x25b503(0x213)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x5a2646+'\x22.');return this[_0x25b503(0x230)][_0x25b503(0x221)](B,this,_0x3274e7['id'],this[_0x25b503(0x230)]);}[_0xf6fc87(0x164)](_0x9d5fdb){const _0x530899=_0xf6fc87;let _0x319abe=typeof _0x9d5fdb==_0x530899(0x224)?_0x9d5fdb:_0x9d5fdb['getId']();if(!this[_0x530899(0x134)]['syncExecuteCommand'](c[_0x530899(0x1c6)]['id'],{'unitId':this['_base']['getUnitId'](),'tableId':_0x319abe}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x319abe+'\x22.');return!0x0;}[_0xf6fc87(0x1df)](_0x2aad3c,_0x3f8cf2){const _0x5b7072=_0xf6fc87;let _0x3a7c22=this['_base'][_0x5b7072(0x1c9)](),_0x1770f2=typeof _0x2aad3c==_0x5b7072(0x224)?_0x2aad3c:_0x2aad3c['getId'](),_0x39c77e=_0x3a7c22[_0x5b7072(0x216)][_0x1770f2];if(!_0x39c77e)throw Error(_0x5b7072(0x19e)+_0x1770f2+_0x5b7072(0x23f));let _0x99f621=_0x3a7c22[_0x5b7072(0x192)][_0x5b7072(0x1ee)](_0x1770f2)+0x1,_0x1686de=(0x0,l[_0x5b7072(0x1d9)])(),_0xdc7e30=(0x0,c['copyBaseTableSnapshot'])(_0x39c77e,{'id':_0x1686de,'name':(0x0,c[_0x5b7072(0x142)])(_0x3a7c22,_0x39c77e['name']+_0x5b7072(0x25b)),'includeRecords':(_0x3f8cf2==null?void 0x0:_0x3f8cf2['includeRecords'])??!0x1,'regenerateViewIds':(_0x3f8cf2==null?void 0x0:_0x3f8cf2['regenerateViewIds'])??!0x1});if(!this[_0x5b7072(0x134)][_0x5b7072(0x1e1)](c['CreateBaseTableCommand']['id'],{'unitId':this[_0x5b7072(0x233)][_0x5b7072(0x264)](),'table':_0xdc7e30,'index':_0x99f621}))throw Error(_0x5b7072(0x1ed)+_0x1770f2+'\x22.');return this[_0x5b7072(0x230)][_0x5b7072(0x221)](B,this,_0xdc7e30['id'],this[_0x5b7072(0x230)]);}['getSchema'](){const _0x2628c2=_0xf6fc87;let _0x8497c4=this['_base'][_0x2628c2(0x1c9)]();return{'id':_0x8497c4['id'],'name':_0x8497c4['name'],'tables':this[_0x2628c2(0x1f7)]()[_0x2628c2(0x29f)](_0x4e5fcd=>_0x4e5fcd['getSchema']())};}};Y=g([h(0x1,(0x0,l[_0xf6fc87(0x181)])(l['Injector'])),h(0x2,l[_0xf6fc87(0x23e)]),h(0x3,l[_0xf6fc87(0x137)]),h(0x4,l[_0xf6fc87(0x296)])],Y);var X=class extends u['FUniver']{[_0xf6fc87(0x2b0)](){const _0x15dfc6=_0xf6fc87;this['_initBaseBeforeEvents'](),this[_0x15dfc6(0x209)]();}[_0xf6fc87(0x26b)](_0x1681ef={},_0x549a22){const _0xac846d=_0xf6fc87;let _0x275edc=this[_0xac846d(0x257)]['createUnit'](l[_0xac846d(0x282)]['UNIVER_BASE'],_0x1681ef,_0x549a22);return this[_0xac846d(0x230)][_0xac846d(0x221)](Y,_0x275edc);}[_0xf6fc87(0x232)](){const _0x18e8a5=_0xf6fc87;let _0x5858e4=this[_0x18e8a5(0x257)]['getCurrentUnitOfType'](l[_0x18e8a5(0x282)][_0x18e8a5(0x17a)]);return _0x5858e4?this[_0x18e8a5(0x230)][_0x18e8a5(0x221)](Y,_0x5858e4):null;}[_0xf6fc87(0x2af)](_0x42f4ee){const _0x38ba82=_0xf6fc87;let _0x3e8954=this['_univerInstanceService']['getUnit'](_0x42f4ee,l['UniverInstanceType'][_0x38ba82(0x17a)]);return _0x3e8954?this['_injector']['createInstance'](Y,_0x3e8954):null;}[_0xf6fc87(0x271)](){const _0x4b806a=_0xf6fc87;return this[_0x4b806a(0x257)][_0x4b806a(0x2d3)](l[_0x4b806a(0x282)]['UNIVER_BASE'])[_0x4b806a(0x29f)](_0x2bc880=>this['_injector'][_0x4b806a(0x221)](Y,_0x2bc880));}[_0xf6fc87(0x209)](){const _0x9df6a8=_0xf6fc87;this[_0x9df6a8(0x1ca)](this['registerEventHandler'](this['Event'][_0x9df6a8(0x23c)],()=>this[_0x9df6a8(0x134)][_0x9df6a8(0x1ad)]((_0x125f0e,_0x2da455)=>{const _0x42f5db=_0x9df6a8;var _0x545b1b;if(!Z(_0x125f0e,c[_0x42f5db(0x186)]))return;let _0x139764=_0x125f0e[_0x42f5db(0x143)];if(!((_0x545b1b=_0x139764[_0x42f5db(0x266)])!=null&&_0x545b1b[_0x42f5db(0x2d5)]))return;let _0x207411=this[_0x42f5db(0x2af)](_0x139764['unitId']),_0x4bd8df=_0x207411==null?void 0x0:_0x207411[_0x42f5db(0x19c)](_0x139764[_0x42f5db(0x266)][0x0][_0x42f5db(0x172)]);if(!_0x207411||!_0x4bd8df)return;let _0x458493={'base':_0x207411,'table':_0x4bd8df,'changes':_0x139764['hierarchyChanges'],'source':_0x2da455!=null&&_0x2da455[_0x42f5db(0x1a1)]?c['BaseEventSource']['Remote']:_0x139764[_0x42f5db(0x1ff)]??c[_0x42f5db(0x15e)]['UI']};this[_0x42f5db(0x217)](this[_0x42f5db(0x2a5)][_0x42f5db(0x23c)],_0x458493);}))),this[_0x9df6a8(0x1ca)](this[_0x9df6a8(0x290)](this[_0x9df6a8(0x2a5)][_0x9df6a8(0x20a)],()=>this[_0x9df6a8(0x134)]['onCommandExecuted'](_0x2c4793=>{const _0x27323d=_0x9df6a8;if(_0x2c4793['id']!==c[_0x27323d(0x2d4)]['id'])return;let {unitId:_0x2c239a,table:_0x589e63,index:_0xe3473a}=_0x2c4793['params'],_0x4d7492=this['getBase'](_0x2c239a);if(!_0x4d7492)return;let _0x3ce6c7={'base':_0x4d7492,'table':_0x589e63,'index':_0xe3473a};this['fireEvent'](this[_0x27323d(0x2a5)]['BaseTableCreated'],_0x3ce6c7);}))),this[_0x9df6a8(0x1ca)](this[_0x9df6a8(0x290)](this['Event'][_0x9df6a8(0x1f3)],()=>this['_commandService'][_0x9df6a8(0x1ad)](_0x5c8de8=>{const _0x47a9a0=_0x9df6a8;if(_0x5c8de8['id']!==c[_0x47a9a0(0x1a7)]['id'])return;let {unitId:_0x2e8fa7,tableId:_0x44018a,field:_0x4ccd00,index:_0x585196,viewIndexes:_0xd63afd}=_0x5c8de8[_0x47a9a0(0x143)],_0x11a8b5=this[_0x47a9a0(0x2af)](_0x2e8fa7);if(!_0x11a8b5)return;let _0x4615fd=_0x11a8b5[_0x47a9a0(0x19c)](_0x44018a);if(!_0x4615fd)return;let _0x474d99={'base':_0x11a8b5,'table':_0x4615fd,'field':_0x4ccd00,'index':_0x585196,'viewIndexes':_0xd63afd};this['fireEvent'](this['Event']['BaseTableFieldCreated'],_0x474d99);}))),this[_0x9df6a8(0x1ca)](this[_0x9df6a8(0x290)](this[_0x9df6a8(0x2a5)][_0x9df6a8(0x149)],()=>this[_0x9df6a8(0x134)][_0x9df6a8(0x1ad)](_0x11023a=>{const _0x7fe152=_0x9df6a8;if(_0x11023a['id']!==c[_0x7fe152(0x166)]['id']&&_0x11023a['id']!==c[_0x7fe152(0x1cb)]['id'])return;let _0x19c155=_0x11023a[_0x7fe152(0x143)],{unitId:_0x107ad3,tableId:_0x2495a8}=_0x19c155,_0x74af72=_0x19c155[_0x7fe152(0x169)]??[_0x19c155[_0x7fe152(0x1c5)]],_0x3089bb=this[_0x7fe152(0x2af)](_0x107ad3);if(!_0x3089bb)return;let _0x3b791e=_0x3089bb['getTableById'](_0x2495a8);if(!_0x3b791e)return;let _0x21be15={'base':_0x3089bb,'table':_0x3b791e,'records':_0x74af72};this['fireEvent'](this[_0x7fe152(0x2a5)]['BaseTableRecordCreated'],_0x21be15);}))),this[_0x9df6a8(0x1ca)](this['registerEventHandler'](this[_0x9df6a8(0x2a5)][_0x9df6a8(0x2d0)],()=>this[_0x9df6a8(0x134)][_0x9df6a8(0x1ad)](_0xfe96b=>{const _0x2652fa=_0x9df6a8;if(_0xfe96b['id']!==c[_0x2652fa(0x1aa)]['id'])return;let {unitId:_0x1e99db,tableId:_0x1ca76b,view:_0x5edc08,index:_0x41cc99}=_0xfe96b['params'],_0xf7aa7c=this[_0x2652fa(0x2af)](_0x1e99db);if(!_0xf7aa7c)return;let _0xd21e9=_0xf7aa7c[_0x2652fa(0x19c)](_0x1ca76b);if(!_0xd21e9)return;let _0x1cfdc7={'base':_0xf7aa7c,'table':_0xd21e9,'view':_0x5edc08,'index':_0x41cc99};this['fireEvent'](this[_0x2652fa(0x2a5)][_0x2652fa(0x2d0)],_0x1cfdc7);}))),this[_0x9df6a8(0x1ca)](this[_0x9df6a8(0x290)](this[_0x9df6a8(0x2a5)][_0x9df6a8(0x167)],()=>this[_0x9df6a8(0x134)]['onCommandExecuted'](_0x34e219=>{const _0x586aef=_0x9df6a8;if(_0x34e219['id']!==c[_0x586aef(0x1b7)]['id'])return;let {unitId:_0x42368f,tableId:_0x5ae8e5,recordId:_0x425b7e,fieldId:_0x2f0459,value:_0x555574}=_0x34e219['params'],_0x15d21c=this[_0x586aef(0x2af)](_0x42368f);if(!_0x15d21c)return;let _0x2caed3=_0x15d21c[_0x586aef(0x19c)](_0x5ae8e5);if(!_0x2caed3)return;let _0x917c09=_0x2caed3[_0x586aef(0x254)](_0x2f0459);if(!_0x917c09)return;let _0x5f2942=_0x2caed3['getRecordById'](_0x425b7e);if(!_0x5f2942)return;let _0x1867b7={'base':_0x15d21c,'table':_0x2caed3,'field':_0x917c09,'record':_0x5f2942,'value':_0x555574};this[_0x586aef(0x217)](this['Event'][_0x586aef(0x167)],_0x1867b7);})));}[_0xf6fc87(0x1f0)](){const _0x301c0e=_0xf6fc87;this[_0x301c0e(0x1ca)](this['registerEventHandler'](this[_0x301c0e(0x2a5)][_0x301c0e(0x2a7)],()=>this[_0x301c0e(0x134)][_0x301c0e(0x182)](_0x58fa8e=>{const _0x34befc=_0x301c0e;if(Z(_0x58fa8e,c[_0x34befc(0x2e7)])){let {unitId:_0x436eeb,tableId:_0x3dfeeb,patches:_0x2ffbb8,source:_0x1b63fe=c['BaseEventSource']['UI']}=_0x58fa8e['params'],_0x35e113=this[_0x34befc(0x148)](_0x436eeb,_0x3dfeeb);if(!_0x35e113)return;this['_fireBeforeHierarchyChange'](_0x35e113['base'],_0x35e113[_0x34befc(0x2de)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x35e113[_0x34befc(0x2de)]['getTable'](),_0x2ffbb8),_0x1b63fe);return;}if(Z(_0x58fa8e,c['SetBaseRangeValuesCommand'])){let {unitId:_0x53d1d3,tableId:_0x19c76f,patches:_0x21c8cf,source:_0x3da0c0=c['BaseEventSource']['UI']}=_0x58fa8e['params'],_0x4d13b3=this[_0x34befc(0x148)](_0x53d1d3,_0x19c76f);if(!_0x4d13b3)return;let _0x1c8ecf=_0x4d13b3[_0x34befc(0x2de)][_0x34befc(0x1fb)]();this[_0x34befc(0x253)](_0x4d13b3[_0x34befc(0x1b1)],_0x4d13b3['table'],(0x0,c[_0x34befc(0x2bf)])(_0x1c8ecf,(0x0,c['resolveBaseRangeHierarchyPatches'])(_0x1c8ecf,_0x21c8cf)),_0x3da0c0);return;}if(Z(_0x58fa8e,c['CreateBaseRecordCommand'])){let _0x238a4f=_0x58fa8e[_0x34befc(0x143)],_0x11ed66=this['_getHierarchyEventContext'](_0x238a4f[_0x34befc(0x157)],_0x238a4f['tableId']);if(!_0x11ed66)return;this[_0x34befc(0x253)](_0x11ed66[_0x34befc(0x1b1)],_0x11ed66['table'],(0x0,c[_0x34befc(0x26a)])(_0x11ed66[_0x34befc(0x2de)]['getTable'](),[_0x238a4f[_0x34befc(0x1c5)]]),_0x238a4f[_0x34befc(0x1ff)]??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c[_0x34befc(0x1cb)])){let _0x4d4fb8=_0x58fa8e[_0x34befc(0x143)],_0x129aed=this[_0x34befc(0x148)](_0x4d4fb8[_0x34befc(0x157)],_0x4d4fb8[_0x34befc(0x172)]);if(!_0x129aed)return;this['_fireBeforeHierarchyChange'](_0x129aed['base'],_0x129aed[_0x34befc(0x2de)],(0x0,c[_0x34befc(0x26a)])(_0x129aed[_0x34befc(0x2de)]['getTable'](),_0x4d4fb8['records']),_0x4d4fb8['source']??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c[_0x34befc(0x1fd)])){let _0xcc6bf2=_0x58fa8e[_0x34befc(0x143)],_0x43c6d4=this['_getHierarchyEventContext'](_0xcc6bf2[_0x34befc(0x157)],_0xcc6bf2['tableId']);if(!_0x43c6d4)return;this[_0x34befc(0x253)](_0x43c6d4[_0x34befc(0x1b1)],_0x43c6d4[_0x34befc(0x2de)],(0x0,c[_0x34befc(0x26a)])(_0x43c6d4['table'][_0x34befc(0x1fb)](),[_0xcc6bf2[_0x34befc(0x1c5)]]),_0xcc6bf2[_0x34befc(0x1ff)]??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c[_0x34befc(0x1da)])){let _0x318b8a=_0x58fa8e['params'],_0x167183=this[_0x34befc(0x148)](_0x318b8a[_0x34befc(0x157)],_0x318b8a['tableId']);if(!_0x167183)return;let _0x1d9d91=_0x167183['table'][_0x34befc(0x1fb)](),_0x4e586f=_0x318b8a[_0x34befc(0x272)]??(0x0,c[_0x34befc(0x1e4)])(_0x1d9d91),_0x16c150=(0x0,c['buildBaseHierarchyIndex'])(_0x1d9d91,_0x4e586f)['parentByRecordId'][_0x34befc(0x2e4)](_0x318b8a['recordId'])??null;this[_0x34befc(0x253)](_0x167183[_0x34befc(0x1b1)],_0x167183[_0x34befc(0x2de)],[{'tableId':_0x318b8a['tableId'],'fieldId':_0x4e586f,'recordId':_0x318b8a[_0x34befc(0x1be)],'oldParentRecordId':_0x16c150,'parentRecordId':_0x318b8a[_0x34befc(0x236)]}],_0x318b8a['source']??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c['CreateBaseChildRecordCommand'])){let _0x2b64d8=_0x58fa8e[_0x34befc(0x143)],_0x15862a=this[_0x34befc(0x148)](_0x2b64d8[_0x34befc(0x157)],_0x2b64d8[_0x34befc(0x172)]);if(!_0x15862a)return;let _0x3a4972=_0x2b64d8['fieldId']??(0x0,c[_0x34befc(0x1e4)])(_0x15862a['table']['getTable']());this[_0x34befc(0x253)](_0x15862a[_0x34befc(0x1b1)],_0x15862a[_0x34befc(0x2de)],[{'tableId':_0x2b64d8[_0x34befc(0x172)],'fieldId':_0x3a4972,'recordId':_0x2b64d8[_0x34befc(0x1c5)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2b64d8[_0x34befc(0x236)]}],_0x2b64d8['source']??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c[_0x34befc(0x2c9)])){let _0x29036c=_0x58fa8e['params'],_0x19bc09=this[_0x34befc(0x148)](_0x29036c[_0x34befc(0x157)],_0x29036c['tableId']);if(!_0x19bc09)return;this[_0x34befc(0x253)](_0x19bc09['base'],_0x19bc09[_0x34befc(0x2de)],(0x0,c['getBaseHierarchyDeletePromotions'])(_0x19bc09[_0x34befc(0x2de)]['getTable'](),[_0x29036c['recordId']]),_0x29036c['source']??c[_0x34befc(0x15e)]['UI']);return;}if(Z(_0x58fa8e,c[_0x34befc(0x160)])){let _0x35bc52=_0x58fa8e[_0x34befc(0x143)],_0x8cf48f=this[_0x34befc(0x148)](_0x35bc52['unitId'],_0x35bc52[_0x34befc(0x172)]);if(!_0x8cf48f)return;this[_0x34befc(0x253)](_0x8cf48f[_0x34befc(0x1b1)],_0x8cf48f[_0x34befc(0x2de)],(0x0,c['getBaseHierarchyDeletePromotions'])(_0x8cf48f[_0x34befc(0x2de)][_0x34befc(0x1fb)](),_0x35bc52[_0x34befc(0x2b4)]),_0x35bc52[_0x34befc(0x1ff)]??c[_0x34befc(0x15e)]['UI']);return;}if(!Z(_0x58fa8e,c[_0x34befc(0x1b7)]))return;let _0x5c0973=_0x58fa8e[_0x34befc(0x143)],_0x16f329=this[_0x34befc(0x148)](_0x5c0973[_0x34befc(0x157)],_0x5c0973['tableId']);if(!_0x16f329)return;let _0x380f95=_0x16f329[_0x34befc(0x2de)]['getTable']();if(!(0x0,c[_0x34befc(0x18c)])(_0x380f95)[_0x34befc(0x21a)](_0x5c0973[_0x34befc(0x272)]))return;let _0x1d7df1=(0x0,c[_0x34befc(0x1ae)])(_0x380f95,_0x5c0973['fieldId'])[_0x34befc(0x2ba)]['get'](_0x5c0973[_0x34befc(0x1be)])??null,_0x300e7f=(0x0,c[_0x34befc(0x1b9)])(_0x5c0973[_0x34befc(0x28a)])[0x0]??null;_0x1d7df1!==_0x300e7f&&this['_fireBeforeHierarchyChange'](_0x16f329[_0x34befc(0x1b1)],_0x16f329[_0x34befc(0x2de)],[{'tableId':_0x5c0973[_0x34befc(0x172)],'fieldId':_0x5c0973['fieldId'],'recordId':_0x5c0973[_0x34befc(0x1be)],'oldParentRecordId':_0x1d7df1,'parentRecordId':_0x300e7f}],_0x5c0973[_0x34befc(0x1ff)]??c[_0x34befc(0x15e)]['UI']);}))),this['disposeWithMe'](this[_0x301c0e(0x290)](this[_0x301c0e(0x2a5)][_0x301c0e(0x2dd)],()=>this[_0x301c0e(0x134)][_0x301c0e(0x182)](_0x31aaf1=>{const _0x293278=_0x301c0e;if(_0x31aaf1['id']!==c[_0x293278(0x2d4)]['id'])return;let {unitId:_0x5dc9c4,table:_0x47e5be,index:_0x3efc78}=_0x31aaf1[_0x293278(0x143)],_0x5e6bbd=this[_0x293278(0x2af)](_0x5dc9c4);if(!_0x5e6bbd)return;let _0x434f09={'base':_0x5e6bbd,'table':_0x47e5be,'index':_0x3efc78};if(this[_0x293278(0x217)](this[_0x293278(0x2a5)][_0x293278(0x2dd)],_0x434f09),_0x434f09['cancel'])throw new l[(_0x293278(0x15f))]();}))),this[_0x301c0e(0x1ca)](this['registerEventHandler'](this[_0x301c0e(0x2a5)][_0x301c0e(0x183)],()=>this[_0x301c0e(0x134)][_0x301c0e(0x182)](_0x484a24=>{const _0x1af7ad=_0x301c0e;if(_0x484a24['id']!==c[_0x1af7ad(0x1a7)]['id'])return;let {unitId:_0x37956a,tableId:_0x30cc26,field:_0x7a42e6,index:_0x23436b,viewIndexes:_0x5631ec}=_0x484a24[_0x1af7ad(0x143)],_0x437f85=this[_0x1af7ad(0x2af)](_0x37956a);if(!_0x437f85)return;let _0x137876=_0x437f85[_0x1af7ad(0x19c)](_0x30cc26);if(!_0x137876)return;let _0x363dde={'base':_0x437f85,'table':_0x137876,'field':_0x7a42e6,'index':_0x23436b,'viewIndexes':_0x5631ec};if(this[_0x1af7ad(0x217)](this[_0x1af7ad(0x2a5)][_0x1af7ad(0x183)],_0x363dde),_0x363dde[_0x1af7ad(0x158)])throw new l[(_0x1af7ad(0x15f))]();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x301c0e(0x2a5)][_0x301c0e(0x1ea)],()=>this[_0x301c0e(0x134)]['beforeCommandExecuted'](_0x547195=>{const _0x51c7df=_0x301c0e;if(_0x547195['id']!==c[_0x51c7df(0x166)]['id']&&_0x547195['id']!==c['BatchCreateBaseRecordsCommand']['id'])return;let _0x24bd08=_0x547195[_0x51c7df(0x143)],{unitId:_0x2314fa,tableId:_0x1d5d7c}=_0x24bd08,_0x2f7d6d=_0x24bd08[_0x51c7df(0x169)]??[_0x24bd08['record']],_0x4bff09=this[_0x51c7df(0x2af)](_0x2314fa);if(!_0x4bff09)return;let _0xf4816e=_0x4bff09['getTableById'](_0x1d5d7c);if(!_0xf4816e)return;let _0x3da8c7={'base':_0x4bff09,'table':_0xf4816e,'records':_0x2f7d6d};if(this[_0x51c7df(0x217)](this[_0x51c7df(0x2a5)][_0x51c7df(0x1ea)],_0x3da8c7),_0x3da8c7[_0x51c7df(0x158)])throw new l['CanceledError']();}))),this[_0x301c0e(0x1ca)](this[_0x301c0e(0x290)](this[_0x301c0e(0x2a5)][_0x301c0e(0x2c0)],()=>this[_0x301c0e(0x134)][_0x301c0e(0x182)](_0x53b5ad=>{const _0x3f337b=_0x301c0e;if(_0x53b5ad['id']!==c[_0x3f337b(0x1aa)]['id'])return;let {unitId:_0x4c4799,tableId:_0x58d617,view:_0xc113b3,index:_0x391818}=_0x53b5ad['params'],_0x192c44=this[_0x3f337b(0x2af)](_0x4c4799);if(!_0x192c44)return;let _0x4d03ba=_0x192c44[_0x3f337b(0x19c)](_0x58d617);if(!_0x4d03ba)return;let _0x355d11={'base':_0x192c44,'table':_0x4d03ba,'view':_0xc113b3,'index':_0x391818};if(this[_0x3f337b(0x217)](this[_0x3f337b(0x2a5)][_0x3f337b(0x2c0)],_0x355d11),_0x355d11['cancel'])throw new l[(_0x3f337b(0x15f))]();}))),this[_0x301c0e(0x1ca)](this[_0x301c0e(0x290)](this['Event'][_0x301c0e(0x288)],()=>this[_0x301c0e(0x134)][_0x301c0e(0x182)](_0x55c07e=>{const _0x258f79=_0x301c0e;if(_0x55c07e['id']!==c[_0x258f79(0x1b7)]['id'])return;let {unitId:_0x6964c4,tableId:_0x112a1e,recordId:_0x1c0957,fieldId:_0x55d3a1,value:_0x50da34}=_0x55c07e['params'],_0xdb2a5d=this[_0x258f79(0x2af)](_0x6964c4);if(!_0xdb2a5d)return;let _0x3e8789=_0xdb2a5d[_0x258f79(0x19c)](_0x112a1e);if(!_0x3e8789)return;let _0x3e4ce1=_0x3e8789[_0x258f79(0x254)](_0x55d3a1);if(!_0x3e4ce1)return;let _0xfece3e=_0x3e8789['getRecordById'](_0x1c0957);if(!_0xfece3e)return;let _0x2b517f={'base':_0xdb2a5d,'table':_0x3e8789,'field':_0x3e4ce1,'record':_0xfece3e,'value':_0x50da34};if(this[_0x258f79(0x217)](this[_0x258f79(0x2a5)][_0x258f79(0x288)],_0x2b517f),_0x2b517f[_0x258f79(0x158)])throw new l[(_0x258f79(0x15f))]();})));}[_0xf6fc87(0x148)](_0x30fce3,_0x4d435f){const _0x2fdb32=_0xf6fc87;let _0x448070=this[_0x2fdb32(0x2af)](_0x30fce3),_0x4535d2=_0x448070==null?void 0x0:_0x448070[_0x2fdb32(0x19c)](_0x4d435f);return _0x448070&&_0x4535d2?{'base':_0x448070,'table':_0x4535d2}:null;}[_0xf6fc87(0x253)](_0x209112,_0x1a0637,_0x505df8,_0xe0b677){const _0x5554f8=_0xf6fc87;if(!_0x505df8[_0x5554f8(0x2d5)])return;let _0x270448={'base':_0x209112,'table':_0x1a0637,'changes':_0x505df8,'source':_0xe0b677};if(this[_0x5554f8(0x217)](this[_0x5554f8(0x2a5)][_0x5554f8(0x2a7)],_0x270448),_0x270448[_0x5554f8(0x158)])throw new l['CanceledError']();}};function Z(_0x263824,_0x1bec3f){const _0x4867e2=_0xf6fc87;return _0x263824['id']===_0x1bec3f['id']&&_0x263824[_0x4867e2(0x143)]!==void 0x0;}u['FUniver'][_0xf6fc87(0x287)](X);var Q=class extends u[_0xf6fc87(0x24e)]{get['BaseFieldType'](){const _0x5a5a05=_0xf6fc87;return l[_0x5a5a05(0x13f)];}get[_0xf6fc87(0x279)](){const _0x496e37=_0xf6fc87;return l[_0x496e37(0x279)];}get[_0xf6fc87(0x1c1)](){const _0x55e511=_0xf6fc87;return l[_0x55e511(0x1c1)];}get[_0xf6fc87(0x199)](){return v;}get['BaseViewType'](){const _0x41f9e0=_0xf6fc87;return l[_0x41f9e0(0x21c)];}get['BaseConditionalColorTarget'](){return l['BaseConditionalColorTarget'];}get[_0xf6fc87(0x151)](){const _0x1b5ef7=_0xf6fc87;return l[_0x1b5ef7(0x151)];}get[_0xf6fc87(0x1a3)](){const _0xdc3282=_0xf6fc87;return l[_0xdc3282(0x1a3)];}get['BaseSortDirection'](){const _0x55d549=_0xf6fc87;return l[_0x55d549(0x26e)];}get[_0xf6fc87(0x15e)](){const _0x50a22a=_0xf6fc87;return c[_0x50a22a(0x15e)];}get['BaseHierarchyErrorCode'](){const _0xd80aa6=_0xf6fc87;return c[_0xd80aa6(0x1b0)];}get['BaseHierarchyInvalidReason'](){return l['BaseHierarchyInvalidReason'];}get[_0xf6fc87(0x2b6)](){const _0x192c99=_0xf6fc87;return l[_0x192c99(0x2b6)];}};u[_0xf6fc87(0x24e)]['extend'](Q);var $=class extends u[_0xf6fc87(0x155)]{get[_0xf6fc87(0x20a)](){const _0x3c05d6=_0xf6fc87;return _0x3c05d6(0x20a);}get['BeforeBaseTableCreate'](){return'BeforeBaseTableCreate';}get[_0xf6fc87(0x1f3)](){const _0x8829d5=_0xf6fc87;return _0x8829d5(0x1f3);}get['BeforeBaseTableFieldCreate'](){return'BeforeBaseTableFieldCreate';}get[_0xf6fc87(0x149)](){const _0x299038=_0xf6fc87;return _0x299038(0x149);}get[_0xf6fc87(0x1ea)](){return'BeforeBaseTableRecordCreate';}get[_0xf6fc87(0x2d0)](){const _0x14451e=_0xf6fc87;return _0x14451e(0x2d0);}get['BeforeBaseTableViewCreate'](){const _0x5a47df=_0xf6fc87;return _0x5a47df(0x2c0);}get[_0xf6fc87(0x167)](){const _0x2b5ea3=_0xf6fc87;return _0x2b5ea3(0x167);}get['BeforeBaseTableCellValueChange'](){const _0x22e995=_0xf6fc87;return _0x22e995(0x288);}get[_0xf6fc87(0x23c)](){return'BaseHierarchyChanged';}get[_0xf6fc87(0x2a7)](){const _0x3fbd22=_0xf6fc87;return _0x3fbd22(0x2a7);}};u[_0xf6fc87(0x155)]['extend']($),exports[_0xf6fc87(0x199)]=v,Object[_0xf6fc87(0x26d)](exports,_0xf6fc87(0x225),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0xf6fc87(0x228)]=m,exports['FBasePermission']=p,Object['defineProperty'](exports,'FBaseTable',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0xf6fc87(0x26d)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0xf6fc87(0x26d)](exports,_0xf6fc87(0x20e),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,_0xf6fc87(0x1b2),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0xf6fc87(0x26d)](exports,'FBaseTableView',{'enumerable':!0x0,'get':function(){return z;}}),exports[_0xf6fc87(0x194)]=$,exports[_0xf6fc87(0x29d)]=S,exports[_0xf6fc87(0x1d0)]=b;
|