@univerjs-pro/sheets-pivot 0.6.10-nightly.202504161609 → 0.6.10

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 _0x483097=_0x1967;(function(_0x2eeb65,_0x176b58){const _0x58735e=_0x1967,_0x1d99a5=_0x2eeb65();while(!![]){try{const _0x8c0770=parseInt(_0x58735e(0xc4))/0x1+-parseInt(_0x58735e(0x15f))/0x2+parseInt(_0x58735e(0x9a))/0x3+parseInt(_0x58735e(0xd1))/0x4+-parseInt(_0x58735e(0xea))/0x5+-parseInt(_0x58735e(0xba))/0x6+-parseInt(_0x58735e(0xb0))/0x7*(-parseInt(_0x58735e(0x16c))/0x8);if(_0x8c0770===_0x176b58)break;else _0x1d99a5['push'](_0x1d99a5['shift']());}catch(_0x1aba1b){_0x1d99a5['push'](_0x1d99a5['shift']());}}}(_0xba91,0x41923));var ee=Object[_0x483097(0x173)],te=(_0x4eb5e5,_0x314f87,_0x208ebc)=>_0x314f87 in _0x4eb5e5?ee(_0x4eb5e5,_0x314f87,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208ebc}):_0x4eb5e5[_0x314f87]=_0x208ebc,y=(_0x408ef1,_0x357d8d,_0x50fd59)=>te(_0x408ef1,typeof _0x357d8d!=_0x483097(0x12c)?_0x357d8d+'':_0x357d8d,_0x50fd59);const r=require(_0x483097(0x103)),l=require(_0x483097(0xf3)),m=require(_0x483097(0x132)),R=require(_0x483097(0x137)),A=require(_0x483097(0x102)),ie=require('rxjs');class x{constructor(_0x259eab,_0x5790fb,_0x545d21,_0x562478){const _0x163100=_0x483097;y(this,_0x163100(0xda)),y(this,'subUnitId'),y(this,'pivotTableId'),y(this,_0x163100(0x168)),(this[_0x163100(0xda)]=_0x259eab,this['subUnitId']=_0x5790fb,this[_0x163100(0x8c)]=_0x545d21,this[_0x163100(0x168)]=_0x562478);}[_0x483097(0x150)](){const _0x21f245=_0x483097;return this[_0x21f245(0x168)][_0x21f245(0xcb)](l['SheetsPivotTableConfigModel'])['getPivotTableConfig'](this[_0x21f245(0xda)],this[_0x21f245(0x8d)],this[_0x21f245(0x8c)]);}[_0x483097(0x14b)](_0x84a4ad){const _0x31f72e=_0x483097,_0x30ce55=this['_injector'][_0x31f72e(0xcb)](m['ICommandService']),_0x2299ae={'unitId':this[_0x31f72e(0xda)],'subUnitId':this[_0x31f72e(0x8d)],'pivotTableId':this[_0x31f72e(0x8c)],'pivotTableConfig':_0x84a4ad};return _0x30ce55['executeCommand'](l['SetPivotFieldsConfigCommand']['id'],_0x2299ae);}['reset'](_0x2afd5c){const _0xadc1e9=_0x483097,_0x1bd4f4=this[_0xadc1e9(0x168)][_0xadc1e9(0xcb)](m[_0xadc1e9(0xa0)]),_0x14fe0b={'unitId':this[_0xadc1e9(0xda)],'subUnitId':this[_0xadc1e9(0x8d)],'pivotTableId':this[_0xadc1e9(0x8c)],'resetArea':_0x2afd5c};return _0x1bd4f4[_0xadc1e9(0x93)](l[_0xadc1e9(0xf9)]['id'],_0x14fe0b);}['getPivotTableId'](){return this['pivotTableId'];}[_0x483097(0x97)](_0x4e85e5){const _0x399ee9=_0x483097,_0x392f3a=this['_injector'][_0x399ee9(0xcb)](l[_0x399ee9(0xe0)])[_0x399ee9(0x144)](this[_0x399ee9(0xda)],this[_0x399ee9(0x8d)],this['pivotTableId']),_0x2f54fb=_0x392f3a==null?void 0x0:_0x392f3a['fieldsConfig'];if(_0x2f54fb)return _0x2f54fb[_0x399ee9(0x91)][_0x4e85e5]||_0x2f54fb['measure'][_0x4e85e5];}[_0x483097(0x140)](){const _0x17fedf=_0x483097,_0x1a1d6c=this[_0x17fedf(0x168)],_0x2b7302=this['unitId'],_0x496ffd=this[_0x17fedf(0x8c)],_0x321d52=_0x1a1d6c[_0x17fedf(0xcb)](l['SheetsPivotTableConfigModel'])['getCollection'](_0x2b7302,_0x496ffd);if(_0x321d52){const _0x42d535=_0x321d52[_0x17fedf(0x121)],_0x561647=_0x321d52[_0x17fedf(0xf2)],_0x275367=_0x321d52[_0x17fedf(0x163)],_0x245ff8=[];for(const _0x23f3f0 of _0x42d535){const _0xeb3e0b=_0x561647[_0x23f3f0];if(_0xeb3e0b){const _0x973d7d={'id':_0x23f3f0,'name':_0xeb3e0b[_0x17fedf(0xd2)],'fieldDataType':_0xeb3e0b['fieldDataType']};_0x275367&&_0x275367[_0x23f3f0]!==void 0x0&&(_0x973d7d[_0x17fedf(0x101)]=_0x275367[_0x23f3f0]),_0x245ff8['push'](_0x973d7d);}}return _0x245ff8;}return[];}[_0x483097(0xa8)](_0x350287){const _0x18a764=_0x483097;var _0x286cb3;const _0x5a7064=this[_0x18a764(0x168)][_0x18a764(0xcb)](l['SheetsPivotTableConfigModel'])[_0x18a764(0x144)](this[_0x18a764(0xda)],this['subUnitId'],this[_0x18a764(0x8c)]),_0xfd49fb=_0x5a7064==null?void 0x0:_0x5a7064[_0x18a764(0x10b)]['valueFilter'];return(_0x286cb3=_0xfd49fb==null?void 0x0:_0xfd49fb[_0x18a764(0xb8)](_0xa4ffb7=>_0xa4ffb7[_0x18a764(0x159)]===_0x350287))==null?void 0x0:_0x286cb3['filterInfo'];}[_0x483097(0x118)](){const _0x3eb2ca=_0x483097,_0x145991=this[_0x3eb2ca(0x168)]['get'](l[_0x3eb2ca(0xe0)])['getPivotTableConfig'](this[_0x3eb2ca(0xda)],this['subUnitId'],this[_0x3eb2ca(0x8c)]),_0x351aff=_0x145991==null?void 0x0:_0x145991[_0x3eb2ca(0x10b)][_0x3eb2ca(0xa5)];return(_0x351aff==null?void 0x0:_0x351aff[_0x3eb2ca(0xc1)]())||[];}['getFieldIdsByArea'](_0x458d75){const _0x33c36a=_0x483097,_0x557a5b=this[_0x33c36a(0x168)][_0x33c36a(0xcb)](l[_0x33c36a(0xe0)])[_0x33c36a(0x144)](this[_0x33c36a(0xda)],this[_0x33c36a(0x8d)],this[_0x33c36a(0x8c)]),_0x3d562a=_0x557a5b==null?void 0x0:_0x557a5b[_0x33c36a(0x10b)];if(_0x3d562a)switch(_0x458d75){case r[_0x33c36a(0x136)][_0x33c36a(0x162)]:return _0x3d562a[_0x33c36a(0x164)]['concat']();case r[_0x33c36a(0x136)]['Row']:return _0x3d562a['rowFields']['concat']();case r['PivotTableFiledAreaEnum'][_0x33c36a(0xaa)]:return _0x3d562a['valueFields'][_0x33c36a(0xc1)]();case r['PivotTableFiledAreaEnum'][_0x33c36a(0xe6)]:return _0x3d562a[_0x33c36a(0xdc)][_0x33c36a(0xc1)]();case r[_0x33c36a(0x136)]['Hidden']:return _0x3d562a[_0x33c36a(0xcf)]['concat']();}return[];}['getPivotTableRangeInfo'](){const _0x5eb76e=_0x483097;var _0x2c41b0;const _0xf821b9=(_0x2c41b0=this[_0x5eb76e(0x168)][_0x5eb76e(0xcb)](l[_0x5eb76e(0xe0)])[_0x5eb76e(0x15d)](this[_0x5eb76e(0xda)],this[_0x5eb76e(0x8d)],this['pivotTableId']))==null?void 0x0:_0x2c41b0[_0x5eb76e(0xd9)];if(_0xf821b9)return l['unionPivotViewRange'](_0xf821b9);}async[_0x483097(0xfd)](){const _0x2b2424=_0x483097;return await this['_injector'][_0x2b2424(0xcb)](m[_0x2b2424(0xa0)])[_0x2b2424(0x116)](l[_0x2b2424(0x92)]['id'],{'unitId':this[_0x2b2424(0xda)],'subUnitId':this[_0x2b2424(0x8d)],'pivotTableId':this[_0x2b2424(0x8c)]});}async['addField'](_0x5e08a4,_0x53cf1a,_0x4d7bf7){const _0x1e6f8a=_0x483097,_0x417517=this['_injector'],_0x2bc0c7=this[_0x1e6f8a(0xda)],_0x50e86e=this[_0x1e6f8a(0x8d)],_0x71f239=this[_0x1e6f8a(0x8c)],_0x386f82=_0x417517[_0x1e6f8a(0xcb)](m[_0x1e6f8a(0xa0)]),_0x202bdd=_0x417517[_0x1e6f8a(0xcb)](l[_0x1e6f8a(0xe0)]),_0x37caf3=_0x202bdd[_0x1e6f8a(0x144)](_0x2bc0c7,_0x50e86e,_0x71f239),_0x1ce9d1=_0x202bdd[_0x1e6f8a(0x90)](_0x2bc0c7,_0x71f239);if(!_0x37caf3||!_0x1ce9d1)return!0x1;let _0x43e561=_0x5e08a4;typeof _0x43e561=='number'&&(_0x43e561=_0x202bdd[_0x1e6f8a(0x90)](_0x2bc0c7,_0x71f239)['fieldIds'][_0x5e08a4]);const _0x360c1e={'unitId':_0x2bc0c7,'subUnitId':_0x50e86e,'pivotTableId':_0x71f239,'dataFieldId':_0x43e561,'fieldArea':_0x53cf1a,'index':_0x4d7bf7};return _0x386f82[_0x1e6f8a(0x93)](l[_0x1e6f8a(0x16e)]['id'],_0x360c1e);}async['removeField'](_0x29051d){const _0x2c3751=_0x483097,_0x369b18=this[_0x2c3751(0x168)],_0x72ba6a=this[_0x2c3751(0xda)],_0x218d40=this[_0x2c3751(0x8d)],_0xa38b62=this[_0x2c3751(0x8c)],_0x67b1f5=_0x369b18[_0x2c3751(0xcb)](m[_0x2c3751(0xa0)]),_0x168bc7={'unitId':_0x72ba6a,'subUnitId':_0x218d40,'pivotTableId':_0xa38b62,'fieldIds':_0x29051d};return _0x67b1f5[_0x2c3751(0x93)](l[_0x2c3751(0x127)]['id'],_0x168bc7);}async[_0x483097(0x146)](_0x57339b,_0x4a7958,_0x47e259){const _0x1bd23f=_0x483097,_0x308194=this[_0x1bd23f(0x168)],_0x771cf2=this[_0x1bd23f(0xda)],_0xaacfea=this[_0x1bd23f(0x8d)],_0x5d229a=this[_0x1bd23f(0x8c)],_0x31925e=_0x308194[_0x1bd23f(0xcb)](m[_0x1bd23f(0xa0)]),_0xe445d0={'unitId':_0x771cf2,'subUnitId':_0xaacfea,'pivotTableId':_0x5d229a,'fieldId':_0x57339b,'area':_0x4a7958,'index':_0x47e259};return _0x31925e['executeCommand'](l[_0x1bd23f(0xc7)]['id'],_0xe445d0);}async['updateValuePosition'](_0x46d4b2,_0x24b597){const _0x2fe59b=_0x483097,_0x1c5a5e=this[_0x2fe59b(0x168)],_0x28dda0=this[_0x2fe59b(0xda)],_0x59df0f=this[_0x2fe59b(0x8d)],_0x31bccd=this[_0x2fe59b(0x8c)],_0x50d760=_0x1c5a5e['get'](m['ICommandService']),_0x4f337a={'unitId':_0x28dda0,'subUnitId':_0x59df0f,'pivotTableId':_0x31bccd,'position':_0x46d4b2,'index':_0x24b597};return _0x50d760['executeCommand'](l['UpdatePivotValuePositionCommand']['id'],_0x4f337a);}async[_0x483097(0xf0)](_0x1027e5,_0x44e0f4){const _0x3e8b38=_0x483097,_0x3d38a3=this['_injector'],_0x5a8302=this[_0x3e8b38(0xda)],_0x3a7aac=this['subUnitId'],_0x364bac=this[_0x3e8b38(0x8c)],_0x571067=_0x3d38a3[_0x3e8b38(0xcb)](m[_0x3e8b38(0xa0)]),_0x3ab1a9={'unitId':_0x5a8302,'subUnitId':_0x3a7aac,'pivotTableId':_0x364bac,'fieldId':_0x1027e5,'subtotalType':_0x44e0f4};return _0x571067[_0x3e8b38(0x93)](l['SetPivotSubtotalTypeMutation']['id'],_0x3ab1a9);}async['setLabelSort'](_0x596865,_0x2ccbee){const _0x482991=_0x483097,_0x5a39ae=this[_0x482991(0x168)],_0x1d6ec2=this[_0x482991(0xda)],_0x5c62ae=this[_0x482991(0x8d)],_0xd76458=this[_0x482991(0x8c)],_0x1ae69f=_0x5a39ae[_0x482991(0xcb)](m[_0x482991(0xa0)]),_0x39fac9={'unitId':_0x1d6ec2,'subUnitId':_0x5c62ae,'tableFieldId':_0x596865,'pivotTableId':_0xd76458,'info':_0x2ccbee};return _0x1ae69f[_0x482991(0x93)](l['SetPivotSortCommand']['id'],_0x39fac9);}async['setLabelManualFilter'](_0xdffa34,_0x55325b,_0x41d16c){const _0x44a5d4=_0x483097,_0x308e0a=this[_0x44a5d4(0x168)],_0x426919=this[_0x44a5d4(0xda)],_0x4dfe2f=this[_0x44a5d4(0x8d)],_0x395f42=this[_0x44a5d4(0x8c)],_0x4b4b2b=_0x308e0a['get'](m[_0x44a5d4(0xa0)]),_0x312b20={'unitId':_0x426919,'subUnitId':_0x4dfe2f,'pivotTableId':_0x395f42,'tableFieldId':_0xdffa34,'items':_0x55325b,'isAll':_0x41d16c};return _0x4b4b2b[_0x44a5d4(0x93)](l[_0x44a5d4(0x13b)]['id'],_0x312b20);}async[_0x483097(0xb7)](_0x3fabea,_0x4afda9){const _0x520810=_0x483097,_0x5dedbe=this[_0x520810(0x168)],_0x522a82=this[_0x520810(0xda)],_0x4bbf6d=this[_0x520810(0x8d)],_0x535014=this[_0x520810(0x8c)],_0x53c3fb=_0x5dedbe['get'](m['ICommandService']);if(_0x3fabea===void 0x0)return console['warn'](_0x520810(0xb4)),!0x1;const _0x1883fc=_0x4afda9&&{..._0x4afda9,'type':r[_0x520810(0xb2)]['ValueFilter']},_0x1ead6a={'unitId':_0x522a82,'subUnitId':_0x4bbf6d,'pivotTableId':_0x535014,'fieldId':_0x3fabea,'valueFilterInfo':_0x1883fc};return _0x53c3fb[_0x520810(0x93)](l[_0x520810(0x12d)]['id'],_0x1ead6a);}async[_0x483097(0x105)](_0xa200b,_0x36bed3){const _0x289dcf=_0x483097,_0x4cf04a=this[_0x289dcf(0x168)],_0x5c2ce5=this[_0x289dcf(0xda)],_0x3ba8bf=this[_0x289dcf(0x8d)],_0xdd992c=this['pivotTableId'],_0x414e05=_0x4cf04a['get'](m['ICommandService']),_0x3089bd={'unitId':_0x5c2ce5,'subUnitId':_0x3ba8bf,'pivotTableId':_0xdd992c,'fieldId':_0xa200b,'name':_0x36bed3};return _0x414e05[_0x289dcf(0x93)](l[_0x289dcf(0x11d)]['id'],_0x3089bd);}async[_0x483097(0xf4)](_0x56ea92,_0x28f8d2,_0x177948){const _0x533ce5=_0x483097,_0x242abf=this[_0x533ce5(0x168)][_0x533ce5(0xcb)](m[_0x533ce5(0xa0)]),_0x53ba05=this[_0x533ce5(0x168)]['get'](m[_0x533ce5(0xc5)])['getUnit'](this['unitId']),_0x57169e=_0x53ba05==null?void 0x0:_0x53ba05[_0x533ce5(0x12e)](_0x56ea92);if(!_0x53ba05||!_0x57169e)throw new Error(_0x533ce5(0xc0));return _0x242abf[_0x533ce5(0x93)](l[_0x533ce5(0xfc)]['id'],{'pivotTableId':this[_0x533ce5(0x8c)],'targetCellInfo':{'subUnitId':_0x57169e[_0x533ce5(0xc2)](),'unitId':this[_0x533ce5(0xda)],'row':_0x28f8d2,'col':_0x177948},'originTargetInfo':{'subUnitId':this['subUnitId'],'unitId':this[_0x533ce5(0xda)]}});}async[_0x483097(0xc9)](_0x14893d,_0x5764f5){const _0x3700aa=_0x483097,_0x36fdc4=this['_injector'],_0x3dde6b=this['unitId'],_0xe899a4=this['subUnitId'],_0x5223e5=this[_0x3700aa(0x8c)],_0x5328e6=_0x36fdc4[_0x3700aa(0xcb)](m[_0x3700aa(0xa0)]),_0x4701a0={'unitId':_0x3dde6b,'subUnitId':_0xe899a4,'pivotTableId':_0x5223e5,'tableFieldId':_0x14893d,'dateType':_0x5764f5};return _0x5328e6[_0x3700aa(0x93)](l[_0x3700aa(0x171)]['id'],_0x4701a0);}}function _0xba91(){const _0x2dd437=['_sourceData','3092178CDNsvz','PivotTableFieldCollapseChanged','Grand\x20Total\x20','getFieldDataTypeByFieldName','小计\x20','isArray','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','concat','getSheetId','viewUpdate$','3734xGoowC','IUniverInstanceService','push','MovePivotFieldCommand','PivotSubtotalTypeEnum','setDateGroupType','_firePivotTableFieldRemovedEvent','get','createCollection','count','PositionType','hiddenFields','fireEvent','840780FmhznE','name','date','setSubtotal','getNameWithColumnIndex','_fireAddPivotTableEvent','FEnum','subtotal','rangeInfo','unitId','Row','filterFields','PivotDataFieldSortOperatorEnum','row','PivotTableRendered','SheetsPivotTableConfigModel','PivotTableRemoved','ST_PivotFilterOperatorEnum','sum','getTime','headerMap','Filter','LocaleType','_firePivotTableRemovedEvent','addValueFieldWithName','1825320bQNjaE','onCommandExecuted','_fireRenderPivotTableEvent','PivotFilterOperatorEnum','object','_fireBeforeMovePivotTableEvent','setSubtotalType','FWorksheet','fields','@univerjs-pro/sheets-pivot','move','getCurrentLocale','Subtotal','setDisplayName','getId','ResetPivotFieldsConfigCommand','setOptions','getValueFields','MovePivotTableCommand','remove','PivotTableMoved','generateHexNumber','cancel','displayName','@univerjs/core/facade','@univerjs-pro/engine-pivot','AddPivotTableWithConfigCommand','renameField','FEventName','PivotViewCellValueTypeEnum','PivotTableValuePositionEnum','PivotDateGroupFieldDateTypeEnum','string','fieldsConfig','pipe','addPivotTable','GrandTotal','column','removeField','level','getTableFieldsByDataFieldId','getFieldById','_firePivotTableFieldSettingChangedEvent','SheetsPivotTableAdaptorModel','syncExecuteCommand','getDataFieldIdByDisplayName','getValueFilters','addFieldWithSourceId','(空白)','_getSourceIdByName','dataFieldsCollection','RenamePivotFieldMutation','addFieldWithName','Event','总计\x20','fieldIds','startRow','SetPivotSortCommand','LocaleService','valueIndex','generatePivotTable','RemovePivotFieldCommand','LifecycleStages','[PivotTable]:\x20add\x20field\x20','lifecycle$','reset','symbol','SetPivotValueFilterCommand','getSheetBySheetName','BeforePivotTableMove','range','numfmt','@univerjs/core','setFieldFormat','getFieldIds','tableFieldId','PivotTableFiledAreaEnum','@univerjs/sheets/facade','PivotTableFieldRemoved','col','UpdatePivotValuePositionCommand','SetPivotFilterCommand','getColCount','getResultByCalculate','updateValuePosition','removeFieldWithName','getSourceFieldsInfo','getPivotTableByCell','max','isBottomTotal','getPivotTableConfig','data','updateFieldPosition','getDataFieldByTableId','None','endColumn','PivotDataFieldSortTypeEnum','setFieldsConfig','YYYY-MM-DD','_fireBeforeAddPivotTableEvent','startColumn','getformat','getConfig','format','ZH_CN','filter','subscribe','PivotDataFieldDataTypeEnum','SetPivotCollapseCommand','extend','FWorkbook','fieldId','\x20failed.','addFilterFieldWithName','getFieldCountByArea','getPivotTableRangeInfo','targetCellInfo','921764eHhOtY','sheetName','getFieldDataType','Column','displayNameRecord','columnFields','isNaN','PivotTableValuePositionChanged','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','_injector','BeforePivotTableAdd','getTargetByPivotTableId','LifecycleService','8sahcQf','getRangeData','AddPivotFieldCommand','setFilterInfo','endRow','UpdateDateGroupCommand','PivotTableAdded','defineProperty','PivotTableFieldSortChanged','getUnitId','_firePivotTableValuePositionChangedEvent','_firePivotTableFieldCollapsedEvent','PivotTableFieldAdded','getPivotSourceData','_id','getRowCount','pivotTableId','subUnitId','getValueIndex','length','getCollection','dimension','RemovePivotTableMutation','executeCommand','_pivot','blank','_firePivotTableFieldFilterChangedEvent','getFieldSetting','getSourceName','(blank)','1103316YBOUbd','\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.','getPivotTableIdByCell','dispose','disposeWithMe','_workbook','ICommandService','params','info','PivotTableFieldMoved','PivotTableChangeTypeEnum','valueFilter','PivotTableFieldFilterChanged','auditTime','getValueFilter','PivotTableFieldSettingChanged','Value','getFieldDataTypeByColumnIndex','_firePivotTableFieldAddedEvent','_firePivotTableFieldSortChangedEvent','getPivotTableById','Total\x20','7197309adQmvA','PivotCellStyleTypeEnum','PivotFilterTypeEnum','registerEventHandler','[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined','AddPivotTableCommand','forEach','setValueFilter','find'];_0xba91=function(){return _0x2dd437;};return _0xba91();}class oe extends R[_0x483097(0x158)]{async[_0x483097(0x10d)](_0x3c91bf,_0x513d82,_0x3989ad){const _0x35b803=_0x483097,_0x1631f5=this[_0x35b803(0x168)],_0x1774d8=_0x1631f5[_0x35b803(0xcb)](m[_0x35b803(0xa0)]),_0x22633c=r['generateHexNumber'](0x8),_0x1c93d8={'positionType':_0x513d82,'pivotTableId':_0x22633c,'pivotTableConfig':{'targetCellInfo':_0x3989ad,'sourceRangeInfo':_0x3c91bf,'isEmpty':!0x0}};if(await _0x1774d8[_0x35b803(0x93)](l[_0x35b803(0xb5)]['id'],_0x1c93d8))return new x(_0x3989ad[_0x35b803(0xda)],_0x3989ad[_0x35b803(0x8d)],_0x22633c,_0x1631f5);}[_0x483097(0x141)](_0xbcd742,_0x4ce566,_0x5f23af,_0x27d55b){const _0x5cd05e=_0x483097,_0x58aca5=this[_0x5cd05e(0x168)],_0x435770=_0x58aca5[_0x5cd05e(0xcb)](l[_0x5cd05e(0x115)])['getPivotTableIdByCell'](_0xbcd742,_0x4ce566,_0x5f23af,_0x27d55b);if(_0x435770)return new x(_0xbcd742,_0x4ce566,_0x435770,_0x58aca5);}[_0x483097(0xae)](_0x17733e){const _0x5d7f24=_0x483097,_0x57ee96=this[_0x5d7f24(0x168)],_0x48e0a6=_0x57ee96[_0x5d7f24(0xcb)](l[_0x5d7f24(0xe0)])[_0x5d7f24(0x16a)](this[_0x5d7f24(0xf8)](),_0x17733e);if(_0x48e0a6)return new x(_0x48e0a6['unitId'],_0x48e0a6[_0x5d7f24(0x8d)],_0x17733e,_0x57ee96);}}R['FWorkbook']['extend'](oe);class ne extends R[_0x483097(0xf1)]{['getPivotTableByCell'](_0x42535e,_0x2a7253){const _0x21acb9=_0x483097,_0x29d833=this['_injector'],_0x235de6=_0x29d833[_0x21acb9(0xcb)](l[_0x21acb9(0x115)]),_0x499fbc=this[_0x21acb9(0x9f)][_0x21acb9(0x175)](),_0x540d16=this[_0x21acb9(0xc2)](),_0x562872=_0x235de6[_0x21acb9(0x9c)](_0x499fbc,_0x540d16,_0x42535e,_0x2a7253);if(_0x562872)return new x(_0x499fbc,_0x540d16,_0x562872,_0x29d833);}}R[_0x483097(0xf1)][_0x483097(0x157)](ne);class ae extends A[_0x483097(0xd7)]{get[_0x483097(0xc8)](){return r['PivotSubtotalTypeEnum'];}get['PivotFilterTypeEnum'](){const _0x9be11e=_0x483097;return r[_0x9be11e(0xb2)];}get[_0x483097(0x136)](){const _0x454d48=_0x483097;return r[_0x454d48(0x136)];}get[_0x483097(0x108)](){const _0x852d69=_0x483097;return r[_0x852d69(0x108)];}get[_0x483097(0x155)](){const _0x35cbd6=_0x483097;return r[_0x35cbd6(0x155)];}get[_0x483097(0x14a)](){const _0x1d7984=_0x483097;return r[_0x1d7984(0x14a)];}get[_0x483097(0xdd)](){return r['PivotDataFieldSortOperatorEnum'];}get[_0x483097(0xed)](){const _0x3206f0=_0x483097;return r[_0x3206f0(0xe2)];}get['PositionTypeEnum'](){const _0x28666a=_0x483097;return l[_0x28666a(0xce)];}get[_0x483097(0xa4)](){const _0x4324a8=_0x483097;return r[_0x4324a8(0xa4)];}get[_0x483097(0x109)](){const _0x2f247c=_0x483097;return r[_0x2f247c(0x109)];}}A[_0x483097(0xd7)]['extend'](ae);function _0x1967(_0x5ee217,_0x6813fe){const _0xba918b=_0xba91();return _0x1967=function(_0x19679e,_0x593ca8){_0x19679e=_0x19679e-0x87;let _0x4b7015=_0xba918b[_0x19679e];return _0x4b7015;},_0x1967(_0x5ee217,_0x6813fe);}class se extends A['FEventName']{get['PivotTableAdded'](){const _0x1f81a5=_0x483097;return _0x1f81a5(0x172);}get[_0x483097(0x169)](){return'BeforePivotTableAdd';}get[_0x483097(0xe1)](){const _0x39f6ec=_0x483097;return _0x39f6ec(0xe1);}get[_0x483097(0xfe)](){const _0xe9b31b=_0x483097;return _0xe9b31b(0xfe);}get[_0x483097(0xdf)](){const _0x5e1e87=_0x483097;return _0x5e1e87(0xdf);}get['PivotTableFieldAdded'](){const _0x516b56=_0x483097;return _0x516b56(0x88);}get['PivotTableFieldRemoved'](){return'PivotTableFieldRemoved';}get[_0x483097(0xa3)](){const _0x80b668=_0x483097;return _0x80b668(0xa3);}get['PivotTableFieldCollapseChanged'](){return'PivotTableFieldCollapseChanged';}get[_0x483097(0xa6)](){const _0x77801b=_0x483097;return _0x77801b(0xa6);}get[_0x483097(0x174)](){return'PivotTableFieldSortChanged';}get[_0x483097(0xa9)](){const _0x3bd333=_0x483097;return _0x3bd333(0xa9);}get[_0x483097(0x166)](){const _0x211464=_0x483097;return _0x211464(0x166);}}A[_0x483097(0x106)][_0x483097(0x157)](se);const Z=_0x483097(0x14c);function de(_0x2af3db){return _0x2af3db/0x3e8/0x15180+0x63e1;}function le(_0xffb301,_0x194e03,_0x2cc6bb,_0x3adc61){const _0x3755c5=_0x483097;var _0x879de3,_0x4eb943,_0x1d499d,_0xd72f07,_0x331f71,_0x3c1bf3,_0x5e82e3,_0x10a034,_0x2294fa,_0x2142f3,_0x44297e,_0xc4ef4e,_0x112ddb,_0x46640b,_0x19846d;const _0x395062=[],_0x5e6af8=[],_0x5b40db=[],{showRowGrandTotal:_0x637c8b,showRowSubTotal:_0x1ec254}=_0x3adc61,{cornerView:_0x2fdbff,colView:_0x13e395,rowView:_0x2d2391,dataView:_0x31aecc,formatMap:_0x58ff53}=_0x194e03,_0x5de70d=_0x2fdbff['getRowCount'](),_0x4b111b=_0x2fdbff[_0x3755c5(0x13c)]();for(let _0x2fd009=0x0;_0x2fd009<_0x5de70d;_0x2fd009++)for(let _0xf201f9=0x0;_0xf201f9<_0x4b111b;_0xf201f9++){const _0x3fbe22={...(_0x4eb943=(_0x879de3=_0x2fdbff[_0x3755c5(0x145)])==null?void 0x0:_0x879de3[_0x2fd009])==null?void 0x0:_0x4eb943[_0xf201f9]};_0x3fbe22['v']&&(_0x395062[_0x2fd009]||(_0x395062[_0x2fd009]=[]),_0x5b40db[_0x2fd009]||(_0x5b40db[_0x2fd009]=[]),_0x395062[_0x2fd009][_0xf201f9]=_0x3fbe22['v'],_0x5b40db[_0x2fd009][_0xf201f9]=_0x3fbe22['v']);}for(let _0x347caa=0x0;_0x347caa<_0x13e395[_0x3755c5(0x8b)]();_0x347caa++){const _0x1e9d59=(_0xd72f07=(_0x1d499d=_0x13e395==null?void 0x0:_0x13e395[_0x3755c5(0xe5)])==null?void 0x0:_0x1d499d[_0x347caa])==null?void 0x0:_0xd72f07[_0x3755c5(0x135)],_0x33bc3b=_0x1e9d59?_0x58ff53[_0x1e9d59]:'';for(let _0x54b759=0x0;_0x54b759<_0x13e395[_0x3755c5(0x13c)]();_0x54b759++){const _0x91254a={...(_0x3c1bf3=(_0x331f71=_0x13e395[_0x3755c5(0x145)])==null?void 0x0:_0x331f71[_0x347caa])==null?void 0x0:_0x3c1bf3[_0x54b759]};if((_0x91254a==null?void 0x0:_0x91254a['v'])!==void 0x0){let _0x2fe213=_0x33bc3b?m[_0x3755c5(0x131)]['format'](_0x33bc3b,Number(_0x91254a['v'])):_0x91254a['v'];(_0x91254a==null?void 0x0:_0x91254a['s'])===r['PivotCellStyleTypeEnum'][_0x3755c5(0xf6)]?_0x2fe213=_0x2cc6bb?_0x3755c5(0xbe)+_0x2fe213:_0x3755c5(0xaf)+_0x2fe213:(_0x91254a==null?void 0x0:_0x91254a['s'])===r[_0x3755c5(0xb1)][_0x3755c5(0x10e)]&&(_0x2fe213=_0x2cc6bb?_0x3755c5(0x120)+_0x2fe213:'Grand\x20Total\x20'+_0x2fe213),(_0x91254a==null?void 0x0:_0x91254a['t'])===r[_0x3755c5(0x107)]['blank']&&(_0x2fe213=_0x2cc6bb?_0x3755c5(0x11a):_0x3755c5(0x99)),_0x395062[_0x347caa]||(_0x395062[_0x347caa]=[]),_0x5b40db[_0x347caa]||(_0x5b40db[_0x347caa]=[]),_0x395062[_0x347caa][_0x54b759+_0x4b111b]=_0x2fe213,_0x5b40db[_0x347caa][_0x54b759+_0x4b111b]=_0x2fe213;}}}let _0x567212=0x0,_0x4c7f89=0x0,_0x4d5e9f=0x0;for(let _0x19e0c3=0x0;_0x19e0c3<_0x2d2391[_0x3755c5(0x8b)]();_0x19e0c3++){const _0x16b996=_0x2d2391[_0x3755c5(0xa2)][_0x19e0c3];if(!_0x1ec254&&_0x16b996[_0x3755c5(0x143)]&&_0x16b996[_0x3755c5(0x111)]!==0x0){_0x4d5e9f++,_0x4c7f89=0x0;continue;}if(!(!_0x637c8b&&_0x16b996[_0x3755c5(0x143)]&&_0x16b996[_0x3755c5(0x111)]===0x0)){for(let _0x2051aa=0x0;_0x2051aa<_0x2d2391['getColCount']();_0x2051aa++){const _0x6ea61a={...(_0x10a034=(_0x5e82e3=_0x2d2391[_0x3755c5(0x145)])==null?void 0x0:_0x5e82e3[_0x19e0c3])==null?void 0x0:_0x10a034[_0x2051aa]},_0x5547ee=(_0x2142f3=(_0x2294fa=_0x2d2391==null?void 0x0:_0x2d2391[_0x3755c5(0xe5)])==null?void 0x0:_0x2294fa[_0x2051aa])==null?void 0x0:_0x2142f3[_0x3755c5(0x135)],_0x1d5941=_0x5547ee?_0x58ff53[_0x5547ee]:'';if((_0x6ea61a==null?void 0x0:_0x6ea61a['v'])!==void 0x0){let _0x578dfe=_0x1d5941?m['numfmt'][_0x3755c5(0x151)](_0x1d5941,Number(_0x6ea61a['v'])):_0x6ea61a['v'];(_0x6ea61a==null?void 0x0:_0x6ea61a['s'])===r['PivotCellStyleTypeEnum'][_0x3755c5(0xf6)]?_0x578dfe=_0x2cc6bb?_0x3755c5(0xbe)+_0x578dfe:_0x3755c5(0xaf)+_0x578dfe:(_0x6ea61a==null?void 0x0:_0x6ea61a['s'])===r['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x578dfe=_0x2cc6bb?_0x3755c5(0x120)+_0x578dfe:_0x3755c5(0xbc)+_0x578dfe),(_0x6ea61a==null?void 0x0:_0x6ea61a['t'])===r[_0x3755c5(0x107)][_0x3755c5(0x95)]&&(_0x578dfe=_0x2cc6bb?'(空白)':_0x3755c5(0x99)),_0x395062[_0x567212+_0x5de70d]||(_0x395062[_0x567212+_0x5de70d]=[]);let _0x50a350=_0x5e6af8[_0x4d5e9f];_0x50a350||(_0x50a350=[..._0x5b40db],_0x5e6af8[_0x4d5e9f]=_0x50a350),_0x50a350[_0x4c7f89+_0x5de70d]||(_0x50a350[_0x4c7f89+_0x5de70d]=[]),_0x50a350[_0x4c7f89+_0x5de70d][_0x2051aa]=_0x578dfe,_0x395062[_0x567212+_0x5de70d][_0x2051aa]=_0x578dfe;}}_0x567212++,_0x2d2391[_0x3755c5(0xa2)][_0x19e0c3][_0x3755c5(0x143)]?(_0x4d5e9f++,_0x4c7f89=0x0):_0x4c7f89++;}}_0x567212=0x0,_0x4d5e9f=0x0,_0x4c7f89=0x0;for(let _0x3547c8=0x0;_0x3547c8<_0x31aecc['getRowCount']();_0x3547c8++){const _0x481500=_0x2d2391[_0x3755c5(0xa2)][_0x3547c8];if(!_0x1ec254&&_0x481500['isBottomTotal']&&_0x481500[_0x3755c5(0x111)]!==0x0){_0x4d5e9f++,_0x4c7f89=0x0;continue;}if(!(!_0x637c8b&&_0x481500['isBottomTotal']&&_0x481500['level']===0x0)){for(let _0x136fcc=0x0;_0x136fcc<_0x31aecc[_0x3755c5(0x13c)]();_0x136fcc++){const _0x2c8396={...(_0xc4ef4e=(_0x44297e=_0x31aecc[_0x3755c5(0x145)])==null?void 0x0:_0x44297e[_0x3547c8])==null?void 0x0:_0xc4ef4e[_0x136fcc]};if(_0x2c8396['v']){const _0x4ea40b=_0x2d2391[_0x3755c5(0xa2)][_0x3547c8][_0x3755c5(0x125)],_0x4d4eab=_0x13e395[_0x3755c5(0xa2)][_0x136fcc][_0x3755c5(0x125)],_0x530bfe=Math[_0x3755c5(0x142)](_0x4ea40b,_0x4d4eab),_0x529cab=_0xffb301[_0x3755c5(0xfb)]()[_0x3755c5(0xc1)]();let _0x20bf60='';_0x530bfe<0x0?_0x20bf60=(_0x112ddb=_0x529cab[0x0])!=null?_0x112ddb:'':_0x20bf60=(_0x46640b=_0x529cab[_0x530bfe])!=null?_0x46640b:'';const _0x1cefbf=(_0x19846d=_0x58ff53[_0x20bf60])!=null?_0x19846d:'';_0x395062[_0x567212+_0x5de70d]||(_0x395062[_0x567212+_0x5de70d]=[]);let _0x171307=_0x5e6af8[_0x4d5e9f];_0x171307||(_0x171307=[..._0x5b40db],_0x5e6af8[_0x4d5e9f]=_0x171307),_0x171307[_0x4c7f89+_0x5de70d]||(_0x171307[_0x4c7f89+_0x5de70d]=[]);const _0x502487=_0x1cefbf?m[_0x3755c5(0x131)][_0x3755c5(0x151)](_0x1cefbf,Number(_0x2c8396['v'])):_0x2c8396['v'];_0x171307[_0x4c7f89+_0x5de70d][_0x136fcc+_0x4b111b]=_0x502487,_0x395062[_0x567212+_0x5de70d][_0x136fcc+_0x4b111b]=_0x502487;}}_0x567212++,_0x2d2391[_0x3755c5(0xa2)][_0x3547c8][_0x3755c5(0x143)]?(_0x4d5e9f++,_0x4c7f89=0x0):_0x4c7f89++;}}return{'dataArr':_0x395062,'dataArrWithSplit':_0x5e6af8};}class re{constructor(_0x395252,_0x2f7cd1,_0x2e4ac7,_0x38ff71){const _0xfcd86a=_0x483097;y(this,_0xfcd86a(0x94)),y(this,_0xfcd86a(0xb9)),y(this,'_injector'),y(this,'_isZhCN'),y(this,_0xfcd86a(0x8a)),(this['_injector']=_0x395252,this['_pivot']=_0x2f7cd1,this[_0xfcd86a(0xb9)]=_0x2e4ac7,this[_0xfcd86a(0x8a)]=_0x38ff71);const _0x58ed44=this[_0xfcd86a(0x168)][_0xfcd86a(0xcb)](m[_0xfcd86a(0x124)]);this['_isZhCN']=_0x58ed44[_0xfcd86a(0xf5)]()===m[_0xfcd86a(0xe7)][_0xfcd86a(0x152)];}['_getSourceIdByName'](_0x466707){const _0x349a8a=_0x483097,_0x31fe32=this[_0x349a8a(0x94)][_0x349a8a(0x117)](_0x466707);if(!_0x31fe32)throw new Error('[PivotTable]:\x20The\x20field\x20name\x20'+_0x466707+_0x349a8a(0x9b));return _0x31fe32;}[_0x483097(0x11e)](_0x2192d7,_0x1fdc72){const _0xd6a9e0=_0x483097,_0x236161=this['_getSourceIdByName'](_0x2192d7),_0x36f3ce=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x119)](_0x236161,_0x1fdc72);if(!_0x36f3ce)throw new Error(_0xd6a9e0(0x129)+_0x2192d7+_0xd6a9e0(0x15a));if(_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0xaa)]){const _0x35ca66=_0x36f3ce['getId'](),_0x2ffb3a=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x147)](_0x35ca66);if(_0x2ffb3a){const _0x35e175=_0x2ffb3a==null?void 0x0:_0x2ffb3a[_0xd6a9e0(0x161)]();this['_pivot'][_0xd6a9e0(0xf0)](_0x35ca66,_0x35e175===r['PivotDataFieldDataTypeEnum']['number']?r[_0xd6a9e0(0xc8)][_0xd6a9e0(0xe3)]:r[_0xd6a9e0(0xc8)][_0xd6a9e0(0xcd)]);}const _0x5a3d60=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x8e)](),_0x32d17a=this[_0xd6a9e0(0x94)]['getValuePosition'](),_0x25f009=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x15c)](r[_0xd6a9e0(0x136)][_0xd6a9e0(0xaa)]);if(_0x5a3d60===-0x1&&_0x25f009>0x1){const _0x72d0b9=_0x32d17a===r[_0xd6a9e0(0x108)][_0xd6a9e0(0x148)]?r[_0xd6a9e0(0x108)][_0xd6a9e0(0x162)]:_0x32d17a,_0x5142d0=_0x72d0b9===r[_0xd6a9e0(0x108)][_0xd6a9e0(0xdb)]?r['PivotTableFiledAreaEnum'][_0xd6a9e0(0xdb)]:r[_0xd6a9e0(0x136)][_0xd6a9e0(0x162)];this['_pivot'][_0xd6a9e0(0x13e)](_0x72d0b9,this[_0xd6a9e0(0x94)][_0xd6a9e0(0x15c)](_0x5142d0));}}else{if(_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0xdb)]||_0x1fdc72===r[_0xd6a9e0(0x136)][_0xd6a9e0(0x162)]){const _0x4666db=_0x36f3ce['getId'](),_0x1990a9=this[_0xd6a9e0(0x94)][_0xd6a9e0(0x147)](_0x4666db);if(_0x1990a9&&(_0x1990a9==null?void 0x0:_0x1990a9['getFieldDataType']())===r[_0xd6a9e0(0x155)][_0xd6a9e0(0xd3)]){const _0x839ae0=_0x1990a9[_0xd6a9e0(0x14f)]();_0x839ae0&&this[_0xd6a9e0(0x94)][_0xd6a9e0(0x133)](_0x4666db,_0x839ae0);}}}return _0x36f3ce;}[_0x483097(0x15b)](_0x3d9823,_0x3117cc){const _0xcbbaa9=_0x483097,_0x1951d4=this[_0xcbbaa9(0x11b)](_0x3d9823),_0x110f53=this['_pivot']['addFieldWithSourceId'](_0x1951d4,r[_0xcbbaa9(0x136)]['Filter']);return _0x110f53[_0xcbbaa9(0x16f)](_0x3117cc),_0x110f53;}[_0x483097(0xe9)](_0x3e1635,_0x16d2b8){const _0x4349b9=_0x483097,_0x37191e=this[_0x4349b9(0x11e)](_0x3e1635,r[_0x4349b9(0x136)][_0x4349b9(0xaa)]);return _0x16d2b8!=null&&_0x16d2b8[_0x4349b9(0xd8)]&&_0x37191e[_0x4349b9(0xd4)](_0x16d2b8==null?void 0x0:_0x16d2b8['subtotal']),_0x37191e;}[_0x483097(0x13f)](_0x351140){const _0x93eaad=_0x483097,_0x3ed2c2=this[_0x93eaad(0x11b)](_0x351140);this['_pivot'][_0x93eaad(0x112)](_0x3ed2c2)['forEach'](_0x54124f=>{const _0x134145=_0x93eaad,_0x3a88ee=_0x54124f['getId']();this['_pivot'][_0x134145(0x110)](_0x3a88ee);});}[_0x483097(0x13d)](_0x53b886={}){const _0x452833=_0x483097,_0x2dfc07=this['_pivot']['query'](),{dataArr:_0x5749c4,dataArrWithSplit:_0x2c0c8b}=le(this[_0x452833(0x94)],_0x2dfc07,this['_isZhCN'],_0x53b886);return{'dataArr':_0x5749c4,'dataArrWithSplit':_0x2c0c8b};}[_0x483097(0xd5)](_0x29829f){return this['_pivot']['getFieldDisplayNames']()[_0x29829f];}[_0x483097(0x12b)](){const _0xd3f22e=_0x483097;this[_0xd3f22e(0x94)][_0xd3f22e(0x12b)]();}['resetDimension'](_0x2c0c37){const _0xda7aa1=_0x483097;this[_0xda7aa1(0x94)]['reset'](_0x2c0c37);}[_0x483097(0xab)](_0x2e35ca){const _0x546600=_0x483097,_0x12d2fd=this[_0x546600(0x94)]['dataFieldsCollection'],_0x418beb=_0x12d2fd[_0x546600(0x134)]()[_0x2e35ca];if(_0x418beb)return _0x12d2fd[_0x546600(0x113)](_0x418beb)['getFieldDataType']();}[_0x483097(0xbd)](_0xc3d049){const _0x3ad32e=_0x483097,_0x1001f3=this['_getSourceIdByName'](_0xc3d049),_0x3bab3e=this[_0x3ad32e(0x94)][_0x3ad32e(0x11c)][_0x3ad32e(0x113)](_0x1001f3);return _0x3bab3e==null?void 0x0:_0x3bab3e['getFieldDataType']();}['getDimensionInfo'](){const _0x59c564=_0x483097,_0x2fbfe7={};return[[r[_0x59c564(0x136)][_0x59c564(0xdb)],_0x59c564(0xde)],[r[_0x59c564(0x136)][_0x59c564(0x162)],_0x59c564(0x10f)],[r[_0x59c564(0x136)][_0x59c564(0xe6)],_0x59c564(0x153)],[r['PivotTableFiledAreaEnum'][_0x59c564(0xaa)],'value']][_0x59c564(0xb6)](_0x549ca4=>{const _0x322615=_0x59c564,[_0x243a84,_0xf20685]=_0x549ca4;this[_0x322615(0x94)]['iterateFieldByArea'](_0x243a84,_0x4fc577=>{const _0x43878d=_0x322615;_0x2fbfe7[_0xf20685]||(_0x2fbfe7[_0xf20685]=[]),_0x2fbfe7[_0xf20685][_0x43878d(0xc6)](_0x4fc577[_0x43878d(0x98)]());});}),Object['keys'](_0x2fbfe7)[_0x59c564(0x8f)]>0x0?_0x2fbfe7:void 0x0;}[_0x483097(0x89)](){const _0x214b3c=_0x483097;return this[_0x214b3c(0xb9)];}[_0x483097(0xfa)](_0x35fbd2){const _0x1995a7=_0x483097;this['_pivot'][_0x1995a7(0xfa)](_0x35fbd2);}[_0x483097(0xfd)](){const _0x5a95c5=_0x483097;this[_0x5a95c5(0x94)][_0x5a95c5(0x9d)]();}}class ve extends r['DataFieldManager']{[_0x483097(0x16d)](_0x1a637a){const _0x4a4e02=_0x483097;if(Array[_0x4a4e02(0xbf)](_0x1a637a)&&_0x1a637a[_0x4a4e02(0x8f)]>0x0){const _0x3892a1=[],_0x38049d=_0x1a637a[0x0],_0x194037={},_0x7d4679=_0x1a637a[0x1];for(let _0x1ace87=0x0;_0x1ace87<_0x7d4679[_0x4a4e02(0x8f)];_0x1ace87++){const _0xee83ab=_0x7d4679[_0x1ace87];if(typeof _0xee83ab==_0x4a4e02(0xee)&&_0xee83ab instanceof Date)_0x194037[_0x1ace87]=Z;else{if(typeof _0xee83ab==_0x4a4e02(0x10a)){const _0x4410ab=new Date(_0xee83ab);Number[_0x4a4e02(0x165)](_0x4410ab[_0x4a4e02(0xe4)]())||(_0x194037[_0x1ace87]=Z);}}}for(let _0x5cbe81=0x1;_0x5cbe81<_0x1a637a[_0x4a4e02(0x8f)];_0x5cbe81++){const _0x549022=_0x1a637a[_0x5cbe81],_0xb9c929=[];for(let _0x915a47=0x0;_0x915a47<_0x549022[_0x4a4e02(0x8f)];_0x915a47++)if(_0x194037[_0x915a47]){const _0x72b35=_0x549022[_0x915a47],_0x2fd43c=typeof _0x72b35==_0x4a4e02(0xee)&&_0x72b35 instanceof Date?_0x72b35:new Date(_0x72b35),_0x9649e5={'v':de(_0x2fd43c[_0x4a4e02(0xe4)]()),'f':_0x194037[_0x915a47]};_0xb9c929['push'](_0x9649e5);}else _0xb9c929['push'](_0x549022[_0x915a47]);_0x3892a1['push'](_0xb9c929);}return{'header':_0x38049d,'data':_0x3892a1};}else throw new Error(_0x4a4e02(0x167));}}class ce extends A['FUniver']{['_initialize'](_0xb77e9a){const _0x3e32f8=_0x483097,_0x5015bd=_0xb77e9a[_0x3e32f8(0xcb)](m[_0x3e32f8(0xa0)]);this[_0x3e32f8(0xb3)](this['Event'][_0x3e32f8(0x169)],()=>_0x5015bd['beforeCommandExecuted'](_0x20a191=>{const _0x3b613f=_0x3e32f8;switch(_0x20a191['id']){case l[_0x3b613f(0xfc)]['id']:{const _0x510fb1=_0x20a191[_0x3b613f(0xa1)];this[_0x3b613f(0xef)](_0x510fb1);break;}}})),this['registerEventHandler'](this['Event'][_0x3e32f8(0x12f)],()=>_0x5015bd['beforeCommandExecuted'](_0x17759a=>{const _0x166d81=_0x3e32f8;switch(_0x17759a['id']){case l[_0x166d81(0x104)]['id']:case l[_0x166d81(0xb5)]['id']:{const _0x4c8aee=_0x17759a[_0x166d81(0xa1)];this[_0x166d81(0x14d)](_0x4c8aee);break;}}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x172)],()=>_0x5015bd['onCommandExecuted'](_0x137b87=>{const _0x1741ae=_0x3e32f8;if(_0x137b87['id']===l[_0x1741ae(0x104)]['id']||_0x137b87['id']===l['AddPivotTableCommand']['id']){const _0x221320=_0x137b87[_0x1741ae(0xa1)];this['_fireAddPivotTableEvent'](_0x221320);}})),this[_0x3e32f8(0xb3)](this['Event']['PivotTableMoved'],()=>_0x5015bd['onCommandExecuted'](_0x1264d4=>{if(_0x1264d4['id']===l['MovePivotTableCommand']['id']){const _0x312e6c=_0x1264d4['params'];this['_fireMovedPivotTableEvent'](_0x312e6c);}})),this['registerEventHandler'](this['Event'][_0x3e32f8(0xe1)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x4f0126=>{const _0x1fd9ed=_0x3e32f8;if(_0x4f0126['id']===l[_0x1fd9ed(0x92)]['id']){const _0x1e737e=_0x4f0126['params'];this[_0x1fd9ed(0xe8)](_0x1e737e);}})),this['registerEventHandler'](this[_0x3e32f8(0x11f)][_0x3e32f8(0x88)],()=>_0x5015bd['onCommandExecuted'](_0x428f7b=>{const _0x37cf3d=_0x3e32f8;if(_0x428f7b['id']===l[_0x37cf3d(0x16e)]['id']){const _0x4360ce=_0x428f7b['params'];this[_0x37cf3d(0xac)](_0x4360ce);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x138)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x49a3ce=>{const _0x2579b8=_0x3e32f8;if(_0x49a3ce['id']===l[_0x2579b8(0x127)]['id']){const _0x54837c=_0x49a3ce[_0x2579b8(0xa1)];this[_0x2579b8(0xca)](_0x54837c);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa3)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x3e2285=>{const _0x24142e=_0x3e32f8;if(_0x3e2285['id']===l[_0x24142e(0xc7)]['id']){const _0x157f13=_0x3e2285[_0x24142e(0xa1)];this['_firePivotTableFieldMovedEvent'](_0x157f13);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xbb)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x7aa55f=>{const _0x2d8150=_0x3e32f8;if(_0x7aa55f['id']===l[_0x2d8150(0x156)]['id']){const _0x2ab488=_0x7aa55f[_0x2d8150(0xa1)];this[_0x2d8150(0x87)](_0x2ab488);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa6)],()=>_0x5015bd['onCommandExecuted'](_0x5962a5=>{const _0x80a505=_0x3e32f8;if(_0x5962a5['id']===l['SetPivotFilterCommand']['id']){const _0x1b12db=_0x5962a5['params'];this[_0x80a505(0x96)](_0x1b12db);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0x174)],()=>_0x5015bd[_0x3e32f8(0xeb)](_0x2d4788=>{const _0xf89759=_0x3e32f8;if(_0x2d4788['id']===l[_0xf89759(0x123)]['id']){const _0x11208a=_0x2d4788[_0xf89759(0xa1)];this['_firePivotTableFieldSortChangedEvent'](_0x11208a);}})),this[_0x3e32f8(0xb3)](this[_0x3e32f8(0x11f)][_0x3e32f8(0xa9)],()=>_0x5015bd['onCommandExecuted'](_0x13d569=>{const _0x430ae1=_0x3e32f8;if(_0x13d569['id']===l['UpdatePivotFieldSettingCommand']['id']){const _0x152d68=_0x13d569[_0x430ae1(0xa1)];this['_firePivotTableFieldSettingChangedEvent'](_0x152d68);}})),this[_0x3e32f8(0xb3)](this['Event'][_0x3e32f8(0x166)],()=>_0x5015bd['onCommandExecuted'](_0x2c2c90=>{const _0x2450da=_0x3e32f8;if(_0x2c2c90['id']===l[_0x2450da(0x13a)]['id']){const _0x53f4ca=_0x2c2c90[_0x2450da(0xa1)];this[_0x2450da(0x176)](_0x53f4ca);}}));const _0x3bc1e4=_0xb77e9a[_0x3e32f8(0xcb)](m[_0x3e32f8(0x16b)]);this[_0x3e32f8(0x9e)](_0x3bc1e4[_0x3e32f8(0x12a)][_0x3e32f8(0x154)](_0x34f233=>{const _0x58fd7d=_0x3e32f8;if(_0x34f233===m[_0x58fd7d(0x128)]['Ready']){const _0x191633=_0xb77e9a['get'](l[_0x58fd7d(0x115)]);this['registerEventHandler'](this['Event'][_0x58fd7d(0xdf)],()=>_0x191633[_0x58fd7d(0xc3)][_0x58fd7d(0x10c)](ie[_0x58fd7d(0xa7)](0x32))[_0x58fd7d(0x154)](_0x312724=>{this['_fireRenderPivotTableEvent'](_0x312724);}));}}));}[_0x483097(0xac)](_0x20c7ae){const _0x3a6332=_0x483097;if(_0x20c7ae){const {unitId:_0x110071,subUnitId:_0x46768e,pivotTableId:_0x4db618,dataFieldId:_0x520198,fieldArea:_0x4893e3,index:_0x51fcfa}=_0x20c7ae;this[_0x3a6332(0xd0)](this[_0x3a6332(0x11f)][_0x3a6332(0x88)],{'unitId':_0x110071,'subUnitId':_0x46768e,'pivotTableId':_0x4db618,'dataFieldId':_0x520198,'fieldArea':_0x4893e3,'index':_0x51fcfa});}}[_0x483097(0xca)](_0x52e13d){const _0x3307a4=_0x483097;if(_0x52e13d){const {unitId:_0x292f1e,subUnitId:_0x19a4eb,pivotTableId:_0x49af43,fieldIds:_0x217337}=_0x52e13d;this[_0x3307a4(0xd0)](this[_0x3307a4(0x11f)][_0x3307a4(0x138)],{'unitId':_0x292f1e,'subUnitId':_0x19a4eb,'pivotTableId':_0x49af43,'fieldIds':_0x217337['concat']()});}}['_firePivotTableFieldMovedEvent'](_0x591129){const _0xa1b260=_0x483097;if(_0x591129){const {unitId:_0xd657e2,subUnitId:_0x133139,pivotTableId:_0x4651b3,fieldId:_0x4925a4,area:_0x1070da,index:_0x509896}=_0x591129;this[_0xa1b260(0xd0)](this[_0xa1b260(0x11f)][_0xa1b260(0xa3)],{'unitId':_0xd657e2,'subUnitId':_0x133139,'pivotTableId':_0x4651b3,'fieldId':_0x4925a4,'area':_0x1070da,'index':_0x509896});}}[_0x483097(0x87)](_0x44ad6d){const _0x1ff624=_0x483097;if(_0x44ad6d){const {unitId:_0x3fa6df,subUnitId:_0x22540f,row:_0x304511,col:_0x11835,collapse:_0x20741d}=_0x44ad6d;this[_0x1ff624(0xd0)](this[_0x1ff624(0x11f)][_0x1ff624(0xbb)],{'unitId':_0x3fa6df,'subUnitId':_0x22540f,'row':_0x304511,'col':_0x11835,'collapse':_0x20741d});}}[_0x483097(0x96)](_0x50fd56){const _0x4c5b4c=_0x483097;if(_0x50fd56){const {unitId:_0x594c38,subUnitId:_0x1f60b5,pivotTableId:_0x130805,tableFieldId:_0x186a8f,items:_0x2ce2e3,isAll:_0x24cfeb}=_0x50fd56;this[_0x4c5b4c(0xd0)](this[_0x4c5b4c(0x11f)]['PivotTableFieldFilterChanged'],{'unitId':_0x594c38,'subUnitId':_0x1f60b5,'pivotTableId':_0x130805,'tableFieldId':_0x186a8f,'items':_0x2ce2e3[_0x4c5b4c(0xc1)](),'isAll':_0x24cfeb});}}[_0x483097(0xad)](_0x4cfec6){const _0x24b80d=_0x483097;if(_0x4cfec6){const {unitId:_0x1a2c96,subUnitId:_0x269a54,pivotTableId:_0x5e7773,tableFieldId:_0x3b17d2,info:_0x15df2c}=_0x4cfec6;this['fireEvent'](this[_0x24b80d(0x11f)]['PivotTableFieldSortChanged'],{'unitId':_0x1a2c96,'subUnitId':_0x269a54,'pivotTableId':_0x5e7773,'tableFieldId':_0x3b17d2,'info':{..._0x15df2c}});}}[_0x483097(0x114)](_0x23f99e){const _0x4465eb=_0x483097;if(_0x23f99e){const {unitId:_0x1bc8a3,subUnitId:_0x7f2147,tableFieldId:_0x534020,pivotTableId:_0xb9de8e,displayName:_0x5391f5,format:_0x50640c,subtotalType:_0x538f38,tableFieldInfo:_0x1cc347,dataFieldInfo:_0x19dc16}=_0x23f99e;this[_0x4465eb(0xd0)](this['Event'][_0x4465eb(0xa9)],{'unitId':_0x1bc8a3,'subUnitId':_0x7f2147,'tableFieldId':_0x534020,'pivotTableId':_0xb9de8e,'displayName':_0x5391f5,'format':_0x50640c,'subtotalType':_0x538f38,'tableFieldInfo':_0x1cc347,'dataFieldInfo':_0x19dc16});}}[_0x483097(0x176)](_0x49aeeb){const _0x288cb8=_0x483097;if(_0x49aeeb){const {pivotTableId:_0x25e3bc,position:_0x7bc306,index:_0x46db21}=_0x49aeeb;this['fireEvent'](this[_0x288cb8(0x11f)][_0x288cb8(0x166)],{'pivotTableId':_0x25e3bc,'position':_0x7bc306,'index':_0x46db21});}}[_0x483097(0xd6)](_0x34b071){const _0x4165c6=_0x483097;if(_0x34b071){const {positionType:_0x45e397,pivotTableId:_0x7eb329,pivotTableConfig:_0x36e0c8}=_0x34b071,{targetCellInfo:_0x3b9e71,sourceRangeInfo:_0x9c9d57}=_0x36e0c8,{unitId:_0x4237f9}=_0x3b9e71;this[_0x4165c6(0xd0)](this[_0x4165c6(0x11f)][_0x4165c6(0x172)],{'unitId':_0x4237f9,'positionType':_0x45e397,'pivotTableId':_0x7eb329,'sourceRangeInfo':{'startRow':_0x9c9d57[_0x4165c6(0x130)][_0x4165c6(0x122)],'endRow':_0x9c9d57[_0x4165c6(0x130)][_0x4165c6(0x170)],'startColumn':_0x9c9d57['range'][_0x4165c6(0x14e)],'endColumn':_0x9c9d57[_0x4165c6(0x130)]['endColumn'],'unitId':_0x9c9d57[_0x4165c6(0xda)],'subUnitId':_0x9c9d57[_0x4165c6(0x8d)],'sheetName':_0x9c9d57['sheetName']},'targetCellInfo':{'row':_0x3b9e71[_0x4165c6(0xde)],'column':_0x3b9e71[_0x4165c6(0x139)],'sheetName':_0x3b9e71[_0x4165c6(0x160)],'unitId':_0x3b9e71[_0x4165c6(0xda)],'subUnitId':_0x3b9e71[_0x4165c6(0x8d)]}});}}[_0x483097(0x14d)](_0x283a76){const _0x3a6a85=_0x483097;if(_0x283a76){const {positionType:_0x1cfc6e,pivotTableId:_0x32e09c,pivotTableConfig:_0x216342}=_0x283a76,{targetCellInfo:_0x26e2f1,sourceRangeInfo:_0x13072c}=_0x216342,{unitId:_0x564514}=_0x26e2f1,_0x16f1a5={'unitId':_0x564514,'positionType':_0x1cfc6e,'pivotTableId':_0x32e09c,'sourceRangeInfo':{'startRow':_0x13072c[_0x3a6a85(0x130)]['startRow'],'endRow':_0x13072c[_0x3a6a85(0x130)]['endRow'],'startColumn':_0x13072c['range'][_0x3a6a85(0x14e)],'endColumn':_0x13072c[_0x3a6a85(0x130)][_0x3a6a85(0x149)],'unitId':_0x13072c[_0x3a6a85(0xda)],'subUnitId':_0x13072c['subUnitId'],'sheetName':_0x13072c[_0x3a6a85(0x160)]},'targetCellInfo':{'row':_0x26e2f1[_0x3a6a85(0xde)],'column':_0x26e2f1[_0x3a6a85(0x139)],'sheetName':_0x26e2f1['sheetName'],'unitId':_0x26e2f1[_0x3a6a85(0xda)],'subUnitId':_0x26e2f1[_0x3a6a85(0x8d)]},'cancel':!0x1};if(this[_0x3a6a85(0xd0)](this[_0x3a6a85(0x11f)][_0x3a6a85(0x169)],_0x16f1a5),_0x16f1a5[_0x3a6a85(0x100)])throw new Error('Before\x20add\x20pivot\x20table\x20event\x20canceled');}}[_0x483097(0xe8)](_0x4146b5){const _0x1d78c7=_0x483097;if(_0x4146b5){const {unitId:_0x586764,pivotTableId:_0x167f58}=_0x4146b5;this[_0x1d78c7(0xd0)](this[_0x1d78c7(0x11f)][_0x1d78c7(0xe1)],{'unitId':_0x586764,'pivotTableId':_0x167f58});}}[_0x483097(0xef)](_0x2fa29e){const _0x293647=_0x483097;if(_0x2fa29e){const {originTargetInfo:_0x48d2be,pivotTableId:_0x4959de,targetCellInfo:_0x33f285}=_0x2fa29e,{unitId:_0x3dc054}=_0x48d2be,_0xdd7d3a=this['_injector'][_0x293647(0xcb)](l[_0x293647(0xe0)])[_0x293647(0x144)](_0x48d2be[_0x293647(0xda)],_0x48d2be[_0x293647(0x8d)],_0x4959de);if(!_0xdd7d3a)return;const _0x3340f5={'unitId':_0x3dc054,'pivotTableId':_0x4959de,'originTargetInfo':{'row':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0xde)],'column':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0x139)],'unitId':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0xda)],'subUnitId':_0xdd7d3a[_0x293647(0x15e)][_0x293647(0x8d)]},'targetCellInfo':{'row':_0x33f285[_0x293647(0xde)],'column':_0x33f285[_0x293647(0x139)],'unitId':_0x33f285[_0x293647(0xda)],'subUnitId':_0x33f285[_0x293647(0x8d)]},'cancel':!0x1};if(this[_0x293647(0xd0)](this[_0x293647(0x11f)][_0x293647(0x12f)],_0x3340f5),_0x3340f5[_0x293647(0x100)])throw new Error('Before\x20move\x20pivot\x20table\x20event\x20canceled');}}['_fireMovedPivotTableEvent'](_0x56dedf){const _0xa918cf=_0x483097;if(_0x56dedf){const {originTargetInfo:_0x1e35c7,pivotTableId:_0x29d2b8,targetCellInfo:_0x3691ed}=_0x56dedf,{unitId:_0x291158}=_0x1e35c7,_0x5d1cee=this[_0xa918cf(0x168)]['get'](l['SheetsPivotTableConfigModel'])[_0xa918cf(0x144)](_0x1e35c7[_0xa918cf(0xda)],_0x1e35c7['subUnitId'],_0x29d2b8);if(!_0x5d1cee)return;this[_0xa918cf(0xd0)](this[_0xa918cf(0x11f)][_0xa918cf(0xfe)],{'unitId':_0x291158,'pivotTableId':_0x29d2b8,'originTargetInfo':{'row':_0x5d1cee[_0xa918cf(0x15e)][_0xa918cf(0xde)],'column':_0x5d1cee['targetCellInfo'][_0xa918cf(0x139)],'unitId':_0x5d1cee[_0xa918cf(0x15e)][_0xa918cf(0xda)],'subUnitId':_0x5d1cee[_0xa918cf(0x15e)]['subUnitId']},'targetCellInfo':{'row':_0x3691ed[_0xa918cf(0xde)],'column':_0x3691ed['col'],'unitId':_0x3691ed[_0xa918cf(0xda)],'subUnitId':_0x3691ed[_0xa918cf(0x8d)]}});}}[_0x483097(0xec)](_0x75f641){const _0x576dd1=_0x483097;if(_0x75f641){const {unitId:_0x2ca944,subUnitId:_0x45f683,pivotTableId:_0x2fc792,type:_0x2d9f98,rangesCache:_0x550f89,isEmpty:_0x5a44f4}=_0x75f641;this[_0x576dd1(0xd0)](this[_0x576dd1(0x11f)][_0x576dd1(0xdf)],{'unitId':_0x2ca944,'subUnitId':_0x45f683,'pivotTableId':_0x2fc792,'changeType':_0x2d9f98,'isEmpty':!!_0x5a44f4,'rangeInfo':_0x550f89});}}[_0x483097(0x126)](_0x21b1ca,_0x377505){const _0x3363e0=_0x483097,_0x47dc79=(_0x377505?new _0x377505():new ve())[_0x3363e0(0xcc)]('data',_0x21b1ca),_0x3ec846=_0x21b1ca[0x0];_0x47dc79['getFieldIds']()[_0x3363e0(0xb6)]((_0x2b44e4,_0x5acda4)=>{const _0x5bdf18=_0x3363e0;_0x47dc79[_0x5bdf18(0xf7)](_0x2b44e4,_0x3ec846[_0x5acda4]);});const _0x3e680f=r[_0x3363e0(0xff)](0x8),_0x4b2462=new r['PivotTable'](_0x47dc79,void 0x0,_0x3e680f);return new re(this['_injector'],_0x4b2462,_0x21b1ca,_0x3e680f);}}A['FUniver'][_0x483097(0x157)](ce);
1
+ 'use strict';function _0x43bf(){const _0x58c347=['setLabelSort','Filter','PivotTableAdded','415172NhQfzn','getValueFilter','_firePivotTableFieldSortChangedEvent','_pivot','_firePivotTableFieldRemovedEvent','_initialize','PivotTableChangeTypeEnum','70IrnJmD','32724WhSmDS','DataFieldManager','blank','_firePivotTableRemovedEvent','RemovePivotTableMutation','GrandTotal','PivotSubtotalTypeEnum','Total\x20','extend','beforeCommandExecuted','getFieldIds','getDataFieldIdByDisplayName','dataFieldsCollection','47568aJChde','getColCount','getValueIndex','setSubtotal','SheetsPivotTableAdaptorModel','470040inHrZD','level','number','240ojmZXI','_getSourceIdByName','addFieldWithSourceId','_firePivotTableFieldSettingChangedEvent','PivotTableFieldSortChanged','PivotTable','_id','_injector','params','getPivotTableConfig','_fireAddPivotTableEvent','PivotDataFieldDataTypeEnum','PivotCellStyleTypeEnum','valueFilter','getCollection','data','filter','PivotTableFieldSettingChanged','[PivotTable]:\x20The\x20field\x20name\x20','PivotDataFieldSortOperatorEnum','[DataFieldManager]:\x20Data\x20is\x20not\x20a\x20valid\x20array','getRangeData','targetCellInfo','tableFieldId','_fireRenderPivotTableEvent','AddPivotFieldCommand','Subtotal','_firePivotTableFieldMovedEvent','endColumn','810540baMDRe','max','Value','getTargetByPivotTableId','onCommandExecuted','query','hiddenFields','unitId','MovePivotFieldCommand','Row','(空白)','PivotTableMoved','MovePivotTableCommand','dispose','pivotTableId','remove','subtotal','startRow','getformat','forEach','updateValuePosition','getFieldDataTypeByFieldName','auditTime','RenamePivotFieldMutation','Grand\x20Total\x20','getRowCount','getPivotTableById','getPivotTableId','AddPivotTableWithConfigCommand','PositionTypeEnum','SetPivotFieldsConfigCommand','Hidden','_firePivotTableFieldCollapsedEvent','43848WAXsOh','info','getFieldCountByArea','fieldsConfig','BeforePivotTableMove','reset','measure','getSourceName','getUnitId','setOptions','PivotDateGroupFieldDateTypeEnum','_isZhCN','getSheetId','getFieldDataType','getValueFilters','isNaN','PivotTableFieldFilterChanged','headerMap','iterateFieldByArea','removeField','getUnit','_fireBeforeAddPivotTableEvent','SetPivotFilterCommand','UpdateDateGroupCommand','concat','column','name','filterInfo','isArray','keys','SetPivotCollapseCommand','length','fieldDataType','push','get','@univerjs/core/facade','None','PivotTableRendered','fieldIds','getPivotTableByCell','columnFields','getValuePosition','PivotTableFieldAdded','getFieldById','PivotTableFieldCollapseChanged','isBottomTotal','rangeInfo','getTime','addPivotTable','valueIndex','object','@univerjs/core','SetPivotValueFilterCommand','ST_PivotFilterOperatorEnum','FWorksheet','小计\x20','_firePivotTableFieldAddedEvent','getFieldIdsByArea','getSourceFieldsInfo','SheetsPivotTableConfigModel','PositionType','getDimensionInfo','LocaleService','col','ResetPivotFieldsConfigCommand','createCollection','viewUpdate$','Event','SetPivotSubtotalTypeMutation','fireEvent','setFieldFormat','UpdatePivotValuePositionCommand','syncExecuteCommand','Column','PivotTableValuePositionChanged','_fireBeforeMovePivotTableEvent','getDataFieldByTableId','PivotTableFiledAreaEnum','SetPivotSortCommand','addValueFieldWithName','move','subUnitId','subscribe','sheetName','string','_fireMovedPivotTableEvent','LifecycleStages','executeCommand','value','LifecycleService','ValueFilter','PivotTableFieldMoved','getPivotTableRangeInfo','row','(blank)','defineProperty','format','setDisplayName','BeforePivotTableAdd','FEnum','PivotTableValuePositionEnum','FWorkbook','AddPivotTableCommand','renameField','cancel','PivotFilterTypeEnum','_firePivotTableValuePositionChangedEvent','range','PivotDataFieldSortTypeEnum','unionPivotViewRange','@univerjs-pro/sheets-pivot','LocaleType','generatePivotTable','symbol','Before\x20move\x20pivot\x20table\x20event\x20canceled','getId','generateHexNumber','PivotTableFieldRemoved','FEventName','259951TqkaqC','numfmt','_sourceData','@univerjs/sheets/facade','startColumn','setDateGroupType','getSheetBySheetName','rxjs','RemovePivotFieldCommand','getFieldDisplayNames','setSubtotalType','addFieldWithName','registerEventHandler','_firePivotTableFieldFilterChangedEvent','YYYY-MM-DD','PivotTableRemoved','ICommandService'];_0x43bf=function(){return _0x58c347;};return _0x43bf();}const _0x45edc6=_0x4922;(function(_0x584d6d,_0x1fceb8){const _0x3583f7=_0x4922,_0x4c8f2a=_0x584d6d();while(!![]){try{const _0x366162=parseInt(_0x3583f7(0x120))/0x1+parseInt(_0x3583f7(0x134))/0x2+-parseInt(_0x3583f7(0x16e))/0x3+parseInt(_0x3583f7(0x149))/0x4+-parseInt(_0x3583f7(0x14e))/0x5+parseInt(_0x3583f7(0x18f))/0x6*(-parseInt(_0x3583f7(0x13b))/0x7)+-parseInt(_0x3583f7(0x151))/0x8*(-parseInt(_0x3583f7(0x13c))/0x9);if(_0x366162===_0x1fceb8)break;else _0x4c8f2a['push'](_0x4c8f2a['shift']());}catch(_0x1575ba){_0x4c8f2a['push'](_0x4c8f2a['shift']());}}}(_0x43bf,0x24ec9));function _0x4922(_0x8866a9,_0x1a469e){const _0x43bf35=_0x43bf();return _0x4922=function(_0x492244,_0x1ca75c){_0x492244=_0x492244-0xf3;let _0x46f702=_0x43bf35[_0x492244];return _0x46f702;},_0x4922(_0x8866a9,_0x1a469e);}var ee=Object[_0x45edc6(0x108)],te=(_0x17a75d,_0x5a41db,_0x135c38)=>_0x5a41db in _0x17a75d?ee(_0x17a75d,_0x5a41db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x135c38}):_0x17a75d[_0x5a41db]=_0x135c38,y=(_0x54787d,_0x1ec59d,_0x32832b)=>te(_0x54787d,typeof _0x1ec59d!=_0x45edc6(0x11a)?_0x1ec59d+'':_0x1ec59d,_0x32832b);const r=require('@univerjs-pro/engine-pivot'),l=require(_0x45edc6(0x117)),m=require(_0x45edc6(0x1c2)),R=require(_0x45edc6(0x123)),A=require(_0x45edc6(0x1b2)),ie=require(_0x45edc6(0x127));class x{constructor(_0x43e544,_0x1f8372,_0x4ce339,_0x261d80){const _0x33e3c1=_0x45edc6;y(this,_0x33e3c1(0x175)),y(this,_0x33e3c1(0xfa)),y(this,'pivotTableId'),y(this,_0x33e3c1(0x158)),(this[_0x33e3c1(0x175)]=_0x43e544,this[_0x33e3c1(0xfa)]=_0x1f8372,this[_0x33e3c1(0x17c)]=_0x4ce339,this['_injector']=_0x261d80);}['getConfig'](){const _0x5dc690=_0x45edc6;return this[_0x5dc690(0x158)][_0x5dc690(0x1b1)](l[_0x5dc690(0x1ca)])['getPivotTableConfig'](this[_0x5dc690(0x175)],this['subUnitId'],this[_0x5dc690(0x17c)]);}['setFieldsConfig'](_0x1a47d8){const _0x253a77=_0x45edc6,_0x4eb05b=this[_0x253a77(0x158)][_0x253a77(0x1b1)](m[_0x253a77(0x130)]),_0x4a6a6e={'unitId':this[_0x253a77(0x175)],'subUnitId':this[_0x253a77(0xfa)],'pivotTableId':this[_0x253a77(0x17c)],'pivotTableConfig':_0x1a47d8};return _0x4eb05b['executeCommand'](l[_0x253a77(0x18c)]['id'],_0x4a6a6e);}['reset'](_0x2aa963){const _0x63f004=_0x45edc6,_0x395a3c=this[_0x63f004(0x158)][_0x63f004(0x1b1)](m[_0x63f004(0x130)]),_0x16afda={'unitId':this[_0x63f004(0x175)],'subUnitId':this[_0x63f004(0xfa)],'pivotTableId':this[_0x63f004(0x17c)],'resetArea':_0x2aa963};return _0x395a3c[_0x63f004(0x100)](l[_0x63f004(0x1cf)]['id'],_0x16afda);}[_0x45edc6(0x189)](){const _0x46ae32=_0x45edc6;return this[_0x46ae32(0x17c)];}['getFieldSetting'](_0x3c7619){const _0x4d7320=_0x45edc6,_0xcf1d48=this[_0x4d7320(0x158)][_0x4d7320(0x1b1)](l[_0x4d7320(0x1ca)])[_0x4d7320(0x15a)](this['unitId'],this['subUnitId'],this['pivotTableId']),_0x3ac374=_0xcf1d48==null?void 0x0:_0xcf1d48[_0x4d7320(0x192)];if(_0x3ac374)return _0x3ac374['dimension'][_0x3c7619]||_0x3ac374[_0x4d7320(0x195)][_0x3c7619];}[_0x45edc6(0x1c9)](){const _0x3f7e9c=_0x45edc6,_0x2619a6=this[_0x3f7e9c(0x158)],_0x5da256=this[_0x3f7e9c(0x175)],_0x3ced51=this[_0x3f7e9c(0x17c)],_0x49c2e9=_0x2619a6[_0x3f7e9c(0x1b1)](l['SheetsPivotTableConfigModel'])[_0x3f7e9c(0x15f)](_0x5da256,_0x3ced51);if(_0x49c2e9){const _0x4bf412=_0x49c2e9['fieldIds'],_0x5f3546=_0x49c2e9['fields'],_0x207c92=_0x49c2e9['displayNameRecord'],_0x96087a=[];for(const _0x2728cf of _0x4bf412){const _0x26c0a0=_0x5f3546[_0x2728cf];if(_0x26c0a0){const _0x1fa1a2={'id':_0x2728cf,'name':_0x26c0a0[_0x3f7e9c(0x1a9)],'fieldDataType':_0x26c0a0[_0x3f7e9c(0x1af)]};_0x207c92&&_0x207c92[_0x2728cf]!==void 0x0&&(_0x1fa1a2['displayName']=_0x207c92[_0x2728cf]),_0x96087a[_0x3f7e9c(0x1b0)](_0x1fa1a2);}}return _0x96087a;}return[];}[_0x45edc6(0x135)](_0x310d65){const _0x49fc8b=_0x45edc6;var _0x4f330e;const _0x48eab7=this['_injector'][_0x49fc8b(0x1b1)](l['SheetsPivotTableConfigModel'])[_0x49fc8b(0x15a)](this[_0x49fc8b(0x175)],this['subUnitId'],this[_0x49fc8b(0x17c)]),_0x1e065d=_0x48eab7==null?void 0x0:_0x48eab7[_0x49fc8b(0x192)][_0x49fc8b(0x15e)];return(_0x4f330e=_0x1e065d==null?void 0x0:_0x1e065d['find'](_0x4bbb51=>_0x4bbb51['fieldId']===_0x310d65))==null?void 0x0:_0x4f330e[_0x49fc8b(0x1aa)];}[_0x45edc6(0x19d)](){const _0x5b14d3=_0x45edc6,_0x21633a=this[_0x5b14d3(0x158)][_0x5b14d3(0x1b1)](l[_0x5b14d3(0x1ca)])[_0x5b14d3(0x15a)](this[_0x5b14d3(0x175)],this[_0x5b14d3(0xfa)],this['pivotTableId']),_0x4547ea=_0x21633a==null?void 0x0:_0x21633a[_0x5b14d3(0x192)][_0x5b14d3(0x15e)];return(_0x4547ea==null?void 0x0:_0x4547ea['concat']())||[];}[_0x45edc6(0x1c8)](_0xa01470){const _0x4f09cf=_0x45edc6,_0x2d0af7=this[_0x4f09cf(0x158)][_0x4f09cf(0x1b1)](l[_0x4f09cf(0x1ca)])['getPivotTableConfig'](this[_0x4f09cf(0x175)],this[_0x4f09cf(0xfa)],this[_0x4f09cf(0x17c)]),_0x21bc59=_0x2d0af7==null?void 0x0:_0x2d0af7[_0x4f09cf(0x192)];if(_0x21bc59)switch(_0xa01470){case r[_0x4f09cf(0xf6)][_0x4f09cf(0x1d8)]:return _0x21bc59[_0x4f09cf(0x1b7)][_0x4f09cf(0x1a7)]();case r[_0x4f09cf(0xf6)][_0x4f09cf(0x177)]:return _0x21bc59['rowFields'][_0x4f09cf(0x1a7)]();case r[_0x4f09cf(0xf6)][_0x4f09cf(0x170)]:return _0x21bc59['valueFields'][_0x4f09cf(0x1a7)]();case r[_0x4f09cf(0xf6)][_0x4f09cf(0x132)]:return _0x21bc59['filterFields'][_0x4f09cf(0x1a7)]();case r[_0x4f09cf(0xf6)][_0x4f09cf(0x18d)]:return _0x21bc59[_0x4f09cf(0x174)][_0x4f09cf(0x1a7)]();}return[];}[_0x45edc6(0x105)](){const _0x5d6d5e=_0x45edc6;var _0x28443e;const _0x253bc6=(_0x28443e=this[_0x5d6d5e(0x158)][_0x5d6d5e(0x1b1)](l[_0x5d6d5e(0x1ca)])[_0x5d6d5e(0x105)](this['unitId'],this[_0x5d6d5e(0xfa)],this[_0x5d6d5e(0x17c)]))==null?void 0x0:_0x28443e[_0x5d6d5e(0x1bd)];if(_0x253bc6)return l[_0x5d6d5e(0x116)](_0x253bc6);}async[_0x45edc6(0x17d)](){const _0x252084=_0x45edc6;return await this[_0x252084(0x158)][_0x252084(0x1b1)](m['ICommandService'])[_0x252084(0x1d7)](l[_0x252084(0x140)]['id'],{'unitId':this[_0x252084(0x175)],'subUnitId':this[_0x252084(0xfa)],'pivotTableId':this['pivotTableId']});}async['addField'](_0x236f96,_0x39af6a,_0x596025){const _0x35d593=_0x45edc6,_0x23ffbf=this[_0x35d593(0x158)],_0x5bd9fd=this[_0x35d593(0x175)],_0x197962=this[_0x35d593(0xfa)],_0x4305f6=this[_0x35d593(0x17c)],_0x4cc89c=_0x23ffbf[_0x35d593(0x1b1)](m['ICommandService']),_0x38c5db=_0x23ffbf[_0x35d593(0x1b1)](l[_0x35d593(0x1ca)]),_0x5b298c=_0x38c5db[_0x35d593(0x15a)](_0x5bd9fd,_0x197962,_0x4305f6),_0x345558=_0x38c5db[_0x35d593(0x15f)](_0x5bd9fd,_0x4305f6);if(!_0x5b298c||!_0x345558)return!0x1;let _0x42cac6=_0x236f96;typeof _0x42cac6==_0x35d593(0x150)&&(_0x42cac6=_0x38c5db[_0x35d593(0x15f)](_0x5bd9fd,_0x4305f6)[_0x35d593(0x1b5)][_0x236f96]);const _0x36b849={'unitId':_0x5bd9fd,'subUnitId':_0x197962,'pivotTableId':_0x4305f6,'dataFieldId':_0x42cac6,'fieldArea':_0x39af6a,'index':_0x596025};return _0x4cc89c[_0x35d593(0x100)](l[_0x35d593(0x16a)]['id'],_0x36b849);}async[_0x45edc6(0x1a2)](_0x5793c9){const _0x17033b=_0x45edc6,_0x78f452=this[_0x17033b(0x158)],_0x258f3d=this[_0x17033b(0x175)],_0x50f8de=this['subUnitId'],_0x2135cc=this[_0x17033b(0x17c)],_0xe37a3=_0x78f452['get'](m[_0x17033b(0x130)]),_0x34ef85={'unitId':_0x258f3d,'subUnitId':_0x50f8de,'pivotTableId':_0x2135cc,'fieldIds':_0x5793c9};return _0xe37a3[_0x17033b(0x100)](l[_0x17033b(0x128)]['id'],_0x34ef85);}async['updateFieldPosition'](_0x5cca40,_0x36a398,_0x2beb14){const _0x449bef=_0x45edc6,_0x50b954=this[_0x449bef(0x158)],_0x5da17c=this[_0x449bef(0x175)],_0x44ed33=this[_0x449bef(0xfa)],_0x1a0504=this['pivotTableId'],_0x2e7c62=_0x50b954[_0x449bef(0x1b1)](m[_0x449bef(0x130)]),_0x134c9a={'unitId':_0x5da17c,'subUnitId':_0x44ed33,'pivotTableId':_0x1a0504,'fieldId':_0x5cca40,'area':_0x36a398,'index':_0x2beb14};return _0x2e7c62[_0x449bef(0x100)](l[_0x449bef(0x176)]['id'],_0x134c9a);}async[_0x45edc6(0x182)](_0x39c3ab,_0x4bfc15){const _0x2676a8=_0x45edc6,_0x275cb6=this[_0x2676a8(0x158)],_0x1fc456=this[_0x2676a8(0x175)],_0x4c4b5e=this[_0x2676a8(0xfa)],_0x58100f=this[_0x2676a8(0x17c)],_0x5caecf=_0x275cb6['get'](m[_0x2676a8(0x130)]),_0x1938ff={'unitId':_0x1fc456,'subUnitId':_0x4c4b5e,'pivotTableId':_0x58100f,'position':_0x39c3ab,'index':_0x4bfc15};return _0x5caecf[_0x2676a8(0x100)](l['UpdatePivotValuePositionCommand']['id'],_0x1938ff);}async[_0x45edc6(0x12a)](_0x29aa2e,_0x352d68){const _0x5e6283=_0x45edc6,_0x119ee8=this[_0x5e6283(0x158)],_0xa5b0bf=this[_0x5e6283(0x175)],_0x22fd43=this['subUnitId'],_0x13db9d=this['pivotTableId'],_0x34180c=_0x119ee8['get'](m[_0x5e6283(0x130)]),_0x1b6246={'unitId':_0xa5b0bf,'subUnitId':_0x22fd43,'pivotTableId':_0x13db9d,'fieldId':_0x29aa2e,'subtotalType':_0x352d68};return _0x34180c[_0x5e6283(0x100)](l[_0x5e6283(0x1d3)]['id'],_0x1b6246);}async[_0x45edc6(0x131)](_0xdffdce,_0x2f3d6b){const _0x4822ea=_0x45edc6,_0x3656b4=this[_0x4822ea(0x158)],_0x38c0cc=this[_0x4822ea(0x175)],_0x2fd235=this[_0x4822ea(0xfa)],_0x29b798=this['pivotTableId'],_0x175c65=_0x3656b4['get'](m['ICommandService']),_0x3b155e={'unitId':_0x38c0cc,'subUnitId':_0x2fd235,'tableFieldId':_0xdffdce,'pivotTableId':_0x29b798,'info':_0x2f3d6b};return _0x175c65['executeCommand'](l[_0x4822ea(0xf7)]['id'],_0x3b155e);}async['setLabelManualFilter'](_0x144331,_0x216a3b,_0x72b34d){const _0x438f92=_0x45edc6,_0x1c7f0d=this[_0x438f92(0x158)],_0xcc3b02=this[_0x438f92(0x175)],_0x15ad71=this[_0x438f92(0xfa)],_0x2458c9=this[_0x438f92(0x17c)],_0x5bbe2e=_0x1c7f0d[_0x438f92(0x1b1)](m[_0x438f92(0x130)]),_0xabeabd={'unitId':_0xcc3b02,'subUnitId':_0x15ad71,'pivotTableId':_0x2458c9,'tableFieldId':_0x144331,'items':_0x216a3b,'isAll':_0x72b34d};return _0x5bbe2e[_0x438f92(0x100)](l['SetPivotFilterCommand']['id'],_0xabeabd);}async['setValueFilter'](_0x26a95f,_0x4c7f30){const _0x1088a2=_0x45edc6,_0x384f7f=this[_0x1088a2(0x158)],_0x11b4ce=this[_0x1088a2(0x175)],_0x54e5a1=this['subUnitId'],_0x5ebb75=this['pivotTableId'],_0x228e76=_0x384f7f[_0x1088a2(0x1b1)](m[_0x1088a2(0x130)]);if(_0x26a95f===void 0x0)return console['warn']('[Pivot\x20Table]:\x20The\x20field\x20id\x20is\x20undefined'),!0x1;const _0x29c30f=_0x4c7f30&&{..._0x4c7f30,'type':r[_0x1088a2(0x112)][_0x1088a2(0x103)]},_0x11486a={'unitId':_0x11b4ce,'subUnitId':_0x54e5a1,'pivotTableId':_0x5ebb75,'fieldId':_0x26a95f,'valueFilterInfo':_0x29c30f};return _0x228e76['executeCommand'](l[_0x1088a2(0x1c3)]['id'],_0x11486a);}async[_0x45edc6(0x110)](_0x1ef49f,_0x379d36){const _0x5e7959=_0x45edc6,_0xb7ec4e=this[_0x5e7959(0x158)],_0x122473=this[_0x5e7959(0x175)],_0x478962=this[_0x5e7959(0xfa)],_0x2ba6a7=this['pivotTableId'],_0x16099e=_0xb7ec4e['get'](m['ICommandService']),_0x454204={'unitId':_0x122473,'subUnitId':_0x478962,'pivotTableId':_0x2ba6a7,'fieldId':_0x1ef49f,'name':_0x379d36};return _0x16099e['executeCommand'](l[_0x5e7959(0x185)]['id'],_0x454204);}async[_0x45edc6(0xf9)](_0xbf5a58,_0x6fe3e8,_0x2fa003){const _0x23117e=_0x45edc6,_0x30c4c2=this[_0x23117e(0x158)][_0x23117e(0x1b1)](m[_0x23117e(0x130)]),_0xea4b51=this['_injector']['get'](m['IUniverInstanceService'])[_0x23117e(0x1a3)](this[_0x23117e(0x175)]),_0x364c2d=_0xea4b51==null?void 0x0:_0xea4b51[_0x23117e(0x126)](_0xbf5a58);if(!_0xea4b51||!_0x364c2d)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');return _0x30c4c2[_0x23117e(0x100)](l[_0x23117e(0x17a)]['id'],{'pivotTableId':this[_0x23117e(0x17c)],'targetCellInfo':{'subUnitId':_0x364c2d[_0x23117e(0x19b)](),'unitId':this[_0x23117e(0x175)],'row':_0x6fe3e8,'col':_0x2fa003},'originTargetInfo':{'subUnitId':this[_0x23117e(0xfa)],'unitId':this[_0x23117e(0x175)]}});}async[_0x45edc6(0x125)](_0x2fc313,_0x2d596a){const _0x1f78eb=_0x45edc6,_0x32be8e=this[_0x1f78eb(0x158)],_0x43078f=this[_0x1f78eb(0x175)],_0x5262fa=this[_0x1f78eb(0xfa)],_0x54ea6e=this[_0x1f78eb(0x17c)],_0x490b77=_0x32be8e[_0x1f78eb(0x1b1)](m[_0x1f78eb(0x130)]),_0x38699a={'unitId':_0x43078f,'subUnitId':_0x5262fa,'pivotTableId':_0x54ea6e,'tableFieldId':_0x2fc313,'dateType':_0x2d596a};return _0x490b77[_0x1f78eb(0x100)](l[_0x1f78eb(0x1a6)]['id'],_0x38699a);}}class oe extends R[_0x45edc6(0x10e)]{async[_0x45edc6(0x1bf)](_0x2ea816,_0x9473a4,_0x178c8e){const _0x4f6d90=_0x45edc6,_0x178df6=this[_0x4f6d90(0x158)],_0x3b640f=_0x178df6[_0x4f6d90(0x1b1)](m[_0x4f6d90(0x130)]),_0x54dd21=r[_0x4f6d90(0x11d)](0x8),_0x5329dc={'positionType':_0x9473a4,'pivotTableId':_0x54dd21,'pivotTableConfig':{'targetCellInfo':_0x178c8e,'sourceRangeInfo':_0x2ea816,'isEmpty':!0x0}};if(await _0x3b640f['executeCommand'](l[_0x4f6d90(0x10f)]['id'],_0x5329dc))return new x(_0x178c8e[_0x4f6d90(0x175)],_0x178c8e['subUnitId'],_0x54dd21,_0x178df6);}[_0x45edc6(0x1b6)](_0x4a0ce9,_0x1d08ae,_0x12417b,_0x222db6){const _0x337e90=_0x45edc6,_0x56b9f3=this[_0x337e90(0x158)],_0x152783=_0x56b9f3[_0x337e90(0x1b1)](l[_0x337e90(0x14d)])['getPivotTableIdByCell'](_0x4a0ce9,_0x1d08ae,_0x12417b,_0x222db6);if(_0x152783)return new x(_0x4a0ce9,_0x1d08ae,_0x152783,_0x56b9f3);}[_0x45edc6(0x188)](_0xc9f2a){const _0x372664=_0x45edc6,_0x598548=this['_injector'],_0x27cb25=_0x598548['get'](l[_0x372664(0x1ca)])[_0x372664(0x171)](this['getId'](),_0xc9f2a);if(_0x27cb25)return new x(_0x27cb25[_0x372664(0x175)],_0x27cb25[_0x372664(0xfa)],_0xc9f2a,_0x598548);}}R['FWorkbook'][_0x45edc6(0x144)](oe);class ne extends R[_0x45edc6(0x1c5)]{[_0x45edc6(0x1b6)](_0x403464,_0x5bf425){const _0x411fed=_0x45edc6,_0xe62811=this[_0x411fed(0x158)],_0x7353ca=_0xe62811[_0x411fed(0x1b1)](l[_0x411fed(0x14d)]),_0x1354dd=this['_workbook'][_0x411fed(0x197)](),_0x2dfe82=this[_0x411fed(0x19b)](),_0x1daf53=_0x7353ca['getPivotTableIdByCell'](_0x1354dd,_0x2dfe82,_0x403464,_0x5bf425);if(_0x1daf53)return new x(_0x1354dd,_0x2dfe82,_0x1daf53,_0xe62811);}}R[_0x45edc6(0x1c5)][_0x45edc6(0x144)](ne);class ae extends A[_0x45edc6(0x10c)]{get[_0x45edc6(0x142)](){const _0xbcae85=_0x45edc6;return r[_0xbcae85(0x142)];}get[_0x45edc6(0x112)](){const _0x2ff662=_0x45edc6;return r[_0x2ff662(0x112)];}get[_0x45edc6(0xf6)](){const _0x509bb2=_0x45edc6;return r[_0x509bb2(0xf6)];}get[_0x45edc6(0x10d)](){const _0x54be68=_0x45edc6;return r[_0x54be68(0x10d)];}get['PivotDataFieldDataTypeEnum'](){const _0x551db4=_0x45edc6;return r[_0x551db4(0x15c)];}get[_0x45edc6(0x115)](){const _0x15971f=_0x45edc6;return r[_0x15971f(0x115)];}get[_0x45edc6(0x164)](){const _0x5d9a36=_0x45edc6;return r[_0x5d9a36(0x164)];}get['PivotFilterOperatorEnum'](){const _0x52c84b=_0x45edc6;return r[_0x52c84b(0x1c4)];}get[_0x45edc6(0x18b)](){const _0x31369e=_0x45edc6;return l[_0x31369e(0x1cb)];}get[_0x45edc6(0x13a)](){const _0x292883=_0x45edc6;return r[_0x292883(0x13a)];}get['PivotDateGroupFieldDateTypeEnum'](){const _0x74a05=_0x45edc6;return r[_0x74a05(0x199)];}}A['FEnum'][_0x45edc6(0x144)](ae);class se extends A[_0x45edc6(0x11f)]{get[_0x45edc6(0x133)](){const _0x2f2fca=_0x45edc6;return _0x2f2fca(0x133);}get['BeforePivotTableAdd'](){const _0x5ed110=_0x45edc6;return _0x5ed110(0x10b);}get['PivotTableRemoved'](){const _0x50e684=_0x45edc6;return _0x50e684(0x12f);}get[_0x45edc6(0x179)](){const _0x547ed3=_0x45edc6;return _0x547ed3(0x179);}get['PivotTableRendered'](){const _0x4f79e2=_0x45edc6;return _0x4f79e2(0x1b4);}get[_0x45edc6(0x1b9)](){const _0x5a5486=_0x45edc6;return _0x5a5486(0x1b9);}get[_0x45edc6(0x11e)](){return'PivotTableFieldRemoved';}get[_0x45edc6(0x104)](){const _0x2914e3=_0x45edc6;return _0x2914e3(0x104);}get[_0x45edc6(0x1bb)](){const _0x5dab5b=_0x45edc6;return _0x5dab5b(0x1bb);}get[_0x45edc6(0x19f)](){const _0x28634b=_0x45edc6;return _0x28634b(0x19f);}get[_0x45edc6(0x155)](){const _0x515e21=_0x45edc6;return _0x515e21(0x155);}get[_0x45edc6(0x162)](){const _0x1dbed9=_0x45edc6;return _0x1dbed9(0x162);}get[_0x45edc6(0xf3)](){const _0x20adc9=_0x45edc6;return _0x20adc9(0xf3);}}A[_0x45edc6(0x11f)][_0x45edc6(0x144)](se);const Z=_0x45edc6(0x12e);function de(_0x13ee3d){return _0x13ee3d/0x3e8/0x15180+0x63e1;}function le(_0x1b5e8d,_0x4c5de5,_0x401bf8,_0x966848){const _0x15ef28=_0x45edc6;var _0x2b97bf,_0x5e10db,_0x1ba8ad,_0x4da180,_0xdfbe29,_0x33a1ea,_0x527e94,_0x530f95,_0x15ec3e,_0x122793,_0x15e385,_0x299da0,_0x548536,_0xe6d4e,_0x558bd3;const _0x3022bf=[],_0x164fcb=[],_0x4fefd4=[],{showRowGrandTotal:_0x4eaff9,showRowSubTotal:_0xa95f03}=_0x966848,{cornerView:_0x4c01ec,colView:_0x29d5f0,rowView:_0x1d1cec,dataView:_0x26a9e6,formatMap:_0x4c9923}=_0x4c5de5,_0x1fbce2=_0x4c01ec[_0x15ef28(0x187)](),_0x17f9c9=_0x4c01ec[_0x15ef28(0x14a)]();for(let _0x2201eb=0x0;_0x2201eb<_0x1fbce2;_0x2201eb++)for(let _0x2e437e=0x0;_0x2e437e<_0x17f9c9;_0x2e437e++){const _0x121219={...(_0x5e10db=(_0x2b97bf=_0x4c01ec[_0x15ef28(0x160)])==null?void 0x0:_0x2b97bf[_0x2201eb])==null?void 0x0:_0x5e10db[_0x2e437e]};_0x121219['v']&&(_0x3022bf[_0x2201eb]||(_0x3022bf[_0x2201eb]=[]),_0x4fefd4[_0x2201eb]||(_0x4fefd4[_0x2201eb]=[]),_0x3022bf[_0x2201eb][_0x2e437e]=_0x121219['v'],_0x4fefd4[_0x2201eb][_0x2e437e]=_0x121219['v']);}for(let _0x12d838=0x0;_0x12d838<_0x29d5f0[_0x15ef28(0x187)]();_0x12d838++){const _0x2bdfa1=(_0x4da180=(_0x1ba8ad=_0x29d5f0==null?void 0x0:_0x29d5f0[_0x15ef28(0x1a0)])==null?void 0x0:_0x1ba8ad[_0x12d838])==null?void 0x0:_0x4da180[_0x15ef28(0x168)],_0x5d1dfb=_0x2bdfa1?_0x4c9923[_0x2bdfa1]:'';for(let _0x39f18f=0x0;_0x39f18f<_0x29d5f0['getColCount']();_0x39f18f++){const _0x1878e9={...(_0x33a1ea=(_0xdfbe29=_0x29d5f0[_0x15ef28(0x160)])==null?void 0x0:_0xdfbe29[_0x12d838])==null?void 0x0:_0x33a1ea[_0x39f18f]};if((_0x1878e9==null?void 0x0:_0x1878e9['v'])!==void 0x0){let _0x2a5bae=_0x5d1dfb?m[_0x15ef28(0x121)][_0x15ef28(0x109)](_0x5d1dfb,Number(_0x1878e9['v'])):_0x1878e9['v'];(_0x1878e9==null?void 0x0:_0x1878e9['s'])===r[_0x15ef28(0x15d)][_0x15ef28(0x16b)]?_0x2a5bae=_0x401bf8?_0x15ef28(0x1c6)+_0x2a5bae:_0x15ef28(0x143)+_0x2a5bae:(_0x1878e9==null?void 0x0:_0x1878e9['s'])===r[_0x15ef28(0x15d)][_0x15ef28(0x141)]&&(_0x2a5bae=_0x401bf8?'总计\x20'+_0x2a5bae:_0x15ef28(0x186)+_0x2a5bae),(_0x1878e9==null?void 0x0:_0x1878e9['t'])===r['PivotViewCellValueTypeEnum'][_0x15ef28(0x13e)]&&(_0x2a5bae=_0x401bf8?_0x15ef28(0x178):'(blank)'),_0x3022bf[_0x12d838]||(_0x3022bf[_0x12d838]=[]),_0x4fefd4[_0x12d838]||(_0x4fefd4[_0x12d838]=[]),_0x3022bf[_0x12d838][_0x39f18f+_0x17f9c9]=_0x2a5bae,_0x4fefd4[_0x12d838][_0x39f18f+_0x17f9c9]=_0x2a5bae;}}}let _0x55a80f=0x0,_0xa81398=0x0,_0x57fe74=0x0;for(let _0x53846d=0x0;_0x53846d<_0x1d1cec[_0x15ef28(0x187)]();_0x53846d++){const _0x233c46=_0x1d1cec['info'][_0x53846d];if(!_0xa95f03&&_0x233c46[_0x15ef28(0x1bc)]&&_0x233c46[_0x15ef28(0x14f)]!==0x0){_0x57fe74++,_0xa81398=0x0;continue;}if(!(!_0x4eaff9&&_0x233c46[_0x15ef28(0x1bc)]&&_0x233c46['level']===0x0)){for(let _0x5f1ff4=0x0;_0x5f1ff4<_0x1d1cec[_0x15ef28(0x14a)]();_0x5f1ff4++){const _0x2e35f1={...(_0x530f95=(_0x527e94=_0x1d1cec['data'])==null?void 0x0:_0x527e94[_0x53846d])==null?void 0x0:_0x530f95[_0x5f1ff4]},_0x1db04f=(_0x122793=(_0x15ec3e=_0x1d1cec==null?void 0x0:_0x1d1cec[_0x15ef28(0x1a0)])==null?void 0x0:_0x15ec3e[_0x5f1ff4])==null?void 0x0:_0x122793['tableFieldId'],_0x1c6d9f=_0x1db04f?_0x4c9923[_0x1db04f]:'';if((_0x2e35f1==null?void 0x0:_0x2e35f1['v'])!==void 0x0){let _0x27652e=_0x1c6d9f?m[_0x15ef28(0x121)]['format'](_0x1c6d9f,Number(_0x2e35f1['v'])):_0x2e35f1['v'];(_0x2e35f1==null?void 0x0:_0x2e35f1['s'])===r[_0x15ef28(0x15d)]['Subtotal']?_0x27652e=_0x401bf8?_0x15ef28(0x1c6)+_0x27652e:_0x15ef28(0x143)+_0x27652e:(_0x2e35f1==null?void 0x0:_0x2e35f1['s'])===r[_0x15ef28(0x15d)][_0x15ef28(0x141)]&&(_0x27652e=_0x401bf8?'总计\x20'+_0x27652e:_0x15ef28(0x186)+_0x27652e),(_0x2e35f1==null?void 0x0:_0x2e35f1['t'])===r['PivotViewCellValueTypeEnum'][_0x15ef28(0x13e)]&&(_0x27652e=_0x401bf8?'(空白)':_0x15ef28(0x107)),_0x3022bf[_0x55a80f+_0x1fbce2]||(_0x3022bf[_0x55a80f+_0x1fbce2]=[]);let _0x40dae6=_0x164fcb[_0x57fe74];_0x40dae6||(_0x40dae6=[..._0x4fefd4],_0x164fcb[_0x57fe74]=_0x40dae6),_0x40dae6[_0xa81398+_0x1fbce2]||(_0x40dae6[_0xa81398+_0x1fbce2]=[]),_0x40dae6[_0xa81398+_0x1fbce2][_0x5f1ff4]=_0x27652e,_0x3022bf[_0x55a80f+_0x1fbce2][_0x5f1ff4]=_0x27652e;}}_0x55a80f++,_0x1d1cec[_0x15ef28(0x190)][_0x53846d][_0x15ef28(0x1bc)]?(_0x57fe74++,_0xa81398=0x0):_0xa81398++;}}_0x55a80f=0x0,_0x57fe74=0x0,_0xa81398=0x0;for(let _0x295498=0x0;_0x295498<_0x26a9e6[_0x15ef28(0x187)]();_0x295498++){const _0x123aa0=_0x1d1cec[_0x15ef28(0x190)][_0x295498];if(!_0xa95f03&&_0x123aa0[_0x15ef28(0x1bc)]&&_0x123aa0['level']!==0x0){_0x57fe74++,_0xa81398=0x0;continue;}if(!(!_0x4eaff9&&_0x123aa0[_0x15ef28(0x1bc)]&&_0x123aa0[_0x15ef28(0x14f)]===0x0)){for(let _0x22a43d=0x0;_0x22a43d<_0x26a9e6[_0x15ef28(0x14a)]();_0x22a43d++){const _0x3a4f23={...(_0x299da0=(_0x15e385=_0x26a9e6[_0x15ef28(0x160)])==null?void 0x0:_0x15e385[_0x295498])==null?void 0x0:_0x299da0[_0x22a43d]};if(_0x3a4f23['v']){const _0x2457f7=_0x1d1cec[_0x15ef28(0x190)][_0x295498][_0x15ef28(0x1c0)],_0x4cb41d=_0x29d5f0[_0x15ef28(0x190)][_0x22a43d][_0x15ef28(0x1c0)],_0x478f16=Math[_0x15ef28(0x16f)](_0x2457f7,_0x4cb41d),_0x105e31=_0x1b5e8d['getValueFields']()[_0x15ef28(0x1a7)]();let _0x4f83e7='';_0x478f16<0x0?_0x4f83e7=(_0x548536=_0x105e31[0x0])!=null?_0x548536:'':_0x4f83e7=(_0xe6d4e=_0x105e31[_0x478f16])!=null?_0xe6d4e:'';const _0xd13248=(_0x558bd3=_0x4c9923[_0x4f83e7])!=null?_0x558bd3:'';_0x3022bf[_0x55a80f+_0x1fbce2]||(_0x3022bf[_0x55a80f+_0x1fbce2]=[]);let _0x489fe3=_0x164fcb[_0x57fe74];_0x489fe3||(_0x489fe3=[..._0x4fefd4],_0x164fcb[_0x57fe74]=_0x489fe3),_0x489fe3[_0xa81398+_0x1fbce2]||(_0x489fe3[_0xa81398+_0x1fbce2]=[]);const _0x1ed239=_0xd13248?m['numfmt'][_0x15ef28(0x109)](_0xd13248,Number(_0x3a4f23['v'])):_0x3a4f23['v'];_0x489fe3[_0xa81398+_0x1fbce2][_0x22a43d+_0x17f9c9]=_0x1ed239,_0x3022bf[_0x55a80f+_0x1fbce2][_0x22a43d+_0x17f9c9]=_0x1ed239;}}_0x55a80f++,_0x1d1cec['info'][_0x295498][_0x15ef28(0x1bc)]?(_0x57fe74++,_0xa81398=0x0):_0xa81398++;}}return{'dataArr':_0x3022bf,'dataArrWithSplit':_0x164fcb};}class re{constructor(_0x4626c4,_0x46deb9,_0x313580,_0x4af766){const _0x28e528=_0x45edc6;y(this,_0x28e528(0x137)),y(this,_0x28e528(0x122)),y(this,_0x28e528(0x158)),y(this,_0x28e528(0x19a)),y(this,_0x28e528(0x157)),(this[_0x28e528(0x158)]=_0x4626c4,this[_0x28e528(0x137)]=_0x46deb9,this[_0x28e528(0x122)]=_0x313580,this[_0x28e528(0x157)]=_0x4af766);const _0x116cc2=this[_0x28e528(0x158)][_0x28e528(0x1b1)](m[_0x28e528(0x1cd)]);this[_0x28e528(0x19a)]=_0x116cc2['getCurrentLocale']()===m[_0x28e528(0x118)]['ZH_CN'];}[_0x45edc6(0x152)](_0x3c88e5){const _0x466b1e=_0x45edc6,_0x48f8bb=this[_0x466b1e(0x137)][_0x466b1e(0x147)](_0x3c88e5);if(!_0x48f8bb)throw new Error(_0x466b1e(0x163)+_0x3c88e5+'\x20is\x20not\x20found\x20in\x20the\x20pivot\x20table.');return _0x48f8bb;}[_0x45edc6(0x12b)](_0x51ad35,_0x2d56e1){const _0x8cffb7=_0x45edc6,_0x46289d=this[_0x8cffb7(0x152)](_0x51ad35),_0xef67e9=this[_0x8cffb7(0x137)][_0x8cffb7(0x153)](_0x46289d,_0x2d56e1);if(!_0xef67e9)throw new Error('[PivotTable]:\x20add\x20field\x20'+_0x51ad35+'\x20failed.');if(_0x2d56e1===r[_0x8cffb7(0xf6)]['Value']){const _0x300d60=_0xef67e9['getId'](),_0x45e3c8=this[_0x8cffb7(0x137)]['getDataFieldByTableId'](_0x300d60);if(_0x45e3c8){const _0x2fa26d=_0x45e3c8==null?void 0x0:_0x45e3c8[_0x8cffb7(0x19c)]();this[_0x8cffb7(0x137)][_0x8cffb7(0x12a)](_0x300d60,_0x2fa26d===r[_0x8cffb7(0x15c)]['number']?r['PivotSubtotalTypeEnum']['sum']:r[_0x8cffb7(0x142)]['count']);}const _0x4d86b7=this[_0x8cffb7(0x137)][_0x8cffb7(0x14b)](),_0x17ad03=this[_0x8cffb7(0x137)][_0x8cffb7(0x1b8)](),_0x211e33=this[_0x8cffb7(0x137)][_0x8cffb7(0x191)](r[_0x8cffb7(0xf6)][_0x8cffb7(0x170)]);if(_0x4d86b7===-0x1&&_0x211e33>0x1){const _0x7a5b47=_0x17ad03===r[_0x8cffb7(0x10d)][_0x8cffb7(0x1b3)]?r[_0x8cffb7(0x10d)]['Column']:_0x17ad03,_0x2ca258=_0x7a5b47===r['PivotTableValuePositionEnum'][_0x8cffb7(0x177)]?r[_0x8cffb7(0xf6)][_0x8cffb7(0x177)]:r[_0x8cffb7(0xf6)][_0x8cffb7(0x1d8)];this[_0x8cffb7(0x137)]['updateValuePosition'](_0x7a5b47,this['_pivot']['getFieldCountByArea'](_0x2ca258));}}else{if(_0x2d56e1===r[_0x8cffb7(0xf6)][_0x8cffb7(0x177)]||_0x2d56e1===r['PivotTableFiledAreaEnum'][_0x8cffb7(0x1d8)]){const _0x3b8a93=_0xef67e9[_0x8cffb7(0x11c)](),_0x3b32dc=this['_pivot'][_0x8cffb7(0xf5)](_0x3b8a93);if(_0x3b32dc&&(_0x3b32dc==null?void 0x0:_0x3b32dc[_0x8cffb7(0x19c)]())===r[_0x8cffb7(0x15c)]['date']){const _0x545577=_0x3b32dc[_0x8cffb7(0x180)]();_0x545577&&this[_0x8cffb7(0x137)][_0x8cffb7(0x1d5)](_0x3b8a93,_0x545577);}}}return _0xef67e9;}['addFilterFieldWithName'](_0xcc6e2d,_0x41cffa){const _0x37ee0a=_0x45edc6,_0x3967fa=this[_0x37ee0a(0x152)](_0xcc6e2d),_0x56a96d=this['_pivot'][_0x37ee0a(0x153)](_0x3967fa,r['PivotTableFiledAreaEnum'][_0x37ee0a(0x132)]);return _0x56a96d['setFilterInfo'](_0x41cffa),_0x56a96d;}[_0x45edc6(0xf8)](_0x2274bf,_0x29f028){const _0x576c24=_0x45edc6,_0x3695dd=this['addFieldWithName'](_0x2274bf,r['PivotTableFiledAreaEnum'][_0x576c24(0x170)]);return _0x29f028!=null&&_0x29f028[_0x576c24(0x17e)]&&_0x3695dd[_0x576c24(0x14c)](_0x29f028==null?void 0x0:_0x29f028['subtotal']),_0x3695dd;}['removeFieldWithName'](_0x1295a4){const _0x157347=_0x45edc6,_0x28b58d=this['_getSourceIdByName'](_0x1295a4);this[_0x157347(0x137)]['getTableFieldsByDataFieldId'](_0x28b58d)[_0x157347(0x181)](_0x29770c=>{const _0x24f17c=_0x157347,_0x3b0690=_0x29770c[_0x24f17c(0x11c)]();this[_0x24f17c(0x137)][_0x24f17c(0x1a2)](_0x3b0690);});}['getResultByCalculate'](_0x556fcc={}){const _0x46612a=_0x45edc6,_0x170247=this['_pivot'][_0x46612a(0x173)](),{dataArr:_0x66fa86,dataArrWithSplit:_0x990015}=le(this[_0x46612a(0x137)],_0x170247,this[_0x46612a(0x19a)],_0x556fcc);return{'dataArr':_0x66fa86,'dataArrWithSplit':_0x990015};}['getNameWithColumnIndex'](_0x1eec45){const _0xc52c39=_0x45edc6;return this[_0xc52c39(0x137)][_0xc52c39(0x129)]()[_0x1eec45];}['reset'](){const _0xbde086=_0x45edc6;this[_0xbde086(0x137)][_0xbde086(0x194)]();}['resetDimension'](_0x38f5b7){const _0x34b959=_0x45edc6;this[_0x34b959(0x137)][_0x34b959(0x194)](_0x38f5b7);}['getFieldDataTypeByColumnIndex'](_0x6ca29c){const _0x7a2c5e=_0x45edc6,_0x18c6af=this[_0x7a2c5e(0x137)][_0x7a2c5e(0x148)],_0x1bd8d5=_0x18c6af[_0x7a2c5e(0x146)]()[_0x6ca29c];if(_0x1bd8d5)return _0x18c6af[_0x7a2c5e(0x1ba)](_0x1bd8d5)[_0x7a2c5e(0x19c)]();}[_0x45edc6(0x183)](_0x3a3207){const _0x3833e3=_0x45edc6,_0x14a61f=this[_0x3833e3(0x152)](_0x3a3207),_0x4dcb1e=this[_0x3833e3(0x137)][_0x3833e3(0x148)][_0x3833e3(0x1ba)](_0x14a61f);return _0x4dcb1e==null?void 0x0:_0x4dcb1e[_0x3833e3(0x19c)]();}[_0x45edc6(0x1cc)](){const _0xfc52b6=_0x45edc6,_0x53fdcf={};return[[r[_0xfc52b6(0xf6)][_0xfc52b6(0x177)],_0xfc52b6(0x106)],[r[_0xfc52b6(0xf6)][_0xfc52b6(0x1d8)],_0xfc52b6(0x1a8)],[r[_0xfc52b6(0xf6)][_0xfc52b6(0x132)],_0xfc52b6(0x161)],[r['PivotTableFiledAreaEnum'][_0xfc52b6(0x170)],_0xfc52b6(0x101)]][_0xfc52b6(0x181)](_0x34643c=>{const _0x4656ee=_0xfc52b6,[_0x26709c,_0x3fec57]=_0x34643c;this[_0x4656ee(0x137)][_0x4656ee(0x1a1)](_0x26709c,_0x3a14df=>{const _0x29f23b=_0x4656ee;_0x53fdcf[_0x3fec57]||(_0x53fdcf[_0x3fec57]=[]),_0x53fdcf[_0x3fec57][_0x29f23b(0x1b0)](_0x3a14df[_0x29f23b(0x196)]());});}),Object[_0xfc52b6(0x1ac)](_0x53fdcf)['length']>0x0?_0x53fdcf:void 0x0;}['getPivotSourceData'](){const _0x273354=_0x45edc6;return this[_0x273354(0x122)];}[_0x45edc6(0x198)](_0x144c08){const _0x56253e=_0x45edc6;this[_0x56253e(0x137)][_0x56253e(0x198)](_0x144c08);}[_0x45edc6(0x17d)](){const _0x278517=_0x45edc6;this[_0x278517(0x137)][_0x278517(0x17b)]();}}class ve extends r[_0x45edc6(0x13d)]{[_0x45edc6(0x166)](_0x2e6b46){const _0x37795c=_0x45edc6;if(Array[_0x37795c(0x1ab)](_0x2e6b46)&&_0x2e6b46[_0x37795c(0x1ae)]>0x0){const _0x16d759=[],_0x3968cb=_0x2e6b46[0x0],_0x51998f={},_0x2c87ed=_0x2e6b46[0x1];for(let _0x273995=0x0;_0x273995<_0x2c87ed['length'];_0x273995++){const _0x3b9c6b=_0x2c87ed[_0x273995];if(typeof _0x3b9c6b==_0x37795c(0x1c1)&&_0x3b9c6b instanceof Date)_0x51998f[_0x273995]=Z;else{if(typeof _0x3b9c6b==_0x37795c(0xfd)){const _0x3f24d8=new Date(_0x3b9c6b);Number[_0x37795c(0x19e)](_0x3f24d8['getTime']())||(_0x51998f[_0x273995]=Z);}}}for(let _0x17c912=0x1;_0x17c912<_0x2e6b46[_0x37795c(0x1ae)];_0x17c912++){const _0x4b7cc3=_0x2e6b46[_0x17c912],_0x288edf=[];for(let _0x18c2c7=0x0;_0x18c2c7<_0x4b7cc3['length'];_0x18c2c7++)if(_0x51998f[_0x18c2c7]){const _0x381152=_0x4b7cc3[_0x18c2c7],_0x2d6fd6=typeof _0x381152=='object'&&_0x381152 instanceof Date?_0x381152:new Date(_0x381152),_0x102906={'v':de(_0x2d6fd6[_0x37795c(0x1be)]()),'f':_0x51998f[_0x18c2c7]};_0x288edf['push'](_0x102906);}else _0x288edf[_0x37795c(0x1b0)](_0x4b7cc3[_0x18c2c7]);_0x16d759[_0x37795c(0x1b0)](_0x288edf);}return{'header':_0x3968cb,'data':_0x16d759};}else throw new Error(_0x37795c(0x165));}}class ce extends A['FUniver']{[_0x45edc6(0x139)](_0x21fe03){const _0x21c115=_0x45edc6,_0x36ee77=_0x21fe03[_0x21c115(0x1b1)](m[_0x21c115(0x130)]);this['registerEventHandler'](this[_0x21c115(0x1d2)][_0x21c115(0x10b)],()=>_0x36ee77[_0x21c115(0x145)](_0x20c0aa=>{const _0x5afd1d=_0x21c115;switch(_0x20c0aa['id']){case l[_0x5afd1d(0x17a)]['id']:{const _0x294636=_0x20c0aa[_0x5afd1d(0x159)];this[_0x5afd1d(0xf4)](_0x294636);break;}}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x193)],()=>_0x36ee77[_0x21c115(0x145)](_0x1e2ad9=>{const _0x33c4d0=_0x21c115;switch(_0x1e2ad9['id']){case l[_0x33c4d0(0x18a)]['id']:case l['AddPivotTableCommand']['id']:{const _0x4daf6f=_0x1e2ad9[_0x33c4d0(0x159)];this['_fireBeforeAddPivotTableEvent'](_0x4daf6f);break;}}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x133)],()=>_0x36ee77[_0x21c115(0x172)](_0xc220c9=>{const _0x1471a9=_0x21c115;if(_0xc220c9['id']===l[_0x1471a9(0x18a)]['id']||_0xc220c9['id']===l['AddPivotTableCommand']['id']){const _0x1bf877=_0xc220c9[_0x1471a9(0x159)];this[_0x1471a9(0x15b)](_0x1bf877);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)]['PivotTableMoved'],()=>_0x36ee77[_0x21c115(0x172)](_0x1fe009=>{const _0x3891e9=_0x21c115;if(_0x1fe009['id']===l['MovePivotTableCommand']['id']){const _0x34dada=_0x1fe009[_0x3891e9(0x159)];this['_fireMovedPivotTableEvent'](_0x34dada);}})),this['registerEventHandler'](this[_0x21c115(0x1d2)][_0x21c115(0x12f)],()=>_0x36ee77[_0x21c115(0x172)](_0x230835=>{const _0x4be497=_0x21c115;if(_0x230835['id']===l[_0x4be497(0x140)]['id']){const _0x6cede1=_0x230835[_0x4be497(0x159)];this[_0x4be497(0x13f)](_0x6cede1);}})),this[_0x21c115(0x12c)](this['Event']['PivotTableFieldAdded'],()=>_0x36ee77[_0x21c115(0x172)](_0x1e9c5d=>{const _0x1a1e24=_0x21c115;if(_0x1e9c5d['id']===l[_0x1a1e24(0x16a)]['id']){const _0x522cf1=_0x1e9c5d[_0x1a1e24(0x159)];this[_0x1a1e24(0x1c7)](_0x522cf1);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)]['PivotTableFieldRemoved'],()=>_0x36ee77['onCommandExecuted'](_0x5605c0=>{const _0x590871=_0x21c115;if(_0x5605c0['id']===l['RemovePivotFieldCommand']['id']){const _0xa97ba4=_0x5605c0[_0x590871(0x159)];this[_0x590871(0x138)](_0xa97ba4);}})),this[_0x21c115(0x12c)](this['Event']['PivotTableFieldMoved'],()=>_0x36ee77[_0x21c115(0x172)](_0x479806=>{const _0x12af39=_0x21c115;if(_0x479806['id']===l[_0x12af39(0x176)]['id']){const _0x4db754=_0x479806['params'];this[_0x12af39(0x16c)](_0x4db754);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x1bb)],()=>_0x36ee77[_0x21c115(0x172)](_0x4fff3e=>{const _0x2daddc=_0x21c115;if(_0x4fff3e['id']===l[_0x2daddc(0x1ad)]['id']){const _0x21b564=_0x4fff3e[_0x2daddc(0x159)];this[_0x2daddc(0x18e)](_0x21b564);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x19f)],()=>_0x36ee77['onCommandExecuted'](_0x3e9fdf=>{const _0x702877=_0x21c115;if(_0x3e9fdf['id']===l[_0x702877(0x1a5)]['id']){const _0x581b66=_0x3e9fdf[_0x702877(0x159)];this[_0x702877(0x12d)](_0x581b66);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x155)],()=>_0x36ee77[_0x21c115(0x172)](_0x561a4d=>{const _0x4b1757=_0x21c115;if(_0x561a4d['id']===l[_0x4b1757(0xf7)]['id']){const _0x15c5e2=_0x561a4d[_0x4b1757(0x159)];this['_firePivotTableFieldSortChangedEvent'](_0x15c5e2);}})),this[_0x21c115(0x12c)](this[_0x21c115(0x1d2)][_0x21c115(0x162)],()=>_0x36ee77[_0x21c115(0x172)](_0x49480e=>{const _0x24261f=_0x21c115;if(_0x49480e['id']===l['UpdatePivotFieldSettingCommand']['id']){const _0x2c1ce6=_0x49480e[_0x24261f(0x159)];this[_0x24261f(0x154)](_0x2c1ce6);}})),this['registerEventHandler'](this['Event'][_0x21c115(0xf3)],()=>_0x36ee77[_0x21c115(0x172)](_0x7fbc04=>{const _0x3a6a36=_0x21c115;if(_0x7fbc04['id']===l[_0x3a6a36(0x1d6)]['id']){const _0x2a5e92=_0x7fbc04[_0x3a6a36(0x159)];this[_0x3a6a36(0x113)](_0x2a5e92);}}));const _0x3826ee=_0x21fe03[_0x21c115(0x1b1)](m[_0x21c115(0x102)]);this['disposeWithMe'](_0x3826ee['lifecycle$'][_0x21c115(0xfb)](_0x16095e=>{const _0x370191=_0x21c115;if(_0x16095e===m[_0x370191(0xff)]['Ready']){const _0x36b25d=_0x21fe03[_0x370191(0x1b1)](l['SheetsPivotTableAdaptorModel']);this[_0x370191(0x12c)](this[_0x370191(0x1d2)]['PivotTableRendered'],()=>_0x36b25d[_0x370191(0x1d1)]['pipe'](ie[_0x370191(0x184)](0x32))['subscribe'](_0x25a249=>{this['_fireRenderPivotTableEvent'](_0x25a249);}));}}));}[_0x45edc6(0x1c7)](_0x385c48){const _0x2a411b=_0x45edc6;if(_0x385c48){const {unitId:_0x7fb7c2,subUnitId:_0x2055db,pivotTableId:_0x1b0ce7,dataFieldId:_0x49f716,fieldArea:_0x1ac58b,index:_0x1ba7b3}=_0x385c48;this[_0x2a411b(0x1d4)](this[_0x2a411b(0x1d2)][_0x2a411b(0x1b9)],{'unitId':_0x7fb7c2,'subUnitId':_0x2055db,'pivotTableId':_0x1b0ce7,'dataFieldId':_0x49f716,'fieldArea':_0x1ac58b,'index':_0x1ba7b3});}}['_firePivotTableFieldRemovedEvent'](_0x1c6fc4){const _0x55b0dd=_0x45edc6;if(_0x1c6fc4){const {unitId:_0x20d7f7,subUnitId:_0xeb817b,pivotTableId:_0x49a198,fieldIds:_0x1c016d}=_0x1c6fc4;this[_0x55b0dd(0x1d4)](this[_0x55b0dd(0x1d2)][_0x55b0dd(0x11e)],{'unitId':_0x20d7f7,'subUnitId':_0xeb817b,'pivotTableId':_0x49a198,'fieldIds':_0x1c016d['concat']()});}}[_0x45edc6(0x16c)](_0x32a733){const _0x5a73c6=_0x45edc6;if(_0x32a733){const {unitId:_0x5dc076,subUnitId:_0xde0d8d,pivotTableId:_0x30d0bb,fieldId:_0x3f2833,area:_0x1722b7,index:_0x57c600}=_0x32a733;this['fireEvent'](this[_0x5a73c6(0x1d2)][_0x5a73c6(0x104)],{'unitId':_0x5dc076,'subUnitId':_0xde0d8d,'pivotTableId':_0x30d0bb,'fieldId':_0x3f2833,'area':_0x1722b7,'index':_0x57c600});}}[_0x45edc6(0x18e)](_0x5d4664){const _0x5b0037=_0x45edc6;if(_0x5d4664){const {unitId:_0x19573a,subUnitId:_0x3c0b38,row:_0x291199,col:_0x203f38,collapse:_0x25e522}=_0x5d4664;this[_0x5b0037(0x1d4)](this[_0x5b0037(0x1d2)]['PivotTableFieldCollapseChanged'],{'unitId':_0x19573a,'subUnitId':_0x3c0b38,'row':_0x291199,'col':_0x203f38,'collapse':_0x25e522});}}[_0x45edc6(0x12d)](_0x58c98a){const _0x40a50f=_0x45edc6;if(_0x58c98a){const {unitId:_0x53bc9e,subUnitId:_0x6f2bc3,pivotTableId:_0x406b26,tableFieldId:_0x2c8504,items:_0x19daf6,isAll:_0x38aa3a}=_0x58c98a;this[_0x40a50f(0x1d4)](this[_0x40a50f(0x1d2)]['PivotTableFieldFilterChanged'],{'unitId':_0x53bc9e,'subUnitId':_0x6f2bc3,'pivotTableId':_0x406b26,'tableFieldId':_0x2c8504,'items':_0x19daf6[_0x40a50f(0x1a7)](),'isAll':_0x38aa3a});}}[_0x45edc6(0x136)](_0x43bfc5){const _0x21e73f=_0x45edc6;if(_0x43bfc5){const {unitId:_0x369b26,subUnitId:_0x585971,pivotTableId:_0x1946eb,tableFieldId:_0x4b163d,info:_0x1585ee}=_0x43bfc5;this[_0x21e73f(0x1d4)](this[_0x21e73f(0x1d2)][_0x21e73f(0x155)],{'unitId':_0x369b26,'subUnitId':_0x585971,'pivotTableId':_0x1946eb,'tableFieldId':_0x4b163d,'info':{..._0x1585ee}});}}['_firePivotTableFieldSettingChangedEvent'](_0xb88e70){const _0x52b06a=_0x45edc6;if(_0xb88e70){const {unitId:_0x17f9a0,subUnitId:_0x225d70,tableFieldId:_0x13bb4d,pivotTableId:_0x255301,displayName:_0xfaef1,format:_0x34738b,subtotalType:_0x333904,tableFieldInfo:_0x877cb0,dataFieldInfo:_0x1046bd}=_0xb88e70;this[_0x52b06a(0x1d4)](this[_0x52b06a(0x1d2)][_0x52b06a(0x162)],{'unitId':_0x17f9a0,'subUnitId':_0x225d70,'tableFieldId':_0x13bb4d,'pivotTableId':_0x255301,'displayName':_0xfaef1,'format':_0x34738b,'subtotalType':_0x333904,'tableFieldInfo':_0x877cb0,'dataFieldInfo':_0x1046bd});}}['_firePivotTableValuePositionChangedEvent'](_0x3ccaf9){const _0x2c7b2c=_0x45edc6;if(_0x3ccaf9){const {pivotTableId:_0xdfa057,position:_0x5d8263,index:_0x5d559e}=_0x3ccaf9;this[_0x2c7b2c(0x1d4)](this[_0x2c7b2c(0x1d2)][_0x2c7b2c(0xf3)],{'pivotTableId':_0xdfa057,'position':_0x5d8263,'index':_0x5d559e});}}[_0x45edc6(0x15b)](_0x1db8f7){const _0x24824d=_0x45edc6;if(_0x1db8f7){const {positionType:_0x4d5c8c,pivotTableId:_0x1668a9,pivotTableConfig:_0x229706}=_0x1db8f7,{targetCellInfo:_0x510938,sourceRangeInfo:_0x1005c8}=_0x229706,{unitId:_0x49455b}=_0x510938;this[_0x24824d(0x1d4)](this[_0x24824d(0x1d2)][_0x24824d(0x133)],{'unitId':_0x49455b,'positionType':_0x4d5c8c,'pivotTableId':_0x1668a9,'sourceRangeInfo':{'startRow':_0x1005c8[_0x24824d(0x114)]['startRow'],'endRow':_0x1005c8[_0x24824d(0x114)]['endRow'],'startColumn':_0x1005c8[_0x24824d(0x114)][_0x24824d(0x124)],'endColumn':_0x1005c8[_0x24824d(0x114)][_0x24824d(0x16d)],'unitId':_0x1005c8[_0x24824d(0x175)],'subUnitId':_0x1005c8[_0x24824d(0xfa)],'sheetName':_0x1005c8[_0x24824d(0xfc)]},'targetCellInfo':{'row':_0x510938[_0x24824d(0x106)],'column':_0x510938[_0x24824d(0x1ce)],'sheetName':_0x510938['sheetName'],'unitId':_0x510938[_0x24824d(0x175)],'subUnitId':_0x510938[_0x24824d(0xfa)]}});}}[_0x45edc6(0x1a4)](_0x4c3c6d){const _0x282a86=_0x45edc6;if(_0x4c3c6d){const {positionType:_0x204cb7,pivotTableId:_0x5aa96f,pivotTableConfig:_0x22d002}=_0x4c3c6d,{targetCellInfo:_0x515ae3,sourceRangeInfo:_0x2167ae}=_0x22d002,{unitId:_0x412a2e}=_0x515ae3,_0xa4fdf9={'unitId':_0x412a2e,'positionType':_0x204cb7,'pivotTableId':_0x5aa96f,'sourceRangeInfo':{'startRow':_0x2167ae[_0x282a86(0x114)][_0x282a86(0x17f)],'endRow':_0x2167ae[_0x282a86(0x114)]['endRow'],'startColumn':_0x2167ae[_0x282a86(0x114)]['startColumn'],'endColumn':_0x2167ae[_0x282a86(0x114)][_0x282a86(0x16d)],'unitId':_0x2167ae[_0x282a86(0x175)],'subUnitId':_0x2167ae[_0x282a86(0xfa)],'sheetName':_0x2167ae[_0x282a86(0xfc)]},'targetCellInfo':{'row':_0x515ae3[_0x282a86(0x106)],'column':_0x515ae3[_0x282a86(0x1ce)],'sheetName':_0x515ae3[_0x282a86(0xfc)],'unitId':_0x515ae3[_0x282a86(0x175)],'subUnitId':_0x515ae3[_0x282a86(0xfa)]},'cancel':!0x1};if(this[_0x282a86(0x1d4)](this['Event']['BeforePivotTableAdd'],_0xa4fdf9),_0xa4fdf9[_0x282a86(0x111)])throw new Error('Before\x20add\x20pivot\x20table\x20event\x20canceled');}}['_firePivotTableRemovedEvent'](_0x57fa7b){const _0x255485=_0x45edc6;if(_0x57fa7b){const {unitId:_0xa962d3,pivotTableId:_0x4b20a7}=_0x57fa7b;this[_0x255485(0x1d4)](this[_0x255485(0x1d2)][_0x255485(0x12f)],{'unitId':_0xa962d3,'pivotTableId':_0x4b20a7});}}[_0x45edc6(0xf4)](_0x4cb0b2){const _0x187806=_0x45edc6;if(_0x4cb0b2){const {originTargetInfo:_0x2d2579,pivotTableId:_0x511609,targetCellInfo:_0x15d4f6}=_0x4cb0b2,{unitId:_0xca514e}=_0x2d2579,_0x3ed172=this['_injector'][_0x187806(0x1b1)](l[_0x187806(0x1ca)])[_0x187806(0x15a)](_0x2d2579[_0x187806(0x175)],_0x2d2579['subUnitId'],_0x511609);if(!_0x3ed172)return;const _0x2c9a54={'unitId':_0xca514e,'pivotTableId':_0x511609,'originTargetInfo':{'row':_0x3ed172['targetCellInfo'][_0x187806(0x106)],'column':_0x3ed172[_0x187806(0x167)][_0x187806(0x1ce)],'unitId':_0x3ed172[_0x187806(0x167)]['unitId'],'subUnitId':_0x3ed172[_0x187806(0x167)]['subUnitId']},'targetCellInfo':{'row':_0x15d4f6[_0x187806(0x106)],'column':_0x15d4f6[_0x187806(0x1ce)],'unitId':_0x15d4f6['unitId'],'subUnitId':_0x15d4f6[_0x187806(0xfa)]},'cancel':!0x1};if(this[_0x187806(0x1d4)](this[_0x187806(0x1d2)][_0x187806(0x193)],_0x2c9a54),_0x2c9a54[_0x187806(0x111)])throw new Error(_0x187806(0x11b));}}[_0x45edc6(0xfe)](_0x2da75e){const _0x30d081=_0x45edc6;if(_0x2da75e){const {originTargetInfo:_0x4b4bd9,pivotTableId:_0xdf9aa8,targetCellInfo:_0x2e16c5}=_0x2da75e,{unitId:_0x2d51c7}=_0x4b4bd9,_0x711ca3=this['_injector']['get'](l[_0x30d081(0x1ca)])['getPivotTableConfig'](_0x4b4bd9[_0x30d081(0x175)],_0x4b4bd9[_0x30d081(0xfa)],_0xdf9aa8);if(!_0x711ca3)return;this[_0x30d081(0x1d4)](this[_0x30d081(0x1d2)][_0x30d081(0x179)],{'unitId':_0x2d51c7,'pivotTableId':_0xdf9aa8,'originTargetInfo':{'row':_0x711ca3[_0x30d081(0x167)][_0x30d081(0x106)],'column':_0x711ca3[_0x30d081(0x167)]['col'],'unitId':_0x711ca3[_0x30d081(0x167)][_0x30d081(0x175)],'subUnitId':_0x711ca3[_0x30d081(0x167)][_0x30d081(0xfa)]},'targetCellInfo':{'row':_0x2e16c5[_0x30d081(0x106)],'column':_0x2e16c5[_0x30d081(0x1ce)],'unitId':_0x2e16c5[_0x30d081(0x175)],'subUnitId':_0x2e16c5[_0x30d081(0xfa)]}});}}[_0x45edc6(0x169)](_0x45a671){const _0xdacfb7=_0x45edc6;if(_0x45a671){const {unitId:_0x5dfe87,subUnitId:_0x1b8808,pivotTableId:_0x265d3d,type:_0xe1ff52,rangesCache:_0x45a5dd,isEmpty:_0x299d8d}=_0x45a671;this[_0xdacfb7(0x1d4)](this[_0xdacfb7(0x1d2)][_0xdacfb7(0x1b4)],{'unitId':_0x5dfe87,'subUnitId':_0x1b8808,'pivotTableId':_0x265d3d,'changeType':_0xe1ff52,'isEmpty':!!_0x299d8d,'rangeInfo':_0x45a5dd});}}[_0x45edc6(0x119)](_0x1d93df,_0x563420){const _0xfb5a6c=_0x45edc6,_0x26a06b=(_0x563420?new _0x563420():new ve())[_0xfb5a6c(0x1d0)]('data',_0x1d93df),_0x471d8b=_0x1d93df[0x0];_0x26a06b['getFieldIds']()['forEach']((_0x2cd200,_0x54cd3c)=>{const _0x4b51ac=_0xfb5a6c;_0x26a06b[_0x4b51ac(0x10a)](_0x2cd200,_0x471d8b[_0x54cd3c]);});const _0x3da23d=r[_0xfb5a6c(0x11d)](0x8),_0x571f9b=new r[(_0xfb5a6c(0x156))](_0x26a06b,void 0x0,_0x3da23d);return new re(this[_0xfb5a6c(0x158)],_0x571f9b,_0x1d93df,_0x3da23d);}}A['FUniver'][_0x45edc6(0x144)](ce);