@univerjs-pro/sheets-pivot 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506021607

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x498bf1=_0x4e9d;(function(_0x572fff,_0x252724){const _0x270cc6=_0x4e9d,_0x1e19b1=_0x572fff();while(!![]){try{const _0x3f52fd=parseInt(_0x270cc6(0x1ad))/0x1*(parseInt(_0x270cc6(0x414))/0x2)+-parseInt(_0x270cc6(0x370))/0x3+parseInt(_0x270cc6(0x471))/0x4*(-parseInt(_0x270cc6(0x341))/0x5)+-parseInt(_0x270cc6(0x441))/0x6+parseInt(_0x270cc6(0x37b))/0x7+parseInt(_0x270cc6(0x43c))/0x8+parseInt(_0x270cc6(0x375))/0x9;if(_0x3f52fd===_0x252724)break;else _0x1e19b1['push'](_0x1e19b1['shift']());}catch(_0xe92cbf){_0x1e19b1['push'](_0x1e19b1['shift']());}}}(_0x3a17,0x2ebcc));function _0x3a17(){const _0xd84ca6=['AddPivotTableMutation','_fieldsCollectionChange$','_queryingMap','getPivotCellInfo','sheets-pivot.grandTotal','hasOwnProperty','getSubUnitPivotMatrix','valueFilter','CELL_CONTENT','Grand\x20Total','dataFields','_globalComputedStartHelpFunc','ΣValue','getFieldDataType','sheets-pivot.cellDateGroupDisplay.minute','getTableFieldById','valueIndex','register','isPrefixValue','_sheetsPivotTableConfigModel','versions','var','updateRangeKeyMap','handleAsyncResponse','limit\x20pivot','pageRanges','_createExclusiveRange','_commandService','updatePivotSource','getAutoDisplayName','COMMAND','intersects','_exclusiveRangeService','setRangeKeyMap','getColCount','UpdatePivotFieldSourceInfoMutation','@univerjs/sheets','SHEET_PIVOT_IN_MAIN_THREAD','_initGlobalComputed','sum','AddPivotTable','name','sheet.command.set-pivot-collapse','_initConfig','#b2b2b2','stringify','sheets-pivot.dateGroup.minute','add','generateMutationsByRanges','sheets-pivot.dateGroup.month','getPivotDisplayConfig','range','Month','sheet.command.move-pivot-table','2bGsJXW','existing','grandTotal','error','keys','Optional','Quarter','serializeRangeWithSpreadsheet','addFieldWithSourceId','addPivotTable','MovePivotField','DependentOn','shouldClear','forEach','notExecuteFormula','getSheetCommandTarget','getPivotTableIdByCell','InsertRowMutation','getFieldPositionInfoById','@univerjs/engine-render','workbook\x20is\x20not\x20found','sheetName','startRow','AddPivotTableWithConfig','sheets-pivot.stdDevpName','sortInfo','GlobalComputingStatusService','_sheetsPivotRpcService','executeCommand','originalFieldId','data','unshiftString','rangeType','fieldsCollectionChange$','result','CustomCommandExecutionError','getValue','removeSourceRangeChange','Injector','entries','2726904UolkkC','foreach','pivotTableId','getCurrentUnitForType','sheets-pivot.emptyPivot.column','1844298SpmWce','setRange','body','sheet.mutation.send-init-pivot-text-local','refreshGroupField','collapseInfo','UpdateDateGroupCommand','_collectionConfigModel','sheet.command.set-pivot-field-setting','column','sheet.command.pivot-drill-down','getFilterFieldIdByIndex','getFieldCountByArea','setDateType','varp','sheets-pivot.cellDateGroupDisplay.year','NORMAL','PivotViewCellValueTypeEnum','viewData$','AddPivotFieldCommand','getAutoDisplayNameFunction','Value','createCollectionWithDataRange','getAutoFitColumnsMutations','SetPivotTableConfig','fieldId','getPivotItemRenderInfoCache','SetPivotPositionMutation','SetWorksheetActiveOperation','UpdatePivotFieldSettingCommand','sheet.mutation.pivot-update-field-position','GrandTotal','IFeatureCalculationManagerService','sheet.mutation.set-pivot-field-subtotal-type','col','getSheetBySheetName','sheets.tabs.sheet','sheets-pivot.sumName','getPivotTableConfig','STRING','sheets-pivot.dateGroup.monthDate','sheets-pivot.maxName','needSameDeleteModel','_ensurePivotItemRenderValueMatrixCache','RemoveColMutation','getMatrix','iterateFieldByArea','SetPivotFieldsConfigCommand','45764bjLoBk','getRefRangeMutationsByMoveRange','SetPivotFilterMutation','DIV_BY_ZERO','valueFields','_initPivotDataGetListener','_generateUniqueVersion','PivotDisplayDataType','hasField','getFieldIds','_globalComputingSrv','sheets-pivot.stdDevName','AddPivotTableWithConfigCommand','_globalSubject','YearQuarter','pageStyle','_configVersion$','Range','params','_refRangeService','InsertColMutation','_pivotTableMatrixInfo','_getPivotAppliedRanges','addField','getMatrixFromRunTimeData','getUnit','remove','SheetsPivotTableConfigModel','charCodeAt','_univerInstanceService','_pivotRenderInfoCache','Hour','updateViewData','length','Subject','SetPivotFilter','RANGE_TYPE','registerDirtyService','rangeKeyMap','getIntersectsPivotTable','setLabelFilterInfo','fontRenderExtension','_textInfo','endCollectChangeset','setPivotCollapse','AddPivotTableCommand','queryDirtyPivotTable','IResourceManagerService','PivotTable','updateView','deleteDataField','getValuePosition','NUMBER','resetPivotTable','setSortInfo','Tools','sheet.command.set-pivot-value-filter','DEFAULT_PIVOT_NUMBER','pbt','registerCommand','setValueFilterInfo','generateNewSheetName','Row','_initPivotTextInfo','getSubUnitPivotConfigs','rowHeaderMap','updateFieldPosition','MoveRangeMutation','excelDateToUnixMilliseconds','Filter','splice','_pivotConfigChange$','sheets-pivot.dateGroup.hourMinute','298198jUiGnC','date','_configService','uniqueDataFieldName','getFieldFormat','getIndexesByPathStr','getSheetBySheetId','unshift','defineProperty','pushUndoRedo','ErrorType','sheets-pivot.cellDateGroupDisplay.yearMonth','cellToRange','Plugin','dataFieldId','_injector','IUndoRedoService','interceptCommand','SetSortInfo','row','getFilterInfo','min','sheet.mutation.send-pivot-config-local','sheet.command.reset-pivot-fields-config','_viewUpdate$','registerRefRange','SheetsPivotTableAdaptorModel','getSheetId','fetchThroughAsyncInterceptors','getCollection','SetPivotSortCommand','has','dateType','getColumnWidth','forRow','SetPivotCollapse','NAME','isColMultiMeasure','Expand','RemoveSheetCommand','getSourceName','broadcastCollectionChange','sheet.mutation.remove-group-collection','Varp\x20of\x20','RemoveRowMutation','fields','addPivotField','HourMinute','handleSourceRangeChange','_pivotRenderValueMatrixCache','removePivotField','sheets-pivot.cellDateGroupDisplay.date','_ensureViewDataMap','NotNumber','getInterceptPoints','handleMoveRange','updateValuePosition','MoveRangeCommand','movePivotField','YearMonth','_subjectCollectionChange','filterInfo','#1d32e9','_lifecycleService','set','CellValueType','DrillDown','removeCollectionImp','Var\x20of\x20','setDisplayName','sheet.command.update-pivot-value-position','_host','_toJSON','_ensurePivotTableMatrixInfo','_pivotTableInstanceCache','query','SetWorksheetColWidthMutation','_init','#e6ebfb','PivotView','Collapse','textInfo','rangesInfo','mergeWorksheetSnapshotWithDefault','displayName','_pivotInitCompleted$','sheets-pivot.cellDateGroupDisplay.yearMonthDate','token','REF','getRangeStartEndInfo','single','_initSnapshot','setPivotTable','dataFieldManagerConfig','setRangeValueUndoMutation','sheet.mutation.add-pivot-field','NUM','removeDataField','ClearSelectionContentCommand','sheets-pivot.varpName','rxjs','sheet.command.add-pivot-table-with-config','CommandType','iterateFieldDim','Date','getSheets','SetPivotCollapseMutation','PivotTableViewDirtyMarkOperation','setPivotSort','setPivotFilter','MAX_SAFE_INTEGER','isValue','cornerStyle','addDataFieldWithoutUnitInfo','initDataRanges','width','isEmpty','pivotConfigChange$','removeField','sheets-pivot.dateGroup.yearMonth','_markDirty$','fetchThroughInterceptors','MIN_SAFE_INTEGER','generateRandomId','sheet.command.update-pivot-table-source-range','disposeWithMe','sheet.operation.pivot-table-view-formula-mark-dirty','lastCol','_onRefRangeChange','IConfigService','updateConfig','nGbaU2sb\x207hadQHU2sb(T2ahblh,\x20HG3T2awhQ)\x20{\x20\x20\x20\x20UdQ\x20{\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20T2ahblhVbnsXudUDdduQ\x20=\x20T2ahblh.lHT2U(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20sd2q2b1hlluqh\x20=\x20JL4O.Hudlh(uUs3(T2ahblhVbnsXudUDdduQ[A]));\x20\x20\x20\x20\x20\x20\x20\x202n\x20(!sd2q2b1hlluqh.G7)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sd2q2b1hlluqh.G7\x20=\x20OGK3hd(T2ahblhVbnsXudUDdduQ[v]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20asblU\x202lxsdChd\x20=\x20UQHhsn\x20xsdChdpTs3uTLasHh\x20!==\x20\x27Gb7hn2bh7\x27\x20&&\x20lhTn\x202blUubahsn\x20xsdChdpTs3uTLasHh;\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20asbUhEU\x20=\x202lxsdChd\x20?\x20lhTn\x20:\x20M2b7sM;\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20Khlluqhxsd7\x20=\x20asbUhEU.__SulhNv__.Hudlh(T2ahblhVbnsXudUDdduQ[A]);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20Khlluqh\x20=\x20asbUhEU.__YhE__.lUd2bq2nQ(Khlluqhxsd7);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20l2qbuUGdhxsd7\x20=\x20asbUhEU.__SulhNv__.Hudlh(T2ahblhVbnsXudUDdduQ[r]);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20l2qbuUGdh\x20=\x20asbUhEU.__YhE__.lUd2bq2nQ(l2qbuUGdhxsd7);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20l2qb5uT27\x20=\x20asbUhEU.__mhd2nQ__(l2qbuUGdh,\x20Khlluqh,\x20HG3T2awhQ);\x20\x20\x20\x20\x20\x20\x20\x20asblU\x207sKu2b\x20=\x20sd2q2b1hlluqh.7K;\x20\x20\x20\x20\x20\x20\x20\x20nGbaU2sb\x202lksKu2b1uUaz2bq(sXuUUhdb,\x20sYslU)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20HuUUhdb\x20=\x20sXuUUhdb.dhHTuah(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20zslU\x20=\x20sYslU.dhHTuah(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20HuUUhdbXudUl\x20=\x20HuUUhdb.lHT2U(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20zslUXudUl\x20=\x20zslU.lHT2U(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x202n\x20(!HuUUhdb.2baTG7hl(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dhUGdb\x20HuUUhdb\x20===\x20zslU;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x202n\x20(HuUUhdbXudUl.ThbqUz\x20<\x20A\x20||\x20HuUUhdbXudUl[e]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dhUGdb\x20nuTlh;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20HuUUhdbLGnn2E\x20=\x20HuUUhdbXudUl.lT2ah(P).fs2b(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20zslULGnn2E\x20=\x20zslUXudUl.lT2ah(-HuUUhdbXudUl.ThbqUz\x20+\x20P).fs2b(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dhUGdb\x20HuUUhdbLGnn2E\x20===\x20zslULGnn2E;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20ThU\x207sKu2b5uT27\x20=\x20(7sKu2b\x20&&\x207sKu2b.ThbqUz)\x20?\x207sKu2b.lsKh((7KVUhK)\x20=>\x202lksKu2b1uUaz2bq(7KVUhK,\x20TsauU2sb.zslUbuKh))\x20:\x20UdGh;\x20\x20\x20\x20\x20\x20\x20\x202n\x20(TsauU2sb.zslUbuKh\x20===\x20\x27TsauTzslU\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207sKu2b5uT27\x20=\x20UdGh;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20asblU\x20muT27\x20=\x20l2qb5uT27\x20&&\x207sKu2b5uT27;\x20\x20\x20\x20\x20\x20\x20\x20dhUGdb\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20muT27,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Khlluqh:\x20sd2q2b1hlluqh,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20auUaz\x20(hddsd)\x20{\x20\x20\x20\x20\x20\x20\x20\x20dhUGdb\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20muT27:\x20nuTlh,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Khlluqh:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','addExclusiveRange','PivotTableValuePositionEnum','getLastCol','getTextSize','targetCellInfo','fieldIds','asObservable','onStarting','_refRangeHandle','Max\x20of\x20','getFontStyleString','markDirty','interceptor','_initRemoveSheetCommandInterceptor','getPivotTableInstance','_sheetsPivotDataSourceModel','map','endColumn','pivotMutationGenerate','updatePivotTableMatrixInfo','_initLocale','getLastRow','INTERCEPTOR_POINT','getSortInfo','Set','prefix','_dataSyncPrimaryController','LocaleService','StdDevp\x20of\x20','sheets-pivot.dateGroup.yearMonthDate','MovePivotTableCommand','dispose','contains','_collectionChange$','SheetsPivotTableService','slice','_resourceManagerService','getName','getDataFieldByDataFieldId','sheet.command.update-date-group','split','DataSyncPrimaryController','getGroupFieldsInfoByIds','call','NO_COMMERCIAL','PIVOT_MUTATION_GENERATE','getMonth','Count\x20of\x20','colStyle','Minute','getId','sheets-pivot.cellDateGroupDisplay.hour','substring','getPivotTableInfo','RefRangeService','getPivotTableModelConfig','intercept','isArray','sheets-pivot.productName','_sheetsPivotTableService','includes','Disposable','SetPivotSetting','getDate','SheetsPivotRPCService','setCollapse','_model','SetPivotSubtotalTypeMutation','sheet.command.move-pivot-field','ResetPivotTable','sheet.mutation.set-pivot-value-filter','_updateRenderEmptyCache','_deletePivotTableInstanceCache','PivotCallbackEnum','sheet.mutation.send-pivot-data-local','addCollection','sheets-pivot.countNumsName','renameField','getInsertRowColMutations','return\x20','setFieldFormat','_pivotTableRangeInfo','sheets-pivot.dateGroup.yearQuarter','updateConfigCache','PivotFilterTypeEnum','DisposableCollection','BehaviorSubject','setName','paths','info','document','RemovePivotTableMutation','PivotDateGroupFieldDateTypeEnum','bind','formJSON','startCollectChangeset','_globalComputedEndHelpFunc','getCurrentSelections','filterFields','_config','addDirtyPivotTable','rangeKey','refreshData','sheet.mutation.update-date-group','getColumnCount','getUnitId','sideEffectUpdateWorkerCache','ClearSelectionAllCommand','adjustSheetCellData','sheet.mutation.set-pivot-format','blank','disposableCollection','push','undos','setValue','PositionType','_ensurePivotMap','some','IUniverInstanceService','string','average','from','_initClearSelectionCommandInterceptor','registerCallbackWithEvent','setSubtotalType','getActiveSheet','dataStyle','SheetsPivotDataSourceModel','collectionConfig','PivotTableChangeTypeEnum','getDataFieldId','\x20-\x20','getOwnPropertyDescriptor','rangeCache','toStringTag','Total','Product\x20of\x20','PivotDataFieldDataTypeEnum','Add','sheet.mutation.send-pivot-view-local','subTotalStyle','getSubUnitPivotRenderCache','getformat','ptn','AsyncInterceptorManager','sheet.command.set-pivot-sort','getDataFieldManager','_dataFieldManagerCollection','Values','New','toJSON','format','@univerjs-pro/license','SetPivotValueFilterCommand','subscribe','MUTATION','fromJSON','iterateField','getFullYear','rgb(240,241,243)','originTargetInfo','floor','RenamePivotFieldMutation','DEFAULT_WORKSHEET_ROW_COUNT','rowCount','sheets-pivot.dateGroup.quarter','sheet.mutation.get-pivot-data-local','getDataFieldItemInfo','delete','RemoveSheetMutation','product','SetOptions','SetPivotSort','collections','_updateModelCache','isDateGroupField','ICommandService','drillDown','isDate','collection','SetRangeValuesMutation','MonthDate','isErrorValue','@univerjs/rpc','getViewData','getCellMatrix','filter','concat','setPivotInitCompleted','getTargetByPivotTableId','@univerjs/engine-formula','Average\x20of\x20','Delete','columnFields','IExclusiveRangeService','reset','deleteField','valuePosition','getValueIndex','Rectangle','headerMap','ObjectMatrix','getConfig','MovePivotFieldCommand','PivotErrorTypeEnum','rgb(255,255,255)','sourceRangeInfo','_sheetsSelectionsService','level','SheetsSelectionsService','SetPivotOptionMutation','registerPluginResource','getHeaderMapItem','UpdatePivotSource','AddPivotFieldMutation','setPivotSetting','getPivotTableCellData','Min\x20of\x20','getDataFieldByRangeKey','colHeaderMap','sheet.command.set-pivot-filter','_requestResolvers','isNaN','message','deleteUnitId','getRowCount','getPivotInfoByLicense','updateDataFieldsCollection','RemoveField','sheet.command.remove-pivot-field','sequenceExecute','clearRenderCache','sheet.mutation.set-pivot-position','createValueField','getMatrixValue','ManualFilter','refreshDataField','COLUMN','LS_CONFIG_KEY','getDisplayName','Sum\x20of\x20','updateViewInfo','_localeService','defaultThemeStyle','onQueryEnd','numberToABC','max','setValuePivotFilter','_featureCalculationManagerService','getFormatInfo','sheets-pivot.columnName','AddPivotField','_initViewModelBySheetInterceptor','lastRow','DEFAULT_WORKSHEET_COLUMN_COUNT','pivotInitCompleted$','symbol','getDataFieldByTableId','valid','resetArea','RemovePivotFieldCommand','getRangeKey','cellValue','addCollectionByJSON','updatePivotTableRangeInfo','stdDevp','random','getStyles','merge','#eceeff','isText','DataFieldManager','95ANhmOR','dataRangeInfo','UniverInstanceType','SheetInterceptorService','fieldsConfig','setRangeValueRedoMutation','update','_viewData$','size','PivotSubtotalTypeEnum','removeValueFilterInfoByValueFieldId','UniverSheetsPivotTablePlugin','getFormat','endRow','_initRegisterCommand','Subtotal','UpdatePivotValuePositionCommand','createAsyncInterceptorKey','sheet.mutation.pivot-update-value-position','isDateValue','sheet.command.set-pivot-fields-config','batch','getFieldInfo','#f4f4f5','updateDirtyPivotTable','DateGroupField','PivotTableFiledAreaEnum','SHEET_PIVOT_EXCLUSIVE_ID','colCount','node','getUpdateRangeDeleteIds','getCellRaw','countNums','version','type','UpdateValuePosition','PivotMultipleValueId','createDataFieldId','RemovePivotFieldMutation','startColumn','addRecord','forValue','triggerDirtyFeature','getIntersects','count','subUnitId','dataStream','132846WouqZZ','IActiveDirtyManagerService','_deleteModelCache','asyncInterceptor','getSheetFeatureLimit','807345bJFPyC','measure','SetSheetsFilterRangeMutation','setConfig','Year','_sheetsPivotTableAdaptorModel','221998YtCjRD','sheets-pivot.value','sheet.mutation.set-pivot-filter','InterceptorEffectEnum','Panel','updateCollectionConfig','_initCommandInterceptListener','_ensurePivotItemRenderInfoCache','_subjectViewChange','updateRenderCache','updateAllDisplayName','parse','UniverLicensePlugin','unionPivotViewRange','isDateGroupFieldJSON','Inject','setDataRecordCount','removePivotTable','colInfo','YearMonthDate','isBottomTotal','value','SHEET_PIVOT_TABLE_PLUGIN','find','filterId','SetPivotCollapseCommand','FontCache','SetFilterInfo','numfmt','deepClone','_viewData','sheets-pivot.config','getEmptyPivotRanges','rowStyle','redos','getOriginFieldId','unitId','stdDev','@univerjs/core','Module','number','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','colRanges','areaInfo','matrix','sheet.mutation.pivot-update-field-source-info','getNoUsedDataFieldIds','PivotCellStyleTypeEnum','getTargetByPivotId','onCommandExecuted','object','getFieldListByArea','rowFields','_initUnitDisposed','getDirtyInfo','Column','UNIVER_SHEET','get','subtotal','generateNullCell','SetValuePivotFilter','sheet.mutation.set-pivot-collapse','sheets-pivot.averageName','sheets-pivot.minName','_subjectFieldsCollectionChange','getSubtotal','UpdateFieldPositionMutation','removeValueFilterInfo','options','_sheetInterceptorService','getTextInfo','oldMatrix','_getAutoName','isFeatureAuthorizedWithinTime','parseInt','next','Existing','SetRangeValuesUndoMutationFactory','generateHexNumber','dimension','getFieldById','pivotTableConfigs','toString','RemovePivotField','transFromCellValue','SetPivotFieldFormatMutation','rowRanges','setPivotTableConfig','collectionChange$','addPivotTableWithConfig','SetPivotSortMutation','PivotDrillDownCommand','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','configVersion$','tableFieldId','custom','BLANK_ROW_COUNT','values','getRangeKeyList'];_0x3a17=function(){return _0xd84ca6;};return _0x3a17();}var wo=Object[_0x498bf1(0x1b5)],_o=(_0xb91e3d,_0x2df76e,_0x21a6b8)=>_0x2df76e in _0xb91e3d?wo(_0xb91e3d,_0x2df76e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21a6b8}):_0xb91e3d[_0x2df76e]=_0x21a6b8,x=(_0x41bc2d,_0x288fec,_0x498a7e)=>_o(_0x41bc2d,typeof _0x288fec!=_0x498bf1(0x331)?_0x288fec+'':_0x288fec,_0x498a7e);Object['defineProperty'](exports,Symbol[_0x498bf1(0x2b7)],{'value':_0x498bf1(0x3a2)});const p=require('@univerjs-pro/engine-pivot'),v=require(_0x498bf1(0x3a1)),ve=require(_0x498bf1(0x2ef)),V=require(_0x498bf1(0x402)),ge=require(_0x498bf1(0x211)),ue=require(_0x498bf1(0x2c9)),Ot=require('@univerjs/sheets-filter'),Ro=require(_0x498bf1(0x2e8)),Oe=require(_0x498bf1(0x427)),$t=Number[_0x498bf1(0x3c5)](0x683c7b79),Do=0x10,It=0x1,Ct=_0x498bf1(0x391),De=0x1,Uo=_0x498bf1(0x2d0),Eo=_0x498bf1(0x2fe),Ze=_0x498bf1(0x40a),No=_0x498bf1(0x358),Vo=_0x498bf1(0x358),xo=_0x498bf1(0x33e),Oo=_0x498bf1(0x1eb),Ao='#FFFFFF',ko='#e6ebfa',Lo='#1d32e9',jo='#FFFFFF',Bo=_0x498bf1(0x1fb),Go=0xe,$o=0x6;var Mt=(_0x2d8812=>(_0x2d8812[_0x498bf1(0x3c7)]=_0x498bf1(0x415),_0x2d8812['New']='new',_0x2d8812))(Mt||{});const Wt={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Wo=0x1e,Te={'b':{'s':0x1,'cl':{'rgb':Ze}},'l':{'s':0x1,'cl':{'rgb':Ze}},'r':{'s':0x1,'cl':{'rgb':Ze}},'t':{'s':0x1,'cl':{'rgb':Ze}}},X={'bg':{'rgb':Uo},'ht':0x2,'vt':0x2,'tb':0x1},R={'bg':{'rgb':Eo},'ht':0x2,'vt':0x2,'tb':0x1},te={'rowStyle':{'bg':{'rgb':Bo},'bd':Te,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':Lo},'bd':null,'cl':{'rgb':jo},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Te,'bg':{'rgb':ko},'vt':0x2},'cornerStyle':{'bd':Te,'bg':{'rgb':xo},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Te,'bg':{'rgb':No},'vt':0x2},'leafStyle':{'bd':Te,'bg':{'rgb':Vo},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':Oo},'cl':{'rgb':Ao},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Te,'vt':0x2}};function Jo(_0x8211f6,_0x167e6d,_0x2a34a0){const _0x5ca726=_0x498bf1,_0xed1cb7=_0x8211f6['get'](v[_0x5ca726(0x24c)]),_0x43e88b=_0x2a34a0[_0x5ca726(0x259)]('_');switch(_0x167e6d){case p[_0x5ca726(0x28d)]['Year']:return _0xed1cb7['t'](_0x5ca726(0x450),..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x262)]:return _0xed1cb7['t'](_0x5ca726(0x3ec),..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x490)]:return _0xed1cb7['t'](_0x5ca726(0x264),..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x1dc)]:return _0xed1cb7['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x215)]:return _0xed1cb7['t'](_0x5ca726(0x1e0),..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x412)]:return _0xed1cb7['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x41a)]:return _0xed1cb7['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x43e88b);case p['PivotDateGroupFieldDateTypeEnum']['YearMonth']:return _0xed1cb7['t'](_0x5ca726(0x1b8),..._0x43e88b);case p['PivotDateGroupFieldDateTypeEnum'][_0x5ca726(0x38e)]:return _0xed1cb7['t'](_0x5ca726(0x203),..._0x43e88b);case p[_0x5ca726(0x28d)][_0x5ca726(0x47f)]:return _0xed1cb7['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x43e88b);}return'';}const Ae=(_0x4ba4f8,_0x5d3703,_0x389ea6,_0x2ff010)=>{const _0x383279=_0x498bf1;let _0x370fcb;const _0x313f15=_0x4ba4f8[_0x383279(0x3b4)](v[_0x383279(0x2a7)])[_0x383279(0x43f)](v[_0x383279(0x343)]['UNIVER_SHEET']);if(!_0x313f15)return null;const _0x27399a=_0x313f15[_0x383279(0x33c)]();let _0x1f478e;if(_0x389ea6&&(_0x1f478e=_0x27399a[_0x383279(0x2a3)](_0x389ea6)),_0x5d3703!=null&&_0x5d3703['v']||(_0x5d3703==null?void 0x0:_0x5d3703['v'])===0x0){_0x370fcb||(_0x370fcb={});const _0x344908=Jt(_0x5d3703['v']);typeof _0x344908=='number'?_0x370fcb['t']=v[_0x383279(0x1ee)][_0x383279(0x4a5)]:typeof _0x344908==_0x383279(0x2a8)&&(_0x370fcb['t']=v[_0x383279(0x1ee)][_0x383279(0x468)]),_0x370fcb['v']=_0x344908;}if((_0x5d3703!=null&&_0x5d3703['i']||(_0x5d3703==null?void 0x0:_0x5d3703['i'])===0x0)&&(_0x370fcb||(_0x370fcb={}),_0x370fcb['fi']=_0x5d3703['i']),_0x5d3703!=null&&_0x5d3703['s']&&(_0x370fcb||(_0x370fcb={}),_0x370fcb[_0x383279(0x4ab)]=_0x5d3703['s']),_0x389ea6&&(_0x370fcb||(_0x370fcb={}),_0x370fcb['s']=_0x1f478e),_0x2ff010&&_0x370fcb!=null&&_0x370fcb['v']&&_0x370fcb[_0x383279(0x4ab)]!==p[_0x383279(0x3aa)][_0x383279(0x460)]&&_0x370fcb[_0x383279(0x4ab)]!==p[_0x383279(0x3aa)][_0x383279(0x350)]){const _0x33f654=String(_0x370fcb['v']),{dateType:_0x28e4f4}=_0x2ff010;_0x370fcb['v']=Jo(_0x4ba4f8,_0x28e4f4,_0x33f654),_0x370fcb['t']=v[_0x383279(0x1ee)]['STRING'];}return _0x370fcb;},qo=(_0x58c563,_0x8610ca,_0x1b15d1,_0x5628c2)=>{const _0xf162ab=_0x498bf1;var _0x56bb0e,_0x3dc8db,_0x161927,_0x22915a,_0x835728,_0x1aaa3b,_0xd7efe1,_0x4b6f20,_0x14cf38,_0x45f2e8,_0x3d2e14,_0x5bc393,_0x2adaca,_0xd06630;const _0x31ce19=_0x1b15d1[_0xf162ab(0x235)],{cornerView:_0x3d8f7b,rowView:_0x48a291,colView:_0x670317,dataView:_0x801450,pageView:_0x473ed9,formatMap:_0x580abb,groupInfo:_0x4d10e3}=_0x8610ca,{row:_0x1dca2b,col:_0x8400df}=_0x31ce19,_0x3367f1=new v[(_0xf162ab(0x2fa))](),_0x3243e3={},_0x46b924={},_0x4602dc={},_0x25be25={},_0x2ae04d={};let _0x4d2fc5=_0x1dca2b,_0x5acfeb=_0x8400df;Object['keys'](_0x473ed9[_0xf162ab(0x432)])[_0xf162ab(0x421)](_0x13515c=>{Object['keys'](_0x473ed9['data'][Number(_0x13515c)])['forEach'](_0x5f40e4=>{const _0x41a5f6=_0x4e9d,_0x3932be={..._0x473ed9[_0x41a5f6(0x432)][Number(_0x13515c)][Number(_0x5f40e4)]};_0x3367f1['setValue'](Number(_0x13515c)+_0x4d2fc5,Number(_0x5f40e4)+_0x5acfeb,Ae(_0x58c563,_0x3932be,te[_0x41a5f6(0x480)]));});});const _0x4866e8=Object[_0xf162ab(0x418)](_0x473ed9[_0xf162ab(0x432)])[_0xf162ab(0x492)];_0x4d2fc5+=_0x4866e8+(_0x4866e8?De:0x0);const _0x3146f0=_0x3d8f7b['getRowCount'](),_0x4ae083=_0x3d8f7b[_0xf162ab(0x400)]();for(let _0x107bc1=0x0;_0x107bc1<_0x3146f0;_0x107bc1++)for(let _0x28a2da=0x0;_0x28a2da<_0x4ae083;_0x28a2da++){const _0x27bf91={...(_0x3dc8db=(_0x56bb0e=_0x3d8f7b[_0xf162ab(0x432)])==null?void 0x0:_0x56bb0e[_0x107bc1])==null?void 0x0:_0x3dc8db[_0x28a2da]};_0x27bf91&&((_0x161927=_0x48a291[_0xf162ab(0x2f9)][_0x28a2da])!=null&&_0x161927[_0xf162ab(0x21c)])&&_0x28a2da===_0x4ae083-0x1&&_0x107bc1===_0x3146f0-0x1&&(_0x27bf91['v']=''+_0x5628c2[_0xf162ab(0x37c)]),_0x3367f1[_0xf162ab(0x2a3)](_0x107bc1+_0x4d2fc5,_0x28a2da+_0x5acfeb,Ae(_0x58c563,_0x27bf91,te[_0xf162ab(0x21d)]));}for(let _0x358bea=0x0;_0x358bea<_0x3d8f7b[_0xf162ab(0x28a)][_0xf162ab(0x492)];_0x358bea++)_0x3d8f7b[_0xf162ab(0x28a)][_0x358bea]&&(_0x4602dc[''+(_0x358bea+_0x5acfeb)]=_0x3d8f7b[_0xf162ab(0x28a)][_0x358bea]);_0x5acfeb+=_0x4ae083;const _0x2e9e5f=_0x670317[_0xf162ab(0x2f9)],_0x1a96d3=_0x670317[_0xf162ab(0x246)]()>=0x0?_0x670317[_0xf162ab(0x246)]()+0x1:0x0,_0x42c9af=_0x670317[_0xf162ab(0x233)]()>=0x0?_0x670317[_0xf162ab(0x233)]()+0x1:0x0;for(let _0x58e358=0x0;_0x58e358<_0x42c9af;_0x58e358++){for(let _0x50e304=0x0;_0x50e304<_0x1a96d3;_0x50e304++){const _0xbf5f0a={...(_0x835728=(_0x22915a=_0x670317[_0xf162ab(0x432)])==null?void 0x0:_0x22915a[_0x50e304])==null?void 0x0:_0x835728[_0x58e358]},_0x4f72a4=(_0x1aaa3b=_0x2e9e5f[_0x50e304])==null?void 0x0:_0x1aaa3b[_0xf162ab(0x3d9)],_0x2617fd=_0x580abb[_0x4f72a4],_0x97147=_0x4d10e3[_0x4f72a4];_0xbf5f0a&&(_0xbf5f0a['v']=_e(_0xbf5f0a,_0x50e304===0x0&&((_0xd7efe1=_0x670317[_0xf162ab(0x305)](_0x58e358+0x1))==null?void 0x0:_0xd7efe1[_0xf162ab(0x21c)]),_0x2617fd,_0x5628c2));let _0x1cdc77;_0x2617fd?_0x1cdc77={...te['colStyle'],'n':{'pattern':_0x2617fd}}:_0x1cdc77={...te[_0xf162ab(0x261)]},_0x3367f1['setValue'](_0x50e304+_0x4d2fc5,_0x58e358+_0x5acfeb,Ae(_0x58c563,_0xbf5f0a,_0x1cdc77,_0x97147));}_0x670317[_0xf162ab(0x28a)][_0x58e358]&&(_0x46b924[''+(_0x58e358+_0x5acfeb)]=_0x670317['info'][_0x58e358]),_0x670317[_0xf162ab(0x2f9)][_0x58e358+0x1]&&(_0x2ae04d[''+(_0x58e358+_0x4d2fc5+0x1)]=_0x670317[_0xf162ab(0x2f9)][_0x58e358+0x1]);}_0x4d2fc5+=_0x3146f0;const _0x56a11c=_0x48a291[_0xf162ab(0x2f9)],_0x459077=_0x48a291[_0xf162ab(0x246)]()>=0x0?_0x48a291[_0xf162ab(0x246)]()+0x1:0x0,_0x5ca63d=_0x48a291[_0xf162ab(0x233)]()>=0x0?_0x48a291[_0xf162ab(0x233)]()+0x1:0x0;for(let _0x4cf6d8=0x0;_0x4cf6d8<_0x459077;_0x4cf6d8++){for(let _0x2c0b36=0x0;_0x2c0b36<_0x5ca63d;_0x2c0b36++){const _0x482529={...(_0x14cf38=(_0x4b6f20=_0x48a291[_0xf162ab(0x432)])==null?void 0x0:_0x4b6f20[_0x4cf6d8])==null?void 0x0:_0x14cf38[_0x2c0b36]},_0x161cae=(_0x45f2e8=_0x56a11c[_0x2c0b36])==null?void 0x0:_0x45f2e8[_0xf162ab(0x3d9)],_0x52e99c=_0x580abb[_0x161cae],_0x5afbbb=_0x4d10e3[_0x161cae];_0x482529&&(_0x482529['v']=_e(_0x482529,!0x1,_0x52e99c,_0x5628c2));let _0x367a99;_0x48a291['info'][_0x4cf6d8][_0xf162ab(0x301)]===_0x48a291[_0xf162ab(0x400)]()?_0x367a99=te['leafStyle']:_0x48a291[_0xf162ab(0x28a)][_0x4cf6d8][_0xf162ab(0x38f)]?_0x367a99=_0x48a291['info'][_0x4cf6d8][_0xf162ab(0x301)]===0x0?te[_0xf162ab(0x416)]:te[_0xf162ab(0x2bd)]:_0x367a99=te[_0xf162ab(0x39c)],_0x52e99c&&(_0x367a99={..._0x367a99,'n':{'pattern':_0x52e99c}}),_0x3367f1[_0xf162ab(0x2a3)](_0x4cf6d8+_0x4d2fc5,_0x2c0b36+_0x8400df,Ae(_0x58c563,_0x482529,_0x367a99,_0x5afbbb));}_0x48a291[_0xf162ab(0x28a)][_0x4cf6d8]&&(_0x3243e3[''+(_0x4cf6d8+_0x4d2fc5)]=_0x48a291[_0xf162ab(0x28a)][_0x4cf6d8]),_0x48a291['headerMap'][_0x4cf6d8]&&(_0x25be25[''+(_0x4cf6d8+_0x8400df)]=_0x48a291[_0xf162ab(0x2f9)][_0x4cf6d8]);}const _0x3a43d6=_0x801450['getRowCount'](),_0x45a551=_0x801450[_0xf162ab(0x400)]();for(let _0x35e669=0x0;_0x35e669<_0x3a43d6;_0x35e669++)for(let _0x1067a0=0x0;_0x1067a0<_0x45a551;_0x1067a0++){const _0x1521a1={...(_0x5bc393=(_0x3d2e14=_0x801450[_0xf162ab(0x432)])==null?void 0x0:_0x3d2e14[_0x35e669])==null?void 0x0:_0x5bc393[_0x1067a0]};let _0x1ef680;_0x48a291[_0xf162ab(0x28a)][_0x35e669]['isBottomTotal']?_0x1ef680=_0x48a291[_0xf162ab(0x28a)][_0x35e669][_0xf162ab(0x301)]===0x0?te[_0xf162ab(0x416)]:te[_0xf162ab(0x2bd)]:_0x1ef680=te[_0xf162ab(0x2af)];const _0x2df822=_0x48a291[_0xf162ab(0x28a)][_0x35e669]['valueIndex'],_0x454b6c=_0x670317[_0xf162ab(0x28a)][_0x1067a0][_0xf162ab(0x3ee)],_0x51b401=Math[_0xf162ab(0x327)](_0x2df822,_0x454b6c),_0x15af3b=_0x1b15d1['fieldsConfig'][_0xf162ab(0x475)][_0xf162ab(0x2ec)]();let _0x58c11c='';_0x51b401<0x0?_0x58c11c=(_0x2adaca=_0x15af3b[0x0])!=null?_0x2adaca:'':_0x58c11c=(_0xd06630=_0x15af3b[_0x51b401])!=null?_0xd06630:'';const _0x388854=_0x580abb[_0x58c11c];_0x388854&&(_0x1ef680={..._0x1ef680,'n':{'pattern':_0x388854}}),_0x3367f1['setValue'](_0x35e669+_0x4d2fc5,_0x1067a0+_0x5acfeb,Ae(_0x58c563,_0x1521a1,_0x1ef680));}return{'valueMatrix':_0x3367f1,'rowInfo':_0x3243e3,'colInfo':_0x46b924,'cornerInfo':_0x4602dc,'rowHeaderMap':_0x25be25,'colHeaderMap':_0x2ae04d};};function _e(_0x2b4dba,_0x43b5dc,_0x30ccac,_0x36f3a5){const _0x3eaafd=_0x498bf1;let _0x22ca45=_0x2b4dba['v'];_0x43b5dc&&(_0x22ca45=''+_0x36f3a5[_0x3eaafd(0x37c)]);const _0x3d1f0b=_0x2b4dba['t']&&(_0x2b4dba['t']&p[_0x3eaafd(0x452)][_0x3eaafd(0x29f)])>0x0;if(_0x3d1f0b&&(_0x22ca45=''+_0x36f3a5['sheets-pivot.blank']),_0x2b4dba['s']===p[_0x3eaafd(0x3aa)][_0x3eaafd(0x350)]){let _0x310c06=_0x22ca45,_0x3f4c9f='';p[_0x3eaafd(0x3f0)](_0x22ca45)&&(_0x310c06=_0x22ca45[_0x3eaafd(0x24a)],_0x3f4c9f=_0x22ca45[_0x3eaafd(0x390)]);const _0x3fab9b=_0x30ccac&&!_0x3d1f0b?v[_0x3eaafd(0x397)][_0x3eaafd(0x2c8)](_0x30ccac,Number(_0x310c06)):_0x310c06;_0x3f4c9f?_0x22ca45=_0x3fab9b+'\x20'+_0x3f4c9f:_0x22ca45=_0x3fab9b+'\x20'+_0x36f3a5['sheets-pivot.subTotal'];}else _0x2b4dba['s']===p[_0x3eaafd(0x3aa)][_0x3eaafd(0x460)]&&(_0x22ca45=_0x22ca45+'\x20'+_0x36f3a5[_0x3eaafd(0x3e2)]);return _0x22ca45;}function _0x4e9d(_0x56c757,_0x1d90c6){const _0x3a1722=_0x3a17();return _0x4e9d=function(_0x4e9df7,_0x20eafd){_0x4e9df7=_0x4e9df7-0x1a3;let _0x44b248=_0x3a1722[_0x4e9df7];return _0x44b248;},_0x4e9d(_0x56c757,_0x1d90c6);}function Jt(_0x3584fb){const _0x4731bd=_0x498bf1;if(p[_0x4731bd(0x2e7)](_0x3584fb)){const {errorType:_0x4f1c75}=_0x3584fb;switch(_0x4f1c75){case p[_0x4731bd(0x2fd)]['Div0']:return ve[_0x4731bd(0x1b7)][_0x4731bd(0x474)];case p[_0x4731bd(0x2fd)][_0x4731bd(0x1e2)]:return ve[_0x4731bd(0x1b7)][_0x4731bd(0x20d)];case p[_0x4731bd(0x2fd)]['NotFunction']:return ve[_0x4731bd(0x1b7)][_0x4731bd(0x1d1)];case p['PivotErrorTypeEnum']['NotName']:return ve['ErrorType'][_0x4731bd(0x1d1)];case p[_0x4731bd(0x2fd)]['BadReference']:return ve[_0x4731bd(0x1b7)][_0x4731bd(0x205)];}}return _0x3584fb;}function oe(_0xd35a5e,_0x416654,_0x4d9408=!0x1,_0x5e8b98=!0x1){const _0x2b61f7=_0x498bf1,{data:_0x1a380f}=_0x416654,_0x9e0c84=_0x416654[_0x2b61f7(0x312)](),_0x425efa=_0x416654[_0x2b61f7(0x400)]();if(_0x9e0c84<=0x0||_0x425efa<=0x0)return[];const _0x53542f=_0x416654[_0x2b61f7(0x233)](),_0x3ece89=_0x416654[_0x2b61f7(0x246)](),_0x11847f=_0x5e8b98?_0x3ece89>=0x0?_0x3ece89+0x1:0x0:_0x9e0c84,_0xc56c78=_0x5e8b98?_0x53542f>=0x0?_0x53542f+0x1:0x0:_0x425efa,{row:_0x744a0,col:_0x1d0b02}=_0xd35a5e,_0x19a622=_0x744a0,_0x4bab61=_0x1d0b02;if(_0x4d9408){const _0x53223d=[];for(const [_0x5f2384,_0x4d0f63]of Object[_0x2b61f7(0x43b)](_0x1a380f))for(const [_0x2d2574,_0x2adeb9]of Object['entries'](_0x4d0f63))_0x53223d['push'](v['cellToRange'](_0x19a622+Number(_0x5f2384),_0x4bab61+Number(_0x2d2574)));return _0x53223d;}else{const _0x1d9373=_0x5e8b98?_0x11847f>0x0?0x1:0x0:0x1,_0x5c968c=_0x5e8b98?_0xc56c78>0x0?0x1:0x0:0x1,_0x310b52=_0x744a0+_0x11847f-_0x1d9373,_0x46f2de=_0x1d0b02+_0xc56c78-_0x5c968c;return[{'startRow':_0x19a622,'startColumn':_0x4bab61,'endRow':_0x310b52,'endColumn':_0x46f2de}];}}const J=_0x498bf1(0x403),Pt=_0x498bf1(0x35c);var k=(_0x25b1b7=>(_0x25b1b7[_0x498bf1(0x1a9)]=_0x498bf1(0x2eb),_0x25b1b7[_0x498bf1(0x37f)]='panel',_0x25b1b7[_0x498bf1(0x32c)]='addPivotField',_0x25b1b7[_0x498bf1(0x42b)]=_0x498bf1(0x42b),_0x25b1b7[_0x498bf1(0x406)]='addPivotTable',_0x25b1b7[_0x498bf1(0x41e)]=_0x498bf1(0x1e7),_0x25b1b7[_0x498bf1(0x3ce)]=_0x498bf1(0x1df),_0x25b1b7[_0x498bf1(0x1d0)]=_0x498bf1(0x49d),_0x25b1b7['SetPivotFilter']=_0x498bf1(0x21a),_0x25b1b7['SetPivotSort']=_0x498bf1(0x219),_0x25b1b7['SetPivotSetting']=_0x498bf1(0x308),_0x25b1b7[_0x498bf1(0x306)]=_0x498bf1(0x3fa),_0x25b1b7[_0x498bf1(0x364)]=_0x498bf1(0x1e5),_0x25b1b7[_0x498bf1(0x1ef)]='drillDown',_0x25b1b7['SetValuePivotFilter']=_0x498bf1(0x328),_0x25b1b7[_0x498bf1(0x459)]=_0x498bf1(0x3d2),_0x25b1b7[_0x498bf1(0x276)]=_0x498bf1(0x4a6),_0x25b1b7))(k||{});const Ko={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x498bf1(0x2b8),'sheets-pivot.grandTotalText':_0x498bf1(0x3e7),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x498bf1(0x2f0),'sheets-pivot.countName':_0x498bf1(0x260),'sheets-pivot.countNumsName':_0x498bf1(0x260),'sheets-pivot.maxName':_0x498bf1(0x23a),'sheets-pivot.minName':_0x498bf1(0x30a),'sheets-pivot.productName':_0x498bf1(0x2b9),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x498bf1(0x24d),'sheets-pivot.sumName':_0x498bf1(0x321),'sheets-pivot.varName':_0x498bf1(0x1f1),'sheets-pivot.varpName':_0x498bf1(0x1d8),'sheets-pivot.subTotal':_0x498bf1(0x350),'sheets-pivot.grandTotal':_0x498bf1(0x3e7),'sheets-pivot.value':'value','sheets-pivot.blank':_0x498bf1(0x29f),'sheets-pivot.emptyPivot.filter':_0x498bf1(0x1a9),'sheets-pivot.emptyPivot.row':_0x498bf1(0x4af),'sheets-pivot.emptyPivot.column':_0x498bf1(0x3b2),'sheets-pivot.emptyPivot.values':'Values'},At={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},re=v[_0x498bf1(0x352)]('pivotPerformCheck'),qt=v['createInterceptorKey'](_0x498bf1(0x243));var be=(_0x2f8673=>(_0x2f8673[_0x498bf1(0x40d)]=_0x498bf1(0x40d),_0x2f8673['delete']=_0x498bf1(0x2d9),_0x2f8673[_0x498bf1(0x347)]=_0x498bf1(0x347),_0x2f8673))(be||{}),j=(_0x3c1ccd=>(_0x3c1ccd[_0x498bf1(0x2bb)]=_0x498bf1(0x40d),_0x3c1ccd['Set']=_0x498bf1(0x1ed),_0x3c1ccd[_0x498bf1(0x2f1)]=_0x498bf1(0x2d9),_0x3c1ccd))(j||{});const Kt={0x0:'R',0x1:'M',0x2:'i',0x3:'b',0x4:'O',0x5:'V',0x6:'7',0x7:'d',0x8:'8',0x9:'E','e':'0','P':'1','A':'2','r':'3','v':'4','c':'5','N':'6','W':'9','u':'a','a':'c','h':'e','n':'f','q':'g','z':'h','f':'j','C':'k','T':'l','K':'m','b':'n','s':'o','H':'p','y':'q','d':'r','l':'s','U':'t','G':'u','m':'v','M':'w','E':'x','Q':'y','g':'z','D':'A','S':'B','t':'C','k':'D','j':'F','p':'G','Y':'H','V':'I','J':'J','w':'K','o':'L','O':'N','X':'P','R':'Q','L':'S','i':'T','Z':'U','x':'W','I':'X','F':'Y','B':'Z'},Ht=_0x498bf1(0x230),Ft={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':_0x498bf1(0x2d7),'handler':()=>!0x0},wt={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':_0x498bf1(0x27b),'handler':()=>!0x0},ot={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x2bc),'handler':()=>!0x0},_t={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x1c3),'handler':()=>!0x0},Rt={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x444),'handler':()=>!0x0},Ho=_0xf0f90d=>{const _0x38a82d=_0x498bf1;var _0x124080;return((_0x124080=_0xf0f90d[_0x38a82d(0x443)])==null?void 0x0:_0x124080[_0x38a82d(0x36f)]['replace'](/\r\n$/,''))||'';};class zo extends p[_0x498bf1(0x340)]{constructor(_0x4c391d,_0x30c344){const _0x1b2dd5=_0x498bf1;super(),x(this,_0x1b2dd5(0x497),{}),x(this,'_univerInstanceService'),x(this,_0x1b2dd5(0x1f4)),(this['_univerInstanceService']=_0x30c344,this[_0x1b2dd5(0x1f4)]=_0x4c391d);}[_0x498bf1(0x21f)](){const _0x17bd55=_0x498bf1;for(const _0x956daf in this[_0x17bd55(0x3e8)]){const _0x442b44=this['dataFields'][_0x956daf],_0x4da131=_0x442b44['getRangeKey']();this[_0x17bd55(0x497)][_0x4da131]=_0x442b44['getId']();}}[_0x498bf1(0x455)](){const _0x534666=_0x498bf1,_0x3a7f5a=this['_host'];return on[_0x534666(0x28e)](_0x3a7f5a);}[_0x498bf1(0x4a3)](_0x104ac3){const _0x5f0626=_0x498bf1,_0x343061=this[_0x5f0626(0x3e8)][_0x104ac3][_0x5f0626(0x296)];delete this[_0x5f0626(0x3e8)][_0x104ac3],delete this[_0x5f0626(0x497)][_0x343061];}[_0x498bf1(0x21e)](_0x24cb5d){const _0x2e946e=_0x498bf1;this[_0x2e946e(0x3e8)][_0x24cb5d['getId']()]=_0x24cb5d;}[_0x498bf1(0x1f0)](_0xff1934){const _0x62fe97=_0x498bf1;var _0x53622b,_0x289a3e;const _0x5d8ac6=this['_host'][_0x62fe97(0x3ab)](_0xff1934);if(_0x5d8ac6){const {unitId:_0x15d623,subUnitId:_0x4be538}=_0x5d8ac6,_0x1b9a92=(_0x53622b=this[_0x62fe97(0x1f4)][_0x62fe97(0x467)](_0x15d623,_0x4be538,_0xff1934))==null?void 0x0:_0x53622b[_0x62fe97(0x2ff)];this[_0x62fe97(0x1f4)]['broadcastCollectionChange']({'token':_0xff1934,'type':be[_0x62fe97(0x2d9)],'dataRangeInfo':_0x1b9a92});}(_0x289a3e=this[_0x62fe97(0x1ca)](_0xff1934))==null||_0x289a3e[_0x62fe97(0x250)](),delete this[_0x62fe97(0x2de)][_0xff1934];}[_0x498bf1(0x336)](_0xcf57c3,_0x453cfa){const _0x294534=_0x498bf1,{sheetName:_0x2d3e97,unitId:_0x2bedf0,range:_0xfbff19}=_0xcf57c3,{startRow:_0x1f93b2,endRow:_0x58deb2}=_0xfbff19;return ve[_0x294534(0x41b)](_0x2bedf0,_0x2d3e97,{'startRow':_0x1f93b2,'endRow':_0x58deb2,'startColumn':_0x453cfa,'endColumn':_0x453cfa});}[_0x498bf1(0x30b)](_0x112632){const _0x384419=_0x498bf1;return this[_0x384419(0x3e8)][this[_0x384419(0x497)][_0x112632]];}[_0x498bf1(0x3ff)](_0x4d26b8,_0x55f86a){this['rangeKeyMap'][_0x4d26b8]=_0x55f86a;}[_0x498bf1(0x3f4)](_0x3bf8c3,_0x5aa942){const _0xa4c372=_0x498bf1;this[_0xa4c372(0x497)][_0x5aa942]=this[_0xa4c372(0x497)][_0x3bf8c3],delete this[_0xa4c372(0x497)][_0x3bf8c3];}['addCollectionByJSON'](_0x1d8051,_0x231107,_0x2de707,_0x2282ca){const _0x4c08b0=_0x498bf1,_0x26128a=new p['FieldsCollection'](this);_0x26128a[_0x4c08b0(0x2cd)](_0x231107);const _0x373132=[];let _0x582348=0x0;for(const _0x271b19 of _0x26128a[_0x4c08b0(0x236)]){const _0x78ebd2=this['getRangeKey'](_0x2de707,_0x582348),_0x2806ab=this[_0x4c08b0(0x3e8)][_0x271b19];_0x2806ab&&(_0x2806ab[_0x4c08b0(0x296)]=_0x78ebd2,this[_0x4c08b0(0x3ff)](_0x78ebd2,_0x271b19),_0x373132[_0x4c08b0(0x2a1)]({'index':_0x582348,'dataField':_0x2806ab})),_0x582348++;}return this[_0x4c08b0(0x27c)](_0x1d8051,_0x26128a,_0x2de707,_0x2282ca),{'collection':_0x26128a,'updateDataFieldList':_0x373132};}[_0x498bf1(0x206)](_0x22103e,_0x228ea0){const _0x1438c6=_0x498bf1;return _0x22103e[_0x1438c6(0x434)]===v[_0x1438c6(0x495)][_0x1438c6(0x31e)]?{'startRow':0x0,'startColumn':_0x22103e[_0x1438c6(0x368)],'endRow':_0x228ea0[_0x1438c6(0x312)]()-0x1,'endColumn':_0x22103e[_0x1438c6(0x242)]}:{'startRow':_0x22103e['startRow'],'startColumn':_0x22103e[_0x1438c6(0x368)],'endRow':_0x22103e[_0x1438c6(0x34e)],'endColumn':_0x22103e['endColumn']};}[_0x498bf1(0x457)](_0x56c653){const _0x257c3d=_0x498bf1,{sheetName:_0x2d7448,range:_0x4eb5a5}=_0x56c653,_0x1f87b8=this[_0x257c3d(0x48e)][_0x257c3d(0x43f)](v['UniverInstanceType'][_0x257c3d(0x3b3)]),_0xc22ffc=_0x1f87b8[_0x257c3d(0x464)](_0x2d7448),_0xdc7801=_0xc22ffc[_0x257c3d(0x2ea)](),{startColumn:_0x1e5148,startRow:_0x5796db,endColumn:_0x4c6b1a}=this[_0x257c3d(0x206)](_0x4eb5a5,_0xc22ffc),_0xf291f0=_0x1f87b8[_0x257c3d(0x33c)](),_0x5d52ea=new p['FieldsCollection'](this);_0x5d52ea[_0x257c3d(0x442)](_0x56c653);const _0x3b6590=[],_0x34aacf={};for(let _0x56404d=_0x1e5148;_0x56404d<=_0x4c6b1a;_0x56404d++){const _0x125894=_0xdc7801[_0x257c3d(0x438)](_0x5796db,_0x56404d),_0x25fa8c=this[_0x257c3d(0x336)](_0x56c653,_0x56404d),_0x5d1d7c=this[_0x257c3d(0x30b)](_0x25fa8c);if(_0x5d1d7c)_0x5d52ea[_0x257c3d(0x488)](_0x5d1d7c[_0x257c3d(0x263)](),_0x5d1d7c[_0x257c3d(0x256)]());else{const _0x5acdb9=this[_0x257c3d(0x366)]();let _0x356a6b=this[_0x257c3d(0x29d)](_0x125894,_0xf291f0,_0x34aacf);p[_0x257c3d(0x354)](_0x356a6b)&&(_0x356a6b=v['numfmt'][_0x257c3d(0x2c8)](_0x356a6b['f'],Number(_0x356a6b['v'])));const _0x48617d=this[_0x257c3d(0x1b0)](_0x356a6b,_0x56404d),_0x581acb=new p['DataField'](_0x5acdb9,_0x48617d,p[_0x257c3d(0x3c9)](0x3));_0x581acb['rangeKey']=_0x25fa8c,this[_0x257c3d(0x3e8)][_0x5acdb9]=_0x581acb,_0x5d52ea[_0x257c3d(0x488)](_0x5acdb9,_0x48617d),_0x3b6590[_0x257c3d(0x2a1)]({'index':_0x56404d,'dataField':_0x581acb});}}return{'updateDataFieldList':_0x3b6590,'collection':_0x5d52ea};}['_getAutoName'](_0x61f441){const _0x175586=_0x498bf1;return this[_0x175586(0x1f4)][_0x175586(0x3c1)]()[_0x175586(0x32b)]+'\x20'+v[_0x175586(0x326)](_0x61f441);}[_0x498bf1(0x1b0)](_0x16a023,_0x4e3c63){const _0x423a07=_0x498bf1;return _0x16a023==null||_0x16a023===''?this[_0x423a07(0x3c3)](_0x4e3c63):String(_0x16a023);}[_0x498bf1(0x1ca)](_0x40e8da){const _0x1a2dc2=_0x498bf1;return this[_0x1a2dc2(0x2de)][_0x40e8da];}[_0x498bf1(0x27c)](_0x4dc3f2,_0x11170a,_0x20aecb,_0x20f49e){const _0x5b6f0b=_0x498bf1;this['collections'][_0x4dc3f2]=_0x11170a,_0x11170a['setRange'](_0x20aecb),this[_0x5b6f0b(0x1f4)][_0x5b6f0b(0x1d6)]({'token':_0x4dc3f2,'type':be[_0x5b6f0b(0x40d)],'dataRangeInfo':_0x20aecb,'targetCellInfo':_0x20f49e});}[_0x498bf1(0x1e4)](_0x540ae4,_0x5462dc){const _0x4def90=_0x498bf1,_0x2909b6=this[_0x4def90(0x1ca)](_0x540ae4),_0x528775=_0x2909b6['getFieldIds']();let _0x3e4dd6=0x0;for(const _0xd9e836 of _0x528775){const _0xa005a7=_0x2909b6[_0x4def90(0x3cb)](_0xd9e836),_0x3e5232=this['getRangeKey'](_0x5462dc,_0x3e4dd6);this[_0x4def90(0x3f4)](_0xa005a7['rangeKey'],_0x3e5232),_0x3e4dd6++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x498bf1(0x35f)](_0x2ce968,_0x15646a){const _0x14fce9=_0x498bf1;if(this[_0x14fce9(0x1ca)](_0x2ce968)){const _0x95d1d0=this[_0x14fce9(0x3dd)](_0x15646a),_0x2ff674=[];for(const _0x5b4684 of _0x95d1d0)this[_0x14fce9(0x497)][_0x5b4684]!==void 0x0&&_0x2ff674[_0x14fce9(0x2a1)](this['rangeKeyMap'][_0x5b4684]);const _0x2c5032=this[_0x14fce9(0x3a9)](_0x2ce968),_0x43f819=[],_0x19ca94=new Set(_0x2ff674);for(const _0x3852d6 of _0x2c5032)_0x19ca94[_0x14fce9(0x1cc)](_0x3852d6)||_0x43f819[_0x14fce9(0x2a1)](_0x3852d6);return _0x43f819;}}[_0x498bf1(0x31b)](_0x225235,_0x2dc8a7,_0x8a309c,_0x583515,_0x2249ef){const _0x8155ef=_0x498bf1;return _0x2dc8a7&&_0x2dc8a7['getValue'](_0x583515,_0x2249ef)?_0x2dc8a7[_0x8155ef(0x438)](_0x583515,_0x2249ef):_0x8a309c&&_0x8a309c[_0x8155ef(0x438)](_0x583515,_0x2249ef)?_0x8a309c[_0x8155ef(0x438)](_0x583515,_0x2249ef):_0x225235[_0x8155ef(0x438)](_0x583515,_0x2249ef);}['refreshDataField'](_0x3e3462,_0x3975e7,_0x57757d,_0x5bbc46){const _0x5731e8=_0x498bf1,_0xf92929=this[_0x5731e8(0x3e8)][_0x3e3462];if(!_0xf92929)return;const {subUnitId:_0x56db1d,range:_0x176a20,unitId:_0x2ea1b5}=_0x3975e7,_0x4388e9=this['_univerInstanceService']['getUnit'](_0x2ea1b5);if(!_0x4388e9){console['error'](_0x5731e8(0x428));return;}const _0x3adf3a=_0x4388e9[_0x5731e8(0x1b3)](_0x56db1d),_0x6c14e8=_0x3adf3a[_0x5731e8(0x2ea)](),{arrayFormulaCellDataMatrix:_0x4ce35a,unitDataMatrix:_0x1c9d07}=_0x5bbc46||{},{startRow:_0x51c68f,startColumn:_0x609099,endRow:_0x4a5a25}=this[_0x5731e8(0x206)](_0x176a20,_0x3adf3a);_0xf92929[_0x5731e8(0x2f4)]();const _0x5839a7=_0x4388e9[_0x5731e8(0x33c)](),_0xa1565e={},_0x395fc1=this[_0x5731e8(0x31b)](_0x6c14e8,_0x4ce35a,_0x1c9d07,_0x51c68f,_0x609099+_0x57757d);let _0x2039bf=this['adjustSheetCellData'](_0x395fc1,_0x5839a7,_0xa1565e);p[_0x5731e8(0x354)](_0x2039bf)&&(_0x2039bf=v[_0x5731e8(0x397)][_0x5731e8(0x2c8)](_0x2039bf['f'],Number(_0x2039bf['v'])));const _0x269f1c=this['uniqueDataFieldName'](_0x2039bf,_0x609099+_0x57757d);_0xf92929[_0x5731e8(0x288)](_0x269f1c);for(let _0x28d3b9=_0x51c68f+0x1;_0x28d3b9<=_0x4a5a25;_0x28d3b9++){const _0x353bed=this[_0x5731e8(0x31b)](_0x6c14e8,_0x4ce35a,_0x1c9d07,_0x28d3b9,_0x609099+_0x57757d);_0xf92929[_0x5731e8(0x369)](this[_0x5731e8(0x29d)](_0x353bed,_0x5839a7,_0xa1565e),_0x28d3b9-0x1-_0x51c68f);}}[_0x498bf1(0x297)](_0x6b34a8,_0x1f7778,_0x4b0d11){const _0x2b8638=_0x498bf1,{subUnitId:_0x23cb94,range:_0x49edf1,unitId:_0x58bccc}=_0x4b0d11,_0x25254d=this[_0x2b8638(0x48e)]['getUnit'](_0x58bccc);if(!_0x25254d){console[_0x2b8638(0x417)](_0x2b8638(0x428));return;}const _0x4497dd=_0x25254d[_0x2b8638(0x1b3)](_0x23cb94),_0x552a69=_0x4497dd['getCellMatrix'](),{startRow:_0x3185e9,startColumn:_0x101925,endRow:_0x40b703}=this[_0x2b8638(0x206)](_0x49edf1,_0x4497dd),_0x2a6e74=_0x25254d[_0x2b8638(0x33c)](),_0x3a9a2c={};for(const {dataField:_0x4ce1bd,index:_0x2d2949}of _0x1f7778){_0x4ce1bd['reset']();const _0x46b462=this[_0x2b8638(0x31b)](_0x552a69,void 0x0,void 0x0,_0x3185e9,_0x101925+_0x2d2949);let _0x2aeb99=this['adjustSheetCellData'](_0x46b462,_0x2a6e74,_0x3a9a2c);p[_0x2b8638(0x354)](_0x2aeb99)&&(_0x2aeb99=v[_0x2b8638(0x397)][_0x2b8638(0x2c8)](_0x2aeb99['f'],Number(_0x2aeb99['v'])));const _0x446aea=this[_0x2b8638(0x1b0)](_0x2aeb99,_0x101925+_0x2d2949);_0x4ce1bd[_0x2b8638(0x288)](_0x446aea);}_0x6b34a8[_0x2b8638(0x385)]();for(let _0x1823a7=_0x3185e9+0x1;_0x1823a7<=_0x40b703;_0x1823a7++)for(const {index:_0x405ba3,dataField:_0x15870a}of _0x1f7778){const _0xc3d036=_0x552a69[_0x2b8638(0x438)](_0x1823a7,_0x101925+_0x405ba3);_0x15870a[_0x2b8638(0x369)](this[_0x2b8638(0x29d)](_0xc3d036,_0x2a6e74,_0x3a9a2c),_0x1823a7-0x1-_0x3185e9);}_0x6b34a8[_0x2b8638(0x38b)](_0x40b703-_0x3185e9);}[_0x498bf1(0x3dd)](_0x3d1565){const _0x4edca8=_0x498bf1,{range:_0x2755a8}=_0x3d1565,{startColumn:_0x572bfc,endColumn:_0x3c315e}=_0x2755a8,_0x41da4d=[];for(let _0x31a81c=_0x572bfc;_0x31a81c<=_0x3c315e;_0x31a81c++)_0x41da4d[_0x4edca8(0x2a1)](this[_0x4edca8(0x336)](_0x3d1565,_0x31a81c));return _0x41da4d;}['adjustSheetCellData'](_0x389efc,_0x520269,_0x180134){const _0x7d4eb2=_0x498bf1;if(_0x389efc){const {s:_0x47b966,v:_0x4968e8,t:_0x19b0eb,p:_0x3836d9}=_0x389efc;if(_0x3836d9)return Ho(_0x3836d9);const _0x33bb26=_0x520269[_0x7d4eb2(0x3b4)](_0x47b966);if(_0x33bb26&&_0x19b0eb===v[_0x7d4eb2(0x1ee)]['NUMBER']&&_0x33bb26['n']){const {pattern:_0x3e5f5c}=_0x33bb26['n'];_0x180134[_0x3e5f5c]||(_0x180134[_0x3e5f5c]=v[_0x7d4eb2(0x397)][_0x7d4eb2(0x32a)](_0x3e5f5c));const _0x2f397f=_0x180134[_0x3e5f5c],_0x1431fc=_0x2f397f[_0x7d4eb2(0x2e3)];if(_0x2f397f[_0x7d4eb2(0x33f)])return String(_0x4968e8);if(_0x1431fc)return{'v':_0x4968e8,'f':_0x3e5f5c};}if(_0x19b0eb===v[_0x7d4eb2(0x1ee)][_0x7d4eb2(0x4a5)])return Number(_0x4968e8);if(_0x19b0eb===v[_0x7d4eb2(0x1ee)][_0x7d4eb2(0x468)]||_0x19b0eb===v[_0x7d4eb2(0x1ee)]['FORCE_STRING'])return String(_0x4968e8);if(_0x19b0eb===void 0x0){const _0x93c8a4=Number(_0x4968e8);if(!Number[_0x7d4eb2(0x30f)](_0x93c8a4)&&String(_0x93c8a4)===_0x4968e8)return _0x93c8a4;}return _0x4968e8!=null?_0x4968e8:null;}else return null;}['getRangeData'](_0x28170f){const _0x215b68=_0x498bf1,{sheetName:_0x445315,range:_0x3a2fb,unitId:_0x50e61b}=_0x28170f,_0x331d94=this[_0x215b68(0x48e)][_0x215b68(0x48a)](_0x50e61b);if(!_0x331d94)return console[_0x215b68(0x417)](_0x215b68(0x428)),{'header':[],'data':[]};const _0x5e9fa7=_0x331d94[_0x215b68(0x464)](_0x445315),_0x32a6bb=_0x5e9fa7['getCellMatrix'](),{startRow:_0x3e2bdc,startColumn:_0x4e3cbc,endRow:_0x2ddd7d,endColumn:_0xfacfec}=this[_0x215b68(0x206)](_0x3a2fb,_0x5e9fa7),_0x41a43a=_0x331d94[_0x215b68(0x33c)](),_0x377cd7=[],_0x8458b9=[],_0x5d0c76={};for(let _0x210a81=_0x3e2bdc;_0x210a81<=_0x2ddd7d;_0x210a81++){const _0x2e9546=[];for(let _0x20f19d=_0x4e3cbc;_0x20f19d<=_0xfacfec;_0x20f19d++){const _0x1b1003=_0x32a6bb[_0x215b68(0x438)](_0x210a81,_0x20f19d);_0x210a81===_0x3e2bdc?_0x377cd7[_0x215b68(0x2a1)](_0x1b1003==null?null:String(_0x1b1003['v'])):_0x2e9546[_0x215b68(0x2a1)](this[_0x215b68(0x29d)](_0x1b1003,_0x41a43a,_0x5d0c76));}_0x8458b9[_0x215b68(0x2a1)](_0x2e9546);}return{'header':_0x377cd7,'data':_0x8458b9};}[_0x498bf1(0x2c7)](){return super['toJSON']();}[_0x498bf1(0x2cd)](_0x52146c){const _0x38eb9f=_0x498bf1;super[_0x38eb9f(0x2cd)](_0x52146c),this[_0x38eb9f(0x21f)]();}[_0x498bf1(0x250)](){const _0x31bf74=_0x498bf1;super[_0x31bf74(0x250)](),this[_0x31bf74(0x497)]={},this['_host']=null;}}const Yo=_0x5e2412=>{const _0x583a66=_0x498bf1,{targetCellInfo:_0x3b33aa}=_0x5e2412,{matrixCache:_0x105d31,rangesCache:_0x28f5dd}=zt({'filter':'Filter','row':_0x583a66(0x4af),'column':_0x583a66(0x3b2),'values':_0x583a66(0x2c5)},_0x3b33aa),_0x2f3689=new v[(_0x583a66(0x2fa))]();return _0x105d31[_0x583a66(0x36a)]((_0x3ba359,_0x22fb0f,_0x38ba16)=>{_0x2f3689['setValue'](_0x3ba359,_0x22fb0f,_0x38ba16);}),{'matrix':_0x2f3689,'rangesCache':_0x28f5dd};},ke=_0xb99b86=>{const _0x1407b1=_0x498bf1;let _0x2c1bab;if(_0xb99b86!=null&&_0xb99b86['v']||(_0xb99b86==null?void 0x0:_0xb99b86['v'])===0x0){_0x2c1bab||(_0x2c1bab={});const _0x2a2bff=Jt(_0xb99b86['v']);typeof _0x2a2bff==_0x1407b1(0x3a3)?_0x2c1bab['t']=v['CellValueType']['NUMBER']:typeof _0x2a2bff=='string'&&(_0x2c1bab['t']=v[_0x1407b1(0x1ee)][_0x1407b1(0x468)]),_0x2c1bab['v']=_0x2a2bff;}return _0x2c1bab;},Qo=(_0x5e4bae,_0x317cc9,_0x4e1583)=>{const _0x3148e0=_0x498bf1;var _0x44a498,_0x1f84e3,_0x7771b4,_0xd40973,_0x52b32e,_0x394dc6,_0x18965a,_0x26566a,_0x4e2fab,_0x3268e7,_0x13cbcb,_0x5e0f50;const {cornerView:_0x528df3,rowView:_0x4e95ce,colView:_0x24228f,dataView:_0x5e590c,pageView:_0x2b96a1,formatMap:_0x2fce2b}=_0x5e4bae,{row:_0x5c3604,col:_0x6976b1}=_0x317cc9,_0x20a884=new v[(_0x3148e0(0x2fa))]();let _0x3ac3a4=_0x5c3604,_0x38595f=_0x6976b1;Object[_0x3148e0(0x418)](_0x2b96a1[_0x3148e0(0x432)])[_0x3148e0(0x421)](_0x39e4d8=>{const _0x14c977=_0x3148e0;Object[_0x14c977(0x418)](_0x2b96a1[_0x14c977(0x432)][Number(_0x39e4d8)])[_0x14c977(0x421)](_0x2fb1c2=>{const _0xb8c79e=_0x14c977,_0x417f2a={..._0x2b96a1['data'][Number(_0x39e4d8)][Number(_0x2fb1c2)]};_0x20a884[_0xb8c79e(0x2a3)](Number(_0x39e4d8)+_0x3ac3a4,Number(_0x2fb1c2)+_0x38595f,ke(_0x417f2a));});});const _0x2e2e3d=Object[_0x3148e0(0x418)](_0x2b96a1[_0x3148e0(0x432)])[_0x3148e0(0x492)];_0x3ac3a4+=_0x2e2e3d+(_0x2e2e3d?De:0x0);const _0x2b40cd=_0x528df3[_0x3148e0(0x312)](),_0xd5cc22=_0x528df3[_0x3148e0(0x400)]();for(let _0x2d4974=0x0;_0x2d4974<_0x2b40cd;_0x2d4974++)for(let _0x6bf16=0x0;_0x6bf16<_0xd5cc22;_0x6bf16++){const _0xd0bab0={...(_0x1f84e3=(_0x44a498=_0x528df3[_0x3148e0(0x432)])==null?void 0x0:_0x44a498[_0x2d4974])==null?void 0x0:_0x1f84e3[_0x6bf16]};_0xd0bab0&&((_0x7771b4=_0x4e95ce[_0x3148e0(0x2f9)][_0x6bf16])!=null&&_0x7771b4['isValue'])&&_0x6bf16===_0xd5cc22-0x1&&_0x2d4974===_0x2b40cd-0x1&&(_0xd0bab0['v']=''+_0x4e1583[_0x3148e0(0x37c)]),_0x20a884[_0x3148e0(0x2a3)](_0x2d4974+_0x3ac3a4,_0x6bf16+_0x38595f,ke(_0xd0bab0));}_0x38595f+=_0xd5cc22;const _0x4a743e=_0x24228f['headerMap'],_0x5bb079=_0x24228f[_0x3148e0(0x246)]()>=0x0?_0x24228f[_0x3148e0(0x246)]()+0x1:0x0,_0x2c7c5e=_0x24228f[_0x3148e0(0x233)]()>=0x0?_0x24228f[_0x3148e0(0x233)]()+0x1:0x0;for(let _0x25b478=0x0;_0x25b478<_0x2c7c5e;_0x25b478++)for(let _0x444231=0x0;_0x444231<_0x5bb079;_0x444231++){const _0x2b1742={...(_0x52b32e=(_0xd40973=_0x24228f[_0x3148e0(0x432)])==null?void 0x0:_0xd40973[_0x25b478])==null?void 0x0:_0x52b32e[_0x444231]},_0x5a037b=(_0x394dc6=_0x4a743e[_0x25b478])==null?void 0x0:_0x394dc6[_0x3148e0(0x3d9)],_0x297840=_0x2fce2b[_0x5a037b];_0x2b1742&&(_0x2b1742['v']=_e(_0x2b1742,_0x25b478===0x0&&((_0x18965a=_0x24228f[_0x3148e0(0x305)](_0x444231+0x1))==null?void 0x0:_0x18965a[_0x3148e0(0x21c)]),_0x297840,_0x4e1583)),_0x20a884[_0x3148e0(0x2a3)](_0x25b478+_0x3ac3a4,_0x444231+_0x38595f,ke(_0x2b1742));}_0x3ac3a4+=_0x2b40cd;const _0x3d2cb0=_0x4e95ce[_0x3148e0(0x2f9)],_0x348180=_0x4e95ce[_0x3148e0(0x246)]()>=0x0?_0x4e95ce['getLastRow']()+0x1:0x0,_0x4c5eaa=_0x4e95ce[_0x3148e0(0x233)]()>=0x0?_0x4e95ce[_0x3148e0(0x233)]()+0x1:0x0;for(let _0x3b12bf=0x0;_0x3b12bf<_0x348180;_0x3b12bf++)for(let _0x6e00c8=0x0;_0x6e00c8<_0x4c5eaa;_0x6e00c8++){const _0x416629={...(_0x4e2fab=(_0x26566a=_0x4e95ce[_0x3148e0(0x432)])==null?void 0x0:_0x26566a[_0x3b12bf])==null?void 0x0:_0x4e2fab[_0x6e00c8]},_0x2fb34a=(_0x3268e7=_0x3d2cb0[_0x6e00c8])==null?void 0x0:_0x3268e7[_0x3148e0(0x3d9)],_0x72b03d=_0x2fce2b[_0x2fb34a];_0x416629&&(_0x416629['v']=_e(_0x416629,!0x1,_0x72b03d,_0x4e1583)),_0x20a884['setValue'](_0x3b12bf+_0x3ac3a4,_0x6e00c8+_0x6976b1,ke(_0x416629));}const _0x3505db=_0x5e590c[_0x3148e0(0x312)](),_0x1d646e=_0x5e590c['getColCount']();for(let _0x1c0e6=0x0;_0x1c0e6<_0x3505db;_0x1c0e6++)for(let _0x30c928=0x0;_0x30c928<_0x1d646e;_0x30c928++){const _0x3430eb={...(_0x5e0f50=(_0x13cbcb=_0x5e590c[_0x3148e0(0x432)])==null?void 0x0:_0x13cbcb[_0x1c0e6])==null?void 0x0:_0x5e0f50[_0x30c928]};_0x20a884[_0x3148e0(0x2a3)](_0x1c0e6+_0x3ac3a4,_0x30c928+_0x38595f,ke(_0x3430eb));}return _0x20a884;},Xo=_0x1f954d=>{const _0x1dfabd=_0x498bf1,{view:_0x4d1704,targetCellInfo:_0x4ea0e2,isEmpty:_0xb5e259,textInfo:_0x3cc89e}=_0x1f954d;if(_0xb5e259)return Yo(_0x1f954d);const {pageView:_0x366e8c,cornerView:_0x14a837,rowView:_0x3f88ca,colView:_0x493926,dataView:_0x122cfd}=_0x4d1704,_0x27bd32=oe(_0x4ea0e2,_0x366e8c,!0x0),_0x272af8=_0x366e8c[_0x1dfabd(0x32e)]>=0x0?_0x366e8c[_0x1dfabd(0x32e)]+0x1:0x0,_0x18d976=_0x14a837['getRowCount'](),_0xb61f88=_0x14a837[_0x1dfabd(0x400)](),_0x85d975=_0x27bd32[_0x1dfabd(0x492)]>0x0?De:0x0,_0x5c9bee=oe({'row':_0x4ea0e2[_0x1dfabd(0x1c0)]+_0x272af8+_0x85d975,'col':_0x4ea0e2[_0x1dfabd(0x463)]},_0x14a837,!0x1,!0x1),_0x40e2bc=oe({'row':_0x4ea0e2[_0x1dfabd(0x1c0)]+_0x272af8+_0x85d975+_0x18d976,'col':_0x4ea0e2[_0x1dfabd(0x463)]},_0x3f88ca,!0x1,!0x0),_0x9a8cf5=oe({'row':_0x4ea0e2[_0x1dfabd(0x1c0)]+_0x272af8+_0x85d975,'col':_0x4ea0e2[_0x1dfabd(0x463)]+_0xb61f88},_0x493926,!0x1,!0x0),_0x561748=oe({'row':_0x4ea0e2[_0x1dfabd(0x1c0)]+_0x272af8+_0x85d975+_0x18d976,'col':_0x4ea0e2[_0x1dfabd(0x463)]+_0xb61f88},_0x122cfd,!0x1,!0x1),_0x21bd8f={'rowRanges':_0x40e2bc,'colRanges':_0x9a8cf5,'cornerRanges':_0x5c9bee,'dataRanges':_0x561748,'pageRanges':_0x27bd32};return{'matrix':Qo(_0x4d1704,_0x4ea0e2,_0x3cc89e),'rangesCache':_0x21bd8f};};var Zo=Object[_0x498bf1(0x2b5)],en=(_0x19c4da,_0x5e4cea,_0x49fb25,_0x47b354)=>{const _0x4ae17e=_0x498bf1;for(var _0x2f43c1=_0x47b354>0x1?void 0x0:_0x47b354?Zo(_0x5e4cea,_0x49fb25):_0x5e4cea,_0x377046=_0x19c4da[_0x4ae17e(0x492)]-0x1,_0x48b57f;_0x377046>=0x0;_0x377046--)(_0x48b57f=_0x19c4da[_0x377046])&&(_0x2f43c1=_0x48b57f(_0x2f43c1)||_0x2f43c1);return _0x2f43c1;},ye=(_0x1ed82d,_0xcffae8)=>(_0x2b3f3e,_0x155387)=>_0xcffae8(_0x2b3f3e,_0x155387,_0x1ed82d);exports[_0x498bf1(0x2b0)]=class extends v[_0x498bf1(0x26e)]{constructor(_0xf8376b,_0x21ee7e,_0x2e1f84,_0x17a5bb,_0x286b14,_0x57b3ad){const _0x561ce0=_0x498bf1;super(),x(this,'_model',new Map()),x(this,_0x561ce0(0x1f7),new Map()),x(this,_0x561ce0(0x399),new Map()),x(this,_0x561ce0(0x49b)),x(this,_0x561ce0(0x252),new ge[(_0x561ce0(0x493))]()),x(this,'collectionChange$',this['_collectionChange$'][_0x561ce0(0x237)]()),x(this,_0x561ce0(0x348),new ge[(_0x561ce0(0x493))]()),x(this,_0x561ce0(0x453),this[_0x561ce0(0x348)][_0x561ce0(0x237)]()),x(this,_0x561ce0(0x3df),new ge[(_0x561ce0(0x493))]()),x(this,_0x561ce0(0x435),this[_0x561ce0(0x3df)][_0x561ce0(0x237)]()),x(this,'_dataFieldManagerCollection',new Map()),x(this,_0x561ce0(0x46b),[]),x(this,'_queryingMap',new Map()),(this['_injector']=_0xf8376b,this['_univerInstanceService']=_0x21ee7e,this[_0x561ce0(0x1ec)]=_0x2e1f84,this[_0x561ce0(0x1af)]=_0x17a5bb,this[_0x561ce0(0x3f9)]=_0x286b14,this[_0x561ce0(0x255)]=_0x57b3ad,this['_initSnapshot']());}[_0x498bf1(0x3c1)](){const _0x381aec=_0x498bf1;return this[_0x381aec(0x49b)]?this[_0x381aec(0x49b)]:Ko;}['setTextInfo'](_0x57e01a){const _0x358dd5=_0x498bf1;this[_0x358dd5(0x49b)]=_0x57e01a;}[_0x498bf1(0x1e4)](_0x329693){const _0x58c963=_0x498bf1;var _0x5e9df3;const {from:_0x5899da,to:_0x3c873c,unitId:_0xa68253,fromRange:_0x1ed645,toRange:_0x43d8fc}=_0x329693;if(_0x5899da&&_0x3c873c){const _0x28a791=this[_0x58c963(0x2c3)](_0xa68253),_0x36a14d=this[_0x58c963(0x273)][_0x58c963(0x3b4)](_0xa68253),_0x494e66=(_0x5e9df3=this[_0x58c963(0x48e)][_0x58c963(0x48a)](_0xa68253))==null?void 0x0:_0x5e9df3[_0x58c963(0x1b3)](_0x3c873c[_0x58c963(0x36e)]);if(!_0x36a14d||!_0x494e66)return;const _0x1b8c0f=_0x494e66==null?void 0x0:_0x494e66[_0x58c963(0x256)]();for(const [_0x199808,_0x3fb0ef]of _0x36a14d[_0x58c963(0x43b)]())for(const [_0x542961,_0x279d0b]of _0x3fb0ef[_0x58c963(0x43b)]()){const {sourceRangeInfo:_0x40ee37}=_0x279d0b;if(_0x40ee37[_0x58c963(0x39f)]===_0xa68253&&_0x40ee37[_0x58c963(0x36e)]===_0x5899da[_0x58c963(0x36e)]&&v[_0x58c963(0x2f8)][_0x58c963(0x251)](_0x1ed645,_0x40ee37[_0x58c963(0x411)])){const _0x310697={'row':_0x40ee37[_0x58c963(0x411)][_0x58c963(0x42a)]-_0x1ed645['startRow'],'col':_0x40ee37[_0x58c963(0x411)][_0x58c963(0x368)]-_0x1ed645[_0x58c963(0x368)]},_0x44abb7={'unitId':_0xa68253,'subUnitId':_0x3c873c[_0x58c963(0x36e)],'sheetName':_0x1b8c0f,'range':{'startRow':_0x43d8fc[_0x58c963(0x42a)]+_0x310697[_0x58c963(0x1c0)],'endRow':_0x43d8fc[_0x58c963(0x42a)]+_0x310697[_0x58c963(0x1c0)]+_0x40ee37[_0x58c963(0x411)]['endRow']-_0x40ee37['range']['startRow'],'startColumn':_0x43d8fc[_0x58c963(0x368)]+_0x310697['col'],'endColumn':_0x43d8fc['startColumn']+_0x310697[_0x58c963(0x463)]+_0x40ee37[_0x58c963(0x411)]['endColumn']-_0x40ee37[_0x58c963(0x411)][_0x58c963(0x368)]}};_0x28a791['handleMoveRange'](_0x542961,_0x44abb7);const _0x488c0b={..._0x279d0b,'sourceRangeInfo':_0x44abb7};this['_updateModelCache'](_0xa68253,_0x3c873c[_0x58c963(0x36e)],_0x542961,_0x488c0b),this[_0x58c963(0x1d6)]({'unitId':_0xa68253,'token':_0x542961,'type':be[_0x58c963(0x347)],'oldSourceRangeInfo':_0x40ee37,'dataRangeInfo':_0x44abb7,'targetCellInfo':_0x279d0b[_0x58c963(0x235)]}),this[_0x58c963(0x22f)]({'unitId':_0xa68253,'subUnitId':_0x3c873c['subUnitId'],'oldSubUnitId':_0x199808,'pivotTableId':_0x542961,'pivotTableConfig':_0x488c0b,'collectionConfig':_0x28a791[_0x58c963(0x2c7)]()});}}}}[_0x498bf1(0x1d6)](_0x132dec){const _0x11c500=_0x498bf1;this[_0x11c500(0x252)]['next'](_0x132dec);}['getDataFieldManager'](_0x246836){const _0x2a1053=_0x498bf1;let _0x5bceda=this[_0x2a1053(0x2c4)][_0x2a1053(0x3b4)](_0x246836);return _0x5bceda||(_0x5bceda=new zo(this,this[_0x2a1053(0x48e)]),this[_0x2a1053(0x2c4)][_0x2a1053(0x1ed)](_0x246836,_0x5bceda)),_0x5bceda;}['getCollection'](_0x4844cc,_0x2065e4){const _0x29858a=_0x498bf1;return this[_0x29858a(0x2c3)](_0x4844cc)[_0x29858a(0x2de)][_0x2065e4];}['getUpdateRangeDeleteIds'](_0xc24d7d,_0x16bd9f,_0x25c777){const _0x56046a=_0x498bf1;return this[_0x56046a(0x2c3)](_0xc24d7d)[_0x56046a(0x35f)](_0x16bd9f,_0x25c777);}[_0x498bf1(0x2a5)](_0x13507a,_0x15f649){const _0x513690=_0x498bf1;let _0x4e6e2=this[_0x513690(0x273)][_0x513690(0x3b4)](_0x13507a);_0x4e6e2||(_0x4e6e2=new Map(),this[_0x513690(0x273)]['set'](_0x13507a,_0x4e6e2));let _0x3b5f74=_0x4e6e2[_0x513690(0x3b4)](_0x15f649);return _0x3b5f74||(_0x3b5f74=new Map(),_0x4e6e2[_0x513690(0x1ed)](_0x15f649,_0x3b5f74)),_0x3b5f74;}[_0x498bf1(0x2df)](_0x139afc,_0x3b90dc,_0x381a01,_0x1e7970){const _0x238945=_0x498bf1;this[_0x238945(0x2a5)](_0x139afc,_0x3b90dc)[_0x238945(0x1ed)](_0x381a01,_0x1e7970);}[_0x498bf1(0x372)](_0x135e02,_0x1aefc4,_0x15e29d){const _0x32cb19=_0x498bf1;var _0x355c24,_0x44b0e7,_0x4bff43,_0x5061fc;((_0x44b0e7=(_0x355c24=this[_0x32cb19(0x273)][_0x32cb19(0x3b4)](_0x135e02))==null?void 0x0:_0x355c24[_0x32cb19(0x3b4)](_0x1aefc4))==null?void 0x0:_0x44b0e7['get'](_0x15e29d))&&((_0x5061fc=(_0x4bff43=this[_0x32cb19(0x273)]['get'](_0x135e02))==null?void 0x0:_0x4bff43[_0x32cb19(0x3b4)](_0x1aefc4))==null||_0x5061fc['delete'](_0x15e29d));}['_updatePivotTableInstanceCache'](_0x46a436,_0x3503c3){const _0x2eddaa=_0x498bf1;this[_0x2eddaa(0x1f7)]['set'](_0x46a436,_0x3503c3);}[_0x498bf1(0x279)](_0x546f0f){const _0x54727a=_0x498bf1;this[_0x54727a(0x1f7)][_0x54727a(0x2d9)](_0x546f0f);}[_0x498bf1(0x1e1)](_0x32a100,_0x47c6a8){const _0x211e31=_0x498bf1;let _0x2c2a56=this[_0x211e31(0x399)]['get'](_0x32a100);_0x2c2a56||(_0x2c2a56=new Map(),this[_0x211e31(0x399)]['set'](_0x32a100,_0x2c2a56));let _0xea29a5=_0x2c2a56[_0x211e31(0x3b4)](_0x47c6a8);return _0xea29a5||(_0xea29a5=new Map(),_0x2c2a56[_0x211e31(0x1ed)](_0x47c6a8,_0xea29a5)),_0xea29a5;}[_0x498bf1(0x22f)](_0x3b10e2){const _0x380fee=_0x498bf1,{unitId:_0x28145e,subUnitId:_0x28e1bf,pivotTableId:_0x2a4ffb,pivotTableConfig:_0x21548f,collectionConfig:_0x31b23b}=_0x3b10e2,_0x264e7c={'unitId':_0x28145e,'subUnitId':_0x28e1bf,'oldSubUnitId':_0x28e1bf,'pivotTableId':_0x2a4ffb,'pivotTableConfig':_0x21548f,'collectionConfig':_0x31b23b};this[_0x380fee(0x3f9)][_0x380fee(0x430)](_t['id'],_0x264e7c,{'onlyLocal':!0x0});}[_0x498bf1(0x4a2)](_0x35b442,_0x4f32af,_0x442faf,_0x1fee1d,_0x583af7,_0xb063ef,_0x4f2320,_0x4a9c04=!0x1){const _0x304f2a=_0x498bf1;var _0xdd98ad;this[_0x304f2a(0x3f9)][_0x304f2a(0x430)](ot['id'],{'single':{'unitId':_0x35b442,'subUnitId':_0x4f32af,'type':_0x442faf,'pivotTableId':_0x1fee1d,'view':_0x583af7,'pivotConfig':_0xb063ef},'collectionConfig':{[_0x35b442]:_0x4f2320}},{'onlyLocal':!0x0});const _0x2736cb=!!((_0xdd98ad=this[_0x304f2a(0x23f)](_0x1fee1d))!=null&&_0xdd98ad[_0x304f2a(0x221)]()),_0x187eb3=this[_0x304f2a(0x467)](_0x35b442,_0x4f32af,_0x1fee1d);_0x187eb3&&this[_0x304f2a(0x491)]({'view':_0x583af7,'pivotTableId':_0x1fee1d,'textInfo':this[_0x304f2a(0x3c1)](),'isEmpty':_0x2736cb,'targetCellInfo':_0x187eb3[_0x304f2a(0x235)]},_0x4a9c04);}[_0x498bf1(0x491)](_0x5bbe8e,_0x1698d3){const _0x37b050=_0x498bf1,{targetCellInfo:_0x5e76ab,pivotTableId:_0x47c8d4}=_0x5bbe8e,{unitId:_0x9c63db,subUnitId:_0x5b6680}=_0x5e76ab,_0x3d5c95=this[_0x37b050(0x1e1)](_0x9c63db,_0x5b6680),_0x5d0c97=_0x3d5c95[_0x37b050(0x3b4)](_0x47c8d4);let _0x3e07cd,_0x1fd19b;_0x5d0c97&&(_0x3e07cd=_0x5d0c97[_0x37b050(0x2b6)],_0x1fd19b=_0x5d0c97[_0x37b050(0x3a7)]);const {rangesCache:_0x31fc78,matrix:_0x26dd3d}=Xo(_0x5bbe8e);_0x3d5c95[_0x37b050(0x1ed)](_0x47c8d4,{'rangeCache':_0x31fc78,'matrix':_0x26dd3d,'oldMatrix':_0x1fd19b,'oldRangeCache':_0x3e07cd}),_0x1698d3||this['_viewData$'][_0x37b050(0x3c6)]({'unitId':_0x9c63db,'subUnitId':_0x5b6680,'pivotTableId':_0x47c8d4});}[_0x498bf1(0x41d)](_0x3ca5c7,_0x4324e9,_0x3e16ff,_0xd6bb1b,_0x46b1e5){const _0x4a58a=_0x498bf1;this[_0x4a58a(0x2df)](_0x3ca5c7,_0x4324e9,_0x3e16ff,_0x46b1e5),this['_updatePivotTableInstanceCache'](_0x3e16ff,_0xd6bb1b);}[_0x498bf1(0x38c)](_0x519cf9,_0x35e191,_0x5b4741){const _0x37cd26=_0x498bf1,_0x9aab65=this[_0x37cd26(0x2c3)](_0x519cf9);_0x9aab65[_0x37cd26(0x3a9)](_0x5b4741)[_0x37cd26(0x421)](_0x38c775=>{const _0x26f99f=_0x37cd26;_0x9aab65[_0x26f99f(0x4a3)](_0x38c775);}),this['removeCollections'](_0x519cf9,_0x5b4741),this[_0x37cd26(0x372)](_0x519cf9,_0x35e191,_0x5b4741),this['_deletePivotTableInstanceCache'](_0x5b4741);}[_0x498bf1(0x209)](_0x209e55,_0x225e69,_0x3f31e2,_0x3b70fa){const _0x2e659a=_0x498bf1;this[_0x2e659a(0x2df)](_0x209e55,_0x225e69,_0x3f31e2,_0x3b70fa);}[_0x498bf1(0x467)](_0x2356e8,_0x289c00,_0x258493){const _0x1043be=_0x498bf1;var _0x34a7b5,_0x2df521;const _0x29f6ea=(_0x2df521=(_0x34a7b5=this[_0x1043be(0x273)][_0x1043be(0x3b4)](_0x2356e8))==null?void 0x0:_0x34a7b5[_0x1043be(0x3b4)](_0x289c00))==null?void 0x0:_0x2df521[_0x1043be(0x3b4)](_0x258493);if(_0x29f6ea)return _0x29f6ea;}[_0x498bf1(0x268)](_0x357fe1,_0x15eb97,_0x55abd8){const _0x2398d3=_0x498bf1;var _0x19a82f,_0x478c70;const _0x5727a8=(_0x478c70=(_0x19a82f=this[_0x2398d3(0x273)]['get'](_0x357fe1))==null?void 0x0:_0x19a82f[_0x2398d3(0x3b4)](_0x15eb97))==null?void 0x0:_0x478c70[_0x2398d3(0x3b4)](_0x55abd8);if(_0x5727a8)return _0x5727a8[_0x2398d3(0x345)];}['getPivotTableInstance'](_0x4ae001){const _0x25c029=_0x498bf1;return this['_pivotTableInstanceCache'][_0x25c029(0x3b4)](_0x4ae001);}['deleteUnitId'](_0x8a3546){const _0x292927=_0x498bf1;this[_0x292927(0x273)][_0x292927(0x2d9)](_0x8a3546);const _0x208886=this[_0x292927(0x2c4)][_0x292927(0x3b4)](_0x8a3546);_0x208886&&(_0x208886[_0x292927(0x250)](),this['_dataFieldManagerCollection']['delete'](_0x8a3546)),this[_0x292927(0x399)][_0x292927(0x2d9)](_0x8a3546),this[_0x292927(0x46b)][_0x292927(0x421)](_0x2cb163=>{const _0x487ed0=_0x292927;_0x2cb163[_0x487ed0(0x311)](_0x8a3546);});}['addCollectionByJSON'](_0x3f3f3f,_0x2b38aa,_0x509178,_0x10d7f9){const _0x392644=_0x498bf1;return this['getDataFieldManager'](_0x509178[_0x392644(0x39f)])[_0x392644(0x338)](_0x3f3f3f,_0x2b38aa,_0x509178,_0x10d7f9);}[_0x498bf1(0x457)](_0x3ef052){const _0x5be72c=_0x498bf1;return this[_0x5be72c(0x2c3)](_0x3ef052['unitId'])[_0x5be72c(0x457)](_0x3ef052);}[_0x498bf1(0x297)](_0x2c34ee,_0x4b735f,_0x5a939b){const _0x18602f=_0x498bf1;this['getDataFieldManager'](_0x5a939b[_0x18602f(0x39f)])['refreshData'](_0x2c34ee,_0x4b735f,_0x5a939b);}[_0x498bf1(0x20e)](_0x12a863,_0x1236ca){const _0x3b282c=_0x498bf1;this[_0x3b282c(0x2c3)](_0x12a863)[_0x3b282c(0x4a3)](_0x1236ca);}['removeCollections'](_0x18bf95,_0x4ea046){const _0x29406e=_0x498bf1;this[_0x29406e(0x2c3)](_0x18bf95)[_0x29406e(0x1f0)](_0x4ea046);}[_0x498bf1(0x1a4)](_0x149d94,_0x11de7b){const _0x67cae7=_0x498bf1;var _0x582ec6;return(_0x582ec6=this[_0x67cae7(0x273)]['get'](_0x149d94))==null?void 0x0:_0x582ec6[_0x67cae7(0x3b4)](_0x11de7b);}[_0x498bf1(0x3ab)](_0x1c3172){const _0x759ad=_0x498bf1;for(const [_0x2916ce,_0x504197]of this[_0x759ad(0x273)][_0x759ad(0x43b)]())for(const [_0x1afbeb,_0x49a4a1]of _0x504197['entries']())if(_0x49a4a1[_0x759ad(0x1cc)](_0x1c3172))return{'unitId':_0x2916ce,'subUnitId':_0x1afbeb};return null;}[_0x498bf1(0x29b)](_0x2ddef2,_0x5c02ce,_0x18cce7,_0x40e29d){const _0x51f3ac=_0x498bf1,_0x1f5615=this[_0x51f3ac(0x1e1)](_0x2ddef2,_0x5c02ce);_0x40e29d?_0x1f5615[_0x51f3ac(0x1ed)](_0x18cce7,_0x40e29d):_0x1f5615[_0x51f3ac(0x2d9)](_0x18cce7),this[_0x51f3ac(0x348)]['next']({'unitId':_0x2ddef2,'subUnitId':_0x5c02ce,'pivotTableId':_0x18cce7});}[_0x498bf1(0x250)](){const _0x20a347=_0x498bf1;super[_0x20a347(0x250)]();}[_0x498bf1(0x2e9)](_0x2f3582,_0x4eec03,_0x584c14){const _0x5cb631=_0x498bf1;var _0x4d6f3b,_0x22f25b;const _0x3d44b8=(_0x22f25b=(_0x4d6f3b=this[_0x5cb631(0x399)][_0x5cb631(0x3b4)](_0x2f3582))==null?void 0x0:_0x4d6f3b['get'](_0x4eec03))==null?void 0x0:_0x22f25b[_0x5cb631(0x3b4)](_0x584c14);return _0x3d44b8||null;}[_0x498bf1(0x295)](_0x7a624a){const _0x4199ce=_0x498bf1;this[_0x4199ce(0x359)](_0x7a624a);}[_0x498bf1(0x359)](_0x3ceff5){const _0x36eae8=_0x498bf1,{token:_0x8be067,unitId:_0x16926a,subUnitId:_0x480988}=_0x3ceff5,_0x5a2263=_0x16926a+'-'+_0x480988+'-'+_0x8be067;this[_0x36eae8(0x3e0)]['get'](_0x5a2263)&&clearTimeout(this[_0x36eae8(0x3e0)][_0x36eae8(0x3b4)](_0x5a2263));const _0x5bf099=setTimeout(()=>{const _0x365df5=_0x36eae8;this[_0x365df5(0x49f)](_0x3ceff5),this['_queryingMap']['delete'](_0x5a2263);},Wo);this[_0x36eae8(0x3e0)][_0x36eae8(0x1ed)](_0x5a2263,_0x5bf099);}['queryDirtyPivotTable'](_0x5d6524){const _0x51b09a=_0x498bf1,{unitId:_0x1fb98e,subUnitId:_0x7e3be7,token:_0x1b5506,type:_0x2421ba,pivotConfig:_0x55b6dd}=_0x5d6524,_0x432ecf=this['getPivotTableInstance'](_0x1b5506),_0x2c5bf3=_0x432ecf==null?void 0x0:_0x432ecf['query'](),_0xcc7e82=_0x55b6dd!=null?_0x55b6dd:this[_0x51b09a(0x467)](_0x1fb98e,_0x7e3be7,_0x1b5506);_0xcc7e82&&(_0xcc7e82['isEmpty']=!!(_0x432ecf!=null&&_0x432ecf['isEmpty']())),(_0x2c5bf3||_0x2421ba===j[_0x51b09a(0x2f1)])&&this[_0x51b09a(0x4a2)](_0x1fb98e,_0x7e3be7,_0x2421ba,_0x1b5506,_0x2c5bf3,_0xcc7e82,this[_0x51b09a(0x2c3)](_0x1fb98e)[_0x51b09a(0x2c7)]());}['toJSON'](_0x47caee){const _0x678320=_0x498bf1,_0x3cae0b={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x678320(0x2c3)](_0x47caee)&&(_0x3cae0b[_0x678320(0x20a)][_0x47caee]=this[_0x678320(0x2c3)](_0x47caee)[_0x678320(0x2c7)]()),this['_model'][_0x678320(0x3b4)](_0x47caee)){_0x3cae0b['pivotTableConfigs'][_0x47caee]={};const _0x2684a2=this['_model'][_0x678320(0x3b4)](_0x47caee);_0x2684a2!=null&&_0x2684a2['size']&&[..._0x2684a2[_0x678320(0x418)]()]['forEach'](_0x5191ec=>{const _0x448da6=_0x678320,_0x18e387=_0x2684a2['get'](_0x5191ec);_0x18e387!=null&&_0x18e387['size']&&(_0x3cae0b[_0x448da6(0x3cc)][_0x47caee][_0x5191ec]={},[..._0x18e387[_0x448da6(0x418)]()][_0x448da6(0x421)](_0x4d1866=>{const _0xe15243=_0x448da6,_0xcdc97f=_0x18e387[_0xe15243(0x3b4)](_0x4d1866);_0xcdc97f&&(_0x3cae0b[_0xe15243(0x3cc)][_0x47caee][_0x5191ec][_0x4d1866]=_0xcdc97f);}));});}return _0x3cae0b;}[_0x498bf1(0x2cd)](_0x597218){const _0x5b473c=_0x498bf1;var _0x111587;const {dataFieldManagerConfig:_0x31a0bb,pivotTableConfigs:_0x3bd51e}=_0x597218;_0x31a0bb&&Object[_0x5b473c(0x418)](_0x31a0bb)[_0x5b473c(0x421)](_0x3afbcb=>{const _0x519f48=_0x5b473c;this['getDataFieldManager'](_0x3afbcb)[_0x519f48(0x2cd)](_0x31a0bb[_0x3afbcb]);});const _0x449974=[];if(_0x3bd51e){const _0xdf768b=(_0x111587=this[_0x5b473c(0x1bc)][_0x5b473c(0x3b4)](v[_0x5b473c(0x22e)])[_0x5b473c(0x2fb)](ue[_0x5b473c(0x31f)]))!=null?_0x111587:{},{ls:_0x29b5b9,pbk:_0xaf50ce}=_0xdf768b,_0x2a5b2c=bt(It,_0x29b5b9,_0xaf50ce)['count'];Object[_0x5b473c(0x418)](_0x3bd51e)['forEach'](_0xc23570=>{const _0x2374b6=_0x5b473c;let _0x14b19d=0x0;const _0x5b0057=_0x3bd51e[_0xc23570];Object[_0x2374b6(0x418)](_0x5b0057)[_0x2374b6(0x421)](_0x50c18a=>{const _0x4188ef=_0x2374b6,_0x5ef3c7=_0x5b0057[_0x50c18a];Object[_0x4188ef(0x418)](_0x5ef3c7)[_0x4188ef(0x421)](_0x5427f0=>{const _0x1441de=_0x4188ef,_0x2ae7cf=_0x5ef3c7[_0x5427f0];if(_0x2ae7cf){if(_0x14b19d>=_0x2a5b2c)return;_0x14b19d++;const _0x89a139=this['getDataFieldManager'](_0xc23570),_0x1662d9=_0x89a139[_0x1441de(0x2de)][_0x5427f0],_0x4981c9=_0x1662d9[_0x1441de(0x47a)]();let _0x93e874=0x0;const _0x3c38f6=[];for(const _0x5e012c of _0x4981c9){const _0x2bbe05=_0x1662d9[_0x1441de(0x3cb)](_0x5e012c);if(p['isBaseGroupField'](_0x2bbe05)){const _0x30f7db=_0x2bbe05[_0x1441de(0x39e)](),_0x3e1d8e=_0x1662d9[_0x1441de(0x3cb)](_0x30f7db);_0x3e1d8e&&_0x3c38f6[_0x1441de(0x2a1)]([_0x2bbe05,_0x3e1d8e]);continue;}_0x89a139[_0x1441de(0x31d)](_0x5e012c,_0x2ae7cf['sourceRangeInfo'],_0x93e874),_0x93e874++;}_0x3c38f6[_0x1441de(0x421)](([_0x4920f4,_0x5d9017])=>{const _0x274840=_0x1441de;_0x4920f4[_0x274840(0x445)](_0x5d9017);});const _0x4ba40a=new p[(_0x1441de(0x4a1))](_0x1662d9);_0x4ba40a[_0x1441de(0x2cd)](_0x2ae7cf[_0x1441de(0x345)]),this[_0x1441de(0x41d)](_0xc23570,_0x50c18a,_0x5427f0,_0x4ba40a,_0x2ae7cf);const _0x41cece=_0x4ba40a[_0x1441de(0x1f8)]();_0x449974[_0x1441de(0x2a1)]({'unitId':_0xc23570,'subUnitId':_0x50c18a,'pivotTableId':_0x5427f0,'view':_0x41cece['toJSON'](),'pivotConfig':_0x2ae7cf,'type':j[_0x1441de(0x2bb)]});const _0x56437a=!!_0x4ba40a['isEmpty'](),_0x16b98f={'view':_0x41cece,'pivotTableId':_0x5427f0,'textInfo':this['getTextInfo'](),'isEmpty':_0x56437a,'targetCellInfo':_0x2ae7cf[_0x1441de(0x235)]};this['updateViewData'](_0x16b98f,!0x1);}});});});}_0x31a0bb&&Object['keys'](_0x31a0bb)[_0x5b473c(0x421)](_0x2967b7=>{const _0x134dae=_0x5b473c,_0x643173=this[_0x134dae(0x2c3)](_0x2967b7);this['_fieldsCollectionChange$'][_0x134dae(0x3c6)](_0x643173[_0x134dae(0x2de)]);}),this[_0x5b473c(0x3f9)]['executeCommand'](ot['id'],{'batch':_0x449974,'collectionConfig':_0x31a0bb},{'onlyLocal':!0x0});}[_0x498bf1(0x208)](){const _0x115bfc=_0x498bf1;this[_0x115bfc(0x22a)](this[_0x115bfc(0x255)][_0x115bfc(0x304)]({'toJson':_0x17c9b3=>JSON[_0x115bfc(0x40b)](this[_0x115bfc(0x2c7)](_0x17c9b3)),'parseJson':_0x19339b=>{if(!_0x19339b)return{};try{return JSON['parse'](_0x19339b);}catch{return{};}},'businesses':[v[_0x115bfc(0x343)][_0x115bfc(0x3b3)]],'pluginName':Ct,'onLoad':(_0x383e2b,_0x19f7f7)=>{const _0x5e6e96=_0x115bfc;this[_0x5e6e96(0x2cd)](_0x19f7f7);},'onUnLoad':_0x587ff6=>{this['deleteUnitId'](_0x587ff6);}}));}},exports[_0x498bf1(0x2b0)]=en([ye(0x0,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),ye(0x1,v[_0x498bf1(0x2a7)]),ye(0x2,v[_0x498bf1(0x38a)](v['LifecycleService'])),ye(0x3,v['IConfigService']),ye(0x4,v[_0x498bf1(0x2e1)]),ye(0x5,v['Inject'](v[_0x498bf1(0x4a0)]))],exports[_0x498bf1(0x2b0)]);const tn={0x0:{0x0:{'v':_0x498bf1(0x2eb),'s':X}},0x2:{0x1:{'v':'','s':X},0x2:{'v':'','s':X},0x3:{'v':_0x498bf1(0x44a),'s':X},0x4:{'v':'','s':X},0x5:{'v':'','s':X}},0x3:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x4:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x5:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x6:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x7:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x8:{0x0:{'v':_0x498bf1(0x1c0),'s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':_0x498bf1(0x3dc),'s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x9:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xa:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xb:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xc:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xd:{0x0:{'v':'','s':X},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}}},Tt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},zt=(_0x391b44,_0x4fdc86)=>{const _0x213312=_0x498bf1,_0x1d7131=new v[(_0x213312(0x2fa))](),_0x38f754=new v['ObjectMatrix'](tn),{row:_0x38b21d,col:_0x2a3c46}=_0x4fdc86;_0x38f754[_0x213312(0x36a)]((_0x243a9f,_0x2175b7,_0x23cce4)=>{const _0x24413b=_0x213312;let _0x5d2f2b='';_0x23cce4['v']===_0x24413b(0x2eb)?_0x5d2f2b=_0x391b44['filter']:_0x23cce4['v']===_0x24413b(0x1c0)?_0x5d2f2b=_0x391b44[_0x24413b(0x1c0)]:_0x23cce4['v']===_0x24413b(0x44a)?_0x5d2f2b=_0x391b44[_0x24413b(0x44a)]:_0x23cce4['v']===_0x24413b(0x3dc)&&(_0x5d2f2b=_0x391b44[_0x24413b(0x3dc)]),_0x1d7131[_0x24413b(0x2a3)](_0x243a9f+_0x38b21d,_0x2175b7+_0x2a3c46,{..._0x23cce4,'v':_0x5d2f2b});});const _0x11f16f=v[_0x213312(0x4a8)]['deepClone'](Tt);return Object[_0x213312(0x418)](Tt)[_0x213312(0x421)](_0x27f8fd=>{const _0x4833de=_0x213312;_0x11f16f[_0x27f8fd]=Tt[_0x27f8fd][_0x4833de(0x241)](_0x4c32ef=>({..._0x4c32ef,'startRow':_0x4c32ef[_0x4833de(0x42a)]+_0x38b21d,'endRow':_0x4c32ef[_0x4833de(0x34e)]+_0x38b21d,'startColumn':_0x4c32ef[_0x4833de(0x368)]+_0x2a3c46,'endColumn':_0x4c32ef[_0x4833de(0x242)]+_0x2a3c46}));}),{'matrixCache':_0x1d7131,'rangesCache':_0x11f16f};};function on(_0x1110ec,_0x17cc46){const _0xb6a035=_0x498bf1;let _0x1c17d4='';const _0x24e023=this['getTextInfo']();switch(_0x17cc46){case p[_0xb6a035(0x34a)][_0xb6a035(0x2a9)]:_0x1c17d4=_0x24e023[_0xb6a035(0x3b9)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x36d)]:_0x1c17d4=_0x24e023['sheets-pivot.countName']+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x361)]:_0x1c17d4=_0x24e023[_0xb6a035(0x27d)]+_0x1110ec;break;case p[_0xb6a035(0x34a)]['max']:_0x1c17d4=_0x24e023[_0xb6a035(0x46a)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x1c2)]:_0x1c17d4=_0x24e023[_0xb6a035(0x3ba)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x2db)]:_0x1c17d4=_0x24e023[_0xb6a035(0x26b)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x3a0)]:_0x1c17d4=_0x24e023[_0xb6a035(0x47c)]+_0x1110ec;break;case p['PivotSubtotalTypeEnum'][_0xb6a035(0x33a)]:_0x1c17d4=_0x24e023[_0xb6a035(0x42c)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x405)]:_0x1c17d4=_0x24e023[_0xb6a035(0x466)]+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x3f3)]:_0x1c17d4=_0x24e023['sheets-pivot.varName']+_0x1110ec;break;case p[_0xb6a035(0x34a)][_0xb6a035(0x44f)]:_0x1c17d4=_0x24e023[_0xb6a035(0x210)]+_0x1110ec;break;default:_0x1c17d4=_0x1110ec;break;}return _0x1c17d4;}function Yt(_0x510050,_0x59536e,_0x3ba51b,_0x248ff3,_0x3c8b27){const _0x21f1a4=_0x498bf1;var _0x35809a,_0x5a9858,_0x5c31e8,_0x542137,_0x28c763;const _0x35151a=v[_0x21f1a4(0x1b9)](_0x510050,_0x59536e),{rangesInfo:_0x13667e,areaInfo:_0x206a00,headerMap:_0x310231}=_0x3c8b27;if(!_0x13667e||!_0x206a00||!_0x310231)return;const _0x39bc2b=Object['keys'](_0x13667e)['find'](_0x537da1=>_0x13667e[_0x537da1][_0x21f1a4(0x2a6)](_0x23bd25=>v[_0x21f1a4(0x2f8)][_0x21f1a4(0x251)](_0x23bd25,_0x35151a))),_0x29c3d8=_0x206a00;let _0x3010e4,_0x16269e,_0x18489b;if(_0x39bc2b===_0x21f1a4(0x3d1))_0x3010e4=(_0x35809a=_0x29c3d8==null?void 0x0:_0x29c3d8['rowInfo'])==null?void 0x0:_0x35809a[_0x510050],_0x16269e=(_0x5a9858=_0x310231==null?void 0x0:_0x310231[_0x21f1a4(0x1a5)])==null?void 0x0:_0x5a9858[_0x59536e],_0x18489b=_0x16269e==null?void 0x0:_0x16269e['tableFieldId'];else{if(_0x39bc2b==='colRanges')_0x3010e4=(_0x5c31e8=_0x29c3d8==null?void 0x0:_0x29c3d8[_0x21f1a4(0x38d)])==null?void 0x0:_0x5c31e8[_0x59536e],_0x16269e=(_0x542137=_0x310231['colHeaderMap'])==null?void 0x0:_0x542137[_0x510050+0x1+_0x59536e-_0x13667e[_0x21f1a4(0x3a5)][0x0][_0x21f1a4(0x368)]],_0x18489b=_0x16269e==null?void 0x0:_0x16269e[_0x21f1a4(0x3d9)];else{if(_0x39bc2b==='cornerRanges')_0x3010e4=(_0x28c763=_0x29c3d8==null?void 0x0:_0x29c3d8['cornerInfo'])==null?void 0x0:_0x28c763[_0x59536e],_0x18489b=_0x3010e4==null?void 0x0:_0x3010e4[_0x21f1a4(0x3d9)];else{if(_0x39bc2b===_0x21f1a4(0x3f7)){const _0xac787f=_0x3ba51b==null?void 0x0:_0x3ba51b['fi'];_0xac787f!==void 0x0&&(_0x18489b=_0x248ff3[_0x21f1a4(0x44c)](_0xac787f));}}}}return{'filterId':_0x18489b,'info':_0x3010e4,'data':_0x3ba51b,'headerInfo':_0x16269e};}function Qt(_0x232fdc,_0x4d0f3f,_0x3e33ec){const _0x324407=_0x498bf1,_0xc6d55c=_0x232fdc['dataFieldsCollection'],_0x543ae1=_0xc6d55c[_0x324407(0x47a)](),_0x4a8cbf=new Set();_0x232fdc['iterateField'](_0x3c204a=>{const _0x59e0fa=_0x324407;_0x4a8cbf[_0x59e0fa(0x40d)](_0x3c204a[_0x59e0fa(0x1bb)]);});const _0x5d9179=_0x543ae1[_0x324407(0x241)](_0x4a73f1=>{const _0x53261e=_0x324407,_0x27a9bd=_0xc6d55c[_0x53261e(0x3cb)](_0x4a73f1);return{'checked':_0x4a8cbf['has'](_0x4a73f1),'dataFieldId':_0x27a9bd['id'],'id':_0x27a9bd['id'],'name':_0xc6d55c[_0x53261e(0x320)](_0x27a9bd['id']),'type':_0x27a9bd['getFieldDataType'](),'pivotTableId':_0x4d0f3f};}),_0x4772d1=[];_0x232fdc[_0x324407(0x46f)](p[_0x324407(0x35b)][_0x324407(0x4af)],_0x365410=>{const _0x2832b5=_0x324407;_0x4772d1[_0x2832b5(0x2a1)]({'dataFieldId':_0x365410[_0x2832b5(0x1bb)],'tableFieldId':_0x365410[_0x2832b5(0x263)](),'displayName':_0x365410[_0x2832b5(0x320)]()});});const _0x133193=[];_0x232fdc['iterateFieldByArea'](p[_0x324407(0x35b)][_0x324407(0x3b2)],_0x1df44a=>{const _0x19e844=_0x324407;_0x133193['push']({'dataFieldId':_0x1df44a[_0x19e844(0x1bb)],'tableFieldId':_0x1df44a[_0x19e844(0x263)](),'displayName':_0x1df44a[_0x19e844(0x320)]()});});const _0x49e00e=[];if(_0x232fdc[_0x324407(0x46f)](p[_0x324407(0x35b)][_0x324407(0x456)],_0x519417=>{const _0x40679a=_0x324407;_0x49e00e['push']({'dataFieldId':_0x519417[_0x40679a(0x1bb)],'tableFieldId':_0x519417[_0x40679a(0x263)](),'displayName':_0x519417[_0x40679a(0x320)](),'format':_0x519417[_0x40679a(0x34d)](),'subTotalType':_0x519417[_0x40679a(0x3bc)]()});}),_0x49e00e[_0x324407(0x492)]>0x1){const _0x3735a5=_0x232fdc[_0x324407(0x2f7)]();(_0x232fdc[_0x324407(0x1d2)]()?_0x133193:_0x4772d1)[_0x324407(0x1aa)](_0x3735a5,0x0,{'dataFieldId':'','tableFieldId':_0x324407(0x365),'displayName':_0x324407(0x3ea)});}const _0x4d083f=[];_0x232fdc[_0x324407(0x46f)](p['PivotTableFiledAreaEnum'][_0x324407(0x1a9)],_0x2b18ba=>{const _0x31ab9c=_0x324407;_0x4d083f[_0x31ab9c(0x2a1)]({'dataFieldId':_0x2b18ba['dataFieldId'],'tableFieldId':_0x2b18ba['getId'](),'displayName':_0x2b18ba[_0x31ab9c(0x320)]()});});const _0x49f358=_0x3e33ec[_0x324407(0x2ff)];return{'sourceList':_0x5d9179,'sourceRange':_0x49f358,'rowFields':_0x4772d1,'columnFields':_0x133193,'valueFields':_0x49e00e,'filterFields':_0x4d083f,'positionInfo':_0x3e33ec[_0x324407(0x235)]};}function Dt(_0x109b7f,_0x53eea9,_0x2bde4b='',_0xe20561={}){const _0x5825c5=_0x498bf1,_0x23bb5f=_0x109b7f[_0x5825c5(0x3b4)](v[_0x5825c5(0x24c)]);for(const _0x172899 in _0x53eea9)if(Object['prototype'][_0x5825c5(0x3e3)][_0x5825c5(0x25c)](_0x53eea9,_0x172899)){const _0x5ac65b=_0x2bde4b?_0x2bde4b+'.'+_0x172899:_0x172899;typeof _0x53eea9[_0x172899]==_0x5825c5(0x3ad)&&_0x53eea9[_0x172899]!==null&&!Array[_0x5825c5(0x26a)](_0x53eea9[_0x172899])?Dt(_0x109b7f,_0x53eea9[_0x172899],_0x5ac65b,_0xe20561):_0xe20561[_0x5ac65b]=_0x23bb5f['t'](_0x5ac65b);}return _0xe20561;}const nt=_0x3f08d7=>{const _0x12027f=_0x498bf1;if(!_0x3f08d7)return[];const {rowRanges:_0x129527,colRanges:_0x5492ce,cornerRanges:_0x1abc7c,dataRanges:_0x186300,pageRanges:_0x58ba3c}=_0x3f08d7,_0x1efc83=[..._0x5492ce,..._0x129527,..._0x186300,..._0x1abc7c][_0x12027f(0x2eb)](_0x24c725=>_0x24c725[_0x12027f(0x42a)]>=0x0&&_0x24c725[_0x12027f(0x368)]>=0x0&&_0x24c725[_0x12027f(0x34e)]>=0x0&&_0x24c725['endColumn']>=0x0);let _0x5de098=Number[_0x12027f(0x21b)],_0x4071a0=Number[_0x12027f(0x227)],_0x6bbbae=Number[_0x12027f(0x21b)],_0x3cb201=Number['MIN_SAFE_INTEGER'];for(let _0x72d3e0=0x0;_0x72d3e0<_0x1efc83[_0x12027f(0x492)];_0x72d3e0++)_0x5de098=Math[_0x12027f(0x1c2)](_0x5de098,_0x1efc83[_0x72d3e0][_0x12027f(0x42a)]),_0x4071a0=Math[_0x12027f(0x327)](_0x4071a0,_0x1efc83[_0x72d3e0][_0x12027f(0x34e)]),_0x6bbbae=Math[_0x12027f(0x1c2)](_0x6bbbae,_0x1efc83[_0x72d3e0][_0x12027f(0x368)]),_0x3cb201=Math['max'](_0x3cb201,_0x1efc83[_0x72d3e0][_0x12027f(0x242)]);return[..._0x58ba3c,{'startRow':_0x5de098,'endRow':_0x4071a0,'startColumn':_0x6bbbae,'endColumn':_0x3cb201}];};function nn(_0x555bce,_0x5a0d4b){const _0x5cac71=_0x498bf1,_0x46e3df=_0x5a0d4b[_0x5cac71(0x483)][_0x5cac71(0x2e2)],{pivotTableId:_0x566765,unitId:_0x18a7ee,subUnitId:_0x4c269d}=_0x5a0d4b;if(!_0x46e3df)return;const _0x2ffff4=_0x555bce['get'](exports[_0x5cac71(0x2b0)]),_0x1a8744=_0x2ffff4['getPivotTableInstance'](_0x566765),_0x661c62=_0x2ffff4[_0x5cac71(0x467)](_0x18a7ee,_0x4c269d,_0x566765);if(!_0x1a8744||!_0x661c62)return;const _0x18f11a=_0x1a8744[_0x5cac71(0x1b2)](_0x46e3df['tuple']);if(!(_0x18f11a!=null&&_0x18f11a[_0x5cac71(0x492)]))return;const _0x10363d=_0x661c62['sourceRangeInfo'],{unitId:_0xf2eae5,subUnitId:_0x2b441a,range:_0x972bba}=_0x10363d;let _0x4d5398=0x0;const _0x5be2e5=_0x1a8744['dataFieldsCollection'][_0x5cac71(0x47a)]()['reduce']((_0xbc5528,_0x4af61c)=>{const _0x52a58d=_0x5cac71;var _0x422cb3;const _0x2e6083=(_0x422cb3=_0x1a8744[_0x52a58d(0x257)](_0x4af61c))==null?void 0x0:_0x422cb3[_0x52a58d(0x2bf)]();return _0x2e6083&&(_0xbc5528[String(_0x4d5398)]=_0x2e6083),_0x4d5398++,_0xbc5528;},{});return{'indexes':_0x18f11a,'range':_0x972bba,'sourceUnitId':_0xf2eae5,'sourceSubUnitId':_0x2b441a,'formatMap':_0x5be2e5};}function Ut(_0x2c04fc,_0x2e1654){const _0x27113b=_0x498bf1;if(!_0x2c04fc||!_0x2e1654)return!0x0;const _0x2cf94e=ue[_0x27113b(0x433)](Ht,Kt),_0x537ca2=new Function(_0x27113b(0x280)+_0x2cf94e)()(_0x2c04fc,_0x2e1654)[_0x27113b(0x310)],_0x3d7bdd=ue[_0x27113b(0x3c4)](_0x537ca2,'sf',$t);return!((_0x537ca2==null?void 0x0:_0x537ca2['rt'])===ue['ReleaseType'][_0x27113b(0x25d)]&&!_0x3d7bdd);}function bt(_0x5c0df7,_0xc6fd5b,_0x4962ac){const _0x4f6eeb=_0x498bf1,_0x25418c={'count':_0x5c0df7,'timeValid':!0x1};if(!_0xc6fd5b||!_0x4962ac)return _0x25418c;const _0xeb9a32=ue[_0x4f6eeb(0x433)](Ht,Kt),_0xcd837f=new Function(_0x4f6eeb(0x280)+_0xeb9a32)()(_0xc6fd5b,_0x4962ac);if(_0xcd837f!=null&&_0xcd837f[_0x4f6eeb(0x333)]){const _0x1fa2a7=_0xcd837f[_0x4f6eeb(0x310)],_0x2ae5bb=ue[_0x4f6eeb(0x3c4)](_0x1fa2a7,'sf',$t);return{'count':ue[_0x4f6eeb(0x374)](_0x1fa2a7,_0x2ae5bb,_0x4f6eeb(0x2c0),_0x5c0df7,_0x5c0df7,0x0),'timeValid':_0x2ae5bb};}return _0x25418c;}function Et(_0x4b449f,_0x5141b8,_0x2495bc,_0x4fc2b4){const _0x459a7a=_0x498bf1,_0xbddc5c={'subUnitId':_0x2495bc,'unitId':_0x5141b8,'cellValue':V[_0x459a7a(0x3b6)](_0x4fc2b4)},_0x311037=V[_0x459a7a(0x3c8)](_0x4b449f,_0xbddc5c);let _0x1df5e1=!0x1;return new v[(_0x459a7a(0x2fa))](_0x311037[_0x459a7a(0x337)])[_0x459a7a(0x36a)]((_0x360e15,_0x53e50e,_0x4d4604)=>{const _0x3e0a88=_0x459a7a;if(!_0x1df5e1&&_0x4d4604&&(_0x4d4604[_0x3e0a88(0x3da)]||_0x4d4604['f']||_0x4d4604['p']||_0x4d4604['s']||_0x4d4604['si']||_0x4d4604['t']||_0x4d4604['v']))return _0x1df5e1=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':V[_0x459a7a(0x2e5)]['id'],'params':_0x311037},'setRangeValueRedoMutation':{'id':V[_0x459a7a(0x2e5)]['id'],'params':_0xbddc5c},'shouldClear':_0x1df5e1};}function Xt(_0x25b6e8){const {row:_0xc26aad,col:_0x4cec60}=_0x25b6e8,_0x1f9c91={'startRow':_0xc26aad,'endRow':_0xc26aad,'startColumn':_0x4cec60,'endColumn':_0x4cec60},_0x77188a={'startRow':_0xc26aad+0x2,'endRow':_0xc26aad+0xe,'startColumn':_0x4cec60,'endColumn':_0x4cec60+0x6};return[_0x1f9c91,_0x77188a];}function an(_0xbde95,_0x34b088,_0x1c2133){const _0x32ab12=_0x498bf1,{cornerView:_0x30d596,rowView:_0x6ac965,colView:_0x499551,pageView:_0x1f94e5}=_0xbde95,{row:_0x3f04ac,col:_0x543404}=_0x34b088;if(_0x1c2133)return{'rowCount':Go+_0x3f04ac,'colCount':$o+_0x543404};const _0x2b1858=_0x1f94e5[_0x32ab12(0x32e)]>-0x1?_0x1f94e5['lastRow']+0x1:0x0,_0xf615d0=_0x1f94e5[_0x32ab12(0x22c)]>-0x1?_0x1f94e5[_0x32ab12(0x22c)]:0x0,_0x37aa4d=_0x3f04ac+_0x2b1858+(_0x2b1858?0x1:0x0)+_0x30d596[_0x32ab12(0x2d5)]+_0x6ac965[_0x32ab12(0x2d5)],_0x599124=_0x543404+_0xf615d0,_0x2dd19c=_0x543404+_0x30d596[_0x32ab12(0x35d)]+_0x499551[_0x32ab12(0x35d)],_0x472080=Math['max'](_0x599124,_0x2dd19c);return{'rowCount':_0x37aa4d,'colCount':_0x472080};}function le(_0x5f0859,_0x100f74,_0x1a1cb6,_0x1fa8de){const _0x126d38=_0x498bf1,{row:_0xa8dfbe,col:_0x436cf9,unitId:_0x3f46c1,subUnitId:_0x57dd12}=_0x1a1cb6,_0x3b2739=an(_0x100f74,{'row':_0xa8dfbe,'col':_0x436cf9},_0x1fa8de),_0x57acdc=_0x5f0859[_0x126d38(0x3b4)](v[_0x126d38(0x2a7)]),_0x51a17c=V[_0x126d38(0x423)](_0x57acdc,{'unitId':_0x3f46c1,'subUnitId':_0x57dd12}),_0x20e37d=[],_0x152962=[];if(!_0x51a17c)return{'undos':_0x152962,'redos':_0x20e37d};const {worksheet:_0x49e947}=_0x51a17c,_0x30290b=_0x49e947[_0x126d38(0x312)](),_0x2400de=_0x49e947[_0x126d38(0x299)]();return _0x30290b<_0x3b2739[_0x126d38(0x2d5)]&&(_0x20e37d[_0x126d38(0x2a1)]({'id':V[_0x126d38(0x425)]['id'],'params':{'unitId':_0x3f46c1,'subUnitId':_0x57dd12,'range':{'startRow':_0x30290b,'endRow':_0x3b2739['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x2400de-0x1}}}),_0x152962[_0x126d38(0x2a1)]({'id':V[_0x126d38(0x1d9)]['id'],'params':{'unitId':_0x3f46c1,'subUnitId':_0x57dd12,'range':{'startRow':_0x30290b,'endRow':_0x3b2739[_0x126d38(0x2d5)]-0x1,'startColumn':0x0,'endColumn':_0x2400de-0x1}}})),_0x2400de<_0x3b2739['colCount']&&(_0x20e37d[_0x126d38(0x2a1)]({'id':V[_0x126d38(0x485)]['id'],'params':{'unitId':_0x3f46c1,'subUnitId':_0x57dd12,'range':{'startRow':0x0,'endRow':_0x30290b-0x1,'startColumn':_0x2400de,'endColumn':_0x3b2739['colCount']-0x1}}}),_0x152962[_0x126d38(0x2a1)]({'id':V[_0x126d38(0x46d)]['id'],'params':{'unitId':_0x3f46c1,'subUnitId':_0x57dd12,'range':{'startRow':0x0,'endRow':_0x30290b-0x1,'startColumn':_0x2400de,'endColumn':_0x3b2739[_0x126d38(0x35d)]-0x1}}})),{'undos':_0x152962,'redos':_0x20e37d};}function sn(_0x3a125b){const _0x25c7fc=_0x498bf1;let _0x86120a=0x0;for(let _0x32738c=0x0;_0x32738c<_0x3a125b[_0x25c7fc(0x492)];_0x32738c++){const _0x4388e5=_0x3a125b[_0x25c7fc(0x48d)](_0x32738c);_0x4388e5>=0x4e00&&_0x4388e5<=0x9fff||_0x4388e5>=0x3000&&_0x4388e5<=0x303f||_0x4388e5>=0xff00&&_0x4388e5<=0xffef?_0x86120a+=0x2:_0x86120a+=0x1;}return _0x86120a;}function kt(_0xcc52ab,_0x13c848,_0x1d8bfd,_0x44588c){const _0x19f0fb=_0x498bf1;var _0x42a67e,_0x276cce,_0xd54bc9,_0xbb4b7a;const {rowCount:_0x46f1d6,colCount:_0x39b74b,headerMap:_0x50f04c}=_0xcc52ab,_0x4205f7=0x64,_0x178c69=Math[_0x19f0fb(0x1c2)](_0x46f1d6,_0x4205f7),_0x1ba0f0=Math['min'](_0x39b74b,_0x4205f7);let _0x1b709c='',_0x41da3a=0x0;for(let _0x59e6ee=0x0;_0x59e6ee<_0x178c69;_0x59e6ee++)for(let _0x144751=0x0;_0x144751<_0x1ba0f0;_0x144751++){const _0x5a7643={...(_0x276cce=(_0x42a67e=_0xcc52ab['data'])==null?void 0x0:_0x42a67e[_0x59e6ee])==null?void 0x0:_0x276cce[_0x144751]},_0x3b97c8=(_0xd54bc9=_0x50f04c[_0x59e6ee])==null?void 0x0:_0xd54bc9[_0x19f0fb(0x3d9)],_0x307731=_0x44588c[_0x3b97c8];let _0x258582=_0xcc52ab[_0x19f0fb(0x438)](_0x59e6ee,_0x144751);if(_0x5a7643){const _0x2ba446=_0x1d8bfd?_0x144751===0x0&&((_0xbb4b7a=_0xcc52ab[_0x19f0fb(0x305)](_0x144751+0x1))==null?void 0x0:_0xbb4b7a[_0x19f0fb(0x21c)]):!0x1;_0x258582=_e(_0x5a7643,_0x2ba446,_0x307731,_0x13c848);}if(_0x258582!==void 0x0){const _0x2e61fd=sn(String(_0x258582));_0x41da3a<_0x2e61fd&&(_0x1b709c=String(_0x258582),_0x41da3a=_0x2e61fd);}}return _0x1b709c;}function rn(_0x456bb2){const _0x27a05e=_0x498bf1,{rowCount:_0x561d8d,colCount:_0x1bba16}=_0x456bb2;let _0x6fed4e='',_0x394dae=0x0;for(let _0x49b0e7=_0x561d8d-0x1;_0x49b0e7>0x0&&_0x49b0e7>_0x561d8d-0x3;_0x49b0e7--)for(let _0x163982=0x0;_0x163982<_0x1bba16;_0x163982++){const _0x52640f=_0x456bb2[_0x27a05e(0x438)](_0x49b0e7,_0x163982);if(_0x52640f!==void 0x0){const _0x46652d=String(_0x52640f)[_0x27a05e(0x492)];_0x394dae<_0x46652d&&(_0x6fed4e=String(_0x52640f),_0x394dae=_0x46652d);}}return _0x6fed4e;}function ln(_0x361b26){const {rowCount:_0x1802ff,colCount:_0x3577c4}=_0x361b26;let _0xdbea2f='',_0x1197da=0x0;for(let _0x2b4bf5=0x0;_0x2b4bf5<_0x1802ff;_0x2b4bf5++)for(let _0x312ac8=0x0;_0x312ac8<_0x3577c4;_0x312ac8++){const _0xc844ff=_0x361b26['getValue'](_0x2b4bf5,_0x312ac8);if(_0xc844ff!==void 0x0){const _0x409094=String(_0xc844ff)['length'];_0x1197da<_0x409094&&(_0xdbea2f=String(_0xc844ff),_0x1197da=_0x409094);}}return _0xdbea2f;}function dn(_0x20d063,_0x32490c){const _0x1299a5=_0x498bf1,{rowFields:_0x29421b,columnFields:_0x2b9f35,valueFields:_0x1f78c7,filterFields:_0x386918,dimension:_0x451347,measure:_0xbde780}=_0x32490c;for(const _0x2d1bfa of _0x29421b){const _0x275dae=_0x451347[_0x2d1bfa];_0x275dae&&_0x20d063[_0x1299a5(0x257)](_0x275dae[_0x1299a5(0x1bb)])&&(_0x20d063['addFieldWithSourceId'](_0x275dae[_0x1299a5(0x1bb)],p[_0x1299a5(0x35b)][_0x1299a5(0x4af)],void 0x0,_0x2d1bfa),_0x275dae[_0x1299a5(0x201)]&&_0x20d063['renameField'](_0x275dae['id'],_0x275dae[_0x1299a5(0x201)]),_0x275dae['sortInfo']&&_0x20d063[_0x1299a5(0x4a7)](_0x275dae['id'],_0x275dae[_0x1299a5(0x42d)]),_0x275dae[_0x1299a5(0x1ea)]&&_0x20d063[_0x1299a5(0x499)](_0x275dae['id'],_0x275dae['filterInfo']));}for(const _0x4d1ac7 of _0x2b9f35){const _0x55f2c5=_0x451347[_0x4d1ac7];_0x55f2c5&&_0x20d063[_0x1299a5(0x257)](_0x55f2c5[_0x1299a5(0x1bb)])&&(_0x20d063['addFieldWithSourceId'](_0x55f2c5['dataFieldId'],p['PivotTableFiledAreaEnum'][_0x1299a5(0x3b2)],void 0x0,_0x4d1ac7),_0x55f2c5[_0x1299a5(0x42d)]&&_0x20d063['setSortInfo'](_0x55f2c5['id'],_0x55f2c5[_0x1299a5(0x42d)]),_0x55f2c5['filterInfo']&&_0x20d063[_0x1299a5(0x499)](_0x55f2c5['id'],_0x55f2c5[_0x1299a5(0x1ea)]),_0x55f2c5[_0x1299a5(0x201)]&&_0x20d063[_0x1299a5(0x27e)](_0x55f2c5['id'],_0x55f2c5[_0x1299a5(0x201)]));}for(const _0x5a1c24 of _0x386918){const _0x1be4bc=_0x451347[_0x5a1c24];_0x1be4bc&&_0x20d063['getDataFieldByDataFieldId'](_0x1be4bc[_0x1299a5(0x1bb)])&&(_0x20d063[_0x1299a5(0x41c)](_0x1be4bc[_0x1299a5(0x1bb)],p['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x5a1c24),_0x1be4bc[_0x1299a5(0x42d)]&&_0x20d063[_0x1299a5(0x4a7)](_0x1be4bc['id'],_0x1be4bc[_0x1299a5(0x42d)]),_0x1be4bc[_0x1299a5(0x1ea)]&&_0x20d063[_0x1299a5(0x499)](_0x1be4bc['id'],_0x1be4bc[_0x1299a5(0x1ea)]),_0x1be4bc[_0x1299a5(0x201)]&&_0x20d063[_0x1299a5(0x27e)](_0x1be4bc['id'],_0x1be4bc[_0x1299a5(0x201)]));}for(const _0x3265a2 of _0x1f78c7){const _0x8b9b62=_0xbde780[_0x3265a2];_0x8b9b62&&_0x20d063['getDataFieldByDataFieldId'](_0x8b9b62[_0x1299a5(0x1bb)])&&(_0x20d063[_0x1299a5(0x41c)](_0x8b9b62[_0x1299a5(0x1bb)],p[_0x1299a5(0x35b)][_0x1299a5(0x456)],void 0x0,_0x3265a2),_0x8b9b62[_0x1299a5(0x3b5)]!==void 0x0&&_0x20d063[_0x1299a5(0x2ad)](_0x3265a2,_0x8b9b62[_0x1299a5(0x3b5)]),_0x8b9b62[_0x1299a5(0x2c8)]&&_0x20d063[_0x1299a5(0x281)](_0x3265a2,_0x8b9b62['format']),_0x8b9b62['displayName']&&_0x20d063[_0x1299a5(0x27e)](_0x8b9b62['id'],_0x8b9b62[_0x1299a5(0x201)]));}const _0x5814b5=_0x32490c[_0x1299a5(0x3e5)];for(const {fieldId:_0x5659e5,filterInfo:_0x3b8e41}of _0x5814b5)_0x20d063['setValueFilterInfo'](_0x5659e5,_0x3b8e41);}function cn(_0xd0926f,_0x4c208a){const _0xfcc9b8=_0x498bf1,_0x48c87b=[];_0x4c208a===p['PivotTableFiledAreaEnum'][_0xfcc9b8(0x4af)]&&_0xd0926f['iterateFieldByArea'](p['PivotTableFiledAreaEnum'][_0xfcc9b8(0x4af)],_0x474343=>{const _0x4446d9=_0xfcc9b8;_0x48c87b['push'](_0x474343[_0x4446d9(0x263)]());}),_0x4c208a===p['PivotTableFiledAreaEnum'][_0xfcc9b8(0x3b2)]&&_0xd0926f['iterateFieldByArea'](p[_0xfcc9b8(0x35b)][_0xfcc9b8(0x3b2)],_0x374a71=>{const _0xfc3d16=_0xfcc9b8;_0x48c87b[_0xfc3d16(0x2a1)](_0x374a71[_0xfc3d16(0x263)]());}),_0x4c208a===p[_0xfcc9b8(0x35b)][_0xfcc9b8(0x1a9)]&&_0xd0926f[_0xfcc9b8(0x46f)](p[_0xfcc9b8(0x35b)]['Filter'],_0x5a2aad=>{const _0x2f2e76=_0xfcc9b8;_0x48c87b[_0x2f2e76(0x2a1)](_0x5a2aad[_0x2f2e76(0x263)]());}),_0x4c208a===p[_0xfcc9b8(0x35b)][_0xfcc9b8(0x456)]&&_0xd0926f[_0xfcc9b8(0x46f)](p[_0xfcc9b8(0x35b)][_0xfcc9b8(0x456)],_0x8ed9aa=>{const _0x32bca9=_0xfcc9b8;_0x48c87b[_0x32bca9(0x2a1)](_0x8ed9aa['getId']());}),_0x4c208a===void 0x0&&_0xd0926f['iterateField'](_0x13b5f0=>{const _0x9258d7=_0xfcc9b8;_0x48c87b[_0x9258d7(0x2a1)](_0x13b5f0[_0x9258d7(0x263)]());});const _0x48c21c=_0x48c87b['length'];for(let _0x579b6a=_0x48c21c-0x1;_0x579b6a>=0x0;_0x579b6a--)_0xd0926f['removeField'](_0x48c87b[_0x579b6a]);const _0xf3aa67=_0xd0926f['getValueFilterInfos']();for(const _0x2e0cc8 in _0xf3aa67)_0xd0926f['removeValueFilterInfo'](_0x2e0cc8);}function un(_0x52e875,_0x4d0b7a){const _0x16ec86=_0x498bf1,_0x563b72=new Date(p[_0x16ec86(0x1a8)](_0x4d0b7a)),_0x6fee94=new Date(p[_0x16ec86(0x1a8)](_0x52e875)),_0xfc421d=_0x563b72[_0x16ec86(0x2cf)](),_0x556392=_0x6fee94[_0x16ec86(0x2cf)](),_0x1d4a77=_0x563b72['getMonth'](),_0x3014ab=_0x6fee94[_0x16ec86(0x25f)](),_0x41f2ae=_0x563b72[_0x16ec86(0x270)](),_0x36ec61=_0x6fee94[_0x16ec86(0x270)](),_0x2f5646=_0xfc421d===_0x556392,_0x1a8c45=_0x2f5646&&_0x1d4a77===_0x3014ab;return _0x2f5646&&_0x1a8c45&&!(_0x1a8c45&&_0x41f2ae===_0x36ec61)?p[_0x16ec86(0x28d)][_0x16ec86(0x38e)]:_0x2f5646&&!_0x1a8c45?p[_0x16ec86(0x28d)]['YearMonth']:p[_0x16ec86(0x28d)][_0x16ec86(0x379)];}function Zt(_0x2ccc19,_0x19f3e1){const _0x24513e=_0x498bf1,_0x4a7cfc=_0x2ccc19[_0x24513e(0x3b4)](exports[_0x24513e(0x2b0)])[_0x24513e(0x3c1)]();let _0x56b9ca='';switch(_0x19f3e1){case p[_0x24513e(0x28d)][_0x24513e(0x38e)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x24e)];break;case p[_0x24513e(0x28d)][_0x24513e(0x1e8)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x224)];break;case p[_0x24513e(0x28d)][_0x24513e(0x379)]:_0x56b9ca=_0x4a7cfc['sheets-pivot.dateGroup.year'];break;case p[_0x24513e(0x28d)]['Month']:_0x56b9ca=_0x4a7cfc[_0x24513e(0x40f)];break;case p[_0x24513e(0x28d)][_0x24513e(0x41a)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x2d6)];break;case p[_0x24513e(0x28d)][_0x24513e(0x215)]:_0x56b9ca=_0x4a7cfc['sheets-pivot.dateGroup.date'];break;case p[_0x24513e(0x28d)][_0x24513e(0x1dc)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x1ac)];break;case p['PivotDateGroupFieldDateTypeEnum'][_0x24513e(0x490)]:_0x56b9ca=_0x4a7cfc['sheets-pivot.dateGroup.hour'];break;case p[_0x24513e(0x28d)][_0x24513e(0x262)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x40c)];break;case p['PivotDateGroupFieldDateTypeEnum'][_0x24513e(0x2e6)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x469)];break;case p[_0x24513e(0x28d)][_0x24513e(0x47f)]:_0x56b9ca=_0x4a7cfc[_0x24513e(0x283)];break;default:_0x56b9ca='';break;}return _0x56b9ca;}const Nt=_0x498bf1(0x39a),Lt={};var fn=Object[_0x498bf1(0x2b5)],vn=(_0x3a4262,_0x544c70,_0x30568b,_0xf16c1b)=>{const _0x450fdb=_0x498bf1;for(var _0x1eb304=_0xf16c1b>0x1?void 0x0:_0xf16c1b?fn(_0x544c70,_0x30568b):_0x544c70,_0x2de1d0=_0x3a4262[_0x450fdb(0x492)]-0x1,_0x11b574;_0x2de1d0>=0x0;_0x2de1d0--)(_0x11b574=_0x3a4262[_0x2de1d0])&&(_0x1eb304=_0x11b574(_0x1eb304)||_0x1eb304);return _0x1eb304;},Le=(_0x22d611,_0x593246)=>(_0x257779,_0xb40a95)=>_0x593246(_0x257779,_0xb40a95,_0x22d611);exports[_0x498bf1(0x48c)]=class extends v[_0x498bf1(0x26e)]{constructor(_0xebdba0,_0xc8b271,_0x143b4f,_0x42b5f2,_0x4c140a){const _0x3290d7=_0x498bf1;super(),x(this,_0x3290d7(0x273),new Map()),x(this,_0x3290d7(0x448),new Map()),x(this,_0x3290d7(0x282),new Map()),x(this,'_pivotTableMatrixInfo',new Map()),x(this,_0x3290d7(0x481),new ge[(_0x3290d7(0x493))]()),x(this,_0x3290d7(0x202),new ge[(_0x3290d7(0x493))]()),x(this,_0x3290d7(0x330),this[_0x3290d7(0x202)]['asObservable']()),x(this,_0x3290d7(0x1ab),new ge[(_0x3290d7(0x493))]()),x(this,_0x3290d7(0x222),this[_0x3290d7(0x1ab)]['asObservable']()),x(this,_0x3290d7(0x49b),{}),x(this,_0x3290d7(0x3d8),this[_0x3290d7(0x481)][_0x3290d7(0x237)]()),(this[_0x3290d7(0x1bc)]=_0xebdba0,this[_0x3290d7(0x3f9)]=_0xc8b271,this['_univerInstanceService']=_0x143b4f,this[_0x3290d7(0x255)]=_0x42b5f2,this[_0x3290d7(0x1af)]=_0x4c140a,this['_initLocale'](),this[_0x3290d7(0x3b0)]());const _0xf0ada2=this[_0x3290d7(0x1af)]['getConfig'](Nt);(_0xf0ada2==null?void 0x0:_0xf0ada2[_0x3290d7(0x422)])===!0x0&&this[_0x3290d7(0x208)]();}['_initUnitDisposed'](){const _0x4a87ef=_0x498bf1;this[_0x4a87ef(0x22a)](this[_0x4a87ef(0x48e)]['getTypeOfUnitDisposed$'](v['UniverInstanceType'][_0x4a87ef(0x3b3)])[_0x4a87ef(0x2cb)](_0x51be17=>{const _0x54daba=_0x4a87ef;this[_0x54daba(0x311)](_0x51be17[_0x54daba(0x29a)]());}));}['setPivotInitCompleted'](){const _0x20af43=_0x498bf1;this['_pivotInitCompleted$'][_0x20af43(0x3c6)](!0x0);}['_initLocale'](){const _0x2ed219=_0x498bf1,_0x52fcc3=Dt(this[_0x2ed219(0x1bc)],Wt,'',{});this[_0x2ed219(0x49b)]=_0x52fcc3,this[_0x2ed219(0x3f9)][_0x2ed219(0x430)](Rt['id'],{'textInfo':_0x52fcc3},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x1cf814=_0x498bf1;return this[_0x1cf814(0x49b)];}[_0x498bf1(0x322)](_0x3c33a4,_0x5cdf84,_0x27b346,_0x554cf7,_0x49be5b){const _0x13a2d6=_0x498bf1;this[_0x13a2d6(0x244)](_0x3c33a4,_0x5cdf84,_0x27b346,_0x554cf7),this['updatePivotTableRangeInfo'](_0x3c33a4,_0x5cdf84,_0x27b346,_0x49be5b);}[_0x498bf1(0x467)](_0x30534d,_0x52c0d5,_0x26532b){const _0xbe47ac=_0x498bf1;var _0xc9a124;const _0x230c47=(_0xc9a124=this[_0xbe47ac(0x273)]['get'](_0x30534d))==null?void 0x0:_0xc9a124[_0xbe47ac(0x3b4)](_0x52c0d5);if(_0x230c47)return _0x230c47['get'](_0x26532b);}[_0x498bf1(0x2ee)](_0x33ca6c,_0x55a350){const _0x4ed43e=_0x498bf1,_0x14997a=this['_model'][_0x4ed43e(0x3b4)](_0x33ca6c);if(_0x14997a){for(const [_0x529732,_0xd72d6a]of _0x14997a['entries']())for(const [_0x2a3aed,_0x3d7133]of _0xd72d6a[_0x4ed43e(0x43b)]())if(_0x2a3aed===_0x55a350)return _0x3d7133[_0x4ed43e(0x235)];}}[_0x498bf1(0x3ab)](_0x241605,_0x141575,_0x4c3c41){const _0x4cee5d=_0x498bf1,_0x49ddfc=this[_0x4cee5d(0x467)](_0x241605,_0x141575,_0x4c3c41);return _0x49ddfc==null?void 0x0:_0x49ddfc[_0x4cee5d(0x235)];}[_0x498bf1(0x1a4)](_0x5a5590,_0x47c983){const _0x33823e=_0x498bf1;var _0x43e329;return(_0x43e329=this[_0x33823e(0x273)][_0x33823e(0x3b4)](_0x5a5590))==null?void 0x0:_0x43e329[_0x33823e(0x3b4)](_0x47c983);}[_0x498bf1(0x284)](_0x3ee07a,_0x3d45dc,_0x17fe83,_0x4a44eb){const _0x54fe66=_0x498bf1,_0x4dddf8=this[_0x54fe66(0x2a5)](_0x3ee07a,_0x3d45dc);_0x4a44eb?_0x4dddf8[_0x54fe66(0x1ed)](_0x17fe83,_0x4a44eb):_0x4dddf8[_0x54fe66(0x2d9)](_0x17fe83),this[_0x54fe66(0x1ab)][_0x54fe66(0x3c6)]({'unitId':_0x3ee07a,'subUnitId':_0x3d45dc,'pivotTableId':_0x17fe83,'pivotTableConfig':_0x4a44eb});}['getCollection'](_0xcc7581,_0x191048){const _0x57a04f=_0x498bf1;var _0x19f04b;return(_0x19f04b=this[_0x57a04f(0x448)]['get'](_0xcc7581))==null?void 0x0:_0x19f04b['collections'][_0x191048];}[_0x498bf1(0x380)](_0x1c5d6d,_0x3fbf95){const _0x3e4def=_0x498bf1;this[_0x3e4def(0x448)]['set'](_0x1c5d6d,_0x3fbf95),this[_0x3e4def(0x481)][_0x3e4def(0x3c6)](Math[_0x3e4def(0x33b)]());}[_0x498bf1(0x2a5)](_0x30dce4,_0x2dd836){const _0x218901=_0x498bf1;let _0x54b869=this[_0x218901(0x273)][_0x218901(0x3b4)](_0x30dce4);_0x54b869||(_0x54b869=new Map(),this[_0x218901(0x273)]['set'](_0x30dce4,_0x54b869));let _0x35f2cc=_0x54b869['get'](_0x2dd836);return _0x35f2cc||(_0x35f2cc=new Map(),_0x54b869[_0x218901(0x1ed)](_0x2dd836,_0x35f2cc)),_0x35f2cc;}['_ensurePivotTableRangeInfo'](_0x485278,_0x30ad58){const _0x2d7f59=_0x498bf1;let _0x248346=this['_pivotTableRangeInfo']['get'](_0x485278);_0x248346||(_0x248346=new Map(),this[_0x2d7f59(0x282)]['set'](_0x485278,_0x248346));let _0x396ce3=_0x248346[_0x2d7f59(0x3b4)](_0x30ad58);return _0x396ce3||(_0x396ce3=new Map(),_0x248346[_0x2d7f59(0x1ed)](_0x30ad58,_0x396ce3)),_0x396ce3;}[_0x498bf1(0x1f6)](_0xb07666,_0x298943){const _0x510a2f=_0x498bf1;let _0x3bbba6=this[_0x510a2f(0x486)][_0x510a2f(0x3b4)](_0xb07666);_0x3bbba6||(_0x3bbba6=new Map(),this['_pivotTableMatrixInfo']['set'](_0xb07666,_0x3bbba6));let _0x3fe7cc=_0x3bbba6[_0x510a2f(0x3b4)](_0x298943);return _0x3fe7cc||(_0x3fe7cc=new Map(),_0x3bbba6['set'](_0x298943,_0x3fe7cc)),_0x3fe7cc;}[_0x498bf1(0x339)](_0x49dff8,_0x3f1217,_0x1ef8ba,_0x476c49){const _0xf30918=_0x498bf1;var _0x414da7;const _0x1b2486=this['_ensurePivotTableRangeInfo'](_0x49dff8,_0x3f1217),_0xa0cc89=(_0x414da7=_0x1b2486[_0xf30918(0x3b4)](_0x1ef8ba))==null?void 0x0:_0x414da7['oldRangeInfo'];_0x1b2486[_0xf30918(0x1ed)](_0x1ef8ba,{'oldRangeInfo':_0xa0cc89,'rangeInfo':_0x476c49});}[_0x498bf1(0x244)](_0x2c47e1,_0x1f8d93,_0xdf701d,_0x5ca368){const _0x421c8b=_0x498bf1;var _0x30398d;const _0x15c49d=this[_0x421c8b(0x1f6)](_0x2c47e1,_0x1f8d93),_0x1b6885=(_0x30398d=_0x15c49d[_0x421c8b(0x3b4)](_0xdf701d))==null?void 0x0:_0x30398d[_0x421c8b(0x3c2)];_0x15c49d['set'](_0xdf701d,{'oldMatrix':_0x1b6885,'matrix':_0x5ca368});}['getPivotTableRangeInfo'](_0x245d96,_0x5537e0,_0x41fe7e){const _0x2955c4=_0x498bf1;var _0x245165,_0x393947;return(_0x393947=(_0x245165=this[_0x2955c4(0x282)][_0x2955c4(0x3b4)](_0x245d96))==null?void 0x0:_0x245165[_0x2955c4(0x3b4)](_0x5537e0))==null?void 0x0:_0x393947[_0x2955c4(0x3b4)](_0x41fe7e);}['getPivotTableMatrixInfo'](_0x1ae1f0,_0x26a259,_0x3cca59){const _0x97f8e=_0x498bf1;var _0x52e365,_0x3f6325;return(_0x3f6325=(_0x52e365=this[_0x97f8e(0x486)][_0x97f8e(0x3b4)](_0x1ae1f0))==null?void 0x0:_0x52e365['get'](_0x26a259))==null?void 0x0:_0x3f6325['get'](_0x3cca59);}['deleteUnitId'](_0x5ef9ad){const _0x1c980c=_0x498bf1;this['_model'][_0x1c980c(0x2d9)](_0x5ef9ad),this[_0x1c980c(0x448)]['delete'](_0x5ef9ad);}[_0x498bf1(0x1f5)](_0x57a1f6){const _0x2e3278=_0x498bf1,_0x3f5d38={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2e3278(0x448)][_0x2e3278(0x3b4)](_0x57a1f6)&&(_0x3f5d38[_0x2e3278(0x20a)][_0x57a1f6]=this[_0x2e3278(0x448)]['get'](_0x57a1f6)),this[_0x2e3278(0x273)][_0x2e3278(0x3b4)](_0x57a1f6)){_0x3f5d38[_0x2e3278(0x3cc)][_0x57a1f6]={};const _0x2bf985=this['_model'][_0x2e3278(0x3b4)](_0x57a1f6);_0x2bf985!=null&&_0x2bf985[_0x2e3278(0x349)]&&[..._0x2bf985[_0x2e3278(0x418)]()]['forEach'](_0x311800=>{const _0x19d134=_0x2e3278,_0x1bef78=_0x2bf985[_0x19d134(0x3b4)](_0x311800);_0x1bef78!=null&&_0x1bef78['size']&&(_0x3f5d38[_0x19d134(0x3cc)][_0x57a1f6][_0x311800]={},[..._0x1bef78[_0x19d134(0x418)]()][_0x19d134(0x421)](_0x16dd7a=>{const _0x2ebca7=_0x1bef78['get'](_0x16dd7a);_0x2ebca7&&(_0x3f5d38['pivotTableConfigs'][_0x57a1f6][_0x311800][_0x16dd7a]=_0x2ebca7);}));});}return _0x3f5d38;}[_0x498bf1(0x208)](){const _0x5b380f=_0x498bf1;this['disposeWithMe'](this[_0x5b380f(0x255)]['registerPluginResource']({'toJson':_0x30c039=>JSON[_0x5b380f(0x40b)](this[_0x5b380f(0x1f5)](_0x30c039)),'parseJson':_0x5db1de=>({}),'businesses':[v['UniverInstanceType'][_0x5b380f(0x3b3)]],'pluginName':Ct,'onLoad':(_0x50afc8,_0x589d5a)=>{},'onUnLoad':_0x3f670a=>{const _0x3f6b6d=_0x5b380f;this[_0x3f6b6d(0x311)](_0x3f670a);}}));}},exports[_0x498bf1(0x48c)]=vn([Le(0x0,v['Inject'](v[_0x498bf1(0x43a)])),Le(0x1,v['Inject'](v[_0x498bf1(0x2e1)])),Le(0x2,v['Inject'](v[_0x498bf1(0x2a7)])),Le(0x3,v[_0x498bf1(0x38a)](v[_0x498bf1(0x4a0)])),Le(0x4,v[_0x498bf1(0x38a)](v['IConfigService']))],exports[_0x498bf1(0x48c)]);var gn=Object[_0x498bf1(0x2b5)],hn=(_0x295d57,_0x499ee5,_0x2ef40c,_0x252ed4)=>{const _0x3d8bbc=_0x498bf1;for(var _0x1ac644=_0x252ed4>0x1?void 0x0:_0x252ed4?gn(_0x499ee5,_0x2ef40c):_0x499ee5,_0x44ff3e=_0x295d57[_0x3d8bbc(0x492)]-0x1,_0x2282da;_0x44ff3e>=0x0;_0x44ff3e--)(_0x2282da=_0x295d57[_0x44ff3e])&&(_0x1ac644=_0x2282da(_0x1ac644)||_0x1ac644);return _0x1ac644;},je=(_0x33f9bf,_0x4de292)=>(_0x2d93f5,_0x1f1466)=>_0x4de292(_0x2d93f5,_0x1f1466,_0x33f9bf);exports[_0x498bf1(0x1c7)]=class extends v[_0x498bf1(0x26e)]{constructor(_0x39dc05,_0xc08b7a,_0x538830,_0x37919c,_0x56dee3){const _0x3dd3ad=_0x498bf1;super(),x(this,_0x3dd3ad(0x48f),new Map()),x(this,'_pivotRenderValueMatrixCache',new Map()),x(this,'_markDirty$',new ge['Subject']()),x(this,'markDirty$',this[_0x3dd3ad(0x225)]['asObservable']()),x(this,_0x3dd3ad(0x1c5),new ge[(_0x3dd3ad(0x493))]()),x(this,'viewUpdate$',this[_0x3dd3ad(0x1c5)][_0x3dd3ad(0x237)]()),x(this,_0x3dd3ad(0x49b)),(this[_0x3dd3ad(0x323)]=_0x39dc05,this[_0x3dd3ad(0x1bc)]=_0xc08b7a,this[_0x3dd3ad(0x3f1)]=_0x538830,this[_0x3dd3ad(0x48e)]=_0x37919c,this['_exclusiveRangeService']=_0x56dee3,this[_0x3dd3ad(0x245)](),this[_0x3dd3ad(0x3b0)]());}[_0x498bf1(0x3b0)](){const _0x34e69d=_0x498bf1;this[_0x34e69d(0x22a)](this[_0x34e69d(0x48e)]['getTypeOfUnitDisposed$'](v[_0x34e69d(0x343)][_0x34e69d(0x3b3)])['subscribe'](_0x3e7edf=>{const _0xb2ed5d=_0x34e69d;this[_0xb2ed5d(0x311)](_0x3e7edf[_0xb2ed5d(0x29a)]());}));}[_0x498bf1(0x245)](){const _0x46b9ae=_0x498bf1;this[_0x46b9ae(0x49b)]=Dt(this['_injector'],Wt,'',{});}['updateRenderCache'](_0x4baab0){const _0x1f81d8=_0x498bf1,{view:_0x3dbd48,unitId:_0x2bdfc0,subUnitId:_0xf0609a,pivotTableId:_0x354446,type:_0x5b56ca}=_0x4baab0,_0x4b5473=this[_0x1f81d8(0x3f1)]['getPivotTableConfig'](_0x2bdfc0,_0xf0609a,_0x354446);if(!_0x3dbd48||!_0x4b5473||_0x5b56ca===j[_0x1f81d8(0x2f1)])return;const {pageView:_0x170f0e,cornerView:_0x2665ae,rowView:_0x2ef14e,colView:_0x17eec1,dataView:_0x4a2f13}=_0x3dbd48,_0x3a5fb1=_0x4b5473[_0x1f81d8(0x235)],_0x5b374f=_0x4b5473[_0x1f81d8(0x221)],_0x48c0d0=this[_0x1f81d8(0x46c)](_0x2bdfc0,_0xf0609a),_0x3baa04=this[_0x1f81d8(0x382)](_0x2bdfc0,_0xf0609a,_0x354446);if(_0x5b374f)return this[_0x1f81d8(0x278)](_0x4baab0,_0x48c0d0,_0x3a5fb1,_0x3baa04);{const _0x2f5772=oe(_0x3a5fb1,_0x170f0e,!0x0),_0x40b9a3=_0x170f0e[_0x1f81d8(0x32e)]>=0x0?_0x170f0e[_0x1f81d8(0x32e)]+0x1:0x0,_0x32912d=_0x2665ae['getRowCount'](),_0x163079=_0x2665ae[_0x1f81d8(0x400)](),_0x272709=_0x2f5772[_0x1f81d8(0x492)]>0x0?De:0x0,_0x41c7ba=oe({'row':_0x3a5fb1['row']+_0x40b9a3+_0x272709,'col':_0x3a5fb1[_0x1f81d8(0x463)]},_0x2665ae,!0x1,!0x1),_0x2afe38=oe({'row':_0x3a5fb1[_0x1f81d8(0x1c0)]+_0x40b9a3+_0x272709+_0x32912d,'col':_0x3a5fb1[_0x1f81d8(0x463)]},_0x2ef14e,!0x1,!0x0),_0x17fde9=oe({'row':_0x3a5fb1['row']+_0x40b9a3+_0x272709,'col':_0x3a5fb1[_0x1f81d8(0x463)]+_0x163079},_0x17eec1,!0x1,!0x0),_0xc79da3=oe({'row':_0x3a5fb1[_0x1f81d8(0x1c0)]+_0x40b9a3+_0x272709+_0x32912d,'col':_0x3a5fb1[_0x1f81d8(0x463)]+_0x163079},_0x4a2f13,!0x1,!0x1);_0x3baa04[_0x1f81d8(0x1ff)]={'rowRanges':_0x2afe38,'colRanges':_0x17fde9,'cornerRanges':_0x41c7ba,'dataRanges':_0xc79da3,'pageRanges':_0x2f5772};const _0x372e7a=qo(this[_0x1f81d8(0x1bc)],_0x3dbd48,_0x4b5473,this[_0x1f81d8(0x49b)]),{valueMatrix:_0x429054,rowInfo:_0x446c5c,colInfo:_0x41b6aa,cornerInfo:_0x143851,rowHeaderMap:_0x38aaee,colHeaderMap:_0x48f31d}=_0x372e7a;return _0x3baa04[_0x1f81d8(0x3a6)]={'rowInfo':_0x446c5c,'colInfo':_0x41b6aa,'cornerInfo':_0x143851},_0x3baa04[_0x1f81d8(0x2f9)]={'rowHeaderMap':_0x38aaee,'colHeaderMap':_0x48f31d},_0x429054[_0x1f81d8(0x421)]((_0x3970fb,_0x5af17a)=>{const _0x43f507=_0x1f81d8;Object[_0x43f507(0x418)](_0x5af17a)[_0x43f507(0x421)](_0x2d9a02=>{const _0x4b563d=_0x43f507,_0x236488=+_0x2d9a02,_0xec6df0=_0x429054[_0x4b563d(0x438)](_0x3970fb,_0x236488);_0x48c0d0[_0x4b563d(0x2a3)](_0x3970fb,_0x236488,_0xec6df0);});}),this[_0x1f81d8(0x1c5)]['next']({'unitId':_0x2bdfc0,'subUnitId':_0xf0609a,'valueMatrix':_0x48c0d0,'rangesCache':_0x3baa04[_0x1f81d8(0x1ff)],'pivotTableId':_0x354446,'type':_0x4baab0[_0x1f81d8(0x363)]}),this[_0x1f81d8(0x3f1)][_0x1f81d8(0x322)](_0x2bdfc0,_0xf0609a,_0x354446,_0x48c0d0,_0x3baa04[_0x1f81d8(0x1ff)]),this[_0x1f81d8(0x3fe)][_0x1f81d8(0x231)](_0x2bdfc0,_0xf0609a,Pt,this['_createExclusiveRange'](_0x3baa04[_0x1f81d8(0x1ff)],_0x354446)),{'rangeCache':_0x3baa04['rangesInfo'],'matrix':_0x48c0d0};}}['_updateRenderEmptyCache'](_0x1eb687,_0x114d93,_0x298713,_0x15aec1){const _0x42712b=_0x498bf1,_0xf25375=this[_0x42712b(0x323)]['t'],{unitId:_0x26ab31,subUnitId:_0x25e228,pivotTableId:_0x290861}=_0x1eb687,_0x7d5768={'filter':_0xf25375('sheets-pivot.emptyPivot.filter'),'row':_0xf25375('sheets-pivot.emptyPivot.row'),'column':_0xf25375(_0x42712b(0x440)),'values':_0xf25375('sheets-pivot.emptyPivot.values')},{matrixCache:_0x389989,rangesCache:_0x28040f}=zt(_0x7d5768,_0x298713);return _0x389989[_0x42712b(0x36a)]((_0x41007d,_0x1eeddd,_0x285fd7)=>{_0x114d93['setValue'](_0x41007d,_0x1eeddd,_0x285fd7);}),_0x15aec1['rangesInfo']=_0x28040f,this[_0x42712b(0x1c5)]['next']({'unitId':_0x26ab31,'subUnitId':_0x25e228,'valueMatrix':_0x114d93,'rangesCache':_0x28040f,'pivotTableId':_0x290861,'type':_0x1eb687['type'],'isEmpty':!0x0}),this[_0x42712b(0x3f1)][_0x42712b(0x322)](_0x26ab31,_0x25e228,_0x290861,_0x114d93,_0x28040f),this[_0x42712b(0x3fe)][_0x42712b(0x231)](_0x26ab31,_0x25e228,Pt,this[_0x42712b(0x3f8)](_0x28040f,_0x290861)),{'rangeCache':_0x15aec1['rangesInfo'],'matrix':_0x114d93};}[_0x498bf1(0x3f8)](_0x18ee87,_0x58c6f2){const _0x5a3ecb=[],_0x52acb9=nt(_0x18ee87);for(const _0x1ea60d of _0x52acb9)_0x5a3ecb['push']({'groupId':_0x58c6f2,'range':_0x1ea60d});return _0x5a3ecb;}[_0x498bf1(0x318)](_0x59a574){const _0x222121=_0x498bf1;var _0x2fd646,_0x44b835,_0x6f59ba,_0x2d337a;const {pivotTableId:_0x15607c,unitId:_0x44e88c,subUnitId:_0x607c6}=_0x59a574;if(!_0x15607c||!_0x44e88c||!_0x607c6)return;const _0x141ca7=this[_0x222121(0x46c)](_0x44e88c,_0x607c6),_0x22e470=(_0x44b835=(_0x2fd646=this[_0x222121(0x48f)][_0x222121(0x3b4)](_0x44e88c))==null?void 0x0:_0x2fd646[_0x222121(0x3b4)](_0x607c6))==null?void 0x0:_0x44b835[_0x222121(0x3b4)](_0x15607c);if(_0x22e470!=null&&_0x22e470[_0x222121(0x1ff)]){for(const _0x4a1601 of Object[_0x222121(0x418)](_0x22e470[_0x222121(0x1ff)]))_0x22e470['rangesInfo'][_0x4a1601][_0x222121(0x421)](_0x1166f1=>{const _0x40c05b=_0x222121;for(let _0x144a65=_0x1166f1[_0x40c05b(0x42a)];_0x144a65<=_0x1166f1['endRow'];_0x144a65++)for(let _0x48e8e3=_0x1166f1[_0x40c05b(0x368)];_0x48e8e3<=_0x1166f1[_0x40c05b(0x242)];_0x48e8e3++)_0x141ca7['realDeleteValue'](_0x144a65,_0x48e8e3);});}_0x22e470&&((_0x2d337a=(_0x6f59ba=this[_0x222121(0x48f)][_0x222121(0x3b4)](_0x44e88c))==null?void 0x0:_0x6f59ba[_0x222121(0x3b4)](_0x607c6))==null||_0x2d337a['delete'](_0x15607c)),this[_0x222121(0x1c5)][_0x222121(0x3c6)]({'unitId':_0x44e88c,'subUnitId':_0x607c6,'valueMatrix':_0x141ca7,'pivotTableId':_0x15607c,'rangesCache':void 0x0,'type':_0x59a574['type']}),this['_exclusiveRangeService']['clearExclusiveRangesByGroupId'](_0x44e88c,_0x607c6,Pt,_0x15607c);}['_ensurePivotItemRenderInfoCache'](_0x207220,_0x24012f,_0x78b731){const _0x35bb24=_0x498bf1;var _0x32bb2c,_0x16dd55,_0x2be2d1,_0x1902c2,_0x5a1b6c,_0x6bc454;return this[_0x35bb24(0x48f)][_0x35bb24(0x1cc)](_0x207220)||this[_0x35bb24(0x48f)][_0x35bb24(0x1ed)](_0x207220,new Map()),(_0x32bb2c=this[_0x35bb24(0x48f)][_0x35bb24(0x3b4)](_0x207220))!=null&&_0x32bb2c['has'](_0x24012f)||(_0x16dd55=this[_0x35bb24(0x48f)][_0x35bb24(0x3b4)](_0x207220))==null||_0x16dd55[_0x35bb24(0x1ed)](_0x24012f,new Map()),(_0x1902c2=(_0x2be2d1=this['_pivotRenderInfoCache'][_0x35bb24(0x3b4)](_0x207220))==null?void 0x0:_0x2be2d1[_0x35bb24(0x3b4)](_0x24012f))!=null&&_0x1902c2[_0x35bb24(0x1cc)](_0x78b731)||(_0x6bc454=(_0x5a1b6c=this[_0x35bb24(0x48f)][_0x35bb24(0x3b4)](_0x207220))==null?void 0x0:_0x5a1b6c[_0x35bb24(0x3b4)](_0x24012f))==null||_0x6bc454[_0x35bb24(0x1ed)](_0x78b731,{}),this['_pivotRenderInfoCache'][_0x35bb24(0x3b4)](_0x207220)[_0x35bb24(0x3b4)](_0x24012f)[_0x35bb24(0x3b4)](_0x78b731);}[_0x498bf1(0x46c)](_0x543c27,_0x2f8170){const _0x21ae05=_0x498bf1;var _0x49ee12,_0x1033ce;return this['_pivotRenderValueMatrixCache']['has'](_0x543c27)||this['_pivotRenderValueMatrixCache'][_0x21ae05(0x1ed)](_0x543c27,new Map()),(_0x49ee12=this[_0x21ae05(0x1de)][_0x21ae05(0x3b4)](_0x543c27))!=null&&_0x49ee12[_0x21ae05(0x1cc)](_0x2f8170)||(_0x1033ce=this[_0x21ae05(0x1de)][_0x21ae05(0x3b4)](_0x543c27))==null||_0x1033ce[_0x21ae05(0x1ed)](_0x2f8170,new v[(_0x21ae05(0x2fa))]()),this[_0x21ae05(0x1de)][_0x21ae05(0x3b4)](_0x543c27)[_0x21ae05(0x3b4)](_0x2f8170);}[_0x498bf1(0x309)](_0x45fa8a,_0x2d3ec7,_0xbb1016,_0x1158a6){const _0x8ecdce=_0x498bf1;var _0x4f1a78,_0x49cc66;const _0x3e9a61=(_0x49cc66=(_0x4f1a78=this[_0x8ecdce(0x1de)][_0x8ecdce(0x3b4)](_0x45fa8a))==null?void 0x0:_0x4f1a78[_0x8ecdce(0x3b4)](_0x2d3ec7))==null?void 0x0:_0x49cc66['getValue'](_0xbb1016,_0x1158a6);if(_0x3e9a61!=null)return _0x3e9a61;}['getPivotTableIdByCell'](_0x12b0f0,_0x4f9e60,_0x20a1c8,_0x13c5a8){const _0xfc3da2=_0x498bf1;var _0x263fa9;const _0x5b38b1=v['cellToRange'](_0x20a1c8,_0x13c5a8),_0xbdd8b9=(_0x263fa9=this[_0xfc3da2(0x48f)][_0xfc3da2(0x3b4)](_0x12b0f0))==null?void 0x0:_0x263fa9[_0xfc3da2(0x3b4)](_0x4f9e60);return _0xbdd8b9?Array['from'](_0xbdd8b9['keys']())[_0xfc3da2(0x392)](_0x460f3e=>{const _0x3596a4=_0xfc3da2,_0x225d44=_0xbdd8b9[_0x3596a4(0x3b4)](_0x460f3e),_0x560c11=_0x225d44==null?void 0x0:_0x225d44[_0x3596a4(0x1ff)];return _0x560c11?Object[_0x3596a4(0x418)](_0x560c11)[_0x3596a4(0x2a6)](_0x2db5dd=>_0x560c11[_0x2db5dd]['some'](_0x5ec49d=>v['Rectangle']['contains'](_0x5ec49d,_0x5b38b1))):!0x1;}):void 0x0;}[_0x498bf1(0x498)](_0x214d8c,_0xcbb20e,_0x3c49e5){const _0x56e390=_0x498bf1;var _0x29d1f4;const _0x489184=(_0x29d1f4=this[_0x56e390(0x48f)][_0x56e390(0x3b4)](_0x214d8c))==null?void 0x0:_0x29d1f4[_0x56e390(0x3b4)](_0xcbb20e),_0x53a3eb=[];return _0x489184&&Array[_0x56e390(0x2aa)](_0x489184['keys']())['forEach'](_0x40d095=>{const _0x2cdd2f=_0x56e390,_0x40ec2c=_0x489184['get'](_0x40d095),_0x564008=_0x40ec2c==null?void 0x0:_0x40ec2c['rangesInfo'];if(_0x564008)for(const _0x89a90a of Object[_0x2cdd2f(0x3dc)](_0x564008)){let _0x3d8330=!0x1;for(const _0x3f3099 of _0x89a90a)if(v['Rectangle'][_0x2cdd2f(0x3fd)](_0x3f3099,_0x3c49e5)){_0x53a3eb[_0x2cdd2f(0x2a1)](_0x40d095),_0x3d8330=!0x0;break;}if(_0x3d8330)break;}}),_0x53a3eb;}[_0x498bf1(0x3e4)](_0x49f147,_0x1ca8d8){const _0x423769=_0x498bf1;var _0x1ec401,_0x447b9a;return(_0x447b9a=(_0x1ec401=this[_0x423769(0x1de)][_0x423769(0x3b4)](_0x49f147))==null?void 0x0:_0x1ec401['get'](_0x1ca8d8))!=null?_0x447b9a:new v['ObjectMatrix']();}[_0x498bf1(0x2be)](_0x4aa761,_0x4642a3){const _0x446b35=_0x498bf1;var _0xdf9822;return(_0xdf9822=this[_0x446b35(0x48f)][_0x446b35(0x3b4)](_0x4aa761))==null?void 0x0:_0xdf9822[_0x446b35(0x3b4)](_0x4642a3);}[_0x498bf1(0x45b)](_0x144ef9,_0x4ac013,_0x7c8676){const _0x46b217=_0x498bf1;var _0x48f606,_0x2f88ba;return(_0x2f88ba=(_0x48f606=this[_0x46b217(0x48f)][_0x46b217(0x3b4)](_0x144ef9))==null?void 0x0:_0x48f606[_0x46b217(0x3b4)](_0x4ac013))==null?void 0x0:_0x2f88ba['get'](_0x7c8676);}[_0x498bf1(0x311)](_0x5914){const _0x30fae7=_0x498bf1;this[_0x30fae7(0x48f)]['delete'](_0x5914),this[_0x30fae7(0x1de)][_0x30fae7(0x2d9)](_0x5914);}['markDirty'](_0x3f649d,_0x5559a8){this['_markDirty$']['next']({'unitId':_0x3f649d,'subUnitId':_0x5559a8});}},exports[_0x498bf1(0x1c7)]=hn([je(0x0,v[_0x498bf1(0x38a)](v[_0x498bf1(0x24c)])),je(0x1,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),je(0x2,v[_0x498bf1(0x38a)](exports['SheetsPivotTableConfigModel'])),je(0x3,v['Inject'](v[_0x498bf1(0x2a7)])),je(0x4,v[_0x498bf1(0x38a)](V[_0x498bf1(0x2f3)]))],exports['SheetsPivotTableAdaptorModel']);var pn=Object[_0x498bf1(0x2b5)],mn=(_0x1f3f82,_0x3e4c98,_0x205ca1,_0x4b838a)=>{const _0x30b29d=_0x498bf1;for(var _0x3a41f1=_0x4b838a>0x1?void 0x0:_0x4b838a?pn(_0x3e4c98,_0x205ca1):_0x3e4c98,_0x52963a=_0x1f3f82[_0x30b29d(0x492)]-0x1,_0x4d4e24;_0x52963a>=0x0;_0x52963a--)(_0x4d4e24=_0x1f3f82[_0x52963a])&&(_0x3a41f1=_0x4d4e24(_0x3a41f1)||_0x3a41f1);return _0x3a41f1;},jt=(_0x418b7d,_0xa82a6)=>(_0x49ef1c,_0x5f06bf)=>_0xa82a6(_0x49ef1c,_0x5f06bf,_0x418b7d);exports[_0x498bf1(0x253)]=class extends v[_0x498bf1(0x26e)]{constructor(_0x34163d,_0x4db24f){const _0x285207=_0x498bf1;super(),x(this,_0x285207(0x373),new v[(_0x285207(0x2c1))]({'PIVOT_PERFORM_CHECK':re})),x(this,_0x285207(0x23d),new v['InterceptorManager']({'PIVOT_MUTATION_GENERATE':qt})),(this['_sheetInterceptorService']=_0x34163d,this[_0x285207(0x37a)]=_0x4db24f,this['_init']());}[_0x498bf1(0x1fa)](){const _0x46a61d=_0x498bf1;this[_0x46a61d(0x32d)]();}['getPivotPerformCheck'](_0x43c853){const _0x5cb287=_0x498bf1;return this[_0x5cb287(0x373)][_0x5cb287(0x1c9)](re)(!0x1,_0x43c853);}[_0x498bf1(0x32d)](){const _0x1eabf6=_0x498bf1;this['disposeWithMe'](this['_sheetInterceptorService'][_0x1eabf6(0x269)](V[_0x1eabf6(0x247)][_0x1eabf6(0x3e6)],{'priority':0xc8,'effect':v[_0x1eabf6(0x37e)][_0x1eabf6(0x456)]|v[_0x1eabf6(0x37e)]['Style'],'handler':(_0x202f8d,_0x5715db,_0x17197c)=>{const _0x36a413=_0x1eabf6,{row:_0xf6828f,col:_0x53ecb5,unitId:_0x290888,subUnitId:_0x1bf4fc,workbook:_0x36161e}=_0x5715db,_0x10ac26=this['_sheetsPivotTableAdaptorModel'][_0x36a413(0x309)](_0x290888,_0x1bf4fc,_0xf6828f,_0x53ecb5);if(!_0x10ac26)return _0x17197c(_0x202f8d);const _0x347674={..._0x202f8d};(_0x10ac26['v']||_0x10ac26['v']===0x0)&&(_0x347674['v']=_0x10ac26['v']),_0x10ac26['t']&&(_0x347674['t']=_0x10ac26['t']);const _0xcbc57c=(typeof(_0x202f8d==null?void 0x0:_0x202f8d['s'])==_0x36a413(0x2a8)?_0x36161e[_0x36a413(0x33c)]()[_0x36a413(0x3b4)](_0x202f8d==null?void 0x0:_0x202f8d['s']):_0x202f8d==null?void 0x0:_0x202f8d['s'])||{},_0x3b140f=_0x36161e[_0x36a413(0x33c)]()['get'](_0x10ac26['s']),_0x1f2ce8={..._0x3b140f,..._0xcbc57c};_0x3b140f!=null&&_0x3b140f['n']&&(_0x1f2ce8['n']=_0x3b140f['n']);const _0x2a3735=_0x36161e[_0x36a413(0x33c)]()[_0x36a413(0x2a3)](_0x1f2ce8);return _0x347674['s']=_0x2a3735,(_0x10ac26[_0x36a413(0x4ab)]===p[_0x36a413(0x3aa)][_0x36a413(0x1fd)]||_0x10ac26[_0x36a413(0x4ab)]===p[_0x36a413(0x3aa)][_0x36a413(0x1d3)])&&(_0x347674[_0x36a413(0x49a)]={},_0x347674[_0x36a413(0x49a)]['leftOffset']=Do),_0x17197c(_0x347674);}}));}},exports[_0x498bf1(0x253)]=mn([jt(0x0,v[_0x498bf1(0x38a)](V[_0x498bf1(0x344)])),jt(0x1,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x1c7)]))],exports[_0x498bf1(0x253)]);function Ke(_0x2f1a13,_0x4bd84b){const _0x5560d6=_0x498bf1;switch(_0x4bd84b){case p[_0x5560d6(0x35b)][_0x5560d6(0x456)]:return _0x2f1a13['valueFields'];case p[_0x5560d6(0x35b)][_0x5560d6(0x1a9)]:return _0x2f1a13[_0x5560d6(0x293)];case p['PivotTableFiledAreaEnum'][_0x5560d6(0x4af)]:return _0x2f1a13[_0x5560d6(0x3af)];case p[_0x5560d6(0x35b)][_0x5560d6(0x3b2)]:return _0x2f1a13[_0x5560d6(0x2f2)];default:return[];}}function Se(_0x202b36,_0x1318fb){const _0x20385a=_0x498bf1;return _0x202b36['measure'][_0x1318fb]||_0x202b36[_0x20385a(0x3ca)][_0x1318fb];}function In(_0x47c86d,_0x49d787){const _0x48682b=_0x498bf1,{area:_0x34ee9f,fieldJson:_0x598600,index:_0xe97ea8}=_0x49d787;_0x34ee9f===p[_0x48682b(0x35b)]['Value']?_0x47c86d[_0x48682b(0x376)][_0x598600['id']]=_0x598600:_0x47c86d[_0x48682b(0x3ca)][_0x598600['id']]=_0x598600,Ke(_0x47c86d,_0x34ee9f)['splice'](_0xe97ea8,0x0,_0x598600['id']);}function Cn(_0x8d67cc,_0x5281ca){const _0x220459=_0x498bf1,{area:_0x30d1f8,fieldId:_0x48d041,index:_0x527c7a}=_0x5281ca;_0x30d1f8===p['PivotTableFiledAreaEnum'][_0x220459(0x456)]?delete _0x8d67cc[_0x220459(0x376)][_0x48d041]:delete _0x8d67cc[_0x220459(0x3ca)][_0x48d041],Ke(_0x8d67cc,_0x30d1f8)[_0x220459(0x1aa)](_0x527c7a,0x1);}function bn(_0x27960a,_0x45b32b){const _0x1ea89c=_0x498bf1,{fieldId:_0xb98e61,name:_0x2be08c}=_0x45b32b,_0x14e1a5=Se(_0x27960a,_0xb98e61);_0x14e1a5&&(_0x14e1a5[_0x1ea89c(0x201)]=_0x2be08c);}function Sn(_0x1f9288,_0x34bfc4){const _0x35135c=_0x498bf1,{fieldId:_0x4021bd,collapse:_0x4fad45,item:_0x4d8326}=_0x34bfc4;_0x4d8326!==void 0x0?(_0x1f9288['collapseInfo'][_0x4021bd]=_0x1f9288['collapseInfo'][_0x4021bd]||{},_0x1f9288['collapseInfo'][_0x4021bd][_0x4d8326]=_0x4fad45):_0x1f9288[_0x35135c(0x446)][_0x4021bd]=_0x4fad45;}function Pn(_0x28f462,_0x3c3467){const _0x4dbd03=_0x498bf1,{fieldId:_0x1f28be,format:_0x2b0b9d}=_0x3c3467,_0x1a2307=Se(_0x28f462,_0x1f28be);_0x1a2307&&(_0x1a2307[_0x4dbd03(0x2c8)]=_0x2b0b9d);}function Tn(_0x4044f4,_0x38e497){const _0x23a896=_0x498bf1,{fieldId:_0x4be2ea,filterInfo:_0x269d98}=_0x38e497,_0x4ba1c5=Se(_0x4044f4,_0x4be2ea);_0x4ba1c5&&(_0x4ba1c5[_0x23a896(0x1ea)]=_0x269d98);}function yn(_0x113ec4,_0x24c4b7){const _0x409fc5=_0x498bf1,{fieldId:_0x279e49,filterInfo:_0x19ab01}=_0x24c4b7,_0x4f8c16=_0x113ec4[_0x409fc5(0x3e5)][_0x409fc5(0x2eb)](_0x35817e=>_0x35817e[_0x409fc5(0x45a)]!==_0x279e49);_0x19ab01&&_0x4f8c16[_0x409fc5(0x2a1)]({'fieldId':_0x279e49,'filterInfo':_0x19ab01}),_0x113ec4[_0x409fc5(0x3e5)]=_0x4f8c16;}function Mn(_0x372ea8,_0x49338a){const _0x2ff7ae=_0x498bf1,{fieldId:_0xa5d48,subtotalType:_0x37372b}=_0x49338a,_0x1ab302=Se(_0x372ea8,_0xa5d48);_0x1ab302&&(_0x1ab302[_0x2ff7ae(0x3b5)]=_0x37372b);}function Fn(_0x23c724,_0x2ecc9e){const _0x4f0de3=_0x498bf1,{fieldId:_0x5a2991,oldArea:_0x5f1590,area:_0x15ea3b,oldIndex:_0x2a67fa,index:_0x4084d3}=_0x2ecc9e,_0x44d78b=_0x5f1590!==p[_0x4f0de3(0x35b)]['Value']&&_0x15ea3b===p['PivotTableFiledAreaEnum'][_0x4f0de3(0x456)],_0x7149d4=_0x5f1590===p['PivotTableFiledAreaEnum'][_0x4f0de3(0x456)]&&_0x15ea3b!==p[_0x4f0de3(0x35b)][_0x4f0de3(0x456)];if(_0x44d78b||_0x7149d4){const _0xdce70f=Se(_0x23c724,_0x5a2991);_0xdce70f&&(_0x44d78b?(delete _0x23c724[_0x4f0de3(0x3ca)][_0x5a2991],_0x23c724[_0x4f0de3(0x376)][_0x5a2991]=_0xdce70f):(delete _0x23c724['measure'][_0x5a2991],_0x23c724[_0x4f0de3(0x3ca)][_0x5a2991]=_0xdce70f));}const _0x551e9d=Ke(_0x23c724,_0x5f1590),_0x31ecd4=Ke(_0x23c724,_0x15ea3b);_0x551e9d['splice'](_0x2a67fa,0x1),_0x31ecd4['splice'](_0x4084d3,0x0,_0x5a2991);}function wn(_0x27300e,_0x3d5cf2){const _0x3e9214=_0x498bf1,{valuePosition:_0x388218,index:_0x101a9c}=_0x3d5cf2;_0x27300e[_0x3e9214(0x2f6)]=_0x388218,_0x27300e[_0x3e9214(0x3ee)]=_0x101a9c;}function _n(_0xcb03d9,_0x2ad9cf){const _0x4a9445=_0x498bf1,{tableFieldId:_0x343056,sourceName:_0x87f4db,dataFieldId:_0x57e751}=_0x2ad9cf,_0xf992c0=Se(_0xcb03d9,_0x343056);_0xf992c0&&(_0xf992c0['sourceName']=_0x87f4db,_0xf992c0[_0x4a9445(0x1bb)]=_0x57e751);}function Rn(_0x1d9c05,_0x27cee5){const _0x10469d=_0x498bf1,{fieldId:_0x47cb18,sortInfo:_0x1829d5}=_0x27cee5,_0x2e5142=Se(_0x1d9c05,_0x47cb18);_0x2e5142&&(_0x2e5142[_0x10469d(0x42d)]=_0x1829d5);}function Dn(_0x39df38,_0xaff473){const _0x2514e6=_0x498bf1,{options:_0x3ec24a}=_0xaff473;_0x39df38[_0x2514e6(0x3bf)]={..._0x39df38[_0x2514e6(0x3bf)],..._0x3ec24a};}const it={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x20c),'handler'(_0x26f194,_0x2c043d){const _0x57a81a=_0x498bf1;if(!_0x2c043d)return!0x1;if(!!_0x26f194[_0x57a81a(0x3b4)](v[_0x57a81a(0x22e)])[_0x57a81a(0x2fb)](J))return!0x0;const _0x2e932c=_0x26f194[_0x57a81a(0x3b4)](exports[_0x57a81a(0x2b0)]),{pivotTableId:_0x25ced0,fieldJson:_0x2420f8,area:_0x463ef6,index:_0xd57ae5,unitId:_0x3bb7ae,subUnitId:_0x44aea6}=_0x2c043d,_0x3e4cbe=_0x2e932c[_0x57a81a(0x23f)](_0x25ced0);if(!_0x3e4cbe)return!0x1;let _0xb9bd5c;_0x463ef6===p['PivotTableFiledAreaEnum'][_0x57a81a(0x456)]?_0xb9bd5c=p[_0x57a81a(0x31a)](_0x2420f8):_0xb9bd5c=p['createLabelField'](_0x2420f8),_0x3e4cbe['addField'](_0xb9bd5c,_0x463ef6,_0xd57ae5);const _0x41478b=_0x2e932c[_0x57a81a(0x268)](_0x3bb7ae,_0x44aea6,_0x25ced0);In(_0x41478b,_0x2c043d);const _0x18f0f3=_0x2e932c[_0x57a81a(0x467)](_0x3bb7ae,_0x44aea6,_0x25ced0);return _0x2e932c[_0x57a81a(0x295)]({'unitId':_0x3bb7ae,'subUnitId':_0x44aea6,'token':_0x25ced0,'type':j[_0x57a81a(0x249)],'pivotConfig':_0x18f0f3}),!0x0;}},at={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x34d3d2,_0x4ab12b){const _0x2c921b=_0x498bf1;if(!_0x4ab12b)return!0x1;if(!!_0x34d3d2['get'](v[_0x2c921b(0x22e)])[_0x2c921b(0x2fb)](J))return!0x0;const _0x44d827=_0x34d3d2['get'](exports[_0x2c921b(0x2b0)]),{pivotTableId:_0x2a82de,fieldId:_0x579249,unitId:_0x23ee4d,subUnitId:_0x15bc2a}=_0x4ab12b,_0x5825a4=_0x44d827['getPivotTableInstance'](_0x2a82de);if(!_0x5825a4)return!0x1;_0x5825a4[_0x2c921b(0x223)](_0x579249);const _0x4ff040=_0x44d827[_0x2c921b(0x268)](_0x23ee4d,_0x15bc2a,_0x2a82de);Cn(_0x4ff040,_0x4ab12b);const _0x577caf=_0x44d827['getPivotTableConfig'](_0x23ee4d,_0x15bc2a,_0x2a82de);return _0x44d827[_0x2c921b(0x295)]({'unitId':_0x23ee4d,'subUnitId':_0x15bc2a,'token':_0x2a82de,'type':j[_0x2c921b(0x249)],'pivotConfig':_0x577caf}),!0x0;}},st={'type':v['CommandType']['MUTATION'],'id':'sheet.mutation.rename-pivot-field','handler'(_0x3eb009,_0x5b9e40){const _0x1a1078=_0x498bf1;if(!_0x5b9e40)return!0x1;if(!!_0x3eb009['get'](v[_0x1a1078(0x22e)])[_0x1a1078(0x2fb)](J))return!0x0;const _0xeff144=_0x3eb009[_0x1a1078(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x247b90,subUnitId:_0x237bc7,pivotTableId:_0x44f931,fieldId:_0x349899,name:_0x23ac9c}=_0x5b9e40,_0x40a4bd=_0xeff144[_0x1a1078(0x23f)](_0x44f931);if(!_0x40a4bd)return!0x1;_0x40a4bd[_0x1a1078(0x27e)](_0x349899,_0x23ac9c);const _0x4babb5=_0xeff144[_0x1a1078(0x268)](_0x247b90,_0x237bc7,_0x44f931);return bn(_0x4babb5,_0x5b9e40),_0xeff144['addDirtyPivotTable']({'unitId':_0x247b90,'subUnitId':_0x237bc7,'token':_0x44f931,'type':j[_0x1a1078(0x249)]}),!0x0;}},rt={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x3b8),'handler'(_0x7279b6,_0xa3099a){const _0x47cfd3=_0x498bf1;if(!_0xa3099a)return!0x1;if(!!_0x7279b6[_0x47cfd3(0x3b4)](v[_0x47cfd3(0x22e)])[_0x47cfd3(0x2fb)](J))return!0x0;const _0x24c5ef=_0x7279b6['get'](exports[_0x47cfd3(0x2b0)]),{unitId:_0x1a6032,subUnitId:_0x82b8ee,pivotTableId:_0x26845b,fieldId:_0x22decb,collapse:_0x1b97b8,item:_0x3a24a3}=_0xa3099a,_0x2a720f=_0x24c5ef[_0x47cfd3(0x23f)](_0x26845b);if(!_0x2a720f)return!0x1;_0x2a720f['setCollapse'](_0x22decb,_0x1b97b8,_0x3a24a3);const _0x526270=_0x24c5ef[_0x47cfd3(0x268)](_0x1a6032,_0x82b8ee,_0x26845b);return Sn(_0x526270,_0xa3099a),_0x24c5ef[_0x47cfd3(0x295)]({'unitId':_0x1a6032,'subUnitId':_0x82b8ee,'token':_0x26845b,'type':j[_0x47cfd3(0x249)]}),!0x0;}},lt={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x29e),'handler'(_0x1ac052,_0x3c1e04){const _0x3a80c5=_0x498bf1;if(!_0x3c1e04)return!0x1;if(!!_0x1ac052['get'](v['IConfigService'])[_0x3a80c5(0x2fb)](J))return!0x0;const _0x52a4d6=_0x1ac052[_0x3a80c5(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x4330b2,subUnitId:_0x677788,pivotTableId:_0x4802a5,fieldId:_0x462ca0,format:_0x40a194}=_0x3c1e04,_0x32cf44=_0x52a4d6[_0x3a80c5(0x23f)](_0x4802a5);if(!_0x32cf44)return!0x1;_0x32cf44[_0x3a80c5(0x281)](_0x462ca0,_0x40a194);const _0x581e2f=_0x52a4d6['getPivotTableModelConfig'](_0x4330b2,_0x677788,_0x4802a5);return Pn(_0x581e2f,_0x3c1e04),_0x52a4d6[_0x3a80c5(0x295)]({'unitId':_0x4330b2,'subUnitId':_0x677788,'token':_0x4802a5,'type':j['Set']}),!0x0;}},dt={'type':v['CommandType'][_0x498bf1(0x2cc)],'id':_0x498bf1(0x37d),'handler'(_0x4b62ba,_0x22c200){const _0x28ad81=_0x498bf1;if(!_0x22c200)return!0x1;if(!!_0x4b62ba[_0x28ad81(0x3b4)](v['IConfigService'])[_0x28ad81(0x2fb)](J))return!0x0;const _0x342d2b=_0x4b62ba[_0x28ad81(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x6f3c60,subUnitId:_0x11cf1f,pivotTableId:_0x2597ae,fieldId:_0x32e4c6,filterInfo:_0x389406}=_0x22c200,_0x42c56b=_0x342d2b[_0x28ad81(0x23f)](_0x2597ae);if(!_0x42c56b)return!0x1;_0x42c56b['setLabelFilterInfo'](_0x32e4c6,_0x389406);const _0x48bb38=_0x342d2b[_0x28ad81(0x268)](_0x6f3c60,_0x11cf1f,_0x2597ae);return Tn(_0x48bb38,_0x22c200),_0x342d2b['addDirtyPivotTable']({'unitId':_0x6f3c60,'subUnitId':_0x11cf1f,'token':_0x2597ae,'type':j[_0x28ad81(0x249)]}),!0x0;}},ct={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':'sheet.mutation.set-pivot-option','handler'(_0x41c25b,_0x2245de){const _0x3678ae=_0x498bf1;if(!_0x2245de)return!0x1;if(!!_0x41c25b[_0x3678ae(0x3b4)](v['IConfigService'])['getConfig'](J))return!0x0;const _0x2e9ef5=_0x41c25b[_0x3678ae(0x3b4)](exports[_0x3678ae(0x2b0)]),{unitId:_0x26f44d,subUnitId:_0x87e3f0,pivotTableId:_0x42a469,options:_0x42a5e3}=_0x2245de,_0x31ba7e=_0x2e9ef5[_0x3678ae(0x23f)](_0x42a469);if(!_0x31ba7e)return!0x1;_0x31ba7e['setOptions'](_0x42a5e3);const _0x24293d=_0x2e9ef5[_0x3678ae(0x268)](_0x26f44d,_0x87e3f0,_0x42a469);return Dn(_0x24293d,_0x2245de),_0x2e9ef5[_0x3678ae(0x295)]({'unitId':_0x26f44d,'subUnitId':_0x87e3f0,'token':_0x42a469,'type':j[_0x3678ae(0x249)]}),!0x0;}},ut={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x3fec6e,_0x295d46){const _0x4d9779=_0x498bf1;if(!_0x295d46)return!0x1;if(!!_0x3fec6e['get'](v[_0x4d9779(0x22e)])[_0x4d9779(0x2fb)](J))return!0x0;const _0x3511cf=_0x3fec6e[_0x4d9779(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x25fc7e,subUnitId:_0x16c312,pivotTableId:_0x46df7f,sortInfo:_0x15139a,fieldId:_0x2a3865}=_0x295d46,_0x305bf4=_0x3511cf[_0x4d9779(0x23f)](_0x46df7f);if(!_0x305bf4)return!0x1;_0x305bf4[_0x4d9779(0x4a7)](_0x2a3865,_0x15139a);const _0x12ba9f=_0x3511cf[_0x4d9779(0x268)](_0x25fc7e,_0x16c312,_0x46df7f);return Rn(_0x12ba9f,_0x295d46),_0x3511cf[_0x4d9779(0x295)]({'unitId':_0x25fc7e,'subUnitId':_0x16c312,'token':_0x46df7f,'type':j[_0x4d9779(0x249)]}),!0x0;}},ft={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x462),'handler'(_0x4d3da7,_0x2c6b93){const _0x5221ce=_0x498bf1;if(!_0x2c6b93)return!0x1;if(!!_0x4d3da7[_0x5221ce(0x3b4)](v['IConfigService'])[_0x5221ce(0x2fb)](J))return!0x0;const _0x38b53f=_0x4d3da7[_0x5221ce(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x2d538d,subUnitId:_0x2f134c,pivotTableId:_0x2da059,fieldId:_0x14296c,subtotalType:_0x987a9e}=_0x2c6b93,_0x33030e=_0x38b53f['getPivotTableInstance'](_0x2da059);if(!_0x33030e)return!0x1;_0x33030e[_0x5221ce(0x2ad)](_0x14296c,_0x987a9e);const _0x11b2cc=_0x38b53f[_0x5221ce(0x268)](_0x2d538d,_0x2f134c,_0x2da059);return Mn(_0x11b2cc,_0x2c6b93),_0x38b53f[_0x5221ce(0x295)]({'unitId':_0x2d538d,'subUnitId':_0x2f134c,'token':_0x2da059,'type':j[_0x5221ce(0x249)]}),!0x0;}},vt={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':_0x498bf1(0x277),'handler'(_0x5ed937,_0x4020f0){const _0x2c294a=_0x498bf1;if(!_0x4020f0)return!0x1;if(!!_0x5ed937['get'](v[_0x2c294a(0x22e)])[_0x2c294a(0x2fb)](J))return!0x0;const _0x412a76=_0x5ed937['get'](exports[_0x2c294a(0x2b0)]),{unitId:_0x4826bd,subUnitId:_0x420610,pivotTableId:_0x46bfcd,fieldId:_0x17bc38,filterInfo:_0x2672cf}=_0x4020f0,_0x2938a8=_0x412a76[_0x2c294a(0x23f)](_0x46bfcd);if(!_0x2938a8)return!0x1;_0x2938a8[_0x2c294a(0x4ad)](_0x17bc38,_0x2672cf);const _0x3cc78f=_0x412a76[_0x2c294a(0x268)](_0x4826bd,_0x420610,_0x46bfcd);return yn(_0x3cc78f,_0x4020f0),_0x412a76['addDirtyPivotTable']({'unitId':_0x4826bd,'subUnitId':_0x420610,'token':_0x46bfcd,'type':j['Set']}),!0x0;}},gt={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x45f),'handler'(_0x1bf3cd,_0x1469a2){const _0x20c6d6=_0x498bf1;if(!_0x1469a2)return!0x1;if(!!_0x1bf3cd[_0x20c6d6(0x3b4)](v['IConfigService'])[_0x20c6d6(0x2fb)](J))return!0x0;const _0x39fcfb=_0x1bf3cd[_0x20c6d6(0x3b4)](exports[_0x20c6d6(0x2b0)]),{unitId:_0x2d1a06,subUnitId:_0x4d7752,pivotTableId:_0x5d4e35,area:_0x2e656b,index:_0xbaa3e1,fieldId:_0x1d96f6}=_0x1469a2,_0x35efe1=_0x39fcfb[_0x20c6d6(0x23f)](_0x5d4e35);if(!_0x35efe1)return!0x1;_0x35efe1[_0x20c6d6(0x1a6)](_0x1d96f6,_0x2e656b,_0xbaa3e1);const _0x76ebce=_0x39fcfb[_0x20c6d6(0x268)](_0x2d1a06,_0x4d7752,_0x5d4e35);return Fn(_0x76ebce,_0x1469a2),_0x39fcfb['addDirtyPivotTable']({'unitId':_0x2d1a06,'subUnitId':_0x4d7752,'token':_0x5d4e35,'type':j[_0x20c6d6(0x249)]}),!0x0;}},ht={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':_0x498bf1(0x3a8),'handler'(_0xb85edb,_0x9e4b6){const _0x226738=_0x498bf1;if(!_0x9e4b6)return!0x1;if(!!_0xb85edb[_0x226738(0x3b4)](v[_0x226738(0x22e)])['getConfig'](J))return!0x0;const _0x6279e7=_0xb85edb['get'](exports[_0x226738(0x2b0)]),{unitId:_0x4a3045,subUnitId:_0x1bf972,pivotTableId:_0x4e132a,sourceName:_0xa6f1e4,dataFieldId:_0x5ec898,tableFieldId:_0x223878}=_0x9e4b6,_0x5bf1d8=_0x6279e7[_0x226738(0x23f)](_0x4e132a);if(!_0x5bf1d8)return!0x1;_0x5bf1d8['updateFieldSourceInfo'](_0x223878,_0xa6f1e4,_0x5ec898);const _0x41ccc1=_0x6279e7[_0x226738(0x268)](_0x4a3045,_0x1bf972,_0x4e132a);return _n(_0x41ccc1,_0x9e4b6),_0x6279e7[_0x226738(0x295)]({'unitId':_0x4a3045,'subUnitId':_0x1bf972,'token':_0x4e132a,'type':j[_0x226738(0x249)]}),!0x0;}},pt={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':_0x498bf1(0x353),'handler'(_0x14138d,_0x46f01f){const _0x8d6cc6=_0x498bf1;if(!_0x46f01f)return!0x1;if(!!_0x14138d[_0x8d6cc6(0x3b4)](v[_0x8d6cc6(0x22e)])[_0x8d6cc6(0x2fb)](J))return!0x0;const _0x3e7326=_0x14138d[_0x8d6cc6(0x3b4)](exports['SheetsPivotDataSourceModel']),{unitId:_0x1a10b7,subUnitId:_0x5b53fa,pivotTableId:_0x138f89,valuePosition:_0x7b002,index:_0x22cc32}=_0x46f01f,_0x42cf38=_0x3e7326[_0x8d6cc6(0x23f)](_0x138f89);if(!_0x42cf38)return!0x1;_0x42cf38['updateValuePosition'](_0x7b002,_0x22cc32);const _0x4bf89e=_0x3e7326[_0x8d6cc6(0x268)](_0x1a10b7,_0x5b53fa,_0x138f89);return wn(_0x4bf89e,_0x46f01f),_0x3e7326[_0x8d6cc6(0x295)]({'unitId':_0x1a10b7,'subUnitId':_0x5b53fa,'token':_0x138f89,'type':j['Set']}),!0x0;}};function ae(_0x322972,_0x33e727,_0x4e5d18){const _0x299c81=_0x498bf1,{pivotTableId:_0xe371cc,unitId:_0x24acd0,subUnitId:_0x1d934e}=_0x33e727,_0x4f161f=[],_0x3f0efe=[];for(const _0x1ba6ab of _0x4e5d18)switch(_0x1ba6ab['type']){case p[_0x299c81(0x2b2)]['AddField']:{const {fieldJson:_0x1a390c,area:_0x10642e,index:_0x5b0448}=_0x1ba6ab,_0x29e8b4={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldJson':_0x1a390c,'area':_0x10642e,'index':_0x5b0448},_0x4802ca={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x1a390c['id'],'area':_0x10642e,'index':_0x5b0448};_0x4f161f[_0x299c81(0x2a1)]({'id':it['id'],'params':_0x29e8b4}),_0x3f0efe[_0x299c81(0x1b4)]({'id':at['id'],'params':_0x4802ca});}break;case p['PivotTableChangeTypeEnum']['SetSubtotalType']:{const {fieldId:_0x28ef65,newSubtotalType:_0x202053,oldSubtotalType:_0x2e599c}=_0x1ba6ab,_0x1b11e9={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x28ef65,'subtotalType':_0x202053};_0x4f161f[_0x299c81(0x2a1)]({'id':ft['id'],'params':_0x1b11e9});const _0x5e6fb6={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x28ef65,'subtotalType':_0x2e599c};_0x3f0efe[_0x299c81(0x1b4)]({'id':ft['id'],'params':_0x5e6fb6});}break;case p[_0x299c81(0x2b2)][_0x299c81(0x315)]:{const {fieldId:_0x16d5eb,fieldJson:_0x553671,area:_0x10c79f,index:_0x51606b}=_0x1ba6ab,_0x2072d5={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x16d5eb,'index':_0x51606b,'area':_0x10c79f};_0x4f161f['push']({'id':at['id'],'params':_0x2072d5});const _0x1e752c={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldJson':_0x553671,'area':_0x10c79f,'index':_0x51606b};_0x3f0efe[_0x299c81(0x1b4)]({'id':it['id'],'params':_0x1e752c});}break;case p['PivotTableChangeTypeEnum']['RenameField']:{const {fieldId:_0x98effe,oldName:_0x171c70,newName:_0x4bb2aa}=_0x1ba6ab,_0x5300c1={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x98effe,'name':_0x4bb2aa};_0x4f161f[_0x299c81(0x2a1)]({'id':st['id'],'params':_0x5300c1});const _0x4e6381={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x98effe,'name':_0x171c70};_0x3f0efe[_0x299c81(0x1b4)]({'id':st['id'],'params':_0x4e6381});}break;case p[_0x299c81(0x2b2)][_0x299c81(0x396)]:{const {fieldId:_0x1e43c1,oldFilterInfo:_0x32f06c,newFilterInfo:_0x12a13a}=_0x1ba6ab,_0x362128={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x1e43c1,'filterInfo':_0x12a13a};_0x4f161f[_0x299c81(0x2a1)]({'id':dt['id'],'params':_0x362128});const _0x5e737d={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x1e43c1,'filterInfo':_0x32f06c};_0x3f0efe[_0x299c81(0x1b4)]({'id':dt['id'],'params':_0x5e737d});}break;case p[_0x299c81(0x2b2)][_0x299c81(0x1bf)]:{const {fieldId:_0x4e04e2,oldSortInfo:_0x4aa831,newSortInfo:_0x23b082}=_0x1ba6ab,_0x5c3e39={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x4e04e2,'sortInfo':_0x23b082};_0x4f161f[_0x299c81(0x2a1)]({'id':ut['id'],'params':_0x5c3e39});const _0x356e14={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x4e04e2,'sortInfo':_0x4aa831};_0x3f0efe[_0x299c81(0x1b4)]({'id':ut['id'],'params':_0x356e14});}break;case p[_0x299c81(0x2b2)][_0x299c81(0x2dc)]:{const {oldOptions:_0x5df645,newOptions:_0x11233c}=_0x1ba6ab,_0x36cc84={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'options':_0x11233c};_0x4f161f[_0x299c81(0x2a1)]({'id':ct['id'],'params':_0x36cc84});const _0x3e2b65={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'options':_0x5df645};_0x3f0efe[_0x299c81(0x1b4)]({'id':ct['id'],'params':_0x3e2b65});}break;case p[_0x299c81(0x2b2)]['UpdateFieldPosition']:{const {oldArea:_0x18232b,newArea:_0x1936a6,oldIndex:_0x2e0922,newIndex:_0x98c0b8,fieldId:_0x913e5d}=_0x1ba6ab,_0x54f788={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x913e5d,'area':_0x1936a6,'index':_0x98c0b8,'oldArea':_0x18232b,'oldIndex':_0x2e0922};_0x4f161f[_0x299c81(0x2a1)]({'id':gt['id'],'params':_0x54f788});const _0x3dd707={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x913e5d,'area':_0x18232b,'index':_0x2e0922,'oldArea':_0x1936a6,'oldIndex':_0x98c0b8};_0x3f0efe[_0x299c81(0x1b4)]({'id':gt['id'],'params':_0x3dd707});}break;case p[_0x299c81(0x2b2)]['UpdateValuePosition']:{const {oldValuePosition:_0x46400b,newValuePosition:_0x537527,oldIndex:_0x330005,newIndex:_0x514262}=_0x1ba6ab,_0x263533={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'valuePosition':_0x537527,'index':_0x514262};_0x4f161f[_0x299c81(0x2a1)]({'id':pt['id'],'params':_0x263533});const _0x5351e5={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'valuePosition':_0x46400b,'index':_0x330005};_0x3f0efe[_0x299c81(0x1b4)]({'id':pt['id'],'params':_0x5351e5});}break;case p[_0x299c81(0x2b2)]['SetCollapse']:{const {fieldId:_0x9a7fe4,collapse:_0x42eced,item:_0x252954}=_0x1ba6ab,_0xcddc47={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x9a7fe4,'collapse':_0x42eced,'item':_0x252954};_0x4f161f[_0x299c81(0x2a1)]({'id':rt['id'],'params':_0xcddc47});const _0x217da1={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x9a7fe4,'collapse':!_0x42eced,'item':_0x252954};_0x3f0efe[_0x299c81(0x1b4)]({'id':rt['id'],'params':_0x217da1});}break;case p[_0x299c81(0x2b2)]['SetFieldFormat']:{const {newFormat:_0x226f1f,oldFormat:_0x46c6ec,fieldId:_0x2de3a3}=_0x1ba6ab,_0x4a2143={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x2de3a3,'format':_0x226f1f};_0x4f161f[_0x299c81(0x2a1)]({'id':lt['id'],'params':_0x4a2143});const _0x433b56={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x2de3a3,'format':_0x46c6ec};_0x3f0efe['unshift']({'id':lt['id'],'params':_0x433b56});}break;case p['PivotTableChangeTypeEnum']['UpdateSource']:{const {tableFieldId:_0x691972,oldSourceName:_0x3d50a8,newSourceName:_0x1623f9,oldDataFieldId:_0x1dfbd2,newDataFieldId:_0x126630}=_0x1ba6ab,_0x3b4f7f={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'tableFieldId':_0x691972,'sourceName':_0x1623f9,'dataFieldId':_0x126630};_0x4f161f[_0x299c81(0x2a1)]({'id':ht['id'],'params':_0x3b4f7f});const _0x27d103={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'tableFieldId':_0x691972,'sourceName':_0x3d50a8,'dataFieldId':_0x1dfbd2};_0x3f0efe[_0x299c81(0x1b4)]({'id':ht['id'],'params':_0x27d103});}break;case p[_0x299c81(0x2b2)]['SetValueFilter']:{const {fieldId:_0x426d00,filterInfo:_0x2a422c,oldFilterInfo:_0x30b499}=_0x1ba6ab,_0x523075={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x426d00,'filterInfo':_0x2a422c};_0x4f161f[_0x299c81(0x2a1)]({'id':vt['id'],'params':_0x523075});const _0x2f9c1c={'unitId':_0x24acd0,'subUnitId':_0x1d934e,'pivotTableId':_0xe371cc,'fieldId':_0x426d00,'filterInfo':_0x30b499};_0x3f0efe['unshift']({'id':vt['id'],'params':_0x2f9c1c});}}return{'redos':_0x4f161f,'undos':_0x3f0efe};}function fe(_0x6157b6,_0x5e673f){const _0x477d5e=_0x498bf1;var _0x24d0c9;const _0x5eff03=_0x6157b6[_0x477d5e(0x3b4)](exports[_0x477d5e(0x253)]),{cellInfo:_0x1e48b7,view:_0x1d2ab4,isEmpty:_0x2ccbd7}=_0x5e673f;return(_0x24d0c9=_0x5eff03[_0x477d5e(0x23d)][_0x477d5e(0x226)](qt)(At,{'cellInfo':_0x1e48b7,'view':_0x1d2ab4,'isEmpty':_0x2ccbd7}))!=null?_0x24d0c9:At;}const Un=()=>typeof process<'u'&&process[_0x498bf1(0x3f2)]!=null&&process[_0x498bf1(0x3f2)][_0x498bf1(0x35e)]!=null,Ue={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':'sheet.mutation.add-pivot-table','handler'(_0x1745e0,_0x3c02fa){const _0x3bd128=_0x498bf1;var _0x1f7766;if(!_0x3c02fa)return!0x1;const _0x9cf6eb=_0x1745e0['get'](v['IConfigService']);if(!!_0x9cf6eb[_0x3bd128(0x2fb)](J))return!0x0;const _0xb331cd=_0x1745e0[_0x3bd128(0x3b4)](v[_0x3bd128(0x2a7)]),_0x3c038d=_0x1745e0[_0x3bd128(0x3b4)](exports[_0x3bd128(0x2b0)]),{pivotTableId:_0x3f08c3,pivotTableConfig:_0x45b886,collectionConfig:_0x2723f2,unitId:_0x599df8,subUnitId:_0x2ab1f4}=_0x3c02fa,{sourceRangeInfo:_0x46125e,fieldsConfig:_0x1c4b77,targetCellInfo:_0x37bb64}=_0x45b886,_0x1e4923=_0xb331cd['getUnit'](_0x599df8);if(!_0x1e4923||!_0x1e4923['getSheetBySheetId'](_0x2ab1f4))return!0x1;if(!Un()){let _0x33351e=0x0;_0x1e4923[_0x3bd128(0x216)]()[_0x3bd128(0x421)](_0x12a63a=>{const _0x13a190=_0x3bd128;var _0x1ef98d,_0x505f73;_0x33351e+=(_0x505f73=(_0x1ef98d=_0x3c038d[_0x13a190(0x1a4)](_0x599df8,_0x12a63a[_0x13a190(0x1c8)]()))==null?void 0x0:_0x1ef98d[_0x13a190(0x349)])!=null?_0x505f73:0x0;});const _0x393f3a=(_0x1f7766=_0x9cf6eb['getConfig'](ue[_0x3bd128(0x31f)]))!=null?_0x1f7766:{},{ls:_0x40db3c,pbk:_0x173215}=_0x393f3a;if(!Ut(_0x40db3c,_0x173215))throw new v['CustomCommandExecutionError']('limit\x20pivot');const _0x484f54=bt(It,_0x40db3c,_0x173215)['count'];if(_0x33351e>=_0x484f54)throw new v[(_0x3bd128(0x437))](_0x3bd128(0x3f6));}if(!_0x2723f2||!_0x1c4b77)return!0x1;const {collection:_0xb3f180,updateDataFieldList:_0x2ffbbb}=_0x3c038d[_0x3bd128(0x338)](_0x3f08c3,_0x2723f2,_0x46125e,_0x37bb64);_0x3c038d[_0x3bd128(0x297)](_0xb3f180,_0x2ffbbb,_0x46125e);const _0x5cc566=new p['PivotTable'](_0xb3f180,void 0x0,_0x3f08c3);_0x5cc566[_0x3bd128(0x2cd)](_0x1c4b77);const _0x1ffb72=JSON['parse'](JSON[_0x3bd128(0x40b)](_0x45b886));return _0x3c038d[_0x3bd128(0x41d)](_0x599df8,_0x2ab1f4,_0x3f08c3,_0x5cc566,_0x1ffb72),_0x3c038d[_0x3bd128(0x295)]({'unitId':_0x599df8,'subUnitId':_0x2ab1f4,'token':_0x3f08c3,'type':j[_0x3bd128(0x2bb)],'pivotConfig':_0x1ffb72}),!0x0;}},ze={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':'sheet.mutation.remove-pivot-table','handler'(_0x4925bb,_0x1b9321){const _0x9e2979=_0x498bf1;if(!_0x1b9321)return!0x1;if(!!_0x4925bb['get'](v['IConfigService'])[_0x9e2979(0x2fb)](J))return!0x0;const {pivotTableId:_0x500145,unitId:_0x4d5121,subUnitId:_0x3a7b1c}=_0x1b9321,_0xc2f0ad=_0x4925bb[_0x9e2979(0x3b4)](exports[_0x9e2979(0x2b0)]);return _0xc2f0ad[_0x9e2979(0x467)](_0x4d5121,_0x3a7b1c,_0x500145)?(_0xc2f0ad[_0x9e2979(0x295)]({'unitId':_0x4d5121,'subUnitId':_0x3a7b1c,'token':_0x500145,'type':j['Delete']}),_0xc2f0ad[_0x9e2979(0x38c)](_0x4d5121,_0x3a7b1c,_0x500145),!0x0):!0x1;}},Re={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x319),'handler'(_0x3467a3,_0x412a2c){const _0x566bd8=_0x498bf1;if(!_0x412a2c)return!0x1;if(!!_0x3467a3['get'](v[_0x566bd8(0x22e)])[_0x566bd8(0x2fb)](J))return!0x0;const {pivotTableId:_0x47f8d2,targetCellPosition:_0x24b9b2,unitId:_0xdad13c,subUnitId:_0x417bf7}=_0x412a2c,_0x27580a=_0x3467a3[_0x566bd8(0x3b4)](exports['SheetsPivotDataSourceModel']);if(!_0x27580a[_0x566bd8(0x23f)](_0x412a2c[_0x566bd8(0x43e)]))return!0x1;const _0x3aaf48=_0x27580a['getTargetByPivotId'](_0x47f8d2);if(!_0x3aaf48)return!0x1;const _0xd14c54=_0x27580a[_0x566bd8(0x1ca)](_0x3aaf48[_0x566bd8(0x39f)],_0x412a2c['pivotTableId']);if(!_0xd14c54)return!0x1;const _0x417e43=_0x27580a[_0x566bd8(0x467)](_0x3aaf48[_0x566bd8(0x39f)],_0x3aaf48[_0x566bd8(0x36e)],_0x47f8d2);if(!_0x417e43)return!0x1;const _0x34042c=v['Tools'][_0x566bd8(0x398)](_0x417e43);_0x34042c[_0x566bd8(0x235)]={'unitId':_0xdad13c,'subUnitId':_0x417bf7,'row':_0x24b9b2['row'],'col':_0x24b9b2[_0x566bd8(0x463)]};const _0xb172ef=_0xd14c54[_0x566bd8(0x2c7)]();if(_0x3aaf48['subUnitId']===_0x417bf7&&_0x3aaf48['unitId']===_0xdad13c)_0x27580a[_0x566bd8(0x209)](_0xdad13c,_0x417bf7,_0x47f8d2,_0x34042c),_0x27580a['addDirtyPivotTable']({'unitId':_0xdad13c,'subUnitId':_0x417bf7,'token':_0x47f8d2,'type':j[_0x566bd8(0x249)]});else{_0x27580a[_0x566bd8(0x295)]({'unitId':_0x3aaf48[_0x566bd8(0x39f)],'subUnitId':_0x3aaf48[_0x566bd8(0x36e)],'token':_0x47f8d2,'type':j[_0x566bd8(0x2f1)]}),_0x27580a[_0x566bd8(0x38c)](_0x3aaf48[_0x566bd8(0x39f)],_0x3aaf48[_0x566bd8(0x36e)],_0x47f8d2);const _0x4d93b7=_0x27580a[_0x566bd8(0x338)](_0x47f8d2,_0xb172ef,_0x417e43['sourceRangeInfo'],_0x34042c[_0x566bd8(0x235)]),_0x13326d=new p[(_0x566bd8(0x4a1))](_0x4d93b7[_0x566bd8(0x2e4)],void 0x0,_0x47f8d2);_0x13326d[_0x566bd8(0x2cd)](_0x34042c[_0x566bd8(0x345)]),_0x27580a[_0x566bd8(0x41d)](_0xdad13c,_0x417bf7,_0x47f8d2,_0x13326d,_0x34042c),_0x27580a['addDirtyPivotTable']({'unitId':_0xdad13c,'subUnitId':_0x417bf7,'token':_0x47f8d2,'type':j[_0x566bd8(0x2bb)],'pivotConfig':_0x34042c});}return!0x0;}},mt={'type':v[_0x498bf1(0x213)]['MUTATION'],'id':'sheet.mutation.update-pivot-table-source-range','handler'(_0x4cbce6,_0x3c3a36){const _0xf998a1=_0x498bf1;if(!_0x3c3a36)return!0x1;if(!!_0x4cbce6['get'](v[_0xf998a1(0x22e)])[_0xf998a1(0x2fb)](J))return!0x0;const _0x252aba=_0x4cbce6[_0xf998a1(0x3b4)](exports[_0xf998a1(0x2b0)]),{pivotTableId:_0x34edb0,deleteIds:_0x189d45,collectionJSON:_0x48b729,dataRangeInfo:_0x4631e9,unitId:_0x162c46,subUnitId:_0x2069e9}=_0x3c3a36,_0x16c1d9=_0x252aba[_0xf998a1(0x23f)](_0x34edb0),_0x57c668=_0x252aba['getPivotTableConfig'](_0x162c46,_0x2069e9,_0x34edb0);if(!_0x16c1d9||!_0x57c668)return!0x1;const {collection:_0x7f7f17,updateDataFieldList:_0x464539}=_0x252aba[_0xf998a1(0x338)](_0x34edb0,_0x48b729,_0x4631e9,_0x57c668[_0xf998a1(0x235)]);_0x252aba['refreshData'](_0x7f7f17,_0x464539,_0x4631e9),_0x16c1d9[_0xf998a1(0x314)](_0x7f7f17);for(const _0x2a8f0f of _0x189d45)_0x252aba['removeDataField'](_0x4631e9[_0xf998a1(0x39f)],_0x2a8f0f);const _0x35049e=_0x252aba['getPivotTableConfig'](_0x162c46,_0x2069e9,_0x34edb0);return _0x35049e[_0xf998a1(0x2ff)]=JSON[_0xf998a1(0x386)](JSON['stringify'](_0x4631e9)),_0x252aba[_0xf998a1(0x295)]({'unitId':_0x162c46,'subUnitId':_0x2069e9,'token':_0x34edb0,'type':j[_0xf998a1(0x249)]}),!0x0;}},He={'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'id':_0x498bf1(0x22b),'handler'(){return!0x0;}};var En=Object[_0x498bf1(0x2b5)],Nn=(_0x208ba5,_0x488968,_0x183811,_0xa537b2)=>{const _0x52423e=_0x498bf1;for(var _0x10da83=_0xa537b2>0x1?void 0x0:_0xa537b2?En(_0x488968,_0x183811):_0x488968,_0x23f871=_0x208ba5[_0x52423e(0x492)]-0x1,_0x1b39a6;_0x23f871>=0x0;_0x23f871--)(_0x1b39a6=_0x208ba5[_0x23f871])&&(_0x10da83=_0x1b39a6(_0x10da83)||_0x10da83);return _0x10da83;},Bt=(_0x44ec25,_0x315497)=>(_0x30d2f2,_0x5a0119)=>_0x315497(_0x30d2f2,_0x5a0119,_0x44ec25);exports[_0x498bf1(0x271)]=class extends v[_0x498bf1(0x26e)]{constructor(_0x25ed13,_0x7bbd01){const _0x314f1a=_0x498bf1;super(),x(this,'_requestResolvers',new Map()),(this[_0x314f1a(0x1bc)]=_0x25ed13,this[_0x314f1a(0x3f9)]=_0x7bbd01);}[_0x498bf1(0x3f5)](_0x3b307b){const _0x55a59e=_0x498bf1,{version:_0xb6d4e0}=_0x3b307b,_0x369804=this[_0x55a59e(0x30e)][_0x55a59e(0x3b4)](_0xb6d4e0);_0x369804&&(_0x369804(_0x3b307b),this['_requestResolvers'][_0x55a59e(0x2d9)](_0xb6d4e0));}[_0x498bf1(0x410)](_0x49325d){return new Promise((_0xe4d2be,_0x2186be)=>{const _0x538b99=_0x4e9d,_0x1c507d=this[_0x538b99(0x477)]();this[_0x538b99(0x30e)][_0x538b99(0x1ed)](_0x1c507d,_0xe4d2be),this['_commandService'][_0x538b99(0x430)](Ft['id'],{'version':_0x1c507d,..._0x49325d},{'onlyLocal':!0x0});});}[_0x498bf1(0x477)](){const _0x35983e=_0x498bf1;return Math['random']()[_0x35983e(0x3cd)](0x24)[_0x35983e(0x265)](0x2,0x10);}},exports[_0x498bf1(0x271)]=Nn([Bt(0x0,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),Bt(0x1,v[_0x498bf1(0x38a)](v[_0x498bf1(0x2e1)]))],exports[_0x498bf1(0x271)]);const eo={'id':'sheet.mutation.add-group-collection','type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'handler':(_0x41f6b4,_0x935685)=>{const _0x2c8d1c=_0x498bf1;if(!_0x935685)return!0x1;if(!!_0x41f6b4[_0x2c8d1c(0x3b4)](v[_0x2c8d1c(0x22e)])[_0x2c8d1c(0x2fb)](J))return!0x0;const {pivotTableId:_0x3f689c,fieldJSON:_0x43c74a,unitId:_0x26311a,subUnitId:_0xd5ab3e}=_0x935685,_0x5d69df=p['BaseGroupField']['fromJSON'](_0x43c74a);if(!_0x5d69df)return!0x1;const _0x546ba2=_0x41f6b4[_0x2c8d1c(0x3b4)](exports['SheetsPivotDataSourceModel']),_0x48ddcd=_0x546ba2[_0x2c8d1c(0x2c3)](_0x26311a),_0x38fa0c=_0x48ddcd[_0x2c8d1c(0x1ca)](_0x3f689c);_0x48ddcd['addDataFieldWithoutUnitInfo'](_0x5d69df),_0x38fa0c[_0x2c8d1c(0x488)](_0x5d69df[_0x2c8d1c(0x263)](),_0x5d69df[_0x2c8d1c(0x256)]());const _0x461188=_0x38fa0c['getFieldById'](_0x5d69df[_0x2c8d1c(0x39e)]());_0x461188&&_0x5d69df[_0x2c8d1c(0x445)](_0x461188);const _0x7ef011=_0x546ba2[_0x2c8d1c(0x467)](_0x26311a,_0xd5ab3e,_0x3f689c);return _0x546ba2[_0x2c8d1c(0x295)]({'unitId':_0x26311a,'subUnitId':_0xd5ab3e,'token':_0x3f689c,'type':j[_0x2c8d1c(0x249)],'pivotConfig':_0x7ef011}),!0x0;}},to={'id':_0x498bf1(0x1d7),'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'handler':(_0x456d07,_0x3d0edd)=>{const _0x516503=_0x498bf1;if(!_0x3d0edd)return!0x1;if(!!_0x456d07[_0x516503(0x3b4)](v[_0x516503(0x22e)])['getConfig'](J))return!0x0;const {pivotTableId:_0x9b04ff,dataFieldId:_0x36fd93,unitId:_0x4f9f04,subUnitId:_0x203183}=_0x3d0edd,_0x29b2c0=_0x456d07[_0x516503(0x3b4)](exports[_0x516503(0x2b0)]),_0x3392a8=_0x29b2c0[_0x516503(0x2c3)](_0x4f9f04);_0x3392a8[_0x516503(0x1ca)](_0x9b04ff)[_0x516503(0x2f5)](_0x36fd93);let _0x528753=!0x0;for(const _0x3665a9 in _0x3392a8[_0x516503(0x2de)])if(_0x3392a8[_0x516503(0x2de)][_0x3665a9][_0x516503(0x47a)]()[_0x516503(0x26d)](_0x36fd93)){_0x528753=!0x1;break;}_0x528753&&_0x3392a8[_0x516503(0x4a3)](_0x36fd93);const _0x2c3ee5=_0x29b2c0[_0x516503(0x467)](_0x4f9f04,_0x203183,_0x9b04ff);return _0x29b2c0[_0x516503(0x295)]({'unitId':_0x4f9f04,'subUnitId':_0x203183,'token':_0x9b04ff,'type':j[_0x516503(0x249)],'pivotConfig':_0x2c3ee5}),!0x0;}},oo={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x56bd4c,_0x430601){const _0x4e7215=_0x498bf1;if(!_0x430601)return!0x1;const _0x23bd99=_0x56bd4c[_0x4e7215(0x3b4)](v[_0x4e7215(0x2e1)]),_0x1e309a=_0x56bd4c[_0x4e7215(0x3b4)](exports[_0x4e7215(0x271)]),_0x20b492=_0x56bd4c[_0x4e7215(0x3b4)](v['IUndoRedoService']),{pivotTableId:_0x551316,dataFieldId:_0x27c14c,fieldArea:_0x503d6c,index:_0xc34c,unitId:_0x204a1d,subUnitId:_0x3473fb}=_0x430601,_0x236a14=(await _0x1e309a[_0x4e7215(0x410)]({'unitId':_0x204a1d,'subUnitId':_0x3473fb,'pivotTableId':_0x551316,'params':{'type':k[_0x4e7215(0x32c)],'addPivotField':{'dataFieldId':_0x27c14c,'fieldArea':_0x503d6c,'index':_0xc34c}}}))[_0x4e7215(0x436)]['addPivotField'];if(!_0x236a14)return!0x1;const {view:_0x430eab,changesets:_0x12cb79,isEmpty:_0x5c50fa,pivotTableConfig:_0x197577,shouldBeAddedGroupJSON:_0x4239dd}=_0x236a14,_0x4c23b6=_0x197577['targetCellInfo'],_0x43fa4d=new p[(_0x4e7215(0x1fc))]();_0x43fa4d['formJSON'](_0x430eab);const _0x5f108a={'cellInfo':_0x4c23b6,'view':_0x43fa4d,'isEmpty':_0x5c50fa};if(!await _0x56bd4c[_0x4e7215(0x3b4)](exports[_0x4e7215(0x253)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](re)(!0x0,_0x5f108a))return!0x1;const _0x3c42b9=le(_0x56bd4c,_0x43fa4d,_0x4c23b6,_0x5c50fa),_0xf6d50e=fe(_0x56bd4c,_0x5f108a),{undos:_0x4265de,redos:_0x3edfd4}=ae(_0x23bd99,{'pivotTableId':_0x551316,'unitId':_0x204a1d,'subUnitId':_0x3473fb},_0x12cb79);return _0x4239dd&&(_0x3edfd4[_0x4e7215(0x1b4)]({'id':eo['id'],'params':{'pivotTableId':_0x551316,'fieldJSON':_0x4239dd,'unitId':_0x204a1d,'subUnitId':_0x3473fb}}),_0x4265de['push']({'id':to['id'],'params':{'pivotTableId':_0x551316,'dataFieldId':_0x4239dd['id'],'unitId':_0x204a1d,'subUnitId':_0x3473fb}})),v['sequenceExecute']([..._0x3c42b9[_0x4e7215(0x39d)],..._0xf6d50e[_0x4e7215(0x39d)],..._0x3edfd4],_0x23bd99),_0x20b492[_0x4e7215(0x1b6)]({'unitID':_0x204a1d,'redoMutations':[..._0x3c42b9[_0x4e7215(0x39d)],..._0xf6d50e[_0x4e7215(0x39d)],..._0x3edfd4],'undoMutations':[..._0x3c42b9[_0x4e7215(0x2a2)],..._0xf6d50e[_0x4e7215(0x2a2)],..._0x4265de]}),!0x0;}},no={'type':v['CommandType'][_0x498bf1(0x3fc)],'id':_0x498bf1(0x212),async 'handler'(_0x4983ac,_0x40887e){const _0x51b6c6=_0x498bf1;if(!_0x40887e)return!0x1;const {sourceDataInfo:_0x41af7c,pivotTableConfig:_0x5dcc1b}=_0x40887e;if(!_0x41af7c||!_0x5dcc1b)return!0x1;const {unitId:_0xcb58c2,subUnitId:_0x2bec08,range:_0x576f5d}=_0x41af7c,_0x448b30=_0x4983ac[_0x51b6c6(0x3b4)](v[_0x51b6c6(0x2a7)]),_0x4a8eb0=_0x4983ac[_0x51b6c6(0x3b4)](exports[_0x51b6c6(0x271)]),_0x2df95e=_0x4983ac['get'](v[_0x51b6c6(0x24c)]),_0x4983eb=_0x4983ac[_0x51b6c6(0x3b4)](v['ICommandService']),_0x23ef8e=_0x448b30[_0x51b6c6(0x48a)](_0xcb58c2);if(!_0x23ef8e)return!0x1;const _0x15315a=_0x23ef8e['getSheetBySheetId'](_0x2bec08);if(!_0x15315a)return!0x1;const _0x4f16ca=p[_0x51b6c6(0x3c9)](0x8),_0x56cdcf=_0x576f5d||{'startRow':0x0,'startColumn':0x0,'endRow':_0x15315a['getRowCount']()-0x1,'endColumn':_0x15315a['getColumnCount']()-0x1};_0x56cdcf['rangeType']=v['RANGE_TYPE'][_0x51b6c6(0x451)];const _0x4ff2f9=(await _0x4a8eb0[_0x51b6c6(0x410)]({'unitId':_0xcb58c2,'subUnitId':_0x2bec08,'pivotTableId':_0x4f16ca,'params':{'type':k[_0x51b6c6(0x42b)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0xcb58c2,'sheetName':_0x15315a[_0x51b6c6(0x256)](),'subUnitId':_0x2bec08,'range':_0x56cdcf},'pivotTableId':_0x4f16ca,'pivotTableIndexConfig':_0x5dcc1b}}}))[_0x51b6c6(0x436)][_0x51b6c6(0x3d4)];if(!_0x4ff2f9)return!0x1;const {isEmpty:_0x4a8d81,fieldsConfig:_0xa8b6e9,collectionConfig:_0x5b79bb,changesets:_0x3cf0b4}=_0x4ff2f9,_0xc61657=_0x23ef8e[_0x51b6c6(0x216)]()[_0x51b6c6(0x492)],_0x105bde=v[_0x51b6c6(0x200)]({'rowCount':_0x15315a[_0x51b6c6(0x312)]()-0x1,'columnCount':_0x15315a[_0x51b6c6(0x299)]()-0x1});_0x105bde['id']=v['generateRandomId'](),_0x105bde[_0x51b6c6(0x407)]=_0x23ef8e[_0x51b6c6(0x4ae)](''+_0x2df95e['t']('sheets.tabs.sheet'));const _0x103ed5={'index':_0xc61657,'sheet':_0x105bde,'unitId':_0xcb58c2},{redos:_0x807021}=ae(_0x4983eb,{'pivotTableId':_0x4f16ca,'unitId':_0xcb58c2,'subUnitId':_0x105bde['id']},_0x3cf0b4),_0x2ccc66=[{'id':V['InsertSheetCommand']['id'],'params':_0x103ed5},{'id':Ue['id'],'params':{'unitId':_0xcb58c2,'subUnitId':_0x105bde['id'],'pivotTableId':_0x4f16ca,'pivotTableConfig':{'isEmpty':_0x4a8d81,'fieldsConfig':_0xa8b6e9,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0xcb58c2,'subUnitId':_0x105bde['id']},'sourceRangeInfo':{'subUnitId':_0x2bec08,'unitId':_0xcb58c2,'range':_0x56cdcf,'sheetName':_0x15315a['getName']()}},'collectionConfig':_0x5b79bb}},..._0x807021];return v[_0x51b6c6(0x317)](_0x2ccc66,_0x4983eb),!0x0;}},io={'type':v['CommandType']['COMMAND'],'id':'sheet.command.add-pivot-table',async 'handler'(_0x8f2514,_0x1375ec){const _0x28d796=_0x498bf1;var _0x286bd4,_0x87a513;const _0x432d24=_0x8f2514['get'](v[_0x28d796(0x2e1)]),_0x434425=_0x8f2514[_0x28d796(0x3b4)](v[_0x28d796(0x2a7)]),_0x16df98=_0x8f2514['get'](v['LocaleService']),_0x2c5215=_0x8f2514['get'](exports[_0x28d796(0x271)]),_0x437a9a=_0x8f2514[_0x28d796(0x3b4)](v[_0x28d796(0x1bd)]),_0x40af02=_0x8f2514[_0x28d796(0x3b4)](exports[_0x28d796(0x48c)]),_0x2456ce=_0x8f2514[_0x28d796(0x3b4)](v[_0x28d796(0x22e)]);if(!_0x1375ec)return!0x1;const {pivotTableConfig:_0x2f1d27,positionType:_0x5d6bd3}=_0x1375ec,{targetCellInfo:_0x2fad2a,sourceRangeInfo:_0x7d9a2b}=_0x2f1d27,{unitId:_0x560206,subUnitId:_0x5165c2}=_0x2fad2a,_0x4e3137=_0x434425[_0x28d796(0x48a)](_0x560206);if(!_0x4e3137)return!0x1;let _0x3104ca=0x0;_0x4e3137[_0x28d796(0x216)]()[_0x28d796(0x421)](_0x1269db=>{const _0x17e945=_0x28d796;var _0x35bf76,_0xd543ae;_0x3104ca+=(_0xd543ae=(_0x35bf76=_0x40af02[_0x17e945(0x1a4)](_0x560206,_0x1269db['getSheetId']()))==null?void 0x0:_0x35bf76[_0x17e945(0x349)])!=null?_0xd543ae:0x0;});const _0x51a57c=(_0x286bd4=_0x2456ce['getConfig'](ue[_0x28d796(0x31f)]))!=null?_0x286bd4:{},{ls:_0x2f21d1,pbk:_0x25208a}=_0x51a57c;if(!Ut(_0x2f21d1,_0x25208a))return!0x1;const _0x3233ca=bt(It,_0x2f21d1,_0x25208a)['count'];if(_0x3104ca>=_0x3233ca)return!0x1;const _0x45525c=_0x1375ec[_0x28d796(0x43e)]||p[_0x28d796(0x3c9)](0x8),_0x28baa0=(await _0x2c5215[_0x28d796(0x410)]({'unitId':_0x560206,'subUnitId':_0x5165c2,'pivotTableId':_0x45525c,'params':{'type':k[_0x28d796(0x406)],'addPivotTable':{'sourceRangeInfo':_0x7d9a2b,'pivotTableId':_0x45525c}}}))['result'][_0x28d796(0x41d)];if(!_0x28baa0)return!0x1;const {view:_0x554e64,isEmpty:_0x4ac8a5,fieldsConfig:_0x3d2411,collectionConfig:_0x314330}=_0x28baa0,_0x9b5b3=[],_0x5da548=[];if(_0x5d6bd3===Mt[_0x28d796(0x2c6)]){const _0x2ab984=_0x4e3137[_0x28d796(0x216)]()[_0x28d796(0x492)],_0x2cb3fe=v[_0x28d796(0x200)]({});_0x2cb3fe['id']=_0x2f1d27[_0x28d796(0x235)][_0x28d796(0x36e)],_0x2cb3fe[_0x28d796(0x407)]=(_0x87a513=_0x2f1d27[_0x28d796(0x235)][_0x28d796(0x429)])!=null?_0x87a513:_0x4e3137['generateNewSheetName'](''+_0x16df98['t'](_0x28d796(0x465)));const _0x4af309={'index':_0x2ab984,'sheet':_0x2cb3fe,'unitId':_0x560206},_0x499f47=V['InsertSheetUndoMutationFactory'](_0x8f2514,_0x4af309);_0x9b5b3[_0x28d796(0x2a1)]({'id':V[_0x28d796(0x2da)]['id'],'params':_0x499f47}),_0x5da548[_0x28d796(0x2a1)]({'id':V['InsertSheetMutation']['id'],'params':_0x4af309});}else{if(!_0x4e3137['getSheetBySheetId'](_0x5165c2))return!0x1;const _0x1d1502=le(_0x8f2514,new p[(_0x28d796(0x1fc))](),_0x2fad2a,!0x0);_0x5da548[_0x28d796(0x2a1)](..._0x1d1502['redos']),_0x9b5b3['push'](..._0x1d1502[_0x28d796(0x2a2)]);const _0x1ce0e8={'cellInfo':_0x2fad2a,'view':_0x554e64,'isEmpty':_0x4ac8a5};if(!await _0x8f2514[_0x28d796(0x3b4)](exports['SheetsPivotTableService'])[_0x28d796(0x373)][_0x28d796(0x1c9)](re)(!0x0,_0x1ce0e8))return!0x1;const _0x1d04dc=fe(_0x8f2514,_0x1ce0e8);_0x5da548['push'](..._0x1d04dc[_0x28d796(0x39d)]),_0x9b5b3[_0x28d796(0x2a1)](..._0x1d04dc[_0x28d796(0x2a2)]);}return _0x5da548[_0x28d796(0x2a1)]({'id':Ue['id'],'params':{'unitId':_0x2fad2a['unitId'],'subUnitId':_0x2fad2a['subUnitId'],'pivotTableId':_0x45525c,'pivotTableConfig':{'targetCellInfo':_0x2fad2a,'sourceRangeInfo':_0x7d9a2b,'fieldsConfig':_0x3d2411},'collectionConfig':_0x314330}}),_0x9b5b3[_0x28d796(0x1b4)]({'id':ze['id'],'params':{'unitId':_0x560206,'subUnitId':_0x5165c2,'pivotTableId':_0x45525c}}),v[_0x28d796(0x317)](_0x5da548,_0x432d24)&&_0x437a9a['pushUndoRedo']({'unitID':_0x560206,'undoMutations':_0x9b5b3,'redoMutations':_0x5da548}),!0x0;}},ao={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x275),async 'handler'(_0xcd4ba1,_0x1904fb){const _0x28f783=_0x498bf1;if(!_0x1904fb)return!0x1;const _0x347734=_0xcd4ba1[_0x28f783(0x3b4)](v[_0x28f783(0x2e1)]),_0x21804e=_0xcd4ba1[_0x28f783(0x3b4)](exports[_0x28f783(0x271)]),_0xc8c445=_0xcd4ba1['get'](v[_0x28f783(0x1bd)]),{pivotTableId:_0x18049,fieldId:_0x52e182,area:_0x2b6d90,index:_0x4477a6,unitId:_0xeecc37,subUnitId:_0x115c25}=_0x1904fb,_0x15eee4=(await _0x21804e[_0x28f783(0x410)]({'unitId':_0xeecc37,'subUnitId':_0x115c25,'pivotTableId':_0x18049,'params':{'type':k['MovePivotField'],'movePivotField':{'fieldId':_0x52e182,'area':_0x2b6d90,'index':_0x4477a6}}}))[_0x28f783(0x436)][_0x28f783(0x1e7)];if(!_0x15eee4)return!0x1;const {changesets:_0x107c6a,view:_0x43916f,isEmpty:_0x12da30,pivotTableConfig:_0x4d9279}=_0x15eee4,_0x38ab88=_0x4d9279[_0x28f783(0x235)],_0x45603d=new p['PivotView']();_0x45603d[_0x28f783(0x28f)](_0x43916f);const _0x44507d={'cellInfo':_0x38ab88,'view':_0x45603d,'isEmpty':_0x12da30};if(!await _0xcd4ba1[_0x28f783(0x3b4)](exports[_0x28f783(0x253)])[_0x28f783(0x373)][_0x28f783(0x1c9)](re)(!0x0,_0x44507d))return!0x1;const _0x5cac01=le(_0xcd4ba1,_0x45603d,_0x38ab88,_0x12da30),_0x5c17d8=fe(_0xcd4ba1,_0x44507d),{redos:_0x3c621e,undos:_0xeb31f5}=ae(_0x347734,{'pivotTableId':_0x18049,'unitId':_0xeecc37,'subUnitId':_0x115c25},_0x107c6a);return v[_0x28f783(0x317)]([..._0x5cac01[_0x28f783(0x39d)],..._0x5c17d8['redos'],..._0x3c621e],_0x347734),_0xc8c445[_0x28f783(0x1b6)]({'unitID':_0xeecc37,'redoMutations':[..._0x5cac01[_0x28f783(0x39d)],..._0x5c17d8['redos'],..._0x3c621e],'undoMutations':[..._0x5cac01[_0x28f783(0x2a2)],..._0x5c17d8[_0x28f783(0x2a2)],..._0xeb31f5]}),!0x0;}},so={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x44b),async 'handler'(_0x1e091c,_0x52ab99){const _0x14ff93=_0x498bf1;var _0x275125;if(!_0x52ab99)return!0x1;const _0x319021=_0x1e091c['get'](v[_0x14ff93(0x2a7)]),_0x16f0c0=V['getSheetCommandTarget'](_0x319021);if(!_0x16f0c0)return!0x1;const {unitId:_0x1374b3,subUnitId:_0x1fe68d,workbook:_0x426b0a}=_0x16f0c0,{row:_0x5d8743,col:_0x4cdfb7}=_0x52ab99,_0xa6ce15=_0x1e091c[_0x14ff93(0x3b4)](exports[_0x14ff93(0x1c7)]),_0x8fe3b5=_0xa6ce15[_0x14ff93(0x424)](_0x1374b3,_0x1fe68d,_0x5d8743,_0x4cdfb7);if(!_0x8fe3b5)return!0x1;const _0xad13c=(_0x275125=_0xa6ce15[_0x14ff93(0x45b)](_0x1374b3,_0x1fe68d,_0x8fe3b5))==null?void 0x0:_0x275125[_0x14ff93(0x3a6)];if(!_0xad13c)return!0x1;const _0x1f2e59=_0x1e091c[_0x14ff93(0x3b4)](exports[_0x14ff93(0x48c)])['getPivotTableConfig'](_0x1374b3,_0x1fe68d,_0x8fe3b5);if(!_0x1f2e59)return!0x1;const {rowInfo:_0x561ccf,colInfo:_0x1d193a}=_0xad13c,_0x2dad30=_0x561ccf[_0x5d8743][_0x14ff93(0x289)],_0x59ef38=_0x1d193a[_0x4cdfb7]['paths'],_0x27d116=_0x561ccf[_0x5d8743]['level'],_0x548f79=_0x1d193a[_0x4cdfb7]['level'],_0x213db7=_0x2dad30[_0x14ff93(0x2ec)](_0x59ef38),_0x4be5e4=_0x1f2e59[_0x14ff93(0x345)][_0x14ff93(0x3af)]['slice'](0x0,_0x27d116),_0x50ff25=_0x1f2e59['fieldsConfig'][_0x14ff93(0x2f2)][_0x14ff93(0x254)](0x0,_0x548f79),_0xf3ca8f=_0x4be5e4[_0x14ff93(0x2ec)](_0x50ff25),_0x258160=_0x213db7[_0x14ff93(0x241)]((_0x24937e,_0x14c742)=>[_0x24937e,_0xf3ca8f[_0x14c742]]),_0x16c938=(await _0x1e091c[_0x14ff93(0x3b4)](exports['SheetsPivotRPCService'])['getPivotDisplayConfig']({'unitId':_0x1374b3,'subUnitId':_0x1fe68d,'pivotTableId':_0x8fe3b5,'params':{'type':k['DrillDown'],'drillDown':{'tuple':_0x258160}}}))[_0x14ff93(0x436)][_0x14ff93(0x2e2)];if(!_0x16c938)return!0x1;const {indexes:_0x34239b,range:_0x195cc7,sourceUnitId:_0x3df02c,sourceSubUnitId:_0x12a8cb,formatMap:_0x3c5222}=_0x16c938,{startRow:_0x446bb7,endRow:_0x10a81e,startColumn:_0x56b2e1,endColumn:_0x1c18dd}=_0x195cc7,_0x3e54d6=new v[(_0x14ff93(0x2fa))](),_0x8c0dd5=_0x10a81e-_0x446bb7,_0x23e06b=_0x1c18dd-_0x56b2e1,_0x166e89={},_0x93d6e=V['getSheetCommandTarget'](_0x319021,{'unitId':_0x3df02c,'subUnitId':_0x12a8cb});if(!_0x93d6e)return!0x1;const _0xd2b827=te['colStyle'],_0x81cd97=te[_0x14ff93(0x2bd)],_0x2e64fe=te[_0x14ff93(0x2bd)],_0x1bd027=_0x426b0a[_0x14ff93(0x33c)]()['setValue'](_0xd2b827),_0x1f87da=_0x426b0a[_0x14ff93(0x33c)]()[_0x14ff93(0x2a3)](_0x81cd97),_0x2372bc=_0x426b0a['getStyles']()['setValue'](_0x2e64fe),{worksheet:_0x3e5940}=_0x93d6e;let _0x2350d4=0x0;const _0x4a8a00=0x1;_0x34239b['forEach'](_0xcae165=>{const _0x19f2de=_0x14ff93;for(let _0x3ae339=0x0;_0x3ae339<=_0x1c18dd-_0x56b2e1;_0x3ae339++)_0x3e54d6[_0x19f2de(0x2a3)](_0x2350d4,_0x3ae339,_0x3e5940[_0x19f2de(0x360)](_0xcae165+_0x195cc7['startRow']+_0x4a8a00,_0x3ae339));_0x2350d4++;});for(let _0x3bb4e7=_0x56b2e1;_0x3bb4e7<=_0x1c18dd;_0x3bb4e7++){const _0x29f986=_0x3e5940[_0x14ff93(0x360)](_0x446bb7,_0x3bb4e7);_0x166e89[_0x446bb7]||(_0x166e89[_0x446bb7]={}),_0x166e89[_0x446bb7][_0x3bb4e7]={..._0x29f986,'s':_0x1bd027};}let _0x32cb99=0x1;const _0x50cbdc={},_0x215ad={};_0x3e54d6[_0x14ff93(0x1cf)]((_0x4f3879,_0x1b262d)=>{const _0x19f1b0=_0x14ff93;_0x1b262d[_0x19f1b0(0x421)](_0x111d38=>{const _0x16f1a7=_0x19f1b0,_0x2d5494=_0x3e54d6['getValue'](_0x4f3879,_0x111d38);if(_0x166e89[_0x32cb99]||(_0x166e89[_0x32cb99]={}),_0x166e89[_0x32cb99][_0x111d38]={..._0x2d5494,'s':_0x32cb99%0x2===0x0?_0x2372bc:_0x1f87da},_0x3c5222[_0x111d38]&&_0x4f3879>=0x0){const _0x77e9a5=_0x32cb99%0x2===0x0;let _0x4a3198=_0x77e9a5?_0x215ad[_0x111d38]:_0x50cbdc[_0x111d38];_0x4a3198||(_0x4a3198=_0x426b0a[_0x16f1a7(0x33c)]()[_0x16f1a7(0x2a3)]({..._0x77e9a5?_0x2e64fe:_0x81cd97,'n':{'pattern':_0x3c5222[_0x111d38]}}),_0x77e9a5?_0x215ad[_0x111d38]=_0x4a3198:_0x50cbdc[_0x111d38]=_0x4a3198),_0x166e89[_0x32cb99][_0x111d38]['s']=_0x4a3198;}}),_0x32cb99++;});const _0x1f8adb=new v[(_0x14ff93(0x2fa))](_0x166e89),_0x1f2320={};_0x1f8adb[_0x14ff93(0x36a)]((_0x204b5f,_0x1e9f44,_0x4a52ac)=>{_0x1f2320[_0x204b5f]||(_0x1f2320[_0x204b5f]={}),_0x1f2320[_0x204b5f][_0x1e9f44]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0xa8022b=[],_0x62d909=[],_0x299dea=_0x426b0a['getSheets']()[_0x14ff93(0x492)],_0x4d4f9e=v[_0x14ff93(0x200)]({'rowCount':Math['max'](v[_0x14ff93(0x2d4)],_0x8c0dd5+0xa),'columnCount':Math[_0x14ff93(0x327)](v[_0x14ff93(0x32f)],_0x23e06b+0x5)}),_0x590754=_0x1e091c[_0x14ff93(0x3b4)](v[_0x14ff93(0x24c)]);_0x4d4f9e['id']=v[_0x14ff93(0x228)](),_0x4d4f9e[_0x14ff93(0x407)]=_0x426b0a[_0x14ff93(0x4ae)](''+_0x590754['t'](_0x14ff93(0x465)));const _0xf67702={'index':_0x299dea,'sheet':_0x4d4f9e,'unitId':_0x1374b3},_0x44d43a=V['InsertSheetUndoMutationFactory'](_0x1e091c,_0xf67702);_0x62d909[_0x14ff93(0x2a1)]({'id':V['InsertSheetMutation']['id'],'params':_0xf67702}),_0xa8022b[_0x14ff93(0x2a1)]({'id':V[_0x14ff93(0x2da)]['id'],'params':_0x44d43a}),_0x62d909[_0x14ff93(0x2a1)]({'id':V['SetRangeValuesMutation']['id'],'params':{'unitId':_0x1374b3,'subUnitId':_0x4d4f9e['id'],'cellValue':_0x166e89}}),_0xa8022b[_0x14ff93(0x1b4)]({'id':V[_0x14ff93(0x2e5)]['id'],'params':{'unitId':_0x1374b3,'subUnitId':_0x4d4f9e['id'],'cellValue':_0x1f2320}});const _0x1e703b={'startRow':0x0,'startColumn':0x0,'endRow':_0x32cb99-0x1,'endColumn':_0x1c18dd};_0x62d909[_0x14ff93(0x2a1)]({'id':Ot[_0x14ff93(0x377)]['id'],'params':{'unitId':_0x1374b3,'subUnitId':_0x4d4f9e['id'],'range':_0x1e703b}}),_0xa8022b['unshift']({'id':Ot['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x1374b3,'subUnitId':_0x4d4f9e['id']}});const _0x403eaa=_0x1e091c[_0x14ff93(0x3b4)](v['ICommandService']);return v[_0x14ff93(0x317)](_0x62d909,_0x403eaa)&&_0x1e091c['get'](v[_0x14ff93(0x1bd)])[_0x14ff93(0x1b6)]({'unitID':_0x1374b3,'undoMutations':_0xa8022b,'redoMutations':_0x62d909}),!0x0;}},ro={'type':v['CommandType'][_0x498bf1(0x3fc)],'id':_0x498bf1(0x316),async 'handler'(_0x3eb609,_0x2d03b2){const _0x45594c=_0x498bf1;if(!_0x2d03b2)return!0x1;const _0x4358a3=_0x3eb609[_0x45594c(0x3b4)](v['ICommandService']),_0x32fbff=_0x3eb609[_0x45594c(0x3b4)](exports['SheetsPivotRPCService']),_0x664b08=_0x3eb609['get'](v[_0x45594c(0x1bd)]),{pivotTableId:_0x2fdf48,fieldIds:_0x4fe905,unitId:_0x58e640,subUnitId:_0x29cddb}=_0x2d03b2,_0x1005c2=(await _0x32fbff['getPivotDisplayConfig']({'unitId':_0x58e640,'subUnitId':_0x29cddb,'pivotTableId':_0x2fdf48,'params':{'type':k[_0x45594c(0x3ce)],'removePivotField':{'fieldIds':_0x4fe905}}}))['result'][_0x45594c(0x1df)];if(!_0x1005c2)return!0x1;const {view:_0xa82928,changesets:_0x1d12d3,isEmpty:_0x3665c9,pivotTableConfig:_0x4f930d}=_0x1005c2,_0x3237cd=_0x4f930d['targetCellInfo'],_0x3a3cc0=new p['PivotView']();_0x3a3cc0[_0x45594c(0x28f)](_0xa82928);const _0x8752e0={'cellInfo':_0x3237cd,'view':_0x3a3cc0,'isEmpty':_0x3665c9};if(!await _0x3eb609[_0x45594c(0x3b4)](exports['SheetsPivotTableService'])[_0x45594c(0x373)][_0x45594c(0x1c9)](re)(!0x0,_0x8752e0))return!0x1;const _0x4279f6=le(_0x3eb609,_0x3a3cc0,_0x3237cd,_0x3665c9),_0x4fd5d3=fe(_0x3eb609,_0x8752e0),{redos:_0xe4326,undos:_0x1491c8}=ae(_0x4358a3,{'pivotTableId':_0x2fdf48,'unitId':_0x58e640,'subUnitId':_0x29cddb},_0x1d12d3);return v[_0x45594c(0x317)]([..._0x4279f6[_0x45594c(0x39d)],..._0x4fd5d3[_0x45594c(0x39d)],..._0xe4326],_0x4358a3),_0x664b08[_0x45594c(0x1b6)]({'unitID':_0x58e640,'redoMutations':[..._0x4279f6['redos'],..._0x4fd5d3[_0x45594c(0x39d)],..._0xe4326],'undoMutations':[..._0x4279f6[_0x45594c(0x2a2)],..._0x4fd5d3[_0x45594c(0x2a2)],..._0x1491c8]}),!0x0;}},lo={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x408),async 'handler'(_0x20dfe4,_0x33f539){const _0x3e66ed=_0x498bf1;var _0x2ace5e;const _0x1216af=_0x20dfe4[_0x3e66ed(0x3b4)](v['ICommandService']),_0x2f54a3=_0x20dfe4['get'](exports[_0x3e66ed(0x271)]),_0x1d5521=_0x20dfe4['get'](exports[_0x3e66ed(0x1c7)]),_0x34af07=_0x20dfe4['get'](v['IUniverInstanceService']),_0x553fdc=_0x20dfe4[_0x3e66ed(0x3b4)](v[_0x3e66ed(0x1bd)]);if(!_0x33f539)return!0x1;const {unitId:_0x4eba0a,subUnitId:_0x592b70,row:_0x5954ad,col:_0x48df60,collapse:_0x3f71ac}=_0x33f539,_0xfd0e3=_0x34af07['getUnit'](_0x4eba0a);if(!_0xfd0e3||!_0xfd0e3[_0x3e66ed(0x1b3)](_0x592b70))return!0x1;const _0x18f12e=_0x1d5521[_0x3e66ed(0x424)](_0x4eba0a,_0x592b70,_0x5954ad,_0x48df60);if(!_0x18f12e)return!0x1;const _0x481b07=_0x1d5521[_0x3e66ed(0x45b)](_0x4eba0a,_0x592b70,_0x18f12e);if(!_0x481b07)return!0x1;const _0x225c7c=v[_0x3e66ed(0x1b9)](_0x5954ad,_0x48df60),{rangesInfo:_0x374795,areaInfo:_0x179ed8,headerMap:_0x7ba943}=_0x481b07;if(!_0x374795||!_0x179ed8||!_0x7ba943)return!0x1;const _0xc8f7d6=Object[_0x3e66ed(0x418)](_0x374795)[_0x3e66ed(0x392)](_0x2c45d2=>_0x374795[_0x2c45d2][_0x3e66ed(0x2a6)](_0x154d3a=>v[_0x3e66ed(0x2f8)]['contains'](_0x154d3a,_0x225c7c)));let _0x216ec4;_0xc8f7d6===_0x3e66ed(0x3d1)?_0x216ec4=_0x7ba943['rowHeaderMap'][_0x48df60]:_0xc8f7d6==='colRanges'&&(_0x216ec4=_0x7ba943[_0x3e66ed(0x30c)][_0x5954ad]);const _0x65bfa8=_0x216ec4==null?void 0x0:_0x216ec4[_0x3e66ed(0x3d9)],_0x35cd02=(_0x2ace5e=_0x1d5521[_0x3e66ed(0x309)](_0x4eba0a,_0x592b70,_0x5954ad,_0x48df60))==null?void 0x0:_0x2ace5e['v'];if(_0x35cd02==null||!_0x18f12e||!_0x65bfa8)return!0x1;const _0x4fc574=await _0x2f54a3[_0x3e66ed(0x410)]({'unitId':_0x4eba0a,'subUnitId':_0x592b70,'pivotTableId':_0x18f12e,'params':{'type':k['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x65bfa8,'collapse':_0x3f71ac,'item':_0x35cd02}}}),_0x4b6ac0=_0x4fc574==null?void 0x0:_0x4fc574['result'][_0x3e66ed(0x49d)];if(!_0x4b6ac0)return!0x1;const {view:_0x46c3b7,pivotTableConfig:_0x39c95e,isEmpty:_0x471818,changesets:_0x1479ef}=_0x4b6ac0,_0x268a21=new p['PivotView']();_0x268a21[_0x3e66ed(0x28f)](_0x46c3b7);const _0x50d311=_0x39c95e[_0x3e66ed(0x235)],_0x333cd7={'cellInfo':_0x50d311,'view':_0x268a21,'isEmpty':_0x471818};if(!await _0x20dfe4[_0x3e66ed(0x3b4)](exports['SheetsPivotTableService'])[_0x3e66ed(0x373)][_0x3e66ed(0x1c9)](re)(!0x0,_0x333cd7))return!0x1;const _0x8933d0=le(_0x20dfe4,_0x268a21,_0x50d311,_0x471818),_0x30178b=fe(_0x20dfe4,_0x333cd7),{redos:_0x536848,undos:_0x2dd74e}=ae(_0x1216af,{'pivotTableId':_0x18f12e,'unitId':_0x4eba0a,'subUnitId':_0x592b70},_0x1479ef);return v[_0x3e66ed(0x317)]([..._0x8933d0[_0x3e66ed(0x39d)],..._0x30178b[_0x3e66ed(0x39d)],..._0x536848],_0x1216af),_0x553fdc[_0x3e66ed(0x1b6)]({'unitID':_0x4eba0a,'redoMutations':[..._0x8933d0['redos'],..._0x30178b[_0x3e66ed(0x39d)],..._0x536848],'undoMutations':[..._0x8933d0[_0x3e66ed(0x2a2)],..._0x30178b['undos'],..._0x2dd74e]}),!0x0;}},co={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x30d),async 'handler'(_0xe724ca,_0x351eff){const _0x52c833=_0x498bf1;if(!_0x351eff)return!0x1;const _0x2500d4=_0xe724ca[_0x52c833(0x3b4)](v[_0x52c833(0x2e1)]),{pivotTableId:_0x1a4e2f,tableFieldId:_0x264457,items:_0x17ce26,unitId:_0x17a9ac,subUnitId:_0x2cb74d,isAll:_0x4ee8ee}=_0x351eff,_0x460ba3=_0xe724ca['get'](exports[_0x52c833(0x271)]),_0x302826=_0xe724ca[_0x52c833(0x3b4)](v['IUndoRedoService']),_0x176a47=(await _0x460ba3['getPivotDisplayConfig']({'unitId':_0x17a9ac,'subUnitId':_0x2cb74d,'pivotTableId':_0x1a4e2f,'params':{'type':k[_0x52c833(0x494)],'setPivotFilter':{'tableFieldId':_0x264457,'items':_0x17ce26,'isAll':_0x4ee8ee}}}))['result'][_0x52c833(0x21a)];if(!_0x176a47)return!0x1;const {changesets:_0x1d422f,pivotTableConfig:_0x4d7b9a,isEmpty:_0x4ae539,view:_0x269cfe}=_0x176a47,_0x58d2b8=_0x4d7b9a[_0x52c833(0x235)],_0x28cc8c=new p[(_0x52c833(0x1fc))]();_0x28cc8c[_0x52c833(0x28f)](_0x269cfe);const _0x3fab84={'cellInfo':_0x58d2b8,'view':_0x28cc8c,'isEmpty':_0x4ae539};if(!await _0xe724ca['get'](exports[_0x52c833(0x253)])['asyncInterceptor'][_0x52c833(0x1c9)](re)(!0x0,_0x3fab84))return!0x1;const _0x117f75=le(_0xe724ca,_0x28cc8c,_0x58d2b8,_0x4ae539),_0xe64a12=fe(_0xe724ca,_0x3fab84),{undos:_0xad0c69,redos:_0x35ee11}=ae(_0x2500d4,{'pivotTableId':_0x1a4e2f,'unitId':_0x17a9ac,'subUnitId':_0x2cb74d},_0x1d422f);return v[_0x52c833(0x317)]([..._0x117f75[_0x52c833(0x39d)],..._0xe64a12['redos'],..._0x35ee11],_0x2500d4),_0x302826[_0x52c833(0x1b6)]({'unitID':_0x17a9ac,'redoMutations':[..._0x117f75['redos'],..._0xe64a12[_0x52c833(0x39d)],..._0x35ee11],'undoMutations':[..._0x117f75[_0x52c833(0x2a2)],..._0xe64a12[_0x52c833(0x2a2)],..._0xad0c69]}),!0x0;}},uo={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x2c2),async 'handler'(_0x4417e9,_0x59f3e6){const _0x2e1872=_0x498bf1;if(!_0x59f3e6)return!0x1;const _0x3ff6a8=_0x4417e9[_0x2e1872(0x3b4)](v['ICommandService']),_0x189987=_0x4417e9[_0x2e1872(0x3b4)](v[_0x2e1872(0x1bd)]),_0x25a2de=_0x4417e9['get'](exports[_0x2e1872(0x271)]),{info:_0x419f39,tableFieldId:_0x21c676,pivotTableId:_0x5d6dea,unitId:_0x39f8cb,subUnitId:_0x40fd3e}=_0x59f3e6,_0x45df06=(await _0x25a2de[_0x2e1872(0x410)]({'unitId':_0x39f8cb,'subUnitId':_0x40fd3e,'pivotTableId':_0x5d6dea,'params':{'type':k[_0x2e1872(0x2dd)],'setPivotSort':{'tableFieldId':_0x21c676,'info':_0x419f39}}}))[_0x2e1872(0x436)][_0x2e1872(0x219)];if(!_0x45df06)return!0x1;const {changesets:_0x589f5d}=_0x45df06,{redos:_0x31c969,undos:_0x56ea0f}=ae(_0x3ff6a8,{'pivotTableId':_0x5d6dea,'unitId':_0x39f8cb,'subUnitId':_0x40fd3e},_0x589f5d);return v[_0x2e1872(0x317)](_0x31c969,_0x3ff6a8),_0x189987['pushUndoRedo']({'unitID':_0x39f8cb,'redoMutations':_0x31c969,'undoMutations':_0x56ea0f}),!0x0;}},fo={'type':v['CommandType'][_0x498bf1(0x3fc)],'id':_0x498bf1(0x449),async 'handler'(_0x509812,_0x444a73){const _0x420b07=_0x498bf1;if(!_0x444a73)return!0x1;const _0x3424fe=_0x509812['get'](v[_0x420b07(0x2e1)]),_0x15f77b=_0x509812[_0x420b07(0x3b4)](v[_0x420b07(0x1bd)]),_0x3dcc1b=_0x509812[_0x420b07(0x3b4)](exports['SheetsPivotRPCService']),{displayName:_0x47aaf2,subtotalType:_0x34e535,format:_0x32d97e,tableFieldId:_0x1a77c0,pivotTableId:_0x5ef0b7,unitId:_0x35a929,subUnitId:_0x2a3b5f}=_0x444a73,_0x4dd215=(await _0x3dcc1b[_0x420b07(0x410)]({'unitId':_0x35a929,'subUnitId':_0x2a3b5f,'pivotTableId':_0x5ef0b7,'params':{'type':k[_0x420b07(0x26f)],'setPivotSetting':{'tableFieldId':_0x1a77c0,'displayName':_0x47aaf2,'subtotalType':_0x34e535,'format':_0x32d97e}}}))['result'][_0x420b07(0x308)];if(!_0x4dd215)return!0x1;const {changesets:_0x442c97,view:_0x1a52c3,pivotTableConfig:_0x347d7a,isEmpty:_0x52b842}=_0x4dd215,_0x5550ab=_0x347d7a[_0x420b07(0x235)],_0x4d3958=new p[(_0x420b07(0x1fc))]();_0x4d3958[_0x420b07(0x28f)](_0x1a52c3);const _0x4d1158={'cellInfo':_0x5550ab,'view':_0x4d3958,'isEmpty':_0x52b842};if(!await _0x509812['get'](exports[_0x420b07(0x253)])[_0x420b07(0x373)][_0x420b07(0x1c9)](re)(!0x0,_0x4d1158))return!0x1;const _0x473560=le(_0x509812,_0x4d3958,_0x5550ab,_0x52b842),_0x2a1de5=fe(_0x509812,_0x4d1158),{undos:_0x16bdd9,redos:_0x2064ce}=ae(_0x3424fe,{'pivotTableId':_0x5ef0b7,'unitId':_0x35a929,'subUnitId':_0x2a3b5f},_0x442c97);return v[_0x420b07(0x317)]([..._0x473560[_0x420b07(0x39d)],..._0x2a1de5[_0x420b07(0x39d)],..._0x2064ce],_0x3424fe),_0x15f77b['pushUndoRedo']({'unitID':_0x35a929,'redoMutations':[..._0x473560['redos'],..._0x2a1de5['redos'],..._0x2064ce],'undoMutations':[..._0x473560[_0x420b07(0x2a2)],..._0x2a1de5[_0x420b07(0x2a2)],..._0x16bdd9]}),!0x0;}},vo={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x229),async 'handler'(_0x54f79a,_0x34ee1f){const _0x5172c2=_0x498bf1,_0x42ef33=_0x54f79a[_0x5172c2(0x3b4)](v[_0x5172c2(0x2e1)]),_0x55b180=_0x54f79a['get'](exports[_0x5172c2(0x271)]),_0x2d8300=_0x54f79a['get'](v[_0x5172c2(0x1bd)]);if(!_0x34ee1f)return!0x1;const {token:_0x1b863e,dataRangeInfo:_0x4b0fa2,unitId:_0x5f0c61,subUnitId:_0x2008dd}=_0x34ee1f,_0x31924a=[],_0x4fc34f=[],_0x5f342f=(await _0x55b180[_0x5172c2(0x410)]({'unitId':_0x5f0c61,'subUnitId':_0x2008dd,'pivotTableId':_0x1b863e,'params':{'type':k['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x4b0fa2,'unitId':_0x5f0c61,'subUnitId':_0x2008dd}}}))[_0x5172c2(0x436)][_0x5172c2(0x3fa)];if(!_0x5f342f)return!0x1;const {changesets:_0x13f695,deleteIds:_0x4422e5,collectionConfig:_0x13c2ad,oldCollectionConfig:_0x585feb,view:_0x35321c,isEmpty:_0x561de7,pivotTableConfig:_0x32a710}=_0x5f342f;_0x4fc34f[_0x5172c2(0x2a1)]({'id':mt['id'],'params':{'pivotTableId':_0x1b863e,'deleteIds':_0x4422e5,'collectionJSON':_0x13c2ad,'dataRangeInfo':_0x4b0fa2,'unitId':_0x5f0c61,'subUnitId':_0x2008dd}}),_0x31924a['unshift']({'id':mt['id'],'params':{'pivotTableId':_0x1b863e,'deleteIds':[],'collectionJSON':_0x585feb,'dataRangeInfo':_0x32a710[_0x5172c2(0x2ff)],'unitId':_0x5f0c61,'subUnitId':_0x2008dd}});const _0x344a05=_0x32a710['targetCellInfo'],_0x18ca90=new p['PivotView']();_0x18ca90[_0x5172c2(0x28f)](_0x35321c);const _0x18dbde={'cellInfo':_0x344a05,'view':_0x18ca90,'isEmpty':_0x561de7};if(!await _0x54f79a[_0x5172c2(0x3b4)](exports[_0x5172c2(0x253)])[_0x5172c2(0x373)][_0x5172c2(0x1c9)](re)(!0x0,_0x18dbde))return!0x1;const _0x265ec4=le(_0x54f79a,_0x18ca90,_0x344a05,_0x561de7),_0x4ddf6b=fe(_0x54f79a,_0x18dbde),{undos:_0x456447,redos:_0x3a5c60}=ae(_0x42ef33,{'pivotTableId':_0x1b863e,'unitId':_0x5f0c61,'subUnitId':_0x2008dd},_0x13f695);return v['sequenceExecute']([..._0x265ec4['redos'],..._0x4ddf6b[_0x5172c2(0x39d)],..._0x4fc34f,..._0x456447],_0x42ef33),_0x2d8300['pushUndoRedo']({'unitID':_0x5f0c61,'redoMutations':[..._0x265ec4[_0x5172c2(0x39d)],..._0x4ddf6b[_0x5172c2(0x39d)],..._0x4fc34f,..._0x456447],'undoMutations':[..._0x265ec4['undos'],..._0x4ddf6b[_0x5172c2(0x2a2)],..._0x31924a,..._0x3a5c60]}),!0x0;}},go={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x1f3),async 'handler'(_0xdafc31,_0x464020){const _0x17ee4d=_0x498bf1;if(!_0x464020)return!0x1;const _0x21fcf1=_0xdafc31[_0x17ee4d(0x3b4)](v[_0x17ee4d(0x2e1)]),_0x1266ea=_0xdafc31[_0x17ee4d(0x3b4)](exports['SheetsPivotRPCService']),_0x3223c9=_0xdafc31[_0x17ee4d(0x3b4)](v['IUniverInstanceService']),_0x5e3e88=_0xdafc31[_0x17ee4d(0x3b4)](v['IUndoRedoService']),{pivotTableId:_0xf93892,position:_0x89a609,index:_0x26f27f}=_0x464020,_0xd68e29=V[_0x17ee4d(0x423)](_0x3223c9);if(!_0xd68e29)return!0x1;const {unitId:_0x191c34,subUnitId:_0x18be2c}=_0xd68e29,_0x515a5d=(await _0x1266ea[_0x17ee4d(0x410)]({'unitId':_0x191c34,'subUnitId':_0x18be2c,'pivotTableId':_0xf93892,'params':{'type':k[_0x17ee4d(0x364)],'updateValuePosition':{'position':_0x89a609,'index':_0x26f27f}}}))[_0x17ee4d(0x436)]['updateValuePosition'];if(!_0x515a5d)return!0x1;const {changesets:_0x8559bc,view:_0x5990d6,isEmpty:_0x4ae612,pivotTableConfig:_0x4e7c9f}=_0x515a5d,_0x5e0dcf=_0x4e7c9f[_0x17ee4d(0x235)],_0x59488d=new p[(_0x17ee4d(0x1fc))]();_0x59488d['formJSON'](_0x5990d6);const _0x5f523e=_0xdafc31[_0x17ee4d(0x3b4)](exports[_0x17ee4d(0x253)]),_0x44eaa4={'cellInfo':_0x5e0dcf,'view':_0x59488d,'isEmpty':_0x4ae612};if(!await _0x5f523e[_0x17ee4d(0x373)]['fetchThroughAsyncInterceptors'](re)(!0x0,_0x44eaa4))return!0x1;const _0x503245=le(_0xdafc31,_0x59488d,_0x5e0dcf,_0x4ae612),_0x488868=fe(_0xdafc31,_0x44eaa4),{undos:_0x1883ae,redos:_0x11db76}=ae(_0x21fcf1,{'pivotTableId':_0xf93892,'unitId':_0x191c34,'subUnitId':_0x18be2c},_0x8559bc);return v[_0x17ee4d(0x317)]([..._0x503245['redos'],..._0x488868[_0x17ee4d(0x39d)],..._0x11db76],_0x21fcf1),_0x5e3e88[_0x17ee4d(0x1b6)]({'unitID':_0x191c34,'redoMutations':[..._0x503245[_0x17ee4d(0x39d)],..._0x488868[_0x17ee4d(0x39d)],..._0x11db76],'undoMutations':[..._0x503245['undos'],..._0x488868[_0x17ee4d(0x2a2)],..._0x1883ae]}),!0x0;}},ho={'type':v['CommandType'][_0x498bf1(0x3fc)],'id':_0x498bf1(0x413),'handler':(_0x3a4476,_0x3e3cbb)=>{const _0xf6108f=_0x498bf1,_0x42dd43=_0x3a4476[_0xf6108f(0x3b4)](v['ICommandService']),_0xc49459=_0x3a4476['get'](v[_0xf6108f(0x1bd)]),_0x562c41=_0x3a4476[_0xf6108f(0x3b4)](exports[_0xf6108f(0x48c)]),_0x5dc7c5=_0x3a4476['get'](v[_0xf6108f(0x2a7)]);if(!_0x3e3cbb)return!0x1;const _0x1e007d=V['getSheetCommandTarget'](_0x5dc7c5);if(!_0x1e007d)return!0x1;const {unitId:_0x26407f,subUnitId:_0x361572,workbook:_0x2d0dc7}=_0x1e007d,_0x2f67a8=_0x562c41[_0xf6108f(0x467)](_0x3e3cbb[_0xf6108f(0x2d1)][_0xf6108f(0x39f)],_0x3e3cbb[_0xf6108f(0x2d1)][_0xf6108f(0x36e)],_0x3e3cbb['pivotTableId']);if(!_0x2f67a8)return!0x1;const _0x2ddf05=_0x2d0dc7[_0xf6108f(0x1b3)](_0x3e3cbb[_0xf6108f(0x235)][_0xf6108f(0x36e)]);if(!_0x2ddf05)throw new Error(_0xf6108f(0x3d7));const _0x4353c1=_0x2ddf05[_0xf6108f(0x312)](),_0x1d4a18=_0x2ddf05['getColumnCount']();if(_0x3e3cbb[_0xf6108f(0x235)]['row']>_0x4353c1||_0x3e3cbb[_0xf6108f(0x235)][_0xf6108f(0x463)]>_0x1d4a18)throw new Error(_0xf6108f(0x3a4));const _0x67d3fe=[{'id':Re['id'],'params':{'unitId':_0x26407f,'subUnitId':_0x3e3cbb[_0xf6108f(0x235)][_0xf6108f(0x36e)],'pivotTableId':_0x3e3cbb[_0xf6108f(0x43e)],'targetCellPosition':{'row':_0x3e3cbb[_0xf6108f(0x235)]['row'],'col':_0x3e3cbb[_0xf6108f(0x235)][_0xf6108f(0x463)]}}}],_0x17ee55=[{'id':Re['id'],'params':{'unitId':_0x26407f,'subUnitId':_0x361572,'pivotTableId':_0x3e3cbb[_0xf6108f(0x43e)],'targetCellPosition':{'row':_0x2f67a8[_0xf6108f(0x235)][_0xf6108f(0x1c0)],'col':_0x2f67a8['targetCellInfo']['col']}}}];return v[_0xf6108f(0x317)](_0x67d3fe,_0x42dd43)&&_0xc49459[_0xf6108f(0x1b6)]({'unitID':_0x26407f,'undoMutations':_0x17ee55,'redoMutations':_0x67d3fe}),!0x0;}},po={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x4a9),async 'handler'(_0x30afbf,_0x201ede){const _0x1ea195=_0x498bf1;if(!_0x201ede)return!0x1;const _0x867b87=_0x30afbf[_0x1ea195(0x3b4)](v[_0x1ea195(0x2e1)]),{pivotTableId:_0x5cedcc,fieldId:_0x3a0368,valueFilterInfo:_0x3fa82d,unitId:_0x981ba4,subUnitId:_0x49d4bb}=_0x201ede,_0x52d9c6=_0x30afbf[_0x1ea195(0x3b4)](exports['SheetsPivotRPCService']),_0x5bc5d0=_0x30afbf[_0x1ea195(0x3b4)](v[_0x1ea195(0x1bd)]),_0x4a6049=(await _0x52d9c6['getPivotDisplayConfig']({'unitId':_0x981ba4,'subUnitId':_0x49d4bb,'pivotTableId':_0x5cedcc,'params':{'type':k[_0x1ea195(0x3b7)],'setValuePivotFilter':{'tableFieldId':_0x3a0368,'filterInfo':_0x3fa82d}}}))[_0x1ea195(0x436)][_0x1ea195(0x328)];if(!_0x4a6049)return!0x1;const {changesets:_0xc33e11,pivotTableConfig:_0x25501c,isEmpty:_0x3cdb3d,view:_0xfdea9}=_0x4a6049,_0x407cc7=_0x25501c[_0x1ea195(0x235)],_0x258603=new p[(_0x1ea195(0x1fc))]();_0x258603[_0x1ea195(0x28f)](_0xfdea9);const _0xfb2f51={'cellInfo':_0x407cc7,'view':_0x258603,'isEmpty':_0x3cdb3d};if(!await _0x30afbf[_0x1ea195(0x3b4)](exports['SheetsPivotTableService'])['asyncInterceptor'][_0x1ea195(0x1c9)](re)(!0x0,_0xfb2f51))return!0x1;const _0x452c1b=le(_0x30afbf,_0x258603,_0x407cc7,_0x3cdb3d),_0x18ab0f=fe(_0x30afbf,_0xfb2f51),{undos:_0x53cc3c,redos:_0x5e562e}=ae(_0x867b87,{'pivotTableId':_0x5cedcc,'unitId':_0x981ba4,'subUnitId':_0x49d4bb},_0xc33e11);return v[_0x1ea195(0x317)]([..._0x452c1b[_0x1ea195(0x39d)],..._0x18ab0f[_0x1ea195(0x39d)],..._0x5e562e],_0x867b87),_0x5bc5d0['pushUndoRedo']({'unitID':_0x981ba4,'redoMutations':[..._0x452c1b[_0x1ea195(0x39d)],..._0x18ab0f[_0x1ea195(0x39d)],..._0x5e562e],'undoMutations':[..._0x452c1b[_0x1ea195(0x2a2)],..._0x18ab0f['undos'],..._0x53cc3c]}),!0x0;}},mo={'type':v['CommandType'][_0x498bf1(0x3fc)],'id':_0x498bf1(0x355),async 'handler'(_0x478f92,_0x5cad18){const _0x366604=_0x498bf1;if(!_0x5cad18)return!0x1;const _0x2eff91=_0x478f92[_0x366604(0x3b4)](v['ICommandService']),_0x32f577=_0x478f92[_0x366604(0x3b4)](v[_0x366604(0x1bd)]),_0x2d8733=_0x478f92[_0x366604(0x3b4)](exports[_0x366604(0x271)]),{pivotTableConfig:_0x50e103,pivotTableId:_0x4e7927,unitId:_0x44e799,subUnitId:_0x431099}=_0x5cad18,_0x17efa9=(await _0x2d8733['getPivotDisplayConfig']({'unitId':_0x44e799,'subUnitId':_0x431099,'pivotTableId':_0x4e7927,'params':{'type':k['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x4e7927,'pivotTableConfig':_0x50e103}}}))['result'][_0x366604(0x3d2)];if(!_0x17efa9)return!0x1;const {changesets:_0x4f313b}=_0x17efa9,{redos:_0xf42a3b,undos:_0x51b237}=ae(_0x2eff91,{'pivotTableId':_0x4e7927,'unitId':_0x44e799,'subUnitId':_0x431099},_0x4f313b);return v[_0x366604(0x317)](_0xf42a3b,_0x2eff91),_0x32f577[_0x366604(0x1b6)]({'unitID':_0x44e799,'redoMutations':_0xf42a3b,'undoMutations':_0x51b237}),!0x0;}},Io={'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'id':_0x498bf1(0x1c4),async 'handler'(_0x76cae8,_0x2015d4){const _0x2a4c73=_0x498bf1;if(!_0x2015d4)return!0x1;const _0x3bc6af=_0x76cae8[_0x2a4c73(0x3b4)](v[_0x2a4c73(0x2e1)]),_0xc9f443=_0x76cae8['get'](v[_0x2a4c73(0x1bd)]),_0x173916=_0x76cae8[_0x2a4c73(0x3b4)](exports['SheetsPivotRPCService']),{resetArea:_0x171cff,pivotTableId:_0x42367d,unitId:_0x52a5bf,subUnitId:_0x1b05e5}=_0x2015d4,_0x3d934b=(await _0x173916[_0x2a4c73(0x410)]({'unitId':_0x52a5bf,'subUnitId':_0x1b05e5,'pivotTableId':_0x42367d,'params':{'type':k[_0x2a4c73(0x276)],'resetPivotTable':{'pivotTableId':_0x42367d,'resetArea':_0x171cff}}}))[_0x2a4c73(0x436)]['resetPivotTable'];if(!_0x3d934b)return!0x1;const {changesets:_0x232d14}=_0x3d934b,{redos:_0x5e0bb5,undos:_0x50b576}=ae(_0x3bc6af,{'pivotTableId':_0x42367d,'unitId':_0x52a5bf,'subUnitId':_0x1b05e5},_0x232d14);return v[_0x2a4c73(0x317)](_0x5e0bb5,_0x3bc6af),_0xc9f443[_0x2a4c73(0x1b6)]({'unitID':_0x52a5bf,'redoMutations':_0x5e0bb5,'undoMutations':_0x50b576}),!0x0;}},yt={'id':_0x498bf1(0x298),'type':v[_0x498bf1(0x213)][_0x498bf1(0x2cc)],'handler':(_0x4a4710,_0x357a5f)=>{const _0x4818d3=_0x498bf1;if(!_0x357a5f)return!0x1;if(!!_0x4a4710[_0x4818d3(0x3b4)](v[_0x4818d3(0x22e)])[_0x4818d3(0x2fb)](J))return!0x0;const {unitId:_0x5591fb,subUnitId:_0x315220,pivotTableId:_0x3813c1,tableFieldId:_0x99d4bc,dateType:_0x165818}=_0x357a5f,_0xb70f1b=_0x4a4710['get'](exports['SheetsPivotDataSourceModel']),_0x1c72db=_0xb70f1b[_0x4818d3(0x23f)](_0x3813c1);if(!_0x1c72db)return!0x1;const _0x2f4562=_0x1c72db[_0x4818d3(0x332)](_0x99d4bc);if(!_0x2f4562)return!0x1;const _0x29dc55=_0x2f4562[_0x4818d3(0x39e)](),_0x253a20=_0x1c72db['getDataFieldByDataFieldId'](_0x29dc55),_0x144d48=(_0x253a20==null?void 0x0:_0x253a20[_0x4818d3(0x256)]())+'\x20'+Zt(_0x4a4710,_0x165818);_0xb70f1b[_0x4818d3(0x1ca)](_0x5591fb,_0x3813c1)[_0x4818d3(0x1f2)](_0x2f4562['id'],_0x144d48);const _0x131e33=_0x1c72db[_0x4818d3(0x3ed)](_0x99d4bc);if(!_0x131e33)return!0x1;_0x1c72db[_0x4818d3(0x27e)](_0x131e33[_0x4818d3(0x263)](),_0x144d48),_0x2f4562[_0x4818d3(0x44e)](_0x165818);const _0x351782=_0xb70f1b[_0x4818d3(0x467)](_0x5591fb,_0x315220,_0x3813c1);return _0xb70f1b['addDirtyPivotTable']({'unitId':_0x5591fb,'subUnitId':_0x315220,'token':_0x3813c1,'type':j[_0x4818d3(0x249)],'pivotConfig':_0x351782}),!0x0;}},Co={'id':_0x498bf1(0x258),'type':v[_0x498bf1(0x213)][_0x498bf1(0x3fc)],'handler':(_0x29ef30,_0x13ae74)=>{const _0x56142f=_0x498bf1;if(!_0x13ae74)return!0x1;const _0x5aba27=_0x29ef30[_0x56142f(0x3b4)](v[_0x56142f(0x1bd)]),{unitId:_0x5291dd,subUnitId:_0x3f857a,pivotTableId:_0x367b8a,tableFieldId:_0x3ce9fe}=_0x13ae74,_0x4f8440=[],_0x116fa3=[],_0x2c22f6=_0x29ef30['get'](exports[_0x56142f(0x48c)]),_0x34f7d6=_0x2c22f6[_0x56142f(0x1ca)](_0x5291dd,_0x367b8a),_0x55c623=_0x2c22f6[_0x56142f(0x467)](_0x5291dd,_0x3f857a,_0x367b8a);if(!(_0x55c623!=null&&_0x55c623[_0x56142f(0x345)][_0x56142f(0x3ca)]))return!0x1;const _0x1163b9=Object[_0x56142f(0x3dc)](_0x55c623[_0x56142f(0x345)][_0x56142f(0x3ca)])[_0x56142f(0x392)](_0xf48bcb=>_0xf48bcb['id']===_0x3ce9fe);if(!_0x1163b9)return!0x1;const _0xb7a97a=_0x1163b9[_0x56142f(0x1bb)];if(!(_0x34f7d6!=null&&_0x34f7d6[_0x56142f(0x1da)]))return!0x1;const _0x251c3a=Object[_0x56142f(0x3dc)](_0x34f7d6==null?void 0x0:_0x34f7d6[_0x56142f(0x1da)])[_0x56142f(0x392)](_0x5b51d0=>_0x5b51d0['id']===_0xb7a97a);if(!_0x251c3a)return!0x1;p[_0x56142f(0x389)](_0x251c3a)&&_0x4f8440[_0x56142f(0x2a1)]({'id':yt['id'],'params':{..._0x13ae74,'dateType':_0x251c3a[_0x56142f(0x1cd)]}}),_0x116fa3['push']({'id':yt['id'],'params':{..._0x13ae74}});const _0x184ea4=_0x29ef30[_0x56142f(0x3b4)](v['ICommandService']);return v['sequenceExecute'](_0x116fa3,_0x184ea4)&&_0x5aba27[_0x56142f(0x1b6)]({'unitID':_0x5291dd,'undoMutations':_0x4f8440,'redoMutations':_0x116fa3}),!0x0;}};var Vn=Object[_0x498bf1(0x2b5)],xn=(_0x51d671,_0x2e05dc,_0x4ae72f,_0x2b8e07)=>{const _0x28bd1c=_0x498bf1;for(var _0x2e89b3=_0x2b8e07>0x1?void 0x0:_0x2b8e07?Vn(_0x2e05dc,_0x4ae72f):_0x2e05dc,_0x26b4df=_0x51d671[_0x28bd1c(0x492)]-0x1,_0xd0fc45;_0x26b4df>=0x0;_0x26b4df--)(_0xd0fc45=_0x51d671[_0x26b4df])&&(_0x2e89b3=_0xd0fc45(_0x2e89b3)||_0x2e89b3);return _0x2e89b3;},Me=(_0x404928,_0x51a165)=>(_0x224ee0,_0x2848c6)=>_0x51a165(_0x224ee0,_0x2848c6,_0x404928);const On=()=>({'runtimeCellData':{},'dirtyRanges':{}}),An=(_0x2f1706,_0x37ff6e,_0x2d39f4)=>{const _0x2c8307=_0x498bf1,_0x415ccc=_0x2f1706['dataFieldsCollection'];_0x2f1706[_0x2c8307(0x214)](_0x4a9930=>{const _0x75aad8=_0x2c8307,_0xc78e3c=_0x4a9930[_0x75aad8(0x263)](),_0x45aba1=_0x4a9930[_0x75aad8(0x2b3)](),_0x32835e=_0x4a9930['getSourceName'](),_0x1583b8=_0x4a9930['getDisplayName']();_0x37ff6e[_0x45aba1]&&_0x37ff6e[_0x45aba1]===_0x1583b8&&_0x32835e===_0x1583b8&&(_0x2f1706['renameField'](_0xc78e3c,_0x415ccc[_0x75aad8(0x320)](_0x45aba1)),_0x4a9930['setSourceName'](_0x415ccc[_0x75aad8(0x320)](_0x45aba1)));}),_0x2f1706['iterateFieldByArea'](p[_0x2c8307(0x35b)][_0x2c8307(0x456)],_0x5df3b9=>{const _0x2d7fb0=_0x2c8307,_0xa83065=_0x5df3b9[_0x2d7fb0(0x263)](),_0x3f7e83=_0x5df3b9[_0x2d7fb0(0x2b3)](),_0x162d0c=_0x5df3b9[_0x2d7fb0(0x1d5)](),_0x521d97=_0x5df3b9[_0x2d7fb0(0x320)](),_0x113097=_0x5df3b9[_0x2d7fb0(0x3bc)](),_0x182cd9=_0x2d39f4(_0x162d0c,_0x113097);_0x37ff6e[_0x3f7e83]&&_0x37ff6e[_0x3f7e83]===_0x162d0c&&_0x182cd9===_0x521d97&&(_0x2f1706[_0x2d7fb0(0x27e)](_0xa83065,_0x2d39f4(_0x415ccc[_0x2d7fb0(0x320)](_0x3f7e83),_0x113097)),_0x5df3b9['setSourceName'](_0x415ccc[_0x2d7fb0(0x320)](_0x3f7e83)));});},kn=(_0x116efd,_0x1ee70f,_0x393c77)=>{const _0x238c18=_0x498bf1;var _0x2b4720,_0xee429e;const {arrayFormulaCellData:_0x3acc76,unitData:_0x4c8ed3}=_0x1ee70f,{unitId:_0x238431,subUnitId:_0x21640c}=_0x393c77,_0x572df7=_0x393c77[_0x238c18(0x411)],{startColumn:_0x31e440,endColumn:_0x533d30}=_0x572df7,_0x1b7b21=(_0x2b4720=_0x3acc76==null?void 0x0:_0x3acc76[_0x238431])==null?void 0x0:_0x2b4720[_0x21640c],_0x2fd92f=(_0xee429e=_0x4c8ed3==null?void 0x0:_0x4c8ed3[_0x238431])==null?void 0x0:_0xee429e[_0x21640c],_0x43226b=new Set(),_0x48ae07=_0x533d30-_0x31e440+0x1,{dirtyRanges:_0x7fdd23}=_0x116efd;if(_0x7fdd23)for(const {range:_0x2cbbcd,sheetId:_0x3b9505,unitId:_0x4a668d}of _0x7fdd23){if(_0x3b9505!==_0x21640c||_0x238431!==_0x4a668d)continue;const _0x2bd78d=v[_0x238c18(0x2f8)][_0x238c18(0x36c)](_0x2cbbcd,_0x572df7);if(_0x2bd78d){const {startColumn:_0x2a1794,endColumn:_0x3e2985}=_0x2bd78d;for(let _0x4590ed=_0x2a1794;_0x4590ed<=_0x3e2985;_0x4590ed++)_0x43226b['add'](_0x4590ed);}}if(_0x43226b[_0x238c18(0x349)]===_0x48ae07||_0x43226b[_0x238c18(0x349)]===_0x48ae07)return Array['from'](_0x43226b);if(_0x2fd92f){const _0x5c78e4=_0x2fd92f[_0x238c18(0x46e)](),_0x125dab=Object[_0x238c18(0x418)](_0x5c78e4);for(const _0x4bce45 of _0x125dab){const _0x41bab5=Number(_0x4bce45),_0x4d12db=_0x5c78e4[_0x41bab5];if(_0x43226b[_0x238c18(0x349)]===_0x48ae07)break;for(const _0x2e2c23 in _0x4d12db){const _0x1b5086=Number(_0x2e2c23);_0x1b5086<_0x31e440||_0x1b5086>_0x533d30||_0x43226b['add'](_0x1b5086);}}}if(_0x1b7b21){const _0x34230a=_0x1b7b21[_0x238c18(0x46e)](),_0xcd5863=Object[_0x238c18(0x418)](_0x34230a);for(const _0x37bb52 of _0xcd5863){const _0x445d89=Number(_0x37bb52),_0x147cc2=_0x34230a[_0x445d89];if(_0x43226b[_0x238c18(0x349)]===_0x48ae07)break;for(const _0x133b85 in _0x147cc2){const _0x47845=Number(_0x133b85);_0x47845<_0x31e440||_0x47845>_0x533d30||_0x43226b[_0x238c18(0x40d)](_0x47845);}}}return Array['from'](_0x43226b);},Ln=_0x480016=>{const _0x52944c=_0x498bf1,_0x23c31f=new Set(),_0x1d4698=[];for(const _0x950f94 of _0x480016){const _0x27e864=_0x950f94[_0x52944c(0x42a)]+','+_0x950f94[_0x52944c(0x34e)]+','+_0x950f94[_0x52944c(0x368)]+','+_0x950f94['endColumn'];_0x23c31f[_0x52944c(0x1cc)](_0x27e864)||(_0x23c31f[_0x52944c(0x40d)](_0x27e864),_0x1d4698[_0x52944c(0x2a1)](_0x950f94));}return _0x1d4698;};let Be=class extends v[_0x498bf1(0x26e)]{constructor(_0x29c02d,_0x12d605,_0x4591f5,_0x16eb8e,_0x23436d,_0x549bc4){const _0x4cc7d7=_0x498bf1;super(),x(this,_0x4cc7d7(0x47e),new ge[(_0x4cc7d7(0x287))](!0x0)),x(this,_0x4cc7d7(0x3e9),_0x5be27f=>{const _0x4c622e=_0x4cc7d7;this['_globalSubject'][_0x4c622e(0x3c6)](!0x1);}),x(this,'_globalComputedEndHelpFunc',_0x3bfcea=>{const _0x1fad88=_0x4cc7d7;this[_0x1fad88(0x47e)][_0x1fad88(0x3c6)](!0x0);}),(this[_0x4cc7d7(0x240)]=_0x29c02d,this[_0x4cc7d7(0x1af)]=_0x12d605,this[_0x4cc7d7(0x329)]=_0x4591f5,this[_0x4cc7d7(0x3f9)]=_0x16eb8e,this[_0x4cc7d7(0x47b)]=_0x23436d,this[_0x4cc7d7(0x1bc)]=_0x549bc4,this[_0x4cc7d7(0x1fa)](),this[_0x4cc7d7(0x476)]());}['_init'](){const _0x4438a1=_0x498bf1;this[_0x4438a1(0x1e9)](),this['_subjectViewChange'](),this['_initPivotTextInfo'](),this['_subjectFieldsCollectionChange']();}[_0x498bf1(0x404)](){const _0x1dd205=_0x498bf1;this[_0x1dd205(0x47b)]['pushComputingStatusSubject'](this[_0x1dd205(0x47e)]),p['PivotTable'][_0x1dd205(0x2ac)](p[_0x1dd205(0x27a)]['onQueryStart'],this[_0x1dd205(0x3e9)]),p[_0x1dd205(0x4a1)]['registerCallbackWithEvent'](p[_0x1dd205(0x27a)][_0x1dd205(0x325)],this[_0x1dd205(0x291)]);}['_initPivotDataGetListener'](){const _0x527780=_0x498bf1;this[_0x527780(0x22a)](this[_0x527780(0x3f9)]['onCommandExecuted'](_0x22cbfa=>{const _0x2471c0=_0x527780;_0x22cbfa['id']===V[_0x2471c0(0x1a7)]['id']&&this[_0x2471c0(0x240)]['handleMoveRange'](_0x22cbfa[_0x2471c0(0x483)]);})),this[_0x527780(0x22a)](this[_0x527780(0x3f9)][_0x527780(0x3ac)](_0x5f11f6=>{const _0x2cf8c2=_0x527780;if(_0x5f11f6['id']!==Ft['id'])return;const _0xfe3f24=_0x5f11f6[_0x2cf8c2(0x483)],{unitId:_0x5361f7,subUnitId:_0x5a5ad1,pivotTableId:_0x11f674}=_0xfe3f24,_0x3f493f=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x363)],_0x216874={};switch(_0x3f493f){case k['Filter']:{const _0x1f53ed=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x2eb)];if(!_0x1f53ed)return;const {row:_0x2fe766,col:_0x5c23a8,cellData:_0x526cc7,pivotItemRenderInfoCache:_0x121050,tableFieldId:_0x4489a8}=_0x1f53ed,_0x5ac914=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x23f)](_0xfe3f24['pivotTableId']);if(!_0x5ac914||!_0x121050)return;if(_0x4489a8){const _0x3dd5fc=_0x5ac914[_0x2cf8c2(0x332)](_0x4489a8);if(!_0x3dd5fc)return;_0x216874[_0x2cf8c2(0x2eb)]={..._0x5ac914[_0x2cf8c2(0x2d8)](_0x3dd5fc),'tableFieldId':_0x4489a8,'pivotTableId':_0xfe3f24[_0x2cf8c2(0x43e)],'filterInfo':_0x5ac914['getFilterInfo'](_0x4489a8),'sortInfo':_0x5ac914[_0x2cf8c2(0x248)](_0x4489a8),'format':_0x5ac914[_0x2cf8c2(0x1b1)](_0x4489a8)};}else{const _0xf80893=Yt(_0x2fe766,_0x5c23a8,_0x526cc7,_0x5ac914,_0x121050),_0x3fea39=_0xf80893==null?void 0x0:_0xf80893[_0x2cf8c2(0x393)];if(!_0x3fea39)return;const _0x3a3d36=_0x5ac914[_0x2cf8c2(0x332)](_0x3fea39);if(!_0x3a3d36)return;_0x216874[_0x2cf8c2(0x2eb)]={..._0x5ac914[_0x2cf8c2(0x2d8)](_0x3a3d36),'tableFieldId':_0x3fea39,'pivotTableId':_0xfe3f24[_0x2cf8c2(0x43e)],'filterInfo':_0x5ac914[_0x2cf8c2(0x1c1)](_0x3fea39),'sortInfo':_0x5ac914[_0x2cf8c2(0x248)](_0x3fea39),'format':_0x5ac914[_0x2cf8c2(0x1b1)](_0x3fea39)};}}break;case k[_0x2cf8c2(0x37f)]:{const _0x2a289b=_0xfe3f24[_0x2cf8c2(0x483)]['panel'];if(!_0x2a289b)return;const {pivotTableId:_0x11072a}=_0x2a289b,_0x30f8c2=this[_0x2cf8c2(0x240)]['getPivotTableInstance'](_0x11072a);if(!_0x30f8c2)return;const _0x2a56ce=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11072a),_0x1260e9=Qt(_0x30f8c2,_0x11072a,_0x2a56ce);_0x216874['panel']=_0x1260e9;}break;case k['AddPivotField']:{const _0x3d1669=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x23f)](_0x11f674),_0x10010e=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x2c3)](_0x5361f7),_0x4d2ef8=_0x10010e[_0x2cf8c2(0x1ca)](_0x11f674);let _0x29dfa6=null;const _0xa2bc9b=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674),_0x4cff72=_0xfe3f24['params'][_0x2cf8c2(0x1db)];if(!_0x3d1669||!_0xa2bc9b||!_0x4cff72)return!0x1;const {dataFieldId:_0x4b82b1,fieldArea:_0xd46ea,index:_0x1b8c71}=_0x4cff72;_0x3d1669[_0x2cf8c2(0x290)]();const _0x5d9dd7=_0x3d1669[_0x2cf8c2(0x41c)](_0x4b82b1,_0xd46ea,_0x1b8c71);if(_0x5d9dd7&&_0xd46ea===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x456)]){const _0x5f3743=_0x5d9dd7[_0x2cf8c2(0x263)](),_0x2ab2ea=_0x3d1669['getDataFieldByTableId'](_0x5f3743);if(_0x2ab2ea){const _0x539226=_0x2ab2ea==null?void 0x0:_0x2ab2ea['getFieldDataType']();_0x3d1669[_0x2cf8c2(0x2ad)](_0x5d9dd7['getId'](),_0x539226===p['PivotDataFieldDataTypeEnum'][_0x2cf8c2(0x3a3)]?p[_0x2cf8c2(0x34a)][_0x2cf8c2(0x405)]:p['PivotSubtotalTypeEnum'][_0x2cf8c2(0x36d)]);}const _0x13548a=_0x3d1669['getValueIndex'](),_0x8d3b8e=_0x3d1669['getValuePosition'](),_0x9cbdc4=_0x3d1669[_0x2cf8c2(0x44d)](p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x456)]);if(_0x13548a===-0x1&&_0x9cbdc4>0x1){const _0x266925=_0x8d3b8e===p[_0x2cf8c2(0x232)]['None']?p[_0x2cf8c2(0x232)][_0x2cf8c2(0x3b2)]:_0x8d3b8e,_0x422a68=_0x266925===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x4af)]?p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x4af)]:p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x3b2)];_0x3d1669['updateValuePosition'](_0x266925,_0x3d1669[_0x2cf8c2(0x44d)](_0x422a68));}}else{if(_0x5d9dd7&&(_0xd46ea===p[_0x2cf8c2(0x35b)]['Row']||_0xd46ea===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x3b2)])){const _0x5005fe=_0x5d9dd7[_0x2cf8c2(0x263)](),_0x457f70=_0x3d1669[_0x2cf8c2(0x332)](_0x5005fe);if(_0x457f70&&(_0x457f70==null?void 0x0:_0x457f70[_0x2cf8c2(0x3eb)]())===p[_0x2cf8c2(0x2ba)][_0x2cf8c2(0x1ae)]){const _0x54d737=_0x457f70[_0x2cf8c2(0x2bf)]();if(_0x54d737&&_0x3d1669[_0x2cf8c2(0x281)](_0x5d9dd7[_0x2cf8c2(0x263)](),_0x54d737),!_0x4d2ef8[_0x2cf8c2(0x47a)]()[_0x2cf8c2(0x2a6)](_0x5ee36d=>{const _0x2c112d=_0x2cf8c2,_0x5557c7=_0x4d2ef8[_0x2c112d(0x3cb)](_0x5ee36d);return p[_0x2c112d(0x2e0)](_0x5557c7)?_0x5557c7[_0x2c112d(0x357)]()[_0x2c112d(0x431)]===_0x4b82b1:!0x1;})){const _0x16e510=_0x10010e[_0x2cf8c2(0x366)](),_0x19dcdb=un(_0x457f70['maxDate'],_0x457f70['minDate']),_0x17c259=_0x457f70[_0x2cf8c2(0x256)]()+_0x2cf8c2(0x2b4)+Zt(this[_0x2cf8c2(0x1bc)],_0x19dcdb),_0xb86024=new p[(_0x2cf8c2(0x35a))](_0x16e510,_0x17c259,p[_0x2cf8c2(0x3c9)](0x3),_0x457f70[_0x2cf8c2(0x263)](),_0x19dcdb);_0x10010e[_0x2cf8c2(0x21e)](_0xb86024),_0x4d2ef8[_0x2cf8c2(0x488)](_0x16e510,_0x17c259),_0x3d1669['addFieldWithSourceId'](_0x16e510,_0xd46ea,(_0x1b8c71!=null?_0x1b8c71:0x0)+0x1),_0x29dfa6=_0xb86024;}}}}const _0x4aaf9c=_0x3d1669[_0x2cf8c2(0x221)](),_0x5d69a2=_0x3d1669[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)]();let _0x4871c6;if(_0x29dfa6){_0x4871c6=_0x29dfa6[_0x2cf8c2(0x2c7)]();const _0x239e1c=_0x29dfa6[_0x2cf8c2(0x263)]();_0x4d2ef8[_0x2cf8c2(0x2f5)](_0x239e1c);let _0x3b3eb5=!0x0;for(const _0x4f1d1a in _0x10010e['collections'])if(_0x10010e[_0x2cf8c2(0x2de)][_0x4f1d1a][_0x2cf8c2(0x47a)]()[_0x2cf8c2(0x26d)](_0x239e1c)){_0x3b3eb5=!0x1;break;}_0x3b3eb5&&_0x10010e[_0x2cf8c2(0x4a3)](_0x239e1c);}const _0x144c12=_0x3d1669[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x1db)]={'view':_0x5d69a2,'changesets':_0x144c12,'isEmpty':_0x4aaf9c,'pivotTableConfig':_0xa2bc9b,'shouldBeAddedGroupJSON':_0x4871c6};}break;case k[_0x2cf8c2(0x406)]:{const _0x287872=_0xfe3f24[_0x2cf8c2(0x483)]['addPivotTable'];if(!_0x287872)return;const _0x43d12c=_0x287872[_0x2cf8c2(0x2ff)],_0x3a30ff=_0x287872[_0x2cf8c2(0x43e)],{collection:_0x3d570d}=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x457)]({'unitId':_0x43d12c['unitId'],'sheetName':_0x43d12c[_0x2cf8c2(0x429)],'subUnitId':_0x43d12c['subUnitId'],'range':_0x43d12c[_0x2cf8c2(0x411)]}),_0x1f4488=new p[(_0x2cf8c2(0x4a1))](_0x3d570d,void 0x0,_0x3a30ff),_0x33cb57=_0x1f4488['query'](),_0x1cf941=_0x1f4488[_0x2cf8c2(0x2c7)](),_0x2e8403=_0x3d570d[_0x2cf8c2(0x2c7)]();_0x216874[_0x2cf8c2(0x41d)]={'view':_0x33cb57,'fieldsConfig':_0x1cf941,'collectionConfig':_0x2e8403,'isEmpty':_0x1f4488[_0x2cf8c2(0x221)]()};}break;case k[_0x2cf8c2(0x41e)]:{const _0x5a55ef=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x1e7)];if(!_0x5a55ef)return;const {fieldId:_0x11284c,area:_0x269a48,index:_0x26125}=_0x5a55ef,_0x21d6bd=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x21d6bd)return;const _0x478510=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x23f)](_0x11f674);if(!_0x478510)return;_0x478510[_0x2cf8c2(0x290)]();const {area:_0x30bc94,index:_0xfa8b82}=_0x478510[_0x2cf8c2(0x426)](_0x11284c);if(_0x478510[_0x2cf8c2(0x1a6)](_0x11284c,_0x269a48,_0x26125),_0x269a48===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x456)]&&_0x478510[_0x2cf8c2(0x3ed)](_0x11284c)['getSubtotal']()===void 0x0){const _0x12ce82=_0x478510['getTableFieldById'](_0x11284c);if(_0x12ce82&&_0x12ce82['getSubtotal']()===void 0x0){const _0x149a63=_0x478510['getDataFieldByTableId'](_0x11284c);if(_0x149a63){const _0x2fd705=_0x149a63==null?void 0x0:_0x149a63['getFieldDataType']();_0x478510[_0x2cf8c2(0x2ad)](_0x11284c,_0x2fd705===p[_0x2cf8c2(0x2ba)]['number']?p['PivotSubtotalTypeEnum'][_0x2cf8c2(0x405)]:p[_0x2cf8c2(0x34a)][_0x2cf8c2(0x36d)]);}}}const _0x3238fb=_0x478510[_0x2cf8c2(0x4a4)](),_0x4b4c17=_0x478510['getValueIndex'](),_0x5d26eb=_0x478510[_0x2cf8c2(0x44d)](p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x456)])>0x1;if(_0x5d26eb&&_0x30bc94===_0x269a48&&(_0x269a48===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x4af)]&&_0x3238fb===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x4af)]||_0x269a48===p['PivotTableFiledAreaEnum'][_0x2cf8c2(0x3b2)]&&_0x3238fb===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x3b2)])){let _0x2f911c=_0x4b4c17;_0xfa8b82<=_0x4b4c17&&_0x2f911c--,_0x26125<=_0x4b4c17&&_0x2f911c++,_0x478510[_0x2cf8c2(0x1e5)](_0x3238fb,_0x2f911c);}else _0x5d26eb&&(_0x30bc94===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x4af)]&&_0x3238fb===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x4af)]||_0x30bc94===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x3b2)]&&_0x3238fb===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x3b2)])&&_0x4b4c17>=_0xfa8b82&&_0x478510[_0x2cf8c2(0x1e5)](_0x3238fb,_0x4b4c17-0x1),_0x5d26eb&&(_0x269a48===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x4af)]&&_0x3238fb===p['PivotTableValuePositionEnum'][_0x2cf8c2(0x4af)]||_0x269a48===p[_0x2cf8c2(0x35b)]['Column']&&_0x3238fb===p[_0x2cf8c2(0x232)]['Column'])&&_0x4b4c17>=_0x26125&&_0x478510[_0x2cf8c2(0x1e5)](_0x3238fb,_0x4b4c17+0x1);const _0x4145d4=_0x478510[_0x2cf8c2(0x1f8)](),_0x7e5f08=_0x478510[_0x2cf8c2(0x221)](),_0x3fcc72=_0x478510[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x1e7)]={'view':_0x4145d4[_0x2cf8c2(0x2c7)](),'changesets':_0x3fcc72,'isEmpty':_0x7e5f08,'pivotTableConfig':_0x21d6bd};}break;case k['RemovePivotField']:{const _0x18b2cf=_0xfe3f24['params']['removePivotField'];if(!_0x18b2cf)return;const _0x499e69=_0x18b2cf['fieldIds'],_0x3a54be=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x3a54be)return!0x1;const _0x3ba7eb=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674);if(!_0x3ba7eb)return!0x1;_0x3ba7eb[_0x2cf8c2(0x290)]();for(const _0x754747 of _0x499e69){const {area:_0x3264f}=_0x3ba7eb[_0x2cf8c2(0x426)](_0x754747);_0x3264f===p['PivotTableFiledAreaEnum']['Value']&&_0x3ba7eb[_0x2cf8c2(0x34b)](_0x754747),(_0x3264f===p[_0x2cf8c2(0x35b)]['Row']||_0x3264f===p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x3b2)])&&_0x3ba7eb[_0x2cf8c2(0x3be)](_0x754747),_0x3ba7eb[_0x2cf8c2(0x223)](_0x754747);}const _0x3896b8=_0x3ba7eb[_0x2cf8c2(0x221)](),_0x500acd=_0x3ba7eb[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x518857=_0x3ba7eb[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x1df)]={'changesets':_0x518857,'pivotTableConfig':_0x3a54be,'isEmpty':_0x3896b8,'view':_0x500acd};}break;case k[_0x2cf8c2(0x494)]:{const _0x3b856d=_0xfe3f24[_0x2cf8c2(0x483)]['setPivotFilter'];if(!_0x3b856d)return;const {tableFieldId:_0x59daa3,items:_0x5d61e0,isAll:_0x230359}=_0x3b856d,_0x55db9e=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x11f674),_0x244019=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x55db9e||!_0x244019)return;_0x55db9e[_0x2cf8c2(0x290)](),_0x55db9e[_0x2cf8c2(0x499)](_0x59daa3,{'type':p[_0x2cf8c2(0x285)]['ManualFilter'],'list':_0x5d61e0,'isAll':_0x230359});const _0x4385cd=_0x55db9e[_0x2cf8c2(0x221)](),_0xa28933=_0x55db9e['query']()[_0x2cf8c2(0x2c7)](),_0x461801=_0x55db9e[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x21a)]={'view':_0xa28933,'changesets':_0x461801,'isEmpty':_0x4385cd,'pivotTableConfig':_0x244019};}break;case k[_0x2cf8c2(0x3b7)]:{const _0x3b4dc5=_0xfe3f24[_0x2cf8c2(0x483)]['setValuePivotFilter'];if(!_0x3b4dc5)return;const {tableFieldId:_0x3268cd,filterInfo:_0x42e35b}=_0x3b4dc5,_0x41368a=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674),_0x97a49f=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x41368a||!_0x97a49f)return;_0x41368a[_0x2cf8c2(0x290)](),_0x41368a[_0x2cf8c2(0x4ad)](_0x3268cd,_0x42e35b);const _0x24e4ea=_0x41368a[_0x2cf8c2(0x221)](),_0x25910d=_0x41368a[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x52693d=_0x41368a['endCollectChangeset']();_0x216874[_0x2cf8c2(0x328)]={'view':_0x25910d,'changesets':_0x52693d,'isEmpty':_0x24e4ea,'pivotTableConfig':_0x97a49f};}break;case k[_0x2cf8c2(0x2dd)]:{const _0x33b214=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x219)];if(!_0x33b214)return;const {tableFieldId:_0x23bcad,info:_0x2e4a63}=_0x33b214,_0x10117f=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674),_0x53f2dc=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x10117f||!_0x53f2dc)return;_0x10117f[_0x2cf8c2(0x290)](),_0x10117f['setSortInfo'](_0x23bcad,_0x2e4a63);const _0x2f0b42=_0x10117f[_0x2cf8c2(0x221)](),_0x1c3f19=_0x10117f[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x42c574=_0x10117f[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x219)]={'view':_0x1c3f19,'changesets':_0x42c574,'isEmpty':_0x2f0b42,'pivotTableConfig':_0x53f2dc};}break;case k[_0x2cf8c2(0x26f)]:{const _0x1eb847=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x308)];if(!_0x1eb847)return;const {tableFieldId:_0x283dae,displayName:_0x51bffc,subtotalType:_0x44a6e5,format:_0x229a52}=_0x1eb847,_0x22be97=this[_0x2cf8c2(0x240)]['getPivotTableInstance'](_0x11f674),_0xaa40fb=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x22be97||!_0xaa40fb)return;_0x22be97[_0x2cf8c2(0x290)](),_0x51bffc!==void 0x0&&_0x22be97['renameField'](_0x283dae,_0x51bffc),_0x44a6e5!==void 0x0&&_0x22be97[_0x2cf8c2(0x2ad)](_0x283dae,_0x44a6e5),_0x229a52!==void 0x0&&_0x22be97['setFieldFormat'](_0x283dae,_0x229a52);const _0x2212a4=_0x22be97[_0x2cf8c2(0x221)](),_0x3b91ce=_0x22be97[_0x2cf8c2(0x1f8)]()['toJSON'](),_0xe0a824=_0x22be97['endCollectChangeset']();_0x216874[_0x2cf8c2(0x308)]={'changesets':_0xe0a824,'pivotTableConfig':_0xaa40fb,'isEmpty':_0x2212a4,'view':_0x3b91ce};}break;case k['UpdatePivotSource']:{const _0x413a19=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x3fa)];if(!_0x413a19)return;const {dataRangeInfo:_0xa5b5ce,unitId:_0x46fe9b,subUnitId:_0x3dd7a7}=_0x413a19,_0x48ed3f=this[_0x2cf8c2(0x240)]['getPivotTableConfig'](_0x46fe9b,_0x3dd7a7,_0x11f674),_0x2864db=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x23f)](_0x11f674);if(!this[_0x2cf8c2(0x240)][_0x2cf8c2(0x1ca)](_0x46fe9b,_0x11f674)||!_0x2864db||!_0x48ed3f)return;const _0x3e01dc=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x35f)](_0x46fe9b,_0x11f674,_0xa5b5ce),_0x5b5b09=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x1ca)](_0x46fe9b,_0x11f674)[_0x2cf8c2(0x2c7)](),{collection:_0xb2174f}=this[_0x2cf8c2(0x240)]['createCollectionWithDataRange']({'unitId':_0xa5b5ce[_0x2cf8c2(0x39f)],'sheetName':_0xa5b5ce['sheetName'],'subUnitId':_0xa5b5ce[_0x2cf8c2(0x36e)],'range':_0xa5b5ce[_0x2cf8c2(0x411)]}),_0x2e017c=_0xb2174f[_0x2cf8c2(0x2c7)]();_0x2864db[_0x2cf8c2(0x290)]();const _0xde6c8d=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x46fe9b)[_0x2cf8c2(0x455)]()||p['getAutoDisplayName'];_0x2864db[_0x2cf8c2(0x2ce)](_0x46002c=>{const _0x25d1b9=_0x2cf8c2,_0x4da334=_0x46002c[_0x25d1b9(0x2b3)]();if(!_0xb2174f[_0x25d1b9(0x479)](_0x4da334)){const _0x1607cd=_0xb2174f['getDataFieldBySourceName'](_0x46002c['getSourceName']());if(_0x1607cd){_0x2864db['updateFieldSourceInfo'](_0x46002c['getId'](),_0x1607cd[_0x25d1b9(0x256)](),_0x1607cd[_0x25d1b9(0x263)]());const {area:_0x326e56}=_0x2864db[_0x25d1b9(0x426)](_0x46002c[_0x25d1b9(0x263)]());let _0x356541=_0x46002c[_0x25d1b9(0x1d5)]();const _0x4f90ca=_0x46002c['getDisplayName']();if(_0x326e56===p[_0x25d1b9(0x35b)][_0x25d1b9(0x456)]){const _0x164cc2=_0x46002c[_0x25d1b9(0x3bc)]();_0x356541=_0xde6c8d(_0x1607cd[_0x25d1b9(0x256)](),_0x164cc2);}_0x4f90ca!==_0x356541&&_0x2864db[_0x25d1b9(0x27e)](_0x46002c[_0x25d1b9(0x263)](),_0x356541);}else _0x2864db[_0x25d1b9(0x223)](_0x46002c['getId']());}});const _0x219301=_0x2864db[_0x2cf8c2(0x221)](),_0x4bb013=_0x2864db[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x12a431=_0x2864db[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x3fa)]={'view':_0x4bb013,'changesets':_0x12a431,'isEmpty':_0x219301,'pivotTableConfig':_0x48ed3f,'collectionConfig':_0x2e017c,'oldCollectionConfig':_0x5b5b09,'deleteIds':_0x3e01dc};}break;case k[_0x2cf8c2(0x364)]:{const _0x2ff677=_0xfe3f24['params']['updateValuePosition'];if(!_0x2ff677)return;const {position:_0xdd9604,index:_0x276a15}=_0x2ff677,_0x40e05a=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x40e05a)return!0x1;const _0xf1acbf=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674);if(!_0xf1acbf)return!0x1;_0xf1acbf[_0x2cf8c2(0x290)](),_0xf1acbf[_0x2cf8c2(0x1e5)](_0xdd9604,_0x276a15);const _0x1fdf93=_0xf1acbf['isEmpty'](),_0x32c2be=_0xf1acbf[_0x2cf8c2(0x1f8)]()['toJSON'](),_0x4aaf29=_0xf1acbf[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x1e5)]={'changesets':_0x4aaf29,'pivotTableConfig':_0x40e05a,'isEmpty':_0x1fdf93,'view':_0x32c2be};}break;case k[_0x2cf8c2(0x1d0)]:{const _0x38bff2=_0xfe3f24['params'][_0x2cf8c2(0x49d)];if(!_0x38bff2)return;const {tableFieldId:_0x27efa2,collapse:_0x4c17a5,item:_0x3b415f}=_0x38bff2,_0x1e2cc8=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674),_0x2f6bb9=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x1e2cc8||!_0x2f6bb9)return;_0x1e2cc8[_0x2cf8c2(0x290)](),_0x1e2cc8[_0x2cf8c2(0x272)](_0x27efa2,_0x4c17a5,_0x3b415f);const _0x212377=_0x1e2cc8[_0x2cf8c2(0x221)](),_0x625113=_0x1e2cc8[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x175fc0=_0x1e2cc8['endCollectChangeset']();_0x216874[_0x2cf8c2(0x49d)]={'view':_0x625113,'isEmpty':_0x212377,'pivotTableConfig':_0x2f6bb9,'changesets':_0x175fc0};}break;case k[_0x2cf8c2(0x459)]:{const _0x45c197=_0xfe3f24[_0x2cf8c2(0x483)][_0x2cf8c2(0x3d2)];if(!_0x45c197)return;const {pivotTableConfig:_0x2069df}=_0x45c197,_0x559905=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674),_0x1197e0=this[_0x2cf8c2(0x240)]['getPivotTableConfig'](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x559905||!_0x1197e0)return;_0x559905[_0x2cf8c2(0x290)](),dn(_0x559905,_0x2069df);const _0x3cae05=_0x559905[_0x2cf8c2(0x221)](),_0x51fce6=_0x559905['query']()[_0x2cf8c2(0x2c7)](),_0x24cee7=_0x559905[_0x2cf8c2(0x49c)]();_0x216874[_0x2cf8c2(0x3d2)]={'view':_0x51fce6,'isEmpty':_0x3cae05,'pivotTableConfig':{..._0x1197e0,'fieldsConfig':_0x559905[_0x2cf8c2(0x2c7)]()},'changesets':_0x24cee7};}break;case k[_0x2cf8c2(0x276)]:{const _0x279984=_0xfe3f24[_0x2cf8c2(0x483)]['resetPivotTable'];if(!_0x279984)return;const _0x58d661=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x23f)](_0x11f674),_0x48db04=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x467)](_0x5361f7,_0x5a5ad1,_0x11f674);if(!_0x58d661||!_0x48db04)return;_0x58d661[_0x2cf8c2(0x290)](),cn(_0x58d661,_0x279984[_0x2cf8c2(0x334)]);const _0x47b4e7=_0x58d661[_0x2cf8c2(0x1f8)]()[_0x2cf8c2(0x2c7)](),_0x359e09=_0x58d661[_0x2cf8c2(0x49c)]();_0x216874['resetPivotTable']={'view':_0x47b4e7,'isEmpty':!0x0,'pivotTableConfig':{..._0x48db04,'fieldsConfig':_0x58d661[_0x2cf8c2(0x2c7)]()},'changesets':_0x359e09};}break;case k[_0x2cf8c2(0x42b)]:{const _0x25d0fb=_0xfe3f24[_0x2cf8c2(0x483)]['addPivotTableWithConfig'];if(!_0x25d0fb)return;const _0x5188e1=_0x25d0fb[_0x2cf8c2(0x2ff)],_0x25f6b2=_0x25d0fb[_0x2cf8c2(0x43e)],{collection:_0x5109e0}=this['_sheetsPivotDataSourceModel'][_0x2cf8c2(0x457)]({'unitId':_0x5188e1[_0x2cf8c2(0x39f)],'sheetName':_0x5188e1[_0x2cf8c2(0x429)],'subUnitId':_0x5188e1[_0x2cf8c2(0x36e)],'range':_0x5188e1['range']}),_0x1c4489=new p[(_0x2cf8c2(0x4a1))](_0x5109e0,void 0x0,_0x25f6b2),_0x553653=_0x5109e0['getFieldIds'](),{rows:_0x2b4b34,columns:_0x6c0af,filters:_0x553fe7,values:_0x4490a2}=_0x25d0fb['pivotTableIndexConfig'];_0x1c4489[_0x2cf8c2(0x290)]();for(const {field:_0x2767b6,selectedItems:_0x2a0dad}of _0x2b4b34||[]){const _0xb2bf86=_0x553653[_0x2767b6];if(_0xb2bf86){const _0x1c9beb=_0x1c4489[_0x2cf8c2(0x41c)](_0xb2bf86,p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x4af)]);_0x2a0dad&&_0x1c9beb&&_0x1c4489['setLabelFilterInfo'](_0x1c9beb[_0x2cf8c2(0x263)](),{'type':p['PivotFilterTypeEnum'][_0x2cf8c2(0x31c)],'list':_0x2a0dad,'isAll':!0x1});}}for(const {field:_0x200f2d,selectedItems:_0x2f24bb}of _0x6c0af||[]){const _0x1b57de=_0x553653[_0x200f2d];if(_0x1b57de){const _0x2c631d=_0x1c4489[_0x2cf8c2(0x41c)](_0x1b57de,p['PivotTableFiledAreaEnum'][_0x2cf8c2(0x3b2)]);_0x2f24bb&&_0x2c631d&&_0x1c4489[_0x2cf8c2(0x499)](_0x2c631d['getId'](),{'type':p[_0x2cf8c2(0x285)]['ManualFilter'],'list':_0x2f24bb,'isAll':!0x1});}}for(const {field:_0x159f78,selectedItems:_0x54c235}of _0x553fe7||[]){const _0x2eb3fa=_0x553653[_0x159f78];if(_0x2eb3fa){const _0x3eb740=_0x1c4489['addFieldWithSourceId'](_0x2eb3fa,p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x1a9)]);_0x54c235&&_0x3eb740&&_0x1c4489[_0x2cf8c2(0x499)](_0x3eb740[_0x2cf8c2(0x263)](),{'type':p[_0x2cf8c2(0x285)][_0x2cf8c2(0x31c)],'list':_0x54c235,'isAll':!0x1});}}for(const {field:_0x447a1d,subTotalType:_0x19b5b6,formatString:_0x55b38b}of _0x4490a2||[]){const _0x32904b=_0x5109e0[_0x2cf8c2(0x3cb)](_0x553653[_0x447a1d]);if(!_0x32904b)continue;const _0x224e0a=_0x553653[_0x447a1d];if(_0x224e0a){const _0x3833bb=_0x1c4489[_0x2cf8c2(0x41c)](_0x224e0a,p[_0x2cf8c2(0x35b)][_0x2cf8c2(0x456)]);if(_0x3833bb){if(_0x19b5b6!==void 0x0){_0x1c4489[_0x2cf8c2(0x2ad)](_0x3833bb[_0x2cf8c2(0x263)](),_0x19b5b6);const _0x2c170c=this[_0x2cf8c2(0x240)][_0x2cf8c2(0x2c3)](_0x5188e1['unitId'])[_0x2cf8c2(0x455)]()||p[_0x2cf8c2(0x3fb)],_0x4b8222=_0x5109e0[_0x2cf8c2(0x320)](_0x224e0a),_0x33a357=_0x2c170c(_0x4b8222,_0x19b5b6);_0x1c4489[_0x2cf8c2(0x27e)](_0x3833bb['getId'](),_0x33a357);}else{if(_0x32904b){const _0x572e7a=_0x32904b==null?void 0x0:_0x32904b[_0x2cf8c2(0x3eb)]();_0x1c4489[_0x2cf8c2(0x2ad)](_0x3833bb['getId'](),_0x572e7a===p[_0x2cf8c2(0x2ba)]['number']?p[_0x2cf8c2(0x34a)][_0x2cf8c2(0x405)]:p['PivotSubtotalTypeEnum'][_0x2cf8c2(0x36d)]);}}_0x55b38b&&_0x1c4489[_0x2cf8c2(0x281)](_0x3833bb[_0x2cf8c2(0x263)](),_0x55b38b);}}}const _0x2a9431=_0x1c4489['query'](),_0x42d3d0=_0x1c4489[_0x2cf8c2(0x2c7)](),_0x3cff47=_0x1c4489[_0x2cf8c2(0x221)](),_0x39ca46=_0x1c4489[_0x2cf8c2(0x49c)](),_0x47678a=_0x5109e0[_0x2cf8c2(0x2c7)]();_0x216874[_0x2cf8c2(0x3d4)]={'view':_0x2a9431,'fieldsConfig':_0x42d3d0,'collectionConfig':_0x47678a,'isEmpty':_0x3cff47,'changesets':_0x39ca46};}break;case k[_0x2cf8c2(0x1ef)]:{const _0x566ce7=nn(this[_0x2cf8c2(0x1bc)],_0xfe3f24);if(!_0x566ce7)return;const {range:_0x4e7a55,sourceSubUnitId:_0x168a17,sourceUnitId:_0xdee4ea,formatMap:_0x348945,indexes:_0x3fc36a}=_0x566ce7;_0x216874[_0x2cf8c2(0x2e2)]={'range':_0x4e7a55,'sourceSubUnitId':_0x168a17,'sourceUnitId':_0xdee4ea,'formatMap':_0x348945,'indexes':_0x3fc36a};}break;}this['_commandService'][_0x2cf8c2(0x430)](wt['id'],{'version':_0xfe3f24[_0x2cf8c2(0x362)],'result':_0x216874},{'onlyLocal':!0x0});}));}[_0x498bf1(0x1a3)](){const _0x294fda=_0x498bf1;this['disposeWithMe'](this[_0x294fda(0x3f9)][_0x294fda(0x3ac)](_0xbc5325=>{const _0x384ef0=_0x294fda;if(_0xbc5325['id']!==Rt['id'])return;const _0x51a3ea=_0xbc5325[_0x384ef0(0x483)];return this[_0x384ef0(0x240)]['setTextInfo'](_0x51a3ea[_0x384ef0(0x1fe)]),!0x0;}));}[_0x498bf1(0x1e9)](){const _0xe530ac=_0x498bf1;this[_0xe530ac(0x240)][_0xe530ac(0x3d3)][_0xe530ac(0x2cb)](_0x2903d0=>{const _0x3c3c62=_0xe530ac;switch(_0x2903d0[_0x3c3c62(0x363)]){case be[_0x3c3c62(0x40d)]:_0x2903d0['dataRangeInfo']&&_0x2903d0[_0x3c3c62(0x235)]&&this[_0x3c3c62(0x1dd)](_0x2903d0[_0x3c3c62(0x204)],_0x2903d0[_0x3c3c62(0x342)],_0x2903d0['targetCellInfo']);break;case be[_0x3c3c62(0x2d9)]:{const {unitId:_0x2f51ea,subUnitId:_0x493a5b,token:_0x50ad3d}=_0x2903d0;_0x2f51ea&&_0x493a5b&&_0x50ad3d&&this[_0x3c3c62(0x439)](_0x2f51ea,_0x493a5b,_0x50ad3d);}break;case be['update']:{const {token:_0x41c434,oldSourceRangeInfo:_0x5a74ff,dataRangeInfo:_0x419a12,targetCellInfo:_0x2fe835}=_0x2903d0,{unitId:_0x1c3487,subUnitId:_0x236559}=_0x5a74ff||{};_0x1c3487&&_0x236559&&_0x41c434&&this[_0x3c3c62(0x439)](_0x1c3487,_0x236559,_0x41c434),_0x419a12&&_0x2fe835&&this[_0x3c3c62(0x1dd)](_0x41c434,_0x419a12,_0x2fe835);}break;}});}[_0x498bf1(0x3bb)](){const _0x1d97b6=_0x498bf1;this[_0x1d97b6(0x240)]['fieldsCollectionChange$']['subscribe'](_0x217d2b=>{const _0xd07d31=_0x1d97b6;Object[_0xd07d31(0x418)](_0x217d2b)['forEach'](_0x4837ea=>{const _0x289e23=_0xd07d31,_0x2eea98=this['_sheetsPivotDataSourceModel'][_0x289e23(0x3ab)](_0x4837ea);if(_0x2eea98){const _0x35a059=this[_0x289e23(0x240)][_0x289e23(0x467)](_0x2eea98==null?void 0x0:_0x2eea98['unitId'],_0x2eea98==null?void 0x0:_0x2eea98[_0x289e23(0x36e)],_0x4837ea);_0x35a059&&(this[_0x289e23(0x1dd)](_0x4837ea,_0x35a059[_0x289e23(0x2ff)],_0x35a059[_0x289e23(0x235)]),this[_0x289e23(0x36b)]([{'unitId':_0x2eea98['unitId'],'subUnitId':_0x2eea98['subUnitId'],'token':_0x4837ea}]));}});});}[_0x498bf1(0x383)](){const _0x5b1b20=_0x498bf1;this['_sheetsPivotDataSourceModel']['viewData$'][_0x5b1b20(0x2cb)](_0x1490ce=>{const _0x52bf0c=_0x5b1b20,{unitId:_0x326a3e,subUnitId:_0xeaefea,pivotTableId:_0x39ce65}=_0x1490ce;_0x326a3e&&_0xeaefea&&_0x39ce65&&this[_0x52bf0c(0x36b)]([{'unitId':_0x326a3e,'subUnitId':_0xeaefea,'token':_0x39ce65}]);});}[_0x498bf1(0x36b)](_0x39f6bd){const _0x487b10=_0x498bf1,_0x82257e={};_0x39f6bd[_0x487b10(0x421)](_0x56e7d6=>{var _0xfe2131,_0xd7170b;const {unitId:_0x991368,subUnitId:_0x46e5be,token:_0x4a57d7}=_0x56e7d6;_0x82257e[_0x991368]=(_0xfe2131=_0x82257e[_0x991368])!=null?_0xfe2131:{},_0x82257e[_0x991368][_0x46e5be]=(_0xd7170b=_0x82257e[_0x991368][_0x46e5be])!=null?_0xd7170b:{},_0x82257e[_0x991368][_0x46e5be][_0x4a57d7]=!0x0;}),this['_commandService'][_0x487b10(0x430)](He['id'],_0x82257e);}[_0x498bf1(0x439)](_0x33d42d,_0x3f691a,_0x135d06){const _0x28ad94=_0x498bf1;this[_0x28ad94(0x329)][_0x28ad94(0x48b)](_0x33d42d,_0x3f691a,[_0x135d06]);}[_0x498bf1(0x1dd)](_0x4caba3,_0x4ee389,_0x36c77b){const _0x53d9a2=_0x498bf1,{unitId:_0x67a314,subUnitId:_0x406254}=_0x4ee389;this[_0x53d9a2(0x329)]['has'](_0x36c77b['unitId'],_0x36c77b['subUnitId'],_0x4caba3)&&this[_0x53d9a2(0x439)](_0x67a314,_0x406254,_0x4caba3);const _0x543a61={'sheetId':_0x406254,..._0x4ee389};this[_0x53d9a2(0x329)]['register'](_0x36c77b['unitId'],_0x36c77b[_0x53d9a2(0x36e)],_0x4caba3,{'unitId':_0x36c77b['unitId'],'subUnitId':_0x36c77b[_0x53d9a2(0x36e)],'dependencyRanges':[_0x543a61],'getDirtyData':(_0x556b25,_0xee2f1b)=>{const _0x4fa691=_0x53d9a2,_0x641d11=this[_0x4fa691(0x240)],_0x294535=_0x641d11['getTargetByPivotId'](_0x4caba3);if(!_0x294535)return On();const {unitId:_0x3706b4,subUnitId:_0x48cd85}=_0x294535,_0x373b94=kn(_0x556b25,_0xee2f1b,_0x4ee389);if(_0x373b94[_0x4fa691(0x492)]>0x0){const _0x454609=_0x641d11[_0x4fa691(0x1ca)](_0x67a314,_0x4caba3),_0x3f6ca1=_0x454609[_0x4fa691(0x47a)](),_0x4d589b=this[_0x4fa691(0x489)](_0x4ee389[_0x4fa691(0x39f)],_0x4ee389[_0x4fa691(0x36e)],_0xee2f1b),_0x19de5d={},_0x39ddba=this[_0x4fa691(0x240)][_0x4fa691(0x2c3)](_0x3706b4)[_0x4fa691(0x455)]()||p[_0x4fa691(0x3fb)],_0x306cfc=[];for(const _0xbca92d of _0x373b94){const _0x2cdb16=_0xbca92d-(_0x4ee389[_0x4fa691(0x411)][_0x4fa691(0x368)]||0x0),_0x33a344=_0x3f6ca1[_0x2cdb16];_0x306cfc[_0x4fa691(0x2a1)](_0x33a344),_0x19de5d[_0x33a344]=_0x454609[_0x4fa691(0x3cb)](_0x33a344)[_0x4fa691(0x256)](),_0x641d11[_0x4fa691(0x2c3)](_0x67a314)[_0x4fa691(0x31d)](_0x33a344,_0x4ee389,_0x2cdb16,_0x4d589b);}_0x454609[_0x4fa691(0x25b)](_0x306cfc)[_0x4fa691(0x421)](_0x44c951=>{const _0x3c4794=_0x4fa691,[_0x24b2f0,_0x16a47e]=_0x44c951,_0x30d07e=_0x454609[_0x3c4794(0x3cb)](_0x24b2f0),_0x5a2448=_0x454609[_0x3c4794(0x3cb)](_0x16a47e);_0x30d07e&&_0x5a2448&&_0x30d07e['refreshGroupField'](_0x5a2448);}),_0x454609[_0x4fa691(0x385)]();const _0x5e675c=_0x641d11[_0x4fa691(0x23f)](_0x4caba3);if(_0x5e675c){An(_0x5e675c,_0x19de5d,_0x39ddba),_0x5e675c['setDirty'](!0x0);const _0x1da35f=_0x5e675c['query'](),_0x48d43e=_0x641d11['getPivotTableConfig'](_0x3706b4,_0x48cd85,_0x4caba3),_0x5af019=_0x641d11['getDataFieldManager'](_0x67a314)['toJSON']();_0x641d11[_0x4fa691(0x4a2)](_0x3706b4,_0x48cd85,j[_0x4fa691(0x249)],_0x4caba3,_0x1da35f,_0x48d43e,_0x5af019,!0x0);}}return this[_0x4fa691(0x3b1)](_0x3706b4,_0x48cd85,_0x4caba3);}});}['getMatrixFromRunTimeData'](_0x2fff52,_0x37fd6b,_0x53afa9){var _0x56c5ed,_0x40957d;const {arrayFormulaCellData:_0x5ef391,unitData:_0x5d83b9}=_0x53afa9,_0x22743c=(_0x56c5ed=_0x5ef391==null?void 0x0:_0x5ef391[_0x2fff52])==null?void 0x0:_0x56c5ed[_0x37fd6b],_0x3f064e=(_0x40957d=_0x5d83b9==null?void 0x0:_0x5d83b9[_0x2fff52])==null?void 0x0:_0x40957d[_0x37fd6b];return{'arrayFormulaCellDataMatrix':_0x22743c,'unitDataMatrix':_0x3f064e};}['getDirtyInfo'](_0x28accc,_0x293d89,_0x5b8db7){const _0xbba814=_0x498bf1,_0x1102fc=this['_sheetsPivotDataSourceModel']['getViewData'](_0x28accc,_0x293d89,_0x5b8db7),_0x454646=[],_0x481ec5=new v[(_0xbba814(0x2fa))]();if(_0x1102fc){const {rangeCache:_0x26f66f,matrix:_0x198685,oldRangeCache:_0x1b7160,oldMatrix:_0x3c8aae}=_0x1102fc,_0x5830e5=nt(_0x1b7160),_0x5105ee=nt(_0x26f66f);_0x454646[_0xbba814(0x2a1)](..._0x5105ee,..._0x5830e5),_0x3c8aae&&_0x1b7160&&_0x5830e5[_0xbba814(0x421)](_0x43106a=>{const _0x10140d=_0xbba814;for(let _0x28f867=_0x43106a['startRow'];_0x28f867<=_0x43106a[_0x10140d(0x34e)];_0x28f867++)for(let _0x5d25c3=_0x43106a[_0x10140d(0x368)];_0x5d25c3<=_0x43106a[_0x10140d(0x242)];_0x5d25c3++)_0x481ec5['realDeleteValue'](_0x28f867,_0x5d25c3);}),_0x198685&&_0x5105ee&&_0x5105ee['forEach'](_0x2b2aa8=>{const _0x2b4cb5=_0xbba814;for(let _0x51fef9=_0x2b2aa8[_0x2b4cb5(0x42a)];_0x51fef9<=_0x2b2aa8[_0x2b4cb5(0x34e)];_0x51fef9++)for(let _0x253ba6=_0x2b2aa8[_0x2b4cb5(0x368)];_0x253ba6<=_0x2b2aa8[_0x2b4cb5(0x242)];_0x253ba6++)_0x481ec5['setValue'](_0x51fef9,_0x253ba6,_0x198685[_0x2b4cb5(0x438)](_0x51fef9,_0x253ba6));});}const _0x21de59={};return _0x21de59[_0x28accc]={[_0x293d89]:Ln(_0x454646)},{'runtimeCellData':{[_0x28accc]:{[_0x293d89]:_0x481ec5}},'dirtyRanges':_0x21de59};}['dispose'](){}};Be=xn([Me(0x0,v[_0x498bf1(0x38a)](exports['SheetsPivotDataSourceModel'])),Me(0x1,v[_0x498bf1(0x22e)]),Me(0x2,v[_0x498bf1(0x38a)](ve[_0x498bf1(0x461)])),Me(0x3,v['Inject'](v[_0x498bf1(0x2e1)])),Me(0x4,v[_0x498bf1(0x38a)](ve[_0x498bf1(0x42e)])),Me(0x5,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)]))],Be);var jn=Object['getOwnPropertyDescriptor'],Bn=(_0x24a563,_0x4e0be9,_0x29ce45,_0x1b009b)=>{const _0x4f25c0=_0x498bf1;for(var _0x5a7423=_0x1b009b>0x1?void 0x0:_0x1b009b?jn(_0x4e0be9,_0x29ce45):_0x4e0be9,_0x4e2a2b=_0x24a563[_0x4f25c0(0x492)]-0x1,_0x348b4a;_0x4e2a2b>=0x0;_0x4e2a2b--)(_0x348b4a=_0x24a563[_0x4e2a2b])&&(_0x5a7423=_0x348b4a(_0x5a7423)||_0x5a7423);return _0x5a7423;},et=(_0x3d9878,_0x4e9708)=>(_0x20ff02,_0x2bf5a0)=>_0x4e9708(_0x20ff02,_0x2bf5a0,_0x3d9878);let Ge=class extends v[_0x498bf1(0x26e)]{constructor(_0x444d1d,_0x46b000,_0x57e680,_0x3d0c40){const _0x159a2b=_0x498bf1;super(),x(this,_0x159a2b(0x2a0),new v[(_0x159a2b(0x286))]()),(this[_0x159a2b(0x48e)]=_0x444d1d,this[_0x159a2b(0x3c0)]=_0x46b000,this['_sheetsSelectionsService']=_0x57e680,this[_0x159a2b(0x3f1)]=_0x3d0c40,this[_0x159a2b(0x2ab)]());}[_0x498bf1(0x2ab)](){const _0x2c10db=_0x498bf1;this[_0x2c10db(0x22a)](this[_0x2c10db(0x3c0)][_0x2c10db(0x1be)]({'getMutations':_0xf63f98=>{const _0x357d1b=_0x2c10db;if(_0xf63f98['id']===V[_0x357d1b(0x20f)]['id']||_0xf63f98['id']===V[_0x357d1b(0x29c)]['id']){const _0x1d96ce=[],_0x2a67fd=[],_0x1a7c09=this[_0x357d1b(0x300)][_0x357d1b(0x292)]()[_0x357d1b(0x241)](_0x1a728b=>_0x1a728b[_0x357d1b(0x411)]),_0x50b0b0=V['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x50b0b0)return{'redos':[],'undos':[]};const {unitId:_0x5965d,subUnitId:_0x41c56f}=_0x50b0b0,_0x5c870a={},_0x567020=this[_0x357d1b(0x3f1)][_0x357d1b(0x1a4)](_0x5965d,_0x41c56f);if(_0x567020!=null&&_0x567020['size'])for(const [_0x2f592e,_0x1a5240]of _0x567020){const {unitId:_0x3a44bd,subUnitId:_0x1c63cb,row:_0x6d5bf5,col:_0x4ee98a}=_0x1a5240['targetCellInfo'];_0x3a44bd===_0x50b0b0[_0x357d1b(0x39f)]&&_0x1c63cb===_0x50b0b0[_0x357d1b(0x36e)]&&(_0x5c870a[_0x6d5bf5+'-'+_0x4ee98a]=_0x2f592e);}return _0x1a7c09&&_0x50b0b0&&_0x1a7c09[_0x357d1b(0x421)](_0x2cc00b=>{const _0x5c5aae=_0x357d1b;v[_0x5c5aae(0x482)][_0x5c5aae(0x43d)](_0x2cc00b,(_0x1e5baf,_0x12f3f4)=>{const _0x3eafec=_0x5c5aae,_0x2e4c25=_0x1e5baf+'-'+_0x12f3f4;if(_0x5c870a[_0x2e4c25]){const _0x41f1d7=_0x5c870a[_0x2e4c25];_0x1d96ce[_0x3eafec(0x2a1)]({'id':ze['id'],'params':{'unitId':_0x5965d,'subUnitId':_0x41c56f,'pivotTableId':_0x41f1d7}});const _0x32942c=this[_0x3eafec(0x3f1)][_0x3eafec(0x1ca)](_0x5965d,_0x41f1d7),_0x3047f2=this[_0x3eafec(0x3f1)][_0x3eafec(0x467)](_0x5965d,_0x41c56f,_0x41f1d7);_0x2a67fd['push']({'id':Ue['id'],'params':{'unitId':_0x5965d,'subUnitId':_0x41c56f,'pivotTableId':_0x41f1d7,'pivotTableConfig':_0x3047f2,'collectionConfig':_0x32942c}});}});}),{'redos':_0x1d96ce,'undos':_0x2a67fd};}return{'redos':[],'undos':[]};}}));}};Ge=Bn([et(0x0,v[_0x498bf1(0x2a7)]),et(0x1,v[_0x498bf1(0x38a)](V[_0x498bf1(0x344)])),et(0x2,v['Inject'](V[_0x498bf1(0x302)])),et(0x3,v['Inject'](exports[_0x498bf1(0x48c)]))],Ge);var Gn=Object[_0x498bf1(0x2b5)],$n=(_0x8c4dee,_0x4b2408,_0x191cb0,_0x236045)=>{for(var _0x554561=_0x236045>0x1?void 0x0:_0x236045?Gn(_0x4b2408,_0x191cb0):_0x4b2408,_0x7f6c94=_0x8c4dee['length']-0x1,_0x3a342c;_0x7f6c94>=0x0;_0x7f6c94--)(_0x3a342c=_0x8c4dee[_0x7f6c94])&&(_0x554561=_0x3a342c(_0x554561)||_0x554561);return _0x554561;},Fe=(_0x4a058e,_0x4bedba)=>(_0x5e1d6f,_0x18a3cc)=>_0x4bedba(_0x5e1d6f,_0x18a3cc,_0x4a058e);let $e=class extends v[_0x498bf1(0x26e)]{constructor(_0x6d1f7d,_0x450532,_0x34d0a0,_0x48d9f2,_0x20eb3b,_0x4f2f3c){const _0x27e043=_0x498bf1;super(),this[_0x27e043(0x323)]=_0x6d1f7d,this['_sheetInterceptorService']=_0x450532,this[_0x27e043(0x1bc)]=_0x34d0a0,this['_univerInstanceService']=_0x48d9f2,this[_0x27e043(0x3f1)]=_0x20eb3b,this[_0x27e043(0x26c)]=_0x4f2f3c,this[_0x27e043(0x381)]();}[_0x498bf1(0x487)](_0x5b58e6,_0x44a366,_0x7919ea){const _0x1a6dc1=_0x498bf1,{pageView:_0x57277b,cornerView:_0x343663,rowView:_0x10d546,colView:_0x445ddc,dataView:_0x1dea16}=_0x44a366,_0x4a2e02=_0x5b58e6;let _0x278ebc;if(_0x7919ea)_0x278ebc=[...Xt(_0x4a2e02)];else{const _0x4f570b=oe(_0x4a2e02,_0x57277b,!0x0),_0x40b272=_0x57277b[_0x1a6dc1(0x32e)]>=0x0?_0x57277b[_0x1a6dc1(0x32e)]+0x1:0x0,_0x2ad97b=_0x343663[_0x1a6dc1(0x2d5)],_0x316c5f=_0x343663[_0x1a6dc1(0x35d)],_0x2ec367=_0x4f570b[_0x1a6dc1(0x492)]>0x0?De:0x0,_0x2954d7=oe({'row':_0x4a2e02['row']+_0x40b272+_0x2ec367,'col':_0x4a2e02[_0x1a6dc1(0x463)]},_0x343663,!0x1,!0x1),_0x517e5c=oe({'row':_0x4a2e02[_0x1a6dc1(0x1c0)]+_0x40b272+_0x2ec367+_0x2ad97b,'col':_0x4a2e02[_0x1a6dc1(0x463)]},_0x10d546,!0x1,!0x0),_0x535e18=oe({'row':_0x4a2e02[_0x1a6dc1(0x1c0)]+_0x40b272+_0x2ec367,'col':_0x4a2e02[_0x1a6dc1(0x463)]+_0x316c5f},_0x445ddc,!0x1,!0x0),_0x857250=oe({'row':_0x4a2e02[_0x1a6dc1(0x1c0)]+_0x40b272+_0x2ec367+_0x2ad97b,'col':_0x4a2e02[_0x1a6dc1(0x463)]+_0x316c5f},_0x1dea16,!0x1,!0x0);_0x278ebc=[..._0x4f570b,..._0x2954d7,..._0x517e5c,..._0x535e18,..._0x857250];}return _0x278ebc;}[_0x498bf1(0x381)](){const _0x529738=_0x498bf1;this[_0x529738(0x22a)](this[_0x529738(0x26c)][_0x529738(0x23d)][_0x529738(0x269)](this[_0x529738(0x26c)]['interceptor'][_0x529738(0x1e3)]()[_0x529738(0x25e)],{'handler':(_0x5945ea,_0x488799)=>{const _0x264f64=_0x529738,{cellInfo:_0x4c08d0,view:_0x3ce467,isEmpty:_0x2c1427}=_0x488799,_0x525a35=_0x4c08d0,{unitId:_0x13005d,subUnitId:_0x386cf7}=_0x525a35,_0x4a6aef=this['_getPivotAppliedRanges'](_0x4c08d0,_0x3ce467,_0x2c1427),_0x4dcc46=this['_sheetInterceptorService'][_0x264f64(0x40e)]({'unitId':_0x13005d,'subUnitId':_0x386cf7,'ranges':_0x4a6aef}),_0x5f68ff=Et(this['_injector'],_0x13005d,_0x386cf7,_0x4a6aef);_0x5f68ff[_0x264f64(0x420)]&&(_0x4dcc46['redos'][_0x264f64(0x2a1)](_0x5f68ff[_0x264f64(0x346)]),_0x4dcc46['undos'][_0x264f64(0x2a1)](_0x5f68ff[_0x264f64(0x20b)]));const _0x2d87ab=this[_0x264f64(0x458)](_0x3ce467,_0x4c08d0);return _0x4dcc46['redos'][_0x264f64(0x2a1)](..._0x2d87ab[_0x264f64(0x39d)]),_0x4dcc46[_0x264f64(0x2a2)][_0x264f64(0x2a1)](..._0x2d87ab[_0x264f64(0x2a2)]),{'redos':_0x4dcc46[_0x264f64(0x39d)],'undos':_0x4dcc46['undos']};}}));}['getAutoFitColumnsMutations'](_0x69107a,_0x1571db){const _0x1130b6=_0x498bf1,{col:_0x3d3429,unitId:_0x5d44d5,subUnitId:_0x384c76}=_0x1571db,_0x44580c=[],_0x52a060=[],_0x507c0d=V['getSheetCommandTarget'](this[_0x1130b6(0x48e)],{'unitId':_0x5d44d5,'subUnitId':_0x384c76});if(!_0x1571db||!_0x69107a||!_0x507c0d)return{'undos':_0x52a060,'redos':_0x44580c};const _0x2c9538=this[_0x1130b6(0x3f1)][_0x1130b6(0x3c1)](),{colView:_0xe0ee95,dataView:_0x122c62,cornerView:_0x13eb55,rowView:_0x4cd67b,formatMap:_0x2a9a9c}=_0x69107a,_0x6d49ab=kt(_0xe0ee95,_0x2c9538,!0x0,_0x2a9a9c),_0xd364e3=kt(_0x4cd67b,_0x2c9538,!0x1,_0x2a9a9c),_0x3e022c=rn(_0x122c62),_0x21e5d9=ln(_0x13eb55),{worksheet:_0x59ddce}=_0x507c0d;if(typeof window<'u'&&window[_0x1130b6(0x28b)]){const _0x56d3c4=Oe[_0x1130b6(0x23b)]({...te[_0x1130b6(0x261)]}),_0x2d2b2c=Oe[_0x1130b6(0x395)]['getTextSize'](_0x6d49ab,_0x56d3c4)[_0x1130b6(0x220)]+0x10,_0x492483=Oe['FontCache'][_0x1130b6(0x234)](_0x3e022c,_0x56d3c4)[_0x1130b6(0x220)],_0xaf101=Math[_0x1130b6(0x2d2)](Math[_0x1130b6(0x327)](_0x2d2b2c,_0x492483))+0x10,_0x330a1e=Math['floor'](Oe['FontCache'][_0x1130b6(0x234)](_0xd364e3,_0x56d3c4)['width']),_0x900a21=Math[_0x1130b6(0x2d2)](Oe[_0x1130b6(0x395)]['getTextSize'](_0x21e5d9,_0x56d3c4)[_0x1130b6(0x220)]),_0x855dac=Math[_0x1130b6(0x327)](_0x330a1e,_0x900a21,0x28)+0xc,_0x1af2a2=_0xe0ee95[_0x1130b6(0x35d)]+_0x13eb55[_0x1130b6(0x35d)],_0x1906bd={},_0x13216a={};for(let _0x1071a2=_0x3d3429;_0x1071a2<_0x3d3429+_0x1af2a2;_0x1071a2++){const _0x102ac0=_0x59ddce[_0x1130b6(0x1ce)](_0x1071a2);_0x1906bd[_0x1071a2]=_0x102ac0,_0x1071a2-_0x3d3429<_0x13eb55[_0x1130b6(0x35d)]?_0x13216a[_0x1071a2-_0x3d3429]=_0x855dac:_0x13216a[_0x1071a2-_0x3d3429]=_0xaf101;}_0x44580c['push']({'id':V[_0x1130b6(0x1f9)]['id'],'params':{'subUnitId':_0x384c76,'unitId':_0x5d44d5,'ranges':[{'startColumn':_0x3d3429,'endColumn':_0x3d3429+_0x1af2a2-0x1,'startRow':0x0,'endRow':_0x59ddce[_0x1130b6(0x312)]()-0x1}],'colWidth':_0x13216a}}),_0x52a060['push']({'id':V[_0x1130b6(0x1f9)]['id'],'params':{'subUnitId':_0x384c76,'unitId':_0x5d44d5,'ranges':[{'startColumn':_0x3d3429,'endColumn':_0x3d3429+_0x1af2a2-0x1,'startRow':0x0,'endRow':_0x59ddce[_0x1130b6(0x312)]()-0x1}],'colWidth':_0x1906bd}});}return{'undos':_0x52a060,'redos':_0x44580c};}};$e=$n([Fe(0x0,v[_0x498bf1(0x38a)](v['LocaleService'])),Fe(0x1,v[_0x498bf1(0x38a)](V[_0x498bf1(0x344)])),Fe(0x2,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),Fe(0x3,v['Inject'](v[_0x498bf1(0x2a7)])),Fe(0x4,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x48c)])),Fe(0x5,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x253)]))],$e);var Wn=Object[_0x498bf1(0x2b5)],Jn=(_0x10109f,_0x5c2104,_0x9806e9,_0x44d8d6)=>{for(var _0xe3994d=_0x44d8d6>0x1?void 0x0:_0x44d8d6?Wn(_0x5c2104,_0x9806e9):_0x5c2104,_0x2c6560=_0x10109f['length']-0x1,_0x4d257d;_0x2c6560>=0x0;_0x2c6560--)(_0x4d257d=_0x10109f[_0x2c6560])&&(_0xe3994d=_0x4d257d(_0xe3994d)||_0xe3994d);return _0xe3994d;},Ce=(_0x106820,_0x185705)=>(_0x56ca5f,_0x1c609c)=>_0x185705(_0x56ca5f,_0x1c609c,_0x106820);let We=class extends v[_0x498bf1(0x26e)]{constructor(_0x5724d5,_0x1e85cf,_0x29cf0b,_0x4cdb83,_0x3a263a,_0x2d6007,_0x267ca7){const _0x47624f=_0x498bf1;super(),x(this,_0x47624f(0x2a0),new v[(_0x47624f(0x286))]()),(this['_injector']=_0x5724d5,this[_0x47624f(0x484)]=_0x1e85cf,this[_0x47624f(0x3f9)]=_0x29cf0b,this[_0x47624f(0x48e)]=_0x4cdb83,this['_sheetsPivotTableConfigModel']=_0x3a263a,this['_sheetsPivotTableAdaptorModel']=_0x2d6007,this[_0x47624f(0x3c0)]=_0x267ca7,this[_0x47624f(0x22d)]());}[_0x498bf1(0x22d)](){const _0x446b14=_0x498bf1,_0x7ace4a=(_0x41a6ed,_0x498c5d)=>{const _0x4acb9c=_0x4e9d,_0x5d3cbd=this['_univerInstanceService']['getCurrentUnitForType'](v[_0x4acb9c(0x343)][_0x4acb9c(0x3b3)]);if(!_0x5d3cbd||!(_0x5d3cbd==null?void 0x0:_0x5d3cbd[_0x4acb9c(0x1b3)](_0x498c5d)))return;this[_0x4acb9c(0x2a0)][_0x4acb9c(0x250)]();const _0x317a59=_0x50bc9d=>this[_0x4acb9c(0x239)](_0x50bc9d,_0x41a6ed,_0x498c5d),_0x1e132e=this[_0x4acb9c(0x3f1)][_0x4acb9c(0x1a4)](_0x41a6ed,_0x498c5d);if(!(_0x1e132e!=null&&_0x1e132e[_0x4acb9c(0x349)]))return;Array[_0x4acb9c(0x2aa)](_0x1e132e[_0x4acb9c(0x3dc)]())[_0x4acb9c(0x241)](_0x22c880=>{const _0x26be35=_0x4acb9c,{row:_0x101462,col:_0xf53ed2}=_0x22c880[_0x26be35(0x235)];return v[_0x26be35(0x1b9)](_0x101462,_0xf53ed2);})['forEach'](_0x2a1f2b=>{const _0x552e16=_0x4acb9c;this[_0x552e16(0x2a0)][_0x552e16(0x40d)](this[_0x552e16(0x484)][_0x552e16(0x1c6)](_0x2a1f2b,_0x317a59,_0x41a6ed,_0x498c5d));});},_0x183d24=()=>{const _0x4e3866=_0x4e9d,_0x36126f=this['_univerInstanceService'][_0x4e3866(0x43f)](v[_0x4e3866(0x343)][_0x4e3866(0x3b3)]);if(_0x36126f){const _0x20b461=_0x36126f[_0x4e3866(0x2ae)]();if(!_0x20b461)return;_0x7ace4a(_0x36126f[_0x4e3866(0x29a)](),_0x20b461[_0x4e3866(0x1c8)]());}};this[_0x446b14(0x22a)](this[_0x446b14(0x3f9)][_0x446b14(0x3ac)](_0xc33426=>{const _0x5d33c6=_0x446b14;if(_0xc33426['id']===V[_0x5d33c6(0x45d)]['id']){const _0x4c06a8=_0xc33426[_0x5d33c6(0x483)],_0x2a55ca=_0x4c06a8[_0x5d33c6(0x36e)],_0x1ef6d5=_0x4c06a8[_0x5d33c6(0x39f)];if(!_0x2a55ca||!_0x1ef6d5)return;_0x7ace4a(_0x1ef6d5,_0x2a55ca);}})),this[_0x446b14(0x22a)](this['_sheetsPivotTableConfigModel']['pivotInitCompleted$'][_0x446b14(0x2cb)](_0x5203cf=>{_0x5203cf&&_0x183d24();})),this[_0x446b14(0x22a)](this[_0x446b14(0x3f1)][_0x446b14(0x222)][_0x446b14(0x2cb)](_0x198f30=>{const _0x3e28f0=_0x446b14,_0x45962b=V[_0x3e28f0(0x423)](this['_univerInstanceService']);if(!_0x45962b)return;const {unitId:_0x4f0550,subUnitId:_0x46dc78}=_0x45962b,{unitId:_0x591b88,subUnitId:_0x1b11b1}=_0x198f30;_0x4f0550!==_0x591b88||_0x46dc78!==_0x1b11b1||_0x7ace4a(_0x4f0550,_0x46dc78);})),_0x183d24();}[_0x498bf1(0x239)](_0x3d32fa,_0x3477e5,_0x306f3d){const _0x41ea48=_0x498bf1;switch(_0x3d32fa['id']){case V[_0x41ea48(0x1e6)]['id']:return this[_0x41ea48(0x472)](_0x3d32fa[_0x41ea48(0x483)],_0x3477e5,_0x306f3d);}return{'redos':[],'undos':[]};}[_0x498bf1(0x472)](_0x5932af,_0x16575c,_0x297493){const _0x4884dc=_0x498bf1,{fromRange:_0x37782c,toRange:_0x7a0c14}=_0x5932af,_0x1f184d=[],_0x18a9ee=[],_0x50cd36=V[_0x4884dc(0x423)](this['_univerInstanceService']);if(!_0x50cd36)return{'undos':_0x18a9ee,'redos':_0x1f184d};if(_0x16575c!==_0x50cd36[_0x4884dc(0x39f)]||_0x297493!==_0x50cd36['subUnitId'])return{'undos':_0x18a9ee,'redos':_0x1f184d};const _0x430761=this[_0x4884dc(0x3f1)][_0x4884dc(0x1a4)](_0x16575c,_0x297493);if(_0x430761!=null&&_0x430761[_0x4884dc(0x349)])for(const [_0xa200b,_0x6a8ff8]of _0x430761){const {unitId:_0x306ac8,subUnitId:_0x453afa,row:_0x429455,col:_0x4a135c}=_0x6a8ff8[_0x4884dc(0x235)];if(_0x306ac8===_0x50cd36[_0x4884dc(0x39f)]&&_0x453afa===_0x50cd36[_0x4884dc(0x36e)]){const _0x35afca=v['cellToRange'](_0x429455,_0x4a135c);if(v[_0x4884dc(0x2f8)]['intersects'](_0x35afca,_0x37782c)){const _0x1f965a=_0x429455-_0x37782c[_0x4884dc(0x42a)],_0x3a1163=_0x4a135c-_0x37782c[_0x4884dc(0x368)],_0x590797={'row':_0x7a0c14[_0x4884dc(0x42a)]+_0x1f965a,'col':_0x7a0c14[_0x4884dc(0x368)]+_0x3a1163};_0x1f184d[_0x4884dc(0x2a1)]({'id':Re['id'],'params':{'unitId':_0x306ac8,'subUnitId':_0x453afa,'pivotTableId':_0xa200b,'targetCellPosition':_0x590797}}),_0x18a9ee[_0x4884dc(0x2a1)]({'id':Re['id'],'params':{'unitId':_0x306ac8,'subUnitId':_0x453afa,'pivotTableId':_0xa200b,'targetCellPosition':{'row':_0x429455,'col':_0x4a135c}}});const _0xa989be=_0x590797[_0x4884dc(0x1c0)]-_0x429455,_0x31db2c=_0x590797[_0x4884dc(0x463)]-_0x4a135c,_0x5a933c=[],_0x2c18d3=this[_0x4884dc(0x37a)]['getPivotItemRenderInfoCache'](_0x306ac8,_0x453afa,_0xa200b),_0x3fcdeb=_0x2c18d3==null?void 0x0:_0x2c18d3['rangesInfo'];if(_0x3fcdeb){Object[_0x4884dc(0x418)](_0x3fcdeb)['forEach'](_0x431250=>{const _0x19a653=_0x4884dc;_0x3fcdeb[_0x431250][_0x19a653(0x421)](_0x26687a=>{const _0x40b695=_0x19a653,_0x2b334a={..._0x26687a};_0x2b334a[_0x40b695(0x42a)]=_0x26687a['startRow']+_0xa989be,_0x2b334a[_0x40b695(0x34e)]=_0x26687a[_0x40b695(0x34e)]+_0xa989be,_0x2b334a[_0x40b695(0x368)]=_0x26687a[_0x40b695(0x368)]+_0x31db2c,_0x2b334a[_0x40b695(0x242)]=_0x26687a[_0x40b695(0x242)]+_0x31db2c,_0x5a933c[_0x40b695(0x2a1)](_0x2b334a);});});const _0x1016a8=this['_sheetInterceptorService'][_0x4884dc(0x40e)]({'unitId':_0x306ac8,'subUnitId':_0x453afa,'ranges':_0x5a933c});_0x1f184d['push'](..._0x1016a8[_0x4884dc(0x39d)]),_0x18a9ee[_0x4884dc(0x2a1)](..._0x1016a8[_0x4884dc(0x2a2)]);const _0x144edb=Et(this[_0x4884dc(0x1bc)],_0x306ac8,_0x453afa,_0x5a933c);_0x144edb[_0x4884dc(0x420)]&&(_0x1f184d[_0x4884dc(0x2a1)](_0x144edb[_0x4884dc(0x346)]),_0x18a9ee[_0x4884dc(0x2a1)](_0x144edb['setRangeValueUndoMutation']));}}}}return{'redos':_0x1f184d,'undos':_0x18a9ee};}};We=Jn([Ce(0x0,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),Ce(0x1,v[_0x498bf1(0x38a)](V[_0x498bf1(0x267)])),Ce(0x2,v['ICommandService']),Ce(0x3,v[_0x498bf1(0x2a7)]),Ce(0x4,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x48c)])),Ce(0x5,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x1c7)])),Ce(0x6,v[_0x498bf1(0x38a)](V[_0x498bf1(0x344)]))],We);var qn=Object['getOwnPropertyDescriptor'],Kn=(_0x2eda7c,_0x438fac,_0x47be43,_0x1ba483)=>{const _0x3d3f3e=_0x498bf1;for(var _0x5c9d5c=_0x1ba483>0x1?void 0x0:_0x1ba483?qn(_0x438fac,_0x47be43):_0x438fac,_0x2fb446=_0x2eda7c[_0x3d3f3e(0x492)]-0x1,_0xfa5ff1;_0x2fb446>=0x0;_0x2fb446--)(_0xfa5ff1=_0x2eda7c[_0x2fb446])&&(_0x5c9d5c=_0xfa5ff1(_0x5c9d5c)||_0x5c9d5c);return _0x5c9d5c;},Gt=(_0xa7dd3d,_0xdaab99)=>(_0x482d7f,_0x33061d)=>_0xdaab99(_0x482d7f,_0x33061d,_0xa7dd3d);let Je=class extends v['Disposable']{constructor(_0x26837,_0x2e8d53){const _0x3c9d3f=_0x498bf1;super(),this[_0x3c9d3f(0x3c0)]=_0x26837,this[_0x3c9d3f(0x3f1)]=_0x2e8d53,this[_0x3c9d3f(0x23e)]();}[_0x498bf1(0x23e)](){const _0x28cb9a=_0x498bf1;this[_0x28cb9a(0x22a)](this[_0x28cb9a(0x3c0)]['interceptCommand']({'getMutations':_0x19f09d=>{const _0x2c636d=_0x28cb9a;if(_0x19f09d['id']===V[_0x2c636d(0x1d4)]['id']){const _0x380190=[],_0x4cfcdf=[],_0x18b4a7=_0x19f09d[_0x2c636d(0x483)],{unitId:_0x1cf3ab,subUnitId:_0x373e8f}=_0x18b4a7;if(!_0x1cf3ab||!_0x373e8f)return{'undos':_0x4cfcdf,'redos':_0x380190};const _0x1e6601=this[_0x2c636d(0x3f1)][_0x2c636d(0x1a4)](_0x1cf3ab,_0x373e8f);if(_0x1e6601!=null&&_0x1e6601[_0x2c636d(0x349)])for(const [_0x18f6c6,_0x159d5f]of _0x1e6601){_0x380190[_0x2c636d(0x2a1)]({'id':ze['id'],'params':{'unitId':_0x1cf3ab,'subUnitId':_0x373e8f,'pivotTableId':_0x18f6c6}});const _0xea25c7={...this[_0x2c636d(0x3f1)]['getCollection'](_0x1cf3ab,_0x18f6c6)};_0x4cfcdf['push']({'id':Ue['id'],'params':{'unitId':_0x1cf3ab,'subUnitId':_0x373e8f,'pivotTableId':_0x18f6c6,'pivotTableConfig':_0x159d5f,'collectionConfig':_0xea25c7}});}return{'redos':_0x380190,'undos':_0x4cfcdf};}return{'redos':[],'undos':[]};}}));}};Je=Kn([Gt(0x0,v[_0x498bf1(0x38a)](V[_0x498bf1(0x344)])),Gt(0x1,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x48c)]))],Je);var Hn=Object[_0x498bf1(0x2b5)],zn=(_0x72a0b9,_0x12392d,_0x52dab2,_0x2a2e14)=>{const _0xddf6c8=_0x498bf1;for(var _0x5e9fa0=_0x2a2e14>0x1?void 0x0:_0x2a2e14?Hn(_0x12392d,_0x52dab2):_0x12392d,_0x4d928d=_0x72a0b9[_0xddf6c8(0x492)]-0x1,_0x3ddaad;_0x4d928d>=0x0;_0x4d928d--)(_0x3ddaad=_0x72a0b9[_0x4d928d])&&(_0x5e9fa0=_0x3ddaad(_0x5e9fa0)||_0x5e9fa0);return _0x5e9fa0;},we=(_0x5987c7,_0x4cfc4a)=>(_0x36d63c,_0x34b6c2)=>_0x4cfc4a(_0x36d63c,_0x34b6c2,_0x5987c7);let qe=class extends v[_0x498bf1(0x26e)]{constructor(_0x12aff2,_0xa5c989,_0x478e13,_0x6cb586,_0x5c5a37,_0x5a9757){const _0x5576f6=_0x498bf1;super(),this['_commandService']=_0x12aff2,this[_0x5576f6(0x42f)]=_0xa5c989,this[_0x5576f6(0x37a)]=_0x478e13,this[_0x5576f6(0x3f1)]=_0x6cb586,this[_0x5576f6(0x48e)]=_0x5c5a37,this['_activeDirtyManagerService']=_0x5a9757,this['_initDataSendListener'](),this[_0x5576f6(0x496)]();}['_initDataSendListener'](){const _0x209c99=_0x498bf1;this[_0x209c99(0x22a)](this[_0x209c99(0x3f9)][_0x209c99(0x3ac)](_0x274d67=>{const _0x2d272f=_0x209c99;if(_0x274d67['id']!==wt['id'])return;const _0x3b247b=_0x274d67[_0x2d272f(0x483)];this[_0x2d272f(0x42f)][_0x2d272f(0x3f5)](_0x3b247b);})),this[_0x209c99(0x22a)](this[_0x209c99(0x3f9)][_0x209c99(0x3ac)](_0x13891d=>{const _0x153468=_0x209c99;if(_0x13891d['id']===_t['id']){const _0x29f793=_0x13891d[_0x153468(0x483)];if(_0x29f793){const {unitId:_0x1795ec,subUnitId:_0x2e6f48,oldSubUnitId:_0x1e6182,pivotTableId:_0x3af3de,pivotTableConfig:_0x432bc7,collectionConfig:_0x45d783}=_0x29f793;this['_sheetsPivotTableConfigModel'][_0x153468(0x284)](_0x1795ec,_0x1e6182,_0x29f793[_0x153468(0x43e)],null),this[_0x153468(0x3f1)]['updateConfigCache'](_0x1795ec,_0x2e6f48,_0x3af3de,_0x432bc7),this[_0x153468(0x3f1)][_0x153468(0x380)](_0x1795ec,_0x45d783);}}})),this[_0x209c99(0x22a)](this[_0x209c99(0x3f9)][_0x209c99(0x3ac)](_0x415066=>{const _0x5a5b11=_0x209c99;if(_0x415066['id']!==ot['id'])return;const _0x466876=V[_0x5a5b11(0x423)](this[_0x5a5b11(0x48e)]);if(!_0x466876)return;const {unitId:_0x55fb42,subUnitId:_0x22b4fb}=_0x466876,_0x32c920=_0x415066['params'];if(_0x32c920[_0x5a5b11(0x2b1)]&&Object['keys'](_0x32c920[_0x5a5b11(0x2b1)])['forEach'](_0x3e0565=>{const _0x270b52=_0x5a5b11;var _0x53e415;(_0x53e415=_0x32c920[_0x270b52(0x2b1)])!=null&&_0x53e415[_0x3e0565]&&this[_0x270b52(0x3f1)][_0x270b52(0x380)](_0x3e0565,_0x32c920[_0x270b52(0x2b1)][_0x3e0565]);}),_0x32c920['single']){const _0xb2bd5e=_0x32c920[_0x5a5b11(0x207)],{unitId:_0x4777b4,subUnitId:_0x2bae4b,view:_0x1d170f,pivotTableId:_0x3d227d,type:_0x8797a4,pivotConfig:_0x4fac0e}=_0xb2bd5e;if(_0x8797a4===j[_0x5a5b11(0x2f1)])this[_0x5a5b11(0x37a)]['clearRenderCache']({'unitId':_0x4777b4,'subUnitId':_0x2bae4b,'pivotTableId':_0x3d227d,'type':_0x8797a4}),this['_sheetsPivotTableConfigModel'][_0x5a5b11(0x284)](_0x4777b4,_0x2bae4b,_0x3d227d,null);else{const _0x890baf=new p[(_0x5a5b11(0x1fc))]();_0x890baf[_0x5a5b11(0x28f)](_0x1d170f),this[_0x5a5b11(0x3f1)][_0x5a5b11(0x284)](_0x4777b4,_0x2bae4b,_0x3d227d,_0x4fac0e),this[_0x5a5b11(0x37a)]['clearRenderCache']({'unitId':_0x4777b4,'subUnitId':_0x2bae4b,'pivotTableId':_0x3d227d,'type':_0x8797a4,'view':_0x890baf}),this[_0x5a5b11(0x37a)]['updateRenderCache']({'unitId':_0x4777b4,'subUnitId':_0x2bae4b,'view':_0x890baf,'pivotTableId':_0x3d227d,'type':_0x8797a4});}}else _0x32c920[_0x5a5b11(0x356)]&&(_0x32c920[_0x5a5b11(0x356)][_0x5a5b11(0x421)](_0x1c8857=>{const _0x6daf55=_0x5a5b11,{unitId:_0x34a7cc,subUnitId:_0x3590b9,view:_0x1705dd,pivotTableId:_0x39a3b2,type:_0x8b38a7,pivotConfig:_0x5e1bfb}=_0x1c8857,_0x23bb82=new p['PivotView']();_0x23bb82[_0x6daf55(0x28f)](_0x1705dd),this[_0x6daf55(0x3f1)][_0x6daf55(0x284)](_0x34a7cc,_0x3590b9,_0x39a3b2,_0x5e1bfb),this['_sheetsPivotTableAdaptorModel'][_0x6daf55(0x384)]({'unitId':_0x34a7cc,'subUnitId':_0x3590b9,'view':_0x23bb82,'pivotTableId':_0x39a3b2,'type':_0x8b38a7});}),this[_0x5a5b11(0x3f1)][_0x5a5b11(0x2ed)]());this[_0x5a5b11(0x37a)][_0x5a5b11(0x23c)](_0x55fb42,_0x22b4fb);}));}[_0x498bf1(0x496)](){const _0x581742=_0x498bf1;this['_activeDirtyManagerService'][_0x581742(0x3ef)](He['id'],{'commandId':He['id'],'getDirtyData'(_0x2e7c78){return{'dirtyUnitFeatureMap':_0x2e7c78['params']};}});}};qe=zn([we(0x0,v[_0x498bf1(0x38a)](v[_0x498bf1(0x2e1)])),we(0x1,v['Inject'](exports[_0x498bf1(0x271)])),we(0x2,v[_0x498bf1(0x38a)](exports[_0x498bf1(0x1c7)])),we(0x3,v[_0x498bf1(0x38a)](exports['SheetsPivotTableConfigModel'])),we(0x4,v[_0x498bf1(0x38a)](v[_0x498bf1(0x2a7)])),we(0x5,ve[_0x498bf1(0x371)])],qe);var Yn=Object['defineProperty'],Qn=Object[_0x498bf1(0x2b5)],Xn=(_0x155799,_0x4ad825,_0x56cb7e)=>_0x4ad825 in _0x155799?Yn(_0x155799,_0x4ad825,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56cb7e}):_0x155799[_0x4ad825]=_0x56cb7e,Zn=(_0x31f612,_0x4fcdd9,_0x3b694c,_0x4c681f)=>{const _0x4e6962=_0x498bf1;for(var _0x9b887f=_0x4c681f>0x1?void 0x0:_0x4c681f?Qn(_0x4fcdd9,_0x3b694c):_0x4fcdd9,_0xc9ce54=_0x31f612[_0x4e6962(0x492)]-0x1,_0x2d3f73;_0xc9ce54>=0x0;_0xc9ce54--)(_0x2d3f73=_0x31f612[_0xc9ce54])&&(_0x9b887f=_0x2d3f73(_0x9b887f)||_0x9b887f);return _0x9b887f;},tt=(_0x149122,_0x1db862)=>(_0x515ed4,_0x3da796)=>_0x1db862(_0x515ed4,_0x3da796,_0x149122),bo=(_0x1e9fae,_0x5bc604,_0x135e84)=>Xn(_0x1e9fae,typeof _0x5bc604!=_0x498bf1(0x331)?_0x5bc604+'':_0x5bc604,_0x135e84);exports[_0x498bf1(0x34c)]=class extends v[_0x498bf1(0x1ba)]{constructor(_0x16385b=Lt,_0x576c7d,_0x57c7c1,_0x384023,_0x44e37f){const _0x321b70=_0x498bf1;super(),this[_0x321b70(0x294)]=_0x16385b,this[_0x321b70(0x1bc)]=_0x576c7d,this[_0x321b70(0x3f9)]=_0x57c7c1,this['_configService']=_0x384023,this[_0x321b70(0x24b)]=_0x44e37f;const {..._0x4059ee}=v[_0x321b70(0x33d)]({},Lt,this[_0x321b70(0x294)]);this['_configService'][_0x321b70(0x378)](Nt,_0x4059ee),this[_0x321b70(0x34f)](),this['_initConfig']();}[_0x498bf1(0x409)](){const _0x44bd3e=_0x498bf1;var _0x59c103;const _0x4a2134=(_0x59c103=this[_0x44bd3e(0x294)])==null?void 0x0:_0x59c103['notExecuteFormula'];this[_0x44bd3e(0x1af)][_0x44bd3e(0x378)](J,_0x4a2134===!0x0);}[_0x498bf1(0x238)](){const _0x505959=_0x498bf1;var _0x290b00;let _0x453e9b=[];const _0x1bc2f5=(_0x290b00=this['_config'])==null?void 0x0:_0x290b00['notExecuteFormula'];_0x1bc2f5===!0x0?_0x453e9b=[[exports[_0x505959(0x253)]],[exports[_0x505959(0x271)]],[qe],[exports[_0x505959(0x1c7)]],[exports[_0x505959(0x48c)]],[Je],[Ge],[We],[$e]]:_0x1bc2f5===!0x1?_0x453e9b=[[exports[_0x505959(0x2b0)]],[Be]]:_0x1bc2f5===void 0x0&&(_0x453e9b=[[exports['SheetsPivotDataSourceModel']],[Be],[exports[_0x505959(0x253)]],[exports[_0x505959(0x271)]],[qe],[exports[_0x505959(0x1c7)]],[exports[_0x505959(0x48c)]],[Je],[Ge],[We],[$e]]),_0x453e9b[_0x505959(0x421)](_0x31065e=>this[_0x505959(0x1bc)][_0x505959(0x40d)](_0x31065e)),[Be,qe,exports[_0x505959(0x253)],Ge,Je,We,$e][_0x505959(0x421)](_0x252650=>{const _0x1dbf84=_0x505959;this[_0x1dbf84(0x1bc)][_0x1dbf84(0x1cc)](_0x252650)&&this[_0x1dbf84(0x1bc)][_0x1dbf84(0x3b4)](_0x252650);});}[_0x498bf1(0x34f)](){const _0xbf9497=_0x498bf1;[no,io,oo,ao,ro,go,Co,lo,uo,co,fo,vo,ho,so,Ue,yt,ze,it,eo,to,dt,at,st,rt,ut,ct,Re,Ft,wt,ot,gt,pt,ft,lt,Rt,mt,ht,He,_t,po,vt,mo,Io][_0xbf9497(0x421)](_0x17fc4c=>{const _0x35be2a=_0xbf9497;var _0x4a56c4;(_0x4a56c4=this[_0x35be2a(0x24b)])==null||_0x4a56c4['registerSyncingMutations'](_0x17fc4c),this['_commandService'][_0x35be2a(0x4ac)](_0x17fc4c);});}},bo(exports['UniverSheetsPivotTablePlugin'],'pluginName',Ct),bo(exports[_0x498bf1(0x34c)],_0x498bf1(0x363),v['UniverInstanceType'][_0x498bf1(0x3b3)]),exports['UniverSheetsPivotTablePlugin']=Zn([v[_0x498bf1(0x41f)](ue[_0x498bf1(0x387)]),tt(0x1,v[_0x498bf1(0x38a)](v[_0x498bf1(0x43a)])),tt(0x2,v[_0x498bf1(0x38a)](v[_0x498bf1(0x2e1)])),tt(0x3,v[_0x498bf1(0x22e)]),tt(0x4,v[_0x498bf1(0x419)](Ro[_0x498bf1(0x25a)]))],exports[_0x498bf1(0x34c)]),exports[_0x498bf1(0x454)]=oo,exports[_0x498bf1(0x307)]=it,exports[_0x498bf1(0x49e)]=io,exports[_0x498bf1(0x3de)]=Ue,exports[_0x498bf1(0x47d)]=no,exports[_0x498bf1(0x3db)]=De,exports[_0x498bf1(0x4aa)]=It,exports[_0x498bf1(0x2fc)]=ao,exports[_0x498bf1(0x24f)]=ho,exports[_0x498bf1(0x478)]=k,exports[_0x498bf1(0x3d6)]=so,exports['PivotTableOperationEnum']=j,exports[_0x498bf1(0x218)]=He,exports[_0x498bf1(0x2a4)]=Mt,exports[_0x498bf1(0x335)]=ro,exports[_0x498bf1(0x367)]=at,exports[_0x498bf1(0x28c)]=ze,exports[_0x498bf1(0x2d3)]=st,exports['ResetPivotFieldsConfigCommand']=Io,exports['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=Nt,exports['SHEET_PIVOT_TABLE_PLUGIN']=Ct,exports[_0x498bf1(0x394)]=lo,exports[_0x498bf1(0x217)]=rt,exports[_0x498bf1(0x3d0)]=lt,exports[_0x498bf1(0x470)]=mo,exports['SetPivotFilterCommand']=co,exports[_0x498bf1(0x473)]=dt,exports[_0x498bf1(0x303)]=ct,exports[_0x498bf1(0x45c)]=Re,exports[_0x498bf1(0x1cb)]=uo,exports[_0x498bf1(0x3d5)]=ut,exports[_0x498bf1(0x274)]=ft,exports[_0x498bf1(0x2ca)]=po,exports['SetPivotValueFilterMutation']=vt,exports[_0x498bf1(0x447)]=Co,exports[_0x498bf1(0x3bd)]=gt,exports[_0x498bf1(0x45e)]=fo,exports[_0x498bf1(0x401)]=ht,exports['UpdatePivotTableSourceRangeCommand']=vo,exports['UpdatePivotTableSourceRangeMutation']=mt,exports[_0x498bf1(0x351)]=go,exports['UpdateValuePositionMutation']=pt,exports['applyChangeSet']=ae,exports['canUsePivot']=Ut,exports[_0x498bf1(0x324)]=te,exports['generateSetRangeValueMutations']=Et,exports['getAdjustRangesPosition']=oe,exports[_0x498bf1(0x39b)]=Xt,exports[_0x498bf1(0x3ae)]=Ke,exports[_0x498bf1(0x27f)]=le,exports[_0x498bf1(0x3e1)]=Yt,exports[_0x498bf1(0x313)]=bt,exports[_0x498bf1(0x266)]=Qt,exports[_0x498bf1(0x3cf)]=_e,exports[_0x498bf1(0x388)]=nt;
1
+ 'use strict';const _0xdefc56=_0x2caf;(function(_0x4626d0,_0x3d6069){const _0x4c22f1=_0x2caf,_0x29f9fe=_0x4626d0();while(!![]){try{const _0xfedd46=parseInt(_0x4c22f1(0x327))/0x1*(parseInt(_0x4c22f1(0x2cd))/0x2)+parseInt(_0x4c22f1(0x219))/0x3+parseInt(_0x4c22f1(0x2f1))/0x4*(parseInt(_0x4c22f1(0x33f))/0x5)+-parseInt(_0x4c22f1(0xc8))/0x6*(parseInt(_0x4c22f1(0xb3))/0x7)+parseInt(_0x4c22f1(0xe5))/0x8*(parseInt(_0x4c22f1(0x216))/0x9)+parseInt(_0x4c22f1(0x3cb))/0xa*(parseInt(_0x4c22f1(0x1a4))/0xb)+-parseInt(_0x4c22f1(0x335))/0xc;if(_0xfedd46===_0x3d6069)break;else _0x29f9fe['push'](_0x29f9fe['shift']());}catch(_0x5dd4a0){_0x29f9fe['push'](_0x29f9fe['shift']());}}}(_0x1b57,0x65d7c));var Fo=Object[_0xdefc56(0x176)],Do=(_0x26b618,_0x4a4b7e,_0x4a5600)=>_0x4a4b7e in _0x26b618?Fo(_0x26b618,_0x4a4b7e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a5600}):_0x26b618[_0x4a4b7e]=_0x4a5600,x=(_0x5468ae,_0x159647,_0x7d56b)=>Do(_0x5468ae,typeof _0x159647!=_0xdefc56(0x249)?_0x159647+'':_0x159647,_0x7d56b);Object['defineProperty'](exports,Symbol[_0xdefc56(0x3b8)],{'value':'Module'});const p=require(_0xdefc56(0x2ed)),v=require(_0xdefc56(0x235)),ve=require(_0xdefc56(0x385)),V=require(_0xdefc56(0x13b)),ge=require(_0xdefc56(0x394)),ue=require(_0xdefc56(0x314)),Ot=require('@univerjs/sheets-filter'),_o=require('@univerjs/rpc'),Oe=require('@univerjs/engine-render'),Gt=Number[_0xdefc56(0x152)](0x683dcdb3),Ro=0x10,It=0x1,Ct='SHEET_PIVOT_TABLE_PLUGIN',Re=0x1,Eo=_0xdefc56(0x33d),Uo=_0xdefc56(0x10b),Ze=_0xdefc56(0x368),No=_0xdefc56(0x1d5),Vo=_0xdefc56(0x1d5),xo=_0xdefc56(0x156),Oo=_0xdefc56(0xda),Ao=_0xdefc56(0x2e8),Bo=_0xdefc56(0x2b2),Wo=_0xdefc56(0xda),ko=_0xdefc56(0x2e8),Lo='#e6ebfb',jo=0xe,Go=0x6;var Mt=(_0xa22a9=>(_0xa22a9[_0xdefc56(0xc9)]='existing',_0xa22a9[_0xdefc56(0x2c8)]=_0xdefc56(0xd2),_0xa22a9))(Mt||{});const $t={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},$o=0x1e,Te={'b':{'s':0x1,'cl':{'rgb':Ze}},'l':{'s':0x1,'cl':{'rgb':Ze}},'r':{'s':0x1,'cl':{'rgb':Ze}},'t':{'s':0x1,'cl':{'rgb':Ze}}},X={'bg':{'rgb':Eo},'ht':0x2,'vt':0x2,'tb':0x1},_={'bg':{'rgb':Uo},'ht':0x2,'vt':0x2,'tb':0x1},te={'rowStyle':{'bg':{'rgb':Lo},'bd':Te,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':Wo},'bd':null,'cl':{'rgb':ko},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Te,'bg':{'rgb':Bo},'vt':0x2},'cornerStyle':{'bd':Te,'bg':{'rgb':xo},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Te,'bg':{'rgb':No},'vt':0x2},'leafStyle':{'bd':Te,'bg':{'rgb':Vo},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':Oo},'cl':{'rgb':Ao},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Te,'vt':0x2}};function zo(_0x2e97ce,_0x536a5b,_0x3f356b){const _0x76ab2d=_0xdefc56,_0x1f2861=_0x2e97ce[_0x76ab2d(0x2ba)](v['LocaleService']),_0x3c14ca=_0x3f356b[_0x76ab2d(0x380)]('_');switch(_0x536a5b){case p[_0x76ab2d(0x183)][_0x76ab2d(0x1ee)]:return _0x1f2861['t'](_0x76ab2d(0xce),..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0xc6)]:return _0x1f2861['t'](_0x76ab2d(0x3ba),..._0x3c14ca);case p['PivotDateGroupFieldDateTypeEnum']['Hour']:return _0x1f2861['t'](_0x76ab2d(0x1c2),..._0x3c14ca);case p['PivotDateGroupFieldDateTypeEnum'][_0x76ab2d(0x207)]:return _0x1f2861['t'](_0x76ab2d(0x18f),..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0x2a5)]:return _0x1f2861['t'](_0x76ab2d(0x29b),..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0x3bf)]:return _0x1f2861['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0x129)]:return _0x1f2861['t'](_0x76ab2d(0x26a),..._0x3c14ca);case p['PivotDateGroupFieldDateTypeEnum'][_0x76ab2d(0x242)]:return _0x1f2861['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0x224)]:return _0x1f2861['t'](_0x76ab2d(0x3cd),..._0x3c14ca);case p[_0x76ab2d(0x183)][_0x76ab2d(0x38e)]:return _0x1f2861['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x3c14ca);}return'';}const Ae=(_0x289f42,_0x4b41e5,_0x7c5a8f,_0x38ac6c)=>{const _0x2559a6=_0xdefc56;let _0x5b7ea5;const _0x1950fa=_0x289f42['get'](v[_0x2559a6(0x20e)])['getCurrentUnitForType'](v[_0x2559a6(0x22e)]['UNIVER_SHEET']);if(!_0x1950fa)return null;const _0x24bf48=_0x1950fa[_0x2559a6(0x383)]();let _0x2ac564;if(_0x7c5a8f&&(_0x2ac564=_0x24bf48[_0x2559a6(0x1d2)](_0x7c5a8f)),_0x4b41e5!=null&&_0x4b41e5['v']||(_0x4b41e5==null?void 0x0:_0x4b41e5['v'])===0x0){_0x5b7ea5||(_0x5b7ea5={});const _0x2b9b9b=zt(_0x4b41e5['v']);typeof _0x2b9b9b=='number'?_0x5b7ea5['t']=v[_0x2559a6(0x358)][_0x2559a6(0x315)]:typeof _0x2b9b9b==_0x2559a6(0x1ab)&&(_0x5b7ea5['t']=v[_0x2559a6(0x358)][_0x2559a6(0x310)]),_0x5b7ea5['v']=_0x2b9b9b;}if((_0x4b41e5!=null&&_0x4b41e5['i']||(_0x4b41e5==null?void 0x0:_0x4b41e5['i'])===0x0)&&(_0x5b7ea5||(_0x5b7ea5={}),_0x5b7ea5['fi']=_0x4b41e5['i']),_0x4b41e5!=null&&_0x4b41e5['s']&&(_0x5b7ea5||(_0x5b7ea5={}),_0x5b7ea5[_0x2559a6(0x227)]=_0x4b41e5['s']),_0x7c5a8f&&(_0x5b7ea5||(_0x5b7ea5={}),_0x5b7ea5['s']=_0x2ac564),_0x38ac6c&&_0x5b7ea5!=null&&_0x5b7ea5['v']&&_0x5b7ea5[_0x2559a6(0x227)]!==p['PivotCellStyleTypeEnum']['GrandTotal']&&_0x5b7ea5[_0x2559a6(0x227)]!==p[_0x2559a6(0xef)][_0x2559a6(0x298)]){const _0x4d2bcd=String(_0x5b7ea5['v']),{dateType:_0x418bc1}=_0x38ac6c;_0x5b7ea5['v']=zo(_0x289f42,_0x418bc1,_0x4d2bcd),_0x5b7ea5['t']=v[_0x2559a6(0x358)][_0x2559a6(0x310)];}return _0x5b7ea5;},Jo=(_0x17e2a2,_0x27b654,_0xb0eef1,_0x58d2b2)=>{const _0x154a75=_0xdefc56;var _0x4958ab,_0x518aff,_0x3e00ff,_0x5920d8,_0x1ce55d,_0x51a2fe,_0x560870,_0x4b4bc7,_0x33e007,_0x3e590e,_0x5a1284,_0x5ef6af,_0x29b869,_0x3a7552;const _0x546e88=_0xb0eef1[_0x154a75(0x29c)],{cornerView:_0x1227ab,rowView:_0x2d37ec,colView:_0x4581e8,dataView:_0x16b228,pageView:_0x50c1c6,formatMap:_0x517769,groupInfo:_0x8dfa13}=_0x27b654,{row:_0x418a6e,col:_0x4483d0}=_0x546e88,_0x26ed28=new v[(_0x154a75(0x19d))](),_0x2033a9={},_0x328ef0={},_0x10ec0a={},_0x4942a1={},_0x149a1a={};let _0x4fe729=_0x418a6e,_0xe588d1=_0x4483d0;Object['keys'](_0x50c1c6[_0x154a75(0x138)])['forEach'](_0x702a82=>{const _0x338923=_0x154a75;Object[_0x338923(0x2e2)](_0x50c1c6[_0x338923(0x138)][Number(_0x702a82)])[_0x338923(0x187)](_0x1192cc=>{const _0x4cbbd5=_0x338923,_0xd45f7e={..._0x50c1c6[_0x4cbbd5(0x138)][Number(_0x702a82)][Number(_0x1192cc)]};_0x26ed28['setValue'](Number(_0x702a82)+_0x4fe729,Number(_0x1192cc)+_0xe588d1,Ae(_0x17e2a2,_0xd45f7e,te[_0x4cbbd5(0x202)]));});});const _0x257f86=Object[_0x154a75(0x2e2)](_0x50c1c6[_0x154a75(0x138)])[_0x154a75(0xd0)];_0x4fe729+=_0x257f86+(_0x257f86?Re:0x0);const _0x747ee7=_0x1227ab['getRowCount'](),_0xa41fd3=_0x1227ab['getColCount']();for(let _0x21d074=0x0;_0x21d074<_0x747ee7;_0x21d074++)for(let _0x11fabe=0x0;_0x11fabe<_0xa41fd3;_0x11fabe++){const _0xd96dd3={...(_0x518aff=(_0x4958ab=_0x1227ab[_0x154a75(0x138)])==null?void 0x0:_0x4958ab[_0x21d074])==null?void 0x0:_0x518aff[_0x11fabe]};_0xd96dd3&&((_0x3e00ff=_0x2d37ec['headerMap'][_0x11fabe])!=null&&_0x3e00ff[_0x154a75(0x17b)])&&_0x11fabe===_0xa41fd3-0x1&&_0x21d074===_0x747ee7-0x1&&(_0xd96dd3['v']=''+_0x58d2b2[_0x154a75(0x31b)]),_0x26ed28[_0x154a75(0x1d2)](_0x21d074+_0x4fe729,_0x11fabe+_0xe588d1,Ae(_0x17e2a2,_0xd96dd3,te[_0x154a75(0xdf)]));}for(let _0x4a890e=0x0;_0x4a890e<_0x1227ab[_0x154a75(0x120)][_0x154a75(0xd0)];_0x4a890e++)_0x1227ab['info'][_0x4a890e]&&(_0x10ec0a[''+(_0x4a890e+_0xe588d1)]=_0x1227ab['info'][_0x4a890e]);_0xe588d1+=_0xa41fd3;const _0x18d037=_0x4581e8[_0x154a75(0x39e)],_0x5d19e5=_0x4581e8[_0x154a75(0x100)]()>=0x0?_0x4581e8['getLastRow']()+0x1:0x0,_0x5c27ca=_0x4581e8[_0x154a75(0x110)]()>=0x0?_0x4581e8[_0x154a75(0x110)]()+0x1:0x0;for(let _0x16c47f=0x0;_0x16c47f<_0x5c27ca;_0x16c47f++){for(let _0x2710a0=0x0;_0x2710a0<_0x5d19e5;_0x2710a0++){const _0x37dc48={...(_0x1ce55d=(_0x5920d8=_0x4581e8['data'])==null?void 0x0:_0x5920d8[_0x2710a0])==null?void 0x0:_0x1ce55d[_0x16c47f]},_0xefbf49=(_0x51a2fe=_0x18d037[_0x2710a0])==null?void 0x0:_0x51a2fe[_0x154a75(0xcb)],_0x2d6aad=_0x517769[_0xefbf49],_0x1922d1=_0x8dfa13[_0xefbf49];_0x37dc48&&(_0x37dc48['v']=De(_0x37dc48,_0x2710a0===0x0&&((_0x560870=_0x4581e8[_0x154a75(0x30d)](_0x16c47f+0x1))==null?void 0x0:_0x560870['isValue']),_0x2d6aad,_0x58d2b2));let _0x323d02;_0x2d6aad?_0x323d02={...te['colStyle'],'n':{'pattern':_0x2d6aad}}:_0x323d02={...te[_0x154a75(0x35c)]},_0x26ed28['setValue'](_0x2710a0+_0x4fe729,_0x16c47f+_0xe588d1,Ae(_0x17e2a2,_0x37dc48,_0x323d02,_0x1922d1));}_0x4581e8[_0x154a75(0x120)][_0x16c47f]&&(_0x328ef0[''+(_0x16c47f+_0xe588d1)]=_0x4581e8[_0x154a75(0x120)][_0x16c47f]),_0x4581e8[_0x154a75(0x39e)][_0x16c47f+0x1]&&(_0x149a1a[''+(_0x16c47f+_0x4fe729+0x1)]=_0x4581e8['headerMap'][_0x16c47f+0x1]);}_0x4fe729+=_0x747ee7;const _0x591571=_0x2d37ec[_0x154a75(0x39e)],_0x2fa274=_0x2d37ec[_0x154a75(0x100)]()>=0x0?_0x2d37ec[_0x154a75(0x100)]()+0x1:0x0,_0x3277ca=_0x2d37ec[_0x154a75(0x110)]()>=0x0?_0x2d37ec[_0x154a75(0x110)]()+0x1:0x0;for(let _0x1f9936=0x0;_0x1f9936<_0x2fa274;_0x1f9936++){for(let _0x2b3f4f=0x0;_0x2b3f4f<_0x3277ca;_0x2b3f4f++){const _0x22bc95={...(_0x33e007=(_0x4b4bc7=_0x2d37ec[_0x154a75(0x138)])==null?void 0x0:_0x4b4bc7[_0x1f9936])==null?void 0x0:_0x33e007[_0x2b3f4f]},_0x48c184=(_0x3e590e=_0x591571[_0x2b3f4f])==null?void 0x0:_0x3e590e[_0x154a75(0xcb)],_0x458221=_0x517769[_0x48c184],_0x59e0c2=_0x8dfa13[_0x48c184];_0x22bc95&&(_0x22bc95['v']=De(_0x22bc95,!0x1,_0x458221,_0x58d2b2));let _0x4239cd;_0x2d37ec[_0x154a75(0x120)][_0x1f9936][_0x154a75(0x186)]===_0x2d37ec[_0x154a75(0x1b0)]()?_0x4239cd=te[_0x154a75(0x347)]:_0x2d37ec[_0x154a75(0x120)][_0x1f9936][_0x154a75(0x2d5)]?_0x4239cd=_0x2d37ec['info'][_0x1f9936]['level']===0x0?te[_0x154a75(0x339)]:te['subTotalStyle']:_0x4239cd=te[_0x154a75(0x258)],_0x458221&&(_0x4239cd={..._0x4239cd,'n':{'pattern':_0x458221}}),_0x26ed28[_0x154a75(0x1d2)](_0x1f9936+_0x4fe729,_0x2b3f4f+_0x4483d0,Ae(_0x17e2a2,_0x22bc95,_0x4239cd,_0x59e0c2));}_0x2d37ec[_0x154a75(0x120)][_0x1f9936]&&(_0x2033a9[''+(_0x1f9936+_0x4fe729)]=_0x2d37ec[_0x154a75(0x120)][_0x1f9936]),_0x2d37ec[_0x154a75(0x39e)][_0x1f9936]&&(_0x4942a1[''+(_0x1f9936+_0x4483d0)]=_0x2d37ec[_0x154a75(0x39e)][_0x1f9936]);}const _0x21b660=_0x16b228[_0x154a75(0x1dd)](),_0x4462ce=_0x16b228['getColCount']();for(let _0x277ace=0x0;_0x277ace<_0x21b660;_0x277ace++)for(let _0x5a6b71=0x0;_0x5a6b71<_0x4462ce;_0x5a6b71++){const _0xa62614={...(_0x5ef6af=(_0x5a1284=_0x16b228[_0x154a75(0x138)])==null?void 0x0:_0x5a1284[_0x277ace])==null?void 0x0:_0x5ef6af[_0x5a6b71]};let _0xdfa2c5;_0x2d37ec[_0x154a75(0x120)][_0x277ace][_0x154a75(0x2d5)]?_0xdfa2c5=_0x2d37ec['info'][_0x277ace][_0x154a75(0x186)]===0x0?te[_0x154a75(0x339)]:te[_0x154a75(0x313)]:_0xdfa2c5=te[_0x154a75(0x3b3)];const _0x22cd17=_0x2d37ec[_0x154a75(0x120)][_0x277ace][_0x154a75(0x2b8)],_0x289d40=_0x4581e8[_0x154a75(0x120)][_0x5a6b71][_0x154a75(0x2b8)],_0x4aba7e=Math['max'](_0x22cd17,_0x289d40),_0x1ccfc0=_0xb0eef1[_0x154a75(0x1ce)]['valueFields'][_0x154a75(0x19f)]();let _0xef50f3='';_0x4aba7e<0x0?_0xef50f3=(_0x29b869=_0x1ccfc0[0x0])!=null?_0x29b869:'':_0xef50f3=(_0x3a7552=_0x1ccfc0[_0x4aba7e])!=null?_0x3a7552:'';const _0x77a318=_0x517769[_0xef50f3];_0x77a318&&(_0xdfa2c5={..._0xdfa2c5,'n':{'pattern':_0x77a318}}),_0x26ed28[_0x154a75(0x1d2)](_0x277ace+_0x4fe729,_0x5a6b71+_0xe588d1,Ae(_0x17e2a2,_0xa62614,_0xdfa2c5));}return{'valueMatrix':_0x26ed28,'rowInfo':_0x2033a9,'colInfo':_0x328ef0,'cornerInfo':_0x10ec0a,'rowHeaderMap':_0x4942a1,'colHeaderMap':_0x149a1a};};function De(_0x4c03d8,_0x4edc84,_0x2109b3,_0x707380){const _0x12ccd8=_0xdefc56;let _0xa7d679=_0x4c03d8['v'];_0x4edc84&&(_0xa7d679=''+_0x707380[_0x12ccd8(0x31b)]);const _0x18ebf3=_0x4c03d8['t']&&(_0x4c03d8['t']&p[_0x12ccd8(0x32a)][_0x12ccd8(0x3a8)])>0x0;if(_0x18ebf3&&(_0xa7d679=''+_0x707380[_0x12ccd8(0x373)]),_0x4c03d8['s']===p[_0x12ccd8(0xef)][_0x12ccd8(0x298)]){let _0x398a14=_0xa7d679,_0x6944d1='';p['isPrefixValue'](_0xa7d679)&&(_0x398a14=_0xa7d679[_0x12ccd8(0xfd)],_0x6944d1=_0xa7d679[_0x12ccd8(0x27f)]);const _0xf7b0db=_0x2109b3&&!_0x18ebf3?v[_0x12ccd8(0x35f)][_0x12ccd8(0x1af)](_0x2109b3,Number(_0x398a14)):_0x398a14;_0x6944d1?_0xa7d679=_0xf7b0db+'\x20'+_0x6944d1:_0xa7d679=_0xf7b0db+'\x20'+_0x707380[_0x12ccd8(0x228)];}else _0x4c03d8['s']===p['PivotCellStyleTypeEnum']['GrandTotal']&&(_0xa7d679=_0xa7d679+'\x20'+_0x707380[_0x12ccd8(0xb4)]);return _0xa7d679;}function zt(_0x23c1b4){const _0x206aa1=_0xdefc56;if(p[_0x206aa1(0x23a)](_0x23c1b4)){const {errorType:_0x47e2aa}=_0x23c1b4;switch(_0x47e2aa){case p['PivotErrorTypeEnum']['Div0']:return ve[_0x206aa1(0xcc)][_0x206aa1(0x179)];case p[_0x206aa1(0xbc)][_0x206aa1(0x117)]:return ve[_0x206aa1(0xcc)][_0x206aa1(0x133)];case p[_0x206aa1(0xbc)][_0x206aa1(0x256)]:return ve[_0x206aa1(0xcc)][_0x206aa1(0x2ca)];case p[_0x206aa1(0xbc)][_0x206aa1(0x166)]:return ve['ErrorType'][_0x206aa1(0x2ca)];case p['PivotErrorTypeEnum'][_0x206aa1(0x1a0)]:return ve['ErrorType'][_0x206aa1(0x125)];}}return _0x23c1b4;}function oe(_0x216ebb,_0x4c8160,_0x1705c8=!0x1,_0x4a2aaa=!0x1){const _0x1dd994=_0xdefc56,{data:_0x232190}=_0x4c8160,_0x3ba20f=_0x4c8160[_0x1dd994(0x1dd)](),_0x132036=_0x4c8160[_0x1dd994(0x1b0)]();if(_0x3ba20f<=0x0||_0x132036<=0x0)return[];const _0x171f94=_0x4c8160[_0x1dd994(0x110)](),_0x28dc37=_0x4c8160[_0x1dd994(0x100)](),_0x507cd2=_0x4a2aaa?_0x28dc37>=0x0?_0x28dc37+0x1:0x0:_0x3ba20f,_0x26fb9d=_0x4a2aaa?_0x171f94>=0x0?_0x171f94+0x1:0x0:_0x132036,{row:_0x21538c,col:_0x1770c7}=_0x216ebb,_0x3a2434=_0x21538c,_0x1a38ac=_0x1770c7;if(_0x1705c8){const _0x1de0a1=[];for(const [_0x5d5bc7,_0x55aeb3]of Object[_0x1dd994(0x114)](_0x232190))for(const [_0x1440d3,_0x2a14b0]of Object[_0x1dd994(0x114)](_0x55aeb3))_0x1de0a1[_0x1dd994(0x12c)](v[_0x1dd994(0x259)](_0x3a2434+Number(_0x5d5bc7),_0x1a38ac+Number(_0x1440d3)));return _0x1de0a1;}else{const _0x2da613=_0x4a2aaa?_0x507cd2>0x0?0x1:0x0:0x1,_0x475bf0=_0x4a2aaa?_0x26fb9d>0x0?0x1:0x0:0x1,_0x327131=_0x21538c+_0x507cd2-_0x2da613,_0x7a9181=_0x1770c7+_0x26fb9d-_0x475bf0;return[{'startRow':_0x3a2434,'startColumn':_0x1a38ac,'endRow':_0x327131,'endColumn':_0x7a9181}];}}const z=_0xdefc56(0x282),bt=_0xdefc56(0x384);var B=(_0x22ee3a=>(_0x22ee3a[_0xdefc56(0x14d)]=_0xdefc56(0x20d),_0x22ee3a[_0xdefc56(0x1e8)]=_0xdefc56(0x1cd),_0x22ee3a[_0xdefc56(0x123)]=_0xdefc56(0x113),_0x22ee3a[_0xdefc56(0x367)]='AddPivotTableWithConfig',_0x22ee3a[_0xdefc56(0x2c9)]='addPivotTable',_0x22ee3a[_0xdefc56(0x236)]=_0xdefc56(0x1de),_0x22ee3a[_0xdefc56(0x1ad)]=_0xdefc56(0x2fc),_0x22ee3a[_0xdefc56(0x200)]=_0xdefc56(0x1d1),_0x22ee3a['SetPivotFilter']='setPivotFilter',_0x22ee3a[_0xdefc56(0x160)]=_0xdefc56(0x3c2),_0x22ee3a['SetPivotSetting']='setPivotSetting',_0x22ee3a[_0xdefc56(0xe0)]='updatePivotSource',_0x22ee3a[_0xdefc56(0x32e)]=_0xdefc56(0x14f),_0x22ee3a[_0xdefc56(0x1f7)]='drillDown',_0x22ee3a[_0xdefc56(0x1a7)]=_0xdefc56(0x33c),_0x22ee3a['SetPivotTableConfig']=_0xdefc56(0x390),_0x22ee3a[_0xdefc56(0x2b0)]=_0xdefc56(0x311),_0x22ee3a))(B||{});const Ko={'sheets-pivot.blankValue':_0xdefc56(0x15f),'sheets-pivot.columnName':_0xdefc56(0x32f),'sheets-pivot.subTotalText':_0xdefc56(0xf5),'sheets-pivot.grandTotalText':_0xdefc56(0x105),'sheets-pivot.valueText':_0xdefc56(0x182),'sheets-pivot.averageName':_0xdefc56(0x2c7),'sheets-pivot.countName':_0xdefc56(0x280),'sheets-pivot.countNumsName':_0xdefc56(0x280),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0xdefc56(0x15a),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0xdefc56(0x3b0),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0xdefc56(0x22b),'sheets-pivot.varpName':_0xdefc56(0x3cc),'sheets-pivot.subTotal':_0xdefc56(0x298),'sheets-pivot.grandTotal':_0xdefc56(0x105),'sheets-pivot.value':_0xdefc56(0x27f),'sheets-pivot.blank':_0xdefc56(0x3a8),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0xdefc56(0x21f),'sheets-pivot.emptyPivot.column':_0xdefc56(0x266),'sheets-pivot.emptyPivot.values':_0xdefc56(0xf9)},At={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},re=v[_0xdefc56(0x1aa)]('pivotPerformCheck'),Jt=v[_0xdefc56(0x23b)](_0xdefc56(0x26d));var Se=(_0x57796f=>(_0x57796f[_0xdefc56(0x2b9)]=_0xdefc56(0x2b9),_0x57796f[_0xdefc56(0x170)]=_0xdefc56(0x170),_0x57796f['update']=_0xdefc56(0x243),_0x57796f))(Se||{}),k=(_0x4bb74f=>(_0x4bb74f[_0xdefc56(0x1ff)]='add',_0x4bb74f[_0xdefc56(0xf4)]=_0xdefc56(0x2e9),_0x4bb74f[_0xdefc56(0x2f7)]=_0xdefc56(0x170),_0x4bb74f))(k||{});const Kt={0x0:'B',0x1:'m',0x2:'G',0x3:'F',0x4:'1',0x5:'I',0x6:'8',0x7:'c',0x8:'Y',0x9:'i','k':'0','X':'2','S':'3','M':'4','C':'5','o':'6','T':'7','i':'9','E':'a','q':'b','G':'d','D':'e','K':'f','U':'g','v':'h','x':'j','g':'k','w':'l','p':'n','B':'o','s':'p','N':'q','z':'r','W':'s','h':'t','l':'u','R':'v','u':'w','I':'x','O':'y','a':'z','L':'A','j':'C','b':'D','y':'E','Y':'H','t':'J','f':'K','c':'L','r':'M','m':'N','e':'O','d':'P','V':'Q','F':'R','H':'S','P':'T','Z':'U','J':'V','n':'W','Q':'X','A':'Z'},qt=_0xdefc56(0x12b),wt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x348),'handler':()=>!0x0},Ft={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},ot={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x355),'handler':()=>!0x0},Dt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_t={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x2f9),'handler':()=>!0x0},qo=_0x4d491b=>{const _0xf06dce=_0xdefc56;var _0x9e6207;return((_0x9e6207=_0x4d491b[_0xf06dce(0x155)])==null?void 0x0:_0x9e6207[_0xf06dce(0x168)][_0xf06dce(0x263)](/\r\n$/,''))||'';};class Ho extends p[_0xdefc56(0x1d6)]{constructor(_0x3e20e2,_0x1b68dc){const _0x27d29c=_0xdefc56;super(),x(this,_0x27d29c(0x24e),{}),x(this,_0x27d29c(0x2b6)),x(this,'_host'),(this[_0x27d29c(0x2b6)]=_0x1b68dc,this['_host']=_0x3e20e2);}[_0xdefc56(0x2ef)](){const _0x2bc90b=_0xdefc56;for(const _0x3e434a in this[_0x2bc90b(0x234)]){const _0x2337d4=this['dataFields'][_0x3e434a],_0x54cff6=_0x2337d4[_0x2bc90b(0x251)]();this[_0x2bc90b(0x24e)][_0x54cff6]=_0x2337d4['getId']();}}[_0xdefc56(0x29a)](){const _0x4055c0=_0xdefc56,_0x1c900c=this[_0x4055c0(0x11f)];return on['bind'](_0x1c900c);}['deleteDataField'](_0x516b38){const _0x1e6628=_0xdefc56,_0x2a25dc=this[_0x1e6628(0x234)][_0x516b38][_0x1e6628(0x2c0)];delete this['dataFields'][_0x516b38],delete this[_0x1e6628(0x24e)][_0x2a25dc];}[_0xdefc56(0x275)](_0x497187){const _0x4285d2=_0xdefc56;this[_0x4285d2(0x234)][_0x497187[_0x4285d2(0x36b)]()]=_0x497187;}[_0xdefc56(0x128)](_0x5df91b){const _0x5e1acc=_0xdefc56;var _0x1319f9,_0x620e76;const _0x139e0d=this[_0x5e1acc(0x11f)][_0x5e1acc(0x276)](_0x5df91b);if(_0x139e0d){const {unitId:_0x2f1553,subUnitId:_0x49c860}=_0x139e0d,_0x662f0f=(_0x1319f9=this[_0x5e1acc(0x11f)][_0x5e1acc(0x31d)](_0x2f1553,_0x49c860,_0x5df91b))==null?void 0x0:_0x1319f9['sourceRangeInfo'];this[_0x5e1acc(0x11f)][_0x5e1acc(0x2a4)]({'token':_0x5df91b,'type':Se[_0x5e1acc(0x170)],'dataRangeInfo':_0x662f0f});}(_0x620e76=this['getCollection'](_0x5df91b))==null||_0x620e76[_0x5e1acc(0x2e1)](),delete this[_0x5e1acc(0x104)][_0x5df91b];}[_0xdefc56(0x251)](_0x2fe8f5,_0x330d51){const _0x18f22a=_0xdefc56,{sheetName:_0x32f093,unitId:_0x4c7337,range:_0x58378d}=_0x2fe8f5,{startRow:_0x31c10c,endRow:_0x76443c}=_0x58378d;return ve[_0x18f22a(0x10d)](_0x4c7337,_0x32f093,{'startRow':_0x31c10c,'endRow':_0x76443c,'startColumn':_0x330d51,'endColumn':_0x330d51});}['getDataFieldByRangeKey'](_0x571e8a){const _0x18dee5=_0xdefc56;return this[_0x18dee5(0x234)][this[_0x18dee5(0x24e)][_0x571e8a]];}[_0xdefc56(0x13e)](_0x5a76a3,_0x1c4d52){const _0x1ae5ba=_0xdefc56;this[_0x1ae5ba(0x24e)][_0x5a76a3]=_0x1c4d52;}[_0xdefc56(0x2b5)](_0x2cbe7f,_0x1d1f16){const _0x2aa12a=_0xdefc56;this[_0x2aa12a(0x24e)][_0x1d1f16]=this[_0x2aa12a(0x24e)][_0x2cbe7f],delete this[_0x2aa12a(0x24e)][_0x2cbe7f];}[_0xdefc56(0x21c)](_0x439feb,_0x51c8be,_0x18b08d,_0x58e20f){const _0x550157=_0xdefc56,_0x40ace2=new p[(_0x550157(0xde))](this);_0x40ace2['fromJSON'](_0x51c8be);const _0x45fa80=[];let _0x7d33a9=0x0;for(const _0x57e7c4 of _0x40ace2[_0x550157(0xbd)]){const _0x3bcb89=this[_0x550157(0x251)](_0x18b08d,_0x7d33a9),_0x5d27f4=this[_0x550157(0x234)][_0x57e7c4];_0x5d27f4&&(_0x5d27f4[_0x550157(0x2c0)]=_0x3bcb89,this[_0x550157(0x13e)](_0x3bcb89,_0x57e7c4),_0x45fa80[_0x550157(0x12c)]({'index':_0x7d33a9,'dataField':_0x5d27f4})),_0x7d33a9++;}return this[_0x550157(0x32c)](_0x439feb,_0x40ace2,_0x18b08d,_0x58e20f),{'collection':_0x40ace2,'updateDataFieldList':_0x45fa80};}[_0xdefc56(0x2f8)](_0x4a3de7,_0x5c2fa8){const _0x2bb97=_0xdefc56;return _0x4a3de7['rangeType']===v[_0x2bb97(0x2ad)]['COLUMN']?{'startRow':0x0,'startColumn':_0x4a3de7['startColumn'],'endRow':_0x5c2fa8['getRowCount']()-0x1,'endColumn':_0x4a3de7[_0x2bb97(0x345)]}:{'startRow':_0x4a3de7[_0x2bb97(0x3be)],'startColumn':_0x4a3de7[_0x2bb97(0x142)],'endRow':_0x4a3de7[_0x2bb97(0x3ab)],'endColumn':_0x4a3de7[_0x2bb97(0x345)]};}[_0xdefc56(0x108)](_0x40407f){const _0x5e6e01=_0xdefc56,{sheetName:_0x4d5096,range:_0x27426d}=_0x40407f,_0xf83200=this[_0x5e6e01(0x2b6)][_0x5e6e01(0x2ce)](v[_0x5e6e01(0x22e)][_0x5e6e01(0x2db)]),_0x2177d0=_0xf83200['getSheetBySheetName'](_0x4d5096),_0x9d1e38=_0x2177d0[_0x5e6e01(0x1c0)](),{startColumn:_0x5945bc,startRow:_0x3116dd,endColumn:_0x30aab2}=this[_0x5e6e01(0x2f8)](_0x27426d,_0x2177d0),_0x343d92=_0xf83200[_0x5e6e01(0x383)](),_0x3bf7da=new p[(_0x5e6e01(0xde))](this);_0x3bf7da[_0x5e6e01(0x1ea)](_0x40407f);const _0x6ca68c=[],_0x4f57e4={};for(let _0x49e860=_0x5945bc;_0x49e860<=_0x30aab2;_0x49e860++){const _0x4436a9=_0x9d1e38[_0x5e6e01(0x32b)](_0x3116dd,_0x49e860),_0xe30039=this[_0x5e6e01(0x251)](_0x40407f,_0x49e860),_0x4c3f65=this[_0x5e6e01(0x32d)](_0xe30039);if(_0x4c3f65)_0x3bf7da[_0x5e6e01(0x319)](_0x4c3f65[_0x5e6e01(0x36b)](),_0x4c3f65[_0x5e6e01(0x2c4)]());else{const _0x26a0f0=this[_0x5e6e01(0x1cc)]();let _0x1ae30e=this['adjustSheetCellData'](_0x4436a9,_0x343d92,_0x4f57e4);p[_0x5e6e01(0x3c3)](_0x1ae30e)&&(_0x1ae30e=v[_0x5e6e01(0x35f)][_0x5e6e01(0x1af)](_0x1ae30e['f'],Number(_0x1ae30e['v'])));const _0x2a505c=this[_0x5e6e01(0x192)](_0x1ae30e,_0x49e860),_0x10ecd8=new p[(_0x5e6e01(0x208))](_0x26a0f0,_0x2a505c,p['generateHexNumber'](0x3));_0x10ecd8[_0x5e6e01(0x2c0)]=_0xe30039,this['dataFields'][_0x26a0f0]=_0x10ecd8,_0x3bf7da[_0x5e6e01(0x319)](_0x26a0f0,_0x2a505c),_0x6ca68c[_0x5e6e01(0x12c)]({'index':_0x49e860,'dataField':_0x10ecd8});}}return{'updateDataFieldList':_0x6ca68c,'collection':_0x3bf7da};}['_getAutoName'](_0x2dc5c0){const _0x5032bd=_0xdefc56;return this[_0x5032bd(0x11f)][_0x5032bd(0x369)]()[_0x5032bd(0x1a5)]+'\x20'+v['numberToABC'](_0x2dc5c0);}['uniqueDataFieldName'](_0x1d3606,_0x5b1431){const _0x1d3446=_0xdefc56;return _0x1d3606==null||_0x1d3606===''?this[_0x1d3446(0x2da)](_0x5b1431):String(_0x1d3606);}[_0xdefc56(0x119)](_0x940f98){const _0x30e873=_0xdefc56;return this[_0x30e873(0x104)][_0x940f98];}['addCollection'](_0xad36c6,_0x3ba142,_0x25a40e,_0x405f95){const _0xa1fab4=_0xdefc56;this['collections'][_0xad36c6]=_0x3ba142,_0x3ba142['setRange'](_0x25a40e),this[_0xa1fab4(0x11f)][_0xa1fab4(0x2a4)]({'token':_0xad36c6,'type':Se[_0xa1fab4(0x2b9)],'dataRangeInfo':_0x25a40e,'targetCellInfo':_0x405f95});}['handleMoveRange'](_0x1cf8a9,_0x472605){const _0x3b2c6d=_0xdefc56,_0x2e5526=this['getCollection'](_0x1cf8a9),_0x2d739d=_0x2e5526['getFieldIds']();let _0x3c893b=0x0;for(const _0x443b6a of _0x2d739d){const _0x5520d2=_0x2e5526['getFieldById'](_0x443b6a),_0x5c3782=this[_0x3b2c6d(0x251)](_0x472605,_0x3c893b);this[_0x3b2c6d(0x2b5)](_0x5520d2[_0x3b2c6d(0x2c0)],_0x5c3782),_0x3c893b++;}}[_0xdefc56(0x33e)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0xdefc56(0x23f)](_0x2bed35,_0x23924e){const _0x486b99=_0xdefc56;if(this[_0x486b99(0x119)](_0x2bed35)){const _0x29fff6=this[_0x486b99(0x1a8)](_0x23924e),_0x252764=[];for(const _0x351af4 of _0x29fff6)this[_0x486b99(0x24e)][_0x351af4]!==void 0x0&&_0x252764[_0x486b99(0x12c)](this[_0x486b99(0x24e)][_0x351af4]);const _0x4e0710=this[_0x486b99(0x23d)](_0x2bed35),_0x545362=[],_0x138627=new Set(_0x252764);for(const _0x58d12b of _0x4e0710)_0x138627['has'](_0x58d12b)||_0x545362[_0x486b99(0x12c)](_0x58d12b);return _0x545362;}}['getMatrixValue'](_0x168037,_0x348e18,_0x91dcf3,_0x10ed59,_0x4e094){const _0x23d0b0=_0xdefc56;return _0x348e18&&_0x348e18[_0x23d0b0(0x32b)](_0x10ed59,_0x4e094)?_0x348e18[_0x23d0b0(0x32b)](_0x10ed59,_0x4e094):_0x91dcf3&&_0x91dcf3[_0x23d0b0(0x32b)](_0x10ed59,_0x4e094)?_0x91dcf3[_0x23d0b0(0x32b)](_0x10ed59,_0x4e094):_0x168037[_0x23d0b0(0x32b)](_0x10ed59,_0x4e094);}['refreshDataField'](_0x500214,_0x25230e,_0x1a8ee6,_0x2e795a){const _0x1b66fa=_0xdefc56,_0x3bef3c=this[_0x1b66fa(0x234)][_0x500214];if(!_0x3bef3c)return;const {subUnitId:_0x354dbf,range:_0x16be55,unitId:_0x3c143e}=_0x25230e,_0x16f332=this[_0x1b66fa(0x2b6)]['getUnit'](_0x3c143e);if(!_0x16f332){console[_0x1b66fa(0x162)](_0x1b66fa(0x2bc));return;}const _0x12044f=_0x16f332['getSheetBySheetId'](_0x354dbf),_0xfc704d=_0x12044f[_0x1b66fa(0x1c0)](),{arrayFormulaCellDataMatrix:_0x21b77a,unitDataMatrix:_0x428e28}=_0x2e795a||{},{startRow:_0xf9d844,startColumn:_0x2e421d,endRow:_0x24166e}=this[_0x1b66fa(0x2f8)](_0x16be55,_0x12044f);_0x3bef3c[_0x1b66fa(0x2e5)]();const _0x32aa40=_0x16f332[_0x1b66fa(0x383)](),_0x39691d={},_0x5f176f=this['getMatrixValue'](_0xfc704d,_0x21b77a,_0x428e28,_0xf9d844,_0x2e421d+_0x1a8ee6);let _0x586685=this['adjustSheetCellData'](_0x5f176f,_0x32aa40,_0x39691d);p[_0x1b66fa(0x3c3)](_0x586685)&&(_0x586685=v['numfmt'][_0x1b66fa(0x1af)](_0x586685['f'],Number(_0x586685['v'])));const _0x2a8d2e=this[_0x1b66fa(0x192)](_0x586685,_0x2e421d+_0x1a8ee6);_0x3bef3c[_0x1b66fa(0x2cf)](_0x2a8d2e);for(let _0x3d877a=_0xf9d844+0x1;_0x3d877a<=_0x24166e;_0x3d877a++){const _0xad72c4=this[_0x1b66fa(0x1f8)](_0xfc704d,_0x21b77a,_0x428e28,_0x3d877a,_0x2e421d+_0x1a8ee6);_0x3bef3c[_0x1b66fa(0x356)](this[_0x1b66fa(0x2d4)](_0xad72c4,_0x32aa40,_0x39691d),_0x3d877a-0x1-_0xf9d844);}}[_0xdefc56(0x2dc)](_0x1353f3,_0x414cfe,_0xa02adf){const _0x580447=_0xdefc56,{subUnitId:_0x39e285,range:_0x1a0bc2,unitId:_0x19f632}=_0xa02adf,_0x28a5da=this[_0x580447(0x2b6)][_0x580447(0x2cc)](_0x19f632);if(!_0x28a5da){console[_0x580447(0x162)]('workbook\x20is\x20not\x20found');return;}const _0x36b8e2=_0x28a5da[_0x580447(0xff)](_0x39e285),_0x331482=_0x36b8e2[_0x580447(0x1c0)](),{startRow:_0x2e74b2,startColumn:_0x19e2dc,endRow:_0x51e100}=this['getRangeStartEndInfo'](_0x1a0bc2,_0x36b8e2),_0x3970b6=_0x28a5da[_0x580447(0x383)](),_0x4dbeb2={};for(const {dataField:_0x57ebee,index:_0x35f277}of _0x414cfe){_0x57ebee[_0x580447(0x2e5)]();const _0x1e5bb7=this[_0x580447(0x1f8)](_0x331482,void 0x0,void 0x0,_0x2e74b2,_0x19e2dc+_0x35f277);let _0x3797f7=this[_0x580447(0x2d4)](_0x1e5bb7,_0x3970b6,_0x4dbeb2);p[_0x580447(0x3c3)](_0x3797f7)&&(_0x3797f7=v['numfmt'][_0x580447(0x1af)](_0x3797f7['f'],Number(_0x3797f7['v'])));const _0x5b3219=this[_0x580447(0x192)](_0x3797f7,_0x19e2dc+_0x35f277);_0x57ebee[_0x580447(0x2cf)](_0x5b3219);}_0x1353f3['updateAllDisplayName']();for(let _0x32f97d=_0x2e74b2+0x1;_0x32f97d<=_0x51e100;_0x32f97d++)for(const {index:_0x551c6d,dataField:_0x5b2f6f}of _0x414cfe){const _0xd517c0=_0x331482['getValue'](_0x32f97d,_0x19e2dc+_0x551c6d);_0x5b2f6f['addRecord'](this[_0x580447(0x2d4)](_0xd517c0,_0x3970b6,_0x4dbeb2),_0x32f97d-0x1-_0x2e74b2);}_0x1353f3[_0x580447(0x270)](_0x51e100-_0x2e74b2);}[_0xdefc56(0x1a8)](_0x3e1842){const _0x36a3a4=_0xdefc56,{range:_0x5d2a5a}=_0x3e1842,{startColumn:_0x56fb1b,endColumn:_0xfe7179}=_0x5d2a5a,_0xad4e48=[];for(let _0x2a2c5b=_0x56fb1b;_0x2a2c5b<=_0xfe7179;_0x2a2c5b++)_0xad4e48[_0x36a3a4(0x12c)](this[_0x36a3a4(0x251)](_0x3e1842,_0x2a2c5b));return _0xad4e48;}['adjustSheetCellData'](_0x51b719,_0x10eb3a,_0x38d850){const _0x438624=_0xdefc56;if(_0x51b719){const {s:_0xc425a9,v:_0x18e510,t:_0x25d54f,p:_0x276aaa}=_0x51b719;if(_0x276aaa)return qo(_0x276aaa);const _0x222f20=_0x10eb3a[_0x438624(0x2ba)](_0xc425a9);if(_0x222f20&&_0x25d54f===v['CellValueType'][_0x438624(0x315)]&&_0x222f20['n']){const {pattern:_0x4233f1}=_0x222f20['n'];_0x38d850[_0x4233f1]||(_0x38d850[_0x4233f1]=v[_0x438624(0x35f)][_0x438624(0x1b6)](_0x4233f1));const _0x379a61=_0x38d850[_0x4233f1],_0x2b2b93=_0x379a61[_0x438624(0x244)];if(_0x379a61[_0x438624(0x2c5)])return String(_0x18e510);if(_0x2b2b93)return{'v':_0x18e510,'f':_0x4233f1};}if(_0x25d54f===v[_0x438624(0x358)]['NUMBER'])return Number(_0x18e510);if(_0x25d54f===v['CellValueType'][_0x438624(0x310)]||_0x25d54f===v[_0x438624(0x358)][_0x438624(0x255)])return String(_0x18e510);if(_0x25d54f===void 0x0){const _0x833189=Number(_0x18e510);if(!Number[_0x438624(0x17e)](_0x833189)&&String(_0x833189)===_0x18e510)return _0x833189;}return _0x18e510!=null?_0x18e510:null;}else return null;}[_0xdefc56(0xe4)](_0x4d7d0b){const _0x23c9b6=_0xdefc56,{sheetName:_0x75feec,range:_0x1dde9d,unitId:_0x32f441}=_0x4d7d0b,_0x2fca9e=this[_0x23c9b6(0x2b6)]['getUnit'](_0x32f441);if(!_0x2fca9e)return console['error'](_0x23c9b6(0x2bc)),{'header':[],'data':[]};const _0x2ba32f=_0x2fca9e[_0x23c9b6(0x2ea)](_0x75feec),_0x5ef89d=_0x2ba32f[_0x23c9b6(0x1c0)](),{startRow:_0x25b47a,startColumn:_0x58f3d1,endRow:_0x1b7073,endColumn:_0x560f3a}=this['getRangeStartEndInfo'](_0x1dde9d,_0x2ba32f),_0x33d5ae=_0x2fca9e[_0x23c9b6(0x383)](),_0x3f9805=[],_0x435b84=[],_0x817eac={};for(let _0x85df08=_0x25b47a;_0x85df08<=_0x1b7073;_0x85df08++){const _0x7a063e=[];for(let _0x2d5442=_0x58f3d1;_0x2d5442<=_0x560f3a;_0x2d5442++){const _0x4fc908=_0x5ef89d['getValue'](_0x85df08,_0x2d5442);_0x85df08===_0x25b47a?_0x3f9805['push'](_0x4fc908==null?null:String(_0x4fc908['v'])):_0x7a063e[_0x23c9b6(0x12c)](this[_0x23c9b6(0x2d4)](_0x4fc908,_0x33d5ae,_0x817eac));}_0x435b84[_0x23c9b6(0x12c)](_0x7a063e);}return{'header':_0x3f9805,'data':_0x435b84};}[_0xdefc56(0x3a4)](){const _0x376309=_0xdefc56;return super[_0x376309(0x3a4)]();}[_0xdefc56(0xe6)](_0x4123fe){const _0x508cfe=_0xdefc56;super[_0x508cfe(0xe6)](_0x4123fe),this[_0x508cfe(0x2ef)]();}['dispose'](){const _0x2d8621=_0xdefc56;super['dispose'](),this[_0x2d8621(0x24e)]={},this[_0x2d8621(0x11f)]=null;}}const Yo=_0xc54786=>{const _0x1a143b=_0xdefc56,{targetCellInfo:_0x57d256}=_0xc54786,{matrixCache:_0x1209d0,rangesCache:_0x6c3064}=Ht({'filter':_0x1a143b(0x14d),'row':'Row','column':_0x1a143b(0x266),'values':_0x1a143b(0xf9)},_0x57d256),_0x1e3af4=new v[(_0x1a143b(0x19d))]();return _0x1209d0[_0x1a143b(0x37b)]((_0x5c9c79,_0x81a7c0,_0x3b3305)=>{const _0x2cef8e=_0x1a143b;_0x1e3af4[_0x2cef8e(0x1d2)](_0x5c9c79,_0x81a7c0,_0x3b3305);}),{'matrix':_0x1e3af4,'rangesCache':_0x6c3064};},Be=_0x3c0b09=>{const _0x345282=_0xdefc56;let _0x97900f;if(_0x3c0b09!=null&&_0x3c0b09['v']||(_0x3c0b09==null?void 0x0:_0x3c0b09['v'])===0x0){_0x97900f||(_0x97900f={});const _0x7a2f98=zt(_0x3c0b09['v']);typeof _0x7a2f98==_0x345282(0xc2)?_0x97900f['t']=v[_0x345282(0x358)][_0x345282(0x315)]:typeof _0x7a2f98==_0x345282(0x1ab)&&(_0x97900f['t']=v[_0x345282(0x358)][_0x345282(0x310)]),_0x97900f['v']=_0x7a2f98;}return _0x97900f;},Qo=(_0x5bab7d,_0x340f43,_0x5d38bb)=>{const _0x32bcd6=_0xdefc56;var _0x1696ba,_0x6e51b6,_0x2f81cf,_0x4d201a,_0x558c8d,_0x39e6ce,_0x5119f1,_0x16d84f,_0x5dd47c,_0x56388f,_0x4a16b2,_0x298bbe;const {cornerView:_0x8f8d7d,rowView:_0x30a444,colView:_0x152bc4,dataView:_0x59b84a,pageView:_0x249f79,formatMap:_0x9beeba}=_0x5bab7d,{row:_0x3d616c,col:_0x44c310}=_0x340f43,_0x11e2b9=new v['ObjectMatrix']();let _0x4e283e=_0x3d616c,_0xbc397b=_0x44c310;Object['keys'](_0x249f79[_0x32bcd6(0x138)])[_0x32bcd6(0x187)](_0x54a7ed=>{const _0x4b6efa=_0x32bcd6;Object[_0x4b6efa(0x2e2)](_0x249f79[_0x4b6efa(0x138)][Number(_0x54a7ed)])[_0x4b6efa(0x187)](_0xe2ee7f=>{const _0x4448ee=_0x4b6efa,_0x1455ad={..._0x249f79[_0x4448ee(0x138)][Number(_0x54a7ed)][Number(_0xe2ee7f)]};_0x11e2b9[_0x4448ee(0x1d2)](Number(_0x54a7ed)+_0x4e283e,Number(_0xe2ee7f)+_0xbc397b,Be(_0x1455ad));});});const _0x2e65b2=Object[_0x32bcd6(0x2e2)](_0x249f79[_0x32bcd6(0x138)])[_0x32bcd6(0xd0)];_0x4e283e+=_0x2e65b2+(_0x2e65b2?Re:0x0);const _0xf0c46e=_0x8f8d7d[_0x32bcd6(0x1dd)](),_0x5ef73b=_0x8f8d7d[_0x32bcd6(0x1b0)]();for(let _0x581864=0x0;_0x581864<_0xf0c46e;_0x581864++)for(let _0x31fd3a=0x0;_0x31fd3a<_0x5ef73b;_0x31fd3a++){const _0x202c9c={...(_0x6e51b6=(_0x1696ba=_0x8f8d7d[_0x32bcd6(0x138)])==null?void 0x0:_0x1696ba[_0x581864])==null?void 0x0:_0x6e51b6[_0x31fd3a]};_0x202c9c&&((_0x2f81cf=_0x30a444[_0x32bcd6(0x39e)][_0x31fd3a])!=null&&_0x2f81cf[_0x32bcd6(0x17b)])&&_0x31fd3a===_0x5ef73b-0x1&&_0x581864===_0xf0c46e-0x1&&(_0x202c9c['v']=''+_0x5d38bb[_0x32bcd6(0x31b)]),_0x11e2b9[_0x32bcd6(0x1d2)](_0x581864+_0x4e283e,_0x31fd3a+_0xbc397b,Be(_0x202c9c));}_0xbc397b+=_0x5ef73b;const _0x16f601=_0x152bc4['headerMap'],_0x234bd2=_0x152bc4[_0x32bcd6(0x100)]()>=0x0?_0x152bc4[_0x32bcd6(0x100)]()+0x1:0x0,_0x21d88a=_0x152bc4[_0x32bcd6(0x110)]()>=0x0?_0x152bc4[_0x32bcd6(0x110)]()+0x1:0x0;for(let _0x5bf0e0=0x0;_0x5bf0e0<_0x21d88a;_0x5bf0e0++)for(let _0x4066dd=0x0;_0x4066dd<_0x234bd2;_0x4066dd++){const _0x3bf7fb={...(_0x558c8d=(_0x4d201a=_0x152bc4['data'])==null?void 0x0:_0x4d201a[_0x5bf0e0])==null?void 0x0:_0x558c8d[_0x4066dd]},_0x5b889b=(_0x39e6ce=_0x16f601[_0x5bf0e0])==null?void 0x0:_0x39e6ce[_0x32bcd6(0xcb)],_0x40d4fa=_0x9beeba[_0x5b889b];_0x3bf7fb&&(_0x3bf7fb['v']=De(_0x3bf7fb,_0x5bf0e0===0x0&&((_0x5119f1=_0x152bc4['getHeaderMapItem'](_0x4066dd+0x1))==null?void 0x0:_0x5119f1['isValue']),_0x40d4fa,_0x5d38bb)),_0x11e2b9[_0x32bcd6(0x1d2)](_0x5bf0e0+_0x4e283e,_0x4066dd+_0xbc397b,Be(_0x3bf7fb));}_0x4e283e+=_0xf0c46e;const _0x4e5a2a=_0x30a444[_0x32bcd6(0x39e)],_0x5f2fb4=_0x30a444[_0x32bcd6(0x100)]()>=0x0?_0x30a444[_0x32bcd6(0x100)]()+0x1:0x0,_0x9ab90=_0x30a444['getLastCol']()>=0x0?_0x30a444['getLastCol']()+0x1:0x0;for(let _0x3179b5=0x0;_0x3179b5<_0x5f2fb4;_0x3179b5++)for(let _0x115f9f=0x0;_0x115f9f<_0x9ab90;_0x115f9f++){const _0x3af8be={...(_0x5dd47c=(_0x16d84f=_0x30a444[_0x32bcd6(0x138)])==null?void 0x0:_0x16d84f[_0x3179b5])==null?void 0x0:_0x5dd47c[_0x115f9f]},_0x4c8ac8=(_0x56388f=_0x4e5a2a[_0x115f9f])==null?void 0x0:_0x56388f[_0x32bcd6(0xcb)],_0xce5e28=_0x9beeba[_0x4c8ac8];_0x3af8be&&(_0x3af8be['v']=De(_0x3af8be,!0x1,_0xce5e28,_0x5d38bb)),_0x11e2b9[_0x32bcd6(0x1d2)](_0x3179b5+_0x4e283e,_0x115f9f+_0x44c310,Be(_0x3af8be));}const _0x9cc514=_0x59b84a[_0x32bcd6(0x1dd)](),_0x465b99=_0x59b84a['getColCount']();for(let _0x4dce81=0x0;_0x4dce81<_0x9cc514;_0x4dce81++)for(let _0x2efefa=0x0;_0x2efefa<_0x465b99;_0x2efefa++){const _0x2c2e90={...(_0x298bbe=(_0x4a16b2=_0x59b84a['data'])==null?void 0x0:_0x4a16b2[_0x4dce81])==null?void 0x0:_0x298bbe[_0x2efefa]};_0x11e2b9['setValue'](_0x4dce81+_0x4e283e,_0x2efefa+_0xbc397b,Be(_0x2c2e90));}return _0x11e2b9;},Xo=_0x10af7f=>{const _0x9d1cb9=_0xdefc56,{view:_0x22c698,targetCellInfo:_0x3f2d97,isEmpty:_0x175254,textInfo:_0x1e48f7}=_0x10af7f;if(_0x175254)return Yo(_0x10af7f);const {pageView:_0x15fdc0,cornerView:_0x618962,rowView:_0x584803,colView:_0x11106e,dataView:_0x5aaa06}=_0x22c698,_0x54295b=oe(_0x3f2d97,_0x15fdc0,!0x0),_0x1e2d11=_0x15fdc0[_0x9d1cb9(0x354)]>=0x0?_0x15fdc0['lastRow']+0x1:0x0,_0x2044a7=_0x618962['getRowCount'](),_0x1bafec=_0x618962[_0x9d1cb9(0x1b0)](),_0x2f5225=_0x54295b[_0x9d1cb9(0xd0)]>0x0?Re:0x0,_0x3dca7f=oe({'row':_0x3f2d97[_0x9d1cb9(0x35a)]+_0x1e2d11+_0x2f5225,'col':_0x3f2d97[_0x9d1cb9(0x20f)]},_0x618962,!0x1,!0x1),_0x174ec7=oe({'row':_0x3f2d97[_0x9d1cb9(0x35a)]+_0x1e2d11+_0x2f5225+_0x2044a7,'col':_0x3f2d97[_0x9d1cb9(0x20f)]},_0x584803,!0x1,!0x0),_0x44c626=oe({'row':_0x3f2d97['row']+_0x1e2d11+_0x2f5225,'col':_0x3f2d97[_0x9d1cb9(0x20f)]+_0x1bafec},_0x11106e,!0x1,!0x0),_0x3622ca=oe({'row':_0x3f2d97[_0x9d1cb9(0x35a)]+_0x1e2d11+_0x2f5225+_0x2044a7,'col':_0x3f2d97[_0x9d1cb9(0x20f)]+_0x1bafec},_0x5aaa06,!0x1,!0x1),_0x2d744d={'rowRanges':_0x174ec7,'colRanges':_0x44c626,'cornerRanges':_0x3dca7f,'dataRanges':_0x3622ca,'pageRanges':_0x54295b};return{'matrix':Qo(_0x22c698,_0x3f2d97,_0x1e48f7),'rangesCache':_0x2d744d};};var Zo=Object[_0xdefc56(0x111)],en=(_0x1cf07b,_0x549c7a,_0x35fdbe,_0x4553ab)=>{const _0x3b4f69=_0xdefc56;for(var _0x4e13b5=_0x4553ab>0x1?void 0x0:_0x4553ab?Zo(_0x549c7a,_0x35fdbe):_0x549c7a,_0x13a8bc=_0x1cf07b[_0x3b4f69(0xd0)]-0x1,_0x4fb7c0;_0x13a8bc>=0x0;_0x13a8bc--)(_0x4fb7c0=_0x1cf07b[_0x13a8bc])&&(_0x4e13b5=_0x4fb7c0(_0x4e13b5)||_0x4e13b5);return _0x4e13b5;},ye=(_0x5a1305,_0x1999fd)=>(_0x1e3b16,_0x2a0692)=>_0x1999fd(_0x1e3b16,_0x2a0692,_0x5a1305);exports['SheetsPivotDataSourceModel']=class extends v['Disposable']{constructor(_0x2343de,_0x46d933,_0x1f3a78,_0x260500,_0x3aa339,_0x2c6c9f){const _0x3cf7fd=_0xdefc56;super(),x(this,_0x3cf7fd(0x2d3),new Map()),x(this,_0x3cf7fd(0xd3),new Map()),x(this,'_viewData',new Map()),x(this,_0x3cf7fd(0x246)),x(this,'_collectionChange$',new ge[(_0x3cf7fd(0x177))]()),x(this,'collectionChange$',this[_0x3cf7fd(0x1db)][_0x3cf7fd(0x26c)]()),x(this,_0x3cf7fd(0x264),new ge[(_0x3cf7fd(0x177))]()),x(this,_0x3cf7fd(0x31c),this['_viewData$'][_0x3cf7fd(0x26c)]()),x(this,_0x3cf7fd(0x215),new ge[(_0x3cf7fd(0x177))]()),x(this,_0x3cf7fd(0x308),this[_0x3cf7fd(0x215)]['asObservable']()),x(this,_0x3cf7fd(0x2cb),new Map()),x(this,_0x3cf7fd(0x36e),[]),x(this,_0x3cf7fd(0x3d3),new Map()),(this[_0x3cf7fd(0x199)]=_0x2343de,this[_0x3cf7fd(0x2b6)]=_0x46d933,this[_0x3cf7fd(0x2e4)]=_0x1f3a78,this[_0x3cf7fd(0x2d2)]=_0x260500,this[_0x3cf7fd(0x2bd)]=_0x3aa339,this[_0x3cf7fd(0x3c0)]=_0x2c6c9f,this[_0x3cf7fd(0x283)]());}[_0xdefc56(0x369)](){const _0x15a0af=_0xdefc56;return this[_0x15a0af(0x246)]?this[_0x15a0af(0x246)]:Ko;}['setTextInfo'](_0x3f482f){const _0x3e0762=_0xdefc56;this[_0x3e0762(0x246)]=_0x3f482f;}[_0xdefc56(0xdd)](_0x42abb1){const _0x29b31e=_0xdefc56;var _0x278864;const {from:_0x57bcce,to:_0x35a216,unitId:_0x4728d3,fromRange:_0x3024e1,toRange:_0x2dabb7}=_0x42abb1;if(_0x57bcce&&_0x35a216){const _0x5b6971=this['getDataFieldManager'](_0x4728d3),_0x4926f1=this[_0x29b31e(0x2d3)][_0x29b31e(0x2ba)](_0x4728d3),_0x387150=(_0x278864=this[_0x29b31e(0x2b6)]['getUnit'](_0x4728d3))==null?void 0x0:_0x278864[_0x29b31e(0xff)](_0x35a216[_0x29b31e(0x238)]);if(!_0x4926f1||!_0x387150)return;const _0x1de60b=_0x387150==null?void 0x0:_0x387150[_0x29b31e(0x2c4)]();for(const [_0x23ea67,_0x3f3eb7]of _0x4926f1[_0x29b31e(0x114)]())for(const [_0x4b2e27,_0x145078]of _0x3f3eb7[_0x29b31e(0x114)]()){const {sourceRangeInfo:_0x285893}=_0x145078;if(_0x285893[_0x29b31e(0x329)]===_0x4728d3&&_0x285893[_0x29b31e(0x238)]===_0x57bcce[_0x29b31e(0x238)]&&v['Rectangle']['contains'](_0x3024e1,_0x285893[_0x29b31e(0x37e)])){const _0x4d91db={'row':_0x285893[_0x29b31e(0x37e)][_0x29b31e(0x3be)]-_0x3024e1[_0x29b31e(0x3be)],'col':_0x285893[_0x29b31e(0x37e)][_0x29b31e(0x142)]-_0x3024e1[_0x29b31e(0x142)]},_0x2b88e4={'unitId':_0x4728d3,'subUnitId':_0x35a216['subUnitId'],'sheetName':_0x1de60b,'range':{'startRow':_0x2dabb7[_0x29b31e(0x3be)]+_0x4d91db[_0x29b31e(0x35a)],'endRow':_0x2dabb7[_0x29b31e(0x3be)]+_0x4d91db[_0x29b31e(0x35a)]+_0x285893['range'][_0x29b31e(0x3ab)]-_0x285893['range'][_0x29b31e(0x3be)],'startColumn':_0x2dabb7[_0x29b31e(0x142)]+_0x4d91db[_0x29b31e(0x20f)],'endColumn':_0x2dabb7['startColumn']+_0x4d91db['col']+_0x285893[_0x29b31e(0x37e)][_0x29b31e(0x345)]-_0x285893['range'][_0x29b31e(0x142)]}};_0x5b6971[_0x29b31e(0xdd)](_0x4b2e27,_0x2b88e4);const _0x5d1383={..._0x145078,'sourceRangeInfo':_0x2b88e4};this[_0x29b31e(0x337)](_0x4728d3,_0x35a216[_0x29b31e(0x238)],_0x4b2e27,_0x5d1383),this[_0x29b31e(0x2a4)]({'unitId':_0x4728d3,'token':_0x4b2e27,'type':Se[_0x29b31e(0x243)],'oldSourceRangeInfo':_0x285893,'dataRangeInfo':_0x2b88e4,'targetCellInfo':_0x145078['targetCellInfo']}),this[_0x29b31e(0x203)]({'unitId':_0x4728d3,'subUnitId':_0x35a216['subUnitId'],'oldSubUnitId':_0x23ea67,'pivotTableId':_0x4b2e27,'pivotTableConfig':_0x5d1383,'collectionConfig':_0x5b6971[_0x29b31e(0x3a4)]()});}}}}[_0xdefc56(0x2a4)](_0x1fd682){const _0x11ed52=_0xdefc56;this[_0x11ed52(0x1db)]['next'](_0x1fd682);}[_0xdefc56(0x12d)](_0x164936){const _0x363689=_0xdefc56;let _0x7814e6=this[_0x363689(0x2cb)][_0x363689(0x2ba)](_0x164936);return _0x7814e6||(_0x7814e6=new Ho(this,this['_univerInstanceService']),this[_0x363689(0x2cb)][_0x363689(0x2e9)](_0x164936,_0x7814e6)),_0x7814e6;}[_0xdefc56(0x119)](_0x4420fa,_0x4c13bd){const _0x300ad6=_0xdefc56;return this['getDataFieldManager'](_0x4420fa)[_0x300ad6(0x104)][_0x4c13bd];}[_0xdefc56(0x23f)](_0x381bab,_0x377fe9,_0x5f5ade){const _0x11edf7=_0xdefc56;return this['getDataFieldManager'](_0x381bab)[_0x11edf7(0x23f)](_0x377fe9,_0x5f5ade);}[_0xdefc56(0x361)](_0x4acad9,_0x3ea62f){const _0x82da3a=_0xdefc56;let _0x6b8fd3=this[_0x82da3a(0x2d3)][_0x82da3a(0x2ba)](_0x4acad9);_0x6b8fd3||(_0x6b8fd3=new Map(),this[_0x82da3a(0x2d3)]['set'](_0x4acad9,_0x6b8fd3));let _0x3a9f24=_0x6b8fd3['get'](_0x3ea62f);return _0x3a9f24||(_0x3a9f24=new Map(),_0x6b8fd3[_0x82da3a(0x2e9)](_0x3ea62f,_0x3a9f24)),_0x3a9f24;}[_0xdefc56(0x337)](_0xdc7909,_0x3faf12,_0x56a696,_0x1d4f51){const _0x53e570=_0xdefc56;this[_0x53e570(0x361)](_0xdc7909,_0x3faf12)[_0x53e570(0x2e9)](_0x56a696,_0x1d4f51);}[_0xdefc56(0x303)](_0x1a43de,_0x30c797,_0x314acb){const _0x184330=_0xdefc56;var _0x1b02a9,_0x45bf90,_0x2697a1,_0x6932bd;((_0x45bf90=(_0x1b02a9=this['_model'][_0x184330(0x2ba)](_0x1a43de))==null?void 0x0:_0x1b02a9['get'](_0x30c797))==null?void 0x0:_0x45bf90[_0x184330(0x2ba)](_0x314acb))&&((_0x6932bd=(_0x2697a1=this[_0x184330(0x2d3)][_0x184330(0x2ba)](_0x1a43de))==null?void 0x0:_0x2697a1['get'](_0x30c797))==null||_0x6932bd[_0x184330(0x170)](_0x314acb));}[_0xdefc56(0x330)](_0x45f45c,_0x2e5acf){const _0x35f2c9=_0xdefc56;this[_0x35f2c9(0xd3)][_0x35f2c9(0x2e9)](_0x45f45c,_0x2e5acf);}[_0xdefc56(0x3b4)](_0xeb2242){const _0x3a869b=_0xdefc56;this['_pivotTableInstanceCache'][_0x3a869b(0x170)](_0xeb2242);}[_0xdefc56(0x3bc)](_0x1e1922,_0x54ff4b){const _0x15d109=_0xdefc56;let _0x2b9dd6=this['_viewData'][_0x15d109(0x2ba)](_0x1e1922);_0x2b9dd6||(_0x2b9dd6=new Map(),this[_0x15d109(0x19b)][_0x15d109(0x2e9)](_0x1e1922,_0x2b9dd6));let _0x2e83e=_0x2b9dd6[_0x15d109(0x2ba)](_0x54ff4b);return _0x2e83e||(_0x2e83e=new Map(),_0x2b9dd6[_0x15d109(0x2e9)](_0x54ff4b,_0x2e83e)),_0x2e83e;}[_0xdefc56(0x203)](_0xe7518e){const _0x599146=_0xdefc56,{unitId:_0x5ee0e3,subUnitId:_0x340d09,pivotTableId:_0x588f7e,pivotTableConfig:_0x51e1a3,collectionConfig:_0x509e10}=_0xe7518e,_0x10320a={'unitId':_0x5ee0e3,'subUnitId':_0x340d09,'oldSubUnitId':_0x340d09,'pivotTableId':_0x588f7e,'pivotTableConfig':_0x51e1a3,'collectionConfig':_0x509e10};this[_0x599146(0x2bd)][_0x599146(0x3b5)](Dt['id'],_0x10320a,{'onlyLocal':!0x0});}['updateView'](_0x56df20,_0x17a001,_0x3cb019,_0x41aabe,_0x4b44a8,_0x28c03b,_0x16d3aa,_0x295be2=!0x1){const _0x61a7b9=_0xdefc56;var _0x6bad26;this['_commandService']['executeCommand'](ot['id'],{'single':{'unitId':_0x56df20,'subUnitId':_0x17a001,'type':_0x3cb019,'pivotTableId':_0x41aabe,'view':_0x4b44a8,'pivotConfig':_0x28c03b},'collectionConfig':{[_0x56df20]:_0x16d3aa}},{'onlyLocal':!0x0});const _0x34d859=!!((_0x6bad26=this['getPivotTableInstance'](_0x41aabe))!=null&&_0x6bad26[_0x61a7b9(0x245)]()),_0x144dd3=this['getPivotTableConfig'](_0x56df20,_0x17a001,_0x41aabe);_0x144dd3&&this['updateViewData']({'view':_0x4b44a8,'pivotTableId':_0x41aabe,'textInfo':this[_0x61a7b9(0x369)](),'isEmpty':_0x34d859,'targetCellInfo':_0x144dd3[_0x61a7b9(0x29c)]},_0x295be2);}[_0xdefc56(0x218)](_0x22ba85,_0x116ef2){const _0x509721=_0xdefc56,{targetCellInfo:_0x20dec4,pivotTableId:_0x42c21a}=_0x22ba85,{unitId:_0x55d10d,subUnitId:_0x114a8d}=_0x20dec4,_0x55afda=this[_0x509721(0x3bc)](_0x55d10d,_0x114a8d),_0x17cb94=_0x55afda[_0x509721(0x2ba)](_0x42c21a);let _0x2ccfe8,_0x1349a3;_0x17cb94&&(_0x2ccfe8=_0x17cb94[_0x509721(0x118)],_0x1349a3=_0x17cb94[_0x509721(0x161)]);const {rangesCache:_0x267354,matrix:_0x16c7cc}=Xo(_0x22ba85);_0x55afda[_0x509721(0x2e9)](_0x42c21a,{'rangeCache':_0x267354,'matrix':_0x16c7cc,'oldMatrix':_0x1349a3,'oldRangeCache':_0x2ccfe8}),_0x116ef2||this[_0x509721(0x264)][_0x509721(0x18e)]({'unitId':_0x55d10d,'subUnitId':_0x114a8d,'pivotTableId':_0x42c21a});}[_0xdefc56(0x14c)](_0x1c7b82,_0x26fe1f,_0x3731d3,_0x4ca2b9,_0x23c47f){const _0x36a1c3=_0xdefc56;this['_updateModelCache'](_0x1c7b82,_0x26fe1f,_0x3731d3,_0x23c47f),this[_0x36a1c3(0x330)](_0x3731d3,_0x4ca2b9);}[_0xdefc56(0x16b)](_0x5b1f8a,_0x2d5ec8,_0x2c1004){const _0x381753=_0xdefc56,_0x53b1d2=this[_0x381753(0x12d)](_0x5b1f8a);_0x53b1d2[_0x381753(0x23d)](_0x2c1004)[_0x381753(0x187)](_0x42c984=>{const _0x200c8d=_0x381753;_0x53b1d2[_0x200c8d(0x2d1)](_0x42c984);}),this[_0x381753(0x1f1)](_0x5b1f8a,_0x2c1004),this['_deleteModelCache'](_0x5b1f8a,_0x2d5ec8,_0x2c1004),this[_0x381753(0x3b4)](_0x2c1004);}[_0xdefc56(0x1ca)](_0x3cd84d,_0x4a4df8,_0xfbeca4,_0x159e91){const _0x16beb8=_0xdefc56;this[_0x16beb8(0x337)](_0x3cd84d,_0x4a4df8,_0xfbeca4,_0x159e91);}['getPivotTableConfig'](_0xcce384,_0x4837a4,_0x2bdc2c){const _0x5ec9c9=_0xdefc56;var _0x40d99e,_0x149ff3;const _0x4c6bc3=(_0x149ff3=(_0x40d99e=this[_0x5ec9c9(0x2d3)][_0x5ec9c9(0x2ba)](_0xcce384))==null?void 0x0:_0x40d99e[_0x5ec9c9(0x2ba)](_0x4837a4))==null?void 0x0:_0x149ff3['get'](_0x2bdc2c);if(_0x4c6bc3)return _0x4c6bc3;}['getPivotTableModelConfig'](_0x40746f,_0x24f30f,_0x47b29c){const _0x4a3b95=_0xdefc56;var _0x426745,_0x10251f;const _0x504f17=(_0x10251f=(_0x426745=this[_0x4a3b95(0x2d3)][_0x4a3b95(0x2ba)](_0x40746f))==null?void 0x0:_0x426745[_0x4a3b95(0x2ba)](_0x24f30f))==null?void 0x0:_0x10251f[_0x4a3b95(0x2ba)](_0x47b29c);if(_0x504f17)return _0x504f17[_0x4a3b95(0x1ce)];}['getPivotTableInstance'](_0x163eb6){const _0x2f5ff3=_0xdefc56;return this[_0x2f5ff3(0xd3)][_0x2f5ff3(0x2ba)](_0x163eb6);}['deleteUnitId'](_0x2f4999){const _0x2762bc=_0xdefc56;this[_0x2762bc(0x2d3)]['delete'](_0x2f4999);const _0x202895=this['_dataFieldManagerCollection'][_0x2762bc(0x2ba)](_0x2f4999);_0x202895&&(_0x202895[_0x2762bc(0x2e1)](),this[_0x2762bc(0x2cb)][_0x2762bc(0x170)](_0x2f4999)),this['_viewData']['delete'](_0x2f4999),this['needSameDeleteModel'][_0x2762bc(0x187)](_0x5ebff6=>{_0x5ebff6['deleteUnitId'](_0x2f4999);});}[_0xdefc56(0x21c)](_0x5b1a33,_0x5174be,_0x30b812,_0x1f06a0){const _0x39ba44=_0xdefc56;return this[_0x39ba44(0x12d)](_0x30b812['unitId'])['addCollectionByJSON'](_0x5b1a33,_0x5174be,_0x30b812,_0x1f06a0);}['createCollectionWithDataRange'](_0x1ecd81){const _0x16fe1d=_0xdefc56;return this[_0x16fe1d(0x12d)](_0x1ecd81[_0x16fe1d(0x329)])[_0x16fe1d(0x108)](_0x1ecd81);}[_0xdefc56(0x2dc)](_0x9c4aa8,_0x36c1d8,_0x55b75a){const _0x1b8425=_0xdefc56;this['getDataFieldManager'](_0x55b75a[_0x1b8425(0x329)])[_0x1b8425(0x2dc)](_0x9c4aa8,_0x36c1d8,_0x55b75a);}['removeDataField'](_0x2d6e5a,_0x5361ec){const _0x1042be=_0xdefc56;this[_0x1042be(0x12d)](_0x2d6e5a)['deleteDataField'](_0x5361ec);}['removeCollections'](_0x3933c5,_0x4efa03){const _0x554079=_0xdefc56;this[_0x554079(0x12d)](_0x3933c5)['removeCollectionImp'](_0x4efa03);}[_0xdefc56(0x336)](_0x2cdc89,_0x10fb3c){const _0x2f12e9=_0xdefc56;var _0x5f2bbf;return(_0x5f2bbf=this[_0x2f12e9(0x2d3)][_0x2f12e9(0x2ba)](_0x2cdc89))==null?void 0x0:_0x5f2bbf[_0x2f12e9(0x2ba)](_0x10fb3c);}['getTargetByPivotId'](_0x292bf9){const _0x3fe1e8=_0xdefc56;for(const [_0xbbc49c,_0x586960]of this[_0x3fe1e8(0x2d3)][_0x3fe1e8(0x114)]())for(const [_0x3d0de8,_0xb85cb9]of _0x586960[_0x3fe1e8(0x114)]())if(_0xb85cb9[_0x3fe1e8(0x18d)](_0x292bf9))return{'unitId':_0xbbc49c,'subUnitId':_0x3d0de8};return null;}[_0xdefc56(0x346)](_0x4fd623,_0x5860cf,_0x414be2,_0x3b1747){const _0x4486fd=_0xdefc56,_0x3aa07b=this[_0x4486fd(0x3bc)](_0x4fd623,_0x5860cf);_0x3b1747?_0x3aa07b[_0x4486fd(0x2e9)](_0x414be2,_0x3b1747):_0x3aa07b['delete'](_0x414be2),this[_0x4486fd(0x264)]['next']({'unitId':_0x4fd623,'subUnitId':_0x5860cf,'pivotTableId':_0x414be2});}[_0xdefc56(0x2e1)](){const _0x541306=_0xdefc56;super[_0x541306(0x2e1)]();}['getViewData'](_0x5bd94a,_0x248ded,_0x21fb2a){const _0x1a13eb=_0xdefc56;var _0x4a18e3,_0x36cff3;const _0x100c37=(_0x36cff3=(_0x4a18e3=this[_0x1a13eb(0x19b)][_0x1a13eb(0x2ba)](_0x5bd94a))==null?void 0x0:_0x4a18e3[_0x1a13eb(0x2ba)](_0x248ded))==null?void 0x0:_0x36cff3[_0x1a13eb(0x2ba)](_0x21fb2a);return _0x100c37||null;}['addDirtyPivotTable'](_0x4c0dce){const _0x2e468d=_0xdefc56;this[_0x2e468d(0x1fa)](_0x4c0dce);}[_0xdefc56(0x1fa)](_0x863e23){const _0x131fa0=_0xdefc56,{token:_0x38e787,unitId:_0x7dfa0c,subUnitId:_0x4ed996}=_0x863e23,_0x12708c=_0x7dfa0c+'-'+_0x4ed996+'-'+_0x38e787;this['_queryingMap'][_0x131fa0(0x2ba)](_0x12708c)&&clearTimeout(this['_queryingMap'][_0x131fa0(0x2ba)](_0x12708c));const _0x48da13=setTimeout(()=>{const _0x3fe351=_0x131fa0;this[_0x3fe351(0xd8)](_0x863e23),this[_0x3fe351(0x3d3)]['delete'](_0x12708c);},$o);this['_queryingMap'][_0x131fa0(0x2e9)](_0x12708c,_0x48da13);}[_0xdefc56(0xd8)](_0xdcf7a7){const _0xa8525b=_0xdefc56,{unitId:_0x52778a,subUnitId:_0x1ecaa6,token:_0x19d487,type:_0x88a24d,pivotConfig:_0x44e8ef}=_0xdcf7a7,_0x2765c2=this['getPivotTableInstance'](_0x19d487),_0x2dd8d4=_0x2765c2==null?void 0x0:_0x2765c2[_0xa8525b(0x370)](),_0x2beb7a=_0x44e8ef!=null?_0x44e8ef:this['getPivotTableConfig'](_0x52778a,_0x1ecaa6,_0x19d487);_0x2beb7a&&(_0x2beb7a['isEmpty']=!!(_0x2765c2!=null&&_0x2765c2[_0xa8525b(0x245)]())),(_0x2dd8d4||_0x88a24d===k[_0xa8525b(0x2f7)])&&this['updateView'](_0x52778a,_0x1ecaa6,_0x88a24d,_0x19d487,_0x2dd8d4,_0x2beb7a,this[_0xa8525b(0x12d)](_0x52778a)[_0xa8525b(0x3a4)]());}['toJSON'](_0x59ed08){const _0x3dace4=_0xdefc56,_0x280160={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x3dace4(0x12d)](_0x59ed08)&&(_0x280160[_0x3dace4(0x3bd)][_0x59ed08]=this[_0x3dace4(0x12d)](_0x59ed08)[_0x3dace4(0x3a4)]()),this[_0x3dace4(0x2d3)][_0x3dace4(0x2ba)](_0x59ed08)){_0x280160['pivotTableConfigs'][_0x59ed08]={};const _0x36678e=this[_0x3dace4(0x2d3)][_0x3dace4(0x2ba)](_0x59ed08);_0x36678e!=null&&_0x36678e[_0x3dace4(0x25c)]&&[..._0x36678e[_0x3dace4(0x2e2)]()][_0x3dace4(0x187)](_0x3a66ed=>{const _0x39645d=_0x3dace4,_0xcd4ce3=_0x36678e[_0x39645d(0x2ba)](_0x3a66ed);_0xcd4ce3!=null&&_0xcd4ce3[_0x39645d(0x25c)]&&(_0x280160[_0x39645d(0x185)][_0x59ed08][_0x3a66ed]={},[..._0xcd4ce3[_0x39645d(0x2e2)]()]['forEach'](_0x1c456c=>{const _0x11d330=_0x39645d,_0x29eaa7=_0xcd4ce3[_0x11d330(0x2ba)](_0x1c456c);_0x29eaa7&&(_0x280160[_0x11d330(0x185)][_0x59ed08][_0x3a66ed][_0x1c456c]=_0x29eaa7);}));});}return _0x280160;}[_0xdefc56(0xe6)](_0xfa52c2){const _0x9def7f=_0xdefc56;var _0x282b35;const {dataFieldManagerConfig:_0x16ad87,pivotTableConfigs:_0x50b426}=_0xfa52c2;_0x16ad87&&Object['keys'](_0x16ad87)[_0x9def7f(0x187)](_0x410a48=>{const _0x185582=_0x9def7f;this[_0x185582(0x12d)](_0x410a48)[_0x185582(0xe6)](_0x16ad87[_0x410a48]);});const _0x94cf24=[];if(_0x50b426){const _0x6aab73=(_0x282b35=this['_injector']['get'](v[_0x9def7f(0x37d)])[_0x9def7f(0x11d)](ue[_0x9def7f(0x36a)]))!=null?_0x282b35:{},{ls:_0x5074fb,pbk:_0x30ffae}=_0x6aab73,_0x4d67db=St(It,_0x5074fb,_0x30ffae)[_0x9def7f(0x10f)];Object[_0x9def7f(0x2e2)](_0x50b426)[_0x9def7f(0x187)](_0x51a9f1=>{const _0x103c4c=_0x9def7f;let _0x4f1df6=0x0;const _0x44d500=_0x50b426[_0x51a9f1];Object[_0x103c4c(0x2e2)](_0x44d500)[_0x103c4c(0x187)](_0x3d9de9=>{const _0x2100d4=_0x103c4c,_0x2ea428=_0x44d500[_0x3d9de9];Object[_0x2100d4(0x2e2)](_0x2ea428)[_0x2100d4(0x187)](_0x4c7427=>{const _0xe9ebf5=_0x2100d4,_0x33398b=_0x2ea428[_0x4c7427];if(_0x33398b){if(_0x4f1df6>=_0x4d67db)return;_0x4f1df6++;const _0x27451d=this[_0xe9ebf5(0x12d)](_0x51a9f1),_0x164f31=_0x27451d['collections'][_0x4c7427],_0x88428e=_0x164f31[_0xe9ebf5(0x284)]();let _0x2e97ca=0x0;const _0x41bfd7=[];for(const _0x4f7a3c of _0x88428e){const _0x585fd5=_0x164f31[_0xe9ebf5(0x353)](_0x4f7a3c);if(p[_0xe9ebf5(0x395)](_0x585fd5)){const _0x266035=_0x585fd5[_0xe9ebf5(0x318)](),_0x24801a=_0x164f31[_0xe9ebf5(0x353)](_0x266035);_0x24801a&&_0x41bfd7['push']([_0x585fd5,_0x24801a]);continue;}_0x27451d['refreshDataField'](_0x4f7a3c,_0x33398b[_0xe9ebf5(0x362)],_0x2e97ca),_0x2e97ca++;}_0x41bfd7['forEach'](([_0x3b217f,_0xcb0938])=>{_0x3b217f['refreshGroupField'](_0xcb0938);});const _0xd6d4e3=new p[(_0xe9ebf5(0x195))](_0x164f31);_0xd6d4e3[_0xe9ebf5(0xe6)](_0x33398b[_0xe9ebf5(0x1ce)]),this[_0xe9ebf5(0x14c)](_0x51a9f1,_0x3d9de9,_0x4c7427,_0xd6d4e3,_0x33398b);const _0x4344f2=_0xd6d4e3[_0xe9ebf5(0x370)]();_0x94cf24[_0xe9ebf5(0x12c)]({'unitId':_0x51a9f1,'subUnitId':_0x3d9de9,'pivotTableId':_0x4c7427,'view':_0x4344f2[_0xe9ebf5(0x3a4)](),'pivotConfig':_0x33398b,'type':k[_0xe9ebf5(0x1ff)]});const _0x4508ad=!!_0xd6d4e3[_0xe9ebf5(0x245)](),_0x5c486c={'view':_0x4344f2,'pivotTableId':_0x4c7427,'textInfo':this[_0xe9ebf5(0x369)](),'isEmpty':_0x4508ad,'targetCellInfo':_0x33398b['targetCellInfo']};this[_0xe9ebf5(0x218)](_0x5c486c,!0x1);}});});});}_0x16ad87&&Object[_0x9def7f(0x2e2)](_0x16ad87)['forEach'](_0x1ed0e7=>{const _0x31f515=_0x9def7f,_0x2b6a23=this[_0x31f515(0x12d)](_0x1ed0e7);this[_0x31f515(0x215)]['next'](_0x2b6a23[_0x31f515(0x104)]);}),this[_0x9def7f(0x2bd)][_0x9def7f(0x3b5)](ot['id'],{'batch':_0x94cf24,'collectionConfig':_0x16ad87},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x59782e=_0xdefc56;this[_0x59782e(0x1c8)](this['_resourceManagerService'][_0x59782e(0x193)]({'toJson':_0x30c397=>JSON['stringify'](this[_0x59782e(0x3a4)](_0x30c397)),'parseJson':_0x3131b1=>{const _0xccaa4d=_0x59782e;if(!_0x3131b1)return{};try{return JSON[_0xccaa4d(0xf2)](_0x3131b1);}catch{return{};}},'businesses':[v[_0x59782e(0x22e)][_0x59782e(0x2db)]],'pluginName':Ct,'onLoad':(_0x16c045,_0x590b90)=>{const _0x38e1ce=_0x59782e;this[_0x38e1ce(0xe6)](_0x590b90);},'onUnLoad':_0x5ef302=>{const _0x51d029=_0x59782e;this[_0x51d029(0x221)](_0x5ef302);}}));}},exports[_0xdefc56(0xd6)]=en([ye(0x0,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)])),ye(0x1,v[_0xdefc56(0x20e)]),ye(0x2,v[_0xdefc56(0x12f)](v['LifecycleService'])),ye(0x3,v[_0xdefc56(0x37d)]),ye(0x4,v[_0xdefc56(0x2e0)]),ye(0x5,v[_0xdefc56(0x12f)](v[_0xdefc56(0x333)]))],exports[_0xdefc56(0xd6)]);const tn={0x0:{0x0:{'v':_0xdefc56(0x20d),'s':X}},0x2:{0x1:{'v':'','s':X},0x2:{'v':'','s':X},0x3:{'v':_0xdefc56(0x178),'s':X},0x4:{'v':'','s':X},0x5:{'v':'','s':X}},0x3:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x4:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x5:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x6:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x7:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x8:{0x0:{'v':_0xdefc56(0x35a),'s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':_0xdefc56(0xb6),'s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x9:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xa:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xb:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xc:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xd:{0x0:{'v':'','s':X},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}}},Tt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},Ht=(_0x15e58f,_0x3bb0b3)=>{const _0x3551f1=_0xdefc56,_0x106b4d=new v[(_0x3551f1(0x19d))](),_0x515ce4=new v[(_0x3551f1(0x19d))](tn),{row:_0x4ffa46,col:_0x4207ed}=_0x3bb0b3;_0x515ce4[_0x3551f1(0x37b)]((_0x46a856,_0x2bb612,_0x208dfa)=>{const _0x494e32=_0x3551f1;let _0x447248='';_0x208dfa['v']===_0x494e32(0x20d)?_0x447248=_0x15e58f[_0x494e32(0x20d)]:_0x208dfa['v']===_0x494e32(0x35a)?_0x447248=_0x15e58f[_0x494e32(0x35a)]:_0x208dfa['v']===_0x494e32(0x178)?_0x447248=_0x15e58f['column']:_0x208dfa['v']===_0x494e32(0xb6)&&(_0x447248=_0x15e58f[_0x494e32(0xb6)]),_0x106b4d[_0x494e32(0x1d2)](_0x46a856+_0x4ffa46,_0x2bb612+_0x4207ed,{..._0x208dfa,'v':_0x447248});});const _0x1c67bb=v[_0x3551f1(0xbe)]['deepClone'](Tt);return Object[_0x3551f1(0x2e2)](Tt)[_0x3551f1(0x187)](_0x52a60b=>{const _0x2f6486=_0x3551f1;_0x1c67bb[_0x52a60b]=Tt[_0x52a60b][_0x2f6486(0x2e7)](_0x2fb233=>({..._0x2fb233,'startRow':_0x2fb233['startRow']+_0x4ffa46,'endRow':_0x2fb233[_0x2f6486(0x3ab)]+_0x4ffa46,'startColumn':_0x2fb233['startColumn']+_0x4207ed,'endColumn':_0x2fb233['endColumn']+_0x4207ed}));}),{'matrixCache':_0x106b4d,'rangesCache':_0x1c67bb};};function on(_0x7c583,_0x4a94ae){const _0x131d1f=_0xdefc56;let _0x38e045='';const _0x152d3c=this[_0x131d1f(0x369)]();switch(_0x4a94ae){case p['PivotSubtotalTypeEnum'][_0x131d1f(0x148)]:_0x38e045=_0x152d3c[_0x131d1f(0xe9)]+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0x10f)]:_0x38e045=_0x152d3c[_0x131d1f(0x22d)]+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0x3ca)]:_0x38e045=_0x152d3c[_0x131d1f(0x3a3)]+_0x7c583;break;case p[_0x131d1f(0x325)]['max']:_0x38e045=_0x152d3c[_0x131d1f(0x3a7)]+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0x22a)]:_0x38e045=_0x152d3c[_0x131d1f(0xc1)]+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0x28c)]:_0x38e045=_0x152d3c[_0x131d1f(0x16d)]+_0x7c583;break;case p[_0x131d1f(0x325)]['stdDev']:_0x38e045=_0x152d3c['sheets-pivot.stdDevName']+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0xb2)]:_0x38e045=_0x152d3c[_0x131d1f(0x1d3)]+_0x7c583;break;case p[_0x131d1f(0x325)]['sum']:_0x38e045=_0x152d3c['sheets-pivot.sumName']+_0x7c583;break;case p[_0x131d1f(0x325)][_0x131d1f(0x2c6)]:_0x38e045=_0x152d3c['sheets-pivot.varName']+_0x7c583;break;case p['PivotSubtotalTypeEnum'][_0x131d1f(0x2f0)]:_0x38e045=_0x152d3c[_0x131d1f(0x396)]+_0x7c583;break;default:_0x38e045=_0x7c583;break;}return _0x38e045;}function Yt(_0x43f41f,_0x48dd5c,_0x44c2bd,_0x4d1918,_0x1ae7d6){const _0x4630a4=_0xdefc56;var _0x10dd7d,_0x907da5,_0x240d86,_0x448f00,_0x535643;const _0xf0d6da=v[_0x4630a4(0x259)](_0x43f41f,_0x48dd5c),{rangesInfo:_0xcd230e,areaInfo:_0x4bb7f6,headerMap:_0x123e38}=_0x1ae7d6;if(!_0xcd230e||!_0x4bb7f6||!_0x123e38)return;const _0x13af3c=Object['keys'](_0xcd230e)['find'](_0x3df1bf=>_0xcd230e[_0x3df1bf][_0x4630a4(0x1bf)](_0x39b512=>v[_0x4630a4(0x350)][_0x4630a4(0x1d8)](_0x39b512,_0xf0d6da))),_0xb38082=_0x4bb7f6;let _0xefd0d9,_0x37fe8b,_0x16455d;if(_0x13af3c===_0x4630a4(0x307))_0xefd0d9=(_0x10dd7d=_0xb38082==null?void 0x0:_0xb38082[_0x4630a4(0xfe)])==null?void 0x0:_0x10dd7d[_0x43f41f],_0x37fe8b=(_0x907da5=_0x123e38==null?void 0x0:_0x123e38[_0x4630a4(0x338)])==null?void 0x0:_0x907da5[_0x48dd5c],_0x16455d=_0x37fe8b==null?void 0x0:_0x37fe8b['tableFieldId'];else{if(_0x13af3c==='colRanges')_0xefd0d9=(_0x240d86=_0xb38082==null?void 0x0:_0xb38082['colInfo'])==null?void 0x0:_0x240d86[_0x48dd5c],_0x37fe8b=(_0x448f00=_0x123e38[_0x4630a4(0x3a2)])==null?void 0x0:_0x448f00[_0x43f41f+0x1+_0x48dd5c-_0xcd230e[_0x4630a4(0x302)][0x0][_0x4630a4(0x142)]],_0x16455d=_0x37fe8b==null?void 0x0:_0x37fe8b['tableFieldId'];else{if(_0x13af3c===_0x4630a4(0x12e))_0xefd0d9=(_0x535643=_0xb38082==null?void 0x0:_0xb38082[_0x4630a4(0x252)])==null?void 0x0:_0x535643[_0x48dd5c],_0x16455d=_0xefd0d9==null?void 0x0:_0xefd0d9[_0x4630a4(0xcb)];else{if(_0x13af3c==='pageRanges'){const _0x316ab1=_0x44c2bd==null?void 0x0:_0x44c2bd['fi'];_0x316ab1!==void 0x0&&(_0x16455d=_0x4d1918[_0x4630a4(0x37c)](_0x316ab1));}}}}return{'filterId':_0x16455d,'info':_0xefd0d9,'data':_0x44c2bd,'headerInfo':_0x37fe8b};}function Qt(_0xcc8b68,_0x6b07f4,_0x26b7c4){const _0x2dea92=_0xdefc56,_0x284f07=_0xcc8b68[_0x2dea92(0x296)],_0x29714=_0x284f07['getFieldIds'](),_0x4c3a94=new Set();_0xcc8b68[_0x2dea92(0x273)](_0x458a8b=>{_0x4c3a94['add'](_0x458a8b['dataFieldId']);});const _0x2b5923=_0x29714['map'](_0x3c38e4=>{const _0x27802f=_0x2dea92,_0x4dd3e8=_0x284f07[_0x27802f(0x353)](_0x3c38e4);return{'checked':_0x4c3a94[_0x27802f(0x18d)](_0x3c38e4),'dataFieldId':_0x4dd3e8['id'],'id':_0x4dd3e8['id'],'name':_0x284f07[_0x27802f(0x239)](_0x4dd3e8['id']),'type':_0x4dd3e8[_0x27802f(0x28f)](),'pivotTableId':_0x6b07f4};}),_0x1947a7=[];_0xcc8b68[_0x2dea92(0x10e)](p[_0x2dea92(0x143)]['Row'],_0x5be185=>{const _0x1fbbe5=_0x2dea92;_0x1947a7[_0x1fbbe5(0x12c)]({'dataFieldId':_0x5be185[_0x1fbbe5(0x292)],'tableFieldId':_0x5be185[_0x1fbbe5(0x36b)](),'displayName':_0x5be185[_0x1fbbe5(0x239)]()});});const _0x3aee78=[];_0xcc8b68[_0x2dea92(0x10e)](p['PivotTableFiledAreaEnum'][_0x2dea92(0x266)],_0x4e7d76=>{const _0x2bcd75=_0x2dea92;_0x3aee78[_0x2bcd75(0x12c)]({'dataFieldId':_0x4e7d76[_0x2bcd75(0x292)],'tableFieldId':_0x4e7d76[_0x2bcd75(0x36b)](),'displayName':_0x4e7d76[_0x2bcd75(0x239)]()});});const _0x28a38b=[];if(_0xcc8b68[_0x2dea92(0x10e)](p['PivotTableFiledAreaEnum']['Value'],_0x4c8b73=>{const _0xd9a13c=_0x2dea92;_0x28a38b[_0xd9a13c(0x12c)]({'dataFieldId':_0x4c8b73[_0xd9a13c(0x292)],'tableFieldId':_0x4c8b73['getId'](),'displayName':_0x4c8b73['getDisplayName'](),'format':_0x4c8b73[_0xd9a13c(0xdb)](),'subTotalType':_0x4c8b73[_0xd9a13c(0x16f)]()});}),_0x28a38b[_0x2dea92(0xd0)]>0x1){const _0x69abbd=_0xcc8b68['getValueIndex']();(_0xcc8b68[_0x2dea92(0x20b)]()?_0x3aee78:_0x1947a7)[_0x2dea92(0xf1)](_0x69abbd,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':_0x2dea92(0x265)});}const _0x10eac3=[];_0xcc8b68['iterateFieldByArea'](p[_0x2dea92(0x143)][_0x2dea92(0x14d)],_0x4942e7=>{const _0x2d2b57=_0x2dea92;_0x10eac3['push']({'dataFieldId':_0x4942e7[_0x2d2b57(0x292)],'tableFieldId':_0x4942e7[_0x2d2b57(0x36b)](),'displayName':_0x4942e7[_0x2d2b57(0x239)]()});});const _0x57a108=_0x26b7c4[_0x2dea92(0x362)];return{'sourceList':_0x2b5923,'sourceRange':_0x57a108,'rowFields':_0x1947a7,'columnFields':_0x3aee78,'valueFields':_0x28a38b,'filterFields':_0x10eac3,'positionInfo':_0x26b7c4[_0x2dea92(0x29c)]};}function Rt(_0x1495d2,_0x5a288b,_0x41be62='',_0x511a86={}){const _0x22b876=_0xdefc56,_0x13dd58=_0x1495d2[_0x22b876(0x2ba)](v[_0x22b876(0x180)]);for(const _0x48768f in _0x5a288b)if(Object['prototype'][_0x22b876(0x341)]['call'](_0x5a288b,_0x48768f)){const _0x26d9df=_0x41be62?_0x41be62+'.'+_0x48768f:_0x48768f;typeof _0x5a288b[_0x48768f]==_0x22b876(0x1eb)&&_0x5a288b[_0x48768f]!==null&&!Array[_0x22b876(0x116)](_0x5a288b[_0x48768f])?Rt(_0x1495d2,_0x5a288b[_0x48768f],_0x26d9df,_0x511a86):_0x511a86[_0x26d9df]=_0x13dd58['t'](_0x26d9df);}return _0x511a86;}const nt=_0x5cf91c=>{const _0xe77e93=_0xdefc56;if(!_0x5cf91c)return[];const {rowRanges:_0x38c57c,colRanges:_0x2407f6,cornerRanges:_0x46765e,dataRanges:_0x2d650e,pageRanges:_0x74bb3d}=_0x5cf91c,_0x1c3956=[..._0x2407f6,..._0x38c57c,..._0x2d650e,..._0x46765e][_0xe77e93(0x20d)](_0x37bbea=>_0x37bbea[_0xe77e93(0x3be)]>=0x0&&_0x37bbea['startColumn']>=0x0&&_0x37bbea[_0xe77e93(0x3ab)]>=0x0&&_0x37bbea[_0xe77e93(0x345)]>=0x0);let _0x360423=Number[_0xe77e93(0x33b)],_0x301ef2=Number[_0xe77e93(0x2f5)],_0x516c66=Number['MAX_SAFE_INTEGER'],_0x577709=Number['MIN_SAFE_INTEGER'];for(let _0x6db513=0x0;_0x6db513<_0x1c3956[_0xe77e93(0xd0)];_0x6db513++)_0x360423=Math[_0xe77e93(0x22a)](_0x360423,_0x1c3956[_0x6db513]['startRow']),_0x301ef2=Math[_0xe77e93(0x1ef)](_0x301ef2,_0x1c3956[_0x6db513][_0xe77e93(0x3ab)]),_0x516c66=Math[_0xe77e93(0x22a)](_0x516c66,_0x1c3956[_0x6db513]['startColumn']),_0x577709=Math[_0xe77e93(0x1ef)](_0x577709,_0x1c3956[_0x6db513]['endColumn']);return[..._0x74bb3d,{'startRow':_0x360423,'endRow':_0x301ef2,'startColumn':_0x516c66,'endColumn':_0x577709}];};function nn(_0x57a380,_0x2a3150){const _0x1dc59b=_0xdefc56,_0x5efeb7=_0x2a3150[_0x1dc59b(0x147)][_0x1dc59b(0x352)],{pivotTableId:_0x4cb6d1,unitId:_0x2e2214,subUnitId:_0x3eccf1}=_0x2a3150;if(!_0x5efeb7)return;const _0xf592c9=_0x57a380[_0x1dc59b(0x2ba)](exports[_0x1dc59b(0xd6)]),_0x38667b=_0xf592c9[_0x1dc59b(0x388)](_0x4cb6d1),_0x88c82=_0xf592c9[_0x1dc59b(0x31d)](_0x2e2214,_0x3eccf1,_0x4cb6d1);if(!_0x38667b||!_0x88c82)return;const _0x19182c=_0x38667b[_0x1dc59b(0x326)](_0x5efeb7[_0x1dc59b(0x115)]);if(!(_0x19182c!=null&&_0x19182c[_0x1dc59b(0xd0)]))return;const _0x15ff32=_0x88c82[_0x1dc59b(0x362)],{unitId:_0x3fa622,subUnitId:_0x3e5da0,range:_0x30f289}=_0x15ff32;let _0x4dc145=0x0;const _0x4e037b=_0x38667b[_0x1dc59b(0x296)][_0x1dc59b(0x284)]()[_0x1dc59b(0x3c5)]((_0x348fed,_0x282a12)=>{const _0x22192b=_0x1dc59b;var _0x3b5c8f;const _0x419a89=(_0x3b5c8f=_0x38667b[_0x22192b(0xc0)](_0x282a12))==null?void 0x0:_0x3b5c8f[_0x22192b(0xe1)]();return _0x419a89&&(_0x348fed[String(_0x4dc145)]=_0x419a89),_0x4dc145++,_0x348fed;},{});return{'indexes':_0x19182c,'range':_0x30f289,'sourceUnitId':_0x3fa622,'sourceSubUnitId':_0x3e5da0,'formatMap':_0x4e037b};}function Et(_0x4c89d2,_0x7c7844){const _0x27afc1=_0xdefc56;if(!_0x4c89d2||!_0x7c7844)return!0x0;const _0x6468a5=ue[_0x27afc1(0x106)](qt,Kt),_0x504a5b=new Function(_0x27afc1(0x3ce)+_0x6468a5)()(_0x4c89d2,_0x7c7844)[_0x27afc1(0x135)],_0x5117f8=ue[_0x27afc1(0x1cb)](_0x504a5b,'sf',Gt);return!((_0x504a5b==null?void 0x0:_0x504a5b['rt'])===ue[_0x27afc1(0x25a)][_0x27afc1(0x1e1)]&&!_0x5117f8);}function St(_0x15f6ed,_0x52d968,_0x4dc4bf){const _0x6864a4=_0xdefc56,_0x4f749e={'count':_0x15f6ed,'timeValid':!0x1};if(!_0x52d968||!_0x4dc4bf)return _0x4f749e;const _0x2c74bd=ue['unshiftString'](qt,Kt),_0x2d9df7=new Function('return\x20'+_0x2c74bd)()(_0x52d968,_0x4dc4bf);if(_0x2d9df7!=null&&_0x2d9df7['valid']){const _0x42531b=_0x2d9df7[_0x6864a4(0x135)],_0x3b53ad=ue[_0x6864a4(0x1cb)](_0x42531b,'sf',Gt);return{'count':ue['getSheetFeatureLimit'](_0x42531b,_0x3b53ad,_0x6864a4(0xed),_0x15f6ed,_0x15f6ed,0x0),'timeValid':_0x3b53ad};}return _0x4f749e;}function Ut(_0x192e5d,_0x686eca,_0x215788,_0x1e7218){const _0xeb8f0e=_0xdefc56,_0x1ce167={'subUnitId':_0x215788,'unitId':_0x686eca,'cellValue':V[_0xeb8f0e(0x2d9)](_0x1e7218)},_0x34a0f8=V[_0xeb8f0e(0x3b7)](_0x192e5d,_0x1ce167);let _0xe1ecd6=!0x1;return new v[(_0xeb8f0e(0x19d))](_0x34a0f8[_0xeb8f0e(0xb8)])[_0xeb8f0e(0x37b)]((_0x39c296,_0x523fd6,_0x569683)=>{const _0x2c8522=_0xeb8f0e;if(!_0xe1ecd6&&_0x569683&&(_0x569683[_0x2c8522(0x285)]||_0x569683['f']||_0x569683['p']||_0x569683['s']||_0x569683['si']||_0x569683['t']||_0x569683['v']))return _0xe1ecd6=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':V[_0xeb8f0e(0x1f5)]['id'],'params':_0x34a0f8},'setRangeValueRedoMutation':{'id':V[_0xeb8f0e(0x1f5)]['id'],'params':_0x1ce167},'shouldClear':_0xe1ecd6};}function Xt(_0x919930){const {row:_0x24f1bf,col:_0x5a96ae}=_0x919930,_0x53b6d1={'startRow':_0x24f1bf,'endRow':_0x24f1bf,'startColumn':_0x5a96ae,'endColumn':_0x5a96ae},_0x4913d4={'startRow':_0x24f1bf+0x2,'endRow':_0x24f1bf+0xe,'startColumn':_0x5a96ae,'endColumn':_0x5a96ae+0x6};return[_0x53b6d1,_0x4913d4];}function an(_0x4eb57d,_0x1c99f5,_0x33f105){const _0x529ed5=_0xdefc56,{cornerView:_0x262a09,rowView:_0x44912f,colView:_0xd4ee0,pageView:_0x4e6bd8}=_0x4eb57d,{row:_0x544982,col:_0x504f68}=_0x1c99f5;if(_0x33f105)return{'rowCount':jo+_0x544982,'colCount':Go+_0x504f68};const _0x4aef5f=_0x4e6bd8['lastRow']>-0x1?_0x4e6bd8['lastRow']+0x1:0x0,_0x306dc0=_0x4e6bd8[_0x529ed5(0x2a8)]>-0x1?_0x4e6bd8['lastCol']:0x0,_0x59d970=_0x544982+_0x4aef5f+(_0x4aef5f?0x1:0x0)+_0x262a09[_0x529ed5(0x381)]+_0x44912f[_0x529ed5(0x381)],_0x2cd797=_0x504f68+_0x306dc0,_0x369723=_0x504f68+_0x262a09[_0x529ed5(0x2f2)]+_0xd4ee0[_0x529ed5(0x2f2)],_0x21257f=Math[_0x529ed5(0x1ef)](_0x2cd797,_0x369723);return{'rowCount':_0x59d970,'colCount':_0x21257f};}function le(_0x4c72c0,_0x5277f7,_0x533317,_0x4b75a3){const _0x1d9a7a=_0xdefc56,{row:_0x4112f9,col:_0x30d64d,unitId:_0x419dd5,subUnitId:_0x4937f9}=_0x533317,_0x428a19=an(_0x5277f7,{'row':_0x4112f9,'col':_0x30d64d},_0x4b75a3),_0x8c49bc=_0x4c72c0[_0x1d9a7a(0x2ba)](v['IUniverInstanceService']),_0x45a079=V['getSheetCommandTarget'](_0x8c49bc,{'unitId':_0x419dd5,'subUnitId':_0x4937f9}),_0x5ae47d=[],_0x36906d=[];if(!_0x45a079)return{'undos':_0x36906d,'redos':_0x5ae47d};const {worksheet:_0x16683e}=_0x45a079,_0x360988=_0x16683e[_0x1d9a7a(0x1dd)](),_0x27d419=_0x16683e[_0x1d9a7a(0x23c)]();return _0x360988<_0x428a19['rowCount']&&(_0x5ae47d['push']({'id':V[_0x1d9a7a(0x323)]['id'],'params':{'unitId':_0x419dd5,'subUnitId':_0x4937f9,'range':{'startRow':_0x360988,'endRow':_0x428a19[_0x1d9a7a(0x381)]-0x1,'startColumn':0x0,'endColumn':_0x27d419-0x1}}}),_0x36906d['push']({'id':V[_0x1d9a7a(0x31a)]['id'],'params':{'unitId':_0x419dd5,'subUnitId':_0x4937f9,'range':{'startRow':_0x360988,'endRow':_0x428a19[_0x1d9a7a(0x381)]-0x1,'startColumn':0x0,'endColumn':_0x27d419-0x1}}})),_0x27d419<_0x428a19[_0x1d9a7a(0x2f2)]&&(_0x5ae47d[_0x1d9a7a(0x12c)]({'id':V[_0x1d9a7a(0x109)]['id'],'params':{'unitId':_0x419dd5,'subUnitId':_0x4937f9,'range':{'startRow':0x0,'endRow':_0x360988-0x1,'startColumn':_0x27d419,'endColumn':_0x428a19[_0x1d9a7a(0x2f2)]-0x1}}}),_0x36906d[_0x1d9a7a(0x12c)]({'id':V[_0x1d9a7a(0xc5)]['id'],'params':{'unitId':_0x419dd5,'subUnitId':_0x4937f9,'range':{'startRow':0x0,'endRow':_0x360988-0x1,'startColumn':_0x27d419,'endColumn':_0x428a19['colCount']-0x1}}})),{'undos':_0x36906d,'redos':_0x5ae47d};}function sn(_0x54d2da){const _0x56fcd4=_0xdefc56;let _0x17b433=0x0;for(let _0x5b1fa0=0x0;_0x5b1fa0<_0x54d2da[_0x56fcd4(0xd0)];_0x5b1fa0++){const _0x411f1b=_0x54d2da['charCodeAt'](_0x5b1fa0);_0x411f1b>=0x4e00&&_0x411f1b<=0x9fff||_0x411f1b>=0x3000&&_0x411f1b<=0x303f||_0x411f1b>=0xff00&&_0x411f1b<=0xffef?_0x17b433+=0x2:_0x17b433+=0x1;}return _0x17b433;}function Bt(_0x5775b1,_0x23f0a5,_0x599189,_0x3a9e76){const _0x228dfb=_0xdefc56;var _0x3eeea9,_0x66959a,_0x26b264,_0x4f925e;const {rowCount:_0x533eaa,colCount:_0x23f969,headerMap:_0x3e6d58}=_0x5775b1,_0x2c5e6a=0x64,_0x1c6ca9=Math[_0x228dfb(0x22a)](_0x533eaa,_0x2c5e6a),_0x50eabc=Math[_0x228dfb(0x22a)](_0x23f969,_0x2c5e6a);let _0x17ddfe='',_0x658c00=0x0;for(let _0x478c1f=0x0;_0x478c1f<_0x1c6ca9;_0x478c1f++)for(let _0x38918a=0x0;_0x38918a<_0x50eabc;_0x38918a++){const _0x5ead5={...(_0x66959a=(_0x3eeea9=_0x5775b1[_0x228dfb(0x138)])==null?void 0x0:_0x3eeea9[_0x478c1f])==null?void 0x0:_0x66959a[_0x38918a]},_0x57fafa=(_0x26b264=_0x3e6d58[_0x478c1f])==null?void 0x0:_0x26b264[_0x228dfb(0xcb)],_0x1cc7e8=_0x3a9e76[_0x57fafa];let _0x3329de=_0x5775b1[_0x228dfb(0x32b)](_0x478c1f,_0x38918a);if(_0x5ead5){const _0x1b3d85=_0x599189?_0x38918a===0x0&&((_0x4f925e=_0x5775b1[_0x228dfb(0x30d)](_0x38918a+0x1))==null?void 0x0:_0x4f925e[_0x228dfb(0x17b)]):!0x1;_0x3329de=De(_0x5ead5,_0x1b3d85,_0x1cc7e8,_0x23f0a5);}if(_0x3329de!==void 0x0){const _0x36c237=sn(String(_0x3329de));_0x658c00<_0x36c237&&(_0x17ddfe=String(_0x3329de),_0x658c00=_0x36c237);}}return _0x17ddfe;}function rn(_0x4e58ba){const _0x5453e9=_0xdefc56,{rowCount:_0x12071a,colCount:_0x5c5e41}=_0x4e58ba;let _0x1c341e='',_0x5b67aa=0x0;for(let _0x20f089=_0x12071a-0x1;_0x20f089>0x0&&_0x20f089>_0x12071a-0x3;_0x20f089--)for(let _0x140b59=0x0;_0x140b59<_0x5c5e41;_0x140b59++){const _0x28827b=_0x4e58ba['getValue'](_0x20f089,_0x140b59);if(_0x28827b!==void 0x0){const _0x1b8fc0=String(_0x28827b)[_0x5453e9(0xd0)];_0x5b67aa<_0x1b8fc0&&(_0x1c341e=String(_0x28827b),_0x5b67aa=_0x1b8fc0);}}return _0x1c341e;}function ln(_0x138d21){const _0x2a16ed=_0xdefc56,{rowCount:_0x5cf761,colCount:_0x5a89ef}=_0x138d21;let _0x117847='',_0x518220=0x0;for(let _0xc503b0=0x0;_0xc503b0<_0x5cf761;_0xc503b0++)for(let _0x14356a=0x0;_0x14356a<_0x5a89ef;_0x14356a++){const _0x534a5e=_0x138d21[_0x2a16ed(0x32b)](_0xc503b0,_0x14356a);if(_0x534a5e!==void 0x0){const _0x50f5e1=String(_0x534a5e)[_0x2a16ed(0xd0)];_0x518220<_0x50f5e1&&(_0x117847=String(_0x534a5e),_0x518220=_0x50f5e1);}}return _0x117847;}function cn(_0x4c6bfa,_0x47f607){const _0x45425c=_0xdefc56,{rowFields:_0x3f34bc,columnFields:_0x5b5184,valueFields:_0x54c624,filterFields:_0x559dd5,dimension:_0x207aeb,measure:_0xcf1e57}=_0x47f607;for(const _0x216987 of _0x3f34bc){const _0x40e83c=_0x207aeb[_0x216987];_0x40e83c&&_0x4c6bfa[_0x45425c(0xc0)](_0x40e83c[_0x45425c(0x292)])&&(_0x4c6bfa[_0x45425c(0x1a1)](_0x40e83c[_0x45425c(0x292)],p['PivotTableFiledAreaEnum'][_0x45425c(0x21f)],void 0x0,_0x216987),_0x40e83c['displayName']&&_0x4c6bfa[_0x45425c(0x344)](_0x40e83c['id'],_0x40e83c['displayName']),_0x40e83c[_0x45425c(0x11e)]&&_0x4c6bfa[_0x45425c(0xf6)](_0x40e83c['id'],_0x40e83c['sortInfo']),_0x40e83c[_0x45425c(0x378)]&&_0x4c6bfa[_0x45425c(0xfc)](_0x40e83c['id'],_0x40e83c[_0x45425c(0x378)]));}for(const _0x58512d of _0x5b5184){const _0x5375b2=_0x207aeb[_0x58512d];_0x5375b2&&_0x4c6bfa['getDataFieldByDataFieldId'](_0x5375b2[_0x45425c(0x292)])&&(_0x4c6bfa[_0x45425c(0x1a1)](_0x5375b2['dataFieldId'],p['PivotTableFiledAreaEnum'][_0x45425c(0x266)],void 0x0,_0x58512d),_0x5375b2['sortInfo']&&_0x4c6bfa[_0x45425c(0xf6)](_0x5375b2['id'],_0x5375b2[_0x45425c(0x11e)]),_0x5375b2[_0x45425c(0x378)]&&_0x4c6bfa['setLabelFilterInfo'](_0x5375b2['id'],_0x5375b2[_0x45425c(0x378)]),_0x5375b2[_0x45425c(0x3bb)]&&_0x4c6bfa['renameField'](_0x5375b2['id'],_0x5375b2[_0x45425c(0x3bb)]));}for(const _0x2057d2 of _0x559dd5){const _0x4ef7a6=_0x207aeb[_0x2057d2];_0x4ef7a6&&_0x4c6bfa[_0x45425c(0xc0)](_0x4ef7a6[_0x45425c(0x292)])&&(_0x4c6bfa['addFieldWithSourceId'](_0x4ef7a6[_0x45425c(0x292)],p['PivotTableFiledAreaEnum'][_0x45425c(0x14d)],void 0x0,_0x2057d2),_0x4ef7a6[_0x45425c(0x11e)]&&_0x4c6bfa[_0x45425c(0xf6)](_0x4ef7a6['id'],_0x4ef7a6[_0x45425c(0x11e)]),_0x4ef7a6[_0x45425c(0x378)]&&_0x4c6bfa[_0x45425c(0xfc)](_0x4ef7a6['id'],_0x4ef7a6['filterInfo']),_0x4ef7a6[_0x45425c(0x3bb)]&&_0x4c6bfa[_0x45425c(0x344)](_0x4ef7a6['id'],_0x4ef7a6[_0x45425c(0x3bb)]));}for(const _0x16f37c of _0x54c624){const _0x1ede3d=_0xcf1e57[_0x16f37c];_0x1ede3d&&_0x4c6bfa['getDataFieldByDataFieldId'](_0x1ede3d[_0x45425c(0x292)])&&(_0x4c6bfa['addFieldWithSourceId'](_0x1ede3d[_0x45425c(0x292)],p[_0x45425c(0x143)][_0x45425c(0x182)],void 0x0,_0x16f37c),_0x1ede3d[_0x45425c(0x287)]!==void 0x0&&_0x4c6bfa[_0x45425c(0x1f0)](_0x16f37c,_0x1ede3d[_0x45425c(0x287)]),_0x1ede3d['format']&&_0x4c6bfa[_0x45425c(0xb1)](_0x16f37c,_0x1ede3d['format']),_0x1ede3d[_0x45425c(0x3bb)]&&_0x4c6bfa[_0x45425c(0x344)](_0x1ede3d['id'],_0x1ede3d[_0x45425c(0x3bb)]));}const _0x21c1c2=_0x47f607[_0x45425c(0x2aa)];for(const {fieldId:_0x13c6ee,filterInfo:_0xde8da9}of _0x21c1c2)_0x4c6bfa[_0x45425c(0x331)](_0x13c6ee,_0xde8da9);}function dn(_0x2b2ed2,_0x9260c3){const _0x73ce4a=_0xdefc56,_0x5883da=[];_0x9260c3===p[_0x73ce4a(0x143)]['Row']&&_0x2b2ed2[_0x73ce4a(0x10e)](p[_0x73ce4a(0x143)][_0x73ce4a(0x21f)],_0x43d789=>{const _0x3c1236=_0x73ce4a;_0x5883da[_0x3c1236(0x12c)](_0x43d789[_0x3c1236(0x36b)]());}),_0x9260c3===p[_0x73ce4a(0x143)]['Column']&&_0x2b2ed2[_0x73ce4a(0x10e)](p['PivotTableFiledAreaEnum'][_0x73ce4a(0x266)],_0x3e0d7a=>{const _0x79e028=_0x73ce4a;_0x5883da[_0x79e028(0x12c)](_0x3e0d7a[_0x79e028(0x36b)]());}),_0x9260c3===p['PivotTableFiledAreaEnum'][_0x73ce4a(0x14d)]&&_0x2b2ed2[_0x73ce4a(0x10e)](p['PivotTableFiledAreaEnum'][_0x73ce4a(0x14d)],_0x23fab6=>{const _0x1ae5b3=_0x73ce4a;_0x5883da[_0x1ae5b3(0x12c)](_0x23fab6[_0x1ae5b3(0x36b)]());}),_0x9260c3===p[_0x73ce4a(0x143)][_0x73ce4a(0x182)]&&_0x2b2ed2['iterateFieldByArea'](p[_0x73ce4a(0x143)][_0x73ce4a(0x182)],_0x4fa1db=>{const _0x3be52a=_0x73ce4a;_0x5883da[_0x3be52a(0x12c)](_0x4fa1db[_0x3be52a(0x36b)]());}),_0x9260c3===void 0x0&&_0x2b2ed2[_0x73ce4a(0x273)](_0x1ef9f8=>{const _0x33951d=_0x73ce4a;_0x5883da[_0x33951d(0x12c)](_0x1ef9f8[_0x33951d(0x36b)]());});const _0x4a8fb4=_0x5883da[_0x73ce4a(0xd0)];for(let _0x570584=_0x4a8fb4-0x1;_0x570584>=0x0;_0x570584--)_0x2b2ed2[_0x73ce4a(0x206)](_0x5883da[_0x570584]);const _0x494d57=_0x2b2ed2[_0x73ce4a(0x19c)]();for(const _0x4f0ca1 in _0x494d57)_0x2b2ed2[_0x73ce4a(0x2d6)](_0x4f0ca1);}function un(_0x9072d,_0xb142f2){const _0xbd304e=_0xdefc56,_0x17995d=new Date(p[_0xbd304e(0xc4)](_0xb142f2)),_0xe0bee0=new Date(p['excelDateToUnixMilliseconds'](_0x9072d)),_0x101181=_0x17995d[_0xbd304e(0x223)](),_0x2e9dcb=_0xe0bee0['getFullYear'](),_0x3be790=_0x17995d[_0xbd304e(0x2b4)](),_0x59c867=_0xe0bee0[_0xbd304e(0x2b4)](),_0x49ee2f=_0x17995d['getDate'](),_0x25d2ed=_0xe0bee0[_0xbd304e(0x18b)](),_0x3588cb=_0x101181===_0x2e9dcb,_0x147df8=_0x3588cb&&_0x3be790===_0x59c867;return _0x3588cb&&_0x147df8&&!(_0x147df8&&_0x49ee2f===_0x25d2ed)?p['PivotDateGroupFieldDateTypeEnum'][_0xbd304e(0x224)]:_0x3588cb&&!_0x147df8?p['PivotDateGroupFieldDateTypeEnum'][_0xbd304e(0x242)]:p['PivotDateGroupFieldDateTypeEnum'][_0xbd304e(0x1ee)];}function Zt(_0x59ff43,_0x514132){const _0x285b3e=_0xdefc56,_0x250d9d=_0x59ff43['get'](exports[_0x285b3e(0xd6)])[_0x285b3e(0x369)]();let _0x526291='';switch(_0x514132){case p[_0x285b3e(0x183)]['YearMonthDate']:_0x526291=_0x250d9d['sheets-pivot.dateGroup.yearMonthDate'];break;case p[_0x285b3e(0x183)][_0x285b3e(0x242)]:_0x526291=_0x250d9d[_0x285b3e(0x322)];break;case p[_0x285b3e(0x183)]['Year']:_0x526291=_0x250d9d['sheets-pivot.dateGroup.year'];break;case p['PivotDateGroupFieldDateTypeEnum']['Month']:_0x526291=_0x250d9d[_0x285b3e(0x1f9)];break;case p[_0x285b3e(0x183)]['Quarter']:_0x526291=_0x250d9d[_0x285b3e(0x173)];break;case p[_0x285b3e(0x183)][_0x285b3e(0x2a5)]:_0x526291=_0x250d9d[_0x285b3e(0x1b7)];break;case p[_0x285b3e(0x183)][_0x285b3e(0x207)]:_0x526291=_0x250d9d[_0x285b3e(0x140)];break;case p[_0x285b3e(0x183)][_0x285b3e(0x250)]:_0x526291=_0x250d9d[_0x285b3e(0x39f)];break;case p[_0x285b3e(0x183)][_0x285b3e(0xc6)]:_0x526291=_0x250d9d['sheets-pivot.dateGroup.minute'];break;case p[_0x285b3e(0x183)][_0x285b3e(0x19e)]:_0x526291=_0x250d9d['sheets-pivot.dateGroup.monthDate'];break;case p['PivotDateGroupFieldDateTypeEnum'][_0x285b3e(0x38e)]:_0x526291=_0x250d9d[_0x285b3e(0x376)];break;default:_0x526291='';break;}return _0x526291;}const Nt='sheets-pivot.config',Wt={};var fn=Object['getOwnPropertyDescriptor'],vn=(_0x3986d7,_0x548196,_0x1297f6,_0x94165c)=>{const _0x2a804c=_0xdefc56;for(var _0x56e276=_0x94165c>0x1?void 0x0:_0x94165c?fn(_0x548196,_0x1297f6):_0x548196,_0x73925c=_0x3986d7[_0x2a804c(0xd0)]-0x1,_0x29a231;_0x73925c>=0x0;_0x73925c--)(_0x29a231=_0x3986d7[_0x73925c])&&(_0x56e276=_0x29a231(_0x56e276)||_0x56e276);return _0x56e276;},We=(_0x4b1556,_0x422c0d)=>(_0x5e44bd,_0x24cce4)=>_0x422c0d(_0x5e44bd,_0x24cce4,_0x4b1556);exports['SheetsPivotTableConfigModel']=class extends v['Disposable']{constructor(_0x487061,_0x2ced6c,_0x43f235,_0x14e107,_0x2cd050){const _0x58655c=_0xdefc56;super(),x(this,_0x58655c(0x2d3),new Map()),x(this,'_collectionConfigModel',new Map()),x(this,'_pivotTableRangeInfo',new Map()),x(this,_0x58655c(0x312),new Map()),x(this,'_configVersion$',new ge[(_0x58655c(0x177))]()),x(this,_0x58655c(0x1ed),new ge[(_0x58655c(0x177))]()),x(this,_0x58655c(0x2ac),this['_pivotInitCompleted$'][_0x58655c(0x26c)]()),x(this,_0x58655c(0x17d),new ge['Subject']()),x(this,'pivotConfigChange$',this[_0x58655c(0x17d)][_0x58655c(0x26c)]()),x(this,_0x58655c(0x246),{}),x(this,_0x58655c(0x165),this['_configVersion$'][_0x58655c(0x26c)]()),(this[_0x58655c(0x199)]=_0x487061,this['_commandService']=_0x2ced6c,this[_0x58655c(0x2b6)]=_0x43f235,this[_0x58655c(0x3c0)]=_0x14e107,this['_configService']=_0x2cd050,this['_initLocale'](),this[_0x58655c(0x3aa)]());const _0x227bff=this['_configService'][_0x58655c(0x11d)](Nt);(_0x227bff==null?void 0x0:_0x227bff[_0x58655c(0x3c9)])===!0x0&&this[_0x58655c(0x283)]();}[_0xdefc56(0x3aa)](){const _0x1dcf09=_0xdefc56;this['disposeWithMe'](this[_0x1dcf09(0x2b6)][_0x1dcf09(0xf0)](v[_0x1dcf09(0x22e)][_0x1dcf09(0x2db)])['subscribe'](_0x2eac5c=>{const _0x14f9c0=_0x1dcf09;this[_0x14f9c0(0x221)](_0x2eac5c['getUnitId']());}));}[_0xdefc56(0x33a)](){const _0x38a415=_0xdefc56;this[_0x38a415(0x1ed)]['next'](!0x0);}['_initLocale'](){const _0x181595=_0xdefc56,_0x163ef0=Rt(this[_0x181595(0x199)],$t,'',{});this['_textInfo']=_0x163ef0,this[_0x181595(0x2bd)][_0x181595(0x3b5)](_t['id'],{'textInfo':_0x163ef0},{'onlyLocal':!0x0});}['getTextInfo'](){return this['_textInfo'];}[_0xdefc56(0x12a)](_0x34def4,_0xc862aa,_0x535bfa,_0x39d6c0,_0x467bc3){const _0x5bd9fc=_0xdefc56;this[_0x5bd9fc(0x1e4)](_0x34def4,_0xc862aa,_0x535bfa,_0x39d6c0),this[_0x5bd9fc(0x15e)](_0x34def4,_0xc862aa,_0x535bfa,_0x467bc3);}['getPivotTableConfig'](_0x2f20f1,_0x49aa30,_0xea1317){const _0x285bd7=_0xdefc56;var _0x223433;const _0x4c1302=(_0x223433=this[_0x285bd7(0x2d3)][_0x285bd7(0x2ba)](_0x2f20f1))==null?void 0x0:_0x223433[_0x285bd7(0x2ba)](_0x49aa30);if(_0x4c1302)return _0x4c1302['get'](_0xea1317);}[_0xdefc56(0x271)](_0x50d9a8,_0x1772fd){const _0x1adacc=_0xdefc56,_0x56d7ab=this[_0x1adacc(0x2d3)][_0x1adacc(0x2ba)](_0x50d9a8);if(_0x56d7ab){for(const [_0x1eb3ba,_0x2bda1a]of _0x56d7ab[_0x1adacc(0x114)]())for(const [_0x49c6fc,_0xecd9b9]of _0x2bda1a['entries']())if(_0x49c6fc===_0x1772fd)return _0xecd9b9['targetCellInfo'];}}['getTargetByPivotId'](_0x1512bd,_0x5ad05a,_0xab9831){const _0x1e4b4d=_0xdefc56,_0x362eb1=this[_0x1e4b4d(0x31d)](_0x1512bd,_0x5ad05a,_0xab9831);return _0x362eb1==null?void 0x0:_0x362eb1[_0x1e4b4d(0x29c)];}[_0xdefc56(0x336)](_0x58d7ed,_0x2d0c54){const _0x4e8860=_0xdefc56;var _0x11b232;return(_0x11b232=this[_0x4e8860(0x2d3)][_0x4e8860(0x2ba)](_0x58d7ed))==null?void 0x0:_0x11b232['get'](_0x2d0c54);}[_0xdefc56(0x1d9)](_0x58276b,_0x509d2a,_0x4d4fd2,_0x5de08a){const _0x46b6e7=_0xdefc56,_0x5d27de=this[_0x46b6e7(0x361)](_0x58276b,_0x509d2a);_0x5de08a?_0x5d27de[_0x46b6e7(0x2e9)](_0x4d4fd2,_0x5de08a):_0x5d27de[_0x46b6e7(0x170)](_0x4d4fd2),this['_pivotConfigChange$'][_0x46b6e7(0x18e)]({'unitId':_0x58276b,'subUnitId':_0x509d2a,'pivotTableId':_0x4d4fd2,'pivotTableConfig':_0x5de08a});}['getCollection'](_0x3036c3,_0x570f5){const _0x9b6605=_0xdefc56;var _0x228005;return(_0x228005=this[_0x9b6605(0x37a)][_0x9b6605(0x2ba)](_0x3036c3))==null?void 0x0:_0x228005[_0x9b6605(0x104)][_0x570f5];}[_0xdefc56(0x211)](_0x383ed4,_0x4fd14a){const _0x1ff314=_0xdefc56;this[_0x1ff314(0x37a)][_0x1ff314(0x2e9)](_0x383ed4,_0x4fd14a),this[_0x1ff314(0x13c)][_0x1ff314(0x18e)](Math[_0x1ff314(0x363)]());}['_ensurePivotMap'](_0x5630c1,_0x52b562){const _0x329700=_0xdefc56;let _0xfd3d77=this['_model'][_0x329700(0x2ba)](_0x5630c1);_0xfd3d77||(_0xfd3d77=new Map(),this[_0x329700(0x2d3)][_0x329700(0x2e9)](_0x5630c1,_0xfd3d77));let _0x32c694=_0xfd3d77[_0x329700(0x2ba)](_0x52b562);return _0x32c694||(_0x32c694=new Map(),_0xfd3d77[_0x329700(0x2e9)](_0x52b562,_0x32c694)),_0x32c694;}[_0xdefc56(0x38a)](_0x2f3356,_0xa4db27){const _0x3e7d8e=_0xdefc56;let _0x4e50e6=this[_0x3e7d8e(0x3a0)][_0x3e7d8e(0x2ba)](_0x2f3356);_0x4e50e6||(_0x4e50e6=new Map(),this[_0x3e7d8e(0x3a0)]['set'](_0x2f3356,_0x4e50e6));let _0x4d7e83=_0x4e50e6['get'](_0xa4db27);return _0x4d7e83||(_0x4d7e83=new Map(),_0x4e50e6['set'](_0xa4db27,_0x4d7e83)),_0x4d7e83;}['_ensurePivotTableMatrixInfo'](_0x222266,_0x23dd0a){const _0xfa8d03=_0xdefc56;let _0x4bf54c=this[_0xfa8d03(0x312)][_0xfa8d03(0x2ba)](_0x222266);_0x4bf54c||(_0x4bf54c=new Map(),this['_pivotTableMatrixInfo']['set'](_0x222266,_0x4bf54c));let _0x5787ad=_0x4bf54c['get'](_0x23dd0a);return _0x5787ad||(_0x5787ad=new Map(),_0x4bf54c[_0xfa8d03(0x2e9)](_0x23dd0a,_0x5787ad)),_0x5787ad;}[_0xdefc56(0x15e)](_0x223cb6,_0x48e4ee,_0x5cadd1,_0x39e569){const _0x776371=_0xdefc56;var _0x559fc9;const _0x32d164=this[_0x776371(0x38a)](_0x223cb6,_0x48e4ee),_0x1f0558=(_0x559fc9=_0x32d164[_0x776371(0x2ba)](_0x5cadd1))==null?void 0x0:_0x559fc9[_0x776371(0xd4)];_0x32d164[_0x776371(0x2e9)](_0x5cadd1,{'oldRangeInfo':_0x1f0558,'rangeInfo':_0x39e569});}[_0xdefc56(0x1e4)](_0x38b1f0,_0x10116a,_0x5a976d,_0x2dd7d7){const _0x4749c4=_0xdefc56;var _0x4b43b1;const _0x1c8c19=this[_0x4749c4(0x3c8)](_0x38b1f0,_0x10116a),_0x2fbac9=(_0x4b43b1=_0x1c8c19[_0x4749c4(0x2ba)](_0x5a976d))==null?void 0x0:_0x4b43b1[_0x4749c4(0x25e)];_0x1c8c19[_0x4749c4(0x2e9)](_0x5a976d,{'oldMatrix':_0x2fbac9,'matrix':_0x2dd7d7});}[_0xdefc56(0x1fe)](_0x514282,_0x493fb6,_0x19107f){const _0x214859=_0xdefc56;var _0x4a2858,_0x38aa0a;return(_0x38aa0a=(_0x4a2858=this[_0x214859(0x3a0)]['get'](_0x514282))==null?void 0x0:_0x4a2858[_0x214859(0x2ba)](_0x493fb6))==null?void 0x0:_0x38aa0a[_0x214859(0x2ba)](_0x19107f);}[_0xdefc56(0x1b9)](_0x24d303,_0x2cd2b3,_0x7d1639){const _0x3511dc=_0xdefc56;var _0x32ff47,_0x310bcc;return(_0x310bcc=(_0x32ff47=this['_pivotTableMatrixInfo'][_0x3511dc(0x2ba)](_0x24d303))==null?void 0x0:_0x32ff47[_0x3511dc(0x2ba)](_0x2cd2b3))==null?void 0x0:_0x310bcc[_0x3511dc(0x2ba)](_0x7d1639);}[_0xdefc56(0x221)](_0x39bdfe){const _0x31adb9=_0xdefc56;this[_0x31adb9(0x2d3)][_0x31adb9(0x170)](_0x39bdfe),this['_collectionConfigModel'][_0x31adb9(0x170)](_0x39bdfe);}[_0xdefc56(0x26b)](_0x250479){const _0x321db3=_0xdefc56,_0x42322d={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x321db3(0x37a)]['get'](_0x250479)&&(_0x42322d[_0x321db3(0x3bd)][_0x250479]=this[_0x321db3(0x37a)][_0x321db3(0x2ba)](_0x250479)),this[_0x321db3(0x2d3)][_0x321db3(0x2ba)](_0x250479)){_0x42322d[_0x321db3(0x185)][_0x250479]={};const _0x51f4e4=this[_0x321db3(0x2d3)][_0x321db3(0x2ba)](_0x250479);_0x51f4e4!=null&&_0x51f4e4[_0x321db3(0x25c)]&&[..._0x51f4e4['keys']()][_0x321db3(0x187)](_0x5dc00d=>{const _0xcba563=_0x321db3,_0x7ed5ed=_0x51f4e4[_0xcba563(0x2ba)](_0x5dc00d);_0x7ed5ed!=null&&_0x7ed5ed['size']&&(_0x42322d[_0xcba563(0x185)][_0x250479][_0x5dc00d]={},[..._0x7ed5ed[_0xcba563(0x2e2)]()][_0xcba563(0x187)](_0x262bc3=>{const _0x10907c=_0xcba563,_0x1087e8=_0x7ed5ed[_0x10907c(0x2ba)](_0x262bc3);_0x1087e8&&(_0x42322d['pivotTableConfigs'][_0x250479][_0x5dc00d][_0x262bc3]=_0x1087e8);}));});}return _0x42322d;}[_0xdefc56(0x283)](){const _0xd08ae8=_0xdefc56;this['disposeWithMe'](this['_resourceManagerService']['registerPluginResource']({'toJson':_0xf125cb=>JSON['stringify'](this['_toJSON'](_0xf125cb)),'parseJson':_0x590c67=>({}),'businesses':[v[_0xd08ae8(0x22e)][_0xd08ae8(0x2db)]],'pluginName':Ct,'onLoad':(_0x1be96e,_0x537658)=>{},'onUnLoad':_0xc98bea=>{const _0x3a80d4=_0xd08ae8;this[_0x3a80d4(0x221)](_0xc98bea);}}));}},exports['SheetsPivotTableConfigModel']=vn([We(0x0,v['Inject'](v[_0xdefc56(0x277)])),We(0x1,v['Inject'](v[_0xdefc56(0x2e0)])),We(0x2,v[_0xdefc56(0x12f)](v[_0xdefc56(0x20e)])),We(0x3,v[_0xdefc56(0x12f)](v[_0xdefc56(0x333)])),We(0x4,v[_0xdefc56(0x12f)](v[_0xdefc56(0x37d)]))],exports['SheetsPivotTableConfigModel']);var gn=Object[_0xdefc56(0x111)],hn=(_0x12f782,_0x1e9c08,_0x1ef417,_0x49c73d)=>{for(var _0x118806=_0x49c73d>0x1?void 0x0:_0x49c73d?gn(_0x1e9c08,_0x1ef417):_0x1e9c08,_0x2acdec=_0x12f782['length']-0x1,_0x28bbfa;_0x2acdec>=0x0;_0x2acdec--)(_0x28bbfa=_0x12f782[_0x2acdec])&&(_0x118806=_0x28bbfa(_0x118806)||_0x118806);return _0x118806;},ke=(_0x4e05db,_0x4271c2)=>(_0x4e8a03,_0x3fe935)=>_0x4271c2(_0x4e8a03,_0x3fe935,_0x4e05db);exports[_0xdefc56(0x31f)]=class extends v[_0xdefc56(0x229)]{constructor(_0x26b8c9,_0x1a6293,_0x2efbc8,_0x46d53b,_0x2854c2){const _0x3e620b=_0xdefc56;super(),x(this,_0x3e620b(0x137),new Map()),x(this,_0x3e620b(0x11c),new Map()),x(this,'_markDirty$',new ge['Subject']()),x(this,_0x3e620b(0x1e3),this[_0x3e620b(0x357)][_0x3e620b(0x26c)]()),x(this,_0x3e620b(0x393),new ge['Subject']()),x(this,'viewUpdate$',this['_viewUpdate$']['asObservable']()),x(this,_0x3e620b(0x246)),(this[_0x3e620b(0x17a)]=_0x26b8c9,this[_0x3e620b(0x199)]=_0x1a6293,this['_sheetsPivotTableConfigModel']=_0x2efbc8,this['_univerInstanceService']=_0x46d53b,this['_exclusiveRangeService']=_0x2854c2,this[_0x3e620b(0x15c)](),this[_0x3e620b(0x3aa)]());}['_initUnitDisposed'](){const _0x37d30d=_0xdefc56;this[_0x37d30d(0x1c8)](this[_0x37d30d(0x2b6)][_0x37d30d(0xf0)](v[_0x37d30d(0x22e)][_0x37d30d(0x2db)])[_0x37d30d(0x359)](_0x17fccf=>{const _0xc59487=_0x37d30d;this[_0xc59487(0x221)](_0x17fccf[_0xc59487(0x175)]());}));}['_initLocale'](){const _0x15e6ae=_0xdefc56;this[_0x15e6ae(0x246)]=Rt(this[_0x15e6ae(0x199)],$t,'',{});}[_0xdefc56(0x34c)](_0x155413){const _0x1823c6=_0xdefc56,{view:_0x6fef5d,unitId:_0x29ef7e,subUnitId:_0x5f350d,pivotTableId:_0x330e8c,type:_0x48c1f4}=_0x155413,_0x2816e3=this[_0x1823c6(0xe2)][_0x1823c6(0x31d)](_0x29ef7e,_0x5f350d,_0x330e8c);if(!_0x6fef5d||!_0x2816e3||_0x48c1f4===k['Delete'])return;const {pageView:_0x469c3b,cornerView:_0x2d2b77,rowView:_0x29e336,colView:_0x3d70fb,dataView:_0x1cec73}=_0x6fef5d,_0x3f5a68=_0x2816e3[_0x1823c6(0x29c)],_0x5d3265=_0x2816e3[_0x1823c6(0x245)],_0xf3f305=this[_0x1823c6(0x272)](_0x29ef7e,_0x5f350d),_0x37070c=this[_0x1823c6(0x3ac)](_0x29ef7e,_0x5f350d,_0x330e8c);if(_0x5d3265)return this[_0x1823c6(0x102)](_0x155413,_0xf3f305,_0x3f5a68,_0x37070c);{const _0x4d5c66=oe(_0x3f5a68,_0x469c3b,!0x0),_0x1f9b11=_0x469c3b[_0x1823c6(0x354)]>=0x0?_0x469c3b[_0x1823c6(0x354)]+0x1:0x0,_0x447e68=_0x2d2b77[_0x1823c6(0x1dd)](),_0x431f8d=_0x2d2b77['getColCount'](),_0xfc78a8=_0x4d5c66['length']>0x0?Re:0x0,_0x5967a8=oe({'row':_0x3f5a68[_0x1823c6(0x35a)]+_0x1f9b11+_0xfc78a8,'col':_0x3f5a68[_0x1823c6(0x20f)]},_0x2d2b77,!0x1,!0x1),_0x372637=oe({'row':_0x3f5a68[_0x1823c6(0x35a)]+_0x1f9b11+_0xfc78a8+_0x447e68,'col':_0x3f5a68[_0x1823c6(0x20f)]},_0x29e336,!0x1,!0x0),_0x3474bb=oe({'row':_0x3f5a68[_0x1823c6(0x35a)]+_0x1f9b11+_0xfc78a8,'col':_0x3f5a68[_0x1823c6(0x20f)]+_0x431f8d},_0x3d70fb,!0x1,!0x0),_0xec4c7e=oe({'row':_0x3f5a68[_0x1823c6(0x35a)]+_0x1f9b11+_0xfc78a8+_0x447e68,'col':_0x3f5a68[_0x1823c6(0x20f)]+_0x431f8d},_0x1cec73,!0x1,!0x1);_0x37070c[_0x1823c6(0x2a9)]={'rowRanges':_0x372637,'colRanges':_0x3474bb,'cornerRanges':_0x5967a8,'dataRanges':_0xec4c7e,'pageRanges':_0x4d5c66};const _0x22b6ec=Jo(this['_injector'],_0x6fef5d,_0x2816e3,this['_textInfo']),{valueMatrix:_0x439e91,rowInfo:_0x5b5591,colInfo:_0x2d75a7,cornerInfo:_0x33f9bb,rowHeaderMap:_0x302e72,colHeaderMap:_0x2318c7}=_0x22b6ec;return _0x37070c['areaInfo']={'rowInfo':_0x5b5591,'colInfo':_0x2d75a7,'cornerInfo':_0x33f9bb},_0x37070c['headerMap']={'rowHeaderMap':_0x302e72,'colHeaderMap':_0x2318c7},_0x439e91['forEach']((_0x3671ed,_0x30e274)=>{const _0x38d01e=_0x1823c6;Object[_0x38d01e(0x2e2)](_0x30e274)[_0x38d01e(0x187)](_0x28e940=>{const _0x4b2e55=_0x38d01e,_0x3cdc96=+_0x28e940,_0x4c153b=_0x439e91['getValue'](_0x3671ed,_0x3cdc96);_0xf3f305[_0x4b2e55(0x1d2)](_0x3671ed,_0x3cdc96,_0x4c153b);});}),this['_viewUpdate$']['next']({'unitId':_0x29ef7e,'subUnitId':_0x5f350d,'valueMatrix':_0xf3f305,'rangesCache':_0x37070c[_0x1823c6(0x2a9)],'pivotTableId':_0x330e8c,'type':_0x155413[_0x1823c6(0xeb)]}),this[_0x1823c6(0xe2)][_0x1823c6(0x12a)](_0x29ef7e,_0x5f350d,_0x330e8c,_0xf3f305,_0x37070c[_0x1823c6(0x2a9)]),this[_0x1823c6(0x387)][_0x1823c6(0xe8)](_0x29ef7e,_0x5f350d,bt,this['_createExclusiveRange'](_0x37070c[_0x1823c6(0x2a9)],_0x330e8c)),{'rangeCache':_0x37070c['rangesInfo'],'matrix':_0xf3f305};}}[_0xdefc56(0x102)](_0x16fe7e,_0x220ad5,_0x47233f,_0x177b9c){const _0x5b2abb=_0xdefc56,_0x129eae=this[_0x5b2abb(0x17a)]['t'],{unitId:_0x348c98,subUnitId:_0xe09e81,pivotTableId:_0x3680e3}=_0x16fe7e,_0x4c216b={'filter':_0x129eae(_0x5b2abb(0x397)),'row':_0x129eae(_0x5b2abb(0x248)),'column':_0x129eae(_0x5b2abb(0x28a)),'values':_0x129eae(_0x5b2abb(0x141))},{matrixCache:_0x37d701,rangesCache:_0x247711}=Ht(_0x4c216b,_0x47233f);return _0x37d701[_0x5b2abb(0x37b)]((_0x5c0437,_0x48b32c,_0x238a75)=>{const _0x2cef2d=_0x5b2abb;_0x220ad5[_0x2cef2d(0x1d2)](_0x5c0437,_0x48b32c,_0x238a75);}),_0x177b9c[_0x5b2abb(0x2a9)]=_0x247711,this[_0x5b2abb(0x393)][_0x5b2abb(0x18e)]({'unitId':_0x348c98,'subUnitId':_0xe09e81,'valueMatrix':_0x220ad5,'rangesCache':_0x247711,'pivotTableId':_0x3680e3,'type':_0x16fe7e[_0x5b2abb(0xeb)],'isEmpty':!0x0}),this[_0x5b2abb(0xe2)][_0x5b2abb(0x12a)](_0x348c98,_0xe09e81,_0x3680e3,_0x220ad5,_0x247711),this[_0x5b2abb(0x387)][_0x5b2abb(0xe8)](_0x348c98,_0xe09e81,bt,this[_0x5b2abb(0x14e)](_0x247711,_0x3680e3)),{'rangeCache':_0x177b9c['rangesInfo'],'matrix':_0x220ad5};}[_0xdefc56(0x14e)](_0x119acc,_0x5b5c81){const _0x20ab27=_0xdefc56,_0x3727c0=[],_0x22c9e4=nt(_0x119acc);for(const _0x3114b6 of _0x22c9e4)_0x3727c0[_0x20ab27(0x12c)]({'groupId':_0x5b5c81,'range':_0x3114b6});return _0x3727c0;}[_0xdefc56(0x39a)](_0x159224){const _0x4a3267=_0xdefc56;var _0x5c91d2,_0x836ec5,_0x55b829,_0x2ffc19;const {pivotTableId:_0x44b58a,unitId:_0x2fb0d6,subUnitId:_0x2d3b61}=_0x159224;if(!_0x44b58a||!_0x2fb0d6||!_0x2d3b61)return;const _0x359b23=this[_0x4a3267(0x272)](_0x2fb0d6,_0x2d3b61),_0x205621=(_0x836ec5=(_0x5c91d2=this['_pivotRenderInfoCache'][_0x4a3267(0x2ba)](_0x2fb0d6))==null?void 0x0:_0x5c91d2['get'](_0x2d3b61))==null?void 0x0:_0x836ec5['get'](_0x44b58a);if(_0x205621!=null&&_0x205621[_0x4a3267(0x2a9)]){for(const _0x5cc384 of Object[_0x4a3267(0x2e2)](_0x205621['rangesInfo']))_0x205621[_0x4a3267(0x2a9)][_0x5cc384][_0x4a3267(0x187)](_0x32624e=>{const _0x13ee56=_0x4a3267;for(let _0x3931ed=_0x32624e[_0x13ee56(0x3be)];_0x3931ed<=_0x32624e['endRow'];_0x3931ed++)for(let _0x5c43c3=_0x32624e[_0x13ee56(0x142)];_0x5c43c3<=_0x32624e['endColumn'];_0x5c43c3++)_0x359b23[_0x13ee56(0x399)](_0x3931ed,_0x5c43c3);});}_0x205621&&((_0x2ffc19=(_0x55b829=this[_0x4a3267(0x137)]['get'](_0x2fb0d6))==null?void 0x0:_0x55b829[_0x4a3267(0x2ba)](_0x2d3b61))==null||_0x2ffc19[_0x4a3267(0x170)](_0x44b58a)),this[_0x4a3267(0x393)][_0x4a3267(0x18e)]({'unitId':_0x2fb0d6,'subUnitId':_0x2d3b61,'valueMatrix':_0x359b23,'pivotTableId':_0x44b58a,'rangesCache':void 0x0,'type':_0x159224[_0x4a3267(0xeb)]}),this[_0x4a3267(0x387)][_0x4a3267(0x2ee)](_0x2fb0d6,_0x2d3b61,bt,_0x44b58a);}[_0xdefc56(0x3ac)](_0x10819d,_0x5a5727,_0x3b0a0d){const _0x209d84=_0xdefc56;var _0x2b46d1,_0x1e54b6,_0x3c937f,_0xfb7fe2,_0x549221,_0x55152f;return this[_0x209d84(0x137)][_0x209d84(0x18d)](_0x10819d)||this['_pivotRenderInfoCache'][_0x209d84(0x2e9)](_0x10819d,new Map()),(_0x2b46d1=this['_pivotRenderInfoCache'][_0x209d84(0x2ba)](_0x10819d))!=null&&_0x2b46d1[_0x209d84(0x18d)](_0x5a5727)||(_0x1e54b6=this[_0x209d84(0x137)][_0x209d84(0x2ba)](_0x10819d))==null||_0x1e54b6[_0x209d84(0x2e9)](_0x5a5727,new Map()),(_0xfb7fe2=(_0x3c937f=this[_0x209d84(0x137)]['get'](_0x10819d))==null?void 0x0:_0x3c937f[_0x209d84(0x2ba)](_0x5a5727))!=null&&_0xfb7fe2[_0x209d84(0x18d)](_0x3b0a0d)||(_0x55152f=(_0x549221=this['_pivotRenderInfoCache'][_0x209d84(0x2ba)](_0x10819d))==null?void 0x0:_0x549221[_0x209d84(0x2ba)](_0x5a5727))==null||_0x55152f[_0x209d84(0x2e9)](_0x3b0a0d,{}),this[_0x209d84(0x137)]['get'](_0x10819d)[_0x209d84(0x2ba)](_0x5a5727)['get'](_0x3b0a0d);}[_0xdefc56(0x272)](_0x3b81ee,_0x179e80){const _0x1f8b7d=_0xdefc56;var _0x36bc7d,_0xfe6b95;return this[_0x1f8b7d(0x11c)]['has'](_0x3b81ee)||this[_0x1f8b7d(0x11c)][_0x1f8b7d(0x2e9)](_0x3b81ee,new Map()),(_0x36bc7d=this['_pivotRenderValueMatrixCache'][_0x1f8b7d(0x2ba)](_0x3b81ee))!=null&&_0x36bc7d[_0x1f8b7d(0x18d)](_0x179e80)||(_0xfe6b95=this[_0x1f8b7d(0x11c)][_0x1f8b7d(0x2ba)](_0x3b81ee))==null||_0xfe6b95[_0x1f8b7d(0x2e9)](_0x179e80,new v[(_0x1f8b7d(0x19d))]()),this[_0x1f8b7d(0x11c)][_0x1f8b7d(0x2ba)](_0x3b81ee)[_0x1f8b7d(0x2ba)](_0x179e80);}[_0xdefc56(0x1b2)](_0x59745d,_0x35cb8f,_0x2b3138,_0x504c76){const _0x2b7dbe=_0xdefc56;var _0x4fb506,_0x2ad311;const _0x1fa164=(_0x2ad311=(_0x4fb506=this[_0x2b7dbe(0x11c)][_0x2b7dbe(0x2ba)](_0x59745d))==null?void 0x0:_0x4fb506[_0x2b7dbe(0x2ba)](_0x35cb8f))==null?void 0x0:_0x2ad311[_0x2b7dbe(0x32b)](_0x2b3138,_0x504c76);if(_0x1fa164!=null)return _0x1fa164;}['getPivotTableIdByCell'](_0x3a1f70,_0x3358c0,_0x27bbbd,_0x58af65){const _0x34766c=_0xdefc56;var _0x5d31be;const _0x424913=v[_0x34766c(0x259)](_0x27bbbd,_0x58af65),_0x2f4dcb=(_0x5d31be=this[_0x34766c(0x137)][_0x34766c(0x2ba)](_0x3a1f70))==null?void 0x0:_0x5d31be['get'](_0x3358c0);return _0x2f4dcb?Array[_0x34766c(0x2f3)](_0x2f4dcb[_0x34766c(0x2e2)]())[_0x34766c(0x13f)](_0x1e572d=>{const _0x843063=_0x34766c,_0x4a8f73=_0x2f4dcb[_0x843063(0x2ba)](_0x1e572d),_0x2dd18c=_0x4a8f73==null?void 0x0:_0x4a8f73[_0x843063(0x2a9)];return _0x2dd18c?Object[_0x843063(0x2e2)](_0x2dd18c)[_0x843063(0x1bf)](_0x54dd82=>_0x2dd18c[_0x54dd82]['some'](_0x141aad=>v[_0x843063(0x350)][_0x843063(0x1d8)](_0x141aad,_0x424913))):!0x1;}):void 0x0;}[_0xdefc56(0xca)](_0x548935,_0x3de9df,_0xb2d42b){const _0x290dec=_0xdefc56;var _0x2b6e31;const _0xa950dc=(_0x2b6e31=this[_0x290dec(0x137)][_0x290dec(0x2ba)](_0x548935))==null?void 0x0:_0x2b6e31[_0x290dec(0x2ba)](_0x3de9df),_0x98a050=[];return _0xa950dc&&Array[_0x290dec(0x2f3)](_0xa950dc[_0x290dec(0x2e2)]())[_0x290dec(0x187)](_0x40429c=>{const _0x458d5f=_0x290dec,_0x339d16=_0xa950dc[_0x458d5f(0x2ba)](_0x40429c),_0x6549fe=_0x339d16==null?void 0x0:_0x339d16[_0x458d5f(0x2a9)];if(_0x6549fe)for(const _0x376ef5 of Object[_0x458d5f(0xb6)](_0x6549fe)){let _0x46b195=!0x1;for(const _0x361cab of _0x376ef5)if(v[_0x458d5f(0x350)]['intersects'](_0x361cab,_0xb2d42b)){_0x98a050[_0x458d5f(0x12c)](_0x40429c),_0x46b195=!0x0;break;}if(_0x46b195)break;}}),_0x98a050;}[_0xdefc56(0x260)](_0x2077be,_0x5ef4ee){const _0x2c4985=_0xdefc56;var _0x5bda69,_0x116bbb;return(_0x116bbb=(_0x5bda69=this[_0x2c4985(0x11c)][_0x2c4985(0x2ba)](_0x2077be))==null?void 0x0:_0x5bda69[_0x2c4985(0x2ba)](_0x5ef4ee))!=null?_0x116bbb:new v[(_0x2c4985(0x19d))]();}[_0xdefc56(0x254)](_0x524660,_0x370504){const _0x4d6606=_0xdefc56;var _0x460f3b;return(_0x460f3b=this['_pivotRenderInfoCache'][_0x4d6606(0x2ba)](_0x524660))==null?void 0x0:_0x460f3b[_0x4d6606(0x2ba)](_0x370504);}[_0xdefc56(0x293)](_0x9fe9e,_0x45b8c9,_0x547839){const _0x29d8a1=_0xdefc56;var _0x2701b5,_0x1553c9;return(_0x1553c9=(_0x2701b5=this[_0x29d8a1(0x137)][_0x29d8a1(0x2ba)](_0x9fe9e))==null?void 0x0:_0x2701b5['get'](_0x45b8c9))==null?void 0x0:_0x1553c9[_0x29d8a1(0x2ba)](_0x547839);}[_0xdefc56(0x221)](_0x9b0a63){const _0x3d9679=_0xdefc56;this[_0x3d9679(0x137)][_0x3d9679(0x170)](_0x9b0a63),this[_0x3d9679(0x11c)][_0x3d9679(0x170)](_0x9b0a63);}[_0xdefc56(0x34d)](_0x950816,_0x37f4b4){const _0x3bde0a=_0xdefc56;this[_0x3bde0a(0x357)][_0x3bde0a(0x18e)]({'unitId':_0x950816,'subUnitId':_0x37f4b4});}},exports[_0xdefc56(0x31f)]=hn([ke(0x0,v[_0xdefc56(0x12f)](v[_0xdefc56(0x180)])),ke(0x1,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)])),ke(0x2,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x3b9)])),ke(0x3,v[_0xdefc56(0x12f)](v[_0xdefc56(0x20e)])),ke(0x4,v[_0xdefc56(0x12f)](V[_0xdefc56(0x1bd)]))],exports[_0xdefc56(0x31f)]);var pn=Object[_0xdefc56(0x111)],mn=(_0x1d45bb,_0x235b70,_0x561e25,_0x306398)=>{const _0x5498b6=_0xdefc56;for(var _0x18cec4=_0x306398>0x1?void 0x0:_0x306398?pn(_0x235b70,_0x561e25):_0x235b70,_0x234a99=_0x1d45bb[_0x5498b6(0xd0)]-0x1,_0x546ddd;_0x234a99>=0x0;_0x234a99--)(_0x546ddd=_0x1d45bb[_0x234a99])&&(_0x18cec4=_0x546ddd(_0x18cec4)||_0x18cec4);return _0x18cec4;},kt=(_0x41d12b,_0x5e1cae)=>(_0x206014,_0x595b80)=>_0x5e1cae(_0x206014,_0x595b80,_0x41d12b);exports[_0xdefc56(0x35b)]=class extends v[_0xdefc56(0x229)]{constructor(_0x5732dd,_0x2f2e87){const _0x36c3b0=_0xdefc56;super(),x(this,_0x36c3b0(0xcf),new v[(_0x36c3b0(0x11b))]({'PIVOT_PERFORM_CHECK':re})),x(this,'interceptor',new v[(_0x36c3b0(0x139))]({'PIVOT_MUTATION_GENERATE':Jt})),(this['_sheetInterceptorService']=_0x5732dd,this[_0x36c3b0(0x1c9)]=_0x2f2e87,this['_init']());}['_init'](){const _0x9e6a5d=_0xdefc56;this[_0x9e6a5d(0x290)]();}[_0xdefc56(0x212)](_0x39a514){const _0x3c97aa=_0xdefc56;return this[_0x3c97aa(0xcf)]['fetchThroughAsyncInterceptors'](re)(!0x1,_0x39a514);}['_initViewModelBySheetInterceptor'](){const _0x56919e=_0xdefc56;this[_0x56919e(0x1c8)](this[_0x56919e(0xd7)]['intercept'](V[_0x56919e(0x181)]['CELL_CONTENT'],{'priority':0xc8,'effect':v['InterceptorEffectEnum'][_0x56919e(0x182)]|v[_0x56919e(0xc3)][_0x56919e(0x309)],'handler':(_0x28087c,_0x5ecc2d,_0x147f03)=>{const _0x43fa3c=_0x56919e,{row:_0x3c5d87,col:_0x1b597b,unitId:_0x54bc42,subUnitId:_0x16187a,workbook:_0x328eb8}=_0x5ecc2d,_0x237b36=this[_0x43fa3c(0x1c9)][_0x43fa3c(0x1b2)](_0x54bc42,_0x16187a,_0x3c5d87,_0x1b597b);if(!_0x237b36)return _0x147f03(_0x28087c);const _0x45a20c={..._0x28087c};(_0x237b36['v']||_0x237b36['v']===0x0)&&(_0x45a20c['v']=_0x237b36['v']),_0x237b36['t']&&(_0x45a20c['t']=_0x237b36['t']);const _0x1afd9a=(typeof(_0x28087c==null?void 0x0:_0x28087c['s'])=='string'?_0x328eb8[_0x43fa3c(0x383)]()['get'](_0x28087c==null?void 0x0:_0x28087c['s']):_0x28087c==null?void 0x0:_0x28087c['s'])||{},_0x2ae7a1=_0x328eb8['getStyles']()[_0x43fa3c(0x2ba)](_0x237b36['s']),_0x2e9572={..._0x2ae7a1,..._0x1afd9a};_0x2ae7a1!=null&&_0x2ae7a1['n']&&(_0x2e9572['n']=_0x2ae7a1['n']);const _0x5e9101=_0x328eb8[_0x43fa3c(0x383)]()[_0x43fa3c(0x1d2)](_0x2e9572);return _0x45a20c['s']=_0x5e9101,(_0x237b36['pbt']===p[_0x43fa3c(0xef)][_0x43fa3c(0x3b6)]||_0x237b36[_0x43fa3c(0x227)]===p[_0x43fa3c(0xef)][_0x43fa3c(0x209)])&&(_0x45a20c[_0x43fa3c(0x25f)]={},_0x45a20c[_0x43fa3c(0x25f)][_0x43fa3c(0x213)]=Ro),_0x147f03(_0x45a20c);}}));}},exports[_0xdefc56(0x35b)]=mn([kt(0x0,v[_0xdefc56(0x12f)](V[_0xdefc56(0x38b)])),kt(0x1,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x31f)]))],exports['SheetsPivotTableService']);function Ke(_0x2c9094,_0x2b3437){const _0x5aa4c6=_0xdefc56;switch(_0x2b3437){case p['PivotTableFiledAreaEnum'][_0x5aa4c6(0x182)]:return _0x2c9094[_0x5aa4c6(0x2d7)];case p[_0x5aa4c6(0x143)][_0x5aa4c6(0x14d)]:return _0x2c9094[_0x5aa4c6(0x332)];case p[_0x5aa4c6(0x143)]['Row']:return _0x2c9094[_0x5aa4c6(0x1c7)];case p[_0x5aa4c6(0x143)][_0x5aa4c6(0x266)]:return _0x2c9094[_0x5aa4c6(0x198)];default:return[];}}function Pe(_0xbbffed,_0x49b9d8){return _0xbbffed['measure'][_0x49b9d8]||_0xbbffed['dimension'][_0x49b9d8];}function In(_0x1ef0d8,_0x183d6a){const _0x501643=_0xdefc56,{area:_0x263b2b,fieldJson:_0x9345c2,index:_0xc4e5de}=_0x183d6a;_0x263b2b===p[_0x501643(0x143)]['Value']?_0x1ef0d8[_0x501643(0x159)][_0x9345c2['id']]=_0x9345c2:_0x1ef0d8['dimension'][_0x9345c2['id']]=_0x9345c2,Ke(_0x1ef0d8,_0x263b2b)[_0x501643(0xf1)](_0xc4e5de,0x0,_0x9345c2['id']);}function Cn(_0x131025,_0x330234){const _0x3c603d=_0xdefc56,{area:_0x3f5ac3,fieldId:_0x4c7c80,index:_0x33f65a}=_0x330234;_0x3f5ac3===p['PivotTableFiledAreaEnum'][_0x3c603d(0x182)]?delete _0x131025[_0x3c603d(0x159)][_0x4c7c80]:delete _0x131025['dimension'][_0x4c7c80],Ke(_0x131025,_0x3f5ac3)['splice'](_0x33f65a,0x1);}function Sn(_0x19b84d,_0x36cdef){const _0x4cacd6=_0xdefc56,{fieldId:_0x430cd0,name:_0x446076}=_0x36cdef,_0x3f784f=Pe(_0x19b84d,_0x430cd0);_0x3f784f&&(_0x3f784f[_0x4cacd6(0x3bb)]=_0x446076);}function Pn(_0x2318ca,_0x3f9e0f){const _0x2ab376=_0xdefc56,{fieldId:_0x29ac8e,collapse:_0x37d3ac,item:_0x1e167d}=_0x3f9e0f;_0x1e167d!==void 0x0?(_0x2318ca['collapseInfo'][_0x29ac8e]=_0x2318ca[_0x2ab376(0x29d)][_0x29ac8e]||{},_0x2318ca[_0x2ab376(0x29d)][_0x29ac8e][_0x1e167d]=_0x37d3ac):_0x2318ca[_0x2ab376(0x29d)][_0x29ac8e]=_0x37d3ac;}function bn(_0x1f6f6b,_0x2c336b){const _0x89cf42=_0xdefc56,{fieldId:_0x570be8,format:_0x400c5b}=_0x2c336b,_0x4c5bf6=Pe(_0x1f6f6b,_0x570be8);_0x4c5bf6&&(_0x4c5bf6[_0x89cf42(0x1af)]=_0x400c5b);}function Tn(_0x1b9285,_0x5e25b3){const _0x5c274c=_0xdefc56,{fieldId:_0x3ebd40,filterInfo:_0x3b2b43}=_0x5e25b3,_0x1d8b76=Pe(_0x1b9285,_0x3ebd40);_0x1d8b76&&(_0x1d8b76[_0x5c274c(0x378)]=_0x3b2b43);}function yn(_0x2d5882,_0x45f0cd){const _0x2d8f06=_0xdefc56,{fieldId:_0x49ae4b,filterInfo:_0x13be7b}=_0x45f0cd,_0x4ef699=_0x2d5882[_0x2d8f06(0x2aa)][_0x2d8f06(0x20d)](_0x1f3075=>_0x1f3075[_0x2d8f06(0x27e)]!==_0x49ae4b);_0x13be7b&&_0x4ef699[_0x2d8f06(0x12c)]({'fieldId':_0x49ae4b,'filterInfo':_0x13be7b}),_0x2d5882[_0x2d8f06(0x2aa)]=_0x4ef699;}function Mn(_0x50c817,_0x3e2b71){const {fieldId:_0x1bb1fa,subtotalType:_0x34afb9}=_0x3e2b71,_0x456ac3=Pe(_0x50c817,_0x1bb1fa);_0x456ac3&&(_0x456ac3['subtotal']=_0x34afb9);}function _0x2caf(_0x136038,_0x2303e2){const _0x1b57b2=_0x1b57();return _0x2caf=function(_0x2cafb6,_0x12197a){_0x2cafb6=_0x2cafb6-0xb1;let _0x7350f9=_0x1b57b2[_0x2cafb6];return _0x7350f9;},_0x2caf(_0x136038,_0x2303e2);}function wn(_0x492aa6,_0x36e0aa){const _0x3a2814=_0xdefc56,{fieldId:_0x15ff51,oldArea:_0x3a9bac,area:_0x316ec8,oldIndex:_0x497fee,index:_0x3f3cb3}=_0x36e0aa,_0x12bbd7=_0x3a9bac!==p[_0x3a2814(0x143)]['Value']&&_0x316ec8===p[_0x3a2814(0x143)][_0x3a2814(0x182)],_0x5e09a2=_0x3a9bac===p[_0x3a2814(0x143)][_0x3a2814(0x182)]&&_0x316ec8!==p[_0x3a2814(0x143)]['Value'];if(_0x12bbd7||_0x5e09a2){const _0x5d88c8=Pe(_0x492aa6,_0x15ff51);_0x5d88c8&&(_0x12bbd7?(delete _0x492aa6[_0x3a2814(0x2a0)][_0x15ff51],_0x492aa6[_0x3a2814(0x159)][_0x15ff51]=_0x5d88c8):(delete _0x492aa6[_0x3a2814(0x159)][_0x15ff51],_0x492aa6[_0x3a2814(0x2a0)][_0x15ff51]=_0x5d88c8));}const _0x158fae=Ke(_0x492aa6,_0x3a9bac),_0x5a0734=Ke(_0x492aa6,_0x316ec8);_0x158fae['splice'](_0x497fee,0x1),_0x5a0734[_0x3a2814(0xf1)](_0x3f3cb3,0x0,_0x15ff51);}function Fn(_0x400a41,_0x4823df){const _0x389ec1=_0xdefc56,{valuePosition:_0x2bbc6f,index:_0x10f752}=_0x4823df;_0x400a41[_0x389ec1(0x191)]=_0x2bbc6f,_0x400a41[_0x389ec1(0x2b8)]=_0x10f752;}function Dn(_0x4969e4,_0x410cef){const _0x2e90e5=_0xdefc56,{tableFieldId:_0x3ddcc6,sourceName:_0x474da2,dataFieldId:_0x44e519}=_0x410cef,_0x5b104f=Pe(_0x4969e4,_0x3ddcc6);_0x5b104f&&(_0x5b104f['sourceName']=_0x474da2,_0x5b104f[_0x2e90e5(0x292)]=_0x44e519);}function _n(_0x9a3e19,_0x25c945){const _0x2dd637=_0xdefc56,{fieldId:_0x4be3bd,sortInfo:_0x115d02}=_0x25c945,_0x4486ac=Pe(_0x9a3e19,_0x4be3bd);_0x4486ac&&(_0x4486ac[_0x2dd637(0x11e)]=_0x115d02);}function Rn(_0x55ab36,_0x12a18c){const _0x4e761c=_0xdefc56,{options:_0x3eb152}=_0x12a18c;_0x55ab36[_0x4e761c(0x37f)]={..._0x55ab36['options'],..._0x3eb152};}const it={'type':v['CommandType'][_0xdefc56(0x197)],'id':_0xdefc56(0xb5),'handler'(_0x474ef8,_0x212cad){const _0x4488d2=_0xdefc56;if(!_0x212cad)return!0x1;if(!!_0x474ef8[_0x4488d2(0x2ba)](v[_0x4488d2(0x37d)])['getConfig'](z))return!0x0;const _0x4664db=_0x474ef8[_0x4488d2(0x2ba)](exports[_0x4488d2(0xd6)]),{pivotTableId:_0x41cb8e,fieldJson:_0x332719,area:_0x554229,index:_0x4de6d9,unitId:_0x189750,subUnitId:_0xda1cc8}=_0x212cad,_0x51823e=_0x4664db[_0x4488d2(0x388)](_0x41cb8e);if(!_0x51823e)return!0x1;let _0x133859;_0x554229===p[_0x4488d2(0x143)][_0x4488d2(0x182)]?_0x133859=p['createValueField'](_0x332719):_0x133859=p[_0x4488d2(0x36f)](_0x332719),_0x51823e[_0x4488d2(0x319)](_0x133859,_0x554229,_0x4de6d9);const _0x23fbd3=_0x4664db[_0x4488d2(0x188)](_0x189750,_0xda1cc8,_0x41cb8e);In(_0x23fbd3,_0x212cad);const _0xa8c7a7=_0x4664db[_0x4488d2(0x31d)](_0x189750,_0xda1cc8,_0x41cb8e);return _0x4664db['addDirtyPivotTable']({'unitId':_0x189750,'subUnitId':_0xda1cc8,'token':_0x41cb8e,'type':k[_0x4488d2(0xf4)],'pivotConfig':_0xa8c7a7}),!0x0;}},at={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x1bb),'handler'(_0x5d7abd,_0x243c2f){const _0x424507=_0xdefc56;if(!_0x243c2f)return!0x1;if(!!_0x5d7abd[_0x424507(0x2ba)](v[_0x424507(0x37d)])[_0x424507(0x11d)](z))return!0x0;const _0x11ba46=_0x5d7abd[_0x424507(0x2ba)](exports[_0x424507(0xd6)]),{pivotTableId:_0x4e3ef1,fieldId:_0x26484e,unitId:_0x2fa015,subUnitId:_0x1892ee}=_0x243c2f,_0x435991=_0x11ba46[_0x424507(0x388)](_0x4e3ef1);if(!_0x435991)return!0x1;_0x435991[_0x424507(0x206)](_0x26484e);const _0x56e447=_0x11ba46['getPivotTableModelConfig'](_0x2fa015,_0x1892ee,_0x4e3ef1);Cn(_0x56e447,_0x243c2f);const _0xca3250=_0x11ba46[_0x424507(0x31d)](_0x2fa015,_0x1892ee,_0x4e3ef1);return _0x11ba46[_0x424507(0x2be)]({'unitId':_0x2fa015,'subUnitId':_0x1892ee,'token':_0x4e3ef1,'type':k[_0x424507(0xf4)],'pivotConfig':_0xca3250}),!0x0;}},st={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x291),'handler'(_0x145cf5,_0xf2aca0){const _0x929359=_0xdefc56;if(!_0xf2aca0)return!0x1;if(!!_0x145cf5[_0x929359(0x2ba)](v['IConfigService'])[_0x929359(0x11d)](z))return!0x0;const _0x536d7b=_0x145cf5[_0x929359(0x2ba)](exports[_0x929359(0xd6)]),{unitId:_0x526cc4,subUnitId:_0x133f67,pivotTableId:_0x23db93,fieldId:_0x434ef6,name:_0x3e3559}=_0xf2aca0,_0xaf7cc3=_0x536d7b['getPivotTableInstance'](_0x23db93);if(!_0xaf7cc3)return!0x1;_0xaf7cc3[_0x929359(0x344)](_0x434ef6,_0x3e3559);const _0x50e110=_0x536d7b[_0x929359(0x188)](_0x526cc4,_0x133f67,_0x23db93);return Sn(_0x50e110,_0xf2aca0),_0x536d7b[_0x929359(0x2be)]({'unitId':_0x526cc4,'subUnitId':_0x133f67,'token':_0x23db93,'type':k[_0x929359(0xf4)]}),!0x0;}},rt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x1b0d85,_0x45184f){const _0x335f92=_0xdefc56;if(!_0x45184f)return!0x1;if(!!_0x1b0d85[_0x335f92(0x2ba)](v['IConfigService'])[_0x335f92(0x11d)](z))return!0x0;const _0x255a4c=_0x1b0d85[_0x335f92(0x2ba)](exports[_0x335f92(0xd6)]),{unitId:_0x325ac4,subUnitId:_0x180975,pivotTableId:_0x1b2555,fieldId:_0x15d2f4,collapse:_0x3b7348,item:_0x5acda3}=_0x45184f,_0x234f60=_0x255a4c['getPivotTableInstance'](_0x1b2555);if(!_0x234f60)return!0x1;_0x234f60[_0x335f92(0x3c7)](_0x15d2f4,_0x3b7348,_0x5acda3);const _0x3f9aa0=_0x255a4c[_0x335f92(0x188)](_0x325ac4,_0x180975,_0x1b2555);return Pn(_0x3f9aa0,_0x45184f),_0x255a4c[_0x335f92(0x2be)]({'unitId':_0x325ac4,'subUnitId':_0x180975,'token':_0x1b2555,'type':k[_0x335f92(0xf4)]}),!0x0;}},lt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.set-pivot-format','handler'(_0x537326,_0x3c58e4){const _0x359c13=_0xdefc56;if(!_0x3c58e4)return!0x1;if(!!_0x537326[_0x359c13(0x2ba)](v[_0x359c13(0x37d)])[_0x359c13(0x11d)](z))return!0x0;const _0x2760f3=_0x537326[_0x359c13(0x2ba)](exports['SheetsPivotDataSourceModel']),{unitId:_0x3a35d1,subUnitId:_0x40d400,pivotTableId:_0x5729dc,fieldId:_0x50cc02,format:_0x91e48}=_0x3c58e4,_0x553990=_0x2760f3[_0x359c13(0x388)](_0x5729dc);if(!_0x553990)return!0x1;_0x553990[_0x359c13(0xb1)](_0x50cc02,_0x91e48);const _0xcf16ad=_0x2760f3[_0x359c13(0x188)](_0x3a35d1,_0x40d400,_0x5729dc);return bn(_0xcf16ad,_0x3c58e4),_0x2760f3[_0x359c13(0x2be)]({'unitId':_0x3a35d1,'subUnitId':_0x40d400,'token':_0x5729dc,'type':k[_0x359c13(0xf4)]}),!0x0;}},ct={'type':v['CommandType'][_0xdefc56(0x197)],'id':_0xdefc56(0x2b1),'handler'(_0x479db6,_0x356475){const _0x4354aa=_0xdefc56;if(!_0x356475)return!0x1;if(!!_0x479db6[_0x4354aa(0x2ba)](v[_0x4354aa(0x37d)])[_0x4354aa(0x11d)](z))return!0x0;const _0x6ed69d=_0x479db6[_0x4354aa(0x2ba)](exports['SheetsPivotDataSourceModel']),{unitId:_0x178a6f,subUnitId:_0xad4af,pivotTableId:_0x5014d9,fieldId:_0x66172f,filterInfo:_0x4ed8ed}=_0x356475,_0x354b4e=_0x6ed69d[_0x4354aa(0x388)](_0x5014d9);if(!_0x354b4e)return!0x1;_0x354b4e[_0x4354aa(0xfc)](_0x66172f,_0x4ed8ed);const _0x1eaa9d=_0x6ed69d[_0x4354aa(0x188)](_0x178a6f,_0xad4af,_0x5014d9);return Tn(_0x1eaa9d,_0x356475),_0x6ed69d[_0x4354aa(0x2be)]({'unitId':_0x178a6f,'subUnitId':_0xad4af,'token':_0x5014d9,'type':k['Set']}),!0x0;}},dt={'type':v['CommandType']['MUTATION'],'id':'sheet.mutation.set-pivot-option','handler'(_0xfe8f6c,_0x182e9b){const _0x58862f=_0xdefc56;if(!_0x182e9b)return!0x1;if(!!_0xfe8f6c[_0x58862f(0x2ba)](v[_0x58862f(0x37d)])['getConfig'](z))return!0x0;const _0x3531a8=_0xfe8f6c[_0x58862f(0x2ba)](exports[_0x58862f(0xd6)]),{unitId:_0x467172,subUnitId:_0x8fa9b1,pivotTableId:_0x2ea6d9,options:_0x4bb01b}=_0x182e9b,_0x13d331=_0x3531a8[_0x58862f(0x388)](_0x2ea6d9);if(!_0x13d331)return!0x1;_0x13d331[_0x58862f(0xd5)](_0x4bb01b);const _0x29fad9=_0x3531a8[_0x58862f(0x188)](_0x467172,_0x8fa9b1,_0x2ea6d9);return Rn(_0x29fad9,_0x182e9b),_0x3531a8['addDirtyPivotTable']({'unitId':_0x467172,'subUnitId':_0x8fa9b1,'token':_0x2ea6d9,'type':k[_0x58862f(0xf4)]}),!0x0;}},ut={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x339b0a,_0x3c1c6b){const _0x313509=_0xdefc56;if(!_0x3c1c6b)return!0x1;if(!!_0x339b0a[_0x313509(0x2ba)](v[_0x313509(0x37d)])[_0x313509(0x11d)](z))return!0x0;const _0x1c30d5=_0x339b0a['get'](exports['SheetsPivotDataSourceModel']),{unitId:_0x391b79,subUnitId:_0x2bc5d7,pivotTableId:_0x76721c,sortInfo:_0x16e61a,fieldId:_0x2c4bad}=_0x3c1c6b,_0x519139=_0x1c30d5[_0x313509(0x388)](_0x76721c);if(!_0x519139)return!0x1;_0x519139[_0x313509(0xf6)](_0x2c4bad,_0x16e61a);const _0xf57a43=_0x1c30d5[_0x313509(0x188)](_0x391b79,_0x2bc5d7,_0x76721c);return _n(_0xf57a43,_0x3c1c6b),_0x1c30d5[_0x313509(0x2be)]({'unitId':_0x391b79,'subUnitId':_0x2bc5d7,'token':_0x76721c,'type':k['Set']}),!0x0;}},ft={'type':v[_0xdefc56(0xb9)]['MUTATION'],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x5ab99c,_0x139b1f){const _0x3d3fcc=_0xdefc56;if(!_0x139b1f)return!0x1;if(!!_0x5ab99c[_0x3d3fcc(0x2ba)](v[_0x3d3fcc(0x37d)])[_0x3d3fcc(0x11d)](z))return!0x0;const _0x3af566=_0x5ab99c[_0x3d3fcc(0x2ba)](exports['SheetsPivotDataSourceModel']),{unitId:_0x534080,subUnitId:_0x266558,pivotTableId:_0x385ee7,fieldId:_0x526757,subtotalType:_0x8b598d}=_0x139b1f,_0x17fe2f=_0x3af566[_0x3d3fcc(0x388)](_0x385ee7);if(!_0x17fe2f)return!0x1;_0x17fe2f[_0x3d3fcc(0x1f0)](_0x526757,_0x8b598d);const _0x2dd786=_0x3af566[_0x3d3fcc(0x188)](_0x534080,_0x266558,_0x385ee7);return Mn(_0x2dd786,_0x139b1f),_0x3af566[_0x3d3fcc(0x2be)]({'unitId':_0x534080,'subUnitId':_0x266558,'token':_0x385ee7,'type':k['Set']}),!0x0;}},vt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x34e),'handler'(_0x2da53c,_0x2b9c9e){const _0x47ce4b=_0xdefc56;if(!_0x2b9c9e)return!0x1;if(!!_0x2da53c[_0x47ce4b(0x2ba)](v[_0x47ce4b(0x37d)])[_0x47ce4b(0x11d)](z))return!0x0;const _0x27fe79=_0x2da53c[_0x47ce4b(0x2ba)](exports[_0x47ce4b(0xd6)]),{unitId:_0x14f637,subUnitId:_0xb72da1,pivotTableId:_0x58e0bd,fieldId:_0x4b581b,filterInfo:_0x728000}=_0x2b9c9e,_0x3d416a=_0x27fe79['getPivotTableInstance'](_0x58e0bd);if(!_0x3d416a)return!0x1;_0x3d416a['setValueFilterInfo'](_0x4b581b,_0x728000);const _0x5a938e=_0x27fe79['getPivotTableModelConfig'](_0x14f637,_0xb72da1,_0x58e0bd);return yn(_0x5a938e,_0x2b9c9e),_0x27fe79[_0x47ce4b(0x2be)]({'unitId':_0x14f637,'subUnitId':_0xb72da1,'token':_0x58e0bd,'type':k['Set']}),!0x0;}},gt={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x2de),'handler'(_0x1d1ce8,_0x48eb68){const _0x4b1748=_0xdefc56;if(!_0x48eb68)return!0x1;if(!!_0x1d1ce8['get'](v[_0x4b1748(0x37d)])['getConfig'](z))return!0x0;const _0x134c69=_0x1d1ce8[_0x4b1748(0x2ba)](exports[_0x4b1748(0xd6)]),{unitId:_0x508718,subUnitId:_0x25e2b9,pivotTableId:_0x1eba9d,area:_0x139a0b,index:_0x3fdf66,fieldId:_0x4fd647}=_0x48eb68,_0x3f85e7=_0x134c69['getPivotTableInstance'](_0x1eba9d);if(!_0x3f85e7)return!0x1;_0x3f85e7[_0x4b1748(0x124)](_0x4fd647,_0x139a0b,_0x3fdf66);const _0x2a78b1=_0x134c69[_0x4b1748(0x188)](_0x508718,_0x25e2b9,_0x1eba9d);return wn(_0x2a78b1,_0x48eb68),_0x134c69[_0x4b1748(0x2be)]({'unitId':_0x508718,'subUnitId':_0x25e2b9,'token':_0x1eba9d,'type':k[_0x4b1748(0xf4)]}),!0x0;}},ht={'type':v['CommandType']['MUTATION'],'id':_0xdefc56(0x21a),'handler'(_0x424f70,_0xf6fdbe){const _0x3756f2=_0xdefc56;if(!_0xf6fdbe)return!0x1;if(!!_0x424f70['get'](v[_0x3756f2(0x37d)])['getConfig'](z))return!0x0;const _0x57716d=_0x424f70[_0x3756f2(0x2ba)](exports[_0x3756f2(0xd6)]),{unitId:_0x32a107,subUnitId:_0x5c6384,pivotTableId:_0x4d679a,sourceName:_0x533612,dataFieldId:_0xd70c95,tableFieldId:_0x479bf0}=_0xf6fdbe,_0x3737cd=_0x57716d[_0x3756f2(0x388)](_0x4d679a);if(!_0x3737cd)return!0x1;_0x3737cd[_0x3756f2(0x27a)](_0x479bf0,_0x533612,_0xd70c95);const _0x48dde5=_0x57716d[_0x3756f2(0x188)](_0x32a107,_0x5c6384,_0x4d679a);return Dn(_0x48dde5,_0xf6fdbe),_0x57716d[_0x3756f2(0x2be)]({'unitId':_0x32a107,'subUnitId':_0x5c6384,'token':_0x4d679a,'type':k[_0x3756f2(0xf4)]}),!0x0;}},pt={'type':v['CommandType'][_0xdefc56(0x197)],'id':_0xdefc56(0x374),'handler'(_0xc50807,_0x5bf170){const _0x89f43a=_0xdefc56;if(!_0x5bf170)return!0x1;if(!!_0xc50807[_0x89f43a(0x2ba)](v['IConfigService'])[_0x89f43a(0x11d)](z))return!0x0;const _0x10e50d=_0xc50807[_0x89f43a(0x2ba)](exports[_0x89f43a(0xd6)]),{unitId:_0x48bbbc,subUnitId:_0x5ea1ae,pivotTableId:_0x4f2058,valuePosition:_0x37b76f,index:_0x131863}=_0x5bf170,_0x56cee5=_0x10e50d[_0x89f43a(0x388)](_0x4f2058);if(!_0x56cee5)return!0x1;_0x56cee5[_0x89f43a(0x14f)](_0x37b76f,_0x131863);const _0x15b8f4=_0x10e50d['getPivotTableModelConfig'](_0x48bbbc,_0x5ea1ae,_0x4f2058);return Fn(_0x15b8f4,_0x5bf170),_0x10e50d[_0x89f43a(0x2be)]({'unitId':_0x48bbbc,'subUnitId':_0x5ea1ae,'token':_0x4f2058,'type':k[_0x89f43a(0xf4)]}),!0x0;}};function ae(_0x4814da,_0x4e813d,_0x129b54){const _0x71cd25=_0xdefc56,{pivotTableId:_0x3cfb4a,unitId:_0x30d5e5,subUnitId:_0x2097ba}=_0x4e813d,_0x2efa1e=[],_0x3ce107=[];for(const _0x41f83b of _0x129b54)switch(_0x41f83b[_0x71cd25(0xeb)]){case p[_0x71cd25(0x24a)]['AddField']:{const {fieldJson:_0x99c6a2,area:_0x5e8bc4,index:_0x53e825}=_0x41f83b,_0x5b36d8={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldJson':_0x99c6a2,'area':_0x5e8bc4,'index':_0x53e825},_0x3a71d4={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x99c6a2['id'],'area':_0x5e8bc4,'index':_0x53e825};_0x2efa1e['push']({'id':it['id'],'params':_0x5b36d8}),_0x3ce107[_0x71cd25(0xf7)]({'id':at['id'],'params':_0x3a71d4});}break;case p['PivotTableChangeTypeEnum'][_0x71cd25(0x11a)]:{const {fieldId:_0x14aaf4,newSubtotalType:_0xa0c6e3,oldSubtotalType:_0x50b545}=_0x41f83b,_0x284b4c={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x14aaf4,'subtotalType':_0xa0c6e3};_0x2efa1e[_0x71cd25(0x12c)]({'id':ft['id'],'params':_0x284b4c});const _0x46e39f={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x14aaf4,'subtotalType':_0x50b545};_0x3ce107[_0x71cd25(0xf7)]({'id':ft['id'],'params':_0x46e39f});}break;case p['PivotTableChangeTypeEnum']['RemoveField']:{const {fieldId:_0x5b4793,fieldJson:_0x4251cb,area:_0x29532c,index:_0x4e4edd}=_0x41f83b,_0x96a547={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x5b4793,'index':_0x4e4edd,'area':_0x29532c};_0x2efa1e['push']({'id':at['id'],'params':_0x96a547});const _0x4044af={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldJson':_0x4251cb,'area':_0x29532c,'index':_0x4e4edd};_0x3ce107[_0x71cd25(0xf7)]({'id':it['id'],'params':_0x4044af});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x2ec)]:{const {fieldId:_0xf51090,oldName:_0x158b0c,newName:_0x4a6349}=_0x41f83b,_0x1a192a={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0xf51090,'name':_0x4a6349};_0x2efa1e['push']({'id':st['id'],'params':_0x1a192a});const _0x1b4f3a={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0xf51090,'name':_0x158b0c};_0x3ce107[_0x71cd25(0xf7)]({'id':st['id'],'params':_0x1b4f3a});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0xfa)]:{const {fieldId:_0x23d1a5,oldFilterInfo:_0x202383,newFilterInfo:_0x4551fb}=_0x41f83b,_0x43b1df={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x23d1a5,'filterInfo':_0x4551fb};_0x2efa1e[_0x71cd25(0x12c)]({'id':ct['id'],'params':_0x43b1df});const _0x3b631f={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x23d1a5,'filterInfo':_0x202383};_0x3ce107['unshift']({'id':ct['id'],'params':_0x3b631f});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x1fd)]:{const {fieldId:_0x5108c4,oldSortInfo:_0xc21222,newSortInfo:_0x1a7a86}=_0x41f83b,_0x2a9a34={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x5108c4,'sortInfo':_0x1a7a86};_0x2efa1e[_0x71cd25(0x12c)]({'id':ut['id'],'params':_0x2a9a34});const _0x33332a={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x5108c4,'sortInfo':_0xc21222};_0x3ce107['unshift']({'id':ut['id'],'params':_0x33332a});}break;case p[_0x71cd25(0x24a)]['SetOptions']:{const {oldOptions:_0x45fd39,newOptions:_0xb931e}=_0x41f83b,_0x217b39={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'options':_0xb931e};_0x2efa1e[_0x71cd25(0x12c)]({'id':dt['id'],'params':_0x217b39});const _0x1e091b={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'options':_0x45fd39};_0x3ce107['unshift']({'id':dt['id'],'params':_0x1e091b});}break;case p[_0x71cd25(0x24a)]['UpdateFieldPosition']:{const {oldArea:_0x214163,newArea:_0x274bc8,oldIndex:_0x8f2836,newIndex:_0x4d642e,fieldId:_0x123d42}=_0x41f83b,_0x3e744a={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x123d42,'area':_0x274bc8,'index':_0x4d642e,'oldArea':_0x214163,'oldIndex':_0x8f2836};_0x2efa1e['push']({'id':gt['id'],'params':_0x3e744a});const _0x4aa8af={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x123d42,'area':_0x214163,'index':_0x8f2836,'oldArea':_0x274bc8,'oldIndex':_0x4d642e};_0x3ce107[_0x71cd25(0xf7)]({'id':gt['id'],'params':_0x4aa8af});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x32e)]:{const {oldValuePosition:_0x4b211a,newValuePosition:_0x5cba16,oldIndex:_0x35e9e9,newIndex:_0x1fed72}=_0x41f83b,_0x34c9d3={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'valuePosition':_0x5cba16,'index':_0x1fed72};_0x2efa1e[_0x71cd25(0x12c)]({'id':pt['id'],'params':_0x34c9d3});const _0x547cb8={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'valuePosition':_0x4b211a,'index':_0x35e9e9};_0x3ce107[_0x71cd25(0xf7)]({'id':pt['id'],'params':_0x547cb8});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x38d)]:{const {fieldId:_0x3ee419,collapse:_0x2afa48,item:_0x213af2}=_0x41f83b,_0x1505c8={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x3ee419,'collapse':_0x2afa48,'item':_0x213af2};_0x2efa1e[_0x71cd25(0x12c)]({'id':rt['id'],'params':_0x1505c8});const _0x1bb70e={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x3ee419,'collapse':!_0x2afa48,'item':_0x213af2};_0x3ce107[_0x71cd25(0xf7)]({'id':rt['id'],'params':_0x1bb70e});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x240)]:{const {newFormat:_0x3e515f,oldFormat:_0x2a8a77,fieldId:_0x1f7681}=_0x41f83b,_0x2247b5={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x1f7681,'format':_0x3e515f};_0x2efa1e[_0x71cd25(0x12c)]({'id':lt['id'],'params':_0x2247b5});const _0x21554c={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x1f7681,'format':_0x2a8a77};_0x3ce107[_0x71cd25(0xf7)]({'id':lt['id'],'params':_0x21554c});}break;case p[_0x71cd25(0x24a)][_0x71cd25(0x306)]:{const {tableFieldId:_0x55d17d,oldSourceName:_0x255c2f,newSourceName:_0x2a999e,oldDataFieldId:_0xc9d99c,newDataFieldId:_0x15bf1c}=_0x41f83b,_0x4eec31={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'tableFieldId':_0x55d17d,'sourceName':_0x2a999e,'dataFieldId':_0x15bf1c};_0x2efa1e['push']({'id':ht['id'],'params':_0x4eec31});const _0x2714db={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'tableFieldId':_0x55d17d,'sourceName':_0x255c2f,'dataFieldId':_0xc9d99c};_0x3ce107[_0x71cd25(0xf7)]({'id':ht['id'],'params':_0x2714db});}break;case p[_0x71cd25(0x24a)]['SetValueFilter']:{const {fieldId:_0x22b377,filterInfo:_0x24633d,oldFilterInfo:_0x1665af}=_0x41f83b,_0x58b9b1={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x22b377,'filterInfo':_0x24633d};_0x2efa1e[_0x71cd25(0x12c)]({'id':vt['id'],'params':_0x58b9b1});const _0x5bcecf={'unitId':_0x30d5e5,'subUnitId':_0x2097ba,'pivotTableId':_0x3cfb4a,'fieldId':_0x22b377,'filterInfo':_0x1665af};_0x3ce107['unshift']({'id':vt['id'],'params':_0x5bcecf});}}return{'redos':_0x2efa1e,'undos':_0x3ce107};}function fe(_0x3a8dc3,_0x15a203){const _0x458a4b=_0xdefc56;var _0x286ffc;const _0x3e4add=_0x3a8dc3[_0x458a4b(0x2ba)](exports[_0x458a4b(0x35b)]),{cellInfo:_0x1604e5,view:_0x55ef28,isEmpty:_0xf8a999}=_0x15a203;return(_0x286ffc=_0x3e4add[_0x458a4b(0x267)][_0x458a4b(0x27d)](Jt)(At,{'cellInfo':_0x1604e5,'view':_0x55ef28,'isEmpty':_0xf8a999}))!=null?_0x286ffc:At;}const En=()=>typeof process<'u'&&process[_0xdefc56(0x230)]!=null&&process[_0xdefc56(0x230)][_0xdefc56(0x132)]!=null,Ee={'type':v['CommandType'][_0xdefc56(0x197)],'id':_0xdefc56(0x278),'handler'(_0x3608a2,_0x511663){const _0x839f1a=_0xdefc56;var _0x4b1470;if(!_0x511663)return!0x1;const _0x188283=_0x3608a2[_0x839f1a(0x2ba)](v['IConfigService']);if(!!_0x188283[_0x839f1a(0x11d)](z))return!0x0;const _0x35505e=_0x3608a2[_0x839f1a(0x2ba)](v[_0x839f1a(0x20e)]),_0x86197e=_0x3608a2[_0x839f1a(0x2ba)](exports[_0x839f1a(0xd6)]),{pivotTableId:_0x29697,pivotTableConfig:_0x26baac,collectionConfig:_0x18c1b1,unitId:_0xf6e535,subUnitId:_0x5b17e1}=_0x511663,{sourceRangeInfo:_0x3d2f38,fieldsConfig:_0x2fb918,targetCellInfo:_0x5ecf05}=_0x26baac,_0x1ddbc0=_0x35505e[_0x839f1a(0x2cc)](_0xf6e535);if(!_0x1ddbc0||!_0x1ddbc0[_0x839f1a(0xff)](_0x5b17e1))return!0x1;if(!En()){let _0x143294=0x0;_0x1ddbc0[_0x839f1a(0x1b5)]()[_0x839f1a(0x187)](_0x503ed6=>{const _0x3562e0=_0x839f1a;var _0x367731,_0x1a2257;_0x143294+=(_0x1a2257=(_0x367731=_0x86197e[_0x3562e0(0x336)](_0xf6e535,_0x503ed6['getSheetId']()))==null?void 0x0:_0x367731[_0x3562e0(0x25c)])!=null?_0x1a2257:0x0;});const _0x507247=(_0x4b1470=_0x188283['getConfig'](ue['LS_CONFIG_KEY']))!=null?_0x4b1470:{},{ls:_0x4510d6,pbk:_0x30f7af}=_0x507247;if(!Et(_0x4510d6,_0x30f7af))throw new v[(_0x839f1a(0x2ab))](_0x839f1a(0x29e));const _0x5e086c=St(It,_0x4510d6,_0x30f7af)[_0x839f1a(0x10f)];if(_0x143294>=_0x5e086c)throw new v[(_0x839f1a(0x2ab))](_0x839f1a(0x29e));}if(!_0x18c1b1||!_0x2fb918)return!0x1;const {collection:_0x11ddb5,updateDataFieldList:_0x40c117}=_0x86197e[_0x839f1a(0x21c)](_0x29697,_0x18c1b1,_0x3d2f38,_0x5ecf05);_0x86197e[_0x839f1a(0x2dc)](_0x11ddb5,_0x40c117,_0x3d2f38);const _0x209bdc=new p[(_0x839f1a(0x195))](_0x11ddb5,void 0x0,_0x29697);_0x209bdc['fromJSON'](_0x2fb918);const _0x12301a=JSON[_0x839f1a(0xf2)](JSON[_0x839f1a(0x26e)](_0x26baac));return _0x86197e[_0x839f1a(0x14c)](_0xf6e535,_0x5b17e1,_0x29697,_0x209bdc,_0x12301a),_0x86197e[_0x839f1a(0x2be)]({'unitId':_0xf6e535,'subUnitId':_0x5b17e1,'token':_0x29697,'type':k[_0x839f1a(0x1ff)],'pivotConfig':_0x12301a}),!0x0;}},He={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x3b6f32,_0x35fb48){const _0x5c20f6=_0xdefc56;if(!_0x35fb48)return!0x1;if(!!_0x3b6f32['get'](v['IConfigService'])['getConfig'](z))return!0x0;const {pivotTableId:_0x51f5e0,unitId:_0x116b08,subUnitId:_0x359fbb}=_0x35fb48,_0x3eb69d=_0x3b6f32[_0x5c20f6(0x2ba)](exports[_0x5c20f6(0xd6)]);return _0x3eb69d['getPivotTableConfig'](_0x116b08,_0x359fbb,_0x51f5e0)?(_0x3eb69d[_0x5c20f6(0x2be)]({'unitId':_0x116b08,'subUnitId':_0x359fbb,'token':_0x51f5e0,'type':k[_0x5c20f6(0x2f7)]}),_0x3eb69d[_0x5c20f6(0x16b)](_0x116b08,_0x359fbb,_0x51f5e0),!0x0):!0x1;}},_e={'type':v['CommandType']['MUTATION'],'id':_0xdefc56(0x2b3),'handler'(_0x3a2357,_0x374709){const _0x18ed4a=_0xdefc56;if(!_0x374709)return!0x1;if(!!_0x3a2357[_0x18ed4a(0x2ba)](v[_0x18ed4a(0x37d)])[_0x18ed4a(0x11d)](z))return!0x0;const {pivotTableId:_0xeeef91,targetCellPosition:_0x2c3fc5,unitId:_0x4cdd71,subUnitId:_0x15d14d}=_0x374709,_0x2e1c0b=_0x3a2357[_0x18ed4a(0x2ba)](exports[_0x18ed4a(0xd6)]);if(!_0x2e1c0b[_0x18ed4a(0x388)](_0x374709[_0x18ed4a(0x2ff)]))return!0x1;const _0x56db01=_0x2e1c0b[_0x18ed4a(0x276)](_0xeeef91);if(!_0x56db01)return!0x1;const _0x4df44b=_0x2e1c0b[_0x18ed4a(0x119)](_0x56db01[_0x18ed4a(0x329)],_0x374709[_0x18ed4a(0x2ff)]);if(!_0x4df44b)return!0x1;const _0x42af94=_0x2e1c0b[_0x18ed4a(0x31d)](_0x56db01[_0x18ed4a(0x329)],_0x56db01[_0x18ed4a(0x238)],_0xeeef91);if(!_0x42af94)return!0x1;const _0xe707b0=v[_0x18ed4a(0xbe)][_0x18ed4a(0x36c)](_0x42af94);_0xe707b0['targetCellInfo']={'unitId':_0x4cdd71,'subUnitId':_0x15d14d,'row':_0x2c3fc5[_0x18ed4a(0x35a)],'col':_0x2c3fc5[_0x18ed4a(0x20f)]};const _0x43bfe7=_0x4df44b[_0x18ed4a(0x3a4)]();if(_0x56db01['subUnitId']===_0x15d14d&&_0x56db01[_0x18ed4a(0x329)]===_0x4cdd71)_0x2e1c0b[_0x18ed4a(0x1ca)](_0x4cdd71,_0x15d14d,_0xeeef91,_0xe707b0),_0x2e1c0b[_0x18ed4a(0x2be)]({'unitId':_0x4cdd71,'subUnitId':_0x15d14d,'token':_0xeeef91,'type':k[_0x18ed4a(0xf4)]});else{_0x2e1c0b['addDirtyPivotTable']({'unitId':_0x56db01[_0x18ed4a(0x329)],'subUnitId':_0x56db01['subUnitId'],'token':_0xeeef91,'type':k[_0x18ed4a(0x2f7)]}),_0x2e1c0b[_0x18ed4a(0x16b)](_0x56db01[_0x18ed4a(0x329)],_0x56db01[_0x18ed4a(0x238)],_0xeeef91);const _0x355f2b=_0x2e1c0b[_0x18ed4a(0x21c)](_0xeeef91,_0x43bfe7,_0x42af94[_0x18ed4a(0x362)],_0xe707b0[_0x18ed4a(0x29c)]),_0x1e50fb=new p[(_0x18ed4a(0x195))](_0x355f2b[_0x18ed4a(0x2e3)],void 0x0,_0xeeef91);_0x1e50fb[_0x18ed4a(0xe6)](_0xe707b0[_0x18ed4a(0x1ce)]),_0x2e1c0b[_0x18ed4a(0x14c)](_0x4cdd71,_0x15d14d,_0xeeef91,_0x1e50fb,_0xe707b0),_0x2e1c0b['addDirtyPivotTable']({'unitId':_0x4cdd71,'subUnitId':_0x15d14d,'token':_0xeeef91,'type':k[_0x18ed4a(0x1ff)],'pivotConfig':_0xe707b0});}return!0x0;}},mt={'type':v['CommandType'][_0xdefc56(0x197)],'id':_0xdefc56(0x317),'handler'(_0x2495b2,_0x14ba41){const _0x1f2db3=_0xdefc56;if(!_0x14ba41)return!0x1;if(!!_0x2495b2[_0x1f2db3(0x2ba)](v[_0x1f2db3(0x37d)])[_0x1f2db3(0x11d)](z))return!0x0;const _0x20df7e=_0x2495b2[_0x1f2db3(0x2ba)](exports['SheetsPivotDataSourceModel']),{pivotTableId:_0x2857a9,deleteIds:_0x54040a,collectionJSON:_0x1346d0,dataRangeInfo:_0x241d3b,unitId:_0x47fe8c,subUnitId:_0x1e710f}=_0x14ba41,_0x93574a=_0x20df7e[_0x1f2db3(0x388)](_0x2857a9),_0x20b041=_0x20df7e[_0x1f2db3(0x31d)](_0x47fe8c,_0x1e710f,_0x2857a9);if(!_0x93574a||!_0x20b041)return!0x1;const {collection:_0x2a2ab3,updateDataFieldList:_0x3597f2}=_0x20df7e[_0x1f2db3(0x21c)](_0x2857a9,_0x1346d0,_0x241d3b,_0x20b041[_0x1f2db3(0x29c)]);_0x20df7e['refreshData'](_0x2a2ab3,_0x3597f2,_0x241d3b),_0x93574a[_0x1f2db3(0x136)](_0x2a2ab3);for(const _0x54488c of _0x54040a)_0x20df7e['removeDataField'](_0x241d3b[_0x1f2db3(0x329)],_0x54488c);const _0x24ae1b=_0x20df7e[_0x1f2db3(0x31d)](_0x47fe8c,_0x1e710f,_0x2857a9);return _0x24ae1b[_0x1f2db3(0x362)]=JSON[_0x1f2db3(0xf2)](JSON[_0x1f2db3(0x26e)](_0x241d3b)),_0x20df7e[_0x1f2db3(0x2be)]({'unitId':_0x47fe8c,'subUnitId':_0x1e710f,'token':_0x2857a9,'type':k['Set']}),!0x0;}},qe={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'id':_0xdefc56(0x1da),'handler'(){return!0x0;}};var Un=Object[_0xdefc56(0x111)],Nn=(_0x3a5272,_0x1b69f9,_0x216076,_0x35ff84)=>{const _0x391e6b=_0xdefc56;for(var _0x10f516=_0x35ff84>0x1?void 0x0:_0x35ff84?Un(_0x1b69f9,_0x216076):_0x1b69f9,_0x1d2cb1=_0x3a5272[_0x391e6b(0xd0)]-0x1,_0x3fab29;_0x1d2cb1>=0x0;_0x1d2cb1--)(_0x3fab29=_0x3a5272[_0x1d2cb1])&&(_0x10f516=_0x3fab29(_0x10f516)||_0x10f516);return _0x10f516;},Lt=(_0x373511,_0x14492d)=>(_0x3dfad8,_0x1a3ab6)=>_0x14492d(_0x3dfad8,_0x1a3ab6,_0x373511);exports[_0xdefc56(0x28b)]=class extends v[_0xdefc56(0x229)]{constructor(_0x2e8954,_0x237cb4){const _0x404cdf=_0xdefc56;super(),x(this,_0x404cdf(0x3c6),new Map()),(this[_0x404cdf(0x199)]=_0x2e8954,this[_0x404cdf(0x2bd)]=_0x237cb4);}[_0xdefc56(0x24c)](_0x5429ad){const _0x32da8f=_0xdefc56,{version:_0x5cb2ac}=_0x5429ad,_0x37ff78=this[_0x32da8f(0x3c6)][_0x32da8f(0x2ba)](_0x5cb2ac);_0x37ff78&&(_0x37ff78(_0x5429ad),this['_requestResolvers'][_0x32da8f(0x170)](_0x5cb2ac));}[_0xdefc56(0x351)](_0x513a23){return new Promise((_0x46aa6,_0x3c02ba)=>{const _0x3a8e59=_0x2caf,_0x1116cf=this[_0x3a8e59(0x2b7)]();this[_0x3a8e59(0x3c6)][_0x3a8e59(0x2e9)](_0x1116cf,_0x46aa6),this[_0x3a8e59(0x2bd)][_0x3a8e59(0x3b5)](wt['id'],{'version':_0x1116cf,..._0x513a23},{'onlyLocal':!0x0});});}[_0xdefc56(0x2b7)](){const _0x56d844=_0xdefc56;return Math[_0x56d844(0x363)]()[_0x56d844(0x154)](0x24)[_0x56d844(0x1dc)](0x2,0x10);}},exports['SheetsPivotRPCService']=Nn([Lt(0x0,v[_0xdefc56(0x12f)](v['Injector'])),Lt(0x1,v['Inject'](v[_0xdefc56(0x2e0)]))],exports[_0xdefc56(0x28b)]);const eo={'id':'sheet.mutation.add-group-collection','type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'handler':(_0x58f869,_0x56ccbf)=>{const _0x32f06a=_0xdefc56;if(!_0x56ccbf)return!0x1;if(!!_0x58f869[_0x32f06a(0x2ba)](v[_0x32f06a(0x37d)])[_0x32f06a(0x11d)](z))return!0x0;const {pivotTableId:_0x3c63a0,fieldJSON:_0x47be59,unitId:_0x5a1e2d,subUnitId:_0x4af118}=_0x56ccbf,_0x356c2d=p[_0x32f06a(0x2d8)]['fromJSON'](_0x47be59);if(!_0x356c2d)return!0x1;const _0x495877=_0x58f869[_0x32f06a(0x2ba)](exports['SheetsPivotDataSourceModel']),_0x207dd0=_0x495877[_0x32f06a(0x12d)](_0x5a1e2d),_0x16b501=_0x207dd0['getCollection'](_0x3c63a0);_0x207dd0[_0x32f06a(0x275)](_0x356c2d),_0x16b501[_0x32f06a(0x319)](_0x356c2d[_0x32f06a(0x36b)](),_0x356c2d[_0x32f06a(0x2c4)]());const _0x47e27f=_0x16b501[_0x32f06a(0x353)](_0x356c2d[_0x32f06a(0x318)]());_0x47e27f&&_0x356c2d['refreshGroupField'](_0x47e27f);const _0x243fa9=_0x495877[_0x32f06a(0x31d)](_0x5a1e2d,_0x4af118,_0x3c63a0);return _0x495877[_0x32f06a(0x2be)]({'unitId':_0x5a1e2d,'subUnitId':_0x4af118,'token':_0x3c63a0,'type':k[_0x32f06a(0xf4)],'pivotConfig':_0x243fa9}),!0x0;}},to={'id':_0xdefc56(0x34b),'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'handler':(_0x3550b3,_0x2dcd77)=>{const _0x58d9ba=_0xdefc56;if(!_0x2dcd77)return!0x1;if(!!_0x3550b3['get'](v[_0x58d9ba(0x37d)])[_0x58d9ba(0x11d)](z))return!0x0;const {pivotTableId:_0x3a7b7e,dataFieldId:_0x1de057,unitId:_0x10b89e,subUnitId:_0x13e2d2}=_0x2dcd77,_0x51d7f8=_0x3550b3[_0x58d9ba(0x2ba)](exports[_0x58d9ba(0xd6)]),_0x3d5dc3=_0x51d7f8[_0x58d9ba(0x12d)](_0x10b89e);_0x3d5dc3[_0x58d9ba(0x119)](_0x3a7b7e)[_0x58d9ba(0x2f6)](_0x1de057);let _0x1abd90=!0x0;for(const _0x3ec575 in _0x3d5dc3[_0x58d9ba(0x104)])if(_0x3d5dc3[_0x58d9ba(0x104)][_0x3ec575][_0x58d9ba(0x284)]()[_0x58d9ba(0x1ac)](_0x1de057)){_0x1abd90=!0x1;break;}_0x1abd90&&_0x3d5dc3[_0x58d9ba(0x2d1)](_0x1de057);const _0x11ade1=_0x51d7f8[_0x58d9ba(0x31d)](_0x10b89e,_0x13e2d2,_0x3a7b7e);return _0x51d7f8['addDirtyPivotTable']({'unitId':_0x10b89e,'subUnitId':_0x13e2d2,'token':_0x3a7b7e,'type':k['Set'],'pivotConfig':_0x11ade1}),!0x0;}},oo={'type':v[_0xdefc56(0xb9)]['COMMAND'],'id':_0xdefc56(0x146),async 'handler'(_0xa8ef1d,_0x25bae7){const _0x404ded=_0xdefc56;if(!_0x25bae7)return!0x1;const _0x330cfa=_0xa8ef1d[_0x404ded(0x2ba)](v['ICommandService']),_0x289e69=_0xa8ef1d[_0x404ded(0x2ba)](exports[_0x404ded(0x28b)]),_0x5328a3=_0xa8ef1d[_0x404ded(0x2ba)](v[_0x404ded(0x1d7)]),{pivotTableId:_0x2b03ef,dataFieldId:_0x54a5b4,fieldArea:_0x331e7c,index:_0x573c09,unitId:_0x4016d5,subUnitId:_0x2c6852}=_0x25bae7,_0x325a64=(await _0x289e69[_0x404ded(0x351)]({'unitId':_0x4016d5,'subUnitId':_0x2c6852,'pivotTableId':_0x2b03ef,'params':{'type':B[_0x404ded(0x123)],'addPivotField':{'dataFieldId':_0x54a5b4,'fieldArea':_0x331e7c,'index':_0x573c09}}}))[_0x404ded(0x169)][_0x404ded(0x113)];if(!_0x325a64)return!0x1;const {view:_0x56f7b4,changesets:_0x5ae088,isEmpty:_0x4777ea,pivotTableConfig:_0x512543,shouldBeAddedGroupJSON:_0x44b74d}=_0x325a64,_0x4b7a23=_0x512543['targetCellInfo'],_0x584231=new p[(_0x404ded(0x1a9))]();_0x584231[_0x404ded(0x25b)](_0x56f7b4);const _0xfbbcb5={'cellInfo':_0x4b7a23,'view':_0x584231,'isEmpty':_0x4777ea};if(!await _0xa8ef1d['get'](exports[_0x404ded(0x35b)])[_0x404ded(0xcf)][_0x404ded(0x1d0)](re)(!0x0,_0xfbbcb5))return!0x1;const _0x125185=le(_0xa8ef1d,_0x584231,_0x4b7a23,_0x4777ea),_0x178cd7=fe(_0xa8ef1d,_0xfbbcb5),{undos:_0x1fcf9a,redos:_0x461220}=ae(_0x330cfa,{'pivotTableId':_0x2b03ef,'unitId':_0x4016d5,'subUnitId':_0x2c6852},_0x5ae088);return _0x44b74d&&(_0x461220[_0x404ded(0xf7)]({'id':eo['id'],'params':{'pivotTableId':_0x2b03ef,'fieldJSON':_0x44b74d,'unitId':_0x4016d5,'subUnitId':_0x2c6852}}),_0x1fcf9a[_0x404ded(0x12c)]({'id':to['id'],'params':{'pivotTableId':_0x2b03ef,'dataFieldId':_0x44b74d['id'],'unitId':_0x4016d5,'subUnitId':_0x2c6852}})),v[_0x404ded(0x38c)]([..._0x125185[_0x404ded(0x22f)],..._0x178cd7[_0x404ded(0x22f)],..._0x461220],_0x330cfa),_0x5328a3['pushUndoRedo']({'unitID':_0x4016d5,'redoMutations':[..._0x125185[_0x404ded(0x22f)],..._0x178cd7[_0x404ded(0x22f)],..._0x461220],'undoMutations':[..._0x125185[_0x404ded(0x24b)],..._0x178cd7[_0x404ded(0x24b)],..._0x1fcf9a]}),!0x0;}},no={'type':v[_0xdefc56(0xb9)]['COMMAND'],'id':_0xdefc56(0x144),async 'handler'(_0x4bb477,_0x496445){const _0x2888b6=_0xdefc56;if(!_0x496445)return!0x1;const {sourceDataInfo:_0x1a0138,pivotTableConfig:_0x1da4aa}=_0x496445;if(!_0x1a0138||!_0x1da4aa)return!0x1;const {unitId:_0x13d982,subUnitId:_0x5a11e6,range:_0x142063}=_0x1a0138,_0x5599a0=_0x4bb477[_0x2888b6(0x2ba)](v[_0x2888b6(0x20e)]),_0x47e69c=_0x4bb477['get'](exports['SheetsPivotRPCService']),_0x628df5=_0x4bb477['get'](v[_0x2888b6(0x180)]),_0x56c38a=_0x4bb477[_0x2888b6(0x2ba)](v[_0x2888b6(0x2e0)]),_0x162b9f=_0x5599a0[_0x2888b6(0x2cc)](_0x13d982);if(!_0x162b9f)return!0x1;const _0x12cec8=_0x162b9f['getSheetBySheetId'](_0x5a11e6);if(!_0x12cec8)return!0x1;const _0xbcc044=p[_0x2888b6(0x340)](0x8),_0x1108b5=_0x142063||{'startRow':0x0,'startColumn':0x0,'endRow':_0x12cec8[_0x2888b6(0x1dd)]()-0x1,'endColumn':_0x12cec8[_0x2888b6(0x23c)]()-0x1};_0x1108b5[_0x2888b6(0x1c4)]=v[_0x2888b6(0x2ad)]['NORMAL'];const _0x425a93=(await _0x47e69c[_0x2888b6(0x351)]({'unitId':_0x13d982,'subUnitId':_0x5a11e6,'pivotTableId':_0xbcc044,'params':{'type':B[_0x2888b6(0x367)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x13d982,'sheetName':_0x12cec8['getName'](),'subUnitId':_0x5a11e6,'range':_0x1108b5},'pivotTableId':_0xbcc044,'pivotTableIndexConfig':_0x1da4aa}}}))[_0x2888b6(0x169)][_0x2888b6(0x1b1)];if(!_0x425a93)return!0x1;const {isEmpty:_0x17fba5,fieldsConfig:_0x331401,collectionConfig:_0x112ef3,changesets:_0x516cd2}=_0x425a93,_0x37fe0b=_0x162b9f[_0x2888b6(0x1b5)]()['length'],_0x351649=v[_0x2888b6(0x103)]({'rowCount':_0x12cec8[_0x2888b6(0x1dd)]()-0x1,'columnCount':_0x12cec8['getColumnCount']()-0x1});_0x351649['id']=v['generateRandomId'](),_0x351649[_0x2888b6(0x130)]=_0x162b9f[_0x2888b6(0x131)](''+_0x628df5['t'](_0x2888b6(0x149)));const _0x477169={'index':_0x37fe0b,'sheet':_0x351649,'unitId':_0x13d982},{redos:_0x145d0a}=ae(_0x56c38a,{'pivotTableId':_0xbcc044,'unitId':_0x13d982,'subUnitId':_0x351649['id']},_0x516cd2),_0xe43238=[{'id':V[_0x2888b6(0x1fc)]['id'],'params':_0x477169},{'id':Ee['id'],'params':{'unitId':_0x13d982,'subUnitId':_0x351649['id'],'pivotTableId':_0xbcc044,'pivotTableConfig':{'isEmpty':_0x17fba5,'fieldsConfig':_0x331401,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x13d982,'subUnitId':_0x351649['id']},'sourceRangeInfo':{'subUnitId':_0x5a11e6,'unitId':_0x13d982,'range':_0x1108b5,'sheetName':_0x12cec8[_0x2888b6(0x2c4)]()}},'collectionConfig':_0x112ef3}},..._0x145d0a];return v[_0x2888b6(0x38c)](_0xe43238,_0x56c38a),!0x0;}},io={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x210),async 'handler'(_0xd0d982,_0x2250aa){const _0x3e3a1a=_0xdefc56;var _0x49b0ff,_0x35cda9;const _0x3f561f=_0xd0d982[_0x3e3a1a(0x2ba)](v[_0x3e3a1a(0x2e0)]),_0x44f9ec=_0xd0d982[_0x3e3a1a(0x2ba)](v[_0x3e3a1a(0x20e)]),_0xbbd9df=_0xd0d982[_0x3e3a1a(0x2ba)](v[_0x3e3a1a(0x180)]),_0x4556e6=_0xd0d982['get'](exports[_0x3e3a1a(0x28b)]),_0xbb9b54=_0xd0d982[_0x3e3a1a(0x2ba)](v[_0x3e3a1a(0x1d7)]),_0x322e64=_0xd0d982['get'](exports[_0x3e3a1a(0x3b9)]),_0x48a561=_0xd0d982[_0x3e3a1a(0x2ba)](v[_0x3e3a1a(0x37d)]);if(!_0x2250aa)return!0x1;const {pivotTableConfig:_0x50a6f8,positionType:_0x38df7a}=_0x2250aa,{targetCellInfo:_0x262f43,sourceRangeInfo:_0x2c51a6}=_0x50a6f8,{unitId:_0x47b182,subUnitId:_0x12ee13}=_0x262f43,_0x42a2f8=_0x44f9ec[_0x3e3a1a(0x2cc)](_0x47b182);if(!_0x42a2f8)return!0x1;let _0x2677a3=0x0;_0x42a2f8[_0x3e3a1a(0x1b5)]()['forEach'](_0xf7e524=>{const _0x395dff=_0x3e3a1a;var _0x4b5a69,_0x267d5b;_0x2677a3+=(_0x267d5b=(_0x4b5a69=_0x322e64['getSubUnitPivotConfigs'](_0x47b182,_0xf7e524[_0x395dff(0x25d)]()))==null?void 0x0:_0x4b5a69[_0x395dff(0x25c)])!=null?_0x267d5b:0x0;});const _0x5920ac=(_0x49b0ff=_0x48a561[_0x3e3a1a(0x11d)](ue[_0x3e3a1a(0x36a)]))!=null?_0x49b0ff:{},{ls:_0x505494,pbk:_0x3bcb96}=_0x5920ac;if(!Et(_0x505494,_0x3bcb96))return!0x1;const _0x47b47c=St(It,_0x505494,_0x3bcb96)[_0x3e3a1a(0x10f)];if(_0x2677a3>=_0x47b47c)return!0x1;const _0x5af2da=_0x2250aa[_0x3e3a1a(0x2ff)]||p[_0x3e3a1a(0x340)](0x8),_0x228f4d=(await _0x4556e6['getPivotDisplayConfig']({'unitId':_0x47b182,'subUnitId':_0x12ee13,'pivotTableId':_0x5af2da,'params':{'type':B[_0x3e3a1a(0x2c9)],'addPivotTable':{'sourceRangeInfo':_0x2c51a6,'pivotTableId':_0x5af2da}}}))[_0x3e3a1a(0x169)]['addPivotTable'];if(!_0x228f4d)return!0x1;const {view:_0x1a3631,isEmpty:_0x4aed73,fieldsConfig:_0x3ced80,collectionConfig:_0x143840}=_0x228f4d,_0x56c668=[],_0x499247=[];if(_0x38df7a===Mt['New']){const _0x272442=_0x42a2f8['getSheets']()['length'],_0x49cb21=v[_0x3e3a1a(0x103)]({});_0x49cb21['id']=_0x50a6f8['targetCellInfo'][_0x3e3a1a(0x238)],_0x49cb21[_0x3e3a1a(0x130)]=(_0x35cda9=_0x50a6f8[_0x3e3a1a(0x29c)]['sheetName'])!=null?_0x35cda9:_0x42a2f8['generateNewSheetName'](''+_0xbbd9df['t']('sheets.tabs.sheet'));const _0x3ed71d={'index':_0x272442,'sheet':_0x49cb21,'unitId':_0x47b182},_0x5b7904=V[_0x3e3a1a(0x262)](_0xd0d982,_0x3ed71d);_0x56c668[_0x3e3a1a(0x12c)]({'id':V[_0x3e3a1a(0x189)]['id'],'params':_0x5b7904}),_0x499247['push']({'id':V[_0x3e3a1a(0x389)]['id'],'params':_0x3ed71d});}else{if(!_0x42a2f8[_0x3e3a1a(0xff)](_0x12ee13))return!0x1;const _0x4f6caa=le(_0xd0d982,new p[(_0x3e3a1a(0x1a9))](),_0x262f43,!0x0);_0x499247[_0x3e3a1a(0x12c)](..._0x4f6caa[_0x3e3a1a(0x22f)]),_0x56c668[_0x3e3a1a(0x12c)](..._0x4f6caa['undos']);const _0x39f875={'cellInfo':_0x262f43,'view':_0x1a3631,'isEmpty':_0x4aed73};if(!await _0xd0d982[_0x3e3a1a(0x2ba)](exports['SheetsPivotTableService'])[_0x3e3a1a(0xcf)][_0x3e3a1a(0x1d0)](re)(!0x0,_0x39f875))return!0x1;const _0x315728=fe(_0xd0d982,_0x39f875);_0x499247[_0x3e3a1a(0x12c)](..._0x315728['redos']),_0x56c668[_0x3e3a1a(0x12c)](..._0x315728[_0x3e3a1a(0x24b)]);}return _0x499247[_0x3e3a1a(0x12c)]({'id':Ee['id'],'params':{'unitId':_0x262f43[_0x3e3a1a(0x329)],'subUnitId':_0x262f43[_0x3e3a1a(0x238)],'pivotTableId':_0x5af2da,'pivotTableConfig':{'targetCellInfo':_0x262f43,'sourceRangeInfo':_0x2c51a6,'fieldsConfig':_0x3ced80},'collectionConfig':_0x143840}}),_0x56c668[_0x3e3a1a(0xf7)]({'id':He['id'],'params':{'unitId':_0x47b182,'subUnitId':_0x12ee13,'pivotTableId':_0x5af2da}}),v[_0x3e3a1a(0x38c)](_0x499247,_0x3f561f)&&_0xbb9b54[_0x3e3a1a(0x30e)]({'unitID':_0x47b182,'undoMutations':_0x56c668,'redoMutations':_0x499247}),!0x0;}},ao={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x268),async 'handler'(_0x39c01c,_0x150f94){const _0x2255e1=_0xdefc56;if(!_0x150f94)return!0x1;const _0x367edc=_0x39c01c[_0x2255e1(0x2ba)](v[_0x2255e1(0x2e0)]),_0x11badd=_0x39c01c[_0x2255e1(0x2ba)](exports[_0x2255e1(0x28b)]),_0x25494d=_0x39c01c[_0x2255e1(0x2ba)](v[_0x2255e1(0x1d7)]),{pivotTableId:_0x381060,fieldId:_0x53aa17,area:_0x37071b,index:_0xdaa220,unitId:_0x53fed4,subUnitId:_0xef5a15}=_0x150f94,_0x321989=(await _0x11badd[_0x2255e1(0x351)]({'unitId':_0x53fed4,'subUnitId':_0xef5a15,'pivotTableId':_0x381060,'params':{'type':B[_0x2255e1(0x236)],'movePivotField':{'fieldId':_0x53aa17,'area':_0x37071b,'index':_0xdaa220}}}))['result'][_0x2255e1(0x1de)];if(!_0x321989)return!0x1;const {changesets:_0x372886,view:_0x23af14,isEmpty:_0x36aee0,pivotTableConfig:_0xb9b459}=_0x321989,_0x16a5ee=_0xb9b459['targetCellInfo'],_0x10b6c0=new p[(_0x2255e1(0x1a9))]();_0x10b6c0['formJSON'](_0x23af14);const _0x2f6d10={'cellInfo':_0x16a5ee,'view':_0x10b6c0,'isEmpty':_0x36aee0};if(!await _0x39c01c[_0x2255e1(0x2ba)](exports[_0x2255e1(0x35b)])[_0x2255e1(0xcf)][_0x2255e1(0x1d0)](re)(!0x0,_0x2f6d10))return!0x1;const _0x239d8e=le(_0x39c01c,_0x10b6c0,_0x16a5ee,_0x36aee0),_0x340342=fe(_0x39c01c,_0x2f6d10),{redos:_0x5bf092,undos:_0x541fb9}=ae(_0x367edc,{'pivotTableId':_0x381060,'unitId':_0x53fed4,'subUnitId':_0xef5a15},_0x372886);return v[_0x2255e1(0x38c)]([..._0x239d8e[_0x2255e1(0x22f)],..._0x340342[_0x2255e1(0x22f)],..._0x5bf092],_0x367edc),_0x25494d[_0x2255e1(0x30e)]({'unitID':_0x53fed4,'redoMutations':[..._0x239d8e[_0x2255e1(0x22f)],..._0x340342['redos'],..._0x5bf092],'undoMutations':[..._0x239d8e[_0x2255e1(0x24b)],..._0x340342[_0x2255e1(0x24b)],..._0x541fb9]}),!0x0;}},so={'type':v[_0xdefc56(0xb9)]['COMMAND'],'id':_0xdefc56(0x26f),async 'handler'(_0x19e514,_0x3d7d56){const _0x27571e=_0xdefc56;var _0xe04e53;if(!_0x3d7d56)return!0x1;const _0x9d58dc=_0x19e514[_0x27571e(0x2ba)](v[_0x27571e(0x20e)]),_0x2f43ad=V['getSheetCommandTarget'](_0x9d58dc);if(!_0x2f43ad)return!0x1;const {unitId:_0xf0c72,subUnitId:_0x49e497,workbook:_0x26e4cd}=_0x2f43ad,{row:_0x33c4c6,col:_0x39f3a9}=_0x3d7d56,_0x586646=_0x19e514[_0x27571e(0x2ba)](exports[_0x27571e(0x31f)]),_0x11acdd=_0x586646[_0x27571e(0x28d)](_0xf0c72,_0x49e497,_0x33c4c6,_0x39f3a9);if(!_0x11acdd)return!0x1;const _0xff31ae=(_0xe04e53=_0x586646[_0x27571e(0x293)](_0xf0c72,_0x49e497,_0x11acdd))==null?void 0x0:_0xe04e53['areaInfo'];if(!_0xff31ae)return!0x1;const _0x21e80b=_0x19e514['get'](exports[_0x27571e(0x3b9)])[_0x27571e(0x31d)](_0xf0c72,_0x49e497,_0x11acdd);if(!_0x21e80b)return!0x1;const {rowInfo:_0x1bc196,colInfo:_0x5b3c89}=_0xff31ae,_0x1bd0f2=_0x1bc196[_0x33c4c6]['paths'],_0x5cbb04=_0x5b3c89[_0x39f3a9][_0x27571e(0x3c4)],_0x8ae0bb=_0x1bc196[_0x33c4c6][_0x27571e(0x186)],_0x11c47e=_0x5b3c89[_0x39f3a9][_0x27571e(0x186)],_0x525fe2=_0x1bd0f2[_0x27571e(0x19f)](_0x5cbb04),_0x521e35=_0x21e80b['fieldsConfig'][_0x27571e(0x1c7)][_0x27571e(0xbb)](0x0,_0x8ae0bb),_0x4e7644=_0x21e80b['fieldsConfig'][_0x27571e(0x198)]['slice'](0x0,_0x11c47e),_0x20657c=_0x521e35[_0x27571e(0x19f)](_0x4e7644),_0x7c5b07=_0x525fe2[_0x27571e(0x2e7)]((_0xa5188d,_0x476874)=>[_0xa5188d,_0x20657c[_0x476874]]),_0x3bc3ff=(await _0x19e514[_0x27571e(0x2ba)](exports[_0x27571e(0x28b)])[_0x27571e(0x351)]({'unitId':_0xf0c72,'subUnitId':_0x49e497,'pivotTableId':_0x11acdd,'params':{'type':B[_0x27571e(0x1f7)],'drillDown':{'tuple':_0x7c5b07}}}))['result'][_0x27571e(0x352)];if(!_0x3bc3ff)return!0x1;const {indexes:_0x5045c3,range:_0xa761e3,sourceUnitId:_0x43619a,sourceSubUnitId:_0x4a28ca,formatMap:_0x22ed2f}=_0x3bc3ff,{startRow:_0x5a90dc,endRow:_0x13e006,startColumn:_0xca62d6,endColumn:_0x2db69b}=_0xa761e3,_0x52ad0b=new v[(_0x27571e(0x19d))](),_0xcb5f0d=_0x13e006-_0x5a90dc,_0x57655a=_0x2db69b-_0xca62d6,_0x555d9d={},_0xe75551=V[_0x27571e(0x153)](_0x9d58dc,{'unitId':_0x43619a,'subUnitId':_0x4a28ca});if(!_0xe75551)return!0x1;const _0xf97aa0=te['colStyle'],_0xfb36d1=te[_0x27571e(0x313)],_0x4c01f2=te[_0x27571e(0x313)],_0x4f9856=_0x26e4cd[_0x27571e(0x383)]()[_0x27571e(0x1d2)](_0xf97aa0),_0x49077a=_0x26e4cd[_0x27571e(0x383)]()[_0x27571e(0x1d2)](_0xfb36d1),_0x388ce7=_0x26e4cd['getStyles']()[_0x27571e(0x1d2)](_0x4c01f2),{worksheet:_0x3e7a5e}=_0xe75551;let _0x306dba=0x0;const _0x317aa9=0x1;_0x5045c3['forEach'](_0x2bdef2=>{const _0x3ff178=_0x27571e;for(let _0xd51801=0x0;_0xd51801<=_0x2db69b-_0xca62d6;_0xd51801++)_0x52ad0b[_0x3ff178(0x1d2)](_0x306dba,_0xd51801,_0x3e7a5e[_0x3ff178(0x379)](_0x2bdef2+_0xa761e3[_0x3ff178(0x3be)]+_0x317aa9,_0xd51801));_0x306dba++;});for(let _0x59be0c=_0xca62d6;_0x59be0c<=_0x2db69b;_0x59be0c++){const _0x29cd5b=_0x3e7a5e[_0x27571e(0x379)](_0x5a90dc,_0x59be0c);_0x555d9d[_0x5a90dc]||(_0x555d9d[_0x5a90dc]={}),_0x555d9d[_0x5a90dc][_0x59be0c]={..._0x29cd5b,'s':_0x4f9856};}let _0x36624e=0x1;const _0x129739={},_0x3f2572={};_0x52ad0b[_0x27571e(0x3d1)]((_0x2d7bd9,_0x424812)=>{const _0x444eee=_0x27571e;_0x424812[_0x444eee(0x187)](_0x3f9b49=>{const _0x4c9641=_0x444eee,_0x216652=_0x52ad0b[_0x4c9641(0x32b)](_0x2d7bd9,_0x3f9b49);if(_0x555d9d[_0x36624e]||(_0x555d9d[_0x36624e]={}),_0x555d9d[_0x36624e][_0x3f9b49]={..._0x216652,'s':_0x36624e%0x2===0x0?_0x388ce7:_0x49077a},_0x22ed2f[_0x3f9b49]&&_0x2d7bd9>=0x0){const _0xe30363=_0x36624e%0x2===0x0;let _0x353521=_0xe30363?_0x3f2572[_0x3f9b49]:_0x129739[_0x3f9b49];_0x353521||(_0x353521=_0x26e4cd[_0x4c9641(0x383)]()[_0x4c9641(0x1d2)]({..._0xe30363?_0x4c01f2:_0xfb36d1,'n':{'pattern':_0x22ed2f[_0x3f9b49]}}),_0xe30363?_0x3f2572[_0x3f9b49]=_0x353521:_0x129739[_0x3f9b49]=_0x353521),_0x555d9d[_0x36624e][_0x3f9b49]['s']=_0x353521;}}),_0x36624e++;});const _0x1915a3=new v[(_0x27571e(0x19d))](_0x555d9d),_0x50436c={};_0x1915a3[_0x27571e(0x37b)]((_0x310ae5,_0x26b7b6,_0x3be4d2)=>{_0x50436c[_0x310ae5]||(_0x50436c[_0x310ae5]={}),_0x50436c[_0x310ae5][_0x26b7b6]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x23552d=[],_0x109ac2=[],_0x30257f=_0x26e4cd[_0x27571e(0x1b5)]()[_0x27571e(0xd0)],_0x37bc3c=v['mergeWorksheetSnapshotWithDefault']({'rowCount':Math[_0x27571e(0x1ef)](v['DEFAULT_WORKSHEET_ROW_COUNT'],_0xcb5f0d+0xa),'columnCount':Math[_0x27571e(0x1ef)](v[_0x27571e(0x145)],_0x57655a+0x5)}),_0x1148bd=_0x19e514[_0x27571e(0x2ba)](v[_0x27571e(0x180)]);_0x37bc3c['id']=v[_0x27571e(0x164)](),_0x37bc3c[_0x27571e(0x130)]=_0x26e4cd[_0x27571e(0x131)](''+_0x1148bd['t'](_0x27571e(0x149)));const _0x9feb0c={'index':_0x30257f,'sheet':_0x37bc3c,'unitId':_0xf0c72},_0x475e84=V['InsertSheetUndoMutationFactory'](_0x19e514,_0x9feb0c);_0x109ac2[_0x27571e(0x12c)]({'id':V[_0x27571e(0x389)]['id'],'params':_0x9feb0c}),_0x23552d['push']({'id':V[_0x27571e(0x189)]['id'],'params':_0x475e84}),_0x109ac2['push']({'id':V[_0x27571e(0x1f5)]['id'],'params':{'unitId':_0xf0c72,'subUnitId':_0x37bc3c['id'],'cellValue':_0x555d9d}}),_0x23552d[_0x27571e(0xf7)]({'id':V[_0x27571e(0x1f5)]['id'],'params':{'unitId':_0xf0c72,'subUnitId':_0x37bc3c['id'],'cellValue':_0x50436c}});const _0x33ab05={'startRow':0x0,'startColumn':0x0,'endRow':_0x36624e-0x1,'endColumn':_0x2db69b};_0x109ac2[_0x27571e(0x12c)]({'id':Ot[_0x27571e(0x18c)]['id'],'params':{'unitId':_0xf0c72,'subUnitId':_0x37bc3c['id'],'range':_0x33ab05}}),_0x23552d[_0x27571e(0xf7)]({'id':Ot[_0x27571e(0x1f3)]['id'],'params':{'unitId':_0xf0c72,'subUnitId':_0x37bc3c['id']}});const _0x588715=_0x19e514[_0x27571e(0x2ba)](v[_0x27571e(0x2e0)]);return v[_0x27571e(0x38c)](_0x109ac2,_0x588715)&&_0x19e514[_0x27571e(0x2ba)](v[_0x27571e(0x1d7)])[_0x27571e(0x30e)]({'unitID':_0xf0c72,'undoMutations':_0x23552d,'redoMutations':_0x109ac2}),!0x0;}},ro={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x288),async 'handler'(_0x4a397c,_0x3d60a){const _0x866237=_0xdefc56;if(!_0x3d60a)return!0x1;const _0x4a40f9=_0x4a397c[_0x866237(0x2ba)](v[_0x866237(0x2e0)]),_0x8723c2=_0x4a397c['get'](exports[_0x866237(0x28b)]),_0x12e0d3=_0x4a397c[_0x866237(0x2ba)](v[_0x866237(0x1d7)]),{pivotTableId:_0xfccb24,fieldIds:_0x596578,unitId:_0x360180,subUnitId:_0x5daa78}=_0x3d60a,_0x5cd05f=(await _0x8723c2[_0x866237(0x351)]({'unitId':_0x360180,'subUnitId':_0x5daa78,'pivotTableId':_0xfccb24,'params':{'type':B[_0x866237(0x1ad)],'removePivotField':{'fieldIds':_0x596578}}}))[_0x866237(0x169)][_0x866237(0x2fc)];if(!_0x5cd05f)return!0x1;const {view:_0x17f6e9,changesets:_0x13be21,isEmpty:_0x245fc7,pivotTableConfig:_0x4fee9d}=_0x5cd05f,_0x5b22aa=_0x4fee9d['targetCellInfo'],_0x47085a=new p[(_0x866237(0x1a9))]();_0x47085a[_0x866237(0x25b)](_0x17f6e9);const _0xc321a6={'cellInfo':_0x5b22aa,'view':_0x47085a,'isEmpty':_0x245fc7};if(!await _0x4a397c[_0x866237(0x2ba)](exports[_0x866237(0x35b)])['asyncInterceptor'][_0x866237(0x1d0)](re)(!0x0,_0xc321a6))return!0x1;const _0xe00e60=le(_0x4a397c,_0x47085a,_0x5b22aa,_0x245fc7),_0xec190=fe(_0x4a397c,_0xc321a6),{redos:_0x3ba73f,undos:_0x5f462}=ae(_0x4a40f9,{'pivotTableId':_0xfccb24,'unitId':_0x360180,'subUnitId':_0x5daa78},_0x13be21);return v[_0x866237(0x38c)]([..._0xe00e60[_0x866237(0x22f)],..._0xec190[_0x866237(0x22f)],..._0x3ba73f],_0x4a40f9),_0x12e0d3[_0x866237(0x30e)]({'unitID':_0x360180,'redoMutations':[..._0xe00e60[_0x866237(0x22f)],..._0xec190['redos'],..._0x3ba73f],'undoMutations':[..._0xe00e60['undos'],..._0xec190[_0x866237(0x24b)],..._0x5f462]}),!0x0;}},lo={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x27b),async 'handler'(_0x594400,_0x46d340){const _0x1fb71d=_0xdefc56;var _0x3ca5b1;const _0x4d1205=_0x594400[_0x1fb71d(0x2ba)](v[_0x1fb71d(0x2e0)]),_0xc03809=_0x594400[_0x1fb71d(0x2ba)](exports[_0x1fb71d(0x28b)]),_0x24a7e5=_0x594400[_0x1fb71d(0x2ba)](exports[_0x1fb71d(0x31f)]),_0x59b4d8=_0x594400['get'](v[_0x1fb71d(0x20e)]),_0x33531c=_0x594400[_0x1fb71d(0x2ba)](v[_0x1fb71d(0x1d7)]);if(!_0x46d340)return!0x1;const {unitId:_0x361092,subUnitId:_0x9201f9,row:_0x5bb734,col:_0x17528a,collapse:_0x29b712}=_0x46d340,_0x17eddf=_0x59b4d8[_0x1fb71d(0x2cc)](_0x361092);if(!_0x17eddf||!_0x17eddf[_0x1fb71d(0xff)](_0x9201f9))return!0x1;const _0x2ee25d=_0x24a7e5[_0x1fb71d(0x28d)](_0x361092,_0x9201f9,_0x5bb734,_0x17528a);if(!_0x2ee25d)return!0x1;const _0x3ac44c=_0x24a7e5[_0x1fb71d(0x293)](_0x361092,_0x9201f9,_0x2ee25d);if(!_0x3ac44c)return!0x1;const _0x475fb6=v[_0x1fb71d(0x259)](_0x5bb734,_0x17528a),{rangesInfo:_0x2619d0,areaInfo:_0x997fbd,headerMap:_0x4c0e95}=_0x3ac44c;if(!_0x2619d0||!_0x997fbd||!_0x4c0e95)return!0x1;const _0x1c9827=Object[_0x1fb71d(0x2e2)](_0x2619d0)[_0x1fb71d(0x13f)](_0x1880ea=>_0x2619d0[_0x1880ea][_0x1fb71d(0x1bf)](_0x4ae79b=>v[_0x1fb71d(0x350)][_0x1fb71d(0x1d8)](_0x4ae79b,_0x475fb6)));let _0x570871;_0x1c9827===_0x1fb71d(0x307)?_0x570871=_0x4c0e95[_0x1fb71d(0x338)][_0x17528a]:_0x1c9827==='colRanges'&&(_0x570871=_0x4c0e95[_0x1fb71d(0x3a2)][_0x5bb734]);const _0x21598c=_0x570871==null?void 0x0:_0x570871['tableFieldId'],_0x40fd13=(_0x3ca5b1=_0x24a7e5[_0x1fb71d(0x1b2)](_0x361092,_0x9201f9,_0x5bb734,_0x17528a))==null?void 0x0:_0x3ca5b1['v'];if(_0x40fd13==null||!_0x2ee25d||!_0x21598c)return!0x1;const _0x54de9c=await _0xc03809[_0x1fb71d(0x351)]({'unitId':_0x361092,'subUnitId':_0x9201f9,'pivotTableId':_0x2ee25d,'params':{'type':B[_0x1fb71d(0x200)],'setPivotCollapse':{'tableFieldId':_0x21598c,'collapse':_0x29b712,'item':_0x40fd13}}}),_0x88b513=_0x54de9c==null?void 0x0:_0x54de9c[_0x1fb71d(0x169)]['setPivotCollapse'];if(!_0x88b513)return!0x1;const {view:_0x75bbcd,pivotTableConfig:_0x2987ed,isEmpty:_0x550001,changesets:_0x442ce1}=_0x88b513,_0x1f0df2=new p[(_0x1fb71d(0x1a9))]();_0x1f0df2[_0x1fb71d(0x25b)](_0x75bbcd);const _0x4b4972=_0x2987ed['targetCellInfo'],_0x7bf08a={'cellInfo':_0x4b4972,'view':_0x1f0df2,'isEmpty':_0x550001};if(!await _0x594400[_0x1fb71d(0x2ba)](exports[_0x1fb71d(0x35b)])['asyncInterceptor'][_0x1fb71d(0x1d0)](re)(!0x0,_0x7bf08a))return!0x1;const _0x4a405c=le(_0x594400,_0x1f0df2,_0x4b4972,_0x550001),_0x39ee66=fe(_0x594400,_0x7bf08a),{redos:_0x18748b,undos:_0x1f43f7}=ae(_0x4d1205,{'pivotTableId':_0x2ee25d,'unitId':_0x361092,'subUnitId':_0x9201f9},_0x442ce1);return v[_0x1fb71d(0x38c)]([..._0x4a405c[_0x1fb71d(0x22f)],..._0x39ee66['redos'],..._0x18748b],_0x4d1205),_0x33531c['pushUndoRedo']({'unitID':_0x361092,'redoMutations':[..._0x4a405c[_0x1fb71d(0x22f)],..._0x39ee66[_0x1fb71d(0x22f)],..._0x18748b],'undoMutations':[..._0x4a405c[_0x1fb71d(0x24b)],..._0x39ee66[_0x1fb71d(0x24b)],..._0x1f43f7]}),!0x0;}},co={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x3d2),async 'handler'(_0x3fc90d,_0x22b30c){const _0x41c47a=_0xdefc56;if(!_0x22b30c)return!0x1;const _0x1f871=_0x3fc90d[_0x41c47a(0x2ba)](v[_0x41c47a(0x2e0)]),{pivotTableId:_0x5e6afe,tableFieldId:_0x2c0af2,items:_0x4b9697,unitId:_0x5e1fa7,subUnitId:_0x3e393d,isAll:_0x4334c6}=_0x22b30c,_0x4c9f1a=_0x3fc90d['get'](exports[_0x41c47a(0x28b)]),_0x5808bb=_0x3fc90d[_0x41c47a(0x2ba)](v[_0x41c47a(0x1d7)]),_0x57c772=(await _0x4c9f1a[_0x41c47a(0x351)]({'unitId':_0x5e1fa7,'subUnitId':_0x3e393d,'pivotTableId':_0x5e6afe,'params':{'type':B[_0x41c47a(0x1f4)],'setPivotFilter':{'tableFieldId':_0x2c0af2,'items':_0x4b9697,'isAll':_0x4334c6}}}))[_0x41c47a(0x169)][_0x41c47a(0x1e9)];if(!_0x57c772)return!0x1;const {changesets:_0x25204f,pivotTableConfig:_0x208ccf,isEmpty:_0x1df5c8,view:_0x4deb2f}=_0x57c772,_0x1c1bf7=_0x208ccf['targetCellInfo'],_0x11b278=new p['PivotView']();_0x11b278[_0x41c47a(0x25b)](_0x4deb2f);const _0x35eed7={'cellInfo':_0x1c1bf7,'view':_0x11b278,'isEmpty':_0x1df5c8};if(!await _0x3fc90d[_0x41c47a(0x2ba)](exports[_0x41c47a(0x35b)])[_0x41c47a(0xcf)]['fetchThroughAsyncInterceptors'](re)(!0x0,_0x35eed7))return!0x1;const _0x5effa1=le(_0x3fc90d,_0x11b278,_0x1c1bf7,_0x1df5c8),_0x8c6f94=fe(_0x3fc90d,_0x35eed7),{undos:_0x52b3a1,redos:_0x2a1db0}=ae(_0x1f871,{'pivotTableId':_0x5e6afe,'unitId':_0x5e1fa7,'subUnitId':_0x3e393d},_0x25204f);return v[_0x41c47a(0x38c)]([..._0x5effa1[_0x41c47a(0x22f)],..._0x8c6f94[_0x41c47a(0x22f)],..._0x2a1db0],_0x1f871),_0x5808bb[_0x41c47a(0x30e)]({'unitID':_0x5e1fa7,'redoMutations':[..._0x5effa1['redos'],..._0x8c6f94[_0x41c47a(0x22f)],..._0x2a1db0],'undoMutations':[..._0x5effa1[_0x41c47a(0x24b)],..._0x8c6f94[_0x41c47a(0x24b)],..._0x52b3a1]}),!0x0;}},uo={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0xdc),async 'handler'(_0x38a179,_0x563100){const _0x2e60dc=_0xdefc56;if(!_0x563100)return!0x1;const _0x29cbdf=_0x38a179[_0x2e60dc(0x2ba)](v['ICommandService']),_0x5b275e=_0x38a179[_0x2e60dc(0x2ba)](v['IUndoRedoService']),_0xf710bc=_0x38a179[_0x2e60dc(0x2ba)](exports[_0x2e60dc(0x28b)]),{info:_0x11f322,tableFieldId:_0x257f0f,pivotTableId:_0x2e0ecf,unitId:_0x53de5b,subUnitId:_0x2b31ea}=_0x563100,_0x1a3275=(await _0xf710bc['getPivotDisplayConfig']({'unitId':_0x53de5b,'subUnitId':_0x2b31ea,'pivotTableId':_0x2e0ecf,'params':{'type':B['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x257f0f,'info':_0x11f322}}}))[_0x2e60dc(0x169)][_0x2e60dc(0x3c2)];if(!_0x1a3275)return!0x1;const {changesets:_0x2bf3a4}=_0x1a3275,{redos:_0x2c5d47,undos:_0x346a78}=ae(_0x29cbdf,{'pivotTableId':_0x2e0ecf,'unitId':_0x53de5b,'subUnitId':_0x2b31ea},_0x2bf3a4);return v[_0x2e60dc(0x38c)](_0x2c5d47,_0x29cbdf),_0x5b275e[_0x2e60dc(0x30e)]({'unitID':_0x53de5b,'redoMutations':_0x2c5d47,'undoMutations':_0x346a78}),!0x0;}},fo={'type':v['CommandType'][_0xdefc56(0x391)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x338118,_0x1248f7){const _0x372d64=_0xdefc56;if(!_0x1248f7)return!0x1;const _0x581770=_0x338118[_0x372d64(0x2ba)](v['ICommandService']),_0x431764=_0x338118[_0x372d64(0x2ba)](v['IUndoRedoService']),_0x503061=_0x338118[_0x372d64(0x2ba)](exports[_0x372d64(0x28b)]),{displayName:_0x21f9ab,subtotalType:_0x4d7d14,format:_0x4cadde,tableFieldId:_0x1d2553,pivotTableId:_0x36c734,unitId:_0x54fbd2,subUnitId:_0x1a800e}=_0x1248f7,_0x581bd9=(await _0x503061[_0x372d64(0x351)]({'unitId':_0x54fbd2,'subUnitId':_0x1a800e,'pivotTableId':_0x36c734,'params':{'type':B[_0x372d64(0x349)],'setPivotSetting':{'tableFieldId':_0x1d2553,'displayName':_0x21f9ab,'subtotalType':_0x4d7d14,'format':_0x4cadde}}}))[_0x372d64(0x169)][_0x372d64(0x3a1)];if(!_0x581bd9)return!0x1;const {changesets:_0x269172,view:_0x535928,pivotTableConfig:_0x286650,isEmpty:_0x5e719f}=_0x581bd9,_0x2665df=_0x286650['targetCellInfo'],_0x58021c=new p[(_0x372d64(0x1a9))]();_0x58021c[_0x372d64(0x25b)](_0x535928);const _0x510557={'cellInfo':_0x2665df,'view':_0x58021c,'isEmpty':_0x5e719f};if(!await _0x338118[_0x372d64(0x2ba)](exports['SheetsPivotTableService'])[_0x372d64(0xcf)][_0x372d64(0x1d0)](re)(!0x0,_0x510557))return!0x1;const _0x3356a2=le(_0x338118,_0x58021c,_0x2665df,_0x5e719f),_0x3d2c12=fe(_0x338118,_0x510557),{undos:_0x16fca1,redos:_0x424b70}=ae(_0x581770,{'pivotTableId':_0x36c734,'unitId':_0x54fbd2,'subUnitId':_0x1a800e},_0x269172);return v[_0x372d64(0x38c)]([..._0x3356a2['redos'],..._0x3d2c12[_0x372d64(0x22f)],..._0x424b70],_0x581770),_0x431764[_0x372d64(0x30e)]({'unitID':_0x54fbd2,'redoMutations':[..._0x3356a2['redos'],..._0x3d2c12[_0x372d64(0x22f)],..._0x424b70],'undoMutations':[..._0x3356a2[_0x372d64(0x24b)],..._0x3d2c12['undos'],..._0x16fca1]}),!0x0;}},vo={'type':v[_0xdefc56(0xb9)]['COMMAND'],'id':_0xdefc56(0x2af),async 'handler'(_0x56679b,_0x17c61f){const _0x2003dd=_0xdefc56,_0x130ad4=_0x56679b[_0x2003dd(0x2ba)](v['ICommandService']),_0x5566ed=_0x56679b[_0x2003dd(0x2ba)](exports[_0x2003dd(0x28b)]),_0x517ae7=_0x56679b[_0x2003dd(0x2ba)](v[_0x2003dd(0x1d7)]);if(!_0x17c61f)return!0x1;const {token:_0x4cd448,dataRangeInfo:_0x53c5a2,unitId:_0x16fac6,subUnitId:_0x168479}=_0x17c61f,_0x2b2486=[],_0x5f3373=[],_0x51c074=(await _0x5566ed[_0x2003dd(0x351)]({'unitId':_0x16fac6,'subUnitId':_0x168479,'pivotTableId':_0x4cd448,'params':{'type':B[_0x2003dd(0xe0)],'updatePivotSource':{'dataRangeInfo':_0x53c5a2,'unitId':_0x16fac6,'subUnitId':_0x168479}}}))[_0x2003dd(0x169)][_0x2003dd(0x253)];if(!_0x51c074)return!0x1;const {changesets:_0xbdaff5,deleteIds:_0x23bad1,collectionConfig:_0x5c53e4,oldCollectionConfig:_0x37c480,view:_0x4a0128,isEmpty:_0x50adcf,pivotTableConfig:_0x4cb285}=_0x51c074;_0x5f3373[_0x2003dd(0x12c)]({'id':mt['id'],'params':{'pivotTableId':_0x4cd448,'deleteIds':_0x23bad1,'collectionJSON':_0x5c53e4,'dataRangeInfo':_0x53c5a2,'unitId':_0x16fac6,'subUnitId':_0x168479}}),_0x2b2486['unshift']({'id':mt['id'],'params':{'pivotTableId':_0x4cd448,'deleteIds':[],'collectionJSON':_0x37c480,'dataRangeInfo':_0x4cb285[_0x2003dd(0x362)],'unitId':_0x16fac6,'subUnitId':_0x168479}});const _0x12846c=_0x4cb285[_0x2003dd(0x29c)],_0x3d14f5=new p[(_0x2003dd(0x1a9))]();_0x3d14f5[_0x2003dd(0x25b)](_0x4a0128);const _0x267ec1={'cellInfo':_0x12846c,'view':_0x3d14f5,'isEmpty':_0x50adcf};if(!await _0x56679b[_0x2003dd(0x2ba)](exports[_0x2003dd(0x35b)])['asyncInterceptor'][_0x2003dd(0x1d0)](re)(!0x0,_0x267ec1))return!0x1;const _0x3a82a2=le(_0x56679b,_0x3d14f5,_0x12846c,_0x50adcf),_0x3ee67d=fe(_0x56679b,_0x267ec1),{undos:_0x152a64,redos:_0x34c339}=ae(_0x130ad4,{'pivotTableId':_0x4cd448,'unitId':_0x16fac6,'subUnitId':_0x168479},_0xbdaff5);return v['sequenceExecute']([..._0x3a82a2[_0x2003dd(0x22f)],..._0x3ee67d[_0x2003dd(0x22f)],..._0x5f3373,..._0x152a64],_0x130ad4),_0x517ae7[_0x2003dd(0x30e)]({'unitID':_0x16fac6,'redoMutations':[..._0x3a82a2[_0x2003dd(0x22f)],..._0x3ee67d[_0x2003dd(0x22f)],..._0x5f3373,..._0x152a64],'undoMutations':[..._0x3a82a2['undos'],..._0x3ee67d[_0x2003dd(0x24b)],..._0x2b2486,..._0x34c339]}),!0x0;}},go={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x300),async 'handler'(_0xe12649,_0x58e1c1){const _0x29faf0=_0xdefc56;if(!_0x58e1c1)return!0x1;const _0x1f2e5a=_0xe12649[_0x29faf0(0x2ba)](v[_0x29faf0(0x2e0)]),_0x156620=_0xe12649[_0x29faf0(0x2ba)](exports[_0x29faf0(0x28b)]),_0x340d4b=_0xe12649[_0x29faf0(0x2ba)](v['IUniverInstanceService']),_0x4200bc=_0xe12649[_0x29faf0(0x2ba)](v[_0x29faf0(0x1d7)]),{pivotTableId:_0x4d4f61,position:_0x367116,index:_0x11b98f}=_0x58e1c1,_0x140954=V[_0x29faf0(0x153)](_0x340d4b);if(!_0x140954)return!0x1;const {unitId:_0x3b56fc,subUnitId:_0x62f689}=_0x140954,_0x2f7fb0=(await _0x156620[_0x29faf0(0x351)]({'unitId':_0x3b56fc,'subUnitId':_0x62f689,'pivotTableId':_0x4d4f61,'params':{'type':B[_0x29faf0(0x32e)],'updateValuePosition':{'position':_0x367116,'index':_0x11b98f}}}))[_0x29faf0(0x169)][_0x29faf0(0x14f)];if(!_0x2f7fb0)return!0x1;const {changesets:_0x4e5fd3,view:_0x2bcb57,isEmpty:_0x20af90,pivotTableConfig:_0x470a64}=_0x2f7fb0,_0x549233=_0x470a64[_0x29faf0(0x29c)],_0xbb2883=new p['PivotView']();_0xbb2883['formJSON'](_0x2bcb57);const _0x4ba223=_0xe12649['get'](exports[_0x29faf0(0x35b)]),_0x2b1338={'cellInfo':_0x549233,'view':_0xbb2883,'isEmpty':_0x20af90};if(!await _0x4ba223[_0x29faf0(0xcf)]['fetchThroughAsyncInterceptors'](re)(!0x0,_0x2b1338))return!0x1;const _0x5e2d44=le(_0xe12649,_0xbb2883,_0x549233,_0x20af90),_0x3936fa=fe(_0xe12649,_0x2b1338),{undos:_0x31f2d4,redos:_0x560634}=ae(_0x1f2e5a,{'pivotTableId':_0x4d4f61,'unitId':_0x3b56fc,'subUnitId':_0x62f689},_0x4e5fd3);return v[_0x29faf0(0x38c)]([..._0x5e2d44['redos'],..._0x3936fa[_0x29faf0(0x22f)],..._0x560634],_0x1f2e5a),_0x4200bc[_0x29faf0(0x30e)]({'unitID':_0x3b56fc,'redoMutations':[..._0x5e2d44[_0x29faf0(0x22f)],..._0x3936fa['redos'],..._0x560634],'undoMutations':[..._0x5e2d44[_0x29faf0(0x24b)],..._0x3936fa['undos'],..._0x31f2d4]}),!0x0;}},ho={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x3cf),'handler':(_0x1fb7a3,_0x5eb369)=>{const _0x2daa0a=_0xdefc56,_0x5d9865=_0x1fb7a3[_0x2daa0a(0x2ba)](v[_0x2daa0a(0x2e0)]),_0x1c13ba=_0x1fb7a3[_0x2daa0a(0x2ba)](v[_0x2daa0a(0x1d7)]),_0x234e53=_0x1fb7a3[_0x2daa0a(0x2ba)](exports[_0x2daa0a(0x3b9)]),_0x4ae0c2=_0x1fb7a3[_0x2daa0a(0x2ba)](v['IUniverInstanceService']);if(!_0x5eb369)return!0x1;const _0x510e3b=V['getSheetCommandTarget'](_0x4ae0c2);if(!_0x510e3b)return!0x1;const {unitId:_0x53bf23,subUnitId:_0x263e56,workbook:_0x1460e2}=_0x510e3b,_0x55762b=_0x234e53['getPivotTableConfig'](_0x5eb369[_0x2daa0a(0x167)][_0x2daa0a(0x329)],_0x5eb369[_0x2daa0a(0x167)][_0x2daa0a(0x238)],_0x5eb369['pivotTableId']);if(!_0x55762b)return!0x1;const _0x1969be=_0x1460e2[_0x2daa0a(0xff)](_0x5eb369[_0x2daa0a(0x29c)][_0x2daa0a(0x238)]);if(!_0x1969be)throw new Error(_0x2daa0a(0x1f2));const _0x142e14=_0x1969be[_0x2daa0a(0x1dd)](),_0x3fe6d9=_0x1969be[_0x2daa0a(0x23c)]();if(_0x5eb369[_0x2daa0a(0x29c)][_0x2daa0a(0x35a)]>_0x142e14||_0x5eb369[_0x2daa0a(0x29c)][_0x2daa0a(0x20f)]>_0x3fe6d9)throw new Error(_0x2daa0a(0x321));const _0x27137d=[{'id':_e['id'],'params':{'unitId':_0x53bf23,'subUnitId':_0x5eb369[_0x2daa0a(0x29c)][_0x2daa0a(0x238)],'pivotTableId':_0x5eb369['pivotTableId'],'targetCellPosition':{'row':_0x5eb369[_0x2daa0a(0x29c)]['row'],'col':_0x5eb369[_0x2daa0a(0x29c)][_0x2daa0a(0x20f)]}}}],_0x15239d=[{'id':_e['id'],'params':{'unitId':_0x53bf23,'subUnitId':_0x263e56,'pivotTableId':_0x5eb369[_0x2daa0a(0x2ff)],'targetCellPosition':{'row':_0x55762b['targetCellInfo'][_0x2daa0a(0x35a)],'col':_0x55762b['targetCellInfo'][_0x2daa0a(0x20f)]}}}];return v[_0x2daa0a(0x38c)](_0x27137d,_0x5d9865)&&_0x1c13ba[_0x2daa0a(0x30e)]({'unitID':_0x53bf23,'undoMutations':_0x15239d,'redoMutations':_0x27137d}),!0x0;}},po={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x386),async 'handler'(_0x55b745,_0x549c66){const _0x57829e=_0xdefc56;if(!_0x549c66)return!0x1;const _0xfdb2d3=_0x55b745['get'](v[_0x57829e(0x2e0)]),{pivotTableId:_0x46ca03,fieldId:_0x6f4781,valueFilterInfo:_0x523265,unitId:_0x457693,subUnitId:_0x45746b}=_0x549c66,_0x314805=_0x55b745[_0x57829e(0x2ba)](exports['SheetsPivotRPCService']),_0x51874e=_0x55b745['get'](v[_0x57829e(0x1d7)]),_0x5cf76a=(await _0x314805[_0x57829e(0x351)]({'unitId':_0x457693,'subUnitId':_0x45746b,'pivotTableId':_0x46ca03,'params':{'type':B[_0x57829e(0x1a7)],'setValuePivotFilter':{'tableFieldId':_0x6f4781,'filterInfo':_0x523265}}}))[_0x57829e(0x169)][_0x57829e(0x33c)];if(!_0x5cf76a)return!0x1;const {changesets:_0x37da18,pivotTableConfig:_0x45be65,isEmpty:_0x1017df,view:_0x1795c1}=_0x5cf76a,_0x5133b0=_0x45be65[_0x57829e(0x29c)],_0x4dff37=new p[(_0x57829e(0x1a9))]();_0x4dff37[_0x57829e(0x25b)](_0x1795c1);const _0x360fe1={'cellInfo':_0x5133b0,'view':_0x4dff37,'isEmpty':_0x1017df};if(!await _0x55b745[_0x57829e(0x2ba)](exports[_0x57829e(0x35b)])[_0x57829e(0xcf)][_0x57829e(0x1d0)](re)(!0x0,_0x360fe1))return!0x1;const _0x4dc2c9=le(_0x55b745,_0x4dff37,_0x5133b0,_0x1017df),_0x2dfd3d=fe(_0x55b745,_0x360fe1),{undos:_0x54f3a3,redos:_0x5bfc2d}=ae(_0xfdb2d3,{'pivotTableId':_0x46ca03,'unitId':_0x457693,'subUnitId':_0x45746b},_0x37da18);return v['sequenceExecute']([..._0x4dc2c9[_0x57829e(0x22f)],..._0x2dfd3d[_0x57829e(0x22f)],..._0x5bfc2d],_0xfdb2d3),_0x51874e['pushUndoRedo']({'unitID':_0x457693,'redoMutations':[..._0x4dc2c9[_0x57829e(0x22f)],..._0x2dfd3d[_0x57829e(0x22f)],..._0x5bfc2d],'undoMutations':[..._0x4dc2c9[_0x57829e(0x24b)],..._0x2dfd3d['undos'],..._0x54f3a3]}),!0x0;}},mo={'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'id':_0xdefc56(0x2d0),async 'handler'(_0x306f84,_0xb6f286){const _0x482dce=_0xdefc56;if(!_0xb6f286)return!0x1;const _0x493421=_0x306f84[_0x482dce(0x2ba)](v[_0x482dce(0x2e0)]),_0x271767=_0x306f84[_0x482dce(0x2ba)](v[_0x482dce(0x1d7)]),_0x27adee=_0x306f84[_0x482dce(0x2ba)](exports[_0x482dce(0x28b)]),{pivotTableConfig:_0x220156,pivotTableId:_0x1fa763,unitId:_0x28f4fa,subUnitId:_0x3dd9c6}=_0xb6f286,_0x3fc37a=(await _0x27adee['getPivotDisplayConfig']({'unitId':_0x28f4fa,'subUnitId':_0x3dd9c6,'pivotTableId':_0x1fa763,'params':{'type':B[_0x482dce(0x214)],'setPivotTableConfig':{'pivotTableId':_0x1fa763,'pivotTableConfig':_0x220156}}}))[_0x482dce(0x169)][_0x482dce(0x390)];if(!_0x3fc37a)return!0x1;const {changesets:_0x1ac478}=_0x3fc37a,{redos:_0x1c405b,undos:_0x54064f}=ae(_0x493421,{'pivotTableId':_0x1fa763,'unitId':_0x28f4fa,'subUnitId':_0x3dd9c6},_0x1ac478);return v[_0x482dce(0x38c)](_0x1c405b,_0x493421),_0x271767[_0x482dce(0x30e)]({'unitID':_0x28f4fa,'redoMutations':_0x1c405b,'undoMutations':_0x54064f}),!0x0;}},Io={'type':v[_0xdefc56(0xb9)]['COMMAND'],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x16f4de,_0x2971ab){const _0x4e318d=_0xdefc56;if(!_0x2971ab)return!0x1;const _0x2e2367=_0x16f4de['get'](v[_0x4e318d(0x2e0)]),_0x4e4361=_0x16f4de['get'](v[_0x4e318d(0x1d7)]),_0x38f3ea=_0x16f4de[_0x4e318d(0x2ba)](exports[_0x4e318d(0x28b)]),{resetArea:_0x555545,pivotTableId:_0x1edfc0,unitId:_0x41b8f1,subUnitId:_0x7e3c54}=_0x2971ab,_0x2ee4c7=(await _0x38f3ea['getPivotDisplayConfig']({'unitId':_0x41b8f1,'subUnitId':_0x7e3c54,'pivotTableId':_0x1edfc0,'params':{'type':B[_0x4e318d(0x2b0)],'resetPivotTable':{'pivotTableId':_0x1edfc0,'resetArea':_0x555545}}}))['result'][_0x4e318d(0x311)];if(!_0x2ee4c7)return!0x1;const {changesets:_0x46d04d}=_0x2ee4c7,{redos:_0x5b6dea,undos:_0x40020d}=ae(_0x2e2367,{'pivotTableId':_0x1edfc0,'unitId':_0x41b8f1,'subUnitId':_0x7e3c54},_0x46d04d);return v[_0x4e318d(0x38c)](_0x5b6dea,_0x2e2367),_0x4e4361[_0x4e318d(0x30e)]({'unitID':_0x41b8f1,'redoMutations':_0x5b6dea,'undoMutations':_0x40020d}),!0x0;}},yt={'id':_0xdefc56(0x1cf),'type':v[_0xdefc56(0xb9)][_0xdefc56(0x197)],'handler':(_0x57058b,_0x1d33df)=>{const _0x22f660=_0xdefc56;if(!_0x1d33df)return!0x1;if(!!_0x57058b[_0x22f660(0x2ba)](v[_0x22f660(0x37d)])[_0x22f660(0x11d)](z))return!0x0;const {unitId:_0x12ac3f,subUnitId:_0x1361fd,pivotTableId:_0x3211e1,tableFieldId:_0x39bcff,dateType:_0x3131c2}=_0x1d33df,_0x56c5c5=_0x57058b[_0x22f660(0x2ba)](exports[_0x22f660(0xd6)]),_0x2dc8a9=_0x56c5c5[_0x22f660(0x388)](_0x3211e1);if(!_0x2dc8a9)return!0x1;const _0x31d7a7=_0x2dc8a9[_0x22f660(0x18a)](_0x39bcff);if(!_0x31d7a7)return!0x1;const _0x243ab8=_0x31d7a7[_0x22f660(0x318)](),_0x588d5d=_0x2dc8a9[_0x22f660(0xc0)](_0x243ab8),_0x2ea764=(_0x588d5d==null?void 0x0:_0x588d5d['getName']())+'\x20'+Zt(_0x57058b,_0x3131c2);_0x56c5c5[_0x22f660(0x119)](_0x12ac3f,_0x3211e1)['setDisplayName'](_0x31d7a7['id'],_0x2ea764);const _0x5289cf=_0x2dc8a9['getTableFieldById'](_0x39bcff);if(!_0x5289cf)return!0x1;_0x2dc8a9[_0x22f660(0x344)](_0x5289cf[_0x22f660(0x36b)](),_0x2ea764),_0x31d7a7['setDateType'](_0x3131c2);const _0x3637a3=_0x56c5c5[_0x22f660(0x31d)](_0x12ac3f,_0x1361fd,_0x3211e1);return _0x56c5c5[_0x22f660(0x2be)]({'unitId':_0x12ac3f,'subUnitId':_0x1361fd,'token':_0x3211e1,'type':k[_0x22f660(0xf4)],'pivotConfig':_0x3637a3}),!0x0;}},Co={'id':_0xdefc56(0x14a),'type':v[_0xdefc56(0xb9)][_0xdefc56(0x391)],'handler':(_0x1df82a,_0x55f82a)=>{const _0xe8bbba=_0xdefc56;if(!_0x55f82a)return!0x1;const _0x5c00b7=_0x1df82a['get'](v[_0xe8bbba(0x1d7)]),{unitId:_0x4b0f08,subUnitId:_0x3e2c6b,pivotTableId:_0x87822,tableFieldId:_0x55a964}=_0x55f82a,_0x23e62f=[],_0x1a075b=[],_0x2be445=_0x1df82a[_0xe8bbba(0x2ba)](exports['SheetsPivotTableConfigModel']),_0x1f12b0=_0x2be445[_0xe8bbba(0x119)](_0x4b0f08,_0x87822),_0x103179=_0x2be445[_0xe8bbba(0x31d)](_0x4b0f08,_0x3e2c6b,_0x87822);if(!(_0x103179!=null&&_0x103179[_0xe8bbba(0x1ce)]['dimension']))return!0x1;const _0xb4dc67=Object[_0xe8bbba(0xb6)](_0x103179[_0xe8bbba(0x1ce)][_0xe8bbba(0x2a0)])[_0xe8bbba(0x13f)](_0x43b24f=>_0x43b24f['id']===_0x55a964);if(!_0xb4dc67)return!0x1;const _0x45e040=_0xb4dc67[_0xe8bbba(0x292)];if(!(_0x1f12b0!=null&&_0x1f12b0[_0xe8bbba(0x14b)]))return!0x1;const _0x45f0f6=Object[_0xe8bbba(0xb6)](_0x1f12b0==null?void 0x0:_0x1f12b0[_0xe8bbba(0x14b)])[_0xe8bbba(0x13f)](_0x2351c1=>_0x2351c1['id']===_0x45e040);if(!_0x45f0f6)return!0x1;p['isDateGroupFieldJSON'](_0x45f0f6)&&_0x23e62f[_0xe8bbba(0x12c)]({'id':yt['id'],'params':{..._0x55f82a,'dateType':_0x45f0f6[_0xe8bbba(0x3d0)]}}),_0x1a075b[_0xe8bbba(0x12c)]({'id':yt['id'],'params':{..._0x55f82a}});const _0xf66495=_0x1df82a[_0xe8bbba(0x2ba)](v['ICommandService']);return v[_0xe8bbba(0x38c)](_0x1a075b,_0xf66495)&&_0x5c00b7[_0xe8bbba(0x30e)]({'unitID':_0x4b0f08,'undoMutations':_0x23e62f,'redoMutations':_0x1a075b}),!0x0;}};var Vn=Object[_0xdefc56(0x111)],xn=(_0x17ac89,_0x4e7a88,_0x4e1516,_0x4cf10c)=>{const _0x31945a=_0xdefc56;for(var _0x21c1c0=_0x4cf10c>0x1?void 0x0:_0x4cf10c?Vn(_0x4e7a88,_0x4e1516):_0x4e7a88,_0x3f5d85=_0x17ac89[_0x31945a(0xd0)]-0x1,_0x1119ca;_0x3f5d85>=0x0;_0x3f5d85--)(_0x1119ca=_0x17ac89[_0x3f5d85])&&(_0x21c1c0=_0x1119ca(_0x21c1c0)||_0x21c1c0);return _0x21c1c0;},Me=(_0x77c17,_0x2fc578)=>(_0x28af6e,_0x4e679a)=>_0x2fc578(_0x28af6e,_0x4e679a,_0x77c17);const On=()=>({'runtimeCellData':{},'dirtyRanges':{}}),An=(_0x3180cd,_0x1c8e70,_0x5dfb98)=>{const _0x5c36c5=_0xdefc56,_0x12ca7a=_0x3180cd[_0x5c36c5(0x296)];_0x3180cd[_0x5c36c5(0xc7)](_0xf4e00b=>{const _0xfd4bbe=_0x5c36c5,_0x13de11=_0xf4e00b['getId'](),_0x41df23=_0xf4e00b['getDataFieldId'](),_0x17a9b5=_0xf4e00b[_0xfd4bbe(0x222)](),_0x352608=_0xf4e00b[_0xfd4bbe(0x239)]();_0x1c8e70[_0x41df23]&&_0x1c8e70[_0x41df23]===_0x352608&&_0x17a9b5===_0x352608&&(_0x3180cd['renameField'](_0x13de11,_0x12ca7a[_0xfd4bbe(0x239)](_0x41df23)),_0xf4e00b['setSourceName'](_0x12ca7a[_0xfd4bbe(0x239)](_0x41df23)));}),_0x3180cd[_0x5c36c5(0x10e)](p[_0x5c36c5(0x143)][_0x5c36c5(0x182)],_0x1c34ec=>{const _0x194567=_0x5c36c5,_0x4606cc=_0x1c34ec[_0x194567(0x36b)](),_0x1363ab=_0x1c34ec[_0x194567(0x1b3)](),_0x4d0596=_0x1c34ec['getSourceName'](),_0x3c9d75=_0x1c34ec[_0x194567(0x239)](),_0x4d1c79=_0x1c34ec[_0x194567(0x16f)](),_0x545d51=_0x5dfb98(_0x4d0596,_0x4d1c79);_0x1c8e70[_0x1363ab]&&_0x1c8e70[_0x1363ab]===_0x4d0596&&_0x545d51===_0x3c9d75&&(_0x3180cd[_0x194567(0x344)](_0x4606cc,_0x5dfb98(_0x12ca7a[_0x194567(0x239)](_0x1363ab),_0x4d1c79)),_0x1c34ec[_0x194567(0x2fa)](_0x12ca7a[_0x194567(0x239)](_0x1363ab)));});},Bn=(_0x4b2f09,_0x5444aa,_0x585836)=>{const _0xc2b36e=_0xdefc56;var _0x226756,_0x2fa0f1;const {arrayFormulaCellData:_0x97c2e3,unitData:_0x156e3e}=_0x5444aa,{unitId:_0x4a4252,subUnitId:_0x379dc7}=_0x585836,_0x348763=_0x585836[_0xc2b36e(0x37e)],{startColumn:_0x1fd281,endColumn:_0x18b18f}=_0x348763,_0x5dc980=(_0x226756=_0x97c2e3==null?void 0x0:_0x97c2e3[_0x4a4252])==null?void 0x0:_0x226756[_0x379dc7],_0x2bb735=(_0x2fa0f1=_0x156e3e==null?void 0x0:_0x156e3e[_0x4a4252])==null?void 0x0:_0x2fa0f1[_0x379dc7],_0xcd268a=new Set(),_0x5cef6c=_0x18b18f-_0x1fd281+0x1,{dirtyRanges:_0x337082}=_0x4b2f09;if(_0x337082)for(const {range:_0x1e33e5,sheetId:_0x3216b7,unitId:_0x5008cb}of _0x337082){if(_0x3216b7!==_0x379dc7||_0x4a4252!==_0x5008cb)continue;const _0x22e451=v[_0xc2b36e(0x350)][_0xc2b36e(0x371)](_0x1e33e5,_0x348763);if(_0x22e451){const {startColumn:_0x4c68ea,endColumn:_0x88bcd0}=_0x22e451;for(let _0x5ba1af=_0x4c68ea;_0x5ba1af<=_0x88bcd0;_0x5ba1af++)_0xcd268a[_0xc2b36e(0x2b9)](_0x5ba1af);}}if(_0xcd268a[_0xc2b36e(0x25c)]===_0x5cef6c||_0xcd268a[_0xc2b36e(0x25c)]===_0x5cef6c)return Array['from'](_0xcd268a);if(_0x2bb735){const _0x257a00=_0x2bb735['getMatrix'](),_0x401948=Object['keys'](_0x257a00);for(const _0x3dcb28 of _0x401948){const _0x3db387=Number(_0x3dcb28),_0x4a8a7f=_0x257a00[_0x3db387];if(_0xcd268a['size']===_0x5cef6c)break;for(const _0x1ff473 in _0x4a8a7f){const _0x231b34=Number(_0x1ff473);_0x231b34<_0x1fd281||_0x231b34>_0x18b18f||_0xcd268a['add'](_0x231b34);}}}if(_0x5dc980){const _0x4f8c9a=_0x5dc980[_0xc2b36e(0x16e)](),_0x1a3012=Object[_0xc2b36e(0x2e2)](_0x4f8c9a);for(const _0x2eab9f of _0x1a3012){const _0x251081=Number(_0x2eab9f),_0x2d345c=_0x4f8c9a[_0x251081];if(_0xcd268a[_0xc2b36e(0x25c)]===_0x5cef6c)break;for(const _0x562a04 in _0x2d345c){const _0xe91b7f=Number(_0x562a04);_0xe91b7f<_0x1fd281||_0xe91b7f>_0x18b18f||_0xcd268a['add'](_0xe91b7f);}}}return Array['from'](_0xcd268a);},Wn=_0x102a13=>{const _0x446b0f=_0xdefc56,_0x5915bf=new Set(),_0x12a07c=[];for(const _0x23153a of _0x102a13){const _0x5362d8=_0x23153a[_0x446b0f(0x3be)]+','+_0x23153a[_0x446b0f(0x3ab)]+','+_0x23153a[_0x446b0f(0x142)]+','+_0x23153a[_0x446b0f(0x345)];_0x5915bf[_0x446b0f(0x18d)](_0x5362d8)||(_0x5915bf[_0x446b0f(0x2b9)](_0x5362d8),_0x12a07c[_0x446b0f(0x12c)](_0x23153a));}return _0x12a07c;};let Le=class extends v['Disposable']{constructor(_0x32c21b,_0x1c3759,_0x4f4e1a,_0x12f5eb,_0x26b77f,_0x4c8fd3){const _0x223a41=_0xdefc56;super(),x(this,_0x223a41(0x1fb),new ge['BehaviorSubject'](!0x0)),x(this,'_globalComputedStartHelpFunc',_0x30dce9=>{const _0x48ae57=_0x223a41;this['_globalSubject'][_0x48ae57(0x18e)](!0x1);}),x(this,'_globalComputedEndHelpFunc',_0x3e9014=>{this['_globalSubject']['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x32c21b,this['_configService']=_0x1c3759,this[_0x223a41(0xec)]=_0x4f4e1a,this[_0x223a41(0x2bd)]=_0x12f5eb,this[_0x223a41(0x233)]=_0x26b77f,this[_0x223a41(0x199)]=_0x4c8fd3,this[_0x223a41(0x2fe)](),this['_initPivotDataGetListener']());}[_0xdefc56(0x2fe)](){const _0x2391ae=_0xdefc56;this[_0x2391ae(0x150)](),this[_0x2391ae(0x2fd)](),this[_0x2391ae(0x2ae)](),this[_0x2391ae(0x174)]();}['_initGlobalComputed'](){const _0x3219b2=_0xdefc56;this['_globalComputingSrv'][_0x3219b2(0x316)](this[_0x3219b2(0x1fb)]),p[_0x3219b2(0x195)][_0x3219b2(0x21d)](p[_0x3219b2(0x2bb)][_0x3219b2(0x1ae)],this[_0x3219b2(0x1bc)]),p['PivotTable'][_0x3219b2(0x21d)](p[_0x3219b2(0x2bb)][_0x3219b2(0x30a)],this['_globalComputedEndHelpFunc']);}[_0xdefc56(0x16c)](){const _0x2dc645=_0xdefc56;this[_0x2dc645(0x1c8)](this['_commandService'][_0x2dc645(0x398)](_0x3533cd=>{const _0x6c4bdb=_0x2dc645;_0x3533cd['id']===V[_0x6c4bdb(0xd1)]['id']&&this[_0x6c4bdb(0xcd)][_0x6c4bdb(0xdd)](_0x3533cd[_0x6c4bdb(0x147)]);})),this[_0x2dc645(0x1c8)](this[_0x2dc645(0x2bd)]['onCommandExecuted'](_0x1b850e=>{const _0x2bb0e0=_0x2dc645;if(_0x1b850e['id']!==wt['id'])return;const _0x55593c=_0x1b850e[_0x2bb0e0(0x147)],{unitId:_0x5c693c,subUnitId:_0x18dfa9,pivotTableId:_0x433b6f}=_0x55593c,_0x1ce0c2=_0x55593c['params']['type'],_0x1a2bc8={};switch(_0x1ce0c2){case B['Filter']:{const _0x55041c=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x20d)];if(!_0x55041c)return;const {row:_0x3b75ed,col:_0x5e8eeb,cellData:_0x41e1eb,pivotItemRenderInfoCache:_0x100826,tableFieldId:_0x583a2a}=_0x55041c,_0x45b158=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x55593c[_0x2bb0e0(0x2ff)]);if(!_0x45b158||!_0x100826)return;if(_0x583a2a){const _0x363c73=_0x45b158['getDataFieldByTableId'](_0x583a2a);if(!_0x363c73)return;_0x1a2bc8[_0x2bb0e0(0x20d)]={..._0x45b158[_0x2bb0e0(0x320)](_0x363c73),'tableFieldId':_0x583a2a,'pivotTableId':_0x55593c[_0x2bb0e0(0x2ff)],'filterInfo':_0x45b158[_0x2bb0e0(0x261)](_0x583a2a),'sortInfo':_0x45b158[_0x2bb0e0(0x281)](_0x583a2a),'format':_0x45b158[_0x2bb0e0(0x2bf)](_0x583a2a)};}else{const _0x9b6300=Yt(_0x3b75ed,_0x5e8eeb,_0x41e1eb,_0x45b158,_0x100826),_0x4ed69e=_0x9b6300==null?void 0x0:_0x9b6300[_0x2bb0e0(0x2eb)];if(!_0x4ed69e)return;const _0x1ea3af=_0x45b158[_0x2bb0e0(0x18a)](_0x4ed69e);if(!_0x1ea3af)return;_0x1a2bc8['filter']={..._0x45b158[_0x2bb0e0(0x320)](_0x1ea3af),'tableFieldId':_0x4ed69e,'pivotTableId':_0x55593c[_0x2bb0e0(0x2ff)],'filterInfo':_0x45b158['getFilterInfo'](_0x4ed69e),'sortInfo':_0x45b158[_0x2bb0e0(0x281)](_0x4ed69e),'format':_0x45b158[_0x2bb0e0(0x2bf)](_0x4ed69e)};}}break;case B[_0x2bb0e0(0x1e8)]:{const _0x650a3f=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x1cd)];if(!_0x650a3f)return;const {pivotTableId:_0x23e7ea}=_0x650a3f,_0x5374cd=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x23e7ea);if(!_0x5374cd)return;const _0x19983f=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x23e7ea),_0x150dfd=Qt(_0x5374cd,_0x23e7ea,_0x19983f);_0x1a2bc8['panel']=_0x150dfd;}break;case B['AddPivotField']:{const _0x210c6c=this[_0x2bb0e0(0xcd)]['getPivotTableInstance'](_0x433b6f),_0x3a62c4=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x12d)](_0x5c693c),_0x29e630=_0x3a62c4[_0x2bb0e0(0x119)](_0x433b6f);let _0x589e43=null;const _0x38010f=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f),_0x28c8ee=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x113)];if(!_0x210c6c||!_0x38010f||!_0x28c8ee)return!0x1;const {dataFieldId:_0x47c1e0,fieldArea:_0x418936,index:_0x4d7df2}=_0x28c8ee;_0x210c6c[_0x2bb0e0(0x1e7)]();const _0x2dfcef=_0x210c6c[_0x2bb0e0(0x1a1)](_0x47c1e0,_0x418936,_0x4d7df2);if(_0x2dfcef&&_0x418936===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x182)]){const _0x35d342=_0x2dfcef[_0x2bb0e0(0x36b)](),_0x337dff=_0x210c6c[_0x2bb0e0(0x18a)](_0x35d342);if(_0x337dff){const _0x5e2f35=_0x337dff==null?void 0x0:_0x337dff['getFieldDataType']();_0x210c6c['setSubtotalType'](_0x2dfcef[_0x2bb0e0(0x36b)](),_0x5e2f35===p[_0x2bb0e0(0x366)][_0x2bb0e0(0xc2)]?p[_0x2bb0e0(0x325)][_0x2bb0e0(0x19a)]:p['PivotSubtotalTypeEnum']['count']);}const _0x464e5c=_0x210c6c['getValueIndex'](),_0x5adb11=_0x210c6c[_0x2bb0e0(0x171)](),_0x1316c1=_0x210c6c[_0x2bb0e0(0x10a)](p[_0x2bb0e0(0x143)]['Value']);if(_0x464e5c===-0x1&&_0x1316c1>0x1){const _0x36c00a=_0x5adb11===p['PivotTableValuePositionEnum'][_0x2bb0e0(0x134)]?p[_0x2bb0e0(0xd9)][_0x2bb0e0(0x266)]:_0x5adb11,_0xf5db40=_0x36c00a===p[_0x2bb0e0(0xd9)][_0x2bb0e0(0x21f)]?p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x21f)]:p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)];_0x210c6c[_0x2bb0e0(0x14f)](_0x36c00a,_0x210c6c[_0x2bb0e0(0x10a)](_0xf5db40));}}else{if(_0x2dfcef&&(_0x418936===p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x21f)]||_0x418936===p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x266)])){const _0x576efb=_0x2dfcef['getId'](),_0x4a78d9=_0x210c6c[_0x2bb0e0(0x18a)](_0x576efb);if(_0x4a78d9&&(_0x4a78d9==null?void 0x0:_0x4a78d9[_0x2bb0e0(0x28f)]())===p['PivotDataFieldDataTypeEnum'][_0x2bb0e0(0x184)]){const _0x16a442=_0x4a78d9[_0x2bb0e0(0xe1)]();if(_0x16a442&&_0x210c6c[_0x2bb0e0(0xb1)](_0x2dfcef[_0x2bb0e0(0x36b)](),_0x16a442),!_0x29e630['getFieldIds']()[_0x2bb0e0(0x1bf)](_0x3b4f2a=>{const _0x5bdcb0=_0x2bb0e0,_0x201ebc=_0x29e630[_0x5bdcb0(0x353)](_0x3b4f2a);return p[_0x5bdcb0(0x39d)](_0x201ebc)?_0x201ebc[_0x5bdcb0(0x225)]()[_0x5bdcb0(0x364)]===_0x47c1e0:!0x1;})){const _0x3f3137=_0x3a62c4[_0x2bb0e0(0x1cc)](),_0x31f537=un(_0x4a78d9[_0x2bb0e0(0x172)],_0x4a78d9[_0x2bb0e0(0xea)]),_0x2b7a56=_0x4a78d9[_0x2bb0e0(0x2c4)]()+_0x2bb0e0(0x151)+Zt(this[_0x2bb0e0(0x199)],_0x31f537),_0x184df8=new p[(_0x2bb0e0(0x10c))](_0x3f3137,_0x2b7a56,p[_0x2bb0e0(0x340)](0x3),_0x4a78d9['getId'](),_0x31f537);_0x3a62c4[_0x2bb0e0(0x275)](_0x184df8),_0x29e630[_0x2bb0e0(0x319)](_0x3f3137,_0x2b7a56),_0x210c6c['addFieldWithSourceId'](_0x3f3137,_0x418936,(_0x4d7df2!=null?_0x4d7df2:0x0)+0x1),_0x589e43=_0x184df8;}}}}const _0x1b1258=_0x210c6c[_0x2bb0e0(0x245)](),_0xc68e62=_0x210c6c['query']()[_0x2bb0e0(0x3a4)]();let _0x16eb0c;if(_0x589e43){_0x16eb0c=_0x589e43[_0x2bb0e0(0x3a4)]();const _0x108664=_0x589e43['getId']();_0x29e630[_0x2bb0e0(0x2f6)](_0x108664);let _0x172b54=!0x0;for(const _0xc80a05 in _0x3a62c4['collections'])if(_0x3a62c4[_0x2bb0e0(0x104)][_0xc80a05]['getFieldIds']()['includes'](_0x108664)){_0x172b54=!0x1;break;}_0x172b54&&_0x3a62c4[_0x2bb0e0(0x2d1)](_0x108664);}const _0x3a5aef=_0x210c6c['endCollectChangeset']();_0x1a2bc8['addPivotField']={'view':_0xc68e62,'changesets':_0x3a5aef,'isEmpty':_0x1b1258,'pivotTableConfig':_0x38010f,'shouldBeAddedGroupJSON':_0x16eb0c};}break;case B[_0x2bb0e0(0x2c9)]:{const _0x1257b5=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x14c)];if(!_0x1257b5)return;const _0x205500=_0x1257b5[_0x2bb0e0(0x362)],_0x2c3c54=_0x1257b5[_0x2bb0e0(0x2ff)],{collection:_0x344571}=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x108)]({'unitId':_0x205500[_0x2bb0e0(0x329)],'sheetName':_0x205500[_0x2bb0e0(0x1d4)],'subUnitId':_0x205500['subUnitId'],'range':_0x205500['range']}),_0x2440df=new p[(_0x2bb0e0(0x195))](_0x344571,void 0x0,_0x2c3c54),_0x4ab085=_0x2440df[_0x2bb0e0(0x370)](),_0x1add32=_0x2440df['toJSON'](),_0x324721=_0x344571[_0x2bb0e0(0x3a4)]();_0x1a2bc8[_0x2bb0e0(0x14c)]={'view':_0x4ab085,'fieldsConfig':_0x1add32,'collectionConfig':_0x324721,'isEmpty':_0x2440df[_0x2bb0e0(0x245)]()};}break;case B[_0x2bb0e0(0x236)]:{const _0x5c87c0=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x1de)];if(!_0x5c87c0)return;const {fieldId:_0x4d0a67,area:_0x587052,index:_0x32060f}=_0x5c87c0,_0x17da8e=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x17da8e)return;const _0x2ad8fc=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f);if(!_0x2ad8fc)return;_0x2ad8fc[_0x2bb0e0(0x1e7)]();const {area:_0x25dc5b,index:_0x5c6518}=_0x2ad8fc[_0x2bb0e0(0x274)](_0x4d0a67);if(_0x2ad8fc[_0x2bb0e0(0x124)](_0x4d0a67,_0x587052,_0x32060f),_0x587052===p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x182)]&&_0x2ad8fc[_0x2bb0e0(0x328)](_0x4d0a67)['getSubtotal']()===void 0x0){const _0x5da09b=_0x2ad8fc[_0x2bb0e0(0x328)](_0x4d0a67);if(_0x5da09b&&_0x5da09b[_0x2bb0e0(0x16f)]()===void 0x0){const _0x29f28a=_0x2ad8fc['getDataFieldByTableId'](_0x4d0a67);if(_0x29f28a){const _0x3d68d4=_0x29f28a==null?void 0x0:_0x29f28a[_0x2bb0e0(0x28f)]();_0x2ad8fc[_0x2bb0e0(0x1f0)](_0x4d0a67,_0x3d68d4===p['PivotDataFieldDataTypeEnum'][_0x2bb0e0(0xc2)]?p[_0x2bb0e0(0x325)][_0x2bb0e0(0x19a)]:p['PivotSubtotalTypeEnum']['count']);}}}const _0x22d6f7=_0x2ad8fc[_0x2bb0e0(0x171)](),_0x5c1158=_0x2ad8fc[_0x2bb0e0(0x226)](),_0x2b87fc=_0x2ad8fc[_0x2bb0e0(0x10a)](p[_0x2bb0e0(0x143)]['Value'])>0x1;if(_0x2b87fc&&_0x25dc5b===_0x587052&&(_0x587052===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x21f)]&&_0x22d6f7===p[_0x2bb0e0(0xd9)]['Row']||_0x587052===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)]&&_0x22d6f7===p['PivotTableValuePositionEnum'][_0x2bb0e0(0x266)])){let _0x3b9a05=_0x5c1158;_0x5c6518<=_0x5c1158&&_0x3b9a05--,_0x32060f<=_0x5c1158&&_0x3b9a05++,_0x2ad8fc['updateValuePosition'](_0x22d6f7,_0x3b9a05);}else _0x2b87fc&&(_0x25dc5b===p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x21f)]&&_0x22d6f7===p['PivotTableValuePositionEnum']['Row']||_0x25dc5b===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)]&&_0x22d6f7===p['PivotTableValuePositionEnum'][_0x2bb0e0(0x266)])&&_0x5c1158>=_0x5c6518&&_0x2ad8fc[_0x2bb0e0(0x14f)](_0x22d6f7,_0x5c1158-0x1),_0x2b87fc&&(_0x587052===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x21f)]&&_0x22d6f7===p['PivotTableValuePositionEnum'][_0x2bb0e0(0x21f)]||_0x587052===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)]&&_0x22d6f7===p[_0x2bb0e0(0xd9)]['Column'])&&_0x5c1158>=_0x32060f&&_0x2ad8fc['updateValuePosition'](_0x22d6f7,_0x5c1158+0x1);const _0x172b15=_0x2ad8fc['query'](),_0x1ab496=_0x2ad8fc[_0x2bb0e0(0x245)](),_0x43e918=_0x2ad8fc[_0x2bb0e0(0x31e)]();_0x1a2bc8[_0x2bb0e0(0x1de)]={'view':_0x172b15[_0x2bb0e0(0x3a4)](),'changesets':_0x43e918,'isEmpty':_0x1ab496,'pivotTableConfig':_0x17da8e};}break;case B['RemovePivotField']:{const _0x34e2ac=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x2fc)];if(!_0x34e2ac)return;const _0x37a3c5=_0x34e2ac[_0x2bb0e0(0xbd)],_0x433eae=this['_sheetsPivotDataSourceModel'][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x433eae)return!0x1;const _0x56f415=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f);if(!_0x56f415)return!0x1;_0x56f415[_0x2bb0e0(0x1e7)]();for(const _0x80fe37 of _0x37a3c5){const {area:_0x54bb05}=_0x56f415[_0x2bb0e0(0x274)](_0x80fe37);_0x54bb05===p[_0x2bb0e0(0x143)]['Value']&&_0x56f415[_0x2bb0e0(0x3b1)](_0x80fe37),(_0x54bb05===p['PivotTableFiledAreaEnum'][_0x2bb0e0(0x21f)]||_0x54bb05===p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)])&&_0x56f415[_0x2bb0e0(0x2d6)](_0x80fe37),_0x56f415[_0x2bb0e0(0x206)](_0x80fe37);}const _0x6d19bb=_0x56f415[_0x2bb0e0(0x245)](),_0x21e5dc=_0x56f415[_0x2bb0e0(0x370)]()[_0x2bb0e0(0x3a4)](),_0x89cdd3=_0x56f415[_0x2bb0e0(0x31e)]();_0x1a2bc8['removePivotField']={'changesets':_0x89cdd3,'pivotTableConfig':_0x433eae,'isEmpty':_0x6d19bb,'view':_0x21e5dc};}break;case B[_0x2bb0e0(0x1f4)]:{const _0x3a5ff5=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x1e9)];if(!_0x3a5ff5)return;const {tableFieldId:_0x10c021,items:_0x2ddd12,isAll:_0x3873df}=_0x3a5ff5,_0x50b367=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f),_0x3f0fae=this['_sheetsPivotDataSourceModel'][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x50b367||!_0x3f0fae)return;_0x50b367['startCollectChangeset'](),_0x50b367['setLabelFilterInfo'](_0x10c021,{'type':p[_0x2bb0e0(0x2df)][_0x2bb0e0(0x299)],'list':_0x2ddd12,'isAll':_0x3873df});const _0x3d9137=_0x50b367[_0x2bb0e0(0x245)](),_0x2b4d56=_0x50b367['query']()[_0x2bb0e0(0x3a4)](),_0x8c3090=_0x50b367['endCollectChangeset']();_0x1a2bc8['setPivotFilter']={'view':_0x2b4d56,'changesets':_0x8c3090,'isEmpty':_0x3d9137,'pivotTableConfig':_0x3f0fae};}break;case B[_0x2bb0e0(0x1a7)]:{const _0x12db1f=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x33c)];if(!_0x12db1f)return;const {tableFieldId:_0x15bba7,filterInfo:_0x8a2dda}=_0x12db1f,_0x29482f=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x433b6f),_0x4ce28a=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x29482f||!_0x4ce28a)return;_0x29482f[_0x2bb0e0(0x1e7)](),_0x29482f[_0x2bb0e0(0x331)](_0x15bba7,_0x8a2dda);const _0x54b2be=_0x29482f[_0x2bb0e0(0x245)](),_0x58ce8f=_0x29482f[_0x2bb0e0(0x370)]()[_0x2bb0e0(0x3a4)](),_0xb47a19=_0x29482f['endCollectChangeset']();_0x1a2bc8[_0x2bb0e0(0x33c)]={'view':_0x58ce8f,'changesets':_0xb47a19,'isEmpty':_0x54b2be,'pivotTableConfig':_0x4ce28a};}break;case B[_0x2bb0e0(0x160)]:{const _0xd9f8d1=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x3c2)];if(!_0xd9f8d1)return;const {tableFieldId:_0x125e01,info:_0x2fbac6}=_0xd9f8d1,_0x4f50d6=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f),_0xe1a5bb=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x4f50d6||!_0xe1a5bb)return;_0x4f50d6[_0x2bb0e0(0x1e7)](),_0x4f50d6['setSortInfo'](_0x125e01,_0x2fbac6);const _0x53a4e6=_0x4f50d6[_0x2bb0e0(0x245)](),_0x12f778=_0x4f50d6['query']()[_0x2bb0e0(0x3a4)](),_0x6c363b=_0x4f50d6['endCollectChangeset']();_0x1a2bc8[_0x2bb0e0(0x3c2)]={'view':_0x12f778,'changesets':_0x6c363b,'isEmpty':_0x53a4e6,'pivotTableConfig':_0xe1a5bb};}break;case B[_0x2bb0e0(0x349)]:{const _0x4afac3=_0x55593c['params']['setPivotSetting'];if(!_0x4afac3)return;const {tableFieldId:_0x1a839c,displayName:_0x4c399c,subtotalType:_0x5b594a,format:_0x3ba9bb}=_0x4afac3,_0x50b81c=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f),_0x1c10d3=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x50b81c||!_0x1c10d3)return;_0x50b81c[_0x2bb0e0(0x1e7)](),_0x4c399c!==void 0x0&&_0x50b81c['renameField'](_0x1a839c,_0x4c399c),_0x5b594a!==void 0x0&&_0x50b81c[_0x2bb0e0(0x1f0)](_0x1a839c,_0x5b594a),_0x3ba9bb!==void 0x0&&_0x50b81c[_0x2bb0e0(0xb1)](_0x1a839c,_0x3ba9bb);const _0x59cdf7=_0x50b81c['isEmpty'](),_0x4bb761=_0x50b81c[_0x2bb0e0(0x370)]()[_0x2bb0e0(0x3a4)](),_0xe08d01=_0x50b81c[_0x2bb0e0(0x31e)]();_0x1a2bc8['setPivotSetting']={'changesets':_0xe08d01,'pivotTableConfig':_0x1c10d3,'isEmpty':_0x59cdf7,'view':_0x4bb761};}break;case B['UpdatePivotSource']:{const _0x18b787=_0x55593c[_0x2bb0e0(0x147)]['updatePivotSource'];if(!_0x18b787)return;const {dataRangeInfo:_0xfb90b8,unitId:_0x1d3dda,subUnitId:_0x271257}=_0x18b787,_0x419324=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x1d3dda,_0x271257,_0x433b6f),_0x4a9b7f=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f);if(!this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x119)](_0x1d3dda,_0x433b6f)||!_0x4a9b7f||!_0x419324)return;const _0x4ee5b6=this[_0x2bb0e0(0xcd)]['getUpdateRangeDeleteIds'](_0x1d3dda,_0x433b6f,_0xfb90b8),_0x7c572d=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x119)](_0x1d3dda,_0x433b6f)[_0x2bb0e0(0x3a4)](),{collection:_0x1faa40}=this[_0x2bb0e0(0xcd)]['createCollectionWithDataRange']({'unitId':_0xfb90b8[_0x2bb0e0(0x329)],'sheetName':_0xfb90b8[_0x2bb0e0(0x1d4)],'subUnitId':_0xfb90b8[_0x2bb0e0(0x238)],'range':_0xfb90b8[_0x2bb0e0(0x37e)]}),_0x50fc6f=_0x1faa40['toJSON']();_0x4a9b7f[_0x2bb0e0(0x1e7)]();const _0x57054c=this[_0x2bb0e0(0xcd)]['getDataFieldManager'](_0x1d3dda)[_0x2bb0e0(0x29a)]()||p[_0x2bb0e0(0x220)];_0x4a9b7f[_0x2bb0e0(0x273)](_0x190942=>{const _0x56977d=_0x2bb0e0,_0x3c877a=_0x190942[_0x56977d(0x1b3)]();if(!_0x1faa40[_0x56977d(0xee)](_0x3c877a)){const _0x359dd8=_0x1faa40[_0x56977d(0x158)](_0x190942[_0x56977d(0x222)]());if(_0x359dd8){_0x4a9b7f['updateFieldSourceInfo'](_0x190942[_0x56977d(0x36b)](),_0x359dd8['getName'](),_0x359dd8[_0x56977d(0x36b)]());const {area:_0x572b75}=_0x4a9b7f[_0x56977d(0x274)](_0x190942['getId']());let _0x5b3656=_0x190942[_0x56977d(0x222)]();const _0x415d51=_0x190942[_0x56977d(0x239)]();if(_0x572b75===p[_0x56977d(0x143)][_0x56977d(0x182)]){const _0x4622e3=_0x190942[_0x56977d(0x16f)]();_0x5b3656=_0x57054c(_0x359dd8[_0x56977d(0x2c4)](),_0x4622e3);}_0x415d51!==_0x5b3656&&_0x4a9b7f['renameField'](_0x190942['getId'](),_0x5b3656);}else _0x4a9b7f[_0x56977d(0x206)](_0x190942[_0x56977d(0x36b)]());}});const _0x3262ba=_0x4a9b7f[_0x2bb0e0(0x245)](),_0x410a18=_0x4a9b7f[_0x2bb0e0(0x370)]()[_0x2bb0e0(0x3a4)](),_0x520c23=_0x4a9b7f[_0x2bb0e0(0x31e)]();_0x1a2bc8[_0x2bb0e0(0x253)]={'view':_0x410a18,'changesets':_0x520c23,'isEmpty':_0x3262ba,'pivotTableConfig':_0x419324,'collectionConfig':_0x50fc6f,'oldCollectionConfig':_0x7c572d,'deleteIds':_0x4ee5b6};}break;case B[_0x2bb0e0(0x32e)]:{const _0x4c1021=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x14f)];if(!_0x4c1021)return;const {position:_0x4c06aa,index:_0x3adb8d}=_0x4c1021,_0x20a9bb=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x20a9bb)return!0x1;const _0x2a0a1f=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f);if(!_0x2a0a1f)return!0x1;_0x2a0a1f['startCollectChangeset'](),_0x2a0a1f[_0x2bb0e0(0x14f)](_0x4c06aa,_0x3adb8d);const _0x13f9b1=_0x2a0a1f['isEmpty'](),_0x5a5a8e=_0x2a0a1f[_0x2bb0e0(0x370)]()['toJSON'](),_0x554cb9=_0x2a0a1f[_0x2bb0e0(0x31e)]();_0x1a2bc8[_0x2bb0e0(0x14f)]={'changesets':_0x554cb9,'pivotTableConfig':_0x20a9bb,'isEmpty':_0x13f9b1,'view':_0x5a5a8e};}break;case B[_0x2bb0e0(0x200)]:{const _0x21cf7d=_0x55593c[_0x2bb0e0(0x147)]['setPivotCollapse'];if(!_0x21cf7d)return;const {tableFieldId:_0x7f2e84,collapse:_0x2863f5,item:_0x472b3d}=_0x21cf7d,_0xfbb73b=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f),_0x550695=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0xfbb73b||!_0x550695)return;_0xfbb73b[_0x2bb0e0(0x1e7)](),_0xfbb73b[_0x2bb0e0(0x3c7)](_0x7f2e84,_0x2863f5,_0x472b3d);const _0xf9e84d=_0xfbb73b[_0x2bb0e0(0x245)](),_0x68f58e=_0xfbb73b['query']()[_0x2bb0e0(0x3a4)](),_0x59645d=_0xfbb73b['endCollectChangeset']();_0x1a2bc8[_0x2bb0e0(0x1d1)]={'view':_0x68f58e,'isEmpty':_0xf9e84d,'pivotTableConfig':_0x550695,'changesets':_0x59645d};}break;case B[_0x2bb0e0(0x214)]:{const _0x5b0a49=_0x55593c['params']['setPivotTableConfig'];if(!_0x5b0a49)return;const {pivotTableConfig:_0x544d85}=_0x5b0a49,_0x585cea=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x388)](_0x433b6f),_0x54d6d7=this[_0x2bb0e0(0xcd)]['getPivotTableConfig'](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x585cea||!_0x54d6d7)return;_0x585cea[_0x2bb0e0(0x1e7)](),cn(_0x585cea,_0x544d85);const _0x2fdd1f=_0x585cea[_0x2bb0e0(0x245)](),_0x4902b9=_0x585cea[_0x2bb0e0(0x370)]()['toJSON'](),_0x3efa27=_0x585cea[_0x2bb0e0(0x31e)]();_0x1a2bc8[_0x2bb0e0(0x390)]={'view':_0x4902b9,'isEmpty':_0x2fdd1f,'pivotTableConfig':{..._0x54d6d7,'fieldsConfig':_0x585cea[_0x2bb0e0(0x3a4)]()},'changesets':_0x3efa27};}break;case B[_0x2bb0e0(0x2b0)]:{const _0xffe3d7=_0x55593c[_0x2bb0e0(0x147)][_0x2bb0e0(0x311)];if(!_0xffe3d7)return;const _0x1b3660=this['_sheetsPivotDataSourceModel'][_0x2bb0e0(0x388)](_0x433b6f),_0x28c8a9=this['_sheetsPivotDataSourceModel'][_0x2bb0e0(0x31d)](_0x5c693c,_0x18dfa9,_0x433b6f);if(!_0x1b3660||!_0x28c8a9)return;_0x1b3660[_0x2bb0e0(0x1e7)](),dn(_0x1b3660,_0xffe3d7['resetArea']);const _0x3d4cae=_0x1b3660[_0x2bb0e0(0x370)]()[_0x2bb0e0(0x3a4)](),_0x7dbb99=_0x1b3660[_0x2bb0e0(0x31e)]();_0x1a2bc8['resetPivotTable']={'view':_0x3d4cae,'isEmpty':!0x0,'pivotTableConfig':{..._0x28c8a9,'fieldsConfig':_0x1b3660['toJSON']()},'changesets':_0x7dbb99};}break;case B['AddPivotTableWithConfig']:{const _0x26b593=_0x55593c[_0x2bb0e0(0x147)]['addPivotTableWithConfig'];if(!_0x26b593)return;const _0x5a6335=_0x26b593[_0x2bb0e0(0x362)],_0x3f1260=_0x26b593[_0x2bb0e0(0x2ff)],{collection:_0x8fc0c0}=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x108)]({'unitId':_0x5a6335[_0x2bb0e0(0x329)],'sheetName':_0x5a6335[_0x2bb0e0(0x1d4)],'subUnitId':_0x5a6335[_0x2bb0e0(0x238)],'range':_0x5a6335[_0x2bb0e0(0x37e)]}),_0x26f6ec=new p[(_0x2bb0e0(0x195))](_0x8fc0c0,void 0x0,_0x3f1260),_0x3f939e=_0x8fc0c0[_0x2bb0e0(0x284)](),{rows:_0x3f91e4,columns:_0x45ad33,filters:_0x751ac2,values:_0x36abe2}=_0x26b593[_0x2bb0e0(0x2c1)];_0x26f6ec[_0x2bb0e0(0x1e7)]();for(const {field:_0xc21969,selectedItems:_0x18f4d7}of _0x3f91e4||[]){const _0x489a5b=_0x3f939e[_0xc21969];if(_0x489a5b){const _0x38ac46=_0x26f6ec[_0x2bb0e0(0x1a1)](_0x489a5b,p[_0x2bb0e0(0x143)][_0x2bb0e0(0x21f)]);_0x18f4d7&&_0x38ac46&&_0x26f6ec[_0x2bb0e0(0xfc)](_0x38ac46[_0x2bb0e0(0x36b)](),{'type':p[_0x2bb0e0(0x2df)]['ManualFilter'],'list':_0x18f4d7,'isAll':!0x1});}}for(const {field:_0x270b6e,selectedItems:_0x4c91b2}of _0x45ad33||[]){const _0x5336c8=_0x3f939e[_0x270b6e];if(_0x5336c8){const _0x56cb09=_0x26f6ec[_0x2bb0e0(0x1a1)](_0x5336c8,p[_0x2bb0e0(0x143)][_0x2bb0e0(0x266)]);_0x4c91b2&&_0x56cb09&&_0x26f6ec[_0x2bb0e0(0xfc)](_0x56cb09[_0x2bb0e0(0x36b)](),{'type':p[_0x2bb0e0(0x2df)][_0x2bb0e0(0x299)],'list':_0x4c91b2,'isAll':!0x1});}}for(const {field:_0x1392cb,selectedItems:_0x5efa9a}of _0x751ac2||[]){const _0x3bcada=_0x3f939e[_0x1392cb];if(_0x3bcada){const _0x4822ed=_0x26f6ec['addFieldWithSourceId'](_0x3bcada,p[_0x2bb0e0(0x143)][_0x2bb0e0(0x14d)]);_0x5efa9a&&_0x4822ed&&_0x26f6ec['setLabelFilterInfo'](_0x4822ed['getId'](),{'type':p['PivotFilterTypeEnum'][_0x2bb0e0(0x299)],'list':_0x5efa9a,'isAll':!0x1});}}for(const {field:_0x31a387,subTotalType:_0x54a5c3,formatString:_0x8813e8}of _0x36abe2||[]){const _0x4d97f6=_0x8fc0c0[_0x2bb0e0(0x353)](_0x3f939e[_0x31a387]);if(!_0x4d97f6)continue;const _0x2e3e84=_0x3f939e[_0x31a387];if(_0x2e3e84){const _0xe52ddb=_0x26f6ec[_0x2bb0e0(0x1a1)](_0x2e3e84,p['PivotTableFiledAreaEnum']['Value']);if(_0xe52ddb){if(_0x54a5c3!==void 0x0){_0x26f6ec[_0x2bb0e0(0x1f0)](_0xe52ddb[_0x2bb0e0(0x36b)](),_0x54a5c3);const _0x4462cb=this[_0x2bb0e0(0xcd)][_0x2bb0e0(0x12d)](_0x5a6335['unitId'])[_0x2bb0e0(0x29a)]()||p[_0x2bb0e0(0x220)],_0x110104=_0x8fc0c0[_0x2bb0e0(0x239)](_0x2e3e84),_0xc77800=_0x4462cb(_0x110104,_0x54a5c3);_0x26f6ec[_0x2bb0e0(0x344)](_0xe52ddb[_0x2bb0e0(0x36b)](),_0xc77800);}else{if(_0x4d97f6){const _0x9fe6a1=_0x4d97f6==null?void 0x0:_0x4d97f6[_0x2bb0e0(0x28f)]();_0x26f6ec['setSubtotalType'](_0xe52ddb['getId'](),_0x9fe6a1===p['PivotDataFieldDataTypeEnum'][_0x2bb0e0(0xc2)]?p['PivotSubtotalTypeEnum']['sum']:p[_0x2bb0e0(0x325)][_0x2bb0e0(0x10f)]);}}_0x8813e8&&_0x26f6ec['setFieldFormat'](_0xe52ddb[_0x2bb0e0(0x36b)](),_0x8813e8);}}}const _0x32b234=_0x26f6ec['query'](),_0xb3ce2b=_0x26f6ec[_0x2bb0e0(0x3a4)](),_0x47246e=_0x26f6ec[_0x2bb0e0(0x245)](),_0x5d1f00=_0x26f6ec['endCollectChangeset'](),_0x57ee18=_0x8fc0c0[_0x2bb0e0(0x3a4)]();_0x1a2bc8[_0x2bb0e0(0x1b1)]={'view':_0x32b234,'fieldsConfig':_0xb3ce2b,'collectionConfig':_0x57ee18,'isEmpty':_0x47246e,'changesets':_0x5d1f00};}break;case B[_0x2bb0e0(0x1f7)]:{const _0x4048d9=nn(this['_injector'],_0x55593c);if(!_0x4048d9)return;const {range:_0x521222,sourceSubUnitId:_0x1885a7,sourceUnitId:_0x2cbe09,formatMap:_0x4719e1,indexes:_0x4e44b2}=_0x4048d9;_0x1a2bc8[_0x2bb0e0(0x352)]={'range':_0x521222,'sourceSubUnitId':_0x1885a7,'sourceUnitId':_0x2cbe09,'formatMap':_0x4719e1,'indexes':_0x4e44b2};}break;}this[_0x2bb0e0(0x2bd)][_0x2bb0e0(0x3b5)](Ft['id'],{'version':_0x55593c[_0x2bb0e0(0x301)],'result':_0x1a2bc8},{'onlyLocal':!0x0});}));}[_0xdefc56(0x2ae)](){const _0x5095d4=_0xdefc56;this[_0x5095d4(0x1c8)](this[_0x5095d4(0x2bd)][_0x5095d4(0x398)](_0x43b3fd=>{const _0x15b988=_0x5095d4;if(_0x43b3fd['id']!==_t['id'])return;const _0x586da4=_0x43b3fd[_0x15b988(0x147)];return this[_0x15b988(0xcd)][_0x15b988(0x1b4)](_0x586da4['textInfo']),!0x0;}));}[_0xdefc56(0x150)](){const _0x193b0b=_0xdefc56;this[_0x193b0b(0xcd)][_0x193b0b(0x294)][_0x193b0b(0x359)](_0x1c26f3=>{const _0xe3fac=_0x193b0b;switch(_0x1c26f3[_0xe3fac(0xeb)]){case Se[_0xe3fac(0x2b9)]:_0x1c26f3[_0xe3fac(0x1c5)]&&_0x1c26f3[_0xe3fac(0x29c)]&&this[_0xe3fac(0x1e0)](_0x1c26f3['token'],_0x1c26f3['dataRangeInfo'],_0x1c26f3['targetCellInfo']);break;case Se[_0xe3fac(0x170)]:{const {unitId:_0x6e2e69,subUnitId:_0x2e0eb0,token:_0x13d04e}=_0x1c26f3;_0x6e2e69&&_0x2e0eb0&&_0x13d04e&&this['removeSourceRangeChange'](_0x6e2e69,_0x2e0eb0,_0x13d04e);}break;case Se['update']:{const {token:_0xb2f078,oldSourceRangeInfo:_0x2ee055,dataRangeInfo:_0x1291f6,targetCellInfo:_0x7ef3cd}=_0x1c26f3,{unitId:_0x90b39a,subUnitId:_0x565ec7}=_0x2ee055||{};_0x90b39a&&_0x565ec7&&_0xb2f078&&this[_0xe3fac(0x30f)](_0x90b39a,_0x565ec7,_0xb2f078),_0x1291f6&&_0x7ef3cd&&this['handleSourceRangeChange'](_0xb2f078,_0x1291f6,_0x7ef3cd);}break;}});}[_0xdefc56(0x174)](){const _0x67c4d6=_0xdefc56;this['_sheetsPivotDataSourceModel'][_0x67c4d6(0x308)]['subscribe'](_0x5aa7e0=>{const _0x90dbce=_0x67c4d6;Object[_0x90dbce(0x2e2)](_0x5aa7e0)[_0x90dbce(0x187)](_0xe6f32a=>{const _0x1602bc=_0x90dbce,_0x658123=this[_0x1602bc(0xcd)][_0x1602bc(0x276)](_0xe6f32a);if(_0x658123){const _0x3f1a83=this['_sheetsPivotDataSourceModel'][_0x1602bc(0x31d)](_0x658123==null?void 0x0:_0x658123[_0x1602bc(0x329)],_0x658123==null?void 0x0:_0x658123[_0x1602bc(0x238)],_0xe6f32a);_0x3f1a83&&(this['handleSourceRangeChange'](_0xe6f32a,_0x3f1a83['sourceRangeInfo'],_0x3f1a83['targetCellInfo']),this[_0x1602bc(0x1c3)]([{'unitId':_0x658123[_0x1602bc(0x329)],'subUnitId':_0x658123['subUnitId'],'token':_0xe6f32a}]));}});});}[_0xdefc56(0x2fd)](){const _0x28d0b8=_0xdefc56;this[_0x28d0b8(0xcd)]['viewData$'][_0x28d0b8(0x359)](_0x5266a8=>{const _0x4b8b96=_0x28d0b8,{unitId:_0x5642bd,subUnitId:_0x438ac2,pivotTableId:_0x1ecfc2}=_0x5266a8;_0x5642bd&&_0x438ac2&&_0x1ecfc2&&this[_0x4b8b96(0x1c3)]([{'unitId':_0x5642bd,'subUnitId':_0x438ac2,'token':_0x1ecfc2}]);});}[_0xdefc56(0x1c3)](_0x4e8ca2){const _0x5a9d38=_0xdefc56,_0xf78ba6={};_0x4e8ca2['forEach'](_0x1397dc=>{var _0x4d8692,_0x5827fd;const {unitId:_0x5c580c,subUnitId:_0x1e3781,token:_0x409aca}=_0x1397dc;_0xf78ba6[_0x5c580c]=(_0x4d8692=_0xf78ba6[_0x5c580c])!=null?_0x4d8692:{},_0xf78ba6[_0x5c580c][_0x1e3781]=(_0x5827fd=_0xf78ba6[_0x5c580c][_0x1e3781])!=null?_0x5827fd:{},_0xf78ba6[_0x5c580c][_0x1e3781][_0x409aca]=!0x0;}),this[_0x5a9d38(0x2bd)][_0x5a9d38(0x3b5)](qe['id'],_0xf78ba6);}[_0xdefc56(0x30f)](_0x534b94,_0x5295bf,_0x47ef92){this['_featureCalculationManagerService']['remove'](_0x534b94,_0x5295bf,[_0x47ef92]);}[_0xdefc56(0x1e0)](_0x167213,_0x15349a,_0x30d093){const _0x4dbc42=_0xdefc56,{unitId:_0xe3209a,subUnitId:_0x41db82}=_0x15349a;this['_featureCalculationManagerService'][_0x4dbc42(0x18d)](_0x30d093[_0x4dbc42(0x329)],_0x30d093['subUnitId'],_0x167213)&&this[_0x4dbc42(0x30f)](_0xe3209a,_0x41db82,_0x167213);const _0x96b560={'sheetId':_0x41db82,..._0x15349a};this[_0x4dbc42(0xec)][_0x4dbc42(0x377)](_0x30d093[_0x4dbc42(0x329)],_0x30d093[_0x4dbc42(0x238)],_0x167213,{'unitId':_0x30d093[_0x4dbc42(0x329)],'subUnitId':_0x30d093['subUnitId'],'dependencyRanges':[_0x96b560],'getDirtyData':(_0x2e37c0,_0x118e2b)=>{const _0x36b871=_0x4dbc42,_0x43607b=this[_0x36b871(0xcd)],_0x4c142d=_0x43607b[_0x36b871(0x276)](_0x167213);if(!_0x4c142d)return On();const {unitId:_0x170fc4,subUnitId:_0x12e1e4}=_0x4c142d,_0x436e24=Bn(_0x2e37c0,_0x118e2b,_0x15349a);if(_0x436e24['length']>0x0){const _0x3aabf4=_0x43607b['getCollection'](_0xe3209a,_0x167213),_0x146cfb=_0x3aabf4[_0x36b871(0x284)](),_0x4c7853=this[_0x36b871(0x372)](_0x15349a[_0x36b871(0x329)],_0x15349a[_0x36b871(0x238)],_0x118e2b),_0x4e7749={},_0xc34150=this[_0x36b871(0xcd)][_0x36b871(0x12d)](_0x170fc4)['getAutoDisplayNameFunction']()||p[_0x36b871(0x220)],_0xfcbbe4=[];for(const _0x224316 of _0x436e24){const _0x51f43b=_0x224316-(_0x15349a[_0x36b871(0x37e)][_0x36b871(0x142)]||0x0),_0xf4ba83=_0x146cfb[_0x51f43b];_0xfcbbe4[_0x36b871(0x12c)](_0xf4ba83),_0x4e7749[_0xf4ba83]=_0x3aabf4['getFieldById'](_0xf4ba83)[_0x36b871(0x2c4)](),_0x43607b[_0x36b871(0x12d)](_0xe3209a)[_0x36b871(0x1df)](_0xf4ba83,_0x15349a,_0x51f43b,_0x4c7853);}_0x3aabf4[_0x36b871(0x304)](_0xfcbbe4)[_0x36b871(0x187)](_0x6383c6=>{const _0x411b83=_0x36b871,[_0x544d14,_0x1cfa24]=_0x6383c6,_0x44224c=_0x3aabf4[_0x411b83(0x353)](_0x544d14),_0xe56ddb=_0x3aabf4[_0x411b83(0x353)](_0x1cfa24);_0x44224c&&_0xe56ddb&&_0x44224c[_0x411b83(0x1c1)](_0xe56ddb);}),_0x3aabf4[_0x36b871(0x2e6)]();const _0x1de791=_0x43607b['getPivotTableInstance'](_0x167213);if(_0x1de791){An(_0x1de791,_0x4e7749,_0xc34150),_0x1de791[_0x36b871(0x36d)](!0x0);const _0x4e593b=_0x1de791[_0x36b871(0x370)](),_0x2cb691=_0x43607b['getPivotTableConfig'](_0x170fc4,_0x12e1e4,_0x167213),_0x5b5f1a=_0x43607b[_0x36b871(0x12d)](_0xe3209a)['toJSON']();_0x43607b['updateView'](_0x170fc4,_0x12e1e4,k[_0x36b871(0xf4)],_0x167213,_0x4e593b,_0x2cb691,_0x5b5f1a,!0x0);}}return this[_0x36b871(0x22c)](_0x170fc4,_0x12e1e4,_0x167213);}});}['getMatrixFromRunTimeData'](_0x38f7f8,_0x4ef3d9,_0x35b814){var _0x1add1f,_0xc0f853;const {arrayFormulaCellData:_0x393a10,unitData:_0x2db1c7}=_0x35b814,_0x4d621f=(_0x1add1f=_0x393a10==null?void 0x0:_0x393a10[_0x38f7f8])==null?void 0x0:_0x1add1f[_0x4ef3d9],_0x1f3436=(_0xc0f853=_0x2db1c7==null?void 0x0:_0x2db1c7[_0x38f7f8])==null?void 0x0:_0xc0f853[_0x4ef3d9];return{'arrayFormulaCellDataMatrix':_0x4d621f,'unitDataMatrix':_0x1f3436};}[_0xdefc56(0x22c)](_0xbc2820,_0x49ea15,_0x1383ce){const _0x5cd389=_0xdefc56,_0x5802b7=this[_0x5cd389(0xcd)][_0x5cd389(0x2a7)](_0xbc2820,_0x49ea15,_0x1383ce),_0x337230=[],_0x385404=new v[(_0x5cd389(0x19d))]();if(_0x5802b7){const {rangeCache:_0xe60385,matrix:_0x5b2c50,oldRangeCache:_0x3e2cef,oldMatrix:_0x1eb1e9}=_0x5802b7,_0x1f5a36=nt(_0x3e2cef),_0xdca02f=nt(_0xe60385);_0x337230['push'](..._0xdca02f,..._0x1f5a36),_0x1eb1e9&&_0x3e2cef&&_0x1f5a36[_0x5cd389(0x187)](_0xbc971a=>{const _0x5d218c=_0x5cd389;for(let _0x226ff4=_0xbc971a['startRow'];_0x226ff4<=_0xbc971a[_0x5d218c(0x3ab)];_0x226ff4++)for(let _0x3fac93=_0xbc971a[_0x5d218c(0x142)];_0x3fac93<=_0xbc971a['endColumn'];_0x3fac93++)_0x385404[_0x5d218c(0x399)](_0x226ff4,_0x3fac93);}),_0x5b2c50&&_0xdca02f&&_0xdca02f[_0x5cd389(0x187)](_0x1d2fb6=>{const _0x47c3c4=_0x5cd389;for(let _0x25334a=_0x1d2fb6[_0x47c3c4(0x3be)];_0x25334a<=_0x1d2fb6[_0x47c3c4(0x3ab)];_0x25334a++)for(let _0x29346f=_0x1d2fb6[_0x47c3c4(0x142)];_0x29346f<=_0x1d2fb6['endColumn'];_0x29346f++)_0x385404[_0x47c3c4(0x1d2)](_0x25334a,_0x29346f,_0x5b2c50[_0x47c3c4(0x32b)](_0x25334a,_0x29346f));});}const _0x2da28b={};return _0x2da28b[_0xbc2820]={[_0x49ea15]:Wn(_0x337230)},{'runtimeCellData':{[_0xbc2820]:{[_0x49ea15]:_0x385404}},'dirtyRanges':_0x2da28b};}[_0xdefc56(0x2e1)](){}};Le=xn([Me(0x0,v[_0xdefc56(0x12f)](exports[_0xdefc56(0xd6)])),Me(0x1,v['IConfigService']),Me(0x2,v[_0xdefc56(0x12f)](ve[_0xdefc56(0xf3)])),Me(0x3,v['Inject'](v[_0xdefc56(0x2e0)])),Me(0x4,v[_0xdefc56(0x12f)](ve[_0xdefc56(0xfb)])),Me(0x5,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)]))],Le);var kn=Object[_0xdefc56(0x111)],Ln=(_0x21b93d,_0x513b42,_0x498c70,_0x40c1b7)=>{const _0x29b5e5=_0xdefc56;for(var _0x5e7d17=_0x40c1b7>0x1?void 0x0:_0x40c1b7?kn(_0x513b42,_0x498c70):_0x513b42,_0x5c3310=_0x21b93d[_0x29b5e5(0xd0)]-0x1,_0x503dc5;_0x5c3310>=0x0;_0x5c3310--)(_0x503dc5=_0x21b93d[_0x5c3310])&&(_0x5e7d17=_0x503dc5(_0x5e7d17)||_0x5e7d17);return _0x5e7d17;},et=(_0x384ea3,_0x394006)=>(_0xeda262,_0x27031a)=>_0x394006(_0xeda262,_0x27031a,_0x384ea3);let je=class extends v[_0xdefc56(0x229)]{constructor(_0x47cb49,_0x167b7c,_0x1e47f0,_0x4bbae6){const _0x48f96b=_0xdefc56;super(),x(this,_0x48f96b(0x34a),new v[(_0x48f96b(0x34f))]()),(this[_0x48f96b(0x2b6)]=_0x47cb49,this[_0x48f96b(0xd7)]=_0x167b7c,this[_0x48f96b(0xba)]=_0x1e47f0,this[_0x48f96b(0xe2)]=_0x4bbae6,this['_initClearSelectionCommandInterceptor']());}['_initClearSelectionCommandInterceptor'](){const _0x231d04=_0xdefc56;this['disposeWithMe'](this['_sheetInterceptorService'][_0x231d04(0x3af)]({'getMutations':_0x428a71=>{const _0x41e513=_0x231d04;if(_0x428a71['id']===V[_0x41e513(0x2fb)]['id']||_0x428a71['id']===V[_0x41e513(0x2f4)]['id']){const _0x41ae0c=[],_0x1d4dba=[],_0x3ddb4f=this[_0x41e513(0xba)][_0x41e513(0x279)]()[_0x41e513(0x2e7)](_0x313e5c=>_0x313e5c['range']),_0x33ea66=V['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x33ea66)return{'redos':[],'undos':[]};const {unitId:_0x31da83,subUnitId:_0x384c6f}=_0x33ea66,_0x24e8a7={},_0x286e98=this[_0x41e513(0xe2)][_0x41e513(0x336)](_0x31da83,_0x384c6f);if(_0x286e98!=null&&_0x286e98['size'])for(const [_0x1dab7a,_0x25488a]of _0x286e98){const {unitId:_0x36cf81,subUnitId:_0x422a83,row:_0x5031a5,col:_0x54baab}=_0x25488a[_0x41e513(0x29c)];_0x36cf81===_0x33ea66[_0x41e513(0x329)]&&_0x422a83===_0x33ea66[_0x41e513(0x238)]&&(_0x24e8a7[_0x5031a5+'-'+_0x54baab]=_0x1dab7a);}return _0x3ddb4f&&_0x33ea66&&_0x3ddb4f['forEach'](_0xbf3a2c=>{const _0x1e8f85=_0x41e513;v[_0x1e8f85(0x15d)][_0x1e8f85(0x1e5)](_0xbf3a2c,(_0x2b5f19,_0x499d3f)=>{const _0x5963a6=_0x1e8f85,_0x5867a6=_0x2b5f19+'-'+_0x499d3f;if(_0x24e8a7[_0x5867a6]){const _0x20a004=_0x24e8a7[_0x5867a6];_0x41ae0c[_0x5963a6(0x12c)]({'id':He['id'],'params':{'unitId':_0x31da83,'subUnitId':_0x384c6f,'pivotTableId':_0x20a004}});const _0x5b5e40=this[_0x5963a6(0xe2)][_0x5963a6(0x119)](_0x31da83,_0x20a004),_0x2b1028=this[_0x5963a6(0xe2)][_0x5963a6(0x31d)](_0x31da83,_0x384c6f,_0x20a004);_0x1d4dba['push']({'id':Ee['id'],'params':{'unitId':_0x31da83,'subUnitId':_0x384c6f,'pivotTableId':_0x20a004,'pivotTableConfig':_0x2b1028,'collectionConfig':_0x5b5e40}});}});}),{'redos':_0x41ae0c,'undos':_0x1d4dba};}return{'redos':[],'undos':[]};}}));}};je=Ln([et(0x0,v['IUniverInstanceService']),et(0x1,v['Inject'](V[_0xdefc56(0x38b)])),et(0x2,v[_0xdefc56(0x12f)](V['SheetsSelectionsService'])),et(0x3,v['Inject'](exports[_0xdefc56(0x3b9)]))],je);function _0x1b57(){const _0x3a0989=['valueFilter','CustomCommandExecutionError','pivotInitCompleted$','RANGE_TYPE','_initPivotTextInfo','sheet.command.update-pivot-table-source-range','ResetPivotTable','sheet.mutation.set-pivot-filter','#e6ebfa','sheet.mutation.set-pivot-position','getMonth','updateRangeKeyMap','_univerInstanceService','_generateUniqueVersion','valueIndex','add','get','PivotCallbackEnum','workbook\x20is\x20not\x20found','_commandService','addDirtyPivotTable','getFieldFormat','rangeKey','pivotTableIndexConfig','_initDataSendListener','_sheetsPivotRpcService','getName','isText','var','Average\x20of\x20','New','AddPivotTable','NAME','_dataFieldManagerCollection','getUnit','1431602SSLPWn','getCurrentUnitForType','setName','sheet.command.set-pivot-fields-config','deleteDataField','_configService','_model','adjustSheetCellData','isBottomTotal','removeValueFilterInfo','valueFields','BaseGroupField','generateNullCell','_getAutoName','UNIVER_SHEET','refreshData','AddPivotTableWithConfigCommand','sheet.mutation.pivot-update-field-position','PivotFilterTypeEnum','ICommandService','dispose','keys','collection','_lifecycleService','reset','updateAllDisplayName','map','#FFFFFF','set','getSheetBySheetName','filterId','RenameField','@univerjs-pro/engine-pivot','clearExclusiveRangesByGroupId','initDataRanges','varp','548188qawtFi','colCount','from','ClearSelectionAllCommand','MIN_SAFE_INTEGER','deleteField','Delete','getRangeStartEndInfo','sheet.mutation.send-init-pivot-text-local','setSourceName','ClearSelectionContentCommand','removePivotField','_subjectViewChange','_init','pivotTableId','sheet.command.update-pivot-value-position','version','colRanges','_deleteModelCache','getGroupFieldsInfoByIds','SetWorksheetActiveOperation','UpdateSource','rowRanges','fieldsCollectionChange$','Style','onQueryEnd','intercept','getPivotTableInfo','getHeaderMapItem','pushUndoRedo','removeSourceRangeChange','STRING','resetPivotTable','_pivotTableMatrixInfo','subTotalStyle','@univerjs-pro/license','NUMBER','pushComputingStatusSubject','sheet.mutation.update-pivot-table-source-range','getOriginFieldId','addField','RemoveRowMutation','sheets-pivot.value','viewData$','getPivotTableConfig','endCollectChangeset','SheetsPivotTableAdaptorModel','getDataFieldItemInfo','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','sheets-pivot.dateGroup.yearMonth','InsertRowMutation','DependentOn','PivotSubtotalTypeEnum','getIndexesByPathStr','1WLikeJ','getTableFieldById','unitId','PivotViewCellValueTypeEnum','getValue','addCollection','getDataFieldByRangeKey','UpdateValuePosition','Column\x20','_updatePivotTableInstanceCache','setValueFilterInfo','filterFields','IResourceManagerService','SetPivotFieldFormatMutation','22768104fNXivi','getSubUnitPivotConfigs','_updateModelCache','rowHeaderMap','grandTotal','setPivotInitCompleted','MAX_SAFE_INTEGER','setValuePivotFilter','rgb(240,241,243)','getPivotDirtyViewInfo','5EVguQf','generateHexNumber','hasOwnProperty','_dataSyncPrimaryController','AddPivotTableCommand','renameField','endColumn','sideEffectUpdateWorkerCache','leafStyle','sheet.mutation.get-pivot-data-local','SetPivotSetting','disposableCollection','sheet.mutation.remove-group-collection','updateRenderCache','markDirty','sheet.mutation.set-pivot-value-filter','DisposableCollection','Rectangle','getPivotDisplayConfig','drillDown','getFieldById','lastRow','sheet.mutation.send-pivot-view-local','addRecord','_markDirty$','CellValueType','subscribe','row','SheetsPivotTableService','colStyle','width','PivotTableOperationEnum','numfmt','SetPivotCollapseCommand','_ensurePivotMap','sourceRangeInfo','random','originalFieldId','getTextSize','PivotDataFieldDataTypeEnum','AddPivotTableWithConfig','#b2b2b2','getTextInfo','LS_CONFIG_KEY','getId','deepClone','setDirty','needSameDeleteModel','createLabelField','query','getIntersects','getMatrixFromRunTimeData','sheets-pivot.blank','sheet.mutation.pivot-update-value-position','RefRangeService','sheets-pivot.dateGroup.yearQuarter','register','filterInfo','getCellRaw','_collectionConfigModel','forValue','getFilterFieldIdByIndex','IConfigService','range','options','split','rowCount','RenamePivotFieldMutation','getStyles','SHEET_PIVOT_EXCLUSIVE_ID','@univerjs/engine-formula','sheet.command.set-pivot-value-filter','_exclusiveRangeService','getPivotTableInstance','InsertSheetMutation','_ensurePivotTableRangeInfo','SheetInterceptorService','sequenceExecute','SetCollapse','YearQuarter','_activeDirtyManagerService','setPivotTableConfig','COMMAND','_initCommandInterceptListener','_viewUpdate$','rxjs','isBaseGroupField','sheets-pivot.varpName','sheets-pivot.emptyPivot.filter','onCommandExecuted','realDeleteValue','clearRenderCache','MovePivotTableCommand','Plugin','isDateGroupField','headerMap','sheets-pivot.dateGroup.hour','_pivotTableRangeInfo','setPivotSetting','colHeaderMap','sheets-pivot.countNumsName','toJSON','collectionConfig','_config','sheets-pivot.maxName','blank','SetPivotSortCommand','_initUnitDisposed','endRow','_ensurePivotItemRenderInfoCache','Optional','MoveRangeCommand','interceptCommand','StdDev\x20of\x20','removeValueFilterInfoByValueFieldId','UpdateValuePositionMutation','dataStyle','_deletePivotTableInstanceCache','executeCommand','Collapse','SetRangeValuesUndoMutationFactory','toStringTag','SheetsPivotTableConfigModel','sheets-pivot.cellDateGroupDisplay.minute','displayName','_ensureViewDataMap','dataFieldManagerConfig','startRow','Month','_resourceManagerService','_onRefRangeChange','setPivotSort','isDateValue','paths','reduce','_requestResolvers','setCollapse','_ensurePivotTableMatrixInfo','notExecuteFormula','countNums','40WwHLvO','Varp\x20of\x20','sheets-pivot.cellDateGroupDisplay.yearMonthDate','return\x20','sheet.command.move-pivot-table','dateType','forRow','sheet.command.set-pivot-filter','_queryingMap','setFieldFormat','stdDevp','88557WoNDaQ','sheets-pivot.grandTotal','sheet.mutation.add-pivot-field','values','getColumnWidth','cellValue','CommandType','_sheetsSelectionsService','slice','PivotErrorTypeEnum','fieldIds','Tools','SetPivotSubtotalTypeMutation','getDataFieldByDataFieldId','sheets-pivot.minName','number','InterceptorEffectEnum','excelDateToUnixMilliseconds','RemoveColMutation','Minute','iterateFieldDim','162lZKpPn','Existing','getIntersectsPivotTable','tableFieldId','ErrorType','_sheetsPivotDataSourceModel','sheets-pivot.cellDateGroupDisplay.year','asyncInterceptor','length','MoveRangeMutation','new','_pivotTableInstanceCache','oldRangeInfo','setOptions','SheetsPivotDataSourceModel','_sheetInterceptorService','queryDirtyPivotTable','PivotTableValuePositionEnum','#1d32e9','getFormat','sheet.command.set-pivot-sort','handleMoveRange','FieldsCollection','cornerStyle','UpdatePivotSource','getformat','_sheetsPivotTableConfigModel','registerDirtyService','getRangeData','1539952HtMIPU','fromJSON','merge','addExclusiveRange','sheets-pivot.averageName','minDate','type','_featureCalculationManagerService','ptn','hasField','PivotCellStyleTypeEnum','getTypeOfUnitDisposed$','splice','parse','IFeatureCalculationManagerService','Set','Total','setSortInfo','unshift','onStarting','Values','SetFilterInfo','GlobalComputingStatusService','setLabelFilterInfo','prefix','rowInfo','getSheetBySheetId','getLastRow','setConfig','_updateRenderEmptyCache','mergeWorksheetSnapshotWithDefault','collections','Grand\x20Total','unshiftString','UniverSheetsPivotTablePlugin','createCollectionWithDataRange','InsertColMutation','getFieldCountByArea','rgb(255,255,255)','DateGroupField','serializeRangeWithSpreadsheet','iterateFieldByArea','count','getLastCol','getOwnPropertyDescriptor','UpdateFieldPositionMutation','addPivotField','entries','tuple','isArray','NotNumber','rangeCache','getCollection','SetSubtotalType','AsyncInterceptorManager','_pivotRenderValueMatrixCache','getConfig','sortInfo','_host','info','getFontStyleString','PivotTableViewDirtyMarkOperation','AddPivotField','updateFieldPosition','REF','IActiveDirtyManagerService','applyChangeSet','removeCollectionImp','Quarter','updateViewInfo','Klp7h9Bp\x20GD7zOsh9Bp(w97DpWD,\x20slqw97fDO)\x20{\x20\x20\x20\x20hzO\x20{\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20w97DpWD5pKBdEzhLzzEO\x20=\x20w97DpWD.Wsw9h(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20Bz9U9prDWWEUD\x20=\x20tHem.sEzWD(EhBq(w97DpWD5pKBdEzhLzzEO[X]));\x20\x20\x20\x20\x20\x20\x20\x209K\x20(!Bz9U9prDWWEUD.lG)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Bz9U9prDWWEUD.lG\x20=\x20ml1qDz(w97DpWD5pKBdEzhLzzEO[M]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x209WnBzgDz\x20=\x20hOsDBK\x20nBzgDz2wBqEwH7BsD\x20!==\x20\x27lpGDK9pDG\x27\x20&&\x20WDwK\x209pWhEp7DBK\x20nBzgDz2wBqEwH7BsD;\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x207BphDIh\x20=\x209WnBzgDz\x20?\x20WDwK\x20:\x20u9pGBu;\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x201DWWEUDnBzG\x20=\x207BphDIh.__0EWDoM__.sEzWD(w97DpWD5pKBdEzhLzzEO[X]);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x201DWWEUD\x20=\x207BphDIh.__YDI__.Whz9pU9KO(1DWWEUDnBzG);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20W9UpEhlzDnBzG\x20=\x207BphDIh.__0EWDoM__.sEzWD(w97DpWD5pKBdEzhLzzEO[S]);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20W9UpEhlzD\x20=\x207BphDIh.__YDI__.Whz9pU9KO(W9UpEhlzDnBzG);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20W9UpJEw9G\x20=\x207BphDIh.__RDz9KO__(W9UpEhlzD,\x201DWWEUD,\x20slqw97fDO);\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20GB1E9p\x20=\x20Bz9U9prDWWEUD.G1;\x20\x20\x20\x20\x20\x20\x20\x20Klp7h9Bp\x209WbB1E9prEh7v9pU(BdEhhDzp,\x20BYBWh)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20sEhhDzp\x20=\x20BdEhhDzp.zDswE7D(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20vBWh\x20=\x20BYBWh.zDswE7D(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20sEhhDzpdEzhW\x20=\x20sEhhDzp.Wsw9h(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20vBWhdEzhW\x20=\x20vBWh.Wsw9h(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209K\x20(!sEhhDzp.9p7wlGDW(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zDhlzp\x20sEhhDzp\x20===\x20vBWh;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209K\x20(sEhhDzpdEzhW.wDpUhv\x20<\x20X\x20||\x20sEhhDzpdEzhW[k]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zDhlzp\x20KEwWD;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20sEhhDzpHlKK9I\x20=\x20sEhhDzpdEzhW.Ww97D(4).xB9p(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20vBWhHlKK9I\x20=\x20vBWhdEzhW.Ww97D(-sEhhDzpdEzhW.wDpUhv\x20+\x204).xB9p(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zDhlzp\x20sEhhDzpHlKK9I\x20===\x20vBWhHlKK9I;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20wDh\x20GB1E9pJEw9G\x20=\x20(GB1E9p\x20&&\x20GB1E9p.wDpUhv)\x20?\x20GB1E9p.WB1D((G15hD1)\x20=>\x209WbB1E9prEh7v9pU(G15hD1,\x20wB7Eh9Bp.vBWhpE1D))\x20:\x20hzlD;\x20\x20\x20\x20\x20\x20\x20\x209K\x20(wB7Eh9Bp.vBWhpE1D\x20===\x20\x27wB7EwvBWh\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GB1E9pJEw9G\x20=\x20hzlD;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x207BpWh\x20REw9G\x20=\x20W9UpJEw9G\x20&&\x20GB1E9pJEw9G;\x20\x20\x20\x20\x20\x20\x20\x20zDhlzp\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REw9G,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201DWWEUD:\x20Bz9U9prDWWEUD,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x207Eh7v\x20(DzzBz)\x20{\x20\x20\x20\x20\x20\x20\x20\x20zDhlzp\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REw9G:\x20KEwWD,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201DWWEUD:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','push','getDataFieldManager','cornerRanges','Inject','name','generateNewSheetName','node','NUM','None','message','updateDataFieldsCollection','_pivotRenderInfoCache','data','InterceptorManager','ResetPivotFieldsConfigCommand','@univerjs/sheets','_configVersion$','UpdateDateGroupCommand','setRangeKeyMap','find','sheets-pivot.dateGroup.hourMinute','sheets-pivot.emptyPivot.values','startColumn','PivotTableFiledAreaEnum','sheet.command.add-pivot-table-with-config','DEFAULT_WORKSHEET_COLUMN_COUNT','sheet.command.add-pivot-field','params','average','sheets.tabs.sheet','sheet.command.update-date-group','fields','addPivotTable','Filter','_createExclusiveRange','updateValuePosition','_subjectCollectionChange','\x20-\x20','parseInt','getSheetCommandTarget','toString','body','#eceeff','UpdatePivotFieldSourceInfoMutation','getDataFieldBySourceName','measure','Min\x20of\x20','_refRangeService','_initLocale','Range','updatePivotTableRangeInfo','(Blank)','SetPivotSort','matrix','error','pivotConfigChange$','generateRandomId','configVersion$','NotName','originTargetInfo','dataStream','result','registerRefRange','removePivotTable','_initPivotDataGetListener','sheets-pivot.productName','getMatrix','getSubtotal','delete','getValuePosition','maxDate','sheets-pivot.dateGroup.quarter','_subjectFieldsCollectionChange','getUnitId','defineProperty','Subject','column','DIV_BY_ZERO','_localeService','isValue','getPivotInfoByLicense','_pivotConfigChange$','isNaN','registerSyncingMutations','LocaleService','INTERCEPTOR_POINT','Value','PivotDateGroupFieldDateTypeEnum','date','pivotTableConfigs','level','forEach','getPivotTableModelConfig','RemoveSheetMutation','getDataFieldByTableId','getDate','SetSheetsFilterRangeMutation','has','next','sheets-pivot.cellDateGroupDisplay.hourMinute','getPivotCellInfo','valuePosition','uniqueDataFieldName','registerPluginResource','getEmptyPivotRanges','PivotTable','PositionType','MUTATION','columnFields','_injector','sum','_viewData','getValueFilterInfos','ObjectMatrix','MonthDate','concat','BadReference','addFieldWithSourceId','_sheetsPivotTableService','getAutoFitColumnsMutations','1908940bvJaUL','sheets-pivot.columnName','_initConfig','SetValuePivotFilter','getRangeKeyList','PivotView','createAsyncInterceptorKey','string','includes','RemovePivotField','onQueryStart','format','getColCount','addPivotTableWithConfig','getPivotTableCellData','getDataFieldId','setTextInfo','getSheets','getFormatInfo','sheets-pivot.dateGroup.date','SetPivotFilterCommand','getPivotTableMatrixInfo','SHEET_PIVOT_TABLE_PLUGIN','sheet.mutation.remove-pivot-field','_globalComputedStartHelpFunc','IExclusiveRangeService','single','some','getCellMatrix','refreshGroupField','sheets-pivot.cellDateGroupDisplay.hour','triggerDirtyFeature','rangeType','dataRangeInfo','getInterceptPoints','rowFields','disposeWithMe','_sheetsPivotTableAdaptorModel','setPivotTable','isFeatureAuthorizedWithinTime','createDataFieldId','panel','fieldsConfig','sheet.mutation.update-date-group','fetchThroughAsyncInterceptors','setPivotCollapse','setValue','sheets-pivot.stdDevpName','sheetName','#f4f4f5','DataFieldManager','IUndoRedoService','contains','updateConfigCache','sheet.operation.pivot-table-view-formula-mark-dirty','_collectionChange$','substring','getRowCount','movePivotField','refreshDataField','handleSourceRangeChange','NO_COMMERCIAL','RemovePivotTableMutation','markDirty$','updatePivotTableMatrixInfo','foreach','SetPivotOptionMutation','startCollectChangeset','Panel','setPivotFilter','setRange','object','MovePivotFieldCommand','_pivotInitCompleted$','Year','max','setSubtotalType','removeCollections','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','RemoveSheetsFilterMutation','SetPivotFilter','SetRangeValuesMutation','UpdatePivotTableSourceRangeMutation','DrillDown','getMatrixValue','sheets-pivot.dateGroup.month','updateDirtyPivotTable','_globalSubject','InsertSheetCommand','SetSortInfo','getPivotTableRangeInfo','Add','SetPivotCollapse','setRangeValueUndoMutation','pageStyle','updateConfig','UpdatePivotValuePositionCommand','floor','removeField','HourMinute','DataField','Expand','_refRangeHandle','isColMultiMeasure','getRefRangeMutationsByMoveRange','filter','IUniverInstanceService','col','sheet.command.add-pivot-table','updateCollectionConfig','getPivotPerformCheck','leftOffset','SetPivotTableConfig','_fieldsCollectionChange$','36NGSiak','document','updateViewData','1017249Anwoxp','sheet.mutation.pivot-update-field-source-info','BLANK_ROW_COUNT','addCollectionByJSON','registerCallbackWithEvent','UniverLicensePlugin','Row','getAutoDisplayName','deleteUnitId','getSourceName','getFullYear','YearMonthDate','getFieldInfo','getValueIndex','pbt','sheets-pivot.subTotal','Disposable','min','Var\x20of\x20','getDirtyInfo','sheets-pivot.countName','UniverInstanceType','redos','versions','shouldClear','SetPivotFieldsConfigCommand','_globalComputingSrv','dataFields','@univerjs/core','MovePivotField','DataSyncPrimaryController','subUnitId','getDisplayName','isErrorValue','createInterceptorKey','getColumnCount','getNoUsedDataFieldIds','SetPivotValueFilterMutation','getUpdateRangeDeleteIds','SetFieldFormat','FontCache','YearMonth','update','isDate','isEmpty','_textInfo','batch','sheets-pivot.emptyPivot.row','symbol','PivotTableChangeTypeEnum','undos','handleAsyncResponse','DEFAULT_PIVOT_NUMBER','rangeKeyMap','_initRemoveSheetCommandInterceptor','Hour','getRangeKey','cornerInfo','updatePivotSource','getSubUnitPivotRenderCache','FORCE_STRING','NotFunction','SetPivotPositionMutation','rowStyle','cellToRange','ReleaseType','formJSON','size','getSheetId','oldMatrix','fontRenderExtension','getSubUnitPivotMatrix','getFilterInfo','InsertSheetUndoMutationFactory','replace','_viewData$','ΣValue','Column','interceptor','sheet.command.move-pivot-field','setRangeValueRedoMutation','sheets-pivot.cellDateGroupDisplay.quarter','_toJSON','asObservable','pivotMutationGenerate','stringify','sheet.command.pivot-drill-down','setDataRecordCount','getTargetByPivotTableId','_ensurePivotItemRenderValueMatrixCache','iterateField','getFieldPositionInfoById','addDataFieldWithoutUnitInfo','getTargetByPivotId','Injector','sheet.mutation.add-pivot-table','getCurrentSelections','updateFieldSourceInfo','sheet.command.set-pivot-collapse','UpdatePivotTableSourceRangeCommand','fetchThroughInterceptors','fieldId','value','Count\x20of\x20','getSortInfo','SHEET_PIVOT_IN_MAIN_THREAD','_initSnapshot','getFieldIds','custom','SetWorksheetColWidthMutation','subtotal','sheet.command.remove-pivot-field','intersects','sheets-pivot.emptyPivot.column','SheetsPivotRPCService','product','getPivotTableIdByCell','defaultThemeStyle','getFieldDataType','_initViewModelBySheetInterceptor','sheet.mutation.rename-pivot-field','dataFieldId','getPivotItemRenderInfoCache','collectionChange$','SetPivotFilterMutation','dataFieldsCollection','registerCommand','Subtotal','ManualFilter','getAutoDisplayNameFunction','sheets-pivot.cellDateGroupDisplay.date','targetCellInfo','collapseInfo','limit\x20pivot','PivotDisplayDataType','dimension','canUsePivot','generateMutationsByRanges','_initRegisterCommand','broadcastCollectionChange','Date','pluginName','getViewData','lastCol','rangesInfo'];_0x1b57=function(){return _0x3a0989;};return _0x1b57();}var jn=Object[_0xdefc56(0x111)],Gn=(_0x384323,_0x58044f,_0x389bdf,_0xcb9cf4)=>{const _0x34ec2c=_0xdefc56;for(var _0x4f606a=_0xcb9cf4>0x1?void 0x0:_0xcb9cf4?jn(_0x58044f,_0x389bdf):_0x58044f,_0x3a8d0f=_0x384323[_0x34ec2c(0xd0)]-0x1,_0x2e458e;_0x3a8d0f>=0x0;_0x3a8d0f--)(_0x2e458e=_0x384323[_0x3a8d0f])&&(_0x4f606a=_0x2e458e(_0x4f606a)||_0x4f606a);return _0x4f606a;},we=(_0x5ba1db,_0x45e003)=>(_0xe4d116,_0x16cbd5)=>_0x45e003(_0xe4d116,_0x16cbd5,_0x5ba1db);let Ge=class extends v[_0xdefc56(0x229)]{constructor(_0x503295,_0x21c505,_0x5cc3fa,_0x424d62,_0x56c277,_0x2565b6){const _0x383a6f=_0xdefc56;super(),this[_0x383a6f(0x17a)]=_0x503295,this['_sheetInterceptorService']=_0x21c505,this[_0x383a6f(0x199)]=_0x5cc3fa,this['_univerInstanceService']=_0x424d62,this[_0x383a6f(0xe2)]=_0x56c277,this[_0x383a6f(0x1a2)]=_0x2565b6,this[_0x383a6f(0x392)]();}['_getPivotAppliedRanges'](_0x2a929f,_0x3f49a9,_0x1b4a5c){const _0x50a631=_0xdefc56,{pageView:_0x2d907e,cornerView:_0x2172ea,rowView:_0x1ad818,colView:_0x1ad7cf,dataView:_0x32a9d7}=_0x3f49a9,_0x1db998=_0x2a929f;let _0x24189d;if(_0x1b4a5c)_0x24189d=[...Xt(_0x1db998)];else{const _0x171bd8=oe(_0x1db998,_0x2d907e,!0x0),_0x5669e1=_0x2d907e['lastRow']>=0x0?_0x2d907e['lastRow']+0x1:0x0,_0x1dff71=_0x2172ea[_0x50a631(0x381)],_0x368ab2=_0x2172ea['colCount'],_0x53c5f2=_0x171bd8[_0x50a631(0xd0)]>0x0?Re:0x0,_0x5e3708=oe({'row':_0x1db998['row']+_0x5669e1+_0x53c5f2,'col':_0x1db998[_0x50a631(0x20f)]},_0x2172ea,!0x1,!0x1),_0x588f79=oe({'row':_0x1db998[_0x50a631(0x35a)]+_0x5669e1+_0x53c5f2+_0x1dff71,'col':_0x1db998[_0x50a631(0x20f)]},_0x1ad818,!0x1,!0x0),_0x417f5e=oe({'row':_0x1db998['row']+_0x5669e1+_0x53c5f2,'col':_0x1db998[_0x50a631(0x20f)]+_0x368ab2},_0x1ad7cf,!0x1,!0x0),_0x44e914=oe({'row':_0x1db998['row']+_0x5669e1+_0x53c5f2+_0x1dff71,'col':_0x1db998['col']+_0x368ab2},_0x32a9d7,!0x1,!0x0);_0x24189d=[..._0x171bd8,..._0x5e3708,..._0x588f79,..._0x417f5e,..._0x44e914];}return _0x24189d;}[_0xdefc56(0x392)](){const _0x2e86b8=_0xdefc56;this[_0x2e86b8(0x1c8)](this[_0x2e86b8(0x1a2)][_0x2e86b8(0x267)][_0x2e86b8(0x30b)](this[_0x2e86b8(0x1a2)][_0x2e86b8(0x267)][_0x2e86b8(0x1c6)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x4a05d3,_0xc7646)=>{const _0x482e6b=_0x2e86b8,{cellInfo:_0x62cd24,view:_0x3df8a7,isEmpty:_0x1ed08a}=_0xc7646,_0x5d9ca0=_0x62cd24,{unitId:_0x47c035,subUnitId:_0xb01857}=_0x5d9ca0,_0x43f2b8=this['_getPivotAppliedRanges'](_0x62cd24,_0x3df8a7,_0x1ed08a),_0x495fbb=this['_sheetInterceptorService'][_0x482e6b(0x2a2)]({'unitId':_0x47c035,'subUnitId':_0xb01857,'ranges':_0x43f2b8}),_0x54b9e2=Ut(this[_0x482e6b(0x199)],_0x47c035,_0xb01857,_0x43f2b8);_0x54b9e2[_0x482e6b(0x231)]&&(_0x495fbb['redos']['push'](_0x54b9e2['setRangeValueRedoMutation']),_0x495fbb[_0x482e6b(0x24b)][_0x482e6b(0x12c)](_0x54b9e2['setRangeValueUndoMutation']));const _0x3a42d4=this[_0x482e6b(0x1a3)](_0x3df8a7,_0x62cd24);return _0x495fbb['redos'][_0x482e6b(0x12c)](..._0x3a42d4[_0x482e6b(0x22f)]),_0x495fbb[_0x482e6b(0x24b)][_0x482e6b(0x12c)](..._0x3a42d4[_0x482e6b(0x24b)]),{'redos':_0x495fbb[_0x482e6b(0x22f)],'undos':_0x495fbb['undos']};}}));}[_0xdefc56(0x1a3)](_0x4ec845,_0x45f292){const _0x8c0c15=_0xdefc56,{col:_0x255579,unitId:_0x58262a,subUnitId:_0x37eeb1}=_0x45f292,_0x29d65e=[],_0x4a5203=[],_0x2a96ef=V[_0x8c0c15(0x153)](this[_0x8c0c15(0x2b6)],{'unitId':_0x58262a,'subUnitId':_0x37eeb1});if(!_0x45f292||!_0x4ec845||!_0x2a96ef)return{'undos':_0x4a5203,'redos':_0x29d65e};const _0x200178=this['_sheetsPivotTableConfigModel'][_0x8c0c15(0x369)](),{colView:_0x1e0774,dataView:_0x262541,cornerView:_0x2663b5,rowView:_0x4731d8,formatMap:_0x30da99}=_0x4ec845,_0x4b655d=Bt(_0x1e0774,_0x200178,!0x0,_0x30da99),_0x4a140d=Bt(_0x4731d8,_0x200178,!0x1,_0x30da99),_0x226999=rn(_0x262541),_0xfbe394=ln(_0x2663b5),{worksheet:_0x4dfe03}=_0x2a96ef;if(typeof window<'u'&&window[_0x8c0c15(0x217)]){const _0x24e36d=Oe[_0x8c0c15(0x121)]({...te['colStyle']}),_0x4c23ed=Oe['FontCache'][_0x8c0c15(0x365)](_0x4b655d,_0x24e36d)[_0x8c0c15(0x35d)]+0x10,_0xe81982=Oe[_0x8c0c15(0x241)][_0x8c0c15(0x365)](_0x226999,_0x24e36d)[_0x8c0c15(0x35d)],_0x5f4c9c=Math['floor'](Math[_0x8c0c15(0x1ef)](_0x4c23ed,_0xe81982))+0x10,_0x42d4a2=Math[_0x8c0c15(0x205)](Oe[_0x8c0c15(0x241)]['getTextSize'](_0x4a140d,_0x24e36d)[_0x8c0c15(0x35d)]),_0x358de0=Math[_0x8c0c15(0x205)](Oe[_0x8c0c15(0x241)][_0x8c0c15(0x365)](_0xfbe394,_0x24e36d)['width']),_0x5646ca=Math[_0x8c0c15(0x1ef)](_0x42d4a2,_0x358de0,0x28)+0xc,_0x3acff3=_0x1e0774[_0x8c0c15(0x2f2)]+_0x2663b5[_0x8c0c15(0x2f2)],_0x16f5c0={},_0x593a90={};for(let _0x495058=_0x255579;_0x495058<_0x255579+_0x3acff3;_0x495058++){const _0x5342cc=_0x4dfe03[_0x8c0c15(0xb7)](_0x495058);_0x16f5c0[_0x495058]=_0x5342cc,_0x495058-_0x255579<_0x2663b5[_0x8c0c15(0x2f2)]?_0x593a90[_0x495058-_0x255579]=_0x5646ca:_0x593a90[_0x495058-_0x255579]=_0x5f4c9c;}_0x29d65e[_0x8c0c15(0x12c)]({'id':V[_0x8c0c15(0x286)]['id'],'params':{'subUnitId':_0x37eeb1,'unitId':_0x58262a,'ranges':[{'startColumn':_0x255579,'endColumn':_0x255579+_0x3acff3-0x1,'startRow':0x0,'endRow':_0x4dfe03[_0x8c0c15(0x1dd)]()-0x1}],'colWidth':_0x593a90}}),_0x4a5203[_0x8c0c15(0x12c)]({'id':V[_0x8c0c15(0x286)]['id'],'params':{'subUnitId':_0x37eeb1,'unitId':_0x58262a,'ranges':[{'startColumn':_0x255579,'endColumn':_0x255579+_0x3acff3-0x1,'startRow':0x0,'endRow':_0x4dfe03[_0x8c0c15(0x1dd)]()-0x1}],'colWidth':_0x16f5c0}});}return{'undos':_0x4a5203,'redos':_0x29d65e};}};Ge=Gn([we(0x0,v['Inject'](v[_0xdefc56(0x180)])),we(0x1,v[_0xdefc56(0x12f)](V[_0xdefc56(0x38b)])),we(0x2,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)])),we(0x3,v[_0xdefc56(0x12f)](v['IUniverInstanceService'])),we(0x4,v[_0xdefc56(0x12f)](exports['SheetsPivotTableConfigModel'])),we(0x5,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x35b)]))],Ge);var $n=Object[_0xdefc56(0x111)],zn=(_0xf14207,_0x51ca3f,_0x5a9515,_0x51b242)=>{const _0x59eee5=_0xdefc56;for(var _0x140c8e=_0x51b242>0x1?void 0x0:_0x51b242?$n(_0x51ca3f,_0x5a9515):_0x51ca3f,_0x2edd0c=_0xf14207[_0x59eee5(0xd0)]-0x1,_0xfb50af;_0x2edd0c>=0x0;_0x2edd0c--)(_0xfb50af=_0xf14207[_0x2edd0c])&&(_0x140c8e=_0xfb50af(_0x140c8e)||_0x140c8e);return _0x140c8e;},Ce=(_0x2769f2,_0x4afbc4)=>(_0x30c55c,_0x561d86)=>_0x4afbc4(_0x30c55c,_0x561d86,_0x2769f2);let $e=class extends v[_0xdefc56(0x229)]{constructor(_0x52034e,_0x4c8577,_0x556a80,_0x22c02f,_0x2e1df7,_0xd402b,_0x4bd93e){const _0x31ca70=_0xdefc56;super(),x(this,_0x31ca70(0x34a),new v[(_0x31ca70(0x34f))]()),(this['_injector']=_0x52034e,this['_refRangeService']=_0x4c8577,this[_0x31ca70(0x2bd)]=_0x556a80,this[_0x31ca70(0x2b6)]=_0x22c02f,this['_sheetsPivotTableConfigModel']=_0x2e1df7,this[_0x31ca70(0x1c9)]=_0xd402b,this[_0x31ca70(0xd7)]=_0x4bd93e,this[_0x31ca70(0x3c1)]());}['_onRefRangeChange'](){const _0x32b343=_0xdefc56,_0x567ca2=(_0x142d58,_0x4434de)=>{const _0x584dc4=_0x2caf,_0x2f1cb1=this['_univerInstanceService']['getCurrentUnitForType'](v[_0x584dc4(0x22e)][_0x584dc4(0x2db)]);if(!_0x2f1cb1||!(_0x2f1cb1==null?void 0x0:_0x2f1cb1[_0x584dc4(0xff)](_0x4434de)))return;this[_0x584dc4(0x34a)][_0x584dc4(0x2e1)]();const _0x39d906=_0x59a145=>this[_0x584dc4(0x20a)](_0x59a145,_0x142d58,_0x4434de),_0x2e6ada=this[_0x584dc4(0xe2)][_0x584dc4(0x336)](_0x142d58,_0x4434de);if(!(_0x2e6ada!=null&&_0x2e6ada[_0x584dc4(0x25c)]))return;Array['from'](_0x2e6ada[_0x584dc4(0xb6)]())[_0x584dc4(0x2e7)](_0x5f05b6=>{const _0xbe8a7d=_0x584dc4,{row:_0x30e8c3,col:_0x51958b}=_0x5f05b6['targetCellInfo'];return v[_0xbe8a7d(0x259)](_0x30e8c3,_0x51958b);})['forEach'](_0x35fcb7=>{const _0x5a5fb7=_0x584dc4;this[_0x5a5fb7(0x34a)][_0x5a5fb7(0x2b9)](this[_0x5a5fb7(0x15b)][_0x5a5fb7(0x16a)](_0x35fcb7,_0x39d906,_0x142d58,_0x4434de));});},_0x5d4355=()=>{const _0x225c8e=_0x2caf,_0x2f3904=this['_univerInstanceService'][_0x225c8e(0x2ce)](v[_0x225c8e(0x22e)][_0x225c8e(0x2db)]);if(_0x2f3904){const _0x844b32=_0x2f3904['getActiveSheet']();if(!_0x844b32)return;_0x567ca2(_0x2f3904['getUnitId'](),_0x844b32['getSheetId']());}};this['disposeWithMe'](this[_0x32b343(0x2bd)][_0x32b343(0x398)](_0x29ce6c=>{const _0x2d626d=_0x32b343;if(_0x29ce6c['id']===V[_0x2d626d(0x305)]['id']){const _0x3de440=_0x29ce6c[_0x2d626d(0x147)],_0x124f37=_0x3de440['subUnitId'],_0x4e9152=_0x3de440[_0x2d626d(0x329)];if(!_0x124f37||!_0x4e9152)return;_0x567ca2(_0x4e9152,_0x124f37);}})),this[_0x32b343(0x1c8)](this['_sheetsPivotTableConfigModel']['pivotInitCompleted$']['subscribe'](_0x4bdffa=>{_0x4bdffa&&_0x5d4355();})),this['disposeWithMe'](this[_0x32b343(0xe2)][_0x32b343(0x163)][_0x32b343(0x359)](_0x2b18e7=>{const _0x3a83b4=_0x32b343,_0x531b7b=V[_0x3a83b4(0x153)](this[_0x3a83b4(0x2b6)]);if(!_0x531b7b)return;const {unitId:_0x394e7c,subUnitId:_0x2935a5}=_0x531b7b,{unitId:_0x407c6f,subUnitId:_0x5a26d6}=_0x2b18e7;_0x394e7c!==_0x407c6f||_0x2935a5!==_0x5a26d6||_0x567ca2(_0x394e7c,_0x2935a5);})),_0x5d4355();}[_0xdefc56(0x20a)](_0x5250ae,_0x42a16e,_0x26952b){const _0x33c9c6=_0xdefc56;switch(_0x5250ae['id']){case V[_0x33c9c6(0x3ae)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x5250ae[_0x33c9c6(0x147)],_0x42a16e,_0x26952b);}return{'redos':[],'undos':[]};}[_0xdefc56(0x20c)](_0x34efec,_0x18a023,_0x316954){const _0x18eaa7=_0xdefc56,{fromRange:_0x378cc6,toRange:_0x1fbca2}=_0x34efec,_0x322809=[],_0x188d5c=[],_0x1ccde4=V[_0x18eaa7(0x153)](this[_0x18eaa7(0x2b6)]);if(!_0x1ccde4)return{'undos':_0x188d5c,'redos':_0x322809};if(_0x18a023!==_0x1ccde4[_0x18eaa7(0x329)]||_0x316954!==_0x1ccde4[_0x18eaa7(0x238)])return{'undos':_0x188d5c,'redos':_0x322809};const _0x3d14a2=this[_0x18eaa7(0xe2)]['getSubUnitPivotConfigs'](_0x18a023,_0x316954);if(_0x3d14a2!=null&&_0x3d14a2['size'])for(const [_0x162626,_0x2c9358]of _0x3d14a2){const {unitId:_0x18de5b,subUnitId:_0x1be654,row:_0x2f363b,col:_0x31b99e}=_0x2c9358[_0x18eaa7(0x29c)];if(_0x18de5b===_0x1ccde4[_0x18eaa7(0x329)]&&_0x1be654===_0x1ccde4[_0x18eaa7(0x238)]){const _0x399279=v[_0x18eaa7(0x259)](_0x2f363b,_0x31b99e);if(v[_0x18eaa7(0x350)][_0x18eaa7(0x289)](_0x399279,_0x378cc6)){const _0x3aa48a=_0x2f363b-_0x378cc6[_0x18eaa7(0x3be)],_0x5985b1=_0x31b99e-_0x378cc6[_0x18eaa7(0x142)],_0x4378b0={'row':_0x1fbca2[_0x18eaa7(0x3be)]+_0x3aa48a,'col':_0x1fbca2[_0x18eaa7(0x142)]+_0x5985b1};_0x322809[_0x18eaa7(0x12c)]({'id':_e['id'],'params':{'unitId':_0x18de5b,'subUnitId':_0x1be654,'pivotTableId':_0x162626,'targetCellPosition':_0x4378b0}}),_0x188d5c[_0x18eaa7(0x12c)]({'id':_e['id'],'params':{'unitId':_0x18de5b,'subUnitId':_0x1be654,'pivotTableId':_0x162626,'targetCellPosition':{'row':_0x2f363b,'col':_0x31b99e}}});const _0x4eb484=_0x4378b0[_0x18eaa7(0x35a)]-_0x2f363b,_0x1bdda1=_0x4378b0[_0x18eaa7(0x20f)]-_0x31b99e,_0x542ba5=[],_0x4788b0=this['_sheetsPivotTableAdaptorModel'][_0x18eaa7(0x293)](_0x18de5b,_0x1be654,_0x162626),_0x419661=_0x4788b0==null?void 0x0:_0x4788b0[_0x18eaa7(0x2a9)];if(_0x419661){Object[_0x18eaa7(0x2e2)](_0x419661)[_0x18eaa7(0x187)](_0x25298f=>{_0x419661[_0x25298f]['forEach'](_0x51ad94=>{const _0x3b9d54=_0x2caf,_0x4af47b={..._0x51ad94};_0x4af47b['startRow']=_0x51ad94['startRow']+_0x4eb484,_0x4af47b['endRow']=_0x51ad94[_0x3b9d54(0x3ab)]+_0x4eb484,_0x4af47b[_0x3b9d54(0x142)]=_0x51ad94[_0x3b9d54(0x142)]+_0x1bdda1,_0x4af47b[_0x3b9d54(0x345)]=_0x51ad94[_0x3b9d54(0x345)]+_0x1bdda1,_0x542ba5['push'](_0x4af47b);});});const _0x524651=this[_0x18eaa7(0xd7)][_0x18eaa7(0x2a2)]({'unitId':_0x18de5b,'subUnitId':_0x1be654,'ranges':_0x542ba5});_0x322809[_0x18eaa7(0x12c)](..._0x524651['redos']),_0x188d5c['push'](..._0x524651[_0x18eaa7(0x24b)]);const _0x313e3e=Ut(this[_0x18eaa7(0x199)],_0x18de5b,_0x1be654,_0x542ba5);_0x313e3e[_0x18eaa7(0x231)]&&(_0x322809[_0x18eaa7(0x12c)](_0x313e3e[_0x18eaa7(0x269)]),_0x188d5c[_0x18eaa7(0x12c)](_0x313e3e[_0x18eaa7(0x201)]));}}}}return{'redos':_0x322809,'undos':_0x188d5c};}};$e=zn([Ce(0x0,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)])),Ce(0x1,v[_0xdefc56(0x12f)](V[_0xdefc56(0x375)])),Ce(0x2,v[_0xdefc56(0x2e0)]),Ce(0x3,v[_0xdefc56(0x20e)]),Ce(0x4,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x3b9)])),Ce(0x5,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x31f)])),Ce(0x6,v[_0xdefc56(0x12f)](V['SheetInterceptorService']))],$e);var Jn=Object[_0xdefc56(0x111)],Kn=(_0x280bca,_0x93e344,_0x2c6fa3,_0x2dc8c1)=>{const _0x3a16de=_0xdefc56;for(var _0x59dffd=_0x2dc8c1>0x1?void 0x0:_0x2dc8c1?Jn(_0x93e344,_0x2c6fa3):_0x93e344,_0x4a9763=_0x280bca[_0x3a16de(0xd0)]-0x1,_0xfc0106;_0x4a9763>=0x0;_0x4a9763--)(_0xfc0106=_0x280bca[_0x4a9763])&&(_0x59dffd=_0xfc0106(_0x59dffd)||_0x59dffd);return _0x59dffd;},jt=(_0x3bdfaf,_0x298e9e)=>(_0x329ec4,_0x4e6df7)=>_0x298e9e(_0x329ec4,_0x4e6df7,_0x3bdfaf);let ze=class extends v[_0xdefc56(0x229)]{constructor(_0x4af809,_0x1afc7b){const _0xa655da=_0xdefc56;super(),this[_0xa655da(0xd7)]=_0x4af809,this['_sheetsPivotTableConfigModel']=_0x1afc7b,this['_initRemoveSheetCommandInterceptor']();}[_0xdefc56(0x24f)](){const _0x58516f=_0xdefc56;this[_0x58516f(0x1c8)](this[_0x58516f(0xd7)][_0x58516f(0x3af)]({'getMutations':_0x17e4f4=>{const _0x41568e=_0x58516f;if(_0x17e4f4['id']===V['RemoveSheetCommand']['id']){const _0x4465ee=[],_0x235ae2=[],_0x4e1cc9=_0x17e4f4['params'],{unitId:_0x5567eb,subUnitId:_0x52d0d1}=_0x4e1cc9;if(!_0x5567eb||!_0x52d0d1)return{'undos':_0x235ae2,'redos':_0x4465ee};const _0x502db3=this[_0x41568e(0xe2)][_0x41568e(0x336)](_0x5567eb,_0x52d0d1);if(_0x502db3!=null&&_0x502db3[_0x41568e(0x25c)])for(const [_0x1de429,_0x4a262c]of _0x502db3){_0x4465ee[_0x41568e(0x12c)]({'id':He['id'],'params':{'unitId':_0x5567eb,'subUnitId':_0x52d0d1,'pivotTableId':_0x1de429}});const _0x556e6a={...this['_sheetsPivotTableConfigModel'][_0x41568e(0x119)](_0x5567eb,_0x1de429)};_0x235ae2[_0x41568e(0x12c)]({'id':Ee['id'],'params':{'unitId':_0x5567eb,'subUnitId':_0x52d0d1,'pivotTableId':_0x1de429,'pivotTableConfig':_0x4a262c,'collectionConfig':_0x556e6a}});}return{'redos':_0x4465ee,'undos':_0x235ae2};}return{'redos':[],'undos':[]};}}));}};ze=Kn([jt(0x0,v[_0xdefc56(0x12f)](V[_0xdefc56(0x38b)])),jt(0x1,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x3b9)]))],ze);var qn=Object[_0xdefc56(0x111)],Hn=(_0x2d7680,_0x4468bb,_0x206b7f,_0x513b40)=>{const _0x522b45=_0xdefc56;for(var _0x77e7ce=_0x513b40>0x1?void 0x0:_0x513b40?qn(_0x4468bb,_0x206b7f):_0x4468bb,_0x47557d=_0x2d7680[_0x522b45(0xd0)]-0x1,_0x43c64a;_0x47557d>=0x0;_0x47557d--)(_0x43c64a=_0x2d7680[_0x47557d])&&(_0x77e7ce=_0x43c64a(_0x77e7ce)||_0x77e7ce);return _0x77e7ce;},Fe=(_0x1253b7,_0x4bb70e)=>(_0x1cf7b3,_0x24f135)=>_0x4bb70e(_0x1cf7b3,_0x24f135,_0x1253b7);let Je=class extends v[_0xdefc56(0x229)]{constructor(_0x48ecb5,_0x3c9cb9,_0x18a05e,_0x2ee0a9,_0x452328,_0x115721){const _0x2fc3d0=_0xdefc56;super(),this[_0x2fc3d0(0x2bd)]=_0x48ecb5,this[_0x2fc3d0(0x2c3)]=_0x3c9cb9,this[_0x2fc3d0(0x1c9)]=_0x18a05e,this['_sheetsPivotTableConfigModel']=_0x2ee0a9,this['_univerInstanceService']=_0x452328,this['_activeDirtyManagerService']=_0x115721,this[_0x2fc3d0(0x2c2)](),this['registerDirtyService']();}[_0xdefc56(0x2c2)](){const _0x40dfac=_0xdefc56;this[_0x40dfac(0x1c8)](this[_0x40dfac(0x2bd)][_0x40dfac(0x398)](_0x3bd21c=>{const _0xb48d69=_0x40dfac;if(_0x3bd21c['id']!==Ft['id'])return;const _0x3d4717=_0x3bd21c[_0xb48d69(0x147)];this[_0xb48d69(0x2c3)][_0xb48d69(0x24c)](_0x3d4717);})),this[_0x40dfac(0x1c8)](this[_0x40dfac(0x2bd)]['onCommandExecuted'](_0x2fcf68=>{const _0x20e999=_0x40dfac;if(_0x2fcf68['id']===Dt['id']){const _0x347298=_0x2fcf68[_0x20e999(0x147)];if(_0x347298){const {unitId:_0x5695a2,subUnitId:_0x2e9981,oldSubUnitId:_0x2f565d,pivotTableId:_0x430bdf,pivotTableConfig:_0x515db8,collectionConfig:_0x39f084}=_0x347298;this['_sheetsPivotTableConfigModel'][_0x20e999(0x1d9)](_0x5695a2,_0x2f565d,_0x347298[_0x20e999(0x2ff)],null),this[_0x20e999(0xe2)][_0x20e999(0x1d9)](_0x5695a2,_0x2e9981,_0x430bdf,_0x515db8),this['_sheetsPivotTableConfigModel'][_0x20e999(0x211)](_0x5695a2,_0x39f084);}}})),this[_0x40dfac(0x1c8)](this[_0x40dfac(0x2bd)][_0x40dfac(0x398)](_0x3c404f=>{const _0x186afd=_0x40dfac;if(_0x3c404f['id']!==ot['id'])return;const _0x25aa1f=V[_0x186afd(0x153)](this['_univerInstanceService']);if(!_0x25aa1f)return;const {unitId:_0x1f51f8,subUnitId:_0x3039b5}=_0x25aa1f,_0x3d2e73=_0x3c404f['params'];if(_0x3d2e73[_0x186afd(0x3a5)]&&Object[_0x186afd(0x2e2)](_0x3d2e73[_0x186afd(0x3a5)])['forEach'](_0x2ed70b=>{const _0x3b2d47=_0x186afd;var _0x2f145b;(_0x2f145b=_0x3d2e73[_0x3b2d47(0x3a5)])!=null&&_0x2f145b[_0x2ed70b]&&this['_sheetsPivotTableConfigModel'][_0x3b2d47(0x211)](_0x2ed70b,_0x3d2e73[_0x3b2d47(0x3a5)][_0x2ed70b]);}),_0x3d2e73[_0x186afd(0x1be)]){const _0x24b060=_0x3d2e73[_0x186afd(0x1be)],{unitId:_0x1428fb,subUnitId:_0x10db0f,view:_0x3f3761,pivotTableId:_0x204b0b,type:_0x1a2a4b,pivotConfig:_0x8094e4}=_0x24b060;if(_0x1a2a4b===k[_0x186afd(0x2f7)])this[_0x186afd(0x1c9)][_0x186afd(0x39a)]({'unitId':_0x1428fb,'subUnitId':_0x10db0f,'pivotTableId':_0x204b0b,'type':_0x1a2a4b}),this['_sheetsPivotTableConfigModel'][_0x186afd(0x1d9)](_0x1428fb,_0x10db0f,_0x204b0b,null);else{const _0x335168=new p[(_0x186afd(0x1a9))]();_0x335168[_0x186afd(0x25b)](_0x3f3761),this[_0x186afd(0xe2)]['updateConfigCache'](_0x1428fb,_0x10db0f,_0x204b0b,_0x8094e4),this[_0x186afd(0x1c9)][_0x186afd(0x39a)]({'unitId':_0x1428fb,'subUnitId':_0x10db0f,'pivotTableId':_0x204b0b,'type':_0x1a2a4b,'view':_0x335168}),this[_0x186afd(0x1c9)][_0x186afd(0x34c)]({'unitId':_0x1428fb,'subUnitId':_0x10db0f,'view':_0x335168,'pivotTableId':_0x204b0b,'type':_0x1a2a4b});}}else _0x3d2e73[_0x186afd(0x247)]&&(_0x3d2e73['batch'][_0x186afd(0x187)](_0x383bfe=>{const _0x3e0736=_0x186afd,{unitId:_0x21bcdc,subUnitId:_0x227326,view:_0x511a2c,pivotTableId:_0x54d276,type:_0x46317b,pivotConfig:_0x4842e2}=_0x383bfe,_0x246899=new p[(_0x3e0736(0x1a9))]();_0x246899[_0x3e0736(0x25b)](_0x511a2c),this[_0x3e0736(0xe2)][_0x3e0736(0x1d9)](_0x21bcdc,_0x227326,_0x54d276,_0x4842e2),this['_sheetsPivotTableAdaptorModel'][_0x3e0736(0x34c)]({'unitId':_0x21bcdc,'subUnitId':_0x227326,'view':_0x246899,'pivotTableId':_0x54d276,'type':_0x46317b});}),this[_0x186afd(0xe2)][_0x186afd(0x33a)]());this[_0x186afd(0x1c9)]['markDirty'](_0x1f51f8,_0x3039b5);}));}[_0xdefc56(0xe3)](){const _0x467345=_0xdefc56;this[_0x467345(0x38f)]['register'](qe['id'],{'commandId':qe['id'],'getDirtyData'(_0x50b054){return{'dirtyUnitFeatureMap':_0x50b054['params']};}});}};Je=Hn([Fe(0x0,v['Inject'](v[_0xdefc56(0x2e0)])),Fe(0x1,v[_0xdefc56(0x12f)](exports['SheetsPivotRPCService'])),Fe(0x2,v[_0xdefc56(0x12f)](exports[_0xdefc56(0x31f)])),Fe(0x3,v['Inject'](exports[_0xdefc56(0x3b9)])),Fe(0x4,v[_0xdefc56(0x12f)](v['IUniverInstanceService'])),Fe(0x5,ve[_0xdefc56(0x126)])],Je);var Yn=Object[_0xdefc56(0x176)],Qn=Object[_0xdefc56(0x111)],Xn=(_0x137e4d,_0x3a8896,_0x3372ff)=>_0x3a8896 in _0x137e4d?Yn(_0x137e4d,_0x3a8896,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3372ff}):_0x137e4d[_0x3a8896]=_0x3372ff,Zn=(_0x1c000c,_0x1b52be,_0x1d380e,_0x242eac)=>{const _0x9d8237=_0xdefc56;for(var _0x4a4243=_0x242eac>0x1?void 0x0:_0x242eac?Qn(_0x1b52be,_0x1d380e):_0x1b52be,_0x460f61=_0x1c000c[_0x9d8237(0xd0)]-0x1,_0x2bcef0;_0x460f61>=0x0;_0x460f61--)(_0x2bcef0=_0x1c000c[_0x460f61])&&(_0x4a4243=_0x2bcef0(_0x4a4243)||_0x4a4243);return _0x4a4243;},tt=(_0x19133b,_0x4b14c5)=>(_0x137637,_0x2ba779)=>_0x4b14c5(_0x137637,_0x2ba779,_0x19133b),So=(_0x774b35,_0x27f71e,_0x5b5f1e)=>Xn(_0x774b35,typeof _0x27f71e!='symbol'?_0x27f71e+'':_0x27f71e,_0x5b5f1e);exports['UniverSheetsPivotTablePlugin']=class extends v[_0xdefc56(0x39c)]{constructor(_0x3f7d69=Wt,_0x33bee1,_0x2448e9,_0x1efa16,_0x293c29){const _0x53a736=_0xdefc56;super(),this[_0x53a736(0x3a6)]=_0x3f7d69,this[_0x53a736(0x199)]=_0x33bee1,this[_0x53a736(0x2bd)]=_0x2448e9,this[_0x53a736(0x2d2)]=_0x1efa16,this[_0x53a736(0x342)]=_0x293c29;const {..._0x254c3d}=v[_0x53a736(0xe7)]({},Wt,this['_config']);this['_configService'][_0x53a736(0x101)](Nt,_0x254c3d),this[_0x53a736(0x2a3)](),this[_0x53a736(0x1a6)]();}[_0xdefc56(0x1a6)](){const _0xe4acfa=_0xdefc56;var _0x2b75c6;const _0x359389=(_0x2b75c6=this['_config'])==null?void 0x0:_0x2b75c6[_0xe4acfa(0x3c9)];this['_configService'][_0xe4acfa(0x101)](z,_0x359389===!0x0);}[_0xdefc56(0xf8)](){const _0x394965=_0xdefc56;var _0x12d397;let _0x4cd733=[];const _0x4fc66d=(_0x12d397=this[_0x394965(0x3a6)])==null?void 0x0:_0x12d397[_0x394965(0x3c9)];_0x4fc66d===!0x0?_0x4cd733=[[exports['SheetsPivotTableService']],[exports[_0x394965(0x28b)]],[Je],[exports[_0x394965(0x31f)]],[exports[_0x394965(0x3b9)]],[ze],[je],[$e],[Ge]]:_0x4fc66d===!0x1?_0x4cd733=[[exports['SheetsPivotDataSourceModel']],[Le]]:_0x4fc66d===void 0x0&&(_0x4cd733=[[exports[_0x394965(0xd6)]],[Le],[exports[_0x394965(0x35b)]],[exports[_0x394965(0x28b)]],[Je],[exports[_0x394965(0x31f)]],[exports[_0x394965(0x3b9)]],[ze],[je],[$e],[Ge]]),_0x4cd733[_0x394965(0x187)](_0x2652a4=>this[_0x394965(0x199)]['add'](_0x2652a4)),[Le,Je,exports[_0x394965(0x35b)],je,ze,$e,Ge][_0x394965(0x187)](_0xbde773=>{const _0x2016f6=_0x394965;this[_0x2016f6(0x199)][_0x2016f6(0x18d)](_0xbde773)&&this['_injector'][_0x2016f6(0x2ba)](_0xbde773);});}['_initRegisterCommand'](){const _0x5b625f=_0xdefc56;[no,io,oo,ao,ro,go,Co,lo,uo,co,fo,vo,ho,so,Ee,yt,He,it,eo,to,ct,at,st,rt,ut,dt,_e,wt,Ft,ot,gt,pt,ft,lt,_t,mt,ht,qe,Dt,po,vt,mo,Io][_0x5b625f(0x187)](_0x1b456f=>{const _0x71e7cb=_0x5b625f;var _0x51e153;(_0x51e153=this[_0x71e7cb(0x342)])==null||_0x51e153[_0x71e7cb(0x17f)](_0x1b456f),this[_0x71e7cb(0x2bd)][_0x71e7cb(0x297)](_0x1b456f);});}},So(exports['UniverSheetsPivotTablePlugin'],_0xdefc56(0x2a6),Ct),So(exports[_0xdefc56(0x107)],_0xdefc56(0xeb),v[_0xdefc56(0x22e)][_0xdefc56(0x2db)]),exports[_0xdefc56(0x107)]=Zn([v[_0xdefc56(0x324)](ue[_0xdefc56(0x21e)]),tt(0x1,v[_0xdefc56(0x12f)](v[_0xdefc56(0x277)])),tt(0x2,v['Inject'](v[_0xdefc56(0x2e0)])),tt(0x3,v['IConfigService']),tt(0x4,v[_0xdefc56(0x3ad)](_o[_0xdefc56(0x237)]))],exports[_0xdefc56(0x107)]),exports['AddPivotFieldCommand']=oo,exports['AddPivotFieldMutation']=it,exports[_0xdefc56(0x343)]=io,exports['AddPivotTableMutation']=Ee,exports[_0xdefc56(0x2dd)]=no,exports[_0xdefc56(0x21b)]=Re,exports[_0xdefc56(0x24d)]=It,exports[_0xdefc56(0x1ec)]=ao,exports[_0xdefc56(0x39b)]=ho,exports[_0xdefc56(0x29f)]=B,exports['PivotDrillDownCommand']=so,exports[_0xdefc56(0x35e)]=k,exports[_0xdefc56(0x122)]=qe,exports[_0xdefc56(0x196)]=Mt,exports['RemovePivotFieldCommand']=ro,exports['RemovePivotFieldMutation']=at,exports[_0xdefc56(0x1e2)]=He,exports[_0xdefc56(0x382)]=st,exports[_0xdefc56(0x13a)]=Io,exports['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=Nt,exports[_0xdefc56(0x1ba)]=Ct,exports[_0xdefc56(0x360)]=lo,exports['SetPivotCollapseMutation']=rt,exports[_0xdefc56(0x334)]=lt,exports[_0xdefc56(0x232)]=mo,exports[_0xdefc56(0x1b8)]=co,exports[_0xdefc56(0x295)]=ct,exports[_0xdefc56(0x1e6)]=dt,exports[_0xdefc56(0x257)]=_e,exports[_0xdefc56(0x3a9)]=uo,exports['SetPivotSortMutation']=ut,exports[_0xdefc56(0xbf)]=ft,exports['SetPivotValueFilterCommand']=po,exports[_0xdefc56(0x23e)]=vt,exports[_0xdefc56(0x13d)]=Co,exports[_0xdefc56(0x112)]=gt,exports['UpdatePivotFieldSettingCommand']=fo,exports[_0xdefc56(0x157)]=ht,exports[_0xdefc56(0x27c)]=vo,exports[_0xdefc56(0x1f6)]=mt,exports[_0xdefc56(0x204)]=go,exports[_0xdefc56(0x3b2)]=pt,exports[_0xdefc56(0x127)]=ae,exports[_0xdefc56(0x2a1)]=Et,exports[_0xdefc56(0x28e)]=te,exports['generateSetRangeValueMutations']=Ut,exports['getAdjustRangesPosition']=oe,exports[_0xdefc56(0x194)]=Xt,exports['getFieldListByArea']=Ke,exports['getInsertRowColMutations']=le,exports[_0xdefc56(0x190)]=Yt,exports[_0xdefc56(0x17c)]=St,exports[_0xdefc56(0x30c)]=Qt,exports['transFromCellValue']=De,exports['unionPivotViewRange']=nt;