@univerjs-pro/sheets-print 0.1.13 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/common/plugin-name.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/sheet-print-manager.service.d.ts +5 -3
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/package.json +40 -26
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x483d(_0xf91adb,_0x74525){const _0x1a9265=_0x1a92();return _0x483d=function(_0x483d3b,_0x349140){_0x483d3b=_0x483d3b-0x1f3;let _0x33ed01=_0x1a9265[_0x483d3b];return _0x33ed01;},_0x483d(_0xf91adb,_0x74525);}function _0x1a92(){const _0x19016a=['updateRenderConfig','MenuItemType','_accessor','renderConfig$','print.size.b5','sheetsPrintContentPreviewPage','svg','layoutInfos$','fontBoundingBoxAscent','forwardRef','print.scale.normal','Column','PrintSingle','renderOnReady','display','print.align.horizontal.middle','permission.dialog.printErr','IUniverInstanceService','Time','print.scale.fitWidth','CurrentSelection','_container','addMenuItem','PaperSizePxMap','UniverCore','sheetsPrintContentSettingForm','Select','onCommandExecuted','prototype','setPreviewScale','margin','5642253HlcgkH','KeyCode','open','print.freeze.title','getPrecisionScale','fillText','_sheetPrintManagerService','Disposable','IGlobalZoneService','_engine','UniverInstanceType','sheetsPrintHeader','flex','onafterprint','columnWidthAccumulation','print.orientation.portrait','_viewTop','getName','_addComponent','_previewScale','print.size.legal','markDirty','Middle','disposeWithMe','_initComponents','print.orientation.landscape','LocaleService','PrintAlign','scaleX','createElement','gridlines','min','endColumn','apply','key','WorkbookTitle','Normal','CollaborationController','PRINT_CONTAINER_CLASS','concat','slice','Scrollbar','print.size.a4','string','_layoutConfig$','makeDirty','print.size.letter','getFirst','_skeleton','print.selection.allWorkbook','zoom-increase-single','_renderConfig','endX','close','right','SheetSkeletonManagerService','print.scale.fitPage','floor','FormLayout','getSheetBySheetId','sheetsPrintContent','_viewLeft','UniverIcon','zoom-reduce-single','evenodd','makeForceDirty','updateScroll','print.size.executive','clearCanvas','next','propertyIsEnumerable','vAlign','rgba(0,0,0,0.3)','print.align.horizontal.end','@univerjs/core','workbook','DEFAULT_FONTFACE_PLANE','useDependency','_dirty','1758765HJeRZm','Portrait','UniverEngineRender','getActiveSheet','extend','BehaviorSubject','fixLineWidthByScale','startRow','Tools','bottom','startY','_componentManager','range','none','indexOf','Injector','IShortcutService','_calculateSheetRangeById','left','toLocaleString','4sIAtWl','_calculate','entries','body','12px\x20','Plugin','890610KgVRGs','100%','tag','IMenuService','style','print.margin.normal','createIdentifier','rowHeightAccumulation','length','getOrCreateSkeleton','_renderHeaderFooter','Executive','FitWidth','onTransformChangeObservable','_initialize','univer-sheets-print-limit','8965832KwfuCk','SelectionManagerService','print.header.pages','getCurrentUnitForType','WorksheetTitle','memo','TOOLBAR_START','print.formatting.title','18rPMUSK','_resizeViewport','div','_selectionManagerService','pages','_layoutConfig','print-single','UniverSheetsUi','getCanvas','_calculatePrintScale','_layoutInfos$','sheets-print','Date','@univerjs/design','paperSize','createPrintStyle','CheckboxGroup','ICommandService','forEach','area','layoutInfos','toStringTag','Inject','reset','fontBoundingBoxDescent','width','Ready','@univerjs-pro/print','exports','height','getOwnPropertySymbols','_initCommandListener','M4.82617\x201.88735C4.82617\x201.55598\x205.0948\x201.28735\x205.42617\x201.28735H10.5736C10.905\x201.28735\x2011.1736\x201.55598\x2011.1736\x201.88735V3.86121H13.791C14.4778\x203.86121\x2015.0345\x204.4179\x2015.0345\x205.10464V10.2521C15.0345\x2010.9388\x2014.4778\x2011.4955\x2013.791\x2011.4955H11.1736V14.1126C11.1736\x2014.4439\x2010.905\x2014.7126\x2010.5736\x2014.7126H5.42617C5.0948\x2014.7126\x204.82617\x2014.4439\x204.82617\x2014.1126V11.4955H2.20901C1.52228\x2011.4955\x200.965576\x2010.9388\x200.965576\x2010.2521V5.10464C0.965576\x204.41789\x201.52228\x203.86121\x202.20901\x203.86121H4.82617V1.88735ZM4.82617\x2010.2955V9.60855C4.82617\x209.59394\x204.82669\x209.57946\x204.82772\x209.56511H4.46108C4.12971\x209.56511\x203.86108\x209.29648\x203.86108\x208.96511C3.86108\x208.63374\x204.12971\x208.36511\x204.46108\x208.36511H11.5388C11.8702\x208.36511\x2012.1388\x208.63374\x2012.1388\x208.96511C12.1388\x209.29648\x2011.8702\x209.56511\x2011.5388\x209.56511H11.1721C11.1731\x209.57946\x2011.1736\x209.59394\x2011.1736\x209.60855V10.2955H13.791C13.815\x2010.2955\x2013.8345\x2010.2761\x2013.8345\x2010.2521V5.10464C13.8345\x205.08064\x2013.815\x205.06121\x2013.791\x205.06121H12.4605V6.3915C12.4605\x206.72287\x2012.1918\x206.9915\x2011.8605\x206.9915H4.13931C3.80794\x206.9915\x203.53931\x206.72287\x203.53931\x206.3915V5.06121H2.20901C2.18501\x205.06121\x202.16558\x205.08065\x202.16558\x205.10464V10.2521C2.16558\x2010.2761\x202.18501\x2010.2955\x202.20901\x2010.2955H4.82617ZM9.97516\x209.56511H6.02462C6.02565\x209.57946\x206.02617\x209.59394\x206.02617\x209.60855V13.5126H9.97362V9.60855C9.97362\x209.59394\x209.97414\x209.57946\x209.97516\x209.56511ZM9.97362\x204.46108C9.97362\x204.69542\x2010.108\x204.89838\x2010.3038\x204.99715C10.385\x205.03813\x2010.4767\x205.06121\x2010.5739\x205.06121H11.2605V5.7915H4.73931V5.06121H5.42616C5.73749\x205.06121\x205.99344\x204.82409\x206.02326\x204.5206C6.02518\x204.50102\x206.02617\x204.48116\x206.02617\x204.46108V2.48735H9.97362V4.46108Z','print.limit.waterMark','print.scale.title','addObject','IDialogService','PrintPaperSize','CancelSheetPrintOperation','measureText','xlink:href','_key','UniverSheetsPrint','_totalHeight','_initRenderer','print.formatting.skeleton','then','CurrentSheet','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','@wendellhu/redi','getNoMergeCellPositionByIndexWithNoHeader','PrintDirection','render','Legal','endRow','reLayout','ConfirmSheetPrintOperation','subUnitIds','print.size.b4','symbol','@univerjs/sheets-ui','CommandType','_print','endY','prepare','print.freeze.row','colorChannel1','disable','@univerjs-pro/collaboration-client','Folio','includes','SheetPrintOpenOperation','univer-sheets-print-header','getMenuHiddenObservable','Checkbox','print.limit.link','Row','__SpreadsheetPrintRender__','UniverUi','_viewLeftTop','SheetsPrintPlugin','fill','ZoomReduceSingle','filter','sheetsPrintContentSetting','PrintPaperMargin','paperMargin','Spreadsheet','print.size.title','headerFooter','_calculateCurrentSelectionRange','_calculateSubSheetRange','ZoomIncreaseSingle','Engine','max','MenuPosition','_calculateFinalRange','CTRL_COMMAND','_sheetSkeletonManagerService','getFreeze','PaperMarginMap','Wide','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','univer-pro.sheet-print-manager.service','_renderWaterMark','freeze','Module','_spreadsheetObject','container','asObservable','_layoutInfos','useObservable','CanvasRenderMode','useEffect','OPERATION','object','univer-sheets-print-content-preview-page','_initConfigChangeListener','scaleY','print.area.currentSelection','sheet.operation.confirm-print','_viewMain','Scene','assign','engine','UNIVER_SHEET','flat','updateLayoutConfig','_calculateSheetPages','_scene','13px\x20','getContext','print.align.horizontal.start','className','useState','OPTIONAL','_margin','print.header.cancel','register','univer-sheets-print-content-preview-control','_renderMainScene','xSplit','toLocaleTimeString','setForceDisableGridlines','defineProperty','getSheetId','univer-sheets-print-header-left','_renderConfig$','getUniverSheetInstance','getUnitId','1em','getSheets','attrs','@univerjs/ui','print.limit.page','enable','pauseCollaboration','@univerjs/engine-render','Radio','Origin','size','restore','print.align.vertical.start','PrintScale','print.headerFooter.date','subscribe','ComponentManager','318948ccSjct','map','subPage','primary','sheet.operation.print-open','hasOwnProperty','PRINT_CANVAS_CLASS','layoutConfig','hAlign','Button','replace','print.headerFooter.sheet','removeChild','_commandService','trim','path','function','idSuffix','print.area.workbook','React','add','_menuService','Narrow','type','univer-sheets-print-content-setting','PageSize','amd','univer-sheets-print-content-setting-form','Viewport','_shortcutService','print.selection.workbookUnit','layoutConfig$','__blank','push','_addViewport','_injector','renderConfig','_config','_localeService','VIEW_MAIN_TOP','get','ySplit','print.headerFooter.title','Printing','direction','font','set','sheet.operation.cancel-print','M1.33362\x207.97412C1.33362\x207.69798\x201.55748\x207.47412\x201.83362\x207.47412L14.1664\x207.47412C14.4425\x207.47412\x2014.6664\x207.69798\x2014.6664\x207.97412C14.6664\x208.25026\x2014.4425\x208.47412\x2014.1664\x208.47412L1.83362\x208.47412C1.55748\x208.47412\x201.33362\x208.25026\x201.33362\x207.97412Z','MetaKeys','fillStyle','@wendellhu/redi/react-bindings','@univerjs/sheets','print.menu','resize','icon','pluginName','rxjs','End','_paperSize','current','startColumn','sheetsPrintHeaderLeft','print.headerFooter.time','print.area.title','have\x20not\x20permission','appendChild','univer-sheets-print-header-right','round','Tabloid','updateConfig','Start','defs','0\x200\x2016\x2016','WorkbookPrintPermission','page','useRef','_isPreview','call','unitId','_printService','_univerInstanceService','print.size.a3','column','url(#$1','M7.5\x2014.1406C7.5\x2014.4168\x207.72386\x2014.6406\x208\x2014.6406C8.27614\x2014.6406\x208.5\x2014.4168\x208.5\x2014.1406V8.47424H14.1664C14.4425\x208.47424\x2014.6664\x208.25039\x2014.6664\x207.97424C14.6664\x207.6981\x2014.4425\x207.47424\x2014.1664\x207.47424H8.5V1.80786C8.5\x201.53172\x208.27614\x201.30786\x208\x201.30786C7.72386\x201.30786\x207.5\x201.53172\x207.5\x201.80786V7.47424H1.83362C1.55748\x207.47424\x201.33362\x207.6981\x201.33362\x207.97424C1.33362\x208.25038\x201.55748\x208.47424\x201.83362\x208.47424H7.5V14.1406Z','subUnitId','print.header.next','print.align.vertical.middle','useMemo','print.size.statement','executeCommand','children','sheetsPrintContentPreviewControlItem','getPermissionPoint','FitHeight','defIds','VIEWPORT_KEY','print.size.a5','_getTranslateOffset','dispose','startX','currentColor','random','1993683eyHyDQ','FitPage','_totalWidth','print.margin.narrow','scale','save','6126764ATrcOP','has','devicePixelRatio','top','displayName'];_0x1a92=function(){return _0x19016a;};return _0x1a92();}(function(_0x2fa3bb,_0x167a46){const _0x46d1e3=_0x483d,_0x4c4164=_0x2fa3bb();while(!![]){try{const _0x3fc111=-parseInt(_0x46d1e3(0x1fa))/0x1+parseInt(_0x46d1e3(0x1f4))/0x2*(parseInt(_0x46d1e3(0x321))/0x3)+parseInt(_0x46d1e3(0x2b9))/0x4+parseInt(_0x46d1e3(0x39a))/0x5*(parseInt(_0x46d1e3(0x212))/0x6)+parseInt(_0x46d1e3(0x327))/0x7+-parseInt(_0x46d1e3(0x20a))/0x8+-parseInt(_0x46d1e3(0x34b))/0x9;if(_0x3fc111===_0x167a46)break;else _0x4c4164['push'](_0x4c4164['shift']());}catch(_0x1554ec){_0x4c4164['push'](_0x4c4164['shift']());}}}(_0x1a92,0xab2ba),function(_0x1817e0,_0x4620bc){const _0x476b88=_0x483d;typeof exports==_0x476b88(0x285)&&typeof module<'u'?_0x4620bc(exports,require('@univerjs/core'),require('@univerjs/ui'),require(_0x476b88(0x243)),require(_0x476b88(0x2ed)),require(_0x476b88(0x24e)),require(_0x476b88(0x22d)),require(_0x476b88(0x2f2)),require(_0x476b88(0x2af)),require(_0x476b88(0x21f)),require(_0x476b88(0x2ec)),require('react')):typeof define==_0x476b88(0x2c9)&&define[_0x476b88(0x2d3)]?define([_0x476b88(0x22e),_0x476b88(0x395),_0x476b88(0x2ab),_0x476b88(0x243),'@univerjs/sheets','@univerjs/sheets-ui','@univerjs-pro/print',_0x476b88(0x2f2),_0x476b88(0x2af),_0x476b88(0x21f),_0x476b88(0x2ec),'react'],_0x4620bc):(_0x1817e0=typeof globalThis<'u'?globalThis:_0x1817e0||self,_0x4620bc(_0x1817e0[_0x476b88(0x23c)]={},_0x1817e0[_0x476b88(0x344)],_0x1817e0[_0x476b88(0x260)],_0x1817e0[_0x476b88(0x243)],_0x1817e0['UniverSheets'],_0x1817e0[_0x476b88(0x219)],_0x1817e0['UniverPrint'],_0x1817e0[_0x476b88(0x2f2)],_0x1817e0[_0x476b88(0x39c)],_0x1817e0['UniverDesign'],_0x1817e0[_0x476b88(0x2ec)],_0x1817e0[_0x476b88(0x2cc)]));}(this,function(_0x4c1d40,_0x3123ef,_0x53d385,_0x51bc42,_0xfb3985,_0x4a04ff,_0x15a8e6,_0x333a71,_0xd3b10c,_0x32f308,_0x45719b,_0x2f6828){'use strict';const _0x3dd8ec=_0x483d;var _0x2ea77d=Object[_0x3dd8ec(0x2a2)],_0x429892=(_0x12288b,_0x5e841e,_0x42fcdb)=>_0x5e841e in _0x12288b?_0x2ea77d(_0x12288b,_0x5e841e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42fcdb}):_0x12288b[_0x5e841e]=_0x42fcdb,_0x53715c=(_0x1fe1f6,_0x2febfe,_0x41ad36)=>(_0x429892(_0x1fe1f6,typeof _0x2febfe!=_0x3dd8ec(0x24d)?_0x2febfe+'':_0x2febfe,_0x41ad36),_0x41ad36),_0x29dd59,_0x2584cd=function(){const _0x32cb75=_0x3dd8ec;return _0x2584cd=Object[_0x32cb75(0x28d)]||function(_0x125b97){const _0x349675=_0x32cb75;for(var _0x5ad0db,_0xda6177=0x1,_0x2a1cfd=arguments[_0x349675(0x202)];_0xda6177<_0x2a1cfd;_0xda6177++){_0x5ad0db=arguments[_0xda6177];for(var _0x278f0d in _0x5ad0db)Object[_0x349675(0x348)][_0x349675(0x2be)][_0x349675(0x307)](_0x5ad0db,_0x278f0d)&&(_0x125b97[_0x278f0d]=_0x5ad0db[_0x278f0d]);}return _0x125b97;},_0x2584cd[_0x32cb75(0x36c)](this,arguments);},_0x1f9572=function(_0x32ad9f,_0x2fcb66){const _0x1a2c09=_0x3dd8ec;var _0x14cee1={};for(var _0x5479aa in _0x32ad9f)Object[_0x1a2c09(0x348)][_0x1a2c09(0x2be)][_0x1a2c09(0x307)](_0x32ad9f,_0x5479aa)&&_0x2fcb66[_0x1a2c09(0x3a8)](_0x5479aa)<0x0&&(_0x14cee1[_0x5479aa]=_0x32ad9f[_0x5479aa]);if(_0x32ad9f!=null&&typeof Object[_0x1a2c09(0x230)]==_0x1a2c09(0x2c9)){for(var _0x223395=0x0,_0x5479aa=Object[_0x1a2c09(0x230)](_0x32ad9f);_0x223395<_0x5479aa[_0x1a2c09(0x202)];_0x223395++)_0x2fcb66['indexOf'](_0x5479aa[_0x223395])<0x0&&Object[_0x1a2c09(0x348)][_0x1a2c09(0x391)]['call'](_0x32ad9f,_0x5479aa[_0x223395])&&(_0x14cee1[_0x5479aa[_0x223395]]=_0x32ad9f[_0x5479aa[_0x223395]]);}return _0x14cee1;},_0x2c230a=_0x2f6828[_0x3dd8ec(0x335)](function(_0xae3d3a,_0x30ac35){const _0x67e4b1=_0x3dd8ec;var _0x4fe7ff=_0xae3d3a[_0x67e4b1(0x2f0)],_0x175d83=_0xae3d3a['id'],_0x4e1713=_0xae3d3a[_0x67e4b1(0x297)],_0x771644=_0xae3d3a['extend'],_0x331b8e=_0x1f9572(_0xae3d3a,['icon','id','className',_0x67e4b1(0x39e)]),_0x31cf53='univerjs-icon\x20univerjs-icon-'[_0x67e4b1(0x372)](_0x175d83,'\x20')['concat'](_0x4e1713||'')[_0x67e4b1(0x2c7)](),_0x3bf286=_0x2f6828[_0x67e4b1(0x305)]('_'[_0x67e4b1(0x372)](_0x135f1f()));return _0x29d8d7(_0x4fe7ff,''[_0x67e4b1(0x372)](_0x175d83),{'defIds':_0x4fe7ff[_0x67e4b1(0x319)],'idSuffix':_0x3bf286['current']},_0x2584cd({'ref':_0x30ac35,'className':_0x31cf53},_0x331b8e),_0x771644);});function _0x29d8d7(_0x57c92b,_0x480599,_0x5630e5,_0x20a482,_0x4946c3){const _0x181207=_0x3dd8ec;return _0x2f6828['createElement'](_0x57c92b[_0x181207(0x1fc)],_0x2584cd(_0x2584cd({'key':_0x480599},_0x2c8176(_0x57c92b,_0x5630e5,_0x4946c3)),_0x20a482),(_0x5e66ba(_0x57c92b,_0x5630e5)[_0x181207(0x315)]||[])['map'](function(_0x13992f,_0x468a07){const _0x4020d8=_0x181207;return _0x29d8d7(_0x13992f,''[_0x4020d8(0x372)](_0x480599,'-')[_0x4020d8(0x372)](_0x57c92b['tag'],'-')['concat'](_0x468a07),_0x5630e5,void 0x0,_0x4946c3);}));}function _0x2c8176(_0x271a19,_0x561ab7,_0x102660){const _0x2e7ab6=_0x3dd8ec;var _0x12461f=_0x2584cd({},_0x271a19['attrs']);_0x102660!=null&&_0x102660[_0x2e7ab6(0x254)]&&_0x12461f[_0x2e7ab6(0x263)]===_0x2e7ab6(0x254)&&(_0x12461f[_0x2e7ab6(0x263)]=_0x102660[_0x2e7ab6(0x254)]);var _0xbbee04=_0x561ab7[_0x2e7ab6(0x319)];return!_0xbbee04||_0xbbee04['length']===0x0||(_0x271a19[_0x2e7ab6(0x1fc)]==='use'&&_0x12461f[_0x2e7ab6(0x23a)]&&(_0x12461f[_0x2e7ab6(0x23a)]=_0x12461f[_0x2e7ab6(0x23a)]+_0x561ab7['idSuffix']),Object[_0x2e7ab6(0x1f6)](_0x12461f)['forEach'](function(_0x4c21c7){const _0x5d60c3=_0x2e7ab6;var _0x491a6a=_0x4c21c7[0x0],_0x3dc61f=_0x4c21c7[0x1];typeof _0x3dc61f==_0x5d60c3(0x376)&&(_0x12461f[_0x491a6a]=_0x3dc61f[_0x5d60c3(0x2c3)](/url\(#(.*)\)/,_0x5d60c3(0x30d)[_0x5d60c3(0x372)](_0x561ab7[_0x5d60c3(0x2ca)],')')));})),_0x12461f;}function _0x5e66ba(_0x19d00d,_0x2914a2){const _0x291de6=_0x3dd8ec;var _0x18e922,_0x592b4d=_0x2914a2[_0x291de6(0x319)];return!_0x592b4d||_0x592b4d[_0x291de6(0x202)]===0x0?_0x19d00d:_0x19d00d[_0x291de6(0x1fc)]===_0x291de6(0x301)&&(!((_0x18e922=_0x19d00d['children'])===null||_0x18e922===void 0x0)&&_0x18e922[_0x291de6(0x202)])?_0x2584cd(_0x2584cd({},_0x19d00d),{'children':_0x19d00d[_0x291de6(0x315)]['map'](function(_0x45966d){const _0x56d3ac=_0x291de6;return typeof _0x45966d[_0x56d3ac(0x2aa)]['id']==_0x56d3ac(0x376)&&_0x592b4d&&_0x592b4d['indexOf'](_0x45966d[_0x56d3ac(0x2aa)]['id'])>-0x1?_0x2584cd(_0x2584cd({},_0x45966d),{'attrs':_0x2584cd(_0x2584cd({},_0x45966d[_0x56d3ac(0x2aa)]),{'id':_0x45966d[_0x56d3ac(0x2aa)]['id']+_0x2914a2['idSuffix']})}):_0x45966d;})}):_0x19d00d;}function _0x135f1f(){const _0x5b37e3=_0x3dd8ec;return Math[_0x5b37e3(0x320)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2c230a[_0x3dd8ec(0x32b)]=_0x3dd8ec(0x389);var _0x351fad={'tag':_0x3dd8ec(0x332),'attrs':{'fill':_0x3dd8ec(0x3a7),'viewBox':_0x3dd8ec(0x302),'width':_0x3dd8ec(0x2a8),'height':_0x3dd8ec(0x2a8)},'children':[{'tag':_0x3dd8ec(0x2c8),'attrs':{'fill':_0x3dd8ec(0x31f),'d':'M6.75635\x2011.5388C6.75635\x2011.2075\x207.02498\x2010.9388\x207.35635\x2010.9388H8.64321C8.97458\x2010.9388\x209.24321\x2011.2075\x209.24321\x2011.5388C9.24321\x2011.8702\x208.97458\x2012.1388\x208.64321\x2012.1388H7.35635C7.02498\x2012.1388\x206.75635\x2011.8702\x206.75635\x2011.5388Z'}},{'tag':_0x3dd8ec(0x2c8),'attrs':{'fill':_0x3dd8ec(0x31f),'d':_0x3dd8ec(0x232),'fillRule':_0x3dd8ec(0x38b),'clipRule':_0x3dd8ec(0x38b)}}]},_0x44ab6e=_0x2f6828[_0x3dd8ec(0x335)](function(_0x1a5c6a,_0x48ab3a){const _0x4c7cf7=_0x3dd8ec;return _0x2f6828[_0x4c7cf7(0x368)](_0x2c230a,Object[_0x4c7cf7(0x28d)]({},_0x1a5c6a,{'id':_0x4c7cf7(0x218),'ref':_0x48ab3a,'icon':_0x351fad}));});_0x44ab6e[_0x3dd8ec(0x32b)]=_0x3dd8ec(0x338);var _0x124177={'tag':_0x3dd8ec(0x332),'attrs':{'fill':_0x3dd8ec(0x3a7),'viewBox':_0x3dd8ec(0x302),'width':'1em','height':_0x3dd8ec(0x2a8)},'children':[{'tag':_0x3dd8ec(0x2c8),'attrs':{'fill':'currentColor','d':_0x3dd8ec(0x30e)}}]},_0x4378e2=_0x2f6828[_0x3dd8ec(0x335)](function(_0x1712ea,_0x310ac7){const _0x5c4047=_0x3dd8ec;return _0x2f6828[_0x5c4047(0x368)](_0x2c230a,Object[_0x5c4047(0x28d)]({},_0x1712ea,{'id':_0x5c4047(0x37d),'ref':_0x310ac7,'icon':_0x124177}));});_0x4378e2[_0x3dd8ec(0x32b)]=_0x3dd8ec(0x26e);var _0x361fa1={'tag':_0x3dd8ec(0x332),'attrs':{'fill':_0x3dd8ec(0x3a7),'viewBox':_0x3dd8ec(0x302),'width':_0x3dd8ec(0x2a8),'height':_0x3dd8ec(0x2a8)},'children':[{'tag':'path','attrs':{'fill':_0x3dd8ec(0x31f),'d':_0x3dd8ec(0x2e9),'fillRule':_0x3dd8ec(0x38b),'clipRule':_0x3dd8ec(0x38b)}}]},_0x1dba9b=_0x2f6828['forwardRef'](function(_0x1932c3,_0x23b620){const _0x3acab7=_0x3dd8ec;return _0x2f6828[_0x3acab7(0x368)](_0x2c230a,Object[_0x3acab7(0x28d)]({},_0x1932c3,{'id':_0x3acab7(0x38a),'ref':_0x23b620,'icon':_0x361fa1}));});_0x1dba9b[_0x3dd8ec(0x32b)]=_0x3dd8ec(0x264);var _0x3cc45b=(_0x3d5522=>(_0x3d5522[_0x3dd8ec(0x241)]=_0x3dd8ec(0x241),_0x3d5522['workbook']='Workbook',_0x3d5522['CurrentSelection']=_0x3dd8ec(0x340),_0x3d5522))(_0x3cc45b||{}),_0x1d4d39=(_0x4c9ac8=>(_0x4c9ac8[_0x3dd8ec(0x2d2)]=_0x3dd8ec(0x2d2),_0x4c9ac8[_0x3dd8ec(0x36e)]=_0x3dd8ec(0x36e),_0x4c9ac8[_0x3dd8ec(0x20e)]=_0x3dd8ec(0x20e),_0x4c9ac8[_0x3dd8ec(0x21e)]=_0x3dd8ec(0x21e),_0x4c9ac8['Time']=_0x3dd8ec(0x33e),_0x4c9ac8))(_0x1d4d39||{}),_0x53bb34=(_0x58fadf=>(_0x58fadf[_0x3dd8ec(0x25e)]='Row',_0x58fadf['Column']='Column',_0x58fadf))(_0x53bb34||{}),_0x4b3573=(_0x2bf9dd,_0x217e4d,_0xa3b749,_0x2f4e74)=>{const _0x58fa65=_0x3dd8ec;for(var _0x2e56fd=_0x217e4d,_0x352d77=_0x2bf9dd[_0x58fa65(0x202)]-0x1,_0x3b7cb8;_0x352d77>=0x0;_0x352d77--)(_0x3b7cb8=_0x2bf9dd[_0x352d77])&&(_0x2e56fd=_0x3b7cb8(_0x2e56fd)||_0x2e56fd);return _0x2e56fd;},_0x4377b4=(_0x49065b,_0x1d4017)=>(_0x53005e,_0x3a4992)=>_0x1d4017(_0x53005e,_0x3a4992,_0x49065b);const _0x5868af=_0x51bc42[_0x3dd8ec(0x200)](_0x3dd8ec(0x279)),_0x252113=_0xae8d32=>Math[_0x3dd8ec(0x384)](_0xae8d32*0x64)/0x64;let _0x27b8dd=class{constructor(_0x3ffc62,_0x3e4641,_0x4e1fc4){const _0x589c94=_0x3dd8ec;_0x53715c(this,_0x589c94(0x217),{'area':_0x3cc45b[_0x589c94(0x241)],'subUnitIds':[],'paperSize':_0x15a8e6[_0x589c94(0x237)]['A4'],'direction':_0x15a8e6[_0x589c94(0x245)][_0x589c94(0x39b)],'scale':_0x15a8e6['PrintScale'][_0x589c94(0x2b1)],'customScale':0x1,'freeze':[_0x53bb34[_0x589c94(0x25e)],_0x53bb34[_0x589c94(0x337)]],'margin':_0x15a8e6['PrintPaperMargin'][_0x589c94(0x36f)]}),_0x53715c(this,_0x589c94(0x37e),{'gridlines':!0x0,'hAlign':_0x15a8e6[_0x589c94(0x366)][_0x589c94(0x361)],'vAlign':_0x15a8e6[_0x589c94(0x366)][_0x589c94(0x300)],'headerFooter':[]}),_0x53715c(this,_0x589c94(0x280),[]),_0x53715c(this,_0x589c94(0x21c),new _0x333a71['BehaviorSubject'](this[_0x589c94(0x280)])),_0x53715c(this,_0x589c94(0x377),new _0x333a71[(_0x589c94(0x39f))](this[_0x589c94(0x217)])),_0x53715c(this,_0x589c94(0x2a5),new _0x333a71['BehaviorSubject'](this[_0x589c94(0x37e)])),_0x53715c(this,_0x589c94(0x2d8),this[_0x589c94(0x377)][_0x589c94(0x27f)]()),_0x53715c(this,'renderConfig$',this[_0x589c94(0x2a5)]['asObservable']()),_0x53715c(this,_0x589c94(0x333),this[_0x589c94(0x21c)][_0x589c94(0x27f)]()),(this['_univerInstanceService']=_0x3ffc62,this['_sheetSkeletonManagerService']=_0x3e4641,this['_selectionManagerService']=_0x4e1fc4);}get[_0x3dd8ec(0x226)](){const _0x35e1f6=_0x3dd8ec;return this[_0x35e1f6(0x280)];}get['renderConfig'](){const _0x276911=_0x3dd8ec;return this[_0x276911(0x37e)];}get[_0x3dd8ec(0x2c0)](){const _0x126c23=_0x3dd8ec;return this[_0x126c23(0x217)];}get[_0x3dd8ec(0x220)](){const _0xa4fda2=_0x3dd8ec,{paperSize:_0x4704a2,direction:_0x23ce79}=this[_0xa4fda2(0x217)],_0xb546b1=_0x15a8e6[_0xa4fda2(0x343)][_0x4704a2];return _0x23ce79===_0x15a8e6['PrintDirection']['Portrait']?{..._0xb546b1}:{'w':_0xb546b1['h'],'h':_0xb546b1['w']};}get['paperMargin'](){const _0x2f8852=_0x3dd8ec;return _0x15a8e6[_0x2f8852(0x276)][this[_0x2f8852(0x217)][_0x2f8852(0x34a)]];}[_0x3dd8ec(0x291)](_0x5d8db8){const _0x484e8c=_0x3dd8ec;this[_0x484e8c(0x217)]={...this[_0x484e8c(0x217)],..._0x5d8db8},this[_0x484e8c(0x377)]['next'](this[_0x484e8c(0x217)]),this[_0x484e8c(0x249)]();}[_0x3dd8ec(0x32c)](_0x443dba){const _0x12edcb=_0x3dd8ec;this['_renderConfig']={...this[_0x12edcb(0x37e)],..._0x443dba},this[_0x12edcb(0x2a5)][_0x12edcb(0x390)](this['_renderConfig']);}['reLayout'](){const _0x2739c3=_0x3dd8ec;this[_0x2739c3(0x280)]=this[_0x2739c3(0x1f5)](),this[_0x2739c3(0x21c)][_0x2739c3(0x390)](this[_0x2739c3(0x280)]);}[_0x3dd8ec(0x229)](){const _0x4c22d2=_0x3dd8ec;this[_0x4c22d2(0x280)]=[],this[_0x4c22d2(0x21c)]['next'](this[_0x4c22d2(0x280)]),this[_0x4c22d2(0x217)]={...this[_0x4c22d2(0x217)],'area':_0x3cc45b['CurrentSheet']},this[_0x4c22d2(0x377)][_0x4c22d2(0x390)](this[_0x4c22d2(0x217)]);}[_0x3dd8ec(0x1f5)](){const _0x4edba7=_0x3dd8ec,_0x860357=this['_calculateSubSheetRange'](),_0x438ef8=[];return _0x860357[_0x4edba7(0x224)](_0x123c48=>{const _0x5413d5=_0x4edba7;if(_0x123c48){const _0x6ae7d7=this[_0x5413d5(0x292)](_0x123c48);_0x6ae7d7&&_0x438ef8[_0x5413d5(0x2da)](_0x6ae7d7);}}),_0x438ef8;}[_0x3dd8ec(0x3ab)](_0x2b21e5){const _0x28af63=_0x3dd8ec,_0x3c5104=this[_0x28af63(0x30a)]['getCurrentUnitForType'](_0x3123ef[_0x28af63(0x355)][_0x28af63(0x28f)])[_0x28af63(0x386)](_0x2b21e5);if(!_0x3c5104)return;const _0x584f08=_0x3c5104[_0x28af63(0x275)](),_0x207e15=_0x3c5104['getCellMatrixPrintRange']();if(_0x207e15)return this[_0x28af63(0x272)](_0x2b21e5,{..._0x207e15,'startColumn':Math[_0x28af63(0x270)](_0x584f08[_0x28af63(0x2f6)]-_0x584f08[_0x28af63(0x29f)],0x0),'startRow':Math[_0x28af63(0x270)](_0x584f08['startRow']-_0x584f08[_0x28af63(0x2e2)],0x0)});}[_0x3dd8ec(0x26c)](){const _0xcc9543=_0x3dd8ec,_0x420cf9=this[_0xcc9543(0x215)][_0xcc9543(0x37a)](),_0x902572=this['_univerInstanceService'][_0xcc9543(0x20d)](_0x3123ef[_0xcc9543(0x355)][_0xcc9543(0x28f)])['getActiveSheet']()['getSheetId']();if(_0x420cf9)return this[_0xcc9543(0x272)](_0x902572,_0x420cf9[_0xcc9543(0x3a6)]);}[_0x3dd8ec(0x272)](_0x3a2df5,_0xeb4ab6){const _0x5582e9=_0x3dd8ec,_0x46dd76=this[_0x5582e9(0x30a)]['getCurrentUnitForType'](_0x3123ef[_0x5582e9(0x355)][_0x5582e9(0x28f)]),_0x40a58b=_0x46dd76[_0x5582e9(0x386)](_0x3a2df5),_0x219869=this[_0x5582e9(0x217)],_0x2bbf60=_0x46dd76['getUnitId'](),_0x543c2f=this['paperSize'],{top:_0x469f27,right:_0x572569,bottom:_0x1d1520,left:_0x1092db}=this[_0x5582e9(0x268)];if(_0x543c2f['h']-=_0x469f27+_0x1d1520,_0x543c2f['w']-=_0x1092db+_0x572569,_0xeb4ab6['startRow']>-0x1&&_0xeb4ab6[_0x5582e9(0x2f6)]>-0x1){const _0x1f0bb9=this[_0x5582e9(0x274)][_0x5582e9(0x203)]({'unitId':_0x46dd76[_0x5582e9(0x2a7)](),'sheetId':_0x3a2df5});if(!_0x40a58b||!_0x1f0bb9)return null;let _0x4d4a58=_0xeb4ab6[_0x5582e9(0x3a1)];const _0x4abaca=_0xeb4ab6['endRow'];let _0x3a69a3=_0xeb4ab6[_0x5582e9(0x2f6)];const _0x8c6e77=_0xeb4ab6['endColumn'],_0x339ae3=_0x40a58b[_0x5582e9(0x275)](),_0x5a6300=_0x252113(this[_0x5582e9(0x21b)](_0x1f0bb9,_0xeb4ab6,_0x339ae3));let _0x1620ba=-0x1,_0x9fcc9f=0x0,_0x46a39c=-0x1,_0x4ec94f=0x0;const _0x198f08=_0x1f0bb9[_0x5582e9(0x359)],_0x28547e=_0x1f0bb9[_0x5582e9(0x201)];if(_0x339ae3[_0x5582e9(0x29f)]&&_0x219869[_0x5582e9(0x27b)][_0x5582e9(0x258)](_0x53bb34[_0x5582e9(0x337)])){if(_0x8c6e77>=_0x339ae3[_0x5582e9(0x2f6)]){const _0xc99ce8=_0x5a6300*(_0x198f08[_0x339ae3[_0x5582e9(0x2f6)]-0x1]-(_0x198f08[_0x339ae3[_0x5582e9(0x2f6)]-_0x339ae3[_0x5582e9(0x29f)]-0x1]||0x0));_0xc99ce8<_0x543c2f['w']&&(_0x46a39c=_0x339ae3[_0x5582e9(0x2f6)],_0x4ec94f=_0x339ae3[_0x5582e9(0x29f)],_0x543c2f['w']-=_0xc99ce8);}else{const _0x214502=_0x8c6e77+0x1,_0xc61ff3=_0x8c6e77+0x1-(_0x339ae3['startColumn']-_0x339ae3['xSplit']),_0x44fe50=_0x5a6300*(_0x198f08[_0x46a39c-0x1]-(_0x198f08[_0x46a39c-_0x4ec94f]-0x1||0x0));_0x44fe50<_0x543c2f['w']&&(_0x46a39c=_0x214502,_0x4ec94f=_0xc61ff3,_0x543c2f['w']-=_0x44fe50);}}if(_0x3a69a3=Math[_0x5582e9(0x270)](_0x46a39c,_0x3a69a3),_0x339ae3[_0x5582e9(0x2e2)]&&_0x219869['freeze']['includes'](_0x53bb34[_0x5582e9(0x25e)])){if(_0x4abaca>=_0x339ae3[_0x5582e9(0x3a1)]){const _0x506aca=_0x28547e[_0x339ae3['startRow']]-_0x28547e[_0x339ae3[_0x5582e9(0x3a1)]-_0x339ae3['ySplit']];_0x506aca<_0x543c2f['h']&&(_0x1620ba=_0x339ae3[_0x5582e9(0x3a1)],_0x9fcc9f=_0x339ae3['ySplit'],_0x543c2f['h']-=_0x506aca);}else _0x1620ba=_0x4abaca+0x1,_0x9fcc9f=_0x4abaca+0x1-(_0x339ae3[_0x5582e9(0x3a1)]-_0x339ae3[_0x5582e9(0x2e2)]),_0x543c2f['h']=_0x543c2f['h']-_0x28547e[_0x1620ba]-_0x28547e[_0x1620ba-_0x9fcc9f];}return _0x4d4a58=Math[_0x5582e9(0x270)](_0x1620ba,_0x4d4a58),{'unitId':_0x2bbf60,'subUnitId':_0x3a2df5,'range':{'startRow':_0x4d4a58,'endRow':_0x4abaca,'startColumn':_0x3a69a3,'endColumn':_0x8c6e77},'freeze':{'startRow':_0x1620ba,'startColumn':_0x46a39c,'xSplit':_0x4ec94f,'ySplit':_0x9fcc9f},'contentSize':_0x543c2f,'scale':_0x5a6300};}return{'unitId':_0x2bbf60,'subUnitId':_0x3a2df5,'range':{'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},'freeze':{'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0},'contentSize':_0x543c2f,'scale':0x1};}[_0x3dd8ec(0x21b)](_0x20e7b3,_0x231367,_0x42c6d3){const _0x1e0488=_0x3dd8ec,_0x2858d4=_0x20e7b3[_0x1e0488(0x359)],_0x42d0da=_0x20e7b3[_0x1e0488(0x201)],{xSplit:_0x1d64ea,ySplit:_0x5e12db,startColumn:_0xcfa85e,startRow:_0x14f68b}=_0x42c6d3;let {startRow:_0x2339b2,startColumn:_0x27bddc}=_0x231367;const {endColumn:_0x520dfb,endRow:_0x4f9a08}=_0x231367;_0x2339b2=_0x4f9a08<_0x14f68b?_0x2339b2:Math['max'](_0x14f68b,_0x2339b2),_0x27bddc=_0x520dfb<_0xcfa85e?_0x27bddc:Math['max'](_0xcfa85e,_0x27bddc);const {scale:_0x12dc8a,customScale:_0x15df43}=this[_0x1e0488(0x217)],_0x121e1a=this[_0x1e0488(0x220)],_0x380236=this[_0x1e0488(0x268)],_0x17c0bf=_0x1d64ea>0x0?_0x2858d4[_0xcfa85e-0x1]-(_0x2858d4[_0xcfa85e-_0x1d64ea-0x1]||0x0):0x0,_0x5e4e3e=_0x5e12db>0x0?_0x42d0da[_0x14f68b-0x1]-(_0x42d0da[_0x14f68b-_0x5e12db-0x1]||0x0):0x0,_0x2d6275=_0x42d0da[_0x4f9a08]-(_0x42d0da[_0x2339b2-0x1]||0x0),_0x28178e=_0x2858d4[_0x520dfb]-(_0x2858d4[_0x27bddc-0x1]||0x0),_0x42bc42=_0x2d6275+_0x5e4e3e,_0x27ddb8=_0x28178e+_0x17c0bf;switch(_0x12dc8a){case _0x15a8e6[_0x1e0488(0x2b5)]['Custom']:return _0x15df43;case _0x15a8e6[_0x1e0488(0x2b5)]['FitWidth']:return Math[_0x1e0488(0x36a)](0x1,(_0x121e1a['w']-_0x380236[_0x1e0488(0x3ac)]-_0x380236[_0x1e0488(0x381)])/_0x27ddb8);case _0x15a8e6[_0x1e0488(0x2b5)][_0x1e0488(0x318)]:return Math[_0x1e0488(0x36a)](0x1,(_0x121e1a['h']-_0x380236[_0x1e0488(0x32a)]-_0x380236[_0x1e0488(0x3a3)])/_0x42bc42);case _0x15a8e6[_0x1e0488(0x2b5)][_0x1e0488(0x322)]:return Math[_0x1e0488(0x36a)](0x1,(_0x121e1a['w']-_0x380236[_0x1e0488(0x3ac)]-_0x380236['right'])/_0x27ddb8,(_0x121e1a['h']-_0x380236[_0x1e0488(0x32a)]-_0x380236[_0x1e0488(0x3a3)])/_0x42bc42);default:return 0x1;}}[_0x3dd8ec(0x26d)](){const _0x45b32b=_0x3dd8ec,{area:_0x5549fb,subUnitIds:_0x13c27f}=this[_0x45b32b(0x217)],_0x32961f=this['_univerInstanceService'][_0x45b32b(0x20d)](_0x3123ef[_0x45b32b(0x355)]['UNIVER_SHEET']);switch(_0x5549fb){case _0x3cc45b['CurrentSheet']:{const _0x122110=_0x32961f[_0x45b32b(0x39d)]()[_0x45b32b(0x2a3)]();if(_0x122110!=null){const _0x492ed9=this[_0x45b32b(0x3ab)](_0x122110);return _0x492ed9?[_0x492ed9]:[this['_calculateCurrentSelectionRange']()];}return[];}case _0x3cc45b['CurrentSelection']:return[this[_0x45b32b(0x26c)]()];default:return(_0x13c27f[_0x45b32b(0x202)]?_0x13c27f:_0x32961f[_0x45b32b(0x2a9)]()['map'](_0x4b02c1=>_0x4b02c1['getSheetId']()))['map'](_0x240c3b=>this[_0x45b32b(0x3ab)](_0x240c3b))[_0x45b32b(0x265)](Boolean);}}[_0x3dd8ec(0x292)](_0x461167){const _0x411d4a=_0x3dd8ec,{subUnitId:_0x3f0047,range:_0x2870e3,freeze:_0x36708c,unitId:_0x31b807,scale:_0x3ec3ca,contentSize:_0x28ad7d}=_0x461167,_0x569ad7=this[_0x411d4a(0x274)][_0x411d4a(0x203)]({'unitId':_0x31b807,'sheetId':_0x3f0047});if(!_0x569ad7)return;const {rowHeightAccumulation:_0x168940,columnWidthAccumulation:_0x4bf325}=_0x569ad7,{w:_0x46a98d,h:_0x5d6b1f}=_0x28ad7d,{startRow:_0x3a221c,startColumn:_0x5a0492,endColumn:_0x194cbf,endRow:_0x261d28}=_0x2870e3,_0x3d87ac=_0x409560=>{let _0x3574d7=_0x409560;const _0x1356be=_0x409560===0x0?0x0:_0x168940[_0x409560-0x1];for(;_0x3574d7<_0x261d28;){const _0xc66487=(_0x168940[_0x3574d7]-_0x1356be)*_0x3ec3ca,_0x47d6c9=(_0x168940[_0x3574d7+0x1]-_0x1356be)*_0x3ec3ca;if(_0x3574d7++,_0xc66487>_0x5d6b1f||_0xc66487<_0x5d6b1f&&_0x47d6c9>_0x5d6b1f)return{'startRow':_0x409560,'endRow':_0x3574d7-0x1};}return{'startRow':_0x409560,'endRow':_0x3574d7};},_0x38596c=_0x228ae1=>{let _0x37d257=_0x228ae1;const _0x2938c0=_0x228ae1===0x0?0x0:_0x4bf325[_0x228ae1-0x1];for(;_0x37d257<_0x194cbf;){const _0x552677=(_0x4bf325[_0x37d257]-_0x2938c0)*_0x3ec3ca,_0x2aa67b=(_0x4bf325[_0x37d257+0x1]-_0x2938c0)*_0x3ec3ca;if(_0x37d257++,_0x552677<_0x46a98d&&_0x2aa67b>_0x46a98d||_0x552677>=_0x46a98d)return{'startColumn':_0x228ae1,'endColumn':_0x37d257-0x1};}return{'startColumn':_0x228ae1,'endColumn':_0x37d257};},_0x45b727=[];let _0x389f96=_0x3a221c;for(;_0x389f96<=_0x261d28;){const _0x2ce4ad=_0x3d87ac(_0x389f96);_0x45b727[_0x411d4a(0x2da)](_0x2ce4ad),_0x389f96=_0x2ce4ad[_0x411d4a(0x248)]+0x1;}const _0x403d8e=[];let _0x1f21f1=_0x5a0492;for(;_0x1f21f1<=_0x194cbf;){const _0x58f744=_0x38596c(_0x1f21f1);_0x403d8e[_0x411d4a(0x2da)](_0x58f744),_0x1f21f1=_0x58f744[_0x411d4a(0x36b)]+0x1;}const _0x362b44=[];for(let _0x4304f9=0x0;_0x4304f9<_0x45b727[_0x411d4a(0x202)];_0x4304f9++)for(let _0x6d5828=0x0;_0x6d5828<_0x403d8e[_0x411d4a(0x202)];_0x6d5828++)_0x362b44[_0x411d4a(0x2da)]({..._0x45b727[_0x4304f9],..._0x403d8e[_0x6d5828]});return{'unitId':_0x31b807,'subUnitId':_0x3f0047,'pages':_0x362b44,'freeze':_0x36708c,'scale':_0x3ec3ca};}};_0x27b8dd=_0x4b3573([_0x4377b4(0x0,_0x3123ef[_0x3dd8ec(0x33d)]),_0x4377b4(0x1,_0x51bc42[_0x3dd8ec(0x228)](_0x4a04ff[_0x3dd8ec(0x382)])),_0x4377b4(0x2,_0x51bc42[_0x3dd8ec(0x228)](_0xfb3985[_0x3dd8ec(0x20b)]))],_0x27b8dd);const _0xb63513='PRINT_PLUGIN_PRINT_COMPONENT',_0x2715b6=_0x3dd8ec(0x278),_0x3abcff=_0x3dd8ec(0x242),_0x3321c5={'id':_0x3dd8ec(0x2bd),'type':_0x3123ef[_0x3dd8ec(0x24f)][_0x3dd8ec(0x284)],'handler':_0x5299b7=>{const _0x430775=_0x3dd8ec;var _0x191f52;const _0x5d19aa=_0x5299b7[_0x430775(0x2e1)](_0x53d385[_0x430775(0x353)]),_0x26be57=_0x5299b7[_0x430775(0x2e1)](_0x3123ef['IPermissionService']),_0x206d81=_0x5299b7[_0x430775(0x2e1)](_0x3123ef[_0x430775(0x365)]),_0x41cffc=_0x5299b7[_0x430775(0x2e1)](_0x3123ef[_0x430775(0x33d)]),_0x2f3326=_0x5299b7[_0x430775(0x2e1)](_0x53d385[_0x430775(0x236)]),_0xe53ad3=_0x41cffc[_0x430775(0x20d)](_0x3123ef[_0x430775(0x355)][_0x430775(0x28f)])[_0x430775(0x2a7)]();if(!((_0x191f52=_0x26be57[_0x430775(0x317)](new _0xfb3985['WorkbookPrintPermission'](_0xe53ad3)['id']))!=null?_0x191f52:!0x1)){const _0x4d225d={'id':_0x2715b6,'title':{'title':''},'children':{'label':_0x3abcff,'errorMsg':_0x206d81['t'](_0x430775(0x33c))},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x2f3326[_0x430775(0x380)](_0x2715b6),'className':'sheet-permission-user-dialog'};throw _0x2f3326['open'](_0x4d225d),new Error(_0x430775(0x2fa));}return _0x5d19aa[_0x430775(0x34d)](),!0x0;}},_0x43a0a5={'type':_0x3123ef[_0x3dd8ec(0x24f)]['OPERATION'],'id':_0x3dd8ec(0x2e8),'handler'(_0x239210){const _0x305a2a=_0x3dd8ec,_0x1cf3b0=_0x239210[_0x305a2a(0x2e1)](_0x53d385[_0x305a2a(0x353)]),_0xb99b4e=_0x239210[_0x305a2a(0x2e1)](_0x5868af);return _0x1cf3b0[_0x305a2a(0x380)](),_0xb99b4e[_0x305a2a(0x229)](),!0x0;}},_0x2a2ee2={'type':_0x3123ef[_0x3dd8ec(0x24f)][_0x3dd8ec(0x284)],'id':_0x3dd8ec(0x28a),'handler'(){return!0x0;}},_0x363d39=_0x3dd8ec(0x21d);class _0x40625d extends _0x3123ef[_0x3dd8ec(0x352)]{constructor(_0x45a34a,_0x242b14,_0x12a3f9=!0x0,_0x157e52=0x1){const _0x4c0a05=_0x3dd8ec;super(),_0x53715c(this,_0x4c0a05(0x354)),_0x53715c(this,_0x4c0a05(0x293)),_0x53715c(this,'_key'),_0x53715c(this,_0x4c0a05(0x28b)),_0x53715c(this,'_viewLeft'),_0x53715c(this,_0x4c0a05(0x35b)),_0x53715c(this,_0x4c0a05(0x261)),_0x53715c(this,'_container',document[_0x4c0a05(0x368)]('div')),_0x53715c(this,_0x4c0a05(0x351)),_0x53715c(this,'_skeleton'),_0x53715c(this,_0x4c0a05(0x30a)),_0x53715c(this,_0x4c0a05(0x399),!0x0),_0x53715c(this,_0x4c0a05(0x27d)),_0x53715c(this,_0x4c0a05(0x323),0x0),_0x53715c(this,_0x4c0a05(0x23d),0x0),(this[_0x4c0a05(0x32e)]=_0x45a34a,this[_0x4c0a05(0x2de)]=_0x242b14,this['_isPreview']=_0x12a3f9,this[_0x4c0a05(0x35e)]=_0x157e52);const {unitId:_0x5d1043,subUnitId:_0x8adbd1}=this['_config'];this[_0x4c0a05(0x23b)]=_0x5d1043+'_'+_0x8adbd1,this[_0x4c0a05(0x351)]=this[_0x4c0a05(0x32e)][_0x4c0a05(0x2e1)](_0x5868af),this[_0x4c0a05(0x30a)]=this[_0x4c0a05(0x32e)][_0x4c0a05(0x2e1)](_0x3123ef[_0x4c0a05(0x33d)]);const _0x18b3ba=this['_accessor'][_0x4c0a05(0x2e1)](_0x4a04ff['SheetSkeletonManagerService'])[_0x4c0a05(0x203)]({'unitId':_0x5d1043,'sheetId':_0x8adbd1});this['_skeleton']=_0x18b3ba,this[_0x4c0a05(0x23e)]();}get[_0x3dd8ec(0x36d)](){const _0x4f4b8b=_0x3dd8ec;return this[_0x4f4b8b(0x23b)];}get[_0x3dd8ec(0x28e)](){const _0x13cdc1=_0x3dd8ec;return this[_0x13cdc1(0x354)];}get[_0x3dd8ec(0x27e)](){return this['_container'];}get[_0x3dd8ec(0x37e)](){const _0x14b320=_0x3dd8ec;return this[_0x14b320(0x351)][_0x14b320(0x2dd)];}get['_layoutConfig'](){const _0x3e2e5f=_0x3dd8ec;return this[_0x3e2e5f(0x351)][_0x3e2e5f(0x2c0)];}['dispose'](){const _0x160eec=_0x3dd8ec;var _0x2fa458;super[_0x160eec(0x31d)](),(_0x2fa458=this[_0x160eec(0x341)]['parentElement'])==null||_0x2fa458[_0x160eec(0x2c5)](this[_0x160eec(0x341)]);}get[_0x3dd8ec(0x2f4)](){const _0x5b83d1=_0x3dd8ec,{w:_0x4517fb,h:_0x32f642}=this['_sheetPrintManagerService']['paperSize'];return{'w':_0x4517fb*this[_0x5b83d1(0x35e)],'h':_0x32f642*this[_0x5b83d1(0x35e)]};}get[_0x3dd8ec(0x29a)](){const _0x49ef29=_0x3dd8ec,_0xb70b7a=this[_0x49ef29(0x351)][_0x49ef29(0x268)];return{'top':_0xb70b7a[_0x49ef29(0x32a)]*this[_0x49ef29(0x35e)],'bottom':_0xb70b7a['bottom']*this[_0x49ef29(0x35e)],'left':_0xb70b7a[_0x49ef29(0x3ac)]*this[_0x49ef29(0x35e)],'right':_0xb70b7a[_0x49ef29(0x381)]*this[_0x49ef29(0x35e)]};}['_initRenderer'](){const _0x3bc4f1=_0x3dd8ec,_0x38bcd0=this[_0x3bc4f1(0x2f4)],_0x2da858=this[_0x3bc4f1(0x2de)][_0x3bc4f1(0x325)]*this['_previewScale'],_0x5f01d7=this['_isPreview']?Math[_0x3bc4f1(0x270)](0x1,window[_0x3bc4f1(0x329)]):0x1;this[_0x3bc4f1(0x354)]=new _0xd3b10c[(_0x3bc4f1(0x26f))](_0x38bcd0['w'],_0x38bcd0['h'],_0x5f01d7,_0xd3b10c[_0x3bc4f1(0x282)][_0x3bc4f1(0x2e4)]),this[_0x3bc4f1(0x293)]=new _0xd3b10c[(_0x3bc4f1(0x28c))](this[_0x3bc4f1(0x23b)],this['_engine']),this[_0x3bc4f1(0x293)][_0x3bc4f1(0x325)](_0x2da858,_0x2da858),this[_0x3bc4f1(0x354)]['setContainer'](this[_0x3bc4f1(0x341)],this[_0x3bc4f1(0x306)]),this[_0x3bc4f1(0x35d)](),this['_addViewport'](),this[_0x3bc4f1(0x362)]({'dispose':()=>{const _0x396d46=_0x3bc4f1;this[_0x396d46(0x354)][_0x396d46(0x31d)](),this['_scene']['dispose']();}});}[_0x3dd8ec(0x349)](_0x4d0d89){const _0x40aac9=_0x3dd8ec;this[_0x40aac9(0x293)]['scale'](this[_0x40aac9(0x2de)][_0x40aac9(0x325)]*_0x4d0d89,this[_0x40aac9(0x2de)][_0x40aac9(0x325)]*_0x4d0d89),this[_0x40aac9(0x35e)]=_0x4d0d89,this[_0x40aac9(0x360)](!0x0);}[_0x3dd8ec(0x2ff)](_0x211e87){const _0x3c101f=_0x3dd8ec;this[_0x3c101f(0x2de)]=_0x211e87,this[_0x3c101f(0x360)](!0x0);}[_0x3dd8ec(0x360)](_0x3bb87d){const _0x53ccf0=_0x3dd8ec;this[_0x53ccf0(0x399)]=_0x3bb87d;}[_0x3dd8ec(0x35d)](){const _0x1324f8=_0x3dd8ec,_0x65182c=new _0xd3b10c[(_0x1324f8(0x269))](_0x1324f8(0x25f),this[_0x1324f8(0x37b)],!0x1);_0x65182c['isPrinting']=!0x0,this[_0x1324f8(0x293)][_0x1324f8(0x235)](_0x65182c),this['_spreadsheetObject']=_0x65182c;}[_0x3dd8ec(0x2db)](){const _0x3a67a9=_0x3dd8ec;this['_viewMain']=new _0xd3b10c[(_0x3a67a9(0x2d5))](_0x4a04ff[_0x3a67a9(0x31a)]['VIEW_MAIN'],this[_0x3a67a9(0x293)]),this[_0x3a67a9(0x388)]=new _0xd3b10c['Viewport'](_0x4a04ff[_0x3a67a9(0x31a)]['VIEW_MAIN_LEFT'],this[_0x3a67a9(0x293)]),this[_0x3a67a9(0x35b)]=new _0xd3b10c[(_0x3a67a9(0x2d5))](_0x4a04ff['VIEWPORT_KEY'][_0x3a67a9(0x2e0)],this[_0x3a67a9(0x293)]),this[_0x3a67a9(0x261)]=new _0xd3b10c[(_0x3a67a9(0x2d5))](_0x4a04ff[_0x3a67a9(0x31a)]['VIEW_MAIN_LEFT_TOP'],this[_0x3a67a9(0x293)]);}['_resizeViewport'](){const _0x216652=_0x3dd8ec,{freeze:_0x26b673,range:_0x47661d}=this[_0x216652(0x2de)],{xSplit:_0x431c3e,ySplit:_0x3f980f,startColumn:_0x4c0003,startRow:_0xfa89f9}=_0x26b673,{rowHeaderWidth:_0xd19c71,columnHeaderHeight:_0x3405bc}=this[_0x216652(0x37b)];this['_scene'][_0x216652(0x325)](this[_0x216652(0x2de)][_0x216652(0x325)]*this[_0x216652(0x35e)],this[_0x216652(0x2de)][_0x216652(0x325)]*this[_0x216652(0x35e)]);const _0x1d5c46=this[_0x216652(0x37b)][_0x216652(0x244)](_0xfa89f9-_0x3f980f,_0x4c0003-_0x431c3e),_0x3085df=this[_0x216652(0x37b)][_0x216652(0x244)](_0xfa89f9,_0x4c0003),_0x5d207e=_0x431c3e>0x0?_0x3085df[_0x216652(0x31e)]-_0x1d5c46[_0x216652(0x31e)]:0x0,_0x45a5dd=_0x3f980f>0x0?_0x3085df[_0x216652(0x3a4)]-_0x1d5c46['startY']:0x0,_0x575403={'startX':_0x431c3e>0x0?_0x1d5c46[_0x216652(0x31e)]:0x0,'endX':_0x431c3e>0x0?_0x3085df[_0x216652(0x31e)]:0x0,'startY':_0x3f980f>0x0?_0x1d5c46[_0x216652(0x3a4)]:0x0,'endY':_0x3f980f>0x0?_0x3085df[_0x216652(0x3a4)]:0x0},_0x4f81d5=this[_0x216652(0x37b)][_0x216652(0x244)](_0x47661d[_0x216652(0x3a1)],_0x47661d[_0x216652(0x2f6)]),_0x430ad2=this[_0x216652(0x293)][_0x216652(0x34f)](),_0x287e32=_0x1dfff3=>_0xd3b10c[_0x216652(0x3a0)](_0x1dfff3,_0x430ad2[_0x216652(0x367)]),_0x565d50=_0x1381d8=>_0xd3b10c[_0x216652(0x3a0)](_0x1381d8,_0x430ad2[_0x216652(0x288)]),_0x4be08e=this['_skeleton']['getNoMergeCellPositionByIndexWithNoHeader'](_0x47661d[_0x216652(0x248)],_0x47661d[_0x216652(0x36b)]),_0x4077f1=Math[_0x216652(0x270)](0x0,_0x287e32(_0x4be08e['endX'])-Math[_0x216652(0x270)](_0x4f81d5[_0x216652(0x31e)],_0x575403[_0x216652(0x37f)])),_0xfeca5=Math[_0x216652(0x270)](0x0,_0x565d50(_0x4be08e[_0x216652(0x251)])-_0x565d50(Math[_0x216652(0x270)](_0x4f81d5[_0x216652(0x3a4)],_0x575403[_0x216652(0x251)]))),_0x522dd1=0x1/Math[_0x216652(0x270)](_0x430ad2[_0x216652(0x367)],_0x430ad2[_0x216652(0x288)]),_0x5ca738=_0x5d207e+_0x4077f1+_0x522dd1,_0x44c79f=_0x45a5dd+_0xfeca5+_0x522dd1;this[_0x216652(0x323)]=_0x5ca738,this[_0x216652(0x23d)]=_0x44c79f;const _0x5d4636={'x':_0x5d207e,'y':_0x45a5dd},_0x2c2b23=_0x522dd1,_0x347e59=_0x522dd1,_0x2d8634={'x':_0x287e32(_0x4be08e[_0x216652(0x37f)])-_0x287e32(_0x4077f1)-_0x287e32(Math['max'](_0x4f81d5[_0x216652(0x31e)],_0x575403[_0x216652(0x37f)])),'y':_0x565d50(_0x4be08e[_0x216652(0x251)])-_0x565d50(_0xfeca5)-_0x565d50(Math[_0x216652(0x270)](_0x4f81d5[_0x216652(0x3a4)],_0x575403['endY']))};_0x431c3e>0x0&&_0x3f980f>0x0?(this[_0x216652(0x261)]['enable'](),this[_0x216652(0x261)][_0x216652(0x2ef)]({'top':0x0,'left':0x0,'height':_0x565d50(_0x5d4636['y']),'width':_0x287e32(_0x5d4636['x'])}),this[_0x216652(0x261)]['updateScroll']({'actualScrollX':_0x287e32(_0x575403[_0x216652(0x31e)])+_0x287e32(_0xd19c71),'actualScrollY':_0x565d50(_0x575403['startY'])+_0x565d50(_0x3405bc)})):this['_viewLeftTop'][_0x216652(0x255)](),_0x431c3e>0x0?(this[_0x216652(0x388)][_0x216652(0x2ad)](),this[_0x216652(0x388)][_0x216652(0x2ef)]({'top':_0x287e32(_0x5d4636['y']),'left':0x0,'height':_0x565d50(_0xfeca5)+_0x2c2b23+_0x2d8634['y'],'width':_0x287e32(_0x5d4636['x'])}),this['_viewLeft'][_0x216652(0x38d)]({'actualScrollX':_0x287e32(_0x575403['startX'])+_0x287e32(_0xd19c71),'actualScrollY':_0x565d50(_0x4f81d5[_0x216652(0x3a4)])+_0x565d50(_0x3405bc)-_0x565d50(_0x5d4636['y'])})):this[_0x216652(0x388)][_0x216652(0x255)](),_0x3f980f>0x0?(this['_viewTop'][_0x216652(0x2ad)](),this[_0x216652(0x35b)][_0x216652(0x2ef)]({'top':0x0,'left':_0x287e32(_0x5d4636['x']),'height':_0x565d50(_0x5d4636['y']),'width':_0x287e32(_0x4077f1)+_0x347e59+_0x2d8634['x']}),this[_0x216652(0x35b)][_0x216652(0x38d)]({'actualScrollX':_0x287e32(_0x4f81d5[_0x216652(0x31e)])+_0x287e32(_0xd19c71)-_0x287e32(_0x5d4636['x']),'actualScrollY':_0x565d50(_0x575403[_0x216652(0x3a4)])+_0x565d50(_0x3405bc)})):this['_viewTop'][_0x216652(0x255)](),this[_0x216652(0x28b)][_0x216652(0x2ef)]({'top':_0x565d50(_0x5d4636['y']),'left':_0x287e32(_0x5d4636['x']),'height':_0x565d50(_0xfeca5)+_0x2c2b23+_0x2d8634['y'],'width':_0x287e32(_0x4077f1)+_0x347e59+_0x2d8634['x']}),this[_0x216652(0x28b)]['updateScroll']({'actualScrollX':_0x287e32(_0x4f81d5[_0x216652(0x31e)])+_0x287e32(_0xd19c71)-_0x287e32(_0x5d4636['x']),'actualScrollY':_0x565d50(_0x4f81d5[_0x216652(0x3a4)])+_0x565d50(_0x3405bc)-_0x565d50(_0x5d4636['y'])});}[_0x3dd8ec(0x31c)](){const _0x43e2f2=_0x3dd8ec,_0x232e6d=this[_0x43e2f2(0x29a)],{vAlign:_0x34ef6a,hAlign:_0x219a86}=this[_0x43e2f2(0x37e)],_0xd43598=Math[_0x43e2f2(0x270)](this['_scene'][_0x43e2f2(0x367)],this[_0x43e2f2(0x293)][_0x43e2f2(0x288)]);let _0x39f757;switch(_0x219a86){case _0x15a8e6['PrintAlign'][_0x43e2f2(0x300)]:_0x39f757=_0x232e6d[_0x43e2f2(0x3ac)];break;case _0x15a8e6[_0x43e2f2(0x366)][_0x43e2f2(0x2f3)]:_0x39f757=this['_paperSize']['w']-this[_0x43e2f2(0x323)]*_0xd43598-_0x232e6d[_0x43e2f2(0x381)];break;default:_0x39f757=_0x232e6d['left']+(this['_paperSize']['w']-this['_totalWidth']*_0xd43598-_0x232e6d[_0x43e2f2(0x3ac)]-_0x232e6d[_0x43e2f2(0x381)])/0x2;break;}let _0x138e17;switch(_0x34ef6a){case _0x15a8e6[_0x43e2f2(0x366)][_0x43e2f2(0x300)]:_0x138e17=_0x232e6d['top'];break;case _0x15a8e6[_0x43e2f2(0x366)][_0x43e2f2(0x2f3)]:_0x138e17=this[_0x43e2f2(0x2f4)]['h']-this['_totalHeight']*_0xd43598-_0x232e6d[_0x43e2f2(0x3a3)];break;default:_0x138e17=(this[_0x43e2f2(0x2f4)]['h']-this[_0x43e2f2(0x23d)]*_0xd43598-_0x232e6d[_0x43e2f2(0x32a)]-_0x232e6d[_0x43e2f2(0x3a3)])/0x2+_0x232e6d['top'];break;}return{'offsetX':Math['round'](_0x39f757),'offsetY':Math[_0x43e2f2(0x2fd)](_0x138e17)};}[_0x3dd8ec(0x252)](){const _0x4fe246=_0x3dd8ec;this[_0x4fe246(0x213)]();}[_0x3dd8ec(0x29e)](){const _0x4a113c=_0x3dd8ec;this[_0x4a113c(0x399)]&&this[_0x4a113c(0x252)]();const _0x31a97b=this[_0x4a113c(0x354)][_0x4a113c(0x21a)]()[_0x4a113c(0x295)](),{gridlines:_0x24e928}=this[_0x4a113c(0x37e)],{offsetX:_0x5f17bb,offsetY:_0xbec2d9}=this[_0x4a113c(0x31c)]();this[_0x4a113c(0x27d)][_0x4a113c(0x2a1)](!_0x24e928),this[_0x4a113c(0x27d)][_0x4a113c(0x38c)](),this[_0x4a113c(0x293)][_0x4a113c(0x378)](),_0x31a97b[_0x4a113c(0x326)](),_0x31a97b['translateWithPrecision'](_0x5f17bb,_0xbec2d9),this[_0x4a113c(0x293)][_0x4a113c(0x246)](),_0x31a97b[_0x4a113c(0x2b3)]();}[_0x3dd8ec(0x204)](){const _0x49f996=_0x3dd8ec,_0x59c8ba=this[_0x49f996(0x30a)][_0x49f996(0x2a6)](this[_0x49f996(0x2de)][_0x49f996(0x308)]),_0x107eec=_0x59c8ba==null?void 0x0:_0x59c8ba[_0x49f996(0x386)](this[_0x49f996(0x2de)][_0x49f996(0x30f)]),{headerFooter:_0x395368}=this['_renderConfig'],{w:_0x1aa9e8,h:_0x5af4de}=this[_0x49f996(0x2f4)],_0x5648e2=this[_0x49f996(0x354)][_0x49f996(0x21a)]()[_0x49f996(0x295)]();if(!_0x59c8ba||!_0x107eec)return;_0x5648e2['save'](),_0x5648e2['font']=_0x49f996(0x294)+_0xd3b10c[_0x49f996(0x397)];const _0x41714b=0x13*this[_0x49f996(0x35e)],_0x19979e=0x14*this[_0x49f996(0x35e)];if(_0x395368[_0x49f996(0x258)](_0x1d4d39['Date'])||_0x395368[_0x49f996(0x258)](_0x1d4d39[_0x49f996(0x33e)])){let _0x92eb18=new Date()[_0x49f996(0x1f3)]();_0x395368[_0x49f996(0x258)](_0x1d4d39[_0x49f996(0x21e)])?_0x395368['includes'](_0x1d4d39['Time'])||(_0x92eb18=new Date()['toLocaleDateString']()):_0x92eb18=new Date()[_0x49f996(0x2a0)](),_0x5648e2[_0x49f996(0x350)](_0x92eb18,_0x41714b,_0x5af4de-_0x19979e);}_0x395368['forEach'](_0x2edea3=>{const _0x12f861=_0x49f996;switch(_0x2edea3){case _0x1d4d39[_0x12f861(0x36e)]:{const _0x1f4ed7=_0x59c8ba[_0x12f861(0x35c)](),_0x22eb98=_0x5648e2[_0x12f861(0x239)](_0x1f4ed7),_0x5e854f=_0x22eb98[_0x12f861(0x334)]+_0x22eb98[_0x12f861(0x22a)];_0x5648e2['fillText'](_0x1f4ed7,_0x41714b,_0x19979e+_0x5e854f);break;}case _0x1d4d39['WorksheetTitle']:{const _0x447cbe=_0x107eec['getName'](),_0x29011a=_0x5648e2[_0x12f861(0x239)](_0x447cbe),_0x1ab395=_0x29011a[_0x12f861(0x334)]+_0x29011a[_0x12f861(0x22a)];_0x5648e2[_0x12f861(0x350)](_0x447cbe,_0x1aa9e8-(_0x29011a[_0x12f861(0x22b)]+_0x41714b),_0x19979e+_0x1ab395);break;}case _0x1d4d39[_0x12f861(0x2d2)]:{const _0x3cc6fc=''+this[_0x12f861(0x2de)][_0x12f861(0x304)],_0x2fb010=_0x5648e2[_0x12f861(0x239)](_0x3cc6fc);_0x5648e2[_0x12f861(0x350)](_0x3cc6fc,_0x1aa9e8-(_0x2fb010['width']+_0x41714b),_0x5af4de-_0x19979e);break;}}}),_0x5648e2[_0x49f996(0x2b3)]();}[_0x3dd8ec(0x27a)](){const _0x721997=_0x3dd8ec;{const _0x2fd65c=this[_0x721997(0x32e)][_0x721997(0x2e1)](_0x3123ef[_0x721997(0x365)]),_0x324bbe=this[_0x721997(0x354)][_0x721997(0x21a)]()['getContext']();_0x324bbe[_0x721997(0x326)]();const _0x59ce1c=0x14*this[_0x721997(0x35e)];_0x324bbe[_0x721997(0x2eb)]=_0x721997(0x393),_0x324bbe[_0x721997(0x2e6)]=_0x721997(0x1f8)+_0xd3b10c[_0x721997(0x397)];const _0x55538a=_0x324bbe[_0x721997(0x239)](_0x2fd65c['t']('print.limit.waterMark')),_0xf55cb3=(this[_0x721997(0x2f4)]['w']-_0x55538a[_0x721997(0x22b)])/0x2,_0x22cf8e=_0x55538a['fontBoundingBoxAscent']+_0x55538a['fontBoundingBoxDescent'];_0x324bbe[_0x721997(0x350)](_0x2fd65c['t']('print.limit.waterMark'),_0xf55cb3,_0x59ce1c+_0x22cf8e),_0x324bbe['fillText'](_0x2fd65c['t'](_0x721997(0x233)),_0xf55cb3,this[_0x721997(0x2f4)]['h']-_0x59ce1c),_0x324bbe[_0x721997(0x2b3)]();}}['render'](){const _0x126b3b=_0x3dd8ec;this[_0x126b3b(0x354)][_0x126b3b(0x38f)](),this[_0x126b3b(0x29e)](),this[_0x126b3b(0x204)](),this[_0x126b3b(0x27a)]();}[_0x3dd8ec(0x339)](){const _0x4aed2f=_0x3dd8ec,_0xd87e72=this['engine'][_0x4aed2f(0x207)][_0x4aed2f(0x2cd)](()=>{const _0x52953d=_0x4aed2f;this[_0x52953d(0x246)]();});this[_0x4aed2f(0x362)]({'dispose':()=>_0xd87e72==null?void 0x0:_0xd87e72['dispose']()});}}function _0x18cee8(_0x33f056){const _0x42c37f=_0x3dd8ec,[_0x7e6294,_0x3d06a8]=_0x2f6828[_0x42c37f(0x298)]();return _0x2f6828[_0x42c37f(0x283)](()=>{const _0x208154=_0x42c37f;_0x33f056[_0x208154(0x240)](_0x3985f9=>{_0x3d06a8(()=>_0x3985f9);});},[]),_0x7e6294;}const _0x3b6828={'sheetsPrint':'univer-sheets-print','sheetsPrintLimit':_0x3dd8ec(0x209),'sheetsPrintHeader':_0x3dd8ec(0x25a),'sheetsPrintHeaderLeft':_0x3dd8ec(0x2a4),'sheetsPrintHeaderRight':_0x3dd8ec(0x2fc),'sheetsPrintContent':'univer-sheets-print-content','sheetsPrintContentPreview':'univer-sheets-print-content-preview','sheetsPrintContentPreviewPage':_0x3dd8ec(0x286),'sheetsPrintContentPreviewControl':_0x3dd8ec(0x29d),'sheetsPrintContentPreviewControlItem':'univer-sheets-print-content-preview-control-item','sheetsPrintContentSetting':_0x3dd8ec(0x2d1),'sheetsPrintContentSettingForm':_0x3dd8ec(0x2d4)},_0x4283df=0x31a,_0x9ce1b0=(_0x340833,_0x5a5630)=>{const _0x3566b3=_0x3dd8ec,_0x12b4b7=_0x2f6828[_0x3566b3(0x305)](!0x1);_0x2f6828['useEffect'](()=>{if(_0x12b4b7['current'])return _0x340833();_0x12b4b7['current']=!0x0;},_0x5a5630);},_0x4ab3e1=_0x45b116=>{const _0x45c53a=_0x3dd8ec,{config:_0x209cb3,previewScale:_0x1364f4}=_0x45b116,_0xf2b145=_0x45719b['useDependency'](_0x5868af),_0x28d87d=_0x45719b[_0x45c53a(0x398)](_0x51bc42[_0x45c53a(0x3a9)]),_0x345137=_0x2f6828[_0x45c53a(0x305)](null),_0x3c0a10=_0xf2b145[_0x45c53a(0x220)],_0x3b381a=_0x53d385['useObservable'](_0xf2b145['renderConfig$'],_0xf2b145[_0x45c53a(0x2dd)]),_0x4f7080=_0x53d385['useObservable'](_0xf2b145[_0x45c53a(0x2d8)],_0xf2b145[_0x45c53a(0x2c0)]),_0x361af8=Math[_0x45c53a(0x2fd)](_0x1364f4*(_0x4283df/_0x3c0a10['w'])*0xa)/0xa,[_0x2851e0]=_0x2f6828['useState'](()=>new _0x40625d(_0x28d87d,_0x209cb3,!0x0,_0x361af8));return _0x2f6828['useEffect'](()=>(_0x345137[_0x45c53a(0x2f5)]&&(_0x2851e0[_0x45c53a(0x27e)][_0x45c53a(0x1fe)][_0x45c53a(0x22b)]='100%',_0x2851e0[_0x45c53a(0x27e)][_0x45c53a(0x1fe)][_0x45c53a(0x22f)]=_0x45c53a(0x1fb),_0x345137[_0x45c53a(0x2f5)]['appendChild'](_0x2851e0[_0x45c53a(0x27e)])),_0x2851e0[_0x45c53a(0x246)](),_0x2851e0[_0x45c53a(0x339)](),()=>{const _0x101a0c=_0x45c53a;var _0x2a959f;_0x2851e0['dispose'](),(_0x2a959f=_0x345137['current'])==null||_0x2a959f[_0x101a0c(0x2c5)](_0x2851e0[_0x101a0c(0x27e)]);}),[_0x2851e0]),_0x9ce1b0(()=>{const _0x4c00c1=_0x45c53a;_0x2851e0[_0x4c00c1(0x246)]();},[_0x3b381a]),_0x9ce1b0(()=>{const _0xbf5fb9=_0x45c53a;_0x2851e0[_0xbf5fb9(0x349)](_0x361af8),_0x2851e0[_0xbf5fb9(0x28e)][_0xbf5fb9(0x2ef)](),_0x2851e0['render']();},[_0x361af8]),_0x9ce1b0(()=>{const _0x33fc7d=_0x45c53a;_0x2851e0[_0x33fc7d(0x2ff)](_0x209cb3),_0x2851e0[_0x33fc7d(0x246)]();},[_0x209cb3[_0x45c53a(0x27b)][_0x45c53a(0x3a1)],_0x209cb3[_0x45c53a(0x27b)][_0x45c53a(0x2f6)],_0x209cb3['freeze'][_0x45c53a(0x29f)],_0x209cb3[_0x45c53a(0x27b)][_0x45c53a(0x2e2)],_0x209cb3['range'][_0x45c53a(0x3a1)],_0x209cb3[_0x45c53a(0x3a6)][_0x45c53a(0x248)],_0x209cb3[_0x45c53a(0x3a6)][_0x45c53a(0x2f6)],_0x209cb3['range']['endColumn'],_0x209cb3[_0x45c53a(0x325)],_0x4f7080[_0x45c53a(0x34a)]]),_0x2f6828[_0x45c53a(0x368)](_0x45c53a(0x214),{'className':_0x3b6828[_0x45c53a(0x331)],'ref':_0x345137,'style':{'width':_0x3c0a10['w']*_0x361af8,'height':_0x3c0a10['h']*_0x361af8}});},_0x1c34d5=_0x2f6828[_0x3dd8ec(0x20f)](()=>{const _0x31e165=_0x3dd8ec,_0xe9ba66=_0x45719b[_0x31e165(0x398)](_0x5868af),_0x150955=_0x53d385[_0x31e165(0x281)](_0xe9ba66[_0x31e165(0x2d8)],_0xe9ba66[_0x31e165(0x2c0)]),_0x265729=_0x53d385[_0x31e165(0x281)](_0xe9ba66[_0x31e165(0x32f)],_0xe9ba66[_0x31e165(0x2dd)]),_0x1e06cc=_0x45719b[_0x31e165(0x398)](_0x3123ef['LocaleService']),_0x3eb977=_0x45719b[_0x31e165(0x398)](_0x3123ef['IUniverInstanceService'])['getCurrentUnitForType'](_0x3123ef[_0x31e165(0x355)]['UNIVER_SHEET']),_0x3fea67=_0x3eb977[_0x31e165(0x2a9)](),_0x1e1ff6=_0x3eb977[_0x31e165(0x39d)]()['getFreeze'](),_0x56d2e4=_0x150955[_0x31e165(0x225)]!==_0x3cc45b[_0x31e165(0x396)]&&_0x1e1ff6[_0x31e165(0x29f)]<=0x0,_0x41c0cf=_0x150955[_0x31e165(0x225)]!==_0x3cc45b[_0x31e165(0x396)]&&_0x1e1ff6[_0x31e165(0x2e2)]<=0x0;return _0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x374)],null,_0x2f6828['createElement'](_0x31e165(0x214),{'className':_0x3b6828[_0x31e165(0x345)]},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x2f9))},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x346)],{'style':{'width':_0x31e165(0x1fb)},'value':''+_0x150955['area'],'onChange':_0x550de2=>{const _0x3ff2b0=_0x31e165;_0x550de2===_0x3cc45b[_0x3ff2b0(0x396)]?_0xe9ba66[_0x3ff2b0(0x291)]({'area':_0x550de2,'subUnitIds':_0x3fea67[_0x3ff2b0(0x2ba)](_0x2610d5=>_0x2610d5[_0x3ff2b0(0x2a3)]())}):_0xe9ba66[_0x3ff2b0(0x291)]({'area':_0x550de2});},'options':[{'label':_0x1e06cc['t']('print.area.currentSheet'),'value':_0x3cc45b['CurrentSheet']},{'label':_0x1e06cc['t'](_0x31e165(0x2cb)),'value':_0x3cc45b[_0x31e165(0x396)]},{'label':_0x1e06cc['t'](_0x31e165(0x289)),'value':_0x3cc45b[_0x31e165(0x340)]}]})),_0x150955['area']===_0x3cc45b[_0x31e165(0x396)]?_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t']('print.selection.title')},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x346)],{'style':{'width':_0x31e165(0x1fb)},'value':_0x31e165(0x33a),'onChange':_0x5459ef=>{_0xe9ba66['updateLayoutConfig']({'subUnitIds':_0x5459ef});},'options':[{'label':_0x150955[_0x31e165(0x24b)][_0x31e165(0x202)]===_0x3fea67[_0x31e165(0x202)]||_0x150955['subUnitIds'][_0x31e165(0x202)]===0x0?_0x1e06cc['t'](_0x31e165(0x37c)):''+_0x150955[_0x31e165(0x24b)][_0x31e165(0x202)]+_0x1e06cc['t'](_0x31e165(0x2d7)),'value':_0x31e165(0x33a)}],'dropdownRender':()=>_0x2f6828[_0x31e165(0x368)](_0x31e165(0x214),{'style':{'height':0xc8}},_0x2f6828['createElement'](_0x32f308[_0x31e165(0x374)],null,_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x222)],{'value':_0x150955[_0x31e165(0x24b)],'onChange':_0x91c6b8=>{const _0x4e3b6c=_0x31e165,_0x1748e0=new Set(_0x91c6b8);if(_0x1748e0[_0x4e3b6c(0x2b2)]===0x0)_0xe9ba66[_0x4e3b6c(0x291)]({'subUnitIds':_0x3fea67['map'](_0x4f9f03=>_0x4f9f03[_0x4e3b6c(0x2a3)]())});else{const _0x21e30e=[];_0x3fea67['forEach'](_0x126187=>{const _0x1bdfc9=_0x4e3b6c,_0x111ffd=_0x126187[_0x1bdfc9(0x2a3)]();_0x1748e0[_0x1bdfc9(0x328)](_0x111ffd)&&_0x21e30e[_0x1bdfc9(0x2da)](_0x111ffd);}),_0xe9ba66['updateLayoutConfig']({'subUnitIds':_0x21e30e});}},'style':{'display':_0x31e165(0x357),'flexDirection':_0x31e165(0x30c),'padding':0xc}},_0x3fea67[_0x31e165(0x2ba)](_0x485f53=>_0x2f6828['createElement'](_0x32f308[_0x31e165(0x25c)],{'key':_0x485f53['getSheetId'](),'value':_0x485f53['getSheetId']()},_0x485f53[_0x31e165(0x35c)]())))))})):null,_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x26a))},_0x2f6828['createElement'](_0x32f308['Select'],{'style':{'width':_0x31e165(0x1fb)},'value':_0x150955['paperSize'],'onChange':_0x1f61c5=>{const _0x399fa7=_0x31e165;_0xe9ba66[_0x399fa7(0x291)]({'paperSize':_0x1f61c5});},'options':[{'label':_0x1e06cc['t'](_0x31e165(0x379)),'value':_0x15a8e6['PrintPaperSize']['Letter']},{'label':_0x1e06cc['t']('print.size.tabloid'),'value':_0x15a8e6['PrintPaperSize'][_0x31e165(0x2fe)]},{'label':_0x1e06cc['t'](_0x31e165(0x35f)),'value':_0x15a8e6[_0x31e165(0x237)][_0x31e165(0x247)]},{'label':_0x1e06cc['t'](_0x31e165(0x313)),'value':_0x15a8e6[_0x31e165(0x237)]['Statement']},{'label':_0x1e06cc['t'](_0x31e165(0x38e)),'value':_0x15a8e6[_0x31e165(0x237)][_0x31e165(0x205)]},{'label':_0x1e06cc['t']('print.size.folio'),'value':_0x15a8e6[_0x31e165(0x237)][_0x31e165(0x257)]},{'label':_0x1e06cc['t'](_0x31e165(0x30b)),'value':_0x15a8e6[_0x31e165(0x237)]['A3']},{'label':_0x1e06cc['t'](_0x31e165(0x375)),'value':_0x15a8e6['PrintPaperSize']['A4']},{'label':_0x1e06cc['t'](_0x31e165(0x31b)),'value':_0x15a8e6[_0x31e165(0x237)]['A5']},{'label':_0x1e06cc['t'](_0x31e165(0x24c)),'value':_0x15a8e6['PrintPaperSize']['B4']},{'label':_0x1e06cc['t'](_0x31e165(0x330)),'value':_0x15a8e6[_0x31e165(0x237)]['B5']}]})),_0x2f6828['createElement'](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t']('print.margin.title')},_0x2f6828[_0x31e165(0x368)](_0x32f308['Select'],{'style':{'width':_0x31e165(0x1fb)},'value':_0x150955['margin'],'onChange':_0x5e57a3=>{_0xe9ba66['updateLayoutConfig']({'margin':_0x5e57a3});},'options':[{'label':_0x1e06cc['t'](_0x31e165(0x1ff)),'value':_0x15a8e6[_0x31e165(0x267)]['Normal']},{'label':_0x1e06cc['t'](_0x31e165(0x324)),'value':_0x15a8e6[_0x31e165(0x267)][_0x31e165(0x2cf)]},{'label':_0x1e06cc['t']('print.margin.wide'),'value':_0x15a8e6[_0x31e165(0x267)][_0x31e165(0x277)]}]})),_0x2f6828[_0x31e165(0x368)](_0x32f308['FormLayout'],{'label':_0x1e06cc['t']('print.orientation.title')},_0x2f6828['createElement'](_0x32f308['RadioGroup'],{'value':_0x150955[_0x31e165(0x2e5)],'onChange':_0x7b2629=>{const _0x42a5e6=_0x31e165;_0xe9ba66[_0x42a5e6(0x291)]({'direction':_0x7b2629});}},_0x2f6828['createElement'](_0x32f308['Radio'],{'value':_0x15a8e6[_0x31e165(0x245)][_0x31e165(0x39b)]},_0x1e06cc['t'](_0x31e165(0x35a))),_0x2f6828['createElement'](_0x32f308[_0x31e165(0x2b0)],{'value':_0x15a8e6[_0x31e165(0x245)]['Landscape']},_0x1e06cc['t'](_0x31e165(0x364))))),_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x234))},_0x2f6828['createElement'](_0x32f308[_0x31e165(0x346)],{'style':{'width':_0x31e165(0x1fb)},'value':_0x150955[_0x31e165(0x325)],'onChange':_0x37e858=>{_0xe9ba66['updateLayoutConfig']({'scale':_0x37e858});},'options':[{'label':_0x1e06cc['t'](_0x31e165(0x336)),'value':_0x15a8e6['PrintScale'][_0x31e165(0x2b1)]},{'label':_0x1e06cc['t'](_0x31e165(0x33f)),'value':_0x15a8e6[_0x31e165(0x2b5)][_0x31e165(0x206)]},{'label':_0x1e06cc['t']('print.scale.fitHeight'),'value':_0x15a8e6[_0x31e165(0x2b5)]['FitHeight']},{'label':_0x1e06cc['t'](_0x31e165(0x383)),'value':_0x15a8e6[_0x31e165(0x2b5)][_0x31e165(0x322)]}]})),_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x211))},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x25c)],{'checked':_0x265729[_0x31e165(0x369)],'onChange':_0x3c11fc=>{const _0x112aa1=_0x31e165;_0xe9ba66[_0x112aa1(0x32c)]({'gridlines':_0x3c11fc});}},_0x1e06cc['t'](_0x31e165(0x23f)))),_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t']('print.align.title')},_0x2f6828[_0x31e165(0x368)](_0x31e165(0x214),{'style':{'width':'100%','display':'flex'}},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x346)],{'style':{'marginRight':0x4,'flex':0x1},'value':_0x265729[_0x31e165(0x2c1)],'onChange':_0x2e3f50=>{const _0x5314fb=_0x31e165;_0xe9ba66[_0x5314fb(0x32c)]({'hAlign':_0x2e3f50});},'options':[{'label':_0x1e06cc['t'](_0x31e165(0x33b)),'value':_0x15a8e6[_0x31e165(0x366)][_0x31e165(0x361)]},{'label':_0x1e06cc['t'](_0x31e165(0x296)),'value':_0x15a8e6[_0x31e165(0x366)][_0x31e165(0x300)]},{'label':_0x1e06cc['t'](_0x31e165(0x394)),'value':_0x15a8e6[_0x31e165(0x366)][_0x31e165(0x2f3)]}]}),_0x2f6828['createElement'](_0x32f308[_0x31e165(0x346)],{'style':{'marginLeft':0x4,'flex':0x1},'value':_0x265729[_0x31e165(0x392)],'onChange':_0x56d752=>{const _0x4967a8=_0x31e165;_0xe9ba66[_0x4967a8(0x32c)]({'vAlign':_0x56d752});},'options':[{'label':_0x1e06cc['t'](_0x31e165(0x2b4)),'value':_0x15a8e6[_0x31e165(0x366)]['Start']},{'label':_0x1e06cc['t']('print.align.vertical.end'),'value':_0x15a8e6[_0x31e165(0x366)]['End']},{'label':_0x1e06cc['t'](_0x31e165(0x311)),'value':_0x15a8e6['PrintAlign'][_0x31e165(0x361)]}]}))),_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x2e3))},_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x222)],{'value':_0x265729[_0x31e165(0x26b)],'onChange':_0x5348bb=>{_0xe9ba66['updateRenderConfig']({'headerFooter':_0x5348bb});},'style':{'display':'flex','flexDirection':_0x31e165(0x30c)}},_0x2f6828['createElement'](_0x32f308[_0x31e165(0x25c)],{'value':_0x1d4d39[_0x31e165(0x2d2)]},_0x1e06cc['t']('print.headerFooter.page')),_0x2f6828[_0x31e165(0x368)](_0x32f308['Checkbox'],{'value':_0x1d4d39[_0x31e165(0x36e)]},_0x1e06cc['t']('print.headerFooter.workbook')),_0x2f6828['createElement'](_0x32f308[_0x31e165(0x25c)],{'value':_0x1d4d39['WorksheetTitle']},_0x1e06cc['t'](_0x31e165(0x2c4))),_0x2f6828[_0x31e165(0x368)](_0x32f308['Checkbox'],{'value':_0x1d4d39[_0x31e165(0x21e)]},_0x1e06cc['t'](_0x31e165(0x2b6))),_0x2f6828[_0x31e165(0x368)](_0x32f308['Checkbox'],{'value':_0x1d4d39[_0x31e165(0x33e)]},_0x1e06cc['t'](_0x31e165(0x2f8))))),_0x2f6828[_0x31e165(0x368)](_0x32f308[_0x31e165(0x385)],{'label':_0x1e06cc['t'](_0x31e165(0x34e))},_0x2f6828[_0x31e165(0x368)](_0x32f308['CheckboxGroup'],{'value':_0x150955[_0x31e165(0x27b)],'onChange':_0x237818=>{_0xe9ba66['updateLayoutConfig']({'freeze':_0x237818});},'style':{'display':_0x31e165(0x357),'flexDirection':'column'}},_0x2f6828[_0x31e165(0x368)](_0x32f308['Checkbox'],{'disabled':_0x41c0cf,'value':_0x53bb34[_0x31e165(0x25e)]},_0x1e06cc['t'](_0x31e165(0x253))),_0x2f6828['createElement'](_0x32f308['Checkbox'],{'disabled':_0x56d2e4,'value':_0x53bb34['Column']},_0x1e06cc['t']('print.freeze.column'))))));}),_0x5e5048=0.1,_0x3d1cdc=0.5,_0x4fd480=0x2,_0x5ec956=()=>{const _0x5d627e=_0x3dd8ec,_0x184a76=_0x45719b[_0x5d627e(0x398)](_0x5868af),_0x57da37=_0x45719b[_0x5d627e(0x398)](_0x3123ef[_0x5d627e(0x223)]),_0x4d90b7=_0x53d385['useObservable'](_0x184a76[_0x5d627e(0x333)],[]),[_0x51c8f1,_0x353328]=_0x2f6828[_0x5d627e(0x298)](0x1),_0x32ad7a=_0x2f6828[_0x5d627e(0x305)](0x0),_0x5baf29=_0x45719b[_0x5d627e(0x398)](_0x3123ef[_0x5d627e(0x33d)]),_0x19e6d6=_0x45719b['useDependency'](_0x3123ef[_0x5d627e(0x365)]),_0x50ede8=_0x45719b['useDependency'](_0x51bc42[_0x5d627e(0x3a9)]),_0x12a051=_0x18cee8(import(_0x5d627e(0x256))[_0x5d627e(0x240)](_0x9773cf=>_0x9773cf[_0x5d627e(0x370)]));_0x2f6828[_0x5d627e(0x283)](()=>{const _0x26470e=_0x5d627e;var _0x8e587c;if(!_0x12a051)return;const _0x3dddb5=_0x5baf29[_0x26470e(0x20d)](_0x3123ef[_0x26470e(0x355)][_0x26470e(0x28f)])['getUnitId'](),_0x3cdd64=_0x50ede8[_0x26470e(0x2e1)](_0x12a051,_0x51bc42['Quantity'][_0x26470e(0x299)]),_0x5e5fc6=(_0x8e587c=_0x3cdd64==null?void 0x0:_0x3cdd64['getCollabEntity'](_0x3dddb5))==null?void 0x0:_0x8e587c[_0x26470e(0x2ae)]();return()=>{const _0x1dbc2c=_0x26470e;_0x5e5fc6==null||_0x5e5fc6[_0x1dbc2c(0x31d)]();};},[_0x12a051,_0x50ede8,_0x5baf29]);const _0x2615bb=_0x2f6828[_0x5d627e(0x312)](()=>{const _0x37a99e=_0x5d627e;let _0x108739=0x1;return _0x32ad7a[_0x37a99e(0x2f5)]++,_0x4d90b7['map'](_0x511655=>_0x511655[_0x37a99e(0x216)][_0x37a99e(0x2ba)]((_0x343dc8,_0x2451ae)=>({'page':_0x108739++,..._0x511655,'range':_0x343dc8,'subPage':_0x2451ae})))[_0x37a99e(0x290)]();},[_0x4d90b7])[_0x5d627e(0x373)](0x0,0x3),_0x3272ce=()=>{const _0x5039ac=_0x5d627e;_0x57da37[_0x5039ac(0x314)](_0x43a0a5['id']);},_0x2a4df9=()=>{const _0xc97e57=_0x5d627e;_0x57da37[_0xc97e57(0x314)](_0x2a2ee2['id']);};return _0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828['sheetsPrint']},_0x2f6828['createElement'](_0x5d627e(0x214),{'className':_0x3b6828[_0x5d627e(0x356)]},_0x2f6828['createElement'](_0x5d627e(0x214),{'className':_0x3b6828[_0x5d627e(0x2f7)]},_0x19e6d6['t']('print.header.total'),_0x2615bb[_0x5d627e(0x202)],_0x19e6d6['t'](_0x5d627e(0x20c))),_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828['sheetsPrintHeaderRight']},_0x2f6828['createElement'](_0x32f308[_0x5d627e(0x2c2)],{'onClick':_0x3272ce},_0x19e6d6['t'](_0x5d627e(0x29b))),_0x2f6828[_0x5d627e(0x368)](_0x32f308['Button'],{'type':_0x5d627e(0x2bc),'onClick':_0x2a4df9},_0x19e6d6['t'](_0x5d627e(0x310))))),_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828[_0x5d627e(0x387)]},_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828['sheetsPrintContentPreview']},_0x2f6828[_0x5d627e(0x368)](_0x32f308[_0x5d627e(0x374)],null,_0x2615bb['map'](_0x4d1da3=>_0x2f6828[_0x5d627e(0x368)](_0x4ab3e1,{'key':_0x4d1da3[_0x5d627e(0x308)]+'-'+_0x4d1da3[_0x5d627e(0x30f)]+'-'+_0x4d1da3[_0x5d627e(0x2bb)],'config':_0x4d1da3,'page':_0x4d1da3[_0x5d627e(0x304)],'previewScale':_0x51c8f1})),_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828['sheetsPrintLimit']},_0x2f6828[_0x5d627e(0x368)]('a',{'href':_0x19e6d6['t'](_0x5d627e(0x25d)),'target':_0x5d627e(0x2d9)},_0x19e6d6['t'](_0x5d627e(0x2ac))))),_0x2f6828['createElement']('div',{'className':_0x3b6828['sheetsPrintContentPreviewControl']},_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828[_0x5d627e(0x316)],'onClick':()=>{const _0x4d1b7d=_0x5d627e;_0x353328(Math[_0x4d1b7d(0x36a)](_0x51c8f1+_0x5e5048,_0x4fd480));}},_0x2f6828['createElement'](_0x4378e2,null)),_0x2f6828[_0x5d627e(0x368)]('div',{'className':_0x3b6828[_0x5d627e(0x316)],'onClick':()=>{const _0x309882=_0x5d627e;_0x353328(Math[_0x309882(0x270)](_0x51c8f1-_0x5e5048,_0x3d1cdc));}},_0x2f6828[_0x5d627e(0x368)](_0x1dba9b,null)))),_0x2f6828[_0x5d627e(0x368)](_0x5d627e(0x214),{'className':_0x3b6828[_0x5d627e(0x266)]},_0x2f6828[_0x5d627e(0x368)](_0x1c34d5,null))));};var _0x246e82=(_0x52219a,_0x403b99,_0x33a54f,_0x32794c)=>{for(var _0x3b38ec=_0x403b99,_0xc67959=_0x52219a['length']-0x1,_0x8f00e2;_0xc67959>=0x0;_0xc67959--)(_0x8f00e2=_0x52219a[_0xc67959])&&(_0x3b38ec=_0x8f00e2(_0x3b38ec)||_0x3b38ec);return _0x3b38ec;},_0x4f180e=(_0x2973d5,_0xf867bc)=>(_0x2d2108,_0x514039)=>_0xf867bc(_0x2d2108,_0x514039,_0x2973d5);let _0x14d71d=class extends _0x3123ef[_0x3dd8ec(0x352)]{constructor(_0x429de7,_0x2d7201,_0x4033aa,_0x1e173f){const _0x4bf84a=_0x3dd8ec;super(),this[_0x4bf84a(0x309)]=_0x429de7,this['_commandService']=_0x2d7201,this[_0x4bf84a(0x2dc)]=_0x4033aa,this['_sheetPrintManagerService']=_0x1e173f,this[_0x4bf84a(0x208)]();}[_0x3dd8ec(0x208)](){const _0x5dc839=_0x3dd8ec;this['_initComponents'](),this[_0x5dc839(0x231)](),this[_0x5dc839(0x287)]();}[_0x3dd8ec(0x363)](){const _0x1a798b=_0x3dd8ec;this['_printService'][_0x1a798b(0x2e7)](_0xb63513,_0x5ec956);}[_0x3dd8ec(0x287)](){const _0x1d4efd=_0x3dd8ec;this[_0x1d4efd(0x362)](this[_0x1d4efd(0x309)]['visible$'][_0x1d4efd(0x2b7)](_0xbbdf70=>{const _0x24142f=_0x1d4efd;_0xbbdf70&&this[_0x24142f(0x351)][_0x24142f(0x249)]();}));}[_0x3dd8ec(0x250)](){const _0x14ef6d=_0x3dd8ec;let _0x5769f1=this[_0x14ef6d(0x351)][_0x14ef6d(0x226)][_0x14ef6d(0x2ba)](_0xf23532=>_0xf23532[_0x14ef6d(0x216)]['map'](_0x5072d1=>({..._0xf23532,'range':_0x5072d1})))[_0x14ef6d(0x290)]()[_0x14ef6d(0x2ba)]((_0x4a363a,_0x2a3a1c)=>({..._0x4a363a,'page':_0x2a3a1c+0x1}));_0x5769f1=_0x5769f1['slice'](0x0,0x3);const _0x3abe62=document[_0x14ef6d(0x368)](_0x14ef6d(0x214));_0x3abe62[_0x14ef6d(0x297)]=_0x15a8e6[_0x14ef6d(0x371)];const _0x410c12=_0x5769f1['map'](_0x11acdd=>{const _0x39a008=_0x14ef6d,_0x2736f2=new _0x40625d(this[_0x39a008(0x2dc)],_0x11acdd,!0x1);return _0x2736f2[_0x39a008(0x27e)][_0x39a008(0x297)]=_0x15a8e6[_0x39a008(0x2bf)],_0x2736f2;});_0x410c12['forEach'](_0x48d6e6=>{const _0x291f4a=_0x14ef6d;_0x3abe62[_0x291f4a(0x2fb)](_0x48d6e6[_0x291f4a(0x27e)]);});const _0x2c873c=this[_0x14ef6d(0x351)][_0x14ef6d(0x2c0)],_0x1cfd58=_0x15a8e6[_0x14ef6d(0x221)](_0x2c873c[_0x14ef6d(0x220)],_0x2c873c[_0x14ef6d(0x2e5)]);document[_0x14ef6d(0x1f7)]['appendChild'](_0x1cfd58),document['body'][_0x14ef6d(0x2fb)](_0x3abe62),setTimeout(()=>{const _0x4e673a=_0x14ef6d;window['onbeforeprint']=()=>{const _0x14ba24=_0x483d;_0x410c12[_0x14ba24(0x224)](_0x26488f=>{const _0x5f0dca=_0x14ba24;_0x26488f[_0x5f0dca(0x246)]();});},window[_0x4e673a(0x358)]=()=>{const _0x5bd63a=_0x4e673a;_0x410c12[_0x5bd63a(0x224)](_0x2126fd=>{const _0x11f992=_0x5bd63a;_0x2126fd[_0x11f992(0x31d)]();}),document[_0x5bd63a(0x1f7)]['removeChild'](_0x3abe62),document[_0x5bd63a(0x1f7)][_0x5bd63a(0x2c5)](_0x1cfd58),this[_0x5bd63a(0x309)][_0x5bd63a(0x380)](),this['_sheetPrintManagerService'][_0x5bd63a(0x229)]();},window['print']();},0x64);}[_0x3dd8ec(0x231)](){const _0x401911=_0x3dd8ec;this['disposeWithMe'](this[_0x401911(0x2c6)][_0x401911(0x347)](_0x306537=>{const _0x41ce85=_0x401911;_0x306537['id']===_0x2a2ee2['id']&&this[_0x41ce85(0x250)]();})),this[_0x401911(0x362)](this[_0x401911(0x2c6)]['onCommandExecuted'](_0x5d32ab=>{const _0x147d83=_0x401911;_0x5d32ab['id']===_0x3321c5['id']&&this[_0x147d83(0x309)][_0x147d83(0x34d)]();}));}};_0x14d71d=_0x246e82([_0x3123ef['OnLifecycle'](_0x3123ef['LifecycleStages'][_0x3dd8ec(0x22c)],_0x14d71d),_0x4f180e(0x0,_0x53d385['IGlobalZoneService']),_0x4f180e(0x1,_0x3123ef[_0x3dd8ec(0x223)]),_0x4f180e(0x2,_0x51bc42[_0x3dd8ec(0x228)](_0x51bc42[_0x3dd8ec(0x3a9)])),_0x4f180e(0x3,_0x5868af)],_0x14d71d);const _0x5105ed={'id':_0x3321c5['id'],'binding':_0x53d385[_0x3dd8ec(0x34c)]['P']|_0x53d385[_0x3dd8ec(0x2ea)][_0x3dd8ec(0x273)],'preconditions':_0x4a04ff['whenSheetEditorFocused']};function _0x51b29e(_0x9f755d){const _0x5b2bf1=_0x3dd8ec;return{'id':_0x3321c5['id'],'type':_0x53d385[_0x5b2bf1(0x32d)]['BUTTON'],'group':_0x53d385['MenuGroup']['TOOLBAR_OTHERS'],'positions':[_0x53d385[_0x5b2bf1(0x271)][_0x5b2bf1(0x210)]],'title':_0x5b2bf1(0x2ee),'icon':_0x5b2bf1(0x338),'tooltip':_0x5b2bf1(0x2ee),'hidden$':_0x53d385[_0x5b2bf1(0x25b)](_0x9f755d,_0x3123ef[_0x5b2bf1(0x355)][_0x5b2bf1(0x28f)]),'disabled$':_0x4a04ff['getCurrentRangeDisable$'](_0x9f755d,{'workbookTypes':[_0xfb3985[_0x5b2bf1(0x303)]]})};}var _0x3d386a=(_0x1734b6,_0x277a9b,_0x522b28,_0x1717b7)=>{const _0xd43c1=_0x3dd8ec;for(var _0x5e81e7=_0x277a9b,_0x490131=_0x1734b6[_0xd43c1(0x202)]-0x1,_0x553805;_0x490131>=0x0;_0x490131--)(_0x553805=_0x1734b6[_0x490131])&&(_0x5e81e7=_0x553805(_0x5e81e7)||_0x5e81e7);return _0x5e81e7;},_0x280dcd=(_0x435544,_0x509154)=>(_0x3f77b2,_0x467e9e)=>_0x509154(_0x3f77b2,_0x467e9e,_0x435544);const _0xedfc08={};_0x4c1d40[_0x3dd8ec(0x262)]=(_0x29dd59=class extends _0x3123ef[_0x3dd8ec(0x1f9)]{constructor(_0x16c060={},_0x5dcc23,_0x13e85b,_0x49466e,_0x16fe83,_0x542cdd,_0x32625f){const _0x47b8e3=_0x3dd8ec;super(),this[_0x47b8e3(0x2de)]=_0x16c060,this[_0x47b8e3(0x2dc)]=_0x5dcc23,this[_0x47b8e3(0x2c6)]=_0x13e85b,this[_0x47b8e3(0x2df)]=_0x49466e,this['_shortcutService']=_0x16fe83,this[_0x47b8e3(0x2ce)]=_0x542cdd,this[_0x47b8e3(0x3a5)]=_0x32625f,this[_0x47b8e3(0x2de)]=_0x3123ef[_0x47b8e3(0x3a2)]['deepMerge']({},_0xedfc08,this[_0x47b8e3(0x2de)]);}['onReady'](){const _0x2135f5=_0x3dd8ec;[_0x3321c5,_0x43a0a5,_0x2a2ee2]['forEach'](_0x48185b=>this[_0x2135f5(0x2c6)]['registerCommand'](_0x48185b)),[[_0x5868af,{'useClass':_0x27b8dd}],[_0x14d71d]][_0x2135f5(0x224)](_0x2ca136=>this['_injector'][_0x2135f5(0x2cd)](_0x2ca136)),[_0x5105ed]['forEach'](_0x3d325f=>{const _0x4db7f7=_0x2135f5;this[_0x4db7f7(0x2d6)]['registerShortcut'](_0x3d325f);}),[[_0x2135f5(0x338),_0x44ab6e]]['forEach'](([_0x42667e,_0x2101d8])=>{const _0x2672ff=_0x2135f5;this[_0x2672ff(0x3a5)][_0x2672ff(0x29c)](_0x42667e,_0x2101d8);});const {menu:_0x599927={}}=this[_0x2135f5(0x2de)];[_0x51b29e][_0x2135f5(0x224)](_0x249d47=>{const _0xf4d647=_0x2135f5;this[_0xf4d647(0x2ce)][_0xf4d647(0x342)](_0x249d47(this[_0xf4d647(0x2dc)]),_0x599927);});}},_0x53715c(_0x29dd59,_0x3dd8ec(0x2f1),_0x363d39),_0x53715c(_0x29dd59,_0x3dd8ec(0x2d0),_0x3123ef[_0x3dd8ec(0x355)][_0x3dd8ec(0x28f)]),_0x29dd59),_0x4c1d40[_0x3dd8ec(0x262)]=_0x3d386a([_0x280dcd(0x1,_0x51bc42[_0x3dd8ec(0x228)](_0x51bc42[_0x3dd8ec(0x3a9)])),_0x280dcd(0x2,_0x3123ef['ICommandService']),_0x280dcd(0x3,_0x51bc42[_0x3dd8ec(0x228)](_0x3123ef[_0x3dd8ec(0x365)])),_0x280dcd(0x4,_0x53d385[_0x3dd8ec(0x3aa)]),_0x280dcd(0x5,_0x53d385[_0x3dd8ec(0x1fd)]),_0x280dcd(0x6,_0x51bc42[_0x3dd8ec(0x228)](_0x53d385[_0x3dd8ec(0x2b8)]))],_0x4c1d40[_0x3dd8ec(0x262)]),_0x4c1d40[_0x3dd8ec(0x238)]=_0x43a0a5,_0x4c1d40[_0x3dd8ec(0x24a)]=_0x2a2ee2,_0x4c1d40[_0x3dd8ec(0x259)]=_0x3321c5,Object['defineProperty'](_0x4c1d40,Symbol[_0x3dd8ec(0x227)],{'value':_0x3dd8ec(0x27c)});}));
|
|
1
|
+
function _0x5d1b(){const _0x20e21e=['random','_engine','prototype','resizeWhenFreezeChange','Workbook','pauseCollaboration','CanvasRenderMode','FitPage','currentColor','Portrait','8yzXYzD','render','2755953RImbiM','Inject','layoutInfos$','print.selection.allWorkbook','_spreadsheetObject','measureText','54ZiSosa','print.align.horizontal.middle','idSuffix','Engine','executeCommand','@univerjs/engine-render','__SpreadsheetPrintRender__','width','with','@univerjs/sheets','getFreeze','svg','M7.5\x2014.1406C7.5\x2014.4168\x207.72386\x2014.6406\x208\x2014.6406C8.27614\x2014.6406\x208.5\x2014.4168\x208.5\x2014.1406V8.47424H14.1664C14.4425\x208.47424\x2014.6664\x208.25039\x2014.6664\x207.97424C14.6664\x207.6981\x2014.4425\x207.47424\x2014.1664\x207.47424H8.5V1.80786C8.5\x201.53172\x208.27614\x201.30786\x208\x201.30786C7.72386\x201.30786\x207.5\x201.53172\x207.5\x201.80786V7.47424H1.83362C1.55748\x207.47424\x201.33362\x207.6981\x201.33362\x207.97424C1.33362\x208.25038\x201.55748\x208.47424\x201.83362\x208.47424H7.5V14.1406Z','removeChild','UniverSheetsUi','_addViewport','SheetSkeletonManagerService','display','_container','@wendellhu/redi','fixLineWidthByScale','VIEWPORT_KEY','@univerjs/core','UNIVER_SHEET','Button','amd','open','getOwnPropertyDescriptor','onCommandExecuted','Date','PrintAlign','UniverInstanceType','getContext','_dirty','subUnitIds','M4.82617\x201.88735C4.82617\x201.55598\x205.0948\x201.28735\x205.42617\x201.28735H10.5736C10.905\x201.28735\x2011.1736\x201.55598\x2011.1736\x201.88735V3.86121H13.791C14.4778\x203.86121\x2015.0345\x204.4179\x2015.0345\x205.10464V10.2521C15.0345\x2010.9388\x2014.4778\x2011.4955\x2013.791\x2011.4955H11.1736V14.1126C11.1736\x2014.4439\x2010.905\x2014.7126\x2010.5736\x2014.7126H5.42617C5.0948\x2014.7126\x204.82617\x2014.4439\x204.82617\x2014.1126V11.4955H2.20901C1.52228\x2011.4955\x200.965576\x2010.9388\x200.965576\x2010.2521V5.10464C0.965576\x204.41789\x201.52228\x203.86121\x202.20901\x203.86121H4.82617V1.88735ZM4.82617\x2010.2955V9.60855C4.82617\x209.59394\x204.82669\x209.57946\x204.82772\x209.56511H4.46108C4.12971\x209.56511\x203.86108\x209.29648\x203.86108\x208.96511C3.86108\x208.63374\x204.12971\x208.36511\x204.46108\x208.36511H11.5388C11.8702\x208.36511\x2012.1388\x208.63374\x2012.1388\x208.96511C12.1388\x209.29648\x2011.8702\x209.56511\x2011.5388\x209.56511H11.1721C11.1731\x209.57946\x2011.1736\x209.59394\x2011.1736\x209.60855V10.2955H13.791C13.815\x2010.2955\x2013.8345\x2010.2761\x2013.8345\x2010.2521V5.10464C13.8345\x205.08064\x2013.815\x205.06121\x2013.791\x205.06121H12.4605V6.3915C12.4605\x206.72287\x2012.1918\x206.9915\x2011.8605\x206.9915H4.13931C3.80794\x206.9915\x203.53931\x206.72287\x203.53931\x206.3915V5.06121H2.20901C2.18501\x205.06121\x202.16558\x205.08065\x202.16558\x205.10464V10.2521C2.16558\x2010.2761\x202.18501\x2010.2955\x202.20901\x2010.2955H4.82617ZM9.97516\x209.56511H6.02462C6.02565\x209.57946\x206.02617\x209.59394\x206.02617\x209.60855V13.5126H9.97362V9.60855C9.97362\x209.59394\x209.97414\x209.57946\x209.97516\x209.56511ZM9.97362\x204.46108C9.97362\x204.69542\x2010.108\x204.89838\x2010.3038\x204.99715C10.385\x205.03813\x2010.4767\x205.06121\x2010.5739\x205.06121H11.2605V5.7915H4.73931V5.06121H5.42616C5.73749\x205.06121\x205.99344\x204.82409\x206.02326\x204.5206C6.02518\x204.50102\x206.02617\x204.48116\x206.02617\x204.46108V2.48735H9.97362V4.46108Z','8fRJyMu','print.align.horizontal.end','print.size.letter','_localeService','startX','PrintScale','_targetRender','_sheetPrintManagerService','@univerjs/sheets-ui','renderOnReady','updateRenderConfig','registerShortcut','OPERATION','PrintDirection','slice','sheetsPrintContentPreviewPage','PrintSingle','extend','sheetsPrintContentPreviewControlItem','useMemo','__blank','M1.33362\x207.97412C1.33362\x207.69798\x201.55748\x207.47412\x201.83362\x207.47412L14.1664\x207.47412C14.4425\x207.47412\x2014.6664\x207.69798\x2014.6664\x207.97412C14.6664\x208.25026\x2014.4425\x208.47412\x2014.1664\x208.47412L1.83362\x208.47412C1.55748\x208.47412\x201.33362\x208.25026\x201.33362\x207.97412Z','getSheetBySheetId','univer-sheets-print-header-right','print.size.statement','print','_commandService','className','_sheetPrintInterceptorService','VIEW_MAIN_LEFT','push','paperMargin','univer-sheets-print','current','print.header.next','function','Start','paperSize','PageSize','PrintPaperSize','print.size.executive','PRINT_PLUGIN_PRINT_COMPONENT','TOOLBAR_OTHERS','UniverEngineRender','renderConfig','_calculateFinalRange','registerCommand','Quantity','2NiBQKE','_print','call','sheetsPrint','print.margin.narrow','scaleY','_getTranslateOffset','interceptor','getOrCreateSkeleton','forEach','_viewLeftTop','UniverIcon','deepMerge','print.orientation.landscape','print.limit.link','hAlign','left','PRINTING_RANGE','sheet.operation.print-open','IMenuService','rxjs','useRef','unitId','getUnitSkeleton','Checkbox','startY','print.headerFooter.workbook','React','MetaKeys','range','prepare','print.align.vertical.end','forwardRef','body','getCanvas','print.size.tabloid','WorksheetTitle','flat','sheetsPrintLimit','scale','length','getUnitId','UniverUi','IRenderManagerService','onReady','getFirst','univer-sheets-print-content-setting','univer-sheets-print-content-preview-control-item','OnLifecycle','translateWithPrecision','Injector','LifecycleStages','defs','univer-sheets-print-content-setting-form','height','visible$','UniverSheetsPrintPlugin','top','icon','print.formatting.title','asObservable','makeForceDirty','pages','1em','bottom','sheetsPrintContentPreview','FormLayout','column','font','_layoutConfig','1034810FZMvgp','No\x20active\x20sheet\x20found','UniverSheetsPrint','BUTTON','apply','getNoMergeCellPositionByIndexWithNoHeader','CommandType','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','PRINT_CONTAINER_CLASS','FitHeight','UniverCore','div','get','Tools','6809004kqIUYe','_skeleton','univer-sheets-print-content-preview-control','VIEW_MAIN_LEFT_TOP','reset','layoutConfig$','print.align.title','ICommandService','_previewScale','xSplit','min','print.scale.fitPage','_renderHeaderFooter','Landscape','print.selection.workbookUnit','_printService','Narrow','subUnitId','defineProperty','onTransformChangeObservable','endRow','toStringTag','FitWidth','_calculateCurrentSelectionRange','Tabloid','warn','CurrentSheet','react','sheetsPrintHeaderRight','entries','univerjs-icon\x20univerjs-icon-','style','Select','_renderConfig','_margin','Disposable','area','TOOLBAR_START','none','gridlines','M6.75635\x2011.5388C6.75635\x2011.2075\x207.02498\x2010.9388\x207.35635\x2010.9388H8.64321C8.97458\x2010.9388\x209.24321\x2011.2075\x209.24321\x2011.5388C9.24321\x2011.8702\x208.97458\x2012.1388\x208.64321\x2012.1388H7.35635C7.02498\x2012.1388\x206.75635\x2011.8702\x206.75635\x2011.5388Z','_scene','_viewLeft','useEffect','print.header.total','defIds','register','assign','scaleX','_layoutInfos','evenodd','print.size.folio','_totalWidth','4382YtgsfD','Legal','_isPreview','_subUnitId','page','IPermissionService','markDirty','_key','Row','_calculateSheetRangeById','error','zoom-increase-single','makeDirty','startRow','@wendellhu/redi/react-bindings','fillText','disposeWithMe','print.orientation.portrait','useDependency','margin','useState','enable','MenuItemType','Spreadsheet','_layoutConfig$','toLocaleTimeString','_calculatePrintScale','includes','univer-sheets-print-content-preview-page','memo','displayName','Wide','UniverPrint','useObservable','print.freeze.column','resize','_initCommandListener','dispose','next','Middle','ySplit','print.align.vertical.middle','@univerjs/ui','setContainer','sheetsPrintContentSettingForm','sheetsPrintHeaderLeft','Scrollbar','Ready','pluginName','@univerjs/design','fetchThroughInterceptors','has','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','map','End','Scene','PRINT_CANVAS_CLASS','restore','OPTIONAL','print.size.a4','print.size.b4','sheetsPrintHeader','indexOf','symbol','_addComponent','getCurrentUnitForType','concat','string','Statement','whenSheetEditorFocused','engine','sheetsPrintContent','_calculateSubSheetRange','CurrentSelection','Origin','print.menu','startColumn','zoom-reduce-single','WorkbookPrintPermission','print.limit.waterMark','direction','overflowCache','IShortcutService','PRINTING_COMPONENT_COLLECT','max','print.size.b5','_viewMain','Normal','SelectionManagerService','path','renderConfig$','appendChild','createPrintStyle','Column','_renderConfig$','updateLayoutConfig','colorChannel1','trim','UniverSheets','use','getSheetId','close','_viewTop','getInterceptPoints','WorkbookTitle','_resizeViewport','MenuGroup','primary','20JXZSrP','xlink:href','type','Printing','_calculate','endX','toLocaleDateString','substring','_totalHeight','100%','print.header.pages','endY','getActiveSheet','CheckboxGroup','Time','container','print.freeze.title','tag','endColumn','Viewport','print.align.horizontal.start','save','_univerInstanceService','clearCanvas','0\x200\x2016\x2016','getName','_initConfigChangeListener','VIEW_MAIN','rowHeightAccumulation','_calculateSheetPages','getCollabEntity','then','CollaborationController','sheet.operation.confirm-print','BehaviorSubject','createElement','print.area.workbook','_paperSize','parentElement','disable','print.margin.normal','_initComponents','fontBoundingBoxAscent','reLayout','getCellMatrixPrintRange','print.margin.wide','_renderManagerService','getSheets','children','round','right','ZoomIncreaseSingle','PrintPaperMargin','attrs','flex','freeze','univer-sheets-print-limit','LocaleService','toString','print.size.a3','ConfirmSheetPrintOperation','setPreviewScale','floor','print.selection.title','layoutConfig','columnWidthAccumulation','addObject','_unitId','key','print.size.legal','fill','CancelSheetPrintOperation','@univerjs-pro/print','print.area.currentSheet','sheetsPrintContentPreviewControl','CTRL_COMMAND','_selectionManagerService','fontBoundingBoxDescent','_initRenderer','print.headerFooter.title','getPrecisionScale','size','univer-pro.sheet-print-manager.service','DEFAULT_FONTFACE_PLANE','430961kUjZyA','add','828774TRYEtT','_accessor','getOwnPropertySymbols','_initialize','_injector','_shortcutService','layoutInfos','_renderMainScene','12px\x20','IUniverInstanceService','_config','PaperMarginMap','getMenuHiddenObservable','sheet.operation.cancel-print','IGlobalZoneService','workbook','set','_componentManager','exports','1257124ubbrfP','getRenderById','updateScroll','hasOwnProperty','_renderWaterMark','_layoutInfos$','subPage','url(#$1','vAlign'];_0x5d1b=function(){return _0x20e21e;};return _0x5d1b();}function _0x2181(_0x2efd4a,_0x7c6590){const _0x5d1b31=_0x5d1b();return _0x2181=function(_0x2181e0,_0x5b0a6f){_0x2181e0=_0x2181e0-0x1a3;let _0x57b5e1=_0x5d1b31[_0x2181e0];return _0x57b5e1;},_0x2181(_0x2efd4a,_0x7c6590);}(function(_0x3efc91,_0x5876a3){const _0x16b8be=_0x2181,_0x553ecc=_0x3efc91();while(!![]){try{const _0x178cf8=parseInt(_0x16b8be(0x2e5))/0x1+parseInt(_0x16b8be(0x369))/0x2*(-parseInt(_0x16b8be(0x2e7))/0x3)+parseInt(_0x16b8be(0x30d))/0x4*(-parseInt(_0x16b8be(0x1e2))/0x5)+parseInt(_0x16b8be(0x315))/0x6*(parseInt(_0x16b8be(0x225))/0x7)+parseInt(_0x16b8be(0x339))/0x8*(-parseInt(_0x16b8be(0x30f))/0x9)+-parseInt(_0x16b8be(0x291))/0xa*(-parseInt(_0x16b8be(0x2fa))/0xb)+parseInt(_0x16b8be(0x1f0))/0xc;if(_0x178cf8===_0x5876a3)break;else _0x553ecc['push'](_0x553ecc['shift']());}catch(_0x38a447){_0x553ecc['push'](_0x553ecc['shift']());}}}(_0x5d1b,0x39a95),function(_0x3d8e56,_0x1cb3e6){const _0x4feac1=_0x2181;typeof exports=='object'&&typeof module<'u'?_0x1cb3e6(exports,require(_0x4feac1(0x32b)),require('@univerjs/ui'),require('@wendellhu/redi'),require(_0x4feac1(0x31e)),require('@univerjs/engine-render'),require(_0x4feac1(0x341)),require('@univerjs-pro/print'),require(_0x4feac1(0x1b0)),require(_0x4feac1(0x256)),require(_0x4feac1(0x233)),require('react')):typeof define==_0x4feac1(0x35c)&&define[_0x4feac1(0x32e)]?define([_0x4feac1(0x2f9),_0x4feac1(0x32b),_0x4feac1(0x24f),_0x4feac1(0x328),_0x4feac1(0x31e),_0x4feac1(0x31a),_0x4feac1(0x341),_0x4feac1(0x2d9),'rxjs','@univerjs/design',_0x4feac1(0x233),_0x4feac1(0x20b)],_0x1cb3e6):(_0x3d8e56=typeof globalThis<'u'?globalThis:_0x3d8e56||self,_0x1cb3e6(_0x3d8e56[_0x4feac1(0x1e4)]={},_0x3d8e56[_0x4feac1(0x1ec)],_0x3d8e56[_0x4feac1(0x1c6)],_0x3d8e56[_0x4feac1(0x328)],_0x3d8e56[_0x4feac1(0x287)],_0x3d8e56[_0x4feac1(0x364)],_0x3d8e56[_0x4feac1(0x323)],_0x3d8e56[_0x4feac1(0x245)],_0x3d8e56[_0x4feac1(0x1b0)],_0x3d8e56['UniverDesign'],_0x3d8e56[_0x4feac1(0x233)],_0x3d8e56[_0x4feac1(0x1b7)]));}(this,function(_0x297efb,_0x1e4047,_0x413768,_0x41e42f,_0x2d1436,_0x269132,_0xe0e368,_0x8a083,_0x1bb4df,_0x1e2733,_0x13cf17,_0x4f8dd3){'use strict';const _0x18cfd7=_0x2181;var _0x4cf84c=Object[_0x18cfd7(0x202)],_0x272045=(_0x512a18,_0x3cc3f4,_0x74b4dd)=>_0x3cc3f4 in _0x512a18?_0x4cf84c(_0x512a18,_0x3cc3f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x74b4dd}):_0x512a18[_0x3cc3f4]=_0x74b4dd,_0x540577=(_0x91fee1,_0x3ebc9d,_0x5a15d4)=>_0x272045(_0x91fee1,typeof _0x3ebc9d!=_0x18cfd7(0x264)?_0x3ebc9d+'':_0x3ebc9d,_0x5a15d4),_0x4f1f27,_0x505233=function(){const _0x298aa5=_0x18cfd7;return _0x505233=Object[_0x298aa5(0x21f)]||function(_0x2b2717){const _0x2205f2=_0x298aa5;for(var _0xd14c35,_0x551c64=0x1,_0x4526d5=arguments[_0x2205f2(0x1c4)];_0x551c64<_0x4526d5;_0x551c64++){_0xd14c35=arguments[_0x551c64];for(var _0x3cde90 in _0xd14c35)Object[_0x2205f2(0x305)][_0x2205f2(0x2fd)][_0x2205f2(0x36b)](_0xd14c35,_0x3cde90)&&(_0x2b2717[_0x3cde90]=_0xd14c35[_0x3cde90]);}return _0x2b2717;},_0x505233[_0x298aa5(0x1e6)](this,arguments);},_0x7a884=function(_0x5389c2,_0x3f0083){const _0x575d6f=_0x18cfd7;var _0x127c5c={};for(var _0x2a2f39 in _0x5389c2)Object[_0x575d6f(0x305)][_0x575d6f(0x2fd)][_0x575d6f(0x36b)](_0x5389c2,_0x2a2f39)&&_0x3f0083[_0x575d6f(0x263)](_0x2a2f39)<0x0&&(_0x127c5c[_0x2a2f39]=_0x5389c2[_0x2a2f39]);if(_0x5389c2!=null&&typeof Object[_0x575d6f(0x2e9)]==_0x575d6f(0x35c)){for(var _0x29c72f=0x0,_0x2a2f39=Object[_0x575d6f(0x2e9)](_0x5389c2);_0x29c72f<_0x2a2f39[_0x575d6f(0x1c4)];_0x29c72f++)_0x3f0083[_0x575d6f(0x263)](_0x2a2f39[_0x29c72f])<0x0&&Object[_0x575d6f(0x305)]['propertyIsEnumerable']['call'](_0x5389c2,_0x2a2f39[_0x29c72f])&&(_0x127c5c[_0x2a2f39[_0x29c72f]]=_0x5389c2[_0x2a2f39[_0x29c72f]]);}return _0x127c5c;},_0x23b852=_0x4f8dd3[_0x18cfd7(0x1bc)](function(_0x5b732c,_0x45f0e4){const _0x3ba83d=_0x18cfd7;var _0x2ad494=_0x5b732c[_0x3ba83d(0x1d6)],_0x14056a=_0x5b732c['id'],_0x1d1313=_0x5b732c['className'],_0x4037db=_0x5b732c['extend'],_0x3214e8=_0x7a884(_0x5b732c,[_0x3ba83d(0x1d6),'id',_0x3ba83d(0x354),_0x3ba83d(0x34a)]),_0x25bcf6=_0x3ba83d(0x20e)[_0x3ba83d(0x267)](_0x14056a,'\x20')[_0x3ba83d(0x267)](_0x1d1313||'')[_0x3ba83d(0x286)](),_0x327890=_0x4f8dd3['useRef']('_'[_0x3ba83d(0x267)](_0x18f22a()));return _0x34821a(_0x2ad494,''[_0x3ba83d(0x267)](_0x14056a),{'defIds':_0x2ad494['defIds'],'idSuffix':_0x327890['current']},_0x505233({'ref':_0x45f0e4,'className':_0x25bcf6},_0x3214e8),_0x4037db);});function _0x34821a(_0x2d4c13,_0x1e402a,_0x516f58,_0x4e54be,_0x3d0fe7){const _0x1cadd4=_0x18cfd7;return _0x4f8dd3[_0x1cadd4(0x2b4)](_0x2d4c13[_0x1cadd4(0x2a2)],_0x505233(_0x505233({'key':_0x1e402a},_0x1413a3(_0x2d4c13,_0x516f58,_0x3d0fe7)),_0x4e54be),(_0x1da9a7(_0x2d4c13,_0x516f58)['children']||[])['map'](function(_0x4efc3b,_0x8414c3){const _0x171395=_0x1cadd4;return _0x34821a(_0x4efc3b,''['concat'](_0x1e402a,'-')[_0x171395(0x267)](_0x2d4c13['tag'],'-')['concat'](_0x8414c3),_0x516f58,void 0x0,_0x3d0fe7);}));}function _0x1413a3(_0x2795d5,_0x46f3ef,_0x1faf98){const _0x331831=_0x18cfd7;var _0x3da600=_0x505233({},_0x2795d5[_0x331831(0x2c6)]);_0x1faf98!=null&&_0x1faf98[_0x331831(0x285)]&&_0x3da600[_0x331831(0x2d7)]==='colorChannel1'&&(_0x3da600[_0x331831(0x2d7)]=_0x1faf98['colorChannel1']);var _0xd4a25f=_0x46f3ef[_0x331831(0x21d)];return!_0xd4a25f||_0xd4a25f[_0x331831(0x1c4)]===0x0||(_0x2795d5[_0x331831(0x2a2)]===_0x331831(0x288)&&_0x3da600[_0x331831(0x292)]&&(_0x3da600[_0x331831(0x292)]=_0x3da600[_0x331831(0x292)]+_0x46f3ef['idSuffix']),Object[_0x331831(0x20d)](_0x3da600)[_0x331831(0x1a5)](function(_0x3a1b39){const _0x1dfbbc=_0x331831;var _0x515ee5=_0x3a1b39[0x0],_0x3090ea=_0x3a1b39[0x1];typeof _0x3090ea==_0x1dfbbc(0x268)&&(_0x3da600[_0x515ee5]=_0x3090ea['replace'](/url\(#(.*)\)/,_0x1dfbbc(0x301)[_0x1dfbbc(0x267)](_0x46f3ef[_0x1dfbbc(0x317)],')')));})),_0x3da600;}function _0x1da9a7(_0x25c1e7,_0x5e6f9d){const _0x16bd6b=_0x18cfd7;var _0xd9cf64,_0x4c138c=_0x5e6f9d[_0x16bd6b(0x21d)];return!_0x4c138c||_0x4c138c[_0x16bd6b(0x1c4)]===0x0?_0x25c1e7:_0x25c1e7[_0x16bd6b(0x2a2)]===_0x16bd6b(0x1d0)&&(!((_0xd9cf64=_0x25c1e7[_0x16bd6b(0x2c1)])===null||_0xd9cf64===void 0x0)&&_0xd9cf64[_0x16bd6b(0x1c4)])?_0x505233(_0x505233({},_0x25c1e7),{'children':_0x25c1e7[_0x16bd6b(0x2c1)][_0x16bd6b(0x25a)](function(_0x41d60e){const _0x42d7b8=_0x16bd6b;return typeof _0x41d60e['attrs']['id']==_0x42d7b8(0x268)&&_0x4c138c&&_0x4c138c[_0x42d7b8(0x263)](_0x41d60e['attrs']['id'])>-0x1?_0x505233(_0x505233({},_0x41d60e),{'attrs':_0x505233(_0x505233({},_0x41d60e['attrs']),{'id':_0x41d60e['attrs']['id']+_0x5e6f9d[_0x42d7b8(0x317)]})}):_0x41d60e;})}):_0x25c1e7;}function _0x18f22a(){const _0x2292e1=_0x18cfd7;return Math[_0x2292e1(0x303)]()[_0x2292e1(0x2cb)](0x24)[_0x2292e1(0x298)](0x2,0x8);}_0x23b852[_0x18cfd7(0x243)]=_0x18cfd7(0x1a7);var _0x2810f0={'tag':_0x18cfd7(0x320),'attrs':{'fill':_0x18cfd7(0x216),'viewBox':_0x18cfd7(0x2a9),'width':_0x18cfd7(0x1db),'height':_0x18cfd7(0x1db)},'children':[{'tag':_0x18cfd7(0x27e),'attrs':{'fill':'currentColor','d':_0x18cfd7(0x218)}},{'tag':'path','attrs':{'fill':_0x18cfd7(0x30b),'d':_0x18cfd7(0x338),'fillRule':_0x18cfd7(0x222),'clipRule':_0x18cfd7(0x222)}}]},_0x56a846=_0x4f8dd3[_0x18cfd7(0x1bc)](function(_0x10d8d0,_0x460d1f){const _0x408928=_0x18cfd7;return _0x4f8dd3['createElement'](_0x23b852,Object[_0x408928(0x21f)]({},_0x10d8d0,{'id':'print-single','ref':_0x460d1f,'icon':_0x2810f0}));});_0x56a846[_0x18cfd7(0x243)]=_0x18cfd7(0x349);var _0x304341={'tag':'svg','attrs':{'fill':'none','viewBox':_0x18cfd7(0x2a9),'width':_0x18cfd7(0x1db),'height':_0x18cfd7(0x1db)},'children':[{'tag':_0x18cfd7(0x27e),'attrs':{'fill':_0x18cfd7(0x30b),'d':_0x18cfd7(0x321)}}]},_0x114bc2=_0x4f8dd3[_0x18cfd7(0x1bc)](function(_0x425073,_0x3c371b){const _0x5ca969=_0x18cfd7;return _0x4f8dd3[_0x5ca969(0x2b4)](_0x23b852,Object[_0x5ca969(0x21f)]({},_0x425073,{'id':_0x5ca969(0x230),'ref':_0x3c371b,'icon':_0x304341}));});_0x114bc2[_0x18cfd7(0x243)]=_0x18cfd7(0x2c4);var _0x26ca3f={'tag':_0x18cfd7(0x320),'attrs':{'fill':_0x18cfd7(0x216),'viewBox':_0x18cfd7(0x2a9),'width':_0x18cfd7(0x1db),'height':_0x18cfd7(0x1db)},'children':[{'tag':_0x18cfd7(0x27e),'attrs':{'fill':_0x18cfd7(0x30b),'d':_0x18cfd7(0x34e),'fillRule':_0x18cfd7(0x222),'clipRule':'evenodd'}}]},_0x15d7d8=_0x4f8dd3['forwardRef'](function(_0x3379dd,_0x330c22){const _0x42a41e=_0x18cfd7;return _0x4f8dd3[_0x42a41e(0x2b4)](_0x23b852,Object[_0x42a41e(0x21f)]({},_0x3379dd,{'id':_0x42a41e(0x272),'ref':_0x330c22,'icon':_0x26ca3f}));});_0x15d7d8[_0x18cfd7(0x243)]='ZoomReduceSingle';var _0x311a9b=(_0x2e70ee=>(_0x2e70ee['CurrentSheet']=_0x18cfd7(0x20a),_0x2e70ee['workbook']=_0x18cfd7(0x307),_0x2e70ee[_0x18cfd7(0x26e)]=_0x18cfd7(0x26e),_0x2e70ee))(_0x311a9b||{}),_0x12ed6f=(_0x5591ce=>(_0x5591ce[_0x18cfd7(0x35f)]=_0x18cfd7(0x35f),_0x5591ce['WorkbookTitle']=_0x18cfd7(0x28d),_0x5591ce[_0x18cfd7(0x1c0)]=_0x18cfd7(0x1c0),_0x5591ce['Date']='Date',_0x5591ce['Time']='Time',_0x5591ce))(_0x12ed6f||{}),_0x35b06c=(_0x170ce1=>(_0x170ce1['Row']=_0x18cfd7(0x22d),_0x170ce1[_0x18cfd7(0x282)]=_0x18cfd7(0x282),_0x170ce1))(_0x35b06c||{}),_0xa6863e=Object[_0x18cfd7(0x202)],_0x173407=Object[_0x18cfd7(0x330)],_0x5ca657=(_0xca4abe,_0xb752ee,_0x59292b,_0x2b7956)=>{const _0xa6b4a4=_0x18cfd7;for(var _0x355927=_0x2b7956>0x1?void 0x0:_0x2b7956?_0x173407(_0xb752ee,_0x59292b):_0xb752ee,_0x4b1fd0=_0xca4abe[_0xa6b4a4(0x1c4)]-0x1,_0x38ca9d;_0x4b1fd0>=0x0;_0x4b1fd0--)(_0x38ca9d=_0xca4abe[_0x4b1fd0])&&(_0x355927=(_0x2b7956?_0x38ca9d(_0xb752ee,_0x59292b,_0x355927):_0x38ca9d(_0x355927))||_0x355927);return _0x2b7956&&_0x355927&&_0xa6863e(_0xb752ee,_0x59292b,_0x355927),_0x355927;},_0x3e11f4=(_0x1b1f7a,_0x3339f8)=>(_0x12e909,_0x68ac3b)=>_0x3339f8(_0x12e909,_0x68ac3b,_0x1b1f7a);const _0x4df425=_0x41e42f['createIdentifier'](_0x18cfd7(0x2e3)),_0x2772de=_0x5484c9=>Math[_0x18cfd7(0x2cf)](_0x5484c9*0x64)/0x64;let _0x4db0e4=class{constructor(_0x2bb98a,_0x2dbc92,_0x5560dd,_0x43b85d){const _0x459f93=_0x18cfd7;_0x540577(this,_0x459f93(0x1e1),{'area':_0x311a9b[_0x459f93(0x20a)],'subUnitIds':[],'paperSize':_0x8a083[_0x459f93(0x360)]['A4'],'direction':_0x8a083[_0x459f93(0x346)]['Portrait'],'scale':_0x8a083['PrintScale'][_0x459f93(0x26f)],'customScale':0x1,'freeze':[_0x35b06c[_0x459f93(0x22d)],_0x35b06c[_0x459f93(0x282)]],'margin':_0x8a083['PrintPaperMargin'][_0x459f93(0x27c)]}),_0x540577(this,_0x459f93(0x211),{'gridlines':!0x0,'hAlign':_0x8a083['PrintAlign'][_0x459f93(0x24c)],'vAlign':_0x8a083[_0x459f93(0x333)][_0x459f93(0x35d)],'headerFooter':[]}),_0x540577(this,_0x459f93(0x221),[]),_0x540577(this,_0x459f93(0x2ff),new _0x1bb4df[(_0x459f93(0x2b3))](this['_layoutInfos'])),_0x540577(this,_0x459f93(0x23d),new _0x1bb4df[(_0x459f93(0x2b3))](this[_0x459f93(0x1e1)])),_0x540577(this,_0x459f93(0x283),new _0x1bb4df[(_0x459f93(0x2b3))](this[_0x459f93(0x211)])),_0x540577(this,_0x459f93(0x1f5),this[_0x459f93(0x23d)][_0x459f93(0x1d8)]()),_0x540577(this,_0x459f93(0x27f),this[_0x459f93(0x283)][_0x459f93(0x1d8)]()),_0x540577(this,_0x459f93(0x311),this['_layoutInfos$']['asObservable']()),(this[_0x459f93(0x2a7)]=_0x2bb98a,this[_0x459f93(0x2dd)]=_0x2dbc92,this['_sheetPrintInterceptorService']=_0x5560dd,this[_0x459f93(0x2bf)]=_0x43b85d);}get[_0x18cfd7(0x2ed)](){const _0x231f88=_0x18cfd7;return this[_0x231f88(0x221)];}get['renderConfig'](){const _0x5d8cdd=_0x18cfd7;return this[_0x5d8cdd(0x211)];}get['layoutConfig'](){const _0xbada37=_0x18cfd7;return this[_0xbada37(0x1e1)];}get[_0x18cfd7(0x35e)](){const _0x41056a=_0x18cfd7,{paperSize:_0x3a313c,direction:_0x8d0331}=this['_layoutConfig'],_0x590729=_0x8a083['PaperSizePxMap'][_0x3a313c];return _0x8d0331===_0x8a083[_0x41056a(0x346)][_0x41056a(0x30c)]?{..._0x590729}:{'w':_0x590729['h'],'h':_0x590729['w']};}get[_0x18cfd7(0x358)](){const _0xa88cb4=_0x18cfd7;return _0x8a083[_0xa88cb4(0x2f2)][this['_layoutConfig'][_0xa88cb4(0x238)]];}[_0x18cfd7(0x284)](_0x5235f3){const _0x235348=_0x18cfd7;this['_layoutConfig']={...this['_layoutConfig'],..._0x5235f3},this[_0x235348(0x23d)][_0x235348(0x24b)](this[_0x235348(0x1e1)]),this[_0x235348(0x2bc)]();}[_0x18cfd7(0x343)](_0x18bab3){const _0x3bffd0=_0x18cfd7;this['_renderConfig']={...this[_0x3bffd0(0x211)],..._0x18bab3},this[_0x3bffd0(0x283)]['next'](this[_0x3bffd0(0x211)]);}[_0x18cfd7(0x2bc)](){const _0x255b37=_0x18cfd7;this['_layoutInfos']=this[_0x255b37(0x295)](),this[_0x255b37(0x2ff)][_0x255b37(0x24b)](this[_0x255b37(0x221)]);}['reset'](){const _0x2f1988=_0x18cfd7;this[_0x2f1988(0x221)]=[],this[_0x2f1988(0x2ff)][_0x2f1988(0x24b)](this[_0x2f1988(0x221)]),this['_layoutConfig']={...this[_0x2f1988(0x1e1)],'area':_0x311a9b[_0x2f1988(0x20a)]},this['_layoutConfig$'][_0x2f1988(0x24b)](this[_0x2f1988(0x1e1)]);}['_calculate'](){const _0x5c2e08=_0x18cfd7,_0x245355=this[_0x5c2e08(0x26d)](),_0x1cae1e=[];return _0x245355[_0x5c2e08(0x1a5)](_0x426eb2=>{const _0x4e589f=_0x5c2e08;if(_0x426eb2){const _0x1d3b4b=this[_0x4e589f(0x2ae)](_0x426eb2);_0x1d3b4b&&_0x1cae1e[_0x4e589f(0x357)](_0x1d3b4b);}}),_0x1cae1e;}[_0x18cfd7(0x22e)](_0x4010b5,_0x4d3c3f){const _0x19a493=_0x18cfd7;var _0x477298,_0x55895b,_0x23dce0;const _0x707dbd=this['_univerInstanceService']['getCurrentUnitForType'](_0x1e4047[_0x19a493(0x334)]['UNIVER_SHEET'])['getSheetBySheetId'](_0x4d3c3f);if(!_0x707dbd)return;const _0xe899f9=_0x707dbd[_0x19a493(0x31f)](),_0x2fa14d=_0x707dbd[_0x19a493(0x2bd)](),_0x567b10=(_0x55895b=(_0x477298=this[_0x19a493(0x2bf)][_0x19a493(0x2fb)](_0x4010b5))==null?void 0x0:_0x477298['with'](_0xe0e368[_0x19a493(0x325)])[_0x19a493(0x1b3)](_0x4010b5,_0x4d3c3f))==null?void 0x0:_0x55895b['skeleton'];if(!_0x567b10)return;_0x2fa14d&&((_0x23dce0=_0x567b10==null?void 0x0:_0x567b10[_0x19a493(0x276)])==null||_0x23dce0['forValue']((_0x324c0b,_0x616875,_0x4b303c)=>{const _0x596efb=_0x19a493,{endColumn:_0x34ab4e}=_0x4b303c;_0x34ab4e>_0x2fa14d['endColumn']&&(_0x2fa14d[_0x596efb(0x2a3)]=_0x34ab4e);}));const _0x32cb8a=this[_0x19a493(0x355)][_0x19a493(0x1a3)][_0x19a493(0x257)](this[_0x19a493(0x355)]['interceptor'][_0x19a493(0x28c)]()[_0x19a493(0x1ad)])(_0x2fa14d,{'unitId':_0x4010b5,'subUnitId':_0x4d3c3f});return _0x32cb8a?this[_0x19a493(0x366)](_0x4d3c3f,{..._0x32cb8a,'startColumn':Math[_0x19a493(0x279)](_0xe899f9[_0x19a493(0x271)]-_0xe899f9['xSplit'],0x0),'startRow':Math[_0x19a493(0x279)](_0xe899f9[_0x19a493(0x232)]-_0xe899f9[_0x19a493(0x24d)],0x0)}):null;}[_0x18cfd7(0x207)](){const _0x102d5b=_0x18cfd7,_0x28f9d2=this['_selectionManagerService'][_0x102d5b(0x1c9)](),_0x20668f=this[_0x102d5b(0x2a7)][_0x102d5b(0x266)](_0x1e4047[_0x102d5b(0x334)][_0x102d5b(0x32c)])[_0x102d5b(0x29d)]();if(!_0x20668f){console[_0x102d5b(0x209)](_0x102d5b(0x1e3));return;}const _0x147fdf=_0x20668f[_0x102d5b(0x289)]();if(_0x28f9d2)return this[_0x102d5b(0x366)](_0x147fdf,_0x28f9d2[_0x102d5b(0x1b9)]);}['_calculateFinalRange'](_0x8ac26f,_0xf23bc8){const _0x34e5d8=_0x18cfd7,_0x46cf40=this[_0x34e5d8(0x2a7)][_0x34e5d8(0x266)](_0x1e4047['UniverInstanceType'][_0x34e5d8(0x32c)]),_0x983c1c=_0x46cf40[_0x34e5d8(0x34f)](_0x8ac26f),_0xe5d42e=this[_0x34e5d8(0x1e1)],_0x2a5778=_0x46cf40[_0x34e5d8(0x1c5)](),_0x44407d=this[_0x34e5d8(0x35e)],{top:_0xd3da87,right:_0x4a7bc3,bottom:_0x203230,left:_0x1aaa95}=this[_0x34e5d8(0x358)];_0x44407d['h']-=_0xd3da87+_0x203230,_0x44407d['w']-=_0x1aaa95+_0x4a7bc3;const _0x26289a=this['_renderManagerService'][_0x34e5d8(0x2fb)](_0x2a5778)[_0x34e5d8(0x31d)](_0xe0e368['SheetSkeletonManagerService']);if(_0xf23bc8[_0x34e5d8(0x232)]>-0x1&&_0xf23bc8['startColumn']>-0x1){const _0x334d97=_0x26289a[_0x34e5d8(0x1a4)]({'sheetId':_0x8ac26f});if(!_0x983c1c||!_0x334d97)return null;let _0xcb2148=_0xf23bc8[_0x34e5d8(0x232)];const _0xb6b033=_0xf23bc8[_0x34e5d8(0x204)];let _0x44be09=_0xf23bc8[_0x34e5d8(0x271)];const _0x2ab65b=_0xf23bc8[_0x34e5d8(0x2a3)],_0x5a7df6=_0x983c1c[_0x34e5d8(0x31f)](),_0x20b4e0=_0x2772de(this[_0x34e5d8(0x23f)](_0x334d97,_0xf23bc8,_0x5a7df6));let _0x20beec=-0x1,_0x3079d1=0x0,_0xc46f5d=-0x1,_0x225ec3=0x0;const _0x22a3fe=_0x334d97[_0x34e5d8(0x2d2)],_0x26b9be=_0x334d97[_0x34e5d8(0x2ad)];if(_0x5a7df6['xSplit']&&_0xe5d42e[_0x34e5d8(0x2c8)]['includes'](_0x35b06c['Column'])){if(_0x2ab65b>=_0x5a7df6['startColumn']){const _0xa32a51=_0x20b4e0*(_0x22a3fe[_0x5a7df6[_0x34e5d8(0x271)]-0x1]-(_0x22a3fe[_0x5a7df6['startColumn']-_0x5a7df6[_0x34e5d8(0x1f9)]-0x1]||0x0));_0xa32a51<_0x44407d['w']&&(_0xc46f5d=_0x5a7df6['startColumn'],_0x225ec3=_0x5a7df6['xSplit'],_0x44407d['w']-=_0xa32a51);}else{const _0x1ae2a8=_0x2ab65b+0x1,_0x5837e6=_0x2ab65b+0x1-(_0x5a7df6[_0x34e5d8(0x271)]-_0x5a7df6[_0x34e5d8(0x1f9)]),_0x21904e=_0x20b4e0*(_0x22a3fe[_0xc46f5d-0x1]-(_0x22a3fe[_0xc46f5d-_0x225ec3]-0x1||0x0));_0x21904e<_0x44407d['w']&&(_0xc46f5d=_0x1ae2a8,_0x225ec3=_0x5837e6,_0x44407d['w']-=_0x21904e);}}if(_0x44be09=Math[_0x34e5d8(0x279)](_0xc46f5d,_0x44be09),_0x5a7df6[_0x34e5d8(0x24d)]&&_0xe5d42e[_0x34e5d8(0x2c8)]['includes'](_0x35b06c[_0x34e5d8(0x22d)])){if(_0xb6b033>=_0x5a7df6['startRow']){const _0xf46ada=_0x26b9be[_0x5a7df6[_0x34e5d8(0x232)]]-_0x26b9be[_0x5a7df6['startRow']-_0x5a7df6[_0x34e5d8(0x24d)]];_0xf46ada<_0x44407d['h']&&(_0x20beec=_0x5a7df6[_0x34e5d8(0x232)],_0x3079d1=_0x5a7df6['ySplit'],_0x44407d['h']-=_0xf46ada);}else _0x20beec=_0xb6b033+0x1,_0x3079d1=_0xb6b033+0x1-(_0x5a7df6[_0x34e5d8(0x232)]-_0x5a7df6[_0x34e5d8(0x24d)]),_0x44407d['h']=_0x44407d['h']-_0x26b9be[_0x20beec]-_0x26b9be[_0x20beec-_0x3079d1];}return _0xcb2148=Math[_0x34e5d8(0x279)](_0x20beec,_0xcb2148),{'unitId':_0x2a5778,'subUnitId':_0x8ac26f,'range':{'startRow':_0xcb2148,'endRow':_0xb6b033,'startColumn':_0x44be09,'endColumn':_0x2ab65b},'freeze':{'startRow':_0x20beec,'startColumn':_0xc46f5d,'xSplit':_0x225ec3,'ySplit':_0x3079d1},'contentSize':_0x44407d,'scale':_0x20b4e0};}return{'unitId':_0x2a5778,'subUnitId':_0x8ac26f,'range':{'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},'freeze':{'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0},'contentSize':_0x44407d,'scale':0x1};}[_0x18cfd7(0x23f)](_0x4557b1,_0x3a0ecd,_0x22341f){const _0x169dbf=_0x18cfd7,_0x55f5d8=_0x4557b1[_0x169dbf(0x2d2)],_0x5ae768=_0x4557b1[_0x169dbf(0x2ad)],{xSplit:_0x5eafba,ySplit:_0x3fe05d,startColumn:_0x28e4b6,startRow:_0x2b06b6}=_0x22341f;let {startRow:_0x7aefa1,startColumn:_0x5795de}=_0x3a0ecd;const {endColumn:_0x3086f8,endRow:_0x4840c9}=_0x3a0ecd;_0x7aefa1=_0x4840c9<_0x2b06b6?_0x7aefa1:Math[_0x169dbf(0x279)](_0x2b06b6,_0x7aefa1),_0x5795de=_0x3086f8<_0x28e4b6?_0x5795de:Math[_0x169dbf(0x279)](_0x28e4b6,_0x5795de);const {scale:_0x5737b1,customScale:_0x59c22b}=this[_0x169dbf(0x1e1)],_0x29b426=this[_0x169dbf(0x35e)],_0x2ec7b0=this[_0x169dbf(0x358)],_0x5f0f9b=_0x5eafba>0x0?_0x55f5d8[_0x28e4b6-0x1]-(_0x55f5d8[_0x28e4b6-_0x5eafba-0x1]||0x0):0x0,_0x5e5604=_0x3fe05d>0x0?_0x5ae768[_0x2b06b6-0x1]-(_0x5ae768[_0x2b06b6-_0x3fe05d-0x1]||0x0):0x0,_0xc4251f=_0x5ae768[_0x4840c9]-(_0x5ae768[_0x7aefa1-0x1]||0x0),_0x5c7ffd=_0x55f5d8[_0x3086f8]-(_0x55f5d8[_0x5795de-0x1]||0x0),_0x19e5ac=_0xc4251f+_0x5e5604,_0x2804e7=_0x5c7ffd+_0x5f0f9b;switch(_0x5737b1){case _0x8a083[_0x169dbf(0x33e)]['Custom']:return _0x59c22b;case _0x8a083[_0x169dbf(0x33e)][_0x169dbf(0x206)]:return Math[_0x169dbf(0x1fa)](0x1,(_0x29b426['w']-_0x2ec7b0['left']-_0x2ec7b0[_0x169dbf(0x2c3)])/_0x2804e7);case _0x8a083[_0x169dbf(0x33e)][_0x169dbf(0x1eb)]:return Math[_0x169dbf(0x1fa)](0x1,(_0x29b426['h']-_0x2ec7b0['top']-_0x2ec7b0['bottom'])/_0x19e5ac);case _0x8a083[_0x169dbf(0x33e)][_0x169dbf(0x30a)]:return Math[_0x169dbf(0x1fa)](0x1,(_0x29b426['w']-_0x2ec7b0['left']-_0x2ec7b0[_0x169dbf(0x2c3)])/_0x2804e7,(_0x29b426['h']-_0x2ec7b0['top']-_0x2ec7b0[_0x169dbf(0x1dc)])/_0x19e5ac);default:return 0x1;}}['_calculateSubSheetRange'](){const _0x16e309=_0x18cfd7;var _0x1a5dcd;const {area:_0x32bf78,subUnitIds:_0x3a59d0}=this[_0x16e309(0x1e1)],_0x190837=this[_0x16e309(0x2a7)][_0x16e309(0x266)](_0x1e4047['UniverInstanceType'][_0x16e309(0x32c)]),_0x16cd84=_0x190837[_0x16e309(0x1c5)]();switch(_0x32bf78){case _0x311a9b[_0x16e309(0x20a)]:{const _0x42864e=(_0x1a5dcd=_0x190837[_0x16e309(0x29d)]())==null?void 0x0:_0x1a5dcd[_0x16e309(0x289)]();if(_0x42864e!=null){const _0x1b7a5d=this[_0x16e309(0x22e)](_0x16cd84,_0x42864e);return _0x1b7a5d?[_0x1b7a5d]:[this[_0x16e309(0x207)]()];}return[];}case _0x311a9b[_0x16e309(0x26e)]:return[this[_0x16e309(0x207)]()];default:return(_0x3a59d0['length']?_0x3a59d0:_0x190837[_0x16e309(0x2c0)]()[_0x16e309(0x25a)](_0x13bd7b=>_0x13bd7b['getSheetId']()))['map'](_0x18edfe=>this[_0x16e309(0x22e)](_0x16cd84,_0x18edfe))['filter'](Boolean);}}[_0x18cfd7(0x2ae)](_0x377bf2){const _0x18646c=_0x18cfd7,{subUnitId:_0x20e3ec,range:_0x2d15ca,freeze:_0x15add6,unitId:_0xff9db6,scale:_0x19329a,contentSize:_0x3569bf}=_0x377bf2,_0xa71fb7=this[_0x18646c(0x2bf)][_0x18646c(0x2fb)](_0xff9db6)[_0x18646c(0x31d)](_0xe0e368['SheetSkeletonManagerService'])[_0x18646c(0x1a4)]({'sheetId':_0x20e3ec});if(!_0xa71fb7)return;const {rowHeightAccumulation:_0x157577,columnWidthAccumulation:_0x65a28a}=_0xa71fb7,{w:_0x26a5d1,h:_0x5bea4d}=_0x3569bf,{startRow:_0x2c3563,startColumn:_0x554106,endColumn:_0x4bf098,endRow:_0x35d52b}=_0x2d15ca,_0x3c50d1=_0x25f359=>{let _0x1bc4d3=_0x25f359;const _0x3581c9=_0x25f359===0x0?0x0:_0x157577[_0x25f359-0x1];for(;_0x1bc4d3<_0x35d52b;){const _0x30146a=(_0x157577[_0x1bc4d3]-_0x3581c9)*_0x19329a,_0x364d19=(_0x157577[_0x1bc4d3+0x1]-_0x3581c9)*_0x19329a;if(_0x1bc4d3++,_0x30146a>_0x5bea4d||_0x30146a<_0x5bea4d&&_0x364d19>_0x5bea4d)return{'startRow':_0x25f359,'endRow':_0x1bc4d3-0x1};}return{'startRow':_0x25f359,'endRow':_0x1bc4d3};},_0x5c8b1a=_0x7d90f7=>{let _0x47537a=_0x7d90f7;const _0x5ac34e=_0x7d90f7===0x0?0x0:_0x65a28a[_0x7d90f7-0x1];for(;_0x47537a<_0x4bf098;){const _0xbe19a5=(_0x65a28a[_0x47537a]-_0x5ac34e)*_0x19329a,_0x35f37f=(_0x65a28a[_0x47537a+0x1]-_0x5ac34e)*_0x19329a;if(_0x47537a++,_0xbe19a5<_0x26a5d1&&_0x35f37f>_0x26a5d1||_0xbe19a5>=_0x26a5d1)return{'startColumn':_0x7d90f7,'endColumn':_0x47537a-0x1};}return{'startColumn':_0x7d90f7,'endColumn':_0x47537a};},_0x4368b4=[];let _0x11f0cb=_0x2c3563;for(;_0x11f0cb<=_0x35d52b;){const _0x5925f0=_0x3c50d1(_0x11f0cb);_0x4368b4[_0x18646c(0x357)](_0x5925f0),_0x11f0cb=_0x5925f0['endRow']+0x1;}const _0x39b060=[];let _0x31fffb=_0x554106;for(;_0x31fffb<=_0x4bf098;){const _0x38f838=_0x5c8b1a(_0x31fffb);_0x39b060['push'](_0x38f838),_0x31fffb=_0x38f838[_0x18646c(0x2a3)]+0x1;}const _0x302414=[];for(let _0x4b9497=0x0;_0x4b9497<_0x4368b4[_0x18646c(0x1c4)];_0x4b9497++)for(let _0x1985e0=0x0;_0x1985e0<_0x39b060['length'];_0x1985e0++)_0x302414[_0x18646c(0x357)]({..._0x4368b4[_0x4b9497],..._0x39b060[_0x1985e0]});return{'unitId':_0xff9db6,'subUnitId':_0x20e3ec,'pages':_0x302414,'freeze':_0x15add6,'scale':_0x19329a};}};_0x4db0e4=_0x5ca657([_0x3e11f4(0x0,_0x1e4047[_0x18cfd7(0x2f0)]),_0x3e11f4(0x1,_0x41e42f[_0x18cfd7(0x310)](_0x2d1436[_0x18cfd7(0x27d)])),_0x3e11f4(0x2,_0x41e42f['Inject'](_0xe0e368['SheetPrintInterceptorService'])),_0x3e11f4(0x3,_0x269132['IRenderManagerService'])],_0x4db0e4);const _0x5a2065=_0x18cfd7(0x362),_0x5c68b8=_0x18cfd7(0x259),_0xc9a271=_0x18cfd7(0x1e9),_0x16e0e2={'id':_0x18cfd7(0x1ae),'type':_0x1e4047[_0x18cfd7(0x1e8)]['OPERATION'],'handler':_0x2e3d80=>{const _0x2c016b=_0x18cfd7;var _0x8348c3;const _0x373dde=_0x2e3d80['get'](_0x413768[_0x2c016b(0x2f5)]),_0x22cf4a=_0x2e3d80[_0x2c016b(0x1ee)](_0x1e4047[_0x2c016b(0x22a)]),_0x4a5122=_0x2e3d80[_0x2c016b(0x1ee)](_0x1e4047['LocaleService']),_0x58c88d=_0x2e3d80[_0x2c016b(0x1ee)](_0x1e4047[_0x2c016b(0x2f0)]),_0x2866d9=_0x2e3d80[_0x2c016b(0x1ee)](_0x413768['IDialogService']),_0x1fb6c4=_0x58c88d['getCurrentUnitForType'](_0x1e4047['UniverInstanceType'][_0x2c016b(0x32c)])[_0x2c016b(0x1c5)]();if(!((_0x8348c3=_0x22cf4a['getPermissionPoint'](new _0x2d1436[(_0x2c016b(0x273))](_0x1fb6c4)['id']))!=null?_0x8348c3:!0x1)){const _0x2f6b68={'id':_0x5c68b8,'title':{'title':''},'children':{'label':_0xc9a271,'errorMsg':_0x4a5122['t']('permission.dialog.printErr')},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x2866d9[_0x2c016b(0x28a)](_0x5c68b8),'className':'sheet-permission-user-dialog'};throw _0x2866d9[_0x2c016b(0x32f)](_0x2f6b68),new Error('have\x20not\x20permission');}return _0x373dde[_0x2c016b(0x32f)](),!0x0;}},_0x511c7f={'type':_0x1e4047[_0x18cfd7(0x1e8)]['OPERATION'],'id':_0x18cfd7(0x2f4),'handler'(_0x46e3f7){const _0x43678b=_0x18cfd7,_0x560384=_0x46e3f7[_0x43678b(0x1ee)](_0x413768[_0x43678b(0x2f5)]),_0x3d3d3f=_0x46e3f7['get'](_0x4df425);return _0x560384[_0x43678b(0x28a)](),_0x3d3d3f['reset'](),!0x0;}},_0x274cc4={'type':_0x1e4047[_0x18cfd7(0x1e8)][_0x18cfd7(0x345)],'id':_0x18cfd7(0x2b2),'handler'(){return!0x0;}},_0x2a88fe='SHEET_PRINT_PLUGIN';class _0x2999c6 extends _0x1e4047[_0x18cfd7(0x213)]{constructor(_0x28afee,_0x3347ca,_0x4f23e7=!0x0,_0x35c143=0x1){const _0x42671a=_0x18cfd7;super(),_0x540577(this,_0x42671a(0x304)),_0x540577(this,_0x42671a(0x219)),_0x540577(this,_0x42671a(0x22c)),_0x540577(this,_0x42671a(0x2d4)),_0x540577(this,_0x42671a(0x228)),_0x540577(this,_0x42671a(0x27b)),_0x540577(this,_0x42671a(0x21a)),_0x540577(this,_0x42671a(0x28b)),_0x540577(this,'_viewLeftTop'),_0x540577(this,_0x42671a(0x327),document[_0x42671a(0x2b4)](_0x42671a(0x1ed))),_0x540577(this,'_sheetPrintManagerService'),_0x540577(this,_0x42671a(0x1f1)),_0x540577(this,_0x42671a(0x2a7)),_0x540577(this,_0x42671a(0x336),!0x0),_0x540577(this,_0x42671a(0x33f)),_0x540577(this,'_spreadsheetObject'),_0x540577(this,_0x42671a(0x224),0x0),_0x540577(this,_0x42671a(0x299),0x0),(this['_accessor']=_0x28afee,this['_config']=_0x3347ca,this[_0x42671a(0x227)]=_0x4f23e7,this['_previewScale']=_0x35c143);const {unitId:_0x80a85,subUnitId:_0x3d69a2}=this[_0x42671a(0x2f1)];this[_0x42671a(0x2d4)]=_0x80a85,this[_0x42671a(0x228)]=_0x3d69a2,this[_0x42671a(0x22c)]=_0x80a85+'_'+_0x3d69a2,this[_0x42671a(0x340)]=this[_0x42671a(0x2e8)]['get'](_0x4df425),this[_0x42671a(0x2a7)]=this['_accessor'][_0x42671a(0x1ee)](_0x1e4047[_0x42671a(0x2f0)]);const _0x16fcc8=this[_0x42671a(0x2e8)][_0x42671a(0x1ee)](_0x269132[_0x42671a(0x1c7)]);this[_0x42671a(0x33f)]=_0x16fcc8[_0x42671a(0x2fb)](_0x80a85);const _0x536134=this[_0x42671a(0x33f)][_0x42671a(0x31d)](_0xe0e368['SheetSkeletonManagerService'])[_0x42671a(0x1a4)]({'sheetId':_0x3d69a2});this['_skeleton']=_0x536134,this[_0x42671a(0x2df)]();}get[_0x18cfd7(0x2d5)](){return this['_key'];}get[_0x18cfd7(0x26b)](){const _0x4e391c=_0x18cfd7;return this[_0x4e391c(0x304)];}get[_0x18cfd7(0x2a0)](){const _0x8f67e1=_0x18cfd7;return this[_0x8f67e1(0x327)];}get[_0x18cfd7(0x211)](){const _0x53ce11=_0x18cfd7;return this[_0x53ce11(0x340)][_0x53ce11(0x365)];}get['_layoutConfig'](){return this['_sheetPrintManagerService']['layoutConfig'];}[_0x18cfd7(0x24a)](){const _0x3f213c=_0x18cfd7;var _0x288aa0;super[_0x3f213c(0x24a)](),(_0x288aa0=this[_0x3f213c(0x327)][_0x3f213c(0x2b7)])==null||_0x288aa0[_0x3f213c(0x322)](this[_0x3f213c(0x327)]);}get[_0x18cfd7(0x2b6)](){const _0x2ba252=_0x18cfd7,{w:_0x423d66,h:_0x4b0de9}=this[_0x2ba252(0x340)]['paperSize'];return{'w':_0x423d66*this[_0x2ba252(0x1f8)],'h':_0x4b0de9*this[_0x2ba252(0x1f8)]};}get[_0x18cfd7(0x212)](){const _0x21d4ce=_0x18cfd7,_0x1b14c2=this[_0x21d4ce(0x340)][_0x21d4ce(0x358)];return{'top':_0x1b14c2[_0x21d4ce(0x1d5)]*this[_0x21d4ce(0x1f8)],'bottom':_0x1b14c2[_0x21d4ce(0x1dc)]*this[_0x21d4ce(0x1f8)],'left':_0x1b14c2['left']*this['_previewScale'],'right':_0x1b14c2[_0x21d4ce(0x2c3)]*this['_previewScale']};}['_initRenderer'](){const _0x507e0f=_0x18cfd7,_0x214ea6=this[_0x507e0f(0x2b6)],_0x31b783=this[_0x507e0f(0x2f1)][_0x507e0f(0x1c3)]*this[_0x507e0f(0x1f8)],_0x1b56e4=this['_isPreview']?Math[_0x507e0f(0x279)](0x1,window['devicePixelRatio']):0x1;this[_0x507e0f(0x304)]=new _0x269132[(_0x507e0f(0x318))](_0x214ea6['w'],_0x214ea6['h'],_0x1b56e4,_0x269132[_0x507e0f(0x309)][_0x507e0f(0x294)]),this['_scene']=new _0x269132[(_0x507e0f(0x25c))](this[_0x507e0f(0x22c)],this[_0x507e0f(0x304)]),this[_0x507e0f(0x219)][_0x507e0f(0x1c3)](_0x31b783,_0x31b783),this[_0x507e0f(0x304)][_0x507e0f(0x250)](this[_0x507e0f(0x327)],this[_0x507e0f(0x227)]),this['_addComponent'](),this[_0x507e0f(0x324)](),this['disposeWithMe']({'dispose':()=>{const _0x14b79d=_0x507e0f;this[_0x14b79d(0x304)][_0x14b79d(0x24a)](),this[_0x14b79d(0x219)][_0x14b79d(0x24a)]();}});}[_0x18cfd7(0x2ce)](_0x3b9601){const _0x11bfed=_0x18cfd7;this[_0x11bfed(0x219)]['scale'](this[_0x11bfed(0x2f1)][_0x11bfed(0x1c3)]*_0x3b9601,this[_0x11bfed(0x2f1)][_0x11bfed(0x1c3)]*_0x3b9601),this['_previewScale']=_0x3b9601,this['markDirty'](!0x0);}['updateConfig'](_0x51e31c){const _0x31bd1b=_0x18cfd7;this[_0x31bd1b(0x2f1)]=_0x51e31c,this[_0x31bd1b(0x22b)](!0x0);}[_0x18cfd7(0x22b)](_0x8cfd62){const _0x47a952=_0x18cfd7;this[_0x47a952(0x336)]=_0x8cfd62;}[_0x18cfd7(0x265)](){const _0x1912d3=_0x18cfd7,_0x397383=new _0x269132[(_0x1912d3(0x23c))](_0x1912d3(0x31b),this[_0x1912d3(0x1f1)],!0x1);_0x397383['isPrinting']=!0x0,this[_0x1912d3(0x219)][_0x1912d3(0x2d3)](_0x397383),this[_0x1912d3(0x313)]=_0x397383;const _0x5b2502=this[_0x1912d3(0x2e8)]['get'](_0xe0e368['SheetPrintInterceptorService']);_0x5b2502[_0x1912d3(0x1a3)][_0x1912d3(0x257)](_0x5b2502[_0x1912d3(0x1a3)][_0x1912d3(0x28c)]()[_0x1912d3(0x278)])(void 0x0,{'unitId':this['_unitId'],'subUnitId':this[_0x1912d3(0x228)],'scene':this[_0x1912d3(0x219)]});}[_0x18cfd7(0x324)](){const _0x1ab698=_0x18cfd7;this[_0x1ab698(0x27b)]=new _0x269132[(_0x1ab698(0x2a4))](_0xe0e368[_0x1ab698(0x32a)][_0x1ab698(0x2ac)],this['_scene']),this[_0x1ab698(0x21a)]=new _0x269132[(_0x1ab698(0x2a4))](_0xe0e368[_0x1ab698(0x32a)][_0x1ab698(0x356)],this[_0x1ab698(0x219)]),this[_0x1ab698(0x28b)]=new _0x269132[(_0x1ab698(0x2a4))](_0xe0e368[_0x1ab698(0x32a)]['VIEW_MAIN_TOP'],this[_0x1ab698(0x219)]),this['_viewLeftTop']=new _0x269132[(_0x1ab698(0x2a4))](_0xe0e368[_0x1ab698(0x32a)][_0x1ab698(0x1f3)],this['_scene']);}[_0x18cfd7(0x28e)](){const _0x57e80a=_0x18cfd7,{freeze:_0x13e64c,range:_0x48bf4f}=this['_config'],{xSplit:_0x37007e,ySplit:_0x25c64e,startColumn:_0x5d0657,startRow:_0x125611}=_0x13e64c,{rowHeaderWidth:_0xd491d1,columnHeaderHeight:_0x4912c2}=this[_0x57e80a(0x1f1)];this[_0x57e80a(0x219)]['scale'](this[_0x57e80a(0x2f1)][_0x57e80a(0x1c3)]*this[_0x57e80a(0x1f8)],this[_0x57e80a(0x2f1)][_0x57e80a(0x1c3)]*this[_0x57e80a(0x1f8)]);const _0x1b5674=this[_0x57e80a(0x1f1)][_0x57e80a(0x1e7)](_0x125611-_0x25c64e,_0x5d0657-_0x37007e),_0x4ac558=this['_skeleton'][_0x57e80a(0x1e7)](_0x125611,_0x5d0657),_0x1ee1f2=_0x37007e>0x0?_0x4ac558['startX']-_0x1b5674[_0x57e80a(0x33d)]:0x0,_0x33f150=_0x25c64e>0x0?_0x4ac558[_0x57e80a(0x1b5)]-_0x1b5674[_0x57e80a(0x1b5)]:0x0,_0x49e810={'startX':_0x37007e>0x0?_0x1b5674[_0x57e80a(0x33d)]:0x0,'endX':_0x37007e>0x0?_0x4ac558[_0x57e80a(0x33d)]:0x0,'startY':_0x25c64e>0x0?_0x1b5674['startY']:0x0,'endY':_0x25c64e>0x0?_0x4ac558[_0x57e80a(0x1b5)]:0x0},_0x34e1b7=this[_0x57e80a(0x1f1)][_0x57e80a(0x1e7)](_0x48bf4f[_0x57e80a(0x232)],_0x48bf4f[_0x57e80a(0x271)]),_0x4c7163=this[_0x57e80a(0x219)][_0x57e80a(0x2e1)](),_0x13f1e8=_0x53697f=>_0x269132[_0x57e80a(0x329)](_0x53697f,_0x4c7163['scaleX']),_0x28a4af=_0x504ecd=>_0x269132['fixLineWidthByScale'](_0x504ecd,_0x4c7163[_0x57e80a(0x36e)]),_0xab5510=this[_0x57e80a(0x1f1)]['getNoMergeCellPositionByIndexWithNoHeader'](_0x48bf4f[_0x57e80a(0x204)],_0x48bf4f[_0x57e80a(0x2a3)]),_0x45bbb3=Math[_0x57e80a(0x279)](0x0,_0x13f1e8(_0xab5510[_0x57e80a(0x296)])-Math['max'](_0x34e1b7['startX'],_0x49e810[_0x57e80a(0x296)])),_0xffcafe=Math[_0x57e80a(0x279)](0x0,_0x28a4af(_0xab5510[_0x57e80a(0x29c)])-_0x28a4af(Math[_0x57e80a(0x279)](_0x34e1b7[_0x57e80a(0x1b5)],_0x49e810['endY']))),_0x28492f=0x1/Math[_0x57e80a(0x279)](_0x4c7163[_0x57e80a(0x220)],_0x4c7163['scaleY']),_0x1208b8=_0x1ee1f2+_0x45bbb3+_0x28492f,_0x37fc77=_0x33f150+_0xffcafe+_0x28492f;this[_0x57e80a(0x224)]=_0x1208b8,this[_0x57e80a(0x299)]=_0x37fc77;const _0x5c210c={'x':_0x1ee1f2,'y':_0x33f150},_0x57514c=_0x28492f,_0x106535=_0x28492f,_0x5bb4de={'x':_0x13f1e8(_0xab5510[_0x57e80a(0x296)])-_0x13f1e8(_0x45bbb3)-_0x13f1e8(Math[_0x57e80a(0x279)](_0x34e1b7[_0x57e80a(0x33d)],_0x49e810[_0x57e80a(0x296)])),'y':_0x28a4af(_0xab5510[_0x57e80a(0x29c)])-_0x28a4af(_0xffcafe)-_0x28a4af(Math[_0x57e80a(0x279)](_0x34e1b7[_0x57e80a(0x1b5)],_0x49e810[_0x57e80a(0x29c)]))};_0x37007e>0x0&&_0x25c64e>0x0?(this[_0x57e80a(0x1a6)][_0x57e80a(0x23a)](),this[_0x57e80a(0x1a6)][_0x57e80a(0x306)]({'top':0x0,'left':0x0,'height':_0x28a4af(_0x5c210c['y']),'width':_0x13f1e8(_0x5c210c['x'])}),this['_viewLeftTop'][_0x57e80a(0x2fc)]({'viewportScrollX':_0x13f1e8(_0x49e810[_0x57e80a(0x33d)])+_0x13f1e8(_0xd491d1),'viewportScrollY':_0x28a4af(_0x49e810[_0x57e80a(0x1b5)])+_0x28a4af(_0x4912c2)})):this['_viewLeftTop'][_0x57e80a(0x2b8)](),_0x37007e>0x0?(this[_0x57e80a(0x21a)][_0x57e80a(0x23a)](),this[_0x57e80a(0x21a)][_0x57e80a(0x306)]({'top':_0x13f1e8(_0x5c210c['y']),'left':0x0,'height':_0x28a4af(_0xffcafe)+_0x57514c+_0x5bb4de['y'],'width':_0x13f1e8(_0x5c210c['x'])}),this[_0x57e80a(0x21a)][_0x57e80a(0x2fc)]({'viewportScrollX':_0x13f1e8(_0x49e810[_0x57e80a(0x33d)])+_0x13f1e8(_0xd491d1),'viewportScrollY':_0x28a4af(_0x34e1b7[_0x57e80a(0x1b5)])+_0x28a4af(_0x4912c2)-_0x28a4af(_0x5c210c['y'])})):this['_viewLeft'][_0x57e80a(0x2b8)](),_0x25c64e>0x0?(this['_viewTop'][_0x57e80a(0x23a)](),this[_0x57e80a(0x28b)][_0x57e80a(0x306)]({'top':0x0,'left':_0x13f1e8(_0x5c210c['x']),'height':_0x28a4af(_0x5c210c['y']),'width':_0x13f1e8(_0x45bbb3)+_0x106535+_0x5bb4de['x']}),this[_0x57e80a(0x28b)]['updateScroll']({'viewportScrollX':_0x13f1e8(_0x34e1b7['startX'])+_0x13f1e8(_0xd491d1)-_0x13f1e8(_0x5c210c['x']),'viewportScrollY':_0x28a4af(_0x49e810[_0x57e80a(0x1b5)])+_0x28a4af(_0x4912c2)})):this[_0x57e80a(0x28b)][_0x57e80a(0x2b8)](),this[_0x57e80a(0x27b)][_0x57e80a(0x306)]({'top':_0x28a4af(_0x5c210c['y']),'left':_0x13f1e8(_0x5c210c['x']),'height':_0x28a4af(_0xffcafe)+_0x57514c+_0x5bb4de['y'],'width':_0x13f1e8(_0x45bbb3)+_0x106535+_0x5bb4de['x']}),this[_0x57e80a(0x27b)]['updateScroll']({'viewportScrollX':_0x13f1e8(_0x34e1b7[_0x57e80a(0x33d)])+_0x13f1e8(_0xd491d1)-_0x13f1e8(_0x5c210c['x']),'viewportScrollY':_0x28a4af(_0x34e1b7['startY'])+_0x28a4af(_0x4912c2)-_0x28a4af(_0x5c210c['y'])});}[_0x18cfd7(0x36f)](){const _0x1903a1=_0x18cfd7,_0x4c7586=this[_0x1903a1(0x212)],{vAlign:_0x522289,hAlign:_0x545604}=this['_renderConfig'],_0x36c0e8=Math[_0x1903a1(0x279)](this['_scene'][_0x1903a1(0x220)],this['_scene'][_0x1903a1(0x36e)]);let _0x54353b;switch(_0x545604){case _0x8a083[_0x1903a1(0x333)][_0x1903a1(0x35d)]:_0x54353b=_0x4c7586[_0x1903a1(0x1ac)];break;case _0x8a083[_0x1903a1(0x333)][_0x1903a1(0x25b)]:_0x54353b=this[_0x1903a1(0x2b6)]['w']-this[_0x1903a1(0x224)]*_0x36c0e8-_0x4c7586[_0x1903a1(0x2c3)];break;default:_0x54353b=_0x4c7586[_0x1903a1(0x1ac)]+(this[_0x1903a1(0x2b6)]['w']-this[_0x1903a1(0x224)]*_0x36c0e8-_0x4c7586['left']-_0x4c7586[_0x1903a1(0x2c3)])/0x2;break;}let _0x5da5bc;switch(_0x522289){case _0x8a083[_0x1903a1(0x333)]['Start']:_0x5da5bc=_0x4c7586[_0x1903a1(0x1d5)];break;case _0x8a083[_0x1903a1(0x333)][_0x1903a1(0x25b)]:_0x5da5bc=this[_0x1903a1(0x2b6)]['h']-this['_totalHeight']*_0x36c0e8-_0x4c7586['bottom'];break;default:_0x5da5bc=(this[_0x1903a1(0x2b6)]['h']-this[_0x1903a1(0x299)]*_0x36c0e8-_0x4c7586[_0x1903a1(0x1d5)]-_0x4c7586[_0x1903a1(0x1dc)])/0x2+_0x4c7586[_0x1903a1(0x1d5)];break;}return{'offsetX':Math[_0x1903a1(0x2c2)](_0x54353b),'offsetY':Math['round'](_0x5da5bc)};}[_0x18cfd7(0x1ba)](){const _0x232b2e=_0x18cfd7;this[_0x232b2e(0x28e)]();}[_0x18cfd7(0x2ee)](){const _0x515bfc=_0x18cfd7;this['_dirty']&&this[_0x515bfc(0x1ba)]();const _0x102017=this[_0x515bfc(0x304)][_0x515bfc(0x1be)]()[_0x515bfc(0x335)](),{gridlines:_0x16855a}=this['_renderConfig'],{offsetX:_0x31a759,offsetY:_0x2ace97}=this['_getTranslateOffset']();this[_0x515bfc(0x313)]['setForceDisableGridlines'](!_0x16855a),this[_0x515bfc(0x313)][_0x515bfc(0x1d9)](),this[_0x515bfc(0x219)][_0x515bfc(0x231)](),_0x102017['save'](),_0x102017[_0x515bfc(0x1cd)](_0x31a759,_0x2ace97),this['_scene'][_0x515bfc(0x30e)](),_0x102017[_0x515bfc(0x25e)]();}[_0x18cfd7(0x1fc)](){const _0x533879=_0x18cfd7,_0x5a4c5d=this[_0x533879(0x2a7)]['getUniverSheetInstance'](this['_config'][_0x533879(0x1b2)]),_0x5287e6=_0x5a4c5d==null?void 0x0:_0x5a4c5d[_0x533879(0x34f)](this[_0x533879(0x2f1)][_0x533879(0x201)]),{headerFooter:_0x16db67}=this[_0x533879(0x211)],{w:_0x3ce901,h:_0x152489}=this[_0x533879(0x2b6)],_0x21fef2=this['_engine']['getCanvas']()[_0x533879(0x335)]();if(!_0x5a4c5d||!_0x5287e6)return;_0x21fef2[_0x533879(0x2a6)](),_0x21fef2[_0x533879(0x1e0)]='13px\x20'+_0x269132[_0x533879(0x2e4)];const _0x357a95=0x13*this[_0x533879(0x1f8)],_0x2e3170=0x14*this['_previewScale'];if(_0x16db67[_0x533879(0x240)](_0x12ed6f[_0x533879(0x332)])||_0x16db67['includes'](_0x12ed6f[_0x533879(0x29f)])){let _0x4023fc=new Date()['toLocaleString']();_0x16db67[_0x533879(0x240)](_0x12ed6f['Date'])?_0x16db67[_0x533879(0x240)](_0x12ed6f['Time'])||(_0x4023fc=new Date()[_0x533879(0x297)]()):_0x4023fc=new Date()[_0x533879(0x23e)](),_0x21fef2[_0x533879(0x234)](_0x4023fc,_0x357a95,_0x152489-_0x2e3170);}_0x16db67[_0x533879(0x1a5)](_0x2136a5=>{const _0x2de356=_0x533879;switch(_0x2136a5){case _0x12ed6f[_0x2de356(0x28d)]:{const _0x3f6544=_0x5a4c5d[_0x2de356(0x2aa)](),_0x224ca3=_0x21fef2[_0x2de356(0x314)](_0x3f6544),_0x1ff3b6=_0x224ca3[_0x2de356(0x2bb)]+_0x224ca3[_0x2de356(0x2de)];_0x21fef2[_0x2de356(0x234)](_0x3f6544,_0x357a95,_0x2e3170+_0x1ff3b6);break;}case _0x12ed6f['WorksheetTitle']:{const _0x1c1cf1=_0x5287e6[_0x2de356(0x2aa)](),_0x349c05=_0x21fef2[_0x2de356(0x314)](_0x1c1cf1),_0x30f5ef=_0x349c05[_0x2de356(0x2bb)]+_0x349c05[_0x2de356(0x2de)];_0x21fef2[_0x2de356(0x234)](_0x1c1cf1,_0x3ce901-(_0x349c05[_0x2de356(0x31c)]+_0x357a95),_0x2e3170+_0x30f5ef);break;}case _0x12ed6f['PageSize']:{const _0x5dfa33=''+this['_config'][_0x2de356(0x229)],_0x189969=_0x21fef2[_0x2de356(0x314)](_0x5dfa33);_0x21fef2['fillText'](_0x5dfa33,_0x3ce901-(_0x189969[_0x2de356(0x31c)]+_0x357a95),_0x152489-_0x2e3170);break;}}}),_0x21fef2['restore']();}[_0x18cfd7(0x2fe)](){const _0x2afb5d=_0x18cfd7;{const _0x54f6a3=this[_0x2afb5d(0x2e8)][_0x2afb5d(0x1ee)](_0x1e4047['LocaleService']),_0x53c585=this[_0x2afb5d(0x304)][_0x2afb5d(0x1be)]()[_0x2afb5d(0x335)]();_0x53c585['save']();const _0x2b5670=0x14*this['_previewScale'];_0x53c585['fillStyle']='rgba(0,0,0,0.3)',_0x53c585['font']=_0x2afb5d(0x2ef)+_0x269132['DEFAULT_FONTFACE_PLANE'];const _0x1748bf=_0x53c585['measureText'](_0x54f6a3['t'](_0x2afb5d(0x274))),_0x37398f=(this[_0x2afb5d(0x2b6)]['w']-_0x1748bf[_0x2afb5d(0x31c)])/0x2,_0x49e20e=_0x1748bf[_0x2afb5d(0x2bb)]+_0x1748bf['fontBoundingBoxDescent'];_0x53c585[_0x2afb5d(0x234)](_0x54f6a3['t'](_0x2afb5d(0x274)),_0x37398f,_0x2b5670+_0x49e20e),_0x53c585['fillText'](_0x54f6a3['t']('print.limit.waterMark'),_0x37398f,this[_0x2afb5d(0x2b6)]['h']-_0x2b5670),_0x53c585[_0x2afb5d(0x25e)]();}}['render'](){const _0x12af6a=_0x18cfd7;this['_engine'][_0x12af6a(0x2a8)](),this[_0x12af6a(0x2ee)](),this[_0x12af6a(0x1fc)](),this['_renderWaterMark']();}[_0x18cfd7(0x342)](){const _0x48cbe2=_0x18cfd7,_0xf6caef=this[_0x48cbe2(0x26b)][_0x48cbe2(0x203)][_0x48cbe2(0x2e6)](()=>{this['render']();});this[_0x48cbe2(0x235)]({'dispose':()=>_0xf6caef==null?void 0x0:_0xf6caef['dispose']()});}}function _0x4decb4(_0x205423){const _0x164144=_0x18cfd7,[_0x6832dd,_0x645fad]=_0x4f8dd3[_0x164144(0x239)]();return _0x4f8dd3[_0x164144(0x21b)](()=>{const _0xd2c0f1=_0x164144;_0x205423[_0xd2c0f1(0x2b0)](_0x434cde=>{_0x645fad(()=>_0x434cde);});},[]),_0x6832dd;}const _0x501fc8={'sheetsPrint':_0x18cfd7(0x359),'sheetsPrintLimit':_0x18cfd7(0x2c9),'sheetsPrintHeader':'univer-sheets-print-header','sheetsPrintHeaderLeft':'univer-sheets-print-header-left','sheetsPrintHeaderRight':_0x18cfd7(0x350),'sheetsPrintContent':'univer-sheets-print-content','sheetsPrintContentPreview':'univer-sheets-print-content-preview','sheetsPrintContentPreviewPage':_0x18cfd7(0x241),'sheetsPrintContentPreviewControl':_0x18cfd7(0x1f2),'sheetsPrintContentPreviewControlItem':_0x18cfd7(0x1cb),'sheetsPrintContentSetting':_0x18cfd7(0x1ca),'sheetsPrintContentSettingForm':_0x18cfd7(0x1d1)},_0x569dd7=0x31a,_0x25c35a=(_0x165169,_0x53eba4)=>{const _0xbce898=_0x18cfd7,_0x3c686e=_0x4f8dd3[_0xbce898(0x1b1)](!0x1);_0x4f8dd3[_0xbce898(0x21b)](()=>{const _0x41818b=_0xbce898;if(_0x3c686e[_0x41818b(0x35a)])return _0x165169();_0x3c686e[_0x41818b(0x35a)]=!0x0;},_0x53eba4);},_0x5143ca=_0x4689aa=>{const _0x4d6e36=_0x18cfd7,{config:_0x5110ea,previewScale:_0x5d9071}=_0x4689aa,_0xa90b22=_0x13cf17[_0x4d6e36(0x237)](_0x4df425),_0x58a99d=_0x13cf17[_0x4d6e36(0x237)](_0x41e42f[_0x4d6e36(0x1ce)]),_0x199164=_0x4f8dd3['useRef'](null),_0x2ca869=_0xa90b22[_0x4d6e36(0x35e)],_0x25e293=_0x413768[_0x4d6e36(0x246)](_0xa90b22[_0x4d6e36(0x27f)],_0xa90b22['renderConfig']),_0x36f7de=_0x413768[_0x4d6e36(0x246)](_0xa90b22[_0x4d6e36(0x1f5)],_0xa90b22[_0x4d6e36(0x2d1)]),_0xc71037=Math[_0x4d6e36(0x2c2)](_0x5d9071*(_0x569dd7/_0x2ca869['w'])*0xa)/0xa,[_0x34f207]=_0x4f8dd3[_0x4d6e36(0x239)](()=>new _0x2999c6(_0x58a99d,_0x5110ea,!0x0,_0xc71037));return _0x4f8dd3[_0x4d6e36(0x21b)](()=>(_0x199164[_0x4d6e36(0x35a)]&&(_0x34f207[_0x4d6e36(0x2a0)][_0x4d6e36(0x20f)][_0x4d6e36(0x31c)]=_0x4d6e36(0x29a),_0x34f207[_0x4d6e36(0x2a0)]['style'][_0x4d6e36(0x1d2)]=_0x4d6e36(0x29a),_0x199164[_0x4d6e36(0x35a)][_0x4d6e36(0x280)](_0x34f207['container'])),_0x34f207[_0x4d6e36(0x30e)](),_0x34f207[_0x4d6e36(0x342)](),()=>{const _0x28918c=_0x4d6e36;var _0x2b55d7;_0x34f207[_0x28918c(0x24a)](),(_0x2b55d7=_0x199164['current'])==null||_0x2b55d7[_0x28918c(0x322)](_0x34f207[_0x28918c(0x2a0)]);}),[_0x34f207]),_0x25c35a(()=>{const _0x5b7573=_0x4d6e36;_0x34f207[_0x5b7573(0x30e)]();},[_0x25e293]),_0x25c35a(()=>{const _0x21db00=_0x4d6e36;_0x34f207[_0x21db00(0x2ce)](_0xc71037),_0x34f207[_0x21db00(0x26b)][_0x21db00(0x248)](),_0x34f207['render']();},[_0xc71037]),_0x25c35a(()=>{const _0x277f1e=_0x4d6e36;_0x34f207['updateConfig'](_0x5110ea),_0x34f207[_0x277f1e(0x30e)]();},[_0x5110ea[_0x4d6e36(0x2c8)][_0x4d6e36(0x232)],_0x5110ea[_0x4d6e36(0x2c8)][_0x4d6e36(0x271)],_0x5110ea['freeze']['xSplit'],_0x5110ea['freeze'][_0x4d6e36(0x24d)],_0x5110ea[_0x4d6e36(0x1b9)][_0x4d6e36(0x232)],_0x5110ea[_0x4d6e36(0x1b9)][_0x4d6e36(0x204)],_0x5110ea[_0x4d6e36(0x1b9)][_0x4d6e36(0x271)],_0x5110ea[_0x4d6e36(0x1b9)][_0x4d6e36(0x2a3)],_0x5110ea[_0x4d6e36(0x1c3)],_0x36f7de[_0x4d6e36(0x238)]]),_0x4f8dd3[_0x4d6e36(0x2b4)](_0x4d6e36(0x1ed),{'className':_0x501fc8[_0x4d6e36(0x348)],'ref':_0x199164,'style':{'width':_0x2ca869['w']*_0xc71037,'height':_0x2ca869['h']*_0xc71037}});},_0x46f776=_0x4f8dd3[_0x18cfd7(0x242)](()=>{const _0x5bb447=_0x18cfd7,_0x11bc87=_0x13cf17[_0x5bb447(0x237)](_0x4df425),_0x131530=_0x413768[_0x5bb447(0x246)](_0x11bc87['layoutConfig$'],_0x11bc87['layoutConfig']),_0x299f72=_0x413768[_0x5bb447(0x246)](_0x11bc87[_0x5bb447(0x27f)],_0x11bc87[_0x5bb447(0x365)]),_0x166271=_0x13cf17[_0x5bb447(0x237)](_0x1e4047[_0x5bb447(0x2ca)]),_0x5ca22c=_0x13cf17['useDependency'](_0x1e4047['IUniverInstanceService'])[_0x5bb447(0x266)](_0x1e4047[_0x5bb447(0x334)][_0x5bb447(0x32c)]),_0x17c696=_0x5ca22c[_0x5bb447(0x2c0)](),_0x21f456=_0x5ca22c[_0x5bb447(0x29d)]();if(!_0x21f456)return console[_0x5bb447(0x22f)](_0x5bb447(0x1e3)),null;const _0x4f9279=_0x21f456[_0x5bb447(0x31f)](),_0x1a590e=_0x131530[_0x5bb447(0x214)]!==_0x311a9b[_0x5bb447(0x2f6)]&&_0x4f9279[_0x5bb447(0x1f9)]<=0x0,_0x5d6bce=_0x131530['area']!==_0x311a9b[_0x5bb447(0x2f6)]&&_0x4f9279[_0x5bb447(0x24d)]<=0x0;return _0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x253)],null,_0x4f8dd3[_0x5bb447(0x2b4)](_0x5bb447(0x1ed),{'className':_0x501fc8[_0x5bb447(0x251)]},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t']('print.area.title')},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'width':_0x5bb447(0x29a)},'value':''+_0x131530[_0x5bb447(0x214)],'onChange':_0x1a3e74=>{const _0x16b9fc=_0x5bb447;_0x1a3e74===_0x311a9b[_0x16b9fc(0x2f6)]?_0x11bc87[_0x16b9fc(0x284)]({'area':_0x1a3e74,'subUnitIds':_0x17c696[_0x16b9fc(0x25a)](_0x285a83=>_0x285a83[_0x16b9fc(0x289)]())}):_0x11bc87[_0x16b9fc(0x284)]({'area':_0x1a3e74});},'options':[{'label':_0x166271['t'](_0x5bb447(0x2da)),'value':_0x311a9b[_0x5bb447(0x20a)]},{'label':_0x166271['t'](_0x5bb447(0x2b5)),'value':_0x311a9b[_0x5bb447(0x2f6)]},{'label':_0x166271['t']('print.area.currentSelection'),'value':_0x311a9b[_0x5bb447(0x26e)]}]})),_0x131530[_0x5bb447(0x214)]===_0x311a9b[_0x5bb447(0x2f6)]?_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t'](_0x5bb447(0x2d0))},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'width':_0x5bb447(0x29a)},'value':_0x5bb447(0x326),'onChange':_0x331b04=>{const _0x465fcc=_0x5bb447;_0x11bc87[_0x465fcc(0x284)]({'subUnitIds':_0x331b04});},'options':[{'label':_0x131530[_0x5bb447(0x337)][_0x5bb447(0x1c4)]===_0x17c696['length']||_0x131530[_0x5bb447(0x337)][_0x5bb447(0x1c4)]===0x0?_0x166271['t'](_0x5bb447(0x312)):''+_0x131530[_0x5bb447(0x337)][_0x5bb447(0x1c4)]+_0x166271['t'](_0x5bb447(0x1fe)),'value':_0x5bb447(0x326)}],'dropdownRender':()=>_0x4f8dd3[_0x5bb447(0x2b4)](_0x5bb447(0x1ed),{'style':{'height':0xc8}},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x253)],null,_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['CheckboxGroup'],{'value':_0x131530['subUnitIds'],'onChange':_0x2214e5=>{const _0x10294f=_0x5bb447,_0x44efb3=new Set(_0x2214e5);if(_0x44efb3[_0x10294f(0x2e2)]===0x0)_0x11bc87['updateLayoutConfig']({'subUnitIds':_0x17c696[_0x10294f(0x25a)](_0xcb5d29=>_0xcb5d29[_0x10294f(0x289)]())});else{const _0x21d293=[];_0x17c696[_0x10294f(0x1a5)](_0x23d33f=>{const _0x13a83a=_0x10294f,_0x321a95=_0x23d33f[_0x13a83a(0x289)]();_0x44efb3[_0x13a83a(0x258)](_0x321a95)&&_0x21d293[_0x13a83a(0x357)](_0x321a95);}),_0x11bc87['updateLayoutConfig']({'subUnitIds':_0x21d293});}},'style':{'display':_0x5bb447(0x2c7),'flexDirection':_0x5bb447(0x1df),'padding':0xc}},_0x17c696['map'](_0x34ee20=>_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1b4)],{'key':_0x34ee20[_0x5bb447(0x289)](),'value':_0x34ee20[_0x5bb447(0x289)]()},_0x34ee20[_0x5bb447(0x2aa)]())))))})):null,_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t']('print.size.title')},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'width':_0x5bb447(0x29a)},'value':_0x131530[_0x5bb447(0x35e)],'onChange':_0x28568e=>{const _0x4fdffb=_0x5bb447;_0x11bc87[_0x4fdffb(0x284)]({'paperSize':_0x28568e});},'options':[{'label':_0x166271['t'](_0x5bb447(0x33b)),'value':_0x8a083[_0x5bb447(0x360)]['Letter']},{'label':_0x166271['t'](_0x5bb447(0x1bf)),'value':_0x8a083[_0x5bb447(0x360)][_0x5bb447(0x208)]},{'label':_0x166271['t'](_0x5bb447(0x2d6)),'value':_0x8a083[_0x5bb447(0x360)][_0x5bb447(0x226)]},{'label':_0x166271['t'](_0x5bb447(0x351)),'value':_0x8a083[_0x5bb447(0x360)][_0x5bb447(0x269)]},{'label':_0x166271['t'](_0x5bb447(0x361)),'value':_0x8a083[_0x5bb447(0x360)]['Executive']},{'label':_0x166271['t'](_0x5bb447(0x223)),'value':_0x8a083[_0x5bb447(0x360)]['Folio']},{'label':_0x166271['t'](_0x5bb447(0x2cc)),'value':_0x8a083['PrintPaperSize']['A3']},{'label':_0x166271['t'](_0x5bb447(0x260)),'value':_0x8a083[_0x5bb447(0x360)]['A4']},{'label':_0x166271['t']('print.size.a5'),'value':_0x8a083[_0x5bb447(0x360)]['A5']},{'label':_0x166271['t'](_0x5bb447(0x261)),'value':_0x8a083[_0x5bb447(0x360)]['B4']},{'label':_0x166271['t'](_0x5bb447(0x27a)),'value':_0x8a083['PrintPaperSize']['B5']}]})),_0x4f8dd3['createElement'](_0x1e2733['FormLayout'],{'label':_0x166271['t']('print.margin.title')},_0x4f8dd3['createElement'](_0x1e2733['Select'],{'style':{'width':_0x5bb447(0x29a)},'value':_0x131530['margin'],'onChange':_0x265f72=>{const _0x3561ea=_0x5bb447;_0x11bc87[_0x3561ea(0x284)]({'margin':_0x265f72});},'options':[{'label':_0x166271['t'](_0x5bb447(0x2b9)),'value':_0x8a083[_0x5bb447(0x2c5)][_0x5bb447(0x27c)]},{'label':_0x166271['t'](_0x5bb447(0x36d)),'value':_0x8a083['PrintPaperMargin'][_0x5bb447(0x200)]},{'label':_0x166271['t'](_0x5bb447(0x2be)),'value':_0x8a083[_0x5bb447(0x2c5)][_0x5bb447(0x244)]}]})),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t']('print.orientation.title')},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['RadioGroup'],{'value':_0x131530[_0x5bb447(0x275)],'onChange':_0x4db21a=>{const _0x622155=_0x5bb447;_0x11bc87[_0x622155(0x284)]({'direction':_0x4db21a});}},_0x4f8dd3['createElement'](_0x1e2733['Radio'],{'value':_0x8a083[_0x5bb447(0x346)][_0x5bb447(0x30c)]},_0x166271['t'](_0x5bb447(0x236))),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['Radio'],{'value':_0x8a083[_0x5bb447(0x346)][_0x5bb447(0x1fd)]},_0x166271['t'](_0x5bb447(0x1a9))))),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['FormLayout'],{'label':_0x166271['t']('print.scale.title')},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'width':_0x5bb447(0x29a)},'value':_0x131530[_0x5bb447(0x1c3)],'onChange':_0x382846=>{const _0xf9875f=_0x5bb447;_0x11bc87[_0xf9875f(0x284)]({'scale':_0x382846});},'options':[{'label':_0x166271['t']('print.scale.normal'),'value':_0x8a083[_0x5bb447(0x33e)][_0x5bb447(0x26f)]},{'label':_0x166271['t']('print.scale.fitWidth'),'value':_0x8a083['PrintScale']['FitWidth']},{'label':_0x166271['t']('print.scale.fitHeight'),'value':_0x8a083[_0x5bb447(0x33e)][_0x5bb447(0x1eb)]},{'label':_0x166271['t'](_0x5bb447(0x1fb)),'value':_0x8a083['PrintScale'][_0x5bb447(0x30a)]}]})),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t'](_0x5bb447(0x1d7))},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['Checkbox'],{'checked':_0x299f72[_0x5bb447(0x217)],'onChange':_0x2a9f85=>{const _0x283d46=_0x5bb447;_0x11bc87[_0x283d46(0x343)]({'gridlines':_0x2a9f85});}},_0x166271['t']('print.formatting.skeleton'))),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['FormLayout'],{'label':_0x166271['t'](_0x5bb447(0x1f6))},_0x4f8dd3['createElement'](_0x5bb447(0x1ed),{'style':{'width':_0x5bb447(0x29a),'display':_0x5bb447(0x2c7)}},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'marginRight':0x4,'flex':0x1},'value':_0x299f72[_0x5bb447(0x1ab)],'onChange':_0x476d93=>{_0x11bc87['updateRenderConfig']({'hAlign':_0x476d93});},'options':[{'label':_0x166271['t'](_0x5bb447(0x316)),'value':_0x8a083['PrintAlign'][_0x5bb447(0x24c)]},{'label':_0x166271['t'](_0x5bb447(0x2a5)),'value':_0x8a083['PrintAlign'][_0x5bb447(0x35d)]},{'label':_0x166271['t'](_0x5bb447(0x33a)),'value':_0x8a083[_0x5bb447(0x333)]['End']}]}),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x210)],{'style':{'marginLeft':0x4,'flex':0x1},'value':_0x299f72[_0x5bb447(0x302)],'onChange':_0xa47f73=>{_0x11bc87['updateRenderConfig']({'vAlign':_0xa47f73});},'options':[{'label':_0x166271['t']('print.align.vertical.start'),'value':_0x8a083[_0x5bb447(0x333)]['Start']},{'label':_0x166271['t'](_0x5bb447(0x1bb)),'value':_0x8a083[_0x5bb447(0x333)][_0x5bb447(0x25b)]},{'label':_0x166271['t'](_0x5bb447(0x24e)),'value':_0x8a083['PrintAlign'][_0x5bb447(0x24c)]}]}))),_0x4f8dd3['createElement'](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t'](_0x5bb447(0x2e0))},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x29e)],{'value':_0x299f72['headerFooter'],'onChange':_0x4d656a=>{const _0x2ab063=_0x5bb447;_0x11bc87[_0x2ab063(0x343)]({'headerFooter':_0x4d656a});},'style':{'display':'flex','flexDirection':_0x5bb447(0x1df)}},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1b4)],{'value':_0x12ed6f['PageSize']},_0x166271['t']('print.headerFooter.page')),_0x4f8dd3['createElement'](_0x1e2733['Checkbox'],{'value':_0x12ed6f['WorkbookTitle']},_0x166271['t'](_0x5bb447(0x1b6))),_0x4f8dd3['createElement'](_0x1e2733['Checkbox'],{'value':_0x12ed6f[_0x5bb447(0x1c0)]},_0x166271['t']('print.headerFooter.sheet')),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1b4)],{'value':_0x12ed6f['Date']},_0x166271['t']('print.headerFooter.date')),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['Checkbox'],{'value':_0x12ed6f[_0x5bb447(0x29f)]},_0x166271['t']('print.headerFooter.time')))),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1de)],{'label':_0x166271['t'](_0x5bb447(0x2a1))},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x29e)],{'value':_0x131530[_0x5bb447(0x2c8)],'onChange':_0x2ad618=>{const _0x211b64=_0x5bb447;_0x11bc87[_0x211b64(0x284)]({'freeze':_0x2ad618});},'style':{'display':_0x5bb447(0x2c7),'flexDirection':_0x5bb447(0x1df)}},_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733['Checkbox'],{'disabled':_0x5d6bce,'value':_0x35b06c[_0x5bb447(0x22d)]},_0x166271['t']('print.freeze.row')),_0x4f8dd3[_0x5bb447(0x2b4)](_0x1e2733[_0x5bb447(0x1b4)],{'disabled':_0x1a590e,'value':_0x35b06c['Column']},_0x166271['t'](_0x5bb447(0x247)))))));}),_0x3e2875=0.1,_0x583ef9=0.5,_0x3997e6=0x2,_0x3795a3=()=>{const _0x2a2b54=_0x18cfd7,_0x7b3b05=_0x13cf17[_0x2a2b54(0x237)](_0x4df425),_0x2a2f61=_0x13cf17[_0x2a2b54(0x237)](_0x1e4047[_0x2a2b54(0x1f7)]),_0x170379=_0x413768['useObservable'](_0x7b3b05[_0x2a2b54(0x311)],[]),[_0x5d4f88,_0x4a6f89]=_0x4f8dd3[_0x2a2b54(0x239)](0x1),_0x14602e=_0x4f8dd3[_0x2a2b54(0x1b1)](0x0),_0x295dd5=_0x13cf17[_0x2a2b54(0x237)](_0x1e4047[_0x2a2b54(0x2f0)]),_0x1524fa=_0x13cf17[_0x2a2b54(0x237)](_0x1e4047[_0x2a2b54(0x2ca)]),_0x5cb873=_0x13cf17['useDependency'](_0x41e42f[_0x2a2b54(0x1ce)]),_0x338a5c=_0x4decb4(import('@univerjs-pro/collaboration-client')[_0x2a2b54(0x2b0)](_0x2477e4=>_0x2477e4[_0x2a2b54(0x2b1)]));_0x4f8dd3[_0x2a2b54(0x21b)](()=>{const _0x2ebb56=_0x2a2b54;var _0x399295;if(!_0x338a5c)return;const _0x4f729d=_0x295dd5[_0x2ebb56(0x266)](_0x1e4047['UniverInstanceType']['UNIVER_SHEET'])['getUnitId'](),_0x471461=_0x5cb873[_0x2ebb56(0x1ee)](_0x338a5c,_0x41e42f[_0x2ebb56(0x368)][_0x2ebb56(0x25f)]),_0x3e5b86=(_0x399295=_0x471461==null?void 0x0:_0x471461[_0x2ebb56(0x2af)](_0x4f729d))==null?void 0x0:_0x399295[_0x2ebb56(0x308)]();return()=>{const _0x5b4a42=_0x2ebb56;_0x3e5b86==null||_0x3e5b86[_0x5b4a42(0x24a)]();};},[_0x338a5c,_0x5cb873,_0x295dd5]);const _0x2041e9=_0x4f8dd3[_0x2a2b54(0x34c)](()=>{const _0x3b969d=_0x2a2b54;let _0x530ba2=0x1;return _0x14602e['current']++,_0x170379[_0x3b969d(0x25a)](_0x4ff1cd=>_0x4ff1cd['pages'][_0x3b969d(0x25a)]((_0x57b0a9,_0x57b11f)=>({'page':_0x530ba2++,..._0x4ff1cd,'range':_0x57b0a9,'subPage':_0x57b11f})))[_0x3b969d(0x1c1)]();},[_0x170379])[_0x2a2b54(0x347)](0x0,0x3),_0x42beec=()=>{const _0x42b72f=_0x2a2b54;_0x2a2f61[_0x42b72f(0x319)](_0x511c7f['id']);},_0x5608e1=()=>{const _0x136e87=_0x2a2b54;_0x2a2f61[_0x136e87(0x319)](_0x274cc4['id']);};return _0x4f8dd3[_0x2a2b54(0x2b4)](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x36c)]},_0x4f8dd3['createElement'](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x262)]},_0x4f8dd3[_0x2a2b54(0x2b4)]('div',{'className':_0x501fc8[_0x2a2b54(0x252)]},_0x1524fa['t'](_0x2a2b54(0x21c)),_0x2041e9[_0x2a2b54(0x1c4)],_0x1524fa['t'](_0x2a2b54(0x29b))),_0x4f8dd3[_0x2a2b54(0x2b4)](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x20c)]},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x1e2733[_0x2a2b54(0x32d)],{'onClick':_0x42beec},_0x1524fa['t']('print.header.cancel')),_0x4f8dd3[_0x2a2b54(0x2b4)](_0x1e2733[_0x2a2b54(0x32d)],{'type':_0x2a2b54(0x290),'onClick':_0x5608e1},_0x1524fa['t'](_0x2a2b54(0x35b))))),_0x4f8dd3['createElement'](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x26c)]},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x1dd)]},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x1e2733[_0x2a2b54(0x253)],null,_0x2041e9[_0x2a2b54(0x25a)](_0x2e21d6=>_0x4f8dd3[_0x2a2b54(0x2b4)](_0x5143ca,{'key':_0x2e21d6['unitId']+'-'+_0x2e21d6['subUnitId']+'-'+_0x2e21d6[_0x2a2b54(0x300)],'config':_0x2e21d6,'page':_0x2e21d6[_0x2a2b54(0x229)],'previewScale':_0x5d4f88})),_0x4f8dd3[_0x2a2b54(0x2b4)](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x1c2)]},_0x4f8dd3[_0x2a2b54(0x2b4)]('a',{'href':_0x1524fa['t'](_0x2a2b54(0x1aa)),'target':_0x2a2b54(0x34d)},_0x1524fa['t']('print.limit.page')))),_0x4f8dd3['createElement'](_0x2a2b54(0x1ed),{'className':_0x501fc8[_0x2a2b54(0x2db)]},_0x4f8dd3[_0x2a2b54(0x2b4)]('div',{'className':_0x501fc8[_0x2a2b54(0x34b)],'onClick':()=>{_0x4a6f89(Math['min'](_0x5d4f88+_0x3e2875,_0x3997e6));}},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x114bc2,null)),_0x4f8dd3[_0x2a2b54(0x2b4)]('div',{'className':_0x501fc8['sheetsPrintContentPreviewControlItem'],'onClick':()=>{const _0x26224c=_0x2a2b54;_0x4a6f89(Math[_0x26224c(0x279)](_0x5d4f88-_0x3e2875,_0x583ef9));}},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x15d7d8,null)))),_0x4f8dd3[_0x2a2b54(0x2b4)](_0x2a2b54(0x1ed),{'className':_0x501fc8['sheetsPrintContentSetting']},_0x4f8dd3[_0x2a2b54(0x2b4)](_0x46f776,null))));};var _0x22f8ce=Object[_0x18cfd7(0x202)],_0x940f04=Object[_0x18cfd7(0x330)],_0x17f299=(_0x34f276,_0x2636ea,_0x3c2413,_0x43f2a4)=>{const _0x33cb6b=_0x18cfd7;for(var _0x4847a3=_0x43f2a4>0x1?void 0x0:_0x43f2a4?_0x940f04(_0x2636ea,_0x3c2413):_0x2636ea,_0x28bad5=_0x34f276[_0x33cb6b(0x1c4)]-0x1,_0x44cc44;_0x28bad5>=0x0;_0x28bad5--)(_0x44cc44=_0x34f276[_0x28bad5])&&(_0x4847a3=(_0x43f2a4?_0x44cc44(_0x2636ea,_0x3c2413,_0x4847a3):_0x44cc44(_0x4847a3))||_0x4847a3);return _0x43f2a4&&_0x4847a3&&_0x22f8ce(_0x2636ea,_0x3c2413,_0x4847a3),_0x4847a3;},_0xa8d4a6=(_0x5ed00d,_0x44d2ce)=>(_0x7e0646,_0x1233df)=>_0x44d2ce(_0x7e0646,_0x1233df,_0x5ed00d);let _0x1a91a9=class extends _0x1e4047[_0x18cfd7(0x213)]{constructor(_0x27ddcc,_0x2bb1f7,_0x5775ec,_0x4a33f6){const _0x1e9f89=_0x18cfd7;super(),this[_0x1e9f89(0x1ff)]=_0x27ddcc,this['_commandService']=_0x2bb1f7,this['_injector']=_0x5775ec,this[_0x1e9f89(0x340)]=_0x4a33f6,this[_0x1e9f89(0x2ea)]();}[_0x18cfd7(0x2ea)](){const _0x2de6ad=_0x18cfd7;this[_0x2de6ad(0x2ba)](),this[_0x2de6ad(0x249)](),this['_initConfigChangeListener']();}[_0x18cfd7(0x2ba)](){const _0x5e22a1=_0x18cfd7;this[_0x5e22a1(0x1ff)][_0x5e22a1(0x2f7)](_0x5a2065,_0x3795a3);}[_0x18cfd7(0x2ab)](){const _0x122453=_0x18cfd7;this[_0x122453(0x235)](this[_0x122453(0x1ff)][_0x122453(0x1d3)]['subscribe'](_0x478380=>{const _0x499237=_0x122453;_0x478380&&this[_0x499237(0x340)]['reLayout']();}));}[_0x18cfd7(0x36a)](){const _0x1bca95=_0x18cfd7;let _0x3315f1=this[_0x1bca95(0x340)][_0x1bca95(0x2ed)]['map'](_0x373c2c=>_0x373c2c[_0x1bca95(0x1da)][_0x1bca95(0x25a)](_0x321313=>({..._0x373c2c,'range':_0x321313})))['flat']()[_0x1bca95(0x25a)]((_0x1a0947,_0x5a2304)=>({..._0x1a0947,'page':_0x5a2304+0x1}));_0x3315f1=_0x3315f1[_0x1bca95(0x347)](0x0,0x3);const _0x22d5d6=document['createElement'](_0x1bca95(0x1ed));_0x22d5d6[_0x1bca95(0x354)]=_0x8a083[_0x1bca95(0x1ea)];const _0xb740c=_0x3315f1[_0x1bca95(0x25a)](_0x45d9a1=>{const _0x317b60=_0x1bca95,_0x5793fb=new _0x2999c6(this['_injector'],_0x45d9a1,!0x1);return _0x5793fb[_0x317b60(0x2a0)][_0x317b60(0x354)]=_0x8a083[_0x317b60(0x25d)],_0x5793fb;});_0xb740c[_0x1bca95(0x1a5)](_0x34cda7=>{const _0x3436f7=_0x1bca95;_0x22d5d6[_0x3436f7(0x280)](_0x34cda7['container']);});const _0x593f0e=this['_sheetPrintManagerService'][_0x1bca95(0x2d1)],_0x14902d=_0x8a083[_0x1bca95(0x281)](_0x593f0e[_0x1bca95(0x35e)],_0x593f0e[_0x1bca95(0x275)]);document[_0x1bca95(0x1bd)][_0x1bca95(0x280)](_0x14902d),document[_0x1bca95(0x1bd)]['appendChild'](_0x22d5d6),setTimeout(()=>{const _0x440239=_0x1bca95;window['onbeforeprint']=()=>{const _0x6b0be3=_0x2181;_0xb740c[_0x6b0be3(0x1a5)](_0xcda587=>{const _0x1deb7e=_0x6b0be3;_0xcda587[_0x1deb7e(0x30e)]();});},window['onafterprint']=()=>{const _0x5d166c=_0x2181;_0xb740c[_0x5d166c(0x1a5)](_0x19dbd3=>{const _0x5aed16=_0x5d166c;_0x19dbd3[_0x5aed16(0x24a)]();}),document['body']['removeChild'](_0x22d5d6),document[_0x5d166c(0x1bd)][_0x5d166c(0x322)](_0x14902d),this[_0x5d166c(0x1ff)][_0x5d166c(0x28a)](),this[_0x5d166c(0x340)][_0x5d166c(0x1f4)]();},window[_0x440239(0x352)]();},0x64);}['_initCommandListener'](){const _0x58d966=_0x18cfd7;this[_0x58d966(0x235)](this[_0x58d966(0x353)]['onCommandExecuted'](_0x5b80d1=>{const _0x5146ee=_0x58d966;_0x5b80d1['id']===_0x274cc4['id']&&this[_0x5146ee(0x36a)]();})),this['disposeWithMe'](this['_commandService'][_0x58d966(0x331)](_0x13670a=>{_0x13670a['id']===_0x16e0e2['id']&&this['_printService']['open']();}));}};_0x1a91a9=_0x17f299([_0x1e4047[_0x18cfd7(0x1cc)](_0x1e4047[_0x18cfd7(0x1cf)][_0x18cfd7(0x254)],_0x1a91a9),_0xa8d4a6(0x0,_0x413768[_0x18cfd7(0x2f5)]),_0xa8d4a6(0x1,_0x1e4047['ICommandService']),_0xa8d4a6(0x2,_0x41e42f['Inject'](_0x41e42f[_0x18cfd7(0x1ce)])),_0xa8d4a6(0x3,_0x4df425)],_0x1a91a9);const _0x277290={'id':_0x16e0e2['id'],'binding':_0x413768['KeyCode']['P']|_0x413768[_0x18cfd7(0x1b8)][_0x18cfd7(0x2dc)],'preconditions':_0xe0e368[_0x18cfd7(0x26a)]};function _0xc41074(_0x33f0d6){const _0x487d97=_0x18cfd7;return{'id':_0x16e0e2['id'],'type':_0x413768[_0x487d97(0x23b)][_0x487d97(0x1e5)],'group':_0x413768[_0x487d97(0x28f)][_0x487d97(0x363)],'positions':[_0x413768['MenuPosition'][_0x487d97(0x215)]],'title':_0x487d97(0x270),'icon':_0x487d97(0x349),'tooltip':_0x487d97(0x270),'hidden$':_0x413768[_0x487d97(0x2f3)](_0x33f0d6,_0x1e4047[_0x487d97(0x334)][_0x487d97(0x32c)]),'disabled$':_0xe0e368['getCurrentRangeDisable$'](_0x33f0d6,{'workbookTypes':[_0x2d1436[_0x487d97(0x273)]]})};}var _0x11a994=Object[_0x18cfd7(0x202)],_0x1e578f=Object[_0x18cfd7(0x330)],_0x1e50fd=(_0x133cb2,_0x4fdcef,_0x2bc86c,_0x2648ac)=>{const _0x2901b5=_0x18cfd7;for(var _0x58221d=_0x2648ac>0x1?void 0x0:_0x2648ac?_0x1e578f(_0x4fdcef,_0x2bc86c):_0x4fdcef,_0x4af514=_0x133cb2[_0x2901b5(0x1c4)]-0x1,_0x1568b5;_0x4af514>=0x0;_0x4af514--)(_0x1568b5=_0x133cb2[_0x4af514])&&(_0x58221d=(_0x2648ac?_0x1568b5(_0x4fdcef,_0x2bc86c,_0x58221d):_0x1568b5(_0x58221d))||_0x58221d);return _0x2648ac&&_0x58221d&&_0x11a994(_0x4fdcef,_0x2bc86c,_0x58221d),_0x58221d;},_0x224430=(_0x607907,_0x303569)=>(_0x12a214,_0x11d226)=>_0x303569(_0x12a214,_0x11d226,_0x607907);const _0x1304c0={};_0x297efb[_0x18cfd7(0x1d4)]=(_0x4f1f27=class extends _0x1e4047['Plugin']{constructor(_0x4e7423={},_0x462802,_0xeea129,_0x312dc5,_0x1e3c4a,_0x19ce39,_0x1e1588){const _0x1a47b4=_0x18cfd7;super(),this['_config']=_0x4e7423,this['_injector']=_0x462802,this[_0x1a47b4(0x353)]=_0xeea129,this[_0x1a47b4(0x33c)]=_0x312dc5,this[_0x1a47b4(0x2ec)]=_0x1e3c4a,this['_menuService']=_0x19ce39,this[_0x1a47b4(0x2f8)]=_0x1e1588,this[_0x1a47b4(0x2f1)]=_0x1e4047[_0x1a47b4(0x1ef)][_0x1a47b4(0x1a8)]({},_0x1304c0,this[_0x1a47b4(0x2f1)]);}[_0x18cfd7(0x1c8)](){const _0x4a6e11=_0x18cfd7;[_0x16e0e2,_0x511c7f,_0x274cc4]['forEach'](_0x9474e7=>this[_0x4a6e11(0x353)][_0x4a6e11(0x367)](_0x9474e7)),[[_0x4df425,{'useClass':_0x4db0e4}],[_0x1a91a9]]['forEach'](_0x2ceb16=>this[_0x4a6e11(0x2eb)][_0x4a6e11(0x2e6)](_0x2ceb16)),[_0x277290][_0x4a6e11(0x1a5)](_0x5c4d4b=>{const _0x48d0d9=_0x4a6e11;this[_0x48d0d9(0x2ec)][_0x48d0d9(0x344)](_0x5c4d4b);}),[[_0x4a6e11(0x349),_0x56a846]][_0x4a6e11(0x1a5)](([_0x2e201a,_0x197f37])=>{const _0x3674bc=_0x4a6e11;this['_componentManager'][_0x3674bc(0x21e)](_0x2e201a,_0x197f37);});const {menu:_0x1d4ceb={}}=this['_config'];[_0xc41074][_0x4a6e11(0x1a5)](_0x5f1b15=>{const _0x3b107d=_0x4a6e11;this['_menuService']['addMenuItem'](_0x5f1b15(this[_0x3b107d(0x2eb)]),_0x1d4ceb);});}},_0x540577(_0x4f1f27,_0x18cfd7(0x255),_0x2a88fe),_0x540577(_0x4f1f27,_0x18cfd7(0x293),_0x1e4047[_0x18cfd7(0x334)][_0x18cfd7(0x32c)]),_0x4f1f27),_0x297efb[_0x18cfd7(0x1d4)]=_0x1e50fd([_0x224430(0x1,_0x41e42f[_0x18cfd7(0x310)](_0x41e42f[_0x18cfd7(0x1ce)])),_0x224430(0x2,_0x1e4047[_0x18cfd7(0x1f7)]),_0x224430(0x3,_0x41e42f['Inject'](_0x1e4047['LocaleService'])),_0x224430(0x4,_0x413768[_0x18cfd7(0x277)]),_0x224430(0x5,_0x413768[_0x18cfd7(0x1af)]),_0x224430(0x6,_0x41e42f[_0x18cfd7(0x310)](_0x413768['ComponentManager']))],_0x297efb['UniverSheetsPrintPlugin']),_0x297efb[_0x18cfd7(0x2d8)]=_0x511c7f,_0x297efb[_0x18cfd7(0x2cd)]=_0x274cc4,_0x297efb['SheetPrintOpenOperation']=_0x16e0e2,Object[_0x18cfd7(0x202)](_0x297efb,Symbol[_0x18cfd7(0x205)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-print",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print plugin for Univer Sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"require": "./lib/cjs/*",
|
|
32
32
|
"types": "./lib/types/index.d.ts"
|
|
33
33
|
},
|
|
34
|
-
"./
|
|
35
|
-
"./
|
|
34
|
+
"./lib/*": "./lib/*",
|
|
35
|
+
"./locale/*": "./lib/locale/*.json"
|
|
36
36
|
},
|
|
37
37
|
"main": "./lib/cjs/index.js",
|
|
38
38
|
"module": "./lib/es/index.js",
|
|
@@ -47,41 +47,55 @@
|
|
|
47
47
|
"lib"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@wendellhu/redi": "0.15.
|
|
50
|
+
"@wendellhu/redi": "0.15.4",
|
|
51
51
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
52
52
|
"rxjs": ">=7.0.0",
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/sheets
|
|
59
|
-
"@univerjs/ui": "0.1.
|
|
60
|
-
"@univerjs
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.1.16",
|
|
54
|
+
"@univerjs-pro/print": "0.1.16",
|
|
55
|
+
"@univerjs/core": "0.1.16",
|
|
56
|
+
"@univerjs/design": "0.1.16",
|
|
57
|
+
"@univerjs/engine-render": "0.1.16",
|
|
58
|
+
"@univerjs/sheets": "0.1.16",
|
|
59
|
+
"@univerjs/sheets-ui": "0.1.16",
|
|
60
|
+
"@univerjs/ui": "0.1.16"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@univerjs/icons": "^0.1.
|
|
63
|
+
"@univerjs/icons": "^0.1.56"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
|
-
"@univerjs-pro/collaboration-client": "0.1.
|
|
66
|
+
"@univerjs-pro/collaboration-client": "0.1.16"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@wendellhu/redi": "0.15.
|
|
69
|
+
"@wendellhu/redi": "0.15.4",
|
|
70
70
|
"less": "^4.2.0",
|
|
71
|
-
"react": "18.
|
|
71
|
+
"react": "18.3.1",
|
|
72
72
|
"rxjs": "^7.8.1",
|
|
73
73
|
"typescript": "^5.4.5",
|
|
74
|
-
"vite": "^5.
|
|
74
|
+
"vite": "^5.3.1",
|
|
75
75
|
"vitest": "^1.6.0",
|
|
76
|
-
"@univerjs/
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs/
|
|
79
|
-
"@univerjs/
|
|
80
|
-
"@univerjs-
|
|
81
|
-
"@univerjs/
|
|
82
|
-
"@univerjs/sheets
|
|
83
|
-
"@univerjs/ui": "0.1.
|
|
84
|
-
"@univerjs
|
|
76
|
+
"@univerjs-pro/collaboration-client": "0.1.16",
|
|
77
|
+
"@univerjs-pro/print": "0.1.16",
|
|
78
|
+
"@univerjs/core": "0.1.16",
|
|
79
|
+
"@univerjs/design": "0.1.16",
|
|
80
|
+
"@univerjs/engine-render": "0.1.16",
|
|
81
|
+
"@univerjs/shared": "0.1.16",
|
|
82
|
+
"@univerjs/sheets": "0.1.16",
|
|
83
|
+
"@univerjs/sheets-ui": "0.1.16",
|
|
84
|
+
"@univerjs/ui": "0.1.16"
|
|
85
|
+
},
|
|
86
|
+
"univerSpace": {
|
|
87
|
+
".": {
|
|
88
|
+
"import": "./lib/es/index.js",
|
|
89
|
+
"require": "./lib/cjs/index.js",
|
|
90
|
+
"types": "./lib/types/index.d.ts"
|
|
91
|
+
},
|
|
92
|
+
"./*": {
|
|
93
|
+
"import": "./lib/es/*",
|
|
94
|
+
"require": "./lib/cjs/*",
|
|
95
|
+
"types": "./lib/types/index.d.ts"
|
|
96
|
+
},
|
|
97
|
+
"./lib/*": "./lib/*",
|
|
98
|
+
"./locale/*": "./lib/locale/*.json"
|
|
85
99
|
},
|
|
86
100
|
"scripts": {
|
|
87
101
|
"test": "vitest run",
|