@univerjs-pro/sheets-pivot-ui 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +7 -7
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/index.js +1 -1
  23. package/lib/es/locale/ar-SA.js +1 -1
  24. package/lib/es/locale/ca-ES.js +1 -1
  25. package/lib/es/locale/de-DE.js +1 -1
  26. package/lib/es/locale/en-US.js +1 -1
  27. package/lib/es/locale/es-ES.js +1 -1
  28. package/lib/es/locale/fa-IR.js +1 -1
  29. package/lib/es/locale/fr-FR.js +1 -1
  30. package/lib/es/locale/id-ID.js +1 -1
  31. package/lib/es/locale/it-IT.js +1 -1
  32. package/lib/es/locale/ja-JP.js +1 -1
  33. package/lib/es/locale/ko-KR.js +1 -1
  34. package/lib/es/locale/pl-PL.js +1 -1
  35. package/lib/es/locale/pt-BR.js +1 -1
  36. package/lib/es/locale/ru-RU.js +1 -1
  37. package/lib/es/locale/sk-SK.js +1 -1
  38. package/lib/es/locale/vi-VN.js +1 -1
  39. package/lib/es/locale/zh-CN.js +1 -1
  40. package/lib/es/locale/zh-HK.js +1 -1
  41. package/lib/es/locale/zh-TW.js +1 -1
  42. package/lib/index.css +5 -59
  43. package/lib/index.js +1 -1
  44. package/lib/locale/ar-SA.js +1 -1
  45. package/lib/locale/ca-ES.js +1 -1
  46. package/lib/locale/de-DE.js +1 -1
  47. package/lib/locale/en-US.js +1 -1
  48. package/lib/locale/es-ES.js +1 -1
  49. package/lib/locale/fa-IR.js +1 -1
  50. package/lib/locale/fr-FR.js +1 -1
  51. package/lib/locale/id-ID.js +1 -1
  52. package/lib/locale/it-IT.js +1 -1
  53. package/lib/locale/ja-JP.js +1 -1
  54. package/lib/locale/ko-KR.js +1 -1
  55. package/lib/locale/pl-PL.js +1 -1
  56. package/lib/locale/pt-BR.js +1 -1
  57. package/lib/locale/ru-RU.js +1 -1
  58. package/lib/locale/sk-SK.js +1 -1
  59. package/lib/locale/vi-VN.js +1 -1
  60. package/lib/locale/zh-CN.js +1 -1
  61. package/lib/locale/zh-HK.js +1 -1
  62. package/lib/locale/zh-TW.js +1 -1
  63. package/lib/types/controllers/intercept.controller.d.ts +3 -1
  64. package/lib/types/controllers/sheets-pivot-render.controller.d.ts +6 -3
  65. package/lib/types/locale/en-US.d.ts +5 -0
  66. package/lib/types/views/components/util.d.ts +2 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +17 -17
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14e1ea=_0x13f1;(function(_0x2ad26e,_0x9a9bad){const _0x161792=_0x13f1,_0x1a1f0f=_0x2ad26e();while(!![]){try{const _0x2c6b16=-parseInt(_0x161792(0x4d2))/0x1*(-parseInt(_0x161792(0x352))/0x2)+parseInt(_0x161792(0x3c9))/0x3*(parseInt(_0x161792(0x428))/0x4)+parseInt(_0x161792(0x48a))/0x5+-parseInt(_0x161792(0x580))/0x6+-parseInt(_0x161792(0x62a))/0x7*(-parseInt(_0x161792(0x598))/0x8)+parseInt(_0x161792(0x1b7))/0x9*(parseInt(_0x161792(0x3ad))/0xa)+-parseInt(_0x161792(0x68b))/0xb;if(_0x2c6b16===_0x9a9bad)break;else _0x1a1f0f['push'](_0x1a1f0f['shift']());}catch(_0x4bc4a8){_0x1a1f0f['push'](_0x1a1f0f['shift']());}}}(_0x16e1,0xa8b67),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/engine-pivot'),t=require('@univerjs-pro/sheets-pivot'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('@univerjs/ui'),a=require('@univerjs/sheets-ui'),o=require('rxjs'),s=require('@univerjs/design'),c=require('@univerjs-pro/license'),l=require('@univerjs/engine-render'),u=require('@univerjs/icons'),d=require('react/jsx-runtime'),f=require('react'),p=require('@univerjs/engine-formula'),m=require('@univerjs/sheets-formula-ui'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui');const _='UNIVER_SHEET_PIVOT_PANEL',v=_0x14e1ea(0x5dd),y=_0x14e1ea(0x466),b='UNIVER_SHEET_PIVOT_FILTER_PANEL_ID',x=_0x14e1ea(0x6d7),S=_0x14e1ea(0x42b),C=_0x14e1ea(0x676),w=_0x14e1ea(0x4e6),T=_0x14e1ea(0x25f),E=_0x14e1ea(0x63a),D=_0x14e1ea(0x211),O=_0x14e1ea(0x54f),k='UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG',A='univer.sheet.pivot-table-range-selector',j=_0x14e1ea(0x4de),M=_0x14e1ea(0x614),N={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x686),async 'handler'(_0x2a5048){const _0xe0b58d=_0x14e1ea;let _0x53655e=_0x2a5048[_0xe0b58d(0x489)](n[_0xe0b58d(0x642)]),_0x2f531d=_0x2a5048[_0xe0b58d(0x489)](n[_0xe0b58d(0x27a)]),_0xe658a8=(0x0,r[_0xe0b58d(0x3de)])(_0x53655e),_0x587eb1=_0x2a5048[_0xe0b58d(0x489)](n[_0xe0b58d(0x2a4)]);if(!_0xe658a8)return!0x1;let {unitId:_0x26e996,subUnitId:_0x252df4,worksheet:_0x25df17,workbook:_0x56bc69}=_0xe658a8,_0x346bbb=_0x2a5048['get'](r[_0xe0b58d(0x288)])[_0xe0b58d(0x62c)](),_0x176e9d=(_0x346bbb==null?void 0x0:_0x346bbb[_0xe0b58d(0x503)])??{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0,'rangeType':n['RANGE_TYPE']['NORMAL']},_0x328dab=await P(_0x2a5048,_0x26e996,_0x252df4,(0x0,r[_0xe0b58d(0x6c8)])(_0x346bbb)?(0x0,r[_0xe0b58d(0x3fd)])(_0x176e9d,{'up':!0x0,'left':!0x0,'right':!0x0,'down':!0x0},_0x25df17):_0x176e9d,_0x25df17[_0xe0b58d(0x4d5)]());if(!_0x328dab)return!0x1;let _0x1c231e=_0x56bc69['getSheets']()[_0xe0b58d(0x1ba)](_0x50bd82=>_0x50bd82[_0xe0b58d(0x4d5)]()===_0x328dab['sourceSheetName']);if(!_0x1c231e)return!0x1;let _0x1a6c23;if(_0x328dab[_0xe0b58d(0x3d7)]===t['PositionType'][_0xe0b58d(0x2a5)])_0x1a6c23={'row':0x0,'col':0x0,'unitId':_0x26e996,'subUnitId':(0x0,n[_0xe0b58d(0x499)])(),'sheetName':_0x56bc69['generateNewSheetName'](''+_0x587eb1['t'](_0xe0b58d(0x51d)))};else{if(!_0x328dab[_0xe0b58d(0x6e4)]||!_0x328dab['positionSheetName'])return!0x1;let _0x5cc55c=_0x56bc69['getSheets']()['find'](_0x31a25e=>_0x31a25e[_0xe0b58d(0x4d5)]()===_0x328dab[_0xe0b58d(0x650)]);if(!_0x5cc55c)return!0x1;_0x1a6c23={'row':_0x328dab[_0xe0b58d(0x6e4)][_0xe0b58d(0x254)],'col':_0x328dab[_0xe0b58d(0x6e4)][_0xe0b58d(0x695)],'unitId':_0x26e996,'subUnitId':_0x5cc55c[_0xe0b58d(0x595)](),'sheetName':_0x5cc55c['getName']()};}let _0x45581a=(0x0,e[_0xe0b58d(0x28c)])(0x8);return await _0x2f531d[_0xe0b58d(0x2f1)](t[_0xe0b58d(0x374)]['id'],{'pivotTableId':_0x45581a,'pivotTableConfig':{'targetCellInfo':_0x1a6c23,'sourceRangeInfo':{'range':_0x328dab[_0xe0b58d(0x405)],'unitId':_0x26e996,'sheetName':_0x328dab['sourceSheetName'],'subUnitId':_0x1c231e['getSheetId']()}},'positionType':_0x328dab['positionType']})?{'unitId':_0x1a6c23[_0xe0b58d(0x1c8)],'subUnitId':_0x1a6c23[_0xe0b58d(0x465)],'pivotTableId':_0x45581a}:!0x1;}};async function P(_0x539637,_0x4f7973,_0x128de2,_0x433e18,_0x1d2f95){const _0x586ba1=_0x14e1ea;let _0x473edd=_0x539637[_0x586ba1(0x489)](i[_0x586ba1(0x544)]),_0x52a52c=_0x539637[_0x586ba1(0x489)](n['LocaleService']);return new Promise(_0x1a6897=>{const _0x1c6a5e=_0x586ba1;let _0x5d23e2,_0x31362c={'unitId':_0x4f7973,'subUnitId':_0x128de2,'sourceRange':_0x433e18,'positionRange':null,'sourceSheetName':_0x1d2f95,'positionSheetName':_0x1d2f95,'onConfirm':_0x41c8a7=>{const _0x2627d4=_0x13f1;_0x1a6897(_0x41c8a7),_0x5d23e2==null||_0x5d23e2[_0x2627d4(0x1aa)]();},'onCancel':()=>{_0x1a6897(null),_0x5d23e2==null||_0x5d23e2['dispose']();}};_0x5d23e2=_0x473edd[_0x1c6a5e(0x566)]({'id':A,'title':{'title':_0x52a52c['t'](_0x1c6a5e(0x4d3))},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'children':{'label':{'name':A,'props':_0x31362c}},'width':0x190,'onClose':()=>{const _0x3b8c28=_0x1c6a5e;_0x5d23e2[_0x3b8c28(0x1aa)]();}});});}const F={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x5bb),async 'handler'(_0x3d4c0c,_0x54990a){const _0x53fafd=_0x14e1ea;if(!_0x54990a)return!0x1;let _0x1bc193=I(_0x3d4c0c);return _0x1bc193?_0x3d4c0c[_0x53fafd(0x489)](n[_0x53fafd(0x27a)])['executeCommand'](t[_0x53fafd(0x677)]['id'],{'unitId':_0x1bc193['unitId'],'subUnitId':_0x1bc193[_0x53fafd(0x465)],'pivotTableId':_0x1bc193['pivotTableId'],'tableFieldId':_0x1bc193[_0x53fafd(0x5df)],'dateType':_0x54990a[_0x53fafd(0x671)]}):!0x1;}};function I(_0xbe64b0,_0x46cb24=e[_0x14e1ea(0x41c)][_0x14e1ea(0x1b6)]){const _0x44445e=_0x14e1ea;let _0x1e51fd=_0xbe64b0[_0x44445e(0x489)](n['IUniverInstanceService']),_0x1bfd50=(0x0,r[_0x44445e(0x3de)])(_0x1e51fd);if(!_0x1bfd50)return;let _0x16d77a=_0xbe64b0[_0x44445e(0x489)](r[_0x44445e(0x288)])['getCurrentLastSelection'](),_0x4353b2=_0x16d77a==null?void 0x0:_0x16d77a[_0x44445e(0x5b8)];if(!_0x4353b2)return;let {unitId:_0xefafc5,subUnitId:_0x4a1ec6}=_0x1bfd50,_0x5f207d=_0x4353b2['startRow'],_0x2f0777=_0x4353b2[_0x44445e(0x695)],_0x203b34=_0xbe64b0['get'](t[_0x44445e(0x504)])[_0x44445e(0x410)](_0xefafc5,_0x4a1ec6,_0x5f207d,_0x2f0777);if(!_0x203b34)return;let _0x282f6f=L(_0xbe64b0,_0xefafc5,_0x4a1ec6,_0x203b34,_0x5f207d,_0x2f0777);if(!_0x282f6f)return;let _0x10fb8b=_0xbe64b0[_0x44445e(0x489)](t['SheetsPivotTableConfigModel']),_0x588f49=_0x10fb8b[_0x44445e(0x4c8)](_0xefafc5,_0x4a1ec6,_0x203b34);if((0x0,e[_0x44445e(0x6be)])(_0x588f49==null?void 0x0:_0x588f49[_0x44445e(0x30c)][_0x44445e(0x44a)])!==_0x46cb24)return;let _0x3b3959=_0x10fb8b[_0x44445e(0x353)](_0xefafc5,_0x203b34),_0x223096=(0x0,t[_0x44445e(0x44c)])(_0x588f49==null?void 0x0:_0x588f49['fieldsConfig'],_0x3b3959,_0x282f6f);if(_0x223096)return{'unitId':_0xefafc5,'subUnitId':_0x4a1ec6,'pivotTableId':_0x203b34,'tableFieldId':_0x282f6f,'row':_0x5f207d,'col':_0x2f0777,'dateGroupContext':_0x223096};}function L(_0x25b374,_0x2f538f,_0x461415,_0x288866,_0x1d62fd,_0x2272e2){const _0x419b75=_0x14e1ea;let _0x40662c=_0x25b374[_0x419b75(0x489)](t[_0x419b75(0x504)])[_0x419b75(0x43a)](_0x2f538f,_0x461415,_0x288866);if(!_0x40662c)return;let _0x145086=_0x25b374[_0x419b75(0x489)](t[_0x419b75(0x504)])['getPivotTableCellData'](_0x2f538f,_0x461415,_0x1d62fd,_0x2272e2),_0x34b0e7=(0x0,t[_0x419b75(0x2b9)])(_0x1d62fd,_0x2272e2,_0x145086,_0x40662c);return _0x34b0e7==null?void 0x0:_0x34b0e7[_0x419b75(0x5df)];}function R(_0x53474d){const _0x244c3b=_0x14e1ea;let _0xf4cb7a=I(_0x53474d,e['PivotDateGroupingMode'][_0x244c3b(0x5c0)]);if(!_0xf4cb7a)return;let _0x3c8cd6=_0x53474d['get'](t['SheetsPivotTableConfigModel']),_0x4aeaf4=_0x3c8cd6['getPivotTableConfig'](_0xf4cb7a[_0x244c3b(0x1c8)],_0xf4cb7a['subUnitId'],_0xf4cb7a[_0x244c3b(0x1ec)]),_0x1cbb38=_0x4aeaf4==null?void 0x0:_0x4aeaf4[_0x244c3b(0x30c)][_0x244c3b(0x3a7)][_0xf4cb7a['tableFieldId']];if(!_0x1cbb38)return;let _0x44573a=_0x3c8cd6[_0x244c3b(0x353)](_0xf4cb7a[_0x244c3b(0x1c8)],_0xf4cb7a['pivotTableId']),_0x558e83=(_0xf4cb7a['dateGroupContext'][_0x244c3b(0x2ea)]===e[_0x244c3b(0x2d0)][_0x244c3b(0x561)]?_0x4aeaf4[_0x244c3b(0x30c)][_0x244c3b(0x40c)]:_0x4aeaf4[_0x244c3b(0x30c)][_0x244c3b(0x310)])[_0x244c3b(0x2ae)](_0x4a3d62=>{const _0x7055d=_0x244c3b;let _0x568d4d=_0x4aeaf4[_0x7055d(0x30c)][_0x7055d(0x3a7)][_0x4a3d62],_0x1a43ad=_0x568d4d?_0x44573a==null?void 0x0:_0x44573a[_0x7055d(0x287)][_0x568d4d[_0x7055d(0x3cd)]]:void 0x0;return _0x1a43ad&&(0x0,e['isDateGroupFieldJSON'])(_0x1a43ad)&&_0x1a43ad[_0x7055d(0x46c)]===_0xf4cb7a[_0x7055d(0x59e)]['originalDataFieldId']&&_0x1a43ad['excelLike']?[_0x1a43ad[_0x7055d(0x1be)]]:[];}),_0x1d82e2=_0x558e83[0x0],_0x18994b=_0x1d82e2?{'units':_0x558e83[_0x244c3b(0x505)](_0x1225fa=>_0x1225fa['unit']),'autoStart':_0x1d82e2[_0x244c3b(0x2e1)],'autoEnd':_0x1d82e2['autoEnd'],..._0x1d82e2[_0x244c3b(0x2b6)]===void 0x0?{}:{'start':_0x1d82e2[_0x244c3b(0x2b6)]},..._0x1d82e2['end']===void 0x0?{}:{'end':_0x1d82e2[_0x244c3b(0x3d0)]},..._0x1d82e2[_0x244c3b(0x315)]===void 0x0?{}:{'daysInterval':_0x1d82e2[_0x244c3b(0x315)]}}:void 0x0;return{..._0xf4cb7a,'targetFieldName':_0x1cbb38[_0x244c3b(0x2db)],'grouping':_0x18994b};}const z={'id':'sheet.operation.set-pivot-excel-date-group','type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],async 'handler'(_0x58e3c8){const _0xcfa6c=_0x14e1ea;let _0x306b39=R(_0x58e3c8);if(!_0x306b39)return!0x1;let _0x21d5ce=_0x58e3c8[_0xcfa6c(0x489)](t[_0xcfa6c(0x6ad)]),_0xbfcdc5=_0x21d5ce[_0xcfa6c(0x4c8)](_0x306b39[_0xcfa6c(0x1c8)],_0x306b39[_0xcfa6c(0x465)],_0x306b39[_0xcfa6c(0x1ec)]),_0x52202f=_0x21d5ce['getCollection'](_0x306b39[_0xcfa6c(0x1c8)],_0x306b39[_0xcfa6c(0x1ec)]),_0x10a49c=_0x58e3c8[_0xcfa6c(0x489)](i[_0xcfa6c(0x544)]),_0x5d5713=_0x58e3c8[_0xcfa6c(0x489)](n['LocaleService']),_0x3c4c21=_0x58e3c8[_0xcfa6c(0x489)](n[_0xcfa6c(0x642)])[_0xcfa6c(0x3e5)](_0x306b39[_0xcfa6c(0x1c8)]),_0x591c7f=(_0x3c4c21==null?void 0x0:_0x3c4c21[_0xcfa6c(0x313)]())??n[_0xcfa6c(0x625)][_0xcfa6c(0x2c5)],_0x172e6b=null,_0x4098b3=!0x1,_0x4b185f=!0x1,_0x4ed179=()=>{const _0x8f6538=_0xcfa6c;_0x4098b3||(_0x4098b3=!0x0,_0x172e6b==null||_0x172e6b[_0x8f6538(0x1aa)](),_0x172e6b=null);},_0x1aa7c4=async _0x105d21=>{const _0x4cd762=_0xcfa6c;if(!(_0x4b185f||_0x4098b3)){_0x4b185f=!0x0;try{let _0x4926fa=R(_0x58e3c8);if(!_0x4926fa||_0x4926fa[_0x4cd762(0x1c8)]!==_0x306b39[_0x4cd762(0x1c8)]||_0x4926fa[_0x4cd762(0x465)]!==_0x306b39[_0x4cd762(0x465)]||_0x4926fa['pivotTableId']!==_0x306b39[_0x4cd762(0x1ec)]||_0x4926fa[_0x4cd762(0x5df)]!==_0x306b39['tableFieldId']||_0x21d5ce['getPivotTableConfig'](_0x306b39[_0x4cd762(0x1c8)],_0x306b39[_0x4cd762(0x465)],_0x306b39[_0x4cd762(0x1ec)])!==_0xbfcdc5||_0x21d5ce[_0x4cd762(0x353)](_0x306b39[_0x4cd762(0x1c8)],_0x306b39[_0x4cd762(0x1ec)])!==_0x52202f)return;await _0x58e3c8[_0x4cd762(0x489)](n[_0x4cd762(0x27a)])[_0x4cd762(0x2f1)](t[_0x4cd762(0x5fc)]['id'],{'unitId':_0x306b39[_0x4cd762(0x1c8)],'subUnitId':_0x306b39[_0x4cd762(0x465)],'pivotTableId':_0x306b39[_0x4cd762(0x1ec)],'tableFieldId':_0x306b39['tableFieldId'],'grouping':{..._0x105d21,'units':_0x105d21['units'][_0x4cd762(0x63e)]()}});}catch{}finally{_0x4ed179();}}};try{_0x172e6b=_0x10a49c[_0xcfa6c(0x566)]({'id':'UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG_ID','title':{'title':_0x5d5713['t']('sheets-pivot-ui.dateGroup.excelLikeTitle')},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x1b8,'children':{'label':{'name':D,'props':{'targetFieldName':_0x306b39[_0xcfa6c(0x577)],'dateSystem':_0x591c7f,'grouping':_0x306b39['grouping'],'onConfirm':_0x1aa7c4,'onCancel':_0x4ed179}}},'onClose':_0x4ed179});}catch{return _0x4ed179(),!0x1;}return!0x0;}};function B(_0x469b51){const _0x24d1d4=_0x14e1ea;return _0x469b51['map'](_0x18e12b=>({..._0x18e12b,'members':_0x18e12b[_0x24d1d4(0x398)][_0x24d1d4(0x505)](_0xc7f2ed=>({..._0xc7f2ed}))}));}function V(_0x161b44){const _0x4e0bb5=_0x14e1ea;let _0x5ec00e;try{_0x5ec00e=JSON['parse'](_0x161b44);}catch{return;}if(!(!Array[_0x4e0bb5(0x20e)](_0x5ec00e)||_0x5ec00e['length']<0x1||typeof _0x5ec00e[0x0]!=_0x4e0bb5(0x293)))return _0x5ec00e[0x0]===n[_0x4e0bb5(0x390)][_0x4e0bb5(0x39c)]?e['GlobalConfig'][_0x4e0bb5(0x351)]:String(_0x5ec00e[0x1]);}function ee(_0x422357,_0xd35ad4){const _0x59dac5=_0x14e1ea;var _0x2d77ec;let _0x4305c0=()=>({'error':_0x59dac5(0x208)}),_0x34703c=(0x0,r['getSheetCommandTarget'])(_0x422357[_0x59dac5(0x489)](n[_0x59dac5(0x642)])),_0x226bc9=_0x422357['get'](r['SheetsSelectionsService'])[_0x59dac5(0x1a6)]();if(!_0x34703c||!_0x226bc9[_0x59dac5(0x2f3)])return _0x4305c0();let {unitId:_0x453553,subUnitId:_0x2993b9}=_0x34703c,_0x48c59e=_0x226bc9[0x0]['primary'];if(!_0x48c59e)return _0x4305c0();let _0x1ebbe1=_0x422357[_0x59dac5(0x489)](t['SheetsPivotTableAdaptorModel']),_0x59415f=_0x1ebbe1[_0x59dac5(0x410)](_0x453553,_0x2993b9,_0x48c59e[_0x59dac5(0x254)],_0x48c59e['startColumn']),_0x32e2a0=_0x422357['get'](t[_0x59dac5(0x6ad)]),_0x2948fa=_0x59415f&&_0x32e2a0[_0x59dac5(0x4c8)](_0x453553,_0x2993b9,_0x59415f),_0x5ba1cf=_0x59415f&&_0x32e2a0[_0x59dac5(0x353)](_0x453553,_0x59415f),_0x1ddd98=_0x59415f&&_0x1ebbe1[_0x59dac5(0x43a)](_0x453553,_0x2993b9,_0x59415f);if(!_0x59415f||!_0x2948fa||!_0x5ba1cf||!_0x1ddd98)return _0x4305c0();let _0x5ead30=(0x0,t[_0x59dac5(0x2b9)])(_0x48c59e[_0x59dac5(0x254)],_0x48c59e[_0x59dac5(0x695)],_0x1ebbe1[_0x59dac5(0x517)](_0x453553,_0x2993b9,_0x48c59e[_0x59dac5(0x254)],_0x48c59e[_0x59dac5(0x695)]),_0x1ddd98),_0x4db9e7=_0x5ead30==null?void 0x0:_0x5ead30[_0x59dac5(0x5df)],_0x5b6586=_0x4db9e7&&_0x2948fa[_0x59dac5(0x30c)][_0x59dac5(0x3a7)][_0x4db9e7];if(!_0x4db9e7||!_0x5b6586||!(_0x2948fa[_0x59dac5(0x30c)]['rowFields']['includes'](_0x4db9e7)||_0x2948fa[_0x59dac5(0x30c)]['columnFields'][_0x59dac5(0x3a9)](_0x4db9e7)))return _0x4305c0();let _0x37a396=_0x5ba1cf['fields'][_0x5b6586[_0x59dac5(0x3cd)]];if(!_0x37a396)return _0x4305c0();let _0x137d4e=_0x37a396['dataFieldType']===e['PivotDataFieldTypeEnum']['textGroupField']?_0x37a396:void 0x0;if(!_0x137d4e&&_0x37a396['dataFieldType']!==e['PivotDataFieldTypeEnum'][_0x59dac5(0x6ca)])return _0x4305c0();let _0x17f132=(_0x137d4e==null?void 0x0:_0x137d4e[_0x59dac5(0x46c)])??_0x37a396['id'];if(((_0x2d77ec=_0x5ba1cf[_0x59dac5(0x287)][_0x17f132])==null?void 0x0:_0x2d77ec['dataFieldType'])!==e[_0x59dac5(0x2de)][_0x59dac5(0x6ca)])return _0x4305c0();let _0x3a5bdf=B((_0x137d4e==null?void 0x0:_0x137d4e[_0x59dac5(0x205)]['groups'])??[]),_0xaccf96=new Map(),_0x436cc3=new Set(),_0x581002=0x0;for(let _0x40d168 of _0x226bc9){let {startRow:_0x539a23,endRow:_0x3e1f42,startColumn:_0x572881,endColumn:_0x1c0119}=_0x40d168['range'];if(_0x581002+=(_0x3e1f42-_0x539a23+0x1)*(_0x1c0119-_0x572881+0x1),_0x581002>0x200)return _0x4305c0();for(let _0x31b868=_0x539a23;_0x31b868<=_0x3e1f42;_0x31b868++)for(let _0x2b67c5=_0x572881;_0x2b67c5<=_0x1c0119;_0x2b67c5++){if(_0x1ebbe1[_0x59dac5(0x410)](_0x453553,_0x2993b9,_0x31b868,_0x2b67c5)!==_0x59415f)return _0x4305c0();let _0x38ff71=(0x0,t[_0x59dac5(0x2b9)])(_0x31b868,_0x2b67c5,_0x1ebbe1[_0x59dac5(0x517)](_0x453553,_0x2993b9,_0x31b868,_0x2b67c5),_0x1ddd98),_0x38dfe6=_0x38ff71==null?void 0x0:_0x38ff71[_0x59dac5(0x518)];if(!_0x38ff71||_0x38ff71[_0x59dac5(0x2ea)]!==_0x59dac5(0x381)&&_0x38ff71[_0x59dac5(0x2ea)]!==_0x59dac5(0x363)||_0x38ff71['tableFieldId']!==_0x4db9e7||!_0x38dfe6||_0x38dfe6[_0x59dac5(0x2f2)]||_0x38dfe6[_0x59dac5(0x426)]||_0x38dfe6[_0x59dac5(0x394)]||_0x38dfe6[_0x59dac5(0x424)]||_0x38dfe6[_0x59dac5(0x3cc)]&&_0x38dfe6[_0x59dac5(0x3cc)]!==_0x59dac5(0x2e6)||_0x38dfe6[_0x59dac5(0x58a)]<0x1)return _0x4305c0();let _0x3bcdf2=_0x38dfe6['paths'][_0x38dfe6['level']-0x1];if(_0x3bcdf2===void 0x0)return _0x4305c0();if(_0x137d4e){let _0x98c2fd;try{_0x98c2fd=JSON['parse'](_0x3bcdf2);}catch{return _0x4305c0();}if(!Array[_0x59dac5(0x20e)](_0x98c2fd)||_0x98c2fd[_0x59dac5(0x2f3)]!==0x2||typeof _0x98c2fd[0x1]!=_0x59dac5(0x293))return _0x4305c0();if(_0x98c2fd[0x0]===_0x59dac5(0x427)){if(!_0x3a5bdf[_0x59dac5(0x47b)](_0x5e7404=>_0x5e7404['id']===_0x98c2fd[0x1]))return _0x4305c0();_0x436cc3['add'](_0x98c2fd[0x1]);continue;}if(_0x98c2fd[0x0]!==_0x59dac5(0x443))return _0x4305c0();let _0x314866=V(_0x98c2fd[0x1]);if(_0x314866===void 0x0)return _0x4305c0();_0xaccf96[_0x59dac5(0x439)](_0x98c2fd[0x1],{'path':_0x314866,'memberKey':_0x98c2fd[0x1]});}else{var _0x592aee;let _0x14ac8e=(_0x592aee=_0x1ebbe1[_0x59dac5(0x517)](_0x453553,_0x2993b9,_0x31b868,_0x2b67c5))==null?void 0x0:_0x592aee['v'],_0x25897e=_0x14ac8e==null||_0x14ac8e===''?e[_0x59dac5(0x348)]['BLANK_PLACEHOLDER']:String(_0x14ac8e);_0xaccf96[_0x59dac5(0x439)](_0x3bcdf2,{'path':_0x25897e,'tupleKey':_0x3bcdf2});}}}return _0xd35ad4===_0x59dac5(0x427)&&(_0xaccf96['size']<0x2||_0x436cc3[_0x59dac5(0x587)]>0x0)||_0xd35ad4!==_0x59dac5(0x427)&&(_0xaccf96[_0x59dac5(0x587)]>0x0||_0x436cc3[_0x59dac5(0x587)]!==0x1)?_0x4305c0():{'context':{'unitId':_0x453553,'subUnitId':_0x2993b9,'pivotTableId':_0x59415f,'tableFieldId':_0x4db9e7,'sourceFieldId':_0x17f132,'targetFieldName':_0x5b6586[_0x59dac5(0x2db)],'groups':_0x3a5bdf,'memberPaths':Array[_0x59dac5(0x2cf)](_0xaccf96[_0x59dac5(0x644)]()),'selectedGroupId':Array[_0x59dac5(0x2cf)](_0x436cc3)[0x0]}};}function te(_0x1b65be,_0x1212db){const _0x3a256a=_0x14e1ea;return ee(_0x1b65be,_0x1212db)[_0x3a256a(0x3c6)];}function H(_0x525099,_0x4da239){const _0x5d123f=_0x14e1ea;_0x525099['get'](i[_0x5d123f(0x3a8)])[_0x5d123f(0x61c)]({'type':s[_0x5d123f(0x42e)][_0x5d123f(0x6b2)],'content':_0x525099[_0x5d123f(0x489)](n[_0x5d123f(0x2a4)])['t']('sheets-pivot-ui.manualGroup.'+_0x4da239)});}function ne(_0x5efc94,_0x2ebd04,_0x459758){const _0x4f6360=_0x14e1ea;let _0x543925=te(_0x5efc94,_0x2ebd04);return!!_0x543925&&_0x543925[_0x4f6360(0x1c8)]===_0x459758[_0x4f6360(0x1c8)]&&_0x543925[_0x4f6360(0x465)]===_0x459758['subUnitId']&&_0x543925[_0x4f6360(0x1ec)]===_0x459758['pivotTableId']&&_0x543925[_0x4f6360(0x5df)]===_0x459758['tableFieldId']&&_0x543925[_0x4f6360(0x5d6)]===_0x459758[_0x4f6360(0x5d6)]&&_0x543925[_0x4f6360(0x643)]===_0x459758[_0x4f6360(0x643)]&&JSON[_0x4f6360(0x43e)](_0x543925[_0x4f6360(0x2d7)])===JSON['stringify'](_0x459758[_0x4f6360(0x2d7)])&&JSON['stringify'](_0x543925[_0x4f6360(0x2f6)])===JSON[_0x4f6360(0x43e)](_0x459758[_0x4f6360(0x2f6)]);}async function re(_0x4cbf9d,_0xcc2401){const _0x197047=_0x14e1ea;let _0x13c347=ee(_0x4cbf9d,_0xcc2401),_0x1e1b7e=_0x13c347[_0x197047(0x3c6)];if(!_0x1e1b7e)return H(_0x4cbf9d,_0x13c347['error']),!0x1;let _0x5a2a4b=_0x4cbf9d[_0x197047(0x489)](t[_0x197047(0x6ad)]),_0xe30d92=_0x5a2a4b[_0x197047(0x4c8)](_0x1e1b7e[_0x197047(0x1c8)],_0x1e1b7e[_0x197047(0x465)],_0x1e1b7e[_0x197047(0x1ec)]),_0x542559=_0x5a2a4b[_0x197047(0x353)](_0x1e1b7e[_0x197047(0x1c8)],_0x1e1b7e['pivotTableId']),_0x509b28=[];if(_0xcc2401==='group'){try{let _0x483db9=(await _0x4cbf9d['get'](t[_0x197047(0x6b9)])['getPivotDisplayConfig']({'unitId':_0x1e1b7e[_0x197047(0x1c8)],'subUnitId':_0x1e1b7e[_0x197047(0x465)],'pivotTableId':_0x1e1b7e[_0x197047(0x1ec)],'params':{'type':t[_0x197047(0x32d)][_0x197047(0x236)],'manualGroupMembers':{'sourceFieldId':_0x1e1b7e['sourceFieldId'],'paths':_0x1e1b7e[_0x197047(0x2d7)]}}}))['result'][_0x197047(0x408)];if(!_0x483db9||_0x483db9[_0x197047(0x41e)]||_0x483db9['members'][_0x197047(0x2f3)]<0x2)return H(_0x4cbf9d,(_0x483db9==null?void 0x0:_0x483db9[_0x197047(0x41e)])??'invalidSelection'),!0x1;_0x509b28=_0x483db9[_0x197047(0x398)];}catch{return H(_0x4cbf9d,'invalidSelection'),!0x1;}if(!ne(_0x4cbf9d,_0xcc2401,_0x1e1b7e)||_0x5a2a4b[_0x197047(0x4c8)](_0x1e1b7e[_0x197047(0x1c8)],_0x1e1b7e[_0x197047(0x465)],_0x1e1b7e[_0x197047(0x1ec)])!==_0xe30d92||_0x5a2a4b[_0x197047(0x353)](_0x1e1b7e[_0x197047(0x1c8)],_0x1e1b7e[_0x197047(0x1ec)])!==_0x542559)return!0x1;}let _0x158d42=_0x4cbf9d[_0x197047(0x489)](i[_0x197047(0x544)]),_0x24e801=_0x4cbf9d[_0x197047(0x489)](n[_0x197047(0x2a4)]),_0x38dc50=_0x1e1b7e['groups']['find'](_0x2d3e16=>_0x2d3e16['id']===_0x1e1b7e[_0x197047(0x643)]),_0x4646c6=(_0x38dc50==null?void 0x0:_0x38dc50[_0x197047(0x6d0)])??_0x24e801['t']('sheets-pivot-ui.manualGroup.defaultName',String(_0x1e1b7e[_0x197047(0x2f6)][_0x197047(0x2f3)]+0x1));if(!_0x38dc50){let _0x708d9d=_0x1e1b7e[_0x197047(0x2f6)][_0x197047(0x2f3)]+0x1;for(;_0x1e1b7e[_0x197047(0x2f6)][_0x197047(0x47b)](_0x223382=>_0x223382[_0x197047(0x6d0)]===_0x4646c6);)_0x708d9d++,_0x4646c6=_0x24e801['t'](_0x197047(0x418),String(_0x708d9d));}let _0x294c40=null,_0x58481b=!0x1,_0x1bf20c=!0x1,_0x5ce2ca=()=>{const _0xdd9b0b=_0x197047;_0x58481b||(_0x58481b=!0x0,_0x294c40==null||_0x294c40[_0xdd9b0b(0x1aa)](),_0x294c40=null);},_0x3ba862=async _0x20613d=>{const _0x1e2797=_0x197047;if(_0x1bf20c||_0x58481b)return;let _0x2ec10a=_0x20613d[_0x1e2797(0x5e9)]();if(!_0x2ec10a||_0x1e1b7e[_0x1e2797(0x2f6)][_0x1e2797(0x47b)](_0xd90b34=>_0xd90b34['name']===_0x2ec10a&&_0xd90b34['id']!==_0x1e1b7e[_0x1e2797(0x643)]))H(_0x4cbf9d,_0x1e2797(0x208));else{_0x1bf20c=!0x0;try{if(!ne(_0x4cbf9d,_0xcc2401,_0x1e1b7e)||_0x5a2a4b['getPivotTableConfig'](_0x1e1b7e['unitId'],_0x1e1b7e[_0x1e2797(0x465)],_0x1e1b7e[_0x1e2797(0x1ec)])!==_0xe30d92||_0x5a2a4b[_0x1e2797(0x353)](_0x1e1b7e['unitId'],_0x1e1b7e[_0x1e2797(0x1ec)])!==_0x542559)return;let _0x20023e=_0xcc2401===_0x1e2797(0x427)?_0x1e1b7e[_0x1e2797(0x2f6)]['concat']({'id':(0x0,n[_0x1e2797(0x499)])(),'name':_0x2ec10a,'members':_0x509b28['map'](_0xdb1ed7=>({..._0xdb1ed7}))}):_0x1e1b7e[_0x1e2797(0x2f6)][_0x1e2797(0x505)](_0x4067f4=>_0x4067f4['id']===_0x1e1b7e[_0x1e2797(0x643)]?{..._0x4067f4,'name':_0x2ec10a}:_0x4067f4);await _0x4cbf9d[_0x1e2797(0x489)](n['ICommandService'])[_0x1e2797(0x2f1)](t[_0x1e2797(0x2b4)]['id'],{'unitId':_0x1e1b7e[_0x1e2797(0x1c8)],'subUnitId':_0x1e1b7e[_0x1e2797(0x465)],'pivotTableId':_0x1e1b7e['pivotTableId'],'sourceFieldId':_0x1e1b7e[_0x1e2797(0x5d6)],'groups':_0x20023e});}catch{}finally{_0x5ce2ca();}}};try{_0x294c40=_0x158d42[_0x197047(0x566)]({'id':_0x197047(0x47d),'title':{'title':_0x24e801['t'](_0xcc2401===_0x197047(0x427)?_0x197047(0x534):'sheets-pivot-ui.manualGroup.renameTitle')},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':k,'props':{'name':_0x4646c6,'onConfirm':_0x3ba862,'onCancel':_0x5ce2ca}}},'onClose':_0x5ce2ca});}catch{return _0x5ce2ca(),!0x1;}return!0x0;}const ie={'id':_0x14e1ea(0x6b3),'type':n[_0x14e1ea(0x1c0)]['OPERATION'],'handler':_0x2baa58=>re(_0x2baa58,'group')},ae={'id':_0x14e1ea(0x458),'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'handler':_0x49180d=>re(_0x49180d,_0x14e1ea(0x5ab))},oe={'id':'sheet.operation.ungroup-pivot-manual-group','type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],async 'handler'(_0xdce04b){const _0x3e8277=_0x14e1ea;let _0x4cc6c8=ee(_0xdce04b,'ungroup'),_0x2afeb0=_0x4cc6c8[_0x3e8277(0x3c6)];if(!_0x2afeb0)return H(_0xdce04b,_0x4cc6c8[_0x3e8277(0x41e)]),!0x1;let _0x3b3612=_0xdce04b[_0x3e8277(0x489)](t[_0x3e8277(0x6ad)]),_0x1fccdc=_0x3b3612['getPivotTableConfig'](_0x2afeb0[_0x3e8277(0x1c8)],_0x2afeb0[_0x3e8277(0x465)],_0x2afeb0[_0x3e8277(0x1ec)]),_0xb4bc33=_0x3b3612[_0x3e8277(0x353)](_0x2afeb0[_0x3e8277(0x1c8)],_0x2afeb0[_0x3e8277(0x1ec)]);return!ne(_0xdce04b,'ungroup',_0x2afeb0)||_0x3b3612[_0x3e8277(0x4c8)](_0x2afeb0[_0x3e8277(0x1c8)],_0x2afeb0['subUnitId'],_0x2afeb0[_0x3e8277(0x1ec)])!==_0x1fccdc||_0x3b3612['getCollection'](_0x2afeb0[_0x3e8277(0x1c8)],_0x2afeb0[_0x3e8277(0x1ec)])!==_0xb4bc33?!0x1:_0xdce04b[_0x3e8277(0x489)](n[_0x3e8277(0x27a)])[_0x3e8277(0x2f1)](t[_0x3e8277(0x2b4)]['id'],{'unitId':_0x2afeb0[_0x3e8277(0x1c8)],'subUnitId':_0x2afeb0[_0x3e8277(0x465)],'pivotTableId':_0x2afeb0[_0x3e8277(0x1ec)],'sourceFieldId':_0x2afeb0[_0x3e8277(0x5d6)],'groups':_0x2afeb0[_0x3e8277(0x2f6)][_0x3e8277(0x327)](_0x5bd3f7=>_0x5bd3f7['id']!==_0x2afeb0[_0x3e8277(0x643)])});}};function se(_0x29941b){const _0x2a87b9=_0x14e1ea;return typeof _0x29941b[_0x2a87b9(0x2e1)]==_0x2a87b9(0x324)&&typeof _0x29941b['autoEnd']==_0x2a87b9(0x324)&&Number[_0x2a87b9(0x5cc)](_0x29941b[_0x2a87b9(0x1e4)])&&_0x29941b[_0x2a87b9(0x1e4)]>0x0&&(_0x29941b['start']===void 0x0||Number[_0x2a87b9(0x5cc)](_0x29941b[_0x2a87b9(0x2b6)]))&&(_0x29941b[_0x2a87b9(0x3d0)]===void 0x0||Number[_0x2a87b9(0x5cc)](_0x29941b[_0x2a87b9(0x3d0)]))&&(_0x29941b[_0x2a87b9(0x2e1)]||_0x29941b['start']!==void 0x0)&&(_0x29941b[_0x2a87b9(0x1de)]||_0x29941b[_0x2a87b9(0x3d0)]!==void 0x0)&&(_0x29941b[_0x2a87b9(0x2b6)]===void 0x0||_0x29941b[_0x2a87b9(0x3d0)]===void 0x0||_0x29941b[_0x2a87b9(0x2b6)]<=_0x29941b[_0x2a87b9(0x3d0)]);}function ce(_0xe398b3,_0x3f8967){const _0x322485=_0x14e1ea;if(_0xe398b3[_0x322485(0x5d0)]===e[_0x322485(0x2de)][_0x322485(0x333)]){let _0x53a815=_0xe398b3,_0x21801d=_0x3f8967[_0x322485(0x287)][_0x53a815[_0x322485(0x46c)]];return!_0x21801d||_0x21801d['dataFieldType']!==e['PivotDataFieldTypeEnum'][_0x322485(0x6ca)]||_0x21801d[_0x322485(0x5c5)]!==e['PivotDataFieldDataTypeEnum'][_0x322485(0x26e)]?void 0x0:{'sourceFieldId':_0x53a815[_0x322485(0x46c)],'grouping':{..._0x53a815[_0x322485(0x205)]}};}if(_0xe398b3['dataFieldType']===e[_0x322485(0x2de)][_0x322485(0x6ca)]&&_0xe398b3[_0x322485(0x5c5)]===e['PivotDataFieldDataTypeEnum'][_0x322485(0x26e)])return{'sourceFieldId':_0xe398b3['id']};}function le(_0x37999c){const _0xa9c182=_0x14e1ea;var _0x546f4f;let _0x79e523=(0x0,r[_0xa9c182(0x3de)])(_0x37999c[_0xa9c182(0x489)](n[_0xa9c182(0x642)])),_0x56c4d4=(_0x546f4f=_0x37999c[_0xa9c182(0x489)](r[_0xa9c182(0x288)])[_0xa9c182(0x62c)]())==null?void 0x0:_0x546f4f[_0xa9c182(0x5b8)];if(!_0x79e523||!_0x56c4d4)return;let {unitId:_0x1e5baf,subUnitId:_0x242e39}=_0x79e523,_0x368bcd=_0x56c4d4[_0xa9c182(0x254)],_0x4d97eb=_0x56c4d4['startColumn'],_0x139a28=_0x37999c[_0xa9c182(0x489)](t['SheetsPivotTableAdaptorModel']),_0x31b16a=_0x139a28[_0xa9c182(0x410)](_0x1e5baf,_0x242e39,_0x368bcd,_0x4d97eb);if(!_0x31b16a)return;let _0x1249d9=_0x139a28['getPivotItemRenderInfoCache'](_0x1e5baf,_0x242e39,_0x31b16a);if(!_0x1249d9)return;let _0x245acc=(0x0,t[_0xa9c182(0x2b9)])(_0x368bcd,_0x4d97eb,_0x139a28[_0xa9c182(0x517)](_0x1e5baf,_0x242e39,_0x368bcd,_0x4d97eb),_0x1249d9),_0x5d8c4c=_0x245acc==null?void 0x0:_0x245acc['tableFieldId'];if(!_0x5d8c4c||_0x245acc[_0xa9c182(0x2ea)]!==_0xa9c182(0x381)&&_0x245acc[_0xa9c182(0x2ea)]!==_0xa9c182(0x363))return;let _0x4630c3=_0x37999c['get'](t[_0xa9c182(0x6ad)]),_0x2c9857=_0x4630c3[_0xa9c182(0x4c8)](_0x1e5baf,_0x242e39,_0x31b16a),_0x5948e7=_0x4630c3[_0xa9c182(0x353)](_0x1e5baf,_0x31b16a),_0x561e0f=_0x2c9857==null?void 0x0:_0x2c9857[_0xa9c182(0x30c)][_0xa9c182(0x3a7)][_0x5d8c4c];if(!_0x561e0f||!_0x5948e7||!(_0x2c9857[_0xa9c182(0x30c)]['rowFields'][_0xa9c182(0x3a9)](_0x5d8c4c)||_0x2c9857[_0xa9c182(0x30c)][_0xa9c182(0x310)]['includes'](_0x5d8c4c)))return;let _0x2a7652=_0x5948e7[_0xa9c182(0x287)][_0x561e0f[_0xa9c182(0x3cd)]];if(!_0x2a7652)return;let _0x176131=ce(_0x2a7652,_0x5948e7);if(_0x176131)return{'unitId':_0x1e5baf,'subUnitId':_0x242e39,'pivotTableId':_0x31b16a,'tableFieldId':_0x5d8c4c,'targetFieldName':_0x561e0f['displayName'],..._0x176131};}const ue={'id':_0x14e1ea(0x63b),'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],async 'handler'(_0x4c27d9){const _0x567eb0=_0x14e1ea;let _0x496791=le(_0x4c27d9);if(!_0x496791)return!0x1;let _0x8ee380=_0x4c27d9[_0x567eb0(0x489)](t[_0x567eb0(0x6ad)]),_0x1a9385=_0x8ee380[_0x567eb0(0x353)](_0x496791[_0x567eb0(0x1c8)],_0x496791[_0x567eb0(0x1ec)]),_0x1fde7c=_0x8ee380[_0x567eb0(0x4c8)](_0x496791[_0x567eb0(0x1c8)],_0x496791['subUnitId'],_0x496791[_0x567eb0(0x1ec)]),_0x3c3295=_0x4c27d9[_0x567eb0(0x489)](n[_0x567eb0(0x642)]),_0x4fbcc2=()=>{const _0x53ec33=_0x567eb0;let _0x2e4d64=le(_0x4c27d9);return!!_0x2e4d64&&_0x2e4d64[_0x53ec33(0x1c8)]===_0x496791['unitId']&&_0x2e4d64['subUnitId']===_0x496791[_0x53ec33(0x465)]&&_0x2e4d64[_0x53ec33(0x1ec)]===_0x496791['pivotTableId']&&_0x2e4d64['tableFieldId']===_0x496791[_0x53ec33(0x5df)]&&_0x2e4d64[_0x53ec33(0x5d6)]===_0x496791[_0x53ec33(0x5d6)]&&JSON['stringify'](_0x2e4d64[_0x53ec33(0x205)])===JSON['stringify'](_0x496791[_0x53ec33(0x205)]);},_0x2392b2=_0x4c27d9[_0x567eb0(0x489)](i[_0x567eb0(0x544)]),_0x3ae432=_0x4c27d9[_0x567eb0(0x489)](n[_0x567eb0(0x2a4)]),_0x31a750=null,_0x4e0879=!0x1,_0x4ea6e6=!0x1,_0x91936f=new o[(_0x567eb0(0x532))](),_0x1b866c=async()=>{const _0x6ac3f4=_0x567eb0;if(!_0x4e0879&&_0x4fbcc2())try{let _0x16e3e7=(await _0x4c27d9[_0x6ac3f4(0x489)](t[_0x6ac3f4(0x6b9)])['getPivotDisplayConfig']({'unitId':_0x496791[_0x6ac3f4(0x1c8)],'subUnitId':_0x496791['subUnitId'],'pivotTableId':_0x496791[_0x6ac3f4(0x1ec)],'params':{'type':t[_0x6ac3f4(0x32d)][_0x6ac3f4(0x5ea)],'numberGroupDefaults':{'tableFieldId':_0x496791[_0x6ac3f4(0x5df)]}}}))[_0x6ac3f4(0x2d5)]['numberGroupDefaults'];return!_0x4e0879&&_0x4fbcc2()&&_0x16e3e7&&se(_0x16e3e7)?_0x16e3e7:void 0x0;}catch{return;}},_0xc5e5f1=()=>{const _0x1a2b09=_0x567eb0;_0x4e0879||(_0x4e0879=!0x0,_0x91936f[_0x1a2b09(0x65a)](),_0x91936f['complete'](),_0x31a750==null||_0x31a750['dispose'](),_0x31a750=null);},_0x49ea9d=await _0x1b866c();if(!_0x49ea9d)return _0xc5e5f1(),!0x1;let _0x6543b3=_0x3c3295[_0x567eb0(0x49d)]['pipe']((0x0,o[_0x567eb0(0x327)])(_0x510437=>_0x510437[_0x567eb0(0x37d)]()===_0x496791[_0x567eb0(0x1c8)]),(0x0,o[_0x567eb0(0x514)])(_0xc5e5f1)),_0x105817=(0x0,o['defer'])(()=>{const _0x377a58=_0x567eb0;if(_0x4e0879||!_0x3c3295[_0x377a58(0x3e5)](_0x496791[_0x377a58(0x1c8)]))return _0xc5e5f1(),o[_0x377a58(0x6c9)];let _0x51751f=_0x8ee380[_0x377a58(0x32e)](_0x496791[_0x377a58(0x1c8)],_0x496791['subUnitId'],_0x496791[_0x377a58(0x1ec)])[_0x377a58(0x3b1)]((0x0,o[_0x377a58(0x4a2)])(0x0),(0x0,o['map'])(()=>void 0x0));return(0x0,o['merge'])((0x0,o['of'])(_0x49ea9d),_0x51751f)[_0x377a58(0x3b1)]((0x0,o[_0x377a58(0x49f)])(_0x1933e9=>_0x1933e9&&_0x8ee380['getCollection'](_0x496791['unitId'],_0x496791['pivotTableId'])===_0x1a9385&&_0x8ee380['getPivotTableConfig'](_0x496791[_0x377a58(0x1c8)],_0x496791['subUnitId'],_0x496791['pivotTableId'])===_0x1fde7c?(0x0,o['of'])(_0x1933e9):(0x0,o['concat'])((0x0,o['of'])(void 0x0),_0x1b866c())),(0x0,o[_0x377a58(0x1ad)])((0x0,o[_0x377a58(0x2da)])(_0x91936f,_0x6543b3)));}),_0x370243=async _0x2afc67=>{const _0xd9b9d=_0x567eb0;if(!(_0x4ea6e6||_0x4e0879)){_0x4ea6e6=!0x0;try{if(!se(_0x2afc67)||!_0x4fbcc2())return;await _0x4c27d9[_0xd9b9d(0x489)](n['ICommandService'])[_0xd9b9d(0x2f1)](t[_0xd9b9d(0x4a7)]['id'],{'unitId':_0x496791['unitId'],'subUnitId':_0x496791[_0xd9b9d(0x465)],'pivotTableId':_0x496791[_0xd9b9d(0x1ec)],'tableFieldId':_0x496791[_0xd9b9d(0x5df)],'grouping':{..._0x2afc67}});}catch{}finally{_0xc5e5f1();}}};try{_0x31a750=_0x2392b2[_0x567eb0(0x566)]({'id':_0x567eb0(0x602),'title':{'title':_0x3ae432['t'](_0x567eb0(0x34a))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':O,'props':{'targetFieldName':_0x496791[_0x567eb0(0x577)],'grouping':_0x496791[_0x567eb0(0x205)],'defaults$':_0x105817,'onConfirm':_0x370243,'onCancel':_0xc5e5f1}}},'onClose':_0xc5e5f1});}catch{return _0xc5e5f1(),!0x1;}return!0x0;}},de=[{'type':e[_0x14e1ea(0x441)]['normal'],'localeKey':_0x14e1ea(0x2a3),'requiresParameters':!0x1,'baseItemMode':_0x14e1ea(0x564)},{'type':e['PivotShowAsTypeEnum'][_0x14e1ea(0x3c0)],'localeKey':_0x14e1ea(0x4c4),'requiresParameters':!0x1,'baseItemMode':_0x14e1ea(0x564)},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x3d8)],'localeKey':_0x14e1ea(0x57f),'requiresParameters':!0x1,'baseItemMode':_0x14e1ea(0x564)},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x667)],'localeKey':_0x14e1ea(0x5f0),'requiresParameters':!0x1,'baseItemMode':'none'},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x1eb)],'localeKey':_0x14e1ea(0x2c3),'requiresParameters':!0x1,'baseItemMode':_0x14e1ea(0x564)},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x262)],'localeKey':'sheets-pivot-ui.showValuesAs.percentOfParentColumnTotal','requiresParameters':!0x1,'baseItemMode':'none'},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x34b)],'localeKey':_0x14e1ea(0x64e),'requiresParameters':!0x1,'baseItemMode':'none'},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x393)],'localeKey':_0x14e1ea(0x431),'requiresParameters':!0x0,'baseItemMode':'none','parentFieldOnly':!0x0},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x1ef)],'localeKey':'sheets-pivot-ui.showValuesAs.percentOf','requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x2e6)},{'type':e['PivotShowAsTypeEnum'][_0x14e1ea(0x242)],'localeKey':_0x14e1ea(0x1db),'requiresParameters':!0x0,'baseItemMode':'item-or-relative'},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x482)],'localeKey':_0x14e1ea(0x1a1),'requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x637)},{'type':e['PivotShowAsTypeEnum'][_0x14e1ea(0x6c5)],'localeKey':_0x14e1ea(0x6c1),'requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x564)},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x6a0)],'localeKey':'sheets-pivot-ui.showValuesAs.percentRunningTotal','requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x564)},{'type':e[_0x14e1ea(0x441)][_0x14e1ea(0x1cf)],'localeKey':_0x14e1ea(0x436),'requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x564)},{'type':e['PivotShowAsTypeEnum']['rankDescending'],'localeKey':_0x14e1ea(0x64a),'requiresParameters':!0x0,'baseItemMode':_0x14e1ea(0x564)}],fe={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':'sheet.operation.set-pivot-show-data-as',async 'handler'(_0x5931f1,_0x325d01){const _0x4069af=_0x14e1ea;let _0x18a25b=_0x325d01&&de['find'](_0x5a33b0=>_0x5a33b0['type']===_0x325d01[_0x4069af(0x314)]);if(!_0x18a25b)return!0x1;let _0x25cc1d=me(_0x5931f1);if(!_0x25cc1d)return!0x1;if(!_0x18a25b[_0x4069af(0x1d3)])return _0x5931f1['get'](n[_0x4069af(0x27a)])[_0x4069af(0x2f1)](t['UpdatePivotFieldSettingCommand']['id'],{'unitId':_0x25cc1d[_0x4069af(0x1c8)],'subUnitId':_0x25cc1d[_0x4069af(0x465)],'pivotTableId':_0x25cc1d[_0x4069af(0x1ec)],'tableFieldId':_0x25cc1d[_0x4069af(0x5df)],'showDataAs':{'type':_0x18a25b[_0x4069af(0x314)],'baseFieldId':'','baseItem':''},'tableFieldInfo':_0x25cc1d['tableFieldInfo'],'dataFieldInfo':_0x25cc1d['dataFieldInfo']});let _0xd93aee=he(_0x5931f1,_0x25cc1d);if(!_0xd93aee)return!0x1;let _0x1ab713=pe(_0xd93aee['config'],_0xd93aee[_0x4069af(0x6e8)],_0x18a25b);if(_0x1ab713[_0x4069af(0x2f3)]===0x0)return!0x1;let _0x4b8339={};if(_0x18a25b[_0x4069af(0x23a)]!==_0x4069af(0x564)){try{_0x4b8339=await ge(_0x5931f1,_0xd93aee[_0x4069af(0x6df)],_0x25cc1d[_0x4069af(0x1ec)],_0x1ab713);}catch{return!0x1;}if(!_0x1ab713[_0x4069af(0x47b)](_0x8b285e=>_0x4b8339[_0x8b285e]&&(_0x18a25b[_0x4069af(0x23a)]===_0x4069af(0x637)||_0x4b8339[_0x8b285e][_0x4069af(0x2fc)][_0x4069af(0x2f3)]>0x0)))return!0x1;}let _0x5a0150=_0x5931f1[_0x4069af(0x489)](i[_0x4069af(0x544)]),_0x2766e8=_0x5931f1[_0x4069af(0x489)](n[_0x4069af(0x2a4)]),_0x3b8435=null,_0x31be6d=!0x1,_0x42b8ca=!0x1,_0x53c43f=()=>{const _0x529eb7=_0x4069af;_0x31be6d||(_0x31be6d=!0x0,_0x3b8435==null||_0x3b8435[_0x529eb7(0x1aa)](),_0x3b8435=null);};try{_0x3b8435=_0x5a0150[_0x4069af(0x566)]({'id':_0x4069af(0x57a),'title':{'title':_0x2766e8['t'](_0x4069af(0x4b1))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':T,'props':{'unitId':_0x25cc1d[_0x4069af(0x1c8)],'subUnitId':_0x25cc1d[_0x4069af(0x465)],'pivotTableId':_0x25cc1d[_0x4069af(0x1ec)],'tableFieldId':_0x25cc1d[_0x4069af(0x5df)],'type':_0x18a25b[_0x4069af(0x314)],'baseItems':_0x4b8339,'onCancel':_0x53c43f,'onConfirm':async _0x5d99cb=>{const _0x36f7ed=_0x4069af;if(!_0x42b8ca){_0x42b8ca=!0x0;try{let _0x51929c=he(_0x5931f1,_0x25cc1d);if(!_0x51929c||!_e(_0x51929c[_0x36f7ed(0x6df)],_0x51929c[_0x36f7ed(0x6e8)],_0x18a25b,_0x5d99cb))return;if(_0x18a25b[_0x36f7ed(0x23a)]!==_0x36f7ed(0x564)&&_0x5d99cb[_0x36f7ed(0x362)]===void 0x0){var _0x123ec2;if(!((_0x123ec2=(await ge(_0x5931f1,_0x51929c[_0x36f7ed(0x6df)],_0x51929c[_0x36f7ed(0x3c6)][_0x36f7ed(0x1ec)],[_0x5d99cb[_0x36f7ed(0x1f7)]]))[_0x5d99cb[_0x36f7ed(0x1f7)]])!=null&&_0x123ec2[_0x36f7ed(0x2fc)][_0x36f7ed(0x3a9)](_0x5d99cb['baseItem'])))return;}await _0x5931f1[_0x36f7ed(0x489)](n[_0x36f7ed(0x27a)])['executeCommand'](t[_0x36f7ed(0x6e2)]['id'],{'unitId':_0x51929c[_0x36f7ed(0x3c6)][_0x36f7ed(0x1c8)],'subUnitId':_0x51929c['context'][_0x36f7ed(0x465)],'pivotTableId':_0x51929c[_0x36f7ed(0x3c6)][_0x36f7ed(0x1ec)],'tableFieldId':_0x51929c[_0x36f7ed(0x3c6)][_0x36f7ed(0x5df)],'showDataAs':_0x5d99cb,'tableFieldInfo':_0x51929c[_0x36f7ed(0x3c6)][_0x36f7ed(0x6ee)],'dataFieldInfo':_0x51929c[_0x36f7ed(0x3c6)]['dataFieldInfo']});}catch{}finally{_0x53c43f();}}}}}},'onClose':_0x53c43f});}catch{return _0x53c43f(),!0x1;}return!0x0;}};function pe(_0xe8cafa,_0x32909f,_0x58ed64){const _0x4e2e63=_0x14e1ea;let {rowFields:_0xcba73b,columnFields:_0x3dced4,dimension:_0x26194c}=_0xe8cafa[_0x4e2e63(0x30c)];return(_0x58ed64[_0x4e2e63(0x6cb)]?[..._0xcba73b[_0x4e2e63(0x5e1)](0x0,-0x1),..._0x3dced4[_0x4e2e63(0x5e1)](0x0,-0x1)]:[..._0xcba73b,..._0x3dced4])[_0x4e2e63(0x327)](_0x484036=>{const _0xd0c455=_0x4e2e63;let _0x5256b7=_0x26194c[_0x484036];return!!(_0x5256b7&&(_0x32909f[_0xd0c455(0x287)][_0x5256b7[_0xd0c455(0x3cd)]]||_0x32909f[_0xd0c455(0x358)][_0xd0c455(0x1ba)](_0x46ccd0=>_0x46ccd0['id']===_0x5256b7['dataFieldId'])));});}function me(_0x302c9){const _0xdabf51=_0x14e1ea;var _0x13b783,_0xa725e0;let _0x4b6beb=(0x0,r[_0xdabf51(0x3de)])(_0x302c9[_0xdabf51(0x489)](n['IUniverInstanceService'])),_0x387f45=(_0x13b783=_0x302c9[_0xdabf51(0x489)](r[_0xdabf51(0x288)])[_0xdabf51(0x62c)]())==null?void 0x0:_0x13b783[_0xdabf51(0x5b8)];if(!_0x4b6beb||!_0x387f45)return;let {unitId:_0x1ee67a,subUnitId:_0x5ed8ac}=_0x4b6beb,_0x487c79=_0x387f45['startRow'],_0x1a2b6d=_0x387f45['startColumn'],_0x224aa9=_0x302c9[_0xdabf51(0x489)](t[_0xdabf51(0x504)]),_0x2332d4=_0x224aa9[_0xdabf51(0x410)](_0x1ee67a,_0x5ed8ac,_0x487c79,_0x1a2b6d);if(!_0x2332d4)return;let _0x247024=_0x302c9[_0xdabf51(0x489)](t[_0xdabf51(0x6ad)])['getPivotTableConfig'](_0x1ee67a,_0x5ed8ac,_0x2332d4),_0x12642c=_0x224aa9[_0xdabf51(0x43a)](_0x1ee67a,_0x5ed8ac,_0x2332d4),_0xb892ff=_0x224aa9['getPivotTableCellData'](_0x1ee67a,_0x5ed8ac,_0x487c79,_0x1a2b6d);if(!_0x247024||!_0x12642c)return;let _0x213603=(0x0,t[_0xdabf51(0x2b9)])(_0x487c79,_0x1a2b6d,_0xb892ff,_0x12642c);if(!_0x213603)return;let _0x484140=(0x0,t['resolvePivotValueFieldId'])(_0x213603,_0x247024[_0xdabf51(0x30c)][_0xdabf51(0x6f1)]);if(_0x484140)return(_0xa725e0=he(_0x302c9,{'unitId':_0x1ee67a,'subUnitId':_0x5ed8ac,'pivotTableId':_0x2332d4,'tableFieldId':_0x484140}))==null?void 0x0:_0xa725e0[_0xdabf51(0x3c6)];}function he(_0x191914,_0x1c3afb){const _0x1d2dfa=_0x14e1ea;let {unitId:_0x37e339,subUnitId:_0x578ca9,pivotTableId:_0x54ab39,tableFieldId:_0x315be5}=_0x1c3afb,_0x2be3fc=_0x191914['get'](t[_0x1d2dfa(0x6ad)]),_0x53646d=_0x2be3fc[_0x1d2dfa(0x4c8)](_0x37e339,_0x578ca9,_0x54ab39),_0x5b1be7=_0x2be3fc['getCollection'](_0x37e339,_0x54ab39),_0x25be36=_0x53646d==null?void 0x0:_0x53646d[_0x1d2dfa(0x30c)]['measure'][_0x315be5];if(!_0x53646d||!_0x5b1be7||!_0x25be36||!_0x53646d[_0x1d2dfa(0x30c)][_0x1d2dfa(0x6f1)][_0x1d2dfa(0x3a9)](_0x25be36['id']))return;let _0x357e0f=_0x5b1be7[_0x1d2dfa(0x287)][_0x25be36[_0x1d2dfa(0x3cd)]]??_0x5b1be7[_0x1d2dfa(0x358)][_0x1d2dfa(0x1ba)](_0x31900b=>_0x31900b['id']===_0x25be36[_0x1d2dfa(0x3cd)]);if(!_0x357e0f)return;let _0x9ecc76={..._0x25be36[_0x1d2dfa(0x269)]};return{'config':_0x53646d,'collection':_0x5b1be7,'context':{'unitId':_0x37e339,'subUnitId':_0x578ca9,'pivotTableId':_0x54ab39,'tableFieldId':_0x25be36['id'],'currentShowDataAs':_0x9ecc76,'tableFieldInfo':{'tableFieldId':_0x25be36['id'],'displayName':_0x25be36[_0x1d2dfa(0x2db)],'dataFieldId':_0x25be36[_0x1d2dfa(0x3cd)],'format':_0x25be36['format'],'subTotalType':_0x25be36[_0x1d2dfa(0x1da)],'showDataAs':{..._0x9ecc76}},'dataFieldInfo':{'id':_0x357e0f['id'],'dataFieldId':_0x357e0f['id'],'name':_0x357e0f[_0x1d2dfa(0x6d0)],'type':_0x357e0f[_0x1d2dfa(0x5c5)],'checked':!0x0,'pivotTableId':_0x54ab39}}};}async function ge(_0x5d4185,_0x2172dd,_0x41fe7f,_0x56f26e){const _0xe5ef7a=_0x14e1ea;let {unitId:_0x4e5932,subUnitId:_0x2e5f2d}=_0x2172dd[_0xe5ef7a(0x340)],_0x1b9848=_0x2172dd[_0xe5ef7a(0x340)],_0x40fcdf=_0x5d4185[_0xe5ef7a(0x489)](t['SheetsPivotTableAdaptorModel'])['getPivotItemRenderInfoCache'](_0x4e5932,_0x2e5f2d,_0x41fe7f);if(!_0x40fcdf)throw Error(_0xe5ef7a(0x4b2));return(await Promise[_0xe5ef7a(0x4e8)](_0x56f26e['map'](async _0x28cbea=>{const _0xf9cd9f=_0xe5ef7a;try{return[_0x28cbea,(await _0x5d4185[_0xf9cd9f(0x489)](t[_0xf9cd9f(0x6b9)])['getPivotDisplayConfig']({'unitId':_0x4e5932,'subUnitId':_0x2e5f2d,'pivotTableId':_0x41fe7f,'params':{'type':t[_0xf9cd9f(0x32d)][_0xf9cd9f(0x1d0)],'filter':{'row':_0x1b9848[_0xf9cd9f(0x5f4)],'col':_0x1b9848['col'],'tableFieldId':_0x28cbea,'pivotItemRenderInfoCache':_0x40fcdf}}}))[_0xf9cd9f(0x2d5)]['filter']];}catch{return[_0x28cbea,void 0x0];}})))[_0xe5ef7a(0x58d)]((_0x4b933e,[_0x39d9df,_0x2ea750])=>(_0x2ea750&&(_0x4b933e[_0x39d9df]={'items':_0x2ea750[_0xe5ef7a(0x2fc)],'itemTypes':_0x2ea750['itemTypes'],..._0x2ea750[_0xe5ef7a(0x6b5)]?{'itemLabels':_0x2ea750['itemLabels']}:{},'format':_0x2ea750[_0xe5ef7a(0x65d)]}),_0x4b933e),{});}function _0x13f1(_0xfb0895,_0x1ff208){_0xfb0895=_0xfb0895-0x19b;const _0x16e1ec=_0x16e1();let _0x13f146=_0x16e1ec[_0xfb0895];return _0x13f146;}function _e(_0x2e0fdf,_0x17c18a,_0x25867e,_0x47ef90){const _0x3c286d=_0x14e1ea;return _0x47ef90['type']!==_0x25867e[_0x3c286d(0x314)]||!pe(_0x2e0fdf,_0x17c18a,_0x25867e)[_0x3c286d(0x3a9)](_0x47ef90[_0x3c286d(0x1f7)])?!0x1:_0x25867e[_0x3c286d(0x23a)]===_0x3c286d(0x564)?_0x47ef90[_0x3c286d(0x3a1)]===''&&_0x47ef90['baseItemType']===void 0x0:_0x47ef90[_0x3c286d(0x362)]===void 0x0?_0x47ef90['baseItem']!=='':_0x25867e[_0x3c286d(0x23a)]===_0x3c286d(0x637)&&_0x47ef90['baseItem']===''&&(_0x47ef90['baseItemType']===e['PivotShowAsBaseItemTypeEnum'][_0x3c286d(0x3ac)]||_0x47ef90['baseItemType']===e['PivotShowAsBaseItemTypeEnum']['next']);}function ve(_0x1167f0){const _0x4a1f76=_0x14e1ea;return{..._0x1167f0,'expected':Array[_0x4a1f76(0x20e)](_0x1167f0[_0x4a1f76(0x2fb)])?_0x1167f0['expected'][_0x4a1f76(0x63e)]():_0x1167f0[_0x4a1f76(0x2fb)]};}function ye(_0x30c122,_0x26fbb7){const _0x661dfa=_0x14e1ea;let _0x871d00=_0x30c122['get'](t[_0x661dfa(0x6ad)])[_0x661dfa(0x4c8)](_0x26fbb7[_0x661dfa(0x1c8)],_0x26fbb7[_0x661dfa(0x465)],_0x26fbb7['pivotTableId']);if(_0x871d00&&_0x871d00[_0x661dfa(0x30c)]['dimension'][_0x26fbb7['targetFieldId']]&&(_0x871d00[_0x661dfa(0x30c)][_0x661dfa(0x40c)]['includes'](_0x26fbb7[_0x661dfa(0x3ef)])||_0x871d00[_0x661dfa(0x30c)][_0x661dfa(0x310)][_0x661dfa(0x3a9)](_0x26fbb7[_0x661dfa(0x3ef)])))return _0x871d00;}function be(_0x17bf8a){const _0xc4b6ee=_0x14e1ea;var _0x4a44b4,_0x511fb2;let _0x3892f6=(0x0,r[_0xc4b6ee(0x3de)])(_0x17bf8a[_0xc4b6ee(0x489)](n[_0xc4b6ee(0x642)])),_0x1ec839=(_0x4a44b4=_0x17bf8a['get'](r[_0xc4b6ee(0x288)])['getCurrentLastSelection']())==null?void 0x0:_0x4a44b4[_0xc4b6ee(0x5b8)];if(!_0x3892f6||!_0x1ec839)return;let {unitId:_0x1b8fba,subUnitId:_0x1133ea}=_0x3892f6,_0x97b0d3=_0x1ec839['startRow'],_0x39f7e3=_0x1ec839[_0xc4b6ee(0x695)],_0x19846b=_0x17bf8a['get'](t[_0xc4b6ee(0x504)]),_0x3e1f63=_0x19846b[_0xc4b6ee(0x410)](_0x1b8fba,_0x1133ea,_0x97b0d3,_0x39f7e3);if(!_0x3e1f63)return;let _0x20e890=_0x17bf8a[_0xc4b6ee(0x489)](t['SheetsPivotTableConfigModel'])[_0xc4b6ee(0x4c8)](_0x1b8fba,_0x1133ea,_0x3e1f63),_0x4a015a=_0x19846b[_0xc4b6ee(0x43a)](_0x1b8fba,_0x1133ea,_0x3e1f63);if(!_0x20e890||!_0x4a015a)return;let _0x2ed17a=(0x0,t[_0xc4b6ee(0x2b9)])(_0x97b0d3,_0x39f7e3,_0x19846b[_0xc4b6ee(0x517)](_0x1b8fba,_0x1133ea,_0x97b0d3,_0x39f7e3),_0x4a015a),_0x18ebb0=_0x2ed17a&&(0x0,t[_0xc4b6ee(0x2d8)])(_0x2ed17a,_0x20e890[_0xc4b6ee(0x30c)]);if(!_0x18ebb0)return;let _0x4564a5=_0x20e890[_0xc4b6ee(0x30c)][_0xc4b6ee(0x3a7)][_0x18ebb0[_0xc4b6ee(0x3ef)]],_0x4e79a8=_0x20e890[_0xc4b6ee(0x30c)][_0xc4b6ee(0x6f1)][_0xc4b6ee(0x2ae)](_0x4a0e85=>{const _0x1cf96f=_0xc4b6ee;let _0x1f9ca7=_0x20e890['fieldsConfig']['measure'][_0x4a0e85];return _0x1f9ca7?[{'id':_0x1f9ca7['id'],'label':_0x1f9ca7[_0x1cf96f(0x2db)]}]:[];});if(!_0x4564a5||_0x4e79a8[_0xc4b6ee(0x2f3)]===0x0)return;let _0x4a1af5=(_0x511fb2=_0x20e890[_0xc4b6ee(0x30c)][_0xc4b6ee(0x409)])==null||(_0x511fb2=_0x511fb2[_0xc4b6ee(0x1ba)](_0x4343dd=>_0x4343dd[_0xc4b6ee(0x3f1)]===_0x18ebb0['targetFieldId']))==null?void 0x0:_0x511fb2[_0xc4b6ee(0x4f0)];return{'unitId':_0x1b8fba,'subUnitId':_0x1133ea,'pivotTableId':_0x3e1f63,'targetFieldId':_0x18ebb0[_0xc4b6ee(0x3ef)],'targetFieldName':_0x4564a5[_0xc4b6ee(0x2db)],'valueFields':_0x4e79a8,'defaultValueFieldId':_0x18ebb0[_0xc4b6ee(0x36c)],..._0x4a1af5?{'currentFilter':ve(_0x4a1af5)}:{}};}const xe={'type':n['CommandType'][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x66e),async 'handler'(_0x5ed263){const _0xfbf99a=_0x14e1ea;let _0x538a8d=be(_0x5ed263);if(!_0x538a8d)return!0x1;let _0x396986=_0x5ed263[_0xfbf99a(0x489)](i[_0xfbf99a(0x544)]),_0x1546c0=_0x5ed263['get'](n['LocaleService']),_0x1e3c9a=null,_0x4555e9=!0x1,_0x353764=!0x1,_0x4020f8=()=>{_0x4555e9||(_0x4555e9=!0x0,_0x1e3c9a==null||_0x1e3c9a['dispose'](),_0x1e3c9a=null);},_0x40d830=async _0x159432=>{const _0x1fb976=_0xfbf99a;if(!_0x353764){_0x353764=!0x0;try{let _0x28c014=ye(_0x5ed263,_0x538a8d);if(!_0x28c014||_0x159432&&(!_0x28c014[_0x1fb976(0x30c)]['measure'][_0x159432[_0x1fb976(0x2df)]]||!_0x28c014[_0x1fb976(0x30c)]['valueFields']['includes'](_0x159432[_0x1fb976(0x2df)])||!(0x0,e[_0x1fb976(0x2e9)])(_0x159432[_0x1fb976(0x663)])))return;await _0x5ed263[_0x1fb976(0x489)](n['ICommandService'])['executeCommand'](t[_0x1fb976(0x6ef)]['id'],{'unitId':_0x538a8d[_0x1fb976(0x1c8)],'subUnitId':_0x538a8d[_0x1fb976(0x465)],'pivotTableId':_0x538a8d[_0x1fb976(0x1ec)],'fieldId':_0x538a8d[_0x1fb976(0x3ef)],'valueFilterInfo':_0x159432?{..._0x159432,'type':e[_0x1fb976(0x3c1)][_0x1fb976(0x360)],'expected':Array[_0x1fb976(0x20e)](_0x159432['expected'])?_0x159432[_0x1fb976(0x2fb)]['concat']():_0x159432['expected']}:void 0x0});}catch{}finally{_0x4020f8();}}};try{_0x1e3c9a=_0x396986[_0xfbf99a(0x566)]({'id':_0xfbf99a(0x4d6),'title':{'title':_0x1546c0['t'](_0xfbf99a(0x6e5))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x1a4,'children':{'label':{'name':E,'props':{'targetFieldId':_0x538a8d[_0xfbf99a(0x3ef)],'targetFieldName':_0x538a8d[_0xfbf99a(0x577)],'valueFields':_0x538a8d[_0xfbf99a(0x6f1)],'defaultValueFieldId':_0x538a8d[_0xfbf99a(0x36c)],'currentFilter':_0x538a8d[_0xfbf99a(0x668)],'onConfirm':_0x48359f=>_0x40d830(_0x48359f),'onClear':()=>_0x40d830(void 0x0),'onCancel':_0x4020f8}}},'onClose':_0x4020f8});}catch{return _0x4020f8(),!0x1;}return!0x0;}},Se=_0x14e1ea(0x5e5),Ce='sheet.pivot.context-menu.excel-date-group',we='sheet.pivot.context-menu.number-group',Te=_0x14e1ea(0x3fc),Ee='sheet.pivot.context-menu.manual-rename',De=_0x14e1ea(0x38f),Oe=_0x14e1ea(0x6a5),ke=_0x14e1ea(0x35d),Ae={'year':_0x14e1ea(0x550),'year-quarter':_0x14e1ea(0x3d9),'quarter':'sheets-pivot-ui.dateGroup.quarter','year-month':_0x14e1ea(0x1ea),'month':_0x14e1ea(0x3b7),'month-date':_0x14e1ea(0x26d),'year-month-date':_0x14e1ea(0x6a8),'date':_0x14e1ea(0x2ba),'hour':_0x14e1ea(0x633),'minute':_0x14e1ea(0x639),'hour-minute':_0x14e1ea(0x5fd)};function je(_0x5af231){const _0x201d41=_0x14e1ea;return{'id':N['id'],'type':i[_0x201d41(0x594)][_0x201d41(0x529)],'icon':_0x201d41(0x4f4),'hidden$':(0x0,i['getMenuHiddenObservable'])(_0x5af231,n[_0x201d41(0x548)][_0x201d41(0x640)]),'disabled$':(0x0,a[_0x201d41(0x302)])(_0x5af231,(0x0,a['getCurrentRangeDisable$'])(_0x5af231,{'workbookTypes':[r[_0x201d41(0x4ff)]],'worksheetTypes':[r['WorksheetViewPermission'],r[_0x201d41(0x647)]],'rangeTypes':[r['RangeProtectionPermissionViewPoint']]})),'tooltip':_0x201d41(0x225),'title':_0x201d41(0x225)};}function Me(_0x2b526c){const _0x34aef6=_0x14e1ea;return{'id':Se,'type':i['MenuItemType'][_0x34aef6(0x1bf)],'title':_0x34aef6(0x61a),'hidden$':Be(_0x2b526c)};}function Ne(_0x23d5b7){const _0x5c17fb=_0x14e1ea;return{'id':Ce,'commandId':z['id'],'type':i[_0x5c17fb(0x594)][_0x5c17fb(0x529)],'title':_0x5c17fb(0x37c),'hidden$':U(_0x23d5b7)[_0x5c17fb(0x3b1)]((0x0,o[_0x5c17fb(0x505)])(()=>!R(_0x23d5b7)))};}function Pe(_0x568238){const _0x591238=_0x14e1ea;return{'id':we,'commandId':ue['id'],'type':i[_0x591238(0x594)][_0x591238(0x529)],'title':_0x591238(0x34a),'hidden$':U(_0x568238)[_0x591238(0x3b1)]((0x0,o[_0x591238(0x505)])(()=>!le(_0x568238)))};}function Fe(_0x10760a){const _0x18fab8=_0x14e1ea;return{'id':Te,'commandId':ie['id'],'type':i[_0x18fab8(0x594)][_0x18fab8(0x529)],'title':'sheets-pivot-ui.manualGroup.groupTitle','hidden$':U(_0x10760a)[_0x18fab8(0x3b1)]((0x0,o[_0x18fab8(0x505)])(()=>!te(_0x10760a,_0x18fab8(0x427))))};}function Ie(_0x2b00db){const _0x437537=_0x14e1ea;return{'id':Ee,'commandId':ae['id'],'type':i[_0x437537(0x594)][_0x437537(0x529)],'title':_0x437537(0x1b5),'hidden$':U(_0x2b00db)['pipe']((0x0,o[_0x437537(0x505)])(()=>!te(_0x2b00db,_0x437537(0x5ab))))};}function Le(_0x1677bc){const _0x15ccf3=_0x14e1ea;return{'id':De,'commandId':oe['id'],'type':i[_0x15ccf3(0x594)][_0x15ccf3(0x529)],'title':'sheets-pivot-ui.manualGroup.ungroupTitle','hidden$':U(_0x1677bc)[_0x15ccf3(0x3b1)]((0x0,o[_0x15ccf3(0x505)])(()=>!te(_0x1677bc,_0x15ccf3(0x345))))};}function Re(_0x3a6d70){const _0x1e211e=_0x14e1ea;return _0x1ba37c=>({'id':ze(_0x3a6d70),'commandId':F['id'],'type':i[_0x1e211e(0x594)][_0x1e211e(0x529)],'title':Ae[_0x3a6d70],'params':{'dateType':_0x3a6d70},'disabled$':Ve(_0x1ba37c,_0x3a6d70),'activated$':He(_0x1ba37c,_0x3a6d70)});}function ze(_0x1fef97){return'sheet.pivot.context-menu.date-group.'+_0x1fef97;}function Be(_0x2bf4a9){const _0x456602=_0x14e1ea;return U(_0x2bf4a9)[_0x456602(0x3b1)]((0x0,o[_0x456602(0x505)])(()=>!I(_0x2bf4a9)));}function Ve(_0x4398f9,_0x1c03d2){const _0x4fb9e2=_0x14e1ea;return U(_0x4398f9)[_0x4fb9e2(0x3b1)]((0x0,o[_0x4fb9e2(0x505)])(()=>{const _0xb94897=_0x4fb9e2;let _0x5d7a7d=I(_0x4398f9);return!_0x5d7a7d||(0x0,t[_0xb94897(0x45c)])(_0x5d7a7d[_0xb94897(0x59e)],_0x1c03d2);}));}function He(_0xe75dd2,_0x41c828){const _0x42eafc=_0x14e1ea;return U(_0xe75dd2)[_0x42eafc(0x3b1)]((0x0,o['map'])(()=>{const _0x3e37a0=_0x42eafc;let _0x1f11d6=I(_0xe75dd2);return(_0x1f11d6==null?void 0x0:_0x1f11d6[_0x3e37a0(0x59e)][_0x3e37a0(0x46b)])===_0x41c828;}));}function U(_0x5d73a4){const _0x4815b0=_0x14e1ea;let _0x56d120=_0x5d73a4['get'](t[_0x4815b0(0x6ad)]),_0x534802=()=>{const _0x145f79=_0x4815b0;var _0x14cda4;let _0x463dee=(0x0,r[_0x145f79(0x3de)])(_0x5d73a4[_0x145f79(0x489)](n['IUniverInstanceService'])),_0x4e7fd4=(_0x14cda4=_0x5d73a4['get'](r['SheetsSelectionsService'])[_0x145f79(0x62c)]())==null?void 0x0:_0x14cda4[_0x145f79(0x5b8)];if(!_0x463dee||!_0x4e7fd4)return;let {unitId:_0x285b6b,subUnitId:_0x11eecb}=_0x463dee,_0x43175b=_0x5d73a4[_0x145f79(0x489)](t[_0x145f79(0x504)])['getPivotTableIdByCell'](_0x285b6b,_0x11eecb,_0x4e7fd4[_0x145f79(0x254)],_0x4e7fd4[_0x145f79(0x695)]);return _0x43175b?{'unitId':_0x285b6b,'subUnitId':_0x11eecb,'pivotTableId':_0x43175b}:void 0x0;};return(0x0,o['merge'])(_0x5d73a4[_0x4815b0(0x489)](r[_0x4815b0(0x288)])[_0x4815b0(0x1a5)],_0x56d120['pivotConfigChange$'][_0x4815b0(0x3b1)]((0x0,o[_0x4815b0(0x327)])(_0x4f8dbd=>{const _0x28f243=_0x4815b0;let _0x195551=_0x534802();return(_0x195551==null?void 0x0:_0x195551[_0x28f243(0x1c8)])===_0x4f8dbd[_0x28f243(0x1c8)]&&_0x195551[_0x28f243(0x465)]===_0x4f8dbd[_0x28f243(0x465)]&&_0x195551[_0x28f243(0x1ec)]===_0x4f8dbd[_0x28f243(0x1ec)];})),_0x56d120[_0x4815b0(0x50e)][_0x4815b0(0x3b1)]((0x0,o['filter'])(_0x7cb965=>{const _0x148117=_0x4815b0;let _0x5dd019=_0x534802();if(!_0x5dd019||!_0x7cb965[_0x148117(0x44b)]['includes'](_0x5dd019[_0x148117(0x1ec)]))return!0x1;let _0x42de1f=_0x56d120[_0x148117(0x4c8)](_0x5dd019[_0x148117(0x1c8)],_0x5dd019[_0x148117(0x465)],_0x5dd019[_0x148117(0x1ec)]);return _0x7cb965[_0x148117(0x1c8)]===((_0x42de1f==null?void 0x0:_0x42de1f[_0x148117(0x64d)]['unitId'])??_0x5dd019[_0x148117(0x1c8)]);})))[_0x4815b0(0x3b1)]((0x0,o['startWith'])(null));}const Ue=t['PIVOT_DATE_GROUP_TYPES'][_0x14e1ea(0x505)](_0x3d7bf9=>({'dateType':_0x3d7bf9,'id':ze(_0x3d7bf9),'menuItemFactory':Re(_0x3d7bf9)}));function We(_0x11b596){const _0x395995=_0x14e1ea;return{'id':Oe,'type':i['MenuItemType'][_0x395995(0x1bf)],'title':_0x395995(0x3fe),'hidden$':qe(_0x11b596)[_0x395995(0x3b1)]((0x0,o[_0x395995(0x505)])(()=>!me(_0x11b596)))};}function Ge(_0x13476e){const _0x5e1c27=_0x14e1ea;return _0x2862f7=>({'id':Ke(_0x13476e[_0x5e1c27(0x314)]),'commandId':fe['id'],'type':i['MenuItemType'][_0x5e1c27(0x529)],'title':_0x13476e[_0x5e1c27(0x4b4)],'params':{'type':_0x13476e['type']},'activated$':qe(_0x2862f7)[_0x5e1c27(0x3b1)]((0x0,o[_0x5e1c27(0x505)])(()=>{const _0x3fafc2=_0x5e1c27;let _0x2f3b5f=me(_0x2862f7);return!!(_0x2f3b5f&&(_0x2f3b5f[_0x3fafc2(0x2fa)]['type']??e['PivotShowAsTypeEnum'][_0x3fafc2(0x2c0)])===_0x13476e[_0x3fafc2(0x314)]);}))});}function Ke(_0x5df0d6){return'sheet.pivot.context-menu.show-data-as.'+_0x5df0d6;}function qe(_0x247806){const _0x422738=_0x14e1ea;return _0x247806[_0x422738(0x489)](r[_0x422738(0x288)])[_0x422738(0x1a5)][_0x422738(0x3b1)]((0x0,o['startWith'])(null));}const Je=de[_0x14e1ea(0x505)](_0x21ce0f=>({'rule':_0x21ce0f,'id':Ke(_0x21ce0f[_0x14e1ea(0x314)]),'menuItemFactory':Ge(_0x21ce0f)}));function Ye(_0x2fe237){const _0x5c8d8b=_0x14e1ea;return{'id':ke,'commandId':xe['id'],'type':i[_0x5c8d8b(0x594)]['BUTTON'],'title':_0x5c8d8b(0x3cf),'hidden$':_0x2fe237[_0x5c8d8b(0x489)](r[_0x5c8d8b(0x288)])[_0x5c8d8b(0x1a5)][_0x5c8d8b(0x3b1)]((0x0,o[_0x5c8d8b(0x235)])(null),(0x0,o[_0x5c8d8b(0x505)])(()=>!be(_0x2fe237)))};}const Xe=Ue[_0x14e1ea(0x58d)]((_0x2e391f,_0x3d23f5,_0x321eb0)=>(_0x2e391f[_0x3d23f5['id']]={'order':_0x321eb0+0x1,'menuItemFactory':_0x3d23f5['menuItemFactory']},_0x2e391f),{}),Ze=Je[_0x14e1ea(0x58d)]((_0x27c1c6,_0x1258d3,_0x49f693)=>(_0x27c1c6[_0x1258d3['id']]={'order':_0x49f693+0x1,'menuItemFactory':_0x1258d3[_0x14e1ea(0x60a)]},_0x27c1c6),{}),Qe={[i[_0x14e1ea(0x26a)][_0x14e1ea(0x4ea)]]:{[N['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':je}},[i['ContextMenuPosition'][_0x14e1ea(0x3b5)]]:{[i[_0x14e1ea(0x554)]['DATA']]:{[N['id']]:{'order':0x1,'menuItemFactory':je},[Se]:{'order':0x2,'menuItemFactory':Me,...Xe},[Ce]:{'order':0x3,'menuItemFactory':Ne},[we]:{'order':0x4,'menuItemFactory':Pe},[Te]:{'order':0x5,'menuItemFactory':Fe},[Ee]:{'order':0x6,'menuItemFactory':Ie},[De]:{'order':0x7,'menuItemFactory':Le},[Oe]:{'order':0x8,'menuItemFactory':We,...Ze},[ke]:{'order':0x9,'menuItemFactory':Ye}}},[i[_0x14e1ea(0x5cd)][_0x14e1ea(0x5fa)]]:{[i['ContextMenuGroup']['DATA']]:{[N['id']]:{'order':0x1,'menuItemFactory':je},[Se]:{'order':0x2,'menuItemFactory':Me,...Xe},[Ce]:{'order':0x3,'menuItemFactory':Ne},[we]:{'order':0x4,'menuItemFactory':Pe},[Te]:{'order':0x5,'menuItemFactory':Fe},[Ee]:{'order':0x6,'menuItemFactory':Ie},[De]:{'order':0x7,'menuItemFactory':Le}}}};var $e=_0x14e1ea(0x2e3),et='1.4.0';const tt={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x4bc),async 'handler'(_0x3c130a,_0x359518){const _0x79f764=_0x14e1ea;if(!_0x359518)return!0x1;let {row:_0x24d927,col:_0x2c82b6,unitId:_0x1dcd23,subUnitId:_0x5e13d3,tableFieldId:_0x1f1beb,pivotTableId:_0x4a48f0}=_0x359518,_0x56e810=_0x3c130a['get'](t[_0x79f764(0x504)]),_0x2f9068=_0x4a48f0||_0x56e810['getPivotTableIdByCell'](_0x1dcd23,_0x5e13d3,_0x24d927,_0x2c82b6);if(!_0x2f9068)return!0x1;let _0x5dcdb4=_0x3c130a[_0x79f764(0x489)](t[_0x79f764(0x6b9)]),_0x54d97f=_0x56e810[_0x79f764(0x43a)](_0x1dcd23,_0x5e13d3,_0x2f9068);if(!(_0x54d97f!=null&&_0x54d97f[_0x79f764(0x455)]))return!0x1;let _0xfed2e8=_0x56e810['getPivotTableCellData'](_0x1dcd23,_0x5e13d3,_0x24d927,_0x2c82b6),_0x5e964a=(await _0x5dcdb4[_0x79f764(0x32a)]({'unitId':_0x1dcd23,'subUnitId':_0x5e13d3,'pivotTableId':_0x2f9068,'params':{'type':t[_0x79f764(0x32d)][_0x79f764(0x1d0)],'filter':{'row':_0x24d927,'col':_0x2c82b6,'tableFieldId':_0x1f1beb,'cellData':_0xfed2e8,'pivotItemRenderInfoCache':_0x54d97f}}}))[_0x79f764(0x2d5)]['filter'];if(!_0x5e964a)return!0x1;let _0x16f43a=_0x3c130a[_0x79f764(0x489)](i[_0x79f764(0x544)]),_0x508a58={'id':b,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x150,'dialogStyles':{'header':{'padding':_0x79f764(0x601),'height':0x0},'body':{'padding':_0x79f764(0x54d)}},'closable':!0x1,'children':{'label':y,'unitId':_0x1dcd23,'subUnitId':_0x5e13d3,'key':_0x24d927+'-'+_0x2c82b6+'-'+(_0x1f1beb||''),'filterItemInfo':_0x5e964a},'onClose':()=>{const _0x2ca661=_0x79f764;_0x16f43a[_0x2ca661(0x34d)](b);}};return _0x16f43a[_0x79f764(0x566)](_0x508a58),!0x0;}},nt={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x4cc),'handler'(_0x4a865c,_0x828fe2){const _0x75db25=_0x14e1ea;if(!_0x828fe2)return!0x1;let _0x23e202=_0x4a865c['get'](n[_0x75db25(0x2a4)]),{tableFieldId:_0x4bc6aa,pivotTableId:_0x375a6c,unitId:_0x45c653,subUnitId:_0x4a3a77,tableFieldInfo:_0x2dc5b7,dataFieldInfo:_0xc0e8e}=_0x828fe2,_0x309adb=_0x4a865c['get'](i[_0x75db25(0x544)]),_0x1019d9={'id':S,'title':{'title':_0x23e202['t'](_0x75db25(0x3bc))},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':x,'tableFieldId':_0x4bc6aa,'pivotTableId':_0x375a6c,'tableFieldInfo':_0x2dc5b7,'dataFieldInfo':_0xc0e8e,'unitId':_0x45c653,'subUnitId':_0x4a3a77,'version':Math['random'](),'key':_0x75db25(0x1b2)+(_0x4bc6aa||''),'closeFn':()=>{_0x309adb['close'](S);}},'onClose':()=>{const _0x5568ee=_0x75db25;_0x309adb[_0x5568ee(0x34d)](S);}};return _0x309adb[_0x75db25(0x566)](_0x1019d9),!0x0;}};function rt(_0x44aa1e,_0xd17ed9,_0x86d80c){const _0x163ce1=_0x14e1ea;let _0x56b1c8=_0x86d80c[_0x163ce1(0x35a)],{fieldsConfig:_0x3a6933}=_0xd17ed9,{rowFields:_0x468dd4,columnFields:_0x54b5e2,valueFields:_0x1ca6b2,filterFields:_0x546bcf,hiddenFields:_0x26c8fb,dimension:_0x14bbee,measure:_0x40f78d,valueIndex:_0x435a0d,valuePosition:_0x414b06}=_0x3a6933,_0x1db256=new Set();[..._0x468dd4,..._0x54b5e2,..._0x1ca6b2,..._0x546bcf,..._0x26c8fb]['forEach'](_0x306f52=>{const _0x1aa5da=_0x163ce1;let _0x14c18f=_0x14bbee[_0x306f52]||_0x40f78d[_0x306f52];_0x14c18f&&_0x1db256[_0x1aa5da(0x49a)](_0x14c18f['dataFieldId']);});let _0x44f8c8=_0x56b1c8[_0x163ce1(0x505)](_0x31343b=>{const _0x423f8f=_0x163ce1;let _0x216dc3=_0x86d80c['fields'][_0x31343b];return{'checked':_0x1db256[_0x423f8f(0x48d)](_0x31343b),'dataFieldId':_0x216dc3['id'],'id':_0x216dc3['id'],'name':_0x216dc3['name'],'type':_0x216dc3[_0x423f8f(0x5c5)],'pivotTableId':_0x44aa1e};}),_0x10d1bf=_0x468dd4[_0x163ce1(0x2ae)](_0xf65bfe=>{const _0x37925d=_0x163ce1;let _0x58cd9e=_0x14bbee[_0xf65bfe];return _0x58cd9e?[{'dataFieldId':_0x58cd9e[_0x37925d(0x3cd)],'tableFieldId':_0x58cd9e['id'],'displayName':_0x58cd9e[_0x37925d(0x2db)]}]:[];}),_0x1c037f=_0x54b5e2[_0x163ce1(0x2ae)](_0x35921b=>{const _0x16bbbd=_0x163ce1;let _0x2e9067=_0x14bbee[_0x35921b];return _0x2e9067?[{'dataFieldId':_0x2e9067['dataFieldId'],'tableFieldId':_0x2e9067['id'],'displayName':_0x2e9067[_0x16bbbd(0x2db)]}]:[];}),_0x63d3da=_0x1ca6b2['flatMap'](_0x5ba864=>{const _0x1130f5=_0x163ce1;let _0x513f79=_0x40f78d[_0x5ba864];return _0x513f79?[{'dataFieldId':_0x513f79['dataFieldId'],'tableFieldId':_0x513f79['id'],'displayName':_0x513f79[_0x1130f5(0x2db)],'format':_0x513f79[_0x1130f5(0x65d)],'subTotalType':_0x513f79[_0x1130f5(0x1da)]}]:[];}),_0x55a2cd=_0x546bcf[_0x163ce1(0x2ae)](_0x23d935=>{let _0x597349=_0x14bbee[_0x23d935];return _0x597349?[{'dataFieldId':_0x597349['dataFieldId'],'tableFieldId':_0x597349['id'],'displayName':_0x597349['displayName']}]:[];}),_0x1a591e=_0x26c8fb[_0x163ce1(0x2ae)](_0x511d92=>{const _0x330489=_0x163ce1;let _0x611af9=_0x14bbee[_0x511d92];return _0x611af9?[{'dataFieldId':_0x611af9[_0x330489(0x3cd)],'tableFieldId':_0x611af9['id'],'displayName':_0x611af9[_0x330489(0x2db)],'filterInfo':_0x611af9[_0x330489(0x4f0)]}]:[];});return _0x63d3da[_0x163ce1(0x2f3)]>0x1&&(_0x414b06===e[_0x163ce1(0x665)][_0x163ce1(0x561)]?_0x10d1bf:_0x1c037f)[_0x163ce1(0x53d)](_0x435a0d,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'}),{'sourceList':_0x44f8c8,'sourceRange':_0xd17ed9[_0x163ce1(0x64d)],'rowFields':_0x10d1bf,'columnFields':_0x1c037f,'valueFields':_0x63d3da,'filterFields':_0x55a2cd,'hiddenFields':_0x1a591e,'positionInfo':_0xd17ed9[_0x163ce1(0x340)]};}const it={'type':n[_0x14e1ea(0x1c0)][_0x14e1ea(0x4fd)],'id':_0x14e1ea(0x271),async 'handler'(_0xf796b8,_0x5121dd){const _0x3accb9=_0x14e1ea;let _0x57e57a=_0x5121dd==null?void 0x0:_0x5121dd[_0x3accb9(0x1ec)];if(!_0x57e57a)return!0x1;let _0x3c7a4d=_0xf796b8[_0x3accb9(0x489)](i[_0x3accb9(0x33b)]),_0x23bc72=_0xf796b8[_0x3accb9(0x489)](n['IUniverInstanceService']),_0x13da20=_0xf796b8[_0x3accb9(0x489)](n[_0x3accb9(0x2a4)]),_0x572bdf=_0xf796b8[_0x3accb9(0x489)](t['SheetsPivotTableConfigModel']),_0x451f4a=(0x0,r['getSheetCommandTarget'])(_0x23bc72);if(!_0x451f4a)return!0x1;let {unitId:_0x3f13cb,subUnitId:_0x453d80}=_0x451f4a,_0x1c6086=_0x572bdf[_0x3accb9(0x4c8)](_0x3f13cb,_0x453d80,_0x57e57a),_0x3d4c80=_0x572bdf['getCollection'](_0x3f13cb,_0x57e57a);if(!_0x1c6086||!_0x3d4c80)return!0x1;let _0x1833ae=rt(_0x57e57a,_0x1c6086,_0x3d4c80),_0x39f11b={'header':{'title':_0x13da20['t'](_0x3accb9(0x225))},'id':v,'children':{'label':_,'panelInfo':_0x1833ae,'version':Math['random'](),'setVersion':()=>Math[_0x3accb9(0x53f)](),'pivotTableId':_0x57e57a,'unitId':_0x3f13cb,'subUnitId':_0x453d80},'width':0x15a};return _0x3c7a4d[_0x3accb9(0x566)](_0x39f11b),!0x0;}},at=_0x14e1ea(0x3bd),ot={};function st(_0xf4324){'@babel/helpers - typeof';const _0x75358b=_0x14e1ea;return st=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x75358b(0x2b0)?function(_0x5489ee){return typeof _0x5489ee;}:function(_0x26ae3a){const _0x1f9aae=_0x75358b;return _0x26ae3a&&typeof Symbol==_0x1f9aae(0x4d1)&&_0x26ae3a[_0x1f9aae(0x61f)]===Symbol&&_0x26ae3a!==Symbol[_0x1f9aae(0x25e)]?_0x1f9aae(0x2b0):typeof _0x26ae3a;},st(_0xf4324);}function ct(_0x36099b,_0x2f1f8c){const _0x510d6e=_0x14e1ea;if(st(_0x36099b)!=_0x510d6e(0x1a3)||!_0x36099b)return _0x36099b;var _0x26ddea=_0x36099b[Symbol['toPrimitive']];if(_0x26ddea!==void 0x0){var _0xff1b0b=_0x26ddea['call'](_0x36099b,_0x2f1f8c||_0x510d6e(0x463));if(st(_0xff1b0b)!=_0x510d6e(0x1a3))return _0xff1b0b;throw TypeError(_0x510d6e(0x67e));}return(_0x2f1f8c==='string'?String:Number)(_0x36099b);}function lt(_0x35453d){const _0x1e33e5=_0x14e1ea;var _0x169bfe=ct(_0x35453d,_0x1e33e5(0x293));return st(_0x169bfe)==_0x1e33e5(0x2b0)?_0x169bfe:_0x169bfe+'';}function W(_0x316252,_0x1970c4,_0x5e250b){return(_0x1970c4=lt(_0x1970c4))in _0x316252?Object['defineProperty'](_0x316252,_0x1970c4,{'value':_0x5e250b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x316252[_0x1970c4]=_0x5e250b,_0x316252;}function G(_0x891972,_0x32a164){return function(_0x12bb22,_0x20048a){_0x32a164(_0x12bb22,_0x20048a,_0x891972);};}function K(_0x2a5727,_0x17ce3d,_0x789f38,_0x7673ab){const _0x57ecf4=_0x14e1ea;var _0x55b090=arguments[_0x57ecf4(0x2f3)],_0x744b57=_0x55b090<0x3?_0x17ce3d:_0x7673ab===null?_0x7673ab=Object[_0x57ecf4(0x2d9)](_0x17ce3d,_0x789f38):_0x7673ab,_0x352981;if(typeof Reflect==_0x57ecf4(0x1a3)&&typeof Reflect[_0x57ecf4(0x5c4)]=='function')_0x744b57=Reflect[_0x57ecf4(0x5c4)](_0x2a5727,_0x17ce3d,_0x789f38,_0x7673ab);else{for(var _0x469ac7=_0x2a5727[_0x57ecf4(0x2f3)]-0x1;_0x469ac7>=0x0;_0x469ac7--)(_0x352981=_0x2a5727[_0x469ac7])&&(_0x744b57=(_0x55b090<0x3?_0x352981(_0x744b57):_0x55b090>0x3?_0x352981(_0x17ce3d,_0x789f38,_0x744b57):_0x352981(_0x17ce3d,_0x789f38))||_0x744b57);}return _0x55b090>0x3&&_0x744b57&&Object['defineProperty'](_0x17ce3d,_0x789f38,_0x744b57),_0x744b57;}let q=class extends n[_0x14e1ea(0x62e)]{constructor(_0x3fa7c1,_0x228333,_0x4454b8,_0x266b00,_0x36d4e5,_0xd78326,_0x4fc577){const _0x11bfc5=_0x14e1ea;var _0x5def5b;super(),this[_0x11bfc5(0x291)]=_0x3fa7c1,this[_0x11bfc5(0x337)]=_0x228333,this['_injector']=_0x4454b8,this['_confirmService']=_0x266b00,this[_0x11bfc5(0x5c9)]=_0x36d4e5,this[_0x11bfc5(0x2dd)]=_0xd78326,this[_0x11bfc5(0x240)]=_0x4fc577,W(this,'_defaultOverride',!0x1),this[_0x11bfc5(0x23d)](),this['_defaultOverride']=((_0x5def5b=this[_0x11bfc5(0x2dd)][_0x11bfc5(0x37f)](t[_0x11bfc5(0x430)]))==null?void 0x0:_0x5def5b[_0x11bfc5(0x47c)])??!0x1;}[_0x14e1ea(0x1e5)](_0x2db23b,_0x4f7fb7,_0x4689cc){const _0x244d86=_0x14e1ea;return(0x0,t[_0x244d86(0x5fb)])(_0x2db23b,_0x4f7fb7,_0x4689cc,this[_0x244d86(0x291)][_0x244d86(0x4c7)]());}[_0x14e1ea(0x23d)](){const _0x268ba0=_0x14e1ea;this[_0x268ba0(0x5c9)][_0x268ba0(0x66f)]['interceptAsync'](this[_0x268ba0(0x5c9)][_0x268ba0(0x66f)][_0x268ba0(0x516)]()[_0x268ba0(0x3f9)],{'handler':async(_0x3457be,_0x43e834)=>{const _0x214097=_0x268ba0;let {cellInfo:_0x1aa21a,view:_0x5a1d3e,isEmpty:_0x153c58}=_0x43e834,{unitId:_0x5d1723,subUnitId:_0x495091}=_0x1aa21a,_0x48d765=this[_0x214097(0x1e5)](_0x1aa21a,_0x5a1d3e,_0x153c58);if(!(0x0,r[_0x214097(0x48c)])(this[_0x214097(0x45f)],_0x5d1723,_0x495091,_0x48d765)){let _0x1cce8d=this[_0x214097(0x291)]['t'](_0x214097(0x305));this[_0x214097(0x240)]['blockExecuteWithoutPermission'](_0x1cce8d);}let _0x5ef632=this[_0x214097(0x337)]['generateMutationsByRanges']({'unitId':_0x5d1723,'subUnitId':_0x495091,'ranges':_0x48d765}),_0x591a3e=(0x0,t['generateSetRangeValueMutations'])(this['_injector'],_0x5d1723,_0x495091,_0x48d765);if(_0x5ef632[_0x214097(0x26f)][_0x214097(0x2f3)]||_0x591a3e[_0x214097(0x346)]){if(this[_0x214097(0x1c7)])return Promise['resolve'](!0x0);{let _0x38087d=await this[_0x214097(0x492)][_0x214097(0x23e)]({'id':_0x214097(0x490),'title':{'title':this[_0x214097(0x291)]['t']('sheets-pivot-ui.perform.tips')},'children':{'title':this['_localeService']['t'](_0x214097(0x4fa))},'cancelText':this['_localeService']['t'](_0x214097(0x623)),'confirmText':this['_localeService']['t'](_0x214097(0x599))});return Promise[_0x214097(0x4d7)](_0x38087d);}}return Promise[_0x214097(0x4d7)](!0x0);}});}};q=K([G(0x0,(0x0,n['Inject'])(n[_0x14e1ea(0x2a4)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(r[_0x14e1ea(0x1cd)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x4cd)])),G(0x3,(0x0,n['Inject'])(n['IConfirmService'])),G(0x4,(0x0,n[_0x14e1ea(0x608)])(t['SheetsPivotTableService'])),G(0x5,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x5a1)])),G(0x6,(0x0,n['Inject'])(r[_0x14e1ea(0x433)]))],q);function ut(_0x198fd6){const _0x523e19=_0x14e1ea;let {editable:_0x15eac6,pivotTableId:_0x255fa7,subUnitId:_0x471be3,unitId:_0x55a179}=_0x198fd6,_0x4c5e1d=(0x0,i['useDependency'])(n[_0x523e19(0x27a)]),_0x4e7059=(0x0,i[_0x523e19(0x1e8)])(i[_0x523e19(0x544)]),_0x4b436a=(0x0,i[_0x523e19(0x1e8)])(n[_0x523e19(0x2a4)]),_0x53fec1=[{'command':{'id':it['id'],'params':{'pivotTableId':_0x255fa7}},'disabled':!_0x15eac6,'label':_0x523e19(0x31a)},{'command':{'id':t[_0x523e19(0x66c)]['id'],'params':{'unitId':_0x55a179,'subUnitId':_0x471be3,'pivotTableId':_0x255fa7}},'disabled':!_0x15eac6,'label':_0x523e19(0x2c8)}];async function _0x1a0188(_0x3c2ec7){const _0x2e79d5=_0x523e19;await _0x4c5e1d['executeCommand'](_0x3c2ec7['id'],_0x3c2ec7[_0x2e79d5(0x641)]),_0x4e7059[_0x2e79d5(0x34d)](M);}return(0x0,d['jsx'])(_0x523e19(0x2ca),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':_0x53fec1['map'](_0x559b47=>{const _0x31a5aa=_0x523e19;let _0x115c2d=_0x4b436a['t'](_0x559b47[_0x31a5aa(0x21c)]);return(0x0,d[_0x31a5aa(0x364)])(s[_0x31a5aa(0x3a6)],{'title':_0x115c2d,'aria-label':_0x115c2d,'variant':_0x31a5aa(0x624),'disabled':_0x559b47['disabled'],'onClick':()=>_0x1a0188(_0x559b47['command'])},_0x559b47[_0x31a5aa(0x43c)]['id']);})});}const dt=[{'label':_0x14e1ea(0x3c4),'suffix':_0x14e1ea(0x33c)},{'label':_0x14e1ea(0x610),'suffix':_0x14e1ea(0x4af)},{'label':'1930年08月05日','suffix':_0x14e1ea(0x2f8)},{'label':_0x14e1ea(0x6a2),'suffix':_0x14e1ea(0x5a2)},{'label':'8月5日','suffix':_0x14e1ea(0x43f)},{'label':_0x14e1ea(0x4e4),'suffix':_0x14e1ea(0x4fc)},{'label':_0x14e1ea(0x1d8),'suffix':_0x14e1ea(0x53c)},{'label':_0x14e1ea(0x4e3),'suffix':'A/P\x20hh:mm'},{'label':_0x14e1ea(0x5f5),'suffix':_0x14e1ea(0x217)},{'label':_0x14e1ea(0x1a4),'suffix':_0x14e1ea(0x606)},{'label':_0x14e1ea(0x415),'suffix':'MM-dd\x20A/P\x20hh:mm'}],ft=[{'label':_0x14e1ea(0x241),'suffix':_0x14e1ea(0x413)},{'label':_0x14e1ea(0x45b),'suffix':_0x14e1ea(0x3f8),'color':'red'},{'label':_0x14e1ea(0x6ce),'suffix':_0x14e1ea(0x1f8)},{'label':_0x14e1ea(0x6ce),'suffix':_0x14e1ea(0x1d7),'color':_0x14e1ea(0x5c3)},{'label':_0x14e1ea(0x38a),'suffix':'#,##0.00_);-#,##0.00'},{'label':'-1,234.56','suffix':'#,##0.00_);[Red]-#,##0.00','color':_0x14e1ea(0x5c3)}],pt=[{'label':_0x39502b=>_0x39502b+'1,235','suffix':_0x17eef0=>'\x22'+_0x17eef0+_0x14e1ea(0x56f)+_0x17eef0+_0x14e1ea(0x694)},{'label':_0x4b0811=>_0x4b0811+'1,235','suffix':_0x3c88db=>'\x22'+_0x3c88db+_0x14e1ea(0x295)+_0x3c88db+'\x22#,##0.00','color':_0x14e1ea(0x5c3)},{'label':_0x42c3e8=>'('+_0x42c3e8+_0x14e1ea(0x5f1),'suffix':_0x39facc=>'\x22'+_0x39facc+_0x14e1ea(0x306)+_0x39facc+_0x14e1ea(0x675)},{'label':_0x28e2ae=>'('+_0x28e2ae+_0x14e1ea(0x5f1),'suffix':_0x319626=>'\x22'+_0x319626+_0x14e1ea(0x1b1)+_0x319626+_0x14e1ea(0x675),'color':_0x14e1ea(0x5c3)},{'label':_0x26205c=>'-'+_0x26205c+_0x14e1ea(0x6f4),'suffix':_0x3056b5=>'\x22'+_0x3056b5+_0x14e1ea(0x621)+_0x3056b5+'\x22#,##0.00'},{'label':_0x2ef744=>'-'+_0x2ef744+_0x14e1ea(0x6f4),'suffix':_0x3bcaba=>'\x22'+_0x3bcaba+_0x14e1ea(0x520)+_0x3bcaba+_0x14e1ea(0x694),'color':_0x14e1ea(0x5c3)}],mt='PivotMultipleValueId';function ht(_0x3d5aac,_0x133c58){const _0x5be32f=_0x14e1ea;let _0xfaa14f=(0x0,t[_0x5be32f(0x59c)])(_0x133c58,_0x3d5aac);return _0x3d5aac['includes'](_0x5be32f(0x1cc))?_0x3d5aac[_0x5be32f(0x280)](_0x5be32f(0x1cc),_0xfaa14f):''+_0x3d5aac+_0xfaa14f;}const gt=_0x383887=>{const _0x537f37=_0x14e1ea;switch(_0x383887){case'filter':return e[_0x537f37(0x2d0)][_0x537f37(0x1d0)];case _0x537f37(0x5f4):return e[_0x537f37(0x2d0)][_0x537f37(0x561)];case'column':return e[_0x537f37(0x2d0)][_0x537f37(0x632)];case _0x537f37(0x320):return e[_0x537f37(0x2d0)][_0x537f37(0x547)];default:return e[_0x537f37(0x2d0)][_0x537f37(0x561)];}};function _t(_0x189986,_0x368330){const _0x59d080=_0x14e1ea;switch(_0x368330[_0x59d080(0x1bd)]||n[_0x59d080(0x32f)][_0x59d080(0x297)]){case n['RANGE_TYPE'][_0x59d080(0x297)]:return{'startRow':_0x368330[_0x59d080(0x254)],'startColumn':_0x368330[_0x59d080(0x695)],'endRow':_0x368330[_0x59d080(0x3a4)],'endColumn':_0x368330[_0x59d080(0x2a8)]};case n[_0x59d080(0x32f)][_0x59d080(0x2e4)]:return{'startRow':_0x368330[_0x59d080(0x254)],'startColumn':0x0,'endRow':_0x368330[_0x59d080(0x3a4)],'endColumn':_0x189986[_0x59d080(0x636)]()-0x1};case n[_0x59d080(0x32f)]['COLUMN']:return{'startRow':0x0,'startColumn':_0x368330['startColumn'],'endRow':_0x189986[_0x59d080(0x2b8)]()-0x1,'endColumn':_0x368330[_0x59d080(0x2a8)]};case n[_0x59d080(0x32f)][_0x59d080(0x6a6)]:return{'startRow':0x0,'startColumn':0x0,'endRow':_0x189986['getRowCount']()-0x1,'endColumn':_0x189986[_0x59d080(0x636)]()-0x1};}}function vt(_0x417b14,_0x2691bb){const _0x290d67=_0x14e1ea;if(!_0x2691bb||!_0x417b14||_0x2691bb[_0x290d67(0x3a4)]-_0x2691bb[_0x290d67(0x254)]<=0x0)return 0x1;let {startRow:_0x124ee6,startColumn:_0x499395,endRow:_0x17600f,endColumn:_0x1bfa95}=_t(_0x417b14,_0x2691bb),_0xb059e3=_0x417b14[_0x290d67(0x245)](),_0x4bcc26=!0x1;for(let _0x1f0c4a=_0x124ee6;_0x1f0c4a<=_0x17600f;_0x1f0c4a++){for(let _0x560b2c=_0x499395;_0x560b2c<=_0x1bfa95;_0x560b2c++)if(_0xb059e3[_0x290d67(0x5a7)](_0x1f0c4a,_0x560b2c)!=null){_0x4bcc26=!0x0;break;}if(_0x4bcc26)break;}return _0x4bcc26?0x2:0x0;}async function yt(_0x5f567f,_0x2f12ce,_0x458896){const _0x5ed6e3=_0x14e1ea;let {commandService:_0x35a155,pivotTableInfo:_0x1529be,pivotTableId:_0x467525,unitId:_0x4a34ac,subUnitId:_0x170cd5}=_0x5f567f,_0x1472c4=[],{rowFields:_0x541b87,columnFields:_0x156b98,filterFields:_0x13f432,valueFields:_0x5f5555}=_0x1529be,_0x562e45=[..._0x541b87,..._0x156b98,..._0x13f432,..._0x5f5555];_0x2f12ce===_0x5ed6e3(0x448)&&_0x5f5555[_0x5ed6e3(0x263)](_0xebc031=>{const _0x4c37c2=_0x5ed6e3;_0x1472c4['push'](_0xebc031[_0x4c37c2(0x5df)]);}),_0x458896==='source'&&_0x562e45[_0x5ed6e3(0x263)](_0x4cf3ca=>{const _0x18ac40=_0x5ed6e3;_0x4cf3ca['dataFieldId']===_0x2f12ce&&_0x1472c4[_0x18ac40(0x382)](_0x4cf3ca[_0x18ac40(0x5df)]);}),_0x458896!==_0x5ed6e3(0x28e)&&_0x562e45[_0x5ed6e3(0x1ba)](_0x173ea5=>_0x173ea5[_0x5ed6e3(0x5df)]===_0x2f12ce)&&_0x1472c4['push'](_0x2f12ce),await _0x35a155[_0x5ed6e3(0x2f1)](t['RemovePivotFieldCommand']['id'],{'pivotTableId':_0x467525,'fieldIds':_0x1472c4,'unitId':_0x4a34ac,'subUnitId':_0x170cd5});}async function bt(_0x3c62bc,_0x20ccc4,_0x294b4c,_0x5c77f7,_0x42d888){const _0x470943=_0x14e1ea;let _0x68b4f4={'unitId':_0x5c77f7,'subUnitId':_0x42d888,'token':_0x20ccc4,'dataRangeInfo':_0x294b4c};await _0x3c62bc[_0x470943(0x2f1)](t[_0x470943(0x552)]['id'],_0x68b4f4);}const xt=(_0x4ca97b,_0xc19df4)=>{const _0x2931ac=_0x14e1ea;let {rowFields:_0x4244f9,columnFields:_0x2ff149,filterFields:_0x10e635}=_0x4ca97b,_0x4b1fb7=[..._0x4244f9,..._0x2ff149,..._0x10e635],_0x19e325=[];return _0x4b1fb7[_0x2931ac(0x263)](_0xd0e634=>{const _0x43e4a6=_0x2931ac;_0xd0e634[_0x43e4a6(0x3cd)]===_0xc19df4&&_0x19e325[_0x43e4a6(0x382)](_0xd0e634[_0x43e4a6(0x5df)]);}),_0x19e325;};async function St(_0x18ec0c,_0x194187,_0x27832f,_0x2173f4,_0x3dc14f){const _0x52b071=_0x14e1ea;if(_0x27832f===_0x52b071(0x28e)&&_0x2173f4===_0x52b071(0x28e))return;let _0x3d966f=_0x194187===mt,{commandService:_0x303b40,pivotTableInfo:_0x21a461,pivotTableId:_0x4037a0,unitId:_0x40935c,subUnitId:_0xd21588}=_0x18ec0c;if(_0x27832f==='source'&&_0x2173f4!==_0x52b071(0x28e)){let {sourceList:_0x4913b6}=_0x21a461,_0x485e87=_0x4913b6[_0x52b071(0x1ba)](_0xf6699d=>_0xf6699d['id']===_0x194187);if(_0x485e87){let _0x5259ae=xt(_0x21a461,_0x194187);if(_0x2173f4!==_0x52b071(0x320)&&_0x5259ae[_0x52b071(0x2f3)]>0x0){let _0xb5a367=_0x5259ae[0x0];await _0x303b40['executeCommand'](t['MovePivotFieldCommand']['id'],{'pivotTableId':_0x4037a0,'fieldId':_0xb5a367,'area':gt(_0x2173f4),'index':_0x3dc14f,'unitId':_0x40935c,'subUnitId':_0xd21588});}else await _0x303b40[_0x52b071(0x2f1)](t[_0x52b071(0x4ad)]['id'],{'pivotTableId':_0x4037a0,'dataFieldId':_0x485e87[_0x52b071(0x3cd)],'fieldArea':gt(_0x2173f4),'index':_0x3dc14f,'unitId':_0x40935c,'subUnitId':_0xd21588});}}if(_0x27832f!==_0x52b071(0x28e)&&_0x2173f4===_0x52b071(0x28e)){let {rowFields:_0x379bff,columnFields:_0x7b4c40,filterFields:_0x1a04c0,valueFields:_0x1b2f2a}=_0x21a461,_0x2470fc=[..._0x379bff,..._0x7b4c40,..._0x1a04c0,..._0x1b2f2a],_0x2c3bb2=[];_0x3d966f?_0x1b2f2a[_0x52b071(0x263)](_0x12c3df=>{const _0x4ec353=_0x52b071;_0x2c3bb2[_0x4ec353(0x382)](_0x12c3df[_0x4ec353(0x5df)]);}):_0x2470fc[_0x52b071(0x1ba)](_0x56cdf9=>_0x56cdf9[_0x52b071(0x5df)]===_0x194187)&&_0x2c3bb2['push'](_0x194187),await Ct(_0x18ec0c,_0x2c3bb2);}else _0x27832f!==_0x52b071(0x28e)&&_0x2173f4!==_0x52b071(0x28e)&&await Tt(_0x18ec0c,_0x194187,_0x27832f,_0x2173f4,_0x3dc14f);}async function Ct(_0x376add,_0xad7b98){const _0x53f4a5=_0x14e1ea;let {commandService:_0x386e0a,pivotTableId:_0xc714c2,unitId:_0x5ccaf8,subUnitId:_0x10aa8f}=_0x376add;await _0x386e0a[_0x53f4a5(0x2f1)](t[_0x53f4a5(0x3d4)]['id'],{'pivotTableId':_0xc714c2,'fieldIds':_0xad7b98,'unitId':_0x5ccaf8,'subUnitId':_0x10aa8f});}async function wt(_0x597c6a,_0x4f2e75,_0x492d80){const _0x1f1ca0=_0x14e1ea;let {commandService:_0x14c888,pivotTableId:_0x4b3c02,unitId:_0x2dab95,subUnitId:_0x167aac}=_0x597c6a;await _0x14c888[_0x1f1ca0(0x2f1)](t['UpdatePivotValuePositionCommand']['id'],{'pivotTableId':_0x4b3c02,'position':_0x4f2e75,'index':_0x492d80,'unitId':_0x2dab95,'subUnitId':_0x167aac});}async function Tt(_0x27f021,_0x243003,_0x2b3a5d,_0x28a906,_0x5e07f5){const _0x2fcb67=_0x14e1ea;let _0x50c8ef=_0x243003===mt,{commandService:_0x1247c7,pivotTableInfo:_0x28f09f,pivotTableId:_0x1674c5,unitId:_0x240580,subUnitId:_0x122b61}=_0x27f021;if(_0x50c8ef){let _0x22e489=gt(_0x28a906);(_0x22e489===e['PivotTableFiledAreaEnum']['Row']||_0x22e489===e[_0x2fcb67(0x2d0)]['Column'])&&await _0x1247c7['executeCommand'](t[_0x2fcb67(0x4b5)]['id'],{'pivotTableId':_0x1674c5,'position':_0x22e489===e[_0x2fcb67(0x2d0)]['Row']?e[_0x2fcb67(0x665)][_0x2fcb67(0x561)]:e['PivotTableValuePositionEnum'][_0x2fcb67(0x632)],'index':_0x5e07f5,'unitId':_0x240580,'subUnitId':_0x122b61});return;}let {rowFields:_0x470887,columnFields:_0x3ab9ba,filterFields:_0x294e0b,valueFields:_0x2258cd}=_0x28f09f,_0x464157=[..._0x470887,..._0x3ab9ba,..._0x294e0b,..._0x2258cd][_0x2fcb67(0x1ba)](_0x55729b=>_0x55729b['tableFieldId']===_0x243003);if(_0x464157){let _0x126889=[..._0x470887,..._0x3ab9ba,..._0x294e0b];if(_0x2b3a5d===_0x2fcb67(0x320)&&_0x28a906!==_0x2fcb67(0x320)&&_0x126889[_0x2fcb67(0x1ba)](_0x1c94dc=>_0x1c94dc[_0x2fcb67(0x3cd)]===_0x464157[_0x2fcb67(0x3cd)])){await Ct(_0x27f021,[_0x243003]);return;}await _0x1247c7[_0x2fcb67(0x2f1)](t[_0x2fcb67(0x5e7)]['id'],{'pivotTableId':_0x1674c5,'fieldId':_0x243003,'area':gt(_0x28a906),'index':_0x5e07f5,'unitId':_0x240580,'subUnitId':_0x122b61});}}function Et(_0x453a9c,_0x1ec8e9,_0x4406b6,_0x46af45,_0xfb86b4){const _0x56df39=_0x14e1ea;_0x453a9c[_0x56df39(0x2f1)](tt['id'],{'row':-0x1,'col':-0x1,'unitId':_0x1ec8e9,'subUnitId':_0x4406b6,'tableFieldId':_0xfb86b4,'pivotTableId':_0x46af45});}function Dt(_0x4d8ef4,_0x3c19da,_0x4eaf34,_0x1614c1,_0x44c510,_0x1050c5){const _0x4c6ad9=_0x14e1ea;let {sourceList:_0x428368,rowFields:_0x1e29cc,columnFields:_0x15666a,valueFields:_0x1beccf,filterFields:_0x31ad41}=_0x1050c5,_0x1e0e99=[..._0x1e29cc,..._0x15666a,..._0x1beccf,..._0x31ad41][_0x4c6ad9(0x1ba)](_0x29d840=>_0x29d840[_0x4c6ad9(0x5df)]===_0x4eaf34),_0x4f0ced=_0x428368[_0x4c6ad9(0x1ba)](_0x5b08bf=>_0x5b08bf['id']===(_0x1e0e99==null?void 0x0:_0x1e0e99['dataFieldId']));if(_0x1e0e99&&_0x4f0ced){let _0x432e1e={'tableFieldId':_0x4eaf34,'pivotTableId':_0x3c19da,'unitId':_0x1614c1,'subUnitId':_0x44c510,'tableFieldInfo':_0x1e0e99,'dataFieldInfo':_0x4f0ced};_0x4d8ef4['executeCommand'](nt['id'],_0x432e1e);}}const Ot=[{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x3aa)],'textKey':'sheets-pivot-ui.subtotal.average'},{'type':e['PivotSubtotalTypeEnum']['count'],'textKey':'sheets-pivot-ui.subtotal.count'},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x1ed)],'textKey':_0x14e1ea(0x5b3)},{'type':e[_0x14e1ea(0x672)]['max'],'textKey':_0x14e1ea(0x5c7)},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x47f)],'textKey':_0x14e1ea(0x270)},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x687)],'textKey':'sheets-pivot-ui.subtotal.product'},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x559)],'textKey':_0x14e1ea(0x480)},{'type':e['PivotSubtotalTypeEnum'][_0x14e1ea(0x277)],'textKey':'sheets-pivot-ui.subtotal.stdDevp'},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x673)],'textKey':_0x14e1ea(0x5bd)},{'type':e['PivotSubtotalTypeEnum']['var'],'textKey':_0x14e1ea(0x3fb)},{'type':e[_0x14e1ea(0x672)][_0x14e1ea(0x6da)],'textKey':_0x14e1ea(0x411)}],kt=(_0x1bdacc,_0x3dcefd=0x0)=>_0x1bdacc?n[_0x14e1ea(0x5c1)][_0x14e1ea(0x6ac)](_0x1bdacc)[_0x14e1ea(0x575)]??_0x3dcefd:_0x3dcefd,At=_0x3d8cc0=>Array(Math[_0x14e1ea(0x47f)](Math[_0x14e1ea(0x512)](0x0,Number(_0x3d8cc0)),0x1e))[_0x14e1ea(0x3e9)](0x0)[_0x14e1ea(0x1c3)](''),J=(_0xc01ea8,_0x619d6a)=>_0xc01ea8[_0x14e1ea(0x60b)](';')[_0x14e1ea(0x505)](_0x350ed7=>/\.0?/[_0x14e1ea(0x1e2)](_0x350ed7)?_0x350ed7[_0x14e1ea(0x280)](/\.0*/g,''+(_0x619d6a>0x0?'.':'')+At(Number(_0x619d6a||0x0))):/0[^0]?/[_0x14e1ea(0x1e2)](_0x350ed7)?_0x350ed7[_0x14e1ea(0x280)](/0[^0]+|0$/,'0'+(_0x619d6a>0x0?'.':'')+At(Number(_0x619d6a||0x0))):_0x350ed7)[_0x14e1ea(0x1c3)](';'),jt=_0xc4a92e=>n['currencySymbols'][_0x14e1ea(0x1ba)](_0x42d3f5=>_0xc4a92e[_0x14e1ea(0x3a9)](_0x42d3f5)),Mt=_0x5cf80d=>!_0x5cf80d,Nt=_0x4c3d96=>!!jt(_0x4c3d96)&&_0x4c3d96['startsWith']('_('),Pt=_0x141555=>!!jt(_0x141555)&&!_0x141555[_0x14e1ea(0x5b0)]('_('),Ft=()=>dt[_0x14e1ea(0x505)](_0xdf0a20=>({'label':_0xdf0a20[_0x14e1ea(0x21c)],'value':_0xdf0a20['suffix']})),It=_0x409b89=>{const _0xa713e7=_0x14e1ea;let _0x3a8202=n[_0xa713e7(0x5c1)]['getFormatInfo'](_0x409b89);return Ft()[_0xa713e7(0x505)](_0x97931=>_0x97931[_0xa713e7(0x320)])[_0xa713e7(0x3a9)](_0x409b89)||[_0xa713e7(0x1c4),_0xa713e7(0x1e3),_0xa713e7(0x679)][_0xa713e7(0x3a9)](_0x3a8202[_0xa713e7(0x314)]);},Lt=()=>ft[_0x14e1ea(0x505)](_0x16ee63=>({'label':_0x16ee63['label'],'value':_0x16ee63[_0x14e1ea(0x40f)],'color':_0x16ee63[_0x14e1ea(0x5b6)]})),Rt=_0x4be50d=>Lt()[_0x14e1ea(0x47b)](_0x1fd5fa=>(0x0,n[_0x14e1ea(0x247)])(_0x1fd5fa['value'],_0x4be50d)),zt=(_0x4ea2d9,_0x2e2cd1)=>{const _0x47f966=_0x14e1ea;switch(_0x2e2cd1){case e[_0x47f966(0x2d0)][_0x47f966(0x561)]:return _0x4ea2d9[_0x47f966(0x40c)][_0x47f966(0x2f3)];case e[_0x47f966(0x2d0)][_0x47f966(0x632)]:return _0x4ea2d9[_0x47f966(0x310)]['length'];case e[_0x47f966(0x2d0)][_0x47f966(0x1d0)]:return _0x4ea2d9['filterFields']['length'];case e[_0x47f966(0x2d0)][_0x47f966(0x547)]:return _0x4ea2d9['valueFields'][_0x47f966(0x2f3)];default:return 0x0;}},Bt=(_0x1a0ede,_0x18e8fb,_0x4c88d8)=>{const _0x28974f=_0x14e1ea;for(let _0x53cca8 of[_0x28974f(0x4db),_0x28974f(0x20f),_0x28974f(0x3f5),_0x28974f(0x29d),'sheets-pivot-ui.minName','sheets-pivot-ui.productName',_0x28974f(0x535),'sheets-pivot-ui.stdDevpName',_0x28974f(0x214),_0x28974f(0x1d6),_0x28974f(0x256)]){let _0x4359b7=_0x4c88d8[_0x53cca8];if(_0x4359b7+(0x0,t['isolateTextForBidiContext'])(_0x1a0ede,_0x4359b7)===_0x18e8fb||_0x4359b7+_0x1a0ede===_0x18e8fb)return!0x0;}return!0x1;},Vt=(_0x97e2a1,_0x757991,_0x39ed58)=>{const _0x3cdacc=_0x14e1ea;let _0x4001e8='';switch(_0x39ed58){case e[_0x3cdacc(0x672)][_0x3cdacc(0x3aa)]:_0x4001e8=_0x757991[_0x3cdacc(0x4db)];break;case e[_0x3cdacc(0x672)][_0x3cdacc(0x42c)]:_0x4001e8=_0x757991[_0x3cdacc(0x20f)];break;case e[_0x3cdacc(0x672)]['countNums']:_0x4001e8=_0x757991['sheets-pivot-ui.countNumsName'];break;case e[_0x3cdacc(0x672)][_0x3cdacc(0x512)]:_0x4001e8=_0x757991['sheets-pivot-ui.maxName'];break;case e[_0x3cdacc(0x672)][_0x3cdacc(0x47f)]:_0x4001e8=_0x757991[_0x3cdacc(0x1a7)];break;case e['PivotSubtotalTypeEnum']['product']:_0x4001e8=_0x757991[_0x3cdacc(0x416)];break;case e[_0x3cdacc(0x672)][_0x3cdacc(0x559)]:_0x4001e8=_0x757991[_0x3cdacc(0x535)];break;case e['PivotSubtotalTypeEnum'][_0x3cdacc(0x277)]:_0x4001e8=_0x757991['sheets-pivot-ui.stdDevpName'];break;case e[_0x3cdacc(0x672)][_0x3cdacc(0x673)]:_0x4001e8=_0x757991[_0x3cdacc(0x214)];break;case e['PivotSubtotalTypeEnum'][_0x3cdacc(0x380)]:_0x4001e8=_0x757991[_0x3cdacc(0x1d6)];break;case e[_0x3cdacc(0x672)]['varp']:_0x4001e8=_0x757991[_0x3cdacc(0x256)];break;default:return _0x97e2a1;}return _0x4001e8+(0x0,t[_0x3cdacc(0x59c)])(_0x97e2a1,_0x4001e8);};function Ht(_0xa797d1,_0x14decb){const _0xbf6cca=_0x14e1ea;if(_0x14decb[_0xbf6cca(0x515)]&&(0x0,e[_0xbf6cca(0x6f7)])(_0x14decb[_0xbf6cca(0x515)]))return _0xbf6cca(0x4c9);if(!_0xa797d1)return'NotFilter';if((0x0,e[_0xbf6cca(0x1ff)])(_0xa797d1))return _0xbf6cca(0x4c9);if((0x0,e[_0xbf6cca(0x66a)])(_0xa797d1)){var _0x369d3e;return _0xa797d1[_0xbf6cca(0x289)]||((_0x369d3e=_0x14decb[_0xbf6cca(0x2fc)])==null?void 0x0:_0x369d3e[_0xbf6cca(0x2f3)])===_0xa797d1['list'][_0xbf6cca(0x2f3)]?_0xbf6cca(0x399):_0xbf6cca(0x4c9);}return(0x0,e['isPivotTableFilterRestrictive'])(_0xa797d1)?_0xbf6cca(0x4c9):_0xbf6cca(0x399);}function Ut(_0xef25a6){const _0x4db5bc=_0x14e1ea;return Nt(_0xef25a6)?_0x4db5bc(0x5b5):Pt(_0xef25a6)?_0x4db5bc(0x220):It(_0xef25a6)?_0x4db5bc(0x1c4):Rt(_0xef25a6)?'thousandthPercentile':'general';}function Wt(_0x46b619){const _0x1cb02e=_0x14e1ea;let {originPattern:_0x159c65='',onChange:_0x433858}=_0x46b619,_0x2a6449=(0x0,i[_0x1cb02e(0x1e8)])(n[_0x1cb02e(0x2a4)]),[_0x368db4,_0x114236]=(0x0,f[_0x1cb02e(0x53a)])(()=>Ut(_0x159c65)),[_0x1a2540,_0x114f52]=(0x0,f[_0x1cb02e(0x53a)])(()=>kt(_0x159c65,0x2)),[_0x136ef0,_0x228fb5]=(0x0,f[_0x1cb02e(0x53a)])(()=>jt(_0x159c65)||n[_0x1cb02e(0x2ad)][0x0]),[_0x2303c1,_0x17ecf9]=(0x0,f['useState'])(_0x159c65),_0x495832=(0x0,f[_0x1cb02e(0x68c)])(()=>[{'value':_0x1cb02e(0x522),'label':_0x2a6449['t'](_0x1cb02e(0x1f3))},{'value':_0x1cb02e(0x5b5),'label':_0x2a6449['t']('sheets-pivot-ui.dialog.numfmt.accounting')},{'value':_0x1cb02e(0x220),'label':_0x2a6449['t'](_0x1cb02e(0x299))},{'value':'date','label':_0x2a6449['t'](_0x1cb02e(0x56d))},{'value':_0x1cb02e(0x332),'label':_0x2a6449['t']('sheets-pivot-ui.dialog.numfmt.thousandthPercentile')}],[_0x2a6449]),_0x5a7c24=n['currencySymbols']['map'](_0x253a4e=>({'label':_0x253a4e,'value':_0x253a4e}));function _0x107e5b(_0x423d34){_0x17ecf9(_0x423d34),_0x433858(_0x423d34);}function _0xdb6d26(_0x1a5005,_0x3949a4){const _0x348f2f=_0x1cb02e;return J(_0x348f2f(0x5b4)+_0x1a5005+'\x22*\x20#,##0'+(_0x3949a4>0x0?'.0':'')+'_)',_0x3949a4);}function _0x536d00(_0x4f9f79){const _0x51dbe9=_0x1cb02e;_0x114236(_0x4f9f79),_0x107e5b(_0x4f9f79===_0x51dbe9(0x522)?'':_0x4f9f79===_0x51dbe9(0x5b5)?_0xdb6d26(_0x136ef0,_0x1a2540):_0x4f9f79==='currency'?J(pt[0x0][_0x51dbe9(0x40f)](_0x136ef0),_0x1a2540):_0x4f9f79===_0x51dbe9(0x1c4)?dt[0x0]['suffix']:J(ft[0x0][_0x51dbe9(0x40f)],_0x1a2540));}function _0x2981ae(_0x52a42c){const _0x32806f=_0x1cb02e;_0x228fb5(_0x52a42c),_0x107e5b(_0x368db4==='accounting'?_0xdb6d26(_0x52a42c,_0x1a2540):J(pt[0x0][_0x32806f(0x40f)](_0x52a42c),_0x1a2540));}function _0xc85719(_0x4749f9){let _0x22f7a6=_0x4749f9??0x0;_0x114f52(_0x22f7a6),_0x107e5b(_0x368db4==='accounting'?_0xdb6d26(_0x136ef0,_0x22f7a6):J(_0x2303c1,_0x22f7a6));}let _0x16b843=pt['map'](_0x107413=>({'label':_0x107413[_0x1cb02e(0x21c)](_0x136ef0),'value':_0x107413[_0x1cb02e(0x40f)](_0x136ef0),'color':_0x107413[_0x1cb02e(0x5b6)]})),_0x40366a=ft['map'](_0x32004e=>({'label':_0x32004e[_0x1cb02e(0x21c)],'value':_0x32004e[_0x1cb02e(0x40f)],'color':_0x32004e[_0x1cb02e(0x5b6)]})),_0x250f96=dt['map'](_0x4b0e3a=>({'label':_0x4b0e3a[_0x1cb02e(0x21c)],'value':_0x4b0e3a[_0x1cb02e(0x40f)]}));return(0x0,d['jsxs'])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,d[_0x1cb02e(0x322)])(_0x1cb02e(0x2ca),{'children':[(0x0,d[_0x1cb02e(0x364)])(_0x1cb02e(0x2ca),{'className':_0x1cb02e(0x660),'children':_0x2a6449['t'](_0x1cb02e(0x2fd))}),(0x0,d['jsx'])(s[_0x1cb02e(0x6bd)],{'className':'univer-w-full','value':_0x368db4,'options':_0x495832,'onChange':_0x4f5895=>_0x536d00(_0x4f5895)})]}),(_0x368db4===_0x1cb02e(0x5b5)||_0x368db4===_0x1cb02e(0x220))&&(0x0,d['jsxs'])(_0x1cb02e(0x2ca),{'className':_0x1cb02e(0x3f6),'children':[(0x0,d[_0x1cb02e(0x322)])(_0x1cb02e(0x2ca),{'children':[(0x0,d[_0x1cb02e(0x364)])('div',{'className':_0x1cb02e(0x660),'children':_0x2a6449['t'](_0x1cb02e(0x58f))}),(0x0,d[_0x1cb02e(0x364)])(s[_0x1cb02e(0x6cf)],{'className':'univer-w-full','value':_0x1a2540,'min':0x0,'max':0x14,'onChange':_0xc85719})]}),(0x0,d[_0x1cb02e(0x322)])(_0x1cb02e(0x2ca),{'children':[(0x0,d[_0x1cb02e(0x364)])(_0x1cb02e(0x2ca),{'className':_0x1cb02e(0x660),'children':_0x2a6449['t']('sheets-pivot-ui.dialog.numfmt.currencyTypes')}),(0x0,d[_0x1cb02e(0x364)])(s[_0x1cb02e(0x6bd)],{'className':_0x1cb02e(0x628),'value':_0x136ef0,'options':_0x5a7c24,'onChange':_0x2981ae})]})]}),_0x368db4===_0x1cb02e(0x332)&&(0x0,d[_0x1cb02e(0x322)])(_0x1cb02e(0x2ca),{'children':[(0x0,d[_0x1cb02e(0x364)])(_0x1cb02e(0x2ca),{'className':_0x1cb02e(0x660),'children':_0x2a6449['t'](_0x1cb02e(0x58f))}),(0x0,d[_0x1cb02e(0x364)])(s['InputNumber'],{'className':_0x1cb02e(0x628),'value':_0x1a2540,'min':0x0,'max':0x14,'onChange':_0xc85719})]}),_0x368db4===_0x1cb02e(0x220)&&(0x0,d['jsx'])(s['SelectList'],{'className':_0x1cb02e(0x383),'options':_0x16b843,'value':_0x2303c1,'onChange':_0x2bfcbb=>_0x107e5b(J(_0x2bfcbb,_0x1a2540))}),_0x368db4===_0x1cb02e(0x1c4)&&(0x0,d[_0x1cb02e(0x364)])(s['SelectList'],{'className':_0x1cb02e(0x383),'options':_0x250f96,'value':_0x2303c1,'onChange':_0x2b5cb5=>_0x107e5b(_0x2b5cb5)}),_0x368db4==='thousandthPercentile'&&(0x0,d['jsx'])(s[_0x1cb02e(0x6db)],{'className':_0x1cb02e(0x383),'options':_0x40366a,'value':_0x2303c1,'onChange':_0x5cbd44=>_0x107e5b(J(_0x5cbd44,_0x1a2540))}),(0x0,d[_0x1cb02e(0x364)])(_0x1cb02e(0x2ca),{'className':_0x1cb02e(0x6a3),'children':_0x2a6449['t']('sheets-pivot-ui.dialog.numfmt.'+_0x368db4+_0x1cb02e(0x553))})]});}function Gt(_0xacf91f){const _0x5087d7=_0x14e1ea;let {unitId:_0x1d1f82,subUnitId:_0x4b311e,pivotTableId:_0x58b6e4,tableFieldId:_0x2282fb,originPattern:_0x170933,tableFieldInfo:_0x4892ef,dataFieldInfo:_0x595037}=_0xacf91f,_0x38a766=(0x0,i[_0x5087d7(0x1e8)])(n[_0x5087d7(0x27a)]),_0x321573=(0x0,i[_0x5087d7(0x1e8)])(i[_0x5087d7(0x544)]),_0x5cc3ec=(0x0,i['useDependency'])(n['LocaleService']),[_0x1a9b33,_0x413a9c]=(0x0,f['useState'])(_0x170933??'');async function _0x47d2a4(){const _0x3429c3=_0x5087d7;let _0x199125={'format':_0x1a9b33,'tableFieldId':_0x2282fb,'pivotTableId':_0x58b6e4,'unitId':_0x1d1f82,'subUnitId':_0x4b311e,'tableFieldInfo':_0x4892ef,'dataFieldInfo':_0x595037};await _0x38a766['executeCommand'](t[_0x3429c3(0x6e2)]['id'],_0x199125),_0x321573[_0x3429c3(0x34d)](w);}return(0x0,d[_0x5087d7(0x322)])(_0x5087d7(0x2ca),{'className':_0x5087d7(0x6d6),'dir':_0x5cc3ec[_0x5087d7(0x4c7)](),'children':[(0x0,d['jsx'])(Wt,{'originPattern':_0x170933,'onChange':_0x413a9c}),(0x0,d['jsxs'])(s[_0x5087d7(0x3db)],{'children':[(0x0,d['jsx'])(s[_0x5087d7(0x233)],{'onClick':()=>_0x321573['close'](w),'children':_0x5cc3ec['t'](_0x5087d7(0x47a))}),(0x0,d[_0x5087d7(0x364)])(s[_0x5087d7(0x233)],{'variant':_0x5087d7(0x5b8),'onClick':_0x47d2a4,'children':_0x5cc3ec['t'](_0x5087d7(0x210))})]})]});}function Kt(_0x26dfb6){const _0x4a122e=_0x14e1ea;let {unitId:_0x5a38b6,subUnitId:_0x18a2bb,pivotTableId:_0x434c1a,tableFieldId:_0x522120,tableFieldInfo:_0x36e31d,dataFieldInfo:_0x1a41f5,closeFn:_0x1555bb,format:_0x4a2ec7,version:_0xca6812}=_0x26dfb6,_0x3c63fc=(0x0,i[_0x4a122e(0x1e8)])(n[_0x4a122e(0x27a)]),_0x3f38b8=(0x0,i['useDependency'])(t['SheetsPivotTableConfigModel']),_0x2f3d8a=(0x0,i['useDependency'])(n[_0x4a122e(0x2a4)]),[_0x4a206d,_0x44fdbd]=(0x0,f[_0x4a122e(0x53a)])(_0x4a122e(0x61e)),[_0xc1b019,_0x30640d]=(0x0,f[_0x4a122e(0x53a)])(_0x36e31d[_0x4a122e(0x2db)]),[_0x11e298,_0x4dd043]=(0x0,f[_0x4a122e(0x53a)])(_0x36e31d[_0x4a122e(0x301)]),[_0x2acd2d,_0x3dde08]=(0x0,f[_0x4a122e(0x53a)])(_0x4a2ec7??_0x36e31d[_0x4a122e(0x65d)]??''),[_0x3f8403,_0x47df52]=(0x0,f[_0x4a122e(0x53a)])(_0x2acd2d);(0x0,f['useEffect'])(()=>{const _0x146659=_0x4a122e;_0x44fdbd(_0x146659(0x61e)),_0x30640d(_0x36e31d[_0x146659(0x2db)]),_0x4dd043(_0x36e31d[_0x146659(0x301)]),_0x3dde08(_0x4a2ec7??_0x36e31d['format']??''),_0x47df52(_0x4a2ec7??_0x36e31d[_0x146659(0x65d)]??'');},[_0x4a2ec7,_0x36e31d,_0xca6812]);let _0x3e37fe={..._0x3f38b8[_0x4a122e(0x21f)]()};[_0x4a122e(0x4db),_0x4a122e(0x20f),_0x4a122e(0x3f5),_0x4a122e(0x29d),'sheets-pivot-ui.minName','sheets-pivot-ui.productName','sheets-pivot-ui.stdDevName','sheets-pivot-ui.stdDevpName',_0x4a122e(0x214),'sheets-pivot-ui.varName',_0x4a122e(0x256)][_0x4a122e(0x263)](_0xe3ae27=>{_0x3e37fe[_0xe3ae27]=_0x2f3d8a['t'](_0xe3ae27);});function _0xc9439c(_0x17ff24){const _0x1db51b=_0x4a122e;_0x4dd043(_0x17ff24),Bt(_0x1a41f5['name'],_0xc1b019,_0x3e37fe)&&_0x30640d(Vt(_0x1a41f5[_0x1db51b(0x6d0)],_0x3e37fe,_0x17ff24));}async function _0x232992(){const _0x47ccc9=_0x4a122e;let _0x233122={'displayName':_0x36e31d[_0x47ccc9(0x2db)]===_0xc1b019?void 0x0:_0xc1b019,'subtotalType':_0x36e31d['subTotalType']===_0x11e298?void 0x0:_0x11e298,'format':_0x36e31d[_0x47ccc9(0x65d)]===_0x2acd2d?void 0x0:_0x2acd2d,'tableFieldId':_0x522120,'pivotTableId':_0x434c1a,'unitId':_0x5a38b6,'subUnitId':_0x18a2bb,'tableFieldInfo':_0x36e31d,'dataFieldInfo':_0x1a41f5};await _0x3c63fc[_0x47ccc9(0x2f1)](t['UpdatePivotFieldSettingCommand']['id'],_0x233122),_0x1555bb();}return _0x4a206d===_0x4a122e(0x65d)?(0x0,d['jsxs'])(_0x4a122e(0x2ca),{'className':_0x4a122e(0x6d6),'dir':_0x2f3d8a['getDirection'](),'children':[(0x0,d[_0x4a122e(0x322)])(_0x4a122e(0x3e7),{'type':'button','className':_0x4a122e(0x2c2),'onClick':()=>_0x44fdbd(_0x4a122e(0x61e)),'children':[(0x0,d['jsx'])(u[_0x4a122e(0x60f)],{}),_0x2f3d8a['t'](_0x4a122e(0x373))]}),(0x0,d[_0x4a122e(0x364)])(Wt,{'originPattern':_0x2acd2d,'onChange':_0x47df52}),(0x0,d[_0x4a122e(0x322)])(s[_0x4a122e(0x3db)],{'children':[(0x0,d['jsx'])(s[_0x4a122e(0x233)],{'onClick':()=>_0x44fdbd('field'),'children':_0x2f3d8a['t'](_0x4a122e(0x47a))}),(0x0,d[_0x4a122e(0x364)])(s[_0x4a122e(0x233)],{'variant':_0x4a122e(0x5b8),'onClick':()=>{_0x3dde08(_0x3f8403),_0x44fdbd('field');},'children':_0x2f3d8a['t'](_0x4a122e(0x210))})]})]}):(0x0,d[_0x4a122e(0x322)])('div',{'className':_0x4a122e(0x2e2),'dir':_0x2f3d8a[_0x4a122e(0x4c7)](),'children':[(0x0,d[_0x4a122e(0x322)])(_0x4a122e(0x2ca),{'children':[(0x0,d[_0x4a122e(0x322)])(_0x4a122e(0x2ca),{'className':_0x4a122e(0x375),'children':[(0x0,d['jsx'])(_0x4a122e(0x55e),{'className':_0x4a122e(0x3ea),'children':_0x2f3d8a['t'](_0x4a122e(0x5d1))}),(0x0,d[_0x4a122e(0x364)])(_0x4a122e(0x55e),{'className':_0x4a122e(0x244),'children':ht(_0x2f3d8a['t'](_0x4a122e(0x473)),_0x1a41f5[_0x4a122e(0x6d0)])})]}),(0x0,d[_0x4a122e(0x364)])(s[_0x4a122e(0x495)],{'className':'univer-mt-2\x20univer-h-10\x20univer-w-full','value':_0xc1b019,'onChange':_0x30640d})]}),(0x0,d['jsxs'])(_0x4a122e(0x2ca),{'children':[(0x0,d[_0x4a122e(0x364)])('div',{'className':_0x4a122e(0x660),'children':_0x2f3d8a['t'](_0x4a122e(0x376))}),(0x0,d[_0x4a122e(0x364)])('div',{'className':_0x4a122e(0x294),'children':Ot[_0x4a122e(0x505)](_0x33c2aa=>(0x0,d['jsxs'])('button',{'type':_0x4a122e(0x3e7),'className':(0x0,s[_0x4a122e(0x4f8)])(_0x4a122e(0x49e),{'univer-bg-primary-50\x20dark:!univer-bg-gray-700':_0x11e298===_0x33c2aa[_0x4a122e(0x314)]}),'onClick':()=>_0xc9439c(_0x33c2aa[_0x4a122e(0x314)]),'children':[(0x0,d[_0x4a122e(0x364)])(u[_0x4a122e(0x629)],{'className':(0x0,s[_0x4a122e(0x4f8)])(_0x4a122e(0x266),{'univer-invisible':_0x11e298!==_0x33c2aa[_0x4a122e(0x314)]})}),_0x2f3d8a['t'](_0x33c2aa[_0x4a122e(0x377)])]},_0x33c2aa[_0x4a122e(0x314)]))})]}),(0x0,d['jsx'])(s[_0x4a122e(0x233)],{'className':_0x4a122e(0x6d1),'onClick':()=>{const _0x53635b=_0x4a122e;_0x47df52(_0x2acd2d),_0x44fdbd(_0x53635b(0x65d));},'children':_0x2f3d8a['t'](_0x4a122e(0x631))}),(0x0,d[_0x4a122e(0x322)])(s['MobileActionRowGroup'],{'children':[(0x0,d[_0x4a122e(0x364)])(s[_0x4a122e(0x233)],{'onClick':_0x1555bb,'children':_0x2f3d8a['t'](_0x4a122e(0x4aa))}),(0x0,d[_0x4a122e(0x364)])(s[_0x4a122e(0x233)],{'variant':_0x4a122e(0x5b8),'disabled':!_0xc1b019,'onClick':_0x232992,'children':_0x2f3d8a['t'](_0x4a122e(0x356))})]})]});}function qt(_0x47a78b){const _0x57d710=_0x14e1ea;var _0x10711d;let {filterItemInfo:_0x59819f,unitId:_0x1d5837,subUnitId:_0xe568c6}=_0x47a78b,_0x45474d=(0x0,i[_0x57d710(0x1e8)])(n[_0x57d710(0x27a)]),_0x1d4e7a=(0x0,i[_0x57d710(0x1e8)])(i[_0x57d710(0x544)]),_0x106d20=(0x0,i[_0x57d710(0x1e8)])(n[_0x57d710(0x2a4)]),_0x556dc7=(0x0,i[_0x57d710(0x1e8)])(n[_0x57d710(0x642)]),_0x45b133=(0x0,i[_0x57d710(0x391)])(_0x106d20['direction$'],_0x106d20[_0x57d710(0x4c7)]()),[_0x316b09,_0x250036]=(0x0,f[_0x57d710(0x53a)])(()=>{const _0x4a115b=_0x57d710;var _0x32b0dc;return _0x59819f[_0x4a115b(0x519)]??((_0x32b0dc=_0x59819f['filterInfo'])==null?void 0x0:_0x32b0dc['list'])??_0x59819f[_0x4a115b(0x2fc)];}),[_0x431502,_0x5633b1]=(0x0,f['useState'])(()=>_0x59819f[_0x57d710(0x5f2)]??[]),[_0xf054d8,_0x24c319]=(0x0,f[_0x57d710(0x53a)])((_0x10711d=_0x59819f['sortInfo'])==null?void 0x0:_0x10711d[_0x57d710(0x314)]),_0x2986be=_0x431502[_0x57d710(0x2f3)]===0x0&&_0x316b09[_0x57d710(0x2f3)]===_0x59819f['items']['length'],_0x33e1f=Ht(_0x59819f['filterInfo'],{'items':_0x59819f[_0x57d710(0x2fc)],'conditionFilter':_0x59819f[_0x57d710(0x515)]});(0x0,f['useEffect'])(()=>{const _0x43e368=_0x57d710;let _0x152cb1=_0x556dc7[_0x43e368(0x5d2)](n['UniverInstanceType'][_0x43e368(0x640)]);if(!_0x152cb1)return;let _0x1e5512=_0x152cb1[_0x43e368(0x253)][_0x43e368(0x54a)](_0xd9ec74=>{const _0x1a6824=_0x43e368;(_0xd9ec74==null?void 0x0:_0xd9ec74['getSheetId']())!==_0xe568c6&&_0x1d4e7a[_0x1a6824(0x34d)](b);});return()=>_0x1e5512[_0x43e368(0x5af)]();},[_0x1d4e7a,_0xe568c6,_0x556dc7]);function _0x2a4dee(){const _0x1cca7=_0x57d710;_0x1d4e7a[_0x1cca7(0x34d)](b);}function _0x233238(_0x31d90c){const _0x373718=_0x57d710;_0x431502['includes'](_0x31d90c)?(_0x5633b1(_0x284728=>_0x284728[_0x373718(0x327)](_0x4e1f94=>_0x4e1f94!==_0x31d90c)),_0x250036(_0x31fa54=>[..._0x31fa54,_0x31d90c])):_0x250036(_0x70c441=>_0x70c441[_0x373718(0x3a9)](_0x31d90c)?_0x70c441[_0x373718(0x327)](_0x40cd50=>_0x40cd50!==_0x31d90c):[..._0x70c441,_0x31d90c]);}async function _0x37a856(_0x387fe4,_0x2a5372,_0x417a0a,_0x30167f=!0x1){const _0x1187fa=_0x57d710;await _0x45474d[_0x1187fa(0x2f1)](t[_0x1187fa(0x260)]['id'],{'unitId':_0x1d5837,'subUnitId':_0xe568c6,'pivotTableId':_0x59819f[_0x1187fa(0x1ec)],'tableFieldId':_0x59819f[_0x1187fa(0x5df)],'items':_0x387fe4,'partialItems':_0x417a0a,'isAll':_0x2a5372,'clearAllFilters':_0x30167f}),_0x2a4dee();}async function _0x4742b9(_0xe2ac5a){const _0x292cb2=_0x57d710;await _0x45474d['executeCommand'](t[_0x292cb2(0x204)]['id'],{'unitId':_0x1d5837,'subUnitId':_0xe568c6,'pivotTableId':_0x59819f[_0x292cb2(0x1ec)],'tableFieldId':_0x59819f['tableFieldId'],'info':{'type':_0xe2ac5a}}),_0x24c319(_0xe2ac5a),_0x2a4dee();}return(0x0,d[_0x57d710(0x322)])(_0x57d710(0x2ca),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','dir':_0x45b133,'children':[(0x0,d[_0x57d710(0x364)])(_0x57d710(0x2ca),{'className':'univer-text-base\x20univer-font-semibold','children':_0x106d20['t']('sheets-pivot-ui.filterField')}),(0x0,d[_0x57d710(0x322)])(_0x57d710(0x2ca),{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-2','children':[(0x0,d[_0x57d710(0x322)])(s['Button'],{'className':(0x0,s[_0x57d710(0x4f8)])(_0x57d710(0x36d),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0xf054d8===e[_0x57d710(0x496)][_0x57d710(0x442)]}),'onClick':()=>_0x4742b9(e[_0x57d710(0x496)][_0x57d710(0x442)]),'children':[(0x0,d[_0x57d710(0x364)])(u[_0x57d710(0x630)],{}),_0x106d20['t'](_0x57d710(0x2b7))]}),(0x0,d[_0x57d710(0x322)])(s[_0x57d710(0x233)],{'className':(0x0,s[_0x57d710(0x4f8)])(_0x57d710(0x36d),{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0xf054d8===e[_0x57d710(0x496)][_0x57d710(0x6cd)]}),'onClick':()=>_0x4742b9(e[_0x57d710(0x496)][_0x57d710(0x6cd)]),'children':[(0x0,d[_0x57d710(0x364)])(u[_0x57d710(0x603)],{}),_0x106d20['t'](_0x57d710(0x488))]})]}),(0x0,d[_0x57d710(0x322)])(_0x57d710(0x2ca),{'className':_0x57d710(0x3b6),'children':[(0x0,d['jsx'])('div',{'className':_0x57d710(0x20b),'children':(0x0,d['jsx'])(s['Checkbox'],{'checked':_0x2986be,'indeterminate':!_0x2986be&&(_0x316b09['length']>0x0||_0x431502[_0x57d710(0x2f3)]>0x0),'onChange':()=>{const _0x2b5285=_0x57d710;_0x5633b1([]),_0x250036(_0x2986be?[]:_0x59819f[_0x2b5285(0x2fc)]);},'children':_0x106d20['t'](_0x57d710(0x309))})}),_0x59819f[_0x57d710(0x2fc)][_0x57d710(0x505)]((_0x45aa59,_0x23b4fd)=>{const _0x397cd4=_0x57d710;var _0x220016;let _0x59e5ec=_0x59819f['itemTypes'][_0x23b4fd],_0x22bab0=(_0x220016=_0x59819f[_0x397cd4(0x6b5)])==null?void 0x0:_0x220016[_0x45aa59],_0x39e6e0=_0x45aa59;return _0x22bab0===void 0x0?_0x59e5ec===e[_0x397cd4(0x334)][_0x397cd4(0x592)]?_0x39e6e0=_0x106d20['t'](_0x397cd4(0x5d8)):_0x59e5ec===e['PivotDataFieldDataTypeEnum']['date']&&_0x59819f[_0x397cd4(0x65d)]&&(_0x39e6e0=n[_0x397cd4(0x5c1)]['format'](_0x59819f[_0x397cd4(0x65d)],Number(_0x45aa59))):_0x39e6e0=_0x22bab0,(0x0,d['jsx'])(_0x397cd4(0x2ca),{'className':_0x397cd4(0x20b),'children':(0x0,d[_0x397cd4(0x364)])(s[_0x397cd4(0x1c1)],{'checked':_0x316b09[_0x397cd4(0x3a9)](_0x45aa59),'indeterminate':_0x431502[_0x397cd4(0x3a9)](_0x45aa59),'contentClassName':_0x397cd4(0x56e),'onChange':()=>_0x233238(_0x45aa59),'children':_0x39e6e0})},_0x45aa59);})]}),(0x0,d[_0x57d710(0x364)])(s[_0x57d710(0x233)],{'className':_0x57d710(0x6d1),'variant':_0x57d710(0x378),'disabled':_0x33e1f===_0x57d710(0x399),'onClick':()=>_0x37a856(_0x59819f[_0x57d710(0x2fc)],!0x0,[],!0x0),'children':_0x106d20['t'](_0x57d710(0x24a))}),(0x0,d[_0x57d710(0x322)])(s[_0x57d710(0x3db)],{'children':[(0x0,d[_0x57d710(0x364)])(s[_0x57d710(0x233)],{'onClick':_0x2a4dee,'children':_0x106d20['t'](_0x57d710(0x531))}),(0x0,d['jsx'])(s[_0x57d710(0x233)],{'variant':_0x57d710(0x5b8),'disabled':!_0x316b09[_0x57d710(0x2f3)]&&!_0x431502[_0x57d710(0x2f3)],'onClick':()=>_0x37a856(_0x316b09,_0x2986be,_0x431502),'children':_0x106d20['t'](_0x57d710(0x5d5))})]})]});}const Jt=[{'label':'sheets-pivot-ui.config.pageDownThenOver','value':_0x14e1ea(0x457)},{'label':'sheets-pivot-ui.config.pageOverThenDown','value':'true'}],Yt=[{'label':'sheets-pivot-ui.config.layoutTabular','value':String(e['PivotLayoutTypeEnum'][_0x14e1ea(0x32b)])},{'label':_0x14e1ea(0x69e),'value':String(e[_0x14e1ea(0x354)][_0x14e1ea(0x1e6)])},{'label':_0x14e1ea(0x67c),'value':String(e[_0x14e1ea(0x354)][_0x14e1ea(0x437)])}],Xt=[{'label':'sheets-pivot-ui.config.rowSubtotalTop','value':String(e['PivotSubtotalPositionEnum'][_0x14e1ea(0x68d)])},{'label':_0x14e1ea(0x1f5),'value':String(e[_0x14e1ea(0x600)][_0x14e1ea(0x417)])}],Zt=[{'label':_0x14e1ea(0x62b),'value':e[_0x14e1ea(0x41c)][_0x14e1ea(0x1b6)]},{'label':'sheets-pivot-ui.config.dateGroupingExcelLike','value':e[_0x14e1ea(0x41c)][_0x14e1ea(0x5c0)]}];function Qt(_0x2635f5){const _0x31af65=_0x14e1ea;let {unitId:_0x171474,subUnitId:_0x3a808e,pivotTableId:_0x16f083}=_0x2635f5,_0x1f13c8=(0x0,i[_0x31af65(0x1e8)])(n[_0x31af65(0x27a)]),_0x44f63=(0x0,i[_0x31af65(0x1e8)])(n[_0x31af65(0x461)]),_0x377873=(0x0,i['useDependency'])(n[_0x31af65(0x699)]),_0x29b13b=(0x0,i[_0x31af65(0x1e8)])(n[_0x31af65(0x2a4)]),_0x4c1547=(0x0,i[_0x31af65(0x1e8)])(t[_0x31af65(0x6ad)]),_0x52eec6=(0x0,f[_0x31af65(0x68c)])(()=>_0x4c1547['watchPivotTableChanges'](_0x171474,_0x3a808e,_0x16f083)[_0x31af65(0x3b1)]((0x0,o[_0x31af65(0x4a2)])(0x0)),[_0x4c1547,_0x171474,_0x3a808e,_0x16f083]);(0x0,i[_0x31af65(0x391)])(_0x52eec6);let [_0x26c609,_0x1d9619]=(0x0,f[_0x31af65(0x53a)])(!0x1),_0x4699f0=(0x0,f[_0x31af65(0x4a8)])(!0x1),_0x39c1b2=_0x4c1547['getPivotTableConfig'](_0x171474,_0x3a808e,_0x16f083),_0x50403d=(0x0,e[_0x31af65(0x6be)])(_0x39c1b2==null?void 0x0:_0x39c1b2[_0x31af65(0x30c)][_0x31af65(0x44a)]),[_0x3aaac0,_0x25f8bd]=(0x0,f[_0x31af65(0x53a)])(()=>{const _0x4587d8=_0x31af65;var _0x3fdef9,_0x31418b;let _0x2e0c73=_0x4c1547[_0x4587d8(0x4c8)](_0x171474,_0x3a808e,_0x16f083),_0x3f08bd=(_0x2e0c73==null||(_0x3fdef9=_0x2e0c73[_0x4587d8(0x30c)])==null?void 0x0:_0x3fdef9['options'])??{};return{'showRowSubtotal':_0x3f08bd[_0x4587d8(0x5e4)]??!0x0,'showRowGrandTotal':_0x3f08bd['showRowGrandTotal']??!0x0,'showColSubtotal':_0x3f08bd[_0x4587d8(0x1fb)]??!0x0,'showColGrandTotal':_0x3f08bd[_0x4587d8(0x692)]??!0x0,'pageWrap':_0x3f08bd['pageWrap']??0x1,'pageOverThenDown':_0x3f08bd[_0x4587d8(0x484)]??!0x1,'repeatRowLabels':_0x3f08bd[_0x4587d8(0x2d1)]??!0x1,'repeatColLabels':_0x3f08bd[_0x4587d8(0x33f)]??!0x1,'layout':(_0x2e0c73==null||(_0x31418b=_0x2e0c73[_0x4587d8(0x30c)])==null?void 0x0:_0x31418b['layout'])??e[_0x4587d8(0x354)][_0x4587d8(0x32b)],'rowSubtotalPosition':_0x3f08bd[_0x4587d8(0x651)]??e[_0x4587d8(0x600)]['top']};});function _0x49c1d1(_0x38f992){const _0x31536c=_0x31af65;let _0x49496c={'unitId':_0x171474,'subUnitId':_0x3a808e,'pivotTableId':_0x16f083,'options':_0x38f992};return _0x25f8bd(_0x3352a3=>({..._0x3352a3,..._0x38f992})),_0x1f13c8[_0x31536c(0x2f1)](t[_0x31536c(0x64c)]['id'],_0x49496c)[_0x31536c(0x662)](_0x48ff9e=>_0x377873[_0x31536c(0x41e)]('[MobilePivotConfigPanel]',_0x48ff9e));}function _0x5a7349(_0x4d5218){const _0x2713f5=_0x31af65;let _0x5ea900={'unitId':_0x171474,'subUnitId':_0x3a808e,'pivotTableId':_0x16f083,'layout':_0x4d5218};return _0x25f8bd(_0x58ee30=>({..._0x58ee30,'layout':_0x4d5218})),_0x1f13c8[_0x2713f5(0x2f1)](t[_0x2713f5(0x688)]['id'],_0x5ea900)[_0x2713f5(0x662)](_0x170dab=>_0x377873[_0x2713f5(0x41e)](_0x2713f5(0x3dd),_0x170dab));}async function _0x26b0e6(_0x4b2a98){const _0x2ae78d=_0x31af65;if(!(_0x4699f0[_0x2ae78d(0x68f)]||_0x4b2a98===_0x50403d)){_0x4699f0[_0x2ae78d(0x68f)]=!0x0,_0x1d9619(!0x0);try{let _0x56dd1f=_0x4c1547[_0x2ae78d(0x4c8)](_0x171474,_0x3a808e,_0x16f083),_0x20e311=_0x4c1547[_0x2ae78d(0x353)](_0x171474,_0x16f083);if(!_0x56dd1f||!_0x20e311||(Object['values'](_0x20e311[_0x2ae78d(0x287)])[_0x2ae78d(0x47b)](e['isDateGroupFieldJSON'])||_0x20e311['customFields'][_0x2ae78d(0x47b)](e[_0x2ae78d(0x6b0)]))&&!await _0x44f63[_0x2ae78d(0x23e)]({'id':_0x2ae78d(0x19f),'title':{'title':_0x29b13b['t'](_0x2ae78d(0x453))},'children':{'title':_0x29b13b['t'](_0x2ae78d(0x420))},'cancelText':_0x29b13b['t'](_0x2ae78d(0x4aa)),'confirmText':_0x29b13b['t'](_0x2ae78d(0x356))})||_0x4c1547[_0x2ae78d(0x4c8)](_0x171474,_0x3a808e,_0x16f083)!==_0x56dd1f||_0x4c1547[_0x2ae78d(0x353)](_0x171474,_0x16f083)!==_0x20e311||(0x0,e['getPivotDateGroupingMode'])(_0x56dd1f[_0x2ae78d(0x30c)][_0x2ae78d(0x44a)])===_0x4b2a98)return;await _0x1f13c8[_0x2ae78d(0x2f1)](t[_0x2ae78d(0x64c)]['id'],{'unitId':_0x171474,'subUnitId':_0x3a808e,'pivotTableId':_0x16f083,'options':{'dateGroupingMode':_0x4b2a98}});}catch(_0x3940a9){_0x377873[_0x2ae78d(0x41e)]('[MobilePivotConfigPanel]',_0x3940a9);}finally{_0x4699f0['current']=!0x1,_0x1d9619(!0x1);}}}let _0x207ff1=_0x5d4e3e=>_0x5d4e3e[_0x31af65(0x505)](_0x19cd5e=>({..._0x19cd5e,'label':_0x29b13b['t'](_0x19cd5e[_0x31af65(0x21c)])}));return(0x0,d[_0x31af65(0x322)])(_0x31af65(0x2ca),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-py-4','children':[(0x0,d['jsxs'])(_0x31af65(0x22d),{'className':_0x31af65(0x412),'children':[(0x0,d['jsx'])(_0x31af65(0x2ca),{'className':_0x31af65(0x2f4),'children':_0x29b13b['t'](_0x31af65(0x386))}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x2ca),{'className':'univer-flex\x20univer-min-h-10\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x55e),{'className':_0x31af65(0x541),'children':_0x29b13b['t'](_0x31af65(0x274))}),(0x0,d[_0x31af65(0x364)])(s['MobileSelect'],{'className':'univer-w-40','value':_0x50403d,'options':_0x207ff1(Zt),'disabled':_0x26c609,'onChange':_0xaae66e=>_0x26b0e6(_0xaae66e)})]}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x2ca),{'className':'univer-flex\x20univer-min-h-10\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x55e),{'className':_0x31af65(0x541),'children':_0x29b13b['t'](_0x31af65(0x4be))}),(0x0,d[_0x31af65(0x364)])(s['MobileSelect'],{'className':_0x31af65(0x216),'value':String(_0x3aaac0[_0x31af65(0x371)]),'options':_0x207ff1(Yt),'onChange':_0x4b2063=>_0x5a7349(Number(_0x4b2063))})]}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x1c1)],{'checked':_0x3aaac0[_0x31af65(0x2d1)],'disabled':_0x3aaac0[_0x31af65(0x371)]===e[_0x31af65(0x354)]['compact'],'onChange':_0x169247=>_0x49c1d1({'repeatRowLabels':!!_0x169247}),'children':_0x29b13b['t'](_0x31af65(0x616))}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x1c1)],{'checked':_0x3aaac0[_0x31af65(0x33f)],'onChange':_0x2ebe47=>_0x49c1d1({'repeatColLabels':!!_0x2ebe47}),'children':_0x29b13b['t']('sheets-pivot-ui.config.repeatColLabels')})]}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x22d),{'className':_0x31af65(0x412),'children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x2ca),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','children':_0x29b13b['t'](_0x31af65(0x3b3))}),(0x0,d[_0x31af65(0x364)])(s['Checkbox'],{'checked':_0x3aaac0[_0x31af65(0x5e4)],'onChange':_0x28198e=>_0x49c1d1({'showRowSubtotal':!!_0x28198e}),'children':_0x29b13b['t'](_0x31af65(0x54b))}),_0x3aaac0[_0x31af65(0x371)]===e[_0x31af65(0x354)][_0x31af65(0x437)]&&(0x0,d[_0x31af65(0x322)])('div',{'className':_0x31af65(0x300),'children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x55e),{'className':_0x31af65(0x541),'children':_0x29b13b['t']('sheets-pivot-ui.config.rowSubtotalPosition')}),(0x0,d['jsx'])(s[_0x31af65(0x6bd)],{'className':'univer-w-40','value':String(_0x3aaac0[_0x31af65(0x651)]),'options':_0x207ff1(Xt),'onChange':_0x521672=>_0x49c1d1({'rowSubtotalPosition':Number(_0x521672)})})]}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x1c1)],{'checked':_0x3aaac0[_0x31af65(0x6a7)],'onChange':_0x3170a9=>_0x49c1d1({'showRowGrandTotal':!!_0x3170a9}),'children':_0x29b13b['t']('sheets-pivot-ui.config.showRowGrandTotal')}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x1c1)],{'checked':_0x3aaac0[_0x31af65(0x1fb)],'onChange':_0x24759f=>_0x49c1d1({'showColSubtotal':!!_0x24759f}),'children':_0x29b13b['t']('sheets-pivot-ui.config.showColSubtotal')}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x1c1)],{'checked':_0x3aaac0[_0x31af65(0x692)],'onChange':_0x5b5c50=>_0x49c1d1({'showColGrandTotal':!!_0x5b5c50}),'children':_0x29b13b['t'](_0x31af65(0x387))})]}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x22d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x2ca),{'className':_0x31af65(0x2f4),'children':_0x29b13b['t']('sheets-pivot-ui.config.pageSection')}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x2ca),{'className':_0x31af65(0x300),'children':[(0x0,d['jsx'])(_0x31af65(0x55e),{'className':_0x31af65(0x541),'children':_0x29b13b['t'](_0x31af65(0x369))}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x6cf)],{'className':_0x31af65(0x5ed),'value':_0x3aaac0[_0x31af65(0x4bf)],'min':0x1,'max':0x14,'onChange':_0x483a18=>{const _0x572654=_0x31af65;let _0x4814fb=Number(_0x483a18);return Number[_0x572654(0x5cc)](_0x4814fb)&&_0x4814fb>=0x1?_0x49c1d1({'pageWrap':_0x4814fb}):void 0x0;}})]}),(0x0,d[_0x31af65(0x322)])(_0x31af65(0x2ca),{'className':_0x31af65(0x300),'children':[(0x0,d[_0x31af65(0x364)])(_0x31af65(0x55e),{'className':_0x31af65(0x541),'children':_0x29b13b['t'](_0x31af65(0x69c))}),(0x0,d[_0x31af65(0x364)])(s[_0x31af65(0x6bd)],{'className':_0x31af65(0x216),'value':String(_0x3aaac0[_0x31af65(0x484)]),'options':_0x207ff1(Jt),'onChange':_0x1a8ad9=>_0x49c1d1({'pageOverThenDown':_0x1a8ad9===_0x31af65(0x35c)})})]})]})]});}function $t(_0x42b665,_0x1599c3,_0x4e8935,_0x46b754){const _0x3195ec=_0x14e1ea;let _0x4d27d6=[];return _0x1599c3>0x0&&_0x4d27d6[_0x3195ec(0x382)](_0x3195ec(0x596)),_0x1599c3<_0x4e8935-0x1&&_0x4d27d6[_0x3195ec(0x382)](_0x3195ec(0x1b9)),_0x46b754?(_0x4d27d6['push'](_0x42b665===_0x3195ec(0x209)?_0x3195ec(0x321):_0x3195ec(0x551)),_0x4d27d6[_0x3195ec(0x382)]('remove'),_0x4d27d6):(_0x42b665!=='filter'&&_0x4d27d6[_0x3195ec(0x382)]('moveToFilter'),_0x42b665!=='column'&&_0x4d27d6['push']('moveToColumn'),_0x42b665!==_0x3195ec(0x5f4)&&_0x4d27d6[_0x3195ec(0x382)](_0x3195ec(0x321)),_0x42b665===_0x3195ec(0x320)?_0x4d27d6['push'](_0x3195ec(0x207)):(_0x4d27d6['push']('moveToValue'),_0x4d27d6[_0x3195ec(0x382)]('filter')),_0x4d27d6[_0x3195ec(0x382)](_0x3195ec(0x574)),_0x4d27d6);}const en=[_0x14e1ea(0x327),_0x14e1ea(0x209),_0x14e1ea(0x5f4),_0x14e1ea(0x320)];function tn(_0x568a8a,_0x1edf55){const _0x2db599=_0x14e1ea;switch(_0x1edf55){case'filter':return _0x568a8a[_0x2db599(0x545)];case _0x2db599(0x209):return _0x568a8a[_0x2db599(0x310)];case _0x2db599(0x5f4):return _0x568a8a[_0x2db599(0x40c)];case _0x2db599(0x320):return _0x568a8a[_0x2db599(0x6f1)];default:return[];}}function nn(_0x4887a7){const _0x3e8ec9=_0x14e1ea;switch(_0x4887a7){case _0x3e8ec9(0x327):return _0x3e8ec9(0x2ab);case'column':return'sheets-pivot-ui.column';case _0x3e8ec9(0x5f4):return _0x3e8ec9(0x6e6);default:return _0x3e8ec9(0x1c6);}}function rn(_0x3824d8){const _0x3214a3=_0x14e1ea;switch(_0x3824d8){case _0x3214a3(0x327):return _0x3214a3(0x1e1);case _0x3214a3(0x209):return _0x3214a3(0x567);case'row':return'sheets-pivot-ui.mobile.rowDesc';default:return'sheets-pivot-ui.valueDesc';}}function an(_0xc766e4){const _0x4f9e70=_0x14e1ea;switch(_0xc766e4[_0x4f9e70(0x2ea)]){case _0x4f9e70(0x327):return(0x0,d[_0x4f9e70(0x364)])(u['FilterIcon'],{});case _0x4f9e70(0x209):return(0x0,d['jsx'])(u[_0x4f9e70(0x2cc)],{});case _0x4f9e70(0x5f4):return(0x0,d['jsx'])(u[_0x4f9e70(0x4a9)],{});default:return(0x0,d[_0x4f9e70(0x364)])(u[_0x4f9e70(0x4ab)],{});}}function on(_0x51778c){const _0x18e8ed=_0x14e1ea;switch(_0x51778c){case _0x18e8ed(0x596):return _0x18e8ed(0x6e0);case _0x18e8ed(0x1b9):return _0x18e8ed(0x3ed);case'moveToFilter':return _0x18e8ed(0x582);case _0x18e8ed(0x551):return _0x18e8ed(0x664);case _0x18e8ed(0x321):return _0x18e8ed(0x323);case _0x18e8ed(0x3d6):return _0x18e8ed(0x335);case _0x18e8ed(0x327):return _0x18e8ed(0x4d0);case'settings':return _0x18e8ed(0x3bc);default:return _0x18e8ed(0x511);}}function sn(_0x3c7e34){const _0x3eba26=_0x14e1ea;switch(_0x3c7e34){case _0x3eba26(0x487):return'filter';case _0x3eba26(0x551):return _0x3eba26(0x209);case _0x3eba26(0x321):return _0x3eba26(0x5f4);case _0x3eba26(0x3d6):return _0x3eba26(0x320);default:return null;}}function cn(_0x214728){const _0x24a76d=_0x14e1ea;let {area:_0x560b26,field:_0x305e5e,index:_0x4a1583,fieldCount:_0x549bd1,info:_0x49460c,pivotTableId:_0xbe1463,unitId:_0x480c4b,subUnitId:_0xdf9922,refresh:_0x4ce19f}=_0x214728,_0x42335c=(0x0,i[_0x24a76d(0x1e8)])(n[_0x24a76d(0x27a)]),_0x344ea0=(0x0,i[_0x24a76d(0x1e8)])(n['LocaleService']),_0x316659=_0x305e5e[_0x24a76d(0x5df)]===mt,_0x58ba81={'pivotTableInfo':_0x49460c,'pivotTableId':_0xbe1463,'commandService':_0x42335c,'unitId':_0x480c4b,'subUnitId':_0xdf9922};async function _0x3bcca8(_0xfe3e93){const _0x1b45f7=_0x24a76d;if(_0xfe3e93==='filter'){Et(_0x42335c,_0x480c4b,_0xdf9922,_0xbe1463,_0x305e5e[_0x1b45f7(0x5df)]);return;}if(_0xfe3e93==='settings'){Dt(_0x42335c,_0xbe1463,_0x305e5e[_0x1b45f7(0x5df)],_0x480c4b,_0xdf9922,_0x49460c);return;}if(_0xfe3e93===_0x1b45f7(0x574)){await yt(_0x58ba81,_0x305e5e[_0x1b45f7(0x5df)],_0x560b26),await _0x4ce19f();return;}let _0x988321=sn(_0xfe3e93)??_0x560b26,_0x35fa7e=tn(_0x49460c,_0x988321)[_0x1b45f7(0x2f3)];_0xfe3e93===_0x1b45f7(0x596)?_0x35fa7e=_0x4a1583-0x1:_0xfe3e93===_0x1b45f7(0x1b9)&&(_0x35fa7e=_0x4a1583+0x1),await St(_0x58ba81,_0x305e5e[_0x1b45f7(0x5df)],_0x560b26,_0x988321,_0x35fa7e),await _0x4ce19f();}let _0x1cd22b=$t(_0x560b26,_0x4a1583,_0x549bd1,_0x316659)[_0x24a76d(0x505)](_0x490af6=>({'type':_0x24a76d(0x2e6),'children':_0x344ea0['t'](on(_0x490af6)),'variant':_0x490af6==='remove'?_0x24a76d(0x2ef):_0x24a76d(0x463),'onSelect':()=>_0x3bcca8(_0x490af6)}));return(0x0,d[_0x24a76d(0x322)])(_0x24a76d(0x2ca),{'className':_0x24a76d(0x2eb),'children':[(0x0,d[_0x24a76d(0x364)])('bdi',{'className':_0x24a76d(0x2bb),'dir':_0x24a76d(0x5c2),'children':_0x316659?_0x344ea0['t'](_0x24a76d(0x206)):_0x305e5e[_0x24a76d(0x2db)]}),(0x0,d[_0x24a76d(0x364)])(s[_0x24a76d(0x4f5)],{'items':_0x1cd22b,'children':(0x0,d[_0x24a76d(0x364)])(_0x24a76d(0x3e7),{'type':_0x24a76d(0x3e7),'className':_0x24a76d(0x36f),'children':(0x0,d['jsx'])(u[_0x24a76d(0x447)],{})})})]});}function ln(_0x23b01a){const _0x1a6ea5=_0x14e1ea;let _0x3de088=(0x0,i[_0x1a6ea5(0x1e8)])(n[_0x1a6ea5(0x2a4)]);return(0x0,d[_0x1a6ea5(0x364)])(_0x1a6ea5(0x2ca),{'className':_0x1a6ea5(0x2e2),'children':en['map'](_0x2fd108=>{const _0x283ccf=_0x1a6ea5;let _0x26598e=tn(_0x23b01a['info'],_0x2fd108);return(0x0,d[_0x283ccf(0x322)])(_0x283ccf(0x22d),{'children':[(0x0,d['jsxs'])(_0x283ccf(0x2ca),{'className':_0x283ccf(0x6ae),'children':[(0x0,d[_0x283ccf(0x364)])(an,{'area':_0x2fd108}),_0x3de088['t'](nn(_0x2fd108))]}),(0x0,d[_0x283ccf(0x364)])(_0x283ccf(0x2ca),{'className':'univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-1\x20dark:!univer-bg-gray-800','children':_0x26598e[_0x283ccf(0x2f3)]?_0x26598e[_0x283ccf(0x505)]((_0x4a3d87,_0x5a8be0)=>(0x0,d[_0x283ccf(0x364)])(cn,{..._0x23b01a,'area':_0x2fd108,'field':_0x4a3d87,'index':_0x5a8be0,'fieldCount':_0x26598e[_0x283ccf(0x2f3)]},_0x4a3d87[_0x283ccf(0x5df)])):(0x0,d[_0x283ccf(0x364)])(_0x283ccf(0x2ca),{'className':'univer-p-4\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x3de088['t'](rn(_0x2fd108))})})]},_0x2fd108);})});}function un(_0x2de108,_0x489b1d){const _0x1114df=_0x14e1ea;switch(_0x489b1d){case'filter':return _0x2de108[_0x1114df(0x545)][_0x1114df(0x2f3)];case _0x1114df(0x209):return _0x2de108['columnFields'][_0x1114df(0x2f3)];case _0x1114df(0x5f4):return _0x2de108[_0x1114df(0x40c)][_0x1114df(0x2f3)];case _0x1114df(0x320):return _0x2de108[_0x1114df(0x6f1)][_0x1114df(0x2f3)];default:return 0x0;}}function dn(_0x4ffc66){const _0x3f927b=_0x14e1ea;let _0x3a7a66='univer-size-4\x20univer-shrink-0\x20univer-text-gray-500';switch(_0x4ffc66[_0x3f927b(0x314)]){case e['PivotDataFieldDataTypeEnum'][_0x3f927b(0x26e)]:return(0x0,d['jsx'])(u[_0x3f927b(0x26c)],{'className':_0x3a7a66});case e['PivotDataFieldDataTypeEnum'][_0x3f927b(0x1c4)]:return(0x0,d[_0x3f927b(0x364)])(u[_0x3f927b(0x6d8)],{'className':_0x3a7a66});default:return(0x0,d[_0x3f927b(0x364)])(u['TextIcon'],{'className':_0x3a7a66});}}function fn(_0xe52cb4){const _0x14f796=_0x14e1ea;let {field:_0x1587c7,info:_0x5d2391,pivotTableId:_0x2ee1df,unitId:_0x56f251,subUnitId:_0x70ab0e,refresh:_0x4e382f}=_0xe52cb4,_0x2c3a82=(0x0,i[_0x14f796(0x1e8)])(n[_0x14f796(0x27a)]),_0x29ed6e=(0x0,i[_0x14f796(0x1e8)])(n[_0x14f796(0x2a4)]),_0x832de9={'pivotTableInfo':_0x5d2391,'pivotTableId':_0x2ee1df,'commandService':_0x2c3a82,'unitId':_0x56f251,'subUnitId':_0x70ab0e};async function _0x23206d(_0x570f49){const _0x35eee8=_0x14f796;if(_0x570f49){let _0x1f451e=_0x1587c7['type']===e[_0x35eee8(0x334)]['number']?_0x35eee8(0x320):_0x35eee8(0x5f4);await St(_0x832de9,_0x1587c7['dataFieldId'],_0x35eee8(0x28e),_0x1f451e,un(_0x5d2391,_0x1f451e));}else await yt(_0x832de9,_0x1587c7[_0x35eee8(0x3cd)],_0x35eee8(0x28e));await _0x4e382f();}async function _0x1e73ca(_0x5501d5){const _0x5c67a8=_0x14f796;await St(_0x832de9,_0x1587c7[_0x5c67a8(0x3cd)],_0x5c67a8(0x28e),_0x5501d5,un(_0x5d2391,_0x5501d5)),await _0x4e382f();}let _0x2ba1dc=[{'type':_0x14f796(0x2e6),'children':_0x29ed6e['t'](_0x14f796(0x562)),'onSelect':()=>_0x1e73ca(_0x14f796(0x5f4))},{'type':_0x14f796(0x2e6),'children':_0x29ed6e['t'](_0x14f796(0x2a9)),'onSelect':()=>_0x1e73ca('column')},{'type':_0x14f796(0x2e6),'children':_0x29ed6e['t']('sheets-pivot-ui.addToValue'),'onSelect':()=>_0x1e73ca(_0x14f796(0x320))},{'type':'item','children':_0x29ed6e['t'](_0x14f796(0x659)),'onSelect':()=>_0x1e73ca('filter')}];return(0x0,d[_0x14f796(0x322)])('div',{'className':_0x14f796(0x52c),'children':[(0x0,d[_0x14f796(0x364)])(s['Checkbox'],{'checked':_0x1587c7[_0x14f796(0x5b9)],'onChange':_0x410623=>_0x23206d(!!_0x410623)}),(0x0,d['jsx'])(dn,{'type':_0x1587c7[_0x14f796(0x314)]}),(0x0,d[_0x14f796(0x364)])(_0x14f796(0x690),{'className':_0x14f796(0x2bb),'dir':_0x14f796(0x5c2),'children':_0x1587c7[_0x14f796(0x6d0)]}),(0x0,d[_0x14f796(0x364)])(s[_0x14f796(0x4f5)],{'items':_0x2ba1dc,'children':(0x0,d[_0x14f796(0x364)])(_0x14f796(0x3e7),{'type':_0x14f796(0x3e7),'className':_0x14f796(0x36f),'children':(0x0,d[_0x14f796(0x364)])(u['MoreHorizontalIcon'],{})})})]});}function pn(_0x332036){const _0x328ef3=_0x14e1ea;let {info:_0x210e17}=_0x332036,_0x18c7aa=(0x0,i[_0x328ef3(0x1e8)])(n[_0x328ef3(0x2a4)]),[_0x27a3e7,_0x933af0]=(0x0,f[_0x328ef3(0x53a)])(''),_0x836ca5=_0x27a3e7['trim']()[_0x328ef3(0x68e)](),_0x55f953=_0x836ca5?_0x210e17[_0x328ef3(0x2aa)][_0x328ef3(0x327)](_0x410a77=>_0x410a77['name'][_0x328ef3(0x68e)]()[_0x328ef3(0x3a9)](_0x836ca5)):_0x210e17[_0x328ef3(0x2aa)];return(0x0,d[_0x328ef3(0x322)])(_0x328ef3(0x22d),{'className':_0x328ef3(0x652),'children':[(0x0,d[_0x328ef3(0x322)])(_0x328ef3(0x2ca),{'children':[(0x0,d[_0x328ef3(0x364)])(_0x328ef3(0x2ca),{'className':_0x328ef3(0x3ea),'children':_0x18c7aa['t']('sheets-pivot-ui.sourceFieldTile')}),(0x0,d[_0x328ef3(0x364)])(_0x328ef3(0x2ca),{'className':_0x328ef3(0x543),'children':_0x18c7aa['t']('sheets-pivot-ui.mobile.sourceFieldDescription')})]}),(0x0,d[_0x328ef3(0x364)])(s[_0x328ef3(0x495)],{'allowClear':!0x0,'value':_0x27a3e7,'placeholder':_0x18c7aa['t']('sheets-pivot-ui.searchFieldPlaceholder'),'slot':(0x0,d[_0x328ef3(0x364)])(u[_0x328ef3(0x5b7)],{}),'onChange':_0x933af0}),(0x0,d[_0x328ef3(0x364)])('div',{'className':'univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-1\x20dark:!univer-bg-gray-800','children':_0x55f953['length']?_0x55f953['map'](_0x51e64f=>(0x0,d['jsx'])(fn,{..._0x332036,'field':_0x51e64f},_0x51e64f['id'])):(0x0,d[_0x328ef3(0x364)])(_0x328ef3(0x2ca),{'className':_0x328ef3(0x55f),'children':_0x18c7aa['t'](_0x328ef3(0x64f))})})]});}function mn(_0x371aac){const _0x5a9726=_0x14e1ea;var _0x1874f3;let {sourceRangeInfo:_0x5487c9,positionInfo:_0x2c8245,pivotTableId:_0x54aa08,refresh:_0x49d266}=_0x371aac,_0x3551f9=(0x0,i['useDependency'])(n[_0x5a9726(0x27a)]),_0x382297=(0x0,i['useDependency'])(n[_0x5a9726(0x699)]),_0x12f7d0=(0x0,i[_0x5a9726(0x1e8)])(n[_0x5a9726(0x2a4)]),_0x50044f=(0x0,i[_0x5a9726(0x1e8)])(n[_0x5a9726(0x642)])['getUnit'](_0x5487c9['unitId']),_0x385714=(_0x50044f==null||(_0x1874f3=_0x50044f[_0x5a9726(0x3f4)](_0x5487c9[_0x5a9726(0x465)]))==null?void 0x0:_0x1874f3[_0x5a9726(0x4d5)]())??_0x5487c9[_0x5a9726(0x3d3)],[_0x21463b,_0x330413]=(0x0,f[_0x5a9726(0x53a)])(_0x5487c9[_0x5a9726(0x503)]),[_0x125133,_0x22090f]=(0x0,f[_0x5a9726(0x53a)])(_0x385714),[_0x4513ce,_0x3a7717]=(0x0,f[_0x5a9726(0x53a)])('');(0x0,f['useEffect'])(()=>{const _0x1a6eff=_0x5a9726;_0x330413(_0x5487c9[_0x1a6eff(0x503)]),_0x22090f(_0x385714);},[_0x385714,_0x5487c9]);async function _0x1125dd(_0x3a852b){const _0x5798a5=_0x5a9726;let _0x1665a8=_0x3a852b['split'](',')['filter'](Boolean)[_0x5798a5(0x505)](p['deserializeRangeWithSheet'])[0x0];if(!_0x1665a8||!_0x50044f){_0x3a7717(_0x12f7d0['t']('sheets-pivot-ui.msg.emptySourceRange'));return;}let _0x2d3598=_0x1665a8[_0x5798a5(0x3d3)]||_0x5487c9[_0x5798a5(0x3d3)],_0x5ed3f6=_0x50044f['getSheetBySheetName'](_0x2d3598),_0x2b3054=vt(_0x5ed3f6,_0x1665a8[_0x5798a5(0x503)]);if(_0x2b3054!==0x2||!_0x5ed3f6){let _0x1cb5fc=_0x2b3054===0x0?_0x5798a5(0x4c1):'sheets-pivot-ui.msg.invalidSize';_0x3a7717(_0x12f7d0['t'](_0x1cb5fc));}else _0x3a7717(''),_0x330413(_0x1665a8[_0x5798a5(0x503)]),_0x22090f(_0x2d3598),await bt(_0x3551f9,_0x54aa08,{'unitId':_0x5487c9['unitId'],'subUnitId':_0x5ed3f6[_0x5798a5(0x595)](),'range':_0x1665a8[_0x5798a5(0x503)],'sheetName':_0x2d3598},_0x2c8245['unitId'],_0x2c8245[_0x5798a5(0x465)]),await _0x49d266();}return(0x0,d[_0x5a9726(0x322)])(_0x5a9726(0x22d),{'children':[(0x0,d[_0x5a9726(0x364)])(_0x5a9726(0x2ca),{'className':_0x5a9726(0x660),'children':_0x12f7d0['t']('sheets-pivot-ui.sourceRangeLabel')}),(0x0,d[_0x5a9726(0x364)])(m[_0x5a9726(0x3b0)],{'unitId':_0x5487c9[_0x5a9726(0x1c8)],'subUnitId':_0x5487c9[_0x5a9726(0x465)],'initialValue':(0x0,p[_0x5a9726(0x446)])(_0x125133,_0x21463b),'maxRangeCount':0x1,'keepSheetReference':!0x0,'supportAcrossSheet':!0x0,'onChange':(_0x5dcdd8,_0x379a63)=>_0x1125dd(_0x379a63)['catch'](_0x303c2a=>{const _0x5690bb=_0x5a9726;_0x382297[_0x5690bb(0x41e)](_0x5690bb(0x2cd),_0x303c2a);})}),_0x4513ce&&(0x0,d[_0x5a9726(0x364)])(_0x5a9726(0x2ca),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-red-500','children':_0x4513ce})]});}function hn(_0x1755b0){const _0x18bf6c=_0x14e1ea;let {pivotTableId:_0x38d305,version:_0x5b3a02,unitId:_0x504cff,subUnitId:_0x26be2b,panelInfo:_0x52ffda}=_0x1755b0,_0x17aa7f=(0x0,i[_0x18bf6c(0x1e8)])(t[_0x18bf6c(0x6ad)]),_0x26fdb4=(0x0,i[_0x18bf6c(0x1e8)])(t[_0x18bf6c(0x6b9)]),_0x39098e=(0x0,i[_0x18bf6c(0x1e8)])(n['ILogService']),_0xc76b62=(0x0,f[_0x18bf6c(0x68c)])(()=>_0x17aa7f[_0x18bf6c(0x32e)](_0x504cff,_0x26be2b,_0x38d305)['pipe']((0x0,o[_0x18bf6c(0x4a2)])(0x0)),[_0x17aa7f,_0x504cff,_0x26be2b,_0x38d305]),_0x556d8e=(0x0,i[_0x18bf6c(0x391)])(_0xc76b62),[_0x2e48b2,_0x42faaf]=(0x0,f[_0x18bf6c(0x53a)])(_0x52ffda),_0x225516=(0x0,f[_0x18bf6c(0x4ee)])(async()=>{const _0x471f1f=_0x18bf6c;if(!_0x17aa7f['getPivotTableConfig'](_0x504cff,_0x26be2b,_0x38d305))return;let _0x330d88=await _0x26fdb4[_0x471f1f(0x32a)]({'unitId':_0x504cff,'subUnitId':_0x26be2b,'pivotTableId':_0x38d305,'params':{'type':t[_0x471f1f(0x32d)]['Panel'],'panel':{'pivotTableId':_0x38d305}}});_0x330d88[_0x471f1f(0x2d5)][_0x471f1f(0x2b3)]&&_0x42faaf(_0x330d88[_0x471f1f(0x2d5)][_0x471f1f(0x2b3)]);},[_0x17aa7f,_0x38d305,_0x26fdb4,_0x26be2b,_0x504cff]);return(0x0,f[_0x18bf6c(0x5aa)])(()=>{const _0x10e0b8=_0x18bf6c;_0x225516()[_0x10e0b8(0x662)](_0xff85df=>_0x39098e[_0x10e0b8(0x41e)](_0x10e0b8(0x32c),_0xff85df));},[_0x556d8e,_0x39098e,_0x225516,_0x5b3a02]),(0x0,d[_0x18bf6c(0x322)])(_0x18bf6c(0x2ca),{'className':_0x18bf6c(0x4cb),'children':[(0x0,d[_0x18bf6c(0x364)])(mn,{'sourceRangeInfo':_0x2e48b2[_0x18bf6c(0x405)],'positionInfo':_0x2e48b2[_0x18bf6c(0x3b9)],'pivotTableId':_0x38d305,'refresh':_0x225516}),(0x0,d[_0x18bf6c(0x364)])(pn,{'info':_0x2e48b2,'pivotTableId':_0x38d305,'unitId':_0x504cff,'subUnitId':_0x26be2b,'refresh':_0x225516}),(0x0,d['jsx'])(ln,{'info':_0x2e48b2,'pivotTableId':_0x38d305,'unitId':_0x504cff,'subUnitId':_0x26be2b,'refresh':_0x225516})]});}function gn(_0x4d5e5b){const _0x59e3f3=_0x14e1ea;let {className:_0x4f5a80,unitId:_0x234cfa,subUnitId:_0x41ccd3,pivotTableId:_0x42493f}=_0x4d5e5b,[_0x396767,_0x262ebf]=(0x0,f[_0x59e3f3(0x53a)])(_0x59e3f3(0x287)),_0x5421c9=(0x0,i[_0x59e3f3(0x1e8)])(n[_0x59e3f3(0x2a4)]);return(0x0,d['jsxs'])(_0x59e3f3(0x2ca),{'className':(0x0,s[_0x59e3f3(0x4f8)])('univer-flex\x20univer-size-full\x20univer-min-h-0\x20univer-flex-col',_0x4f5a80),'dir':_0x5421c9[_0x59e3f3(0x4c7)](),'children':[(0x0,d[_0x59e3f3(0x364)])('div',{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-flex\x20univer-shrink-0\x20univer-border-0\x20univer-border-b\x20univer-border-solid\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x59e3f3(0x287),_0x59e3f3(0x6df)]['map'](_0x3a87ab=>(0x0,d['jsxs'])(_0x59e3f3(0x3e7),{'type':_0x59e3f3(0x3e7),'className':(0x0,s[_0x59e3f3(0x4f8)])(_0x59e3f3(0x513),_0x396767===_0x3a87ab?_0x59e3f3(0x266):'univer-text-gray-500'),'onClick':()=>_0x262ebf(_0x3a87ab),'children':[_0x5421c9['t'](_0x3a87ab===_0x59e3f3(0x287)?_0x59e3f3(0x464):_0x59e3f3(0x1ab)),(0x0,d['jsx'])('span',{'className':(0x0,s[_0x59e3f3(0x4f8)])('univer-absolute\x20univer-inset-x-1/4\x20univer-bottom-0\x20univer-h-1\x20univer-rounded-t',{'univer-bg-primary-600':_0x396767===_0x3a87ab})})]},_0x3a87ab))}),(0x0,d['jsx'])(_0x59e3f3(0x2ca),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto','children':_0x396767==='fields'?(0x0,d[_0x59e3f3(0x364)])(hn,{..._0x4d5e5b}):(0x0,d[_0x59e3f3(0x364)])(Qt,{'unitId':_0x234cfa,'subUnitId':_0x41ccd3,'pivotTableId':_0x42493f})})]});}function _n(_0x4652ff,_0x4f2816){const _0x1a6ec7=_0x14e1ea;switch(_0x4652ff){case 0x1:return _0x4f2816['t'](_0x1a6ec7(0x563));case 0x0:return _0x4f2816['t'](_0x1a6ec7(0x4c1));default:return'';}}function vn(_0x599b44){const _0x57baa5=_0x14e1ea;let {unitId:_0x499bb8,subUnitId:_0x2b15dd,sourceRange:_0x243eb2,positionRange:_0xfd31e3,sourceSheetName:_0x2d910a,positionSheetName:_0x21c0a6,onConfirm:_0x4dba73,onCancel:_0xdbd07a}=_0x599b44,_0x193021=(0x0,i['useDependency'])(n[_0x57baa5(0x2a4)]),_0x28f9b9=(0x0,i[_0x57baa5(0x1e8)])(n['IUniverInstanceService'])['getUnit'](_0x499bb8),[_0x1cf392,_0x35c3f9]=(0x0,f['useState'])(_0x243eb2),[_0x17fa05,_0x189bba]=(0x0,f['useState'])(_0xfd31e3),[_0x5a9b0b,_0xe11216]=(0x0,f['useState'])(_0x2d910a),[_0x3524eb,_0x45cdc6]=(0x0,f[_0x57baa5(0x53a)])(_0x21c0a6),[_0x6de29,_0x542f5b]=(0x0,f['useState'])(t['PositionType'][_0x57baa5(0x2a5)]),[_0x57dd4d,_0x180c98]=(0x0,f[_0x57baa5(0x53a)])(''),[_0x51f24e,_0x302196]=(0x0,f[_0x57baa5(0x53a)])(!0x0);(0x0,f[_0x57baa5(0x5aa)])(()=>{const _0x4129b1=_0x57baa5;let _0x1aa57e=vt(_0x28f9b9[_0x4129b1(0x5f7)](_0x5a9b0b),_0x1cf392);_0x180c98(_n(_0x1aa57e,_0x193021));},[_0x193021,_0x1cf392,_0x5a9b0b,_0x28f9b9]);function _0x51676a(_0x155fc8){const _0x24f0ef=_0x57baa5;let _0x5df80c=_0x155fc8[_0x24f0ef(0x60b)](',')[_0x24f0ef(0x327)](Boolean)['map'](p[_0x24f0ef(0x475)])[0x0];_0x5df80c?(_0x35c3f9(_0x5df80c[_0x24f0ef(0x503)]),_0xe11216(_0x5df80c[_0x24f0ef(0x3d3)]||_0x5a9b0b)):_0x180c98(_0x193021['t'](_0x24f0ef(0x4c1)));}function _0x522f93(_0x414e94){const _0x364659=_0x57baa5;let _0xc78cb7=_0x414e94[_0x364659(0x60b)](',')[_0x364659(0x327)](Boolean)[_0x364659(0x505)](p['deserializeRangeWithSheet'])[0x0];if(!_0xc78cb7){_0x189bba(null);return;}let _0x57916c=_0xc78cb7[_0x364659(0x3d3)]||_0x2d910a;_0x189bba(_0xc78cb7['range']),_0x45cdc6(_0x57916c),_0x302196(_0x57916c!==_0x5a9b0b||!n['Rectangle'][_0x364659(0x526)](_0xc78cb7['range'],_0x1cf392));}function _0x200441(){const _0x33447c=_0x57baa5;if(_0x57dd4d)return;let _0x408e83;if(_0x6de29===t[_0x33447c(0x1bc)][_0x33447c(0x2c6)]){if(!_0x17fa05||!_0x51f24e)return;_0x408e83={'sourceRange':_0x1cf392,'sourceSheetName':_0x5a9b0b,'positionRange':_0x17fa05,'positionSheetName':_0x3524eb,'positionType':_0x6de29};}else _0x408e83={'sourceRange':_0x1cf392,'sourceSheetName':_0x5a9b0b,'positionType':_0x6de29};_0x4dba73(_0x408e83);}return(0x0,d[_0x57baa5(0x322)])(_0x57baa5(0x2ca),{'className':_0x57baa5(0x6d6),'dir':_0x193021[_0x57baa5(0x4c7)](),'children':[(0x0,d[_0x57baa5(0x322)])(_0x57baa5(0x22d),{'children':[(0x0,d[_0x57baa5(0x364)])(_0x57baa5(0x2ca),{'className':_0x57baa5(0x660),'children':_0x193021['t'](_0x57baa5(0x2dc))}),(0x0,d[_0x57baa5(0x364)])(m[_0x57baa5(0x3b0)],{'unitId':_0x499bb8,'subUnitId':_0x2b15dd,'initialValue':(0x0,p[_0x57baa5(0x446)])(_0x5a9b0b,_0x1cf392),'maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'onChange':(_0x255bdf,_0x186783)=>_0x51676a(_0x186783)}),_0x57dd4d&&(0x0,d[_0x57baa5(0x364)])(_0x57baa5(0x2ca),{'className':_0x57baa5(0x2b1),'children':_0x57dd4d})]}),(0x0,d[_0x57baa5(0x322)])(_0x57baa5(0x22d),{'children':[(0x0,d[_0x57baa5(0x364)])(_0x57baa5(0x2ca),{'className':_0x57baa5(0x660),'children':_0x193021['t']('sheets-pivot-ui.dialog.source.position')}),(0x0,d[_0x57baa5(0x322)])(s[_0x57baa5(0x680)],{'className':_0x57baa5(0x412),'value':_0x6de29,'onChange':_0x1e1bc1=>_0x542f5b(_0x1e1bc1),'children':[(0x0,d[_0x57baa5(0x364)])(s['Radio'],{'value':t['PositionType'][_0x57baa5(0x2a5)],'children':_0x193021['t'](_0x57baa5(0x51f))}),(0x0,d[_0x57baa5(0x364)])(s[_0x57baa5(0x1ce)],{'value':t[_0x57baa5(0x1bc)]['Existing'],'children':_0x193021['t'](_0x57baa5(0x53b))})]}),_0x6de29===t[_0x57baa5(0x1bc)]['Existing']&&(0x0,d[_0x57baa5(0x322)])(_0x57baa5(0x2ca),{'className':'univer-mt-3','children':[(0x0,d[_0x57baa5(0x364)])(m[_0x57baa5(0x3b0)],{'unitId':_0x499bb8,'subUnitId':_0x2b15dd,'initialValue':_0x17fa05?(0x0,p[_0x57baa5(0x446)])(_0x3524eb,_0x17fa05):'','maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'onChange':(_0x1cdaa0,_0x57c71a)=>_0x522f93(_0x57c71a)}),!_0x51f24e&&(0x0,d['jsx'])(_0x57baa5(0x2ca),{'className':_0x57baa5(0x2b1),'children':_0x193021['t'](_0x57baa5(0x3b8))})]})]}),(0x0,d[_0x57baa5(0x322)])(s[_0x57baa5(0x3db)],{'children':[(0x0,d[_0x57baa5(0x364)])(s['Button'],{'onClick':_0xdbd07a,'children':_0x193021['t']('sheets-pivot-ui.dialog.cancel')}),(0x0,d['jsx'])(s[_0x57baa5(0x233)],{'variant':_0x57baa5(0x5b8),'onClick':_0x200441,'children':_0x193021['t'](_0x57baa5(0x356))})]})]});}let yn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x116c10,_0x5a52b2){const _0x2a12c6=_0x14e1ea;super(),[[A,vn],[_,gn],[y,qt],[x,Kt],[C,Gt],[j,ut]][_0x2a12c6(0x263)](([_0x25210e,_0xb4263a])=>{const _0x1548ca=_0x2a12c6;this[_0x1548ca(0x50a)](_0x116c10[_0x1548ca(0x6d4)](_0x25210e,_0xb4263a));}),this[_0x2a12c6(0x50a)](_0x5a52b2[_0x2a12c6(0x6d4)]({'PivotTableIcon':u[_0x2a12c6(0x4f4)]}));}};yn=K([G(0x0,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x5f6)])),G(0x1,(0x0,n['Inject'])(i[_0x14e1ea(0x6ab)]))],yn);function bn(_0x2ee2ba){const _0x364fb4=_0x14e1ea;return{'id':N['id'],'commandId':N['id'],'type':i[_0x364fb4(0x594)][_0x364fb4(0x529)],'icon':_0x364fb4(0x4f4),'title':_0x364fb4(0x225),'tooltip':_0x364fb4(0x225),'hidden$':(0x0,i['getMenuHiddenObservable'])(_0x2ee2ba,n[_0x364fb4(0x548)][_0x364fb4(0x640)]),'disabled$':(0x0,a[_0x364fb4(0x302)])(_0x2ee2ba,(0x0,a[_0x364fb4(0x3af)])(_0x2ee2ba,{'workbookTypes':[r[_0x364fb4(0x4ff)]],'worksheetTypes':[r[_0x364fb4(0x576)],r[_0x364fb4(0x647)]],'rangeTypes':[r[_0x364fb4(0x361)]]}))};}const xn={[i[_0x14e1ea(0x26a)]['ORGANIZATION']]:{[N['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':bn}},[i[_0x14e1ea(0x5cd)]['MAIN_AREA']]:{[i[_0x14e1ea(0x554)][_0x14e1ea(0x57d)]]:{[N['id']]:{'order':0x1,'menuItemFactory':bn}}}};let Sn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x2760c9){const _0x2b43c7=_0x14e1ea;super(),_0x2760c9[_0x2b43c7(0x2d6)](xn);}};Sn=K([G(0x0,i[_0x14e1ea(0x591)])],Sn);let Cn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x1596d9,_0x40d9f0,_0x40b5b8,_0x5d2555){const _0x3a248c=_0x14e1ea;super(),this[_0x3a248c(0x691)]=_0x40b5b8,this[_0x3a248c(0x407)]=_0x5d2555,W(this,_0x3a248c(0x4df),null),this[_0x3a248c(0x50a)](_0x1596d9[_0x3a248c(0x2e7)](_0x3215cf=>{const _0x431924=_0x3a248c;_0x3215cf['id']===it['id']?this['_pivotTableId']=_0x3215cf[_0x431924(0x641)][_0x431924(0x1ec)]:_0x3215cf['id']===t[_0x431924(0x3eb)]['id']&&_0x3215cf['params'][_0x431924(0x1ec)]===this[_0x431924(0x4df)]&&this['_closePanel']();}));let _0x56e0bd=_0x40d9f0['getCurrentUnitOfType'](n[_0x3a248c(0x548)][_0x3a248c(0x640)]);_0x56e0bd&&(this[_0x3a248c(0x50a)](_0x56e0bd['activeSheet$'][_0x3a248c(0x3b1)]((0x0,o[_0x3a248c(0x2be)])(0x1))[_0x3a248c(0x54a)](()=>this['_closePanel']())),this['disposeWithMe'](_0x56e0bd[_0x3a248c(0x5eb)]['subscribe'](()=>this[_0x3a248c(0x3ce)]()))),this[_0x3a248c(0x50a)](this[_0x3a248c(0x691)]['sidebarOptions$'][_0x3a248c(0x54a)](_0x474146=>{const _0x458355=_0x3a248c;_0x474146['id']===_0x458355(0x5dd)&&_0x474146[_0x458355(0x325)]===!0x1&&(this[_0x458355(0x4df)]=null,this[_0x458355(0x69d)]());}));}[_0x14e1ea(0x3ce)](){const _0x1d8e7f=_0x14e1ea;this['_pivotTableId']=null,this[_0x1d8e7f(0x691)][_0x1d8e7f(0x34d)](v),this['_closeChildDialogs']();}['_closeChildDialogs'](){const _0x4d7b1d=_0x14e1ea;this['_dialogService'][_0x4d7b1d(0x34d)](b),this[_0x4d7b1d(0x407)]['close'](S),this[_0x4d7b1d(0x407)]['close'](w);}};Cn=K([G(0x0,n[_0x14e1ea(0x27a)]),G(0x1,n[_0x14e1ea(0x642)]),G(0x2,i['ISidebarService']),G(0x3,i[_0x14e1ea(0x544)])],Cn),new Path2D(_0x14e1ea(0x27d));var Y=class{static[_0x14e1ea(0x2c7)](_0x38e4e1,_0x490c34,_0x460323,_0xe8408e){const _0x4b8614=_0x14e1ea;_0x38e4e1[_0x4b8614(0x449)](),l[_0x4b8614(0x45a)][_0x4b8614(0x3b2)](_0x38e4e1,{'radius':0x2,'width':0x10,'height':0x10,'fill':_0xe8408e}),_0x38e4e1[_0x4b8614(0x46f)]=_0x4b8614(0x25d),_0x38e4e1[_0x4b8614(0x6d3)]=_0x460323,_0x38e4e1[_0x4b8614(0x42a)](_0x490c34/0x10,_0x490c34/0x10),_0x38e4e1[_0x4b8614(0x2d4)](),_0x38e4e1[_0x4b8614(0x3e2)]=0x1,_0x38e4e1['lineCap']=_0x4b8614(0x228),_0x38e4e1[_0x4b8614(0x402)](0x3,0x4),_0x38e4e1[_0x4b8614(0x34f)](0xd,0x4),_0x38e4e1['moveTo'](4.5,0x8),_0x38e4e1[_0x4b8614(0x34f)](11.5,0x8),_0x38e4e1[_0x4b8614(0x402)](0x6,0xc),_0x38e4e1[_0x4b8614(0x34f)](0xa,0xc),_0x38e4e1[_0x4b8614(0x344)](),_0x38e4e1[_0x4b8614(0x36b)]();}static[_0x14e1ea(0x4c3)](_0x121895,_0x82c0d5,_0x5a6e71,_0x323e11,_0x1751f7){const _0x1efd3a=_0x14e1ea;let _0x197bc1=(_0x1751f7-_0x82c0d5)/0x2;_0x121895[_0x1efd3a(0x449)](),_0x121895[_0x1efd3a(0x2a6)]=_0x323e11,_0x121895['strokeStyle']=_0x5a6e71,_0x121895[_0x1efd3a(0x2d4)](),_0x121895['moveTo'](0x6,_0x197bc1),_0x121895[_0x1efd3a(0x34f)](0x4+_0x82c0d5-0x2,_0x197bc1),_0x121895[_0x1efd3a(0x440)](0x4+_0x82c0d5,_0x197bc1,0x4+_0x82c0d5,_0x197bc1+0x2,0x2),_0x121895[_0x1efd3a(0x34f)](0x4+_0x82c0d5,_0x197bc1+_0x82c0d5-0x2),_0x121895[_0x1efd3a(0x440)](0x4+_0x82c0d5,_0x197bc1+_0x82c0d5,0x4+_0x82c0d5-0x2,_0x197bc1+_0x82c0d5,0x2),_0x121895[_0x1efd3a(0x34f)](0x6,_0x197bc1+_0x82c0d5),_0x121895[_0x1efd3a(0x440)](0x4,_0x197bc1+_0x82c0d5,0x4,_0x197bc1+_0x82c0d5-0x2,0x2),_0x121895[_0x1efd3a(0x34f)](0x4,_0x197bc1+0x2),_0x121895[_0x1efd3a(0x440)](0x4,_0x197bc1,0x6,_0x197bc1,0x2),_0x121895[_0x1efd3a(0x445)](),_0x121895[_0x1efd3a(0x344)](),_0x121895[_0x1efd3a(0x3e9)](),_0x121895[_0x1efd3a(0x2d4)](),_0x121895[_0x1efd3a(0x402)](0x4+_0x82c0d5/0x2,_0x197bc1+0x2),_0x121895['lineTo'](0x4+_0x82c0d5/0x2,_0x197bc1+_0x82c0d5-0x2),_0x121895[_0x1efd3a(0x402)](0x6,_0x197bc1+_0x82c0d5/0x2),_0x121895['lineTo'](0x4+_0x82c0d5-0x2,_0x197bc1+_0x82c0d5/0x2),_0x121895[_0x1efd3a(0x344)](),_0x121895[_0x1efd3a(0x36b)]();}static['drawCollapse'](_0x277933,_0x282a27,_0x4a9a19,_0x443001,_0x209c08){const _0x266cad=_0x14e1ea;let _0x1163de=(_0x209c08-_0x282a27)/0x2;_0x277933['save'](),_0x277933[_0x266cad(0x2a6)]=_0x443001,_0x277933[_0x266cad(0x6d3)]=_0x4a9a19,_0x277933[_0x266cad(0x2d4)](),_0x277933[_0x266cad(0x402)](0x6,_0x1163de),_0x277933[_0x266cad(0x34f)](0x4+_0x282a27-0x2,_0x1163de),_0x277933[_0x266cad(0x440)](0x4+_0x282a27,_0x1163de,0x4+_0x282a27,_0x1163de+0x2,0x2),_0x277933[_0x266cad(0x34f)](0x4+_0x282a27,_0x1163de+_0x282a27-0x2),_0x277933[_0x266cad(0x440)](0x4+_0x282a27,_0x1163de+_0x282a27,0x4+_0x282a27-0x2,_0x1163de+_0x282a27,0x2),_0x277933[_0x266cad(0x34f)](0x6,_0x1163de+_0x282a27),_0x277933[_0x266cad(0x440)](0x4,_0x1163de+_0x282a27,0x4,_0x1163de+_0x282a27-0x2,0x2),_0x277933[_0x266cad(0x34f)](0x4,_0x1163de+0x2),_0x277933['arcTo'](0x4,_0x1163de,0x6,_0x1163de,0x2),_0x277933[_0x266cad(0x445)](),_0x277933[_0x266cad(0x3e9)](),_0x277933[_0x266cad(0x344)](),_0x277933[_0x266cad(0x2d4)](),_0x277933[_0x266cad(0x402)](0x6,_0x1163de+_0x282a27/0x2),_0x277933[_0x266cad(0x34f)](0x4+_0x282a27-0x2,_0x1163de+_0x282a27/0x2),_0x277933[_0x266cad(0x344)](),_0x277933[_0x266cad(0x36b)]();}static[_0x14e1ea(0x46a)](_0x3e064c,_0x3386b6,_0x27ddd2,_0x2271a2){const _0x4e91b6=_0x14e1ea;_0x3e064c[_0x4e91b6(0x449)](),_0x3e064c['strokeStyle']=_0x27ddd2,_0x3e064c[_0x4e91b6(0x2a6)]=_0x2271a2,l[_0x4e91b6(0x45a)][_0x4e91b6(0x3b2)](_0x3e064c,{'radius':0x2,'width':0x10,'height':0x10,'fill':_0x2271a2}),_0x3386b6[_0x4e91b6(0x263)](_0x1e19be=>{const _0x5ec366=_0x4e91b6;let _0x7abe38=new Path2D(_0x1e19be);_0x3e064c[_0x5ec366(0x2a6)]=_0x27ddd2,_0x3e064c[_0x5ec366(0x3e9)](_0x7abe38,_0x5ec366(0x23b));}),_0x3e064c[_0x4e91b6(0x36b)]();}};const wn=['M3.30363\x203C2.79117\x203\x202.51457\x203.60097\x202.84788\x203.99024L6.8\x208.60593V12.5662C6.8\x2012.7184\x206.8864\x2012.8575\x207.02289\x2012.9249L8.76717\x2013.7863C8.96655\x2013.8847\x209.2\x2013.7396\x209.2\x2013.5173V8.60593L13.1521\x203.99024C13.4854\x203.60097\x2013.2088\x203\x2012.6964\x203H3.30363Z'],Tn=[_0x14e1ea(0x33d),_0x14e1ea(0x2e0)],En=[_0x14e1ea(0x404),_0x14e1ea(0x696)],Dn=['M11.9003\x2013.7046C11.9003\x2013.9969\x2011.6633\x2014.2339\x2011.371\x2014.2339C11.0787\x2014.2339\x2010.8417\x2013.9969\x2010.8417\x2013.7046V3.57272L9.74577\x204.66862C9.53906\x204.87534\x209.20391\x204.87534\x208.9972\x204.66862C8.79048\x204.46191\x208.79048\x204.12676\x208.9972\x203.92005L10.9969\x201.92039C11.2036\x201.71368\x2011.5387\x201.71368\x2011.7454\x201.92039L13.7451\x203.92005C13.9518\x204.12676\x2013.9518\x204.46191\x2013.7451\x204.66862C13.5384\x204.87534\x2013.2032\x204.87534\x2012.9965\x204.66862L11.9003\x203.57243V13.7046Z',_0x14e1ea(0x1fd),_0x14e1ea(0x67a)],On=['M11.9003\x202.29495C11.9003\x202.00261\x2011.6633\x201.76562\x2011.371\x201.76562C11.0787\x201.76562\x2010.8417\x202.00261\x2010.8417\x202.29495V12.4268L9.74577\x2011.3309C9.53906\x2011.1242\x209.20391\x2011.1242\x208.9972\x2011.3309C8.79048\x2011.5376\x208.79048\x2011.8727\x208.9972\x2012.0795L10.9969\x2014.0791C11.2036\x2014.2858\x2011.5387\x2014.2858\x2011.7454\x2014.0791L13.7451\x2012.0795C13.9518\x2011.8727\x2013.9518\x2011.5376\x2013.7451\x2011.3309C13.5384\x2011.1242\x2013.2032\x2011.1242\x2012.9965\x2011.3309L11.9003\x2012.4271V2.29495Z',_0x14e1ea(0x2f9),_0x14e1ea(0x6e3)],kn=new Set([e[_0x14e1ea(0x3c2)]['FilterAll'],e[_0x14e1ea(0x3c2)]['FilterPartial'],e[_0x14e1ea(0x3c2)][_0x14e1ea(0x6dc)],e[_0x14e1ea(0x3c2)][_0x14e1ea(0x4e9)],e['PivotCellStyleTypeEnum'][_0x14e1ea(0x276)],e[_0x14e1ea(0x3c2)][_0x14e1ea(0x6dd)],e[_0x14e1ea(0x3c2)][_0x14e1ea(0x40a)],e[_0x14e1ea(0x3c2)]['FilterNoneSortAsc'],e[_0x14e1ea(0x3c2)][_0x14e1ea(0x1a2)]]),An=new Set([e[_0x14e1ea(0x3c2)]['Expand'],e[_0x14e1ea(0x3c2)]['Collapse']]);let jn=class extends l[_0x14e1ea(0x546)]{constructor(_0x24c2d3,_0x2e91b9,_0x64734e,_0xb744e7){const _0xe1db87=_0x14e1ea;super(_0x24c2d3,_0x2e91b9),this[_0xe1db87(0x423)]=_0x64734e,this[_0xe1db87(0x2bc)]=_0xb744e7,W(this,'_cellWidth',0x0),W(this,_0xe1db87(0x1a8),0x0),W(this,_0xe1db87(0x655),!0x1),W(this,'_pivotParams',void 0x0),this['setShapeProps'](_0x2e91b9),this[_0xe1db87(0x19c)][_0xe1db87(0x5b2)](_0x17be8f=>this[_0xe1db87(0x406)](_0x17be8f)),this[_0xe1db87(0x341)]['subscribeEvent'](()=>this[_0xe1db87(0x281)]()),this[_0xe1db87(0x312)][_0xe1db87(0x5b2)](()=>this[_0xe1db87(0x4fe)]());}[_0x14e1ea(0x607)](_0x4fb820){const _0x394427=_0x14e1ea;_0x4fb820[_0x394427(0x25c)]!==void 0x0&&(this[_0x394427(0x1a8)]=_0x4fb820[_0x394427(0x25c)]),_0x4fb820[_0x394427(0x311)]!==void 0x0&&(this[_0x394427(0x21d)]=_0x4fb820['cellWidth']),_0x4fb820[_0x394427(0x501)]!==void 0x0&&(this[_0x394427(0x229)]=_0x4fb820['pivotParams']),this[_0x394427(0x2a2)]({'width':_0x4fb820[_0x394427(0x52d)],'height':_0x4fb820[_0x394427(0x255)]});}[_0x14e1ea(0x406)](_0x5dc461){const _0x10112b=_0x14e1ea;if(_0x5dc461[_0x10112b(0x3e7)]===0x2)return;let {col:_0x302863,row:_0x1fda60,unitId:_0x512ddd,subUnitId:_0x19b64a,buttonType:_0x194f7b}=this[_0x10112b(0x229)];kn[_0x10112b(0x48d)](_0x194f7b)?setTimeout(()=>{const _0x286a48=_0x10112b;this[_0x286a48(0x423)][_0x286a48(0x2f1)](tt['id'],{'row':_0x1fda60,'col':_0x302863,'unitId':_0x512ddd,'subUnitId':_0x19b64a});},0xc8):this[_0x10112b(0x423)][_0x10112b(0x2f1)](t[_0x10112b(0x571)]['id'],{'row':_0x1fda60,'col':_0x302863,'unitId':_0x512ddd,'subUnitId':_0x19b64a,'collapse':_0x194f7b===e[_0x10112b(0x3c2)][_0x10112b(0x468)]});}[_0x14e1ea(0x281)](){const _0x39cf78=_0x14e1ea;this['_hovered']=!0x0,this[_0x39cf78(0x682)](l[_0x39cf78(0x4cf)]['POINTER']),this[_0x39cf78(0x318)](!0x0);}[_0x14e1ea(0x4fe)](){const _0x8ed133=_0x14e1ea;this[_0x8ed133(0x655)]=!0x1,this[_0x8ed133(0x682)](l[_0x8ed133(0x4cf)]['DEFAULT']),this[_0x8ed133(0x318)](!0x0);}[_0x14e1ea(0x3bb)](_0x47b7b6){const _0x4c5155=_0x14e1ea;var _0x54a5da,_0x2b1c68;if(!((_0x54a5da=this[_0x4c5155(0x229)])!=null&&_0x54a5da[_0x4c5155(0x24b)]))return;let _0x5ba750=this[_0x4c5155(0x2bc)]['getColorFromTheme'](_0x4c5155(0x31d)),_0x3bec68=this['_themeService']['getColorFromTheme'](_0x4c5155(0x24e));_0x47b7b6[_0x4c5155(0x449)]();let _0x4c599c=new Path2D();_0x4c599c['rect'](0x0,0x0,this[_0x4c5155(0x21d)],this[_0x4c5155(0x1a8)]),_0x47b7b6[_0x4c5155(0x2bf)](_0x4c599c),((_0x2b1c68=this['_pivotParams'])==null?void 0x0:_0x2b1c68[_0x4c5155(0x24b)])===e[_0x4c5155(0x3c2)][_0x4c5155(0x570)]?Y[_0x4c5155(0x4c3)](_0x47b7b6,0xc,_0x5ba750,_0x3bec68,this[_0x4c5155(0x1a8)]):this[_0x4c5155(0x229)]['buttonType']===e['PivotCellStyleTypeEnum'][_0x4c5155(0x468)]?Y['drawCollapse'](_0x47b7b6,0xc,_0x5ba750,_0x3bec68,this[_0x4c5155(0x1a8)]):this[_0x4c5155(0x229)][_0x4c5155(0x24b)]===e[_0x4c5155(0x3c2)]['FilterAll']||this[_0x4c5155(0x229)]['buttonType']===e[_0x4c5155(0x3c2)][_0x4c5155(0x4e9)]?Y[_0x4c5155(0x2c7)](_0x47b7b6,0x10,_0x5ba750,_0x3bec68):this['_pivotParams']['buttonType']===e['PivotCellStyleTypeEnum']['FilterPartial']||this[_0x4c5155(0x229)]['buttonType']===e[_0x4c5155(0x3c2)][_0x4c5155(0x6dc)]||this[_0x4c5155(0x229)][_0x4c5155(0x24b)]===e['PivotCellStyleTypeEnum'][_0x4c5155(0x40a)]?Y[_0x4c5155(0x46a)](_0x47b7b6,wn,_0x5ba750,_0x3bec68):this['_pivotParams'][_0x4c5155(0x24b)]===e[_0x4c5155(0x3c2)][_0x4c5155(0x4eb)]?Y['drawIconByPath'](_0x47b7b6,Dn,_0x5ba750,_0x3bec68):this[_0x4c5155(0x229)][_0x4c5155(0x24b)]===e[_0x4c5155(0x3c2)][_0x4c5155(0x1a2)]?Y['drawIconByPath'](_0x47b7b6,On,_0x5ba750,_0x3bec68):this[_0x4c5155(0x229)][_0x4c5155(0x24b)]===e[_0x4c5155(0x3c2)][_0x4c5155(0x276)]?Y[_0x4c5155(0x46a)](_0x47b7b6,Tn,_0x5ba750,_0x3bec68):this[_0x4c5155(0x229)]['buttonType']===e[_0x4c5155(0x3c2)][_0x4c5155(0x6dd)]&&Y[_0x4c5155(0x46a)](_0x47b7b6,En,_0x5ba750,_0x3bec68),_0x47b7b6[_0x4c5155(0x36b)]();}};jn=K([G(0x2,n['ICommandService']),G(0x3,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x267)]))],jn);let Mn=class extends l['Shape']{constructor(_0x5d3c07,_0x529639,_0x5e6c48,_0x43b6b8){const _0x3d2af2=_0x14e1ea;super(_0x5d3c07,_0x529639),this[_0x3d2af2(0x423)]=_0x5e6c48,this[_0x3d2af2(0x2bc)]=_0x43b6b8,W(this,_0x3d2af2(0x21d),void 0x0),W(this,'_cellHeight',void 0x0),W(this,'_pivotParams',void 0x0),this[_0x3d2af2(0x21d)]=_0x529639[_0x3d2af2(0x311)],this[_0x3d2af2(0x1a8)]=_0x529639[_0x3d2af2(0x25c)],this[_0x3d2af2(0x229)]=_0x529639[_0x3d2af2(0x501)],this[_0x3d2af2(0x2a2)]({'width':_0x529639[_0x3d2af2(0x52d)],'height':_0x529639[_0x3d2af2(0x255)]}),this[_0x3d2af2(0x5f8)][_0x3d2af2(0x5b2)](_0x1a0eaa=>this[_0x3d2af2(0x2af)](_0x1a0eaa));}['_handlePointerUp'](_0x533f85){const _0x5ec88a=_0x14e1ea;if(_0x533f85[_0x5ec88a(0x3e7)]===0x2)return;let {col:_0x47050f,row:_0x241ebd,unitId:_0x1d8bbc,subUnitId:_0x370320,buttonType:_0xa0779}=this['_pivotParams'];if(kn[_0x5ec88a(0x48d)](_0xa0779))return this[_0x5ec88a(0x423)][_0x5ec88a(0x2f1)](tt['id'],{'row':_0x241ebd,'col':_0x47050f,'unitId':_0x1d8bbc,'subUnitId':_0x370320});if(An['has'](_0xa0779))return this[_0x5ec88a(0x423)][_0x5ec88a(0x2f1)](t[_0x5ec88a(0x571)]['id'],{'row':_0x241ebd,'col':_0x47050f,'unitId':_0x1d8bbc,'subUnitId':_0x370320,'collapse':_0xa0779===e['PivotCellStyleTypeEnum'][_0x5ec88a(0x468)]});}[_0x14e1ea(0x3bb)](_0x361b95){const _0x31c6b7=_0x14e1ea;let _0x31a3dc=this[_0x31c6b7(0x229)][_0x31c6b7(0x24b)],_0x41c6a0=this[_0x31c6b7(0x2bc)]['getColorFromTheme']('primary.600'),_0x2c6d81=this[_0x31c6b7(0x2bc)][_0x31c6b7(0x6d9)](_0x31c6b7(0x24e));_0x361b95[_0x31c6b7(0x449)]();let _0x5057cb=new Path2D();_0x5057cb['rect'](0x0,0x0,this[_0x31c6b7(0x21d)],this[_0x31c6b7(0x1a8)]),_0x361b95['clip'](_0x5057cb),_0x361b95[_0x31c6b7(0x678)](0x6,0x6),_0x31a3dc===e['PivotCellStyleTypeEnum'][_0x31c6b7(0x570)]?Y[_0x31c6b7(0x4c3)](_0x361b95,0xc,_0x41c6a0,_0x2c6d81,this[_0x31c6b7(0x1a8)]):_0x31a3dc===e[_0x31c6b7(0x3c2)][_0x31c6b7(0x468)]?Y[_0x31c6b7(0x653)](_0x361b95,0xc,_0x41c6a0,_0x2c6d81,this[_0x31c6b7(0x1a8)]):_0x31a3dc===e['PivotCellStyleTypeEnum']['FilterAll']||_0x31a3dc===e['PivotCellStyleTypeEnum'][_0x31c6b7(0x4e9)]?Y[_0x31c6b7(0x2c7)](_0x361b95,0x10,_0x41c6a0,_0x2c6d81):_0x31a3dc===e[_0x31c6b7(0x3c2)][_0x31c6b7(0x1a0)]||_0x31a3dc===e['PivotCellStyleTypeEnum'][_0x31c6b7(0x6dc)]||_0x31a3dc===e[_0x31c6b7(0x3c2)][_0x31c6b7(0x40a)]?Y[_0x31c6b7(0x46a)](_0x361b95,wn,_0x41c6a0,_0x2c6d81):_0x31a3dc===e[_0x31c6b7(0x3c2)][_0x31c6b7(0x4eb)]?Y['drawIconByPath'](_0x361b95,Dn,_0x41c6a0,_0x2c6d81):_0x31a3dc===e[_0x31c6b7(0x3c2)]['FilterNoneSortDesc']?Y['drawIconByPath'](_0x361b95,On,_0x41c6a0,_0x2c6d81):_0x31a3dc===e[_0x31c6b7(0x3c2)]['FilteredSortAsc']?Y[_0x31c6b7(0x46a)](_0x361b95,Tn,_0x41c6a0,_0x2c6d81):_0x31a3dc===e[_0x31c6b7(0x3c2)][_0x31c6b7(0x6dd)]&&Y[_0x31c6b7(0x46a)](_0x361b95,En,_0x41c6a0,_0x2c6d81),_0x361b95[_0x31c6b7(0x36b)]();}};Mn=K([G(0x2,n[_0x14e1ea(0x27a)]),G(0x3,(0x0,n[_0x14e1ea(0x608)])(n['ThemeService']))],Mn);function Nn(_0x173ab9,_0x172826,_0x2d928b){const _0x3392e5=_0x14e1ea;let {startX:_0x5743c8,startY:_0x4fd3f9,endX:_0x2eed85,endY:_0x100133}=_0x2d928b;return{'left':(_0x172826===_0x3392e5(0x327)?_0x173ab9!==_0x3392e5(0x3da):_0x173ab9==='rtl')?_0x2eed85-0x10-0x1:_0x5743c8+0x1,'top':_0x172826===_0x3392e5(0x327)?_0x100133-0x10-0x1:_0x4fd3f9+0x1};}let Pn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x18e89a,_0x89b671,_0x2e7177,_0x37e427,_0x235dfb,_0x20a20d,_0x3ad77d,_0x1d33e5,_0x4820f0,_0x37d2cb){const _0x51cc98=_0x14e1ea;super(),this[_0x51cc98(0x2b5)]=_0x18e89a,this['_injector']=_0x89b671,this[_0x51cc98(0x46d)]=_0x2e7177,this[_0x51cc98(0x5da)]=_0x37e427,this['_configModel']=_0x235dfb,this[_0x51cc98(0x666)]=_0x20a20d,this[_0x51cc98(0x4b6)]=_0x3ad77d,this[_0x51cc98(0x291)]=_0x1d33e5,this[_0x51cc98(0x407)]=_0x4820f0,this[_0x51cc98(0x226)]=_0x37d2cb,W(this,_0x51cc98(0x613),[]),this['_initContextMenu'](),this['_initButtonRender'](),this[_0x51cc98(0x57e)]();}['dispose'](){const _0x355466=_0x14e1ea;this[_0x355466(0x61b)](),super[_0x355466(0x1aa)]();}['_clearButtons'](){const _0x3db6bb=_0x14e1ea;this[_0x3db6bb(0x613)][_0x3db6bb(0x263)](_0x55230b=>_0x55230b[_0x3db6bb(0x1aa)]()),this[_0x3db6bb(0x613)]['length']=0x0;}[_0x14e1ea(0x328)](){const _0x4be886=_0x14e1ea;if(!this['_contextMenuController'])return;let _0x210fb4=this['_contextMenuController']['contextMenuInterceptor'][_0x4be886(0x36a)](a[_0x4be886(0x5f3)],{'handler':(_0x4f159c,_0x542894,_0x136628)=>{const _0x233e2a=_0x4be886;if(_0x4f159c||_0x542894['menuPosition']!==i[_0x233e2a(0x5cd)][_0x233e2a(0x3b5)])return _0x136628(_0x4f159c);let {col:_0x8454e2,row:_0x1af21c,subUnitId:_0x431223,unitId:_0x140d42}=_0x542894;if(_0x8454e2==null||_0x1af21c==null)return _0x136628(_0x4f159c);let _0x3e95a1=this['_adaptorModel'][_0x233e2a(0x410)](_0x140d42,_0x431223,_0x1af21c,_0x8454e2);return _0x3e95a1?(this[_0x233e2a(0x232)](_0x140d42,_0x431223,_0x3e95a1,_0x1af21c,_0x8454e2),!0x0):_0x136628(_0x4f159c);}});this[_0x4be886(0x50a)]((0x0,n[_0x4be886(0x21b)])(_0x210fb4));}[_0x14e1ea(0x232)](_0x1e27f4,_0x3a25a6,_0x42d1ab,_0x2ea699,_0x1c02aa){const _0x4040ed=_0x14e1ea;let _0x5c592e=this['_permissionController'][_0x4040ed(0x530)]({'workbookTypes':[r[_0x4040ed(0x4ff)]],'worksheetTypes':[r[_0x4040ed(0x647)]],'rangeTypes':[r[_0x4040ed(0x681)]]},[{'startRow':_0x2ea699,'endRow':_0x2ea699,'startColumn':_0x1c02aa,'endColumn':_0x1c02aa}],_0x1e27f4,_0x3a25a6);this[_0x4040ed(0x407)]['open']({'id':M,'title':{'title':this['_localeService']['t']('sheets-pivot-ui.title')},'children':{'label':{'name':j,'props':{'editable':_0x5c592e,'pivotTableId':_0x42d1ab,'subUnitId':_0x3a25a6,'unitId':_0x1e27f4}}},'onClose':()=>this['_dialogService'][_0x4040ed(0x34d)](M)});}[_0x14e1ea(0x5f9)](){const _0x1947c6=_0x14e1ea;this[_0x1947c6(0x50a)]((0x0,o[_0x1947c6(0x2da)])(this['_adaptorModel']['viewUpdate$']['pipe']((0x0,o[_0x1947c6(0x22a)])(0x0)),this['_skeletonManagerService'][_0x1947c6(0x3a0)],this[_0x1947c6(0x39a)][_0x1947c6(0x3e3)],this[_0x1947c6(0x4b6)][_0x1947c6(0x5b1)][_0x1947c6(0x3b1)]((0x0,o[_0x1947c6(0x22a)])(0x64)))[_0x1947c6(0x54a)](()=>{const _0x1e0833=_0x1947c6;let _0x1ba95b=this[_0x1e0833(0x2b5)][_0x1e0833(0x224)],_0x7e91c7=this[_0x1e0833(0x5da)][_0x1e0833(0x2a1)]();if(!_0x1ba95b||!_0x7e91c7)return;let _0x152906=_0x1ba95b[_0x1e0833(0x2ed)](),_0x45b6b5=_0x1ba95b[_0x1e0833(0x37d)](),_0xbdb27c=_0x152906[_0x1e0833(0x595)](),_0xb6d6c=this['_localeService']['getDirection'](),{scene:_0x1be33c}=this['_context'];this['_clearButtons'](),this[_0x1e0833(0x46d)][_0x1e0833(0x57c)](_0x45b6b5,_0xbdb27c)[_0x1e0833(0x4bb)]((_0x3f0e2f,_0x1edda6,_0xe6d8e9)=>{const _0x51cbda=_0x1e0833;if(!(_0xe6d8e9!=null&&_0xe6d8e9[_0x51cbda(0x1c2)]))return;let {startX:_0x3aa2f0,startY:_0x55db5a,endX:_0x24d69c,endY:_0x4004b8}=(0x0,a['getCoordByCell'])(_0x3f0e2f,_0x1edda6,_0x1be33c,_0x7e91c7),_0x165582=_0x24d69c-_0x3aa2f0,_0x2802c0=_0x4004b8-_0x55db5a;if(_0x2802c0<0x8||_0x165582<0x8||!this[_0x51cbda(0x666)][_0x51cbda(0x530)]({'workbookTypes':[r[_0x51cbda(0x4ff)]],'worksheetTypes':[r['WorksheetViewPermission'],r[_0x51cbda(0x44d)],r[_0x51cbda(0x647)]],'rangeTypes':[r[_0x51cbda(0x361)],r[_0x51cbda(0x681)]]},[{'startRow':_0x3f0e2f,'endRow':_0x3f0e2f,'startColumn':_0x1edda6,'endColumn':_0x1edda6}],_0x45b6b5,_0xbdb27c))return;let _0x42ebef;if(kn[_0x51cbda(0x48d)](_0xe6d8e9[_0x51cbda(0x1c2)]))_0x42ebef='filter';else{if(An[_0x51cbda(0x48d)](_0xe6d8e9[_0x51cbda(0x1c2)]))_0x42ebef=_0x51cbda(0x3f3);else return;}let _0x1767fe=Nn(_0xb6d6c,_0x42ebef,{'startX':_0x3aa2f0,'startY':_0x55db5a,'endX':_0x24d69c,'endY':_0x4004b8}),_0x493220={'left':_0x1767fe[_0x51cbda(0x5ac)]-0x6,'top':_0x1767fe[_0x51cbda(0x68d)]-0x6,'width':0x1c,'height':0x1c,'zIndex':0x1388,'cellWidth':_0x165582,'cellHeight':_0x2802c0,'pivotParams':{'row':_0x3f0e2f,'col':_0x1edda6,'unitId':_0x45b6b5,'subUnitId':_0xbdb27c,'buttonType':_0xe6d8e9['pbt']}},_0x5338e6='sheets-mobile-pivot-button-'+_0x3f0e2f+'-'+_0x1edda6+'-'+_0x45b6b5+'-'+_0xbdb27c;this['_buttonShapes'][_0x51cbda(0x382)](this[_0x51cbda(0x45f)]['createInstance'](Mn,_0x5338e6,_0x493220));}),this[_0x1e0833(0x613)][_0x1e0833(0x2f3)]&&_0x1be33c[_0x1e0833(0x5c8)](this[_0x1e0833(0x613)]),_0x1be33c['makeDirty']();}));}[_0x14e1ea(0x57e)](){const _0x1a1d49=_0x14e1ea;var _0x588459;this['disposeWithMe'](this[_0x1a1d49(0x46d)][_0x1a1d49(0x49b)][_0x1a1d49(0x54a)](({unitId:_0x5ba40e,subUnitId:_0x460216})=>{const _0x102b1e=_0x1a1d49;if(_0x5ba40e===this[_0x102b1e(0x2b5)][_0x102b1e(0x1c8)]&&(this[_0x102b1e(0x5da)][_0x102b1e(0x318)]({'sheetId':_0x460216}),this[_0x102b1e(0x2b5)][_0x102b1e(0x224)][_0x102b1e(0x2ed)]()[_0x102b1e(0x595)]()===_0x460216)){var _0x5c0f72;this[_0x102b1e(0x5da)][_0x102b1e(0x4f3)](),(_0x5c0f72=this['_context'][_0x102b1e(0x2cb)])==null||_0x5c0f72[_0x102b1e(0x318)]();}}));let _0x372c91=this[_0x1a1d49(0x2b5)][_0x1a1d49(0x1c8)];this[_0x1a1d49(0x2b5)]['unit']['getSheets']()[_0x1a1d49(0x263)](_0xe19d52=>{const _0x21d1aa=_0x1a1d49;var _0x1a765d;let _0x4cd1bc=_0xe19d52[_0x21d1aa(0x595)]();(_0x1a765d=this['_adaptorModel'][_0x21d1aa(0x50b)](_0x372c91,_0x4cd1bc))!=null&&_0x1a765d[_0x21d1aa(0x587)]&&this[_0x21d1aa(0x5da)]['makeDirty']({'sheetId':_0x4cd1bc});}),this[_0x1a1d49(0x5da)][_0x1a1d49(0x4f3)](),(_0x588459=this[_0x1a1d49(0x2b5)][_0x1a1d49(0x2cb)])==null||_0x588459[_0x1a1d49(0x318)]();}};Pn=K([G(0x1,(0x0,n['Inject'])(n[_0x14e1ea(0x4cd)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x504)])),G(0x3,(0x0,n['Inject'])(a['SheetSkeletonManagerService'])),G(0x4,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x6ad)])),G(0x5,(0x0,n['Inject'])(r[_0x14e1ea(0x433)])),G(0x6,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x654)])),G(0x7,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x2a4)])),G(0x8,i[_0x14e1ea(0x544)]),G(0x9,(0x0,n[_0x14e1ea(0x626)])(a['SheetContextMenuMobileRenderController']))],Pn);let X=class extends n[_0x14e1ea(0x62e)]{constructor(_0x30cbbd,_0x5f5141,_0x1e02cb){const _0x1d506a=_0x14e1ea;super(),this[_0x1d506a(0x597)]=_0x30cbbd,this[_0x1d506a(0x370)]=_0x5f5141,this[_0x1d506a(0x4a5)]=_0x1e02cb,this['_initialize']();}['_initialize'](){const _0x1d7b04=_0x14e1ea;let _0x44befa=this,_0x796926,_0x1e7946;this[_0x1d7b04(0x50a)](this[_0x1d7b04(0x4a5)][_0x1d7b04(0x6cc)]({'id':t[_0x1d7b04(0x62d)],'onBeforeCopy'(_0x24e479,_0x282f5f){const _0x1c92c3=_0x1d7b04;let _0x182f1f=_0x44befa[_0x1c92c3(0x597)]['getUnit'](_0x24e479,n[_0x1c92c3(0x548)]['UNIVER_SHEET']);_0x182f1f&&(_0x796926=_0x44befa[_0x1c92c3(0x370)][_0x1c92c3(0x57c)](_0x24e479,_0x282f5f),_0x1e7946=_0x182f1f[_0x1c92c3(0x622)]());},'onAfterCopy'(){_0x796926=null,_0x1e7946=null;},'getCellValueBySpecialMatrix'(_0x4f90f4,_0x31d2d1){const _0x428a3e=_0x1d7b04;if(!_0x796926)return;let _0x31ec77=_0x796926==null?void 0x0:_0x796926[_0x428a3e(0x5a7)](_0x4f90f4,_0x31d2d1);if(_0x31ec77){var _0xe15ed5;return{..._0x31ec77,'s':_0x1e7946==null?void 0x0:_0x1e7946['get'](_0x31ec77['s']),'displayV':((_0xe15ed5=_0x31ec77['v'])==null?void 0x0:_0xe15ed5[_0x428a3e(0x6f5)]())||''};}}}));}};X=K([G(0x0,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x642)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(t['SheetsPivotTableAdaptorModel'])),G(0x2,a['ISheetClipboardService'])],X);const Fn=[r[_0x14e1ea(0x656)]['id'],r['RemoveColCommand']['id'],r[_0x14e1ea(0x1fc)]['id'],r[_0x14e1ea(0x57b)]['id']];let In=class extends n[_0x14e1ea(0x62e)]{constructor(_0x180bb0,_0x30f8f6,_0x3cd955,_0x28665a,_0x3edbac,_0x1b23c9,_0x3ec54a,_0x1aafb8,_0x1da2eb){const _0x130257=_0x14e1ea;var _0x45e3a3;super(),this[_0x130257(0x45f)]=_0x180bb0,this['_univerInstanceService']=_0x30f8f6,this['_sheetsPivotTableAdaptorModel']=_0x3cd955,this['_sheetInterceptorService']=_0x28665a,this['_confirmService']=_0x3edbac,this[_0x130257(0x291)]=_0x1b23c9,this[_0x130257(0x43b)]=_0x3ec54a,this[_0x130257(0x59b)]=_0x1aafb8,this[_0x130257(0x2dd)]=_0x1da2eb,W(this,_0x130257(0x1c7),!0x1),this[_0x130257(0x483)](),this['_initRowColOperationCheck'](),this[_0x130257(0x1c7)]=((_0x45e3a3=this[_0x130257(0x2dd)]['getConfig'](t[_0x130257(0x430)]))==null?void 0x0:_0x45e3a3[_0x130257(0x47c)])??!0x1;}[_0x14e1ea(0x483)](){const _0x502d12=_0x14e1ea;this['disposeWithMe'](this['_sheetInterceptorService'][_0x502d12(0x37e)]({'performCheck':async _0x3d3b2e=>{const _0x404f76=_0x502d12;if(_0x3d3b2e['id']===r[_0x404f76(0x66b)]['id']){let _0x5458f5=(0x0,r[_0x404f76(0x3de)])(this[_0x404f76(0x597)]);if(!_0x5458f5)return Promise[_0x404f76(0x4d7)](!0x1);let {unitId:_0x2d9e67,subUnitId:_0x35a457}=_0x5458f5,{fromRange:_0x2fe2f1,toRange:_0x2e2fff}=_0x3d3b2e['params'],_0x50dac0=this['_sheetsPivotTableConfigModel'][_0x404f76(0x2a0)](_0x2d9e67,_0x35a457);if(!(_0x50dac0!=null&&_0x50dac0[_0x404f76(0x587)]))return Promise[_0x404f76(0x4d7)](!0x0);for(let [_0x370918,_0x12639f]of _0x50dac0){let {targetCellInfo:_0x25da2e}=_0x12639f,{row:_0x23e7bb,col:_0x250838}=_0x25da2e,_0x42e4dd=_0x23e7bb-_0x2fe2f1['startRow'],_0x5cf58f=_0x250838-_0x2fe2f1['startColumn'],_0x3d3cca={'row':_0x2e2fff[_0x404f76(0x254)]+_0x42e4dd,'col':_0x2e2fff[_0x404f76(0x695)]+_0x5cf58f},_0x23345b=_0x3d3cca[_0x404f76(0x5f4)]-_0x25da2e[_0x404f76(0x5f4)],_0xd3b233=_0x3d3cca[_0x404f76(0x4d9)]-_0x25da2e['col'],_0xa8455d=this['_sheetsPivotTableAdaptorModel'][_0x404f76(0x43a)](_0x2d9e67,_0x35a457,_0x370918),_0x2e2734=_0xa8455d==null?void 0x0:_0xa8455d[_0x404f76(0x455)];if(!_0x2e2734)return Promise[_0x404f76(0x4d7)](!0x0);let _0x40fcbb=[];Object[_0x404f76(0x3ae)](_0x2e2734)['forEach'](_0x531e6b=>{const _0x1954fb=_0x404f76;_0x2e2734[_0x531e6b][_0x1954fb(0x263)](_0x5e41d3=>{const _0x556528=_0x1954fb;let _0x335c84={..._0x5e41d3};_0x335c84['startRow']=_0x5e41d3['startRow']+_0x23345b,_0x335c84[_0x556528(0x3a4)]=_0x5e41d3[_0x556528(0x3a4)]+_0x23345b,_0x335c84[_0x556528(0x695)]=_0x5e41d3[_0x556528(0x695)]+_0xd3b233,_0x335c84[_0x556528(0x2a8)]=_0x5e41d3[_0x556528(0x2a8)]+_0xd3b233,_0x40fcbb[_0x556528(0x382)](_0x335c84);});});let _0x586ae4=this[_0x404f76(0x337)]['generateMutationsByRanges']({'unitId':_0x2d9e67,'subUnitId':_0x35a457,'ranges':_0x40fcbb}),_0x2a7057=(0x0,t[_0x404f76(0x5e3)])(this[_0x404f76(0x45f)],_0x2d9e67,_0x35a457,_0x40fcbb);if(_0x586ae4[_0x404f76(0x26f)][_0x404f76(0x2f3)]||_0x2a7057[_0x404f76(0x346)]){if(this['_defaultOverride'])return Promise[_0x404f76(0x4d7)](!0x0);{let _0x2e9f76=await this[_0x404f76(0x492)]['confirm']({'id':_0x404f76(0x490),'title':{'title':this[_0x404f76(0x291)]['t'](_0x404f76(0x23c))},'children':{'title':this['_localeService']['t']('sheets-pivot-ui.perform.info')},'cancelText':this[_0x404f76(0x291)]['t'](_0x404f76(0x623)),'confirmText':this['_localeService']['t'](_0x404f76(0x599))});return Promise[_0x404f76(0x4d7)](_0x2e9f76);}}}}return Promise['resolve'](!0x0);}}));}[_0x14e1ea(0x234)](){const _0x594029=_0x14e1ea;this[_0x594029(0x50a)](this[_0x594029(0x337)][_0x594029(0x37e)]({'performCheck':async _0x57536e=>{const _0x140350=_0x594029;if(Fn[_0x140350(0x3a9)](_0x57536e['id'])){let _0x29ce32=_0x57536e[_0x140350(0x641)],{range:_0x43b1ac}=_0x29ce32,_0x2ecbf6=(0x0,r[_0x140350(0x3de)])(this[_0x140350(0x597)]),_0xb39f0d=_0x29ce32[_0x140350(0x1c8)]||(_0x2ecbf6==null?void 0x0:_0x2ecbf6['unitId']),_0x182d48=_0x29ce32[_0x140350(0x465)]||(_0x2ecbf6==null?void 0x0:_0x2ecbf6[_0x140350(0x465)]);if(!_0xb39f0d||!_0x182d48)return Promise[_0x140350(0x4d7)](!0x0);let _0x2e2b3e=this[_0x140350(0x43b)][_0x140350(0x2a0)](_0xb39f0d,_0x182d48);if(_0x2e2b3e!=null&&_0x2e2b3e[_0x140350(0x587)])for(let [_0x49d2a4,_0x225d06]of _0x2e2b3e){let _0x33c9f0=this['_sheetsPivotTableAdaptorModel'][_0x140350(0x43a)](_0xb39f0d,_0x182d48,_0x49d2a4);if(_0x33c9f0!=null&&_0x33c9f0['rangesInfo']){for(let _0x260eeb of Object['keys'](_0x33c9f0[_0x140350(0x455)]))if(_0x33c9f0['rangesInfo'][_0x260eeb][_0x140350(0x47b)](_0x4157fd=>n['Rectangle']['intersects'](_0x4157fd,_0x43b1ac)))return this[_0x140350(0x59b)][_0x140350(0x61c)]({'type':s['MessageType'][_0x140350(0x6b2)],'content':this[_0x140350(0x291)]['t'](_0x140350(0x349))}),Promise[_0x140350(0x4d7)](!0x1);}}}return Promise[_0x140350(0x4d7)](!0x0);}}));}};In=K([G(0x0,(0x0,n['Inject'])(n['Injector'])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x642)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x504)])),G(0x3,(0x0,n[_0x14e1ea(0x608)])(r[_0x14e1ea(0x1cd)])),G(0x4,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x461)])),G(0x5,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x2a4)])),G(0x6,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x6ad)])),G(0x7,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x3a8)])),G(0x8,(0x0,n[_0x14e1ea(0x608)])(n['IConfigService']))],In);const Ln=[h['InsertTextCommand']['id'],g[_0x14e1ea(0x6b6)]['id'],a[_0x14e1ea(0x5ee)]['id']];let Rn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x5da72c,_0x1f8cc9,_0xe7eb75,_0x46a5b3,_0x34ee0f,_0x4e5854){const _0x36c557=_0x14e1ea;super(),this[_0x36c557(0x5ce)]=_0x5da72c,this[_0x36c557(0x597)]=_0x1f8cc9,this['_sheetsPivotTableAdaptorModel']=_0xe7eb75,this[_0x36c557(0x423)]=_0x46a5b3,this['_sheetsPivotTableConfigModel']=_0x34ee0f,this['_localeService']=_0x4e5854,this[_0x36c557(0x500)]();}[_0x14e1ea(0x500)](){const _0x247ec2=_0x14e1ea;this[_0x247ec2(0x50a)](this['_commandService']['beforeCommandExecuted'](_0x530c84=>{const _0x3c83e8=_0x247ec2;if(Ln[_0x3c83e8(0x3a9)](_0x530c84['id'])){var _0x15a32e;let _0x4950c4=(_0x15a32e=this[_0x3c83e8(0x5ce)][_0x3c83e8(0x62c)]())==null?void 0x0:_0x15a32e['primary'];if(!_0x4950c4)return;let {actualRow:_0x30809b,actualColumn:_0x3b11df}=_0x4950c4,_0x4461c9=(0x0,n['cellToRange'])(_0x30809b,_0x3b11df),_0x313c7c=(0x0,r[_0x3c83e8(0x3de)])(this['_univerInstanceService'],_0x530c84[_0x3c83e8(0x641)]);if(!_0x313c7c)return;let {unitId:_0x15153c,subUnitId:_0x2a0842}=_0x313c7c,_0x4a764a=this['_sheetsPivotTableConfigModel'][_0x3c83e8(0x2a0)](_0x15153c,_0x2a0842);if(_0x4a764a!=null&&_0x4a764a['size'])for(let [_0x9bfb58]of _0x4a764a){let _0x3cc507=this['_sheetsPivotTableAdaptorModel'][_0x3c83e8(0x43a)](_0x15153c,_0x2a0842,_0x9bfb58);if(_0x3cc507!=null&&_0x3cc507[_0x3c83e8(0x455)]){for(let _0x254380 of Object[_0x3c83e8(0x3ae)](_0x3cc507[_0x3c83e8(0x455)]))if(_0x3cc507['rangesInfo'][_0x254380][_0x3c83e8(0x47b)](_0x22cae7=>n['Rectangle'][_0x3c83e8(0x526)](_0x22cae7,_0x4461c9)))throw new n['CustomCommandExecutionError'](this[_0x3c83e8(0x291)]['t']('sheets-pivot-ui.msg.editCellError'));}}}}));}};Rn=K([G(0x0,(0x0,n[_0x14e1ea(0x608)])(r[_0x14e1ea(0x288)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x642)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x504)])),G(0x3,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x27a)])),G(0x4,(0x0,n['Inject'])(t[_0x14e1ea(0x6ad)])),G(0x5,(0x0,n['Inject'])(n['LocaleService']))],Rn);let zn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x22ca7c,_0x3cdd89,_0x3e1fde,_0x372bf4){const _0x246418=_0x14e1ea;super(),this[_0x246418(0x370)]=_0x22ca7c,this[_0x246418(0x304)]=_0x3cdd89,this[_0x246418(0x59b)]=_0x3e1fde,this[_0x246418(0x291)]=_0x372bf4,this[_0x246418(0x2e5)]();}[_0x14e1ea(0x2e5)](){const _0x3fbb85=_0x14e1ea;let _0x89b059=this['_sheetsPivotTableAdaptorModel'],_0x125b8a=this['_messageService'],_0x3133ce=this['_localeService'];this[_0x3fbb85(0x304)]['addHook']({'id':_0x3fbb85(0x1c5),'onBeforeApply'(_0x22dce9){const _0x2f2076=_0x3fbb85;let {redoMutationsInfo:_0x5e4e8e}=_0x22dce9;for(let _0x5da94a of _0x5e4e8e)if(_0x5da94a['id']===r[_0x2f2076(0x26b)]['id']){let {unitId:_0x2772e1,subUnitId:_0x3e2578,ranges:_0x15bc7a}=_0x5da94a[_0x2f2076(0x641)];for(let _0xffb9b6 of _0x15bc7a)if(_0x89b059[_0x2f2076(0x218)](_0x2772e1,_0x3e2578,_0xffb9b6)[_0x2f2076(0x2f3)]>0x0)return _0x125b8a[_0x2f2076(0x61c)]({'type':s[_0x2f2076(0x42e)][_0x2f2076(0x6b2)],'content':_0x3133ce['t']('sheets-pivot-ui.msg.mergeCellError')}),!0x1;}return!0x0;}});}};zn=K([G(0x0,(0x0,n['Inject'])(t[_0x14e1ea(0x504)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(a[_0x14e1ea(0x569)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x3a8)])),G(0x3,(0x0,n['Inject'])(n['LocaleService']))],zn);let Bn=class extends n['Disposable']{constructor(_0x197993,_0x426c71,_0x3d8af0){const _0x3ed52d=_0x14e1ea;super(),this[_0x3ed52d(0x4b8)]=_0x197993,this['_sheetsPivotTableAdaptorModel']=_0x426c71,this[_0x3ed52d(0x43b)]=_0x3d8af0,this['_initPrintArea']();}['_initPrintArea'](){const _0x50248f=_0x14e1ea;this[_0x50248f(0x50a)](this[_0x50248f(0x4b8)][_0x50248f(0x1d5)][_0x50248f(0x36a)](this[_0x50248f(0x4b8)][_0x50248f(0x1d5)][_0x50248f(0x516)]()[_0x50248f(0x45d)],{'handler':(_0x477fad,_0x15856a,_0x4a72ea)=>{const _0x423c9b=_0x50248f;let {unitId:_0x2c025a,subUnitId:_0x1745c8}=_0x15856a,_0x46a6a8=(_0x477fad==null?void 0x0:_0x477fad[_0x423c9b(0x254)])??0x1/0x0,_0x2e2d04=(_0x477fad==null?void 0x0:_0x477fad[_0x423c9b(0x3a4)])??-0x1/0x0,_0x2fa37e=(_0x477fad==null?void 0x0:_0x477fad['startColumn'])??0x1/0x0,_0x490ab3=(_0x477fad==null?void 0x0:_0x477fad[_0x423c9b(0x2a8)])??-0x1/0x0,_0x454e5d=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x2c025a,_0x1745c8);if(!_0x454e5d)return _0x4a72ea(_0x477fad);for(let [_0x3611e5,_0x118cdb]of _0x454e5d){var _0x346a67;let _0x455df3=(_0x346a67=this[_0x423c9b(0x370)]['getPivotItemRenderInfoCache'](_0x2c025a,_0x1745c8,_0x3611e5))==null?void 0x0:_0x346a67[_0x423c9b(0x455)];_0x455df3&&Object['values'](_0x455df3)[_0x423c9b(0x263)](_0x358e22=>{const _0x33d5c4=_0x423c9b;_0x358e22[_0x33d5c4(0x263)](_0x4e14c3=>{const _0x5a723e=_0x33d5c4;let {startRow:_0x830cfa,endRow:_0x5b3bc6,startColumn:_0x347b86,endColumn:_0x128e9a}=_0x4e14c3;_0x46a6a8=Math[_0x5a723e(0x47f)](_0x830cfa,_0x46a6a8),_0x2e2d04=Math[_0x5a723e(0x512)](_0x5b3bc6,_0x2e2d04),_0x2fa37e=Math['min'](_0x347b86,_0x2fa37e),_0x490ab3=Math['max'](_0x128e9a,_0x490ab3);});});}let _0x5e4b09={'startRow':_0x46a6a8,'endRow':_0x2e2d04,'startColumn':_0x2fa37e,'endColumn':_0x490ab3};return(0x0,n['isValidRange'])(_0x5e4b09)?_0x4a72ea(_0x5e4b09):_0x4a72ea(_0x477fad);}}));}};Bn=K([G(0x0,(0x0,n[_0x14e1ea(0x608)])(a[_0x14e1ea(0x5ca)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(t['SheetsPivotTableAdaptorModel'])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x6ad)]))],Bn);let Vn=class extends n[_0x14e1ea(0x62e)]{constructor(_0x432777,_0x1721ca,_0x3adf0e){const _0x24659a=_0x14e1ea;super(),this[_0x24659a(0x2f5)]=_0x432777,this[_0x24659a(0x597)]=_0x1721ca,this[_0x24659a(0x43b)]=_0x3adf0e,this[_0x24659a(0x578)]();}['_initMenuInterceptor'](){const _0x3a1883=_0x14e1ea;this[_0x3a1883(0x50a)](this[_0x3a1883(0x2f5)][_0x3a1883(0x1d5)]['intercept'](this[_0x3a1883(0x2f5)][_0x3a1883(0x1d5)][_0x3a1883(0x516)]()[_0x3a1883(0x4ac)],{'handler':(_0x29e36f,_0x14dc47)=>{const _0x2d8532=_0x3a1883;let _0x3451ec=(0x0,r[_0x2d8532(0x3de)])(this[_0x2d8532(0x597)]);if(!_0x3451ec)return _0x29e36f;let {unitId:_0x269b11,subUnitId:_0x2f4ff7}=_0x3451ec,_0xaff243=this[_0x2d8532(0x43b)][_0x2d8532(0x2a0)](_0x269b11,_0x2f4ff7),_0x412443=[];return _0xaff243&&_0xaff243[_0x2d8532(0x263)]((_0xfe7e41,_0xce9387)=>{const _0x1ab6d1=_0x2d8532;var _0x2cb172;let _0x4a71bb=(_0x2cb172=this[_0x1ab6d1(0x43b)][_0x1ab6d1(0x65f)](_0x269b11,_0x2f4ff7,_0xce9387))==null?void 0x0:_0x2cb172['rangeInfo'];_0x4a71bb&&Object[_0x1ab6d1(0x3ae)](_0x4a71bb)[_0x1ab6d1(0x263)](_0x9ac179=>{const _0x326706=_0x1ab6d1;let _0x4eb52e=_0x4a71bb[_0x9ac179];Array['isArray'](_0x4eb52e)&&_0x412443[_0x326706(0x382)](..._0x4eb52e);});}),_0x412443[_0x2d8532(0x2f3)]&&_0x14dc47[_0x2d8532(0x47b)](_0x5f528a=>_0x412443[_0x2d8532(0x47b)](_0x288e2d=>n[_0x2d8532(0x6bb)][_0x2d8532(0x526)](_0x288e2d,_0x5f528a)))?!0x0:_0x29e36f;}}));}};Vn=K([G(0x0,(0x0,n['Inject'])(r[_0x14e1ea(0x5a5)])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x642)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(t[_0x14e1ea(0x6ad)]))],Vn);let Z=class extends n[_0x14e1ea(0x5e8)]{constructor(_0x220644=ot,_0x284ce6,_0x356e04,_0x4aaf4f,_0x3f103e){const _0x15582c=_0x14e1ea;super(),this[_0x15582c(0x4b9)]=_0x220644,this[_0x15582c(0x45f)]=_0x284ce6,this['_commandService']=_0x356e04,this[_0x15582c(0x6b7)]=_0x4aaf4f,this[_0x15582c(0x2dd)]=_0x3f103e;let {menu:_0x10080d,..._0x3eece7}=(0x0,n[_0x15582c(0x2da)])({},ot,this[_0x15582c(0x4b9)]);_0x10080d&&this['_configService'][_0x15582c(0x486)](_0x15582c(0x5ad),_0x10080d,{'merge':!0x0}),this[_0x15582c(0x2dd)][_0x15582c(0x486)](at,_0x3eece7),this['_registerCommands']();}[_0x14e1ea(0x367)](){const _0xa3721b=_0x14e1ea;[[yn],[Sn],[Cn],[Vn],[In],[Bn],[Rn],[zn],[q],[X]][_0xa3721b(0x263)](_0x95ecc5=>this[_0xa3721b(0x45f)][_0xa3721b(0x49a)](_0x95ecc5)),(0x0,n['touchDependencies'])(this[_0xa3721b(0x45f)],[[yn],[Sn],[Cn],[q]]);}['onRendered'](){const _0xe19fe3=_0x14e1ea;this[_0xe19fe3(0x3ab)](),(0x0,n[_0xe19fe3(0x618)])(this['_injector'],[[In],[Bn],[Rn],[zn],[X]]);}[_0x14e1ea(0x395)](){const _0x42d5e2=_0x14e1ea;(0x0,n[_0x42d5e2(0x618)])(this[_0x42d5e2(0x45f)],[[Vn]]);}[_0x14e1ea(0x609)](){const _0x2f5837=_0x14e1ea;[it,N,tt,nt,F][_0x2f5837(0x263)](_0x323fa8=>this['disposeWithMe'](this[_0x2f5837(0x423)][_0x2f5837(0x31c)](_0x323fa8)));}['_registerRenderModules'](){const _0x100af4=_0x14e1ea;this[_0x100af4(0x50a)](this[_0x100af4(0x6b7)][_0x100af4(0x20c)](n[_0x100af4(0x548)][_0x100af4(0x640)],[Pn]));}};W(Z,_0x14e1ea(0x19d),t[_0x14e1ea(0x62d)]+_0x14e1ea(0x42d)),W(Z,'packageName',$e),W(Z,_0x14e1ea(0x4fb),et),W(Z,_0x14e1ea(0x314),n[_0x14e1ea(0x548)]['UNIVER_SHEET']),Z=K([(0x0,n[_0x14e1ea(0x336)])(c[_0x14e1ea(0x3ba)],l[_0x14e1ea(0x638)],r[_0x14e1ea(0x58c)],t['UniverSheetsPivotTablePlugin'],a[_0x14e1ea(0x5d7)],i[_0x14e1ea(0x557)]),G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x4cd)])),G(0x2,n[_0x14e1ea(0x27a)]),G(0x3,l[_0x14e1ea(0x438)]),G(0x4,n['IConfigService'])],Z);const Hn=[e['PivotExcelDateGroupUnit']['Year'],e['PivotExcelDateGroupUnit'][_0x14e1ea(0x22b)],e[_0x14e1ea(0x27c)][_0x14e1ea(0x60c)],e['PivotExcelDateGroupUnit']['Day'],e[_0x14e1ea(0x27c)]['Hour'],e[_0x14e1ea(0x27c)][_0x14e1ea(0x41f)],e[_0x14e1ea(0x27c)]['Second']],Un={[e[_0x14e1ea(0x27c)][_0x14e1ea(0x42f)]]:_0x14e1ea(0x550),[e[_0x14e1ea(0x27c)]['Quarter']]:'sheets-pivot-ui.dateGroup.quarter',[e[_0x14e1ea(0x27c)]['Month']]:_0x14e1ea(0x3b7),[e[_0x14e1ea(0x27c)]['Day']]:_0x14e1ea(0x634),[e[_0x14e1ea(0x27c)][_0x14e1ea(0x3b4)]]:_0x14e1ea(0x633),[e['PivotExcelDateGroupUnit'][_0x14e1ea(0x41f)]]:_0x14e1ea(0x639),[e[_0x14e1ea(0x27c)]['Second']]:'sheets-pivot-ui.dateGroup.second'},Wn=_0x14e1ea(0x389);function Gn({targetFieldName:_0x12c723,dateSystem:_0x44f894,grouping:_0x4c46ba,onConfirm:_0x55f1a3,onCancel:_0x257607}){const _0x297376=_0x14e1ea;let _0x35e2d6=(0x0,i['useDependency'])(n['LocaleService']),_0x33dce6=(0x0,i[_0x297376(0x391)])(_0x35e2d6['direction$'],_0x35e2d6['getDirection']()),_0x5d16ad=(_0x1de7c8,_0x19e171)=>{const _0x3d4738=_0x297376;let _0x7383f3=_0x1de7c8===void 0x0?null:(0x0,n[_0x3d4738(0x674)])(_0x1de7c8,{'dateSystem':_0x44f894});if(!_0x7383f3)return{'date':'','time':_0x19e171};let _0x2c40a3=_0x1547bc=>String(_0x1547bc)[_0x3d4738(0x434)](0x2,'0');return{'date':_0x7383f3[_0x3d4738(0x350)]+'-'+_0x2c40a3(_0x7383f3['month'])+'-'+_0x2c40a3(_0x7383f3[_0x3d4738(0x31b)]),'time':_0x2c40a3(_0x7383f3[_0x3d4738(0x41a)])+':'+_0x2c40a3(_0x7383f3[_0x3d4738(0x40d)])+':'+_0x2c40a3(_0x7383f3[_0x3d4738(0x1e7)])};},[_0x24cc35,_0x282565]=(0x0,f[_0x297376(0x53a)])((_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x403)])??[e[_0x297376(0x27c)]['Day']]),[_0x6570bd,_0x46229c]=(0x0,f['useState'])((_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x2e1)])??!0x0),[_0x2c2114,_0xee53aa]=(0x0,f['useState'])((_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x1de)])??!0x0),[_0x430df8,_0x435705]=(0x0,f[_0x297376(0x53a)])(()=>_0x5d16ad(_0x4c46ba==null?void 0x0:_0x4c46ba['start'],'00:00:00')[_0x297376(0x1c4)]),[_0x4c4284,_0x726275]=(0x0,f[_0x297376(0x53a)])(()=>_0x5d16ad(_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x3d0)],_0x297376(0x4da))[_0x297376(0x1c4)]),[_0x5d1855,_0x2be670]=(0x0,f[_0x297376(0x53a)])(()=>_0x5d16ad(_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x2b6)],'00:00:00')['time']),[_0x2520e9,_0x46eac2]=(0x0,f['useState'])(()=>_0x5d16ad(_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x3d0)],_0x297376(0x4da))[_0x297376(0x679)]),[_0x5c5950,_0x8b78ff]=(0x0,f[_0x297376(0x53a)])((_0x4c46ba==null?void 0x0:_0x4c46ba[_0x297376(0x315)])??0x1),[_0x5c92ca,_0x46f920]=(0x0,f[_0x297376(0x53a)])(!0x1),_0x11071d=(0x0,f[_0x297376(0x4a8)])(!0x1),_0x4a04a9=_0x24cc35['some'](_0x2ed6e4=>_0x2ed6e4===e[_0x297376(0x27c)][_0x297376(0x3b4)]||_0x2ed6e4===e[_0x297376(0x27c)][_0x297376(0x41f)]||_0x2ed6e4===e['PivotExcelDateGroupUnit'][_0x297376(0x275)]),_0x4797be=_0x24cc35[_0x297376(0x2f3)]===0x1&&_0x24cc35[0x0]===e[_0x297376(0x27c)][_0x297376(0x52a)],_0xc607b8=(_0x13bb9c,_0x5455a6,_0x17bb79)=>{const _0x1fbfe9=_0x297376;let _0x38513d=/^(\d{4})-(\d{2})-(\d{2})$/['exec'](_0x13bb9c),_0x1952ef=/^(\d{2}):(\d{2})(?::(\d{2}))?$/['exec'](_0x5455a6);return!_0x38513d||!_0x1952ef?null:(0x0,n[_0x1fbfe9(0x4a3)])({'year':Number(_0x38513d[0x1]),'month':Number(_0x38513d[0x2]),'day':Number(_0x38513d[0x3]),'hours':_0x4a04a9?Number(_0x1952ef[0x1]):_0x17bb79?0x17:0x0,'minutes':_0x4a04a9?Number(_0x1952ef[0x2]):_0x17bb79?0x3b:0x0,'seconds':_0x4a04a9?Number(_0x1952ef[0x3]??0x0):_0x17bb79?0x3b:0x0,'fractionalSecond':_0x17bb79?0.999:0x0},{'dateSystem':_0x44f894});},_0x4d64b=_0x6570bd?void 0x0:_0xc607b8(_0x430df8,_0x5d1855,!0x1),_0x57466d=_0x2c2114?void 0x0:_0xc607b8(_0x4c4284,_0x2520e9,!0x0),_0x365c91=_0x24cc35['length']>0x0&&(_0x6570bd||_0x4d64b!==null)&&(_0x2c2114||_0x57466d!==null)&&(_0x4d64b==null||_0x57466d==null||_0x4d64b<=_0x57466d)&&(!_0x4797be||Number['isInteger'](_0x5c5950)&&_0x5c5950>=0x1);return(0x0,d[_0x297376(0x322)])(_0x297376(0x2ca),{'className':_0x297376(0x2e2),'dir':_0x33dce6,'children':[(0x0,d['jsx'])(_0x297376(0x2ca),{'className':_0x297376(0x3ea),'children':_0x12c723}),(0x0,d[_0x297376(0x322)])(_0x297376(0x67b),{'children':[(0x0,d[_0x297376(0x364)])(_0x297376(0x221),{'className':_0x297376(0x660),'children':_0x35e2d6['t'](_0x297376(0x5cb))}),(0x0,d[_0x297376(0x364)])(_0x297376(0x2ca),{'className':_0x297376(0x5c6),'children':Hn[_0x297376(0x505)](_0x23ca2c=>(0x0,d[_0x297376(0x364)])(s[_0x297376(0x1c1)],{'checked':_0x24cc35[_0x297376(0x3a9)](_0x23ca2c),'onChange':_0x9afbb2=>_0x282565(_0x2b841f=>_0x9afbb2?Hn[_0x297376(0x327)](_0x48272b=>_0x48272b===_0x23ca2c||_0x2b841f[_0x297376(0x3a9)](_0x48272b)):_0x2b841f[_0x297376(0x327)](_0x11ce2a=>_0x11ce2a!==_0x23ca2c)),'children':_0x35e2d6['t'](Un[_0x23ca2c])},_0x23ca2c))})]}),_0x4797be&&(0x0,d['jsxs'])(_0x297376(0x21c),{'className':_0x297376(0x19b),'children':[_0x35e2d6['t'](_0x297376(0x5ec)),(0x0,d['jsx'])(s['InputNumber'],{'className':'univer-w-24','value':_0x5c5950,'min':0x1,'onChange':_0x59e01d=>_0x8b78ff(Number(_0x59e01d))})]}),(0x0,d[_0x297376(0x322)])(_0x297376(0x2ca),{'className':_0x297376(0x652),'children':[(0x0,d[_0x297376(0x364)])(s[_0x297376(0x1c1)],{'checked':_0x6570bd,'onChange':_0x5431fe=>_0x46229c(!!_0x5431fe),'children':_0x35e2d6['t'](_0x297376(0x246))}),!_0x6570bd&&(0x0,d['jsxs'])(_0x297376(0x21c),{'className':_0x297376(0x6c3),'children':[_0x35e2d6['t'](_0x297376(0x29c)),(0x0,d['jsx'])(s[_0x297376(0x495)],{'type':_0x297376(0x1c4),'value':_0x430df8,'onChange':_0x435705}),_0x4a04a9&&(0x0,d['jsx'])(_0x297376(0x3f0),{'className':Wn,'type':_0x297376(0x679),'step':0x1,'value':_0x5d1855,'onChange':_0x53dee5=>_0x2be670(_0x53dee5['target'][_0x297376(0x320)])})]}),(0x0,d[_0x297376(0x364)])(s[_0x297376(0x1c1)],{'checked':_0x2c2114,'onChange':_0x540f52=>_0xee53aa(!!_0x540f52),'children':_0x35e2d6['t'](_0x297376(0x67d))}),!_0x2c2114&&(0x0,d[_0x297376(0x322)])(_0x297376(0x21c),{'className':_0x297376(0x6c3),'children':[_0x35e2d6['t']('sheets-pivot-ui.dateGroup.end'),(0x0,d[_0x297376(0x364)])(s['Input'],{'type':_0x297376(0x1c4),'value':_0x4c4284,'onChange':_0x726275}),_0x4a04a9&&(0x0,d[_0x297376(0x364)])('input',{'className':Wn,'type':_0x297376(0x679),'step':0x1,'value':_0x2520e9,'onChange':_0x4e3d60=>_0x46eac2(_0x4e3d60[_0x297376(0x460)][_0x297376(0x320)])})]})]}),(0x0,d[_0x297376(0x322)])('div',{'className':_0x297376(0x202),'children':[(0x0,d[_0x297376(0x364)])(s['Button'],{'onClick':_0x257607,'children':_0x35e2d6['t'](_0x297376(0x4aa))}),(0x0,d[_0x297376(0x364)])(s[_0x297376(0x233)],{'variant':'primary','disabled':!_0x365c91||_0x5c92ca,'onClick':async()=>{const _0x48af59=_0x297376;if(!_0x365c91||_0x11071d[_0x48af59(0x68f)])return;let _0x38219a={'units':Hn[_0x48af59(0x327)](_0x2a7e88=>_0x24cc35[_0x48af59(0x3a9)](_0x2a7e88)),'autoStart':_0x6570bd,'autoEnd':_0x2c2114};!_0x6570bd&&_0x4d64b!=null&&(_0x38219a['start']=_0x4d64b),!_0x2c2114&&_0x57466d!=null&&(_0x38219a['end']=_0x57466d),_0x4797be&&_0x5c5950>0x1&&(_0x38219a[_0x48af59(0x315)]=_0x5c5950),_0x11071d['current']=!0x0,_0x46f920(!0x0);try{await _0x55f1a3(_0x38219a);}catch{}finally{_0x11071d[_0x48af59(0x68f)]=!0x1,_0x46f920(!0x1);}},'children':_0x35e2d6['t'](_0x297376(0x356))})]})]});}function Kn(_0x597928){const _0xd3c792=_0x14e1ea;let _0x598b6c=_0x597928['operator']===e['ST_PivotFilterOperatorEnum'][_0xd3c792(0x6bc)]||_0x597928[_0xd3c792(0x663)]===e[_0xd3c792(0x2ac)][_0xd3c792(0x1af)],_0x2936cf={'type':e[_0xd3c792(0x3c1)][_0xd3c792(0x456)],'operator':_0x597928[_0xd3c792(0x663)],'expected':_0x598b6c?[_0x597928[_0xd3c792(0x252)],_0x597928[_0xd3c792(0x4ae)]]:_0x597928[_0xd3c792(0x252)],'useWholeDay':_0x597928['useWholeDay']};try{return(0x0,e['compilePivotDateFilter'])(_0x2936cf),_0x2936cf;}catch{return;}}function qn(_0x30bb2f,_0x41e9f4){const _0x408e0f=_0x14e1ea;let _0x1b4cef=(0x0,n[_0x408e0f(0x674)])(_0x30bb2f,{'dateSystem':_0x41e9f4});if(!_0x1b4cef||_0x1b4cef[_0x408e0f(0x31b)]===0x0||_0x1b4cef[_0x408e0f(0x350)]===0x76c&&_0x1b4cef['month']===0x2&&_0x1b4cef[_0x408e0f(0x31b)]===0x1d)return;let _0x288f74=new Date(0x7d0,0x0,0x1,0xc);return _0x288f74[_0x408e0f(0x24f)](_0x1b4cef[_0x408e0f(0x350)],_0x1b4cef[_0x408e0f(0x646)]-0x1,_0x1b4cef[_0x408e0f(0x31b)]),_0x288f74;}function Jn(_0x2f8d38,_0x2ddd0b,_0x1b232a){const _0x2ede51=_0x14e1ea;let _0x24eaa9=(0x0,n[_0x2ede51(0x4a3)])({'year':_0x2ddd0b[_0x2ede51(0x3ee)](),'month':_0x2ddd0b[_0x2ede51(0x6d2)]()+0x1,'day':_0x2ddd0b[_0x2ede51(0x419)](),'hours':0x0,'minutes':0x0,'seconds':0x0,'fractionalSecond':0x0},{'dateSystem':_0x1b232a});return _0x24eaa9===null?void 0x0:_0x24eaa9+(_0x2f8d38===void 0x0?0x0:_0x2f8d38-Math[_0x2ede51(0x201)](_0x2f8d38));}function Yn(_0x573dba,_0x1bbaa4){const _0x5d313c=_0x14e1ea;return _0x573dba===void 0x0||!Number[_0x5d313c(0x5cc)](_0x1bbaa4[_0x5d313c(0x392)]())?_0x573dba:Math[_0x5d313c(0x201)](_0x573dba)+(_0x1bbaa4[_0x5d313c(0x238)]()*0xe10+_0x1bbaa4[_0x5d313c(0x30e)]()*0x3c+_0x1bbaa4['getSeconds']()+_0x1bbaa4[_0x5d313c(0x536)]()/0x3e8)/0x15180;}const Xn=[{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x1a9)],'label':_0x14e1ea(0x58b)},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x584)],'label':'sheets-pivot-ui.dateFilter.notEqual'},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x4d8)],'label':_0x14e1ea(0x237)},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x471)],'label':_0x14e1ea(0x249)},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x303)],'label':'sheets-pivot-ui.dateFilter.before'},{'value':e['ST_PivotFilterOperatorEnum'][_0x14e1ea(0x5e0)],'label':_0x14e1ea(0x1ee)},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x6bc)],'label':_0x14e1ea(0x259)},{'value':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x1af)],'label':'sheets-pivot-ui.dateFilter.notBetween'}];function Zn({dateSystem:_0x4a5366,defaultDate:_0x32c44d,currentFilter:_0xf36b88,onConfirm:_0x1d30a6,onCancel:_0x41db01}){const _0x146d47=_0x14e1ea;let _0x2b5878=(0x0,i[_0x146d47(0x1e8)])(n['LocaleService']);(0x0,i[_0x146d47(0x391)])(_0x2b5878[_0x146d47(0x27b)]);let _0x590566=(0x0,i[_0x146d47(0x391)])(_0x2b5878[_0x146d47(0x648)],_0x2b5878['getDirection']()),[_0x444d4e,_0x112236]=(0x0,f['useState'])((_0xf36b88==null?void 0x0:_0xf36b88[_0x146d47(0x663)])??e['ST_PivotFilterOperatorEnum'][_0x146d47(0x1a9)]),_0x8e25b4=Array[_0x146d47(0x20e)](_0xf36b88==null?void 0x0:_0xf36b88[_0x146d47(0x2fb)])?_0xf36b88[_0x146d47(0x2fb)][0x0]:_0xf36b88==null?void 0x0:_0xf36b88[_0x146d47(0x2fb)],_0x13c388=Array['isArray'](_0xf36b88==null?void 0x0:_0xf36b88[_0x146d47(0x2fb)])?_0xf36b88[_0x146d47(0x2fb)][0x1]:void 0x0,[_0x52f624,_0x50a411]=(0x0,f[_0x146d47(0x53a)])(()=>_0x8e25b4??_0x32c44d??Jn(void 0x0,new Date(),_0x4a5366)),[_0x2468b7,_0x4becc0]=(0x0,f[_0x146d47(0x53a)])(()=>_0x13c388??_0x8e25b4??_0x32c44d??Jn(void 0x0,new Date(),_0x4a5366)),[_0x52b6d6,_0x177ded]=(0x0,f[_0x146d47(0x53a)])((_0xf36b88==null?void 0x0:_0xf36b88[_0x146d47(0x347)])===!0x0),[_0x62ce4a,_0x1a5dc3]=(0x0,f['useState'])(!0x1),[_0x379bf0,_0x19a4a8]=(0x0,f['useState'])(!0x1),_0x36d90c=(0x0,f['useRef'])(!0x1),_0x1f5c39=_0x527979(_0x52f624),_0x3aee07=_0x527979(_0x2468b7),_0x4730f0=_0x444d4e===e['ST_PivotFilterOperatorEnum'][_0x146d47(0x6bc)]||_0x444d4e===e['ST_PivotFilterOperatorEnum'][_0x146d47(0x1af)],_0x4526c3=Kn({'operator':_0x444d4e,'lower':_0x1f5c39,'upper':_0x3aee07,'useWholeDay':_0x52b6d6}),_0x37b32b=_0x4526c3!==void 0x0&&_0xf36b88!==void 0x0&&_0x444d4e===_0xf36b88[_0x146d47(0x663)]&&_0x52b6d6===(_0xf36b88[_0x146d47(0x347)]===!0x0)&&n[_0x146d47(0x38e)][_0x146d47(0x585)](_0x4526c3[_0x146d47(0x2fb)],_0xf36b88[_0x146d47(0x2fb)]);async function _0x12848b(_0x25008b){const _0x23c81d=_0x146d47;if(!_0x36d90c[_0x23c81d(0x68f)]){_0x36d90c[_0x23c81d(0x68f)]=!0x0,_0x1a5dc3(!0x0),_0x19a4a8(!0x1);try{await _0x1d30a6(_0x25008b)||_0x19a4a8(!0x0);}catch{_0x19a4a8(!0x0);}finally{_0x36d90c[_0x23c81d(0x68f)]=!0x1,_0x1a5dc3(!0x1);}}}function _0x527979(_0x127d81){const _0x574200=_0x146d47;return typeof _0x127d81==_0x574200(0x293)?_0x127d81['trim']()===''?void 0x0:Number(_0x127d81):_0x127d81;}function _0x454c76(_0x23f1a6,_0x1e43e1){_0x1e43e1?_0x4becc0(_0x23f1a6):_0x50a411(_0x23f1a6);}function _0x3e7437(_0x38f78b,_0xab4fae){let _0x522785=Jn(_0xab4fae?_0x3aee07:_0x1f5c39,_0x38f78b,_0x4a5366);_0xab4fae?_0x4becc0(_0x522785):_0x50a411(_0x522785);}function _0x481584(_0x283c05,_0x232981){let _0x157d18=_0x232981?_0x3aee07:_0x1f5c39;if(_0x157d18===void 0x0)return;let _0x317209=Yn(_0x157d18,_0x283c05);_0x232981?_0x4becc0(_0x317209):_0x50a411(_0x317209);}return(0x0,d[_0x146d47(0x322)])('div',{'dir':_0x590566,'className':_0x146d47(0x2ec),'children':[(0x0,d[_0x146d47(0x364)])('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x2b5878['t']('sheets-pivot-ui.dateFilter.title')}),(0x0,d[_0x146d47(0x322)])(_0x146d47(0x2ca),{'className':_0x146d47(0x28f),'children':[(0x0,d['jsx'])(_0x146d47(0x55e),{'className':_0x146d47(0x1d9),'children':_0x2b5878['t'](_0x146d47(0x342))}),(0x0,d['jsx'])(s['Select'],{'className':'univer-w-full','value':String(_0x444d4e),'options':Xn[_0x146d47(0x505)](_0x469757=>({'value':String(_0x469757[_0x146d47(0x320)]),'label':_0x2b5878['t'](_0x469757[_0x146d47(0x21c)])})),'onChange':_0x218127=>_0x112236(Number(_0x218127))})]}),(_0x4730f0?[!0x1,!0x0]:[!0x1])['map'](_0x1f8d40=>{const _0x4f5137=_0x146d47;let _0x3f15f4=_0x1f8d40?_0x3aee07:_0x1f5c39,_0x31d18f=_0x3f15f4===void 0x0?void 0x0:qn(_0x3f15f4,_0x4a5366),_0x5bf92c=(_0x1f8d40?_0x13c388:void 0x0)??_0x8e25b4??_0x32c44d,_0x5cec44=_0x5bf92c!==void 0x0&&!qn(_0x5bf92c,_0x4a5366),_0x4629c0=_0x3f15f4===void 0x0?null:(0x0,n[_0x4f5137(0x674)])(_0x3f15f4,{'dateSystem':_0x4a5366}),_0x417676=_0x4629c0?new Date(0x7d0,0x0,0x1,_0x4629c0['hours'],_0x4629c0[_0x4f5137(0x40d)],_0x4629c0[_0x4f5137(0x1e7)],Math[_0x4f5137(0x201)](_0x4629c0[_0x4f5137(0x38d)]*0x3e8)):void 0x0,_0x38659a=_0x4f5137(0x6ea);return _0x4730f0&&(_0x38659a=_0x1f8d40?_0x4f5137(0x5bf):_0x4f5137(0x278)),(0x0,d[_0x4f5137(0x322)])(_0x4f5137(0x2ca),{'role':'group','aria-label':_0x2b5878['t'](_0x38659a),'className':'univer-flex\x20univer-min-w-0\x20univer-flex-col\x20univer-gap-1','children':[(0x0,d[_0x4f5137(0x364)])('span',{'className':'univer-text-xs','children':_0x2b5878['t'](_0x38659a)}),_0x5cec44?(0x0,d[_0x4f5137(0x322)])('div',{'className':_0x4f5137(0x28f),'children':[(0x0,d['jsx'])('span',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x2b5878['t']('sheets-pivot-ui.dateFilter.serial')}),(0x0,d[_0x4f5137(0x364)])(s[_0x4f5137(0x495)],{'value':String((_0x1f8d40?_0x2468b7:_0x52f624)??''),'onChange':_0x30f1e5=>_0x454c76(_0x30f1e5,_0x1f8d40)})]}):(0x0,d['jsxs'])(_0x4f5137(0x2ca),{'className':_0x4f5137(0x497),'children':[(0x0,d['jsx'])(s[_0x4f5137(0x6c6)],{'value':_0x31d18f,'onValueChange':_0x84b21c=>_0x3e7437(_0x84b21c,_0x1f8d40)}),!_0x52b6d6&&_0x3f15f4!==void 0x0&&(0x0,d[_0x4f5137(0x364)])(s['TimeInput'],{'value':_0x417676,'onValueChange':_0x15b373=>_0x481584(_0x15b373,_0x1f8d40)})]})]},String(_0x1f8d40));}),(0x0,d['jsx'])(s[_0x146d47(0x1c1)],{'checked':_0x52b6d6,'onChange':_0xd9f893=>_0x177ded(_0xd9f893===!0x0),'children':_0x2b5878['t'](_0x146d47(0x572))}),_0x379bf0&&(0x0,d[_0x146d47(0x364)])(_0x146d47(0x2ca),{'role':'alert','className':_0x146d47(0x48e),'children':_0x2b5878['t'](_0x146d47(0x6ec))}),(0x0,d['jsxs'])(_0x146d47(0x2ca),{'className':_0x146d47(0x239),'children':[(0x0,d['jsx'])(s['Button'],{'variant':'link','disabled':_0x62ce4a||!_0xf36b88,'onClick':()=>_0x12848b(void 0x0),'children':_0x2b5878['t']('sheets-pivot-ui.dialog.filter.clearFilter')}),(0x0,d[_0x146d47(0x322)])(_0x146d47(0x2ca),{'className':_0x146d47(0x49c),'children':[(0x0,d['jsx'])(s[_0x146d47(0x233)],{'disabled':_0x62ce4a,'onClick':_0x41db01,'children':_0x2b5878['t'](_0x146d47(0x531))}),(0x0,d['jsx'])(s[_0x146d47(0x233)],{'variant':_0x146d47(0x5b8),'disabled':_0x62ce4a||!_0x4526c3||_0x37b32b,'onClick':()=>_0x12848b(_0x4526c3),'children':_0x2b5878['t'](_0x146d47(0x5d5))})]})]})]});}function Qn(_0x150dac){const _0x40e780=_0x14e1ea;let {dialogId:_0x168db7=b,filterItemInfo:_0x47b2ff,onClose:_0x4f2043,onSetFilter:_0x273258,onSetSort:_0xc530a4,onSetDateFilter:_0xa76089,unitId:_0x89c6c4,subUnitId:_0x12b872}=_0x150dac,{format:_0x5bdcf6,filterInfo:_0x947456,sortInfo:_0x16326d}=_0x47b2ff,_0x102bab=_0x47b2ff[_0x40e780(0x515)]??_0x947456,_0x6f1ea4=(0x0,i[_0x40e780(0x1e8)])(n[_0x40e780(0x27a)]),_0x33bfab=(0x0,i[_0x40e780(0x1e8)])(n['LocaleService']);(0x0,i[_0x40e780(0x391)])(_0x33bfab[_0x40e780(0x27b)]);let _0x28d850=(0x0,i[_0x40e780(0x1e8)])(i[_0x40e780(0x544)]),_0x44d54c=(0x0,i[_0x40e780(0x1e8)])(n[_0x40e780(0x642)]),_0x13e999=(0x0,i[_0x40e780(0x391)])(_0x33bfab[_0x40e780(0x648)],_0x33bfab[_0x40e780(0x4c7)]()),_0x151f7b=(0x0,f['useRef'])(!0x0),[_0x232352,_0x7a2fa4]=(0x0,f['useState'])(!0x1);(0x0,f[_0x40e780(0x5aa)])(()=>(_0x151f7b[_0x40e780(0x68f)]=!0x0,()=>{_0x151f7b['current']=!0x1;}),[]);let [_0x199bb6,_0x264ccc]=(0x0,f[_0x40e780(0x53a)])(()=>_0x47b2ff?_0x47b2ff['checkedItems']??(_0x947456==null?void 0x0:_0x947456[_0x40e780(0x2e8)])??_0x47b2ff['items']:[]),[_0x2f9f06,_0x23165e]=(0x0,f[_0x40e780(0x53a)])(()=>_0x47b2ff[_0x40e780(0x5f2)]??[]),_0x19bb3b=_0x2f9f06[_0x40e780(0x2f3)]===0x0&&_0x199bb6[_0x40e780(0x2f3)]===_0x47b2ff[_0x40e780(0x2fc)][_0x40e780(0x2f3)],_0x4be6c4=_0x199bb6[_0x40e780(0x2f3)]===0x0&&_0x2f9f06[_0x40e780(0x2f3)]===0x0,[_0x345004,_0x37c7d7]=(0x0,f[_0x40e780(0x53a)])(()=>{const _0x566b38=_0x40e780;if(_0x47b2ff)return _0x16326d==null?void 0x0:_0x16326d[_0x566b38(0x314)];}),_0x368ec0=()=>{const _0x51a56f=_0x40e780;_0x151f7b[_0x51a56f(0x68f)]&&(_0x151f7b['current']=!0x1,_0x4f2043?_0x4f2043():_0x28d850[_0x51a56f(0x34d)](_0x168db7));};if((0x0,f['useEffect'])(()=>{const _0xf1352b=_0x40e780;let _0x56d6fc=_0x44d54c['getCurrentUnitOfType'](n[_0xf1352b(0x548)][_0xf1352b(0x640)]);if(!_0x56d6fc)return;let _0xc322fb=_0x56d6fc['activeSheet$'][_0xf1352b(0x54a)](_0x23f3ad=>{const _0x27fef8=_0xf1352b;_0x23f3ad&&_0x23f3ad[_0x27fef8(0x595)]()!==_0x12b872&&_0x151f7b[_0x27fef8(0x68f)]&&(_0x151f7b[_0x27fef8(0x68f)]=!0x1,_0x4f2043?_0x4f2043():_0x28d850[_0x27fef8(0x34d)](_0x168db7));});return()=>_0xc322fb==null?void 0x0:_0xc322fb[_0xf1352b(0x5af)]();},[_0x168db7,_0x28d850,_0x4f2043,_0x12b872,_0x44d54c]),!_0x47b2ff)return;let _0xab4652=()=>{_0x23165e([]),_0x264ccc(_0x19bb3b?[]:_0x47b2ff['items']);},_0x4853ca=_0x5a8929=>{const _0x595993=_0x40e780;_0x2f9f06[_0x595993(0x3a9)](_0x5a8929)?(_0x23165e(_0x2f9f06[_0x595993(0x327)](_0x4a1af4=>_0x4a1af4!==_0x5a8929)),_0x264ccc([..._0x199bb6,_0x5a8929])):_0x199bb6[_0x595993(0x3a9)](_0x5a8929)?_0x264ccc(_0x199bb6[_0x595993(0x327)](_0x728bb0=>_0x728bb0!==_0x5a8929)):_0x264ccc([..._0x199bb6,_0x5a8929]);},_0x234e36=async()=>{const _0x448152=_0x40e780;let {tableFieldId:_0x2e468f,pivotTableId:_0x2177d4}=_0x47b2ff;if(_0x2e468f&&_0x2177d4)try{(_0x273258?await _0x273258(_0x199bb6,_0x19bb3b,_0x2f9f06):await _0x6f1ea4['executeCommand'](t[_0x448152(0x260)]['id'],{'unitId':_0x89c6c4,'subUnitId':_0x12b872,'pivotTableId':_0x2177d4,'tableFieldId':_0x2e468f,'items':_0x199bb6,'partialItems':_0x2f9f06,'isAll':_0x19bb3b}))&&_0x151f7b[_0x448152(0x68f)]&&_0x368ec0();}catch{}},_0x51b631=()=>{_0x368ec0();},_0x2dd54e=async()=>{const _0x17e2a3=_0x40e780;let {tableFieldId:_0x2fc4fe,pivotTableId:_0x480f28}=_0x47b2ff;if(_0x2fc4fe&&_0x480f28){_0x264ccc(_0x47b2ff['items']),_0x23165e([]);try{(_0x273258?await _0x273258(_0x47b2ff[_0x17e2a3(0x2fc)],!0x0,[],!0x0):await _0x6f1ea4[_0x17e2a3(0x2f1)](t[_0x17e2a3(0x260)]['id'],{'unitId':_0x89c6c4,'subUnitId':_0x12b872,'pivotTableId':_0x480f28,'tableFieldId':_0x2fc4fe,'items':_0x47b2ff[_0x17e2a3(0x2fc)],'partialItems':[],'isAll':!0x0,'clearAllFilters':!0x0}))&&_0x151f7b['current']&&_0x368ec0();}catch{}}},_0x35fa65=async _0xfb1cde=>{const _0x1cd46f=_0x40e780;let {tableFieldId:_0x17ce2e,pivotTableId:_0x1e7dbc}=_0x47b2ff;if(!_0x17ce2e||!_0x1e7dbc)return;let _0x2e81bc={'type':_0xfb1cde};try{(_0xc530a4?await _0xc530a4(_0x2e81bc):await _0x6f1ea4['executeCommand'](t[_0x1cd46f(0x204)]['id'],{'unitId':_0x89c6c4,'subUnitId':_0x12b872,'pivotTableId':_0x1e7dbc,'tableFieldId':_0x17ce2e,'info':_0x2e81bc}))&&_0x151f7b[_0x1cd46f(0x68f)]&&(_0x37c7d7(_0xfb1cde),_0x368ec0());}catch{}},_0x54e172=Ht(_0x947456,{'items':_0x47b2ff[_0x40e780(0x2fc)],'conditionFilter':_0x47b2ff[_0x40e780(0x515)]});async function _0x4a3c72(_0xffb3f1){const _0x58220c=_0x40e780;if(!_0x151f7b['current'])return!0x1;let _0x1393ef=_0xa76089?await _0xa76089(_0xffb3f1):await _0x6f1ea4[_0x58220c(0x2f1)](t[_0x58220c(0x6c7)]['id'],{'unitId':_0x89c6c4,'subUnitId':_0x12b872,'pivotTableId':_0x47b2ff[_0x58220c(0x1ec)],'tableFieldId':_0x47b2ff[_0x58220c(0x5df)],'filterInfo':_0xffb3f1});return _0x1393ef&&_0x151f7b['current']&&_0x368ec0(),_0x1393ef;}if(_0x232352){let _0x497c7f=_0x44d54c[_0x40e780(0x3e5)](_0x89c6c4),_0x30f3cc=_0x47b2ff['itemTypes'][_0x40e780(0x467)](_0x99ddb7=>_0x99ddb7===e[_0x40e780(0x334)]['date']),_0x2e8bd9=Number(_0x47b2ff['items'][_0x30f3cc]);return(0x0,d[_0x40e780(0x364)])(Zn,{'dateSystem':(_0x497c7f==null?void 0x0:_0x497c7f[_0x40e780(0x313)]())??n['DateSystem']['Date1900'],'defaultDate':Number[_0x40e780(0x5cc)](_0x2e8bd9)?_0x2e8bd9:void 0x0,'currentFilter':(0x0,e[_0x40e780(0x1ff)])(_0x102bab)?_0x102bab:void 0x0,'onConfirm':_0x4a3c72,'onCancel':()=>_0x7a2fa4(!0x1)});}return(0x0,d[_0x40e780(0x322)])(_0x40e780(0x2ca),{'dir':_0x13e999,'children':[_0x47b2ff[_0x40e780(0x36e)]&&(0x0,d[_0x40e780(0x364)])(s[_0x40e780(0x233)],{'className':_0x40e780(0x4f2),'onClick':()=>_0x7a2fa4(!0x0),'children':_0x33bfab['t']('sheets-pivot-ui.dateFilter.title')}),(0x0,d[_0x40e780(0x322)])('div',{'className':'univer-flex','children':[(0x0,d[_0x40e780(0x322)])(_0x40e780(0x2ca),{'className':(0x0,s['clsx'])(_0x40e780(0x1b4),s[_0x40e780(0x6b4)],{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x345004===e[_0x40e780(0x496)]['ascending']}),'onClick':()=>_0x35fa65(e[_0x40e780(0x496)][_0x40e780(0x442)]),'children':[(0x0,d['jsx'])(u[_0x40e780(0x630)],{}),_0x33bfab['t'](_0x40e780(0x2b7))]}),(0x0,d['jsxs'])(_0x40e780(0x2ca),{'className':(0x0,s[_0x40e780(0x4f8)])(_0x40e780(0x3a2),s[_0x40e780(0x6b4)],{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x345004===e[_0x40e780(0x496)][_0x40e780(0x6cd)]}),'onClick':()=>_0x35fa65(e[_0x40e780(0x496)][_0x40e780(0x6cd)]),'children':[(0x0,d[_0x40e780(0x364)])(u[_0x40e780(0x603)],{}),_0x33bfab['t'](_0x40e780(0x488))]})]}),(0x0,d[_0x40e780(0x364)])(_0x40e780(0x2ca),{'className':(0x0,s[_0x40e780(0x4f8)])(_0x40e780(0x491),s[_0x40e780(0x6b4)]),'children':(0x0,d[_0x40e780(0x322)])(_0x40e780(0x2ca),{'className':(0x0,s[_0x40e780(0x4f8)])(_0x40e780(0x2a7),s[_0x40e780(0x273)]),'children':[(0x0,d[_0x40e780(0x364)])(_0x40e780(0x2ca),{'className':_0x40e780(0x29f),'children':(0x0,d[_0x40e780(0x364)])(s[_0x40e780(0x1c1)],{'checked':_0x19bb3b,'onChange':_0xab4652,'indeterminate':!_0x19bb3b&&(_0x199bb6['length']>0x0||_0x2f9f06[_0x40e780(0x2f3)]>0x0),'children':_0x33bfab['t'](_0x40e780(0x309))})}),_0x47b2ff[_0x40e780(0x2fc)][_0x40e780(0x505)]((_0x483277,_0x6d20e0)=>{const _0xa675ea=_0x40e780;var _0x19cdb1,_0x5380e5;let _0x5425a9=_0x483277,_0x1d98aa=(_0x19cdb1=_0x47b2ff[_0xa675ea(0x6b5)])==null?void 0x0:_0x19cdb1[_0x483277],_0xb6bc79=(_0x5380e5=_0x47b2ff[_0xa675ea(0x1dc)])==null?void 0x0:_0x5380e5[_0x6d20e0];return _0x1d98aa===void 0x0?_0xb6bc79===e[_0xa675ea(0x334)]['blank']?_0x5425a9=_0x33bfab['t'](_0xa675ea(0x5d8)):_0xb6bc79===e['PivotDataFieldDataTypeEnum'][_0xa675ea(0x1c4)]&&(_0x5425a9=_0x5bdcf6?n['numfmt'][_0xa675ea(0x65d)](_0x5bdcf6,Number(_0x5425a9)):_0x5425a9):_0x5425a9=_0x1d98aa,(0x0,d[_0xa675ea(0x364)])(_0xa675ea(0x2ca),{'className':_0xa675ea(0x5e6),'children':(0x0,d['jsx'])(s[_0xa675ea(0x1c1)],{'checked':_0x199bb6[_0xa675ea(0x3a9)](_0x483277),'indeterminate':_0x2f9f06[_0xa675ea(0x3a9)](_0x483277),'onChange':()=>_0x4853ca(_0x483277),'contentClassName':_0xa675ea(0x5a8),'children':_0x5425a9})},_0x483277);})]})}),(0x0,d[_0x40e780(0x322)])(s[_0x40e780(0x521)],{'className':_0x40e780(0x396),'children':[(0x0,d[_0x40e780(0x364)])(_0x40e780(0x2ca),{'className':_0x40e780(0x3d5),'children':(0x0,d[_0x40e780(0x364)])(s['Button'],{'variant':'link','disabled':_0x54e172===_0x40e780(0x399),'onClick':_0x2dd54e,'children':_0x33bfab['t'](_0x40e780(0x24a))})}),(0x0,d['jsxs'])(s[_0x40e780(0x521)],{'className':'univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-3','children':[(0x0,d[_0x40e780(0x364)])(s[_0x40e780(0x233)],{'onClick':_0x51b631,'children':_0x33bfab['t'](_0x40e780(0x531))}),(0x0,d['jsx'])(s[_0x40e780(0x233)],{'variant':_0x40e780(0x5b8),'disabled':_0x4be6c4,'onClick':_0x234e36,'children':_0x33bfab['t'](_0x40e780(0x5d5))})]})]})]});}function $n({name:_0x48f40b,onConfirm:_0x358237,onCancel:_0x143eab}){const _0x3c17cf=_0x14e1ea;let _0x57330e=(0x0,i[_0x3c17cf(0x1e8)])(n['LocaleService']),_0x578a9b=(0x0,i[_0x3c17cf(0x391)])(_0x57330e['direction$'],_0x57330e[_0x3c17cf(0x4c7)]()),[_0x53766e,_0x5b48cc]=(0x0,f['useState'])(_0x48f40b),[_0x3e9510,_0x5edd6a]=(0x0,f['useState'])(!0x1),_0x155318=(0x0,f[_0x3c17cf(0x4a8)])(!0x1);return(0x0,d[_0x3c17cf(0x322)])(_0x3c17cf(0x2ca),{'className':_0x3c17cf(0x2e2),'dir':_0x578a9b,'children':[(0x0,d[_0x3c17cf(0x322)])(_0x3c17cf(0x21c),{'className':_0x3c17cf(0x1cb),'children':[_0x57330e['t'](_0x3c17cf(0x593)),(0x0,d[_0x3c17cf(0x364)])(s['Input'],{'value':_0x53766e,'onChange':_0x5b48cc})]}),(0x0,d['jsxs'])('div',{'className':_0x3c17cf(0x202),'children':[(0x0,d['jsx'])(s[_0x3c17cf(0x233)],{'onClick':_0x143eab,'children':_0x57330e['t']('sheets-pivot-ui.dialog.cancel')}),(0x0,d[_0x3c17cf(0x364)])(s[_0x3c17cf(0x233)],{'variant':_0x3c17cf(0x5b8),'disabled':!_0x53766e['trim']()||_0x3e9510,'onClick':async()=>{const _0x4b4662=_0x3c17cf;if(_0x53766e[_0x4b4662(0x5e9)]()&&!_0x155318[_0x4b4662(0x68f)]){_0x155318['current']=!0x0,_0x5edd6a(!0x0);try{await _0x358237(_0x53766e);}catch{}finally{_0x155318['current']=!0x1,_0x5edd6a(!0x1);}}},'children':_0x57330e['t']('sheets-pivot-ui.dialog.ok')})]})]});}const er='univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3\x20univer-text-sm';function tr({targetFieldName:_0x2e2f56,grouping:_0x4c10ce,defaults$:_0x4c1aeb,onConfirm:_0x222e70,onCancel:_0x17bb06}){const _0x5336e7=_0x14e1ea;let _0x30b60b=(0x0,i['useDependency'])(n[_0x5336e7(0x2a4)]),_0x4f5624=(0x0,i['useObservable'])(_0x30b60b[_0x5336e7(0x648)],_0x30b60b[_0x5336e7(0x4c7)]()),_0x59300a=(0x0,i[_0x5336e7(0x391)])(_0x4c1aeb),[_0xf39216,_0x50adda]=(0x0,f[_0x5336e7(0x53a)])((_0x4c10ce==null?void 0x0:_0x4c10ce[_0x5336e7(0x2e1)])??!0x0),[_0x5c834f,_0x1258d8]=(0x0,f['useState'])((_0x4c10ce==null?void 0x0:_0x4c10ce[_0x5336e7(0x1de)])??!0x0),[_0x4400dd,_0x383976]=(0x0,f[_0x5336e7(0x53a)])((_0x4c10ce==null?void 0x0:_0x4c10ce[_0x5336e7(0x2e1)])===!0x1?String(_0x4c10ce[_0x5336e7(0x2b6)]):void 0x0),[_0xe4098,_0x36ef96]=(0x0,f[_0x5336e7(0x53a)])((_0x4c10ce==null?void 0x0:_0x4c10ce['autoEnd'])===!0x1?String(_0x4c10ce['end']):void 0x0),[_0x3860ff,_0x843a91]=(0x0,f['useState'])(_0x4c10ce?String(_0x4c10ce[_0x5336e7(0x1e4)]):void 0x0),[_0x130f06,_0x572dc2]=(0x0,f[_0x5336e7(0x53a)])(!0x1),_0x32c845=(0x0,f[_0x5336e7(0x4a8)])(!0x1),_0x2bcc=_0x3bb7bf=>_0x3bb7bf===void 0x0||!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i[_0x5336e7(0x1e2)](_0x3bb7bf[_0x5336e7(0x5e9)]())?NaN:Number(_0x3bb7bf),_0x5f1ae0={'autoStart':_0xf39216,'autoEnd':_0x5c834f,'start':_0xf39216?_0x59300a==null?void 0x0:_0x59300a[_0x5336e7(0x2b6)]:_0x2bcc(_0x4400dd),'end':_0x5c834f?_0x59300a==null?void 0x0:_0x59300a['end']:_0x2bcc(_0xe4098),'interval':_0x3860ff===void 0x0||_0x3860ff[_0x5336e7(0x5e9)]()===''?(_0x59300a==null?void 0x0:_0x59300a[_0x5336e7(0x1e4)])??0x0:_0x2bcc(_0x3860ff)},_0x447a05=!!_0x59300a&&se(_0x5f1ae0),_0x1bd8ef=_0x49386f=>{const _0x3c2623=_0x5336e7;!_0x49386f&&_0x4400dd===void 0x0&&(_0x59300a==null?void 0x0:_0x59300a[_0x3c2623(0x2b6)])!==void 0x0&&_0x383976(String(_0x59300a[_0x3c2623(0x2b6)])),_0x50adda(_0x49386f);},_0x44a735=_0x3806d3=>{const _0x2dbb0d=_0x5336e7;!_0x3806d3&&_0xe4098===void 0x0&&(_0x59300a==null?void 0x0:_0x59300a['end'])!==void 0x0&&_0x36ef96(String(_0x59300a[_0x2dbb0d(0x3d0)])),_0x1258d8(_0x3806d3);};return(0x0,d[_0x5336e7(0x322)])('div',{'className':_0x5336e7(0x2e2),'dir':_0x4f5624,'children':[(0x0,d[_0x5336e7(0x364)])('div',{'className':_0x5336e7(0x3ea),'children':_0x2e2f56}),(0x0,d[_0x5336e7(0x322)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,d[_0x5336e7(0x364)])(s[_0x5336e7(0x1c1)],{'checked':_0xf39216,'onChange':_0x20f363=>_0x1bd8ef(!!_0x20f363),'children':_0x30b60b['t']('sheets-pivot-ui.numberGroup.autoStart')}),(0x0,d[_0x5336e7(0x322)])(_0x5336e7(0x21c),{'className':er,'children':[_0x30b60b['t'](_0x5336e7(0x6b8)),(0x0,d['jsx'])(s[_0x5336e7(0x495)],{'className':'univer-w-32','value':_0xf39216?String((_0x59300a==null?void 0x0:_0x59300a[_0x5336e7(0x2b6)])??''):_0x4400dd??'','disabled':_0xf39216,'onChange':_0x383976})]}),(0x0,d[_0x5336e7(0x364)])(s[_0x5336e7(0x1c1)],{'checked':_0x5c834f,'onChange':_0x8cb872=>_0x44a735(!!_0x8cb872),'children':_0x30b60b['t'](_0x5336e7(0x4e1))}),(0x0,d['jsxs'])('label',{'className':er,'children':[_0x30b60b['t'](_0x5336e7(0x620)),(0x0,d[_0x5336e7(0x364)])(s[_0x5336e7(0x495)],{'className':'univer-w-32','value':_0x5c834f?String((_0x59300a==null?void 0x0:_0x59300a[_0x5336e7(0x3d0)])??''):_0xe4098??'','disabled':_0x5c834f,'onChange':_0x36ef96})]}),(0x0,d[_0x5336e7(0x322)])(_0x5336e7(0x21c),{'className':er,'children':[_0x30b60b['t'](_0x5336e7(0x43d)),(0x0,d['jsx'])(s[_0x5336e7(0x495)],{'className':_0x5336e7(0x372),'value':_0x3860ff??String((_0x59300a==null?void 0x0:_0x59300a['interval'])??''),'placeholder':String((_0x59300a==null?void 0x0:_0x59300a[_0x5336e7(0x1e4)])??''),'onChange':_0x843a91})]})]}),(0x0,d[_0x5336e7(0x322)])('div',{'className':_0x5336e7(0x202),'children':[(0x0,d['jsx'])(s[_0x5336e7(0x233)],{'onClick':_0x17bb06,'children':_0x30b60b['t'](_0x5336e7(0x4aa))}),(0x0,d[_0x5336e7(0x364)])(s[_0x5336e7(0x233)],{'variant':_0x5336e7(0x5b8),'disabled':!_0x447a05||_0x130f06,'onClick':async()=>{const _0x22438f=_0x5336e7;if(_0x447a05&&!_0x32c845[_0x22438f(0x68f)]){_0x32c845[_0x22438f(0x68f)]=!0x0,_0x572dc2(!0x0);try{await _0x222e70(_0x5f1ae0);}catch{}finally{_0x32c845[_0x22438f(0x68f)]=!0x1,_0x572dc2(!0x1);}}},'children':_0x30b60b['t'](_0x5336e7(0x356))})]})]});}const nr=({handlePatternChange:_0x5ca363})=>{const _0x17c2f3=_0x14e1ea;let _0x54b6ef=(0x0,i['useDependency'])(n['LocaleService']);return(0x0,f[_0x17c2f3(0x5aa)])(()=>{_0x5ca363('');},[]),(0x0,d[_0x17c2f3(0x364)])('div',{'className':_0x17c2f3(0x251),'children':_0x54b6ef['t'](_0x17c2f3(0x1c9))});},rr=({originPattern:_0x257cbe,handlePatternChange:_0x9a83dc})=>{const _0x2395b5=_0x14e1ea;let _0x41308d=(0x0,i[_0x2395b5(0x1e8)])(n[_0x2395b5(0x2a4)]),_0x25d8d7=n[_0x2395b5(0x2ad)]['map'](_0x729bf0=>({'label':_0x729bf0,'value':_0x729bf0})),[_0x2faf28,_0x2283c8]=(0x0,f[_0x2395b5(0x53a)])(()=>kt(_0x257cbe||'',0x2)),[_0xee3e27,_0x3705a4]=(0x0,f[_0x2395b5(0x53a)])(()=>jt(_0x257cbe??'')||_0x25d8d7[0x0][_0x2395b5(0x320)]);return(0x0,f[_0x2395b5(0x5aa)])(()=>{_0x9a83dc(J('_(\x22'+_0xee3e27+'\x22*\x20#,##0'+(_0x2faf28>0x0?'.0':'')+'_)',_0x2faf28));},[]),(0x0,d[_0x2395b5(0x322)])(_0x2395b5(0x2ca),{'className':_0x2395b5(0x635),'children':[(0x0,d[_0x2395b5(0x322)])(_0x2395b5(0x2ca),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,d['jsxs'])('div',{'className':_0x2395b5(0x5ff),'children':[(0x0,d[_0x2395b5(0x364)])('div',{'className':_0x2395b5(0x660),'children':_0x41308d['t'](_0x2395b5(0x58f))}),(0x0,d[_0x2395b5(0x364)])(s[_0x2395b5(0x6cf)],{'className':_0x2395b5(0x59a),'value':_0x2faf28,'max':0x14,'min':0x0,'onChange':_0x3485f2=>{const _0x3d1276=_0x2395b5;let _0x58fafe=_0x3485f2??0x0;_0x2283c8(_0x58fafe),_0x9a83dc(J(_0x3d1276(0x5b4)+_0xee3e27+_0x3d1276(0x627)+(_0x58fafe>0x0?'.0':'')+'_)',_0x58fafe));}})]}),(0x0,d[_0x2395b5(0x322)])('div',{'className':_0x2395b5(0x5ff),'children':[(0x0,d['jsx'])(_0x2395b5(0x2ca),{'className':_0x2395b5(0x660),'children':_0x41308d['t'](_0x2395b5(0x69f))}),(0x0,d[_0x2395b5(0x364)])(s[_0x2395b5(0x2bd)],{'options':_0x25d8d7,'value':_0xee3e27,'onChange':_0x17520d=>{_0x3705a4(_0x17520d),_0x9a83dc(J('_(\x22'+_0x17520d+'\x22*\x20#,##0'+(_0x2faf28>0x0?'.0':'')+'_)',_0x2faf28));}})]})]}),(0x0,d[_0x2395b5(0x364)])('div',{'className':_0x2395b5(0x251),'children':_0x41308d['t'](_0x2395b5(0x6a1))})]});},ir=({originPattern:_0x10d937,handlePatternChange:_0x572d61})=>{const _0x10d0ce=_0x14e1ea;let _0x52634e=(0x0,i['useDependency'])(n[_0x10d0ce(0x2a4)]),_0xcb9ae8=n['currencySymbols'][_0x10d0ce(0x505)](_0x55c46a=>({'label':_0x55c46a,'value':_0x55c46a})),[_0x612a54,_0x5c9a31]=(0x0,f[_0x10d0ce(0x53a)])(()=>kt(_0x10d937||'',0x2)),[_0x178400,_0x475b26]=(0x0,f['useState'])(()=>jt(_0x10d937??'')||_0xcb9ae8[0x0][_0x10d0ce(0x320)]),_0x1c6ea9=pt[_0x10d0ce(0x505)](_0x4bcf1b=>({'label':_0x4bcf1b[_0x10d0ce(0x21c)](_0x178400),'value':_0x4bcf1b['suffix'](_0x178400),'color':_0x4bcf1b[_0x10d0ce(0x5b6)]})),[_0x35878a,_0x54fbd2]=(0x0,f['useState'])(()=>{const _0x466456=_0x10d0ce;var _0x4f57c9;return((_0x4f57c9=_0x1c6ea9['find'](_0x2d8fa6=>(0x0,n[_0x466456(0x247)])(_0x2d8fa6[_0x466456(0x320)],_0x10d937??'')))==null?void 0x0:_0x4f57c9['value'])||_0x1c6ea9[0x0][_0x466456(0x320)];});return(0x0,f[_0x10d0ce(0x5aa)])(()=>{_0x572d61(J(_0x35878a,_0x612a54));},[]),(0x0,d[_0x10d0ce(0x322)])('div',{'className':_0x10d0ce(0x635),'children':[(0x0,d[_0x10d0ce(0x322)])(_0x10d0ce(0x2ca),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between','children':[(0x0,d[_0x10d0ce(0x322)])(_0x10d0ce(0x2ca),{'className':_0x10d0ce(0x5ff),'children':[(0x0,d[_0x10d0ce(0x364)])(_0x10d0ce(0x2ca),{'className':_0x10d0ce(0x660),'children':_0x52634e['t'](_0x10d0ce(0x58f))}),(0x0,d[_0x10d0ce(0x364)])(s['InputNumber'],{'className':_0x10d0ce(0x59a),'value':_0x612a54,'max':0x14,'min':0x0,'onChange':_0x2569ed=>{_0x2569ed&&(_0x5c9a31(_0x2569ed),_0x572d61(J(_0x35878a,_0x2569ed)));}})]}),(0x0,d[_0x10d0ce(0x322)])(_0x10d0ce(0x2ca),{'className':_0x10d0ce(0x5ff),'children':[(0x0,d[_0x10d0ce(0x364)])(_0x10d0ce(0x2ca),{'className':_0x10d0ce(0x660),'children':_0x52634e['t']('sheets-pivot-ui.dialog.numfmt.currencyTypes')}),(0x0,d[_0x10d0ce(0x364)])(s[_0x10d0ce(0x2bd)],{'options':_0xcb9ae8,'value':_0x178400,'onChange':_0x205912=>{const _0x26840a=_0x10d0ce;_0x475b26(_0x205912);let _0x377484=pt[_0x26840a(0x505)](_0x4168e5=>({'label':_0x4168e5[_0x26840a(0x21c)](_0x205912),'value':_0x4168e5['suffix'](_0x205912),'color':_0x4168e5['color']}));_0x54fbd2(_0x377484[0x0][_0x26840a(0x320)]),_0x572d61(J(_0x377484[0x0][_0x26840a(0x320)],_0x612a54));}})]})]}),(0x0,d[_0x10d0ce(0x322)])('div',{'className':_0x10d0ce(0x50c),'children':[(0x0,d[_0x10d0ce(0x364)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x52634e['t'](_0x10d0ce(0x2ee))}),(0x0,d[_0x10d0ce(0x364)])(s['SelectList'],{'className':_0x10d0ce(0x4f1),'options':_0x1c6ea9,'value':_0x35878a,'onChange':_0x13947a=>{_0x54fbd2(_0x13947a),_0x572d61(J(_0x13947a,_0x612a54));}}),(0x0,d[_0x10d0ce(0x364)])(_0x10d0ce(0x2ca),{'className':'univer-mt-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x52634e['t']('sheets-pivot-ui.dialog.numfmt.currencyDesc')})]})]});},ar=({originPattern:_0x148f62,handlePatternChange:_0x1704e6})=>{const _0x2da856=_0x14e1ea;let _0x23ebc=(0x0,i['useDependency'])(n[_0x2da856(0x2a4)]),_0xd8e90c=dt['map'](_0x1b601b=>({'label':_0x1b601b['label'],'value':_0x1b601b[_0x2da856(0x40f)]})),[_0x482e22,_0x2ec310]=(0x0,f['useState'])(()=>{const _0x4e05b2=_0x2da856;if(_0x148f62){let _0x310a46=_0xd8e90c[_0x4e05b2(0x1ba)](_0xe2c7f6=>_0xe2c7f6['value']===_0x148f62);if(_0x310a46)return _0x310a46['value'];}return _0xd8e90c[0x0]['value'];});return(0x0,f[_0x2da856(0x5aa)])(()=>{_0x1704e6(_0x482e22);},[]),(0x0,d['jsx'])(_0x2da856(0x2ca),{'className':_0x2da856(0x635),'children':(0x0,d[_0x2da856(0x322)])(_0x2da856(0x2ca),{'className':_0x2da856(0x635),'children':[(0x0,d['jsx'])(_0x2da856(0x2ca),{'className':_0x2da856(0x660),'children':_0x23ebc['t'](_0x2da856(0x31f))}),(0x0,d[_0x2da856(0x364)])(_0x2da856(0x2ca),{'children':(0x0,d[_0x2da856(0x364)])(s[_0x2da856(0x6db)],{'className':_0x2da856(0x4f1),'options':_0xd8e90c,'value':_0x482e22,'onChange':_0x4874e5=>{_0x2ec310(_0x4874e5),_0x1704e6(_0x4874e5);}})}),(0x0,d['jsx'])(_0x2da856(0x2ca),{'className':_0x2da856(0x251),'children':_0x23ebc['t'](_0x2da856(0x4ca))})]})});},or=({originPattern:_0x519bfe,handlePatternChange:_0xfbd17})=>{const _0x3b372b=_0x14e1ea;let _0x32cea7=(0x0,i[_0x3b372b(0x1e8)])(n[_0x3b372b(0x2a4)]),[_0x1ce02d,_0x341df4]=(0x0,f['useState'])(()=>kt(_0x519bfe||'',0x0)),_0x5c8f05=ft['map'](_0x55bf83=>({'label':_0x55bf83[_0x3b372b(0x21c)],'value':_0x55bf83[_0x3b372b(0x40f)],'color':_0x55bf83[_0x3b372b(0x5b6)]})),[_0x13b5bd,_0xb8a528]=(0x0,f[_0x3b372b(0x53a)])(()=>{const _0x2bcb3a=_0x3b372b;let _0x527d09=_0x5c8f05['find'](_0x5c89d9=>(0x0,n[_0x2bcb3a(0x247)])(_0x5c89d9['value'],_0x519bfe||''));return(_0x527d09==null?void 0x0:_0x527d09['value'])||_0x5c8f05[0x0][_0x2bcb3a(0x320)];});return(0x0,f[_0x3b372b(0x5aa)])(()=>{_0xfbd17(J(_0x13b5bd,Number(_0x1ce02d||0x0)));},[]),(0x0,d[_0x3b372b(0x322)])(_0x3b372b(0x2ca),{'className':_0x3b372b(0x635),'children':[(0x0,d[_0x3b372b(0x364)])(_0x3b372b(0x2ca),{'className':_0x3b372b(0x396),'children':(0x0,d[_0x3b372b(0x322)])('div',{'className':_0x3b372b(0x5ff),'children':[(0x0,d[_0x3b372b(0x364)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x32cea7['t'](_0x3b372b(0x58f))}),(0x0,d[_0x3b372b(0x364)])(s[_0x3b372b(0x6cf)],{'className':'univer-box-border\x20univer-h-8','value':_0x1ce02d,'max':0x14,'min':0x0,'onChange':_0x5e2c4c=>{_0x5e2c4c&&(_0x341df4(_0x5e2c4c),_0xfbd17(J(_0x13b5bd,Number(_0x5e2c4c))));}})]})}),(0x0,d[_0x3b372b(0x322)])('div',{'className':'univer-mt-4','children':[(0x0,d[_0x3b372b(0x364)])(_0x3b372b(0x2ca),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x32cea7['t']('sheets-pivot-ui.dialog.numfmt.negativeNumberTypes')}),(0x0,d[_0x3b372b(0x364)])(s[_0x3b372b(0x6db)],{'className':_0x3b372b(0x4f1),'options':_0x5c8f05,'value':_0x13b5bd,'onChange':_0x1baf99=>{_0x341df4(kt(_0x1baf99,0x0)),_0xb8a528(_0x1baf99),_0xfbd17(_0x1baf99);}}),(0x0,d['jsx'])('div',{'className':_0x3b372b(0x251),'children':_0x32cea7['t']('sheets-pivot-ui.dialog.numfmt.thousandthPercentileDesc')})]})]});},sr=({unitId:_0x45085a,subUnitId:_0x4cf5b5,pivotTableId:_0x552ed8,tableFieldId:_0x489ab3,originPattern:_0xe0c63a,tableFieldInfo:_0x24c4c0,dataFieldInfo:_0xd2f73d})=>{const _0x35b05c=_0x14e1ea;let _0x547bd0=(0x0,i[_0x35b05c(0x1e8)])(n[_0x35b05c(0x2a4)]),_0x46fed5=(0x0,i['useDependency'])(i['IDialogService']),_0x185c43=_0x547bd0[_0x35b05c(0x4c7)](),_0x4e452e=(0x0,f[_0x35b05c(0x68c)])(()=>[{'label':_0x35b05c(0x1f3),'component':nr,'key':_0x35b05c(0x28b)},{'label':_0x35b05c(0x612),'component':rr,'key':'sheet.numfmt.accounting'},{'label':'sheets-pivot-ui.dialog.numfmt.currency','component':ir,'key':_0x35b05c(0x61d)},{'label':_0x35b05c(0x56d),'component':ar,'key':_0x35b05c(0x586)},{'label':'sheets-pivot-ui.dialog.numfmt.thousandthPercentile','component':or,'key':'sheet.numfmt.thousandthPercentile'}][_0x35b05c(0x505)](_0x173957=>({..._0x173957,'label':_0x547bd0['t'](_0x173957[_0x35b05c(0x21c)])})),[_0x547bd0]),_0x1a28a5=_0x4e452e[_0x35b05c(0x505)](_0x112e94=>({'label':_0x112e94[_0x35b05c(0x21c)],'value':_0x112e94[_0x35b05c(0x65c)]})),[_0x3e65bb,_0x4afe91]=(0x0,f[_0x35b05c(0x53a)])(()=>[Mt,Nt,Pt,It,Rt]['reduce']((_0x131103,_0x2d70f7,_0x49254a)=>_0x131103||(_0x2d70f7(_0xe0c63a??'')?_0x4e452e[_0x49254a]['key']:''),'')||_0x4e452e[0x0]['key']),[_0x19e206,_0x263d2d]=(0x0,f['useState'])(_0xe0c63a),_0x337321=_0x11f76d=>_0x263d2d(_0x11f76d),_0x405a21=_0x4ff6cd=>{_0x4afe91(_0x4ff6cd);},_0xbd0d5d=_0x25597f=>({'id':S,'title':{'title':_0x547bd0['t']('sheets-pivot-ui.fieldSettings')},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':x,'tableFieldId':_0x489ab3,'pivotTableId':_0x552ed8,'unitId':_0x45085a,'subUnitId':_0x4cf5b5,'tableFieldInfo':_0x24c4c0,'dataFieldInfo':_0xd2f73d,'key':_0x35b05c(0x1b2)+(_0x489ab3||''),'closeFn':()=>{_0x46fed5['close'](S);},'format':_0x25597f?_0x19e206:''},'onClose':()=>{const _0x2fac96=_0x35b05c;_0x46fed5[_0x2fac96(0x34d)](S);}}),_0x455a28=()=>{const _0x2b22e9=_0x35b05c;_0x46fed5['close'](w);let _0x1af5c6=_0xbd0d5d(!0x1);_0x46fed5[_0x2b22e9(0x566)](_0x1af5c6);};return(0x0,d[_0x35b05c(0x322)])('div',{'dir':_0x185c43,'children':[(0x0,d[_0x35b05c(0x364)])(_0x35b05c(0x2ca),{'className':_0x35b05c(0x414),'children':(0x0,d['jsxs'])(_0x35b05c(0x2ca),{'className':_0x35b05c(0x265),'onClick':_0x455a28,'children':[(0x0,d[_0x35b05c(0x364)])(u[_0x35b05c(0x60f)],{}),_0x547bd0['t']('sheets-pivot-ui.dialog.numfmt.fieldSetting')]})}),(0x0,d[_0x35b05c(0x364)])(_0x35b05c(0x2ca),{'className':_0x35b05c(0x3c8),'children':_0x547bd0['t'](_0x35b05c(0x2fd))}),(0x0,d['jsx'])(_0x35b05c(0x2ca),{'children':(0x0,d[_0x35b05c(0x364)])(s[_0x35b05c(0x2bd)],{'className':_0x35b05c(0x628),'value':_0x3e65bb,'options':_0x1a28a5,'onChange':_0xd50c90=>_0x405a21(_0xd50c90)})}),(0x0,d[_0x35b05c(0x322)])(_0x35b05c(0x2ca),{'children':[_0x3e65bb===_0x35b05c(0x28b)&&(0x0,d[_0x35b05c(0x364)])(nr,{'originPattern':_0xe0c63a,'handlePatternChange':_0x337321}),_0x3e65bb===_0x35b05c(0x565)&&(0x0,d['jsx'])(rr,{'originPattern':_0xe0c63a,'handlePatternChange':_0x337321}),_0x3e65bb===_0x35b05c(0x61d)&&(0x0,d[_0x35b05c(0x364)])(ir,{'originPattern':_0xe0c63a,'handlePatternChange':_0x337321}),_0x3e65bb===_0x35b05c(0x586)&&(0x0,d[_0x35b05c(0x364)])(ar,{'originPattern':_0xe0c63a,'handlePatternChange':_0x337321}),_0x3e65bb===_0x35b05c(0x231)&&(0x0,d['jsx'])(or,{'originPattern':_0xe0c63a,'handlePatternChange':_0x337321})]}),(0x0,d[_0x35b05c(0x322)])(s['ActionRow'],{'className':_0x35b05c(0x37b),'children':[(0x0,d[_0x35b05c(0x364)])(s[_0x35b05c(0x233)],{'onClick':_0x455a28,'children':_0x547bd0['t'](_0x35b05c(0x47a))}),(0x0,d[_0x35b05c(0x364)])(s[_0x35b05c(0x233)],{'className':'univer-ml-3\x20rtl:univer-ml-0\x20rtl:univer-mr-3','variant':_0x35b05c(0x5b8),'onClick':()=>{const _0x391e12=_0x35b05c;_0x46fed5[_0x391e12(0x34d)](w);let _0x3ac791=_0xbd0d5d(!0x0);_0x46fed5[_0x391e12(0x566)](_0x3ac791);},'children':_0x547bd0['t']('sheets-pivot-ui.dialog.numfmt.confirm')})]})]});};function cr(_0x5420f4){const _0xd9033=_0x14e1ea;var _0x21ad13,_0x24e1e4;let {scope:_0x15233b,report:_0x17d5b6,getCurrentReport:_0x3b8dd2,onChange:_0x352510}=_0x5420f4,_0xd3e3fd=(0x0,i[_0xd9033(0x1e8)])(n[_0xd9033(0x2a4)]),_0x3bb7c5=(0x0,i[_0xd9033(0x1e8)])(n[_0xd9033(0x461)]),_0xb1326b=(0x0,i[_0xd9033(0x1e8)])(t[_0xd9033(0x27e)]),_0xbadc1=(0x0,i[_0xd9033(0x1e8)])(n[_0xd9033(0x654)]),_0x1d8ea4=(0x0,i['useDependency'])(n[_0xd9033(0x699)]);(0x0,i[_0xd9033(0x391)])(_0xbadc1[_0xd9033(0x5b1)]);let [_0x2a91ff,_0x14205]=(0x0,f[_0xd9033(0x53a)])(!0x1),_0x114234=(0x0,f[_0xd9033(0x4a8)])(!0x1),_0x329966=(0x0,f[_0xd9033(0x4a8)])(!0x0),_0x269dc5=JSON[_0xd9033(0x43e)](_0x15233b),_0x4df806=(0x0,f['useRef'])(_0x269dc5);_0x4df806[_0xd9033(0x68f)]=_0x269dc5,(0x0,f[_0xd9033(0x5aa)])(()=>(_0x329966[_0xd9033(0x68f)]=!0x0,()=>{const _0x1b6303=_0xd9033;_0x329966[_0x1b6303(0x68f)]=!0x1;}),[]);let _0x26f89a=_0x2a91ff||!_0x17d5b6||((_0x21ad13=_0xbadc1[_0xd9033(0x3a3)](new r[(_0xd9033(0x4ff))](_0x15233b['unitId'])['id']))==null?void 0x0:_0x21ad13['value'])===!0x1||((_0x24e1e4=_0xbadc1['getPermissionPoint'](new r[(_0xd9033(0x6e9))](_0x15233b[_0xd9033(0x1c8)],_0x15233b['subUnitId'])['id']))==null?void 0x0:_0x24e1e4[_0xd9033(0x320)])===!0x1,_0x5d961c=async _0x164a25=>{const _0x57ac88=_0xd9033;if(_0x114234[_0x57ac88(0x68f)]||_0x26f89a||!_0x17d5b6||_0x17d5b6[_0x57ac88(0x44a)][_0x57ac88(0x38b)]===_0x164a25)return;_0x114234[_0x57ac88(0x68f)]=!0x0,_0x14205(!0x0);let _0x1429c9=n[_0x57ac88(0x38e)][_0x57ac88(0x3c5)](_0x17d5b6);try{if(!_0x164a25&&(0x0,e[_0x57ac88(0x44e)])(_0x17d5b6)){let _0x5ae910=await _0xb1326b['asyncInterceptor']['fetchThroughAsyncInterceptors'](t[_0x57ac88(0x4dc)])({'redos':[],'undos':[],'groups':[],'validate':()=>void 0x0},_0x15233b);if(!_0x329966[_0x57ac88(0x68f)]||_0x4df806['current']!==_0x269dc5||!await _0x3bb7c5['confirm']({'id':_0x57ac88(0x4d4),'title':{'title':_0xd3e3fd['t'](_0x57ac88(0x1e0))},'children':{'title':_0xd3e3fd['t']('sheets-pivot-ui.config.multipleFiltersClearWarning')},'cancelText':_0xd3e3fd['t'](_0x57ac88(0x4aa)),'confirmText':_0xd3e3fd['t'](_0x57ac88(0x356))}))return;_0x5ae910==null||_0x5ae910[_0x57ac88(0x1f0)]();}if(!_0x329966[_0x57ac88(0x68f)]||_0x4df806['current']!==_0x269dc5||!n[_0x57ac88(0x38e)][_0x57ac88(0x585)](_0x1429c9,_0x3b8dd2()))return;await _0x352510(_0x164a25);}catch(_0x15f73c){_0x1d8ea4[_0x57ac88(0x41e)]('[PivotFilterOptions]',_0x15f73c);}finally{_0x114234[_0x57ac88(0x68f)]=!0x1,_0x329966[_0x57ac88(0x68f)]&&_0x14205(!0x1);}};return(0x0,d[_0xd9033(0x322)])(_0xd9033(0x22d),{'className':_0xd9033(0x412),'children':[(0x0,d[_0xd9033(0x364)])(_0xd9033(0x2ca),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','children':_0xd3e3fd['t']('sheets-pivot-ui.config.filteringSection')}),(0x0,d[_0xd9033(0x322)])(_0xd9033(0x21c),{'className':_0xd9033(0x6d5),'children':[(0x0,d[_0xd9033(0x364)])(s[_0xd9033(0x1c1)],{'checked':(_0x17d5b6==null?void 0x0:_0x17d5b6[_0xd9033(0x44a)][_0xd9033(0x38b)])===!0x0,'disabled':_0x26f89a,'onChange':_0x519439=>_0x5d961c(!!_0x519439)}),(0x0,d['jsx'])(_0xd9033(0x55e),{'children':_0xd3e3fd['t'](_0xd9033(0x261))})]})]});}const lr=[{'label':_0x14e1ea(0x48b),'value':'false'},{'label':'sheets-pivot-ui.config.pageOverThenDown','value':_0x14e1ea(0x35c)}],ur=[{'label':_0x14e1ea(0x30f),'value':String(e['PivotLayoutTypeEnum'][_0x14e1ea(0x32b)])},{'label':_0x14e1ea(0x69e),'value':String(e[_0x14e1ea(0x354)][_0x14e1ea(0x1e6)])},{'label':_0x14e1ea(0x67c),'value':String(e['PivotLayoutTypeEnum'][_0x14e1ea(0x437)])}],dr=[{'label':_0x14e1ea(0x4bd),'value':String(e[_0x14e1ea(0x600)][_0x14e1ea(0x68d)])},{'label':_0x14e1ea(0x1f5),'value':String(e[_0x14e1ea(0x600)][_0x14e1ea(0x417)])}],fr=[{'label':_0x14e1ea(0x62b),'value':e[_0x14e1ea(0x41c)][_0x14e1ea(0x1b6)]},{'label':'sheets-pivot-ui.config.dateGroupingExcelLike','value':e[_0x14e1ea(0x41c)][_0x14e1ea(0x5c0)]}];function pr(_0x56558e){const _0x1169b7=_0x14e1ea;let {unitId:_0x464249,subUnitId:_0x12b02a,pivotTableId:_0x4eef3e}=_0x56558e,_0x5a8a32=(0x0,i[_0x1169b7(0x1e8)])(n[_0x1169b7(0x27a)]),_0x142e76=(0x0,i[_0x1169b7(0x1e8)])(n['IConfirmService']),_0x59ed0c=(0x0,i[_0x1169b7(0x1e8)])(n[_0x1169b7(0x699)]),_0x6a7e5c=(0x0,i[_0x1169b7(0x1e8)])(n['LocaleService']),_0x180705=(0x0,i['useDependency'])(t[_0x1169b7(0x6ad)]),_0x30577a=(0x0,f[_0x1169b7(0x68c)])(()=>_0x180705[_0x1169b7(0x32e)](_0x464249,_0x12b02a,_0x4eef3e)[_0x1169b7(0x3b1)]((0x0,o[_0x1169b7(0x4a2)])(0x0)),[_0x180705,_0x464249,_0x12b02a,_0x4eef3e]);(0x0,i[_0x1169b7(0x391)])(_0x30577a);let [_0xc2d6b,_0x5b26e6]=(0x0,f[_0x1169b7(0x53a)])(!0x1),_0x5db4b1=(0x0,f[_0x1169b7(0x4a8)])(!0x1),_0x2f146e=_0x180705[_0x1169b7(0x4c8)](_0x464249,_0x12b02a,_0x4eef3e),_0x5cfc31=(0x0,e[_0x1169b7(0x6be)])(_0x2f146e==null?void 0x0:_0x2f146e['fieldsConfig']['options']),[_0x541b1a,_0x15fe7c]=(0x0,f[_0x1169b7(0x53a)])(()=>{const _0x1b35bf=_0x1169b7;var _0x502aa0,_0x4f1def;let _0xe6a29b=_0x180705[_0x1b35bf(0x4c8)](_0x464249,_0x12b02a,_0x4eef3e),_0x7621b6=(_0xe6a29b==null||(_0x502aa0=_0xe6a29b[_0x1b35bf(0x30c)])==null?void 0x0:_0x502aa0['options'])??{};return{'showRowSubtotal':_0x7621b6[_0x1b35bf(0x5e4)]??!0x0,'showRowGrandTotal':_0x7621b6[_0x1b35bf(0x6a7)]??!0x0,'showColSubtotal':_0x7621b6[_0x1b35bf(0x1fb)]??!0x0,'showColGrandTotal':_0x7621b6[_0x1b35bf(0x692)]??!0x0,'pageWrap':_0x7621b6[_0x1b35bf(0x4bf)]??0x1,'pageOverThenDown':_0x7621b6['pageOverThenDown']??!0x1,'repeatRowLabels':_0x7621b6[_0x1b35bf(0x2d1)]??!0x1,'repeatColLabels':_0x7621b6[_0x1b35bf(0x33f)]??!0x1,'layout':(_0xe6a29b==null||(_0x4f1def=_0xe6a29b[_0x1b35bf(0x30c)])==null?void 0x0:_0x4f1def[_0x1b35bf(0x371)])??e[_0x1b35bf(0x354)][_0x1b35bf(0x32b)],'rowSubtotalPosition':_0x7621b6['rowSubtotalPosition']??e['PivotSubtotalPositionEnum']['top']};}),_0x30a7a9=_0x44bb50=>{const _0x3d0aaf=_0x1169b7;let _0x59c0c3={'unitId':_0x464249,'subUnitId':_0x12b02a,'pivotTableId':_0x4eef3e,'options':_0x44bb50};_0x5a8a32[_0x3d0aaf(0x2f1)](t['SetPivotOptionCommand']['id'],_0x59c0c3)[_0x3d0aaf(0x662)](_0x5d7f63=>_0x59ed0c['error'](_0x3d0aaf(0x3e8),_0x5d7f63)),_0x15fe7c(_0x1de76d=>({..._0x1de76d,..._0x44bb50}));},_0x13c25b=_0x40b70d=>{const _0x548e4b=_0x1169b7;let _0x3937b9={'unitId':_0x464249,'subUnitId':_0x12b02a,'pivotTableId':_0x4eef3e,'layout':_0x40b70d};_0x5a8a32[_0x548e4b(0x2f1)](t[_0x548e4b(0x688)]['id'],_0x3937b9)[_0x548e4b(0x662)](_0x533db2=>_0x59ed0c[_0x548e4b(0x41e)](_0x548e4b(0x3e8),_0x533db2)),_0x15fe7c(_0x35f110=>({..._0x35f110,'layout':_0x40b70d}));},_0x2f6071=async _0xf7c73b=>{const _0x30a04d=_0x1169b7;if(!(_0x5db4b1[_0x30a04d(0x68f)]||_0xf7c73b===_0x5cfc31)){_0x5db4b1[_0x30a04d(0x68f)]=!0x0,_0x5b26e6(!0x0);try{let _0x5e047a=_0x180705[_0x30a04d(0x4c8)](_0x464249,_0x12b02a,_0x4eef3e),_0x273179=_0x180705[_0x30a04d(0x353)](_0x464249,_0x4eef3e);if(!_0x5e047a||!_0x273179||(Object['values'](_0x273179[_0x30a04d(0x287)])[_0x30a04d(0x47b)](e[_0x30a04d(0x6b0)])||_0x273179['customFields'][_0x30a04d(0x47b)](e[_0x30a04d(0x6b0)]))&&!await _0x142e76[_0x30a04d(0x23e)]({'id':_0x30a04d(0x19f),'title':{'title':_0x6a7e5c['t'](_0x30a04d(0x453))},'children':{'title':_0x6a7e5c['t'](_0x30a04d(0x420))},'cancelText':_0x6a7e5c['t'](_0x30a04d(0x4aa)),'confirmText':_0x6a7e5c['t'](_0x30a04d(0x356))})||_0x180705[_0x30a04d(0x4c8)](_0x464249,_0x12b02a,_0x4eef3e)!==_0x5e047a||_0x180705[_0x30a04d(0x353)](_0x464249,_0x4eef3e)!==_0x273179||(0x0,e[_0x30a04d(0x6be)])(_0x5e047a['fieldsConfig'][_0x30a04d(0x44a)])===_0xf7c73b)return;await _0x5a8a32[_0x30a04d(0x2f1)](t['SetPivotOptionCommand']['id'],{'unitId':_0x464249,'subUnitId':_0x12b02a,'pivotTableId':_0x4eef3e,'options':{'dateGroupingMode':_0xf7c73b}});}catch(_0x14c78e){_0x59ed0c[_0x30a04d(0x41e)](_0x30a04d(0x3e8),_0x14c78e);}finally{_0x5db4b1[_0x30a04d(0x68f)]=!0x1,_0x5b26e6(!0x1);}}};return(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x6de),'children':[(0x0,d[_0x1169b7(0x364)])(cr,{'scope':{'unitId':_0x464249,'subUnitId':_0x12b02a,'pivotTableId':_0x4eef3e},'report':_0x2f146e==null?void 0x0:_0x2f146e['fieldsConfig'],'getCurrentReport':()=>{var _0x573135;return(_0x573135=_0x180705['getPivotTableConfig'](_0x464249,_0x12b02a,_0x4eef3e))==null?void 0x0:_0x573135['fieldsConfig'];},'onChange':_0x1e728a=>_0x5a8a32[_0x1169b7(0x2f1)](t[_0x1169b7(0x64c)]['id'],{'unitId':_0x464249,'subUnitId':_0x12b02a,'pivotTableId':_0x4eef3e,'options':{'allowMultipleFilters':_0x1e728a}})}),(0x0,d['jsxs'])(_0x1169b7(0x22d),{'children':[(0x0,d[_0x1169b7(0x364)])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x338),'children':_0x6a7e5c['t'](_0x1169b7(0x386))}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x652),'children':[(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x4a4),'children':[(0x0,d[_0x1169b7(0x364)])('span',{'className':_0x1169b7(0x55b),'children':_0x6a7e5c['t'](_0x1169b7(0x274))}),(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x2bd)],{'className':_0x1169b7(0x329),'value':_0x5cfc31,'options':fr['map'](_0x280ecd=>({..._0x280ecd,'label':_0x6a7e5c['t'](_0x280ecd[_0x1169b7(0x21c)])})),'disabled':_0xc2d6b,'onChange':_0x31b7ae=>_0x2f6071(_0x31b7ae)})]}),(0x0,d['jsxs'])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x4a4),'children':[(0x0,d[_0x1169b7(0x364)])('span',{'className':'univer-text-sm\x20univer-text-gray-600','children':_0x6a7e5c['t'](_0x1169b7(0x4be))}),(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x2bd)],{'className':_0x1169b7(0x329),'value':String(_0x541b1a[_0x1169b7(0x371)]),'options':ur['map'](_0x1dc1d5=>({..._0x1dc1d5,'label':_0x6a7e5c['t'](_0x1dc1d5[_0x1169b7(0x21c)])})),'onChange':_0x43c9b2=>_0x13c25b(Number(_0x43c9b2))})]}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x21c),{'className':_0x1169b7(0x1bb),'children':[(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x1c1)],{'checked':_0x541b1a['repeatRowLabels'],'disabled':_0x541b1a[_0x1169b7(0x371)]===e['PivotLayoutTypeEnum'][_0x1169b7(0x1e6)],'onChange':_0x1b527f=>_0x30a7a9({'repeatRowLabels':!!_0x1b527f})}),_0x6a7e5c['t']('sheets-pivot-ui.config.repeatRowLabels')]}),(0x0,d['jsxs'])('label',{'className':_0x1169b7(0x1bb),'children':[(0x0,d[_0x1169b7(0x364)])(s['Checkbox'],{'checked':_0x541b1a[_0x1169b7(0x33f)],'onChange':_0xa7f0fe=>_0x30a7a9({'repeatColLabels':!!_0xa7f0fe})}),_0x6a7e5c['t'](_0x1169b7(0x6ed))]})]})]}),(0x0,d[_0x1169b7(0x322)])('section',{'children':[(0x0,d[_0x1169b7(0x364)])(_0x1169b7(0x2ca),{'className':(0x0,s[_0x1169b7(0x4f8)])(_0x1169b7(0x338)),'children':_0x6a7e5c['t']('sheets-pivot-ui.config.totalsSection')}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x2ca),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x21c),{'className':_0x1169b7(0x1bb),'children':[(0x0,d['jsx'])(s['Checkbox'],{'checked':_0x541b1a[_0x1169b7(0x5e4)],'onChange':_0xb407ab=>_0x30a7a9({'showRowSubtotal':!!_0xb407ab})}),_0x6a7e5c['t'](_0x1169b7(0x54b))]}),_0x541b1a[_0x1169b7(0x371)]===e[_0x1169b7(0x354)]['outline']&&(0x0,d[_0x1169b7(0x322)])('div',{'className':_0x1169b7(0x4a4),'children':[(0x0,d[_0x1169b7(0x364)])(_0x1169b7(0x55e),{'className':'univer-text-sm\x20univer-text-gray-600','children':_0x6a7e5c['t'](_0x1169b7(0x1e9))}),(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x2bd)],{'className':_0x1169b7(0x329),'value':String(_0x541b1a['rowSubtotalPosition']),'options':dr['map'](_0x1111ad=>({..._0x1111ad,'label':_0x6a7e5c['t'](_0x1111ad[_0x1169b7(0x21c)])})),'onChange':_0xe61ab9=>_0x30a7a9({'rowSubtotalPosition':Number(_0xe61ab9)})})]}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x21c),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','children':[(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x1c1)],{'checked':_0x541b1a[_0x1169b7(0x6a7)],'onChange':_0x3bb995=>_0x30a7a9({'showRowGrandTotal':!!_0x3bb995})}),_0x6a7e5c['t'](_0x1169b7(0x24d))]}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x21c),{'className':_0x1169b7(0x1bb),'children':[(0x0,d[_0x1169b7(0x364)])(s['Checkbox'],{'checked':_0x541b1a['showColSubtotal'],'onChange':_0x34605a=>_0x30a7a9({'showColSubtotal':!!_0x34605a})}),_0x6a7e5c['t']('sheets-pivot-ui.config.showColSubtotal')]}),(0x0,d[_0x1169b7(0x322)])('label',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','children':[(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x1c1)],{'checked':_0x541b1a['showColGrandTotal'],'onChange':_0xcf8a00=>_0x30a7a9({'showColGrandTotal':!!_0xcf8a00})}),_0x6a7e5c['t']('sheets-pivot-ui.config.showColGrandTotal')]})]})]}),(0x0,d[_0x1169b7(0x322)])('section',{'children':[(0x0,d[_0x1169b7(0x364)])(_0x1169b7(0x2ca),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','children':_0x6a7e5c['t'](_0x1169b7(0x308))}),(0x0,d[_0x1169b7(0x322)])(_0x1169b7(0x2ca),{'className':_0x1169b7(0x412),'children':[(0x0,d[_0x1169b7(0x322)])('div',{'className':_0x1169b7(0x4a4),'children':[(0x0,d['jsx'])('span',{'className':'univer-text-sm\x20univer-text-gray-600','children':_0x6a7e5c['t']('sheets-pivot-ui.config.pageWrap')}),(0x0,d[_0x1169b7(0x364)])(s[_0x1169b7(0x6cf)],{'className':'univer-w-24','value':_0x541b1a['pageWrap'],'min':0x1,'max':0x14,'onChange':_0x3a9004=>{const _0x493fc7=_0x1169b7;let _0x4020dc=Number(_0x3a9004);Number[_0x493fc7(0x5cc)](_0x4020dc)&&_0x4020dc>=0x1&&_0x30a7a9({'pageWrap':_0x4020dc});}})]}),(0x0,d[_0x1169b7(0x322)])('div',{'className':_0x1169b7(0x4a4),'children':[(0x0,d[_0x1169b7(0x364)])(_0x1169b7(0x55e),{'className':_0x1169b7(0x55b),'children':_0x6a7e5c['t'](_0x1169b7(0x69c))}),(0x0,d['jsx'])(s[_0x1169b7(0x2bd)],{'className':_0x1169b7(0x329),'value':String(_0x541b1a[_0x1169b7(0x484)]),'options':lr[_0x1169b7(0x505)](_0x449479=>({..._0x449479,'label':_0x6a7e5c['t'](_0x449479['label'])})),'onChange':_0x4b214c=>_0x30a7a9({'pageOverThenDown':_0x4b214c===_0x1169b7(0x35c)})})]})]})]})]});}let Q=class extends n[_0x14e1ea(0x62e)]{constructor(_0x292515,_0x2a14b0,_0x2b5c93,_0x547473,_0x1011c5,_0x285926,_0x10c96f,_0x281620){const _0xd86374=_0x14e1ea;super(),this[_0xd86374(0x5ce)]=_0x292515,this[_0xd86374(0x597)]=_0x2a14b0,this[_0xd86374(0x370)]=_0x2b5c93,this[_0xd86374(0x423)]=_0x547473,this[_0xd86374(0x691)]=_0x1011c5,this[_0xd86374(0x407)]=_0x285926,this['_injector']=_0x10c96f,this[_0xd86374(0x4b6)]=_0x281620,W(this,_0xd86374(0x4df),void 0x0),W(this,'_pivotTablePanelVisible$',new o['Subject']()),W(this,_0xd86374(0x4b0),this[_0xd86374(0x539)]['asObservable']()),W(this,_0xd86374(0x35e),!0x1),W(this,_0xd86374(0x4ce),!0x1),this['_initPanelOpen'](),this['_initSheetChange']();}['setIsRangeSelectorFocus'](_0x5611f4){const _0x670ca6=_0x14e1ea;this[_0x670ca6(0x35e)]=_0x5611f4;}[_0x14e1ea(0x1ca)](_0x35e24c){const _0x7d9e7a=_0x14e1ea;this[_0x7d9e7a(0x4ce)]=_0x35e24c;}[_0x14e1ea(0x4a0)](_0x38f947){const _0x5479d7=_0x14e1ea;this[_0x5479d7(0x4df)]=_0x38f947;}[_0x14e1ea(0x53e)](){const _0x42a2e3=_0x14e1ea;this[_0x42a2e3(0x35e)]||this[_0x42a2e3(0x4ce)]||(this[_0x42a2e3(0x4a0)](void 0x0),this[_0x42a2e3(0x691)]['close'](v));}['_initPanelOpen'](){const _0x4e4606=_0x14e1ea;let _0x1dbcd5=this[_0x4e4606(0x597)][_0x4e4606(0x5d2)](n[_0x4e4606(0x548)][_0x4e4606(0x640)]);if(_0x1dbcd5){let _0x28dd09=_0x1dbcd5[_0x4e4606(0x253)];this[_0x4e4606(0x50a)]((0x0,o[_0x4e4606(0x2da)])(_0x28dd09,this[_0x4e4606(0x5ce)][_0x4e4606(0x1a5)])[_0x4e4606(0x54a)](()=>{const _0x517b5e=_0x4e4606;let _0x558041=this[_0x517b5e(0x5ce)][_0x517b5e(0x1a6)]();if(!_0x558041)return;let _0x3a735c=_0x558041[_0x558041[_0x517b5e(0x2f3)]-0x1];if(!_0x3a735c)return;let _0x1c0ca9=_0x3a735c['primary'];if(!_0x1c0ca9)return;let _0xa36ba3=this[_0x517b5e(0x597)][_0x517b5e(0x5d2)](n[_0x517b5e(0x548)][_0x517b5e(0x640)]),_0x54e229=_0xa36ba3==null?void 0x0:_0xa36ba3[_0x517b5e(0x2ed)]();if(!_0xa36ba3||!_0x54e229)return;let _0x31d82c=_0xa36ba3[_0x517b5e(0x37d)](),_0x1a45ed=_0x54e229[_0x517b5e(0x595)](),_0x420a30=this[_0x517b5e(0x370)]['getPivotTableIdByCell'](_0x31d82c,_0x1a45ed,_0x1c0ca9['startRow'],_0x1c0ca9['startColumn']);if(_0x420a30){var _0x40ccd4,_0x225d16;let _0x453c5a=(_0x40ccd4=this['_sheetsPivotTableAdaptorModel']['getPivotItemRenderInfoCache'](_0x31d82c,_0x1a45ed,_0x420a30))==null?void 0x0:_0x40ccd4[_0x517b5e(0x455)],_0x26c2b6=(0x0,t[_0x517b5e(0x1ac)])(_0x453c5a),_0x3cd7fd=(0x0,r[_0x517b5e(0x48c)])(this[_0x517b5e(0x45f)],_0x31d82c,_0x1a45ed,_0x26c2b6),_0x2e9536=(_0x225d16=this[_0x517b5e(0x4b6)][_0x517b5e(0x3a3)](new r[(_0x517b5e(0x647))](_0x31d82c,_0x1a45ed)['id']))==null?void 0x0:_0x225d16[_0x517b5e(0x320)];if(!_0x3cd7fd||!_0x2e9536)return;this['_setPivotTableId'](_0x420a30),this['_pivotTablePanelVisible$'][_0x517b5e(0x65a)](!0x0),this[_0x517b5e(0x423)]['executeCommand'](it['id'],{'pivotTableId':_0x420a30});}else this[_0x517b5e(0x53e)]();})),this['disposeWithMe'](this[_0x4e4606(0x423)][_0x4e4606(0x2e7)](_0x1413b1=>{const _0x488d10=_0x4e4606;_0x1413b1['id']===t[_0x488d10(0x3eb)]['id']&&_0x1413b1[_0x488d10(0x641)][_0x488d10(0x1ec)]===this['_pivotTableId']&&this[_0x488d10(0x691)][_0x488d10(0x34d)](v);}));}}[_0x14e1ea(0x56b)](){const _0xaea115=_0x14e1ea;let _0x1ed676=this[_0xaea115(0x597)]['getCurrentUnitOfType'](n[_0xaea115(0x548)][_0xaea115(0x640)]);_0x1ed676&&this[_0xaea115(0x50a)](_0x1ed676[_0xaea115(0x5eb)][_0xaea115(0x54a)](()=>{this['_sidebarService']['close']();})),this[_0xaea115(0x50a)](this[_0xaea115(0x691)][_0xaea115(0x573)][_0xaea115(0x54a)](_0xf2dae0=>{const _0x32fdf3=_0xaea115;if(_0xf2dae0['id']===_0x32fdf3(0x5dd)){let _0x392af0=!!_0xf2dae0[_0x32fdf3(0x325)];this[_0x32fdf3(0x539)][_0x32fdf3(0x65a)](_0x392af0),_0x392af0||this[_0x32fdf3(0x407)][_0x32fdf3(0x34d)](S);}})),this[_0xaea115(0x50a)](this['_dialogService'][_0xaea115(0x6e1)]()[_0xaea115(0x54a)](_0x57e974=>{const _0x24c55a=_0xaea115;let _0x244ac7=_0x57e974[_0x24c55a(0x1ba)](_0x2dd8d7=>_0x2dd8d7['id']===A);_0x244ac7&&_0x244ac7[_0x24c55a(0x566)]===!0x1&&this[_0x24c55a(0x407)][_0x24c55a(0x34d)](A);}));}};Q=K([G(0x0,(0x0,n['Inject'])(r['SheetsSelectionsService'])),G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x642)])),G(0x2,(0x0,n['Inject'])(t[_0x14e1ea(0x504)])),G(0x3,(0x0,n['Inject'])(n['ICommandService'])),G(0x4,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x33b)])),G(0x5,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x544)])),G(0x6,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x4cd)])),G(0x7,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x654)]))],Q);const mr=(0x0,f[_0x14e1ea(0x44f)])(null),hr=(0x0,f[_0x14e1ea(0x44f)])(null);function gr(_0x186173,_0x448dd4){const _0x5f4a1c=_0x14e1ea;return _0x186173===_0x448dd4?!0x0:!_0x186173||!_0x448dd4?!0x1:_0x186173[_0x5f4a1c(0x319)]===_0x448dd4['droppableId']&&_0x186173[_0x5f4a1c(0x34b)]===_0x448dd4['index'];}function _r(_0x27ff44){const _0x374e76=_0x14e1ea;if(!(_0x27ff44 instanceof Element))return null;let _0x2d49ce=_0x27ff44[_0x374e76(0x37a)](_0x374e76(0x243));return _0x2d49ce instanceof HTMLElement?_0x2d49ce:null;}function vr(_0x33a60b,_0x4e534b,_0x3c2a52,_0x119705){const _0x4dc639=_0x14e1ea;let _0x26b199=Array[_0x4dc639(0x2cf)](_0x33a60b[_0x4dc639(0x1d4)]('[data-univer-dnd-item=\x22true\x22]'))[_0x4dc639(0x327)](_0x1bb460=>{const _0x1f5547=_0x4dc639;let _0x5d1bf=_0x1bb460[_0x1f5547(0x3c3)][_0x1f5547(0x494)];return _0x5d1bf?_0x5d1bf!==_0x3c2a52[_0x1f5547(0x5de)]||_0x3c2a52[_0x1f5547(0x28e)]['droppableId']!==_0x119705:!0x1;});if(!_0x26b199[_0x4dc639(0x2f3)])return 0x0;for(let _0x5e22b2=0x0;_0x5e22b2<_0x26b199[_0x4dc639(0x2f3)]-0x1;_0x5e22b2++){let _0x2aa567=_0x26b199[_0x5e22b2][_0x4dc639(0x1f1)]();if(_0x4e534b<_0x2aa567[_0x4dc639(0x68d)]+_0x2aa567['height']/0x2)return _0x5e22b2;}let _0x5df92d=_0x26b199['length']-0x1,_0xb32020=_0x26b199[_0x5df92d][_0x4dc639(0x1f1)]();return _0x4e534b<_0xb32020[_0x4dc639(0x68d)]+_0xb32020[_0x4dc639(0x255)]*0.35?_0x5df92d:_0x26b199[_0x4dc639(0x2f3)];}function yr(){const _0x2ca493=_0x14e1ea;let _0x4e6d66=(0x0,f['useContext'])(mr);if(!_0x4e6d66)throw Error(_0x2ca493(0x39b));return _0x4e6d66;}function _0x16e1(){const _0x3781ac=['SheetsPivotTableAdaptorModel','map','univer-flex\x20univer-h-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border-none\x20univer-bg-gray-0\x20univer-px-3\x20univer-text-primary-600','position','pivot-value-filter-confirm','univer-mb-2\x20univer-flex\x20univer-h-5\x20univer-justify-between\x20univer-text-sm\x20univer-leading-5','disposeWithMe','getSubUnitPivotRenderCache','univer-mt-4','cloneNode','collectionChange$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-self-stretch\x20univer-leading-5','univer-mt-2\x20univer-h-5\x20univer-text-xs\x20univer-text-red-400','sheets-pivot-ui.removeField','max','univer-relative\x20univer-h-12\x20univer-flex-1\x20univer-border-0\x20univer-bg-transparent\x20univer-text-sm\x20univer-font-semibold','tap','conditionFilter','getInterceptPoints','getPivotTableCellData','info','checkedItems','univer-shrink-0','FromArray','defineProperty','sheets-pivot-ui.sheet','sheets-pivot-ui.sourceFieldDescription','sheets-pivot-ui.dialog.source.newSheet','\x22#,##0.00_);[Red]-\x22','ActionRow','general','draggingOver','_sheetSkeletonManagerService','http://www.w3.org/2000/svg','intersects','_targetRange','sheets-pivot-ui.showValuesAs.ok','BUTTON','Day','custom','univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-gap-3\x20univer-rounded-xl\x20univer-px-2','width','debounce','source-','permissionCheckWithRanges','sheets-pivot-ui.dialog.filter.cancel','Subject','getCoordRelativeToViewport','sheets-pivot-ui.manualGroup.groupTitle','sheets-pivot-ui.stdDevName','getMilliseconds','univer-flex\x20univer-h-[140px]\x20univer-flex-col\x20univer-items-center\x20univer-justify-center\x20univer-gap-1\x20univer-self-stretch\x20univer-px-2','M2\x2012.3661C2\x2012.0347\x202.26863\x2011.7661\x202.6\x2011.7661H9.24705C9.57842\x2011.7661\x209.84705\x2012.0347\x209.84705\x2012.3661V29.278C9.84705\x2029.6093\x209.57842\x2029.878\x209.24705\x2029.878H4C2.89543\x2029.878\x202\x2028.9825\x202\x2027.878V12.3661Z','_pivotTablePanelVisible$','useState','sheets-pivot-ui.dialog.source.existingSheet','h:mm','splice','_closePivotPanel','random','Provider','univer-text-sm','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-self-stretch','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','IDialogService','filterFields','Shape','Value','UniverInstanceType','univer-flex\x20univer-gap-3','subscribe','sheets-pivot-ui.config.showRowSubtotal','TextIcon','0\x2016px\x2016px','#274FEE','UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG','sheets-pivot-ui.dateGroup.year','moveToColumn','UpdatePivotTableSourceRangeCommand','Desc','ContextMenuGroup','greaterThanOrEqual','clientY','UniverMobileUIPlugin','_selectionControl','stdDev','lessThanOrEqual','univer-text-sm\x20univer-text-gray-600','translate(','dataTransfer','span','univer-p-4\x20univer-text-center\x20univer-text-sm\x20univer-text-gray-500','_controlMoving','Row','sheets-pivot-ui.addToRow','sheets-pivot-ui.msg.invalidSize','none','sheet.numfmt.accounting','open','sheets-pivot-ui.mobile.columnDesc','body','IFormatPainterService','sheets-pivot-ui.valueFilter.condition','_initSheetChange','stopPropagation','sheets-pivot-ui.dialog.numfmt.date','univer-max-w-[70vw]\x20univer-truncate','\x22#,##0.00_);\x22','Collapse','SetPivotCollapseCommand','sheets-pivot-ui.dateFilter.wholeDay','sidebarOptions$','remove','maxDecimals','WorksheetViewPermission','targetFieldName','_initMenuInterceptor','sheets-pivot-ui.showValuesAs.cancel','UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG_ID','InsertColCommand','getSubUnitPivotMatrix','DATA','_initSkeleton','sheets-pivot-ui.showValuesAs.percentOfRowTotal','7355532iqweGm','sheets-pivot-ui.showValuesAs.baseField','sheets-pivot-ui.mobile.moveToFilter','topCount','dateNotEqual','diffValue','sheet.numfmt.date','size','hiddenFields','createInstance','level','sheets-pivot-ui.dateFilter.equal','UniverSheetsPlugin','reduce','univer-min-h-0\x20univer-flex-1','sheets-pivot-ui.dialog.numfmt.decimalPlaces','draggingId','IMenuManagerService','blank','sheets-pivot-ui.manualGroup.name','MenuItemType','getSheetId','moveUp','_univerInstanceService','38944BRQLpr','sheets-pivot-ui.perform.confirm','univer-box-border\x20univer-h-8','_messageService','isolateTextForBidiContext','topPercent','dateGroupContext','bottomCount','univer-mb-2','IConfigService','MM-dd','pointerup','21.9067','MergeCellController','setControlExtensionDisable','getValue','univer-max-w-[200px]\x20univer-truncate','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-900\x20dark:!univer-text-gray-0','useEffect','rename','left','menu','removeObject','unsubscribe','startsWith','permissionPointUpdate$','subscribeEvent','sheets-pivot-ui.subtotal.countNums','_(\x22','accounting','color','SearchIcon','primary','checked','M4.99957\x201.875C2.84556\x201.875\x201.67491\x204.3932\x203.06336\x206.04001L11.5946\x2016.1587V26.4187C11.5946\x2027.4582\x2012.2298\x2028.3922\x2013.1966\x2028.7741L16.1601\x2029.9449C17.8221\x2030.6015\x2019.6232\x2029.3766\x2019.6232\x2027.5895V16.1587L28.1544\x206.04C29.5428\x204.3932\x2028.3722\x201.875\x2026.2182\x201.875H4.99957Z','sheet.operation.set-pivot-date-group','-9999px','sheets-pivot-ui.subtotal.sum','greaterThan','sheets-pivot-ui.dateFilter.to','ExcelLike','numfmt','auto','red','decorate','fieldDataType','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','sheets-pivot-ui.subtotal.max','addObjects','_sheetsPivotTableService','SheetPrintInterceptorService','sheets-pivot-ui.dateGroup.groupBy','isFinite','ContextMenuPosition','_sheetsSelectionsService','setTimeout','dataFieldType','sheets-pivot-ui.dialog.fieldName','getCurrentUnitOfType','projection','mode','sheets-pivot-ui.dialog.filter.confirm','sourceFieldId','UniverSheetsMobileUIPlugin','sheets-pivot-ui.dialog.filter.blank','selection','_skeletonManagerService','Draggable','valueBetween','UNIVER_SHEET_PIVOT_PANEL_ID','draggableId','tableFieldId','dateOlderThanOrEqual','slice','item:','generateSetRangeValueMutations','showRowSubtotal','sheet.pivot.context-menu.date-group','univer-mb-1\x20univer-box-border\x20univer-h-7\x20univer-py-1\x20univer-pl-[22px]\x20univer-pr-1\x20univer-text-sm\x20rtl:univer-pl-1\x20rtl:univer-pr-[22px]','MovePivotFieldCommand','Plugin','trim','NumberGroupDefaults','sheetDisposed$','sheets-pivot-ui.dateGroup.daysInterval','univer-w-24','SetCellEditVisibleOperation','innerRef','sheets-pivot-ui.showValuesAs.percentOfColumnTotal','1,235)','partialItems','MOBILE_CONTEXT_MENU','row','下午1:30','ComponentManager','getSheetBySheetName','onPointerUp$','_initButtonRender','COL_HEADER','getPivotAppliedRanges','SetPivotExcelDateGroupCommand','sheets-pivot-ui.dateGroup.hourMinute','startY','univer-w-[136px]','PivotSubtotalPositionEnum','16px\x2016px\x200','UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG_ID','DescendingIcon','univer-overflow-auto','sheets-pivot-ui.valueFilter.between','A/P\x20h:mm:ss','setShapeProps','Inject','_registerCommands','menuItemFactory','split','Month','sheets-pivot-ui.valueFilter.cancel','RangeSelector','ArrowLeftIcon','1930/08/05','0px','sheets-pivot-ui.dialog.numfmt.accounting','_buttonShapes','UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL_ID','setDragImage','sheets-pivot-ui.config.repeatRowLabels','sheets-pivot-ui.rowDesc','touchDependencies','univer-box-border\x20univer-h-full\x20univer-px-2','sheets-pivot-ui.dateGroup.title','_clearButtons','show','sheet.numfmt.currency','field','constructor','sheets-pivot-ui.numberGroup.end','\x22#,##0.00_);-\x22','getStyles','sheets-pivot-ui.perform.cancel','subtle','DateSystem','Optional','\x22*\x20#,##0','univer-w-full','CheckMarkIcon','994QGGeuF','sheets-pivot-ui.config.dateGroupingLegacy','getCurrentLastSelection','SHEET_PIVOT_TABLE_PLUGIN','Disposable','_componentManager','AscendingIcon','sheets-pivot-ui.dialog.format','Column','sheets-pivot-ui.dateGroup.hour','sheets-pivot-ui.dateGroup.day','univer-mt-5','getColumnCount','item-or-relative','UniverRenderEnginePlugin','sheets-pivot-ui.dateGroup.minute','UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG','sheet.operation.set-pivot-number-group','Fragment','bind','concat','univer-h-40\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-rounded-lg','UNIVER_SHEET','params','IUniverInstanceService','selectedGroupId','values','footer','month','WorksheetPivotTablePermission','direction$','itemKey','sheets-pivot-ui.showValuesAs.rankDescending','decimal','SetPivotOptionCommand','sourceRangeInfo','sheets-pivot-ui.showValuesAs.index','sheets-pivot-ui.noMatchingFields','positionSheetName','rowSubtotalPosition','univer-flex\x20univer-flex-col\x20univer-gap-2','drawCollapse','IPermissionService','_hovered','InsertRowCommand','PivotShowAsBaseItemTypeEnum','sheets-pivot-ui.searchFieldPlaceholder','sheets-pivot-ui.addToFilter','next','pointerType','key','format','setIsRangeSelectorFocus','getPivotTableRangeInfo','univer-mb-2\x20univer-text-sm\x20univer-font-medium','mouse','catch','operator','sheets-pivot-ui.mobile.moveToColumn','PivotTableValuePositionEnum','_permissionController','percentOfColumnTotal','currentFilter','measure','isManualPivotFilter','MoveRangeCommand','RemovePivotTableCommand','other','sheet.operation.set-pivot-value-filter','asyncInterceptor','univer-group\x20univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-flex-row\x20univer-items-center\x20univer-rounded-md\x20univer-px-1\x20univer-py-2\x20univer-leading-4\x20univer-transition-all\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','dateType','PivotSubtotalTypeEnum','sum','excelSerialToDateTimeParts','\x22#,##0.00)','UNIVER_SHEET_PIVOT_FIELD_NUMFMT','SetPivotDateGroupCommand','translate','time','M5.51638\x202.58693C5.23363\x201.81542\x204.14248\x201.81543\x203.85973\x202.58693L2.13245\x207.29995C2.03185\x207.57443\x202.17281\x207.87849\x202.4473\x207.97909C2.72178\x208.07969\x203.02584\x207.93872\x203.12644\x207.66424L3.64346\x206.25351L3.64504\x206.25351H5.73266L6.24968\x207.66424C6.35027\x207.93872\x206.65433\x208.07969\x206.92882\x207.97909C7.2033\x207.87849\x207.34426\x207.57443\x207.24367\x207.29995L5.51638\x202.58693ZM5.34467\x205.19487L4.68806\x203.40325L4.03144\x205.19487H5.34467Z','fieldset','sheets-pivot-ui.config.layoutOutline','sheets-pivot-ui.dateGroup.autoEnd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sheets-pivot-ui.valueFilter.topPercent','RadioGroup','RangeProtectionPermissionEditPoint','setCursor','setData','univer-my-1\x20univer-text-xs\x20univer-text-red-500','univer-mb-4\x20univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','sheet.operation.open-pivot-table-range-selector-panel','product','SetPivotLayoutCommand','univer-relative\x20univer-h-full\x20univer-overflow-y-auto','univer-flex\x20univer-flex-1\x20univer-gap-2\x20univer-text-sm\x20rtl:univer-flex-row-reverse','19088828VvHfEy','useMemo','top','toLocaleLowerCase','current','bdi','_sidebarService','showColGrandTotal','dragHandleProps','\x22#,##0.00','startColumn','M1.28069\x204.85444C0.842195\x204.33435\x201.21191\x203.53906\x201.89218\x203.53906H8.59333C9.2736\x203.53906\x209.64331\x204.33435\x209.20482\x204.85443L6.51052\x208.05006V11.6601C6.51052\x2012.2245\x205.94174\x2012.6113\x205.41683\x2012.404L4.48092\x2012.0342C4.1756\x2011.9136\x203.97498\x2011.6186\x203.97498\x2011.2903V8.05006L1.28069\x204.85444Z','removeEventListener','GripVerticalIcon','ILogService','_initControl','univer-flex\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200','sheets-pivot-ui.config.pageDirection','_closeChildDialogs','sheets-pivot-ui.config.layoutCompact','sheets-pivot-ui.dialog.numfmt.currencyTypes','percentRunningTotal','sheets-pivot-ui.dialog.numfmt.accountingDesc','08-05','univer-text-sm\x20univer-text-gray-500','pointerId','sheet.pivot.context-menu.show-data-as','ALL','showRowGrandTotal','sheets-pivot-ui.dateGroup.yearMonthDate','px,\x20','_moveStartRange','IconManager','getFormatInfo','SheetsPivotTableConfigModel','univer-mb-2\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium','sheets-pivot-button-','isDateGroupFieldJSON','univerDndDropDisabled','Error','sheet.operation.set-pivot-manual-group','borderClassName','itemLabels','IMEInputCommand','_renderManagerService','sheets-pivot-ui.numberGroup.start','SheetsPivotRPCService','univer-inline-block\x20univer-align-top','Rectangle','dateBetween','MobileSelect','getPivotDateGroupingMode','notEqual','0.9','sheets-pivot-ui.showValuesAs.runningTotal','vertical','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','currentTarget','runningTotal','DatePicker','SetPivotDateFilterCommand','isSingleCellSelection','EMPTY','defaultNormalField','parentFieldOnly','addClipboardHook','descending','1,234.56','InputNumber','name','univer-h-12\x20univer-w-full','getMonth','strokeStyle','register','univer-flex\x20univer-items-start\x20univer-gap-2\x20univer-text-sm','univer-flex\x20univer-flex-col\x20univer-gap-5','UNIVER_SHEET_PIVOT_FIELD_SETTING','CalendarIcon','getColorFromTheme','varp','SelectList','FilterSingle','FilteredSortDesc','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','config','sheets-pivot-ui.mobile.moveUp','getDialogs$','UpdatePivotFieldSettingCommand','M5.5165\x202.58693C5.23375\x201.81542\x204.1426\x201.81543\x203.85985\x202.58693L2.13257\x207.29995C2.03197\x207.57443\x202.17294\x207.8785\x202.44742\x207.97909C2.7219\x208.07969\x203.02596\x207.93872\x203.12656\x207.66424L3.64358\x206.25351L3.64516\x206.25351H5.73278L6.2498\x207.66424C6.35039\x207.93872\x206.65446\x208.07969\x206.92894\x207.97909C7.20342\x207.8785\x207.34438\x207.57443\x207.24379\x207.29995L5.5165\x202.58693ZM5.34479\x205.19487L4.68818\x203.40325L4.03156\x205.19487H5.34479Z','positionRange','sheets-pivot-ui.valueFilter.dialogTitle','sheets-pivot-ui.row','droppableProps','collection','WorksheetFilterPermission','sheets-pivot-ui.dateFilter.date','_selectionRenderService','sheets-pivot-ui.dateFilter.failed','sheets-pivot-ui.config.repeatColLabels','tableFieldInfo','SetPivotValueFilterCommand','fixed','valueFields','clearTimeout','isPercent','1,235','toString','univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md','isPivotTableFilterRestrictive','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3\x20univer-text-sm','onPointerDown$','pluginName','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-0\x20dark:hover:!univer-bg-gray-700','sheet-pivot.confirm.change-date-grouping-mode','FilterPartial','sheets-pivot-ui.showValuesAs.percentDifferenceFrom','FilterNoneSortDesc','object','下午1:30:30','selectionMoveEnd$','getCurrentSelections','sheets-pivot-ui.minName','_cellHeight','dateEqual','dispose','sheets-pivot-ui.configPanel','unionPivotViewRange','takeUntil','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','dateNotBetween','_scenePointerUpSubscribe','\x22#,##0.00_);[Red](\x22','field-setting-','Tooltip','univer-flex\x20univer-h-8\x20univer-w-[140px]\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-l-md\x20univer-text-center\x20univer-text-sm\x20hover:univer-bg-gray-100\x20rtl:univer-rounded-l-none\x20rtl:univer-rounded-r-md\x20dark:hover:!univer-bg-gray-700','sheets-pivot-ui.manualGroup.renameTitle','Legacy','2786607LBxqNh','isBetween','moveDown','find','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','PositionType','rangeType','excelLike','SUBITEMS','CommandType','Checkbox','pbt','join','date','pivot-format-painter-hook','sheets-pivot-ui.value','_defaultOverride','unitId','sheets-pivot-ui.dialog.numfmt.generalDesc','setIsRangeSelector2Focus','univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-text-sm','{0}','SheetInterceptorService','Radio','rankAscending','Filter','DEFAULT','20px\x2024px\x200','requiresParameters','querySelectorAll','interceptor','sheets-pivot-ui.varName','#,##0.00_);[Red]#,##0.00','13:30','univer-text-xs','subtotal','sheets-pivot-ui.showValuesAs.differenceFrom','itemTypes','sheets-pivot-ui.filterDesc','autoEnd','univer-mt-4\x20univer-flex\x20univer-h-[calc(100%-16px)]\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','sheets-pivot-ui.config.multipleFiltersTitle','sheets-pivot-ui.mobile.filterDesc','test','datetime','interval','_getPivotAppliedRanges','compact','seconds','useDependency','sheets-pivot-ui.config.rowSubtotalPosition','sheets-pivot-ui.dateGroup.yearMonth','percentOfParentRowTotal','pivotTableId','countNums','sheets-pivot-ui.dateFilter.beforeOrEqual','percentOf','validate','getBoundingClientRect','move','sheets-pivot-ui.dialog.numfmt.general','addObject','sheets-pivot-ui.config.rowSubtotalBottom','_initListener','baseFieldId','#,##0.00_);#,##0.00','offsetX','useContext','showColSubtotal','RemoveRowCommand','M2.69779\x2010.0113C2.40546\x2010.0113\x202.16847\x209.77429\x202.16847\x209.48196C2.16847\x209.18962\x202.40546\x208.95264\x202.69779\x208.95264H6.67804C6.89213\x208.95264\x207.08514\x209.0816\x207.16707\x209.2794C7.249\x209.47719\x207.20371\x209.70486\x207.05233\x209.85624L3.97569\x2012.9329H6.67804C6.97038\x2012.9329\x207.20736\x2013.1699\x207.20736\x2013.4622C7.20736\x2013.7545\x206.97038\x2013.9915\x206.67804\x2013.9915H2.69779C2.4837\x2013.9915\x202.29069\x2013.8626\x202.20876\x2013.6648C2.12684\x2013.467\x202.17212\x2013.2393\x202.32351\x2013.0879L5.40015\x2010.0113H2.69779Z','sheets-pivot-ui.showValuesAs.baseItem','isPivotDateFilter','getCoordByOffset','floor','univer-flex\x20univer-justify-end\x20univer-gap-3','pivot-value-filter-clear','SetPivotSortCommand','grouping','sheets-pivot-ui.multipleValue','settings','invalidSelection','column','sheets-pivot-ui.sourceRangePlaceholder','univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-px-2','registerRenderModule','UniverSheetsPivotTablePlugin','isArray','sheets-pivot-ui.countName','sheets-pivot-ui.dialog.numfmt.confirm','UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG','valueNotEqual','sheets-pivot-ui.valueFilter.topCount','sheets-pivot-ui.sumName','mapPivotSheetColumn','univer-w-40','A/P\x20h:mm','getIntersectsPivotTable','realContain','2.2793','toDisposable','label','_cellWidth','univer-w-4\x20univer-text-base\x20univer-text-primary-600','getTextInfo','currency','legend','valueEqual','univer-w-[14px]\x20univer-text-sm\x20univer-text-gray-200','unit','sheets-pivot-ui.title','_contextMenuController','univer-h-5\x20univer-text-sm\x20univer-text-red-400','round','_pivotParams','auditTime','Quarter','onFocusChange','section','colHeaderMap','componentKey','univer-truncate','sheet.numfmt.thousandthPercentile','_openPivotActionPanel','Button','_initRowColOperationCheck','startWith','ManualGroupMembers','sheets-pivot-ui.dateFilter.after','getHours','univer-flex\x20univer-flex-wrap\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','baseItemMode','evenodd','sheets-pivot-ui.perform.tips','_initUIInterceptListener','confirm','sheets-pivot-ui.stdDevpName','_sheetPermissionCheckController','(1,235)','differenceFrom','[data-univer-dnd-droppable-id]','univer-truncate\x20univer-text-xs\x20univer-text-gray-500','getCellMatrix','sheets-pivot-ui.dateGroup.autoStart','isPatternEqualWithoutDecimal','pointermove','sheets-pivot-ui.dateFilter.afterOrEqual','sheets-pivot-ui.dialog.filter.clearFilter','buttonType','getScrollXYInfoByViewport','sheets-pivot-ui.config.showRowGrandTotal','gray.50','setFullYear','GrandTotal','univer-mt-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-600\x20dark:!univer-text-gray-200','lower','activeSheet$','startRow','height','sheets-pivot-ui.varpName','M2\x204.0863C2\x202.98173\x202.89543\x202.0863\x204\x202.0863H9.24705C9.57842\x202.0863\x209.84705\x202.35493\x209.84705\x202.6863V8.73981C9.84705\x209.07118\x209.57842\x209.33981\x209.24705\x209.33981H2.6C2.26863\x209.33981\x202\x209.07118\x202\x208.73981V4.0863Z','univer-text-sm\x20univer-font-medium\x20univer-leading-5\x20univer-text-gray-900','sheets-pivot-ui.dateFilter.between','_registerComponents','text/plain','cellHeight','square','prototype','UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG','SetPivotFilterCommand','sheets-pivot-ui.config.allowMultipleFilters','percentOfParentColumnTotal','forEach','offsetY','univer-mb-5\x20univer-flex\x20univer-h-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-text-base\x20univer-font-medium\x20univer-leading-6','univer-text-primary-600','ThemeService','_pivotSelectionMoveShape','showDataAs','RibbonDataGroup','AddWorksheetMergeMutation','NumberIcon','sheets-pivot-ui.dateGroup.monthDate','number','redos','sheets-pivot-ui.subtotal.min','sheet.operation.open-pivot-table-panel','ISheetSelectionRenderService','scrollbarClassName','sheets-pivot-ui.config.dateGroupingMode','Second','FilteredSortAsc','stdDevp','sheets-pivot-ui.dateFilter.from','Droppable','ICommandService','currentLocale$','PivotExcelDateGroupUnit','M3.30363\x203C2.79117\x203\x202.51457\x203.60097\x202.84788\x203.99024L6.8\x208.60593V12.5662C6.8\x2012.7184\x206.8864\x2012.8575\x207.02289\x2012.9249L8.76717\x2013.7863C8.96655\x2013.8847\x209.2\x2013.7396\x209.2\x2013.5173V8.60593L13.1521\x203.99024C13.4854\x203.60097\x2013.2088\x203\x2012.6964\x203H3.30363Z','SheetsPivotTableService','_menuManagerService','replace','onPointerEnter','univer-text-gray-500','PivotFilterOptions','isDraggingOver','mapPivotSheetRange','draggableProps','fields','SheetsSelectionsService','isAll','preventDefault','sheet.numfmt.general','generateHexNumber','M12.2637\x202.6863C12.2637\x202.35493\x2012.5323\x202.0863\x2012.8637\x202.0863H27.9702C29.0748\x202.0863\x2029.9702\x202.98173\x2029.9702\x204.0863V8.73627C29.9702\x209.06764\x2029.7016\x209.33627\x2029.3702\x209.33627H12.8637C12.5323\x209.33627\x2012.2637\x209.06764\x2012.2637\x208.73627L12.2637\x202.6863Z','source','univer-flex\x20univer-flex-col\x20univer-gap-1','[PivotPanel]','_localeService','bottomPercent','string','univer-max-h-[40vh]\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-1\x20dark:!univer-bg-gray-800','\x22#,##0.00_);[Red]\x22','dragover','NORMAL','_pivotButtonShapesArr','sheets-pivot-ui.dialog.numfmt.currency','SheetSkeletonManagerService','Subtotal','sheets-pivot-ui.dateGroup.start','sheets-pivot-ui.maxName','onPointerMove$','univer-mb-1\x20univer-box-border\x20univer-h-7\x20univer-py-[5px]\x20univer-pl-[22px]\x20univer-pr-1\x20univer-text-sm\x20rtl:univer-pl-1\x20rtl:univer-pr-[22px]','getSubUnitPivotConfigs','getCurrentSkeleton','transformByState','sheets-pivot-ui.showValuesAs.normal','LocaleService','New','fillStyle','univer-h-full\x20univer-overflow-y-auto','endColumn','sheets-pivot-ui.addToColumn','sourceList','sheets-pivot-ui.filter','ST_PivotFilterOperatorEnum','currencySymbols','flatMap','_handlePointerUp','symbol','univer-mt-2\x20univer-text-xs\x20univer-text-red-500','Dropdown','panel','SetPivotManualGroupsCommand','_context','start','sheets-pivot-ui.dialog.filter.ascending','getRowCount','resolvePivotSheetCell','sheets-pivot-ui.dateGroup.date','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','_themeService','Select','skip','clip','normal','getSheetObject','univer-flex\x20univer-h-10\x20univer-items-center\x20univer-gap-2\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-font-semibold','sheets-pivot-ui.showValuesAs.percentOfParentRowTotal','relative:next','Date1900','Existing','drawNoSetting','sheets-pivot-ui.mobile.delete','isBottom','div','mainComponent','RowIcon','[MobilePivotSourceRange]','0.95','from','PivotTableFiledAreaEnum','repeatRowLabels','_moveStartCellIndex','path','beginPath','result','mergeMenu','memberPaths','resolvePivotValueFilterTarget','getOwnPropertyDescriptor','merge','displayName','sheets-pivot-ui.dialog.source.sourceData','_configService','PivotDataFieldTypeEnum','valueFieldId','M1.28069\x204.85447C0.842195\x204.33439\x201.21191\x203.5391\x201.89218\x203.5391H8.59333C9.2736\x203.5391\x209.64331\x204.33439\x209.20482\x204.85447L6.51052\x208.0501V11.6601C6.51052\x2012.2245\x205.94174\x2012.6114\x205.41683\x2012.404L4.48092\x2012.0343C4.1756\x2011.9136\x203.97498\x2011.6187\x203.97498\x2011.2904V8.0501L1.28069\x204.85447Z','autoStart','univer-flex\x20univer-flex-col\x20univer-gap-4','@univerjs-pro/sheets-pivot-ui','ROW','_initFormatPainterListener','item','onCommandExecuted','list','isValueFilterOperator','area','univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-gap-3\x20univer-rounded-xl\x20univer-px-3','univer-flex\x20univer-min-w-0\x20univer-flex-col\x20univer-gap-3','getActiveSheet','sheets-pivot-ui.dialog.numfmt.negativeNumberTypes','destructive','sheets-pivot-ui.valueFilter.notBetween','executeCommand','isValue','length','univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','_mergeCellController','groups','sheets-pivot-ui.valueFilter.valueField','yyyy\x22年\x22MM\x22月\x22dd\x22日\x22','M2.69792\x2010.0113C2.40558\x2010.0113\x202.16859\x209.77429\x202.16859\x209.48196C2.16859\x209.18962\x202.40558\x208.95264\x202.69792\x208.95264H6.67816C6.89225\x208.95264\x207.08526\x209.0816\x207.16719\x209.2794C7.24912\x209.47719\x207.20384\x209.70486\x207.05245\x209.85624L3.97581\x2012.9329H6.67816C6.9705\x2012.9329\x207.20749\x2013.1699\x207.20749\x2013.4622C7.20749\x2013.7545\x206.9705\x2013.9915\x206.67816\x2013.9915H2.69792C2.48383\x2013.9915\x202.29082\x2013.8626\x202.20889\x2013.6648C2.12696\x2013.467\x202.17224\x2013.2393\x202.32363\x2013.0879L5.40027\x2010.0113H2.69792Z','currentShowDataAs','expected','items','sheets-pivot-ui.dialog.numfmt.formatTypes','getCoordByCell','pointerEvents','univer-flex\x20univer-min-h-10\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','subTotalType','getObservableWithExclusiveRange$','dateOlderThan','_formatPainterService','sheets-pivot-ui.msg.permissionError','\x22#,##0.00_);(\x22','getRange','sheets-pivot-ui.config.pageSection','sheets-pivot-ui.dialog.filter.selectAll','CANCEL','dateRange','fieldsConfig','sheets-pivot-ui.sourceRangeLabel','getMinutes','sheets-pivot-ui.config.layoutTabular','columnFields','cellWidth','onPointerLeave$','getDateSystem','type','daysInterval','transform','SheetsPivotTableUIMenuSchema','makeDirty','droppableId','sheets-pivot-ui.mobile.edit','day','registerCommand','primary.600','#ECECEC','sheets-pivot-ui.dialog.numfmt.dateTypes','value','moveToRow','jsxs','sheets-pivot-ui.mobile.moveToRow','boolean','visible','univer-border-primary-600','filter','_initContextMenu','univer-w-36','getPivotDisplayConfig','tabular','[MobilePivotPanel]','PivotDisplayDataType','watchPivotTableChanges','RANGE_TYPE','notBetween','between','thousandthPercentile','numberGroupField','PivotDataFieldDataTypeEnum','sheets-pivot-ui.mobile.moveToValue','DependentOn','_sheetInterceptorService','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','univer-size-8','sheets-pivot-ui.showValuesAs.other','ISidebarService','yyyy-MM-dd','M12.4008\x2013.1831C12.6907\x2013.1831\x2012.9258\x2012.9481\x2012.9258\x2012.6581V4.60873L14.013\x205.69597C14.218\x205.901\x2014.5505\x205.901\x2014.7555\x205.69597C14.9605\x205.49094\x2014.9605\x205.15853\x2014.7555\x204.95351L12.7721\x202.97017C12.5671\x202.76515\x2012.2347\x202.76515\x2012.0297\x202.97017L10.0463\x204.95351C9.84132\x205.15853\x209.84132\x205.49094\x2010.0463\x205.69597C10.2514\x205.901\x2010.5838\x205.901\x2010.7888\x205.69597L11.8758\x204.60901V12.6581C11.8758\x2012.9481\x2012.1108\x2013.1831\x2012.4008\x2013.1831Z','univer-inline-flex\x20univer-flex-col\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg','repeatColLabels','targetCellInfo','onPointerEnter$','sheets-pivot-ui.dateFilter.rule','_controlPointerDownHandler','stroke','ungroup','shouldClear','useWholeDay','GlobalConfig','sheets-pivot-ui.perform.rowColError','sheets-pivot-ui.numberGroup.title','index','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-self-stretch\x20univer-border\x20univer-border-transparent\x20univer-p-0.5\x20univer-leading-4\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','close','sheets-pivot-ui.column','lineTo','year','BLANK_PLACEHOLDER','2EwtIEp','getCollection','PivotLayoutTypeEnum','scene','sheets-pivot-ui.dialog.ok','percent','customFields','sheets-pivot-ui.valueFilter.lessThanOrEqual','fieldIds','OpenPivotTableRangeSelectorPanelOperation','true','sheet.pivot.context-menu.value-filter','_isRangeSelectorFocus','univer-flex\x20univer-flex-row\x20univer-gap-4','ValueFilter','RangeProtectionPermissionViewPoint','baseItemType','colRanges','jsx','itemType','univer-mb-2\x20univer-mt-0\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-600\x20dark:!univer-text-gray-200','onStarting','destination','sheets-pivot-ui.config.pageWrap','intercept','restore','defaultValueFieldId','univer-h-12','supportsDateFilter','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20active:univer-bg-gray-100\x20dark:active:!univer-bg-gray-700','_sheetsPivotTableAdaptorModel','layout','univer-w-32','sheets-pivot-ui.dialog.numfmt.fieldSetting','AddPivotTableCommand','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','sheets-pivot-ui.dialog.summarizeBy','textKey','link','border-box','closest','univer-mt-2\x20univer-flex\x20univer-justify-end','sheets-pivot-ui.dateGroup.excelLikeTitle','getUnitId','interceptBeforeCommand','getConfig','var','rowRanges','push','univer-rounded-xl\x20univer-p-2','appendChild','pointercancel','sheets-pivot-ui.config.displaySection','sheets-pivot-ui.config.showColGrandTotal','MoreDownIcon','univer-h-8\x20univer-rounded-md\x20univer-border\x20univer-border-gray-300\x20univer-bg-gray-0\x20univer-px-2\x20univer-text-sm\x20univer-text-gray-900\x20dark:univer-bg-gray-700\x20dark:univer-text-gray-0','-1,234.56','allowMultipleFilters','sheets-pivot-ui.valueFilter.greaterThanOrEqual','fractionalSecond','Tools','sheet.pivot.context-menu.manual-ungroup','RecordValueType','useObservable','getTime','percentOfParent','isBottomTotal','onSteady','univer-flex\x20univer-items-center\x20univer-justify-between','univer-mb-4','members','NotFilter','_configModel','Draggable/Droppable\x20must\x20be\x20used\x20inside\x20DragDropContext','Blank','_moveRowOrCol','model','univer-flex\x20univer-justify-end\x20univer-gap-2','currentSkeleton$','baseItem','univer-flex\x20univer-h-8\x20univer-w-[140px]\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-r-md\x20univer-text-center\x20univer-text-sm\x20hover:univer-bg-gray-100\x20rtl:univer-rounded-l-md\x20rtl:univer-rounded-r-none\x20dark:hover:!univer-bg-gray-700','getPermissionPoint','endRow','Panel','MobileActionRow','dimension','IMessageService','includes','average','_registerRenderModules','previous','30ZPmdaz','keys','getCurrentRangeDisable$','MobileRangeSelector','pipe','drawWith','sheets-pivot-ui.config.totalsSection','Hour','MAIN_AREA','univer-max-h-[40vh]\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','sheets-pivot-ui.dateGroup.month','sheets-pivot-ui.dialog.source.intersect','positionInfo','UniverLicensePlugin','_draw','sheets-pivot-ui.fieldSettings','sheets-pivot-ui.config','univer-text-gray-400\x20dark:!univer-text-gray-500','univer-box-border\x20univer-h-[161px]\x20univer-w-full\x20univer-flex-col\x20univer-items-center\x20univer-justify-center\x20univer-overflow-x-hidden\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-py-2\x20dark:!univer-bg-gray-900','percentOfGrandTotal','PivotFilterTypeEnum','PivotCellStyleTypeEnum','dataset','1930-08-05','deepClone','context','_initMenu','univer-mb-2\x20univer-h-5\x20univer-text-sm\x20univer-font-medium\x20univer-leading-5','19761JrtMtM','rowHeaderMap','isInteger','rowType','dataFieldId','_closePanel','sheets-pivot-ui.valueFilter.title','end','sheets-pivot-ui.valueFilter.bottomPercent','getCellWithCoordByIndex','sheetName','RemovePivotFieldCommand','univer-cursor-pointer\x20univer-text-xs\x20univer-text-primary-600','moveToValue','positionType','percentOfRowTotal','sheets-pivot-ui.dateGroup.yearQuarter','rtl','MobileActionRowGroup','onDblclick$','[MobilePivotConfigPanel]','getSheetCommandTarget','17.8544','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','DisposableCollection','lineWidth','pivotConfigChange$','getSheets','getUnit','effectAllowed','button','[PivotConfigPanel]','fill','univer-text-sm\x20univer-font-medium','RemovePivotTableMutation','All','sheets-pivot-ui.mobile.moveDown','getFullYear','targetFieldId','input','fieldId','pivot-value-filter-rule','collapse','getSheetBySheetId','sheets-pivot-ui.countNumsName','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','univer-mr-2\x20univer-w-4\x20rtl:univer-ml-2\x20rtl:univer-mr-0','#,##0_);[Red](#,##0)','PIVOT_PERFORM_CHECK','valueLessThan','sheets-pivot-ui.subtotal.var','sheet.pivot.context-menu.manual-group','expandToContinuousRange','sheets-pivot-ui.showValuesAs.title','sheets-pivot-ui.valueFilter.clear','getAncestorScale','PivotDrillDownCommand','moveTo','units','M12.4008\x202.81641C12.6907\x202.81641\x2012.9258\x203.05146\x2012.9258\x203.34141V11.3908L14.013\x2010.3036C14.218\x2010.0986\x2014.5505\x2010.0986\x2014.7555\x2010.3036C14.9605\x2010.5086\x2014.9605\x2010.841\x2014.7555\x2011.046L12.7721\x2013.0294C12.5671\x2013.2344\x2012.2347\x2013.2344\x2012.0297\x2013.0294L10.0463\x2011.046C9.84132\x2010.841\x209.84132\x2010.5086\x2010.0463\x2010.3036C10.2514\x2010.0986\x2010.5838\x2010.0986\x2010.7888\x2010.3036L11.8758\x2011.3905V3.34141C11.8758\x203.05146\x2012.1108\x202.81641\x2012.4008\x202.81641Z','sourceRange','onPointerDown','_dialogService','manualGroupMembers','valueFilter','FilteredSortNone','_moveType','rowFields','minutes','univer-mx-1.5\x20univer-my-0\x20univer-h-4\x20univer-text-xs\x20univer-text-gray-200\x20dark:!univer-text-gray-600','suffix','getPivotTableIdByCell','sheets-pivot-ui.subtotal.varp','univer-flex\x20univer-flex-col\x20univer-gap-3','#,##0_);(#,##0)','univer-flex','08-05\x20下午\x2001:30','sheets-pivot-ui.productName','bottom','sheets-pivot-ui.manualGroup.defaultName','getDate','hours','DROP','PivotDateGroupingMode','opacity','error','Minute','sheets-pivot-ui.config.dateGroupingSwitchMessage','zIndex','7.59766','_commandService','isTopTotal','onRendered','isSubtotal','group','504wQKAUY','0\x200\x2032\x2032','scale','UNIVER_SHEET_PIVOT_FIELD_SETTING_ID','count','_UI_PLUGIN','MessageType','Year','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','sheets-pivot-ui.showValuesAs.percentOfParent','addEventListener','SheetPermissionCheckController','padStart','relative:previous','sheets-pivot-ui.showValuesAs.rankAscending','outline','IRenderManagerService','set','getPivotItemRenderInfoCache','_sheetsPivotTableConfigModel','command','sheets-pivot-ui.numberGroup.interval','stringify','M\x22月\x22d\x22日\x22','arcTo','PivotShowAsTypeEnum','ascending','member','sheets-pivot-ui.addToValue','closePath','serializeRangeWithSheet','MoreHorizontalIcon','PivotMultipleValueId','save','options','pivotTableIds','getPivotDateGroupContext','WorksheetEditPermission','hasPivotMultipleFilters','createContext','_movePivotId','DragDropContext','MOVE','sheets-pivot-ui.config.dateGroupingSwitchTitle','univer-flex\x20univer-justify-between\x20univer-gap-3','rangesInfo','CustomFilter','false','sheet.operation.rename-pivot-manual-group','valueGreaterThanOrEqual','Rect','(1,235)\x20','isPivotDateGroupTypeDisabled','PRINTING_RANGE','univer-text-xs\x20univer-leading-4\x20univer-text-gray-600','_injector','target','IConfirmService','_initRegisterCommand','default','sheets-pivot-ui.fieldPanel','subUnitId','UNIVER_SHEET_PIVOT_FILTER_PANEL','findIndex','Expand','univer-text-center\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-600\x20dark:!univer-text-gray-200','drawIconByPath','currentDateType','originalFieldId','_adaptorModel','clientX','lineCap','univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold\x20rtl:univer-ml-5\x20rtl:univer-mr-0','dateNewerThanOrEqual','sheets-pivot-ui.showValuesAs.next','sheets-pivot-ui.dialog.sourceName','sheets-pivot-ui.valueFilter.lessThan','deserializeRangeWithSheet','setPointerCapture','sheets-pivot-ui.valueFilter.bottomCount','_registerIcons','viewUpdate$','sheets-pivot-ui.dialog.numfmt.cancel','some','defaultOverride','UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG_ID','nativeEvent','min','sheets-pivot-ui.subtotal.stdDev','univer-py-4\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-500','percentDifferenceFrom','_initMoveRangeConfirmCheck','pageOverThenDown','pivot-source-field-viewport','setConfig','moveToFilter','sheets-pivot-ui.dialog.filter.descending','get','2666715jiopdw','sheets-pivot-ui.config.pageDownThenOver','checkRangesEditablePermission','has','univer-text-xs\x20univer-text-red-500','univer-min-w-0\x20univer-flex-1','sheet-pivot.confirm.add-sheet-pivot','univer-mx-0\x20univer-mb-4\x20univer-mt-3\x20univer-h-[300px]\x20univer-rounded-lg\x20univer-p-2','_confirmService','FilterSelectionMode','univerDndId','Input','PivotDataFieldSortOperatorEnum','univer-flex\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-2','px)','generateRandomId','add','markDirty$','univer-flex\x20univer-gap-2','unitDisposed$','univer-flex\x20univer-h-12\x20univer-w-full\x20univer-items-center\x20univer-gap-2\x20univer-rounded-xl\x20univer-border-0\x20univer-bg-transparent\x20univer-px-3\x20univer-text-left\x20univer-text-sm','switchMap','_setPivotTableId','pivot-value-filter-expected','debounceTime','excelDateTimePartsToSerial','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','_sheetClipboardService','univer-ml-1\x20univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-md\x20univer-transition-opacity\x20hover:univer-bg-gray-200\x20rtl:univer-ml-0\x20rtl:univer-mr-1\x20dark:hover:!univer-bg-gray-700','SetPivotNumberGroupCommand','useRef','ColumnIcon','sheets-pivot-ui.dialog.cancel','FunctionIcon','MERGE_CELL_INTERCEPTOR_CHECK','AddPivotFieldCommand','upper','yyyy/MM/dd','pivotTablePanelVisible$','sheets-pivot-ui.showValuesAs.dialogTitle','[sheets-pivot-ui]:\x20Pivot\x20render\x20cache\x20is\x20unavailable','#D8D8D8','localeKey','UpdatePivotValuePositionCommand','_permissionService','svg','_sheetPrintInterceptorService','_config','rect','forValue','sheet.operation.open-pivot-table-filter-panel','sheets-pivot-ui.config.rowSubtotalTop','sheets-pivot-ui.config.layout','pageWrap','UniverSheetsPivotTableMobileUIPlugin','sheets-pivot-ui.msg.emptySourceRange','sheets-pivot-ui.sourceFieldTile','drawExpand','sheets-pivot-ui.showValuesAs.percentOfGrandTotal','isCount','style','getDirection','getPivotTableConfig','HasFilter','sheets-pivot-ui.dialog.numfmt.dateDesc','univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-py-4','sheet.operation.open-pivot-table-field-setting-panel','Injector','_isRangeSelector2Focus','CURSOR_TYPE','sheets-pivot-ui.filterField','function','668887UlbTom','sheets-pivot-ui.dialog.source.insertPivotTable','sheet-pivot.confirm.disable-multiple-filters','getName','UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG_ID','resolve','dateNewerThan','col','23:59:59','sheets-pivot-ui.averageName','PIVOT_OPTION_FILTER_COORDINATION','sheets-pivot-ui.valueDesc','UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL','_pivotTableId','2147483647','sheets-pivot-ui.numberGroup.autoEnd','_scenePointerMoveSubscribe','下午01:30','13:30:30','sheets-pivot-ui.moveToColumn','UNIVER_SHEET_PIVOT_FIELD_NUMFMT_ID','getCellIndexByOffset','all','FilterNoneSortNone','ORGANIZATION','FilterNoneSortAsc','21.9404','elementFromPoint','useCallback','univer-relative','filterInfo','univer-rounded-lg\x20univer-p-2','univer-mb-3\x20univer-w-full','reCalculate','PivotTableIcon','MobileDropdownMenu','startX','univer-mb-2\x20univer-mt-0\x20univer-flex\x20univer-w-full\x20univer-text-sm\x20univer-leading-4\x20univer-text-gray-900','clsx','univer-text-justify\x20univer-text-gray-900\x20dark:!univer-text-gray-0','sheets-pivot-ui.perform.info','version','h:mm:ss','OPERATION','onPointerLeave','WorkbookEditablePermission','_initEditListener','pivotParams','packageName','range'];_0x16e1=function(){return _0x3781ac;};return _0x16e1();}function br(_0x511f6e){const _0xa2c358=_0x14e1ea;let {children:_0x327d1c,onDragEnd:_0x2807f0,onDragStart:_0x2d4058,onDragUpdate:_0x396720}=_0x511f6e,[_0x1a1a98,_0x270930]=(0x0,f['useState'])(null),_0xbbcfcf=(0x0,f[_0xa2c358(0x4a8)])(null),_0x148c25=(0x0,f[_0xa2c358(0x4ee)])((_0x4abb63,_0x1251c9)=>{let _0xa08d80={'draggableId':_0x4abb63,'source':_0x1251c9,'destination':null};_0xbbcfcf['current']=_0xa08d80,_0x270930(_0xa08d80),_0x2d4058==null||_0x2d4058({'draggableId':_0x4abb63,'source':_0x1251c9}),_0x396720==null||_0x396720({'draggableId':_0x4abb63,'source':_0x1251c9,'destination':null});},[_0x2d4058,_0x396720]),_0x490787=(0x0,f[_0xa2c358(0x4ee)])(_0xf91575=>{const _0x44b8ad=_0xa2c358;let _0xc82cef=_0xbbcfcf[_0x44b8ad(0x68f)];if(!_0xc82cef||gr(_0xc82cef[_0x44b8ad(0x368)],_0xf91575))return;let _0x4da2eb={..._0xc82cef,'destination':_0xf91575};_0xbbcfcf[_0x44b8ad(0x68f)]=_0x4da2eb,_0x270930(_0x4da2eb),_0x396720==null||_0x396720({'draggableId':_0x4da2eb[_0x44b8ad(0x5de)],'source':_0x4da2eb[_0x44b8ad(0x28e)],'destination':_0x4da2eb[_0x44b8ad(0x368)]});},[_0x396720]),_0x47a9d3=(0x0,f[_0xa2c358(0x4ee)])(async(_0x2d21a8,_0x168873)=>{const _0x38353e=_0xa2c358;let _0x21f37f=_0xbbcfcf[_0x38353e(0x68f)];_0x21f37f&&(_0xbbcfcf[_0x38353e(0x68f)]=null,_0x270930(null),await(_0x2807f0==null?void 0x0:_0x2807f0({'draggableId':_0x21f37f[_0x38353e(0x5de)],'source':_0x21f37f[_0x38353e(0x28e)],'destination':_0x168873===void 0x0?_0x21f37f[_0x38353e(0x368)]:_0x168873,'reason':_0x2d21a8})));},[_0x2807f0]);(0x0,f['useEffect'])(()=>{const _0x49130b=_0xa2c358;if(!_0x1a1a98)return;let _0x562180=_0xd627dd=>{const _0x598301=_0x13f1;let _0x2964f5=_r(_0xd627dd['target']);_0x2964f5&&_0x2964f5['dataset'][_0x598301(0x6b1)]!==_0x598301(0x35c)||_0x490787(null);};return window[_0x49130b(0x432)]('dragover',_0x562180,!0x0),()=>{const _0x35d876=_0x49130b;window[_0x35d876(0x697)](_0x35d876(0x296),_0x562180,!0x0);};},[_0x1a1a98,_0x490787]);let _0x11c46a=(0x0,f[_0xa2c358(0x68c)])(()=>({'activeDrag':_0x1a1a98,'startDrag':_0x148c25,'updateDestination':_0x490787,'endDrag':_0x47a9d3}),[_0x1a1a98,_0x148c25,_0x490787,_0x47a9d3]);return(0x0,d[_0xa2c358(0x364)])(mr['Provider'],{'value':_0x11c46a,'children':_0x327d1c});}function xr(_0x368891){const _0x105fa4=_0x14e1ea;var _0x11918b;let {children:_0x36e6d6,droppableId:_0x19d5e4,isDropDisabled:_0x835530=!0x1}=_0x368891,{activeDrag:_0x35fc03,updateDestination:_0x47cbe9,endDrag:_0x380175}=yr(),_0x4f9efa=(0x0,f[_0x105fa4(0x4a8)])(null),_0x553e7b={'innerRef':(0x0,f['useCallback'])(_0x2137b8=>{const _0x1ddcf7=_0x105fa4;_0x4f9efa[_0x1ddcf7(0x68f)]=_0x2137b8;},[]),'droppableProps':{'onDragOver':(0x0,f[_0x105fa4(0x4ee)])(_0x2e1096=>{const _0x4ea637=_0x105fa4;if(!_0x35fc03||_0x835530||!_0x4f9efa[_0x4ea637(0x68f)])return;_0x2e1096[_0x4ea637(0x28a)]();let _0x22a253=vr(_0x4f9efa[_0x4ea637(0x68f)],_0x2e1096[_0x4ea637(0x556)],_0x35fc03,_0x19d5e4);_0x47cbe9({'droppableId':_0x19d5e4,'index':_0x22a253});},[_0x35fc03,_0x835530,_0x19d5e4,_0x47cbe9]),'onDrop':(0x0,f[_0x105fa4(0x4ee)])(_0x340f2e=>{const _0x5327f9=_0x105fa4;var _0x12c05e;if(!_0x35fc03||_0x835530||!_0x4f9efa['current'])return;_0x340f2e[_0x5327f9(0x28a)]();let _0x2d725f=(((_0x12c05e=_0x35fc03[_0x5327f9(0x368)])==null?void 0x0:_0x12c05e[_0x5327f9(0x319)])===_0x19d5e4?_0x35fc03[_0x5327f9(0x368)]:null)??{'droppableId':_0x19d5e4,'index':vr(_0x4f9efa['current'],_0x340f2e['clientY'],_0x35fc03,_0x19d5e4)};return _0x380175(_0x5327f9(0x41b),_0x2d725f);},[_0x35fc03,_0x380175,_0x835530,_0x19d5e4]),'data-univer-dnd-droppable-id':_0x19d5e4,'data-univer-dnd-drop-disabled':String(_0x835530)},'placeholder':null},_0x382ab5={'isDraggingOver':!!(_0x35fc03&&((_0x11918b=_0x35fc03[_0x105fa4(0x368)])==null?void 0x0:_0x11918b[_0x105fa4(0x319)])===_0x19d5e4)};return(0x0,d[_0x105fa4(0x364)])(hr[_0x105fa4(0x540)],{'value':_0x19d5e4,'children':_0x36e6d6(_0x553e7b,_0x382ab5)});}function Sr(_0x14d1a0){const _0x5c69e0=_0x14e1ea;var _0x5e2c52;let {children:_0x4d4fd6,draggableId:_0x2e9e86,index:_0x521b03,isDragDisabled:_0x131f22=!0x1}=_0x14d1a0,{activeDrag:_0x172d50,startDrag:_0xab2096,updateDestination:_0x17103d,endDrag:_0x188b24}=yr(),_0x305dd0=(0x0,f[_0x5c69e0(0x1fa)])(hr),_0x5d612b=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x275649=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x44f854=(0x0,f[_0x5c69e0(0x4a8)])(!0x1),_0x17ec43=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x55784f=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x31d19b=(0x0,f['useRef'])(!0x1),_0x8009cc=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x46b914=(0x0,f[_0x5c69e0(0x4a8)])(null),_0xe86c98=(0x0,f[_0x5c69e0(0x4a8)])(null),_0x29f292=(0x0,f[_0x5c69e0(0x4ee)])(_0xd4487a=>{const _0x2dfeeb=_0x5c69e0;_0x5d612b[_0x2dfeeb(0x68f)]=_0xd4487a;},[]),_0x10b9e5=(_0x172d50==null?void 0x0:_0x172d50[_0x5c69e0(0x5de)])===_0x2e9e86,_0x1e2447=(0x0,f['useCallback'])(()=>{const _0x866521=_0x5c69e0;_0x55784f[_0x866521(0x68f)]&&=(window[_0x866521(0x6f2)](_0x55784f[_0x866521(0x68f)]),null);},[]),_0x1f77c7=(0x0,f[_0x5c69e0(0x4ee)])(()=>{const _0x2f8cd3=_0x5c69e0;_0x1e2447(),_0xe86c98[_0x2f8cd3(0x68f)]=null,_0x17ec43[_0x2f8cd3(0x68f)]&&=(_0x17ec43['current'](),null),_0x8009cc[_0x2f8cd3(0x68f)]&&=(_0x8009cc[_0x2f8cd3(0x68f)][_0x2f8cd3(0x574)](),null),_0x46b914['current']=null,_0x44f854[_0x2f8cd3(0x68f)]=!0x1;},[_0x1e2447]);(0x0,f[_0x5c69e0(0x5aa)])(()=>_0x1f77c7,[_0x1f77c7]);let _0x567d76=(0x0,f[_0x5c69e0(0x4ee)])((_0x546b39,_0x2fb951)=>{const _0x27215b=_0x5c69e0;if(_0x8009cc['current'])return;let _0x60c654=_0x5d612b[_0x27215b(0x68f)];if(!_0x60c654)return;let _0x3eca32=_0x60c654[_0x27215b(0x1f1)](),_0x4da16e=_0x546b39>0x0?Math[_0x27215b(0x512)](0x0,_0x546b39-_0x3eca32[_0x27215b(0x5ac)]):0xc,_0x3625a5=_0x2fb951>0x0?Math[_0x27215b(0x512)](0x0,_0x2fb951-_0x3eca32['top']):0xc,_0x32e65f=_0x60c654[_0x27215b(0x50d)](!0x0);if(!(_0x32e65f instanceof HTMLDivElement))return;let _0x43cf02=_0x32e65f;_0x43cf02[_0x27215b(0x4c6)][_0x27215b(0x507)]='fixed',_0x43cf02[_0x27215b(0x4c6)]['left']=_0x27215b(0x611),_0x43cf02[_0x27215b(0x4c6)][_0x27215b(0x68d)]='0px',_0x43cf02[_0x27215b(0x4c6)][_0x27215b(0x52d)]=_0x3eca32[_0x27215b(0x52d)]+'px',_0x43cf02[_0x27215b(0x4c6)]['height']=_0x3eca32[_0x27215b(0x255)]+'px',_0x43cf02['style'][_0x27215b(0x2ff)]=_0x27215b(0x564),_0x43cf02[_0x27215b(0x4c6)]['opacity']=_0x27215b(0x6c0),_0x43cf02[_0x27215b(0x4c6)]['zIndex']=_0x27215b(0x4e0),_0x43cf02[_0x27215b(0x4c6)]['boxSizing']=_0x27215b(0x379),_0x43cf02['style'][_0x27215b(0x316)]=_0x27215b(0x55c)+Math[_0x27215b(0x512)](0x0,_0x546b39-_0x4da16e)+_0x27215b(0x6a9)+Math[_0x27215b(0x512)](0x0,_0x2fb951-_0x3625a5)+_0x27215b(0x498),document[_0x27215b(0x568)][_0x27215b(0x384)](_0x43cf02),_0x8009cc['current']=_0x43cf02,_0x46b914['current']={'x':_0x4da16e,'y':_0x3625a5};},[]),_0x3882a3=(0x0,f[_0x5c69e0(0x4ee)])((_0x374291,_0x5476db)=>{const _0x175eb6=_0x5c69e0;let _0xa3e529=_0x8009cc['current'],_0x58423c=_0x46b914[_0x175eb6(0x68f)];_0xa3e529&&_0x58423c&&(_0xa3e529[_0x175eb6(0x4c6)]['transform']=_0x175eb6(0x55c)+Math[_0x175eb6(0x512)](0x0,_0x374291-_0x58423c['x'])+_0x175eb6(0x6a9)+Math['max'](0x0,_0x5476db-_0x58423c['y'])+_0x175eb6(0x498));},[]),_0x101c39=(0x0,f[_0x5c69e0(0x4ee)])((_0xd603d7,_0x4893c0)=>{const _0x46a59a=_0x5c69e0;let _0x5eaedc=_r(document[_0x46a59a(0x4ed)](_0xd603d7,_0x4893c0));if(!_0x5eaedc||_0x5eaedc['dataset'][_0x46a59a(0x6b1)]==='true')return null;let _0x106a58=_0x5eaedc[_0x46a59a(0x3c3)]['univerDndDroppableId'];return _0x106a58?{'droppableId':_0x106a58,'index':vr(_0x5eaedc,_0x4893c0,{'draggableId':_0x2e9e86,'source':{'droppableId':_0x305dd0??'','index':_0x521b03},'destination':null},_0x106a58)}:null;},[_0x2e9e86,_0x305dd0,_0x521b03]),_0x5c1528=(0x0,f[_0x5c69e0(0x4ee)])((_0x15d014,_0x9b0ba1,_0x5716a4,_0x3936bf)=>{const _0x1995fd=_0x5c69e0;if(_0x44f854[_0x1995fd(0x68f)]||_0x31d19b['current']||_0x131f22||!_0x305dd0)return;_0x44f854[_0x1995fd(0x68f)]=!0x0,_0x1e2447(),_0x31d19b[_0x1995fd(0x68f)]=!0x1;try{var _0x1bc388;(_0x1bc388=_0x5d612b[_0x1995fd(0x68f)])==null||_0x1bc388[_0x1995fd(0x476)](_0x9b0ba1);}catch{}_0x567d76(_0x5716a4,_0x3936bf),_0xab2096(_0x2e9e86,{'droppableId':_0x305dd0,'index':_0x521b03});let _0x4c09b2=_0x101c39(_0x5716a4,_0x3936bf);_0x17103d(_0x4c09b2);try{_0x15d014[_0x1995fd(0x28a)]();}catch{}},[_0x1e2447,_0x2e9e86,_0x305dd0,_0x521b03,_0x131f22,_0x567d76,_0x101c39,_0xab2096,_0x17103d]),_0x3d0ebe=(0x0,f['useCallback'])(_0x275124=>{const _0x7b0df6=_0x5c69e0;if(_0x131f22||!_0x305dd0||_0x275124[_0x7b0df6(0x65b)]==='mouse'&&_0x275124[_0x7b0df6(0x3e7)]!==0x0)return;_0x31d19b[_0x7b0df6(0x68f)]=!0x1;let _0x11706f=_0x275124['pointerId'];_0xe86c98['current']={'pointerId':_0x11706f,'pointerType':_0x275124['pointerType'],'startX':_0x275124[_0x7b0df6(0x46e)],'startY':_0x275124['clientY']},_0x1e2447(),_0x275124[_0x7b0df6(0x65b)]!==_0x7b0df6(0x661)&&(_0x55784f[_0x7b0df6(0x68f)]=window[_0x7b0df6(0x5cf)](()=>{const _0x54e866=_0x7b0df6;let _0x253d72=_0xe86c98[_0x54e866(0x68f)];_0x253d72&&_0x253d72[_0x54e866(0x6a4)]===_0x11706f&&_0x5c1528(_0x275124[_0x54e866(0x47e)],_0x253d72['pointerId'],_0x253d72[_0x54e866(0x4f6)],_0x253d72[_0x54e866(0x5fe)]);},0x96));let _0x383af4=_0x49356c=>{const _0x3d1d90=_0x7b0df6;let _0x486d7c=_0xe86c98[_0x3d1d90(0x68f)];if(!_0x486d7c||_0x49356c[_0x3d1d90(0x6a4)]!==_0x486d7c['pointerId'])return;if(!_0x44f854[_0x3d1d90(0x68f)]){if(_0x31d19b[_0x3d1d90(0x68f)]){_0x1f77c7();return;}if(_0x486d7c[_0x3d1d90(0x65b)]===_0x3d1d90(0x661)){let _0x2dd07e=_0x49356c[_0x3d1d90(0x46e)]-_0x486d7c['startX'],_0x3df65c=_0x49356c['clientY']-_0x486d7c[_0x3d1d90(0x5fe)];_0x2dd07e*_0x2dd07e+_0x3df65c*_0x3df65c>=0x10&&_0x5c1528(_0x49356c,_0x486d7c['pointerId'],_0x49356c['clientX'],_0x49356c['clientY']);}return;}_0x3882a3(_0x49356c[_0x3d1d90(0x46e)],_0x49356c[_0x3d1d90(0x556)]);let _0x20951c=_0x101c39(_0x49356c['clientX'],_0x49356c['clientY']);_0x17103d(_0x20951c);try{_0x49356c[_0x3d1d90(0x28a)]();}catch{}},_0x245bd4=_0x16b903=>{const _0x5d860b=_0x7b0df6;let _0x4f65f9=_0xe86c98[_0x5d860b(0x68f)];if(!_0x4f65f9||_0x16b903[_0x5d860b(0x6a4)]!==_0x4f65f9[_0x5d860b(0x6a4)])return;let _0x15151f=_0x44f854[_0x5d860b(0x68f)]?_0x101c39(_0x16b903[_0x5d860b(0x46e)],_0x16b903['clientY']):null,_0x58761f=_0x44f854[_0x5d860b(0x68f)]?_0x188b24(_0x15151f?_0x5d860b(0x41b):_0x5d860b(0x30a),_0x15151f):Promise['resolve']();return _0x1f77c7(),_0x58761f;};window[_0x7b0df6(0x432)](_0x7b0df6(0x248),_0x383af4,{'capture':!0x0,'passive':!0x1}),window['addEventListener'](_0x7b0df6(0x5a3),_0x245bd4,{'capture':!0x0}),window['addEventListener'](_0x7b0df6(0x385),_0x245bd4,{'capture':!0x0}),_0x17ec43[_0x7b0df6(0x68f)]=()=>{const _0x496da1=_0x7b0df6;window[_0x496da1(0x697)](_0x496da1(0x248),_0x383af4,!0x0),window[_0x496da1(0x697)]('pointerup',_0x245bd4,!0x0),window[_0x496da1(0x697)](_0x496da1(0x385),_0x245bd4,!0x0);};},[_0x1f77c7,_0x1e2447,_0x305dd0,_0x188b24,_0x131f22,_0x101c39,_0x5c1528,_0x17103d,_0x3882a3]),_0x2f1b44=(0x0,f[_0x5c69e0(0x4ee)])(_0x2149e8=>{const _0x345178=_0x5c69e0;let _0x41f014=_0x2149e8[_0x345178(0x55d)];if(!_0x41f014||typeof _0x41f014[_0x345178(0x615)]!=_0x345178(0x4d1))return;let _0x16c405=_0x2149e8[_0x345178(0x6c4)],_0x3f3297=_0x16c405[_0x345178(0x50d)](!0x0);if(!(_0x3f3297 instanceof HTMLDivElement))return;let _0x4aa29d=_0x3f3297;_0x4aa29d[_0x345178(0x4c6)][_0x345178(0x507)]=_0x345178(0x6f0),_0x4aa29d[_0x345178(0x4c6)][_0x345178(0x5ac)]=_0x345178(0x5bc),_0x4aa29d[_0x345178(0x4c6)][_0x345178(0x68d)]='-9999px',_0x4aa29d[_0x345178(0x4c6)]['width']=_0x16c405[_0x345178(0x1f1)]()[_0x345178(0x52d)]+'px',_0x4aa29d['style']['pointerEvents']=_0x345178(0x564),_0x4aa29d[_0x345178(0x4c6)][_0x345178(0x41d)]=_0x345178(0x2ce),_0x4aa29d[_0x345178(0x4c6)][_0x345178(0x421)]=_0x345178(0x4e0),document['body'][_0x345178(0x384)](_0x4aa29d);let _0x19ce3c=_0x16c405[_0x345178(0x1f1)](),_0x440bf5=_0x2149e8[_0x345178(0x46e)]>0x0?Math[_0x345178(0x512)](0x0,_0x2149e8[_0x345178(0x46e)]-_0x19ce3c[_0x345178(0x5ac)]):0xc,_0x2f32f8=_0x2149e8[_0x345178(0x556)]>0x0?Math[_0x345178(0x512)](0x0,_0x2149e8[_0x345178(0x556)]-_0x19ce3c[_0x345178(0x68d)]):0xc;_0x41f014[_0x345178(0x615)](_0x4aa29d,_0x440bf5,_0x2f32f8),_0x275649[_0x345178(0x68f)]&&_0x275649[_0x345178(0x68f)]!==_0x4aa29d&&_0x275649['current']['remove'](),_0x275649[_0x345178(0x68f)]=_0x4aa29d;},[]),_0x89fa6b=(0x0,f['useCallback'])(_0x726670=>{const _0x48d5a6=_0x5c69e0;if(_0x44f854[_0x48d5a6(0x68f)]||_0x131f22||!_0x305dd0){_0x726670[_0x48d5a6(0x28a)]();return;}_0x31d19b[_0x48d5a6(0x68f)]=!0x0,_0x1e2447(),_0xe86c98[_0x48d5a6(0x68f)]=null,_0x17ec43[_0x48d5a6(0x68f)]&&=(_0x17ec43[_0x48d5a6(0x68f)](),null);let _0x4c5675=_0x726670[_0x48d5a6(0x55d)];if(_0x4c5675){try{_0x4c5675[_0x48d5a6(0x3e6)]=_0x48d5a6(0x1f2);}catch{}try{_0x4c5675[_0x48d5a6(0x683)](_0x48d5a6(0x25b),_0x2e9e86);}catch{}}try{_0x2f1b44(_0x726670);}catch{}_0xab2096(_0x2e9e86,{'droppableId':_0x305dd0,'index':_0x521b03});},[_0x2f1b44,_0x1e2447,_0x2e9e86,_0x305dd0,_0x521b03,_0x131f22,_0xab2096]),_0x3ed278=(0x0,f[_0x5c69e0(0x4ee)])(()=>(_0x275649[_0x5c69e0(0x68f)]&&=(_0x275649[_0x5c69e0(0x68f)][_0x5c69e0(0x574)](),null),_0x188b24(_0x5c69e0(0x30a),null)),[_0x188b24]);return _0x4d4fd6({'innerRef':_0x29f292,'draggableProps':{'draggable':!_0x131f22,'onDragStart':_0x89fa6b,'onDragEnd':_0x3ed278,'style':_0x10b9e5?{'opacity':0x1}:void 0x0,'data-univer-dnd-item':_0x5c69e0(0x35c),'data-univer-dnd-id':_0x2e9e86,'data-univer-dnd-index':String(_0x521b03)},'dragHandleProps':{'onPointerDown':_0x3d0ebe}},{'isDragging':_0x10b9e5,'draggingOver':_0x172d50==null||(_0x5e2c52=_0x172d50['destination'])==null?void 0x0:_0x5e2c52[_0x5c69e0(0x319)]});}function Cr(_0x38f697,_0x51deb1){const _0x17a5c7=_0x14e1ea;switch(_0x38f697){case _0x17a5c7(0x327):return _0x51deb1['t'](_0x17a5c7(0x2ab));case'row':return _0x51deb1['t'](_0x17a5c7(0x6e6));case _0x17a5c7(0x209):return _0x51deb1['t'](_0x17a5c7(0x34e));case _0x17a5c7(0x320):return _0x51deb1['t'](_0x17a5c7(0x1c6));}}function wr(_0x382aef){const _0x3e0545=_0x14e1ea;switch(_0x382aef){case'filter':return(0x0,d[_0x3e0545(0x364)])(u['FilterIcon'],{'className':_0x3e0545(0x35f)});case'row':return(0x0,d['jsx'])(u['ColumnIcon'],{'className':_0x3e0545(0x35f)});case _0x3e0545(0x209):return(0x0,d[_0x3e0545(0x364)])(u[_0x3e0545(0x2cc)],{'className':'univer-flex\x20univer-flex-row\x20univer-gap-4'});case'value':return(0x0,d[_0x3e0545(0x364)])(u['FunctionIcon'],{'className':_0x3e0545(0x35f)});}}function Tr(_0x39dbe5){const _0x4e9bb7=_0x14e1ea;switch(_0x39dbe5){case _0x4e9bb7(0x327):return(0x0,d[_0x4e9bb7(0x322)])(_0x4e9bb7(0x4b7),{'xmlns':'http://www.w3.org/2000/svg','width':'32','height':'32','viewBox':'0\x200\x2032\x2032','fill':_0x4e9bb7(0x564),'children':[(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':_0x4e9bb7(0x5ba),'fill':_0x4e9bb7(0x31e)}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x4ba),{'x':_0x4e9bb7(0x4ec),'y':_0x4e9bb7(0x3df),'width':_0x4e9bb7(0x422),'height':_0x4e9bb7(0x21a),'rx':'1.13965','fill':_0x4e9bb7(0x54e)}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x4ba),{'x':'21.9404','y':_0x4e9bb7(0x5a4),'width':_0x4e9bb7(0x422),'height':_0x4e9bb7(0x21a),'rx':'1.13965','fill':_0x4e9bb7(0x54e)}),(0x0,d[_0x4e9bb7(0x364)])('rect',{'x':_0x4e9bb7(0x4ec),'y':'25.959','width':'7.59766','height':_0x4e9bb7(0x21a),'rx':'1.13965','fill':'#274FEE'})]});case'row':return(0x0,d['jsxs'])(_0x4e9bb7(0x4b7),{'xmlns':_0x4e9bb7(0x525),'width':'32','height':'32','viewBox':'0\x200\x2032\x2032','fill':'none','children':[(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':'M2\x2012.3661C2\x2012.0347\x202.26863\x2011.7661\x202.6\x2011.7661H9.24705C9.57842\x2011.7661\x209.84705\x2012.0347\x209.84705\x2012.3661V29.278C9.84705\x2029.6093\x209.57842\x2029.878\x209.24705\x2029.878H4C2.89543\x2029.878\x202\x2028.9825\x202\x2027.878V12.3661Z','fill':_0x4e9bb7(0x4b3)}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':'M2\x204.0863C2\x202.98173\x202.89543\x202.0863\x204\x202.0863H9.24705C9.57842\x202.0863\x209.84705\x202.35493\x209.84705\x202.6863V8.73981C9.84705\x209.07118\x209.57842\x209.33981\x209.24705\x209.33981H2.6C2.26863\x209.33981\x202\x209.07118\x202\x208.73981V4.0863Z','fill':_0x4e9bb7(0x4b3)}),(0x0,d[_0x4e9bb7(0x364)])('path',{'d':'M12.2983\x2012.4011C12.2982\x2012.0697\x2012.5669\x2011.8009\x2012.8983\x2011.8009L29.3931\x2011.8009C29.7243\x2011.8009\x2029.9929\x2012.0694\x2029.9931\x2012.4007L29.9993\x2027.9129C29.9997\x2029.0178\x2029.1042\x2029.9137\x2027.9993\x2029.9137H12.9051C12.5738\x2029.9137\x2012.3053\x2029.6452\x2012.3051\x2029.314L12.2983\x2012.4011Z','fill':'#ECECEC'}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':'M12.2517\x202.6863C12.2517\x202.35493\x2012.5203\x202.0863\x2012.8517\x202.0863H27.9582C29.0628\x202.0863\x2029.9582\x202.98173\x2029.9582\x204.0863V8.73627C29.9582\x209.06764\x2029.6896\x209.33627\x2029.3582\x209.33627H12.8517C12.5203\x209.33627\x2012.2517\x209.06764\x2012.2517\x208.73627L12.2517\x202.6863Z','fill':'#274FEE'})]});case'column':return(0x0,d[_0x4e9bb7(0x322)])(_0x4e9bb7(0x4b7),{'xmlns':_0x4e9bb7(0x525),'width':'32','height':'32','viewBox':_0x4e9bb7(0x429),'fill':'none','children':[(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':_0x4e9bb7(0x538),'fill':_0x4e9bb7(0x54e)}),(0x0,d['jsx'])('path',{'d':_0x4e9bb7(0x257),'fill':'#D8D8D8'}),(0x0,d[_0x4e9bb7(0x364)])('path',{'d':_0x4e9bb7(0x28d),'fill':_0x4e9bb7(0x4b3)}),(0x0,d['jsx'])(_0x4e9bb7(0x2d3),{'d':'M12.2982\x2012.4011C12.2981\x2012.0697\x2012.5667\x2011.8009\x2012.8982\x2011.8009L29.3929\x2011.8009C29.7242\x2011.8009\x2029.9928\x2012.0694\x2029.9929\x2012.4007L29.9992\x2027.9129C29.9996\x2029.0178\x2029.104\x2029.9137\x2027.9992\x2029.9137H12.905C12.5737\x2029.9137\x2012.3051\x2029.6452\x2012.305\x2029.314L12.2982\x2012.4011Z','fill':_0x4e9bb7(0x31e)})]});case _0x4e9bb7(0x320):return(0x0,d[_0x4e9bb7(0x322)])(_0x4e9bb7(0x4b7),{'xmlns':_0x4e9bb7(0x525),'width':'32','height':'32','viewBox':_0x4e9bb7(0x429),'fill':_0x4e9bb7(0x564),'children':[(0x0,d['jsx'])('path',{'d':_0x4e9bb7(0x538),'fill':_0x4e9bb7(0x4b3)}),(0x0,d['jsx'])('path',{'d':_0x4e9bb7(0x257),'fill':'#D8D8D8'}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':_0x4e9bb7(0x28d),'fill':_0x4e9bb7(0x4b3)}),(0x0,d[_0x4e9bb7(0x364)])(_0x4e9bb7(0x2d3),{'d':'M12.2982\x2012.4011C12.2981\x2012.0697\x2012.5667\x2011.8009\x2012.8982\x2011.8009L29.3929\x2011.8009C29.7242\x2011.8009\x2029.9928\x2012.0694\x2029.9929\x2012.4007L29.9992\x2027.9129C29.9996\x2029.0178\x2029.104\x2029.9137\x2027.9992\x2029.9137H12.905C12.5737\x2029.9137\x2012.3051\x2029.6452\x2012.305\x2029.314L12.2982\x2012.4011Z','fill':_0x4e9bb7(0x54e)})]});}}function Er(_0x40ed98,_0x1882af){const _0x502762=_0x14e1ea;switch(_0x40ed98){case _0x502762(0x327):return _0x1882af['t'](_0x502762(0x1dd));case _0x502762(0x5f4):return _0x1882af['t'](_0x502762(0x617));case'column':return _0x1882af['t']('sheets-pivot-ui.columnDesc');case _0x502762(0x320):return _0x1882af['t'](_0x502762(0x4dd));}}function Dr(_0xa635e){const _0x593e9f=_0x14e1ea;let _0x77b844=(0x0,i[_0x593e9f(0x1e8)])(n['LocaleService']),{areaType:_0x52f53e}=_0xa635e,_0x4f9c57=Er(_0x52f53e,_0x77b844),_0x207a9c=Tr(_0x52f53e);return(0x0,d['jsxs'])(_0x593e9f(0x2ca),{'className':_0x593e9f(0x537),'children':[(0x0,d['jsx'])(_0x593e9f(0x2ca),{'className':_0x593e9f(0x339),'children':_0x207a9c}),(0x0,d[_0x593e9f(0x364)])('div',{'className':_0x593e9f(0x469),'children':_0x4f9c57})]});}function Or(_0x30b269){const _0x1279d1=_0x14e1ea;let {areaType:_0x1b1994,items:_0x2cbf02,positionInfo:_0x53b2e5,pivotTableId:_0x4e96d5,pivotTableInfo:_0x5a6334}=_0x30b269,_0x15a332=(0x0,i['useDependency'])(n[_0x1279d1(0x2a4)]);return(0x0,d[_0x1279d1(0x322)])(_0x1279d1(0x2ca),{'className':'univer-min-h-[200px]\x20univer-flex-1\x20univer-p-1','children':[(0x0,d[_0x1279d1(0x322)])(_0x1279d1(0x2ca),{'className':_0x1279d1(0x4f7),'children':[wr(_0x1b1994),(0x0,d['jsx'])('span',{'className':_0x1279d1(0x6ba),'children':Cr(_0x1b1994,_0x15a332)})]}),(0x0,d[_0x1279d1(0x364)])(xr,{'droppableId':''+_0x1b1994,'isCombineEnabled':!0x1,'isDropDisabled':!0x1,'ignoreContainerClipping':!0x1,'direction':'vertical','children':(_0x4b7564,_0x38b36f)=>(0x0,d[_0x1279d1(0x364)])(_0x1279d1(0x2ca),{'className':(0x0,s[_0x1279d1(0x4f8)])(_0x1279d1(0x3bf),s['borderClassName'],{'univer-border-primary-600':_0x38b36f[_0x1279d1(0x284)]}),'children':(0x0,d['jsx'])('div',{'className':(0x0,s[_0x1279d1(0x4f8)])('univer-h-full\x20univer-overflow-y-auto',s['scrollbarClassName']),'children':(0x0,d[_0x1279d1(0x322)])('div',{'ref':_0x4b7564[_0x1279d1(0x5ef)],'className':_0x1279d1(0x619),..._0x4b7564[_0x1279d1(0x6e7)],'children':[_0x2cbf02['length']>0x0&&_0x2cbf02[_0x1279d1(0x505)]((_0xf5a721,_0x5ae0b3)=>(0x0,d[_0x1279d1(0x364)])('div',{'children':(0x0,d[_0x1279d1(0x364)])(Sr,{'isDragDisabled':!0x1,'draggableId':_0xf5a721[_0x1279d1(0x5df)],'index':_0x5ae0b3,'children':(_0x2abc30,_0x3c91bb)=>(0x0,d[_0x1279d1(0x364)])(d[_0x1279d1(0x63c)],{'children':(0x0,d['jsx'])('div',{'ref':_0x2abc30[_0x1279d1(0x5ef)],..._0x2abc30[_0x1279d1(0x286)],..._0x2abc30[_0x1279d1(0x693)],'style':_0x2abc30[_0x1279d1(0x286)][_0x1279d1(0x4c6)],'className':(0x0,s['clsx'])(_0x1279d1(0x34c),_0x3c91bb[_0x1279d1(0x523)]&&_0x1279d1(0x326)),'children':(0x0,d[_0x1279d1(0x364)])(kr,{'pivotTableId':_0x4e96d5,'positionInfo':_0x53b2e5,'item':_0xf5a721,'areaType':_0x1b1994,'pivotTableInfo':_0x5a6334})})})},_0xf5a721[_0x1279d1(0x5df)])},_0xf5a721[_0x1279d1(0x5df)])),_0x2cbf02[_0x1279d1(0x2f3)]===0x0&&(0x0,d[_0x1279d1(0x364)])(Dr,{'areaType':_0x1b1994})]})})})})]});}function kr(_0x2108d9){const _0xd158e7=_0x14e1ea;let {areaType:_0x4c0d9e,item:_0x3f1c3f,positionInfo:_0x49a1e4,pivotTableId:_0x17b681,pivotTableInfo:_0x21bbaa}=_0x2108d9,{unitId:_0x5c4876,subUnitId:_0x1b0f9e}=_0x49a1e4,_0x40e731=_0x3f1c3f[_0xd158e7(0x5df)]===mt,_0xd65c4c=(0x0,i[_0xd158e7(0x1e8)])(n['ICommandService']),_0x3a5453=(0x0,i[_0xd158e7(0x1e8)])(n[_0xd158e7(0x2a4)]),_0x538573=()=>{if(_0x40e731){let _0x2fce7c=(_0x21bbaa['valueFields']||[])['map'](_0x4cf2bf=>_0x4cf2bf['tableFieldId']);Ct({'pivotTableId':_0x17b681,'unitId':_0x5c4876,'subUnitId':_0x1b0f9e,'commandService':_0xd65c4c},_0x2fce7c);}else Ct({'pivotTableId':_0x17b681,'unitId':_0x5c4876,'subUnitId':_0x1b0f9e,'commandService':_0xd65c4c},[_0x3f1c3f['tableFieldId']]);},_0x111c6e=()=>{_0x5c4876&&_0x1b0f9e&&Et(_0xd65c4c,_0x5c4876,_0x1b0f9e,_0x17b681,_0x3f1c3f['tableFieldId']);},_0x1d513a=()=>{const _0x7ff228=_0xd158e7;_0x5c4876&&_0x1b0f9e&&Dt(_0xd65c4c,_0x17b681,_0x3f1c3f[_0x7ff228(0x5df)],_0x5c4876,_0x1b0f9e,_0x21bbaa);},_0x446cd8=_0x365a6e=>{const _0x34b7e1=_0xd158e7;let _0x2ac667=_0x365a6e===_0x34b7e1(0x209)?e[_0x34b7e1(0x665)][_0x34b7e1(0x561)]:e['PivotTableValuePositionEnum'][_0x34b7e1(0x632)],_0x2575ad=_0x365a6e===_0x34b7e1(0x209)?_0x21bbaa[_0x34b7e1(0x40c)][_0x34b7e1(0x2f3)]:_0x21bbaa[_0x34b7e1(0x310)][_0x34b7e1(0x2f3)];wt({'pivotTableId':_0x17b681,'unitId':_0x5c4876,'subUnitId':_0x1b0f9e,'commandService':_0xd65c4c},_0x2ac667,_0x2575ad);},_0x42b755=(0x0,d[_0xd158e7(0x322)])(_0xd158e7(0x2ca),{'className':_0xd158e7(0x33e),'children':[(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':_0xd158e7(0x1ae),'onClick':()=>{_0x538573();},'children':_0x3a5453['t'](_0xd158e7(0x511))}),_0x4c0d9e!==_0xd158e7(0x320)&&!_0x40e731&&(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':_0xd158e7(0x1ae),'onClick':()=>{_0x111c6e();},'children':_0x3a5453['t'](_0xd158e7(0x4d0))}),_0x40e731&&(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','onClick':()=>{_0x446cd8(_0x4c0d9e);},'children':_0x4c0d9e==='column'?_0x3a5453['t']('sheets-pivot-ui.moveToRow'):_0x3a5453['t'](_0xd158e7(0x4e5))}),_0x4c0d9e===_0xd158e7(0x320)&&(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':_0xd158e7(0x1ae),'onClick':()=>{_0x1d513a();},'children':_0x3a5453['t'](_0xd158e7(0x3bc))})]}),_0x3535e2=_0x40e731?_0x3a5453['t'](_0xd158e7(0x206)):_0x3f1c3f[_0xd158e7(0x2db)],_0x4fe88f=(0x0,d[_0xd158e7(0x364)])('bdi',{'dir':_0xd158e7(0x5c2),'children':_0x3535e2});return(0x0,d[_0xd158e7(0x322)])(d[_0xd158e7(0x63c)],{'children':[(0x0,d[_0xd158e7(0x364)])(u[_0xd158e7(0x698)],{}),(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':'univer-max-w-[66px]\x20univer-flex-1\x20univer-shrink-0\x20univer-truncate\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-800\x20dark:!univer-text-gray-100','children':(0x0,d[_0xd158e7(0x364)])(s[_0xd158e7(0x1b3)],{'title':_0x4fe88f,'children':_0x4fe88f})}),(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x2ca),{'className':'univer-cursor-pointer','children':(0x0,d[_0xd158e7(0x364)])(s[_0xd158e7(0x2b2)],{'align':_0xd158e7(0x3d0),'overlay':_0x42b755,'children':(0x0,d[_0xd158e7(0x364)])(_0xd158e7(0x55e),{'children':(0x0,d[_0xd158e7(0x364)])(u[_0xd158e7(0x447)],{})})})})]});}function Ar(_0xe7b97a){const _0x28f53a=_0x14e1ea;var _0x5b309c;let _0x50f24b=(0x0,i['useDependency'])(n[_0x28f53a(0x642)]),_0xb517=(0x0,i[_0x28f53a(0x1e8)])(n[_0x28f53a(0x2a4)]),_0x2d539b=(0x0,i['useDependency'])(n[_0x28f53a(0x27a)]),_0x3de6f4=(0x0,i['useDependency'])(Q),{sourceRangeInfo:_0x518858,refreshHandler:_0xa79710,pivotTableId:_0xfeb96f,positionInfo:_0x1dcde4}=_0xe7b97a,{unitId:_0x15bb27,range:_0x424bd0,subUnitId:_0x1e1978}=_0x518858,_0x4a6d02=_0x50f24b['getUnit'](_0x15bb27),_0x30d5d8=(_0x4a6d02==null||(_0x5b309c=_0x4a6d02[_0x28f53a(0x3f4)](_0x1e1978))==null?void 0x0:_0x5b309c[_0x28f53a(0x4d5)]())??'',[_0x1d2c77,_0x535675]=(0x0,f['useState'])(void 0x0),_0x1faa58=(0x0,f[_0x28f53a(0x4a8)])(_0x1d2c77);_0x1faa58[_0x28f53a(0x68f)]=_0x1d2c77;let [_0x3b4a1c,_0xa1db5e]=(0x0,f[_0x28f53a(0x53a)])(_0x424bd0),[_0x18cf36,_0x2b447d]=(0x0,f[_0x28f53a(0x53a)])(_0x30d5d8),[_0x3ad048,_0x33181e]=(0x0,f['useState'])(!0x1);(0x0,f[_0x28f53a(0x5aa)])(()=>{const _0x2b9d68=_0x28f53a;_0x3de6f4[_0x2b9d68(0x65e)](_0x3ad048);},[_0x3ad048,_0x3de6f4]),(0x0,f[_0x28f53a(0x5aa)])(()=>{const _0x3b7efe=_0x28f53a;_0xa1db5e(_0x518858[_0x3b7efe(0x503)]),_0x2b447d(_0x30d5d8);},[_0x518858,_0x30d5d8]);let _0x21efbb=(0x0,f['useMemo'])(()=>(0x0,n[_0x28f53a(0x52e)])(async _0x209257=>{const _0x1c26e9=_0x28f53a;let _0x4915a8=_0x209257[_0x1c26e9(0x60b)](',')['filter'](_0x52d96b=>!!_0x52d96b)[_0x1c26e9(0x505)](p[_0x1c26e9(0x475)]);if(!_0x4915a8[0x0])return;let _0x526c21=_0x4915a8[0x0];if(!_0x4a6d02||_0x1faa58[_0x1c26e9(0x68f)])return;let _0x4677bf=_0x526c21['sheetName']||_0x518858[_0x1c26e9(0x3d3)];_0xa1db5e(_0x526c21[_0x1c26e9(0x503)]),_0x2b447d(_0x4677bf);let _0x55ca88={'unitId':_0x15bb27,'subUnitId':_0x4a6d02['getSheetBySheetName'](_0x4677bf)[_0x1c26e9(0x595)](),'range':{..._0x526c21['range']},'sheetName':_0x4677bf};await bt(_0x2d539b,_0xfeb96f,_0x55ca88,_0x1dcde4['unitId'],_0x1dcde4[_0x1c26e9(0x465)]),_0xa79710();},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[]);return(0x0,d[_0x28f53a(0x322)])(_0x28f53a(0x2ca),{'className':'univer-mb-4','children':[(0x0,d[_0x28f53a(0x322)])(_0x28f53a(0x2ca),{'className':_0x28f53a(0x509),'children':[(0x0,d['jsx'])(_0x28f53a(0x55e),{'className':_0x28f53a(0x4f9),'children':_0xb517['t'](_0x28f53a(0x30d))}),(0x0,d['jsx'])(_0x28f53a(0x55e),{'className':'univer-text-xs\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xb517['t'](_0x28f53a(0x20a))})]}),(0x0,d[_0x28f53a(0x322)])(_0x28f53a(0x2ca),{'className':_0x28f53a(0x4ef),'children':[(0x0,d[_0x28f53a(0x364)])(m[_0x28f53a(0x60e)],{'unitId':_0x15bb27,'subUnitId':_0x1e1978,'initialValue':(0x0,p[_0x28f53a(0x446)])(_0x18cf36,_0x3b4a1c),'onChange':(_0x2e0bbd,_0x3d48e9)=>{const _0x25c3ef=_0x28f53a;(0x0,p[_0x25c3ef(0x446)])(_0x18cf36,_0x3b4a1c)!==_0x3d48e9&&_0x21efbb(_0x3d48e9);},'keepSheetReference':!0x0,'supportAcrossSheet':!0x0,'onVerify':(_0x302505,_0x45ae90)=>{const _0x58594b=_0x28f53a;let _0x286edc=_0x45ae90['split'](',')['filter'](_0x13e07f=>!!_0x13e07f);if(!_0x286edc[0x0]){_0x535675(_0xb517['t']('sheets-pivot-ui.msg.emptySourceRange'));return;}if(!_0x302505){_0x535675(_0xb517['t']('sheets-pivot-ui.msg.invalidSize'));return;}let _0x25b00f=(0x0,p['deserializeRangeWithSheet'])(_0x286edc[0x0]),_0x35efbb=_0x25b00f['sheetName']||_0x518858[_0x58594b(0x3d3)];if(_0x4a6d02)switch(vt(_0x4a6d02[_0x58594b(0x5f7)](_0x35efbb),_0x25b00f[_0x58594b(0x503)])){case 0x2:_0x535675(void 0x0);break;case 0x0:_0x535675(_0xb517['t'](_0x58594b(0x4c1)));break;case 0x1:_0x535675(_0xb517['t'](_0x58594b(0x563)));}},'maxRangeCount':0x1,'onFocusChange':_0x1656ab=>{_0x33181e(_0x1656ab);},'onRangeSelectorDialogVisibleChange':_0xe4b47b=>{_0x33181e(!!_0xe4b47b);}}),_0x1d2c77?(0x0,d[_0x28f53a(0x364)])('div',{'className':_0x28f53a(0x684),'children':_0x1d2c77}):null]})]});}function jr(_0x93c3b7){const _0x35b5c5=_0x14e1ea;let {type:_0x3f1849}=_0x93c3b7;switch(_0x3f1849){case e[_0x35b5c5(0x334)]['text']:return(0x0,d[_0x35b5c5(0x364)])(u[_0x35b5c5(0x54c)],{'className':_0x35b5c5(0x40e)});case e[_0x35b5c5(0x334)][_0x35b5c5(0x26e)]:return(0x0,d[_0x35b5c5(0x364)])(u[_0x35b5c5(0x26c)],{'className':'univer-mx-1.5\x20univer-my-0\x20univer-h-4\x20univer-text-xs\x20univer-text-gray-200\x20dark:!univer-text-gray-600'});case e[_0x35b5c5(0x334)][_0x35b5c5(0x1c4)]:return(0x0,d[_0x35b5c5(0x364)])(u[_0x35b5c5(0x6d8)],{'className':_0x35b5c5(0x40e)});}}function Mr(_0x47a9d1){const _0x5a9bc6=_0x14e1ea;if(!_0x47a9d1)return!0x1;if(_0x47a9d1['type']===e['PivotFilterTypeEnum']['RecordFilter']){var _0x2cd703;return _0x47a9d1[_0x5a9bc6(0x30b)]!==void 0x0||(((_0x2cd703=_0x47a9d1[_0x5a9bc6(0x5d9)])==null?void 0x0:_0x2cd703[_0x5a9bc6(0x5d4)])??n[_0x5a9bc6(0x493)][_0x5a9bc6(0x3ec)])!==n[_0x5a9bc6(0x493)][_0x5a9bc6(0x3ec)];}return _0x47a9d1[_0x5a9bc6(0x314)]!==e['PivotFilterTypeEnum']['ManualFilter']||_0x47a9d1[_0x5a9bc6(0x289)]!==!0x0;}function Nr(_0x457327){const _0x43c02e=_0x14e1ea;let {name:_0x3308e8,dataFieldId:_0xba2a8c,checked:_0x43c26c,type:_0x5b8499,refreshHandler:_0x1ac085,pivotTableId:_0x4b9de5,draggingId:_0x37b18b,pivotTableInfo:_0x1d4097,unitId:_0x4cadd3,subUnitId:_0xa94f64}=_0x457327,[_0x4875a5,_0x3d04ec]=(0x0,f['useState'])(!0x1),_0x4ca148=(0x0,i[_0x43c02e(0x1e8)])(n['ICommandService']),_0x280ea2=(0x0,i['useDependency'])(n[_0x43c02e(0x2a4)]);if(!_0x1d4097)return null;let {rowFields:_0x4da972,columnFields:_0x2c53b0,filterFields:_0x5a44b8,valueFields:_0x2e883d}=_0x1d4097,_0x349623=_0x1d4097[_0x43c02e(0x588)]??[],_0x36e4a0=[..._0x4da972,..._0x2c53b0,..._0x5a44b8,..._0x2e883d,..._0x349623],_0x2df68a=_0x349623[_0x43c02e(0x1ba)](_0x51ffa6=>_0x51ffa6[_0x43c02e(0x3cd)]===_0xba2a8c),_0x23906a=async _0x3a43f5=>{const _0x2a6b7a=_0x43c02e;let _0x1cfae3=!!_0x3a43f5,_0x1432ba=!0x1;if(_0x1cfae3){let _0x59fe07={'pivotTableId':_0x4b9de5,'dataFieldId':_0xba2a8c,'fieldArea':_0x5b8499===e[_0x2a6b7a(0x334)]['number']?e['PivotTableFiledAreaEnum']['Value']:e[_0x2a6b7a(0x2d0)][_0x2a6b7a(0x561)],'unitId':_0x4cadd3,'subUnitId':_0xa94f64,'index':_0x5b8499===e[_0x2a6b7a(0x334)][_0x2a6b7a(0x26e)]?_0x2e883d['length']:_0x4da972['length']};_0x1432ba=await _0x4ca148[_0x2a6b7a(0x2f1)](t[_0x2a6b7a(0x4ad)]['id'],_0x59fe07);}else{let _0x5057f9=[];_0x36e4a0[_0x2a6b7a(0x263)](_0x2a581f=>{const _0x2ef1ba=_0x2a6b7a;_0x2a581f[_0x2ef1ba(0x3cd)]===_0xba2a8c&&_0x5057f9['push'](_0x2a581f['tableFieldId']);}),_0x1432ba=await _0x4ca148[_0x2a6b7a(0x2f1)](t[_0x2a6b7a(0x3d4)]['id'],{'pivotTableId':_0x4b9de5,'fieldIds':_0x5057f9,'unitId':_0x4cadd3,'subUnitId':_0xa94f64});}_0x1432ba&&_0x1ac085();},_0x78f118=async _0x4d1111=>{const _0x4d476c=_0x43c02e;let _0x51a777=!0x1,_0x26401d='';if([..._0x4da972,..._0x2c53b0,..._0x5a44b8,..._0x349623][_0x4d476c(0x263)](_0x3cf76f=>{const _0x499b18=_0x4d476c;_0x3cf76f['dataFieldId']===_0xba2a8c&&(_0x51a777=!0x0,_0x26401d=_0x3cf76f[_0x499b18(0x5df)]);}),_0x51a777&&_0x4d1111!==e[_0x4d476c(0x2d0)][_0x4d476c(0x547)]){if(_0x4b9de5){let _0x107a6e=zt(_0x1d4097,_0x4d1111),_0x39f3c1={'pivotTableId':_0x4b9de5,'area':_0x4d1111,'index':_0x107a6e,'fieldId':_0x26401d,'unitId':_0x4cadd3,'subUnitId':_0xa94f64};await _0x4ca148[_0x4d476c(0x2f1)](t[_0x4d476c(0x5e7)]['id'],_0x39f3c1)&&_0x1ac085();}}else{if(_0x4b9de5){let _0x18651d={'pivotTableId':_0x4b9de5,'dataFieldId':_0xba2a8c,'fieldArea':_0x4d1111,'unitId':_0x4cadd3,'subUnitId':_0xa94f64,'index':zt(_0x1d4097,_0x4d1111)};await _0x4ca148['executeCommand'](t[_0x4d476c(0x4ad)]['id'],_0x18651d)&&_0x1ac085();}}};return(0x0,d[_0x43c02e(0x322)])(_0x43c02e(0x2ca),{'className':(0x0,s[_0x43c02e(0x4f8)])(_0x43c02e(0x670),{'univer-flex\x20univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x37b18b===_0xba2a8c}),'id':_0x43c02e(0x52f)+_0xba2a8c,'onContextMenu':_0x2767bb=>{const _0xfd356b=_0x43c02e;_0x2767bb[_0xfd356b(0x28a)](),_0x3d04ec(!0x0);},'children':[(0x0,d['jsx'])(_0x43c02e(0x55e),{'className':_0x43c02e(0x3f7),'children':(0x0,d[_0x43c02e(0x364)])(u['GripVerticalIcon'],{})}),(0x0,d[_0x43c02e(0x364)])(s[_0x43c02e(0x1c1)],{'className':_0x43c02e(0x223),'checked':_0x43c26c,'onChange':_0x23906a}),(0x0,d[_0x43c02e(0x322)])('div',{'className':_0x43c02e(0x5a9),'children':[(0x0,d[_0x43c02e(0x364)])(jr,{'type':_0x5b8499}),(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x55e),{'className':_0x43c02e(0x230),'children':_0x3308e8})]}),(0x0,d['jsx'])(s[_0x43c02e(0x2b2)],{'align':_0x43c02e(0x3d0),'side':_0x43c02e(0x417),'open':_0x4875a5,'onOpenChange':_0x3d04ec,'overlay':(0x0,d['jsxs'])('div',{'children':[Mr(_0x2df68a==null?void 0x0:_0x2df68a['filterInfo'])&&(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x2ca),{'className':_0x43c02e(0x19e),'onClick':async()=>{const _0x370844=_0x43c02e;_0x2df68a&&(_0x3d04ec(!0x1),await _0x4ca148[_0x370844(0x2f1)](t['SetPivotFilterCommand']['id'],{'unitId':_0x4cadd3,'subUnitId':_0xa94f64,'pivotTableId':_0x4b9de5,'tableFieldId':_0x2df68a[_0x370844(0x5df)],'items':[],'partialItems':[],'isAll':!0x0})&&_0x1ac085());},'children':_0x280ea2['t'](_0x43c02e(0x24a))}),(0x0,d[_0x43c02e(0x364)])('div',{'className':_0x43c02e(0x19e),'onClick':()=>{const _0x19647b=_0x43c02e;_0x3d04ec(!0x1),_0x78f118(e[_0x19647b(0x2d0)]['Row']);},'children':_0x280ea2['t'](_0x43c02e(0x562))}),(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x2ca),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-0\x20dark:hover:!univer-bg-gray-700','onClick':()=>{const _0x2410d3=_0x43c02e;_0x3d04ec(!0x1),_0x78f118(e[_0x2410d3(0x2d0)][_0x2410d3(0x632)]);},'children':_0x280ea2['t'](_0x43c02e(0x2a9))}),(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x2ca),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-0\x20dark:hover:!univer-bg-gray-700','onClick':()=>{const _0x286e22=_0x43c02e;_0x3d04ec(!0x1),_0x78f118(e['PivotTableFiledAreaEnum'][_0x286e22(0x547)]);},'children':_0x280ea2['t'](_0x43c02e(0x444))}),(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x2ca),{'className':_0x43c02e(0x19e),'onClick':()=>{const _0x256914=_0x43c02e;_0x3d04ec(!0x1),_0x78f118(e[_0x256914(0x2d0)][_0x256914(0x1d0)]);},'children':_0x280ea2['t']('sheets-pivot-ui.addToFilter')})]}),'children':(0x0,d[_0x43c02e(0x364)])(_0x43c02e(0x2ca),{'className':(0x0,s[_0x43c02e(0x4f8)])(_0x43c02e(0x4a6),{'univer-opacity-100':_0x4875a5,'univer-opacity-0\x20group-hover:univer-opacity-100':!_0x4875a5}),'onMouseDown':_0x2602cc=>_0x2602cc['stopPropagation'](),'onClick':_0x5c4253=>_0x5c4253[_0x43c02e(0x56c)](),'children':(0x0,d[_0x43c02e(0x364)])(u[_0x43c02e(0x388)],{'className':_0x43c02e(0x3be)})})})]},_0xba2a8c);}function Pr(_0x42c497){const _0x4c906b=_0x14e1ea;let {sourceList:_0x102181,refreshHandler:_0x57ef7a,pivotTableId:_0x309a14,pivotTableInfo:_0x2082d4,unitId:_0x4eabc1,draggingId:_0x19eaca,subUnitId:_0x21b006}=_0x42c497,_0x349130=(0x0,i[_0x4c906b(0x1e8)])(n[_0x4c906b(0x2a4)]),[_0x1a9636,_0x9dede9]=(0x0,f['useState'])(''),_0x2943fd=_0x1a9636[_0x4c906b(0x5e9)]()[_0x4c906b(0x68e)](),_0x5e0861=_0x2943fd?_0x102181['filter'](_0x3d819a=>_0x3d819a[_0x4c906b(0x6d0)][_0x4c906b(0x68e)]()['includes'](_0x2943fd)):_0x102181;return(0x0,d[_0x4c906b(0x322)])(_0x4c906b(0x2ca),{'className':_0x4c906b(0x685),'children':[(0x0,d['jsx'])('p',{'className':'univer-mb-1\x20univer-mt-0\x20univer-text-sm\x20univer-font-medium\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x349130['t'](_0x4c906b(0x4c2))}),(0x0,d[_0x4c906b(0x364)])('p',{'className':_0x4c906b(0x366),'children':_0x349130['t'](_0x4c906b(0x51e))}),(0x0,d[_0x4c906b(0x364)])(s[_0x4c906b(0x495)],{'allowClear':!0x0,'className':_0x4c906b(0x5a0),'placeholder':_0x349130['t'](_0x4c906b(0x658)),'slot':(0x0,d['jsx'])(u[_0x4c906b(0x5b7)],{}),'value':_0x1a9636,'onChange':_0x9dede9}),(0x0,d[_0x4c906b(0x364)])('div',{'className':(0x0,s[_0x4c906b(0x4f8)])('univer-box-border\x20univer-min-h-0\x20univer-flex-1\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900',s['borderClassName']),'children':(0x0,d['jsx'])(_0x4c906b(0x2ca),{'className':(0x0,s[_0x4c906b(0x4f8)])(_0x4c906b(0x689),s[_0x4c906b(0x273)]),'data-testid':_0x4c906b(0x485),'children':(0x0,d[_0x4c906b(0x364)])(xr,{'droppableId':_0x4c906b(0x28e),'direction':_0x4c906b(0x6c2),'isCombineEnabled':!0x1,'ignoreContainerClipping':!0x1,'isDropDisabled':!0x0,'children':_0x4658ea=>(0x0,d['jsxs'])(_0x4c906b(0x2ca),{'ref':_0x4658ea['innerRef'],'className':_0x4c906b(0x619),..._0x4658ea[_0x4c906b(0x6e7)],'children':[_0x5e0861['map']((_0x9d997b,_0x2ad322)=>(0x0,d[_0x4c906b(0x364)])(_0x4c906b(0x2ca),{'className':'univer-relative\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-items-center\x20univer-gap-1\x20univer-self-stretch\x20univer-border\x20univer-border-transparent\x20univer-p-0.5\x20univer-leading-4\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','children':(0x0,d[_0x4c906b(0x364)])(Sr,{'draggableId':_0x9d997b['id'],'isDragDisabled':!0x1,'index':_0x2ad322,'children':({innerRef:_0x22886e,draggableProps:_0x158e68,dragHandleProps:_0x255da3})=>(0x0,d[_0x4c906b(0x364)])('div',{'ref':_0x22886e,..._0x158e68,..._0x255da3,'className':'univer-h-8\x20univer-w-full','style':_0x158e68['style'],'children':(0x0,d[_0x4c906b(0x364)])(Nr,{'draggingId':_0x19eaca,'unitId':_0x4eabc1,'subUnitId':_0x21b006,..._0x9d997b,'refreshHandler':_0x57ef7a,'pivotTableId':_0x309a14,'pivotTableInfo':_0x2082d4})})},_0x9d997b['id'])},_0x9d997b['id'])),_0x5e0861['length']===0x0&&(0x0,d[_0x4c906b(0x364)])(_0x4c906b(0x2ca),{'className':_0x4c906b(0x481),'children':_0x349130['t'](_0x4c906b(0x64f))})]})})})})]});}function Fr(_0xb449f0){const _0x590bc3=_0x14e1ea;let {pivotTableId:_0x265687,version:_0x4fbd8f,unitId:_0x48d9dc,subUnitId:_0x518022,panelInfo:_0x5308be}=_0xb449f0,_0x1ff120=(0x0,i['useDependency'])(t[_0x590bc3(0x6ad)]),_0x580ca0=(0x0,f[_0x590bc3(0x68c)])(()=>_0x1ff120[_0x590bc3(0x32e)](_0x48d9dc,_0x518022,_0x265687)[_0x590bc3(0x3b1)]((0x0,o['debounceTime'])(0x0)),[_0x1ff120,_0x48d9dc,_0x518022,_0x265687]),_0x3f1f13=(0x0,i[_0x590bc3(0x391)])(_0x580ca0),_0x13208e=(0x0,i[_0x590bc3(0x1e8)])(t['SheetsPivotRPCService']),_0xb7b51c=(0x0,i[_0x590bc3(0x1e8)])(Q),_0x4d1ce2=(0x0,i[_0x590bc3(0x391)])(_0xb7b51c['pivotTablePanelVisible$'],!0x0),_0x5e4efa=(0x0,i[_0x590bc3(0x1e8)])(n['ICommandService']),_0x35d2ec=(0x0,i[_0x590bc3(0x1e8)])(n['ILogService']),[_0x6c6d81,_0x1eded0]=(0x0,f['useState'])(_0x5308be),[_0x4e4b49,_0x8ec711]=(0x0,f[_0x590bc3(0x53a)])(null),_0x353391=(0x0,f[_0x590bc3(0x4ee)])(async()=>{const _0x129177=_0x590bc3;if(!_0x1ff120[_0x129177(0x4c8)](_0x48d9dc,_0x518022,_0x265687))return;let _0x444bbd=await _0x13208e[_0x129177(0x32a)]({'unitId':_0x48d9dc,'subUnitId':_0x518022,'pivotTableId':_0x265687,'params':{'type':t[_0x129177(0x32d)][_0x129177(0x3a5)],'panel':{'pivotTableId':_0x265687}}});_0x444bbd[_0x129177(0x2d5)][_0x129177(0x2b3)]&&_0x1eded0(_0x444bbd[_0x129177(0x2d5)][_0x129177(0x2b3)]);},[_0x265687,_0x13208e,_0x1ff120,_0x518022,_0x48d9dc]);(0x0,f[_0x590bc3(0x5aa)])(()=>{const _0x557bd7=_0x590bc3;_0x353391()[_0x557bd7(0x662)](_0x2c43d5=>_0x35d2ec[_0x557bd7(0x41e)](_0x557bd7(0x290),_0x2c43d5));},[_0x35d2ec,_0x3f1f13,_0x265687,_0x353391,_0x4fbd8f]);let _0x3eb4e4=async _0x18f203=>{const _0x5ee079=_0x590bc3;let {source:_0x3f9b71,destination:_0x5cade4,draggableId:_0x80d7b4}=_0x18f203;_0x8ec711(null);let _0x599dc5={'pivotTableInfo':_0x6c6d81,'pivotTableId':_0x265687,'commandService':_0x5e4efa,'unitId':_0x48d9dc,'subUnitId':_0x518022},_0x2f9955=_0x3f9b71[_0x5ee079(0x319)];if(_0x5cade4&&_0x5cade4['droppableId']){let _0x3b47d6=_0x5cade4[_0x5ee079(0x319)];await St(_0x599dc5,_0x80d7b4,_0x2f9955,_0x3b47d6,_0x5cade4[_0x5ee079(0x34b)]),await _0x353391();}_0x5cade4===null&&(await yt(_0x599dc5,_0x80d7b4,_0x2f9955),await _0x353391());},_0x111c12=_0x26185a=>{const _0x1042c2=_0x590bc3;_0x8ec711({'draggingId':_0x26185a[_0x1042c2(0x5de)]});},_0x567c36=_0x1f0663=>{let {draggableId:_0x295bfa,destination:_0x360914,source:_0x52f501}=_0x1f0663;_0x8ec711({'draggingId':_0x295bfa,'destination':_0x360914,'source':_0x52f501});};if(!_0x4d1ce2||!_0x6c6d81)return null;let {sourceList:_0x31d62d,rowFields:_0x263727,columnFields:_0x5aee85,filterFields:_0x1031ab,valueFields:_0xb88776,sourceRange:_0x5a5f02,positionInfo:_0x16fb3f}=_0x6c6d81;return(0x0,d[_0x590bc3(0x322)])(_0x590bc3(0x2ca),{'className':(0x0,s['clsx'])(_0x590bc3(0x1df),s[_0x590bc3(0x273)]),'children':[(0x0,d[_0x590bc3(0x364)])(Ar,{'sourceRangeInfo':_0x5a5f02,'pivotTableId':_0x265687,'refreshHandler':_0x353391,'positionInfo':_0x16fb3f}),(0x0,d[_0x590bc3(0x322)])(br,{'onDragEnd':_0x3eb4e4,'onDragStart':_0x111c12,'onDragUpdate':_0x567c36,'children':[(0x0,d['jsx'])(Pr,{'draggingId':(_0x4e4b49==null?void 0x0:_0x4e4b49[_0x590bc3(0x590)])??'','sourceList':_0x31d62d,'refreshHandler':_0x353391,'pivotTableId':_0x265687,'pivotTableInfo':_0x6c6d81,'unitId':_0x48d9dc,'subUnitId':_0x518022}),(0x0,d[_0x590bc3(0x364)])(Ir,{'rowFields':_0x263727,'columnFields':_0x5aee85,'filterFields':_0x1031ab,'valueFields':_0xb88776,'refreshHandler':_0x353391,'positionInfo':_0x16fb3f,'pivotTableId':_0x265687,'pivotTableInfo':_0x6c6d81})]})]});}function Ir(_0x5435fa){const _0x50c8ff=_0x14e1ea;let {rowFields:_0x5d10c5,columnFields:_0x348e45,filterFields:_0x14e0ca,valueFields:_0x1df75a,refreshHandler:_0x54225a,pivotTableInfo:_0xf81455,positionInfo:_0x1a7d90,pivotTableId:_0x3e2d63}=_0x5435fa;return(0x0,d[_0x50c8ff(0x322)])(_0x50c8ff(0x2ca),{'className':_0x50c8ff(0x51a),'data-testid':'pivot-field-areas','children':[(0x0,d[_0x50c8ff(0x322)])('div',{'className':'univer-flex\x20univer-flex-row\x20univer-gap-4','children':[(0x0,d['jsx'])(Or,{'areaType':_0x50c8ff(0x327),'items':_0x14e0ca,'positionInfo':_0x1a7d90,'pivotTableId':_0x3e2d63,'pivotTableInfo':_0xf81455,'refreshHandler':_0x54225a}),(0x0,d['jsx'])(Or,{'areaType':'column','items':_0x348e45,'positionInfo':_0x1a7d90,'pivotTableId':_0x3e2d63,'pivotTableInfo':_0xf81455,'refreshHandler':_0x54225a})]}),(0x0,d[_0x50c8ff(0x322)])(_0x50c8ff(0x2ca),{'className':'univer-flex\x20univer-flex-row\x20univer-gap-4','children':[(0x0,d[_0x50c8ff(0x364)])(Or,{'areaType':_0x50c8ff(0x5f4),'items':_0x5d10c5,'positionInfo':_0x1a7d90,'pivotTableId':_0x3e2d63,'pivotTableInfo':_0xf81455,'refreshHandler':_0x54225a}),(0x0,d[_0x50c8ff(0x364)])(Or,{'areaType':_0x50c8ff(0x320),'items':_0x1df75a,'positionInfo':_0x1a7d90,'pivotTableId':_0x3e2d63,'pivotTableInfo':_0xf81455,'refreshHandler':_0x54225a})]})]});}function Lr(_0x79437e){const _0x157791=_0x14e1ea;let {className:_0x21ce00,unitId:_0x53d57b,subUnitId:_0x21ab2e,pivotTableId:_0x155923}=_0x79437e,[_0xc66e0a,_0x4a6065]=(0x0,f['useState'])(0x0),_0x4b89a3=(0x0,i['useDependency'])(n[_0x157791(0x2a4)]),_0x4eb68f=_0x4b89a3[_0x157791(0x4c7)]();return(0x0,d[_0x157791(0x322)])(_0x157791(0x2ca),{'className':(0x0,s[_0x157791(0x4f8)])('univer-flex\x20univer-size-full\x20univer-min-h-0\x20univer-flex-col',_0x21ce00),'dir':_0x4eb68f,'children':[(0x0,d[_0x157791(0x322)])(_0x157791(0x2ca),{'className':_0x157791(0x69b),'children':[(0x0,d['jsxs'])(_0x157791(0x2ca),{'className':(0x0,s[_0x157791(0x4f8)])('univer-mr-5\x20univer-cursor-default\x20univer-py-4\x20univer-text-center\x20univer-text-sm\x20univer-font-semibold\x20rtl:univer-ml-5\x20rtl:univer-mr-0',_0xc66e0a===0x0?_0x157791(0x266):_0x157791(0x282)),'onClick':()=>_0x4a6065(0x0),'children':[_0x4b89a3['t'](_0x157791(0x464)),(0x0,d[_0x157791(0x364)])(_0x157791(0x2ca),{'className':(0x0,s['clsx'])(_0x157791(0x6f6),{'univer-bg-primary-600':_0xc66e0a===0x0,'univer-bg-transparent':_0xc66e0a!==0x0})})]}),(0x0,d['jsxs'])('div',{'className':(0x0,s[_0x157791(0x4f8)])(_0x157791(0x470),{'univer-text-primary-600':_0xc66e0a===0x1,'univer-text-gray-500':_0xc66e0a!==0x1}),'onClick':()=>_0x4a6065(0x1),'children':[_0x4b89a3['t']('sheets-pivot-ui.configPanel'),(0x0,d[_0x157791(0x364)])(_0x157791(0x2ca),{'className':(0x0,s[_0x157791(0x4f8)])('univer-mx-auto\x20univer-mt-2\x20univer-h-1\x20univer-w-1/2\x20univer-rounded-md\x20univer-bg-primary-600',{'univer-bg-primary-600':_0xc66e0a===0x1,'univer-bg-transparent':_0xc66e0a!==0x1})})]})]}),(0x0,d['jsx'])(_0x157791(0x2ca),{'className':(0x0,s[_0x157791(0x4f8)])(_0x157791(0x58e),_0xc66e0a===0x0?'univer-overflow-hidden':_0x157791(0x604)),'children':_0xc66e0a===0x0?(0x0,d[_0x157791(0x364)])(Fr,{..._0x79437e}):(0x0,d[_0x157791(0x364)])(pr,{'unitId':_0x53d57b,'subUnitId':_0x21ab2e,'pivotTableId':_0x155923})})]});}function Rr(_0x1855fc){const _0x3e6ce1=_0x14e1ea;let {unitId:_0x348675,subUnitId:_0x505505,pivotTableId:_0x28bef9,tableFieldId:_0x5386e2,type:_0x53b41e}=_0x1855fc,_0x107c7b=JSON[_0x3e6ce1(0x43e)]([_0x348675,_0x505505,_0x28bef9,_0x5386e2,_0x53b41e]);return(0x0,d[_0x3e6ce1(0x364)])(zr,{..._0x1855fc},_0x107c7b);}function zr({unitId:_0xa9e119,subUnitId:_0x3bbef7,pivotTableId:_0x4abc99,tableFieldId:_0x2a0bc3,type:_0x2a2bc5,baseItems:_0x282805,onConfirm:_0x5ef031,onCancel:_0x3be3c9}){const _0x28b75a=_0x14e1ea;var _0xc61f9a;let _0x27bdf4=(0x0,i[_0x28b75a(0x1e8)])(t[_0x28b75a(0x6ad)]),_0x4714b2=(0x0,i[_0x28b75a(0x1e8)])(n[_0x28b75a(0x2a4)]),_0x4899ff=(0x0,i[_0x28b75a(0x391)])(_0x4714b2[_0x28b75a(0x648)],_0x4714b2[_0x28b75a(0x4c7)]()),_0x46dac2=de[_0x28b75a(0x1ba)](_0x36d7e5=>_0x36d7e5[_0x28b75a(0x314)]===_0x2a2bc5),_0x29cdcb=_0x27bdf4[_0x28b75a(0x4c8)](_0xa9e119,_0x3bbef7,_0x4abc99),_0x2fe79a=_0x29cdcb==null||(_0xc61f9a=_0x29cdcb[_0x28b75a(0x30c)]['measure'][_0x2a0bc3])==null?void 0x0:_0xc61f9a[_0x28b75a(0x269)],_0x4ed722=()=>{const _0x4bd64e=_0x28b75a;var _0x28479e;if((_0x2fe79a==null?void 0x0:_0x2fe79a[_0x4bd64e(0x314)])!==_0x2a2bc5||!_0x2fe79a[_0x4bd64e(0x1f7)])return'';if(_0x2fe79a[_0x4bd64e(0x362)]===e[_0x4bd64e(0x657)][_0x4bd64e(0x3ac)])return _0x4bd64e(0x435);if(_0x2fe79a[_0x4bd64e(0x362)]===e[_0x4bd64e(0x657)]['next'])return _0x4bd64e(0x2c4);let _0x45ac17=((_0x28479e=_0x282805[_0x2fe79a['baseFieldId']])==null?void 0x0:_0x28479e[_0x4bd64e(0x2fc)]['indexOf'](_0x2fe79a[_0x4bd64e(0x3a1)]))??-0x1;return _0x45ac17<0x0?'':_0x4bd64e(0x5e2)+_0x45ac17;},[_0x405fd8,_0x3d80dc]=(0x0,f[_0x28b75a(0x53a)])((_0x2fe79a==null?void 0x0:_0x2fe79a[_0x28b75a(0x314)])===_0x2a2bc5?_0x2fe79a['baseFieldId']:''),[_0x25e3f6,_0x79510c]=(0x0,f['useState'])(_0x4ed722),_0x5580b0=(0x0,f[_0x28b75a(0x4a8)])(!0x1),[_0x19975e,_0x10e642]=(0x0,f[_0x28b75a(0x53a)])(!0x1),_0x57d39b=_0x27bdf4[_0x28b75a(0x4c8)](_0xa9e119,_0x3bbef7,_0x4abc99),_0x16a997=_0x27bdf4['getCollection'](_0xa9e119,_0x4abc99),_0x4383a2=_0x57d39b==null?void 0x0:_0x57d39b[_0x28b75a(0x30c)][_0x28b75a(0x669)][_0x2a0bc3],_0x1ce46d=!!(_0x4383a2&&_0x16a997&&(_0x16a997[_0x28b75a(0x287)][_0x4383a2[_0x28b75a(0x3cd)]]||_0x16a997[_0x28b75a(0x358)][_0x28b75a(0x1ba)](_0x4b1928=>_0x4b1928['id']===_0x4383a2[_0x28b75a(0x3cd)]))),_0x39a6d0=(_0x57d39b&&_0x16a997&&_0x46dac2?pe(_0x57d39b,_0x16a997,_0x46dac2):[])['filter'](_0x3c7dfe=>{const _0x540d54=_0x28b75a;let _0x280360=_0x282805[_0x3c7dfe];return(_0x46dac2==null?void 0x0:_0x46dac2[_0x540d54(0x23a)])==='none'||!!(_0x280360&&((_0x46dac2==null?void 0x0:_0x46dac2[_0x540d54(0x23a)])==='item-or-relative'||_0x280360[_0x540d54(0x2fc)][_0x540d54(0x2f3)]>0x0));}),_0xa746a5=_0x39a6d0['map'](_0x43a988=>({'label':_0x57d39b['fieldsConfig'][_0x28b75a(0x3a7)][_0x43a988][_0x28b75a(0x2db)],'value':_0x43a988})),_0x4a88e3=_0x57d39b==null?void 0x0:_0x57d39b[_0x28b75a(0x30c)][_0x28b75a(0x3a7)][_0x405fd8],_0x3f095b=_0x4a88e3&&_0x16a997&&(_0x16a997[_0x28b75a(0x287)][_0x4a88e3[_0x28b75a(0x3cd)]]??_0x16a997['customFields'][_0x28b75a(0x1ba)](_0x24180f=>_0x24180f['id']===_0x4a88e3[_0x28b75a(0x3cd)])),_0x2e1f23=_0x282805[_0x405fd8],_0x881aa8=(_0x2e1f23==null?void 0x0:_0x2e1f23[_0x28b75a(0x2fc)][_0x28b75a(0x505)]((_0x509264,_0x2ba29a)=>{const _0x1fe648=_0x28b75a;var _0x2b8e94;let _0x1e5bee=_0x2e1f23['itemTypes'][_0x2ba29a],_0x466b8c=(_0x2b8e94=_0x2e1f23[_0x1fe648(0x6b5)])==null?void 0x0:_0x2b8e94[_0x509264],_0x1eb28f=_0x509264;return _0x466b8c===void 0x0?_0x1e5bee===e[_0x1fe648(0x334)]['blank']?_0x1eb28f=_0x4714b2['t'](_0x1fe648(0x5d8)):_0x1e5bee===e['PivotDataFieldDataTypeEnum'][_0x1fe648(0x66d)]?_0x1eb28f=_0x4714b2['t'](_0x1fe648(0x33a)):(_0x1e5bee===e[_0x1fe648(0x334)]['date']||_0x1e5bee===e[_0x1fe648(0x334)][_0x1fe648(0x26e)])&&_0x2e1f23[_0x1fe648(0x65d)]&&(_0x1eb28f=n['numfmt'][_0x1fe648(0x65d)](_0x2e1f23['format'],Number(_0x509264))):_0x1eb28f=_0x466b8c,{'label':_0x1eb28f,'value':_0x1fe648(0x5e2)+_0x2ba29a,'itemKey':_0x509264};}))??[];(_0x46dac2==null?void 0x0:_0x46dac2['baseItemMode'])==='item-or-relative'&&_0x881aa8['push']({'label':_0x4714b2['t']('sheets-pivot-ui.showValuesAs.previous'),'value':_0x28b75a(0x435),'itemKey':'','itemType':e[_0x28b75a(0x657)][_0x28b75a(0x3ac)]},{'label':_0x4714b2['t'](_0x28b75a(0x472)),'value':'relative:next','itemKey':'','itemType':e['PivotShowAsBaseItemTypeEnum'][_0x28b75a(0x65a)]});let _0x3d58d9=_0x881aa8[_0x28b75a(0x1ba)](_0x583670=>_0x583670['value']===_0x25e3f6),_0x5b42fe=!!(_0x46dac2!=null&&_0x46dac2[_0x28b75a(0x23a)]&&_0x46dac2[_0x28b75a(0x23a)]!==_0x28b75a(0x564)),_0x2b67e9=!!(_0x46dac2&&_0x57d39b&&_0x16a997&&_0x1ce46d&&_0x57d39b['fieldsConfig'][_0x28b75a(0x6f1)]['includes'](_0x2a0bc3)&&_0x39a6d0['includes'](_0x405fd8)&&_0x3f095b&&(!_0x5b42fe||_0x3d58d9));return(0x0,d[_0x28b75a(0x322)])(_0x28b75a(0x2ca),{'dir':_0x4899ff,'children':[(0x0,d[_0x28b75a(0x322)])('div',{'className':_0x28b75a(0x397),'children':[(0x0,d[_0x28b75a(0x364)])(_0x28b75a(0x2ca),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x4714b2['t'](_0x28b75a(0x581))}),(0x0,d[_0x28b75a(0x364)])(s[_0x28b75a(0x2bd)],{'className':_0x28b75a(0x628),'value':_0x405fd8,'options':_0xa746a5,'onChange':_0x42c5e8=>{_0x3d80dc(_0x42c5e8),_0x79510c('');}})]}),_0x5b42fe&&(0x0,d['jsxs'])(_0x28b75a(0x2ca),{'className':_0x28b75a(0x397),'children':[(0x0,d[_0x28b75a(0x364)])(_0x28b75a(0x2ca),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x4714b2['t'](_0x28b75a(0x1fe))}),(0x0,d['jsx'])(s[_0x28b75a(0x2bd)],{'className':_0x28b75a(0x628),'value':_0x25e3f6,'options':_0x881aa8,'disabled':!_0x405fd8,'onChange':_0x79510c})]}),(0x0,d[_0x28b75a(0x322)])('div',{'className':'univer-flex\x20univer-justify-end\x20univer-gap-3','children':[(0x0,d[_0x28b75a(0x364)])(s[_0x28b75a(0x233)],{'onClick':_0x3be3c9,'children':_0x4714b2['t'](_0x28b75a(0x579))}),(0x0,d[_0x28b75a(0x364)])(s[_0x28b75a(0x233)],{'variant':_0x28b75a(0x5b8),'disabled':!_0x2b67e9||_0x19975e,'onClick':async()=>{const _0x106ea1=_0x28b75a;let _0x33a839=_0x27bdf4[_0x106ea1(0x4c8)](_0xa9e119,_0x3bbef7,_0x4abc99),_0x16e622=_0x27bdf4[_0x106ea1(0x353)](_0xa9e119,_0x4abc99),_0x33c21e=_0x33a839==null?void 0x0:_0x33a839[_0x106ea1(0x30c)][_0x106ea1(0x669)][_0x2a0bc3];if(!_0x46dac2||!_0x33a839||!_0x16e622||!_0x33c21e||_0x5580b0[_0x106ea1(0x68f)]||!_0x33a839[_0x106ea1(0x30c)][_0x106ea1(0x6f1)][_0x106ea1(0x3a9)](_0x2a0bc3)||!(_0x16e622[_0x106ea1(0x287)][_0x33c21e[_0x106ea1(0x3cd)]]||_0x16e622[_0x106ea1(0x358)][_0x106ea1(0x1ba)](_0x397499=>_0x397499['id']===_0x33c21e[_0x106ea1(0x3cd)]))||!pe(_0x33a839,_0x16e622,_0x46dac2)[_0x106ea1(0x3a9)](_0x405fd8)||_0x5b42fe&&!_0x3d58d9)return;let _0x1a61ea={'type':_0x2a2bc5,'baseFieldId':_0x405fd8,'baseItem':(_0x3d58d9==null?void 0x0:_0x3d58d9[_0x106ea1(0x649)])??''};(_0x3d58d9==null?void 0x0:_0x3d58d9[_0x106ea1(0x365)])!==void 0x0&&(_0x1a61ea[_0x106ea1(0x362)]=_0x3d58d9[_0x106ea1(0x365)]),_0x5580b0[_0x106ea1(0x68f)]=!0x0,_0x10e642(!0x0);try{await _0x5ef031(_0x1a61ea);}catch{}finally{_0x5580b0[_0x106ea1(0x68f)]=!0x1,_0x10e642(!0x1);}},'children':_0x4714b2['t'](_0x28b75a(0x528))})]})]});}const Br=_0x403475=>{const _0x4fbf81=_0x14e1ea;let [_0x1a8f4b,_0x394e3d]=(0x0,f[_0x4fbf81(0x53a)])(!0x1),_0x5690f9=(0x0,i[_0x4fbf81(0x1e8)])(Q);return(0x0,f[_0x4fbf81(0x5aa)])(()=>{_0x5690f9['setIsRangeSelector2Focus'](_0x1a8f4b);},[_0x1a8f4b,_0x5690f9]),(0x0,d['jsx'])(m[_0x4fbf81(0x60e)],{..._0x403475,'onFocusChange':_0x190a2b=>{const _0x4681e6=_0x4fbf81;var _0x382cff;(_0x382cff=_0x403475[_0x4681e6(0x22c)])==null||_0x382cff['call'](_0x403475,_0x190a2b),_0x394e3d(_0x190a2b);}});},Vr=(_0x4e8057,_0x48e3f2,_0x571137,_0xe7bf47,_0x50aa14,_0x1e0c83)=>(0x0,d[_0x14e1ea(0x364)])(Br,{'unitId':_0x4e8057,'subUnitId':_0x48e3f2,'initialValue':_0xe7bf47,'onChange':(_0x46a5ef,_0xaaa96f)=>_0x571137(_0xaaa96f),'maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0}),Hr=(_0x4460da,_0x18f624)=>{const _0xf9aca9=_0x14e1ea;switch(_0x4460da){case 0x1:return _0x18f624['t']('sheets-pivot-ui.msg.invalidSize');case 0x0:return _0x18f624['t'](_0xf9aca9(0x4c1));default:return'';}};function Ur(_0x9f653){const _0xf2658b=_0x14e1ea;let {unitId:_0x13bc2f,sourceRange:_0x492141,positionRange:_0x7b8354,sourceSheetName:_0x5b4b28,positionSheetName:_0x4836b3,onConfirm:_0x4c2336,onCancel:_0x343d10}=_0x9f653,_0x4a9778=(0x0,i[_0xf2658b(0x1e8)])(n[_0xf2658b(0x2a4)]),_0xbf0bcd=(0x0,i[_0xf2658b(0x1e8)])(n[_0xf2658b(0x642)]),_0x2d95e9=_0x4a9778[_0xf2658b(0x4c7)](),_0x57afe1=_0xbf0bcd[_0xf2658b(0x3e5)](_0x13bc2f),_0x208f02=(0x0,f[_0xf2658b(0x68c)])(()=>_0x57afe1[_0xf2658b(0x2ed)]()[_0xf2658b(0x595)](),[_0x57afe1]),[_0xd7b144,_0x4fe656]=(0x0,f['useState'])(_0x492141),[_0x1147fb,_0x5105eb]=(0x0,f[_0xf2658b(0x53a)])(_0x7b8354),[_0x2c9f23,_0x34ec64]=(0x0,f[_0xf2658b(0x53a)])(_0x5b4b28),[_0x41e8a4,_0x5e3ce4]=(0x0,f[_0xf2658b(0x53a)])(_0x4836b3),_0xe7aac7=(0x0,f['useRef'])(void 0x0),[_0x2a3fd5,_0x4e7f32]=(0x0,f['useState'])(),[_0x45792f,_0x1e3971]=(0x0,f[_0xf2658b(0x53a)])(t[_0xf2658b(0x1bc)][_0xf2658b(0x2a5)]),[_0x5abc36,_0x294868]=(0x0,f['useState'])(!0x0),[_0x1fa151,_0x5c18b8]=(0x0,f[_0xf2658b(0x53a)])(!0x0),[_0x5a03e7,_0x302ac1]=(0x0,f[_0xf2658b(0x53a)])(void 0x0);(0x0,f[_0xf2658b(0x5aa)])(()=>{let _0x3cf2b0=vt(_0x57afe1['getSheetBySheetName'](_0x2c9f23),_0xd7b144);_0x5c18b8(_0x3cf2b0===0x2),_0x302ac1(Hr(_0x3cf2b0,_0x4a9778));},[_0xd7b144,_0x2c9f23,_0x57afe1,_0x4a9778]);let _0x115f58=_0x2e4e10=>{const _0x4b6543=_0xf2658b;if((0x0,p['serializeRangeWithSheet'])(_0x2c9f23,_0xd7b144)===_0x2e4e10)return;let _0x39abb5=_0x2e4e10[_0x4b6543(0x60b)](',')['filter'](_0x530fb6=>!!_0x530fb6)['map'](p['deserializeRangeWithSheet']);if(Array[_0x4b6543(0x20e)](_0x39abb5)&&_0x39abb5[_0x4b6543(0x2f3)]>0x0){let {range:_0x4c21e9,sheetName:_0x113c6c}=_0x39abb5[0x0];_0x4fe656(_0x4c21e9),_0x34ec64(_0x113c6c);}_0x39abb5[0x0]||_0x302ac1(_0x4a9778['t'](_0x4b6543(0x4c1)));},_0xc132b=Vr(_0x13bc2f,_0x208f02,_0x2b3946=>{const _0x269f63=_0xf2658b;if(_0x1147fb&&(0x0,p['serializeRangeWithSheet'])(_0x41e8a4,_0x1147fb)===_0x2b3946)return;let _0x3dbadc=_0x2b3946['split'](',')[_0x269f63(0x327)](_0x227af6=>!!_0x227af6)[_0x269f63(0x505)](p[_0x269f63(0x475)]);if(_0x3dbadc[_0x269f63(0x2f3)]===0x0){_0x5105eb(null);return;}let _0x54e6d2=_0x3dbadc[0x0];_0x5105eb(_0x54e6d2['range']),_0x5e3ce4(_0x54e6d2[_0x269f63(0x3d3)]||_0x5b4b28),_0x54e6d2[_0x269f63(0x3d3)]===_0x5b4b28&&n[_0x269f63(0x6bb)][_0x269f63(0x526)](_0x54e6d2['range'],_0xd7b144)?_0x294868(!0x1):_0x294868(!0x0);},_0x1147fb?(0x0,p[_0xf2658b(0x446)])(_0x41e8a4,_0x1147fb):'',!0x1,_0x2a3fd5),_0xf0bcb7=()=>!!(_0xd7b144&&_0x1147fb&&_0x2c9f23&&_0x41e8a4&&_0x45792f===t['PositionType'][_0xf2658b(0x2c6)]&&_0x5abc36&&_0x1fa151)||!!(_0xd7b144&&_0x2c9f23&&_0x45792f===t[_0xf2658b(0x1bc)][_0xf2658b(0x2a5)]&&_0x1fa151);return(0x0,f[_0xf2658b(0x5aa)])(()=>{const _0x5b6fda=_0xf2658b;_0x4e7f32(_0xe7aac7[_0x5b6fda(0x68f)]);},[]),(0x0,d['jsxs'])('div',{'ref':_0xe7aac7,'dir':_0x2d95e9,'children':[(0x0,d[_0xf2658b(0x364)])('div',{'className':'univer-mb-2\x20univer-h-5\x20univer-text-sm\x20univer-font-medium','children':_0x4a9778['t'](_0xf2658b(0x2dc))}),Vr(_0x13bc2f,_0x208f02,_0x115f58,(0x0,p[_0xf2658b(0x446)])(_0x2c9f23,_0xd7b144),!0x0,_0x2a3fd5),_0x5a03e7&&(0x0,d['jsx'])(_0xf2658b(0x2ca),{'className':_0xf2658b(0x510),'children':_0x5a03e7}),(0x0,d[_0xf2658b(0x364)])(_0xf2658b(0x2ca),{'className':'univer-mb-2\x20univer-mt-5\x20univer-h-5\x20univer-text-sm\x20univer-font-medium','children':_0x4a9778['t']('sheets-pivot-ui.dialog.source.position')}),(0x0,d[_0xf2658b(0x322)])(s[_0xf2658b(0x680)],{'value':_0x45792f,'onChange':_0x27b649=>_0x1e3971(_0x27b649),'className':_0xf2658b(0x652),'children':[(0x0,d['jsx'])(s[_0xf2658b(0x1ce)],{'value':t[_0xf2658b(0x1bc)][_0xf2658b(0x2a5)],'children':_0x4a9778['t'](_0xf2658b(0x51f))}),(0x0,d[_0xf2658b(0x364)])(s[_0xf2658b(0x1ce)],{'value':t['PositionType'][_0xf2658b(0x2c6)],'children':_0x4a9778['t']('sheets-pivot-ui.dialog.source.existingSheet')})]}),_0x45792f===t['PositionType']['Existing']&&(0x0,d[_0xf2658b(0x322)])(d[_0xf2658b(0x63c)],{'children':[_0xc132b,!_0x5abc36&&(0x0,d[_0xf2658b(0x364)])('span',{'className':_0xf2658b(0x227),'children':_0x4a9778['t'](_0xf2658b(0x3b8))})]}),(0x0,d[_0xf2658b(0x364)])('footer',{'className':_0xf2658b(0x635),'children':(0x0,d[_0xf2658b(0x322)])(s[_0xf2658b(0x521)],{'className':_0xf2658b(0x39f),'children':[(0x0,d[_0xf2658b(0x364)])(s[_0xf2658b(0x233)],{'onClick':()=>_0x343d10(),'children':_0x4a9778['t'](_0xf2658b(0x4aa))}),(0x0,d[_0xf2658b(0x364)])(s['Button'],{'variant':_0xf2658b(0x5b8),'onClick':()=>{const _0x48bf9b=_0xf2658b;_0xf0bcb7()&&(_0x45792f===t[_0x48bf9b(0x1bc)][_0x48bf9b(0x2c6)]?_0x4c2336({'sourceRange':_0xd7b144,'sourceSheetName':_0x2c9f23,'positionRange':_0x1147fb,'positionSheetName':_0x41e8a4,'positionType':_0x45792f}):_0x4c2336({'sourceRange':_0xd7b144,'sourceSheetName':_0x2c9f23,'positionType':_0x45792f}));},'children':_0x4a9778['t'](_0xf2658b(0x356))})]})})]});}Ur[_0x14e1ea(0x22f)]=A;const Wr=[{'id':'equal','localeKey':'sheets-pivot-ui.valueFilter.equal','operator':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x222)]},{'id':_0x14e1ea(0x6bf),'localeKey':'sheets-pivot-ui.valueFilter.notEqual','operator':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x212)]},{'id':'greaterThan','localeKey':'sheets-pivot-ui.valueFilter.greaterThan','operator':e[_0x14e1ea(0x2ac)]['valueGreaterThan']},{'id':_0x14e1ea(0x555),'localeKey':_0x14e1ea(0x38c),'operator':e['ST_PivotFilterOperatorEnum'][_0x14e1ea(0x459)]},{'id':'lessThan','localeKey':_0x14e1ea(0x474),'operator':e['ST_PivotFilterOperatorEnum'][_0x14e1ea(0x3fa)]},{'id':_0x14e1ea(0x55a),'localeKey':_0x14e1ea(0x359),'operator':e[_0x14e1ea(0x2ac)]['valueLessThanOrEqual']},{'id':_0x14e1ea(0x331),'localeKey':_0x14e1ea(0x605),'operator':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x5dc)],'isBetween':!0x0},{'id':_0x14e1ea(0x330),'localeKey':_0x14e1ea(0x2f0),'operator':e[_0x14e1ea(0x2ac)]['valueNotBetween'],'isBetween':!0x0},{'id':_0x14e1ea(0x583),'localeKey':_0x14e1ea(0x213),'operator':e['ST_PivotFilterOperatorEnum'][_0x14e1ea(0x42c)],'isCount':!0x0},{'id':_0x14e1ea(0x59f),'localeKey':_0x14e1ea(0x477),'operator':e[_0x14e1ea(0x2ac)]['count'],'isBottom':!0x0,'isCount':!0x0},{'id':_0x14e1ea(0x59d),'localeKey':_0x14e1ea(0x67f),'operator':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x357)],'isPercent':!0x0},{'id':_0x14e1ea(0x292),'localeKey':_0x14e1ea(0x3d1),'operator':e[_0x14e1ea(0x2ac)][_0x14e1ea(0x357)],'isBottom':!0x0,'isPercent':!0x0}];function Gr({targetFieldId:_0x2eb071,targetFieldName:_0x3d733c,valueFields:_0x10b84a,defaultValueFieldId:_0x22fff5,currentFilter:_0x4700bd,onConfirm:_0x28edaf,onClear:_0x5f3300,onCancel:_0x4430f5}){const _0x2acabd=_0x14e1ea;function _0x529254(_0x4318b5){const _0x1ac10d=_0x13f1;var _0x3cafd2;return(_0x4318b5==null?void 0x0:_0x4318b5[_0x1ac10d(0x663)])===e['ST_PivotFilterOperatorEnum'][_0x1ac10d(0x42c)]?_0x4318b5['isBottom']?_0x1ac10d(0x59f):_0x1ac10d(0x583):(_0x4318b5==null?void 0x0:_0x4318b5[_0x1ac10d(0x663)])===e[_0x1ac10d(0x2ac)][_0x1ac10d(0x357)]?_0x4318b5['isBottom']?_0x1ac10d(0x292):_0x1ac10d(0x59d):((_0x3cafd2=Wr[_0x1ac10d(0x1ba)](_0x44fc76=>_0x44fc76[_0x1ac10d(0x663)]===(_0x4318b5==null?void 0x0:_0x4318b5['operator'])))==null?void 0x0:_0x3cafd2['id'])??_0x1ac10d(0x5be);}let _0x28ae59=(0x0,i[_0x2acabd(0x1e8)])(n[_0x2acabd(0x2a4)]),_0x93709b=(0x0,i[_0x2acabd(0x391)])(_0x28ae59[_0x2acabd(0x648)],_0x28ae59[_0x2acabd(0x4c7)]()),_0x4bf99d=_0x4700bd==null?void 0x0:_0x4700bd[_0x2acabd(0x2fb)],[_0x3dc7ce,_0x2abb90]=(0x0,f['useState'])(()=>{const _0x2305ed=_0x2acabd;let _0x5a08c4=_0x4700bd==null?void 0x0:_0x4700bd[_0x2305ed(0x2df)];return _0x5a08c4&&_0x10b84a[_0x2305ed(0x47b)](_0x3a6545=>_0x3a6545['id']===_0x5a08c4)?_0x5a08c4:_0x22fff5&&_0x10b84a[_0x2305ed(0x47b)](_0x2c7600=>_0x2c7600['id']===_0x22fff5)?_0x22fff5:_0x10b84a[_0x2305ed(0x2f3)]===0x1?_0x10b84a[0x0]['id']:'';}),[_0x3a15af,_0x4e2bb6]=(0x0,f[_0x2acabd(0x53a)])(()=>_0x529254(_0x4700bd)),[_0x2278e1,_0xb7bfbf]=(0x0,f[_0x2acabd(0x53a)])(()=>String(Array[_0x2acabd(0x20e)](_0x4bf99d)?_0x4bf99d[0x0]:_0x4bf99d??0x0)),[_0x35cc0a,_0x5c8301]=(0x0,f['useState'])(()=>String(Array[_0x2acabd(0x20e)](_0x4bf99d)?_0x4bf99d[0x1]:0x0)),_0x3b05df=(0x0,f[_0x2acabd(0x4a8)])(!0x1),[_0x3afc17,_0xabf5c1]=(0x0,f['useState'])(!0x1),_0x396cac=Wr[_0x2acabd(0x1ba)](_0x4e32a9=>_0x4e32a9['id']===_0x3a15af),_0x2679c9=_0x2278e1['trim']()!==''&&Number['isFinite'](Number(_0x2278e1)),_0xbeb349=!_0x396cac[_0x2acabd(0x1b8)]||_0x35cc0a[_0x2acabd(0x5e9)]()!==''&&Number[_0x2acabd(0x5cc)](Number(_0x35cc0a)),_0x799411=!_0x396cac[_0x2acabd(0x4c5)]||Number[_0x2acabd(0x3cb)](Number(_0x2278e1))&&Number(_0x2278e1)>=0x1,_0x40e3ec=!_0x396cac[_0x2acabd(0x6f3)]||Number(_0x2278e1)>=0x0&&Number(_0x2278e1)<=0x64,_0x47f7a8=!!(_0x10b84a[_0x2acabd(0x47b)](_0x12c9bf=>_0x12c9bf['id']===_0x3dc7ce)&&_0x2679c9&&_0xbeb349&&_0x799411&&_0x40e3ec),_0x52d1ad=async _0x1e4cb6=>{const _0x3f6244=_0x2acabd;if(!_0x3b05df[_0x3f6244(0x68f)]){_0x3b05df[_0x3f6244(0x68f)]=!0x0,_0xabf5c1(!0x0);try{await _0x1e4cb6();}catch{}finally{_0x3b05df[_0x3f6244(0x68f)]=!0x1,_0xabf5c1(!0x1);}}},_0x4b6e25=()=>_0x52d1ad(async()=>{const _0x58f201=_0x2acabd;if(!_0x47f7a8)return;let _0x176748={'operator':_0x396cac[_0x58f201(0x663)],'expected':_0x396cac[_0x58f201(0x1b8)]?[Number(_0x2278e1),Number(_0x35cc0a)]:Number(_0x2278e1),'valueFieldId':_0x3dc7ce};_0x396cac[_0x58f201(0x2c9)]&&(_0x176748['isBottom']=!0x0),await _0x28edaf(_0x176748);}),_0x2d3315=()=>_0x52d1ad(_0x5f3300);return(0x0,d[_0x2acabd(0x322)])(_0x2acabd(0x2ca),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','data-target-field-id':_0x2eb071,'dir':_0x93709b,'children':[(0x0,d['jsx'])('div',{'className':_0x2acabd(0x3ea),'children':(0x0,d[_0x2acabd(0x364)])(_0x2acabd(0x690),{'dir':'auto','children':_0x3d733c})}),(0x0,d[_0x2acabd(0x322)])(_0x2acabd(0x21c),{'className':_0x2acabd(0x1cb),'children':[_0x28ae59['t'](_0x2acabd(0x2f7)),(0x0,d[_0x2acabd(0x364)])(s[_0x2acabd(0x2bd)],{'aria-label':_0x28ae59['t']('sheets-pivot-ui.valueFilter.valueField'),'data-testid':'pivot-value-filter-value-field','value':_0x3dc7ce,'options':[{'value':'','label':_0x28ae59['t']('sheets-pivot-ui.valueFilter.selectValueField')},..._0x10b84a['map'](_0x4c3b3e=>({'value':_0x4c3b3e['id'],'label':_0x4c3b3e['label']}))],'onChange':_0x2abb90})]}),(0x0,d[_0x2acabd(0x322)])(_0x2acabd(0x21c),{'className':_0x2acabd(0x1cb),'children':[_0x28ae59['t'](_0x2acabd(0x56a)),(0x0,d['jsx'])(s['Select'],{'aria-label':_0x28ae59['t'](_0x2acabd(0x56a)),'data-testid':_0x2acabd(0x3f2),'value':_0x3a15af,'options':Wr['map'](_0x2d4708=>({'value':_0x2d4708['id'],'label':_0x28ae59['t'](_0x2d4708[_0x2acabd(0x4b4)])})),'onChange':_0x472be4=>_0x4e2bb6(_0x472be4)})]}),(0x0,d[_0x2acabd(0x322)])('div',{'className':_0x2acabd(0x49c),'children':[(0x0,d[_0x2acabd(0x364)])(s[_0x2acabd(0x495)],{'aria-label':_0x28ae59['t'](_0x2acabd(0x56a)),'aria-invalid':!_0x2679c9||!_0x799411||!_0x40e3ec,'className':'univer-min-w-0\x20univer-flex-1','data-testid':'pivot-value-filter-expected','inputMode':_0x2acabd(0x64b),'value':_0x2278e1,'onChange':_0xb7bfbf}),_0x396cac[_0x2acabd(0x1b8)]&&(0x0,d['jsx'])(s['Input'],{'aria-label':_0x28ae59['t']('sheets-pivot-ui.valueFilter.condition'),'aria-invalid':!_0xbeb349,'className':_0x2acabd(0x48f),'data-testid':_0x2acabd(0x4a1),'inputMode':_0x2acabd(0x64b),'value':_0x35cc0a,'onChange':_0x5c8301})]}),(0x0,d['jsxs'])('div',{'className':_0x2acabd(0x454),'children':[(0x0,d['jsx'])(s['Button'],{'data-testid':_0x2acabd(0x203),'disabled':_0x3afc17,'onClick':_0x2d3315,'children':_0x28ae59['t'](_0x2acabd(0x3ff))}),(0x0,d[_0x2acabd(0x322)])(_0x2acabd(0x2ca),{'className':_0x2acabd(0x549),'children':[(0x0,d[_0x2acabd(0x364)])(s[_0x2acabd(0x233)],{'disabled':_0x3afc17,'onClick':_0x4430f5,'children':_0x28ae59['t'](_0x2acabd(0x60d))}),(0x0,d[_0x2acabd(0x364)])(s[_0x2acabd(0x233)],{'data-testid':_0x2acabd(0x508),'variant':_0x2acabd(0x5b8),'disabled':!_0x47f7a8||_0x3afc17,'onClick':_0x4b6e25,'children':_0x28ae59['t']('sheets-pivot-ui.valueFilter.ok')})]})]})]});}function Kr(_0x58e5b8){const _0x167c73=_0x14e1ea;let {pivotTableId:_0x2a4ac5,tableFieldId:_0x4a6635,closeFn:_0x11eb9d,unitId:_0x1959f3,subUnitId:_0x38be4f,format:_0x1994e5,tableFieldInfo:_0x1793c9,dataFieldInfo:_0x19e8bc,version:_0x160f67}=_0x58e5b8,[_0x51fdd2,_0x241b85]=(0x0,f['useState'])(_0x1793c9[_0x167c73(0x2db)]),[_0x10ec4a,_0x24b02b]=(0x0,f[_0x167c73(0x53a)])(_0x1793c9[_0x167c73(0x301)]),_0x4864b8=(0x0,i[_0x167c73(0x1e8)])(n['LocaleService']),_0x39b972=(0x0,i[_0x167c73(0x1e8)])(n[_0x167c73(0x27a)]),_0x559b6c=(0x0,i[_0x167c73(0x1e8)])(i[_0x167c73(0x544)]),_0x205c47={...(0x0,i[_0x167c73(0x1e8)])(t[_0x167c73(0x6ad)])['getTextInfo']()};for(let _0x57d2d2 of['sheets-pivot-ui.averageName',_0x167c73(0x20f),'sheets-pivot-ui.countNumsName','sheets-pivot-ui.maxName',_0x167c73(0x1a7),_0x167c73(0x416),'sheets-pivot-ui.stdDevName',_0x167c73(0x23f),_0x167c73(0x214),'sheets-pivot-ui.varName',_0x167c73(0x256)])_0x205c47[_0x57d2d2]=_0x4864b8['t'](_0x57d2d2);if((0x0,f[_0x167c73(0x5aa)])(()=>{const _0x303ef3=_0x167c73;_0x241b85(_0x1793c9[_0x303ef3(0x2db)]),_0x24b02b(_0x1793c9[_0x303ef3(0x301)]);},[_0x160f67]),!_0x1793c9||!_0x19e8bc)return;let _0x195040=_0x19e8bc[_0x167c73(0x6d0)],_0x25898a=_0x4864b8[_0x167c73(0x4c7)](),_0x2a7c0e=_0x1994e5??_0x1793c9[_0x167c73(0x65d)],_0x4fa41d=Ot[_0x167c73(0x505)](_0xc657b2=>({'value':''+_0xc657b2[_0x167c73(0x314)],'type':_0xc657b2[_0x167c73(0x314)],'label':_0x4864b8['t'](_0xc657b2[_0x167c73(0x377)])})),_0x3dd076=_0x404cb9=>{const _0x22ea28=_0x167c73;let _0x5449a5=_0x404cb9;if(Array[_0x22ea28(0x20e)](_0x404cb9)&&(_0x5449a5=_0x404cb9[0x0]),_0x5449a5!==void 0x0){let _0x13d074=Number(_0x5449a5);_0x24b02b(_0x13d074),Bt(_0x195040,_0x51fdd2,_0x205c47)&&_0x241b85(Vt(_0x195040,_0x205c47,_0x13d074));}};return(0x0,d[_0x167c73(0x322)])(_0x167c73(0x2ca),{'dir':_0x25898a,'children':[(0x0,d[_0x167c73(0x322)])('div',{'className':_0x167c73(0x50f),'children':[(0x0,d[_0x167c73(0x364)])(_0x167c73(0x55e),{'className':_0x167c73(0x258),'children':_0x4864b8['t'](_0x167c73(0x5d1))}),(0x0,d[_0x167c73(0x364)])(_0x167c73(0x55e),{'className':_0x167c73(0x45e),'children':ht(_0x4864b8['t'](_0x167c73(0x473)),_0x195040)})]}),(0x0,d[_0x167c73(0x364)])(_0x167c73(0x2ca),{'children':(0x0,d[_0x167c73(0x364)])(s[_0x167c73(0x495)],{'className':'univer-mb-5\x20univer-mt-2\x20univer-box-border\x20univer-h-8\x20univer-w-full\x20univer-rounded-md\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5','value':_0x51fdd2,'onChange':_0x33b9af=>_0x241b85(_0x33b9af)})}),(0x0,d[_0x167c73(0x364)])(_0x167c73(0x21c),{'className':_0x167c73(0x3e0),'children':_0x4864b8['t'](_0x167c73(0x376))}),(0x0,d[_0x167c73(0x364)])(_0x167c73(0x2ca),{'className':(0x0,s['clsx'])(_0x167c73(0x63f),s[_0x167c73(0x6b4)],s['scrollbarClassName']),'children':_0x4fa41d['map'](_0x24c060=>(0x0,d[_0x167c73(0x322)])(_0x167c73(0x2ca),{'className':'univer-flex\x20univer-items-center\x20univer-gap-1.5\x20univer-self-stretch\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-capitalize\x20univer-leading-5','onClick':()=>_0x3dd076(_0x24c060[_0x167c73(0x320)]),'children':[(0x0,d['jsx'])(_0x167c73(0x55e),{'className':_0x167c73(0x21e),'children':(0x0,d['jsx'])(u['CheckMarkIcon'],{'className':(0x0,s['clsx'])({'univer-hidden':_0x10ec4a!==_0x24c060['type']})})}),(0x0,d['jsx'])(_0x167c73(0x55e),{'children':_0x24c060['label']})]},_0x24c060[_0x167c73(0x314)]))}),(0x0,d[_0x167c73(0x364)])(_0x167c73(0x645),{'className':_0x167c73(0x635),'children':(0x0,d[_0x167c73(0x322)])(s[_0x167c73(0x521)],{'className':_0x167c73(0x542),'children':[(0x0,d[_0x167c73(0x364)])(s['Button'],{'className':_0x167c73(0x506),'onClick':()=>{const _0x486521=_0x167c73;let _0x5e2c5f={'id':S,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':C,'unitId':_0x1959f3,'subUnitId':_0x38be4f,'pivotTableId':_0x2a4ac5,'tableFieldId':_0x4a6635,'originPattern':_0x2a7c0e,'tableFieldInfo':_0x1793c9,'dataFieldInfo':_0x19e8bc},'dialogStyles':{'header':{'padding':_0x486521(0x1d2),'height':0x0},'body':{'padding':'0\x2024px\x2020px'}},'closable':!0x1,'onClose':()=>{const _0x5da119=_0x486521;_0x559b6c[_0x5da119(0x34d)](S);}};_0x559b6c[_0x486521(0x566)](_0x5e2c5f);},'children':_0x4864b8['t'](_0x167c73(0x631))}),(0x0,d['jsxs'])(s[_0x167c73(0x521)],{'className':_0x167c73(0x68a),'children':[(0x0,d[_0x167c73(0x364)])(s[_0x167c73(0x233)],{'onClick':()=>{_0x11eb9d&&_0x11eb9d();},'children':_0x4864b8['t']('sheets-pivot-ui.dialog.cancel')}),(0x0,d[_0x167c73(0x364)])(s[_0x167c73(0x233)],{'variant':'primary','disabled':_0x51fdd2==='','onClick':()=>{const _0x4adb3b=_0x167c73;let _0x4c51e8=_0x1793c9[_0x4adb3b(0x2db)],_0x11259c=_0x1793c9[_0x4adb3b(0x301)],_0x174cd1=_0x1793c9['format'],_0x32ab60=_0x4c51e8===_0x51fdd2?void 0x0:_0x51fdd2,_0x33befa=_0x11259c===_0x10ec4a?void 0x0:_0x10ec4a,_0x566323=_0x174cd1===_0x2a7c0e?void 0x0:_0x2a7c0e;if(_0x4c51e8!==_0x51fdd2||_0x11259c!==_0x10ec4a||_0x174cd1!==_0x566323){let _0x9fb8ea={'displayName':_0x32ab60,'subtotalType':_0x33befa,'format':_0x566323,'tableFieldId':_0x4a6635,'pivotTableId':_0x2a4ac5,'unitId':_0x1959f3,'subUnitId':_0x38be4f,'tableFieldInfo':_0x1793c9,'dataFieldInfo':_0x19e8bc};_0x39b972[_0x4adb3b(0x2f1)](t[_0x4adb3b(0x6e2)]['id'],_0x9fb8ea);}_0x11eb9d&&_0x11eb9d();},'children':_0x4864b8['t'](_0x167c73(0x356))})]})]})})]});}let qr=class extends n[_0x14e1ea(0x62e)]{constructor(_0x401cd2,_0x4ed1c4){const _0x37ca21=_0x14e1ea;super(),this[_0x37ca21(0x62f)]=_0x401cd2,this['_iconManager']=_0x4ed1c4,this['_registerComponents'](),this[_0x37ca21(0x478)]();}[_0x14e1ea(0x25a)](){const _0x17e1ab=_0x14e1ea;[[A,Ur],[_,Lr],[y,Qn],[x,Kr],[C,sr],[T,Rr],[E,Gr],[D,Gn],[O,tr],[k,$n]][_0x17e1ab(0x263)](([_0x4d2e9b,_0x539f5e])=>{const _0x1e7fb3=_0x17e1ab;this[_0x1e7fb3(0x50a)](this[_0x1e7fb3(0x62f)][_0x1e7fb3(0x6d4)](_0x4d2e9b,_0x539f5e));});}['_registerIcons'](){const _0xbc4766=_0x14e1ea;this['disposeWithMe'](this['_iconManager'][_0xbc4766(0x6d4)]({'PivotTableIcon':u[_0xbc4766(0x4f4)]}));}};qr=K([G(0x0,(0x0,n[_0x14e1ea(0x608)])(i[_0x14e1ea(0x5f6)])),G(0x1,(0x0,n['Inject'])(i[_0x14e1ea(0x6ab)]))],qr);let Jr=class extends n['Disposable']{constructor(_0x25650f){const _0x24e1a6=_0x14e1ea;super(),this[_0x24e1a6(0x27f)]=_0x25650f,this[_0x24e1a6(0x3c7)]();}[_0x14e1ea(0x3c7)](){const _0x2243b0=_0x14e1ea;this[_0x2243b0(0x27f)][_0x2243b0(0x2d6)](Qe);}};Jr=K([G(0x0,i['IMenuManagerService'])],Jr);let Yr=class extends n[_0x14e1ea(0x62e)]{constructor(_0x5eab94,_0x2a5607,_0x24a1b4,_0x5af876,_0x5d8e98,_0x2fbb6f,_0xd14ee,_0x427172,_0xbefdd5){const _0x1fbdbf=_0x14e1ea;super(),this[_0x1fbdbf(0x2b5)]=_0x5eab94,this[_0x1fbdbf(0x45f)]=_0x2a5607,this[_0x1fbdbf(0x370)]=_0x24a1b4,this['_sheetSkeletonManagerService']=_0x5af876,this[_0x1fbdbf(0x43b)]=_0x5d8e98,this[_0x1fbdbf(0x423)]=_0x2fbb6f,this[_0x1fbdbf(0x240)]=_0xd14ee,this[_0x1fbdbf(0x4b6)]=_0x427172,this[_0x1fbdbf(0x291)]=_0xbefdd5,W(this,_0x1fbdbf(0x298),[]),this[_0x1fbdbf(0x5f9)](),this[_0x1fbdbf(0x57e)](),this[_0x1fbdbf(0x1f6)]();}[_0x14e1ea(0x5f9)](){const _0x1e048d=_0x14e1ea;this[_0x1e048d(0x50a)]((0x0,o[_0x1e048d(0x2da)])(this[_0x1e048d(0x370)][_0x1e048d(0x479)]['pipe']((0x0,o[_0x1e048d(0x22a)])(0x0)),this[_0x1e048d(0x524)]['currentSkeleton$'],this[_0x1e048d(0x43b)][_0x1e048d(0x3e3)],this[_0x1e048d(0x4b6)]['permissionPointUpdate$'][_0x1e048d(0x3b1)]((0x0,o[_0x1e048d(0x22a)])(0x64)))['subscribe'](()=>{const _0x4418e8=_0x1e048d;if(!this[_0x4418e8(0x2b5)][_0x4418e8(0x224)])return;let _0x71640e=this[_0x4418e8(0x2b5)][_0x4418e8(0x1c8)],_0x57bf59=this[_0x4418e8(0x2b5)][_0x4418e8(0x224)][_0x4418e8(0x2ed)]()['getSheetId'](),{scene:_0x324738}=this[_0x4418e8(0x2b5)],_0x119aea=this[_0x4418e8(0x291)][_0x4418e8(0x4c7)](),_0x8384dc=this['_sheetSkeletonManagerService'][_0x4418e8(0x2a1)]();if(!_0x8384dc)return;let _0x321e68=this['_pivotButtonShapesArr'];_0x321e68['forEach'](_0x5a9f65=>_0x5a9f65[_0x4418e8(0x1aa)]()),_0x321e68[_0x4418e8(0x53d)](0x0,_0x321e68['length']),this[_0x4418e8(0x370)][_0x4418e8(0x57c)](_0x71640e,_0x57bf59)[_0x4418e8(0x4bb)]((_0x538594,_0x2a5635,_0x5d3e39)=>{const _0x5ce692=_0x4418e8;if(_0x5d3e39!=null&&_0x5d3e39[_0x5ce692(0x1c2)]){let _0x3a2517=_0x5ce692(0x6af)+_0x538594+'-'+_0x2a5635+'-'+_0x71640e+'-'+_0x57bf59,{startX:_0x4bb4a2,startY:_0x3de1ad,endX:_0x8ea770,endY:_0x18e5a2}=(0x0,a[_0x5ce692(0x2fe)])(_0x538594,_0x2a5635,_0x324738,_0x8384dc),_0xe62581=_0x8ea770-_0x4bb4a2,_0x467b7a=_0x18e5a2-_0x3de1ad;if(_0x467b7a<0x8||_0xe62581<0x8||this[_0x5ce692(0x240)][_0x5ce692(0x530)]({'workbookTypes':[r[_0x5ce692(0x4ff)]],'worksheetTypes':[r[_0x5ce692(0x576)],r[_0x5ce692(0x44d)],r['WorksheetPivotTablePermission']],'rangeTypes':[r[_0x5ce692(0x361)],r[_0x5ce692(0x681)]]},[{'startRow':_0x538594,'endRow':_0x538594,'startColumn':_0x2a5635,'endColumn':_0x2a5635}],_0x71640e,_0x57bf59)===!0x1)return;let _0x12f529;if(kn[_0x5ce692(0x48d)](_0x5d3e39[_0x5ce692(0x1c2)])){let {left:_0x2326f7,top:_0x49da71}=Nn(_0x119aea,'filter',{'startX':_0x4bb4a2,'startY':_0x3de1ad,'endX':_0x8ea770,'endY':_0x18e5a2});_0x12f529={'left':_0x2326f7,'top':_0x49da71,'height':0x10,'width':0x10,'zIndex':0x1388,'cellWidth':_0xe62581,'cellHeight':_0x467b7a,'pivotParams':{'col':_0x2a5635,'row':_0x538594,'unitId':_0x71640e,'subUnitId':_0x57bf59,'buttonType':_0x5d3e39[_0x5ce692(0x1c2)]}};}else{if(An[_0x5ce692(0x48d)](_0x5d3e39[_0x5ce692(0x1c2)])){let {left:_0x47c72b,top:_0x1cd0df}=Nn(_0x119aea,_0x5ce692(0x3f3),{'startX':_0x4bb4a2,'startY':_0x3de1ad,'endX':_0x8ea770,'endY':_0x18e5a2});_0x12f529={'left':_0x47c72b,'top':_0x1cd0df,'height':0x10,'width':0x10,'zIndex':0x1388,'cellWidth':_0xe62581,'cellHeight':_0x467b7a,'pivotParams':{'col':_0x2a5635,'row':_0x538594,'unitId':_0x71640e,'subUnitId':_0x57bf59,'buttonType':_0x5d3e39[_0x5ce692(0x1c2)]}};}else return;}let _0x4a0662=this['_injector'][_0x5ce692(0x589)](jn,_0x3a2517,_0x12f529);_0x321e68[_0x5ce692(0x382)](_0x4a0662);}}),_0x321e68['length']&&_0x324738[_0x4418e8(0x5c8)](_0x321e68),_0x324738[_0x4418e8(0x318)]();}));}[_0x14e1ea(0x57e)](){const _0x287419=_0x14e1ea;var _0x176728;this[_0x287419(0x50a)](this[_0x287419(0x370)]['markDirty$'][_0x287419(0x54a)](({unitId:_0x52fbd9,subUnitId:_0x501d22})=>{const _0x2f5a88=_0x287419;if(_0x52fbd9===this[_0x2f5a88(0x2b5)][_0x2f5a88(0x1c8)]&&(this[_0x2f5a88(0x524)][_0x2f5a88(0x318)]({'sheetId':_0x501d22}),this[_0x2f5a88(0x2b5)][_0x2f5a88(0x224)][_0x2f5a88(0x2ed)]()[_0x2f5a88(0x595)]()===_0x501d22)){var _0x471ce0;this['_sheetSkeletonManagerService'][_0x2f5a88(0x4f3)](),(_0x471ce0=this[_0x2f5a88(0x2b5)][_0x2f5a88(0x2cb)])==null||_0x471ce0[_0x2f5a88(0x318)]();}}));let _0x505ef5=this[_0x287419(0x2b5)]['unitId'];this[_0x287419(0x2b5)][_0x287419(0x224)][_0x287419(0x3e4)]()[_0x287419(0x263)](_0x470ced=>{const _0x2ddc79=_0x287419;var _0x4a8077;let _0x3ee0d1=_0x470ced[_0x2ddc79(0x595)]();(_0x4a8077=this[_0x2ddc79(0x370)][_0x2ddc79(0x50b)](_0x505ef5,_0x3ee0d1))!=null&&_0x4a8077['size']&&this[_0x2ddc79(0x524)][_0x2ddc79(0x318)]({'sheetId':_0x3ee0d1});}),this['_sheetSkeletonManagerService'][_0x287419(0x4f3)](),(_0x176728=this['_context']['mainComponent'])==null||_0x176728[_0x287419(0x318)]();}[_0x14e1ea(0x1f6)](){const _0x51c06a=_0x14e1ea;let _0x214701=new n[(_0x51c06a(0x3e1))](),{spreadsheet:_0x152af6}=(0x0,a[_0x51c06a(0x2c1)])(this['_context'][_0x51c06a(0x224)],this[_0x51c06a(0x2b5)]);_0x214701[_0x51c06a(0x49a)](_0x152af6[_0x51c06a(0x3dc)][_0x51c06a(0x5b2)](_0xd5d942=>{const _0x105ce4=_0x51c06a;if(_0xd5d942[_0x105ce4(0x3e7)]===0x2)return;let _0x39826e=this['_sheetSkeletonManagerService'][_0x105ce4(0x2a1)]();if(_0x39826e==null)return;let _0x400e03=this['_context'][_0x105ce4(0x355)],{row:_0x1da83c,column:_0x3e1633}=(0x0,a[_0x105ce4(0x200)])(_0xd5d942[_0x105ce4(0x1f9)],_0xd5d942[_0x105ce4(0x264)],_0x400e03,_0x39826e);this[_0x105ce4(0x423)][_0x105ce4(0x2f1)](t[_0x105ce4(0x401)]['id'],{'row':_0x1da83c,'col':_0x3e1633});}));}};Yr=K([G(0x1,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x4cd)])),G(0x2,(0x0,n['Inject'])(t['SheetsPivotTableAdaptorModel'])),G(0x3,(0x0,n[_0x14e1ea(0x608)])(a['SheetSkeletonManagerService'])),G(0x4,(0x0,n[_0x14e1ea(0x608)])(t['SheetsPivotTableConfigModel'])),G(0x5,(0x0,n['Inject'])(n['ICommandService'])),G(0x6,(0x0,n[_0x14e1ea(0x608)])(r[_0x14e1ea(0x433)])),G(0x7,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x654)])),G(0x8,(0x0,n[_0x14e1ea(0x608)])(n['LocaleService']))],Yr);var Xr=class e extends l[_0x14e1ea(0x546)]{constructor(_0x33ae45){const _0x90f622=_0x14e1ea;super('SHEET_PIVOT_MOVE_KEY'),W(this,_0x90f622(0x40b),void 0x0),this[_0x90f622(0x40b)]=_0x33ae45;}[_0x14e1ea(0x3bb)](_0x4bd0c9){const _0x47d7ab=_0x14e1ea;this[_0x47d7ab(0x52d)]!==0x0&&this[_0x47d7ab(0x255)]!==0x0&&e[_0x47d7ab(0x3b2)](_0x4bd0c9,this);}static[_0x14e1ea(0x3b2)](_0x384a19,_0x27d940){const _0x2bef2e=_0x14e1ea;let _0x5eaf3e=_0x27d940['_moveType'];if(_0x384a19[_0x2bef2e(0x449)](),_0x384a19[_0x2bef2e(0x6d3)]='#8bc34a',_0x384a19['lineWidth']=0x2,_0x5eaf3e===_0x2bef2e(0x5f4)){let _0x365b78=_0x27d940['width'];if(!_0x365b78)return;_0x384a19[_0x2bef2e(0x2d4)](),_0x384a19['moveTo'](0x0,0x0),_0x384a19[_0x2bef2e(0x34f)](0x0+_0x365b78,0x0),_0x384a19[_0x2bef2e(0x402)](0x0,-0xa),_0x384a19[_0x2bef2e(0x34f)](0x0,0xa),_0x384a19[_0x2bef2e(0x402)](0x0+_0x365b78,-0xa),_0x384a19['lineTo'](0x0+_0x365b78,0xa);}else{let _0x39cae1=_0x27d940[_0x2bef2e(0x255)];if(!_0x39cae1)return;_0x384a19['moveTo'](0x0,0x0),_0x384a19[_0x2bef2e(0x34f)](0x0,0x0+_0x39cae1),_0x384a19['moveTo'](-0xa,0x0),_0x384a19[_0x2bef2e(0x34f)](0xa,0x0),_0x384a19[_0x2bef2e(0x402)](-0xa,0x0+_0x39cae1),_0x384a19[_0x2bef2e(0x34f)](0xa,0x0+_0x39cae1);}_0x384a19[_0x2bef2e(0x344)](),_0x384a19['restore']();}};let Zr=class extends n[_0x14e1ea(0x62e)]{constructor(_0x4606ab,_0x1233cd,_0x365803,_0x54d913,_0x8d4790,_0x103d90){const _0x53912c=_0x14e1ea;super(),this[_0x53912c(0x2b5)]=_0x4606ab,this[_0x53912c(0x370)]=_0x1233cd,this[_0x53912c(0x524)]=_0x365803,this[_0x53912c(0x423)]=_0x54d913,this[_0x53912c(0x6eb)]=_0x8d4790,this[_0x53912c(0x5ce)]=_0x103d90,W(this,_0x53912c(0x268),void 0x0),W(this,_0x53912c(0x4e2),void 0x0),W(this,_0x53912c(0x1b0),void 0x0),W(this,'_selectionControl',void 0x0),W(this,_0x53912c(0x6aa),void 0x0),W(this,'_moveStartCellIndex',void 0x0),W(this,_0x53912c(0x39d),_0x53912c(0x5f4)),W(this,_0x53912c(0x527),void 0x0),W(this,_0x53912c(0x450),void 0x0),this[_0x53912c(0x69a)]();}[_0x14e1ea(0x560)](_0x56a95d,_0x2cdfce){const _0xc56d06=_0x14e1ea;let _0x4280bd=this[_0xc56d06(0x2b5)][_0xc56d06(0x355)],_0x4eef35=_0x4280bd[_0xc56d06(0x24c)](l['Vector2'][_0xc56d06(0x51b)]([_0x56a95d,_0x2cdfce])),{scaleX:_0x582775,scaleY:_0x38a338}=_0x4280bd['getAncestorScale'](),_0x871c5f=this[_0xc56d06(0x524)][_0xc56d06(0x2a1)]();if(!_0x871c5f||!this[_0xc56d06(0x6aa)]||!this[_0xc56d06(0x2d2)])return;let {row:_0xa27eb8,column:_0x17e29e}=_0x871c5f[_0xc56d06(0x4e7)](_0x56a95d,_0x2cdfce,_0x582775,_0x38a338,_0x4eef35);if(this[_0xc56d06(0x39d)]===_0xc56d06(0x5f4)){var _0x467317;let _0x5daa11=0x0,_0x4f6412=0x0,_0x409924=this[_0xc56d06(0x6aa)][_0xc56d06(0x2a8)]-this[_0xc56d06(0x6aa)][_0xc56d06(0x695)]+0x1;if(this['_moveStartCellIndex']['column']===this[_0xc56d06(0x6aa)]['startColumn'])_0x5daa11=_0x17e29e,_0x4f6412=_0x17e29e+_0x409924-0x1;else{if(this[_0xc56d06(0x2d2)]['column']===this[_0xc56d06(0x6aa)][_0xc56d06(0x2a8)])_0x4f6412=_0x17e29e,_0x5daa11=_0x17e29e-_0x409924+0x1;else{let _0x2770b5=this[_0xc56d06(0x2d2)][_0xc56d06(0x209)]-this['_moveStartRange'][_0xc56d06(0x695)];_0x5daa11=_0x17e29e-_0x2770b5,_0x4f6412=_0x17e29e-_0x2770b5+_0x409924-0x1;}}let _0x1c7610=_0x871c5f[_0xc56d06(0x3d2)](_0xa27eb8,_0x5daa11),_0x30b22b=_0x871c5f[_0xc56d06(0x3d2)](_0xa27eb8,_0x4f6412),{startX:_0xe1345a,endY:_0x22cff5}=_0x1c7610,{endX:_0x20e354}=_0x30b22b;this['_targetRange']={'startRow':_0xa27eb8,'endRow':_0xa27eb8,'startColumn':_0x5daa11,'endColumn':_0x4f6412},(_0x467317=this[_0xc56d06(0x268)])==null||_0x467317[_0xc56d06(0x2a2)]({'left':_0xe1345a,'top':_0x22cff5,'width':_0x20e354-_0xe1345a,'height':0x14});}else{var _0x669e44;let _0x1a8642=0x0,_0x278107=0x0,_0x27d2ce=this['_moveStartRange'][_0xc56d06(0x3a4)]-this[_0xc56d06(0x6aa)][_0xc56d06(0x254)]+0x1;if(this[_0xc56d06(0x2d2)][_0xc56d06(0x5f4)]===this[_0xc56d06(0x6aa)]['startRow'])_0x1a8642=_0xa27eb8,_0x278107=_0xa27eb8+_0x27d2ce-0x1;else{if(this[_0xc56d06(0x2d2)][_0xc56d06(0x5f4)]===this[_0xc56d06(0x6aa)][_0xc56d06(0x3a4)])_0x278107=_0xa27eb8,_0x1a8642=_0xa27eb8-_0x27d2ce+0x1;else{let _0x2ad39e=this[_0xc56d06(0x2d2)][_0xc56d06(0x5f4)]-this[_0xc56d06(0x6aa)][_0xc56d06(0x254)];_0x1a8642=_0xa27eb8-_0x2ad39e,_0x278107=_0xa27eb8-_0x2ad39e+_0x27d2ce-0x1;}}let _0x236180=_0x871c5f[_0xc56d06(0x3d2)](_0x1a8642,_0x17e29e),_0x13e6c2=_0x871c5f['getCellWithCoordByIndex'](_0x278107,_0x17e29e),{startX:_0x3fa112,startY:_0x3e51d4}=_0x236180,{endY:_0x1bb38e}=_0x13e6c2;this[_0xc56d06(0x527)]={'startColumn':_0x17e29e,'endColumn':_0x17e29e,'startRow':_0x1a8642,'endRow':_0x278107},(_0x669e44=this['_pivotSelectionMoveShape'])==null||_0x669e44[_0xc56d06(0x2a2)]({'left':_0x3fa112,'top':_0x3e51d4,'width':0x14,'height':_0x1bb38e-_0x3e51d4});}}['_controlPointerDownHandler'](_0x52f685){const _0x3921e6=_0x14e1ea;var _0x468d4a,_0x4dd309,_0x199b6f;(_0x468d4a=this['_selectionControl'])==null||_0x468d4a[_0x3921e6(0x5a6)](!0x1),this[_0x3921e6(0x2b5)][_0x3921e6(0x355)][_0x3921e6(0x682)](l[_0x3921e6(0x4cf)]['DEFAULT']);let _0x24381b=this[_0x3921e6(0x5ce)][_0x3921e6(0x1a6)]();if(!_0x24381b['length']||_0x24381b[_0x3921e6(0x2f3)]>0x1)return;let _0x4385eb=_0x24381b[0x0][_0x3921e6(0x503)],_0x581d51=this[_0x3921e6(0x2b5)]['unit'],_0x2835a7=_0x581d51[_0x3921e6(0x2ed)](),_0x4b0bd1=_0x581d51[_0x3921e6(0x37d)](),_0x3b85eb=_0x2835a7[_0x3921e6(0x595)](),_0x4f3910=this[_0x3921e6(0x370)]['getSubUnitPivotRenderCache'](_0x4b0bd1,_0x3b85eb);if(!(_0x4f3910!=null&&_0x4f3910[_0x3921e6(0x587)]))return;let _0x53c5cc=Array['from'](_0x4f3910)[_0x3921e6(0x1ba)](([_0x3b1740,_0x1b6126])=>{const _0x4e0fec=_0x3921e6;let {rangesInfo:_0x2b8750}=_0x1b6126;if(!_0x2b8750)return!0x1;let {rowRanges:_0x32abc6,colRanges:_0x289b75}=_0x2b8750,_0x1009aa=_0x32abc6[0x0],_0x310381=_0x289b75[0x0],_0x28f3df=!0x1;return _0x1009aa&&(_0x28f3df=n[_0x4e0fec(0x6bb)][_0x4e0fec(0x219)](_0x1009aa,_0x4385eb),this['_moveRowOrCol']=_0x4e0fec(0x5f4)),!_0x28f3df&&_0x310381&&(_0x28f3df=n[_0x4e0fec(0x6bb)][_0x4e0fec(0x219)](_0x310381,_0x4385eb),this[_0x4e0fec(0x39d)]=_0x4e0fec(0x4d9)),_0x28f3df;});if(!_0x53c5cc)return;this[_0x3921e6(0x450)]=_0x53c5cc[0x0],this['_pivotSelectionMoveShape']||(this[_0x3921e6(0x268)]=new Xr(this[_0x3921e6(0x39d)]),this[_0x3921e6(0x2b5)][_0x3921e6(0x355)][_0x3921e6(0x1f4)](this[_0x3921e6(0x268)]));let _0x320834=this['_context']['scene'],_0x31a209=this['_sheetSkeletonManagerService']['getCurrentSkeleton']();if(!_0x31a209)return;let {offsetX:_0x4c003d,offsetY:_0x101be2}=_0x52f685,_0x31b49e=_0x320834['getCoordRelativeToViewport'](l['Vector2'][_0x3921e6(0x51b)]([_0x4c003d,_0x101be2])),{x:_0x4fe5aa,y:_0x5c00e0}=_0x31b49e,_0xb9daa4=_0x320834[_0x3921e6(0x24c)](_0x31b49e),{scaleX:_0x2cbb45,scaleY:_0x4bc787}=_0x320834[_0x3921e6(0x400)](),{row:_0x2e2b8e,column:_0xaed7e7}=_0x31a209['getCellIndexByOffset'](_0x4fe5aa,_0x5c00e0,_0x2cbb45,_0x4bc787,_0xb9daa4),_0x3623d7=(_0x4dd309=this[_0x3921e6(0x558)])==null?void 0x0:_0x4dd309[_0x3921e6(0x39e)][_0x3921e6(0x307)]();if(this[_0x3921e6(0x6aa)]=_0x3623d7,!_0x3623d7)return;let _0x2c911d=0x0;_0x2c911d=_0x2e2b8e<_0x3623d7[_0x3921e6(0x254)]?_0x3623d7[_0x3921e6(0x254)]:_0x2e2b8e>_0x3623d7[_0x3921e6(0x3a4)]?_0x3623d7[_0x3921e6(0x3a4)]:_0x2e2b8e;let _0x24219d=0x0;_0x24219d=_0xaed7e7<_0x3623d7[_0x3921e6(0x695)]?_0x3623d7[_0x3921e6(0x695)]:_0xaed7e7>_0x3623d7[_0x3921e6(0x2a8)]?_0x3623d7[_0x3921e6(0x2a8)]:_0xaed7e7,this[_0x3921e6(0x2d2)]={'row':_0x2c911d,'column':_0x24219d},(_0x199b6f=this['_selectionControl'])==null||_0x199b6f[_0x3921e6(0x5a6)](!0x0),this[_0x3921e6(0x4e2)]=_0x320834[_0x3921e6(0x29e)]['subscribeEvent'](_0x2cf728=>{const _0xfe4e26=_0x3921e6;let {offsetX:_0x486c55,offsetY:_0x56d966}=_0x2cf728,{x:_0x1fc93,y:_0x1cac1a}=_0x320834[_0xfe4e26(0x533)](l['Vector2'][_0xfe4e26(0x51b)]([_0x486c55,_0x56d966]));this[_0xfe4e26(0x560)](_0x1fc93,_0x1cac1a),_0x320834[_0xfe4e26(0x682)](l['CURSOR_TYPE'][_0xfe4e26(0x452)]);}),this[_0x3921e6(0x1b0)]=_0x320834['onPointerUp$'][_0x3921e6(0x5b2)](_0x4d334c=>{const _0x3e64fc=_0x3921e6;var _0x44d67a,_0x282a12,_0x18dcea;(_0x44d67a=this[_0x3e64fc(0x4e2)])==null||_0x44d67a[_0x3e64fc(0x5af)](),this['_scenePointerMoveSubscribe']=null,(_0x282a12=this[_0x3e64fc(0x558)])==null||_0x282a12[_0x3e64fc(0x5a6)](!0x1),this['_selectionControl']=null,_0x320834['setCursor'](l['CURSOR_TYPE'][_0x3e64fc(0x1d1)]),_0x320834[_0x3e64fc(0x5ae)](this[_0x3e64fc(0x268)]),this['_pivotSelectionMoveShape']=null,this['_updatePivotSort'](),(_0x18dcea=this[_0x3e64fc(0x1b0)])==null||_0x18dcea[_0x3e64fc(0x5af)](),this[_0x3e64fc(0x1b0)]=null;});}['_updatePivotSort'](){const _0x172241=_0x14e1ea;if(!this[_0x172241(0x6aa)]||!this[_0x172241(0x527)]||!this['_movePivotId'])return;let _0x465aba=this['_context'][_0x172241(0x224)][_0x172241(0x37d)](),_0x415625=this[_0x172241(0x2b5)][_0x172241(0x224)][_0x172241(0x2ed)]()[_0x172241(0x595)]();if(this[_0x172241(0x39d)]==='row'){var _0x108dc9;let _0x242dd3=(_0x108dc9=this[_0x172241(0x370)]['getSubUnitPivotRenderCache'](_0x465aba,_0x415625))==null?void 0x0:_0x108dc9[_0x172241(0x489)](this[_0x172241(0x450)]);if(!_0x242dd3)return;let _0xdfd684=this[_0x172241(0x370)][_0x172241(0x57c)](_0x465aba,_0x415625);if(!_0xdfd684)return;let _0x5cae0a=[],_0x1e44a0='',{headerMap:_0xb35a71,rangesInfo:_0x2c58d8}=_0x242dd3;for(let _0x45a05c=this[_0x172241(0x6aa)][_0x172241(0x695)];_0x45a05c<=this['_moveStartRange']['endColumn'];_0x45a05c++){var _0x314a81;let _0x16f9a4=_0xb35a71==null||(_0x314a81=_0xb35a71[_0x172241(0x3ca)])==null?void 0x0:_0x314a81[_0x45a05c];if(!_0x16f9a4)continue;_0x1e44a0=_0x16f9a4['tableFieldId'];let _0x7091b4=_0x2c58d8==null?void 0x0:_0x2c58d8[_0x172241(0x381)],_0x590af2=_0x7091b4==null?void 0x0:_0x7091b4[0x0];if(!_0x590af2)continue;let _0x517e5={..._0x590af2,'startColumn':_0x45a05c,'endColumn':_0x45a05c};for(let _0x42cb13=_0x517e5[_0x172241(0x254)];_0x42cb13<=_0x517e5[_0x172241(0x3a4)];_0x42cb13++){let _0x16cc49=_0xdfd684[_0x172241(0x5a7)](_0x42cb13,_0x45a05c);if(!_0x16cc49)continue;let {v:_0x2f2b8a,pbt:_0x9182af}=_0x16cc49;_0x2f2b8a&&_0x9182af!==e[_0x172241(0x3c2)]['Subtotal']&&_0x9182af!==e[_0x172241(0x3c2)][_0x172241(0x250)]&&(typeof _0x2f2b8a==_0x172241(0x293)?_0x5cae0a[_0x42cb13]=_0x2f2b8a:typeof _0x2f2b8a==_0x172241(0x26e)&&(_0x5cae0a[_0x42cb13]=_0x2f2b8a['toString']()));}break;}if(!_0x1e44a0)return;let _0x495842=this['_moveStartRange'][_0x172241(0x254)],_0xc92d1c=this[_0x172241(0x6aa)][_0x172241(0x3a4)]-this[_0x172241(0x6aa)][_0x172241(0x254)]+0x1,_0x2092b4=this[_0x172241(0x527)][_0x172241(0x254)];if(_0x495842<_0x2092b4){let _0x8854d1=_0x5cae0a[_0x172241(0x53d)](_0x495842,_0xc92d1c);_0x5cae0a[_0x172241(0x53d)](_0x2092b4-_0xc92d1c,0x0,..._0x8854d1);}else{let _0x4e1235=_0x5cae0a[_0x172241(0x53d)](_0x495842,_0xc92d1c);_0x5cae0a[_0x172241(0x53d)](_0x2092b4,0x0,..._0x4e1235);}let _0x56ae29=_0x5cae0a[_0x172241(0x327)](_0x53c287=>_0x53c287!==void 0x0);this[_0x172241(0x423)][_0x172241(0x2f1)](t[_0x172241(0x204)]['id'],{'unitId':_0x465aba,'subUnitId':_0x415625,'pivotTableId':this[_0x172241(0x450)],'tableFieldId':_0x1e44a0,'info':{'type':e[_0x172241(0x496)][_0x172241(0x52b)],'customOrder':_0x56ae29}});}else{var _0x1d8a3c;let _0x56d53b=(_0x1d8a3c=this[_0x172241(0x370)][_0x172241(0x50b)](_0x465aba,_0x415625))==null?void 0x0:_0x1d8a3c[_0x172241(0x489)](this['_movePivotId']);if(!_0x56d53b)return;let _0x4887ba=this[_0x172241(0x370)][_0x172241(0x57c)](_0x465aba,_0x415625);if(!_0x4887ba)return;let _0x16e45b=[],_0x39817f='',{headerMap:_0x141401,rangesInfo:_0x104e48}=_0x56d53b;for(let _0x5d02fb=this[_0x172241(0x6aa)][_0x172241(0x254)];_0x5d02fb<=this['_moveStartRange'][_0x172241(0x3a4)];_0x5d02fb++){var _0x2d0a3a;let _0x16161c=_0x141401==null||(_0x2d0a3a=_0x141401[_0x172241(0x22e)])==null?void 0x0:_0x2d0a3a[_0x5d02fb];if(!_0x16161c)continue;_0x39817f=_0x16161c['tableFieldId'];let _0x28ff2f=_0x104e48==null?void 0x0:_0x104e48['colRanges'],_0x4c11dd=_0x28ff2f==null?void 0x0:_0x28ff2f[0x0];if(!_0x4c11dd)continue;let _0x553eaa={..._0x4c11dd,'startRow':_0x5d02fb,'endRow':_0x5d02fb};for(let _0x49d27d=_0x553eaa[_0x172241(0x695)];_0x49d27d<=_0x553eaa[_0x172241(0x2a8)];_0x49d27d++){let _0x4e0d78=_0x4887ba[_0x172241(0x5a7)](_0x5d02fb,_0x49d27d);if(!_0x4e0d78)continue;let {v:_0x305d3b,pbt:_0x438d8e}=_0x4e0d78;if(_0x305d3b&&_0x438d8e!==e[_0x172241(0x3c2)][_0x172241(0x29b)]&&_0x438d8e!==e[_0x172241(0x3c2)][_0x172241(0x250)]){if(typeof _0x305d3b==_0x172241(0x293)){let _0x356b2f=_0x56d53b[_0x172241(0x5d3)]?(0x0,t[_0x172241(0x215)])(_0x56d53b[_0x172241(0x5d3)],_0x49d27d):_0x49d27d;_0x16e45b[_0x356b2f]=_0x305d3b;}else{if(typeof _0x305d3b=='number'){let _0x3527bc=_0x56d53b[_0x172241(0x5d3)]?(0x0,t[_0x172241(0x215)])(_0x56d53b['projection'],_0x49d27d):_0x49d27d;_0x16e45b[_0x3527bc]=_0x305d3b['toString']();}}}}break;}if(!_0x39817f)return;let _0x54edc0=_0x56d53b[_0x172241(0x5d3)]?(0x0,t[_0x172241(0x285)])(_0x56d53b[_0x172241(0x5d3)],this[_0x172241(0x6aa)]):this[_0x172241(0x6aa)],_0x37fe1b=_0x56d53b['projection']?(0x0,t['mapPivotSheetRange'])(_0x56d53b[_0x172241(0x5d3)],this[_0x172241(0x527)]):this[_0x172241(0x527)],_0x15ab41=_0x54edc0['startColumn'],_0x5d1fa9=this[_0x172241(0x6aa)]['endColumn']-this[_0x172241(0x6aa)][_0x172241(0x695)]+0x1,_0x39fd99=_0x37fe1b['startColumn'];if(_0x15ab41<_0x39fd99){let _0x30a3ae=_0x16e45b[_0x172241(0x53d)](_0x15ab41,_0x5d1fa9);_0x16e45b['splice'](_0x39fd99-_0x5d1fa9,0x0,..._0x30a3ae);}else{let _0x3407ad=_0x16e45b[_0x172241(0x53d)](_0x15ab41,_0x5d1fa9);_0x16e45b[_0x172241(0x53d)](_0x39fd99,0x0,..._0x3407ad);}let _0x5b8e0f=_0x16e45b['filter'](_0x52019a=>_0x52019a!==void 0x0);this['_commandService'][_0x172241(0x2f1)](t[_0x172241(0x204)]['id'],{'unitId':_0x465aba,'subUnitId':_0x415625,'pivotTableId':this[_0x172241(0x450)],'tableFieldId':_0x39817f,'info':{'type':e['PivotDataFieldSortOperatorEnum']['custom'],'customOrder':_0x5b8e0f}});}}[_0x14e1ea(0x69a)](){const _0x7452ca=_0x14e1ea;this[_0x7452ca(0x50a)](this[_0x7452ca(0x5ce)][_0x7452ca(0x1a5)][_0x7452ca(0x54a)](()=>{const _0x174304=_0x7452ca;let _0x5b212f=this['_selectionRenderService']['getSelectionControls']();if(this['_selectionControl']=_0x5b212f[_0x5b212f[_0x174304(0x2f3)]-0x1],this[_0x174304(0x558)]&&this['_selectionControl'][_0x174304(0x5a6)](!0x1),!this[_0x174304(0x558)])return;let {leftControl:_0x26c8ed,rightControl:_0x371be6,topControl:_0x19e412,bottomControl:_0x594e99}=this[_0x174304(0x558)];[_0x26c8ed,_0x371be6,_0x19e412,_0x594e99][_0x174304(0x263)](_0x29603c=>{const _0x27bbcf=_0x174304;_0x29603c[_0x27bbcf(0x19c)][_0x27bbcf(0x5b2)](this[_0x27bbcf(0x343)][_0x27bbcf(0x63d)](this));});}));}[_0x14e1ea(0x1aa)](){const _0x30761f=_0x14e1ea;var _0x8fd678,_0x199b68;(_0x8fd678=this[_0x30761f(0x4e2)])==null||_0x8fd678[_0x30761f(0x5af)](),this[_0x30761f(0x4e2)]=null,(_0x199b68=this[_0x30761f(0x1b0)])==null||_0x199b68[_0x30761f(0x5af)](),this[_0x30761f(0x1b0)]=null,this['_selectionControl']=null,this[_0x30761f(0x6aa)]=null,this[_0x30761f(0x2d2)]=null,this['_targetRange']=null,super[_0x30761f(0x1aa)]();}};Zr=K([G(0x1,(0x0,n['Inject'])(t[_0x14e1ea(0x504)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(a[_0x14e1ea(0x29a)])),G(0x3,(0x0,n[_0x14e1ea(0x608)])(n[_0x14e1ea(0x27a)])),G(0x4,a[_0x14e1ea(0x272)]),G(0x5,(0x0,n[_0x14e1ea(0x608)])(r['SheetsSelectionsService']))],Zr);let $=class extends n[_0x14e1ea(0x5e8)]{constructor(_0x558581=ot,_0x241160,_0xe7e3eb,_0x251420,_0xe9a8d0){const _0x150b35=_0x14e1ea;super(),this[_0x150b35(0x4b9)]=_0x558581,this[_0x150b35(0x45f)]=_0x241160,this['_commandService']=_0xe7e3eb,this[_0x150b35(0x6b7)]=_0x251420,this[_0x150b35(0x2dd)]=_0xe9a8d0;let {menu:_0x54826f,..._0x1928e2}=(0x0,n['merge'])({},ot,this[_0x150b35(0x4b9)]);_0x54826f&&this[_0x150b35(0x2dd)][_0x150b35(0x486)](_0x150b35(0x5ad),_0x54826f,{'merge':!0x0}),this[_0x150b35(0x2dd)][_0x150b35(0x486)](at,_0x1928e2),this[_0x150b35(0x462)]();}[_0x14e1ea(0x367)](){const _0x8bbd18=_0x14e1ea;this[_0x8bbd18(0x45f)]['add']([qr]),this['_injector'][_0x8bbd18(0x489)](qr),[[Jr],[Vn],[In],[Q],[Bn],[Rn],[zn],[q],[X]][_0x8bbd18(0x263)](_0x2edd9b=>this['_injector']['add'](_0x2edd9b)),this[_0x8bbd18(0x45f)][_0x8bbd18(0x489)](q);}['onReady'](){const _0x39987f=_0x14e1ea;this[_0x39987f(0x3ab)](),this[_0x39987f(0x45f)][_0x39987f(0x489)](Jr);}[_0x14e1ea(0x425)](){const _0x3f26b2=_0x14e1ea;this[_0x3f26b2(0x45f)][_0x3f26b2(0x489)](In),this['_injector']['get'](Q),this[_0x3f26b2(0x45f)]['get'](Bn),this[_0x3f26b2(0x45f)][_0x3f26b2(0x489)](Rn),this[_0x3f26b2(0x45f)]['get'](zn),this[_0x3f26b2(0x45f)][_0x3f26b2(0x489)](X);}[_0x14e1ea(0x395)](){const _0x472d5a=_0x14e1ea;this[_0x472d5a(0x45f)][_0x472d5a(0x489)](Vn);}[_0x14e1ea(0x3ab)](){const _0x9f0625=_0x14e1ea;[[Yr],[Zr]][_0x9f0625(0x263)](_0x557165=>{const _0x5ba15f=_0x9f0625;this['disposeWithMe'](this[_0x5ba15f(0x6b7)]['registerRenderModule'](n[_0x5ba15f(0x548)][_0x5ba15f(0x640)],_0x557165));});}[_0x14e1ea(0x462)](){const _0x3e55c7=_0x14e1ea;[it,N,tt,nt,F,z,ie,ae,oe,ue,fe,xe][_0x3e55c7(0x263)](_0x3ca307=>this[_0x3e55c7(0x423)][_0x3e55c7(0x31c)](_0x3ca307));}};W($,_0x14e1ea(0x19d),t[_0x14e1ea(0x62d)]+_0x14e1ea(0x42d)),W($,_0x14e1ea(0x502),$e),W($,_0x14e1ea(0x4fb),et),W($,_0x14e1ea(0x314),n[_0x14e1ea(0x548)][_0x14e1ea(0x640)]),$=K([(0x0,n[_0x14e1ea(0x336)])(c[_0x14e1ea(0x3ba)],l['UniverRenderEnginePlugin'],r[_0x14e1ea(0x58c)],t[_0x14e1ea(0x20d)],a['UniverSheetsUIPlugin']),G(0x1,(0x0,n['Inject'])(n[_0x14e1ea(0x4cd)])),G(0x2,(0x0,n[_0x14e1ea(0x608)])(n['ICommandService'])),G(0x3,l[_0x14e1ea(0x438)]),G(0x4,n[_0x14e1ea(0x5a1)])],$),exports[_0x14e1ea(0x451)]=br,exports[_0x14e1ea(0x5db)]=Sr,exports[_0x14e1ea(0x279)]=xr,exports[_0x14e1ea(0x35b)]=N,exports[_0x14e1ea(0x283)]=cr,exports['PivotFilterPanel']=Qn,exports[_0x14e1ea(0x317)]=Qe,Object[_0x14e1ea(0x51c)](exports,_0x14e1ea(0x4c0),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x14e1ea(0x51c)](exports,'UniverSheetsPivotTableUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ function _0x1940(_0x109123,_0xcf1d61){_0x109123=_0x109123-0x1b4;const _0x308492=_0x3084();let _0x19401a=_0x308492[_0x109123];return _0x19401a;}const _0x15a2ed=_0x1940;(function(_0x502a87,_0x10114c){const _0x24f343=_0x1940,_0xcf8236=_0x502a87();while(!![]){try{const _0xc44eec=-parseInt(_0x24f343(0x2c6))/0x1*(parseInt(_0x24f343(0x589))/0x2)+parseInt(_0x24f343(0x5a2))/0x3+parseInt(_0x24f343(0x527))/0x4+parseInt(_0x24f343(0x622))/0x5*(parseInt(_0x24f343(0x512))/0x6)+parseInt(_0x24f343(0x349))/0x7+parseInt(_0x24f343(0x559))/0x8+-parseInt(_0x24f343(0x692))/0x9*(parseInt(_0x24f343(0x66a))/0xa);if(_0xc44eec===_0x10114c)break;else _0xcf8236['push'](_0xcf8236['shift']());}catch(_0x8c9cce){_0xcf8236['push'](_0xcf8236['shift']());}}}(_0x3084,0x7f1db),Object[_0x15a2ed(0x346)](exports,Symbol[_0x15a2ed(0x428)],{'value':_0x15a2ed(0x5d0)}));let e=require('@univerjs-pro/engine-pivot'),t=require('@univerjs-pro/sheets-pivot'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('@univerjs/ui'),a=require('@univerjs/sheets-ui'),o=require('rxjs'),s=require('@univerjs/design'),c=require('@univerjs-pro/license'),l=require('@univerjs/engine-render'),u=require('@univerjs/icons'),d=require('react/jsx-runtime'),f=require('react'),p=require('@univerjs/engine-formula'),m=require('@univerjs/sheets-formula-ui'),h=require('@univerjs/docs'),g=require('@univerjs/docs-ui');const _=_0x15a2ed(0x4ca),v=_0x15a2ed(0x5d9),y=_0x15a2ed(0x301),b='UNIVER_SHEET_PIVOT_FILTER_PANEL_ID',x=_0x15a2ed(0x561),S=_0x15a2ed(0x5d2),C=_0x15a2ed(0x509),w=_0x15a2ed(0x655),T=_0x15a2ed(0x2c1),E=_0x15a2ed(0x5dd),D=_0x15a2ed(0x3f6),O=_0x15a2ed(0x693),k=_0x15a2ed(0x5ea),A=_0x15a2ed(0x419),j=_0x15a2ed(0x3d9),M=_0x15a2ed(0x316),N={'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'id':_0x15a2ed(0x698),async 'handler'(_0x485af9){const _0x1ae1ba=_0x15a2ed;let _0xa131d2=_0x485af9[_0x1ae1ba(0x6a9)](n[_0x1ae1ba(0x4c5)]),_0x29fc5a=_0x485af9['get'](n[_0x1ae1ba(0x256)]),_0x47290f=(0x0,r[_0x1ae1ba(0x49d)])(_0xa131d2),_0x1943bb=_0x485af9['get'](n[_0x1ae1ba(0x58a)]);if(!_0x47290f)return!0x1;let {unitId:_0x5c4ed9,subUnitId:_0x3e1f41,worksheet:_0x25e481,workbook:_0x3ef428}=_0x47290f,_0x572661=_0x485af9['get'](r[_0x1ae1ba(0x70e)])[_0x1ae1ba(0x20a)](),_0x1349c0=(_0x572661==null?void 0x0:_0x572661[_0x1ae1ba(0x242)])??{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0,'rangeType':n['RANGE_TYPE'][_0x1ae1ba(0x4bc)]},_0x3eca5d=await P(_0x485af9,_0x5c4ed9,_0x3e1f41,(0x0,r[_0x1ae1ba(0x3cc)])(_0x572661)?(0x0,r[_0x1ae1ba(0x233)])(_0x1349c0,{'up':!0x0,'left':!0x0,'right':!0x0,'down':!0x0},_0x25e481):_0x1349c0,_0x25e481['getName']());if(!_0x3eca5d)return!0x1;let _0x31fe95=_0x3ef428[_0x1ae1ba(0x54c)]()[_0x1ae1ba(0x384)](_0x41b03b=>_0x41b03b[_0x1ae1ba(0x29d)]()===_0x3eca5d['sourceSheetName']);if(!_0x31fe95)return!0x1;let _0x5260b8;if(_0x3eca5d[_0x1ae1ba(0x405)]===t[_0x1ae1ba(0x348)]['New'])_0x5260b8={'row':0x0,'col':0x0,'unitId':_0x5c4ed9,'subUnitId':(0x0,n[_0x1ae1ba(0x2eb)])(),'sheetName':_0x3ef428[_0x1ae1ba(0x579)](''+_0x1943bb['t']('sheets-pivot-ui.sheet'))};else{if(!_0x3eca5d[_0x1ae1ba(0x573)]||!_0x3eca5d['positionSheetName'])return!0x1;let _0x481446=_0x3ef428[_0x1ae1ba(0x54c)]()[_0x1ae1ba(0x384)](_0x2c454b=>_0x2c454b[_0x1ae1ba(0x29d)]()===_0x3eca5d['positionSheetName']);if(!_0x481446)return!0x1;_0x5260b8={'row':_0x3eca5d[_0x1ae1ba(0x573)][_0x1ae1ba(0x59c)],'col':_0x3eca5d[_0x1ae1ba(0x573)][_0x1ae1ba(0x5e0)],'unitId':_0x5c4ed9,'subUnitId':_0x481446['getSheetId'](),'sheetName':_0x481446[_0x1ae1ba(0x29d)]()};}let _0xb30346=(0x0,e[_0x1ae1ba(0x421)])(0x8);return await _0x29fc5a[_0x1ae1ba(0x2f0)](t[_0x1ae1ba(0x2ae)]['id'],{'pivotTableId':_0xb30346,'pivotTableConfig':{'targetCellInfo':_0x5260b8,'sourceRangeInfo':{'range':_0x3eca5d[_0x1ae1ba(0x4e7)],'unitId':_0x5c4ed9,'sheetName':_0x3eca5d['sourceSheetName'],'subUnitId':_0x31fe95['getSheetId']()}},'positionType':_0x3eca5d[_0x1ae1ba(0x405)]})?{'unitId':_0x5260b8[_0x1ae1ba(0x427)],'subUnitId':_0x5260b8[_0x1ae1ba(0x317)],'pivotTableId':_0xb30346}:!0x1;}};async function P(_0x412da1,_0x17353a,_0x4ce1fd,_0x450a6c,_0x1895ec){const _0x529dd1=_0x15a2ed;let _0x1b62b9=_0x412da1[_0x529dd1(0x6a9)](i['IDialogService']),_0x1c846f=_0x412da1['get'](n[_0x529dd1(0x58a)]);return new Promise(_0x24012f=>{const _0x52ec8b=_0x529dd1;let _0x3291f2,_0x2c47c0={'unitId':_0x17353a,'subUnitId':_0x4ce1fd,'sourceRange':_0x450a6c,'positionRange':null,'sourceSheetName':_0x1895ec,'positionSheetName':_0x1895ec,'onConfirm':_0x35d624=>{const _0x1689c0=_0x1940;_0x24012f(_0x35d624),_0x3291f2==null||_0x3291f2[_0x1689c0(0x5d3)]();},'onCancel':()=>{_0x24012f(null),_0x3291f2==null||_0x3291f2['dispose']();}};_0x3291f2=_0x1b62b9[_0x52ec8b(0x1cb)]({'id':A,'title':{'title':_0x1c846f['t']('sheets-pivot-ui.dialog.source.insertPivotTable')},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'children':{'label':{'name':A,'props':_0x2c47c0}},'width':0x190,'onClose':()=>{const _0x8d82cc=_0x52ec8b;_0x3291f2[_0x8d82cc(0x5d3)]();}});});}const F={'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'id':_0x15a2ed(0x36e),async 'handler'(_0x5bdf76,_0x530942){const _0x2aed0b=_0x15a2ed;if(!_0x530942)return!0x1;let _0x3ef264=I(_0x5bdf76);return _0x3ef264?_0x5bdf76[_0x2aed0b(0x6a9)](n[_0x2aed0b(0x256)])[_0x2aed0b(0x2f0)](t[_0x2aed0b(0x48b)]['id'],{'unitId':_0x3ef264['unitId'],'subUnitId':_0x3ef264[_0x2aed0b(0x317)],'pivotTableId':_0x3ef264['pivotTableId'],'tableFieldId':_0x3ef264[_0x2aed0b(0x6ed)],'dateType':_0x530942['dateType']}):!0x1;}};function I(_0x30629e,_0xfcfe57=e[_0x15a2ed(0x6d7)][_0x15a2ed(0x212)]){const _0x5f43fa=_0x15a2ed;let _0xc59533=_0x30629e['get'](n[_0x5f43fa(0x4c5)]),_0x305ae1=(0x0,r[_0x5f43fa(0x49d)])(_0xc59533);if(!_0x305ae1)return;let _0x2ec4d6=_0x30629e[_0x5f43fa(0x6a9)](r['SheetsSelectionsService'])['getCurrentLastSelection'](),_0xd4c00f=_0x2ec4d6==null?void 0x0:_0x2ec4d6['primary'];if(!_0xd4c00f)return;let {unitId:_0x44290a,subUnitId:_0x633cd1}=_0x305ae1,_0x2e6f17=_0xd4c00f[_0x5f43fa(0x59c)],_0xdd9f01=_0xd4c00f[_0x5f43fa(0x5e0)],_0x3e3e35=_0x30629e['get'](t[_0x5f43fa(0x56e)])[_0x5f43fa(0x56f)](_0x44290a,_0x633cd1,_0x2e6f17,_0xdd9f01);if(!_0x3e3e35)return;let _0x1ab050=L(_0x30629e,_0x44290a,_0x633cd1,_0x3e3e35,_0x2e6f17,_0xdd9f01);if(!_0x1ab050)return;let _0x33e8d5=_0x30629e[_0x5f43fa(0x6a9)](t[_0x5f43fa(0x381)]),_0x2f29c5=_0x33e8d5['getPivotTableConfig'](_0x44290a,_0x633cd1,_0x3e3e35);if((0x0,e['getPivotDateGroupingMode'])(_0x2f29c5==null?void 0x0:_0x2f29c5['fieldsConfig']['options'])!==_0xfcfe57)return;let _0x47d79b=_0x33e8d5[_0x5f43fa(0x25d)](_0x44290a,_0x3e3e35),_0x2dac3d=(0x0,t['getPivotDateGroupContext'])(_0x2f29c5==null?void 0x0:_0x2f29c5['fieldsConfig'],_0x47d79b,_0x1ab050);if(_0x2dac3d)return{'unitId':_0x44290a,'subUnitId':_0x633cd1,'pivotTableId':_0x3e3e35,'tableFieldId':_0x1ab050,'row':_0x2e6f17,'col':_0xdd9f01,'dateGroupContext':_0x2dac3d};}function L(_0x1969e2,_0x589f63,_0x1a874d,_0x1dad6c,_0x224330,_0x1cab9e){const _0x49d8ea=_0x15a2ed;let _0x3074ae=_0x1969e2[_0x49d8ea(0x6a9)](t[_0x49d8ea(0x56e)])[_0x49d8ea(0x362)](_0x589f63,_0x1a874d,_0x1dad6c);if(!_0x3074ae)return;let _0xe4d0bb=_0x1969e2[_0x49d8ea(0x6a9)](t['SheetsPivotTableAdaptorModel'])['getPivotTableCellData'](_0x589f63,_0x1a874d,_0x224330,_0x1cab9e),_0x57bd8b=(0x0,t[_0x49d8ea(0x25c)])(_0x224330,_0x1cab9e,_0xe4d0bb,_0x3074ae);return _0x57bd8b==null?void 0x0:_0x57bd8b[_0x49d8ea(0x6ed)];}function R(_0x3b205e){const _0x12a6a0=_0x15a2ed;let _0x2931ca=I(_0x3b205e,e[_0x12a6a0(0x6d7)][_0x12a6a0(0x333)]);if(!_0x2931ca)return;let _0x2de4ed=_0x3b205e[_0x12a6a0(0x6a9)](t[_0x12a6a0(0x381)]),_0x8f413c=_0x2de4ed[_0x12a6a0(0x2b6)](_0x2931ca[_0x12a6a0(0x427)],_0x2931ca[_0x12a6a0(0x317)],_0x2931ca[_0x12a6a0(0x260)]),_0x2a7f00=_0x8f413c==null?void 0x0:_0x8f413c[_0x12a6a0(0x5cd)][_0x12a6a0(0x2c4)][_0x2931ca[_0x12a6a0(0x6ed)]];if(!_0x2a7f00)return;let _0x3eda99=_0x2de4ed[_0x12a6a0(0x25d)](_0x2931ca[_0x12a6a0(0x427)],_0x2931ca[_0x12a6a0(0x260)]),_0x5362=(_0x2931ca[_0x12a6a0(0x52e)][_0x12a6a0(0x6ab)]===e[_0x12a6a0(0x22f)][_0x12a6a0(0x50d)]?_0x8f413c[_0x12a6a0(0x5cd)]['rowFields']:_0x8f413c[_0x12a6a0(0x5cd)][_0x12a6a0(0x40c)])[_0x12a6a0(0x521)](_0x42cca6=>{const _0x506445=_0x12a6a0;let _0x48e4ed=_0x8f413c['fieldsConfig'][_0x506445(0x2c4)][_0x42cca6],_0x57f849=_0x48e4ed?_0x3eda99==null?void 0x0:_0x3eda99[_0x506445(0x59e)][_0x48e4ed[_0x506445(0x566)]]:void 0x0;return _0x57f849&&(0x0,e[_0x506445(0x5b2)])(_0x57f849)&&_0x57f849[_0x506445(0x3ba)]===_0x2931ca[_0x506445(0x52e)][_0x506445(0x495)]&&_0x57f849[_0x506445(0x387)]?[_0x57f849[_0x506445(0x387)]]:[];}),_0x2887e5=_0x5362[0x0],_0xfc17b=_0x2887e5?{'units':_0x5362['map'](_0x135357=>_0x135357[_0x12a6a0(0x3c0)]),'autoStart':_0x2887e5[_0x12a6a0(0x3a2)],'autoEnd':_0x2887e5[_0x12a6a0(0x397)],..._0x2887e5[_0x12a6a0(0x4d0)]===void 0x0?{}:{'start':_0x2887e5[_0x12a6a0(0x4d0)]},..._0x2887e5[_0x12a6a0(0x305)]===void 0x0?{}:{'end':_0x2887e5['end']},..._0x2887e5['daysInterval']===void 0x0?{}:{'daysInterval':_0x2887e5[_0x12a6a0(0x5e9)]}}:void 0x0;return{..._0x2931ca,'targetFieldName':_0x2a7f00['displayName'],'grouping':_0xfc17b};}const z={'id':_0x15a2ed(0x5b5),'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],async 'handler'(_0xc19e8f){const _0x77415=_0x15a2ed;let _0x45ec34=R(_0xc19e8f);if(!_0x45ec34)return!0x1;let _0x2ccc5b=_0xc19e8f['get'](t[_0x77415(0x381)]),_0x2a7298=_0x2ccc5b['getPivotTableConfig'](_0x45ec34[_0x77415(0x427)],_0x45ec34['subUnitId'],_0x45ec34[_0x77415(0x260)]),_0xba8b8d=_0x2ccc5b['getCollection'](_0x45ec34['unitId'],_0x45ec34[_0x77415(0x260)]),_0xa6d24a=_0xc19e8f[_0x77415(0x6a9)](i[_0x77415(0x3fe)]),_0x2a2d4a=_0xc19e8f[_0x77415(0x6a9)](n['LocaleService']),_0x55a5ae=_0xc19e8f['get'](n[_0x77415(0x4c5)])[_0x77415(0x657)](_0x45ec34['unitId']),_0x453071=(_0x55a5ae==null?void 0x0:_0x55a5ae[_0x77415(0x591)]())??n['DateSystem'][_0x77415(0x492)],_0xd92987=null,_0x29a82e=!0x1,_0x4bc47a=!0x1,_0x466c76=()=>{const _0x26d4c4=_0x77415;_0x29a82e||(_0x29a82e=!0x0,_0xd92987==null||_0xd92987[_0x26d4c4(0x5d3)](),_0xd92987=null);},_0x4a0b4b=async _0x505727=>{const _0x3cea78=_0x77415;if(!(_0x4bc47a||_0x29a82e)){_0x4bc47a=!0x0;try{let _0x1e6a83=R(_0xc19e8f);if(!_0x1e6a83||_0x1e6a83['unitId']!==_0x45ec34['unitId']||_0x1e6a83[_0x3cea78(0x317)]!==_0x45ec34[_0x3cea78(0x317)]||_0x1e6a83[_0x3cea78(0x260)]!==_0x45ec34[_0x3cea78(0x260)]||_0x1e6a83[_0x3cea78(0x6ed)]!==_0x45ec34['tableFieldId']||_0x2ccc5b[_0x3cea78(0x2b6)](_0x45ec34[_0x3cea78(0x427)],_0x45ec34['subUnitId'],_0x45ec34['pivotTableId'])!==_0x2a7298||_0x2ccc5b[_0x3cea78(0x25d)](_0x45ec34[_0x3cea78(0x427)],_0x45ec34[_0x3cea78(0x260)])!==_0xba8b8d)return;await _0xc19e8f['get'](n['ICommandService'])[_0x3cea78(0x2f0)](t['SetPivotExcelDateGroupCommand']['id'],{'unitId':_0x45ec34[_0x3cea78(0x427)],'subUnitId':_0x45ec34['subUnitId'],'pivotTableId':_0x45ec34[_0x3cea78(0x260)],'tableFieldId':_0x45ec34['tableFieldId'],'grouping':{..._0x505727,'units':_0x505727[_0x3cea78(0x24c)][_0x3cea78(0x543)]()}});}catch{}finally{_0x466c76();}}};try{_0xd92987=_0xa6d24a[_0x77415(0x1cb)]({'id':_0x77415(0x344),'title':{'title':_0x2a2d4a['t'](_0x77415(0x4e0))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x1b8,'children':{'label':{'name':D,'props':{'targetFieldName':_0x45ec34[_0x77415(0x402)],'dateSystem':_0x453071,'grouping':_0x45ec34[_0x77415(0x67a)],'onConfirm':_0x4a0b4b,'onCancel':_0x466c76}}},'onClose':_0x466c76});}catch{return _0x466c76(),!0x1;}return!0x0;}};function B(_0x2c2de3){const _0x5099f4=_0x15a2ed;return _0x2c2de3[_0x5099f4(0x611)](_0x41f69d=>({..._0x41f69d,'members':_0x41f69d[_0x5099f4(0x55f)]['map'](_0x2182bd=>({..._0x2182bd}))}));}function V(_0x40a122){const _0x3fe37a=_0x15a2ed;let _0x95269c;try{_0x95269c=JSON[_0x3fe37a(0x58d)](_0x40a122);}catch{return;}if(!(!Array[_0x3fe37a(0x2dc)](_0x95269c)||_0x95269c[_0x3fe37a(0x714)]<0x1||typeof _0x95269c[0x0]!=_0x3fe37a(0x294)))return _0x95269c[0x0]===n[_0x3fe37a(0x1cd)]['Blank']?e['GlobalConfig'][_0x3fe37a(0x455)]:String(_0x95269c[0x1]);}function ee(_0x105507,_0x47f166){const _0x154ab9=_0x15a2ed;var _0x349f2a;let _0x4ea363=()=>({'error':_0x154ab9(0x6b2)}),_0x65b321=(0x0,r[_0x154ab9(0x49d)])(_0x105507[_0x154ab9(0x6a9)](n['IUniverInstanceService'])),_0x1072a4=_0x105507['get'](r[_0x154ab9(0x70e)])[_0x154ab9(0x57b)]();if(!_0x65b321||!_0x1072a4[_0x154ab9(0x714)])return _0x4ea363();let {unitId:_0x44cd6c,subUnitId:_0x141d37}=_0x65b321,_0x16d191=_0x1072a4[0x0][_0x154ab9(0x3e0)];if(!_0x16d191)return _0x4ea363();let _0x45294b=_0x105507[_0x154ab9(0x6a9)](t[_0x154ab9(0x56e)]),_0x24e6f=_0x45294b['getPivotTableIdByCell'](_0x44cd6c,_0x141d37,_0x16d191[_0x154ab9(0x59c)],_0x16d191[_0x154ab9(0x5e0)]),_0x1e84dc=_0x105507['get'](t[_0x154ab9(0x381)]),_0xb94c3b=_0x24e6f&&_0x1e84dc[_0x154ab9(0x2b6)](_0x44cd6c,_0x141d37,_0x24e6f),_0x156ee7=_0x24e6f&&_0x1e84dc[_0x154ab9(0x25d)](_0x44cd6c,_0x24e6f),_0x4c80cf=_0x24e6f&&_0x45294b['getPivotItemRenderInfoCache'](_0x44cd6c,_0x141d37,_0x24e6f);if(!_0x24e6f||!_0xb94c3b||!_0x156ee7||!_0x4c80cf)return _0x4ea363();let _0x166d3d=(0x0,t['resolvePivotSheetCell'])(_0x16d191[_0x154ab9(0x59c)],_0x16d191[_0x154ab9(0x5e0)],_0x45294b['getPivotTableCellData'](_0x44cd6c,_0x141d37,_0x16d191[_0x154ab9(0x59c)],_0x16d191[_0x154ab9(0x5e0)]),_0x4c80cf),_0x4f5045=_0x166d3d==null?void 0x0:_0x166d3d[_0x154ab9(0x6ed)],_0x5279e6=_0x4f5045&&_0xb94c3b['fieldsConfig']['dimension'][_0x4f5045];if(!_0x4f5045||!_0x5279e6||!(_0xb94c3b[_0x154ab9(0x5cd)][_0x154ab9(0x542)][_0x154ab9(0x6a2)](_0x4f5045)||_0xb94c3b[_0x154ab9(0x5cd)][_0x154ab9(0x40c)][_0x154ab9(0x6a2)](_0x4f5045)))return _0x4ea363();let _0x371bce=_0x156ee7[_0x154ab9(0x59e)][_0x5279e6['dataFieldId']];if(!_0x371bce)return _0x4ea363();let _0x19fa5b=_0x371bce[_0x154ab9(0x3b4)]===e[_0x154ab9(0x1e6)][_0x154ab9(0x3f9)]?_0x371bce:void 0x0;if(!_0x19fa5b&&_0x371bce[_0x154ab9(0x3b4)]!==e[_0x154ab9(0x1e6)][_0x154ab9(0x5ba)])return _0x4ea363();let _0x44c28f=(_0x19fa5b==null?void 0x0:_0x19fa5b[_0x154ab9(0x3ba)])??_0x371bce['id'];if(((_0x349f2a=_0x156ee7[_0x154ab9(0x59e)][_0x44c28f])==null?void 0x0:_0x349f2a[_0x154ab9(0x3b4)])!==e[_0x154ab9(0x1e6)][_0x154ab9(0x5ba)])return _0x4ea363();let _0x50063b=B((_0x19fa5b==null?void 0x0:_0x19fa5b[_0x154ab9(0x67a)]['groups'])??[]),_0x49f2b8=new Map(),_0x4a2b28=new Set(),_0xfa9345=0x0;for(let _0x2e6a17 of _0x1072a4){let {startRow:_0x1461b1,endRow:_0x46738e,startColumn:_0x38e497,endColumn:_0x2bb94c}=_0x2e6a17[_0x154ab9(0x242)];if(_0xfa9345+=(_0x46738e-_0x1461b1+0x1)*(_0x2bb94c-_0x38e497+0x1),_0xfa9345>0x200)return _0x4ea363();for(let _0x363151=_0x1461b1;_0x363151<=_0x46738e;_0x363151++)for(let _0x1487c7=_0x38e497;_0x1487c7<=_0x2bb94c;_0x1487c7++){if(_0x45294b['getPivotTableIdByCell'](_0x44cd6c,_0x141d37,_0x363151,_0x1487c7)!==_0x24e6f)return _0x4ea363();let _0x42fdf4=(0x0,t[_0x154ab9(0x25c)])(_0x363151,_0x1487c7,_0x45294b[_0x154ab9(0x3a7)](_0x44cd6c,_0x141d37,_0x363151,_0x1487c7),_0x4c80cf),_0x1a41fa=_0x42fdf4==null?void 0x0:_0x42fdf4[_0x154ab9(0x6a1)];if(!_0x42fdf4||_0x42fdf4[_0x154ab9(0x6ab)]!==_0x154ab9(0x281)&&_0x42fdf4[_0x154ab9(0x6ab)]!=='colRanges'||_0x42fdf4[_0x154ab9(0x6ed)]!==_0x4f5045||!_0x1a41fa||_0x1a41fa['isValue']||_0x1a41fa[_0x154ab9(0x598)]||_0x1a41fa[_0x154ab9(0x230)]||_0x1a41fa['isTopTotal']||_0x1a41fa[_0x154ab9(0x337)]&&_0x1a41fa[_0x154ab9(0x337)]!==_0x154ab9(0x54a)||_0x1a41fa['level']<0x1)return _0x4ea363();let _0x36ef5b=_0x1a41fa[_0x154ab9(0x26b)][_0x1a41fa['level']-0x1];if(_0x36ef5b===void 0x0)return _0x4ea363();if(_0x19fa5b){let _0x418efb;try{_0x418efb=JSON['parse'](_0x36ef5b);}catch{return _0x4ea363();}if(!Array['isArray'](_0x418efb)||_0x418efb['length']!==0x2||typeof _0x418efb[0x1]!='string')return _0x4ea363();if(_0x418efb[0x0]===_0x154ab9(0x355)){if(!_0x50063b[_0x154ab9(0x364)](_0x3c4fea=>_0x3c4fea['id']===_0x418efb[0x1]))return _0x4ea363();_0x4a2b28[_0x154ab9(0x6dc)](_0x418efb[0x1]);continue;}if(_0x418efb[0x0]!=='member')return _0x4ea363();let _0x26dd18=V(_0x418efb[0x1]);if(_0x26dd18===void 0x0)return _0x4ea363();_0x49f2b8[_0x154ab9(0x4ab)](_0x418efb[0x1],{'path':_0x26dd18,'memberKey':_0x418efb[0x1]});}else{var _0x9696be;let _0x5b1e99=(_0x9696be=_0x45294b['getPivotTableCellData'](_0x44cd6c,_0x141d37,_0x363151,_0x1487c7))==null?void 0x0:_0x9696be['v'],_0x3fd4bd=_0x5b1e99==null||_0x5b1e99===''?e[_0x154ab9(0x383)][_0x154ab9(0x455)]:String(_0x5b1e99);_0x49f2b8['set'](_0x36ef5b,{'path':_0x3fd4bd,'tupleKey':_0x36ef5b});}}}return _0x47f166==='group'&&(_0x49f2b8[_0x154ab9(0x646)]<0x2||_0x4a2b28[_0x154ab9(0x646)]>0x0)||_0x47f166!==_0x154ab9(0x355)&&(_0x49f2b8['size']>0x0||_0x4a2b28[_0x154ab9(0x646)]!==0x1)?_0x4ea363():{'context':{'unitId':_0x44cd6c,'subUnitId':_0x141d37,'pivotTableId':_0x24e6f,'tableFieldId':_0x4f5045,'sourceFieldId':_0x44c28f,'targetFieldName':_0x5279e6['displayName'],'groups':_0x50063b,'memberPaths':Array[_0x154ab9(0x3e8)](_0x49f2b8[_0x154ab9(0x43a)]()),'selectedGroupId':Array['from'](_0x4a2b28)[0x0]}};}function te(_0x18a6fb,_0x545187){return ee(_0x18a6fb,_0x545187)['context'];}function H(_0x4d0111,_0x2c8d71){const _0x39aaeb=_0x15a2ed;_0x4d0111[_0x39aaeb(0x6a9)](i[_0x39aaeb(0x6d3)])[_0x39aaeb(0x4e5)]({'type':s[_0x39aaeb(0x4e9)][_0x39aaeb(0x2bd)],'content':_0x4d0111[_0x39aaeb(0x6a9)](n[_0x39aaeb(0x58a)])['t']('sheets-pivot-ui.manualGroup.'+_0x2c8d71)});}function ne(_0x5b3724,_0x31a0b1,_0x1b2b9d){const _0x39debb=_0x15a2ed;let _0x1323c6=te(_0x5b3724,_0x31a0b1);return!!_0x1323c6&&_0x1323c6[_0x39debb(0x427)]===_0x1b2b9d[_0x39debb(0x427)]&&_0x1323c6[_0x39debb(0x317)]===_0x1b2b9d['subUnitId']&&_0x1323c6[_0x39debb(0x260)]===_0x1b2b9d[_0x39debb(0x260)]&&_0x1323c6[_0x39debb(0x6ed)]===_0x1b2b9d[_0x39debb(0x6ed)]&&_0x1323c6[_0x39debb(0x298)]===_0x1b2b9d['sourceFieldId']&&_0x1323c6['selectedGroupId']===_0x1b2b9d[_0x39debb(0x610)]&&JSON[_0x39debb(0x445)](_0x1323c6['memberPaths'])===JSON[_0x39debb(0x445)](_0x1b2b9d[_0x39debb(0x608)])&&JSON[_0x39debb(0x445)](_0x1323c6[_0x39debb(0x682)])===JSON[_0x39debb(0x445)](_0x1b2b9d[_0x39debb(0x682)]);}async function re(_0x2ed604,_0x57741e){const _0x570103=_0x15a2ed;let _0x1f976a=ee(_0x2ed604,_0x57741e),_0x3da6b5=_0x1f976a[_0x570103(0x6ee)];if(!_0x3da6b5)return H(_0x2ed604,_0x1f976a['error']),!0x1;let _0x5b8d6f=_0x2ed604[_0x570103(0x6a9)](t['SheetsPivotTableConfigModel']),_0x1aa486=_0x5b8d6f[_0x570103(0x2b6)](_0x3da6b5['unitId'],_0x3da6b5[_0x570103(0x317)],_0x3da6b5['pivotTableId']),_0x3758a2=_0x5b8d6f[_0x570103(0x25d)](_0x3da6b5[_0x570103(0x427)],_0x3da6b5[_0x570103(0x260)]),_0x4cd3b1=[];if(_0x57741e===_0x570103(0x355)){try{let _0x1f3560=(await _0x2ed604['get'](t[_0x570103(0x4cb)])[_0x570103(0x601)]({'unitId':_0x3da6b5['unitId'],'subUnitId':_0x3da6b5['subUnitId'],'pivotTableId':_0x3da6b5['pivotTableId'],'params':{'type':t[_0x570103(0x498)][_0x570103(0x623)],'manualGroupMembers':{'sourceFieldId':_0x3da6b5['sourceFieldId'],'paths':_0x3da6b5[_0x570103(0x608)]}}}))[_0x570103(0x399)]['manualGroupMembers'];if(!_0x1f3560||_0x1f3560[_0x570103(0x4de)]||_0x1f3560[_0x570103(0x55f)][_0x570103(0x714)]<0x2)return H(_0x2ed604,(_0x1f3560==null?void 0x0:_0x1f3560[_0x570103(0x4de)])??_0x570103(0x6b2)),!0x1;_0x4cd3b1=_0x1f3560['members'];}catch{return H(_0x2ed604,_0x570103(0x6b2)),!0x1;}if(!ne(_0x2ed604,_0x57741e,_0x3da6b5)||_0x5b8d6f[_0x570103(0x2b6)](_0x3da6b5[_0x570103(0x427)],_0x3da6b5[_0x570103(0x317)],_0x3da6b5[_0x570103(0x260)])!==_0x1aa486||_0x5b8d6f[_0x570103(0x25d)](_0x3da6b5[_0x570103(0x427)],_0x3da6b5[_0x570103(0x260)])!==_0x3758a2)return!0x1;}let _0x40236e=_0x2ed604[_0x570103(0x6a9)](i['IDialogService']),_0xb785a2=_0x2ed604[_0x570103(0x6a9)](n[_0x570103(0x58a)]),_0x316786=_0x3da6b5[_0x570103(0x682)][_0x570103(0x384)](_0xc176fc=>_0xc176fc['id']===_0x3da6b5[_0x570103(0x610)]),_0x26de4a=(_0x316786==null?void 0x0:_0x316786[_0x570103(0x68b)])??_0xb785a2['t'](_0x570103(0x665),String(_0x3da6b5[_0x570103(0x682)]['length']+0x1));if(!_0x316786){let _0x570d07=_0x3da6b5[_0x570103(0x682)]['length']+0x1;for(;_0x3da6b5['groups'][_0x570103(0x364)](_0x5cacc0=>_0x5cacc0['name']===_0x26de4a);)_0x570d07++,_0x26de4a=_0xb785a2['t']('sheets-pivot-ui.manualGroup.defaultName',String(_0x570d07));}let _0x24c26c=null,_0x2baf9d=!0x1,_0x570289=!0x1,_0x3c8917=()=>{const _0x2e1cea=_0x570103;_0x2baf9d||(_0x2baf9d=!0x0,_0x24c26c==null||_0x24c26c[_0x2e1cea(0x5d3)](),_0x24c26c=null);},_0x3c42b4=async _0x543b95=>{const _0x359fbf=_0x570103;if(_0x570289||_0x2baf9d)return;let _0x55947d=_0x543b95[_0x359fbf(0x47a)]();if(!_0x55947d||_0x3da6b5[_0x359fbf(0x682)][_0x359fbf(0x364)](_0x4040e0=>_0x4040e0['name']===_0x55947d&&_0x4040e0['id']!==_0x3da6b5[_0x359fbf(0x610)]))H(_0x2ed604,_0x359fbf(0x6b2));else{_0x570289=!0x0;try{if(!ne(_0x2ed604,_0x57741e,_0x3da6b5)||_0x5b8d6f[_0x359fbf(0x2b6)](_0x3da6b5[_0x359fbf(0x427)],_0x3da6b5[_0x359fbf(0x317)],_0x3da6b5[_0x359fbf(0x260)])!==_0x1aa486||_0x5b8d6f[_0x359fbf(0x25d)](_0x3da6b5['unitId'],_0x3da6b5['pivotTableId'])!==_0x3758a2)return;let _0x423df2=_0x57741e===_0x359fbf(0x355)?_0x3da6b5[_0x359fbf(0x682)][_0x359fbf(0x543)]({'id':(0x0,n['generateRandomId'])(),'name':_0x55947d,'members':_0x4cd3b1[_0x359fbf(0x611)](_0x1a263c=>({..._0x1a263c}))}):_0x3da6b5['groups']['map'](_0x1befb8=>_0x1befb8['id']===_0x3da6b5[_0x359fbf(0x610)]?{..._0x1befb8,'name':_0x55947d}:_0x1befb8);await _0x2ed604[_0x359fbf(0x6a9)](n[_0x359fbf(0x256)])[_0x359fbf(0x2f0)](t[_0x359fbf(0x4da)]['id'],{'unitId':_0x3da6b5[_0x359fbf(0x427)],'subUnitId':_0x3da6b5[_0x359fbf(0x317)],'pivotTableId':_0x3da6b5[_0x359fbf(0x260)],'sourceFieldId':_0x3da6b5[_0x359fbf(0x298)],'groups':_0x423df2});}catch{}finally{_0x3c8917();}}};try{_0x24c26c=_0x40236e[_0x570103(0x1cb)]({'id':_0x570103(0x5b4),'title':{'title':_0xb785a2['t'](_0x57741e===_0x570103(0x355)?_0x570103(0x654):'sheets-pivot-ui.manualGroup.renameTitle')},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':k,'props':{'name':_0x26de4a,'onConfirm':_0x3c42b4,'onCancel':_0x3c8917}}},'onClose':_0x3c8917});}catch{return _0x3c8917(),!0x1;}return!0x0;}const ie={'id':'sheet.operation.set-pivot-manual-group','type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'handler':_0x1959e6=>re(_0x1959e6,_0x15a2ed(0x355))},ae={'id':_0x15a2ed(0x38e),'type':n['CommandType']['OPERATION'],'handler':_0x33a1fd=>re(_0x33a1fd,_0x15a2ed(0x359))},oe={'id':_0x15a2ed(0x684),'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],async 'handler'(_0x264ba6){const _0x465200=_0x15a2ed;let _0x6b94a0=ee(_0x264ba6,_0x465200(0x3fc)),_0x4f2cf1=_0x6b94a0['context'];if(!_0x4f2cf1)return H(_0x264ba6,_0x6b94a0['error']),!0x1;let _0x36bb53=_0x264ba6[_0x465200(0x6a9)](t[_0x465200(0x381)]),_0x1d8162=_0x36bb53['getPivotTableConfig'](_0x4f2cf1[_0x465200(0x427)],_0x4f2cf1['subUnitId'],_0x4f2cf1[_0x465200(0x260)]),_0x242380=_0x36bb53[_0x465200(0x25d)](_0x4f2cf1[_0x465200(0x427)],_0x4f2cf1[_0x465200(0x260)]);return!ne(_0x264ba6,'ungroup',_0x4f2cf1)||_0x36bb53[_0x465200(0x2b6)](_0x4f2cf1[_0x465200(0x427)],_0x4f2cf1[_0x465200(0x317)],_0x4f2cf1['pivotTableId'])!==_0x1d8162||_0x36bb53[_0x465200(0x25d)](_0x4f2cf1[_0x465200(0x427)],_0x4f2cf1['pivotTableId'])!==_0x242380?!0x1:_0x264ba6['get'](n[_0x465200(0x256)])['executeCommand'](t[_0x465200(0x4da)]['id'],{'unitId':_0x4f2cf1[_0x465200(0x427)],'subUnitId':_0x4f2cf1[_0x465200(0x317)],'pivotTableId':_0x4f2cf1[_0x465200(0x260)],'sourceFieldId':_0x4f2cf1[_0x465200(0x298)],'groups':_0x4f2cf1[_0x465200(0x682)][_0x465200(0x3f8)](_0xb8aef7=>_0xb8aef7['id']!==_0x4f2cf1[_0x465200(0x610)])});}};function se(_0x57b995){const _0x13abab=_0x15a2ed;return typeof _0x57b995[_0x13abab(0x3a2)]==_0x13abab(0x450)&&typeof _0x57b995[_0x13abab(0x397)]==_0x13abab(0x450)&&Number[_0x13abab(0x479)](_0x57b995[_0x13abab(0x329)])&&_0x57b995[_0x13abab(0x329)]>0x0&&(_0x57b995[_0x13abab(0x4d0)]===void 0x0||Number[_0x13abab(0x479)](_0x57b995['start']))&&(_0x57b995[_0x13abab(0x305)]===void 0x0||Number['isFinite'](_0x57b995[_0x13abab(0x305)]))&&(_0x57b995['autoStart']||_0x57b995['start']!==void 0x0)&&(_0x57b995['autoEnd']||_0x57b995[_0x13abab(0x305)]!==void 0x0)&&(_0x57b995[_0x13abab(0x4d0)]===void 0x0||_0x57b995[_0x13abab(0x305)]===void 0x0||_0x57b995[_0x13abab(0x4d0)]<=_0x57b995['end']);}function ce(_0x2b2824,_0x430470){const _0x4dc2e8=_0x15a2ed;if(_0x2b2824[_0x4dc2e8(0x3b4)]===e['PivotDataFieldTypeEnum'][_0x4dc2e8(0x2d7)]){let _0xbb9977=_0x2b2824,_0x10691b=_0x430470[_0x4dc2e8(0x59e)][_0xbb9977[_0x4dc2e8(0x3ba)]];return!_0x10691b||_0x10691b[_0x4dc2e8(0x3b4)]!==e[_0x4dc2e8(0x1e6)][_0x4dc2e8(0x5ba)]||_0x10691b[_0x4dc2e8(0x56b)]!==e[_0x4dc2e8(0x332)][_0x4dc2e8(0x426)]?void 0x0:{'sourceFieldId':_0xbb9977[_0x4dc2e8(0x3ba)],'grouping':{..._0xbb9977[_0x4dc2e8(0x67a)]}};}if(_0x2b2824[_0x4dc2e8(0x3b4)]===e['PivotDataFieldTypeEnum'][_0x4dc2e8(0x5ba)]&&_0x2b2824[_0x4dc2e8(0x56b)]===e[_0x4dc2e8(0x332)][_0x4dc2e8(0x426)])return{'sourceFieldId':_0x2b2824['id']};}function le(_0x4609cf){const _0x1f3c09=_0x15a2ed;var _0x2185a4;let _0x25ad48=(0x0,r[_0x1f3c09(0x49d)])(_0x4609cf['get'](n['IUniverInstanceService'])),_0x3da428=(_0x2185a4=_0x4609cf['get'](r['SheetsSelectionsService'])['getCurrentLastSelection']())==null?void 0x0:_0x2185a4['primary'];if(!_0x25ad48||!_0x3da428)return;let {unitId:_0x5af61e,subUnitId:_0x4c40cd}=_0x25ad48,_0x1ce306=_0x3da428['startRow'],_0x4f87cc=_0x3da428[_0x1f3c09(0x5e0)],_0x2f6e1a=_0x4609cf['get'](t['SheetsPivotTableAdaptorModel']),_0x1ede72=_0x2f6e1a[_0x1f3c09(0x56f)](_0x5af61e,_0x4c40cd,_0x1ce306,_0x4f87cc);if(!_0x1ede72)return;let _0x11abad=_0x2f6e1a['getPivotItemRenderInfoCache'](_0x5af61e,_0x4c40cd,_0x1ede72);if(!_0x11abad)return;let _0x5d5019=(0x0,t[_0x1f3c09(0x25c)])(_0x1ce306,_0x4f87cc,_0x2f6e1a[_0x1f3c09(0x3a7)](_0x5af61e,_0x4c40cd,_0x1ce306,_0x4f87cc),_0x11abad),_0x5ac23d=_0x5d5019==null?void 0x0:_0x5d5019[_0x1f3c09(0x6ed)];if(!_0x5ac23d||_0x5d5019[_0x1f3c09(0x6ab)]!=='rowRanges'&&_0x5d5019[_0x1f3c09(0x6ab)]!==_0x1f3c09(0x226))return;let _0x19eeb5=_0x4609cf[_0x1f3c09(0x6a9)](t[_0x1f3c09(0x381)]),_0x203348=_0x19eeb5[_0x1f3c09(0x2b6)](_0x5af61e,_0x4c40cd,_0x1ede72),_0x5b1ba7=_0x19eeb5[_0x1f3c09(0x25d)](_0x5af61e,_0x1ede72),_0x11c60d=_0x203348==null?void 0x0:_0x203348[_0x1f3c09(0x5cd)]['dimension'][_0x5ac23d];if(!_0x11c60d||!_0x5b1ba7||!(_0x203348[_0x1f3c09(0x5cd)]['rowFields'][_0x1f3c09(0x6a2)](_0x5ac23d)||_0x203348[_0x1f3c09(0x5cd)][_0x1f3c09(0x40c)][_0x1f3c09(0x6a2)](_0x5ac23d)))return;let _0x54f42b=_0x5b1ba7[_0x1f3c09(0x59e)][_0x11c60d[_0x1f3c09(0x566)]];if(!_0x54f42b)return;let _0x45e63b=ce(_0x54f42b,_0x5b1ba7);if(_0x45e63b)return{'unitId':_0x5af61e,'subUnitId':_0x4c40cd,'pivotTableId':_0x1ede72,'tableFieldId':_0x5ac23d,'targetFieldName':_0x11c60d[_0x1f3c09(0x343)],..._0x45e63b};}const ue={'id':_0x15a2ed(0x690),'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],async 'handler'(_0x2886b9){const _0x14bec0=_0x15a2ed;let _0x28cfc9=le(_0x2886b9);if(!_0x28cfc9)return!0x1;let _0x516115=_0x2886b9['get'](t[_0x14bec0(0x381)]),_0x3862b0=_0x516115[_0x14bec0(0x25d)](_0x28cfc9[_0x14bec0(0x427)],_0x28cfc9[_0x14bec0(0x260)]),_0x14fc96=_0x516115[_0x14bec0(0x2b6)](_0x28cfc9[_0x14bec0(0x427)],_0x28cfc9['subUnitId'],_0x28cfc9[_0x14bec0(0x260)]),_0x43ce51=_0x2886b9[_0x14bec0(0x6a9)](n[_0x14bec0(0x4c5)]),_0xa378e8=()=>{const _0x37e92e=_0x14bec0;let _0x4cc4e3=le(_0x2886b9);return!!_0x4cc4e3&&_0x4cc4e3[_0x37e92e(0x427)]===_0x28cfc9['unitId']&&_0x4cc4e3[_0x37e92e(0x317)]===_0x28cfc9[_0x37e92e(0x317)]&&_0x4cc4e3[_0x37e92e(0x260)]===_0x28cfc9[_0x37e92e(0x260)]&&_0x4cc4e3[_0x37e92e(0x6ed)]===_0x28cfc9[_0x37e92e(0x6ed)]&&_0x4cc4e3['sourceFieldId']===_0x28cfc9[_0x37e92e(0x298)]&&JSON[_0x37e92e(0x445)](_0x4cc4e3[_0x37e92e(0x67a)])===JSON[_0x37e92e(0x445)](_0x28cfc9['grouping']);},_0x40d090=_0x2886b9['get'](i[_0x14bec0(0x3fe)]),_0x2a176c=_0x2886b9['get'](n[_0x14bec0(0x58a)]),_0x3bbc0c=null,_0x538901=!0x1,_0x4ca6ed=!0x1,_0x4063ca=new o[(_0x14bec0(0x413))](),_0x3fe9ed=async()=>{const _0x189a98=_0x14bec0;if(!_0x538901&&_0xa378e8())try{let _0x1b22e5=(await _0x2886b9[_0x189a98(0x6a9)](t[_0x189a98(0x4cb)])[_0x189a98(0x601)]({'unitId':_0x28cfc9[_0x189a98(0x427)],'subUnitId':_0x28cfc9[_0x189a98(0x317)],'pivotTableId':_0x28cfc9[_0x189a98(0x260)],'params':{'type':t[_0x189a98(0x498)][_0x189a98(0x711)],'numberGroupDefaults':{'tableFieldId':_0x28cfc9['tableFieldId']}}}))[_0x189a98(0x399)][_0x189a98(0x313)];return!_0x538901&&_0xa378e8()&&_0x1b22e5&&se(_0x1b22e5)?_0x1b22e5:void 0x0;}catch{return;}},_0x2b89d7=()=>{const _0x2688da=_0x14bec0;_0x538901||(_0x538901=!0x0,_0x4063ca[_0x2688da(0x214)](),_0x4063ca[_0x2688da(0x204)](),_0x3bbc0c==null||_0x3bbc0c[_0x2688da(0x5d3)](),_0x3bbc0c=null);},_0x5c20e1=await _0x3fe9ed();if(!_0x5c20e1)return _0x2b89d7(),!0x1;let _0x339dc4=_0x43ce51[_0x14bec0(0x367)][_0x14bec0(0x254)]((0x0,o['filter'])(_0x472b59=>_0x472b59['getUnitId']()===_0x28cfc9[_0x14bec0(0x427)]),(0x0,o[_0x14bec0(0x68d)])(_0x2b89d7)),_0x96de9a=(0x0,o[_0x14bec0(0x2d5)])(()=>{const _0x97f084=_0x14bec0;if(_0x538901||!_0x43ce51['getUnit'](_0x28cfc9['unitId']))return _0x2b89d7(),o[_0x97f084(0x251)];let _0x6fa145=_0x516115['watchPivotTableChanges'](_0x28cfc9[_0x97f084(0x427)],_0x28cfc9[_0x97f084(0x317)],_0x28cfc9[_0x97f084(0x260)])['pipe']((0x0,o['debounceTime'])(0x0),(0x0,o[_0x97f084(0x611)])(()=>void 0x0));return(0x0,o[_0x97f084(0x68a)])((0x0,o['of'])(_0x5c20e1),_0x6fa145)[_0x97f084(0x254)]((0x0,o['switchMap'])(_0x45dcfb=>_0x45dcfb&&_0x516115[_0x97f084(0x25d)](_0x28cfc9[_0x97f084(0x427)],_0x28cfc9['pivotTableId'])===_0x3862b0&&_0x516115[_0x97f084(0x2b6)](_0x28cfc9[_0x97f084(0x427)],_0x28cfc9[_0x97f084(0x317)],_0x28cfc9['pivotTableId'])===_0x14fc96?(0x0,o['of'])(_0x45dcfb):(0x0,o['concat'])((0x0,o['of'])(void 0x0),_0x3fe9ed())),(0x0,o[_0x97f084(0x34b)])((0x0,o['merge'])(_0x4063ca,_0x339dc4)));}),_0x4c2f6d=async _0x34cf98=>{const _0x311266=_0x14bec0;if(!(_0x4ca6ed||_0x538901)){_0x4ca6ed=!0x0;try{if(!se(_0x34cf98)||!_0xa378e8())return;await _0x2886b9[_0x311266(0x6a9)](n['ICommandService'])[_0x311266(0x2f0)](t[_0x311266(0x407)]['id'],{'unitId':_0x28cfc9[_0x311266(0x427)],'subUnitId':_0x28cfc9['subUnitId'],'pivotTableId':_0x28cfc9[_0x311266(0x260)],'tableFieldId':_0x28cfc9[_0x311266(0x6ed)],'grouping':{..._0x34cf98}});}catch{}finally{_0x2b89d7();}}};try{_0x3bbc0c=_0x40d090[_0x14bec0(0x1cb)]({'id':_0x14bec0(0x2c5),'title':{'title':_0x2a176c['t']('sheets-pivot-ui.numberGroup.title')},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':O,'props':{'targetFieldName':_0x28cfc9['targetFieldName'],'grouping':_0x28cfc9[_0x14bec0(0x67a)],'defaults$':_0x96de9a,'onConfirm':_0x4c2f6d,'onCancel':_0x2b89d7}}},'onClose':_0x2b89d7});}catch{return _0x2b89d7(),!0x1;}return!0x0;}},de=[{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x56d)],'localeKey':_0x15a2ed(0x6fd),'requiresParameters':!0x1,'baseItemMode':'none'},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x4c9)],'localeKey':_0x15a2ed(0x5ac),'requiresParameters':!0x1,'baseItemMode':_0x15a2ed(0x704)},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x48a)],'localeKey':_0x15a2ed(0x60d),'requiresParameters':!0x1,'baseItemMode':_0x15a2ed(0x704)},{'type':e[_0x15a2ed(0x2cb)]['percentOfColumnTotal'],'localeKey':_0x15a2ed(0x36b),'requiresParameters':!0x1,'baseItemMode':_0x15a2ed(0x704)},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x207)],'localeKey':_0x15a2ed(0x4db),'requiresParameters':!0x1,'baseItemMode':'none'},{'type':e['PivotShowAsTypeEnum'][_0x15a2ed(0x474)],'localeKey':_0x15a2ed(0x2ca),'requiresParameters':!0x1,'baseItemMode':_0x15a2ed(0x704)},{'type':e[_0x15a2ed(0x2cb)]['index'],'localeKey':_0x15a2ed(0x5b0),'requiresParameters':!0x1,'baseItemMode':'none'},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x312)],'localeKey':_0x15a2ed(0x20c),'requiresParameters':!0x0,'baseItemMode':'none','parentFieldOnly':!0x0},{'type':e['PivotShowAsTypeEnum'][_0x15a2ed(0x32d)],'localeKey':_0x15a2ed(0x2bc),'requiresParameters':!0x0,'baseItemMode':_0x15a2ed(0x54a)},{'type':e['PivotShowAsTypeEnum']['differenceFrom'],'localeKey':_0x15a2ed(0x61b),'requiresParameters':!0x0,'baseItemMode':_0x15a2ed(0x283)},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x63b)],'localeKey':_0x15a2ed(0x57e),'requiresParameters':!0x0,'baseItemMode':_0x15a2ed(0x283)},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x2f8)],'localeKey':'sheets-pivot-ui.showValuesAs.runningTotal','requiresParameters':!0x0,'baseItemMode':_0x15a2ed(0x704)},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x6e2)],'localeKey':'sheets-pivot-ui.showValuesAs.percentRunningTotal','requiresParameters':!0x0,'baseItemMode':'none'},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x3a4)],'localeKey':_0x15a2ed(0x2fe),'requiresParameters':!0x0,'baseItemMode':'none'},{'type':e[_0x15a2ed(0x2cb)][_0x15a2ed(0x289)],'localeKey':_0x15a2ed(0x56a),'requiresParameters':!0x0,'baseItemMode':_0x15a2ed(0x704)}],fe={'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'id':_0x15a2ed(0x470),async 'handler'(_0x48e14b,_0x29ad10){const _0x42e0f1=_0x15a2ed;let _0xb494d8=_0x29ad10&&de[_0x42e0f1(0x384)](_0x325a5c=>_0x325a5c[_0x42e0f1(0x4a9)]===_0x29ad10[_0x42e0f1(0x4a9)]);if(!_0xb494d8)return!0x1;let _0x4c49d8=me(_0x48e14b);if(!_0x4c49d8)return!0x1;if(!_0xb494d8[_0x42e0f1(0x3c6)])return _0x48e14b['get'](n[_0x42e0f1(0x256)])[_0x42e0f1(0x2f0)](t[_0x42e0f1(0x213)]['id'],{'unitId':_0x4c49d8[_0x42e0f1(0x427)],'subUnitId':_0x4c49d8[_0x42e0f1(0x317)],'pivotTableId':_0x4c49d8[_0x42e0f1(0x260)],'tableFieldId':_0x4c49d8[_0x42e0f1(0x6ed)],'showDataAs':{'type':_0xb494d8[_0x42e0f1(0x4a9)],'baseFieldId':'','baseItem':''},'tableFieldInfo':_0x4c49d8[_0x42e0f1(0x3ef)],'dataFieldInfo':_0x4c49d8['dataFieldInfo']});let _0x4177c4=he(_0x48e14b,_0x4c49d8);if(!_0x4177c4)return!0x1;let _0x34c1f6=pe(_0x4177c4[_0x42e0f1(0x59f)],_0x4177c4[_0x42e0f1(0x6d0)],_0xb494d8);if(_0x34c1f6[_0x42e0f1(0x714)]===0x0)return!0x1;let _0x1a5641={};if(_0xb494d8[_0x42e0f1(0x336)]!==_0x42e0f1(0x704)){try{_0x1a5641=await ge(_0x48e14b,_0x4177c4[_0x42e0f1(0x59f)],_0x4c49d8[_0x42e0f1(0x260)],_0x34c1f6);}catch{return!0x1;}if(!_0x34c1f6['some'](_0x46c3bc=>_0x1a5641[_0x46c3bc]&&(_0xb494d8[_0x42e0f1(0x336)]==='item-or-relative'||_0x1a5641[_0x46c3bc]['items'][_0x42e0f1(0x714)]>0x0)))return!0x1;}let _0x55a1a5=_0x48e14b[_0x42e0f1(0x6a9)](i[_0x42e0f1(0x3fe)]),_0x4cd30a=_0x48e14b[_0x42e0f1(0x6a9)](n[_0x42e0f1(0x58a)]),_0x447ac8=null,_0x26b61b=!0x1,_0x83265=!0x1,_0x29e143=()=>{const _0x30d45e=_0x42e0f1;_0x26b61b||(_0x26b61b=!0x0,_0x447ac8==null||_0x447ac8[_0x30d45e(0x5d3)](),_0x447ac8=null);};try{_0x447ac8=_0x55a1a5[_0x42e0f1(0x1cb)]({'id':_0x42e0f1(0x710),'title':{'title':_0x4cd30a['t'](_0x42e0f1(0x282))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x190,'children':{'label':{'name':T,'props':{'unitId':_0x4c49d8[_0x42e0f1(0x427)],'subUnitId':_0x4c49d8[_0x42e0f1(0x317)],'pivotTableId':_0x4c49d8['pivotTableId'],'tableFieldId':_0x4c49d8[_0x42e0f1(0x6ed)],'type':_0xb494d8['type'],'baseItems':_0x1a5641,'onCancel':_0x29e143,'onConfirm':async _0x1b865b=>{const _0xfcaace=_0x42e0f1;if(!_0x83265){_0x83265=!0x0;try{let _0x45b480=he(_0x48e14b,_0x4c49d8);if(!_0x45b480||!_e(_0x45b480[_0xfcaace(0x59f)],_0x45b480[_0xfcaace(0x6d0)],_0xb494d8,_0x1b865b))return;if(_0xb494d8['baseItemMode']!=='none'&&_0x1b865b[_0xfcaace(0x59d)]===void 0x0){var _0x1f6bf9;if(!((_0x1f6bf9=(await ge(_0x48e14b,_0x45b480[_0xfcaace(0x59f)],_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x260)],[_0x1b865b[_0xfcaace(0x2d3)]]))[_0x1b865b[_0xfcaace(0x2d3)]])!=null&&_0x1f6bf9[_0xfcaace(0x671)][_0xfcaace(0x6a2)](_0x1b865b['baseItem'])))return;}await _0x48e14b['get'](n[_0xfcaace(0x256)])[_0xfcaace(0x2f0)](t['UpdatePivotFieldSettingCommand']['id'],{'unitId':_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x427)],'subUnitId':_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x317)],'pivotTableId':_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x260)],'tableFieldId':_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x6ed)],'showDataAs':_0x1b865b,'tableFieldInfo':_0x45b480[_0xfcaace(0x6ee)][_0xfcaace(0x3ef)],'dataFieldInfo':_0x45b480[_0xfcaace(0x6ee)]['dataFieldInfo']});}catch{}finally{_0x29e143();}}}}}},'onClose':_0x29e143});}catch{return _0x29e143(),!0x1;}return!0x0;}};function pe(_0x6e908e,_0x33f4b9,_0xd19fbe){const _0xfb37d6=_0x15a2ed;let {rowFields:_0x222020,columnFields:_0x1b504d,dimension:_0x183e48}=_0x6e908e[_0xfb37d6(0x5cd)];return(_0xd19fbe['parentFieldOnly']?[..._0x222020[_0xfb37d6(0x1c7)](0x0,-0x1),..._0x1b504d[_0xfb37d6(0x1c7)](0x0,-0x1)]:[..._0x222020,..._0x1b504d])[_0xfb37d6(0x3f8)](_0x1885de=>{const _0x4ecb24=_0xfb37d6;let _0x27b7d3=_0x183e48[_0x1885de];return!!(_0x27b7d3&&(_0x33f4b9[_0x4ecb24(0x59e)][_0x27b7d3['dataFieldId']]||_0x33f4b9['customFields'][_0x4ecb24(0x384)](_0x41b1ac=>_0x41b1ac['id']===_0x27b7d3[_0x4ecb24(0x566)])));});}function me(_0x162522){const _0x38a741=_0x15a2ed;var _0x5a602d,_0x318281;let _0x58eaca=(0x0,r[_0x38a741(0x49d)])(_0x162522['get'](n[_0x38a741(0x4c5)])),_0x1558a8=(_0x5a602d=_0x162522['get'](r[_0x38a741(0x70e)])[_0x38a741(0x20a)]())==null?void 0x0:_0x5a602d[_0x38a741(0x3e0)];if(!_0x58eaca||!_0x1558a8)return;let {unitId:_0x2ea45c,subUnitId:_0x13e5c1}=_0x58eaca,_0x3f0ad8=_0x1558a8[_0x38a741(0x59c)],_0x5e0ebc=_0x1558a8[_0x38a741(0x5e0)],_0x3c9623=_0x162522[_0x38a741(0x6a9)](t[_0x38a741(0x56e)]),_0x433fd8=_0x3c9623[_0x38a741(0x56f)](_0x2ea45c,_0x13e5c1,_0x3f0ad8,_0x5e0ebc);if(!_0x433fd8)return;let _0x484050=_0x162522['get'](t[_0x38a741(0x381)])[_0x38a741(0x2b6)](_0x2ea45c,_0x13e5c1,_0x433fd8),_0x43da0d=_0x3c9623['getPivotItemRenderInfoCache'](_0x2ea45c,_0x13e5c1,_0x433fd8),_0x5dde1c=_0x3c9623[_0x38a741(0x3a7)](_0x2ea45c,_0x13e5c1,_0x3f0ad8,_0x5e0ebc);if(!_0x484050||!_0x43da0d)return;let _0x28c85a=(0x0,t[_0x38a741(0x25c)])(_0x3f0ad8,_0x5e0ebc,_0x5dde1c,_0x43da0d);if(!_0x28c85a)return;let _0x2ac99d=(0x0,t[_0x38a741(0x48d)])(_0x28c85a,_0x484050[_0x38a741(0x5cd)][_0x38a741(0x35d)]);if(_0x2ac99d)return(_0x318281=he(_0x162522,{'unitId':_0x2ea45c,'subUnitId':_0x13e5c1,'pivotTableId':_0x433fd8,'tableFieldId':_0x2ac99d}))==null?void 0x0:_0x318281['context'];}function he(_0x42679d,_0x3bd9e3){const _0x460c9d=_0x15a2ed;let {unitId:_0x2005f6,subUnitId:_0x27c884,pivotTableId:_0x386187,tableFieldId:_0xae2edc}=_0x3bd9e3,_0xadf24e=_0x42679d[_0x460c9d(0x6a9)](t[_0x460c9d(0x381)]),_0x4ac98d=_0xadf24e[_0x460c9d(0x2b6)](_0x2005f6,_0x27c884,_0x386187),_0x3399cc=_0xadf24e['getCollection'](_0x2005f6,_0x386187),_0x414373=_0x4ac98d==null?void 0x0:_0x4ac98d[_0x460c9d(0x5cd)]['measure'][_0xae2edc];if(!_0x4ac98d||!_0x3399cc||!_0x414373||!_0x4ac98d[_0x460c9d(0x5cd)][_0x460c9d(0x35d)][_0x460c9d(0x6a2)](_0x414373['id']))return;let _0xa5e097=_0x3399cc[_0x460c9d(0x59e)][_0x414373[_0x460c9d(0x566)]]??_0x3399cc[_0x460c9d(0x4f4)][_0x460c9d(0x384)](_0x1f2fa2=>_0x1f2fa2['id']===_0x414373[_0x460c9d(0x566)]);if(!_0xa5e097)return;let _0x11c55f={..._0x414373[_0x460c9d(0x700)]};return{'config':_0x4ac98d,'collection':_0x3399cc,'context':{'unitId':_0x2005f6,'subUnitId':_0x27c884,'pivotTableId':_0x386187,'tableFieldId':_0x414373['id'],'currentShowDataAs':_0x11c55f,'tableFieldInfo':{'tableFieldId':_0x414373['id'],'displayName':_0x414373[_0x460c9d(0x343)],'dataFieldId':_0x414373[_0x460c9d(0x566)],'format':_0x414373[_0x460c9d(0x67b)],'subTotalType':_0x414373[_0x460c9d(0x5a5)],'showDataAs':{..._0x11c55f}},'dataFieldInfo':{'id':_0xa5e097['id'],'dataFieldId':_0xa5e097['id'],'name':_0xa5e097[_0x460c9d(0x68b)],'type':_0xa5e097[_0x460c9d(0x56b)],'checked':!0x0,'pivotTableId':_0x386187}}};}async function ge(_0x1136d0,_0x5041b3,_0x36b749,_0x53671c){const _0x463c8c=_0x15a2ed;let {unitId:_0x385aac,subUnitId:_0x3f6939}=_0x5041b3[_0x463c8c(0x47c)],_0x3b1015=_0x5041b3[_0x463c8c(0x47c)],_0x330fba=_0x1136d0['get'](t[_0x463c8c(0x56e)])[_0x463c8c(0x362)](_0x385aac,_0x3f6939,_0x36b749);if(!_0x330fba)throw Error(_0x463c8c(0x37a));return(await Promise[_0x463c8c(0x1c1)](_0x53671c[_0x463c8c(0x611)](async _0x20952d=>{const _0x3eb8f1=_0x463c8c;try{return[_0x20952d,(await _0x1136d0[_0x3eb8f1(0x6a9)](t['SheetsPivotRPCService'])[_0x3eb8f1(0x601)]({'unitId':_0x385aac,'subUnitId':_0x3f6939,'pivotTableId':_0x36b749,'params':{'type':t[_0x3eb8f1(0x498)][_0x3eb8f1(0x290)],'filter':{'row':_0x3b1015[_0x3eb8f1(0x291)],'col':_0x3b1015[_0x3eb8f1(0x64f)],'tableFieldId':_0x20952d,'pivotItemRenderInfoCache':_0x330fba}}}))[_0x3eb8f1(0x399)]['filter']];}catch{return[_0x20952d,void 0x0];}})))[_0x463c8c(0x1f1)]((_0x496874,[_0x5e4620,_0x5d077f])=>(_0x5d077f&&(_0x496874[_0x5e4620]={'items':_0x5d077f[_0x463c8c(0x671)],'itemTypes':_0x5d077f['itemTypes'],..._0x5d077f[_0x463c8c(0x562)]?{'itemLabels':_0x5d077f[_0x463c8c(0x562)]}:{},'format':_0x5d077f[_0x463c8c(0x67b)]}),_0x496874),{});}function _e(_0x327a3f,_0x154c0e,_0x42756d,_0x2315ac){const _0x4e8679=_0x15a2ed;return _0x2315ac[_0x4e8679(0x4a9)]!==_0x42756d['type']||!pe(_0x327a3f,_0x154c0e,_0x42756d)['includes'](_0x2315ac[_0x4e8679(0x2d3)])?!0x1:_0x42756d[_0x4e8679(0x336)]===_0x4e8679(0x704)?_0x2315ac[_0x4e8679(0x65d)]===''&&_0x2315ac[_0x4e8679(0x59d)]===void 0x0:_0x2315ac['baseItemType']===void 0x0?_0x2315ac['baseItem']!=='':_0x42756d[_0x4e8679(0x336)]===_0x4e8679(0x283)&&_0x2315ac[_0x4e8679(0x65d)]===''&&(_0x2315ac[_0x4e8679(0x59d)]===e[_0x4e8679(0x1f6)][_0x4e8679(0x3e1)]||_0x2315ac[_0x4e8679(0x59d)]===e[_0x4e8679(0x1f6)][_0x4e8679(0x214)]);}function ve(_0x4570c7){const _0x226cff=_0x15a2ed;return{..._0x4570c7,'expected':Array[_0x226cff(0x2dc)](_0x4570c7[_0x226cff(0x379)])?_0x4570c7[_0x226cff(0x379)][_0x226cff(0x543)]():_0x4570c7[_0x226cff(0x379)]};}function ye(_0x349cc6,_0x13d3de){const _0x4812a5=_0x15a2ed;let _0x2e6de9=_0x349cc6[_0x4812a5(0x6a9)](t[_0x4812a5(0x381)])['getPivotTableConfig'](_0x13d3de[_0x4812a5(0x427)],_0x13d3de['subUnitId'],_0x13d3de[_0x4812a5(0x260)]);if(_0x2e6de9&&_0x2e6de9['fieldsConfig'][_0x4812a5(0x2c4)][_0x13d3de['targetFieldId']]&&(_0x2e6de9[_0x4812a5(0x5cd)]['rowFields'][_0x4812a5(0x6a2)](_0x13d3de[_0x4812a5(0x1e3)])||_0x2e6de9['fieldsConfig'][_0x4812a5(0x40c)][_0x4812a5(0x6a2)](_0x13d3de[_0x4812a5(0x1e3)])))return _0x2e6de9;}function be(_0x20be5f){const _0x5801eb=_0x15a2ed;var _0x3d3c28,_0x2edc1c;let _0x105601=(0x0,r[_0x5801eb(0x49d)])(_0x20be5f[_0x5801eb(0x6a9)](n[_0x5801eb(0x4c5)])),_0x37ccff=(_0x3d3c28=_0x20be5f[_0x5801eb(0x6a9)](r[_0x5801eb(0x70e)])[_0x5801eb(0x20a)]())==null?void 0x0:_0x3d3c28[_0x5801eb(0x3e0)];if(!_0x105601||!_0x37ccff)return;let {unitId:_0x323167,subUnitId:_0x5a92b5}=_0x105601,_0x3d9915=_0x37ccff[_0x5801eb(0x59c)],_0x2d8e55=_0x37ccff[_0x5801eb(0x5e0)],_0x1c4ca5=_0x20be5f[_0x5801eb(0x6a9)](t['SheetsPivotTableAdaptorModel']),_0x5056a3=_0x1c4ca5[_0x5801eb(0x56f)](_0x323167,_0x5a92b5,_0x3d9915,_0x2d8e55);if(!_0x5056a3)return;let _0x195e54=_0x20be5f['get'](t[_0x5801eb(0x381)])[_0x5801eb(0x2b6)](_0x323167,_0x5a92b5,_0x5056a3),_0x2680f0=_0x1c4ca5[_0x5801eb(0x362)](_0x323167,_0x5a92b5,_0x5056a3);if(!_0x195e54||!_0x2680f0)return;let _0x533195=(0x0,t['resolvePivotSheetCell'])(_0x3d9915,_0x2d8e55,_0x1c4ca5[_0x5801eb(0x3a7)](_0x323167,_0x5a92b5,_0x3d9915,_0x2d8e55),_0x2680f0),_0x3140ea=_0x533195&&(0x0,t[_0x5801eb(0x25b)])(_0x533195,_0x195e54['fieldsConfig']);if(!_0x3140ea)return;let _0x3df404=_0x195e54['fieldsConfig']['dimension'][_0x3140ea[_0x5801eb(0x1e3)]],_0x51d23d=_0x195e54['fieldsConfig']['valueFields'][_0x5801eb(0x521)](_0x987adb=>{const _0x40e1de=_0x5801eb;let _0x116a0c=_0x195e54[_0x40e1de(0x5cd)][_0x40e1de(0x2c3)][_0x987adb];return _0x116a0c?[{'id':_0x116a0c['id'],'label':_0x116a0c['displayName']}]:[];});if(!_0x3df404||_0x51d23d[_0x5801eb(0x714)]===0x0)return;let _0xb4eae=(_0x2edc1c=_0x195e54[_0x5801eb(0x5cd)][_0x5801eb(0x672)])==null||(_0x2edc1c=_0x2edc1c[_0x5801eb(0x384)](_0x520f45=>_0x520f45[_0x5801eb(0x563)]===_0x3140ea[_0x5801eb(0x1e3)]))==null?void 0x0:_0x2edc1c['filterInfo'];return{'unitId':_0x323167,'subUnitId':_0x5a92b5,'pivotTableId':_0x5056a3,'targetFieldId':_0x3140ea[_0x5801eb(0x1e3)],'targetFieldName':_0x3df404[_0x5801eb(0x343)],'valueFields':_0x51d23d,'defaultValueFieldId':_0x3140ea[_0x5801eb(0x677)],..._0xb4eae?{'currentFilter':ve(_0xb4eae)}:{}};}const xe={'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'id':_0x15a2ed(0x661),async 'handler'(_0x1b2f90){const _0x3254ac=_0x15a2ed;let _0x3b1e51=be(_0x1b2f90);if(!_0x3b1e51)return!0x1;let _0x5772c3=_0x1b2f90[_0x3254ac(0x6a9)](i[_0x3254ac(0x3fe)]),_0x225871=_0x1b2f90[_0x3254ac(0x6a9)](n[_0x3254ac(0x58a)]),_0x1e663f=null,_0x182ef1=!0x1,_0xddd534=!0x1,_0x512893=()=>{const _0x51525d=_0x3254ac;_0x182ef1||(_0x182ef1=!0x0,_0x1e663f==null||_0x1e663f[_0x51525d(0x5d3)](),_0x1e663f=null);},_0x13b818=async _0x32d2ba=>{const _0x51bcc8=_0x3254ac;if(!_0xddd534){_0xddd534=!0x0;try{let _0x2b381a=ye(_0x1b2f90,_0x3b1e51);if(!_0x2b381a||_0x32d2ba&&(!_0x2b381a[_0x51bcc8(0x5cd)]['measure'][_0x32d2ba['valueFieldId']]||!_0x2b381a[_0x51bcc8(0x5cd)][_0x51bcc8(0x35d)][_0x51bcc8(0x6a2)](_0x32d2ba[_0x51bcc8(0x203)])||!(0x0,e[_0x51bcc8(0x5fa)])(_0x32d2ba[_0x51bcc8(0x3ae)])))return;await _0x1b2f90[_0x51bcc8(0x6a9)](n[_0x51bcc8(0x256)])[_0x51bcc8(0x2f0)](t[_0x51bcc8(0x3a0)]['id'],{'unitId':_0x3b1e51[_0x51bcc8(0x427)],'subUnitId':_0x3b1e51[_0x51bcc8(0x317)],'pivotTableId':_0x3b1e51[_0x51bcc8(0x260)],'fieldId':_0x3b1e51[_0x51bcc8(0x1e3)],'valueFilterInfo':_0x32d2ba?{..._0x32d2ba,'type':e['PivotFilterTypeEnum'][_0x51bcc8(0x493)],'expected':Array[_0x51bcc8(0x2dc)](_0x32d2ba[_0x51bcc8(0x379)])?_0x32d2ba[_0x51bcc8(0x379)]['concat']():_0x32d2ba[_0x51bcc8(0x379)]}:void 0x0});}catch{}finally{_0x512893();}}};try{_0x1e663f=_0x5772c3[_0x3254ac(0x1cb)]({'id':'UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG_ID','title':{'title':_0x225871['t'](_0x3254ac(0x2b5))},'draggable':!0x0,'mask':!0x0,'maskClosable':!0x1,'width':0x1a4,'children':{'label':{'name':E,'props':{'targetFieldId':_0x3b1e51[_0x3254ac(0x1e3)],'targetFieldName':_0x3b1e51['targetFieldName'],'valueFields':_0x3b1e51[_0x3254ac(0x35d)],'defaultValueFieldId':_0x3b1e51[_0x3254ac(0x677)],'currentFilter':_0x3b1e51[_0x3254ac(0x350)],'onConfirm':_0x5224a6=>_0x13b818(_0x5224a6),'onClear':()=>_0x13b818(void 0x0),'onCancel':_0x512893}}},'onClose':_0x512893});}catch{return _0x512893(),!0x1;}return!0x0;}},Se=_0x15a2ed(0x4ef),Ce=_0x15a2ed(0x3a6),we=_0x15a2ed(0x66d),Te='sheet.pivot.context-menu.manual-group',Ee=_0x15a2ed(0x37e),De=_0x15a2ed(0x6ad),Oe=_0x15a2ed(0x603),ke=_0x15a2ed(0x3c8),Ae={'year':_0x15a2ed(0x5a8),'year-quarter':_0x15a2ed(0x4b7),'quarter':_0x15a2ed(0x5ad),'year-month':'sheets-pivot-ui.dateGroup.yearMonth','month':_0x15a2ed(0x39b),'month-date':_0x15a2ed(0x6f7),'year-month-date':_0x15a2ed(0x25a),'date':'sheets-pivot-ui.dateGroup.date','hour':_0x15a2ed(0x6e7),'minute':_0x15a2ed(0x488),'hour-minute':_0x15a2ed(0x222)};function je(_0x53208f){const _0x2e609c=_0x15a2ed;return{'id':N['id'],'type':i[_0x2e609c(0x4a5)][_0x2e609c(0x5f5)],'icon':_0x2e609c(0x640),'hidden$':(0x0,i['getMenuHiddenObservable'])(_0x53208f,n[_0x2e609c(0x243)][_0x2e609c(0x1d6)]),'disabled$':(0x0,a[_0x2e609c(0x650)])(_0x53208f,(0x0,a[_0x2e609c(0x1eb)])(_0x53208f,{'workbookTypes':[r[_0x2e609c(0x708)]],'worksheetTypes':[r['WorksheetViewPermission'],r[_0x2e609c(0x67d)]],'rangeTypes':[r[_0x2e609c(0x414)]]})),'tooltip':_0x2e609c(0x621),'title':_0x2e609c(0x621)};}function Me(_0x585ba3){const _0x28e06a=_0x15a2ed;return{'id':Se,'type':i[_0x28e06a(0x4a5)]['SUBITEMS'],'title':_0x28e06a(0x373),'hidden$':Be(_0x585ba3)};}function Ne(_0x579ee5){const _0x42bbaf=_0x15a2ed;return{'id':Ce,'commandId':z['id'],'type':i[_0x42bbaf(0x4a5)][_0x42bbaf(0x5f5)],'title':_0x42bbaf(0x4e0),'hidden$':U(_0x579ee5)[_0x42bbaf(0x254)]((0x0,o[_0x42bbaf(0x611)])(()=>!R(_0x579ee5)))};}function Pe(_0x46c544){const _0x4e2074=_0x15a2ed;return{'id':we,'commandId':ue['id'],'type':i[_0x4e2074(0x4a5)][_0x4e2074(0x5f5)],'title':'sheets-pivot-ui.numberGroup.title','hidden$':U(_0x46c544)[_0x4e2074(0x254)]((0x0,o[_0x4e2074(0x611)])(()=>!le(_0x46c544)))};}function Fe(_0x592b1b){const _0x3da0bf=_0x15a2ed;return{'id':Te,'commandId':ie['id'],'type':i['MenuItemType'][_0x3da0bf(0x5f5)],'title':_0x3da0bf(0x654),'hidden$':U(_0x592b1b)[_0x3da0bf(0x254)]((0x0,o[_0x3da0bf(0x611)])(()=>!te(_0x592b1b,_0x3da0bf(0x355))))};}function Ie(_0x309bab){const _0x1c597c=_0x15a2ed;return{'id':Ee,'commandId':ae['id'],'type':i['MenuItemType'][_0x1c597c(0x5f5)],'title':_0x1c597c(0x1fc),'hidden$':U(_0x309bab)[_0x1c597c(0x254)]((0x0,o[_0x1c597c(0x611)])(()=>!te(_0x309bab,_0x1c597c(0x359))))};}function Le(_0x3594cb){const _0x5b4b41=_0x15a2ed;return{'id':De,'commandId':oe['id'],'type':i['MenuItemType']['BUTTON'],'title':_0x5b4b41(0x1d9),'hidden$':U(_0x3594cb)[_0x5b4b41(0x254)]((0x0,o[_0x5b4b41(0x611)])(()=>!te(_0x3594cb,_0x5b4b41(0x3fc))))};}function Re(_0x766ed1){const _0x17207b=_0x15a2ed;return _0x17f6c9=>({'id':ze(_0x766ed1),'commandId':F['id'],'type':i[_0x17207b(0x4a5)][_0x17207b(0x5f5)],'title':Ae[_0x766ed1],'params':{'dateType':_0x766ed1},'disabled$':Ve(_0x17f6c9,_0x766ed1),'activated$':He(_0x17f6c9,_0x766ed1)});}function ze(_0x28579c){return'sheet.pivot.context-menu.date-group.'+_0x28579c;}function Be(_0x2ea2d6){const _0x33738d=_0x15a2ed;return U(_0x2ea2d6)[_0x33738d(0x254)]((0x0,o[_0x33738d(0x611)])(()=>!I(_0x2ea2d6)));}function Ve(_0x25ddfa,_0xa7554f){const _0x49e846=_0x15a2ed;return U(_0x25ddfa)[_0x49e846(0x254)]((0x0,o['map'])(()=>{const _0x1e7891=_0x49e846;let _0x71b5c=I(_0x25ddfa);return!_0x71b5c||(0x0,t[_0x1e7891(0x60e)])(_0x71b5c['dateGroupContext'],_0xa7554f);}));}function He(_0x75c1c6,_0x2ab3d0){const _0x55518b=_0x15a2ed;return U(_0x75c1c6)[_0x55518b(0x254)]((0x0,o[_0x55518b(0x611)])(()=>{const _0x6f6216=_0x55518b;let _0x61a715=I(_0x75c1c6);return(_0x61a715==null?void 0x0:_0x61a715[_0x6f6216(0x52e)][_0x6f6216(0x394)])===_0x2ab3d0;}));}function U(_0x56891b){const _0x4bbeea=_0x15a2ed;let _0x2c8675=_0x56891b[_0x4bbeea(0x6a9)](t[_0x4bbeea(0x381)]),_0x5ce4ac=()=>{const _0x4d00e4=_0x4bbeea;var _0x239322;let _0x6f24ba=(0x0,r['getSheetCommandTarget'])(_0x56891b[_0x4d00e4(0x6a9)](n[_0x4d00e4(0x4c5)])),_0x23d4ae=(_0x239322=_0x56891b[_0x4d00e4(0x6a9)](r[_0x4d00e4(0x70e)])[_0x4d00e4(0x20a)]())==null?void 0x0:_0x239322[_0x4d00e4(0x3e0)];if(!_0x6f24ba||!_0x23d4ae)return;let {unitId:_0x4829e6,subUnitId:_0x20c0dc}=_0x6f24ba,_0x5c5757=_0x56891b['get'](t[_0x4d00e4(0x56e)])['getPivotTableIdByCell'](_0x4829e6,_0x20c0dc,_0x23d4ae[_0x4d00e4(0x59c)],_0x23d4ae['startColumn']);return _0x5c5757?{'unitId':_0x4829e6,'subUnitId':_0x20c0dc,'pivotTableId':_0x5c5757}:void 0x0;};return(0x0,o[_0x4bbeea(0x68a)])(_0x56891b[_0x4bbeea(0x6a9)](r[_0x4bbeea(0x70e)])[_0x4bbeea(0x2a3)],_0x2c8675[_0x4bbeea(0x2c8)][_0x4bbeea(0x254)]((0x0,o['filter'])(_0x3d1bcb=>{const _0x230be7=_0x4bbeea;let _0x2cc893=_0x5ce4ac();return(_0x2cc893==null?void 0x0:_0x2cc893[_0x230be7(0x427)])===_0x3d1bcb[_0x230be7(0x427)]&&_0x2cc893[_0x230be7(0x317)]===_0x3d1bcb['subUnitId']&&_0x2cc893[_0x230be7(0x260)]===_0x3d1bcb[_0x230be7(0x260)];})),_0x2c8675['collectionChange$'][_0x4bbeea(0x254)]((0x0,o[_0x4bbeea(0x3f8)])(_0x1200c8=>{const _0x33e803=_0x4bbeea;let _0x477c75=_0x5ce4ac();if(!_0x477c75||!_0x1200c8['pivotTableIds'][_0x33e803(0x6a2)](_0x477c75[_0x33e803(0x260)]))return!0x1;let _0x42cb6c=_0x2c8675[_0x33e803(0x2b6)](_0x477c75['unitId'],_0x477c75[_0x33e803(0x317)],_0x477c75[_0x33e803(0x260)]);return _0x1200c8[_0x33e803(0x427)]===((_0x42cb6c==null?void 0x0:_0x42cb6c['sourceRangeInfo'][_0x33e803(0x427)])??_0x477c75[_0x33e803(0x427)]);})))[_0x4bbeea(0x254)]((0x0,o[_0x4bbeea(0x2ce)])(null));}const Ue=t[_0x15a2ed(0x266)]['map'](_0x1b815c=>({'dateType':_0x1b815c,'id':ze(_0x1b815c),'menuItemFactory':Re(_0x1b815c)}));function We(_0x1e9145){const _0x4cd23f=_0x15a2ed;return{'id':Oe,'type':i['MenuItemType']['SUBITEMS'],'title':_0x4cd23f(0x1fb),'hidden$':qe(_0x1e9145)['pipe']((0x0,o['map'])(()=>!me(_0x1e9145)))};}function Ge(_0x48c41e){const _0x9435a5=_0x15a2ed;return _0x4101d3=>({'id':Ke(_0x48c41e['type']),'commandId':fe['id'],'type':i[_0x9435a5(0x4a5)][_0x9435a5(0x5f5)],'title':_0x48c41e[_0x9435a5(0x1cf)],'params':{'type':_0x48c41e[_0x9435a5(0x4a9)]},'activated$':qe(_0x4101d3)[_0x9435a5(0x254)]((0x0,o[_0x9435a5(0x611)])(()=>{const _0x266d73=_0x9435a5;let _0x233f7c=me(_0x4101d3);return!!(_0x233f7c&&(_0x233f7c['currentShowDataAs'][_0x266d73(0x4a9)]??e[_0x266d73(0x2cb)]['normal'])===_0x48c41e[_0x266d73(0x4a9)]);}))});}function Ke(_0x1b4328){return'sheet.pivot.context-menu.show-data-as.'+_0x1b4328;}function qe(_0x43cd81){const _0x65e8a7=_0x15a2ed;return _0x43cd81['get'](r[_0x65e8a7(0x70e)])['selectionMoveEnd$'][_0x65e8a7(0x254)]((0x0,o[_0x65e8a7(0x2ce)])(null));}const Je=de[_0x15a2ed(0x611)](_0x5e20e6=>({'rule':_0x5e20e6,'id':Ke(_0x5e20e6[_0x15a2ed(0x4a9)]),'menuItemFactory':Ge(_0x5e20e6)}));function Ye(_0x3ddd65){const _0x555a4e=_0x15a2ed;return{'id':ke,'commandId':xe['id'],'type':i['MenuItemType'][_0x555a4e(0x5f5)],'title':_0x555a4e(0x47b),'hidden$':_0x3ddd65['get'](r[_0x555a4e(0x70e)])[_0x555a4e(0x2a3)]['pipe']((0x0,o[_0x555a4e(0x2ce)])(null),(0x0,o[_0x555a4e(0x611)])(()=>!be(_0x3ddd65)))};}const Xe=Ue[_0x15a2ed(0x1f1)]((_0x4b9988,_0x25f04e,_0x38db80)=>(_0x4b9988[_0x25f04e['id']]={'order':_0x38db80+0x1,'menuItemFactory':_0x25f04e[_0x15a2ed(0x570)]},_0x4b9988),{}),Ze=Je['reduce']((_0x435f2d,_0x4e899a,_0x47de3f)=>(_0x435f2d[_0x4e899a['id']]={'order':_0x47de3f+0x1,'menuItemFactory':_0x4e899a[_0x15a2ed(0x570)]},_0x435f2d),{}),Qe={[i[_0x15a2ed(0x3ed)][_0x15a2ed(0x249)]]:{[N['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':je}},[i['ContextMenuPosition']['MAIN_AREA']]:{[i[_0x15a2ed(0x6e3)]['DATA']]:{[N['id']]:{'order':0x1,'menuItemFactory':je},[Se]:{'order':0x2,'menuItemFactory':Me,...Xe},[Ce]:{'order':0x3,'menuItemFactory':Ne},[we]:{'order':0x4,'menuItemFactory':Pe},[Te]:{'order':0x5,'menuItemFactory':Fe},[Ee]:{'order':0x6,'menuItemFactory':Ie},[De]:{'order':0x7,'menuItemFactory':Le},[Oe]:{'order':0x8,'menuItemFactory':We,...Ze},[ke]:{'order':0x9,'menuItemFactory':Ye}}},[i[_0x15a2ed(0x36d)][_0x15a2ed(0x40b)]]:{[i[_0x15a2ed(0x6e3)][_0x15a2ed(0x4ae)]]:{[N['id']]:{'order':0x1,'menuItemFactory':je},[Se]:{'order':0x2,'menuItemFactory':Me,...Xe},[Ce]:{'order':0x3,'menuItemFactory':Ne},[we]:{'order':0x4,'menuItemFactory':Pe},[Te]:{'order':0x5,'menuItemFactory':Fe},[Ee]:{'order':0x6,'menuItemFactory':Ie},[De]:{'order':0x7,'menuItemFactory':Le}}}};var $e=_0x15a2ed(0x662),et=_0x15a2ed(0x70c);const tt={'type':n['CommandType'][_0x15a2ed(0x58c)],'id':'sheet.operation.open-pivot-table-filter-panel',async 'handler'(_0x4bd348,_0x3afaf8){const _0x4cdcef=_0x15a2ed;if(!_0x3afaf8)return!0x1;let {row:_0x3c3480,col:_0x2dd5e7,unitId:_0x365fe2,subUnitId:_0x45c06a,tableFieldId:_0x2a43a5,pivotTableId:_0x1e9fe9}=_0x3afaf8,_0x36a0d3=_0x4bd348[_0x4cdcef(0x6a9)](t['SheetsPivotTableAdaptorModel']),_0x484300=_0x1e9fe9||_0x36a0d3[_0x4cdcef(0x56f)](_0x365fe2,_0x45c06a,_0x3c3480,_0x2dd5e7);if(!_0x484300)return!0x1;let _0x3d0b3d=_0x4bd348['get'](t[_0x4cdcef(0x4cb)]),_0x43ddeb=_0x36a0d3[_0x4cdcef(0x362)](_0x365fe2,_0x45c06a,_0x484300);if(!(_0x43ddeb!=null&&_0x43ddeb[_0x4cdcef(0x39c)]))return!0x1;let _0x4cbde5=_0x36a0d3[_0x4cdcef(0x3a7)](_0x365fe2,_0x45c06a,_0x3c3480,_0x2dd5e7),_0x5e4e7c=(await _0x3d0b3d[_0x4cdcef(0x601)]({'unitId':_0x365fe2,'subUnitId':_0x45c06a,'pivotTableId':_0x484300,'params':{'type':t['PivotDisplayDataType'][_0x4cdcef(0x290)],'filter':{'row':_0x3c3480,'col':_0x2dd5e7,'tableFieldId':_0x2a43a5,'cellData':_0x4cbde5,'pivotItemRenderInfoCache':_0x43ddeb}}}))[_0x4cdcef(0x399)]['filter'];if(!_0x5e4e7c)return!0x1;let _0x28a4e7=_0x4bd348[_0x4cdcef(0x6a9)](i[_0x4cdcef(0x3fe)]),_0x1417b4={'id':b,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x150,'dialogStyles':{'header':{'padding':_0x4cdcef(0x5c9),'height':0x0},'body':{'padding':_0x4cdcef(0x3c2)}},'closable':!0x1,'children':{'label':y,'unitId':_0x365fe2,'subUnitId':_0x45c06a,'key':_0x3c3480+'-'+_0x2dd5e7+'-'+(_0x2a43a5||''),'filterItemInfo':_0x5e4e7c},'onClose':()=>{const _0x12561b=_0x4cdcef;_0x28a4e7[_0x12561b(0x3ff)](b);}};return _0x28a4e7[_0x4cdcef(0x1cb)](_0x1417b4),!0x0;}},nt={'type':n['CommandType'][_0x15a2ed(0x58c)],'id':'sheet.operation.open-pivot-table-field-setting-panel','handler'(_0x17c246,_0x2f9494){const _0x1655bc=_0x15a2ed;if(!_0x2f9494)return!0x1;let _0xc52dcc=_0x17c246[_0x1655bc(0x6a9)](n[_0x1655bc(0x58a)]),{tableFieldId:_0x1c7cf9,pivotTableId:_0x1a9f33,unitId:_0x804736,subUnitId:_0x1f39aa,tableFieldInfo:_0x19e7ad,dataFieldInfo:_0x51241a}=_0x2f9494,_0x1cc02a=_0x17c246['get'](i['IDialogService']),_0x375456={'id':S,'title':{'title':_0xc52dcc['t'](_0x1655bc(0x1c8))},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':x,'tableFieldId':_0x1c7cf9,'pivotTableId':_0x1a9f33,'tableFieldInfo':_0x19e7ad,'dataFieldInfo':_0x51241a,'unitId':_0x804736,'subUnitId':_0x1f39aa,'version':Math[_0x1655bc(0x518)](),'key':_0x1655bc(0x46e)+(_0x1c7cf9||''),'closeFn':()=>{const _0x370bff=_0x1655bc;_0x1cc02a[_0x370bff(0x3ff)](S);}},'onClose':()=>{_0x1cc02a['close'](S);}};return _0x1cc02a[_0x1655bc(0x1cb)](_0x375456),!0x0;}};function rt(_0x1fc939,_0xc5b382,_0x1f21a6){const _0x5b7b7e=_0x15a2ed;let _0x166352=_0x1f21a6[_0x5b7b7e(0x425)],{fieldsConfig:_0x518451}=_0xc5b382,{rowFields:_0x3a364d,columnFields:_0xb95cc3,valueFields:_0x2123c5,filterFields:_0x315c32,hiddenFields:_0x412b27,dimension:_0x2234e5,measure:_0x1e5c13,valueIndex:_0x6fb80e,valuePosition:_0x395067}=_0x518451,_0x1d54d7=new Set();[..._0x3a364d,..._0xb95cc3,..._0x2123c5,..._0x315c32,..._0x412b27][_0x5b7b7e(0x567)](_0x17959c=>{const _0x4547c3=_0x5b7b7e;let _0x502202=_0x2234e5[_0x17959c]||_0x1e5c13[_0x17959c];_0x502202&&_0x1d54d7[_0x4547c3(0x6dc)](_0x502202[_0x4547c3(0x566)]);});let _0x457f59=_0x166352[_0x5b7b7e(0x611)](_0x1c4aa3=>{const _0x45a66a=_0x5b7b7e;let _0x23cc29=_0x1f21a6[_0x45a66a(0x59e)][_0x1c4aa3];return{'checked':_0x1d54d7[_0x45a66a(0x565)](_0x1c4aa3),'dataFieldId':_0x23cc29['id'],'id':_0x23cc29['id'],'name':_0x23cc29[_0x45a66a(0x68b)],'type':_0x23cc29[_0x45a66a(0x56b)],'pivotTableId':_0x1fc939};}),_0x254c40=_0x3a364d[_0x5b7b7e(0x521)](_0x6645d8=>{const _0xa1e041=_0x5b7b7e;let _0x19195a=_0x2234e5[_0x6645d8];return _0x19195a?[{'dataFieldId':_0x19195a[_0xa1e041(0x566)],'tableFieldId':_0x19195a['id'],'displayName':_0x19195a['displayName']}]:[];}),_0x15ae44=_0xb95cc3[_0x5b7b7e(0x521)](_0x5b8af2=>{const _0x19b93c=_0x5b7b7e;let _0x22044f=_0x2234e5[_0x5b8af2];return _0x22044f?[{'dataFieldId':_0x22044f[_0x19b93c(0x566)],'tableFieldId':_0x22044f['id'],'displayName':_0x22044f[_0x19b93c(0x343)]}]:[];}),_0x1c524f=_0x2123c5['flatMap'](_0x3ee704=>{const _0x4533ce=_0x5b7b7e;let _0x5d4974=_0x1e5c13[_0x3ee704];return _0x5d4974?[{'dataFieldId':_0x5d4974[_0x4533ce(0x566)],'tableFieldId':_0x5d4974['id'],'displayName':_0x5d4974[_0x4533ce(0x343)],'format':_0x5d4974[_0x4533ce(0x67b)],'subTotalType':_0x5d4974[_0x4533ce(0x5a5)]}]:[];}),_0x595bc3=_0x315c32['flatMap'](_0x1d49a0=>{const _0x4060ee=_0x5b7b7e;let _0x35bfc6=_0x2234e5[_0x1d49a0];return _0x35bfc6?[{'dataFieldId':_0x35bfc6['dataFieldId'],'tableFieldId':_0x35bfc6['id'],'displayName':_0x35bfc6[_0x4060ee(0x343)]}]:[];}),_0x5ac3a1=_0x412b27[_0x5b7b7e(0x521)](_0x3ac730=>{const _0x1c475d=_0x5b7b7e;let _0x4425c9=_0x2234e5[_0x3ac730];return _0x4425c9?[{'dataFieldId':_0x4425c9['dataFieldId'],'tableFieldId':_0x4425c9['id'],'displayName':_0x4425c9[_0x1c475d(0x343)],'filterInfo':_0x4425c9[_0x1c475d(0x496)]}]:[];});return _0x1c524f[_0x5b7b7e(0x714)]>0x1&&(_0x395067===e['PivotTableValuePositionEnum']['Row']?_0x254c40:_0x15ae44)['splice'](_0x6fb80e,0x0,{'dataFieldId':'','tableFieldId':_0x5b7b7e(0x5e3),'displayName':_0x5b7b7e(0x3ee)}),{'sourceList':_0x457f59,'sourceRange':_0xc5b382[_0x5b7b7e(0x201)],'rowFields':_0x254c40,'columnFields':_0x15ae44,'valueFields':_0x1c524f,'filterFields':_0x595bc3,'hiddenFields':_0x5ac3a1,'positionInfo':_0xc5b382['targetCellInfo']};}const it={'type':n[_0x15a2ed(0x620)][_0x15a2ed(0x58c)],'id':_0x15a2ed(0x63f),async 'handler'(_0x3453f0,_0x433d5d){const _0x38776b=_0x15a2ed;let _0x27a5b0=_0x433d5d==null?void 0x0:_0x433d5d[_0x38776b(0x260)];if(!_0x27a5b0)return!0x1;let _0x26f55e=_0x3453f0[_0x38776b(0x6a9)](i[_0x38776b(0x572)]),_0x1b1983=_0x3453f0[_0x38776b(0x6a9)](n[_0x38776b(0x4c5)]),_0x3f1c49=_0x3453f0[_0x38776b(0x6a9)](n[_0x38776b(0x58a)]),_0x196f2a=_0x3453f0[_0x38776b(0x6a9)](t[_0x38776b(0x381)]),_0x4fb14d=(0x0,r[_0x38776b(0x49d)])(_0x1b1983);if(!_0x4fb14d)return!0x1;let {unitId:_0x4411c5,subUnitId:_0x14ecae}=_0x4fb14d,_0x4a5cd1=_0x196f2a['getPivotTableConfig'](_0x4411c5,_0x14ecae,_0x27a5b0),_0x573996=_0x196f2a[_0x38776b(0x25d)](_0x4411c5,_0x27a5b0);if(!_0x4a5cd1||!_0x573996)return!0x1;let _0x2fbc04=rt(_0x27a5b0,_0x4a5cd1,_0x573996),_0x205c64={'header':{'title':_0x3f1c49['t'](_0x38776b(0x621))},'id':v,'children':{'label':_,'panelInfo':_0x2fbc04,'version':Math[_0x38776b(0x518)](),'setVersion':()=>Math['random'](),'pivotTableId':_0x27a5b0,'unitId':_0x4411c5,'subUnitId':_0x14ecae},'width':0x15a};return _0x26f55e[_0x38776b(0x1cb)](_0x205c64),!0x0;}},at='sheets-pivot-ui.config',ot={};function st(_0x17b422){'@babel/helpers - typeof';const _0x255220=_0x15a2ed;return st=typeof Symbol=='function'&&typeof Symbol[_0x255220(0x5b1)]==_0x255220(0x482)?function(_0x24803a){return typeof _0x24803a;}:function(_0x4832aa){const _0x3384b8=_0x255220;return _0x4832aa&&typeof Symbol==_0x3384b8(0x595)&&_0x4832aa[_0x3384b8(0x4f1)]===Symbol&&_0x4832aa!==Symbol[_0x3384b8(0x593)]?_0x3384b8(0x482):typeof _0x4832aa;},st(_0x17b422);}function ct(_0x331b55,_0xbdfabc){const _0x32a7d6=_0x15a2ed;if(st(_0x331b55)!='object'||!_0x331b55)return _0x331b55;var _0x214de8;if(typeof Symbol<'u'&&(_0x214de8=_0x331b55[Symbol[_0x32a7d6(0x27e)]])!==void 0x0){var _0x39ea84=_0x214de8[_0x32a7d6(0x6d5)](_0x331b55,_0xbdfabc||_0x32a7d6(0x618));if(st(_0x39ea84)!=_0x32a7d6(0x3bc))return _0x39ea84;throw TypeError(_0x32a7d6(0x382));}return(_0xbdfabc==='string'?String:Number)(_0x331b55);}function lt(_0x1c766a){const _0x3f5998=_0x15a2ed;var _0x420873=ct(_0x1c766a,_0x3f5998(0x294));return st(_0x420873)=='symbol'?_0x420873:_0x420873+'';}function W(_0x167a46,_0x5f4952,_0x3bc047){return(_0x5f4952=lt(_0x5f4952))in _0x167a46?Object['defineProperty'](_0x167a46,_0x5f4952,{'value':_0x3bc047,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x167a46[_0x5f4952]=_0x3bc047,_0x167a46;}function G(_0x392731,_0x48cef0){return function(_0x2c5d5b,_0x1dd55b){_0x48cef0(_0x2c5d5b,_0x1dd55b,_0x392731);};}function K(_0x246bf9,_0x12e693,_0x1c3e40,_0x790404){const _0x19386d=_0x15a2ed;var _0x5c944e=arguments['length'],_0x4322b4=_0x5c944e<0x3?_0x12e693:_0x790404===null?_0x790404=Object['getOwnPropertyDescriptor'](_0x12e693,_0x1c3e40):_0x790404,_0x18288d;if(typeof Reflect==_0x19386d(0x3bc)&&typeof Reflect[_0x19386d(0x284)]==_0x19386d(0x595))_0x4322b4=Reflect[_0x19386d(0x284)](_0x246bf9,_0x12e693,_0x1c3e40,_0x790404);else{for(var _0x49ef38=_0x246bf9[_0x19386d(0x714)]-0x1;_0x49ef38>=0x0;_0x49ef38--)(_0x18288d=_0x246bf9[_0x49ef38])&&(_0x4322b4=(_0x5c944e<0x3?_0x18288d(_0x4322b4):_0x5c944e>0x3?_0x18288d(_0x12e693,_0x1c3e40,_0x4322b4):_0x18288d(_0x12e693,_0x1c3e40))||_0x4322b4);}return _0x5c944e>0x3&&_0x4322b4&&Object['defineProperty'](_0x12e693,_0x1c3e40,_0x4322b4),_0x4322b4;}let q=class extends n['Disposable']{constructor(_0x360e89,_0x3cf217,_0x534707,_0x18426f,_0x555c16,_0x2c4244,_0x2b1819,_0x2d66d9){const _0x212dee=_0x15a2ed;var _0x2e0da7;super(),this[_0x212dee(0x54d)]=_0x360e89,this[_0x212dee(0x271)]=_0x3cf217,this[_0x212dee(0x4eb)]=_0x534707,this[_0x212dee(0x57c)]=_0x18426f,this[_0x212dee(0x29b)]=_0x555c16,this[_0x212dee(0x68c)]=_0x2c4244,this['_sheetPermissionCheckController']=_0x2b1819,this['_sheetsRenderService']=_0x2d66d9,W(this,_0x212dee(0x660),!0x1),this[_0x212dee(0x28d)](this[_0x212dee(0x71d)]['registerSelfRenderingMutations'](t[_0x212dee(0x2a4)]['id'])),this[_0x212dee(0x71b)](),this['_defaultOverride']=((_0x2e0da7=this['_configService'][_0x212dee(0x715)](t[_0x212dee(0x5a1)]))==null?void 0x0:_0x2e0da7[_0x212dee(0x5dc)])??!0x1;}['_getPivotAppliedRanges'](_0x584a0b,_0x27fea1,_0x881132){const _0x12bb17=_0x15a2ed;return(0x0,t[_0x12bb17(0x607)])(_0x584a0b,_0x27fea1,_0x881132,this['_localeService']['getDirection']());}[_0x15a2ed(0x71b)](){const _0x1b3c70=_0x15a2ed;this['_sheetsPivotTableService'][_0x1b3c70(0x3c5)]['interceptAsync'](this[_0x1b3c70(0x29b)][_0x1b3c70(0x3c5)]['getInterceptPoints']()[_0x1b3c70(0x5be)],{'handler':async(_0x183136,_0x1a7ce2)=>{const _0x5b9682=_0x1b3c70;let {cellInfo:_0x15816d,view:_0x1b6a02,isEmpty:_0x3af012}=_0x1a7ce2,{unitId:_0x1f1313,subUnitId:_0x3d70e6}=_0x15816d,_0x572e95=this[_0x5b9682(0x326)](_0x15816d,_0x1b6a02,_0x3af012);if(!(0x0,r['checkRangesEditablePermission'])(this[_0x5b9682(0x4eb)],_0x1f1313,_0x3d70e6,_0x572e95)){let _0x4ed256=this['_localeService']['t']('sheets-pivot-ui.msg.permissionError');this[_0x5b9682(0x50e)]['blockExecuteWithoutPermission'](_0x4ed256);}let _0x26dbff=this[_0x5b9682(0x271)]['generateMutationsByRanges']({'unitId':_0x1f1313,'subUnitId':_0x3d70e6,'ranges':_0x572e95}),_0x42e0ff=(0x0,t['generateSetRangeValueMutations'])(this[_0x5b9682(0x4eb)],_0x1f1313,_0x3d70e6,_0x572e95);if(_0x26dbff[_0x5b9682(0x225)]['length']||_0x42e0ff[_0x5b9682(0x220)]){if(this[_0x5b9682(0x660)])return Promise[_0x5b9682(0x41a)](!0x0);{let _0x16f8a3=await this['_confirmService'][_0x5b9682(0x656)]({'id':_0x5b9682(0x354),'title':{'title':this[_0x5b9682(0x54d)]['t'](_0x5b9682(0x1fa))},'children':{'title':this[_0x5b9682(0x54d)]['t']('sheets-pivot-ui.perform.info')},'cancelText':this[_0x5b9682(0x54d)]['t'](_0x5b9682(0x2d0)),'confirmText':this[_0x5b9682(0x54d)]['t']('sheets-pivot-ui.perform.confirm')});return Promise[_0x5b9682(0x41a)](_0x16f8a3);}}return Promise['resolve'](!0x0);}});}};q=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x58a)])),G(0x1,(0x0,n['Inject'])(r[_0x15a2ed(0x1bf)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x21b)])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x522)])),G(0x4,(0x0,n[_0x15a2ed(0x436)])(t['SheetsPivotTableService'])),G(0x5,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x645)])),G(0x6,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x2c2)])),G(0x7,(0x0,n[_0x15a2ed(0x436)])(a[_0x15a2ed(0x321)]))],q);function ut(_0x527153){const _0x5eb827=_0x15a2ed;let {editable:_0xb5b84b,pivotTableId:_0xb710af,subUnitId:_0x4e5269,unitId:_0x4023bd}=_0x527153,_0x4235a4=(0x0,i[_0x5eb827(0x50b)])(n[_0x5eb827(0x256)]),_0x52cbce=(0x0,i['useDependency'])(i[_0x5eb827(0x3fe)]),_0x41803c=(0x0,i[_0x5eb827(0x50b)])(n[_0x5eb827(0x58a)]),_0x487003=[{'command':{'id':it['id'],'params':{'pivotTableId':_0xb710af}},'disabled':!_0xb5b84b,'label':_0x5eb827(0x4f3)},{'command':{'id':t['RemovePivotTableCommand']['id'],'params':{'unitId':_0x4023bd,'subUnitId':_0x4e5269,'pivotTableId':_0xb710af}},'disabled':!_0xb5b84b,'label':_0x5eb827(0x6e6)}];async function _0x5523fe(_0x147cec){const _0x3e2a34=_0x5eb827;await _0x4235a4[_0x3e2a34(0x2f0)](_0x147cec['id'],_0x147cec['params']),_0x52cbce[_0x3e2a34(0x3ff)](M);}return(0x0,d[_0x5eb827(0x268)])(_0x5eb827(0x664),{'className':_0x5eb827(0x2d1),'children':_0x487003[_0x5eb827(0x611)](_0x56fc72=>{const _0x4794b3=_0x5eb827;let _0x2f4243=_0x41803c['t'](_0x56fc72['label']);return(0x0,d[_0x4794b3(0x268)])(s['MobileActionRow'],{'title':_0x2f4243,'aria-label':_0x2f4243,'variant':'subtle','disabled':_0x56fc72['disabled'],'onClick':()=>_0x5523fe(_0x56fc72[_0x4794b3(0x69b)])},_0x56fc72[_0x4794b3(0x69b)]['id']);})});}const dt=[{'label':_0x15a2ed(0x22e),'suffix':_0x15a2ed(0x2fc)},{'label':_0x15a2ed(0x45b),'suffix':_0x15a2ed(0x446)},{'label':_0x15a2ed(0x513),'suffix':_0x15a2ed(0x378)},{'label':_0x15a2ed(0x588),'suffix':'MM-dd'},{'label':'8月5日','suffix':_0x15a2ed(0x717)},{'label':_0x15a2ed(0x42c),'suffix':'h:mm:ss'},{'label':_0x15a2ed(0x31f),'suffix':'h:mm'},{'label':_0x15a2ed(0x31c),'suffix':_0x15a2ed(0x38b)},{'label':'下午1:30','suffix':'A/P\x20h:mm'},{'label':_0x15a2ed(0x5c0),'suffix':_0x15a2ed(0x532)},{'label':_0x15a2ed(0x519),'suffix':_0x15a2ed(0x3a8)}],ft=[{'label':_0x15a2ed(0x304),'suffix':_0x15a2ed(0x2e5)},{'label':_0x15a2ed(0x1fd),'suffix':_0x15a2ed(0x537),'color':_0x15a2ed(0x57d)},{'label':'1,234.56','suffix':'#,##0.00_);#,##0.00'},{'label':_0x15a2ed(0x424),'suffix':_0x15a2ed(0x687),'color':_0x15a2ed(0x57d)},{'label':_0x15a2ed(0x691),'suffix':_0x15a2ed(0x6f5)},{'label':_0x15a2ed(0x691),'suffix':'#,##0.00_);[Red]-#,##0.00','color':_0x15a2ed(0x57d)}],pt=[{'label':_0x325120=>_0x325120+'1,235','suffix':_0x3bc67c=>'\x22'+_0x3bc67c+_0x15a2ed(0x1df)+_0x3bc67c+_0x15a2ed(0x667)},{'label':_0x4ddf6b=>_0x4ddf6b+_0x15a2ed(0x1c4),'suffix':_0x19b594=>'\x22'+_0x19b594+_0x15a2ed(0x536)+_0x19b594+'\x22#,##0.00','color':_0x15a2ed(0x57d)},{'label':_0x4f6701=>'('+_0x4f6701+'1,235)','suffix':_0x8fbabe=>'\x22'+_0x8fbabe+_0x15a2ed(0x297)+_0x8fbabe+_0x15a2ed(0x614)},{'label':_0x1a10e7=>'('+_0x1a10e7+'1,235)','suffix':_0x1ce5a4=>'\x22'+_0x1ce5a4+_0x15a2ed(0x59a)+_0x1ce5a4+_0x15a2ed(0x614),'color':_0x15a2ed(0x57d)},{'label':_0x58dcb2=>'-'+_0x58dcb2+_0x15a2ed(0x1c4),'suffix':_0x530de9=>'\x22'+_0x530de9+_0x15a2ed(0x66e)+_0x530de9+_0x15a2ed(0x667)},{'label':_0x341e1c=>'-'+_0x341e1c+_0x15a2ed(0x1c4),'suffix':_0x597ba3=>'\x22'+_0x597ba3+_0x15a2ed(0x4e1)+_0x597ba3+_0x15a2ed(0x667),'color':_0x15a2ed(0x57d)}],mt=_0x15a2ed(0x5e3);function ht(_0x2f981d,_0x589ada){const _0x4fb514=_0x15a2ed;if(_0x589ada===e[_0x4fb514(0x332)][_0x4fb514(0x46d)])return _0x4fb514(0x457);if(_0x589ada===e[_0x4fb514(0x332)][_0x4fb514(0x6b7)]&&_0x2f981d===e[_0x4fb514(0x383)]['otherDataKey'])return _0x4fb514(0x658);}function gt(_0x4ea65e,_0x3b54ad){const _0x2a3514=_0x15a2ed;let _0x53e246=(0x0,t[_0x2a3514(0x5ce)])(_0x3b54ad,_0x4ea65e);return _0x4ea65e[_0x2a3514(0x6a2)](_0x2a3514(0x4d5))?_0x4ea65e[_0x2a3514(0x3d3)](_0x2a3514(0x4d5),_0x53e246):''+_0x4ea65e+_0x53e246;}const _t=_0x451c53=>{const _0x40fc71=_0x15a2ed;switch(_0x451c53){case _0x40fc71(0x3f8):return e[_0x40fc71(0x22f)][_0x40fc71(0x290)];case _0x40fc71(0x291):return e[_0x40fc71(0x22f)][_0x40fc71(0x50d)];case _0x40fc71(0x377):return e[_0x40fc71(0x22f)]['Column'];case _0x40fc71(0x635):return e['PivotTableFiledAreaEnum'][_0x40fc71(0x278)];default:return e[_0x40fc71(0x22f)][_0x40fc71(0x50d)];}};function vt(_0x527cd8,_0x4b9f8e){const _0x1a6a4f=_0x15a2ed;switch(_0x4b9f8e['rangeType']||n[_0x1a6a4f(0x452)][_0x1a6a4f(0x4bc)]){case n[_0x1a6a4f(0x452)][_0x1a6a4f(0x4bc)]:return{'startRow':_0x4b9f8e['startRow'],'startColumn':_0x4b9f8e[_0x1a6a4f(0x5e0)],'endRow':_0x4b9f8e['endRow'],'endColumn':_0x4b9f8e['endColumn']};case n[_0x1a6a4f(0x452)]['ROW']:return{'startRow':_0x4b9f8e[_0x1a6a4f(0x59c)],'startColumn':0x0,'endRow':_0x4b9f8e[_0x1a6a4f(0x3b6)],'endColumn':_0x527cd8[_0x1a6a4f(0x53b)]()-0x1};case n[_0x1a6a4f(0x452)][_0x1a6a4f(0x6c9)]:return{'startRow':0x0,'startColumn':_0x4b9f8e[_0x1a6a4f(0x5e0)],'endRow':_0x527cd8[_0x1a6a4f(0x574)]()-0x1,'endColumn':_0x4b9f8e[_0x1a6a4f(0x202)]};case n[_0x1a6a4f(0x452)]['ALL']:return{'startRow':0x0,'startColumn':0x0,'endRow':_0x527cd8[_0x1a6a4f(0x574)]()-0x1,'endColumn':_0x527cd8[_0x1a6a4f(0x53b)]()-0x1};}}function yt(_0x41be88,_0x1b5191){const _0x2a3adb=_0x15a2ed;if(!_0x1b5191||!_0x41be88||_0x1b5191[_0x2a3adb(0x3b6)]-_0x1b5191[_0x2a3adb(0x59c)]<=0x0)return 0x1;let {startRow:_0x228022,startColumn:_0x3bce77,endRow:_0x36790e,endColumn:_0x21bdee}=vt(_0x41be88,_0x1b5191),_0x336f6b=_0x41be88[_0x2a3adb(0x4f6)](),_0x3ef8ea=!0x1;for(let _0x581a5c=_0x228022;_0x581a5c<=_0x36790e;_0x581a5c++){for(let _0x5bcb51=_0x3bce77;_0x5bcb51<=_0x21bdee;_0x5bcb51++)if(_0x336f6b[_0x2a3adb(0x23c)](_0x581a5c,_0x5bcb51)!=null){_0x3ef8ea=!0x0;break;}if(_0x3ef8ea)break;}return _0x3ef8ea?0x2:0x0;}async function bt(_0xf6f545,_0x29d163,_0x295f0c){const _0x11c4e6=_0x15a2ed;let {commandService:_0x1a7a52,pivotTableInfo:_0x33cea8,pivotTableId:_0x534856,unitId:_0x1dd834,subUnitId:_0x2d472f}=_0xf6f545,_0x1d54c7=[],{rowFields:_0x49c95a,columnFields:_0x1203ae,filterFields:_0x142ac7,valueFields:_0x4f2879}=_0x33cea8,_0x34d0e5=[..._0x49c95a,..._0x1203ae,..._0x142ac7,..._0x4f2879];_0x29d163==='PivotMultipleValueId'&&_0x4f2879[_0x11c4e6(0x567)](_0x30ea40=>{const _0x20987c=_0x11c4e6;_0x1d54c7[_0x20987c(0x1d4)](_0x30ea40[_0x20987c(0x6ed)]);}),_0x295f0c==='source'&&_0x34d0e5['forEach'](_0x41cd30=>{const _0x1c01eb=_0x11c4e6;_0x41cd30['dataFieldId']===_0x29d163&&_0x1d54c7[_0x1c01eb(0x1d4)](_0x41cd30['tableFieldId']);}),_0x295f0c!==_0x11c4e6(0x257)&&_0x34d0e5[_0x11c4e6(0x384)](_0x5a832b=>_0x5a832b[_0x11c4e6(0x6ed)]===_0x29d163)&&_0x1d54c7[_0x11c4e6(0x1d4)](_0x29d163),await _0x1a7a52[_0x11c4e6(0x2f0)](t[_0x11c4e6(0x261)]['id'],{'pivotTableId':_0x534856,'fieldIds':_0x1d54c7,'unitId':_0x1dd834,'subUnitId':_0x2d472f});}async function xt(_0x18dca4,_0x56b63e,_0x3ec795,_0xf83d4c,_0x4cc7aa){const _0x305383=_0x15a2ed;let _0x5a3775={'unitId':_0xf83d4c,'subUnitId':_0x4cc7aa,'token':_0x56b63e,'dataRangeInfo':_0x3ec795};await _0x18dca4[_0x305383(0x2f0)](t[_0x305383(0x1d7)]['id'],_0x5a3775);}const St=(_0x23213b,_0x3f6f77)=>{let {rowFields:_0xae1e9d,columnFields:_0x372003,filterFields:_0x11b723}=_0x23213b,_0xa05491=[..._0xae1e9d,..._0x372003,..._0x11b723],_0x13ecfd=[];return _0xa05491['forEach'](_0x471027=>{const _0xa7c7fb=_0x1940;_0x471027[_0xa7c7fb(0x566)]===_0x3f6f77&&_0x13ecfd['push'](_0x471027[_0xa7c7fb(0x6ed)]);}),_0x13ecfd;};async function Ct(_0x2df4d6,_0x249eea,_0x3cbeb9,_0x51b6c0,_0x46f97a){const _0x2446c8=_0x15a2ed;if(_0x3cbeb9==='source'&&_0x51b6c0===_0x2446c8(0x257))return;let _0x42cfe0=_0x249eea===mt,{commandService:_0x362973,pivotTableInfo:_0x3ffdf3,pivotTableId:_0x50e846,unitId:_0x516c4d,subUnitId:_0x21fd7a}=_0x2df4d6;if(_0x3cbeb9===_0x2446c8(0x257)&&_0x51b6c0!==_0x2446c8(0x257)){let {sourceList:_0xc8d7d0}=_0x3ffdf3,_0x33cd47=_0xc8d7d0[_0x2446c8(0x384)](_0x3c4670=>_0x3c4670['id']===_0x249eea);if(_0x33cd47){let _0x291096=St(_0x3ffdf3,_0x249eea);if(_0x51b6c0!==_0x2446c8(0x635)&&_0x291096[_0x2446c8(0x714)]>0x0){let _0x1799e6=_0x291096[0x0];await _0x362973[_0x2446c8(0x2f0)](t[_0x2446c8(0x616)]['id'],{'pivotTableId':_0x50e846,'fieldId':_0x1799e6,'area':_t(_0x51b6c0),'index':_0x46f97a,'unitId':_0x516c4d,'subUnitId':_0x21fd7a});}else await _0x362973[_0x2446c8(0x2f0)](t['AddPivotFieldCommand']['id'],{'pivotTableId':_0x50e846,'dataFieldId':_0x33cd47[_0x2446c8(0x566)],'fieldArea':_t(_0x51b6c0),'index':_0x46f97a,'unitId':_0x516c4d,'subUnitId':_0x21fd7a});}}if(_0x3cbeb9!==_0x2446c8(0x257)&&_0x51b6c0===_0x2446c8(0x257)){let {rowFields:_0x3a4370,columnFields:_0x2eb330,filterFields:_0x27145f,valueFields:_0x81490f}=_0x3ffdf3,_0x511be5=[..._0x3a4370,..._0x2eb330,..._0x27145f,..._0x81490f],_0x1ec69d=[];_0x42cfe0?_0x81490f[_0x2446c8(0x567)](_0x3b6a3d=>{const _0x127bdd=_0x2446c8;_0x1ec69d[_0x127bdd(0x1d4)](_0x3b6a3d[_0x127bdd(0x6ed)]);}):_0x511be5[_0x2446c8(0x384)](_0x59d8ae=>_0x59d8ae[_0x2446c8(0x6ed)]===_0x249eea)&&_0x1ec69d[_0x2446c8(0x1d4)](_0x249eea),await wt(_0x2df4d6,_0x1ec69d);}else _0x3cbeb9!==_0x2446c8(0x257)&&_0x51b6c0!=='source'&&await Et(_0x2df4d6,_0x249eea,_0x3cbeb9,_0x51b6c0,_0x46f97a);}async function wt(_0x3023f8,_0x4508c4){const _0x292393=_0x15a2ed;let {commandService:_0xb5d173,pivotTableId:_0x3f5272,unitId:_0x4d4fdf,subUnitId:_0xd3056f}=_0x3023f8;await _0xb5d173[_0x292393(0x2f0)](t['RemovePivotFieldCommand']['id'],{'pivotTableId':_0x3f5272,'fieldIds':_0x4508c4,'unitId':_0x4d4fdf,'subUnitId':_0xd3056f});}async function Tt(_0x184404,_0x44d99b,_0x1b016d){const _0x49119e=_0x15a2ed;let {commandService:_0x10d076,pivotTableId:_0x20e87f,unitId:_0x298e3d,subUnitId:_0x264fcb}=_0x184404;await _0x10d076[_0x49119e(0x2f0)](t['UpdatePivotValuePositionCommand']['id'],{'pivotTableId':_0x20e87f,'position':_0x44d99b,'index':_0x1b016d,'unitId':_0x298e3d,'subUnitId':_0x264fcb});}async function Et(_0x17e14c,_0x166a38,_0x21be33,_0x1e038f,_0x5f31b8){const _0x52c17a=_0x15a2ed;let _0x407c6a=_0x166a38===mt,{commandService:_0x13aac0,pivotTableInfo:_0x2c5768,pivotTableId:_0xd22915,unitId:_0x27a2e7,subUnitId:_0x72a7c3}=_0x17e14c;if(_0x407c6a){let _0xfb8616=_t(_0x1e038f);(_0xfb8616===e['PivotTableFiledAreaEnum'][_0x52c17a(0x50d)]||_0xfb8616===e['PivotTableFiledAreaEnum'][_0x52c17a(0x3e2)])&&await _0x13aac0['executeCommand'](t[_0x52c17a(0x334)]['id'],{'pivotTableId':_0xd22915,'position':_0xfb8616===e[_0x52c17a(0x22f)][_0x52c17a(0x50d)]?e[_0x52c17a(0x4ee)]['Row']:e[_0x52c17a(0x4ee)][_0x52c17a(0x3e2)],'index':_0x5f31b8,'unitId':_0x27a2e7,'subUnitId':_0x72a7c3});return;}let {rowFields:_0x370616,columnFields:_0x3ea0f,filterFields:_0x201185,valueFields:_0x56966d}=_0x2c5768,_0x32f390=[..._0x370616,..._0x3ea0f,..._0x201185,..._0x56966d]['find'](_0x118edc=>_0x118edc[_0x52c17a(0x6ed)]===_0x166a38);if(_0x32f390){let _0x328d28=[..._0x370616,..._0x3ea0f,..._0x201185];if(_0x21be33===_0x52c17a(0x635)&&_0x1e038f!==_0x52c17a(0x635)&&_0x328d28[_0x52c17a(0x384)](_0x492ba5=>_0x492ba5[_0x52c17a(0x566)]===_0x32f390[_0x52c17a(0x566)])){await wt(_0x17e14c,[_0x166a38]);return;}await _0x13aac0['executeCommand'](t[_0x52c17a(0x616)]['id'],{'pivotTableId':_0xd22915,'fieldId':_0x166a38,'area':_t(_0x1e038f),'index':_0x5f31b8,'unitId':_0x27a2e7,'subUnitId':_0x72a7c3});}}function Dt(_0x59e172,_0x463402,_0x4a3f17,_0x4d6fd7,_0x5aeb50){_0x59e172['executeCommand'](tt['id'],{'row':-0x1,'col':-0x1,'unitId':_0x463402,'subUnitId':_0x4a3f17,'tableFieldId':_0x5aeb50,'pivotTableId':_0x4d6fd7});}function Ot(_0x59cba2,_0x93d999,_0x4a76a5,_0x15eb70,_0x203fbc,_0xddc0b9){const _0x1ff70a=_0x15a2ed;let {sourceList:_0x400a0d,rowFields:_0x1cdd29,columnFields:_0x46fcb1,valueFields:_0x411aaa,filterFields:_0x25c9f5}=_0xddc0b9,_0x4a33dc=[..._0x1cdd29,..._0x46fcb1,..._0x411aaa,..._0x25c9f5][_0x1ff70a(0x384)](_0x525668=>_0x525668[_0x1ff70a(0x6ed)]===_0x4a76a5),_0x29c258=_0x400a0d[_0x1ff70a(0x384)](_0x49c1cc=>_0x49c1cc['id']===(_0x4a33dc==null?void 0x0:_0x4a33dc[_0x1ff70a(0x566)]));if(_0x4a33dc&&_0x29c258){let _0x2cf8ce={'tableFieldId':_0x4a76a5,'pivotTableId':_0x93d999,'unitId':_0x15eb70,'subUnitId':_0x203fbc,'tableFieldInfo':_0x4a33dc,'dataFieldInfo':_0x29c258};_0x59cba2[_0x1ff70a(0x2f0)](nt['id'],_0x2cf8ce);}}const kt=[{'type':e[_0x15a2ed(0x392)][_0x15a2ed(0x548)],'textKey':_0x15a2ed(0x626)},{'type':e[_0x15a2ed(0x392)][_0x15a2ed(0x1ed)],'textKey':_0x15a2ed(0x638)},{'type':e[_0x15a2ed(0x392)]['countNums'],'textKey':_0x15a2ed(0x686)},{'type':e['PivotSubtotalTypeEnum'][_0x15a2ed(0x523)],'textKey':_0x15a2ed(0x5c5)},{'type':e[_0x15a2ed(0x392)][_0x15a2ed(0x24f)],'textKey':_0x15a2ed(0x580)},{'type':e['PivotSubtotalTypeEnum'][_0x15a2ed(0x30a)],'textKey':_0x15a2ed(0x4e3)},{'type':e[_0x15a2ed(0x392)][_0x15a2ed(0x53c)],'textKey':_0x15a2ed(0x3a3)},{'type':e['PivotSubtotalTypeEnum'][_0x15a2ed(0x69a)],'textKey':_0x15a2ed(0x484)},{'type':e[_0x15a2ed(0x392)]['sum'],'textKey':_0x15a2ed(0x2c7)},{'type':e[_0x15a2ed(0x392)]['var'],'textKey':_0x15a2ed(0x515)},{'type':e[_0x15a2ed(0x392)]['varp'],'textKey':_0x15a2ed(0x41e)}],At=(_0x147f77,_0x55156e=0x0)=>_0x147f77?n[_0x15a2ed(0x5ef)]['getFormatInfo'](_0x147f77)[_0x15a2ed(0x224)]??_0x55156e:_0x55156e,jt=_0x4416c0=>Array(Math[_0x15a2ed(0x24f)](Math[_0x15a2ed(0x523)](0x0,Number(_0x4416c0)),0x1e))[_0x15a2ed(0x50a)](0x0)[_0x15a2ed(0x4fd)](''),J=(_0x542e87,_0x222b29)=>_0x542e87['split'](';')[_0x15a2ed(0x611)](_0x9af191=>/\.0?/[_0x15a2ed(0x44d)](_0x9af191)?_0x9af191[_0x15a2ed(0x3d3)](/\.0*/g,''+(_0x222b29>0x0?'.':'')+jt(Number(_0x222b29||0x0))):/0[^0]?/['test'](_0x9af191)?_0x9af191[_0x15a2ed(0x3d3)](/0[^0]+|0$/,'0'+(_0x222b29>0x0?'.':'')+jt(Number(_0x222b29||0x0))):_0x9af191)[_0x15a2ed(0x4fd)](';'),Mt=_0x56e2a4=>n[_0x15a2ed(0x21e)][_0x15a2ed(0x384)](_0x5125ba=>_0x56e2a4['includes'](_0x5125ba)),Nt=_0x265dd4=>!_0x265dd4,Pt=_0x2e481a=>!!Mt(_0x2e481a)&&_0x2e481a[_0x15a2ed(0x2d4)]('_('),Ft=_0x32c6fd=>!!Mt(_0x32c6fd)&&!_0x32c6fd[_0x15a2ed(0x2d4)]('_('),It=()=>dt[_0x15a2ed(0x611)](_0x1c9ae7=>({'label':_0x1c9ae7[_0x15a2ed(0x3b3)],'value':_0x1c9ae7[_0x15a2ed(0x3c7)]})),Lt=_0x1c0b2b=>{const _0x475c26=_0x15a2ed;let _0x53ef18=n[_0x475c26(0x5ef)][_0x475c26(0x48e)](_0x1c0b2b);return It()[_0x475c26(0x611)](_0x269521=>_0x269521[_0x475c26(0x635)])[_0x475c26(0x6a2)](_0x1c0b2b)||[_0x475c26(0x64c),_0x475c26(0x4b6),_0x475c26(0x24b)]['includes'](_0x53ef18['type']);},Rt=()=>ft['map'](_0x1309dc=>({'label':_0x1309dc[_0x15a2ed(0x3b3)],'value':_0x1309dc[_0x15a2ed(0x3c7)],'color':_0x1309dc[_0x15a2ed(0x4ce)]})),zt=_0x4ca57d=>Rt()[_0x15a2ed(0x364)](_0x350df9=>(0x0,n[_0x15a2ed(0x6fb)])(_0x350df9['value'],_0x4ca57d)),Bt=(_0x41a9fd,_0x985c1)=>{const _0x3ff2bf=_0x15a2ed;switch(_0x985c1){case e[_0x3ff2bf(0x22f)][_0x3ff2bf(0x50d)]:return _0x41a9fd[_0x3ff2bf(0x542)]['length'];case e[_0x3ff2bf(0x22f)]['Column']:return _0x41a9fd[_0x3ff2bf(0x40c)][_0x3ff2bf(0x714)];case e['PivotTableFiledAreaEnum']['Filter']:return _0x41a9fd[_0x3ff2bf(0x6a7)][_0x3ff2bf(0x714)];case e[_0x3ff2bf(0x22f)][_0x3ff2bf(0x278)]:return _0x41a9fd[_0x3ff2bf(0x35d)]['length'];default:return 0x0;}},Vt=(_0x3304cd,_0x4d7f14,_0x344bdb)=>{const _0x51a667=_0x15a2ed;for(let _0x51a9e0 of[_0x51a667(0x24a),_0x51a667(0x24d),_0x51a667(0x1d3),'sheets-pivot-ui.maxName',_0x51a667(0x554),_0x51a667(0x59b),_0x51a667(0x2cc),_0x51a667(0x4a1),_0x51a667(0x2b0),_0x51a667(0x52f),_0x51a667(0x3f7)]){let _0x16b083=_0x344bdb[_0x51a9e0];if(_0x16b083+(0x0,t['isolateTextForBidiContext'])(_0x3304cd,_0x16b083)===_0x4d7f14||_0x16b083+_0x3304cd===_0x4d7f14)return!0x0;}return!0x1;},Ht=(_0x58143c,_0x305be3,_0x2e763a)=>{const _0x26f46f=_0x15a2ed;let _0x4c737e='';switch(_0x2e763a){case e['PivotSubtotalTypeEnum']['average']:_0x4c737e=_0x305be3[_0x26f46f(0x24a)];break;case e[_0x26f46f(0x392)]['count']:_0x4c737e=_0x305be3['sheets-pivot-ui.countName'];break;case e[_0x26f46f(0x392)][_0x26f46f(0x32e)]:_0x4c737e=_0x305be3[_0x26f46f(0x1d3)];break;case e['PivotSubtotalTypeEnum']['max']:_0x4c737e=_0x305be3['sheets-pivot-ui.maxName'];break;case e[_0x26f46f(0x392)]['min']:_0x4c737e=_0x305be3['sheets-pivot-ui.minName'];break;case e[_0x26f46f(0x392)][_0x26f46f(0x30a)]:_0x4c737e=_0x305be3['sheets-pivot-ui.productName'];break;case e[_0x26f46f(0x392)][_0x26f46f(0x53c)]:_0x4c737e=_0x305be3[_0x26f46f(0x2cc)];break;case e[_0x26f46f(0x392)][_0x26f46f(0x69a)]:_0x4c737e=_0x305be3[_0x26f46f(0x4a1)];break;case e['PivotSubtotalTypeEnum'][_0x26f46f(0x1b9)]:_0x4c737e=_0x305be3['sheets-pivot-ui.sumName'];break;case e['PivotSubtotalTypeEnum']['var']:_0x4c737e=_0x305be3[_0x26f46f(0x52f)];break;case e[_0x26f46f(0x392)][_0x26f46f(0x435)]:_0x4c737e=_0x305be3[_0x26f46f(0x3f7)];break;default:return _0x58143c;}return _0x4c737e+(0x0,t[_0x26f46f(0x5ce)])(_0x58143c,_0x4c737e);};function Ut(_0x117c5b,_0x4df970){const _0x1771f4=_0x15a2ed;if(_0x4df970['conditionFilter']&&(0x0,e['isPivotTableFilterRestrictive'])(_0x4df970[_0x1771f4(0x24e)]))return _0x1771f4(0x1bc);if(!_0x117c5b)return'NotFilter';if((0x0,e[_0x1771f4(0x33b)])(_0x117c5b))return _0x1771f4(0x1bc);if((0x0,e[_0x1771f4(0x4f8)])(_0x117c5b)){var _0x1debe4;return _0x117c5b[_0x1771f4(0x52a)]||((_0x1debe4=_0x4df970['items'])==null?void 0x0:_0x1debe4[_0x1771f4(0x714)])===_0x117c5b[_0x1771f4(0x62e)][_0x1771f4(0x714)]?_0x1771f4(0x48c):_0x1771f4(0x1bc);}return(0x0,e['isPivotTableFilterRestrictive'])(_0x117c5b)?_0x1771f4(0x1bc):_0x1771f4(0x48c);}function Wt(_0x167bcf){const _0x223529=_0x15a2ed;return Pt(_0x167bcf)?'accounting':Ft(_0x167bcf)?_0x223529(0x4c4):Lt(_0x167bcf)?_0x223529(0x64c):zt(_0x167bcf)?_0x223529(0x36c):_0x223529(0x4c0);}function Gt(_0x131f37){const _0x1029e0=_0x15a2ed;let {originPattern:_0x563b94='',onChange:_0x885fc5}=_0x131f37,_0x3bb99f=(0x0,i[_0x1029e0(0x50b)])(n[_0x1029e0(0x58a)]),[_0x39926b,_0x4d93d0]=(0x0,f[_0x1029e0(0x6de)])(()=>Wt(_0x563b94)),[_0x32f1ba,_0x4d1f3e]=(0x0,f[_0x1029e0(0x6de)])(()=>At(_0x563b94,0x2)),[_0x4f6890,_0x59c1fa]=(0x0,f[_0x1029e0(0x6de)])(()=>Mt(_0x563b94)||n[_0x1029e0(0x21e)][0x0]),[_0x4a155e,_0x5634e9]=(0x0,f[_0x1029e0(0x6de)])(_0x563b94),_0x430199=(0x0,f[_0x1029e0(0x264)])(()=>[{'value':_0x1029e0(0x4c0),'label':_0x3bb99f['t'](_0x1029e0(0x42f))},{'value':_0x1029e0(0x469),'label':_0x3bb99f['t'](_0x1029e0(0x50f))},{'value':'currency','label':_0x3bb99f['t'](_0x1029e0(0x280))},{'value':_0x1029e0(0x64c),'label':_0x3bb99f['t'](_0x1029e0(0x6c6))},{'value':_0x1029e0(0x36c),'label':_0x3bb99f['t'](_0x1029e0(0x6f6))}],[_0x3bb99f]),_0x1b6c6e=n[_0x1029e0(0x21e)][_0x1029e0(0x611)](_0x148fde=>({'label':_0x148fde,'value':_0x148fde}));function _0x35ea0b(_0x184766){_0x5634e9(_0x184766),_0x885fc5(_0x184766);}function _0x36af02(_0x3eaf41,_0x1e7cca){const _0x50cf54=_0x1029e0;return J(_0x50cf54(0x32a)+_0x3eaf41+_0x50cf54(0x56c)+(_0x1e7cca>0x0?'.0':'')+'_)',_0x1e7cca);}function _0x27e0e6(_0xfefe04){const _0x19be07=_0x1029e0;_0x4d93d0(_0xfefe04),_0x35ea0b(_0xfefe04===_0x19be07(0x4c0)?'':_0xfefe04===_0x19be07(0x469)?_0x36af02(_0x4f6890,_0x32f1ba):_0xfefe04==='currency'?J(pt[0x0][_0x19be07(0x3c7)](_0x4f6890),_0x32f1ba):_0xfefe04===_0x19be07(0x64c)?dt[0x0][_0x19be07(0x3c7)]:J(ft[0x0][_0x19be07(0x3c7)],_0x32f1ba));}function _0x5f1123(_0x4ce93f){_0x59c1fa(_0x4ce93f),_0x35ea0b(_0x39926b==='accounting'?_0x36af02(_0x4ce93f,_0x32f1ba):J(pt[0x0]['suffix'](_0x4ce93f),_0x32f1ba));}function _0x1f4db6(_0x200582){const _0x5aae84=_0x1029e0;let _0x3e0789=_0x200582??0x0;_0x4d1f3e(_0x3e0789),_0x35ea0b(_0x39926b===_0x5aae84(0x469)?_0x36af02(_0x4f6890,_0x3e0789):J(_0x4a155e,_0x3e0789));}let _0x57f731=pt['map'](_0x1ad78e=>({'label':_0x1ad78e['label'](_0x4f6890),'value':_0x1ad78e[_0x1029e0(0x3c7)](_0x4f6890),'color':_0x1ad78e['color']})),_0x403d7b=ft[_0x1029e0(0x611)](_0x30b4e9=>({'label':_0x30b4e9[_0x1029e0(0x3b3)],'value':_0x30b4e9['suffix'],'color':_0x30b4e9['color']})),_0x38c90e=dt[_0x1029e0(0x611)](_0x23a2f0=>({'label':_0x23a2f0[_0x1029e0(0x3b3)],'value':_0x23a2f0[_0x1029e0(0x3c7)]}));return(0x0,d['jsxs'])(_0x1029e0(0x664),{'className':_0x1029e0(0x5af),'children':[(0x0,d['jsxs'])(_0x1029e0(0x664),{'children':[(0x0,d[_0x1029e0(0x268)])(_0x1029e0(0x664),{'className':_0x1029e0(0x606),'children':_0x3bb99f['t']('sheets-pivot-ui.dialog.numfmt.formatTypes')}),(0x0,d[_0x1029e0(0x268)])(s[_0x1029e0(0x4e2)],{'className':_0x1029e0(0x1d5),'value':_0x39926b,'options':_0x430199,'onChange':_0x369361=>_0x27e0e6(_0x369361),'size':'small'})]}),(_0x39926b===_0x1029e0(0x469)||_0x39926b==='currency')&&(0x0,d['jsxs'])(_0x1029e0(0x664),{'className':_0x1029e0(0x322),'children':[(0x0,d['jsxs'])('div',{'children':[(0x0,d[_0x1029e0(0x268)])(_0x1029e0(0x664),{'className':_0x1029e0(0x606),'children':_0x3bb99f['t'](_0x1029e0(0x61c))}),(0x0,d[_0x1029e0(0x268)])(s['InputNumber'],{'className':_0x1029e0(0x1d5),'value':_0x32f1ba,'min':0x0,'max':0x14,'onChange':_0x1f4db6,'size':_0x1029e0(0x27c),'controls':!0x1})]}),(0x0,d[_0x1029e0(0x634)])('div',{'children':[(0x0,d[_0x1029e0(0x268)])(_0x1029e0(0x664),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x3bb99f['t'](_0x1029e0(0x3be))}),(0x0,d[_0x1029e0(0x268)])(s[_0x1029e0(0x4e2)],{'className':_0x1029e0(0x1d5),'value':_0x4f6890,'options':_0x1b6c6e,'onChange':_0x5f1123,'size':_0x1029e0(0x27c)})]})]}),_0x39926b==='thousandthPercentile'&&(0x0,d[_0x1029e0(0x634)])(_0x1029e0(0x664),{'children':[(0x0,d['jsx'])(_0x1029e0(0x664),{'className':_0x1029e0(0x606),'children':_0x3bb99f['t'](_0x1029e0(0x61c))}),(0x0,d[_0x1029e0(0x268)])(s['InputNumber'],{'className':_0x1029e0(0x1d5),'value':_0x32f1ba,'min':0x0,'max':0x14,'onChange':_0x1f4db6,'size':_0x1029e0(0x27c),'controls':!0x1})]}),_0x39926b===_0x1029e0(0x4c4)&&(0x0,d[_0x1029e0(0x268)])(s[_0x1029e0(0x3aa)],{'className':_0x1029e0(0x2e8),'options':_0x57f731,'value':_0x4a155e,'onChange':_0x3b1f1f=>_0x35ea0b(J(_0x3b1f1f,_0x32f1ba))}),_0x39926b===_0x1029e0(0x64c)&&(0x0,d[_0x1029e0(0x268)])(s['SelectList'],{'className':_0x1029e0(0x2e8),'options':_0x38c90e,'value':_0x4a155e,'onChange':_0x1d4662=>_0x35ea0b(_0x1d4662)}),_0x39926b==='thousandthPercentile'&&(0x0,d[_0x1029e0(0x268)])(s[_0x1029e0(0x3aa)],{'className':_0x1029e0(0x2e8),'options':_0x403d7b,'value':_0x4a155e,'onChange':_0x3d42d0=>_0x35ea0b(J(_0x3d42d0,_0x32f1ba))}),(0x0,d['jsx'])(_0x1029e0(0x664),{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3bb99f['t'](_0x1029e0(0x62c)+_0x39926b+'Desc')})]});}function Kt(_0x18de9e){const _0xb5d547=_0x15a2ed;let {unitId:_0x1d79a5,subUnitId:_0x2a7762,pivotTableId:_0x571cf7,tableFieldId:_0x36b554,originPattern:_0x4972aa,tableFieldInfo:_0xdcaf27,dataFieldInfo:_0x1e03c5}=_0x18de9e,_0x38b4eb=(0x0,i[_0xb5d547(0x50b)])(n[_0xb5d547(0x256)]),_0x5e8040=(0x0,i[_0xb5d547(0x50b)])(i[_0xb5d547(0x3fe)]),_0x52fafd=(0x0,i[_0xb5d547(0x50b)])(n[_0xb5d547(0x58a)]),[_0x4269a7,_0x24b662]=(0x0,f[_0xb5d547(0x6de)])(_0x4972aa??'');async function _0x2466b9(){const _0x4489a8=_0xb5d547;let _0x15b8a2={'format':_0x4269a7,'tableFieldId':_0x36b554,'pivotTableId':_0x571cf7,'unitId':_0x1d79a5,'subUnitId':_0x2a7762,'tableFieldInfo':_0xdcaf27,'dataFieldInfo':_0x1e03c5};await _0x38b4eb[_0x4489a8(0x2f0)](t['UpdatePivotFieldSettingCommand']['id'],_0x15b8a2),_0x5e8040[_0x4489a8(0x3ff)](w);}return(0x0,d[_0xb5d547(0x634)])(_0xb5d547(0x664),{'className':_0xb5d547(0x6d4),'dir':_0x52fafd[_0xb5d547(0x33e)](),'children':[(0x0,d[_0xb5d547(0x268)])(Gt,{'originPattern':_0x4972aa,'onChange':_0x24b662}),(0x0,d[_0xb5d547(0x634)])(s[_0xb5d547(0x60f)],{'children':[(0x0,d[_0xb5d547(0x268)])(s[_0xb5d547(0x23a)],{'onClick':()=>_0x5e8040['close'](w),'size':'middle','children':_0x52fafd['t'](_0xb5d547(0x386))}),(0x0,d['jsx'])(s['Button'],{'variant':_0xb5d547(0x3e0),'onClick':_0x2466b9,'size':'middle','children':_0x52fafd['t'](_0xb5d547(0x2a1))})]})]});}function qt(_0x387ada){const _0xc8173a=_0x15a2ed;let {unitId:_0x3094c,subUnitId:_0x205b58,pivotTableId:_0x4628f1,tableFieldId:_0x46106d,tableFieldInfo:_0x49bb00,dataFieldInfo:_0x1624d1,closeFn:_0x1b38ae,format:_0xa15655,version:_0x21415c}=_0x387ada,_0x1ebc03=(0x0,i[_0xc8173a(0x50b)])(n[_0xc8173a(0x256)]),_0x11f957=(0x0,i['useDependency'])(t[_0xc8173a(0x381)]),_0x587aff=(0x0,i[_0xc8173a(0x50b)])(n[_0xc8173a(0x58a)]),[_0x389d08,_0x154664]=(0x0,f[_0xc8173a(0x6de)])(_0xc8173a(0x4f5)),[_0x406ab4,_0x180403]=(0x0,f[_0xc8173a(0x6de)])(_0x49bb00['displayName']),[_0x55e582,_0x123671]=(0x0,f[_0xc8173a(0x6de)])(_0x49bb00['subTotalType']),[_0x13cd28,_0x1b362b]=(0x0,f[_0xc8173a(0x6de)])(_0xa15655??_0x49bb00[_0xc8173a(0x67b)]??''),[_0x245cd2,_0x96e6df]=(0x0,f[_0xc8173a(0x6de)])(_0x13cd28);(0x0,f[_0xc8173a(0x58b)])(()=>{const _0x198b33=_0xc8173a;_0x154664(_0x198b33(0x4f5)),_0x180403(_0x49bb00[_0x198b33(0x343)]),_0x123671(_0x49bb00[_0x198b33(0x4ac)]),_0x1b362b(_0xa15655??_0x49bb00[_0x198b33(0x67b)]??''),_0x96e6df(_0xa15655??_0x49bb00[_0x198b33(0x67b)]??'');},[_0xa15655,_0x49bb00,_0x21415c]);let _0x5b2591={..._0x11f957[_0xc8173a(0x4be)]()};['sheets-pivot-ui.averageName',_0xc8173a(0x24d),'sheets-pivot-ui.countNumsName',_0xc8173a(0x71a),_0xc8173a(0x554),_0xc8173a(0x59b),_0xc8173a(0x2cc),'sheets-pivot-ui.stdDevpName',_0xc8173a(0x2b0),_0xc8173a(0x52f),'sheets-pivot-ui.varpName'][_0xc8173a(0x567)](_0x36412f=>{_0x5b2591[_0x36412f]=_0x587aff['t'](_0x36412f);});function _0x17a7d0(_0x59b62f){const _0xfbc973=_0xc8173a;_0x123671(_0x59b62f),Vt(_0x1624d1[_0xfbc973(0x68b)],_0x406ab4,_0x5b2591)&&_0x180403(Ht(_0x1624d1[_0xfbc973(0x68b)],_0x5b2591,_0x59b62f));}async function _0x367411(){const _0x283222=_0xc8173a;let _0x4143f6={'displayName':_0x49bb00[_0x283222(0x343)]===_0x406ab4?void 0x0:_0x406ab4,'subtotalType':_0x49bb00[_0x283222(0x4ac)]===_0x55e582?void 0x0:_0x55e582,'format':_0x49bb00[_0x283222(0x67b)]===_0x13cd28?void 0x0:_0x13cd28,'tableFieldId':_0x46106d,'pivotTableId':_0x4628f1,'unitId':_0x3094c,'subUnitId':_0x205b58,'tableFieldInfo':_0x49bb00,'dataFieldInfo':_0x1624d1};await _0x1ebc03[_0x283222(0x2f0)](t[_0x283222(0x213)]['id'],_0x4143f6),_0x1b38ae();}return _0x389d08===_0xc8173a(0x67b)?(0x0,d[_0xc8173a(0x634)])(_0xc8173a(0x664),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-5','dir':_0x587aff[_0xc8173a(0x33e)](),'children':[(0x0,d[_0xc8173a(0x634)])('button',{'type':_0xc8173a(0x535),'className':_0xc8173a(0x2f7),'onClick':()=>_0x154664(_0xc8173a(0x4f5)),'children':[(0x0,d[_0xc8173a(0x268)])(u[_0xc8173a(0x306)],{}),_0x587aff['t'](_0xc8173a(0x514))]}),(0x0,d[_0xc8173a(0x268)])(Gt,{'originPattern':_0x13cd28,'onChange':_0x96e6df}),(0x0,d['jsxs'])(s['MobileActionRowGroup'],{'children':[(0x0,d[_0xc8173a(0x268)])(s[_0xc8173a(0x23a)],{'onClick':()=>_0x154664(_0xc8173a(0x4f5)),'size':_0xc8173a(0x4e6),'children':_0x587aff['t'](_0xc8173a(0x386))}),(0x0,d[_0xc8173a(0x268)])(s[_0xc8173a(0x23a)],{'variant':_0xc8173a(0x3e0),'onClick':()=>{_0x1b362b(_0x245cd2),_0x154664('field');},'size':_0xc8173a(0x4e6),'children':_0x587aff['t'](_0xc8173a(0x2a1))})]})]}):(0x0,d[_0xc8173a(0x634)])(_0xc8173a(0x664),{'className':_0xc8173a(0x5af),'dir':_0x587aff['getDirection'](),'children':[(0x0,d[_0xc8173a(0x634)])(_0xc8173a(0x664),{'children':[(0x0,d[_0xc8173a(0x634)])(_0xc8173a(0x664),{'className':_0xc8173a(0x2ad),'children':[(0x0,d[_0xc8173a(0x268)])(_0xc8173a(0x1b4),{'className':_0xc8173a(0x3eb),'children':_0x587aff['t'](_0xc8173a(0x6ac))}),(0x0,d[_0xc8173a(0x268)])(_0xc8173a(0x1b4),{'className':'univer-truncate\x20univer-text-xs\x20univer-text-gray-500','children':gt(_0x587aff['t'](_0xc8173a(0x60c)),_0x1624d1[_0xc8173a(0x68b)])})]}),(0x0,d[_0xc8173a(0x268)])(s[_0xc8173a(0x6e8)],{'className':_0xc8173a(0x2a9),'value':_0x406ab4,'onChange':_0x180403,'size':_0xc8173a(0x27c)})]}),(0x0,d['jsxs'])('div',{'children':[(0x0,d[_0xc8173a(0x268)])('div',{'className':_0xc8173a(0x606),'children':_0x587aff['t'](_0xc8173a(0x558))}),(0x0,d[_0xc8173a(0x268)])(_0xc8173a(0x664),{'className':_0xc8173a(0x51e),'children':kt[_0xc8173a(0x611)](_0x50a626=>(0x0,d[_0xc8173a(0x634)])(_0xc8173a(0x535),{'type':_0xc8173a(0x535),'className':(0x0,s['clsx'])(_0xc8173a(0x25e),{'univer-bg-primary-50\x20dark:!univer-bg-gray-700':_0x55e582===_0x50a626['type']}),'onClick':()=>_0x17a7d0(_0x50a626[_0xc8173a(0x4a9)]),'children':[(0x0,d['jsx'])(u[_0xc8173a(0x575)],{'className':(0x0,s[_0xc8173a(0x5fe)])(_0xc8173a(0x303),{'univer-invisible':_0x55e582!==_0x50a626['type']})}),_0x587aff['t'](_0x50a626[_0xc8173a(0x62b)])]},_0x50a626[_0xc8173a(0x4a9)]))})]}),(0x0,d[_0xc8173a(0x268)])(s[_0xc8173a(0x23a)],{'className':_0xc8173a(0x1d5),'onClick':()=>{const _0x313a22=_0xc8173a;_0x96e6df(_0x13cd28),_0x154664(_0x313a22(0x67b));},'size':_0xc8173a(0x4e6),'children':_0x587aff['t'](_0xc8173a(0x651))}),(0x0,d[_0xc8173a(0x634)])(s['MobileActionRowGroup'],{'children':[(0x0,d[_0xc8173a(0x268)])(s[_0xc8173a(0x23a)],{'onClick':_0x1b38ae,'size':_0xc8173a(0x4e6),'children':_0x587aff['t'](_0xc8173a(0x503))}),(0x0,d['jsx'])(s[_0xc8173a(0x23a)],{'variant':_0xc8173a(0x3e0),'disabled':!_0x406ab4,'onClick':_0x367411,'size':_0xc8173a(0x4e6),'children':_0x587aff['t'](_0xc8173a(0x694))})]})]});}function Jt(_0x4a24dc){const _0x330f07=_0x15a2ed;var _0x3d3779;let {filterItemInfo:_0x205893,unitId:_0x2008c4,subUnitId:_0x137ccc}=_0x4a24dc,_0x49c9be=(0x0,i[_0x330f07(0x50b)])(n[_0x330f07(0x256)]),_0x3f5857=(0x0,i['useDependency'])(i['IDialogService']),_0x13d6e4=(0x0,i[_0x330f07(0x50b)])(n[_0x330f07(0x58a)]),_0x3511a0=(0x0,i['useDependency'])(n['IUniverInstanceService']),_0xcae65a=(0x0,i['useObservable'])(_0x13d6e4['direction$'],_0x13d6e4['getDirection']()),[_0x24388c,_0x50d67d]=(0x0,f[_0x330f07(0x6de)])(()=>{const _0x4765f6=_0x330f07;var _0x2e1639;return _0x205893['checkedItems']??((_0x2e1639=_0x205893[_0x4765f6(0x496)])==null?void 0x0:_0x2e1639[_0x4765f6(0x62e)])??_0x205893[_0x4765f6(0x671)];}),[_0x5b0e2f,_0x2ca4d1]=(0x0,f['useState'])(()=>_0x205893[_0x330f07(0x35b)]??[]),[_0x5a313f,_0xe6cde3]=(0x0,f[_0x330f07(0x6de)])((_0x3d3779=_0x205893[_0x330f07(0x275)])==null?void 0x0:_0x3d3779['type']),_0x33e2ce=_0x5b0e2f[_0x330f07(0x714)]===0x0&&_0x24388c[_0x330f07(0x714)]===_0x205893['items']['length'],_0x15c2b2=Ut(_0x205893[_0x330f07(0x496)],{'items':_0x205893[_0x330f07(0x671)],'conditionFilter':_0x205893['conditionFilter']});(0x0,f[_0x330f07(0x58b)])(()=>{const _0x251d41=_0x330f07;let _0x454cd8=_0x3511a0[_0x251d41(0x55a)](n[_0x251d41(0x243)][_0x251d41(0x1d6)]);if(!_0x454cd8)return;let _0x303caf=_0x454cd8[_0x251d41(0x4d8)][_0x251d41(0x6f3)](_0x587eeb=>{const _0x37d1c7=_0x251d41;(_0x587eeb==null?void 0x0:_0x587eeb[_0x37d1c7(0x372)]())!==_0x137ccc&&_0x3f5857[_0x37d1c7(0x3ff)](b);});return()=>_0x303caf[_0x251d41(0x65e)]();},[_0x3f5857,_0x137ccc,_0x3511a0]);function _0x37a0aa(){_0x3f5857['close'](b);}function _0x463f0d(_0x1a21dc){const _0x1b9bea=_0x330f07;_0x5b0e2f[_0x1b9bea(0x6a2)](_0x1a21dc)?(_0x2ca4d1(_0x170a6c=>_0x170a6c['filter'](_0xdb3c1=>_0xdb3c1!==_0x1a21dc)),_0x50d67d(_0x2fccb3=>[..._0x2fccb3,_0x1a21dc])):_0x50d67d(_0x49f1d4=>_0x49f1d4[_0x1b9bea(0x6a2)](_0x1a21dc)?_0x49f1d4['filter'](_0x73e1ef=>_0x73e1ef!==_0x1a21dc):[..._0x49f1d4,_0x1a21dc]);}async function _0x4084e3(_0x59a0b3,_0x3abe61,_0x45926a,_0x3758e7=!0x1){const _0x351b0b=_0x330f07;await _0x49c9be[_0x351b0b(0x2f0)](t[_0x351b0b(0x5c3)]['id'],{'unitId':_0x2008c4,'subUnitId':_0x137ccc,'pivotTableId':_0x205893[_0x351b0b(0x260)],'tableFieldId':_0x205893[_0x351b0b(0x6ed)],'items':_0x59a0b3,'partialItems':_0x45926a,'isAll':_0x3abe61,'clearAllFilters':_0x3758e7}),_0x37a0aa();}async function _0x27d138(_0x51f801){const _0x521fb2=_0x330f07;await _0x49c9be[_0x521fb2(0x2f0)](t[_0x521fb2(0x54e)]['id'],{'unitId':_0x2008c4,'subUnitId':_0x137ccc,'pivotTableId':_0x205893[_0x521fb2(0x260)],'tableFieldId':_0x205893['tableFieldId'],'info':{'type':_0x51f801}}),_0xe6cde3(_0x51f801),_0x37a0aa();}return(0x0,d['jsxs'])(_0x330f07(0x664),{'className':_0x330f07(0x5af),'dir':_0xcae65a,'children':[(0x0,d[_0x330f07(0x268)])(_0x330f07(0x664),{'className':'univer-text-base\x20univer-font-semibold','children':_0x13d6e4['t'](_0x330f07(0x481))}),(0x0,d['jsxs'])(_0x330f07(0x664),{'className':_0x330f07(0x533),'children':[(0x0,d[_0x330f07(0x634)])(s[_0x330f07(0x23a)],{'className':(0x0,s[_0x330f07(0x5fe)])('',{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x5a313f===e[_0x330f07(0x217)]['ascending']}),'onClick':()=>_0x27d138(e[_0x330f07(0x217)]['ascending']),'size':_0x330f07(0x4e6),'children':[(0x0,d[_0x330f07(0x268)])(u[_0x330f07(0x54b)],{}),_0x13d6e4['t'](_0x330f07(0x6b0))]}),(0x0,d[_0x330f07(0x634)])(s[_0x330f07(0x23a)],{'className':(0x0,s['clsx'])('',{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x5a313f===e['PivotDataFieldSortOperatorEnum'][_0x330f07(0x238)]}),'onClick':()=>_0x27d138(e[_0x330f07(0x217)][_0x330f07(0x238)]),'size':_0x330f07(0x4e6),'children':[(0x0,d[_0x330f07(0x268)])(u[_0x330f07(0x3fb)],{}),_0x13d6e4['t'](_0x330f07(0x433))]})]}),(0x0,d['jsxs'])(_0x330f07(0x664),{'className':_0x330f07(0x653),'children':[(0x0,d[_0x330f07(0x268)])(_0x330f07(0x664),{'className':'univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-px-2','children':(0x0,d[_0x330f07(0x268)])(s[_0x330f07(0x45d)],{'checked':_0x33e2ce,'indeterminate':!_0x33e2ce&&(_0x24388c['length']>0x0||_0x5b0e2f[_0x330f07(0x714)]>0x0),'onChange':()=>{const _0x3d81d0=_0x330f07;_0x2ca4d1([]),_0x50d67d(_0x33e2ce?[]:_0x205893[_0x3d81d0(0x671)]);},'children':_0x13d6e4['t'](_0x330f07(0x22c))})}),_0x205893['items']['map']((_0x3a9a0a,_0x1b719d)=>{const _0x39f79c=_0x330f07;var _0x2f0757;let _0x290345=_0x205893[_0x39f79c(0x20e)][_0x1b719d],_0x26cd75=(_0x2f0757=_0x205893[_0x39f79c(0x562)])==null?void 0x0:_0x2f0757[_0x3a9a0a],_0x2db593=ht(_0x3a9a0a,_0x290345),_0x314e3b=_0x3a9a0a;return _0x2db593?_0x314e3b=_0x13d6e4['t'](_0x2db593):_0x26cd75===void 0x0?_0x290345===e[_0x39f79c(0x332)][_0x39f79c(0x64c)]&&_0x205893[_0x39f79c(0x67b)]&&(_0x314e3b=n['numfmt']['format'](_0x205893[_0x39f79c(0x67b)],Number(_0x3a9a0a))):_0x314e3b=_0x26cd75,(0x0,d['jsx'])(_0x39f79c(0x664),{'className':_0x39f79c(0x6ae),'children':(0x0,d[_0x39f79c(0x268)])(s['Checkbox'],{'checked':_0x24388c[_0x39f79c(0x6a2)](_0x3a9a0a),'indeterminate':_0x5b0e2f[_0x39f79c(0x6a2)](_0x3a9a0a),'contentClassName':_0x39f79c(0x4dd),'onChange':()=>_0x463f0d(_0x3a9a0a),'children':_0x314e3b})},_0x3a9a0a);})]}),(0x0,d[_0x330f07(0x268)])(s['Button'],{'className':_0x330f07(0x1d5),'variant':_0x330f07(0x703),'disabled':_0x15c2b2===_0x330f07(0x48c),'onClick':()=>_0x4084e3(_0x205893[_0x330f07(0x671)],!0x0,[],!0x0),'size':_0x330f07(0x4e6),'children':_0x13d6e4['t'](_0x330f07(0x529))}),(0x0,d[_0x330f07(0x634)])(s[_0x330f07(0x60f)],{'children':[(0x0,d[_0x330f07(0x268)])(s['Button'],{'onClick':_0x37a0aa,'size':'middle','children':_0x13d6e4['t']('sheets-pivot-ui.dialog.filter.cancel')}),(0x0,d[_0x330f07(0x268)])(s['Button'],{'variant':'primary','disabled':!_0x24388c['length']&&!_0x5b0e2f['length'],'onClick':()=>_0x4084e3(_0x24388c,_0x33e2ce,_0x5b0e2f),'size':_0x330f07(0x4e6),'children':_0x13d6e4['t']('sheets-pivot-ui.dialog.filter.confirm')})]})]});}const Yt=[{'label':_0x15a2ed(0x3ad),'value':_0x15a2ed(0x380)},{'label':_0x15a2ed(0x1d0),'value':_0x15a2ed(0x34d)}],Xt=[{'label':_0x15a2ed(0x6b4),'value':String(e[_0x15a2ed(0x1ea)]['tabular'])},{'label':_0x15a2ed(0x630),'value':String(e[_0x15a2ed(0x1ea)][_0x15a2ed(0x2b8)])},{'label':_0x15a2ed(0x5c2),'value':String(e['PivotLayoutTypeEnum'][_0x15a2ed(0x6ca)])}],Zt=[{'label':_0x15a2ed(0x666),'value':String(e[_0x15a2ed(0x633)][_0x15a2ed(0x557)])},{'label':'sheets-pivot-ui.config.rowSubtotalBottom','value':String(e['PivotSubtotalPositionEnum'][_0x15a2ed(0x1b8)])}],Qt=[{'label':_0x15a2ed(0x63a),'value':e['PivotDateGroupingMode'][_0x15a2ed(0x212)]},{'label':_0x15a2ed(0x352),'value':e[_0x15a2ed(0x6d7)][_0x15a2ed(0x333)]}];function $t(_0x1d540f){const _0x3b7485=_0x15a2ed;let {unitId:_0x1dab21,subUnitId:_0x150302,pivotTableId:_0x58e4fd}=_0x1d540f,_0x113c48=(0x0,i[_0x3b7485(0x50b)])(n[_0x3b7485(0x256)]),_0x2d009d=(0x0,i[_0x3b7485(0x50b)])(n[_0x3b7485(0x522)]),_0x5451a6=(0x0,i[_0x3b7485(0x50b)])(n[_0x3b7485(0x3f1)]),_0x512a01=(0x0,i[_0x3b7485(0x50b)])(n[_0x3b7485(0x58a)]),_0x13f834=(0x0,i[_0x3b7485(0x50b)])(t[_0x3b7485(0x381)]),_0x3f024b=(0x0,f[_0x3b7485(0x264)])(()=>_0x13f834['watchPivotTableChanges'](_0x1dab21,_0x150302,_0x58e4fd)[_0x3b7485(0x254)]((0x0,o['debounceTime'])(0x0)),[_0x13f834,_0x1dab21,_0x150302,_0x58e4fd]);(0x0,i[_0x3b7485(0x600)])(_0x3f024b);let [_0x180487,_0xdf0760]=(0x0,f['useState'])(!0x1),_0xcd3cfb=(0x0,f[_0x3b7485(0x5d6)])(!0x1),_0x26e9e2=_0x13f834[_0x3b7485(0x2b6)](_0x1dab21,_0x150302,_0x58e4fd),_0xf93531=(0x0,e[_0x3b7485(0x28f)])(_0x26e9e2==null?void 0x0:_0x26e9e2['fieldsConfig']['options']),[_0x209de7,_0x52a2d1]=(0x0,f[_0x3b7485(0x6de)])(()=>{const _0x2700a3=_0x3b7485;var _0x154047,_0x11705b;let _0x4c77d1=_0x13f834['getPivotTableConfig'](_0x1dab21,_0x150302,_0x58e4fd),_0x1dd5dd=(_0x4c77d1==null||(_0x154047=_0x4c77d1[_0x2700a3(0x5cd)])==null?void 0x0:_0x154047[_0x2700a3(0x599)])??{};return{'showRowSubtotal':_0x1dd5dd[_0x2700a3(0x23e)]??!0x0,'showRowGrandTotal':_0x1dd5dd[_0x2700a3(0x6a8)]??!0x0,'showColSubtotal':_0x1dd5dd['showColSubtotal']??!0x0,'showColGrandTotal':_0x1dd5dd[_0x2700a3(0x68f)]??!0x0,'pageWrap':_0x1dd5dd[_0x2700a3(0x34c)]??0x1,'pageOverThenDown':_0x1dd5dd[_0x2700a3(0x576)]??!0x1,'repeatRowLabels':_0x1dd5dd[_0x2700a3(0x370)]??!0x1,'repeatColLabels':_0x1dd5dd[_0x2700a3(0x1c5)]??!0x1,'layout':(_0x4c77d1==null||(_0x11705b=_0x4c77d1[_0x2700a3(0x5cd)])==null?void 0x0:_0x11705b[_0x2700a3(0x581)])??e[_0x2700a3(0x1ea)][_0x2700a3(0x4d1)],'rowSubtotalPosition':_0x1dd5dd[_0x2700a3(0x6be)]??e[_0x2700a3(0x633)][_0x2700a3(0x557)]};});function _0x4037e8(_0x4e112a){const _0x473cf9=_0x3b7485;let _0x416846={'unitId':_0x1dab21,'subUnitId':_0x150302,'pivotTableId':_0x58e4fd,'options':_0x4e112a};return _0x52a2d1(_0x38bc4e=>({..._0x38bc4e,..._0x4e112a})),_0x113c48[_0x473cf9(0x2f0)](t[_0x473cf9(0x439)]['id'],_0x416846)[_0x473cf9(0x30c)](_0x1fc7e8=>_0x5451a6['error']('[MobilePivotConfigPanel]',_0x1fc7e8));}function _0x3994f6(_0x11964b){const _0x5d6c55=_0x3b7485;let _0x2c5358={'unitId':_0x1dab21,'subUnitId':_0x150302,'pivotTableId':_0x58e4fd,'layout':_0x11964b};return _0x52a2d1(_0x4230e9=>({..._0x4230e9,'layout':_0x11964b})),_0x113c48['executeCommand'](t['SetPivotLayoutCommand']['id'],_0x2c5358)[_0x5d6c55(0x30c)](_0xfe9334=>_0x5451a6['error'](_0x5d6c55(0x6c0),_0xfe9334));}async function _0x2a79d7(_0x10d59e){const _0x42ffdf=_0x3b7485;if(!(_0xcd3cfb[_0x42ffdf(0x6c4)]||_0x10d59e===_0xf93531)){_0xcd3cfb[_0x42ffdf(0x6c4)]=!0x0,_0xdf0760(!0x0);try{let _0x3df36e=_0x13f834[_0x42ffdf(0x2b6)](_0x1dab21,_0x150302,_0x58e4fd),_0x5bb245=_0x13f834[_0x42ffdf(0x25d)](_0x1dab21,_0x58e4fd);if(!_0x3df36e||!_0x5bb245||(Object['values'](_0x5bb245[_0x42ffdf(0x59e)])[_0x42ffdf(0x364)](e[_0x42ffdf(0x5b2)])||_0x5bb245[_0x42ffdf(0x4f4)][_0x42ffdf(0x364)](e[_0x42ffdf(0x5b2)]))&&!await _0x2d009d[_0x42ffdf(0x656)]({'id':_0x42ffdf(0x259),'title':{'title':_0x512a01['t'](_0x42ffdf(0x460))},'children':{'title':_0x512a01['t'](_0x42ffdf(0x1f4))},'cancelText':_0x512a01['t'](_0x42ffdf(0x503)),'confirmText':_0x512a01['t'](_0x42ffdf(0x694))})||_0x13f834['getPivotTableConfig'](_0x1dab21,_0x150302,_0x58e4fd)!==_0x3df36e||_0x13f834[_0x42ffdf(0x25d)](_0x1dab21,_0x58e4fd)!==_0x5bb245||(0x0,e[_0x42ffdf(0x28f)])(_0x3df36e[_0x42ffdf(0x5cd)][_0x42ffdf(0x599)])===_0x10d59e)return;await _0x113c48[_0x42ffdf(0x2f0)](t[_0x42ffdf(0x439)]['id'],{'unitId':_0x1dab21,'subUnitId':_0x150302,'pivotTableId':_0x58e4fd,'options':{'dateGroupingMode':_0x10d59e}});}catch(_0x36be63){_0x5451a6[_0x42ffdf(0x4de)](_0x42ffdf(0x6c0),_0x36be63);}finally{_0xcd3cfb[_0x42ffdf(0x6c4)]=!0x1,_0xdf0760(!0x1);}}}let _0x392bb8=_0x2a9262=>_0x2a9262[_0x3b7485(0x611)](_0x14ffc0=>({..._0x14ffc0,'label':_0x512a01['t'](_0x14ffc0[_0x3b7485(0x3b3)])}));return(0x0,d[_0x3b7485(0x634)])(_0x3b7485(0x664),{'className':_0x3b7485(0x420),'children':[(0x0,d[_0x3b7485(0x634)])('section',{'className':_0x3b7485(0x6b1),'children':[(0x0,d[_0x3b7485(0x268)])(_0x3b7485(0x664),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','children':_0x512a01['t'](_0x3b7485(0x70f))}),(0x0,d[_0x3b7485(0x634)])('div',{'className':_0x3b7485(0x374),'children':[(0x0,d['jsx'])('span',{'className':'univer-text-sm','children':_0x512a01['t'](_0x3b7485(0x429))}),(0x0,d[_0x3b7485(0x268)])(s[_0x3b7485(0x4e2)],{'className':_0x3b7485(0x6ec),'value':_0xf93531,'options':_0x392bb8(Qt),'disabled':_0x180487,'onChange':_0x19d7e9=>_0x2a79d7(_0x19d7e9),'size':'small'})]}),(0x0,d[_0x3b7485(0x634)])('div',{'className':_0x3b7485(0x374),'children':[(0x0,d['jsx'])('span',{'className':_0x3b7485(0x5b3),'children':_0x512a01['t'](_0x3b7485(0x27d))}),(0x0,d[_0x3b7485(0x268)])(s[_0x3b7485(0x4e2)],{'className':_0x3b7485(0x6ec),'value':String(_0x209de7[_0x3b7485(0x581)]),'options':_0x392bb8(Xt),'onChange':_0x173bcd=>_0x3994f6(Number(_0x173bcd)),'size':'small'})]}),(0x0,d[_0x3b7485(0x268)])(s['Checkbox'],{'checked':_0x209de7[_0x3b7485(0x370)],'disabled':_0x209de7[_0x3b7485(0x581)]===e['PivotLayoutTypeEnum'][_0x3b7485(0x2b8)],'onChange':_0x19886a=>_0x4037e8({'repeatRowLabels':!!_0x19886a}),'children':_0x512a01['t']('sheets-pivot-ui.config.repeatRowLabels')}),(0x0,d[_0x3b7485(0x268)])(s[_0x3b7485(0x45d)],{'checked':_0x209de7[_0x3b7485(0x1c5)],'onChange':_0x3da201=>_0x4037e8({'repeatColLabels':!!_0x3da201}),'children':_0x512a01['t'](_0x3b7485(0x4fa))})]}),(0x0,d[_0x3b7485(0x634)])('section',{'className':_0x3b7485(0x6b1),'children':[(0x0,d[_0x3b7485(0x268)])(_0x3b7485(0x664),{'className':_0x3b7485(0x411),'children':_0x512a01['t'](_0x3b7485(0x307))}),(0x0,d[_0x3b7485(0x268)])(s['Checkbox'],{'checked':_0x209de7[_0x3b7485(0x23e)],'onChange':_0x3a8650=>_0x4037e8({'showRowSubtotal':!!_0x3a8650}),'children':_0x512a01['t'](_0x3b7485(0x42e))}),_0x209de7[_0x3b7485(0x581)]===e[_0x3b7485(0x1ea)][_0x3b7485(0x6ca)]&&(0x0,d[_0x3b7485(0x634)])(_0x3b7485(0x664),{'className':_0x3b7485(0x374),'children':[(0x0,d[_0x3b7485(0x268)])(_0x3b7485(0x1b4),{'className':_0x3b7485(0x5b3),'children':_0x512a01['t']('sheets-pivot-ui.config.rowSubtotalPosition')}),(0x0,d['jsx'])(s['MobileSelect'],{'className':_0x3b7485(0x6ec),'value':String(_0x209de7['rowSubtotalPosition']),'options':_0x392bb8(Zt),'onChange':_0x3bf7eb=>_0x4037e8({'rowSubtotalPosition':Number(_0x3bf7eb)}),'size':'small'})]}),(0x0,d['jsx'])(s[_0x3b7485(0x45d)],{'checked':_0x209de7[_0x3b7485(0x6a8)],'onChange':_0x50f11c=>_0x4037e8({'showRowGrandTotal':!!_0x50f11c}),'children':_0x512a01['t'](_0x3b7485(0x4ff))}),(0x0,d[_0x3b7485(0x268)])(s[_0x3b7485(0x45d)],{'checked':_0x209de7[_0x3b7485(0x270)],'onChange':_0x44f6da=>_0x4037e8({'showColSubtotal':!!_0x44f6da}),'children':_0x512a01['t'](_0x3b7485(0x6ff))}),(0x0,d['jsx'])(s[_0x3b7485(0x45d)],{'checked':_0x209de7[_0x3b7485(0x68f)],'onChange':_0x4f4194=>_0x4037e8({'showColGrandTotal':!!_0x4f4194}),'children':_0x512a01['t'](_0x3b7485(0x2ee))})]}),(0x0,d[_0x3b7485(0x634)])(_0x3b7485(0x696),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,d[_0x3b7485(0x268)])(_0x3b7485(0x664),{'className':_0x3b7485(0x411),'children':_0x512a01['t'](_0x3b7485(0x619))}),(0x0,d[_0x3b7485(0x634)])(_0x3b7485(0x664),{'className':_0x3b7485(0x374),'children':[(0x0,d[_0x3b7485(0x268)])('span',{'className':'univer-text-sm','children':_0x512a01['t'](_0x3b7485(0x647))}),(0x0,d['jsx'])(s[_0x3b7485(0x451)],{'className':_0x3b7485(0x229),'value':_0x209de7['pageWrap'],'min':0x1,'max':0x14,'onChange':_0x468dc9=>{let _0x56e1db=Number(_0x468dc9);return Number['isFinite'](_0x56e1db)&&_0x56e1db>=0x1?_0x4037e8({'pageWrap':_0x56e1db}):void 0x0;},'size':_0x3b7485(0x27c),'controls':!0x1})]}),(0x0,d[_0x3b7485(0x268)])('p',{'className':_0x3b7485(0x55e),'children':_0x512a01['t'](_0x209de7['pageOverThenDown']?_0x3b7485(0x443):_0x3b7485(0x6b3))}),(0x0,d['jsxs'])('div',{'className':'univer-flex\x20univer-min-h-10\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','children':[(0x0,d[_0x3b7485(0x268)])(_0x3b7485(0x1b4),{'className':'univer-text-sm','children':_0x512a01['t'](_0x3b7485(0x6fc))}),(0x0,d['jsx'])(s[_0x3b7485(0x4e2)],{'className':_0x3b7485(0x6ec),'value':String(_0x209de7[_0x3b7485(0x576)]),'options':_0x392bb8(Yt),'onChange':_0x3758c6=>_0x4037e8({'pageOverThenDown':_0x3758c6===_0x3b7485(0x34d)}),'size':_0x3b7485(0x27c)})]})]})]});}function en(_0x1b331b,_0x26a536,_0x5e9431,_0x42eeea){const _0xc99ba8=_0x15a2ed;let _0x5de2d0=[];return _0x26a536>0x0&&_0x5de2d0['push']('moveUp'),_0x26a536<_0x5e9431-0x1&&_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x5d1)),_0x42eeea?(_0x5de2d0['push'](_0x1b331b==='column'?'moveToRow':_0xc99ba8(0x531)),_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x6e4)),_0x5de2d0):(_0x1b331b!==_0xc99ba8(0x3f8)&&_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x3ac)),_0x1b331b!==_0xc99ba8(0x377)&&_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x531)),_0x1b331b!==_0xc99ba8(0x291)&&_0x5de2d0['push'](_0xc99ba8(0x2ff)),_0x1b331b===_0xc99ba8(0x635)?_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x471)):(_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x357)),_0x5de2d0[_0xc99ba8(0x1d4)]('filter')),_0x5de2d0[_0xc99ba8(0x1d4)](_0xc99ba8(0x6e4)),_0x5de2d0);}const tn=['filter',_0x15a2ed(0x377),_0x15a2ed(0x291),_0x15a2ed(0x635)];function nn(_0x5c74c6,_0x30b893){const _0x36e710=_0x15a2ed;switch(_0x30b893){case'filter':return _0x5c74c6[_0x36e710(0x6a7)];case _0x36e710(0x377):return _0x5c74c6[_0x36e710(0x40c)];case _0x36e710(0x291):return _0x5c74c6[_0x36e710(0x542)];case _0x36e710(0x635):return _0x5c74c6['valueFields'];default:return[];}}function rn(_0x722b77){const _0x4f45b9=_0x15a2ed;switch(_0x722b77){case _0x4f45b9(0x3f8):return _0x4f45b9(0x583);case _0x4f45b9(0x377):return _0x4f45b9(0x4dc);case _0x4f45b9(0x291):return _0x4f45b9(0x538);default:return'sheets-pivot-ui.value';}}function an(_0x5128a8){const _0x53469c=_0x15a2ed;switch(_0x5128a8){case _0x53469c(0x3f8):return _0x53469c(0x670);case _0x53469c(0x377):return _0x53469c(0x6c7);case _0x53469c(0x291):return _0x53469c(0x26c);default:return _0x53469c(0x6c8);}}function on(_0x2d8068){const _0x4acbef=_0x15a2ed;switch(_0x2d8068['area']){case _0x4acbef(0x3f8):return(0x0,d[_0x4acbef(0x268)])(u[_0x4acbef(0x2b7)],{});case'column':return(0x0,d[_0x4acbef(0x268)])(u[_0x4acbef(0x2ef)],{});case'row':return(0x0,d[_0x4acbef(0x268)])(u[_0x4acbef(0x1ec)],{});default:return(0x0,d['jsx'])(u['FunctionIcon'],{});}}function sn(_0x5debf7){const _0x4ef4f7=_0x15a2ed;switch(_0x5debf7){case'moveUp':return _0x4ef4f7(0x1f7);case _0x4ef4f7(0x5d1):return _0x4ef4f7(0x211);case _0x4ef4f7(0x3ac):return'sheets-pivot-ui.mobile.moveToFilter';case _0x4ef4f7(0x531):return _0x4ef4f7(0x648);case _0x4ef4f7(0x2ff):return _0x4ef4f7(0x28e);case'moveToValue':return'sheets-pivot-ui.mobile.moveToValue';case _0x4ef4f7(0x3f8):return _0x4ef4f7(0x481);case _0x4ef4f7(0x471):return'sheets-pivot-ui.fieldSettings';default:return _0x4ef4f7(0x26d);}}function cn(_0x54a059){const _0x4ee67d=_0x15a2ed;switch(_0x54a059){case _0x4ee67d(0x3ac):return _0x4ee67d(0x3f8);case _0x4ee67d(0x531):return'column';case _0x4ee67d(0x2ff):return _0x4ee67d(0x291);case _0x4ee67d(0x357):return _0x4ee67d(0x635);default:return null;}}function ln(_0x4ddb8f){const _0x31d319=_0x15a2ed;let {area:_0x45167d,field:_0x57fea1,index:_0x3dc907,fieldCount:_0x153f24,info:_0x460be0,pivotTableId:_0xd59cba,unitId:_0x20c522,subUnitId:_0x365591,refresh:_0x503a0d}=_0x4ddb8f,_0x3bc398=(0x0,i[_0x31d319(0x50b)])(n[_0x31d319(0x256)]),_0xe39e47=(0x0,i[_0x31d319(0x50b)])(n[_0x31d319(0x58a)]),_0x4e0eee=_0x57fea1[_0x31d319(0x6ed)]===mt,_0x5d156d={'pivotTableInfo':_0x460be0,'pivotTableId':_0xd59cba,'commandService':_0x3bc398,'unitId':_0x20c522,'subUnitId':_0x365591};async function _0x1ab730(_0x2a81d8){const _0x45390a=_0x31d319;if(_0x2a81d8===_0x45390a(0x3f8)){Dt(_0x3bc398,_0x20c522,_0x365591,_0xd59cba,_0x57fea1[_0x45390a(0x6ed)]);return;}if(_0x2a81d8===_0x45390a(0x471)){Ot(_0x3bc398,_0xd59cba,_0x57fea1[_0x45390a(0x6ed)],_0x20c522,_0x365591,_0x460be0);return;}if(_0x2a81d8===_0x45390a(0x6e4)){await bt(_0x5d156d,_0x57fea1[_0x45390a(0x6ed)],_0x45167d),await _0x503a0d();return;}let _0x2e7cb3=cn(_0x2a81d8)??_0x45167d,_0x2f5097=nn(_0x460be0,_0x2e7cb3)[_0x45390a(0x714)];_0x2a81d8===_0x45390a(0x3d4)?_0x2f5097=_0x3dc907-0x1:_0x2a81d8===_0x45390a(0x5d1)&&(_0x2f5097=_0x3dc907+0x1),await Ct(_0x5d156d,_0x57fea1[_0x45390a(0x6ed)],_0x45167d,_0x2e7cb3,_0x2f5097),await _0x503a0d();}let _0xce788a=en(_0x45167d,_0x3dc907,_0x153f24,_0x4e0eee)[_0x31d319(0x611)](_0x5ecc97=>({'type':_0x31d319(0x54a),'children':_0xe39e47['t'](sn(_0x5ecc97)),'variant':_0x5ecc97==='remove'?_0x31d319(0x28c):_0x31d319(0x618),'onSelect':()=>_0x1ab730(_0x5ecc97)}));return(0x0,d['jsxs'])(_0x31d319(0x664),{'className':'univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-gap-3\x20univer-rounded-xl\x20univer-px-3','children':[(0x0,d[_0x31d319(0x268)])(_0x31d319(0x61d),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','dir':_0x31d319(0x5bd),'children':_0x4e0eee?_0xe39e47['t'](_0x31d319(0x47f)):_0x57fea1[_0x31d319(0x343)]}),(0x0,d[_0x31d319(0x268)])(s[_0x31d319(0x501)],{'items':_0xce788a,'children':(0x0,d['jsx'])('button',{'type':_0x31d319(0x535),'className':_0x31d319(0x6d2),'children':(0x0,d[_0x31d319(0x268)])(u[_0x31d319(0x3de)],{})})})]});}function un(_0x403eaf){const _0x2674d9=_0x15a2ed;let _0x12d24e=(0x0,i[_0x2674d9(0x50b)])(n[_0x2674d9(0x58a)]);return(0x0,d['jsx'])(_0x2674d9(0x664),{'className':_0x2674d9(0x5af),'children':tn[_0x2674d9(0x611)](_0xebdaf3=>{const _0x140bd4=_0x2674d9;let _0x4eced9=nn(_0x403eaf[_0x140bd4(0x6a1)],_0xebdaf3);return(0x0,d[_0x140bd4(0x634)])(_0x140bd4(0x696),{'children':[(0x0,d[_0x140bd4(0x634)])('div',{'className':_0x140bd4(0x629),'children':[(0x0,d['jsx'])(on,{'area':_0xebdaf3}),_0x12d24e['t'](rn(_0xebdaf3))]}),(0x0,d[_0x140bd4(0x268)])(_0x140bd4(0x664),{'className':_0x140bd4(0x67f),'children':_0x4eced9[_0x140bd4(0x714)]?_0x4eced9[_0x140bd4(0x611)]((_0x439d76,_0x5f188d)=>(0x0,d[_0x140bd4(0x268)])(ln,{..._0x403eaf,'area':_0xebdaf3,'field':_0x439d76,'index':_0x5f188d,'fieldCount':_0x4eced9[_0x140bd4(0x714)]},_0x439d76[_0x140bd4(0x6ed)])):(0x0,d[_0x140bd4(0x268)])(_0x140bd4(0x664),{'className':_0x140bd4(0x3bf),'children':_0x12d24e['t'](an(_0xebdaf3))})})]},_0xebdaf3);})});}function dn(_0x328c5e,_0x5006a1){const _0x8740e0=_0x15a2ed;switch(_0x5006a1){case _0x8740e0(0x3f8):return _0x328c5e['filterFields'][_0x8740e0(0x714)];case _0x8740e0(0x377):return _0x328c5e['columnFields']['length'];case _0x8740e0(0x291):return _0x328c5e['rowFields'][_0x8740e0(0x714)];case _0x8740e0(0x635):return _0x328c5e[_0x8740e0(0x35d)][_0x8740e0(0x714)];default:return 0x0;}}function fn(_0x833c79){const _0x3d8bf2=_0x15a2ed;let _0x553044=_0x3d8bf2(0x652);switch(_0x833c79[_0x3d8bf2(0x4a9)]){case e[_0x3d8bf2(0x332)][_0x3d8bf2(0x426)]:return(0x0,d[_0x3d8bf2(0x268)])(u[_0x3d8bf2(0x6b8)],{'className':_0x553044});case e[_0x3d8bf2(0x332)]['date']:return(0x0,d[_0x3d8bf2(0x268)])(u['CalendarIcon'],{'className':_0x553044});default:return(0x0,d[_0x3d8bf2(0x268)])(u[_0x3d8bf2(0x5bb)],{'className':_0x553044});}}function pn(_0x501a72){const _0x270810=_0x15a2ed;let {field:_0xff2ca4,info:_0x235f21,pivotTableId:_0x2025e4,unitId:_0x2cad18,subUnitId:_0x58ec0a,refresh:_0x2a52a4}=_0x501a72,_0x4ceca1=(0x0,i[_0x270810(0x50b)])(n[_0x270810(0x256)]),_0x1b4f0a=(0x0,i[_0x270810(0x50b)])(n[_0x270810(0x58a)]),_0x1706ba={'pivotTableInfo':_0x235f21,'pivotTableId':_0x2025e4,'commandService':_0x4ceca1,'unitId':_0x2cad18,'subUnitId':_0x58ec0a};async function _0x4ab5f9(_0x3eabee){const _0x521d1d=_0x270810;if(_0x3eabee){let _0x4571ac=_0xff2ca4[_0x521d1d(0x4a9)]===e[_0x521d1d(0x332)]['number']?_0x521d1d(0x635):_0x521d1d(0x291);await Ct(_0x1706ba,_0xff2ca4[_0x521d1d(0x566)],_0x521d1d(0x257),_0x4571ac,dn(_0x235f21,_0x4571ac));}else await bt(_0x1706ba,_0xff2ca4[_0x521d1d(0x566)],_0x521d1d(0x257));await _0x2a52a4();}async function _0xabcdc1(_0x892bef){const _0x4ed2e2=_0x270810;await Ct(_0x1706ba,_0xff2ca4[_0x4ed2e2(0x566)],_0x4ed2e2(0x257),_0x892bef,dn(_0x235f21,_0x892bef)),await _0x2a52a4();}let _0x262dfa=[{'type':_0x270810(0x54a),'children':_0x1b4f0a['t'](_0x270810(0x539)),'onSelect':()=>_0xabcdc1(_0x270810(0x291))},{'type':_0x270810(0x54a),'children':_0x1b4f0a['t'](_0x270810(0x617)),'onSelect':()=>_0xabcdc1(_0x270810(0x377))},{'type':'item','children':_0x1b4f0a['t'](_0x270810(0x1ee)),'onSelect':()=>_0xabcdc1(_0x270810(0x635))},{'type':'item','children':_0x1b4f0a['t']('sheets-pivot-ui.addToFilter'),'onSelect':()=>_0xabcdc1(_0x270810(0x3f8))}];return(0x0,d[_0x270810(0x634)])(_0x270810(0x664),{'className':_0x270810(0x6a0),'children':[(0x0,d['jsx'])(s[_0x270810(0x45d)],{'checked':_0xff2ca4[_0x270810(0x68e)],'onChange':_0xadac3b=>_0x4ab5f9(!!_0xadac3b)}),(0x0,d['jsx'])(fn,{'type':_0xff2ca4['type']}),(0x0,d[_0x270810(0x268)])(_0x270810(0x61d),{'className':_0x270810(0x6b5),'dir':_0x270810(0x5bd),'children':_0xff2ca4['name']}),(0x0,d[_0x270810(0x268)])(s[_0x270810(0x501)],{'items':_0x262dfa,'children':(0x0,d['jsx'])(_0x270810(0x535),{'type':_0x270810(0x535),'className':_0x270810(0x6d2),'children':(0x0,d[_0x270810(0x268)])(u[_0x270810(0x3de)],{})})})]});}function mn(_0x22657a){const _0x284d2a=_0x15a2ed;let {info:_0x343e07}=_0x22657a,_0x2f67f0=(0x0,i[_0x284d2a(0x50b)])(n['LocaleService']),[_0x4317ee,_0x6841b6]=(0x0,f[_0x284d2a(0x6de)])(''),_0x1d9b10=_0x4317ee['trim']()['toLocaleLowerCase'](),_0x2c087c=_0x1d9b10?_0x343e07[_0x284d2a(0x4b5)][_0x284d2a(0x3f8)](_0x35fc20=>_0x35fc20[_0x284d2a(0x68b)][_0x284d2a(0x5fd)]()[_0x284d2a(0x6a2)](_0x1d9b10)):_0x343e07['sourceList'];return(0x0,d[_0x284d2a(0x634)])(_0x284d2a(0x696),{'className':_0x284d2a(0x2d1),'children':[(0x0,d['jsxs'])(_0x284d2a(0x664),{'children':[(0x0,d[_0x284d2a(0x268)])(_0x284d2a(0x664),{'className':_0x284d2a(0x3eb),'children':_0x2f67f0['t'](_0x284d2a(0x628))}),(0x0,d[_0x284d2a(0x268)])(_0x284d2a(0x664),{'className':_0x284d2a(0x5e6),'children':_0x2f67f0['t']('sheets-pivot-ui.mobile.sourceFieldDescription')})]}),(0x0,d['jsx'])(s['Input'],{'allowClear':!0x0,'value':_0x4317ee,'placeholder':_0x2f67f0['t'](_0x284d2a(0x5f8)),'slot':(0x0,d[_0x284d2a(0x268)])(u[_0x284d2a(0x25f)],{}),'onChange':_0x6841b6,'size':'small'}),(0x0,d['jsx'])(_0x284d2a(0x664),{'className':_0x284d2a(0x67f),'children':_0x2c087c[_0x284d2a(0x714)]?_0x2c087c[_0x284d2a(0x611)](_0xc17c76=>(0x0,d[_0x284d2a(0x268)])(pn,{..._0x22657a,'field':_0xc17c76},_0xc17c76['id'])):(0x0,d[_0x284d2a(0x268)])('div',{'className':_0x284d2a(0x6e5),'children':_0x2f67f0['t'](_0x284d2a(0x6aa))})})]});}function hn(_0x5ac3e3){const _0x399d24=_0x15a2ed;var _0x46959e;let {sourceRangeInfo:_0x129d48,positionInfo:_0x24ca0e,pivotTableId:_0x25c4cc,refresh:_0x185874}=_0x5ac3e3,_0x3ef09a=(0x0,i['useDependency'])(n[_0x399d24(0x256)]),_0x19f3f2=(0x0,i['useDependency'])(n['ILogService']),_0x1dd037=(0x0,i[_0x399d24(0x50b)])(n[_0x399d24(0x58a)]),_0x3e0994=(0x0,i[_0x399d24(0x50b)])(n[_0x399d24(0x4c5)])[_0x399d24(0x657)](_0x129d48['unitId']),_0x33c721=(_0x3e0994==null||(_0x46959e=_0x3e0994[_0x399d24(0x6f8)](_0x129d48[_0x399d24(0x317)]))==null?void 0x0:_0x46959e[_0x399d24(0x29d)]())??_0x129d48[_0x399d24(0x3cf)],[_0x3dd6a6,_0x3f9213]=(0x0,f['useState'])(_0x129d48[_0x399d24(0x242)]),[_0x351934,_0x23f770]=(0x0,f[_0x399d24(0x6de)])(_0x33c721),[_0x220b7e,_0x309ca3]=(0x0,f[_0x399d24(0x6de)])('');(0x0,f[_0x399d24(0x58b)])(()=>{const _0x1c6c5d=_0x399d24;_0x3f9213(_0x129d48[_0x1c6c5d(0x242)]),_0x23f770(_0x33c721);},[_0x33c721,_0x129d48]);async function _0x5eca68(_0xc6f24a){const _0x24b8bb=_0x399d24;let _0x3d216e=_0xc6f24a[_0x24b8bb(0x66c)](',')['filter'](Boolean)['map'](p[_0x24b8bb(0x478)])[0x0];if(!_0x3d216e||!_0x3e0994){_0x309ca3(_0x1dd037['t'](_0x24b8bb(0x2bf)));return;}let _0x268086=_0x3d216e[_0x24b8bb(0x3cf)]||_0x129d48[_0x24b8bb(0x3cf)],_0x2496dd=_0x3e0994[_0x24b8bb(0x491)](_0x268086),_0x18bde3=yt(_0x2496dd,_0x3d216e[_0x24b8bb(0x242)]);if(_0x18bde3!==0x2||!_0x2496dd){let _0x397d87=_0x18bde3===0x0?_0x24b8bb(0x2bf):'sheets-pivot-ui.msg.invalidSize';_0x309ca3(_0x1dd037['t'](_0x397d87));}else _0x309ca3(''),_0x3f9213(_0x3d216e['range']),_0x23f770(_0x268086),await xt(_0x3ef09a,_0x25c4cc,{'unitId':_0x129d48[_0x24b8bb(0x427)],'subUnitId':_0x2496dd[_0x24b8bb(0x372)](),'range':_0x3d216e[_0x24b8bb(0x242)],'sheetName':_0x268086},_0x24ca0e[_0x24b8bb(0x427)],_0x24ca0e[_0x24b8bb(0x317)]),await _0x185874();}return(0x0,d[_0x399d24(0x634)])(_0x399d24(0x696),{'children':[(0x0,d[_0x399d24(0x268)])(_0x399d24(0x664),{'className':_0x399d24(0x606),'children':_0x1dd037['t'](_0x399d24(0x3f3))}),(0x0,d[_0x399d24(0x268)])(m[_0x399d24(0x4bb)],{'unitId':_0x129d48[_0x399d24(0x427)],'subUnitId':_0x129d48[_0x399d24(0x317)],'initialValue':(0x0,p['serializeRangeWithSheet'])(_0x351934,_0x3dd6a6),'maxRangeCount':0x1,'keepSheetReference':!0x0,'supportAcrossSheet':!0x0,'onChange':(_0x55e303,_0x593676)=>_0x5eca68(_0x593676)[_0x399d24(0x30c)](_0xaa8aaa=>{const _0x377f25=_0x399d24;_0x19f3f2['error'](_0x377f25(0x3c3),_0xaa8aaa);})}),_0x220b7e&&(0x0,d[_0x399d24(0x268)])('div',{'className':_0x399d24(0x3b9),'children':_0x220b7e})]});}function gn(_0x3f3c24){const _0x341653=_0x15a2ed;let {pivotTableId:_0x5bfa0e,version:_0x53223e,unitId:_0x4742d6,subUnitId:_0x3f4f43,panelInfo:_0x4b6422}=_0x3f3c24,_0x59ba24=(0x0,i['useDependency'])(t['SheetsPivotTableConfigModel']),_0x2e3306=(0x0,i[_0x341653(0x50b)])(t[_0x341653(0x4cb)]),_0x16c2bf=(0x0,i[_0x341653(0x50b)])(n[_0x341653(0x3f1)]),_0x43ce28=(0x0,f[_0x341653(0x264)])(()=>_0x59ba24['watchPivotTableChanges'](_0x4742d6,_0x3f4f43,_0x5bfa0e)[_0x341653(0x254)]((0x0,o[_0x341653(0x489)])(0x0)),[_0x59ba24,_0x4742d6,_0x3f4f43,_0x5bfa0e]),_0x16094a=(0x0,i['useObservable'])(_0x43ce28),[_0x399878,_0x527fd4]=(0x0,f['useState'])(_0x4b6422),_0x293f61=(0x0,f[_0x341653(0x3c9)])(async()=>{const _0x5160a3=_0x341653;if(!_0x59ba24[_0x5160a3(0x2b6)](_0x4742d6,_0x3f4f43,_0x5bfa0e))return;let _0x46de17=await _0x2e3306[_0x5160a3(0x601)]({'unitId':_0x4742d6,'subUnitId':_0x3f4f43,'pivotTableId':_0x5bfa0e,'params':{'type':t[_0x5160a3(0x498)][_0x5160a3(0x62d)],'panel':{'pivotTableId':_0x5bfa0e}}});_0x46de17['result'][_0x5160a3(0x475)]&&_0x527fd4(_0x46de17[_0x5160a3(0x399)][_0x5160a3(0x475)]);},[_0x59ba24,_0x5bfa0e,_0x2e3306,_0x3f4f43,_0x4742d6]);return(0x0,f[_0x341653(0x58b)])(()=>{const _0x155f48=_0x341653;_0x293f61()[_0x155f48(0x30c)](_0x225f99=>_0x16c2bf[_0x155f48(0x4de)](_0x155f48(0x6e1),_0x225f99));},[_0x16094a,_0x16c2bf,_0x293f61,_0x53223e]),(0x0,d['jsxs'])(_0x341653(0x664),{'className':_0x341653(0x420),'children':[(0x0,d[_0x341653(0x268)])(hn,{'sourceRangeInfo':_0x399878[_0x341653(0x4e7)],'positionInfo':_0x399878[_0x341653(0x3e3)],'pivotTableId':_0x5bfa0e,'refresh':_0x293f61}),(0x0,d['jsx'])(mn,{'info':_0x399878,'pivotTableId':_0x5bfa0e,'unitId':_0x4742d6,'subUnitId':_0x3f4f43,'refresh':_0x293f61}),(0x0,d[_0x341653(0x268)])(un,{'info':_0x399878,'pivotTableId':_0x5bfa0e,'unitId':_0x4742d6,'subUnitId':_0x3f4f43,'refresh':_0x293f61})]});}function _n(_0x2ecb54){const _0x5ac82d=_0x15a2ed;let {className:_0x5dd6b9,unitId:_0x3282ec,subUnitId:_0x441658,pivotTableId:_0x3426d4}=_0x2ecb54,[_0x28d36c,_0x3a4ce5]=(0x0,f[_0x5ac82d(0x6de)])('fields'),_0x15559f=(0x0,i['useDependency'])(n[_0x5ac82d(0x58a)]);return(0x0,d[_0x5ac82d(0x634)])('div',{'className':(0x0,s[_0x5ac82d(0x5fe)])(_0x5ac82d(0x37c),_0x5dd6b9),'dir':_0x15559f['getDirection'](),'children':[(0x0,d[_0x5ac82d(0x268)])(s[_0x5ac82d(0x2fd)],{'className':_0x5ac82d(0x5eb),'items':[{'label':_0x15559f['t'](_0x5ac82d(0x391)),'value':_0x5ac82d(0x59e)},{'label':_0x15559f['t'](_0x5ac82d(0x63d)),'value':_0x5ac82d(0x59f)}],'value':_0x28d36c,'onChange':_0x3a4ce5}),(0x0,d[_0x5ac82d(0x268)])(_0x5ac82d(0x664),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto','children':_0x28d36c==='fields'?(0x0,d[_0x5ac82d(0x268)])(gn,{..._0x2ecb54}):(0x0,d[_0x5ac82d(0x268)])($t,{'unitId':_0x3282ec,'subUnitId':_0x441658,'pivotTableId':_0x3426d4})})]});}function vn(_0xae360e,_0x27f735){const _0x18478c=_0x15a2ed;switch(_0xae360e){case 0x1:return _0x27f735['t'](_0x18478c(0x5ed));case 0x0:return _0x27f735['t'](_0x18478c(0x2bf));default:return'';}}function yn(_0x256d8e){const _0x3d736d=_0x15a2ed;let {unitId:_0x274e08,subUnitId:_0x3ba6aa,sourceRange:_0x117353,positionRange:_0x548bce,sourceSheetName:_0x55f6c7,positionSheetName:_0x3164bb,onConfirm:_0x573837,onCancel:_0x3c5f61}=_0x256d8e,_0x1f6e3a=(0x0,i['useDependency'])(n[_0x3d736d(0x58a)]),_0x4f826b=(0x0,i[_0x3d736d(0x50b)])(n[_0x3d736d(0x4c5)])[_0x3d736d(0x657)](_0x274e08),[_0x4346bb,_0x4d477b]=(0x0,f['useState'])(_0x117353),[_0x255781,_0xae0a75]=(0x0,f[_0x3d736d(0x6de)])(_0x548bce),[_0x458774,_0x2de5d7]=(0x0,f[_0x3d736d(0x6de)])(_0x55f6c7),[_0x19f088,_0x596c87]=(0x0,f['useState'])(_0x3164bb),[_0x3c86be,_0x544e1e]=(0x0,f[_0x3d736d(0x6de)])(t[_0x3d736d(0x348)]['New']),[_0x43a532,_0x27fc17]=(0x0,f[_0x3d736d(0x6de)])(''),[_0x1f6c27,_0x432c7a]=(0x0,f[_0x3d736d(0x6de)])(!0x0);(0x0,f['useEffect'])(()=>{const _0x13614b=_0x3d736d;let _0x36bfdb=yt(_0x4f826b[_0x13614b(0x491)](_0x458774),_0x4346bb);_0x27fc17(vn(_0x36bfdb,_0x1f6e3a));},[_0x1f6e3a,_0x4346bb,_0x458774,_0x4f826b]);function _0x1bb66c(_0x53b63d){const _0x2108d4=_0x3d736d;let _0x1f61a5=_0x53b63d['split'](',')[_0x2108d4(0x3f8)](Boolean)[_0x2108d4(0x611)](p['deserializeRangeWithSheet'])[0x0];_0x1f61a5?(_0x4d477b(_0x1f61a5['range']),_0x2de5d7(_0x1f61a5[_0x2108d4(0x3cf)]||_0x458774)):_0x27fc17(_0x1f6e3a['t'](_0x2108d4(0x2bf)));}function _0x195dcb(_0x426ebb){const _0xaa871c=_0x3d736d;let _0x3368b9=_0x426ebb[_0xaa871c(0x66c)](',')[_0xaa871c(0x3f8)](Boolean)[_0xaa871c(0x611)](p['deserializeRangeWithSheet'])[0x0];if(!_0x3368b9){_0xae0a75(null);return;}let _0x39af04=_0x3368b9[_0xaa871c(0x3cf)]||_0x55f6c7;_0xae0a75(_0x3368b9[_0xaa871c(0x242)]),_0x596c87(_0x39af04),_0x432c7a(_0x39af04!==_0x458774||!n[_0xaa871c(0x461)]['intersects'](_0x3368b9['range'],_0x4346bb));}function _0x2e5928(){const _0x473761=_0x3d736d;if(_0x43a532)return;let _0x56045b;if(_0x3c86be===t[_0x473761(0x348)][_0x473761(0x258)]){if(!_0x255781||!_0x1f6c27)return;_0x56045b={'sourceRange':_0x4346bb,'sourceSheetName':_0x458774,'positionRange':_0x255781,'positionSheetName':_0x19f088,'positionType':_0x3c86be};}else _0x56045b={'sourceRange':_0x4346bb,'sourceSheetName':_0x458774,'positionType':_0x3c86be};_0x573837(_0x56045b);}return(0x0,d['jsxs'])(_0x3d736d(0x664),{'className':_0x3d736d(0x6d4),'dir':_0x1f6e3a['getDirection'](),'children':[(0x0,d['jsxs'])('section',{'children':[(0x0,d[_0x3d736d(0x268)])(_0x3d736d(0x664),{'className':_0x3d736d(0x606),'children':_0x1f6e3a['t'](_0x3d736d(0x685))}),(0x0,d[_0x3d736d(0x268)])(m[_0x3d736d(0x4bb)],{'unitId':_0x274e08,'subUnitId':_0x3ba6aa,'initialValue':(0x0,p[_0x3d736d(0x388)])(_0x458774,_0x4346bb),'maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'onChange':(_0x2fedac,_0x4e5f2e)=>_0x1bb66c(_0x4e5f2e)}),_0x43a532&&(0x0,d[_0x3d736d(0x268)])(_0x3d736d(0x664),{'className':_0x3d736d(0x3b9),'children':_0x43a532})]}),(0x0,d[_0x3d736d(0x634)])('section',{'children':[(0x0,d[_0x3d736d(0x268)])(_0x3d736d(0x664),{'className':_0x3d736d(0x606),'children':_0x1f6e3a['t']('sheets-pivot-ui.dialog.source.position')}),(0x0,d[_0x3d736d(0x634)])(s['RadioGroup'],{'className':_0x3d736d(0x6b1),'value':_0x3c86be,'onChange':_0x2665b7=>_0x544e1e(_0x2665b7),'children':[(0x0,d['jsx'])(s[_0x3d736d(0x1ff)],{'value':t[_0x3d736d(0x348)]['New'],'children':_0x1f6e3a['t'](_0x3d736d(0x43c))}),(0x0,d[_0x3d736d(0x268)])(s[_0x3d736d(0x1ff)],{'value':t[_0x3d736d(0x348)][_0x3d736d(0x258)],'children':_0x1f6e3a['t'](_0x3d736d(0x269))})]}),_0x3c86be===t[_0x3d736d(0x348)][_0x3d736d(0x258)]&&(0x0,d[_0x3d736d(0x634)])(_0x3d736d(0x664),{'className':'univer-mt-3','children':[(0x0,d[_0x3d736d(0x268)])(m[_0x3d736d(0x4bb)],{'unitId':_0x274e08,'subUnitId':_0x3ba6aa,'initialValue':_0x255781?(0x0,p[_0x3d736d(0x388)])(_0x19f088,_0x255781):'','maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0,'onChange':(_0xdb2cf,_0x464938)=>_0x195dcb(_0x464938)}),!_0x1f6c27&&(0x0,d[_0x3d736d(0x268)])(_0x3d736d(0x664),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-red-500','children':_0x1f6e3a['t'](_0x3d736d(0x5b9))})]})]}),(0x0,d[_0x3d736d(0x634)])(s[_0x3d736d(0x60f)],{'children':[(0x0,d[_0x3d736d(0x268)])(s['Button'],{'onClick':_0x3c5f61,'size':_0x3d736d(0x4e6),'children':_0x1f6e3a['t']('sheets-pivot-ui.dialog.cancel')}),(0x0,d[_0x3d736d(0x268)])(s['Button'],{'variant':_0x3d736d(0x3e0),'onClick':_0x2e5928,'size':_0x3d736d(0x4e6),'children':_0x1f6e3a['t']('sheets-pivot-ui.dialog.ok')})]})]});}let bn=class extends n['Disposable']{constructor(_0x222d42,_0x306c7e){const _0x5989d4=_0x15a2ed;super(),[[A,yn],[_,_n],[y,Jt],[x,qt],[C,Kt],[j,ut]]['forEach'](([_0x2cc6b5,_0x379608])=>{const _0x423026=_0x1940;this[_0x423026(0x28d)](_0x222d42[_0x423026(0x3ce)](_0x2cc6b5,_0x379608));}),this[_0x5989d4(0x28d)](_0x306c7e['register']({'PivotTableIcon':u[_0x5989d4(0x640)]}));}};bn=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(i[_0x15a2ed(0x33f)])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(i[_0x15a2ed(0x5a3)]))],bn);function xn(_0x5c29e9){const _0x22aef6=_0x15a2ed;return{'id':N['id'],'commandId':N['id'],'type':i[_0x22aef6(0x4a5)][_0x22aef6(0x5f5)],'icon':_0x22aef6(0x640),'title':_0x22aef6(0x621),'tooltip':'sheets-pivot-ui.title','hidden$':(0x0,i['getMenuHiddenObservable'])(_0x5c29e9,n[_0x22aef6(0x243)][_0x22aef6(0x1d6)]),'disabled$':(0x0,a[_0x22aef6(0x650)])(_0x5c29e9,(0x0,a['getCurrentRangeDisable$'])(_0x5c29e9,{'workbookTypes':[r[_0x22aef6(0x708)]],'worksheetTypes':[r[_0x22aef6(0x1f9)],r['WorksheetPivotTablePermission']],'rangeTypes':[r[_0x22aef6(0x414)]]}))};}const Sn={[i['RibbonDataGroup']['ORGANIZATION']]:{[N['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1},'menuItemFactory':xn}},[i[_0x15a2ed(0x36d)]['MAIN_AREA']]:{[i[_0x15a2ed(0x6e3)]['DATA']]:{[N['id']]:{'order':0x1,'menuItemFactory':xn}}}};let Cn=class extends n[_0x15a2ed(0x360)]{constructor(_0x392440){const _0x43aa15=_0x15a2ed;super(),_0x392440[_0x43aa15(0x57f)](Sn);}};Cn=K([G(0x0,i[_0x15a2ed(0x568)])],Cn);let wn=class extends n[_0x15a2ed(0x360)]{constructor(_0x4b4551,_0x1945a0,_0x264519,_0x4cce03){const _0x244e50=_0x15a2ed;super(),this[_0x244e50(0x44f)]=_0x264519,this[_0x244e50(0x1e0)]=_0x4cce03,W(this,'_pivotTableId',null),this[_0x244e50(0x28d)](_0x4b4551['onCommandExecuted'](_0x533e76=>{const _0x1156b3=_0x244e50;_0x533e76['id']===it['id']?this['_pivotTableId']=_0x533e76['params'][_0x1156b3(0x260)]:_0x533e76['id']===t[_0x1156b3(0x6c5)]['id']&&_0x533e76['params'][_0x1156b3(0x260)]===this[_0x1156b3(0x4e8)]&&this[_0x1156b3(0x27f)]();}));let _0x382afb=_0x1945a0['getCurrentUnitOfType'](n['UniverInstanceType'][_0x244e50(0x1d6)]);_0x382afb&&(this[_0x244e50(0x28d)](_0x382afb[_0x244e50(0x4d8)][_0x244e50(0x254)]((0x0,o[_0x244e50(0x578)])(0x1))[_0x244e50(0x6f3)](()=>this[_0x244e50(0x27f)]())),this[_0x244e50(0x28d)](_0x382afb['sheetDisposed$'][_0x244e50(0x6f3)](()=>this[_0x244e50(0x27f)]()))),this[_0x244e50(0x28d)](this['_sidebarService'][_0x244e50(0x335)][_0x244e50(0x6f3)](_0x438d64=>{const _0x16f49c=_0x244e50;_0x438d64['id']==='UNIVER_SHEET_PIVOT_PANEL_ID'&&_0x438d64[_0x16f49c(0x468)]===!0x1&&(this[_0x16f49c(0x4e8)]=null,this[_0x16f49c(0x36a)]());}));}[_0x15a2ed(0x27f)](){const _0xad963=_0x15a2ed;this[_0xad963(0x4e8)]=null,this[_0xad963(0x44f)]['close'](v),this['_closeChildDialogs']();}['_closeChildDialogs'](){const _0x5b6c16=_0x15a2ed;this[_0x5b6c16(0x1e0)][_0x5b6c16(0x3ff)](b),this[_0x5b6c16(0x1e0)]['close'](S),this['_dialogService'][_0x5b6c16(0x3ff)](w);}};wn=K([G(0x0,n[_0x15a2ed(0x256)]),G(0x1,n[_0x15a2ed(0x4c5)]),G(0x2,i[_0x15a2ed(0x572)]),G(0x3,i[_0x15a2ed(0x3fe)])],wn),new Path2D(_0x15a2ed(0x639));var Y=class{static['drawNoSetting'](_0x5ef242,_0xc20743,_0x6ff86a,_0x34359b){const _0x346337=_0x15a2ed;_0x5ef242[_0x346337(0x27a)](),l['Rect']['drawWith'](_0x5ef242,{'radius':0x2,'width':0x10,'height':0x10,'fill':_0x34359b}),_0x5ef242['lineCap']=_0x346337(0x5e4),_0x5ef242[_0x346337(0x415)]=_0x6ff86a,_0x5ef242[_0x346337(0x208)](_0xc20743/0x10,_0xc20743/0x10),_0x5ef242['beginPath'](),_0x5ef242[_0x346337(0x45e)]=0x1,_0x5ef242['lineCap']=_0x346337(0x4ba),_0x5ef242[_0x346337(0x504)](0x3,0x4),_0x5ef242['lineTo'](0xd,0x4),_0x5ef242[_0x346337(0x504)](4.5,0x8),_0x5ef242['lineTo'](11.5,0x8),_0x5ef242[_0x346337(0x504)](0x6,0xc),_0x5ef242['lineTo'](0xa,0xc),_0x5ef242[_0x346337(0x69c)](),_0x5ef242[_0x346337(0x546)]();}static[_0x15a2ed(0x40a)](_0x3968a2,_0x50c02b,_0x4c8dc7,_0x2d716b,_0x4ff0d1){const _0x57c058=_0x15a2ed;let _0x4d4f09=(_0x4ff0d1-_0x50c02b)/0x2;_0x3968a2[_0x57c058(0x27a)](),_0x3968a2[_0x57c058(0x1dd)]=_0x2d716b,_0x3968a2['strokeStyle']=_0x4c8dc7,_0x3968a2[_0x57c058(0x4fe)](),_0x3968a2['moveTo'](0x6,_0x4d4f09),_0x3968a2[_0x57c058(0x231)](0x4+_0x50c02b-0x2,_0x4d4f09),_0x3968a2[_0x57c058(0x5f7)](0x4+_0x50c02b,_0x4d4f09,0x4+_0x50c02b,_0x4d4f09+0x2,0x2),_0x3968a2[_0x57c058(0x231)](0x4+_0x50c02b,_0x4d4f09+_0x50c02b-0x2),_0x3968a2[_0x57c058(0x5f7)](0x4+_0x50c02b,_0x4d4f09+_0x50c02b,0x4+_0x50c02b-0x2,_0x4d4f09+_0x50c02b,0x2),_0x3968a2['lineTo'](0x6,_0x4d4f09+_0x50c02b),_0x3968a2[_0x57c058(0x5f7)](0x4,_0x4d4f09+_0x50c02b,0x4,_0x4d4f09+_0x50c02b-0x2,0x2),_0x3968a2[_0x57c058(0x231)](0x4,_0x4d4f09+0x2),_0x3968a2[_0x57c058(0x5f7)](0x4,_0x4d4f09,0x6,_0x4d4f09,0x2),_0x3968a2['closePath'](),_0x3968a2['stroke'](),_0x3968a2[_0x57c058(0x50a)](),_0x3968a2[_0x57c058(0x4fe)](),_0x3968a2[_0x57c058(0x504)](0x4+_0x50c02b/0x2,_0x4d4f09+0x2),_0x3968a2[_0x57c058(0x231)](0x4+_0x50c02b/0x2,_0x4d4f09+_0x50c02b-0x2),_0x3968a2[_0x57c058(0x504)](0x6,_0x4d4f09+_0x50c02b/0x2),_0x3968a2[_0x57c058(0x231)](0x4+_0x50c02b-0x2,_0x4d4f09+_0x50c02b/0x2),_0x3968a2[_0x57c058(0x69c)](),_0x3968a2[_0x57c058(0x546)]();}static['drawCollapse'](_0x10d8c7,_0x2ff7c3,_0x589e81,_0x24facc,_0x54654d){const _0x2d733b=_0x15a2ed;let _0x48e16e=(_0x54654d-_0x2ff7c3)/0x2;_0x10d8c7['save'](),_0x10d8c7[_0x2d733b(0x1dd)]=_0x24facc,_0x10d8c7[_0x2d733b(0x415)]=_0x589e81,_0x10d8c7[_0x2d733b(0x4fe)](),_0x10d8c7[_0x2d733b(0x504)](0x6,_0x48e16e),_0x10d8c7['lineTo'](0x4+_0x2ff7c3-0x2,_0x48e16e),_0x10d8c7[_0x2d733b(0x5f7)](0x4+_0x2ff7c3,_0x48e16e,0x4+_0x2ff7c3,_0x48e16e+0x2,0x2),_0x10d8c7[_0x2d733b(0x231)](0x4+_0x2ff7c3,_0x48e16e+_0x2ff7c3-0x2),_0x10d8c7[_0x2d733b(0x5f7)](0x4+_0x2ff7c3,_0x48e16e+_0x2ff7c3,0x4+_0x2ff7c3-0x2,_0x48e16e+_0x2ff7c3,0x2),_0x10d8c7[_0x2d733b(0x231)](0x6,_0x48e16e+_0x2ff7c3),_0x10d8c7['arcTo'](0x4,_0x48e16e+_0x2ff7c3,0x4,_0x48e16e+_0x2ff7c3-0x2,0x2),_0x10d8c7[_0x2d733b(0x231)](0x4,_0x48e16e+0x2),_0x10d8c7[_0x2d733b(0x5f7)](0x4,_0x48e16e,0x6,_0x48e16e,0x2),_0x10d8c7[_0x2d733b(0x422)](),_0x10d8c7[_0x2d733b(0x50a)](),_0x10d8c7[_0x2d733b(0x69c)](),_0x10d8c7[_0x2d733b(0x4fe)](),_0x10d8c7[_0x2d733b(0x504)](0x6,_0x48e16e+_0x2ff7c3/0x2),_0x10d8c7[_0x2d733b(0x231)](0x4+_0x2ff7c3-0x2,_0x48e16e+_0x2ff7c3/0x2),_0x10d8c7[_0x2d733b(0x69c)](),_0x10d8c7['restore']();}static[_0x15a2ed(0x320)](_0x3787f9,_0x50c962,_0x3583e9,_0xb0fcf1){const _0x50e3c8=_0x15a2ed;_0x3787f9[_0x50e3c8(0x27a)](),_0x3787f9[_0x50e3c8(0x415)]=_0x3583e9,_0x3787f9[_0x50e3c8(0x1dd)]=_0xb0fcf1,l['Rect'][_0x50e3c8(0x5f6)](_0x3787f9,{'radius':0x2,'width':0x10,'height':0x10,'fill':_0xb0fcf1}),_0x50c962[_0x50e3c8(0x567)](_0x1ccf43=>{const _0x3171ef=_0x50e3c8;let _0x178187=new Path2D(_0x1ccf43);_0x3787f9[_0x3171ef(0x1dd)]=_0x3583e9,_0x3787f9[_0x3171ef(0x50a)](_0x178187,_0x3171ef(0x5f9));}),_0x3787f9['restore']();}};const Tn=['M3.30363\x203C2.79117\x203\x202.51457\x203.60097\x202.84788\x203.99024L6.8\x208.60593V12.5662C6.8\x2012.7184\x206.8864\x2012.8575\x207.02289\x2012.9249L8.76717\x2013.7863C8.96655\x2013.8847\x209.2\x2013.7396\x209.2\x2013.5173V8.60593L13.1521\x203.99024C13.4854\x203.60097\x2013.2088\x203\x2012.6964\x203H3.30363Z'],En=[_0x15a2ed(0x3fd),_0x15a2ed(0x448)],Dn=['M12.4008\x202.81641C12.6907\x202.81641\x2012.9258\x203.05146\x2012.9258\x203.34141V11.3908L14.013\x2010.3036C14.218\x2010.0986\x2014.5505\x2010.0986\x2014.7555\x2010.3036C14.9605\x2010.5086\x2014.9605\x2010.841\x2014.7555\x2011.046L12.7721\x2013.0294C12.5671\x2013.2344\x2012.2347\x2013.2344\x2012.0297\x2013.0294L10.0463\x2011.046C9.84132\x2010.841\x209.84132\x2010.5086\x2010.0463\x2010.3036C10.2514\x2010.0986\x2010.5838\x2010.0986\x2010.7888\x2010.3036L11.8758\x2011.3905V3.34141C11.8758\x203.05146\x2012.1108\x202.81641\x2012.4008\x202.81641Z',_0x15a2ed(0x49c)],On=[_0x15a2ed(0x2f4),_0x15a2ed(0x705),_0x15a2ed(0x262)],kn=['M11.9003\x202.29495C11.9003\x202.00261\x2011.6633\x201.76562\x2011.371\x201.76562C11.0787\x201.76562\x2010.8417\x202.00261\x2010.8417\x202.29495V12.4268L9.74577\x2011.3309C9.53906\x2011.1242\x209.20391\x2011.1242\x208.9972\x2011.3309C8.79048\x2011.5376\x208.79048\x2011.8727\x208.9972\x2012.0795L10.9969\x2014.0791C11.2036\x2014.2858\x2011.5387\x2014.2858\x2011.7454\x2014.0791L13.7451\x2012.0795C13.9518\x2011.8727\x2013.9518\x2011.5376\x2013.7451\x2011.3309C13.5384\x2011.1242\x2013.2032\x2011.1242\x2012.9965\x2011.3309L11.9003\x2012.4271V2.29495Z','M2.69792\x2010.0113C2.40558\x2010.0113\x202.16859\x209.77429\x202.16859\x209.48196C2.16859\x209.18962\x202.40558\x208.95264\x202.69792\x208.95264H6.67816C6.89225\x208.95264\x207.08526\x209.0816\x207.16719\x209.2794C7.24912\x209.47719\x207.20384\x209.70486\x207.05245\x209.85624L3.97581\x2012.9329H6.67816C6.9705\x2012.9329\x207.20749\x2013.1699\x207.20749\x2013.4622C7.20749\x2013.7545\x206.9705\x2013.9915\x206.67816\x2013.9915H2.69792C2.48383\x2013.9915\x202.29082\x2013.8626\x202.20889\x2013.6648C2.12696\x2013.467\x202.17224\x2013.2393\x202.32363\x2013.0879L5.40027\x2010.0113H2.69792Z',_0x15a2ed(0x5aa)],An=new Set([e[_0x15a2ed(0x20b)][_0x15a2ed(0x571)],e[_0x15a2ed(0x20b)][_0x15a2ed(0x41f)],e[_0x15a2ed(0x20b)]['FilterSingle'],e[_0x15a2ed(0x20b)][_0x15a2ed(0x55c)],e[_0x15a2ed(0x20b)][_0x15a2ed(0x2f1)],e[_0x15a2ed(0x20b)]['FilteredSortDesc'],e[_0x15a2ed(0x20b)][_0x15a2ed(0x2e3)],e[_0x15a2ed(0x20b)][_0x15a2ed(0x3d7)],e[_0x15a2ed(0x20b)]['FilterNoneSortDesc']]),jn=new Set([e[_0x15a2ed(0x20b)]['Expand'],e[_0x15a2ed(0x20b)][_0x15a2ed(0x253)]]);let Mn=class extends l[_0x15a2ed(0x5e1)]{constructor(_0x2b3233,_0x2abef8,_0x33290b,_0x2dcb30){const _0x403b32=_0x15a2ed;super(_0x2b3233,_0x2abef8),this[_0x403b32(0x549)]=_0x33290b,this[_0x403b32(0x6da)]=_0x2dcb30,W(this,_0x403b32(0x675),0x0),W(this,_0x403b32(0x5cf),0x0),W(this,_0x403b32(0x718),!0x1),W(this,_0x403b32(0x1e5),void 0x0),this[_0x403b32(0x35c)](_0x2abef8),this[_0x403b32(0x5da)][_0x403b32(0x6f4)](_0x40d2b9=>this[_0x403b32(0x6f0)](_0x40d2b9)),this[_0x403b32(0x6ce)][_0x403b32(0x6f4)](()=>this[_0x403b32(0x6b9)]()),this[_0x403b32(0x586)][_0x403b32(0x6f4)](()=>this[_0x403b32(0x234)]());}[_0x15a2ed(0x35c)](_0xdd876){const _0x4494ad=_0x15a2ed;_0xdd876[_0x4494ad(0x295)]!==void 0x0&&(this['_cellHeight']=_0xdd876['cellHeight']),_0xdd876[_0x4494ad(0x4ed)]!==void 0x0&&(this[_0x4494ad(0x675)]=_0xdd876['cellWidth']),_0xdd876[_0x4494ad(0x2b4)]!==void 0x0&&(this[_0x4494ad(0x1e5)]=_0xdd876[_0x4494ad(0x2b4)]),this[_0x4494ad(0x26a)]({'width':_0xdd876[_0x4494ad(0x5c7)],'height':_0xdd876[_0x4494ad(0x46b)]});}[_0x15a2ed(0x6f0)](_0x39e971){const _0x2441c2=_0x15a2ed;if(_0x39e971[_0x2441c2(0x535)]===0x2)return;let {col:_0x38c988,row:_0x56739b,unitId:_0x390d90,subUnitId:_0x4aec69,buttonType:_0xcd3fe9}=this[_0x2441c2(0x1e5)];An[_0x2441c2(0x565)](_0xcd3fe9)?setTimeout(()=>{const _0x20accf=_0x2441c2;this['_commandService'][_0x20accf(0x2f0)](tt['id'],{'row':_0x56739b,'col':_0x38c988,'unitId':_0x390d90,'subUnitId':_0x4aec69});},0xc8):this[_0x2441c2(0x549)][_0x2441c2(0x2f0)](t[_0x2441c2(0x361)]['id'],{'row':_0x56739b,'col':_0x38c988,'unitId':_0x390d90,'subUnitId':_0x4aec69,'collapse':_0xcd3fe9===e[_0x2441c2(0x20b)][_0x2441c2(0x5ca)]});}[_0x15a2ed(0x6b9)](){const _0x3623c0=_0x15a2ed;this[_0x3623c0(0x718)]=!0x0,this[_0x3623c0(0x38c)](l[_0x3623c0(0x239)][_0x3623c0(0x4b1)]),this['makeDirty'](!0x0);}[_0x15a2ed(0x234)](){const _0x433050=_0x15a2ed;this[_0x433050(0x718)]=!0x1,this[_0x433050(0x38c)](l[_0x433050(0x239)][_0x433050(0x338)]),this[_0x433050(0x36f)](!0x0);}[_0x15a2ed(0x365)](_0x5ba975){const _0x200ba9=_0x15a2ed;var _0xaa4ac7,_0xa44d1d;if(!((_0xaa4ac7=this[_0x200ba9(0x1e5)])!=null&&_0xaa4ac7[_0x200ba9(0x4b3)]))return;let _0x56670c=this['_themeService'][_0x200ba9(0x44e)](_0x200ba9(0x4cf)),_0xa2b274=this[_0x200ba9(0x6da)]['getColorFromTheme'](_0x200ba9(0x1de));_0x5ba975[_0x200ba9(0x27a)]();let _0x1b0609=new Path2D();_0x1b0609[_0x200ba9(0x2c9)](0x0,0x0,this['_cellWidth'],this[_0x200ba9(0x5cf)]),_0x5ba975[_0x200ba9(0x5e2)](_0x1b0609),((_0xa44d1d=this[_0x200ba9(0x1e5)])==null?void 0x0:_0xa44d1d['buttonType'])===e[_0x200ba9(0x20b)]['Collapse']?Y[_0x200ba9(0x40a)](_0x5ba975,0xc,_0x56670c,_0xa2b274,this[_0x200ba9(0x5cf)]):this[_0x200ba9(0x1e5)][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x5ca)]?Y['drawCollapse'](_0x5ba975,0xc,_0x56670c,_0xa2b274,this['_cellHeight']):this['_pivotParams'][_0x200ba9(0x4b3)]===e['PivotCellStyleTypeEnum'][_0x200ba9(0x571)]||this[_0x200ba9(0x1e5)]['buttonType']===e[_0x200ba9(0x20b)]['FilterNoneSortNone']?Y[_0x200ba9(0x669)](_0x5ba975,0x10,_0x56670c,_0xa2b274):this[_0x200ba9(0x1e5)][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x41f)]||this['_pivotParams'][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)]['FilterSingle']||this[_0x200ba9(0x1e5)][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x2e3)]?Y[_0x200ba9(0x320)](_0x5ba975,Tn,_0x56670c,_0xa2b274):this[_0x200ba9(0x1e5)]['buttonType']===e['PivotCellStyleTypeEnum'][_0x200ba9(0x3d7)]?Y[_0x200ba9(0x320)](_0x5ba975,On,_0x56670c,_0xa2b274):this[_0x200ba9(0x1e5)][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x678)]?Y[_0x200ba9(0x320)](_0x5ba975,kn,_0x56670c,_0xa2b274):this[_0x200ba9(0x1e5)][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x2f1)]?Y[_0x200ba9(0x320)](_0x5ba975,En,_0x56670c,_0xa2b274):this['_pivotParams'][_0x200ba9(0x4b3)]===e[_0x200ba9(0x20b)][_0x200ba9(0x1f8)]&&Y[_0x200ba9(0x320)](_0x5ba975,Dn,_0x56670c,_0xa2b274),_0x5ba975[_0x200ba9(0x546)]();}};Mn=K([G(0x2,n[_0x15a2ed(0x256)]),G(0x3,(0x0,n['Inject'])(n['ThemeService']))],Mn);let Nn=class extends l[_0x15a2ed(0x5e1)]{constructor(_0x132f62,_0x3a6b56,_0x3538c0,_0x112595){const _0x275c89=_0x15a2ed;super(_0x132f62,_0x3a6b56),this[_0x275c89(0x549)]=_0x3538c0,this['_themeService']=_0x112595,W(this,'_cellWidth',void 0x0),W(this,_0x275c89(0x5cf),void 0x0),W(this,'_pivotParams',void 0x0),this['_cellWidth']=_0x3a6b56[_0x275c89(0x4ed)],this[_0x275c89(0x5cf)]=_0x3a6b56['cellHeight'],this[_0x275c89(0x1e5)]=_0x3a6b56[_0x275c89(0x2b4)],this[_0x275c89(0x26a)]({'width':_0x3a6b56[_0x275c89(0x5c7)],'height':_0x3a6b56[_0x275c89(0x46b)]}),this[_0x275c89(0x30e)][_0x275c89(0x6f4)](_0x521909=>this[_0x275c89(0x437)](_0x521909));}[_0x15a2ed(0x437)](_0x2f9cc0){const _0x563127=_0x15a2ed;if(_0x2f9cc0[_0x563127(0x535)]===0x2)return;let {col:_0x3e2df5,row:_0x5025aa,unitId:_0x3c84d6,subUnitId:_0x35635b,buttonType:_0x49b07e}=this[_0x563127(0x1e5)];if(An[_0x563127(0x565)](_0x49b07e))return this[_0x563127(0x549)][_0x563127(0x2f0)](tt['id'],{'row':_0x5025aa,'col':_0x3e2df5,'unitId':_0x3c84d6,'subUnitId':_0x35635b});if(jn[_0x563127(0x565)](_0x49b07e))return this['_commandService'][_0x563127(0x2f0)](t[_0x563127(0x361)]['id'],{'row':_0x5025aa,'col':_0x3e2df5,'unitId':_0x3c84d6,'subUnitId':_0x35635b,'collapse':_0x49b07e===e[_0x563127(0x20b)]['Expand']});}[_0x15a2ed(0x365)](_0x5eba5e){const _0x184325=_0x15a2ed;let _0x1970a5=this['_pivotParams']['buttonType'],_0x39786c=this[_0x184325(0x6da)]['getColorFromTheme'](_0x184325(0x4cf)),_0x25649d=this[_0x184325(0x6da)][_0x184325(0x44e)]('gray.50');_0x5eba5e[_0x184325(0x27a)]();let _0x4d9a70=new Path2D();_0x4d9a70['rect'](0x0,0x0,this[_0x184325(0x675)],this[_0x184325(0x5cf)]),_0x5eba5e[_0x184325(0x5e2)](_0x4d9a70),_0x5eba5e['translate'](0x6,0x6),_0x1970a5===e[_0x184325(0x20b)][_0x184325(0x253)]?Y[_0x184325(0x40a)](_0x5eba5e,0xc,_0x39786c,_0x25649d,this[_0x184325(0x5cf)]):_0x1970a5===e[_0x184325(0x20b)]['Expand']?Y[_0x184325(0x26f)](_0x5eba5e,0xc,_0x39786c,_0x25649d,this[_0x184325(0x5cf)]):_0x1970a5===e[_0x184325(0x20b)][_0x184325(0x571)]||_0x1970a5===e[_0x184325(0x20b)][_0x184325(0x55c)]?Y[_0x184325(0x669)](_0x5eba5e,0x10,_0x39786c,_0x25649d):_0x1970a5===e['PivotCellStyleTypeEnum'][_0x184325(0x41f)]||_0x1970a5===e[_0x184325(0x20b)]['FilterSingle']||_0x1970a5===e[_0x184325(0x20b)]['FilteredSortNone']?Y[_0x184325(0x320)](_0x5eba5e,Tn,_0x39786c,_0x25649d):_0x1970a5===e[_0x184325(0x20b)]['FilterNoneSortAsc']?Y[_0x184325(0x320)](_0x5eba5e,On,_0x39786c,_0x25649d):_0x1970a5===e[_0x184325(0x20b)]['FilterNoneSortDesc']?Y[_0x184325(0x320)](_0x5eba5e,kn,_0x39786c,_0x25649d):_0x1970a5===e[_0x184325(0x20b)]['FilteredSortAsc']?Y[_0x184325(0x320)](_0x5eba5e,En,_0x39786c,_0x25649d):_0x1970a5===e[_0x184325(0x20b)][_0x184325(0x1f8)]&&Y[_0x184325(0x320)](_0x5eba5e,Dn,_0x39786c,_0x25649d),_0x5eba5e[_0x184325(0x546)]();}};Nn=K([G(0x2,n['ICommandService']),G(0x3,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x1e4)]))],Nn);function Pn(_0x2ca9e2,_0x4edc05,_0x57a6dc){const _0x4cae24=_0x15a2ed;let {startX:_0x1a3e8d,startY:_0x2e2380,endX:_0x11e642,endY:_0x2b4ca9}=_0x57a6dc;return{'left':(_0x4edc05===_0x4cae24(0x3f8)?_0x2ca9e2!==_0x4cae24(0x369):_0x2ca9e2==='rtl')?_0x11e642-0x10-0x1:_0x1a3e8d+0x1,'top':_0x4edc05===_0x4cae24(0x3f8)?_0x2b4ca9-0x10-0x1:_0x2e2380+0x1};}let Fn=class extends n[_0x15a2ed(0x360)]{constructor(_0x228e41,_0x33a94e,_0x9b8b69,_0xe83c22,_0x47cbdb,_0x5c686b,_0x14d4da,_0x574890,_0x5de964,_0x2d9b6b){const _0x3e97a6=_0x15a2ed;super(),this[_0x3e97a6(0x467)]=_0x228e41,this[_0x3e97a6(0x4eb)]=_0x33a94e,this[_0x3e97a6(0x3fa)]=_0x9b8b69,this['_skeletonManagerService']=_0xe83c22,this['_configModel']=_0x47cbdb,this[_0x3e97a6(0x57a)]=_0x5c686b,this[_0x3e97a6(0x2aa)]=_0x14d4da,this[_0x3e97a6(0x54d)]=_0x574890,this[_0x3e97a6(0x1e0)]=_0x5de964,this[_0x3e97a6(0x712)]=_0x2d9b6b,W(this,_0x3e97a6(0x40d),[]),this['_initContextMenu'](),this[_0x3e97a6(0x410)](),this['_initSkeleton']();}['dispose'](){const _0x33be8f=_0x15a2ed;this[_0x33be8f(0x5f4)](),super['dispose']();}[_0x15a2ed(0x5f4)](){const _0x443970=_0x15a2ed;this[_0x443970(0x40d)][_0x443970(0x567)](_0x323bf2=>_0x323bf2[_0x443970(0x5d3)]()),this[_0x443970(0x40d)][_0x443970(0x714)]=0x0;}[_0x15a2ed(0x69d)](){const _0xa6dc81=_0x15a2ed;if(!this[_0xa6dc81(0x712)])return;let _0x2f3c76=this[_0xa6dc81(0x712)][_0xa6dc81(0x5a4)]['intercept'](a['MOBILE_CONTEXT_MENU'],{'handler':(_0x168782,_0x13de6a,_0x408a5c)=>{const _0x46d865=_0xa6dc81;if(_0x168782||_0x13de6a[_0x46d865(0x1c3)]!==i[_0x46d865(0x36d)][_0x46d865(0x3e7)])return _0x408a5c(_0x168782);let {col:_0x242ff0,row:_0x3141a7,subUnitId:_0x9024b3,unitId:_0x1ffed2}=_0x13de6a;if(_0x242ff0==null||_0x3141a7==null)return _0x408a5c(_0x168782);let _0xf5e837=this['_adaptorModel'][_0x46d865(0x56f)](_0x1ffed2,_0x9024b3,_0x3141a7,_0x242ff0);return _0xf5e837?(this['_openPivotActionPanel'](_0x1ffed2,_0x9024b3,_0xf5e837,_0x3141a7,_0x242ff0),!0x0):_0x408a5c(_0x168782);}});this[_0xa6dc81(0x28d)]((0x0,n[_0xa6dc81(0x3ec)])(_0x2f3c76));}[_0x15a2ed(0x37b)](_0x35054c,_0x168ccd,_0x1abee3,_0x216f81,_0x4977a0){const _0x369b4e=_0x15a2ed;let _0x57c49b=this[_0x369b4e(0x57a)][_0x369b4e(0x494)]({'workbookTypes':[r[_0x369b4e(0x708)]],'worksheetTypes':[r[_0x369b4e(0x67d)]],'rangeTypes':[r[_0x369b4e(0x4af)]]},[{'startRow':_0x216f81,'endRow':_0x216f81,'startColumn':_0x4977a0,'endColumn':_0x4977a0}],_0x35054c,_0x168ccd);this[_0x369b4e(0x1e0)][_0x369b4e(0x1cb)]({'id':M,'title':{'title':this[_0x369b4e(0x54d)]['t']('sheets-pivot-ui.title')},'children':{'label':{'name':j,'props':{'editable':_0x57c49b,'pivotTableId':_0x1abee3,'subUnitId':_0x168ccd,'unitId':_0x35054c}}},'onClose':()=>this['_dialogService'][_0x369b4e(0x3ff)](M)});}[_0x15a2ed(0x410)](){const _0x3a0069=_0x15a2ed;this[_0x3a0069(0x28d)]((0x0,o[_0x3a0069(0x68a)])(this[_0x3a0069(0x3fa)]['viewUpdate$'][_0x3a0069(0x254)]((0x0,o[_0x3a0069(0x58f)])(0x0)),this[_0x3a0069(0x3d0)][_0x3a0069(0x4c2)],this['_configModel']['pivotConfigChange$'],this['_permissionService'][_0x3a0069(0x3b8)][_0x3a0069(0x254)]((0x0,o[_0x3a0069(0x58f)])(0x64)))[_0x3a0069(0x6f3)](()=>{const _0x1ff31=_0x3a0069;let _0x1063ab=this[_0x1ff31(0x467)][_0x1ff31(0x3c0)],_0xfced63=this['_skeletonManagerService'][_0x1ff31(0x584)]();if(!_0x1063ab||!_0xfced63)return;let _0x2a6028=_0x1063ab[_0x1ff31(0x713)](),_0x199acf=_0x1063ab[_0x1ff31(0x613)](),_0x19a3d6=_0x2a6028[_0x1ff31(0x372)](),_0x5b11eb=this[_0x1ff31(0x54d)][_0x1ff31(0x33e)](),{scene:_0x4621a0}=this[_0x1ff31(0x467)];this['_clearButtons'](),this[_0x1ff31(0x3fa)][_0x1ff31(0x594)](_0x199acf,_0x19a3d6)[_0x1ff31(0x3bb)]((_0x239f9e,_0x65f044,_0x5b5d6c)=>{const _0x5d9d19=_0x1ff31;if(!(_0x5b5d6c!=null&&_0x5b5d6c[_0x5d9d19(0x227)]))return;let {startX:_0x437672,startY:_0x410c8e,endX:_0x3d0e9c,endY:_0x498c9f}=(0x0,a[_0x5d9d19(0x463)])(_0x239f9e,_0x65f044,_0x4621a0,_0xfced63),_0x38ae6b=_0x3d0e9c-_0x437672,_0xbb9592=_0x498c9f-_0x410c8e;if(_0xbb9592<0x8||_0x38ae6b<0x8||!this[_0x5d9d19(0x57a)][_0x5d9d19(0x494)]({'workbookTypes':[r[_0x5d9d19(0x708)]],'worksheetTypes':[r[_0x5d9d19(0x1f9)],r['WorksheetEditPermission'],r['WorksheetPivotTablePermission']],'rangeTypes':[r['RangeProtectionPermissionViewPoint'],r[_0x5d9d19(0x4af)]]},[{'startRow':_0x239f9e,'endRow':_0x239f9e,'startColumn':_0x65f044,'endColumn':_0x65f044}],_0x199acf,_0x19a3d6))return;let _0x1dfe62;if(An[_0x5d9d19(0x565)](_0x5b5d6c[_0x5d9d19(0x227)]))_0x1dfe62=_0x5d9d19(0x3f8);else{if(jn[_0x5d9d19(0x565)](_0x5b5d6c[_0x5d9d19(0x227)]))_0x1dfe62=_0x5d9d19(0x679);else return;}let _0x510b58=Pn(_0x5b11eb,_0x1dfe62,{'startX':_0x437672,'startY':_0x410c8e,'endX':_0x3d0e9c,'endY':_0x498c9f}),_0x5ea466={'left':_0x510b58['left']-0x6,'top':_0x510b58['top']-0x6,'width':0x1c,'height':0x1c,'zIndex':0x1388,'cellWidth':_0x38ae6b,'cellHeight':_0xbb9592,'pivotParams':{'row':_0x239f9e,'col':_0x65f044,'unitId':_0x199acf,'subUnitId':_0x19a3d6,'buttonType':_0x5b5d6c[_0x5d9d19(0x227)]}},_0x86c4de=_0x5d9d19(0x64b)+_0x239f9e+'-'+_0x65f044+'-'+_0x199acf+'-'+_0x19a3d6;this['_buttonShapes']['push'](this[_0x5d9d19(0x4eb)]['createInstance'](Nn,_0x86c4de,_0x5ea466));}),this[_0x1ff31(0x40d)][_0x1ff31(0x714)]&&_0x4621a0[_0x1ff31(0x5cc)](this[_0x1ff31(0x40d)]),_0x4621a0['makeDirty']();}));}[_0x15a2ed(0x375)](){const _0x4c6f94=_0x15a2ed;var _0xe7a0a3;this['disposeWithMe'](this[_0x4c6f94(0x3fa)][_0x4c6f94(0x6fe)]['subscribe'](({unitId:_0xa89ead,subUnitId:_0x1bfcc7})=>{const _0x32286b=_0x4c6f94;if(_0xa89ead===this[_0x32286b(0x467)][_0x32286b(0x427)]&&(this[_0x32286b(0x3d0)][_0x32286b(0x36f)]({'sheetId':_0x1bfcc7}),this[_0x32286b(0x467)][_0x32286b(0x3c0)][_0x32286b(0x713)]()[_0x32286b(0x372)]()===_0x1bfcc7)){var _0x5994ab;this['_skeletonManagerService'][_0x32286b(0x265)](),(_0x5994ab=this['_context'][_0x32286b(0x680)])==null||_0x5994ab[_0x32286b(0x36f)]();}}));let _0x6b22ee=this[_0x4c6f94(0x467)]['unitId'];this[_0x4c6f94(0x467)][_0x4c6f94(0x3c0)][_0x4c6f94(0x54c)]()[_0x4c6f94(0x567)](_0x40a129=>{const _0x243e10=_0x4c6f94;var _0x228c86;let _0x57026d=_0x40a129[_0x243e10(0x372)]();(_0x228c86=this[_0x243e10(0x3fa)][_0x243e10(0x597)](_0x6b22ee,_0x57026d))!=null&&_0x228c86[_0x243e10(0x646)]&&this[_0x243e10(0x3d0)][_0x243e10(0x36f)]({'sheetId':_0x57026d});}),this[_0x4c6f94(0x3d0)]['reCalculate'](),(_0xe7a0a3=this[_0x4c6f94(0x467)][_0x4c6f94(0x680)])==null||_0xe7a0a3[_0x4c6f94(0x36f)]();}};Fn=K([G(0x1,(0x0,n[_0x15a2ed(0x436)])(n['Injector'])),G(0x2,(0x0,n['Inject'])(t['SheetsPivotTableAdaptorModel'])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(a[_0x15a2ed(0x31e)])),G(0x4,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x381)])),G(0x5,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x2c2)])),G(0x6,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x3e4)])),G(0x7,(0x0,n['Inject'])(n['LocaleService'])),G(0x8,i[_0x15a2ed(0x3fe)]),G(0x9,(0x0,n[_0x15a2ed(0x50c)])(a['SheetContextMenuMobileRenderController']))],Fn);let X=class extends n[_0x15a2ed(0x360)]{constructor(_0x24d680,_0x2b7728,_0x251bb8){const _0x27a5a0=_0x15a2ed;super(),this[_0x27a5a0(0x569)]=_0x24d680,this[_0x27a5a0(0x486)]=_0x2b7728,this[_0x27a5a0(0x3ca)]=_0x251bb8,this['_initialize']();}[_0x15a2ed(0x4b9)](){const _0x1c1038=_0x15a2ed;let _0x1c2f65=this,_0x3556bf,_0x3d4c45;this['disposeWithMe'](this[_0x1c1038(0x3ca)][_0x1c1038(0x1ce)]({'id':t['SHEET_PIVOT_TABLE_PLUGIN'],'onBeforeCopy'(_0xe18af8,_0x37f8a1){const _0x436cfc=_0x1c1038;let _0x255172=_0x1c2f65[_0x436cfc(0x569)]['getUnit'](_0xe18af8,n[_0x436cfc(0x243)][_0x436cfc(0x1d6)]);_0x255172&&(_0x3556bf=_0x1c2f65[_0x436cfc(0x486)]['getSubUnitPivotMatrix'](_0xe18af8,_0x37f8a1),_0x3d4c45=_0x255172[_0x436cfc(0x65c)]());},'onAfterCopy'(){_0x3556bf=null,_0x3d4c45=null;},'getCellValueBySpecialMatrix'(_0x81bfba,_0x431d39){const _0x5651f5=_0x1c1038;if(!_0x3556bf)return;let _0x4c847d=_0x3556bf==null?void 0x0:_0x3556bf[_0x5651f5(0x23c)](_0x81bfba,_0x431d39);if(_0x4c847d){var _0x5d85c5;return{..._0x4c847d,'s':_0x3d4c45==null?void 0x0:_0x3d4c45[_0x5651f5(0x6a9)](_0x4c847d['s']),'displayV':((_0x5d85c5=_0x4c847d['v'])==null?void 0x0:_0x5d85c5['toString']())||''};}}}));}};X=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(n['IUniverInstanceService'])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x56e)])),G(0x2,a[_0x15a2ed(0x54f)])],X);const In=[r['InsertRowCommand']['id'],r[_0x15a2ed(0x500)]['id'],r[_0x15a2ed(0x707)]['id'],r[_0x15a2ed(0x1ef)]['id']];let Ln=class extends n[_0x15a2ed(0x360)]{constructor(_0x3694a7,_0x52ffc8,_0x3e74e7,_0x116e50,_0x20affa,_0xcaef86,_0xf0a4d1,_0x55d478,_0x447ddd){const _0x2aa729=_0x15a2ed;var _0x47589d;super(),this['_injector']=_0x3694a7,this[_0x2aa729(0x569)]=_0x52ffc8,this['_sheetsPivotTableAdaptorModel']=_0x3e74e7,this[_0x2aa729(0x271)]=_0x116e50,this[_0x2aa729(0x57c)]=_0x20affa,this[_0x2aa729(0x54d)]=_0xcaef86,this[_0x2aa729(0x2a8)]=_0xf0a4d1,this[_0x2aa729(0x4b4)]=_0x55d478,this['_configService']=_0x447ddd,W(this,_0x2aa729(0x660),!0x1),this[_0x2aa729(0x5bf)](),this[_0x2aa729(0x61f)](),this[_0x2aa729(0x660)]=((_0x47589d=this['_configService'][_0x2aa729(0x715)](t[_0x2aa729(0x5a1)]))==null?void 0x0:_0x47589d['defaultOverride'])??!0x1;}[_0x15a2ed(0x5bf)](){const _0x16592b=_0x15a2ed;this[_0x16592b(0x28d)](this[_0x16592b(0x271)][_0x16592b(0x69f)]({'performCheck':async _0x5abec5=>{const _0x43397c=_0x16592b;if(_0x5abec5['id']===r[_0x43397c(0x706)]['id']){let _0x4828fb=(0x0,r['getSheetCommandTarget'])(this['_univerInstanceService']);if(!_0x4828fb)return Promise[_0x43397c(0x41a)](!0x1);let {unitId:_0x679b77,subUnitId:_0x37fb9e}=_0x4828fb,{fromRange:_0x44f643,toRange:_0x4d4537}=_0x5abec5['params'],_0x45d3e1=this[_0x43397c(0x2a8)][_0x43397c(0x4f2)](_0x679b77,_0x37fb9e);if(!(_0x45d3e1!=null&&_0x45d3e1[_0x43397c(0x646)]))return Promise[_0x43397c(0x41a)](!0x0);for(let [_0x59a1aa,_0x466686]of _0x45d3e1){let {targetCellInfo:_0xe8713e}=_0x466686,{row:_0x2fe835,col:_0x15cd92}=_0xe8713e,_0x334066=_0x2fe835-_0x44f643['startRow'],_0x3c59ab=_0x15cd92-_0x44f643['startColumn'],_0x9130e9={'row':_0x4d4537[_0x43397c(0x59c)]+_0x334066,'col':_0x4d4537['startColumn']+_0x3c59ab},_0x30487f=_0x9130e9[_0x43397c(0x291)]-_0xe8713e[_0x43397c(0x291)],_0x5aeb7f=_0x9130e9['col']-_0xe8713e[_0x43397c(0x64f)],_0x54f009=this['_sheetsPivotTableAdaptorModel'][_0x43397c(0x362)](_0x679b77,_0x37fb9e,_0x59a1aa),_0x2ef0a2=_0x54f009==null?void 0x0:_0x54f009[_0x43397c(0x39c)];if(!_0x2ef0a2)return Promise[_0x43397c(0x41a)](!0x0);let _0x3edc05=[];Object[_0x43397c(0x263)](_0x2ef0a2)['forEach'](_0x4cee2f=>{const _0x40f1fd=_0x43397c;_0x2ef0a2[_0x4cee2f][_0x40f1fd(0x567)](_0x4f735a=>{const _0x25084b=_0x40f1fd;let _0x417259={..._0x4f735a};_0x417259[_0x25084b(0x59c)]=_0x4f735a[_0x25084b(0x59c)]+_0x30487f,_0x417259[_0x25084b(0x3b6)]=_0x4f735a[_0x25084b(0x3b6)]+_0x30487f,_0x417259[_0x25084b(0x5e0)]=_0x4f735a[_0x25084b(0x5e0)]+_0x5aeb7f,_0x417259[_0x25084b(0x202)]=_0x4f735a[_0x25084b(0x202)]+_0x5aeb7f,_0x3edc05[_0x25084b(0x1d4)](_0x417259);});});let _0x3b3e4d=this[_0x43397c(0x271)][_0x43397c(0x287)]({'unitId':_0x679b77,'subUnitId':_0x37fb9e,'ranges':_0x3edc05}),_0x378781=(0x0,t['generateSetRangeValueMutations'])(this[_0x43397c(0x4eb)],_0x679b77,_0x37fb9e,_0x3edc05);if(_0x3b3e4d[_0x43397c(0x225)][_0x43397c(0x714)]||_0x378781[_0x43397c(0x220)]){if(this[_0x43397c(0x660)])return Promise[_0x43397c(0x41a)](!0x0);{let _0x479b92=await this['_confirmService'][_0x43397c(0x656)]({'id':_0x43397c(0x354),'title':{'title':this['_localeService']['t'](_0x43397c(0x1fa))},'children':{'title':this[_0x43397c(0x54d)]['t'](_0x43397c(0x22a))},'cancelText':this[_0x43397c(0x54d)]['t'](_0x43397c(0x2d0)),'confirmText':this[_0x43397c(0x54d)]['t'](_0x43397c(0x2cd))});return Promise[_0x43397c(0x41a)](_0x479b92);}}}}return Promise[_0x43397c(0x41a)](!0x0);}}));}[_0x15a2ed(0x61f)](){const _0x2caec3=_0x15a2ed;this[_0x2caec3(0x28d)](this['_sheetInterceptorService'][_0x2caec3(0x69f)]({'performCheck':async _0x262253=>{const _0x13cedd=_0x2caec3;if(In['includes'](_0x262253['id'])){let _0x43305d=_0x262253['params'],{range:_0x54b1fe}=_0x43305d,_0x2befea=(0x0,r['getSheetCommandTarget'])(this['_univerInstanceService']),_0x420b57=_0x43305d[_0x13cedd(0x427)]||(_0x2befea==null?void 0x0:_0x2befea[_0x13cedd(0x427)]),_0x4402a4=_0x43305d[_0x13cedd(0x317)]||(_0x2befea==null?void 0x0:_0x2befea['subUnitId']);if(!_0x420b57||!_0x4402a4)return Promise[_0x13cedd(0x41a)](!0x0);let _0x5b846a=this[_0x13cedd(0x2a8)][_0x13cedd(0x4f2)](_0x420b57,_0x4402a4);if(_0x5b846a!=null&&_0x5b846a[_0x13cedd(0x646)])for(let [_0x4b7cab,_0x546cdf]of _0x5b846a){let _0x23faff=this[_0x13cedd(0x486)]['getPivotItemRenderInfoCache'](_0x420b57,_0x4402a4,_0x4b7cab);if(_0x23faff!=null&&_0x23faff[_0x13cedd(0x39c)]){for(let _0x2909a2 of Object[_0x13cedd(0x263)](_0x23faff['rangesInfo']))if(_0x23faff[_0x13cedd(0x39c)][_0x2909a2][_0x13cedd(0x364)](_0x1fd4dd=>n[_0x13cedd(0x461)][_0x13cedd(0x2e0)](_0x1fd4dd,_0x54b1fe)))return this[_0x13cedd(0x4b4)][_0x13cedd(0x4e5)]({'type':s[_0x13cedd(0x4e9)][_0x13cedd(0x2bd)],'content':this[_0x13cedd(0x54d)]['t']('sheets-pivot-ui.perform.rowColError')}),Promise['resolve'](!0x1);}}}return Promise[_0x13cedd(0x41a)](!0x0);}}));}};Ln=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x21b)])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(n['IUniverInstanceService'])),G(0x2,(0x0,n['Inject'])(t[_0x15a2ed(0x56e)])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(r['SheetInterceptorService'])),G(0x4,(0x0,n[_0x15a2ed(0x436)])(n['IConfirmService'])),G(0x5,(0x0,n[_0x15a2ed(0x436)])(n['LocaleService'])),G(0x6,(0x0,n['Inject'])(t[_0x15a2ed(0x381)])),G(0x7,(0x0,n['Inject'])(i['IMessageService'])),G(0x8,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x645)]))],Ln);const Rn=[h[_0x15a2ed(0x46a)]['id'],g[_0x15a2ed(0x31d)]['id'],a[_0x15a2ed(0x697)]['id']];let zn=class extends n[_0x15a2ed(0x360)]{constructor(_0x4d2a60,_0x2c2224,_0x1bc12f,_0xc9a7eb,_0x27917d,_0x1dd63a){const _0x5602cf=_0x15a2ed;super(),this['_sheetsSelectionsService']=_0x4d2a60,this[_0x5602cf(0x569)]=_0x2c2224,this[_0x5602cf(0x486)]=_0x1bc12f,this[_0x5602cf(0x549)]=_0xc9a7eb,this[_0x5602cf(0x2a8)]=_0x27917d,this['_localeService']=_0x1dd63a,this['_initEditListener']();}[_0x15a2ed(0x60b)](){const _0x1db5a0=_0x15a2ed;this[_0x1db5a0(0x28d)](this['_commandService']['beforeCommandExecuted'](_0x77c158=>{const _0x296a60=_0x1db5a0;if(Rn[_0x296a60(0x6a2)](_0x77c158['id'])){var _0x30fc4f;let _0x22f142=(_0x30fc4f=this[_0x296a60(0x659)][_0x296a60(0x20a)]())==null?void 0x0:_0x30fc4f[_0x296a60(0x3e0)];if(!_0x22f142)return;let {actualRow:_0xdfaf31,actualColumn:_0x3417d0}=_0x22f142,_0x3ab2f3=(0x0,n['cellToRange'])(_0xdfaf31,_0x3417d0),_0x4192f4=(0x0,r[_0x296a60(0x49d)])(this[_0x296a60(0x569)],_0x77c158[_0x296a60(0x695)]);if(!_0x4192f4)return;let {unitId:_0x21d9b4,subUnitId:_0x528ae5}=_0x4192f4,_0x209c15=this[_0x296a60(0x2a8)][_0x296a60(0x4f2)](_0x21d9b4,_0x528ae5);if(_0x209c15!=null&&_0x209c15[_0x296a60(0x646)])for(let [_0x55879d]of _0x209c15){let _0x4f03da=this[_0x296a60(0x486)]['getPivotItemRenderInfoCache'](_0x21d9b4,_0x528ae5,_0x55879d);if(_0x4f03da!=null&&_0x4f03da[_0x296a60(0x39c)]){for(let _0x55959f of Object[_0x296a60(0x263)](_0x4f03da['rangesInfo']))if(_0x4f03da['rangesInfo'][_0x55959f][_0x296a60(0x364)](_0xbbe565=>n[_0x296a60(0x461)][_0x296a60(0x2e0)](_0xbbe565,_0x3ab2f3)))throw new n[(_0x296a60(0x61a))](this['_localeService']['t'](_0x296a60(0x308)));}}}}));}};zn=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x70e)])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x4c5)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x56e)])),G(0x3,(0x0,n['Inject'])(n['ICommandService'])),G(0x4,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x381)])),G(0x5,(0x0,n['Inject'])(n[_0x15a2ed(0x58a)]))],zn);let Bn=class extends n['Disposable']{constructor(_0x17031b,_0x9d50b7,_0xcbafe3,_0x4be748){const _0x1f4de7=_0x15a2ed;super(),this[_0x1f4de7(0x486)]=_0x17031b,this[_0x1f4de7(0x642)]=_0x9d50b7,this[_0x1f4de7(0x4b4)]=_0xcbafe3,this[_0x1f4de7(0x54d)]=_0x4be748,this['_initFormatPainterListener']();}[_0x15a2ed(0x356)](){const _0x5d900c=_0x15a2ed;let _0x43c819=this['_sheetsPivotTableAdaptorModel'],_0x49b66e=this[_0x5d900c(0x4b4)],_0x1721d7=this[_0x5d900c(0x54d)];this[_0x5d900c(0x642)][_0x5d900c(0x6d9)]({'id':_0x5d900c(0x564),'onBeforeApply'(_0x50302e){const _0x14044c=_0x5d900c;let {redoMutationsInfo:_0x442326}=_0x50302e;for(let _0x5e1c23 of _0x442326)if(_0x5e1c23['id']===r[_0x14044c(0x3cd)]['id']){let {unitId:_0x47257f,subUnitId:_0x5f50de,ranges:_0x5ee8a1}=_0x5e1c23[_0x14044c(0x695)];for(let _0x5cf4da of _0x5ee8a1)if(_0x43c819[_0x14044c(0x28b)](_0x47257f,_0x5f50de,_0x5cf4da)[_0x14044c(0x714)]>0x0)return _0x49b66e[_0x14044c(0x4e5)]({'type':s[_0x14044c(0x4e9)]['Error'],'content':_0x1721d7['t']('sheets-pivot-ui.msg.mergeCellError')}),!0x1;}return!0x0;}});}};Bn=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x56e)])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(a[_0x15a2ed(0x363)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(i[_0x15a2ed(0x6d3)])),G(0x3,(0x0,n['Inject'])(n[_0x15a2ed(0x58a)]))],Bn);let Vn=class extends n[_0x15a2ed(0x360)]{constructor(_0x171186,_0x3142ef,_0x1639bb){const _0x5d4397=_0x15a2ed;super(),this[_0x5d4397(0x1ba)]=_0x171186,this[_0x5d4397(0x486)]=_0x3142ef,this[_0x5d4397(0x2a8)]=_0x1639bb,this[_0x5d4397(0x64a)]();}[_0x15a2ed(0x64a)](){const _0x336978=_0x15a2ed;this[_0x336978(0x28d)](this[_0x336978(0x1ba)][_0x336978(0x5c4)][_0x336978(0x5ab)](this[_0x336978(0x1ba)]['interceptor'][_0x336978(0x624)]()['PRINTING_RANGE'],{'handler':(_0x58e222,_0x48a354,_0xef0896)=>{const _0x5b6247=_0x336978;let {unitId:_0x293cef,subUnitId:_0x225b8a}=_0x48a354,_0x433651=(_0x58e222==null?void 0x0:_0x58e222[_0x5b6247(0x59c)])??0x1/0x0,_0xc69bf9=(_0x58e222==null?void 0x0:_0x58e222[_0x5b6247(0x3b6)])??-0x1/0x0,_0x20a4b4=(_0x58e222==null?void 0x0:_0x58e222[_0x5b6247(0x5e0)])??0x1/0x0,_0x1a2c09=(_0x58e222==null?void 0x0:_0x58e222[_0x5b6247(0x202)])??-0x1/0x0,_0x4fa82a=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x293cef,_0x225b8a);if(!_0x4fa82a)return _0xef0896(_0x58e222);for(let [_0x8c07a6,_0x3def80]of _0x4fa82a){var _0x2d9900;let _0x1c8006=(_0x2d9900=this[_0x5b6247(0x486)][_0x5b6247(0x362)](_0x293cef,_0x225b8a,_0x8c07a6))==null?void 0x0:_0x2d9900[_0x5b6247(0x39c)];_0x1c8006&&Object[_0x5b6247(0x43a)](_0x1c8006)[_0x5b6247(0x567)](_0x31d7a0=>{const _0x41ddfd=_0x5b6247;_0x31d7a0[_0x41ddfd(0x567)](_0x404c7f=>{const _0x442d13=_0x41ddfd;let {startRow:_0x294ec1,endRow:_0x2e82f2,startColumn:_0x49dafc,endColumn:_0x301c00}=_0x404c7f;_0x433651=Math[_0x442d13(0x24f)](_0x294ec1,_0x433651),_0xc69bf9=Math[_0x442d13(0x523)](_0x2e82f2,_0xc69bf9),_0x20a4b4=Math[_0x442d13(0x24f)](_0x49dafc,_0x20a4b4),_0x1a2c09=Math[_0x442d13(0x523)](_0x301c00,_0x1a2c09);});});}let _0x2262ae={'startRow':_0x433651,'endRow':_0xc69bf9,'startColumn':_0x20a4b4,'endColumn':_0x1a2c09};return(0x0,n[_0x5b6247(0x4ea)])(_0x2262ae)?_0xef0896(_0x2262ae):_0xef0896(_0x58e222);}}));}};Vn=K([G(0x0,(0x0,n['Inject'])(a['SheetPrintInterceptorService'])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x56e)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x381)]))],Vn);let Hn=class extends n[_0x15a2ed(0x360)]{constructor(_0x29eaec,_0x78e597,_0x231851){const _0x4cdd9e=_0x15a2ed;super(),this[_0x4cdd9e(0x441)]=_0x29eaec,this[_0x4cdd9e(0x569)]=_0x78e597,this[_0x4cdd9e(0x2a8)]=_0x231851,this['_initMenuInterceptor']();}['_initMenuInterceptor'](){const _0x1a155b=_0x15a2ed;this[_0x1a155b(0x28d)](this[_0x1a155b(0x441)]['interceptor'][_0x1a155b(0x5ab)](this[_0x1a155b(0x441)][_0x1a155b(0x5c4)][_0x1a155b(0x624)]()['MERGE_CELL_INTERCEPTOR_CHECK'],{'handler':(_0x9889ae,_0x217647)=>{const _0x2778c4=_0x1a155b;let _0x38c21c=(0x0,r[_0x2778c4(0x49d)])(this[_0x2778c4(0x569)]);if(!_0x38c21c)return _0x9889ae;let {unitId:_0xce7db9,subUnitId:_0x2bafa9}=_0x38c21c,_0xb864d7=this[_0x2778c4(0x2a8)]['getSubUnitPivotConfigs'](_0xce7db9,_0x2bafa9),_0x5914b1=[];return _0xb864d7&&_0xb864d7['forEach']((_0x45aa1f,_0x121416)=>{const _0x47d419=_0x2778c4;var _0x4aeccf;let _0x32c929=(_0x4aeccf=this[_0x47d419(0x2a8)][_0x47d419(0x507)](_0xce7db9,_0x2bafa9,_0x121416))==null?void 0x0:_0x4aeccf[_0x47d419(0x4fc)];_0x32c929&&Object['keys'](_0x32c929)['forEach'](_0x4e1321=>{const _0x30c3d2=_0x47d419;let _0x579be8=_0x32c929[_0x4e1321];Array['isArray'](_0x579be8)&&_0x5914b1[_0x30c3d2(0x1d4)](..._0x579be8);});}),_0x5914b1[_0x2778c4(0x714)]&&_0x217647[_0x2778c4(0x364)](_0x1d8a50=>_0x5914b1['some'](_0x308b13=>n[_0x2778c4(0x461)][_0x2778c4(0x2e0)](_0x308b13,_0x1d8a50)))?!0x0:_0x9889ae;}}));}};Hn=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x4a4)])),G(0x1,(0x0,n['Inject'])(n[_0x15a2ed(0x4c5)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(t[_0x15a2ed(0x381)]))],Hn);let Z=class extends n[_0x15a2ed(0x596)]{constructor(_0x579305=ot,_0xdddcee,_0x1da436,_0x2eecbe,_0xe970a1){const _0x5a8b5e=_0x15a2ed;super(),this['_config']=_0x579305,this[_0x5a8b5e(0x4eb)]=_0xdddcee,this[_0x5a8b5e(0x549)]=_0x1da436,this['_renderManagerService']=_0x2eecbe,this[_0x5a8b5e(0x68c)]=_0xe970a1;let {menu:_0x1d18db,..._0x49253e}=(0x0,n[_0x5a8b5e(0x68a)])({},ot,this['_config']);_0x1d18db&&this[_0x5a8b5e(0x68c)][_0x5a8b5e(0x5e7)]('menu',_0x1d18db,{'merge':!0x0}),this[_0x5a8b5e(0x68c)][_0x5a8b5e(0x5e7)](at,_0x49253e),this[_0x5a8b5e(0x2df)]();}[_0x15a2ed(0x1c0)](){const _0x2dcf30=_0x15a2ed;[[bn],[Cn],[wn],[Hn],[Ln],[Vn],[zn],[Bn],[q],[X]][_0x2dcf30(0x567)](_0x139832=>this[_0x2dcf30(0x4eb)][_0x2dcf30(0x6dc)](_0x139832)),(0x0,n[_0x2dcf30(0x1c2)])(this[_0x2dcf30(0x4eb)],[[bn],[Cn],[wn],[q]]);}[_0x15a2ed(0x4aa)](){const _0x4e3050=_0x15a2ed;this['_registerRenderModules'](),(0x0,n[_0x4e3050(0x1c2)])(this[_0x4e3050(0x4eb)],[[Ln],[Vn],[zn],[Bn],[X]]);}[_0x15a2ed(0x331)](){const _0xb160e0=_0x15a2ed;(0x0,n[_0xb160e0(0x1c2)])(this[_0xb160e0(0x4eb)],[[Hn]]);}['_registerCommands'](){const _0x2a3201=_0x15a2ed;[it,N,tt,nt,F][_0x2a3201(0x567)](_0x3643ec=>this[_0x2a3201(0x28d)](this[_0x2a3201(0x549)][_0x2a3201(0x311)](_0x3643ec)));}['_registerRenderModules'](){const _0x49860f=_0x15a2ed;this[_0x49860f(0x28d)](this['_renderManagerService']['registerRenderModule'](n['UniverInstanceType'][_0x49860f(0x1d6)],[Fn]));}};W(Z,'pluginName',t[_0x15a2ed(0x4cd)]+_0x15a2ed(0x2bb)),W(Z,_0x15a2ed(0x324),$e),W(Z,_0x15a2ed(0x709),et),W(Z,_0x15a2ed(0x4a9),n[_0x15a2ed(0x243)]['UNIVER_SHEET']),Z=K([(0x0,n[_0x15a2ed(0x511)])(c['UniverLicensePlugin'],l[_0x15a2ed(0x516)],r['UniverSheetsPlugin'],t['UniverSheetsPivotTablePlugin'],a[_0x15a2ed(0x32f)],i[_0x15a2ed(0x502)]),G(0x1,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x21b)])),G(0x2,n['ICommandService']),G(0x3,l[_0x15a2ed(0x587)]),G(0x4,n[_0x15a2ed(0x645)])],Z);const Un=[e[_0x15a2ed(0x1b6)][_0x15a2ed(0x41c)],e['PivotExcelDateGroupUnit'][_0x15a2ed(0x3d8)],e[_0x15a2ed(0x1b6)][_0x15a2ed(0x612)],e[_0x15a2ed(0x1b6)][_0x15a2ed(0x456)],e[_0x15a2ed(0x1b6)][_0x15a2ed(0x4d6)],e['PivotExcelDateGroupUnit'][_0x15a2ed(0x330)],e[_0x15a2ed(0x1b6)][_0x15a2ed(0x2d8)]],Wn={[e[_0x15a2ed(0x1b6)]['Year']]:'sheets-pivot-ui.dateGroup.year',[e[_0x15a2ed(0x1b6)]['Quarter']]:_0x15a2ed(0x5ad),[e[_0x15a2ed(0x1b6)][_0x15a2ed(0x612)]]:_0x15a2ed(0x39b),[e['PivotExcelDateGroupUnit'][_0x15a2ed(0x456)]]:_0x15a2ed(0x3c1),[e[_0x15a2ed(0x1b6)][_0x15a2ed(0x4d6)]]:'sheets-pivot-ui.dateGroup.hour',[e['PivotExcelDateGroupUnit'][_0x15a2ed(0x330)]]:_0x15a2ed(0x488),[e[_0x15a2ed(0x1b6)]['Second']]:_0x15a2ed(0x2f6)},Gn=_0x15a2ed(0x6e9);function Kn({targetFieldName:_0x306842,dateSystem:_0x297889,grouping:_0xb80335,onConfirm:_0x3389f6,onCancel:_0xa6775b}){const _0x1a79e4=_0x15a2ed;let _0x7010a5=(0x0,i[_0x1a79e4(0x50b)])(n[_0x1a79e4(0x58a)]),_0x508c48=(0x0,i[_0x1a79e4(0x600)])(_0x7010a5[_0x1a79e4(0x4d2)],_0x7010a5[_0x1a79e4(0x33e)]()),_0x71fbc6=(_0x1b5354,_0x159963)=>{const _0x29d26b=_0x1a79e4;let _0x421227=_0x1b5354===void 0x0?null:(0x0,n['excelSerialToDateTimeParts'])(_0x1b5354,{'dateSystem':_0x297889});if(!_0x421227)return{'date':'','time':_0x159963};let _0x12da38=_0x3a830d=>String(_0x3a830d)['padStart'](0x2,'0');return{'date':_0x421227[_0x29d26b(0x6cd)]+'-'+_0x12da38(_0x421227['month'])+'-'+_0x12da38(_0x421227[_0x29d26b(0x23f)]),'time':_0x12da38(_0x421227[_0x29d26b(0x4fb)])+':'+_0x12da38(_0x421227['minutes'])+':'+_0x12da38(_0x421227['seconds'])};},[_0x3b50b4,_0x12cfac]=(0x0,f['useState'])((_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x24c)])??[e[_0x1a79e4(0x1b6)][_0x1a79e4(0x456)]]),[_0x2e146b,_0x1f453f]=(0x0,f[_0x1a79e4(0x6de)])((_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x3a2)])??!0x0),[_0x48b403,_0x5d2a7e]=(0x0,f['useState'])((_0xb80335==null?void 0x0:_0xb80335['autoEnd'])??!0x0),[_0x2b86b9,_0x7459dc]=(0x0,f[_0x1a79e4(0x6de)])(()=>_0x71fbc6(_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x4d0)],_0x1a79e4(0x517))['date']),[_0x6db20,_0xa0feb5]=(0x0,f[_0x1a79e4(0x6de)])(()=>_0x71fbc6(_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x305)],'23:59:59')['date']),[_0x223144,_0x37ef8d]=(0x0,f['useState'])(()=>_0x71fbc6(_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x4d0)],_0x1a79e4(0x517))[_0x1a79e4(0x24b)]),[_0x3e701c,_0x227d06]=(0x0,f['useState'])(()=>_0x71fbc6(_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x305)],'23:59:59')[_0x1a79e4(0x24b)]),[_0xbe13bc,_0x3ad4f3]=(0x0,f[_0x1a79e4(0x6de)])((_0xb80335==null?void 0x0:_0xb80335[_0x1a79e4(0x5e9)])??0x1),[_0x3650aa,_0x1d7abc]=(0x0,f[_0x1a79e4(0x6de)])(!0x1),_0x196bd7=(0x0,f[_0x1a79e4(0x5d6)])(!0x1),_0x3d19cf=_0x3b50b4[_0x1a79e4(0x364)](_0x450fe9=>_0x450fe9===e[_0x1a79e4(0x1b6)][_0x1a79e4(0x4d6)]||_0x450fe9===e[_0x1a79e4(0x1b6)]['Minute']||_0x450fe9===e[_0x1a79e4(0x1b6)][_0x1a79e4(0x2d8)]),_0xd9ed24=_0x3b50b4[_0x1a79e4(0x714)]===0x1&&_0x3b50b4[0x0]===e[_0x1a79e4(0x1b6)][_0x1a79e4(0x456)],_0xc5750=(_0x20a20c,_0x86cfe8,_0x8013cd)=>{const _0x4850f8=_0x1a79e4;let _0x2a17e9=/^(\d{4})-(\d{2})-(\d{2})$/[_0x4850f8(0x442)](_0x20a20c),_0xafbe60=/^(\d{2}):(\d{2})(?::(\d{2}))?$/[_0x4850f8(0x442)](_0x86cfe8);return!_0x2a17e9||!_0xafbe60?null:(0x0,n['excelDateTimePartsToSerial'])({'year':Number(_0x2a17e9[0x1]),'month':Number(_0x2a17e9[0x2]),'day':Number(_0x2a17e9[0x3]),'hours':_0x3d19cf?Number(_0xafbe60[0x1]):_0x8013cd?0x17:0x0,'minutes':_0x3d19cf?Number(_0xafbe60[0x2]):_0x8013cd?0x3b:0x0,'seconds':_0x3d19cf?Number(_0xafbe60[0x3]??0x0):_0x8013cd?0x3b:0x0,'fractionalSecond':_0x8013cd?0.999:0x0},{'dateSystem':_0x297889});},_0x5ebc15=_0x2e146b?void 0x0:_0xc5750(_0x2b86b9,_0x223144,!0x1),_0x36ead9=_0x48b403?void 0x0:_0xc5750(_0x6db20,_0x3e701c,!0x0),_0x265a27=_0x3b50b4[_0x1a79e4(0x714)]>0x0&&(_0x2e146b||_0x5ebc15!==null)&&(_0x48b403||_0x36ead9!==null)&&(_0x5ebc15==null||_0x36ead9==null||_0x5ebc15<=_0x36ead9)&&(!_0xd9ed24||Number['isInteger'](_0xbe13bc)&&_0xbe13bc>=0x1);return(0x0,d[_0x1a79e4(0x634)])('div',{'className':_0x1a79e4(0x5af),'dir':_0x508c48,'children':[(0x0,d[_0x1a79e4(0x268)])(_0x1a79e4(0x664),{'className':_0x1a79e4(0x3eb),'children':_0x306842}),(0x0,d[_0x1a79e4(0x634)])(_0x1a79e4(0x6a3),{'children':[(0x0,d['jsx'])(_0x1a79e4(0x351),{'className':_0x1a79e4(0x606),'children':_0x7010a5['t']('sheets-pivot-ui.dateGroup.groupBy')}),(0x0,d[_0x1a79e4(0x268)])(_0x1a79e4(0x664),{'className':_0x1a79e4(0x533),'children':Un[_0x1a79e4(0x611)](_0xc209=>(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x45d)],{'checked':_0x3b50b4[_0x1a79e4(0x6a2)](_0xc209),'onChange':_0xe1a8e=>_0x12cfac(_0x16dfbe=>_0xe1a8e?Un[_0x1a79e4(0x3f8)](_0x1ce3af=>_0x1ce3af===_0xc209||_0x16dfbe[_0x1a79e4(0x6a2)](_0x1ce3af)):_0x16dfbe[_0x1a79e4(0x3f8)](_0x1cde77=>_0x1cde77!==_0xc209)),'children':_0x7010a5['t'](Wn[_0xc209])},_0xc209))})]}),_0xd9ed24&&(0x0,d['jsxs'])(_0x1a79e4(0x3b3),{'className':_0x1a79e4(0x3a9),'children':[_0x7010a5['t'](_0x1a79e4(0x5ae)),(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x451)],{'className':_0x1a79e4(0x229),'value':_0xbe13bc,'min':0x1,'onChange':_0x516a54=>_0x3ad4f3(Number(_0x516a54))})]}),(0x0,d[_0x1a79e4(0x634)])('div',{'className':_0x1a79e4(0x2d1),'children':[(0x0,d[_0x1a79e4(0x268)])(s['Checkbox'],{'checked':_0x2e146b,'onChange':_0x2c045c=>_0x1f453f(!!_0x2c045c),'children':_0x7010a5['t']('sheets-pivot-ui.dateGroup.autoStart')}),!_0x2e146b&&(0x0,d[_0x1a79e4(0x634)])(_0x1a79e4(0x3b3),{'className':_0x1a79e4(0x404),'children':[_0x7010a5['t'](_0x1a79e4(0x5a6)),(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x6e8)],{'type':_0x1a79e4(0x64c),'value':_0x2b86b9,'onChange':_0x7459dc}),_0x3d19cf&&(0x0,d[_0x1a79e4(0x268)])('input',{'className':Gn,'type':_0x1a79e4(0x24b),'step':0x1,'value':_0x223144,'onChange':_0x3244a4=>_0x37ef8d(_0x3244a4[_0x1a79e4(0x1c6)][_0x1a79e4(0x635)])})]}),(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x45d)],{'checked':_0x48b403,'onChange':_0x1ab582=>_0x5d2a7e(!!_0x1ab582),'children':_0x7010a5['t'](_0x1a79e4(0x2f3))}),!_0x48b403&&(0x0,d['jsxs'])(_0x1a79e4(0x3b3),{'className':_0x1a79e4(0x404),'children':[_0x7010a5['t'](_0x1a79e4(0x43f)),(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x6e8)],{'type':_0x1a79e4(0x64c),'value':_0x6db20,'onChange':_0xa0feb5}),_0x3d19cf&&(0x0,d['jsx'])(_0x1a79e4(0x6c3),{'className':Gn,'type':_0x1a79e4(0x24b),'step':0x1,'value':_0x3e701c,'onChange':_0x499a29=>_0x227d06(_0x499a29['target'][_0x1a79e4(0x635)])})]})]}),(0x0,d[_0x1a79e4(0x634)])(_0x1a79e4(0x664),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-3','children':[(0x0,d[_0x1a79e4(0x268)])(s['Button'],{'onClick':_0xa6775b,'children':_0x7010a5['t'](_0x1a79e4(0x503))}),(0x0,d[_0x1a79e4(0x268)])(s[_0x1a79e4(0x23a)],{'variant':_0x1a79e4(0x3e0),'disabled':!_0x265a27||_0x3650aa,'onClick':async()=>{const _0x15ce7a=_0x1a79e4;if(!_0x265a27||_0x196bd7['current'])return;let _0x3dc04d={'units':Un['filter'](_0x1adef0=>_0x3b50b4['includes'](_0x1adef0)),'autoStart':_0x2e146b,'autoEnd':_0x48b403};!_0x2e146b&&_0x5ebc15!=null&&(_0x3dc04d[_0x15ce7a(0x4d0)]=_0x5ebc15),!_0x48b403&&_0x36ead9!=null&&(_0x3dc04d[_0x15ce7a(0x305)]=_0x36ead9),_0xd9ed24&&_0xbe13bc>0x1&&(_0x3dc04d['daysInterval']=_0xbe13bc),_0x196bd7[_0x15ce7a(0x6c4)]=!0x0,_0x1d7abc(!0x0);try{await _0x3389f6(_0x3dc04d);}catch{}finally{_0x196bd7[_0x15ce7a(0x6c4)]=!0x1,_0x1d7abc(!0x1);}},'children':_0x7010a5['t'](_0x1a79e4(0x694))})]})]});}function qn(_0x415b5e){const _0x26eee2=_0x15a2ed;let _0x5f3ae0=_0x415b5e[_0x26eee2(0x3ae)]===e[_0x26eee2(0x70a)][_0x26eee2(0x2db)]||_0x415b5e[_0x26eee2(0x3ae)]===e[_0x26eee2(0x70a)]['dateNotBetween'],_0x4c589b={'type':e[_0x26eee2(0x246)][_0x26eee2(0x236)],'operator':_0x415b5e[_0x26eee2(0x3ae)],'expected':_0x5f3ae0?[_0x415b5e[_0x26eee2(0x210)],_0x415b5e[_0x26eee2(0x6cc)]]:_0x415b5e[_0x26eee2(0x210)],'useWholeDay':_0x415b5e[_0x26eee2(0x5c8)]};try{return(0x0,e[_0x26eee2(0x6d6)])(_0x4c589b),_0x4c589b;}catch{return;}}function Jn(_0x552352,_0x3cd73d){const _0x4f9106=_0x15a2ed;let _0x5f5c20=(0x0,n[_0x4f9106(0x4ec)])(_0x552352,{'dateSystem':_0x3cd73d});if(!_0x5f5c20||_0x5f5c20['day']===0x0||_0x5f5c20[_0x4f9106(0x6cd)]===0x76c&&_0x5f5c20[_0x4f9106(0x60a)]===0x2&&_0x5f5c20[_0x4f9106(0x23f)]===0x1d)return;let _0x32ab32=new Date(0x7d0,0x0,0x1,0xc);return _0x32ab32[_0x4f9106(0x476)](_0x5f5c20[_0x4f9106(0x6cd)],_0x5f5c20[_0x4f9106(0x60a)]-0x1,_0x5f5c20[_0x4f9106(0x23f)]),_0x32ab32;}function Yn(_0x33703c,_0x378a22,_0x55864a){const _0x5ca8f5=_0x15a2ed;let _0x3a9ac5=(0x0,n[_0x5ca8f5(0x6bc)])({'year':_0x378a22['getFullYear'](),'month':_0x378a22['getMonth']()+0x1,'day':_0x378a22[_0x5ca8f5(0x582)](),'hours':0x0,'minutes':0x0,'seconds':0x0,'fractionalSecond':0x0},{'dateSystem':_0x55864a});return _0x3a9ac5===null?void 0x0:_0x3a9ac5+(_0x33703c===void 0x0?0x0:_0x33703c-Math['floor'](_0x33703c));}function Xn(_0x118b38,_0x394d76){const _0x5f20a6=_0x15a2ed;return _0x118b38===void 0x0||!Number[_0x5f20a6(0x479)](_0x394d76[_0x5f20a6(0x676)]())?_0x118b38:Math[_0x5f20a6(0x701)](_0x118b38)+(_0x394d76[_0x5f20a6(0x47e)]()*0xe10+_0x394d76[_0x5f20a6(0x3a1)]()*0x3c+_0x394d76[_0x5f20a6(0x3a5)]()+_0x394d76[_0x5f20a6(0x5d8)]()/0x3e8)/0x15180;}const Zn=[{'value':e['ST_PivotFilterOperatorEnum'][_0x15a2ed(0x255)],'label':'sheets-pivot-ui.dateFilter.equal'},{'value':e[_0x15a2ed(0x70a)]['dateNotEqual'],'label':'sheets-pivot-ui.dateFilter.notEqual'},{'value':e[_0x15a2ed(0x70a)]['dateNewerThan'],'label':_0x15a2ed(0x423)},{'value':e[_0x15a2ed(0x70a)][_0x15a2ed(0x3b5)],'label':_0x15a2ed(0x1d8)},{'value':e['ST_PivotFilterOperatorEnum'][_0x15a2ed(0x6fa)],'label':'sheets-pivot-ui.dateFilter.before'},{'value':e['ST_PivotFilterOperatorEnum']['dateOlderThanOrEqual'],'label':_0x15a2ed(0x6df)},{'value':e['ST_PivotFilterOperatorEnum'][_0x15a2ed(0x2db)],'label':_0x15a2ed(0x6ea)},{'value':e[_0x15a2ed(0x70a)][_0x15a2ed(0x5d4)],'label':'sheets-pivot-ui.dateFilter.notBetween'}];function Qn({dateSystem:_0x179665,defaultDate:_0x378c5a,currentFilter:_0x3bc142,onConfirm:_0x3c86a2,onCancel:_0x2dad60}){const _0x45ca0b=_0x15a2ed;let _0x54134e=(0x0,i[_0x45ca0b(0x50b)])(n['LocaleService']);(0x0,i[_0x45ca0b(0x600)])(_0x54134e[_0x45ca0b(0x44b)]);let _0x2c4242=(0x0,i['useObservable'])(_0x54134e[_0x45ca0b(0x4d2)],_0x54134e['getDirection']()),[_0xe9c662,_0x310e83]=(0x0,f[_0x45ca0b(0x6de)])((_0x3bc142==null?void 0x0:_0x3bc142[_0x45ca0b(0x3ae)])??e[_0x45ca0b(0x70a)][_0x45ca0b(0x255)]),_0x1b80ea=Array['isArray'](_0x3bc142==null?void 0x0:_0x3bc142['expected'])?_0x3bc142[_0x45ca0b(0x379)][0x0]:_0x3bc142==null?void 0x0:_0x3bc142['expected'],_0x31e5b9=Array['isArray'](_0x3bc142==null?void 0x0:_0x3bc142[_0x45ca0b(0x379)])?_0x3bc142['expected'][0x1]:void 0x0,[_0x602b1,_0x57da7d]=(0x0,f[_0x45ca0b(0x6de)])(()=>_0x1b80ea??_0x378c5a??Yn(void 0x0,new Date(),_0x179665)),[_0x38fa3d,_0x41bc7c]=(0x0,f[_0x45ca0b(0x6de)])(()=>_0x31e5b9??_0x1b80ea??_0x378c5a??Yn(void 0x0,new Date(),_0x179665)),[_0x27cee9,_0x22156a]=(0x0,f[_0x45ca0b(0x6de)])((_0x3bc142==null?void 0x0:_0x3bc142[_0x45ca0b(0x5c8)])===!0x0),[_0x2dfb7c,_0x43e80a]=(0x0,f[_0x45ca0b(0x6de)])(!0x1),[_0x126429,_0xfd9bce]=(0x0,f['useState'])(!0x1),_0x13f959=(0x0,f['useRef'])(!0x1),_0x2b1d89=_0x3f1876(_0x602b1),_0x236de1=_0x3f1876(_0x38fa3d),_0x244a2e=_0xe9c662===e['ST_PivotFilterOperatorEnum'][_0x45ca0b(0x2db)]||_0xe9c662===e[_0x45ca0b(0x70a)][_0x45ca0b(0x5d4)],_0x39914b=qn({'operator':_0xe9c662,'lower':_0x2b1d89,'upper':_0x236de1,'useWholeDay':_0x27cee9}),_0x93032a=_0x39914b!==void 0x0&&_0x3bc142!==void 0x0&&_0xe9c662===_0x3bc142[_0x45ca0b(0x3ae)]&&_0x27cee9===(_0x3bc142[_0x45ca0b(0x5c8)]===!0x0)&&n[_0x45ca0b(0x604)][_0x45ca0b(0x61e)](_0x39914b['expected'],_0x3bc142['expected']);async function _0x12bddc(_0x47318f){const _0x5efd2c=_0x45ca0b;if(!_0x13f959[_0x5efd2c(0x6c4)]){_0x13f959[_0x5efd2c(0x6c4)]=!0x0,_0x43e80a(!0x0),_0xfd9bce(!0x1);try{await _0x3c86a2(_0x47318f)||_0xfd9bce(!0x0);}catch{_0xfd9bce(!0x0);}finally{_0x13f959[_0x5efd2c(0x6c4)]=!0x1,_0x43e80a(!0x1);}}}function _0x3f1876(_0x174936){const _0x34b9d5=_0x45ca0b;return typeof _0x174936==_0x34b9d5(0x294)?_0x174936['trim']()===''?void 0x0:Number(_0x174936):_0x174936;}function _0x5dace4(_0xabf3ad,_0x344908){_0x344908?_0x41bc7c(_0xabf3ad):_0x57da7d(_0xabf3ad);}function _0x43b090(_0x2251e1,_0xe2ce6d){let _0x578506=Yn(_0xe2ce6d?_0x236de1:_0x2b1d89,_0x2251e1,_0x179665);_0xe2ce6d?_0x41bc7c(_0x578506):_0x57da7d(_0x578506);}function _0x5a2c01(_0x51b5fe,_0x3c2bcc){let _0x3e4feb=_0x3c2bcc?_0x236de1:_0x2b1d89;if(_0x3e4feb===void 0x0)return;let _0x47470c=Xn(_0x3e4feb,_0x51b5fe);_0x3c2bcc?_0x41bc7c(_0x47470c):_0x57da7d(_0x47470c);}return(0x0,d[_0x45ca0b(0x634)])(_0x45ca0b(0x664),{'dir':_0x2c4242,'className':_0x45ca0b(0x1f2),'children':[(0x0,d[_0x45ca0b(0x268)])(_0x45ca0b(0x664),{'className':_0x45ca0b(0x3eb),'children':_0x54134e['t'](_0x45ca0b(0x4cc))}),(0x0,d[_0x45ca0b(0x634)])(_0x45ca0b(0x664),{'className':_0x45ca0b(0x299),'children':[(0x0,d[_0x45ca0b(0x268)])(_0x45ca0b(0x1b4),{'className':_0x45ca0b(0x51c),'children':_0x54134e['t'](_0x45ca0b(0x4c1))}),(0x0,d[_0x45ca0b(0x268)])(s['Select'],{'className':_0x45ca0b(0x1d5),'value':String(_0xe9c662),'options':Zn[_0x45ca0b(0x611)](_0x393438=>({'value':String(_0x393438[_0x45ca0b(0x635)]),'label':_0x54134e['t'](_0x393438[_0x45ca0b(0x3b3)])})),'onChange':_0x64c192=>_0x310e83(Number(_0x64c192))})]}),(_0x244a2e?[!0x1,!0x0]:[!0x1])[_0x45ca0b(0x611)](_0x3b6c88=>{const _0x41a97f=_0x45ca0b;let _0x471cfc=_0x3b6c88?_0x236de1:_0x2b1d89,_0x3f4a04=_0x471cfc===void 0x0?void 0x0:Jn(_0x471cfc,_0x179665),_0x4ae56a=(_0x3b6c88?_0x31e5b9:void 0x0)??_0x1b80ea??_0x378c5a,_0xcac82e=_0x4ae56a!==void 0x0&&!Jn(_0x4ae56a,_0x179665),_0x17f528=_0x471cfc===void 0x0?null:(0x0,n[_0x41a97f(0x4ec)])(_0x471cfc,{'dateSystem':_0x179665}),_0x36ee8e=_0x17f528?new Date(0x7d0,0x0,0x1,_0x17f528[_0x41a97f(0x4fb)],_0x17f528[_0x41a97f(0x403)],_0x17f528[_0x41a97f(0x49f)],Math[_0x41a97f(0x701)](_0x17f528['fractionalSecond']*0x3e8)):void 0x0,_0x273aba=_0x41a97f(0x44c);return _0x244a2e&&(_0x273aba=_0x3b6c88?_0x41a97f(0x323):_0x41a97f(0x6a6)),(0x0,d[_0x41a97f(0x634)])(_0x41a97f(0x664),{'role':_0x41a97f(0x355),'aria-label':_0x54134e['t'](_0x273aba),'className':'univer-flex\x20univer-min-w-0\x20univer-flex-col\x20univer-gap-1','children':[(0x0,d[_0x41a97f(0x268)])('span',{'className':_0x41a97f(0x51c),'children':_0x54134e['t'](_0x273aba)}),_0xcac82e?(0x0,d[_0x41a97f(0x634)])(_0x41a97f(0x664),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[(0x0,d[_0x41a97f(0x268)])(_0x41a97f(0x1b4),{'className':_0x41a97f(0x300),'children':_0x54134e['t']('sheets-pivot-ui.dateFilter.serial')}),(0x0,d[_0x41a97f(0x268)])(s[_0x41a97f(0x6e8)],{'value':String((_0x3b6c88?_0x38fa3d:_0x602b1)??''),'onChange':_0x330d54=>_0x5dace4(_0x330d54,_0x3b6c88)})]}):(0x0,d[_0x41a97f(0x634)])(_0x41a97f(0x664),{'className':_0x41a97f(0x6db),'children':[(0x0,d[_0x41a97f(0x268)])(s[_0x41a97f(0x314)],{'value':_0x3f4a04,'onValueChange':_0x5562a1=>_0x43b090(_0x5562a1,_0x3b6c88)}),!_0x27cee9&&_0x471cfc!==void 0x0&&(0x0,d[_0x41a97f(0x268)])(s[_0x41a97f(0x5f0)],{'value':_0x36ee8e,'onValueChange':_0x4068e9=>_0x5a2c01(_0x4068e9,_0x3b6c88)})]})]},String(_0x3b6c88));}),(0x0,d[_0x45ca0b(0x268)])(s[_0x45ca0b(0x45d)],{'checked':_0x27cee9,'onChange':_0x302b85=>_0x22156a(_0x302b85===!0x0),'children':_0x54134e['t'](_0x45ca0b(0x34a))}),_0x126429&&(0x0,d[_0x45ca0b(0x268)])(_0x45ca0b(0x664),{'role':_0x45ca0b(0x4d9),'className':'univer-text-xs\x20univer-text-red-500','children':_0x54134e['t'](_0x45ca0b(0x325))}),(0x0,d[_0x45ca0b(0x634)])(_0x45ca0b(0x664),{'className':_0x45ca0b(0x540),'children':[(0x0,d[_0x45ca0b(0x268)])(s[_0x45ca0b(0x23a)],{'variant':_0x45ca0b(0x703),'disabled':_0x2dfb7c||!_0x3bc142,'onClick':()=>_0x12bddc(void 0x0),'children':_0x54134e['t'](_0x45ca0b(0x529))}),(0x0,d[_0x45ca0b(0x634)])(_0x45ca0b(0x664),{'className':_0x45ca0b(0x6eb),'children':[(0x0,d[_0x45ca0b(0x268)])(s[_0x45ca0b(0x23a)],{'disabled':_0x2dfb7c,'onClick':_0x2dad60,'children':_0x54134e['t'](_0x45ca0b(0x2f5))}),(0x0,d[_0x45ca0b(0x268)])(s[_0x45ca0b(0x23a)],{'variant':_0x45ca0b(0x3e0),'disabled':_0x2dfb7c||!_0x39914b||_0x93032a,'onClick':()=>_0x12bddc(_0x39914b),'children':_0x54134e['t']('sheets-pivot-ui.dialog.filter.confirm')})]})]})]});}function $n(_0x479a8a){const _0x4c9126=_0x15a2ed;let {dialogId:_0x13b5a6=b,filterItemInfo:_0x463c75,onClose:_0x399d88,onSetFilter:_0x2d323e,onSetSort:_0x3793f6,onSetDateFilter:_0x2d3208,unitId:_0x44eb92,subUnitId:_0x10532b}=_0x479a8a,{format:_0x40afa0,filterInfo:_0x420743,sortInfo:_0x18a389}=_0x463c75,_0x2c6bb9=_0x463c75['conditionFilter']??_0x420743,_0x1b9f12=(0x0,i[_0x4c9126(0x50b)])(n[_0x4c9126(0x256)]),_0x2f1dbd=(0x0,i[_0x4c9126(0x50b)])(n[_0x4c9126(0x58a)]);(0x0,i[_0x4c9126(0x600)])(_0x2f1dbd[_0x4c9126(0x44b)]);let _0x13d293=(0x0,i[_0x4c9126(0x50b)])(i[_0x4c9126(0x3fe)]),_0x125060=(0x0,i[_0x4c9126(0x50b)])(n[_0x4c9126(0x4c5)]),_0x4ad7c8=(0x0,i[_0x4c9126(0x600)])(_0x2f1dbd['direction$'],_0x2f1dbd[_0x4c9126(0x33e)]()),_0xf20eb2=(0x0,f[_0x4c9126(0x5d6)])(!0x0),[_0x114012,_0x30d211]=(0x0,f[_0x4c9126(0x6de)])(!0x1);(0x0,f[_0x4c9126(0x58b)])(()=>(_0xf20eb2[_0x4c9126(0x6c4)]=!0x0,()=>{const _0x3f1078=_0x4c9126;_0xf20eb2[_0x3f1078(0x6c4)]=!0x1;}),[]);let [_0x3543ae,_0x4742ef]=(0x0,f[_0x4c9126(0x6de)])(()=>_0x463c75?_0x463c75[_0x4c9126(0x2e2)]??(_0x420743==null?void 0x0:_0x420743['list'])??_0x463c75[_0x4c9126(0x671)]:[]),[_0x9cdda,_0x108c7d]=(0x0,f[_0x4c9126(0x6de)])(()=>_0x463c75[_0x4c9126(0x35b)]??[]),_0x48f298=_0x9cdda['length']===0x0&&_0x3543ae[_0x4c9126(0x714)]===_0x463c75[_0x4c9126(0x671)][_0x4c9126(0x714)],_0x4b306a=_0x3543ae['length']===0x0&&_0x9cdda[_0x4c9126(0x714)]===0x0,[_0x594346,_0x12ba6a]=(0x0,f[_0x4c9126(0x6de)])(()=>{const _0x286d10=_0x4c9126;if(_0x463c75)return _0x18a389==null?void 0x0:_0x18a389[_0x286d10(0x4a9)];}),_0xfc5b=()=>{const _0x402dc9=_0x4c9126;_0xf20eb2['current']&&(_0xf20eb2['current']=!0x1,_0x399d88?_0x399d88():_0x13d293[_0x402dc9(0x3ff)](_0x13b5a6));};if((0x0,f['useEffect'])(()=>{const _0x3088e0=_0x4c9126;let _0x13f473=_0x125060[_0x3088e0(0x55a)](n['UniverInstanceType'][_0x3088e0(0x1d6)]);if(!_0x13f473)return;let _0x1b378f=_0x13f473['activeSheet$'][_0x3088e0(0x6f3)](_0x5d0a03=>{const _0x57fb03=_0x3088e0;_0x5d0a03&&_0x5d0a03[_0x57fb03(0x372)]()!==_0x10532b&&_0xf20eb2[_0x57fb03(0x6c4)]&&(_0xf20eb2[_0x57fb03(0x6c4)]=!0x1,_0x399d88?_0x399d88():_0x13d293[_0x57fb03(0x3ff)](_0x13b5a6));});return()=>_0x1b378f==null?void 0x0:_0x1b378f[_0x3088e0(0x65e)]();},[_0x13b5a6,_0x13d293,_0x399d88,_0x10532b,_0x125060]),!_0x463c75)return;let _0xdd12ed=()=>{const _0x9bc7c2=_0x4c9126;_0x108c7d([]),_0x4742ef(_0x48f298?[]:_0x463c75[_0x9bc7c2(0x671)]);},_0x152569=_0x51af75=>{const _0x1b0f10=_0x4c9126;_0x9cdda[_0x1b0f10(0x6a2)](_0x51af75)?(_0x108c7d(_0x9cdda[_0x1b0f10(0x3f8)](_0x371431=>_0x371431!==_0x51af75)),_0x4742ef([..._0x3543ae,_0x51af75])):_0x3543ae[_0x1b0f10(0x6a2)](_0x51af75)?_0x4742ef(_0x3543ae[_0x1b0f10(0x3f8)](_0x34550b=>_0x34550b!==_0x51af75)):_0x4742ef([..._0x3543ae,_0x51af75]);},_0x3f068c=async()=>{let {tableFieldId:_0x316ca7,pivotTableId:_0x164eb6}=_0x463c75;if(_0x316ca7&&_0x164eb6)try{(_0x2d323e?await _0x2d323e(_0x3543ae,_0x48f298,_0x9cdda):await _0x1b9f12['executeCommand'](t['SetPivotFilterCommand']['id'],{'unitId':_0x44eb92,'subUnitId':_0x10532b,'pivotTableId':_0x164eb6,'tableFieldId':_0x316ca7,'items':_0x3543ae,'partialItems':_0x9cdda,'isAll':_0x48f298}))&&_0xf20eb2['current']&&_0xfc5b();}catch{}},_0x47f5a9=()=>{_0xfc5b();},_0x33ebe7=async()=>{const _0x282c36=_0x4c9126;let {tableFieldId:_0x30f043,pivotTableId:_0x19987d}=_0x463c75;if(_0x30f043&&_0x19987d){_0x4742ef(_0x463c75[_0x282c36(0x671)]),_0x108c7d([]);try{(_0x2d323e?await _0x2d323e(_0x463c75[_0x282c36(0x671)],!0x0,[],!0x0):await _0x1b9f12['executeCommand'](t['SetPivotFilterCommand']['id'],{'unitId':_0x44eb92,'subUnitId':_0x10532b,'pivotTableId':_0x19987d,'tableFieldId':_0x30f043,'items':_0x463c75[_0x282c36(0x671)],'partialItems':[],'isAll':!0x0,'clearAllFilters':!0x0}))&&_0xf20eb2[_0x282c36(0x6c4)]&&_0xfc5b();}catch{}}},_0x54229c=async _0x38e0e0=>{const _0x20e822=_0x4c9126;let {tableFieldId:_0x19c889,pivotTableId:_0x1bb213}=_0x463c75;if(!_0x19c889||!_0x1bb213)return;let _0x50bbee={'type':_0x38e0e0};try{(_0x3793f6?await _0x3793f6(_0x50bbee):await _0x1b9f12[_0x20e822(0x2f0)](t['SetPivotSortCommand']['id'],{'unitId':_0x44eb92,'subUnitId':_0x10532b,'pivotTableId':_0x1bb213,'tableFieldId':_0x19c889,'info':_0x50bbee}))&&_0xf20eb2['current']&&(_0x12ba6a(_0x38e0e0),_0xfc5b());}catch{}},_0x2fd92b=Ut(_0x420743,{'items':_0x463c75['items'],'conditionFilter':_0x463c75['conditionFilter']});async function _0x1f1fa8(_0x5d6b81){const _0x2fd4fd=_0x4c9126;if(!_0xf20eb2[_0x2fd4fd(0x6c4)])return!0x1;let _0x5a7894=_0x2d3208?await _0x2d3208(_0x5d6b81):await _0x1b9f12['executeCommand'](t[_0x2fd4fd(0x237)]['id'],{'unitId':_0x44eb92,'subUnitId':_0x10532b,'pivotTableId':_0x463c75['pivotTableId'],'tableFieldId':_0x463c75['tableFieldId'],'filterInfo':_0x5d6b81});return _0x5a7894&&_0xf20eb2[_0x2fd4fd(0x6c4)]&&_0xfc5b(),_0x5a7894;}if(_0x114012){let _0x4ce868=_0x125060[_0x4c9126(0x657)](_0x44eb92),_0x2744eb=_0x463c75['itemTypes'][_0x4c9126(0x46c)](_0x21a591=>_0x21a591===e[_0x4c9126(0x332)][_0x4c9126(0x64c)]),_0x9289f3=Number(_0x463c75['items'][_0x2744eb]);return(0x0,d['jsx'])(Qn,{'dateSystem':(_0x4ce868==null?void 0x0:_0x4ce868[_0x4c9126(0x591)]())??n[_0x4c9126(0x53e)][_0x4c9126(0x492)],'defaultDate':Number[_0x4c9126(0x479)](_0x9289f3)?_0x9289f3:void 0x0,'currentFilter':(0x0,e['isPivotDateFilter'])(_0x2c6bb9)?_0x2c6bb9:void 0x0,'onConfirm':_0x1f1fa8,'onCancel':()=>_0x30d211(!0x1)});}return(0x0,d[_0x4c9126(0x634)])(_0x4c9126(0x664),{'dir':_0x4ad7c8,'children':[_0x463c75[_0x4c9126(0x4f0)]&&(0x0,d[_0x4c9126(0x268)])(s[_0x4c9126(0x23a)],{'className':_0x4c9126(0x385),'onClick':()=>_0x30d211(!0x0),'children':_0x2f1dbd['t'](_0x4c9126(0x4cc))}),(0x0,d[_0x4c9126(0x634)])(_0x4c9126(0x664),{'className':'univer-flex','children':[(0x0,d['jsxs'])(_0x4c9126(0x664),{'className':(0x0,s[_0x4c9126(0x5fe)])(_0x4c9126(0x432),s['borderClassName'],{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x594346===e[_0x4c9126(0x217)][_0x4c9126(0x21d)]}),'onClick':()=>_0x54229c(e[_0x4c9126(0x217)][_0x4c9126(0x21d)]),'children':[(0x0,d[_0x4c9126(0x268)])(u[_0x4c9126(0x54b)],{}),_0x2f1dbd['t'](_0x4c9126(0x6b0))]}),(0x0,d[_0x4c9126(0x634)])(_0x4c9126(0x664),{'className':(0x0,s[_0x4c9126(0x5fe)])('univer-flex\x20univer-h-8\x20univer-w-[140px]\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-r-md\x20univer-text-center\x20univer-text-sm\x20hover:univer-bg-gray-100\x20rtl:univer-rounded-l-md\x20rtl:univer-rounded-r-none\x20dark:hover:!univer-bg-gray-700',s[_0x4c9126(0x366)],{'univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x594346===e[_0x4c9126(0x217)][_0x4c9126(0x238)]}),'onClick':()=>_0x54229c(e['PivotDataFieldSortOperatorEnum'][_0x4c9126(0x238)]),'children':[(0x0,d['jsx'])(u['DescendingIcon'],{}),_0x2f1dbd['t'](_0x4c9126(0x433))]})]}),(0x0,d[_0x4c9126(0x268)])(_0x4c9126(0x664),{'className':(0x0,s['clsx'])('univer-mx-0\x20univer-mb-4\x20univer-mt-3\x20univer-h-[300px]\x20univer-rounded-lg\x20univer-p-2',s[_0x4c9126(0x366)]),'children':(0x0,d['jsxs'])(_0x4c9126(0x664),{'className':(0x0,s[_0x4c9126(0x5fe)])('univer-h-full\x20univer-overflow-y-auto',s['scrollbarClassName']),'children':[(0x0,d['jsx'])(_0x4c9126(0x664),{'className':_0x4c9126(0x31a),'children':(0x0,d[_0x4c9126(0x268)])(s[_0x4c9126(0x45d)],{'checked':_0x48f298,'onChange':_0xdd12ed,'indeterminate':!_0x48f298&&(_0x3543ae[_0x4c9126(0x714)]>0x0||_0x9cdda[_0x4c9126(0x714)]>0x0),'children':_0x2f1dbd['t'](_0x4c9126(0x22c))})}),_0x463c75['items']['map']((_0x77bb41,_0x3541e0)=>{const _0x1a21c2=_0x4c9126;var _0x179edf,_0x2cf38;let _0x1f55e9=_0x77bb41,_0x3a9f4e=(_0x179edf=_0x463c75[_0x1a21c2(0x562)])==null?void 0x0:_0x179edf[_0x77bb41],_0x2b27f7=(_0x2cf38=_0x463c75[_0x1a21c2(0x20e)])==null?void 0x0:_0x2cf38[_0x3541e0],_0x2be454=ht(_0x77bb41,_0x2b27f7);return _0x2be454?_0x1f55e9=_0x2f1dbd['t'](_0x2be454):_0x3a9f4e===void 0x0?_0x2b27f7===e[_0x1a21c2(0x332)]['date']&&_0x40afa0&&(_0x1f55e9=n[_0x1a21c2(0x5ef)][_0x1a21c2(0x67b)](_0x40afa0,Number(_0x77bb41))):_0x1f55e9=_0x3a9f4e,(0x0,d[_0x1a21c2(0x268)])(_0x1a21c2(0x664),{'className':_0x1a21c2(0x200),'children':(0x0,d[_0x1a21c2(0x268)])(s['Checkbox'],{'checked':_0x3543ae['includes'](_0x77bb41),'indeterminate':_0x9cdda['includes'](_0x77bb41),'onChange':()=>_0x152569(_0x77bb41),'contentClassName':'univer-max-w-[200px]\x20univer-truncate','children':_0x1f55e9})},_0x77bb41);})]})}),(0x0,d[_0x4c9126(0x634)])(s[_0x4c9126(0x2a2)],{'className':_0x4c9126(0x4a6),'children':[(0x0,d['jsx'])(_0x4c9126(0x664),{'className':_0x4c9126(0x34f),'children':(0x0,d[_0x4c9126(0x268)])(s['Button'],{'variant':_0x4c9126(0x703),'disabled':_0x2fd92b==='NotFilter','onClick':_0x33ebe7,'children':_0x2f1dbd['t'](_0x4c9126(0x529))})}),(0x0,d['jsxs'])(s[_0x4c9126(0x2a2)],{'className':_0x4c9126(0x51f),'children':[(0x0,d[_0x4c9126(0x268)])(s[_0x4c9126(0x23a)],{'onClick':_0x47f5a9,'children':_0x2f1dbd['t'](_0x4c9126(0x2f5))}),(0x0,d[_0x4c9126(0x268)])(s[_0x4c9126(0x23a)],{'variant':'primary','disabled':_0x4b306a,'onClick':_0x3f068c,'children':_0x2f1dbd['t'](_0x4c9126(0x288))})]})]})]});}function er({name:_0x4524a7,onConfirm:_0x5d7abd,onCancel:_0x4c7081}){const _0x178cef=_0x15a2ed;let _0xb5fa2f=(0x0,i[_0x178cef(0x50b)])(n[_0x178cef(0x58a)]),_0x6c4860=(0x0,i[_0x178cef(0x600)])(_0xb5fa2f[_0x178cef(0x4d2)],_0xb5fa2f[_0x178cef(0x33e)]()),[_0x6b0932,_0x47ea04]=(0x0,f[_0x178cef(0x6de)])(_0x4524a7),[_0x40b675,_0x5825b4]=(0x0,f[_0x178cef(0x6de)])(!0x1),_0x4ac0c8=(0x0,f[_0x178cef(0x5d6)])(!0x1);return(0x0,d[_0x178cef(0x634)])(_0x178cef(0x664),{'className':_0x178cef(0x5af),'dir':_0x6c4860,'children':[(0x0,d[_0x178cef(0x634)])('label',{'className':_0x178cef(0x67c),'children':[_0xb5fa2f['t']('sheets-pivot-ui.manualGroup.name'),(0x0,d['jsx'])(s[_0x178cef(0x6e8)],{'value':_0x6b0932,'onChange':_0x47ea04})]}),(0x0,d[_0x178cef(0x634)])(_0x178cef(0x664),{'className':_0x178cef(0x2dd),'children':[(0x0,d['jsx'])(s['Button'],{'onClick':_0x4c7081,'children':_0xb5fa2f['t'](_0x178cef(0x503))}),(0x0,d[_0x178cef(0x268)])(s[_0x178cef(0x23a)],{'variant':_0x178cef(0x3e0),'disabled':!_0x6b0932[_0x178cef(0x47a)]()||_0x40b675,'onClick':async()=>{const _0x1384e2=_0x178cef;if(_0x6b0932[_0x1384e2(0x47a)]()&&!_0x4ac0c8[_0x1384e2(0x6c4)]){_0x4ac0c8['current']=!0x0,_0x5825b4(!0x0);try{await _0x5d7abd(_0x6b0932);}catch{}finally{_0x4ac0c8[_0x1384e2(0x6c4)]=!0x1,_0x5825b4(!0x1);}}},'children':_0xb5fa2f['t']('sheets-pivot-ui.dialog.ok')})]})]});}function _0x3084(){const _0x4403bd=['pointerId','sheets-pivot-ui.dialog.source.intersect','defaultNormalField','TextIcon','univer-min-h-0\x20univer-flex-1','auto','PIVOT_PERFORM_CHECK','_initMoveRangeConfirmCheck','下午1:30:30','getPermissionPoint','sheets-pivot-ui.config.layoutOutline','SetPivotFilterCommand','interceptor','sheets-pivot-ui.subtotal.max','_selectionControl','width','useWholeDay','16px\x2016px\x200','Expand','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-0\x20dark:hover:!univer-bg-gray-700','addObjects','fieldsConfig','isolateTextForBidiContext','_cellHeight','Module','moveDown','UNIVER_SHEET_PIVOT_FIELD_SETTING_ID','dispose','dateNotBetween','svg','useRef','Dropdown','getMilliseconds','UNIVER_SHEET_PIVOT_PANEL_ID','onPointerDown$','sheets-pivot-ui.valueFilter.notEqual','defaultOverride','UNIVER_SHEET_PIVOT_VALUE_FILTER_DIALOG','left','sheets-pivot-ui.perform.blockedByPivot','startColumn','Shape','clip','PivotMultipleValueId','square','univer-mx-1.5\x20univer-my-0\x20univer-h-4\x20univer-text-xs\x20univer-text-gray-200\x20dark:!univer-text-gray-600','univer-mt-1\x20univer-text-xs\x20univer-text-gray-500','setConfig','reason','daysInterval','UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-my-3\x20univer-w-full\x20univer-shrink-0','menu','sheets-pivot-ui.msg.invalidSize','hiddenFields','numfmt','TimeInput','custom','sheets-pivot-ui.valueFilter.greaterThan','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-self-stretch','_clearButtons','BUTTON','drawWith','arcTo','sheets-pivot-ui.searchFieldPlaceholder','evenodd','isValueFilterOperator','draggingId','_registerComponents','toLocaleLowerCase','clsx','RadioGroup','useObservable','getPivotDisplayConfig','_pivotTablePanelVisible$','sheet.pivot.context-menu.show-data-as','Tools','univer-mb-2','univer-mb-2\x20univer-text-sm\x20univer-font-medium','getPivotAppliedRanges','memberPaths','sheets-pivot-ui.numberGroup.end','month','_initEditListener','sheets-pivot-ui.dialog.sourceName','sheets-pivot-ui.showValuesAs.percentOfRowTotal','isPivotDateGroupTypeDisabled','MobileActionRowGroup','selectedGroupId','map','Month','getUnitId','\x22#,##0.00)','sheets-pivot-ui.dialog.numfmt.thousandthPercentileDesc','MovePivotFieldCommand','sheets-pivot-ui.addToColumn','default','sheets-pivot-ui.config.pageSection','CustomCommandExecutionError','sheets-pivot-ui.showValuesAs.differenceFrom','sheets-pivot-ui.dialog.numfmt.decimalPlaces','bdi','diffValue','_initRowColOperationCheck','CommandType','sheets-pivot-ui.title','50985BYkdMk','ManualGroupMembers','getInterceptPoints','draggableId','sheets-pivot-ui.subtotal.average','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-py-4','sheets-pivot-ui.sourceFieldTile','univer-mb-2\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium','sheets-pivot-ui.showValuesAs.baseField','textKey','sheets-pivot-ui.dialog.numfmt.','Panel','list','0\x200\x2032\x2032','sheets-pivot-ui.config.layoutCompact','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','sheets-pivot-ui.config.allowMultipleFilters','PivotSubtotalPositionEnum','jsxs','value','sheet.numfmt.general','pointermove','sheets-pivot-ui.subtotal.count','M3.30363\x203C2.79117\x203\x202.51457\x203.60097\x202.84788\x203.99024L6.8\x208.60593V12.5662C6.8\x2012.7184\x206.8864\x2012.8575\x207.02289\x2012.9249L8.76717\x2013.7863C8.96655\x2013.8847\x209.2\x2013.7396\x209.2\x2013.5173V8.60593L13.1521\x203.99024C13.4854\x203.60097\x2013.2088\x203\x2012.6964\x203H3.30363Z','sheets-pivot-ui.config.dateGroupingLegacy','percentDifferenceFrom','onDblclick$','sheets-pivot-ui.configPanel','20px\x2024px\x200','sheet.operation.open-pivot-table-panel','PivotTableIcon','univer-flex\x20univer-h-[140px]\x20univer-flex-col\x20univer-items-center\x20univer-justify-center\x20univer-gap-1\x20univer-self-stretch\x20univer-px-2','_formatPainterService','selectionChanged$','univer-flex\x20univer-items-start\x20univer-gap-2\x20univer-text-sm','IConfigService','size','sheets-pivot-ui.config.pageWrap','sheets-pivot-ui.mobile.moveToColumn','MOVE','_initPrintArea','sheets-mobile-pivot-button-','date','univer-size-8','SetPivotLayoutCommand','col','getObservableWithExclusiveRange$','sheets-pivot-ui.dialog.format','univer-size-4\x20univer-shrink-0\x20univer-text-gray-500','univer-max-h-[40vh]\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','sheets-pivot-ui.manualGroup.groupTitle','UNIVER_SHEET_PIVOT_FIELD_NUMFMT_ID','confirm','getUnit','sheets-pivot-ui.showValuesAs.other','_sheetsSelectionsService','onPointerMove$','notBetween','getStyles','baseItem','unsubscribe','sheets-pivot-ui.numberGroup.start','_defaultOverride','sheet.operation.set-pivot-value-filter','@univerjs-pro/sheets-pivot-ui','_moveRowOrCol','div','sheets-pivot-ui.manualGroup.defaultName','sheets-pivot-ui.config.rowSubtotalTop','\x22#,##0.00','destination','drawNoSetting','1070xcAgwE','setControlExtensionDisable','split','sheet.pivot.context-menu.number-group','\x22#,##0.00_);-\x22','sheets-pivot-ui.valueFilter.ok','sheets-pivot-ui.mobile.filterDesc','items','valueFilter','univer-mb-4','pivot-value-filter-value-field','_cellWidth','getTime','defaultValueFieldId','FilterNoneSortDesc','collapse','grouping','format','univer-flex\x20univer-flex-col\x20univer-gap-2\x20univer-text-sm','WorksheetPivotTablePermission','Select','univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-1\x20dark:!univer-bg-gray-800','mainComponent','1.13965','groups','sheets-pivot-ui.dialog.numfmt.generalDesc','sheet.operation.ungroup-pivot-manual-group','sheets-pivot-ui.dialog.source.sourceData','sheets-pivot-ui.subtotal.countNums','#,##0.00_);[Red]#,##0.00','debounce','offsetX','merge','name','_configService','tap','checked','showColGrandTotal','sheet.operation.set-pivot-number-group','-1,234.56','87372cABAyB','UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG','sheets-pivot-ui.dialog.ok','params','section','SetCellEditVisibleOperation','sheet.operation.open-pivot-table-range-selector-panel','ISheetSelectionRenderService','stdDevp','command','stroke','_initContextMenu','cloneNode','interceptBeforeCommand','univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-gap-3\x20univer-rounded-xl\x20univer-px-2','info','includes','fieldset','univer-box-border\x20univer-h-[161px]\x20univer-w-full\x20univer-flex-col\x20univer-items-center\x20univer-justify-center\x20univer-overflow-x-hidden\x20univer-rounded-lg\x20univer-bg-gray-50\x20univer-py-2\x20dark:!univer-bg-gray-900','decimal','sheets-pivot-ui.dateFilter.from','filterFields','showRowGrandTotal','get','sheets-pivot-ui.noMatchingFields','area','sheets-pivot-ui.dialog.fieldName','sheet.pivot.context-menu.manual-ungroup','univer-flex\x20univer-min-h-12\x20univer-items-center\x20univer-px-2','_controlPointerDownHandler','sheets-pivot-ui.dialog.filter.ascending','univer-flex\x20univer-flex-col\x20univer-gap-3','invalidSelection','sheets-pivot-ui.config.pageWrapDownThenOverHelp','sheets-pivot-ui.config.layoutTabular','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm','sheets-pivot-ui.sourceRangePlaceholder','other','NumberIcon','onPointerEnter','percent','addObject','excelDateTimePartsToSerial','removeEventListener','rowSubtotalPosition','UniverSheetsUIPlugin','[MobilePivotConfigPanel]','source-','sheet.numfmt.accounting','input','current','RemovePivotTableMutation','sheets-pivot-ui.dialog.numfmt.date','sheets-pivot-ui.mobile.columnDesc','sheets-pivot-ui.valueDesc','COLUMN','outline','sheets-pivot-ui.config.rowSubtotalBottom','upper','year','onPointerEnter$','valueLessThanOrEqual','collection','MoreDownIcon','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20active:univer-bg-gray-100\x20dark:active:!univer-bg-gray-700','IMessageService','univer-flex\x20univer-flex-col\x20univer-gap-5','call','compilePivotDateFilter','PivotDateGroupingMode','All','addHook','_themeService','univer-flex\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-2','add','univer-ml-3\x20rtl:univer-ml-0\x20rtl:univer-mr-3','useState','sheets-pivot-ui.dateFilter.beforeOrEqual','pivot','[MobilePivotPanel]','percentRunningTotal','ContextMenuGroup','remove','univer-p-4\x20univer-text-center\x20univer-text-sm\x20univer-text-gray-500','sheets-pivot-ui.mobile.delete','sheets-pivot-ui.dateGroup.hour','Input','univer-h-8\x20univer-rounded-md\x20univer-border\x20univer-border-gray-300\x20univer-bg-gray-0\x20univer-px-2\x20univer-text-sm\x20univer-text-gray-900\x20dark:univer-bg-gray-700\x20dark:univer-text-gray-0','sheets-pivot-ui.dateFilter.between','univer-flex\x20univer-gap-2','univer-w-40','tableFieldId','context','AddPivotFieldCommand','onPointerDown','greaterThanOrEqual','dataset','subscribe','subscribeEvent','#,##0.00_);-#,##0.00','sheets-pivot-ui.dialog.numfmt.thousandthPercentile','sheets-pivot-ui.dateGroup.monthDate','getSheetBySheetId','_targetRange','dateOlderThan','isPatternEqualWithoutDecimal','sheets-pivot-ui.config.pageDirection','sheets-pivot-ui.showValuesAs.normal','markDirty$','sheets-pivot-ui.config.showColSubtotal','showDataAs','floor','univer-rounded-lg\x20univer-p-2','link','none','M2.69779\x2010.0113C2.40546\x2010.0113\x202.16847\x209.77429\x202.16847\x209.48196C2.16847\x209.18962\x202.40546\x208.95264\x202.69779\x208.95264H6.67804C6.89213\x208.95264\x207.08514\x209.0816\x207.16707\x209.2794C7.249\x209.47719\x207.20371\x209.70486\x207.05233\x209.85624L3.97569\x2012.9329H6.67804C6.97038\x2012.9329\x207.20736\x2013.1699\x207.20736\x2013.4622C7.20736\x2013.7545\x206.97038\x2013.9915\x206.67804\x2013.9915H2.69779C2.4837\x2013.9915\x202.29069\x2013.8626\x202.20876\x2013.6648C2.12684\x2013.467\x202.17212\x2013.2393\x202.32351\x2013.0879L5.40015\x2010.0113H2.69779Z','MoveRangeCommand','RemoveRowCommand','WorkbookEditablePermission','version','ST_PivotFilterOperatorEnum','px,\x20','1.5.1','univer-overflow-auto','SheetsSelectionsService','sheets-pivot-ui.config.displaySection','UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG_ID','NumberGroupDefaults','_contextMenuController','getActiveSheet','length','getConfig','fetchThroughAsyncInterceptors','M\x22月\x22d\x22日\x22','_hovered','sheet-pivot.confirm.disable-multiple-filters','sheets-pivot-ui.maxName','_initUIInterceptListener','px)','_sheetsRenderService','span','_closePivotPanel','PivotExcelDateGroupUnit','univer-text-xs\x20univer-text-gray-600\x20dark:!univer-text-gray-200','bottom','sum','_sheetPrintInterceptorService','preventDefault','HasFilter','univer-mt-5','dataTransfer','SheetInterceptorService','onStarting','all','touchDependencies','menuPosition','1,235','repeatColLabels','target','slice','sheets-pivot-ui.fieldSettings','sheets-pivot-ui.valueFilter.between','clientY','open','removeAlert','RecordValueType','addClipboardHook','localeKey','sheets-pivot-ui.config.pageOverThenDown','valueLessThan','0\x2024px\x2020px','sheets-pivot-ui.countNumsName','push','univer-w-full','UNIVER_SHEET','UpdatePivotTableSourceRangeCommand','sheets-pivot-ui.dateFilter.afterOrEqual','sheets-pivot-ui.manualGroup.ungroupTitle','univer-w-36','sheets-pivot-ui.value','_scenePointerUpSubscribe','fillStyle','gray.50','\x22#,##0.00_);\x22','_dialogService','univer-w-[14px]\x20univer-text-sm\x20univer-text-gray-200','univer-mb-2\x20univer-mt-0\x20univer-flex\x20univer-w-full\x20univer-text-sm\x20univer-leading-4\x20univer-text-gray-900','targetFieldId','ThemeService','_pivotParams','PivotDataFieldTypeEnum','itemType','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','isCount','PivotLayoutTypeEnum','getCurrentRangeDisable$','ColumnIcon','count','sheets-pivot-ui.addToValue','InsertColCommand','[data-univer-dnd-item=\x22true\x22]','reduce','univer-flex\x20univer-min-w-0\x20univer-flex-col\x20univer-gap-3','pointercancel','sheets-pivot-ui.config.dateGroupingSwitchMessage','M12.2517\x202.6863C12.2517\x202.35493\x2012.5203\x202.0863\x2012.8517\x202.0863H27.9582C29.0628\x202.0863\x2029.9582\x202.98173\x2029.9582\x204.0863V8.73627C29.9582\x209.06764\x2029.6896\x209.33627\x2029.3582\x209.33627H12.8517C12.5203\x209.33627\x2012.2517\x209.06764\x2012.2517\x208.73627L12.2517\x202.6863Z','PivotShowAsBaseItemTypeEnum','sheets-pivot-ui.mobile.moveUp','FilteredSortDesc','WorksheetViewPermission','sheets-pivot-ui.perform.tips','sheets-pivot-ui.showValuesAs.title','sheets-pivot-ui.manualGroup.renameTitle','(1,235)\x20','sheets-pivot-ui.dialog.numfmt.formatTypes','Radio','univer-mb-1\x20univer-box-border\x20univer-h-7\x20univer-py-1\x20univer-pl-[22px]\x20univer-pr-1\x20univer-text-sm\x20rtl:univer-pl-1\x20rtl:univer-pr-[22px]','sourceRangeInfo','endColumn','valueFieldId','complete','univerDndDroppableId','createContext','percentOfParentRowTotal','scale','univer-box-border\x20univer-h-8','getCurrentLastSelection','PivotCellStyleTypeEnum','sheets-pivot-ui.showValuesAs.percentOfParent','startY','itemTypes','pointerType','lower','sheets-pivot-ui.mobile.moveDown','Legacy','UpdatePivotFieldSettingCommand','next','univer-min-w-0\x20univer-flex-1','2.2793','PivotDataFieldSortOperatorEnum','scene','isBetween','Subtotal','Injector','univer-group\x20univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-flex-row\x20univer-items-center\x20univer-rounded-md\x20univer-px-1\x20univer-py-2\x20univer-leading-4\x20univer-transition-all\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','ascending','currencySymbols','sheets-pivot-ui.valueFilter.clear','shouldClear','univer-py-4\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-500','sheets-pivot-ui.dateGroup.hourMinute','_pivotSelectionMoveShape','maxDecimals','redos','colRanges','pbt','0.9','univer-w-24','sheets-pivot-ui.perform.info','getScrollXYInfoByViewport','sheets-pivot-ui.dialog.filter.selectAll','sheets-pivot-ui.config.multipleFiltersTitle','1930-08-05','PivotTableFiledAreaEnum','isBottomTotal','lineTo','valueNotBetween','expandToContinuousRange','onPointerLeave','RecordFilter','CustomFilter','SetPivotDateFilterCommand','descending','CURSOR_TYPE','Button','ManualFilter','getValue','21.9404','showRowSubtotal','day','effectAllowed','closest','range','UniverInstanceType','25.959','SheetsPivotTableUIMenuSchema','PivotFilterTypeEnum','sheets-pivot-ui.moveToColumn','SHEET_PIVOT_MOVE_KEY','ORGANIZATION','sheets-pivot-ui.averageName','time','units','sheets-pivot-ui.countName','conditionFilter','min','_setPivotTableId','EMPTY','pivotTablePanelVisible$','Collapse','pipe','dateEqual','ICommandService','source','Existing','sheet-pivot.confirm.change-date-grouping-mode','sheets-pivot-ui.dateGroup.yearMonthDate','resolvePivotValueFilterTarget','resolvePivotSheetCell','getCollection','univer-flex\x20univer-h-12\x20univer-w-full\x20univer-items-center\x20univer-gap-2\x20univer-rounded-xl\x20univer-border-0\x20univer-bg-transparent\x20univer-px-3\x20univer-text-left\x20univer-text-sm','SearchIcon','pivotTableId','RemovePivotFieldCommand','M5.51638\x202.58693C5.23363\x201.81542\x204.14248\x201.81543\x203.85973\x202.58693L2.13245\x207.29995C2.03185\x207.57443\x202.17281\x207.87849\x202.4473\x207.97909C2.72178\x208.07969\x203.02584\x207.93872\x203.12644\x207.66424L3.64346\x206.25351L3.64504\x206.25351H5.73266L6.24968\x207.66424C6.35027\x207.93872\x206.65433\x208.07969\x206.92882\x207.97909C7.2033\x207.87849\x207.34426\x207.57443\x207.24367\x207.29995L5.51638\x202.58693ZM5.34467\x205.19487L4.68806\x203.40325L4.03144\x205.19487H5.34467Z','keys','useMemo','reCalculate','PIVOT_DATE_GROUP_TYPES','mapPivotSheetColumn','jsx','sheets-pivot-ui.dialog.source.existingSheet','transformByState','paths','sheets-pivot-ui.mobile.rowDesc','sheets-pivot-ui.removeField','univer-mb-2\x20univer-flex\x20univer-h-5\x20univer-justify-between\x20univer-text-sm\x20univer-leading-5','drawCollapse','showColSubtotal','_sheetInterceptorService','sheets-pivot-ui.dialog.numfmt.accountingDesc','bottomPercent','sheets-pivot-ui.filterDesc','sortInfo','ERROR','sheets-pivot-ui.showValuesAs.cancel','Value','RangeSelector','save','univer-my-1\x20univer-text-xs\x20univer-text-red-500','small','sheets-pivot-ui.config.layout','toPrimitive','_closePanel','sheets-pivot-ui.dialog.numfmt.currency','rowRanges','sheets-pivot-ui.showValuesAs.dialogTitle','item-or-relative','decorate','getSelectionControls','deepClone','generateMutationsByRanges','sheets-pivot-ui.dialog.filter.confirm','rankDescending','univer-mb-2\x20univer-mt-0\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getIntersectsPivotTable','destructive','disposeWithMe','sheets-pivot-ui.mobile.moveToRow','getPivotDateGroupingMode','Filter','row','M2\x2012.3661C2\x2012.0347\x202.26863\x2011.7661\x202.6\x2011.7661H9.24705C9.57842\x2011.7661\x209.84705\x2012.0347\x209.84705\x2012.3661V29.278C9.84705\x2029.6093\x209.57842\x2029.878\x209.24705\x2029.878H4C2.89543\x2029.878\x202\x2028.9825\x202\x2027.878V12.3661Z','currentSelectionParam','string','cellHeight','scrollbarClassName','\x22#,##0.00_);(\x22','sourceFieldId','univer-flex\x20univer-flex-col\x20univer-gap-1','vertical','_sheetsPivotTableService','translate(','getName','univer-flex\x20univer-gap-3','onFocusChange','sheet.numfmt.thousandthPercentile','sheets-pivot-ui.dialog.numfmt.confirm','ActionRow','selectionMoveEnd$','InitializePivotRuntimeLocalMutation','_moveStartCellIndex','[PivotPanel]','setIsRangeSelector2Focus','_sheetsPivotTableConfigModel','univer-mt-2\x20univer-w-full','_permissionService','useContext','univer-w-32','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','AddPivotTableCommand','univer-mt-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheets-pivot-ui.sumName','hasPivotMultipleFilters','between','getCellIndexByOffset','pivotParams','sheets-pivot-ui.valueFilter.dialogTitle','getPivotTableConfig','FilterIcon','compact','draggingOver','univer-flex\x20univer-justify-between\x20univer-gap-3','_UI_PLUGIN','sheets-pivot-ui.showValuesAs.percentOf','Error','setTimeout','sheets-pivot-ui.msg.emptySourceRange','droppableProps','UNIVER_SHEET_PIVOT_SHOW_DATA_AS_DIALOG','SheetPermissionCheckController','measure','dimension','UNIVER_SHEET_PIVOT_NUMBER_GROUP_DIALOG_ID','151NeNxQh','sheets-pivot-ui.subtotal.sum','pivotConfigChange$','rect','sheets-pivot-ui.showValuesAs.percentOfParentColumnTotal','PivotShowAsTypeEnum','sheets-pivot-ui.stdDevName','sheets-pivot-ui.perform.confirm','startWith','topCount','sheets-pivot-ui.perform.cancel','univer-flex\x20univer-flex-col\x20univer-gap-2','_registerIcons','baseFieldId','startsWith','defer','sheets-pivot-ui.valueFilter.topCount','numberGroupField','Second','univer-w-4\x20univer-text-base\x20univer-text-primary-600','_initBlockedPivotAlert','dateBetween','isArray','univer-flex\x20univer-justify-end\x20univer-gap-3','univer-mb-2\x20univer-mt-5\x20univer-h-5\x20univer-text-sm\x20univer-font-medium','_registerCommands','intersects','sheets-pivot-ui.perform.blocked','checkedItems','FilteredSortNone','_movePivotId','#,##0_);(#,##0)','asObservable','pointerup','univer-rounded-xl\x20univer-p-2','getBoundingClientRect','univer-relative\x20univer-flex\x20univer-h-8\x20univer-w-full\x20univer-items-center\x20univer-gap-1\x20univer-self-stretch\x20univer-border\x20univer-border-transparent\x20univer-p-0.5\x20univer-leading-4\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','generateRandomId','sheets-pivot-ui.valueFilter.bottomPercent','univer-ml-1\x20univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-md\x20univer-transition-opacity\x20hover:univer-bg-gray-200\x20rtl:univer-ml-0\x20rtl:univer-mr-1\x20dark:hover:!univer-bg-gray-700','sheets-pivot-ui.config.showColGrandTotal','RowIcon','executeCommand','FilteredSortAsc','univer-mt-4','sheets-pivot-ui.dateGroup.autoEnd','M11.9003\x2013.7046C11.9003\x2013.9969\x2011.6633\x2014.2339\x2011.371\x2014.2339C11.0787\x2014.2339\x2010.8417\x2013.9969\x2010.8417\x2013.7046V3.57272L9.74577\x204.66862C9.53906\x204.87534\x209.20391\x204.87534\x208.9972\x204.66862C8.79048\x204.46191\x208.79048\x204.12676\x208.9972\x203.92005L10.9969\x201.92039C11.2036\x201.71368\x2011.5387\x201.71368\x2011.7454\x201.92039L13.7451\x203.92005C13.9518\x204.12676\x2013.9518\x204.46191\x2013.7451\x204.66862C13.5384\x204.87534\x2013.2032\x204.87534\x2012.9965\x204.66862L11.9003\x203.57243V13.7046Z','sheets-pivot-ui.dialog.filter.cancel','sheets-pivot-ui.dateGroup.second','univer-flex\x20univer-h-10\x20univer-items-center\x20univer-gap-2\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-font-semibold','runningTotal','checkRangesEditablePermission','startX','_initPanelOpen','yyyy-MM-dd','Segmented','sheets-pivot-ui.showValuesAs.rankAscending','moveToRow','univer-text-xs\x20univer-text-gray-500','UNIVER_SHEET_PIVOT_FILTER_PANEL','relative:next','univer-text-primary-600','(1,235)','end','ArrowLeftIcon','sheets-pivot-ui.config.totalsSection','sheets-pivot-ui.msg.editCellError','toString','product','#D8D8D8','catch','_initSheetChange','onPointerUp$','sheet.numfmt.currency','_moveType','registerCommand','percentOfParent','numberGroupDefaults','DatePicker','univer-inline-block\x20univer-align-top','UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL_ID','subUnitId','valueGreaterThanOrEqual','_controlMoving','univer-mb-1\x20univer-box-border\x20univer-h-7\x20univer-py-[5px]\x20univer-pl-[22px]\x20univer-pr-1\x20univer-text-sm\x20rtl:univer-pl-1\x20rtl:univer-pr-[22px]','_iconManager','下午01:30','IMEInputCommand','SheetSkeletonManagerService','13:30','drawIconByPath','SheetsRenderService','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','sheets-pivot-ui.dateFilter.to','packageName','sheets-pivot-ui.dateFilter.failed','_getPivotAppliedRanges','M12.2637\x202.6863C12.2637\x202.35493\x2012.5323\x202.0863\x2012.8637\x202.0863H27.9702C29.0748\x202.0863\x2029.9702\x202.98173\x2029.9702\x204.0863V8.73627C29.9702\x209.06764\x2029.7016\x209.33627\x2029.3702\x209.33627H12.8637C12.5323\x209.33627\x2012.2637\x209.06764\x2012.2637\x208.73627L12.2637\x202.6863Z','bottomCount','interval','_(\x22','valueEqual','7.59766','percentOf','countNums','UniverSheetsMobileUIPlugin','Minute','onSteady','PivotDataFieldDataTypeEnum','ExcelLike','UpdatePivotValuePositionCommand','sidebarOptions$','baseItemMode','rowType','DEFAULT','opacity','2147483647','isPivotDateFilter','0px','sheets-pivot-ui.valueFilter.selectValueField','getDirection','ComponentManager','FromArray','sheets-pivot-ui.numberGroup.interval','univer-box-border\x20univer-h-full\x20univer-px-2','displayName','UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG_ID','sheets-pivot-ui.moveToRow','defineProperty','addEventListener','PositionType','6187300QdQKmo','sheets-pivot-ui.dateFilter.wholeDay','takeUntil','pageWrap','true','[PivotFilterOptions]','univer-cursor-pointer\x20univer-text-xs\x20univer-text-primary-600','currentFilter','legend','sheets-pivot-ui.config.dateGroupingExcelLike','univer-truncate','sheet-pivot.confirm.add-sheet-pivot','group','_initFormatPainterListener','moveToValue','univer-mb-1\x20univer-mt-0\x20univer-text-sm\x20univer-font-medium\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','rename','getAncestorScale','partialItems','setShapeProps','valueFields','offsetY','#ECECEC','Disposable','SetPivotCollapseCommand','getPivotItemRenderInfoCache','IFormatPainterService','some','_draw','borderClassName','unitDisposed$','sheet.numfmt.date','rtl','_closeChildDialogs','sheets-pivot-ui.showValuesAs.percentOfColumnTotal','thousandthPercentile','ContextMenuPosition','sheet.operation.set-pivot-date-group','makeDirty','repeatRowLabels','univer-text-sm\x20univer-font-medium\x20univer-leading-5\x20univer-text-gray-900','getSheetId','sheets-pivot-ui.dateGroup.title','univer-flex\x20univer-min-h-10\x20univer-items-center\x20univer-justify-between\x20univer-gap-3','_initSkeleton','#274FEE','column','yyyy\x22年\x22MM\x22月\x22dd\x22日\x22','expected','[sheets-pivot-ui]:\x20Pivot\x20render\x20cache\x20is\x20unavailable','_openPivotActionPanel','univer-flex\x20univer-size-full\x20univer-min-h-0\x20univer-flex-col','sheets-pivot-ui.valueFilter.bottomCount','sheet.pivot.context-menu.manual-rename','draggableProps','false','SheetsPivotTableConfigModel','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','GlobalConfig','find','univer-mb-3\x20univer-w-full','sheets-pivot-ui.dialog.numfmt.cancel','excelLike','serializeRangeWithSheet','DragDropContext','univer-my-3\x20univer-w-full\x20univer-shrink-0','A/P\x20hh:mm','setCursor','_selectionRenderService','sheet.operation.rename-pivot-manual-group','allowMultipleFilters','sheets-pivot-ui.showValuesAs.previous','sheets-pivot-ui.fieldPanel','PivotSubtotalTypeEnum','univer-mb-2\x20univer-h-5\x20univer-text-sm\x20univer-font-medium','currentDateType','setDragImage','sheets-pivot-ui.valueFilter.notBetween','autoEnd','univerDndId','result','New','sheets-pivot-ui.dateGroup.month','rangesInfo','univer-flex\x20univer-items-center\x20univer-gap-1.5\x20univer-self-stretch\x20univer-rounded-md\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-capitalize\x20univer-leading-5','Vector2','_menuManagerService','SetPivotValueFilterCommand','getMinutes','autoStart','sheets-pivot-ui.subtotal.stdDev','rankAscending','getSeconds','sheet.pivot.context-menu.excel-date-group','getPivotTableCellData','MM-dd\x20A/P\x20hh:mm','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-3\x20univer-text-sm','SelectList','DisposableCollection','moveToFilter','sheets-pivot-ui.config.pageDownThenOver','operator','0.95','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-self-stretch\x20univer-border\x20univer-border-transparent\x20univer-p-0.5\x20univer-leading-4\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','setData','WorksheetFilterPermission','label','dataFieldType','dateNewerThanOrEqual','endRow','univer-inline-flex\x20univer-flex-col\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20univer-shadow-lg','permissionPointUpdate$','univer-mt-2\x20univer-text-xs\x20univer-text-red-500','originalFieldId','forValue','object','viewUpdate$','sheets-pivot-ui.dialog.numfmt.currencyTypes','univer-p-4\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-500','unit','sheets-pivot-ui.dateGroup.day','0\x2016px\x2016px','[MobilePivotSourceRange]','mapPivotSheetRange','asyncInterceptor','requiresParameters','suffix','sheet.pivot.context-menu.value-filter','useCallback','_sheetClipboardService','univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','isSingleCellSelection','AddWorksheetMergeMutation','register','sheetName','_skeletonManagerService','pointerEvents','isDraggingOver','replace','moveUp','style','univer-h-40\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-rounded-lg','FilterNoneSortAsc','Quarter','UNIVER_SHEET_PIVOT_MOBILE_ACTION_PANEL','GrandTotal','UniverSheetsPivotTablePlugin','isBottom','isInteger','MoreHorizontalIcon','transform','primary','previous','Column','positionInfo','IPermissionService','PivotDrillDownCommand','univer-text-sm\x20univer-text-gray-600','MAIN_AREA','from','clientX','DROP','univer-text-sm\x20univer-font-medium','toDisposable','RibbonDataGroup','ΣValue','tableFieldInfo','univer-mb-4\x20univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','ILogService','_pivotButtonShapesArr','sheets-pivot-ui.sourceRangeLabel','boxSizing','sheets-pivot-ui.dialog.source.position','UNIVER_SHEET_PIVOT_EXCEL_DATE_GROUP_DIALOG','sheets-pivot-ui.varpName','filter','textGroupField','_adaptorModel','DescendingIcon','ungroup','M12.4008\x2013.1831C12.6907\x2013.1831\x2012.9258\x2012.9481\x2012.9258\x2012.6581V4.60873L14.013\x205.69597C14.218\x205.901\x2014.5505\x205.901\x2014.7555\x205.69597C14.9605\x205.49094\x2014.9605\x205.15853\x2014.7555\x204.95351L12.7721\x202.97017C12.5671\x202.76515\x2012.2347\x202.76515\x2012.0297\x202.97017L10.0463\x204.95351C9.84132\x205.15853\x209.84132\x205.49094\x2010.0463\x205.69597C10.2514\x205.901\x2010.5838\x205.901\x2010.7888\x205.69597L11.8758\x204.60901V12.6581C11.8758\x2012.9481\x2012.1108\x2013.1831\x2012.4008\x2013.1831Z','IDialogService','close','stopPropagation','item:','targetFieldName','minutes','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','positionType','univer-flex\x20univer-h-8\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-gap-1.5\x20univer-rounded\x20univer-border-none\x20univer-bg-gray-0\x20univer-px-3\x20univer-text-primary-600','SetPivotNumberGroupCommand','sheets-pivot-ui.config.repeatRowLabels','M12.2983\x2012.4011C12.2982\x2012.0697\x2012.5669\x2011.8009\x2012.8983\x2011.8009L29.3931\x2011.8009C29.7243\x2011.8009\x2029.9929\x2012.0694\x2029.9931\x2012.4007L29.9993\x2027.9129C29.9997\x2029.0178\x2029.1042\x2029.9137\x2027.9993\x2029.9137H12.9051C12.5738\x2029.9137\x2012.3053\x2029.6452\x2012.3051\x2029.314L12.2983\x2012.4011Z','drawExpand','COL_HEADER','columnFields','_buttonShapes','setIsRangeSelectorFocus','-9999px','_initButtonRender','univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','currentTarget','Subject','RangeProtectionPermissionViewPoint','strokeStyle','UniverSheetsPivotTableUIPlugin','SHEET_PIVOT_BLOCKED:','Draggable/Droppable\x20must\x20be\x20used\x20inside\x20DragDropContext','univer.sheet.pivot-table-range-selector','resolve','univer-mb-5\x20univer-mt-2\x20univer-box-border\x20univer-h-8\x20univer-w-full\x20univer-rounded-md\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5','Year','unionPivotViewRange','sheets-pivot-ui.subtotal.varp','FilterPartial','univer-flex\x20univer-flex-col\x20univer-gap-5\x20univer-py-4','generateHexNumber','closePath','sheets-pivot-ui.dateFilter.after','1,234.56','fieldIds','number','unitId','toStringTag','sheets-pivot-ui.config.dateGroupingMode','index','getCellWithCoordByIndex','13:30:30','PIVOT_OPTION_FILTER_COORDINATION','sheets-pivot-ui.config.showRowSubtotal','sheets-pivot-ui.dialog.numfmt.general','valueNotEqual','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-self-stretch\x20univer-leading-5','univer-flex\x20univer-h-8\x20univer-w-[140px]\x20univer-flex-1\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded-l-md\x20univer-text-center\x20univer-text-sm\x20hover:univer-bg-gray-100\x20rtl:univer-rounded-l-none\x20rtl:univer-rounded-r-md\x20dark:hover:!univer-bg-gray-700','sheets-pivot-ui.dialog.filter.descending','sheets-pivot-ui.dialog.numfmt.dateDesc','varp','Inject','_handlePointerUp','_updatePivotSort','SetPivotOptionCommand','values','getCoordByOffset','sheets-pivot-ui.dialog.source.newSheet','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-600','_registerRenderModules','sheets-pivot-ui.dateGroup.end','valueGreaterThan','_mergeCellController','exec','sheets-pivot-ui.config.pageWrapOverThenDownHelp','_scenePointerMoveSubscribe','stringify','yyyy/MM/dd','_initListener','M1.28069\x204.85447C0.842195\x204.33439\x201.21191\x203.5391\x201.89218\x203.5391H8.59333C9.2736\x203.5391\x209.64331\x204.33439\x209.20482\x204.85447L6.51052\x208.0501V11.6601C6.51052\x2012.2245\x205.94174\x2012.6114\x205.41683\x2012.404L4.48092\x2012.0343C4.1756\x2011.9136\x203.97498\x2011.6187\x203.97498\x2011.2904V8.0501L1.28069\x204.85447Z','elementFromPoint','_cellAlerts','currentLocale$','sheets-pivot-ui.dateFilter.date','test','getColorFromTheme','_sidebarService','boolean','InputNumber','RANGE_TYPE','univer-mt-4\x20univer-flex\x20univer-h-[calc(100%-16px)]\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','univer-flex\x20univer-flex-row\x20univer-gap-4','BLANK_PLACEHOLDER','Day','sheets-pivot-ui.dialog.filter.blank','univer-max-w-[66px]\x20univer-flex-1\x20univer-shrink-0\x20univer-truncate\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-800\x20dark:!univer-text-gray-100','realContain','sheetId','1930/08/05','sheets-pivot-ui.valueFilter.equal','Checkbox','lineWidth','dragover','sheets-pivot-ui.config.dateGroupingSwitchTitle','Rectangle','univer-text-center\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getCoordByCell','sheets-pivot-ui.valueFilter.valueField','univer-relative\x20univer-h-full\x20univer-overflow-y-auto','dateRange','_context','visible','accounting','InsertTextCommand','height','findIndex','blank','field-setting-','getRange','sheet.operation.set-pivot-show-data-as','settings','path','border-box','percentOfParentColumnTotal','panel','setFullYear','_initMenu','deserializeRangeWithSheet','isFinite','trim','sheets-pivot-ui.valueFilter.title','targetCellInfo','position','getHours','sheets-pivot-ui.multipleValue','_renderManagerService','sheets-pivot-ui.filterField','symbol','droppableId','sheets-pivot-ui.subtotal.stdDevp','http://www.w3.org/2000/svg','_sheetsPivotTableAdaptorModel','sheets-pivot-button-','sheets-pivot-ui.dateGroup.minute','debounceTime','percentOfRowTotal','SetPivotDateGroupCommand','NotFilter','resolvePivotValueFieldId','getFormatInfo','pivot-value-filter-clear','PivotFilterOptions','getSheetBySheetName','Date1900','ValueFilter','permissionCheckWithRanges','originalDataFieldId','filterInfo','relative:previous','PivotDisplayDataType','sheets-pivot-ui.config.rowSubtotalPosition','showAlert','CellAlertType','M1.28069\x204.85444C0.842195\x204.33435\x201.21191\x203.53906\x201.89218\x203.53906H8.59333C9.2736\x203.53906\x209.64331\x204.33435\x209.20482\x204.85443L6.51052\x208.05006V11.6601C6.51052\x2012.2245\x205.94174\x2012.6113\x205.41683\x2012.404L4.48092\x2012.0342C4.1756\x2011.9136\x203.97498\x2011.6186\x203.97498\x2011.2903V8.05006L1.28069\x204.85444Z','getSheetCommandTarget','#8bc34a','seconds','serializeRange','sheets-pivot-ui.stdDevpName','zIndex','GripVerticalIcon','MergeCellController','MenuItemType','univer-flex\x20univer-items-center\x20univer-justify-between','innerRef','univer-text-xs\x20univer-leading-4\x20univer-text-gray-600','type','onRendered','set','subTotalType','key','DATA','RangeProtectionPermissionEditPoint','univer-mr-2\x20univer-w-4\x20rtl:univer-ml-2\x20rtl:univer-mr-0','POINTER','univer-h-5\x20univer-text-sm\x20univer-text-red-400','buttonType','_messageService','sourceList','datetime','sheets-pivot-ui.dateGroup.yearQuarter','valueBetween','_initialize','round','MobileRangeSelector','NORMAL','CellAlertManagerService','getTextInfo','indexOf','general','sheets-pivot-ui.dateFilter.rule','currentSkeleton$','Fragment','currency','IUniverInstanceService','sheets-pivot-ui.valueFilter.condition','univer-h-full\x20univer-overflow-y-auto','lessThan','percentOfGrandTotal','UNIVER_SHEET_PIVOT_PANEL','SheetsPivotRPCService','sheets-pivot-ui.dateFilter.title','SHEET_PIVOT_TABLE_PLUGIN','color','primary.600','start','tabular','direction$','_isRangeSelectorFocus','sheets-pivot-ui.numberGroup.autoStart','{0}','Hour','footer','activeSheet$','alert','SetPivotManualGroupsCommand','sheets-pivot-ui.showValuesAs.percentOfParentRowTotal','sheets-pivot-ui.column','univer-max-w-[70vw]\x20univer-truncate','error','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','sheets-pivot-ui.dateGroup.excelLikeTitle','\x22#,##0.00_);[Red]-\x22','MobileSelect','sheets-pivot-ui.subtotal.product','_initRegisterCommand','show','middle','sourceRange','_pivotTableId','MessageType','isValidRange','_injector','excelSerialToDateTimeParts','cellWidth','PivotTableValuePositionEnum','sheet.pivot.context-menu.date-group','supportsDateFilter','constructor','getSubUnitPivotConfigs','sheets-pivot-ui.mobile.edit','customFields','field','getCellMatrix','splice','isManualPivotFilter','projection','sheets-pivot-ui.config.repeatColLabels','hours','rangeInfo','join','beginPath','sheets-pivot-ui.config.showRowGrandTotal','RemoveColCommand','MobileDropdownMenu','UniverMobileUIPlugin','sheets-pivot-ui.dialog.cancel','moveTo','pivot-value-filter-expected','SheetsPivotTableService','getPivotTableRangeInfo','pivot-field-areas','UNIVER_SHEET_PIVOT_FIELD_NUMFMT','fill','useDependency','Optional','Row','_sheetPermissionCheckController','sheets-pivot-ui.dialog.numfmt.accounting','sheets-pivot-ui.sourceFieldDescription','DependentOn','306GTrqTl','1930年08月05日','sheets-pivot-ui.dialog.numfmt.fieldSetting','sheets-pivot-ui.subtotal.var','UniverRenderEnginePlugin','00:00:00','random','08-05\x20下午\x2001:30','univerDndDropDisabled','_isRangeSelector2Focus','univer-text-xs','_moveStartRange','univer-max-h-[40vh]\x20univer-overflow-y-auto\x20univer-rounded-xl\x20univer-bg-gray-50\x20univer-p-1\x20dark:!univer-bg-gray-800','univer-flex\x20univer-flex-1\x20univer-items-center\x20univer-gap-3','dragHandleProps','flatMap','IConfirmService','max','_config','watchPivotTableChanges','move','579656EOytIq','itemKey','sheets-pivot-ui.dialog.filter.clearFilter','isAll','colHeaderMap','sheets-pivot-ui.dialog.numfmt.negativeNumberTypes','onCommandExecuted','dateGroupContext','sheets-pivot-ui.varName','Provider','moveToColumn','A/P\x20h:mm:ss','univer-grid\x20univer-grid-cols-2\x20univer-gap-2','getDialogs$','button','\x22#,##0.00_);[Red]\x22','#,##0_);[Red](#,##0)','sheets-pivot-ui.row','sheets-pivot-ui.addToRow','greaterThan','getColumnCount','stdDev','sheets-pivot-ui.addToFilter','DateSystem','_componentManager','univer-flex\x20univer-flex-wrap\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','univer-box-border\x20univer-min-h-0\x20univer-flex-1\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','rowFields','concat','_selectionsService','createInstance','restore','univer-shrink-0','average','_commandService','item','AscendingIcon','getSheets','_localeService','SetPivotSortCommand','ISheetClipboardService','UniverLicensePlugin','univer-flex\x20univer-justify-end\x20univer-gap-2','M12.2982\x2012.4011C12.2981\x2012.0697\x2012.5667\x2011.8009\x2012.8982\x2011.8009L29.3929\x2011.8009C29.7242\x2011.8009\x2029.9928\x2012.0694\x2029.9929\x2012.4007L29.9992\x2027.9129C29.9996\x2029.0178\x2029.104\x2029.9137\x2027.9992\x2029.9137H12.905C12.5737\x2029.9137\x2012.3051\x2029.6452\x2012.305\x2029.314L12.2982\x2012.4011Z','getSheetObject','sheets-pivot-ui.minName','sheets-pivot-ui.perform.blockedByMerge','mode','top','sheets-pivot-ui.dialog.summarizeBy','2637456gLRNcF','getCurrentUnitOfType','sheets-pivot-ui.showValuesAs.baseItem','FilterNoneSortNone','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-text-xs\x20univer-leading-4\x20univer-text-gray-900\x20dark:!univer-text-gray-0','univer-text-xs\x20univer-text-gray-600','members','WorksheetEditPermission','UNIVER_SHEET_PIVOT_FIELD_SETTING','itemLabels','fieldId','pivot-format-painter-hook','has','dataFieldId','forEach','IMenuManagerService','_univerInstanceService','sheets-pivot-ui.showValuesAs.rankDescending','fieldDataType','\x22*\x20#,##0','normal','SheetsPivotTableAdaptorModel','getPivotTableIdByCell','menuItemFactory','FilterAll','ISidebarService','positionRange','getRowCount','CheckMarkIcon','pageOverThenDown','univer-w-[136px]','skip','generateNewSheetName','_permissionController','getCurrentSelections','_confirmService','red','sheets-pivot-ui.showValuesAs.percentDifferenceFrom','mergeMenu','sheets-pivot-ui.subtotal.min','layout','getDate','sheets-pivot-ui.filter','getCurrentSkeleton','M2\x204.0863C2\x202.98173\x202.89543\x202.0863\x204\x202.0863H9.24705C9.57842\x202.0863\x209.84705\x202.35493\x209.84705\x202.6863V8.73981C9.84705\x209.07118\x209.57842\x209.33981\x209.24705\x209.33981H2.6C2.26863\x209.33981\x202\x209.07118\x202\x208.73981V4.0863Z','onPointerLeave$','IRenderManagerService','08-05','4730atPpfe','LocaleService','useEffect','OPERATION','parse','sheets-pivot-ui.columnDesc','auditTime','univer-relative','getDateSystem','_sheetSkeletonManagerService','prototype','getSubUnitPivotMatrix','function','Plugin','getSubUnitPivotRenderCache','isSubtotal','options','\x22#,##0.00_);[Red](\x22','sheets-pivot-ui.productName','startRow','baseItemType','fields','config','_initControl','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','113985ZYGEkt','IconManager','contextMenuInterceptor','subtotal','sheets-pivot-ui.dateGroup.start','21.9067','sheets-pivot-ui.dateGroup.year','[PivotConfigPanel]','M5.5165\x202.58693C5.23375\x201.81542\x204.1426\x201.81543\x203.85985\x202.58693L2.13257\x207.29995C2.03197\x207.57443\x202.17294\x207.8785\x202.44742\x207.97909C2.7219\x208.07969\x203.02596\x207.93872\x203.12656\x207.66424L3.64358\x206.25351L3.64516\x206.25351H5.73278L6.2498\x207.66424C6.35039\x207.93872\x206.65446\x208.07969\x206.92894\x207.97909C7.20342\x207.8785\x207.34438\x207.57443\x207.24379\x207.29995L5.5165\x202.58693ZM5.34479\x205.19487L4.68818\x203.40325L4.03156\x205.19487H5.34479Z','intercept','sheets-pivot-ui.showValuesAs.percentOfGrandTotal','sheets-pivot-ui.dateGroup.quarter','sheets-pivot-ui.dateGroup.daysInterval','univer-flex\x20univer-flex-col\x20univer-gap-4','sheets-pivot-ui.showValuesAs.index','iterator','isDateGroupFieldJSON','univer-text-sm','UNIVER_SHEET_PIVOT_MANUAL_GROUP_DIALOG_ID','sheet.operation.set-pivot-excel-date-group','sheets-pivot-ui.numberGroup.autoEnd','appendChild'];_0x3084=function(){return _0x4403bd;};return _0x3084();}const tr=_0x15a2ed(0x3a9);function nr({targetFieldName:_0x456e1b,grouping:_0x56804d,defaults$:_0xd08aeb,onConfirm:_0x344d40,onCancel:_0x3a6f10}){const _0x349ef1=_0x15a2ed;let _0x5f0ab5=(0x0,i[_0x349ef1(0x50b)])(n[_0x349ef1(0x58a)]),_0x5cc1b6=(0x0,i[_0x349ef1(0x600)])(_0x5f0ab5[_0x349ef1(0x4d2)],_0x5f0ab5[_0x349ef1(0x33e)]()),_0x59bfee=(0x0,i[_0x349ef1(0x600)])(_0xd08aeb),[_0x415101,_0x51a2af]=(0x0,f[_0x349ef1(0x6de)])((_0x56804d==null?void 0x0:_0x56804d[_0x349ef1(0x3a2)])??!0x0),[_0x4361bd,_0x1b726a]=(0x0,f['useState'])((_0x56804d==null?void 0x0:_0x56804d['autoEnd'])??!0x0),[_0x91ffb4,_0x288126]=(0x0,f['useState'])((_0x56804d==null?void 0x0:_0x56804d[_0x349ef1(0x3a2)])===!0x1?String(_0x56804d[_0x349ef1(0x4d0)]):void 0x0),[_0x2bc290,_0x3b61cf]=(0x0,f['useState'])((_0x56804d==null?void 0x0:_0x56804d[_0x349ef1(0x397)])===!0x1?String(_0x56804d['end']):void 0x0),[_0x22b10a,_0x6c40f8]=(0x0,f[_0x349ef1(0x6de)])(_0x56804d?String(_0x56804d[_0x349ef1(0x329)]):void 0x0),[_0x46579c,_0x2ee47f]=(0x0,f['useState'])(!0x1),_0x5bca69=(0x0,f[_0x349ef1(0x5d6)])(!0x1),_0x4ff9e1=_0x3df530=>_0x3df530===void 0x0||!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i[_0x349ef1(0x44d)](_0x3df530['trim']())?NaN:Number(_0x3df530),_0x5c606e={'autoStart':_0x415101,'autoEnd':_0x4361bd,'start':_0x415101?_0x59bfee==null?void 0x0:_0x59bfee['start']:_0x4ff9e1(_0x91ffb4),'end':_0x4361bd?_0x59bfee==null?void 0x0:_0x59bfee['end']:_0x4ff9e1(_0x2bc290),'interval':_0x22b10a===void 0x0||_0x22b10a['trim']()===''?(_0x59bfee==null?void 0x0:_0x59bfee[_0x349ef1(0x329)])??0x0:_0x4ff9e1(_0x22b10a)},_0x4784b3=!!_0x59bfee&&se(_0x5c606e),_0x3e5605=_0x247f32=>{const _0x1600fc=_0x349ef1;!_0x247f32&&_0x91ffb4===void 0x0&&(_0x59bfee==null?void 0x0:_0x59bfee[_0x1600fc(0x4d0)])!==void 0x0&&_0x288126(String(_0x59bfee['start'])),_0x51a2af(_0x247f32);},_0x44fab2=_0x55d3df=>{const _0x37881f=_0x349ef1;!_0x55d3df&&_0x2bc290===void 0x0&&(_0x59bfee==null?void 0x0:_0x59bfee[_0x37881f(0x305)])!==void 0x0&&_0x3b61cf(String(_0x59bfee['end'])),_0x1b726a(_0x55d3df);};return(0x0,d['jsxs'])('div',{'className':_0x349ef1(0x5af),'dir':_0x5cc1b6,'children':[(0x0,d[_0x349ef1(0x268)])(_0x349ef1(0x664),{'className':_0x349ef1(0x3eb),'children':_0x456e1b}),(0x0,d[_0x349ef1(0x634)])(_0x349ef1(0x664),{'className':_0x349ef1(0x2d1),'children':[(0x0,d[_0x349ef1(0x268)])(s[_0x349ef1(0x45d)],{'checked':_0x415101,'onChange':_0x169b1b=>_0x3e5605(!!_0x169b1b),'children':_0x5f0ab5['t'](_0x349ef1(0x4d4))}),(0x0,d[_0x349ef1(0x634)])(_0x349ef1(0x3b3),{'className':tr,'children':[_0x5f0ab5['t'](_0x349ef1(0x65f)),(0x0,d['jsx'])(s[_0x349ef1(0x6e8)],{'className':'univer-w-32','value':_0x415101?String((_0x59bfee==null?void 0x0:_0x59bfee['start'])??''):_0x91ffb4??'','disabled':_0x415101,'onChange':_0x288126})]}),(0x0,d[_0x349ef1(0x268)])(s['Checkbox'],{'checked':_0x4361bd,'onChange':_0x2e2703=>_0x44fab2(!!_0x2e2703),'children':_0x5f0ab5['t'](_0x349ef1(0x5b6))}),(0x0,d['jsxs'])('label',{'className':tr,'children':[_0x5f0ab5['t'](_0x349ef1(0x609)),(0x0,d['jsx'])(s[_0x349ef1(0x6e8)],{'className':_0x349ef1(0x2ac),'value':_0x4361bd?String((_0x59bfee==null?void 0x0:_0x59bfee[_0x349ef1(0x305)])??''):_0x2bc290??'','disabled':_0x4361bd,'onChange':_0x3b61cf})]}),(0x0,d['jsxs'])(_0x349ef1(0x3b3),{'className':tr,'children':[_0x5f0ab5['t'](_0x349ef1(0x341)),(0x0,d[_0x349ef1(0x268)])(s[_0x349ef1(0x6e8)],{'className':_0x349ef1(0x2ac),'value':_0x22b10a??String((_0x59bfee==null?void 0x0:_0x59bfee[_0x349ef1(0x329)])??''),'placeholder':String((_0x59bfee==null?void 0x0:_0x59bfee[_0x349ef1(0x329)])??''),'onChange':_0x6c40f8})]})]}),(0x0,d[_0x349ef1(0x634)])(_0x349ef1(0x664),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-3','children':[(0x0,d[_0x349ef1(0x268)])(s[_0x349ef1(0x23a)],{'onClick':_0x3a6f10,'children':_0x5f0ab5['t'](_0x349ef1(0x503))}),(0x0,d[_0x349ef1(0x268)])(s['Button'],{'variant':_0x349ef1(0x3e0),'disabled':!_0x4784b3||_0x46579c,'onClick':async()=>{const _0x107c5b=_0x349ef1;if(_0x4784b3&&!_0x5bca69[_0x107c5b(0x6c4)]){_0x5bca69[_0x107c5b(0x6c4)]=!0x0,_0x2ee47f(!0x0);try{await _0x344d40(_0x5c606e);}catch{}finally{_0x5bca69[_0x107c5b(0x6c4)]=!0x1,_0x2ee47f(!0x1);}}},'children':_0x5f0ab5['t'](_0x349ef1(0x694))})]})]});}const rr=({handlePatternChange:_0x71aad3})=>{const _0x298b38=_0x15a2ed;let _0x401c2d=(0x0,i['useDependency'])(n[_0x298b38(0x58a)]);return(0x0,f[_0x298b38(0x58b)])(()=>{_0x71aad3('');},[]),(0x0,d[_0x298b38(0x268)])('div',{'className':_0x298b38(0x2af),'children':_0x401c2d['t'](_0x298b38(0x683))});},ir=({originPattern:_0x1f451b,handlePatternChange:_0xd83020})=>{const _0x4941ea=_0x15a2ed;let _0x1133a3=(0x0,i[_0x4941ea(0x50b)])(n['LocaleService']),_0x481004=n[_0x4941ea(0x21e)][_0x4941ea(0x611)](_0x2a8129=>({'label':_0x2a8129,'value':_0x2a8129})),[_0x22ac54,_0x19bf34]=(0x0,f[_0x4941ea(0x6de)])(()=>At(_0x1f451b||'',0x2)),[_0x172d0e,_0xc8c18c]=(0x0,f[_0x4941ea(0x6de)])(()=>Mt(_0x1f451b??'')||_0x481004[0x0]['value']);return(0x0,f[_0x4941ea(0x58b)])(()=>{const _0x5bc29c=_0x4941ea;_0xd83020(J(_0x5bc29c(0x32a)+_0x172d0e+_0x5bc29c(0x56c)+(_0x22ac54>0x0?'.0':'')+'_)',_0x22ac54));},[]),(0x0,d['jsxs'])(_0x4941ea(0x664),{'className':_0x4941ea(0x1bd),'children':[(0x0,d[_0x4941ea(0x634)])(_0x4941ea(0x664),{'className':_0x4941ea(0x4a6),'children':[(0x0,d[_0x4941ea(0x634)])(_0x4941ea(0x664),{'className':_0x4941ea(0x577),'children':[(0x0,d[_0x4941ea(0x268)])(_0x4941ea(0x664),{'className':_0x4941ea(0x606),'children':_0x1133a3['t']('sheets-pivot-ui.dialog.numfmt.decimalPlaces')}),(0x0,d[_0x4941ea(0x268)])(s[_0x4941ea(0x451)],{'className':_0x4941ea(0x209),'value':_0x22ac54,'max':0x14,'min':0x0,'onChange':_0x3fe78d=>{const _0x1109a9=_0x4941ea;let _0x144464=_0x3fe78d??0x0;_0x19bf34(_0x144464),_0xd83020(J(_0x1109a9(0x32a)+_0x172d0e+_0x1109a9(0x56c)+(_0x144464>0x0?'.0':'')+'_)',_0x144464));}})]}),(0x0,d[_0x4941ea(0x634)])(_0x4941ea(0x664),{'className':_0x4941ea(0x577),'children':[(0x0,d[_0x4941ea(0x268)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x1133a3['t'](_0x4941ea(0x3be))}),(0x0,d[_0x4941ea(0x268)])(s['Select'],{'options':_0x481004,'value':_0x172d0e,'onChange':_0x4c4beb=>{const _0x51ad1e=_0x4941ea;_0xc8c18c(_0x4c4beb),_0xd83020(J(_0x51ad1e(0x32a)+_0x4c4beb+_0x51ad1e(0x56c)+(_0x22ac54>0x0?'.0':'')+'_)',_0x22ac54));}})]})]}),(0x0,d['jsx'])(_0x4941ea(0x664),{'className':_0x4941ea(0x2af),'children':_0x1133a3['t'](_0x4941ea(0x272))})]});},ar=({originPattern:_0x5483ee,handlePatternChange:_0x386641})=>{const _0x59e837=_0x15a2ed;let _0xb32562=(0x0,i[_0x59e837(0x50b)])(n['LocaleService']),_0x4f402b=n[_0x59e837(0x21e)]['map'](_0xb01ff0=>({'label':_0xb01ff0,'value':_0xb01ff0})),[_0x21b52c,_0x5d0df6]=(0x0,f[_0x59e837(0x6de)])(()=>At(_0x5483ee||'',0x2)),[_0x249af1,_0x457678]=(0x0,f['useState'])(()=>Mt(_0x5483ee??'')||_0x4f402b[0x0][_0x59e837(0x635)]),_0x405dbe=pt[_0x59e837(0x611)](_0x6355f5=>({'label':_0x6355f5[_0x59e837(0x3b3)](_0x249af1),'value':_0x6355f5[_0x59e837(0x3c7)](_0x249af1),'color':_0x6355f5[_0x59e837(0x4ce)]})),[_0x3ddee9,_0x2014bf]=(0x0,f[_0x59e837(0x6de)])(()=>{const _0xbb90a8=_0x59e837;var _0x54e4a1;return((_0x54e4a1=_0x405dbe[_0xbb90a8(0x384)](_0x59b625=>(0x0,n['isPatternEqualWithoutDecimal'])(_0x59b625[_0xbb90a8(0x635)],_0x5483ee??'')))==null?void 0x0:_0x54e4a1[_0xbb90a8(0x635)])||_0x405dbe[0x0][_0xbb90a8(0x635)];});return(0x0,f['useEffect'])(()=>{_0x386641(J(_0x3ddee9,_0x21b52c));},[]),(0x0,d['jsxs'])(_0x59e837(0x664),{'className':_0x59e837(0x1bd),'children':[(0x0,d[_0x59e837(0x634)])('div',{'className':_0x59e837(0x4a6),'children':[(0x0,d[_0x59e837(0x634)])(_0x59e837(0x664),{'className':_0x59e837(0x577),'children':[(0x0,d[_0x59e837(0x268)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0xb32562['t'](_0x59e837(0x61c))}),(0x0,d[_0x59e837(0x268)])(s[_0x59e837(0x451)],{'className':_0x59e837(0x209),'value':_0x21b52c,'max':0x14,'min':0x0,'onChange':_0x4f9694=>{_0x4f9694&&(_0x5d0df6(_0x4f9694),_0x386641(J(_0x3ddee9,_0x4f9694)));}})]}),(0x0,d['jsxs'])(_0x59e837(0x664),{'className':_0x59e837(0x577),'children':[(0x0,d['jsx'])(_0x59e837(0x664),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0xb32562['t']('sheets-pivot-ui.dialog.numfmt.currencyTypes')}),(0x0,d[_0x59e837(0x268)])(s[_0x59e837(0x67e)],{'options':_0x4f402b,'value':_0x249af1,'onChange':_0x8e107b=>{const _0x570748=_0x59e837;_0x457678(_0x8e107b);let _0x11abe5=pt['map'](_0x27e216=>({'label':_0x27e216['label'](_0x8e107b),'value':_0x27e216[_0x570748(0x3c7)](_0x8e107b),'color':_0x27e216['color']}));_0x2014bf(_0x11abe5[0x0][_0x570748(0x635)]),_0x386641(J(_0x11abe5[0x0]['value'],_0x21b52c));}})]})]}),(0x0,d['jsxs'])(_0x59e837(0x664),{'className':_0x59e837(0x2f2),'children':[(0x0,d[_0x59e837(0x268)])(_0x59e837(0x664),{'className':_0x59e837(0x606),'children':_0xb32562['t'](_0x59e837(0x52c))}),(0x0,d[_0x59e837(0x268)])(s[_0x59e837(0x3aa)],{'className':_0x59e837(0x702),'options':_0x405dbe,'value':_0x3ddee9,'onChange':_0x26c844=>{_0x2014bf(_0x26c844),_0x386641(J(_0x26c844,_0x21b52c));}}),(0x0,d[_0x59e837(0x268)])('div',{'className':_0x59e837(0x2af),'children':_0xb32562['t']('sheets-pivot-ui.dialog.numfmt.currencyDesc')})]})]});},or=({originPattern:_0x42908e,handlePatternChange:_0x100e7e})=>{const _0x3f2118=_0x15a2ed;let _0x2959d7=(0x0,i[_0x3f2118(0x50b)])(n[_0x3f2118(0x58a)]),_0x44d57b=dt[_0x3f2118(0x611)](_0xba8a09=>({'label':_0xba8a09['label'],'value':_0xba8a09[_0x3f2118(0x3c7)]})),[_0x5f5df8,_0x362749]=(0x0,f['useState'])(()=>{const _0x5a4445=_0x3f2118;if(_0x42908e){let _0x12f68f=_0x44d57b['find'](_0x243455=>_0x243455['value']===_0x42908e);if(_0x12f68f)return _0x12f68f['value'];}return _0x44d57b[0x0][_0x5a4445(0x635)];});return(0x0,f[_0x3f2118(0x58b)])(()=>{_0x100e7e(_0x5f5df8);},[]),(0x0,d[_0x3f2118(0x268)])(_0x3f2118(0x664),{'className':_0x3f2118(0x1bd),'children':(0x0,d[_0x3f2118(0x634)])(_0x3f2118(0x664),{'className':_0x3f2118(0x1bd),'children':[(0x0,d['jsx'])(_0x3f2118(0x664),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium','children':_0x2959d7['t']('sheets-pivot-ui.dialog.numfmt.dateTypes')}),(0x0,d[_0x3f2118(0x268)])(_0x3f2118(0x664),{'children':(0x0,d[_0x3f2118(0x268)])(s['SelectList'],{'className':_0x3f2118(0x702),'options':_0x44d57b,'value':_0x5f5df8,'onChange':_0x478426=>{_0x362749(_0x478426),_0x100e7e(_0x478426);}})}),(0x0,d['jsx'])('div',{'className':_0x3f2118(0x2af),'children':_0x2959d7['t'](_0x3f2118(0x434))})]})});},sr=({originPattern:_0x500eda,handlePatternChange:_0x21fb66})=>{const _0x1a9a18=_0x15a2ed;let _0x571963=(0x0,i[_0x1a9a18(0x50b)])(n[_0x1a9a18(0x58a)]),[_0x3eea0c,_0xd86b6a]=(0x0,f[_0x1a9a18(0x6de)])(()=>At(_0x500eda||'',0x0)),_0x2aa83a=ft[_0x1a9a18(0x611)](_0x4a90f4=>({'label':_0x4a90f4[_0x1a9a18(0x3b3)],'value':_0x4a90f4[_0x1a9a18(0x3c7)],'color':_0x4a90f4['color']})),[_0x1b27f7,_0x316dd6]=(0x0,f[_0x1a9a18(0x6de)])(()=>{const _0x2c5a8e=_0x1a9a18;let _0x352c6d=_0x2aa83a['find'](_0x430a44=>(0x0,n[_0x2c5a8e(0x6fb)])(_0x430a44['value'],_0x500eda||''));return(_0x352c6d==null?void 0x0:_0x352c6d['value'])||_0x2aa83a[0x0]['value'];});return(0x0,f[_0x1a9a18(0x58b)])(()=>{_0x21fb66(J(_0x1b27f7,Number(_0x3eea0c||0x0)));},[]),(0x0,d[_0x1a9a18(0x634)])(_0x1a9a18(0x664),{'className':'univer-mt-5','children':[(0x0,d[_0x1a9a18(0x268)])(_0x1a9a18(0x664),{'className':_0x1a9a18(0x4a6),'children':(0x0,d[_0x1a9a18(0x634)])('div',{'className':_0x1a9a18(0x577),'children':[(0x0,d[_0x1a9a18(0x268)])('div',{'className':_0x1a9a18(0x606),'children':_0x571963['t'](_0x1a9a18(0x61c))}),(0x0,d['jsx'])(s[_0x1a9a18(0x451)],{'className':_0x1a9a18(0x209),'value':_0x3eea0c,'max':0x14,'min':0x0,'onChange':_0x3ec36b=>{_0x3ec36b&&(_0xd86b6a(_0x3ec36b),_0x21fb66(J(_0x1b27f7,Number(_0x3ec36b))));}})]})}),(0x0,d[_0x1a9a18(0x634)])(_0x1a9a18(0x664),{'className':_0x1a9a18(0x2f2),'children':[(0x0,d[_0x1a9a18(0x268)])(_0x1a9a18(0x664),{'className':_0x1a9a18(0x606),'children':_0x571963['t']('sheets-pivot-ui.dialog.numfmt.negativeNumberTypes')}),(0x0,d[_0x1a9a18(0x268)])(s[_0x1a9a18(0x3aa)],{'className':'univer-rounded-lg\x20univer-p-2','options':_0x2aa83a,'value':_0x1b27f7,'onChange':_0x1d1a40=>{_0xd86b6a(At(_0x1d1a40,0x0)),_0x316dd6(_0x1d1a40),_0x21fb66(_0x1d1a40);}}),(0x0,d[_0x1a9a18(0x268)])(_0x1a9a18(0x664),{'className':'univer-mt-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x571963['t'](_0x1a9a18(0x615))})]})]});},cr=({unitId:_0x5c30c8,subUnitId:_0x34918d,pivotTableId:_0xe3e61b,tableFieldId:_0x3f38a7,originPattern:_0x4479a9,tableFieldInfo:_0x6cb5a3,dataFieldInfo:_0x411f1e})=>{const _0x522b25=_0x15a2ed;let _0x2bcb8a=(0x0,i[_0x522b25(0x50b)])(n['LocaleService']),_0x9000d5=(0x0,i[_0x522b25(0x50b)])(i['IDialogService']),_0x458581=_0x2bcb8a[_0x522b25(0x33e)](),_0xcfe8dc=(0x0,f['useMemo'])(()=>[{'label':_0x522b25(0x42f),'component':rr,'key':'sheet.numfmt.general'},{'label':_0x522b25(0x50f),'component':ir,'key':'sheet.numfmt.accounting'},{'label':_0x522b25(0x280),'component':ar,'key':_0x522b25(0x30f)},{'label':_0x522b25(0x6c6),'component':or,'key':_0x522b25(0x368)},{'label':_0x522b25(0x6f6),'component':sr,'key':_0x522b25(0x2a0)}][_0x522b25(0x611)](_0xd41f78=>({..._0xd41f78,'label':_0x2bcb8a['t'](_0xd41f78[_0x522b25(0x3b3)])})),[_0x2bcb8a]),_0x3cf262=_0xcfe8dc[_0x522b25(0x611)](_0x3f20d3=>({'label':_0x3f20d3[_0x522b25(0x3b3)],'value':_0x3f20d3['key']})),[_0x471a8c,_0x589528]=(0x0,f[_0x522b25(0x6de)])(()=>[Nt,Pt,Ft,Lt,zt]['reduce']((_0x5c1637,_0x149820,_0xc76b35)=>_0x5c1637||(_0x149820(_0x4479a9??'')?_0xcfe8dc[_0xc76b35][_0x522b25(0x4ad)]:''),'')||_0xcfe8dc[0x0][_0x522b25(0x4ad)]),[_0x31c10e,_0xd5bba3]=(0x0,f['useState'])(_0x4479a9),_0x2cb128=_0xa6ce3f=>_0xd5bba3(_0xa6ce3f),_0x9a2d09=_0x8f5262=>{_0x589528(_0x8f5262);},_0x461a1e=_0x584303=>({'id':S,'title':{'title':_0x2bcb8a['t']('sheets-pivot-ui.fieldSettings')},'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':x,'tableFieldId':_0x3f38a7,'pivotTableId':_0xe3e61b,'unitId':_0x5c30c8,'subUnitId':_0x34918d,'tableFieldInfo':_0x6cb5a3,'dataFieldInfo':_0x411f1e,'key':_0x522b25(0x46e)+(_0x3f38a7||''),'closeFn':()=>{const _0x57db81=_0x522b25;_0x9000d5[_0x57db81(0x3ff)](S);},'format':_0x584303?_0x31c10e:''},'onClose':()=>{const _0x183a36=_0x522b25;_0x9000d5[_0x183a36(0x3ff)](S);}}),_0x2567a0=()=>{const _0x4f463c=_0x522b25;_0x9000d5[_0x4f463c(0x3ff)](w);let _0x4bf8f9=_0x461a1e(!0x1);_0x9000d5[_0x4f463c(0x1cb)](_0x4bf8f9);};return(0x0,d[_0x522b25(0x634)])(_0x522b25(0x664),{'dir':_0x458581,'children':[(0x0,d[_0x522b25(0x268)])(_0x522b25(0x664),{'className':'univer-flex','children':(0x0,d[_0x522b25(0x634)])(_0x522b25(0x664),{'className':'univer-mb-5\x20univer-flex\x20univer-h-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-text-base\x20univer-font-medium\x20univer-leading-6','onClick':_0x2567a0,'children':[(0x0,d[_0x522b25(0x268)])(u[_0x522b25(0x306)],{}),_0x2bcb8a['t'](_0x522b25(0x514))]})}),(0x0,d[_0x522b25(0x268)])('div',{'className':'univer-mb-2\x20univer-h-5\x20univer-text-sm\x20univer-font-medium\x20univer-leading-5','children':_0x2bcb8a['t'](_0x522b25(0x1fe))}),(0x0,d[_0x522b25(0x268)])(_0x522b25(0x664),{'children':(0x0,d[_0x522b25(0x268)])(s['Select'],{'className':_0x522b25(0x1d5),'value':_0x471a8c,'options':_0x3cf262,'onChange':_0x493fb8=>_0x9a2d09(_0x493fb8)})}),(0x0,d[_0x522b25(0x634)])(_0x522b25(0x664),{'children':[_0x471a8c===_0x522b25(0x636)&&(0x0,d[_0x522b25(0x268)])(rr,{'originPattern':_0x4479a9,'handlePatternChange':_0x2cb128}),_0x471a8c===_0x522b25(0x6c2)&&(0x0,d[_0x522b25(0x268)])(ir,{'originPattern':_0x4479a9,'handlePatternChange':_0x2cb128}),_0x471a8c==='sheet.numfmt.currency'&&(0x0,d[_0x522b25(0x268)])(ar,{'originPattern':_0x4479a9,'handlePatternChange':_0x2cb128}),_0x471a8c==='sheet.numfmt.date'&&(0x0,d[_0x522b25(0x268)])(or,{'originPattern':_0x4479a9,'handlePatternChange':_0x2cb128}),_0x471a8c===_0x522b25(0x2a0)&&(0x0,d['jsx'])(sr,{'originPattern':_0x4479a9,'handlePatternChange':_0x2cb128})]}),(0x0,d['jsxs'])(s['ActionRow'],{'className':'univer-mt-2\x20univer-flex\x20univer-justify-end','children':[(0x0,d[_0x522b25(0x268)])(s[_0x522b25(0x23a)],{'onClick':_0x2567a0,'children':_0x2bcb8a['t'](_0x522b25(0x386))}),(0x0,d[_0x522b25(0x268)])(s[_0x522b25(0x23a)],{'className':_0x522b25(0x6dd),'variant':'primary','onClick':()=>{const _0xc31422=_0x522b25;_0x9000d5[_0xc31422(0x3ff)](w);let _0xba4bbe=_0x461a1e(!0x0);_0x9000d5['open'](_0xba4bbe);},'children':_0x2bcb8a['t'](_0x522b25(0x2a1))})]})]});};function lr(_0x27f25e){const _0x3d09a3=_0x15a2ed;var _0x1e5c50,_0x2ce24f;let {scope:_0x29240f,report:_0x472f6d,getCurrentReport:_0x39beee,onChange:_0x31773f}=_0x27f25e,_0x4c4ac8=(0x0,i[_0x3d09a3(0x50b)])(n['LocaleService']),_0x6b304a=(0x0,i['useDependency'])(n[_0x3d09a3(0x522)]),_0xb0354b=(0x0,i['useDependency'])(t[_0x3d09a3(0x506)]),_0x5bad6f=(0x0,i[_0x3d09a3(0x50b)])(n[_0x3d09a3(0x3e4)]),_0x5e958d=(0x0,i[_0x3d09a3(0x50b)])(n[_0x3d09a3(0x3f1)]);(0x0,i[_0x3d09a3(0x600)])(_0x5bad6f[_0x3d09a3(0x3b8)]);let [_0x3afb49,_0x377350]=(0x0,f[_0x3d09a3(0x6de)])(!0x1),_0x14c9ec=(0x0,f[_0x3d09a3(0x5d6)])(!0x1),_0x33f73e=(0x0,f[_0x3d09a3(0x5d6)])(!0x0),_0xd613ab=JSON[_0x3d09a3(0x445)](_0x29240f),_0x47f6ff=(0x0,f['useRef'])(_0xd613ab);_0x47f6ff['current']=_0xd613ab,(0x0,f[_0x3d09a3(0x58b)])(()=>(_0x33f73e[_0x3d09a3(0x6c4)]=!0x0,()=>{const _0x2f9e89=_0x3d09a3;_0x33f73e[_0x2f9e89(0x6c4)]=!0x1;}),[]);let _0x20cb89=_0x3afb49||!_0x472f6d||((_0x1e5c50=_0x5bad6f[_0x3d09a3(0x5c1)](new r[(_0x3d09a3(0x708))](_0x29240f['unitId'])['id']))==null?void 0x0:_0x1e5c50['value'])===!0x1||((_0x2ce24f=_0x5bad6f[_0x3d09a3(0x5c1)](new r[(_0x3d09a3(0x3b2))](_0x29240f['unitId'],_0x29240f[_0x3d09a3(0x317)])['id']))==null?void 0x0:_0x2ce24f[_0x3d09a3(0x635)])===!0x1,_0x29c862=async _0x27f29c=>{const _0x5ef93b=_0x3d09a3;if(_0x14c9ec['current']||_0x20cb89||!_0x472f6d||_0x472f6d[_0x5ef93b(0x599)]['allowMultipleFilters']===_0x27f29c)return;_0x14c9ec['current']=!0x0,_0x377350(!0x0);let _0x40f927=n[_0x5ef93b(0x604)][_0x5ef93b(0x286)](_0x472f6d);try{if(!_0x27f29c&&(0x0,e[_0x5ef93b(0x2b1)])(_0x472f6d)){let _0xa9b559=await _0xb0354b[_0x5ef93b(0x3c5)][_0x5ef93b(0x716)](t[_0x5ef93b(0x42d)])({'redos':[],'undos':[],'groups':[],'validate':()=>void 0x0},_0x29240f);if(!_0x33f73e[_0x5ef93b(0x6c4)]||_0x47f6ff[_0x5ef93b(0x6c4)]!==_0xd613ab||!await _0x6b304a['confirm']({'id':_0x5ef93b(0x719),'title':{'title':_0x4c4ac8['t'](_0x5ef93b(0x22d))},'children':{'title':_0x4c4ac8['t']('sheets-pivot-ui.config.multipleFiltersClearWarning')},'cancelText':_0x4c4ac8['t']('sheets-pivot-ui.dialog.cancel'),'confirmText':_0x4c4ac8['t']('sheets-pivot-ui.dialog.ok')}))return;_0xa9b559==null||_0xa9b559['validate']();}if(!_0x33f73e[_0x5ef93b(0x6c4)]||_0x47f6ff[_0x5ef93b(0x6c4)]!==_0xd613ab||!n[_0x5ef93b(0x604)]['diffValue'](_0x40f927,_0x39beee()))return;await _0x31773f(_0x27f29c);}catch(_0x38c6be){_0x5e958d[_0x5ef93b(0x4de)](_0x5ef93b(0x34e),_0x38c6be);}finally{_0x14c9ec[_0x5ef93b(0x6c4)]=!0x1,_0x33f73e[_0x5ef93b(0x6c4)]&&_0x377350(!0x1);}};return(0x0,d['jsxs'])(_0x3d09a3(0x696),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3','children':[(0x0,d['jsx'])(_0x3d09a3(0x664),{'className':_0x3d09a3(0x411),'children':_0x4c4ac8['t']('sheets-pivot-ui.config.filteringSection')}),(0x0,d[_0x3d09a3(0x634)])(_0x3d09a3(0x3b3),{'className':_0x3d09a3(0x644),'children':[(0x0,d[_0x3d09a3(0x268)])(s[_0x3d09a3(0x45d)],{'checked':(_0x472f6d==null?void 0x0:_0x472f6d['options'][_0x3d09a3(0x38f)])===!0x0,'disabled':_0x20cb89,'onChange':_0xea19b2=>_0x29c862(!!_0xea19b2)}),(0x0,d['jsx'])(_0x3d09a3(0x1b4),{'children':_0x4c4ac8['t'](_0x3d09a3(0x632))})]})]});}const ur=[{'label':_0x15a2ed(0x3ad),'value':'false'},{'label':_0x15a2ed(0x1d0),'value':_0x15a2ed(0x34d)}],dr=[{'label':_0x15a2ed(0x6b4),'value':String(e['PivotLayoutTypeEnum'][_0x15a2ed(0x4d1)])},{'label':_0x15a2ed(0x630),'value':String(e['PivotLayoutTypeEnum'][_0x15a2ed(0x2b8)])},{'label':_0x15a2ed(0x5c2),'value':String(e[_0x15a2ed(0x1ea)]['outline'])}],fr=[{'label':_0x15a2ed(0x666),'value':String(e['PivotSubtotalPositionEnum']['top'])},{'label':_0x15a2ed(0x6cb),'value':String(e[_0x15a2ed(0x633)]['bottom'])}],pr=[{'label':_0x15a2ed(0x63a),'value':e[_0x15a2ed(0x6d7)][_0x15a2ed(0x212)]},{'label':'sheets-pivot-ui.config.dateGroupingExcelLike','value':e['PivotDateGroupingMode'][_0x15a2ed(0x333)]}];function mr(_0x141d21){const _0x27d34e=_0x15a2ed;let {unitId:_0xf5ec2,subUnitId:_0x463b44,pivotTableId:_0x14afdd}=_0x141d21,_0x5cec62=(0x0,i['useDependency'])(n[_0x27d34e(0x256)]),_0x50deae=(0x0,i['useDependency'])(n['IConfirmService']),_0x3704b7=(0x0,i[_0x27d34e(0x50b)])(n[_0x27d34e(0x3f1)]),_0x475185=(0x0,i[_0x27d34e(0x50b)])(n['LocaleService']),_0x2b5d0a=(0x0,i[_0x27d34e(0x50b)])(t[_0x27d34e(0x381)]),_0x20f9e6=(0x0,f['useMemo'])(()=>_0x2b5d0a['watchPivotTableChanges'](_0xf5ec2,_0x463b44,_0x14afdd)[_0x27d34e(0x254)]((0x0,o[_0x27d34e(0x489)])(0x0)),[_0x2b5d0a,_0xf5ec2,_0x463b44,_0x14afdd]);(0x0,i[_0x27d34e(0x600)])(_0x20f9e6);let [_0x304240,_0x3d54b5]=(0x0,f[_0x27d34e(0x6de)])(!0x1),_0x898146=(0x0,f['useRef'])(!0x1),_0x117431=_0x2b5d0a[_0x27d34e(0x2b6)](_0xf5ec2,_0x463b44,_0x14afdd),_0x3543b9=(0x0,e[_0x27d34e(0x28f)])(_0x117431==null?void 0x0:_0x117431[_0x27d34e(0x5cd)][_0x27d34e(0x599)]),[_0x599d22,_0x26d501]=(0x0,f[_0x27d34e(0x6de)])(()=>{const _0x1fbdd4=_0x27d34e;var _0xf1f314,_0x1ef96b;let _0x555040=_0x2b5d0a[_0x1fbdd4(0x2b6)](_0xf5ec2,_0x463b44,_0x14afdd),_0x135b16=(_0x555040==null||(_0xf1f314=_0x555040[_0x1fbdd4(0x5cd)])==null?void 0x0:_0xf1f314[_0x1fbdd4(0x599)])??{};return{'showRowSubtotal':_0x135b16[_0x1fbdd4(0x23e)]??!0x0,'showRowGrandTotal':_0x135b16[_0x1fbdd4(0x6a8)]??!0x0,'showColSubtotal':_0x135b16[_0x1fbdd4(0x270)]??!0x0,'showColGrandTotal':_0x135b16[_0x1fbdd4(0x68f)]??!0x0,'pageWrap':_0x135b16[_0x1fbdd4(0x34c)]??0x1,'pageOverThenDown':_0x135b16[_0x1fbdd4(0x576)]??!0x1,'repeatRowLabels':_0x135b16['repeatRowLabels']??!0x1,'repeatColLabels':_0x135b16['repeatColLabels']??!0x1,'layout':(_0x555040==null||(_0x1ef96b=_0x555040['fieldsConfig'])==null?void 0x0:_0x1ef96b[_0x1fbdd4(0x581)])??e['PivotLayoutTypeEnum'][_0x1fbdd4(0x4d1)],'rowSubtotalPosition':_0x135b16[_0x1fbdd4(0x6be)]??e[_0x1fbdd4(0x633)][_0x1fbdd4(0x557)]};}),_0x2ae9a9=_0x1ab422=>{const _0x33f2b9=_0x27d34e;let _0x17ae61={'unitId':_0xf5ec2,'subUnitId':_0x463b44,'pivotTableId':_0x14afdd,'options':_0x1ab422};_0x5cec62[_0x33f2b9(0x2f0)](t[_0x33f2b9(0x439)]['id'],_0x17ae61)['catch'](_0x1e8443=>_0x3704b7[_0x33f2b9(0x4de)](_0x33f2b9(0x5a9),_0x1e8443)),_0x26d501(_0x21c39b=>({..._0x21c39b,..._0x1ab422}));},_0x81ac6a=_0x352290=>{const _0xbd7bd1=_0x27d34e;let _0x4b692b={'unitId':_0xf5ec2,'subUnitId':_0x463b44,'pivotTableId':_0x14afdd,'layout':_0x352290};_0x5cec62[_0xbd7bd1(0x2f0)](t[_0xbd7bd1(0x64e)]['id'],_0x4b692b)[_0xbd7bd1(0x30c)](_0x25aa2e=>_0x3704b7['error']('[PivotConfigPanel]',_0x25aa2e)),_0x26d501(_0x2dd097=>({..._0x2dd097,'layout':_0x352290}));},_0x2d4786=async _0x385a5a=>{const _0x5001fb=_0x27d34e;if(!(_0x898146[_0x5001fb(0x6c4)]||_0x385a5a===_0x3543b9)){_0x898146[_0x5001fb(0x6c4)]=!0x0,_0x3d54b5(!0x0);try{let _0x2224a9=_0x2b5d0a[_0x5001fb(0x2b6)](_0xf5ec2,_0x463b44,_0x14afdd),_0xee60ee=_0x2b5d0a[_0x5001fb(0x25d)](_0xf5ec2,_0x14afdd);if(!_0x2224a9||!_0xee60ee||(Object[_0x5001fb(0x43a)](_0xee60ee['fields'])[_0x5001fb(0x364)](e['isDateGroupFieldJSON'])||_0xee60ee[_0x5001fb(0x4f4)]['some'](e['isDateGroupFieldJSON']))&&!await _0x50deae[_0x5001fb(0x656)]({'id':_0x5001fb(0x259),'title':{'title':_0x475185['t'](_0x5001fb(0x460))},'children':{'title':_0x475185['t'](_0x5001fb(0x1f4))},'cancelText':_0x475185['t'](_0x5001fb(0x503)),'confirmText':_0x475185['t']('sheets-pivot-ui.dialog.ok')})||_0x2b5d0a[_0x5001fb(0x2b6)](_0xf5ec2,_0x463b44,_0x14afdd)!==_0x2224a9||_0x2b5d0a[_0x5001fb(0x25d)](_0xf5ec2,_0x14afdd)!==_0xee60ee||(0x0,e[_0x5001fb(0x28f)])(_0x2224a9['fieldsConfig']['options'])===_0x385a5a)return;await _0x5cec62['executeCommand'](t[_0x5001fb(0x439)]['id'],{'unitId':_0xf5ec2,'subUnitId':_0x463b44,'pivotTableId':_0x14afdd,'options':{'dateGroupingMode':_0x385a5a}});}catch(_0xeaf0c7){_0x3704b7['error'](_0x5001fb(0x5a9),_0xeaf0c7);}finally{_0x898146[_0x5001fb(0x6c4)]=!0x1,_0x3d54b5(!0x1);}}};return(0x0,d['jsxs'])('div',{'className':_0x27d34e(0x627),'children':[(0x0,d['jsx'])(lr,{'scope':{'unitId':_0xf5ec2,'subUnitId':_0x463b44,'pivotTableId':_0x14afdd},'report':_0x117431==null?void 0x0:_0x117431[_0x27d34e(0x5cd)],'getCurrentReport':()=>{const _0x5b1b13=_0x27d34e;var _0xde7694;return(_0xde7694=_0x2b5d0a[_0x5b1b13(0x2b6)](_0xf5ec2,_0x463b44,_0x14afdd))==null?void 0x0:_0xde7694[_0x5b1b13(0x5cd)];},'onChange':_0x98c732=>_0x5cec62[_0x27d34e(0x2f0)](t[_0x27d34e(0x439)]['id'],{'unitId':_0xf5ec2,'subUnitId':_0x463b44,'pivotTableId':_0x14afdd,'options':{'allowMultipleFilters':_0x98c732}})}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x696),{'children':[(0x0,d[_0x27d34e(0x268)])(_0x27d34e(0x664),{'className':_0x27d34e(0x43d),'children':_0x475185['t'](_0x27d34e(0x70f))}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x664),{'className':_0x27d34e(0x2d1),'children':[(0x0,d[_0x27d34e(0x634)])('div',{'className':_0x27d34e(0x1e8),'children':[(0x0,d[_0x27d34e(0x268)])(_0x27d34e(0x1b4),{'className':_0x27d34e(0x3e6),'children':_0x475185['t'](_0x27d34e(0x429))}),(0x0,d[_0x27d34e(0x268)])(s['Select'],{'className':'univer-w-36','value':_0x3543b9,'options':pr[_0x27d34e(0x611)](_0x39190e=>({..._0x39190e,'label':_0x475185['t'](_0x39190e[_0x27d34e(0x3b3)])})),'disabled':_0x304240,'onChange':_0x2c08f4=>_0x2d4786(_0x2c08f4)})]}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x664),{'className':_0x27d34e(0x1e8),'children':[(0x0,d['jsx'])('span',{'className':_0x27d34e(0x3e6),'children':_0x475185['t'](_0x27d34e(0x27d))}),(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x67e)],{'className':_0x27d34e(0x1da),'value':String(_0x599d22[_0x27d34e(0x581)]),'options':dr[_0x27d34e(0x611)](_0x1c675f=>({..._0x1c675f,'label':_0x475185['t'](_0x1c675f[_0x27d34e(0x3b3)])})),'onChange':_0x38b2cb=>_0x81ac6a(Number(_0x38b2cb))})]}),(0x0,d[_0x27d34e(0x634)])('label',{'className':_0x27d34e(0x3cb),'children':[(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x370)],'disabled':_0x599d22[_0x27d34e(0x581)]===e[_0x27d34e(0x1ea)]['compact'],'onChange':_0x2a7129=>_0x2ae9a9({'repeatRowLabels':!!_0x2a7129})}),_0x475185['t'](_0x27d34e(0x408))]}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x3b3),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','children':[(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x1c5)],'onChange':_0x1a0926=>_0x2ae9a9({'repeatColLabels':!!_0x1a0926})}),_0x475185['t'](_0x27d34e(0x4fa))]})]})]}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x696),{'children':[(0x0,d['jsx'])(_0x27d34e(0x664),{'className':(0x0,s['clsx'])(_0x27d34e(0x43d)),'children':_0x475185['t'](_0x27d34e(0x307))}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x664),{'className':_0x27d34e(0x2d1),'children':[(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x3b3),{'className':_0x27d34e(0x3cb),'children':[(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x23e)],'onChange':_0x509e37=>_0x2ae9a9({'showRowSubtotal':!!_0x509e37})}),_0x475185['t'](_0x27d34e(0x42e))]}),_0x599d22[_0x27d34e(0x581)]===e['PivotLayoutTypeEnum'][_0x27d34e(0x6ca)]&&(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x664),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[(0x0,d['jsx'])(_0x27d34e(0x1b4),{'className':'univer-text-sm\x20univer-text-gray-600','children':_0x475185['t'](_0x27d34e(0x499))}),(0x0,d['jsx'])(s[_0x27d34e(0x67e)],{'className':_0x27d34e(0x1da),'value':String(_0x599d22['rowSubtotalPosition']),'options':fr[_0x27d34e(0x611)](_0x20b45f=>({..._0x20b45f,'label':_0x475185['t'](_0x20b45f['label'])})),'onChange':_0x403218=>_0x2ae9a9({'rowSubtotalPosition':Number(_0x403218)})})]}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x3b3),{'className':_0x27d34e(0x3cb),'children':[(0x0,d['jsx'])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x6a8)],'onChange':_0x2970a8=>_0x2ae9a9({'showRowGrandTotal':!!_0x2970a8})}),_0x475185['t'](_0x27d34e(0x4ff))]}),(0x0,d[_0x27d34e(0x634)])('label',{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','children':[(0x0,d['jsx'])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x270)],'onChange':_0x2bb7d9=>_0x2ae9a9({'showColSubtotal':!!_0x2bb7d9})}),_0x475185['t'](_0x27d34e(0x6ff))]}),(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x3b3),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-text-gray-600','children':[(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x45d)],{'checked':_0x599d22[_0x27d34e(0x68f)],'onChange':_0x1fb9d6=>_0x2ae9a9({'showColGrandTotal':!!_0x1fb9d6})}),_0x475185['t'](_0x27d34e(0x2ee))]})]})]}),(0x0,d['jsxs'])(_0x27d34e(0x696),{'children':[(0x0,d['jsx'])('div',{'className':_0x27d34e(0x43d),'children':_0x475185['t'](_0x27d34e(0x619))}),(0x0,d['jsxs'])('div',{'className':_0x27d34e(0x6b1),'children':[(0x0,d[_0x27d34e(0x634)])(_0x27d34e(0x664),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[(0x0,d['jsx'])('span',{'className':_0x27d34e(0x3e6),'children':_0x475185['t'](_0x27d34e(0x647))}),(0x0,d[_0x27d34e(0x268)])(s['InputNumber'],{'className':_0x27d34e(0x229),'value':_0x599d22[_0x27d34e(0x34c)],'min':0x1,'max':0x14,'onChange':_0x59e060=>{let _0x148092=Number(_0x59e060);Number['isFinite'](_0x148092)&&_0x148092>=0x1&&_0x2ae9a9({'pageWrap':_0x148092});}})]}),(0x0,d[_0x27d34e(0x268)])('p',{'className':_0x27d34e(0x55e),'children':_0x475185['t'](_0x599d22[_0x27d34e(0x576)]?_0x27d34e(0x443):'sheets-pivot-ui.config.pageWrapDownThenOverHelp')}),(0x0,d['jsxs'])(_0x27d34e(0x664),{'className':_0x27d34e(0x1e8),'children':[(0x0,d['jsx'])('span',{'className':_0x27d34e(0x3e6),'children':_0x475185['t'](_0x27d34e(0x6fc))}),(0x0,d[_0x27d34e(0x268)])(s[_0x27d34e(0x67e)],{'className':_0x27d34e(0x1da),'value':String(_0x599d22[_0x27d34e(0x576)]),'options':ur[_0x27d34e(0x611)](_0x1e87ad=>({..._0x1e87ad,'label':_0x475185['t'](_0x1e87ad[_0x27d34e(0x3b3)])})),'onChange':_0x39aefc=>_0x2ae9a9({'pageOverThenDown':_0x39aefc===_0x27d34e(0x34d)})})]})]})]})]});}let Q=class extends n[_0x15a2ed(0x360)]{constructor(_0x3f4c15,_0x58abd3,_0x59a10d,_0xc260ad,_0x34c4bb,_0x413bb6,_0x3b5195,_0x52a755){const _0x5674c9=_0x15a2ed;super(),this[_0x5674c9(0x659)]=_0x3f4c15,this[_0x5674c9(0x569)]=_0x58abd3,this[_0x5674c9(0x486)]=_0x59a10d,this[_0x5674c9(0x549)]=_0xc260ad,this[_0x5674c9(0x44f)]=_0x34c4bb,this[_0x5674c9(0x1e0)]=_0x413bb6,this[_0x5674c9(0x4eb)]=_0x3b5195,this['_permissionService']=_0x52a755,W(this,_0x5674c9(0x4e8),void 0x0),W(this,_0x5674c9(0x602),new o[(_0x5674c9(0x413))]()),W(this,_0x5674c9(0x252),this[_0x5674c9(0x602)][_0x5674c9(0x2e6)]()),W(this,_0x5674c9(0x4d3),!0x1),W(this,'_isRangeSelector2Focus',!0x1),this[_0x5674c9(0x2fb)](),this[_0x5674c9(0x30d)]();}['setIsRangeSelectorFocus'](_0x2b6391){const _0x26c18c=_0x15a2ed;this[_0x26c18c(0x4d3)]=_0x2b6391;}['setIsRangeSelector2Focus'](_0x52541e){const _0x4fda24=_0x15a2ed;this[_0x4fda24(0x51b)]=_0x52541e;}[_0x15a2ed(0x250)](_0xdf9962){const _0x5ace95=_0x15a2ed;this[_0x5ace95(0x4e8)]=_0xdf9962;}[_0x15a2ed(0x1b5)](){const _0x82cc47=_0x15a2ed;this[_0x82cc47(0x4d3)]||this[_0x82cc47(0x51b)]||(this['_setPivotTableId'](void 0x0),this[_0x82cc47(0x44f)][_0x82cc47(0x3ff)](v));}['_initPanelOpen'](){const _0x47cc15=_0x15a2ed;let _0x2c9774=this['_univerInstanceService'][_0x47cc15(0x55a)](n[_0x47cc15(0x243)][_0x47cc15(0x1d6)]);if(_0x2c9774){let _0x287613=_0x2c9774[_0x47cc15(0x4d8)];this[_0x47cc15(0x28d)]((0x0,o[_0x47cc15(0x68a)])(_0x287613,this['_sheetsSelectionsService']['selectionMoveEnd$'])[_0x47cc15(0x6f3)](()=>{const _0x9e3734=_0x47cc15;let _0x596a21=this[_0x9e3734(0x659)][_0x9e3734(0x57b)]();if(!_0x596a21)return;let _0x3db095=_0x596a21[_0x596a21[_0x9e3734(0x714)]-0x1];if(!_0x3db095)return;let _0x147684=_0x3db095['primary'];if(!_0x147684)return;let _0x1d26b5=this[_0x9e3734(0x569)][_0x9e3734(0x55a)](n[_0x9e3734(0x243)][_0x9e3734(0x1d6)]),_0xc9cae4=_0x1d26b5==null?void 0x0:_0x1d26b5[_0x9e3734(0x713)]();if(!_0x1d26b5||!_0xc9cae4)return;let _0x5c2324=_0x1d26b5[_0x9e3734(0x613)](),_0x4fd261=_0xc9cae4[_0x9e3734(0x372)](),_0x5bf4e8=this['_sheetsPivotTableAdaptorModel'][_0x9e3734(0x56f)](_0x5c2324,_0x4fd261,_0x147684['startRow'],_0x147684[_0x9e3734(0x5e0)]);if(_0x5bf4e8){var _0x11389c,_0x2a7bd2;let _0x148fe6=(_0x11389c=this[_0x9e3734(0x486)][_0x9e3734(0x362)](_0x5c2324,_0x4fd261,_0x5bf4e8))==null?void 0x0:_0x11389c[_0x9e3734(0x39c)],_0x92f33c=(0x0,t[_0x9e3734(0x41d)])(_0x148fe6),_0x283147=(0x0,r[_0x9e3734(0x2f9)])(this[_0x9e3734(0x4eb)],_0x5c2324,_0x4fd261,_0x92f33c),_0x366903=(_0x2a7bd2=this[_0x9e3734(0x2aa)][_0x9e3734(0x5c1)](new r[(_0x9e3734(0x67d))](_0x5c2324,_0x4fd261)['id']))==null?void 0x0:_0x2a7bd2[_0x9e3734(0x635)];if(!_0x283147||!_0x366903)return;this[_0x9e3734(0x250)](_0x5bf4e8),this[_0x9e3734(0x602)][_0x9e3734(0x214)](!0x0),this[_0x9e3734(0x549)][_0x9e3734(0x2f0)](it['id'],{'pivotTableId':_0x5bf4e8});}else this['_closePivotPanel']();})),this['disposeWithMe'](this[_0x47cc15(0x549)][_0x47cc15(0x52d)](_0x38eae1=>{const _0x84bc50=_0x47cc15;_0x38eae1['id']===t[_0x84bc50(0x6c5)]['id']&&_0x38eae1[_0x84bc50(0x695)]['pivotTableId']===this[_0x84bc50(0x4e8)]&&this[_0x84bc50(0x44f)]['close'](v);}));}}[_0x15a2ed(0x30d)](){const _0x4bf183=_0x15a2ed;let _0x4dfd1b=this[_0x4bf183(0x569)]['getCurrentUnitOfType'](n['UniverInstanceType'][_0x4bf183(0x1d6)]);_0x4dfd1b&&this[_0x4bf183(0x28d)](_0x4dfd1b['sheetDisposed$']['subscribe'](()=>{const _0xf259de=_0x4bf183;this['_sidebarService'][_0xf259de(0x3ff)]();})),this[_0x4bf183(0x28d)](this[_0x4bf183(0x44f)]['sidebarOptions$']['subscribe'](_0x31cacf=>{const _0x110c52=_0x4bf183;if(_0x31cacf['id']==='UNIVER_SHEET_PIVOT_PANEL_ID'){let _0x55986c=!!_0x31cacf[_0x110c52(0x468)];this[_0x110c52(0x602)][_0x110c52(0x214)](_0x55986c),_0x55986c||this[_0x110c52(0x1e0)][_0x110c52(0x3ff)](S);}})),this[_0x4bf183(0x28d)](this['_dialogService'][_0x4bf183(0x534)]()['subscribe'](_0x29440b=>{const _0x1875b4=_0x4bf183;let _0x460862=_0x29440b[_0x1875b4(0x384)](_0x4f5e07=>_0x4f5e07['id']===A);_0x460862&&_0x460862['open']===!0x1&&this[_0x1875b4(0x1e0)][_0x1875b4(0x3ff)](A);}));}};Q=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x70e)])),G(0x1,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x4c5)])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(t['SheetsPivotTableAdaptorModel'])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(n['ICommandService'])),G(0x4,(0x0,n['Inject'])(i['ISidebarService'])),G(0x5,(0x0,n[_0x15a2ed(0x436)])(i['IDialogService'])),G(0x6,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x21b)])),G(0x7,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x3e4)]))],Q);const hr=(0x0,f[_0x15a2ed(0x206)])(null),gr=(0x0,f['createContext'])(null);function _r(_0x3c79f7,_0x31d696){const _0x1f8f07=_0x15a2ed;return _0x3c79f7===_0x31d696?!0x0:!_0x3c79f7||!_0x31d696?!0x1:_0x3c79f7[_0x1f8f07(0x483)]===_0x31d696[_0x1f8f07(0x483)]&&_0x3c79f7['index']===_0x31d696[_0x1f8f07(0x42a)];}function vr(_0x3b89a4){const _0x22c084=_0x15a2ed;if(!(_0x3b89a4 instanceof Element))return null;let _0xa53e84=_0x3b89a4[_0x22c084(0x241)]('[data-univer-dnd-droppable-id]');return _0xa53e84 instanceof HTMLElement?_0xa53e84:null;}function yr(_0x38988a,_0x110b75,_0x206e99,_0x4aebc9){const _0x232ff7=_0x15a2ed;let _0x4e9b6c=Array[_0x232ff7(0x3e8)](_0x38988a['querySelectorAll'](_0x232ff7(0x1f0)))[_0x232ff7(0x3f8)](_0x5f7dbe=>{const _0x2145d8=_0x232ff7;let _0x366082=_0x5f7dbe[_0x2145d8(0x6f2)][_0x2145d8(0x398)];return _0x366082?_0x366082!==_0x206e99[_0x2145d8(0x625)]||_0x206e99[_0x2145d8(0x257)]['droppableId']!==_0x4aebc9:!0x1;});if(!_0x4e9b6c[_0x232ff7(0x714)])return 0x0;for(let _0x5c91cc=0x0;_0x5c91cc<_0x4e9b6c[_0x232ff7(0x714)]-0x1;_0x5c91cc++){let _0x53eb3b=_0x4e9b6c[_0x5c91cc][_0x232ff7(0x2e9)]();if(_0x110b75<_0x53eb3b[_0x232ff7(0x557)]+_0x53eb3b[_0x232ff7(0x46b)]/0x2)return _0x5c91cc;}let _0x4cfb4b=_0x4e9b6c['length']-0x1,_0x22a18b=_0x4e9b6c[_0x4cfb4b]['getBoundingClientRect']();return _0x110b75<_0x22a18b['top']+_0x22a18b[_0x232ff7(0x46b)]*0.35?_0x4cfb4b:_0x4e9b6c[_0x232ff7(0x714)];}function br(){const _0xc1fed1=_0x15a2ed;let _0x3d4b4c=(0x0,f[_0xc1fed1(0x2ab)])(hr);if(!_0x3d4b4c)throw Error(_0xc1fed1(0x418));return _0x3d4b4c;}function xr(_0x3a664f){const _0x216fba=_0x15a2ed;let {children:_0x37788d,onDragEnd:_0x5d2a27,onDragStart:_0x3d2f08,onDragUpdate:_0x485a98}=_0x3a664f,[_0x5cdeec,_0x4a053d]=(0x0,f[_0x216fba(0x6de)])(null),_0x3d0a2a=(0x0,f[_0x216fba(0x5d6)])(null),_0x80aab1=(0x0,f[_0x216fba(0x3c9)])((_0x224fd5,_0x353473)=>{let _0x388b22={'draggableId':_0x224fd5,'source':_0x353473,'destination':null};_0x3d0a2a['current']=_0x388b22,_0x4a053d(_0x388b22),_0x3d2f08==null||_0x3d2f08({'draggableId':_0x224fd5,'source':_0x353473}),_0x485a98==null||_0x485a98({'draggableId':_0x224fd5,'source':_0x353473,'destination':null});},[_0x3d2f08,_0x485a98]),_0x3f9b06=(0x0,f[_0x216fba(0x3c9)])(_0x10d00f=>{const _0x13b0c3=_0x216fba;let _0x6654c9=_0x3d0a2a['current'];if(!_0x6654c9||_r(_0x6654c9[_0x13b0c3(0x668)],_0x10d00f))return;let _0x157817={..._0x6654c9,'destination':_0x10d00f};_0x3d0a2a['current']=_0x157817,_0x4a053d(_0x157817),_0x485a98==null||_0x485a98({'draggableId':_0x157817[_0x13b0c3(0x625)],'source':_0x157817[_0x13b0c3(0x257)],'destination':_0x157817[_0x13b0c3(0x668)]});},[_0x485a98]),_0x2ee214=(0x0,f[_0x216fba(0x3c9)])(async(_0x307a08,_0x4cdb18)=>{const _0x43c9ac=_0x216fba;let _0x5c6f22=_0x3d0a2a['current'];_0x5c6f22&&(_0x3d0a2a[_0x43c9ac(0x6c4)]=null,_0x4a053d(null),await(_0x5d2a27==null?void 0x0:_0x5d2a27({'draggableId':_0x5c6f22[_0x43c9ac(0x625)],'source':_0x5c6f22['source'],'destination':_0x4cdb18===void 0x0?_0x5c6f22[_0x43c9ac(0x668)]:_0x4cdb18,'reason':_0x307a08})));},[_0x5d2a27]);(0x0,f[_0x216fba(0x58b)])(()=>{const _0x5962c6=_0x216fba;if(!_0x5cdeec)return;let _0x50ba8a=_0x4f7929=>{const _0xb3f600=_0x1940;let _0x4677a8=vr(_0x4f7929[_0xb3f600(0x1c6)]);_0x4677a8&&_0x4677a8[_0xb3f600(0x6f2)][_0xb3f600(0x51a)]!==_0xb3f600(0x34d)||_0x3f9b06(null);};return window[_0x5962c6(0x347)]('dragover',_0x50ba8a,!0x0),()=>{const _0x4eba48=_0x5962c6;window[_0x4eba48(0x6bd)](_0x4eba48(0x45f),_0x50ba8a,!0x0);};},[_0x5cdeec,_0x3f9b06]);let _0x12d690=(0x0,f[_0x216fba(0x264)])(()=>({'activeDrag':_0x5cdeec,'startDrag':_0x80aab1,'updateDestination':_0x3f9b06,'endDrag':_0x2ee214}),[_0x5cdeec,_0x80aab1,_0x3f9b06,_0x2ee214]);return(0x0,d['jsx'])(hr[_0x216fba(0x530)],{'value':_0x12d690,'children':_0x37788d});}function Sr(_0x3e685a){const _0x7718ef=_0x15a2ed;var _0x22539e;let {children:_0xf5ab5f,droppableId:_0x1e9ef0,isDropDisabled:_0x1fffef=!0x1}=_0x3e685a,{activeDrag:_0xfee6ef,updateDestination:_0x149aba,endDrag:_0x512c87}=br(),_0x770caa=(0x0,f['useRef'])(null),_0x2938b2={'innerRef':(0x0,f[_0x7718ef(0x3c9)])(_0x36f5a3=>{_0x770caa['current']=_0x36f5a3;},[]),'droppableProps':{'onDragOver':(0x0,f[_0x7718ef(0x3c9)])(_0x3e8553=>{const _0x294449=_0x7718ef;if(!_0xfee6ef||_0x1fffef||!_0x770caa['current'])return;_0x3e8553[_0x294449(0x1bb)]();let _0x592fca=yr(_0x770caa[_0x294449(0x6c4)],_0x3e8553[_0x294449(0x1ca)],_0xfee6ef,_0x1e9ef0);_0x149aba({'droppableId':_0x1e9ef0,'index':_0x592fca});},[_0xfee6ef,_0x1fffef,_0x1e9ef0,_0x149aba]),'onDrop':(0x0,f['useCallback'])(_0x3477a7=>{const _0x43aadc=_0x7718ef;var _0x2103fc;if(!_0xfee6ef||_0x1fffef||!_0x770caa[_0x43aadc(0x6c4)])return;_0x3477a7[_0x43aadc(0x1bb)]();let _0x258ef3=(((_0x2103fc=_0xfee6ef[_0x43aadc(0x668)])==null?void 0x0:_0x2103fc[_0x43aadc(0x483)])===_0x1e9ef0?_0xfee6ef[_0x43aadc(0x668)]:null)??{'droppableId':_0x1e9ef0,'index':yr(_0x770caa[_0x43aadc(0x6c4)],_0x3477a7[_0x43aadc(0x1ca)],_0xfee6ef,_0x1e9ef0)};return _0x512c87(_0x43aadc(0x3ea),_0x258ef3);},[_0xfee6ef,_0x512c87,_0x1fffef,_0x1e9ef0]),'data-univer-dnd-droppable-id':_0x1e9ef0,'data-univer-dnd-drop-disabled':String(_0x1fffef)},'placeholder':null},_0x19445f={'isDraggingOver':!!(_0xfee6ef&&((_0x22539e=_0xfee6ef[_0x7718ef(0x668)])==null?void 0x0:_0x22539e['droppableId'])===_0x1e9ef0)};return(0x0,d[_0x7718ef(0x268)])(gr[_0x7718ef(0x530)],{'value':_0x1e9ef0,'children':_0xf5ab5f(_0x2938b2,_0x19445f)});}function Cr(_0x2c6e39){const _0x4cb6d3=_0x15a2ed;var _0x545de8;let {children:_0x34a3a1,draggableId:_0x424c4c,index:_0x219678,isDragDisabled:_0xf0e685=!0x1}=_0x2c6e39,{activeDrag:_0x5db3e0,startDrag:_0x13d6b3,updateDestination:_0x1b4aa0,endDrag:_0x4850b8}=br(),_0x9f43ad=(0x0,f[_0x4cb6d3(0x2ab)])(gr),_0x128c5b=(0x0,f[_0x4cb6d3(0x5d6)])(null),_0x5eef4e=(0x0,f[_0x4cb6d3(0x5d6)])(null),_0x4c853d=(0x0,f[_0x4cb6d3(0x5d6)])(!0x1),_0x4ace8c=(0x0,f['useRef'])(null),_0x17118f=(0x0,f['useRef'])(null),_0x157fa5=(0x0,f['useRef'])(!0x1),_0x25d99b=(0x0,f[_0x4cb6d3(0x5d6)])(null),_0x5c6e3b=(0x0,f[_0x4cb6d3(0x5d6)])(null),_0x5a232c=(0x0,f[_0x4cb6d3(0x5d6)])(null),_0x2ccb43=(0x0,f[_0x4cb6d3(0x3c9)])(_0x1f2eed=>{_0x128c5b['current']=_0x1f2eed;},[]),_0x203fb2=(_0x5db3e0==null?void 0x0:_0x5db3e0[_0x4cb6d3(0x625)])===_0x424c4c,_0x5cb901=(0x0,f[_0x4cb6d3(0x3c9)])(()=>{const _0x457d56=_0x4cb6d3;_0x17118f[_0x457d56(0x6c4)]&&=(window['clearTimeout'](_0x17118f[_0x457d56(0x6c4)]),null);},[]),_0x1e8fee=(0x0,f[_0x4cb6d3(0x3c9)])(()=>{const _0x7969fc=_0x4cb6d3;_0x5cb901(),_0x5a232c[_0x7969fc(0x6c4)]=null,_0x4ace8c[_0x7969fc(0x6c4)]&&=(_0x4ace8c['current'](),null),_0x25d99b[_0x7969fc(0x6c4)]&&=(_0x25d99b[_0x7969fc(0x6c4)]['remove'](),null),_0x5c6e3b[_0x7969fc(0x6c4)]=null,_0x4c853d[_0x7969fc(0x6c4)]=!0x1;},[_0x5cb901]);(0x0,f[_0x4cb6d3(0x58b)])(()=>_0x1e8fee,[_0x1e8fee]);let _0x55c555=(0x0,f[_0x4cb6d3(0x3c9)])((_0x191abd,_0x4a285b)=>{const _0x3eb0f1=_0x4cb6d3;if(_0x25d99b[_0x3eb0f1(0x6c4)])return;let _0x55a709=_0x128c5b[_0x3eb0f1(0x6c4)];if(!_0x55a709)return;let _0x3c5807=_0x55a709[_0x3eb0f1(0x2e9)](),_0x3c97fb=_0x191abd>0x0?Math['max'](0x0,_0x191abd-_0x3c5807[_0x3eb0f1(0x5de)]):0xc,_0x443407=_0x4a285b>0x0?Math[_0x3eb0f1(0x523)](0x0,_0x4a285b-_0x3c5807[_0x3eb0f1(0x557)]):0xc,_0x5a3589=_0x55a709[_0x3eb0f1(0x69e)](!0x0);if(!(_0x5a3589 instanceof HTMLDivElement))return;let _0x3dc122=_0x5a3589;_0x3dc122[_0x3eb0f1(0x3d5)][_0x3eb0f1(0x47d)]='fixed',_0x3dc122[_0x3eb0f1(0x3d5)][_0x3eb0f1(0x5de)]=_0x3eb0f1(0x33c),_0x3dc122['style']['top']='0px',_0x3dc122['style']['width']=_0x3c5807[_0x3eb0f1(0x5c7)]+'px',_0x3dc122[_0x3eb0f1(0x3d5)]['height']=_0x3c5807[_0x3eb0f1(0x46b)]+'px',_0x3dc122['style'][_0x3eb0f1(0x3d1)]=_0x3eb0f1(0x704),_0x3dc122[_0x3eb0f1(0x3d5)][_0x3eb0f1(0x339)]=_0x3eb0f1(0x228),_0x3dc122[_0x3eb0f1(0x3d5)][_0x3eb0f1(0x4a2)]=_0x3eb0f1(0x33a),_0x3dc122['style'][_0x3eb0f1(0x3f4)]=_0x3eb0f1(0x473),_0x3dc122['style'][_0x3eb0f1(0x3df)]='translate('+Math[_0x3eb0f1(0x523)](0x0,_0x191abd-_0x3c97fb)+_0x3eb0f1(0x70b)+Math[_0x3eb0f1(0x523)](0x0,_0x4a285b-_0x443407)+'px)',document['body'][_0x3eb0f1(0x5b7)](_0x3dc122),_0x25d99b[_0x3eb0f1(0x6c4)]=_0x3dc122,_0x5c6e3b[_0x3eb0f1(0x6c4)]={'x':_0x3c97fb,'y':_0x443407};},[]),_0x5f53dd=(0x0,f['useCallback'])((_0x1b6c81,_0x3c1476)=>{const _0x2a0b69=_0x4cb6d3;let _0x20a0bd=_0x25d99b[_0x2a0b69(0x6c4)],_0x68ec63=_0x5c6e3b[_0x2a0b69(0x6c4)];_0x20a0bd&&_0x68ec63&&(_0x20a0bd[_0x2a0b69(0x3d5)][_0x2a0b69(0x3df)]=_0x2a0b69(0x29c)+Math[_0x2a0b69(0x523)](0x0,_0x1b6c81-_0x68ec63['x'])+_0x2a0b69(0x70b)+Math[_0x2a0b69(0x523)](0x0,_0x3c1476-_0x68ec63['y'])+_0x2a0b69(0x71c));},[]),_0x4a2976=(0x0,f['useCallback'])((_0x2c510c,_0x29016c)=>{const _0x2945f1=_0x4cb6d3;let _0x3428f0=vr(document[_0x2945f1(0x449)](_0x2c510c,_0x29016c));if(!_0x3428f0||_0x3428f0[_0x2945f1(0x6f2)]['univerDndDropDisabled']===_0x2945f1(0x34d))return null;let _0x581e99=_0x3428f0[_0x2945f1(0x6f2)][_0x2945f1(0x205)];return _0x581e99?{'droppableId':_0x581e99,'index':yr(_0x3428f0,_0x29016c,{'draggableId':_0x424c4c,'source':{'droppableId':_0x9f43ad??'','index':_0x219678},'destination':null},_0x581e99)}:null;},[_0x424c4c,_0x9f43ad,_0x219678]),_0x4f43ab=(0x0,f[_0x4cb6d3(0x3c9)])((_0x143964,_0x14d13d,_0x1d4f78,_0x48ef75)=>{const _0x5b23cd=_0x4cb6d3;if(_0x4c853d[_0x5b23cd(0x6c4)]||_0x157fa5[_0x5b23cd(0x6c4)]||_0xf0e685||!_0x9f43ad)return;_0x4c853d[_0x5b23cd(0x6c4)]=!0x0,_0x5cb901(),_0x157fa5[_0x5b23cd(0x6c4)]=!0x1;try{var _0x3180c7;(_0x3180c7=_0x128c5b[_0x5b23cd(0x6c4)])==null||_0x3180c7['setPointerCapture'](_0x14d13d);}catch{}_0x55c555(_0x1d4f78,_0x48ef75),_0x13d6b3(_0x424c4c,{'droppableId':_0x9f43ad,'index':_0x219678});let _0x2aca82=_0x4a2976(_0x1d4f78,_0x48ef75);_0x1b4aa0(_0x2aca82);try{_0x143964[_0x5b23cd(0x1bb)]();}catch{}},[_0x5cb901,_0x424c4c,_0x9f43ad,_0x219678,_0xf0e685,_0x55c555,_0x4a2976,_0x13d6b3,_0x1b4aa0]),_0x1c0a78=(0x0,f[_0x4cb6d3(0x3c9)])(_0x2c6f32=>{const _0x4f4aba=_0x4cb6d3;if(_0xf0e685||!_0x9f43ad||_0x2c6f32[_0x4f4aba(0x20f)]==='mouse'&&_0x2c6f32[_0x4f4aba(0x535)]!==0x0)return;_0x157fa5[_0x4f4aba(0x6c4)]=!0x1;let _0x4ab333=_0x2c6f32[_0x4f4aba(0x5b8)];_0x5a232c[_0x4f4aba(0x6c4)]={'pointerId':_0x4ab333,'pointerType':_0x2c6f32[_0x4f4aba(0x20f)],'startX':_0x2c6f32[_0x4f4aba(0x3e9)],'startY':_0x2c6f32[_0x4f4aba(0x1ca)]},_0x5cb901(),_0x2c6f32[_0x4f4aba(0x20f)]!=='mouse'&&(_0x17118f['current']=window[_0x4f4aba(0x2be)](()=>{const _0x22d6b9=_0x4f4aba;let _0x5f4e9d=_0x5a232c[_0x22d6b9(0x6c4)];_0x5f4e9d&&_0x5f4e9d[_0x22d6b9(0x5b8)]===_0x4ab333&&_0x4f43ab(_0x2c6f32['nativeEvent'],_0x5f4e9d[_0x22d6b9(0x5b8)],_0x5f4e9d[_0x22d6b9(0x2fa)],_0x5f4e9d['startY']);},0x96));let _0x3363c8=_0x884a1c=>{const _0x39268c=_0x4f4aba;let _0x49ccd5=_0x5a232c[_0x39268c(0x6c4)];if(!_0x49ccd5||_0x884a1c[_0x39268c(0x5b8)]!==_0x49ccd5[_0x39268c(0x5b8)])return;if(!_0x4c853d[_0x39268c(0x6c4)]){if(_0x157fa5[_0x39268c(0x6c4)]){_0x1e8fee();return;}if(_0x49ccd5[_0x39268c(0x20f)]==='mouse'){let _0x33d356=_0x884a1c[_0x39268c(0x3e9)]-_0x49ccd5[_0x39268c(0x2fa)],_0x3715b2=_0x884a1c[_0x39268c(0x1ca)]-_0x49ccd5[_0x39268c(0x20d)];_0x33d356*_0x33d356+_0x3715b2*_0x3715b2>=0x10&&_0x4f43ab(_0x884a1c,_0x49ccd5[_0x39268c(0x5b8)],_0x884a1c[_0x39268c(0x3e9)],_0x884a1c['clientY']);}return;}_0x5f53dd(_0x884a1c[_0x39268c(0x3e9)],_0x884a1c['clientY']);let _0x3bdfea=_0x4a2976(_0x884a1c[_0x39268c(0x3e9)],_0x884a1c[_0x39268c(0x1ca)]);_0x1b4aa0(_0x3bdfea);try{_0x884a1c[_0x39268c(0x1bb)]();}catch{}},_0x2fa516=_0x495fd7=>{const _0x4bd8a1=_0x4f4aba;let _0x531c11=_0x5a232c['current'];if(!_0x531c11||_0x495fd7[_0x4bd8a1(0x5b8)]!==_0x531c11['pointerId'])return;let _0x17076e=_0x4c853d[_0x4bd8a1(0x6c4)]?_0x4a2976(_0x495fd7[_0x4bd8a1(0x3e9)],_0x495fd7[_0x4bd8a1(0x1ca)]):null,_0x490835=_0x4c853d['current']?_0x4850b8(_0x17076e?_0x4bd8a1(0x3ea):'CANCEL',_0x17076e):Promise['resolve']();return _0x1e8fee(),_0x490835;};window[_0x4f4aba(0x347)](_0x4f4aba(0x637),_0x3363c8,{'capture':!0x0,'passive':!0x1}),window[_0x4f4aba(0x347)](_0x4f4aba(0x2e7),_0x2fa516,{'capture':!0x0}),window['addEventListener'](_0x4f4aba(0x1f3),_0x2fa516,{'capture':!0x0}),_0x4ace8c[_0x4f4aba(0x6c4)]=()=>{const _0x2ab159=_0x4f4aba;window[_0x2ab159(0x6bd)](_0x2ab159(0x637),_0x3363c8,!0x0),window[_0x2ab159(0x6bd)](_0x2ab159(0x2e7),_0x2fa516,!0x0),window[_0x2ab159(0x6bd)](_0x2ab159(0x1f3),_0x2fa516,!0x0);};},[_0x1e8fee,_0x5cb901,_0x9f43ad,_0x4850b8,_0xf0e685,_0x4a2976,_0x4f43ab,_0x1b4aa0,_0x5f53dd]),_0x5c74f6=(0x0,f['useCallback'])(_0x56144b=>{const _0x3cbd9d=_0x4cb6d3;let _0x3e0639=_0x56144b[_0x3cbd9d(0x1be)];if(!_0x3e0639||typeof _0x3e0639[_0x3cbd9d(0x395)]!=_0x3cbd9d(0x595))return;let _0x17d193=_0x56144b[_0x3cbd9d(0x412)],_0x53897b=_0x17d193[_0x3cbd9d(0x69e)](!0x0);if(!(_0x53897b instanceof HTMLDivElement))return;let _0x335fb5=_0x53897b;_0x335fb5['style'][_0x3cbd9d(0x47d)]='fixed',_0x335fb5[_0x3cbd9d(0x3d5)][_0x3cbd9d(0x5de)]=_0x3cbd9d(0x40f),_0x335fb5[_0x3cbd9d(0x3d5)][_0x3cbd9d(0x557)]='-9999px',_0x335fb5['style']['width']=_0x17d193[_0x3cbd9d(0x2e9)]()[_0x3cbd9d(0x5c7)]+'px',_0x335fb5[_0x3cbd9d(0x3d5)][_0x3cbd9d(0x3d1)]=_0x3cbd9d(0x704),_0x335fb5[_0x3cbd9d(0x3d5)][_0x3cbd9d(0x339)]=_0x3cbd9d(0x3af),_0x335fb5[_0x3cbd9d(0x3d5)][_0x3cbd9d(0x4a2)]=_0x3cbd9d(0x33a),document['body'][_0x3cbd9d(0x5b7)](_0x335fb5);let _0x5638b0=_0x17d193[_0x3cbd9d(0x2e9)](),_0x52da71=_0x56144b[_0x3cbd9d(0x3e9)]>0x0?Math[_0x3cbd9d(0x523)](0x0,_0x56144b[_0x3cbd9d(0x3e9)]-_0x5638b0[_0x3cbd9d(0x5de)]):0xc,_0x3c79a5=_0x56144b['clientY']>0x0?Math[_0x3cbd9d(0x523)](0x0,_0x56144b['clientY']-_0x5638b0['top']):0xc;_0x3e0639[_0x3cbd9d(0x395)](_0x335fb5,_0x52da71,_0x3c79a5),_0x5eef4e[_0x3cbd9d(0x6c4)]&&_0x5eef4e['current']!==_0x335fb5&&_0x5eef4e[_0x3cbd9d(0x6c4)][_0x3cbd9d(0x6e4)](),_0x5eef4e[_0x3cbd9d(0x6c4)]=_0x335fb5;},[]),_0x8c7ff3=(0x0,f[_0x4cb6d3(0x3c9)])(_0x5d56e6=>{const _0x1fa303=_0x4cb6d3;if(_0x4c853d['current']||_0xf0e685||!_0x9f43ad){_0x5d56e6[_0x1fa303(0x1bb)]();return;}_0x157fa5[_0x1fa303(0x6c4)]=!0x0,_0x5cb901(),_0x5a232c[_0x1fa303(0x6c4)]=null,_0x4ace8c[_0x1fa303(0x6c4)]&&=(_0x4ace8c['current'](),null);let _0x5db3ed=_0x5d56e6['dataTransfer'];if(_0x5db3ed){try{_0x5db3ed[_0x1fa303(0x240)]=_0x1fa303(0x526);}catch{}try{_0x5db3ed[_0x1fa303(0x3b1)]('text/plain',_0x424c4c);}catch{}}try{_0x5c74f6(_0x5d56e6);}catch{}_0x13d6b3(_0x424c4c,{'droppableId':_0x9f43ad,'index':_0x219678});},[_0x5c74f6,_0x5cb901,_0x424c4c,_0x9f43ad,_0x219678,_0xf0e685,_0x13d6b3]),_0x3548f8=(0x0,f['useCallback'])(()=>(_0x5eef4e[_0x4cb6d3(0x6c4)]&&=(_0x5eef4e[_0x4cb6d3(0x6c4)][_0x4cb6d3(0x6e4)](),null),_0x4850b8('CANCEL',null)),[_0x4850b8]);return _0x34a3a1({'innerRef':_0x2ccb43,'draggableProps':{'draggable':!_0xf0e685,'onDragStart':_0x8c7ff3,'onDragEnd':_0x3548f8,'style':_0x203fb2?{'opacity':0x1}:void 0x0,'data-univer-dnd-item':'true','data-univer-dnd-id':_0x424c4c,'data-univer-dnd-index':String(_0x219678)},'dragHandleProps':{'onPointerDown':_0x1c0a78}},{'isDragging':_0x203fb2,'draggingOver':_0x5db3e0==null||(_0x545de8=_0x5db3e0[_0x4cb6d3(0x668)])==null?void 0x0:_0x545de8['droppableId']});}function wr(_0x9488bb,_0xc0af2e){const _0x1cc868=_0x15a2ed;switch(_0x9488bb){case _0x1cc868(0x3f8):return _0xc0af2e['t']('sheets-pivot-ui.filter');case'row':return _0xc0af2e['t'](_0x1cc868(0x538));case _0x1cc868(0x377):return _0xc0af2e['t'](_0x1cc868(0x4dc));case _0x1cc868(0x635):return _0xc0af2e['t'](_0x1cc868(0x1db));}}function Tr(_0x14e52c){const _0x36b9e9=_0x15a2ed;switch(_0x14e52c){case _0x36b9e9(0x3f8):return(0x0,d['jsx'])(u[_0x36b9e9(0x2b7)],{'className':_0x36b9e9(0x454)});case _0x36b9e9(0x291):return(0x0,d['jsx'])(u['ColumnIcon'],{'className':_0x36b9e9(0x454)});case'column':return(0x0,d[_0x36b9e9(0x268)])(u[_0x36b9e9(0x2ef)],{'className':_0x36b9e9(0x454)});case _0x36b9e9(0x635):return(0x0,d['jsx'])(u['FunctionIcon'],{'className':_0x36b9e9(0x454)});}}function Er(_0x4c74ff){const _0x4164a5=_0x15a2ed;switch(_0x4c74ff){case _0x4164a5(0x3f8):return(0x0,d[_0x4164a5(0x634)])(_0x4164a5(0x5d5),{'xmlns':_0x4164a5(0x485),'width':'32','height':'32','viewBox':_0x4164a5(0x62f),'fill':_0x4164a5(0x704),'children':[(0x0,d['jsx'])('path',{'d':'M4.99957\x201.875C2.84556\x201.875\x201.67491\x204.3932\x203.06336\x206.04001L11.5946\x2016.1587V26.4187C11.5946\x2027.4582\x2012.2298\x2028.3922\x2013.1966\x2028.7741L16.1601\x2029.9449C17.8221\x2030.6015\x2019.6232\x2029.3766\x2019.6232\x2027.5895V16.1587L28.1544\x206.04C29.5428\x204.3932\x2028.3722\x201.875\x2026.2182\x201.875H4.99957Z','fill':_0x4164a5(0x35f)}),(0x0,d['jsx'])(_0x4164a5(0x2c9),{'x':_0x4164a5(0x23d),'y':'17.8544','width':_0x4164a5(0x32c),'height':'2.2793','rx':_0x4164a5(0x681),'fill':_0x4164a5(0x376)}),(0x0,d[_0x4164a5(0x268)])('rect',{'x':'21.9404','y':_0x4164a5(0x5a7),'width':_0x4164a5(0x32c),'height':_0x4164a5(0x216),'rx':'1.13965','fill':'#274FEE'}),(0x0,d['jsx'])(_0x4164a5(0x2c9),{'x':_0x4164a5(0x23d),'y':_0x4164a5(0x244),'width':_0x4164a5(0x32c),'height':_0x4164a5(0x216),'rx':'1.13965','fill':_0x4164a5(0x376)})]});case _0x4164a5(0x291):return(0x0,d[_0x4164a5(0x634)])('svg',{'xmlns':'http://www.w3.org/2000/svg','width':'32','height':'32','viewBox':_0x4164a5(0x62f),'fill':_0x4164a5(0x704),'children':[(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':'M2\x2012.3661C2\x2012.0347\x202.26863\x2011.7661\x202.6\x2011.7661H9.24705C9.57842\x2011.7661\x209.84705\x2012.0347\x209.84705\x2012.3661V29.278C9.84705\x2029.6093\x209.57842\x2029.878\x209.24705\x2029.878H4C2.89543\x2029.878\x202\x2028.9825\x202\x2027.878V12.3661Z','fill':'#D8D8D8'}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':'M2\x204.0863C2\x202.98173\x202.89543\x202.0863\x204\x202.0863H9.24705C9.57842\x202.0863\x209.84705\x202.35493\x209.84705\x202.6863V8.73981C9.84705\x209.07118\x209.57842\x209.33981\x209.24705\x209.33981H2.6C2.26863\x209.33981\x202\x209.07118\x202\x208.73981V4.0863Z','fill':_0x4164a5(0x30b)}),(0x0,d['jsx'])('path',{'d':_0x4164a5(0x409),'fill':_0x4164a5(0x35f)}),(0x0,d[_0x4164a5(0x268)])('path',{'d':_0x4164a5(0x1f5),'fill':_0x4164a5(0x376)})]});case _0x4164a5(0x377):return(0x0,d[_0x4164a5(0x634)])('svg',{'xmlns':_0x4164a5(0x485),'width':'32','height':'32','viewBox':_0x4164a5(0x62f),'fill':_0x4164a5(0x704),'children':[(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':_0x4164a5(0x292),'fill':_0x4164a5(0x376)}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':_0x4164a5(0x585),'fill':_0x4164a5(0x30b)}),(0x0,d[_0x4164a5(0x268)])('path',{'d':_0x4164a5(0x327),'fill':_0x4164a5(0x30b)}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':_0x4164a5(0x552),'fill':_0x4164a5(0x35f)})]});case'value':return(0x0,d['jsxs'])(_0x4164a5(0x5d5),{'xmlns':_0x4164a5(0x485),'width':'32','height':'32','viewBox':_0x4164a5(0x62f),'fill':_0x4164a5(0x704),'children':[(0x0,d['jsx'])('path',{'d':_0x4164a5(0x292),'fill':_0x4164a5(0x30b)}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':'M2\x204.0863C2\x202.98173\x202.89543\x202.0863\x204\x202.0863H9.24705C9.57842\x202.0863\x209.84705\x202.35493\x209.84705\x202.6863V8.73981C9.84705\x209.07118\x209.57842\x209.33981\x209.24705\x209.33981H2.6C2.26863\x209.33981\x202\x209.07118\x202\x208.73981V4.0863Z','fill':_0x4164a5(0x30b)}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':'M12.2637\x202.6863C12.2637\x202.35493\x2012.5323\x202.0863\x2012.8637\x202.0863H27.9702C29.0748\x202.0863\x2029.9702\x202.98173\x2029.9702\x204.0863V8.73627C29.9702\x209.06764\x2029.7016\x209.33627\x2029.3702\x209.33627H12.8637C12.5323\x209.33627\x2012.2637\x209.06764\x2012.2637\x208.73627L12.2637\x202.6863Z','fill':_0x4164a5(0x30b)}),(0x0,d[_0x4164a5(0x268)])(_0x4164a5(0x472),{'d':_0x4164a5(0x552),'fill':_0x4164a5(0x376)})]});}}function Dr(_0x6f5b53,_0x5b8ba0){const _0x4c6d25=_0x15a2ed;switch(_0x6f5b53){case _0x4c6d25(0x3f8):return _0x5b8ba0['t'](_0x4c6d25(0x274));case _0x4c6d25(0x291):return _0x5b8ba0['t']('sheets-pivot-ui.rowDesc');case _0x4c6d25(0x377):return _0x5b8ba0['t'](_0x4c6d25(0x58e));case _0x4c6d25(0x635):return _0x5b8ba0['t'](_0x4c6d25(0x6c8));}}function Or(_0x5519cc){const _0x4f770c=_0x15a2ed;let _0x2fbd47=(0x0,i['useDependency'])(n[_0x4f770c(0x58a)]),{areaType:_0x4d734b}=_0x5519cc,_0x10d1d1=Dr(_0x4d734b,_0x2fbd47),_0x20874f=Er(_0x4d734b);return(0x0,d[_0x4f770c(0x634)])('div',{'className':_0x4f770c(0x641),'children':[(0x0,d[_0x4f770c(0x268)])(_0x4f770c(0x664),{'className':_0x4f770c(0x64d),'children':_0x20874f}),(0x0,d[_0x4f770c(0x268)])(_0x4f770c(0x664),{'className':_0x4f770c(0x462),'children':_0x10d1d1})]});}function kr(_0x2efb36){const _0x558a71=_0x15a2ed;let {areaType:_0x1d3210,items:_0x2b4e16,positionInfo:_0x4971fe,pivotTableId:_0x2f9fe3,pivotTableInfo:_0x52a3c4}=_0x2efb36,_0x4a578a=(0x0,i[_0x558a71(0x50b)])(n[_0x558a71(0x58a)]);return(0x0,d['jsxs'])('div',{'className':'univer-min-h-[200px]\x20univer-flex-1\x20univer-p-1','children':[(0x0,d[_0x558a71(0x634)])(_0x558a71(0x664),{'className':_0x558a71(0x1e2),'children':[Tr(_0x1d3210),(0x0,d['jsx'])('span',{'className':_0x558a71(0x315),'children':wr(_0x1d3210,_0x4a578a)})]}),(0x0,d['jsx'])(Sr,{'droppableId':''+_0x1d3210,'isCombineEnabled':!0x1,'isDropDisabled':!0x1,'ignoreContainerClipping':!0x1,'direction':'vertical','children':(_0x172ee9,_0x45fee3)=>(0x0,d[_0x558a71(0x268)])('div',{'className':(0x0,s['clsx'])(_0x558a71(0x6a4),s[_0x558a71(0x366)],{'univer-border-primary-600':_0x45fee3[_0x558a71(0x3d2)]}),'children':(0x0,d['jsx'])('div',{'className':(0x0,s[_0x558a71(0x5fe)])(_0x558a71(0x4c7),s[_0x558a71(0x296)]),'children':(0x0,d[_0x558a71(0x634)])(_0x558a71(0x664),{'ref':_0x172ee9[_0x558a71(0x4a7)],'className':_0x558a71(0x342),..._0x172ee9[_0x558a71(0x2c0)],'children':[_0x2b4e16[_0x558a71(0x714)]>0x0&&_0x2b4e16['map']((_0x1590a8,_0x44f2d8)=>(0x0,d[_0x558a71(0x268)])(_0x558a71(0x664),{'children':(0x0,d[_0x558a71(0x268)])(Cr,{'isDragDisabled':!0x1,'draggableId':_0x1590a8['tableFieldId'],'index':_0x44f2d8,'children':(_0x17e875,_0x452687)=>(0x0,d['jsx'])(d[_0x558a71(0x4c3)],{'children':(0x0,d['jsx'])('div',{'ref':_0x17e875[_0x558a71(0x4a7)],..._0x17e875[_0x558a71(0x37f)],..._0x17e875[_0x558a71(0x520)],'style':_0x17e875[_0x558a71(0x37f)][_0x558a71(0x3d5)],'className':(0x0,s[_0x558a71(0x5fe)])(_0x558a71(0x3b0),_0x452687[_0x558a71(0x2b9)]&&'univer-border-primary-600'),'children':(0x0,d['jsx'])(Ar,{'pivotTableId':_0x2f9fe3,'positionInfo':_0x4971fe,'item':_0x1590a8,'areaType':_0x1d3210,'pivotTableInfo':_0x52a3c4})})})},_0x1590a8[_0x558a71(0x6ed)])},_0x1590a8['tableFieldId'])),_0x2b4e16['length']===0x0&&(0x0,d['jsx'])(Or,{'areaType':_0x1d3210})]})})})})]});}function Ar(_0x313291){const _0x3c7ee6=_0x15a2ed;let {areaType:_0x56d78b,item:_0x52d851,positionInfo:_0x53c5ca,pivotTableId:_0x3337cd,pivotTableInfo:_0x124c2f}=_0x313291,{unitId:_0x5c2f29,subUnitId:_0x8d4ece}=_0x53c5ca,_0x59c5c9=_0x52d851[_0x3c7ee6(0x6ed)]===mt,_0xe91bea=(0x0,i[_0x3c7ee6(0x50b)])(n['ICommandService']),_0x515384=(0x0,i[_0x3c7ee6(0x50b)])(n[_0x3c7ee6(0x58a)]),_0x4e6e9e=()=>{const _0x5a74e4=_0x3c7ee6;if(_0x59c5c9){let _0x3357a3=(_0x124c2f[_0x5a74e4(0x35d)]||[])[_0x5a74e4(0x611)](_0x22d68e=>_0x22d68e[_0x5a74e4(0x6ed)]);wt({'pivotTableId':_0x3337cd,'unitId':_0x5c2f29,'subUnitId':_0x8d4ece,'commandService':_0xe91bea},_0x3357a3);}else wt({'pivotTableId':_0x3337cd,'unitId':_0x5c2f29,'subUnitId':_0x8d4ece,'commandService':_0xe91bea},[_0x52d851[_0x5a74e4(0x6ed)]]);},_0x37d164=()=>{_0x5c2f29&&_0x8d4ece&&Dt(_0xe91bea,_0x5c2f29,_0x8d4ece,_0x3337cd,_0x52d851['tableFieldId']);},_0x4d11e8=()=>{const _0x5a8143=_0x3c7ee6;_0x5c2f29&&_0x8d4ece&&Ot(_0xe91bea,_0x3337cd,_0x52d851[_0x5a8143(0x6ed)],_0x5c2f29,_0x8d4ece,_0x124c2f);},_0x3e6736=_0x386307=>{const _0x2d2014=_0x3c7ee6;let _0x2728e6=_0x386307==='column'?e[_0x2d2014(0x4ee)][_0x2d2014(0x50d)]:e[_0x2d2014(0x4ee)][_0x2d2014(0x3e2)],_0x48106c=_0x386307==='column'?_0x124c2f[_0x2d2014(0x542)]['length']:_0x124c2f[_0x2d2014(0x40c)][_0x2d2014(0x714)];Tt({'pivotTableId':_0x3337cd,'unitId':_0x5c2f29,'subUnitId':_0x8d4ece,'commandService':_0xe91bea},_0x2728e6,_0x48106c);},_0x4291e1=(0x0,d[_0x3c7ee6(0x634)])('div',{'className':_0x3c7ee6(0x3b7),'children':[(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','onClick':()=>{_0x4e6e9e();},'children':_0x515384['t']('sheets-pivot-ui.removeField')}),_0x56d78b!==_0x3c7ee6(0x635)&&!_0x59c5c9&&(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':_0x3c7ee6(0x631),'onClick':()=>{_0x37d164();},'children':_0x515384['t'](_0x3c7ee6(0x481))}),_0x59c5c9&&(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20dark:!univer-text-gray-0','onClick':()=>{_0x3e6736(_0x56d78b);},'children':_0x56d78b===_0x3c7ee6(0x377)?_0x515384['t'](_0x3c7ee6(0x345)):_0x515384['t'](_0x3c7ee6(0x247))}),_0x56d78b===_0x3c7ee6(0x635)&&(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':_0x3c7ee6(0x631),'onClick':()=>{_0x4d11e8();},'children':_0x515384['t'](_0x3c7ee6(0x1c8))})]}),_0x53c774=_0x59c5c9?_0x515384['t']('sheets-pivot-ui.multipleValue'):_0x52d851[_0x3c7ee6(0x343)],_0x3718a8=(0x0,d['jsx'])(_0x3c7ee6(0x61d),{'dir':_0x3c7ee6(0x5bd),'children':_0x53c774});return(0x0,d[_0x3c7ee6(0x634)])(d[_0x3c7ee6(0x4c3)],{'children':[(0x0,d['jsx'])(u[_0x3c7ee6(0x4a3)],{}),(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':_0x3c7ee6(0x458),'children':(0x0,d[_0x3c7ee6(0x268)])(s['Tooltip'],{'title':_0x3718a8,'children':_0x3718a8})}),(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x664),{'className':'univer-cursor-pointer','children':(0x0,d[_0x3c7ee6(0x268)])(s[_0x3c7ee6(0x5d7)],{'align':_0x3c7ee6(0x305),'overlay':_0x4291e1,'children':(0x0,d[_0x3c7ee6(0x268)])(_0x3c7ee6(0x1b4),{'children':(0x0,d['jsx'])(u[_0x3c7ee6(0x3de)],{})})})})]});}function jr(_0x1b0aec){const _0x1ca77b=_0x15a2ed;var _0x2e2971;let _0xfe253d=(0x0,i[_0x1ca77b(0x50b)])(n['IUniverInstanceService']),_0xe8f7a8=(0x0,i[_0x1ca77b(0x50b)])(n[_0x1ca77b(0x58a)]),_0x366e62=(0x0,i[_0x1ca77b(0x50b)])(n[_0x1ca77b(0x256)]),_0x1162ed=(0x0,i['useDependency'])(Q),{sourceRangeInfo:_0x516bc9,refreshHandler:_0x4b26cc,pivotTableId:_0x1ebe6b,positionInfo:_0xa9ce82}=_0x1b0aec,{unitId:_0x58c925,range:_0x22aacb,subUnitId:_0x46093d}=_0x516bc9,_0x286f1c=_0xfe253d[_0x1ca77b(0x657)](_0x58c925),_0x299e95=(_0x286f1c==null||(_0x2e2971=_0x286f1c[_0x1ca77b(0x6f8)](_0x46093d))==null?void 0x0:_0x2e2971[_0x1ca77b(0x29d)]())??'',[_0x324445,_0x20f3c5]=(0x0,f[_0x1ca77b(0x6de)])(void 0x0),_0xf3763d=(0x0,f[_0x1ca77b(0x5d6)])(_0x324445);_0xf3763d['current']=_0x324445;let [_0xd46113,_0x117975]=(0x0,f['useState'])(_0x22aacb),[_0x539ff1,_0x2f59af]=(0x0,f[_0x1ca77b(0x6de)])(_0x299e95),[_0x75278,_0x3a3d7f]=(0x0,f[_0x1ca77b(0x6de)])(!0x1);(0x0,f[_0x1ca77b(0x58b)])(()=>{const _0x353f12=_0x1ca77b;_0x1162ed[_0x353f12(0x40e)](_0x75278);},[_0x75278,_0x1162ed]),(0x0,f['useEffect'])(()=>{const _0x1c3ec6=_0x1ca77b;_0x117975(_0x516bc9[_0x1c3ec6(0x242)]),_0x2f59af(_0x299e95);},[_0x516bc9,_0x299e95]);let _0x4d0773=(0x0,f['useMemo'])(()=>(0x0,n[_0x1ca77b(0x688)])(async _0x770db0=>{const _0x1779a3=_0x1ca77b;let _0x423043=_0x770db0[_0x1779a3(0x66c)](',')['filter'](_0x50d249=>!!_0x50d249)[_0x1779a3(0x611)](p[_0x1779a3(0x478)]);if(!_0x423043[0x0])return;let _0x1355c0=_0x423043[0x0];if(!_0x286f1c||_0xf3763d[_0x1779a3(0x6c4)])return;let _0x37f056=_0x1355c0['sheetName']||_0x516bc9[_0x1779a3(0x3cf)];_0x117975(_0x1355c0['range']),_0x2f59af(_0x37f056);let _0x1fc36a={'unitId':_0x58c925,'subUnitId':_0x286f1c[_0x1779a3(0x491)](_0x37f056)[_0x1779a3(0x372)](),'range':{..._0x1355c0[_0x1779a3(0x242)]},'sheetName':_0x37f056};await xt(_0x366e62,_0x1ebe6b,_0x1fc36a,_0xa9ce82[_0x1779a3(0x427)],_0xa9ce82[_0x1779a3(0x317)]),_0x4b26cc();},0x12c,{'leading':!0x1,'maxWait':0x3e8,'trailing':!0x0}),[]);return(0x0,d[_0x1ca77b(0x634)])(_0x1ca77b(0x664),{'className':_0x1ca77b(0x673),'children':[(0x0,d[_0x1ca77b(0x634)])(_0x1ca77b(0x664),{'className':_0x1ca77b(0x26e),'children':[(0x0,d['jsx'])('span',{'className':'univer-text-justify\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0xe8f7a8['t']('sheets-pivot-ui.sourceRangeLabel')}),(0x0,d[_0x1ca77b(0x268)])(_0x1ca77b(0x1b4),{'className':_0x1ca77b(0x1b7),'children':_0xe8f7a8['t'](_0x1ca77b(0x6b6))})]}),(0x0,d[_0x1ca77b(0x634)])('div',{'className':_0x1ca77b(0x590),'children':[(0x0,d[_0x1ca77b(0x268)])(m[_0x1ca77b(0x279)],{'unitId':_0x58c925,'subUnitId':_0x46093d,'initialValue':(0x0,p['serializeRangeWithSheet'])(_0x539ff1,_0xd46113),'onChange':(_0x37efd0,_0x11763c)=>{const _0x13af65=_0x1ca77b;(0x0,p[_0x13af65(0x388)])(_0x539ff1,_0xd46113)!==_0x11763c&&_0x4d0773(_0x11763c);},'keepSheetReference':!0x0,'supportAcrossSheet':!0x0,'onVerify':(_0x45a12a,_0x247df8)=>{const _0x156888=_0x1ca77b;let _0x243eae=_0x247df8[_0x156888(0x66c)](',')[_0x156888(0x3f8)](_0x32e6f8=>!!_0x32e6f8);if(!_0x243eae[0x0]){_0x20f3c5(_0xe8f7a8['t']('sheets-pivot-ui.msg.emptySourceRange'));return;}if(!_0x45a12a){_0x20f3c5(_0xe8f7a8['t'](_0x156888(0x5ed)));return;}let _0x30bed5=(0x0,p['deserializeRangeWithSheet'])(_0x243eae[0x0]),_0x34ebdb=_0x30bed5['sheetName']||_0x516bc9[_0x156888(0x3cf)];if(_0x286f1c)switch(yt(_0x286f1c[_0x156888(0x491)](_0x34ebdb),_0x30bed5['range'])){case 0x2:_0x20f3c5(void 0x0);break;case 0x0:_0x20f3c5(_0xe8f7a8['t'](_0x156888(0x2bf)));break;case 0x1:_0x20f3c5(_0xe8f7a8['t'](_0x156888(0x5ed)));}},'maxRangeCount':0x1,'onFocusChange':_0x3e137a=>{_0x3a3d7f(_0x3e137a);},'onRangeSelectorDialogVisibleChange':_0x50a60e=>{_0x3a3d7f(!!_0x50a60e);}}),_0x324445?(0x0,d['jsx'])(_0x1ca77b(0x664),{'className':_0x1ca77b(0x27b),'children':_0x324445}):null]})]});}function Mr(_0x92f049){const _0x461851=_0x15a2ed;let {type:_0x20b2a5}=_0x92f049;switch(_0x20b2a5){case e['PivotDataFieldDataTypeEnum']['text']:return(0x0,d[_0x461851(0x268)])(u[_0x461851(0x5bb)],{'className':_0x461851(0x5e5)});case e[_0x461851(0x332)]['number']:return(0x0,d[_0x461851(0x268)])(u['NumberIcon'],{'className':_0x461851(0x5e5)});case e['PivotDataFieldDataTypeEnum']['date']:return(0x0,d[_0x461851(0x268)])(u['CalendarIcon'],{'className':_0x461851(0x5e5)});}}function Nr(_0x3cc307){const _0x486679=_0x15a2ed;if(!_0x3cc307)return!0x1;if(_0x3cc307[_0x486679(0x4a9)]===e['PivotFilterTypeEnum'][_0x486679(0x235)]){var _0x1c0574;return _0x3cc307[_0x486679(0x466)]!==void 0x0||(((_0x1c0574=_0x3cc307['selection'])==null?void 0x0:_0x1c0574[_0x486679(0x556)])??n['FilterSelectionMode'][_0x486679(0x6d8)])!==n['FilterSelectionMode'][_0x486679(0x6d8)];}return _0x3cc307[_0x486679(0x4a9)]!==e[_0x486679(0x246)][_0x486679(0x23b)]||_0x3cc307[_0x486679(0x52a)]!==!0x0;}function Pr(_0x2be462){const _0x366f20=_0x15a2ed;let {name:_0x2d0675,dataFieldId:_0x41269b,checked:_0x3dde48,type:_0x29c4d8,refreshHandler:_0x26f14c,pivotTableId:_0x550cac,draggingId:_0x104292,pivotTableInfo:_0x2a9e5c,unitId:_0xb3bd27,subUnitId:_0xe07ea2}=_0x2be462,[_0x1fac44,_0x21f58c]=(0x0,f[_0x366f20(0x6de)])(!0x1),_0x162c39=(0x0,i['useDependency'])(n[_0x366f20(0x256)]),_0x4c4e19=(0x0,i[_0x366f20(0x50b)])(n[_0x366f20(0x58a)]);if(!_0x2a9e5c)return null;let {rowFields:_0x5c380c,columnFields:_0x5d1101,filterFields:_0x5a330e,valueFields:_0x509a4d}=_0x2a9e5c,_0x374565=_0x2a9e5c[_0x366f20(0x5ee)]??[],_0x4fc9c7=[..._0x5c380c,..._0x5d1101,..._0x5a330e,..._0x509a4d,..._0x374565],_0x119616=_0x374565['find'](_0x32ab89=>_0x32ab89[_0x366f20(0x566)]===_0x41269b),_0xd3aa46=async _0x4d5b61=>{const _0x42efd7=_0x366f20;let _0x139c52=!!_0x4d5b61,_0x1531b0=!0x1;if(_0x139c52){let _0x547861={'pivotTableId':_0x550cac,'dataFieldId':_0x41269b,'fieldArea':_0x29c4d8===e[_0x42efd7(0x332)][_0x42efd7(0x426)]?e['PivotTableFiledAreaEnum'][_0x42efd7(0x278)]:e[_0x42efd7(0x22f)]['Row'],'unitId':_0xb3bd27,'subUnitId':_0xe07ea2,'index':_0x29c4d8===e[_0x42efd7(0x332)][_0x42efd7(0x426)]?_0x509a4d[_0x42efd7(0x714)]:_0x5c380c['length']};_0x1531b0=await _0x162c39[_0x42efd7(0x2f0)](t[_0x42efd7(0x6ef)]['id'],_0x547861);}else{let _0x415f14=[];_0x4fc9c7[_0x42efd7(0x567)](_0x2ea2bc=>{const _0x411e86=_0x42efd7;_0x2ea2bc['dataFieldId']===_0x41269b&&_0x415f14[_0x411e86(0x1d4)](_0x2ea2bc[_0x411e86(0x6ed)]);}),_0x1531b0=await _0x162c39[_0x42efd7(0x2f0)](t[_0x42efd7(0x261)]['id'],{'pivotTableId':_0x550cac,'fieldIds':_0x415f14,'unitId':_0xb3bd27,'subUnitId':_0xe07ea2});}_0x1531b0&&_0x26f14c();},_0x38572b=async _0x2db21f=>{const _0x1e365c=_0x366f20;let _0x18c411=!0x1,_0x1a8bfa='';if([..._0x5c380c,..._0x5d1101,..._0x5a330e,..._0x374565][_0x1e365c(0x567)](_0x509fb6=>{const _0x70f120=_0x1e365c;_0x509fb6[_0x70f120(0x566)]===_0x41269b&&(_0x18c411=!0x0,_0x1a8bfa=_0x509fb6[_0x70f120(0x6ed)]);}),_0x18c411&&_0x2db21f!==e['PivotTableFiledAreaEnum'][_0x1e365c(0x278)]){if(_0x550cac){let _0xc42e95=Bt(_0x2a9e5c,_0x2db21f),_0x2aeba9={'pivotTableId':_0x550cac,'area':_0x2db21f,'index':_0xc42e95,'fieldId':_0x1a8bfa,'unitId':_0xb3bd27,'subUnitId':_0xe07ea2};await _0x162c39[_0x1e365c(0x2f0)](t[_0x1e365c(0x616)]['id'],_0x2aeba9)&&_0x26f14c();}}else{if(_0x550cac){let _0xe60bc4={'pivotTableId':_0x550cac,'dataFieldId':_0x41269b,'fieldArea':_0x2db21f,'unitId':_0xb3bd27,'subUnitId':_0xe07ea2,'index':Bt(_0x2a9e5c,_0x2db21f)};await _0x162c39[_0x1e365c(0x2f0)](t['AddPivotFieldCommand']['id'],_0xe60bc4)&&_0x26f14c();}}};return(0x0,d['jsxs'])(_0x366f20(0x664),{'className':(0x0,s['clsx'])(_0x366f20(0x21c),{'univer-flex\x20univer-bg-gray-100\x20dark:!univer-bg-gray-700':_0x104292===_0x41269b}),'id':_0x366f20(0x6c1)+_0x41269b,'onContextMenu':_0x38e7c6=>{const _0x432e8e=_0x366f20;_0x38e7c6[_0x432e8e(0x1bb)](),_0x21f58c(!0x0);},'children':[(0x0,d[_0x366f20(0x268)])(_0x366f20(0x1b4),{'className':_0x366f20(0x4b0),'children':(0x0,d[_0x366f20(0x268)])(u['GripVerticalIcon'],{})}),(0x0,d['jsx'])(s[_0x366f20(0x45d)],{'className':_0x366f20(0x1e1),'checked':_0x3dde48,'onChange':_0xd3aa46}),(0x0,d['jsxs'])('div',{'className':_0x366f20(0x55d),'children':[(0x0,d[_0x366f20(0x268)])(Mr,{'type':_0x29c4d8}),(0x0,d[_0x366f20(0x268)])('span',{'className':_0x366f20(0x353),'children':_0x2d0675})]}),(0x0,d['jsx'])(s[_0x366f20(0x5d7)],{'align':_0x366f20(0x305),'side':'bottom','open':_0x1fac44,'onOpenChange':_0x21f58c,'overlay':(0x0,d[_0x366f20(0x634)])('div',{'children':[Nr(_0x119616==null?void 0x0:_0x119616[_0x366f20(0x496)])&&(0x0,d[_0x366f20(0x268)])('div',{'className':_0x366f20(0x5cb),'onClick':async()=>{const _0x7ae96e=_0x366f20;_0x119616&&(_0x21f58c(!0x1),await _0x162c39['executeCommand'](t[_0x7ae96e(0x5c3)]['id'],{'unitId':_0xb3bd27,'subUnitId':_0xe07ea2,'pivotTableId':_0x550cac,'tableFieldId':_0x119616[_0x7ae96e(0x6ed)],'items':[],'partialItems':[],'isAll':!0x0})&&_0x26f14c());},'children':_0x4c4e19['t'](_0x366f20(0x529))}),(0x0,d[_0x366f20(0x268)])(_0x366f20(0x664),{'className':_0x366f20(0x5cb),'onClick':()=>{const _0x27e608=_0x366f20;_0x21f58c(!0x1),_0x38572b(e['PivotTableFiledAreaEnum'][_0x27e608(0x50d)]);},'children':_0x4c4e19['t']('sheets-pivot-ui.addToRow')}),(0x0,d['jsx'])(_0x366f20(0x664),{'className':'univer-flex\x20univer-cursor-pointer\x20univer-items-center\x20univer-self-stretch\x20univer-px-2\x20univer-py-1.5\x20univer-text-sm\x20univer-leading-5\x20univer-text-gray-900\x20hover:univer-bg-gray-100\x20dark:!univer-text-gray-0\x20dark:hover:!univer-bg-gray-700','onClick':()=>{const _0x28f5d2=_0x366f20;_0x21f58c(!0x1),_0x38572b(e[_0x28f5d2(0x22f)][_0x28f5d2(0x3e2)]);},'children':_0x4c4e19['t'](_0x366f20(0x617))}),(0x0,d[_0x366f20(0x268)])('div',{'className':_0x366f20(0x5cb),'onClick':()=>{const _0x116176=_0x366f20;_0x21f58c(!0x1),_0x38572b(e[_0x116176(0x22f)]['Value']);},'children':_0x4c4e19['t'](_0x366f20(0x1ee))}),(0x0,d[_0x366f20(0x268)])(_0x366f20(0x664),{'className':_0x366f20(0x5cb),'onClick':()=>{const _0x18d998=_0x366f20;_0x21f58c(!0x1),_0x38572b(e['PivotTableFiledAreaEnum'][_0x18d998(0x290)]);},'children':_0x4c4e19['t'](_0x366f20(0x53d))})]}),'children':(0x0,d[_0x366f20(0x268)])(_0x366f20(0x664),{'className':(0x0,s[_0x366f20(0x5fe)])(_0x366f20(0x2ed),{'univer-opacity-100':_0x1fac44,'univer-opacity-0\x20group-hover:univer-opacity-100':!_0x1fac44}),'onMouseDown':_0x212a0b=>_0x212a0b[_0x366f20(0x400)](),'onClick':_0x27dd84=>_0x27dd84[_0x366f20(0x400)](),'children':(0x0,d['jsx'])(u[_0x366f20(0x6d1)],{'className':'univer-text-gray-400\x20dark:!univer-text-gray-500'})})})]},_0x41269b);}function Fr(_0x41f1dd){const _0x5bb79e=_0x15a2ed;let {sourceList:_0x2e1ba7,refreshHandler:_0x489f9c,pivotTableId:_0x1b49a2,pivotTableInfo:_0x1ec4db,unitId:_0x141dc3,draggingId:_0x593000,subUnitId:_0x1327a8}=_0x41f1dd,_0x4a6d4c=(0x0,i[_0x5bb79e(0x50b)])(n[_0x5bb79e(0x58a)]),[_0x4d0599,_0x3a1a70]=(0x0,f[_0x5bb79e(0x6de)])(''),_0x1cf3f9=_0x4d0599['trim']()[_0x5bb79e(0x5fd)](),_0x25a307=_0x1cf3f9?_0x2e1ba7['filter'](_0x4cedac=>_0x4cedac[_0x5bb79e(0x68b)][_0x5bb79e(0x5fd)]()['includes'](_0x1cf3f9)):_0x2e1ba7;return(0x0,d[_0x5bb79e(0x634)])(_0x5bb79e(0x664),{'className':_0x5bb79e(0x3f0),'children':[(0x0,d[_0x5bb79e(0x268)])('p',{'className':_0x5bb79e(0x358),'children':_0x4a6d4c['t'](_0x5bb79e(0x628))}),(0x0,d[_0x5bb79e(0x268)])('p',{'className':_0x5bb79e(0x28a),'children':_0x4a6d4c['t'](_0x5bb79e(0x510))}),(0x0,d[_0x5bb79e(0x268)])(s['Input'],{'allowClear':!0x0,'className':_0x5bb79e(0x605),'placeholder':_0x4a6d4c['t'](_0x5bb79e(0x5f8)),'slot':(0x0,d[_0x5bb79e(0x268)])(u['SearchIcon'],{}),'value':_0x4d0599,'onChange':_0x3a1a70}),(0x0,d[_0x5bb79e(0x268)])(_0x5bb79e(0x664),{'className':(0x0,s[_0x5bb79e(0x5fe)])(_0x5bb79e(0x541),s[_0x5bb79e(0x366)]),'children':(0x0,d[_0x5bb79e(0x268)])(_0x5bb79e(0x664),{'className':(0x0,s[_0x5bb79e(0x5fe)])(_0x5bb79e(0x465),s[_0x5bb79e(0x296)]),'data-testid':'pivot-source-field-viewport','children':(0x0,d[_0x5bb79e(0x268)])(Sr,{'droppableId':_0x5bb79e(0x257),'direction':_0x5bb79e(0x29a),'isCombineEnabled':!0x1,'ignoreContainerClipping':!0x1,'isDropDisabled':!0x0,'children':_0x9f62a9=>(0x0,d['jsxs'])(_0x5bb79e(0x664),{'ref':_0x9f62a9[_0x5bb79e(0x4a7)],'className':_0x5bb79e(0x342),..._0x9f62a9['droppableProps'],'children':[_0x25a307[_0x5bb79e(0x611)]((_0x4226a8,_0x3327f5)=>(0x0,d[_0x5bb79e(0x268)])(_0x5bb79e(0x664),{'className':_0x5bb79e(0x2ea),'children':(0x0,d['jsx'])(Cr,{'draggableId':_0x4226a8['id'],'isDragDisabled':!0x1,'index':_0x3327f5,'children':({innerRef:_0x330fc2,draggableProps:_0x4f696a,dragHandleProps:_0x220e69})=>(0x0,d[_0x5bb79e(0x268)])(_0x5bb79e(0x664),{'ref':_0x330fc2,..._0x4f696a,..._0x220e69,'className':'univer-h-8\x20univer-w-full','style':_0x4f696a[_0x5bb79e(0x3d5)],'children':(0x0,d[_0x5bb79e(0x268)])(Pr,{'draggingId':_0x593000,'unitId':_0x141dc3,'subUnitId':_0x1327a8,..._0x4226a8,'refreshHandler':_0x489f9c,'pivotTableId':_0x1b49a2,'pivotTableInfo':_0x1ec4db})})},_0x4226a8['id'])},_0x4226a8['id'])),_0x25a307[_0x5bb79e(0x714)]===0x0&&(0x0,d[_0x5bb79e(0x268)])(_0x5bb79e(0x664),{'className':_0x5bb79e(0x221),'children':_0x4a6d4c['t'](_0x5bb79e(0x6aa))})]})})})})]});}function Ir(_0x156b56){const _0x5b9c1b=_0x15a2ed;let {pivotTableId:_0x5632f0,version:_0x2979aa,unitId:_0x1a1757,subUnitId:_0x5c36e6,panelInfo:_0x496ef6}=_0x156b56,_0x3102f5=(0x0,i[_0x5b9c1b(0x50b)])(t[_0x5b9c1b(0x381)]),_0xff30c4=(0x0,f[_0x5b9c1b(0x264)])(()=>_0x3102f5[_0x5b9c1b(0x525)](_0x1a1757,_0x5c36e6,_0x5632f0)['pipe']((0x0,o[_0x5b9c1b(0x489)])(0x0)),[_0x3102f5,_0x1a1757,_0x5c36e6,_0x5632f0]),_0x538a89=(0x0,i[_0x5b9c1b(0x600)])(_0xff30c4),_0x572f82=(0x0,i[_0x5b9c1b(0x50b)])(t[_0x5b9c1b(0x4cb)]),_0x401ce3=(0x0,i[_0x5b9c1b(0x50b)])(Q),_0x105b82=(0x0,i[_0x5b9c1b(0x600)])(_0x401ce3['pivotTablePanelVisible$'],!0x0),_0x53b240=(0x0,i[_0x5b9c1b(0x50b)])(n['ICommandService']),_0x17bc5e=(0x0,i[_0x5b9c1b(0x50b)])(n['ILogService']),[_0xdfb3b3,_0x5d36b8]=(0x0,f[_0x5b9c1b(0x6de)])(_0x496ef6),[_0x50ca0f,_0x2c36f0]=(0x0,f[_0x5b9c1b(0x6de)])(null),_0x2c4fe6=(0x0,f['useCallback'])(async()=>{const _0x283139=_0x5b9c1b;if(!_0x3102f5[_0x283139(0x2b6)](_0x1a1757,_0x5c36e6,_0x5632f0))return;let _0x47650f=await _0x572f82[_0x283139(0x601)]({'unitId':_0x1a1757,'subUnitId':_0x5c36e6,'pivotTableId':_0x5632f0,'params':{'type':t[_0x283139(0x498)][_0x283139(0x62d)],'panel':{'pivotTableId':_0x5632f0}}});_0x47650f[_0x283139(0x399)][_0x283139(0x475)]&&_0x5d36b8(_0x47650f[_0x283139(0x399)][_0x283139(0x475)]);},[_0x5632f0,_0x572f82,_0x3102f5,_0x5c36e6,_0x1a1757]);(0x0,f[_0x5b9c1b(0x58b)])(()=>{const _0x296dee=_0x5b9c1b;_0x2c4fe6()[_0x296dee(0x30c)](_0x2a268a=>_0x17bc5e[_0x296dee(0x4de)](_0x296dee(0x2a6),_0x2a268a));},[_0x17bc5e,_0x538a89,_0x5632f0,_0x2c4fe6,_0x2979aa]);let _0x42a702=async _0x881570=>{const _0x185abe=_0x5b9c1b;let {source:_0x5c2ffe,destination:_0x278c7d,draggableId:_0x3e4fae}=_0x881570;_0x2c36f0(null);let _0x2e3385={'pivotTableInfo':_0xdfb3b3,'pivotTableId':_0x5632f0,'commandService':_0x53b240,'unitId':_0x1a1757,'subUnitId':_0x5c36e6},_0x4b9ce0=_0x5c2ffe['droppableId'];if(_0x278c7d&&_0x278c7d[_0x185abe(0x483)]){let _0x8785a9=_0x278c7d['droppableId'];await Ct(_0x2e3385,_0x3e4fae,_0x4b9ce0,_0x8785a9,_0x278c7d[_0x185abe(0x42a)]),await _0x2c4fe6();}_0x278c7d===null&&(await bt(_0x2e3385,_0x3e4fae,_0x4b9ce0),await _0x2c4fe6());},_0x136731=_0x40a5a2=>{const _0x5e9f79=_0x5b9c1b;_0x2c36f0({'draggingId':_0x40a5a2[_0x5e9f79(0x625)]});},_0x57c527=_0x2d55c8=>{let {draggableId:_0x77751d,destination:_0x577efb,source:_0x3afd5d}=_0x2d55c8;_0x2c36f0({'draggingId':_0x77751d,'destination':_0x577efb,'source':_0x3afd5d});};if(!_0x105b82||!_0xdfb3b3)return null;let {sourceList:_0x3c7403,rowFields:_0x255f48,columnFields:_0x1406ca,filterFields:_0x33497d,valueFields:_0x4c409c,sourceRange:_0x123113,positionInfo:_0x43e228}=_0xdfb3b3;return(0x0,d['jsxs'])('div',{'className':(0x0,s[_0x5b9c1b(0x5fe)])(_0x5b9c1b(0x453),s[_0x5b9c1b(0x296)]),'children':[(0x0,d[_0x5b9c1b(0x268)])(jr,{'sourceRangeInfo':_0x123113,'pivotTableId':_0x5632f0,'refreshHandler':_0x2c4fe6,'positionInfo':_0x43e228}),(0x0,d[_0x5b9c1b(0x634)])(xr,{'onDragEnd':_0x42a702,'onDragStart':_0x136731,'onDragUpdate':_0x57c527,'children':[(0x0,d[_0x5b9c1b(0x268)])(Fr,{'draggingId':(_0x50ca0f==null?void 0x0:_0x50ca0f[_0x5b9c1b(0x5fb)])??'','sourceList':_0x3c7403,'refreshHandler':_0x2c4fe6,'pivotTableId':_0x5632f0,'pivotTableInfo':_0xdfb3b3,'unitId':_0x1a1757,'subUnitId':_0x5c36e6}),(0x0,d[_0x5b9c1b(0x268)])(Lr,{'rowFields':_0x255f48,'columnFields':_0x1406ca,'filterFields':_0x33497d,'valueFields':_0x4c409c,'refreshHandler':_0x2c4fe6,'positionInfo':_0x43e228,'pivotTableId':_0x5632f0,'pivotTableInfo':_0xdfb3b3})]})]});}function Lr(_0x5d8545){const _0x1de7b3=_0x15a2ed;let {rowFields:_0x3bd9ee,columnFields:_0x2f1a1d,filterFields:_0x3b75c4,valueFields:_0x596e0f,refreshHandler:_0x5daf5c,pivotTableInfo:_0x1e80a1,positionInfo:_0x45fdb4,pivotTableId:_0x2f792d}=_0x5d8545;return(0x0,d[_0x1de7b3(0x634)])(_0x1de7b3(0x664),{'className':_0x1de7b3(0x547),'data-testid':_0x1de7b3(0x508),'children':[(0x0,d[_0x1de7b3(0x634)])(_0x1de7b3(0x664),{'className':'univer-flex\x20univer-flex-row\x20univer-gap-4','children':[(0x0,d[_0x1de7b3(0x268)])(kr,{'areaType':_0x1de7b3(0x3f8),'items':_0x3b75c4,'positionInfo':_0x45fdb4,'pivotTableId':_0x2f792d,'pivotTableInfo':_0x1e80a1,'refreshHandler':_0x5daf5c}),(0x0,d[_0x1de7b3(0x268)])(kr,{'areaType':_0x1de7b3(0x377),'items':_0x2f1a1d,'positionInfo':_0x45fdb4,'pivotTableId':_0x2f792d,'pivotTableInfo':_0x1e80a1,'refreshHandler':_0x5daf5c})]}),(0x0,d[_0x1de7b3(0x634)])(_0x1de7b3(0x664),{'className':_0x1de7b3(0x454),'children':[(0x0,d['jsx'])(kr,{'areaType':_0x1de7b3(0x291),'items':_0x3bd9ee,'positionInfo':_0x45fdb4,'pivotTableId':_0x2f792d,'pivotTableInfo':_0x1e80a1,'refreshHandler':_0x5daf5c}),(0x0,d[_0x1de7b3(0x268)])(kr,{'areaType':'value','items':_0x596e0f,'positionInfo':_0x45fdb4,'pivotTableId':_0x2f792d,'pivotTableInfo':_0x1e80a1,'refreshHandler':_0x5daf5c})]})]});}function Rr(_0x194869){const _0x233344=_0x15a2ed;let {className:_0x3f1b19,unitId:_0x52f048,subUnitId:_0x5072bd,pivotTableId:_0x3fee58}=_0x194869,[_0x21f1b9,_0x2e11f3]=(0x0,f['useState'])(0x0),_0x3473d9=(0x0,i['useDependency'])(n[_0x233344(0x58a)]),_0x2e8e99=_0x3473d9[_0x233344(0x33e)]();return(0x0,d[_0x233344(0x634)])(_0x233344(0x664),{'className':(0x0,s[_0x233344(0x5fe)])('univer-flex\x20univer-size-full\x20univer-min-h-0\x20univer-flex-col',_0x3f1b19),'dir':_0x2e8e99,'children':[(0x0,d['jsx'])(s[_0x233344(0x2fd)],{'className':_0x233344(0x38a),'items':[{'label':_0x3473d9['t']('sheets-pivot-ui.fieldPanel'),'value':0x0},{'label':_0x3473d9['t']('sheets-pivot-ui.configPanel'),'value':0x1}],'value':_0x21f1b9,'onChange':_0x2e11f3}),(0x0,d[_0x233344(0x268)])(_0x233344(0x664),{'className':(0x0,s[_0x233344(0x5fe)])(_0x233344(0x5bc),_0x21f1b9===0x0?'univer-overflow-hidden':_0x233344(0x70d)),'children':_0x21f1b9===0x0?(0x0,d[_0x233344(0x268)])(Ir,{..._0x194869}):(0x0,d[_0x233344(0x268)])(mr,{'unitId':_0x52f048,'subUnitId':_0x5072bd,'pivotTableId':_0x3fee58})})]});}function zr(_0x25916d){const _0x573a11=_0x15a2ed;let {unitId:_0x135fe0,subUnitId:_0x23e4e3,pivotTableId:_0xeb7d37,tableFieldId:_0xa1da03,type:_0x22da69}=_0x25916d,_0x4a9061=JSON[_0x573a11(0x445)]([_0x135fe0,_0x23e4e3,_0xeb7d37,_0xa1da03,_0x22da69]);return(0x0,d[_0x573a11(0x268)])(Br,{..._0x25916d},_0x4a9061);}function Br({unitId:_0x26a213,subUnitId:_0x2d3826,pivotTableId:_0x9d3dbe,tableFieldId:_0x4a2d18,type:_0xd5fe9f,baseItems:_0x17d940,onConfirm:_0x191b5b,onCancel:_0x31aa95}){const _0x450cfb=_0x15a2ed;var _0x26c9fb;let _0x11970f=(0x0,i[_0x450cfb(0x50b)])(t[_0x450cfb(0x381)]),_0x4bf270=(0x0,i['useDependency'])(n[_0x450cfb(0x58a)]),_0x504bb3=(0x0,i[_0x450cfb(0x600)])(_0x4bf270[_0x450cfb(0x4d2)],_0x4bf270[_0x450cfb(0x33e)]()),_0x55d941=de['find'](_0x379382=>_0x379382['type']===_0xd5fe9f),_0x13d72c=_0x11970f[_0x450cfb(0x2b6)](_0x26a213,_0x2d3826,_0x9d3dbe),_0x17829d=_0x13d72c==null||(_0x26c9fb=_0x13d72c[_0x450cfb(0x5cd)][_0x450cfb(0x2c3)][_0x4a2d18])==null?void 0x0:_0x26c9fb[_0x450cfb(0x700)],_0x495ebc=()=>{const _0x207768=_0x450cfb;var _0x34d4c0;if((_0x17829d==null?void 0x0:_0x17829d[_0x207768(0x4a9)])!==_0xd5fe9f||!_0x17829d[_0x207768(0x2d3)])return'';if(_0x17829d[_0x207768(0x59d)]===e[_0x207768(0x1f6)][_0x207768(0x3e1)])return _0x207768(0x497);if(_0x17829d['baseItemType']===e['PivotShowAsBaseItemTypeEnum']['next'])return _0x207768(0x302);let _0x3fc191=((_0x34d4c0=_0x17d940[_0x17829d['baseFieldId']])==null?void 0x0:_0x34d4c0['items'][_0x207768(0x4bf)](_0x17829d[_0x207768(0x65d)]))??-0x1;return _0x3fc191<0x0?'':_0x207768(0x401)+_0x3fc191;},[_0x2d1e8d,_0x451223]=(0x0,f[_0x450cfb(0x6de)])((_0x17829d==null?void 0x0:_0x17829d[_0x450cfb(0x4a9)])===_0xd5fe9f?_0x17829d['baseFieldId']:''),[_0x405b88,_0x2b9cc1]=(0x0,f[_0x450cfb(0x6de)])(_0x495ebc),_0x86ed30=(0x0,f['useRef'])(!0x1),[_0x548bfb,_0x22646f]=(0x0,f[_0x450cfb(0x6de)])(!0x1),_0x558302=_0x11970f[_0x450cfb(0x2b6)](_0x26a213,_0x2d3826,_0x9d3dbe),_0x4666e8=_0x11970f[_0x450cfb(0x25d)](_0x26a213,_0x9d3dbe),_0x214107=_0x558302==null?void 0x0:_0x558302[_0x450cfb(0x5cd)][_0x450cfb(0x2c3)][_0x4a2d18],_0x35396b=!!(_0x214107&&_0x4666e8&&(_0x4666e8[_0x450cfb(0x59e)][_0x214107[_0x450cfb(0x566)]]||_0x4666e8['customFields']['find'](_0x1fbe50=>_0x1fbe50['id']===_0x214107[_0x450cfb(0x566)]))),_0x58557d=(_0x558302&&_0x4666e8&&_0x55d941?pe(_0x558302,_0x4666e8,_0x55d941):[])[_0x450cfb(0x3f8)](_0x27c85b=>{const _0x1f9ae7=_0x450cfb;let _0x48d06f=_0x17d940[_0x27c85b];return(_0x55d941==null?void 0x0:_0x55d941['baseItemMode'])===_0x1f9ae7(0x704)||!!(_0x48d06f&&((_0x55d941==null?void 0x0:_0x55d941['baseItemMode'])===_0x1f9ae7(0x283)||_0x48d06f[_0x1f9ae7(0x671)][_0x1f9ae7(0x714)]>0x0));}),_0x3a9932=_0x58557d[_0x450cfb(0x611)](_0x4c387f=>({'label':_0x558302[_0x450cfb(0x5cd)][_0x450cfb(0x2c4)][_0x4c387f][_0x450cfb(0x343)],'value':_0x4c387f})),_0x310d4b=_0x558302==null?void 0x0:_0x558302[_0x450cfb(0x5cd)][_0x450cfb(0x2c4)][_0x2d1e8d],_0x1ad713=_0x310d4b&&_0x4666e8&&(_0x4666e8['fields'][_0x310d4b[_0x450cfb(0x566)]]??_0x4666e8[_0x450cfb(0x4f4)]['find'](_0x1207b0=>_0x1207b0['id']===_0x310d4b[_0x450cfb(0x566)])),_0x4508e2=_0x17d940[_0x2d1e8d],_0x111c41=(_0x4508e2==null?void 0x0:_0x4508e2['items'][_0x450cfb(0x611)]((_0x4c2735,_0x2f9e02)=>{const _0x49305d=_0x450cfb;var _0x208831;let _0xc5202a=_0x4508e2['itemTypes'][_0x2f9e02],_0x773bf3=(_0x208831=_0x4508e2['itemLabels'])==null?void 0x0:_0x208831[_0x4c2735],_0x2889b9=ht(_0x4c2735,_0xc5202a),_0x3c2661=_0x4c2735;return _0x2889b9?_0x3c2661=_0x4bf270['t'](_0x2889b9):_0x773bf3===void 0x0?_0xc5202a===e[_0x49305d(0x332)][_0x49305d(0x6b7)]?_0x3c2661=_0x4bf270['t'](_0x49305d(0x658)):(_0xc5202a===e[_0x49305d(0x332)][_0x49305d(0x64c)]||_0xc5202a===e[_0x49305d(0x332)][_0x49305d(0x426)])&&_0x4508e2[_0x49305d(0x67b)]&&(_0x3c2661=n[_0x49305d(0x5ef)][_0x49305d(0x67b)](_0x4508e2[_0x49305d(0x67b)],Number(_0x4c2735))):_0x3c2661=_0x773bf3,{'label':_0x3c2661,'value':_0x49305d(0x401)+_0x2f9e02,'itemKey':_0x4c2735};}))??[];(_0x55d941==null?void 0x0:_0x55d941['baseItemMode'])===_0x450cfb(0x283)&&_0x111c41['push']({'label':_0x4bf270['t'](_0x450cfb(0x390)),'value':'relative:previous','itemKey':'','itemType':e[_0x450cfb(0x1f6)][_0x450cfb(0x3e1)]},{'label':_0x4bf270['t']('sheets-pivot-ui.showValuesAs.next'),'value':_0x450cfb(0x302),'itemKey':'','itemType':e['PivotShowAsBaseItemTypeEnum']['next']});let _0x412020=_0x111c41['find'](_0x547d90=>_0x547d90[_0x450cfb(0x635)]===_0x405b88),_0x4cfcfd=!!(_0x55d941!=null&&_0x55d941[_0x450cfb(0x336)]&&_0x55d941[_0x450cfb(0x336)]!==_0x450cfb(0x704)),_0x4d8380=!!(_0x55d941&&_0x558302&&_0x4666e8&&_0x35396b&&_0x558302['fieldsConfig'][_0x450cfb(0x35d)][_0x450cfb(0x6a2)](_0x4a2d18)&&_0x58557d[_0x450cfb(0x6a2)](_0x2d1e8d)&&_0x1ad713&&(!_0x4cfcfd||_0x412020));return(0x0,d['jsxs'])(_0x450cfb(0x664),{'dir':_0x504bb3,'children':[(0x0,d['jsxs'])(_0x450cfb(0x664),{'className':_0x450cfb(0x673),'children':[(0x0,d['jsx'])(_0x450cfb(0x664),{'className':_0x450cfb(0x606),'children':_0x4bf270['t'](_0x450cfb(0x62a))}),(0x0,d['jsx'])(s[_0x450cfb(0x67e)],{'className':_0x450cfb(0x1d5),'value':_0x2d1e8d,'options':_0x3a9932,'onChange':_0x55418e=>{_0x451223(_0x55418e),_0x2b9cc1('');}})]}),_0x4cfcfd&&(0x0,d[_0x450cfb(0x634)])(_0x450cfb(0x664),{'className':'univer-mb-4','children':[(0x0,d[_0x450cfb(0x268)])(_0x450cfb(0x664),{'className':_0x450cfb(0x606),'children':_0x4bf270['t'](_0x450cfb(0x55b))}),(0x0,d[_0x450cfb(0x268)])(s[_0x450cfb(0x67e)],{'className':'univer-w-full','value':_0x405b88,'options':_0x111c41,'disabled':!_0x2d1e8d,'onChange':_0x2b9cc1})]}),(0x0,d[_0x450cfb(0x634)])(_0x450cfb(0x664),{'className':_0x450cfb(0x2dd),'children':[(0x0,d[_0x450cfb(0x268)])(s[_0x450cfb(0x23a)],{'onClick':_0x31aa95,'children':_0x4bf270['t'](_0x450cfb(0x277))}),(0x0,d[_0x450cfb(0x268)])(s[_0x450cfb(0x23a)],{'variant':'primary','disabled':!_0x4d8380||_0x548bfb,'onClick':async()=>{const _0x28cc59=_0x450cfb;let _0x3d9b5c=_0x11970f[_0x28cc59(0x2b6)](_0x26a213,_0x2d3826,_0x9d3dbe),_0x33cc1a=_0x11970f[_0x28cc59(0x25d)](_0x26a213,_0x9d3dbe),_0x1e015a=_0x3d9b5c==null?void 0x0:_0x3d9b5c[_0x28cc59(0x5cd)][_0x28cc59(0x2c3)][_0x4a2d18];if(!_0x55d941||!_0x3d9b5c||!_0x33cc1a||!_0x1e015a||_0x86ed30[_0x28cc59(0x6c4)]||!_0x3d9b5c[_0x28cc59(0x5cd)][_0x28cc59(0x35d)][_0x28cc59(0x6a2)](_0x4a2d18)||!(_0x33cc1a[_0x28cc59(0x59e)][_0x1e015a[_0x28cc59(0x566)]]||_0x33cc1a[_0x28cc59(0x4f4)][_0x28cc59(0x384)](_0x1f43ef=>_0x1f43ef['id']===_0x1e015a[_0x28cc59(0x566)]))||!pe(_0x3d9b5c,_0x33cc1a,_0x55d941)[_0x28cc59(0x6a2)](_0x2d1e8d)||_0x4cfcfd&&!_0x412020)return;let _0x4de24b={'type':_0xd5fe9f,'baseFieldId':_0x2d1e8d,'baseItem':(_0x412020==null?void 0x0:_0x412020[_0x28cc59(0x528)])??''};(_0x412020==null?void 0x0:_0x412020[_0x28cc59(0x1e7)])!==void 0x0&&(_0x4de24b[_0x28cc59(0x59d)]=_0x412020[_0x28cc59(0x1e7)]),_0x86ed30[_0x28cc59(0x6c4)]=!0x0,_0x22646f(!0x0);try{await _0x191b5b(_0x4de24b);}catch{}finally{_0x86ed30['current']=!0x1,_0x22646f(!0x1);}},'children':_0x4bf270['t']('sheets-pivot-ui.showValuesAs.ok')})]})]});}const Vr=_0x429277=>{const _0x3ee555=_0x15a2ed;let [_0x518744,_0xb0cbc8]=(0x0,f[_0x3ee555(0x6de)])(!0x1),_0xaa29c7=(0x0,i[_0x3ee555(0x50b)])(Q);return(0x0,f[_0x3ee555(0x58b)])(()=>{const _0x7c0a44=_0x3ee555;_0xaa29c7[_0x7c0a44(0x2a7)](_0x518744);},[_0x518744,_0xaa29c7]),(0x0,d[_0x3ee555(0x268)])(m['RangeSelector'],{..._0x429277,'onFocusChange':_0x5a1a88=>{const _0xf87ab2=_0x3ee555;var _0x24e533;(_0x24e533=_0x429277[_0xf87ab2(0x29f)])==null||_0x24e533[_0xf87ab2(0x6d5)](_0x429277,_0x5a1a88),_0xb0cbc8(_0x5a1a88);}});},Hr=(_0x35a95f,_0x2f2011,_0xbc0bc8,_0x25559f,_0x1ef324,_0x1ba514)=>(0x0,d[_0x15a2ed(0x268)])(Vr,{'unitId':_0x35a95f,'subUnitId':_0x2f2011,'initialValue':_0x25559f,'onChange':(_0x4b6672,_0x19ca38)=>_0xbc0bc8(_0x19ca38),'maxRangeCount':0x1,'supportAcrossSheet':!0x0,'keepSheetReference':!0x0}),Ur=(_0x35f003,_0x4dab24)=>{switch(_0x35f003){case 0x1:return _0x4dab24['t']('sheets-pivot-ui.msg.invalidSize');case 0x0:return _0x4dab24['t']('sheets-pivot-ui.msg.emptySourceRange');default:return'';}};function Wr(_0x343b9f){const _0x21b5f5=_0x15a2ed;let {unitId:_0x51270b,sourceRange:_0x1fe640,positionRange:_0x57f4db,sourceSheetName:_0x4d5f01,positionSheetName:_0x3f1925,onConfirm:_0x449846,onCancel:_0x3929ef}=_0x343b9f,_0x5911ae=(0x0,i[_0x21b5f5(0x50b)])(n['LocaleService']),_0x1dc28e=(0x0,i[_0x21b5f5(0x50b)])(n[_0x21b5f5(0x4c5)]),_0x72dcc4=_0x5911ae[_0x21b5f5(0x33e)](),_0x201296=_0x1dc28e[_0x21b5f5(0x657)](_0x51270b),_0x2aa92c=(0x0,f[_0x21b5f5(0x264)])(()=>_0x201296[_0x21b5f5(0x713)]()[_0x21b5f5(0x372)](),[_0x201296]),[_0x5f2caf,_0x3a1f50]=(0x0,f['useState'])(_0x1fe640),[_0x588d7a,_0x1f47f4]=(0x0,f[_0x21b5f5(0x6de)])(_0x57f4db),[_0x14279f,_0x17ed16]=(0x0,f['useState'])(_0x4d5f01),[_0x1eaad2,_0x25dee3]=(0x0,f[_0x21b5f5(0x6de)])(_0x3f1925),_0x3122a8=(0x0,f[_0x21b5f5(0x5d6)])(void 0x0),[_0x1e5b8e,_0x402845]=(0x0,f[_0x21b5f5(0x6de)])(),[_0x385f01,_0x2082a1]=(0x0,f['useState'])(t[_0x21b5f5(0x348)][_0x21b5f5(0x39a)]),[_0x31e4d5,_0x291a85]=(0x0,f[_0x21b5f5(0x6de)])(!0x0),[_0x4522f9,_0x1346f6]=(0x0,f[_0x21b5f5(0x6de)])(!0x0),[_0x359f52,_0x52ff58]=(0x0,f[_0x21b5f5(0x6de)])(void 0x0);(0x0,f['useEffect'])(()=>{const _0x17bbe8=_0x21b5f5;let _0x2f6055=yt(_0x201296[_0x17bbe8(0x491)](_0x14279f),_0x5f2caf);_0x1346f6(_0x2f6055===0x2),_0x52ff58(Ur(_0x2f6055,_0x5911ae));},[_0x5f2caf,_0x14279f,_0x201296,_0x5911ae]);let _0x49df4e=_0x5bea55=>{const _0x1e635b=_0x21b5f5;if((0x0,p[_0x1e635b(0x388)])(_0x14279f,_0x5f2caf)===_0x5bea55)return;let _0x2ef887=_0x5bea55[_0x1e635b(0x66c)](',')[_0x1e635b(0x3f8)](_0x1f2624=>!!_0x1f2624)['map'](p['deserializeRangeWithSheet']);if(Array['isArray'](_0x2ef887)&&_0x2ef887['length']>0x0){let {range:_0x23b8bd,sheetName:_0x22bce0}=_0x2ef887[0x0];_0x3a1f50(_0x23b8bd),_0x17ed16(_0x22bce0);}_0x2ef887[0x0]||_0x52ff58(_0x5911ae['t']('sheets-pivot-ui.msg.emptySourceRange'));},_0x155e05=Hr(_0x51270b,_0x2aa92c,_0xf850f4=>{const _0x23f3c8=_0x21b5f5;if(_0x588d7a&&(0x0,p['serializeRangeWithSheet'])(_0x1eaad2,_0x588d7a)===_0xf850f4)return;let _0x440d6e=_0xf850f4[_0x23f3c8(0x66c)](',')[_0x23f3c8(0x3f8)](_0x3866c3=>!!_0x3866c3)[_0x23f3c8(0x611)](p[_0x23f3c8(0x478)]);if(_0x440d6e[_0x23f3c8(0x714)]===0x0){_0x1f47f4(null);return;}let _0x2bd0b3=_0x440d6e[0x0];_0x1f47f4(_0x2bd0b3['range']),_0x25dee3(_0x2bd0b3['sheetName']||_0x4d5f01),_0x2bd0b3[_0x23f3c8(0x3cf)]===_0x4d5f01&&n[_0x23f3c8(0x461)]['intersects'](_0x2bd0b3[_0x23f3c8(0x242)],_0x5f2caf)?_0x291a85(!0x1):_0x291a85(!0x0);},_0x588d7a?(0x0,p[_0x21b5f5(0x388)])(_0x1eaad2,_0x588d7a):'',!0x1,_0x1e5b8e),_0x43d6cc=()=>!!(_0x5f2caf&&_0x588d7a&&_0x14279f&&_0x1eaad2&&_0x385f01===t[_0x21b5f5(0x348)][_0x21b5f5(0x258)]&&_0x31e4d5&&_0x4522f9)||!!(_0x5f2caf&&_0x14279f&&_0x385f01===t[_0x21b5f5(0x348)][_0x21b5f5(0x39a)]&&_0x4522f9);return(0x0,f['useEffect'])(()=>{_0x402845(_0x3122a8['current']);},[]),(0x0,d['jsxs'])(_0x21b5f5(0x664),{'ref':_0x3122a8,'dir':_0x72dcc4,'children':[(0x0,d['jsx'])(_0x21b5f5(0x664),{'className':_0x21b5f5(0x393),'children':_0x5911ae['t']('sheets-pivot-ui.dialog.source.sourceData')}),Hr(_0x51270b,_0x2aa92c,_0x49df4e,(0x0,p[_0x21b5f5(0x388)])(_0x14279f,_0x5f2caf),!0x0,_0x1e5b8e),_0x359f52&&(0x0,d[_0x21b5f5(0x268)])('div',{'className':'univer-mt-2\x20univer-h-5\x20univer-text-xs\x20univer-text-red-400','children':_0x359f52}),(0x0,d[_0x21b5f5(0x268)])(_0x21b5f5(0x664),{'className':_0x21b5f5(0x2de),'children':_0x5911ae['t'](_0x21b5f5(0x3f5))}),(0x0,d[_0x21b5f5(0x634)])(s[_0x21b5f5(0x5ff)],{'value':_0x385f01,'onChange':_0x472edc=>_0x2082a1(_0x472edc),'className':_0x21b5f5(0x2d1),'children':[(0x0,d[_0x21b5f5(0x268)])(s[_0x21b5f5(0x1ff)],{'value':t[_0x21b5f5(0x348)][_0x21b5f5(0x39a)],'children':_0x5911ae['t'](_0x21b5f5(0x43c))}),(0x0,d['jsx'])(s[_0x21b5f5(0x1ff)],{'value':t[_0x21b5f5(0x348)][_0x21b5f5(0x258)],'children':_0x5911ae['t'](_0x21b5f5(0x269))})]}),_0x385f01===t[_0x21b5f5(0x348)]['Existing']&&(0x0,d[_0x21b5f5(0x634)])(d[_0x21b5f5(0x4c3)],{'children':[_0x155e05,!_0x31e4d5&&(0x0,d[_0x21b5f5(0x268)])(_0x21b5f5(0x1b4),{'className':_0x21b5f5(0x4b2),'children':_0x5911ae['t'](_0x21b5f5(0x5b9))})]}),(0x0,d[_0x21b5f5(0x268)])(_0x21b5f5(0x4d7),{'className':_0x21b5f5(0x1bd),'children':(0x0,d['jsxs'])(s[_0x21b5f5(0x2a2)],{'className':_0x21b5f5(0x551),'children':[(0x0,d[_0x21b5f5(0x268)])(s['Button'],{'onClick':()=>_0x3929ef(),'children':_0x5911ae['t']('sheets-pivot-ui.dialog.cancel')}),(0x0,d[_0x21b5f5(0x268)])(s['Button'],{'variant':_0x21b5f5(0x3e0),'onClick':()=>{const _0x46179c=_0x21b5f5;_0x43d6cc()&&(_0x385f01===t['PositionType'][_0x46179c(0x258)]?_0x449846({'sourceRange':_0x5f2caf,'sourceSheetName':_0x14279f,'positionRange':_0x588d7a,'positionSheetName':_0x1eaad2,'positionType':_0x385f01}):_0x449846({'sourceRange':_0x5f2caf,'sourceSheetName':_0x14279f,'positionType':_0x385f01}));},'children':_0x5911ae['t'](_0x21b5f5(0x694))})]})})]});}Wr['componentKey']=A;const Gr=[{'id':'equal','localeKey':_0x15a2ed(0x45c),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x32b)]},{'id':'notEqual','localeKey':_0x15a2ed(0x5db),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x430)]},{'id':_0x15a2ed(0x53a),'localeKey':_0x15a2ed(0x5f2),'operator':e['ST_PivotFilterOperatorEnum'][_0x15a2ed(0x440)]},{'id':_0x15a2ed(0x6f1),'localeKey':'sheets-pivot-ui.valueFilter.greaterThanOrEqual','operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x318)]},{'id':_0x15a2ed(0x4c8),'localeKey':'sheets-pivot-ui.valueFilter.lessThan','operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x1d1)]},{'id':'lessThanOrEqual','localeKey':'sheets-pivot-ui.valueFilter.lessThanOrEqual','operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x6cf)]},{'id':_0x15a2ed(0x2b2),'localeKey':_0x15a2ed(0x1c9),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x4b8)],'isBetween':!0x0},{'id':_0x15a2ed(0x65b),'localeKey':_0x15a2ed(0x396),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x232)],'isBetween':!0x0},{'id':_0x15a2ed(0x2cf),'localeKey':_0x15a2ed(0x2d6),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x1ed)],'isCount':!0x0},{'id':_0x15a2ed(0x328),'localeKey':_0x15a2ed(0x37d),'operator':e[_0x15a2ed(0x70a)]['count'],'isBottom':!0x0,'isCount':!0x0},{'id':'topPercent','localeKey':'sheets-pivot-ui.valueFilter.topPercent','operator':e[_0x15a2ed(0x70a)]['percent'],'isPercent':!0x0},{'id':_0x15a2ed(0x273),'localeKey':_0x15a2ed(0x2ec),'operator':e[_0x15a2ed(0x70a)][_0x15a2ed(0x6ba)],'isBottom':!0x0,'isPercent':!0x0}];function Kr({targetFieldId:_0x219414,targetFieldName:_0x4a0fbf,valueFields:_0x3bc63f,defaultValueFieldId:_0x349bc7,currentFilter:_0x4eff4a,onConfirm:_0x273d6a,onClear:_0x8b2213,onCancel:_0x17dbfb}){const _0x32da60=_0x15a2ed;function _0x97e9(_0x18dfe2){const _0x1a3266=_0x1940;var _0x17b787;return(_0x18dfe2==null?void 0x0:_0x18dfe2[_0x1a3266(0x3ae)])===e[_0x1a3266(0x70a)][_0x1a3266(0x1ed)]?_0x18dfe2['isBottom']?_0x1a3266(0x328):'topCount':(_0x18dfe2==null?void 0x0:_0x18dfe2[_0x1a3266(0x3ae)])===e['ST_PivotFilterOperatorEnum'][_0x1a3266(0x6ba)]?_0x18dfe2['isBottom']?_0x1a3266(0x273):'topPercent':((_0x17b787=Gr[_0x1a3266(0x384)](_0xd2f0ba=>_0xd2f0ba['operator']===(_0x18dfe2==null?void 0x0:_0x18dfe2[_0x1a3266(0x3ae)])))==null?void 0x0:_0x17b787['id'])??_0x1a3266(0x53a);}let _0x591b5a=(0x0,i[_0x32da60(0x50b)])(n[_0x32da60(0x58a)]),_0x10e3b7=(0x0,i[_0x32da60(0x600)])(_0x591b5a['direction$'],_0x591b5a[_0x32da60(0x33e)]()),_0x3ff023=_0x4eff4a==null?void 0x0:_0x4eff4a[_0x32da60(0x379)],[_0x4c91e9,_0xe43f12]=(0x0,f[_0x32da60(0x6de)])(()=>{const _0x38c403=_0x32da60;let _0x1ba380=_0x4eff4a==null?void 0x0:_0x4eff4a[_0x38c403(0x203)];return _0x1ba380&&_0x3bc63f['some'](_0x14e757=>_0x14e757['id']===_0x1ba380)?_0x1ba380:_0x349bc7&&_0x3bc63f[_0x38c403(0x364)](_0x533392=>_0x533392['id']===_0x349bc7)?_0x349bc7:_0x3bc63f['length']===0x1?_0x3bc63f[0x0]['id']:'';}),[_0x9eafdb,_0x28f69f]=(0x0,f[_0x32da60(0x6de)])(()=>_0x97e9(_0x4eff4a)),[_0x174f38,_0x135306]=(0x0,f[_0x32da60(0x6de)])(()=>String(Array[_0x32da60(0x2dc)](_0x3ff023)?_0x3ff023[0x0]:_0x3ff023??0x0)),[_0x25424a,_0x22ac5d]=(0x0,f[_0x32da60(0x6de)])(()=>String(Array['isArray'](_0x3ff023)?_0x3ff023[0x1]:0x0)),_0x3a2b79=(0x0,f[_0x32da60(0x5d6)])(!0x1),[_0x3de363,_0x241e57]=(0x0,f['useState'])(!0x1),_0x397ace=Gr[_0x32da60(0x384)](_0x2c572e=>_0x2c572e['id']===_0x9eafdb),_0x490969=_0x174f38[_0x32da60(0x47a)]()!==''&&Number[_0x32da60(0x479)](Number(_0x174f38)),_0x59e190=!_0x397ace[_0x32da60(0x219)]||_0x25424a[_0x32da60(0x47a)]()!==''&&Number[_0x32da60(0x479)](Number(_0x25424a)),_0x5b3b89=!_0x397ace[_0x32da60(0x1e9)]||Number[_0x32da60(0x3dd)](Number(_0x174f38))&&Number(_0x174f38)>=0x1,_0x4ae81b=!_0x397ace['isPercent']||Number(_0x174f38)>=0x0&&Number(_0x174f38)<=0x64,_0x350948=!!(_0x3bc63f['some'](_0x1da8cb=>_0x1da8cb['id']===_0x4c91e9)&&_0x490969&&_0x59e190&&_0x5b3b89&&_0x4ae81b),_0x13d210=async _0x52b1cb=>{const _0x186b90=_0x32da60;if(!_0x3a2b79[_0x186b90(0x6c4)]){_0x3a2b79[_0x186b90(0x6c4)]=!0x0,_0x241e57(!0x0);try{await _0x52b1cb();}catch{}finally{_0x3a2b79[_0x186b90(0x6c4)]=!0x1,_0x241e57(!0x1);}}},_0x32ae0a=()=>_0x13d210(async()=>{const _0x4b6175=_0x32da60;if(!_0x350948)return;let _0x41b522={'operator':_0x397ace['operator'],'expected':_0x397ace[_0x4b6175(0x219)]?[Number(_0x174f38),Number(_0x25424a)]:Number(_0x174f38),'valueFieldId':_0x4c91e9};_0x397ace[_0x4b6175(0x3dc)]&&(_0x41b522['isBottom']=!0x0),await _0x273d6a(_0x41b522);}),_0x20b0f2=()=>_0x13d210(_0x8b2213);return(0x0,d['jsxs'])('div',{'className':_0x32da60(0x5af),'data-target-field-id':_0x219414,'dir':_0x10e3b7,'children':[(0x0,d[_0x32da60(0x268)])(_0x32da60(0x664),{'className':_0x32da60(0x3eb),'children':(0x0,d['jsx'])(_0x32da60(0x61d),{'dir':_0x32da60(0x5bd),'children':_0x4a0fbf})}),(0x0,d[_0x32da60(0x634)])(_0x32da60(0x3b3),{'className':_0x32da60(0x67c),'children':[_0x591b5a['t'](_0x32da60(0x464)),(0x0,d[_0x32da60(0x268)])(s[_0x32da60(0x67e)],{'aria-label':_0x591b5a['t'](_0x32da60(0x464)),'data-testid':_0x32da60(0x674),'value':_0x4c91e9,'options':[{'value':'','label':_0x591b5a['t'](_0x32da60(0x33d))},..._0x3bc63f[_0x32da60(0x611)](_0x262f0e=>({'value':_0x262f0e['id'],'label':_0x262f0e[_0x32da60(0x3b3)]}))],'onChange':_0xe43f12})]}),(0x0,d['jsxs'])(_0x32da60(0x3b3),{'className':_0x32da60(0x67c),'children':[_0x591b5a['t'](_0x32da60(0x4c6)),(0x0,d['jsx'])(s['Select'],{'aria-label':_0x591b5a['t'](_0x32da60(0x4c6)),'data-testid':'pivot-value-filter-rule','value':_0x9eafdb,'options':Gr[_0x32da60(0x611)](_0x4d490e=>({'value':_0x4d490e['id'],'label':_0x591b5a['t'](_0x4d490e['localeKey'])})),'onChange':_0x5ee381=>_0x28f69f(_0x5ee381)})]}),(0x0,d['jsxs'])(_0x32da60(0x664),{'className':_0x32da60(0x6eb),'children':[(0x0,d[_0x32da60(0x268)])(s['Input'],{'aria-label':_0x591b5a['t']('sheets-pivot-ui.valueFilter.condition'),'aria-invalid':!_0x490969||!_0x5b3b89||!_0x4ae81b,'className':_0x32da60(0x215),'data-testid':'pivot-value-filter-expected','inputMode':_0x32da60(0x6a5),'value':_0x174f38,'onChange':_0x135306}),_0x397ace[_0x32da60(0x219)]&&(0x0,d[_0x32da60(0x268)])(s[_0x32da60(0x6e8)],{'aria-label':_0x591b5a['t'](_0x32da60(0x4c6)),'aria-invalid':!_0x59e190,'className':_0x32da60(0x215),'data-testid':_0x32da60(0x505),'inputMode':'decimal','value':_0x25424a,'onChange':_0x22ac5d})]}),(0x0,d[_0x32da60(0x634)])(_0x32da60(0x664),{'className':_0x32da60(0x2ba),'children':[(0x0,d['jsx'])(s[_0x32da60(0x23a)],{'data-testid':_0x32da60(0x48f),'disabled':_0x3de363,'onClick':_0x20b0f2,'children':_0x591b5a['t'](_0x32da60(0x21f))}),(0x0,d[_0x32da60(0x634)])(_0x32da60(0x664),{'className':_0x32da60(0x29e),'children':[(0x0,d[_0x32da60(0x268)])(s['Button'],{'disabled':_0x3de363,'onClick':_0x17dbfb,'children':_0x591b5a['t']('sheets-pivot-ui.valueFilter.cancel')}),(0x0,d[_0x32da60(0x268)])(s[_0x32da60(0x23a)],{'data-testid':'pivot-value-filter-confirm','variant':_0x32da60(0x3e0),'disabled':!_0x350948||_0x3de363,'onClick':_0x32ae0a,'children':_0x591b5a['t'](_0x32da60(0x66f))})]})]})]});}function qr(_0x2e3b81){const _0xb1fe8=_0x15a2ed;let {pivotTableId:_0x379ba7,tableFieldId:_0x4a2ecf,closeFn:_0x4fb81e,unitId:_0x9bcba7,subUnitId:_0x52c896,format:_0xfb4016,tableFieldInfo:_0x11d091,dataFieldInfo:_0x12ab38,version:_0x442f81}=_0x2e3b81,[_0x11c535,_0x954161]=(0x0,f[_0xb1fe8(0x6de)])(_0x11d091[_0xb1fe8(0x343)]),[_0x35ae69,_0x50aa4d]=(0x0,f[_0xb1fe8(0x6de)])(_0x11d091['subTotalType']),_0x4b20a0=(0x0,i[_0xb1fe8(0x50b)])(n['LocaleService']),_0x510379=(0x0,i['useDependency'])(n[_0xb1fe8(0x256)]),_0x1d9bbc=(0x0,i['useDependency'])(i['IDialogService']),_0x1e7ac0={...(0x0,i['useDependency'])(t['SheetsPivotTableConfigModel'])[_0xb1fe8(0x4be)]()};for(let _0x3f8cdf of[_0xb1fe8(0x24a),'sheets-pivot-ui.countName',_0xb1fe8(0x1d3),'sheets-pivot-ui.maxName',_0xb1fe8(0x554),_0xb1fe8(0x59b),_0xb1fe8(0x2cc),_0xb1fe8(0x4a1),_0xb1fe8(0x2b0),_0xb1fe8(0x52f),_0xb1fe8(0x3f7)])_0x1e7ac0[_0x3f8cdf]=_0x4b20a0['t'](_0x3f8cdf);if((0x0,f[_0xb1fe8(0x58b)])(()=>{const _0x5e3dc0=_0xb1fe8;_0x954161(_0x11d091['displayName']),_0x50aa4d(_0x11d091[_0x5e3dc0(0x4ac)]);},[_0x442f81]),!_0x11d091||!_0x12ab38)return;let _0x42069a=_0x12ab38[_0xb1fe8(0x68b)],_0x5f397a=_0x4b20a0['getDirection'](),_0x53670c=_0xfb4016??_0x11d091[_0xb1fe8(0x67b)],_0x3f6038=kt['map'](_0x46b7df=>({'value':''+_0x46b7df[_0xb1fe8(0x4a9)],'type':_0x46b7df['type'],'label':_0x4b20a0['t'](_0x46b7df['textKey'])})),_0x3b4cef=_0x18c9d1=>{const _0x29e14f=_0xb1fe8;let _0x217629=_0x18c9d1;if(Array[_0x29e14f(0x2dc)](_0x18c9d1)&&(_0x217629=_0x18c9d1[0x0]),_0x217629!==void 0x0){let _0xed4970=Number(_0x217629);_0x50aa4d(_0xed4970),Vt(_0x42069a,_0x11c535,_0x1e7ac0)&&_0x954161(Ht(_0x42069a,_0x1e7ac0,_0xed4970));}};return(0x0,d[_0xb1fe8(0x634)])(_0xb1fe8(0x664),{'dir':_0x5f397a,'children':[(0x0,d[_0xb1fe8(0x634)])(_0xb1fe8(0x664),{'className':_0xb1fe8(0x431),'children':[(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x1b4),{'className':_0xb1fe8(0x371),'children':_0x4b20a0['t']('sheets-pivot-ui.dialog.fieldName')}),(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x1b4),{'className':_0xb1fe8(0x4a8),'children':gt(_0x4b20a0['t'](_0xb1fe8(0x60c)),_0x42069a)})]}),(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x664),{'children':(0x0,d['jsx'])(s[_0xb1fe8(0x6e8)],{'className':_0xb1fe8(0x41b),'value':_0x11c535,'onChange':_0x3c9a1a=>_0x954161(_0x3c9a1a)})}),(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x3b3),{'className':_0xb1fe8(0x4df),'children':_0x4b20a0['t'](_0xb1fe8(0x558))}),(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x664),{'className':(0x0,s[_0xb1fe8(0x5fe)])(_0xb1fe8(0x3d6),s['borderClassName'],s[_0xb1fe8(0x296)]),'children':_0x3f6038[_0xb1fe8(0x611)](_0x2a95e1=>(0x0,d[_0xb1fe8(0x634)])('div',{'className':_0xb1fe8(0x39d),'onClick':()=>_0x3b4cef(_0x2a95e1[_0xb1fe8(0x635)]),'children':[(0x0,d[_0xb1fe8(0x268)])('span',{'className':_0xb1fe8(0x2d9),'children':(0x0,d['jsx'])(u[_0xb1fe8(0x575)],{'className':(0x0,s['clsx'])({'univer-hidden':_0x35ae69!==_0x2a95e1['type']})})}),(0x0,d[_0xb1fe8(0x268)])('span',{'children':_0x2a95e1[_0xb1fe8(0x3b3)]})]},_0x2a95e1[_0xb1fe8(0x4a9)]))}),(0x0,d[_0xb1fe8(0x268)])(_0xb1fe8(0x4d7),{'className':_0xb1fe8(0x1bd),'children':(0x0,d[_0xb1fe8(0x634)])(s[_0xb1fe8(0x2a2)],{'className':_0xb1fe8(0x5f3),'children':[(0x0,d['jsx'])(s[_0xb1fe8(0x23a)],{'className':_0xb1fe8(0x406),'onClick':()=>{const _0x544bc9=_0xb1fe8;let _0x420e44={'id':S,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x1,'width':0x190,'children':{'label':C,'unitId':_0x9bcba7,'subUnitId':_0x52c896,'pivotTableId':_0x379ba7,'tableFieldId':_0x4a2ecf,'originPattern':_0x53670c,'tableFieldInfo':_0x11d091,'dataFieldInfo':_0x12ab38},'dialogStyles':{'header':{'padding':_0x544bc9(0x63e),'height':0x0},'body':{'padding':_0x544bc9(0x1d2)}},'closable':!0x1,'onClose':()=>{_0x1d9bbc['close'](S);}};_0x1d9bbc[_0x544bc9(0x1cb)](_0x420e44);},'children':_0x4b20a0['t'](_0xb1fe8(0x651))}),(0x0,d[_0xb1fe8(0x634)])(s[_0xb1fe8(0x2a2)],{'className':'univer-flex\x20univer-flex-1\x20univer-gap-2\x20univer-text-sm\x20rtl:univer-flex-row-reverse','children':[(0x0,d[_0xb1fe8(0x268)])(s[_0xb1fe8(0x23a)],{'onClick':()=>{_0x4fb81e&&_0x4fb81e();},'children':_0x4b20a0['t'](_0xb1fe8(0x503))}),(0x0,d['jsx'])(s[_0xb1fe8(0x23a)],{'variant':_0xb1fe8(0x3e0),'disabled':_0x11c535==='','onClick':()=>{const _0x36d190=_0xb1fe8;let _0x5dd409=_0x11d091[_0x36d190(0x343)],_0x2dee5b=_0x11d091[_0x36d190(0x4ac)],_0x549061=_0x11d091[_0x36d190(0x67b)],_0x3626ce=_0x5dd409===_0x11c535?void 0x0:_0x11c535,_0x459790=_0x2dee5b===_0x35ae69?void 0x0:_0x35ae69,_0x5c7853=_0x549061===_0x53670c?void 0x0:_0x53670c;if(_0x5dd409!==_0x11c535||_0x2dee5b!==_0x35ae69||_0x549061!==_0x5c7853){let _0x27f9d2={'displayName':_0x3626ce,'subtotalType':_0x459790,'format':_0x5c7853,'tableFieldId':_0x4a2ecf,'pivotTableId':_0x379ba7,'unitId':_0x9bcba7,'subUnitId':_0x52c896,'tableFieldInfo':_0x11d091,'dataFieldInfo':_0x12ab38};_0x510379[_0x36d190(0x2f0)](t[_0x36d190(0x213)]['id'],_0x27f9d2);}_0x4fb81e&&_0x4fb81e();},'children':_0x4b20a0['t'](_0xb1fe8(0x694))})]})]})})]});}let Jr=class extends n[_0x15a2ed(0x360)]{constructor(_0x3b1b42,_0x5eb13d){const _0x10b482=_0x15a2ed;super(),this[_0x10b482(0x53f)]=_0x3b1b42,this[_0x10b482(0x31b)]=_0x5eb13d,this[_0x10b482(0x5fc)](),this[_0x10b482(0x2d2)]();}[_0x15a2ed(0x5fc)](){[[A,Wr],[_,Rr],[y,$n],[x,qr],[C,cr],[T,zr],[E,Kr],[D,Kn],[O,nr],[k,er]]['forEach'](([_0x4c524e,_0x522cec])=>{const _0x45ab30=_0x1940;this['disposeWithMe'](this[_0x45ab30(0x53f)][_0x45ab30(0x3ce)](_0x4c524e,_0x522cec));});}[_0x15a2ed(0x2d2)](){const _0xebb019=_0x15a2ed;this[_0xebb019(0x28d)](this[_0xebb019(0x31b)]['register']({'PivotTableIcon':u['PivotTableIcon']}));}};Jr=K([G(0x0,(0x0,n[_0x15a2ed(0x436)])(i[_0x15a2ed(0x33f)])),G(0x1,(0x0,n['Inject'])(i[_0x15a2ed(0x5a3)]))],Jr);let Yr=class extends n[_0x15a2ed(0x360)]{constructor(_0x405c3b){const _0x1edd7b=_0x15a2ed;super(),this[_0x1edd7b(0x39f)]=_0x405c3b,this['_initMenu']();}[_0x15a2ed(0x477)](){const _0x485840=_0x15a2ed;this[_0x485840(0x39f)]['mergeMenu'](Qe);}};Yr=K([G(0x0,i[_0x15a2ed(0x568)])],Yr);let Xr=class extends n[_0x15a2ed(0x360)]{constructor(_0x1ad97e,_0x4519f2,_0x4d3883,_0x1406ce,_0x1c2112,_0x2578c3,_0x50f5fb,_0x315b8a,_0x44dd94,_0x50ce0d,_0xc86b6c){const _0x4cdcad=_0x15a2ed;super(),this[_0x4cdcad(0x467)]=_0x1ad97e,this[_0x4cdcad(0x4eb)]=_0x4519f2,this['_sheetsPivotTableAdaptorModel']=_0x4d3883,this[_0x4cdcad(0x592)]=_0x1406ce,this[_0x4cdcad(0x2a8)]=_0x1c2112,this[_0x4cdcad(0x549)]=_0x2578c3,this['_sheetPermissionCheckController']=_0x50f5fb,this[_0x4cdcad(0x2aa)]=_0x315b8a,this['_localeService']=_0x44dd94,this[_0x4cdcad(0x544)]=_0x50ce0d,this['_cellAlerts']=_0xc86b6c,W(this,_0x4cdcad(0x3f2),[]),this[_0x4cdcad(0x410)](),this['_initSkeleton'](),this[_0x4cdcad(0x447)](),this[_0x4cdcad(0x2da)]();}[_0x15a2ed(0x2da)](){const _0x1e3df7=_0x15a2ed;let _0x4a9325=_0x1e3df7(0x417)+this['_context']['unitId'];this[_0x1e3df7(0x28d)]((0x0,o[_0x1e3df7(0x68a)])(this[_0x1e3df7(0x544)][_0x1e3df7(0x643)],this[_0x1e3df7(0x467)][_0x1e3df7(0x3c0)][_0x1e3df7(0x4d8)],this[_0x1e3df7(0x486)][_0x1e3df7(0x3bd)])[_0x1e3df7(0x254)]((0x0,o[_0x1e3df7(0x58f)])(0x0))[_0x1e3df7(0x6f3)](()=>{const _0x413eff=_0x1e3df7;var _0x3bc39f,_0x389710,_0x4d2916;let {unitId:_0xdc5f42,unit:_0x1a60cf}=this['_context'],_0x3cbad9=this[_0x413eff(0x544)][_0x413eff(0x293)],_0x136b6b=(_0x3bc39f=_0x1a60cf[_0x413eff(0x713)]())==null?void 0x0:_0x3bc39f[_0x413eff(0x372)](),_0x39e732=(_0x389710=this[_0x413eff(0x544)][_0x413eff(0x57b)]())==null||(_0x389710=_0x389710[_0x413eff(0x1c7)](-0x1)[0x0])==null?void 0x0:_0x389710[_0x413eff(0x3e0)];if(!_0x136b6b||!_0x39e732||(_0x3cbad9==null?void 0x0:_0x3cbad9[_0x413eff(0x427)])!==_0xdc5f42||_0x3cbad9[_0x413eff(0x45a)]!==_0x136b6b){this[_0x413eff(0x44a)][_0x413eff(0x1cc)](_0x4a9325);return;}let {actualRow:_0xcb6399,actualColumn:_0x4ad909}=_0x39e732,_0x1fd8c1=this[_0x413eff(0x486)],_0xa2602e=_0x1fd8c1[_0x413eff(0x56f)](_0xdc5f42,_0x136b6b,_0xcb6399,_0x4ad909),_0x3033de=_0xa2602e&&((_0x4d2916=_0x1fd8c1[_0x413eff(0x362)](_0xdc5f42,_0x136b6b,_0xa2602e))==null?void 0x0:_0x4d2916['blockedRange']);if(!_0x3033de){this[_0x413eff(0x44a)]['removeAlert'](_0x4a9325);return;}let _0x57f98e=_0x413eff(0x2e1);_0x3033de[_0x413eff(0x5e8)]===_0x413eff(0x6e0)?_0x57f98e=_0x413eff(0x5df):_0x3033de[_0x413eff(0x5e8)]===_0x413eff(0x68a)&&(_0x57f98e=_0x413eff(0x555)),this[_0x413eff(0x44a)][_0x413eff(0x49a)]({'key':_0x4a9325,'type':a[_0x413eff(0x49b)][_0x413eff(0x276)],'title':this[_0x413eff(0x54d)]['t'](_0x413eff(0x1fa)),'message':this[_0x413eff(0x54d)]['t'](_0x57f98e,(0x0,p[_0x413eff(0x4a0)])(_0x3033de)),'location':{'unitId':_0xdc5f42,'subUnitId':_0x136b6b,'row':_0xcb6399,'col':_0x4ad909},'width':0x104,'height':0x60});})),this[_0x1e3df7(0x28d)](()=>this['_cellAlerts'][_0x1e3df7(0x1cc)](_0x4a9325));}[_0x15a2ed(0x410)](){const _0x3d40db=_0x15a2ed;this[_0x3d40db(0x28d)]((0x0,o[_0x3d40db(0x68a)])(this[_0x3d40db(0x486)][_0x3d40db(0x3bd)][_0x3d40db(0x254)]((0x0,o[_0x3d40db(0x58f)])(0x0)),this['_sheetSkeletonManagerService'][_0x3d40db(0x4c2)],this[_0x3d40db(0x2a8)][_0x3d40db(0x2c8)],this[_0x3d40db(0x2aa)]['permissionPointUpdate$'][_0x3d40db(0x254)]((0x0,o[_0x3d40db(0x58f)])(0x64)))['subscribe'](()=>{const _0x13028d=_0x3d40db;if(!this[_0x13028d(0x467)][_0x13028d(0x3c0)])return;let _0x4add76=this['_context'][_0x13028d(0x427)],_0x2fbca9=this[_0x13028d(0x467)][_0x13028d(0x3c0)][_0x13028d(0x713)]()['getSheetId'](),{scene:_0x5015ad}=this[_0x13028d(0x467)],_0x408be0=this[_0x13028d(0x54d)][_0x13028d(0x33e)](),_0x17edea=this[_0x13028d(0x592)][_0x13028d(0x584)]();if(!_0x17edea)return;let _0x4e87a6=this['_pivotButtonShapesArr'];_0x4e87a6[_0x13028d(0x567)](_0x219022=>_0x219022['dispose']()),_0x4e87a6[_0x13028d(0x4f7)](0x0,_0x4e87a6[_0x13028d(0x714)]),this[_0x13028d(0x486)][_0x13028d(0x594)](_0x4add76,_0x2fbca9)[_0x13028d(0x3bb)]((_0x4141e0,_0x58485b,_0x11f1f2)=>{const _0x322501=_0x13028d;if(_0x11f1f2!=null&&_0x11f1f2[_0x322501(0x227)]){let _0x252f87=_0x322501(0x487)+_0x4141e0+'-'+_0x58485b+'-'+_0x4add76+'-'+_0x2fbca9,{startX:_0x50377f,startY:_0x4afb50,endX:_0x3b899c,endY:_0x866aa9}=(0x0,a[_0x322501(0x463)])(_0x4141e0,_0x58485b,_0x5015ad,_0x17edea),_0x4e4481=_0x3b899c-_0x50377f,_0x4269fe=_0x866aa9-_0x4afb50;if(_0x4269fe<0x8||_0x4e4481<0x8||this[_0x322501(0x50e)][_0x322501(0x494)]({'workbookTypes':[r[_0x322501(0x708)]],'worksheetTypes':[r[_0x322501(0x1f9)],r[_0x322501(0x560)],r[_0x322501(0x67d)]],'rangeTypes':[r[_0x322501(0x414)],r[_0x322501(0x4af)]]},[{'startRow':_0x4141e0,'endRow':_0x4141e0,'startColumn':_0x58485b,'endColumn':_0x58485b}],_0x4add76,_0x2fbca9)===!0x1)return;let _0x3a0455;if(An[_0x322501(0x565)](_0x11f1f2[_0x322501(0x227)])){let {left:_0x2e2b83,top:_0x42d881}=Pn(_0x408be0,_0x322501(0x3f8),{'startX':_0x50377f,'startY':_0x4afb50,'endX':_0x3b899c,'endY':_0x866aa9});_0x3a0455={'left':_0x2e2b83,'top':_0x42d881,'height':0x10,'width':0x10,'zIndex':0x1388,'cellWidth':_0x4e4481,'cellHeight':_0x4269fe,'pivotParams':{'col':_0x58485b,'row':_0x4141e0,'unitId':_0x4add76,'subUnitId':_0x2fbca9,'buttonType':_0x11f1f2[_0x322501(0x227)]}};}else{if(jn[_0x322501(0x565)](_0x11f1f2['pbt'])){let {left:_0x3ddb70,top:_0x191d8a}=Pn(_0x408be0,_0x322501(0x679),{'startX':_0x50377f,'startY':_0x4afb50,'endX':_0x3b899c,'endY':_0x866aa9});_0x3a0455={'left':_0x3ddb70,'top':_0x191d8a,'height':0x10,'width':0x10,'zIndex':0x1388,'cellWidth':_0x4e4481,'cellHeight':_0x4269fe,'pivotParams':{'col':_0x58485b,'row':_0x4141e0,'unitId':_0x4add76,'subUnitId':_0x2fbca9,'buttonType':_0x11f1f2[_0x322501(0x227)]}};}else return;}let _0x5c40fb=this[_0x322501(0x4eb)][_0x322501(0x545)](Mn,_0x252f87,_0x3a0455);_0x4e87a6['push'](_0x5c40fb);}}),_0x4e87a6[_0x13028d(0x714)]&&_0x5015ad[_0x13028d(0x5cc)](_0x4e87a6),_0x5015ad[_0x13028d(0x36f)]();}));}[_0x15a2ed(0x375)](){const _0x20c39e=_0x15a2ed;var _0x1d287a;this[_0x20c39e(0x28d)](this[_0x20c39e(0x486)][_0x20c39e(0x6fe)]['subscribe'](({unitId:_0xfc68d4,subUnitId:_0x128b7d})=>{const _0x47dba5=_0x20c39e;if(_0xfc68d4===this['_context'][_0x47dba5(0x427)]&&(this[_0x47dba5(0x592)][_0x47dba5(0x36f)]({'sheetId':_0x128b7d}),this['_context'][_0x47dba5(0x3c0)][_0x47dba5(0x713)]()[_0x47dba5(0x372)]()===_0x128b7d)){var _0x11555e;this[_0x47dba5(0x592)]['reCalculate'](),(_0x11555e=this[_0x47dba5(0x467)][_0x47dba5(0x680)])==null||_0x11555e[_0x47dba5(0x36f)]();}}));let _0x120bbd=this[_0x20c39e(0x467)][_0x20c39e(0x427)];this[_0x20c39e(0x467)]['unit'][_0x20c39e(0x54c)]()[_0x20c39e(0x567)](_0x323848=>{const _0x4590dd=_0x20c39e;var _0x6b7650;let _0x555099=_0x323848[_0x4590dd(0x372)]();(_0x6b7650=this[_0x4590dd(0x486)][_0x4590dd(0x597)](_0x120bbd,_0x555099))!=null&&_0x6b7650[_0x4590dd(0x646)]&&this[_0x4590dd(0x592)][_0x4590dd(0x36f)]({'sheetId':_0x555099});}),this['_sheetSkeletonManagerService'][_0x20c39e(0x265)](),(_0x1d287a=this['_context'][_0x20c39e(0x680)])==null||_0x1d287a[_0x20c39e(0x36f)]();}[_0x15a2ed(0x447)](){const _0x34740e=_0x15a2ed;let _0x426040=new n[(_0x34740e(0x3ab))](),{spreadsheet:_0x2aa158}=(0x0,a[_0x34740e(0x553)])(this[_0x34740e(0x467)]['unit'],this[_0x34740e(0x467)]);_0x426040[_0x34740e(0x6dc)](_0x2aa158[_0x34740e(0x63c)]['subscribeEvent'](_0x354369=>{const _0x39ac7a=_0x34740e;if(_0x354369['button']===0x2)return;let _0x3322b4=this[_0x39ac7a(0x592)][_0x39ac7a(0x584)]();if(_0x3322b4==null)return;let _0x72ac36=this[_0x39ac7a(0x467)]['scene'],{row:_0x1af06e,column:_0x2c4b6b}=(0x0,a[_0x39ac7a(0x43b)])(_0x354369[_0x39ac7a(0x689)],_0x354369[_0x39ac7a(0x35e)],_0x72ac36,_0x3322b4);this[_0x39ac7a(0x549)][_0x39ac7a(0x2f0)](t[_0x39ac7a(0x3e5)]['id'],{'row':_0x1af06e,'col':_0x2c4b6b});}));}};Xr=K([G(0x1,(0x0,n['Inject'])(n['Injector'])),G(0x2,(0x0,n['Inject'])(t[_0x15a2ed(0x56e)])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(a[_0x15a2ed(0x31e)])),G(0x4,(0x0,n['Inject'])(t[_0x15a2ed(0x381)])),G(0x5,(0x0,n['Inject'])(n[_0x15a2ed(0x256)])),G(0x6,(0x0,n['Inject'])(r[_0x15a2ed(0x2c2)])),G(0x7,(0x0,n['Inject'])(n[_0x15a2ed(0x3e4)])),G(0x8,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x58a)])),G(0x9,(0x0,n[_0x15a2ed(0x436)])(r[_0x15a2ed(0x70e)])),G(0xa,(0x0,n[_0x15a2ed(0x436)])(a[_0x15a2ed(0x4bd)]))],Xr);var Zr=class e extends l[_0x15a2ed(0x5e1)]{constructor(_0x44e275){const _0x14327=_0x15a2ed;super(_0x14327(0x248)),W(this,'_moveType',void 0x0),this[_0x14327(0x310)]=_0x44e275;}[_0x15a2ed(0x365)](_0x433084){const _0x51bda0=_0x15a2ed;this[_0x51bda0(0x5c7)]!==0x0&&this[_0x51bda0(0x46b)]!==0x0&&e['drawWith'](_0x433084,this);}static[_0x15a2ed(0x5f6)](_0x4170e8,_0x36cc35){const _0x4ad841=_0x15a2ed;let _0x1ec378=_0x36cc35['_moveType'];if(_0x4170e8['save'](),_0x4170e8[_0x4ad841(0x415)]=_0x4ad841(0x49e),_0x4170e8[_0x4ad841(0x45e)]=0x2,_0x1ec378===_0x4ad841(0x291)){let _0x16c019=_0x36cc35[_0x4ad841(0x5c7)];if(!_0x16c019)return;_0x4170e8[_0x4ad841(0x4fe)](),_0x4170e8['moveTo'](0x0,0x0),_0x4170e8[_0x4ad841(0x231)](0x0+_0x16c019,0x0),_0x4170e8[_0x4ad841(0x504)](0x0,-0xa),_0x4170e8[_0x4ad841(0x231)](0x0,0xa),_0x4170e8[_0x4ad841(0x504)](0x0+_0x16c019,-0xa),_0x4170e8[_0x4ad841(0x231)](0x0+_0x16c019,0xa);}else{let _0x475d8e=_0x36cc35[_0x4ad841(0x46b)];if(!_0x475d8e)return;_0x4170e8[_0x4ad841(0x504)](0x0,0x0),_0x4170e8[_0x4ad841(0x231)](0x0,0x0+_0x475d8e),_0x4170e8['moveTo'](-0xa,0x0),_0x4170e8[_0x4ad841(0x231)](0xa,0x0),_0x4170e8[_0x4ad841(0x504)](-0xa,0x0+_0x475d8e),_0x4170e8[_0x4ad841(0x231)](0xa,0x0+_0x475d8e);}_0x4170e8['stroke'](),_0x4170e8[_0x4ad841(0x546)]();}};let Qr=class extends n[_0x15a2ed(0x360)]{constructor(_0x338c03,_0x2889bb,_0x41e707,_0x3b7aaa,_0x4ec5e8,_0x4bd157){const _0x5361db=_0x15a2ed;super(),this[_0x5361db(0x467)]=_0x338c03,this[_0x5361db(0x486)]=_0x2889bb,this[_0x5361db(0x592)]=_0x41e707,this[_0x5361db(0x549)]=_0x3b7aaa,this[_0x5361db(0x38d)]=_0x4ec5e8,this[_0x5361db(0x659)]=_0x4bd157,W(this,'_pivotSelectionMoveShape',void 0x0),W(this,_0x5361db(0x444),void 0x0),W(this,'_scenePointerUpSubscribe',void 0x0),W(this,_0x5361db(0x5c6),void 0x0),W(this,_0x5361db(0x51d),void 0x0),W(this,'_moveStartCellIndex',void 0x0),W(this,_0x5361db(0x663),'row'),W(this,'_targetRange',void 0x0),W(this,_0x5361db(0x2e4),void 0x0),this[_0x5361db(0x5a0)]();}[_0x15a2ed(0x319)](_0x57043f,_0x14a3a4){const _0x179c20=_0x15a2ed;let _0x1e86e2=this[_0x179c20(0x467)][_0x179c20(0x218)],_0x2784eb=_0x1e86e2[_0x179c20(0x22b)](l[_0x179c20(0x39e)][_0x179c20(0x340)]([_0x57043f,_0x14a3a4])),{scaleX:_0x4ffaef,scaleY:_0x2d518a}=_0x1e86e2[_0x179c20(0x35a)](),_0x511d5a=this[_0x179c20(0x592)][_0x179c20(0x584)]();if(!_0x511d5a||!this[_0x179c20(0x51d)]||!this[_0x179c20(0x2a5)])return;let {row:_0x4399be,column:_0x3bc57d}=_0x511d5a[_0x179c20(0x2b3)](_0x57043f,_0x14a3a4,_0x4ffaef,_0x2d518a,_0x2784eb);if(this[_0x179c20(0x663)]==='row'){var _0x34304a;let _0x514603=0x0,_0x4df4a4=0x0,_0x55b307=this['_moveStartRange']['endColumn']-this['_moveStartRange'][_0x179c20(0x5e0)]+0x1;if(this[_0x179c20(0x2a5)][_0x179c20(0x377)]===this[_0x179c20(0x51d)][_0x179c20(0x5e0)])_0x514603=_0x3bc57d,_0x4df4a4=_0x3bc57d+_0x55b307-0x1;else{if(this[_0x179c20(0x2a5)][_0x179c20(0x377)]===this[_0x179c20(0x51d)]['endColumn'])_0x4df4a4=_0x3bc57d,_0x514603=_0x3bc57d-_0x55b307+0x1;else{let _0x21c24c=this[_0x179c20(0x2a5)][_0x179c20(0x377)]-this[_0x179c20(0x51d)][_0x179c20(0x5e0)];_0x514603=_0x3bc57d-_0x21c24c,_0x4df4a4=_0x3bc57d-_0x21c24c+_0x55b307-0x1;}}let _0x115615=_0x511d5a['getCellWithCoordByIndex'](_0x4399be,_0x514603),_0x15e3ad=_0x511d5a[_0x179c20(0x42b)](_0x4399be,_0x4df4a4),{startX:_0x22d4bd,endY:_0x47055f}=_0x115615,{endX:_0x409441}=_0x15e3ad;this['_targetRange']={'startRow':_0x4399be,'endRow':_0x4399be,'startColumn':_0x514603,'endColumn':_0x4df4a4},(_0x34304a=this[_0x179c20(0x223)])==null||_0x34304a[_0x179c20(0x26a)]({'left':_0x22d4bd,'top':_0x47055f,'width':_0x409441-_0x22d4bd,'height':0x14});}else{var _0x34931b;let _0x4974a2=0x0,_0x141791=0x0,_0x5e1626=this[_0x179c20(0x51d)][_0x179c20(0x3b6)]-this[_0x179c20(0x51d)][_0x179c20(0x59c)]+0x1;if(this[_0x179c20(0x2a5)][_0x179c20(0x291)]===this[_0x179c20(0x51d)][_0x179c20(0x59c)])_0x4974a2=_0x4399be,_0x141791=_0x4399be+_0x5e1626-0x1;else{if(this['_moveStartCellIndex'][_0x179c20(0x291)]===this[_0x179c20(0x51d)]['endRow'])_0x141791=_0x4399be,_0x4974a2=_0x4399be-_0x5e1626+0x1;else{let _0x206aea=this[_0x179c20(0x2a5)][_0x179c20(0x291)]-this[_0x179c20(0x51d)][_0x179c20(0x59c)];_0x4974a2=_0x4399be-_0x206aea,_0x141791=_0x4399be-_0x206aea+_0x5e1626-0x1;}}let _0xdd2f73=_0x511d5a[_0x179c20(0x42b)](_0x4974a2,_0x3bc57d),_0x282d78=_0x511d5a[_0x179c20(0x42b)](_0x141791,_0x3bc57d),{startX:_0x13224f,startY:_0xb8aed5}=_0xdd2f73,{endY:_0x304cd9}=_0x282d78;this[_0x179c20(0x6f9)]={'startColumn':_0x3bc57d,'endColumn':_0x3bc57d,'startRow':_0x4974a2,'endRow':_0x141791},(_0x34931b=this[_0x179c20(0x223)])==null||_0x34931b[_0x179c20(0x26a)]({'left':_0x13224f,'top':_0xb8aed5,'width':0x14,'height':_0x304cd9-_0xb8aed5});}}['_controlPointerDownHandler'](_0x2d035d){const _0x5f189e=_0x15a2ed;var _0x1dce08,_0x5bf8c5,_0x4c3d43;(_0x1dce08=this[_0x5f189e(0x5c6)])==null||_0x1dce08[_0x5f189e(0x66b)](!0x1),this[_0x5f189e(0x467)]['scene']['setCursor'](l[_0x5f189e(0x239)][_0x5f189e(0x338)]);let _0x532827=this['_sheetsSelectionsService'][_0x5f189e(0x57b)]();if(!_0x532827[_0x5f189e(0x714)]||_0x532827[_0x5f189e(0x714)]>0x1)return;let _0x4482e4=_0x532827[0x0]['range'],_0x1f9f5f=this[_0x5f189e(0x467)][_0x5f189e(0x3c0)],_0x3fe8fd=_0x1f9f5f[_0x5f189e(0x713)](),_0x635ec7=_0x1f9f5f[_0x5f189e(0x613)](),_0x1ebe3c=_0x3fe8fd[_0x5f189e(0x372)](),_0x24c8c6=this['_sheetsPivotTableAdaptorModel'][_0x5f189e(0x597)](_0x635ec7,_0x1ebe3c);if(!(_0x24c8c6!=null&&_0x24c8c6[_0x5f189e(0x646)]))return;let _0x1bd5ee=Array[_0x5f189e(0x3e8)](_0x24c8c6)[_0x5f189e(0x384)](([_0x306f9a,_0x317b77])=>{const _0x2029b9=_0x5f189e;let {rangesInfo:_0x3f5f20}=_0x317b77;if(!_0x3f5f20)return!0x1;let {rowRanges:_0x4f46cc,colRanges:_0x4beecc}=_0x3f5f20,_0x585ac7=_0x4f46cc[0x0],_0x24cbe6=_0x4beecc[0x0],_0x53eda4=!0x1;return _0x585ac7&&(_0x53eda4=n[_0x2029b9(0x461)]['realContain'](_0x585ac7,_0x4482e4),this['_moveRowOrCol']=_0x2029b9(0x291)),!_0x53eda4&&_0x24cbe6&&(_0x53eda4=n[_0x2029b9(0x461)][_0x2029b9(0x459)](_0x24cbe6,_0x4482e4),this[_0x2029b9(0x663)]=_0x2029b9(0x64f)),_0x53eda4;});if(!_0x1bd5ee)return;this[_0x5f189e(0x2e4)]=_0x1bd5ee[0x0],this[_0x5f189e(0x223)]||(this[_0x5f189e(0x223)]=new Zr(this[_0x5f189e(0x663)]),this[_0x5f189e(0x467)][_0x5f189e(0x218)][_0x5f189e(0x6bb)](this[_0x5f189e(0x223)]));let _0x5225bb=this[_0x5f189e(0x467)][_0x5f189e(0x218)],_0x5ab73c=this[_0x5f189e(0x592)][_0x5f189e(0x584)]();if(!_0x5ab73c)return;let {offsetX:_0x503602,offsetY:_0x84cde9}=_0x2d035d,_0x1e5756=_0x5225bb['getCoordRelativeToViewport'](l['Vector2'][_0x5f189e(0x340)]([_0x503602,_0x84cde9])),{x:_0x1afcb7,y:_0x4e17c6}=_0x1e5756,_0x5729bb=_0x5225bb[_0x5f189e(0x22b)](_0x1e5756),{scaleX:_0x4b2d98,scaleY:_0x45684a}=_0x5225bb[_0x5f189e(0x35a)](),{row:_0x1db30a,column:_0x398f1b}=_0x5ab73c[_0x5f189e(0x2b3)](_0x1afcb7,_0x4e17c6,_0x4b2d98,_0x45684a,_0x5729bb),_0x2e9770=(_0x5bf8c5=this[_0x5f189e(0x5c6)])==null?void 0x0:_0x5bf8c5['model'][_0x5f189e(0x46f)]();if(this[_0x5f189e(0x51d)]=_0x2e9770,!_0x2e9770)return;let _0x3e9a40=0x0;_0x3e9a40=_0x1db30a<_0x2e9770[_0x5f189e(0x59c)]?_0x2e9770[_0x5f189e(0x59c)]:_0x1db30a>_0x2e9770['endRow']?_0x2e9770[_0x5f189e(0x3b6)]:_0x1db30a;let _0x20a5cd=0x0;_0x20a5cd=_0x398f1b<_0x2e9770[_0x5f189e(0x5e0)]?_0x2e9770[_0x5f189e(0x5e0)]:_0x398f1b>_0x2e9770[_0x5f189e(0x202)]?_0x2e9770[_0x5f189e(0x202)]:_0x398f1b,this[_0x5f189e(0x2a5)]={'row':_0x3e9a40,'column':_0x20a5cd},(_0x4c3d43=this['_selectionControl'])==null||_0x4c3d43[_0x5f189e(0x66b)](!0x0),this[_0x5f189e(0x444)]=_0x5225bb[_0x5f189e(0x65a)][_0x5f189e(0x6f4)](_0x293d8a=>{const _0x41f486=_0x5f189e;let {offsetX:_0x4f3753,offsetY:_0x2d03a1}=_0x293d8a,{x:_0x1e92fd,y:_0x2a5efe}=_0x5225bb['getCoordRelativeToViewport'](l[_0x41f486(0x39e)][_0x41f486(0x340)]([_0x4f3753,_0x2d03a1]));this[_0x41f486(0x319)](_0x1e92fd,_0x2a5efe),_0x5225bb[_0x41f486(0x38c)](l[_0x41f486(0x239)][_0x41f486(0x649)]);}),this[_0x5f189e(0x1dc)]=_0x5225bb['onPointerUp$']['subscribeEvent'](_0x2637a7=>{const _0x5df8a6=_0x5f189e;var _0x5a4c5b,_0x56c356,_0x4b93c4;(_0x5a4c5b=this[_0x5df8a6(0x444)])==null||_0x5a4c5b['unsubscribe'](),this['_scenePointerMoveSubscribe']=null,(_0x56c356=this[_0x5df8a6(0x5c6)])==null||_0x56c356['setControlExtensionDisable'](!0x1),this[_0x5df8a6(0x5c6)]=null,_0x5225bb[_0x5df8a6(0x38c)](l[_0x5df8a6(0x239)][_0x5df8a6(0x338)]),_0x5225bb['removeObject'](this['_pivotSelectionMoveShape']),this[_0x5df8a6(0x223)]=null,this[_0x5df8a6(0x438)](),(_0x4b93c4=this[_0x5df8a6(0x1dc)])==null||_0x4b93c4[_0x5df8a6(0x65e)](),this[_0x5df8a6(0x1dc)]=null;});}['_updatePivotSort'](){const _0x5590b5=_0x15a2ed;if(!this[_0x5590b5(0x51d)]||!this[_0x5590b5(0x6f9)]||!this[_0x5590b5(0x2e4)])return;let _0x29dcba=this[_0x5590b5(0x467)][_0x5590b5(0x3c0)][_0x5590b5(0x613)](),_0x1bd7fb=this[_0x5590b5(0x467)][_0x5590b5(0x3c0)][_0x5590b5(0x713)]()[_0x5590b5(0x372)]();if(this[_0x5590b5(0x663)]===_0x5590b5(0x291)){var _0x49e148;let _0x29feaa=(_0x49e148=this['_sheetsPivotTableAdaptorModel'][_0x5590b5(0x597)](_0x29dcba,_0x1bd7fb))==null?void 0x0:_0x49e148['get'](this[_0x5590b5(0x2e4)]);if(!_0x29feaa)return;let _0x16cc9a=this[_0x5590b5(0x486)]['getSubUnitPivotMatrix'](_0x29dcba,_0x1bd7fb);if(!_0x16cc9a)return;let _0x47d1f2=[],_0x4635eb='',{headerMap:_0x2b3e08,rangesInfo:_0x3027cd}=_0x29feaa;for(let _0x2c0f23=this[_0x5590b5(0x51d)][_0x5590b5(0x5e0)];_0x2c0f23<=this['_moveStartRange'][_0x5590b5(0x202)];_0x2c0f23++){var _0x35971a;let _0x4bcedb=_0x2b3e08==null||(_0x35971a=_0x2b3e08['rowHeaderMap'])==null?void 0x0:_0x35971a[_0x2c0f23];if(!_0x4bcedb)continue;_0x4635eb=_0x4bcedb[_0x5590b5(0x6ed)];let _0x1175ae=_0x3027cd==null?void 0x0:_0x3027cd[_0x5590b5(0x281)],_0x5d71fd=_0x1175ae==null?void 0x0:_0x1175ae[0x0];if(!_0x5d71fd)continue;let _0x5016a8={..._0x5d71fd,'startColumn':_0x2c0f23,'endColumn':_0x2c0f23};for(let _0x5bbdee=_0x5016a8[_0x5590b5(0x59c)];_0x5bbdee<=_0x5016a8[_0x5590b5(0x3b6)];_0x5bbdee++){let _0x9750f3=_0x16cc9a[_0x5590b5(0x23c)](_0x5bbdee,_0x2c0f23);if(!_0x9750f3)continue;let {v:_0x13053b,pbt:_0x2fb742}=_0x9750f3;_0x13053b&&_0x2fb742!==e[_0x5590b5(0x20b)][_0x5590b5(0x21a)]&&_0x2fb742!==e[_0x5590b5(0x20b)][_0x5590b5(0x3da)]&&(typeof _0x13053b==_0x5590b5(0x294)?_0x47d1f2[_0x5bbdee]=_0x13053b:typeof _0x13053b=='number'&&(_0x47d1f2[_0x5bbdee]=_0x13053b[_0x5590b5(0x309)]()));}break;}if(!_0x4635eb)return;let _0x2133a1=this[_0x5590b5(0x51d)][_0x5590b5(0x59c)],_0x29cda9=this['_moveStartRange']['endRow']-this[_0x5590b5(0x51d)]['startRow']+0x1,_0x3d6cc9=this[_0x5590b5(0x6f9)]['startRow'];if(_0x2133a1<_0x3d6cc9){let _0x419974=_0x47d1f2[_0x5590b5(0x4f7)](_0x2133a1,_0x29cda9);_0x47d1f2[_0x5590b5(0x4f7)](_0x3d6cc9-_0x29cda9,0x0,..._0x419974);}else{let _0x10acd2=_0x47d1f2[_0x5590b5(0x4f7)](_0x2133a1,_0x29cda9);_0x47d1f2[_0x5590b5(0x4f7)](_0x3d6cc9,0x0,..._0x10acd2);}let _0x768ce7=_0x47d1f2[_0x5590b5(0x3f8)](_0x21aa56=>_0x21aa56!==void 0x0);this[_0x5590b5(0x549)]['executeCommand'](t[_0x5590b5(0x54e)]['id'],{'unitId':_0x29dcba,'subUnitId':_0x1bd7fb,'pivotTableId':this[_0x5590b5(0x2e4)],'tableFieldId':_0x4635eb,'info':{'type':e[_0x5590b5(0x217)][_0x5590b5(0x5f1)],'customOrder':_0x768ce7}});}else{var _0x2bb1c4;let _0x4eda86=(_0x2bb1c4=this[_0x5590b5(0x486)][_0x5590b5(0x597)](_0x29dcba,_0x1bd7fb))==null?void 0x0:_0x2bb1c4[_0x5590b5(0x6a9)](this[_0x5590b5(0x2e4)]);if(!_0x4eda86)return;let _0xaaefa5=this[_0x5590b5(0x486)][_0x5590b5(0x594)](_0x29dcba,_0x1bd7fb);if(!_0xaaefa5)return;let _0x51dc41=[],_0x15d089='',{headerMap:_0x2054e8,rangesInfo:_0x66206}=_0x4eda86;for(let _0xb6dc9a=this['_moveStartRange'][_0x5590b5(0x59c)];_0xb6dc9a<=this['_moveStartRange'][_0x5590b5(0x3b6)];_0xb6dc9a++){var _0x1ce3a4;let _0x135cc8=_0x2054e8==null||(_0x1ce3a4=_0x2054e8[_0x5590b5(0x52b)])==null?void 0x0:_0x1ce3a4[_0xb6dc9a];if(!_0x135cc8)continue;_0x15d089=_0x135cc8[_0x5590b5(0x6ed)];let _0x1309f3=_0x66206==null?void 0x0:_0x66206['colRanges'],_0x1f8316=_0x1309f3==null?void 0x0:_0x1309f3[0x0];if(!_0x1f8316)continue;let _0x567bb3={..._0x1f8316,'startRow':_0xb6dc9a,'endRow':_0xb6dc9a};for(let _0x27a609=_0x567bb3[_0x5590b5(0x5e0)];_0x27a609<=_0x567bb3[_0x5590b5(0x202)];_0x27a609++){let _0xef09a4=_0xaaefa5[_0x5590b5(0x23c)](_0xb6dc9a,_0x27a609);if(!_0xef09a4)continue;let {v:_0x558ac7,pbt:_0x487867}=_0xef09a4;if(_0x558ac7&&_0x487867!==e[_0x5590b5(0x20b)][_0x5590b5(0x21a)]&&_0x487867!==e['PivotCellStyleTypeEnum'][_0x5590b5(0x3da)]){if(typeof _0x558ac7==_0x5590b5(0x294)){let _0x311bba=_0x4eda86['projection']?(0x0,t['mapPivotSheetColumn'])(_0x4eda86[_0x5590b5(0x4f9)],_0x27a609):_0x27a609;_0x51dc41[_0x311bba]=_0x558ac7;}else{if(typeof _0x558ac7==_0x5590b5(0x426)){let _0x5a7998=_0x4eda86[_0x5590b5(0x4f9)]?(0x0,t[_0x5590b5(0x267)])(_0x4eda86[_0x5590b5(0x4f9)],_0x27a609):_0x27a609;_0x51dc41[_0x5a7998]=_0x558ac7[_0x5590b5(0x309)]();}}}}break;}if(!_0x15d089)return;let _0x34a941=_0x4eda86[_0x5590b5(0x4f9)]?(0x0,t[_0x5590b5(0x3c4)])(_0x4eda86[_0x5590b5(0x4f9)],this[_0x5590b5(0x51d)]):this[_0x5590b5(0x51d)],_0x2e3c61=_0x4eda86[_0x5590b5(0x4f9)]?(0x0,t[_0x5590b5(0x3c4)])(_0x4eda86['projection'],this[_0x5590b5(0x6f9)]):this[_0x5590b5(0x6f9)],_0x1693b6=_0x34a941[_0x5590b5(0x5e0)],_0xb28428=this[_0x5590b5(0x51d)][_0x5590b5(0x202)]-this[_0x5590b5(0x51d)][_0x5590b5(0x5e0)]+0x1,_0x43f509=_0x2e3c61[_0x5590b5(0x5e0)];if(_0x1693b6<_0x43f509){let _0x3c4914=_0x51dc41[_0x5590b5(0x4f7)](_0x1693b6,_0xb28428);_0x51dc41[_0x5590b5(0x4f7)](_0x43f509-_0xb28428,0x0,..._0x3c4914);}else{let _0x567b8f=_0x51dc41[_0x5590b5(0x4f7)](_0x1693b6,_0xb28428);_0x51dc41[_0x5590b5(0x4f7)](_0x43f509,0x0,..._0x567b8f);}let _0x41303c=_0x51dc41['filter'](_0x2a3810=>_0x2a3810!==void 0x0);this[_0x5590b5(0x549)]['executeCommand'](t[_0x5590b5(0x54e)]['id'],{'unitId':_0x29dcba,'subUnitId':_0x1bd7fb,'pivotTableId':this['_movePivotId'],'tableFieldId':_0x15d089,'info':{'type':e['PivotDataFieldSortOperatorEnum'][_0x5590b5(0x5f1)],'customOrder':_0x41303c}});}}[_0x15a2ed(0x5a0)](){const _0x1fd904=_0x15a2ed;this[_0x1fd904(0x28d)](this['_sheetsSelectionsService'][_0x1fd904(0x2a3)][_0x1fd904(0x6f3)](()=>{const _0x504375=_0x1fd904;let _0xfcb092=this[_0x504375(0x38d)][_0x504375(0x285)]();if(this[_0x504375(0x5c6)]=_0xfcb092[_0xfcb092[_0x504375(0x714)]-0x1],this[_0x504375(0x5c6)]&&this[_0x504375(0x5c6)][_0x504375(0x66b)](!0x1),!this[_0x504375(0x5c6)])return;let {leftControl:_0x70ca55,rightControl:_0x143561,topControl:_0x36f0f6,bottomControl:_0x5202b8}=this['_selectionControl'];[_0x70ca55,_0x143561,_0x36f0f6,_0x5202b8][_0x504375(0x567)](_0x1f6503=>{const _0x145739=_0x504375;_0x1f6503['onPointerDown$']['subscribeEvent'](this[_0x145739(0x6af)]['bind'](this));});}));}[_0x15a2ed(0x5d3)](){const _0x5db6be=_0x15a2ed;var _0x43e273,_0x2d88c6;(_0x43e273=this[_0x5db6be(0x444)])==null||_0x43e273['unsubscribe'](),this[_0x5db6be(0x444)]=null,(_0x2d88c6=this[_0x5db6be(0x1dc)])==null||_0x2d88c6['unsubscribe'](),this[_0x5db6be(0x1dc)]=null,this[_0x5db6be(0x5c6)]=null,this[_0x5db6be(0x51d)]=null,this['_moveStartCellIndex']=null,this[_0x5db6be(0x6f9)]=null,super[_0x5db6be(0x5d3)]();}};Qr=K([G(0x1,(0x0,n['Inject'])(t[_0x15a2ed(0x56e)])),G(0x2,(0x0,n['Inject'])(a[_0x15a2ed(0x31e)])),G(0x3,(0x0,n[_0x15a2ed(0x436)])(n[_0x15a2ed(0x256)])),G(0x4,a[_0x15a2ed(0x699)]),G(0x5,(0x0,n[_0x15a2ed(0x436)])(r['SheetsSelectionsService']))],Qr);let $=class extends n[_0x15a2ed(0x596)]{constructor(_0x15e0c9=ot,_0x2aec39,_0x3c91d3,_0x85b87c,_0x4e2caa){const _0x44a1b2=_0x15a2ed;super(),this[_0x44a1b2(0x524)]=_0x15e0c9,this[_0x44a1b2(0x4eb)]=_0x2aec39,this[_0x44a1b2(0x549)]=_0x3c91d3,this['_renderManagerService']=_0x85b87c,this[_0x44a1b2(0x68c)]=_0x4e2caa;let {menu:_0x52f355,..._0x4de0df}=(0x0,n['merge'])({},ot,this[_0x44a1b2(0x524)]);_0x52f355&&this[_0x44a1b2(0x68c)][_0x44a1b2(0x5e7)](_0x44a1b2(0x5ec),_0x52f355,{'merge':!0x0}),this[_0x44a1b2(0x68c)][_0x44a1b2(0x5e7)](at,_0x4de0df),this[_0x44a1b2(0x4e4)]();}[_0x15a2ed(0x1c0)](){const _0x45692c=_0x15a2ed;this['_injector'][_0x45692c(0x6dc)]([Jr]),this[_0x45692c(0x4eb)][_0x45692c(0x6a9)](Jr),[[Yr],[Hn],[Ln],[Q],[Vn],[zn],[Bn],[q],[X]]['forEach'](_0xf251ba=>this[_0x45692c(0x4eb)]['add'](_0xf251ba)),this[_0x45692c(0x4eb)]['get'](q);}['onReady'](){const _0x18d28b=_0x15a2ed;this['_registerRenderModules'](),this[_0x18d28b(0x4eb)][_0x18d28b(0x6a9)](Yr);}[_0x15a2ed(0x4aa)](){const _0x6e7751=_0x15a2ed;this[_0x6e7751(0x4eb)][_0x6e7751(0x6a9)](Ln),this['_injector'][_0x6e7751(0x6a9)](Q),this[_0x6e7751(0x4eb)]['get'](Vn),this[_0x6e7751(0x4eb)][_0x6e7751(0x6a9)](zn),this[_0x6e7751(0x4eb)][_0x6e7751(0x6a9)](Bn),this[_0x6e7751(0x4eb)]['get'](X);}['onSteady'](){const _0x21ddf6=_0x15a2ed;this[_0x21ddf6(0x4eb)][_0x21ddf6(0x6a9)](Hn);}[_0x15a2ed(0x43e)](){const _0x558dcc=_0x15a2ed;[[Xr],[Qr]][_0x558dcc(0x567)](_0x2e2480=>{const _0x1ba7f1=_0x558dcc;this['disposeWithMe'](this[_0x1ba7f1(0x480)]['registerRenderModule'](n[_0x1ba7f1(0x243)][_0x1ba7f1(0x1d6)],_0x2e2480));});}[_0x15a2ed(0x4e4)](){const _0x46d5b4=_0x15a2ed;[it,N,tt,nt,F,z,ie,ae,oe,ue,fe,xe][_0x46d5b4(0x567)](_0x5dc1e9=>this['_commandService']['registerCommand'](_0x5dc1e9));}};W($,'pluginName',t['SHEET_PIVOT_TABLE_PLUGIN']+_0x15a2ed(0x2bb)),W($,_0x15a2ed(0x324),$e),W($,'version',et),W($,'type',n['UniverInstanceType']['UNIVER_SHEET']),$=K([(0x0,n[_0x15a2ed(0x511)])(c[_0x15a2ed(0x550)],l[_0x15a2ed(0x516)],r['UniverSheetsPlugin'],t[_0x15a2ed(0x3db)],a[_0x15a2ed(0x6bf)]),G(0x1,(0x0,n['Inject'])(n['Injector'])),G(0x2,(0x0,n[_0x15a2ed(0x436)])(n['ICommandService'])),G(0x3,l[_0x15a2ed(0x587)]),G(0x4,n[_0x15a2ed(0x645)])],$),exports[_0x15a2ed(0x389)]=xr,exports['Draggable']=Cr,exports['Droppable']=Sr,exports['OpenPivotTableRangeSelectorPanelOperation']=N,exports[_0x15a2ed(0x490)]=lr,exports['PivotFilterPanel']=$n,exports[_0x15a2ed(0x245)]=Qe,Object[_0x15a2ed(0x346)](exports,'UniverSheetsPivotTableMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x15a2ed(0x346)](exports,_0x15a2ed(0x416),{'enumerable':!0x0,'get':function(){return $;}});