@univerjs-pro/sheets-pivot 0.6.10-experimental.20250411-055c47d → 0.6.10-experimental.20250418-8830bd4

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 _0x4df760=_0x3878;function _0x3878(_0x175205,_0x7df81b){const _0x11a5da=_0x11a5();return _0x3878=function(_0x387895,_0x718a4b){_0x387895=_0x387895-0x97;let _0x59f1da=_0x11a5da[_0x387895];return _0x59f1da;},_0x3878(_0x175205,_0x7df81b);}(function(_0x28db77,_0x351a1d){const _0x18386f=_0x3878,_0x3e7af9=_0x28db77();while(!![]){try{const _0x292399=-parseInt(_0x18386f(0x17f))/0x1+-parseInt(_0x18386f(0x132))/0x2+parseInt(_0x18386f(0xf4))/0x3+-parseInt(_0x18386f(0xe4))/0x4+parseInt(_0x18386f(0xbc))/0x5+-parseInt(_0x18386f(0x179))/0x6+parseInt(_0x18386f(0xfd))/0x7;if(_0x292399===_0x351a1d)break;else _0x3e7af9['push'](_0x3e7af9['shift']());}catch(_0x59c83e){_0x3e7af9['push'](_0x3e7af9['shift']());}}}(_0x11a5,0x1b32f));var ee=Object['defineProperty'],te=(_0x432914,_0x2cc827,_0x484eb4)=>_0x2cc827 in _0x432914?ee(_0x432914,_0x2cc827,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x484eb4}):_0x432914[_0x2cc827]=_0x484eb4,y=(_0x376423,_0x2c18de,_0x221976)=>te(_0x376423,typeof _0x2c18de!=_0x4df760(0xee)?_0x2c18de+'':_0x2c18de,_0x221976);const r=require(_0x4df760(0x16b)),l=require('@univerjs-pro/sheets-pivot'),m=require(_0x4df760(0xeb)),R=require(_0x4df760(0xf1)),A=require('@univerjs/core/facade'),ie=require(_0x4df760(0xa9));class x{constructor(_0x5a7cbb,_0x4b224b,_0x35bb10,_0x4e5f91){const _0x58fd34=_0x4df760;y(this,_0x58fd34(0xab)),y(this,_0x58fd34(0x107)),y(this,'pivotTableId'),y(this,_0x58fd34(0xc2)),(this['unitId']=_0x5a7cbb,this[_0x58fd34(0x107)]=_0x4b224b,this['pivotTableId']=_0x35bb10,this[_0x58fd34(0xc2)]=_0x4e5f91);}[_0x4df760(0xd3)](){const _0x4facc1=_0x4df760;return this[_0x4facc1(0xc2)][_0x4facc1(0x12a)](l[_0x4facc1(0xff)])[_0x4facc1(0xb4)](this[_0x4facc1(0xab)],this['subUnitId'],this[_0x4facc1(0x16d)]);}[_0x4df760(0xf0)](_0x4b7d97){const _0x352618=_0x4df760,_0x58d3e7=this[_0x352618(0xc2)][_0x352618(0x12a)](m[_0x352618(0xe2)]),_0x550576={'unitId':this['unitId'],'subUnitId':this[_0x352618(0x107)],'pivotTableId':this[_0x352618(0x16d)],'pivotTableConfig':_0x4b7d97};return _0x58d3e7[_0x352618(0x120)](l[_0x352618(0xbf)]['id'],_0x550576);}[_0x4df760(0x153)](_0x92b9a3){const _0x415f54=_0x4df760,_0x115eff=this[_0x415f54(0xc2)][_0x415f54(0x12a)](m['ICommandService']),_0x326212={'unitId':this[_0x415f54(0xab)],'subUnitId':this[_0x415f54(0x107)],'pivotTableId':this[_0x415f54(0x16d)],'resetArea':_0x92b9a3};return _0x115eff[_0x415f54(0x120)](l[_0x415f54(0x185)]['id'],_0x326212);}[_0x4df760(0x176)](){return this['pivotTableId'];}[_0x4df760(0x97)](_0x251162){const _0x1d7645=_0x4df760,_0x4308a1=this[_0x1d7645(0xc2)][_0x1d7645(0x12a)](l['SheetsPivotTableConfigModel'])[_0x1d7645(0xb4)](this[_0x1d7645(0xab)],this[_0x1d7645(0x107)],this[_0x1d7645(0x16d)]),_0x215eab=_0x4308a1==null?void 0x0:_0x4308a1[_0x1d7645(0xef)];if(_0x215eab)return _0x215eab[_0x1d7645(0xdd)][_0x251162]||_0x215eab[_0x1d7645(0x166)][_0x251162];}[_0x4df760(0x11b)](){const _0x239334=_0x4df760,_0x27bced=this[_0x239334(0xc2)],_0x3d0df6=this[_0x239334(0xab)],_0x2704cc=this[_0x239334(0x16d)],_0x484f3c=_0x27bced[_0x239334(0x12a)](l[_0x239334(0xff)])[_0x239334(0xf3)](_0x3d0df6,_0x2704cc);if(_0x484f3c){const _0x72cb48=_0x484f3c[_0x239334(0x144)],_0x3bda1b=_0x484f3c[_0x239334(0xb5)],_0x1f51d9=_0x484f3c['displayNameRecord'],_0xc06f1a=[];for(const _0x31bd74 of _0x72cb48){const _0x52cf2f=_0x3bda1b[_0x31bd74];if(_0x52cf2f){const _0x3b1128={'id':_0x31bd74,'name':_0x52cf2f[_0x239334(0xe6)],'fieldDataType':_0x52cf2f[_0x239334(0x17a)]};_0x1f51d9&&_0x1f51d9[_0x31bd74]!==void 0x0&&(_0x3b1128[_0x239334(0xdb)]=_0x1f51d9[_0x31bd74]),_0xc06f1a[_0x239334(0x180)](_0x3b1128);}}return _0xc06f1a;}return[];}[_0x4df760(0x178)](_0xa4120){const _0x293af0=_0x4df760;var _0x19653e;const _0x4892=this[_0x293af0(0xc2)][_0x293af0(0x12a)](l[_0x293af0(0xff)])[_0x293af0(0xb4)](this['unitId'],this[_0x293af0(0x107)],this[_0x293af0(0x16d)]),_0x2a6478=_0x4892==null?void 0x0:_0x4892['fieldsConfig'][_0x293af0(0x99)];return(_0x19653e=_0x2a6478==null?void 0x0:_0x2a6478[_0x293af0(0x10a)](_0x3ece36=>_0x3ece36[_0x293af0(0x9c)]===_0xa4120))==null?void 0x0:_0x19653e['filterInfo'];}[_0x4df760(0x98)](){const _0x2313d2=_0x4df760,_0x10fd13=this['_injector'][_0x2313d2(0x12a)](l[_0x2313d2(0xff)])[_0x2313d2(0xb4)](this['unitId'],this[_0x2313d2(0x107)],this[_0x2313d2(0x16d)]),_0xe3e478=_0x10fd13==null?void 0x0:_0x10fd13[_0x2313d2(0xef)][_0x2313d2(0x99)];return(_0xe3e478==null?void 0x0:_0xe3e478[_0x2313d2(0x13e)]())||[];}['getFieldIdsByArea'](_0x211984){const _0x1d3ed0=_0x4df760,_0x3e3647=this[_0x1d3ed0(0xc2)][_0x1d3ed0(0x12a)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x1d3ed0(0xab)],this[_0x1d3ed0(0x107)],this[_0x1d3ed0(0x16d)]),_0x4d8087=_0x3e3647==null?void 0x0:_0x3e3647[_0x1d3ed0(0xef)];if(_0x4d8087)switch(_0x211984){case r[_0x1d3ed0(0x181)]['Column']:return _0x4d8087['columnFields']['concat']();case r[_0x1d3ed0(0x181)][_0x1d3ed0(0x147)]:return _0x4d8087[_0x1d3ed0(0x167)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0x154)]:return _0x4d8087[_0x1d3ed0(0xaf)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0xbd)]:return _0x4d8087[_0x1d3ed0(0x15f)][_0x1d3ed0(0x13e)]();case r['PivotTableFiledAreaEnum'][_0x1d3ed0(0x108)]:return _0x4d8087['hiddenFields']['concat']();}return[];}[_0x4df760(0x171)](){const _0x5baee2=_0x4df760;var _0x2f0405;const _0x4138f7=(_0x2f0405=this[_0x5baee2(0xc2)][_0x5baee2(0x12a)](l[_0x5baee2(0xff)])[_0x5baee2(0x171)](this[_0x5baee2(0xab)],this[_0x5baee2(0x107)],this[_0x5baee2(0x16d)]))==null?void 0x0:_0x2f0405['rangeInfo'];if(_0x4138f7)return l[_0x5baee2(0x136)](_0x4138f7);}async[_0x4df760(0x122)](){const _0x4d63e0=_0x4df760;return await this[_0x4d63e0(0xc2)][_0x4d63e0(0x12a)](m['ICommandService'])[_0x4d63e0(0x135)](l['RemovePivotTableMutation']['id'],{'unitId':this[_0x4d63e0(0xab)],'subUnitId':this[_0x4d63e0(0x107)],'pivotTableId':this['pivotTableId']});}async['addField'](_0x31d38a,_0x21ba64,_0x1aedf6){const _0x166d0c=_0x4df760,_0x2a6a9a=this['_injector'],_0x3e0d1a=this[_0x166d0c(0xab)],_0x20ea1d=this['subUnitId'],_0x4a1e5c=this['pivotTableId'],_0x57e653=_0x2a6a9a[_0x166d0c(0x12a)](m[_0x166d0c(0xe2)]),_0xe35ae9=_0x2a6a9a['get'](l[_0x166d0c(0xff)]),_0x80e95e=_0xe35ae9[_0x166d0c(0xb4)](_0x3e0d1a,_0x20ea1d,_0x4a1e5c),_0xadffa8=_0xe35ae9[_0x166d0c(0xf3)](_0x3e0d1a,_0x4a1e5c);if(!_0x80e95e||!_0xadffa8)return!0x1;let _0x331ad2=_0x31d38a;typeof _0x331ad2==_0x166d0c(0x10c)&&(_0x331ad2=_0xe35ae9[_0x166d0c(0xf3)](_0x3e0d1a,_0x4a1e5c)[_0x166d0c(0x144)][_0x31d38a]);const _0x2770ba={'unitId':_0x3e0d1a,'subUnitId':_0x20ea1d,'pivotTableId':_0x4a1e5c,'dataFieldId':_0x331ad2,'fieldArea':_0x21ba64,'index':_0x1aedf6};return _0x57e653[_0x166d0c(0x120)](l[_0x166d0c(0x174)]['id'],_0x2770ba);}async['removeField'](_0x48b7f2){const _0x8b7795=_0x4df760,_0x20a1a0=this[_0x8b7795(0xc2)],_0x1c37bf=this['unitId'],_0x406d76=this['subUnitId'],_0x40d52c=this['pivotTableId'],_0x412bbb=_0x20a1a0[_0x8b7795(0x12a)](m[_0x8b7795(0xe2)]),_0x38b534={'unitId':_0x1c37bf,'subUnitId':_0x406d76,'pivotTableId':_0x40d52c,'fieldIds':_0x48b7f2};return _0x412bbb[_0x8b7795(0x120)](l['RemovePivotFieldCommand']['id'],_0x38b534);}async['updateFieldPosition'](_0x45ed56,_0x167953,_0x2a4cf8){const _0x55ec67=_0x4df760,_0x18b442=this[_0x55ec67(0xc2)],_0xbc3412=this[_0x55ec67(0xab)],_0x21208b=this[_0x55ec67(0x107)],_0x1659c8=this[_0x55ec67(0x16d)],_0x3e0482=_0x18b442[_0x55ec67(0x12a)](m[_0x55ec67(0xe2)]),_0x533f50={'unitId':_0xbc3412,'subUnitId':_0x21208b,'pivotTableId':_0x1659c8,'fieldId':_0x45ed56,'area':_0x167953,'index':_0x2a4cf8};return _0x3e0482['executeCommand'](l[_0x55ec67(0xea)]['id'],_0x533f50);}async[_0x4df760(0xe5)](_0x29e4b9,_0x170642){const _0x3a1bcd=_0x4df760,_0x1e60a9=this[_0x3a1bcd(0xc2)],_0x45f3e2=this[_0x3a1bcd(0xab)],_0x5bc4dc=this[_0x3a1bcd(0x107)],_0x173fb8=this['pivotTableId'],_0xca95f3=_0x1e60a9[_0x3a1bcd(0x12a)](m['ICommandService']),_0x452cb8={'unitId':_0x45f3e2,'subUnitId':_0x5bc4dc,'pivotTableId':_0x173fb8,'position':_0x29e4b9,'index':_0x170642};return _0xca95f3['executeCommand'](l['UpdatePivotValuePositionCommand']['id'],_0x452cb8);}async[_0x4df760(0x14a)](_0x2042f8,_0x44ca9d){const _0x37cc89=_0x4df760,_0x59f77f=this[_0x37cc89(0xc2)],_0x5ae1df=this[_0x37cc89(0xab)],_0x49e082=this[_0x37cc89(0x107)],_0x82c673=this[_0x37cc89(0x16d)],_0x417e8e=_0x59f77f[_0x37cc89(0x12a)](m[_0x37cc89(0xe2)]),_0x3f13c3={'unitId':_0x5ae1df,'subUnitId':_0x49e082,'pivotTableId':_0x82c673,'fieldId':_0x2042f8,'subtotalType':_0x44ca9d};return _0x417e8e['executeCommand'](l[_0x37cc89(0x14b)]['id'],_0x3f13c3);}async['setLabelSort'](_0x3527f6,_0xe3fd2d){const _0x298e1f=_0x4df760,_0x1c7972=this[_0x298e1f(0xc2)],_0x1e7d7c=this[_0x298e1f(0xab)],_0x5ee6cb=this[_0x298e1f(0x107)],_0xb7c4f1=this[_0x298e1f(0x16d)],_0x1b71f5=_0x1c7972[_0x298e1f(0x12a)](m[_0x298e1f(0xe2)]),_0x29373d={'unitId':_0x1e7d7c,'subUnitId':_0x5ee6cb,'tableFieldId':_0x3527f6,'pivotTableId':_0xb7c4f1,'info':_0xe3fd2d};return _0x1b71f5[_0x298e1f(0x120)](l['SetPivotSortCommand']['id'],_0x29373d);}async[_0x4df760(0x17b)](_0x27f6ec,_0x2ac7cd,_0x49fc78){const _0x953dd7=_0x4df760,_0x512705=this[_0x953dd7(0xc2)],_0x25ab99=this[_0x953dd7(0xab)],_0x2ebbd3=this[_0x953dd7(0x107)],_0x1bfe47=this['pivotTableId'],_0x238bc1=_0x512705['get'](m[_0x953dd7(0xe2)]),_0x53a84f={'unitId':_0x25ab99,'subUnitId':_0x2ebbd3,'pivotTableId':_0x1bfe47,'tableFieldId':_0x27f6ec,'items':_0x2ac7cd,'isAll':_0x49fc78};return _0x238bc1['executeCommand'](l[_0x953dd7(0xdc)]['id'],_0x53a84f);}async[_0x4df760(0x12b)](_0x1ecaba,_0x47ac5b){const _0x1d3a6e=_0x4df760,_0x147802=this['_injector'],_0x47eca2=this[_0x1d3a6e(0xab)],_0xe4f06c=this[_0x1d3a6e(0x107)],_0x2abde7=this[_0x1d3a6e(0x16d)],_0x143764=_0x147802[_0x1d3a6e(0x12a)](m[_0x1d3a6e(0xe2)]);if(_0x1ecaba===void 0x0)return console[_0x1d3a6e(0x161)](_0x1d3a6e(0x12f)),!0x1;const _0x399a65=_0x47ac5b&&{..._0x47ac5b,'type':r[_0x1d3a6e(0x16c)][_0x1d3a6e(0x158)]},_0x2c9465={'unitId':_0x47eca2,'subUnitId':_0xe4f06c,'pivotTableId':_0x2abde7,'fieldId':_0x1ecaba,'valueFilterInfo':_0x399a65};return _0x143764[_0x1d3a6e(0x120)](l[_0x1d3a6e(0xf6)]['id'],_0x2c9465);}async['renameField'](_0xba5336,_0x51547e){const _0x48e52e=_0x4df760,_0x2719ae=this[_0x48e52e(0xc2)],_0x1599b4=this['unitId'],_0xe5483b=this['subUnitId'],_0x3cf5fa=this[_0x48e52e(0x16d)],_0x548f5e=_0x2719ae['get'](m[_0x48e52e(0xe2)]),_0x3041a6={'unitId':_0x1599b4,'subUnitId':_0xe5483b,'pivotTableId':_0x3cf5fa,'fieldId':_0xba5336,'name':_0x51547e};return _0x548f5e[_0x48e52e(0x120)](l[_0x48e52e(0xa7)]['id'],_0x3041a6);}async[_0x4df760(0x145)](_0x38e1db,_0x50fad3,_0x32ffc0){const _0x298db1=_0x4df760,_0xe220fd=this[_0x298db1(0xc2)][_0x298db1(0x12a)](m[_0x298db1(0xe2)]),_0x2b8de7=this[_0x298db1(0xc2)][_0x298db1(0x12a)](m[_0x298db1(0x9f)])[_0x298db1(0xbe)](this[_0x298db1(0xab)]),_0x1fa24c=_0x2b8de7==null?void 0x0:_0x2b8de7[_0x298db1(0xa4)](_0x38e1db);if(!_0x2b8de7||!_0x1fa24c)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0xe220fd[_0x298db1(0x120)](l[_0x298db1(0x186)]['id'],{'pivotTableId':this[_0x298db1(0x16d)],'targetCellInfo':{'subUnitId':_0x1fa24c['getSheetId'](),'unitId':this[_0x298db1(0xab)],'row':_0x50fad3,'col':_0x32ffc0},'originTargetInfo':{'subUnitId':this[_0x298db1(0x107)],'unitId':this[_0x298db1(0xab)]}});}async[_0x4df760(0x162)](_0x359b75,_0x5e9236){const _0x1ce0b3=_0x4df760,_0x36b095=this[_0x1ce0b3(0xc2)],_0x118d8a=this['unitId'],_0x2c88f6=this[_0x1ce0b3(0x107)],_0xa7e399=this[_0x1ce0b3(0x16d)],_0x1796d8=_0x36b095[_0x1ce0b3(0x12a)](m[_0x1ce0b3(0xe2)]),_0x3f86fc={'unitId':_0x118d8a,'subUnitId':_0x2c88f6,'pivotTableId':_0xa7e399,'tableFieldId':_0x359b75,'dateType':_0x5e9236};return _0x1796d8['executeCommand'](l['UpdateDateGroupCommand']['id'],_0x3f86fc);}}class oe extends R[_0x4df760(0x118)]{async[_0x4df760(0xfe)](_0x34a7a7,_0x507323,_0x2db1ea){const _0x1ec2c3=_0x4df760,_0x2594cc=this[_0x1ec2c3(0xc2)],_0x48c639=_0x2594cc[_0x1ec2c3(0x12a)](m[_0x1ec2c3(0xe2)]),_0x39141c=r['generateHexNumber'](0x8),_0x39b704={'positionType':_0x507323,'pivotTableId':_0x39141c,'pivotTableConfig':{'targetCellInfo':_0x2db1ea,'sourceRangeInfo':_0x34a7a7,'isEmpty':!0x0}};if(await _0x48c639[_0x1ec2c3(0x120)](l[_0x1ec2c3(0x103)]['id'],_0x39b704))return new x(_0x2db1ea[_0x1ec2c3(0xab)],_0x2db1ea[_0x1ec2c3(0x107)],_0x39141c,_0x2594cc);}[_0x4df760(0xd7)](_0x488a5c,_0x44d6fc,_0x11d9a7,_0x5afaa1){const _0x35d36d=_0x4df760,_0x51e0b2=this[_0x35d36d(0xc2)],_0xf25f8d=_0x51e0b2['get'](l['SheetsPivotTableAdaptorModel'])[_0x35d36d(0xe1)](_0x488a5c,_0x44d6fc,_0x11d9a7,_0x5afaa1);if(_0xf25f8d)return new x(_0x488a5c,_0x44d6fc,_0xf25f8d,_0x51e0b2);}[_0x4df760(0xe8)](_0x443431){const _0x43a60d=_0x4df760,_0x173803=this[_0x43a60d(0xc2)],_0x4f6797=_0x173803[_0x43a60d(0x12a)](l[_0x43a60d(0xff)])[_0x43a60d(0x13c)](this[_0x43a60d(0x151)](),_0x443431);if(_0x4f6797)return new x(_0x4f6797[_0x43a60d(0xab)],_0x4f6797['subUnitId'],_0x443431,_0x173803);}}R[_0x4df760(0x118)]['extend'](oe);class ne extends R[_0x4df760(0x182)]{['getPivotTableByCell'](_0x220f52,_0x25be95){const _0x5bd27c=_0x4df760,_0x9ed70f=this[_0x5bd27c(0xc2)],_0x5a08a2=_0x9ed70f[_0x5bd27c(0x12a)](l[_0x5bd27c(0xb9)]),_0x4d391f=this['_workbook'][_0x5bd27c(0x9d)](),_0x37c590=this[_0x5bd27c(0xc0)](),_0x39c4bc=_0x5a08a2['getPivotTableIdByCell'](_0x4d391f,_0x37c590,_0x220f52,_0x25be95);if(_0x39c4bc)return new x(_0x4d391f,_0x37c590,_0x39c4bc,_0x9ed70f);}}R['FWorksheet'][_0x4df760(0x112)](ne);function _0x11a5(){const _0x30aaa6=['PivotTableFieldAdded','RenamePivotFieldMutation','getRangeData','rxjs','PivotTableChangeTypeEnum','unitId','AddPivotTableWithConfigCommand','_firePivotTableValuePositionChangedEvent','registerEventHandler','valueFields','PivotTableValuePositionEnum','getValueFields','PivotTableAdded','string','getPivotTableConfig','fields','onCommandExecuted','(空白)','PivotViewCellValueTypeEnum','SheetsPivotTableAdaptorModel','numfmt','getTime','176335ioQmkQ','Filter','getUnit','SetPivotFieldsConfigCommand','getSheetId','getTableFieldsByDataFieldId','_injector','PivotTableFieldSettingChanged','PivotDataFieldDataTypeEnum','FEventName','BeforePivotTableMove','[PivotTable]:\x20The\x20field\x20name\x20','_firePivotTableFieldFilterChangedEvent','小计\x20','query','(blank)','PivotDataFieldSortTypeEnum','length','_isZhCN','PivotTableFieldFilterChanged','ZH_CN','getFieldDataTypeByFieldName','getDataFieldIdByDisplayName','getConfig','setSubtotal','getDataFieldByTableId','_firePivotTableFieldSortChangedEvent','getPivotTableByCell','_fireBeforeAddPivotTableEvent','count','setDisplayName','displayName','SetPivotFilterCommand','dimension','getValueIndex','getFieldIds','endColumn','getPivotTableIdByCell','ICommandService','PivotTableFieldRemoved','376804oQnTdU','updateValuePosition','name','column','getPivotTableById','valueIndex','MovePivotFieldCommand','@univerjs/core','总计\x20','_fireBeforeMovePivotTableEvent','symbol','fieldsConfig','setFieldsConfig','@univerjs/sheets/facade','LocaleService','getCollection','395826GTusQF','targetCellInfo','SetPivotValueFilterCommand','getFieldById','getNameWithColumnIndex','getPivotSourceData','_initialize','_fireAddPivotTableEvent','addFilterFieldWithName','3412535RtZHmj','addPivotTable','SheetsPivotTableConfigModel','_pivot','getValuePosition','\x20failed.','AddPivotTableCommand','addFieldWithSourceId','_firePivotTableRemovedEvent','PivotDataFieldSortOperatorEnum','subUnitId','Hidden','max','find','Total\x20','number','PivotTableRendered','getFieldDataType','params','_id','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','extend','isNaN','Subtotal','row','filter','_getSourceIdByName','FWorkbook','ST_PivotFilterOperatorEnum','PivotFilterOperatorEnum','getSourceFieldsInfo','getResultByCalculate','viewUpdate$','pipe','FUniver','executeCommand','dataFieldsCollection','remove','_sourceData','BeforePivotTableAdd','level','generateHexNumber','Event','sheetName','PivotTableFieldSortChanged','get','setValueFilter','addFieldWithName','UpdatePivotValuePositionCommand','fireEvent','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','isBottomTotal','getCurrentLocale','402838exNfqu','blank','_firePivotTableFieldSettingChangedEvent','syncExecuteCommand','unionPivotViewRange','col','tableFieldId','RemovePivotFieldCommand','PivotTableMoved','getRowCount','getTargetByPivotTableId','createCollection','concat','PivotCellStyleTypeEnum','startRow','object','DataFieldManager','Grand\x20Total\x20','fieldIds','move','PositionTypeEnum','Row','PivotSubtotalTypeEnum','getFieldCountByArea','setSubtotalType','SetPivotSubtotalTypeMutation','headerMap','keys','forEach','info','RemovePivotTableMutation','getId','value','reset','Value','LifecycleService','_firePivotTableFieldMovedEvent','lifecycle$','ValueFilter','getFieldDisplayNames','cancel','PivotTableValuePositionChanged','generatePivotTable','Column','setOptions','filterFields','Before\x20add\x20pivot\x20table\x20event\x20canceled','warn','setDateGroupType','format','PivotTable','_firePivotTableFieldCollapsedEvent','measure','rowFields','data','date','getformat','@univerjs-pro/engine-pivot','PivotFilterTypeEnum','pivotTableId','_firePivotTableFieldRemovedEvent','startColumn','_fireRenderPivotTableEvent','getPivotTableRangeInfo','FEnum','PivotDateGroupFieldDateTypeEnum','AddPivotFieldCommand','PivotTableFieldMoved','getPivotTableId','subtotal','getValueFilter','242508qFHnjI','fieldDataType','setLabelManualFilter','SetPivotSortCommand','removeFieldWithName','getColCount','207269kQgSQG','push','PivotTableFiledAreaEnum','FWorksheet','range','endRow','ResetPivotFieldsConfigCommand','MovePivotTableCommand','getFieldSetting','getValueFilters','valueFilter','_firePivotTableFieldAddedEvent','PivotTableFieldCollapseChanged','fieldId','getUnitId','YYYY-MM-DD','IUniverInstanceService','GrandTotal','subscribe','UpdatePivotFieldSettingCommand','beforeCommandExecuted','getSheetBySheetName','PivotTableRemoved'];_0x11a5=function(){return _0x30aaa6;};return _0x11a5();}class ae extends A[_0x4df760(0x172)]{get[_0x4df760(0x148)](){const _0x353060=_0x4df760;return r[_0x353060(0x148)];}get['PivotFilterTypeEnum'](){const _0x34db8f=_0x4df760;return r[_0x34db8f(0x16c)];}get['PivotTableFiledAreaEnum'](){const _0x173f24=_0x4df760;return r[_0x173f24(0x181)];}get['PivotTableValuePositionEnum'](){const _0x469001=_0x4df760;return r[_0x469001(0xb0)];}get['PivotDataFieldDataTypeEnum'](){const _0x20e84e=_0x4df760;return r[_0x20e84e(0xc4)];}get[_0x4df760(0xcc)](){const _0x3811aa=_0x4df760;return r[_0x3811aa(0xcc)];}get[_0x4df760(0x106)](){const _0xee83c5=_0x4df760;return r[_0xee83c5(0x106)];}get[_0x4df760(0x11a)](){const _0x4d2659=_0x4df760;return r[_0x4d2659(0x119)];}get[_0x4df760(0x146)](){return l['PositionType'];}get[_0x4df760(0xaa)](){const _0x24050f=_0x4df760;return r[_0x24050f(0xaa)];}get[_0x4df760(0x173)](){const _0x3d2fbf=_0x4df760;return r[_0x3d2fbf(0x173)];}}A[_0x4df760(0x172)][_0x4df760(0x112)](ae);class se extends A['FEventName']{get['PivotTableAdded'](){const _0x3c1068=_0x4df760;return _0x3c1068(0xb2);}get[_0x4df760(0x124)](){return'BeforePivotTableAdd';}get[_0x4df760(0xa5)](){const _0x2ccb33=_0x4df760;return _0x2ccb33(0xa5);}get[_0x4df760(0x13a)](){const _0x38c94e=_0x4df760;return _0x38c94e(0x13a);}get[_0x4df760(0x10d)](){return'PivotTableRendered';}get['PivotTableFieldAdded'](){const _0xa5cc9a=_0x4df760;return _0xa5cc9a(0xa6);}get['PivotTableFieldRemoved'](){const _0x8d08ce=_0x4df760;return _0x8d08ce(0xe3);}get[_0x4df760(0x175)](){const _0x1421e4=_0x4df760;return _0x1421e4(0x175);}get['PivotTableFieldCollapseChanged'](){return'PivotTableFieldCollapseChanged';}get[_0x4df760(0xcf)](){return'PivotTableFieldFilterChanged';}get[_0x4df760(0x129)](){const _0x5e67ea=_0x4df760;return _0x5e67ea(0x129);}get['PivotTableFieldSettingChanged'](){const _0x5a7d0d=_0x4df760;return _0x5a7d0d(0xc3);}get['PivotTableValuePositionChanged'](){const _0x4094a4=_0x4df760;return _0x4094a4(0x15b);}}A[_0x4df760(0xc5)][_0x4df760(0x112)](se);const Z=_0x4df760(0x9e);function de(_0x725d24){return _0x725d24/0x3e8/0x15180+0x63e1;}function le(_0xe658c9,_0x58172d,_0x5bc06f,_0x21fd8e){const _0x3ac29a=_0x4df760;var _0x30a824,_0x4ede90,_0x5ef4e8,_0x2efd53,_0x594118,_0x2c1ba4,_0x54d8a1,_0x50e767,_0x3ada2b,_0x37c128,_0x46b09a,_0x3a39fc,_0x5a8c97,_0x426268,_0x17efdf;const _0x391c39=[],_0x2df059=[],_0x19559d=[],{showRowGrandTotal:_0x10ff1b,showRowSubTotal:_0x38dda3}=_0x21fd8e,{cornerView:_0x23c21d,colView:_0xf7ed4d,rowView:_0x261b0e,dataView:_0x20da89,formatMap:_0x17fcfb}=_0x58172d,_0x266a09=_0x23c21d[_0x3ac29a(0x13b)](),_0x537f59=_0x23c21d[_0x3ac29a(0x17e)]();for(let _0x16a2ad=0x0;_0x16a2ad<_0x266a09;_0x16a2ad++)for(let _0x36fc09=0x0;_0x36fc09<_0x537f59;_0x36fc09++){const _0x47b97a={...(_0x4ede90=(_0x30a824=_0x23c21d[_0x3ac29a(0x168)])==null?void 0x0:_0x30a824[_0x16a2ad])==null?void 0x0:_0x4ede90[_0x36fc09]};_0x47b97a['v']&&(_0x391c39[_0x16a2ad]||(_0x391c39[_0x16a2ad]=[]),_0x19559d[_0x16a2ad]||(_0x19559d[_0x16a2ad]=[]),_0x391c39[_0x16a2ad][_0x36fc09]=_0x47b97a['v'],_0x19559d[_0x16a2ad][_0x36fc09]=_0x47b97a['v']);}for(let _0x1ad818=0x0;_0x1ad818<_0xf7ed4d[_0x3ac29a(0x13b)]();_0x1ad818++){const _0x2ad250=(_0x2efd53=(_0x5ef4e8=_0xf7ed4d==null?void 0x0:_0xf7ed4d[_0x3ac29a(0x14c)])==null?void 0x0:_0x5ef4e8[_0x1ad818])==null?void 0x0:_0x2efd53[_0x3ac29a(0x138)],_0x1dfad1=_0x2ad250?_0x17fcfb[_0x2ad250]:'';for(let _0x22c8b7=0x0;_0x22c8b7<_0xf7ed4d[_0x3ac29a(0x17e)]();_0x22c8b7++){const _0x323c39={...(_0x2c1ba4=(_0x594118=_0xf7ed4d['data'])==null?void 0x0:_0x594118[_0x1ad818])==null?void 0x0:_0x2c1ba4[_0x22c8b7]};if((_0x323c39==null?void 0x0:_0x323c39['v'])!==void 0x0){let _0x2df32b=_0x1dfad1?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x1dfad1,Number(_0x323c39['v'])):_0x323c39['v'];(_0x323c39==null?void 0x0:_0x323c39['s'])===r['PivotCellStyleTypeEnum'][_0x3ac29a(0x114)]?_0x2df32b=_0x5bc06f?_0x3ac29a(0xc9)+_0x2df32b:_0x3ac29a(0x10b)+_0x2df32b:(_0x323c39==null?void 0x0:_0x323c39['s'])===r['PivotCellStyleTypeEnum'][_0x3ac29a(0xa0)]&&(_0x2df32b=_0x5bc06f?_0x3ac29a(0xec)+_0x2df32b:'Grand\x20Total\x20'+_0x2df32b),(_0x323c39==null?void 0x0:_0x323c39['t'])===r[_0x3ac29a(0xb8)][_0x3ac29a(0x133)]&&(_0x2df32b=_0x5bc06f?_0x3ac29a(0xb7):_0x3ac29a(0xcb)),_0x391c39[_0x1ad818]||(_0x391c39[_0x1ad818]=[]),_0x19559d[_0x1ad818]||(_0x19559d[_0x1ad818]=[]),_0x391c39[_0x1ad818][_0x22c8b7+_0x537f59]=_0x2df32b,_0x19559d[_0x1ad818][_0x22c8b7+_0x537f59]=_0x2df32b;}}}let _0x4ef972=0x0,_0x3b6fe6=0x0,_0x28dd19=0x0;for(let _0x395397=0x0;_0x395397<_0x261b0e['getRowCount']();_0x395397++){const _0x9e2a9d=_0x261b0e[_0x3ac29a(0x14f)][_0x395397];if(!_0x38dda3&&_0x9e2a9d['isBottomTotal']&&_0x9e2a9d[_0x3ac29a(0x125)]!==0x0){_0x28dd19++,_0x3b6fe6=0x0;continue;}if(!(!_0x10ff1b&&_0x9e2a9d['isBottomTotal']&&_0x9e2a9d['level']===0x0)){for(let _0x87ea32=0x0;_0x87ea32<_0x261b0e[_0x3ac29a(0x17e)]();_0x87ea32++){const _0x23fc4b={...(_0x50e767=(_0x54d8a1=_0x261b0e[_0x3ac29a(0x168)])==null?void 0x0:_0x54d8a1[_0x395397])==null?void 0x0:_0x50e767[_0x87ea32]},_0x51f8be=(_0x37c128=(_0x3ada2b=_0x261b0e==null?void 0x0:_0x261b0e[_0x3ac29a(0x14c)])==null?void 0x0:_0x3ada2b[_0x87ea32])==null?void 0x0:_0x37c128[_0x3ac29a(0x138)],_0x308d62=_0x51f8be?_0x17fcfb[_0x51f8be]:'';if((_0x23fc4b==null?void 0x0:_0x23fc4b['v'])!==void 0x0){let _0x25d477=_0x308d62?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x308d62,Number(_0x23fc4b['v'])):_0x23fc4b['v'];(_0x23fc4b==null?void 0x0:_0x23fc4b['s'])===r[_0x3ac29a(0x13f)][_0x3ac29a(0x114)]?_0x25d477=_0x5bc06f?_0x3ac29a(0xc9)+_0x25d477:_0x3ac29a(0x10b)+_0x25d477:(_0x23fc4b==null?void 0x0:_0x23fc4b['s'])===r[_0x3ac29a(0x13f)][_0x3ac29a(0xa0)]&&(_0x25d477=_0x5bc06f?_0x3ac29a(0xec)+_0x25d477:_0x3ac29a(0x143)+_0x25d477),(_0x23fc4b==null?void 0x0:_0x23fc4b['t'])===r[_0x3ac29a(0xb8)]['blank']&&(_0x25d477=_0x5bc06f?_0x3ac29a(0xb7):'(blank)'),_0x391c39[_0x4ef972+_0x266a09]||(_0x391c39[_0x4ef972+_0x266a09]=[]);let _0x4da7d8=_0x2df059[_0x28dd19];_0x4da7d8||(_0x4da7d8=[..._0x19559d],_0x2df059[_0x28dd19]=_0x4da7d8),_0x4da7d8[_0x3b6fe6+_0x266a09]||(_0x4da7d8[_0x3b6fe6+_0x266a09]=[]),_0x4da7d8[_0x3b6fe6+_0x266a09][_0x87ea32]=_0x25d477,_0x391c39[_0x4ef972+_0x266a09][_0x87ea32]=_0x25d477;}}_0x4ef972++,_0x261b0e[_0x3ac29a(0x14f)][_0x395397][_0x3ac29a(0x130)]?(_0x28dd19++,_0x3b6fe6=0x0):_0x3b6fe6++;}}_0x4ef972=0x0,_0x28dd19=0x0,_0x3b6fe6=0x0;for(let _0x4b5044=0x0;_0x4b5044<_0x20da89[_0x3ac29a(0x13b)]();_0x4b5044++){const _0x525ebd=_0x261b0e[_0x3ac29a(0x14f)][_0x4b5044];if(!_0x38dda3&&_0x525ebd[_0x3ac29a(0x130)]&&_0x525ebd[_0x3ac29a(0x125)]!==0x0){_0x28dd19++,_0x3b6fe6=0x0;continue;}if(!(!_0x10ff1b&&_0x525ebd[_0x3ac29a(0x130)]&&_0x525ebd[_0x3ac29a(0x125)]===0x0)){for(let _0x1f07a3=0x0;_0x1f07a3<_0x20da89['getColCount']();_0x1f07a3++){const _0x2f23d4={...(_0x3a39fc=(_0x46b09a=_0x20da89[_0x3ac29a(0x168)])==null?void 0x0:_0x46b09a[_0x4b5044])==null?void 0x0:_0x3a39fc[_0x1f07a3]};if(_0x2f23d4['v']){const _0x98277d=_0x261b0e[_0x3ac29a(0x14f)][_0x4b5044]['valueIndex'],_0x3ae247=_0xf7ed4d['info'][_0x1f07a3][_0x3ac29a(0xe9)],_0x4243f8=Math[_0x3ac29a(0x109)](_0x98277d,_0x3ae247),_0x20f8a3=_0xe658c9[_0x3ac29a(0xb1)]()[_0x3ac29a(0x13e)]();let _0x258906='';_0x4243f8<0x0?_0x258906=(_0x5a8c97=_0x20f8a3[0x0])!=null?_0x5a8c97:'':_0x258906=(_0x426268=_0x20f8a3[_0x4243f8])!=null?_0x426268:'';const _0x20cdbd=(_0x17efdf=_0x17fcfb[_0x258906])!=null?_0x17efdf:'';_0x391c39[_0x4ef972+_0x266a09]||(_0x391c39[_0x4ef972+_0x266a09]=[]);let _0x154453=_0x2df059[_0x28dd19];_0x154453||(_0x154453=[..._0x19559d],_0x2df059[_0x28dd19]=_0x154453),_0x154453[_0x3b6fe6+_0x266a09]||(_0x154453[_0x3b6fe6+_0x266a09]=[]);const _0x1661df=_0x20cdbd?m[_0x3ac29a(0xba)][_0x3ac29a(0x163)](_0x20cdbd,Number(_0x2f23d4['v'])):_0x2f23d4['v'];_0x154453[_0x3b6fe6+_0x266a09][_0x1f07a3+_0x537f59]=_0x1661df,_0x391c39[_0x4ef972+_0x266a09][_0x1f07a3+_0x537f59]=_0x1661df;}}_0x4ef972++,_0x261b0e['info'][_0x4b5044][_0x3ac29a(0x130)]?(_0x28dd19++,_0x3b6fe6=0x0):_0x3b6fe6++;}}return{'dataArr':_0x391c39,'dataArrWithSplit':_0x2df059};}class re{constructor(_0x5d32e5,_0x1d5495,_0x169c50,_0x234763){const _0x45c041=_0x4df760;y(this,_0x45c041(0x100)),y(this,_0x45c041(0x123)),y(this,_0x45c041(0xc2)),y(this,'_isZhCN'),y(this,_0x45c041(0x110)),(this['_injector']=_0x5d32e5,this['_pivot']=_0x1d5495,this[_0x45c041(0x123)]=_0x169c50,this['_id']=_0x234763);const _0x253064=this[_0x45c041(0xc2)]['get'](m[_0x45c041(0xf2)]);this[_0x45c041(0xce)]=_0x253064[_0x45c041(0x131)]()===m['LocaleType'][_0x45c041(0xd0)];}[_0x4df760(0x117)](_0x1e6982){const _0x26ff7b=_0x4df760,_0x278ba6=this['_pivot'][_0x26ff7b(0xd2)](_0x1e6982);if(!_0x278ba6)throw new Error(_0x26ff7b(0xc7)+_0x1e6982+_0x26ff7b(0x111));return _0x278ba6;}[_0x4df760(0x12c)](_0x5854ec,_0x368c08){const _0x13627a=_0x4df760,_0x40a3df=this['_getSourceIdByName'](_0x5854ec),_0x30b941=this['_pivot'][_0x13627a(0x104)](_0x40a3df,_0x368c08);if(!_0x30b941)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x5854ec+_0x13627a(0x102));if(_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x154)]){const _0x1c648e=_0x30b941[_0x13627a(0x151)](),_0x30553c=this['_pivot']['getDataFieldByTableId'](_0x1c648e);if(_0x30553c){const _0x445681=_0x30553c==null?void 0x0:_0x30553c[_0x13627a(0x10e)]();this['_pivot'][_0x13627a(0x14a)](_0x1c648e,_0x445681===r[_0x13627a(0xc4)]['number']?r[_0x13627a(0x148)]['sum']:r[_0x13627a(0x148)][_0x13627a(0xd9)]);}const _0x45b096=this[_0x13627a(0x100)][_0x13627a(0xde)](),_0xd21c12=this[_0x13627a(0x100)][_0x13627a(0x101)](),_0x32a2bc=this[_0x13627a(0x100)]['getFieldCountByArea'](r[_0x13627a(0x181)][_0x13627a(0x154)]);if(_0x45b096===-0x1&&_0x32a2bc>0x1){const _0x229e5e=_0xd21c12===r['PivotTableValuePositionEnum']['None']?r[_0x13627a(0xb0)][_0x13627a(0x15d)]:_0xd21c12,_0x5c3cd6=_0x229e5e===r[_0x13627a(0xb0)][_0x13627a(0x147)]?r[_0x13627a(0x181)]['Row']:r[_0x13627a(0x181)][_0x13627a(0x15d)];this[_0x13627a(0x100)][_0x13627a(0xe5)](_0x229e5e,this['_pivot'][_0x13627a(0x149)](_0x5c3cd6));}}else{if(_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x147)]||_0x368c08===r[_0x13627a(0x181)][_0x13627a(0x15d)]){const _0x207652=_0x30b941['getId'](),_0x2ee173=this['_pivot'][_0x13627a(0xd5)](_0x207652);if(_0x2ee173&&(_0x2ee173==null?void 0x0:_0x2ee173['getFieldDataType']())===r[_0x13627a(0xc4)][_0x13627a(0x169)]){const _0x2b74dc=_0x2ee173[_0x13627a(0x16a)]();_0x2b74dc&&this[_0x13627a(0x100)]['setFieldFormat'](_0x207652,_0x2b74dc);}}}return _0x30b941;}[_0x4df760(0xfc)](_0x416bd2,_0x255190){const _0x267620=_0x4df760,_0x3be8a2=this[_0x267620(0x117)](_0x416bd2),_0x56b494=this['_pivot'][_0x267620(0x104)](_0x3be8a2,r['PivotTableFiledAreaEnum']['Filter']);return _0x56b494['setFilterInfo'](_0x255190),_0x56b494;}['addValueFieldWithName'](_0x249426,_0x17df11){const _0x7bcc87=_0x4df760,_0x1a99dc=this['addFieldWithName'](_0x249426,r[_0x7bcc87(0x181)][_0x7bcc87(0x154)]);return _0x17df11!=null&&_0x17df11[_0x7bcc87(0x177)]&&_0x1a99dc[_0x7bcc87(0xd4)](_0x17df11==null?void 0x0:_0x17df11[_0x7bcc87(0x177)]),_0x1a99dc;}[_0x4df760(0x17d)](_0x563641){const _0x8c10a0=_0x4df760,_0x467dac=this['_getSourceIdByName'](_0x563641);this[_0x8c10a0(0x100)][_0x8c10a0(0xc1)](_0x467dac)[_0x8c10a0(0x14e)](_0x21c876=>{const _0x1556b0=_0x8c10a0,_0x2f0463=_0x21c876[_0x1556b0(0x151)]();this['_pivot']['removeField'](_0x2f0463);});}[_0x4df760(0x11c)](_0x2efd44={}){const _0x4e3ddb=_0x4df760,_0x37fad9=this[_0x4e3ddb(0x100)][_0x4e3ddb(0xca)](),{dataArr:_0x47ef22,dataArrWithSplit:_0x5d2bf7}=le(this[_0x4e3ddb(0x100)],_0x37fad9,this[_0x4e3ddb(0xce)],_0x2efd44);return{'dataArr':_0x47ef22,'dataArrWithSplit':_0x5d2bf7};}[_0x4df760(0xf8)](_0x5a6c1b){const _0x36ad86=_0x4df760;return this[_0x36ad86(0x100)][_0x36ad86(0x159)]()[_0x5a6c1b];}['reset'](){const _0x5b0a26=_0x4df760;this[_0x5b0a26(0x100)][_0x5b0a26(0x153)]();}['resetDimension'](_0x596353){const _0x57e8a9=_0x4df760;this['_pivot'][_0x57e8a9(0x153)](_0x596353);}['getFieldDataTypeByColumnIndex'](_0x3e552f){const _0x474449=_0x4df760,_0x157d7f=this['_pivot'][_0x474449(0x121)],_0x65705f=_0x157d7f[_0x474449(0xdf)]()[_0x3e552f];if(_0x65705f)return _0x157d7f[_0x474449(0xf7)](_0x65705f)[_0x474449(0x10e)]();}[_0x4df760(0xd1)](_0x1b748f){const _0x4d7291=_0x4df760,_0x3c1fe9=this['_getSourceIdByName'](_0x1b748f),_0x52c27f=this['_pivot'][_0x4d7291(0x121)][_0x4d7291(0xf7)](_0x3c1fe9);return _0x52c27f==null?void 0x0:_0x52c27f['getFieldDataType']();}['getDimensionInfo'](){const _0x5422d9=_0x4df760,_0x415cb3={};return[[r[_0x5422d9(0x181)]['Row'],'row'],[r[_0x5422d9(0x181)][_0x5422d9(0x15d)],_0x5422d9(0xe7)],[r['PivotTableFiledAreaEnum'][_0x5422d9(0xbd)],_0x5422d9(0x116)],[r['PivotTableFiledAreaEnum'][_0x5422d9(0x154)],_0x5422d9(0x152)]][_0x5422d9(0x14e)](_0x59126b=>{const _0x390c39=_0x5422d9,[_0x2be549,_0x1c2fcf]=_0x59126b;this[_0x390c39(0x100)]['iterateFieldByArea'](_0x2be549,_0x5e8d43=>{const _0x3deb8e=_0x390c39;_0x415cb3[_0x1c2fcf]||(_0x415cb3[_0x1c2fcf]=[]),_0x415cb3[_0x1c2fcf][_0x3deb8e(0x180)](_0x5e8d43['getSourceName']());});}),Object[_0x5422d9(0x14d)](_0x415cb3)[_0x5422d9(0xcd)]>0x0?_0x415cb3:void 0x0;}[_0x4df760(0xf9)](){const _0x1cf4ff=_0x4df760;return this[_0x1cf4ff(0x123)];}[_0x4df760(0x15e)](_0x3ab398){this['_pivot']['setOptions'](_0x3ab398);}['remove'](){const _0x1faeb4=_0x4df760;this[_0x1faeb4(0x100)]['dispose']();}}class ve extends r[_0x4df760(0x142)]{[_0x4df760(0xa8)](_0x21c42d){const _0x3d3745=_0x4df760;if(Array['isArray'](_0x21c42d)&&_0x21c42d[_0x3d3745(0xcd)]>0x0){const _0x58934c=[],_0x52c48f=_0x21c42d[0x0],_0x5c1544={},_0x51e7da=_0x21c42d[0x1];for(let _0x432818=0x0;_0x432818<_0x51e7da[_0x3d3745(0xcd)];_0x432818++){const _0x104910=_0x51e7da[_0x432818];if(typeof _0x104910=='object'&&_0x104910 instanceof Date)_0x5c1544[_0x432818]=Z;else{if(typeof _0x104910==_0x3d3745(0xb3)){const _0xfc2acb=new Date(_0x104910);Number[_0x3d3745(0x113)](_0xfc2acb[_0x3d3745(0xbb)]())||(_0x5c1544[_0x432818]=Z);}}}for(let _0x1a8508=0x1;_0x1a8508<_0x21c42d[_0x3d3745(0xcd)];_0x1a8508++){const _0x825f5b=_0x21c42d[_0x1a8508],_0x1482a7=[];for(let _0x2c951d=0x0;_0x2c951d<_0x825f5b[_0x3d3745(0xcd)];_0x2c951d++)if(_0x5c1544[_0x2c951d]){const _0x4cbf7=_0x825f5b[_0x2c951d],_0x423824=typeof _0x4cbf7==_0x3d3745(0x141)&&_0x4cbf7 instanceof Date?_0x4cbf7:new Date(_0x4cbf7),_0xc39087={'v':de(_0x423824[_0x3d3745(0xbb)]()),'f':_0x5c1544[_0x2c951d]};_0x1482a7['push'](_0xc39087);}else _0x1482a7[_0x3d3745(0x180)](_0x825f5b[_0x2c951d]);_0x58934c[_0x3d3745(0x180)](_0x1482a7);}return{'header':_0x52c48f,'data':_0x58934c};}else throw new Error('[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array');}}class ce extends A[_0x4df760(0x11f)]{[_0x4df760(0xfa)](_0x2cedf1){const _0x1f90a1=_0x4df760,_0x3e193a=_0x2cedf1['get'](m[_0x1f90a1(0xe2)]);this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0x124)],()=>_0x3e193a['beforeCommandExecuted'](_0x5ce89c=>{const _0xed53b3=_0x1f90a1;switch(_0x5ce89c['id']){case l['MovePivotTableCommand']['id']:{const _0x272ada=_0x5ce89c[_0xed53b3(0x10f)];this[_0xed53b3(0xed)](_0x272ada);break;}}})),this['registerEventHandler'](this[_0x1f90a1(0x127)][_0x1f90a1(0xc6)],()=>_0x3e193a[_0x1f90a1(0xa3)](_0x239b9e=>{const _0x1bca68=_0x1f90a1;switch(_0x239b9e['id']){case l['AddPivotTableWithConfigCommand']['id']:case l[_0x1bca68(0x103)]['id']:{const _0x1b0812=_0x239b9e[_0x1bca68(0x10f)];this['_fireBeforeAddPivotTableEvent'](_0x1b0812);break;}}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xb2)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x3ecfea=>{const _0x31117a=_0x1f90a1;if(_0x3ecfea['id']===l[_0x31117a(0xac)]['id']||_0x3ecfea['id']===l[_0x31117a(0x103)]['id']){const _0x1ab47b=_0x3ecfea[_0x31117a(0x10f)];this[_0x31117a(0xfb)](_0x1ab47b);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x13a)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x42435c=>{const _0x143980=_0x1f90a1;if(_0x42435c['id']===l[_0x143980(0x186)]['id']){const _0x2467c0=_0x42435c[_0x143980(0x10f)];this['_fireMovedPivotTableEvent'](_0x2467c0);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xa5)],()=>_0x3e193a['onCommandExecuted'](_0x58862b=>{const _0x4ee79c=_0x1f90a1;if(_0x58862b['id']===l[_0x4ee79c(0x150)]['id']){const _0x2a7612=_0x58862b[_0x4ee79c(0x10f)];this[_0x4ee79c(0x105)](_0x2a7612);}})),this['registerEventHandler'](this['Event']['PivotTableFieldAdded'],()=>_0x3e193a['onCommandExecuted'](_0x5048da=>{const _0x59949b=_0x1f90a1;if(_0x5048da['id']===l[_0x59949b(0x174)]['id']){const _0x4851bc=_0x5048da['params'];this[_0x59949b(0x9a)](_0x4851bc);}})),this['registerEventHandler'](this['Event']['PivotTableFieldRemoved'],()=>_0x3e193a['onCommandExecuted'](_0x18f202=>{const _0x42ead2=_0x1f90a1;if(_0x18f202['id']===l[_0x42ead2(0x139)]['id']){const _0x2eb915=_0x18f202[_0x42ead2(0x10f)];this[_0x42ead2(0x16e)](_0x2eb915);}})),this['registerEventHandler'](this[_0x1f90a1(0x127)][_0x1f90a1(0x175)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x508939=>{const _0x1626d1=_0x1f90a1;if(_0x508939['id']===l[_0x1626d1(0xea)]['id']){const _0xc8a097=_0x508939[_0x1626d1(0x10f)];this[_0x1626d1(0x156)](_0xc8a097);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0x9b)],()=>_0x3e193a['onCommandExecuted'](_0x3d15eb=>{const _0x4731fb=_0x1f90a1;if(_0x3d15eb['id']===l['SetPivotCollapseCommand']['id']){const _0x147ffd=_0x3d15eb[_0x4731fb(0x10f)];this[_0x4731fb(0x165)](_0x147ffd);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0xcf)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x14f889=>{const _0x2f9329=_0x1f90a1;if(_0x14f889['id']===l[_0x2f9329(0xdc)]['id']){const _0xd38af9=_0x14f889[_0x2f9329(0x10f)];this['_firePivotTableFieldFilterChangedEvent'](_0xd38af9);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x129)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x419263=>{const _0x52a5b9=_0x1f90a1;if(_0x419263['id']===l[_0x52a5b9(0x17c)]['id']){const _0x2820ac=_0x419263[_0x52a5b9(0x10f)];this[_0x52a5b9(0xd6)](_0x2820ac);}})),this[_0x1f90a1(0xae)](this['Event'][_0x1f90a1(0xc3)],()=>_0x3e193a['onCommandExecuted'](_0x417a07=>{const _0x4f5654=_0x1f90a1;if(_0x417a07['id']===l[_0x4f5654(0xa2)]['id']){const _0x38aef3=_0x417a07[_0x4f5654(0x10f)];this['_firePivotTableFieldSettingChangedEvent'](_0x38aef3);}})),this[_0x1f90a1(0xae)](this[_0x1f90a1(0x127)][_0x1f90a1(0x15b)],()=>_0x3e193a[_0x1f90a1(0xb6)](_0x48a392=>{const _0x3aa29d=_0x1f90a1;if(_0x48a392['id']===l[_0x3aa29d(0x12d)]['id']){const _0x3fb87d=_0x48a392[_0x3aa29d(0x10f)];this[_0x3aa29d(0xad)](_0x3fb87d);}}));const _0x3fd7ee=_0x2cedf1[_0x1f90a1(0x12a)](m[_0x1f90a1(0x155)]);this['disposeWithMe'](_0x3fd7ee[_0x1f90a1(0x157)]['subscribe'](_0x5846cd=>{const _0x8f8eba=_0x1f90a1;if(_0x5846cd===m['LifecycleStages']['Ready']){const _0x11f465=_0x2cedf1[_0x8f8eba(0x12a)](l['SheetsPivotTableAdaptorModel']);this[_0x8f8eba(0xae)](this[_0x8f8eba(0x127)][_0x8f8eba(0x10d)],()=>_0x11f465[_0x8f8eba(0x11d)][_0x8f8eba(0x11e)](ie['auditTime'](0x32))[_0x8f8eba(0xa1)](_0x5c759b=>{const _0xf8e44a=_0x8f8eba;this[_0xf8e44a(0x170)](_0x5c759b);}));}}));}['_firePivotTableFieldAddedEvent'](_0x21af3f){const _0x48a9ad=_0x4df760;if(_0x21af3f){const {unitId:_0x5e1e97,subUnitId:_0x241e85,pivotTableId:_0x5c7eeb,dataFieldId:_0x9ff126,fieldArea:_0x4534bf,index:_0x528ddf}=_0x21af3f;this[_0x48a9ad(0x12e)](this[_0x48a9ad(0x127)][_0x48a9ad(0xa6)],{'unitId':_0x5e1e97,'subUnitId':_0x241e85,'pivotTableId':_0x5c7eeb,'dataFieldId':_0x9ff126,'fieldArea':_0x4534bf,'index':_0x528ddf});}}[_0x4df760(0x16e)](_0x2559eb){const _0x21afc6=_0x4df760;if(_0x2559eb){const {unitId:_0x1b7c86,subUnitId:_0x10c84b,pivotTableId:_0x4f1d0e,fieldIds:_0x51cdb6}=_0x2559eb;this[_0x21afc6(0x12e)](this['Event']['PivotTableFieldRemoved'],{'unitId':_0x1b7c86,'subUnitId':_0x10c84b,'pivotTableId':_0x4f1d0e,'fieldIds':_0x51cdb6['concat']()});}}['_firePivotTableFieldMovedEvent'](_0x4bc2a1){const _0x53103c=_0x4df760;if(_0x4bc2a1){const {unitId:_0x3c2de2,subUnitId:_0x47d129,pivotTableId:_0x3af6a5,fieldId:_0x248620,area:_0x49d27c,index:_0x11989c}=_0x4bc2a1;this[_0x53103c(0x12e)](this[_0x53103c(0x127)][_0x53103c(0x175)],{'unitId':_0x3c2de2,'subUnitId':_0x47d129,'pivotTableId':_0x3af6a5,'fieldId':_0x248620,'area':_0x49d27c,'index':_0x11989c});}}[_0x4df760(0x165)](_0x57dc5d){const _0x340129=_0x4df760;if(_0x57dc5d){const {unitId:_0xa4b05d,subUnitId:_0x3613be,row:_0x313f53,col:_0x5a5315,collapse:_0x3258ec}=_0x57dc5d;this[_0x340129(0x12e)](this[_0x340129(0x127)][_0x340129(0x9b)],{'unitId':_0xa4b05d,'subUnitId':_0x3613be,'row':_0x313f53,'col':_0x5a5315,'collapse':_0x3258ec});}}[_0x4df760(0xc8)](_0x4aa117){const _0x303af5=_0x4df760;if(_0x4aa117){const {unitId:_0x42d119,subUnitId:_0x3a0645,pivotTableId:_0x425280,tableFieldId:_0x1d3723,items:_0x37c7d0,isAll:_0x7d877f}=_0x4aa117;this[_0x303af5(0x12e)](this['Event']['PivotTableFieldFilterChanged'],{'unitId':_0x42d119,'subUnitId':_0x3a0645,'pivotTableId':_0x425280,'tableFieldId':_0x1d3723,'items':_0x37c7d0['concat'](),'isAll':_0x7d877f});}}[_0x4df760(0xd6)](_0xf5e9b9){const _0x1eb880=_0x4df760;if(_0xf5e9b9){const {unitId:_0x567642,subUnitId:_0x1889ac,pivotTableId:_0x1de6ef,tableFieldId:_0xf12f32,info:_0x1b9795}=_0xf5e9b9;this[_0x1eb880(0x12e)](this[_0x1eb880(0x127)][_0x1eb880(0x129)],{'unitId':_0x567642,'subUnitId':_0x1889ac,'pivotTableId':_0x1de6ef,'tableFieldId':_0xf12f32,'info':{..._0x1b9795}});}}[_0x4df760(0x134)](_0x430c2c){const _0x45ae7d=_0x4df760;if(_0x430c2c){const {unitId:_0x574f38,subUnitId:_0x50e7b1,tableFieldId:_0x317ad6,pivotTableId:_0x4a0e08,displayName:_0x5b8922,format:_0x2210e4,subtotalType:_0x29cafd,tableFieldInfo:_0xc27172,dataFieldInfo:_0x2cc2a2}=_0x430c2c;this[_0x45ae7d(0x12e)](this[_0x45ae7d(0x127)][_0x45ae7d(0xc3)],{'unitId':_0x574f38,'subUnitId':_0x50e7b1,'tableFieldId':_0x317ad6,'pivotTableId':_0x4a0e08,'displayName':_0x5b8922,'format':_0x2210e4,'subtotalType':_0x29cafd,'tableFieldInfo':_0xc27172,'dataFieldInfo':_0x2cc2a2});}}[_0x4df760(0xad)](_0x868fad){const _0x335368=_0x4df760;if(_0x868fad){const {pivotTableId:_0x1fc24b,position:_0xf4214a,index:_0xf873b2}=_0x868fad;this[_0x335368(0x12e)](this['Event'][_0x335368(0x15b)],{'pivotTableId':_0x1fc24b,'position':_0xf4214a,'index':_0xf873b2});}}['_fireAddPivotTableEvent'](_0x3687f5){const _0x2c0e05=_0x4df760;if(_0x3687f5){const {positionType:_0x3c15ee,pivotTableId:_0x1d596c,pivotTableConfig:_0x1d4fdf}=_0x3687f5,{targetCellInfo:_0x406d4f,sourceRangeInfo:_0x46cf30}=_0x1d4fdf,{unitId:_0x24bf89}=_0x406d4f;this[_0x2c0e05(0x12e)](this[_0x2c0e05(0x127)][_0x2c0e05(0xb2)],{'unitId':_0x24bf89,'positionType':_0x3c15ee,'pivotTableId':_0x1d596c,'sourceRangeInfo':{'startRow':_0x46cf30['range'][_0x2c0e05(0x140)],'endRow':_0x46cf30['range'][_0x2c0e05(0x184)],'startColumn':_0x46cf30['range']['startColumn'],'endColumn':_0x46cf30[_0x2c0e05(0x183)][_0x2c0e05(0xe0)],'unitId':_0x46cf30[_0x2c0e05(0xab)],'subUnitId':_0x46cf30[_0x2c0e05(0x107)],'sheetName':_0x46cf30[_0x2c0e05(0x128)]},'targetCellInfo':{'row':_0x406d4f[_0x2c0e05(0x115)],'column':_0x406d4f['col'],'sheetName':_0x406d4f[_0x2c0e05(0x128)],'unitId':_0x406d4f[_0x2c0e05(0xab)],'subUnitId':_0x406d4f[_0x2c0e05(0x107)]}});}}[_0x4df760(0xd8)](_0x118a1c){const _0x3de45b=_0x4df760;if(_0x118a1c){const {positionType:_0x2d04a0,pivotTableId:_0x41d170,pivotTableConfig:_0x18c4a2}=_0x118a1c,{targetCellInfo:_0x5f0a89,sourceRangeInfo:_0x446a14}=_0x18c4a2,{unitId:_0x5832e8}=_0x5f0a89,_0x5b988f={'unitId':_0x5832e8,'positionType':_0x2d04a0,'pivotTableId':_0x41d170,'sourceRangeInfo':{'startRow':_0x446a14['range']['startRow'],'endRow':_0x446a14['range'][_0x3de45b(0x184)],'startColumn':_0x446a14[_0x3de45b(0x183)][_0x3de45b(0x16f)],'endColumn':_0x446a14[_0x3de45b(0x183)]['endColumn'],'unitId':_0x446a14[_0x3de45b(0xab)],'subUnitId':_0x446a14[_0x3de45b(0x107)],'sheetName':_0x446a14[_0x3de45b(0x128)]},'targetCellInfo':{'row':_0x5f0a89[_0x3de45b(0x115)],'column':_0x5f0a89['col'],'sheetName':_0x5f0a89['sheetName'],'unitId':_0x5f0a89[_0x3de45b(0xab)],'subUnitId':_0x5f0a89[_0x3de45b(0x107)]},'cancel':!0x1};if(this[_0x3de45b(0x12e)](this[_0x3de45b(0x127)][_0x3de45b(0x124)],_0x5b988f),_0x5b988f['cancel'])throw new Error(_0x3de45b(0x160));}}[_0x4df760(0x105)](_0x34c5b6){const _0x1836d1=_0x4df760;if(_0x34c5b6){const {unitId:_0x1c06eb,pivotTableId:_0x51249c}=_0x34c5b6;this[_0x1836d1(0x12e)](this['Event'][_0x1836d1(0xa5)],{'unitId':_0x1c06eb,'pivotTableId':_0x51249c});}}[_0x4df760(0xed)](_0x2a8bc0){const _0x415d22=_0x4df760;if(_0x2a8bc0){const {originTargetInfo:_0x468b92,pivotTableId:_0x2b4f1e,targetCellInfo:_0x2bbd2e}=_0x2a8bc0,{unitId:_0x44ff84}=_0x468b92,_0x1434f4=this['_injector'][_0x415d22(0x12a)](l[_0x415d22(0xff)])[_0x415d22(0xb4)](_0x468b92['unitId'],_0x468b92['subUnitId'],_0x2b4f1e);if(!_0x1434f4)return;const _0xfc7fff={'unitId':_0x44ff84,'pivotTableId':_0x2b4f1e,'originTargetInfo':{'row':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x115)],'column':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x137)],'unitId':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0xab)],'subUnitId':_0x1434f4[_0x415d22(0xf5)][_0x415d22(0x107)]},'targetCellInfo':{'row':_0x2bbd2e[_0x415d22(0x115)],'column':_0x2bbd2e[_0x415d22(0x137)],'unitId':_0x2bbd2e[_0x415d22(0xab)],'subUnitId':_0x2bbd2e[_0x415d22(0x107)]},'cancel':!0x1};if(this['fireEvent'](this[_0x415d22(0x127)][_0x415d22(0xc6)],_0xfc7fff),_0xfc7fff[_0x415d22(0x15a)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}['_fireMovedPivotTableEvent'](_0xe31cbe){const _0x24f3b1=_0x4df760;if(_0xe31cbe){const {originTargetInfo:_0x133713,pivotTableId:_0x40252d,targetCellInfo:_0x54a8aa}=_0xe31cbe,{unitId:_0x263072}=_0x133713,_0x23b864=this['_injector'][_0x24f3b1(0x12a)](l[_0x24f3b1(0xff)])[_0x24f3b1(0xb4)](_0x133713[_0x24f3b1(0xab)],_0x133713[_0x24f3b1(0x107)],_0x40252d);if(!_0x23b864)return;this[_0x24f3b1(0x12e)](this[_0x24f3b1(0x127)][_0x24f3b1(0x13a)],{'unitId':_0x263072,'pivotTableId':_0x40252d,'originTargetInfo':{'row':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x115)],'column':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x137)],'unitId':_0x23b864['targetCellInfo'][_0x24f3b1(0xab)],'subUnitId':_0x23b864[_0x24f3b1(0xf5)][_0x24f3b1(0x107)]},'targetCellInfo':{'row':_0x54a8aa[_0x24f3b1(0x115)],'column':_0x54a8aa[_0x24f3b1(0x137)],'unitId':_0x54a8aa[_0x24f3b1(0xab)],'subUnitId':_0x54a8aa[_0x24f3b1(0x107)]}});}}[_0x4df760(0x170)](_0x4dc223){const _0x5191eb=_0x4df760;if(_0x4dc223){const {unitId:_0x431f16,subUnitId:_0xc9bc31,pivotTableId:_0x5088bb,type:_0x10ca7d,rangesCache:_0x4952ff,isEmpty:_0x3ca094}=_0x4dc223;this['fireEvent'](this[_0x5191eb(0x127)]['PivotTableRendered'],{'unitId':_0x431f16,'subUnitId':_0xc9bc31,'pivotTableId':_0x5088bb,'changeType':_0x10ca7d,'isEmpty':!!_0x3ca094,'rangeInfo':_0x4952ff});}}[_0x4df760(0x15c)](_0x21d826,_0x547e97){const _0x29482f=_0x4df760,_0x392350=(_0x547e97?new _0x547e97():new ve())[_0x29482f(0x13d)]('data',_0x21d826),_0x301f47=_0x21d826[0x0];_0x392350[_0x29482f(0xdf)]()[_0x29482f(0x14e)]((_0x22e8a1,_0x267767)=>{const _0xb852f1=_0x29482f;_0x392350[_0xb852f1(0xda)](_0x22e8a1,_0x301f47[_0x267767]);});const _0x1e7976=r[_0x29482f(0x126)](0x8),_0x1022f3=new r[(_0x29482f(0x164))](_0x392350,void 0x0,_0x1e7976);return new re(this[_0x29482f(0xc2)],_0x1022f3,_0x21d826,_0x1e7976);}}A[_0x4df760(0x11f)]['extend'](ce);
1
+ 'use strict';const _0x1262d9=_0x3b25;(function(_0x38d80e,_0x2dc88d){const _0xdab85=_0x3b25,_0x30c558=_0x38d80e();while(!![]){try{const _0x373cf7=parseInt(_0xdab85(0x1fb))/0x1+-parseInt(_0xdab85(0x27c))/0x2*(-parseInt(_0xdab85(0x1a0))/0x3)+parseInt(_0xdab85(0x1fe))/0x4*(parseInt(_0xdab85(0x20a))/0x5)+parseInt(_0xdab85(0x214))/0x6*(-parseInt(_0xdab85(0x1cb))/0x7)+parseInt(_0xdab85(0x281))/0x8+-parseInt(_0xdab85(0x197))/0x9+parseInt(_0xdab85(0x275))/0xa*(parseInt(_0xdab85(0x1e2))/0xb);if(_0x373cf7===_0x2dc88d)break;else _0x30c558['push'](_0x30c558['shift']());}catch(_0x3266ae){_0x30c558['push'](_0x30c558['shift']());}}}(_0x5f3d,0x82044));var ee=Object[_0x1262d9(0x1bf)],te=(_0x4bcd46,_0x1f67d7,_0x79d2b7)=>_0x1f67d7 in _0x4bcd46?ee(_0x4bcd46,_0x1f67d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x79d2b7}):_0x4bcd46[_0x1f67d7]=_0x79d2b7,y=(_0x12b656,_0x3478a6,_0x52e64c)=>te(_0x12b656,typeof _0x3478a6!=_0x1262d9(0x1f2)?_0x3478a6+'':_0x3478a6,_0x52e64c);const r=require(_0x1262d9(0x1ba)),l=require(_0x1262d9(0x284)),m=require('@univerjs/core'),R=require(_0x1262d9(0x23f)),A=require('@univerjs/core/facade'),ie=require(_0x1262d9(0x273));class x{constructor(_0x4db942,_0x47007c,_0x396490,_0x391d30){const _0x58c9e9=_0x1262d9;y(this,_0x58c9e9(0x274)),y(this,_0x58c9e9(0x280)),y(this,_0x58c9e9(0x1a6)),y(this,_0x58c9e9(0x276)),(this[_0x58c9e9(0x274)]=_0x4db942,this['subUnitId']=_0x47007c,this['pivotTableId']=_0x396490,this[_0x58c9e9(0x276)]=_0x391d30);}[_0x1262d9(0x277)](){const _0x5037a5=_0x1262d9;return this['_injector'][_0x5037a5(0x229)](l[_0x5037a5(0x24c)])[_0x5037a5(0x1cc)](this[_0x5037a5(0x274)],this['subUnitId'],this[_0x5037a5(0x1a6)]);}['setFieldsConfig'](_0x24e1f3){const _0x5e661f=_0x1262d9,_0x32faf6=this['_injector']['get'](m[_0x5e661f(0x1fc)]),_0x241a7b={'unitId':this['unitId'],'subUnitId':this[_0x5e661f(0x280)],'pivotTableId':this[_0x5e661f(0x1a6)],'pivotTableConfig':_0x24e1f3};return _0x32faf6[_0x5e661f(0x1f1)](l[_0x5e661f(0x26e)]['id'],_0x241a7b);}[_0x1262d9(0x1dd)](_0x29ead2){const _0x11ad82=_0x1262d9,_0x36ed10=this[_0x11ad82(0x276)][_0x11ad82(0x229)](m['ICommandService']),_0x5ae3dd={'unitId':this[_0x11ad82(0x274)],'subUnitId':this[_0x11ad82(0x280)],'pivotTableId':this[_0x11ad82(0x1a6)],'resetArea':_0x29ead2};return _0x36ed10[_0x11ad82(0x1f1)](l[_0x11ad82(0x261)]['id'],_0x5ae3dd);}[_0x1262d9(0x227)](){const _0x361f92=_0x1262d9;return this[_0x361f92(0x1a6)];}[_0x1262d9(0x1b4)](_0x39c911){const _0x3d55a7=_0x1262d9,_0x2be037=this['_injector'][_0x3d55a7(0x229)](l[_0x3d55a7(0x24c)])[_0x3d55a7(0x1cc)](this[_0x3d55a7(0x274)],this['subUnitId'],this[_0x3d55a7(0x1a6)]),_0x1a54dd=_0x2be037==null?void 0x0:_0x2be037[_0x3d55a7(0x212)];if(_0x1a54dd)return _0x1a54dd[_0x3d55a7(0x1d5)][_0x39c911]||_0x1a54dd[_0x3d55a7(0x23a)][_0x39c911];}[_0x1262d9(0x1d1)](){const _0x17b859=_0x1262d9,_0x45e814=this[_0x17b859(0x276)],_0x1a19bb=this['unitId'],_0x223b21=this['pivotTableId'],_0x417804=_0x45e814['get'](l[_0x17b859(0x24c)])['getCollection'](_0x1a19bb,_0x223b21);if(_0x417804){const _0x9275a7=_0x417804['fieldIds'],_0x5c60ab=_0x417804[_0x17b859(0x1bb)],_0x490dd8=_0x417804['displayNameRecord'],_0x4a561f=[];for(const _0x1bf2ea of _0x9275a7){const _0x38a85c=_0x5c60ab[_0x1bf2ea];if(_0x38a85c){const _0x69bd50={'id':_0x1bf2ea,'name':_0x38a85c[_0x17b859(0x1a2)],'fieldDataType':_0x38a85c[_0x17b859(0x231)]};_0x490dd8&&_0x490dd8[_0x1bf2ea]!==void 0x0&&(_0x69bd50['displayName']=_0x490dd8[_0x1bf2ea]),_0x4a561f['push'](_0x69bd50);}}return _0x4a561f;}return[];}[_0x1262d9(0x1dc)](_0x3b48ed){const _0x41508c=_0x1262d9;var _0x458f55;const _0x293ca0=this[_0x41508c(0x276)]['get'](l[_0x41508c(0x24c)])['getPivotTableConfig'](this['unitId'],this[_0x41508c(0x280)],this[_0x41508c(0x1a6)]),_0x1ffea6=_0x293ca0==null?void 0x0:_0x293ca0[_0x41508c(0x212)]['valueFilter'];return(_0x458f55=_0x1ffea6==null?void 0x0:_0x1ffea6[_0x41508c(0x20c)](_0x24717c=>_0x24717c[_0x41508c(0x228)]===_0x3b48ed))==null?void 0x0:_0x458f55[_0x41508c(0x1ab)];}[_0x1262d9(0x237)](){const _0x7105c=_0x1262d9,_0x2cf0e9=this[_0x7105c(0x276)][_0x7105c(0x229)](l[_0x7105c(0x24c)])[_0x7105c(0x1cc)](this[_0x7105c(0x274)],this['subUnitId'],this[_0x7105c(0x1a6)]),_0x24b0c6=_0x2cf0e9==null?void 0x0:_0x2cf0e9[_0x7105c(0x212)][_0x7105c(0x1b1)];return(_0x24b0c6==null?void 0x0:_0x24b0c6[_0x7105c(0x206)]())||[];}[_0x1262d9(0x1a4)](_0x38cacc){const _0x2a8c35=_0x1262d9,_0x4f620f=this[_0x2a8c35(0x276)][_0x2a8c35(0x229)](l[_0x2a8c35(0x24c)])[_0x2a8c35(0x1cc)](this['unitId'],this[_0x2a8c35(0x280)],this[_0x2a8c35(0x1a6)]),_0x25920d=_0x4f620f==null?void 0x0:_0x4f620f['fieldsConfig'];if(_0x25920d)switch(_0x38cacc){case r[_0x2a8c35(0x259)][_0x2a8c35(0x219)]:return _0x25920d[_0x2a8c35(0x27b)][_0x2a8c35(0x206)]();case r['PivotTableFiledAreaEnum']['Row']:return _0x25920d[_0x2a8c35(0x20e)][_0x2a8c35(0x206)]();case r[_0x2a8c35(0x259)][_0x2a8c35(0x1ed)]:return _0x25920d['valueFields']['concat']();case r[_0x2a8c35(0x259)][_0x2a8c35(0x1d3)]:return _0x25920d[_0x2a8c35(0x22c)][_0x2a8c35(0x206)]();case r[_0x2a8c35(0x259)][_0x2a8c35(0x19b)]:return _0x25920d[_0x2a8c35(0x253)][_0x2a8c35(0x206)]();}return[];}[_0x1262d9(0x282)](){const _0x45b3af=_0x1262d9;var _0x4d64a6;const _0xe12a71=(_0x4d64a6=this['_injector'][_0x45b3af(0x229)](l[_0x45b3af(0x24c)])[_0x45b3af(0x282)](this['unitId'],this[_0x45b3af(0x280)],this['pivotTableId']))==null?void 0x0:_0x4d64a6['rangeInfo'];if(_0xe12a71)return l[_0x45b3af(0x1f6)](_0xe12a71);}async[_0x1262d9(0x283)](){const _0xe74da7=_0x1262d9;return await this[_0xe74da7(0x276)][_0xe74da7(0x229)](m[_0xe74da7(0x1fc)])[_0xe74da7(0x27e)](l[_0xe74da7(0x1f7)]['id'],{'unitId':this[_0xe74da7(0x274)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0xe74da7(0x1a6)]});}async['addField'](_0x2c4f1f,_0x5c363a,_0x6338bc){const _0x1d646f=_0x1262d9,_0xc44d0d=this[_0x1d646f(0x276)],_0x27e45d=this[_0x1d646f(0x274)],_0x1ce882=this[_0x1d646f(0x280)],_0x4c6806=this['pivotTableId'],_0x1f685e=_0xc44d0d[_0x1d646f(0x229)](m[_0x1d646f(0x1fc)]),_0x585272=_0xc44d0d[_0x1d646f(0x229)](l['SheetsPivotTableConfigModel']),_0x122681=_0x585272[_0x1d646f(0x1cc)](_0x27e45d,_0x1ce882,_0x4c6806),_0x2d1c7b=_0x585272[_0x1d646f(0x225)](_0x27e45d,_0x4c6806);if(!_0x122681||!_0x2d1c7b)return!0x1;let _0x53c1ab=_0x2c4f1f;typeof _0x53c1ab=='number'&&(_0x53c1ab=_0x585272[_0x1d646f(0x225)](_0x27e45d,_0x4c6806)['fieldIds'][_0x2c4f1f]);const _0x537b24={'unitId':_0x27e45d,'subUnitId':_0x1ce882,'pivotTableId':_0x4c6806,'dataFieldId':_0x53c1ab,'fieldArea':_0x5c363a,'index':_0x6338bc};return _0x1f685e[_0x1d646f(0x1f1)](l['AddPivotFieldCommand']['id'],_0x537b24);}async[_0x1262d9(0x264)](_0x5486a4){const _0x121611=_0x1262d9,_0x823def=this[_0x121611(0x276)],_0x5ee725=this[_0x121611(0x274)],_0x1d9f3e=this[_0x121611(0x280)],_0x460ca3=this['pivotTableId'],_0x1b94de=_0x823def[_0x121611(0x229)](m['ICommandService']),_0x4390e3={'unitId':_0x5ee725,'subUnitId':_0x1d9f3e,'pivotTableId':_0x460ca3,'fieldIds':_0x5486a4};return _0x1b94de[_0x121611(0x1f1)](l['RemovePivotFieldCommand']['id'],_0x4390e3);}async[_0x1262d9(0x24b)](_0x48d70c,_0x2a4e23,_0xc3ecd7){const _0x3233eb=_0x1262d9,_0x5406d2=this[_0x3233eb(0x276)],_0x3b3042=this[_0x3233eb(0x274)],_0x4a9836=this[_0x3233eb(0x280)],_0x148399=this[_0x3233eb(0x1a6)],_0x4b4bd8=_0x5406d2[_0x3233eb(0x229)](m[_0x3233eb(0x1fc)]),_0x131c44={'unitId':_0x3b3042,'subUnitId':_0x4a9836,'pivotTableId':_0x148399,'fieldId':_0x48d70c,'area':_0x2a4e23,'index':_0xc3ecd7};return _0x4b4bd8[_0x3233eb(0x1f1)](l['MovePivotFieldCommand']['id'],_0x131c44);}async[_0x1262d9(0x1e8)](_0x2e3aa2,_0x5deca0){const _0x225ae0=_0x1262d9,_0x5a37a0=this['_injector'],_0xa07b9b=this[_0x225ae0(0x274)],_0x1440a9=this[_0x225ae0(0x280)],_0x365946=this[_0x225ae0(0x1a6)],_0x3cd4d1=_0x5a37a0[_0x225ae0(0x229)](m[_0x225ae0(0x1fc)]),_0x55b39d={'unitId':_0xa07b9b,'subUnitId':_0x1440a9,'pivotTableId':_0x365946,'position':_0x2e3aa2,'index':_0x5deca0};return _0x3cd4d1[_0x225ae0(0x1f1)](l[_0x225ae0(0x1b2)]['id'],_0x55b39d);}async['setSubtotalType'](_0x3d0bdf,_0x511dc2){const _0xd278b2=_0x1262d9,_0x47734b=this[_0xd278b2(0x276)],_0xdfaa2d=this['unitId'],_0x4073d1=this[_0xd278b2(0x280)],_0x32859f=this[_0xd278b2(0x1a6)],_0x534f31=_0x47734b[_0xd278b2(0x229)](m['ICommandService']),_0x3b3974={'unitId':_0xdfaa2d,'subUnitId':_0x4073d1,'pivotTableId':_0x32859f,'fieldId':_0x3d0bdf,'subtotalType':_0x511dc2};return _0x534f31[_0xd278b2(0x1f1)](l[_0xd278b2(0x1d7)]['id'],_0x3b3974);}async[_0x1262d9(0x24a)](_0x22cf99,_0x3cd2a2){const _0x2e2e7f=_0x1262d9,_0x437654=this[_0x2e2e7f(0x276)],_0x2d9270=this[_0x2e2e7f(0x274)],_0x3ffd6c=this['subUnitId'],_0x4ad6d6=this[_0x2e2e7f(0x1a6)],_0x57b66b=_0x437654[_0x2e2e7f(0x229)](m[_0x2e2e7f(0x1fc)]),_0xeb069d={'unitId':_0x2d9270,'subUnitId':_0x3ffd6c,'tableFieldId':_0x22cf99,'pivotTableId':_0x4ad6d6,'info':_0x3cd2a2};return _0x57b66b['executeCommand'](l[_0x2e2e7f(0x218)]['id'],_0xeb069d);}async[_0x1262d9(0x21b)](_0x5df798,_0x4356e6,_0x1345f2){const _0x143a05=_0x1262d9,_0x2cbc57=this['_injector'],_0x358f1c=this['unitId'],_0x226be8=this[_0x143a05(0x280)],_0x447938=this['pivotTableId'],_0xaf7bed=_0x2cbc57[_0x143a05(0x229)](m[_0x143a05(0x1fc)]),_0x19d516={'unitId':_0x358f1c,'subUnitId':_0x226be8,'pivotTableId':_0x447938,'tableFieldId':_0x5df798,'items':_0x4356e6,'isAll':_0x1345f2};return _0xaf7bed[_0x143a05(0x1f1)](l['SetPivotFilterCommand']['id'],_0x19d516);}async['setValueFilter'](_0x38ca28,_0x5250f1){const _0x4da5a4=_0x1262d9,_0x4b3ee3=this[_0x4da5a4(0x276)],_0x290318=this[_0x4da5a4(0x274)],_0x1c306c=this['subUnitId'],_0x4caa4f=this[_0x4da5a4(0x1a6)],_0x40c3bc=_0x4b3ee3[_0x4da5a4(0x229)](m[_0x4da5a4(0x1fc)]);if(_0x38ca28===void 0x0)return console[_0x4da5a4(0x25f)](_0x4da5a4(0x270)),!0x1;const _0x436ae7=_0x5250f1&&{..._0x5250f1,'type':r[_0x4da5a4(0x1c6)][_0x4da5a4(0x23e)]},_0x307ce6={'unitId':_0x290318,'subUnitId':_0x1c306c,'pivotTableId':_0x4caa4f,'fieldId':_0x38ca28,'valueFilterInfo':_0x436ae7};return _0x40c3bc['executeCommand'](l['SetPivotValueFilterCommand']['id'],_0x307ce6);}async['renameField'](_0x12b2d0,_0x3341b6){const _0x5e3658=_0x1262d9,_0x53dae0=this[_0x5e3658(0x276)],_0xab7fa9=this[_0x5e3658(0x274)],_0x3fe538=this[_0x5e3658(0x280)],_0x1be5b5=this['pivotTableId'],_0x474d6d=_0x53dae0[_0x5e3658(0x229)](m[_0x5e3658(0x1fc)]),_0x22cb19={'unitId':_0xab7fa9,'subUnitId':_0x3fe538,'pivotTableId':_0x1be5b5,'fieldId':_0x12b2d0,'name':_0x3341b6};return _0x474d6d['executeCommand'](l['RenamePivotFieldMutation']['id'],_0x22cb19);}async[_0x1262d9(0x26d)](_0xb65eae,_0x1ce5bc,_0x2c1d1c){const _0x6dfa93=_0x1262d9,_0x176852=this['_injector'][_0x6dfa93(0x229)](m['ICommandService']),_0x30f7fb=this['_injector']['get'](m[_0x6dfa93(0x22d)])[_0x6dfa93(0x285)](this[_0x6dfa93(0x274)]),_0x22fbd0=_0x30f7fb==null?void 0x0:_0x30f7fb[_0x6dfa93(0x1c1)](_0xb65eae);if(!_0x30f7fb||!_0x22fbd0)throw new Error(_0x6dfa93(0x1ef));return _0x176852[_0x6dfa93(0x1f1)](l[_0x6dfa93(0x26b)]['id'],{'pivotTableId':this[_0x6dfa93(0x1a6)],'targetCellInfo':{'subUnitId':_0x22fbd0[_0x6dfa93(0x226)](),'unitId':this[_0x6dfa93(0x274)],'row':_0x1ce5bc,'col':_0x2c1d1c},'originTargetInfo':{'subUnitId':this[_0x6dfa93(0x280)],'unitId':this['unitId']}});}async[_0x1262d9(0x1aa)](_0x1e7a70,_0x17856d){const _0x327def=_0x1262d9,_0xe4984c=this[_0x327def(0x276)],_0x252576=this[_0x327def(0x274)],_0x2e4eb8=this['subUnitId'],_0x30639a=this[_0x327def(0x1a6)],_0x571394=_0xe4984c['get'](m[_0x327def(0x1fc)]),_0x469686={'unitId':_0x252576,'subUnitId':_0x2e4eb8,'pivotTableId':_0x30639a,'tableFieldId':_0x1e7a70,'dateType':_0x17856d};return _0x571394['executeCommand'](l[_0x327def(0x254)]['id'],_0x469686);}}class oe extends R['FWorkbook']{async[_0x1262d9(0x255)](_0x1dc8db,_0x4f7752,_0x51e7af){const _0x4fd116=_0x1262d9,_0x5958d3=this['_injector'],_0x429267=_0x5958d3[_0x4fd116(0x229)](m[_0x4fd116(0x1fc)]),_0x3039ca=r[_0x4fd116(0x1d9)](0x8),_0x3fe986={'positionType':_0x4f7752,'pivotTableId':_0x3039ca,'pivotTableConfig':{'targetCellInfo':_0x51e7af,'sourceRangeInfo':_0x1dc8db,'isEmpty':!0x0}};if(await _0x429267[_0x4fd116(0x1f1)](l[_0x4fd116(0x19d)]['id'],_0x3fe986))return new x(_0x51e7af[_0x4fd116(0x274)],_0x51e7af[_0x4fd116(0x280)],_0x3039ca,_0x5958d3);}['getPivotTableByCell'](_0x35fcf2,_0xc7ea8,_0x315d4a,_0x30eb42){const _0x5df957=_0x1262d9,_0xeaf898=this[_0x5df957(0x276)],_0x2aeb51=_0xeaf898[_0x5df957(0x229)](l[_0x5df957(0x1a7)])[_0x5df957(0x26c)](_0x35fcf2,_0xc7ea8,_0x315d4a,_0x30eb42);if(_0x2aeb51)return new x(_0x35fcf2,_0xc7ea8,_0x2aeb51,_0xeaf898);}[_0x1262d9(0x1ea)](_0x2d5637){const _0x45846f=_0x1262d9,_0x4beb44=this['_injector'],_0x38bc31=_0x4beb44[_0x45846f(0x229)](l[_0x45846f(0x24c)])[_0x45846f(0x1d0)](this['getId'](),_0x2d5637);if(_0x38bc31)return new x(_0x38bc31[_0x45846f(0x274)],_0x38bc31[_0x45846f(0x280)],_0x2d5637,_0x4beb44);}}R[_0x1262d9(0x1b3)][_0x1262d9(0x1c2)](oe);class ne extends R[_0x1262d9(0x25a)]{['getPivotTableByCell'](_0x2b4500,_0x4fad3a){const _0x3f9297=_0x1262d9,_0xec55cd=this[_0x3f9297(0x276)],_0x3a12b6=_0xec55cd[_0x3f9297(0x229)](l['SheetsPivotTableAdaptorModel']),_0x49d067=this['_workbook'][_0x3f9297(0x211)](),_0x44bbf8=this[_0x3f9297(0x226)](),_0xc014de=_0x3a12b6['getPivotTableIdByCell'](_0x49d067,_0x44bbf8,_0x2b4500,_0x4fad3a);if(_0xc014de)return new x(_0x49d067,_0x44bbf8,_0xc014de,_0xec55cd);}}R[_0x1262d9(0x25a)][_0x1262d9(0x1c2)](ne);class ae extends A['FEnum']{get[_0x1262d9(0x1ac)](){const _0x405317=_0x1262d9;return r[_0x405317(0x1ac)];}get['PivotFilterTypeEnum'](){const _0xdfdbeb=_0x1262d9;return r[_0xdfdbeb(0x1c6)];}get[_0x1262d9(0x259)](){return r['PivotTableFiledAreaEnum'];}get[_0x1262d9(0x257)](){const _0x2063ef=_0x1262d9;return r[_0x2063ef(0x257)];}get[_0x1262d9(0x1e1)](){const _0x325077=_0x1262d9;return r[_0x325077(0x1e1)];}get[_0x1262d9(0x25b)](){const _0x203fff=_0x1262d9;return r[_0x203fff(0x25b)];}get['PivotDataFieldSortOperatorEnum'](){const _0x5d2a94=_0x1262d9;return r[_0x5d2a94(0x1bd)];}get['PivotFilterOperatorEnum'](){const _0x3ff19a=_0x1262d9;return r[_0x3ff19a(0x1f3)];}get['PositionTypeEnum'](){const _0x1fe400=_0x1262d9;return l[_0x1fe400(0x1d6)];}get[_0x1262d9(0x1df)](){const _0x4c070c=_0x1262d9;return r[_0x4c070c(0x1df)];}get[_0x1262d9(0x25c)](){return r['PivotDateGroupFieldDateTypeEnum'];}}function _0x5f3d(){const _0xd2c59=['@univerjs-pro/engine-pivot','fields','(空白)','PivotDataFieldSortOperatorEnum','cancel','defineProperty','setFilterInfo','getSheetBySheetName','extend','PivotTableFieldAdded','forEach','startRow','PivotFilterTypeEnum','_firePivotTableValuePositionChangedEvent','_firePivotTableFieldAddedEvent','viewUpdate$','PivotViewCellValueTypeEnum','777dsvvfs','getPivotTableConfig','data','LifecycleStages','getFieldCountByArea','getTargetByPivotTableId','getSourceFieldsInfo','auditTime','Filter','GrandTotal','dimension','PositionType','SetPivotSubtotalTypeMutation','SetPivotFilterCommand','generateHexNumber','tableFieldId','fireEvent','getValueFilter','reset','pipe','PivotTableChangeTypeEnum','object','PivotDataFieldDataTypeEnum','3296733RmsUEx','PivotTable','subscribe','_isZhCN','getFieldDataTypeByColumnIndex','Subtotal','updateValuePosition','Ready','getPivotTableById','endRow','getFieldDataType','Value','max','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','isBottomTotal','executeCommand','symbol','ST_PivotFilterOperatorEnum','getRowCount','FEnum','unionPivotViewRange','RemovePivotTableMutation','_fireRenderPivotTableEvent','PivotTableFieldCollapseChanged','col','951206KNuiql','ICommandService','LocaleType','4wFEUgC','numfmt','setDisplayName','DataFieldManager','getTableFieldsByDataFieldId','_fireAddPivotTableEvent','date','removeFieldWithName','concat','registerEventHandler','getNameWithColumnIndex','length','773895QIUUqe','blank','find','ZH_CN','rowFields','info','addFieldWithSourceId','getUnitId','fieldsConfig','PivotTableAdded','50874IHYnEL','None','string','getPivotSourceData','SetPivotSortCommand','Column','FEventName','setLabelManualFilter','AddPivotTableWithConfigCommand','getFieldById','PivotTableFieldRemoved','getResultByCalculate','sheetName','BeforePivotTableAdd','getDataFieldIdByDisplayName','level','_firePivotTableFieldFilterChangedEvent','getCollection','getSheetId','getPivotTableId','fieldId','get','PivotTableFieldMoved','setSubtotalType','filterFields','IUniverInstanceService','keys','Grand\x20Total\x20','getTime','fieldDataType','_sourceData','getformat','BeforePivotTableMove','_firePivotTableFieldCollapsedEvent','[PivotTable]:\x20The\x20field\x20name\x20','getValueFilters','targetCellInfo','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','measure','getId','总计\x20','count','ValueFilter','@univerjs/sheets/facade','range','dispose','Event','_pivot','getColCount','_id','format','sum','getFieldDataTypeByFieldName','subtotal','setLabelSort','updateFieldPosition','SheetsPivotTableConfigModel','row','Before\x20move\x20pivot\x20table\x20event\x20canceled','getFieldDisplayNames','PivotTableFieldFilterChanged','beforeCommandExecuted','getDataFieldByTableId','hiddenFields','UpdateDateGroupCommand','addPivotTable','column','PivotTableValuePositionEnum','getRangeData','PivotTableFiledAreaEnum','FWorksheet','PivotDataFieldSortTypeEnum','PivotDateGroupFieldDateTypeEnum','PivotTableValuePositionChanged','_firePivotTableFieldSortChangedEvent','warn','UpdatePivotFieldSettingCommand','ResetPivotFieldsConfigCommand','Row','PivotCellStyleTypeEnum','removeField','onCommandExecuted','setSubtotal','[PivotTable]:\x20add\x20field\x20','number','addFieldWithName','Total\x20','MovePivotTableCommand','getPivotTableIdByCell','move','SetPivotFieldsConfigCommand','_fireBeforeAddPivotTableEvent','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','PivotTableMoved','rxjs','unitId','10faErUt','_injector','getConfig','getFieldIds','_firePivotTableFieldRemovedEvent','_getSourceIdByName','columnFields','4ObXBvS','query','syncExecuteCommand','endColumn','subUnitId','4194456YCutTU','getPivotTableRangeInfo','remove','@univerjs-pro/sheets-pivot','getUnit','_firePivotTableFieldSettingChangedEvent','getValueFields','getSourceName','4931532YdvCqp','setOptions','小计\x20','Before\x20add\x20pivot\x20table\x20event\x20canceled','Hidden','startColumn','AddPivotTableCommand','params','addFilterFieldWithName','137505PxfMgy','FUniver','name','headerMap','getFieldIdsByArea','_firePivotTableRemovedEvent','pivotTableId','SheetsPivotTableAdaptorModel','push','dataFieldsCollection','setDateGroupType','filterInfo','PivotSubtotalTypeEnum','getDimensionInfo','PivotTableRendered','MovePivotFieldCommand','PivotTableRemoved','valueFilter','UpdatePivotValuePositionCommand','FWorkbook','getFieldSetting','_initialize','_firePivotTableFieldMovedEvent','PivotTableFieldSettingChanged','PivotTableFieldSortChanged','valueIndex'];_0x5f3d=function(){return _0xd2c59;};return _0x5f3d();}A[_0x1262d9(0x1f5)][_0x1262d9(0x1c2)](ae);class se extends A[_0x1262d9(0x21a)]{get[_0x1262d9(0x213)](){const _0x179335=_0x1262d9;return _0x179335(0x213);}get[_0x1262d9(0x221)](){const _0x25c470=_0x1262d9;return _0x25c470(0x221);}get['PivotTableRemoved'](){return'PivotTableRemoved';}get[_0x1262d9(0x272)](){return'PivotTableMoved';}get[_0x1262d9(0x1ae)](){const _0x3b6156=_0x1262d9;return _0x3b6156(0x1ae);}get['PivotTableFieldAdded'](){const _0x75e8f7=_0x1262d9;return _0x75e8f7(0x1c3);}get[_0x1262d9(0x21e)](){const _0x3a0c90=_0x1262d9;return _0x3a0c90(0x21e);}get[_0x1262d9(0x22a)](){return'PivotTableFieldMoved';}get[_0x1262d9(0x1f9)](){const _0x308dfa=_0x1262d9;return _0x308dfa(0x1f9);}get[_0x1262d9(0x250)](){const _0x277692=_0x1262d9;return _0x277692(0x250);}get['PivotTableFieldSortChanged'](){const _0x5d4a0b=_0x1262d9;return _0x5d4a0b(0x1b8);}get['PivotTableFieldSettingChanged'](){const _0x5680ed=_0x1262d9;return _0x5680ed(0x1b7);}get[_0x1262d9(0x25d)](){const _0x586035=_0x1262d9;return _0x586035(0x25d);}}A[_0x1262d9(0x21a)][_0x1262d9(0x1c2)](se);const Z='YYYY-MM-DD';function de(_0x5b310b){return _0x5b310b/0x3e8/0x15180+0x63e1;}function le(_0x52a768,_0x18d9d0,_0x2d6ae9,_0x4f2b61){const _0x2109e9=_0x1262d9;var _0x5ee13d,_0x35010f,_0x3cc6c1,_0x2c5906,_0x103155,_0x5b1fd6,_0x4712be,_0x43dbe4,_0x252244,_0x1efb8e,_0x5e8709,_0x320a61,_0x4ceac5,_0x191fa5,_0x2827b7;const _0x11cdce=[],_0x5b7bb3=[],_0x11a32a=[],{showRowGrandTotal:_0x2f5155,showRowSubTotal:_0x502d7c}=_0x4f2b61,{cornerView:_0x46ddd4,colView:_0x545324,rowView:_0x3e6930,dataView:_0x16fa99,formatMap:_0x3a39a7}=_0x18d9d0,_0x4834ea=_0x46ddd4[_0x2109e9(0x1f4)](),_0x1838a3=_0x46ddd4[_0x2109e9(0x244)]();for(let _0xed5e1b=0x0;_0xed5e1b<_0x4834ea;_0xed5e1b++)for(let _0x129d66=0x0;_0x129d66<_0x1838a3;_0x129d66++){const _0x4f6af0={...(_0x35010f=(_0x5ee13d=_0x46ddd4[_0x2109e9(0x1cd)])==null?void 0x0:_0x5ee13d[_0xed5e1b])==null?void 0x0:_0x35010f[_0x129d66]};_0x4f6af0['v']&&(_0x11cdce[_0xed5e1b]||(_0x11cdce[_0xed5e1b]=[]),_0x11a32a[_0xed5e1b]||(_0x11a32a[_0xed5e1b]=[]),_0x11cdce[_0xed5e1b][_0x129d66]=_0x4f6af0['v'],_0x11a32a[_0xed5e1b][_0x129d66]=_0x4f6af0['v']);}for(let _0x5b2da3=0x0;_0x5b2da3<_0x545324['getRowCount']();_0x5b2da3++){const _0x4e5132=(_0x2c5906=(_0x3cc6c1=_0x545324==null?void 0x0:_0x545324[_0x2109e9(0x1a3)])==null?void 0x0:_0x3cc6c1[_0x5b2da3])==null?void 0x0:_0x2c5906[_0x2109e9(0x1da)],_0x361618=_0x4e5132?_0x3a39a7[_0x4e5132]:'';for(let _0x2ad3c0=0x0;_0x2ad3c0<_0x545324['getColCount']();_0x2ad3c0++){const _0x43432b={...(_0x5b1fd6=(_0x103155=_0x545324[_0x2109e9(0x1cd)])==null?void 0x0:_0x103155[_0x5b2da3])==null?void 0x0:_0x5b1fd6[_0x2ad3c0]};if((_0x43432b==null?void 0x0:_0x43432b['v'])!==void 0x0){let _0x5ad601=_0x361618?m['numfmt'][_0x2109e9(0x246)](_0x361618,Number(_0x43432b['v'])):_0x43432b['v'];(_0x43432b==null?void 0x0:_0x43432b['s'])===r[_0x2109e9(0x263)][_0x2109e9(0x1e7)]?_0x5ad601=_0x2d6ae9?'小计\x20'+_0x5ad601:'Total\x20'+_0x5ad601:(_0x43432b==null?void 0x0:_0x43432b['s'])===r['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x5ad601=_0x2d6ae9?_0x2109e9(0x23c)+_0x5ad601:_0x2109e9(0x22f)+_0x5ad601),(_0x43432b==null?void 0x0:_0x43432b['t'])===r[_0x2109e9(0x1ca)][_0x2109e9(0x20b)]&&(_0x5ad601=_0x2d6ae9?_0x2109e9(0x1bc):'(blank)'),_0x11cdce[_0x5b2da3]||(_0x11cdce[_0x5b2da3]=[]),_0x11a32a[_0x5b2da3]||(_0x11a32a[_0x5b2da3]=[]),_0x11cdce[_0x5b2da3][_0x2ad3c0+_0x1838a3]=_0x5ad601,_0x11a32a[_0x5b2da3][_0x2ad3c0+_0x1838a3]=_0x5ad601;}}}let _0xe9e47b=0x0,_0x3810ef=0x0,_0x432830=0x0;for(let _0x27c587=0x0;_0x27c587<_0x3e6930[_0x2109e9(0x1f4)]();_0x27c587++){const _0x2caf5f=_0x3e6930[_0x2109e9(0x20f)][_0x27c587];if(!_0x502d7c&&_0x2caf5f[_0x2109e9(0x1f0)]&&_0x2caf5f[_0x2109e9(0x223)]!==0x0){_0x432830++,_0x3810ef=0x0;continue;}if(!(!_0x2f5155&&_0x2caf5f[_0x2109e9(0x1f0)]&&_0x2caf5f[_0x2109e9(0x223)]===0x0)){for(let _0x251eff=0x0;_0x251eff<_0x3e6930['getColCount']();_0x251eff++){const _0x3d67ee={...(_0x43dbe4=(_0x4712be=_0x3e6930[_0x2109e9(0x1cd)])==null?void 0x0:_0x4712be[_0x27c587])==null?void 0x0:_0x43dbe4[_0x251eff]},_0x5385cf=(_0x1efb8e=(_0x252244=_0x3e6930==null?void 0x0:_0x3e6930[_0x2109e9(0x1a3)])==null?void 0x0:_0x252244[_0x251eff])==null?void 0x0:_0x1efb8e[_0x2109e9(0x1da)],_0x2520d0=_0x5385cf?_0x3a39a7[_0x5385cf]:'';if((_0x3d67ee==null?void 0x0:_0x3d67ee['v'])!==void 0x0){let _0x15c200=_0x2520d0?m[_0x2109e9(0x1ff)][_0x2109e9(0x246)](_0x2520d0,Number(_0x3d67ee['v'])):_0x3d67ee['v'];(_0x3d67ee==null?void 0x0:_0x3d67ee['s'])===r[_0x2109e9(0x263)][_0x2109e9(0x1e7)]?_0x15c200=_0x2d6ae9?_0x2109e9(0x199)+_0x15c200:_0x2109e9(0x26a)+_0x15c200:(_0x3d67ee==null?void 0x0:_0x3d67ee['s'])===r['PivotCellStyleTypeEnum'][_0x2109e9(0x1d4)]&&(_0x15c200=_0x2d6ae9?_0x2109e9(0x23c)+_0x15c200:_0x2109e9(0x22f)+_0x15c200),(_0x3d67ee==null?void 0x0:_0x3d67ee['t'])===r[_0x2109e9(0x1ca)][_0x2109e9(0x20b)]&&(_0x15c200=_0x2d6ae9?_0x2109e9(0x1bc):'(blank)'),_0x11cdce[_0xe9e47b+_0x4834ea]||(_0x11cdce[_0xe9e47b+_0x4834ea]=[]);let _0x4dcd0f=_0x5b7bb3[_0x432830];_0x4dcd0f||(_0x4dcd0f=[..._0x11a32a],_0x5b7bb3[_0x432830]=_0x4dcd0f),_0x4dcd0f[_0x3810ef+_0x4834ea]||(_0x4dcd0f[_0x3810ef+_0x4834ea]=[]),_0x4dcd0f[_0x3810ef+_0x4834ea][_0x251eff]=_0x15c200,_0x11cdce[_0xe9e47b+_0x4834ea][_0x251eff]=_0x15c200;}}_0xe9e47b++,_0x3e6930[_0x2109e9(0x20f)][_0x27c587][_0x2109e9(0x1f0)]?(_0x432830++,_0x3810ef=0x0):_0x3810ef++;}}_0xe9e47b=0x0,_0x432830=0x0,_0x3810ef=0x0;for(let _0x12d29a=0x0;_0x12d29a<_0x16fa99[_0x2109e9(0x1f4)]();_0x12d29a++){const _0x28b518=_0x3e6930[_0x2109e9(0x20f)][_0x12d29a];if(!_0x502d7c&&_0x28b518['isBottomTotal']&&_0x28b518[_0x2109e9(0x223)]!==0x0){_0x432830++,_0x3810ef=0x0;continue;}if(!(!_0x2f5155&&_0x28b518[_0x2109e9(0x1f0)]&&_0x28b518[_0x2109e9(0x223)]===0x0)){for(let _0x3a06db=0x0;_0x3a06db<_0x16fa99['getColCount']();_0x3a06db++){const _0x37ca6f={...(_0x320a61=(_0x5e8709=_0x16fa99[_0x2109e9(0x1cd)])==null?void 0x0:_0x5e8709[_0x12d29a])==null?void 0x0:_0x320a61[_0x3a06db]};if(_0x37ca6f['v']){const _0x22069e=_0x3e6930[_0x2109e9(0x20f)][_0x12d29a][_0x2109e9(0x1b9)],_0x5498a6=_0x545324[_0x2109e9(0x20f)][_0x3a06db][_0x2109e9(0x1b9)],_0x1fb638=Math[_0x2109e9(0x1ee)](_0x22069e,_0x5498a6),_0x51d5d5=_0x52a768[_0x2109e9(0x287)]()[_0x2109e9(0x206)]();let _0x324f1e='';_0x1fb638<0x0?_0x324f1e=(_0x4ceac5=_0x51d5d5[0x0])!=null?_0x4ceac5:'':_0x324f1e=(_0x191fa5=_0x51d5d5[_0x1fb638])!=null?_0x191fa5:'';const _0x938919=(_0x2827b7=_0x3a39a7[_0x324f1e])!=null?_0x2827b7:'';_0x11cdce[_0xe9e47b+_0x4834ea]||(_0x11cdce[_0xe9e47b+_0x4834ea]=[]);let _0x427689=_0x5b7bb3[_0x432830];_0x427689||(_0x427689=[..._0x11a32a],_0x5b7bb3[_0x432830]=_0x427689),_0x427689[_0x3810ef+_0x4834ea]||(_0x427689[_0x3810ef+_0x4834ea]=[]);const _0x2a14ef=_0x938919?m[_0x2109e9(0x1ff)][_0x2109e9(0x246)](_0x938919,Number(_0x37ca6f['v'])):_0x37ca6f['v'];_0x427689[_0x3810ef+_0x4834ea][_0x3a06db+_0x1838a3]=_0x2a14ef,_0x11cdce[_0xe9e47b+_0x4834ea][_0x3a06db+_0x1838a3]=_0x2a14ef;}}_0xe9e47b++,_0x3e6930['info'][_0x12d29a]['isBottomTotal']?(_0x432830++,_0x3810ef=0x0):_0x3810ef++;}}return{'dataArr':_0x11cdce,'dataArrWithSplit':_0x5b7bb3};}class re{constructor(_0x38a378,_0x55b4e8,_0x2f246c,_0x1553dd){const _0x312ed7=_0x1262d9;y(this,_0x312ed7(0x243)),y(this,_0x312ed7(0x232)),y(this,_0x312ed7(0x276)),y(this,_0x312ed7(0x1e5)),y(this,_0x312ed7(0x245)),(this[_0x312ed7(0x276)]=_0x38a378,this[_0x312ed7(0x243)]=_0x55b4e8,this[_0x312ed7(0x232)]=_0x2f246c,this['_id']=_0x1553dd);const _0x2949b6=this[_0x312ed7(0x276)][_0x312ed7(0x229)](m['LocaleService']);this[_0x312ed7(0x1e5)]=_0x2949b6['getCurrentLocale']()===m[_0x312ed7(0x1fd)][_0x312ed7(0x20d)];}[_0x1262d9(0x27a)](_0x2389dc){const _0x38016c=_0x1262d9,_0x29695b=this[_0x38016c(0x243)][_0x38016c(0x222)](_0x2389dc);if(!_0x29695b)throw new Error(_0x38016c(0x236)+_0x2389dc+_0x38016c(0x271));return _0x29695b;}['addFieldWithName'](_0x17950c,_0x2205e3){const _0x32132b=_0x1262d9,_0x108101=this[_0x32132b(0x27a)](_0x17950c),_0x3200e7=this[_0x32132b(0x243)]['addFieldWithSourceId'](_0x108101,_0x2205e3);if(!_0x3200e7)throw new Error(_0x32132b(0x267)+_0x17950c+'\x20failed.');if(_0x2205e3===r[_0x32132b(0x259)][_0x32132b(0x1ed)]){const _0x8b0486=_0x3200e7[_0x32132b(0x23b)](),_0x11e7ef=this[_0x32132b(0x243)][_0x32132b(0x252)](_0x8b0486);if(_0x11e7ef){const _0xc11e52=_0x11e7ef==null?void 0x0:_0x11e7ef[_0x32132b(0x1ec)]();this['_pivot'][_0x32132b(0x22b)](_0x8b0486,_0xc11e52===r['PivotDataFieldDataTypeEnum'][_0x32132b(0x268)]?r[_0x32132b(0x1ac)][_0x32132b(0x247)]:r[_0x32132b(0x1ac)][_0x32132b(0x23d)]);}const _0x2b3a2c=this[_0x32132b(0x243)]['getValueIndex'](),_0x2efe7b=this['_pivot']['getValuePosition'](),_0x52cd5f=this[_0x32132b(0x243)][_0x32132b(0x1cf)](r['PivotTableFiledAreaEnum'][_0x32132b(0x1ed)]);if(_0x2b3a2c===-0x1&&_0x52cd5f>0x1){const _0x2582a5=_0x2efe7b===r[_0x32132b(0x257)][_0x32132b(0x215)]?r[_0x32132b(0x257)]['Column']:_0x2efe7b,_0x4ded16=_0x2582a5===r[_0x32132b(0x257)][_0x32132b(0x262)]?r[_0x32132b(0x259)]['Row']:r[_0x32132b(0x259)][_0x32132b(0x219)];this[_0x32132b(0x243)][_0x32132b(0x1e8)](_0x2582a5,this[_0x32132b(0x243)][_0x32132b(0x1cf)](_0x4ded16));}}else{if(_0x2205e3===r[_0x32132b(0x259)][_0x32132b(0x262)]||_0x2205e3===r[_0x32132b(0x259)][_0x32132b(0x219)]){const _0x50bcc5=_0x3200e7[_0x32132b(0x23b)](),_0x343cb4=this['_pivot'][_0x32132b(0x252)](_0x50bcc5);if(_0x343cb4&&(_0x343cb4==null?void 0x0:_0x343cb4[_0x32132b(0x1ec)]())===r[_0x32132b(0x1e1)][_0x32132b(0x204)]){const _0x1819f0=_0x343cb4[_0x32132b(0x233)]();_0x1819f0&&this[_0x32132b(0x243)]['setFieldFormat'](_0x50bcc5,_0x1819f0);}}}return _0x3200e7;}[_0x1262d9(0x19f)](_0x3e9c93,_0xd651d6){const _0xe9b96=_0x1262d9,_0x59f337=this['_getSourceIdByName'](_0x3e9c93),_0x2b698b=this[_0xe9b96(0x243)][_0xe9b96(0x210)](_0x59f337,r[_0xe9b96(0x259)][_0xe9b96(0x1d3)]);return _0x2b698b[_0xe9b96(0x1c0)](_0xd651d6),_0x2b698b;}['addValueFieldWithName'](_0x543bb5,_0xe01e47){const _0x4f676c=_0x1262d9,_0x4ed95c=this[_0x4f676c(0x269)](_0x543bb5,r[_0x4f676c(0x259)][_0x4f676c(0x1ed)]);return _0xe01e47!=null&&_0xe01e47[_0x4f676c(0x249)]&&_0x4ed95c[_0x4f676c(0x266)](_0xe01e47==null?void 0x0:_0xe01e47[_0x4f676c(0x249)]),_0x4ed95c;}[_0x1262d9(0x205)](_0x556c9c){const _0x407689=_0x1262d9,_0x16938b=this[_0x407689(0x27a)](_0x556c9c);this[_0x407689(0x243)][_0x407689(0x202)](_0x16938b)[_0x407689(0x1c4)](_0x37eb98=>{const _0x1a7685=_0x407689,_0xe2b26c=_0x37eb98['getId']();this[_0x1a7685(0x243)][_0x1a7685(0x264)](_0xe2b26c);});}[_0x1262d9(0x21f)](_0x239d84={}){const _0x282674=_0x1262d9,_0x12854c=this[_0x282674(0x243)][_0x282674(0x27d)](),{dataArr:_0x1de860,dataArrWithSplit:_0x5ad036}=le(this[_0x282674(0x243)],_0x12854c,this[_0x282674(0x1e5)],_0x239d84);return{'dataArr':_0x1de860,'dataArrWithSplit':_0x5ad036};}[_0x1262d9(0x208)](_0x3db8dc){const _0x50dd8c=_0x1262d9;return this[_0x50dd8c(0x243)][_0x50dd8c(0x24f)]()[_0x3db8dc];}[_0x1262d9(0x1dd)](){const _0x49eafd=_0x1262d9;this[_0x49eafd(0x243)]['reset']();}['resetDimension'](_0x478c03){const _0x49a27c=_0x1262d9;this[_0x49a27c(0x243)]['reset'](_0x478c03);}[_0x1262d9(0x1e6)](_0xae91fd){const _0x50e08d=_0x1262d9,_0x12f338=this['_pivot'][_0x50e08d(0x1a9)],_0xefead5=_0x12f338[_0x50e08d(0x278)]()[_0xae91fd];if(_0xefead5)return _0x12f338[_0x50e08d(0x21d)](_0xefead5)['getFieldDataType']();}[_0x1262d9(0x248)](_0x131b18){const _0x45edd3=_0x1262d9,_0x1c02b6=this['_getSourceIdByName'](_0x131b18),_0x2a91fa=this[_0x45edd3(0x243)][_0x45edd3(0x1a9)][_0x45edd3(0x21d)](_0x1c02b6);return _0x2a91fa==null?void 0x0:_0x2a91fa[_0x45edd3(0x1ec)]();}[_0x1262d9(0x1ad)](){const _0x2cdaab=_0x1262d9,_0x312aef={};return[[r['PivotTableFiledAreaEnum'][_0x2cdaab(0x262)],_0x2cdaab(0x24d)],[r[_0x2cdaab(0x259)][_0x2cdaab(0x219)],_0x2cdaab(0x256)],[r[_0x2cdaab(0x259)][_0x2cdaab(0x1d3)],'filter'],[r[_0x2cdaab(0x259)]['Value'],'value']][_0x2cdaab(0x1c4)](_0x452d12=>{const _0x15480a=_0x2cdaab,[_0x429f31,_0x3beb3b]=_0x452d12;this[_0x15480a(0x243)]['iterateFieldByArea'](_0x429f31,_0x42d399=>{const _0x304144=_0x15480a;_0x312aef[_0x3beb3b]||(_0x312aef[_0x3beb3b]=[]),_0x312aef[_0x3beb3b][_0x304144(0x1a8)](_0x42d399[_0x304144(0x196)]());});}),Object[_0x2cdaab(0x22e)](_0x312aef)[_0x2cdaab(0x209)]>0x0?_0x312aef:void 0x0;}[_0x1262d9(0x217)](){const _0x554d0e=_0x1262d9;return this[_0x554d0e(0x232)];}['setOptions'](_0x1a5432){const _0x383dff=_0x1262d9;this['_pivot'][_0x383dff(0x198)](_0x1a5432);}['remove'](){const _0x97e0ea=_0x1262d9;this['_pivot'][_0x97e0ea(0x241)]();}}class ve extends r[_0x1262d9(0x201)]{[_0x1262d9(0x258)](_0x252603){const _0x16b517=_0x1262d9;if(Array['isArray'](_0x252603)&&_0x252603[_0x16b517(0x209)]>0x0){const _0x16caed=[],_0xde95df=_0x252603[0x0],_0xda1d7c={},_0x2b4d47=_0x252603[0x1];for(let _0x44223f=0x0;_0x44223f<_0x2b4d47[_0x16b517(0x209)];_0x44223f++){const _0x2a106e=_0x2b4d47[_0x44223f];if(typeof _0x2a106e==_0x16b517(0x1e0)&&_0x2a106e instanceof Date)_0xda1d7c[_0x44223f]=Z;else{if(typeof _0x2a106e==_0x16b517(0x216)){const _0x4f58db=new Date(_0x2a106e);Number['isNaN'](_0x4f58db[_0x16b517(0x230)]())||(_0xda1d7c[_0x44223f]=Z);}}}for(let _0x199571=0x1;_0x199571<_0x252603['length'];_0x199571++){const _0x42e92f=_0x252603[_0x199571],_0x7c172=[];for(let _0xbadc40=0x0;_0xbadc40<_0x42e92f['length'];_0xbadc40++)if(_0xda1d7c[_0xbadc40]){const _0x31984d=_0x42e92f[_0xbadc40],_0x2318d2=typeof _0x31984d==_0x16b517(0x1e0)&&_0x31984d instanceof Date?_0x31984d:new Date(_0x31984d),_0x30ab56={'v':de(_0x2318d2['getTime']()),'f':_0xda1d7c[_0xbadc40]};_0x7c172['push'](_0x30ab56);}else _0x7c172['push'](_0x42e92f[_0xbadc40]);_0x16caed['push'](_0x7c172);}return{'header':_0xde95df,'data':_0x16caed};}else throw new Error(_0x16b517(0x239));}}class ce extends A[_0x1262d9(0x1a1)]{[_0x1262d9(0x1b5)](_0x15e31d){const _0x4da7c3=_0x1262d9,_0x3e5002=_0x15e31d[_0x4da7c3(0x229)](m[_0x4da7c3(0x1fc)]);this[_0x4da7c3(0x207)](this['Event'][_0x4da7c3(0x221)],()=>_0x3e5002['beforeCommandExecuted'](_0x13fea2=>{const _0x4936c2=_0x4da7c3;switch(_0x13fea2['id']){case l['MovePivotTableCommand']['id']:{const _0xf0e1a3=_0x13fea2[_0x4936c2(0x19e)];this['_fireBeforeMovePivotTableEvent'](_0xf0e1a3);break;}}})),this['registerEventHandler'](this[_0x4da7c3(0x242)][_0x4da7c3(0x234)],()=>_0x3e5002[_0x4da7c3(0x251)](_0x242489=>{const _0x40e814=_0x4da7c3;switch(_0x242489['id']){case l[_0x40e814(0x21c)]['id']:case l[_0x40e814(0x19d)]['id']:{const _0x29c000=_0x242489[_0x40e814(0x19e)];this[_0x40e814(0x26f)](_0x29c000);break;}}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)]['PivotTableAdded'],()=>_0x3e5002[_0x4da7c3(0x265)](_0x2aa632=>{const _0x409711=_0x4da7c3;if(_0x2aa632['id']===l['AddPivotTableWithConfigCommand']['id']||_0x2aa632['id']===l['AddPivotTableCommand']['id']){const _0x297a14=_0x2aa632['params'];this[_0x409711(0x203)](_0x297a14);}})),this['registerEventHandler'](this[_0x4da7c3(0x242)]['PivotTableMoved'],()=>_0x3e5002[_0x4da7c3(0x265)](_0x1f6600=>{const _0x3d8746=_0x4da7c3;if(_0x1f6600['id']===l[_0x3d8746(0x26b)]['id']){const _0x106362=_0x1f6600[_0x3d8746(0x19e)];this['_fireMovedPivotTableEvent'](_0x106362);}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)]['PivotTableRemoved'],()=>_0x3e5002['onCommandExecuted'](_0x4be77c=>{const _0x192e07=_0x4da7c3;if(_0x4be77c['id']===l[_0x192e07(0x1f7)]['id']){const _0x256d1f=_0x4be77c[_0x192e07(0x19e)];this[_0x192e07(0x1a5)](_0x256d1f);}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)][_0x4da7c3(0x1c3)],()=>_0x3e5002[_0x4da7c3(0x265)](_0x29aff3=>{const _0x3bac99=_0x4da7c3;if(_0x29aff3['id']===l['AddPivotFieldCommand']['id']){const _0x108fee=_0x29aff3[_0x3bac99(0x19e)];this[_0x3bac99(0x1c8)](_0x108fee);}})),this['registerEventHandler'](this[_0x4da7c3(0x242)]['PivotTableFieldRemoved'],()=>_0x3e5002[_0x4da7c3(0x265)](_0x341755=>{const _0x2e3df1=_0x4da7c3;if(_0x341755['id']===l['RemovePivotFieldCommand']['id']){const _0x5183a3=_0x341755['params'];this[_0x2e3df1(0x279)](_0x5183a3);}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)][_0x4da7c3(0x22a)],()=>_0x3e5002[_0x4da7c3(0x265)](_0x515f72=>{const _0x338ce6=_0x4da7c3;if(_0x515f72['id']===l[_0x338ce6(0x1af)]['id']){const _0x373da2=_0x515f72[_0x338ce6(0x19e)];this[_0x338ce6(0x1b6)](_0x373da2);}})),this['registerEventHandler'](this[_0x4da7c3(0x242)][_0x4da7c3(0x1f9)],()=>_0x3e5002[_0x4da7c3(0x265)](_0x203944=>{const _0x1ca513=_0x4da7c3;if(_0x203944['id']===l['SetPivotCollapseCommand']['id']){const _0x395f70=_0x203944[_0x1ca513(0x19e)];this['_firePivotTableFieldCollapsedEvent'](_0x395f70);}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)][_0x4da7c3(0x250)],()=>_0x3e5002[_0x4da7c3(0x265)](_0x430afd=>{const _0xbd724c=_0x4da7c3;if(_0x430afd['id']===l[_0xbd724c(0x1d8)]['id']){const _0x806fad=_0x430afd[_0xbd724c(0x19e)];this['_firePivotTableFieldFilterChangedEvent'](_0x806fad);}})),this[_0x4da7c3(0x207)](this['Event'][_0x4da7c3(0x1b8)],()=>_0x3e5002[_0x4da7c3(0x265)](_0x5a443e=>{const _0x2b0ceb=_0x4da7c3;if(_0x5a443e['id']===l['SetPivotSortCommand']['id']){const _0x4ae6f0=_0x5a443e['params'];this[_0x2b0ceb(0x25e)](_0x4ae6f0);}})),this[_0x4da7c3(0x207)](this['Event']['PivotTableFieldSettingChanged'],()=>_0x3e5002['onCommandExecuted'](_0x7b5078=>{const _0x3d74ba=_0x4da7c3;if(_0x7b5078['id']===l[_0x3d74ba(0x260)]['id']){const _0x2c28c9=_0x7b5078[_0x3d74ba(0x19e)];this[_0x3d74ba(0x286)](_0x2c28c9);}})),this[_0x4da7c3(0x207)](this[_0x4da7c3(0x242)]['PivotTableValuePositionChanged'],()=>_0x3e5002[_0x4da7c3(0x265)](_0x53fe77=>{const _0x13af94=_0x4da7c3;if(_0x53fe77['id']===l['UpdatePivotValuePositionCommand']['id']){const _0x205319=_0x53fe77['params'];this[_0x13af94(0x1c7)](_0x205319);}}));const _0x1514b3=_0x15e31d[_0x4da7c3(0x229)](m['LifecycleService']);this['disposeWithMe'](_0x1514b3['lifecycle$']['subscribe'](_0x5781fd=>{const _0x4cd1b1=_0x4da7c3;if(_0x5781fd===m[_0x4cd1b1(0x1ce)][_0x4cd1b1(0x1e9)]){const _0x22a673=_0x15e31d[_0x4cd1b1(0x229)](l['SheetsPivotTableAdaptorModel']);this[_0x4cd1b1(0x207)](this['Event']['PivotTableRendered'],()=>_0x22a673[_0x4cd1b1(0x1c9)][_0x4cd1b1(0x1de)](ie[_0x4cd1b1(0x1d2)](0x32))[_0x4cd1b1(0x1e4)](_0x482e0a=>{const _0x79eb8a=_0x4cd1b1;this[_0x79eb8a(0x1f8)](_0x482e0a);}));}}));}[_0x1262d9(0x1c8)](_0x1bed81){const _0xaafd9b=_0x1262d9;if(_0x1bed81){const {unitId:_0x15981a,subUnitId:_0x5b350d,pivotTableId:_0x585238,dataFieldId:_0x21676f,fieldArea:_0x401d83,index:_0x4cc1f8}=_0x1bed81;this[_0xaafd9b(0x1db)](this[_0xaafd9b(0x242)][_0xaafd9b(0x1c3)],{'unitId':_0x15981a,'subUnitId':_0x5b350d,'pivotTableId':_0x585238,'dataFieldId':_0x21676f,'fieldArea':_0x401d83,'index':_0x4cc1f8});}}[_0x1262d9(0x279)](_0x4e574a){const _0x267955=_0x1262d9;if(_0x4e574a){const {unitId:_0x1d57e8,subUnitId:_0x1ba66a,pivotTableId:_0x49b98e,fieldIds:_0x4ba9ad}=_0x4e574a;this[_0x267955(0x1db)](this[_0x267955(0x242)][_0x267955(0x21e)],{'unitId':_0x1d57e8,'subUnitId':_0x1ba66a,'pivotTableId':_0x49b98e,'fieldIds':_0x4ba9ad[_0x267955(0x206)]()});}}[_0x1262d9(0x1b6)](_0x44d358){const _0x5841ff=_0x1262d9;if(_0x44d358){const {unitId:_0x48d509,subUnitId:_0x5f1e02,pivotTableId:_0x3a6ca7,fieldId:_0x2f6a64,area:_0x496be0,index:_0x45bb4c}=_0x44d358;this['fireEvent'](this['Event'][_0x5841ff(0x22a)],{'unitId':_0x48d509,'subUnitId':_0x5f1e02,'pivotTableId':_0x3a6ca7,'fieldId':_0x2f6a64,'area':_0x496be0,'index':_0x45bb4c});}}[_0x1262d9(0x235)](_0x52a66d){const _0x69d831=_0x1262d9;if(_0x52a66d){const {unitId:_0x3a6c33,subUnitId:_0x37a0f3,row:_0x4e3e94,col:_0x261f84,collapse:_0x46ed9c}=_0x52a66d;this[_0x69d831(0x1db)](this[_0x69d831(0x242)][_0x69d831(0x1f9)],{'unitId':_0x3a6c33,'subUnitId':_0x37a0f3,'row':_0x4e3e94,'col':_0x261f84,'collapse':_0x46ed9c});}}[_0x1262d9(0x224)](_0x24a27c){const _0x201e6e=_0x1262d9;if(_0x24a27c){const {unitId:_0x2a2fae,subUnitId:_0xf3902a,pivotTableId:_0x7b1a27,tableFieldId:_0xefbf63,items:_0x51b9e2,isAll:_0x13d1c0}=_0x24a27c;this[_0x201e6e(0x1db)](this[_0x201e6e(0x242)][_0x201e6e(0x250)],{'unitId':_0x2a2fae,'subUnitId':_0xf3902a,'pivotTableId':_0x7b1a27,'tableFieldId':_0xefbf63,'items':_0x51b9e2[_0x201e6e(0x206)](),'isAll':_0x13d1c0});}}['_firePivotTableFieldSortChangedEvent'](_0x1b0699){const _0x2a6e3f=_0x1262d9;if(_0x1b0699){const {unitId:_0x2a31ef,subUnitId:_0x45dd69,pivotTableId:_0x40913d,tableFieldId:_0x16e384,info:_0x50bd13}=_0x1b0699;this[_0x2a6e3f(0x1db)](this[_0x2a6e3f(0x242)][_0x2a6e3f(0x1b8)],{'unitId':_0x2a31ef,'subUnitId':_0x45dd69,'pivotTableId':_0x40913d,'tableFieldId':_0x16e384,'info':{..._0x50bd13}});}}[_0x1262d9(0x286)](_0x23f652){const _0x2018cb=_0x1262d9;if(_0x23f652){const {unitId:_0x5549d0,subUnitId:_0x5932fc,tableFieldId:_0x3585c0,pivotTableId:_0x11d886,displayName:_0x359020,format:_0x4cb5d9,subtotalType:_0x14f8cf,tableFieldInfo:_0x4df17d,dataFieldInfo:_0x81be05}=_0x23f652;this[_0x2018cb(0x1db)](this[_0x2018cb(0x242)][_0x2018cb(0x1b7)],{'unitId':_0x5549d0,'subUnitId':_0x5932fc,'tableFieldId':_0x3585c0,'pivotTableId':_0x11d886,'displayName':_0x359020,'format':_0x4cb5d9,'subtotalType':_0x14f8cf,'tableFieldInfo':_0x4df17d,'dataFieldInfo':_0x81be05});}}[_0x1262d9(0x1c7)](_0x16abee){const _0x2aa033=_0x1262d9;if(_0x16abee){const {pivotTableId:_0x3a9ea5,position:_0x3f0d45,index:_0x2eca6c}=_0x16abee;this[_0x2aa033(0x1db)](this[_0x2aa033(0x242)][_0x2aa033(0x25d)],{'pivotTableId':_0x3a9ea5,'position':_0x3f0d45,'index':_0x2eca6c});}}['_fireAddPivotTableEvent'](_0x544e09){const _0xd8823c=_0x1262d9;if(_0x544e09){const {positionType:_0x260fbe,pivotTableId:_0x2ab525,pivotTableConfig:_0x46bafc}=_0x544e09,{targetCellInfo:_0xd531f9,sourceRangeInfo:_0x3b25f8}=_0x46bafc,{unitId:_0x180b4a}=_0xd531f9;this[_0xd8823c(0x1db)](this[_0xd8823c(0x242)]['PivotTableAdded'],{'unitId':_0x180b4a,'positionType':_0x260fbe,'pivotTableId':_0x2ab525,'sourceRangeInfo':{'startRow':_0x3b25f8[_0xd8823c(0x240)][_0xd8823c(0x1c5)],'endRow':_0x3b25f8[_0xd8823c(0x240)][_0xd8823c(0x1eb)],'startColumn':_0x3b25f8['range'][_0xd8823c(0x19c)],'endColumn':_0x3b25f8[_0xd8823c(0x240)][_0xd8823c(0x27f)],'unitId':_0x3b25f8[_0xd8823c(0x274)],'subUnitId':_0x3b25f8[_0xd8823c(0x280)],'sheetName':_0x3b25f8[_0xd8823c(0x220)]},'targetCellInfo':{'row':_0xd531f9['row'],'column':_0xd531f9['col'],'sheetName':_0xd531f9['sheetName'],'unitId':_0xd531f9[_0xd8823c(0x274)],'subUnitId':_0xd531f9[_0xd8823c(0x280)]}});}}[_0x1262d9(0x26f)](_0x4a2d49){const _0x20dd3d=_0x1262d9;if(_0x4a2d49){const {positionType:_0x319fb9,pivotTableId:_0x46aa76,pivotTableConfig:_0x5467c2}=_0x4a2d49,{targetCellInfo:_0x4361af,sourceRangeInfo:_0x1e6718}=_0x5467c2,{unitId:_0xdf6191}=_0x4361af,_0xdce92b={'unitId':_0xdf6191,'positionType':_0x319fb9,'pivotTableId':_0x46aa76,'sourceRangeInfo':{'startRow':_0x1e6718[_0x20dd3d(0x240)][_0x20dd3d(0x1c5)],'endRow':_0x1e6718['range']['endRow'],'startColumn':_0x1e6718[_0x20dd3d(0x240)][_0x20dd3d(0x19c)],'endColumn':_0x1e6718['range'][_0x20dd3d(0x27f)],'unitId':_0x1e6718[_0x20dd3d(0x274)],'subUnitId':_0x1e6718[_0x20dd3d(0x280)],'sheetName':_0x1e6718['sheetName']},'targetCellInfo':{'row':_0x4361af[_0x20dd3d(0x24d)],'column':_0x4361af[_0x20dd3d(0x1fa)],'sheetName':_0x4361af[_0x20dd3d(0x220)],'unitId':_0x4361af['unitId'],'subUnitId':_0x4361af[_0x20dd3d(0x280)]},'cancel':!0x1};if(this[_0x20dd3d(0x1db)](this[_0x20dd3d(0x242)]['BeforePivotTableAdd'],_0xdce92b),_0xdce92b['cancel'])throw new Error(_0x20dd3d(0x19a));}}[_0x1262d9(0x1a5)](_0x19a196){const _0x2f448c=_0x1262d9;if(_0x19a196){const {unitId:_0x1d0ae8,pivotTableId:_0x33802b}=_0x19a196;this[_0x2f448c(0x1db)](this[_0x2f448c(0x242)][_0x2f448c(0x1b0)],{'unitId':_0x1d0ae8,'pivotTableId':_0x33802b});}}['_fireBeforeMovePivotTableEvent'](_0x364ef4){const _0x3b8b07=_0x1262d9;if(_0x364ef4){const {originTargetInfo:_0x18cdb3,pivotTableId:_0x5db774,targetCellInfo:_0x532e40}=_0x364ef4,{unitId:_0x13752c}=_0x18cdb3,_0x2368d0=this['_injector'][_0x3b8b07(0x229)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](_0x18cdb3[_0x3b8b07(0x274)],_0x18cdb3[_0x3b8b07(0x280)],_0x5db774);if(!_0x2368d0)return;const _0x3d182b={'unitId':_0x13752c,'pivotTableId':_0x5db774,'originTargetInfo':{'row':_0x2368d0[_0x3b8b07(0x238)]['row'],'column':_0x2368d0[_0x3b8b07(0x238)][_0x3b8b07(0x1fa)],'unitId':_0x2368d0[_0x3b8b07(0x238)][_0x3b8b07(0x274)],'subUnitId':_0x2368d0[_0x3b8b07(0x238)][_0x3b8b07(0x280)]},'targetCellInfo':{'row':_0x532e40[_0x3b8b07(0x24d)],'column':_0x532e40[_0x3b8b07(0x1fa)],'unitId':_0x532e40[_0x3b8b07(0x274)],'subUnitId':_0x532e40[_0x3b8b07(0x280)]},'cancel':!0x1};if(this[_0x3b8b07(0x1db)](this[_0x3b8b07(0x242)][_0x3b8b07(0x234)],_0x3d182b),_0x3d182b[_0x3b8b07(0x1be)])throw new Error(_0x3b8b07(0x24e));}}['_fireMovedPivotTableEvent'](_0x9626da){const _0x982f19=_0x1262d9;if(_0x9626da){const {originTargetInfo:_0x2c950f,pivotTableId:_0x2fdc53,targetCellInfo:_0x4ff925}=_0x9626da,{unitId:_0x2ddbd7}=_0x2c950f,_0x34afc6=this[_0x982f19(0x276)]['get'](l[_0x982f19(0x24c)])[_0x982f19(0x1cc)](_0x2c950f[_0x982f19(0x274)],_0x2c950f[_0x982f19(0x280)],_0x2fdc53);if(!_0x34afc6)return;this[_0x982f19(0x1db)](this[_0x982f19(0x242)]['PivotTableMoved'],{'unitId':_0x2ddbd7,'pivotTableId':_0x2fdc53,'originTargetInfo':{'row':_0x34afc6['targetCellInfo']['row'],'column':_0x34afc6[_0x982f19(0x238)][_0x982f19(0x1fa)],'unitId':_0x34afc6[_0x982f19(0x238)][_0x982f19(0x274)],'subUnitId':_0x34afc6['targetCellInfo'][_0x982f19(0x280)]},'targetCellInfo':{'row':_0x4ff925[_0x982f19(0x24d)],'column':_0x4ff925[_0x982f19(0x1fa)],'unitId':_0x4ff925[_0x982f19(0x274)],'subUnitId':_0x4ff925[_0x982f19(0x280)]}});}}[_0x1262d9(0x1f8)](_0x3ebf5a){const _0x152615=_0x1262d9;if(_0x3ebf5a){const {unitId:_0x5892b5,subUnitId:_0x552e71,pivotTableId:_0x51594d,type:_0x44b583,rangesCache:_0x1d7aa4,isEmpty:_0x2d90f2}=_0x3ebf5a;this[_0x152615(0x1db)](this['Event'][_0x152615(0x1ae)],{'unitId':_0x5892b5,'subUnitId':_0x552e71,'pivotTableId':_0x51594d,'changeType':_0x44b583,'isEmpty':!!_0x2d90f2,'rangeInfo':_0x1d7aa4});}}['generatePivotTable'](_0x2e9d2c,_0x42c7d8){const _0x554edc=_0x1262d9,_0x47bd76=(_0x42c7d8?new _0x42c7d8():new ve())['createCollection'](_0x554edc(0x1cd),_0x2e9d2c),_0x366af1=_0x2e9d2c[0x0];_0x47bd76[_0x554edc(0x278)]()[_0x554edc(0x1c4)]((_0x45d908,_0xb92e14)=>{const _0x125928=_0x554edc;_0x47bd76[_0x125928(0x200)](_0x45d908,_0x366af1[_0xb92e14]);});const _0x8b54a=r[_0x554edc(0x1d9)](0x8),_0x43c7c1=new r[(_0x554edc(0x1e3))](_0x47bd76,void 0x0,_0x8b54a);return new re(this[_0x554edc(0x276)],_0x43c7c1,_0x2e9d2c,_0x8b54a);}}function _0x3b25(_0x3ba303,_0xa7bea5){const _0x5f3dc7=_0x5f3d();return _0x3b25=function(_0x3b2589,_0x123648){_0x3b2589=_0x3b2589-0x196;let _0x21ff37=_0x5f3dc7[_0x3b2589];return _0x21ff37;},_0x3b25(_0x3ba303,_0xa7bea5);}A[_0x1262d9(0x1a1)]['extend'](ce);