@univerjs-pro/sheets-pivot 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x394903=_0x8e6d;(function(_0x2fe311,_0x20e0fe){const _0xac143d=_0x8e6d,_0x3473dc=_0x2fe311();while(!![]){try{const _0x48968b=-parseInt(_0xac143d(0xd1))/0x1+-parseInt(_0xac143d(0x9f))/0x2*(-parseInt(_0xac143d(0xb4))/0x3)+-parseInt(_0xac143d(0xa4))/0x4+-parseInt(_0xac143d(0xa0))/0x5*(-parseInt(_0xac143d(0xa6))/0x6)+parseInt(_0xac143d(0xc2))/0x7+-parseInt(_0xac143d(0xce))/0x8+-parseInt(_0xac143d(0xb0))/0x9*(-parseInt(_0xac143d(0x9e))/0xa);if(_0x48968b===_0x20e0fe)break;else _0x3473dc['push'](_0x3473dc['shift']());}catch(_0x1c4a4b){_0x3473dc['push'](_0x3473dc['shift']());}}}(_0x40df,0x483b1));function _0x40df(){const _0x574edb=['@univerjs/sheets/facade','remove','2996Iljpad','IUniverInstanceService','@univerjs/core','pivotTableId','fieldIds','RemovePivotFieldCommand','rangeInfo','generateHexNumber','818690tcKqPo','2dMalPA','5DsCfZc','addPivotTable','MovePivotFieldCommand','@univerjs-pro/engine-pivot','2127800SORQbE','removeField','917268ifoTVI','RemovePivotTableMutation','toStringTag','getConfig','executeCommand','AddPivotTableCommand','setLabelManualFilter','SheetsPivotTableConfigModel','addField','SetPivotSubtotalTypeMutation','99YnwIQS','getSheetId','AddPivotFieldCommand','unionPivotViewRange','62739ApjuDD','_injector','ICommandService','RenamePivotFieldMutation','renameField','subUnitId','MovePivotTableCommand','syncExecuteCommand','getPivotTableConfig','@univerjs-pro/sheets-pivot','unitId','getCollection','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','extend','754222YlJjvi','get','setLabelSort','defineProperty','FPivotTable','SetPivotSortCommand','symbol','updateFieldPosition','getPivotTableRangeInfo','getPivotTableIdByCell','getPivotTableByCell','move','2810344IYtmaa'];_0x40df=function(){return _0x574edb;};return _0x40df();}var C=Object[_0x394903(0xc5)],p=(_0xda940f,_0x59a25b,_0x16e899)=>_0x59a25b in _0xda940f?C(_0xda940f,_0x59a25b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16e899}):_0xda940f[_0x59a25b]=_0x16e899,l=(_0x159258,_0x4cdfbf,_0x4f7881)=>p(_0x159258,typeof _0x4cdfbf!=_0x394903(0xc8)?_0x4cdfbf+'':_0x4cdfbf,_0x4f7881);Object[_0x394903(0xc5)](exports,Symbol[_0x394903(0xa8)],{'value':'Module'});const r=require(_0x394903(0xd3)),b=require(_0x394903(0xcf)),S=require(_0x394903(0xa3)),d=require(_0x394903(0xbd));function _0x8e6d(_0x1bd45f,_0x2c51e5){const _0x40dfc1=_0x40df();return _0x8e6d=function(_0x8e6d5a,_0x4995d0){_0x8e6d5a=_0x8e6d5a-0x9a;let _0x13e81b=_0x40dfc1[_0x8e6d5a];return _0x13e81b;},_0x8e6d(_0x1bd45f,_0x2c51e5);}class I{constructor(_0x3291db,_0x18b650,_0x20b1f0,_0x5d21f8){const _0x163a23=_0x394903;l(this,_0x163a23(0xbe)),l(this,'subUnitId'),l(this,_0x163a23(0xd4)),l(this,'_injector'),(this[_0x163a23(0xbe)]=_0x3291db,this[_0x163a23(0xb9)]=_0x18b650,this[_0x163a23(0xd4)]=_0x20b1f0,this['_injector']=_0x5d21f8);}[_0x394903(0xa9)](){const _0xe3d651=_0x394903;return this[_0xe3d651(0xb5)]['get'](d[_0xe3d651(0xad)])[_0xe3d651(0xbc)](this['unitId'],this['subUnitId'],this[_0xe3d651(0xd4)]);}['getPivotTableRangeInfo'](){const _0xde9b28=_0x394903;var _0x16765f;const _0x11b419=(_0x16765f=this[_0xde9b28(0xb5)][_0xde9b28(0xc3)](d[_0xde9b28(0xad)])[_0xde9b28(0xca)](this[_0xde9b28(0xbe)],this['subUnitId'],this[_0xde9b28(0xd4)]))==null?void 0x0:_0x16765f[_0xde9b28(0x9c)];if(_0x11b419)return d[_0xde9b28(0xb3)](_0x11b419);}async[_0x394903(0xd0)](){const _0x445e1c=_0x394903;return await this[_0x445e1c(0xb5)]['get'](r[_0x445e1c(0xb6)])[_0x445e1c(0xbb)](d[_0x445e1c(0xa7)]['id'],{'unitId':this['unitId'],'subUnitId':this[_0x445e1c(0xb9)],'pivotTableId':this[_0x445e1c(0xd4)]});}async[_0x394903(0xae)](_0x353077,_0x54011d,_0x4a5e6c){const _0x5a6db8=_0x394903,_0x5b7568=this[_0x5a6db8(0xb5)],_0x585836=this['unitId'],_0x200e8c=this[_0x5a6db8(0xb9)],_0x28feb8=this['pivotTableId'],_0x3103f2=_0x5b7568[_0x5a6db8(0xc3)](r[_0x5a6db8(0xb6)]),_0x5dc1ab=_0x5b7568[_0x5a6db8(0xc3)](d[_0x5a6db8(0xad)]),_0x38f463=_0x5dc1ab['getPivotTableConfig'](_0x585836,_0x200e8c,_0x28feb8),_0x52ad7b=_0x5dc1ab[_0x5a6db8(0xbf)](_0x585836,_0x28feb8);if(!_0x38f463||!_0x52ad7b)return!0x1;let _0x4e402b=_0x353077;typeof _0x4e402b=='number'&&(_0x4e402b=_0x5dc1ab[_0x5a6db8(0xbf)](_0x585836,_0x28feb8)[_0x5a6db8(0x9a)][_0x353077]);const _0x809486={'unitId':_0x585836,'subUnitId':_0x200e8c,'pivotTableId':_0x28feb8,'dataFieldId':_0x4e402b,'fieldArea':_0x54011d,'index':_0x4a5e6c};return _0x3103f2[_0x5a6db8(0xaa)](d[_0x5a6db8(0xb2)]['id'],_0x809486);}async[_0x394903(0xa5)](_0x31e9b9){const _0x4abe57=_0x394903,_0xa659a8=this['_injector'],_0x61c276=this[_0x4abe57(0xbe)],_0x55a8e9=this['subUnitId'],_0x1e0818=this[_0x4abe57(0xd4)],_0x3c6438=_0xa659a8[_0x4abe57(0xc3)](r[_0x4abe57(0xb6)]),_0x557618={'unitId':_0x61c276,'subUnitId':_0x55a8e9,'pivotTableId':_0x1e0818,'fieldIds':_0x31e9b9};return _0x3c6438['executeCommand'](d[_0x4abe57(0x9b)]['id'],_0x557618);}async[_0x394903(0xc9)](_0x57f1d9,_0x1a2478,_0xdcce66){const _0x5dccb1=_0x394903,_0x29e43a=this[_0x5dccb1(0xb5)],_0x43669b=this[_0x5dccb1(0xbe)],_0x525cd8=this['subUnitId'],_0x1b598f=this[_0x5dccb1(0xd4)],_0x5d7517=_0x29e43a[_0x5dccb1(0xc3)](r['ICommandService']),_0x4ca828={'unitId':_0x43669b,'subUnitId':_0x525cd8,'pivotTableId':_0x1b598f,'fieldId':_0x57f1d9,'area':_0x1a2478,'index':_0xdcce66};return _0x5d7517[_0x5dccb1(0xaa)](d[_0x5dccb1(0xa2)]['id'],_0x4ca828);}async['updateValuePosition'](_0x2f9732,_0xfed7f1){const _0x2bfd0c=_0x394903,_0x3a35eb=this[_0x2bfd0c(0xb5)],_0x56a57d=this['unitId'],_0x1695f1=this[_0x2bfd0c(0xb9)],_0x63252f=this['pivotTableId'],_0x5c0611=_0x3a35eb[_0x2bfd0c(0xc3)](r[_0x2bfd0c(0xb6)]),_0xfaf9cb={'unitId':_0x56a57d,'subUnitId':_0x1695f1,'pivotTableId':_0x63252f,'position':_0x2f9732,'index':_0xfed7f1};return _0x5c0611[_0x2bfd0c(0xaa)](d['UpdatePivotValuePositionCommand']['id'],_0xfaf9cb);}async['setSubtotalType'](_0x3ddfa9,_0x277bff){const _0xf8a3d1=_0x394903,_0x4c7e4f=this['_injector'],_0x542c74=this[_0xf8a3d1(0xbe)],_0x1df073=this[_0xf8a3d1(0xb9)],_0x9d85b6=this[_0xf8a3d1(0xd4)],_0x4f00c9=_0x4c7e4f[_0xf8a3d1(0xc3)](r[_0xf8a3d1(0xb6)]),_0x2441e1={'unitId':_0x542c74,'subUnitId':_0x1df073,'pivotTableId':_0x9d85b6,'fieldId':_0x3ddfa9,'subtotalType':_0x277bff};return _0x4f00c9[_0xf8a3d1(0xaa)](d[_0xf8a3d1(0xaf)]['id'],_0x2441e1);}async[_0x394903(0xc4)](_0x3f6a32,_0x41f4cf){const _0x276d07=_0x394903,_0x56c078=this[_0x276d07(0xb5)],_0x18bb86=this[_0x276d07(0xbe)],_0x16ae3f=this[_0x276d07(0xb9)],_0x26d3d8=this[_0x276d07(0xd4)],_0x33bf6b=_0x56c078[_0x276d07(0xc3)](r[_0x276d07(0xb6)]),_0x27794d={'unitId':_0x18bb86,'subUnitId':_0x16ae3f,'tableFieldId':_0x3f6a32,'pivotTableId':_0x26d3d8,'info':_0x41f4cf};return _0x33bf6b[_0x276d07(0xaa)](d[_0x276d07(0xc7)]['id'],_0x27794d);}async[_0x394903(0xac)](_0x96b584,_0x20d198,_0x44bf4f){const _0x147ee4=_0x394903,_0x1c9b3d=this[_0x147ee4(0xb5)],_0x3d8199=this[_0x147ee4(0xbe)],_0x5a70a1=this[_0x147ee4(0xb9)],_0x1556b7=this[_0x147ee4(0xd4)],_0x30b6e8=_0x1c9b3d['get'](r['ICommandService']),_0x45dcb8={'unitId':_0x3d8199,'subUnitId':_0x5a70a1,'pivotTableId':_0x1556b7,'tableFieldId':_0x96b584,'items':_0x20d198,'isAll':_0x44bf4f};return _0x30b6e8[_0x147ee4(0xaa)](d['SetPivotFilterCommand']['id'],_0x45dcb8);}async[_0x394903(0xb8)](_0x1ad812,_0x4ef137){const _0x14dfc9=_0x394903,_0x330233=this['_injector'],_0x1e29e0=this['unitId'],_0xdae66f=this[_0x14dfc9(0xb9)],_0x195ef6=this['pivotTableId'],_0x1d8afa=_0x330233[_0x14dfc9(0xc3)](r[_0x14dfc9(0xb6)]),_0x41cbc4={'unitId':_0x1e29e0,'subUnitId':_0xdae66f,'pivotTableId':_0x195ef6,'fieldId':_0x1ad812,'name':_0x4ef137};return _0x1d8afa['executeCommand'](d[_0x14dfc9(0xb7)]['id'],_0x41cbc4);}async[_0x394903(0xcd)](_0x428ce8,_0x978bbb,_0x4dd76c){const _0x3e13b2=_0x394903,_0x4f16cb=this[_0x3e13b2(0xb5)][_0x3e13b2(0xc3)](r['ICommandService']),_0x3cd254=this[_0x3e13b2(0xb5)]['get'](r[_0x3e13b2(0xd2)])['getUnit'](this[_0x3e13b2(0xbe)]),_0x24dd62=_0x3cd254==null?void 0x0:_0x3cd254['getSheetBySheetName'](_0x428ce8);if(!_0x3cd254||!_0x24dd62)throw new Error(_0x3e13b2(0xc0));return _0x4f16cb[_0x3e13b2(0xaa)](d[_0x3e13b2(0xba)]['id'],{'pivotTableId':this[_0x3e13b2(0xd4)],'targetCellInfo':{'subUnitId':_0x24dd62[_0x3e13b2(0xb1)](),'unitId':this[_0x3e13b2(0xbe)],'row':_0x978bbb,'col':_0x4dd76c},'originTargetInfo':{'subUnitId':this[_0x3e13b2(0xb9)],'unitId':this[_0x3e13b2(0xbe)]}});}}class P extends b['FWorkbook']{async[_0x394903(0xa1)](_0x39b112,_0x980806,_0x5b28f2){const _0x1f8261=_0x394903,_0x55b250=this[_0x1f8261(0xb5)],_0x5b67a9=_0x55b250['get'](r[_0x1f8261(0xb6)]),_0x4a90c6=S[_0x1f8261(0x9d)](0x8),_0x36e6bd={'positionType':_0x980806,'pivotTableId':_0x4a90c6,'pivotTableConfig':{'targetCellInfo':_0x5b28f2,'sourceRangeInfo':_0x39b112,'isEmpty':!0x0}};if(await _0x5b67a9['executeCommand'](d[_0x1f8261(0xab)]['id'],_0x36e6bd))return new I(_0x5b28f2[_0x1f8261(0xbe)],_0x5b28f2[_0x1f8261(0xb9)],_0x4a90c6,_0x55b250);}[_0x394903(0xcc)](_0x353d26,_0x140cdf,_0x41ae5c,_0x1cfb32){const _0x451666=_0x394903,_0x2bb60c=this[_0x451666(0xb5)],_0x1bf9c3=_0x2bb60c[_0x451666(0xc3)](d['SheetsPivotTableAdaptorModel'])[_0x451666(0xcb)](_0x353d26,_0x140cdf,_0x41ae5c,_0x1cfb32);if(_0x1bf9c3)return new I(_0x353d26,_0x140cdf,_0x1bf9c3,_0x2bb60c);}}b['FWorkbook'][_0x394903(0xc1)](P),exports[_0x394903(0xc6)]=I;
1
+ 'use strict';function _0x3139(){const _0x44163c=['pivotTableId','updateFieldPosition','symbol','RemovePivotFieldCommand','@univerjs-pro/sheets-pivot','getPivotTableRangeInfo','get','remove','move','extend','ICommandService','number','SetPivotSubtotalTypeMutation','10nfkKrQ','MovePivotTableCommand','subUnitId','setSubtotalType','15219999QernWC','29887416QDoQei','144dJWFfM','2939122lqCzMB','@univerjs/core','syncExecuteCommand','setLabelSort','getPivotTableIdByCell','defineProperty','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','updateValuePosition','generateHexNumber','119788bygSFO','RenamePivotFieldMutation','rangeInfo','SetPivotSortCommand','getConfig','12234929AEshtt','getPivotTableConfig','unitId','fieldIds','5WCXZfo','Module','5591502FcHFBz','15853035MJUcAG','addPivotTable','setLabelManualFilter','8PzvAdQ','FWorkbook','MovePivotFieldCommand','SheetsPivotTableConfigModel','executeCommand','AddPivotTableCommand','_injector','@univerjs-pro/engine-pivot','getUnit','1rgSISi','toStringTag'];_0x3139=function(){return _0x44163c;};return _0x3139();}const _0x522aec=_0x8163;function _0x8163(_0x1cd7a2,_0x16533d){const _0x3139dd=_0x3139();return _0x8163=function(_0x81632,_0x5e6d80){_0x81632=_0x81632-0x1b4;let _0x51c459=_0x3139dd[_0x81632];return _0x51c459;},_0x8163(_0x1cd7a2,_0x16533d);}(function(_0x4399ee,_0x52ee5e){const _0x430b02=_0x8163,_0x33f3fa=_0x4399ee();while(!![]){try{const _0x2b5e59=-parseInt(_0x430b02(0x1dd))/0x1*(-parseInt(_0x430b02(0x1bc))/0x2)+-parseInt(_0x430b02(0x1bb))/0x3*(-parseInt(_0x430b02(0x1c5))/0x4)+-parseInt(_0x430b02(0x1ce))/0x5*(parseInt(_0x430b02(0x1d0))/0x6)+parseInt(_0x430b02(0x1ca))/0x7*(parseInt(_0x430b02(0x1d4))/0x8)+-parseInt(_0x430b02(0x1b9))/0x9*(parseInt(_0x430b02(0x1b5))/0xa)+parseInt(_0x430b02(0x1d1))/0xb+-parseInt(_0x430b02(0x1ba))/0xc;if(_0x2b5e59===_0x52ee5e)break;else _0x33f3fa['push'](_0x33f3fa['shift']());}catch(_0x23e973){_0x33f3fa['push'](_0x33f3fa['shift']());}}}(_0x3139,0xefd83));var C=Object[_0x522aec(0x1c1)],p=(_0x503987,_0x683d44,_0x52747d)=>_0x683d44 in _0x503987?C(_0x503987,_0x683d44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52747d}):_0x503987[_0x683d44]=_0x52747d,l=(_0x290e30,_0x455d77,_0x129984)=>p(_0x290e30,typeof _0x455d77!=_0x522aec(0x1e1)?_0x455d77+'':_0x455d77,_0x129984);Object[_0x522aec(0x1c1)](exports,Symbol[_0x522aec(0x1de)],{'value':_0x522aec(0x1cf)});const r=require(_0x522aec(0x1bd)),b=require('@univerjs/sheets/facade'),S=require(_0x522aec(0x1db)),d=require(_0x522aec(0x1e3));class I{constructor(_0x55c4b5,_0x10e8ab,_0x20db25,_0x5ef477){const _0x493c72=_0x522aec;l(this,'unitId'),l(this,_0x493c72(0x1b7)),l(this,_0x493c72(0x1df)),l(this,_0x493c72(0x1da)),(this[_0x493c72(0x1cc)]=_0x55c4b5,this[_0x493c72(0x1b7)]=_0x10e8ab,this[_0x493c72(0x1df)]=_0x20db25,this['_injector']=_0x5ef477);}[_0x522aec(0x1c9)](){const _0x2e8a97=_0x522aec;return this[_0x2e8a97(0x1da)][_0x2e8a97(0x1e5)](d[_0x2e8a97(0x1d7)])[_0x2e8a97(0x1cb)](this[_0x2e8a97(0x1cc)],this[_0x2e8a97(0x1b7)],this['pivotTableId']);}[_0x522aec(0x1e4)](){const _0x555452=_0x522aec;var _0x361894;const _0x58c79b=(_0x361894=this[_0x555452(0x1da)][_0x555452(0x1e5)](d[_0x555452(0x1d7)])['getPivotTableRangeInfo'](this[_0x555452(0x1cc)],this[_0x555452(0x1b7)],this[_0x555452(0x1df)]))==null?void 0x0:_0x361894[_0x555452(0x1c7)];if(_0x58c79b)return d['unionPivotViewRange'](_0x58c79b);}async[_0x522aec(0x1e6)](){const _0x4dd342=_0x522aec;return await this['_injector'][_0x4dd342(0x1e5)](r[_0x4dd342(0x1e9)])[_0x4dd342(0x1be)](d['RemovePivotTableMutation']['id'],{'unitId':this[_0x4dd342(0x1cc)],'subUnitId':this[_0x4dd342(0x1b7)],'pivotTableId':this[_0x4dd342(0x1df)]});}async['addField'](_0x2119b9,_0x5b7da9,_0x152388){const _0x4afa32=_0x522aec,_0x293375=this['_injector'],_0x13c29b=this['unitId'],_0xcd41e4=this[_0x4afa32(0x1b7)],_0x198811=this[_0x4afa32(0x1df)],_0x322d40=_0x293375['get'](r[_0x4afa32(0x1e9)]),_0x3ffd70=_0x293375['get'](d[_0x4afa32(0x1d7)]),_0x2e6713=_0x3ffd70[_0x4afa32(0x1cb)](_0x13c29b,_0xcd41e4,_0x198811),_0x487152=_0x3ffd70['getCollection'](_0x13c29b,_0x198811);if(!_0x2e6713||!_0x487152)return!0x1;let _0x4672ae=_0x2119b9;typeof _0x4672ae==_0x4afa32(0x1ea)&&(_0x4672ae=_0x3ffd70['getCollection'](_0x13c29b,_0x198811)[_0x4afa32(0x1cd)][_0x2119b9]);const _0x589b87={'unitId':_0x13c29b,'subUnitId':_0xcd41e4,'pivotTableId':_0x198811,'dataFieldId':_0x4672ae,'fieldArea':_0x5b7da9,'index':_0x152388};return _0x322d40[_0x4afa32(0x1d8)](d['AddPivotFieldCommand']['id'],_0x589b87);}async['removeField'](_0x39ac10){const _0x2ed494=_0x522aec,_0x11a5cd=this[_0x2ed494(0x1da)],_0x363556=this[_0x2ed494(0x1cc)],_0x42884b=this['subUnitId'],_0x4c0b67=this[_0x2ed494(0x1df)],_0x518797=_0x11a5cd[_0x2ed494(0x1e5)](r[_0x2ed494(0x1e9)]),_0x538eac={'unitId':_0x363556,'subUnitId':_0x42884b,'pivotTableId':_0x4c0b67,'fieldIds':_0x39ac10};return _0x518797['executeCommand'](d[_0x2ed494(0x1e2)]['id'],_0x538eac);}async[_0x522aec(0x1e0)](_0x3e4bf4,_0x3ad863,_0x367a33){const _0x26368e=_0x522aec,_0x10c3fd=this[_0x26368e(0x1da)],_0x3b22fa=this['unitId'],_0x41665c=this[_0x26368e(0x1b7)],_0xa99b6d=this[_0x26368e(0x1df)],_0x19eecf=_0x10c3fd[_0x26368e(0x1e5)](r['ICommandService']),_0x180f54={'unitId':_0x3b22fa,'subUnitId':_0x41665c,'pivotTableId':_0xa99b6d,'fieldId':_0x3e4bf4,'area':_0x3ad863,'index':_0x367a33};return _0x19eecf[_0x26368e(0x1d8)](d[_0x26368e(0x1d6)]['id'],_0x180f54);}async[_0x522aec(0x1c3)](_0x216363,_0xad4cd3){const _0x59d1cf=_0x522aec,_0x522f84=this['_injector'],_0x18e22f=this['unitId'],_0x54da88=this['subUnitId'],_0x288e2e=this[_0x59d1cf(0x1df)],_0x36c460=_0x522f84[_0x59d1cf(0x1e5)](r[_0x59d1cf(0x1e9)]),_0x5c15a4={'unitId':_0x18e22f,'subUnitId':_0x54da88,'pivotTableId':_0x288e2e,'position':_0x216363,'index':_0xad4cd3};return _0x36c460[_0x59d1cf(0x1d8)](d['UpdatePivotValuePositionCommand']['id'],_0x5c15a4);}async[_0x522aec(0x1b8)](_0x1aa35d,_0x8d0282){const _0x301d96=_0x522aec,_0x2c17d7=this[_0x301d96(0x1da)],_0x5a0753=this[_0x301d96(0x1cc)],_0x4cfe84=this[_0x301d96(0x1b7)],_0x4fe861=this[_0x301d96(0x1df)],_0x5ea6da=_0x2c17d7['get'](r[_0x301d96(0x1e9)]),_0x1b8e96={'unitId':_0x5a0753,'subUnitId':_0x4cfe84,'pivotTableId':_0x4fe861,'fieldId':_0x1aa35d,'subtotalType':_0x8d0282};return _0x5ea6da[_0x301d96(0x1d8)](d[_0x301d96(0x1b4)]['id'],_0x1b8e96);}async[_0x522aec(0x1bf)](_0x4ecdf4,_0x596e7e){const _0x4ca536=_0x522aec,_0x4e1bea=this[_0x4ca536(0x1da)],_0x2ac2a1=this[_0x4ca536(0x1cc)],_0x38dd8c=this[_0x4ca536(0x1b7)],_0x48a197=this['pivotTableId'],_0x4e09ba=_0x4e1bea[_0x4ca536(0x1e5)](r[_0x4ca536(0x1e9)]),_0x445916={'unitId':_0x2ac2a1,'subUnitId':_0x38dd8c,'tableFieldId':_0x4ecdf4,'pivotTableId':_0x48a197,'info':_0x596e7e};return _0x4e09ba['executeCommand'](d[_0x4ca536(0x1c8)]['id'],_0x445916);}async[_0x522aec(0x1d3)](_0x217a1f,_0x1ab52c,_0x123bc3){const _0x552c76=_0x522aec,_0x4e19b6=this[_0x552c76(0x1da)],_0x458c74=this['unitId'],_0x1e0326=this['subUnitId'],_0x15ea6f=this['pivotTableId'],_0x485fb5=_0x4e19b6[_0x552c76(0x1e5)](r[_0x552c76(0x1e9)]),_0x1e46e7={'unitId':_0x458c74,'subUnitId':_0x1e0326,'pivotTableId':_0x15ea6f,'tableFieldId':_0x217a1f,'items':_0x1ab52c,'isAll':_0x123bc3};return _0x485fb5[_0x552c76(0x1d8)](d['SetPivotFilterCommand']['id'],_0x1e46e7);}async['renameField'](_0x50b93a,_0x10e879){const _0x54a022=_0x522aec,_0x5ad6c1=this['_injector'],_0x4fc74f=this[_0x54a022(0x1cc)],_0x4d1b2a=this[_0x54a022(0x1b7)],_0x152081=this[_0x54a022(0x1df)],_0x2ff30f=_0x5ad6c1[_0x54a022(0x1e5)](r['ICommandService']),_0x25f3bc={'unitId':_0x4fc74f,'subUnitId':_0x4d1b2a,'pivotTableId':_0x152081,'fieldId':_0x50b93a,'name':_0x10e879};return _0x2ff30f[_0x54a022(0x1d8)](d[_0x54a022(0x1c6)]['id'],_0x25f3bc);}async[_0x522aec(0x1e7)](_0x1f6b47,_0x325980,_0x2781fc){const _0x5dd550=_0x522aec,_0xbe5188=this[_0x5dd550(0x1da)][_0x5dd550(0x1e5)](r[_0x5dd550(0x1e9)]),_0x2383a4=this[_0x5dd550(0x1da)][_0x5dd550(0x1e5)](r['IUniverInstanceService'])[_0x5dd550(0x1dc)](this[_0x5dd550(0x1cc)]),_0x495edc=_0x2383a4==null?void 0x0:_0x2383a4['getSheetBySheetName'](_0x1f6b47);if(!_0x2383a4||!_0x495edc)throw new Error(_0x5dd550(0x1c2));return _0xbe5188[_0x5dd550(0x1d8)](d[_0x5dd550(0x1b6)]['id'],{'pivotTableId':this[_0x5dd550(0x1df)],'targetCellInfo':{'subUnitId':_0x495edc['getSheetId'](),'unitId':this[_0x5dd550(0x1cc)],'row':_0x325980,'col':_0x2781fc},'originTargetInfo':{'subUnitId':this[_0x5dd550(0x1b7)],'unitId':this[_0x5dd550(0x1cc)]}});}}class P extends b[_0x522aec(0x1d5)]{async[_0x522aec(0x1d2)](_0x79f922,_0x48920d,_0x4b39ed){const _0x4c24dc=_0x522aec,_0x17906d=this['_injector'],_0x228cdc=_0x17906d[_0x4c24dc(0x1e5)](r[_0x4c24dc(0x1e9)]),_0x20656b=S[_0x4c24dc(0x1c4)](0x8),_0x4f8314={'positionType':_0x48920d,'pivotTableId':_0x20656b,'pivotTableConfig':{'targetCellInfo':_0x4b39ed,'sourceRangeInfo':_0x79f922,'isEmpty':!0x0}};if(await _0x228cdc[_0x4c24dc(0x1d8)](d[_0x4c24dc(0x1d9)]['id'],_0x4f8314))return new I(_0x4b39ed[_0x4c24dc(0x1cc)],_0x4b39ed[_0x4c24dc(0x1b7)],_0x20656b,_0x17906d);}['getPivotTableByCell'](_0x4cd25d,_0x21c024,_0x14cd60,_0x472225){const _0x1ae4eb=_0x522aec,_0x37f0a8=this[_0x1ae4eb(0x1da)],_0x38df9a=_0x37f0a8[_0x1ae4eb(0x1e5)](d['SheetsPivotTableAdaptorModel'])[_0x1ae4eb(0x1c0)](_0x4cd25d,_0x21c024,_0x14cd60,_0x472225);if(_0x38df9a)return new I(_0x4cd25d,_0x21c024,_0x38df9a,_0x37f0a8);}}b['FWorkbook'][_0x522aec(0x1e8)](P),exports['FPivotTable']=I;