@univerjs-pro/engine-pivot 1.5.0 → 1.5.2
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -2
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2e04(_0x4fb427,_0x2dc132){_0x4fb427=_0x4fb427-0x1d1;const _0x354df3=_0x354d();let _0x2e04a8=_0x354df3[_0x4fb427];return _0x2e04a8;}function _0x354d(){const _0x15c423=['Condition','doRowBrachNode','setDisplayName','PivotTableLabelField','layoutValueNode','rowDimOrder','getTupleKeysByLabel','__number_after__','SetSortInfo','_peerUnionsByValueField','map','valueFields','setValueFilterState','_updateItemKey','updateValuePosition','getTableFieldsByDataFieldId','max','unknown','number','_squareSum','valueIndex','captionGreaterThan','parentIndex','string','getGroupFieldsInfoByIds','isErrorValue','min','iterateFieldByArea','dimensionIdList','setSortInfo','shouldWriteMultiValueSubtotalAtBottom','_getMemberType','groups','buildColPathMap','Div0','iterateFieldDim','UpdateFieldPosition','7188zAXBPE','rankAscending','SetOptions','lastMonth','Invalid\x20multiple-filter\x20mode.','setStyle','doColLeafNode','Boolean','Expand','isExistField','captionNotContains','_tupleItemsMap','bottomTotalSize','Missing\x20constrained\x20pivot\x20field:\x20','data','Standard\x20Deviation\x20of\x20','_summaryManager','fromJSON','product','formatMap','_refreshExcelLike','getPivotDateGroupingMode','_getParentNodeKey','prepareShowDataAs','addFieldWithSourceId','getTupleLabel','_parentFieldIndexes','lastCol','writeParentItemRow','yesterday','_grouping','forEach','hasOwnProperty','sourceName','setValue','setFieldFilterState','layoutHeadersWithoutColumnDimensions','Column\x20Labels','random','_recordTupleKeys','Include','setSubtotal','PivotViewItem','getGrouping','_updateStringItemKey','member','PivotExcelDateGroupUnit','22WjQhAv','repeatColLabels','excelSerialToDateTimeParts','cancelCollectChangeset','getGroupInfo','invalid','getTupleType','A\x20record\x20filter\x20evaluator\x20must\x20be\x20provided\x20by\x20the\x20host.','createCollection','filter','PivotShowAsTypeEnum','columnFields','dateType','indexOf','info','Member','unionTupleInfo','originalFieldId','mode','thisMonth','_tupleItemCounter','getName','set','getFormat','constructor','_getPeerValue','getValueFilterInfo','_callbacks','lastQuarter','states','_getParentValue','isPivotTableFilterRestrictive','getDataFieldType','shouldWriteLeafValuesUnderItem','getItemsMap','_buildNodeTreeImp','Month','selection','_model','_summaryManagerCache','getRangeKey','_preparePeerIndexes','UpdateValuePosition','log2','Second','ranges','rangeKey','captionEqual','find','valueFilterMap','rowTableIdList','year-month','dateSystem','view','Hour','15Jziaxw','getRecordValueKey','customFields','item','getRealSize','lastWeek','create','_getCoordinateKeyWithoutField','dateNewerThanOrEqual','normalizeNumberGrouping','5548367EtebUF','percentOfParentGrandTotal','clearShowDataAsCache','_buildParentIndexes','_tupleByCoordinate','layoutCorner','Unknown\x20pivot\x20filter\x20type.','dispose','valueFilterInfo','subtotal','fieldId','assign','clear','month-date','getNode','reset','captionBetween','interval','PivotDataFieldSortOperatorEnum','getTupleItemsMap','combinePathMapList','NotFunction','getTime','dataFieldsCollection','getHeaderMapItem','getNodeValue','getColIndexForRowHeader','warn','layoutPageOverThenDown','filterInfo','getPathKeyWithFiledId','Pivot\x20numeric\x20record\x20values\x20must\x20be\x20finite.','getMeasureIndex','calculateListSubtotal','getUniqueDataFieldName','itemSize','squareSum','_product','getIsLeaf','getSortedMap','abs','valueBetween','FilteredSortNone','path','hour','getInfo','dataRecordCount','layoutGrandTotalValues','getDisplayName','TUPLE_PLACEHOLDER','BaseGroupField','createLabelField','_bounds','writeLeafRows','setDirty','M10','isBottom','has','_setValueFilterState','expected','captionContains','sortLocale','setGroupInfo','dateOlderThan','DataFieldManager','countNums','_isDerivedType','setFieldFormat','year-quarter','_updateDateItemKey','text','lastYear','measureIdList','setInfo','createDataFieldId','yearToDate','hasBlank','_tupleLabels','collections','reduce','baseItemType','SetSubtotalType','fromEntries','NotNumber','getRowCount','AddField','setOptions','displayName','getRowIndexForColHeader','createPivotSortCompare','_doValueFilter','setDefaultSortLocale','layoutColNode','itemTypes','rowQueryInfo','some','displayNameRecord','writeParentRows','getNodeDisplayValue','repeatRowLabels','isRecordErrorValue','PivotShowAsBaseItemTypeEnum','queryData','descending','rowSubtotalPosition','compare','call','Sum\x20of\x20','getValuePosition','_defaultSortLocale','The\x20displayName\x20','getAutoDisplayName','_getCoordinateKey','SetValueFilter','isEmpty','hiddenFields','getCornerSize','stdDev','createSingleValueHeaderInfo','_buildRunningTotalBuffer','bottom','addRecord','Error','TUPLE_FIELD_SEPARATOR','legacy','doSummary','deleteField','captionBeginsWith','customOrder','getFieldDataType','createLabelFieldByDataFieldId','paths','excel-like','collapse','PivotErrorTypeEnum','captionEndsWith','displayPaths','records','createRowInfo','PivotTableValueField','dimensionTableIdList','getMinutes','size','@univerjs/core','normalizeExcelDateGrouping','blank','percentDifferenceFrom','minDate','sortChildrenByLabel','_valueFilterInfo','_setDerivedError','_fieldsCollection','getGroupFieldMap','hasDecimal','layoutPageDownThenOver','-$-oth-$-','split','showRowGrandTotal','_setDerivedNumber','getDataFieldId','fieldIds','Invalid\x20pivot\x20date\x20range.','_isDirty','getFieldsAreaByType','captionNotEndsWith','_percentDifference','groupInfo','layoutRowFields','query','None','localeCompare','Day','FilterAll','refreshGroupField','getTupleIndexesByKey','Product\x20of\x20','errorType','autoStart','RecordValueType','collapseInfo','BlankValue','valueFieldId','dataView','getDateGroupValid','Module','_divide','_peerIndexesByValueField','summaryManager','maxLimitItemCount','getFieldInfo','concat','colView','isBaseGroupField','_fieldIndexById','createGrandTotalInfo','tomorrow','layoutValueLeafNode','PivotTable','showColGrandTotal','host','Ambiguous\x20pivot\x20condition\x20state.','getPaths','unionTuples','hasDate','isFinite','UTC','hasNode','buildPathMap','outline','SetShowDataAs','hasPivotMultipleFilters','_dateType','getDate','minNumber','startsWith','measuresMap','pageWrap','level','Pivot\x20date\x20record\x20values\x20must\x20be\x20finite.','getDataFieldByDataFieldId','captionNotBetween','layoutColHeader','conditionFilter','buildNodeTree','grandTotal','dimension','2310105xIQXpm','createTuple','_fieldDataType','writeBottomSubtotalRow','ST_PivotFilterOperatorEnum','setDateType','All\x20selection\x20cannot\x20contain\x20values.','setLastRow','getDataFieldByTableId','_createValueFilterLevelPool','_colLevelPool','sqrt','sortChildrenByValue','thisQuarter','today','hasBoolean','setShowDataAs','setRange','getTableFieldById','compact','setValueSize','rowNodeTree','dateOlderThanOrEqual','ExcelLike','getFieldPositionInfoById','colDeep','getUniqueValueFieldName','iterateField','getFieldCountByArea','PivotDataFieldDataTypeEnum','FilterSingle','SetFilterInfo','_rowFieldIndexes','_clearSourceFilters','baseFieldId','setPaths','Row\x20Labels','getDirty','getLayout','The\x20field\x20','createSummaryLabelSortedMap','_applyValueSorts','dayLabels','condition','pageOverThenDown','variant','renameField','setLabelFilterInfo','value','_getSortCompare','getDataFieldIdByDisplayName','_coordinates','getFieldById','valueLessThanOrEqual','dateRange','updateColumnSubtotal','dataFields','textGroupField','endCollectChangeset','isManualPivotFilter','valueSortInfo','onQueryEnd','thisWeek','doRowLeafNode','add','SetCollapse','Invalid\x20pivot\x20date\x20filter.','getFilterInfo','getIndexesByPathStr','valueNotBetween','isColMultiMeasure','_tupleKeyCounter','rowCount','combinePathMap','error','tabular','_summaryCacheState','getRowColCount','getId','_getIndexedRawValue','findIndex','measure','doColBranchNode','month','start','percent','dateNotEqual','_level','DateSystem','valueFilter','grouping','prefix','filterQueryInfo','sortedList','dataFieldType','symbol','MultipleGrandTotal','getOptions','_updateNumberItemKey','layoutRowNode','buildColPathMapForCollapse','year','getHours','from','_updateBooleanItemKey','writeRootValueHeaderRow','slice','values','DateGroupField','_showDataAsResolver','_queryData','second','A\x20pivot\x20field\x20cannot\x20contain\x20two\x20date/label\x20conditions.','getRanges','SetLayout','setOther','dataFieldId','Invalid\x20pivot\x20date\x20grouping\x20mode.','FilterNoneSortDesc','shouldWriteSubtotalAtBottom','sum','setLastCol','_buildItemOrders','hasInteger','rankDescending','PivotDateGroupingMode','rowFields','PivotTableValuePositionEnum','layout','_itemIndexMaps','writeLeafItemRow','get','Invalid\x20pivot\x20whole-day\x20mode.','setDateSystem','object','round','_updateBlankItemKey','Quarter','removeValueFilterInfo','getFieldsId','colTableIdList','_buildTotalIndexes','hexCode','Number','Invalid\x20pivot\x20condition\x20filter.','CustomFilter','tuple','removeValueFilterInfoByValueFieldId','setDateFilterInfo','nextYear','layoutPage','_tupleTypes','GrandTotal','Value','FilterNoneSortAsc','average','isAll','members','setDataRecordCount','Legacy','HourMinute','setRowCount','valueQueryInfo','_bufferModel','getShowDataAs','dateBetween','shouldMultipleTotal','_difference','_addTupleRecord','getTupleKey','isLeaf','_tupleKeysByLabel','getFieldIdByDisplayName','captionNotBeginsWith','getAllIndexMap','filterFields','LabelViewItem','operator','hasSort','valueLessThan','default','layoutColFields','previous','setParentIndex','boolean','percentOfColumnTotal','defineProperty','isArray','_grandTotalIndex','shouldSplitRootByValues','clearFilters','resort','_getIndexedTupleIndex','isRowMultiMeasure','join','Collapse','hasError','_isPeerType','RenameField','_prepareDerivedBuffers','addRange','Date1900','getDataRecordCount','endChangeStack','Column','type','isDateGroupFieldJSON','valueNotEqual','getFieldDisplayNames','_itemsMap','getUniqueFieldId','ready','Population\x20Standard\x20Deviation\x20of\x20','Average\x20of\x20','Hidden','BLANK_PLACEHOLDER','percentRunningTotal','entries','leafCount','valueGreaterThan','pop','push','isExistFieldName','hiddenQueryInfo','setBlank','rowDeep','_buildPeerIndexes','defaultNormalField','index','tupleMap','layoutValueNodeSubtotal','YearQuarter','isInteger','Collator','getAutoDisplayNameFunction','_sortCompareCache','colCount','MIN_VALUE','percentOf','isDateValue','UpdateSource','valueGreaterThanOrEqual','setCollapse','_getValueFilterTree','_createDerivedBuffer','other','name','setLabelValue','updateFieldSourceInfo','setValueFilterInfo','getFieldIds','writeValueHeaderRow','prepareLayoutCtx','stringify','_getRawValue','rowView','registerCallbackWithEvent','_rowLevelPool','_dataIsValid','Date','colPathMap','_heap','cloneBufferModel','group','getFilteredRecordIndexes','prepare','dateNewerThan','pageView','ManualGroupField','createOrUpdateTuple','thisYear','year-month-date','sort','getItemSharedKey','_keyCounter','getValueIndex','getValue','ROW_ROOT_PATH','-$-rr-$-','nextMonth','compileRecordFilter','getCell','_buildCoordinateIndex','getTypeByKey','includes','subtotalMap','_bubbleDown','var','setConditionFilterInfo','updateRowSubtotal','\x20is\x20exist\x20in\x20the\x20pivot\x20table.','_recordKeys','custom','setSourceName','\x20is\x20not\x20in\x20the\x20pivot\x20table.','updateAllDisplayName','colDimOrder','isPrefixValue','hasText','measureIndexesMap','_calculateSubtotalImp','_applyLabelSorts','captionLessThanOrEqual','setFormat','PivotCellStyleTypeEnum','iterate','Max\x20of\x20','Filter','getQueryData','NUMBER_GROUP_AFTER_KEY','getIndexesByKey','end','getSubtotal','function','_canonicalTupleIndexes','unit','useWholeDay','_setPageFilterLabel','tupleIndex','DataField','addField','minute','getDateType','countN','_itemIndexMap','\x20-\x20','getformat','NUMBER_GROUP_BEFORE_KEY','FieldsCollection','length','_getModel','format','_buildRankBuffer','setColCount','fill','calculateSubtotal','ValueFilter','getSourceName','getColCount','toStringTag','getDisplayNameByKey','getPivotRecordMember','824enkNRq','SetFieldFormat','hasField','splice','indexes','isLeafNode','_overflowRecordIndexes','EXCEL_DATE_BEFORE_KEY','FilteredSortAsc','_parentColumnTotalIndexes','sortMap','every','getManualGroupValid','normalizeManualGrouping','_updateOtherItemKey','Count\x20of\x20','toUpperCase','percentOfParentRowTotal','UniverCore','getFilterFieldIdByIndex','getMeasureInfoByIndex','setPageIndex','_getIndex','Min\x20of\x20','tuples','39623RuppCf','valueEqual','_layout','_getParentGroupKey','_rowTotalIndexes','FilterSelectionMode','writeParentRow','prototype','setFilterInfo','layoutCol','cornerView','_getDerivedValue','excelLike','_getIndexValue','colQueryInfo','setLayout','setMaxLimitItemCount','items','PivotDataFieldTypeEnum','showColSubtotal','getCellValue','515820OrxGly','M12','nextWeek','-$-blk-$-','FilterNoneSortNone','createTupleWithoutCheck','_parentRowTotalIndexes','getMonth','setLevel','getConditionFilterInfo','PivotCallbackEnum','7083yalrUS','defaultSortType','autoEnd','_columnFieldIndexes','startContent','Year','lastRow','_prepareParentIndexes','_parentFieldIndexByValueField','_fieldCount','subTotal','_countN','toJSON','list','node','_updateErrorItemKey','date','dateGroupingMode','endDate','getValueFields','allowMultipleFilters','range','updateFieldPosition','_changeStack','dateEqual','_getCanonicalTupleIndex','Minute','createDataFieldFromJSON','customGroupField','clearFieldFilters','nextQuarter','dimensionMap','_prepareTotalIndexes','_tupleIndexMap','hasSourceName','hour-minute','MonthDate','addNode','percentOfParentColumnTotal','differenceFrom','floor','percentOfRowTotal','\x20Σ值','PivotDateGroupFieldDateTypeEnum','getFieldFormat','All','writeGrandTotalRows','getLastRow','measureCount','isDev','getValueFilterInfos','maxDate','Unknown\x20filter\x20operator:\x20','setLeaf','_columnTotalIndexes','count','applyNodeValueType','BadReference','_tupleGroupCache','getDataFieldItemInfo','Row','stdDevp','showDataAs','sortNode','layoutNoneColFields','_min','getSortInfo','setSubtotalType','Invalid\x20pivot\x20record\x20selection.','getRangeData','_divideParent','_index','layoutRowChildren','ensureTupleItem','ManualFilter','getOriginFieldId','The\x20value\x20filter\x20info\x20is\x20invalid.','PivotSubtotalTypeEnum','93SodThm','keys','PivotTableChangeTypeEnum','ceil','startDate','_excelLike','runningTotal','setName','_id','GlobalConfig','setRangeKey','onQueryStart','_nodes','sortItems','startCollectChangeset','UniverProEnginePivot','__number_before__','Exclude','getLevel','removeField','field','FilteredSortDesc','shouldMultipleNode','iterateColLeafNodeChildren','getValueLabelCol','captionGreaterThanOrEqual','dateGroupField','_sum','addValue','quarter','topTotalSize','_readPathIntoCoordinate','counter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','baseItem','dimensionSortInfo','resetSort','getIndex','summary','writeBottomSubtotalRows','createValueFieldByDataFieldId','maxNumber','PivotFilterCategory','PivotLayoutTypeEnum','ensureTupleItemByString','EXCEL_DATE_AFTER_KEY','normal','getRowLabelCol','percentOfGrandTotal','isPivotDateFilter','toPrimitive','_isParentType','options','_displayNames','showRowSubtotal','top','colNodeTree','otherDataKey','sortInfo','_max','_buildOrderedGroups','PivotDataFieldSortTypeEnum','RemoveField','iterator','getLastCol','_derivedValuesByValueField','_clearSourceFilterCategory','dateNotBetween','141978WSqyTe','Blank','_getTupleCache','addHeaderMapItem','_getFieldIndex','day','getItemKey','M11','_count','getFullYear','_calculateValueFilter','getCollapse','startChangeStack','setRowCollapseLevel','ascending','addCollection','captionLessThan','Unsupported\x20pivot\x20caption\x20operator.','lossLessProperty','getDefaultNumberGrouping','headerMap','valuePosition','String','layoutRowNodeToCursor','percentOfParent','repeatRowLabelsForNode','toPrecision','Subtotal','writeLeafValueRow','endsWith'];_0x354d=function(){return _0x15c423;};return _0x354d();}(function(_0x4c6f7c,_0x201bd5){const _0x54c130=_0x2e04,_0x283cad=_0x4c6f7c();while(!![]){try{const _0x5ad381=-parseInt(_0x54c130(0x445))/0x1*(parseInt(_0x54c130(0x569))/0x2)+-parseInt(_0x54c130(0x4b3))/0x3*(parseInt(_0x54c130(0x53a))/0x4)+-parseInt(_0x54c130(0x1ea))/0x5*(parseInt(_0x54c130(0x4f7))/0x6)+parseInt(_0x54c130(0x2d6))/0x7+-parseInt(_0x54c130(0x42c))/0x8*(parseInt(_0x54c130(0x465))/0x9)+parseInt(_0x54c130(0x45a))/0xa+parseInt(_0x54c130(0x1f4))/0xb;if(_0x5ad381===_0x201bd5)break;else _0x283cad['push'](_0x283cad['shift']());}catch(_0x5c273c){_0x283cad['push'](_0x283cad['shift']());}}}(_0x354d,0x3b2d0),function(_0x441279,_0x302494){const _0x8d676f=_0x2e04;typeof exports==_0x8d676f(0x35c)&&typeof module<'u'?_0x302494(exports,require('@univerjs/core')):typeof define==_0x8d676f(0x40f)&&define['amd']?define(['exports',_0x8d676f(0x283)],_0x302494):(_0x441279=typeof globalThis<'u'?globalThis:_0x441279||self,_0x302494(_0x441279[_0x8d676f(0x4c2)]={},_0x441279[_0x8d676f(0x43e)]));}(this,function(_0x581279,_0x20af02){const _0x20ea74=_0x2e04;Object[_0x20ea74(0x390)](_0x581279,Symbol[_0x20ea74(0x429)],{'value':_0x20ea74(0x2ac)});let _0x209170={'TUPLE_PLACEHOLDER':'-&&-','TUPLE_FIELD_SEPARATOR':'-%$%-','COl_ROOT_PATH':'-$-cr-$-','ROW_ROOT_PATH':_0x20ea74(0x3ec),'BLANK_PLACEHOLDER':_0x20ea74(0x45d),'isDev':!0x1,'defaultSortType':'default','dateSystem':_0x20af02[_0x20ea74(0x32e)][_0x20ea74(0x39f)],'maxLimitItemCount':0x3e8,'otherDataKey':_0x20ea74(0x28f)},_0x3c4d6a=_0x14804a=>_0x209170[_0x20ea74(0x1e7)]=_0x14804a,_0x43f280=_0x2bec8a=>{const _0x2ee61d=_0x20ea74;_0x2bec8a>0x0&&(_0x209170[_0x2ee61d(0x2b0)]=_0x2bec8a);},_0x35fa6=function(_0x1ee508){const _0x2b2dd8=_0x20ea74;return _0x1ee508[_0x1ee508[_0x2b2dd8(0x371)]=0x1]=_0x2b2dd8(0x371),_0x1ee508[_0x1ee508[_0x2b2dd8(0x49c)]=0x2]='count',_0x1ee508[_0x1ee508[_0x2b2dd8(0x235)]=0x3]=_0x2b2dd8(0x235),_0x1ee508[_0x1ee508['max']=0x4]=_0x2b2dd8(0x525),_0x1ee508[_0x1ee508[_0x2b2dd8(0x52f)]=0x5]='min',_0x1ee508[_0x1ee508[_0x2b2dd8(0x54c)]=0x6]=_0x2b2dd8(0x54c),_0x1ee508[_0x1ee508[_0x2b2dd8(0x269)]=0x7]=_0x2b2dd8(0x269),_0x1ee508[_0x1ee508[_0x2b2dd8(0x4a2)]=0x8]=_0x2b2dd8(0x4a2),_0x1ee508[_0x1ee508[_0x2b2dd8(0x34e)]=0x9]=_0x2b2dd8(0x34e),_0x1ee508[_0x1ee508[_0x2b2dd8(0x3f5)]=0xa]=_0x2b2dd8(0x3f5),_0x1ee508[_0x1ee508['varp']=0xb]='varp',_0x1ee508;}({}),_0x15bbcd=function(_0x35b77b){const _0x2f9a01=_0x20ea74;return _0x35b77b[_0x35b77b[_0x2f9a01(0x4e1)]=0x1]='normal',_0x35b77b[_0x35b77b['percentOfColumnTotal']=0x2]=_0x2f9a01(0x38f),_0x35b77b[_0x35b77b[_0x2f9a01(0x48e)]=0x3]=_0x2f9a01(0x48e),_0x35b77b[_0x35b77b[_0x2f9a01(0x4e3)]=0x4]=_0x2f9a01(0x4e3),_0x35b77b[_0x35b77b[_0x2f9a01(0x48b)]=0x5]=_0x2f9a01(0x48b),_0x35b77b[_0x35b77b['percentOfParentRowTotal']=0x6]=_0x2f9a01(0x43d),_0x35b77b[_0x35b77b['percentOfParentGrandTotal']=0x7]=_0x2f9a01(0x1f5),_0x35b77b[_0x35b77b['index']=0x8]=_0x2f9a01(0x3ba),_0x35b77b[_0x35b77b[_0x2f9a01(0x48c)]=0x9]=_0x2f9a01(0x48c),_0x35b77b[_0x35b77b['percentDifferenceFrom']=0xa]=_0x2f9a01(0x286),_0x35b77b[_0x35b77b[_0x2f9a01(0x4b9)]=0xb]=_0x2f9a01(0x4b9),_0x35b77b[_0x35b77b[_0x2f9a01(0x3ae)]=0xc]=_0x2f9a01(0x3ae),_0x35b77b[_0x35b77b[_0x2f9a01(0x3c4)]=0xd]=_0x2f9a01(0x3c4),_0x35b77b[_0x35b77b['percentOfParent']=0xe]=_0x2f9a01(0x50f),_0x35b77b[_0x35b77b[_0x2f9a01(0x53b)]=0xf]=_0x2f9a01(0x53b),_0x35b77b[_0x35b77b[_0x2f9a01(0x352)]=0x10]=_0x2f9a01(0x352),_0x35b77b;}({}),_0xfff0dd=function(_0x4d1a3d){const _0x31751a=_0x20ea74;return _0x4d1a3d[_0x4d1a3d[_0x31751a(0x1ed)]=0x1]=_0x31751a(0x1ed),_0x4d1a3d[_0x4d1a3d[_0x31751a(0x38c)]=0x2]=_0x31751a(0x38c),_0x4d1a3d[_0x4d1a3d['next']=0x3]='next',_0x4d1a3d;}({}),_0x5e4963=function(_0x1ce703){const _0x325a39=_0x20ea74;return _0x1ce703[_0x1ce703[_0x325a39(0x537)]=0x1]=_0x325a39(0x537),_0x1ce703[_0x1ce703['NotNumber']=0x2]=_0x325a39(0x247),_0x1ce703[_0x1ce703[_0x325a39(0x209)]=0x3]='NotFunction',_0x1ce703[_0x1ce703['NotName']=0x4]='NotName',_0x1ce703[_0x1ce703[_0x325a39(0x49e)]=0x5]=_0x325a39(0x49e),_0x1ce703;}({}),_0x296851=function(_0x87b150){const _0x5cee14=_0x20ea74;return _0x87b150[_0x87b150[_0x5cee14(0x367)]=0x1]=_0x5cee14(0x367),_0x87b150[_0x87b150[_0x5cee14(0x426)]=0x2]='ValueFilter',_0x87b150[_0x87b150[_0x5cee14(0x4af)]=0x3]=_0x5cee14(0x4af),_0x87b150[_0x87b150['RecordFilter']=0x4]='RecordFilter',_0x87b150;}({}),_0x290dad=function(_0x5a44a8){const _0x1c363b=_0x20ea74;return _0x5a44a8[_0x5a44a8[_0x1c363b(0x3a2)]=0x1]=_0x1c363b(0x3a2),_0x5a44a8[_0x5a44a8['Row']=0x2]=_0x1c363b(0x4a1),_0x5a44a8[_0x5a44a8[_0x1c363b(0x36f)]=0x3]='Value',_0x5a44a8[_0x5a44a8[_0x1c363b(0x409)]=0x4]=_0x1c363b(0x409),_0x5a44a8[_0x5a44a8[_0x1c363b(0x3ac)]=0x5]=_0x1c363b(0x3ac),_0x5a44a8;}({}),_0x349af9=function(_0xffd7aa){const _0x45b296=_0x20ea74;return _0xffd7aa[_0xffd7aa[_0x45b296(0x29d)]=-0x1]=_0x45b296(0x29d),_0xffd7aa[_0xffd7aa[_0x45b296(0x3a2)]=0x1]=_0x45b296(0x3a2),_0xffd7aa[_0xffd7aa['Row']=0x2]='Row',_0xffd7aa;}({}),_0x2eeef3=function(_0x528008){const _0x2a941f=_0x20ea74;return _0x528008[_0x528008[_0x2a941f(0x23a)]=0x1]=_0x2a941f(0x23a),_0x528008[_0x528008[_0x2a941f(0x527)]=0x2]=_0x2a941f(0x527),_0x528008[_0x528008[_0x2a941f(0x38e)]=0x3]='boolean',_0x528008[_0x528008[_0x2a941f(0x475)]=0x4]=_0x2a941f(0x475),_0x528008[_0x528008[_0x2a941f(0x285)]=0x5]=_0x2a941f(0x285),_0x528008[_0x528008[_0x2a941f(0x3cb)]=0x6]='other',_0x528008;}({}),_0x1de0f8=function(_0x459cfd){const _0x4cb9ad=_0x20ea74;return _0x459cfd[_0x459cfd[_0x4cb9ad(0x306)]=0x1]=_0x4cb9ad(0x306),_0x459cfd[_0x459cfd[_0x4cb9ad(0x4c7)]=0x2]=_0x4cb9ad(0x4c7),_0x459cfd;}({}),_0x480c35=function(_0x5e5ad4){const _0x3bd503=_0x20ea74;return _0x5e5ad4[_0x5e5ad4[_0x3bd503(0x505)]=0x1]=_0x3bd503(0x505),_0x5e5ad4[_0x5e5ad4[_0x3bd503(0x25b)]=0x2]=_0x3bd503(0x25b),_0x5e5ad4[_0x5e5ad4[_0x3bd503(0x3fa)]=0x3]=_0x3bd503(0x3fa),_0x5e5ad4;}({}),_0x2c33bc=function(_0x6016a1){const _0x51d18d=_0x20ea74;return _0x6016a1[_0x6016a1[_0x51d18d(0x273)]=0x1]=_0x51d18d(0x273),_0x6016a1[_0x6016a1['captionBetween']=0x2]=_0x51d18d(0x204),_0x6016a1[_0x6016a1[_0x51d18d(0x230)]=0x3]=_0x51d18d(0x230),_0x6016a1[_0x6016a1['captionEndsWith']=0x4]=_0x51d18d(0x27b),_0x6016a1[_0x6016a1[_0x51d18d(0x1e2)]=0x5]=_0x51d18d(0x1e2),_0x6016a1[_0x6016a1[_0x51d18d(0x52a)]=0x6]=_0x51d18d(0x52a),_0x6016a1[_0x6016a1[_0x51d18d(0x4cc)]=0x7]=_0x51d18d(0x4cc),_0x6016a1[_0x6016a1[_0x51d18d(0x507)]=0x8]=_0x51d18d(0x507),_0x6016a1[_0x6016a1['captionLessThanOrEqual']=0x9]=_0x51d18d(0x404),_0x6016a1[_0x6016a1[_0x51d18d(0x383)]=0xa]=_0x51d18d(0x383),_0x6016a1[_0x6016a1[_0x51d18d(0x2d0)]=0xb]='captionNotBetween',_0x6016a1[_0x6016a1[_0x51d18d(0x544)]=0xc]=_0x51d18d(0x544),_0x6016a1[_0x6016a1[_0x51d18d(0x298)]=0xd]=_0x51d18d(0x298),_0x6016a1[_0x6016a1['captionNotEqual']=0xe]='captionNotEqual',_0x6016a1[_0x6016a1[_0x51d18d(0x49c)]=0xf]=_0x51d18d(0x49c),_0x6016a1[_0x6016a1[_0x51d18d(0x37b)]=0x10]=_0x51d18d(0x37b),_0x6016a1[_0x6016a1[_0x51d18d(0x47d)]=0x11]=_0x51d18d(0x47d),_0x6016a1[_0x6016a1[_0x51d18d(0x3e0)]=0x12]=_0x51d18d(0x3e0),_0x6016a1[_0x6016a1['dateNewerThanOrEqual']=0x13]=_0x51d18d(0x1f2),_0x6016a1[_0x6016a1[_0x51d18d(0x4f6)]=0x14]='dateNotBetween',_0x6016a1[_0x6016a1[_0x51d18d(0x32c)]=0x15]=_0x51d18d(0x32c),_0x6016a1[_0x6016a1[_0x51d18d(0x233)]=0x16]=_0x51d18d(0x233),_0x6016a1[_0x6016a1[_0x51d18d(0x2ec)]=0x17]='dateOlderThanOrEqual',_0x6016a1[_0x6016a1[_0x51d18d(0x53d)]=0x18]='lastMonth',_0x6016a1[_0x6016a1[_0x51d18d(0x585)]=0x19]=_0x51d18d(0x585),_0x6016a1[_0x6016a1['lastWeek']=0x1a]=_0x51d18d(0x1ef),_0x6016a1[_0x6016a1[_0x51d18d(0x23b)]=0x1b]='lastYear',_0x6016a1[_0x6016a1['M1']=0x1c]='M1',_0x6016a1[_0x6016a1[_0x51d18d(0x22b)]=0x1d]=_0x51d18d(0x22b),_0x6016a1[_0x6016a1[_0x51d18d(0x4fe)]=0x1e]='M11',_0x6016a1[_0x6016a1['M12']=0x1f]=_0x51d18d(0x45b),_0x6016a1[_0x6016a1['M2']=0x20]='M2',_0x6016a1[_0x6016a1['M3']=0x21]='M3',_0x6016a1[_0x6016a1['M4']=0x22]='M4',_0x6016a1[_0x6016a1['M5']=0x23]='M5',_0x6016a1[_0x6016a1['M6']=0x24]='M6',_0x6016a1[_0x6016a1['M7']=0x25]='M7',_0x6016a1[_0x6016a1['M8']=0x26]='M8',_0x6016a1[_0x6016a1['M9']=0x27]='M9',_0x6016a1[_0x6016a1['nextMonth']=0x28]=_0x51d18d(0x3ed),_0x6016a1[_0x6016a1['nextQuarter']=0x29]=_0x51d18d(0x483),_0x6016a1[_0x6016a1[_0x51d18d(0x45c)]=0x2a]=_0x51d18d(0x45c),_0x6016a1[_0x6016a1['nextYear']=0x2b]=_0x51d18d(0x36b),_0x6016a1[_0x6016a1[_0x51d18d(0x32b)]=0x2c]=_0x51d18d(0x32b),_0x6016a1[_0x6016a1['Q1']=0x2d]='Q1',_0x6016a1[_0x6016a1['Q2']=0x2e]='Q2',_0x6016a1[_0x6016a1['Q3']=0x2f]='Q3',_0x6016a1[_0x6016a1['Q4']=0x30]='Q4',_0x6016a1[_0x6016a1[_0x51d18d(0x34e)]=0x31]='sum',_0x6016a1[_0x6016a1['thisMonth']=0x32]=_0x51d18d(0x57c),_0x6016a1[_0x6016a1[_0x51d18d(0x2e3)]=0x33]=_0x51d18d(0x2e3),_0x6016a1[_0x6016a1[_0x51d18d(0x314)]=0x34]=_0x51d18d(0x314),_0x6016a1[_0x6016a1[_0x51d18d(0x3e4)]=0x35]=_0x51d18d(0x3e4),_0x6016a1[_0x6016a1[_0x51d18d(0x2e4)]=0x36]=_0x51d18d(0x2e4),_0x6016a1[_0x6016a1[_0x51d18d(0x2b7)]=0x37]=_0x51d18d(0x2b7),_0x6016a1[_0x6016a1[_0x51d18d(0x526)]=0x38]=_0x51d18d(0x526),_0x6016a1[_0x6016a1[_0x51d18d(0x21d)]=0x39]=_0x51d18d(0x21d),_0x6016a1[_0x6016a1[_0x51d18d(0x446)]=0x3a]=_0x51d18d(0x446),_0x6016a1[_0x6016a1[_0x51d18d(0x3b1)]=0x3b]=_0x51d18d(0x3b1),_0x6016a1[_0x6016a1['valueGreaterThanOrEqual']=0x3c]=_0x51d18d(0x3c7),_0x6016a1[_0x6016a1[_0x51d18d(0x389)]=0x3d]=_0x51d18d(0x389),_0x6016a1[_0x6016a1['valueLessThanOrEqual']=0x3e]=_0x51d18d(0x30b),_0x6016a1[_0x6016a1[_0x51d18d(0x31b)]=0x3f]=_0x51d18d(0x31b),_0x6016a1[_0x6016a1[_0x51d18d(0x3a5)]=0x40]=_0x51d18d(0x3a5),_0x6016a1[_0x6016a1[_0x51d18d(0x23f)]=0x41]='yearToDate',_0x6016a1[_0x6016a1[_0x51d18d(0x557)]=0x42]='yesterday',_0x6016a1;}({}),_0x416e54=function(_0x20c0c7){const _0x3e66c7=_0x20ea74;return _0x20c0c7[_0x20c0c7[_0x3e66c7(0x2e9)]=0x1]=_0x3e66c7(0x2e9),_0x20c0c7[_0x20c0c7[_0x3e66c7(0x2c4)]=0x2]=_0x3e66c7(0x2c4),_0x20c0c7[_0x20c0c7['tabular']=0x3]=_0x3e66c7(0x321),_0x20c0c7;}({}),_0x25e7d8=function(_0x336148){const _0x5a602a=_0x20ea74;return _0x336148[_0x336148[_0x5a602a(0x4ea)]=0x1]='top',_0x336148[_0x336148['bottom']=0x2]=_0x5a602a(0x26c),_0x336148;}({}),_0x52e3f6=function(_0x4cd918){const _0x26b8c6=_0x20ea74;return _0x4cd918['onQueryStart']=_0x26b8c6(0x4be),_0x4cd918[_0x26b8c6(0x313)]='onQueryEnd',_0x4cd918;}({}),_0x1ef5d5=function(_0x42904b){const _0x421d9b=_0x20ea74;return _0x42904b[_0x42904b[_0x421d9b(0x3b9)]=0x1]=_0x421d9b(0x3b9),_0x42904b[_0x42904b['numberGroupField']=0x2]='numberGroupField',_0x42904b[_0x42904b[_0x421d9b(0x4cd)]=0x3]=_0x421d9b(0x4cd),_0x42904b[_0x42904b['textGroupField']=0x4]=_0x421d9b(0x30f),_0x42904b[_0x42904b['customGroupField']=0x5]=_0x421d9b(0x481),_0x42904b;}({}),_0x4e081f=function(_0x44ba13){const _0x1d7bc5=_0x20ea74;return _0x44ba13[_0x1d7bc5(0x375)]=_0x1d7bc5(0x270),_0x44ba13[_0x1d7bc5(0x2ed)]=_0x1d7bc5(0x278),_0x44ba13;}({}),_0x5eecb9=function(_0x1d36fd){const _0x13323d=_0x20ea74;return _0x1d36fd[_0x13323d(0x46a)]=_0x13323d(0x33b),_0x1d36fd[_0x13323d(0x35f)]='quarter',_0x1d36fd[_0x13323d(0x1d7)]=_0x13323d(0x329),_0x1d36fd[_0x13323d(0x29f)]='day',_0x1d36fd[_0x13323d(0x1e9)]='hour',_0x1d36fd['Minute']=_0x13323d(0x417),_0x1d36fd[_0x13323d(0x1df)]='second',_0x1d36fd;}({}),_0x2b5683=function(_0x14af84){const _0x2ca6d7=_0x20ea74;return _0x14af84[_0x2ca6d7(0x47f)]=_0x2ca6d7(0x417),_0x14af84[_0x2ca6d7(0x1e9)]='hour',_0x14af84[_0x2ca6d7(0x376)]=_0x2ca6d7(0x488),_0x14af84['Date']=_0x2ca6d7(0x475),_0x14af84['Month']=_0x2ca6d7(0x329),_0x14af84[_0x2ca6d7(0x489)]=_0x2ca6d7(0x201),_0x14af84[_0x2ca6d7(0x35f)]=_0x2ca6d7(0x4d0),_0x14af84[_0x2ca6d7(0x46a)]=_0x2ca6d7(0x33b),_0x14af84['YearMonth']=_0x2ca6d7(0x1e6),_0x14af84[_0x2ca6d7(0x3bd)]=_0x2ca6d7(0x238),_0x14af84['YearMonthDate']=_0x2ca6d7(0x3e5),_0x14af84;}({}),_0x1cff1c=function(_0x160726){const _0x404533=_0x20ea74;return _0x160726[_0x404533(0x578)]=_0x404533(0x567),_0x160726[_0x404533(0x515)]='condition',_0x160726[_0x404533(0x36f)]='value',_0x160726;}({});function _0xa4aac2(_0x3f3f4b){const _0x7e67b6=_0x20ea74;return Number[_0x7e67b6(0x3be)](_0x3f3f4b)&&_0x3f3f4b>=0x10&&_0x3f3f4b<=0x17;}function _0x5ac9ed(_0x49f080){const _0x13218e=_0x20ea74;return(_0x49f080==null?void 0x0:_0x49f080['type'])===0x1&&_0xa4aac2(_0x49f080[_0x13218e(0x387)]);}function _0x33b607(_0x547573){const _0x7baac=_0x20ea74;if(!_0x5ac9ed(_0x547573)||_0x547573[_0x7baac(0x412)]!==void 0x0&&typeof _0x547573['useWholeDay']!=_0x7baac(0x38e))throw TypeError(_0x7baac(0x318));let _0x235d8a=_0x547573[_0x7baac(0x387)]===0x10||_0x547573[_0x7baac(0x387)]===0x14,_0x124181=_0x235d8a?_0x547573[_0x7baac(0x22f)]:[_0x547573[_0x7baac(0x22f)]];if(!Array[_0x7baac(0x391)](_0x124181)||_0x124181[_0x7baac(0x41f)]!==(_0x235d8a?0x2:0x1)||_0x124181[_0x7baac(0x253)](_0x38975c=>typeof _0x38975c!=_0x7baac(0x527)||!Number[_0x7baac(0x2c0)](_0x38975c))||_0x235d8a&&_0x124181[0x0]>_0x124181[0x1])throw RangeError('Pivot\x20date\x20operands\x20must\x20be\x20finite\x20and\x20ordered.');let _0x2cafaa=_0x547573[_0x7baac(0x412)]===!0x0,_0x35c1f2=_0x2cafaa?Math[_0x7baac(0x48d)](_0x124181[0x0]):_0x124181[0x0],_0x35cbb3=_0x2cafaa?Math[_0x7baac(0x48d)](_0x124181[0x1]):_0x124181[0x1],_0x466ace=_0x547573[_0x7baac(0x387)];return _0x2d68bb=>{const _0x59c332=_0x7baac;if(!Number[_0x59c332(0x2c0)](_0x2d68bb))return!0x1;let _0x2f2cc9=_0x2cafaa?Math[_0x59c332(0x48d)](_0x2d68bb):_0x2d68bb;switch(_0x466ace){case 0x10:return _0x2f2cc9>=_0x35c1f2&&_0x2f2cc9<=_0x35cbb3;case 0x14:return _0x2f2cc9<_0x35c1f2||_0x2f2cc9>_0x35cbb3;case 0x11:return _0x2f2cc9===_0x35c1f2;case 0x15:return _0x2f2cc9!==_0x35c1f2;case 0x12:return _0x2f2cc9>_0x35c1f2;case 0x13:return _0x2f2cc9>=_0x35c1f2;case 0x16:return _0x2f2cc9<_0x35c1f2;case 0x17:return _0x2f2cc9<=_0x35c1f2;default:return!0x1;}};}function _0x3fa860(_0x5a3643){const _0x28f887=_0x20ea74;return typeof _0x5a3643==_0x28f887(0x35c)&&!!_0x5a3643&&!Array['isArray'](_0x5a3643)&&'v'in _0x5a3643&&typeof _0x5a3643['v']==_0x28f887(0x527)&&'f'in _0x5a3643&&typeof _0x5a3643['f']==_0x28f887(0x52c);}function _0x49d3c2(_0x15f0c7){const _0xe466a8=_0x20ea74;return typeof _0x15f0c7=='object'&&!!_0x15f0c7&&!Array[_0xe466a8(0x391)](_0x15f0c7)&&'error'in _0x15f0c7&&typeof _0x15f0c7[_0xe466a8(0x320)]==_0xe466a8(0x52c);}function _0x1010e4(_0x2d3e54){const _0xad6b5d=_0x20ea74;let {operator:_0x52df40,expected:_0x29429e}=_0x2d3e54,_0x384e15=String(Array[_0xad6b5d(0x391)](_0x29429e)?_0x29429e[0x0]:_0x29429e),_0x13ea4a=Array['isArray'](_0x29429e)?String(_0x29429e[0x1]):_0x384e15;return _0x73285=>{const _0x58c5c7=_0xad6b5d;switch(_0x52df40){case 0x1:return _0x73285[_0x58c5c7(0x2ca)](_0x384e15);case 0x2:return _0x73285>=_0x384e15&&_0x73285<=_0x13ea4a;case 0x3:return _0x73285[_0x58c5c7(0x3f2)](_0x384e15);case 0x4:return _0x73285[_0x58c5c7(0x514)](_0x384e15);case 0x5:return _0x73285===_0x384e15;case 0x6:return _0x73285>_0x384e15;case 0x7:return _0x73285>=_0x384e15;case 0x8:return _0x73285<_0x384e15;case 0x9:return _0x73285<=_0x384e15;case 0xa:return!_0x73285[_0x58c5c7(0x2ca)](_0x384e15);case 0xb:return _0x73285<_0x384e15||_0x73285>_0x13ea4a;case 0xc:return!_0x73285[_0x58c5c7(0x3f2)](_0x384e15);case 0xd:return!_0x73285[_0x58c5c7(0x514)](_0x384e15);case 0xe:return _0x73285!==_0x384e15;default:throw TypeError(_0x58c5c7(0x508));}};}function _0x1f688a(_0x4b59e4){switch(_0x4b59e4){case 0xf:case 0x2c:case 0x39:case 0x3a:case 0x3b:case 0x3c:case 0x3d:case 0x3e:case 0x3f:case 0x40:return!0x0;default:return!0x1;}}function _0x2073f2(_0x7b8dfe,_0xab9728,_0x257229){const _0x11a149=_0x20ea74;let _0x515341=Math[_0x11a149(0x52f)](_0x7b8dfe[_0x11a149(0x41f)],Math[_0x11a149(0x525)](0x0,Math[_0x11a149(0x4b6)](_0xab9728)));if(_0x515341===0x0)return;if(_0x515341===_0x7b8dfe[_0x11a149(0x41f)]){let _0x1a8068=_0x7b8dfe[0x0];for(let _0x672795=0x1;_0x672795<_0x7b8dfe[_0x11a149(0x41f)];_0x672795++)_0x1a8068=_0x257229?Math[_0x11a149(0x525)](_0x1a8068,_0x7b8dfe[_0x672795]):Math[_0x11a149(0x52f)](_0x1a8068,_0x7b8dfe[_0x672795]);return _0x1a8068;}let _0x104560=[],_0x4a6338=_0x2b01e7=>{const _0x192f5d=_0x11a149;_0x104560[_0x192f5d(0x3b3)](_0x2b01e7);let _0x29c743=_0x104560[_0x192f5d(0x41f)]-0x1;for(;_0x29c743>0x0;){let _0x4482cb=Math[_0x192f5d(0x48d)]((_0x29c743-0x1)/0x2);if(_0x104560[_0x4482cb]<=_0x104560[_0x29c743])break;[_0x104560[_0x4482cb],_0x104560[_0x29c743]]=[_0x104560[_0x29c743],_0x104560[_0x4482cb]],_0x29c743=_0x4482cb;}},_0x3c4ed0=_0xcfedc5=>{const _0x1a4df0=_0x11a149;_0x104560[0x0]=_0xcfedc5;let _0x47ffc4=0x0;for(;;){let _0x90051a=_0x47ffc4*0x2+0x1,_0x352462=_0x90051a+0x1,_0x9e6bce=_0x47ffc4;if(_0x90051a<_0x104560[_0x1a4df0(0x41f)]&&_0x104560[_0x90051a]<_0x104560[_0x9e6bce]&&(_0x9e6bce=_0x90051a),_0x352462<_0x104560[_0x1a4df0(0x41f)]&&_0x104560[_0x352462]<_0x104560[_0x9e6bce]&&(_0x9e6bce=_0x352462),_0x9e6bce===_0x47ffc4)break;[_0x104560[_0x47ffc4],_0x104560[_0x9e6bce]]=[_0x104560[_0x9e6bce],_0x104560[_0x47ffc4]],_0x47ffc4=_0x9e6bce;}};for(let _0x437667 of _0x7b8dfe){let _0x12dcce=_0x257229?-_0x437667:_0x437667;_0x104560[_0x11a149(0x41f)]<_0x515341?_0x4a6338(_0x12dcce):_0x12dcce>_0x104560[0x0]&&_0x3c4ed0(_0x12dcce);}return _0x257229?-_0x104560[0x0]:_0x104560[0x0];}function _0x9608f9(_0xdc202a){const _0x4a3f18=_0x20ea74;let {operator:_0x534ac8,expected:_0x112a51}=_0xdc202a;switch(_0x534ac8){case 0x39:return _0x2db088=>_0x2db088>=_0x112a51[0x0]&&_0x2db088<=_0x112a51[0x1];case 0x3a:return _0x220b47=>_0x220b47===_0x112a51;case 0x3b:return _0x1b6d11=>_0x1b6d11>_0x112a51;case 0x3c:return _0x387647=>_0x387647>=_0x112a51;case 0x3d:return _0x4ba8a2=>_0x4ba8a2<_0x112a51;case 0x3e:return _0x255ead=>_0x255ead<=_0x112a51;case 0x3f:return _0x2d40ea=>_0x2d40ea<_0x112a51[0x0]||_0x2d40ea>_0x112a51[0x1];case 0x40:return _0x1006e4=>_0x1006e4!==_0x112a51;default:return console['error'](_0x4a3f18(0x499)+_0x534ac8),()=>!0x0;}}function _0x5529ef(_0xd90c79){const _0x4cddb8=_0x20ea74;let _0x3cf1d2=new Set(),_0x16eb3e=_0xd90c79[_0x4cddb8(0x211)];return(_0x16eb3e==null?void 0x0:_0x16eb3e[_0x4cddb8(0x3a3)])===0x4?(_0x4248be({'type':0x4,'selection':_0x16eb3e[_0x4cddb8(0x1d8)]})&&_0x3cf1d2[_0x4cddb8(0x316)](_0x4cddb8(0x567)),_0x16eb3e[_0x4cddb8(0x30c)]!==void 0x0&&_0x3cf1d2[_0x4cddb8(0x316)](_0x4cddb8(0x301))):_0x16eb3e&&_0x1e2fc8(_0x16eb3e)&&_0x3cf1d2[_0x4cddb8(0x316)](_0x16eb3e[_0x4cddb8(0x3a3)]===0x1?_0x4cddb8(0x301):_0x4cddb8(0x567)),_0xd90c79[_0x4cddb8(0x2d2)]&&_0x3cf1d2[_0x4cddb8(0x316)]('condition'),_0x3cf1d2;}function _0x51cfea(_0x40bb93){const _0x4da25e=_0x20ea74;let _0x215fb0=new Map();for(let _0x20e272 of Object[_0x4da25e(0x341)](_0x40bb93[_0x4da25e(0x2d5)])){var _0x5b2494;let _0x3212db=_0x215fb0['get'](_0x20e272[_0x4da25e(0x34a)])??new Set();if(_0x5529ef(_0x20e272)[_0x4da25e(0x559)](_0x3135ea=>_0x3212db['add'](_0x3135ea)),(_0x5b2494=_0x40bb93[_0x4da25e(0x32f)])!=null&&_0x5b2494[_0x4da25e(0x253)](_0x47875e=>_0x47875e['fieldId']===_0x20e272['id'])&&_0x3212db[_0x4da25e(0x316)]('value'),_0x3212db['size']>0x1)return!0x0;_0x215fb0[_0x4da25e(0x57f)](_0x20e272[_0x4da25e(0x34a)],_0x3212db);}return!0x1;}function _0x34c3ba(_0x5cb09c){const _0x5e956e=_0x20ea74;if(_0x5cb09c==null)return{'type':_0x20af02[_0x5e956e(0x2a6)]['Blank']};if(typeof _0x5cb09c==_0x5e956e(0x52c))return{'type':_0x20af02[_0x5e956e(0x2a6)][_0x5e956e(0x50d)],'value':_0x5cb09c};if(typeof _0x5cb09c==_0x5e956e(0x527)){if(!Number[_0x5e956e(0x2c0)](_0x5cb09c))throw RangeError(_0x5e956e(0x213));return{'type':_0x20af02[_0x5e956e(0x2a6)][_0x5e956e(0x365)],'value':_0x5cb09c};}if(typeof _0x5cb09c==_0x5e956e(0x38e))return{'type':_0x20af02[_0x5e956e(0x2a6)][_0x5e956e(0x541)],'value':_0x5cb09c};if(_0x49d3c2(_0x5cb09c))return{'type':_0x20af02[_0x5e956e(0x2a6)][_0x5e956e(0x26e)],'value':_0x5cb09c['error']};if(_0x3fa860(_0x5cb09c)){if(!Number['isFinite'](_0x5cb09c['v']))throw RangeError(_0x5e956e(0x2ce));return{'type':_0x20af02[_0x5e956e(0x2a6)][_0x5e956e(0x3d9)],'value':_0x5cb09c['v']};}throw TypeError('Invalid\x20pivot\x20record\x20value.');}function _0x4e37cf(_0x21dcdc){const _0x3abe5c=_0x20ea74;let _0x67c1df=_0x21dcdc;if(!_0x2a27a9(_0x67c1df)||_0x67c1df[_0x3abe5c(0x3a3)]!==0x4)throw TypeError('Invalid\x20pivot\x20record\x20filter.');let {selection:_0x55edf8,dateRange:_0x3f9a9f}=_0x67c1df;if(_0x2a27a9(_0x3f9a9f)&&_0x3f9a9f[_0x3abe5c(0x412)]!==void 0x0&&typeof _0x3f9a9f[_0x3abe5c(0x412)]!=_0x3abe5c(0x38e))throw TypeError(_0x3abe5c(0x35a));if(_0x55edf8!==void 0x0){if(!_0x2a27a9(_0x55edf8)||typeof _0x55edf8[_0x3abe5c(0x57b)]!=_0x3abe5c(0x52c))throw TypeError(_0x3abe5c(0x4a9));if(_0x55edf8[_0x3abe5c(0x57b)]===_0x20af02[_0x3abe5c(0x44a)][_0x3abe5c(0x492)]){if(_0x3abe5c(0x341)in _0x55edf8)throw TypeError(_0x3abe5c(0x2dc));}else{if(_0x55edf8['mode']!==_0x20af02['FilterSelectionMode'][_0x3abe5c(0x562)]&&_0x55edf8[_0x3abe5c(0x57b)]!==_0x20af02['FilterSelectionMode'][_0x3abe5c(0x4c4)]||!Array[_0x3abe5c(0x391)](_0x55edf8[_0x3abe5c(0x341)]))throw TypeError(_0x3abe5c(0x4a9));else _0x55edf8['values'][_0x3abe5c(0x559)](_0x20af02[_0x3abe5c(0x1eb)]);}}if(_0x3f9a9f!==void 0x0&&(!_0x2a27a9(_0x3f9a9f)||typeof _0x3f9a9f[_0x3abe5c(0x4b7)]!='number'||typeof _0x3f9a9f['endDate']!=_0x3abe5c(0x527)||!Number[_0x3abe5c(0x2c0)](_0x3f9a9f[_0x3abe5c(0x4b7)])||!Number[_0x3abe5c(0x2c0)](_0x3f9a9f[_0x3abe5c(0x477)])||_0x3f9a9f[_0x3abe5c(0x4b7)]>_0x3f9a9f[_0x3abe5c(0x477)]))throw RangeError(_0x3abe5c(0x295));}function _0x55e72a(_0x4e83b8){return(_0x4e83b8==null?void 0x0:_0x4e83b8['type'])===0x4;}function _0x1e2fc8(_0x574102){const _0x50c831=_0x20ea74;return _0x55e72a(_0x574102)?(_0x4e37cf(_0x574102),_0x4248be(_0x574102)):_0x574102[_0x50c831(0x3a3)]!==0x3||_0x574102[_0x50c831(0x372)]!==!0x0;}function _0x4248be(_0x25bfd7){const _0x59b7cc=_0x20ea74;var _0x3bbfd0,_0x563c07;return _0x25bfd7['dateRange']!==void 0x0||((_0x3bbfd0=_0x25bfd7[_0x59b7cc(0x1d8)])==null?void 0x0:_0x3bbfd0[_0x59b7cc(0x57b)])===_0x20af02[_0x59b7cc(0x44a)][_0x59b7cc(0x562)]||((_0x563c07=_0x25bfd7['selection'])==null?void 0x0:_0x563c07[_0x59b7cc(0x57b)])===_0x20af02[_0x59b7cc(0x44a)][_0x59b7cc(0x4c4)]&&_0x25bfd7['selection'][_0x59b7cc(0x341)][_0x59b7cc(0x41f)]>0x0;}function _0x5239a6(_0x4e63c2){const _0x59b683=_0x20ea74;if(_0x4e63c2)switch(_0x4e63c2[_0x59b683(0x3a3)]){case 0x4:return _0x4e37cf(_0x4e63c2),{'type':0x4,..._0x4e63c2['selection']===void 0x0?null:{'selection':_0x4e63c2[_0x59b683(0x1d8)][_0x59b683(0x57b)]===_0x20af02[_0x59b683(0x44a)][_0x59b683(0x492)]?{'mode':_0x20af02[_0x59b683(0x44a)]['All']}:{'mode':_0x4e63c2['selection'][_0x59b683(0x57b)],'values':_0x4e63c2[_0x59b683(0x1d8)][_0x59b683(0x341)][_0x59b683(0x51f)](_0x2a0d10=>_0x2a0d10[_0x59b683(0x3a3)]===_0x20af02['RecordValueType'][_0x59b683(0x4f8)]?{'type':_0x20af02['RecordValueType'][_0x59b683(0x4f8)]}:{..._0x2a0d10})}},..._0x4e63c2[_0x59b683(0x30c)]===void 0x0?null:{'dateRange':{..._0x4e63c2[_0x59b683(0x30c)]}}};case 0x3:return{..._0x4e63c2,'list':_0x4e63c2[_0x59b683(0x472)][_0x59b683(0x2b2)]()};case 0x1:return(_0x4e63c2[_0x59b683(0x412)]!==void 0x0||_0xa4aac2(_0x4e63c2[_0x59b683(0x387)]))&&_0x33b607(_0x4e63c2),{..._0x4e63c2,'expected':Array['isArray'](_0x4e63c2['expected'])?_0x4e63c2[_0x59b683(0x22f)][_0x59b683(0x2b2)]():_0x4e63c2['expected']};case 0x2:return{..._0x4e63c2,'expected':Array['isArray'](_0x4e63c2['expected'])?_0x4e63c2[_0x59b683(0x22f)][_0x59b683(0x2b2)]():_0x4e63c2[_0x59b683(0x22f)]};default:throw TypeError(_0x59b683(0x1fa));}}function _0x2a27a9(_0x23bfe0){const _0x3f1912=_0x20ea74;return typeof _0x23bfe0==_0x3f1912(0x35c)&&!!_0x23bfe0&&!Array[_0x3f1912(0x391)](_0x23bfe0);}let _0x43388f=function(_0x43004a){const _0x20f409=_0x20ea74;return _0x43004a[_0x43004a[_0x20f409(0x249)]=0x0]=_0x20f409(0x249),_0x43004a[_0x43004a[_0x20f409(0x245)]=0x1]='SetSubtotalType',_0x43004a[_0x43004a['RemoveField']=0x2]=_0x20f409(0x4f1),_0x43004a[_0x43004a[_0x20f409(0x39c)]=0x3]='RenameField',_0x43004a[_0x43004a['SetFilterInfo']=0x4]=_0x20f409(0x2f5),_0x43004a[_0x43004a[_0x20f409(0x51d)]=0x5]=_0x20f409(0x51d),_0x43004a[_0x43004a[_0x20f409(0x539)]=0x6]=_0x20f409(0x539),_0x43004a[_0x43004a[_0x20f409(0x1dd)]=0x7]=_0x20f409(0x1dd),_0x43004a[_0x43004a[_0x20f409(0x53c)]=0x8]=_0x20f409(0x53c),_0x43004a[_0x43004a[_0x20f409(0x42d)]=0x9]=_0x20f409(0x42d),_0x43004a[_0x43004a[_0x20f409(0x317)]=0xa]=_0x20f409(0x317),_0x43004a[_0x43004a[_0x20f409(0x3c6)]=0xb]=_0x20f409(0x3c6),_0x43004a[_0x43004a[_0x20f409(0x265)]=0xc]=_0x20f409(0x265),_0x43004a[_0x43004a[_0x20f409(0x348)]=0xd]=_0x20f409(0x348),_0x43004a[_0x43004a[_0x20f409(0x2c5)]=0xe]=_0x20f409(0x2c5),_0x43004a;}({}),_0x1d7a9d=function(_0x176b59){const _0x55b2d8=_0x20ea74;return _0x176b59[_0x176b59[_0x55b2d8(0x285)]=0x2]=_0x55b2d8(0x285),_0x176b59[_0x176b59[_0x55b2d8(0x475)]=0x4]='date',_0x176b59[_0x176b59[_0x55b2d8(0x3cb)]=0x8]='other',_0x176b59;}({}),_0xe719f2=function(_0x3a404d){const _0x40200b=_0x20ea74;return _0x3a404d[_0x3a404d[_0x40200b(0x2a0)]=0x1]=_0x40200b(0x2a0),_0x3a404d[_0x3a404d['FilterPartial']=0x2]='FilterPartial',_0x3a404d[_0x3a404d[_0x40200b(0x2f4)]=0x3]=_0x40200b(0x2f4),_0x3a404d[_0x3a404d[_0x40200b(0x2a8)]=0x4]=_0x40200b(0x2a8),_0x3a404d[_0x3a404d['FilteredSortNone']=0x5]=_0x40200b(0x21e),_0x3a404d[_0x3a404d[_0x40200b(0x434)]=0x6]=_0x40200b(0x434),_0x3a404d[_0x3a404d['FilteredSortDesc']=0x7]=_0x40200b(0x4c8),_0x3a404d[_0x3a404d['FilterNoneSortNone']=0x8]=_0x40200b(0x45e),_0x3a404d[_0x3a404d['FilterNoneSortAsc']=0x9]=_0x40200b(0x370),_0x3a404d[_0x3a404d[_0x40200b(0x34c)]=0xa]=_0x40200b(0x34c),_0x3a404d[_0x3a404d[_0x40200b(0x399)]=0xb]=_0x40200b(0x399),_0x3a404d[_0x3a404d[_0x40200b(0x542)]=0xc]='Expand',_0x3a404d[_0x3a404d['Subtotal']=0xd]=_0x40200b(0x512),_0x3a404d[_0x3a404d[_0x40200b(0x36e)]=0xe]=_0x40200b(0x36e),_0x3a404d[_0x3a404d[_0x40200b(0x336)]=0xf]=_0x40200b(0x336),_0x3a404d;}({});function _0x2c94b5(_0x4f6611){'@babel/helpers - typeof';const _0x109648=_0x20ea74;return _0x2c94b5=typeof Symbol==_0x109648(0x40f)&&typeof Symbol[_0x109648(0x4f2)]==_0x109648(0x335)?function(_0x4f5099){return typeof _0x4f5099;}:function(_0x585bc5){const _0x39e2c1=_0x109648;return _0x585bc5&&typeof Symbol=='function'&&_0x585bc5[_0x39e2c1(0x581)]===Symbol&&_0x585bc5!==Symbol[_0x39e2c1(0x44c)]?_0x39e2c1(0x335):typeof _0x585bc5;},_0x2c94b5(_0x4f6611);}function _0xfe3de9(_0x5ec0a5,_0x472644){const _0x397ea6=_0x20ea74;if(_0x2c94b5(_0x5ec0a5)!=_0x397ea6(0x35c)||!_0x5ec0a5)return _0x5ec0a5;var _0x28fd0a;if(typeof Symbol<'u'&&(_0x28fd0a=_0x5ec0a5[Symbol[_0x397ea6(0x4e5)]])!==void 0x0){var _0x4c46c4=_0x28fd0a['call'](_0x5ec0a5,_0x472644||'default');if(_0x2c94b5(_0x4c46c4)!=_0x397ea6(0x35c))return _0x4c46c4;throw TypeError(_0x397ea6(0x4d4));}return(_0x472644===_0x397ea6(0x52c)?String:Number)(_0x5ec0a5);}function _0x36aecc(_0xabdfa0){const _0x74edc1=_0x20ea74;var _0x5a30e3=_0xfe3de9(_0xabdfa0,_0x74edc1(0x52c));return _0x2c94b5(_0x5a30e3)=='symbol'?_0x5a30e3:_0x5a30e3+'';}function _0x3dd15e(_0x3b53f8,_0x76b567,_0x1fd92d){const _0x296839=_0x20ea74;return(_0x76b567=_0x36aecc(_0x76b567))in _0x3b53f8?Object[_0x296839(0x390)](_0x3b53f8,_0x76b567,{'value':_0x1fd92d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b53f8[_0x76b567]=_0x1fd92d,_0x3b53f8;}function _0x279416(_0x13eb28){return typeof _0x13eb28=='number';}var _0x4e9c60=class{constructor(){const _0x24777b=_0x20ea74;_0x3dd15e(this,'_sum',0x0),_0x3dd15e(this,_0x24777b(0x4ff),0x0),_0x3dd15e(this,'_countN',0x0),_0x3dd15e(this,_0x24777b(0x219),0x1),_0x3dd15e(this,_0x24777b(0x4a6),0x1/0x0),_0x3dd15e(this,_0x24777b(0x4ee),-0x1/0x0),_0x3dd15e(this,_0x24777b(0x528),0x0);}[_0x20ea74(0x221)](){const _0x213ed4=_0x20ea74;return{'sum':this[_0x213ed4(0x4ce)],'count':this[_0x213ed4(0x4ff)],'countN':this['_countN'],'product':this[_0x213ed4(0x219)],'min':this[_0x213ed4(0x4a6)],'max':this[_0x213ed4(0x4ee)],'squareSum':this[_0x213ed4(0x528)]};}[_0x20ea74(0x203)](){const _0x475625=_0x20ea74;this[_0x475625(0x4ce)]=0x0,this[_0x475625(0x4ff)]=0x0,this[_0x475625(0x470)]=0x0,this[_0x475625(0x219)]=0x1,this[_0x475625(0x4a6)]=0x1/0x0,this[_0x475625(0x4ee)]=-0x1/0x0,this[_0x475625(0x528)]=0x0;}[_0x20ea74(0x4cf)](_0x445e46){const _0x5ea357=_0x20ea74;_0x445e46!=null&&(this['_count']+=0x1,_0x279416(_0x445e46)&&(this[_0x5ea357(0x4ce)]+=_0x445e46,this['_countN']+=0x1,this[_0x5ea357(0x219)]*=_0x445e46,this['_min']=Math[_0x5ea357(0x52f)](this['_min'],_0x445e46),this[_0x5ea357(0x4ee)]=Math['max'](this[_0x5ea357(0x4ee)],_0x445e46),this[_0x5ea357(0x528)]+=_0x445e46*_0x445e46));}['unionTuples'](_0x436372){const _0xf78212=_0x20ea74;for(let _0xf4213b of _0x436372)this[_0xf78212(0x4ce)]+=_0xf4213b['_sum'],this[_0xf78212(0x4ff)]+=_0xf4213b[_0xf78212(0x4ff)],this[_0xf78212(0x470)]+=_0xf4213b[_0xf78212(0x470)],this[_0xf78212(0x219)]*=_0xf4213b[_0xf78212(0x219)],this['_min']=Math[_0xf78212(0x52f)](this['_min'],_0xf4213b['_min']),this['_max']=Math['max'](this[_0xf78212(0x4ee)],_0xf4213b[_0xf78212(0x4ee)]),this[_0xf78212(0x528)]+=_0xf4213b[_0xf78212(0x528)];}['unionTupleInfo'](_0x17be15){const _0x17f176=_0x20ea74;this[_0x17f176(0x4ce)]+=_0x17be15[_0x17f176(0x34e)],this[_0x17f176(0x4ff)]+=_0x17be15['count'],this[_0x17f176(0x470)]+=_0x17be15[_0x17f176(0x419)],this[_0x17f176(0x219)]*=_0x17be15['product'],this[_0x17f176(0x4a6)]=Math[_0x17f176(0x52f)](this['_min'],_0x17be15[_0x17f176(0x52f)]),this['_max']=Math['max'](this[_0x17f176(0x4ee)],_0x17be15[_0x17f176(0x525)]),this[_0x17f176(0x528)]+=_0x17be15[_0x17f176(0x218)];}['getSubtotal'](_0x17c119){const _0x1bb0cf=_0x20ea74;switch(_0x17c119){case 0x9:return this['_sum'];case 0x2:return this['_count'];case 0x3:return this[_0x1bb0cf(0x470)];case 0x6:return Number['isFinite'](this[_0x1bb0cf(0x219)])?this[_0x1bb0cf(0x219)]:{'errorType':0x2};case 0x5:return this['_countN']>0x0?this[_0x1bb0cf(0x4a6)]:0x0;case 0x4:return this[_0x1bb0cf(0x470)]>0x0?this['_max']:0x0;case 0x1:return this[_0x1bb0cf(0x470)]>0x0?this[_0x1bb0cf(0x4ce)]/this[_0x1bb0cf(0x470)]:{'errorType':0x1};case 0x7:return this[_0x1bb0cf(0x470)]>0x1?Math[_0x1bb0cf(0x2e1)](Math[_0x1bb0cf(0x525)](0x0,(this[_0x1bb0cf(0x470)]*this['_squareSum']-this[_0x1bb0cf(0x4ce)]*this[_0x1bb0cf(0x4ce)])/(this[_0x1bb0cf(0x470)]*(this[_0x1bb0cf(0x470)]-0x1)))):{'errorType':0x1};case 0x8:return this[_0x1bb0cf(0x470)]>0x0?Math['sqrt'](Math[_0x1bb0cf(0x525)](0x0,(this[_0x1bb0cf(0x470)]*this[_0x1bb0cf(0x528)]-this['_sum']*this[_0x1bb0cf(0x4ce)])/(this[_0x1bb0cf(0x470)]*this[_0x1bb0cf(0x470)]))):{'errorType':0x1};case 0xa:return this['_countN']>0x1?Math[_0x1bb0cf(0x525)](0x0,(this[_0x1bb0cf(0x470)]*this[_0x1bb0cf(0x528)]-this[_0x1bb0cf(0x4ce)]*this[_0x1bb0cf(0x4ce)])/(this[_0x1bb0cf(0x470)]*(this[_0x1bb0cf(0x470)]-0x1))):{'errorType':0x1};case 0xb:return this[_0x1bb0cf(0x470)]>0x0?Math[_0x1bb0cf(0x525)](0x0,(this['_countN']*this[_0x1bb0cf(0x528)]-this[_0x1bb0cf(0x4ce)]*this[_0x1bb0cf(0x4ce)])/(this[_0x1bb0cf(0x470)]*this['_countN'])):{'errorType':0x1};}}};function _0x17dfe0(_0x5c4375){const _0x2510da=_0x20ea74;return(_0x5c4375==null?void 0x0:_0x5c4375[_0x2510da(0x476)])??'legacy';}function _0x4bbd1e(_0x277609){return _0x277609==null||_0x277609==='';}function _0x21a711(_0x14a8fd){return _0x14a8fd===0x2||_0x14a8fd===0x1||_0x14a8fd===0x4||_0x14a8fd===0x5;}function _0x342484(_0xa651a3){return _0xa651a3===0x2||_0xa651a3===0x1;}function _0x2c6198(_0x5db1e3,_0xb2f6fb){const _0x329b6e=_0x20ea74;let _0x4e4322='';switch(_0xb2f6fb){case 0x1:_0x4e4322=_0x329b6e(0x3ab)+_0x5db1e3;break;case 0x2:_0x4e4322=_0x329b6e(0x43b)+_0x5db1e3;break;case 0x3:_0x4e4322=_0x329b6e(0x43b)+_0x5db1e3;break;case 0x4:_0x4e4322=_0x329b6e(0x408)+_0x5db1e3;break;case 0x5:_0x4e4322=_0x329b6e(0x443)+_0x5db1e3;break;case 0x6:_0x4e4322=_0x329b6e(0x2a3)+_0x5db1e3;break;case 0x7:_0x4e4322=_0x329b6e(0x549)+_0x5db1e3;break;case 0x8:_0x4e4322=_0x329b6e(0x3aa)+_0x5db1e3;break;case 0x9:_0x4e4322=_0x329b6e(0x25f)+_0x5db1e3;break;case 0xa:_0x4e4322='Variance\x20of\x20'+_0x5db1e3;break;case 0xb:_0x4e4322='Population\x20Variance\x20of\x20'+_0x5db1e3;break;default:_0x4e4322=_0x5db1e3;}return _0x4e4322;}function _0x5c962b(_0x1e1774,_0x12286b,_0x370fad){const _0x2caee5=_0x20ea74;let _0x54cc29=Object[_0x2caee5(0x44c)][_0x2caee5(0x55a)]['call'](_0x1e1774,_0x12286b)?_0x1e1774[_0x12286b]:void 0x0,_0x3ca0fc=typeof _0x54cc29==_0x2caee5(0x38e);return _0x370fad===void 0x0?_0x3ca0fc?_0x54cc29:!0x1:_0x3ca0fc?_0x54cc29:_0x54cc29!=null&&Object[_0x2caee5(0x44c)][_0x2caee5(0x55a)][_0x2caee5(0x25e)](_0x54cc29,_0x370fad)?_0x54cc29[_0x370fad]:!0x1;}function _0x27b54e(_0x1e0549){const _0x2726c5=_0x20ea74;return _0x1e0549[_0x2726c5(0x3a3)]===0x3;}function _0x2f2ab0(_0x52ad4e){const _0x8cc946=_0x20ea74;return _0x52ad4e[_0x8cc946(0x3a3)]===0x1;}function _0x356fa2(_0xd7d506){const _0x27e074=_0x20ea74;let _0x3ca6ef='';for(let _0x3eac8c=0x0;_0x3eac8c<_0xd7d506;_0x3eac8c++){let _0x1f06ec=Math[_0x27e074(0x48d)](Math[_0x27e074(0x560)]()*0x10);_0x3ca6ef+=_0x1f06ec['toString'](0x10);}return _0x3ca6ef[_0x27e074(0x43c)]();}function _0x43a79c(_0x32062f,_0x484a6c){const _0x276bc4=_0x20ea74;let _0x1b24aa=0x0,_0x578628=0x0,_0x259075=[];for(;_0x1b24aa<_0x32062f[_0x276bc4(0x41f)]&&_0x578628<_0x484a6c['length'];)_0x32062f[_0x1b24aa]===_0x484a6c[_0x578628]?(_0x259075[_0x276bc4(0x3b3)](_0x32062f[_0x1b24aa]),_0x1b24aa++,_0x578628++):_0x32062f[_0x1b24aa]<_0x484a6c[_0x578628]?_0x1b24aa++:_0x578628++;return _0x259075;}function _0x57a18d(_0xb0f637){const _0x28b5df=_0x20ea74;if(_0xb0f637[_0x28b5df(0x41f)]===0x0)return[];if(_0xb0f637[_0x28b5df(0x41f)]===0x1)return _0xb0f637[0x0];let _0xefcfd8=_0xb0f637[0x0];for(let _0x404f3d=0x1;_0x404f3d<_0xb0f637[_0x28b5df(0x41f)];_0x404f3d++)_0xefcfd8=_0x43a79c(_0xefcfd8,_0xb0f637[_0x404f3d]);return _0xefcfd8;}function _0x2e670b(_0x1fd9c6,_0x31cd99,_0xf08702){const _0x172699=_0x20ea74;_0x1fd9c6[_0x172699(0x4d9)]||={},_0x31cd99&&!_0x31cd99[_0x172699(0x4d9)]&&(_0x31cd99[_0x172699(0x4d9)]={});for(let _0x564450 in _0xf08702){let _0x53f6ed=_0xf08702[_0x564450][_0x172699(0x46f)],_0xc12aa0=_0x1fd9c6[_0x172699(0x368)][_0x564450],_0x17bf54=_0xc12aa0[_0x172699(0x221)](),{sum:_0x48503,count:_0x5d632d,countN:_0x14e4d5,product:_0x347bf3,min:_0x14ca70,max:_0x19f600,squareSum:_0x2a589c}=_0x17bf54;for(let _0x5cb5c4 of _0x53f6ed)_0x17bf54[_0x5cb5c4]=_0xc12aa0[_0x172699(0x40e)](_0x5cb5c4);_0x1fd9c6['summary'][_0x564450]=_0x17bf54,_0x31cd99&&(_0x31cd99[_0x172699(0x368)][_0x564450]||(_0x31cd99[_0x172699(0x368)][_0x564450]=new _0x4e9c60()),_0x31cd99['tuple'][_0x564450][_0x172699(0x579)]({'sum':_0x48503,'count':_0x5d632d,'countN':_0x14e4d5,'product':_0x347bf3,'min':_0x14ca70,'max':_0x19f600,'squareSum':_0x2a589c}));}}function _0x42edd7(_0x3a1888){const _0xc0371d=_0x20ea74;let _0x109669=0x1,_0x444622;return _0x3a1888?(_0x27b54e(_0x3a1888)?(_0x3a1888[_0xc0371d(0x472)][_0xc0371d(0x41f)]===0x1&&(_0x109669=0x3,_0x444622=_0x3a1888['list'][0x0]),_0x109669=_0x3a1888[_0xc0371d(0x372)]===!0x0?0x1:0x2):_0x55e72a(_0x3a1888)&&(_0x109669=_0x1e2fc8(_0x3a1888)?0x2:0x1),{'value':_0x444622,'status':_0x109669}):{'status':_0x109669,'value':_0x444622};}function _0x5666c0(_0x2f40ec,_0x3443b6,_0x2818f6){const _0x349f26=_0x20ea74;let _0x492c0d=!0x1;if(_0x2f40ec&&(_0x27b54e(_0x2f40ec)?_0x492c0d=_0x2f40ec[_0x349f26(0x472)][_0x349f26(0x41f)]>0x0&&_0x2f40ec['isAll']!==!0x0:_0x2f2ab0(_0x2f40ec)?_0x492c0d=!0x0:_0x55e72a(_0x2f40ec)&&(_0x492c0d=_0x1e2fc8(_0x2f40ec)),_0x2818f6&&(_0x492c0d=!0x0)),_0x492c0d)switch(_0x3443b6==null?void 0x0:_0x3443b6[_0x349f26(0x3a3)]){case 0x1:return 0x6;case 0x2:return 0x7;default:return 0x5;}else switch(_0x3443b6==null?void 0x0:_0x3443b6['type']){case 0x1:return 0x9;case 0x2:return 0xa;default:return 0x8;}}function _0x4385b1(_0x1b2ebc,_0x562e46,_0x372946){const _0x30779e=_0x20ea74;let _0x419bf2=_0x562e46||0x0,_0x5c203d=_0x1b2ebc[_0x30779e(0x398)](',');return _0x372946?_0x5c203d+'-'+String(_0x419bf2):_0x5c203d;}var _0x59f6b3=class{constructor(){const _0x4dbec6=_0x20ea74;_0x3dd15e(this,'_heap',void 0x0),this[_0x4dbec6(0x3db)]=[];}[_0x20ea74(0x3b3)](_0x2dd55a){const _0x218188=_0x20ea74;this[_0x218188(0x3db)]['push'](_0x2dd55a),this['_bubbleUp']();}['pop'](){const _0x129a03=_0x20ea74;if(this[_0x129a03(0x282)]()===0x0)return;let _0x1eec20=this[_0x129a03(0x3db)][0x0],_0x190673=this[_0x129a03(0x3db)][_0x129a03(0x3b2)]();return this['size']()>0x0&&_0x190673&&(this[_0x129a03(0x3db)][0x0]=_0x190673,this[_0x129a03(0x3f4)]()),_0x1eec20;}['size'](){const _0x138ddc=_0x20ea74;return this[_0x138ddc(0x3db)][_0x138ddc(0x41f)];}['_bubbleUp'](){const _0x1086b2=_0x20ea74;let _0x4169f3=this[_0x1086b2(0x282)]()-0x1;for(;_0x4169f3>0x0;){let _0x14081c=Math[_0x1086b2(0x48d)]((_0x4169f3-0x1)/0x2);if(this[_0x1086b2(0x3db)][_0x14081c][0x0]<=this[_0x1086b2(0x3db)][_0x4169f3][0x0])break;[this[_0x1086b2(0x3db)][_0x14081c],this[_0x1086b2(0x3db)][_0x4169f3]]=[this['_heap'][_0x4169f3],this[_0x1086b2(0x3db)][_0x14081c]],_0x4169f3=_0x14081c;}}[_0x20ea74(0x3f4)](){const _0x2b29c1=_0x20ea74;let _0x5c9ed0=0x0,_0x163e60=this[_0x2b29c1(0x282)](),_0x533cdf=this[_0x2b29c1(0x3db)][0x0];for(;;){let _0xb57ac5=0x2*_0x5c9ed0+0x1,_0x5992d6=0x2*_0x5c9ed0+0x2,_0x5ec03f,_0xdd4126,_0x4a8b88=null;if(_0xb57ac5<_0x163e60&&(_0x5ec03f=this[_0x2b29c1(0x3db)][_0xb57ac5],_0x5ec03f[0x0]<_0x533cdf[0x0]&&(_0x4a8b88=_0xb57ac5)),_0x5992d6<_0x163e60&&(_0xdd4126=this['_heap'][_0x5992d6],(_0x4a8b88===null&&_0xdd4126[0x0]<_0x533cdf[0x0]||_0x4a8b88!==null&&_0xdd4126[0x0]<_0x5ec03f[0x0])&&(_0x4a8b88=_0x5992d6)),_0x4a8b88===null)break;[this[_0x2b29c1(0x3db)][_0x5c9ed0],this[_0x2b29c1(0x3db)][_0x4a8b88]]=[this['_heap'][_0x4a8b88],this[_0x2b29c1(0x3db)][_0x5c9ed0]],_0x5c9ed0=_0x4a8b88;}}};function _0x189bca(_0x3fc6e9){const _0x4e0284=_0x20ea74;let _0x120c5c=new _0x59f6b3(),_0x1b1b94=[];for(let _0x5992e7=0x0;_0x5992e7<_0x3fc6e9[_0x4e0284(0x41f)];_0x5992e7++)_0x3fc6e9[_0x5992e7]['length']>0x0&&_0x120c5c[_0x4e0284(0x3b3)]([_0x3fc6e9[_0x5992e7][0x0],_0x5992e7,0x0]);for(;_0x120c5c[_0x4e0284(0x282)]()>0x0;){let [_0x1e701b,_0x14c644,_0x2bffd8]=_0x120c5c[_0x4e0284(0x3b2)]();if(_0x1b1b94[_0x4e0284(0x3b3)](_0x1e701b),_0x2bffd8+0x1<_0x3fc6e9[_0x14c644][_0x4e0284(0x41f)]){let _0x163a98=_0x3fc6e9[_0x14c644][_0x2bffd8+0x1];_0x120c5c[_0x4e0284(0x3b3)]([_0x163a98,_0x14c644,_0x2bffd8+0x1]);}}return _0x1b1b94;}function _0x3d6e75(_0x3feaa6,_0x19769f){const _0x4112c2=_0x20ea74;if(typeof Intl<'u'&&Intl[_0x4112c2(0x3bf)]){let _0x3d0568=_0x3feaa6&&_0x3feaa6!==_0x19769f?[_0x3feaa6,_0x19769f]:[_0x3feaa6??_0x19769f];for(let _0x21c2b7 of _0x3d0568)try{return new Intl[(_0x4112c2(0x3bf))](_0x21c2b7,{'usage':'sort','numeric':!0x1,'sensitivity':_0x4112c2(0x303),'ignorePunctuation':!0x1})[_0x4112c2(0x25d)];}catch{}return new Intl['Collator'](void 0x0,{'usage':'sort','numeric':!0x1,'sensitivity':_0x4112c2(0x303),'ignorePunctuation':!0x1})[_0x4112c2(0x25d)];}return(_0x29c4c9,_0x4bc6c1)=>_0x29c4c9[_0x4112c2(0x29e)](_0x4bc6c1);}function _0x33936d(_0xc23d7e,_0x3529a5,_0x346813,_0x56e93c=_0x3d6e75()){const _0x3fc5c3=_0x20ea74;let _0x2d28a8=[],_0x522dc8=[],_0x45397f=[],_0x334d3e=[];for(let _0x48f354=0x0;_0x48f354<_0xc23d7e[_0x3fc5c3(0x41f)];_0x48f354++){let _0x4c5e86=_0xc23d7e[_0x48f354],_0x4500d5=_0x3529a5[_0x48f354];_0x4500d5===0x2?_0x2d28a8['push'](_0x4c5e86):_0x4500d5===0x1?_0x522dc8['push'](_0x4c5e86):_0x4500d5===0x4?_0x45397f[_0x3fc5c3(0x3b3)](_0x4c5e86):_0x334d3e[_0x3fc5c3(0x3b3)](_0x4c5e86);}let _0x176295=(_0xf51e40,_0xd96754)=>_0x56e93c(_0xf51e40,_0xd96754)||_0x346813[_0xf51e40]-_0x346813[_0xd96754];_0x2d28a8[_0x3fc5c3(0x3e6)]((_0x176e10,_0x38e0b5)=>Number(_0x176e10)-Number(_0x38e0b5)),_0x522dc8[_0x3fc5c3(0x3e6)](_0x176295),_0x45397f['sort']((_0x2bef4c,_0x84d499)=>Number(_0x2bef4c)-Number(_0x84d499)),_0x334d3e[_0x3fc5c3(0x3e6)](_0x176295);let _0x6f1456=[..._0x2d28a8,..._0x522dc8,..._0x45397f,..._0x334d3e],_0x22e3df={},_0x4f1ff9=0x0;for(let _0x5c4d0e of _0x6f1456)_0x22e3df[_0x5c4d0e]=_0x4f1ff9,_0x4f1ff9++;return _0x22e3df;}function _0x5f1446(_0x484246,_0x2cb42a,_0x57e08c){const _0x25b030=_0x20ea74;let _0x3532e7=_0x9608f9({'type':0x1,'operator':_0x2cb42a,'expected':_0x57e08c}),_0x9a4c8b=[];for(let [_0x351a7d,_0x274a8a]of Object[_0x25b030(0x3af)](_0x484246))_0x3532e7(Number(_0x351a7d))&&_0x9a4c8b[_0x25b030(0x3b3)](_0x274a8a);return _0x9a4c8b;}function _0x228d4b(_0xaa8d6e,_0x16770d,_0x8c6a89,_0x183410,_0x35d1c4,_0xbb29bd){const _0xb4d9d0=_0x20ea74;let _0x445572=(_0x16770d==null?void 0x0:_0x16770d[_0xb4d9d0(0x368)][_0x8c6a89])||_0xaa8d6e[_0x35d1c4][_0xb4d9d0(0x368)],_0x8689c0=_0x445572['getInfo']();_0xaa8d6e[_0x35d1c4]={'tuple':_0x445572},_0xaa8d6e[_0xbb29bd]===void 0x0&&(_0xaa8d6e[_0xbb29bd]={'tuple':new _0x4e9c60()}),_0xaa8d6e[_0xbb29bd][_0xb4d9d0(0x368)][_0xb4d9d0(0x579)](_0x8689c0);}function _0x3e227e(_0x1ced3e){const _0x5caa42=_0x20ea74;return typeof _0x1ced3e!=_0x5caa42(0x527);}function _0x5f933(_0x19603b){const _0x1aabd3=_0x20ea74;return!(_0x1aabd3(0x2f8)in _0x19603b)&&!(_0x1aabd3(0x4c0)in _0x19603b)&&_0x1aabd3(0x274)in _0x19603b&&_0x19603b[_0x1aabd3(0x3a3)]===0x3;}function _0x5a4127(_0x26ec6f,_0x1e437e=!0x0){const _0x1ef08a=_0x20ea74;return(_0x1e437e?new Date(Date['UTC'](0x76b,0xb,0x1e)):new Date(Date[_0x1ef08a(0x2c1)](0x770,0x0,0x1)))[_0x1ef08a(0x20a)]()+_0x26ec6f*0x5265c00;}function _0x32ceaf(_0x272dc9){const _0x14acfb=_0x20ea74;return _0x272dc9[_0x14acfb(0x1d3)]()===0x3;}function _0x48890c(_0x211d00){const _0x5c55d0=_0x20ea74;return _0x211d00[_0x5c55d0(0x1d3)]()!==0x1;}function _0x96c707(_0x136d8a){const _0x48dcd8=_0x20ea74;return _0x136d8a[_0x48dcd8(0x334)]===0x3;}function _0x1577f8(_0x30bdde,_0x21ba97,_0x181eb2=!0x0){const _0x3b4872=_0x20ea74;let _0x5887ce=_0x5a4127(_0x30bdde,_0x181eb2),_0x311f10=new Date(_0x5887ce);switch(_0x21ba97){case'year':return''+_0x311f10[_0x3b4872(0x500)]();case _0x3b4872(0x329):return''+(_0x311f10[_0x3b4872(0x461)]()+0x1);case _0x3b4872(0x475):return''+_0x311f10['getDate']();case _0x3b4872(0x201):return _0x311f10[_0x3b4872(0x461)]()+0x1+'_'+_0x311f10[_0x3b4872(0x2c8)]();case _0x3b4872(0x220):return''+_0x311f10[_0x3b4872(0x33c)]();case _0x3b4872(0x417):return''+_0x311f10[_0x3b4872(0x281)]();case _0x3b4872(0x4d0):return''+(Math[_0x3b4872(0x48d)](_0x311f10[_0x3b4872(0x461)]()/0x3)+0x1);case _0x3b4872(0x488):return _0x311f10[_0x3b4872(0x33c)]()+'_'+_0x311f10[_0x3b4872(0x281)]();case'year-month':return _0x311f10[_0x3b4872(0x500)]()+'_'+(_0x311f10['getMonth']()+0x1);case _0x3b4872(0x238):return _0x311f10[_0x3b4872(0x500)]()+'_'+(Math[_0x3b4872(0x48d)](_0x311f10[_0x3b4872(0x461)]()/0x3)+0x1);case _0x3b4872(0x3e5):return _0x311f10[_0x3b4872(0x500)]()+'_'+(_0x311f10[_0x3b4872(0x461)]()+0x1)+'_'+_0x311f10[_0x3b4872(0x2c8)]();}return'';}var _0x168e17=class{[_0x20ea74(0x37f)](_0x6b3433){const _0x18d59b=_0x20ea74;return this[_0x18d59b(0x561)][_0x6b3433];}[_0x20ea74(0x207)](){const _0x25c23a=_0x20ea74;return this[_0x25c23a(0x545)];}[_0x20ea74(0x2a2)](_0xfd03bc){const _0x42d3d3=_0x20ea74;return this[_0x42d3d3(0x486)][_0xfd03bc]||[];}[_0x20ea74(0x553)](_0x48dd69){const _0x361690=_0x20ea74;return this[_0x361690(0x241)][_0x48dd69];}[_0x20ea74(0x56f)](_0x5cc525){const _0x2bad69=_0x20ea74;return this[_0x2bad69(0x36d)][_0x5cc525];}[_0x20ea74(0x51b)](_0x24181c){const _0x418c6c=_0x20ea74;var _0x52c251;return((_0x52c251=this[_0x418c6c(0x381)][_0x24181c])==null?void 0x0:_0x52c251[_0x418c6c(0x2b2)]())||[];}constructor(_0x41bdd6,_0x3c5a38,_0x54ed84){const _0x594b70=_0x20ea74;_0x3dd15e(this,'id',void 0x0),_0x3dd15e(this,_0x594b70(0x3cc),void 0x0),_0x3dd15e(this,'hexCode',void 0x0),_0x3dd15e(this,_0x594b70(0x1e1),void 0x0),_0x3dd15e(this,_0x594b70(0x27d),[]),_0x3dd15e(this,_0x594b70(0x456),[]),_0x3dd15e(this,'itemTypes',[]),_0x3dd15e(this,'_fieldDataType',0x1),_0x3dd15e(this,_0x594b70(0x351),!0x1),_0x3dd15e(this,_0x594b70(0x28d),!0x1),_0x3dd15e(this,_0x594b70(0x2bf),!0x1),_0x3dd15e(this,_0x594b70(0x240),!0x1),_0x3dd15e(this,_0x594b70(0x400),!0x1),_0x3dd15e(this,_0x594b70(0x2e5),!0x1),_0x3dd15e(this,_0x594b70(0x39a),!0x1),_0x3dd15e(this,_0x594b70(0x421),''),_0x3dd15e(this,'maxNumber',NaN),_0x3dd15e(this,'minNumber',NaN),_0x3dd15e(this,_0x594b70(0x498),-0x1/0x0),_0x3dd15e(this,_0x594b70(0x287),0x1/0x0),_0x3dd15e(this,_0x594b70(0x41a),void 0x0),_0x3dd15e(this,'_itemsMap',{}),_0x3dd15e(this,'_keyCounter',0x0),_0x3dd15e(this,_0x594b70(0x545),Object[_0x594b70(0x1f0)](null)),_0x3dd15e(this,_0x594b70(0x486),Object[_0x594b70(0x1f0)](null)),_0x3dd15e(this,'_tupleLabels',Object['create'](null)),_0x3dd15e(this,'_tupleTypes',Object[_0x594b70(0x1f0)](null)),_0x3dd15e(this,_0x594b70(0x561),[]),_0x3dd15e(this,_0x594b70(0x381),Object['create'](null)),_0x3dd15e(this,_0x594b70(0x432),new Set()),_0x3dd15e(this,'_tupleKeyCounter',0x0),_0x3dd15e(this,_0x594b70(0x57d),0x0),this['id']=_0x41bdd6,this['name']=_0x3c5a38,this[_0x594b70(0x364)]=_0x54ed84,this[_0x594b70(0x41a)]={};}[_0x20ea74(0x1db)](){const _0x4cbc47=_0x20ea74;return this[_0x4cbc47(0x1e1)];}[_0x20ea74(0x41c)](){return this['format'];}[_0x20ea74(0x4bd)](_0x37255d){const _0x58d6de=_0x20ea74;this[_0x58d6de(0x1e1)]=_0x37255d;}[_0x20ea74(0x324)](){return this['id'];}[_0x20ea74(0x57e)](){const _0x41a187=_0x20ea74;return this[_0x41a187(0x3cc)];}[_0x20ea74(0x4ba)](_0x121dcd){this['name']=_0x121dcd;}[_0x20ea74(0x275)](){const _0x489a3d=_0x20ea74;return this[_0x489a3d(0x2bf)]&&!this['hasText']&&!this[_0x489a3d(0x28d)]&&!this[_0x489a3d(0x351)]&&!this[_0x489a3d(0x2e5)]&&!this[_0x489a3d(0x39a)]?0x4:(this[_0x489a3d(0x28d)]||this[_0x489a3d(0x351)])&&!this[_0x489a3d(0x400)]&&!this['hasDate']&&!this[_0x489a3d(0x2e5)]&&!this[_0x489a3d(0x39a)]?0x2:this[_0x489a3d(0x2d8)];}['getDataFieldType'](){return 0x1;}[_0x20ea74(0x3e7)](_0x575c38){const _0x5eebca=_0x20ea74;return this[_0x5eebca(0x364)]+_0x209170[_0x5eebca(0x26f)]+this[_0x5eebca(0x3a7)][_0x575c38];}[_0x20ea74(0x4fd)](_0x407082){const _0x4ed6a6=_0x20ea74;let _0x1bdd12=this[_0x4ed6a6(0x27d)][_0x407082];if(_0x3fa860(_0x1bdd12))return String(_0x1bdd12['v']);if(_0x4bbd1e(_0x1bdd12))return _0x209170[_0x4ed6a6(0x3ad)];let _0x441777=_0x49d3c2(_0x1bdd12)?_0x1bdd12[_0x4ed6a6(0x320)]:String(_0x1bdd12);return this[_0x4ed6a6(0x3a7)][_0x441777]===void 0x0?_0x209170['otherDataKey']:_0x441777;}['getTypeByKey'](_0x4b69a4){const _0x2140b8=_0x20ea74;return this[_0x2140b8(0x251)][this[_0x2140b8(0x3a7)][_0x4b69a4]];}[_0x20ea74(0x3ea)](_0x2db73e){return this['records'][_0x2db73e];}[_0x20ea74(0x26d)](_0x242822,_0x1847e6){const _0x28469e=_0x20ea74;_0x3fa860(_0x242822)&&(this[_0x28469e(0x421)]=_0x242822['f'],this[_0x28469e(0x239)](_0x242822,_0x1847e6));let _0x325daf=_0x4bbd1e(_0x242822);_0x325daf&&this[_0x28469e(0x35e)](_0x1847e6),typeof _0x242822==_0x28469e(0x527)&&this[_0x28469e(0x338)](_0x242822,_0x1847e6),!_0x325daf&&typeof _0x242822==_0x28469e(0x52c)&&this[_0x28469e(0x566)](_0x242822,_0x1847e6),typeof _0x242822==_0x28469e(0x38e)&&this[_0x28469e(0x33e)](_0x242822,_0x1847e6),_0x49d3c2(_0x242822)&&this[_0x28469e(0x474)](_0x242822['error'],_0x1847e6),this['records']['push'](_0x242822),this['getDataFieldType']()===0x1&&this[_0x28469e(0x37e)](_0x242822,_0x1847e6);}[_0x20ea74(0x37e)](_0x55da87,_0x17717d){const _0x1b1419=_0x20ea74;let _0x59057f=this[_0x1b1419(0x4fd)](this[_0x1b1419(0x27d)][_0x1b1419(0x41f)]-0x1),_0x3fbd7e=0x1;_0x3fa860(_0x55da87)?_0x3fbd7e=0x4:_0x4bbd1e(_0x55da87)?_0x3fbd7e=0x5:typeof _0x55da87=='number'?_0x3fbd7e=0x2:typeof _0x55da87==_0x1b1419(0x38e)?_0x3fbd7e=0x3:_0x49d3c2(_0x55da87)&&(_0x3fbd7e=0x6);let _0xa331d9=_0x3fbd7e===0x1&&!_0x59057f[_0x1b1419(0x2ca)]('[')&&_0x59057f!==_0x209170[_0x1b1419(0x4ec)]?_0x59057f:JSON[_0x1b1419(0x3d3)]([_0x3fbd7e,_0x59057f]);(this['_overflowRecordIndexes']['has'](_0x17717d)||this[_0x1b1419(0x545)][_0xa331d9]===void 0x0&&_0x3fbd7e!==0x5&&this[_0x1b1419(0x31d)]>=_0x209170[_0x1b1419(0x2b0)])&&(_0x59057f=_0x209170['otherDataKey'],_0x3fbd7e=0x6,_0xa331d9=_0x209170[_0x1b1419(0x4ec)]),this[_0x1b1419(0x545)][_0xa331d9]===void 0x0&&(this[_0x1b1419(0x545)][_0xa331d9]=this[_0x1b1419(0x57d)]++,_0x3fbd7e!==0x5&&this[_0x1b1419(0x31d)]++,this[_0x1b1419(0x486)][_0xa331d9]=[],this[_0x1b1419(0x241)][_0xa331d9]=_0x59057f,this['_tupleTypes'][_0xa331d9]=_0x3fbd7e,(this[_0x1b1419(0x381)][_0x59057f]||=[])[_0x1b1419(0x3b3)](_0xa331d9)),this['_tupleIndexMap'][_0xa331d9][_0x1b1419(0x3b3)](_0x17717d),this[_0x1b1419(0x561)]['push'](_0xa331d9);}[_0x20ea74(0x40c)](_0x1ca8b6){return this['_itemIndexMap'][_0x1ca8b6]||[];}[_0x20ea74(0x384)](){return this['_itemIndexMap'];}['_updateDateItemKey'](_0x28fc4e,_0x5bff6e){const _0x4b12b8=_0x20ea74;this['hasDate']||=!0x0,this[_0x4b12b8(0x498)]=Math[_0x4b12b8(0x525)](this[_0x4b12b8(0x498)],_0x28fc4e['v']),this[_0x4b12b8(0x287)]=Math[_0x4b12b8(0x52f)](this[_0x4b12b8(0x287)],_0x28fc4e['v']);let _0x544515=String(_0x28fc4e['v']);this[_0x4b12b8(0x522)](_0x544515,_0x5bff6e,0x4);}[_0x20ea74(0x35e)](_0x283d07){const _0xa35911=_0x20ea74;this[_0xa35911(0x240)]||=!0x0;let _0x173f7d=_0x209170['BLANK_PLACEHOLDER'];this['_itemIndexMap'][_0x173f7d]===void 0x0?(this['_itemIndexMap'][_0x173f7d]=[_0x283d07],this[_0xa35911(0x456)]['push'](_0x173f7d),this[_0xa35911(0x251)][_0xa35911(0x3b3)](0x5),this['_itemsMap'][_0x173f7d]=this['items'][_0xa35911(0x41f)]-0x1):this[_0xa35911(0x41a)][_0x173f7d][_0xa35911(0x3b3)](_0x283d07);}[_0x20ea74(0x566)](_0x52c01a,_0x56f650){const _0x42cdcf=_0x20ea74;this[_0x42cdcf(0x400)]||=!0x0,this[_0x42cdcf(0x522)](_0x52c01a,_0x56f650,0x1);}[_0x20ea74(0x338)](_0x541683,_0x49821a){const _0x2fbda2=_0x20ea74;this[_0x2fbda2(0x28d)]||=_0x541683%0x1!=0x0,this[_0x2fbda2(0x351)]||=_0x541683%0x1==0x0,this[_0x2fbda2(0x4dc)]=Math['max'](this['maxNumber'],_0x541683),this[_0x2fbda2(0x2c9)]=Math[_0x2fbda2(0x52f)](this['minNumber'],_0x541683);let _0xcf85db=String(_0x541683);this[_0x2fbda2(0x522)](_0xcf85db,_0x49821a,0x2);}[_0x20ea74(0x33e)](_0x27177f,_0x3b0a6d){const _0x5b3c60=_0x20ea74;this[_0x5b3c60(0x2e5)]=!0x0,this[_0x5b3c60(0x522)](String(_0x27177f),_0x3b0a6d,0x3);}[_0x20ea74(0x474)](_0x13cb09,_0x46659b){const _0x10a18c=_0x20ea74;this[_0x10a18c(0x39a)]=!0x0,this[_0x10a18c(0x522)](_0x13cb09,_0x46659b,0x6);}[_0x20ea74(0x43a)](_0x40c7b6){const _0x48d21d=_0x20ea74;if(this[_0x48d21d(0x432)][_0x48d21d(0x316)](_0x40c7b6),this[_0x48d21d(0x41a)][_0x209170[_0x48d21d(0x4ec)]]===void 0x0){this[_0x48d21d(0x41a)][_0x209170[_0x48d21d(0x4ec)]]=[_0x40c7b6];let _0x2309bd=this['items'][_0x48d21d(0x3b3)](_0x209170['otherDataKey']);this[_0x48d21d(0x3a7)][_0x209170['otherDataKey']]=_0x2309bd-0x1,this[_0x48d21d(0x251)][_0x48d21d(0x3b3)](0x6),this['_keyCounter']++;}else this[_0x48d21d(0x41a)][_0x209170[_0x48d21d(0x4ec)]]['push'](_0x40c7b6);}['_updateItemKey'](_0x37564b,_0x56c3f9,_0x21cea6){const _0xa4abf7=_0x20ea74;if(this[_0xa4abf7(0x41a)][_0x37564b]===void 0x0){if(this['_keyCounter']>=_0x209170['maxLimitItemCount'])return this[_0xa4abf7(0x43a)](_0x56c3f9);this[_0xa4abf7(0x41a)][_0x37564b]=[_0x56c3f9];let _0x247558=this[_0xa4abf7(0x456)][_0xa4abf7(0x3b3)](_0x37564b);this[_0xa4abf7(0x3a7)][_0x37564b]=_0x247558-0x1,this[_0xa4abf7(0x251)]['push'](_0x21cea6),this[_0xa4abf7(0x3e8)]++;}else this[_0xa4abf7(0x41a)][_0x37564b]['push'](_0x56c3f9);}[_0x20ea74(0x1d5)](){const _0x41d22f=_0x20ea74;return this[_0x41d22f(0x3a7)];}[_0x20ea74(0x2b1)](){const _0x498d99=_0x20ea74;return{'id':this['id'],'name':this['name'],'records':this['records'],'fieldDataType':this[_0x498d99(0x275)](),'maxNumber':this['maxNumber'],'minNumber':this['minNumber'],'maxDate':this[_0x498d99(0x498)],'minDate':this['minDate'],'format':this[_0x498d99(0x421)],'rangeKey':this[_0x498d99(0x1e1)],'dataFieldType':this[_0x498d99(0x1d3)]()};}[_0x20ea74(0x471)](){const _0x1d56fe=_0x20ea74;return{'id':this['id'],'name':this[_0x1d56fe(0x3cc)],'fieldDataType':this[_0x1d56fe(0x275)](),'hexCode':this[_0x1d56fe(0x364)],'rangeKey':this[_0x1d56fe(0x1e1)],'dataFieldType':this[_0x1d56fe(0x1d3)]()};}[_0x20ea74(0x54b)](_0x4982ee){const _0x127270=_0x20ea74;this[_0x127270(0x3cc)]=_0x4982ee[_0x127270(0x3cc)],this['id']=_0x4982ee['id'],this[_0x127270(0x1e1)]=_0x4982ee[_0x127270(0x1e1)],this['hexCode']=_0x4982ee['hexCode'];}[_0x20ea74(0x203)](){const _0x50244e=_0x20ea74;this[_0x50244e(0x27d)]=[],this[_0x50244e(0x456)]=[],this[_0x50244e(0x251)]=[],this[_0x50244e(0x41a)]={},this[_0x50244e(0x351)]=!0x1,this[_0x50244e(0x28d)]=!0x1,this['hasDate']=!0x1,this[_0x50244e(0x240)]=!0x1,this[_0x50244e(0x400)]=!0x1,this[_0x50244e(0x2e5)]=!0x1,this[_0x50244e(0x39a)]=!0x1,this[_0x50244e(0x421)]='',this[_0x50244e(0x4dc)]=NaN,this[_0x50244e(0x2c9)]=NaN,this[_0x50244e(0x498)]=-0x1/0x0,this[_0x50244e(0x287)]=0x1/0x0,this[_0x50244e(0x3a7)]={},this[_0x50244e(0x3e8)]=0x0,this['_recordTupleKeys'][_0x50244e(0x41f)]=0x0,this['_tupleKeyCounter']=0x0,this[_0x50244e(0x57d)]=0x0,this['_overflowRecordIndexes'][_0x50244e(0x200)]();for(let _0x2f9045 of[this[_0x50244e(0x545)],this[_0x50244e(0x486)],this[_0x50244e(0x241)],this['_tupleTypes'],this[_0x50244e(0x381)]])for(let _0x2fe6c2 of Object[_0x50244e(0x4b4)](_0x2f9045))delete _0x2f9045[_0x2fe6c2];}},_0x56f7b2=class extends _0x168e17{constructor(..._0x434f10){const _0x302f35=_0x20ea74;super(..._0x434f10),_0x3dd15e(this,_0x302f35(0x57a),void 0x0);}[_0x20ea74(0x37f)](_0x4c63e0){return this['getItemKey'](_0x4c63e0);}[_0x20ea74(0x207)](){return this['getItemsMap']();}['getTupleIndexesByKey'](_0x193332){return this['getIndexesByKey'](_0x193332);}[_0x20ea74(0x553)](_0x5bea67){return _0x5bea67;}[_0x20ea74(0x56f)](_0x3933d4){const _0x52a3ec=_0x20ea74;return this[_0x52a3ec(0x3f1)](_0x3933d4);}[_0x20ea74(0x51b)](_0x442762){const _0x2b7ee9=_0x20ea74;return this[_0x2b7ee9(0x1d5)]()[_0x442762]===void 0x0?[]:[_0x442762];}['getFieldInfo'](){const _0x4d855b=_0x20ea74;return{...super['getFieldInfo'](),'originalFieldId':this[_0x4d855b(0x4b0)](),'dataFieldType':this['getDataFieldType']()};}[_0x20ea74(0x471)](){const _0x1e4d06=_0x20ea74;return{...super[_0x1e4d06(0x471)](),'originalFieldId':this[_0x1e4d06(0x57a)]};}};let _0x4a2b51=0x3b9aca00,_0x1978ec=[_0x20ea74(0x33b),_0x20ea74(0x4d0),'month',_0x20ea74(0x4fc),'hour','minute',_0x20ea74(0x345)];function _0x3f4560(_0x270ed9){const _0x28384a=_0x20ea74;let _0x1869f5=0x1/0x0,_0x6e398f=-0x1/0x0;for(let _0x20acb0 of _0x270ed9[_0x28384a(0x27d)]){let _0x5d1fbb=_0x20acb0['v'];_0x1869f5=Math[_0x28384a(0x52f)](_0x1869f5,_0x5d1fbb),_0x6e398f=Math[_0x28384a(0x525)](_0x6e398f,_0x5d1fbb);}return{'start':_0x1869f5,'end':_0x6e398f};}function _0x29913e(_0x30e0bc,_0x2f11ce){const _0x27fee2=_0x20ea74;let {units:_0x1bc01a,daysInterval:_0x569e4d=0x1}=_0x30e0bc;if(!_0x1bc01a[_0x27fee2(0x41f)]||new Set(_0x1bc01a)[_0x27fee2(0x282)]!==_0x1bc01a[_0x27fee2(0x41f)]||_0x1bc01a[_0x27fee2(0x253)](_0x5d5eeb=>!_0x1978ec['includes'](_0x5d5eeb))||!Number[_0x27fee2(0x3be)](_0x569e4d)||_0x569e4d<0x1||_0x569e4d>0x1&&(_0x1bc01a[_0x27fee2(0x41f)]!==0x1||_0x1bc01a[0x0]!==_0x27fee2(0x4fc)))return;let _0x44f1ea=_0x2f11ce[_0x27fee2(0x27d)],_0x1e5008=_0x209170[_0x27fee2(0x1e7)];if(!_0x44f1ea['length']||_0x44f1ea[_0x27fee2(0x253)](_0x10a00a=>!_0x3fa860(_0x10a00a)||!(0x0,_0x20af02['excelSerialToDateTimeParts'])(_0x10a00a['v'],{'dateSystem':_0x1e5008})))return;let _0x4f6d14=_0x3f4560(_0x2f11ce),_0x3fff1f=_0x30e0bc[_0x27fee2(0x2a5)]?_0x4f6d14['start']:_0x30e0bc['start'],_0x6de987=_0x30e0bc['autoEnd']?_0x4f6d14['end']:_0x30e0bc[_0x27fee2(0x40d)];if(!(_0x3fff1f===void 0x0||_0x6de987===void 0x0||_0x3fff1f>_0x6de987||!(0x0,_0x20af02[_0x27fee2(0x56b)])(_0x3fff1f,{'dateSystem':_0x1e5008})||!(0x0,_0x20af02[_0x27fee2(0x56b)])(_0x6de987,{'dateSystem':_0x1e5008})))return{..._0x30e0bc,'units':_0x1978ec['filter'](_0x42185d=>_0x1bc01a[_0x27fee2(0x3f2)](_0x42185d))};}let _0x3cb795=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function _0x42fa2b(_0xe6623e){const _0x5a5c35=_0x20ea74;return{..._0xe6623e,..._0xe6623e[_0x5a5c35(0x300)]?{'dayLabels':Object['freeze']([..._0xe6623e['dayLabels']])}:{}};}function _0x1c2ef2(_0x30a2a4,_0x130267,_0x4dd772,_0x36ed97,_0x165450){const _0x47ef54=_0x20ea74;if(_0x30a2a4['dayLabels'])return _0x30a2a4[_0x47ef54(0x300)][_0x3cb795[_0x36ed97-0x1]+_0x165450-0x1];if(_0x30a2a4['groupByDate']===!0x1)return _0x165450;let _0x2e1ff3=_0x30a2a4['daysInterval']??0x1;return Math[_0x47ef54(0x48d)](_0x4dd772)+Math['floor']((Math[_0x47ef54(0x48d)](_0x130267)-Math[_0x47ef54(0x48d)](_0x4dd772))/_0x2e1ff3)*_0x2e1ff3;}var _0x3747e2=class extends _0x56f7b2{constructor(_0x52229,_0x289c0d,_0x5efabf,_0x58bd6b,_0xd7eb24,_0x201f17){const _0x4c80b0=_0x20ea74;super(_0x52229,_0x289c0d,_0x5efabf),_0x3dd15e(this,_0x4c80b0(0x3d8),!0x0),_0x3dd15e(this,_0x4c80b0(0x2c7),void 0x0),_0x3dd15e(this,_0x4c80b0(0x4b8),void 0x0),this['originalFieldId']=_0x58bd6b,this[_0x4c80b0(0x2c7)]=_0xd7eb24??'year',this[_0x4c80b0(0x4b8)]=_0x201f17&&_0x42fa2b(_0x201f17);}[_0x20ea74(0x2db)](_0x3b7214){this['_dateType']=_0x3b7214;}[_0x20ea74(0x418)](){const _0x3e52fe=_0x20ea74;return this[_0x3e52fe(0x2c7)];}[_0x20ea74(0x2ab)](){return this['_dataIsValid'];}['refreshGroupField'](_0x23096a){const _0x49f8c8=_0x20ea74;if(this[_0x49f8c8(0x203)](),this['_dataIsValid']=!0x0,this[_0x49f8c8(0x4b8)]){this[_0x49f8c8(0x54e)](_0x23096a);return;}let _0x4ffa24=_0x23096a[_0x49f8c8(0x27d)],_0x5c4308=_0x209170[_0x49f8c8(0x1e7)]===_0x20af02[_0x49f8c8(0x32e)][_0x49f8c8(0x39f)];for(let _0x3b0d86=0x0;_0x3b0d86<_0x4ffa24[_0x49f8c8(0x41f)];_0x3b0d86++){let _0x5ae50c=_0x4ffa24[_0x3b0d86];if(_0x5ae50c==null)continue;if(!_0x3fa860(_0x5ae50c)){this['_dataIsValid']=!0x1;break;}let _0x21381a=_0x5ae50c['v'],_0x4a9bb7=_0x1577f8(_0x21381a,this[_0x49f8c8(0x2c7)],_0x5c4308);this['addRecord'](_0x4a9bb7,_0x3b0d86);}}[_0x20ea74(0x54e)](_0x13ab66){const _0x33273b=_0x20ea74;let _0x42fe46=this[_0x33273b(0x4b8)];if(!_0x29913e({..._0x42fe46,'units':[_0x42fe46[_0x33273b(0x411)]]},_0x13ab66)||_0x42fe46[_0x33273b(0x300)]&&(_0x42fe46['unit']!==_0x33273b(0x4fc)||(_0x42fe46['daysInterval']??0x1)!==0x1||_0x42fe46['dayLabels'][_0x33273b(0x41f)]!==0x16e)){this[_0x33273b(0x3d8)]=!0x1;return;}let _0x4e00c6=_0x13ab66[_0x33273b(0x27d)][_0x33273b(0x51f)](_0x202177=>_0x202177['v']),_0x245260=_0x3f4560(_0x13ab66),_0x2fc62e=_0x42fe46[_0x33273b(0x2a5)]?_0x245260[_0x33273b(0x32a)]:_0x42fe46[_0x33273b(0x32a)],_0x2c596a=_0x42fe46[_0x33273b(0x467)]?_0x245260['end']:_0x42fe46[_0x33273b(0x40d)],_0x34be67=_0x209170[_0x33273b(0x1e7)];for(let _0x1fcb86=0x0;_0x1fcb86<_0x4e00c6[_0x33273b(0x41f)];_0x1fcb86++){let _0x7adf3d=_0x4e00c6[_0x1fcb86];if(_0x7adf3d<_0x2fc62e){this[_0x33273b(0x26d)](-0x1,_0x1fcb86);continue;}if(_0x7adf3d>_0x2c596a){this[_0x33273b(0x26d)](_0x4a2b51,_0x1fcb86);continue;}let _0x3c71df=(0x0,_0x20af02[_0x33273b(0x56b)])(_0x7adf3d,{'dateSystem':_0x34be67}),_0x2b7096=(_0x7adf3d-Math['floor'](_0x7adf3d))*0x15180,_0x5edd99=Math[_0x33273b(0x35d)](_0x2b7096),_0x8d74a5=0x2**-0x34*Math['max'](0x1,Math[_0x33273b(0x21c)](_0x7adf3d))*0x15180,_0x38b3a1=Math[_0x33273b(0x52f)](0x1517f,Math['abs'](_0x2b7096-_0x5edd99)<=_0x8d74a5?_0x5edd99:Math[_0x33273b(0x48d)](_0x2b7096)),_0x5517da;switch(_0x42fe46[_0x33273b(0x411)]){case _0x33273b(0x33b):_0x5517da=_0x3c71df['year'];break;case _0x33273b(0x4d0):_0x5517da=Math['ceil'](_0x3c71df[_0x33273b(0x329)]/0x3);break;case _0x33273b(0x329):_0x5517da=_0x3c71df[_0x33273b(0x329)];break;case'day':_0x5517da=_0x1c2ef2(_0x42fe46,_0x7adf3d,_0x2fc62e,_0x3c71df['month'],_0x3c71df['day']);break;case _0x33273b(0x220):_0x5517da=Math[_0x33273b(0x48d)](_0x38b3a1/0xe10);break;case'minute':_0x5517da=Math['floor'](_0x38b3a1/0x3c)%0x3c;break;case _0x33273b(0x345):_0x5517da=_0x38b3a1%0x3c;}this[_0x33273b(0x26d)](_0x5517da,_0x1fcb86);}}[_0x20ea74(0x56d)](){const _0x1e5a76=_0x20ea74;return{'type':0x3,'dateType':this[_0x1e5a76(0x2c7)],...this[_0x1e5a76(0x4b8)]?{'excelLike':{...this[_0x1e5a76(0x4b8)]}}:{}};}['getDataFieldType'](){return 0x3;}[_0x20ea74(0x4b0)](){return this['originalFieldId'];}[_0x20ea74(0x2b1)](){const _0x2cd385=_0x20ea74;return{...super['getFieldInfo'](),'dateType':this[_0x2cd385(0x2c7)],'originalFieldId':this[_0x2cd385(0x57a)],...this[_0x2cd385(0x4b8)]?{'excelLike':{...this['_excelLike']}}:{}};}[_0x20ea74(0x471)](){const _0x4fc28d=_0x20ea74;return{...super['toJSON'](),'dateType':this[_0x4fc28d(0x2c7)],'originalFieldId':this['originalFieldId'],...this[_0x4fc28d(0x4b8)]?{'excelLike':{...this[_0x4fc28d(0x4b8)]}}:{}};}['fromJSON'](_0x50f8c1){const _0x1022d8=_0x20ea74;super[_0x1022d8(0x54b)](_0x50f8c1),this[_0x1022d8(0x2c7)]=(_0x50f8c1==null?void 0x0:_0x50f8c1[_0x1022d8(0x575)])??_0x1022d8(0x33b),this[_0x1022d8(0x57a)]=_0x50f8c1[_0x1022d8(0x57a)],this[_0x1022d8(0x4b8)]=_0x50f8c1[_0x1022d8(0x451)]&&_0x42fa2b(_0x50f8c1['excelLike']);}};function _0x5090cc(_0x38ad21,_0x1bcac7,_0x597f52){const _0x297ff2=_0x20ea74;return!!_0x38ad21&&typeof _0x38ad21['id']=='string'&&!!_0x38ad21['id']&&!_0x1bcac7[_0x297ff2(0x22d)](_0x38ad21['id'])&&typeof _0x38ad21[_0x297ff2(0x3cc)]=='string'&&!!_0x38ad21[_0x297ff2(0x3cc)]['trim']()&&!_0x597f52[_0x297ff2(0x22d)](_0x38ad21[_0x297ff2(0x3cc)])&&Array[_0x297ff2(0x391)](_0x38ad21['members'])&&_0x38ad21['members'][_0x297ff2(0x41f)]>=0x2;}function _0x255109(_0x2bd375,_0x59b36a,_0x1de25c){const _0x46f570=_0x20ea74;if(!Array[_0x46f570(0x391)](_0x2bd375==null?void 0x0:_0x2bd375[_0x46f570(0x535)])||!_0x2bd375['groups'][_0x46f570(0x41f)])return;let _0x31d80a=new Set();if(_0x59b36a)try{for(let _0x19dbdd of _0x59b36a[_0x46f570(0x27d)])_0x31d80a[_0x46f570(0x316)]((0x0,_0x20af02[_0x46f570(0x1eb)])(_0x34c3ba(_0x19dbdd)));}catch{return;}let _0x142a8f=new Map(),_0x378234=_0x1de25c&&_0x255109(_0x1de25c);for(let _0x54f760 of(_0x378234==null?void 0x0:_0x378234[_0x46f570(0x535)])??[])_0x142a8f[_0x46f570(0x57f)](_0x54f760['id'],new Set(_0x54f760[_0x46f570(0x373)][_0x46f570(0x51f)](_0x20af02[_0x46f570(0x1eb)])));let _0x5c7370=new Set(),_0x4070a0=new Set(),_0x3c3c39=new Set(),_0x53c1c9=[];for(let _0x11137c of _0x2bd375['groups']){if(!_0x5090cc(_0x11137c,_0x5c7370,_0x4070a0))return;_0x5c7370['add'](_0x11137c['id']),_0x4070a0[_0x46f570(0x316)](_0x11137c[_0x46f570(0x3cc)]);let _0x5ec915=[];for(let _0x4a8340 of _0x11137c['members']){var _0x1807ce;let _0x5e4cb7;try{_0x5e4cb7=(0x0,_0x20af02[_0x46f570(0x1eb)])(_0x4a8340);}catch{return;}if(_0x3c3c39[_0x46f570(0x22d)](_0x5e4cb7)||_0x59b36a&&!_0x31d80a['has'](_0x5e4cb7)&&!((_0x1807ce=_0x142a8f['get'](_0x11137c['id']))!=null&&_0x1807ce[_0x46f570(0x22d)](_0x5e4cb7)))return;_0x3c3c39[_0x46f570(0x316)](_0x5e4cb7),_0x5ec915[_0x46f570(0x3b3)]({..._0x4a8340});}_0x53c1c9[_0x46f570(0x3b3)]({'id':_0x11137c['id'],'name':_0x11137c[_0x46f570(0x3cc)],'members':_0x5ec915});}return{'groups':_0x53c1c9};}var _0x331ee8=class extends _0x56f7b2{constructor(_0xe133a7,_0x39bb84,_0x28bee7,_0x20defd,_0x171ebc){const _0x5b9ecd=_0x20ea74;super(_0xe133a7,_0x39bb84,_0x28bee7),_0x3dd15e(this,_0x5b9ecd(0x558),void 0x0),_0x3dd15e(this,'_dataIsValid',!0x0),_0x3dd15e(this,_0x5b9ecd(0x3f9),[]),_0x3dd15e(this,'_displayNames',new Map()),this[_0x5b9ecd(0x57a)]=_0x20defd,this[_0x5b9ecd(0x558)]=_0x255109(_0x171ebc)??_0x171ebc;}[_0x20ea74(0x438)](){const _0x5a2483=_0x20ea74;return this[_0x5a2483(0x3d8)];}[_0x20ea74(0x565)](){const _0x13c4d6=_0x20ea74;return _0x255109(this[_0x13c4d6(0x558)])??this[_0x13c4d6(0x558)];}['setGrouping'](_0x575e42){const _0x2e2be1=_0x20ea74;this[_0x2e2be1(0x558)]=_0x255109(_0x575e42)??_0x575e42;}[_0x20ea74(0x203)](){const _0x55e88a=_0x20ea74;super[_0x55e88a(0x203)](),this[_0x55e88a(0x3f9)]=[],this[_0x55e88a(0x4e8)][_0x55e88a(0x200)]();}[_0x20ea74(0x4fd)](_0x56938f){const _0x34696a=_0x20ea74;let _0x7438fc=this['_recordKeys'][_0x56938f];return this[_0x34696a(0x1d5)]()[_0x7438fc]===void 0x0?_0x209170[_0x34696a(0x4ec)]:_0x7438fc;}[_0x20ea74(0x42a)](_0x46d4b2){const _0x2a3f05=_0x20ea74;return this[_0x2a3f05(0x4e8)][_0x2a3f05(0x359)](_0x46d4b2)??_0x46d4b2;}[_0x20ea74(0x2a1)](_0x268ada){const _0x19f6e4=_0x20ea74;this[_0x19f6e4(0x203)]();let _0x363f77=_0x255109(this[_0x19f6e4(0x558)]);if(this['_dataIsValid']=!!_0x363f77,!_0x363f77)return;let _0x3ad0df=new Map();for(let _0x941a52 of _0x363f77[_0x19f6e4(0x535)])for(let _0x584e85 of _0x941a52[_0x19f6e4(0x373)])_0x3ad0df[_0x19f6e4(0x57f)]((0x0,_0x20af02['getRecordValueKey'])(_0x584e85),_0x941a52);for(let _0x182ef9=0x0;_0x182ef9<_0x268ada['records'][_0x19f6e4(0x41f)];_0x182ef9++){let _0x20509b=_0x268ada[_0x19f6e4(0x27d)][_0x182ef9],_0x169778,_0x526e65;try{_0x169778=_0x34c3ba(_0x20509b),_0x526e65=(0x0,_0x20af02[_0x19f6e4(0x1eb)])(_0x169778);}catch{this[_0x19f6e4(0x203)](),this['_dataIsValid']=!0x1;return;}let _0x431b26=_0x3ad0df[_0x19f6e4(0x359)](_0x526e65),_0x26a28f=JSON[_0x19f6e4(0x3d3)](_0x431b26?[_0x19f6e4(0x3dd),_0x431b26['id']]:[_0x19f6e4(0x567),_0x526e65]),_0x1c8244=(_0x431b26==null?void 0x0:_0x431b26[_0x19f6e4(0x3cc)])??(_0x169778[_0x19f6e4(0x3a3)]===_0x20af02[_0x19f6e4(0x2a6)]['Blank']?_0x209170[_0x19f6e4(0x3ad)]:String(_0x169778[_0x19f6e4(0x306)])),_0x1bed53=_0x431b26?0x1:this[_0x19f6e4(0x534)](_0x169778);super[_0x19f6e4(0x26d)](_0x26a28f,_0x182ef9),this[_0x19f6e4(0x27d)][_0x182ef9]=(_0x431b26==null?void 0x0:_0x431b26[_0x19f6e4(0x3cc)])??_0x20509b,this[_0x19f6e4(0x3f9)][_0x182ef9]=_0x26a28f,this[_0x19f6e4(0x4e8)][_0x19f6e4(0x57f)](_0x26a28f,_0x1c8244);let _0x943686=this[_0x19f6e4(0x1d5)]()[_0x26a28f];_0x943686!==void 0x0&&(this[_0x19f6e4(0x251)][_0x943686]=_0x1bed53);}}[_0x20ea74(0x534)](_0x3f6e61){const _0x5dc662=_0x20ea74;switch(_0x3f6e61[_0x5dc662(0x3a3)]){case _0x20af02[_0x5dc662(0x2a6)]['Blank']:return 0x5;case _0x20af02[_0x5dc662(0x2a6)][_0x5dc662(0x365)]:return 0x2;case _0x20af02[_0x5dc662(0x2a6)][_0x5dc662(0x3d9)]:return 0x4;case _0x20af02[_0x5dc662(0x2a6)][_0x5dc662(0x541)]:return 0x3;case _0x20af02[_0x5dc662(0x2a6)][_0x5dc662(0x26e)]:return 0x6;default:return 0x1;}}[_0x20ea74(0x56d)](){}[_0x20ea74(0x1d3)](){return 0x4;}['getOriginFieldId'](){const _0x23da5f=_0x20ea74;return this[_0x23da5f(0x57a)];}[_0x20ea74(0x471)](){const _0x1dd05a=_0x20ea74;return{...super[_0x1dd05a(0x471)](),'dataFieldType':0x4,'grouping':this['getGrouping']()};}[_0x20ea74(0x54b)](_0x12f3ca){const _0x20ea04=_0x20ea74;super[_0x20ea04(0x54b)](_0x12f3ca),this[_0x20ea04(0x57a)]=_0x12f3ca[_0x20ea04(0x57a)],this[_0x20ea04(0x558)]=_0x255109(_0x12f3ca[_0x20ea04(0x330)])??_0x12f3ca[_0x20ea04(0x330)];}};let _0x3e8243='__number_before__',_0x3d6834='__number_after__';function _0x33cae7(_0x2e3b26,_0x4663c3){const _0x4e1bb6=_0x20ea74;if(!Number[_0x4e1bb6(0x2c0)](_0x2e3b26[_0x4e1bb6(0x205)])||_0x2e3b26[_0x4e1bb6(0x205)]<=0x0||!_0x4663c3['records'][_0x4e1bb6(0x41f)])return;let _0x1bdf67=0x1/0x0,_0x4a76ca=-0x1/0x0;for(let _0x61c624 of _0x4663c3[_0x4e1bb6(0x27d)])if(!_0x4bbd1e(_0x61c624)){if(typeof _0x61c624!=_0x4e1bb6(0x527)||!Number['isFinite'](_0x61c624))return;_0x1bdf67=Math['min'](_0x1bdf67,_0x61c624),_0x4a76ca=Math['max'](_0x4a76ca,_0x61c624);}let _0x312992=_0x2e3b26[_0x4e1bb6(0x2a5)]?_0x1bdf67:_0x2e3b26['start'],_0x2edaa2=_0x2e3b26[_0x4e1bb6(0x467)]?_0x4a76ca:_0x2e3b26['end'];if(!(_0x312992===void 0x0||_0x2edaa2===void 0x0||!Number[_0x4e1bb6(0x2c0)](_0x312992)||!Number['isFinite'](_0x2edaa2)||_0x312992>_0x2edaa2))return{'start':_0x312992,'end':_0x2edaa2};}function _0x7705a0(_0x50240f,_0x4b30e3){return _0x33cae7(_0x50240f,_0x4b30e3)?{..._0x50240f}:void 0x0;}function _0x9ed020(_0x4731d4){const _0xaa96c=_0x20ea74;let _0x30f97b=_0x33cae7({'autoStart':!0x0,'autoEnd':!0x0,'interval':0x1},_0x4731d4);if(!_0x30f97b)return;let _0x41f3ec=_0x30f97b[_0xaa96c(0x40d)]-_0x30f97b[_0xaa96c(0x32a)];if(!Number[_0xaa96c(0x2c0)](_0x41f3ec))return;let _0x20d799=Math[_0xaa96c(0x35d)](Math['log10'](_0x41f3ec||Math[_0xaa96c(0x21c)](_0x30f97b[_0xaa96c(0x32a)])||0x1))-0x1,_0x2a538b=Math['max'](Number[_0xaa96c(0x3c3)],0xa**_0x20d799),_0x326645=_0x4731d4[_0xaa96c(0x27d)][_0xaa96c(0x437)](_0xe37789=>_0x4bbd1e(_0xe37789)||Number[_0xaa96c(0x3be)](_0xe37789));return{'autoStart':!0x0,'autoEnd':!0x0,..._0x30f97b,'interval':_0x326645?Math[_0xaa96c(0x525)](0x1,_0x2a538b):_0x2a538b};}var _0xe70d7=class extends _0x56f7b2{constructor(_0x135aff,_0x3d5c91,_0x12a67c,_0x41c8a8,_0x5730cd){const _0x52be5d=_0x20ea74;super(_0x135aff,_0x3d5c91,_0x12a67c),_0x3dd15e(this,'_grouping',void 0x0),_0x3dd15e(this,_0x52be5d(0x3d8),!0x0),_0x3dd15e(this,'_bounds',void 0x0),this[_0x52be5d(0x57a)]=_0x41c8a8,this[_0x52be5d(0x558)]={..._0x5730cd};}['getNumberGroupValid'](){const _0x2f9371=_0x20ea74;return this[_0x2f9371(0x3d8)];}[_0x20ea74(0x2a1)](_0xd102ae){const _0xb64e7c=_0x20ea74;this['reset']();let _0x193539=_0x33cae7(this['_grouping'],_0xd102ae);if(this[_0xb64e7c(0x228)]=_0x193539,this[_0xb64e7c(0x3d8)]=!!_0x193539,!_0x193539)return;let {start:_0xf24a34,end:_0x1593d5}=_0x193539,_0x1c9a4d=(_0x1593d5-_0xf24a34)/this[_0xb64e7c(0x558)][_0xb64e7c(0x205)];if(!Number[_0xb64e7c(0x2c0)](_0x1c9a4d)){this['_dataIsValid']=!0x1,this[_0xb64e7c(0x228)]=void 0x0;return;}let _0xf69e27=Math[_0xb64e7c(0x35d)](_0x1c9a4d),_0x50a47f=Math[_0xb64e7c(0x52f)](0x2**-0x34*0x8*Math['max'](0x1,Math[_0xb64e7c(0x21c)](_0x1c9a4d)),0.000001),_0x48dcad=Math[_0xb64e7c(0x21c)](_0x1c9a4d-_0xf69e27)<=_0x50a47f?_0xf69e27:Math[_0xb64e7c(0x4b6)](_0x1c9a4d),_0x17e8a8=Math[_0xb64e7c(0x525)](0x0,_0x48dcad-0x1);for(let _0x2b8326=0x0;_0x2b8326<_0xd102ae[_0xb64e7c(0x27d)][_0xb64e7c(0x41f)];_0x2b8326++){let _0x4c8bf7=_0xd102ae[_0xb64e7c(0x27d)][_0x2b8326];if(_0x4bbd1e(_0x4c8bf7)){this[_0xb64e7c(0x26d)](_0x4c8bf7,_0x2b8326);continue;}let _0x5215b9=_0x4c8bf7,_0xf6308f=Math[_0xb64e7c(0x52f)](0x2**-0x34*0x8*Math['max'](Math[_0xb64e7c(0x21c)](_0x5215b9),Math[_0xb64e7c(0x21c)](_0xf24a34)),this['_grouping']['interval']*0.000001),_0x529b47=Math[_0xb64e7c(0x52f)](0x2**-0x34*0x8*Math[_0xb64e7c(0x525)](Math[_0xb64e7c(0x21c)](_0x5215b9),Math[_0xb64e7c(0x21c)](_0x1593d5)),this['_grouping']['interval']*0.000001);if(_0x5215b9<_0xf24a34&&_0xf24a34-_0x5215b9>_0xf6308f)this[_0xb64e7c(0x26d)](_0x3e8243,_0x2b8326);else{if(_0x5215b9>_0x1593d5&&_0x5215b9-_0x1593d5>_0x529b47)this['addRecord'](_0x3d6834,_0x2b8326);else{let _0x5a95ac=(Math['min'](_0x1593d5,Math[_0xb64e7c(0x525)](_0xf24a34,_0x5215b9))-_0xf24a34)/this[_0xb64e7c(0x558)][_0xb64e7c(0x205)];if(!Number[_0xb64e7c(0x2c0)](_0x5a95ac)){this[_0xb64e7c(0x203)](),this[_0xb64e7c(0x3d8)]=!0x1;return;}let _0x53895e=Math['round'](_0x5a95ac),_0x75344d=Math['min'](0x2**-0x34*0x8*Math[_0xb64e7c(0x525)](0x1,Math[_0xb64e7c(0x21c)](_0x5a95ac)),0.000001),_0x4696fb=Math['min'](_0x17e8a8,Math[_0xb64e7c(0x21c)](_0x5a95ac-_0x53895e)<=_0x75344d?_0x53895e:Math[_0xb64e7c(0x48d)](_0x5a95ac)),_0x322a58=Number((_0xf24a34+_0x4696fb*this[_0xb64e7c(0x558)]['interval'])[_0xb64e7c(0x511)](0xf));this[_0xb64e7c(0x26d)](_0x322a58,_0x2b8326);}}}}[_0x20ea74(0x56d)](){const _0x35b644=_0x20ea74;return{'type':0x2,'grouping':{...this[_0x35b644(0x558)],...this['_bounds']}};}[_0x20ea74(0x1d3)](){return 0x2;}[_0x20ea74(0x4b0)](){const _0x4ff952=_0x20ea74;return this[_0x4ff952(0x57a)];}[_0x20ea74(0x471)](){const _0x2b8e7e=_0x20ea74;return{...super[_0x2b8e7e(0x471)](),'dataFieldType':0x2,'grouping':{...this['_grouping']}};}['fromJSON'](_0x7da3fa){const _0x140a3f=_0x20ea74;super[_0x140a3f(0x54b)](_0x7da3fa),this[_0x140a3f(0x57a)]=_0x7da3fa[_0x140a3f(0x57a)],this[_0x140a3f(0x558)]={..._0x7da3fa['grouping']};}};function _0x5478be(_0x2b693c){const _0x35da48=_0x20ea74;let _0x4c1626;if(_0x96c707(_0x2b693c))_0x4c1626=new _0x3747e2(_0x2b693c['id'],_0x2b693c[_0x35da48(0x3cc)],_0x2b693c['hexCode'],_0x2b693c[_0x35da48(0x57a)]);else{if(_0x2b693c['dataFieldType']===0x2){let _0xb088f8=_0x2b693c;_0x4c1626=new _0xe70d7(_0x2b693c['id'],_0x2b693c[_0x35da48(0x3cc)],_0x2b693c[_0x35da48(0x364)],_0xb088f8[_0x35da48(0x57a)],_0xb088f8['grouping']);}else{if(_0x2b693c[_0x35da48(0x334)]===0x4){let _0x37fc4a=_0x2b693c;_0x4c1626=new _0x331ee8(_0x2b693c['id'],_0x2b693c[_0x35da48(0x3cc)],_0x2b693c['hexCode'],_0x37fc4a[_0x35da48(0x57a)],_0x37fc4a[_0x35da48(0x330)]);}else _0x4c1626=new _0x168e17(_0x2b693c['id'],_0x2b693c['name'],_0x2b693c['hexCode']);}}return _0x4c1626[_0x35da48(0x54b)](_0x2b693c),_0x4c1626;}var _0x59c797=class _0x5720a0{constructor(_0x4eee5){const _0x18c66e=_0x20ea74;_0x3dd15e(this,'fieldIds',[]),_0x3dd15e(this,_0x18c66e(0x254),{}),_0x3dd15e(this,_0x18c66e(0x1ec),{}),_0x3dd15e(this,_0x18c66e(0x47a),void 0x0),_0x3dd15e(this,_0x18c66e(0x222),void 0x0),_0x3dd15e(this,_0x18c66e(0x2bb),void 0x0),this[_0x18c66e(0x2bb)]=_0x4eee5;}[_0x20ea74(0x3d0)](){const _0x2fc673=_0x20ea74;return this[_0x2fc673(0x294)][_0x2fc673(0x2b2)]();}[_0x20ea74(0x3a6)](){const _0xb883d4=_0x20ea74;return this[_0xb883d4(0x3d0)]()['map'](_0x5c51aa=>this[_0xb883d4(0x224)](_0x5c51aa));}[_0x20ea74(0x382)](_0x10b365){for(let _0x35f0ec of this['fieldIds'])if(this['getDisplayName'](_0x35f0ec)===_0x10b365)return _0x35f0ec;}[_0x20ea74(0x28c)](){const _0x52ad88=_0x20ea74;let _0x3647e0=new Map();for(let _0x426c9b of this[_0x52ad88(0x294)]){let _0xf259c7=this[_0x52ad88(0x30a)](_0x426c9b);_0x48890c(_0xf259c7)&&_0x3647e0[_0x52ad88(0x57f)](_0xf259c7[_0x52ad88(0x4b0)](),_0xf259c7['id']);}return _0x3647e0;}[_0x20ea74(0x52d)](_0x421b73){const _0xb07559=_0x20ea74;let _0x1e6826=[];for(let _0xeff098 of _0x421b73){let _0x978213=this[_0xb07559(0x30a)](_0xeff098);if(_0x978213&&!_0x48890c(_0x978213))for(let _0x2d6e5b of this[_0xb07559(0x294)]){let _0x539ea5=this['getFieldById'](_0x2d6e5b);_0x48890c(_0x539ea5)&&_0x539ea5['getOriginFieldId']()===_0xeff098&&_0x1e6826[_0xb07559(0x3b3)]([_0x2d6e5b,_0xeff098]);}}return _0x1e6826;}[_0x20ea74(0x42e)](_0xa58c37){const _0x1d78a1=_0x20ea74;return this[_0x1d78a1(0x294)][_0x1d78a1(0x3f2)](_0xa58c37);}[_0x20ea74(0x487)](_0x3e6e8c){const _0x78bd52=_0x20ea74;return this[_0x78bd52(0x294)]['some'](_0x22cee1=>this[_0x78bd52(0x30a)](_0x22cee1)[_0x78bd52(0x3cc)]===_0x3e6e8c);}[_0x20ea74(0x2e7)](_0x26ecfd){_0x26ecfd&&(this['range']={..._0x26ecfd});}[_0x20ea74(0x416)](_0x3b74f8,_0xab8f41){const _0x1d72dc=_0x20ea74;this['fieldIds'][_0x1d72dc(0x3b3)](_0x3b74f8);let _0x2fea66=this[_0x1d72dc(0x216)](_0xab8f41);this[_0x1d72dc(0x254)][_0x3b74f8]=_0x2fea66;}[_0x20ea74(0x272)](_0x2cf16a){const _0x18b3ab=_0x20ea74;let _0x4330b1=this[_0x18b3ab(0x294)]['indexOf'](_0x2cf16a);_0x4330b1!==-0x1&&(this[_0x18b3ab(0x294)]['splice'](_0x4330b1,0x1),delete this[_0x18b3ab(0x254)][_0x2cf16a]);}[_0x20ea74(0x224)](_0x5b747b){const _0x2990aa=_0x20ea74;let _0x237554=this[_0x2990aa(0x254)][_0x5b747b];return _0x237554===void 0x0?this[_0x2990aa(0x30a)](_0x5b747b)['getName']():_0x237554;}['setDisplayName'](_0x1d0fee,_0x279d33,_0x16b739){const _0x417831=_0x20ea74;this[_0x417831(0x254)][_0x1d0fee]=this[_0x417831(0x216)](_0x279d33,_0x16b739);}['getUniqueDataFieldName'](_0x315a38,_0x324cb0){const _0xbbe4ff=_0x20ea74;return _0x5720a0[_0xbbe4ff(0x216)](_0x315a38,_0x324cb0||this[_0xbbe4ff(0x254)]);}static['getUniqueDataFieldName'](_0x43ecef,_0x2c5e25){const _0x4b7b27=_0x20ea74;let _0x452ad4=new Set(Object[_0x4b7b27(0x341)](_0x2c5e25)),_0x293643=_0x43ecef,_0x481a1a=0x1;if(!_0x452ad4[_0x4b7b27(0x22d)](_0x293643))return _0x293643;for(;;){if(_0x293643=_0x43ecef+'('+_0x481a1a+')',!_0x452ad4[_0x4b7b27(0x22d)](_0x293643))return _0x293643;_0x481a1a++;}}[_0x20ea74(0x3fd)](){const _0x3d786e=_0x20ea74;let _0x4f5a23={};for(let _0x251586 of this[_0x3d786e(0x294)])_0x4f5a23[_0x251586]=this[_0x3d786e(0x216)](this[_0x3d786e(0x30a)](_0x251586)[_0x3d786e(0x57e)](),_0x4f5a23);this['displayNameRecord']=_0x4f5a23;}[_0x20ea74(0x30a)](_0x4a8e30){const _0x385ac9=_0x20ea74;return this[_0x385ac9(0x1ec)][_0x4a8e30]?this[_0x385ac9(0x1ec)][_0x4a8e30]:this[_0x385ac9(0x2bb)]['dataFields'][_0x4a8e30];}[_0x20ea74(0x374)](_0x40aaf6){const _0x5328a1=_0x20ea74;this[_0x5328a1(0x222)]=_0x40aaf6;}[_0x20ea74(0x3a0)](){const _0x105951=_0x20ea74;return this[_0x105951(0x222)];}['getDataFieldBySourceName'](_0x3378cb){const _0x3fc698=_0x20ea74;for(let _0x3d008c of this['fieldIds'])if(this['getFieldById'](_0x3d008c)[_0x3fc698(0x3cc)]===_0x3378cb)return this[_0x3fc698(0x30a)](_0x3d008c);}[_0x20ea74(0x2b1)](){const _0x578bc8=_0x20ea74;let _0x106549=this[_0x578bc8(0x294)][_0x578bc8(0x51f)](_0x220567=>this[_0x578bc8(0x30a)](_0x220567)[_0x578bc8(0x2b1)]()),_0x94c709=Object['keys'](this[_0x578bc8(0x1ec)])[_0x578bc8(0x51f)](_0x535feb=>this[_0x578bc8(0x1ec)][_0x535feb]['getFieldInfo']());return _0x106549[_0x578bc8(0x2b2)](_0x94c709);}[_0x20ea74(0x471)](){const _0x47ec84=_0x20ea74;let _0x37427c={};for(let _0x17eddc of this[_0x47ec84(0x294)])_0x37427c[_0x17eddc]=this[_0x47ec84(0x30a)](_0x17eddc)['toJSON']();return{'fields':_0x37427c,'fieldIds':this[_0x47ec84(0x294)][_0x47ec84(0x2b2)](),'displayNameRecord':{...this['displayNameRecord']},'customFields':Object['keys'](this[_0x47ec84(0x1ec)])['map'](_0x4a10d4=>this[_0x47ec84(0x1ec)][_0x4a10d4][_0x47ec84(0x471)]()),'dataRecordCount':this[_0x47ec84(0x222)],'range':this[_0x47ec84(0x47a)]};}[_0x20ea74(0x54b)](_0x5c4440){const _0x22975e=_0x20ea74;this['fieldIds']=_0x5c4440[_0x22975e(0x294)]['concat'](),this[_0x22975e(0x254)]=_0x5c4440[_0x22975e(0x254)]?{..._0x5c4440[_0x22975e(0x254)]}:{};let _0x5410c3=_0x5c4440['fields'];for(let _0x463e95 in _0x5410c3)this[_0x22975e(0x2bb)]['dataFields'][_0x463e95]||(this[_0x22975e(0x2bb)][_0x22975e(0x30e)][_0x463e95]=_0x5478be(_0x5410c3[_0x463e95]));this[_0x22975e(0x1ec)]={};for(let _0x1e0dfe of _0x5c4440[_0x22975e(0x1ec)]){let _0x27bcf2=_0x5478be(_0x1e0dfe);this[_0x22975e(0x1ec)][_0x27bcf2['id']]=_0x27bcf2;}this[_0x22975e(0x222)]=_0x5c4440['dataRecordCount'],this[_0x22975e(0x47a)]=_0x5c4440[_0x22975e(0x47a)];}['dispose'](){const _0x2179e9=_0x20ea74;this[_0x2179e9(0x294)]=[],this[_0x2179e9(0x1ec)]={},this[_0x2179e9(0x222)]=0x0,delete this['host'];}},_0x42c42d=class{constructor(){const _0x50f038=_0x20ea74;_0x3dd15e(this,_0x50f038(0x30e),{}),_0x3dd15e(this,_0x50f038(0x242),{});}[_0x20ea74(0x3ee)](_0x15f4f8){const _0x4c9ba4=_0x20ea74;throw Error(_0x4c9ba4(0x570));}[_0x20ea74(0x23e)](){const _0x147025=_0x20ea74;let _0x111848=_0x356fa2(0x5);return this[_0x147025(0x30e)][_0x111848]?this[_0x147025(0x23e)]():_0x111848;}['getAutoDisplayNameFunction'](){return null;}['getNoUsedDataFieldIds'](_0x2d546e){const _0xb1212b=_0x20ea74;let _0x2e70d3=this[_0xb1212b(0x242)][_0x2d546e]['getFieldIds'](),_0x1c396c=new Set();for(let _0x5b5075 in this[_0xb1212b(0x242)])if(_0x5b5075!==_0x2d546e){let _0x60426a=this[_0xb1212b(0x242)][_0x5b5075][_0xb1212b(0x3d0)]();for(let _0x2a5a66 of _0x60426a)_0x1c396c[_0xb1212b(0x316)](_0x2a5a66);}return _0x2e70d3['filter'](_0x111c51=>!_0x1c396c[_0xb1212b(0x22d)](_0x111c51));}[_0x20ea74(0x571)](_0x1c2cd4,_0x4d488b){const _0x2637b4=_0x20ea74;this['collections'][_0x1c2cd4]=new _0x59c797(this);let {header:_0xac5695,data:_0x44f89f}=this[_0x2637b4(0x4aa)](_0x4d488b),_0x31db35=this[_0x2637b4(0x242)][_0x1c2cd4],_0x477312=[];for(let _0x2f792f of _0xac5695){let _0xc72cba=this[_0x2637b4(0x23e)](),_0x23db93=new _0x168e17(_0xc72cba,_0x2f792f,_0x356fa2(0x3));this[_0x2637b4(0x30e)][_0xc72cba]=_0x23db93,_0x31db35[_0x2637b4(0x294)][_0x2637b4(0x3b3)](_0xc72cba),_0x477312[_0x2637b4(0x3b3)](_0x23db93);}let _0x543ce0=0x0;for(let _0x4afdd8 of _0x44f89f){let _0x4808a1=0x0;for(let _0x26093f of _0x477312)_0x26093f['addRecord'](_0x4afdd8[_0x4808a1],_0x543ce0),_0x4808a1++;_0x543ce0++;}return _0x31db35[_0x2637b4(0x374)](_0x44f89f[_0x2637b4(0x41f)]),_0x31db35;}[_0x20ea74(0x1fb)](){const _0x38ebc3=_0x20ea74;for(let _0x13f550 in this['collections'])this['collections'][_0x13f550][_0x38ebc3(0x1fb)]();this[_0x38ebc3(0x242)]={},this[_0x38ebc3(0x30e)]={};}[_0x20ea74(0x471)](){const _0x14fc3a=_0x20ea74;let _0x1c655d={};for(let _0x2a4705 in this[_0x14fc3a(0x242)])_0x1c655d[_0x2a4705]=this[_0x14fc3a(0x242)][_0x2a4705][_0x14fc3a(0x471)]();let _0x16d3a9={};for(let _0x1351fe in this[_0x14fc3a(0x30e)])_0x16d3a9[_0x1351fe]=this[_0x14fc3a(0x30e)][_0x1351fe]['toJSON']();return{'collections':_0x1c655d,'dataFields':_0x16d3a9};}['addCollection'](_0x419db5,_0x1ded75,_0x4b1155,..._0x1dfea2){const _0x41801b=_0x20ea74;this[_0x41801b(0x242)][_0x419db5]=_0x1ded75,_0x1ded75[_0x41801b(0x2e7)](_0x4b1155);}[_0x20ea74(0x54b)](_0x53543f){const _0x5b9710=_0x20ea74;for(let _0x57ddb1 in _0x53543f[_0x5b9710(0x242)]){let _0x137667=new _0x59c797(this);_0x137667['fromJSON'](_0x53543f[_0x5b9710(0x242)][_0x57ddb1]),this[_0x5b9710(0x506)](_0x57ddb1,_0x137667,_0x137667[_0x5b9710(0x47a)]);}for(let _0x21eb5d in _0x53543f[_0x5b9710(0x30e)])this[_0x5b9710(0x30e)][_0x21eb5d]=_0x5478be(_0x53543f[_0x5b9710(0x30e)][_0x21eb5d]);}};let _0x29e75e='0.00%';function _0x5d6d1b(_0x18fcad){return _0x18fcad===0x2||_0x18fcad===0x3||_0x18fcad===0x4||_0x18fcad===0x5||_0x18fcad===0x6||_0x18fcad===0x7||_0x18fcad===0xa||_0x18fcad===0xc||_0x18fcad===0xd||_0x18fcad===0xe;}var _0x3311a5=class{constructor(){const _0x112411=_0x20ea74;_0x3dd15e(this,_0x112411(0x3e1),new _0x593a79()),_0x3dd15e(this,_0x112411(0x3d5),new _0x1974f7()),_0x3dd15e(this,'colView',new _0x19fc68()),_0x3dd15e(this,_0x112411(0x2aa),new _0x42d86b()),_0x3dd15e(this,'cornerView',new _0x42d86b()),_0x3dd15e(this,_0x112411(0x54d),{}),_0x3dd15e(this,_0x112411(0x29a),{});}['setGroupInfo'](_0x3648e4){const _0x569bb3=_0x20ea74;this[_0x569bb3(0x29a)]=_0x3648e4;}[_0x20ea74(0x405)](_0x57a0c5,_0x3ca9a2){const _0x218732=_0x20ea74;let _0x580850={},_0x511760=new Set(_0x3ca9a2[_0x218732(0x572)](_0xe63565=>{const _0x2f7964=_0x218732;var _0x5e5b87;return _0x5d6d1b((_0x5e5b87=_0xe63565[_0x2f7964(0x4a3)])==null?void 0x0:_0x5e5b87['type']);})[_0x218732(0x51f)](_0x330f72=>_0x330f72['id']));_0x57a0c5[_0x218732(0x2f1)](_0x135d26=>{const _0x17e20d=_0x218732;let _0x59b662=_0x135d26[_0x17e20d(0x580)]();_0x59b662?_0x580850[_0x135d26['id']]=_0x59b662:_0x511760['has'](_0x135d26['id'])&&(_0x580850[_0x135d26['id']]=_0x29e75e);});for(let _0x56818e of _0x511760)_0x580850[_0x56818e]??=_0x29e75e;this[_0x218732(0x54d)]=_0x580850;}[_0x20ea74(0x471)](){const _0x2182b0=_0x20ea74;let _0xf2a21f={...this[_0x2182b0(0x54d)]};return{'pageView':this[_0x2182b0(0x3e1)][_0x2182b0(0x471)](),'rowView':this[_0x2182b0(0x3d5)][_0x2182b0(0x471)](),'colView':this[_0x2182b0(0x2b3)][_0x2182b0(0x471)](),'dataView':this['dataView'][_0x2182b0(0x471)](),'cornerView':this[_0x2182b0(0x44f)][_0x2182b0(0x471)](),'groupInfo':this[_0x2182b0(0x29a)],'formatMap':_0xf2a21f};}['formJSON'](_0x2f7fb0){const _0x309ab7=_0x20ea74;this[_0x309ab7(0x3e1)][_0x309ab7(0x54b)](_0x2f7fb0[_0x309ab7(0x3e1)]),this['rowView'][_0x309ab7(0x54b)](_0x2f7fb0['rowView']),this['colView']['fromJSON'](_0x2f7fb0[_0x309ab7(0x2b3)]),this['dataView'][_0x309ab7(0x54b)](_0x2f7fb0[_0x309ab7(0x2aa)]),this['cornerView']['fromJSON'](_0x2f7fb0['cornerView']),this[_0x309ab7(0x54d)]={..._0x2f7fb0[_0x309ab7(0x54d)]},this[_0x309ab7(0x29a)]=_0x2f7fb0[_0x309ab7(0x29a)];}},_0x42d86b=class{constructor(){const _0x3ed1ea=_0x20ea74;_0x3dd15e(this,_0x3ed1ea(0x31e),0x0),_0x3dd15e(this,_0x3ed1ea(0x3c2),0x0),_0x3dd15e(this,_0x3ed1ea(0x548),{}),_0x3dd15e(this,_0x3ed1ea(0x577),[]),_0x3dd15e(this,_0x3ed1ea(0x555),-0x1),_0x3dd15e(this,_0x3ed1ea(0x46b),-0x1);}[_0x20ea74(0x4f3)](){const _0x1e6a80=_0x20ea74;return this[_0x1e6a80(0x555)];}[_0x20ea74(0x494)](){return this['lastRow'];}[_0x20ea74(0x55c)](_0x24d2d9,_0xd0c508,_0x310ac9){const _0x111d90=_0x20ea74;let _0x31d893=this[_0x111d90(0x3ef)](_0x24d2d9,_0xd0c508);this[_0x111d90(0x555)]=Math['max'](this['lastCol'],_0xd0c508),this[_0x111d90(0x46b)]=Math[_0x111d90(0x525)](this[_0x111d90(0x46b)],_0x24d2d9),_0x31d893['v']=_0x310ac9;}[_0x20ea74(0x53f)](_0x1283e4,_0x533200,_0x112493){const _0x3dc952=_0x20ea74;let _0x25b731=this[_0x3dc952(0x3ef)](_0x1283e4,_0x533200);_0x25b731['s']=_0x112493;}[_0x20ea74(0x3b6)](_0x31b6f2,_0x457b54){const _0x21f6ad=_0x20ea74;let _0x21706b=this[_0x21f6ad(0x3ef)](_0x31b6f2,_0x457b54);_0x21706b['t']=0x2;}['setOther'](_0x28c961,_0x21cc11){let _0x2b2132=this['getCell'](_0x28c961,_0x21cc11);_0x2b2132['t']=0x8;}[_0x20ea74(0x3ef)](_0x3e02a6,_0x47f9fb){const _0x3827c9=_0x20ea74;return this['data'][_0x3e02a6]||(this[_0x3827c9(0x548)][_0x3e02a6]={}),this['data'][_0x3e02a6][_0x47f9fb]||(this[_0x3827c9(0x548)][_0x3e02a6][_0x47f9fb]={}),this[_0x3827c9(0x548)][_0x3e02a6][_0x47f9fb];}['setInfo'](_0x3f68ce,_0x3781e1){const _0x310ed3=_0x20ea74;this[_0x310ed3(0x577)][_0x3f68ce]=_0x3781e1;}['buildPathMap'](_0x97fa58){const _0x300746=_0x20ea74;let _0x544fd7={},_0x191f50=0x0;return this['info'][_0x300746(0x559)](_0x27d09d=>{const _0x7fb3a6=_0x300746;let _0x2e2fae=_0x4385b1(_0x27d09d[_0x7fb3a6(0x277)],_0x27d09d['valueIndex'],_0x97fa58);_0x544fd7[_0x2e2fae]=_0x191f50,_0x191f50++;}),_0x544fd7;}['setRowCount'](_0x554d2d){const _0x1e7e9c=_0x20ea74;this[_0x1e7e9c(0x31e)]=_0x554d2d;}['setColCount'](_0x358ea5){const _0x11a14f=_0x20ea74;this[_0x11a14f(0x3c2)]=_0x358ea5;}[_0x20ea74(0x248)](){const _0xb23079=_0x20ea74;return this[_0xb23079(0x31e)];}[_0x20ea74(0x428)](){const _0x4fc2eb=_0x20ea74;return this[_0x4fc2eb(0x3c2)];}[_0x20ea74(0x3ea)](_0x233eb1,_0xfd5002){const _0x233fd6=_0x20ea74;var _0x23f6ce;return(_0x23f6ce=this[_0x233fd6(0x548)][_0x233eb1])==null||(_0x23f6ce=_0x23f6ce[_0xfd5002])==null?void 0x0:_0x23f6ce['v'];}['getStyle'](_0x1b7fb8,_0x49b2a4){const _0x411608=_0x20ea74;var _0x32fdf0;return(_0x32fdf0=this[_0x411608(0x548)][_0x1b7fb8])==null||(_0x32fdf0=_0x32fdf0[_0x49b2a4])==null?void 0x0:_0x32fdf0['s'];}['toJSON'](){const _0x4d3855=_0x20ea74;return{'data':this[_0x4d3855(0x548)],'info':this[_0x4d3855(0x577)]['map'](_0x454d18=>({..._0x454d18,'paths':_0x454d18[_0x4d3855(0x277)][_0x4d3855(0x2b2)]()})),'rowCount':this[_0x4d3855(0x31e)],'colCount':this['colCount'],'lastCol':this[_0x4d3855(0x555)],'lastRow':this[_0x4d3855(0x46b)]};}[_0x20ea74(0x54b)](_0x4af594){const _0x53a194=_0x20ea74;this[_0x53a194(0x548)]=_0x4af594[_0x53a194(0x548)],this[_0x53a194(0x577)]=_0x4af594[_0x53a194(0x577)][_0x53a194(0x51f)](_0x5d5cdd=>({..._0x5d5cdd,'paths':_0x5d5cdd[_0x53a194(0x277)]['concat']()})),this[_0x53a194(0x31e)]=_0x4af594[_0x53a194(0x31e)],this[_0x53a194(0x3c2)]=_0x4af594['colCount'],this[_0x53a194(0x555)]=_0x4af594[_0x53a194(0x555)],this[_0x53a194(0x46b)]=_0x4af594['lastRow'];}},_0x593a79=class extends _0x42d86b{constructor(..._0x85af32){const _0x2a09d1=_0x20ea74;super(..._0x85af32),_0x3dd15e(this,'ranges',[]),_0x3dd15e(this,_0x2a09d1(0x555),-0x1),_0x3dd15e(this,_0x2a09d1(0x46b),-0x1);}[_0x20ea74(0x441)](_0x54e3d2,_0x5c0493,_0xccf750){let _0x1e303f=this['getCell'](_0x54e3d2,_0x5c0493);_0x1e303f['i']=_0xccf750;}[_0x20ea74(0x39e)](_0x4dd1f2){const _0x5be344=_0x20ea74;this[_0x5be344(0x1e0)]['push'](_0x4dd1f2);}[_0x20ea74(0x347)](){const _0x3c27a9=_0x20ea74;return this[_0x3c27a9(0x1e0)];}[_0x20ea74(0x34f)](_0x292240){const _0x17b83d=_0x20ea74;this[_0x17b83d(0x555)]=_0x292240;}[_0x20ea74(0x2dd)](_0x58fa9c){const _0x112c4=_0x20ea74;this[_0x112c4(0x46b)]=_0x58fa9c;}['getLastCol'](){const _0x454632=_0x20ea74;return this[_0x454632(0x555)];}[_0x20ea74(0x494)](){return this['lastRow'];}[_0x20ea74(0x471)](){const _0x4b1043=_0x20ea74;let _0x382566=this[_0x4b1043(0x1e0)][_0x4b1043(0x51f)](_0x3fe428=>({..._0x3fe428}));return{...super[_0x4b1043(0x471)](),'ranges':_0x382566,'lastCol':this[_0x4b1043(0x555)],'lastRow':this[_0x4b1043(0x46b)]};}[_0x20ea74(0x54b)](_0x8bbfc5){const _0x127cbb=_0x20ea74;this['ranges']=_0x8bbfc5[_0x127cbb(0x1e0)][_0x127cbb(0x51f)](_0x1c723d=>({..._0x1c723d})),this[_0x127cbb(0x555)]=_0x8bbfc5[_0x127cbb(0x555)],this[_0x127cbb(0x46b)]=_0x8bbfc5[_0x127cbb(0x46b)],super[_0x127cbb(0x54b)](_0x8bbfc5);}},_0x106eeb=class extends _0x42d86b{constructor(..._0x1a6aac){const _0x4de213=_0x20ea74;super(..._0x1a6aac),_0x3dd15e(this,_0x4de213(0x50b),[]);}[_0x20ea74(0x4fa)](_0x5b0443,_0x9e1834){const _0x1dea63=_0x20ea74;this[_0x1dea63(0x50b)][_0x5b0443]=_0x9e1834;}['getHeaderMapItem'](_0x2c420d){const _0x4b234d=_0x20ea74;return this[_0x4b234d(0x50b)][_0x2c420d];}[_0x20ea74(0x471)](){const _0x64c9e5=_0x20ea74;let _0x50c367=this['headerMap'][_0x64c9e5(0x51f)](_0x496e7f=>({..._0x496e7f}));return{...super[_0x64c9e5(0x471)](),'headerMap':_0x50c367};}[_0x20ea74(0x54b)](_0x5ba5d6){const _0xfcad9a=_0x20ea74;this[_0xfcad9a(0x50b)]=_0x5ba5d6[_0xfcad9a(0x50b)]['map'](_0x26fac4=>({..._0x26fac4})),super[_0xfcad9a(0x54b)](_0x5ba5d6);}},_0x1974f7=class extends _0x106eeb{[_0x20ea74(0x4f3)](){const _0x53228a=_0x20ea74;return Math['max'](this[_0x53228a(0x555)],this[_0x53228a(0x50b)]['length']-0x1);}},_0x19fc68=class extends _0x106eeb{[_0x20ea74(0x494)](){const _0x11b4c2=_0x20ea74;return Math[_0x11b4c2(0x525)](this['lastRow'],this[_0x11b4c2(0x50b)][_0x11b4c2(0x41f)]-0x1);}};let _0x1e2f04=_0x5b0a57=>typeof _0x5b0a57=='object'&&_0x5b0a57[_0x20ea74(0x331)]!==void 0x0,_0x4bbb0e=_0x41aa6a=>typeof _0x41aa6a=='object'&&_0x41aa6a[_0x20ea74(0x2a4)]!==void 0x0;var _0x3f74a4=class{static['prepareLayoutCtx'](_0x956b74,_0x98ff16,_0x4b4ceb){const _0x209377=_0x20ea74;let _0x3105b0=new _0x3311a5(),_0x3e1a0e=_0x98ff16[_0x209377(0x3b7)],_0x2b1a47=_0x98ff16[_0x209377(0x2ef)],_0x4e14d3=_0x956b74[_0x209377(0x337)](),_0x10c71f=_0x4e14d3[_0x209377(0x2cc)]||0x1,_0x248730=!!_0x4e14d3[_0x209377(0x302)],_0xd2d4e=_0x4b4ceb[_0x209377(0x378)],_0x5a9944=_0x4b4ceb[_0x209377(0x1fc)],_0x39ed3b={};for(let _0x3b381c of _0x5a9944)_0x39ed3b[_0x3b381c[_0x209377(0x1fe)]]=_0x3b381c;let _0x42502e=_0x956b74[_0x209377(0x31c)](),_0x2be415=_0x956b74[_0x209377(0x397)](),_0x271f8a=_0x956b74[_0x209377(0x3e9)]();_0xd2d4e['length']>0x1&&(_0x271f8a===-0x1&&(_0x271f8a=_0x2b1a47),!_0x42502e&&!_0x2be415&&(_0x42502e=!0x0),_0x42502e&&(_0x271f8a=Math[_0x209377(0x52f)](_0x271f8a,_0x2b1a47)),_0x2be415&&(_0x271f8a=Math[_0x209377(0x52f)](_0x271f8a,_0x3e1a0e)));let _0x1d52b0=_0xd2d4e[_0x209377(0x41f)],_0x781dc0={},_0x422df1={},_0x2ee57d=0x0;for(let _0x5f1769 of _0xd2d4e)_0x781dc0[_0x5f1769['id']]=_0x5f1769,_0x422df1[_0x5f1769['id']]=_0x2ee57d,_0x2ee57d++;let _0x50142b=!!_0x956b74[_0x209377(0x337)]()[_0x209377(0x257)],_0x1d595e=!!_0x956b74[_0x209377(0x337)]()[_0x209377(0x56a)],_0x27d47a=_0x956b74[_0x209377(0x337)]()['showRowSubtotal']??!0x0,_0x346ba7=_0x956b74['getOptions']()[_0x209377(0x291)]??!0x0,_0x283b27=_0x956b74[_0x209377(0x337)]()['showColSubtotal']??!0x0,_0x3b8554=_0x956b74['getOptions']()[_0x209377(0x2ba)]??!0x0,_0x43e178=_0x956b74['getOptions']()[_0x209377(0x25c)]??0x1;return{'isColMultiMeasure':_0x42502e,'isRowMultiMeasure':_0x2be415,'valueIndex':_0x271f8a,'rowDeep':_0x3e1a0e,'colDeep':_0x2b1a47,'rowNodeTree':_0x98ff16[_0x209377(0x2eb)],'colNodeTree':_0x98ff16[_0x209377(0x4eb)],'measuresMap':_0x781dc0,'measureIndexesMap':_0x422df1,'measureCount':_0x1d52b0,'pageWrap':_0x10c71f,'pageOverThenDown':_0x248730,'queryData':_0x4b4ceb,'view':_0x3105b0,'valueQueryInfo':_0xd2d4e,'colMap':{},'summaryManager':_0x98ff16,'collapseInfo':_0x4b4ceb[_0x209377(0x2a7)],'repeatRowLabels':_0x50142b,'repeatColLabels':_0x1d595e,'valueFilterMap':_0x39ed3b,'showRowSubtotal':_0x27d47a,'showRowGrandTotal':_0x346ba7,'showColSubtotal':_0x283b27,'showColGrandTotal':_0x3b8554,'rowSubtotalPosition':_0x43e178};}static['layoutPage'](_0x4f0f5c){const _0x1cb678=_0x20ea74;let {pageWrap:_0x450a13,pageOverThenDown:_0x3cef5f,view:_0xd20c23}=_0x4f0f5c,_0x4c339a=_0xd20c23['pageView'],_0x34c9d1=_0x4f0f5c['queryData'][_0x1cb678(0x332)][_0x1cb678(0x51f)](({displayName:_0x1ff860,filterInfo:_0x5d10a5,dataFieldId:_0x3c2e9a})=>{const _0x13eac4=_0x1cb678;var _0xaf9e41;let {status:_0x5eae06,value:_0x155c7c}=_0x42edd7(_0x5d10a5);if(_0x155c7c===void 0x0)return{'displayName':_0x1ff860,'status':_0x5eae06};let _0x185383=(_0xaf9e41=_0x4f0f5c[_0x13eac4(0x2af)][_0x13eac4(0x484)][_0x3c2e9a])==null?void 0x0:_0xaf9e41[_0x13eac4(0x4c7)],_0x558c10=_0x185383==null?void 0x0:_0x185383[_0x13eac4(0x3f1)](_0x155c7c);return{'displayName':_0x1ff860,'status':_0x5eae06,'value':_0x185383 instanceof _0x331ee8?_0x185383[_0x13eac4(0x42a)](_0x155c7c):_0x155c7c,'itemType':_0x558c10};});_0x3cef5f?this[_0x1cb678(0x210)](_0x34c9d1,_0x4c339a,_0x450a13):this[_0x1cb678(0x28e)](_0x34c9d1,_0x4c339a,_0x450a13);}static['_setPageFilterLabel'](_0x7c6733,_0x362a99,_0x3178f3,_0xed1f7b,_0x2813c1){const _0x5d86e7=_0x20ea74;let {displayName:_0x1b8378,value:_0x37f5b3,status:_0x162b92,itemType:_0x36dcd3}=_0x2813c1;_0x7c6733[_0x5d86e7(0x55c)](_0x362a99,_0x3178f3,_0x1b8378),_0x7c6733[_0x5d86e7(0x55c)](_0x362a99,_0x3178f3+0x1,_0x37f5b3),_0x7c6733[_0x5d86e7(0x53f)](_0x362a99,_0x3178f3+0x1,_0x162b92),_0x36dcd3===0x5?_0x7c6733[_0x5d86e7(0x3b6)](_0x362a99,_0x3178f3+0x1):_0x36dcd3===0x6&&_0x37f5b3===_0x209170[_0x5d86e7(0x4ec)]&&_0x7c6733[_0x5d86e7(0x349)](_0x362a99,_0x3178f3+0x1),_0x7c6733[_0x5d86e7(0x441)](_0x362a99,_0x3178f3,_0xed1f7b),_0x7c6733[_0x5d86e7(0x441)](_0x362a99,_0x3178f3+0x1,_0xed1f7b);}static[_0x20ea74(0x210)](_0x42c134,_0x41fc75,_0x4117eb=0x1){const _0x365c33=_0x20ea74;let _0x93be71=0x0,_0x2144b1=0x0,_0x5d4744=0x0;for(let _0x47bb3b of _0x42c134)this[_0x365c33(0x413)](_0x41fc75,_0x2144b1,_0x93be71*0x3,_0x5d4744,_0x47bb3b),_0x93be71++,_0x93be71===_0x4117eb&&(_0x93be71=0x0,_0x2144b1++),_0x5d4744++;let _0x1d6f77=_0x42c134[_0x365c33(0x41f)],_0x2408e4=Math[_0x365c33(0x4b6)](_0x1d6f77/_0x4117eb),_0x456b27=_0x1d6f77%_0x4117eb;for(let _0x2733b1=0x0;_0x2733b1<_0x4117eb;_0x2733b1++){let _0x53c26b=_0x456b27>=_0x2733b1+0x1?_0x2408e4:_0x2408e4-0x1;_0x41fc75[_0x365c33(0x39e)]({'row':0x0,'col':_0x2733b1*0x3,'rowCount':_0x53c26b,'colCount':0x2});}_0x41fc75[_0x365c33(0x2dd)](_0x2408e4-0x1);let _0x29a245=_0x1d6f77>_0x4117eb?_0x4117eb*0x3-0x2:_0x1d6f77*0x3-0x2;_0x41fc75[_0x365c33(0x34f)](_0x29a245),_0x41fc75['setRowCount'](_0x41fc75[_0x365c33(0x46b)]+0x1),_0x41fc75[_0x365c33(0x423)](_0x41fc75[_0x365c33(0x555)]+0x1);}static[_0x20ea74(0x28e)](_0x3a385d,_0x10b8c7,_0x16d289=0x1){const _0x42499a=_0x20ea74;let _0x2219fd=0x0,_0x500608=0x0,_0x4476c6=0x0;for(let _0x8296ce of _0x3a385d)this[_0x42499a(0x413)](_0x10b8c7,_0x2219fd,_0x500608*0x3,_0x4476c6,_0x8296ce),_0x2219fd++,_0x2219fd===_0x16d289&&(_0x2219fd=0x0,_0x500608++),_0x4476c6++;let _0x400440=_0x3a385d[_0x42499a(0x41f)],_0x35134f=0x0;for(;_0x35134f<_0x400440;){let _0xc6bc2a=Math[_0x42499a(0x52f)](_0x16d289,_0x400440-_0x35134f);_0x10b8c7[_0x42499a(0x39e)]({'row':0x0,'col':_0x35134f*0x3/_0x16d289,'rowCount':_0xc6bc2a,'colCount':0x2}),_0x35134f+=_0x16d289;}_0x10b8c7[_0x42499a(0x2dd)](Math[_0x42499a(0x52f)](_0x400440,_0x16d289)-0x1),_0x10b8c7[_0x42499a(0x34f)](Math[_0x42499a(0x4b6)](_0x400440/_0x16d289)*0x3-0x2),_0x10b8c7[_0x42499a(0x377)](_0x10b8c7[_0x42499a(0x46b)]+0x1),_0x10b8c7[_0x42499a(0x423)](_0x10b8c7['lastCol']+0x1);}static[_0x20ea74(0x44e)](_0x57a84c){const _0x3d1320=_0x20ea74;this[_0x3d1320(0x2d1)](_0x57a84c),this[_0x3d1320(0x38b)](_0x57a84c),_0x57a84c[_0x3d1320(0x2af)][_0x3d1320(0x551)](_0x57a84c['queryData']);}static[_0x20ea74(0x1f9)](_0x56e2b7){}static[_0x20ea74(0x2d1)](_0x529cf8){const _0x2495f8=_0x20ea74;let {colDeep:_0x4ee7da,view:_0x1a3217,isColMultiMeasure:_0x14e26a,valueIndex:_0x710dd7}=_0x529cf8,_0x429155=_0x529cf8[_0x2495f8(0x25a)]['colQueryInfo'],_0x4a0696=_0x1a3217[_0x2495f8(0x2b3)],_0x70c660=0x0,_0x8e8525=!0x1;for(let _0x40488a=0x0;_0x40488a<_0x4ee7da;_0x40488a++){let {displayName:_0x569cc0,filterInfo:_0x2f3a3a,sortInfo:_0x363ad7,id:_0x538518,dataFieldId:_0x4b5417}=_0x429155[_0x40488a];_0x4ee7da!==0x0&&_0x14e26a&&_0x40488a===_0x710dd7&&(_0x4a0696[_0x2495f8(0x55c)](0x0,_0x70c660,_0x2495f8(0x48f)),_0x8e8525=!0x0,_0x70c660++),_0x4a0696['setValue'](0x0,_0x70c660,_0x569cc0),_0x4a0696[_0x2495f8(0x4fa)](_0x70c660+0x1,{'isValue':!0x1,'level':_0x40488a,'tableFieldId':_0x538518,'dataFieldId':_0x4b5417}),_0x4a0696[_0x2495f8(0x53f)](0x0,_0x70c660,_0x5666c0(_0x2f3a3a,_0x363ad7,_0x529cf8['valueFilterMap'][_0x538518])),_0x70c660++;}_0x4ee7da!==0x0&&!_0x8e8525&&_0x14e26a&&(_0x4a0696[_0x2495f8(0x55c)](0x0,_0x70c660,_0x2495f8(0x48f)),_0x4a0696[_0x2495f8(0x4fa)](_0x70c660+0x1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x20ea74(0x2ea)](_0x21edfe){const _0x14f43a=_0x20ea74;let {view:_0x490c0c}=_0x21edfe,{rowView:_0x5f2ee8,colView:_0x5606d5,dataView:_0x3f49a5}=_0x490c0c;_0x3f49a5[_0x14f43a(0x377)](_0x5f2ee8[_0x14f43a(0x248)]()),_0x3f49a5[_0x14f43a(0x423)](_0x5606d5['getColCount']());}static[_0x20ea74(0x4a5)](_0x19eb11,_0x36445f){const _0x59357f=_0x20ea74;let {measureCount:_0x1f9b58,isColMultiMeasure:_0x335fc2,valueQueryInfo:_0x347c31}=_0x19eb11,_0x2dbed6=_0x335fc2?_0x347c31[_0x59357f(0x51f)](_0x2a4363=>_0x2a4363['id']):[],_0x1ee298=this['buildColPathMap'](_0x19eb11,_0x36445f);return _0x1f9b58===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x1ee298}:(this[_0x59357f(0x30d)](_0x19eb11,0x0,_0x36445f,_0x2dbed6,_0x1ee298),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x335fc2?_0x1f9b58:0x1,'colPathMap':_0x1ee298});}static[_0x20ea74(0x38b)](_0x333920){const _0x1e90f0=_0x20ea74;let {colNodeTree:_0xfb65a3,view:_0xbcb83e,colDeep:_0x32563b,isColMultiMeasure:_0x17ad8b,valueQueryInfo:_0x5ef007,measureCount:_0x43d6ac}=_0x333920,_0x3b246d=_0x17ad8b?_0x5ef007['map'](_0x47be3f=>_0x47be3f['id']):[],_0x24e738=_0x32563b===0x0?this['layoutNoneColFields'](_0x333920,_0xfb65a3):this[_0x1e90f0(0x250)](_0x333920,_0xfb65a3,0x0,_0x3b246d),_0x558fde=_0xbcb83e[_0x1e90f0(0x2b3)];if(_0x43d6ac===0x0&&_0x32563b===0x0)_0x558fde[_0x1e90f0(0x377)](0x0);else{if(_0x43d6ac!==0x0&&_0x32563b===0x0&&_0x17ad8b)_0x558fde[_0x1e90f0(0x377)](0x1);else{if(_0x43d6ac!==0x0&&_0x32563b===0x0)_0x558fde[_0x1e90f0(0x377)](0x0);else{let _0x278ba5=_0x32563b===0x0?0x0:0x1,_0x5296f9=_0x17ad8b?_0x32563b+0x1+_0x278ba5:_0x32563b+_0x278ba5;_0x558fde[_0x1e90f0(0x377)](_0x5296f9);}}}_0x558fde[_0x1e90f0(0x423)](this[_0x1e90f0(0x1ee)](_0x24e738)),_0x333920['colMap']=_0x558fde[_0x1e90f0(0x2c3)](_0x17ad8b);}static[_0x20ea74(0x431)](_0x24d32a,_0x4fc979){const _0x13ff38=_0x20ea74;return _0x24d32a[_0x13ff38(0x4c5)]()===_0x4fc979;}static[_0x20ea74(0x1ee)](_0x807d0d){const _0x18c054=_0x20ea74;return _0x807d0d[_0x18c054(0x217)]+_0x807d0d[_0x18c054(0x4d1)]+_0x807d0d[_0x18c054(0x546)];}static['getNodeValue'](_0x376b60,_0x1061be,_0x154150){const _0x1105b0=_0x20ea74;let {queryData:_0x4e4a56,summaryManager:_0x4929fe}=_0x376b60,{valueQueryInfo:_0x26cff6}=_0x4e4a56;return _0x4929fe[_0x1105b0(0x459)](_0x1061be[_0x1105b0(0x4d8)](),_0x26cff6[_0x154150]);}static['doColLeafNode'](_0x466f08,_0x342c87,_0x2cebf0,_0x10f1c1){const _0x4b991e=_0x20ea74;let {view:_0x5dc5b8,isColMultiMeasure:_0x51884f,valueIndex:_0x5cd5c7,measureCount:_0x2ca360,measuresMap:_0x26873c,measureIndexesMap:_0x54e8e9,colDeep:_0x13fea7}=_0x466f08,_0x1e4f5f=_0x5dc5b8[_0x4b991e(0x2b3)],_0x28e938=_0x342c87['getLevel'](),_0x350f74=this[_0x4b991e(0x4c9)](_0x51884f,_0x28e938,_0x5cd5c7),_0x2dc949=this[_0x4b991e(0x536)](_0x466f08,_0x342c87),_0x8b063f=_0x342c87['getFieldsId']();if(_0x350f74){let _0x3e16d3=0x0,_0xb0b2e8=_0x13fea7===0x0?0x0:0x1;for(let _0x17064c of _0x10f1c1){let _0x6a8d17=this['getRowIndexForColHeader'](_0x28e938,_0x5cd5c7,_0x51884f)+_0xb0b2e8;_0x1e4f5f[_0x4b991e(0x55c)](_0x6a8d17,_0x2cebf0+_0x3e16d3,_0x26873c[_0x17064c][_0x4b991e(0x24b)]),_0x1e4f5f[_0x4b991e(0x23d)](_0x2cebf0+_0x3e16d3,{'level':_0x28e938,'paths':_0x342c87[_0x4b991e(0x2bd)](),'valueIndex':_0x51884f?_0x3e16d3:-0x1,'colPathMap':_0x2dc949,'tableFieldId':_0x8b063f}),_0x3e16d3++;}return{'itemSize':0x1*_0x2ca360,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x2dc949};}{let _0x49d32b=_0x51884f?_0x54e8e9[_0x10f1c1[0x0]]:-0x1;return _0x1e4f5f[_0x4b991e(0x23d)](_0x2cebf0,{'level':_0x28e938,'paths':_0x342c87[_0x4b991e(0x2bd)](),'valueIndex':_0x49d32b,'colPathMap':_0x2dc949,'tableFieldId':_0x8b063f}),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':_0x2dc949};}}static['buildColPathMap'](_0x20580c,_0x17d1fa){const _0x5e57ec=_0x20ea74;let _0x430c41=[],_0x1e72a1={};return _0x1e72a1['']=_0x17d1fa[_0x5e57ec(0x4d8)](),_0x17d1fa[_0x5e57ec(0x21a)]()||_0x17d1fa[_0x5e57ec(0x407)](_0xbd4ba0=>{const _0x44151f=_0x5e57ec;this[_0x44151f(0x4ca)](_0x20580c,_0xbd4ba0,_0x430c41['concat']([_0xbd4ba0[_0x44151f(0x3cc)]]),_0x1e72a1);}),_0x1e72a1;}static[_0x20ea74(0x4ca)](_0x273e44,_0x1961d6,_0x280b61,_0x12b85a){const _0x55b93d=_0x20ea74;let {summaryManager:_0x18a04c}=_0x273e44,_0x35ed8f=_0x18a04c['getPathKeyWithFiledId'](_0x280b61,_0x18a04c[_0x55b93d(0x1e5)]);_0x12b85a[_0x35ed8f]=_0x1961d6[_0x55b93d(0x4d8)](),_0x1961d6['isLeaf']||_0x1961d6[_0x55b93d(0x407)](_0x1b82c1=>{const _0x506d40=_0x55b93d;let _0x2fd0f5=_0x280b61[_0x506d40(0x2b2)]([_0x1b82c1[_0x506d40(0x3cc)]]);this[_0x506d40(0x4ca)](_0x273e44,_0x1b82c1,_0x2fd0f5,_0x12b85a);});}static[_0x20ea74(0x33a)](_0x4f8244,_0x263e81,_0x1dde96){const _0x3a99c2=_0x20ea74;if(this['isLeafNode'](_0x263e81,_0x4f8244['colDeep'])){let _0xd8f34d=this[_0x3a99c2(0x536)](_0x4f8244,_0x263e81);_0x1dde96[_0x3a99c2(0x3b3)](_0xd8f34d);}else _0x263e81['iterate'](_0x3d7756=>{const _0x1097d0=_0x3a99c2;this[_0x1097d0(0x33a)](_0x4f8244,_0x3d7756,_0x1dde96);});}static['doColBranchNode'](_0x21cd1c,_0x25499f,_0x4e7bbb,_0x2f9dcd){const _0x52a69b=_0x20ea74;let {isColMultiMeasure:_0x3995c6,valueIndex:_0x2f1c48,view:_0x594f82,measuresMap:_0x14dd04,summaryManager:_0x46299b}=_0x21cd1c,_0x384f77=_0x25499f[_0x52a69b(0x4c5)](),_0x393d3c=_0x4e7bbb,_0x557825={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':{}},_0x1633f7=[],_0x5ddb71=this[_0x52a69b(0x4c9)](_0x3995c6,_0x25499f[_0x52a69b(0x4c5)](),_0x2f1c48),_0x3602bd=_0x46299b['getPathKeyWithFiledId'](_0x25499f['getPaths'](),_0x46299b[_0x52a69b(0x362)]);if(_0x5ddb71){let _0x3b1f4d=0x0;for(let _0x34990e of _0x2f9dcd){let _0x3b250a=this[_0x52a69b(0x24c)](_0x384f77,_0x2f1c48,_0x3995c6);_0x594f82[_0x52a69b(0x2b3)][_0x52a69b(0x55c)](_0x3b250a+0x1,_0x393d3c,_0x14dd04[_0x34990e][_0x52a69b(0x24b)]),_0x25499f[_0x52a69b(0x407)](_0x2f3031=>{const _0x15083a=_0x52a69b;let _0x3c07cf=this['layoutColNode'](_0x21cd1c,_0x2f3031,_0x393d3c,[_0x34990e]),{itemSize:_0x2eafda,topTotalSize:_0x40bfb2,bottomTotalSize:_0x2f7b75}=_0x3c07cf;_0x557825['itemSize']+=_0x2eafda,_0x557825[_0x15083a(0x4d1)]+=_0x40bfb2,_0x557825['bottomTotalSize']+=_0x2f7b75,_0x393d3c+=this[_0x15083a(0x1ee)](_0x3c07cf),_0x3b1f4d===0x0&&_0x1633f7[_0x15083a(0x3b3)](_0x3c07cf[_0x15083a(0x3da)]);}),_0x3b1f4d++;}_0x557825[_0x52a69b(0x3da)]=_0x46299b[_0x52a69b(0x208)](_0x1633f7,_0x3602bd),_0x393d3c++;}else _0x25499f[_0x52a69b(0x407)](_0x2a576d=>{const _0x41c289=_0x52a69b;let _0x13aa1c=this[_0x41c289(0x250)](_0x21cd1c,_0x2a576d,_0x393d3c,_0x2f9dcd),{itemSize:_0x49ada1,topTotalSize:_0x557a75,bottomTotalSize:_0x2ec410}=_0x13aa1c;_0x557825['itemSize']+=_0x49ada1,_0x557825[_0x41c289(0x4d1)]+=_0x557a75,_0x557825[_0x41c289(0x546)]+=_0x2ec410,_0x393d3c+=this[_0x41c289(0x1ee)](_0x13aa1c),_0x1633f7['push'](_0x13aa1c['colPathMap']);}),_0x557825[_0x52a69b(0x3da)]=_0x46299b[_0x52a69b(0x208)](_0x1633f7,_0x3602bd);return _0x557825;}static['shouldMultipleTotal'](_0x5d590f,_0x40e379,_0x5746d2){return _0x5d590f&&_0x40e379<=_0x5746d2;}static[_0x20ea74(0x4c9)](_0x10ec83,_0x386b49,_0x2d755c){return _0x10ec83&&_0x386b49===_0x2d755c;}static[_0x20ea74(0x24c)](_0x3729ee,_0x50c854,_0x8dbdb6){return _0x8dbdb6?_0x3729ee<=_0x50c854?_0x3729ee:_0x3729ee+0x1:_0x3729ee;}static[_0x20ea74(0x3cd)](_0x355e72,_0x18adef,_0x33048c,_0x18e33e,_0x16b5f8,_0x6a1091){const _0x5cc5a9=_0x20ea74;_0x355e72['setValue'](_0x18adef,_0x33048c,_0x18e33e),_0x16b5f8&&_0x355e72[_0x5cc5a9(0x3b6)](_0x18adef,_0x33048c),_0x6a1091&&_0x355e72[_0x5cc5a9(0x349)](_0x18adef,_0x33048c);}static['layoutColNode'](_0x3087db,_0x3e4e97,_0x4604d0,_0x458598){const _0x524421=_0x20ea74;let {view:_0x146c75,colDeep:_0xfc4478,measureCount:_0x4576de,isColMultiMeasure:_0x37555a,valueIndex:_0x4fdc9e,summaryManager:_0x54252f}=_0x3087db,_0x9f7b67=_0x146c75[_0x524421(0x2b3)],_0x5446a2=_0x3e4e97['displayName'],_0x3bec90=_0x3e4e97[_0x524421(0x3a3)]===0x5,_0x5e8994=_0x3e4e97[_0x524421(0x3a3)]===0x6,_0x4eca84=_0x3e4e97[_0x524421(0x3a3)]===0x4||_0x3e4e97['type']===0x2?Number(_0x5446a2):_0x5446a2,_0x3f0d07=_0x3e4e97[_0x524421(0x4c5)](),_0x34f166=this['getRowIndexForColHeader'](_0x3f0d07,_0x4fdc9e,_0x37555a),_0x29abe7=this[_0x524421(0x37c)](_0x37555a,_0x3f0d07,_0x4fdc9e),_0x5c130c=_0x3e4e97[_0x524421(0x502)](),_0x46b2d3=this[_0x524421(0x431)](_0x3e4e97,_0xfc4478);if(_0x3f0d07!==0x0&&(this[_0x524421(0x3cd)](_0x9f7b67,_0x34f166,_0x4604d0,_0x4eca84,_0x3bec90,_0x5e8994),_0x46b2d3||_0x9f7b67[_0x524421(0x53f)](_0x34f166,_0x4604d0,_0x5c130c?0xb:0xc)),_0x5c130c){if(_0x46b2d3)return{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'colPathMap':this[_0x524421(0x536)](_0x3087db,_0x3e4e97)};let _0x3792d0=[];this[_0x524421(0x33a)](_0x3087db,_0x3e4e97,_0x3792d0);let _0x1abaf9=_0x54252f[_0x524421(0x212)](_0x3e4e97[_0x524421(0x2bd)](),_0x54252f[_0x524421(0x362)]),_0x1ac80b=_0x54252f[_0x524421(0x208)](_0x3792d0,_0x1abaf9),_0x4664db=_0x3f0d07!==0x0||_0x3087db['showColGrandTotal'];return _0x4664db&&this[_0x524421(0x30d)](_0x3087db,_0x4604d0,_0x3e4e97,_0x458598,_0x1ac80b),{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':_0x4664db?_0x29abe7?_0x4576de:0x1:0x0,'colPathMap':_0x1ac80b};}if(_0x46b2d3)return this[_0x524421(0x540)](_0x3087db,_0x3e4e97,_0x4604d0,_0x458598);{let _0x5059b4=this[_0x524421(0x328)](_0x3087db,_0x3e4e97,_0x4604d0,_0x458598),_0x473e52=this['getRealSize'](_0x5059b4);if(_0x3087db[_0x524421(0x56a)]&&_0x3f0d07!==0x0){for(let _0x1ad69d=_0x4604d0+0x1;_0x1ad69d<_0x4604d0+_0x473e52;_0x1ad69d++)this[_0x524421(0x3cd)](_0x9f7b67,_0x34f166,_0x1ad69d,_0x4eca84,_0x3bec90,_0x5e8994);}return(_0x3f0d07===0x0?_0x3087db[_0x524421(0x2ef)]===0x0||_0x3087db[_0x524421(0x2ba)]:_0x3087db[_0x524421(0x458)])&&(this[_0x524421(0x30d)](_0x3087db,_0x4604d0+_0x473e52,_0x3e4e97,_0x458598,_0x5059b4[_0x524421(0x3da)]),_0x29abe7?_0x5059b4[_0x524421(0x546)]+=_0x4576de:_0x5059b4[_0x524421(0x546)]++),_0x5059b4;}}static['getMeasureIndex'](_0x36b5e3,_0x5d5346,_0x549db9){return _0x36b5e3?_0x549db9[_0x5d5346[0x0]]:-0x1;}static['updateColumnSubtotal'](_0x256a77,_0x331c13,_0x13d502,_0x12a7bf,_0x2f6974){const _0x5565ce=_0x20ea74;let {view:_0x2048b7,isColMultiMeasure:_0x26ad42,valueIndex:_0x167311,measuresMap:_0x3b8f04,measureIndexesMap:_0x34258a,colDeep:_0x5de96e,valueQueryInfo:_0x3a738f}=_0x256a77,_0x4448c3=_0x2048b7[_0x5565ce(0x2b3)],_0x1e5336=_0x13d502['displayName'],_0x71be76=_0x13d502[_0x5565ce(0x4c5)](),_0x11d505=this[_0x5565ce(0x37c)](_0x26ad42,_0x71be76,_0x167311);if(_0x71be76===0x0){let _0x13d69a=_0x5de96e===0x0?0x0:0x1;if(_0x11d505){let _0x4ca97b=0x0;for(let _0x56a885 of _0x12a7bf){let {displayName:_0x2cecac}=_0x3b8f04[_0x56a885];_0x4448c3[_0x5565ce(0x55c)](_0x13d69a,_0x4ca97b+_0x331c13,''+_0x2cecac),_0x4448c3[_0x5565ce(0x53f)](_0x13d69a,_0x4ca97b+_0x331c13,0xf),_0x4448c3['setInfo'](_0x4ca97b+_0x331c13,{'level':_0x71be76,'paths':_0x13d502['getPaths'](),'valueIndex':_0x4ca97b,'isBottomTotal':!0x0,'colPathMap':_0x2f6974,'tableFieldId':''}),_0x4ca97b++;}}else{_0x5de96e===0x0&&_0x3a738f['length']===0x1?_0x4448c3['setValue'](_0x13d69a,_0x331c13,_0x3a738f[0x0][_0x5565ce(0x24b)]):(_0x4448c3[_0x5565ce(0x55c)](_0x13d69a,_0x331c13,''),_0x4448c3['setStyle'](_0x13d69a,_0x331c13,0xe));let _0x3b6e04=this[_0x5565ce(0x214)](_0x26ad42,_0x12a7bf,_0x34258a);_0x4448c3[_0x5565ce(0x23d)](_0x331c13,{'level':_0x71be76,'paths':_0x13d502[_0x5565ce(0x2bd)](),'valueIndex':_0x3b6e04,'isBottomTotal':!0x0,'colPathMap':_0x2f6974,'tableFieldId':''});}}else{let _0x3414c5=this[_0x5565ce(0x24c)](_0x71be76,_0x167311,_0x26ad42),_0x430eca=_0x13d502[_0x5565ce(0x502)](),_0x4684c8=_0x13d502[_0x5565ce(0x361)](),_0x54fb15=_0x13d502[_0x5565ce(0x3a3)]===0x5,_0x29c299=_0x13d502[_0x5565ce(0x3a3)]===0x6;if(_0x430eca&&_0x3414c5++,_0x11d505){let _0x975d03=0x0,_0xf81d11=_0x71be76;for(let _0xf1ad3f of _0x12a7bf){let {displayName:_0x13d6f3}=_0x3b8f04[_0xf1ad3f],_0x3fd8e9=_0x430eca?_0x13d6f3:{'prefix':_0x13d502[_0x5565ce(0x24b)],'value':_0x13d6f3};_0x4448c3[_0x5565ce(0x53f)](_0xf81d11,_0x331c13+_0x975d03,0xd),this[_0x5565ce(0x3cd)](_0x4448c3,_0xf81d11,_0x331c13+_0x975d03,_0x3fd8e9,!_0x430eca&&_0x54fb15,!_0x430eca&&_0x29c299),_0x4448c3[_0x5565ce(0x23d)](_0x331c13+_0x975d03,{'level':_0x71be76,'paths':_0x13d502[_0x5565ce(0x2bd)](),'valueIndex':_0x975d03,'isBottomTotal':!0x0,'colPathMap':_0x2f6974,'tableFieldId':_0x4684c8}),_0x975d03++;}}else{_0x430eca||(this[_0x5565ce(0x3cd)](_0x4448c3,_0x3414c5,_0x331c13,_0x1e5336,_0x54fb15,_0x29c299&&_0x13d502[_0x5565ce(0x3cc)]===_0x209170[_0x5565ce(0x4ec)]),_0x4448c3[_0x5565ce(0x53f)](_0x3414c5,_0x331c13,0xd));let _0x22bfee=this[_0x5565ce(0x214)](_0x26ad42,_0x12a7bf,_0x34258a);_0x4448c3[_0x5565ce(0x23d)](_0x331c13,{'level':_0x71be76,'paths':_0x13d502[_0x5565ce(0x2bd)](),'valueIndex':_0x22bfee,'isBottomTotal':!0x0,'colPathMap':_0x2f6974,'tableFieldId':_0x4684c8});}}}},_0x3ab396=class extends _0x3f74a4{static['layout'](_0x4075e2,_0x30f250,_0x1b68ec){const _0x15289c=_0x20ea74;let _0x505e22=this[_0x15289c(0x3d2)](_0x4075e2,_0x30f250,_0x1b68ec);return this[_0x15289c(0x36c)](_0x505e22),this['layoutCol'](_0x505e22),this['layoutRowFields'](_0x505e22),this[_0x15289c(0x55e)](_0x505e22),this[_0x15289c(0x2ea)](_0x505e22),this['layoutCorner'](_0x505e22),_0x505e22['view'];}static[_0x20ea74(0x55e)](_0x36256c){const _0x51cc61=_0x20ea74;if(_0x36256c[_0x51cc61(0x2ef)]!==0x0)return;let _0x1e264c=_0x36256c[_0x51cc61(0x1e8)][_0x51cc61(0x2b3)];(_0x36256c[_0x51cc61(0x3b7)]!==0x0||_0x36256c[_0x51cc61(0x495)]===0x1||_0x36256c[_0x51cc61(0x397)])&&(_0x36256c[_0x51cc61(0x495)]===0x1&&(_0x1e264c[_0x51cc61(0x55c)](0x0,0x0,_0x36256c[_0x51cc61(0x378)][0x0]['displayName']),_0x1e264c[_0x51cc61(0x23d)](0x0,this['createSingleValueHeaderInfo'](_0x36256c,_0x1e264c[_0x51cc61(0x577)][0x0]))),_0x1e264c['setRowCount'](0x1));}static['createSingleValueHeaderInfo'](_0x27721f,_0x3db7c6){const _0x168a65=_0x20ea74;let _0x2c1e59=_0x27721f[_0x168a65(0x378)][0x0];return{..._0x3db7c6,'tableFieldId':_0x2c1e59['id'],'dataFieldId':_0x2c1e59['dataFieldId'],'isValue':!0x0};}static[_0x20ea74(0x268)](_0x181cd8){const _0x1621ee=_0x20ea74;let {rowDeep:_0x3b8797,colDeep:_0x5b4f44,measureCount:_0xf55d79,isRowMultiMeasure:_0xf808a3,isColMultiMeasure:_0x34f8ed}=_0x181cd8,_0x4c018a=_0x181cd8[_0x1621ee(0x1e8)][_0x1621ee(0x2b3)][_0x1621ee(0x248)]();_0x4c018a===0x0&&_0x3b8797!==0x0&&(_0x4c018a=0x1);let _0x573811=_0x181cd8[_0x1621ee(0x1e8)]['rowView'][_0x1621ee(0x428)]();return _0x3b8797===0x0&&(_0xf55d79===0x0?_0x573811=0x0:_0xf55d79===0x1?(_0x573811=_0x5b4f44===0x0?0x0:0x1,_0x4c018a=_0x5b4f44===0x0?0x1:_0x4c018a):_0xf808a3?_0x573811=0x1:_0x34f8ed&&(_0x573811=0x0)),{'rowCount':_0x573811,'colCount':_0x4c018a};}static[_0x20ea74(0x1f9)](_0x57b718){const _0x3f05ca=_0x20ea74;let {rowDeep:_0x1646d3,colDeep:_0x87ca22,view:_0x286158,measureCount:_0x4e5538,isRowMultiMeasure:_0x19bc86,valueIndex:_0x5e5982}=_0x57b718,_0x5d6074=_0x57b718['queryData'][_0x3f05ca(0x252)],_0x157ea4=_0x57b718[_0x3f05ca(0x25a)][_0x3f05ca(0x378)],_0x62a396=_0x286158[_0x3f05ca(0x44f)],_0xed2217=_0x286158[_0x3f05ca(0x3d5)],{rowCount:_0x257165,colCount:_0x2a2cdc}=this['getCornerSize'](_0x57b718);_0x62a396['setRowCount'](_0x2a2cdc),_0x62a396['setColCount'](_0x257165),_0x4e5538===0x1&&_0x87ca22>0x0&&_0x1646d3>0x0&&_0x62a396[_0x3f05ca(0x55c)](0x0,0x0,_0x157ea4[0x0][_0x3f05ca(0x24b)]);let _0x30f5a1=0x0,_0x3bf6d4=!0x1,_0x9f7600=_0x2a2cdc-0x1;for(let _0x53e169=0x0;_0x53e169<_0x1646d3;_0x53e169++){let {displayName:_0xd3cb59,filterInfo:_0x10a3a9,sortInfo:_0x1fa933,dataFieldId:_0x233b4f,id:_0x246596}=_0x5d6074[_0x53e169];_0x19bc86&&_0x53e169===_0x5e5982&&(_0x62a396[_0x3f05ca(0x55c)](_0x9f7600,_0x30f5a1,_0x3f05ca(0x48f)),_0x3bf6d4=!0x0,_0x62a396[_0x3f05ca(0x23d)](_0x30f5a1,{'paths':[],'level':-0x1,'tableFieldId':'','dataFieldId':'','valueIndex':-0x1,'isValue':!0x0}),_0xed2217[_0x3f05ca(0x4fa)](_0x30f5a1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}),_0x30f5a1++),_0x62a396['setValue'](_0x9f7600,_0x30f5a1,_0xd3cb59),_0xed2217[_0x3f05ca(0x4fa)](_0x30f5a1,{'isValue':!0x1,'level':_0x53e169,'tableFieldId':_0x246596,'dataFieldId':_0x233b4f}),_0x62a396['setStyle'](_0x9f7600,_0x30f5a1,_0x5666c0(_0x10a3a9,_0x1fa933,_0x57b718[_0x3f05ca(0x1e4)][_0x246596])),_0x62a396['setInfo'](_0x30f5a1,{'paths':[],'level':_0x53e169,'tableFieldId':_0x246596,'dataFieldId':_0x233b4f,'valueIndex':-0x1}),_0x30f5a1++;}!_0x3bf6d4&&_0x19bc86&&(_0x62a396[_0x3f05ca(0x55c)](_0x9f7600,_0x30f5a1,_0x3f05ca(0x48f)),_0xed2217['addHeaderMapItem'](_0x30f5a1,{'isValue':!0x0,'level':-0x1,'tableFieldId':'','dataFieldId':''}));}static[_0x20ea74(0x29b)](_0x49d188){const _0x15f349=_0x20ea74;let {rowNodeTree:_0x1e1252,view:_0x5543fe,rowDeep:_0x33b43d,colDeep:_0x15b825,isRowMultiMeasure:_0x272517,isColMultiMeasure:_0x15b47a,valueQueryInfo:_0x426b18,measureCount:_0x45f7df}=_0x49d188,_0xb407e4=_0x272517?_0x426b18['map'](_0x196d4b=>_0x196d4b['id']):[],_0x1bbeb3=this['layoutRowNode'](_0x49d188,_0x1e1252,0x0,_0xb407e4),_0x562880=_0x5543fe['rowView'];_0x562880[_0x15f349(0x377)](this[_0x15f349(0x1ee)](_0x1bbeb3)),_0x33b43d===0x0?_0x45f7df===0x0||_0x15b47a?_0x562880[_0x15f349(0x423)](0x0):_0x272517?_0x562880[_0x15f349(0x423)](0x1):_0x562880['setColCount'](_0x15b825===0x0?0x0:0x1):_0x562880[_0x15f349(0x423)](_0x272517?_0x33b43d+0x1:_0x33b43d);}static[_0x20ea74(0x315)](_0x56b309,_0x1924c6,_0x728d20,_0x29cb71){const _0x406e16=_0x20ea74;let {view:_0x1b0d78,isRowMultiMeasure:_0x4d44f3,valueIndex:_0x35a4fa,measureCount:_0x4915ab,measuresMap:_0x5eee81,measureIndexesMap:_0x46f44a}=_0x56b309,_0xed9721=_0x1b0d78['rowView'],_0x1aa068=_0x1924c6[_0x406e16(0x4c5)](),_0x2339fc=_0x1924c6[_0x406e16(0x3a3)]===0x5,_0x5b8b3f=_0x1924c6[_0x406e16(0x3a3)]===0x6,_0x3c7186=this[_0x406e16(0x4c9)](_0x4d44f3,_0x1aa068,_0x35a4fa),_0x3459c2=_0x1924c6[_0x406e16(0x361)]();if(_0x3c7186){let _0x4d4539=0x0;for(let _0x3fbde6 of _0x29cb71){let _0x56fd64=this[_0x406e16(0x20e)](_0x1aa068,_0x35a4fa,_0x4d44f3)+0x1;_0xed9721[_0x406e16(0x55c)](_0x728d20+_0x4d4539,_0x56fd64,_0x5eee81[_0x3fbde6][_0x406e16(0x24b)]),_0x2339fc&&_0x35a4fa!==_0x1924c6['getLevel']()&&_0xed9721[_0x406e16(0x3b6)](_0x728d20+_0x4d4539,_0x56fd64),_0x5b8b3f&&_0x35a4fa!==_0x1924c6[_0x406e16(0x4c5)]()&&_0xed9721[_0x406e16(0x349)](_0x728d20+_0x4d4539,_0x56fd64);let _0x1adff6=_0x1924c6[_0x406e16(0x2bd)]();_0xed9721[_0x406e16(0x23d)](_0x728d20+_0x4d4539,{'paths':_0x1adff6,'valueIndex':_0x4d44f3?_0x4d4539:-0x1,'level':_0x1aa068,'tableFieldId':_0x3459c2}),this[_0x406e16(0x510)](_0x56b309,_0x1924c6,_0x728d20+_0x4d4539),this['startContent'](_0x56b309,_0x1924c6,_0x728d20+_0x4d4539,_0x4d4539),_0x4d4539++;}return{'itemSize':0x1*_0x4915ab,'topTotalSize':0x0,'bottomTotalSize':0x0};}{let _0x325f8f=_0x4d44f3?_0x46f44a[_0x29cb71[0x0]]:-0x1,_0x2462e5=_0x1924c6[_0x406e16(0x2bd)]();return _0xed9721[_0x406e16(0x23d)](_0x728d20,{'level':_0x1aa068,'paths':_0x2462e5,'valueIndex':_0x325f8f,'tableFieldId':_0x3459c2}),this[_0x406e16(0x510)](_0x56b309,_0x1924c6,_0x728d20),_0x1aa068===0x0&&_0x4915ab===0x0?{'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x325f8f}:(this[_0x406e16(0x469)](_0x56b309,_0x1924c6,_0x728d20,_0x325f8f),{'itemSize':0x1,'topTotalSize':0x0,'bottomTotalSize':0x0,'valueIndex':_0x325f8f});}}static[_0x20ea74(0x469)](_0x2f9691,_0x261227,_0x64fe57,_0x38e4f6){const _0x51da13=_0x20ea74;let {measureCount:_0x5e4bc5}=_0x2f9691;_0x5e4bc5<=0x0||(_0x261227[_0x51da13(0x407)](_0x45fb09=>{const _0x15c678=_0x51da13;this[_0x15c678(0x519)](_0x2f9691,_0x45fb09,_0x64fe57,_0x38e4f6,[_0x45fb09[_0x15c678(0x3cc)]]);}),this[_0x51da13(0x2b8)](_0x2f9691,_0x261227,_0x64fe57,[],_0x38e4f6));}static[_0x20ea74(0x519)](_0x235486,_0x4427f8,_0x39afe0,_0x3f4af3,_0x5084d2){const _0x4b7d12=_0x20ea74;let _0xd34633=_0x4427f8['getIsLeaf']();this[_0x4b7d12(0x2b8)](_0x235486,_0x4427f8,_0x39afe0,_0x5084d2,_0x3f4af3),_0xd34633||(this['layoutValueNodeSubtotal'](_0x235486,_0x39afe0),_0x4427f8[_0x4b7d12(0x407)](_0x1d60c9=>{const _0x381780=_0x4b7d12;let _0x169d6d=_0x5084d2['concat'](_0x1d60c9[_0x381780(0x3cc)]);this[_0x381780(0x519)](_0x235486,_0x1d60c9,_0x39afe0,_0x3f4af3,_0x169d6d);}));}static[_0x20ea74(0x3bc)](_0x511545,_0x52dc44){const _0x418ce0=_0x20ea74;let {view:_0x2f106a,summaryManager:_0x23a798,valueQueryInfo:_0x186802,rowDeep:_0x5aa95e,measureCount:_0x1ca62c}=_0x511545,_0x1a4908=_0x2f106a[_0x418ce0(0x2aa)],_0x293de3=_0x2f106a[_0x418ce0(0x2b3)],_0xf70c7e=_0x2f106a[_0x418ce0(0x3d5)][_0x418ce0(0x577)][_0x52dc44],_0x16417c=_0xf70c7e[_0x418ce0(0x277)];if(!(_0xf70c7e[_0x418ce0(0x2cd)]===_0x5aa95e||_0x1ca62c<=0x0))for(let _0x51da0c=0x0;_0x51da0c<_0x293de3[_0x418ce0(0x577)][_0x418ce0(0x41f)];_0x51da0c++){let _0x25fb73=_0x293de3[_0x418ce0(0x577)][_0x51da0c],{colPathMap:_0x11697d}=_0x25fb73,_0x1b9cfc=_0x23a798[_0x418ce0(0x212)](_0x16417c,_0x23a798['rowTableIdList']),_0x153f21=_0x11697d==null?void 0x0:_0x11697d[_0x1b9cfc],_0x10b437=this[_0x418ce0(0x440)](_0x511545,_0x186802,_0xf70c7e,_0x25fb73);if(_0x153f21){let _0x290f7d=_0x23a798['getCellValue'](_0x153f21,_0x10b437);_0x290f7d!==void 0x0&&_0x1a4908[_0x418ce0(0x55c)](_0x52dc44,_0x51da0c,_0x290f7d);}}}static['getMeasureInfoByIndex'](_0x5592dd,_0x51f327,_0x38ca69,_0x18d8bf){const _0x2c8f39=_0x20ea74;let {isColMultiMeasure:_0x486bc0,isRowMultiMeasure:_0x237e52}=_0x5592dd;return _0x486bc0?_0x51f327[_0x18d8bf['valueIndex']]:_0x237e52?_0x51f327[_0x38ca69[_0x2c8f39(0x529)]]:_0x51f327[0x0];}static['layoutValueLeafNode'](_0x1135d8,_0x3b66b1,_0x210f4d,_0x1bbde6,_0x14f43b){const _0x5cd67f=_0x20ea74;let {view:_0x3e99d2,colMap:_0x47f959,isColMultiMeasure:_0x3aa7f5,measureCount:_0x35694f}=_0x1135d8,_0x26011f=_0x3e99d2[_0x5cd67f(0x2aa)],_0x12f14a=[];if(_0x14f43b===-0x1){if(_0x3aa7f5){for(let _0x4f49d1=0x0;_0x4f49d1<_0x35694f;_0x4f49d1++)_0x12f14a[_0x5cd67f(0x3b3)](_0x4f49d1);}else _0x35694f>0x0&&_0x12f14a['push'](0x0);}else _0x12f14a[_0x5cd67f(0x3b3)](_0x14f43b);for(let _0x5cb11c of _0x12f14a){let _0x1fcc3b=_0x47f959[_0x4385b1(_0x1bbde6,_0x5cb11c,_0x3aa7f5)],_0x4dd0dd=this[_0x5cd67f(0x20d)](_0x1135d8,_0x3b66b1,_0x5cb11c);_0x4dd0dd!==void 0x0&&_0x26011f['setValue'](_0x210f4d,_0x1fcc3b,_0x4dd0dd);}}static[_0x20ea74(0x20e)](_0x574418,_0x1f40ad,_0x1c6207){return _0x1c6207?_0x574418<=_0x1f40ad?_0x574418-0x1:_0x574418:_0x574418-0x1;}static['repeatRowLabelsForNode'](_0x5bcbb7,_0x5e7db4,_0x4a98c6){const _0x2cf325=_0x20ea74;if(!_0x5bcbb7[_0x2cf325(0x257)])return;let _0xc0e52e=_0x5bcbb7[_0x2cf325(0x1e8)][_0x2cf325(0x3d5)],_0x286af3=_0x5e7db4['displayPaths'],_0x380845=Math[_0x2cf325(0x52f)](_0x5e7db4[_0x2cf325(0x4c5)](),_0x5bcbb7['rowDeep']);for(let _0x34db97=0x1;_0x34db97<=_0x380845;_0x34db97++){let _0x7438c1=this[_0x2cf325(0x20e)](_0x34db97,_0x5bcbb7[_0x2cf325(0x529)],_0x5bcbb7['isRowMultiMeasure']);_0x7438c1<0x0||_0xc0e52e[_0x2cf325(0x55c)](_0x4a98c6,_0x7438c1,_0x286af3[_0x34db97-0x1]);}}static[_0x20ea74(0x516)](_0x2a157a,_0x2298e2,_0x1d93da,_0x670e7f){const _0x5f458c=_0x20ea74;let {isRowMultiMeasure:_0x59718b,valueIndex:_0x396ddf,view:_0x3715d2,measuresMap:_0x46c72b}=_0x2a157a,_0x38d60c=_0x2298e2[_0x5f458c(0x4c5)](),_0x5b20ea=_0x1d93da,_0x3caf68={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0},_0x5bc2e9=this[_0x5f458c(0x4c9)](_0x59718b,_0x2298e2['getLevel'](),_0x396ddf),_0x88863c=_0x2298e2[_0x5f458c(0x3a3)]===0x5,_0x38bd9d=_0x2298e2[_0x5f458c(0x3a3)]===0x6;if(_0x5bc2e9){for(let _0x51efc6 of _0x670e7f){let _0x13e937=this[_0x5f458c(0x20e)](_0x38d60c,_0x396ddf,_0x59718b),_0x559ab5=_0x3715d2[_0x5f458c(0x3d5)];_0x559ab5[_0x5f458c(0x55c)](_0x5b20ea,_0x13e937+0x1,_0x46c72b[_0x51efc6][_0x5f458c(0x24b)]),_0x88863c&&_0x559ab5['setBlank'](_0x5b20ea,_0x13e937+0x1),_0x38bd9d&&_0x559ab5[_0x5f458c(0x349)](_0x5b20ea,_0x13e937+0x1),_0x2298e2[_0x5f458c(0x407)](_0x1e6ce9=>{const _0x5600c3=_0x5f458c;let _0x1457a7=this[_0x5600c3(0x339)](_0x2a157a,_0x1e6ce9,_0x5b20ea,[_0x51efc6]),{itemSize:_0x42085a,topTotalSize:_0x2e0377,bottomTotalSize:_0x3cbf4c}=_0x1457a7;_0x3caf68[_0x5600c3(0x217)]+=_0x42085a,_0x3caf68['topTotalSize']+=_0x2e0377,_0x3caf68[_0x5600c3(0x546)]+=_0x3cbf4c,_0x5b20ea+=this[_0x5600c3(0x1ee)](_0x1457a7);});}_0x5b20ea++;}else _0x2298e2[_0x5f458c(0x407)](_0x5e5dd9=>{const _0x2a5527=_0x5f458c;let _0x2180bb=this[_0x2a5527(0x339)](_0x2a157a,_0x5e5dd9,_0x5b20ea,_0x670e7f),{itemSize:_0x1707e1,topTotalSize:_0x4e4a35,bottomTotalSize:_0x3362b5}=_0x2180bb;_0x3caf68[_0x2a5527(0x217)]+=_0x1707e1,_0x3caf68[_0x2a5527(0x4d1)]+=_0x4e4a35,_0x3caf68[_0x2a5527(0x546)]+=_0x3362b5,_0x5b20ea+=this['getRealSize'](_0x2180bb);});return _0x3caf68;}static[_0x20ea74(0x339)](_0x583dad,_0x39c85e,_0x3f783b,_0x39cf36){const _0x1e2382=_0x20ea74;let {view:_0x44793c,rowDeep:_0x961cc6,isRowMultiMeasure:_0x57364c,valueIndex:_0x4f9fc0,measureCount:_0x5180c5,colDeep:_0xeed203,valueQueryInfo:_0x42e3fe}=_0x583dad,_0x5b4a16=_0x44793c[_0x1e2382(0x3d5)],_0x3dafc8=_0x39c85e['displayName'],_0x5d713a=_0x39c85e[_0x1e2382(0x4c5)](),_0x3df90c=this[_0x1e2382(0x20e)](_0x5d713a,_0x4f9fc0,_0x57364c),_0x33ad0f=_0x39c85e[_0x1e2382(0x502)](),_0x43c3c3=this['isLeafNode'](_0x39c85e,_0x961cc6),_0x501bd6=_0x39c85e['type']===0x5,_0x5a2d80=_0x39c85e[_0x1e2382(0x3a3)]===0x6,_0x491984=_0x39c85e['type']===0x4||_0x39c85e[_0x1e2382(0x3a3)]===0x2,_0x472953=_0x5d713a===0x0;if(!_0x472953){let _0x21fff1=_0x491984?Number(_0x3dafc8):_0x3dafc8;_0x5b4a16[_0x1e2382(0x55c)](_0x3f783b,_0x3df90c,_0x21fff1),_0x501bd6&&_0x5b4a16[_0x1e2382(0x3b6)](_0x3f783b,_0x3df90c),_0x5a2d80&&_0x5b4a16[_0x1e2382(0x349)](_0x3f783b,_0x3df90c),_0x43c3c3||_0x5b4a16[_0x1e2382(0x53f)](_0x3f783b,_0x3df90c,_0x33ad0f?0xb:0xc);}if(_0x43c3c3){let _0x1f2a50=_0x472953&&!_0x57364c&&_0x961cc6===0x0&&_0xeed203!==0x0&&_0x42e3fe[_0x1e2382(0x41f)]===0x1;_0x472953&&!_0x57364c&&_0x5180c5>0x0&&(_0x961cc6===0x0?_0xeed203!==0x0&&_0x5b4a16[_0x1e2382(0x55c)](_0x3f783b,0x0,_0x42e3fe[0x0]['displayName']):_0xeed203!==0x0&&_0x42e3fe[_0x1e2382(0x41f)]===0x1?_0x5b4a16['setValue'](_0x3f783b,0x0,_0x42e3fe[0x0]['displayName']):(_0x5b4a16[_0x1e2382(0x55c)](_0x3f783b,0x0,''),_0x5b4a16['setStyle'](_0x3f783b,0x0,0xe)));let _0x4c5ad2=this[_0x1e2382(0x315)](_0x583dad,_0x39c85e,_0x3f783b,_0x39cf36);return _0x1f2a50&&_0x5b4a16[_0x1e2382(0x23d)](_0x3f783b,this['createSingleValueHeaderInfo'](_0x583dad,_0x5b4a16[_0x1e2382(0x577)][_0x3f783b])),_0x4c5ad2;}{let _0x245b80=_0x3f783b,_0x4583ea={'itemSize':0x0,'topTotalSize':0x0,'bottomTotalSize':0x0};_0x33ad0f||(_0x4583ea=this[_0x1e2382(0x516)](_0x583dad,_0x39c85e,_0x3f783b,_0x39cf36),_0x245b80+=this[_0x1e2382(0x1ee)](_0x4583ea));let _0x1411f5=this[_0x1e2382(0x37c)](_0x57364c,_0x5d713a,_0x4f9fc0);return(_0x472953?_0x583dad[_0x1e2382(0x3b7)]===0x0||_0x583dad[_0x1e2382(0x291)]:_0x583dad[_0x1e2382(0x4e9)]||_0x33ad0f)&&(this['updateRowSubtotal'](_0x583dad,_0x245b80,_0x39c85e,_0x39cf36),_0x1411f5?_0x4583ea[_0x1e2382(0x546)]+=_0x5180c5:_0x4583ea[_0x1e2382(0x546)]++),_0x4583ea;}}static[_0x20ea74(0x3f7)](_0x398428,_0x155462,_0x3dccaf,_0x26e57e){const _0x22fbdd=_0x20ea74;let {view:_0xe83881,isRowMultiMeasure:_0x50b18e,valueIndex:_0x458a5d,measuresMap:_0x3d532f,measureIndexesMap:_0x43dcbe,rowDeep:_0x14887b,colDeep:_0x2758fc,valueQueryInfo:_0x4c0454}=_0x398428,_0x554f7a=_0xe83881['rowView'],_0x1d881f=_0x3dccaf[_0x22fbdd(0x4c5)](),_0x23dbe8=this[_0x22fbdd(0x37c)](_0x50b18e,_0x1d881f,_0x458a5d);if(_0x1d881f===0x0){if(_0x23dbe8){let _0x3bbaa4=0x0;for(let _0x2780aa of _0x26e57e){let {displayName:_0x54b64d}=_0x3d532f[_0x2780aa];_0x554f7a['setValue'](_0x3bbaa4+_0x155462,0x0,''+_0x54b64d),_0x554f7a[_0x22fbdd(0x53f)](_0x3bbaa4+_0x155462,0x0,0xf),_0x554f7a[_0x22fbdd(0x23d)](_0x3bbaa4+_0x155462,{'paths':_0x3dccaf[_0x22fbdd(0x2bd)](),'valueIndex':_0x3bbaa4,'isBottomTotal':!0x0,'level':_0x1d881f,'tableFieldId':''}),this[_0x22fbdd(0x3bc)](_0x398428,_0x155462+_0x3bbaa4),_0x3bbaa4++;}}else{_0x14887b===0x0&&_0x2758fc!==0x0&&_0x4c0454[_0x22fbdd(0x41f)]===0x1?_0x554f7a[_0x22fbdd(0x55c)](_0x155462,0x0,_0x4c0454[0x0][_0x22fbdd(0x24b)]):(_0x554f7a[_0x22fbdd(0x55c)](_0x155462,0x0,''),_0x554f7a[_0x22fbdd(0x53f)](_0x155462,0x0,0xe));let _0x5a70dd=_0x50b18e?_0x43dcbe[_0x26e57e[0x0]]:-0x1;_0x554f7a[_0x22fbdd(0x23d)](_0x155462,{'paths':_0x3dccaf[_0x22fbdd(0x2bd)](),'valueIndex':_0x5a70dd,'isBottomTotal':!0x0,'level':_0x1d881f,'tableFieldId':''}),_0x14887b===0x0&&_0x2758fc!==0x0&&_0x4c0454[_0x22fbdd(0x41f)]===0x1&&_0x554f7a[_0x22fbdd(0x23d)](_0x155462,this[_0x22fbdd(0x26a)](_0x398428,_0x554f7a[_0x22fbdd(0x577)][_0x155462])),this['layoutValueNodeSubtotal'](_0x398428,_0x155462);}}else{let _0x2297bf=this[_0x22fbdd(0x20e)](_0x1d881f,_0x458a5d,_0x50b18e),_0x555c7f=_0x3dccaf[_0x22fbdd(0x502)](),_0x265bd5=_0x3dccaf[_0x22fbdd(0x361)](),_0x4b16a3=_0x3dccaf[_0x22fbdd(0x3a3)]===0x5,_0x401b49=_0x3dccaf[_0x22fbdd(0x3a3)]===0x6;if(_0x555c7f&&_0x2297bf++,_0x23dbe8){let _0x31cd1f=0x0,_0x38ba82=_0x398428[_0x22fbdd(0x529)];for(let _0x582e6a of _0x26e57e){let {displayName:_0xaa1a54}=_0x3d532f[_0x582e6a];if(_0x555c7f)_0x554f7a['setValue'](_0x155462+_0x31cd1f,_0x38ba82,_0xaa1a54);else{let _0x5b8be7=_0x555c7f?''+_0xaa1a54:{'prefix':_0x3dccaf[_0x22fbdd(0x24b)],'value':_0xaa1a54};_0x554f7a[_0x22fbdd(0x55c)](_0x155462+_0x31cd1f,_0x2297bf,_0x5b8be7),_0x4b16a3&&_0x554f7a[_0x22fbdd(0x3b6)](_0x155462+_0x31cd1f,_0x2297bf),_0x401b49&&_0x554f7a[_0x22fbdd(0x349)](_0x155462+_0x31cd1f,_0x2297bf),_0x554f7a['setStyle'](_0x155462+_0x31cd1f,_0x2297bf,0xd);}_0x554f7a[_0x22fbdd(0x23d)](_0x155462+_0x31cd1f,{'paths':_0x3dccaf[_0x22fbdd(0x2bd)](),'valueIndex':_0x31cd1f,'isBottomTotal':!0x0,'level':_0x1d881f,'tableFieldId':_0x265bd5}),this['layoutValueNodeSubtotal'](_0x398428,_0x155462+_0x31cd1f),_0x31cd1f++;}}else{_0x555c7f||(this[_0x22fbdd(0x3cd)](_0x554f7a,_0x155462,_0x2297bf,_0x3dccaf[_0x22fbdd(0x24b)],_0x4b16a3,_0x401b49&&_0x3dccaf['name']===_0x209170[_0x22fbdd(0x4ec)]),_0x554f7a['setStyle'](_0x155462,_0x2297bf,0xd));let _0x2a04d0=_0x50b18e?_0x43dcbe[_0x26e57e[0x0]]:-0x1;_0x554f7a[_0x22fbdd(0x23d)](_0x155462,{'paths':_0x3dccaf['getPaths'](),'valueIndex':_0x2a04d0,'isBottomTotal':!0x0,'level':_0x1d881f,'tableFieldId':_0x265bd5}),this['layoutValueNodeSubtotal'](_0x398428,_0x155462);}}}},_0x5a3612=class extends _0x3ab396{static[_0x20ea74(0x356)](_0x239944,_0x256ecd,_0x4f107a){const _0xd558b2=_0x20ea74;let _0x59f543=this[_0xd558b2(0x3d2)](_0x239944,_0x256ecd,_0x4f107a);return this[_0xd558b2(0x36c)](_0x59f543),this[_0xd558b2(0x44e)](_0x59f543),this['layoutRowFields'](_0x59f543),this[_0xd558b2(0x55e)](_0x59f543),this[_0xd558b2(0x2ea)](_0x59f543),this[_0xd558b2(0x1f9)](_0x59f543),_0x59f543[_0xd558b2(0x1e8)];}static['layoutRowFields'](_0x53c4b3){const _0x536a2d=_0x20ea74;let {rowNodeTree:_0x376633,view:_0x4bf985,isRowMultiMeasure:_0x5a0f9a,valueQueryInfo:_0x440170,measureCount:_0x43f200,rowDeep:_0x4a61a9,showRowGrandTotal:_0xfa63d4}=_0x53c4b3,_0x57c88e=_0x4bf985[_0x536a2d(0x3d5)],_0x2fd633=_0x5a0f9a?_0x440170[_0x536a2d(0x51f)](_0x4476d6=>_0x4476d6['id']):[],_0x5857e1=0x0;if(_0x4a61a9===0x0)_0x43f200>0x0&&(_0x5857e1=this[_0x536a2d(0x493)](_0x53c4b3,_0x376633,_0x5857e1,_0x2fd633));else{if(this[_0x536a2d(0x393)](_0x53c4b3)){for(let _0x1f0a5a of _0x2fd633)_0x5857e1=this[_0x536a2d(0x33f)](_0x53c4b3,_0x5857e1,_0x1f0a5a),_0x5857e1=this['layoutRowChildren'](_0x53c4b3,_0x376633,_0x5857e1,[_0x1f0a5a]);}else _0x5857e1=this[_0x536a2d(0x4ad)](_0x53c4b3,_0x376633,_0x5857e1,_0x2fd633);_0xfa63d4&&(_0x43f200>0x0||_0x4a61a9>0x0)&&(_0x5857e1=this[_0x536a2d(0x493)](_0x53c4b3,_0x376633,_0x5857e1,_0x2fd633));}_0x57c88e['setRowCount'](_0x5857e1),_0x57c88e[_0x536a2d(0x423)](this[_0x536a2d(0x323)](_0x53c4b3));}static[_0x20ea74(0x393)](_0x157334){const _0x5578fd=_0x20ea74;return _0x157334[_0x5578fd(0x397)]&&_0x157334[_0x5578fd(0x529)]===0x0;}static[_0x20ea74(0x4ad)](_0x4f3829,_0x24099f,_0x1e62ad,_0x2a0b52){const _0x1d9a36=_0x20ea74;let _0x1431be=_0x1e62ad;return _0x24099f[_0x1d9a36(0x407)](_0x141832=>{const _0x143b34=_0x1d9a36;_0x1431be=this[_0x143b34(0x50e)](_0x4f3829,_0x141832,_0x1431be,_0x2a0b52);}),_0x1431be;}static[_0x20ea74(0x339)](_0x110a3a,_0x33564a,_0x434854,_0x57b09a){const _0x4885e6=_0x20ea74;return{'itemSize':this[_0x4885e6(0x50e)](_0x110a3a,_0x33564a,_0x434854,_0x57b09a)-_0x434854,'topTotalSize':0x0,'bottomTotalSize':0x0};}static[_0x20ea74(0x50e)](_0x187db6,_0xf52006,_0x20caec,_0x582fa0){const _0x185376=_0x20ea74;let _0x4dd3ad=this[_0x185376(0x431)](_0xf52006,_0x187db6['rowDeep']),_0x251cc2=_0xf52006[_0x185376(0x502)]();if(!_0x4dd3ad){if(this[_0x185376(0x533)](_0x187db6,_0xf52006)&&!_0x251cc2){let _0x2b0fc2=this[_0x185376(0x556)](_0x187db6,_0xf52006,_0x20caec);if(this[_0x185376(0x4c9)](_0x187db6[_0x185376(0x397)],_0xf52006[_0x185376(0x4c5)](),_0x187db6[_0x185376(0x529)])){for(let _0x3c9264 of _0x582fa0)_0x2b0fc2=this['writeValueHeaderRow'](_0x187db6,_0xf52006,_0x2b0fc2,_0x3c9264),_0x2b0fc2=this[_0x185376(0x4ad)](_0x187db6,_0xf52006,_0x2b0fc2,[_0x3c9264]);}else _0x2b0fc2=this['layoutRowChildren'](_0x187db6,_0xf52006,_0x2b0fc2,_0x582fa0);return _0x187db6[_0x185376(0x4e9)]&&(_0x2b0fc2=this[_0x185376(0x4da)](_0x187db6,_0xf52006,_0x2b0fc2,_0x582fa0)),_0x2b0fc2;}if(this[_0x185376(0x34d)](_0x187db6)&&!_0x251cc2){let _0xf1debd=this[_0x185376(0x556)](_0x187db6,_0xf52006,_0x20caec);return _0xf1debd=this[_0x185376(0x4ad)](_0x187db6,_0xf52006,_0xf1debd,_0x582fa0),_0x187db6['showRowSubtotal']&&(_0xf1debd=this[_0x185376(0x4da)](_0x187db6,_0xf52006,_0xf1debd,_0x582fa0)),_0xf1debd;}if(this['shouldMultipleNode'](_0x187db6[_0x185376(0x397)],_0xf52006[_0x185376(0x4c5)](),_0x187db6[_0x185376(0x529)])){let _0x31e6c1=_0x20caec;for(let _0x329341 of _0x582fa0)_0x31e6c1=this[_0x185376(0x255)](_0x187db6,_0xf52006,_0x31e6c1,[_0x329341]),_0x251cc2||(_0x31e6c1=this[_0x185376(0x4ad)](_0x187db6,_0xf52006,_0x31e6c1,[_0x329341]));return _0x31e6c1;}let _0x4a8141=this[_0x185376(0x255)](_0x187db6,_0xf52006,_0x20caec,_0x582fa0);return _0x251cc2||(_0x4a8141=this[_0x185376(0x4ad)](_0x187db6,_0xf52006,_0x4a8141,_0x582fa0)),_0x4a8141;}return this[_0x185376(0x229)](_0x187db6,_0xf52006,_0x20caec,_0x582fa0);}static[_0x20ea74(0x34d)](_0x5b3d03){const _0x7f2782=_0x20ea74;return _0x5b3d03[_0x7f2782(0x25c)]===0x2;}static[_0x20ea74(0x533)](_0x4fbd3,_0x119c65){const _0x5915c3=_0x20ea74;return _0x4fbd3['isRowMultiMeasure']&&_0x4fbd3['valueIndex']>0x0&&_0x119c65[_0x5915c3(0x4c5)]()<=_0x4fbd3['valueIndex'];}static[_0x20ea74(0x556)](_0x1dcd3f,_0x17c483,_0x16fafc){const _0x194a71=_0x20ea74;let _0xa19b0a=this[_0x194a71(0x4e2)](_0x1dcd3f,_0x17c483[_0x194a71(0x4c5)]()),_0x25c00c=this['getNodeDisplayValue'](_0x17c483),_0x467b71=_0x1dcd3f['view'][_0x194a71(0x3d5)];return _0x467b71[_0x194a71(0x55c)](_0x16fafc,_0xa19b0a,_0x25c00c),this['applyNodeValueType'](_0x467b71,_0x16fafc,_0xa19b0a,_0x17c483),_0x467b71['setStyle'](_0x16fafc,_0xa19b0a,0xc),_0x467b71[_0x194a71(0x23d)](_0x16fafc,this[_0x194a71(0x27e)](_0x17c483,{'rowType':'item'})),_0x16fafc+0x1;}static[_0x20ea74(0x3d1)](_0x98165e,_0x22a226,_0x5ac6bc,_0x2daef2){const _0x3455fe=_0x20ea74;let _0x444cb7=this[_0x3455fe(0x4cb)](_0x98165e,_0x22a226['getLevel']()),_0x440335=_0x98165e[_0x3455fe(0x401)][_0x2daef2],_0x300a47=_0x98165e['view']['rowView'];return _0x300a47[_0x3455fe(0x55c)](_0x5ac6bc,_0x444cb7,_0x98165e[_0x3455fe(0x2cb)][_0x2daef2][_0x3455fe(0x24b)]),_0x300a47[_0x3455fe(0x23d)](_0x5ac6bc,this[_0x3455fe(0x27e)](_0x22a226,{'valueIndex':_0x440335,'isValue':!0x0,'dataFieldId':_0x98165e[_0x3455fe(0x2cb)][_0x2daef2][_0x3455fe(0x34a)],'rowType':'value'})),_0x5ac6bc+0x1;}static[_0x20ea74(0x33f)](_0x2698bd,_0x1e0d3f,_0x4c17d8){const _0x55c08a=_0x20ea74;let _0x2678f2=_0x2698bd[_0x55c08a(0x401)][_0x4c17d8],_0x31fc31=_0x2698bd['measuresMap'][_0x4c17d8],_0x53111a=_0x2698bd[_0x55c08a(0x1e8)][_0x55c08a(0x3d5)];return _0x53111a[_0x55c08a(0x55c)](_0x1e0d3f,0x0,_0x31fc31[_0x55c08a(0x24b)]),_0x53111a[_0x55c08a(0x23d)](_0x1e0d3f,{'paths':[],'valueIndex':_0x2678f2,'level':-0x1,'tableFieldId':'','dataFieldId':_0x31fc31[_0x55c08a(0x34a)],'isValue':!0x0,'rowType':_0x55c08a(0x306)}),_0x1e0d3f+0x1;}static['writeParentRows'](_0x53e833,_0x14ac1b,_0x391f00,_0x259b47){const _0x3bbfd2=_0x20ea74;if((_0x53e833[_0x3bbfd2(0x4e9)]||_0x14ac1b[_0x3bbfd2(0x502)]())&&_0x53e833[_0x3bbfd2(0x397)]&&_0x259b47[_0x3bbfd2(0x41f)]>0x1&&this[_0x3bbfd2(0x37c)](_0x53e833['isRowMultiMeasure'],_0x14ac1b[_0x3bbfd2(0x4c5)](),_0x53e833[_0x3bbfd2(0x529)])){let _0x456a2f=_0x391f00;for(let _0xc4eb5 of _0x259b47){let _0x597950=_0x53e833[_0x3bbfd2(0x401)][_0xc4eb5];this[_0x3bbfd2(0x44b)](_0x53e833,_0x14ac1b,_0x456a2f,_0x597950,_0x53e833[_0x3bbfd2(0x2cb)][_0xc4eb5][_0x3bbfd2(0x24b)]),_0x456a2f++;}return _0x456a2f;}let _0x945516=_0x53e833[_0x3bbfd2(0x397)]&&_0x259b47[_0x3bbfd2(0x41f)]===0x1?_0x53e833[_0x3bbfd2(0x401)][_0x259b47[0x0]]:-0x1,_0x5e771f=_0x53e833[_0x3bbfd2(0x397)]&&_0x259b47[_0x3bbfd2(0x41f)]===0x1&&_0x53e833['valueIndex']>0x0&&_0x53e833[_0x3bbfd2(0x529)]<=_0x14ac1b[_0x3bbfd2(0x4c5)]()?_0x53e833['measuresMap'][_0x259b47[0x0]][_0x3bbfd2(0x24b)]:void 0x0;return this[_0x3bbfd2(0x44b)](_0x53e833,_0x14ac1b,_0x391f00,_0x945516,_0x5e771f),_0x391f00+0x1;}static[_0x20ea74(0x44b)](_0x5ebd5e,_0x3e8d3a,_0x5670aa,_0x4316fe,_0x516809){const _0x3032a7=_0x20ea74;let {showRowSubtotal:_0x504c1c}=_0x5ebd5e,_0x33ade5=_0x3e8d3a[_0x3032a7(0x502)](),_0x5dcd49=_0x504c1c||_0x33ade5,_0x5e7bea=this['getRowLabelCol'](_0x5ebd5e,_0x3e8d3a[_0x3032a7(0x4c5)]()),_0x5468a1=_0x516809?this[_0x3032a7(0x4cb)](_0x5ebd5e,_0x3e8d3a['getLevel']()):_0x5e7bea,_0x43a2da=this[_0x3032a7(0x256)](_0x3e8d3a),_0x37d1f5=_0x5ebd5e[_0x3032a7(0x1e8)]['rowView'];_0x37d1f5[_0x3032a7(0x55c)](_0x5670aa,_0x5e7bea,_0x43a2da),this[_0x3032a7(0x49d)](_0x37d1f5,_0x5670aa,_0x5e7bea,_0x3e8d3a),_0x37d1f5[_0x3032a7(0x53f)](_0x5670aa,_0x5e7bea,_0x33ade5?0xb:0xc),_0x516809&&_0x5468a1!==_0x5e7bea&&_0x37d1f5[_0x3032a7(0x55c)](_0x5670aa,_0x5468a1,_0x516809),_0x37d1f5[_0x3032a7(0x23d)](_0x5670aa,this[_0x3032a7(0x27e)](_0x3e8d3a,{'valueIndex':_0x4316fe,'isBottomTotal':_0x5dcd49,'isSubtotal':_0x5dcd49,'isTopTotal':_0x5dcd49,'rowType':_0x5dcd49?'subtotal':_0x3032a7(0x1ed)})),_0x5dcd49&&this[_0x3032a7(0x3bc)](_0x5ebd5e,_0x5670aa);}static[_0x20ea74(0x4da)](_0x153883,_0x12d3ce,_0x463fab,_0xaa9333){const _0x51f883=_0x20ea74;let {isRowMultiMeasure:_0x5cf64c,measuresMap:_0xedab50}=_0x153883;if(this[_0x51f883(0x37c)](_0x5cf64c,_0x12d3ce[_0x51f883(0x4c5)](),_0x153883['valueIndex'])){let _0x5555ad=_0x463fab;for(let _0x3fff12 of _0xaa9333){let _0x35e9ba=_0x153883[_0x51f883(0x401)][_0x3fff12];this[_0x51f883(0x2d9)](_0x153883,_0x12d3ce,_0x5555ad,_0x35e9ba,_0xedab50[_0x3fff12][_0x51f883(0x24b)]),_0x5555ad++;}return _0x5555ad;}return this[_0x51f883(0x2d9)](_0x153883,_0x12d3ce,_0x463fab,_0x5cf64c?_0x153883[_0x51f883(0x401)][_0xaa9333[0x0]]:-0x1),_0x463fab+0x1;}static['writeBottomSubtotalRow'](_0x7e9116,_0x139e74,_0x12fb4e,_0x37d748,_0x26c0eb){const _0x267687=_0x20ea74;let _0x4e8677=this[_0x267687(0x4e2)](_0x7e9116,_0x139e74[_0x267687(0x4c5)]()),_0x53aa62=this['getNodeDisplayValue'](_0x139e74),_0x25bf65=_0x7e9116['view']['rowView'];_0x25bf65[_0x267687(0x55c)](_0x12fb4e,_0x4e8677,_0x26c0eb?{'prefix':String(_0x53aa62),'value':_0x26c0eb}:_0x53aa62),this[_0x267687(0x49d)](_0x25bf65,_0x12fb4e,_0x4e8677,_0x139e74),_0x25bf65[_0x267687(0x53f)](_0x12fb4e,_0x4e8677,0xd),_0x25bf65[_0x267687(0x23d)](_0x12fb4e,this['createRowInfo'](_0x139e74,{'valueIndex':_0x37d748,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':'subtotal'})),this[_0x267687(0x3bc)](_0x7e9116,_0x12fb4e);}static[_0x20ea74(0x229)](_0x5720aa,_0x3015fe,_0x7d6a85,_0x3944ef){const _0x229030=_0x20ea74;let {isRowMultiMeasure:_0x2548a6,valueIndex:_0xb7802d,measureCount:_0x25e729,measuresMap:_0x1f8275,measureIndexesMap:_0x53aef5}=_0x5720aa;if(this[_0x229030(0x4c9)](_0x2548a6,_0x3015fe['getLevel'](),_0xb7802d)){if(this['shouldWriteLeafValuesUnderItem'](_0x5720aa)){let _0xf7cde6=this[_0x229030(0x358)](_0x5720aa,_0x3015fe,_0x7d6a85);for(let _0x2a3d83 of _0x3944ef){let _0x51729f=_0x53aef5[_0x2a3d83];this[_0x229030(0x513)](_0x5720aa,_0x3015fe,_0xf7cde6,_0x51729f,_0x1f8275[_0x2a3d83]['displayName']),this[_0x229030(0x469)](_0x5720aa,_0x3015fe,_0xf7cde6,_0x51729f),_0xf7cde6++;}return _0xf7cde6;}let _0x563ba7=_0x7d6a85;for(let _0x42f85e of _0x3944ef){let _0xbffca=_0x53aef5[_0x42f85e],_0x546da7=this[_0x229030(0x4e2)](_0x5720aa,_0x3015fe[_0x229030(0x4c5)]()),_0x50d5eb=this[_0x229030(0x4cb)](_0x5720aa,_0x3015fe[_0x229030(0x4c5)]()),_0x20dae2=this['getNodeDisplayValue'](_0x3015fe),_0x1f06f6=_0x5720aa[_0x229030(0x1e8)][_0x229030(0x3d5)];_0x1f06f6[_0x229030(0x55c)](_0x563ba7,_0x546da7,_0x20dae2),this[_0x229030(0x49d)](_0x1f06f6,_0x563ba7,_0x546da7,_0x3015fe),_0x50d5eb!==_0x546da7&&_0x1f06f6['setValue'](_0x563ba7,_0x50d5eb,_0x1f8275[_0x42f85e]['displayName']),_0x1f06f6[_0x229030(0x23d)](_0x563ba7,this['createRowInfo'](_0x3015fe,{'valueIndex':_0xbffca,'isLeaf':!0x0,'rowType':_0x229030(0x1ed)})),this[_0x229030(0x469)](_0x5720aa,_0x3015fe,_0x563ba7,_0xbffca),_0x563ba7++;}return _0x563ba7;}let _0x30dc0c=_0x2548a6?_0x53aef5[_0x3944ef[0x0]]:-0x1,_0xa24f45=this[_0x229030(0x4e2)](_0x5720aa,_0x3015fe[_0x229030(0x4c5)]()),_0x5a4b6c=this[_0x229030(0x256)](_0x3015fe),_0x27cac5=_0x5720aa['view'][_0x229030(0x3d5)];return _0x27cac5[_0x229030(0x55c)](_0x7d6a85,_0xa24f45,_0x5a4b6c),this['applyNodeValueType'](_0x27cac5,_0x7d6a85,_0xa24f45,_0x3015fe),_0x27cac5['setInfo'](_0x7d6a85,this['createRowInfo'](_0x3015fe,{'valueIndex':_0x30dc0c,'isLeaf':!0x0,'rowType':_0x229030(0x1ed)})),_0x25e729>0x0&&this['startContent'](_0x5720aa,_0x3015fe,_0x7d6a85,_0x30dc0c),_0x7d6a85+0x1;}static['shouldWriteLeafValuesUnderItem'](_0x3f03b5){const _0xc151ac=_0x20ea74;return _0x3f03b5[_0xc151ac(0x397)]&&_0x3f03b5[_0xc151ac(0x529)]>0x0;}static['writeLeafItemRow'](_0x123d95,_0x5ae42a,_0x31d457){const _0x3b288d=_0x20ea74;let _0x30ba67=this['getRowLabelCol'](_0x123d95,_0x5ae42a[_0x3b288d(0x4c5)]()),_0x327ad9=this[_0x3b288d(0x256)](_0x5ae42a),_0x133865=_0x123d95[_0x3b288d(0x1e8)][_0x3b288d(0x3d5)];return _0x133865[_0x3b288d(0x55c)](_0x31d457,_0x30ba67,_0x327ad9),this['applyNodeValueType'](_0x133865,_0x31d457,_0x30ba67,_0x5ae42a),_0x133865[_0x3b288d(0x23d)](_0x31d457,this[_0x3b288d(0x27e)](_0x5ae42a,{'isLeaf':!0x0,'rowType':_0x3b288d(0x1ed)})),_0x31d457+0x1;}static['writeLeafValueRow'](_0x5743e5,_0x11debc,_0x3c93ae,_0x1c94c1,_0x508a5c){const _0x498984=_0x20ea74;let _0x4df345=this[_0x498984(0x4cb)](_0x5743e5,_0x11debc[_0x498984(0x4c5)]()),_0x3d14ca=_0x5743e5[_0x498984(0x1e8)]['rowView'];_0x3d14ca[_0x498984(0x55c)](_0x3c93ae,_0x4df345,_0x508a5c),_0x3d14ca[_0x498984(0x23d)](_0x3c93ae,this[_0x498984(0x27e)](_0x11debc,{'valueIndex':_0x1c94c1,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x498984(0x306)}));}static[_0x20ea74(0x493)](_0x5c6ded,_0x5a9abf,_0x924aed,_0x1e194b){const _0x244bef=_0x20ea74;let {isRowMultiMeasure:_0x45169d,measureCount:_0x394955,measuresMap:_0x1ec7eb,measureIndexesMap:_0x171be0}=_0x5c6ded,_0x54e582=_0x5c6ded[_0x244bef(0x1e8)][_0x244bef(0x3d5)];if(this[_0x244bef(0x37c)](_0x45169d,_0x5a9abf[_0x244bef(0x4c5)](),_0x5c6ded[_0x244bef(0x529)])){let _0x2740bf=_0x924aed;for(let _0x169928 of _0x1e194b){let _0x586d7a=_0x171be0[_0x169928];_0x54e582[_0x244bef(0x55c)](_0x2740bf,0x0,_0x1ec7eb[_0x169928]['displayName']),_0x54e582[_0x244bef(0x53f)](_0x2740bf,0x0,0xf),_0x54e582['setInfo'](_0x2740bf,this[_0x244bef(0x2b6)](_0x5a9abf,_0x586d7a)),this[_0x244bef(0x223)](_0x5c6ded,_0x5a9abf,_0x2740bf,_0x586d7a),_0x2740bf++;}return _0x2740bf;}if(_0x5c6ded[_0x244bef(0x3b7)]===0x0&&!_0x45169d&&_0x394955>0x0)return _0x5c6ded[_0x244bef(0x2ef)]!==0x0&&_0x54e582[_0x244bef(0x55c)](_0x924aed,0x0,_0x5c6ded[_0x244bef(0x378)][0x0][_0x244bef(0x24b)]),_0x54e582[_0x244bef(0x23d)](_0x924aed,this[_0x244bef(0x2b6)](_0x5a9abf,-0x1)),_0x5c6ded[_0x244bef(0x2ef)]!==0x0&&_0x54e582[_0x244bef(0x23d)](_0x924aed,this[_0x244bef(0x26a)](_0x5c6ded,_0x54e582[_0x244bef(0x577)][_0x924aed])),this['layoutGrandTotalValues'](_0x5c6ded,_0x5a9abf,_0x924aed,-0x1),_0x924aed+0x1;if(_0x394955>0x0){let _0x643106=_0x45169d?_0x5c6ded[_0x244bef(0x401)][_0x1e194b[0x0]]:-0x1;return _0x54e582[_0x244bef(0x55c)](_0x924aed,0x0,''),_0x54e582['setStyle'](_0x924aed,0x0,0xe),_0x54e582[_0x244bef(0x23d)](_0x924aed,this[_0x244bef(0x2b6)](_0x5a9abf,_0x643106)),this[_0x244bef(0x223)](_0x5c6ded,_0x5a9abf,_0x924aed,_0x643106),_0x924aed+0x1;}return _0x5c6ded[_0x244bef(0x3b7)]>0x0?(_0x54e582['setValue'](_0x924aed,0x0,''),_0x54e582['setStyle'](_0x924aed,0x0,0xe),_0x54e582[_0x244bef(0x23d)](_0x924aed,this['createGrandTotalInfo'](_0x5a9abf,-0x1)),_0x924aed+0x1):_0x924aed;}static[_0x20ea74(0x223)](_0x3a434f,_0x3737e6,_0x56ac51,_0xe0c9d){const _0x55c5da=_0x20ea74;_0x3a434f['rowDeep']===0x0?this['startContent'](_0x3a434f,_0x3737e6,_0x56ac51,_0xe0c9d):this[_0x55c5da(0x3bc)](_0x3a434f,_0x56ac51);}static['createRowInfo'](_0x5205ec,_0x9d45fe){const _0x278545=_0x20ea74;return{'paths':_0x5205ec[_0x278545(0x2bd)](),'valueIndex':-0x1,'level':_0x5205ec[_0x278545(0x4c5)](),'tableFieldId':_0x5205ec[_0x278545(0x361)](),..._0x9d45fe};}static['createGrandTotalInfo'](_0x182b0c,_0x5bdfd3){const _0x3d926d=_0x20ea74;return{'paths':_0x182b0c[_0x3d926d(0x2bd)](),'valueIndex':_0x5bdfd3,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x182b0c[_0x3d926d(0x4c5)](),'tableFieldId':'','rowType':'grandTotal'};}static[_0x20ea74(0x323)](_0x2cee83){const _0x2cddbc=_0x20ea74;return _0x2cee83[_0x2cddbc(0x3b7)]===0x0?_0x2cee83[_0x2cddbc(0x495)]===0x0||_0x2cee83['isColMultiMeasure']?0x0:_0x2cee83[_0x2cddbc(0x397)]||_0x2cee83[_0x2cddbc(0x2ef)]!==0x0?0x1:0x0:0x1;}static[_0x20ea74(0x4e2)](_0x4cdf99,_0xd51244){return 0x0;}static['getValueLabelCol'](_0x180f91,_0x13dc98){return 0x0;}static[_0x20ea74(0x256)](_0x5a5c88){const _0x19bcc1=_0x20ea74;return _0x5a5c88['type']===0x4||_0x5a5c88['type']===0x2?Number(_0x5a5c88[_0x19bcc1(0x24b)]):_0x5a5c88[_0x19bcc1(0x24b)];}static['applyNodeValueType'](_0x383887,_0x94b2db,_0x2e00,_0x709283){const _0x4ed8fe=_0x20ea74;_0x709283[_0x4ed8fe(0x3a3)]===0x5&&_0x383887[_0x4ed8fe(0x3b6)](_0x94b2db,_0x2e00),_0x709283[_0x4ed8fe(0x3a3)]===0x6&&_0x383887[_0x4ed8fe(0x349)](_0x94b2db,_0x2e00);}static[_0x20ea74(0x510)](_0x2bb735,_0x3213e7,_0x230bf5){}static[_0x20ea74(0x2d1)](_0x5a3f78){const _0x41337b=_0x20ea74;if(super[_0x41337b(0x2d1)](_0x5a3f78),_0x5a3f78['colDeep']===0x0)return;let _0x8542a0=_0x5a3f78[_0x41337b(0x1e8)]['colView'],_0xe69ba4=_0x8542a0[_0x41337b(0x20c)](0x1);for(let _0x147e79=0x1;_0x147e79<=_0x8542a0[_0x41337b(0x4f3)]();_0x147e79++)_0x8542a0['setValue'](0x0,_0x147e79,'');_0x8542a0[_0x41337b(0x55c)](0x0,0x0,_0x41337b(0x55f)),_0xe69ba4&&_0x8542a0[_0x41337b(0x4fa)](0x1,{..._0xe69ba4,'isColumnLabel':!0x0});}static[_0x20ea74(0x1f9)](_0x37ddc4){const _0x2d5fd3=_0x20ea74;let {rowDeep:_0x450dfc,colDeep:_0x5d7570,view:_0x19a46a,measureCount:_0x4c6d98}=_0x37ddc4,_0x2b41cd=_0x37ddc4[_0x2d5fd3(0x25a)]['rowQueryInfo'],_0x3dd33c=_0x37ddc4['queryData'][_0x2d5fd3(0x378)],_0x31804=_0x19a46a[_0x2d5fd3(0x44f)],_0x54998b=_0x19a46a[_0x2d5fd3(0x2b3)],_0x466574=_0x19a46a[_0x2d5fd3(0x3d5)],_0x963049=_0x54998b[_0x2d5fd3(0x248)]();_0x963049===0x0&&_0x450dfc!==0x0&&(_0x963049=0x1);let _0x1c3a2c=_0x466574[_0x2d5fd3(0x428)]();if(_0x31804[_0x2d5fd3(0x377)](_0x963049),_0x31804[_0x2d5fd3(0x423)](_0x1c3a2c),_0x450dfc===0x0&&_0x5d7570===0x0&&_0x37ddc4[_0x2d5fd3(0x397)]?_0x31804[_0x2d5fd3(0x55c)](0x0,0x0,_0x2d5fd3(0x48f)):_0x450dfc===0x0&&_0x37ddc4[_0x2d5fd3(0x397)]&&_0x31804[_0x2d5fd3(0x55c)](_0x963049-0x1,0x0,'\x20Σ值'),_0x4c6d98===0x1&&_0x5d7570>0x0&&_0x450dfc>0x0&&_0x31804['setValue'](0x0,0x0,_0x3dd33c[0x0][_0x2d5fd3(0x24b)]),_0x450dfc===0x0)return;let _0x12a44c=_0x963049-0x1,{filterInfo:_0x4acaf2,sortInfo:_0x259394,dataFieldId:_0x46c08a,id:_0x137673}=_0x2b41cd[0x0];_0x31804[_0x2d5fd3(0x55c)](_0x12a44c,0x0,_0x2d5fd3(0x2fa)),_0x31804[_0x2d5fd3(0x53f)](_0x12a44c,0x0,_0x5666c0(_0x4acaf2,_0x259394,_0x37ddc4[_0x2d5fd3(0x1e4)][_0x137673])),_0x31804['setInfo'](0x0,{'paths':[],'level':0x0,'tableFieldId':_0x137673,'dataFieldId':_0x46c08a,'valueIndex':-0x1,'isRowLabel':!0x0}),_0x466574['addHeaderMapItem'](0x0,{'isValue':!0x1,'level':0x0,'tableFieldId':_0x137673,'dataFieldId':_0x46c08a});}},_0x3154ed=class extends _0x3ab396{static[_0x20ea74(0x356)](_0x31aadd,_0x31b8e0,_0x1f8170){const _0x2cd75a=_0x20ea74;let _0x2fc3ce=this[_0x2cd75a(0x3d2)](_0x31aadd,_0x31b8e0,_0x1f8170);return this['layoutPage'](_0x2fc3ce),this[_0x2cd75a(0x44e)](_0x2fc3ce),this['layoutRowFields'](_0x2fc3ce),this['layoutHeadersWithoutColumnDimensions'](_0x2fc3ce),this[_0x2cd75a(0x2ea)](_0x2fc3ce),this[_0x2cd75a(0x1f9)](_0x2fc3ce),_0x2fc3ce['view'];}static[_0x20ea74(0x29b)](_0x3fcf4d){const _0xa242c6=_0x20ea74;let {rowNodeTree:_0x219ce9,view:_0x5f25bb,isRowMultiMeasure:_0x25c1ed,valueQueryInfo:_0x45eee7,measureCount:_0x4c5ac2,rowDeep:_0x448112,showRowGrandTotal:_0x509aa5}=_0x3fcf4d,_0x3e09fb=_0x5f25bb['rowView'],_0x45c60c=_0x25c1ed?_0x45eee7['map'](_0x590594=>_0x590594['id']):[],_0x145019=0x0;if(_0x448112===0x0)_0x4c5ac2>0x0&&(_0x145019=this[_0xa242c6(0x493)](_0x3fcf4d,_0x219ce9,_0x145019,_0x45c60c));else{if(this['shouldSplitRootByValues'](_0x3fcf4d)){for(let _0x559a8a of _0x45c60c)_0x145019=this[_0xa242c6(0x33f)](_0x3fcf4d,_0x145019,_0x559a8a),_0x145019=this[_0xa242c6(0x4ad)](_0x3fcf4d,_0x219ce9,_0x145019,[_0x559a8a]);}else _0x145019=this[_0xa242c6(0x4ad)](_0x3fcf4d,_0x219ce9,_0x145019,_0x45c60c);_0x509aa5&&(_0x4c5ac2>0x0||_0x448112>0x0)&&(_0x145019=this[_0xa242c6(0x493)](_0x3fcf4d,_0x219ce9,_0x145019,_0x45c60c));}_0x3e09fb[_0xa242c6(0x377)](_0x145019),_0x3e09fb[_0xa242c6(0x423)](this[_0xa242c6(0x323)](_0x3fcf4d));}static[_0x20ea74(0x393)](_0x32677a){const _0x2370c8=_0x20ea74;return _0x32677a[_0x2370c8(0x397)]&&_0x32677a[_0x2370c8(0x529)]===0x0;}static[_0x20ea74(0x4ad)](_0xb34eaf,_0x4b62d4,_0x2c2652,_0x40e620){const _0x1ce0fc=_0x20ea74;let _0x5caf71=_0x2c2652;return _0x4b62d4[_0x1ce0fc(0x407)](_0x3b6bca=>{const _0x4ba500=_0x1ce0fc;_0x5caf71=this[_0x4ba500(0x50e)](_0xb34eaf,_0x3b6bca,_0x5caf71,_0x40e620);}),_0x5caf71;}static[_0x20ea74(0x339)](_0xdf85f2,_0x4ea254,_0x46dcec,_0x49433d){const _0xf3c5a4=_0x20ea74;return{'itemSize':this[_0xf3c5a4(0x50e)](_0xdf85f2,_0x4ea254,_0x46dcec,_0x49433d)-_0x46dcec,'topTotalSize':0x0,'bottomTotalSize':0x0};}static['layoutRowNodeToCursor'](_0x2f4001,_0x31c074,_0xe8aad5,_0x58f093){const _0x33bddf=_0x20ea74;let _0xd7da2=this['isLeafNode'](_0x31c074,_0x2f4001[_0x33bddf(0x3b7)]),_0x28edc8=_0x31c074['getCollapse']();if(!_0xd7da2){if(this[_0x33bddf(0x533)](_0x2f4001,_0x31c074)&&!_0x28edc8){let _0x5326e9=this[_0x33bddf(0x556)](_0x2f4001,_0x31c074,_0xe8aad5);if(this[_0x33bddf(0x4c9)](_0x2f4001[_0x33bddf(0x397)],_0x31c074['getLevel'](),_0x2f4001[_0x33bddf(0x529)])){for(let _0x98b224 of _0x58f093)_0x5326e9=this[_0x33bddf(0x3d1)](_0x2f4001,_0x31c074,_0x5326e9,_0x98b224),_0x5326e9=this['layoutRowChildren'](_0x2f4001,_0x31c074,_0x5326e9,[_0x98b224]);}else _0x5326e9=this[_0x33bddf(0x4ad)](_0x2f4001,_0x31c074,_0x5326e9,_0x58f093);return _0x2f4001[_0x33bddf(0x4e9)]&&(_0x5326e9=this[_0x33bddf(0x4da)](_0x2f4001,_0x31c074,_0x5326e9,_0x58f093)),_0x5326e9;}if(this['shouldWriteSubtotalAtBottom'](_0x2f4001)&&!_0x28edc8){let _0x4810cc=this[_0x33bddf(0x556)](_0x2f4001,_0x31c074,_0xe8aad5);return _0x4810cc=this['layoutRowChildren'](_0x2f4001,_0x31c074,_0x4810cc,_0x58f093),_0x2f4001['showRowSubtotal']&&(_0x4810cc=this[_0x33bddf(0x4da)](_0x2f4001,_0x31c074,_0x4810cc,_0x58f093)),_0x4810cc;}if(this[_0x33bddf(0x4c9)](_0x2f4001[_0x33bddf(0x397)],_0x31c074[_0x33bddf(0x4c5)](),_0x2f4001['valueIndex'])){let _0x322209=_0xe8aad5;for(let _0x5e4dfe of _0x58f093)_0x322209=this[_0x33bddf(0x255)](_0x2f4001,_0x31c074,_0x322209,[_0x5e4dfe]),_0x28edc8||(_0x322209=this[_0x33bddf(0x4ad)](_0x2f4001,_0x31c074,_0x322209,[_0x5e4dfe]));return _0x322209;}let _0x14c7fe=this[_0x33bddf(0x255)](_0x2f4001,_0x31c074,_0xe8aad5,_0x58f093);return _0x28edc8||(_0x14c7fe=this['layoutRowChildren'](_0x2f4001,_0x31c074,_0x14c7fe,_0x58f093)),_0x14c7fe;}return this[_0x33bddf(0x229)](_0x2f4001,_0x31c074,_0xe8aad5,_0x58f093);}static[_0x20ea74(0x34d)](_0x2ca38d){return _0x2ca38d['rowSubtotalPosition']===0x2;}static[_0x20ea74(0x533)](_0x4b1d6a,_0x24e0fe){const _0x3633ec=_0x20ea74;return _0x4b1d6a['isRowMultiMeasure']&&_0x4b1d6a[_0x3633ec(0x529)]>0x0&&_0x24e0fe[_0x3633ec(0x4c5)]()<=_0x4b1d6a[_0x3633ec(0x529)];}static[_0x20ea74(0x556)](_0x268cbb,_0x28f645,_0x72074c){const _0x142057=_0x20ea74;let _0x35c4d2=this[_0x142057(0x4e2)](_0x268cbb,_0x28f645[_0x142057(0x4c5)]()),_0x215fe3=this['getNodeDisplayValue'](_0x28f645),_0x141d93=_0x268cbb['view'][_0x142057(0x3d5)];return _0x141d93[_0x142057(0x55c)](_0x72074c,_0x35c4d2,_0x215fe3),this[_0x142057(0x49d)](_0x141d93,_0x72074c,_0x35c4d2,_0x28f645),this[_0x142057(0x510)](_0x268cbb,_0x28f645,_0x72074c),_0x141d93['setStyle'](_0x72074c,_0x35c4d2,0xc),_0x141d93['setInfo'](_0x72074c,this['createRowInfo'](_0x28f645,{'rowType':_0x142057(0x1ed)})),_0x72074c+0x1;}static['writeValueHeaderRow'](_0x28c83e,_0x577cae,_0x4ff4ca,_0x4e4b87){const _0x26de2a=_0x20ea74;let _0x27a034=this['getValueLabelCol'](_0x28c83e,_0x577cae['getLevel']()),_0x70b547=_0x28c83e[_0x26de2a(0x401)][_0x4e4b87],_0x5ee648=_0x28c83e[_0x26de2a(0x1e8)][_0x26de2a(0x3d5)];return this['repeatRowLabelsForNode'](_0x28c83e,_0x577cae,_0x4ff4ca),_0x5ee648['setValue'](_0x4ff4ca,_0x27a034,_0x28c83e['measuresMap'][_0x4e4b87][_0x26de2a(0x24b)]),_0x5ee648[_0x26de2a(0x23d)](_0x4ff4ca,this['createRowInfo'](_0x577cae,{'valueIndex':_0x70b547,'isValue':!0x0,'dataFieldId':_0x28c83e['measuresMap'][_0x4e4b87][_0x26de2a(0x34a)],'rowType':_0x26de2a(0x306)})),_0x4ff4ca+0x1;}static[_0x20ea74(0x33f)](_0x36bb93,_0x53d2c3,_0x5c0d80){const _0x563ece=_0x20ea74;let _0x4b59b5=_0x36bb93[_0x563ece(0x401)][_0x5c0d80],_0x52f708=_0x36bb93['measuresMap'][_0x5c0d80],_0x3001e9=_0x36bb93[_0x563ece(0x1e8)][_0x563ece(0x3d5)];return _0x3001e9[_0x563ece(0x55c)](_0x53d2c3,0x0,_0x52f708[_0x563ece(0x24b)]),_0x3001e9[_0x563ece(0x23d)](_0x53d2c3,{'paths':[],'valueIndex':_0x4b59b5,'level':-0x1,'tableFieldId':'','dataFieldId':_0x52f708[_0x563ece(0x34a)],'isValue':!0x0,'rowType':_0x563ece(0x306)}),_0x53d2c3+0x1;}static[_0x20ea74(0x255)](_0x26ebc6,_0x30c0f3,_0x1763a7,_0x2b5c54){const _0x17ba37=_0x20ea74;if((_0x26ebc6['showRowSubtotal']||_0x30c0f3['getCollapse']())&&_0x26ebc6[_0x17ba37(0x397)]&&_0x2b5c54[_0x17ba37(0x41f)]>0x1&&this['shouldMultipleTotal'](_0x26ebc6[_0x17ba37(0x397)],_0x30c0f3['getLevel'](),_0x26ebc6[_0x17ba37(0x529)])){let _0x47b3c9=_0x1763a7;for(let _0x5de1fb of _0x2b5c54){let _0x43a442=_0x26ebc6[_0x17ba37(0x401)][_0x5de1fb];this[_0x17ba37(0x44b)](_0x26ebc6,_0x30c0f3,_0x47b3c9,_0x43a442,_0x26ebc6['measuresMap'][_0x5de1fb][_0x17ba37(0x24b)]),_0x47b3c9++;}return _0x47b3c9;}let _0x2e2550=_0x26ebc6[_0x17ba37(0x397)]&&_0x2b5c54[_0x17ba37(0x41f)]===0x1?_0x26ebc6[_0x17ba37(0x401)][_0x2b5c54[0x0]]:-0x1,_0x1e61c5=_0x26ebc6[_0x17ba37(0x397)]&&_0x2b5c54[_0x17ba37(0x41f)]===0x1&&_0x26ebc6[_0x17ba37(0x529)]>0x0&&_0x26ebc6[_0x17ba37(0x529)]===_0x30c0f3[_0x17ba37(0x4c5)]()?_0x26ebc6[_0x17ba37(0x2cb)][_0x2b5c54[0x0]][_0x17ba37(0x24b)]:void 0x0;return this['writeParentRow'](_0x26ebc6,_0x30c0f3,_0x1763a7,_0x2e2550,_0x1e61c5),_0x1763a7+0x1;}static[_0x20ea74(0x44b)](_0x44f0a5,_0x136231,_0x9cb0ca,_0x516a60,_0x45c1d7){const _0x33fcad=_0x20ea74;let {showRowSubtotal:_0x1b0024}=_0x44f0a5,_0x450f3b=_0x136231[_0x33fcad(0x502)](),_0x1dd1f7=_0x1b0024||_0x450f3b,_0x57ac76=this['getRowLabelCol'](_0x44f0a5,_0x136231['getLevel']()),_0x29b205=_0x45c1d7?this['getValueLabelCol'](_0x44f0a5,_0x136231[_0x33fcad(0x4c5)]()):_0x57ac76,_0x27da24=this[_0x33fcad(0x256)](_0x136231),_0x2b7df9=_0x44f0a5[_0x33fcad(0x1e8)][_0x33fcad(0x3d5)];_0x2b7df9[_0x33fcad(0x55c)](_0x9cb0ca,_0x57ac76,_0x27da24),this[_0x33fcad(0x49d)](_0x2b7df9,_0x9cb0ca,_0x57ac76,_0x136231),_0x2b7df9[_0x33fcad(0x53f)](_0x9cb0ca,_0x57ac76,_0x450f3b?0xb:0xc),this[_0x33fcad(0x510)](_0x44f0a5,_0x136231,_0x9cb0ca),_0x45c1d7&&_0x2b7df9[_0x33fcad(0x55c)](_0x9cb0ca,_0x29b205,_0x45c1d7),_0x2b7df9[_0x33fcad(0x23d)](_0x9cb0ca,this[_0x33fcad(0x27e)](_0x136231,{'valueIndex':_0x516a60,'isBottomTotal':_0x1dd1f7,'isSubtotal':_0x1dd1f7,'isTopTotal':_0x1dd1f7,'rowType':_0x1dd1f7?_0x33fcad(0x1fd):'item'})),_0x1dd1f7&&this[_0x33fcad(0x3bc)](_0x44f0a5,_0x9cb0ca);}static[_0x20ea74(0x4da)](_0x5ca50b,_0x26e09b,_0x1f1543,_0x3b1899){const _0x17b784=_0x20ea74;let {isRowMultiMeasure:_0x4a63f0,measuresMap:_0x2e6f80}=_0x5ca50b;if(this[_0x17b784(0x37c)](_0x4a63f0,_0x26e09b[_0x17b784(0x4c5)](),_0x5ca50b[_0x17b784(0x529)])){let _0x18f197=_0x1f1543;for(let _0x314749 of _0x3b1899){let _0x3d593f=_0x5ca50b['measureIndexesMap'][_0x314749];this[_0x17b784(0x2d9)](_0x5ca50b,_0x26e09b,_0x18f197,_0x3d593f,_0x2e6f80[_0x314749]['displayName']),_0x18f197++;}return _0x18f197;}return this[_0x17b784(0x2d9)](_0x5ca50b,_0x26e09b,_0x1f1543,_0x4a63f0?_0x5ca50b[_0x17b784(0x401)][_0x3b1899[0x0]]:-0x1),_0x1f1543+0x1;}static[_0x20ea74(0x2d9)](_0x257f61,_0x2e20c7,_0x5bdf8f,_0x10e882,_0x4f9b4e){const _0x29274f=_0x20ea74;let _0x145d77=this['getRowLabelCol'](_0x257f61,_0x2e20c7[_0x29274f(0x4c5)]()),_0x244db8=this[_0x29274f(0x256)](_0x2e20c7),_0x2b6eab=_0x257f61['view'][_0x29274f(0x3d5)];_0x2b6eab['setValue'](_0x5bdf8f,_0x145d77,_0x4f9b4e?{'prefix':String(_0x244db8),'value':_0x4f9b4e}:_0x244db8),this[_0x29274f(0x49d)](_0x2b6eab,_0x5bdf8f,_0x145d77,_0x2e20c7),_0x2b6eab[_0x29274f(0x53f)](_0x5bdf8f,_0x145d77,0xd),this['repeatRowLabelsForNode'](_0x257f61,_0x2e20c7,_0x5bdf8f),_0x2b6eab[_0x29274f(0x55c)](_0x5bdf8f,_0x145d77,_0x4f9b4e?{'prefix':String(_0x244db8),'value':_0x4f9b4e}:_0x244db8),_0x2b6eab[_0x29274f(0x23d)](_0x5bdf8f,this['createRowInfo'](_0x2e20c7,{'valueIndex':_0x10e882,'isBottomTotal':!0x0,'isSubtotal':!0x0,'rowType':_0x29274f(0x1fd)})),this[_0x29274f(0x3bc)](_0x257f61,_0x5bdf8f);}static[_0x20ea74(0x229)](_0x2b7093,_0x26103d,_0x202335,_0x1add03){const _0x213a30=_0x20ea74;let {isRowMultiMeasure:_0x35b0cd,valueIndex:_0x495a63,measureCount:_0x39e1d5,measuresMap:_0x4fc74c,measureIndexesMap:_0x208da2}=_0x2b7093;if(this['shouldMultipleNode'](_0x35b0cd,_0x26103d[_0x213a30(0x4c5)](),_0x495a63)){if(this['shouldWriteLeafValuesUnderItem'](_0x2b7093)){let _0x37c83b=this[_0x213a30(0x358)](_0x2b7093,_0x26103d,_0x202335);for(let _0x5d5cd2 of _0x1add03){let _0x538c54=_0x208da2[_0x5d5cd2];this[_0x213a30(0x513)](_0x2b7093,_0x26103d,_0x37c83b,_0x538c54,_0x4fc74c[_0x5d5cd2][_0x213a30(0x24b)]),this[_0x213a30(0x469)](_0x2b7093,_0x26103d,_0x37c83b,_0x538c54),_0x37c83b++;}return _0x37c83b;}let _0x381706=_0x202335;for(let _0x408258 of _0x1add03){let _0xd4810=_0x208da2[_0x408258],_0x1fab8b=this[_0x213a30(0x4e2)](_0x2b7093,_0x26103d[_0x213a30(0x4c5)]()),_0x3daa84=this[_0x213a30(0x4cb)](_0x2b7093,_0x26103d[_0x213a30(0x4c5)]()),_0x541ee8=this['getNodeDisplayValue'](_0x26103d),_0x506c7b=_0x2b7093[_0x213a30(0x1e8)]['rowView'];_0x506c7b[_0x213a30(0x55c)](_0x381706,_0x1fab8b,_0x541ee8),this[_0x213a30(0x49d)](_0x506c7b,_0x381706,_0x1fab8b,_0x26103d),this[_0x213a30(0x510)](_0x2b7093,_0x26103d,_0x381706),_0x506c7b[_0x213a30(0x55c)](_0x381706,_0x3daa84,_0x4fc74c[_0x408258][_0x213a30(0x24b)]),_0x506c7b[_0x213a30(0x23d)](_0x381706,this['createRowInfo'](_0x26103d,{'valueIndex':_0xd4810,'isLeaf':!0x0,'rowType':_0x213a30(0x1ed)})),this['startContent'](_0x2b7093,_0x26103d,_0x381706,_0xd4810),_0x381706++;}return _0x381706;}let _0x303cb2=_0x35b0cd?_0x208da2[_0x1add03[0x0]]:-0x1,_0x389806=this['getRowLabelCol'](_0x2b7093,_0x26103d['getLevel']()),_0x14b418=this[_0x213a30(0x256)](_0x26103d),_0x341963=_0x2b7093[_0x213a30(0x1e8)]['rowView'];return _0x341963['setValue'](_0x202335,_0x389806,_0x14b418),this[_0x213a30(0x49d)](_0x341963,_0x202335,_0x389806,_0x26103d),this[_0x213a30(0x510)](_0x2b7093,_0x26103d,_0x202335),_0x341963[_0x213a30(0x23d)](_0x202335,this[_0x213a30(0x27e)](_0x26103d,{'valueIndex':_0x303cb2,'isLeaf':!0x0,'rowType':_0x213a30(0x1ed)})),_0x39e1d5>0x0&&this[_0x213a30(0x469)](_0x2b7093,_0x26103d,_0x202335,_0x303cb2),_0x202335+0x1;}static[_0x20ea74(0x1d4)](_0x4d38ec){const _0x5c8810=_0x20ea74;return _0x4d38ec['isRowMultiMeasure']&&_0x4d38ec[_0x5c8810(0x529)]>0x0;}static[_0x20ea74(0x358)](_0xb66498,_0x5d20cd,_0x47d712){const _0x368c23=_0x20ea74;let _0x6209ad=this[_0x368c23(0x4e2)](_0xb66498,_0x5d20cd[_0x368c23(0x4c5)]()),_0x139460=this[_0x368c23(0x256)](_0x5d20cd),_0x56c214=_0xb66498[_0x368c23(0x1e8)][_0x368c23(0x3d5)];return _0x56c214[_0x368c23(0x55c)](_0x47d712,_0x6209ad,_0x139460),this[_0x368c23(0x49d)](_0x56c214,_0x47d712,_0x6209ad,_0x5d20cd),this[_0x368c23(0x510)](_0xb66498,_0x5d20cd,_0x47d712),_0x56c214[_0x368c23(0x23d)](_0x47d712,this['createRowInfo'](_0x5d20cd,{'isLeaf':!0x0,'rowType':_0x368c23(0x1ed)})),_0x47d712+0x1;}static[_0x20ea74(0x513)](_0x19e897,_0x533f45,_0x197031,_0x16ad7d,_0x15806d){const _0x5cd11b=_0x20ea74;let _0x364244=this[_0x5cd11b(0x4cb)](_0x19e897,_0x533f45['getLevel']()),_0x3bce2a=_0x19e897[_0x5cd11b(0x1e8)]['rowView'];this['repeatRowLabelsForNode'](_0x19e897,_0x533f45,_0x197031),_0x3bce2a[_0x5cd11b(0x55c)](_0x197031,_0x364244,_0x15806d),_0x3bce2a[_0x5cd11b(0x23d)](_0x197031,this[_0x5cd11b(0x27e)](_0x533f45,{'valueIndex':_0x16ad7d,'isLeaf':!0x0,'isValue':!0x0,'rowType':_0x5cd11b(0x306)}));}static[_0x20ea74(0x493)](_0x3a540c,_0x24a6c0,_0x2323cd,_0x137613){const _0x4dd9cf=_0x20ea74;let {isRowMultiMeasure:_0x2b62a0,measureCount:_0x323294,measuresMap:_0x266a92,measureIndexesMap:_0x1c1816}=_0x3a540c,_0x478638=_0x3a540c[_0x4dd9cf(0x1e8)][_0x4dd9cf(0x3d5)];if(this[_0x4dd9cf(0x37c)](_0x2b62a0,_0x24a6c0['getLevel'](),_0x3a540c['valueIndex'])){let _0x521ff8=_0x2323cd;for(let _0x5ded18 of _0x137613){let _0x3e1534=_0x1c1816[_0x5ded18];_0x478638[_0x4dd9cf(0x55c)](_0x521ff8,0x0,_0x266a92[_0x5ded18][_0x4dd9cf(0x24b)]),_0x478638[_0x4dd9cf(0x53f)](_0x521ff8,0x0,0xf),_0x478638[_0x4dd9cf(0x23d)](_0x521ff8,this['createGrandTotalInfo'](_0x24a6c0,_0x3e1534)),this[_0x4dd9cf(0x223)](_0x3a540c,_0x24a6c0,_0x521ff8,_0x3e1534),_0x521ff8++;}return _0x521ff8;}if(_0x3a540c[_0x4dd9cf(0x3b7)]===0x0&&!_0x2b62a0&&_0x323294>0x0)return _0x3a540c[_0x4dd9cf(0x2ef)]!==0x0&&_0x478638[_0x4dd9cf(0x55c)](_0x2323cd,0x0,_0x3a540c[_0x4dd9cf(0x378)][0x0][_0x4dd9cf(0x24b)]),_0x478638[_0x4dd9cf(0x23d)](_0x2323cd,this[_0x4dd9cf(0x2b6)](_0x24a6c0,-0x1)),_0x3a540c[_0x4dd9cf(0x2ef)]!==0x0&&_0x478638[_0x4dd9cf(0x23d)](_0x2323cd,this[_0x4dd9cf(0x26a)](_0x3a540c,_0x478638['info'][_0x2323cd])),this[_0x4dd9cf(0x223)](_0x3a540c,_0x24a6c0,_0x2323cd,-0x1),_0x2323cd+0x1;if(_0x323294>0x0){let _0xaf86e2=_0x2b62a0?_0x1c1816[_0x137613[0x0]]:-0x1;return _0x478638[_0x4dd9cf(0x55c)](_0x2323cd,0x0,''),_0x478638[_0x4dd9cf(0x53f)](_0x2323cd,0x0,0xe),_0x478638['setInfo'](_0x2323cd,this[_0x4dd9cf(0x2b6)](_0x24a6c0,_0xaf86e2)),this[_0x4dd9cf(0x223)](_0x3a540c,_0x24a6c0,_0x2323cd,_0xaf86e2),_0x2323cd+0x1;}return _0x3a540c[_0x4dd9cf(0x3b7)]>0x0?(_0x478638[_0x4dd9cf(0x55c)](_0x2323cd,0x0,''),_0x478638[_0x4dd9cf(0x53f)](_0x2323cd,0x0,0xe),_0x478638[_0x4dd9cf(0x23d)](_0x2323cd,this[_0x4dd9cf(0x2b6)](_0x24a6c0,-0x1)),_0x2323cd+0x1):_0x2323cd;}static['layoutGrandTotalValues'](_0x1a9c17,_0x2d4d67,_0x306d48,_0x4a1ef6){const _0x54edbe=_0x20ea74;_0x1a9c17[_0x54edbe(0x3b7)]===0x0?this['startContent'](_0x1a9c17,_0x2d4d67,_0x306d48,_0x4a1ef6):this['layoutValueNodeSubtotal'](_0x1a9c17,_0x306d48);}static['createRowInfo'](_0x197e77,_0x432fa9){const _0x3eb9b0=_0x20ea74;return{'paths':_0x197e77['getPaths'](),'valueIndex':-0x1,'level':_0x197e77['getLevel'](),'tableFieldId':_0x197e77[_0x3eb9b0(0x361)](),..._0x432fa9};}static[_0x20ea74(0x2b6)](_0x53b886,_0x2da894){const _0x1d5533=_0x20ea74;return{'paths':_0x53b886[_0x1d5533(0x2bd)](),'valueIndex':_0x2da894,'isBottomTotal':!0x0,'isSubtotal':!0x0,'level':_0x53b886[_0x1d5533(0x4c5)](),'tableFieldId':'','rowType':_0x1d5533(0x2d4)};}static[_0x20ea74(0x323)](_0x37eee4){const _0x3447b0=_0x20ea74;let {rowDeep:_0x26003f,isRowMultiMeasure:_0x387f3e}=_0x37eee4;return _0x26003f===0x0?_0x37eee4[_0x3447b0(0x495)]===0x0||_0x37eee4[_0x3447b0(0x31c)]?0x0:_0x387f3e||_0x37eee4[_0x3447b0(0x2ef)]!==0x0?0x1:0x0:_0x387f3e?_0x26003f+0x1:_0x26003f;}static['getRowLabelCol'](_0x234618,_0x1188e5){const _0x881137=_0x20ea74;return this['getColIndexForRowHeader'](_0x1188e5,_0x234618[_0x881137(0x529)],_0x234618['isRowMultiMeasure']);}static[_0x20ea74(0x4cb)](_0x2c832e,_0x13e4e8){const _0x5ed378=_0x20ea74;return this['getColIndexForRowHeader'](_0x13e4e8,_0x2c832e['valueIndex'],_0x2c832e[_0x5ed378(0x397)])+0x1;}static[_0x20ea74(0x256)](_0x2d8e43){const _0x41f51f=_0x20ea74;return _0x2d8e43[_0x41f51f(0x3a3)]===0x4||_0x2d8e43['type']===0x2?Number(_0x2d8e43[_0x41f51f(0x24b)]):_0x2d8e43[_0x41f51f(0x24b)];}static[_0x20ea74(0x49d)](_0x3c600e,_0x366796,_0x465a65,_0x339635){const _0x66e7d9=_0x20ea74;_0x339635[_0x66e7d9(0x3a3)]===0x5&&_0x3c600e['setBlank'](_0x366796,_0x465a65),_0x339635[_0x66e7d9(0x3a3)]===0x6&&_0x3c600e['setOther'](_0x366796,_0x465a65);}},_0x4f3381=class{constructor(_0x4960fa,_0x2a726d,_0x3f6e63){const _0x460aff=_0x20ea74;_0x3dd15e(this,_0x460aff(0x4ac),void 0x0),_0x3dd15e(this,'_level',void 0x0),_0x3dd15e(this,_0x460aff(0x52b),void 0x0),_0x3dd15e(this,_0x460aff(0x277),void 0x0),_0x3dd15e(this,'isLeaf',void 0x0),_0x3dd15e(this,_0x460aff(0x3cc),void 0x0),_0x3dd15e(this,_0x460aff(0x24b),void 0x0),_0x3dd15e(this,_0x460aff(0x27c),[]),_0x3dd15e(this,_0x460aff(0x1fe),void 0x0),_0x3dd15e(this,'collapse',void 0x0),_0x3dd15e(this,_0x460aff(0x333),[]),_0x3dd15e(this,_0x460aff(0x388),!0x1),_0x3dd15e(this,_0x460aff(0x3a3),void 0x0),_0x3dd15e(this,_0x460aff(0x4bf),{}),this['_index']=_0x4960fa,this[_0x460aff(0x1fe)]=_0x2a726d,this[_0x460aff(0x3a3)]=_0x3f6e63;}[_0x20ea74(0x502)](){return this['collapse'];}[_0x20ea74(0x3c8)](_0x1b8baf){const _0x1fbf18=_0x20ea74;this[_0x1fbf18(0x279)]=_0x1b8baf;}[_0x20ea74(0x361)](){const _0x49489c=_0x20ea74;return this[_0x49489c(0x1fe)];}[_0x20ea74(0x407)](_0xbf8caa){const _0x468e4d=_0x20ea74;if(this[_0x468e4d(0x388)])for(let _0x4be3de of this[_0x468e4d(0x333)]){let _0x5e3ac7=this[_0x468e4d(0x4bf)][_0x4be3de];_0xbf8caa(_0x5e3ac7);}else{let _0x300117=Object[_0x468e4d(0x4b4)](this['_nodes']);for(let _0x5aab11=0x0;_0x5aab11<_0x300117[_0x468e4d(0x41f)];_0x5aab11++){let _0x27cb9d=this['_nodes'][_0x300117[_0x5aab11]];_0xbf8caa(_0x27cb9d);}}}[_0x20ea74(0x4d8)](){const _0x1759ad=_0x20ea74;return this[_0x1759ad(0x4ac)];}[_0x20ea74(0x2c2)](_0x31d288){const _0x57522c=_0x20ea74;return this[_0x57522c(0x4bf)][_0x31d288]!==void 0x0;}[_0x20ea74(0x38d)](_0x16893a){const _0x32eda6=_0x20ea74;this[_0x32eda6(0x52b)]=_0x16893a;}[_0x20ea74(0x462)](_0x6caf3){const _0x270bf0=_0x20ea74;this[_0x270bf0(0x32d)]=_0x6caf3;}['getLevel'](){const _0x55ffd3=_0x20ea74;return this[_0x55ffd3(0x32d)];}[_0x20ea74(0x2f9)](_0x4c2143){this['paths']=_0x4c2143;}[_0x20ea74(0x2bd)](){const _0x5c1d2c=_0x20ea74;return this[_0x5c1d2c(0x277)];}[_0x20ea74(0x49a)](){this['isLeaf']=!0x0;}[_0x20ea74(0x21a)](){const _0x12bc65=_0x20ea74;return!!this[_0x12bc65(0x380)];}[_0x20ea74(0x4ba)](_0x3369dd){this['name']=_0x3369dd;}['addNode'](_0x16fba6,_0x14370e,_0x39c2fc,_0x3c73b0,_0x475c74=_0x14370e){const _0x30bcf9=_0x20ea74;this[_0x30bcf9(0x4bf)][_0x14370e]=_0x16fba6,_0x16fba6[_0x30bcf9(0x4ba)](_0x14370e),_0x16fba6[_0x30bcf9(0x24b)]=_0x475c74,_0x16fba6['displayPaths']=this[_0x30bcf9(0x27c)][_0x30bcf9(0x2b2)](_0x475c74),_0x16fba6[_0x30bcf9(0x38d)](this[_0x30bcf9(0x4ac)]),_0x16fba6['setLevel'](this[_0x30bcf9(0x32d)]+0x1),_0x16fba6['setPaths'](this[_0x30bcf9(0x277)][_0x30bcf9(0x2b2)](_0x14370e)),_0x39c2fc&&(this[_0x30bcf9(0x4a4)](_0x14370e,_0x39c2fc,_0x3c73b0),this['hasSort']=!0x0);}[_0x20ea74(0x4a4)](_0x295241,_0x61bbb1,_0x5e5776){const _0x468803=_0x20ea74;let _0xba2684=_0x61bbb1[_0x295241],_0x5992f9=this['sortedList'],_0x378500=0x0,_0x5d54d9=_0x5992f9[_0x468803(0x41f)],_0x169baa=_0x5e5776!==0x2;for(;_0x378500<_0x5d54d9;){let _0x29a1da=Math[_0x468803(0x48d)]((_0x378500+_0x5d54d9)/0x2);(_0x169baa?_0x61bbb1[_0x5992f9[_0x29a1da]]-_0xba2684:_0xba2684-_0x61bbb1[_0x5992f9[_0x29a1da]])<0x0?_0x378500=_0x29a1da+0x1:_0x5d54d9=_0x29a1da;}_0x5992f9[_0x468803(0x42f)](_0x378500,0x0,_0x295241);}[_0x20ea74(0x2e2)](_0x4c5d62,_0xbfda59,_0x205aea,_0x451776){const _0xcb1677=_0x20ea74;let _0x218ec5=Object[_0xcb1677(0x341)](this[_0xcb1677(0x4bf)]);_0x218ec5['some'](_0x3090a4=>_0x3090a4[_0xcb1677(0x1fe)]===_0x4c5d62)&&(this[_0xcb1677(0x333)]=_0x218ec5[_0xcb1677(0x51f)]((_0x8623cf,_0x5c1100)=>({'node':_0x8623cf,'index':_0x5c1100}))[_0xcb1677(0x3e6)]((_0x427f0d,_0xe5bbd5)=>{const _0x56a563=_0xcb1677;let _0xc06ad5=_0x205aea(_0x427f0d[_0x56a563(0x473)][_0x56a563(0x4ac)]),_0x3f3f4a=_0x205aea(_0xe5bbd5[_0x56a563(0x473)][_0x56a563(0x4ac)]);return _0xc06ad5===_0x3f3f4a?_0x451776(_0x427f0d[_0x56a563(0x473)][_0x56a563(0x24b)],_0xe5bbd5[_0x56a563(0x473)][_0x56a563(0x24b)])||_0x427f0d[_0x56a563(0x3ba)]-_0xe5bbd5[_0x56a563(0x3ba)]:_0xc06ad5===void 0x0?0x1:_0x3f3f4a===void 0x0?-0x1:_0xbfda59===0x2?_0x3f3f4a-_0xc06ad5:_0xc06ad5-_0x3f3f4a;})[_0xcb1677(0x51f)](({node:_0x2fc2d8})=>_0x2fc2d8[_0xcb1677(0x3cc)]),this[_0xcb1677(0x388)]=!0x0);for(let _0x1a394b of _0x218ec5)_0x1a394b['sortChildrenByValue'](_0x4c5d62,_0xbfda59,_0x205aea,_0x451776);}[_0x20ea74(0x4d7)](){const _0x2a2b7a=_0x20ea74;this['sortedList']=[],this[_0x2a2b7a(0x388)]=!0x1,Object[_0x2a2b7a(0x341)](this[_0x2a2b7a(0x4bf)])[_0x2a2b7a(0x559)](_0x44d6d0=>_0x44d6d0['resetSort']());}[_0x20ea74(0x288)](_0x14f30f,_0x195364,_0x61c046){const _0x4683d7=_0x20ea74;let _0x427149=Object[_0x4683d7(0x341)](this[_0x4683d7(0x4bf)]);_0x427149[_0x4683d7(0x253)](_0x477346=>_0x477346[_0x4683d7(0x1fe)]===_0x14f30f)&&(this[_0x4683d7(0x333)]=_0x427149[_0x4683d7(0x51f)]((_0x3b7a45,_0x4c34b1)=>({'node':_0x3b7a45,'index':_0x4c34b1}))[_0x4683d7(0x3e6)]((_0x46bffb,_0x210d5b)=>{const _0x13c5c2=_0x4683d7;let _0x1e519f=_0x61c046[_0x46bffb['node'][_0x13c5c2(0x3cc)]],_0x497dab=_0x61c046[_0x210d5b[_0x13c5c2(0x473)]['name']];return _0x1e519f===_0x497dab?_0x46bffb[_0x13c5c2(0x3ba)]-_0x210d5b['index']:_0x1e519f===void 0x0?0x1:_0x497dab===void 0x0?-0x1:_0x195364===0x2?_0x497dab-_0x1e519f:_0x1e519f-_0x497dab;})[_0x4683d7(0x51f)](({node:_0x8141e3})=>_0x8141e3[_0x4683d7(0x3cc)]),this[_0x4683d7(0x388)]=!0x0),_0x427149[_0x4683d7(0x559)](_0xd86735=>_0xd86735['sortChildrenByLabel'](_0x14f30f,_0x195364,_0x61c046));}['getNode'](_0x300472){const _0x45cba0=_0x20ea74;return this[_0x45cba0(0x4bf)][_0x300472];}};let _0x33bff7={0x1:{'errorType':0x1},0x2:{'errorType':0x2},0x3:{'errorType':0x3},0x4:{'errorType':0x4},0x5:{'errorType':0x5}},_0x12d1a8=_0x33bff7[0x1],_0x120d4c=_0x33bff7[0x2];function _0x4f3354(_0xc1440e){const _0x27afce=_0x20ea74;return typeof _0xc1440e==_0x27afce(0x35c);}var _0x53a920=class{constructor(_0x352954,_0x33fb1f){const _0x2d2a8d=_0x20ea74;this[_0x2d2a8d(0x54a)]=_0x352954,this[_0x2d2a8d(0x344)]=_0x33fb1f,_0x3dd15e(this,_0x2d2a8d(0x2b5),{}),_0x3dd15e(this,_0x2d2a8d(0x357),[]),_0x3dd15e(this,_0x2d2a8d(0x2f6),[]),_0x3dd15e(this,_0x2d2a8d(0x468),[]),_0x3dd15e(this,_0x2d2a8d(0x46e),void 0x0),_0x3dd15e(this,_0x2d2a8d(0x309),[]),_0x3dd15e(this,_0x2d2a8d(0x1f8),new Map()),_0x3dd15e(this,_0x2d2a8d(0x410),new Int32Array()),_0x3dd15e(this,_0x2d2a8d(0x449),void 0x0),_0x3dd15e(this,_0x2d2a8d(0x49b),void 0x0),_0x3dd15e(this,_0x2d2a8d(0x392),-0x1),_0x3dd15e(this,'_parentRowTotalIndexes',void 0x0),_0x3dd15e(this,_0x2d2a8d(0x435),void 0x0),_0x3dd15e(this,_0x2d2a8d(0x554),new Map()),_0x3dd15e(this,_0x2d2a8d(0x46d),{}),_0x3dd15e(this,_0x2d2a8d(0x2ae),{}),_0x3dd15e(this,'_peerUnionsByValueField',{}),_0x3dd15e(this,_0x2d2a8d(0x4f4),{});let _0x5b9aec=[..._0x33fb1f[_0x2d2a8d(0x252)],..._0x33fb1f[_0x2d2a8d(0x453)]];this[_0x2d2a8d(0x46e)]=_0x5b9aec[_0x2d2a8d(0x41f)];for(let _0x2124a3=0x0;_0x2124a3<_0x5b9aec['length'];_0x2124a3++){let _0x181c75=_0x5b9aec[_0x2124a3];this[_0x2d2a8d(0x2b5)][_0x181c75['id']]=_0x2124a3,this[_0x2d2a8d(0x357)][_0x2124a3]=_0x352954[_0x2d2a8d(0x484)][_0x181c75[_0x2d2a8d(0x34a)]]['field']['getTupleItemsMap'](),_0x2124a3<_0x33fb1f[_0x2d2a8d(0x252)][_0x2d2a8d(0x41f)]?this[_0x2d2a8d(0x2f6)][_0x2d2a8d(0x3b3)](_0x2124a3):this[_0x2d2a8d(0x468)][_0x2d2a8d(0x3b3)](_0x2124a3);}}[_0x20ea74(0x3df)](){const _0x36da2c=_0x20ea74;this[_0x36da2c(0x3f0)]();let _0x1511e6=new Set(this['_queryData'][_0x36da2c(0x378)]['map'](_0xeff409=>{const _0x431a3a=_0x36da2c;var _0x97774e;return(_0x97774e=_0xeff409[_0x431a3a(0x4a3)])==null?void 0x0:_0x97774e[_0x431a3a(0x3a3)];}));this[_0x36da2c(0x485)](_0x1511e6),this[_0x36da2c(0x46c)](_0x1511e6),this[_0x36da2c(0x1dc)](),this[_0x36da2c(0x39d)]();let _0xaf8f0c=new Int32Array(this[_0x36da2c(0x46e)]);_0xaf8f0c[_0x36da2c(0x424)](-0x1),this['_grandTotalIndex']=this['_tupleByCoordinate'][_0x36da2c(0x359)](this[_0x36da2c(0x264)](_0xaf8f0c))??-0x1;}['getValue'](_0x53ac9a,_0x696bfe){const _0x2b96cc=_0x20ea74;var _0x3173b1;let _0x4f60fb=this['_getRawValue'](_0x53ac9a,_0x696bfe),_0x16f962=((_0x3173b1=_0x696bfe[_0x2b96cc(0x4a3)])==null?void 0x0:_0x3173b1['type'])??0x1;if(this['_isParentType'](_0x16f962))return this[_0x2b96cc(0x1d1)](_0x16f962,_0x4f60fb,_0x53ac9a,_0x696bfe);if(this['_isPeerType'](_0x16f962))return this[_0x2b96cc(0x582)](_0x16f962,_0x4f60fb,_0x53ac9a,_0x696bfe);if(this[_0x2b96cc(0x236)](_0x16f962)){let _0x4a88c6=this[_0x2b96cc(0x4f4)][_0x696bfe['id']];return this[_0x2b96cc(0x450)](_0x4a88c6,_0x53ac9a);}switch(_0x16f962){case 0x4:return this['_divide'](_0x4f60fb,this[_0x2b96cc(0x3d4)](this[_0x2b96cc(0x392)],_0x696bfe));case 0x3:return this[_0x2b96cc(0x2ad)](_0x4f60fb,this[_0x2b96cc(0x325)](this['_rowTotalIndexes'],_0x53ac9a,_0x696bfe));case 0x2:return this[_0x2b96cc(0x2ad)](_0x4f60fb,this[_0x2b96cc(0x325)](this[_0x2b96cc(0x49b)],_0x53ac9a,_0x696bfe));case 0x8:return this['_getIndexValue'](_0x4f60fb,_0x53ac9a,_0x696bfe);default:return _0x4f60fb;}}[_0x20ea74(0x1fb)](){const _0x2442d1=_0x20ea74;for(let _0x2a7fcd of Object[_0x2442d1(0x4b4)](this[_0x2442d1(0x51e)]))this['_peerUnionsByValueField'][_0x2a7fcd][_0x2442d1(0x200)](),delete this[_0x2442d1(0x51e)][_0x2a7fcd];this[_0x2442d1(0x309)][_0x2442d1(0x41f)]=0x0,this[_0x2442d1(0x1f8)]['clear'](),this[_0x2442d1(0x410)]=new Int32Array(),this[_0x2442d1(0x449)]=void 0x0,this[_0x2442d1(0x49b)]=void 0x0,this[_0x2442d1(0x460)]=void 0x0,this['_parentColumnTotalIndexes']=void 0x0,this[_0x2442d1(0x554)]['clear']();for(let _0x3ad6f9 of Object[_0x2442d1(0x4b4)](this[_0x2442d1(0x46d)]))delete this[_0x2442d1(0x46d)][_0x3ad6f9];for(let _0x1615aa of Object[_0x2442d1(0x4b4)](this[_0x2442d1(0x2ae)]))delete this[_0x2442d1(0x2ae)][_0x1615aa];for(let _0x222260 of Object[_0x2442d1(0x4b4)](this[_0x2442d1(0x4f4)]))delete this[_0x2442d1(0x4f4)][_0x222260];this['_grandTotalIndex']=-0x1;}[_0x20ea74(0x485)](_0x16cbfa){const _0x90ed6c=_0x20ea74;let _0x27c7a2=_0x16cbfa[_0x90ed6c(0x22d)](0x3)||_0x16cbfa['has'](0x8),_0x574dab=_0x16cbfa['has'](0x2)||_0x16cbfa[_0x90ed6c(0x22d)](0x8);_0x27c7a2&&(this[_0x90ed6c(0x449)]=this['_buildTotalIndexes'](this[_0x90ed6c(0x468)])),_0x574dab&&(this[_0x90ed6c(0x49b)]=this[_0x90ed6c(0x363)](this[_0x90ed6c(0x2f6)]));}['_prepareParentIndexes'](_0x5a1999){const _0x3e79e0=_0x20ea74;_0x5a1999[_0x3e79e0(0x22d)](0x6)&&(this[_0x3e79e0(0x460)]=this[_0x3e79e0(0x1f7)](this[_0x3e79e0(0x2f6)])),_0x5a1999[_0x3e79e0(0x22d)](0x5)&&(this['_parentColumnTotalIndexes']=this[_0x3e79e0(0x1f7)](this[_0x3e79e0(0x468)]));for(let _0x4143b0 of this[_0x3e79e0(0x344)][_0x3e79e0(0x378)]){var _0x115f0e,_0x5e3800;if(((_0x115f0e=_0x4143b0['showDataAs'])==null?void 0x0:_0x115f0e[_0x3e79e0(0x3a3)])!==0xe&&((_0x5e3800=_0x4143b0[_0x3e79e0(0x4a3)])==null?void 0x0:_0x5e3800[_0x3e79e0(0x3a3)])!==0x7)continue;let _0x1755b8=this[_0x3e79e0(0x4fb)](_0x4143b0['showDataAs'][_0x3e79e0(0x2f8)]);if(_0x1755b8<0x0||(this[_0x3e79e0(0x46d)][_0x4143b0['id']]=_0x1755b8,this['_parentFieldIndexes']['has'](_0x1755b8)))continue;let _0x477f4c=_0x1755b8<this[_0x3e79e0(0x2f6)][_0x3e79e0(0x41f)]?this[_0x3e79e0(0x2f6)]:this[_0x3e79e0(0x468)];this[_0x3e79e0(0x554)][_0x3e79e0(0x57f)](_0x1755b8,this['_buildParentIndexes'](_0x477f4c,_0x1755b8));}}[_0x20ea74(0x1dc)](){const _0x8e7f2e=_0x20ea74;let _0x199aa2=new Map();for(let _0x245390 of this[_0x8e7f2e(0x344)][_0x8e7f2e(0x378)]){let _0x76024e=_0x245390[_0x8e7f2e(0x4a3)];if(!_0x76024e||!this[_0x8e7f2e(0x39b)](_0x76024e[_0x8e7f2e(0x3a3)]))continue;let _0x43bbbe=this[_0x8e7f2e(0x4fb)](_0x76024e['baseFieldId']);if(_0x43bbbe<0x0)continue;let _0x332d0f=_0x76024e[_0x8e7f2e(0x244)]??0x1,_0x51d1e7=[...this['_queryData']['rowQueryInfo'],...this[_0x8e7f2e(0x344)]['colQueryInfo']][_0x43bbbe],_0x1b48af=this[_0x8e7f2e(0x54a)][_0x8e7f2e(0x484)][_0x51d1e7[_0x8e7f2e(0x34a)]][_0x8e7f2e(0x4c7)][_0x8e7f2e(0x51b)](_0x76024e[_0x8e7f2e(0x4d5)]);if(_0x332d0f===0x1&&_0x1b48af[_0x8e7f2e(0x41f)]>0x1){let _0x5b4f6e=new Map();for(let _0x50a59a=0x0;_0x50a59a<this[_0x8e7f2e(0x309)][_0x8e7f2e(0x41f)];_0x50a59a++){let _0x47cdd3=this[_0x8e7f2e(0x309)][_0x50a59a];if(!_0x47cdd3||_0x47cdd3[_0x43bbbe]<0x0)continue;let _0x33c488=new _0x4e9c60(),_0x2712bc=0x0,_0x35a9e4=!0x1;for(let _0x45d44f of _0x1b48af){let _0xccd510=_0x47cdd3['slice']();_0xccd510[_0x43bbbe]=this['_itemIndexMaps'][_0x43bbbe][_0x45d44f];let _0x7b1b93=this[_0x8e7f2e(0x1f8)]['get'](this[_0x8e7f2e(0x264)](_0xccd510));_0x7b1b93!==void 0x0&&(_0x33c488['unionTupleInfo'](this[_0x8e7f2e(0x54a)][_0x8e7f2e(0x444)][_0x7b1b93][_0x8e7f2e(0x368)][_0x245390[_0x8e7f2e(0x34a)]][_0x8e7f2e(0x221)]()),_0x35a9e4||=_0x7b1b93===this[_0x8e7f2e(0x47e)](_0x50a59a),_0x2712bc++);}_0x2712bc&&_0x5b4f6e['set'](_0x50a59a,{'tuple':_0x33c488,'includesCurrent':_0x35a9e4});}this['_peerUnionsByValueField'][_0x245390['id']]=_0x5b4f6e;continue;}let _0x10940c=_0x43bbbe+':'+_0x332d0f+':'+_0x76024e[_0x8e7f2e(0x4d5)],_0x95d81c=_0x199aa2[_0x8e7f2e(0x359)](_0x10940c);_0x95d81c||(_0x95d81c=this[_0x8e7f2e(0x3b8)](_0x43bbbe,_0x76024e['baseItem'],_0x332d0f),_0x199aa2['set'](_0x10940c,_0x95d81c)),this['_peerIndexesByValueField'][_0x245390['id']]=_0x95d81c;}}[_0x20ea74(0x39d)](){const _0xc7dc3f=_0x20ea74;for(let _0x29fdc3 of this[_0xc7dc3f(0x344)][_0xc7dc3f(0x378)]){let _0x657e4f=_0x29fdc3['showDataAs'];if(!_0x657e4f)continue;let _0x32b27d=this[_0xc7dc3f(0x4fb)](_0x657e4f[_0xc7dc3f(0x2f8)]);_0x32b27d<0x0||(_0x657e4f[_0xc7dc3f(0x3a3)]===0xb||_0x657e4f['type']===0xc?this[_0xc7dc3f(0x4f4)][_0x29fdc3['id']]=this[_0xc7dc3f(0x26b)](_0x29fdc3,_0x32b27d,_0x657e4f[_0xc7dc3f(0x3a3)]===0xc):(_0x657e4f[_0xc7dc3f(0x3a3)]===0xf||_0x657e4f[_0xc7dc3f(0x3a3)]===0x10)&&(this[_0xc7dc3f(0x4f4)][_0x29fdc3['id']]=this[_0xc7dc3f(0x422)](_0x29fdc3,_0x32b27d,_0x657e4f[_0xc7dc3f(0x3a3)]===0xf)));}}[_0x20ea74(0x3f0)](){const _0x4f8f83=_0x20ea74;let _0x775130=this[_0x4f8f83(0x54a)][_0x4f8f83(0x444)][_0x4f8f83(0x41f)];this[_0x4f8f83(0x410)]=new Int32Array(_0x775130),this[_0x4f8f83(0x410)]['fill'](-0x1);for(let [_0x12d01a,_0x1a2de7]of Object[_0x4f8f83(0x3af)](this[_0x4f8f83(0x54a)][_0x4f8f83(0x3bb)])){let _0x429af2=new Int32Array(this[_0x4f8f83(0x46e)]);_0x429af2[_0x4f8f83(0x424)](-0x1),this[_0x4f8f83(0x4d2)](_0x12d01a,_0x429af2);let _0x58c889=this[_0x4f8f83(0x264)](_0x429af2),_0x20bd39=this[_0x4f8f83(0x1f8)][_0x4f8f83(0x359)](_0x58c889);this[_0x4f8f83(0x309)][_0x1a2de7]=_0x429af2,_0x20bd39===void 0x0?(this[_0x4f8f83(0x1f8)]['set'](_0x58c889,_0x1a2de7),this[_0x4f8f83(0x410)][_0x1a2de7]=_0x1a2de7):this[_0x4f8f83(0x410)][_0x1a2de7]=_0x20bd39;}}['_readPathIntoCoordinate'](_0x5b261d,_0x17d672){const _0x29eb63=_0x20ea74;let _0xf71b39=_0x5b261d[_0x29eb63(0x290)](_0x209170['TUPLE_PLACEHOLDER']);for(let _0x3d497d of _0xf71b39){let _0x2ff6df=_0x3d497d['split'](_0x209170[_0x29eb63(0x26f)]);for(let _0x3a9c9d=0x0;_0x3a9c9d<_0x2ff6df[_0x29eb63(0x41f)]-0x1;_0x3a9c9d++){let _0x1c57d7=this['_fieldIndexById'][_0x2ff6df[_0x3a9c9d]];if(_0x1c57d7===void 0x0)continue;let _0x5df860=this['_itemIndexMaps'][_0x1c57d7][_0x2ff6df[_0x3a9c9d+0x1]];_0x5df860!==void 0x0&&(_0x17d672[_0x1c57d7]=_0x5df860),_0x3a9c9d++;}}}[_0x20ea74(0x363)](_0x8ac6be){const _0x15aa0b=_0x20ea74;let _0x50f9cc=new Int32Array(this[_0x15aa0b(0x54a)]['tuples'][_0x15aa0b(0x41f)]);_0x50f9cc[_0x15aa0b(0x424)](-0x1);for(let _0x87b235=0x0;_0x87b235<this[_0x15aa0b(0x309)][_0x15aa0b(0x41f)];_0x87b235++){let _0x5d9bb9=this['_coordinates'][_0x87b235];if(!_0x5d9bb9)continue;let _0x96cba9=_0x5d9bb9[_0x15aa0b(0x340)]();for(let _0x11a256 of _0x8ac6be)_0x96cba9[_0x11a256]=-0x1;_0x50f9cc[_0x87b235]=this[_0x15aa0b(0x1f8)]['get'](this['_getCoordinateKey'](_0x96cba9))??-0x1;}return _0x50f9cc;}[_0x20ea74(0x1f7)](_0x3a30eb,_0x4d6693){const _0x514efb=_0x20ea74;let _0x2aa48=new Int32Array(this['_summaryManager'][_0x514efb(0x444)]['length']);_0x2aa48[_0x514efb(0x424)](-0x1);let _0x2ff835=_0x4d6693===void 0x0?-0x1:_0x3a30eb[_0x514efb(0x576)](_0x4d6693);for(let _0x597fe3=0x0;_0x597fe3<this[_0x514efb(0x309)][_0x514efb(0x41f)];_0x597fe3++){let _0x5a979d=this['_coordinates'][_0x597fe3];if(!_0x5a979d)continue;if(_0x4d6693!==void 0x0){if(_0x2ff835<0x0||_0x5a979d[_0x4d6693]<0x0)continue;let _0x4a873b=_0x5a979d[_0x514efb(0x340)]();for(let _0x56d4e0=_0x2ff835+0x1;_0x56d4e0<_0x3a30eb['length'];_0x56d4e0++)_0x4a873b[_0x3a30eb[_0x56d4e0]]=-0x1;_0x2aa48[_0x597fe3]=this['_tupleByCoordinate'][_0x514efb(0x359)](this[_0x514efb(0x264)](_0x4a873b))??-0x1;continue;}let _0x4dd857=-0x1;if(_0x4d6693===void 0x0){for(let _0x789139=_0x3a30eb[_0x514efb(0x41f)]-0x1;_0x789139>=0x0;_0x789139--)if(_0x5a979d[_0x3a30eb[_0x789139]]>=0x0){_0x4dd857=_0x789139;break;}}if(_0x4dd857<0x0){_0x2aa48[_0x597fe3]=this[_0x514efb(0x410)][_0x597fe3];continue;}let _0x1663d5=_0x5a979d['slice']();for(let _0x4095b8=_0x4dd857;_0x4095b8<_0x3a30eb[_0x514efb(0x41f)];_0x4095b8++)_0x1663d5[_0x3a30eb[_0x4095b8]]=-0x1;_0x2aa48[_0x597fe3]=this[_0x514efb(0x1f8)][_0x514efb(0x359)](this[_0x514efb(0x264)](_0x1663d5))??-0x1;}return _0x2aa48;}[_0x20ea74(0x4fb)](_0x1ddda5){const _0x22a7d6=_0x20ea74;let _0x15847f=this['_fieldIndexById'][_0x1ddda5];return _0x15847f===void 0x0?[...this[_0x22a7d6(0x344)][_0x22a7d6(0x252)],...this[_0x22a7d6(0x344)][_0x22a7d6(0x453)]][_0x22a7d6(0x326)](_0x3d2f44=>_0x3d2f44['dataFieldId']===_0x1ddda5):_0x15847f;}[_0x20ea74(0x4e6)](_0x561af1){return _0x561af1===0x6||_0x561af1===0x5||_0x561af1===0x7||_0x561af1===0xe;}['_isPeerType'](_0x3f2730){return _0x3f2730===0x9||_0x3f2730===0xa||_0x3f2730===0xd;}[_0x20ea74(0x236)](_0x503653){return _0x503653===0xb||_0x503653===0xc||_0x503653===0xf||_0x503653===0x10;}[_0x20ea74(0x1d1)](_0x317ea3,_0x2179d9,_0x1243cd,_0x1c65e1){const _0x1823aa=_0x20ea74;if(_0x317ea3===0x6)return this[_0x1823aa(0x4ab)](_0x2179d9,this[_0x1823aa(0x325)](this[_0x1823aa(0x460)],_0x1243cd,_0x1c65e1));if(_0x317ea3===0x5)return this[_0x1823aa(0x4ab)](_0x2179d9,this[_0x1823aa(0x325)](this[_0x1823aa(0x435)],_0x1243cd,_0x1c65e1));let _0x78cceb=this['_parentFieldIndexByValueField'][_0x1c65e1['id']];return this['_divideParent'](_0x2179d9,this[_0x1823aa(0x325)](this[_0x1823aa(0x554)][_0x1823aa(0x359)](_0x78cceb),_0x1243cd,_0x1c65e1));}[_0x20ea74(0x582)](_0x41e3d2,_0x388a4c,_0x3634c6,_0x30b9a9){const _0x1464e5=_0x20ea74;var _0x1b414d;let _0xe86504=(_0x1b414d=this[_0x1464e5(0x51e)][_0x30b9a9['id']])==null?void 0x0:_0x1b414d[_0x1464e5(0x359)](this[_0x1464e5(0x47e)](_0x3634c6));if(_0xe86504){let _0x512bcf=_0xe86504[_0x1464e5(0x368)][_0x1464e5(0x40e)](_0x30b9a9[_0x1464e5(0x1fd)]);return _0x41e3d2===0xd?this[_0x1464e5(0x2ad)](_0x388a4c,_0x512bcf):_0xe86504['includesCurrent']?void 0x0:_0x41e3d2===0x9?this['_difference'](_0x388a4c,_0x512bcf):this[_0x1464e5(0x299)](_0x388a4c,_0x512bcf);}let _0x20d0b5=this['_getIndexedTupleIndex'](this[_0x1464e5(0x2ae)][_0x30b9a9['id']],_0x3634c6);if(_0x41e3d2===0xd)return this[_0x1464e5(0x2ad)](_0x388a4c,this[_0x1464e5(0x3d4)](_0x20d0b5,_0x30b9a9));if(_0x20d0b5<0x0||_0x20d0b5===this['_getCanonicalTupleIndex'](_0x3634c6))return;let _0x24ce5f=this[_0x1464e5(0x3d4)](_0x20d0b5,_0x30b9a9);return _0x41e3d2===0x9?this[_0x1464e5(0x37d)](_0x388a4c,_0x24ce5f):this['_percentDifference'](_0x388a4c,_0x24ce5f);}[_0x20ea74(0x3b8)](_0x573206,_0x4c303a,_0x4a5760){const _0xa28957=_0x20ea74;let _0x3eb2e4=new Int32Array(this['_summaryManager'][_0xa28957(0x444)][_0xa28957(0x41f)]);_0x3eb2e4[_0xa28957(0x424)](-0x1);let _0x5c709d=_0x573206<this[_0xa28957(0x2f6)]['length']?this['_rowFieldIndexes']:this[_0xa28957(0x468)],_0x904749=_0x5c709d[_0xa28957(0x576)](_0x573206),_0x21f2c4=_0x4a5760===0x1?void 0x0:this[_0xa28957(0x350)](_0x573206,_0x5c709d,_0x904749),_0x383331=[...this[_0xa28957(0x344)][_0xa28957(0x252)],...this[_0xa28957(0x344)]['colQueryInfo']][_0x573206],_0x202cb6=this[_0xa28957(0x54a)][_0xa28957(0x484)][_0x383331['dataFieldId']]['field'][_0xa28957(0x51b)](_0x4c303a)[0x0],_0x207d9b=this[_0xa28957(0x357)][_0x573206][_0x202cb6];for(let _0x2f7269=0x0;_0x2f7269<this[_0xa28957(0x309)][_0xa28957(0x41f)];_0x2f7269++){let _0x391da2=this['_coordinates'][_0x2f7269];if(!_0x391da2||_0x391da2[_0x573206]<0x0)continue;let _0x30d1f6=_0x207d9b;if(_0x21f2c4){let _0x4ea48d=this[_0xa28957(0x448)](_0x391da2,_0x5c709d,_0x904749),_0x12f67f=_0x21f2c4['get'](_0x4ea48d),_0x44ac99=_0x12f67f==null?void 0x0:_0x12f67f['positions'][_0xa28957(0x359)](_0x391da2[_0x573206]);if(_0x12f67f&&_0x44ac99!==void 0x0){let _0x147bac=_0x4a5760===0x2?-0x1:0x1;_0x30d1f6=_0x12f67f['items'][_0x44ac99+_0x147bac];}else _0x30d1f6=void 0x0;}if(_0x30d1f6===void 0x0)continue;let _0x46763b=_0x391da2[_0xa28957(0x340)]();_0x46763b[_0x573206]=_0x30d1f6,_0x3eb2e4[_0x2f7269]=this[_0xa28957(0x1f8)][_0xa28957(0x359)](this['_getCoordinateKey'](_0x46763b))??-0x1;}return _0x3eb2e4;}[_0x20ea74(0x350)](_0x374caf,_0xbb3cbf,_0x566974){const _0x13b36f=_0x20ea74;let _0x1951e4=new Map(),_0x147904=_0x374caf<this[_0x13b36f(0x2f6)][_0x13b36f(0x41f)]?this[_0x13b36f(0x54a)][_0x13b36f(0x2eb)]:this[_0x13b36f(0x54a)][_0x13b36f(0x4eb)],_0x4de8d8=_0x41ecf7=>{const _0x31c3f5=_0x13b36f;if(_0x41ecf7['getLevel']()===_0x566974){let _0x30a15f=[],_0x3fd3f1=new Map();_0x41ecf7[_0x31c3f5(0x407)](_0x9e4885=>{const _0x1a6d07=_0x31c3f5;let _0x136f90=this[_0x1a6d07(0x357)][_0x374caf][_0x9e4885[_0x1a6d07(0x3cc)]];_0x136f90!==void 0x0&&(_0x3fd3f1['set'](_0x136f90,_0x30a15f[_0x1a6d07(0x41f)]),_0x30a15f['push'](_0x136f90));}),_0x1951e4[_0x31c3f5(0x57f)](this['_getParentNodeKey'](_0x41ecf7,_0xbb3cbf,_0x566974),{'items':_0x30a15f,'positions':_0x3fd3f1});}else _0x41ecf7[_0x31c3f5(0x407)](_0x4de8d8);};return _0x4de8d8(_0x147904),_0x1951e4;}[_0x20ea74(0x550)](_0x448128,_0x2d6eb1,_0x305fa8){const _0x426040=_0x20ea74;let _0x119d9f=_0x448128[_0x426040(0x2bd)](),_0x506833=[];for(let _0x25cc7a=0x0;_0x25cc7a<_0x305fa8;_0x25cc7a++)_0x506833['push'](this['_itemIndexMaps'][_0x2d6eb1[_0x25cc7a]][_0x119d9f[_0x25cc7a]]);return _0x506833['join'](',');}[_0x20ea74(0x448)](_0x2bcb5d,_0x653682,_0x1f6f70){const _0xcf6ace=_0x20ea74;let _0x28d420=[];for(let _0x402f4d=0x0;_0x402f4d<_0x1f6f70;_0x402f4d++)_0x28d420['push'](_0x2bcb5d[_0x653682[_0x402f4d]]);return _0x28d420[_0xcf6ace(0x398)](',');}[_0x20ea74(0x4ef)](_0x22fc8c){const _0xeaa6f6=_0x20ea74;let _0x582ded=_0x22fc8c<this[_0xeaa6f6(0x2f6)][_0xeaa6f6(0x41f)]?this[_0xeaa6f6(0x2f6)]:this[_0xeaa6f6(0x468)],_0x48c52d=_0x582ded['indexOf'](_0x22fc8c),_0xae5db=this[_0xeaa6f6(0x350)](_0x22fc8c,_0x582ded,_0x48c52d),_0x18ed77=new Map();for(let _0x29a9ce of this[_0xeaa6f6(0x1f8)]['values']()){var _0x2239de;let _0x3d91c4=this[_0xeaa6f6(0x309)][_0x29a9ce];if(!_0x3d91c4||_0x3d91c4[_0x22fc8c]<0x0)continue;let _0x3bb3a5=this['_getParentGroupKey'](_0x3d91c4,_0x582ded,_0x48c52d),_0x2f993a=(_0x2239de=_0xae5db['get'](_0x3bb3a5))==null?void 0x0:_0x2239de['positions'][_0xeaa6f6(0x359)](_0x3d91c4[_0x22fc8c]);if(_0x2f993a===void 0x0)continue;let _0xc5247e=this[_0xeaa6f6(0x1f1)](_0x3d91c4,_0x22fc8c),_0xf0c386=_0x18ed77['get'](_0xc5247e);_0xf0c386||(_0xf0c386=[],_0x18ed77[_0xeaa6f6(0x57f)](_0xc5247e,_0xf0c386)),_0xf0c386[_0x2f993a]=_0x29a9ce;}return Array[_0xeaa6f6(0x33d)](_0x18ed77[_0xeaa6f6(0x341)]());}['_getCoordinateKeyWithoutField'](_0x411deb,_0x341bbb){const _0x20d033=_0x20ea74;let _0x585615=[];for(let _0x5a20ff=0x0;_0x5a20ff<_0x411deb[_0x20d033(0x41f)];_0x5a20ff++)_0x5a20ff!==_0x341bbb&&_0x585615[_0x20d033(0x3b3)](_0x411deb[_0x5a20ff]);return _0x585615[_0x20d033(0x398)](',');}[_0x20ea74(0x26b)](_0xfdb767,_0x5e739b,_0xe946b9){const _0x122649=_0x20ea74;let _0x3e2ae1=this['_createDerivedBuffer']();for(let _0x218e48 of this[_0x122649(0x4ef)](_0x5e739b)){let _0x548c4a=0x0;if(_0xe946b9)for(let _0x47dd1a of _0x218e48){let _0x331d08=this[_0x122649(0x3d4)](_0x47dd1a,_0xfdb767);typeof _0x331d08==_0x122649(0x527)&&(_0x548c4a+=_0x331d08);}let _0x452b86=0x0;for(let _0xd8147d of _0x218e48){let _0x270402=this[_0x122649(0x3d4)](_0xd8147d,_0xfdb767);_0x270402!==void 0x0&&(_0x4f3354(_0x270402)?this[_0x122649(0x28a)](_0x3e2ae1,_0xd8147d,_0x270402['errorType']):(_0x452b86+=_0x270402,_0xe946b9&&_0x548c4a===0x0?this[_0x122649(0x28a)](_0x3e2ae1,_0xd8147d,0x1):this[_0x122649(0x292)](_0x3e2ae1,_0xd8147d,_0xe946b9?_0x452b86/_0x548c4a:_0x452b86)));}}return _0x3e2ae1;}[_0x20ea74(0x422)](_0x1b4b34,_0x49bde,_0x31d598){const _0x5f4382=_0x20ea74;let _0x5b4939=this[_0x5f4382(0x3ca)](),_0x462e85=[];for(let _0x5e9f1f of this[_0x5f4382(0x4ef)](_0x49bde)){_0x462e85[_0x5f4382(0x41f)]=0x0;for(let _0x265ce0 of _0x5e9f1f){let _0x5546de=this['_getRawValue'](_0x265ce0,_0x1b4b34);typeof _0x5546de=='number'?_0x462e85[_0x5f4382(0x3b3)]({'tupleIndex':_0x265ce0,'value':_0x5546de}):_0x4f3354(_0x5546de)&&this[_0x5f4382(0x28a)](_0x5b4939,_0x265ce0,_0x5546de['errorType']);}_0x462e85[_0x5f4382(0x3e6)]((_0x18582e,_0x285fac)=>_0x31d598?_0x18582e[_0x5f4382(0x306)]-_0x285fac[_0x5f4382(0x306)]:_0x285fac[_0x5f4382(0x306)]-_0x18582e[_0x5f4382(0x306)]);let _0x30ab0c=0x0,_0x7f2074;for(let _0xc0c62a=0x0;_0xc0c62a<_0x462e85[_0x5f4382(0x41f)];_0xc0c62a++){let _0x69112a=_0x462e85[_0xc0c62a];(_0x7f2074===void 0x0||_0x69112a['value']!==_0x7f2074)&&(_0x30ab0c=_0xc0c62a+0x1,_0x7f2074=_0x69112a['value']),this[_0x5f4382(0x292)](_0x5b4939,_0x69112a[_0x5f4382(0x414)],_0x30ab0c);}}return _0x5b4939;}[_0x20ea74(0x3ca)](){const _0xf3a6d0=_0x20ea74;return{'values':new Float64Array(this[_0xf3a6d0(0x54a)]['tuples'][_0xf3a6d0(0x41f)]),'states':new Uint8Array(this['_summaryManager'][_0xf3a6d0(0x444)]['length'])};}['_setDerivedNumber'](_0x510c6b,_0x470edf,_0x28414c){const _0x2ddcb2=_0x20ea74;_0x510c6b[_0x2ddcb2(0x341)][_0x470edf]=_0x28414c,_0x510c6b[_0x2ddcb2(0x586)][_0x470edf]=0x1;}['_setDerivedError'](_0x28190b,_0x7b012f,_0x3eda7b){const _0x5374d9=_0x20ea74;_0x28190b[_0x5374d9(0x586)][_0x7b012f]=_0x3eda7b+0x1;}[_0x20ea74(0x450)](_0x30ef86,_0x2f0c34){const _0xe683f7=_0x20ea74;if(!_0x30ef86)return;let _0x1d4d67=this[_0xe683f7(0x410)][_0x2f0c34],_0x2bef76=_0x1d4d67<0x0?_0x2f0c34:_0x1d4d67,_0x36e7a3=_0x30ef86['states'][_0x2bef76];if(_0x36e7a3===0x1)return _0x30ef86[_0xe683f7(0x341)][_0x2bef76];if(_0x36e7a3>0x1){let _0x423f23=_0x36e7a3-0x1;return _0x33bff7[_0x423f23];}}[_0x20ea74(0x264)](_0x53c943){const _0x4c3b5e=_0x20ea74;return _0x53c943[_0x4c3b5e(0x398)](',');}['_getRawValue'](_0x4539fb,_0x1f4b39){const _0xd354dd=_0x20ea74;var _0xc7db1;if(_0x4539fb<0x0)return;let _0x59649f=this['_summaryManager'][_0xd354dd(0x444)][_0x4539fb];return _0x59649f==null||(_0xc7db1=_0x59649f[_0xd354dd(0x4d9)])==null||(_0xc7db1=_0xc7db1[_0x1f4b39['dataFieldId']])==null?void 0x0:_0xc7db1[_0x1f4b39['subtotal']];}[_0x20ea74(0x325)](_0x328996,_0x2915b4,_0x140b98){const _0x48077c=_0x20ea74;return this[_0x48077c(0x3d4)](this[_0x48077c(0x396)](_0x328996,_0x2915b4),_0x140b98);}[_0x20ea74(0x396)](_0x127aa9,_0x332ebb){const _0x3ce6d9=_0x20ea74;return(_0x127aa9==null?void 0x0:_0x127aa9[this[_0x3ce6d9(0x47e)](_0x332ebb)])??-0x1;}[_0x20ea74(0x47e)](_0x17a5fa){const _0x185aeb=_0x20ea74;let _0x2d4a6d=this[_0x185aeb(0x410)][_0x17a5fa];return _0x2d4a6d<0x0?_0x17a5fa:_0x2d4a6d;}[_0x20ea74(0x2ad)](_0x47bff2,_0x4c202a){if(_0x47bff2!==void 0x0){if(_0x4f3354(_0x47bff2))return _0x47bff2;if(_0x4c202a!==void 0x0)return _0x4f3354(_0x4c202a)?_0x4c202a:_0x4c202a===0x0?_0x12d1a8:_0x47bff2/_0x4c202a;}}[_0x20ea74(0x37d)](_0xb796a,_0x4d442b){if(_0xb796a!==void 0x0){if(_0x4f3354(_0xb796a))return _0xb796a;if(_0x4d442b!==void 0x0)return _0x4f3354(_0x4d442b)?_0x4d442b:_0xb796a-_0x4d442b;}}[_0x20ea74(0x4ab)](_0x333ac5,_0x2ee3b2){const _0x4bfc03=_0x20ea74;if(_0x333ac5!==0x0||_0x2ee3b2!==0x0)return this[_0x4bfc03(0x2ad)](_0x333ac5,_0x2ee3b2);}['_percentDifference'](_0x4b2d2e,_0x73315){if(_0x4b2d2e!==void 0x0){if(_0x4f3354(_0x4b2d2e))return _0x4b2d2e;if(_0x73315!==void 0x0)return _0x4f3354(_0x73315)?_0x73315:_0x73315===0x0?_0x12d1a8:(_0x4b2d2e-_0x73315)/_0x73315;}}[_0x20ea74(0x452)](_0xac68e9,_0x2acd4b,_0x310f56){const _0x240719=_0x20ea74;if(_0xac68e9===void 0x0||_0x4f3354(_0xac68e9))return _0xac68e9;let _0x159c98=this[_0x240719(0x325)](this[_0x240719(0x449)],_0x2acd4b,_0x310f56),_0x51a5d2=this['_getIndexedRawValue'](this[_0x240719(0x49b)],_0x2acd4b,_0x310f56),_0x38191c=this[_0x240719(0x3d4)](this[_0x240719(0x392)],_0x310f56);return _0x159c98===void 0x0||_0x51a5d2===void 0x0||_0x38191c===void 0x0?_0x120d4c:_0x4f3354(_0x159c98)?_0x159c98:_0x4f3354(_0x51a5d2)?_0x51a5d2:_0x4f3354(_0x38191c)?_0x38191c:_0x159c98===0x0||_0x51a5d2===0x0?_0x12d1a8:_0xac68e9*_0x38191c/(_0x159c98*_0x51a5d2);}};function _0x3aea88(_0x52a37c,_0x531fa8,_0xd15860,_0x18f030){const _0x40e35f=_0x20ea74;if(_0x52a37c[_0x40e35f(0x387)]!==0xf&&_0x52a37c[_0x40e35f(0x387)]!==0x2c)return _0x9608f9(_0x52a37c);let _0x2f1c47=_0x531fa8[_0x40e35f(0x51f)](({v:_0x27aef6})=>{const _0x585d78=_0x40e35f;var _0x12d667;return(_0x12d667=_0xd15860[_0x27aef6])==null?void 0x0:_0x12d667[_0x585d78(0x368)][_0x585d78(0x40e)](_0x18f030);})[_0x40e35f(0x572)](_0x340044=>typeof _0x340044==_0x40e35f(0x527)&&Number[_0x40e35f(0x2c0)](_0x340044)),_0x1230f3=_0x52a37c[_0x40e35f(0x387)]===0x2c?Math[_0x40e35f(0x4b6)](_0x2f1c47[_0x40e35f(0x41f)]*Number(_0x52a37c[_0x40e35f(0x22f)])/0x64):Math['ceil'](Number(_0x52a37c[_0x40e35f(0x22f)])),_0x98157b=_0x2073f2(_0x2f1c47,Math[_0x40e35f(0x52f)](_0x2f1c47[_0x40e35f(0x41f)],Math[_0x40e35f(0x525)](0x0,_0x1230f3)),!!_0x52a37c[_0x40e35f(0x22c)]);return _0x603eea=>_0x98157b!==void 0x0&&(_0x52a37c[_0x40e35f(0x22c)]?_0x603eea<=_0x98157b:_0x603eea>=_0x98157b);}var _0x57d20a=class{constructor(_0x4b2668,_0x3f4d17,_0x2cdedb){const _0x39ca45=_0x20ea74;_0x3dd15e(this,_0x39ca45(0x4d3),void 0x0),_0x3dd15e(this,'rowDimOrder',void 0x0),_0x3dd15e(this,_0x39ca45(0x3fe),void 0x0),_0x3dd15e(this,_0x39ca45(0x1e5),void 0x0),_0x3dd15e(this,_0x39ca45(0x362),void 0x0),_0x3dd15e(this,_0x39ca45(0x3b7),void 0x0),_0x3dd15e(this,'colDeep',void 0x0),_0x3dd15e(this,_0x39ca45(0x495),void 0x0),_0x3dd15e(this,_0x39ca45(0x3b0),void 0x0),_0x3dd15e(this,_0x39ca45(0x2cb),{}),_0x3dd15e(this,_0x39ca45(0x444),[]),_0x3dd15e(this,_0x39ca45(0x3bb),{}),_0x3dd15e(this,_0x39ca45(0x531),[]),_0x3dd15e(this,'dimensionTableIdList',[]),_0x3dd15e(this,_0x39ca45(0x23c),[]),_0x3dd15e(this,_0x39ca45(0x3d7),{}),_0x3dd15e(this,_0x39ca45(0x2e0),{}),_0x3dd15e(this,_0x39ca45(0x2eb),void 0x0),_0x3dd15e(this,'colNodeTree',void 0x0),_0x3dd15e(this,_0x39ca45(0x484),{}),_0x3dd15e(this,_0x39ca45(0x31f),{}),_0x3dd15e(this,_0x39ca45(0x2a7),void 0x0),_0x3dd15e(this,_0x39ca45(0x4d6),{}),_0x3dd15e(this,_0x39ca45(0x312),{}),_0x3dd15e(this,_0x39ca45(0x1fc),[]),_0x3dd15e(this,_0x39ca45(0x3f3),{}),_0x3dd15e(this,_0x39ca45(0x343),void 0x0),_0x3dd15e(this,_0x39ca45(0x261),void 0x0),_0x3dd15e(this,'_sortCompareCache',new Map()),this[_0x39ca45(0x444)]=_0x3f4d17[_0x39ca45(0x444)][_0x39ca45(0x2b2)]();let _0x377da5=_0x4b2668[_0x39ca45(0x252)],_0x2681e0=_0x4b2668[_0x39ca45(0x453)],{tuples:_0x1e4ebc,dimensionMap:_0x5762f5,dimensionTableIdList:_0x309ba5,tupleMap:_0x44c700,dimensionIdList:_0x3a6b6b,measuresMap:_0x1a4173,measureIdList:_0x4ad549}=_0x3f4d17,_0x1c275c=_0x377da5['length'],_0x4a247f=_0x2681e0['length'];this['dimensionTableIdList']=_0x309ba5,this[_0x39ca45(0x4d3)]=_0x1e4ebc['length'],this[_0x39ca45(0x3b0)]=_0x1e4ebc[_0x39ca45(0x41f)],this[_0x39ca45(0x2a7)]=_0x4b2668[_0x39ca45(0x2a7)],this[_0x39ca45(0x3bb)]={..._0x44c700},this[_0x39ca45(0x2cb)]={..._0x1a4173},this[_0x39ca45(0x23c)]=_0x4ad549,this['dimensionIdList']=_0x3a6b6b,this['dimensionMap']=_0x5762f5,this[_0x39ca45(0x1fc)]=_0x4b2668[_0x39ca45(0x1fc)],this[_0x39ca45(0x261)]=_0x2cdedb;let _0x1c51b6=_0x4b2668['valueQueryInfo'];for(let _0x17ef5c of _0x1c51b6){let _0xce6c64=_0x17ef5c['id'],_0x48514e=_0x17ef5c[_0x39ca45(0x1fd)];_0x48514e!==void 0x0&&(this['subtotalMap'][_0xce6c64]={'subTotal':_0x48514e,'dataFieldId':_0x17ef5c['dataFieldId']});}let _0x3bbc62=[],_0x36f4be=[],_0x31e25c=new Map();for(let [_0x280584,_0x3220d8]of _0x309ba5[_0x39ca45(0x3af)]())_0x31e25c[_0x39ca45(0x57f)](_0x3220d8,_0x280584);for(let _0x7dd89d=0x0;_0x7dd89d<_0x1c275c;_0x7dd89d++){let _0x1ddd60=_0x377da5[_0x7dd89d]['id'];_0x3bbc62[_0x39ca45(0x3b3)](_0x31e25c[_0x39ca45(0x359)](_0x1ddd60)),_0x36f4be[_0x39ca45(0x3b3)](_0x1ddd60);}let _0x213bea=[],_0x55018d=[];for(let _0x1223f3=0x0;_0x1223f3<_0x4a247f;_0x1223f3++){let _0x24de5b=_0x2681e0[_0x1223f3]['id'];_0x213bea[_0x39ca45(0x3b3)](_0x31e25c[_0x39ca45(0x359)](_0x24de5b)),_0x55018d[_0x39ca45(0x3b3)](_0x24de5b);}this[_0x39ca45(0x51a)]=_0x3bbc62[_0x39ca45(0x2b2)](_0x213bea),this[_0x39ca45(0x3fe)]=_0x213bea[_0x39ca45(0x2b2)](_0x3bbc62),this['rowTableIdList']=_0x36f4be[_0x39ca45(0x2b2)](_0x55018d),this[_0x39ca45(0x362)]=_0x55018d[_0x39ca45(0x2b2)](_0x36f4be),this[_0x39ca45(0x3b7)]=_0x1c275c,this[_0x39ca45(0x2ef)]=_0x4a247f,this[_0x39ca45(0x495)]=this[_0x39ca45(0x23c)][_0x39ca45(0x41f)],this[_0x39ca45(0x2fe)](_0x4b2668);}[_0x20ea74(0x2fe)](_0x4fac23){const _0x3215e3=_0x20ea74;let {rowQueryInfo:_0xed98ad,colQueryInfo:_0x51e2d3}=_0x4fac23;for(let _0x36269b of[..._0xed98ad,..._0x51e2d3]){let _0x5221cd=_0x36269b['sortInfo'],_0xcf4c42=_0x36269b['id'];if(_0x5221cd){if(_0x3215e3(0x2f8)in _0x5221cd)this[_0x3215e3(0x312)][_0xcf4c42]=_0x5221cd;else{if(_0x5f933(_0x5221cd)){let _0x483ec5={},_0x1bdfbd=_0x5221cd['customOrder'];for(let _0x424b91=0x0;_0x424b91<_0x1bdfbd[_0x3215e3(0x41f)];_0x424b91++){let _0x1c6894=_0x1bdfbd[_0x424b91];for(let _0x51d673 of this['dimensionMap'][_0x36269b['dataFieldId']]['field'][_0x3215e3(0x51b)](_0x1c6894))_0x483ec5[_0x51d673]=_0x424b91;}this[_0x3215e3(0x4d6)][_0xcf4c42]={'type':_0x5221cd['type'],'sortMap':_0x483ec5};}else{let _0x3b402b=this['getSortedMap'](_0xcf4c42,this[_0x3215e3(0x484)][_0x36269b['dataFieldId']][_0x3215e3(0x4c7)],_0x5221cd[_0x3215e3(0x231)]);this['dimensionSortInfo'][_0xcf4c42]={'type':_0x5221cd[_0x3215e3(0x3a3)],'sortMap':_0x3b402b};}}}else{if(_0x209170[_0x3215e3(0x466)]!==_0x3215e3(0x38a)){let _0x47d258=_0x209170[_0x3215e3(0x466)],_0x25c4f0=this[_0x3215e3(0x21b)](_0xcf4c42,this['dimensionMap'][_0x36269b['dataFieldId']][_0x3215e3(0x4c7)]),_0x474c2f=_0x47d258==='ascending'?0x1:0x2;this['dimensionSortInfo'][_0xcf4c42]={'type':_0x474c2f,'sortMap':_0x25c4f0};}}}}['getCellValue'](_0x10c05b,_0x48047e){const _0x352555=_0x20ea74;var _0x17c4ab;return this[_0x352555(0x343)]?this['_showDataAsResolver'][_0x352555(0x3ea)](_0x10c05b,_0x48047e):(_0x17c4ab=this[_0x352555(0x444)][_0x10c05b])==null||(_0x17c4ab=_0x17c4ab['summary'])==null||(_0x17c4ab=_0x17c4ab[_0x48047e[_0x352555(0x34a)]])==null?void 0x0:_0x17c4ab[_0x48047e[_0x352555(0x1fd)]];}['prepareShowDataAs'](_0x50063b){const _0x4dbe0a=_0x20ea74;!this[_0x4dbe0a(0x343)]&&_0x50063b[_0x4dbe0a(0x378)]['some'](_0x17c85c=>{const _0x1af4c4=_0x4dbe0a;var _0xd03192;return((_0xd03192=_0x17c85c[_0x1af4c4(0x4a3)])==null?void 0x0:_0xd03192[_0x1af4c4(0x3a3)])&&_0x17c85c['showDataAs'][_0x1af4c4(0x3a3)]!==0x1;})&&(this[_0x4dbe0a(0x343)]=new _0x53a920(this,_0x50063b),this['_showDataAsResolver'][_0x4dbe0a(0x3df)]());}[_0x20ea74(0x1f6)](){const _0x58ea0a=_0x20ea74;var _0x167e3c;(_0x167e3c=this['_showDataAsResolver'])==null||_0x167e3c['dispose'](),this[_0x58ea0a(0x343)]=void 0x0;}[_0x20ea74(0x21b)](_0x6e029c,_0x382384,_0x3f8238){const _0x2f2879=_0x20ea74;let _0x2fbf43=this[_0x2f2879(0x4d6)][_0x6e029c];if(_0x2fbf43&&_0x2fbf43[_0x2f2879(0x436)])return _0x2fbf43[_0x2f2879(0x436)];let _0x2a4c91=_0x382384[_0x2f2879(0x207)](),_0x4936d6=_0x382384 instanceof _0x56f7b2?_0x382384[_0x2f2879(0x456)]:Object[_0x2f2879(0x4b4)](_0x2a4c91),_0x2ecfcf=_0x382384 instanceof _0x56f7b2?_0x382384[_0x2f2879(0x251)]:[];if(!(_0x382384 instanceof _0x56f7b2)){for(let _0x4cbe83 of _0x4936d6)_0x2ecfcf[_0x2a4c91[_0x4cbe83]]=_0x382384[_0x2f2879(0x56f)](_0x4cbe83);}if(!(_0x382384 instanceof _0x56f7b2)||_0x382384 instanceof _0x331ee8){let _0x31ce31=_0x3684fd=>_0x3684fd===0x2?0x0:_0x3684fd===0x1?0x1:_0x3684fd===0x4?0x2:0x3,_0x47ddce=this[_0x2f2879(0x307)](_0x3f8238),_0x5bbb73=_0x4936d6[_0x2f2879(0x340)]()[_0x2f2879(0x3e6)]((_0x35a6e9,_0x5b0496)=>{const _0x451093=_0x2f2879;let _0x336987=_0x2ecfcf[_0x2a4c91[_0x35a6e9]],_0x39be54=_0x2ecfcf[_0x2a4c91[_0x5b0496]],_0x2232bb=_0x31ce31(_0x336987)-_0x31ce31(_0x39be54);if(_0x2232bb)return _0x2232bb;let _0x561102=_0x382384 instanceof _0x331ee8?_0x382384[_0x451093(0x42a)](_0x35a6e9):_0x382384[_0x451093(0x553)](_0x35a6e9),_0x32214a=_0x382384 instanceof _0x331ee8?_0x382384[_0x451093(0x42a)](_0x5b0496):_0x382384[_0x451093(0x553)](_0x5b0496);return _0x336987===0x2||_0x336987===0x4?Number(_0x561102)-Number(_0x32214a)||_0x2a4c91[_0x35a6e9]-_0x2a4c91[_0x5b0496]:_0x47ddce(_0x561102,_0x32214a)||_0x2a4c91[_0x35a6e9]-_0x2a4c91[_0x5b0496];});return Object[_0x2f2879(0x246)](_0x5bbb73['map']((_0xc90fca,_0x19c9ca)=>[_0xc90fca,_0x19c9ca]));}let _0x30e23c=_0x33936d(_0x4936d6,_0x2ecfcf,_0x2a4c91,this[_0x2f2879(0x307)](_0x3f8238));if(_0x382384 instanceof _0xe70d7){let _0xdf630=Object['keys'](_0x30e23c)['sort']((_0x40af9f,_0x4d87c3)=>_0x30e23c[_0x40af9f]-_0x30e23c[_0x4d87c3]),_0x58bf31=[..._0xdf630[_0x2f2879(0x3f2)](_0x2f2879(0x4c3))?[_0x3e8243]:[],..._0xdf630['filter'](_0x38fbab=>_0x38fbab!==_0x2f2879(0x4c3)&&_0x38fbab!==_0x2f2879(0x51c)),..._0xdf630[_0x2f2879(0x3f2)]('__number_after__')?[_0x3d6834]:[]];return Object[_0x2f2879(0x246)](_0x58bf31[_0x2f2879(0x51f)]((_0x58d7ad,_0x3bfac8)=>[_0x58d7ad,_0x3bfac8]));}return _0x30e23c;}[_0x20ea74(0x271)](){const _0x53b1f8=_0x20ea74;let _0x343a4d=this[_0x53b1f8(0x501)]();this[_0x53b1f8(0x2d3)](_0x343a4d),this[_0x53b1f8(0x425)](_0x343a4d),this[_0x53b1f8(0x403)](),this[_0x53b1f8(0x2ff)]();}[_0x20ea74(0x395)](_0x38361d,_0xf2c21b){const _0xc9fe45=_0x20ea74;this[_0xc9fe45(0x2eb)][_0xc9fe45(0x4d7)](),this['colNodeTree']!==this[_0xc9fe45(0x2eb)]&&this['colNodeTree'][_0xc9fe45(0x4d7)](),this[_0xc9fe45(0x4d6)]={},this[_0xc9fe45(0x312)]={},this[_0xc9fe45(0x261)]!==_0xf2c21b&&(this[_0xc9fe45(0x261)]=_0xf2c21b,this['_sortCompareCache'][_0xc9fe45(0x200)]()),this['createSummaryLabelSortedMap'](_0x38361d),this[_0xc9fe45(0x403)](),this['_applyValueSorts']();}[_0x20ea74(0x403)](){const _0xf006b7=_0x20ea74;for(let [_0x52a2c6,{type:_0x381680,sortMap:_0x48de56}]of Object[_0xf006b7(0x3af)](this[_0xf006b7(0x4d6)]))this[_0xf006b7(0x2eb)][_0xf006b7(0x288)](_0x52a2c6,_0x381680,_0x48de56),this['colNodeTree']!==this[_0xf006b7(0x2eb)]&&this[_0xf006b7(0x4eb)]['sortChildrenByLabel'](_0x52a2c6,_0x381680,_0x48de56);}[_0x20ea74(0x2ff)](){const _0x20c23e=_0x20ea74;for(let [_0x301d00,_0x52c39c]of Object['entries'](this[_0x20c23e(0x312)])){if(_0x52c39c[_0x20c23e(0x4c0)][_0x20c23e(0x41f)]>0x0)continue;let _0x409b53=this[_0x20c23e(0x3f3)][_0x52c39c[_0x20c23e(0x2f8)]];if(!_0x409b53)continue;let _0x35790d=_0x1cac6a=>{const _0xbaf279=_0x20c23e;var _0x43f29c;let _0x5020e6=(_0x43f29c=this[_0xbaf279(0x444)][_0x1cac6a])==null||(_0x43f29c=_0x43f29c[_0xbaf279(0x368)][_0x409b53['dataFieldId']])==null?void 0x0:_0x43f29c['getSubtotal'](_0x409b53[_0xbaf279(0x46f)]);return typeof _0x5020e6==_0xbaf279(0x527)?_0x5020e6:void 0x0;},_0x2face1=this[_0x20c23e(0x307)](_0x52c39c[_0x20c23e(0x231)]);this['rowNodeTree'][_0x20c23e(0x2e2)](_0x301d00,_0x52c39c[_0x20c23e(0x3a3)],_0x35790d,_0x2face1),this[_0x20c23e(0x4eb)]!==this[_0x20c23e(0x2eb)]&&this['colNodeTree'][_0x20c23e(0x2e2)](_0x301d00,_0x52c39c[_0x20c23e(0x3a3)],_0x35790d,_0x2face1);}}[_0x20ea74(0x307)](_0x136a38){const _0x5b65c4=_0x20ea74;let _0x1e5199=(_0x136a38??'')+'\x00'+(this[_0x5b65c4(0x261)]??''),_0x4b17b0=this[_0x5b65c4(0x3c1)][_0x5b65c4(0x359)](_0x1e5199);return _0x4b17b0||(_0x4b17b0=_0x3d6e75(_0x136a38,this[_0x5b65c4(0x261)]),this['_sortCompareCache'][_0x5b65c4(0x57f)](_0x1e5199,_0x4b17b0)),_0x4b17b0;}[_0x20ea74(0x442)](){const _0x1f0b5a=_0x20ea74;return this[_0x1f0b5a(0x4d3)]++;}['buildNodeTree'](_0x3a1cd7){const _0x349c82=_0x20ea74;this['rowNodeTree']=this['_buildNodeTreeImp'](this[_0x349c82(0x51a)],this['rowTableIdList'],this[_0x349c82(0x3d7)],_0x209170[_0x349c82(0x3eb)],_0x3a1cd7),this['colNodeTree']=this[_0x349c82(0x3b7)]===0x0||this['colDeep']===0x0?this[_0x349c82(0x2eb)]:this['_buildNodeTreeImp'](this[_0x349c82(0x3fe)],this[_0x349c82(0x362)],this[_0x349c82(0x2e0)],_0x209170['COl_ROOT_PATH'],_0x3a1cd7);}[_0x20ea74(0x2df)](_0x1cf02d){const _0xf549b0=_0x20ea74;let _0x1a27c7={},_0x108f9c=new Map(),_0x226157=this[_0xf549b0(0x3b0)],_0x43d523=_0x226157+0x1,_0x568f0e=_0x1cf02d[_0xf549b0(0x41f)];for(let _0x3cc6d1=0x0;_0x3cc6d1<this['leafCount'];_0x3cc6d1++){let _0x3bd1a8=this[_0xf549b0(0x444)][_0x3cc6d1],_0xe32c85=_0x226157;for(let _0x2e1fed=0x0;_0x2e1fed<_0x568f0e;_0x2e1fed++){let _0x4ed599=_0x2e1fed===_0x568f0e-0x1,_0x3a76a3=_0x3bd1a8[_0xf549b0(0x21f)][_0x1cf02d[_0x2e1fed]],_0x2b71b6=_0x3cc6d1,_0x139de1=!0x0;if(!_0x4ed599){let _0x2008e9=_0x108f9c[_0xf549b0(0x359)](_0xe32c85);_0x2008e9||(_0x2008e9=new Map(),_0x108f9c[_0xf549b0(0x57f)](_0xe32c85,_0x2008e9));let _0x19e726=_0x2008e9[_0xf549b0(0x359)](_0x3a76a3);_0x19e726===void 0x0?(_0x2b71b6=_0x43d523++,_0x2008e9[_0xf549b0(0x57f)](_0x3a76a3,_0x2b71b6)):(_0x2b71b6=_0x19e726,_0x139de1=!0x1);}if(_0x139de1){let _0x3e62a1=_0x2e1fed+0x1;_0x1a27c7[_0x3e62a1]=_0x1a27c7[_0x3e62a1]||[],_0x1a27c7[_0x3e62a1]['push']({'p':_0xe32c85,'v':_0x2b71b6});}_0xe32c85=_0x2b71b6;}}return _0x1a27c7;}[_0x20ea74(0x45f)](_0x4df2fa,_0x2fa74e,_0x516dec){const _0x2d3e9c=_0x20ea74;let _0x5c4894={'path':_0x4df2fa,'indexes':[],'tuple':{},'types':[]};for(let _0x5d385b of this[_0x2d3e9c(0x23c)]){let _0x5ea7ec=new _0x4e9c60();_0x5c4894[_0x2d3e9c(0x368)][_0x5d385b]=_0x5ea7ec;}this[_0x2d3e9c(0x444)][_0x2fa74e]=_0x5c4894,this['tupleMap'][_0x516dec]=_0x2fa74e;}[_0x20ea74(0x1d6)](_0xa61536,_0x3fd39d,_0x38d684,_0x1703b5,_0x6cfaa2){const _0x1196b1=_0x20ea74;let _0x262de1=this[_0x1196b1(0x442)](),_0x4b24a8=new _0x4f3381(_0x262de1,'',0x1);_0x4b24a8[_0x1196b1(0x38d)](-0x1),_0x4b24a8[_0x1196b1(0x462)](0x0),_0x4b24a8[_0x1196b1(0x2f9)]([]),this[_0x1196b1(0x45f)](_0x4b24a8[_0x1196b1(0x2bd)](),_0x262de1,_0x1703b5);let _0x13e949=this[_0x1196b1(0x2a7)],_0x3b2bdd=this[_0x1196b1(0x3b7)]+this[_0x1196b1(0x2ef)],_0x430054=this[_0x1196b1(0x280)];for(let _0x4d6b02=0x0;_0x4d6b02<this[_0x1196b1(0x3b0)];_0x4d6b02++){if(_0x6cfaa2[_0x4d6b02]===0x0)continue;let _0x555ddc=this['tuples'][_0x4d6b02],_0x412fcd=_0x4b24a8,_0x220fd4=0x0;for(let _0x415b81 of _0xa61536){let _0x101c85=_0x555ddc[_0x1196b1(0x21f)][_0x415b81],_0x324260=_0x555ddc['types'][_0x415b81],_0x56fa23=_0x430054[_0x415b81];if(!_0x412fcd[_0x1196b1(0x2c2)](_0x101c85)){let _0x380cd4=_0x220fd4===_0x3b2bdd-0x1,_0x58dfb2=_0x380cd4?_0x4d6b02:this[_0x1196b1(0x442)](),_0x64512f=new _0x4f3381(_0x58dfb2,_0x56fa23,_0x324260),_0x4fe8ef=this['dimensionMap'][this[_0x1196b1(0x531)][_0x415b81]][_0x1196b1(0x4c7)];_0x64512f[_0x1196b1(0x3c8)](_0x5c962b(_0x13e949,_0x56fa23,_0x4fe8ef[_0x1196b1(0x553)](_0x101c85)));let {sortMap:_0x127879,type:_0x31d79d}=this[_0x1196b1(0x4d6)][_0x56fa23]??{},_0x28fe15=_0x4fe8ef instanceof _0x331ee8?_0x4fe8ef['getDisplayNameByKey'](_0x101c85):_0x4fe8ef[_0x1196b1(0x553)](_0x101c85);_0x412fcd[_0x1196b1(0x48a)](_0x64512f,_0x101c85,_0x127879,_0x31d79d,_0x28fe15);let _0x44d071=_0x64512f[_0x1196b1(0x4c5)]();_0x380cd4?_0x64512f[_0x1196b1(0x49a)]():this[_0x1196b1(0x4ae)](_0x58dfb2,_0x64512f[_0x1196b1(0x2bd)](),_0x3fd39d),_0x38d684[_0x44d071]=_0x38d684[_0x44d071]||[],_0x38d684[_0x44d071][_0x1196b1(0x3b3)]({'p':_0x412fcd[_0x1196b1(0x4d8)](),'v':_0x58dfb2});}_0x412fcd=_0x412fcd[_0x1196b1(0x202)](_0x101c85),_0x220fd4++;}}return _0x4b24a8;}[_0x20ea74(0x208)](_0x4a36d4,_0x267e7d){const _0xf7b32e=_0x20ea74;if(this[_0xf7b32e(0x31f)][_0x267e7d])return this['combinePathMap'][_0x267e7d];let _0xaa0f61={};this['combinePathMap'][_0x267e7d]=_0xaa0f61;let _0x547a43={};for(let _0x2b2fc8 of _0x4a36d4)for(let _0x38e69d in _0x2b2fc8){let _0x2016bd=[_0x267e7d,_0x38e69d][_0xf7b32e(0x398)](_0x209170['TUPLE_FIELD_SEPARATOR']);if(_0xaa0f61[_0x38e69d]===void 0x0){let _0x159bfa=this[_0xf7b32e(0x442)]();this[_0xf7b32e(0x4df)](_0x159bfa,_0x2016bd),_0xaa0f61[_0x38e69d]=_0x159bfa;}_0x547a43[_0x2016bd]===void 0x0&&(_0x547a43[_0x2016bd]=[]),_0x547a43[_0x2016bd][_0xf7b32e(0x3b3)](_0x2b2fc8[_0x38e69d]);}for(let _0x47280b in _0x547a43){let _0x3032e3=_0x547a43[_0x47280b],_0x43395b=this[_0xf7b32e(0x444)][this['tupleMap'][_0x47280b]];this[_0xf7b32e(0x215)](_0x43395b,_0x3032e3);}return _0xaa0f61;}['calculateListSubtotal'](_0x1a0e41,_0x1a293a){const _0x1115d6=_0x20ea74;_0x1a0e41[_0x1115d6(0x4d9)]||={};let _0x9be47d=_0x1a0e41['summary'];for(let _0x5d7b48 in this['measuresMap']){let _0x18217a=this['measuresMap'][_0x5d7b48][_0x1115d6(0x46f)],_0x37c353=_0x1a0e41[_0x1115d6(0x368)][_0x5d7b48],_0x3412c5=_0x1a293a[_0x1115d6(0x51f)](_0x485736=>this[_0x1115d6(0x444)][_0x485736][_0x1115d6(0x368)][_0x5d7b48]);_0x37c353[_0x1115d6(0x2be)](_0x3412c5);let _0x2b65e7=_0x37c353[_0x1115d6(0x221)]();for(let _0x76284f of _0x18217a)_0x2b65e7[_0x76284f]=_0x37c353['getSubtotal'](_0x76284f);_0x9be47d[_0x5d7b48]=_0x2b65e7;}}[_0x20ea74(0x425)](_0x5cbdb1){const _0x278112=_0x20ea74;this[_0x278112(0x402)](this[_0x278112(0x3d7)],_0x5cbdb1),this[_0x278112(0x402)](this['_colLevelPool'],_0x5cbdb1);let _0x5ee451=this[_0x278112(0x444)][this[_0x278112(0x2eb)][_0x278112(0x4d8)]()],_0x5cca1b=this[_0x278112(0x444)][this[_0x278112(0x4eb)][_0x278112(0x4d8)]()];this[_0x278112(0x3b7)]+this[_0x278112(0x2ef)]===0x0&&this[_0x278112(0x444)][_0x278112(0x41f)]>0x0&&_0x2e670b(this[_0x278112(0x444)][0x0],_0x5ee451,this[_0x278112(0x2cb)]),_0x2e670b(_0x5ee451,void 0x0,this[_0x278112(0x2cb)]),_0x2e670b(_0x5cca1b,void 0x0,this['measuresMap']);}['getPathKeyWithFiledId'](_0x30d9bb,_0x3e95fe){const _0x4f7b8b=_0x20ea74;let _0x5dc032=[];for(let _0x179413=0x0;_0x179413<_0x30d9bb['length'];_0x179413++)_0x5dc032['push'](''+_0x3e95fe[_0x179413]+_0x209170['TUPLE_FIELD_SEPARATOR']+_0x30d9bb[_0x179413]);return _0x5dc032[_0x4f7b8b(0x398)](_0x209170[_0x4f7b8b(0x225)]);}['ensureTupleItem'](_0x1a5d2c,_0x1492fa,_0x58aef1){const _0x5e7f45=_0x20ea74;if(!this['tuples'][_0x1a5d2c]){let _0x332603=this['getPathKeyWithFiledId'](_0x1492fa,_0x58aef1);this[_0x5e7f45(0x45f)](_0x1492fa,_0x1a5d2c,_0x332603);}}[_0x20ea74(0x4df)](_0xd7d598,_0x3a87a0){const _0x3ade41=_0x20ea74;this[_0x3ade41(0x444)][_0xd7d598]||this[_0x3ade41(0x2d7)]([],_0x3a87a0,_0xd7d598);}['createTuple'](_0x665122,_0x15ec40,_0x3f1de2){const _0x335188=_0x20ea74;let _0x51513d=_0x15ec40||_0x665122[_0x335188(0x398)](_0x209170['TUPLE_PLACEHOLDER']);if(!this[_0x335188(0x3bb)][_0x51513d]){let _0x53a594={'path':_0x665122,'indexes':[],'tuple':{},'types':[]};for(let _0x4e5df0 of this[_0x335188(0x23c)]){let _0x5adc45=new _0x4e9c60();_0x53a594['tuple'][_0x4e5df0]=_0x5adc45;}if(_0x3f1de2===void 0x0){let _0x13764d=this[_0x335188(0x444)]['push'](_0x53a594);this['tupleMap'][_0x51513d]=_0x13764d-0x1;}else this[_0x335188(0x444)][_0x3f1de2]=_0x53a594,this['tupleMap'][_0x51513d]=_0x3f1de2;}}[_0x20ea74(0x501)](){const _0x3b38bb=_0x20ea74;let _0x3bbd5d=this[_0x3b38bb(0x1fc)],_0x28d03=new Uint8Array(this['leafCount']);if(_0x28d03[_0x3b38bb(0x424)](0x1),_0x3bbd5d[_0x3b38bb(0x41f)]===0x0)return _0x28d03;let _0x337f48=this[_0x3b38bb(0x2df)](this[_0x3b38bb(0x51a)]),_0x42d35a=this[_0x3b38bb(0x3b7)]===0x0||this[_0x3b38bb(0x2ef)]===0x0?_0x337f48:this[_0x3b38bb(0x2df)](this['colDimOrder']);for(let {fieldId:_0x22c667,filterInfo:_0x3b4f5a}of _0x3bbd5d)this[_0x3b38bb(0x24e)](_0x22c667,_0x3b4f5a[_0x3b38bb(0x2a9)],_0x3b4f5a,_0x28d03,_0x337f48,_0x42d35a);return _0x28d03;}['_doValueFilter'](_0x32d45f,_0x58a179,_0x1e4d00,_0x47d826,_0x28a26b,_0xcc260a){const _0x4731fe=_0x20ea74;let _0x37a97d=this[_0x4731fe(0x3c9)](_0x32d45f,_0x28a26b,_0xcc260a);if(_0x37a97d){let {pool:_0x381ca2,fieldIdList:_0x1bfed4}=_0x37a97d,_0x1ed6b3=_0x1bfed4[_0x4731fe(0x576)](_0x32d45f);if(_0x1ed6b3===-0x1)return;let _0x2b2c15=this['rowDeep']+this[_0x4731fe(0x2ef)],_0x3e7427=[],_0x5b6cf5=this[_0x4731fe(0x3f3)][_0x58a179]['subTotal'],_0x543ce6=this['subtotalMap'][_0x58a179]['dataFieldId'];for(let _0xfae6f1=_0x2b2c15;_0xfae6f1>_0x1ed6b3;_0xfae6f1--)if(_0x381ca2[_0xfae6f1]){let _0x3e2c86=_0x381ca2[_0xfae6f1];for(let {p:_0x437a5c,v:_0x48fa36}of _0x3e2c86)(_0x2b2c15!==_0xfae6f1||_0x47d826[_0x48fa36]!==0x0)&&_0x228d4b(_0x3e7427,_0xfae6f1===_0x2b2c15?this[_0x4731fe(0x444)][_0x48fa36]:void 0x0,_0x543ce6,_0x5b6cf5,_0x48fa36,_0x437a5c);}let _0x4d07d2=_0x381ca2[_0x1ed6b3+0x1]??[],_0x2aea2f=_0x3aea88(_0x1e4d00,_0x4d07d2,_0x3e7427,_0x5b6cf5),_0x439fd4=new Set();for(let {v:_0xefc491}of _0x4d07d2){if(_0x3e7427[_0xefc491]===void 0x0)continue;let _0x684dcf=_0x3e7427[_0xefc491]['tuple']['getSubtotal'](_0x5b6cf5);_0x3e227e(_0x684dcf)?_0x439fd4[_0x4731fe(0x316)](_0xefc491):_0x2aea2f(_0x684dcf)||_0x439fd4['add'](_0xefc491);}let _0x3e1cc9=_0x1ed6b3+0x1;if(_0x3e1cc9===_0x2b2c15){for(let _0x5bf91e of _0x439fd4)_0x47d826[_0x5bf91e]=0x0;return;}for(;_0x381ca2[_0x3e1cc9+0x1];){let _0x516e4b=new Set(),_0x5e4835=_0x381ca2[_0x3e1cc9+0x1];for(let {p:_0x4eb319,v:_0xc22031}of _0x5e4835)_0x439fd4[_0x4731fe(0x22d)](_0x4eb319)&&(_0x516e4b[_0x4731fe(0x316)](_0xc22031),_0x3e1cc9+0x1===_0x2b2c15&&(_0x47d826[_0xc22031]=0x0));_0x3e1cc9++,_0x439fd4=_0x516e4b;}}}[_0x20ea74(0x3c9)](_0x3e1458,_0x33a159,_0x4e7cf6){const _0x27588f=_0x20ea74;if(this[_0x27588f(0x3b7)]===0x0||this[_0x27588f(0x2ef)]===0x0)return{'pool':_0x33a159,'fieldIdList':this['rowTableIdList']};let _0x2f2c44=this[_0x27588f(0x1e5)]['findIndex'](_0x4c3cad=>_0x4c3cad===_0x3e1458);if(_0x2f2c44>=0x0&&_0x2f2c44<this[_0x27588f(0x3b7)])return{'pool':_0x33a159,'fieldIdList':this[_0x27588f(0x1e5)]};let _0x3c419a=this[_0x27588f(0x362)][_0x27588f(0x326)](_0x3b43e5=>_0x3b43e5===_0x3e1458);return _0x3c419a>=0x0&&_0x3c419a<this[_0x27588f(0x2ef)]?{'pool':_0x4e7cf6,'fieldIdList':this['colTableIdList']}:null;}[_0x20ea74(0x402)](_0x46b947,_0x50320d){const _0x23ef0c=_0x20ea74;let _0x41893=this[_0x23ef0c(0x3b7)]+this[_0x23ef0c(0x2ef)];for(let _0xd66508=_0x41893;_0xd66508>=0x0;_0xd66508--)if(_0x46b947[_0xd66508]){let _0x2f58f2=_0x46b947[_0xd66508];for(let {p:_0x2b8b2e,v:_0x2daa36}of _0x2f58f2){if(_0x2daa36<this[_0x23ef0c(0x3b0)]&&_0x50320d[_0x2daa36]===0x0)continue;let _0x10960d=this[_0x23ef0c(0x444)][_0x2daa36];_0x2e670b(_0x10960d,this['tuples'][_0x2b8b2e],this['measuresMap']);}}}},_0x5de482=class{constructor(){const _0x1bdfcd=_0x20ea74;_0x3dd15e(this,_0x1bdfcd(0x444),[]),_0x3dd15e(this,_0x1bdfcd(0x3bb),{}),_0x3dd15e(this,_0x1bdfcd(0x2cb),{}),_0x3dd15e(this,'dimensionIdList',[]),_0x3dd15e(this,_0x1bdfcd(0x280),[]),_0x3dd15e(this,_0x1bdfcd(0x23c),[]),_0x3dd15e(this,_0x1bdfcd(0x484),{}),_0x3dd15e(this,_0x1bdfcd(0x3b7),0x0),_0x3dd15e(this,_0x1bdfcd(0x2ef),0x0),_0x3dd15e(this,_0x1bdfcd(0x28b),void 0x0);}[_0x20ea74(0x3df)](_0x47d003,_0x568119){const _0x4ddedd=_0x20ea74;this[_0x4ddedd(0x28b)]=_0x47d003;let {valueQueryInfo:_0x49dca5,rowQueryInfo:_0xc3239c,colQueryInfo:_0x3144c4,filterQueryInfo:_0x1a903d,hiddenQueryInfo:_0x4cef7d=[]}=_0x568119;for(let _0x3fcb90 of _0x49dca5){let _0x276420=_0x3fcb90[_0x4ddedd(0x34a)],_0x40271c=_0x47d003[_0x4ddedd(0x30a)](_0x276420);if(!_0x40271c)continue;this[_0x4ddedd(0x2cb)][_0x276420]||(this[_0x4ddedd(0x23c)]['push'](_0x276420),this[_0x4ddedd(0x2cb)][_0x276420]={'field':_0x40271c,'subTotal':[]});let _0x41291e=this[_0x4ddedd(0x2cb)][_0x276420],{subtotal:_0x27dcdb}=_0x3fcb90;_0x41291e[_0x4ddedd(0x46f)][_0x4ddedd(0x3f2)](_0x27dcdb)||_0x41291e['subTotal'][_0x4ddedd(0x3b3)](_0x27dcdb);}let _0x5bea6c=_0xc3239c[_0x4ddedd(0x41f)]+_0x3144c4[_0x4ddedd(0x41f)],_0x110f55=0x0;for(let _0x1b83fa of[..._0xc3239c,..._0x3144c4,..._0x1a903d,..._0x4cef7d]){let _0x5cf14b=_0x47d003[_0x4ddedd(0x30a)](_0x1b83fa[_0x4ddedd(0x34a)]);_0x5cf14b&&(this[_0x4ddedd(0x484)][_0x1b83fa[_0x4ddedd(0x34a)]]||(this[_0x4ddedd(0x484)][_0x1b83fa[_0x4ddedd(0x34a)]]={'field':_0x5cf14b}),_0x110f55<_0x5bea6c?(this[_0x4ddedd(0x531)]['push'](_0x1b83fa[_0x4ddedd(0x34a)]),this[_0x4ddedd(0x280)][_0x4ddedd(0x3b3)](_0x1b83fa['id'])):_0x110f55<_0x5bea6c+_0x1a903d[_0x4ddedd(0x41f)]&&_0x1b83fa['filterInfo']&&_0x27b54e(_0x1b83fa['filterInfo'])&&(_0x1b83fa['filterInfo']['isAll']=_0x5cf14b['items'][_0x4ddedd(0x41f)]===_0x1b83fa[_0x4ddedd(0x211)]['list'][_0x4ddedd(0x41f)]),_0x110f55++);}this['rowDeep']=_0xc3239c[_0x4ddedd(0x41f)],this['colDeep']=_0x3144c4[_0x4ddedd(0x41f)];}[_0x20ea74(0x572)](_0x4bfd4b){const _0x12d9da=_0x20ea74;let {rowQueryInfo:_0xd46547,colQueryInfo:_0x39476f,filterQueryInfo:_0x4af5d7,hiddenQueryInfo:_0x3cac1a=[]}=_0x4bfd4b,_0x38747b=[],_0x325271=!0x1,_0x2a90c8=[..._0xd46547,..._0x39476f,..._0x4af5d7,..._0x3cac1a]['flatMap'](_0x1954cb=>_0x1954cb[_0x12d9da(0x2d2)]?[_0x1954cb,{..._0x1954cb,'filterInfo':_0x1954cb[_0x12d9da(0x2d2)],'conditionFilter':void 0x0}]:[_0x1954cb]);for(let {dataFieldId:_0x7116dd,filterInfo:_0x792c1}of _0x2a90c8){var _0x349160;if(_0x792c1===void 0x0)continue;let _0x42d1c1=(_0x349160=this[_0x12d9da(0x484)][_0x7116dd])==null?void 0x0:_0x349160[_0x12d9da(0x4c7)];if(!_0x42d1c1)throw TypeError(_0x12d9da(0x547)+_0x7116dd);if(_0x55e72a(_0x792c1)){if(!_0x1e2fc8(_0x792c1))continue;let _0x1be042=this[_0x12d9da(0x28b)][_0x12d9da(0x2bb)][_0x12d9da(0x3ee)](_0x792c1);_0x325271=!0x0;let _0x105d22=[];for(let _0x2ba6e8=0x0;_0x2ba6e8<_0x42d1c1[_0x12d9da(0x27d)][_0x12d9da(0x41f)];_0x2ba6e8++)_0x1be042(_0x42d1c1[_0x12d9da(0x27d)][_0x2ba6e8])&&_0x105d22['push'](_0x2ba6e8);_0x38747b['push'](_0x105d22);}else{if(_0x27b54e(_0x792c1)){_0x325271=!0x0;let {list:_0x1e82cc}=_0x792c1,_0x371095=[];for(let _0x54c7f8 of _0x1e82cc)_0x371095[_0x12d9da(0x3b3)](_0x42d1c1['getIndexesByKey'](_0x54c7f8));_0x38747b[_0x12d9da(0x3b3)](_0x189bca(_0x371095));}else{if(_0x2f2ab0(_0x792c1)){if(_0x325271=!0x0,_0x5ac9ed(_0x792c1)){let _0x20b008=_0x33b607(_0x792c1),_0x1c76c1=[];for(let _0xc84533=0x0;_0xc84533<_0x42d1c1[_0x12d9da(0x27d)][_0x12d9da(0x41f)];_0xc84533++){let _0x14e767=_0x42d1c1[_0x12d9da(0x27d)][_0xc84533];_0x3fa860(_0x14e767)&&_0x20b008(_0x14e767['v'])&&_0x1c76c1[_0x12d9da(0x3b3)](_0xc84533);}_0x38747b[_0x12d9da(0x3b3)](_0x1c76c1);continue;}let {operator:_0x328ef9,expected:_0xf822a4}=_0x792c1;if(_0x328ef9>=0x1&&_0x328ef9<=0xe){let _0x40b565=_0x1010e4(_0x792c1),_0x16e289=[];for(let _0x1c0387=0x0;_0x1c0387<_0x42d1c1[_0x12d9da(0x27d)][_0x12d9da(0x41f)];_0x1c0387++){let _0x2636d6=_0x42d1c1[_0x12d9da(0x27d)][_0x1c0387],_0x17f944=String(_0x2636d6??'');_0x3fa860(_0x2636d6)?_0x17f944=String(_0x2636d6['v']):_0x49d3c2(_0x2636d6)&&(_0x17f944=_0x2636d6[_0x12d9da(0x320)]),_0x40b565(_0x17f944)&&_0x16e289['push'](_0x1c0387);}_0x38747b['push'](_0x16e289);continue;}if(_0x42d1c1[_0x12d9da(0x275)]()===0x2){let _0x8eae1=_0x5f1446(_0x42d1c1[_0x12d9da(0x384)](),_0x328ef9,_0xf822a4);_0x38747b[_0x12d9da(0x3b3)](_0x189bca(_0x8eae1));}}}}}return!_0x325271&&_0x38747b[_0x12d9da(0x41f)]===0x0?{'isAll':!0x0,'list':[]}:{'isAll':!0x1,'list':_0x57a18d(_0x38747b)};}[_0x20ea74(0x29c)](_0xc9cc49,_0x26e030){const _0x2c6682=_0x20ea74;this['prepare'](_0xc9cc49,_0x26e030);let {isAll:_0x4db061,list:_0x2a713a}=this[_0x2c6682(0x572)](_0x26e030);this[_0x2c6682(0x407)](_0x4db061,_0x2a713a,_0xc9cc49[_0x2c6682(0x3a0)]());}[_0x20ea74(0x203)](){const _0x1735f1=_0x20ea74;this[_0x1735f1(0x444)]=[],this[_0x1735f1(0x2cb)]={},this[_0x1735f1(0x484)]={},this[_0x1735f1(0x3bb)]={},this['dimensionIdList']=[],this[_0x1735f1(0x280)]=[],this[_0x1735f1(0x23c)]=[];}['iterate'](_0x160dc3,_0x3f6ca7,_0x129002=0x0){const _0x3abe94=_0x20ea74;let _0x1bea96=this[_0x3abe94(0x280)];if(_0x160dc3)for(let _0x2e3c80=0x0;_0x2e3c80<_0x129002;_0x2e3c80++){let _0x527f66=[],_0x2a6112=[],_0xaa97fc=[],_0x41e6b6=0x0;for(let _0x2693a0 of this['dimensionIdList']){let _0xdfcb63=this[_0x3abe94(0x484)][_0x2693a0][_0x3abe94(0x4c7)],_0x3eb2d7=_0xdfcb63[_0x3abe94(0x37f)](_0x2e3c80);_0xaa97fc['push'](_0x1bea96[_0x41e6b6]+_0x209170[_0x3abe94(0x26f)]+_0x3eb2d7),_0x527f66['push'](_0x3eb2d7),_0x2a6112[_0x3abe94(0x3b3)](_0xdfcb63[_0x3abe94(0x56f)](_0x3eb2d7)),_0x41e6b6++;}this[_0x3abe94(0x3e3)](_0x527f66,_0xaa97fc,_0x2e3c80,_0x2a6112);}for(let _0x209f56 of _0x3f6ca7){let _0x2d0606=[],_0x3191a9=[],_0x1eaf6f=[],_0x574e68=0x0;for(let _0x59df1d of this['dimensionIdList']){let _0x26be13=this['dimensionMap'][_0x59df1d][_0x3abe94(0x4c7)],_0x3fce9b=_0x26be13[_0x3abe94(0x37f)](_0x209f56);_0x1eaf6f[_0x3abe94(0x3b3)](_0x1bea96[_0x574e68]+_0x209170['TUPLE_FIELD_SEPARATOR']+_0x3fce9b),_0x2d0606['push'](_0x3fce9b),_0x3191a9[_0x3abe94(0x3b3)](_0x26be13[_0x3abe94(0x56f)](_0x3fce9b)),_0x574e68++;}this[_0x3abe94(0x3e3)](_0x2d0606,_0x1eaf6f,_0x209f56,_0x3191a9);}}[_0x20ea74(0x3e3)](_0x3ba1de,_0x526eac,_0x4fc2fd,_0x12bf2c){const _0x5479be=_0x20ea74;let _0x3119a6=_0x526eac['join'](_0x209170[_0x5479be(0x225)]);this[_0x5479be(0x3bb)][_0x3119a6]===void 0x0&&this[_0x5479be(0x2d7)](_0x3ba1de,_0x3119a6,void 0x0,_0x12bf2c);let _0x527c56=this[_0x5479be(0x444)][this[_0x5479be(0x3bb)][_0x3119a6]];_0x527c56[_0x5479be(0x430)][_0x5479be(0x3b3)](_0x4fc2fd);for(let _0x1e168e of this[_0x5479be(0x23c)]){let _0x3068e2=_0x527c56[_0x5479be(0x368)][_0x1e168e],_0x53c41c=this[_0x5479be(0x2cb)][_0x1e168e][_0x5479be(0x4c7)]['getValue'](_0x4fc2fd);_0x3068e2[_0x5479be(0x4cf)](_0x53c41c);}}[_0x20ea74(0x2d7)](_0x3b3f06,_0x18ad14,_0x484fc0,_0x5e4c0d=[]){const _0xa7c3ae=_0x20ea74;let _0x3d63c0=_0x18ad14||_0x3b3f06[_0xa7c3ae(0x398)](_0x209170[_0xa7c3ae(0x225)]);if(!this['tupleMap'][_0x3d63c0]){let _0x3b0a1c={'path':_0x3b3f06,'types':_0x5e4c0d,'indexes':[],'tuple':{}};for(let _0xabfcba of this[_0xa7c3ae(0x23c)]){let _0x3d614d=new _0x4e9c60();_0x3b0a1c[_0xa7c3ae(0x368)][_0xabfcba]=_0x3d614d;}if(_0x484fc0===void 0x0){let _0x1d4963=this[_0xa7c3ae(0x444)][_0xa7c3ae(0x3b3)](_0x3b0a1c);this[_0xa7c3ae(0x3bb)][_0x3d63c0]=_0x1d4963-0x1;}else this[_0xa7c3ae(0x444)][_0x484fc0]=_0x3b0a1c,this[_0xa7c3ae(0x3bb)][_0x3d63c0]=_0x484fc0;}}};let _0x3f4d98=_0x1c6486=>_0x1c6486[_0x20ea74(0x2f8)]!==void 0x0,_0x5c9ade=_0x197e1a=>{const _0x1b4523=_0x20ea74;if(_0x3f4d98(_0x197e1a)){let {type:_0x8aa0ec,baseFieldId:_0x532066,sortItems:_0x2eb544,sortLocale:_0x43c60a}=_0x197e1a;return{'type':_0x8aa0ec,'baseFieldId':_0x532066,'sortItems':_0x2eb544[_0x1b4523(0x2b2)](),..._0x43c60a===void 0x0?{}:{'sortLocale':_0x43c60a}};}return _0x1b4523(0x274)in _0x197e1a?{..._0x197e1a,'customOrder':_0x197e1a[_0x1b4523(0x274)][_0x1b4523(0x2b2)]()}:{..._0x197e1a};},_0x13c0b1=_0x494d73=>({..._0x494d73}),_0x54ed2a=()=>({'type':0x1,'baseFieldId':'','baseItem':''});var _0x35fc02=class{constructor(_0x2a4ae9,_0x286e8d,_0x4cad92='',_0x4f5520){const _0xc39ecd=_0x20ea74;_0x3dd15e(this,_0xc39ecd(0x34a),void 0x0),_0x3dd15e(this,'id',void 0x0),_0x3dd15e(this,_0xc39ecd(0x55b),void 0x0),_0x3dd15e(this,_0xc39ecd(0x24b),void 0x0),_0x3dd15e(this,_0xc39ecd(0x421),void 0x0),_0x3dd15e(this,_0xc39ecd(0x509),void 0x0),this[_0xc39ecd(0x34a)]=_0x2a4ae9,this['id']=_0x286e8d,this[_0xc39ecd(0x24b)]=_0x4cad92,this[_0xc39ecd(0x55b)]=_0x4f5520;}['getId'](){return this['id'];}['getSourceName'](){const _0x2d1078=_0x20ea74;return this[_0x2d1078(0x55b)];}['setSourceName'](_0x27eaa1){const _0x23798f=_0x20ea74;this[_0x23798f(0x55b)]=_0x27eaa1;}['setDataFieldId'](_0x5bdd9a){const _0x1bcb0b=_0x20ea74;this[_0x1bcb0b(0x34a)]=_0x5bdd9a;}[_0x20ea74(0x293)](){const _0x16ed1a=_0x20ea74;return this[_0x16ed1a(0x34a)];}[_0x20ea74(0x580)](){return this['format'];}[_0x20ea74(0x405)](_0x121ea6){const _0xb7b20c=_0x20ea74;this[_0xb7b20c(0x421)]=_0x121ea6;}[_0x20ea74(0x517)](_0x294665){this['displayName']=_0x294665;}[_0x20ea74(0x224)](){const _0x2552cf=_0x20ea74;return this[_0x2552cf(0x24b)];}},_0xea0310=class extends _0x35fc02{constructor(_0x4991c0,_0x2d8c5f,_0x3e423d='',_0x566b6f){const _0x266ccb=_0x20ea74;super(_0x4991c0,_0x2d8c5f,_0x3e423d,_0x566b6f),_0x3dd15e(this,_0x266ccb(0x1fd),void 0x0),_0x3dd15e(this,_0x266ccb(0x4a3),_0x54ed2a());}[_0x20ea74(0x563)](_0x589486){const _0x10e7ea=_0x20ea74;this[_0x10e7ea(0x1fd)]=_0x589486;}['getSubtotal'](){const _0x5574d8=_0x20ea74;return this[_0x5574d8(0x1fd)];}['setShowDataAs'](_0x2dba74){const _0x5b536c=_0x20ea74;this[_0x5b536c(0x4a3)]=_0x13c0b1(_0x2dba74);}['getShowDataAs'](){const _0x53620f=_0x20ea74;return _0x13c0b1(this[_0x53620f(0x4a3)]);}[_0x20ea74(0x40a)](){const _0x4e244b=_0x20ea74;return{'id':this['id'],'dataFieldId':this[_0x4e244b(0x34a)],'displayName':this[_0x4e244b(0x24b)],'subtotal':this['subtotal'],'showDataAs':_0x13c0b1(this[_0x4e244b(0x4a3)])};}['toJSON'](){const _0x180736=_0x20ea74;return{'id':this['id'],'dataFieldId':this[_0x180736(0x34a)],'displayName':this['displayName'],'sourceName':this[_0x180736(0x55b)],'subtotal':this[_0x180736(0x1fd)],'format':this['format'],'showDataAs':_0x13c0b1(this[_0x180736(0x4a3)])};}['fromJSON'](_0x589151){const _0x42c2fc=_0x20ea74;this['id']=_0x589151['id'],this[_0x42c2fc(0x34a)]=_0x589151[_0x42c2fc(0x34a)],this[_0x42c2fc(0x24b)]=_0x589151[_0x42c2fc(0x24b)],this[_0x42c2fc(0x55b)]=_0x589151[_0x42c2fc(0x55b)],this[_0x42c2fc(0x421)]=_0x589151['format'],this['subtotal']=_0x589151[_0x42c2fc(0x1fd)];let _0x235119=_0x589151['showDataAs'];this[_0x42c2fc(0x4a3)]=(_0x235119==null?void 0x0:_0x235119[_0x42c2fc(0x3a3)])===void 0x0?_0x54ed2a():_0x13c0b1(_0x235119);}},_0x10f549=class extends _0x35fc02{constructor(_0x43d565,_0x461be1,_0x5a8bd9='',_0x4c7631){const _0xda31c6=_0x20ea74;super(_0x43d565,_0x461be1,_0x5a8bd9,_0x4c7631),_0x3dd15e(this,_0xda31c6(0x4ed),void 0x0),_0x3dd15e(this,_0xda31c6(0x211),void 0x0),_0x3dd15e(this,_0xda31c6(0x2d2),void 0x0);}['setSortInfo'](_0x121670){this['sortInfo']=_0x121670?_0x5c9ade(_0x121670):void 0x0;}[_0x20ea74(0x4a7)](){return this['sortInfo']?_0x5c9ade(this['sortInfo']):void 0x0;}[_0x20ea74(0x44d)](_0x274736){const _0x4d276e=_0x20ea74;this[_0x4d276e(0x211)]=_0x55e72a(_0x274736)||_0x5ac9ed(_0x274736)?_0x5239a6(_0x274736):_0x274736;}[_0x20ea74(0x319)](){const _0x8c59c4=_0x20ea74;return _0x55e72a(this[_0x8c59c4(0x211)])||_0x5ac9ed(this[_0x8c59c4(0x211)])?_0x5239a6(this['filterInfo']):this[_0x8c59c4(0x211)];}['getConditionFilterInfo'](){const _0x1c60c3=_0x20ea74;var _0xaf1187;return _0x5239a6(this[_0x1c60c3(0x2d2)]??(((_0xaf1187=this[_0x1c60c3(0x211)])==null?void 0x0:_0xaf1187['type'])===0x1?this[_0x1c60c3(0x211)]:void 0x0));}[_0x20ea74(0x3f6)](_0xb8b9b2){const _0x3d8863=_0x20ea74;if(_0xb8b9b2!==void 0x0&&_0xb8b9b2[_0x3d8863(0x3a3)]!==0x1&&(!_0x55e72a(_0xb8b9b2)||!_0xb8b9b2[_0x3d8863(0x30c)]||_0xb8b9b2[_0x3d8863(0x1d8)]!==void 0x0))throw TypeError(_0x3d8863(0x366));this['conditionFilter']=_0x5239a6(_0xb8b9b2);}[_0x20ea74(0x40a)](){const _0x13e202=_0x20ea74;return{'id':this['id'],'dataFieldId':this[_0x13e202(0x34a)],'displayName':this[_0x13e202(0x24b)],'sortInfo':this[_0x13e202(0x4a7)](),'filterInfo':this[_0x13e202(0x211)]&&(_0x55e72a(this[_0x13e202(0x211)])||_0x5ac9ed(this['filterInfo'])?_0x5239a6(this[_0x13e202(0x211)]):Object['assign']({},this[_0x13e202(0x211)])),...this['conditionFilter']?{'conditionFilter':this['getConditionFilterInfo']()}:{}};}[_0x20ea74(0x471)](){const _0x3f63c7=_0x20ea74;return{'id':this['id'],'dataFieldId':this[_0x3f63c7(0x34a)],'displayName':this[_0x3f63c7(0x24b)],'format':this[_0x3f63c7(0x421)],'sourceName':this[_0x3f63c7(0x55b)],'sortInfo':this[_0x3f63c7(0x4ed)]?_0x5c9ade(this[_0x3f63c7(0x4ed)]):void 0x0,'filterInfo':_0x55e72a(this[_0x3f63c7(0x211)])||_0x5ac9ed(this[_0x3f63c7(0x211)])?_0x5239a6(this['filterInfo']):this[_0x3f63c7(0x211)]||void 0x0,...this[_0x3f63c7(0x2d2)]?{'conditionFilter':this[_0x3f63c7(0x463)]()}:{}};}[_0x20ea74(0x54b)](_0x591a6a){const _0x176e6d=_0x20ea74;var _0x2c6d02;if(_0x591a6a['conditionFilter']&&(((_0x2c6d02=_0x591a6a['filterInfo'])==null?void 0x0:_0x2c6d02[_0x176e6d(0x3a3)])===0x1||_0x55e72a(_0x591a6a[_0x176e6d(0x211)])&&_0x591a6a[_0x176e6d(0x211)]['dateRange']!==void 0x0))throw TypeError(_0x176e6d(0x346));this['id']=_0x591a6a['id'],this['dataFieldId']=_0x591a6a[_0x176e6d(0x34a)],this[_0x176e6d(0x24b)]=_0x591a6a[_0x176e6d(0x24b)],this[_0x176e6d(0x55b)]=_0x591a6a[_0x176e6d(0x55b)],this[_0x176e6d(0x421)]=_0x591a6a[_0x176e6d(0x421)],_0x591a6a['sortInfo']&&this[_0x176e6d(0x532)](_0x591a6a['sortInfo']),_0x591a6a[_0x176e6d(0x211)]&&(this[_0x176e6d(0x211)]=_0x55e72a(_0x591a6a[_0x176e6d(0x211)])||_0x5ac9ed(_0x591a6a[_0x176e6d(0x211)])?_0x5239a6(_0x591a6a['filterInfo']):_0x591a6a[_0x176e6d(0x211)]),this[_0x176e6d(0x3f6)](_0x591a6a['conditionFilter']);}};function _0x2ff588(_0x1e0819,_0xeca46d=!0x0){const _0x10c9aa=_0x20ea74;let _0xdbb714=new _0xea0310(_0x1e0819[_0x10c9aa(0x34a)],_0x1e0819['id'],_0x1e0819[_0x10c9aa(0x224)](),_0x1e0819['sourceName']);if(_0x2c6198(_0x1e0819[_0x10c9aa(0x224)](),0x9),_0xdbb714[_0x10c9aa(0x1fd)]=0x9,_0x1e0819[_0x10c9aa(0x509)]){let _0x56b609=_0x1e0819[_0x10c9aa(0x509)];_0x56b609[_0x10c9aa(0x4a3)]&&(_0xdbb714[_0x10c9aa(0x4a3)]=_0x56b609[_0x10c9aa(0x4a3)]),_0x56b609['subtotal']!==void 0x0&&(_0xdbb714[_0x10c9aa(0x1fd)]=_0x56b609[_0x10c9aa(0x1fd)]);}return _0xeca46d&&(_0xdbb714[_0x10c9aa(0x509)]={'sortInfo':_0x1e0819['getSortInfo'](),'filterInfo':_0x1e0819[_0x10c9aa(0x319)](),..._0x1e0819[_0x10c9aa(0x2d2)]?{'conditionFilter':_0x1e0819[_0x10c9aa(0x463)]()}:{}}),_0xdbb714;}function _0x9e3c63(_0x2b29f6,_0x346934=!0x0){const _0x413755=_0x20ea74;let _0x1a03b7=new _0x10f549(_0x2b29f6[_0x413755(0x34a)],_0x2b29f6['id'],_0x2b29f6[_0x413755(0x224)](),_0x2b29f6[_0x413755(0x55b)]);if(_0x1a03b7[_0x413755(0x517)](_0x2b29f6[_0x413755(0x224)]()),_0x2b29f6[_0x413755(0x509)]){let _0x692416=_0x2b29f6[_0x413755(0x509)];_0x692416[_0x413755(0x4ed)]&&(_0x1a03b7[_0x413755(0x4ed)]=_0x692416[_0x413755(0x4ed)]),_0x692416[_0x413755(0x211)]&&(_0x1a03b7[_0x413755(0x211)]=_0x55e72a(_0x692416[_0x413755(0x211)])?_0x5239a6(_0x692416[_0x413755(0x211)]):_0x692416[_0x413755(0x211)]),_0x1a03b7[_0x413755(0x3f6)](_0x692416[_0x413755(0x2d2)]);}return _0x346934&&(_0x1a03b7['lossLessProperty']={'subtotal':_0x2b29f6[_0x413755(0x40e)](),'showDataAs':_0x2b29f6[_0x413755(0x37a)]()}),_0x1a03b7;}function _0x41de5d(_0x2c5c30){const _0x217976=_0x20ea74;let {dataFieldId:_0x1cd454,id:_0x59a072,sourceName:_0x2a2c6f}=_0x2c5c30,_0x37d7d9=new _0xea0310(_0x1cd454,_0x59a072,'',_0x2a2c6f);return _0x37d7d9[_0x217976(0x54b)](_0x2c5c30),_0x37d7d9;}function _0x316b35(_0x3162e2){let {dataFieldId:_0x36cc0e,id:_0x3989da,sourceName:_0x555b74}=_0x3162e2,_0xc9abca=new _0x10f549(_0x36cc0e,_0x3989da,'',_0x555b74);return _0xc9abca['fromJSON'](_0x3162e2),_0xc9abca;}var _0x4aee23=class _0x9d85ac{constructor(){const _0x11b882=_0x20ea74;_0x3dd15e(this,_0x11b882(0x354),[]),_0x3dd15e(this,_0x11b882(0x574),[]),_0x3dd15e(this,'valueFields',[]),_0x3dd15e(this,'filterFields',[]),_0x3dd15e(this,'hiddenFields',[]),_0x3dd15e(this,_0x11b882(0x2d5),Object[_0x11b882(0x1f0)](null)),_0x3dd15e(this,_0x11b882(0x327),Object[_0x11b882(0x1f0)](null)),_0x3dd15e(this,'valueIndex',-0x1),_0x3dd15e(this,_0x11b882(0x50c),-0x1),_0x3dd15e(this,_0x11b882(0x356),0x3),_0x3dd15e(this,_0x11b882(0x2a7),Object[_0x11b882(0x1f0)](null)),_0x3dd15e(this,_0x11b882(0x4e7),void 0x0),_0x3dd15e(this,_0x11b882(0x47c),void 0x0),_0x3dd15e(this,_0x11b882(0x296),!0x0),_0x3dd15e(this,'_valueFilterInfo',[]),this['options']={'pageWrap':0x1,'pageOverThenDown':!0x1};}['startChangeStack'](){const _0x38e7fc=_0x20ea74;this[_0x38e7fc(0x47c)]=[];}[_0x20ea74(0x3a1)](){const _0x3c9524=_0x20ea74;let _0xc1c6a2=this[_0x3c9524(0x47c)];return delete this[_0x3c9524(0x47c)],_0xc1c6a2;}[_0x20ea74(0x22a)](_0x2473b3){const _0x59bbb9=_0x20ea74;this[_0x59bbb9(0x296)]=_0x2473b3;}['getDirty'](){const _0x3340f9=_0x20ea74;return this[_0x3340f9(0x296)];}[_0x20ea74(0x24a)](_0x121680,_0x1965f0=!0x1){const _0x10e59f=_0x20ea74;if(_0x121680[_0x10e59f(0x479)]!==void 0x0&&typeof _0x121680[_0x10e59f(0x479)]!=_0x10e59f(0x38e))throw TypeError(_0x10e59f(0x53e));if(_0x121680['dateGroupingMode']!==void 0x0&&_0x121680['dateGroupingMode']!=='legacy'&&_0x121680[_0x10e59f(0x476)]!==_0x10e59f(0x278))throw TypeError(_0x10e59f(0x34b));!_0x1965f0&&_0x121680[_0x10e59f(0x479)]===!0x1&&_0x51cfea(this[_0x10e59f(0x471)]())&&this[_0x10e59f(0x394)]();let _0x42858f={...this['options']},_0xb4c252=_0x1965f0?{..._0x121680}:{...this[_0x10e59f(0x4e7)],..._0x121680},_0x46fe34=Object[_0x10e59f(0x4b4)](_0xb4c252);if(!(_0x46fe34['length']===Object[_0x10e59f(0x4b4)](_0x42858f)[_0x10e59f(0x41f)]&&_0x46fe34[_0x10e59f(0x437)](_0x18b9e9=>_0x42858f[_0x18b9e9]===_0xb4c252[_0x18b9e9]))&&(this[_0x10e59f(0x4e7)]={..._0xb4c252},this[_0x10e59f(0x47c)])){let _0x3089b2={'type':0x8,'oldOptions':_0x42858f,'newOptions':_0xb4c252};this[_0x10e59f(0x47c)][_0x10e59f(0x3b3)](_0x3089b2);}}[_0x20ea74(0x337)](){const _0x3aa7b8=_0x20ea74;return{...this[_0x3aa7b8(0x4e7)]};}['setLayout'](_0x592278){const _0x12b458=_0x20ea74;let _0x103173=this[_0x12b458(0x356)];if(_0x103173!==_0x592278&&(this[_0x12b458(0x356)]=_0x592278,this['_changeStack'])){let _0x998034={'type':0xd,'oldLayout':_0x103173,'newLayout':_0x592278};this[_0x12b458(0x47c)]['push'](_0x998034);}}['getLayout'](){const _0x1f93d5=_0x20ea74;return this[_0x1f93d5(0x356)];}[_0x20ea74(0x3c8)](_0x2333a5,_0x3bcb67,_0x41db2a,_0x436938){const _0x511a7c=_0x20ea74;let _0x3bc9fb=this[_0x511a7c(0x2a7)][_0x2333a5];if(_0x41db2a!==void 0x0){let _0x558fd0=_0x3bc9fb===!0x0?Object['fromEntries']((_0x436938??[])[_0x511a7c(0x51f)](_0x3c878d=>[_0x3c878d,!0x0])):_0x3bc9fb,_0x1468e4=Object[_0x511a7c(0x1ff)](Object[_0x511a7c(0x1f0)](null),typeof _0x558fd0=='object'?_0x558fd0:void 0x0);_0x1468e4[_0x41db2a]=_0x3bcb67===!0x0,this[_0x511a7c(0x2a7)][_0x2333a5]=_0x1468e4;}else _0x3bcb67===void 0x0?delete this[_0x511a7c(0x2a7)][_0x2333a5]:this['collapseInfo'][_0x2333a5]=typeof _0x3bcb67==_0x511a7c(0x35c)?Object[_0x511a7c(0x1ff)](Object['create'](null),_0x3bcb67):_0x3bcb67;if(this[_0x511a7c(0x47c)]){let _0x5a6697=this[_0x511a7c(0x2a7)][_0x2333a5],_0x4a0c89={'type':0xa,'fieldId':_0x2333a5,'collapse':typeof _0x5a6697=='object'?{..._0x5a6697}:_0x5a6697,'previous':{'collapse':typeof _0x3bc9fb==_0x511a7c(0x35c)?{..._0x3bc9fb}:_0x3bc9fb}};this[_0x511a7c(0x47c)][_0x511a7c(0x3b3)](_0x4a0c89);}}[_0x20ea74(0x305)](_0xec5ec5,_0x3ec7e3,_0x471865){const _0xd628c1=_0x20ea74;let _0x9ef0bd=this['dimension'][_0xec5ec5];if(!_0x9ef0bd)return;if(_0x3ec7e3===void 0x0){if(_0x471865!==void 0x0){this[_0xd628c1(0x4f5)](_0x9ef0bd['dataFieldId'],void 0x0,_0x471865);return;}this[_0xd628c1(0x55d)](_0xec5ec5,void 0x0);return;}let _0x171a5d=_0x55e72a(_0x3ec7e3)||_0x5ac9ed(_0x3ec7e3)?_0x5239a6(_0x3ec7e3):_0x3ec7e3,_0x525d2d=_0x9ef0bd[_0xd628c1(0x319)](),_0x3170e4=_0x471865??(_0x3ec7e3[_0xd628c1(0x3a3)]===0x1||_0x55e72a(_0x3ec7e3)&&_0x3ec7e3['dateRange']!==void 0x0?_0xd628c1(0x301):_0xd628c1(0x567));if((_0x55e72a(_0x3ec7e3)?_0x1e2fc8({'type':0x4,..._0x3170e4===_0xd628c1(0x567)?{'selection':_0x3ec7e3[_0xd628c1(0x1d8)]}:{'dateRange':_0x3ec7e3[_0xd628c1(0x30c)]}}):_0x1e2fc8(_0x3ec7e3))&&this[_0xd628c1(0x4e7)][_0xd628c1(0x479)]!==!0x0){this['_clearSourceFilters'](_0x9ef0bd[_0xd628c1(0x34a)],_0xec5ec5),_0x55e72a(_0x171a5d)&&(_0x171a5d={'type':0x4,..._0x3170e4===_0xd628c1(0x567)?{'selection':_0x171a5d[_0xd628c1(0x1d8)]}:{'dateRange':_0x171a5d['dateRange']}}),this[_0xd628c1(0x55d)](_0xec5ec5,_0x171a5d);return;}this[_0xd628c1(0x4f5)](_0x9ef0bd['dataFieldId'],_0xec5ec5,_0x3170e4);let _0x2f5ec7=_0x9ef0bd[_0xd628c1(0x463)]();if(_0x55e72a(_0x171a5d)){if(_0x3170e4===_0xd628c1(0x301)){if(_0x2f5ec7=void 0x0,(_0x525d2d==null?void 0x0:_0x525d2d['type'])===0x3&&_0x171a5d['selection']===void 0x0&&_0x171a5d[_0xd628c1(0x30c)]){this[_0xd628c1(0x55d)](_0xec5ec5,_0x525d2d,{'type':0x4,'dateRange':_0x171a5d[_0xd628c1(0x30c)]});return;}_0x55e72a(_0x525d2d)&&_0x171a5d[_0xd628c1(0x1d8)]===void 0x0&&(_0x171a5d={..._0x171a5d,..._0x525d2d[_0xd628c1(0x1d8)]?{'selection':_0x525d2d[_0xd628c1(0x1d8)]}:{}});}else _0x55e72a(_0x525d2d)&&_0x525d2d['dateRange']&&(_0x171a5d={..._0x171a5d,'dateRange':_0x525d2d['dateRange']});}else _0x171a5d[_0xd628c1(0x3a3)]===0x3&&_0x55e72a(_0x525d2d)&&_0x525d2d['dateRange']&&(_0x2f5ec7={'type':0x4,'dateRange':_0x525d2d['dateRange']});if(_0x171a5d[_0xd628c1(0x3a3)]===0x1&&_0x525d2d&&_0x525d2d[_0xd628c1(0x3a3)]!==0x1){let _0x325833=_0x5239a6(_0x525d2d);_0x55e72a(_0x325833)&&delete _0x325833[_0xd628c1(0x30c)],this[_0xd628c1(0x55d)](_0xec5ec5,_0x325833,_0x171a5d);}else this[_0xd628c1(0x55d)](_0xec5ec5,_0x171a5d,_0x171a5d[_0xd628c1(0x3a3)]===0x1?void 0x0:_0x2f5ec7);}[_0x20ea74(0x55d)](_0x137f7a,_0x3d76c7,_0x12d5c6){const _0x302bd6=_0x20ea74;if(this[_0x302bd6(0x2d5)][_0x137f7a]){if(_0x12d5c6&&((_0x3d76c7==null?void 0x0:_0x3d76c7[_0x302bd6(0x3a3)])===0x1||_0x55e72a(_0x3d76c7)&&_0x3d76c7[_0x302bd6(0x30c)]!==void 0x0))throw TypeError(_0x302bd6(0x2bc));let _0x3cd270=_0x5239a6(_0x12d5c6);if(_0x3cd270&&_0x3cd270[_0x302bd6(0x3a3)]!==0x1&&(!_0x55e72a(_0x3cd270)||!_0x3cd270[_0x302bd6(0x30c)]||_0x3cd270[_0x302bd6(0x1d8)]!==void 0x0))throw TypeError(_0x302bd6(0x366));let _0x5239d9=this[_0x302bd6(0x2d5)][_0x137f7a][_0x302bd6(0x2d2)],_0x55b56e=this[_0x302bd6(0x2d5)][_0x137f7a]['getFilterInfo'](),_0x6a7cab=_0x55b56e===void 0x0||_0x55e72a(_0x55b56e)||_0x5ac9ed(_0x55b56e)?_0x55b56e:{..._0x55b56e};if(this['dimension'][_0x137f7a][_0x302bd6(0x44d)](_0x3d76c7),this[_0x302bd6(0x2d5)][_0x137f7a][_0x302bd6(0x3f6)](_0x3cd270),this['_changeStack']){let _0x57e974={'type':0x4,'fieldId':_0x137f7a,'oldFilterInfo':_0x6a7cab,'newFilterInfo':_0x55e72a(_0x3d76c7)||_0x5ac9ed(_0x3d76c7)?_0x5239a6(_0x3d76c7):_0x3d76c7,..._0x5239d9||_0x12d5c6?{'oldConditionFilter':_0x5239a6(_0x5239d9)??null,'newConditionFilter':_0x5239a6(_0x12d5c6)??null}:{}};this[_0x302bd6(0x47c)][_0x302bd6(0x3b3)](_0x57e974);}this[_0x302bd6(0x22a)](!0x0);}}[_0x20ea74(0x3cf)](_0xb23ae8,_0x2d5a0c,_0x61962a){const _0x3abf16=_0x20ea74;this[_0x3abf16(0x22e)](_0xb23ae8,_0x2d5a0c,_0x61962a,!0x0);}[_0x20ea74(0x521)](_0x551e41,_0x184bc9,_0x57bff8){const _0x1f75d6=_0x20ea74;this[_0x1f75d6(0x22e)](_0x551e41,_0x184bc9,_0x57bff8,!0x1);}['_setValueFilterState'](_0x15ff8e,_0xe4d72e,_0x27fd6a,_0x2edd4c){const _0x5f4fa9=_0x20ea74;let _0x552149=this['_valueFilterInfo'][_0x5f4fa9(0x326)](_0x3eb0f6=>_0x3eb0f6[_0x5f4fa9(0x1fe)]===_0x15ff8e);if(_0xe4d72e===void 0x0&&_0x552149===-0x1)return;let {area:_0x489ebd}=this[_0x5f4fa9(0x2ee)](_0x15ff8e);if(_0xe4d72e!==void 0x0&&(_0x489ebd===void 0x0||!_0x342484(_0x489ebd)||!this[_0x5f4fa9(0x327)][_0xe4d72e[_0x5f4fa9(0x2a9)]]||_0xe4d72e[_0x5f4fa9(0x3a3)]!==0x2||!_0x1f688a(_0xe4d72e[_0x5f4fa9(0x387)]))){console[_0x5f4fa9(0x320)](_0x5f4fa9(0x4b1));return;}if(_0x2edd4c&&_0xe4d72e&&this[_0x5f4fa9(0x4e7)][_0x5f4fa9(0x479)]!==!0x0){let _0x21a56e=this[_0x5f4fa9(0x2d5)][_0x15ff8e];this[_0x5f4fa9(0x2f7)](_0x21a56e[_0x5f4fa9(0x34a)],_0x15ff8e,!0x0),(_0x21a56e[_0x5f4fa9(0x211)]||_0x21a56e['conditionFilter'])&&this[_0x5f4fa9(0x55d)](_0x15ff8e,void 0x0),_0x552149=this[_0x5f4fa9(0x289)][_0x5f4fa9(0x326)](_0xae6f06=>_0xae6f06['fieldId']===_0x15ff8e);}else _0x2edd4c&&_0xe4d72e&&(this[_0x5f4fa9(0x4f5)](this[_0x5f4fa9(0x2d5)][_0x15ff8e]['dataFieldId'],_0x15ff8e,_0x5f4fa9(0x306)),_0x552149=this[_0x5f4fa9(0x289)][_0x5f4fa9(0x326)](_0x236496=>_0x236496[_0x5f4fa9(0x1fe)]===_0x15ff8e));let _0x23f757=_0x552149===-0x1?void 0x0:this['_valueFilterInfo'][_0x552149][_0x5f4fa9(0x211)];_0x552149!==-0x1&&this[_0x5f4fa9(0x289)]['splice'](_0x552149,0x1);let _0x3d285c=-0x1;if(_0xe4d72e&&(_0x3d285c=!_0x2edd4c&&_0x27fd6a!==void 0x0&&_0x27fd6a>=0x0?Math[_0x5f4fa9(0x52f)](_0x27fd6a,this[_0x5f4fa9(0x289)][_0x5f4fa9(0x41f)]):_0x552149===-0x1?Math[_0x5f4fa9(0x52f)](Math[_0x5f4fa9(0x525)](_0x27fd6a??this[_0x5f4fa9(0x289)][_0x5f4fa9(0x41f)],0x0),this['_valueFilterInfo'][_0x5f4fa9(0x41f)]):_0x552149,this['_valueFilterInfo'][_0x5f4fa9(0x42f)](_0x3d285c,0x0,{'fieldId':_0x15ff8e,'filterInfo':_0x4633c7(_0xe4d72e)})),this[_0x5f4fa9(0x47c)]){let _0x35115f={'type':0xc,'fieldId':_0x15ff8e,'oldFilterInfo':_0x4633c7(_0x23f757),'filterInfo':_0x4633c7(_0xe4d72e),'oldIndex':_0x552149,'newIndex':_0x3d285c};this['_changeStack'][_0x5f4fa9(0x3b3)](_0x35115f);}}[_0x20ea74(0x583)](_0xe8a8d){const _0x8a63b2=_0x20ea74;let _0x45470f=this[_0x8a63b2(0x289)][_0x8a63b2(0x1e3)](_0x16ff9e=>_0x16ff9e[_0x8a63b2(0x1fe)]===_0xe8a8d);return _0x4633c7(_0x45470f==null?void 0x0:_0x45470f[_0x8a63b2(0x211)]);}[_0x20ea74(0x463)](_0x5cf9ec){const _0x135c3a=_0x20ea74;var _0xd78102;return(_0xd78102=this[_0x135c3a(0x2d5)][_0x5cf9ec])==null?void 0x0:_0xd78102[_0x135c3a(0x463)]();}[_0x20ea74(0x482)](_0x652d53){const _0x53739e=_0x20ea74;let _0x5883da=this[_0x53739e(0x2d5)][_0x652d53];_0x5883da&&(this['_clearSourceFilters'](_0x5883da[_0x53739e(0x34a)],_0x652d53),this[_0x53739e(0x55d)](_0x652d53,void 0x0));}[_0x20ea74(0x394)](){const _0x57d308=_0x20ea74;for(let _0x333c17 of Object[_0x57d308(0x341)](this[_0x57d308(0x2d5)]))(_0x333c17[_0x57d308(0x211)]||_0x333c17[_0x57d308(0x2d2)])&&this[_0x57d308(0x55d)](_0x333c17['id'],void 0x0);for(let _0x2153c1 of this[_0x57d308(0x289)][_0x57d308(0x340)]())this[_0x57d308(0x3cf)](_0x2153c1['fieldId'],void 0x0);}[_0x20ea74(0x2f7)](_0x296461,_0x5457fd,_0x3a9467=!0x1){const _0x5bcd76=_0x20ea74;for(let _0x11a485 of Object[_0x5bcd76(0x341)](this[_0x5bcd76(0x2d5)]))_0x11a485[_0x5bcd76(0x34a)]===_0x296461&&(_0x11a485['id']!==_0x5457fd&&(_0x11a485[_0x5bcd76(0x211)]||_0x11a485['conditionFilter'])&&this[_0x5bcd76(0x55d)](_0x11a485['id'],void 0x0),_0x3a9467&&_0x11a485['id']===_0x5457fd||this[_0x5bcd76(0x3cf)](_0x11a485['id'],void 0x0));}['_clearSourceFilterCategory'](_0x58510,_0x1167d0,_0x4b0c31){const _0x45c26d=_0x20ea74;for(let _0x536e76 of Object['values'](this[_0x45c26d(0x2d5)])){if(_0x536e76['id']===_0x1167d0||_0x536e76['dataFieldId']!==_0x58510)continue;if(_0x4b0c31==='value'){this['setValueFilterState'](_0x536e76['id'],void 0x0);continue;}if(!_0x5529ef(_0x536e76[_0x45c26d(0x471)]())['has'](_0x4b0c31))continue;let _0x359321=_0x536e76[_0x45c26d(0x319)](),_0x2e8fc2=_0x536e76[_0x45c26d(0x2d2)];_0x55e72a(_0x359321)?(_0x359321=_0x5239a6(_0x359321),_0x4b0c31==='member'?delete _0x359321[_0x45c26d(0x1d8)]:delete _0x359321[_0x45c26d(0x30c)],!_0x359321[_0x45c26d(0x1d8)]&&!_0x359321[_0x45c26d(0x30c)]&&(_0x359321=void 0x0)):_0x359321&&_0x359321['type']===0x1==(_0x4b0c31===_0x45c26d(0x301))&&(_0x359321=void 0x0),_0x4b0c31===_0x45c26d(0x301)&&(_0x2e8fc2=void 0x0),(_0x359321!==_0x536e76[_0x45c26d(0x211)]||_0x2e8fc2!==_0x536e76[_0x45c26d(0x2d2)])&&this[_0x45c26d(0x55d)](_0x536e76['id'],_0x359321,_0x2e8fc2);}}['getValueFilterInfos'](){const _0x1480d5=_0x20ea74;return this[_0x1480d5(0x289)][_0x1480d5(0x51f)](_0x1811b2);}[_0x20ea74(0x360)](_0x293862){const _0x2a524d=_0x20ea74;this[_0x2a524d(0x289)][_0x2a524d(0x1e3)](_0x145e5d=>_0x145e5d[_0x2a524d(0x1fe)]===_0x293862)&&this[_0x2a524d(0x3cf)](_0x293862,void 0x0);}[_0x20ea74(0x369)](_0x112d90){const _0x558b26=_0x20ea74;let _0x4ffb9c=this[_0x558b26(0x289)][_0x558b26(0x572)](_0x2556a8=>_0x2556a8[_0x558b26(0x211)][_0x558b26(0x2a9)]===_0x112d90);if(_0x4ffb9c&&_0x4ffb9c[_0x558b26(0x41f)]>0x0){let _0x207e24=_0x4ffb9c[_0x558b26(0x41f)];for(let _0x407b3e=_0x207e24-0x1;_0x407b3e>=0x0;_0x407b3e--)this[_0x558b26(0x3cf)](_0x4ffb9c[_0x407b3e][_0x558b26(0x1fe)],void 0x0);}}[_0x20ea74(0x491)](_0x304eae){const _0x467b31=_0x20ea74;if(this[_0x467b31(0x2d5)][_0x304eae])return this['dimension'][_0x304eae]['getFormat']();if(this[_0x467b31(0x327)][_0x304eae])return this[_0x467b31(0x327)][_0x304eae][_0x467b31(0x580)]();}[_0x20ea74(0x237)](_0x3a9452,_0x5ccfe8){const _0x4a4898=_0x20ea74;let _0x136a08;if(this[_0x4a4898(0x2d5)][_0x3a9452]&&this['dimension'][_0x3a9452][_0x4a4898(0x405)](_0x5ccfe8),this[_0x4a4898(0x327)][_0x3a9452]&&this['measure'][_0x3a9452]['setFormat'](_0x5ccfe8),this[_0x4a4898(0x47c)]&&(this[_0x4a4898(0x2d5)][_0x3a9452]||this[_0x4a4898(0x327)][_0x3a9452])){let _0x4395a3={'type':0x9,'fieldId':_0x3a9452,'oldFormat':_0x136a08,'newFormat':_0x5ccfe8};this[_0x4a4898(0x47c)][_0x4a4898(0x3b3)](_0x4395a3);}}[_0x20ea74(0x532)](_0x27b9bc,_0x3266e8){const _0x34af66=_0x20ea74;if(this[_0x34af66(0x2d5)][_0x27b9bc]){let _0x764bd2=this[_0x34af66(0x2d5)][_0x27b9bc],_0x52dad9=_0x764bd2[_0x34af66(0x4a7)]();if(_0x764bd2[_0x34af66(0x532)](_0x3266e8),this[_0x34af66(0x47c)]){let _0x8583c0={'type':0x5,'fieldId':_0x27b9bc,'newSortInfo':_0x764bd2[_0x34af66(0x4a7)](),'oldSortInfo':_0x52dad9};this[_0x34af66(0x47c)][_0x34af66(0x3b3)](_0x8583c0);}}}[_0x20ea74(0x4a7)](_0x553090){const _0x36dc8=_0x20ea74;if(this[_0x36dc8(0x2d5)][_0x553090])return this[_0x36dc8(0x2d5)][_0x553090]['getSortInfo']();}[_0x20ea74(0x319)](_0x17c0e8){const _0x380b72=_0x20ea74;if(this[_0x380b72(0x2d5)][_0x17c0e8])return this[_0x380b72(0x2d5)][_0x17c0e8]['getFilterInfo']();}[_0x20ea74(0x2f1)](_0xc177f0){const _0xfde00e=_0x20ea74;Object[_0xfde00e(0x341)](this[_0xfde00e(0x2d5)])[_0xfde00e(0x559)](_0x36a1ef=>{_0xc177f0(_0x36a1ef);}),Object[_0xfde00e(0x341)](this[_0xfde00e(0x327)])['forEach'](_0x1aa72a=>{_0xc177f0(_0x1aa72a);});}[_0x20ea74(0x538)](_0x59deb6){const _0x2f03ef=_0x20ea74;Object[_0x2f03ef(0x341)](this['dimension'])[_0x2f03ef(0x559)](_0x195b00=>{_0x59deb6(_0x195b00);});}['iterateFieldMeasure'](_0x4c08be){const _0x536ec3=_0x20ea74;Object['values'](this['measure'])[_0x536ec3(0x559)](_0x5efe0a=>{_0x4c08be(_0x5efe0a);});}[_0x20ea74(0x530)](_0x3050f9,_0x100c25){const _0x397d55=_0x20ea74;this['getFieldsAreaByType'](_0x3050f9)[_0x397d55(0x559)](_0x5b7b64=>{const _0xec63c9=_0x397d55;let _0x5c6fae=this[_0xec63c9(0x30a)](_0x5b7b64);_0x5c6fae&&_0x100c25(_0x5c6fae);});}[_0x20ea74(0x416)](_0x221473,_0xe304aa,_0x47abde){const _0x14634c=_0x20ea74;if(this['getFieldById'](_0x221473[_0x14634c(0x324)]())){console['error'](_0x14634c(0x2fd)+_0x221473[_0x14634c(0x324)]()+_0x14634c(0x41b)+_0x221473['getDisplayName']()+'\x20is\x20already\x20in\x20the\x20pivot\x20table.');return;}_0x21a711(_0xe304aa)?this[_0x14634c(0x2d5)][_0x221473['id']]=_0x221473:this['measure'][_0x221473['id']]=_0x221473;let _0x2e2a1a;switch(_0xe304aa){case 0x1:_0x2e2a1a=this[_0x14634c(0x574)];break;case 0x2:_0x2e2a1a=this[_0x14634c(0x354)];break;case 0x3:_0x2e2a1a=this['valueFields'];break;case 0x4:_0x2e2a1a=this[_0x14634c(0x385)];break;case 0x5:_0x2e2a1a=this[_0x14634c(0x267)];}_0x47abde===void 0x0?_0x2e2a1a[_0x14634c(0x3b3)](_0x221473['id']):_0x2e2a1a[_0x14634c(0x42f)](_0x47abde,0x0,_0x221473['id']);let _0x14e031=_0x47abde===void 0x0?_0x2e2a1a[_0x14634c(0x41f)]-0x1:_0x47abde;if(this[_0x14634c(0x47c)]){let _0x1e437d={'type':0x0,'fieldJson':_0x221473['toJSON'](),'area':_0xe304aa,'index':_0x14e031};this[_0x14634c(0x47c)][_0x14634c(0x3b3)](_0x1e437d);}this[_0x14634c(0x22a)](!0x0);}['getFieldPositionInfoById'](_0x56081e){const _0x3b745f=_0x20ea74;let _0x53a236,_0x2ab40e=-0x1;return this[_0x3b745f(0x574)][_0x3b745f(0x576)](_0x56081e)===-0x1?this[_0x3b745f(0x354)]['indexOf'](_0x56081e)===-0x1?this['valueFields']['indexOf'](_0x56081e)===-0x1?this[_0x3b745f(0x385)][_0x3b745f(0x576)](_0x56081e)===-0x1?this[_0x3b745f(0x267)][_0x3b745f(0x576)](_0x56081e)!==-0x1&&(_0x53a236=0x5,_0x2ab40e=this[_0x3b745f(0x267)]['indexOf'](_0x56081e)):(_0x53a236=0x4,_0x2ab40e=this[_0x3b745f(0x385)][_0x3b745f(0x576)](_0x56081e)):(_0x53a236=0x3,_0x2ab40e=this[_0x3b745f(0x520)][_0x3b745f(0x576)](_0x56081e)):(_0x53a236=0x2,_0x2ab40e=this[_0x3b745f(0x354)][_0x3b745f(0x576)](_0x56081e)):(_0x53a236=0x1,_0x2ab40e=this['columnFields'][_0x3b745f(0x576)](_0x56081e)),{'area':_0x53a236,'index':_0x2ab40e};}[_0x20ea74(0x3ce)](_0x58dd62,_0x2ead68,_0x4ca1cf){const _0x456496=_0x20ea74;let _0x2c7929=this['getFieldById'](_0x58dd62);if(_0x2c7929){let _0x4b5131=_0x2c7929[_0x456496(0x427)](),_0x1d885a=_0x2c7929[_0x456496(0x293)]();if(_0x2c7929[_0x456496(0x3fb)](_0x2ead68),_0x2c7929['setDataFieldId'](_0x4ca1cf),this[_0x456496(0x47c)]){let _0x4eb991={'type':0xb,'tableFieldId':_0x58dd62,'oldSourceName':_0x4b5131,'newSourceName':_0x2ead68,'oldDataFieldId':_0x1d885a,'newDataFieldId':_0x4ca1cf};this['_changeStack']['push'](_0x4eb991);}this[_0x456496(0x22a)](!0x0);}}[_0x20ea74(0x297)](_0xbfaa2e){const _0x222bfc=_0x20ea74;switch(_0xbfaa2e){case 0x1:return this[_0x222bfc(0x574)];case 0x2:return this[_0x222bfc(0x354)];case 0x3:return this[_0x222bfc(0x520)];case 0x4:return this[_0x222bfc(0x385)];case 0x5:return this['hiddenFields'];}}['getFieldById'](_0xd128b3){const _0x4f0b41=_0x20ea74;if(this[_0x4f0b41(0x2d5)][_0xd128b3])return this[_0x4f0b41(0x2d5)][_0xd128b3];if(this[_0x4f0b41(0x327)][_0xd128b3])return this[_0x4f0b41(0x327)][_0xd128b3];}[_0x20ea74(0x3b4)](_0x14beee){const _0x573a85=_0x20ea74;for(let _0x53ed16 of Object[_0x573a85(0x341)](this[_0x573a85(0x2d5)]))if(_0x53ed16[_0x573a85(0x224)]()===_0x14beee)return!0x0;for(let _0x33de8e of Object[_0x573a85(0x341)](this[_0x573a85(0x327)]))if(_0x33de8e[_0x573a85(0x224)]()===_0x14beee)return!0x0;return!0x1;}[_0x20ea74(0x304)](_0x16fd9d,_0x3a2cac){const _0x1d909d=_0x20ea74;let {area:_0x27c54e,index:_0x53e8c9}=this[_0x1d909d(0x2ee)](_0x16fd9d);if(_0x27c54e===void 0x0||_0x53e8c9===-0x1){console[_0x1d909d(0x20f)](_0x1d909d(0x2fd)+_0x16fd9d+_0x1d909d(0x3fc));return;}let _0x3a145d=this[_0x1d909d(0x30a)](_0x16fd9d);if(!_0x3a145d){console[_0x1d909d(0x20f)](_0x1d909d(0x2fd)+_0x16fd9d+_0x1d909d(0x3fc));return;}let _0x4fb07a=_0x3a145d[_0x1d909d(0x224)]();if(_0x4fb07a!==_0x3a2cac){if(this[_0x1d909d(0x3b4)](_0x3a2cac))console['warn'](_0x1d909d(0x262)+_0x3a2cac+_0x1d909d(0x3f8));else{if(_0x3a145d['setDisplayName'](_0x3a2cac),this[_0x1d909d(0x47c)]){let _0x585e71={'type':0x3,'fieldId':_0x16fd9d,'newName':_0x3a2cac,'oldName':_0x4fb07a};this['_changeStack'][_0x1d909d(0x3b3)](_0x585e71);}}}}[_0x20ea74(0x4c6)](_0x2c4c11){const _0x4b85d9=_0x20ea74;let {area:_0x4855ff,index:_0x55cd57}=this[_0x4b85d9(0x2ee)](_0x2c4c11);if(_0x4855ff===void 0x0||_0x55cd57===-0x1){console[_0x4b85d9(0x20f)]('The\x20field\x20'+_0x2c4c11+'\x20is\x20not\x20in\x20the\x20pivot\x20table.');return;}_0x4855ff===0x3?this['removeValueFilterInfoByValueFieldId'](_0x2c4c11):_0x342484(_0x4855ff)&&this['removeValueFilterInfo'](_0x2c4c11),this[_0x4b85d9(0x297)](_0x4855ff)[_0x4b85d9(0x42f)](_0x55cd57,0x1);let _0x3b5878;if(_0x21a711(_0x4855ff)?(_0x3b5878=this['dimension'][_0x2c4c11]['toJSON'](),delete this[_0x4b85d9(0x2d5)][_0x2c4c11]):(_0x3b5878=this[_0x4b85d9(0x327)][_0x2c4c11][_0x4b85d9(0x471)](),delete this[_0x4b85d9(0x327)][_0x2c4c11]),this['_changeStack']){let _0x4089db={'type':0x2,'fieldId':_0x2c4c11,'fieldJson':_0x3b5878,'area':_0x4855ff,'index':_0x55cd57};this[_0x4b85d9(0x47c)][_0x4b85d9(0x3b3)](_0x4089db);}this[_0x4b85d9(0x22a)](!0x0);}['updateFieldPosition'](_0x59ba9b,_0x15ed74,_0xff35a1){const _0x50a1c7=_0x20ea74;let {area:_0x51588c,index:_0x4e1753}=this[_0x50a1c7(0x2ee)](_0x59ba9b);if(_0x51588c===_0x15ed74&&_0x4e1753===_0xff35a1)return;if(_0x51588c===void 0x0&&_0x4e1753===-0x1){console[_0x50a1c7(0x20f)](_0x50a1c7(0x2fd)+_0x59ba9b+_0x50a1c7(0x3fc));return;}let _0x14b199=this['getFieldsAreaByType'](_0x15ed74);this[_0x50a1c7(0x297)](_0x51588c)['splice'](_0x4e1753,0x1),_0x14b199[_0x50a1c7(0x42f)](_0xff35a1,0x0,_0x59ba9b);let _0xa00128=_0x21a711(_0x51588c);if(_0xa00128!==_0x21a711(_0x15ed74)){if(_0xa00128){let _0x4c82f8=this[_0x50a1c7(0x2d5)][_0x59ba9b];delete this[_0x50a1c7(0x2d5)][_0x59ba9b];let _0x2a9093=_0x2ff588(_0x4c82f8);this[_0x50a1c7(0x327)][_0x59ba9b]=_0x2a9093;}else{let _0x34e637=this['measure'][_0x59ba9b];delete this['measure'][_0x59ba9b];let _0x507f80=_0x9e3c63(_0x34e637);this[_0x50a1c7(0x2d5)][_0x59ba9b]=_0x507f80;}}if(this['_changeStack']){let _0x3eee25={'type':0x6,'fieldId':_0x59ba9b,'oldArea':_0x51588c,'newArea':_0x15ed74,'oldIndex':_0x4e1753,'newIndex':_0xff35a1};this[_0x50a1c7(0x47c)][_0x50a1c7(0x3b3)](_0x3eee25);}_0x342484(_0x51588c)&&_0x342484(_0x15ed74)||_0x51588c===0x3&&_0x15ed74===0x3||_0x51588c===0x5&&_0x15ed74===0x5||_0x51588c===0x4&&_0x15ed74===0x4||this[_0x50a1c7(0x22a)](!0x0);}[_0x20ea74(0x523)](_0x4e8470,_0x364bb5){const _0x7a3e84=_0x20ea74;let _0x419876=this['valuePosition'],_0x338d41=this[_0x7a3e84(0x529)];if(this[_0x7a3e84(0x50c)]=_0x4e8470,this['valueIndex']=_0x364bb5,this[_0x7a3e84(0x47c)]){let _0x97af3={'type':0x7,'oldValuePosition':_0x419876,'newValuePosition':_0x4e8470,'oldIndex':_0x338d41,'newIndex':_0x364bb5};this[_0x7a3e84(0x47c)][_0x7a3e84(0x3b3)](_0x97af3);}}['getValueIndex'](){const _0x5c2160=_0x20ea74;return this[_0x5c2160(0x529)];}[_0x20ea74(0x260)](){const _0x18b60d=_0x20ea74;return this[_0x18b60d(0x50c)];}[_0x20ea74(0x31c)](){const _0x41cfce=_0x20ea74;return this['valueFields']['length']<=0x1?!0x1:this[_0x41cfce(0x50c)]===0x1;}[_0x20ea74(0x397)](){const _0x226e66=_0x20ea74;return this['valueFields'][_0x226e66(0x41f)]<=0x1?!0x1:this[_0x226e66(0x50c)]===0x2;}['isEmpty'](){const _0x1531cf=_0x20ea74;return[]['concat'](this[_0x1531cf(0x354)],this[_0x1531cf(0x574)],this[_0x1531cf(0x520)],this['filterFields'])[_0x1531cf(0x41f)]===0x0;}[_0x20ea74(0x4a8)](_0x59284e,_0x1219a4){const _0x4f0434=_0x20ea74;if(this[_0x4f0434(0x327)][_0x59284e]){let _0x2fd369=this['measure'][_0x59284e]['getSubtotal']();if(this['measure'][_0x59284e][_0x4f0434(0x563)](_0x1219a4),this[_0x4f0434(0x47c)]){let _0x305f26={'type':0x1,'fieldId':_0x59284e,'newSubtotalType':_0x1219a4,'oldSubtotalType':_0x2fd369};this[_0x4f0434(0x47c)][_0x4f0434(0x3b3)](_0x305f26);}this[_0x4f0434(0x22a)](!0x0);}}[_0x20ea74(0x37a)](_0x36196d){const _0x3759c8=_0x20ea74;var _0x14e6a6;return(_0x14e6a6=this['measure'][_0x36196d])==null?void 0x0:_0x14e6a6[_0x3759c8(0x37a)]();}[_0x20ea74(0x2e6)](_0x29ff40,_0x588343){const _0x33f96b=_0x20ea74;let _0x4e9730=this[_0x33f96b(0x327)][_0x29ff40];if(!_0x4e9730)return;let _0x1b7ee2=_0x4e9730[_0x33f96b(0x37a)]();if(_0x4e9730[_0x33f96b(0x2e6)](_0x588343),this[_0x33f96b(0x47c)]){let _0x57dca4={'type':0xe,'fieldId':_0x29ff40,'oldShowDataAs':_0x1b7ee2,'newShowDataAs':_0x4e9730[_0x33f96b(0x37a)]()};this['_changeStack'][_0x33f96b(0x3b3)](_0x57dca4);}}[_0x20ea74(0x40a)](){const _0x56a9a8=_0x20ea74;let _0x204b66=this['dimension'],_0x56b13f=[];for(let _0x34598a of this[_0x56a9a8(0x354)])_0x204b66[_0x34598a]&&_0x56b13f[_0x56a9a8(0x3b3)](_0x204b66[_0x34598a][_0x56a9a8(0x40a)]());let _0x35ac58=[];for(let _0x56921c of this[_0x56a9a8(0x574)])_0x204b66[_0x56921c]&&_0x35ac58[_0x56a9a8(0x3b3)](_0x204b66[_0x56921c][_0x56a9a8(0x40a)]());let _0xc6a852=[];for(let _0x547112 of this['filterFields'])_0x204b66[_0x547112]&&_0xc6a852[_0x56a9a8(0x3b3)](_0x204b66[_0x547112][_0x56a9a8(0x40a)]());let _0x22b1a8=[];for(let _0x41aef4 of this[_0x56a9a8(0x267)])_0x204b66[_0x41aef4]&&_0x22b1a8[_0x56a9a8(0x3b3)](_0x204b66[_0x41aef4][_0x56a9a8(0x40a)]());let _0x54d5ec=[];for(let _0x496337 of this[_0x56a9a8(0x520)])this[_0x56a9a8(0x327)][_0x496337]&&_0x54d5ec['push'](this[_0x56a9a8(0x327)][_0x496337][_0x56a9a8(0x40a)]());let _0x2f95c4=[];for(let _0xb8bc6b of this[_0x56a9a8(0x289)]){let {fieldId:_0xcd3bb5,filterInfo:_0x224fd0}=_0xb8bc6b;_0x204b66[_0xcd3bb5]&&this[_0x56a9a8(0x327)][_0x224fd0['valueFieldId']]&&_0x2f95c4[_0x56a9a8(0x3b3)](_0x1811b2(_0xb8bc6b));}return{'rowQueryInfo':_0x56b13f,'colQueryInfo':_0x35ac58,'filterQueryInfo':_0xc6a852,'hiddenQueryInfo':_0x22b1a8,'valueQueryInfo':_0x54d5ec,'collapseInfo':{...this['collapseInfo']},'valueFilterInfo':_0x2f95c4};}[_0x20ea74(0x203)](_0x137901){const _0x3b85c5=_0x20ea74;_0x137901===void 0x0?(this['rowFields']=[],this[_0x3b85c5(0x574)]=[],this['valueFields']=[],this['filterFields']=[],this[_0x3b85c5(0x267)]=[],this[_0x3b85c5(0x2d5)]=Object[_0x3b85c5(0x1f0)](null),this[_0x3b85c5(0x327)]=Object[_0x3b85c5(0x1f0)](null),this[_0x3b85c5(0x529)]=-0x1,this[_0x3b85c5(0x50c)]=-0x1,this['collapseInfo']=Object['create'](null),this[_0x3b85c5(0x4e7)]={}):_0x137901===0x1?(this[_0x3b85c5(0x574)][_0x3b85c5(0x559)](_0x5de08a=>{const _0x381aff=_0x3b85c5;delete this[_0x381aff(0x2d5)][_0x5de08a];}),this[_0x3b85c5(0x574)]=[]):_0x137901===0x2?(this[_0x3b85c5(0x354)][_0x3b85c5(0x559)](_0x16c880=>{delete this['dimension'][_0x16c880];}),this[_0x3b85c5(0x354)]=[]):_0x137901===0x4?(this['filterFields'][_0x3b85c5(0x559)](_0x871ecb=>{const _0x500465=_0x3b85c5;delete this[_0x500465(0x2d5)][_0x871ecb];}),this[_0x3b85c5(0x385)]=[]):_0x137901===0x3&&(this['valueFields']['forEach'](_0xbbfec3=>{const _0x4afbd4=_0x3b85c5;delete this[_0x4afbd4(0x327)][_0xbbfec3];}),this['valueIndex']=-0x1,this[_0x3b85c5(0x50c)]=-0x1,this[_0x3b85c5(0x520)]=[]);}['fromJSON'](_0x1263d7){const _0x4c8c81=_0x20ea74;this[_0x4c8c81(0x2d5)]=Object['keys'](_0x1263d7['dimension'])[_0x4c8c81(0x243)]((_0x222ce5,_0xc2981e)=>{const _0x5e709d=_0x4c8c81;let _0x554761=_0x1263d7['dimension'][_0xc2981e],_0x16da18=new _0x10f549(_0x554761[_0x5e709d(0x34a)],_0x554761['id'],_0x554761[_0x5e709d(0x24b)],_0x554761[_0x5e709d(0x55b)]);return _0x16da18['fromJSON'](_0x554761),_0x222ce5[_0xc2981e]=_0x16da18,_0x222ce5;},Object[_0x4c8c81(0x1f0)](null)),this[_0x4c8c81(0x327)]=Object['keys'](_0x1263d7[_0x4c8c81(0x327)])[_0x4c8c81(0x243)]((_0x4f34d4,_0xdc69a)=>{const _0xd3725d=_0x4c8c81;let _0x1c46c5=_0x1263d7['measure'][_0xdc69a],_0x31b590=new _0xea0310(_0x1c46c5[_0xd3725d(0x34a)],_0x1c46c5['id'],_0x1c46c5[_0xd3725d(0x24b)],_0x1c46c5[_0xd3725d(0x55b)]);return _0x31b590[_0xd3725d(0x54b)](_0x1263d7[_0xd3725d(0x327)][_0xdc69a]),_0x4f34d4[_0xdc69a]=_0x31b590,_0x4f34d4;},Object[_0x4c8c81(0x1f0)](null)),this[_0x4c8c81(0x385)]=_0x1263d7[_0x4c8c81(0x385)][_0x4c8c81(0x2b2)](),this[_0x4c8c81(0x267)]=_0x1263d7[_0x4c8c81(0x267)]['concat'](),this[_0x4c8c81(0x354)]=_0x1263d7[_0x4c8c81(0x354)][_0x4c8c81(0x2b2)](),this['valueFields']=_0x1263d7[_0x4c8c81(0x520)][_0x4c8c81(0x2b2)](),this[_0x4c8c81(0x574)]=_0x1263d7['columnFields'][_0x4c8c81(0x2b2)](),this[_0x4c8c81(0x356)]=_0x1263d7[_0x4c8c81(0x356)]??0x3,this[_0x4c8c81(0x529)]=_0x1263d7[_0x4c8c81(0x529)],this[_0x4c8c81(0x50c)]=_0x1263d7[_0x4c8c81(0x50c)],this[_0x4c8c81(0x2a7)]=Object[_0x4c8c81(0x1ff)](Object[_0x4c8c81(0x1f0)](null),_0x1263d7[_0x4c8c81(0x2a7)]),this[_0x4c8c81(0x4e7)]={..._0x1263d7['options']},this[_0x4c8c81(0x289)]=_0x1263d7[_0x4c8c81(0x32f)]?_0x1263d7[_0x4c8c81(0x32f)][_0x4c8c81(0x51f)](_0x1811b2):[];}[_0x20ea74(0x471)](){const _0x582854=_0x20ea74;let _0x3a6aa6=Object[_0x582854(0x4b4)](this['dimension'])[_0x582854(0x243)]((_0xf2c336,_0xbaad6c)=>(_0xf2c336[_0xbaad6c]=this[_0x582854(0x2d5)][_0xbaad6c][_0x582854(0x471)](),_0xf2c336),Object[_0x582854(0x1f0)](null)),_0x13cf1a=Object[_0x582854(0x4b4)](this[_0x582854(0x327)])['reduce']((_0x2fe8c2,_0x1537c8)=>(_0x2fe8c2[_0x1537c8]=this[_0x582854(0x327)][_0x1537c8][_0x582854(0x471)](),_0x2fe8c2),Object[_0x582854(0x1f0)](null)),_0x2feb43=this[_0x582854(0x289)][_0x582854(0x51f)](_0x1811b2);return{'columnFields':this[_0x582854(0x574)]['concat'](),'dimension':_0x3a6aa6,'measure':_0x13cf1a,'filterFields':this[_0x582854(0x385)][_0x582854(0x2b2)](),'hiddenFields':this['hiddenFields']['concat'](),'rowFields':this['rowFields']['concat'](),'valueFields':this[_0x582854(0x520)][_0x582854(0x2b2)](),'layout':this[_0x582854(0x356)],'valueIndex':this['valueIndex'],'valuePosition':this['valuePosition'],'collapseInfo':{...this[_0x582854(0x2a7)]},'options':{...this[_0x582854(0x4e7)]},'valueFilter':_0x2feb43};}['cloneBufferModel'](){const _0x3c1f00=_0x20ea74;let _0x14bb4f=new _0x9d85ac();return _0x14bb4f[_0x3c1f00(0x54b)](this[_0x3c1f00(0x471)]()),_0x14bb4f[_0x3c1f00(0x22a)](this[_0x3c1f00(0x2fb)]()),_0x14bb4f;}};function _0x4633c7(_0x4fbc9d){const _0x4c0691=_0x20ea74;if(_0x4fbc9d)return{..._0x4fbc9d,'expected':Array[_0x4c0691(0x391)](_0x4fbc9d[_0x4c0691(0x22f)])?_0x4fbc9d['expected']['concat']():_0x4fbc9d['expected']};}function _0x1811b2(_0x344de7){const _0x36a541=_0x20ea74;return{'fieldId':_0x344de7[_0x36a541(0x1fe)],'filterInfo':_0x4633c7(_0x344de7[_0x36a541(0x211)])};}var _0x2a6e4d=class _0x281e55{static[_0x20ea74(0x3d6)](_0x24c905,_0x16dc5d){const _0x137cc8=_0x20ea74;var _0x29ec3a;this[_0x137cc8(0x584)][_0x24c905]||(this[_0x137cc8(0x584)][_0x24c905]=[]),(_0x29ec3a=this['_callbacks'][_0x24c905])==null||_0x29ec3a['push'](_0x16dc5d);}static['unRegisterCallbackWithEvent'](_0x1f9f45,_0x3c7c23){const _0x1a9c90=_0x20ea74;let _0x499054=this[_0x1a9c90(0x584)][_0x1f9f45];if(_0x499054){let _0x1ef5ab=_0x499054[_0x1a9c90(0x576)](_0x3c7c23);_0x1ef5ab!==-0x1&&_0x499054[_0x1a9c90(0x42f)](_0x1ef5ab,0x1),_0x499054[_0x1a9c90(0x41f)]===0x0&&delete this['_callbacks'][_0x1f9f45];}}constructor(_0x250bf1,_0x479b50,_0xbe3d63){const _0x17a5cb=_0x20ea74;_0x3dd15e(this,_0x17a5cb(0x20b),void 0x0),_0x3dd15e(this,_0x17a5cb(0x1d9),void 0x0),_0x3dd15e(this,_0x17a5cb(0x379),void 0x0),_0x3dd15e(this,_0x17a5cb(0x49f),void 0x0),_0x3dd15e(this,_0x17a5cb(0x1da),void 0x0),_0x3dd15e(this,_0x17a5cb(0x322),_0x17a5cb(0x56e)),_0x3dd15e(this,_0x17a5cb(0x261),void 0x0),_0x3dd15e(this,_0x17a5cb(0x4bb),void 0x0),this[_0x17a5cb(0x20b)]=_0x250bf1,_0x479b50?this[_0x17a5cb(0x1d9)]=_0x479b50:this['_generateModel'](),_0xbe3d63&&(this['_id']=_0xbe3d63);}['updateDataFieldsCollection'](_0x3f095b){const _0x25ecc4=_0x20ea74;this[_0x25ecc4(0x20b)]=_0x3f095b;}[_0x20ea74(0x3de)](_0x147b88,_0x4faa7e){const _0x66e9e2=_0x20ea74;let _0xf76ca0=this[_0x66e9e2(0x420)]()[_0x66e9e2(0x40a)]();for(let _0x4bed6b of[..._0xf76ca0[_0x66e9e2(0x252)],..._0xf76ca0[_0x66e9e2(0x453)],..._0xf76ca0['filterQueryInfo'],..._0xf76ca0[_0x66e9e2(0x3b5)]??[]])_0x4bed6b['dataFieldId']===_0x147b88&&(_0x4faa7e===_0x66e9e2(0x30c)&&(_0x4bed6b[_0x66e9e2(0x2d2)]=void 0x0),_0x4bed6b[_0x66e9e2(0x211)]&&(_0x55e72a(_0x4bed6b[_0x66e9e2(0x211)])?delete _0x4bed6b[_0x66e9e2(0x211)][_0x4faa7e]:_0x4bed6b[_0x66e9e2(0x211)][_0x66e9e2(0x3a3)]===0x1==(_0x4faa7e===_0x66e9e2(0x30c))&&(_0x4bed6b[_0x66e9e2(0x211)]=void 0x0)));let _0x15912a=new _0x5de482();return _0x15912a[_0x66e9e2(0x3df)](this['dataFieldsCollection'],_0xf76ca0),_0x15912a[_0x66e9e2(0x572)](_0xf76ca0);}[_0x20ea74(0x420)](){const _0x336b0d=_0x20ea74;return this['_bufferModel']?this[_0x336b0d(0x379)]:this[_0x336b0d(0x1d9)];}[_0x20ea74(0x4c1)](){const _0x54cd59=_0x20ea74;this[_0x54cd59(0x379)]=this['_model'][_0x54cd59(0x3dc)](),this[_0x54cd59(0x379)][_0x54cd59(0x503)]();}[_0x20ea74(0x310)](){const _0x26d05e=_0x20ea74;let _0x26a6ef=this['_bufferModel'],_0x3d37e9=_0x26a6ef[_0x26d05e(0x3a1)]();return _0x26a6ef[_0x26d05e(0x2fb)]()&&this['_model'][_0x26d05e(0x22a)](!0x0),this[_0x26d05e(0x56c)](),_0x3d37e9;}[_0x20ea74(0x56c)](){const _0x56bb6e=_0x20ea74;this['_tupleGroupCache']=void 0x0,this[_0x56bb6e(0x1da)]=void 0x0,this[_0x56bb6e(0x322)]=_0x56bb6e(0x56e),this[_0x56bb6e(0x379)]=void 0x0;}['_generateModel'](){this['_model']=new _0x4aee23();}['createLabelFieldByDataFieldId'](_0xac360c,_0x3a4085,_0x4353f8){const _0x10288e=_0x20ea74;let _0x56c233=this[_0x10288e(0x20b)]['getFieldById'](_0xac360c);if(_0x56c233){let _0x4797a2=_0x4353f8||this[_0x10288e(0x3a8)]();return _0x209170[_0x10288e(0x496)]&&(_0x4797a2=_0x3a4085+'-'+_0x4797a2),new _0x10f549(_0x56c233[_0x10288e(0x324)](),_0x4797a2,_0x3a4085||this[_0x10288e(0x20b)][_0x10288e(0x224)](_0xac360c),_0x56c233[_0x10288e(0x3cc)]);}}['createValueFieldByDataFieldId'](_0x509d09,_0x3f56b2){const _0x2ce70e=_0x20ea74;let _0x405b8e=this['dataFieldsCollection'][_0x2ce70e(0x30a)](_0x509d09);if(_0x405b8e){let _0xacf358=_0x405b8e[_0x2ce70e(0x275)]()===0x2?0x9:0x2,_0x2ebcdd=(this['dataFieldsCollection']['host'][_0x2ce70e(0x3c0)]()||_0x2c6198)(this[_0x2ce70e(0x20b)][_0x2ce70e(0x224)](_0x509d09),_0xacf358),_0x563b12=_0x3f56b2||this[_0x2ce70e(0x3a8)]();_0x209170['isDev']&&(_0x563b12=_0x2ebcdd+'-'+_0x563b12);let _0x3330df=new _0xea0310(_0x405b8e[_0x2ce70e(0x324)](),_0x563b12,this[_0x2ce70e(0x2f0)](_0x2ebcdd),_0x405b8e['name']);return _0x3330df['setSubtotal'](_0xacf358),_0x3330df;}}[_0x20ea74(0x523)](_0x50e8e0,_0x2a298c){const _0x2013ec=_0x20ea74;this[_0x2013ec(0x420)]()['updateValuePosition'](_0x50e8e0,_0x2a298c);}['isColMultiMeasure'](){const _0x38d36f=_0x20ea74;return this[_0x38d36f(0x420)]()['isColMultiMeasure']();}['isRowMultiMeasure'](){return this['_getModel']()['isRowMultiMeasure']();}[_0x20ea74(0x3e9)](){const _0x5d7c3f=_0x20ea74;return this[_0x5d7c3f(0x420)]()[_0x5d7c3f(0x3e9)]();}['getValuePosition'](){const _0x245782=_0x20ea74;return this[_0x245782(0x420)]()[_0x245782(0x260)]();}['iterateField'](_0x33fcd0){const _0x40a477=_0x20ea74;this['_getModel']()[_0x40a477(0x2f1)](_0x33fcd0);}[_0x20ea74(0x538)](_0x502716){const _0x233347=_0x20ea74;this[_0x233347(0x420)]()[_0x233347(0x538)](_0x502716);}[_0x20ea74(0x530)](_0x50141f,_0x4f2073){const _0x1e10c1=_0x20ea74;this['_getModel']()[_0x1e10c1(0x530)](_0x50141f,_0x4f2073);}[_0x20ea74(0x2f2)](_0x1d981a){const _0x3f1921=_0x20ea74;return this[_0x3f1921(0x420)]()['getFieldsAreaByType'](_0x1d981a)['length'];}[_0x20ea74(0x478)](){const _0x37fd5d=_0x20ea74;return this[_0x37fd5d(0x420)]()['valueFields'];}[_0x20ea74(0x2f0)](_0x1338c9){const _0xbb0cde=_0x20ea74;let _0x5d4e05=this[_0xbb0cde(0x420)]();if(!_0x5d4e05[_0xbb0cde(0x3b4)](_0x1338c9))return _0x1338c9;let _0x2f2237=0x1;for(;_0x5d4e05[_0xbb0cde(0x3b4)](_0x1338c9+String(_0x2f2237));)_0x2f2237++;return _0x1338c9+String(_0x2f2237);}['getDataFieldByTableId'](_0x134138){const _0x43b396=_0x20ea74;var _0x48d236;let _0x301ba3=(_0x48d236=this[_0x43b396(0x420)]()['getFieldById'](_0x134138))==null?void 0x0:_0x48d236[_0x43b396(0x34a)];if(_0x301ba3)return this['dataFieldsCollection'][_0x43b396(0x30a)](_0x301ba3);}[_0x20ea74(0x524)](_0x5c0c7f){const _0x38360e=_0x20ea74;let _0x3b066d=[];return this[_0x38360e(0x2f1)](_0x5bb3a0=>{const _0x4c44d3=_0x38360e;_0x5bb3a0['getDataFieldId']()===_0x5c0c7f&&_0x3b066d[_0x4c44d3(0x3b3)](_0x5bb3a0);}),_0x3b066d;}[_0x20ea74(0x2e8)](_0x26f65a){const _0x40fb3e=_0x20ea74;return this[_0x40fb3e(0x420)]()[_0x40fb3e(0x30a)](_0x26f65a);}[_0x20ea74(0x543)](_0x89dfc7){const _0x18f7f1=_0x20ea74;return!!this[_0x18f7f1(0x420)]()[_0x18f7f1(0x30a)](_0x89dfc7);}[_0x20ea74(0x266)](){const _0x1f68f7=_0x20ea74;return this[_0x1f68f7(0x420)]()['isEmpty']();}[_0x20ea74(0x2cf)](_0x16ce2d){const _0x30ca25=_0x20ea74;return this[_0x30ca25(0x20b)][_0x30ca25(0x30a)](_0x16ce2d);}[_0x20ea74(0x308)](_0x18ea48){const _0x150079=_0x20ea74;return this['dataFieldsCollection'][_0x150079(0x382)](_0x18ea48);}['getFieldDisplayNames'](){const _0x28e2d2=_0x20ea74;return this[_0x28e2d2(0x20b)][_0x28e2d2(0x3a6)]();}[_0x20ea74(0x4a0)](_0x1e18dd){const _0x216949=_0x20ea74;return{'items':_0x1e18dd[_0x216949(0x456)],'itemTypes':_0x1e18dd[_0x216949(0x251)]};}[_0x20ea74(0x3a8)](){const _0x22001e=_0x20ea74;let _0x53a42c=Object[_0x22001e(0x4b4)](this[_0x22001e(0x420)]()['dimension'])[_0x22001e(0x41f)]+Object['keys'](this[_0x22001e(0x420)]()[_0x22001e(0x327)])[_0x22001e(0x41f)],_0x34bda8=Math['max'](Math['ceil'](Math[_0x22001e(0x1de)](_0x53a42c)/0x4),0x2),_0x14ff7c=_0x356fa2(_0x34bda8);for(;this[_0x22001e(0x420)]()[_0x22001e(0x30a)](_0x14ff7c);)_0x14ff7c=_0x356fa2(_0x34bda8);return _0x14ff7c;}[_0x20ea74(0x552)](_0x550244,_0x427193,_0x413e2f,_0x1a58d4){const _0x4af024=_0x20ea74;let _0x42c5d6;if(_0x42c5d6=_0x21a711(_0x427193)?this[_0x4af024(0x276)](_0x550244,void 0x0,_0x1a58d4):this[_0x4af024(0x4db)](_0x550244,_0x1a58d4),_0x42c5d6)return this['addField'](_0x42c5d6,_0x427193,_0x413e2f),_0x42c5d6;}[_0x20ea74(0x24a)](_0x744db,_0x19de91=!0x1){this['_getModel']()['setOptions'](_0x744db,_0x19de91);}[_0x20ea74(0x454)](_0x38e4b3){const _0x51a587=_0x20ea74;this[_0x51a587(0x420)]()['setLayout'](_0x38e4b3);}[_0x20ea74(0x2fc)](){const _0x4a99b4=_0x20ea74;return this[_0x4a99b4(0x420)]()['getLayout']();}['updateFieldSourceInfo'](_0x1ac5a3,_0x24af1d,_0x436839){const _0x5dbd21=_0x20ea74;this[_0x5dbd21(0x420)]()[_0x5dbd21(0x3ce)](_0x1ac5a3,_0x24af1d,_0x436839);}[_0x20ea74(0x4a8)](_0x2efa4c,_0x206614){const _0x24aeff=_0x20ea74;this[_0x24aeff(0x420)]()[_0x24aeff(0x4a8)](_0x2efa4c,_0x206614);}[_0x20ea74(0x37a)](_0x26c2bc){const _0xf09dd5=_0x20ea74;return this[_0xf09dd5(0x420)]()[_0xf09dd5(0x37a)](_0x26c2bc);}['setShowDataAs'](_0x128ba3,_0xfc39f1){const _0x2f2bf5=_0x20ea74;this[_0x2f2bf5(0x420)]()[_0x2f2bf5(0x2e6)](_0x128ba3,_0xfc39f1);}[_0x20ea74(0x304)](_0x30c2e5,_0x3f9954){const _0xd0513f=_0x20ea74;this[_0xd0513f(0x420)]()[_0xd0513f(0x304)](_0x30c2e5,_0x3f9954);}['setLabelFilterInfo'](_0x49cade,_0x3be0a0,_0x47366d){const _0x516f5f=_0x20ea74;this[_0x516f5f(0x420)]()[_0x516f5f(0x305)](_0x49cade,_0x3be0a0,_0x47366d);}[_0x20ea74(0x463)](_0x558fd6){const _0x46f5dc=_0x20ea74;return this[_0x46f5dc(0x420)]()[_0x46f5dc(0x463)](_0x558fd6);}[_0x20ea74(0x482)](_0x306bc9){const _0x39e15e=_0x20ea74;this[_0x39e15e(0x420)]()['clearFieldFilters'](_0x306bc9);}[_0x20ea74(0x55d)](_0x3d9a1f,_0x3f3cc9,_0xf1b597){const _0x2c5dab=_0x20ea74;this[_0x2c5dab(0x420)]()[_0x2c5dab(0x55d)](_0x3d9a1f,_0x3f3cc9,_0xf1b597);}[_0x20ea74(0x36a)](_0x5a4d5d,_0x3cbb83){const _0x431866=_0x20ea74;let _0x58bd4c=this[_0x431866(0x319)](_0x5a4d5d);if(!this[_0x431866(0x420)]()[_0x431866(0x2d5)][_0x5a4d5d])return!0x1;if(_0x3cbb83===void 0x0)return!_0x5ac9ed(this[_0x431866(0x463)](_0x5a4d5d))&&!(_0x55e72a(_0x58bd4c)&&_0x58bd4c[_0x431866(0x30c)])?!0x1:(this[_0x431866(0x305)](_0x5a4d5d,void 0x0,_0x431866(0x301)),!0x0);_0x33b607(_0x3cbb83);let _0x56dcd9=this[_0x431866(0x2de)](_0x5a4d5d);return!_0x56dcd9||_0x56dcd9['getFieldDataType']()!==0x4?!0x1:(this[_0x431866(0x305)](_0x5a4d5d,_0x3cbb83,_0x431866(0x301)),!0x0);}['setSortInfo'](_0x23b58a,_0x41eefe){const _0x7ff2a8=_0x20ea74;this[_0x7ff2a8(0x420)]()[_0x7ff2a8(0x532)](_0x23b58a,_0x41eefe),this[_0x7ff2a8(0x322)]===_0x7ff2a8(0x3a9)&&(this['_summaryCacheState']=_0x7ff2a8(0x3e6));}[_0x20ea74(0x24f)](_0x4b088e){const _0x4d53c6=_0x20ea74;this[_0x4d53c6(0x261)]!==_0x4b088e&&(this['_defaultSortLocale']=_0x4b088e,this['_summaryCacheState']===_0x4d53c6(0x3a9)&&(this[_0x4d53c6(0x322)]=_0x4d53c6(0x3e6)));}[_0x20ea74(0x4a7)](_0x26499e){const _0x5e85f5=_0x20ea74;return this[_0x5e85f5(0x420)]()[_0x5e85f5(0x4a7)](_0x26499e);}[_0x20ea74(0x319)](_0x100c6e){const _0x46d0fe=_0x20ea74;return this[_0x46d0fe(0x420)]()[_0x46d0fe(0x319)](_0x100c6e);}[_0x20ea74(0x43f)](_0x1d93c6){const _0x318d19=_0x20ea74;return this[_0x318d19(0x420)]()[_0x318d19(0x385)][_0x1d93c6];}[_0x20ea74(0x47b)](_0x369331,_0x387fd1,_0x45d16b){const _0x39670b=_0x20ea74;let {area:_0x446f16}=this[_0x39670b(0x420)]()[_0x39670b(0x2ee)](_0x369331);this[_0x39670b(0x420)]()['updateFieldPosition'](_0x369331,_0x387fd1,_0x45d16b),_0x446f16!==0x2&&_0x446f16!==0x1||_0x387fd1!==0x2&&_0x387fd1!==0x1||(this[_0x39670b(0x322)]=_0x39670b(0x56e));}[_0x20ea74(0x491)](_0x1d38f3){const _0x30c71a=_0x20ea74;return this[_0x30c71a(0x420)]()[_0x30c71a(0x491)](_0x1d38f3);}['setFieldFormat'](_0x2a11a2,_0x58e284){const _0x5b343a=_0x20ea74;this[_0x5b343a(0x420)]()[_0x5b343a(0x237)](_0x2a11a2,_0x58e284);}[_0x20ea74(0x416)](_0x58fcf4,_0x2d5dd2,_0x2927fe){const _0x476dab=_0x20ea74;this[_0x476dab(0x420)]()[_0x476dab(0x416)](_0x58fcf4,_0x2d5dd2,_0x2927fe);}['removeField'](_0x5d9dff){const _0x52a38e=_0x20ea74;this[_0x52a38e(0x420)]()[_0x52a38e(0x4c6)](_0x5d9dff);}[_0x20ea74(0x337)](){const _0x4d733f=_0x20ea74;return this[_0x4d733f(0x420)]()['getOptions']();}[_0x20ea74(0x3c8)](_0x631017,_0x1ffb5f,_0x226467){const _0x3affb9=_0x20ea74;var _0xa58983;let _0x5def2e=this['_getModel'](),_0x28b2ae=_0x226467!==void 0x0&&_0x5def2e[_0x3affb9(0x2a7)][_0x631017]===!0x0?(_0xa58983=this[_0x3affb9(0x2de)](_0x631017))==null?void 0x0:_0xa58983['items']:void 0x0;_0x5def2e[_0x3affb9(0x3c8)](_0x631017,_0x1ffb5f,_0x226467,_0x28b2ae),this[_0x3affb9(0x322)]=_0x3affb9(0x56e);}[_0x20ea74(0x504)](_0x27e671){const _0x4ca514=_0x20ea74;let {rowFields:_0x2862d5}=this[_0x4ca514(0x420)](),_0x1821ec=_0x2862d5[_0x4ca514(0x576)](_0x27e671);if(_0x1821ec<0x0)return!0x1;for(let _0x5f37ed=0x0;_0x5f37ed<_0x2862d5['length']-0x1;_0x5f37ed++)this[_0x4ca514(0x3c8)](_0x2862d5[_0x5f37ed],_0x5f37ed>=_0x1821ec);return!0x0;}[_0x20ea74(0x2ee)](_0x49204a){const _0x2e2a1d=_0x20ea74;return this[_0x2e2a1d(0x420)]()[_0x2e2a1d(0x2ee)](_0x49204a);}[_0x20ea74(0x4f9)](_0x37ec46){const _0x281cdf=_0x20ea74;return(!this[_0x281cdf(0x49f)]||this[_0x281cdf(0x420)]()[_0x281cdf(0x2fb)]())&&(this[_0x281cdf(0x49f)]=new _0x5de482(),this['_tupleGroupCache']['query'](this[_0x281cdf(0x20b)],_0x37ec46),this['_summaryManagerCache']=void 0x0,this['_summaryCacheState']=_0x281cdf(0x56e)),this[_0x281cdf(0x49f)];}['_getGroupInfo'](){const _0x2540d0=_0x20ea74;let _0x2f729b={};return this[_0x2540d0(0x420)]()[_0x2540d0(0x538)](_0x4c1495=>{const _0x31ec76=_0x2540d0;let _0x1b1ce9=_0x4c1495[_0x31ec76(0x34a)],_0x1741be=this[_0x31ec76(0x20b)]['getFieldById'](_0x1b1ce9);if(_0x48890c(_0x1741be)){let _0x32f212=_0x1741be[_0x31ec76(0x56d)]();_0x32f212&&(_0x2f729b[_0x4c1495[_0x31ec76(0x324)]()]=_0x32f212);}}),_0x2f729b;}['setValueFilterInfo'](_0x54f6f9,_0x3d8b9d,_0x28f30d){const _0x4395b=_0x20ea74;this[_0x4395b(0x420)]()[_0x4395b(0x3cf)](_0x54f6f9,_0x3d8b9d,_0x28f30d),this[_0x4395b(0x322)]=_0x4395b(0x56e);}[_0x20ea74(0x521)](_0x2547b4,_0x279417,_0x2958bb){const _0x2365ce=_0x20ea74;this[_0x2365ce(0x420)]()['setValueFilterState'](_0x2547b4,_0x279417,_0x2958bb),this[_0x2365ce(0x322)]=_0x2365ce(0x56e);}['getValueFilterInfos'](){const _0x158d09=_0x20ea74;return this['_getModel']()[_0x158d09(0x497)]();}[_0x20ea74(0x583)](_0x11b818){const _0x5cf513=_0x20ea74;return this[_0x5cf513(0x420)]()[_0x5cf513(0x583)](_0x11b818);}['removeValueFilterInfo'](_0x32d410){const _0x1ef796=_0x20ea74;this[_0x1ef796(0x420)]()[_0x1ef796(0x360)](_0x32d410),this['_summaryCacheState']=_0x1ef796(0x56e);}[_0x20ea74(0x369)](_0xbdd7f1){const _0x538139=_0x20ea74;this[_0x538139(0x420)]()['removeValueFilterInfoByValueFieldId'](_0xbdd7f1),this['_summaryCacheState']='invalid';}[_0x20ea74(0x31a)](_0x4083a9){const _0x31da5e=_0x20ea74;let _0x2a6dd4=this[_0x31da5e(0x4f9)](this[_0x31da5e(0x420)]()[_0x31da5e(0x40a)]()),_0x2f5643=new Map();for(let [_0x5d13ef,_0x25d871]of _0x2a6dd4[_0x31da5e(0x280)][_0x31da5e(0x3af)]())_0x2f5643['set'](_0x25d871,_0x5d13ef);return _0x2a6dd4[_0x31da5e(0x444)]['reduce']((_0x416426,_0x30a80a)=>(_0x4083a9[_0x31da5e(0x437)](_0x37cee4=>{let [_0x2795fb,_0x227aee]=_0x37cee4,_0xaba2ab=_0x30a80a['path'],_0x1a21b9=_0x2f5643['get'](_0x227aee);return _0x1a21b9!==void 0x0&&_0xaba2ab[_0x1a21b9]===_0x2795fb;})&&_0x416426[_0x31da5e(0x3b3)](..._0x30a80a['indexes']),_0x416426),[])[_0x31da5e(0x3e6)]((_0x2ea0ad,_0x454f82)=>_0x2ea0ad-_0x454f82);}[_0x20ea74(0x22a)](_0x32484d){const _0x2b941d=_0x20ea74;this[_0x2b941d(0x420)]()[_0x2b941d(0x22a)](_0x32484d);}[_0x20ea74(0x203)](_0xd840a8){const _0x34b22e=_0x20ea74;this[_0x34b22e(0x420)]()[_0x34b22e(0x203)](_0xd840a8),this[_0x34b22e(0x322)]=_0x34b22e(0x56e);}[_0x20ea74(0x29c)](_0x3fbd8c){const _0xe563b2=_0x20ea74;let _0x402489=_0x281e55[_0xe563b2(0x584)][_0xe563b2(0x4be)];_0x402489&&_0x402489[_0xe563b2(0x559)](_0x594ee3=>{const _0x3a59dd=_0xe563b2;_0x594ee3(this[_0x3a59dd(0x4bb)]);});let _0x3124d6=_0x3fbd8c||this[_0xe563b2(0x420)]()[_0xe563b2(0x40a)](),_0x48058b=this['_getTupleCache'](_0x3124d6),_0x2c251a;_0x3fbd8c?(_0x2c251a=new _0x57d20a(_0x3124d6,_0x48058b,this[_0xe563b2(0x261)]),_0x2c251a[_0xe563b2(0x271)]()):(!this[_0xe563b2(0x1da)]||this[_0xe563b2(0x322)]==='invalid'?(this['_summaryManagerCache']=new _0x57d20a(_0x3124d6,_0x48058b,this[_0xe563b2(0x261)]),this[_0xe563b2(0x1da)][_0xe563b2(0x271)]()):this['_summaryCacheState']===_0xe563b2(0x3e6)&&this['_summaryManagerCache']['resort'](_0x3124d6,this[_0xe563b2(0x261)]),_0x2c251a=this[_0xe563b2(0x1da)],this[_0xe563b2(0x322)]='ready');let _0x51b355;try{_0x51b355=this[_0xe563b2(0x447)](_0x2c251a,_0x3124d6);}finally{_0x2c251a[_0xe563b2(0x1f6)]();}_0x51b355[_0xe563b2(0x405)](this['_getModel'](),_0x3124d6[_0xe563b2(0x378)]);let _0x3843d2=this['_getGroupInfo']();_0x51b355[_0xe563b2(0x232)](_0x3843d2),this[_0xe563b2(0x420)]()['setDirty'](!0x1);let _0x42a43a=_0x281e55[_0xe563b2(0x584)]['onQueryEnd'];return _0x42a43a&&_0x42a43a[_0xe563b2(0x559)](_0x3f2053=>{const _0x6ef594=_0xe563b2;_0x3f2053(this[_0x6ef594(0x4bb)]);}),_0x51b355;}[_0x20ea74(0x447)](_0x3aa1ac,_0x1bf1a4){const _0x4f04b6=_0x20ea74;switch(this[_0x4f04b6(0x2fc)]()){case 0x1:return _0x5a3612[_0x4f04b6(0x356)](this,_0x3aa1ac,_0x1bf1a4);case 0x2:return _0x3154ed[_0x4f04b6(0x356)](this,_0x3aa1ac,_0x1bf1a4);default:return _0x3ab396[_0x4f04b6(0x356)](this,_0x3aa1ac,_0x1bf1a4);}}[_0x20ea74(0x471)](){const _0x549194=_0x20ea74;return this[_0x549194(0x420)]()[_0x549194(0x471)]();}['fromJSON'](_0x2ff9d4){const _0x503f0f=_0x20ea74;this[_0x503f0f(0x420)]()[_0x503f0f(0x54b)](_0x2ff9d4),this['setDirty'](!0x0),this[_0x503f0f(0x322)]=_0x503f0f(0x56e);}['dispose'](){const _0x1469ad=_0x20ea74;this[_0x1469ad(0x20b)]=null,this['_model']=null;}};_0x3dd15e(_0x2a6e4d,_0x20ea74(0x584),{}),_0x581279[_0x20ea74(0x226)]=_0x56f7b2,_0x581279[_0x20ea74(0x415)]=_0x168e17,_0x581279[_0x20ea74(0x234)]=_0x42c42d,_0x581279[_0x20ea74(0x342)]=_0x3747e2,_0x581279[_0x20ea74(0x4e0)]=_0x4a2b51,_0x581279[_0x20ea74(0x433)]=-0x1,_0x581279[_0x20ea74(0x41e)]=_0x59c797,_0x581279[_0x20ea74(0x4bc)]=_0x209170,_0x581279[_0x20ea74(0x386)]=_0x106eeb,_0x581279[_0x20ea74(0x3e2)]=_0x331ee8,_0x581279[_0x20ea74(0x40b)]=_0x3d6834,_0x581279[_0x20ea74(0x41d)]=_0x3e8243,_0x581279['NumberGroupField']=_0xe70d7,_0x581279[_0x20ea74(0x464)]=_0x52e3f6,_0x581279[_0x20ea74(0x406)]=_0xe719f2,_0x581279[_0x20ea74(0x2f3)]=_0x2eeef3,_0x581279[_0x20ea74(0x206)]=_0x480c35,_0x581279[_0x20ea74(0x4f0)]=_0x1de0f8,_0x581279[_0x20ea74(0x457)]=_0x1ef5d5,_0x581279[_0x20ea74(0x490)]=_0x2b5683,_0x581279[_0x20ea74(0x353)]=_0x4e081f,_0x581279[_0x20ea74(0x27a)]=_0x5e4963,_0x581279[_0x20ea74(0x568)]=_0x5eecb9,_0x581279[_0x20ea74(0x4dd)]=_0x1cff1c,_0x581279['PivotFilterTypeEnum']=_0x296851,_0x581279[_0x20ea74(0x4de)]=_0x416e54,_0x581279[_0x20ea74(0x259)]=_0xfff0dd,_0x581279[_0x20ea74(0x573)]=_0x15bbcd,_0x581279['PivotSubtotalPositionEnum']=_0x25e7d8,_0x581279[_0x20ea74(0x4b2)]=_0x35fa6,_0x581279[_0x20ea74(0x2b9)]=_0x2a6e4d,_0x581279[_0x20ea74(0x4b5)]=_0x43388f,_0x581279['PivotTableFiledAreaEnum']=_0x290dad,_0x581279[_0x20ea74(0x518)]=_0x10f549,_0x581279[_0x20ea74(0x27f)]=_0xea0310,_0x581279[_0x20ea74(0x355)]=_0x349af9,_0x581279['PivotView']=_0x3311a5,_0x581279['PivotViewCellValueTypeEnum']=_0x1d7a9d,_0x581279[_0x20ea74(0x564)]=_0x42d86b,_0x581279[_0x20ea74(0x2da)]=_0x2c33bc,_0x581279['compilePivotDateFilter']=_0x33b607,_0x581279[_0x20ea74(0x480)]=_0x5478be,_0x581279[_0x20ea74(0x227)]=_0x316b35,_0x581279[_0x20ea74(0x24d)]=_0x3d6e75,_0x581279['createValueField']=_0x41de5d,_0x581279['excelDateToUnixMilliseconds']=_0x5a4127,_0x581279['generateHexNumber']=_0x356fa2,_0x581279[_0x20ea74(0x263)]=_0x2c6198,_0x581279[_0x20ea74(0x50a)]=_0x9ed020,_0x581279[_0x20ea74(0x54f)]=_0x17dfe0,_0x581279[_0x20ea74(0x42b)]=_0x34c3ba,_0x581279[_0x20ea74(0x2c6)]=_0x51cfea,_0x581279[_0x20ea74(0x2b4)]=_0x48890c,_0x581279['isDateGroupField']=_0x32ceaf,_0x581279[_0x20ea74(0x3a4)]=_0x96c707,_0x581279[_0x20ea74(0x3c5)]=_0x3fa860,_0x581279[_0x20ea74(0x52e)]=_0x4bbb0e,_0x581279[_0x20ea74(0x311)]=_0x27b54e,_0x581279[_0x20ea74(0x4e4)]=_0x5ac9ed,_0x581279[_0x20ea74(0x1d2)]=_0x1e2fc8,_0x581279[_0x20ea74(0x3ff)]=_0x1e2f04,_0x581279[_0x20ea74(0x258)]=_0x49d3c2,_0x581279['isValueFilterOperator']=_0x1f688a,_0x581279[_0x20ea74(0x284)]=_0x29913e,_0x581279[_0x20ea74(0x439)]=_0x255109,_0x581279[_0x20ea74(0x1f3)]=_0x7705a0,_0x581279[_0x20ea74(0x35b)]=_0x3c4d6a,_0x581279[_0x20ea74(0x455)]=_0x43f280;}));
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@univerjs/core")):typeof define==`function`&&define.amd?define([`exports`,`@univerjs/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.UniverProEnginePivot={},e.UniverCore))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let n={TUPLE_PLACEHOLDER:`-&&-`,TUPLE_FIELD_SEPARATOR:`-%$%-`,COl_ROOT_PATH:`-$-cr-$-`,ROW_ROOT_PATH:`-$-rr-$-`,BLANK_PLACEHOLDER:`-$-blk-$-`,isDev:!1,defaultSortType:`default`,dateSystem:t.DateSystem.Date1900,maxLimitItemCount:1e3,otherDataKey:`-$-oth-$-`},r=e=>n.dateSystem=e,i=e=>{e>0&&(n.maxLimitItemCount=e)},a=/* @__PURE__ */ function(e){return e[e.average=1]=`average`,e[e.count=2]=`count`,e[e.countNums=3]=`countNums`,e[e.max=4]=`max`,e[e.min=5]=`min`,e[e.product=6]=`product`,e[e.stdDev=7]=`stdDev`,e[e.stdDevp=8]=`stdDevp`,e[e.sum=9]=`sum`,e[e.var=10]=`var`,e[e.varp=11]=`varp`,e}({}),o=/* @__PURE__ */ function(e){return e[e.normal=1]=`normal`,e[e.percentOfColumnTotal=2]=`percentOfColumnTotal`,e[e.percentOfRowTotal=3]=`percentOfRowTotal`,e[e.percentOfGrandTotal=4]=`percentOfGrandTotal`,e[e.percentOfParentColumnTotal=5]=`percentOfParentColumnTotal`,e[e.percentOfParentRowTotal=6]=`percentOfParentRowTotal`,e[e.percentOfParentGrandTotal=7]=`percentOfParentGrandTotal`,e[e.index=8]=`index`,e[e.differenceFrom=9]=`differenceFrom`,e[e.percentDifferenceFrom=10]=`percentDifferenceFrom`,e[e.runningTotal=11]=`runningTotal`,e[e.percentRunningTotal=12]=`percentRunningTotal`,e[e.percentOf=13]=`percentOf`,e[e.percentOfParent=14]=`percentOfParent`,e[e.rankAscending=15]=`rankAscending`,e[e.rankDescending=16]=`rankDescending`,e}({}),s=/* @__PURE__ */ function(e){return e[e.item=1]=`item`,e[e.previous=2]=`previous`,e[e.next=3]=`next`,e}({}),c=/* @__PURE__ */ function(e){return e[e.Div0=1]=`Div0`,e[e.NotNumber=2]=`NotNumber`,e[e.NotFunction=3]=`NotFunction`,e[e.NotName=4]=`NotName`,e[e.BadReference=5]=`BadReference`,e}({}),l=/* @__PURE__ */ function(e){return e[e.CustomFilter=1]=`CustomFilter`,e[e.ValueFilter=2]=`ValueFilter`,e[e.ManualFilter=3]=`ManualFilter`,e[e.RecordFilter=4]=`RecordFilter`,e}({}),u=/* @__PURE__ */ function(e){return e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e[e.Value=3]=`Value`,e[e.Filter=4]=`Filter`,e[e.Hidden=5]=`Hidden`,e}({}),d=/* @__PURE__ */ function(e){return e[e.None=-1]=`None`,e[e.Column=1]=`Column`,e[e.Row=2]=`Row`,e}({}),f=/* @__PURE__ */ function(e){return e[e.text=1]=`text`,e[e.number=2]=`number`,e[e.boolean=3]=`boolean`,e[e.date=4]=`date`,e[e.blank=5]=`blank`,e[e.other=6]=`other`,e}({}),p=/* @__PURE__ */ function(e){return e[e.value=1]=`value`,e[e.field=2]=`field`,e}({}),m=/* @__PURE__ */ function(e){return e[e.ascending=1]=`ascending`,e[e.descending=2]=`descending`,e[e.custom=3]=`custom`,e}({}),h=/* @__PURE__ */ function(e){return e[e.captionBeginsWith=1]=`captionBeginsWith`,e[e.captionBetween=2]=`captionBetween`,e[e.captionContains=3]=`captionContains`,e[e.captionEndsWith=4]=`captionEndsWith`,e[e.captionEqual=5]=`captionEqual`,e[e.captionGreaterThan=6]=`captionGreaterThan`,e[e.captionGreaterThanOrEqual=7]=`captionGreaterThanOrEqual`,e[e.captionLessThan=8]=`captionLessThan`,e[e.captionLessThanOrEqual=9]=`captionLessThanOrEqual`,e[e.captionNotBeginsWith=10]=`captionNotBeginsWith`,e[e.captionNotBetween=11]=`captionNotBetween`,e[e.captionNotContains=12]=`captionNotContains`,e[e.captionNotEndsWith=13]=`captionNotEndsWith`,e[e.captionNotEqual=14]=`captionNotEqual`,e[e.count=15]=`count`,e[e.dateBetween=16]=`dateBetween`,e[e.dateEqual=17]=`dateEqual`,e[e.dateNewerThan=18]=`dateNewerThan`,e[e.dateNewerThanOrEqual=19]=`dateNewerThanOrEqual`,e[e.dateNotBetween=20]=`dateNotBetween`,e[e.dateNotEqual=21]=`dateNotEqual`,e[e.dateOlderThan=22]=`dateOlderThan`,e[e.dateOlderThanOrEqual=23]=`dateOlderThanOrEqual`,e[e.lastMonth=24]=`lastMonth`,e[e.lastQuarter=25]=`lastQuarter`,e[e.lastWeek=26]=`lastWeek`,e[e.lastYear=27]=`lastYear`,e[e.M1=28]=`M1`,e[e.M10=29]=`M10`,e[e.M11=30]=`M11`,e[e.M12=31]=`M12`,e[e.M2=32]=`M2`,e[e.M3=33]=`M3`,e[e.M4=34]=`M4`,e[e.M5=35]=`M5`,e[e.M6=36]=`M6`,e[e.M7=37]=`M7`,e[e.M8=38]=`M8`,e[e.M9=39]=`M9`,e[e.nextMonth=40]=`nextMonth`,e[e.nextQuarter=41]=`nextQuarter`,e[e.nextWeek=42]=`nextWeek`,e[e.nextYear=43]=`nextYear`,e[e.percent=44]=`percent`,e[e.Q1=45]=`Q1`,e[e.Q2=46]=`Q2`,e[e.Q3=47]=`Q3`,e[e.Q4=48]=`Q4`,e[e.sum=49]=`sum`,e[e.thisMonth=50]=`thisMonth`,e[e.thisQuarter=51]=`thisQuarter`,e[e.thisWeek=52]=`thisWeek`,e[e.thisYear=53]=`thisYear`,e[e.today=54]=`today`,e[e.tomorrow=55]=`tomorrow`,e[e.unknown=56]=`unknown`,e[e.valueBetween=57]=`valueBetween`,e[e.valueEqual=58]=`valueEqual`,e[e.valueGreaterThan=59]=`valueGreaterThan`,e[e.valueGreaterThanOrEqual=60]=`valueGreaterThanOrEqual`,e[e.valueLessThan=61]=`valueLessThan`,e[e.valueLessThanOrEqual=62]=`valueLessThanOrEqual`,e[e.valueNotBetween=63]=`valueNotBetween`,e[e.valueNotEqual=64]=`valueNotEqual`,e[e.yearToDate=65]=`yearToDate`,e[e.yesterday=66]=`yesterday`,e}({}),g=/* @__PURE__ */ function(e){return e[e.compact=1]=`compact`,e[e.outline=2]=`outline`,e[e.tabular=3]=`tabular`,e}({}),_=/* @__PURE__ */ function(e){return e[e.top=1]=`top`,e[e.bottom=2]=`bottom`,e}({}),v=/* @__PURE__ */ function(e){return e.onQueryStart=`onQueryStart`,e.onQueryEnd=`onQueryEnd`,e}({}),y=/* @__PURE__ */ function(e){return e[e.defaultNormalField=1]=`defaultNormalField`,e[e.numberGroupField=2]=`numberGroupField`,e[e.dateGroupField=3]=`dateGroupField`,e[e.textGroupField=4]=`textGroupField`,e[e.customGroupField=5]=`customGroupField`,e}({}),b=/* @__PURE__ */ function(e){return e.Legacy=`legacy`,e.ExcelLike=`excel-like`,e}({}),ee=/* @__PURE__ */ function(e){return e.Year=`year`,e.Quarter=`quarter`,e.Month=`month`,e.Day=`day`,e.Hour=`hour`,e.Minute=`minute`,e.Second=`second`,e}({}),te=/* @__PURE__ */ function(e){return e.Minute=`minute`,e.Hour=`hour`,e.HourMinute=`hour-minute`,e.Date=`date`,e.Month=`month`,e.MonthDate=`month-date`,e.Quarter=`quarter`,e.Year=`year`,e.YearMonth=`year-month`,e.YearQuarter=`year-quarter`,e.YearMonthDate=`year-month-date`,e}({}),ne=/* @__PURE__ */ function(e){return e.Member=`member`,e.Condition=`condition`,e.Value=`value`,e}({});function re(e){return Number.isInteger(e)&&e>=16&&e<=23}function x(e){return(e==null?void 0:e.type)===1&&re(e.operator)}function S(e){if(!x(e)||e.useWholeDay!==void 0&&typeof e.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot date filter.`);let t=e.operator===16||e.operator===20,n=t?e.expected:[e.expected];if(!Array.isArray(n)||n.length!==(t?2:1)||n.some(e=>typeof e!=`number`||!Number.isFinite(e))||t&&n[0]>n[1])throw RangeError(`Pivot date operands must be finite and ordered.`);let r=e.useWholeDay===!0,i=r?Math.floor(n[0]):n[0],a=r?Math.floor(n[1]):n[1],o=e.operator;return e=>{if(!Number.isFinite(e))return!1;let t=r?Math.floor(e):e;switch(o){case 16:return t>=i&&t<=a;case 20:return t<i||t>a;case 17:return t===i;case 21:return t!==i;case 18:return t>i;case 19:return t>=i;case 22:return t<i;case 23:return t<=i;default:return!1}}}function C(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`v`in e&&typeof e.v==`number`&&`f`in e&&typeof e.f==`string`}function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`}function ie(e){let{operator:t,expected:n}=e,r=String(Array.isArray(n)?n[0]:n),i=Array.isArray(n)?String(n[1]):r;return e=>{switch(t){case 1:return e.startsWith(r);case 2:return e>=r&&e<=i;case 3:return e.includes(r);case 4:return e.endsWith(r);case 5:return e===r;case 6:return e>r;case 7:return e>=r;case 8:return e<r;case 9:return e<=r;case 10:return!e.startsWith(r);case 11:return e<r||e>i;case 12:return!e.includes(r);case 13:return!e.endsWith(r);case 14:return e!==r;default:throw TypeError(`Unsupported pivot caption operator.`)}}}function ae(e){switch(e){case 15:case 44:case 57:case 58:case 59:case 60:case 61:case 62:case 63:case 64:return!0;default:return!1}}function oe(e,t,n){let r=Math.min(e.length,Math.max(0,Math.ceil(t)));if(r===0)return;if(r===e.length){let t=e[0];for(let r=1;r<e.length;r++)t=n?Math.max(t,e[r]):Math.min(t,e[r]);return t}let i=[],a=e=>{i.push(e);let t=i.length-1;for(;t>0;){let e=Math.floor((t-1)/2);if(i[e]<=i[t])break;[i[e],i[t]]=[i[t],i[e]],t=e}},o=e=>{i[0]=e;let t=0;for(;;){let e=t*2+1,n=e+1,r=t;if(e<i.length&&i[e]<i[r]&&(r=e),n<i.length&&i[n]<i[r]&&(r=n),r===t)break;[i[t],i[r]]=[i[r],i[t]],t=r}};for(let t of e){let e=n?-t:t;i.length<r?a(e):e>i[0]&&o(e)}return n?-i[0]:i[0]}function se(e){let{operator:t,expected:n}=e;switch(t){case 57:return e=>e>=n[0]&&e<=n[1];case 58:return e=>e===n;case 59:return e=>e>n;case 60:return e=>e>=n;case 61:return e=>e<n;case 62:return e=>e<=n;case 63:return e=>e<n[0]||e>n[1];case 64:return e=>e!==n;default:return console.error(`Unknown filter operator: ${t}`),()=>!0}}function ce(e){let t=/* @__PURE__ */ new Set,n=e.filterInfo;return(n==null?void 0:n.type)===4?(fe({type:4,selection:n.selection})&&t.add(`member`),n.dateRange!==void 0&&t.add(`condition`)):n&&E(n)&&t.add(n.type===1?`condition`:`member`),e.conditionFilter&&t.add(`condition`),t}function le(e){let t=/* @__PURE__ */ new Map;for(let r of Object.values(e.dimension)){var n;let i=t.get(r.dataFieldId)??/* @__PURE__ */ new Set;if(ce(r).forEach(e=>i.add(e)),(n=e.valueFilter)!=null&&n.some(e=>e.fieldId===r.id)&&i.add(`value`),i.size>1)return!0;t.set(r.dataFieldId,i)}return!1}function ue(e){if(e==null)return{type:t.RecordValueType.Blank};if(typeof e==`string`)return{type:t.RecordValueType.String,value:e};if(typeof e==`number`){if(!Number.isFinite(e))throw RangeError(`Pivot numeric record values must be finite.`);return{type:t.RecordValueType.Number,value:e}}if(typeof e==`boolean`)return{type:t.RecordValueType.Boolean,value:e};if(w(e))return{type:t.RecordValueType.Error,value:e.error};if(C(e)){if(!Number.isFinite(e.v))throw RangeError(`Pivot date record values must be finite.`);return{type:t.RecordValueType.Date,value:e.v}}throw TypeError(`Invalid pivot record value.`)}function de(e){let n=e;if(!O(n)||n.type!==4)throw TypeError(`Invalid pivot record filter.`);let{selection:r,dateRange:i}=n;if(O(i)&&i.useWholeDay!==void 0&&typeof i.useWholeDay!=`boolean`)throw TypeError(`Invalid pivot whole-day mode.`);if(r!==void 0){if(!O(r)||typeof r.mode!=`string`)throw TypeError(`Invalid pivot record selection.`);if(r.mode===t.FilterSelectionMode.All){if(`values`in r)throw TypeError(`All selection cannot contain values.`)}else if(r.mode!==t.FilterSelectionMode.Include&&r.mode!==t.FilterSelectionMode.Exclude||!Array.isArray(r.values))throw TypeError(`Invalid pivot record selection.`);else r.values.forEach(t.getRecordValueKey)}if(i!==void 0&&(!O(i)||typeof i.startDate!=`number`||typeof i.endDate!=`number`||!Number.isFinite(i.startDate)||!Number.isFinite(i.endDate)||i.startDate>i.endDate))throw RangeError(`Invalid pivot date range.`)}function T(e){return(e==null?void 0:e.type)===4}function E(e){return T(e)?(de(e),fe(e)):e.type!==3||e.isAll!==!0}function fe(e){var n,r;return e.dateRange!==void 0||((n=e.selection)==null?void 0:n.mode)===t.FilterSelectionMode.Include||((r=e.selection)==null?void 0:r.mode)===t.FilterSelectionMode.Exclude&&e.selection.values.length>0}function D(e){if(e)switch(e.type){case 4:return de(e),{type:4,...e.selection===void 0?null:{selection:e.selection.mode===t.FilterSelectionMode.All?{mode:t.FilterSelectionMode.All}:{mode:e.selection.mode,values:e.selection.values.map(e=>e.type===t.RecordValueType.Blank?{type:t.RecordValueType.Blank}:{...e})}},...e.dateRange===void 0?null:{dateRange:{...e.dateRange}}};case 3:return{...e,list:e.list.concat()};case 1:return(e.useWholeDay!==void 0||re(e.operator))&&S(e),{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};case 2:return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected};default:throw TypeError(`Unknown pivot filter type.`)}}function O(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}let pe=/* @__PURE__ */ function(e){return e[e.AddField=0]=`AddField`,e[e.SetSubtotalType=1]=`SetSubtotalType`,e[e.RemoveField=2]=`RemoveField`,e[e.RenameField=3]=`RenameField`,e[e.SetFilterInfo=4]=`SetFilterInfo`,e[e.SetSortInfo=5]=`SetSortInfo`,e[e.UpdateFieldPosition=6]=`UpdateFieldPosition`,e[e.UpdateValuePosition=7]=`UpdateValuePosition`,e[e.SetOptions=8]=`SetOptions`,e[e.SetFieldFormat=9]=`SetFieldFormat`,e[e.SetCollapse=10]=`SetCollapse`,e[e.UpdateSource=11]=`UpdateSource`,e[e.SetValueFilter=12]=`SetValueFilter`,e[e.SetLayout=13]=`SetLayout`,e[e.SetShowDataAs=14]=`SetShowDataAs`,e}({}),me=/* @__PURE__ */ function(e){return e[e.blank=2]=`blank`,e[e.date=4]=`date`,e[e.other=8]=`other`,e}({}),he=/* @__PURE__ */ function(e){return e[e.FilterAll=1]=`FilterAll`,e[e.FilterPartial=2]=`FilterPartial`,e[e.FilterSingle=3]=`FilterSingle`,e[e.BlankValue=4]=`BlankValue`,e[e.FilteredSortNone=5]=`FilteredSortNone`,e[e.FilteredSortAsc=6]=`FilteredSortAsc`,e[e.FilteredSortDesc=7]=`FilteredSortDesc`,e[e.FilterNoneSortNone=8]=`FilterNoneSortNone`,e[e.FilterNoneSortAsc=9]=`FilterNoneSortAsc`,e[e.FilterNoneSortDesc=10]=`FilterNoneSortDesc`,e[e.Collapse=11]=`Collapse`,e[e.Expand=12]=`Expand`,e[e.Subtotal=13]=`Subtotal`,e[e.GrandTotal=14]=`GrandTotal`,e[e.MultipleGrandTotal=15]=`MultipleGrandTotal`,e}({});function k(e){"@babel/helpers - typeof";return k=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},k(e)}function ge(e,t){if(k(e)!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(k(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _e(e){var t=ge(e,`string`);return k(t)==`symbol`?t:t+``}function A(e,t,n){return(t=_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){return typeof e==`number`}var j=class{constructor(){A(this,`_sum`,0),A(this,`_count`,0),A(this,`_countN`,0),A(this,`_product`,1),A(this,`_min`,1/0),A(this,`_max`,-1/0),A(this,`_squareSum`,0)}getInfo(){return{sum:this._sum,count:this._count,countN:this._countN,product:this._product,min:this._min,max:this._max,squareSum:this._squareSum}}reset(){this._sum=0,this._count=0,this._countN=0,this._product=1,this._min=1/0,this._max=-1/0,this._squareSum=0}addValue(e){e!=null&&(this._count+=1,ve(e)&&(this._sum+=e,this._countN+=1,this._product*=e,this._min=Math.min(this._min,e),this._max=Math.max(this._max,e),this._squareSum+=e*e))}unionTuples(e){for(let t of e)this._sum+=t._sum,this._count+=t._count,this._countN+=t._countN,this._product*=t._product,this._min=Math.min(this._min,t._min),this._max=Math.max(this._max,t._max),this._squareSum+=t._squareSum}unionTupleInfo(e){this._sum+=e.sum,this._count+=e.count,this._countN+=e.countN,this._product*=e.product,this._min=Math.min(this._min,e.min),this._max=Math.max(this._max,e.max),this._squareSum+=e.squareSum}getSubtotal(e){switch(e){case 9:return this._sum;case 2:return this._count;case 3:return this._countN;case 6:return Number.isFinite(this._product)?this._product:{errorType:2};case 5:return this._countN>0?this._min:0;case 4:return this._countN>0?this._max:0;case 1:return this._countN>0?this._sum/this._countN:{errorType:1};case 7:return this._countN>1?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1)))):{errorType:1};case 8:return this._countN>0?Math.sqrt(Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN))):{errorType:1};case 10:return this._countN>1?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*(this._countN-1))):{errorType:1};case 11:return this._countN>0?Math.max(0,(this._countN*this._squareSum-this._sum*this._sum)/(this._countN*this._countN)):{errorType:1}}}};function ye(e){return(e==null?void 0:e.dateGroupingMode)??`legacy`}function M(e){return e==null||e===``}function N(e){return e===2||e===1||e===4||e===5}function P(e){return e===2||e===1}function F(e,t){let n=``;switch(t){case 1:n=`Average of ${e}`;break;case 2:n=`Count of ${e}`;break;case 3:n=`Count of ${e}`;break;case 4:n=`Max of ${e}`;break;case 5:n=`Min of ${e}`;break;case 6:n=`Product of ${e}`;break;case 7:n=`Standard Deviation of ${e}`;break;case 8:n=`Population Standard Deviation of ${e}`;break;case 9:n=`Sum of ${e}`;break;case 10:n=`Variance of ${e}`;break;case 11:n=`Population Variance of ${e}`;break;default:n=e}return n}function be(e,t,n){let r=Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0,i=typeof r==`boolean`;return n===void 0?i?r:!1:i?r:r!=null&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:!1}function I(e){return e.type===3}function xe(e){return e.type===1}function L(e){let t=``;for(let n=0;n<e;n++){let e=Math.floor(Math.random()*16);t+=e.toString(16)}return t.toUpperCase()}function Se(e,t){let n=0,r=0,i=[];for(;n<e.length&&r<t.length;)e[n]===t[r]?(i.push(e[n]),n++,r++):e[n]<t[r]?n++:r++;return i}function Ce(e){if(e.length===0)return[];if(e.length===1)return e[0];let t=e[0];for(let n=1;n<e.length;n++)t=Se(t,e[n]);return t}function R(e,t,n){e.summary||={},t&&!t.summary&&(t.summary={});for(let r in n){let i=n[r].subTotal,a=e.tuple[r],o=a.getInfo(),{sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}=o;for(let e of i)o[e]=a.getSubtotal(e);e.summary[r]=o,t&&(t.tuple[r]||(t.tuple[r]=new j),t.tuple[r].unionTupleInfo({sum:s,count:c,countN:l,product:u,min:d,max:f,squareSum:p}))}}function we(e){let t=1,n;return e?(I(e)?(e.list.length===1&&(t=3,n=e.list[0]),t=e.isAll===!0?1:2):T(e)&&(t=E(e)?2:1),{value:n,status:t}):{status:t,value:n}}function Te(e,t,n){let r=!1;if(e&&(I(e)?r=e.list.length>0&&e.isAll!==!0:xe(e)?r=!0:T(e)&&(r=E(e)),n&&(r=!0)),r)switch(t==null?void 0:t.type){case 1:return 6;case 2:return 7;default:return 5}else switch(t==null?void 0:t.type){case 1:return 9;case 2:return 10;default:return 8}}function Ee(e,t,n){let r=t||0,i=e.join(`,`);return n?`${i}-${String(r)}`:i}var De=class{constructor(){A(this,`_heap`,void 0),this._heap=[]}push(e){this._heap.push(e),this._bubbleUp()}pop(){if(this.size()===0)return;let e=this._heap[0],t=this._heap.pop();return this.size()>0&&t&&(this._heap[0]=t,this._bubbleDown()),e}size(){return this._heap.length}_bubbleUp(){let e=this.size()-1;for(;e>0;){let t=Math.floor((e-1)/2);if(this._heap[t][0]<=this._heap[e][0])break;[this._heap[t],this._heap[e]]=[this._heap[e],this._heap[t]],e=t}}_bubbleDown(){let e=0,t=this.size(),n=this._heap[0];for(;;){let r=2*e+1,i=2*e+2,a,o,s=null;if(r<t&&(a=this._heap[r],a[0]<n[0]&&(s=r)),i<t&&(o=this._heap[i],(s===null&&o[0]<n[0]||s!==null&&o[0]<a[0])&&(s=i)),s===null)break;[this._heap[e],this._heap[s]]=[this._heap[s],this._heap[e]],e=s}}};function Oe(e){let t=new De,n=[];for(let n=0;n<e.length;n++)e[n].length>0&&t.push([e[n][0],n,0]);for(;t.size()>0;){let[r,i,a]=t.pop();if(n.push(r),a+1<e[i].length){let n=e[i][a+1];t.push([n,i,a+1])}}return n}function z(e,t){if(typeof Intl<`u`&&Intl.Collator){let n=e&&e!==t?[e,t]:[e??t];for(let e of n)try{return new Intl.Collator(e,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}catch{}return new Intl.Collator(void 0,{usage:`sort`,numeric:!1,sensitivity:`variant`,ignorePunctuation:!1}).compare}return(e,t)=>e.localeCompare(t)}function ke(e,t,n,r=z()){let i=[],a=[],o=[],s=[];for(let n=0;n<e.length;n++){let r=e[n],c=t[n];c===2?i.push(r):c===1?a.push(r):c===4?o.push(r):s.push(r)}let c=(e,t)=>r(e,t)||n[e]-n[t];i.sort((e,t)=>Number(e)-Number(t)),a.sort(c),o.sort((e,t)=>Number(e)-Number(t)),s.sort(c);let l=[...i,...a,...o,...s],u={},d=0;for(let e of l)u[e]=d,d++;return u}function Ae(e,t,n){let r=se({type:1,operator:t,expected:n}),i=[];for(let[t,n]of Object.entries(e))r(Number(t))&&i.push(n);return i}function je(e,t,n,r,i,a){let o=(t==null?void 0:t.tuple[n])||e[i].tuple,s=o.getInfo();e[i]={tuple:o},e[a]===void 0&&(e[a]={tuple:new j}),e[a].tuple.unionTupleInfo(s)}function Me(e){return typeof e!=`number`}function Ne(e){return!(`baseFieldId`in e)&&!(`sortItems`in e)&&`customOrder`in e&&e.type===3}function Pe(e,t=!0){return(t?new Date(Date.UTC(1899,11,30)):new Date(Date.UTC(1904,0,1))).getTime()+e*864e5}function Fe(e){return e.getDataFieldType()===3}function B(e){return e.getDataFieldType()!==1}function Ie(e){return e.dataFieldType===3}function Le(e,t,n=!0){let r=Pe(e,n),i=new Date(r);switch(t){case`year`:return`${i.getFullYear()}`;case`month`:return`${i.getMonth()+1}`;case`date`:return`${i.getDate()}`;case`month-date`:return`${i.getMonth()+1}_${i.getDate()}`;case`hour`:return`${i.getHours()}`;case`minute`:return`${i.getMinutes()}`;case`quarter`:return`${Math.floor(i.getMonth()/3)+1}`;case`hour-minute`:return`${i.getHours()}_${i.getMinutes()}`;case`year-month`:return`${i.getFullYear()}_${i.getMonth()+1}`;case`year-quarter`:return`${i.getFullYear()}_${Math.floor(i.getMonth()/3)+1}`;case`year-month-date`:return`${i.getFullYear()}_${i.getMonth()+1}_${i.getDate()}`}return``}var V=class{getTupleKey(e){return this._recordTupleKeys[e]}getTupleItemsMap(){return this._tupleItemsMap}getTupleIndexesByKey(e){return this._tupleIndexMap[e]||[]}getTupleLabel(e){return this._tupleLabels[e]}getTupleType(e){return this._tupleTypes[e]}getTupleKeysByLabel(e){var t;return((t=this._tupleKeysByLabel[e])==null?void 0:t.concat())||[]}constructor(e,t,n){A(this,`id`,void 0),A(this,`name`,void 0),A(this,`hexCode`,void 0),A(this,`rangeKey`,void 0),A(this,`records`,[]),A(this,`items`,[]),A(this,`itemTypes`,[]),A(this,`_fieldDataType`,1),A(this,`hasInteger`,!1),A(this,`hasDecimal`,!1),A(this,`hasDate`,!1),A(this,`hasBlank`,!1),A(this,`hasText`,!1),A(this,`hasBoolean`,!1),A(this,`hasError`,!1),A(this,`format`,``),A(this,`maxNumber`,NaN),A(this,`minNumber`,NaN),A(this,`maxDate`,-1/0),A(this,`minDate`,1/0),A(this,`_itemIndexMap`,void 0),A(this,`_itemsMap`,{}),A(this,`_keyCounter`,0),A(this,`_tupleItemsMap`,Object.create(null)),A(this,`_tupleIndexMap`,Object.create(null)),A(this,`_tupleLabels`,Object.create(null)),A(this,`_tupleTypes`,Object.create(null)),A(this,`_recordTupleKeys`,[]),A(this,`_tupleKeysByLabel`,Object.create(null)),A(this,`_overflowRecordIndexes`,/* @__PURE__ */ new Set),A(this,`_tupleKeyCounter`,0),A(this,`_tupleItemCounter`,0),this.id=e,this.name=t,this.hexCode=n,this._itemIndexMap={}}getRangeKey(){return this.rangeKey}getformat(){return this.format}setRangeKey(e){this.rangeKey=e}getId(){return this.id}getName(){return this.name}setName(e){this.name=e}getFieldDataType(){return this.hasDate&&!this.hasText&&!this.hasDecimal&&!this.hasInteger&&!this.hasBoolean&&!this.hasError?4:(this.hasDecimal||this.hasInteger)&&!this.hasText&&!this.hasDate&&!this.hasBoolean&&!this.hasError?2:this._fieldDataType}getDataFieldType(){return 1}getItemSharedKey(e){return this.hexCode+n.TUPLE_FIELD_SEPARATOR+this._itemsMap[e]}getItemKey(e){let t=this.records[e];if(C(t))return String(t.v);if(M(t))return n.BLANK_PLACEHOLDER;let r=w(t)?t.error:String(t);return this._itemsMap[r]===void 0?n.otherDataKey:r}getTypeByKey(e){return this.itemTypes[this._itemsMap[e]]}getValue(e){return this.records[e]}addRecord(e,t){C(e)&&(this.format=e.f,this._updateDateItemKey(e,t));let n=M(e);n&&this._updateBlankItemKey(t),typeof e==`number`&&this._updateNumberItemKey(e,t),!n&&typeof e==`string`&&this._updateStringItemKey(e,t),typeof e==`boolean`&&this._updateBooleanItemKey(e,t),w(e)&&this._updateErrorItemKey(e.error,t),this.records.push(e),this.getDataFieldType()===1&&this._addTupleRecord(e,t)}_addTupleRecord(e,t){let r=this.getItemKey(this.records.length-1),i=1;C(e)?i=4:M(e)?i=5:typeof e==`number`?i=2:typeof e==`boolean`?i=3:w(e)&&(i=6);let a=i===1&&!r.startsWith(`[`)&&r!==n.otherDataKey?r:JSON.stringify([i,r]);(this._overflowRecordIndexes.has(t)||this._tupleItemsMap[a]===void 0&&i!==5&&this._tupleKeyCounter>=n.maxLimitItemCount)&&(r=n.otherDataKey,i=6,a=n.otherDataKey),this._tupleItemsMap[a]===void 0&&(this._tupleItemsMap[a]=this._tupleItemCounter++,i!==5&&this._tupleKeyCounter++,this._tupleIndexMap[a]=[],this._tupleLabels[a]=r,this._tupleTypes[a]=i,(this._tupleKeysByLabel[r]||=[]).push(a)),this._tupleIndexMap[a].push(t),this._recordTupleKeys.push(a)}getIndexesByKey(e){return this._itemIndexMap[e]||[]}getAllIndexMap(){return this._itemIndexMap}_updateDateItemKey(e,t){this.hasDate||=!0,this.maxDate=Math.max(this.maxDate,e.v),this.minDate=Math.min(this.minDate,e.v);let n=String(e.v);this._updateItemKey(n,t,4)}_updateBlankItemKey(e){this.hasBlank||=!0;let t=n.BLANK_PLACEHOLDER;this._itemIndexMap[t]===void 0?(this._itemIndexMap[t]=[e],this.items.push(t),this.itemTypes.push(5),this._itemsMap[t]=this.items.length-1):this._itemIndexMap[t].push(e)}_updateStringItemKey(e,t){this.hasText||=!0,this._updateItemKey(e,t,1)}_updateNumberItemKey(e,t){this.hasDecimal||=e%1!=0,this.hasInteger||=e%1==0,this.maxNumber=Math.max(this.maxNumber,e),this.minNumber=Math.min(this.minNumber,e);let n=String(e);this._updateItemKey(n,t,2)}_updateBooleanItemKey(e,t){this.hasBoolean=!0,this._updateItemKey(String(e),t,3)}_updateErrorItemKey(e,t){this.hasError=!0,this._updateItemKey(e,t,6)}_updateOtherItemKey(e){if(this._overflowRecordIndexes.add(e),this._itemIndexMap[n.otherDataKey]===void 0){this._itemIndexMap[n.otherDataKey]=[e];let t=this.items.push(n.otherDataKey);this._itemsMap[n.otherDataKey]=t-1,this.itemTypes.push(6),this._keyCounter++}else this._itemIndexMap[n.otherDataKey].push(e)}_updateItemKey(e,t,r){if(this._itemIndexMap[e]===void 0){if(this._keyCounter>=n.maxLimitItemCount)return this._updateOtherItemKey(t);this._itemIndexMap[e]=[t];let i=this.items.push(e);this._itemsMap[e]=i-1,this.itemTypes.push(r),this._keyCounter++}else this._itemIndexMap[e].push(t)}getItemsMap(){return this._itemsMap}getFieldInfo(){return{id:this.id,name:this.name,records:this.records,fieldDataType:this.getFieldDataType(),maxNumber:this.maxNumber,minNumber:this.minNumber,maxDate:this.maxDate,minDate:this.minDate,format:this.format,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}toJSON(){return{id:this.id,name:this.name,fieldDataType:this.getFieldDataType(),hexCode:this.hexCode,rangeKey:this.rangeKey,dataFieldType:this.getDataFieldType()}}fromJSON(e){this.name=e.name,this.id=e.id,this.rangeKey=e.rangeKey,this.hexCode=e.hexCode}reset(){this.records=[],this.items=[],this.itemTypes=[],this._itemIndexMap={},this.hasInteger=!1,this.hasDecimal=!1,this.hasDate=!1,this.hasBlank=!1,this.hasText=!1,this.hasBoolean=!1,this.hasError=!1,this.format=``,this.maxNumber=NaN,this.minNumber=NaN,this.maxDate=-1/0,this.minDate=1/0,this._itemsMap={},this._keyCounter=0,this._recordTupleKeys.length=0,this._tupleKeyCounter=0,this._tupleItemCounter=0,this._overflowRecordIndexes.clear();for(let e of[this._tupleItemsMap,this._tupleIndexMap,this._tupleLabels,this._tupleTypes,this._tupleKeysByLabel])for(let t of Object.keys(e))delete e[t]}},H=class extends V{constructor(...e){super(...e),A(this,`originalFieldId`,void 0)}getTupleKey(e){return this.getItemKey(e)}getTupleItemsMap(){return this.getItemsMap()}getTupleIndexesByKey(e){return this.getIndexesByKey(e)}getTupleLabel(e){return e}getTupleType(e){return this.getTypeByKey(e)}getTupleKeysByLabel(e){return this.getItemsMap()[e]===void 0?[]:[e]}getFieldInfo(){return{...super.getFieldInfo(),originalFieldId:this.getOriginFieldId(),dataFieldType:this.getDataFieldType()}}toJSON(){return{...super.toJSON(),originalFieldId:this.originalFieldId}}};let Re=1e9,ze=[`year`,`quarter`,`month`,`day`,`hour`,`minute`,`second`];function Be(e){let t=1/0,n=-1/0;for(let r of e.records){let e=r.v;t=Math.min(t,e),n=Math.max(n,e)}return{start:t,end:n}}function Ve(e,r){let{units:i,daysInterval:a=1}=e;if(!i.length||new Set(i).size!==i.length||i.some(e=>!ze.includes(e))||!Number.isInteger(a)||a<1||a>1&&(i.length!==1||i[0]!==`day`))return;let o=r.records,s=n.dateSystem;if(!o.length||o.some(e=>!C(e)||!(0,t.excelSerialToDateTimeParts)(e.v,{dateSystem:s})))return;let c=Be(r),l=e.autoStart?c.start:e.start,u=e.autoEnd?c.end:e.end;if(!(l===void 0||u===void 0||l>u||!(0,t.excelSerialToDateTimeParts)(l,{dateSystem:s})||!(0,t.excelSerialToDateTimeParts)(u,{dateSystem:s})))return{...e,units:ze.filter(e=>i.includes(e))}}let He=[0,31,60,91,121,152,182,213,244,274,305,335];function Ue(e){return{...e,...e.dayLabels?{dayLabels:Object.freeze([...e.dayLabels])}:{}}}function We(e,t,n,r,i){if(e.dayLabels)return e.dayLabels[He[r-1]+i-1];if(e.groupByDate===!1)return i;let a=e.daysInterval??1;return Math.floor(n)+Math.floor((Math.floor(t)-Math.floor(n))/a)*a}var Ge=class extends H{constructor(e,t,n,r,i,a){super(e,t,n),A(this,`_dataIsValid`,!0),A(this,`_dateType`,void 0),A(this,`_excelLike`,void 0),this.originalFieldId=r,this._dateType=i??`year`,this._excelLike=a&&Ue(a)}setDateType(e){this._dateType=e}getDateType(){return this._dateType}getDateGroupValid(){return this._dataIsValid}refreshGroupField(e){if(this.reset(),this._dataIsValid=!0,this._excelLike){this._refreshExcelLike(e);return}let r=e.records,i=n.dateSystem===t.DateSystem.Date1900;for(let e=0;e<r.length;e++){let t=r[e];if(t==null)continue;if(!C(t)){this._dataIsValid=!1;break}let n=t.v,a=Le(n,this._dateType,i);this.addRecord(a,e)}}_refreshExcelLike(e){let r=this._excelLike;if(!Ve({...r,units:[r.unit]},e)||r.dayLabels&&(r.unit!==`day`||(r.daysInterval??1)!==1||r.dayLabels.length!==366)){this._dataIsValid=!1;return}let i=e.records.map(e=>e.v),a=Be(e),o=r.autoStart?a.start:r.start,s=r.autoEnd?a.end:r.end,c=n.dateSystem;for(let e=0;e<i.length;e++){let n=i[e];if(n<o){this.addRecord(-1,e);continue}if(n>s){this.addRecord(Re,e);continue}let a=(0,t.excelSerialToDateTimeParts)(n,{dateSystem:c}),l=(n-Math.floor(n))*86400,u=Math.round(l),d=2**-52*Math.max(1,Math.abs(n))*86400,f=Math.min(86399,Math.abs(l-u)<=d?u:Math.floor(l)),p;switch(r.unit){case`year`:p=a.year;break;case`quarter`:p=Math.ceil(a.month/3);break;case`month`:p=a.month;break;case`day`:p=We(r,n,o,a.month,a.day);break;case`hour`:p=Math.floor(f/3600);break;case`minute`:p=Math.floor(f/60)%60;break;case`second`:p=f%60}this.addRecord(p,e)}}getGroupInfo(){return{type:3,dateType:this._dateType,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}getDataFieldType(){return 3}getOriginFieldId(){return this.originalFieldId}getFieldInfo(){return{...super.getFieldInfo(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}toJSON(){return{...super.toJSON(),dateType:this._dateType,originalFieldId:this.originalFieldId,...this._excelLike?{excelLike:{...this._excelLike}}:{}}}fromJSON(e){super.fromJSON(e),this._dateType=(e==null?void 0:e.dateType)??`year`,this.originalFieldId=e.originalFieldId,this._excelLike=e.excelLike&&Ue(e.excelLike)}};function Ke(e,t,n){return!!e&&typeof e.id==`string`&&!!e.id&&!t.has(e.id)&&typeof e.name==`string`&&!!e.name.trim()&&!n.has(e.name)&&Array.isArray(e.members)&&e.members.length>=2}function U(e,n,r){if(!Array.isArray(e==null?void 0:e.groups)||!e.groups.length)return;let i=/* @__PURE__ */ new Set;if(n)try{for(let e of n.records)i.add((0,t.getRecordValueKey)(ue(e)))}catch{return}let a=/* @__PURE__ */ new Map,o=r&&U(r);for(let e of(o==null?void 0:o.groups)??[])a.set(e.id,new Set(e.members.map(t.getRecordValueKey)));let s=/* @__PURE__ */ new Set,c=/* @__PURE__ */ new Set,l=/* @__PURE__ */ new Set,u=[];for(let r of e.groups){if(!Ke(r,s,c))return;s.add(r.id),c.add(r.name);let e=[];for(let o of r.members){var d;let s;try{s=(0,t.getRecordValueKey)(o)}catch{return}if(l.has(s)||n&&!i.has(s)&&!((d=a.get(r.id))!=null&&d.has(s)))return;l.add(s),e.push({...o})}u.push({id:r.id,name:r.name,members:e})}return{groups:u}}var W=class extends H{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_recordKeys`,[]),A(this,`_displayNames`,/* @__PURE__ */ new Map),this.originalFieldId=r,this._grouping=U(i)??i}getManualGroupValid(){return this._dataIsValid}getGrouping(){return U(this._grouping)??this._grouping}setGrouping(e){this._grouping=U(e)??e}reset(){super.reset(),this._recordKeys=[],this._displayNames.clear()}getItemKey(e){let t=this._recordKeys[e];return this.getItemsMap()[t]===void 0?n.otherDataKey:t}getDisplayNameByKey(e){return this._displayNames.get(e)??e}refreshGroupField(e){this.reset();let r=U(this._grouping);if(this._dataIsValid=!!r,!r)return;let i=/* @__PURE__ */ new Map;for(let e of r.groups)for(let n of e.members)i.set((0,t.getRecordValueKey)(n),e);for(let r=0;r<e.records.length;r++){let a=e.records[r],o,s;try{o=ue(a),s=(0,t.getRecordValueKey)(o)}catch{this.reset(),this._dataIsValid=!1;return}let c=i.get(s),l=JSON.stringify(c?[`group`,c.id]:[`member`,s]),u=(c==null?void 0:c.name)??(o.type===t.RecordValueType.Blank?n.BLANK_PLACEHOLDER:String(o.value)),d=c?1:this._getMemberType(o);super.addRecord(l,r),this.records[r]=(c==null?void 0:c.name)??a,this._recordKeys[r]=l,this._displayNames.set(l,u);let f=this.getItemsMap()[l];f!==void 0&&(this.itemTypes[f]=d)}}_getMemberType(e){switch(e.type){case t.RecordValueType.Blank:return 5;case t.RecordValueType.Number:return 2;case t.RecordValueType.Date:return 4;case t.RecordValueType.Boolean:return 3;case t.RecordValueType.Error:return 6;default:return 1}}getGroupInfo(){}getDataFieldType(){return 4}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:4,grouping:this.getGrouping()}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping=U(e.grouping)??e.grouping}};let qe=`__number_before__`,Je=`__number_after__`;function Ye(e,t){if(!Number.isFinite(e.interval)||e.interval<=0||!t.records.length)return;let n=1/0,r=-1/0;for(let e of t.records)if(!M(e)){if(typeof e!=`number`||!Number.isFinite(e))return;n=Math.min(n,e),r=Math.max(r,e)}let i=e.autoStart?n:e.start,a=e.autoEnd?r:e.end;if(!(i===void 0||a===void 0||!Number.isFinite(i)||!Number.isFinite(a)||i>a))return{start:i,end:a}}function Xe(e,t){return Ye(e,t)?{...e}:void 0}function Ze(e){let t=Ye({autoStart:!0,autoEnd:!0,interval:1},e);if(!t)return;let n=t.end-t.start;if(!Number.isFinite(n))return;let r=Math.round(Math.log10(n||Math.abs(t.start)||1))-1,i=Math.max(Number.MIN_VALUE,10**r),a=e.records.every(e=>M(e)||Number.isInteger(e));return{autoStart:!0,autoEnd:!0,...t,interval:a?Math.max(1,i):i}}var Qe=class extends H{constructor(e,t,n,r,i){super(e,t,n),A(this,`_grouping`,void 0),A(this,`_dataIsValid`,!0),A(this,`_bounds`,void 0),this.originalFieldId=r,this._grouping={...i}}getNumberGroupValid(){return this._dataIsValid}refreshGroupField(e){this.reset();let t=Ye(this._grouping,e);if(this._bounds=t,this._dataIsValid=!!t,!t)return;let{start:n,end:r}=t,i=(r-n)/this._grouping.interval;if(!Number.isFinite(i)){this._dataIsValid=!1,this._bounds=void 0;return}let a=Math.round(i),o=Math.min(2**-52*8*Math.max(1,Math.abs(i)),1e-6),s=Math.abs(i-a)<=o?a:Math.ceil(i),c=Math.max(0,s-1);for(let t=0;t<e.records.length;t++){let i=e.records[t];if(M(i)){this.addRecord(i,t);continue}let a=i,o=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(n)),this._grouping.interval*1e-6),s=Math.min(2**-52*8*Math.max(Math.abs(a),Math.abs(r)),this._grouping.interval*1e-6);if(a<n&&n-a>o)this.addRecord(qe,t);else if(a>r&&a-r>s)this.addRecord(Je,t);else{let e=(Math.min(r,Math.max(n,a))-n)/this._grouping.interval;if(!Number.isFinite(e)){this.reset(),this._dataIsValid=!1;return}let i=Math.round(e),o=Math.min(2**-52*8*Math.max(1,Math.abs(e)),1e-6),s=Math.min(c,Math.abs(e-i)<=o?i:Math.floor(e)),l=Number((n+s*this._grouping.interval).toPrecision(15));this.addRecord(l,t)}}}getGroupInfo(){return{type:2,grouping:{...this._grouping,...this._bounds}}}getDataFieldType(){return 2}getOriginFieldId(){return this.originalFieldId}toJSON(){return{...super.toJSON(),dataFieldType:2,grouping:{...this._grouping}}}fromJSON(e){super.fromJSON(e),this.originalFieldId=e.originalFieldId,this._grouping={...e.grouping}}};function G(e){let t;if(Ie(e))t=new Ge(e.id,e.name,e.hexCode,e.originalFieldId);else if(e.dataFieldType===2){let n=e;t=new Qe(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else if(e.dataFieldType===4){let n=e;t=new W(e.id,e.name,e.hexCode,n.originalFieldId,n.grouping)}else t=new V(e.id,e.name,e.hexCode);return t.fromJSON(e),t}var $e=class e{constructor(e){A(this,`fieldIds`,[]),A(this,`displayNameRecord`,{}),A(this,`customFields`,{}),A(this,`range`,void 0),A(this,`dataRecordCount`,void 0),A(this,`host`,void 0),this.host=e}getFieldIds(){return this.fieldIds.concat()}getFieldDisplayNames(){return this.getFieldIds().map(e=>this.getDisplayName(e))}getFieldIdByDisplayName(e){for(let t of this.fieldIds)if(this.getDisplayName(t)===e)return t}getGroupFieldMap(){let e=/* @__PURE__ */ new Map;for(let t of this.fieldIds){let n=this.getFieldById(t);B(n)&&e.set(n.getOriginFieldId(),n.id)}return e}getGroupFieldsInfoByIds(e){let t=[];for(let n of e){let e=this.getFieldById(n);if(e&&!B(e))for(let e of this.fieldIds){let r=this.getFieldById(e);B(r)&&r.getOriginFieldId()===n&&t.push([e,n])}}return t}hasField(e){return this.fieldIds.includes(e)}hasSourceName(e){return this.fieldIds.some(t=>this.getFieldById(t).name===e)}setRange(e){e&&(this.range={...e})}addField(e,t){this.fieldIds.push(e);let n=this.getUniqueDataFieldName(t);this.displayNameRecord[e]=n}deleteField(e){let t=this.fieldIds.indexOf(e);t!==-1&&(this.fieldIds.splice(t,1),delete this.displayNameRecord[e])}getDisplayName(e){let t=this.displayNameRecord[e];return t===void 0?this.getFieldById(e).getName():t}setDisplayName(e,t,n){this.displayNameRecord[e]=this.getUniqueDataFieldName(t,n)}getUniqueDataFieldName(t,n){return e.getUniqueDataFieldName(t,n||this.displayNameRecord)}static getUniqueDataFieldName(e,t){let n=new Set(Object.values(t)),r=e,i=1;if(!n.has(r))return r;for(;;){if(r=`${e}(${i})`,!n.has(r))return r;i++}}updateAllDisplayName(){let e={};for(let t of this.fieldIds)e[t]=this.getUniqueDataFieldName(this.getFieldById(t).getName(),e);this.displayNameRecord=e}getFieldById(e){return this.customFields[e]?this.customFields[e]:this.host.dataFields[e]}setDataRecordCount(e){this.dataRecordCount=e}getDataRecordCount(){return this.dataRecordCount}getDataFieldBySourceName(e){for(let t of this.fieldIds)if(this.getFieldById(t).name===e)return this.getFieldById(t)}getFieldInfo(){let e=this.fieldIds.map(e=>this.getFieldById(e).getFieldInfo()),t=Object.keys(this.customFields).map(e=>this.customFields[e].getFieldInfo());return e.concat(t)}toJSON(){let e={};for(let t of this.fieldIds)e[t]=this.getFieldById(t).toJSON();return{fields:e,fieldIds:this.fieldIds.concat(),displayNameRecord:{...this.displayNameRecord},customFields:Object.keys(this.customFields).map(e=>this.customFields[e].toJSON()),dataRecordCount:this.dataRecordCount,range:this.range}}fromJSON(e){this.fieldIds=e.fieldIds.concat(),this.displayNameRecord=e.displayNameRecord?{...e.displayNameRecord}:{};let t=e.fields;for(let e in t)this.host.dataFields[e]||(this.host.dataFields[e]=G(t[e]));this.customFields={};for(let t of e.customFields){let e=G(t);this.customFields[e.id]=e}this.dataRecordCount=e.dataRecordCount,this.range=e.range}dispose(){this.fieldIds=[],this.customFields={},this.dataRecordCount=0,delete this.host}},et=class{constructor(){A(this,`dataFields`,{}),A(this,`collections`,{})}compileRecordFilter(e){throw Error(`A record filter evaluator must be provided by the host.`)}createDataFieldId(){let e=L(5);return this.dataFields[e]?this.createDataFieldId():e}getAutoDisplayNameFunction(){return null}getNoUsedDataFieldIds(e){let t=this.collections[e].getFieldIds(),n=/* @__PURE__ */ new Set;for(let t in this.collections)if(t!==e){let e=this.collections[t].getFieldIds();for(let t of e)n.add(t)}return t.filter(e=>!n.has(e))}createCollection(e,t){this.collections[e]=new $e(this);let{header:n,data:r}=this.getRangeData(t),i=this.collections[e],a=[];for(let e of n){let t=this.createDataFieldId(),n=new V(t,e,L(3));this.dataFields[t]=n,i.fieldIds.push(t),a.push(n)}let o=0;for(let e of r){let t=0;for(let n of a)n.addRecord(e[t],o),t++;o++}return i.setDataRecordCount(r.length),i}dispose(){for(let e in this.collections)this.collections[e].dispose();this.collections={},this.dataFields={}}toJSON(){let e={};for(let t in this.collections)e[t]=this.collections[t].toJSON();let t={};for(let e in this.dataFields)t[e]=this.dataFields[e].toJSON();return{collections:e,dataFields:t}}addCollection(e,t,n,...r){this.collections[e]=t,t.setRange(n)}fromJSON(e){for(let t in e.collections){let n=new $e(this);n.fromJSON(e.collections[t]),this.addCollection(t,n,n.range)}for(let t in e.dataFields)this.dataFields[t]=G(e.dataFields[t])}};let tt=`0.00%`;function nt(e){return e===2||e===3||e===4||e===5||e===6||e===7||e===10||e===12||e===13||e===14}var rt=class{constructor(){A(this,`pageView`,new it),A(this,`rowView`,new ot),A(this,`colView`,new st),A(this,`dataView`,new K),A(this,`cornerView`,new K),A(this,`formatMap`,{}),A(this,`groupInfo`,{})}setGroupInfo(e){this.groupInfo=e}setFormat(e,t){let n={},r=new Set(t.filter(e=>{var t;return nt((t=e.showDataAs)==null?void 0:t.type)}).map(e=>e.id));e.iterateField(e=>{let t=e.getFormat();t?n[e.id]=t:r.has(e.id)&&(n[e.id]=tt)});for(let e of r)n[e]??=tt;this.formatMap=n}toJSON(){let e={...this.formatMap};return{pageView:this.pageView.toJSON(),rowView:this.rowView.toJSON(),colView:this.colView.toJSON(),dataView:this.dataView.toJSON(),cornerView:this.cornerView.toJSON(),groupInfo:this.groupInfo,formatMap:e}}formJSON(e){this.pageView.fromJSON(e.pageView),this.rowView.fromJSON(e.rowView),this.colView.fromJSON(e.colView),this.dataView.fromJSON(e.dataView),this.cornerView.fromJSON(e.cornerView),this.formatMap={...e.formatMap},this.groupInfo=e.groupInfo}},K=class{constructor(){A(this,`rowCount`,0),A(this,`colCount`,0),A(this,`data`,{}),A(this,`info`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}setValue(e,t,n){let r=this.getCell(e,t);this.lastCol=Math.max(this.lastCol,t),this.lastRow=Math.max(this.lastRow,e),r.v=n}setStyle(e,t,n){let r=this.getCell(e,t);r.s=n}setBlank(e,t){let n=this.getCell(e,t);n.t=2}setOther(e,t){let n=this.getCell(e,t);n.t=8}getCell(e,t){return this.data[e]||(this.data[e]={}),this.data[e][t]||(this.data[e][t]={}),this.data[e][t]}setInfo(e,t){this.info[e]=t}buildPathMap(e){let t={},n=0;return this.info.forEach(r=>{let i=Ee(r.paths,r.valueIndex,e);t[i]=n,n++}),t}setRowCount(e){this.rowCount=e}setColCount(e){this.colCount=e}getRowCount(){return this.rowCount}getColCount(){return this.colCount}getValue(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.v}getStyle(e,t){var n;return(n=this.data[e])==null||(n=n[t])==null?void 0:n.s}toJSON(){return{data:this.data,info:this.info.map(e=>({...e,paths:e.paths.concat()})),rowCount:this.rowCount,colCount:this.colCount,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.data=e.data,this.info=e.info.map(e=>({...e,paths:e.paths.concat()})),this.rowCount=e.rowCount,this.colCount=e.colCount,this.lastCol=e.lastCol,this.lastRow=e.lastRow}},it=class extends K{constructor(...e){super(...e),A(this,`ranges`,[]),A(this,`lastCol`,-1),A(this,`lastRow`,-1)}setPageIndex(e,t,n){let r=this.getCell(e,t);r.i=n}addRange(e){this.ranges.push(e)}getRanges(){return this.ranges}setLastCol(e){this.lastCol=e}setLastRow(e){this.lastRow=e}getLastCol(){return this.lastCol}getLastRow(){return this.lastRow}toJSON(){let e=this.ranges.map(e=>({...e}));return{...super.toJSON(),ranges:e,lastCol:this.lastCol,lastRow:this.lastRow}}fromJSON(e){this.ranges=e.ranges.map(e=>({...e})),this.lastCol=e.lastCol,this.lastRow=e.lastRow,super.fromJSON(e)}},at=class extends K{constructor(...e){super(...e),A(this,`headerMap`,[])}addHeaderMapItem(e,t){this.headerMap[e]=t}getHeaderMapItem(e){return this.headerMap[e]}toJSON(){let e=this.headerMap.map(e=>({...e}));return{...super.toJSON(),headerMap:e}}fromJSON(e){this.headerMap=e.headerMap.map(e=>({...e})),super.fromJSON(e)}},ot=class extends at{getLastCol(){return Math.max(this.lastCol,this.headerMap.length-1)}},st=class extends at{getLastRow(){return Math.max(this.lastRow,this.headerMap.length-1)}};let ct=e=>typeof e==`object`&&e.prefix!==void 0,lt=e=>typeof e==`object`&&e.errorType!==void 0;var ut=class{static prepareLayoutCtx(e,t,n){let r=new rt,i=t.rowDeep,a=t.colDeep,o=e.getOptions(),s=o.pageWrap||1,c=!!o.pageOverThenDown,l=n.valueQueryInfo,u=n.valueFilterInfo,d={};for(let e of u)d[e.fieldId]=e;let f=e.isColMultiMeasure(),p=e.isRowMultiMeasure(),m=e.getValueIndex();l.length>1&&(m===-1&&(m=a),!f&&!p&&(f=!0),f&&(m=Math.min(m,a)),p&&(m=Math.min(m,i)));let h=l.length,g={},_={},v=0;for(let e of l)g[e.id]=e,_[e.id]=v,v++;let y=!!e.getOptions().repeatRowLabels,b=!!e.getOptions().repeatColLabels,ee=e.getOptions().showRowSubtotal??!0,te=e.getOptions().showRowGrandTotal??!0,ne=e.getOptions().showColSubtotal??!0,re=e.getOptions().showColGrandTotal??!0,x=e.getOptions().rowSubtotalPosition??1;return{isColMultiMeasure:f,isRowMultiMeasure:p,valueIndex:m,rowDeep:i,colDeep:a,rowNodeTree:t.rowNodeTree,colNodeTree:t.colNodeTree,measuresMap:g,measureIndexesMap:_,measureCount:h,pageWrap:s,pageOverThenDown:c,queryData:n,view:r,valueQueryInfo:l,colMap:{},summaryManager:t,collapseInfo:n.collapseInfo,repeatRowLabels:y,repeatColLabels:b,valueFilterMap:d,showRowSubtotal:ee,showRowGrandTotal:te,showColSubtotal:ne,showColGrandTotal:re,rowSubtotalPosition:x}}static layoutPage(e){let{pageWrap:t,pageOverThenDown:n,view:r}=e,i=r.pageView,a=e.queryData.filterQueryInfo.map(({displayName:t,filterInfo:n,dataFieldId:r})=>{var i;let{status:a,value:o}=we(n);if(o===void 0)return{displayName:t,status:a};let s=(i=e.summaryManager.dimensionMap[r])==null?void 0:i.field,c=s==null?void 0:s.getTypeByKey(o);return{displayName:t,status:a,value:s instanceof W?s.getDisplayNameByKey(o):o,itemType:c}});n?this.layoutPageOverThenDown(a,i,t):this.layoutPageDownThenOver(a,i,t)}static _setPageFilterLabel(e,t,r,i,a){let{displayName:o,value:s,status:c,itemType:l}=a;e.setValue(t,r,o),e.setValue(t,r+1,s),e.setStyle(t,r+1,c),l===5?e.setBlank(t,r+1):l===6&&s===n.otherDataKey&&e.setOther(t,r+1),e.setPageIndex(t,r,i),e.setPageIndex(t,r+1,i)}static layoutPageOverThenDown(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,i,r*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=Math.ceil(o/n),c=o%n;for(let e=0;e<n;e++){let n=c>=e+1?s:s-1;t.addRange({row:0,col:e*3,rowCount:n,colCount:2})}t.setLastRow(s-1);let l=o>n?n*3-2:o*3-2;t.setLastCol(l),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutPageDownThenOver(e,t,n=1){let r=0,i=0,a=0;for(let o of e)this._setPageFilterLabel(t,r,i*3,a,o),r++,r===n&&(r=0,i++),a++;let o=e.length,s=0;for(;s<o;){let e=Math.min(n,o-s);t.addRange({row:0,col:s*3/n,rowCount:e,colCount:2}),s+=n}t.setLastRow(Math.min(o,n)-1),t.setLastCol(Math.ceil(o/n)*3-2),t.setRowCount(t.lastRow+1),t.setColCount(t.lastCol+1)}static layoutCol(e){this.layoutColHeader(e),this.layoutColFields(e),e.summaryManager.prepareShowDataAs(e.queryData)}static layoutCorner(e){}static layoutColHeader(e){let{colDeep:t,view:n,isColMultiMeasure:r,valueIndex:i}=e,a=e.queryData.colQueryInfo,o=n.colView,s=0,c=!1;for(let n=0;n<t;n++){let{displayName:l,filterInfo:u,sortInfo:d,id:f,dataFieldId:p}=a[n];t!==0&&r&&n===i&&(o.setValue(0,s,` Σ值`),c=!0,s++),o.setValue(0,s,l),o.addHeaderMapItem(s+1,{isValue:!1,level:n,tableFieldId:f,dataFieldId:p}),o.setStyle(0,s,Te(u,d,e.valueFilterMap[f])),s++}t!==0&&!c&&r&&(o.setValue(0,s,` Σ值`),o.addHeaderMapItem(s+1,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static setValueSize(e){let{view:t}=e,{rowView:n,colView:r,dataView:i}=t;i.setRowCount(n.getRowCount()),i.setColCount(r.getColCount())}static layoutNoneColFields(e,t){let{measureCount:n,isColMultiMeasure:r,valueQueryInfo:i}=e,a=r?i.map(e=>e.id):[],o=this.buildColPathMap(e,t);return n===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:o}:(this.updateColumnSubtotal(e,0,t,a,o),{itemSize:0,topTotalSize:0,bottomTotalSize:r?n:1,colPathMap:o})}static layoutColFields(e){let{colNodeTree:t,view:n,colDeep:r,isColMultiMeasure:i,valueQueryInfo:a,measureCount:o}=e,s=i?a.map(e=>e.id):[],c=r===0?this.layoutNoneColFields(e,t):this.layoutColNode(e,t,0,s),l=n.colView;if(o===0&&r===0)l.setRowCount(0);else if(o!==0&&r===0&&i)l.setRowCount(1);else if(o!==0&&r===0)l.setRowCount(0);else{let e=r===0?0:1,t=i?r+1+e:r+e;l.setRowCount(t)}l.setColCount(this.getRealSize(c)),e.colMap=l.buildPathMap(i)}static isLeafNode(e,t){return e.getLevel()===t}static getRealSize(e){return e.itemSize+e.topTotalSize+e.bottomTotalSize}static getNodeValue(e,t,n){let{queryData:r,summaryManager:i}=e,{valueQueryInfo:a}=r;return i.getCellValue(t.getIndex(),a[n])}static doColLeafNode(e,t,n,r){let{view:i,isColMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l,colDeep:u}=e,d=i.colView,f=t.getLevel(),p=this.shouldMultipleNode(a,f,o),m=this.buildColPathMap(e,t),h=t.getFieldsId();if(p){let e=0,i=u===0?0:1;for(let s of r){let r=this.getRowIndexForColHeader(f,o,a)+i;d.setValue(r,n+e,c[s].displayName),d.setInfo(n+e,{level:f,paths:t.getPaths(),valueIndex:a?e:-1,colPathMap:m,tableFieldId:h}),e++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}{let e=a?l[r[0]]:-1;return d.setInfo(n,{level:f,paths:t.getPaths(),valueIndex:e,colPathMap:m,tableFieldId:h}),{itemSize:1,topTotalSize:0,bottomTotalSize:0,colPathMap:m}}}static buildColPathMap(e,t){let n=[],r={};return r[``]=t.getIndex(),t.getIsLeaf()||t.iterate(t=>{this.iterateColLeafNodeChildren(e,t,n.concat([t.name]),r)}),r}static iterateColLeafNodeChildren(e,t,n,r){let{summaryManager:i}=e,a=i.getPathKeyWithFiledId(n,i.rowTableIdList);r[a]=t.getIndex(),t.isLeaf||t.iterate(t=>{let i=n.concat([t.name]);this.iterateColLeafNodeChildren(e,t,i,r)})}static buildColPathMapForCollapse(e,t,n){if(this.isLeafNode(t,e.colDeep)){let r=this.buildColPathMap(e,t);n.push(r)}else t.iterate(t=>{this.buildColPathMapForCollapse(e,t,n)})}static doColBranchNode(e,t,n,r){let{isColMultiMeasure:i,valueIndex:a,view:o,measuresMap:s,summaryManager:c}=e,l=t.getLevel(),u=n,d={itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:{}},f=[],p=this.shouldMultipleNode(i,t.getLevel(),a),m=c.getPathKeyWithFiledId(t.getPaths(),c.colTableIdList);if(p){let n=0;for(let c of r){let r=this.getRowIndexForColHeader(l,a,i);o.colView.setValue(r+1,u,s[c].displayName),t.iterate(t=>{let r=this.layoutColNode(e,t,u,[c]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(r),n===0&&f.push(r.colPathMap)}),n++}d.colPathMap=c.combinePathMapList(f,m),u++}else t.iterate(t=>{let n=this.layoutColNode(e,t,u,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;d.itemSize+=i,d.topTotalSize+=a,d.bottomTotalSize+=o,u+=this.getRealSize(n),f.push(n.colPathMap)}),d.colPathMap=c.combinePathMapList(f,m);return d}static shouldMultipleTotal(e,t,n){return e&&t<=n}static shouldMultipleNode(e,t,n){return e&&t===n}static getRowIndexForColHeader(e,t,n){return n?e<=t?e:e+1:e}static setLabelValue(e,t,n,r,i,a){e.setValue(t,n,r),i&&e.setBlank(t,n),a&&e.setOther(t,n)}static layoutColNode(e,t,n,r){let{view:i,colDeep:a,measureCount:o,isColMultiMeasure:s,valueIndex:c,summaryManager:l}=e,u=i.colView,d=t.displayName,f=t.type===5,p=t.type===6,m=t.type===4||t.type===2?Number(d):d,h=t.getLevel(),g=this.getRowIndexForColHeader(h,c,s),_=this.shouldMultipleTotal(s,h,c),v=t.getCollapse(),y=this.isLeafNode(t,a);if(h!==0&&(this.setLabelValue(u,g,n,m,f,p),y||u.setStyle(g,n,v?11:12)),v){if(y)return{itemSize:0,topTotalSize:0,bottomTotalSize:0,colPathMap:this.buildColPathMap(e,t)};let i=[];this.buildColPathMapForCollapse(e,t,i);let a=l.getPathKeyWithFiledId(t.getPaths(),l.colTableIdList),s=l.combinePathMapList(i,a),c=h!==0||e.showColGrandTotal;return c&&this.updateColumnSubtotal(e,n,t,r,s),{itemSize:0,topTotalSize:0,bottomTotalSize:c?_?o:1:0,colPathMap:s}}if(y)return this.doColLeafNode(e,t,n,r);{let i=this.doColBranchNode(e,t,n,r),a=this.getRealSize(i);if(e.repeatColLabels&&h!==0)for(let e=n+1;e<n+a;e++)this.setLabelValue(u,g,e,m,f,p);return(h===0?e.colDeep===0||e.showColGrandTotal:e.showColSubtotal)&&(this.updateColumnSubtotal(e,n+a,t,r,i.colPathMap),_?i.bottomTotalSize+=o:i.bottomTotalSize++),i}}static getMeasureIndex(e,t,n){return e?n[t[0]]:-1}static updateColumnSubtotal(e,t,r,i,a){let{view:o,isColMultiMeasure:s,valueIndex:c,measuresMap:l,measureIndexesMap:u,colDeep:d,valueQueryInfo:f}=e,p=o.colView,m=r.displayName,h=r.getLevel(),g=this.shouldMultipleTotal(s,h,c);if(h===0){let e=d===0?0:1;if(g){let n=0;for(let o of i){let{displayName:i}=l[o];p.setValue(e,n+t,`${i}`),p.setStyle(e,n+t,15),p.setInfo(n+t,{level:h,paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,colPathMap:a,tableFieldId:``}),n++}}else{d===0&&f.length===1?p.setValue(e,t,f[0].displayName):(p.setValue(e,t,``),p.setStyle(e,t,14));let n=this.getMeasureIndex(s,i,u);p.setInfo(t,{level:h,paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,colPathMap:a,tableFieldId:``})}}else{let e=this.getRowIndexForColHeader(h,c,s),o=r.getCollapse(),d=r.getFieldsId(),f=r.type===5,_=r.type===6;if(o&&e++,g){let e=0,n=h;for(let s of i){let{displayName:i}=l[s],c=o?i:{prefix:r.displayName,value:i};p.setStyle(n,t+e,13),this.setLabelValue(p,n,t+e,c,!o&&f,!o&&_),p.setInfo(t+e,{level:h,paths:r.getPaths(),valueIndex:e,isBottomTotal:!0,colPathMap:a,tableFieldId:d}),e++}}else{o||(this.setLabelValue(p,e,t,m,f,_&&r.name===n.otherDataKey),p.setStyle(e,t,13));let c=this.getMeasureIndex(s,i,u);p.setInfo(t,{level:h,paths:r.getPaths(),valueIndex:c,isBottomTotal:!0,colPathMap:a,tableFieldId:d})}}}},dt=class extends ut{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutHeadersWithoutColumnDimensions(e){if(e.colDeep!==0)return;let t=e.view.colView;(e.rowDeep!==0||e.measureCount===1||e.isRowMultiMeasure)&&(e.measureCount===1&&(t.setValue(0,0,e.valueQueryInfo[0].displayName),t.setInfo(0,this.createSingleValueHeaderInfo(e,t.info[0]))),t.setRowCount(1))}static createSingleValueHeaderInfo(e,t){let n=e.valueQueryInfo[0];return{...t,tableFieldId:n.id,dataFieldId:n.dataFieldId,isValue:!0}}static getCornerSize(e){let{rowDeep:t,colDeep:n,measureCount:r,isRowMultiMeasure:i,isColMultiMeasure:a}=e,o=e.view.colView.getRowCount();o===0&&t!==0&&(o=1);let s=e.view.rowView.getColCount();return t===0&&(r===0?s=0:r===1?(s=n===0?0:1,o=n===0?1:o):i?s=1:a&&(s=0)),{rowCount:s,colCount:o}}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i,isRowMultiMeasure:a,valueIndex:o}=e,s=e.queryData.rowQueryInfo,c=e.queryData.valueQueryInfo,l=r.cornerView,u=r.rowView,{rowCount:d,colCount:f}=this.getCornerSize(e);l.setRowCount(f),l.setColCount(d),i===1&&n>0&&t>0&&l.setValue(0,0,c[0].displayName);let p=0,m=!1,h=f-1;for(let n=0;n<t;n++){let{displayName:t,filterInfo:r,sortInfo:i,dataFieldId:c,id:d}=s[n];a&&n===o&&(l.setValue(h,p,` Σ值`),m=!0,l.setInfo(p,{paths:[],level:-1,tableFieldId:``,dataFieldId:``,valueIndex:-1,isValue:!0}),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}),p++),l.setValue(h,p,t),u.addHeaderMapItem(p,{isValue:!1,level:n,tableFieldId:d,dataFieldId:c}),l.setStyle(h,p,Te(r,i,e.valueFilterMap[d])),l.setInfo(p,{paths:[],level:n,tableFieldId:d,dataFieldId:c,valueIndex:-1}),p++}!m&&a&&(l.setValue(h,p,` Σ值`),u.addHeaderMapItem(p,{isValue:!0,level:-1,tableFieldId:``,dataFieldId:``}))}static layoutRowFields(e){let{rowNodeTree:t,view:n,rowDeep:r,colDeep:i,isRowMultiMeasure:a,isColMultiMeasure:o,valueQueryInfo:s,measureCount:c}=e,l=a?s.map(e=>e.id):[],u=this.layoutRowNode(e,t,0,l),d=n.rowView;d.setRowCount(this.getRealSize(u)),r===0?c===0||o?d.setColCount(0):a?d.setColCount(1):d.setColCount(i===0?0:1):d.setColCount(a?r+1:r)}static doRowLeafNode(e,t,n,r){let{view:i,isRowMultiMeasure:a,valueIndex:o,measureCount:s,measuresMap:c,measureIndexesMap:l}=e,u=i.rowView,d=t.getLevel(),f=t.type===5,p=t.type===6,m=this.shouldMultipleNode(a,d,o),h=t.getFieldsId();if(m){let i=0;for(let s of r){let r=this.getColIndexForRowHeader(d,o,a)+1;u.setValue(n+i,r,c[s].displayName),f&&o!==t.getLevel()&&u.setBlank(n+i,r),p&&o!==t.getLevel()&&u.setOther(n+i,r);let l=t.getPaths();u.setInfo(n+i,{paths:l,valueIndex:a?i:-1,level:d,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n+i),this.startContent(e,t,n+i,i),i++}return{itemSize:1*s,topTotalSize:0,bottomTotalSize:0}}{let i=a?l[r[0]]:-1,o=t.getPaths();return u.setInfo(n,{level:d,paths:o,valueIndex:i,tableFieldId:h}),this.repeatRowLabelsForNode(e,t,n),d===0&&s===0?{itemSize:0,topTotalSize:0,bottomTotalSize:0,valueIndex:i}:(this.startContent(e,t,n,i),{itemSize:1,topTotalSize:0,bottomTotalSize:0,valueIndex:i})}}static startContent(e,t,n,r){let{measureCount:i}=e;i<=0||(t.iterate(t=>{this.layoutValueNode(e,t,n,r,[t.name])}),this.layoutValueLeafNode(e,t,n,[],r))}static layoutValueNode(e,t,n,r,i){let a=t.getIsLeaf();this.layoutValueLeafNode(e,t,n,i,r),a||(this.layoutValueNodeSubtotal(e,n),t.iterate(t=>{let a=i.concat(t.name);this.layoutValueNode(e,t,n,r,a)}))}static layoutValueNodeSubtotal(e,t){let{view:n,summaryManager:r,valueQueryInfo:i,rowDeep:a,measureCount:o}=e,s=n.dataView,c=n.colView,l=n.rowView.info[t],u=l.paths;if(!(l.level===a||o<=0))for(let n=0;n<c.info.length;n++){let a=c.info[n],{colPathMap:o}=a,d=r.getPathKeyWithFiledId(u,r.rowTableIdList),f=o==null?void 0:o[d],p=this.getMeasureInfoByIndex(e,i,l,a);if(f){let e=r.getCellValue(f,p);e!==void 0&&s.setValue(t,n,e)}}}static getMeasureInfoByIndex(e,t,n,r){let{isColMultiMeasure:i,isRowMultiMeasure:a}=e;return i?t[r.valueIndex]:a?t[n.valueIndex]:t[0]}static layoutValueLeafNode(e,t,n,r,i){let{view:a,colMap:o,isColMultiMeasure:s,measureCount:c}=e,l=a.dataView,u=[];if(i===-1){if(s)for(let e=0;e<c;e++)u.push(e);else c>0&&u.push(0)}else u.push(i);for(let i of u){let a=o[Ee(r,i,s)],c=this.getNodeValue(e,t,i);c!==void 0&&l.setValue(n,a,c)}}static getColIndexForRowHeader(e,t,n){return n?e<=t?e-1:e:e-1}static repeatRowLabelsForNode(e,t,n){if(!e.repeatRowLabels)return;let r=e.view.rowView,i=t.displayPaths,a=Math.min(t.getLevel(),e.rowDeep);for(let t=1;t<=a;t++){let a=this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure);a<0||r.setValue(n,a,i[t-1])}}static doRowBrachNode(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,view:o,measuresMap:s}=e,c=t.getLevel(),l=n,u={itemSize:0,topTotalSize:0,bottomTotalSize:0},d=this.shouldMultipleNode(i,t.getLevel(),a),f=t.type===5,p=t.type===6;if(d){for(let n of r){let r=this.getColIndexForRowHeader(c,a,i),d=o.rowView;d.setValue(l,r+1,s[n].displayName),f&&d.setBlank(l,r+1),p&&d.setOther(l,r+1),t.iterate(t=>{let r=this.layoutRowNode(e,t,l,[n]),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=r;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(r)})}l++}else t.iterate(t=>{let n=this.layoutRowNode(e,t,l,r),{itemSize:i,topTotalSize:a,bottomTotalSize:o}=n;u.itemSize+=i,u.topTotalSize+=a,u.bottomTotalSize+=o,l+=this.getRealSize(n)});return u}static layoutRowNode(e,t,n,r){let{view:i,rowDeep:a,isRowMultiMeasure:o,valueIndex:s,measureCount:c,colDeep:l,valueQueryInfo:u}=e,d=i.rowView,f=t.displayName,p=t.getLevel(),m=this.getColIndexForRowHeader(p,s,o),h=t.getCollapse(),g=this.isLeafNode(t,a),_=t.type===5,v=t.type===6,y=t.type===4||t.type===2,b=p===0;if(!b){let e=y?Number(f):f;d.setValue(n,m,e),_&&d.setBlank(n,m),v&&d.setOther(n,m),g||d.setStyle(n,m,h?11:12)}if(g){let i=b&&!o&&a===0&&l!==0&&u.length===1;b&&!o&&c>0&&(a===0?l!==0&&d.setValue(n,0,u[0].displayName):l!==0&&u.length===1?d.setValue(n,0,u[0].displayName):(d.setValue(n,0,``),d.setStyle(n,0,14)));let s=this.doRowLeafNode(e,t,n,r);return i&&d.setInfo(n,this.createSingleValueHeaderInfo(e,d.info[n])),s}{let i=n,a={itemSize:0,topTotalSize:0,bottomTotalSize:0};h||(a=this.doRowBrachNode(e,t,n,r),i+=this.getRealSize(a));let l=this.shouldMultipleTotal(o,p,s);return(b?e.rowDeep===0||e.showRowGrandTotal:e.showRowSubtotal||h)&&(this.updateRowSubtotal(e,i,t,r),l?a.bottomTotalSize+=c:a.bottomTotalSize++),a}}static updateRowSubtotal(e,t,r,i){let{view:a,isRowMultiMeasure:o,valueIndex:s,measuresMap:c,measureIndexesMap:l,rowDeep:u,colDeep:d,valueQueryInfo:f}=e,p=a.rowView,m=r.getLevel(),h=this.shouldMultipleTotal(o,m,s);if(m===0){if(h){let n=0;for(let a of i){let{displayName:i}=c[a];p.setValue(n+t,0,`${i}`),p.setStyle(n+t,0,15),p.setInfo(n+t,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:``}),this.layoutValueNodeSubtotal(e,t+n),n++}}else{u===0&&d!==0&&f.length===1?p.setValue(t,0,f[0].displayName):(p.setValue(t,0,``),p.setStyle(t,0,14));let n=o?l[i[0]]:-1;p.setInfo(t,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:``}),u===0&&d!==0&&f.length===1&&p.setInfo(t,this.createSingleValueHeaderInfo(e,p.info[t])),this.layoutValueNodeSubtotal(e,t)}}else{let a=this.getColIndexForRowHeader(m,s,o),u=r.getCollapse(),d=r.getFieldsId(),f=r.type===5,g=r.type===6;if(u&&a++,h){let n=0,o=e.valueIndex;for(let s of i){let{displayName:i}=c[s];if(u)p.setValue(t+n,o,i);else{let e=u?`${i}`:{prefix:r.displayName,value:i};p.setValue(t+n,a,e),f&&p.setBlank(t+n,a),g&&p.setOther(t+n,a),p.setStyle(t+n,a,13)}p.setInfo(t+n,{paths:r.getPaths(),valueIndex:n,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t+n),n++}}else{u||(this.setLabelValue(p,t,a,r.displayName,f,g&&r.name===n.otherDataKey),p.setStyle(t,a,13));let s=o?l[i[0]]:-1;p.setInfo(t,{paths:r.getPaths(),valueIndex:s,isBottomTotal:!0,level:m,tableFieldId:d}),this.layoutValueNodeSubtotal(e,t)}}}},ft=class extends dt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex<=t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),i&&l!==c&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),o!==a&&u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?e.measureIndexesMap[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){return e.rowDeep===0?e.measureCount===0||e.isColMultiMeasure?0:e.isRowMultiMeasure||e.colDeep!==0?1:0:1}static getRowLabelCol(e,t){return 0}static getValueLabelCol(e,t){return 0}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}static repeatRowLabelsForNode(e,t,n){}static layoutColHeader(e){if(super.layoutColHeader(e),e.colDeep===0)return;let t=e.view.colView,n=t.getHeaderMapItem(1);for(let e=1;e<=t.getLastCol();e++)t.setValue(0,e,``);t.setValue(0,0,`Column Labels`),n&&t.addHeaderMapItem(1,{...n,isColumnLabel:!0})}static layoutCorner(e){let{rowDeep:t,colDeep:n,view:r,measureCount:i}=e,a=e.queryData.rowQueryInfo,o=e.queryData.valueQueryInfo,s=r.cornerView,c=r.colView,l=r.rowView,u=c.getRowCount();u===0&&t!==0&&(u=1);let d=l.getColCount();if(s.setRowCount(u),s.setColCount(d),t===0&&n===0&&e.isRowMultiMeasure?s.setValue(0,0,` Σ值`):t===0&&e.isRowMultiMeasure&&s.setValue(u-1,0,` Σ值`),i===1&&n>0&&t>0&&s.setValue(0,0,o[0].displayName),t===0)return;let f=u-1,{filterInfo:p,sortInfo:m,dataFieldId:h,id:g}=a[0];s.setValue(f,0,`Row Labels`),s.setStyle(f,0,Te(p,m,e.valueFilterMap[g])),s.setInfo(0,{paths:[],level:0,tableFieldId:g,dataFieldId:h,valueIndex:-1,isRowLabel:!0}),l.addHeaderMapItem(0,{isValue:!1,level:0,tableFieldId:g,dataFieldId:h})}},pt=class extends dt{static layout(e,t,n){let r=this.prepareLayoutCtx(e,t,n);return this.layoutPage(r),this.layoutCol(r),this.layoutRowFields(r),this.layoutHeadersWithoutColumnDimensions(r),this.setValueSize(r),this.layoutCorner(r),r.view}static layoutRowFields(e){let{rowNodeTree:t,view:n,isRowMultiMeasure:r,valueQueryInfo:i,measureCount:a,rowDeep:o,showRowGrandTotal:s}=e,c=n.rowView,l=r?i.map(e=>e.id):[],u=0;if(o===0)a>0&&(u=this.writeGrandTotalRows(e,t,u,l));else{if(this.shouldSplitRootByValues(e))for(let n of l)u=this.writeRootValueHeaderRow(e,u,n),u=this.layoutRowChildren(e,t,u,[n]);else u=this.layoutRowChildren(e,t,u,l);s&&(a>0||o>0)&&(u=this.writeGrandTotalRows(e,t,u,l))}c.setRowCount(u),c.setColCount(this.getRowColCount(e))}static shouldSplitRootByValues(e){return e.isRowMultiMeasure&&e.valueIndex===0}static layoutRowChildren(e,t,n,r){let i=n;return t.iterate(t=>{i=this.layoutRowNodeToCursor(e,t,i,r)}),i}static layoutRowNode(e,t,n,r){return{itemSize:this.layoutRowNodeToCursor(e,t,n,r)-n,topTotalSize:0,bottomTotalSize:0}}static layoutRowNodeToCursor(e,t,n,r){let i=this.isLeafNode(t,e.rowDeep),a=t.getCollapse();if(!i){if(this.shouldWriteMultiValueSubtotalAtBottom(e,t)&&!a){let i=this.writeParentItemRow(e,t,n);if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex))for(let n of r)i=this.writeValueHeaderRow(e,t,i,n),i=this.layoutRowChildren(e,t,i,[n]);else i=this.layoutRowChildren(e,t,i,r);return e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldWriteSubtotalAtBottom(e)&&!a){let i=this.writeParentItemRow(e,t,n);return i=this.layoutRowChildren(e,t,i,r),e.showRowSubtotal&&(i=this.writeBottomSubtotalRows(e,t,i,r)),i}if(this.shouldMultipleNode(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r)i=this.writeParentRows(e,t,i,[n]),a||(i=this.layoutRowChildren(e,t,i,[n]));return i}let i=this.writeParentRows(e,t,n,r);return a||(i=this.layoutRowChildren(e,t,i,r)),i}return this.writeLeafRows(e,t,n,r)}static shouldWriteSubtotalAtBottom(e){return e.rowSubtotalPosition===2}static shouldWriteMultiValueSubtotalAtBottom(e,t){return e.isRowMultiMeasure&&e.valueIndex>0&&t.getLevel()<=e.valueIndex}static writeParentItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setStyle(n,r,12),a.setInfo(n,this.createRowInfo(t,{rowType:`item`})),n+1}static writeValueHeaderRow(e,t,n,r){let i=this.getValueLabelCol(e,t.getLevel()),a=e.measureIndexesMap[r],o=e.view.rowView;return this.repeatRowLabelsForNode(e,t,n),o.setValue(n,i,e.measuresMap[r].displayName),o.setInfo(n,this.createRowInfo(t,{valueIndex:a,isValue:!0,dataFieldId:e.measuresMap[r].dataFieldId,rowType:`value`})),n+1}static writeRootValueHeaderRow(e,t,n){let r=e.measureIndexesMap[n],i=e.measuresMap[n],a=e.view.rowView;return a.setValue(t,0,i.displayName),a.setInfo(t,{paths:[],valueIndex:r,level:-1,tableFieldId:``,dataFieldId:i.dataFieldId,isValue:!0,rowType:`value`}),t+1}static writeParentRows(e,t,n,r){if((e.showRowSubtotal||t.getCollapse())&&e.isRowMultiMeasure&&r.length>1&&this.shouldMultipleTotal(e.isRowMultiMeasure,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeParentRow(e,t,i,r,e.measuresMap[n].displayName),i++}return i}let i=e.isRowMultiMeasure&&r.length===1?e.measureIndexesMap[r[0]]:-1,a=e.isRowMultiMeasure&&r.length===1&&e.valueIndex>0&&e.valueIndex===t.getLevel()?e.measuresMap[r[0]].displayName:void 0;return this.writeParentRow(e,t,n,i,a),n+1}static writeParentRow(e,t,n,r,i){let{showRowSubtotal:a}=e,o=t.getCollapse(),s=a||o,c=this.getRowLabelCol(e,t.getLevel()),l=i?this.getValueLabelCol(e,t.getLevel()):c,u=this.getNodeDisplayValue(t),d=e.view.rowView;d.setValue(n,c,u),this.applyNodeValueType(d,n,c,t),d.setStyle(n,c,o?11:12),this.repeatRowLabelsForNode(e,t,n),i&&d.setValue(n,l,i),d.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:s,isSubtotal:s,isTopTotal:s,rowType:s?`subtotal`:`item`})),s&&this.layoutValueNodeSubtotal(e,n)}static writeBottomSubtotalRows(e,t,n,r){let{isRowMultiMeasure:i,measuresMap:a}=e;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=e.measureIndexesMap[n];this.writeBottomSubtotalRow(e,t,i,r,a[n].displayName),i++}return i}return this.writeBottomSubtotalRow(e,t,n,i?e.measureIndexesMap[r[0]]:-1),n+1}static writeBottomSubtotalRow(e,t,n,r,i){let a=this.getRowLabelCol(e,t.getLevel()),o=this.getNodeDisplayValue(t),s=e.view.rowView;s.setValue(n,a,i?{prefix:String(o),value:i}:o),this.applyNodeValueType(s,n,a,t),s.setStyle(n,a,13),this.repeatRowLabelsForNode(e,t,n),s.setValue(n,a,i?{prefix:String(o),value:i}:o),s.setInfo(n,this.createRowInfo(t,{valueIndex:r,isBottomTotal:!0,isSubtotal:!0,rowType:`subtotal`})),this.layoutValueNodeSubtotal(e,n)}static writeLeafRows(e,t,n,r){let{isRowMultiMeasure:i,valueIndex:a,measureCount:o,measuresMap:s,measureIndexesMap:c}=e;if(this.shouldMultipleNode(i,t.getLevel(),a)){if(this.shouldWriteLeafValuesUnderItem(e)){let i=this.writeLeafItemRow(e,t,n);for(let n of r){let r=c[n];this.writeLeafValueRow(e,t,i,r,s[n].displayName),this.startContent(e,t,i,r),i++}return i}let i=n;for(let n of r){let r=c[n],a=this.getRowLabelCol(e,t.getLevel()),o=this.getValueLabelCol(e,t.getLevel()),l=this.getNodeDisplayValue(t),u=e.view.rowView;u.setValue(i,a,l),this.applyNodeValueType(u,i,a,t),this.repeatRowLabelsForNode(e,t,i),u.setValue(i,o,s[n].displayName),u.setInfo(i,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,rowType:`item`})),this.startContent(e,t,i,r),i++}return i}let l=i?c[r[0]]:-1,u=this.getRowLabelCol(e,t.getLevel()),d=this.getNodeDisplayValue(t),f=e.view.rowView;return f.setValue(n,u,d),this.applyNodeValueType(f,n,u,t),this.repeatRowLabelsForNode(e,t,n),f.setInfo(n,this.createRowInfo(t,{valueIndex:l,isLeaf:!0,rowType:`item`})),o>0&&this.startContent(e,t,n,l),n+1}static shouldWriteLeafValuesUnderItem(e){return e.isRowMultiMeasure&&e.valueIndex>0}static writeLeafItemRow(e,t,n){let r=this.getRowLabelCol(e,t.getLevel()),i=this.getNodeDisplayValue(t),a=e.view.rowView;return a.setValue(n,r,i),this.applyNodeValueType(a,n,r,t),this.repeatRowLabelsForNode(e,t,n),a.setInfo(n,this.createRowInfo(t,{isLeaf:!0,rowType:`item`})),n+1}static writeLeafValueRow(e,t,n,r,i){let a=this.getValueLabelCol(e,t.getLevel()),o=e.view.rowView;this.repeatRowLabelsForNode(e,t,n),o.setValue(n,a,i),o.setInfo(n,this.createRowInfo(t,{valueIndex:r,isLeaf:!0,isValue:!0,rowType:`value`}))}static writeGrandTotalRows(e,t,n,r){let{isRowMultiMeasure:i,measureCount:a,measuresMap:o,measureIndexesMap:s}=e,c=e.view.rowView;if(this.shouldMultipleTotal(i,t.getLevel(),e.valueIndex)){let i=n;for(let n of r){let r=s[n];c.setValue(i,0,o[n].displayName),c.setStyle(i,0,15),c.setInfo(i,this.createGrandTotalInfo(t,r)),this.layoutGrandTotalValues(e,t,i,r),i++}return i}if(e.rowDeep===0&&!i&&a>0)return e.colDeep!==0&&c.setValue(n,0,e.valueQueryInfo[0].displayName),c.setInfo(n,this.createGrandTotalInfo(t,-1)),e.colDeep!==0&&c.setInfo(n,this.createSingleValueHeaderInfo(e,c.info[n])),this.layoutGrandTotalValues(e,t,n,-1),n+1;if(a>0){let a=i?s[r[0]]:-1;return c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,a)),this.layoutGrandTotalValues(e,t,n,a),n+1}return e.rowDeep>0?(c.setValue(n,0,``),c.setStyle(n,0,14),c.setInfo(n,this.createGrandTotalInfo(t,-1)),n+1):n}static layoutGrandTotalValues(e,t,n,r){e.rowDeep===0?this.startContent(e,t,n,r):this.layoutValueNodeSubtotal(e,n)}static createRowInfo(e,t){return{paths:e.getPaths(),valueIndex:-1,level:e.getLevel(),tableFieldId:e.getFieldsId(),...t}}static createGrandTotalInfo(e,t){return{paths:e.getPaths(),valueIndex:t,isBottomTotal:!0,isSubtotal:!0,level:e.getLevel(),tableFieldId:``,rowType:`grandTotal`}}static getRowColCount(e){let{rowDeep:t,isRowMultiMeasure:n}=e;return t===0?e.measureCount===0||e.isColMultiMeasure?0:n||e.colDeep!==0?1:0:n?t+1:t}static getRowLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)}static getValueLabelCol(e,t){return this.getColIndexForRowHeader(t,e.valueIndex,e.isRowMultiMeasure)+1}static getNodeDisplayValue(e){return e.type===4||e.type===2?Number(e.displayName):e.displayName}static applyNodeValueType(e,t,n,r){r.type===5&&e.setBlank(t,n),r.type===6&&e.setOther(t,n)}},mt=class{constructor(e,t,n){A(this,`_index`,void 0),A(this,`_level`,void 0),A(this,`parentIndex`,void 0),A(this,`paths`,void 0),A(this,`isLeaf`,void 0),A(this,`name`,void 0),A(this,`displayName`,void 0),A(this,`displayPaths`,[]),A(this,`fieldId`,void 0),A(this,`collapse`,void 0),A(this,`sortedList`,[]),A(this,`hasSort`,!1),A(this,`type`,void 0),A(this,`_nodes`,{}),this._index=e,this.fieldId=t,this.type=n}getCollapse(){return this.collapse}setCollapse(e){this.collapse=e}getFieldsId(){return this.fieldId}iterate(e){if(this.hasSort)for(let t of this.sortedList){let n=this._nodes[t];e(n)}else{let t=Object.keys(this._nodes);for(let n=0;n<t.length;n++){let r=this._nodes[t[n]];e(r)}}}getIndex(){return this._index}hasNode(e){return this._nodes[e]!==void 0}setParentIndex(e){this.parentIndex=e}setLevel(e){this._level=e}getLevel(){return this._level}setPaths(e){this.paths=e}getPaths(){return this.paths}setLeaf(){this.isLeaf=!0}getIsLeaf(){return!!this.isLeaf}setName(e){this.name=e}addNode(e,t,n,r,i=t){this._nodes[t]=e,e.setName(t),e.displayName=i,e.displayPaths=this.displayPaths.concat(i),e.setParentIndex(this._index),e.setLevel(this._level+1),e.setPaths(this.paths.concat(t)),n&&(this.sortNode(t,n,r),this.hasSort=!0)}sortNode(e,t,n){let r=t[e],i=this.sortedList,a=0,o=i.length,s=n!==2;for(;a<o;){let e=Math.floor((a+o)/2);(s?t[i[e]]-r:r-t[i[e]])<0?a=e+1:o=e}i.splice(a,0,e)}sortChildrenByValue(e,t,n,r){let i=Object.values(this._nodes);i.some(t=>t.fieldId===e)&&(this.sortedList=i.map((e,t)=>({node:e,index:t})).sort((e,i)=>{let a=n(e.node._index),o=n(i.node._index);return a===o?r(e.node.displayName,i.node.displayName)||e.index-i.index:a===void 0?1:o===void 0?-1:t===2?o-a:a-o}).map(({node:e})=>e.name),this.hasSort=!0);for(let a of i)a.sortChildrenByValue(e,t,n,r)}resetSort(){this.sortedList=[],this.hasSort=!1,Object.values(this._nodes).forEach(e=>e.resetSort())}sortChildrenByLabel(e,t,n){let r=Object.values(this._nodes);r.some(t=>t.fieldId===e)&&(this.sortedList=r.map((e,t)=>({node:e,index:t})).sort((e,r)=>{let i=n[e.node.name],a=n[r.node.name];return i===a?e.index-r.index:i===void 0?1:a===void 0?-1:t===2?a-i:i-a}).map(({node:e})=>e.name),this.hasSort=!0),r.forEach(r=>r.sortChildrenByLabel(e,t,n))}getNode(e){return this._nodes[e]}};let ht={1:{errorType:1},2:{errorType:2},3:{errorType:3},4:{errorType:4},5:{errorType:5}},gt=ht[1],_t=ht[2];function q(e){return typeof e==`object`}var vt=class{constructor(e,t){this._summaryManager=e,this._queryData=t,A(this,`_fieldIndexById`,{}),A(this,`_itemIndexMaps`,[]),A(this,`_rowFieldIndexes`,[]),A(this,`_columnFieldIndexes`,[]),A(this,`_fieldCount`,void 0),A(this,`_coordinates`,[]),A(this,`_tupleByCoordinate`,/* @__PURE__ */ new Map),A(this,`_canonicalTupleIndexes`,/* @__PURE__ */ new Int32Array),A(this,`_rowTotalIndexes`,void 0),A(this,`_columnTotalIndexes`,void 0),A(this,`_grandTotalIndex`,-1),A(this,`_parentRowTotalIndexes`,void 0),A(this,`_parentColumnTotalIndexes`,void 0),A(this,`_parentFieldIndexes`,/* @__PURE__ */ new Map),A(this,`_parentFieldIndexByValueField`,{}),A(this,`_peerIndexesByValueField`,{}),A(this,`_peerUnionsByValueField`,{}),A(this,`_derivedValuesByValueField`,{});let n=[...t.rowQueryInfo,...t.colQueryInfo];this._fieldCount=n.length;for(let r=0;r<n.length;r++){let i=n[r];this._fieldIndexById[i.id]=r,this._itemIndexMaps[r]=e.dimensionMap[i.dataFieldId].field.getTupleItemsMap(),r<t.rowQueryInfo.length?this._rowFieldIndexes.push(r):this._columnFieldIndexes.push(r)}}prepare(){this._buildCoordinateIndex();let e=new Set(this._queryData.valueQueryInfo.map(e=>{var t;return(t=e.showDataAs)==null?void 0:t.type}));this._prepareTotalIndexes(e),this._prepareParentIndexes(e),this._preparePeerIndexes(),this._prepareDerivedBuffers();let t=new Int32Array(this._fieldCount);t.fill(-1),this._grandTotalIndex=this._tupleByCoordinate.get(this._getCoordinateKey(t))??-1}getValue(e,t){var n;let r=this._getRawValue(e,t),i=((n=t.showDataAs)==null?void 0:n.type)??1;if(this._isParentType(i))return this._getParentValue(i,r,e,t);if(this._isPeerType(i))return this._getPeerValue(i,r,e,t);if(this._isDerivedType(i)){let n=this._derivedValuesByValueField[t.id];return this._getDerivedValue(n,e)}switch(i){case 4:return this._divide(r,this._getRawValue(this._grandTotalIndex,t));case 3:return this._divide(r,this._getIndexedRawValue(this._rowTotalIndexes,e,t));case 2:return this._divide(r,this._getIndexedRawValue(this._columnTotalIndexes,e,t));case 8:return this._getIndexValue(r,e,t);default:return r}}dispose(){for(let e of Object.keys(this._peerUnionsByValueField))this._peerUnionsByValueField[e].clear(),delete this._peerUnionsByValueField[e];this._coordinates.length=0,this._tupleByCoordinate.clear(),this._canonicalTupleIndexes=/* @__PURE__ */ new Int32Array,this._rowTotalIndexes=void 0,this._columnTotalIndexes=void 0,this._parentRowTotalIndexes=void 0,this._parentColumnTotalIndexes=void 0,this._parentFieldIndexes.clear();for(let e of Object.keys(this._parentFieldIndexByValueField))delete this._parentFieldIndexByValueField[e];for(let e of Object.keys(this._peerIndexesByValueField))delete this._peerIndexesByValueField[e];for(let e of Object.keys(this._derivedValuesByValueField))delete this._derivedValuesByValueField[e];this._grandTotalIndex=-1}_prepareTotalIndexes(e){let t=e.has(3)||e.has(8),n=e.has(2)||e.has(8);t&&(this._rowTotalIndexes=this._buildTotalIndexes(this._columnFieldIndexes)),n&&(this._columnTotalIndexes=this._buildTotalIndexes(this._rowFieldIndexes))}_prepareParentIndexes(e){e.has(6)&&(this._parentRowTotalIndexes=this._buildParentIndexes(this._rowFieldIndexes)),e.has(5)&&(this._parentColumnTotalIndexes=this._buildParentIndexes(this._columnFieldIndexes));for(let e of this._queryData.valueQueryInfo){var t,n;if(((t=e.showDataAs)==null?void 0:t.type)!==14&&((n=e.showDataAs)==null?void 0:n.type)!==7)continue;let r=this._getFieldIndex(e.showDataAs.baseFieldId);if(r<0||(this._parentFieldIndexByValueField[e.id]=r,this._parentFieldIndexes.has(r)))continue;let i=r<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes;this._parentFieldIndexes.set(r,this._buildParentIndexes(i,r))}}_preparePeerIndexes(){let e=/* @__PURE__ */ new Map;for(let t of this._queryData.valueQueryInfo){let n=t.showDataAs;if(!n||!this._isPeerType(n.type))continue;let r=this._getFieldIndex(n.baseFieldId);if(r<0)continue;let i=n.baseItemType??1,a=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][r],o=this._summaryManager.dimensionMap[a.dataFieldId].field.getTupleKeysByLabel(n.baseItem);if(i===1&&o.length>1){let e=/* @__PURE__ */ new Map;for(let n=0;n<this._coordinates.length;n++){let i=this._coordinates[n];if(!i||i[r]<0)continue;let a=new j,s=0,c=!1;for(let e of o){let o=i.slice();o[r]=this._itemIndexMaps[r][e];let l=this._tupleByCoordinate.get(this._getCoordinateKey(o));l!==void 0&&(a.unionTupleInfo(this._summaryManager.tuples[l].tuple[t.dataFieldId].getInfo()),c||=l===this._getCanonicalTupleIndex(n),s++)}s&&e.set(n,{tuple:a,includesCurrent:c})}this._peerUnionsByValueField[t.id]=e;continue}let s=`${r}:${i}:${n.baseItem}`,c=e.get(s);c||(c=this._buildPeerIndexes(r,n.baseItem,i),e.set(s,c)),this._peerIndexesByValueField[t.id]=c}}_prepareDerivedBuffers(){for(let e of this._queryData.valueQueryInfo){let t=e.showDataAs;if(!t)continue;let n=this._getFieldIndex(t.baseFieldId);n<0||(t.type===11||t.type===12?this._derivedValuesByValueField[e.id]=this._buildRunningTotalBuffer(e,n,t.type===12):(t.type===15||t.type===16)&&(this._derivedValuesByValueField[e.id]=this._buildRankBuffer(e,n,t.type===15)))}}_buildCoordinateIndex(){let e=this._summaryManager.tuples.length;this._canonicalTupleIndexes=new Int32Array(e),this._canonicalTupleIndexes.fill(-1);for(let[e,t]of Object.entries(this._summaryManager.tupleMap)){let n=new Int32Array(this._fieldCount);n.fill(-1),this._readPathIntoCoordinate(e,n);let r=this._getCoordinateKey(n),i=this._tupleByCoordinate.get(r);this._coordinates[t]=n,i===void 0?(this._tupleByCoordinate.set(r,t),this._canonicalTupleIndexes[t]=t):this._canonicalTupleIndexes[t]=i}}_readPathIntoCoordinate(e,t){let r=e.split(n.TUPLE_PLACEHOLDER);for(let e of r){let r=e.split(n.TUPLE_FIELD_SEPARATOR);for(let e=0;e<r.length-1;e++){let n=this._fieldIndexById[r[e]];if(n===void 0)continue;let i=this._itemIndexMaps[n][r[e+1]];i!==void 0&&(t[n]=i),e++}}}_buildTotalIndexes(e){let t=new Int32Array(this._summaryManager.tuples.length);t.fill(-1);for(let n=0;n<this._coordinates.length;n++){let r=this._coordinates[n];if(!r)continue;let i=r.slice();for(let t of e)i[t]=-1;t[n]=this._tupleByCoordinate.get(this._getCoordinateKey(i))??-1}return t}_buildParentIndexes(e,t){let n=new Int32Array(this._summaryManager.tuples.length);n.fill(-1);let r=t===void 0?-1:e.indexOf(t);for(let i=0;i<this._coordinates.length;i++){let a=this._coordinates[i];if(!a)continue;if(t!==void 0){if(r<0||a[t]<0)continue;let o=a.slice();for(let t=r+1;t<e.length;t++)o[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(o))??-1;continue}let o=-1;if(t===void 0){for(let t=e.length-1;t>=0;t--)if(a[e[t]]>=0){o=t;break}}if(o<0){n[i]=this._canonicalTupleIndexes[i];continue}let s=a.slice();for(let t=o;t<e.length;t++)s[e[t]]=-1;n[i]=this._tupleByCoordinate.get(this._getCoordinateKey(s))??-1}return n}_getFieldIndex(e){let t=this._fieldIndexById[e];return t===void 0?[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo].findIndex(t=>t.dataFieldId===e):t}_isParentType(e){return e===6||e===5||e===7||e===14}_isPeerType(e){return e===9||e===10||e===13}_isDerivedType(e){return e===11||e===12||e===15||e===16}_getParentValue(e,t,n,r){if(e===6)return this._divideParent(t,this._getIndexedRawValue(this._parentRowTotalIndexes,n,r));if(e===5)return this._divideParent(t,this._getIndexedRawValue(this._parentColumnTotalIndexes,n,r));let i=this._parentFieldIndexByValueField[r.id];return this._divideParent(t,this._getIndexedRawValue(this._parentFieldIndexes.get(i),n,r))}_getPeerValue(e,t,n,r){var i;let a=(i=this._peerUnionsByValueField[r.id])==null?void 0:i.get(this._getCanonicalTupleIndex(n));if(a){let n=a.tuple.getSubtotal(r.subtotal);return e===13?this._divide(t,n):a.includesCurrent?void 0:e===9?this._difference(t,n):this._percentDifference(t,n)}let o=this._getIndexedTupleIndex(this._peerIndexesByValueField[r.id],n);if(e===13)return this._divide(t,this._getRawValue(o,r));if(o<0||o===this._getCanonicalTupleIndex(n))return;let s=this._getRawValue(o,r);return e===9?this._difference(t,s):this._percentDifference(t,s)}_buildPeerIndexes(e,t,n){let r=new Int32Array(this._summaryManager.tuples.length);r.fill(-1);let i=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,a=i.indexOf(e),o=n===1?void 0:this._buildItemOrders(e,i,a),s=[...this._queryData.rowQueryInfo,...this._queryData.colQueryInfo][e],c=this._summaryManager.dimensionMap[s.dataFieldId].field.getTupleKeysByLabel(t)[0],l=this._itemIndexMaps[e][c];for(let t=0;t<this._coordinates.length;t++){let s=this._coordinates[t];if(!s||s[e]<0)continue;let c=l;if(o){let t=this._getParentGroupKey(s,i,a),r=o.get(t),l=r==null?void 0:r.positions.get(s[e]);if(r&&l!==void 0){let e=n===2?-1:1;c=r.items[l+e]}else c=void 0}if(c===void 0)continue;let u=s.slice();u[e]=c,r[t]=this._tupleByCoordinate.get(this._getCoordinateKey(u))??-1}return r}_buildItemOrders(e,t,n){let r=/* @__PURE__ */ new Map,i=e<this._rowFieldIndexes.length?this._summaryManager.rowNodeTree:this._summaryManager.colNodeTree,a=i=>{if(i.getLevel()===n){let a=[],o=/* @__PURE__ */ new Map;i.iterate(t=>{let n=this._itemIndexMaps[e][t.name];n!==void 0&&(o.set(n,a.length),a.push(n))}),r.set(this._getParentNodeKey(i,t,n),{items:a,positions:o})}else i.iterate(a)};return a(i),r}_getParentNodeKey(e,t,n){let r=e.getPaths(),i=[];for(let e=0;e<n;e++)i.push(this._itemIndexMaps[t[e]][r[e]]);return i.join(`,`)}_getParentGroupKey(e,t,n){let r=[];for(let i=0;i<n;i++)r.push(e[t[i]]);return r.join(`,`)}_buildOrderedGroups(e){let t=e<this._rowFieldIndexes.length?this._rowFieldIndexes:this._columnFieldIndexes,n=t.indexOf(e),r=this._buildItemOrders(e,t,n),i=/* @__PURE__ */ new Map;for(let o of this._tupleByCoordinate.values()){var a;let s=this._coordinates[o];if(!s||s[e]<0)continue;let c=this._getParentGroupKey(s,t,n),l=(a=r.get(c))==null?void 0:a.positions.get(s[e]);if(l===void 0)continue;let u=this._getCoordinateKeyWithoutField(s,e),d=i.get(u);d||(d=[],i.set(u,d)),d[l]=o}return Array.from(i.values())}_getCoordinateKeyWithoutField(e,t){let n=[];for(let r=0;r<e.length;r++)r!==t&&n.push(e[r]);return n.join(`,`)}_buildRunningTotalBuffer(e,t,n){let r=this._createDerivedBuffer();for(let i of this._buildOrderedGroups(t)){let t=0;if(n)for(let n of i){let r=this._getRawValue(n,e);typeof r==`number`&&(t+=r)}let a=0;for(let o of i){let i=this._getRawValue(o,e);i!==void 0&&(q(i)?this._setDerivedError(r,o,i.errorType):(a+=i,n&&t===0?this._setDerivedError(r,o,1):this._setDerivedNumber(r,o,n?a/t:a)))}}return r}_buildRankBuffer(e,t,n){let r=this._createDerivedBuffer(),i=[];for(let a of this._buildOrderedGroups(t)){i.length=0;for(let t of a){let n=this._getRawValue(t,e);typeof n==`number`?i.push({tupleIndex:t,value:n}):q(n)&&this._setDerivedError(r,t,n.errorType)}i.sort((e,t)=>n?e.value-t.value:t.value-e.value);let t=0,o;for(let e=0;e<i.length;e++){let n=i[e];(o===void 0||n.value!==o)&&(t=e+1,o=n.value),this._setDerivedNumber(r,n.tupleIndex,t)}}return r}_createDerivedBuffer(){return{values:new Float64Array(this._summaryManager.tuples.length),states:new Uint8Array(this._summaryManager.tuples.length)}}_setDerivedNumber(e,t,n){e.values[t]=n,e.states[t]=1}_setDerivedError(e,t,n){e.states[t]=n+1}_getDerivedValue(e,t){if(!e)return;let n=this._canonicalTupleIndexes[t],r=n<0?t:n,i=e.states[r];if(i===1)return e.values[r];if(i>1){let e=i-1;return ht[e]}}_getCoordinateKey(e){return e.join(`,`)}_getRawValue(e,t){var n;if(e<0)return;let r=this._summaryManager.tuples[e];return r==null||(n=r.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}_getIndexedRawValue(e,t,n){return this._getRawValue(this._getIndexedTupleIndex(e,t),n)}_getIndexedTupleIndex(e,t){return(e==null?void 0:e[this._getCanonicalTupleIndex(t)])??-1}_getCanonicalTupleIndex(e){let t=this._canonicalTupleIndexes[e];return t<0?e:t}_divide(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:t===0?gt:e/t}}_difference(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:e-t}}_divideParent(e,t){if(e!==0||t!==0)return this._divide(e,t)}_percentDifference(e,t){if(e!==void 0){if(q(e))return e;if(t!==void 0)return q(t)?t:t===0?gt:(e-t)/t}}_getIndexValue(e,t,n){if(e===void 0||q(e))return e;let r=this._getIndexedRawValue(this._rowTotalIndexes,t,n),i=this._getIndexedRawValue(this._columnTotalIndexes,t,n),a=this._getRawValue(this._grandTotalIndex,n);return r===void 0||i===void 0||a===void 0?_t:q(r)?r:q(i)?i:q(a)?a:r===0||i===0?gt:e*a/(r*i)}};function yt(e,t,n,r){if(e.operator!==15&&e.operator!==44)return se(e);let i=t.map(({v:e})=>{var t;return(t=n[e])==null?void 0:t.tuple.getSubtotal(r)}).filter(e=>typeof e==`number`&&Number.isFinite(e)),a=e.operator===44?Math.ceil(i.length*Number(e.expected)/100):Math.ceil(Number(e.expected)),o=oe(i,Math.min(i.length,Math.max(0,a)),!!e.isBottom);return t=>o!==void 0&&(e.isBottom?t<=o:t>=o)}var bt=class{constructor(e,t,n){A(this,`counter`,void 0),A(this,`rowDimOrder`,void 0),A(this,`colDimOrder`,void 0),A(this,`rowTableIdList`,void 0),A(this,`colTableIdList`,void 0),A(this,`rowDeep`,void 0),A(this,`colDeep`,void 0),A(this,`measureCount`,void 0),A(this,`leafCount`,void 0),A(this,`measuresMap`,{}),A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`_rowLevelPool`,{}),A(this,`_colLevelPool`,{}),A(this,`rowNodeTree`,void 0),A(this,`colNodeTree`,void 0),A(this,`dimensionMap`,{}),A(this,`combinePathMap`,{}),A(this,`collapseInfo`,void 0),A(this,`dimensionSortInfo`,{}),A(this,`valueSortInfo`,{}),A(this,`valueFilterInfo`,[]),A(this,`subtotalMap`,{}),A(this,`_showDataAsResolver`,void 0),A(this,`_defaultSortLocale`,void 0),A(this,`_sortCompareCache`,/* @__PURE__ */ new Map),this.tuples=t.tuples.concat();let r=e.rowQueryInfo,i=e.colQueryInfo,{tuples:a,dimensionMap:o,dimensionTableIdList:s,tupleMap:c,dimensionIdList:l,measuresMap:u,measureIdList:d}=t,f=r.length,p=i.length;this.dimensionTableIdList=s,this.counter=a.length,this.leafCount=a.length,this.collapseInfo=e.collapseInfo,this.tupleMap={...c},this.measuresMap={...u},this.measureIdList=d,this.dimensionIdList=l,this.dimensionMap=o,this.valueFilterInfo=e.valueFilterInfo,this._defaultSortLocale=n;let m=e.valueQueryInfo;for(let e of m){let t=e.id,n=e.subtotal;n!==void 0&&(this.subtotalMap[t]={subTotal:n,dataFieldId:e.dataFieldId})}let h=[],g=[],_=/* @__PURE__ */ new Map;for(let[e,t]of s.entries())_.set(t,e);for(let e=0;e<f;e++){let t=r[e].id;h.push(_.get(t)),g.push(t)}let v=[],y=[];for(let e=0;e<p;e++){let t=i[e].id;v.push(_.get(t)),y.push(t)}this.rowDimOrder=h.concat(v),this.colDimOrder=v.concat(h),this.rowTableIdList=g.concat(y),this.colTableIdList=y.concat(g),this.rowDeep=f,this.colDeep=p,this.measureCount=this.measureIdList.length,this.createSummaryLabelSortedMap(e)}createSummaryLabelSortedMap(e){let{rowQueryInfo:t,colQueryInfo:r}=e;for(let e of[...t,...r]){let t=e.sortInfo,r=e.id;if(t){if(`baseFieldId`in t)this.valueSortInfo[r]=t;else if(Ne(t)){let n={},i=t.customOrder;for(let t=0;t<i.length;t++){let r=i[t];for(let i of this.dimensionMap[e.dataFieldId].field.getTupleKeysByLabel(r))n[i]=t}this.dimensionSortInfo[r]={type:t.type,sortMap:n}}else{let n=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field,t.sortLocale);this.dimensionSortInfo[r]={type:t.type,sortMap:n}}}else if(n.defaultSortType!=="default"){let t=n.defaultSortType,i=this.getSortedMap(r,this.dimensionMap[e.dataFieldId].field),a=t===`ascending`?1:2;this.dimensionSortInfo[r]={type:a,sortMap:i}}}}getCellValue(e,t){var n;return this._showDataAsResolver?this._showDataAsResolver.getValue(e,t):(n=this.tuples[e])==null||(n=n.summary)==null||(n=n[t.dataFieldId])==null?void 0:n[t.subtotal]}prepareShowDataAs(e){!this._showDataAsResolver&&e.valueQueryInfo.some(e=>{var t;return((t=e.showDataAs)==null?void 0:t.type)&&e.showDataAs.type!==1})&&(this._showDataAsResolver=new vt(this,e),this._showDataAsResolver.prepare())}clearShowDataAsCache(){var e;(e=this._showDataAsResolver)==null||e.dispose(),this._showDataAsResolver=void 0}getSortedMap(e,t,n){let r=this.dimensionSortInfo[e];if(r&&r.sortMap)return r.sortMap;let i=t.getTupleItemsMap(),a=t instanceof H?t.items:Object.keys(i),o=t instanceof H?t.itemTypes:[];if(!(t instanceof H))for(let e of a)o[i[e]]=t.getTupleType(e);if(!(t instanceof H)||t instanceof W){let e=e=>e===2?0:e===1?1:e===4?2:3,r=this._getSortCompare(n),s=a.slice().sort((n,a)=>{let s=o[i[n]],c=o[i[a]],l=e(s)-e(c);if(l)return l;let u=t instanceof W?t.getDisplayNameByKey(n):t.getTupleLabel(n),d=t instanceof W?t.getDisplayNameByKey(a):t.getTupleLabel(a);return s===2||s===4?Number(u)-Number(d)||i[n]-i[a]:r(u,d)||i[n]-i[a]});return Object.fromEntries(s.map((e,t)=>[e,t]))}let s=ke(a,o,i,this._getSortCompare(n));if(t instanceof Qe){let e=Object.keys(s).sort((e,t)=>s[e]-s[t]),t=[...e.includes(`__number_before__`)?[qe]:[],...e.filter(e=>e!==`__number_before__`&&e!==`__number_after__`),...e.includes(`__number_after__`)?[Je]:[]];return Object.fromEntries(t.map((e,t)=>[e,t]))}return s}doSummary(){let e=this._calculateValueFilter();this.buildNodeTree(e),this.calculateSubtotal(e),this._applyLabelSorts(),this._applyValueSorts()}resort(e,t){this.rowNodeTree.resetSort(),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.resetSort(),this.dimensionSortInfo={},this.valueSortInfo={},this._defaultSortLocale!==t&&(this._defaultSortLocale=t,this._sortCompareCache.clear()),this.createSummaryLabelSortedMap(e),this._applyLabelSorts(),this._applyValueSorts()}_applyLabelSorts(){for(let[e,{type:t,sortMap:n}]of Object.entries(this.dimensionSortInfo))this.rowNodeTree.sortChildrenByLabel(e,t,n),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByLabel(e,t,n)}_applyValueSorts(){for(let[e,t]of Object.entries(this.valueSortInfo)){if(t.sortItems.length>0)continue;let n=this.subtotalMap[t.baseFieldId];if(!n)continue;let r=e=>{var t;let r=(t=this.tuples[e])==null||(t=t.tuple[n.dataFieldId])==null?void 0:t.getSubtotal(n.subTotal);return typeof r==`number`?r:void 0},i=this._getSortCompare(t.sortLocale);this.rowNodeTree.sortChildrenByValue(e,t.type,r,i),this.colNodeTree!==this.rowNodeTree&&this.colNodeTree.sortChildrenByValue(e,t.type,r,i)}}_getSortCompare(e){let t=`${e??``}\u0000${this._defaultSortLocale??``}`,n=this._sortCompareCache.get(t);return n||(n=z(e,this._defaultSortLocale),this._sortCompareCache.set(t,n)),n}_getIndex(){return this.counter++}buildNodeTree(e){this.rowNodeTree=this._buildNodeTreeImp(this.rowDimOrder,this.rowTableIdList,this._rowLevelPool,n.ROW_ROOT_PATH,e),this.colNodeTree=this.rowDeep===0||this.colDeep===0?this.rowNodeTree:this._buildNodeTreeImp(this.colDimOrder,this.colTableIdList,this._colLevelPool,n.COl_ROOT_PATH,e)}_createValueFilterLevelPool(e){let t={},n=/* @__PURE__ */ new Map,r=this.leafCount,i=r+1,a=e.length;for(let o=0;o<this.leafCount;o++){let s=this.tuples[o],c=r;for(let r=0;r<a;r++){let l=r===a-1,u=s.path[e[r]],d=o,f=!0;if(!l){let e=n.get(c);e||(e=/* @__PURE__ */ new Map,n.set(c,e));let t=e.get(u);t===void 0?(d=i++,e.set(u,d)):(d=t,f=!1)}if(f){let e=r+1;t[e]=t[e]||[],t[e].push({p:c,v:d})}c=d}}return t}createTupleWithoutCheck(e,t,n){let r={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let t=new j;r.tuple[e]=t}this.tuples[t]=r,this.tupleMap[n]=t}_buildNodeTreeImp(e,t,n,r,i){let a=this._getIndex(),o=new mt(a,``,1);o.setParentIndex(-1),o.setLevel(0),o.setPaths([]),this.createTupleWithoutCheck(o.getPaths(),a,r);let s=this.collapseInfo,c=this.rowDeep+this.colDeep,l=this.dimensionTableIdList;for(let r=0;r<this.leafCount;r++){if(i[r]===0)continue;let a=this.tuples[r],u=o,d=0;for(let i of e){let e=a.path[i],o=a.types[i],f=l[i];if(!u.hasNode(e)){let a=d===c-1,l=a?r:this._getIndex(),p=new mt(l,f,o),m=this.dimensionMap[this.dimensionIdList[i]].field;p.setCollapse(be(s,f,m.getTupleLabel(e)));let{sortMap:h,type:g}=this.dimensionSortInfo[f]??{},_=m instanceof W?m.getDisplayNameByKey(e):m.getTupleLabel(e);u.addNode(p,e,h,g,_);let v=p.getLevel();a?p.setLeaf():this.ensureTupleItem(l,p.getPaths(),t),n[v]=n[v]||[],n[v].push({p:u.getIndex(),v:l})}u=u.getNode(e),d++}}return o}combinePathMapList(e,t){if(this.combinePathMap[t])return this.combinePathMap[t];let r={};this.combinePathMap[t]=r;let i={};for(let a of e)for(let e in a){let o=[t,e].join(n.TUPLE_FIELD_SEPARATOR);if(r[e]===void 0){let t=this._getIndex();this.ensureTupleItemByString(t,o),r[e]=t}i[o]===void 0&&(i[o]=[]),i[o].push(a[e])}for(let e in i){let t=i[e],n=this.tuples[this.tupleMap[e]];this.calculateListSubtotal(n,t)}return r}calculateListSubtotal(e,t){e.summary||={};let n=e.summary;for(let r in this.measuresMap){let i=this.measuresMap[r].subTotal,a=e.tuple[r],o=t.map(e=>this.tuples[e].tuple[r]);a.unionTuples(o);let s=a.getInfo();for(let e of i)s[e]=a.getSubtotal(e);n[r]=s}}calculateSubtotal(e){this._calculateSubtotalImp(this._rowLevelPool,e),this._calculateSubtotalImp(this._colLevelPool,e);let t=this.tuples[this.rowNodeTree.getIndex()],n=this.tuples[this.colNodeTree.getIndex()];this.rowDeep+this.colDeep===0&&this.tuples.length>0&&R(this.tuples[0],t,this.measuresMap),R(t,void 0,this.measuresMap),R(n,void 0,this.measuresMap)}getPathKeyWithFiledId(e,t){let r=[];for(let i=0;i<e.length;i++)r.push(`${t[i]}${n.TUPLE_FIELD_SEPARATOR}${e[i]}`);return r.join(n.TUPLE_PLACEHOLDER)}ensureTupleItem(e,t,n){if(!this.tuples[e]){let r=this.getPathKeyWithFiledId(t,n);this.createTupleWithoutCheck(t,e,r)}}ensureTupleItemByString(e,t){this.tuples[e]||this.createTuple([],t,e)}createTuple(e,t,r){let i=t||e.join(n.TUPLE_PLACEHOLDER);if(!this.tupleMap[i]){let t={path:e,indexes:[],tuple:{},types:[]};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(r===void 0){let e=this.tuples.push(t);this.tupleMap[i]=e-1}else this.tuples[r]=t,this.tupleMap[i]=r}}_calculateValueFilter(){let e=this.valueFilterInfo,t=new Uint8Array(this.leafCount);if(t.fill(1),e.length===0)return t;let n=this._createValueFilterLevelPool(this.rowDimOrder),r=this.rowDeep===0||this.colDeep===0?n:this._createValueFilterLevelPool(this.colDimOrder);for(let{fieldId:i,filterInfo:a}of e)this._doValueFilter(i,a.valueFieldId,a,t,n,r);return t}_doValueFilter(e,t,n,r,i,a){let o=this._getValueFilterTree(e,i,a);if(o){let{pool:i,fieldIdList:a}=o,s=a.indexOf(e);if(s===-1)return;let c=this.rowDeep+this.colDeep,l=[],u=this.subtotalMap[t].subTotal,d=this.subtotalMap[t].dataFieldId;for(let e=c;e>s;e--)if(i[e]){let t=i[e];for(let{p:n,v:i}of t)(c!==e||r[i]!==0)&&je(l,e===c?this.tuples[i]:void 0,d,u,i,n)}let f=i[s+1]??[],p=yt(n,f,l,u),m=/* @__PURE__ */ new Set;for(let{v:e}of f){if(l[e]===void 0)continue;let t=l[e].tuple.getSubtotal(u);Me(t)?m.add(e):p(t)||m.add(e)}let h=s+1;if(h===c){for(let e of m)r[e]=0;return}for(;i[h+1];){let e=/* @__PURE__ */ new Set,t=i[h+1];for(let{p:n,v:i}of t)m.has(n)&&(e.add(i),h+1===c&&(r[i]=0));h++,m=e}}}_getValueFilterTree(e,t,n){if(this.rowDeep===0||this.colDeep===0)return{pool:t,fieldIdList:this.rowTableIdList};let r=this.rowTableIdList.findIndex(t=>t===e);if(r>=0&&r<this.rowDeep)return{pool:t,fieldIdList:this.rowTableIdList};let i=this.colTableIdList.findIndex(t=>t===e);return i>=0&&i<this.colDeep?{pool:n,fieldIdList:this.colTableIdList}:null}_calculateSubtotalImp(e,t){let n=this.rowDeep+this.colDeep;for(let r=n;r>=0;r--)if(e[r]){let n=e[r];for(let{p:e,v:r}of n){if(r<this.leafCount&&t[r]===0)continue;let n=this.tuples[r];R(n,this.tuples[e],this.measuresMap)}}}},xt=class{constructor(){A(this,`tuples`,[]),A(this,`tupleMap`,{}),A(this,`measuresMap`,{}),A(this,`dimensionIdList`,[]),A(this,`dimensionTableIdList`,[]),A(this,`measureIdList`,[]),A(this,`dimensionMap`,{}),A(this,`rowDeep`,0),A(this,`colDeep`,0),A(this,`_fieldsCollection`,void 0)}prepare(e,t){this._fieldsCollection=e;let{valueQueryInfo:n,rowQueryInfo:r,colQueryInfo:i,filterQueryInfo:a,hiddenQueryInfo:o=[]}=t;for(let t of n){let n=t.dataFieldId,r=e.getFieldById(n);if(!r)continue;this.measuresMap[n]||(this.measureIdList.push(n),this.measuresMap[n]={field:r,subTotal:[]});let i=this.measuresMap[n],{subtotal:a}=t;i.subTotal.includes(a)||i.subTotal.push(a)}let s=r.length+i.length,c=0;for(let t of[...r,...i,...a,...o]){let n=e.getFieldById(t.dataFieldId);n&&(this.dimensionMap[t.dataFieldId]||(this.dimensionMap[t.dataFieldId]={field:n}),c<s?(this.dimensionIdList.push(t.dataFieldId),this.dimensionTableIdList.push(t.id)):c<s+a.length&&t.filterInfo&&I(t.filterInfo)&&(t.filterInfo.isAll=n.items.length===t.filterInfo.list.length),c++)}this.rowDeep=r.length,this.colDeep=i.length}filter(e){let{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i=[]}=e,a=[],o=!1,s=[...t,...n,...r,...i].flatMap(e=>e.conditionFilter?[e,{...e,filterInfo:e.conditionFilter,conditionFilter:void 0}]:[e]);for(let{dataFieldId:e,filterInfo:t}of s){var c;if(t===void 0)continue;let n=(c=this.dimensionMap[e])==null?void 0:c.field;if(!n)throw TypeError(`Missing constrained pivot field: ${e}`);if(T(t)){if(!E(t))continue;let e=this._fieldsCollection.host.compileRecordFilter(t);o=!0;let r=[];for(let t=0;t<n.records.length;t++)e(n.records[t])&&r.push(t);a.push(r)}else if(I(t)){o=!0;let{list:e}=t,r=[];for(let t of e)r.push(n.getIndexesByKey(t));a.push(Oe(r))}else if(xe(t)){if(o=!0,x(t)){let e=S(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t];C(i)&&e(i.v)&&r.push(t)}a.push(r);continue}let{operator:e,expected:r}=t;if(e>=1&&e<=14){let e=ie(t),r=[];for(let t=0;t<n.records.length;t++){let i=n.records[t],a=String(i??``);C(i)?a=String(i.v):w(i)&&(a=i.error),e(a)&&r.push(t)}a.push(r);continue}if(n.getFieldDataType()===2){let t=Ae(n.getAllIndexMap(),e,r);a.push(Oe(t))}}}return!o&&a.length===0?{isAll:!0,list:[]}:{isAll:!1,list:Ce(a)}}query(e,t){this.prepare(e,t);let{isAll:n,list:r}=this.filter(t);this.iterate(n,r,e.getDataRecordCount())}reset(){this.tuples=[],this.measuresMap={},this.dimensionMap={},this.tupleMap={},this.dimensionIdList=[],this.dimensionTableIdList=[],this.measureIdList=[]}iterate(e,t,r=0){let i=this.dimensionTableIdList;if(e)for(let e=0;e<r;e++){let t=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+n.TUPLE_FIELD_SEPARATOR+l),t.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,a,e,r)}for(let e of t){let t=[],r=[],a=[],o=0;for(let s of this.dimensionIdList){let c=this.dimensionMap[s].field,l=c.getTupleKey(e);a.push(i[o]+n.TUPLE_FIELD_SEPARATOR+l),t.push(l),r.push(c.getTupleType(l)),o++}this.createOrUpdateTuple(t,a,e,r)}}createOrUpdateTuple(e,t,r,i){let a=t.join(n.TUPLE_PLACEHOLDER);this.tupleMap[a]===void 0&&this.createTuple(e,a,void 0,i);let o=this.tuples[this.tupleMap[a]];o.indexes.push(r);for(let e of this.measureIdList){let t=o.tuple[e],n=this.measuresMap[e].field.getValue(r);t.addValue(n)}}createTuple(e,t,r,i=[]){let a=t||e.join(n.TUPLE_PLACEHOLDER);if(!this.tupleMap[a]){let t={path:e,types:i,indexes:[],tuple:{}};for(let e of this.measureIdList){let n=new j;t.tuple[e]=n}if(r===void 0){let e=this.tuples.push(t);this.tupleMap[a]=e-1}else this.tuples[r]=t,this.tupleMap[a]=r}}};let St=e=>e.baseFieldId!==void 0,J=e=>{if(St(e)){let{type:t,baseFieldId:n,sortItems:r,sortLocale:i}=e;return{type:t,baseFieldId:n,sortItems:r.concat(),...i===void 0?{}:{sortLocale:i}}}return`customOrder`in e?{...e,customOrder:e.customOrder.concat()}:{...e}},Y=e=>({...e}),Ct=()=>({type:1,baseFieldId:``,baseItem:``});var wt=class{constructor(e,t,n=``,r){A(this,`dataFieldId`,void 0),A(this,`id`,void 0),A(this,`sourceName`,void 0),A(this,`displayName`,void 0),A(this,`format`,void 0),A(this,`lossLessProperty`,void 0),this.dataFieldId=e,this.id=t,this.displayName=n,this.sourceName=r}getId(){return this.id}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}setDataFieldId(e){this.dataFieldId=e}getDataFieldId(){return this.dataFieldId}getFormat(){return this.format}setFormat(e){this.format=e}setDisplayName(e){this.displayName=e}getDisplayName(){return this.displayName}},X=class extends wt{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`subtotal`,void 0),A(this,`showDataAs`,Ct())}setSubtotal(e){this.subtotal=e}getSubtotal(){return this.subtotal}setShowDataAs(e){this.showDataAs=Y(e)}getShowDataAs(){return Y(this.showDataAs)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,subtotal:this.subtotal,showDataAs:Y(this.showDataAs)}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sourceName:this.sourceName,subtotal:this.subtotal,format:this.format,showDataAs:Y(this.showDataAs)}}fromJSON(e){this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,this.subtotal=e.subtotal;let t=e.showDataAs;this.showDataAs=(t==null?void 0:t.type)===void 0?Ct():Y(t)}},Z=class extends wt{constructor(e,t,n=``,r){super(e,t,n,r),A(this,`sortInfo`,void 0),A(this,`filterInfo`,void 0),A(this,`conditionFilter`,void 0)}setSortInfo(e){this.sortInfo=e?J(e):void 0}getSortInfo(){return this.sortInfo?J(this.sortInfo):void 0}setFilterInfo(e){this.filterInfo=T(e)||x(e)?D(e):e}getFilterInfo(){return T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo}getConditionFilterInfo(){var e;return D(this.conditionFilter??(((e=this.filterInfo)==null?void 0:e.type)===1?this.filterInfo:void 0))}setConditionFilterInfo(e){if(e!==void 0&&e.type!==1&&(!T(e)||!e.dateRange||e.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);this.conditionFilter=D(e)}getQueryData(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,sortInfo:this.getSortInfo(),filterInfo:this.filterInfo&&(T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):Object.assign({},this.filterInfo)),...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}toJSON(){return{id:this.id,dataFieldId:this.dataFieldId,displayName:this.displayName,format:this.format,sourceName:this.sourceName,sortInfo:this.sortInfo?J(this.sortInfo):void 0,filterInfo:T(this.filterInfo)||x(this.filterInfo)?D(this.filterInfo):this.filterInfo||void 0,...this.conditionFilter?{conditionFilter:this.getConditionFilterInfo()}:{}}}fromJSON(e){var t;if(e.conditionFilter&&(((t=e.filterInfo)==null?void 0:t.type)===1||T(e.filterInfo)&&e.filterInfo.dateRange!==void 0))throw TypeError(`A pivot field cannot contain two date/label conditions.`);this.id=e.id,this.dataFieldId=e.dataFieldId,this.displayName=e.displayName,this.sourceName=e.sourceName,this.format=e.format,e.sortInfo&&this.setSortInfo(e.sortInfo),e.filterInfo&&(this.filterInfo=T(e.filterInfo)||x(e.filterInfo)?D(e.filterInfo):e.filterInfo),this.setConditionFilterInfo(e.conditionFilter)}};function Tt(e,t=!0){let n=new X(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(F(e.getDisplayName(),9),n.subtotal=9,e.lossLessProperty){let t=e.lossLessProperty;t.showDataAs&&(n.showDataAs=t.showDataAs),t.subtotal!==void 0&&(n.subtotal=t.subtotal)}return t&&(n.lossLessProperty={sortInfo:e.getSortInfo(),filterInfo:e.getFilterInfo(),...e.conditionFilter?{conditionFilter:e.getConditionFilterInfo()}:{}}),n}function Et(e,t=!0){let n=new Z(e.dataFieldId,e.id,e.getDisplayName(),e.sourceName);if(n.setDisplayName(e.getDisplayName()),e.lossLessProperty){let t=e.lossLessProperty;t.sortInfo&&(n.sortInfo=t.sortInfo),t.filterInfo&&(n.filterInfo=T(t.filterInfo)?D(t.filterInfo):t.filterInfo),n.setConditionFilterInfo(t.conditionFilter)}return t&&(n.lossLessProperty={subtotal:e.getSubtotal(),showDataAs:e.getShowDataAs()}),n}function Dt(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new X(t,n,``,r);return i.fromJSON(e),i}function Ot(e){let{dataFieldId:t,id:n,sourceName:r}=e,i=new Z(t,n,``,r);return i.fromJSON(e),i}var kt=class e{constructor(){A(this,`rowFields`,[]),A(this,`columnFields`,[]),A(this,`valueFields`,[]),A(this,`filterFields`,[]),A(this,`hiddenFields`,[]),A(this,`dimension`,Object.create(null)),A(this,`measure`,Object.create(null)),A(this,`valueIndex`,-1),A(this,`valuePosition`,-1),A(this,`layout`,3),A(this,`collapseInfo`,Object.create(null)),A(this,`options`,void 0),A(this,`_changeStack`,void 0),A(this,`_isDirty`,!0),A(this,`_valueFilterInfo`,[]),this.options={pageWrap:1,pageOverThenDown:!1}}startChangeStack(){this._changeStack=[]}endChangeStack(){let e=this._changeStack;return delete this._changeStack,e}setDirty(e){this._isDirty=e}getDirty(){return this._isDirty}setOptions(e,t=!1){if(e.allowMultipleFilters!==void 0&&typeof e.allowMultipleFilters!=`boolean`)throw TypeError(`Invalid multiple-filter mode.`);if(e.dateGroupingMode!==void 0&&e.dateGroupingMode!==`legacy`&&e.dateGroupingMode!==`excel-like`)throw TypeError(`Invalid pivot date grouping mode.`);!t&&e.allowMultipleFilters===!1&&le(this.toJSON())&&this.clearFilters();let n={...this.options},r=t?{...e}:{...this.options,...e},i=Object.keys(r);if(!(i.length===Object.keys(n).length&&i.every(e=>n[e]===r[e]))&&(this.options={...r},this._changeStack)){let e={type:8,oldOptions:n,newOptions:r};this._changeStack.push(e)}}getOptions(){return{...this.options}}setLayout(e){let t=this.layout;if(t!==e&&(this.layout=e,this._changeStack)){let n={type:13,oldLayout:t,newLayout:e};this._changeStack.push(n)}}getLayout(){return this.layout}setCollapse(e,t,n,r){let i=this.collapseInfo[e];if(n!==void 0){let a=i===!0?Object.fromEntries((r??[]).map(e=>[e,!0])):i,o=Object.assign(Object.create(null),typeof a==`object`?a:void 0);o[n]=t===!0,this.collapseInfo[e]=o}else t===void 0?delete this.collapseInfo[e]:this.collapseInfo[e]=typeof t==`object`?Object.assign(Object.create(null),t):t;if(this._changeStack){let t=this.collapseInfo[e],n={type:10,fieldId:e,collapse:typeof t==`object`?{...t}:t,previous:{collapse:typeof i==`object`?{...i}:i}};this._changeStack.push(n)}}setLabelFilterInfo(e,t,n){let r=this.dimension[e];if(!r)return;if(t===void 0){if(n!==void 0){this._clearSourceFilterCategory(r.dataFieldId,void 0,n);return}this.setFieldFilterState(e,void 0);return}let i=T(t)||x(t)?D(t):t,a=r.getFilterInfo(),o=n??(t.type===1||T(t)&&t.dateRange!==void 0?`condition`:`member`);if((T(t)?E({type:4,...o===`member`?{selection:t.selection}:{dateRange:t.dateRange}}):E(t))&&this.options.allowMultipleFilters!==!0){this._clearSourceFilters(r.dataFieldId,e),T(i)&&(i={type:4,...o===`member`?{selection:i.selection}:{dateRange:i.dateRange}}),this.setFieldFilterState(e,i);return}this._clearSourceFilterCategory(r.dataFieldId,e,o);let s=r.getConditionFilterInfo();if(T(i)){if(o===`condition`){if(s=void 0,(a==null?void 0:a.type)===3&&i.selection===void 0&&i.dateRange){this.setFieldFilterState(e,a,{type:4,dateRange:i.dateRange});return}T(a)&&i.selection===void 0&&(i={...i,...a.selection?{selection:a.selection}:{}})}else T(a)&&a.dateRange&&(i={...i,dateRange:a.dateRange})}else i.type===3&&T(a)&&a.dateRange&&(s={type:4,dateRange:a.dateRange});if(i.type===1&&a&&a.type!==1){let t=D(a);T(t)&&delete t.dateRange,this.setFieldFilterState(e,t,i)}else this.setFieldFilterState(e,i,i.type===1?void 0:s)}setFieldFilterState(e,t,n){if(this.dimension[e]){if(n&&((t==null?void 0:t.type)===1||T(t)&&t.dateRange!==void 0))throw TypeError(`Ambiguous pivot condition state.`);let r=D(n);if(r&&r.type!==1&&(!T(r)||!r.dateRange||r.selection!==void 0))throw TypeError(`Invalid pivot condition filter.`);let i=this.dimension[e].conditionFilter,a=this.dimension[e].getFilterInfo(),o=a===void 0||T(a)||x(a)?a:{...a};if(this.dimension[e].setFilterInfo(t),this.dimension[e].setConditionFilterInfo(r),this._changeStack){let r={type:4,fieldId:e,oldFilterInfo:o,newFilterInfo:T(t)||x(t)?D(t):t,...i||n?{oldConditionFilter:D(i)??null,newConditionFilter:D(n)??null}:{}};this._changeStack.push(r)}this.setDirty(!0)}}setValueFilterInfo(e,t,n){this._setValueFilterState(e,t,n,!0)}setValueFilterState(e,t,n){this._setValueFilterState(e,t,n,!1)}_setValueFilterState(e,t,n,r){let i=this._valueFilterInfo.findIndex(t=>t.fieldId===e);if(t===void 0&&i===-1)return;let{area:a}=this.getFieldPositionInfoById(e);if(t!==void 0&&(a===void 0||!P(a)||!this.measure[t.valueFieldId]||t.type!==2||!ae(t.operator))){console.error(`The value filter info is invalid.`);return}if(r&&t&&this.options.allowMultipleFilters!==!0){let t=this.dimension[e];this._clearSourceFilters(t.dataFieldId,e,!0),(t.filterInfo||t.conditionFilter)&&this.setFieldFilterState(e,void 0),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e)}else r&&t&&(this._clearSourceFilterCategory(this.dimension[e].dataFieldId,e,`value`),i=this._valueFilterInfo.findIndex(t=>t.fieldId===e));let o=i===-1?void 0:this._valueFilterInfo[i].filterInfo;i!==-1&&this._valueFilterInfo.splice(i,1);let s=-1;if(t&&(s=!r&&n!==void 0&&n>=0?Math.min(n,this._valueFilterInfo.length):i===-1?Math.min(Math.max(n??this._valueFilterInfo.length,0),this._valueFilterInfo.length):i,this._valueFilterInfo.splice(s,0,{fieldId:e,filterInfo:Q(t)})),this._changeStack){let n={type:12,fieldId:e,oldFilterInfo:Q(o),filterInfo:Q(t),oldIndex:i,newIndex:s};this._changeStack.push(n)}}getValueFilterInfo(e){let t=this._valueFilterInfo.find(t=>t.fieldId===e);return Q(t==null?void 0:t.filterInfo)}getConditionFilterInfo(e){var t;return(t=this.dimension[e])==null?void 0:t.getConditionFilterInfo()}clearFieldFilters(e){let t=this.dimension[e];t&&(this._clearSourceFilters(t.dataFieldId,e),this.setFieldFilterState(e,void 0))}clearFilters(){for(let e of Object.values(this.dimension))(e.filterInfo||e.conditionFilter)&&this.setFieldFilterState(e.id,void 0);for(let e of this._valueFilterInfo.slice())this.setValueFilterInfo(e.fieldId,void 0)}_clearSourceFilters(e,t,n=!1){for(let r of Object.values(this.dimension))r.dataFieldId===e&&(r.id!==t&&(r.filterInfo||r.conditionFilter)&&this.setFieldFilterState(r.id,void 0),n&&r.id===t||this.setValueFilterInfo(r.id,void 0))}_clearSourceFilterCategory(e,t,n){for(let r of Object.values(this.dimension)){if(r.id===t||r.dataFieldId!==e)continue;if(n===`value`){this.setValueFilterState(r.id,void 0);continue}if(!ce(r.toJSON()).has(n))continue;let i=r.getFilterInfo(),a=r.conditionFilter;T(i)?(i=D(i),n===`member`?delete i.selection:delete i.dateRange,!i.selection&&!i.dateRange&&(i=void 0)):i&&i.type===1==(n===`condition`)&&(i=void 0),n===`condition`&&(a=void 0),(i!==r.filterInfo||a!==r.conditionFilter)&&this.setFieldFilterState(r.id,i,a)}}getValueFilterInfos(){return this._valueFilterInfo.map($)}removeValueFilterInfo(e){this._valueFilterInfo.find(t=>t.fieldId===e)&&this.setValueFilterInfo(e,void 0)}removeValueFilterInfoByValueFieldId(e){let t=this._valueFilterInfo.filter(t=>t.filterInfo.valueFieldId===e);if(t&&t.length>0){let e=t.length;for(let n=e-1;n>=0;n--)this.setValueFilterInfo(t[n].fieldId,void 0)}}getFieldFormat(e){if(this.dimension[e])return this.dimension[e].getFormat();if(this.measure[e])return this.measure[e].getFormat()}setFieldFormat(e,t){let n;if(this.dimension[e]&&this.dimension[e].setFormat(t),this.measure[e]&&this.measure[e].setFormat(t),this._changeStack&&(this.dimension[e]||this.measure[e])){let r={type:9,fieldId:e,oldFormat:n,newFormat:t};this._changeStack.push(r)}}setSortInfo(e,t){if(this.dimension[e]){let n=this.dimension[e],r=n.getSortInfo();if(n.setSortInfo(t),this._changeStack){let t={type:5,fieldId:e,newSortInfo:n.getSortInfo(),oldSortInfo:r};this._changeStack.push(t)}}}getSortInfo(e){if(this.dimension[e])return this.dimension[e].getSortInfo()}getFilterInfo(e){if(this.dimension[e])return this.dimension[e].getFilterInfo()}iterateField(e){Object.values(this.dimension).forEach(t=>{e(t)}),Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldDim(e){Object.values(this.dimension).forEach(t=>{e(t)})}iterateFieldMeasure(e){Object.values(this.measure).forEach(t=>{e(t)})}iterateFieldByArea(e,t){this.getFieldsAreaByType(e).forEach(e=>{let n=this.getFieldById(e);n&&t(n)})}addField(e,t,n){if(this.getFieldById(e.getId())){console.error(`The field ${e.getId()} - ${e.getDisplayName()} is already in the pivot table.`);return}N(t)?this.dimension[e.id]=e:this.measure[e.id]=e;let r;switch(t){case 1:r=this.columnFields;break;case 2:r=this.rowFields;break;case 3:r=this.valueFields;break;case 4:r=this.filterFields;break;case 5:r=this.hiddenFields}n===void 0?r.push(e.id):r.splice(n,0,e.id);let i=n===void 0?r.length-1:n;if(this._changeStack){let n={type:0,fieldJson:e.toJSON(),area:t,index:i};this._changeStack.push(n)}this.setDirty(!0)}getFieldPositionInfoById(e){let t,n=-1;return this.columnFields.indexOf(e)===-1?this.rowFields.indexOf(e)===-1?this.valueFields.indexOf(e)===-1?this.filterFields.indexOf(e)===-1?this.hiddenFields.indexOf(e)!==-1&&(t=5,n=this.hiddenFields.indexOf(e)):(t=4,n=this.filterFields.indexOf(e)):(t=3,n=this.valueFields.indexOf(e)):(t=2,n=this.rowFields.indexOf(e)):(t=1,n=this.columnFields.indexOf(e)),{area:t,index:n}}updateFieldSourceInfo(e,t,n){let r=this.getFieldById(e);if(r){let i=r.getSourceName(),a=r.getDataFieldId();if(r.setSourceName(t),r.setDataFieldId(n),this._changeStack){let r={type:11,tableFieldId:e,oldSourceName:i,newSourceName:t,oldDataFieldId:a,newDataFieldId:n};this._changeStack.push(r)}this.setDirty(!0)}}getFieldsAreaByType(e){switch(e){case 1:return this.columnFields;case 2:return this.rowFields;case 3:return this.valueFields;case 4:return this.filterFields;case 5:return this.hiddenFields}}getFieldById(e){if(this.dimension[e])return this.dimension[e];if(this.measure[e])return this.measure[e]}isExistFieldName(e){for(let t of Object.values(this.dimension))if(t.getDisplayName()===e)return!0;for(let t of Object.values(this.measure))if(t.getDisplayName()===e)return!0;return!1}renameField(e,t){let{area:n,index:r}=this.getFieldPositionInfoById(e);if(n===void 0||r===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let i=this.getFieldById(e);if(!i){console.warn(`The field ${e} is not in the pivot table.`);return}let a=i.getDisplayName();if(a!==t){if(this.isExistFieldName(t))console.warn(`The displayName ${t} is exist in the pivot table.`);else if(i.setDisplayName(t),this._changeStack){let n={type:3,fieldId:e,newName:t,oldName:a};this._changeStack.push(n)}}}removeField(e){let{area:t,index:n}=this.getFieldPositionInfoById(e);if(t===void 0||n===-1){console.warn(`The field ${e} is not in the pivot table.`);return}t===3?this.removeValueFilterInfoByValueFieldId(e):P(t)&&this.removeValueFilterInfo(e),this.getFieldsAreaByType(t).splice(n,1);let r;if(N(t)?(r=this.dimension[e].toJSON(),delete this.dimension[e]):(r=this.measure[e].toJSON(),delete this.measure[e]),this._changeStack){let i={type:2,fieldId:e,fieldJson:r,area:t,index:n};this._changeStack.push(i)}this.setDirty(!0)}updateFieldPosition(e,t,n){let{area:r,index:i}=this.getFieldPositionInfoById(e);if(r===t&&i===n)return;if(r===void 0&&i===-1){console.warn(`The field ${e} is not in the pivot table.`);return}let a=this.getFieldsAreaByType(t);this.getFieldsAreaByType(r).splice(i,1),a.splice(n,0,e);let o=N(r);if(o!==N(t)){if(o){let t=this.dimension[e];delete this.dimension[e];let n=Tt(t);this.measure[e]=n}else{let t=this.measure[e];delete this.measure[e];let n=Et(t);this.dimension[e]=n}}if(this._changeStack){let a={type:6,fieldId:e,oldArea:r,newArea:t,oldIndex:i,newIndex:n};this._changeStack.push(a)}P(r)&&P(t)||r===3&&t===3||r===5&&t===5||r===4&&t===4||this.setDirty(!0)}updateValuePosition(e,t){let n=this.valuePosition,r=this.valueIndex;if(this.valuePosition=e,this.valueIndex=t,this._changeStack){let i={type:7,oldValuePosition:n,newValuePosition:e,oldIndex:r,newIndex:t};this._changeStack.push(i)}}getValueIndex(){return this.valueIndex}getValuePosition(){return this.valuePosition}isColMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===1}isRowMultiMeasure(){return this.valueFields.length<=1?!1:this.valuePosition===2}isEmpty(){return[].concat(this.rowFields,this.columnFields,this.valueFields,this.filterFields).length===0}setSubtotalType(e,t){if(this.measure[e]){let n=this.measure[e].getSubtotal();if(this.measure[e].setSubtotal(t),this._changeStack){let r={type:1,fieldId:e,newSubtotalType:t,oldSubtotalType:n};this._changeStack.push(r)}this.setDirty(!0)}}getShowDataAs(e){var t;return(t=this.measure[e])==null?void 0:t.getShowDataAs()}setShowDataAs(e,t){let n=this.measure[e];if(!n)return;let r=n.getShowDataAs();if(n.setShowDataAs(t),this._changeStack){let t={type:14,fieldId:e,oldShowDataAs:r,newShowDataAs:n.getShowDataAs()};this._changeStack.push(t)}}getQueryData(){let e=this.dimension,t=[];for(let n of this.rowFields)e[n]&&t.push(e[n].getQueryData());let n=[];for(let t of this.columnFields)e[t]&&n.push(e[t].getQueryData());let r=[];for(let t of this.filterFields)e[t]&&r.push(e[t].getQueryData());let i=[];for(let t of this.hiddenFields)e[t]&&i.push(e[t].getQueryData());let a=[];for(let e of this.valueFields)this.measure[e]&&a.push(this.measure[e].getQueryData());let o=[];for(let t of this._valueFilterInfo){let{fieldId:n,filterInfo:r}=t;e[n]&&this.measure[r.valueFieldId]&&o.push($(t))}return{rowQueryInfo:t,colQueryInfo:n,filterQueryInfo:r,hiddenQueryInfo:i,valueQueryInfo:a,collapseInfo:{...this.collapseInfo},valueFilterInfo:o}}reset(e){e===void 0?(this.rowFields=[],this.columnFields=[],this.valueFields=[],this.filterFields=[],this.hiddenFields=[],this.dimension=Object.create(null),this.measure=Object.create(null),this.valueIndex=-1,this.valuePosition=-1,this.collapseInfo=Object.create(null),this.options={}):e===1?(this.columnFields.forEach(e=>{delete this.dimension[e]}),this.columnFields=[]):e===2?(this.rowFields.forEach(e=>{delete this.dimension[e]}),this.rowFields=[]):e===4?(this.filterFields.forEach(e=>{delete this.dimension[e]}),this.filterFields=[]):e===3&&(this.valueFields.forEach(e=>{delete this.measure[e]}),this.valueIndex=-1,this.valuePosition=-1,this.valueFields=[])}fromJSON(e){this.dimension=Object.keys(e.dimension).reduce((t,n)=>{let r=e.dimension[n],i=new Z(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(r),t[n]=i,t},Object.create(null)),this.measure=Object.keys(e.measure).reduce((t,n)=>{let r=e.measure[n],i=new X(r.dataFieldId,r.id,r.displayName,r.sourceName);return i.fromJSON(e.measure[n]),t[n]=i,t},Object.create(null)),this.filterFields=e.filterFields.concat(),this.hiddenFields=e.hiddenFields.concat(),this.rowFields=e.rowFields.concat(),this.valueFields=e.valueFields.concat(),this.columnFields=e.columnFields.concat(),this.layout=e.layout??3,this.valueIndex=e.valueIndex,this.valuePosition=e.valuePosition,this.collapseInfo=Object.assign(Object.create(null),e.collapseInfo),this.options={...e.options},this._valueFilterInfo=e.valueFilter?e.valueFilter.map($):[]}toJSON(){let e=Object.keys(this.dimension).reduce((e,t)=>(e[t]=this.dimension[t].toJSON(),e),Object.create(null)),t=Object.keys(this.measure).reduce((e,t)=>(e[t]=this.measure[t].toJSON(),e),Object.create(null)),n=this._valueFilterInfo.map($);return{columnFields:this.columnFields.concat(),dimension:e,measure:t,filterFields:this.filterFields.concat(),hiddenFields:this.hiddenFields.concat(),rowFields:this.rowFields.concat(),valueFields:this.valueFields.concat(),layout:this.layout,valueIndex:this.valueIndex,valuePosition:this.valuePosition,collapseInfo:{...this.collapseInfo},options:{...this.options},valueFilter:n}}cloneBufferModel(){let t=new e;return t.fromJSON(this.toJSON()),t.setDirty(this.getDirty()),t}};function Q(e){if(e)return{...e,expected:Array.isArray(e.expected)?e.expected.concat():e.expected}}function $(e){return{fieldId:e.fieldId,filterInfo:Q(e.filterInfo)}}var At=class e{static registerCallbackWithEvent(e,t){var n;this._callbacks[e]||(this._callbacks[e]=[]),(n=this._callbacks[e])==null||n.push(t)}static unRegisterCallbackWithEvent(e,t){let n=this._callbacks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&delete this._callbacks[e]}}constructor(e,t,n){A(this,`dataFieldsCollection`,void 0),A(this,`_model`,void 0),A(this,`_bufferModel`,void 0),A(this,`_tupleGroupCache`,void 0),A(this,`_summaryManagerCache`,void 0),A(this,`_summaryCacheState`,`invalid`),A(this,`_defaultSortLocale`,void 0),A(this,`_id`,void 0),this.dataFieldsCollection=e,t?this._model=t:this._generateModel(),n&&(this._id=n)}updateDataFieldsCollection(e){this.dataFieldsCollection=e}getFilteredRecordIndexes(e,t){let n=this._getModel().getQueryData();for(let r of[...n.rowQueryInfo,...n.colQueryInfo,...n.filterQueryInfo,...n.hiddenQueryInfo??[]])r.dataFieldId===e&&(t===`dateRange`&&(r.conditionFilter=void 0),r.filterInfo&&(T(r.filterInfo)?delete r.filterInfo[t]:r.filterInfo.type===1==(t===`dateRange`)&&(r.filterInfo=void 0)));let r=new xt;return r.prepare(this.dataFieldsCollection,n),r.filter(n)}_getModel(){return this._bufferModel?this._bufferModel:this._model}startCollectChangeset(){this._bufferModel=this._model.cloneBufferModel(),this._bufferModel.startChangeStack()}endCollectChangeset(){let e=this._bufferModel,t=e.endChangeStack();return e.getDirty()&&this._model.setDirty(!0),this.cancelCollectChangeset(),t}cancelCollectChangeset(){this._tupleGroupCache=void 0,this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`,this._bufferModel=void 0}_generateModel(){this._model=new kt}createLabelFieldByDataFieldId(e,t,r){let i=this.dataFieldsCollection.getFieldById(e);if(i){let a=r||this.getUniqueFieldId();return n.isDev&&(a=`${t}-${a}`),new Z(i.getId(),a,t||this.dataFieldsCollection.getDisplayName(e),i.name)}}createValueFieldByDataFieldId(e,t){let r=this.dataFieldsCollection.getFieldById(e);if(r){let i=r.getFieldDataType()===2?9:2,a=(this.dataFieldsCollection.host.getAutoDisplayNameFunction()||F)(this.dataFieldsCollection.getDisplayName(e),i),o=t||this.getUniqueFieldId();n.isDev&&(o=`${a}-${o}`);let s=new X(r.getId(),o,this.getUniqueValueFieldName(a),r.name);return s.setSubtotal(i),s}}updateValuePosition(e,t){this._getModel().updateValuePosition(e,t)}isColMultiMeasure(){return this._getModel().isColMultiMeasure()}isRowMultiMeasure(){return this._getModel().isRowMultiMeasure()}getValueIndex(){return this._getModel().getValueIndex()}getValuePosition(){return this._getModel().getValuePosition()}iterateField(e){this._getModel().iterateField(e)}iterateFieldDim(e){this._getModel().iterateFieldDim(e)}iterateFieldByArea(e,t){this._getModel().iterateFieldByArea(e,t)}getFieldCountByArea(e){return this._getModel().getFieldsAreaByType(e).length}getValueFields(){return this._getModel().valueFields}getUniqueValueFieldName(e){let t=this._getModel();if(!t.isExistFieldName(e))return e;let n=1;for(;t.isExistFieldName(e+String(n));)n++;return e+String(n)}getDataFieldByTableId(e){var t;let n=(t=this._getModel().getFieldById(e))==null?void 0:t.dataFieldId;if(n)return this.dataFieldsCollection.getFieldById(n)}getTableFieldsByDataFieldId(e){let t=[];return this.iterateField(n=>{n.getDataFieldId()===e&&t.push(n)}),t}getTableFieldById(e){return this._getModel().getFieldById(e)}isExistField(e){return!!this._getModel().getFieldById(e)}isEmpty(){return this._getModel().isEmpty()}getDataFieldByDataFieldId(e){return this.dataFieldsCollection.getFieldById(e)}getDataFieldIdByDisplayName(e){return this.dataFieldsCollection.getFieldIdByDisplayName(e)}getFieldDisplayNames(){return this.dataFieldsCollection.getFieldDisplayNames()}getDataFieldItemInfo(e){return{items:e.items,itemTypes:e.itemTypes}}getUniqueFieldId(){let e=Object.keys(this._getModel().dimension).length+Object.keys(this._getModel().measure).length,t=Math.max(Math.ceil(Math.log2(e)/4),2),n=L(t);for(;this._getModel().getFieldById(n);)n=L(t);return n}addFieldWithSourceId(e,t,n,r){let i;if(i=N(t)?this.createLabelFieldByDataFieldId(e,void 0,r):this.createValueFieldByDataFieldId(e,r),i)return this.addField(i,t,n),i}setOptions(e,t=!1){this._getModel().setOptions(e,t)}setLayout(e){this._getModel().setLayout(e)}getLayout(){return this._getModel().getLayout()}updateFieldSourceInfo(e,t,n){this._getModel().updateFieldSourceInfo(e,t,n)}setSubtotalType(e,t){this._getModel().setSubtotalType(e,t)}getShowDataAs(e){return this._getModel().getShowDataAs(e)}setShowDataAs(e,t){this._getModel().setShowDataAs(e,t)}renameField(e,t){this._getModel().renameField(e,t)}setLabelFilterInfo(e,t,n){this._getModel().setLabelFilterInfo(e,t,n)}getConditionFilterInfo(e){return this._getModel().getConditionFilterInfo(e)}clearFieldFilters(e){this._getModel().clearFieldFilters(e)}setFieldFilterState(e,t,n){this._getModel().setFieldFilterState(e,t,n)}setDateFilterInfo(e,t){let n=this.getFilterInfo(e);if(!this._getModel().dimension[e])return!1;if(t===void 0)return!x(this.getConditionFilterInfo(e))&&!(T(n)&&n.dateRange)?!1:(this.setLabelFilterInfo(e,void 0,`condition`),!0);S(t);let r=this.getDataFieldByTableId(e);return!r||r.getFieldDataType()!==4?!1:(this.setLabelFilterInfo(e,t,`condition`),!0)}setSortInfo(e,t){this._getModel().setSortInfo(e,t),this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`)}setDefaultSortLocale(e){this._defaultSortLocale!==e&&(this._defaultSortLocale=e,this._summaryCacheState===`ready`&&(this._summaryCacheState=`sort`))}getSortInfo(e){return this._getModel().getSortInfo(e)}getFilterInfo(e){return this._getModel().getFilterInfo(e)}getFilterFieldIdByIndex(e){return this._getModel().filterFields[e]}updateFieldPosition(e,t,n){let{area:r}=this._getModel().getFieldPositionInfoById(e);this._getModel().updateFieldPosition(e,t,n),r!==2&&r!==1||t!==2&&t!==1||(this._summaryCacheState=`invalid`)}getFieldFormat(e){return this._getModel().getFieldFormat(e)}setFieldFormat(e,t){this._getModel().setFieldFormat(e,t)}addField(e,t,n){this._getModel().addField(e,t,n)}removeField(e){this._getModel().removeField(e)}getOptions(){return this._getModel().getOptions()}setCollapse(e,t,n){var r;let i=this._getModel(),a=n!==void 0&&i.collapseInfo[e]===!0?(r=this.getDataFieldByTableId(e))==null?void 0:r.items:void 0;i.setCollapse(e,t,n,a),this._summaryCacheState=`invalid`}setRowCollapseLevel(e){let{rowFields:t}=this._getModel(),n=t.indexOf(e);if(n<0)return!1;for(let e=0;e<t.length-1;e++)this.setCollapse(t[e],e>=n);return!0}getFieldPositionInfoById(e){return this._getModel().getFieldPositionInfoById(e)}_getTupleCache(e){return(!this._tupleGroupCache||this._getModel().getDirty())&&(this._tupleGroupCache=new xt,this._tupleGroupCache.query(this.dataFieldsCollection,e),this._summaryManagerCache=void 0,this._summaryCacheState=`invalid`),this._tupleGroupCache}_getGroupInfo(){let e={};return this._getModel().iterateFieldDim(t=>{let n=t.dataFieldId,r=this.dataFieldsCollection.getFieldById(n);if(B(r)){let n=r.getGroupInfo();n&&(e[t.getId()]=n)}}),e}setValueFilterInfo(e,t,n){this._getModel().setValueFilterInfo(e,t,n),this._summaryCacheState=`invalid`}setValueFilterState(e,t,n){this._getModel().setValueFilterState(e,t,n),this._summaryCacheState=`invalid`}getValueFilterInfos(){return this._getModel().getValueFilterInfos()}getValueFilterInfo(e){return this._getModel().getValueFilterInfo(e)}removeValueFilterInfo(e){this._getModel().removeValueFilterInfo(e),this._summaryCacheState=`invalid`}removeValueFilterInfoByValueFieldId(e){this._getModel().removeValueFilterInfoByValueFieldId(e),this._summaryCacheState=`invalid`}getIndexesByPathStr(e){let t=this._getTupleCache(this._getModel().getQueryData()),n=/* @__PURE__ */ new Map;for(let[e,r]of t.dimensionTableIdList.entries())n.set(r,e);return t.tuples.reduce((t,r)=>(e.every(e=>{let[t,i]=e,a=r.path,o=n.get(i);return o!==void 0&&a[o]===t})&&t.push(...r.indexes),t),[]).sort((e,t)=>e-t)}setDirty(e){this._getModel().setDirty(e)}reset(e){this._getModel().reset(e),this._summaryCacheState=`invalid`}query(t){let n=e._callbacks.onQueryStart;n&&n.forEach(e=>{e(this._id)});let r=t||this._getModel().getQueryData(),i=this._getTupleCache(r),a;t?(a=new bt(r,i,this._defaultSortLocale),a.doSummary()):(!this._summaryManagerCache||this._summaryCacheState===`invalid`?(this._summaryManagerCache=new bt(r,i,this._defaultSortLocale),this._summaryManagerCache.doSummary()):this._summaryCacheState===`sort`&&this._summaryManagerCache.resort(r,this._defaultSortLocale),a=this._summaryManagerCache,this._summaryCacheState=`ready`);let o;try{o=this._layout(a,r)}finally{a.clearShowDataAsCache()}o.setFormat(this._getModel(),r.valueQueryInfo);let s=this._getGroupInfo();o.setGroupInfo(s),this._getModel().setDirty(!1);let c=e._callbacks.onQueryEnd;return c&&c.forEach(e=>{e(this._id)}),o}_layout(e,t){switch(this.getLayout()){case 1:return ft.layout(this,e,t);case 2:return pt.layout(this,e,t);default:return dt.layout(this,e,t)}}toJSON(){return this._getModel().toJSON()}fromJSON(e){this._getModel().fromJSON(e),this.setDirty(!0),this._summaryCacheState=`invalid`}dispose(){this.dataFieldsCollection=null,this._model=null}};A(At,`_callbacks`,{}),e.BaseGroupField=H,e.DataField=V,e.DataFieldManager=et,e.DateGroupField=Ge,e.EXCEL_DATE_AFTER_KEY=Re,e.EXCEL_DATE_BEFORE_KEY=-1,e.FieldsCollection=$e,e.GlobalConfig=n,e.LabelViewItem=at,e.ManualGroupField=W,e.NUMBER_GROUP_AFTER_KEY=Je,e.NUMBER_GROUP_BEFORE_KEY=qe,e.NumberGroupField=Qe,e.PivotCallbackEnum=v,e.PivotCellStyleTypeEnum=he,e.PivotDataFieldDataTypeEnum=f,e.PivotDataFieldSortOperatorEnum=m,e.PivotDataFieldSortTypeEnum=p,e.PivotDataFieldTypeEnum=y,e.PivotDateGroupFieldDateTypeEnum=te,e.PivotDateGroupingMode=b,e.PivotErrorTypeEnum=c,e.PivotExcelDateGroupUnit=ee,e.PivotFilterCategory=ne,e.PivotFilterTypeEnum=l,e.PivotLayoutTypeEnum=g,e.PivotShowAsBaseItemTypeEnum=s,e.PivotShowAsTypeEnum=o,e.PivotSubtotalPositionEnum=_,e.PivotSubtotalTypeEnum=a,e.PivotTable=At,e.PivotTableChangeTypeEnum=pe,e.PivotTableFiledAreaEnum=u,e.PivotTableLabelField=Z,e.PivotTableValueField=X,e.PivotTableValuePositionEnum=d,e.PivotView=rt,e.PivotViewCellValueTypeEnum=me,e.PivotViewItem=K,e.ST_PivotFilterOperatorEnum=h,e.compilePivotDateFilter=S,e.createDataFieldFromJSON=G,e.createLabelField=Ot,e.createPivotSortCompare=z,e.createValueField=Dt,e.excelDateToUnixMilliseconds=Pe,e.generateHexNumber=L,e.getAutoDisplayName=F,e.getDefaultNumberGrouping=Ze,e.getPivotDateGroupingMode=ye,e.getPivotRecordMember=ue,e.hasPivotMultipleFilters=le,e.isBaseGroupField=B,e.isDateGroupField=Fe,e.isDateGroupFieldJSON=Ie,e.isDateValue=C,e.isErrorValue=lt,e.isManualPivotFilter=I,e.isPivotDateFilter=x,e.isPivotTableFilterRestrictive=E,e.isPrefixValue=ct,e.isRecordErrorValue=w,e.isValueFilterOperator=ae,e.normalizeExcelDateGrouping=Ve,e.normalizeManualGrouping=U,e.normalizeNumberGrouping=Xe,e.setDateSystem=r,e.setMaxLimitItemCount=i});
|