@univerjs-pro/sheets-pivot 0.9.2-nightly.202507121606 → 0.9.2-nightly.202507141607

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.
Files changed (43) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ko-KR.js +1 -1
  7. package/lib/cjs/locale/ru-RU.js +1 -1
  8. package/lib/cjs/locale/vi-VN.js +1 -1
  9. package/lib/cjs/locale/zh-CN.js +1 -1
  10. package/lib/cjs/locale/zh-TW.js +1 -1
  11. package/lib/es/facade.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/en-US.js +1 -1
  14. package/lib/es/locale/fa-IR.js +1 -1
  15. package/lib/es/locale/fr-FR.js +1 -1
  16. package/lib/es/locale/ko-KR.js +1 -1
  17. package/lib/es/locale/ru-RU.js +1 -1
  18. package/lib/es/locale/vi-VN.js +1 -1
  19. package/lib/es/locale/zh-CN.js +1 -1
  20. package/lib/es/locale/zh-TW.js +1 -1
  21. package/lib/facade.js +1 -1
  22. package/lib/index.js +1 -1
  23. package/lib/locale/en-US.js +1 -1
  24. package/lib/locale/fa-IR.js +1 -1
  25. package/lib/locale/fr-FR.js +1 -1
  26. package/lib/locale/ko-KR.js +1 -1
  27. package/lib/locale/ru-RU.js +1 -1
  28. package/lib/locale/vi-VN.js +1 -1
  29. package/lib/locale/zh-CN.js +1 -1
  30. package/lib/locale/zh-TW.js +1 -1
  31. package/lib/types/common/const.d.ts +41 -41
  32. package/lib/types/controllers/const.d.ts +1 -1
  33. package/lib/umd/facade.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/en-US.js +1 -1
  36. package/lib/umd/locale/fa-IR.js +1 -1
  37. package/lib/umd/locale/fr-FR.js +1 -1
  38. package/lib/umd/locale/ko-KR.js +1 -1
  39. package/lib/umd/locale/ru-RU.js +1 -1
  40. package/lib/umd/locale/vi-VN.js +1 -1
  41. package/lib/umd/locale/zh-CN.js +1 -1
  42. package/lib/umd/locale/zh-TW.js +1 -1
  43. package/package.json +9 -9
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x24c534=_0x3059;(function(_0x154e6d,_0x1de15a){const _0x4e091c=_0x3059,_0x4ed6f0=_0x154e6d();while(!![]){try{const _0x494a79=parseInt(_0x4e091c(0x237))/0x1+parseInt(_0x4e091c(0x1e6))/0x2+parseInt(_0x4e091c(0x1ff))/0x3*(parseInt(_0x4e091c(0x1e1))/0x4)+parseInt(_0x4e091c(0x1de))/0x5+parseInt(_0x4e091c(0x176))/0x6+-parseInt(_0x4e091c(0x206))/0x7+-parseInt(_0x4e091c(0x1b2))/0x8;if(_0x494a79===_0x1de15a)break;else _0x4ed6f0['push'](_0x4ed6f0['shift']());}catch(_0x3fab89){_0x4ed6f0['push'](_0x4ed6f0['shift']());}}}(_0x5313,0x1dce0));var ee=Object[_0x24c534(0x1e3)],te=(_0x2fed0f,_0xe357b8,_0x4f4ae1)=>_0xe357b8 in _0x2fed0f?ee(_0x2fed0f,_0xe357b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f4ae1}):_0x2fed0f[_0xe357b8]=_0x4f4ae1,y=(_0x4e825b,_0x3d2b52,_0x1bfe91)=>te(_0x4e825b,typeof _0x3d2b52!=_0x24c534(0x185)?_0x3d2b52+'':_0x3d2b52,_0x1bfe91);const r=require('@univerjs-pro/engine-pivot'),l=require('@univerjs-pro/sheets-pivot'),m=require('@univerjs/core'),R=require('@univerjs/sheets/facade'),A=require('@univerjs/core/facade'),ie=require('rxjs');class x{constructor(_0x45c64d,_0x1d13d3,_0x9657fc,_0x5ac28b){const _0x5c3184=_0x24c534;y(this,'unitId'),y(this,_0x5c3184(0x1d1)),y(this,_0x5c3184(0x1b5)),y(this,_0x5c3184(0x1a7)),(this[_0x5c3184(0x1fd)]=_0x45c64d,this[_0x5c3184(0x1d1)]=_0x1d13d3,this[_0x5c3184(0x1b5)]=_0x9657fc,this[_0x5c3184(0x1a7)]=_0x5ac28b);}[_0x24c534(0x195)](){const _0x5a478f=_0x24c534;return this[_0x5a478f(0x1a7)][_0x5a478f(0x1e4)](l[_0x5a478f(0x1fe)])[_0x5a478f(0x1b4)](this[_0x5a478f(0x1fd)],this[_0x5a478f(0x1d1)],this[_0x5a478f(0x1b5)]);}[_0x24c534(0x21f)](_0x54b916){const _0x20f65d=_0x24c534,_0x4b345d=this[_0x20f65d(0x1a7)]['get'](m[_0x20f65d(0x1dc)]),_0x4f20da={'unitId':this[_0x20f65d(0x1fd)],'subUnitId':this[_0x20f65d(0x1d1)],'pivotTableId':this[_0x20f65d(0x1b5)],'pivotTableConfig':_0x54b916};return _0x4b345d['executeCommand'](l[_0x20f65d(0x1ba)]['id'],_0x4f20da);}[_0x24c534(0x1e5)](_0x4396fe){const _0x431b23=_0x24c534,_0x4658fe=this[_0x431b23(0x1a7)][_0x431b23(0x1e4)](m[_0x431b23(0x1dc)]),_0xad2b0={'unitId':this[_0x431b23(0x1fd)],'subUnitId':this[_0x431b23(0x1d1)],'pivotTableId':this['pivotTableId'],'resetArea':_0x4396fe};return _0x4658fe[_0x431b23(0x18b)](l[_0x431b23(0x1da)]['id'],_0xad2b0);}['getPivotTableId'](){return this['pivotTableId'];}['getFieldSetting'](_0x2f38cd){const _0x3d9f0c=_0x24c534,_0x416b0e=this[_0x3d9f0c(0x1a7)][_0x3d9f0c(0x1e4)](l[_0x3d9f0c(0x1fe)])[_0x3d9f0c(0x1b4)](this['unitId'],this[_0x3d9f0c(0x1d1)],this['pivotTableId']),_0x3c72f0=_0x416b0e==null?void 0x0:_0x416b0e[_0x3d9f0c(0x23f)];if(_0x3c72f0)return _0x3c72f0['dimension'][_0x2f38cd]||_0x3c72f0[_0x3d9f0c(0x194)][_0x2f38cd];}[_0x24c534(0x178)](){const _0x33b084=_0x24c534,_0xc8db3a=this['_injector'],_0x4eb6dc=this[_0x33b084(0x1fd)],_0x3c2ed3=this['pivotTableId'],_0x12d3d6=_0xc8db3a[_0x33b084(0x1e4)](l[_0x33b084(0x1fe)])['getCollection'](_0x4eb6dc,_0x3c2ed3);if(_0x12d3d6){const _0x1e3dbc=_0x12d3d6[_0x33b084(0x20c)],_0x2d4449=_0x12d3d6[_0x33b084(0x19b)],_0x4f23a4=_0x12d3d6['displayNameRecord'],_0x21a383=[];for(const _0x3e1835 of _0x1e3dbc){const _0xf1e915=_0x2d4449[_0x3e1835];if(_0xf1e915){const _0x143277={'id':_0x3e1835,'name':_0xf1e915['name'],'fieldDataType':_0xf1e915['fieldDataType']};_0x4f23a4&&_0x4f23a4[_0x3e1835]!==void 0x0&&(_0x143277['displayName']=_0x4f23a4[_0x3e1835]),_0x21a383[_0x33b084(0x17b)](_0x143277);}}return _0x21a383;}return[];}[_0x24c534(0x173)](_0x261827){const _0x5132db=_0x24c534;var _0x550290;const _0x30c931=this[_0x5132db(0x1a7)]['get'](l[_0x5132db(0x1fe)])['getPivotTableConfig'](this[_0x5132db(0x1fd)],this[_0x5132db(0x1d1)],this[_0x5132db(0x1b5)]),_0x403c9a=_0x30c931==null?void 0x0:_0x30c931[_0x5132db(0x23f)][_0x5132db(0x246)];return(_0x550290=_0x403c9a==null?void 0x0:_0x403c9a[_0x5132db(0x1f4)](_0x4037ff=>_0x4037ff[_0x5132db(0x1f6)]===_0x261827))==null?void 0x0:_0x550290[_0x5132db(0x22b)];}[_0x24c534(0x196)](){const _0xf2771d=_0x24c534,_0x204897=this['_injector'][_0xf2771d(0x1e4)](l[_0xf2771d(0x1fe)])[_0xf2771d(0x1b4)](this['unitId'],this[_0xf2771d(0x1d1)],this[_0xf2771d(0x1b5)]),_0x1d698c=_0x204897==null?void 0x0:_0x204897[_0xf2771d(0x23f)][_0xf2771d(0x246)];return(_0x1d698c==null?void 0x0:_0x1d698c[_0xf2771d(0x1be)]())||[];}['getFieldIdsByArea'](_0x3721ec){const _0x128d2d=_0x24c534,_0x524bf1=this['_injector']['get'](l[_0x128d2d(0x1fe)])[_0x128d2d(0x1b4)](this[_0x128d2d(0x1fd)],this[_0x128d2d(0x1d1)],this[_0x128d2d(0x1b5)]),_0x7b5e1a=_0x524bf1==null?void 0x0:_0x524bf1[_0x128d2d(0x23f)];if(_0x7b5e1a)switch(_0x3721ec){case r[_0x128d2d(0x17f)][_0x128d2d(0x190)]:return _0x7b5e1a['columnFields'][_0x128d2d(0x1be)]();case r[_0x128d2d(0x17f)]['Row']:return _0x7b5e1a[_0x128d2d(0x1c3)][_0x128d2d(0x1be)]();case r[_0x128d2d(0x17f)][_0x128d2d(0x199)]:return _0x7b5e1a[_0x128d2d(0x1fb)][_0x128d2d(0x1be)]();case r['PivotTableFiledAreaEnum']['Filter']:return _0x7b5e1a[_0x128d2d(0x213)]['concat']();case r[_0x128d2d(0x17f)][_0x128d2d(0x1b7)]:return _0x7b5e1a['hiddenFields'][_0x128d2d(0x1be)]();}return[];}['getPivotTableRangeInfo'](){const _0x2e5412=_0x24c534;var _0x24c563;const _0x58eeea=(_0x24c563=this[_0x2e5412(0x1a7)][_0x2e5412(0x1e4)](l[_0x2e5412(0x1fe)])['getPivotTableRangeInfo'](this[_0x2e5412(0x1fd)],this[_0x2e5412(0x1d1)],this[_0x2e5412(0x1b5)]))==null?void 0x0:_0x24c563[_0x2e5412(0x1c4)];if(_0x58eeea)return l[_0x2e5412(0x1e0)](_0x58eeea);}async[_0x24c534(0x21b)](){const _0x5162d5=_0x24c534;return await this[_0x5162d5(0x1a7)][_0x5162d5(0x1e4)](m['ICommandService'])['syncExecuteCommand'](l[_0x5162d5(0x161)]['id'],{'unitId':this[_0x5162d5(0x1fd)],'subUnitId':this[_0x5162d5(0x1d1)],'pivotTableId':this[_0x5162d5(0x1b5)]});}async['addField'](_0x5263eb,_0x25be4b,_0x4a23e8){const _0x3362b3=_0x24c534,_0x38b3d2=this[_0x3362b3(0x1a7)],_0xf4d4f4=this[_0x3362b3(0x1fd)],_0x24a61d=this['subUnitId'],_0x34b502=this[_0x3362b3(0x1b5)],_0x205cd6=_0x38b3d2[_0x3362b3(0x1e4)](m[_0x3362b3(0x1dc)]),_0x1e81b9=_0x38b3d2[_0x3362b3(0x1e4)](l[_0x3362b3(0x1fe)]),_0x514751=_0x1e81b9[_0x3362b3(0x1b4)](_0xf4d4f4,_0x24a61d,_0x34b502),_0x18d31d=_0x1e81b9[_0x3362b3(0x21d)](_0xf4d4f4,_0x34b502);if(!_0x514751||!_0x18d31d)return!0x1;let _0x4e725f=_0x5263eb;typeof _0x4e725f==_0x3362b3(0x1ef)&&(_0x4e725f=_0x1e81b9[_0x3362b3(0x21d)](_0xf4d4f4,_0x34b502)[_0x3362b3(0x20c)][_0x5263eb]);const _0x97b275={'unitId':_0xf4d4f4,'subUnitId':_0x24a61d,'pivotTableId':_0x34b502,'dataFieldId':_0x4e725f,'fieldArea':_0x25be4b,'index':_0x4a23e8};return _0x205cd6['executeCommand'](l['AddPivotFieldCommand']['id'],_0x97b275);}async['removeField'](_0x21b069){const _0x2119ee=_0x24c534,_0xeb7459=this['_injector'],_0x46f423=this[_0x2119ee(0x1fd)],_0x3665e4=this['subUnitId'],_0x5e578e=this[_0x2119ee(0x1b5)],_0x565c6e=_0xeb7459[_0x2119ee(0x1e4)](m[_0x2119ee(0x1dc)]),_0x8c1398={'unitId':_0x46f423,'subUnitId':_0x3665e4,'pivotTableId':_0x5e578e,'fieldIds':_0x21b069};return _0x565c6e[_0x2119ee(0x18b)](l[_0x2119ee(0x1a2)]['id'],_0x8c1398);}async[_0x24c534(0x215)](_0x47f570,_0x2ed757,_0x32ac48){const _0x2b5e7e=_0x24c534,_0x527390=this[_0x2b5e7e(0x1a7)],_0x10e207=this[_0x2b5e7e(0x1fd)],_0x5bca05=this[_0x2b5e7e(0x1d1)],_0x10581e=this[_0x2b5e7e(0x1b5)],_0x52f95c=_0x527390[_0x2b5e7e(0x1e4)](m[_0x2b5e7e(0x1dc)]),_0x593aae={'unitId':_0x10e207,'subUnitId':_0x5bca05,'pivotTableId':_0x10581e,'fieldId':_0x47f570,'area':_0x2ed757,'index':_0x32ac48};return _0x52f95c[_0x2b5e7e(0x18b)](l[_0x2b5e7e(0x16f)]['id'],_0x593aae);}async[_0x24c534(0x1d0)](_0x5bfb13,_0x4a3217){const _0x335bff=_0x24c534,_0x39b976=this[_0x335bff(0x1a7)],_0x48c94b=this[_0x335bff(0x1fd)],_0x24f5c9=this[_0x335bff(0x1d1)],_0x5a9929=this['pivotTableId'],_0x5acb89=_0x39b976[_0x335bff(0x1e4)](m[_0x335bff(0x1dc)]),_0x4492ce={'unitId':_0x48c94b,'subUnitId':_0x24f5c9,'pivotTableId':_0x5a9929,'position':_0x5bfb13,'index':_0x4a3217};return _0x5acb89[_0x335bff(0x18b)](l[_0x335bff(0x234)]['id'],_0x4492ce);}async[_0x24c534(0x18a)](_0x6c32e8,_0x170f47){const _0x404547=_0x24c534,_0xaa7ab4=this[_0x404547(0x1a7)],_0x3efc76=this[_0x404547(0x1fd)],_0x2ff921=this['subUnitId'],_0x44079b=this[_0x404547(0x1b5)],_0xc77672=_0xaa7ab4['get'](m[_0x404547(0x1dc)]),_0x3c3551={'unitId':_0x3efc76,'subUnitId':_0x2ff921,'pivotTableId':_0x44079b,'fieldId':_0x6c32e8,'subtotalType':_0x170f47};return _0xc77672[_0x404547(0x18b)](l[_0x404547(0x1d6)]['id'],_0x3c3551);}async[_0x24c534(0x240)](_0x1356a2,_0x217d8e){const _0x25b5bf=_0x24c534,_0x17aff8=this[_0x25b5bf(0x1a7)],_0x2ce941=this['unitId'],_0x2c8a87=this[_0x25b5bf(0x1d1)],_0x4fcc97=this[_0x25b5bf(0x1b5)],_0x1b36b0=_0x17aff8[_0x25b5bf(0x1e4)](m[_0x25b5bf(0x1dc)]),_0x402771={'unitId':_0x2ce941,'subUnitId':_0x2c8a87,'tableFieldId':_0x1356a2,'pivotTableId':_0x4fcc97,'info':_0x217d8e};return _0x1b36b0[_0x25b5bf(0x18b)](l[_0x25b5bf(0x183)]['id'],_0x402771);}async[_0x24c534(0x22a)](_0x1823ec,_0x1eb0b9,_0x3accba){const _0x22dab9=_0x24c534,_0xc04d21=this[_0x22dab9(0x1a7)],_0x4d2891=this[_0x22dab9(0x1fd)],_0x2c146e=this['subUnitId'],_0xfe8ae4=this[_0x22dab9(0x1b5)],_0x40c039=_0xc04d21[_0x22dab9(0x1e4)](m[_0x22dab9(0x1dc)]),_0x20bd56={'unitId':_0x4d2891,'subUnitId':_0x2c146e,'pivotTableId':_0xfe8ae4,'tableFieldId':_0x1823ec,'items':_0x1eb0b9,'isAll':_0x3accba};return _0x40c039[_0x22dab9(0x18b)](l['SetPivotFilterCommand']['id'],_0x20bd56);}async[_0x24c534(0x181)](_0x35e8fb,_0xc9176e){const _0x4b76b9=_0x24c534,_0x216df4=this[_0x4b76b9(0x1a7)],_0x32526d=this['unitId'],_0x472fad=this['subUnitId'],_0x14392b=this[_0x4b76b9(0x1b5)],_0x24e69a=_0x216df4[_0x4b76b9(0x1e4)](m['ICommandService']);if(_0x35e8fb===void 0x0)return console['warn'](_0x4b76b9(0x1cf)),!0x1;const _0x308a21=_0xc9176e&&{..._0xc9176e,'type':r[_0x4b76b9(0x245)][_0x4b76b9(0x17c)]},_0xe60737={'unitId':_0x32526d,'subUnitId':_0x472fad,'pivotTableId':_0x14392b,'fieldId':_0x35e8fb,'valueFilterInfo':_0x308a21};return _0x24e69a[_0x4b76b9(0x18b)](l['SetPivotValueFilterCommand']['id'],_0xe60737);}async[_0x24c534(0x186)](_0x55e815,_0x43b5f2){const _0x3ea0c8=_0x24c534,_0x113ae2=this['_injector'],_0x368edc=this[_0x3ea0c8(0x1fd)],_0x35ebec=this[_0x3ea0c8(0x1d1)],_0xb81c9f=this[_0x3ea0c8(0x1b5)],_0xd52525=_0x113ae2[_0x3ea0c8(0x1e4)](m['ICommandService']),_0x18e7ea={'unitId':_0x368edc,'subUnitId':_0x35ebec,'pivotTableId':_0xb81c9f,'fieldId':_0x55e815,'name':_0x43b5f2};return _0xd52525[_0x3ea0c8(0x18b)](l[_0x3ea0c8(0x184)]['id'],_0x18e7ea);}async[_0x24c534(0x229)](_0x450c41,_0x4c2c0a,_0xb774c9){const _0x3682c3=_0x24c534,_0x50ca6a=this[_0x3682c3(0x1a7)][_0x3682c3(0x1e4)](m[_0x3682c3(0x1dc)]),_0x2bc289=this['_injector'][_0x3682c3(0x1e4)](m[_0x3682c3(0x1b9)])['getUnit'](this[_0x3682c3(0x1fd)]),_0x5eb390=_0x2bc289==null?void 0x0:_0x2bc289[_0x3682c3(0x233)](_0x450c41);if(!_0x2bc289||!_0x5eb390)throw new Error(_0x3682c3(0x1aa));return _0x50ca6a['executeCommand'](l['MovePivotTableCommand']['id'],{'pivotTableId':this[_0x3682c3(0x1b5)],'targetCellInfo':{'subUnitId':_0x5eb390['getSheetId'](),'unitId':this[_0x3682c3(0x1fd)],'row':_0x4c2c0a,'col':_0xb774c9},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x3682c3(0x1fd)]}});}async[_0x24c534(0x202)](_0x31bd8f,_0x636a8b){const _0x4163b6=_0x24c534,_0x594ea6=this[_0x4163b6(0x1a7)],_0x2c8063=this[_0x4163b6(0x1fd)],_0x519177=this[_0x4163b6(0x1d1)],_0x22f6c7=this[_0x4163b6(0x1b5)],_0x39e07d=_0x594ea6[_0x4163b6(0x1e4)](m[_0x4163b6(0x1dc)]),_0x53eb21={'unitId':_0x2c8063,'subUnitId':_0x519177,'pivotTableId':_0x22f6c7,'tableFieldId':_0x31bd8f,'dateType':_0x636a8b};return _0x39e07d[_0x4163b6(0x18b)](l[_0x4163b6(0x23e)]['id'],_0x53eb21);}}class oe extends R[_0x24c534(0x197)]{async[_0x24c534(0x16b)](_0x3fee73,_0x557ebd,_0x5651bd){const _0x12bf01=_0x24c534,_0x14eea4=this[_0x12bf01(0x1a7)],_0x1c4e71=_0x14eea4[_0x12bf01(0x1e4)](m[_0x12bf01(0x1dc)]),_0x216ecb=r[_0x12bf01(0x20b)](0x8),_0x1d92e1={'positionType':_0x557ebd,'pivotTableId':_0x216ecb,'pivotTableConfig':{'targetCellInfo':_0x5651bd,'sourceRangeInfo':_0x3fee73,'isEmpty':!0x0}};if(await _0x1c4e71[_0x12bf01(0x18b)](l['AddPivotTableCommand']['id'],_0x1d92e1))return new x(_0x5651bd['unitId'],_0x5651bd[_0x12bf01(0x1d1)],_0x216ecb,_0x14eea4);}[_0x24c534(0x1a4)](_0x6dabcc,_0x5395e7,_0x57b2f8,_0x42cb90){const _0x54e701=_0x24c534,_0x4793ee=this[_0x54e701(0x1a7)],_0xe0e3f5=_0x4793ee[_0x54e701(0x1e4)](l[_0x54e701(0x1c9)])[_0x54e701(0x16a)](_0x6dabcc,_0x5395e7,_0x57b2f8,_0x42cb90);if(_0xe0e3f5)return new x(_0x6dabcc,_0x5395e7,_0xe0e3f5,_0x4793ee);}[_0x24c534(0x1bc)](_0x16d5ce){const _0x2a05af=_0x24c534,_0x3f306e=this['_injector'],_0x365852=_0x3f306e[_0x2a05af(0x1e4)](l[_0x2a05af(0x1fe)])['getTargetByPivotTableId'](this[_0x2a05af(0x228)](),_0x16d5ce);if(_0x365852)return new x(_0x365852[_0x2a05af(0x1fd)],_0x365852[_0x2a05af(0x1d1)],_0x16d5ce,_0x3f306e);}}R[_0x24c534(0x197)][_0x24c534(0x1a8)](oe);class ne extends R['FWorksheet']{['getPivotTableByCell'](_0x1b7504,_0x37e27f){const _0x26b23f=_0x24c534,_0x660651=this['_injector'],_0x3a57f5=_0x660651[_0x26b23f(0x1e4)](l[_0x26b23f(0x1c9)]),_0x3f3cb6=this['_workbook'][_0x26b23f(0x23a)](),_0x4a144f=this[_0x26b23f(0x1bd)](),_0x198b58=_0x3a57f5[_0x26b23f(0x16a)](_0x3f3cb6,_0x4a144f,_0x1b7504,_0x37e27f);if(_0x198b58)return new x(_0x3f3cb6,_0x4a144f,_0x198b58,_0x660651);}}function _0x3059(_0x36eec6,_0x1c2daa){const _0x5313c3=_0x5313();return _0x3059=function(_0x305992,_0x414dad){_0x305992=_0x305992-0x15f;let _0xd386e6=_0x5313c3[_0x305992];return _0xd386e6;},_0x3059(_0x36eec6,_0x1c2daa);}R[_0x24c534(0x23c)][_0x24c534(0x1a8)](ne);class ae extends A[_0x24c534(0x1df)]{get[_0x24c534(0x1db)](){const _0x45280a=_0x24c534;return r[_0x45280a(0x1db)];}get['PivotFilterTypeEnum'](){const _0x2b2d98=_0x24c534;return r[_0x2b2d98(0x245)];}get[_0x24c534(0x17f)](){return r['PivotTableFiledAreaEnum'];}get[_0x24c534(0x24a)](){const _0xb97d10=_0x24c534;return r[_0xb97d10(0x24a)];}get[_0x24c534(0x198)](){const _0x4fa21b=_0x24c534;return r[_0x4fa21b(0x198)];}get['PivotDataFieldSortTypeEnum'](){const _0x152757=_0x24c534;return r[_0x152757(0x1d9)];}get[_0x24c534(0x180)](){const _0x5afe57=_0x24c534;return r[_0x5afe57(0x180)];}get[_0x24c534(0x166)](){const _0x45a371=_0x24c534;return r[_0x45a371(0x21a)];}get['PositionTypeEnum'](){const _0x5fd16a=_0x24c534;return l[_0x5fd16a(0x22d)];}get['PivotTableChangeTypeEnum'](){const _0x339c92=_0x24c534;return r[_0x339c92(0x1cc)];}get[_0x24c534(0x191)](){const _0x37b74f=_0x24c534;return r[_0x37b74f(0x191)];}}A['FEnum'][_0x24c534(0x1a8)](ae);class se extends A[_0x24c534(0x205)]{get[_0x24c534(0x18c)](){const _0x1a8411=_0x24c534;return _0x1a8411(0x18c);}get[_0x24c534(0x1f8)](){const _0x52a1c0=_0x24c534;return _0x52a1c0(0x1f8);}get[_0x24c534(0x1d7)](){return'PivotTableRemoved';}get[_0x24c534(0x182)](){const _0x47dc1a=_0x24c534;return _0x47dc1a(0x182);}get['PivotTableRendered'](){return'PivotTableRendered';}get['PivotTableFieldAdded'](){const _0xecbf6a=_0x24c534;return _0xecbf6a(0x177);}get[_0x24c534(0x16e)](){const _0x32194e=_0x24c534;return _0x32194e(0x16e);}get[_0x24c534(0x208)](){return'PivotTableFieldMoved';}get['PivotTableFieldCollapseChanged'](){const _0x4f0c11=_0x24c534;return _0x4f0c11(0x20d);}get[_0x24c534(0x1ee)](){const _0x28e007=_0x24c534;return _0x28e007(0x1ee);}get[_0x24c534(0x21e)](){const _0xa94657=_0x24c534;return _0xa94657(0x21e);}get['PivotTableFieldSettingChanged'](){const _0x571f89=_0x24c534;return _0x571f89(0x15f);}get['PivotTableValuePositionChanged'](){return'PivotTableValuePositionChanged';}}A[_0x24c534(0x205)]['extend'](se);const Z=_0x24c534(0x189);function de(_0x3e72fe){return _0x3e72fe/0x3e8/0x15180+0x63e1;}function le(_0x3d7673,_0x444586,_0x445160,_0x14037a){const _0x521291=_0x24c534;var _0x5bc132,_0x4528cf,_0x4c63a1,_0x5b7e6f,_0x1c6a0d,_0x2a2a6e,_0x37e5fd,_0x24a852,_0x31882c,_0x2adbe0,_0x2ce07b,_0x1e102b,_0x340e92,_0x4f7dfd,_0x1582f7;const _0x179437=[],_0x56d1a2=[],_0x47db0c=[],{showRowGrandTotal:_0x34335b,showRowSubTotal:_0x31a800}=_0x14037a,{cornerView:_0x59ef29,colView:_0x376893,rowView:_0xdbbe9,dataView:_0x2467e7,formatMap:_0x34f816}=_0x444586,_0x658a5d=_0x59ef29[_0x521291(0x1ac)](),_0xe61211=_0x59ef29['getColCount']();for(let _0x1a6e27=0x0;_0x1a6e27<_0x658a5d;_0x1a6e27++)for(let _0xdfe0a4=0x0;_0xdfe0a4<_0xe61211;_0xdfe0a4++){const _0x3d0c05={...(_0x4528cf=(_0x5bc132=_0x59ef29[_0x521291(0x17d)])==null?void 0x0:_0x5bc132[_0x1a6e27])==null?void 0x0:_0x4528cf[_0xdfe0a4]};_0x3d0c05['v']&&(_0x179437[_0x1a6e27]||(_0x179437[_0x1a6e27]=[]),_0x47db0c[_0x1a6e27]||(_0x47db0c[_0x1a6e27]=[]),_0x179437[_0x1a6e27][_0xdfe0a4]=_0x3d0c05['v'],_0x47db0c[_0x1a6e27][_0xdfe0a4]=_0x3d0c05['v']);}for(let _0x2304d5=0x0;_0x2304d5<_0x376893[_0x521291(0x1ac)]();_0x2304d5++){const _0x4ae9ea=(_0x5b7e6f=(_0x4c63a1=_0x376893==null?void 0x0:_0x376893[_0x521291(0x1e2)])==null?void 0x0:_0x4c63a1[_0x2304d5])==null?void 0x0:_0x5b7e6f['tableFieldId'],_0x3ec257=_0x4ae9ea?_0x34f816[_0x4ae9ea]:'';for(let _0x5b271f=0x0;_0x5b271f<_0x376893[_0x521291(0x1c6)]();_0x5b271f++){const _0xf02761={...(_0x2a2a6e=(_0x1c6a0d=_0x376893[_0x521291(0x17d)])==null?void 0x0:_0x1c6a0d[_0x2304d5])==null?void 0x0:_0x2a2a6e[_0x5b271f]};if((_0xf02761==null?void 0x0:_0xf02761['v'])!==void 0x0){let _0x2f9d0b=_0x3ec257?m['numfmt'][_0x521291(0x1ec)](_0x3ec257,Number(_0xf02761['v'])):_0xf02761['v'];(_0xf02761==null?void 0x0:_0xf02761['s'])===r['PivotCellStyleTypeEnum'][_0x521291(0x19a)]?_0x2f9d0b=_0x445160?_0x521291(0x18f)+_0x2f9d0b:_0x521291(0x23b)+_0x2f9d0b:(_0xf02761==null?void 0x0:_0xf02761['s'])===r[_0x521291(0x17e)][_0x521291(0x1bb)]&&(_0x2f9d0b=_0x445160?_0x521291(0x192)+_0x2f9d0b:_0x521291(0x18d)+_0x2f9d0b),(_0xf02761==null?void 0x0:_0xf02761['t'])===r[_0x521291(0x1d8)][_0x521291(0x170)]&&(_0x2f9d0b=_0x445160?_0x521291(0x1a0):_0x521291(0x20e)),_0x179437[_0x2304d5]||(_0x179437[_0x2304d5]=[]),_0x47db0c[_0x2304d5]||(_0x47db0c[_0x2304d5]=[]),_0x179437[_0x2304d5][_0x5b271f+_0xe61211]=_0x2f9d0b,_0x47db0c[_0x2304d5][_0x5b271f+_0xe61211]=_0x2f9d0b;}}}let _0x3727f7=0x0,_0x1eb9f5=0x0,_0x35c28f=0x0;for(let _0x174138=0x0;_0x174138<_0xdbbe9[_0x521291(0x1ac)]();_0x174138++){const _0x570bdc=_0xdbbe9[_0x521291(0x1fa)][_0x174138];if(!_0x31a800&&_0x570bdc[_0x521291(0x164)]&&_0x570bdc[_0x521291(0x220)]!==0x0){_0x35c28f++,_0x1eb9f5=0x0;continue;}if(!(!_0x34335b&&_0x570bdc[_0x521291(0x164)]&&_0x570bdc[_0x521291(0x220)]===0x0)){for(let _0x34a8fd=0x0;_0x34a8fd<_0xdbbe9[_0x521291(0x1c6)]();_0x34a8fd++){const _0x535fb3={...(_0x24a852=(_0x37e5fd=_0xdbbe9[_0x521291(0x17d)])==null?void 0x0:_0x37e5fd[_0x174138])==null?void 0x0:_0x24a852[_0x34a8fd]},_0x560cc1=(_0x2adbe0=(_0x31882c=_0xdbbe9==null?void 0x0:_0xdbbe9[_0x521291(0x1e2)])==null?void 0x0:_0x31882c[_0x34a8fd])==null?void 0x0:_0x2adbe0[_0x521291(0x169)],_0x25fab5=_0x560cc1?_0x34f816[_0x560cc1]:'';if((_0x535fb3==null?void 0x0:_0x535fb3['v'])!==void 0x0){let _0x22dcf6=_0x25fab5?m[_0x521291(0x1c1)][_0x521291(0x1ec)](_0x25fab5,Number(_0x535fb3['v'])):_0x535fb3['v'];(_0x535fb3==null?void 0x0:_0x535fb3['s'])===r[_0x521291(0x17e)][_0x521291(0x19a)]?_0x22dcf6=_0x445160?_0x521291(0x18f)+_0x22dcf6:_0x521291(0x23b)+_0x22dcf6:(_0x535fb3==null?void 0x0:_0x535fb3['s'])===r[_0x521291(0x17e)][_0x521291(0x1bb)]&&(_0x22dcf6=_0x445160?_0x521291(0x192)+_0x22dcf6:_0x521291(0x18d)+_0x22dcf6),(_0x535fb3==null?void 0x0:_0x535fb3['t'])===r['PivotViewCellValueTypeEnum'][_0x521291(0x170)]&&(_0x22dcf6=_0x445160?_0x521291(0x1a0):_0x521291(0x20e)),_0x179437[_0x3727f7+_0x658a5d]||(_0x179437[_0x3727f7+_0x658a5d]=[]);let _0x87d0df=_0x56d1a2[_0x35c28f];_0x87d0df||(_0x87d0df=[..._0x47db0c],_0x56d1a2[_0x35c28f]=_0x87d0df),_0x87d0df[_0x1eb9f5+_0x658a5d]||(_0x87d0df[_0x1eb9f5+_0x658a5d]=[]),_0x87d0df[_0x1eb9f5+_0x658a5d][_0x34a8fd]=_0x22dcf6,_0x179437[_0x3727f7+_0x658a5d][_0x34a8fd]=_0x22dcf6;}}_0x3727f7++,_0xdbbe9[_0x521291(0x1fa)][_0x174138][_0x521291(0x164)]?(_0x35c28f++,_0x1eb9f5=0x0):_0x1eb9f5++;}}_0x3727f7=0x0,_0x35c28f=0x0,_0x1eb9f5=0x0;for(let _0x525b88=0x0;_0x525b88<_0x2467e7[_0x521291(0x1ac)]();_0x525b88++){const _0x4aec37=_0xdbbe9[_0x521291(0x1fa)][_0x525b88];if(!_0x31a800&&_0x4aec37[_0x521291(0x164)]&&_0x4aec37[_0x521291(0x220)]!==0x0){_0x35c28f++,_0x1eb9f5=0x0;continue;}if(!(!_0x34335b&&_0x4aec37[_0x521291(0x164)]&&_0x4aec37['level']===0x0)){for(let _0x4c1d33=0x0;_0x4c1d33<_0x2467e7[_0x521291(0x1c6)]();_0x4c1d33++){const _0x146c82={...(_0x1e102b=(_0x2ce07b=_0x2467e7[_0x521291(0x17d)])==null?void 0x0:_0x2ce07b[_0x525b88])==null?void 0x0:_0x1e102b[_0x4c1d33]};if(_0x146c82['v']){const _0x383fab=_0xdbbe9[_0x521291(0x1fa)][_0x525b88][_0x521291(0x243)],_0x4427d7=_0x376893['info'][_0x4c1d33][_0x521291(0x243)],_0x3ee664=Math[_0x521291(0x209)](_0x383fab,_0x4427d7),_0x3f5146=_0x3d7673[_0x521291(0x172)]()[_0x521291(0x1be)]();let _0x1645d5='';_0x3ee664<0x0?_0x1645d5=(_0x340e92=_0x3f5146[0x0])!=null?_0x340e92:'':_0x1645d5=(_0x4f7dfd=_0x3f5146[_0x3ee664])!=null?_0x4f7dfd:'';const _0x129398=(_0x1582f7=_0x34f816[_0x1645d5])!=null?_0x1582f7:'';_0x179437[_0x3727f7+_0x658a5d]||(_0x179437[_0x3727f7+_0x658a5d]=[]);let _0x1573d6=_0x56d1a2[_0x35c28f];_0x1573d6||(_0x1573d6=[..._0x47db0c],_0x56d1a2[_0x35c28f]=_0x1573d6),_0x1573d6[_0x1eb9f5+_0x658a5d]||(_0x1573d6[_0x1eb9f5+_0x658a5d]=[]);const _0x22001c=_0x129398?m[_0x521291(0x1c1)]['format'](_0x129398,Number(_0x146c82['v'])):_0x146c82['v'];_0x1573d6[_0x1eb9f5+_0x658a5d][_0x4c1d33+_0xe61211]=_0x22001c,_0x179437[_0x3727f7+_0x658a5d][_0x4c1d33+_0xe61211]=_0x22001c;}}_0x3727f7++,_0xdbbe9[_0x521291(0x1fa)][_0x525b88][_0x521291(0x164)]?(_0x35c28f++,_0x1eb9f5=0x0):_0x1eb9f5++;}}return{'dataArr':_0x179437,'dataArrWithSplit':_0x56d1a2};}class re{constructor(_0x476e77,_0x34dd9e,_0x2c5ff5,_0x1e9047){const _0x55ab1f=_0x24c534;y(this,_0x55ab1f(0x1b1)),y(this,_0x55ab1f(0x21c)),y(this,_0x55ab1f(0x1a7)),y(this,'_isZhCN'),y(this,_0x55ab1f(0x239)),(this[_0x55ab1f(0x1a7)]=_0x476e77,this[_0x55ab1f(0x1b1)]=_0x34dd9e,this[_0x55ab1f(0x21c)]=_0x2c5ff5,this[_0x55ab1f(0x239)]=_0x1e9047);const _0x458d09=this[_0x55ab1f(0x1a7)][_0x55ab1f(0x1e4)](m[_0x55ab1f(0x17a)]);this[_0x55ab1f(0x1f3)]=_0x458d09['getCurrentLocale']()===m['LocaleType']['ZH_CN'];}['_getSourceIdByName'](_0x43dec3){const _0x55add2=_0x24c534,_0x4a03f0=this[_0x55add2(0x1b1)][_0x55add2(0x241)](_0x43dec3);if(!_0x4a03f0)throw new Error(_0x55add2(0x227)+_0x43dec3+_0x55add2(0x1c8));return _0x4a03f0;}[_0x24c534(0x235)](_0x26d4f4,_0x36105a){const _0x3afe41=_0x24c534,_0x10ba95=this['_getSourceIdByName'](_0x26d4f4),_0x46813b=this['_pivot']['addFieldWithSourceId'](_0x10ba95,_0x36105a);if(!_0x46813b)throw new Error(_0x3afe41(0x165)+_0x26d4f4+_0x3afe41(0x1dd));if(_0x36105a===r[_0x3afe41(0x17f)]['Value']){const _0x2b9b64=_0x46813b[_0x3afe41(0x228)](),_0x2491c6=this[_0x3afe41(0x1b1)]['getDataFieldByTableId'](_0x2b9b64);if(_0x2491c6){const _0x46b800=_0x2491c6==null?void 0x0:_0x2491c6[_0x3afe41(0x221)]();this['_pivot'][_0x3afe41(0x18a)](_0x2b9b64,_0x46b800===r[_0x3afe41(0x198)][_0x3afe41(0x1ef)]?r[_0x3afe41(0x1db)]['sum']:r[_0x3afe41(0x1db)][_0x3afe41(0x22e)]);}const _0x3d00d4=this['_pivot'][_0x3afe41(0x1e7)](),_0x4d40ae=this[_0x3afe41(0x1b1)][_0x3afe41(0x1ad)](),_0x2bf087=this[_0x3afe41(0x1b1)][_0x3afe41(0x217)](r[_0x3afe41(0x17f)]['Value']);if(_0x3d00d4===-0x1&&_0x2bf087>0x1){const _0x3f6cff=_0x4d40ae===r['PivotTableValuePositionEnum'][_0x3afe41(0x1eb)]?r[_0x3afe41(0x24a)][_0x3afe41(0x190)]:_0x4d40ae,_0x4e7d86=_0x3f6cff===r[_0x3afe41(0x24a)][_0x3afe41(0x216)]?r[_0x3afe41(0x17f)][_0x3afe41(0x216)]:r['PivotTableFiledAreaEnum'][_0x3afe41(0x190)];this[_0x3afe41(0x1b1)][_0x3afe41(0x1d0)](_0x3f6cff,this[_0x3afe41(0x1b1)][_0x3afe41(0x217)](_0x4e7d86));}}else{if(_0x36105a===r['PivotTableFiledAreaEnum']['Row']||_0x36105a===r[_0x3afe41(0x17f)]['Column']){const _0x46c2f3=_0x46813b[_0x3afe41(0x228)](),_0x4047ae=this['_pivot']['getDataFieldByTableId'](_0x46c2f3);if(_0x4047ae&&(_0x4047ae==null?void 0x0:_0x4047ae[_0x3afe41(0x221)]())===r[_0x3afe41(0x198)][_0x3afe41(0x247)]){const _0x221863=_0x4047ae[_0x3afe41(0x238)]();_0x221863&&this[_0x3afe41(0x1b1)][_0x3afe41(0x1a5)](_0x46c2f3,_0x221863);}}}return _0x46813b;}[_0x24c534(0x204)](_0x592ba2,_0x61b0cd){const _0x1eb319=_0x24c534,_0x34d3f2=this[_0x1eb319(0x1f0)](_0x592ba2),_0x5a8352=this[_0x1eb319(0x1b1)][_0x1eb319(0x188)](_0x34d3f2,r[_0x1eb319(0x17f)]['Filter']);return _0x5a8352[_0x1eb319(0x179)](_0x61b0cd),_0x5a8352;}[_0x24c534(0x1b3)](_0x3cc729,_0xc2d54a){const _0x1fabfd=_0x24c534,_0x403f89=this[_0x1fabfd(0x235)](_0x3cc729,r[_0x1fabfd(0x17f)][_0x1fabfd(0x199)]);return _0xc2d54a!=null&&_0xc2d54a[_0x1fabfd(0x1c0)]&&_0x403f89[_0x1fabfd(0x1ae)](_0xc2d54a==null?void 0x0:_0xc2d54a[_0x1fabfd(0x1c0)]),_0x403f89;}['removeFieldWithName'](_0x3a0e8d){const _0x3e4c0c=_0x24c534,_0xce245c=this['_getSourceIdByName'](_0x3a0e8d);this[_0x3e4c0c(0x1b1)][_0x3e4c0c(0x207)](_0xce245c)[_0x3e4c0c(0x1d2)](_0x3aad75=>{const _0x494632=_0x3e4c0c,_0x461b18=_0x3aad75[_0x494632(0x228)]();this['_pivot'][_0x494632(0x1f2)](_0x461b18);});}['getResultByCalculate'](_0x355b64={}){const _0x136a75=_0x24c534,_0x9fffb1=this[_0x136a75(0x1b1)][_0x136a75(0x20f)](),{dataArr:_0x42022b,dataArrWithSplit:_0x1061d9}=le(this['_pivot'],_0x9fffb1,this[_0x136a75(0x1f3)],_0x355b64);return{'dataArr':_0x42022b,'dataArrWithSplit':_0x1061d9};}[_0x24c534(0x22f)](_0x4aa01d){const _0x4e683f=_0x24c534;return this[_0x4e683f(0x1b1)][_0x4e683f(0x1ce)]()[_0x4aa01d];}[_0x24c534(0x1e5)](){const _0x286916=_0x24c534;this[_0x286916(0x1b1)][_0x286916(0x1e5)]();}['resetDimension'](_0x15296d){const _0x5c9d75=_0x24c534;this[_0x5c9d75(0x1b1)][_0x5c9d75(0x1e5)](_0x15296d);}[_0x24c534(0x248)](_0x1d05bb){const _0x1fc1c7=_0x24c534,_0x1b6e12=this[_0x1fc1c7(0x1b1)][_0x1fc1c7(0x242)],_0x5a81c1=_0x1b6e12['getFieldIds']()[_0x1d05bb];if(_0x5a81c1)return _0x1b6e12[_0x1fc1c7(0x19f)](_0x5a81c1)[_0x1fc1c7(0x221)]();}['getFieldDataTypeByFieldName'](_0x37da79){const _0x369617=_0x24c534,_0x3ce768=this[_0x369617(0x1f0)](_0x37da79),_0x33e712=this[_0x369617(0x1b1)][_0x369617(0x242)]['getFieldById'](_0x3ce768);return _0x33e712==null?void 0x0:_0x33e712['getFieldDataType']();}[_0x24c534(0x222)](){const _0x34079f=_0x24c534,_0x361a72={};return[[r[_0x34079f(0x17f)][_0x34079f(0x216)],_0x34079f(0x249)],[r[_0x34079f(0x17f)][_0x34079f(0x190)],_0x34079f(0x1f7)],[r[_0x34079f(0x17f)][_0x34079f(0x230)],_0x34079f(0x214)],[r[_0x34079f(0x17f)]['Value'],_0x34079f(0x16d)]][_0x34079f(0x1d2)](_0x52e93c=>{const _0x186270=_0x34079f,[_0x16d896,_0x4b46cb]=_0x52e93c;this[_0x186270(0x1b1)][_0x186270(0x1d3)](_0x16d896,_0x36ced5=>{const _0x208c1a=_0x186270;_0x361a72[_0x4b46cb]||(_0x361a72[_0x4b46cb]=[]),_0x361a72[_0x4b46cb][_0x208c1a(0x17b)](_0x36ced5[_0x208c1a(0x219)]());});}),Object[_0x34079f(0x160)](_0x361a72)[_0x34079f(0x218)]>0x0?_0x361a72:void 0x0;}['getPivotSourceData'](){const _0x233a3b=_0x24c534;return this[_0x233a3b(0x21c)];}[_0x24c534(0x1a6)](_0x438fbd){const _0x34ee20=_0x24c534;this[_0x34ee20(0x1b1)][_0x34ee20(0x1a6)](_0x438fbd);}['remove'](){const _0x1ca3c9=_0x24c534;this[_0x1ca3c9(0x1b1)][_0x1ca3c9(0x1b6)]();}}class ve extends r[_0x24c534(0x162)]{[_0x24c534(0x231)](_0x4e8495){const _0x108960=_0x24c534;if(Array[_0x108960(0x1af)](_0x4e8495)&&_0x4e8495[_0x108960(0x218)]>0x0){const _0x242ec7=[],_0x3914ba=_0x4e8495[0x0],_0x46d6fc={},_0x3b968c=_0x4e8495[0x1];for(let _0xd48b08=0x0;_0xd48b08<_0x3b968c[_0x108960(0x218)];_0xd48b08++){const _0x13082c=_0x3b968c[_0xd48b08];if(typeof _0x13082c==_0x108960(0x1f1)&&_0x13082c instanceof Date)_0x46d6fc[_0xd48b08]=Z;else{if(typeof _0x13082c==_0x108960(0x1d5)){const _0x3e5b02=new Date(_0x13082c);Number[_0x108960(0x1e8)](_0x3e5b02[_0x108960(0x224)]())||(_0x46d6fc[_0xd48b08]=Z);}}}for(let _0x518add=0x1;_0x518add<_0x4e8495['length'];_0x518add++){const _0xbc4677=_0x4e8495[_0x518add],_0x2eddd6=[];for(let _0x1d4143=0x0;_0x1d4143<_0xbc4677[_0x108960(0x218)];_0x1d4143++)if(_0x46d6fc[_0x1d4143]){const _0x1851f7=_0xbc4677[_0x1d4143],_0x1dd1ec=typeof _0x1851f7==_0x108960(0x1f1)&&_0x1851f7 instanceof Date?_0x1851f7:new Date(_0x1851f7),_0x15d22b={'v':de(_0x1dd1ec[_0x108960(0x224)]()),'f':_0x46d6fc[_0x1d4143]};_0x2eddd6[_0x108960(0x17b)](_0x15d22b);}else _0x2eddd6[_0x108960(0x17b)](_0xbc4677[_0x1d4143]);_0x242ec7[_0x108960(0x17b)](_0x2eddd6);}return{'header':_0x3914ba,'data':_0x242ec7};}else throw new Error('[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array');}}class ce extends A[_0x24c534(0x1cd)]{['_initialize'](_0x312b1c){const _0x40c813=_0x24c534,_0x61c505=_0x312b1c['get'](m[_0x40c813(0x1dc)]);this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x1f8)],()=>_0x61c505[_0x40c813(0x171)](_0x2ca9fe=>{const _0x13ca51=_0x40c813;switch(_0x2ca9fe['id']){case l[_0x13ca51(0x24b)]['id']:{const _0xd866d3=_0x2ca9fe['params'];this['_fireBeforeMovePivotTableEvent'](_0xd866d3);break;}}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x210)],()=>_0x61c505[_0x40c813(0x171)](_0x534fe7=>{const _0x41cd96=_0x40c813;switch(_0x534fe7['id']){case l['AddPivotTableWithConfigCommand']['id']:case l[_0x41cd96(0x203)]['id']:{const _0x222de8=_0x534fe7[_0x41cd96(0x1f9)];this[_0x41cd96(0x1f5)](_0x222de8);break;}}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x18c)],()=>_0x61c505[_0x40c813(0x1c2)](_0x4e28d8=>{const _0x5cdf72=_0x40c813;if(_0x4e28d8['id']===l[_0x5cdf72(0x244)]['id']||_0x4e28d8['id']===l[_0x5cdf72(0x203)]['id']){const _0x25b506=_0x4e28d8['params'];this[_0x5cdf72(0x212)](_0x25b506);}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x182)],()=>_0x61c505[_0x40c813(0x1c2)](_0x4d449f=>{if(_0x4d449f['id']===l['MovePivotTableCommand']['id']){const _0x20b131=_0x4d449f['params'];this['_fireMovedPivotTableEvent'](_0x20b131);}})),this[_0x40c813(0x1ed)](this['Event'][_0x40c813(0x1d7)],()=>_0x61c505[_0x40c813(0x1c2)](_0x2f5b70=>{const _0x1b4d5e=_0x40c813;if(_0x2f5b70['id']===l[_0x1b4d5e(0x161)]['id']){const _0x55d34e=_0x2f5b70[_0x1b4d5e(0x1f9)];this[_0x1b4d5e(0x1fc)](_0x55d34e);}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x177)],()=>_0x61c505[_0x40c813(0x1c2)](_0x3f26da=>{const _0x3c67ac=_0x40c813;if(_0x3f26da['id']===l['AddPivotFieldCommand']['id']){const _0x580258=_0x3f26da[_0x3c67ac(0x1f9)];this[_0x3c67ac(0x1e9)](_0x580258);}})),this['registerEventHandler'](this[_0x40c813(0x168)][_0x40c813(0x16e)],()=>_0x61c505['onCommandExecuted'](_0x1436f3=>{const _0x59f075=_0x40c813;if(_0x1436f3['id']===l[_0x59f075(0x1a2)]['id']){const _0x2c379f=_0x1436f3[_0x59f075(0x1f9)];this['_firePivotTableFieldRemovedEvent'](_0x2c379f);}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)][_0x40c813(0x208)],()=>_0x61c505['onCommandExecuted'](_0x29f228=>{const _0x471af8=_0x40c813;if(_0x29f228['id']===l[_0x471af8(0x16f)]['id']){const _0x13dbdd=_0x29f228[_0x471af8(0x1f9)];this[_0x471af8(0x22c)](_0x13dbdd);}})),this[_0x40c813(0x1ed)](this[_0x40c813(0x168)]['PivotTableFieldCollapseChanged'],()=>_0x61c505[_0x40c813(0x1c2)](_0x25f140=>{const _0x506c03=_0x40c813;if(_0x25f140['id']===l['SetPivotCollapseCommand']['id']){const _0x464fcf=_0x25f140[_0x506c03(0x1f9)];this[_0x506c03(0x1a9)](_0x464fcf);}})),this['registerEventHandler'](this[_0x40c813(0x168)][_0x40c813(0x1ee)],()=>_0x61c505[_0x40c813(0x1c2)](_0x10f817=>{const _0x497612=_0x40c813;if(_0x10f817['id']===l['SetPivotFilterCommand']['id']){const _0x10cc70=_0x10f817[_0x497612(0x1f9)];this[_0x497612(0x19d)](_0x10cc70);}})),this[_0x40c813(0x1ed)](this['Event'][_0x40c813(0x21e)],()=>_0x61c505['onCommandExecuted'](_0x24192a=>{const _0x25d0c2=_0x40c813;if(_0x24192a['id']===l[_0x25d0c2(0x183)]['id']){const _0x35579a=_0x24192a[_0x25d0c2(0x1f9)];this[_0x25d0c2(0x20a)](_0x35579a);}})),this[_0x40c813(0x1ed)](this['Event'][_0x40c813(0x15f)],()=>_0x61c505['onCommandExecuted'](_0x1d4ed7=>{const _0x47b01d=_0x40c813;if(_0x1d4ed7['id']===l[_0x47b01d(0x23d)]['id']){const _0x343e42=_0x1d4ed7[_0x47b01d(0x1f9)];this[_0x47b01d(0x1a3)](_0x343e42);}})),this[_0x40c813(0x1ed)](this['Event'][_0x40c813(0x16c)],()=>_0x61c505[_0x40c813(0x1c2)](_0x491823=>{const _0xaf0bab=_0x40c813;if(_0x491823['id']===l[_0xaf0bab(0x234)]['id']){const _0x1e5447=_0x491823[_0xaf0bab(0x1f9)];this['_firePivotTableValuePositionChangedEvent'](_0x1e5447);}}));const _0x3273ef=_0x312b1c[_0x40c813(0x1e4)](m[_0x40c813(0x1cb)]);this[_0x40c813(0x236)](_0x3273ef['lifecycle$'][_0x40c813(0x1b8)](_0x43f788=>{const _0x54b89d=_0x40c813;if(_0x43f788===m[_0x54b89d(0x187)][_0x54b89d(0x223)]){const _0x3ca535=_0x312b1c['get'](l[_0x54b89d(0x1c9)]);this['registerEventHandler'](this[_0x54b89d(0x168)]['PivotTableRendered'],()=>_0x3ca535[_0x54b89d(0x1d4)][_0x54b89d(0x193)](ie[_0x54b89d(0x167)](0x32))['subscribe'](_0x356103=>{const _0x35c9b3=_0x54b89d;this[_0x35c9b3(0x1c7)](_0x356103);}));}}));}[_0x24c534(0x1e9)](_0x3b8f20){const _0x77fe0b=_0x24c534;if(_0x3b8f20){const {unitId:_0x58efd6,subUnitId:_0x16ba2c,pivotTableId:_0x2d9c92,dataFieldId:_0x1f577f,fieldArea:_0x184c53,index:_0x3ae2e7}=_0x3b8f20;this[_0x77fe0b(0x18e)](this[_0x77fe0b(0x168)][_0x77fe0b(0x177)],{'unitId':_0x58efd6,'subUnitId':_0x16ba2c,'pivotTableId':_0x2d9c92,'dataFieldId':_0x1f577f,'fieldArea':_0x184c53,'index':_0x3ae2e7});}}[_0x24c534(0x211)](_0x570daf){const _0x4b107d=_0x24c534;if(_0x570daf){const {unitId:_0x2a6d96,subUnitId:_0x48194f,pivotTableId:_0x5c8149,fieldIds:_0x6fb179}=_0x570daf;this[_0x4b107d(0x18e)](this[_0x4b107d(0x168)][_0x4b107d(0x16e)],{'unitId':_0x2a6d96,'subUnitId':_0x48194f,'pivotTableId':_0x5c8149,'fieldIds':_0x6fb179[_0x4b107d(0x1be)]()});}}[_0x24c534(0x22c)](_0x3fabfa){const _0x1197c2=_0x24c534;if(_0x3fabfa){const {unitId:_0x94adf1,subUnitId:_0x51543a,pivotTableId:_0x3d4cdb,fieldId:_0x345b8e,area:_0x50b69c,index:_0x2ff01c}=_0x3fabfa;this[_0x1197c2(0x18e)](this[_0x1197c2(0x168)]['PivotTableFieldMoved'],{'unitId':_0x94adf1,'subUnitId':_0x51543a,'pivotTableId':_0x3d4cdb,'fieldId':_0x345b8e,'area':_0x50b69c,'index':_0x2ff01c});}}[_0x24c534(0x1a9)](_0x279976){const _0x21716d=_0x24c534;if(_0x279976){const {unitId:_0x39b79d,subUnitId:_0x427359,row:_0x541ccf,col:_0x1da5b8,collapse:_0x2c2acf}=_0x279976;this['fireEvent'](this[_0x21716d(0x168)][_0x21716d(0x20d)],{'unitId':_0x39b79d,'subUnitId':_0x427359,'row':_0x541ccf,'col':_0x1da5b8,'collapse':_0x2c2acf});}}[_0x24c534(0x19d)](_0x1d251b){const _0x4f455b=_0x24c534;if(_0x1d251b){const {unitId:_0x36bc56,subUnitId:_0x332705,pivotTableId:_0xa8a31f,tableFieldId:_0x5f1d4f,items:_0x546c33,isAll:_0x2e48a2}=_0x1d251b;this[_0x4f455b(0x18e)](this[_0x4f455b(0x168)][_0x4f455b(0x1ee)],{'unitId':_0x36bc56,'subUnitId':_0x332705,'pivotTableId':_0xa8a31f,'tableFieldId':_0x5f1d4f,'items':_0x546c33[_0x4f455b(0x1be)](),'isAll':_0x2e48a2});}}[_0x24c534(0x20a)](_0x1dc945){const _0x45af97=_0x24c534;if(_0x1dc945){const {unitId:_0x5f0de1,subUnitId:_0x133b38,pivotTableId:_0x40598e,tableFieldId:_0x216433,info:_0x37d47a}=_0x1dc945;this[_0x45af97(0x18e)](this[_0x45af97(0x168)][_0x45af97(0x21e)],{'unitId':_0x5f0de1,'subUnitId':_0x133b38,'pivotTableId':_0x40598e,'tableFieldId':_0x216433,'info':{..._0x37d47a}});}}['_firePivotTableFieldSettingChangedEvent'](_0x14386c){const _0x2db7e0=_0x24c534;if(_0x14386c){const {unitId:_0x1920ad,subUnitId:_0x332cf3,tableFieldId:_0x1bc87e,pivotTableId:_0x4f234a,displayName:_0x27ed6c,format:_0x5e08e2,subtotalType:_0x147192,tableFieldInfo:_0x707407,dataFieldInfo:_0x381467}=_0x14386c;this['fireEvent'](this['Event'][_0x2db7e0(0x15f)],{'unitId':_0x1920ad,'subUnitId':_0x332cf3,'tableFieldId':_0x1bc87e,'pivotTableId':_0x4f234a,'displayName':_0x27ed6c,'format':_0x5e08e2,'subtotalType':_0x147192,'tableFieldInfo':_0x707407,'dataFieldInfo':_0x381467});}}[_0x24c534(0x174)](_0x1090e6){const _0x1f14ff=_0x24c534;if(_0x1090e6){const {pivotTableId:_0x24dec7,position:_0x5e816d,index:_0x21f503}=_0x1090e6;this[_0x1f14ff(0x18e)](this[_0x1f14ff(0x168)][_0x1f14ff(0x16c)],{'pivotTableId':_0x24dec7,'position':_0x5e816d,'index':_0x21f503});}}['_fireAddPivotTableEvent'](_0x493adb){const _0xa504a5=_0x24c534;if(_0x493adb){const {positionType:_0x333aaa,pivotTableId:_0x190368,pivotTableConfig:_0x39720a}=_0x493adb,{targetCellInfo:_0xd2b0bf,sourceRangeInfo:_0x4c36ec}=_0x39720a,{unitId:_0x129062}=_0xd2b0bf;this[_0xa504a5(0x18e)](this['Event'][_0xa504a5(0x18c)],{'unitId':_0x129062,'positionType':_0x333aaa,'pivotTableId':_0x190368,'sourceRangeInfo':{'startRow':_0x4c36ec[_0xa504a5(0x232)][_0xa504a5(0x19c)],'endRow':_0x4c36ec[_0xa504a5(0x232)][_0xa504a5(0x1a1)],'startColumn':_0x4c36ec[_0xa504a5(0x232)][_0xa504a5(0x201)],'endColumn':_0x4c36ec['range'][_0xa504a5(0x226)],'unitId':_0x4c36ec['unitId'],'subUnitId':_0x4c36ec['subUnitId'],'sheetName':_0x4c36ec[_0xa504a5(0x163)]},'targetCellInfo':{'row':_0xd2b0bf[_0xa504a5(0x249)],'column':_0xd2b0bf[_0xa504a5(0x1b0)],'sheetName':_0xd2b0bf[_0xa504a5(0x163)],'unitId':_0xd2b0bf['unitId'],'subUnitId':_0xd2b0bf[_0xa504a5(0x1d1)]}});}}['_fireBeforeAddPivotTableEvent'](_0x4b45b7){const _0x5d46de=_0x24c534;if(_0x4b45b7){const {positionType:_0x58c6c2,pivotTableId:_0x44a51f,pivotTableConfig:_0x3fa8a7}=_0x4b45b7,{targetCellInfo:_0x54f228,sourceRangeInfo:_0x1feb03}=_0x3fa8a7,{unitId:_0x28a1e0}=_0x54f228,_0xe3e0a={'unitId':_0x28a1e0,'positionType':_0x58c6c2,'pivotTableId':_0x44a51f,'sourceRangeInfo':{'startRow':_0x1feb03['range'][_0x5d46de(0x19c)],'endRow':_0x1feb03[_0x5d46de(0x232)][_0x5d46de(0x1a1)],'startColumn':_0x1feb03[_0x5d46de(0x232)][_0x5d46de(0x201)],'endColumn':_0x1feb03[_0x5d46de(0x232)][_0x5d46de(0x226)],'unitId':_0x1feb03[_0x5d46de(0x1fd)],'subUnitId':_0x1feb03[_0x5d46de(0x1d1)],'sheetName':_0x1feb03[_0x5d46de(0x163)]},'targetCellInfo':{'row':_0x54f228[_0x5d46de(0x249)],'column':_0x54f228[_0x5d46de(0x1b0)],'sheetName':_0x54f228[_0x5d46de(0x163)],'unitId':_0x54f228[_0x5d46de(0x1fd)],'subUnitId':_0x54f228[_0x5d46de(0x1d1)]},'cancel':!0x1};if(this[_0x5d46de(0x18e)](this['Event'][_0x5d46de(0x1f8)],_0xe3e0a),_0xe3e0a[_0x5d46de(0x1bf)])throw new Error(_0x5d46de(0x1ab));}}['_firePivotTableRemovedEvent'](_0x8677d6){const _0x5506cd=_0x24c534;if(_0x8677d6){const {unitId:_0x50966f,pivotTableId:_0x3d06c0}=_0x8677d6;this[_0x5506cd(0x18e)](this[_0x5506cd(0x168)][_0x5506cd(0x1d7)],{'unitId':_0x50966f,'pivotTableId':_0x3d06c0});}}[_0x24c534(0x1c5)](_0x457396){const _0x3a319d=_0x24c534;if(_0x457396){const {originTargetInfo:_0xb0aa5,pivotTableId:_0x202428,targetCellInfo:_0x1483d1}=_0x457396,{unitId:_0x15c4f6}=_0xb0aa5,_0x399afe=this['_injector'][_0x3a319d(0x1e4)](l[_0x3a319d(0x1fe)])[_0x3a319d(0x1b4)](_0xb0aa5[_0x3a319d(0x1fd)],_0xb0aa5[_0x3a319d(0x1d1)],_0x202428);if(!_0x399afe)return;const _0x1c43a0={'unitId':_0x15c4f6,'pivotTableId':_0x202428,'originTargetInfo':{'row':_0x399afe[_0x3a319d(0x1ca)][_0x3a319d(0x249)],'column':_0x399afe[_0x3a319d(0x1ca)][_0x3a319d(0x1b0)],'unitId':_0x399afe[_0x3a319d(0x1ca)]['unitId'],'subUnitId':_0x399afe[_0x3a319d(0x1ca)][_0x3a319d(0x1d1)]},'targetCellInfo':{'row':_0x1483d1[_0x3a319d(0x249)],'column':_0x1483d1['col'],'unitId':_0x1483d1[_0x3a319d(0x1fd)],'subUnitId':_0x1483d1[_0x3a319d(0x1d1)]},'cancel':!0x1};if(this['fireEvent'](this[_0x3a319d(0x168)][_0x3a319d(0x210)],_0x1c43a0),_0x1c43a0['cancel'])throw new Error(_0x3a319d(0x19e));}}['_fireMovedPivotTableEvent'](_0x46c635){const _0x101b6b=_0x24c534;if(_0x46c635){const {originTargetInfo:_0x37774b,pivotTableId:_0xbd524a,targetCellInfo:_0x281735}=_0x46c635,{unitId:_0x28a60d}=_0x37774b,_0x18fcc6=this[_0x101b6b(0x1a7)][_0x101b6b(0x1e4)](l[_0x101b6b(0x1fe)])[_0x101b6b(0x1b4)](_0x37774b[_0x101b6b(0x1fd)],_0x37774b[_0x101b6b(0x1d1)],_0xbd524a);if(!_0x18fcc6)return;this[_0x101b6b(0x18e)](this[_0x101b6b(0x168)]['PivotTableMoved'],{'unitId':_0x28a60d,'pivotTableId':_0xbd524a,'originTargetInfo':{'row':_0x18fcc6[_0x101b6b(0x1ca)][_0x101b6b(0x249)],'column':_0x18fcc6[_0x101b6b(0x1ca)][_0x101b6b(0x1b0)],'unitId':_0x18fcc6[_0x101b6b(0x1ca)][_0x101b6b(0x1fd)],'subUnitId':_0x18fcc6['targetCellInfo'][_0x101b6b(0x1d1)]},'targetCellInfo':{'row':_0x281735[_0x101b6b(0x249)],'column':_0x281735['col'],'unitId':_0x281735[_0x101b6b(0x1fd)],'subUnitId':_0x281735[_0x101b6b(0x1d1)]}});}}['_fireRenderPivotTableEvent'](_0x30742a){const _0x3fa757=_0x24c534;if(_0x30742a){const {unitId:_0x4d28db,subUnitId:_0x5b64b8,pivotTableId:_0x2bf453,type:_0x578ddb,rangesCache:_0x34359f,isEmpty:_0x483bfb}=_0x30742a;this[_0x3fa757(0x18e)](this[_0x3fa757(0x168)][_0x3fa757(0x1ea)],{'unitId':_0x4d28db,'subUnitId':_0x5b64b8,'pivotTableId':_0x2bf453,'changeType':_0x578ddb,'isEmpty':!!_0x483bfb,'rangeInfo':_0x34359f});}}['generatePivotTable'](_0x420bd1,_0x16095c){const _0x2c4feb=_0x24c534,_0x3f6a4e=(_0x16095c?new _0x16095c():new ve())[_0x2c4feb(0x225)](_0x2c4feb(0x17d),_0x420bd1),_0x2f9a0e=_0x420bd1[0x0];_0x3f6a4e['getFieldIds']()[_0x2c4feb(0x1d2)]((_0x1f300d,_0x3f8569)=>{const _0xd652e3=_0x2c4feb;_0x3f6a4e[_0xd652e3(0x175)](_0x1f300d,_0x2f9a0e[_0x3f8569]);});const _0x20c4b9=r[_0x2c4feb(0x20b)](0x8),_0x5cf0bd=new r[(_0x2c4feb(0x200))](_0x3f6a4e,void 0x0,_0x20c4b9);return new re(this[_0x2c4feb(0x1a7)],_0x5cf0bd,_0x420bd1,_0x20c4b9);}}function _0x5313(){const _0x3d7329=['getFieldById','(空白)','endRow','RemovePivotFieldCommand','_firePivotTableFieldSettingChangedEvent','getPivotTableByCell','setFieldFormat','setOptions','_injector','extend','_firePivotTableFieldCollapsedEvent','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','Before\x20add\x20pivot\x20table\x20event\x20canceled','getRowCount','getValuePosition','setSubtotal','isArray','col','_pivot','1976616AJQqfV','addValueFieldWithName','getPivotTableConfig','pivotTableId','dispose','Hidden','subscribe','IUniverInstanceService','SetPivotFieldsConfigCommand','GrandTotal','getPivotTableById','getSheetId','concat','cancel','subtotal','numfmt','onCommandExecuted','rowFields','rangeInfo','_fireBeforeMovePivotTableEvent','getColCount','_fireRenderPivotTableEvent','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','SheetsPivotTableAdaptorModel','targetCellInfo','LifecycleService','PivotTableChangeTypeEnum','FUniver','getFieldDisplayNames','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','updateValuePosition','subUnitId','forEach','iterateFieldByArea','viewUpdate$','string','SetPivotSubtotalTypeMutation','PivotTableRemoved','PivotViewCellValueTypeEnum','PivotDataFieldSortTypeEnum','ResetPivotFieldsConfigCommand','PivotSubtotalTypeEnum','ICommandService','\x20failed.','805460tvpitA','FEnum','unionPivotViewRange','4FzOUPp','headerMap','defineProperty','get','reset','243444PtQCQw','getValueIndex','isNaN','_firePivotTableFieldAddedEvent','PivotTableRendered','None','format','registerEventHandler','PivotTableFieldFilterChanged','number','_getSourceIdByName','object','removeField','_isZhCN','find','_fireBeforeAddPivotTableEvent','fieldId','column','BeforePivotTableAdd','params','info','valueFields','_firePivotTableRemovedEvent','unitId','SheetsPivotTableConfigModel','198087QlEgnr','PivotTable','startColumn','setDateGroupType','AddPivotTableCommand','addFilterFieldWithName','FEventName','689150eNQhUK','getTableFieldsByDataFieldId','PivotTableFieldMoved','max','_firePivotTableFieldSortChangedEvent','generateHexNumber','fieldIds','PivotTableFieldCollapseChanged','(blank)','query','BeforePivotTableMove','_firePivotTableFieldRemovedEvent','_fireAddPivotTableEvent','filterFields','filter','updateFieldPosition','Row','getFieldCountByArea','length','getSourceName','ST_PivotFilterOperatorEnum','remove','_sourceData','getCollection','PivotTableFieldSortChanged','setFieldsConfig','level','getFieldDataType','getDimensionInfo','Ready','getTime','createCollection','endColumn','[PivotTable]:\x20The\x20field\x20name\x20','getId','move','setLabelManualFilter','filterInfo','_firePivotTableFieldMovedEvent','PositionType','count','getNameWithColumnIndex','Filter','getRangeData','range','getSheetBySheetName','UpdatePivotValuePositionCommand','addFieldWithName','disposeWithMe','83050oaDnzl','getformat','_id','getUnitId','Total\x20','FWorksheet','UpdatePivotFieldSettingCommand','UpdateDateGroupCommand','fieldsConfig','setLabelSort','getDataFieldIdByDisplayName','dataFieldsCollection','valueIndex','AddPivotTableWithConfigCommand','PivotFilterTypeEnum','valueFilter','date','getFieldDataTypeByColumnIndex','row','PivotTableValuePositionEnum','MovePivotTableCommand','PivotTableFieldSettingChanged','keys','RemovePivotTableMutation','DataFieldManager','sheetName','isBottomTotal','[PivotTable]:\x20add\x20field\x20','PivotFilterOperatorEnum','auditTime','Event','tableFieldId','getPivotTableIdByCell','addPivotTable','PivotTableValuePositionChanged','value','PivotTableFieldRemoved','MovePivotFieldCommand','blank','beforeCommandExecuted','getValueFields','getValueFilter','_firePivotTableValuePositionChangedEvent','setDisplayName','214284eecnnz','PivotTableFieldAdded','getSourceFieldsInfo','setFilterInfo','LocaleService','push','ValueFilter','data','PivotCellStyleTypeEnum','PivotTableFiledAreaEnum','PivotDataFieldSortOperatorEnum','setValueFilter','PivotTableMoved','SetPivotSortCommand','RenamePivotFieldMutation','symbol','renameField','LifecycleStages','addFieldWithSourceId','YYYY-MM-DD','setSubtotalType','executeCommand','PivotTableAdded','Grand\x20Total\x20','fireEvent','小计\x20','Column','PivotDateGroupFieldDateTypeEnum','总计\x20','pipe','measure','getConfig','getValueFilters','FWorkbook','PivotDataFieldDataTypeEnum','Value','Subtotal','fields','startRow','_firePivotTableFieldFilterChangedEvent','Before\x20move\x20pivot\x20table\x20event\x20canceled'];_0x5313=function(){return _0x3d7329;};return _0x5313();}A['FUniver'][_0x24c534(0x1a8)](ce);
1
+ 'use strict';const _0x5a95f4=_0x2cef;(function(_0xf6d0fd,_0x118abf){const _0x3517cd=_0x2cef,_0x3d0602=_0xf6d0fd();while(!![]){try{const _0x200cfc=parseInt(_0x3517cd(0x123))/0x1+-parseInt(_0x3517cd(0x143))/0x2+parseInt(_0x3517cd(0x180))/0x3+parseInt(_0x3517cd(0x1bb))/0x4+parseInt(_0x3517cd(0x198))/0x5*(parseInt(_0x3517cd(0x1b1))/0x6)+parseInt(_0x3517cd(0x114))/0x7+-parseInt(_0x3517cd(0x16e))/0x8;if(_0x200cfc===_0x118abf)break;else _0x3d0602['push'](_0x3d0602['shift']());}catch(_0x545923){_0x3d0602['push'](_0x3d0602['shift']());}}}(_0x5d80,0x849d6));function _0x5d80(){const _0x4185f9=['3045964OmmfZZ','Value','getNameWithColumnIndex','_firePivotTableFieldMovedEvent','Before\x20add\x20pivot\x20table\x20event\x20canceled','params','_fireRenderPivotTableEvent','hiddenFields','_fireBeforeMovePivotTableEvent','rowFields','PivotFilterOperatorEnum','getValuePosition','lifecycle$','_fireAddPivotTableEvent','(blank)','PivotTable','_initialize','PivotCellStyleTypeEnum','addValueFieldWithName','setDateGroupType','generateHexNumber','SetPivotFieldsConfigCommand','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','PositionType','Grand\x20Total\x20','updateValuePosition','push','getDataFieldByTableId','setSubtotal','onCommandExecuted','RemovePivotTableMutation','FEnum','_sourceData','getDimensionInfo','_pivot','row','UpdatePivotFieldSettingCommand','getRangeData','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','getRowCount','endColumn','getUnit','ICommandService','getTime','rangeInfo','ZH_CN','unitId','PivotTableFieldSortChanged','subUnitId','AddPivotTableCommand','PivotTableValuePositionChanged','valueFilter','getCollection','fireEvent','SetPivotSubtotalTypeMutation','addFieldWithSourceId','_fireMovedPivotTableEvent','fieldIds','forEach','level','sum','date','_firePivotTableValuePositionChangedEvent','7273903axiBaC','name','numfmt','query','Filter','Before\x20move\x20pivot\x20table\x20event\x20canceled','pivotTableId','value','PivotSubtotalTypeEnum','getPivotTableConfig','PivotTableAdded','beforeCommandExecuted','keys','fieldId','number','785040JTwkZa','MovePivotFieldCommand','getFieldSetting','Total\x20','targetCellInfo','PivotDataFieldSortOperatorEnum','LocaleType','PivotTableChangeTypeEnum','concat','valueIndex','remove','getPivotTableByCell','FWorksheet','subscribe','_firePivotTableFieldFilterChangedEvent','_injector','reset','disposeWithMe','getFieldIds','getId','PivotDataFieldDataTypeEnum','FUniver','startRow','_fireBeforeAddPivotTableEvent','UpdateDateGroupCommand','Event','fieldsConfig','IUniverInstanceService','getPivotTableId','getResultByCalculate','data','PivotTableFieldSettingChanged','1709214PDHQPi','SheetsPivotTableAdaptorModel','setOptions','getFieldById','总计\x20','length','info','_firePivotTableFieldSortChangedEvent','getSourceFieldsInfo','SetPivotCollapseCommand','FWorkbook','getTableFieldsByDataFieldId','PivotTableFiledAreaEnum','BeforePivotTableAdd','PivotTableValuePositionEnum','dispose','FEventName','getConfig','setValueFilter','extend','DataFieldManager','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','PivotTableFieldRemoved','find','PivotFilterTypeEnum','PositionTypeEnum','UpdatePivotValuePositionCommand','iterateFieldByArea','setFieldFormat','addFilterFieldWithName','PivotTableRemoved','LocaleService','getFieldDataType','YYYY-MM-DD','object','_firePivotTableFieldAddedEvent','PivotTableFieldMoved','executeCommand','filterInfo','getValueFilters','None','blank','filterFields','19935496PSqfqN','Subtotal','PivotDateGroupFieldDateTypeEnum','getFieldDataTypeByColumnIndex','tableFieldId','AddPivotFieldCommand','_isZhCN','format','SetPivotFilterCommand','GrandTotal','registerEventHandler','ResetPivotFieldsConfigCommand','BeforePivotTableMove','LifecycleStages','subtotal','string','MovePivotTableCommand','_firePivotTableRemovedEvent','2743986qsjfes','addPivotTable','_getSourceIdByName','unionPivotViewRange','max','auditTime','_id','getColCount','count','getformat','createCollection','addFieldWithName','Hidden','\x20failed.','PivotTableRendered','range','updateFieldPosition','defineProperty','setSubtotalType','RemovePivotFieldCommand','[PivotTable]:\x20The\x20field\x20name\x20','PivotTableFieldAdded','SheetsPivotTableConfigModel','isBottomTotal','15XCocCO','_firePivotTableFieldRemovedEvent','小计\x20','removeField','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','isArray','fieldDataType','Row','PivotDataFieldSortTypeEnum','getPivotTableRangeInfo','_firePivotTableFieldCollapsedEvent','getValueFilter','sheetName','PivotTableMoved','AddPivotTableWithConfigCommand','dimension','PivotViewCellValueTypeEnum','pipe','fields','move','SetPivotSortCommand','endRow','getUnitId','isNaN','PivotTableFieldFilterChanged','778824ExdJml','symbol','_firePivotTableFieldSettingChangedEvent','Column','setFieldsConfig','cancel','get','PivotTableFieldCollapseChanged','startColumn','col'];_0x5d80=function(){return _0x4185f9;};return _0x5d80();}var ee=Object[_0x5a95f4(0x191)],te=(_0x1f19a0,_0x3f5bf0,_0x56949c)=>_0x3f5bf0 in _0x1f19a0?ee(_0x1f19a0,_0x3f5bf0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56949c}):_0x1f19a0[_0x3f5bf0]=_0x56949c,y=(_0x5c217e,_0x2e06a9,_0x367a7b)=>te(_0x5c217e,typeof _0x2e06a9!=_0x5a95f4(0x1b2)?_0x2e06a9+'':_0x2e06a9,_0x367a7b);const r=require('@univerjs-pro/engine-pivot'),l=require('@univerjs-pro/sheets-pivot'),m=require('@univerjs/core'),R=require('@univerjs/sheets/facade'),A=require('@univerjs/core/facade'),ie=require('rxjs');class x{constructor(_0x2daba2,_0x14f44c,_0x5edbff,_0x3d0ccb){const _0x46f1c1=_0x5a95f4;y(this,_0x46f1c1(0x103)),y(this,_0x46f1c1(0x105)),y(this,'pivotTableId'),y(this,_0x46f1c1(0x132)),(this[_0x46f1c1(0x103)]=_0x2daba2,this[_0x46f1c1(0x105)]=_0x14f44c,this[_0x46f1c1(0x11a)]=_0x5edbff,this[_0x46f1c1(0x132)]=_0x3d0ccb);}[_0x5a95f4(0x154)](){const _0x26d363=_0x5a95f4;return this[_0x26d363(0x132)][_0x26d363(0x1b7)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x26d363(0x103)],this[_0x26d363(0x105)],this[_0x26d363(0x11a)]);}[_0x5a95f4(0x1b5)](_0x26950d){const _0x177782=_0x5a95f4,_0xbdee4a=this['_injector'][_0x177782(0x1b7)](m[_0x177782(0xff)]),_0x57022a={'unitId':this[_0x177782(0x103)],'subUnitId':this[_0x177782(0x105)],'pivotTableId':this[_0x177782(0x11a)],'pivotTableConfig':_0x26950d};return _0xbdee4a[_0x177782(0x168)](l[_0x177782(0xea)]['id'],_0x57022a);}[_0x5a95f4(0x133)](_0x59e48d){const _0x652c8c=_0x5a95f4,_0x350346=this[_0x652c8c(0x132)][_0x652c8c(0x1b7)](m['ICommandService']),_0x3b8c51={'unitId':this[_0x652c8c(0x103)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x652c8c(0x11a)],'resetArea':_0x59e48d};return _0x350346[_0x652c8c(0x168)](l[_0x652c8c(0x179)]['id'],_0x3b8c51);}[_0x5a95f4(0x13f)](){return this['pivotTableId'];}[_0x5a95f4(0x125)](_0x217385){const _0x2404d=_0x5a95f4,_0x10ec91=this[_0x2404d(0x132)][_0x2404d(0x1b7)](l[_0x2404d(0x196)])['getPivotTableConfig'](this[_0x2404d(0x103)],this[_0x2404d(0x105)],this['pivotTableId']),_0xd5bbba=_0x10ec91==null?void 0x0:_0x10ec91[_0x2404d(0x13d)];if(_0xd5bbba)return _0xd5bbba[_0x2404d(0x1a7)][_0x217385]||_0xd5bbba['measure'][_0x217385];}[_0x5a95f4(0x14b)](){const _0x5ca256=_0x5a95f4,_0x180099=this['_injector'],_0x2f5c50=this['unitId'],_0x4f6128=this[_0x5ca256(0x11a)],_0x2a543d=_0x180099['get'](l[_0x5ca256(0x196)])[_0x5ca256(0x109)](_0x2f5c50,_0x4f6128);if(_0x2a543d){const _0x2d7cce=_0x2a543d['fieldIds'],_0x374798=_0x2a543d[_0x5ca256(0x1aa)],_0x8a6521=_0x2a543d['displayNameRecord'],_0x3ee1df=[];for(const _0x5b013d of _0x2d7cce){const _0x340476=_0x374798[_0x5b013d];if(_0x340476){const _0x35ad88={'id':_0x5b013d,'name':_0x340476[_0x5ca256(0x115)],'fieldDataType':_0x340476[_0x5ca256(0x19e)]};_0x8a6521&&_0x8a6521[_0x5b013d]!==void 0x0&&(_0x35ad88['displayName']=_0x8a6521[_0x5b013d]),_0x3ee1df[_0x5ca256(0xef)](_0x35ad88);}}return _0x3ee1df;}return[];}[_0x5a95f4(0x1a3)](_0xac552d){const _0x1bd8b1=_0x5a95f4;var _0x487301;const _0x5b3077=this['_injector'][_0x1bd8b1(0x1b7)](l[_0x1bd8b1(0x196)])[_0x1bd8b1(0x11d)](this[_0x1bd8b1(0x103)],this[_0x1bd8b1(0x105)],this['pivotTableId']),_0x536d3e=_0x5b3077==null?void 0x0:_0x5b3077['fieldsConfig'][_0x1bd8b1(0x108)];return(_0x487301=_0x536d3e==null?void 0x0:_0x536d3e[_0x1bd8b1(0x15a)](_0x267f27=>_0x267f27[_0x1bd8b1(0x121)]===_0xac552d))==null?void 0x0:_0x487301[_0x1bd8b1(0x169)];}[_0x5a95f4(0x16a)](){const _0x24eb5f=_0x5a95f4,_0x4df868=this[_0x24eb5f(0x132)][_0x24eb5f(0x1b7)](l[_0x24eb5f(0x196)])['getPivotTableConfig'](this[_0x24eb5f(0x103)],this[_0x24eb5f(0x105)],this['pivotTableId']),_0x1e1284=_0x4df868==null?void 0x0:_0x4df868[_0x24eb5f(0x13d)][_0x24eb5f(0x108)];return(_0x1e1284==null?void 0x0:_0x1e1284[_0x24eb5f(0x12b)]())||[];}['getFieldIdsByArea'](_0x199608){const _0x259033=_0x5a95f4,_0x506360=this[_0x259033(0x132)][_0x259033(0x1b7)](l['SheetsPivotTableConfigModel'])[_0x259033(0x11d)](this[_0x259033(0x103)],this[_0x259033(0x105)],this[_0x259033(0x11a)]),_0x202a6f=_0x506360==null?void 0x0:_0x506360['fieldsConfig'];if(_0x202a6f)switch(_0x199608){case r['PivotTableFiledAreaEnum'][_0x259033(0x1b4)]:return _0x202a6f['columnFields'][_0x259033(0x12b)]();case r[_0x259033(0x14f)][_0x259033(0x19f)]:return _0x202a6f[_0x259033(0xde)][_0x259033(0x12b)]();case r['PivotTableFiledAreaEnum']['Value']:return _0x202a6f['valueFields'][_0x259033(0x12b)]();case r[_0x259033(0x14f)]['Filter']:return _0x202a6f[_0x259033(0x16d)]['concat']();case r[_0x259033(0x14f)][_0x259033(0x18c)]:return _0x202a6f[_0x259033(0xdc)][_0x259033(0x12b)]();}return[];}[_0x5a95f4(0x1a1)](){const _0x1d8f6a=_0x5a95f4;var _0xce7608;const _0xe91a4c=(_0xce7608=this[_0x1d8f6a(0x132)]['get'](l[_0x1d8f6a(0x196)])[_0x1d8f6a(0x1a1)](this[_0x1d8f6a(0x103)],this[_0x1d8f6a(0x105)],this[_0x1d8f6a(0x11a)]))==null?void 0x0:_0xce7608[_0x1d8f6a(0x101)];if(_0xe91a4c)return l[_0x1d8f6a(0x183)](_0xe91a4c);}async[_0x5a95f4(0x12d)](){const _0x37d07b=_0x5a95f4;return await this[_0x37d07b(0x132)][_0x37d07b(0x1b7)](m[_0x37d07b(0xff)])['syncExecuteCommand'](l[_0x37d07b(0xf3)]['id'],{'unitId':this[_0x37d07b(0x103)],'subUnitId':this[_0x37d07b(0x105)],'pivotTableId':this['pivotTableId']});}async['addField'](_0x44b36c,_0x442d30,_0x417553){const _0x529597=_0x5a95f4,_0x5bf88c=this[_0x529597(0x132)],_0x150d76=this[_0x529597(0x103)],_0x5e1993=this['subUnitId'],_0x59ede7=this[_0x529597(0x11a)],_0x47d07a=_0x5bf88c['get'](m['ICommandService']),_0x1fdf3f=_0x5bf88c['get'](l[_0x529597(0x196)]),_0x596f9b=_0x1fdf3f[_0x529597(0x11d)](_0x150d76,_0x5e1993,_0x59ede7),_0x550cbe=_0x1fdf3f[_0x529597(0x109)](_0x150d76,_0x59ede7);if(!_0x596f9b||!_0x550cbe)return!0x1;let _0x28aa38=_0x44b36c;typeof _0x28aa38=='number'&&(_0x28aa38=_0x1fdf3f['getCollection'](_0x150d76,_0x59ede7)[_0x529597(0x10e)][_0x44b36c]);const _0x528d3c={'unitId':_0x150d76,'subUnitId':_0x5e1993,'pivotTableId':_0x59ede7,'dataFieldId':_0x28aa38,'fieldArea':_0x442d30,'index':_0x417553};return _0x47d07a[_0x529597(0x168)](l[_0x529597(0x173)]['id'],_0x528d3c);}async[_0x5a95f4(0x19b)](_0x46c10e){const _0x11d6ed=_0x5a95f4,_0x512ac0=this[_0x11d6ed(0x132)],_0x167926=this[_0x11d6ed(0x103)],_0x12b459=this[_0x11d6ed(0x105)],_0x111203=this[_0x11d6ed(0x11a)],_0x2ab321=_0x512ac0[_0x11d6ed(0x1b7)](m[_0x11d6ed(0xff)]),_0x53de7a={'unitId':_0x167926,'subUnitId':_0x12b459,'pivotTableId':_0x111203,'fieldIds':_0x46c10e};return _0x2ab321[_0x11d6ed(0x168)](l[_0x11d6ed(0x193)]['id'],_0x53de7a);}async[_0x5a95f4(0x190)](_0x125bbe,_0x1808ef,_0x3f4f70){const _0x2a0af8=_0x5a95f4,_0x592de8=this[_0x2a0af8(0x132)],_0x39d8e2=this['unitId'],_0x137a57=this[_0x2a0af8(0x105)],_0x363e7e=this[_0x2a0af8(0x11a)],_0x18c719=_0x592de8[_0x2a0af8(0x1b7)](m[_0x2a0af8(0xff)]),_0x38b36f={'unitId':_0x39d8e2,'subUnitId':_0x137a57,'pivotTableId':_0x363e7e,'fieldId':_0x125bbe,'area':_0x1808ef,'index':_0x3f4f70};return _0x18c719[_0x2a0af8(0x168)](l[_0x2a0af8(0x124)]['id'],_0x38b36f);}async[_0x5a95f4(0xee)](_0x389ff5,_0x78fb57){const _0x26bbfe=_0x5a95f4,_0x2071a7=this[_0x26bbfe(0x132)],_0x67faad=this[_0x26bbfe(0x103)],_0x14df40=this[_0x26bbfe(0x105)],_0x25a3cd=this['pivotTableId'],_0x406cf7=_0x2071a7['get'](m[_0x26bbfe(0xff)]),_0x1fd698={'unitId':_0x67faad,'subUnitId':_0x14df40,'pivotTableId':_0x25a3cd,'position':_0x389ff5,'index':_0x78fb57};return _0x406cf7[_0x26bbfe(0x168)](l[_0x26bbfe(0x15d)]['id'],_0x1fd698);}async[_0x5a95f4(0x192)](_0x2a04fc,_0x18511f){const _0x92ae19=_0x5a95f4,_0xaecce=this['_injector'],_0x63183e=this[_0x92ae19(0x103)],_0x4e0da3=this[_0x92ae19(0x105)],_0x17790f=this[_0x92ae19(0x11a)],_0x1b8ded=_0xaecce[_0x92ae19(0x1b7)](m[_0x92ae19(0xff)]),_0x9ff570={'unitId':_0x63183e,'subUnitId':_0x4e0da3,'pivotTableId':_0x17790f,'fieldId':_0x2a04fc,'subtotalType':_0x18511f};return _0x1b8ded[_0x92ae19(0x168)](l[_0x92ae19(0x10b)]['id'],_0x9ff570);}async['setLabelSort'](_0x5d4898,_0x3f6981){const _0x4c6fe4=_0x5a95f4,_0x1df175=this['_injector'],_0x30190d=this[_0x4c6fe4(0x103)],_0x131670=this['subUnitId'],_0x3c6ce1=this[_0x4c6fe4(0x11a)],_0x18ca70=_0x1df175[_0x4c6fe4(0x1b7)](m[_0x4c6fe4(0xff)]),_0x406bfb={'unitId':_0x30190d,'subUnitId':_0x131670,'tableFieldId':_0x5d4898,'pivotTableId':_0x3c6ce1,'info':_0x3f6981};return _0x18ca70[_0x4c6fe4(0x168)](l[_0x4c6fe4(0x1ac)]['id'],_0x406bfb);}async['setLabelManualFilter'](_0x2dff6a,_0x276402,_0x52ba3b){const _0x284cec=_0x5a95f4,_0x1d5f5a=this[_0x284cec(0x132)],_0x20cbfe=this[_0x284cec(0x103)],_0x215c9e=this['subUnitId'],_0x34898e=this[_0x284cec(0x11a)],_0x3027a9=_0x1d5f5a[_0x284cec(0x1b7)](m[_0x284cec(0xff)]),_0x7b86fa={'unitId':_0x20cbfe,'subUnitId':_0x215c9e,'pivotTableId':_0x34898e,'tableFieldId':_0x2dff6a,'items':_0x276402,'isAll':_0x52ba3b};return _0x3027a9[_0x284cec(0x168)](l['SetPivotFilterCommand']['id'],_0x7b86fa);}async[_0x5a95f4(0x155)](_0x37139b,_0x907bdf){const _0x8bfd01=_0x5a95f4,_0x238ee3=this['_injector'],_0x308f33=this[_0x8bfd01(0x103)],_0x444a0e=this['subUnitId'],_0x5150a5=this['pivotTableId'],_0x4f32a4=_0x238ee3[_0x8bfd01(0x1b7)](m['ICommandService']);if(_0x37139b===void 0x0)return console['warn'](_0x8bfd01(0x158)),!0x1;const _0x26a98c=_0x907bdf&&{..._0x907bdf,'type':r[_0x8bfd01(0x15b)]['ValueFilter']},_0x82db89={'unitId':_0x308f33,'subUnitId':_0x444a0e,'pivotTableId':_0x5150a5,'fieldId':_0x37139b,'valueFilterInfo':_0x26a98c};return _0x4f32a4['executeCommand'](l['SetPivotValueFilterCommand']['id'],_0x82db89);}async['renameField'](_0x2015bf,_0x3d4714){const _0x2a8aae=_0x5a95f4,_0x3edeb6=this[_0x2a8aae(0x132)],_0x72b7f2=this[_0x2a8aae(0x103)],_0x5ca54e=this[_0x2a8aae(0x105)],_0x1a37b2=this[_0x2a8aae(0x11a)],_0x3a3650=_0x3edeb6['get'](m[_0x2a8aae(0xff)]),_0x1217e7={'unitId':_0x72b7f2,'subUnitId':_0x5ca54e,'pivotTableId':_0x1a37b2,'fieldId':_0x2015bf,'name':_0x3d4714};return _0x3a3650[_0x2a8aae(0x168)](l['RenamePivotFieldMutation']['id'],_0x1217e7);}async[_0x5a95f4(0x1ab)](_0x13d666,_0x28ba4a,_0x241340){const _0x58a326=_0x5a95f4,_0x15602e=this[_0x58a326(0x132)][_0x58a326(0x1b7)](m[_0x58a326(0xff)]),_0x2ee1e5=this['_injector']['get'](m[_0x58a326(0x13e)])[_0x58a326(0xfe)](this['unitId']),_0x46d2af=_0x2ee1e5==null?void 0x0:_0x2ee1e5['getSheetBySheetName'](_0x13d666);if(!_0x2ee1e5||!_0x46d2af)throw new Error(_0x58a326(0x19c));return _0x15602e[_0x58a326(0x168)](l[_0x58a326(0x17e)]['id'],{'pivotTableId':this['pivotTableId'],'targetCellInfo':{'subUnitId':_0x46d2af['getSheetId'](),'unitId':this[_0x58a326(0x103)],'row':_0x28ba4a,'col':_0x241340},'originTargetInfo':{'subUnitId':this[_0x58a326(0x105)],'unitId':this[_0x58a326(0x103)]}});}async[_0x5a95f4(0xe8)](_0x46141b,_0x4cb41e){const _0x54a07b=_0x5a95f4,_0x39fc45=this[_0x54a07b(0x132)],_0x4ce68c=this['unitId'],_0x20db34=this[_0x54a07b(0x105)],_0x4b93bb=this[_0x54a07b(0x11a)],_0x4eae5d=_0x39fc45[_0x54a07b(0x1b7)](m[_0x54a07b(0xff)]),_0x1898d1={'unitId':_0x4ce68c,'subUnitId':_0x20db34,'pivotTableId':_0x4b93bb,'tableFieldId':_0x46141b,'dateType':_0x4cb41e};return _0x4eae5d[_0x54a07b(0x168)](l[_0x54a07b(0x13b)]['id'],_0x1898d1);}}class oe extends R[_0x5a95f4(0x14d)]{async[_0x5a95f4(0x181)](_0x19825c,_0x5741b0,_0x11eae0){const _0x202244=_0x5a95f4,_0xca424b=this[_0x202244(0x132)],_0x153d5b=_0xca424b[_0x202244(0x1b7)](m['ICommandService']),_0x232546=r[_0x202244(0xe9)](0x8),_0x3134ac={'positionType':_0x5741b0,'pivotTableId':_0x232546,'pivotTableConfig':{'targetCellInfo':_0x11eae0,'sourceRangeInfo':_0x19825c,'isEmpty':!0x0}};if(await _0x153d5b[_0x202244(0x168)](l['AddPivotTableCommand']['id'],_0x3134ac))return new x(_0x11eae0[_0x202244(0x103)],_0x11eae0[_0x202244(0x105)],_0x232546,_0xca424b);}[_0x5a95f4(0x12e)](_0x2e8eb1,_0x421683,_0x513265,_0xb736d6){const _0x463bec=_0x5a95f4,_0x4bb91c=this[_0x463bec(0x132)],_0x297d70=_0x4bb91c['get'](l[_0x463bec(0x144)])['getPivotTableIdByCell'](_0x2e8eb1,_0x421683,_0x513265,_0xb736d6);if(_0x297d70)return new x(_0x2e8eb1,_0x421683,_0x297d70,_0x4bb91c);}['getPivotTableById'](_0x36c35e){const _0x52eec7=_0x5a95f4,_0x443c05=this[_0x52eec7(0x132)],_0x3aae22=_0x443c05[_0x52eec7(0x1b7)](l['SheetsPivotTableConfigModel'])['getTargetByPivotTableId'](this['getId'](),_0x36c35e);if(_0x3aae22)return new x(_0x3aae22[_0x52eec7(0x103)],_0x3aae22[_0x52eec7(0x105)],_0x36c35e,_0x443c05);}}function _0x2cef(_0x1a6537,_0x561554){const _0x5d8015=_0x5d80();return _0x2cef=function(_0x2cef01,_0x877b7b){_0x2cef01=_0x2cef01-0xda;let _0x26b914=_0x5d8015[_0x2cef01];return _0x26b914;},_0x2cef(_0x1a6537,_0x561554);}R[_0x5a95f4(0x14d)][_0x5a95f4(0x156)](oe);class ne extends R[_0x5a95f4(0x12f)]{[_0x5a95f4(0x12e)](_0x3f1905,_0x421b4c){const _0x53e9d4=_0x5a95f4,_0x34cc41=this[_0x53e9d4(0x132)],_0x7c66ef=_0x34cc41[_0x53e9d4(0x1b7)](l['SheetsPivotTableAdaptorModel']),_0xd7b6=this['_workbook'][_0x53e9d4(0x1ae)](),_0x4795bd=this['getSheetId'](),_0x34e565=_0x7c66ef['getPivotTableIdByCell'](_0xd7b6,_0x4795bd,_0x3f1905,_0x421b4c);if(_0x34e565)return new x(_0xd7b6,_0x4795bd,_0x34e565,_0x34cc41);}}R[_0x5a95f4(0x12f)][_0x5a95f4(0x156)](ne);class ae extends A['FEnum']{get[_0x5a95f4(0x11c)](){const _0x15a2e4=_0x5a95f4;return r[_0x15a2e4(0x11c)];}get[_0x5a95f4(0x15b)](){const _0x2340c8=_0x5a95f4;return r[_0x2340c8(0x15b)];}get['PivotTableFiledAreaEnum'](){return r['PivotTableFiledAreaEnum'];}get[_0x5a95f4(0x151)](){return r['PivotTableValuePositionEnum'];}get[_0x5a95f4(0x137)](){const _0x53f7e2=_0x5a95f4;return r[_0x53f7e2(0x137)];}get[_0x5a95f4(0x1a0)](){const _0x5ace62=_0x5a95f4;return r[_0x5ace62(0x1a0)];}get[_0x5a95f4(0x128)](){const _0x4f9b45=_0x5a95f4;return r[_0x4f9b45(0x128)];}get[_0x5a95f4(0xdf)](){return r['ST_PivotFilterOperatorEnum'];}get[_0x5a95f4(0x15c)](){const _0x3421f1=_0x5a95f4;return l[_0x3421f1(0xec)];}get[_0x5a95f4(0x12a)](){const _0x15700f=_0x5a95f4;return r[_0x15700f(0x12a)];}get['PivotDateGroupFieldDateTypeEnum'](){const _0x935067=_0x5a95f4;return r[_0x935067(0x170)];}}A[_0x5a95f4(0xf4)][_0x5a95f4(0x156)](ae);class se extends A['FEventName']{get['PivotTableAdded'](){const _0x38affc=_0x5a95f4;return _0x38affc(0x11e);}get[_0x5a95f4(0x150)](){const _0x55771d=_0x5a95f4;return _0x55771d(0x150);}get[_0x5a95f4(0x161)](){return'PivotTableRemoved';}get[_0x5a95f4(0x1a5)](){const _0xa55a54=_0x5a95f4;return _0xa55a54(0x1a5);}get[_0x5a95f4(0x18e)](){const _0x5ede6b=_0x5a95f4;return _0x5ede6b(0x18e);}get[_0x5a95f4(0x195)](){const _0x2845d9=_0x5a95f4;return _0x2845d9(0x195);}get[_0x5a95f4(0x159)](){const _0x4e7732=_0x5a95f4;return _0x4e7732(0x159);}get['PivotTableFieldMoved'](){return'PivotTableFieldMoved';}get['PivotTableFieldCollapseChanged'](){const _0x3d70ea=_0x5a95f4;return _0x3d70ea(0x1b8);}get['PivotTableFieldFilterChanged'](){return'PivotTableFieldFilterChanged';}get[_0x5a95f4(0x104)](){const _0x35ccf7=_0x5a95f4;return _0x35ccf7(0x104);}get[_0x5a95f4(0x142)](){return'PivotTableFieldSettingChanged';}get[_0x5a95f4(0x107)](){const _0x4105ba=_0x5a95f4;return _0x4105ba(0x107);}}A[_0x5a95f4(0x153)][_0x5a95f4(0x156)](se);const Z=_0x5a95f4(0x164);function de(_0x172172){return _0x172172/0x3e8/0x15180+0x63e1;}function le(_0x46ddb0,_0x4d99a6,_0x351ca9,_0x12791c){const _0x2b08b8=_0x5a95f4;var _0x55eead,_0x1f2d1e,_0x1701ba,_0x11a7db,_0x6ef102,_0x5273c8,_0x381f61,_0x12b7eb,_0x53bb5b,_0xb0295,_0x4d0255,_0x264c38,_0x34d5d6,_0x135c40,_0x12671a;const _0x16e30c=[],_0x3ee91b=[],_0xca950=[],{showRowGrandTotal:_0x2cc45c,showRowSubTotal:_0xa213}=_0x12791c,{cornerView:_0x4ebe87,colView:_0x50af69,rowView:_0x2e0049,dataView:_0x1395ec,formatMap:_0x1e4bba}=_0x4d99a6,_0x209520=_0x4ebe87['getRowCount'](),_0x34c100=_0x4ebe87[_0x2b08b8(0x187)]();for(let _0x4f146b=0x0;_0x4f146b<_0x209520;_0x4f146b++)for(let _0x551aa6=0x0;_0x551aa6<_0x34c100;_0x551aa6++){const _0x13e38a={...(_0x1f2d1e=(_0x55eead=_0x4ebe87['data'])==null?void 0x0:_0x55eead[_0x4f146b])==null?void 0x0:_0x1f2d1e[_0x551aa6]};_0x13e38a['v']&&(_0x16e30c[_0x4f146b]||(_0x16e30c[_0x4f146b]=[]),_0xca950[_0x4f146b]||(_0xca950[_0x4f146b]=[]),_0x16e30c[_0x4f146b][_0x551aa6]=_0x13e38a['v'],_0xca950[_0x4f146b][_0x551aa6]=_0x13e38a['v']);}for(let _0x2b16be=0x0;_0x2b16be<_0x50af69['getRowCount']();_0x2b16be++){const _0x5236eb=(_0x11a7db=(_0x1701ba=_0x50af69==null?void 0x0:_0x50af69['headerMap'])==null?void 0x0:_0x1701ba[_0x2b16be])==null?void 0x0:_0x11a7db[_0x2b08b8(0x172)],_0x5d6f68=_0x5236eb?_0x1e4bba[_0x5236eb]:'';for(let _0x18a65a=0x0;_0x18a65a<_0x50af69[_0x2b08b8(0x187)]();_0x18a65a++){const _0x3d18dd={...(_0x5273c8=(_0x6ef102=_0x50af69[_0x2b08b8(0x141)])==null?void 0x0:_0x6ef102[_0x2b16be])==null?void 0x0:_0x5273c8[_0x18a65a]};if((_0x3d18dd==null?void 0x0:_0x3d18dd['v'])!==void 0x0){let _0x5add42=_0x5d6f68?m[_0x2b08b8(0x116)][_0x2b08b8(0x175)](_0x5d6f68,Number(_0x3d18dd['v'])):_0x3d18dd['v'];(_0x3d18dd==null?void 0x0:_0x3d18dd['s'])===r['PivotCellStyleTypeEnum'][_0x2b08b8(0x16f)]?_0x5add42=_0x351ca9?_0x2b08b8(0x19a)+_0x5add42:_0x2b08b8(0x126)+_0x5add42:(_0x3d18dd==null?void 0x0:_0x3d18dd['s'])===r[_0x2b08b8(0xe6)]['GrandTotal']&&(_0x5add42=_0x351ca9?'总计\x20'+_0x5add42:_0x2b08b8(0xed)+_0x5add42),(_0x3d18dd==null?void 0x0:_0x3d18dd['t'])===r[_0x2b08b8(0x1a8)][_0x2b08b8(0x16c)]&&(_0x5add42=_0x351ca9?'(空白)':_0x2b08b8(0xe3)),_0x16e30c[_0x2b16be]||(_0x16e30c[_0x2b16be]=[]),_0xca950[_0x2b16be]||(_0xca950[_0x2b16be]=[]),_0x16e30c[_0x2b16be][_0x18a65a+_0x34c100]=_0x5add42,_0xca950[_0x2b16be][_0x18a65a+_0x34c100]=_0x5add42;}}}let _0x544d52=0x0,_0x5cfc7b=0x0,_0x4b024a=0x0;for(let _0xc1c61e=0x0;_0xc1c61e<_0x2e0049[_0x2b08b8(0xfc)]();_0xc1c61e++){const _0x17b08e=_0x2e0049['info'][_0xc1c61e];if(!_0xa213&&_0x17b08e[_0x2b08b8(0x197)]&&_0x17b08e[_0x2b08b8(0x110)]!==0x0){_0x4b024a++,_0x5cfc7b=0x0;continue;}if(!(!_0x2cc45c&&_0x17b08e[_0x2b08b8(0x197)]&&_0x17b08e[_0x2b08b8(0x110)]===0x0)){for(let _0x5417b0=0x0;_0x5417b0<_0x2e0049[_0x2b08b8(0x187)]();_0x5417b0++){const _0x537612={...(_0x12b7eb=(_0x381f61=_0x2e0049[_0x2b08b8(0x141)])==null?void 0x0:_0x381f61[_0xc1c61e])==null?void 0x0:_0x12b7eb[_0x5417b0]},_0x207ba0=(_0xb0295=(_0x53bb5b=_0x2e0049==null?void 0x0:_0x2e0049['headerMap'])==null?void 0x0:_0x53bb5b[_0x5417b0])==null?void 0x0:_0xb0295[_0x2b08b8(0x172)],_0x5d8f53=_0x207ba0?_0x1e4bba[_0x207ba0]:'';if((_0x537612==null?void 0x0:_0x537612['v'])!==void 0x0){let _0x4b31b4=_0x5d8f53?m[_0x2b08b8(0x116)]['format'](_0x5d8f53,Number(_0x537612['v'])):_0x537612['v'];(_0x537612==null?void 0x0:_0x537612['s'])===r[_0x2b08b8(0xe6)]['Subtotal']?_0x4b31b4=_0x351ca9?'小计\x20'+_0x4b31b4:_0x2b08b8(0x126)+_0x4b31b4:(_0x537612==null?void 0x0:_0x537612['s'])===r[_0x2b08b8(0xe6)][_0x2b08b8(0x177)]&&(_0x4b31b4=_0x351ca9?_0x2b08b8(0x147)+_0x4b31b4:_0x2b08b8(0xed)+_0x4b31b4),(_0x537612==null?void 0x0:_0x537612['t'])===r[_0x2b08b8(0x1a8)][_0x2b08b8(0x16c)]&&(_0x4b31b4=_0x351ca9?'(空白)':_0x2b08b8(0xe3)),_0x16e30c[_0x544d52+_0x209520]||(_0x16e30c[_0x544d52+_0x209520]=[]);let _0x359186=_0x3ee91b[_0x4b024a];_0x359186||(_0x359186=[..._0xca950],_0x3ee91b[_0x4b024a]=_0x359186),_0x359186[_0x5cfc7b+_0x209520]||(_0x359186[_0x5cfc7b+_0x209520]=[]),_0x359186[_0x5cfc7b+_0x209520][_0x5417b0]=_0x4b31b4,_0x16e30c[_0x544d52+_0x209520][_0x5417b0]=_0x4b31b4;}}_0x544d52++,_0x2e0049[_0x2b08b8(0x149)][_0xc1c61e][_0x2b08b8(0x197)]?(_0x4b024a++,_0x5cfc7b=0x0):_0x5cfc7b++;}}_0x544d52=0x0,_0x4b024a=0x0,_0x5cfc7b=0x0;for(let _0x35eb05=0x0;_0x35eb05<_0x1395ec[_0x2b08b8(0xfc)]();_0x35eb05++){const _0x21af33=_0x2e0049[_0x2b08b8(0x149)][_0x35eb05];if(!_0xa213&&_0x21af33['isBottomTotal']&&_0x21af33[_0x2b08b8(0x110)]!==0x0){_0x4b024a++,_0x5cfc7b=0x0;continue;}if(!(!_0x2cc45c&&_0x21af33[_0x2b08b8(0x197)]&&_0x21af33['level']===0x0)){for(let _0x5d37e3=0x0;_0x5d37e3<_0x1395ec[_0x2b08b8(0x187)]();_0x5d37e3++){const _0x34e83d={...(_0x264c38=(_0x4d0255=_0x1395ec[_0x2b08b8(0x141)])==null?void 0x0:_0x4d0255[_0x35eb05])==null?void 0x0:_0x264c38[_0x5d37e3]};if(_0x34e83d['v']){const _0x3f4d12=_0x2e0049[_0x2b08b8(0x149)][_0x35eb05][_0x2b08b8(0x12c)],_0x2da029=_0x50af69[_0x2b08b8(0x149)][_0x5d37e3]['valueIndex'],_0x59a45c=Math[_0x2b08b8(0x184)](_0x3f4d12,_0x2da029),_0xe45f7d=_0x46ddb0['getValueFields']()['concat']();let _0x522db5='';_0x59a45c<0x0?_0x522db5=(_0x34d5d6=_0xe45f7d[0x0])!=null?_0x34d5d6:'':_0x522db5=(_0x135c40=_0xe45f7d[_0x59a45c])!=null?_0x135c40:'';const _0x12a1cd=(_0x12671a=_0x1e4bba[_0x522db5])!=null?_0x12671a:'';_0x16e30c[_0x544d52+_0x209520]||(_0x16e30c[_0x544d52+_0x209520]=[]);let _0x3b5a4d=_0x3ee91b[_0x4b024a];_0x3b5a4d||(_0x3b5a4d=[..._0xca950],_0x3ee91b[_0x4b024a]=_0x3b5a4d),_0x3b5a4d[_0x5cfc7b+_0x209520]||(_0x3b5a4d[_0x5cfc7b+_0x209520]=[]);const _0x1ee295=_0x12a1cd?m[_0x2b08b8(0x116)][_0x2b08b8(0x175)](_0x12a1cd,Number(_0x34e83d['v'])):_0x34e83d['v'];_0x3b5a4d[_0x5cfc7b+_0x209520][_0x5d37e3+_0x34c100]=_0x1ee295,_0x16e30c[_0x544d52+_0x209520][_0x5d37e3+_0x34c100]=_0x1ee295;}}_0x544d52++,_0x2e0049[_0x2b08b8(0x149)][_0x35eb05][_0x2b08b8(0x197)]?(_0x4b024a++,_0x5cfc7b=0x0):_0x5cfc7b++;}}return{'dataArr':_0x16e30c,'dataArrWithSplit':_0x3ee91b};}class re{constructor(_0x237545,_0x130e7f,_0x2e064d,_0x5ed3c0){const _0x3fe020=_0x5a95f4;y(this,_0x3fe020(0xf7)),y(this,_0x3fe020(0xf5)),y(this,'_injector'),y(this,_0x3fe020(0x174)),y(this,_0x3fe020(0x186)),(this[_0x3fe020(0x132)]=_0x237545,this[_0x3fe020(0xf7)]=_0x130e7f,this['_sourceData']=_0x2e064d,this[_0x3fe020(0x186)]=_0x5ed3c0);const _0x3a28a6=this[_0x3fe020(0x132)][_0x3fe020(0x1b7)](m[_0x3fe020(0x162)]);this[_0x3fe020(0x174)]=_0x3a28a6['getCurrentLocale']()===m[_0x3fe020(0x129)][_0x3fe020(0x102)];}[_0x5a95f4(0x182)](_0x32bef3){const _0x344498=_0x5a95f4,_0x140005=this[_0x344498(0xf7)]['getDataFieldIdByDisplayName'](_0x32bef3);if(!_0x140005)throw new Error(_0x344498(0x194)+_0x32bef3+_0x344498(0xfb));return _0x140005;}[_0x5a95f4(0x18b)](_0x1002bc,_0x356aaa){const _0x5a4464=_0x5a95f4,_0x422b1f=this[_0x5a4464(0x182)](_0x1002bc),_0xd6aa71=this[_0x5a4464(0xf7)][_0x5a4464(0x10c)](_0x422b1f,_0x356aaa);if(!_0xd6aa71)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x1002bc+_0x5a4464(0x18d));if(_0x356aaa===r[_0x5a4464(0x14f)][_0x5a4464(0x1bc)]){const _0x53605d=_0xd6aa71[_0x5a4464(0x136)](),_0xd02cd4=this[_0x5a4464(0xf7)][_0x5a4464(0xf0)](_0x53605d);if(_0xd02cd4){const _0x3895a4=_0xd02cd4==null?void 0x0:_0xd02cd4[_0x5a4464(0x163)]();this[_0x5a4464(0xf7)][_0x5a4464(0x192)](_0x53605d,_0x3895a4===r[_0x5a4464(0x137)][_0x5a4464(0x122)]?r[_0x5a4464(0x11c)][_0x5a4464(0x111)]:r[_0x5a4464(0x11c)][_0x5a4464(0x188)]);}const _0x3ef3ee=this[_0x5a4464(0xf7)]['getValueIndex'](),_0x3581ae=this[_0x5a4464(0xf7)][_0x5a4464(0xe0)](),_0x23befc=this[_0x5a4464(0xf7)]['getFieldCountByArea'](r[_0x5a4464(0x14f)]['Value']);if(_0x3ef3ee===-0x1&&_0x23befc>0x1){const _0x2a6d7f=_0x3581ae===r[_0x5a4464(0x151)][_0x5a4464(0x16b)]?r['PivotTableValuePositionEnum'][_0x5a4464(0x1b4)]:_0x3581ae,_0x35c1bc=_0x2a6d7f===r[_0x5a4464(0x151)][_0x5a4464(0x19f)]?r['PivotTableFiledAreaEnum'][_0x5a4464(0x19f)]:r[_0x5a4464(0x14f)][_0x5a4464(0x1b4)];this['_pivot'][_0x5a4464(0xee)](_0x2a6d7f,this[_0x5a4464(0xf7)]['getFieldCountByArea'](_0x35c1bc));}}else{if(_0x356aaa===r['PivotTableFiledAreaEnum'][_0x5a4464(0x19f)]||_0x356aaa===r[_0x5a4464(0x14f)][_0x5a4464(0x1b4)]){const _0x25e82e=_0xd6aa71[_0x5a4464(0x136)](),_0x2158d2=this['_pivot']['getDataFieldByTableId'](_0x25e82e);if(_0x2158d2&&(_0x2158d2==null?void 0x0:_0x2158d2[_0x5a4464(0x163)]())===r['PivotDataFieldDataTypeEnum'][_0x5a4464(0x112)]){const _0x199c54=_0x2158d2[_0x5a4464(0x189)]();_0x199c54&&this[_0x5a4464(0xf7)][_0x5a4464(0x15f)](_0x25e82e,_0x199c54);}}}return _0xd6aa71;}[_0x5a95f4(0x160)](_0x5ef9e7,_0x28207a){const _0x3d003c=_0x5a95f4,_0x5ddb46=this[_0x3d003c(0x182)](_0x5ef9e7),_0x3aba45=this[_0x3d003c(0xf7)][_0x3d003c(0x10c)](_0x5ddb46,r[_0x3d003c(0x14f)][_0x3d003c(0x118)]);return _0x3aba45['setFilterInfo'](_0x28207a),_0x3aba45;}[_0x5a95f4(0xe7)](_0xe6e9bc,_0x490e84){const _0x293d20=_0x5a95f4,_0xf2ed46=this[_0x293d20(0x18b)](_0xe6e9bc,r[_0x293d20(0x14f)][_0x293d20(0x1bc)]);return _0x490e84!=null&&_0x490e84[_0x293d20(0x17c)]&&_0xf2ed46[_0x293d20(0xf1)](_0x490e84==null?void 0x0:_0x490e84[_0x293d20(0x17c)]),_0xf2ed46;}['removeFieldWithName'](_0x15e66c){const _0x1a48fc=_0x5a95f4,_0x22431b=this[_0x1a48fc(0x182)](_0x15e66c);this[_0x1a48fc(0xf7)][_0x1a48fc(0x14e)](_0x22431b)[_0x1a48fc(0x10f)](_0x4b2bca=>{const _0x2b1b38=_0x1a48fc,_0x30aada=_0x4b2bca[_0x2b1b38(0x136)]();this[_0x2b1b38(0xf7)]['removeField'](_0x30aada);});}[_0x5a95f4(0x140)](_0x3d6d23={}){const _0x170bb2=_0x5a95f4,_0x3d2233=this[_0x170bb2(0xf7)][_0x170bb2(0x117)](),{dataArr:_0x3f0f95,dataArrWithSplit:_0x1b2df6}=le(this[_0x170bb2(0xf7)],_0x3d2233,this[_0x170bb2(0x174)],_0x3d6d23);return{'dataArr':_0x3f0f95,'dataArrWithSplit':_0x1b2df6};}[_0x5a95f4(0x1bd)](_0x3a850a){const _0x236da6=_0x5a95f4;return this[_0x236da6(0xf7)]['getFieldDisplayNames']()[_0x3a850a];}[_0x5a95f4(0x133)](){const _0x52124b=_0x5a95f4;this[_0x52124b(0xf7)]['reset']();}['resetDimension'](_0xbabe0c){const _0x3b419a=_0x5a95f4;this[_0x3b419a(0xf7)][_0x3b419a(0x133)](_0xbabe0c);}[_0x5a95f4(0x171)](_0x5e2a40){const _0x50f04e=_0x5a95f4,_0x1b995c=this[_0x50f04e(0xf7)]['dataFieldsCollection'],_0x146d29=_0x1b995c['getFieldIds']()[_0x5e2a40];if(_0x146d29)return _0x1b995c[_0x50f04e(0x146)](_0x146d29)[_0x50f04e(0x163)]();}['getFieldDataTypeByFieldName'](_0x4a1c67){const _0x4336db=_0x5a95f4,_0x3db100=this['_getSourceIdByName'](_0x4a1c67),_0x24939a=this[_0x4336db(0xf7)]['dataFieldsCollection'][_0x4336db(0x146)](_0x3db100);return _0x24939a==null?void 0x0:_0x24939a['getFieldDataType']();}[_0x5a95f4(0xf6)](){const _0x2a617d=_0x5a95f4,_0x6f3eb4={};return[[r[_0x2a617d(0x14f)][_0x2a617d(0x19f)],_0x2a617d(0xf8)],[r[_0x2a617d(0x14f)][_0x2a617d(0x1b4)],'column'],[r[_0x2a617d(0x14f)][_0x2a617d(0x118)],'filter'],[r[_0x2a617d(0x14f)][_0x2a617d(0x1bc)],_0x2a617d(0x11b)]]['forEach'](_0x1391b2=>{const _0x1eade4=_0x2a617d,[_0x3a414c,_0x536d89]=_0x1391b2;this[_0x1eade4(0xf7)][_0x1eade4(0x15e)](_0x3a414c,_0x3f1e1d=>{const _0x48648a=_0x1eade4;_0x6f3eb4[_0x536d89]||(_0x6f3eb4[_0x536d89]=[]),_0x6f3eb4[_0x536d89][_0x48648a(0xef)](_0x3f1e1d['getSourceName']());});}),Object[_0x2a617d(0x120)](_0x6f3eb4)[_0x2a617d(0x148)]>0x0?_0x6f3eb4:void 0x0;}['getPivotSourceData'](){const _0x5a6882=_0x5a95f4;return this[_0x5a6882(0xf5)];}[_0x5a95f4(0x145)](_0x1e8cd6){const _0x359ae8=_0x5a95f4;this[_0x359ae8(0xf7)][_0x359ae8(0x145)](_0x1e8cd6);}[_0x5a95f4(0x12d)](){const _0xfdad44=_0x5a95f4;this['_pivot'][_0xfdad44(0x152)]();}}class ve extends r[_0x5a95f4(0x157)]{[_0x5a95f4(0xfa)](_0x766c9b){const _0x106b39=_0x5a95f4;if(Array[_0x106b39(0x19d)](_0x766c9b)&&_0x766c9b[_0x106b39(0x148)]>0x0){const _0x2cf20f=[],_0x5ea6c0=_0x766c9b[0x0],_0xb793c6={},_0x2ccfdc=_0x766c9b[0x1];for(let _0x491ffb=0x0;_0x491ffb<_0x2ccfdc[_0x106b39(0x148)];_0x491ffb++){const _0x5aa960=_0x2ccfdc[_0x491ffb];if(typeof _0x5aa960==_0x106b39(0x165)&&_0x5aa960 instanceof Date)_0xb793c6[_0x491ffb]=Z;else{if(typeof _0x5aa960==_0x106b39(0x17d)){const _0x298a0c=new Date(_0x5aa960);Number[_0x106b39(0x1af)](_0x298a0c[_0x106b39(0x100)]())||(_0xb793c6[_0x491ffb]=Z);}}}for(let _0x413944=0x1;_0x413944<_0x766c9b[_0x106b39(0x148)];_0x413944++){const _0x43b051=_0x766c9b[_0x413944],_0x1c494c=[];for(let _0x5741ff=0x0;_0x5741ff<_0x43b051[_0x106b39(0x148)];_0x5741ff++)if(_0xb793c6[_0x5741ff]){const _0x5e8ac7=_0x43b051[_0x5741ff],_0x15225d=typeof _0x5e8ac7==_0x106b39(0x165)&&_0x5e8ac7 instanceof Date?_0x5e8ac7:new Date(_0x5e8ac7),_0x2fe4f2={'v':de(_0x15225d[_0x106b39(0x100)]()),'f':_0xb793c6[_0x5741ff]};_0x1c494c[_0x106b39(0xef)](_0x2fe4f2);}else _0x1c494c[_0x106b39(0xef)](_0x43b051[_0x5741ff]);_0x2cf20f[_0x106b39(0xef)](_0x1c494c);}return{'header':_0x5ea6c0,'data':_0x2cf20f};}else throw new Error(_0x106b39(0xeb));}}class ce extends A[_0x5a95f4(0x138)]{[_0x5a95f4(0xe5)](_0x146115){const _0x114b30=_0x5a95f4,_0x229f90=_0x146115[_0x114b30(0x1b7)](m['ICommandService']);this[_0x114b30(0x178)](this[_0x114b30(0x13c)][_0x114b30(0x150)],()=>_0x229f90[_0x114b30(0x11f)](_0xca1abd=>{const _0x4cea1c=_0x114b30;switch(_0xca1abd['id']){case l[_0x4cea1c(0x17e)]['id']:{const _0x36e59a=_0xca1abd[_0x4cea1c(0xda)];this[_0x4cea1c(0xdd)](_0x36e59a);break;}}})),this['registerEventHandler'](this['Event']['BeforePivotTableMove'],()=>_0x229f90[_0x114b30(0x11f)](_0x17ff4d=>{const _0x4d0123=_0x114b30;switch(_0x17ff4d['id']){case l[_0x4d0123(0x1a6)]['id']:case l['AddPivotTableCommand']['id']:{const _0x4ce571=_0x17ff4d['params'];this[_0x4d0123(0x13a)](_0x4ce571);break;}}})),this[_0x114b30(0x178)](this['Event'][_0x114b30(0x11e)],()=>_0x229f90[_0x114b30(0xf2)](_0xbca55f=>{const _0x17c6e2=_0x114b30;if(_0xbca55f['id']===l[_0x17c6e2(0x1a6)]['id']||_0xbca55f['id']===l[_0x17c6e2(0x106)]['id']){const _0x315ec2=_0xbca55f[_0x17c6e2(0xda)];this['_fireAddPivotTableEvent'](_0x315ec2);}})),this[_0x114b30(0x178)](this['Event']['PivotTableMoved'],()=>_0x229f90['onCommandExecuted'](_0x2e004e=>{const _0x342441=_0x114b30;if(_0x2e004e['id']===l['MovePivotTableCommand']['id']){const _0x3ee36d=_0x2e004e['params'];this[_0x342441(0x10d)](_0x3ee36d);}})),this['registerEventHandler'](this['Event'][_0x114b30(0x161)],()=>_0x229f90[_0x114b30(0xf2)](_0xd62430=>{const _0x257164=_0x114b30;if(_0xd62430['id']===l[_0x257164(0xf3)]['id']){const _0x40fbda=_0xd62430[_0x257164(0xda)];this[_0x257164(0x17f)](_0x40fbda);}})),this['registerEventHandler'](this[_0x114b30(0x13c)][_0x114b30(0x195)],()=>_0x229f90[_0x114b30(0xf2)](_0x249682=>{const _0x523c6c=_0x114b30;if(_0x249682['id']===l[_0x523c6c(0x173)]['id']){const _0x61ee3a=_0x249682[_0x523c6c(0xda)];this[_0x523c6c(0x166)](_0x61ee3a);}})),this[_0x114b30(0x178)](this[_0x114b30(0x13c)][_0x114b30(0x159)],()=>_0x229f90[_0x114b30(0xf2)](_0x3e19b9=>{const _0x1c8cbc=_0x114b30;if(_0x3e19b9['id']===l[_0x1c8cbc(0x193)]['id']){const _0x598ac6=_0x3e19b9[_0x1c8cbc(0xda)];this[_0x1c8cbc(0x199)](_0x598ac6);}})),this[_0x114b30(0x178)](this[_0x114b30(0x13c)][_0x114b30(0x167)],()=>_0x229f90[_0x114b30(0xf2)](_0x523984=>{const _0x1dc934=_0x114b30;if(_0x523984['id']===l[_0x1dc934(0x124)]['id']){const _0x232ca3=_0x523984[_0x1dc934(0xda)];this[_0x1dc934(0x1be)](_0x232ca3);}})),this[_0x114b30(0x178)](this[_0x114b30(0x13c)][_0x114b30(0x1b8)],()=>_0x229f90[_0x114b30(0xf2)](_0x2fc04b=>{const _0x57eab0=_0x114b30;if(_0x2fc04b['id']===l[_0x57eab0(0x14c)]['id']){const _0x2cece2=_0x2fc04b[_0x57eab0(0xda)];this[_0x57eab0(0x1a2)](_0x2cece2);}})),this[_0x114b30(0x178)](this['Event'][_0x114b30(0x1b0)],()=>_0x229f90['onCommandExecuted'](_0x15e933=>{const _0x4d6279=_0x114b30;if(_0x15e933['id']===l[_0x4d6279(0x176)]['id']){const _0x1994f0=_0x15e933[_0x4d6279(0xda)];this[_0x4d6279(0x131)](_0x1994f0);}})),this[_0x114b30(0x178)](this[_0x114b30(0x13c)]['PivotTableFieldSortChanged'],()=>_0x229f90[_0x114b30(0xf2)](_0x2497aa=>{const _0x16cbe2=_0x114b30;if(_0x2497aa['id']===l[_0x16cbe2(0x1ac)]['id']){const _0x3a7759=_0x2497aa[_0x16cbe2(0xda)];this[_0x16cbe2(0x14a)](_0x3a7759);}})),this[_0x114b30(0x178)](this[_0x114b30(0x13c)]['PivotTableFieldSettingChanged'],()=>_0x229f90[_0x114b30(0xf2)](_0x4617ed=>{const _0x31464b=_0x114b30;if(_0x4617ed['id']===l[_0x31464b(0xf9)]['id']){const _0x4b70c8=_0x4617ed['params'];this[_0x31464b(0x1b3)](_0x4b70c8);}})),this['registerEventHandler'](this[_0x114b30(0x13c)][_0x114b30(0x107)],()=>_0x229f90[_0x114b30(0xf2)](_0x393a5e=>{const _0x122d12=_0x114b30;if(_0x393a5e['id']===l[_0x122d12(0x15d)]['id']){const _0x1321cf=_0x393a5e['params'];this['_firePivotTableValuePositionChangedEvent'](_0x1321cf);}}));const _0x300ecc=_0x146115[_0x114b30(0x1b7)](m['LifecycleService']);this[_0x114b30(0x134)](_0x300ecc[_0x114b30(0xe1)][_0x114b30(0x130)](_0x1a720a=>{const _0x3a65b7=_0x114b30;if(_0x1a720a===m[_0x3a65b7(0x17b)]['Ready']){const _0x278046=_0x146115[_0x3a65b7(0x1b7)](l[_0x3a65b7(0x144)]);this[_0x3a65b7(0x178)](this[_0x3a65b7(0x13c)]['PivotTableRendered'],()=>_0x278046['viewUpdate$'][_0x3a65b7(0x1a9)](ie[_0x3a65b7(0x185)](0x32))['subscribe'](_0x3eb14e=>{this['_fireRenderPivotTableEvent'](_0x3eb14e);}));}}));}['_firePivotTableFieldAddedEvent'](_0xad5c66){const _0xf3a033=_0x5a95f4;if(_0xad5c66){const {unitId:_0x55feeb,subUnitId:_0x355ed0,pivotTableId:_0x495e7f,dataFieldId:_0x2e9166,fieldArea:_0x379d90,index:_0x341e3e}=_0xad5c66;this[_0xf3a033(0x10a)](this[_0xf3a033(0x13c)]['PivotTableFieldAdded'],{'unitId':_0x55feeb,'subUnitId':_0x355ed0,'pivotTableId':_0x495e7f,'dataFieldId':_0x2e9166,'fieldArea':_0x379d90,'index':_0x341e3e});}}['_firePivotTableFieldRemovedEvent'](_0x55eeec){const _0x44a933=_0x5a95f4;if(_0x55eeec){const {unitId:_0x5ba29a,subUnitId:_0x57ed06,pivotTableId:_0x26f9f6,fieldIds:_0x4f167d}=_0x55eeec;this[_0x44a933(0x10a)](this[_0x44a933(0x13c)]['PivotTableFieldRemoved'],{'unitId':_0x5ba29a,'subUnitId':_0x57ed06,'pivotTableId':_0x26f9f6,'fieldIds':_0x4f167d[_0x44a933(0x12b)]()});}}[_0x5a95f4(0x1be)](_0x73a09d){const _0x560e04=_0x5a95f4;if(_0x73a09d){const {unitId:_0x51d5d7,subUnitId:_0x333c7,pivotTableId:_0x28afcf,fieldId:_0x560157,area:_0x2e4dcc,index:_0x5b1ea9}=_0x73a09d;this['fireEvent'](this['Event'][_0x560e04(0x167)],{'unitId':_0x51d5d7,'subUnitId':_0x333c7,'pivotTableId':_0x28afcf,'fieldId':_0x560157,'area':_0x2e4dcc,'index':_0x5b1ea9});}}[_0x5a95f4(0x1a2)](_0x2e88b7){const _0x3ad59a=_0x5a95f4;if(_0x2e88b7){const {unitId:_0x4bd5bc,subUnitId:_0x5f4542,row:_0x4da6a8,col:_0x59a71a,collapse:_0x352fb1}=_0x2e88b7;this['fireEvent'](this['Event'][_0x3ad59a(0x1b8)],{'unitId':_0x4bd5bc,'subUnitId':_0x5f4542,'row':_0x4da6a8,'col':_0x59a71a,'collapse':_0x352fb1});}}[_0x5a95f4(0x131)](_0x5134af){const _0x293d3c=_0x5a95f4;if(_0x5134af){const {unitId:_0x40f690,subUnitId:_0x1db454,pivotTableId:_0x68be6a,tableFieldId:_0x5cab8b,items:_0x4fe942,isAll:_0x425c93}=_0x5134af;this[_0x293d3c(0x10a)](this['Event'][_0x293d3c(0x1b0)],{'unitId':_0x40f690,'subUnitId':_0x1db454,'pivotTableId':_0x68be6a,'tableFieldId':_0x5cab8b,'items':_0x4fe942['concat'](),'isAll':_0x425c93});}}[_0x5a95f4(0x14a)](_0x88f7ae){const _0x1446ba=_0x5a95f4;if(_0x88f7ae){const {unitId:_0x5b35d8,subUnitId:_0x1445c3,pivotTableId:_0x50d30b,tableFieldId:_0x1443ea,info:_0x1bdddd}=_0x88f7ae;this[_0x1446ba(0x10a)](this[_0x1446ba(0x13c)][_0x1446ba(0x104)],{'unitId':_0x5b35d8,'subUnitId':_0x1445c3,'pivotTableId':_0x50d30b,'tableFieldId':_0x1443ea,'info':{..._0x1bdddd}});}}[_0x5a95f4(0x1b3)](_0x1f2f59){const _0x4ae389=_0x5a95f4;if(_0x1f2f59){const {unitId:_0x4d8034,subUnitId:_0x4d2d1c,tableFieldId:_0x5809e2,pivotTableId:_0x12ae26,displayName:_0x128b9d,format:_0x35e873,subtotalType:_0x43fc33,tableFieldInfo:_0x113c9a,dataFieldInfo:_0x4d2d3a}=_0x1f2f59;this[_0x4ae389(0x10a)](this['Event']['PivotTableFieldSettingChanged'],{'unitId':_0x4d8034,'subUnitId':_0x4d2d1c,'tableFieldId':_0x5809e2,'pivotTableId':_0x12ae26,'displayName':_0x128b9d,'format':_0x35e873,'subtotalType':_0x43fc33,'tableFieldInfo':_0x113c9a,'dataFieldInfo':_0x4d2d3a});}}[_0x5a95f4(0x113)](_0x2ee730){const _0x2badb3=_0x5a95f4;if(_0x2ee730){const {pivotTableId:_0x57410e,position:_0x5c5820,index:_0x54cf5f}=_0x2ee730;this[_0x2badb3(0x10a)](this[_0x2badb3(0x13c)]['PivotTableValuePositionChanged'],{'pivotTableId':_0x57410e,'position':_0x5c5820,'index':_0x54cf5f});}}[_0x5a95f4(0xe2)](_0x2cf790){const _0x2c3168=_0x5a95f4;if(_0x2cf790){const {positionType:_0x3f8bcc,pivotTableId:_0x3a82cf,pivotTableConfig:_0x158ffa}=_0x2cf790,{targetCellInfo:_0x2abc07,sourceRangeInfo:_0x19eb0b}=_0x158ffa,{unitId:_0x3f2726}=_0x2abc07;this['fireEvent'](this['Event']['PivotTableAdded'],{'unitId':_0x3f2726,'positionType':_0x3f8bcc,'pivotTableId':_0x3a82cf,'sourceRangeInfo':{'startRow':_0x19eb0b[_0x2c3168(0x18f)][_0x2c3168(0x139)],'endRow':_0x19eb0b['range'][_0x2c3168(0x1ad)],'startColumn':_0x19eb0b[_0x2c3168(0x18f)][_0x2c3168(0x1b9)],'endColumn':_0x19eb0b['range'][_0x2c3168(0xfd)],'unitId':_0x19eb0b[_0x2c3168(0x103)],'subUnitId':_0x19eb0b['subUnitId'],'sheetName':_0x19eb0b[_0x2c3168(0x1a4)]},'targetCellInfo':{'row':_0x2abc07[_0x2c3168(0xf8)],'column':_0x2abc07[_0x2c3168(0x1ba)],'sheetName':_0x2abc07[_0x2c3168(0x1a4)],'unitId':_0x2abc07[_0x2c3168(0x103)],'subUnitId':_0x2abc07[_0x2c3168(0x105)]}});}}[_0x5a95f4(0x13a)](_0x545996){const _0x11762a=_0x5a95f4;if(_0x545996){const {positionType:_0x2deb47,pivotTableId:_0xa0e1eb,pivotTableConfig:_0x35e768}=_0x545996,{targetCellInfo:_0x149bee,sourceRangeInfo:_0x1692b5}=_0x35e768,{unitId:_0x5bbb9d}=_0x149bee,_0x1a11f9={'unitId':_0x5bbb9d,'positionType':_0x2deb47,'pivotTableId':_0xa0e1eb,'sourceRangeInfo':{'startRow':_0x1692b5[_0x11762a(0x18f)][_0x11762a(0x139)],'endRow':_0x1692b5['range'][_0x11762a(0x1ad)],'startColumn':_0x1692b5['range'][_0x11762a(0x1b9)],'endColumn':_0x1692b5['range']['endColumn'],'unitId':_0x1692b5[_0x11762a(0x103)],'subUnitId':_0x1692b5[_0x11762a(0x105)],'sheetName':_0x1692b5[_0x11762a(0x1a4)]},'targetCellInfo':{'row':_0x149bee[_0x11762a(0xf8)],'column':_0x149bee[_0x11762a(0x1ba)],'sheetName':_0x149bee[_0x11762a(0x1a4)],'unitId':_0x149bee[_0x11762a(0x103)],'subUnitId':_0x149bee['subUnitId']},'cancel':!0x1};if(this[_0x11762a(0x10a)](this['Event'][_0x11762a(0x150)],_0x1a11f9),_0x1a11f9[_0x11762a(0x1b6)])throw new Error(_0x11762a(0x1bf));}}[_0x5a95f4(0x17f)](_0x16ab48){const _0xd1e666=_0x5a95f4;if(_0x16ab48){const {unitId:_0x1e494c,pivotTableId:_0x5b4891}=_0x16ab48;this['fireEvent'](this['Event'][_0xd1e666(0x161)],{'unitId':_0x1e494c,'pivotTableId':_0x5b4891});}}['_fireBeforeMovePivotTableEvent'](_0x54bec0){const _0x243dfc=_0x5a95f4;if(_0x54bec0){const {originTargetInfo:_0x2eaa86,pivotTableId:_0x122bc9,targetCellInfo:_0x5a5bef}=_0x54bec0,{unitId:_0x223be1}=_0x2eaa86,_0x36e166=this['_injector'][_0x243dfc(0x1b7)](l[_0x243dfc(0x196)])['getPivotTableConfig'](_0x2eaa86['unitId'],_0x2eaa86[_0x243dfc(0x105)],_0x122bc9);if(!_0x36e166)return;const _0x328618={'unitId':_0x223be1,'pivotTableId':_0x122bc9,'originTargetInfo':{'row':_0x36e166[_0x243dfc(0x127)][_0x243dfc(0xf8)],'column':_0x36e166['targetCellInfo']['col'],'unitId':_0x36e166[_0x243dfc(0x127)]['unitId'],'subUnitId':_0x36e166[_0x243dfc(0x127)][_0x243dfc(0x105)]},'targetCellInfo':{'row':_0x5a5bef[_0x243dfc(0xf8)],'column':_0x5a5bef[_0x243dfc(0x1ba)],'unitId':_0x5a5bef[_0x243dfc(0x103)],'subUnitId':_0x5a5bef[_0x243dfc(0x105)]},'cancel':!0x1};if(this['fireEvent'](this[_0x243dfc(0x13c)][_0x243dfc(0x17a)],_0x328618),_0x328618[_0x243dfc(0x1b6)])throw new Error(_0x243dfc(0x119));}}[_0x5a95f4(0x10d)](_0xa532ce){const _0x5e38a8=_0x5a95f4;if(_0xa532ce){const {originTargetInfo:_0x26de51,pivotTableId:_0x40a3d4,targetCellInfo:_0x2d2183}=_0xa532ce,{unitId:_0x2bd869}=_0x26de51,_0x18f02a=this['_injector'][_0x5e38a8(0x1b7)](l[_0x5e38a8(0x196)])[_0x5e38a8(0x11d)](_0x26de51[_0x5e38a8(0x103)],_0x26de51[_0x5e38a8(0x105)],_0x40a3d4);if(!_0x18f02a)return;this[_0x5e38a8(0x10a)](this['Event'][_0x5e38a8(0x1a5)],{'unitId':_0x2bd869,'pivotTableId':_0x40a3d4,'originTargetInfo':{'row':_0x18f02a[_0x5e38a8(0x127)][_0x5e38a8(0xf8)],'column':_0x18f02a[_0x5e38a8(0x127)][_0x5e38a8(0x1ba)],'unitId':_0x18f02a[_0x5e38a8(0x127)][_0x5e38a8(0x103)],'subUnitId':_0x18f02a[_0x5e38a8(0x127)][_0x5e38a8(0x105)]},'targetCellInfo':{'row':_0x2d2183[_0x5e38a8(0xf8)],'column':_0x2d2183[_0x5e38a8(0x1ba)],'unitId':_0x2d2183[_0x5e38a8(0x103)],'subUnitId':_0x2d2183['subUnitId']}});}}[_0x5a95f4(0xdb)](_0x56faf9){const _0x3491ae=_0x5a95f4;if(_0x56faf9){const {unitId:_0x137d10,subUnitId:_0x2677cd,pivotTableId:_0x166342,type:_0x1103c1,rangesCache:_0x10f313,isEmpty:_0x42c3ed}=_0x56faf9;this[_0x3491ae(0x10a)](this[_0x3491ae(0x13c)][_0x3491ae(0x18e)],{'unitId':_0x137d10,'subUnitId':_0x2677cd,'pivotTableId':_0x166342,'changeType':_0x1103c1,'isEmpty':!!_0x42c3ed,'rangeInfo':_0x10f313});}}['generatePivotTable'](_0x2f686a,_0x20a949){const _0x47987e=_0x5a95f4,_0x3d982e=(_0x20a949?new _0x20a949():new ve())[_0x47987e(0x18a)](_0x47987e(0x141),_0x2f686a),_0x16040a=_0x2f686a[0x0];_0x3d982e[_0x47987e(0x135)]()[_0x47987e(0x10f)]((_0x2ac0bf,_0x5c225a)=>{_0x3d982e['setDisplayName'](_0x2ac0bf,_0x16040a[_0x5c225a]);});const _0x47f324=r[_0x47987e(0xe9)](0x8),_0x3fa73d=new r[(_0x47987e(0xe4))](_0x3d982e,void 0x0,_0x47f324);return new re(this[_0x47987e(0x132)],_0x3fa73d,_0x2f686a,_0x47f324);}}A['FUniver'][_0x5a95f4(0x156)](ce);