@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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2b7cc4=_0x2f12;(function(_0x921204,_0x3e7ade){const _0x14ce1c=_0x2f12,_0x237711=_0x921204();while(!![]){try{const _0x44894f=-parseInt(_0x14ce1c(0x20d))/0x1+parseInt(_0x14ce1c(0x1e5))/0x2*(-parseInt(_0x14ce1c(0x15c))/0x3)+-parseInt(_0x14ce1c(0x1e7))/0x4+-parseInt(_0x14ce1c(0x119))/0x5*(-parseInt(_0x14ce1c(0x1fa))/0x6)+-parseInt(_0x14ce1c(0x122))/0x7*(parseInt(_0x14ce1c(0x13b))/0x8)+-parseInt(_0x14ce1c(0x1f0))/0x9+parseInt(_0x14ce1c(0x1d7))/0xa;if(_0x44894f===_0x3e7ade)break;else _0x237711['push'](_0x237711['shift']());}catch(_0x4e7ce9){_0x237711['push'](_0x237711['shift']());}}}(_0x41ac,0x2ea4e));var ge=Object[_0x2b7cc4(0x12f)],J=Object[_0x2b7cc4(0x20c)],pe=Object[_0x2b7cc4(0x7c)],fe=Object[_0x2b7cc4(0x101)],me=Object[_0x2b7cc4(0x202)],Se=Object[_0x2b7cc4(0x132)][_0x2b7cc4(0xbd)],_e=(_0x5bf428,_0x246509,_0x1e5765)=>_0x246509 in _0x5bf428?J(_0x5bf428,_0x246509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5765}):_0x5bf428[_0x246509]=_0x1e5765,ve=(_0x27dd5c,_0x158de3,_0x31ed68,_0x1ae272)=>{const _0x6421bc=_0x2b7cc4;if(_0x158de3&&typeof _0x158de3==_0x6421bc(0x8d)||typeof _0x158de3=='function'){for(let _0x20ed8a of fe(_0x158de3))!Se[_0x6421bc(0x121)](_0x27dd5c,_0x20ed8a)&&_0x20ed8a!==_0x31ed68&&J(_0x27dd5c,_0x20ed8a,{'get':()=>_0x158de3[_0x20ed8a],'enumerable':!(_0x1ae272=pe(_0x158de3,_0x20ed8a))||_0x1ae272[_0x6421bc(0x1b6)]});}return _0x27dd5c;},Ce=(_0x1fdbad,_0x3a7c44,_0x35191c)=>(_0x35191c=_0x1fdbad!=null?ge(me(_0x1fdbad)):{},ve(_0x3a7c44||!_0x1fdbad||!_0x1fdbad[_0x2b7cc4(0xfb)]?J(_0x35191c,_0x2b7cc4(0x175),{'value':_0x1fdbad,'enumerable':!0x0}):_0x35191c,_0x1fdbad)),y=(_0x15b300,_0x5841f6,_0x100f40)=>(_e(_0x15b300,typeof _0x5841f6!=_0x2b7cc4(0x8b)?_0x5841f6+'':_0x5841f6,_0x100f40),_0x100f40);Object[_0x2b7cc4(0x20c)](exports,Symbol['toStringTag'],{'value':'Module'});const _=require(_0x2b7cc4(0x183)),k=require(_0x2b7cc4(0x1eb)),W=require(_0x2b7cc4(0xe9)),re=require(_0x2b7cc4(0x168)),U=require(_0x2b7cc4(0x21f)),h=require(_0x2b7cc4(0x9b)),ee=require(_0x2b7cc4(0x19f)),O=require(_0x2b7cc4(0x114)),p=require(_0x2b7cc4(0x185)),V=require(_0x2b7cc4(0x12e)),o=require('react');var A=function(){const _0x2bba66=_0x2b7cc4;return A=Object[_0x2bba66(0xe8)]||function(_0x55ac63){const _0x13c482=_0x2bba66;for(var _0x5276bf,_0x1bdcd0=0x1,_0x53d315=arguments[_0x13c482(0x1a2)];_0x1bdcd0<_0x53d315;_0x1bdcd0++){_0x5276bf=arguments[_0x1bdcd0];for(var _0x21a67d in _0x5276bf)Object[_0x13c482(0x132)]['hasOwnProperty'][_0x13c482(0x121)](_0x5276bf,_0x21a67d)&&(_0x55ac63[_0x21a67d]=_0x5276bf[_0x21a67d]);}return _0x55ac63;},A[_0x2bba66(0x178)](this,arguments);},Pe=function(_0x55c488,_0x280cd5){const _0x2bc1a5=_0x2b7cc4;var _0x451333={};for(var _0x18fe28 in _0x55c488)Object['prototype'][_0x2bc1a5(0xbd)]['call'](_0x55c488,_0x18fe28)&&_0x280cd5[_0x2bc1a5(0x20a)](_0x18fe28)<0x0&&(_0x451333[_0x18fe28]=_0x55c488[_0x18fe28]);if(_0x55c488!=null&&typeof Object[_0x2bc1a5(0xcf)]==_0x2bc1a5(0xca)){for(var _0x578b62=0x0,_0x18fe28=Object[_0x2bc1a5(0xcf)](_0x55c488);_0x578b62<_0x18fe28['length'];_0x578b62++)_0x280cd5['indexOf'](_0x18fe28[_0x578b62])<0x0&&Object['prototype'][_0x2bc1a5(0xe4)]['call'](_0x55c488,_0x18fe28[_0x578b62])&&(_0x451333[_0x18fe28[_0x578b62]]=_0x55c488[_0x18fe28[_0x578b62]]);}return _0x451333;},q=o['forwardRef'](function(_0x4bea46,_0x23fe59){const _0x46059b=_0x2b7cc4;var _0x354040=_0x4bea46[_0x46059b(0x170)],_0x1c1acf=_0x4bea46['id'],_0x2a5a78=_0x4bea46[_0x46059b(0xa7)],_0x1654d2=_0x4bea46[_0x46059b(0xcc)],_0x459051=Pe(_0x4bea46,['icon','id',_0x46059b(0xa7),_0x46059b(0xcc)]),_0x274ac7=_0x46059b(0xd8)[_0x46059b(0x94)](_0x1c1acf,'\x20')[_0x46059b(0x94)](_0x2a5a78||'')['trim'](),_0x5c630b=o[_0x46059b(0x218)]('_'[_0x46059b(0x94)](Ie()));return le(_0x354040,''[_0x46059b(0x94)](_0x1c1acf),{'defIds':_0x354040['defIds'],'idSuffix':_0x5c630b[_0x46059b(0x196)]},A({'ref':_0x23fe59,'className':_0x274ac7},_0x459051),_0x1654d2);});function le(_0x2d0e82,_0x5858af,_0x3b6950,_0x511778,_0x5c511f){const _0x548c35=_0x2b7cc4;return o['createElement'](_0x2d0e82[_0x548c35(0x1f2)],A(A({'key':_0x5858af},we(_0x2d0e82,_0x3b6950,_0x5c511f)),_0x511778),(ye(_0x2d0e82,_0x3b6950)['children']||[])[_0x548c35(0x105)](function(_0x43f347,_0x4e4f9f){const _0xf4baed=_0x548c35;return le(_0x43f347,''['concat'](_0x5858af,'-')[_0xf4baed(0x94)](_0x2d0e82[_0xf4baed(0x1f2)],'-')['concat'](_0x4e4f9f),_0x3b6950,void 0x0,_0x5c511f);}));}function we(_0x25db28,_0x879f91,_0x1ebfa0){const _0x146085=_0x2b7cc4;var _0x11b862=A({},_0x25db28[_0x146085(0x1c9)]);_0x1ebfa0!=null&&_0x1ebfa0[_0x146085(0x99)]&&_0x11b862[_0x146085(0x13c)]===_0x146085(0x99)&&(_0x11b862['fill']=_0x1ebfa0[_0x146085(0x99)]);var _0x14303c=_0x879f91[_0x146085(0xee)];return!_0x14303c||_0x14303c['length']===0x0||(_0x25db28['tag']===_0x146085(0x18c)&&_0x11b862[_0x146085(0xed)]&&(_0x11b862[_0x146085(0xed)]=_0x11b862['xlink:href']+_0x879f91[_0x146085(0x192)]),Object[_0x146085(0x1ab)](_0x11b862)[_0x146085(0xb6)](function(_0x412128){const _0x301307=_0x146085;var _0x1b5404=_0x412128[0x0],_0x1a60c1=_0x412128[0x1];typeof _0x1a60c1==_0x301307(0x107)&&(_0x11b862[_0x1b5404]=_0x1a60c1[_0x301307(0x1d8)](/url\(#(.*)\)/,'url(#$1'[_0x301307(0x94)](_0x879f91[_0x301307(0x192)],')')));})),_0x11b862;}function ye(_0x5b5219,_0x222f94){const _0x3a13a8=_0x2b7cc4;var _0x206e22,_0x29a55b=_0x222f94[_0x3a13a8(0xee)];return!_0x29a55b||_0x29a55b[_0x3a13a8(0x1a2)]===0x0?_0x5b5219:_0x5b5219[_0x3a13a8(0x1f2)]===_0x3a13a8(0x144)&&(!((_0x206e22=_0x5b5219[_0x3a13a8(0x1bc)])===null||_0x206e22===void 0x0)&&_0x206e22['length'])?A(A({},_0x5b5219),{'children':_0x5b5219[_0x3a13a8(0x1bc)]['map'](function(_0xfa09ad){const _0x2b7a7f=_0x3a13a8;return typeof _0xfa09ad[_0x2b7a7f(0x1c9)]['id']=='string'&&_0x29a55b&&_0x29a55b['indexOf'](_0xfa09ad['attrs']['id'])>-0x1?A(A({},_0xfa09ad),{'attrs':A(A({},_0xfa09ad[_0x2b7a7f(0x1c9)]),{'id':_0xfa09ad[_0x2b7a7f(0x1c9)]['id']+_0x222f94['idSuffix']})}):_0xfa09ad;})}):_0x5b5219;}function Ie(){const _0x10a73a=_0x2b7cc4;return Math[_0x10a73a(0x14d)]()[_0x10a73a(0x1d5)](0x24)['substring'](0x2,0x8);}q['displayName']=_0x2b7cc4(0x1fc);var be={'tag':_0x2b7cc4(0x208),'attrs':{'fill':_0x2b7cc4(0xd5),'viewBox':_0x2b7cc4(0x85),'width':_0x2b7cc4(0x1aa),'height':_0x2b7cc4(0x1aa)},'children':[{'tag':_0x2b7cc4(0x130),'attrs':{'fill':_0x2b7cc4(0x198),'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':_0x2b7cc4(0x130),'attrs':{'fill':_0x2b7cc4(0x198),'d':_0x2b7cc4(0x123),'fillRule':'evenodd','clipRule':_0x2b7cc4(0x8c)}}]},ce=o['forwardRef'](function(_0x47e76a,_0x12ac98){const _0x360a74=_0x2b7cc4;return o[_0x360a74(0x11f)](q,Object[_0x360a74(0xe8)]({},_0x47e76a,{'id':_0x360a74(0x217),'ref':_0x12ac98,'icon':be}));});ce['displayName']=_0x2b7cc4(0x216);var Ee={'tag':_0x2b7cc4(0x208),'attrs':{'fill':_0x2b7cc4(0xd5),'viewBox':_0x2b7cc4(0x85),'width':_0x2b7cc4(0x1aa),'height':'1em'},'children':[{'tag':_0x2b7cc4(0x130),'attrs':{'fill':_0x2b7cc4(0x198),'d':'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'}}]},he=o[_0x2b7cc4(0x180)](function(_0x57f960,_0x12cab0){const _0x5cb017=_0x2b7cc4;return o['createElement'](q,Object[_0x5cb017(0xe8)]({},_0x57f960,{'id':_0x5cb017(0x9d),'ref':_0x12cab0,'icon':Ee}));});he[_0x2b7cc4(0x92)]='ZoomIncreaseSingle';var ke={'tag':_0x2b7cc4(0x208),'attrs':{'fill':'none','viewBox':_0x2b7cc4(0x85),'width':_0x2b7cc4(0x1aa),'height':_0x2b7cc4(0x1aa)},'children':[{'tag':_0x2b7cc4(0x130),'attrs':{'fill':_0x2b7cc4(0x198),'d':'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','fillRule':_0x2b7cc4(0x8c),'clipRule':_0x2b7cc4(0x8c)}}]},ue=o[_0x2b7cc4(0x180)](function(_0x1ad283,_0x3650e3){const _0x316be0=_0x2b7cc4;return o[_0x316be0(0x11f)](q,Object['assign']({},_0x1ad283,{'id':_0x316be0(0x184),'ref':_0x3650e3,'icon':ke}));});ue[_0x2b7cc4(0x92)]='ZoomReduceSingle';var H=(_0x41bde6=>(_0x41bde6[_0x2b7cc4(0x7b)]=_0x2b7cc4(0x7b),_0x41bde6[_0x2b7cc4(0x1de)]=_0x2b7cc4(0x179),_0x41bde6[_0x2b7cc4(0x156)]='CurrentSelection',_0x41bde6))(H||{}),L=(_0x2fdf05=>(_0x2fdf05[_0x2b7cc4(0x19c)]=_0x2b7cc4(0x19c),_0x2fdf05[_0x2b7cc4(0x1e3)]='WorkbookTitle',_0x2fdf05[_0x2b7cc4(0x157)]=_0x2b7cc4(0x157),_0x2fdf05[_0x2b7cc4(0x12a)]=_0x2b7cc4(0x12a),_0x2fdf05[_0x2b7cc4(0xb8)]=_0x2b7cc4(0xb8),_0x2fdf05))(L||{}),B=(_0x2d407c=>(_0x2d407c[_0x2b7cc4(0x19e)]=_0x2b7cc4(0x19e),_0x2d407c['Column']=_0x2b7cc4(0x15e),_0x2d407c))(B||{}),Re=(_0x5d2017,_0x2aa72b,_0x15c8cd,_0x3b2356)=>{for(var _0x41277a=_0x2aa72b,_0x21ded3=_0x5d2017['length']-0x1,_0x242fd6;_0x21ded3>=0x0;_0x21ded3--)(_0x242fd6=_0x5d2017[_0x21ded3])&&(_0x41277a=_0x242fd6(_0x41277a)||_0x41277a);return _0x41277a;},te=(_0x2bd108,_0x49c09c)=>(_0x267ad2,_0x3433d8)=>_0x49c09c(_0x267ad2,_0x3433d8,_0x2bd108);const $=W[_0x2b7cc4(0x15a)](_0x2b7cc4(0xf3)),xe=_0x4ea2df=>Math['floor'](_0x4ea2df*0x64)/0x64;function _0x41ac(){const _0x99c175=['_layoutInfos$','isPrinting','PrintSingle','print-single','useRef','_spreadsheetObject','print.orientation.title','_viewLeftTop','FitHeight','asObservable','print.freeze.title','@univerjs/sheets-ui','disposeWithMe','print.area.title','right','_calculateFinalRange','print.headerFooter.time','fillStyle','translateWithPrecision','parentElement','Scrollbar','clearCanvas','_scene','print.align.horizontal.start','startY','sheets-print','print.size.title','div','print.scale.normal','vAlign','print.limit.page','_commandService','sheetsPrintContentPreview','_viewTop','Button','getSheetBySheetId','CurrentSheet','getOwnPropertyDescriptor','flat','Engine','getPrecisionScale','_initConfigChangeListener','PrintPaperSize','BehaviorSubject','_initialize','Origin','0\x200\x2016\x2016','100%','print.size.folio','_totalHeight','top','print.orientation.landscape','symbol','evenodd','object','_renderConfig$','endRow','then','setContainer','displayName','whenSheetEditorFocused','concat','PrintPaperMargin','univer-sheets-print-content-preview-control','onbeforeprint','VIEW_MAIN_LEFT_TOP','colorChannel1','getActiveSheet','@univerjs-pro/print','permission.dialog.printErr','zoom-increase-single','font','CancelSheetPrintOperation','_sheetPrintManagerService','render','visible$','_componentManager','Wide','scaleY','print.size.a4','className','layoutInfos$','_sheetSkeletonManagerService','print.header.pages','PRINT_CONTAINER_CLASS','style','univer-sheets-print-content-preview','updateRenderConfig','print.headerFooter.date','_accessor','Disposable','useMemo','_printService','unitId','save','forEach','enable','Time','getCanvas','getUniverSheetInstance','updateScroll','Portrait','hasOwnProperty','_skeleton','univer-sheets-print-content','Middle','SheetPrintOpenOperation','filter','sheetsPrintHeader','_print','FitPage','UniverInstanceType','updateConfig','print.align.title','useEffect','function','paperMargin','extend','updateLayoutConfig','startX','getOwnPropertySymbols','round','PRINT_PLUGIN_','UNIVER_SHEET','ICommandService','print.size.tabloid','none','sheetsPrintHeaderLeft','_dirty','univerjs-icon\x20univerjs-icon-','renderConfig$','getName','area','_paperSize','has','min','Executive','body','Ready','useDependency','layoutConfig','propertyIsEnumerable','xSplit','resize','executeCommand','assign','@wendellhu/redi','memo','getSheetId','_resizeViewport','xlink:href','defIds','register','paperSize','KeyCode','toLocaleString','univer-pro.sheet-print-manager.service','Quantity','WorkbookPrintPermission','print.limit.waterMark','columnWidthAccumulation','getFirst','width','print.size.a5','__esModule','sheetsPrintHeaderRight','rowHeightAccumulation','getCollabEntity','IDialogService','PrintScale','getOwnPropertyNames','_renderConfig','rgba(0,0,0,0.3)','sheetsPrintContentSettingForm','map','PrintAlign','string','left','print.size.statement','flex','univer-sheets-print-header','print.align.vertical.start','pauseCollaboration','subscribe','disable','_viewMain','Injector','12px\x20','print.size.b4','@univerjs/engine-render','CommandType','Statement','_injector','TOOLBAR_START','5ZunJWt','hAlign','appendChild','startColumn','Legal','_calculatePrintScale','createElement','_engine','call','291557UwgiXu','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','univer-sheets-print-content-preview-control-item','type','MetaKeys','sheet-permission-user-dialog','registerCommand','Inject','Date','print.align.vertical.end','Letter','freeze','@wendellhu/redi/react-bindings','create','path','_container','prototype','subUnitIds','ConfirmSheetPrintOperation','subPage','IShortcutService','_selectionManagerService','univer-sheets-print-content-setting','IGlobalZoneService','__blank','8JYMPIL','fill','renderOnReady','_univerInstanceService','Select','registerShortcut','_renderWaterMark','Radio','print.margin.title','defs','_calculateSheetPages','_renderHeaderFooter','print.scale.title','getSheets','FitWidth','addMenuItem','scaleX','getFreeze','random','_calculateCurrentSelectionRange','getContext','End','restore','print.selection.workbookUnit','onReady','fixLineWidthByScale','gridlines','CurrentSelection','WorksheetTitle','_initRenderer','FormLayout','createIdentifier','primary','3153VVZXpW','_initComponents','Column','_previewScale','print.header.cancel','endX','getPermissionPoint','VIEW_MAIN_LEFT','_shortcutService','onCommandExecuted','getCurrentRangeDisable$','getCellMatrixPrintRange','@univerjs/sheets','CollaborationController','_calculate','devicePixelRatio','univer-sheets-print-limit','endY','sheet.operation.confirm-print','fontBoundingBoxAscent','icon','print.area.currentSheet','engine','univer-sheets-print-content-setting-form','toLocaleTimeString','default','print.scale.fitPage','key','apply','Workbook','sheet.operation.cancel-print','VIEWPORT_KEY','reset','SheetsPrintPlugin','print.orientation.portrait','_key','forwardRef','sheetsPrintContentPreviewControlItem','height','@univerjs/core','zoom-reduce-single','@univerjs/design','_initCommandListener','ySplit','display','MenuPosition','print.align.vertical.middle','add','use','print','setForceDisableGridlines','sheetsPrintContentPreviewPage','markDirty','makeDirty','idSuffix','margin','useState','dispose','current','_margin','currentColor','pages','print.formatting.skeleton','SheetSkeletonManagerService','PageSize','_getTranslateOffset','Row','rxjs','@univerjs-pro/collaboration-client','_addViewport','length','MenuItemType','_layoutConfig$','container','scale','_viewLeft','_calculateSheetRangeById','VIEW_MAIN_TOP','1em','entries','CheckboxGroup','Normal','Printing','measureText','includes','BUTTON','_config','slice','getCurrentUnitForType','TOOLBAR_OTHERS','enumerable','__SpreadsheetPrintRender__','useObservable','get','_totalWidth','Viewport','children','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','DEFAULT_FONTFACE_PLANE','endColumn','SelectionManagerService','LocaleService','renderConfig','print.selection.allWorkbook','getNoMergeCellPositionByIndexWithNoHeader','_renderMainScene','Plugin','sheetsPrintContent','sheetsPrintContentSetting','attrs','addObject','print.margin.normal','13px\x20','startRow','IPermissionService','OPERATION','max','print.area.currentSelection','close','CanvasRenderMode','_layoutInfos','toString','push','9681050vWQbXL','replace','layoutInfos','Tabloid','_localeService','deepMerge','Checkbox','workbook','Start','getUnitId','Tools','print.menu','WorkbookTitle','PrintDirection','644HNRjEX','getMenuHiddenObservable','57200lxNHJJ','direction','toLocaleDateString','removeChild','@univerjs/ui','print.scale.fitHeight','sheetsPrintContentPreviewControl','Landscape','size','1902933RzuhTF','univer-sheets-print-content-preview-page','tag','print.freeze.column','_isPreview','fillText','subUnitId','headerFooter','print.margin.wide','getOrCreateSkeleton','27366smkVPX','_calculateSubSheetRange','UniverIcon','sheetsPrint','PaperSizePxMap','range','pluginName','set','getPrototypeOf','print.margin.narrow','onafterprint','MenuGroup','bottom','_layoutConfig','svg','setPreviewScale','indexOf','next','defineProperty','175802mPhtDY','ComponentManager','column','reLayout','layoutConfig$','IUniverInstanceService','print.size.legal'];_0x41ac=function(){return _0x99c175;};return _0x41ac();}let ie=class{constructor(_0x357ea4,_0x1c1335,_0x8847d4){const _0x3b864f=_0x2b7cc4;y(this,'_layoutConfig',{'area':H['CurrentSheet'],'subUnitIds':[],'paperSize':h['PrintPaperSize']['A4'],'direction':h[_0x3b864f(0x1e4)][_0x3b864f(0xbc)],'scale':h[_0x3b864f(0x100)][_0x3b864f(0x84)],'customScale':0x1,'freeze':[B[_0x3b864f(0x19e)],B['Column']],'margin':h[_0x3b864f(0x95)][_0x3b864f(0x1ad)]}),y(this,_0x3b864f(0x102),{'gridlines':!0x0,'hAlign':h[_0x3b864f(0x106)][_0x3b864f(0xc0)],'vAlign':h[_0x3b864f(0x106)][_0x3b864f(0x1df)],'headerFooter':[]}),y(this,_0x3b864f(0x1d4),[]),y(this,'_layoutInfos$',new ee[(_0x3b864f(0x82))](this[_0x3b864f(0x1d4)])),y(this,_0x3b864f(0x1a4),new ee['BehaviorSubject'](this[_0x3b864f(0x207)])),y(this,'_renderConfig$',new ee[(_0x3b864f(0x82))](this['_renderConfig'])),y(this,_0x3b864f(0x211),this[_0x3b864f(0x1a4)][_0x3b864f(0x21d)]()),y(this,_0x3b864f(0xd9),this[_0x3b864f(0x8e)][_0x3b864f(0x21d)]()),y(this,_0x3b864f(0xa8),this[_0x3b864f(0x214)]['asObservable']()),(this['_univerInstanceService']=_0x357ea4,this['_sheetSkeletonManagerService']=_0x1c1335,this[_0x3b864f(0x137)]=_0x8847d4);}get[_0x2b7cc4(0x1d9)](){const _0x50519a=_0x2b7cc4;return this[_0x50519a(0x1d4)];}get[_0x2b7cc4(0x1c2)](){const _0x7bfae6=_0x2b7cc4;return this[_0x7bfae6(0x102)];}get[_0x2b7cc4(0xe3)](){return this['_layoutConfig'];}get[_0x2b7cc4(0xf0)](){const _0x5e6bb1=_0x2b7cc4,{paperSize:_0x1399a4,direction:_0x1d7a53}=this['_layoutConfig'],_0x1f33b1=h[_0x5e6bb1(0x1fe)][_0x1399a4];return _0x1d7a53===h[_0x5e6bb1(0x1e4)]['Portrait']?{..._0x1f33b1}:{'w':_0x1f33b1['h'],'h':_0x1f33b1['w']};}get['paperMargin'](){const _0x4b33e1=_0x2b7cc4;return h['PaperMarginMap'][this[_0x4b33e1(0x207)][_0x4b33e1(0x193)]];}[_0x2b7cc4(0xcd)](_0x18a78b){const _0x2a04df=_0x2b7cc4;this[_0x2a04df(0x207)]={...this[_0x2a04df(0x207)],..._0x18a78b},this[_0x2a04df(0x1a4)][_0x2a04df(0x20b)](this[_0x2a04df(0x207)]),this[_0x2a04df(0x210)]();}['updateRenderConfig'](_0x402c06){const _0x43b22a=_0x2b7cc4;this['_renderConfig']={...this[_0x43b22a(0x102)],..._0x402c06},this['_renderConfig$']['next'](this['_renderConfig']);}[_0x2b7cc4(0x210)](){const _0x2335f8=_0x2b7cc4;this[_0x2335f8(0x1d4)]=this['_calculate'](),this[_0x2335f8(0x214)][_0x2335f8(0x20b)](this['_layoutInfos']);}['reset'](){const _0x1c90f1=_0x2b7cc4;this[_0x1c90f1(0x1d4)]=[],this[_0x1c90f1(0x214)][_0x1c90f1(0x20b)](this['_layoutInfos']),this[_0x1c90f1(0x207)]={...this[_0x1c90f1(0x207)],'area':H[_0x1c90f1(0x7b)]},this['_layoutConfig$'][_0x1c90f1(0x20b)](this[_0x1c90f1(0x207)]);}[_0x2b7cc4(0x16a)](){const _0x1da84f=_0x2b7cc4,_0x503c33=this[_0x1da84f(0x1fb)](),_0x525083=[];return _0x503c33[_0x1da84f(0xb6)](_0x85c02a=>{const _0x2d8fe7=_0x1da84f;if(_0x85c02a){const _0x5b788b=this[_0x2d8fe7(0x145)](_0x85c02a);_0x5b788b&&_0x525083[_0x2d8fe7(0x1d6)](_0x5b788b);}}),_0x525083;}[_0x2b7cc4(0x1a8)](_0x25b7ba){const _0x43606b=_0x2b7cc4,_0x15b0e0=this[_0x43606b(0x13e)][_0x43606b(0x1b4)](_['UniverInstanceType']['UNIVER_SHEET'])['getSheetBySheetId'](_0x25b7ba);if(!_0x15b0e0)return;const _0x4f5517=_0x15b0e0[_0x43606b(0x14c)](),_0x49dccb=_0x15b0e0[_0x43606b(0x167)]();if(_0x49dccb)return this['_calculateFinalRange'](_0x25b7ba,{..._0x49dccb,'startColumn':Math[_0x43606b(0x1d0)](_0x4f5517['startColumn']-_0x4f5517[_0x43606b(0xe5)],0x0),'startRow':Math[_0x43606b(0x1d0)](_0x4f5517['startRow']-_0x4f5517[_0x43606b(0x187)],0x0)});}[_0x2b7cc4(0x14e)](){const _0x2bf58b=_0x2b7cc4,_0x3171e3=this[_0x2bf58b(0x137)][_0x2bf58b(0xf8)](),_0x1f4044=this[_0x2bf58b(0x13e)][_0x2bf58b(0x1b4)](_[_0x2bf58b(0xc6)][_0x2bf58b(0xd2)])['getActiveSheet']()[_0x2bf58b(0xeb)]();if(_0x3171e3)return this[_0x2bf58b(0x223)](_0x1f4044,_0x3171e3[_0x2bf58b(0x1ff)]);}['_calculateFinalRange'](_0x19e43a,_0x417e53){const _0x3630c7=_0x2b7cc4,_0x420b67=this['_univerInstanceService'][_0x3630c7(0x1b4)](_[_0x3630c7(0xc6)][_0x3630c7(0xd2)]),_0x5b973b=_0x420b67[_0x3630c7(0x7a)](_0x19e43a),_0x3a9673=this[_0x3630c7(0x207)],_0x58dd23=_0x420b67['getUnitId'](),_0x1d5353=this['paperSize'],{top:_0x421ba5,right:_0x5c0de3,bottom:_0x396b07,left:_0xd6c161}=this[_0x3630c7(0xcb)];if(_0x1d5353['h']-=_0x421ba5+_0x396b07,_0x1d5353['w']-=_0xd6c161+_0x5c0de3,_0x417e53[_0x3630c7(0x1cd)]>-0x1&&_0x417e53['startColumn']>-0x1){const _0x3eabfb=this['_sheetSkeletonManagerService']['getOrCreateSkeleton']({'unitId':_0x420b67[_0x3630c7(0x1e0)](),'sheetId':_0x19e43a});if(!_0x5b973b||!_0x3eabfb)return null;let _0x50e976=_0x417e53['startRow'];const _0x536898=_0x417e53[_0x3630c7(0x8f)];let _0x1b33b5=_0x417e53['startColumn'];const _0x252cd2=_0x417e53[_0x3630c7(0x1bf)],_0x4d61b4=_0x5b973b['getFreeze'](),_0x3abf9c=xe(this[_0x3630c7(0x11e)](_0x3eabfb,_0x417e53,_0x4d61b4));let _0x30a49c=-0x1,_0x5a0eb2=0x0,_0x5a124d=-0x1,_0x5adfb8=0x0;const _0x3dcdf9=_0x3eabfb[_0x3630c7(0xf7)],_0x411e65=_0x3eabfb[_0x3630c7(0xfd)];if(_0x4d61b4[_0x3630c7(0xe5)]&&_0x3a9673['freeze'][_0x3630c7(0x1b0)](B[_0x3630c7(0x15e)])){if(_0x252cd2>=_0x4d61b4[_0x3630c7(0x11c)]){const _0x339532=_0x3abf9c*(_0x3dcdf9[_0x4d61b4['startColumn']-0x1]-(_0x3dcdf9[_0x4d61b4[_0x3630c7(0x11c)]-_0x4d61b4['xSplit']-0x1]||0x0));_0x339532<_0x1d5353['w']&&(_0x5a124d=_0x4d61b4[_0x3630c7(0x11c)],_0x5adfb8=_0x4d61b4['xSplit'],_0x1d5353['w']-=_0x339532);}else{const _0x2a9be5=_0x252cd2+0x1,_0x315584=_0x252cd2+0x1-(_0x4d61b4[_0x3630c7(0x11c)]-_0x4d61b4['xSplit']),_0x121bb5=_0x3abf9c*(_0x3dcdf9[_0x5a124d-0x1]-(_0x3dcdf9[_0x5a124d-_0x5adfb8]-0x1||0x0));_0x121bb5<_0x1d5353['w']&&(_0x5a124d=_0x2a9be5,_0x5adfb8=_0x315584,_0x1d5353['w']-=_0x121bb5);}}if(_0x1b33b5=Math[_0x3630c7(0x1d0)](_0x5a124d,_0x1b33b5),_0x4d61b4['ySplit']&&_0x3a9673[_0x3630c7(0x12d)][_0x3630c7(0x1b0)](B[_0x3630c7(0x19e)])){if(_0x536898>=_0x4d61b4[_0x3630c7(0x1cd)]){const _0x2efa20=_0x411e65[_0x4d61b4[_0x3630c7(0x1cd)]]-_0x411e65[_0x4d61b4[_0x3630c7(0x1cd)]-_0x4d61b4[_0x3630c7(0x187)]];_0x2efa20<_0x1d5353['h']&&(_0x30a49c=_0x4d61b4[_0x3630c7(0x1cd)],_0x5a0eb2=_0x4d61b4[_0x3630c7(0x187)],_0x1d5353['h']-=_0x2efa20);}else _0x30a49c=_0x536898+0x1,_0x5a0eb2=_0x536898+0x1-(_0x4d61b4['startRow']-_0x4d61b4['ySplit']),_0x1d5353['h']=_0x1d5353['h']-_0x411e65[_0x30a49c]-_0x411e65[_0x30a49c-_0x5a0eb2];}return _0x50e976=Math[_0x3630c7(0x1d0)](_0x30a49c,_0x50e976),{'unitId':_0x58dd23,'subUnitId':_0x19e43a,'range':{'startRow':_0x50e976,'endRow':_0x536898,'startColumn':_0x1b33b5,'endColumn':_0x252cd2},'freeze':{'startRow':_0x30a49c,'startColumn':_0x5a124d,'xSplit':_0x5adfb8,'ySplit':_0x5a0eb2},'contentSize':_0x1d5353,'scale':_0x3abf9c};}return{'unitId':_0x58dd23,'subUnitId':_0x19e43a,'range':{'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},'freeze':{'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0},'contentSize':_0x1d5353,'scale':0x1};}['_calculatePrintScale'](_0x58ea2f,_0x110eff,_0x4d1e3f){const _0xfb5921=_0x2b7cc4,_0x43b478=_0x58ea2f[_0xfb5921(0xf7)],_0x4baef8=_0x58ea2f['rowHeightAccumulation'],{xSplit:_0x39c6cf,ySplit:_0x370bb0,startColumn:_0x45b49c,startRow:_0x50995f}=_0x4d1e3f;let {startRow:_0x395ced,startColumn:_0x162e5a}=_0x110eff;const {endColumn:_0xebf82b,endRow:_0x334d73}=_0x110eff;_0x395ced=_0x334d73<_0x50995f?_0x395ced:Math[_0xfb5921(0x1d0)](_0x50995f,_0x395ced),_0x162e5a=_0xebf82b<_0x45b49c?_0x162e5a:Math[_0xfb5921(0x1d0)](_0x45b49c,_0x162e5a);const {scale:_0x32a982,customScale:_0x523e6b}=this['_layoutConfig'],_0x2bd92c=this[_0xfb5921(0xf0)],_0xda8f2f=this[_0xfb5921(0xcb)],_0x179269=_0x39c6cf>0x0?_0x43b478[_0x45b49c-0x1]-(_0x43b478[_0x45b49c-_0x39c6cf-0x1]||0x0):0x0,_0x19e45e=_0x370bb0>0x0?_0x4baef8[_0x50995f-0x1]-(_0x4baef8[_0x50995f-_0x370bb0-0x1]||0x0):0x0,_0x4e2a41=_0x4baef8[_0x334d73]-(_0x4baef8[_0x395ced-0x1]||0x0),_0x224e2a=_0x43b478[_0xebf82b]-(_0x43b478[_0x162e5a-0x1]||0x0),_0x2940b3=_0x4e2a41+_0x19e45e,_0x596bb1=_0x224e2a+_0x179269;switch(_0x32a982){case h[_0xfb5921(0x100)]['Custom']:return _0x523e6b;case h[_0xfb5921(0x100)][_0xfb5921(0x149)]:return Math[_0xfb5921(0xde)](0x1,(_0x2bd92c['w']-_0xda8f2f[_0xfb5921(0x108)]-_0xda8f2f[_0xfb5921(0x222)])/_0x596bb1);case h['PrintScale'][_0xfb5921(0x21c)]:return Math[_0xfb5921(0xde)](0x1,(_0x2bd92c['h']-_0xda8f2f[_0xfb5921(0x89)]-_0xda8f2f['bottom'])/_0x2940b3);case h[_0xfb5921(0x100)]['FitPage']:return Math[_0xfb5921(0xde)](0x1,(_0x2bd92c['w']-_0xda8f2f['left']-_0xda8f2f['right'])/_0x596bb1,(_0x2bd92c['h']-_0xda8f2f[_0xfb5921(0x89)]-_0xda8f2f['bottom'])/_0x2940b3);default:return 0x1;}}[_0x2b7cc4(0x1fb)](){const _0x30afa6=_0x2b7cc4,{area:_0x1412c6,subUnitIds:_0x5e2b86}=this[_0x30afa6(0x207)],_0x5701e8=this[_0x30afa6(0x13e)][_0x30afa6(0x1b4)](_[_0x30afa6(0xc6)][_0x30afa6(0xd2)]);switch(_0x1412c6){case H[_0x30afa6(0x7b)]:{const _0x4d9b16=_0x5701e8[_0x30afa6(0x9a)]()[_0x30afa6(0xeb)]();if(_0x4d9b16!=null){const _0x59c361=this['_calculateSheetRangeById'](_0x4d9b16);return _0x59c361?[_0x59c361]:[this[_0x30afa6(0x14e)]()];}return[];}case H['CurrentSelection']:return[this[_0x30afa6(0x14e)]()];default:return(_0x5e2b86[_0x30afa6(0x1a2)]?_0x5e2b86:_0x5701e8[_0x30afa6(0x148)]()[_0x30afa6(0x105)](_0x21e08b=>_0x21e08b[_0x30afa6(0xeb)]()))[_0x30afa6(0x105)](_0xdcf2de=>this[_0x30afa6(0x1a8)](_0xdcf2de))[_0x30afa6(0xc2)](Boolean);}}[_0x2b7cc4(0x145)](_0x36c377){const _0x55fc7a=_0x2b7cc4,{subUnitId:_0x50647d,range:_0xadfcb6,freeze:_0xc2e10a,unitId:_0x5eb035,scale:_0x19ceb7,contentSize:_0x29ba83}=_0x36c377,_0x5b6bf7=this[_0x55fc7a(0xa9)][_0x55fc7a(0x1f9)]({'unitId':_0x5eb035,'sheetId':_0x50647d});if(!_0x5b6bf7)return;const {rowHeightAccumulation:_0x1cf86d,columnWidthAccumulation:_0x189988}=_0x5b6bf7,{w:_0x43563e,h:_0x5a6285}=_0x29ba83,{startRow:_0x7e8fcc,startColumn:_0x4be057,endColumn:_0x3301b2,endRow:_0x591298}=_0xadfcb6,_0x2b5e08=_0x1a816d=>{let _0x290101=_0x1a816d;const _0x5f2b03=_0x1a816d===0x0?0x0:_0x1cf86d[_0x1a816d-0x1];for(;_0x290101<_0x591298;){const _0x3c1c6a=(_0x1cf86d[_0x290101]-_0x5f2b03)*_0x19ceb7,_0x24b572=(_0x1cf86d[_0x290101+0x1]-_0x5f2b03)*_0x19ceb7;if(_0x290101++,_0x3c1c6a>_0x5a6285||_0x3c1c6a<_0x5a6285&&_0x24b572>_0x5a6285)return{'startRow':_0x1a816d,'endRow':_0x290101-0x1};}return{'startRow':_0x1a816d,'endRow':_0x290101};},_0x4fd069=_0x43d2c1=>{let _0x362508=_0x43d2c1;const _0xed8cde=_0x43d2c1===0x0?0x0:_0x189988[_0x43d2c1-0x1];for(;_0x362508<_0x3301b2;){const _0x30133b=(_0x189988[_0x362508]-_0xed8cde)*_0x19ceb7,_0x5e4566=(_0x189988[_0x362508+0x1]-_0xed8cde)*_0x19ceb7;if(_0x362508++,_0x30133b<_0x43563e&&_0x5e4566>_0x43563e||_0x30133b>=_0x43563e)return{'startColumn':_0x43d2c1,'endColumn':_0x362508-0x1};}return{'startColumn':_0x43d2c1,'endColumn':_0x362508};},_0x32a4e1=[];let _0x4a478e=_0x7e8fcc;for(;_0x4a478e<=_0x591298;){const _0x24383b=_0x2b5e08(_0x4a478e);_0x32a4e1[_0x55fc7a(0x1d6)](_0x24383b),_0x4a478e=_0x24383b['endRow']+0x1;}const _0x56af73=[];let _0x89b8c7=_0x4be057;for(;_0x89b8c7<=_0x3301b2;){const _0x2d6941=_0x4fd069(_0x89b8c7);_0x56af73[_0x55fc7a(0x1d6)](_0x2d6941),_0x89b8c7=_0x2d6941[_0x55fc7a(0x1bf)]+0x1;}const _0x4ccaf1=[];for(let _0x20a7a4=0x0;_0x20a7a4<_0x32a4e1[_0x55fc7a(0x1a2)];_0x20a7a4++)for(let _0x39d85e=0x0;_0x39d85e<_0x56af73[_0x55fc7a(0x1a2)];_0x39d85e++)_0x4ccaf1[_0x55fc7a(0x1d6)]({..._0x32a4e1[_0x20a7a4],..._0x56af73[_0x39d85e]});return{'unitId':_0x5eb035,'subUnitId':_0x50647d,'pages':_0x4ccaf1,'freeze':_0xc2e10a,'scale':_0x19ceb7};}};ie=Re([te(0x0,_['IUniverInstanceService']),te(0x1,W[_0x2b7cc4(0x129)](U[_0x2b7cc4(0x19b)])),te(0x2,W[_0x2b7cc4(0x129)](re[_0x2b7cc4(0x1c0)]))],ie);function _0x2f12(_0x48b140,_0x4c41e1){const _0x41ac76=_0x41ac();return _0x2f12=function(_0x2f1291,_0x2ef154){_0x2f1291=_0x2f1291-0x71;let _0x49c484=_0x41ac76[_0x2f1291];return _0x49c484;},_0x2f12(_0x48b140,_0x4c41e1);}const Me=_0x2b7cc4(0xd1),Te=Me+'PRINT_COMPONENT',oe='UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID',ze=_0x2b7cc4(0x1bd),Y={'id':'sheet.operation.print-open','type':_['CommandType'][_0x2b7cc4(0x1cf)],'handler':_0x49ed89=>{const _0x25e7c8=_0x2b7cc4;var _0xbdad26;const _0x4acb60=_0x49ed89[_0x25e7c8(0x1b9)](k[_0x25e7c8(0x139)]),_0x3d30ff=_0x49ed89[_0x25e7c8(0x1b9)](_[_0x25e7c8(0x1ce)]),_0x4fb42f=_0x49ed89[_0x25e7c8(0x1b9)](_['LocaleService']),_0xd523ee=_0x49ed89[_0x25e7c8(0x1b9)](_['IUniverInstanceService']),_0x5c2952=_0x49ed89[_0x25e7c8(0x1b9)](k[_0x25e7c8(0xff)]),_0x3fef29=_0xd523ee[_0x25e7c8(0x1b4)](_['UniverInstanceType'][_0x25e7c8(0xd2)])[_0x25e7c8(0x1e0)]();if(!((_0xbdad26=_0x3d30ff[_0x25e7c8(0x162)](new re['WorkbookPrintPermission'](_0x3fef29)['id']))!=null?_0xbdad26:!0x1)){const _0x5c9cb6={'id':oe,'title':{'title':''},'children':{'label':ze,'errorMsg':_0x4fb42f['t'](_0x25e7c8(0x9c))},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x5c2952['close'](oe),'className':_0x25e7c8(0x127)};throw _0x5c2952['open'](_0x5c9cb6),new Error('have\x20not\x20permission');}return _0x4acb60['open'](),!0x0;}},ae={'type':_['CommandType'][_0x2b7cc4(0x1cf)],'id':_0x2b7cc4(0x17a),'handler'(_0x5b042a){const _0x423831=_0x2b7cc4,_0x578835=_0x5b042a['get'](k['IGlobalZoneService']),_0x246f92=_0x5b042a[_0x423831(0x1b9)]($);return _0x578835[_0x423831(0x1d2)](),_0x246f92[_0x423831(0x17c)](),!0x0;}},K={'type':_[_0x2b7cc4(0x115)]['OPERATION'],'id':_0x2b7cc4(0x16e),'handler'(){return!0x0;}},Ne=_0x2b7cc4(0x22d);class de extends _[_0x2b7cc4(0xb1)]{constructor(_0x371706,_0x5f24a2,_0x6dfbba=!0x0,_0x4b0717=0x1){const _0x4783a7=_0x2b7cc4;super(),y(this,'_engine'),y(this,_0x4783a7(0x22a)),y(this,'_key'),y(this,_0x4783a7(0x110)),y(this,_0x4783a7(0x1a7)),y(this,_0x4783a7(0x78)),y(this,'_viewLeftTop'),y(this,'_container',document[_0x4783a7(0x11f)](_0x4783a7(0x72))),y(this,_0x4783a7(0xa0)),y(this,_0x4783a7(0xbe)),y(this,'_univerInstanceService'),y(this,_0x4783a7(0xd7),!0x0),y(this,_0x4783a7(0x219)),y(this,_0x4783a7(0x1ba),0x0),y(this,_0x4783a7(0x88),0x0),(this[_0x4783a7(0xb0)]=_0x371706,this[_0x4783a7(0x1b2)]=_0x5f24a2,this[_0x4783a7(0x1f4)]=_0x6dfbba,this[_0x4783a7(0x15f)]=_0x4b0717);const {unitId:_0x387f74,subUnitId:_0x3e9bde}=this[_0x4783a7(0x1b2)];this[_0x4783a7(0x17f)]=_0x387f74+'_'+_0x3e9bde,this['_sheetPrintManagerService']=this[_0x4783a7(0xb0)][_0x4783a7(0x1b9)]($),this[_0x4783a7(0x13e)]=this[_0x4783a7(0xb0)][_0x4783a7(0x1b9)](_[_0x4783a7(0x212)]);const _0x174c82=this[_0x4783a7(0xb0)]['get'](U['SheetSkeletonManagerService'])[_0x4783a7(0x1f9)]({'unitId':_0x387f74,'sheetId':_0x3e9bde});this[_0x4783a7(0xbe)]=_0x174c82,this[_0x4783a7(0x158)]();}get[_0x2b7cc4(0x177)](){const _0x8860d9=_0x2b7cc4;return this[_0x8860d9(0x17f)];}get[_0x2b7cc4(0x172)](){const _0x517c06=_0x2b7cc4;return this[_0x517c06(0x120)];}get[_0x2b7cc4(0x1a5)](){return this['_container'];}get['_renderConfig'](){const _0xcbb5f0=_0x2b7cc4;return this['_sheetPrintManagerService'][_0xcbb5f0(0x1c2)];}get[_0x2b7cc4(0x207)](){const _0x19fd38=_0x2b7cc4;return this[_0x19fd38(0xa0)][_0x19fd38(0xe3)];}[_0x2b7cc4(0x195)](){const _0x18fa61=_0x2b7cc4;var _0x5bf426;super[_0x18fa61(0x195)](),(_0x5bf426=this[_0x18fa61(0x131)][_0x18fa61(0x227)])==null||_0x5bf426[_0x18fa61(0x1ea)](this[_0x18fa61(0x131)]);}get[_0x2b7cc4(0xdc)](){const _0x17ee7b=_0x2b7cc4,{w:_0x3f2239,h:_0x3d9ed9}=this[_0x17ee7b(0xa0)][_0x17ee7b(0xf0)];return{'w':_0x3f2239*this[_0x17ee7b(0x15f)],'h':_0x3d9ed9*this[_0x17ee7b(0x15f)]};}get[_0x2b7cc4(0x197)](){const _0xfa5341=_0x2b7cc4,_0x3a5f4e=this[_0xfa5341(0xa0)][_0xfa5341(0xcb)];return{'top':_0x3a5f4e['top']*this['_previewScale'],'bottom':_0x3a5f4e[_0xfa5341(0x206)]*this[_0xfa5341(0x15f)],'left':_0x3a5f4e[_0xfa5341(0x108)]*this[_0xfa5341(0x15f)],'right':_0x3a5f4e[_0xfa5341(0x222)]*this[_0xfa5341(0x15f)]};}[_0x2b7cc4(0x158)](){const _0x2fed98=_0x2b7cc4,_0x5dc374=this[_0x2fed98(0xdc)],_0x11e20f=this['_config'][_0x2fed98(0x1a6)]*this[_0x2fed98(0x15f)],_0x613f8d=this[_0x2fed98(0x1f4)]?Math[_0x2fed98(0x1d0)](0x1,window[_0x2fed98(0x16b)]):0x1;this[_0x2fed98(0x120)]=new O[(_0x2fed98(0x7e))](_0x5dc374['w'],_0x5dc374['h'],_0x613f8d,O[_0x2fed98(0x1d3)][_0x2fed98(0x1ae)]),this[_0x2fed98(0x22a)]=new O['Scene'](this[_0x2fed98(0x17f)],this[_0x2fed98(0x120)]),this[_0x2fed98(0x22a)][_0x2fed98(0x1a6)](_0x11e20f,_0x11e20f),this[_0x2fed98(0x120)][_0x2fed98(0x91)](this[_0x2fed98(0x131)],this['_isPreview']),this['_addComponent'](),this[_0x2fed98(0x1a1)](),this[_0x2fed98(0x220)]({'dispose':()=>{const _0x1fca41=_0x2fed98;this['_engine']['dispose'](),this[_0x1fca41(0x22a)][_0x1fca41(0x195)]();}});}[_0x2b7cc4(0x209)](_0x797687){const _0x541489=_0x2b7cc4;this[_0x541489(0x22a)][_0x541489(0x1a6)](this[_0x541489(0x1b2)][_0x541489(0x1a6)]*_0x797687,this[_0x541489(0x1b2)][_0x541489(0x1a6)]*_0x797687),this[_0x541489(0x15f)]=_0x797687,this[_0x541489(0x190)](!0x0);}['updateConfig'](_0x1a5d86){const _0x2c0d49=_0x2b7cc4;this[_0x2c0d49(0x1b2)]=_0x1a5d86,this['markDirty'](!0x0);}[_0x2b7cc4(0x190)](_0x21494c){const _0x4e1f8e=_0x2b7cc4;this[_0x4e1f8e(0xd7)]=_0x21494c;}['_addComponent'](){const _0x541e0f=_0x2b7cc4,_0x1c86db=new O['Spreadsheet'](_0x541e0f(0x1b7),this['_skeleton'],!0x1);_0x1c86db[_0x541e0f(0x215)]=!0x0,this[_0x541e0f(0x22a)][_0x541e0f(0x1ca)](_0x1c86db),this[_0x541e0f(0x219)]=_0x1c86db;}[_0x2b7cc4(0x1a1)](){const _0x75ea6b=_0x2b7cc4;this[_0x75ea6b(0x110)]=new O[(_0x75ea6b(0x1bb))](U[_0x75ea6b(0x17b)]['VIEW_MAIN'],this[_0x75ea6b(0x22a)]),this['_viewLeft']=new O[(_0x75ea6b(0x1bb))](U[_0x75ea6b(0x17b)][_0x75ea6b(0x163)],this[_0x75ea6b(0x22a)]),this[_0x75ea6b(0x78)]=new O[(_0x75ea6b(0x1bb))](U['VIEWPORT_KEY'][_0x75ea6b(0x1a9)],this[_0x75ea6b(0x22a)]),this[_0x75ea6b(0x21b)]=new O[(_0x75ea6b(0x1bb))](U['VIEWPORT_KEY'][_0x75ea6b(0x98)],this[_0x75ea6b(0x22a)]);}[_0x2b7cc4(0xec)](){const _0x13b4c9=_0x2b7cc4,{freeze:_0x38c8d1,range:_0x44c7d6}=this[_0x13b4c9(0x1b2)],{xSplit:_0x235180,ySplit:_0x5037fe,startColumn:_0x241424,startRow:_0x17ceac}=_0x38c8d1,{rowHeaderWidth:_0xe4a4b6,columnHeaderHeight:_0x39b457}=this[_0x13b4c9(0xbe)];this[_0x13b4c9(0x22a)]['scale'](this['_config'][_0x13b4c9(0x1a6)]*this['_previewScale'],this[_0x13b4c9(0x1b2)][_0x13b4c9(0x1a6)]*this[_0x13b4c9(0x15f)]);const _0x37aa83=this[_0x13b4c9(0xbe)][_0x13b4c9(0x1c4)](_0x17ceac-_0x5037fe,_0x241424-_0x235180),_0x33a3a6=this['_skeleton'][_0x13b4c9(0x1c4)](_0x17ceac,_0x241424),_0x261be9=_0x235180>0x0?_0x33a3a6[_0x13b4c9(0xce)]-_0x37aa83[_0x13b4c9(0xce)]:0x0,_0x134792=_0x5037fe>0x0?_0x33a3a6['startY']-_0x37aa83['startY']:0x0,_0x4d1b6a={'startX':_0x235180>0x0?_0x37aa83['startX']:0x0,'endX':_0x235180>0x0?_0x33a3a6[_0x13b4c9(0xce)]:0x0,'startY':_0x5037fe>0x0?_0x37aa83[_0x13b4c9(0x22c)]:0x0,'endY':_0x5037fe>0x0?_0x33a3a6[_0x13b4c9(0x22c)]:0x0},_0x4ee795=this[_0x13b4c9(0xbe)][_0x13b4c9(0x1c4)](_0x44c7d6[_0x13b4c9(0x1cd)],_0x44c7d6['startColumn']),_0x375a2a=this[_0x13b4c9(0x22a)][_0x13b4c9(0x7f)](),_0x3bb91d=_0x31ba9e=>O['fixLineWidthByScale'](_0x31ba9e,_0x375a2a['scaleX']),_0x425077=_0x4be30f=>O[_0x13b4c9(0x154)](_0x4be30f,_0x375a2a[_0x13b4c9(0xa5)]),_0x4c8914=this['_skeleton']['getNoMergeCellPositionByIndexWithNoHeader'](_0x44c7d6[_0x13b4c9(0x8f)],_0x44c7d6['endColumn']),_0x579e2d=Math[_0x13b4c9(0x1d0)](0x0,_0x3bb91d(_0x4c8914[_0x13b4c9(0x161)])-Math[_0x13b4c9(0x1d0)](_0x4ee795['startX'],_0x4d1b6a[_0x13b4c9(0x161)])),_0x1aca27=Math['max'](0x0,_0x425077(_0x4c8914[_0x13b4c9(0x16d)])-_0x425077(Math['max'](_0x4ee795[_0x13b4c9(0x22c)],_0x4d1b6a[_0x13b4c9(0x16d)]))),_0x5b0288=0x1/Math['max'](_0x375a2a[_0x13b4c9(0x14b)],_0x375a2a[_0x13b4c9(0xa5)]),_0x20a3f0=_0x261be9+_0x579e2d+_0x5b0288,_0x5e6ef3=_0x134792+_0x1aca27+_0x5b0288;this[_0x13b4c9(0x1ba)]=_0x20a3f0,this[_0x13b4c9(0x88)]=_0x5e6ef3;const _0xfcbe3f={'x':_0x261be9,'y':_0x134792},_0x464012=_0x5b0288,_0x40f1aa=_0x5b0288,_0x594c00={'x':_0x3bb91d(_0x4c8914[_0x13b4c9(0x161)])-_0x3bb91d(_0x579e2d)-_0x3bb91d(Math[_0x13b4c9(0x1d0)](_0x4ee795['startX'],_0x4d1b6a['endX'])),'y':_0x425077(_0x4c8914[_0x13b4c9(0x16d)])-_0x425077(_0x1aca27)-_0x425077(Math[_0x13b4c9(0x1d0)](_0x4ee795[_0x13b4c9(0x22c)],_0x4d1b6a[_0x13b4c9(0x16d)]))};_0x235180>0x0&&_0x5037fe>0x0?(this[_0x13b4c9(0x21b)][_0x13b4c9(0xb7)](),this[_0x13b4c9(0x21b)][_0x13b4c9(0xe6)]({'top':0x0,'left':0x0,'height':_0x425077(_0xfcbe3f['y']),'width':_0x3bb91d(_0xfcbe3f['x'])}),this[_0x13b4c9(0x21b)][_0x13b4c9(0xbb)]({'actualScrollX':_0x3bb91d(_0x4d1b6a['startX'])+_0x3bb91d(_0xe4a4b6),'actualScrollY':_0x425077(_0x4d1b6a[_0x13b4c9(0x22c)])+_0x425077(_0x39b457)})):this[_0x13b4c9(0x21b)][_0x13b4c9(0x10f)](),_0x235180>0x0?(this[_0x13b4c9(0x1a7)]['enable'](),this[_0x13b4c9(0x1a7)][_0x13b4c9(0xe6)]({'top':_0x3bb91d(_0xfcbe3f['y']),'left':0x0,'height':_0x425077(_0x1aca27)+_0x464012+_0x594c00['y'],'width':_0x3bb91d(_0xfcbe3f['x'])}),this[_0x13b4c9(0x1a7)][_0x13b4c9(0xbb)]({'actualScrollX':_0x3bb91d(_0x4d1b6a[_0x13b4c9(0xce)])+_0x3bb91d(_0xe4a4b6),'actualScrollY':_0x425077(_0x4ee795[_0x13b4c9(0x22c)])+_0x425077(_0x39b457)-_0x425077(_0xfcbe3f['y'])})):this[_0x13b4c9(0x1a7)][_0x13b4c9(0x10f)](),_0x5037fe>0x0?(this['_viewTop'][_0x13b4c9(0xb7)](),this[_0x13b4c9(0x78)]['resize']({'top':0x0,'left':_0x3bb91d(_0xfcbe3f['x']),'height':_0x425077(_0xfcbe3f['y']),'width':_0x3bb91d(_0x579e2d)+_0x40f1aa+_0x594c00['x']}),this['_viewTop'][_0x13b4c9(0xbb)]({'actualScrollX':_0x3bb91d(_0x4ee795['startX'])+_0x3bb91d(_0xe4a4b6)-_0x3bb91d(_0xfcbe3f['x']),'actualScrollY':_0x425077(_0x4d1b6a[_0x13b4c9(0x22c)])+_0x425077(_0x39b457)})):this[_0x13b4c9(0x78)][_0x13b4c9(0x10f)](),this[_0x13b4c9(0x110)][_0x13b4c9(0xe6)]({'top':_0x425077(_0xfcbe3f['y']),'left':_0x3bb91d(_0xfcbe3f['x']),'height':_0x425077(_0x1aca27)+_0x464012+_0x594c00['y'],'width':_0x3bb91d(_0x579e2d)+_0x40f1aa+_0x594c00['x']}),this[_0x13b4c9(0x110)][_0x13b4c9(0xbb)]({'actualScrollX':_0x3bb91d(_0x4ee795['startX'])+_0x3bb91d(_0xe4a4b6)-_0x3bb91d(_0xfcbe3f['x']),'actualScrollY':_0x425077(_0x4ee795[_0x13b4c9(0x22c)])+_0x425077(_0x39b457)-_0x425077(_0xfcbe3f['y'])});}[_0x2b7cc4(0x19d)](){const _0x235b8a=_0x2b7cc4,_0x513af0=this[_0x235b8a(0x197)],{vAlign:_0x47a5b4,hAlign:_0x23ce14}=this[_0x235b8a(0x102)],_0x4b0b06=Math[_0x235b8a(0x1d0)](this[_0x235b8a(0x22a)][_0x235b8a(0x14b)],this[_0x235b8a(0x22a)]['scaleY']);let _0x35f2a3;switch(_0x23ce14){case h[_0x235b8a(0x106)][_0x235b8a(0x1df)]:_0x35f2a3=_0x513af0['left'];break;case h['PrintAlign']['End']:_0x35f2a3=this[_0x235b8a(0xdc)]['w']-this[_0x235b8a(0x1ba)]*_0x4b0b06-_0x513af0['right'];break;default:_0x35f2a3=_0x513af0[_0x235b8a(0x108)]+(this['_paperSize']['w']-this['_totalWidth']*_0x4b0b06-_0x513af0[_0x235b8a(0x108)]-_0x513af0[_0x235b8a(0x222)])/0x2;break;}let _0x5e1627;switch(_0x47a5b4){case h[_0x235b8a(0x106)][_0x235b8a(0x1df)]:_0x5e1627=_0x513af0['top'];break;case h[_0x235b8a(0x106)][_0x235b8a(0x150)]:_0x5e1627=this[_0x235b8a(0xdc)]['h']-this[_0x235b8a(0x88)]*_0x4b0b06-_0x513af0[_0x235b8a(0x206)];break;default:_0x5e1627=(this[_0x235b8a(0xdc)]['h']-this[_0x235b8a(0x88)]*_0x4b0b06-_0x513af0['top']-_0x513af0[_0x235b8a(0x206)])/0x2+_0x513af0[_0x235b8a(0x89)];break;}return{'offsetX':Math[_0x235b8a(0xd0)](_0x35f2a3),'offsetY':Math['round'](_0x5e1627)};}['prepare'](){this['_resizeViewport']();}['_renderMainScene'](){const _0x33acd2=_0x2b7cc4;this[_0x33acd2(0xd7)]&&this['prepare']();const _0x46b0bc=this[_0x33acd2(0x120)][_0x33acd2(0xb9)]()['getContext'](),{gridlines:_0x3b51b2}=this[_0x33acd2(0x102)],{offsetX:_0xca86a6,offsetY:_0x5b975b}=this['_getTranslateOffset']();this['_spreadsheetObject'][_0x33acd2(0x18e)](!_0x3b51b2),this[_0x33acd2(0x219)]['makeForceDirty'](),this['_scene'][_0x33acd2(0x191)](),_0x46b0bc[_0x33acd2(0xb5)](),_0x46b0bc[_0x33acd2(0x226)](_0xca86a6,_0x5b975b),this[_0x33acd2(0x22a)][_0x33acd2(0xa1)](),_0x46b0bc['restore']();}[_0x2b7cc4(0x146)](){const _0x4718f9=_0x2b7cc4,_0x1c6542=this[_0x4718f9(0x13e)][_0x4718f9(0xba)](this[_0x4718f9(0x1b2)][_0x4718f9(0xb4)]),_0x9b2eb7=_0x1c6542==null?void 0x0:_0x1c6542[_0x4718f9(0x7a)](this[_0x4718f9(0x1b2)][_0x4718f9(0x1f6)]),{headerFooter:_0xb743c0}=this[_0x4718f9(0x102)],{w:_0x1f928f,h:_0x505ac4}=this['_paperSize'],_0x55cf5e=this[_0x4718f9(0x120)][_0x4718f9(0xb9)]()[_0x4718f9(0x14f)]();if(!_0x1c6542||!_0x9b2eb7)return;_0x55cf5e[_0x4718f9(0xb5)](),_0x55cf5e['font']=_0x4718f9(0x1cc)+O[_0x4718f9(0x1be)];const _0x4e8988=0x13*this[_0x4718f9(0x15f)],_0xcb8fb4=0x14*this['_previewScale'];if(_0xb743c0[_0x4718f9(0x1b0)](L[_0x4718f9(0x12a)])||_0xb743c0[_0x4718f9(0x1b0)](L[_0x4718f9(0xb8)])){let _0x52aa01=new Date()[_0x4718f9(0xf2)]();_0xb743c0[_0x4718f9(0x1b0)](L[_0x4718f9(0x12a)])?_0xb743c0[_0x4718f9(0x1b0)](L[_0x4718f9(0xb8)])||(_0x52aa01=new Date()[_0x4718f9(0x1e9)]()):_0x52aa01=new Date()[_0x4718f9(0x174)](),_0x55cf5e[_0x4718f9(0x1f5)](_0x52aa01,_0x4e8988,_0x505ac4-_0xcb8fb4);}_0xb743c0['forEach'](_0x4db9a2=>{const _0x339b78=_0x4718f9;switch(_0x4db9a2){case L[_0x339b78(0x1e3)]:{const _0xc05faa=_0x1c6542[_0x339b78(0xda)](),_0x3501ef=_0x55cf5e[_0x339b78(0x1af)](_0xc05faa),_0x505d5d=_0x3501ef[_0x339b78(0x16f)]+_0x3501ef['fontBoundingBoxDescent'];_0x55cf5e[_0x339b78(0x1f5)](_0xc05faa,_0x4e8988,_0xcb8fb4+_0x505d5d);break;}case L[_0x339b78(0x157)]:{const _0x3053b4=_0x9b2eb7[_0x339b78(0xda)](),_0x52efec=_0x55cf5e[_0x339b78(0x1af)](_0x3053b4),_0x23265e=_0x52efec[_0x339b78(0x16f)]+_0x52efec['fontBoundingBoxDescent'];_0x55cf5e[_0x339b78(0x1f5)](_0x3053b4,_0x1f928f-(_0x52efec[_0x339b78(0xf9)]+_0x4e8988),_0xcb8fb4+_0x23265e);break;}case L[_0x339b78(0x19c)]:{const _0x380f69=''+this[_0x339b78(0x1b2)]['page'],_0x1ee258=_0x55cf5e[_0x339b78(0x1af)](_0x380f69);_0x55cf5e[_0x339b78(0x1f5)](_0x380f69,_0x1f928f-(_0x1ee258['width']+_0x4e8988),_0x505ac4-_0xcb8fb4);break;}}}),_0x55cf5e[_0x4718f9(0x151)]();}[_0x2b7cc4(0x141)](){const _0x24ba22=_0x2b7cc4;{const _0x19f131=this[_0x24ba22(0xb0)][_0x24ba22(0x1b9)](_[_0x24ba22(0x1c1)]),_0x1975ea=this['_engine']['getCanvas']()[_0x24ba22(0x14f)]();_0x1975ea[_0x24ba22(0xb5)]();const _0x720b9a=0x14*this[_0x24ba22(0x15f)];_0x1975ea[_0x24ba22(0x225)]=_0x24ba22(0x103),_0x1975ea[_0x24ba22(0x9e)]=_0x24ba22(0x112)+O['DEFAULT_FONTFACE_PLANE'];const _0x504cf4=_0x1975ea[_0x24ba22(0x1af)](_0x19f131['t']('print.limit.waterMark')),_0x20dd91=(this[_0x24ba22(0xdc)]['w']-_0x504cf4[_0x24ba22(0xf9)])/0x2,_0x554d01=_0x504cf4[_0x24ba22(0x16f)]+_0x504cf4['fontBoundingBoxDescent'];_0x1975ea[_0x24ba22(0x1f5)](_0x19f131['t'](_0x24ba22(0xf6)),_0x20dd91,_0x720b9a+_0x554d01),_0x1975ea[_0x24ba22(0x1f5)](_0x19f131['t'](_0x24ba22(0xf6)),_0x20dd91,this[_0x24ba22(0xdc)]['h']-_0x720b9a),_0x1975ea[_0x24ba22(0x151)]();}}[_0x2b7cc4(0xa1)](){const _0x230f6e=_0x2b7cc4;this[_0x230f6e(0x120)][_0x230f6e(0x229)](),this[_0x230f6e(0x1c5)](),this[_0x230f6e(0x146)](),this[_0x230f6e(0x141)]();}[_0x2b7cc4(0x13d)](){const _0x797e73=_0x2b7cc4,_0x376498=this[_0x797e73(0x172)]['onTransformChangeObservable'][_0x797e73(0x18b)](()=>{this['render']();});this[_0x797e73(0x220)]({'dispose':()=>_0x376498==null?void 0x0:_0x376498[_0x797e73(0x195)]()});}}function Le(_0x4e3af0){const _0x3d78f0=_0x2b7cc4,[_0x4637c7,_0x121996]=o[_0x3d78f0(0x194)]();return o[_0x3d78f0(0xc9)](()=>{const _0x7c0121=_0x3d78f0;_0x4e3af0[_0x7c0121(0x90)](_0x3879f3=>{_0x121996(()=>_0x3879f3);});},[]),_0x4637c7;}const Oe='univer-sheets-print',He=_0x2b7cc4(0x16c),Ae=_0x2b7cc4(0x10b),We='univer-sheets-print-header-left',Ve='univer-sheets-print-header-right',Fe=_0x2b7cc4(0xbf),Ue=_0x2b7cc4(0xad),De=_0x2b7cc4(0x1f1),Be=_0x2b7cc4(0x96),$e=_0x2b7cc4(0x124),je=_0x2b7cc4(0x138),Ye=_0x2b7cc4(0x173),N={'sheetsPrint':Oe,'sheetsPrintLimit':He,'sheetsPrintHeader':Ae,'sheetsPrintHeaderLeft':We,'sheetsPrintHeaderRight':Ve,'sheetsPrintContent':Fe,'sheetsPrintContentPreview':Ue,'sheetsPrintContentPreviewPage':De,'sheetsPrintContentPreviewControl':Be,'sheetsPrintContentPreviewControlItem':$e,'sheetsPrintContentSetting':je,'sheetsPrintContentSettingForm':Ye},Xe=0x31a,ne=(_0x120691,_0x1a78c9)=>{const _0x1fbe31=_0x2b7cc4,_0x3e8924=o[_0x1fbe31(0x218)](!0x1);o[_0x1fbe31(0xc9)](()=>{const _0x318a94=_0x1fbe31;if(_0x3e8924[_0x318a94(0x196)])return _0x120691();_0x3e8924[_0x318a94(0x196)]=!0x0;},_0x1a78c9);},Ge=_0x2f457d=>{const _0x96d5bc=_0x2b7cc4,{config:_0x2318f5,previewScale:_0x3119b0}=_0x2f457d,_0x4db527=V['useDependency']($),_0x732a24=V[_0x96d5bc(0xe2)](W[_0x96d5bc(0x111)]),_0x2b3f23=o['useRef'](null),_0x4fe233=_0x4db527[_0x96d5bc(0xf0)],_0x5edb4f=k[_0x96d5bc(0x1b8)](_0x4db527[_0x96d5bc(0xd9)],_0x4db527['renderConfig']),_0x4dd482=k[_0x96d5bc(0x1b8)](_0x4db527[_0x96d5bc(0x211)],_0x4db527[_0x96d5bc(0xe3)]),_0x483277=Math[_0x96d5bc(0xd0)](_0x3119b0*(Xe/_0x4fe233['w'])*0xa)/0xa,[_0x3ac3d6]=o['useState'](()=>new de(_0x732a24,_0x2318f5,!0x0,_0x483277));return o[_0x96d5bc(0xc9)](()=>(_0x2b3f23[_0x96d5bc(0x196)]&&(_0x3ac3d6[_0x96d5bc(0x1a5)][_0x96d5bc(0xac)][_0x96d5bc(0xf9)]=_0x96d5bc(0x86),_0x3ac3d6['container'][_0x96d5bc(0xac)][_0x96d5bc(0x182)]='100%',_0x2b3f23[_0x96d5bc(0x196)]['appendChild'](_0x3ac3d6['container'])),_0x3ac3d6[_0x96d5bc(0xa1)](),_0x3ac3d6[_0x96d5bc(0x13d)](),()=>{const _0x3786e5=_0x96d5bc;var _0x5929ae;_0x3ac3d6[_0x3786e5(0x195)](),(_0x5929ae=_0x2b3f23[_0x3786e5(0x196)])==null||_0x5929ae[_0x3786e5(0x1ea)](_0x3ac3d6[_0x3786e5(0x1a5)]);}),[_0x3ac3d6]),ne(()=>{const _0x42514e=_0x96d5bc;_0x3ac3d6[_0x42514e(0xa1)]();},[_0x5edb4f]),ne(()=>{const _0xe55bf0=_0x96d5bc;_0x3ac3d6[_0xe55bf0(0x209)](_0x483277),_0x3ac3d6[_0xe55bf0(0x172)][_0xe55bf0(0xe6)](),_0x3ac3d6['render']();},[_0x483277]),ne(()=>{const _0x10c669=_0x96d5bc;_0x3ac3d6[_0x10c669(0xc7)](_0x2318f5),_0x3ac3d6[_0x10c669(0xa1)]();},[_0x2318f5[_0x96d5bc(0x12d)][_0x96d5bc(0x1cd)],_0x2318f5[_0x96d5bc(0x12d)]['startColumn'],_0x2318f5['freeze'][_0x96d5bc(0xe5)],_0x2318f5[_0x96d5bc(0x12d)]['ySplit'],_0x2318f5['range'][_0x96d5bc(0x1cd)],_0x2318f5[_0x96d5bc(0x1ff)][_0x96d5bc(0x8f)],_0x2318f5[_0x96d5bc(0x1ff)][_0x96d5bc(0x11c)],_0x2318f5[_0x96d5bc(0x1ff)][_0x96d5bc(0x1bf)],_0x2318f5[_0x96d5bc(0x1a6)],_0x4dd482['margin']]),o[_0x96d5bc(0x11f)](_0x96d5bc(0x72),{'className':N[_0x96d5bc(0x18f)],'ref':_0x2b3f23,'style':{'width':_0x4fe233['w']*_0x483277,'height':_0x4fe233['h']*_0x483277}});},Ze=o[_0x2b7cc4(0xea)](()=>{const _0x459a53=_0x2b7cc4,_0x274ec0=V['useDependency']($),_0x59ab04=k['useObservable'](_0x274ec0[_0x459a53(0x211)],_0x274ec0[_0x459a53(0xe3)]),_0x5887d2=k[_0x459a53(0x1b8)](_0x274ec0[_0x459a53(0xd9)],_0x274ec0[_0x459a53(0x1c2)]),_0x3b4db4=V[_0x459a53(0xe2)](_[_0x459a53(0x1c1)]),_0x538b7a=V[_0x459a53(0xe2)](_[_0x459a53(0x212)])[_0x459a53(0x1b4)](_['UniverInstanceType'][_0x459a53(0xd2)]),_0x455382=_0x538b7a[_0x459a53(0x148)](),_0x23b9fc=_0x538b7a[_0x459a53(0x9a)]()[_0x459a53(0x14c)](),_0x1f437f=_0x59ab04[_0x459a53(0xdb)]!==H['workbook']&&_0x23b9fc[_0x459a53(0xe5)]<=0x0,_0x7444d8=_0x59ab04[_0x459a53(0xdb)]!==H[_0x459a53(0x1de)]&&_0x23b9fc['ySplit']<=0x0;return o[_0x459a53(0x11f)](p[_0x459a53(0x228)],null,o['createElement'](_0x459a53(0x72),{'className':N[_0x459a53(0x104)]},o[_0x459a53(0x11f)](p[_0x459a53(0x159)],{'label':_0x3b4db4['t'](_0x459a53(0x221))},o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'width':_0x459a53(0x86)},'value':''+_0x59ab04[_0x459a53(0xdb)],'onChange':_0x1c4293=>{const _0x3fe2be=_0x459a53;_0x1c4293===H[_0x3fe2be(0x1de)]?_0x274ec0[_0x3fe2be(0xcd)]({'area':_0x1c4293,'subUnitIds':_0x455382[_0x3fe2be(0x105)](_0x268513=>_0x268513['getSheetId']())}):_0x274ec0[_0x3fe2be(0xcd)]({'area':_0x1c4293});},'options':[{'label':_0x3b4db4['t'](_0x459a53(0x171)),'value':H[_0x459a53(0x7b)]},{'label':_0x3b4db4['t']('print.area.workbook'),'value':H[_0x459a53(0x1de)]},{'label':_0x3b4db4['t'](_0x459a53(0x1d1)),'value':H[_0x459a53(0x156)]}]})),_0x59ab04[_0x459a53(0xdb)]===H[_0x459a53(0x1de)]?o['createElement'](p[_0x459a53(0x159)],{'label':_0x3b4db4['t']('print.selection.title')},o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'width':_0x459a53(0x86)},'value':_0x459a53(0x188),'onChange':_0x537122=>{const _0x30fe20=_0x459a53;_0x274ec0[_0x30fe20(0xcd)]({'subUnitIds':_0x537122});},'options':[{'label':_0x59ab04[_0x459a53(0x133)][_0x459a53(0x1a2)]===_0x455382['length']||_0x59ab04[_0x459a53(0x133)][_0x459a53(0x1a2)]===0x0?_0x3b4db4['t'](_0x459a53(0x1c3)):''+_0x59ab04[_0x459a53(0x133)]['length']+_0x3b4db4['t'](_0x459a53(0x152)),'value':_0x459a53(0x188)}],'dropdownRender':()=>o[_0x459a53(0x11f)](_0x459a53(0x72),{'style':{'height':0xc8}},o[_0x459a53(0x11f)](p[_0x459a53(0x228)],null,o['createElement'](p['CheckboxGroup'],{'value':_0x59ab04[_0x459a53(0x133)],'onChange':_0x3342ac=>{const _0x61a63=_0x459a53,_0x38fda5=new Set(_0x3342ac);if(_0x38fda5[_0x61a63(0x1ef)]===0x0)_0x274ec0[_0x61a63(0xcd)]({'subUnitIds':_0x455382[_0x61a63(0x105)](_0x2b16c4=>_0x2b16c4[_0x61a63(0xeb)]())});else{const _0x22868d=[];_0x455382[_0x61a63(0xb6)](_0x4862bb=>{const _0x346b0c=_0x61a63,_0x31e47f=_0x4862bb[_0x346b0c(0xeb)]();_0x38fda5[_0x346b0c(0xdd)](_0x31e47f)&&_0x22868d[_0x346b0c(0x1d6)](_0x31e47f);}),_0x274ec0[_0x61a63(0xcd)]({'subUnitIds':_0x22868d});}},'style':{'display':'flex','flexDirection':_0x459a53(0x20f),'padding':0xc}},_0x455382['map'](_0x26455a=>o['createElement'](p['Checkbox'],{'key':_0x26455a[_0x459a53(0xeb)](),'value':_0x26455a['getSheetId']()},_0x26455a[_0x459a53(0xda)]())))))})):null,o[_0x459a53(0x11f)](p['FormLayout'],{'label':_0x3b4db4['t'](_0x459a53(0x71))},o['createElement'](p[_0x459a53(0x13f)],{'style':{'width':_0x459a53(0x86)},'value':_0x59ab04[_0x459a53(0xf0)],'onChange':_0x2375fa=>{const _0x46331c=_0x459a53;_0x274ec0[_0x46331c(0xcd)]({'paperSize':_0x2375fa});},'options':[{'label':_0x3b4db4['t']('print.size.letter'),'value':h[_0x459a53(0x81)][_0x459a53(0x12c)]},{'label':_0x3b4db4['t'](_0x459a53(0xd4)),'value':h[_0x459a53(0x81)][_0x459a53(0x1da)]},{'label':_0x3b4db4['t'](_0x459a53(0x213)),'value':h[_0x459a53(0x81)][_0x459a53(0x11d)]},{'label':_0x3b4db4['t'](_0x459a53(0x109)),'value':h['PrintPaperSize'][_0x459a53(0x116)]},{'label':_0x3b4db4['t']('print.size.executive'),'value':h[_0x459a53(0x81)][_0x459a53(0xdf)]},{'label':_0x3b4db4['t'](_0x459a53(0x87)),'value':h[_0x459a53(0x81)]['Folio']},{'label':_0x3b4db4['t']('print.size.a3'),'value':h['PrintPaperSize']['A3']},{'label':_0x3b4db4['t'](_0x459a53(0xa6)),'value':h[_0x459a53(0x81)]['A4']},{'label':_0x3b4db4['t'](_0x459a53(0xfa)),'value':h['PrintPaperSize']['A5']},{'label':_0x3b4db4['t'](_0x459a53(0x113)),'value':h[_0x459a53(0x81)]['B4']},{'label':_0x3b4db4['t']('print.size.b5'),'value':h[_0x459a53(0x81)]['B5']}]})),o[_0x459a53(0x11f)](p[_0x459a53(0x159)],{'label':_0x3b4db4['t'](_0x459a53(0x143))},o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'width':_0x459a53(0x86)},'value':_0x59ab04[_0x459a53(0x193)],'onChange':_0x16c7e6=>{const _0x524f02=_0x459a53;_0x274ec0[_0x524f02(0xcd)]({'margin':_0x16c7e6});},'options':[{'label':_0x3b4db4['t'](_0x459a53(0x1cb)),'value':h[_0x459a53(0x95)][_0x459a53(0x1ad)]},{'label':_0x3b4db4['t'](_0x459a53(0x203)),'value':h['PrintPaperMargin']['Narrow']},{'label':_0x3b4db4['t'](_0x459a53(0x1f8)),'value':h[_0x459a53(0x95)][_0x459a53(0xa4)]}]})),o[_0x459a53(0x11f)](p[_0x459a53(0x159)],{'label':_0x3b4db4['t'](_0x459a53(0x21a))},o[_0x459a53(0x11f)](p['RadioGroup'],{'value':_0x59ab04[_0x459a53(0x1e8)],'onChange':_0x3b67b9=>{const _0x4c67cc=_0x459a53;_0x274ec0[_0x4c67cc(0xcd)]({'direction':_0x3b67b9});}},o[_0x459a53(0x11f)](p[_0x459a53(0x142)],{'value':h[_0x459a53(0x1e4)]['Portrait']},_0x3b4db4['t'](_0x459a53(0x17e))),o[_0x459a53(0x11f)](p[_0x459a53(0x142)],{'value':h['PrintDirection'][_0x459a53(0x1ee)]},_0x3b4db4['t'](_0x459a53(0x8a))))),o['createElement'](p['FormLayout'],{'label':_0x3b4db4['t'](_0x459a53(0x147))},o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'width':_0x459a53(0x86)},'value':_0x59ab04['scale'],'onChange':_0x211ce1=>{const _0x308b7c=_0x459a53;_0x274ec0[_0x308b7c(0xcd)]({'scale':_0x211ce1});},'options':[{'label':_0x3b4db4['t'](_0x459a53(0x73)),'value':h[_0x459a53(0x100)][_0x459a53(0x84)]},{'label':_0x3b4db4['t']('print.scale.fitWidth'),'value':h[_0x459a53(0x100)]['FitWidth']},{'label':_0x3b4db4['t'](_0x459a53(0x1ec)),'value':h[_0x459a53(0x100)][_0x459a53(0x21c)]},{'label':_0x3b4db4['t'](_0x459a53(0x176)),'value':h[_0x459a53(0x100)][_0x459a53(0xc5)]}]})),o[_0x459a53(0x11f)](p[_0x459a53(0x159)],{'label':_0x3b4db4['t']('print.formatting.title')},o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'checked':_0x5887d2[_0x459a53(0x155)],'onChange':_0x421a8=>{_0x274ec0['updateRenderConfig']({'gridlines':_0x421a8});}},_0x3b4db4['t'](_0x459a53(0x19a)))),o[_0x459a53(0x11f)](p['FormLayout'],{'label':_0x3b4db4['t'](_0x459a53(0xc8))},o['createElement'](_0x459a53(0x72),{'style':{'width':_0x459a53(0x86),'display':'flex'}},o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'marginRight':0x4,'flex':0x1},'value':_0x5887d2[_0x459a53(0x11a)],'onChange':_0x24826e=>{const _0x219774=_0x459a53;_0x274ec0[_0x219774(0xae)]({'hAlign':_0x24826e});},'options':[{'label':_0x3b4db4['t']('print.align.horizontal.middle'),'value':h[_0x459a53(0x106)][_0x459a53(0xc0)]},{'label':_0x3b4db4['t'](_0x459a53(0x22b)),'value':h[_0x459a53(0x106)][_0x459a53(0x1df)]},{'label':_0x3b4db4['t']('print.align.horizontal.end'),'value':h['PrintAlign'][_0x459a53(0x150)]}]}),o[_0x459a53(0x11f)](p[_0x459a53(0x13f)],{'style':{'marginLeft':0x4,'flex':0x1},'value':_0x5887d2[_0x459a53(0x74)],'onChange':_0x5f2c04=>{const _0x4ad23b=_0x459a53;_0x274ec0[_0x4ad23b(0xae)]({'vAlign':_0x5f2c04});},'options':[{'label':_0x3b4db4['t'](_0x459a53(0x10c)),'value':h[_0x459a53(0x106)]['Start']},{'label':_0x3b4db4['t'](_0x459a53(0x12b)),'value':h[_0x459a53(0x106)][_0x459a53(0x150)]},{'label':_0x3b4db4['t'](_0x459a53(0x18a)),'value':h[_0x459a53(0x106)][_0x459a53(0xc0)]}]}))),o[_0x459a53(0x11f)](p[_0x459a53(0x159)],{'label':_0x3b4db4['t']('print.headerFooter.title')},o[_0x459a53(0x11f)](p[_0x459a53(0x1ac)],{'value':_0x5887d2[_0x459a53(0x1f7)],'onChange':_0x2256f9=>{const _0x160daf=_0x459a53;_0x274ec0[_0x160daf(0xae)]({'headerFooter':_0x2256f9});},'style':{'display':_0x459a53(0x10a),'flexDirection':'column'}},o[_0x459a53(0x11f)](p['Checkbox'],{'value':L['PageSize']},_0x3b4db4['t']('print.headerFooter.page')),o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'value':L[_0x459a53(0x1e3)]},_0x3b4db4['t']('print.headerFooter.workbook')),o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'value':L[_0x459a53(0x157)]},_0x3b4db4['t']('print.headerFooter.sheet')),o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'value':L[_0x459a53(0x12a)]},_0x3b4db4['t'](_0x459a53(0xaf))),o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'value':L[_0x459a53(0xb8)]},_0x3b4db4['t'](_0x459a53(0x224))))),o['createElement'](p[_0x459a53(0x159)],{'label':_0x3b4db4['t'](_0x459a53(0x21e))},o[_0x459a53(0x11f)](p['CheckboxGroup'],{'value':_0x59ab04['freeze'],'onChange':_0x4f7a84=>{const _0x5b2052=_0x459a53;_0x274ec0[_0x5b2052(0xcd)]({'freeze':_0x4f7a84});},'style':{'display':_0x459a53(0x10a),'flexDirection':_0x459a53(0x20f)}},o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'disabled':_0x7444d8,'value':B['Row']},_0x3b4db4['t']('print.freeze.row')),o[_0x459a53(0x11f)](p[_0x459a53(0x1dd)],{'disabled':_0x1f437f,'value':B[_0x459a53(0x15e)]},_0x3b4db4['t'](_0x459a53(0x1f3)))))));}),se=0.1,qe=0.5,Ke=0x2,Qe=()=>{const _0x4cf161=_0x2b7cc4,_0x54e1a8=V[_0x4cf161(0xe2)]($),_0x38363e=V[_0x4cf161(0xe2)](_['ICommandService']),_0x592f38=k[_0x4cf161(0x1b8)](_0x54e1a8['layoutInfos$'],[]),[_0x2ca445,_0x21fd45]=o[_0x4cf161(0x194)](0x1),_0x182ade=o[_0x4cf161(0x218)](0x0),_0x36fc34=V[_0x4cf161(0xe2)](_[_0x4cf161(0x212)]),_0x30b0dc=V['useDependency'](_[_0x4cf161(0x1c1)]),_0x521c44=V[_0x4cf161(0xe2)](W['Injector']),_0x5cb564=Le(import(_0x4cf161(0x1a0))[_0x4cf161(0x90)](_0x30ead2=>_0x30ead2[_0x4cf161(0x169)]));o['useEffect'](()=>{const _0x12df4f=_0x4cf161;var _0x2ceeb7;if(!_0x5cb564)return;const _0x72e45f=_0x36fc34[_0x12df4f(0x1b4)](_['UniverInstanceType']['UNIVER_SHEET'])[_0x12df4f(0x1e0)](),_0x30b6e5=_0x521c44[_0x12df4f(0x1b9)](_0x5cb564,W[_0x12df4f(0xf4)]['OPTIONAL']),_0x4706a5=(_0x2ceeb7=_0x30b6e5==null?void 0x0:_0x30b6e5[_0x12df4f(0xfe)](_0x72e45f))==null?void 0x0:_0x2ceeb7[_0x12df4f(0x10d)]();return()=>{const _0x296acd=_0x12df4f;_0x4706a5==null||_0x4706a5[_0x296acd(0x195)]();};},[_0x5cb564,_0x521c44,_0x36fc34]);const _0x1aa878=o[_0x4cf161(0xb2)](()=>{const _0x4f1691=_0x4cf161;let _0x351098=0x1;return _0x182ade[_0x4f1691(0x196)]++,_0x592f38['map'](_0xf864a4=>_0xf864a4[_0x4f1691(0x199)]['map']((_0xab7697,_0x38c46b)=>({'page':_0x351098++,..._0xf864a4,'range':_0xab7697,'subPage':_0x38c46b})))[_0x4f1691(0x7d)]();},[_0x592f38])[_0x4cf161(0x1b3)](0x0,0x3),_0x314bbc=()=>{const _0xbfab86=_0x4cf161;_0x38363e[_0xbfab86(0xe7)](ae['id']);},_0x21e47a=()=>{const _0x2195f0=_0x4cf161;_0x38363e[_0x2195f0(0xe7)](K['id']);};return o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N[_0x4cf161(0x1fd)]},o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N[_0x4cf161(0xc3)]},o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N[_0x4cf161(0xd6)]},_0x30b0dc['t']('print.header.total'),_0x1aa878[_0x4cf161(0x1a2)],_0x30b0dc['t'](_0x4cf161(0xaa))),o['createElement'](_0x4cf161(0x72),{'className':N[_0x4cf161(0xfc)]},o[_0x4cf161(0x11f)](p[_0x4cf161(0x79)],{'onClick':_0x314bbc},_0x30b0dc['t'](_0x4cf161(0x160))),o[_0x4cf161(0x11f)](p[_0x4cf161(0x79)],{'type':_0x4cf161(0x15b),'onClick':_0x21e47a},_0x30b0dc['t']('print.header.next')))),o['createElement'](_0x4cf161(0x72),{'className':N[_0x4cf161(0x1c7)]},o[_0x4cf161(0x11f)]('div',{'className':N[_0x4cf161(0x77)]},o['createElement'](p['Scrollbar'],null,_0x1aa878['map'](_0x3d8ce4=>o[_0x4cf161(0x11f)](Ge,{'key':_0x3d8ce4[_0x4cf161(0xb4)]+'-'+_0x3d8ce4['subUnitId']+'-'+_0x3d8ce4[_0x4cf161(0x135)],'config':_0x3d8ce4,'page':_0x3d8ce4['page'],'previewScale':_0x2ca445})),o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N['sheetsPrintLimit']},o[_0x4cf161(0x11f)]('a',{'href':_0x30b0dc['t']('print.limit.link'),'target':_0x4cf161(0x13a)},_0x30b0dc['t'](_0x4cf161(0x75))))),o['createElement']('div',{'className':N[_0x4cf161(0x1ed)]},o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N[_0x4cf161(0x181)],'onClick':()=>{_0x21fd45(Math['min'](_0x2ca445+se,Ke));}},o[_0x4cf161(0x11f)](he,null)),o['createElement'](_0x4cf161(0x72),{'className':N[_0x4cf161(0x181)],'onClick':()=>{_0x21fd45(Math['max'](_0x2ca445-se,qe));}},o['createElement'](ue,null)))),o[_0x4cf161(0x11f)](_0x4cf161(0x72),{'className':N[_0x4cf161(0x1c8)]},o[_0x4cf161(0x11f)](Ze,null))));};var Je=(_0x53e98d,_0x505f10,_0x2ef395,_0x18431d)=>{const _0x4a75d0=_0x2b7cc4;for(var _0x36adc5=_0x505f10,_0x3b97d5=_0x53e98d[_0x4a75d0(0x1a2)]-0x1,_0x3a1646;_0x3b97d5>=0x0;_0x3b97d5--)(_0x3a1646=_0x53e98d[_0x3b97d5])&&(_0x36adc5=_0x3a1646(_0x36adc5)||_0x36adc5);return _0x36adc5;},X=(_0x1b3455,_0x315386)=>(_0x16c3e6,_0x4f7490)=>_0x315386(_0x16c3e6,_0x4f7490,_0x1b3455);let Z=class extends _[_0x2b7cc4(0xb1)]{constructor(_0x2c9afa,_0x84af6d,_0x3140f2,_0x175d00){const _0x3846ef=_0x2b7cc4;super(),this[_0x3846ef(0xb3)]=_0x2c9afa,this['_commandService']=_0x84af6d,this[_0x3846ef(0x117)]=_0x3140f2,this['_sheetPrintManagerService']=_0x175d00,this[_0x3846ef(0x83)]();}[_0x2b7cc4(0x83)](){const _0x3d7b7e=_0x2b7cc4;this[_0x3d7b7e(0x15d)](),this[_0x3d7b7e(0x186)](),this[_0x3d7b7e(0x80)]();}[_0x2b7cc4(0x15d)](){const _0x252e7c=_0x2b7cc4;this[_0x252e7c(0xb3)][_0x252e7c(0x201)](Te,Qe);}[_0x2b7cc4(0x80)](){const _0x57e806=_0x2b7cc4;this[_0x57e806(0x220)](this['_printService'][_0x57e806(0xa2)][_0x57e806(0x10e)](_0x2310de=>{const _0x459aea=_0x57e806;_0x2310de&&this[_0x459aea(0xa0)][_0x459aea(0x210)]();}));}[_0x2b7cc4(0xc4)](){const _0x14e017=_0x2b7cc4;let _0x2386aa=this[_0x14e017(0xa0)]['layoutInfos'][_0x14e017(0x105)](_0x4b006a=>_0x4b006a[_0x14e017(0x199)]['map'](_0x5535ab=>({..._0x4b006a,'range':_0x5535ab})))['flat']()[_0x14e017(0x105)]((_0x1d50ad,_0x343d6c)=>({..._0x1d50ad,'page':_0x343d6c+0x1}));_0x2386aa=_0x2386aa['slice'](0x0,0x3);const _0x1e3fe7=document[_0x14e017(0x11f)](_0x14e017(0x72));_0x1e3fe7[_0x14e017(0xa7)]=h[_0x14e017(0xab)];const _0x577f80=_0x2386aa[_0x14e017(0x105)](_0x2dd488=>{const _0x5d42b0=_0x14e017,_0x786a71=new de(this[_0x5d42b0(0x117)],_0x2dd488,!0x1);return _0x786a71[_0x5d42b0(0x1a5)][_0x5d42b0(0xa7)]=h['PRINT_CANVAS_CLASS'],_0x786a71;});_0x577f80[_0x14e017(0xb6)](_0x26fee8=>{const _0x3dd10d=_0x14e017;_0x1e3fe7[_0x3dd10d(0x11b)](_0x26fee8['container']);});const _0x43d6f7=this[_0x14e017(0xa0)][_0x14e017(0xe3)],_0x2bd662=h['createPrintStyle'](_0x43d6f7[_0x14e017(0xf0)],_0x43d6f7[_0x14e017(0x1e8)]);document['body'][_0x14e017(0x11b)](_0x2bd662),document[_0x14e017(0xe0)][_0x14e017(0x11b)](_0x1e3fe7),setTimeout(()=>{const _0x10fd6a=_0x14e017;window[_0x10fd6a(0x97)]=()=>{_0x577f80['forEach'](_0x4aa99f=>{const _0x1fb265=_0x2f12;_0x4aa99f[_0x1fb265(0xa1)]();});},window[_0x10fd6a(0x204)]=()=>{const _0x3741fe=_0x10fd6a;_0x577f80['forEach'](_0x1762a0=>{const _0x70ea02=_0x2f12;_0x1762a0[_0x70ea02(0x195)]();}),document[_0x3741fe(0xe0)]['removeChild'](_0x1e3fe7),document[_0x3741fe(0xe0)]['removeChild'](_0x2bd662),this[_0x3741fe(0xb3)][_0x3741fe(0x1d2)](),this[_0x3741fe(0xa0)][_0x3741fe(0x17c)]();},window[_0x10fd6a(0x18d)]();},0x64);}[_0x2b7cc4(0x186)](){const _0x440dbc=_0x2b7cc4;this[_0x440dbc(0x220)](this[_0x440dbc(0x76)]['onCommandExecuted'](_0x5142d5=>{_0x5142d5['id']===K['id']&&this['_print']();})),this[_0x440dbc(0x220)](this[_0x440dbc(0x76)][_0x440dbc(0x165)](_0x290eaa=>{_0x290eaa['id']===Y['id']&&this['_printService']['open']();}));}};Z=Je([_['OnLifecycle'](_['LifecycleStages'][_0x2b7cc4(0xe1)],Z),X(0x0,k[_0x2b7cc4(0x139)]),X(0x1,_[_0x2b7cc4(0xd3)]),X(0x2,W['Inject'](W[_0x2b7cc4(0x111)])),X(0x3,$)],Z);const et={'id':Y['id'],'binding':k[_0x2b7cc4(0xf1)]['P']|k[_0x2b7cc4(0x126)]['CTRL_COMMAND'],'preconditions':U[_0x2b7cc4(0x93)]};function tt(_0x550595){const _0xf60595=_0x2b7cc4;return{'id':Y['id'],'type':k[_0xf60595(0x1a3)][_0xf60595(0x1b1)],'group':k[_0xf60595(0x205)][_0xf60595(0x1b5)],'positions':[k[_0xf60595(0x189)][_0xf60595(0x118)]],'title':_0xf60595(0x1e2),'icon':_0xf60595(0x216),'tooltip':_0xf60595(0x1e2),'hidden$':k[_0xf60595(0x1e6)](_0x550595,_[_0xf60595(0xc6)][_0xf60595(0xd2)]),'disabled$':U[_0xf60595(0x166)](_0x550595,{'workbookTypes':[re[_0xf60595(0xf5)]]})};}var nt=(_0x35eefc,_0x2b58ba,_0x59a503,_0x58cc1a)=>{const _0x395f92=_0x2b7cc4;for(var _0x576bd6=_0x2b58ba,_0x36a369=_0x35eefc[_0x395f92(0x1a2)]-0x1,_0x410da9;_0x36a369>=0x0;_0x36a369--)(_0x410da9=_0x35eefc[_0x36a369])&&(_0x576bd6=_0x410da9(_0x576bd6)||_0x576bd6);return _0x576bd6;},j=(_0x37a638,_0x3ffd6d)=>(_0xfc02e2,_0x2e0a1e)=>_0x3ffd6d(_0xfc02e2,_0x2e0a1e,_0x37a638);const it={};var G;exports[_0x2b7cc4(0x17d)]=(G=class extends _[_0x2b7cc4(0x1c6)]{constructor(_0x3c7c5e={},_0x414ae2,_0x39eacc,_0x3a0877,_0x4a6e36,_0x4856df,_0x5c06aa){const _0x58c947=_0x2b7cc4;super(),this[_0x58c947(0x1b2)]=_0x3c7c5e,this[_0x58c947(0x117)]=_0x414ae2,this['_commandService']=_0x39eacc,this[_0x58c947(0x1db)]=_0x3a0877,this[_0x58c947(0x164)]=_0x4a6e36,this['_menuService']=_0x4856df,this[_0x58c947(0xa3)]=_0x5c06aa,this['_config']=_[_0x58c947(0x1e1)][_0x58c947(0x1dc)]({},it,this[_0x58c947(0x1b2)]);}[_0x2b7cc4(0x153)](){const _0x59c4b4=_0x2b7cc4;[Y,ae,K][_0x59c4b4(0xb6)](_0x50920d=>this['_commandService'][_0x59c4b4(0x128)](_0x50920d)),[[$,{'useClass':ie}],[Z]][_0x59c4b4(0xb6)](_0x4a5a61=>this['_injector'][_0x59c4b4(0x18b)](_0x4a5a61)),[et]['forEach'](_0x369d7d=>{const _0x62711c=_0x59c4b4;this[_0x62711c(0x164)][_0x62711c(0x140)](_0x369d7d);}),[[_0x59c4b4(0x216),ce]][_0x59c4b4(0xb6)](([_0x58b7f9,_0x1afbc2])=>{const _0x109229=_0x59c4b4;this[_0x109229(0xa3)][_0x109229(0xef)](_0x58b7f9,_0x1afbc2);});const {menu:_0x323bc0={}}=this[_0x59c4b4(0x1b2)];[tt]['forEach'](_0xc4014f=>{const _0x19d976=_0x59c4b4;this['_menuService'][_0x19d976(0x14a)](_0xc4014f(this[_0x19d976(0x117)]),_0x323bc0);});}},y(G,_0x2b7cc4(0x200),Ne),y(G,_0x2b7cc4(0x125),_[_0x2b7cc4(0xc6)]['UNIVER_SHEET']),G),exports['SheetsPrintPlugin']=nt([j(0x1,W[_0x2b7cc4(0x129)](W[_0x2b7cc4(0x111)])),j(0x2,_[_0x2b7cc4(0xd3)]),j(0x3,W['Inject'](_[_0x2b7cc4(0x1c1)])),j(0x4,k[_0x2b7cc4(0x136)]),j(0x5,k['IMenuService']),j(0x6,W[_0x2b7cc4(0x129)](k[_0x2b7cc4(0x20e)]))],exports[_0x2b7cc4(0x17d)]),exports[_0x2b7cc4(0x9f)]=ae,exports[_0x2b7cc4(0x134)]=K,exports[_0x2b7cc4(0xc1)]=Y;
1
+ 'use strict';const _0x2b8db7=_0x523b;(function(_0x19d876,_0xd8ca3a){const _0x4f6f4c=_0x523b,_0x16592e=_0x19d876();while(!![]){try{const _0x461979=-parseInt(_0x4f6f4c(0x22f))/0x1*(parseInt(_0x4f6f4c(0x182))/0x2)+-parseInt(_0x4f6f4c(0x224))/0x3+-parseInt(_0x4f6f4c(0x186))/0x4+-parseInt(_0x4f6f4c(0x2e1))/0x5+parseInt(_0x4f6f4c(0x273))/0x6+parseInt(_0x4f6f4c(0x2df))/0x7+parseInt(_0x4f6f4c(0x225))/0x8;if(_0x461979===_0xd8ca3a)break;else _0x16592e['push'](_0x16592e['shift']());}catch(_0x1eabf7){_0x16592e['push'](_0x16592e['shift']());}}}(_0x5c6b,0x4a69c));var ge=Object['create'],ee=Object[_0x2b8db7(0x25e)],pe=Object[_0x2b8db7(0x26c)],fe=Object[_0x2b8db7(0x1e6)],Se=Object[_0x2b8db7(0x1b9)],me=Object[_0x2b8db7(0x29f)][_0x2b8db7(0x1e4)],_e=(_0x29a82a,_0x5ce687,_0x437a82)=>_0x5ce687 in _0x29a82a?ee(_0x29a82a,_0x5ce687,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x437a82}):_0x29a82a[_0x5ce687]=_0x437a82,ve=(_0x1b5b8c,_0x59aa92,_0x5f3c18,_0x285bb0)=>{const _0x4b7004=_0x2b8db7;if(_0x59aa92&&typeof _0x59aa92=='object'||typeof _0x59aa92==_0x4b7004(0x299)){for(let _0x30deab of fe(_0x59aa92))!me[_0x4b7004(0x1c9)](_0x1b5b8c,_0x30deab)&&_0x30deab!==_0x5f3c18&&ee(_0x1b5b8c,_0x30deab,{'get':()=>_0x59aa92[_0x30deab],'enumerable':!(_0x285bb0=pe(_0x59aa92,_0x30deab))||_0x285bb0['enumerable']});}return _0x1b5b8c;},Ce=(_0x3a291d,_0x5eb4c3,_0x1fc472)=>(_0x1fc472=_0x3a291d!=null?ge(Se(_0x3a291d)):{},ve(_0x5eb4c3||!_0x3a291d||!_0x3a291d[_0x2b8db7(0x1cb)]?ee(_0x1fc472,'default',{'value':_0x3a291d,'enumerable':!0x0}):_0x1fc472,_0x3a291d)),P=(_0x1ddfc0,_0x1fa205,_0x6b2c53)=>_e(_0x1ddfc0,typeof _0x1fa205!=_0x2b8db7(0x1f2)?_0x1fa205+'':_0x1fa205,_0x6b2c53);Object['defineProperty'](exports,Symbol[_0x2b8db7(0x1c8)],{'value':_0x2b8db7(0x2d8)});const m=require('@univerjs/core'),R=require(_0x2b8db7(0x247)),W=require(_0x2b8db7(0x2c1)),re=require(_0x2b8db7(0x2be)),z=require(_0x2b8db7(0x228)),H=require('@univerjs/sheets-ui'),d=require(_0x2b8db7(0x26a)),te=require(_0x2b8db7(0x2b2)),p=require(_0x2b8db7(0x332)),D=require(_0x2b8db7(0x1dc)),s=require(_0x2b8db7(0x2fe));var A=function(){const _0x284274=_0x2b8db7;return A=Object[_0x284274(0x2e2)]||function(_0x386374){const _0x5c58e7=_0x284274;for(var _0x176411,_0x460cd8=0x1,_0x115af4=arguments[_0x5c58e7(0x2e5)];_0x460cd8<_0x115af4;_0x460cd8++){_0x176411=arguments[_0x460cd8];for(var _0x261aa4 in _0x176411)Object[_0x5c58e7(0x29f)][_0x5c58e7(0x1e4)][_0x5c58e7(0x1c9)](_0x176411,_0x261aa4)&&(_0x386374[_0x261aa4]=_0x176411[_0x261aa4]);}return _0x386374;},A[_0x284274(0x2e7)](this,arguments);},Pe=function(_0x2ec010,_0x39a0d1){const _0x1bec2b=_0x2b8db7;var _0x47f025={};for(var _0x27ba61 in _0x2ec010)Object[_0x1bec2b(0x29f)]['hasOwnProperty'][_0x1bec2b(0x1c9)](_0x2ec010,_0x27ba61)&&_0x39a0d1[_0x1bec2b(0x278)](_0x27ba61)<0x0&&(_0x47f025[_0x27ba61]=_0x2ec010[_0x27ba61]);if(_0x2ec010!=null&&typeof Object['getOwnPropertySymbols']==_0x1bec2b(0x299)){for(var _0x1c1ce8=0x0,_0x27ba61=Object[_0x1bec2b(0x1d0)](_0x2ec010);_0x1c1ce8<_0x27ba61['length'];_0x1c1ce8++)_0x39a0d1[_0x1bec2b(0x278)](_0x27ba61[_0x1c1ce8])<0x0&&Object[_0x1bec2b(0x29f)]['propertyIsEnumerable']['call'](_0x2ec010,_0x27ba61[_0x1c1ce8])&&(_0x47f025[_0x27ba61[_0x1c1ce8]]=_0x2ec010[_0x27ba61[_0x1c1ce8]]);}return _0x47f025;},Q=s['forwardRef'](function(_0x2eac42,_0x1f6529){const _0x53480d=_0x2b8db7;var _0x186331=_0x2eac42[_0x53480d(0x1bb)],_0x4a33f7=_0x2eac42['id'],_0x384560=_0x2eac42[_0x53480d(0x254)],_0x55ebb3=_0x2eac42[_0x53480d(0x2e9)],_0x128937=Pe(_0x2eac42,[_0x53480d(0x1bb),'id',_0x53480d(0x254),_0x53480d(0x2e9)]),_0x364aa4=_0x53480d(0x1a4)['concat'](_0x4a33f7,'\x20')[_0x53480d(0x30d)](_0x384560||'')[_0x53480d(0x2e3)](),_0x28035c=s[_0x53480d(0x26d)]('_'[_0x53480d(0x30d)](Ie()));return ce(_0x186331,''[_0x53480d(0x30d)](_0x4a33f7),{'defIds':_0x186331['defIds'],'idSuffix':_0x28035c[_0x53480d(0x319)]},A({'ref':_0x1f6529,'className':_0x364aa4},_0x128937),_0x55ebb3);});function _0x5c6b(){const _0x57b174=['UniverSheetsPrintPlugin','getOrCreateSkeleton','children','_layoutInfos','univer-sheets-print-content-setting','_sheetPrintInterceptorService','getPrototypeOf','_config','icon','OPTIONAL','_calculate','forEach','direction','makeDirty','close','removeChild','endY','_getTranslateOffset','fillText','endX','getCollabEntity','toStringTag','call','entries','__esModule','print.margin.normal','bottom','PRINT_CONTAINER_CLASS','sheetsPrintContentSetting','getOwnPropertySymbols','print.limit.page','type','LocaleService','UNIVER_SHEET_PERMISSION_ALERT_DIALOG_ID','Executive','IDialogService','createElement','key','_calculateSubSheetRange','pages','subPage','@wendellhu/redi/react-bindings','fetchThroughInterceptors','print','CTRL_COMMAND','_initCommandListener','range','UniverInstanceType','svg','hasOwnProperty','getUnitSkeleton','getOwnPropertyNames','startRow','gridlines','Tools','print.limit.waterMark','KeyCode','print.align.title','right','sheetsPrintHeaderLeft','skeleton','_viewLeft','add','symbol','resizeWhenFreezeChange','_renderConfig$','getRenderById','size','_accessor','map','height','layoutConfig$','defIds','UniverIcon','SheetPrintInterceptorService','print.selection.workbookUnit','top','_renderWaterMark','IMenuService','print.header.next','_initRenderer','register','restore','warn','width','useDependency','sheetsPrintLimit','useState','string','defs','useObservable','print.size.legal','scale','print.headerFooter.workbook','print.align.horizontal.middle','print.size.b5','ComponentManager','then','CollaborationController','ConfirmSheetPrintOperation','PaperMarginMap','replace','100%','_calculateSheetRangeById','memo','LifecycleStages','deepMerge','paperMargin','url(#$1','sheetsPrintContentPreviewControl','print-single','updateScroll','ICommandService','1517562UZQwgK','6591088RGgvxv','_initialize','getCurrentRangeDisable$','@univerjs/engine-render','Ready','slice','useEffect','WorkbookTitle','setContainer','page','1405dtmBFF','font','UNIVER_SHEET','layoutConfig','PrintPaperMargin','rgba(0,0,0,0.3)','ZoomReduceSingle','_scene','getMenuHiddenObservable','TOOLBAR_START','endColumn','print.freeze.column','includes','subUnitIds','fillStyle','print.align.horizontal.start','devicePixelRatio','min','Viewport','onafterprint','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','xSplit','sheetsPrintContentSettingForm','has','@univerjs/ui','Start','startX','print.selection.title','_key','updateRenderConfig','_dirty','print.scale.fitHeight','_commandService','displayName','Letter','_menuService','MenuPosition','className','updateLayoutConfig','max','getUnitId','substring','subscribe','print.orientation.landscape','_selectionManagerService','print.size.letter','renderOnReady','defineProperty','disposeWithMe','getNoMergeCellPositionByIndexWithNoHeader','Normal','IUniverInstanceService','toLocaleDateString','__blank','Checkbox','onTransformChangeObservable','isPrinting','columnWidthAccumulation','parentElement','@univerjs-pro/print','Spreadsheet','getOwnPropertyDescriptor','useRef','TOOLBAR_OTHERS','Row','createIdentifier','print.formatting.skeleton','layoutInfos$','1446498qZkTsb','Landscape','print.menu','createPrintStyle','PRINTING_COMPONENT_COLLECT','indexOf','Tabloid','WorksheetTitle','print.area.currentSheet','Button','IGlobalZoneService','with','rowHeightAccumulation','display','use','univer-sheets-print-content','getContext','MenuGroup','PrintScale','PrintPaperSize','clearCanvas','univer-sheets-print-header-right','print.align.horizontal.end','margin','_isPreview','print.formatting.title','_totalWidth','getCurrentUnitForType','fixLineWidthByScale','getCanvas','addMenuItem','Statement','_calculateCurrentSelectionRange','column','SheetSkeletonManagerService','PRINT_CANVAS_CLASS','round','print.headerFooter.title','function','univer-sheets-print-content-setting-form','UNIVER_SHEET_PERMISSION_ALERT_DIALOG','Quantity','reset','print.header.cancel','prototype','renderConfig$','VIEW_MAIN_TOP','print.size.executive','getFirst','print.area.workbook','flex','No\x20active\x20sheet\x20found','visible$','print.align.vertical.middle','print.headerFooter.time','_unitId','makeForceDirty','univer-pro.sheet-print-manager.service','End','dispose','print.size.a3','getSheetBySheetId','IRenderManagerService','rxjs','print.align.vertical.start','engine','set','vAlign','print.headerFooter.date','_componentManager','freeze','_layoutConfig','reLayout','prepare','setPreviewScale','@univerjs/sheets','attrs','_margin','@wendellhu/redi','Time','SHEET_PRINT_PLUGIN','enable','sheet.operation.confirm-print','CanvasRenderMode','PrintSingle','sheetsPrintHeaderRight','markDirty','getActiveSheet','SelectionManagerService','appendChild','hAlign','container','Select','sheet-permission-user-dialog','PrintAlign','_container','print.margin.wide','Radio','interceptor','toString','Legal','Module','_calculatePrintScale','_engine','fontBoundingBoxDescent','_viewTop','sheetsPrintContentPreviewPage','print.size.b4','3243884kwldnw','12px\x20','848345TcwNLw','assign','trim','PaperSizePxMap','length','_renderMainScene','apply','div','extend','_univerInstanceService','zoom-increase-single','print.align.vertical.end','get','_resizeViewport','OnLifecycle','Origin','have\x20not\x20permission','_targetRender','WorkbookPrintPermission','Column','renderConfig','univer-sheets-print','random','onbeforeprint','Workbook','_print','asObservable','Scene','_renderHeaderFooter','react','next','fontBoundingBoxAscent','left','print.area.currentSelection','idSuffix','getUniverSheetInstance','Middle','flat','_sheetPrintManagerService','sheetsPrintContent','_layoutInfos$','_initConfigChangeListener','FitHeight','save','concat','onCommandExecuted','_viewMain','startColumn','BUTTON','1em','push','registerShortcut','CancelSheetPrintOperation','measureText','permission.dialog.printErr','sheetsPrintContentPreviewControlItem','current','tag','executeCommand','CheckboxGroup','CurrentSheet','layoutInfos','path','evenodd','getInterceptPoints','PRINTING_RANGE','_printService','ZoomIncreaseSingle','Plugin','disable','currentColor','colorChannel1','getFreeze','MetaKeys','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','_viewLeftTop','getSheets','forwardRef','CurrentSelection','_layoutConfig$','scaleY','@univerjs/design','ySplit','0\x200\x2016\x2016','_addComponent','FitPage','Inject','whenSheetEditorFocused','univer-sheets-print-content-preview-control-item','render','Portrait','Folio','startY','body','xlink:href','_skeleton','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','_renderConfig','_injector','PageSize','FormLayout','primary','workbook','resize','setForceDisableGridlines','_renderManagerService','getPermissionPoint','floor','202kpzlHf','_paperSize','_totalHeight','_initComponents','1624628cttWre','_shortcutService','_subUnitId','print.freeze.title','_calculateFinalRange','style','unitId','_spreadsheetObject','Disposable','_previewScale','subUnitId','getSheetId','Injector','filter','__SpreadsheetPrintRender__','forValue','CommandType','getName','endRow','translateWithPrecision','Date','VIEW_MAIN','RadioGroup','pluginName','updateConfig','@univerjs-pro/collaboration-client','print.size.tabloid','Scrollbar','sheet.operation.cancel-print','sheetsPrintContentPreview','univerjs-icon\x20univerjs-icon-','none','Wide','VIEWPORT_KEY','paperSize','print.margin.narrow','area','PrintDirection','open','print.size.a5','PRINT_COMPONENT','OPERATION','BehaviorSubject','print.selection.allWorkbook','_addViewport'];_0x5c6b=function(){return _0x57b174;};return _0x5c6b();}function ce(_0x96972,_0x96a312,_0x485a58,_0x5f573d,_0x824280){const _0x170605=_0x2b8db7;return s[_0x170605(0x1d7)](_0x96972[_0x170605(0x31a)],A(A({'key':_0x96a312},we(_0x96972,_0x485a58,_0x824280)),_0x5f573d),(ye(_0x96972,_0x485a58)['children']||[])['map'](function(_0x20ece7,_0x3f5351){const _0x1917f0=_0x170605;return ce(_0x20ece7,''[_0x1917f0(0x30d)](_0x96a312,'-')[_0x1917f0(0x30d)](_0x96972['tag'],'-')['concat'](_0x3f5351),_0x485a58,void 0x0,_0x824280);}));}function we(_0x13f7c8,_0x95579f,_0x591010){const _0x39ea2c=_0x2b8db7;var _0x4a0b5=A({},_0x13f7c8[_0x39ea2c(0x2bf)]);_0x591010!=null&&_0x591010['colorChannel1']&&_0x4a0b5['fill']===_0x39ea2c(0x328)&&(_0x4a0b5['fill']=_0x591010[_0x39ea2c(0x328)]);var _0xa1490b=_0x95579f[_0x39ea2c(0x1fb)];return!_0xa1490b||_0xa1490b[_0x39ea2c(0x2e5)]===0x0||(_0x13f7c8[_0x39ea2c(0x31a)]===_0x39ea2c(0x281)&&_0x4a0b5['xlink:href']&&(_0x4a0b5['xlink:href']=_0x4a0b5[_0x39ea2c(0x33f)]+_0x95579f[_0x39ea2c(0x303)]),Object[_0x39ea2c(0x1ca)](_0x4a0b5)[_0x39ea2c(0x1be)](function(_0x582934){const _0x4f1003=_0x39ea2c;var _0x347543=_0x582934[0x0],_0x481bf6=_0x582934[0x1];typeof _0x481bf6==_0x4f1003(0x20b)&&(_0x4a0b5[_0x347543]=_0x481bf6[_0x4f1003(0x218)](/url\(#(.*)\)/,_0x4f1003(0x21f)[_0x4f1003(0x30d)](_0x95579f['idSuffix'],')')));})),_0x4a0b5;}function ye(_0x442ef2,_0x52fa3e){const _0x2ef374=_0x2b8db7;var _0x303f51,_0x14b741=_0x52fa3e[_0x2ef374(0x1fb)];return!_0x14b741||_0x14b741[_0x2ef374(0x2e5)]===0x0?_0x442ef2:_0x442ef2[_0x2ef374(0x31a)]===_0x2ef374(0x20c)&&(!((_0x303f51=_0x442ef2['children'])===null||_0x303f51===void 0x0)&&_0x303f51[_0x2ef374(0x2e5)])?A(A({},_0x442ef2),{'children':_0x442ef2[_0x2ef374(0x1b5)][_0x2ef374(0x1f8)](function(_0x3f61b3){const _0x50768d=_0x2ef374;return typeof _0x3f61b3[_0x50768d(0x2bf)]['id']==_0x50768d(0x20b)&&_0x14b741&&_0x14b741[_0x50768d(0x278)](_0x3f61b3[_0x50768d(0x2bf)]['id'])>-0x1?A(A({},_0x3f61b3),{'attrs':A(A({},_0x3f61b3[_0x50768d(0x2bf)]),{'id':_0x3f61b3['attrs']['id']+_0x52fa3e[_0x50768d(0x303)]})}):_0x3f61b3;})}):_0x442ef2;}function Ie(){const _0x5c33af=_0x2b8db7;return Math[_0x5c33af(0x2f7)]()[_0x5c33af(0x2d6)](0x24)[_0x5c33af(0x258)](0x2,0x8);}Q['displayName']=_0x2b8db7(0x1fc);var be={'tag':_0x2b8db7(0x1e3),'attrs':{'fill':_0x2b8db7(0x1a5),'viewBox':_0x2b8db7(0x334),'width':_0x2b8db7(0x312),'height':_0x2b8db7(0x312)},'children':[{'tag':'path','attrs':{'fill':_0x2b8db7(0x327),'d':_0x2b8db7(0x32b)}},{'tag':_0x2b8db7(0x31f),'attrs':{'fill':_0x2b8db7(0x327),'d':_0x2b8db7(0x243),'fillRule':_0x2b8db7(0x320),'clipRule':_0x2b8db7(0x320)}}]},le=s[_0x2b8db7(0x32e)](function(_0xafa3e1,_0x39a4ca){const _0x1d6fe6=_0x2b8db7;return s['createElement'](Q,Object[_0x1d6fe6(0x2e2)]({},_0xafa3e1,{'id':_0x1d6fe6(0x221),'ref':_0x39a4ca,'icon':be}));});le[_0x2b8db7(0x250)]='PrintSingle';var Ee={'tag':_0x2b8db7(0x1e3),'attrs':{'fill':_0x2b8db7(0x1a5),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x2b8db7(0x312)},'children':[{'tag':_0x2b8db7(0x31f),'attrs':{'fill':'currentColor','d':_0x2b8db7(0x176)}}]},he=s[_0x2b8db7(0x32e)](function(_0x5e2e0a,_0x1f16e6){const _0x15a936=_0x2b8db7;return s[_0x15a936(0x1d7)](Q,Object[_0x15a936(0x2e2)]({},_0x5e2e0a,{'id':_0x15a936(0x2eb),'ref':_0x1f16e6,'icon':Ee}));});he['displayName']=_0x2b8db7(0x324);var Re={'tag':_0x2b8db7(0x1e3),'attrs':{'fill':_0x2b8db7(0x1a5),'viewBox':_0x2b8db7(0x334),'width':_0x2b8db7(0x312),'height':_0x2b8db7(0x312)},'children':[{'tag':_0x2b8db7(0x31f),'attrs':{'fill':_0x2b8db7(0x327),'d':'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','fillRule':_0x2b8db7(0x320),'clipRule':_0x2b8db7(0x320)}}]},ue=s[_0x2b8db7(0x32e)](function(_0x245ddd,_0x1fc0fc){const _0x1a3756=_0x2b8db7;return s[_0x1a3756(0x1d7)](Q,Object[_0x1a3756(0x2e2)]({},_0x245ddd,{'id':'zoom-reduce-single','ref':_0x1fc0fc,'icon':Re}));});ue[_0x2b8db7(0x250)]=_0x2b8db7(0x235);var L=(_0x479192=>(_0x479192[_0x2b8db7(0x31d)]=_0x2b8db7(0x31d),_0x479192['workbook']=_0x2b8db7(0x2f9),_0x479192[_0x2b8db7(0x32f)]=_0x2b8db7(0x32f),_0x479192))(L||{}),N=(_0x322346=>(_0x322346[_0x2b8db7(0x179)]='PageSize',_0x322346[_0x2b8db7(0x22c)]=_0x2b8db7(0x22c),_0x322346['WorksheetTitle']='WorksheetTitle',_0x322346['Date']=_0x2b8db7(0x19a),_0x322346['Time']='Time',_0x322346))(N||{}),B=(_0x3e677e=>(_0x3e677e['Row']=_0x2b8db7(0x26f),_0x3e677e[_0x2b8db7(0x2f4)]=_0x2b8db7(0x2f4),_0x3e677e))(B||{}),Me=Object[_0x2b8db7(0x25e)],xe=Object[_0x2b8db7(0x26c)],Te=(_0x2e7482,_0x13d13d,_0x2e204c,_0x4b269a)=>{const _0x1c3445=_0x2b8db7;for(var _0x412b3d=_0x4b269a>0x1?void 0x0:_0x4b269a?xe(_0x13d13d,_0x2e204c):_0x13d13d,_0x3d75bb=_0x2e7482[_0x1c3445(0x2e5)]-0x1,_0x398682;_0x3d75bb>=0x0;_0x3d75bb--)(_0x398682=_0x2e7482[_0x3d75bb])&&(_0x412b3d=(_0x4b269a?_0x398682(_0x13d13d,_0x2e204c,_0x412b3d):_0x398682(_0x412b3d))||_0x412b3d);return _0x4b269a&&_0x412b3d&&Me(_0x13d13d,_0x2e204c,_0x412b3d),_0x412b3d;},G=(_0x4904bb,_0xefcac)=>(_0x428715,_0x5f018f)=>_0xefcac(_0x428715,_0x5f018f,_0x4904bb);const j=W[_0x2b8db7(0x270)](_0x2b8db7(0x2ac)),ke=_0x2b5521=>Math[_0x2b8db7(0x181)](_0x2b5521*0x64)/0x64;let ie=class{constructor(_0x3197de,_0x119e28,_0x27a7c7,_0x37db60){const _0x827313=_0x2b8db7;P(this,'_layoutConfig',{'area':L[_0x827313(0x31d)],'subUnitIds':[],'paperSize':d[_0x827313(0x286)]['A4'],'direction':d[_0x827313(0x1ab)]['Portrait'],'scale':d[_0x827313(0x285)][_0x827313(0x2f0)],'customScale':0x1,'freeze':[B[_0x827313(0x26f)],B[_0x827313(0x2f4)]],'margin':d['PrintPaperMargin'][_0x827313(0x261)]}),P(this,'_renderConfig',{'gridlines':!0x0,'hAlign':d[_0x827313(0x2d1)][_0x827313(0x305)],'vAlign':d[_0x827313(0x2d1)][_0x827313(0x248)],'headerFooter':[]}),P(this,_0x827313(0x1b6),[]),P(this,'_layoutInfos$',new te['BehaviorSubject'](this['_layoutInfos'])),P(this,'_layoutConfig$',new te['BehaviorSubject'](this[_0x827313(0x2ba)])),P(this,_0x827313(0x1f4),new te[(_0x827313(0x1b0))](this['_renderConfig'])),P(this,_0x827313(0x1fa),this[_0x827313(0x330)][_0x827313(0x2fb)]()),P(this,'renderConfig$',this[_0x827313(0x1f4)][_0x827313(0x2fb)]()),P(this,_0x827313(0x272),this[_0x827313(0x309)]['asObservable']()),(this['_univerInstanceService']=_0x3197de,this[_0x827313(0x25b)]=_0x119e28,this['_sheetPrintInterceptorService']=_0x27a7c7,this[_0x827313(0x17f)]=_0x37db60);}get[_0x2b8db7(0x31e)](){const _0x39edd0=_0x2b8db7;return this[_0x39edd0(0x1b6)];}get[_0x2b8db7(0x2f5)](){const _0x42ae86=_0x2b8db7;return this[_0x42ae86(0x177)];}get['layoutConfig'](){return this['_layoutConfig'];}get[_0x2b8db7(0x1a8)](){const _0x4d1bf8=_0x2b8db7,{paperSize:_0x4912f3,direction:_0x3cdf05}=this['_layoutConfig'],_0x5339a7=d[_0x4d1bf8(0x2e4)][_0x4912f3];return _0x3cdf05===d[_0x4d1bf8(0x1ab)][_0x4d1bf8(0x33b)]?{..._0x5339a7}:{'w':_0x5339a7['h'],'h':_0x5339a7['w']};}get[_0x2b8db7(0x21e)](){const _0x505e13=_0x2b8db7;return d[_0x505e13(0x217)][this[_0x505e13(0x2ba)][_0x505e13(0x28a)]];}[_0x2b8db7(0x255)](_0xc8cd9a){const _0x3f37d1=_0x2b8db7;this['_layoutConfig']={...this[_0x3f37d1(0x2ba)],..._0xc8cd9a},this[_0x3f37d1(0x330)]['next'](this[_0x3f37d1(0x2ba)]),this['reLayout']();}[_0x2b8db7(0x24c)](_0x2ff188){const _0x2984fc=_0x2b8db7;this[_0x2984fc(0x177)]={...this[_0x2984fc(0x177)],..._0x2ff188},this[_0x2984fc(0x1f4)][_0x2984fc(0x2ff)](this[_0x2984fc(0x177)]);}['reLayout'](){const _0x1af222=_0x2b8db7;this[_0x1af222(0x1b6)]=this[_0x1af222(0x1bd)](),this['_layoutInfos$'][_0x1af222(0x2ff)](this['_layoutInfos']);}[_0x2b8db7(0x29d)](){const _0x11e4d6=_0x2b8db7;this[_0x11e4d6(0x1b6)]=[],this[_0x11e4d6(0x309)][_0x11e4d6(0x2ff)](this[_0x11e4d6(0x1b6)]),this['_layoutConfig']={...this['_layoutConfig'],'area':L['CurrentSheet']},this[_0x11e4d6(0x330)][_0x11e4d6(0x2ff)](this[_0x11e4d6(0x2ba)]);}[_0x2b8db7(0x1bd)](){const _0x517b30=_0x2b8db7,_0x182002=this[_0x517b30(0x1d9)](),_0x31c7e1=[];return _0x182002['forEach'](_0x231b2e=>{const _0xb23b99=_0x517b30;if(_0x231b2e){const _0x26c808=this['_calculateSheetPages'](_0x231b2e);_0x26c808&&_0x31c7e1[_0xb23b99(0x313)](_0x26c808);}}),_0x31c7e1;}[_0x2b8db7(0x21a)](_0x264623,_0x329826){const _0x59cce8=_0x2b8db7;var _0x2ac33b,_0x4a4458,_0x2871a2;const _0x473bfc=this['_univerInstanceService'][_0x59cce8(0x28e)](m[_0x59cce8(0x1e2)][_0x59cce8(0x231)])['getSheetBySheetId'](_0x329826);if(!_0x473bfc)return;const _0x2675b6=_0x473bfc[_0x59cce8(0x329)](),_0x4fb2ae=_0x473bfc['getCellMatrixPrintRange'](),_0x46835a=(_0x4a4458=(_0x2ac33b=this[_0x59cce8(0x17f)][_0x59cce8(0x1f5)](_0x264623))==null?void 0x0:_0x2ac33b[_0x59cce8(0x27e)](H['SheetSkeletonManagerService'])[_0x59cce8(0x1e5)](_0x264623,_0x329826))==null?void 0x0:_0x4a4458[_0x59cce8(0x1ef)];if(!_0x46835a)return;_0x4fb2ae&&((_0x2871a2=_0x46835a==null?void 0x0:_0x46835a['overflowCache'])==null||_0x2871a2[_0x59cce8(0x195)]((_0x220236,_0x1f89e6,_0x12a270)=>{const _0x55041b=_0x59cce8,{endColumn:_0x5ec589}=_0x12a270;_0x5ec589>_0x4fb2ae[_0x55041b(0x239)]&&(_0x4fb2ae[_0x55041b(0x239)]=_0x5ec589);}));const _0x3871b6=this[_0x59cce8(0x1b8)]['interceptor']['fetchThroughInterceptors'](this[_0x59cce8(0x1b8)][_0x59cce8(0x2d5)][_0x59cce8(0x321)]()[_0x59cce8(0x322)])(_0x4fb2ae,{'unitId':_0x264623,'subUnitId':_0x329826});return _0x3871b6?this[_0x59cce8(0x18a)](_0x329826,{..._0x3871b6,'startColumn':Math[_0x59cce8(0x256)](_0x2675b6[_0x59cce8(0x310)]-_0x2675b6[_0x59cce8(0x244)],0x0),'startRow':Math[_0x59cce8(0x256)](_0x2675b6[_0x59cce8(0x1e7)]-_0x2675b6[_0x59cce8(0x333)],0x0)}):null;}[_0x2b8db7(0x293)](){const _0x278f3c=_0x2b8db7,_0x4cf698=this[_0x278f3c(0x25b)][_0x278f3c(0x2a3)](),_0x31e404=this[_0x278f3c(0x2ea)][_0x278f3c(0x28e)](m[_0x278f3c(0x1e2)][_0x278f3c(0x231)])[_0x278f3c(0x2ca)]();if(!_0x31e404){console[_0x278f3c(0x206)](_0x278f3c(0x2a6));return;}const _0x379b5d=_0x31e404[_0x278f3c(0x191)]();if(_0x4cf698)return this[_0x278f3c(0x18a)](_0x379b5d,_0x4cf698['range']);}['_calculateFinalRange'](_0x2a0a1b,_0x269bc3){const _0x47829b=_0x2b8db7,_0x140813=this[_0x47829b(0x2ea)][_0x47829b(0x28e)](m[_0x47829b(0x1e2)]['UNIVER_SHEET']),_0x384936=_0x140813[_0x47829b(0x2b0)](_0x2a0a1b),_0x2fdb2c=this[_0x47829b(0x2ba)],_0xfc5ed8=_0x140813[_0x47829b(0x257)](),_0x2650fa=this[_0x47829b(0x1a8)],{top:_0x520e22,right:_0x3d7060,bottom:_0x45a7fc,left:_0x52e274}=this[_0x47829b(0x21e)];_0x2650fa['h']-=_0x520e22+_0x45a7fc,_0x2650fa['w']-=_0x52e274+_0x3d7060;const _0x336cac=this[_0x47829b(0x17f)][_0x47829b(0x1f5)](_0xfc5ed8)[_0x47829b(0x27e)](H[_0x47829b(0x295)]);if(_0x269bc3[_0x47829b(0x1e7)]>-0x1&&_0x269bc3[_0x47829b(0x310)]>-0x1){const _0x3f6c1c=_0x336cac[_0x47829b(0x1b4)]({'sheetId':_0x2a0a1b});if(!_0x384936||!_0x3f6c1c)return null;let _0x142c27=_0x269bc3['startRow'];const _0x56bfbe=_0x269bc3[_0x47829b(0x198)];let _0x48e1d1=_0x269bc3['startColumn'];const _0x546632=_0x269bc3[_0x47829b(0x239)],_0x4f4c76=_0x384936[_0x47829b(0x329)](),_0xebf30e=ke(this['_calculatePrintScale'](_0x3f6c1c,_0x269bc3,_0x4f4c76));let _0x3e85c3=-0x1,_0x308e84=0x0,_0x3ae2e9=-0x1,_0x445bb5=0x0;const _0x21e6a5=_0x3f6c1c[_0x47829b(0x268)],_0x5f5b64=_0x3f6c1c[_0x47829b(0x27f)];if(_0x4f4c76[_0x47829b(0x244)]&&_0x2fdb2c[_0x47829b(0x2b9)][_0x47829b(0x23b)](B['Column'])){if(_0x546632>=_0x4f4c76['startColumn']){const _0x34b10e=_0xebf30e*(_0x21e6a5[_0x4f4c76[_0x47829b(0x310)]-0x1]-(_0x21e6a5[_0x4f4c76['startColumn']-_0x4f4c76[_0x47829b(0x244)]-0x1]||0x0));_0x34b10e<_0x2650fa['w']&&(_0x3ae2e9=_0x4f4c76['startColumn'],_0x445bb5=_0x4f4c76[_0x47829b(0x244)],_0x2650fa['w']-=_0x34b10e);}else{const _0x2c6213=_0x546632+0x1,_0x591f06=_0x546632+0x1-(_0x4f4c76[_0x47829b(0x310)]-_0x4f4c76[_0x47829b(0x244)]),_0x3830d2=_0xebf30e*(_0x21e6a5[_0x3ae2e9-0x1]-(_0x21e6a5[_0x3ae2e9-_0x445bb5]-0x1||0x0));_0x3830d2<_0x2650fa['w']&&(_0x3ae2e9=_0x2c6213,_0x445bb5=_0x591f06,_0x2650fa['w']-=_0x3830d2);}}if(_0x48e1d1=Math[_0x47829b(0x256)](_0x3ae2e9,_0x48e1d1),_0x4f4c76[_0x47829b(0x333)]&&_0x2fdb2c['freeze'][_0x47829b(0x23b)](B[_0x47829b(0x26f)])){if(_0x56bfbe>=_0x4f4c76[_0x47829b(0x1e7)]){const _0x38524a=_0x5f5b64[_0x4f4c76['startRow']]-_0x5f5b64[_0x4f4c76[_0x47829b(0x1e7)]-_0x4f4c76['ySplit']];_0x38524a<_0x2650fa['h']&&(_0x3e85c3=_0x4f4c76[_0x47829b(0x1e7)],_0x308e84=_0x4f4c76['ySplit'],_0x2650fa['h']-=_0x38524a);}else _0x3e85c3=_0x56bfbe+0x1,_0x308e84=_0x56bfbe+0x1-(_0x4f4c76[_0x47829b(0x1e7)]-_0x4f4c76[_0x47829b(0x333)]),_0x2650fa['h']=_0x2650fa['h']-_0x5f5b64[_0x3e85c3]-_0x5f5b64[_0x3e85c3-_0x308e84];}return _0x142c27=Math[_0x47829b(0x256)](_0x3e85c3,_0x142c27),{'unitId':_0xfc5ed8,'subUnitId':_0x2a0a1b,'range':{'startRow':_0x142c27,'endRow':_0x56bfbe,'startColumn':_0x48e1d1,'endColumn':_0x546632},'freeze':{'startRow':_0x3e85c3,'startColumn':_0x3ae2e9,'xSplit':_0x445bb5,'ySplit':_0x308e84},'contentSize':_0x2650fa,'scale':_0xebf30e};}return{'unitId':_0xfc5ed8,'subUnitId':_0x2a0a1b,'range':{'startColumn':0x0,'endColumn':0x0,'startRow':0x0,'endRow':0x0},'freeze':{'startColumn':-0x1,'startRow':-0x1,'xSplit':0x0,'ySplit':0x0},'contentSize':_0x2650fa,'scale':0x1};}[_0x2b8db7(0x2d9)](_0x22f688,_0x1b3e6a,_0x3467ea){const _0x388a22=_0x2b8db7,_0xc4c05a=_0x22f688['columnWidthAccumulation'],_0x44d6a7=_0x22f688[_0x388a22(0x27f)],{xSplit:_0x1da39e,ySplit:_0x4e575d,startColumn:_0x141fb9,startRow:_0x4f55b7}=_0x3467ea;let {startRow:_0x4321a8,startColumn:_0x36a337}=_0x1b3e6a;const {endColumn:_0xa8b323,endRow:_0x33672b}=_0x1b3e6a;_0x4321a8=_0x33672b<_0x4f55b7?_0x4321a8:Math[_0x388a22(0x256)](_0x4f55b7,_0x4321a8),_0x36a337=_0xa8b323<_0x141fb9?_0x36a337:Math[_0x388a22(0x256)](_0x141fb9,_0x36a337);const {scale:_0x103a25,customScale:_0x5d4dc5}=this['_layoutConfig'],_0x1dcca3=this[_0x388a22(0x1a8)],_0xeef4a6=this[_0x388a22(0x21e)],_0x31d32a=_0x1da39e>0x0?_0xc4c05a[_0x141fb9-0x1]-(_0xc4c05a[_0x141fb9-_0x1da39e-0x1]||0x0):0x0,_0xbbc4cd=_0x4e575d>0x0?_0x44d6a7[_0x4f55b7-0x1]-(_0x44d6a7[_0x4f55b7-_0x4e575d-0x1]||0x0):0x0,_0x5d3cc5=_0x44d6a7[_0x33672b]-(_0x44d6a7[_0x4321a8-0x1]||0x0),_0x438a88=_0xc4c05a[_0xa8b323]-(_0xc4c05a[_0x36a337-0x1]||0x0),_0x597aaf=_0x5d3cc5+_0xbbc4cd,_0x400361=_0x438a88+_0x31d32a;switch(_0x103a25){case d['PrintScale']['Custom']:return _0x5d4dc5;case d[_0x388a22(0x285)]['FitWidth']:return Math[_0x388a22(0x240)](0x1,(_0x1dcca3['w']-_0xeef4a6[_0x388a22(0x301)]-_0xeef4a6[_0x388a22(0x1ed)])/_0x400361);case d[_0x388a22(0x285)][_0x388a22(0x30b)]:return Math[_0x388a22(0x240)](0x1,(_0x1dcca3['h']-_0xeef4a6[_0x388a22(0x1ff)]-_0xeef4a6[_0x388a22(0x1cd)])/_0x597aaf);case d[_0x388a22(0x285)]['FitPage']:return Math['min'](0x1,(_0x1dcca3['w']-_0xeef4a6[_0x388a22(0x301)]-_0xeef4a6[_0x388a22(0x1ed)])/_0x400361,(_0x1dcca3['h']-_0xeef4a6['top']-_0xeef4a6[_0x388a22(0x1cd)])/_0x597aaf);default:return 0x1;}}[_0x2b8db7(0x1d9)](){const _0x58cff2=_0x2b8db7;var _0x5d256e;const {area:_0x2aa76b,subUnitIds:_0x2ac148}=this[_0x58cff2(0x2ba)],_0x51db68=this[_0x58cff2(0x2ea)][_0x58cff2(0x28e)](m[_0x58cff2(0x1e2)]['UNIVER_SHEET']),_0x580e24=_0x51db68[_0x58cff2(0x257)]();switch(_0x2aa76b){case L['CurrentSheet']:{const _0x53f0bc=(_0x5d256e=_0x51db68[_0x58cff2(0x2ca)]())==null?void 0x0:_0x5d256e[_0x58cff2(0x191)]();if(_0x53f0bc!=null){const _0x4cea40=this[_0x58cff2(0x21a)](_0x580e24,_0x53f0bc);return _0x4cea40?[_0x4cea40]:[this[_0x58cff2(0x293)]()];}return[];}case L[_0x58cff2(0x32f)]:return[this[_0x58cff2(0x293)]()];default:return(_0x2ac148[_0x58cff2(0x2e5)]?_0x2ac148:_0x51db68['getSheets']()[_0x58cff2(0x1f8)](_0x2ec64a=>_0x2ec64a[_0x58cff2(0x191)]()))['map'](_0x3ad0c7=>this[_0x58cff2(0x21a)](_0x580e24,_0x3ad0c7))[_0x58cff2(0x193)](Boolean);}}['_calculateSheetPages'](_0x554be5){const _0x1ac930=_0x2b8db7,{subUnitId:_0x4cc91d,range:_0x250eee,freeze:_0x5b8b99,unitId:_0x41473d,scale:_0x5e3fb5,contentSize:_0x2c23dc}=_0x554be5,_0x596878=this[_0x1ac930(0x17f)][_0x1ac930(0x1f5)](_0x41473d)[_0x1ac930(0x27e)](H[_0x1ac930(0x295)])['getOrCreateSkeleton']({'sheetId':_0x4cc91d});if(!_0x596878)return;const {rowHeightAccumulation:_0x16d8f9,columnWidthAccumulation:_0x2b39f1}=_0x596878,{w:_0x499127,h:_0x11aa88}=_0x2c23dc,{startRow:_0x58b964,startColumn:_0x170097,endColumn:_0x598b9f,endRow:_0xc58d4b}=_0x250eee,_0x4bdfdd=_0x3196f2=>{let _0xc68961=_0x3196f2;const _0x44717b=_0x3196f2===0x0?0x0:_0x16d8f9[_0x3196f2-0x1];for(;_0xc68961<_0xc58d4b;){const _0x5c7557=(_0x16d8f9[_0xc68961]-_0x44717b)*_0x5e3fb5,_0x52d24d=(_0x16d8f9[_0xc68961+0x1]-_0x44717b)*_0x5e3fb5;if(_0xc68961++,_0x5c7557>_0x11aa88||_0x5c7557<_0x11aa88&&_0x52d24d>_0x11aa88)return{'startRow':_0x3196f2,'endRow':_0xc68961-0x1};}return{'startRow':_0x3196f2,'endRow':_0xc68961};},_0x1f5aaf=_0x563106=>{let _0x585121=_0x563106;const _0xca3b12=_0x563106===0x0?0x0:_0x2b39f1[_0x563106-0x1];for(;_0x585121<_0x598b9f;){const _0x2510d1=(_0x2b39f1[_0x585121]-_0xca3b12)*_0x5e3fb5,_0x121a39=(_0x2b39f1[_0x585121+0x1]-_0xca3b12)*_0x5e3fb5;if(_0x585121++,_0x2510d1<_0x499127&&_0x121a39>_0x499127||_0x2510d1>=_0x499127)return{'startColumn':_0x563106,'endColumn':_0x585121-0x1};}return{'startColumn':_0x563106,'endColumn':_0x585121};},_0x1011c8=[];let _0x4c384e=_0x58b964;for(;_0x4c384e<=_0xc58d4b;){const _0x489f66=_0x4bdfdd(_0x4c384e);_0x1011c8['push'](_0x489f66),_0x4c384e=_0x489f66[_0x1ac930(0x198)]+0x1;}const _0xda92ea=[];let _0x30c614=_0x170097;for(;_0x30c614<=_0x598b9f;){const _0x59b2fd=_0x1f5aaf(_0x30c614);_0xda92ea['push'](_0x59b2fd),_0x30c614=_0x59b2fd[_0x1ac930(0x239)]+0x1;}const _0x22241c=[];for(let _0x47fa79=0x0;_0x47fa79<_0x1011c8[_0x1ac930(0x2e5)];_0x47fa79++)for(let _0x394a49=0x0;_0x394a49<_0xda92ea[_0x1ac930(0x2e5)];_0x394a49++)_0x22241c['push']({..._0x1011c8[_0x47fa79],..._0xda92ea[_0x394a49]});return{'unitId':_0x41473d,'subUnitId':_0x4cc91d,'pages':_0x22241c,'freeze':_0x5b8b99,'scale':_0x5e3fb5};}};ie=Te([G(0x0,m[_0x2b8db7(0x262)]),G(0x1,W[_0x2b8db7(0x337)](re[_0x2b8db7(0x2cb)])),G(0x2,W[_0x2b8db7(0x337)](H[_0x2b8db7(0x1fd)])),G(0x3,z[_0x2b8db7(0x2b1)])],ie);const ze='PRINT_PLUGIN_',Oe=ze+_0x2b8db7(0x1ae),ae=_0x2b8db7(0x1d4),Ne=_0x2b8db7(0x29b),X={'id':'sheet.operation.print-open','type':m[_0x2b8db7(0x196)][_0x2b8db7(0x1af)],'handler':_0x48e546=>{const _0x498196=_0x2b8db7;var _0x407aab;const _0x196824=_0x48e546['get'](R[_0x498196(0x27d)]),_0x3a87d8=_0x48e546['get'](m['IPermissionService']),_0x2b685f=_0x48e546[_0x498196(0x2ed)](m[_0x498196(0x1d3)]),_0x4f3c10=_0x48e546[_0x498196(0x2ed)](m[_0x498196(0x262)]),_0x11e330=_0x48e546['get'](R[_0x498196(0x1d6)]),_0x20cdd1=_0x4f3c10[_0x498196(0x28e)](m[_0x498196(0x1e2)][_0x498196(0x231)])[_0x498196(0x257)]();if(!((_0x407aab=_0x3a87d8[_0x498196(0x180)](new re[(_0x498196(0x2f3))](_0x20cdd1)['id']))!=null?_0x407aab:!0x1)){const _0x3ce86e={'id':ae,'title':{'title':''},'children':{'label':Ne,'errorMsg':_0x2b685f['t'](_0x498196(0x317))},'width':0x140,'destroyOnClose':!0x0,'onClose':()=>_0x11e330[_0x498196(0x1c1)](ae),'className':_0x498196(0x2d0)};throw _0x11e330[_0x498196(0x1ac)](_0x3ce86e),new Error(_0x498196(0x2f1));}return _0x196824[_0x498196(0x1ac)](),!0x0;}},oe={'type':m[_0x2b8db7(0x196)][_0x2b8db7(0x1af)],'id':_0x2b8db7(0x1a2),'handler'(_0x3d3a4f){const _0x3a8401=_0x2b8db7,_0x50a9f4=_0x3d3a4f[_0x3a8401(0x2ed)](R[_0x3a8401(0x27d)]),_0x2d88da=_0x3d3a4f[_0x3a8401(0x2ed)](j);return _0x50a9f4[_0x3a8401(0x1c1)](),_0x2d88da[_0x3a8401(0x29d)](),!0x0;}},J={'type':m['CommandType'][_0x2b8db7(0x1af)],'id':_0x2b8db7(0x2c5),'handler'(){return!0x0;}},Le=_0x2b8db7(0x2c3);class de extends m[_0x2b8db7(0x18e)]{constructor(_0x370265,_0x3fa298,_0x303708=!0x0,_0x228eed=0x1){const _0x1a212f=_0x2b8db7;super(),P(this,_0x1a212f(0x2da)),P(this,_0x1a212f(0x236)),P(this,_0x1a212f(0x24b)),P(this,_0x1a212f(0x2aa)),P(this,_0x1a212f(0x188)),P(this,_0x1a212f(0x30f)),P(this,_0x1a212f(0x1f0)),P(this,'_viewTop'),P(this,_0x1a212f(0x32c)),P(this,_0x1a212f(0x2d2),document[_0x1a212f(0x1d7)](_0x1a212f(0x2e8))),P(this,_0x1a212f(0x307)),P(this,'_skeleton'),P(this,_0x1a212f(0x2ea)),P(this,_0x1a212f(0x24d),!0x0),P(this,_0x1a212f(0x2f2)),P(this,_0x1a212f(0x18d)),P(this,_0x1a212f(0x28d),0x0),P(this,_0x1a212f(0x184),0x0),(this[_0x1a212f(0x1f7)]=_0x370265,this[_0x1a212f(0x1ba)]=_0x3fa298,this['_isPreview']=_0x303708,this[_0x1a212f(0x18f)]=_0x228eed);const {unitId:_0x586720,subUnitId:_0x4efcee}=this[_0x1a212f(0x1ba)];this[_0x1a212f(0x2aa)]=_0x586720,this[_0x1a212f(0x188)]=_0x4efcee,this['_key']=_0x586720+'_'+_0x4efcee,this[_0x1a212f(0x307)]=this[_0x1a212f(0x1f7)]['get'](j),this[_0x1a212f(0x2ea)]=this['_accessor']['get'](m['IUniverInstanceService']);const _0x876cd1=this[_0x1a212f(0x1f7)][_0x1a212f(0x2ed)](z['IRenderManagerService']);this[_0x1a212f(0x2f2)]=_0x876cd1[_0x1a212f(0x1f5)](_0x586720);const _0x554d3d=this['_targetRender']['with'](H['SheetSkeletonManagerService'])['getOrCreateSkeleton']({'sheetId':_0x4efcee});this[_0x1a212f(0x175)]=_0x554d3d,this[_0x1a212f(0x203)]();}get[_0x2b8db7(0x1d8)](){const _0x2317a8=_0x2b8db7;return this[_0x2317a8(0x24b)];}get[_0x2b8db7(0x2b4)](){const _0x1c1c51=_0x2b8db7;return this[_0x1c1c51(0x2da)];}get[_0x2b8db7(0x2ce)](){return this['_container'];}get[_0x2b8db7(0x177)](){const _0x3cef01=_0x2b8db7;return this[_0x3cef01(0x307)][_0x3cef01(0x2f5)];}get[_0x2b8db7(0x2ba)](){const _0x54583c=_0x2b8db7;return this[_0x54583c(0x307)][_0x54583c(0x232)];}[_0x2b8db7(0x2ae)](){const _0x2608a9=_0x2b8db7;var _0x348751;super[_0x2608a9(0x2ae)](),(_0x348751=this['_container'][_0x2608a9(0x269)])==null||_0x348751[_0x2608a9(0x1c2)](this[_0x2608a9(0x2d2)]);}get[_0x2b8db7(0x183)](){const _0x432cdb=_0x2b8db7,{w:_0x3d9861,h:_0x50a27f}=this['_sheetPrintManagerService'][_0x432cdb(0x1a8)];return{'w':_0x3d9861*this['_previewScale'],'h':_0x50a27f*this[_0x432cdb(0x18f)]};}get[_0x2b8db7(0x2c0)](){const _0x3838ce=_0x2b8db7,_0x526d89=this[_0x3838ce(0x307)][_0x3838ce(0x21e)];return{'top':_0x526d89[_0x3838ce(0x1ff)]*this[_0x3838ce(0x18f)],'bottom':_0x526d89['bottom']*this[_0x3838ce(0x18f)],'left':_0x526d89[_0x3838ce(0x301)]*this[_0x3838ce(0x18f)],'right':_0x526d89[_0x3838ce(0x1ed)]*this['_previewScale']};}[_0x2b8db7(0x203)](){const _0x9730a0=_0x2b8db7,_0x13ed99=this['_paperSize'],_0x222a5c=this[_0x9730a0(0x1ba)][_0x9730a0(0x20f)]*this[_0x9730a0(0x18f)],_0x59e3bc=this[_0x9730a0(0x28b)]?Math['max'](0x1,window[_0x9730a0(0x23f)]):0x1;this[_0x9730a0(0x2da)]=new z['Engine'](_0x13ed99['w'],_0x13ed99['h'],_0x59e3bc,z[_0x9730a0(0x2c6)]['Printing']),this[_0x9730a0(0x236)]=new z[(_0x9730a0(0x2fc))](this[_0x9730a0(0x24b)],this[_0x9730a0(0x2da)]),this[_0x9730a0(0x236)][_0x9730a0(0x20f)](_0x222a5c,_0x222a5c),this[_0x9730a0(0x2da)][_0x9730a0(0x22d)](this[_0x9730a0(0x2d2)],this[_0x9730a0(0x28b)]),this[_0x9730a0(0x335)](),this['_addViewport'](),this[_0x9730a0(0x25f)]({'dispose':()=>{const _0x3005a2=_0x9730a0;this['_engine'][_0x3005a2(0x2ae)](),this[_0x3005a2(0x236)][_0x3005a2(0x2ae)]();}});}[_0x2b8db7(0x2bd)](_0x116896){const _0xf2ebe3=_0x2b8db7;this[_0xf2ebe3(0x236)]['scale'](this[_0xf2ebe3(0x1ba)][_0xf2ebe3(0x20f)]*_0x116896,this['_config'][_0xf2ebe3(0x20f)]*_0x116896),this[_0xf2ebe3(0x18f)]=_0x116896,this[_0xf2ebe3(0x2c9)](!0x0);}['updateConfig'](_0x166eee){const _0x39aa58=_0x2b8db7;this[_0x39aa58(0x1ba)]=_0x166eee,this[_0x39aa58(0x2c9)](!0x0);}[_0x2b8db7(0x2c9)](_0x587cd2){const _0x58f07d=_0x2b8db7;this[_0x58f07d(0x24d)]=_0x587cd2;}[_0x2b8db7(0x335)](){const _0x4478f8=_0x2b8db7,_0x1e2752=new z[(_0x4478f8(0x26b))](_0x4478f8(0x194),this[_0x4478f8(0x175)],!0x1);_0x1e2752[_0x4478f8(0x267)]=!0x0,this[_0x4478f8(0x236)]['addObject'](_0x1e2752),this[_0x4478f8(0x18d)]=_0x1e2752;const _0x460aee=this[_0x4478f8(0x1f7)][_0x4478f8(0x2ed)](H[_0x4478f8(0x1fd)]);_0x460aee[_0x4478f8(0x2d5)][_0x4478f8(0x1dd)](_0x460aee['interceptor']['getInterceptPoints']()[_0x4478f8(0x277)])(void 0x0,{'unitId':this[_0x4478f8(0x2aa)],'subUnitId':this['_subUnitId'],'scene':this[_0x4478f8(0x236)]});}[_0x2b8db7(0x1b2)](){const _0x651b80=_0x2b8db7;this[_0x651b80(0x30f)]=new z[(_0x651b80(0x241))](H['VIEWPORT_KEY'][_0x651b80(0x19b)],this[_0x651b80(0x236)]),this['_viewLeft']=new z[(_0x651b80(0x241))](H[_0x651b80(0x1a7)]['VIEW_MAIN_LEFT'],this['_scene']),this[_0x651b80(0x2dc)]=new z[(_0x651b80(0x241))](H['VIEWPORT_KEY'][_0x651b80(0x2a1)],this[_0x651b80(0x236)]),this['_viewLeftTop']=new z[(_0x651b80(0x241))](H[_0x651b80(0x1a7)]['VIEW_MAIN_LEFT_TOP'],this[_0x651b80(0x236)]);}[_0x2b8db7(0x2ee)](){const _0x2dc26a=_0x2b8db7,{freeze:_0x4e41f9,range:_0x1d4540}=this[_0x2dc26a(0x1ba)],{xSplit:_0x117bcf,ySplit:_0x3ff6af,startColumn:_0x3e5608,startRow:_0x239dc4}=_0x4e41f9,{rowHeaderWidth:_0x1a73f5,columnHeaderHeight:_0xd03e4b}=this[_0x2dc26a(0x175)];this[_0x2dc26a(0x236)][_0x2dc26a(0x20f)](this[_0x2dc26a(0x1ba)][_0x2dc26a(0x20f)]*this[_0x2dc26a(0x18f)],this[_0x2dc26a(0x1ba)][_0x2dc26a(0x20f)]*this[_0x2dc26a(0x18f)]);const _0x22e585=this['_skeleton'][_0x2dc26a(0x260)](_0x239dc4-_0x3ff6af,_0x3e5608-_0x117bcf),_0x195ea1=this[_0x2dc26a(0x175)][_0x2dc26a(0x260)](_0x239dc4,_0x3e5608),_0x108c0d=_0x117bcf>0x0?_0x195ea1[_0x2dc26a(0x249)]-_0x22e585['startX']:0x0,_0x57348e=_0x3ff6af>0x0?_0x195ea1['startY']-_0x22e585[_0x2dc26a(0x33d)]:0x0,_0x34741b={'startX':_0x117bcf>0x0?_0x22e585[_0x2dc26a(0x249)]:0x0,'endX':_0x117bcf>0x0?_0x195ea1[_0x2dc26a(0x249)]:0x0,'startY':_0x3ff6af>0x0?_0x22e585['startY']:0x0,'endY':_0x3ff6af>0x0?_0x195ea1['startY']:0x0},_0x210b35=this['_skeleton'][_0x2dc26a(0x260)](_0x1d4540['startRow'],_0x1d4540[_0x2dc26a(0x310)]),_0x414078=this[_0x2dc26a(0x236)]['getPrecisionScale'](),_0x4dff60=_0x1909ef=>z[_0x2dc26a(0x28f)](_0x1909ef,_0x414078['scaleX']),_0x258634=_0x5bbbab=>z[_0x2dc26a(0x28f)](_0x5bbbab,_0x414078[_0x2dc26a(0x331)]),_0x100ee3=this[_0x2dc26a(0x175)][_0x2dc26a(0x260)](_0x1d4540[_0x2dc26a(0x198)],_0x1d4540['endColumn']),_0x49502a=Math[_0x2dc26a(0x256)](0x0,_0x4dff60(_0x100ee3[_0x2dc26a(0x1c6)])-Math[_0x2dc26a(0x256)](_0x210b35['startX'],_0x34741b[_0x2dc26a(0x1c6)])),_0x5e61e6=Math[_0x2dc26a(0x256)](0x0,_0x258634(_0x100ee3[_0x2dc26a(0x1c3)])-_0x258634(Math[_0x2dc26a(0x256)](_0x210b35[_0x2dc26a(0x33d)],_0x34741b[_0x2dc26a(0x1c3)]))),_0x415509=0x1/Math[_0x2dc26a(0x256)](_0x414078['scaleX'],_0x414078[_0x2dc26a(0x331)]),_0x55d2ba=_0x108c0d+_0x49502a+_0x415509,_0x5375b7=_0x57348e+_0x5e61e6+_0x415509;this['_totalWidth']=_0x55d2ba,this[_0x2dc26a(0x184)]=_0x5375b7;const _0xd25b19={'x':_0x108c0d,'y':_0x57348e},_0x1e6199=_0x415509,_0x1a8873=_0x415509,_0x560399={'x':_0x4dff60(_0x100ee3[_0x2dc26a(0x1c6)])-_0x4dff60(_0x49502a)-_0x4dff60(Math[_0x2dc26a(0x256)](_0x210b35[_0x2dc26a(0x249)],_0x34741b[_0x2dc26a(0x1c6)])),'y':_0x258634(_0x100ee3[_0x2dc26a(0x1c3)])-_0x258634(_0x5e61e6)-_0x258634(Math[_0x2dc26a(0x256)](_0x210b35[_0x2dc26a(0x33d)],_0x34741b[_0x2dc26a(0x1c3)]))};_0x117bcf>0x0&&_0x3ff6af>0x0?(this['_viewLeftTop'][_0x2dc26a(0x2c4)](),this[_0x2dc26a(0x32c)][_0x2dc26a(0x1f3)]({'top':0x0,'left':0x0,'height':_0x258634(_0xd25b19['y']),'width':_0x4dff60(_0xd25b19['x'])}),this[_0x2dc26a(0x32c)]['updateScroll']({'viewportScrollX':_0x4dff60(_0x34741b[_0x2dc26a(0x249)])+_0x4dff60(_0x1a73f5),'viewportScrollY':_0x258634(_0x34741b['startY'])+_0x258634(_0xd03e4b)})):this['_viewLeftTop']['disable'](),_0x117bcf>0x0?(this[_0x2dc26a(0x1f0)][_0x2dc26a(0x2c4)](),this[_0x2dc26a(0x1f0)][_0x2dc26a(0x1f3)]({'top':_0x4dff60(_0xd25b19['y']),'left':0x0,'height':_0x258634(_0x5e61e6)+_0x1e6199+_0x560399['y'],'width':_0x4dff60(_0xd25b19['x'])}),this[_0x2dc26a(0x1f0)][_0x2dc26a(0x222)]({'viewportScrollX':_0x4dff60(_0x34741b[_0x2dc26a(0x249)])+_0x4dff60(_0x1a73f5),'viewportScrollY':_0x258634(_0x210b35['startY'])+_0x258634(_0xd03e4b)-_0x258634(_0xd25b19['y'])})):this['_viewLeft'][_0x2dc26a(0x326)](),_0x3ff6af>0x0?(this[_0x2dc26a(0x2dc)][_0x2dc26a(0x2c4)](),this['_viewTop'][_0x2dc26a(0x1f3)]({'top':0x0,'left':_0x4dff60(_0xd25b19['x']),'height':_0x258634(_0xd25b19['y']),'width':_0x4dff60(_0x49502a)+_0x1a8873+_0x560399['x']}),this[_0x2dc26a(0x2dc)][_0x2dc26a(0x222)]({'viewportScrollX':_0x4dff60(_0x210b35[_0x2dc26a(0x249)])+_0x4dff60(_0x1a73f5)-_0x4dff60(_0xd25b19['x']),'viewportScrollY':_0x258634(_0x34741b[_0x2dc26a(0x33d)])+_0x258634(_0xd03e4b)})):this[_0x2dc26a(0x2dc)][_0x2dc26a(0x326)](),this[_0x2dc26a(0x30f)][_0x2dc26a(0x1f3)]({'top':_0x258634(_0xd25b19['y']),'left':_0x4dff60(_0xd25b19['x']),'height':_0x258634(_0x5e61e6)+_0x1e6199+_0x560399['y'],'width':_0x4dff60(_0x49502a)+_0x1a8873+_0x560399['x']}),this['_viewMain'][_0x2dc26a(0x222)]({'viewportScrollX':_0x4dff60(_0x210b35[_0x2dc26a(0x249)])+_0x4dff60(_0x1a73f5)-_0x4dff60(_0xd25b19['x']),'viewportScrollY':_0x258634(_0x210b35[_0x2dc26a(0x33d)])+_0x258634(_0xd03e4b)-_0x258634(_0xd25b19['y'])});}[_0x2b8db7(0x1c4)](){const _0x2c521c=_0x2b8db7,_0x54a461=this[_0x2c521c(0x2c0)],{vAlign:_0x4075ce,hAlign:_0x49ff0b}=this[_0x2c521c(0x177)],_0xdb06b0=Math[_0x2c521c(0x256)](this[_0x2c521c(0x236)]['scaleX'],this[_0x2c521c(0x236)]['scaleY']);let _0x322be6;switch(_0x49ff0b){case d[_0x2c521c(0x2d1)][_0x2c521c(0x248)]:_0x322be6=_0x54a461['left'];break;case d[_0x2c521c(0x2d1)][_0x2c521c(0x2ad)]:_0x322be6=this['_paperSize']['w']-this[_0x2c521c(0x28d)]*_0xdb06b0-_0x54a461[_0x2c521c(0x1ed)];break;default:_0x322be6=_0x54a461[_0x2c521c(0x301)]+(this[_0x2c521c(0x183)]['w']-this[_0x2c521c(0x28d)]*_0xdb06b0-_0x54a461[_0x2c521c(0x301)]-_0x54a461[_0x2c521c(0x1ed)])/0x2;break;}let _0x261fc8;switch(_0x4075ce){case d[_0x2c521c(0x2d1)]['Start']:_0x261fc8=_0x54a461[_0x2c521c(0x1ff)];break;case d[_0x2c521c(0x2d1)]['End']:_0x261fc8=this[_0x2c521c(0x183)]['h']-this[_0x2c521c(0x184)]*_0xdb06b0-_0x54a461[_0x2c521c(0x1cd)];break;default:_0x261fc8=(this[_0x2c521c(0x183)]['h']-this[_0x2c521c(0x184)]*_0xdb06b0-_0x54a461[_0x2c521c(0x1ff)]-_0x54a461[_0x2c521c(0x1cd)])/0x2+_0x54a461[_0x2c521c(0x1ff)];break;}return{'offsetX':Math[_0x2c521c(0x297)](_0x322be6),'offsetY':Math[_0x2c521c(0x297)](_0x261fc8)};}[_0x2b8db7(0x2bc)](){const _0x4e192b=_0x2b8db7;this[_0x4e192b(0x2ee)]();}[_0x2b8db7(0x2e6)](){const _0x31290f=_0x2b8db7;this[_0x31290f(0x24d)]&&this['prepare']();const _0x59f564=this[_0x31290f(0x2da)][_0x31290f(0x290)]()[_0x31290f(0x283)](),{gridlines:_0xf3f98}=this['_renderConfig'],{offsetX:_0x18290a,offsetY:_0x12f521}=this[_0x31290f(0x1c4)]();this['_spreadsheetObject'][_0x31290f(0x17e)](!_0xf3f98),this[_0x31290f(0x18d)][_0x31290f(0x2ab)](),this[_0x31290f(0x236)][_0x31290f(0x1c0)](),_0x59f564[_0x31290f(0x30c)](),_0x59f564[_0x31290f(0x199)](_0x18290a,_0x12f521),this[_0x31290f(0x236)]['render'](),_0x59f564[_0x31290f(0x205)]();}[_0x2b8db7(0x2fd)](){const _0x4b3718=_0x2b8db7,_0x216966=this['_univerInstanceService'][_0x4b3718(0x304)](this[_0x4b3718(0x1ba)]['unitId']),_0x202a98=_0x216966==null?void 0x0:_0x216966[_0x4b3718(0x2b0)](this['_config'][_0x4b3718(0x190)]),{headerFooter:_0x191967}=this[_0x4b3718(0x177)],{w:_0x2b18ef,h:_0x475f54}=this['_paperSize'],_0x23a73a=this[_0x4b3718(0x2da)]['getCanvas']()['getContext']();if(!_0x216966||!_0x202a98)return;_0x23a73a[_0x4b3718(0x30c)](),_0x23a73a[_0x4b3718(0x230)]='13px\x20'+z['DEFAULT_FONTFACE_PLANE'];const _0x96e441=0x13*this[_0x4b3718(0x18f)],_0xe091f5=0x14*this['_previewScale'];if(_0x191967['includes'](N[_0x4b3718(0x19a)])||_0x191967[_0x4b3718(0x23b)](N[_0x4b3718(0x2c2)])){let _0x1abe53=new Date()['toLocaleString']();_0x191967[_0x4b3718(0x23b)](N[_0x4b3718(0x19a)])?_0x191967[_0x4b3718(0x23b)](N['Time'])||(_0x1abe53=new Date()[_0x4b3718(0x263)]()):_0x1abe53=new Date()['toLocaleTimeString'](),_0x23a73a['fillText'](_0x1abe53,_0x96e441,_0x475f54-_0xe091f5);}_0x191967[_0x4b3718(0x1be)](_0x1a62c2=>{const _0x4e893e=_0x4b3718;switch(_0x1a62c2){case N[_0x4e893e(0x22c)]:{const _0xd1d503=_0x216966[_0x4e893e(0x197)](),_0x4b4a79=_0x23a73a[_0x4e893e(0x316)](_0xd1d503),_0x36502f=_0x4b4a79[_0x4e893e(0x300)]+_0x4b4a79[_0x4e893e(0x2db)];_0x23a73a[_0x4e893e(0x1c5)](_0xd1d503,_0x96e441,_0xe091f5+_0x36502f);break;}case N['WorksheetTitle']:{const _0x2e09bc=_0x202a98['getName'](),_0x5a4282=_0x23a73a['measureText'](_0x2e09bc),_0x21e7e8=_0x5a4282['fontBoundingBoxAscent']+_0x5a4282['fontBoundingBoxDescent'];_0x23a73a[_0x4e893e(0x1c5)](_0x2e09bc,_0x2b18ef-(_0x5a4282['width']+_0x96e441),_0xe091f5+_0x21e7e8);break;}case N['PageSize']:{const _0x3c86f9=''+this[_0x4e893e(0x1ba)][_0x4e893e(0x22e)],_0x2ca0f2=_0x23a73a[_0x4e893e(0x316)](_0x3c86f9);_0x23a73a[_0x4e893e(0x1c5)](_0x3c86f9,_0x2b18ef-(_0x2ca0f2[_0x4e893e(0x207)]+_0x96e441),_0x475f54-_0xe091f5);break;}}}),_0x23a73a[_0x4b3718(0x205)]();}['_renderWaterMark'](){const _0x41f77d=_0x2b8db7;{const _0x598f4c=this['_accessor'][_0x41f77d(0x2ed)](m[_0x41f77d(0x1d3)]),_0x4e5651=this['_engine'][_0x41f77d(0x290)]()['getContext']();_0x4e5651[_0x41f77d(0x30c)]();const _0x475578=0x14*this[_0x41f77d(0x18f)];_0x4e5651[_0x41f77d(0x23d)]=_0x41f77d(0x234),_0x4e5651[_0x41f77d(0x230)]=_0x41f77d(0x2e0)+z['DEFAULT_FONTFACE_PLANE'];const _0xb02771=_0x4e5651['measureText'](_0x598f4c['t'](_0x41f77d(0x1ea))),_0x2053a5=(this['_paperSize']['w']-_0xb02771[_0x41f77d(0x207)])/0x2,_0x609f7d=_0xb02771[_0x41f77d(0x300)]+_0xb02771['fontBoundingBoxDescent'];_0x4e5651['fillText'](_0x598f4c['t'](_0x41f77d(0x1ea)),_0x2053a5,_0x475578+_0x609f7d),_0x4e5651[_0x41f77d(0x1c5)](_0x598f4c['t'](_0x41f77d(0x1ea)),_0x2053a5,this[_0x41f77d(0x183)]['h']-_0x475578),_0x4e5651[_0x41f77d(0x205)]();}}[_0x2b8db7(0x33a)](){const _0x1c556d=_0x2b8db7;this[_0x1c556d(0x2da)][_0x1c556d(0x287)](),this[_0x1c556d(0x2e6)](),this[_0x1c556d(0x2fd)](),this[_0x1c556d(0x200)]();}[_0x2b8db7(0x25d)](){const _0xf7d8c4=_0x2b8db7,_0x54cb5b=this[_0xf7d8c4(0x2b4)][_0xf7d8c4(0x266)][_0xf7d8c4(0x1f1)](()=>{const _0x24df22=_0xf7d8c4;this[_0x24df22(0x33a)]();});this[_0xf7d8c4(0x25f)]({'dispose':()=>_0x54cb5b==null?void 0x0:_0x54cb5b[_0xf7d8c4(0x2ae)]()});}}function _0x523b(_0x1d6f5c,_0x15047c){const _0x5c6b15=_0x5c6b();return _0x523b=function(_0x523b4b,_0x21b30e){_0x523b4b=_0x523b4b-0x175;let _0x5b2c66=_0x5c6b15[_0x523b4b];return _0x5b2c66;},_0x523b(_0x1d6f5c,_0x15047c);}function He(_0x576be1){const _0x129845=_0x2b8db7,[_0x3609d1,_0x470db7]=s[_0x129845(0x20a)]();return s[_0x129845(0x22b)](()=>{const _0x317a00=_0x129845;_0x576be1[_0x317a00(0x214)](_0x44d590=>{_0x470db7(()=>_0x44d590);});},[]),_0x3609d1;}const Ae=_0x2b8db7(0x2f6),We='univer-sheets-print-limit',Ue='univer-sheets-print-header',De='univer-sheets-print-header-left',Fe=_0x2b8db7(0x288),Ve=_0x2b8db7(0x282),Be='univer-sheets-print-content-preview',je='univer-sheets-print-content-preview-page',$e='univer-sheets-print-content-preview-control',Ye=_0x2b8db7(0x339),Xe=_0x2b8db7(0x1b7),Ge=_0x2b8db7(0x29a),O={'sheetsPrint':Ae,'sheetsPrintLimit':We,'sheetsPrintHeader':Ue,'sheetsPrintHeaderLeft':De,'sheetsPrintHeaderRight':Fe,'sheetsPrintContent':Ve,'sheetsPrintContentPreview':Be,'sheetsPrintContentPreviewPage':je,'sheetsPrintContentPreviewControl':$e,'sheetsPrintContentPreviewControlItem':Ye,'sheetsPrintContentSetting':Xe,'sheetsPrintContentSettingForm':Ge},Ze=0x31a,ne=(_0x119fed,_0x34b612)=>{const _0x29aa30=s['useRef'](!0x1);s['useEffect'](()=>{const _0x33b6a5=_0x523b;if(_0x29aa30[_0x33b6a5(0x319)])return _0x119fed();_0x29aa30[_0x33b6a5(0x319)]=!0x0;},_0x34b612);},qe=_0x5c6079=>{const _0x1aec6c=_0x2b8db7,{config:_0x4609e1,previewScale:_0x3a8dd7}=_0x5c6079,_0xf6fbbe=D[_0x1aec6c(0x208)](j),_0x26ade7=D[_0x1aec6c(0x208)](W[_0x1aec6c(0x192)]),_0x57a979=s[_0x1aec6c(0x26d)](null),_0x28f30f=_0xf6fbbe['paperSize'],_0x18f62e=R[_0x1aec6c(0x20d)](_0xf6fbbe['renderConfig$'],_0xf6fbbe['renderConfig']),_0x48df0c=R[_0x1aec6c(0x20d)](_0xf6fbbe[_0x1aec6c(0x1fa)],_0xf6fbbe[_0x1aec6c(0x232)]),_0x253836=Math[_0x1aec6c(0x297)](_0x3a8dd7*(Ze/_0x28f30f['w'])*0xa)/0xa,[_0x13e6fc]=s[_0x1aec6c(0x20a)](()=>new de(_0x26ade7,_0x4609e1,!0x0,_0x253836));return s[_0x1aec6c(0x22b)](()=>(_0x57a979[_0x1aec6c(0x319)]&&(_0x13e6fc['container'][_0x1aec6c(0x18b)]['width']='100%',_0x13e6fc[_0x1aec6c(0x2ce)][_0x1aec6c(0x18b)][_0x1aec6c(0x1f9)]='100%',_0x57a979[_0x1aec6c(0x319)][_0x1aec6c(0x2cc)](_0x13e6fc[_0x1aec6c(0x2ce)])),_0x13e6fc[_0x1aec6c(0x33a)](),_0x13e6fc[_0x1aec6c(0x25d)](),()=>{const _0x9940e2=_0x1aec6c;var _0x1ca684;_0x13e6fc[_0x9940e2(0x2ae)](),(_0x1ca684=_0x57a979[_0x9940e2(0x319)])==null||_0x1ca684['removeChild'](_0x13e6fc['container']);}),[_0x13e6fc]),ne(()=>{_0x13e6fc['render']();},[_0x18f62e]),ne(()=>{const _0x3e05a2=_0x1aec6c;_0x13e6fc[_0x3e05a2(0x2bd)](_0x253836),_0x13e6fc['engine'][_0x3e05a2(0x17d)](),_0x13e6fc[_0x3e05a2(0x33a)]();},[_0x253836]),ne(()=>{const _0x3c1930=_0x1aec6c;_0x13e6fc[_0x3c1930(0x19e)](_0x4609e1),_0x13e6fc[_0x3c1930(0x33a)]();},[_0x4609e1['freeze'][_0x1aec6c(0x1e7)],_0x4609e1[_0x1aec6c(0x2b9)][_0x1aec6c(0x310)],_0x4609e1[_0x1aec6c(0x2b9)]['xSplit'],_0x4609e1[_0x1aec6c(0x2b9)][_0x1aec6c(0x333)],_0x4609e1[_0x1aec6c(0x1e1)]['startRow'],_0x4609e1[_0x1aec6c(0x1e1)]['endRow'],_0x4609e1[_0x1aec6c(0x1e1)][_0x1aec6c(0x310)],_0x4609e1['range']['endColumn'],_0x4609e1[_0x1aec6c(0x20f)],_0x48df0c[_0x1aec6c(0x28a)]]),s[_0x1aec6c(0x1d7)](_0x1aec6c(0x2e8),{'className':O[_0x1aec6c(0x2dd)],'ref':_0x57a979,'style':{'width':_0x28f30f['w']*_0x253836,'height':_0x28f30f['h']*_0x253836}});},Ke=s[_0x2b8db7(0x21b)](()=>{const _0x322808=_0x2b8db7,_0x4d742a=D['useDependency'](j),_0x2b6958=R[_0x322808(0x20d)](_0x4d742a[_0x322808(0x1fa)],_0x4d742a[_0x322808(0x232)]),_0x51dace=R[_0x322808(0x20d)](_0x4d742a[_0x322808(0x2a0)],_0x4d742a[_0x322808(0x2f5)]),_0x5b512c=D[_0x322808(0x208)](m[_0x322808(0x1d3)]),_0x907bc=D['useDependency'](m[_0x322808(0x262)])['getCurrentUnitForType'](m['UniverInstanceType'][_0x322808(0x231)]),_0x339d09=_0x907bc[_0x322808(0x32d)](),_0x37c27b=_0x907bc[_0x322808(0x2ca)]();if(!_0x37c27b)return console['error'](_0x322808(0x2a6)),null;const _0x49ae7a=_0x37c27b[_0x322808(0x329)](),_0x542b72=_0x2b6958[_0x322808(0x1aa)]!==L['workbook']&&_0x49ae7a[_0x322808(0x244)]<=0x0,_0x3db3c1=_0x2b6958[_0x322808(0x1aa)]!==L[_0x322808(0x17c)]&&_0x49ae7a[_0x322808(0x333)]<=0x0;return s[_0x322808(0x1d7)](p['Scrollbar'],null,s[_0x322808(0x1d7)](_0x322808(0x2e8),{'className':O[_0x322808(0x245)]},s[_0x322808(0x1d7)](p[_0x322808(0x17a)],{'label':_0x5b512c['t']('print.area.title')},s['createElement'](p[_0x322808(0x2cf)],{'style':{'width':'100%'},'value':''+_0x2b6958[_0x322808(0x1aa)],'onChange':_0x22947b=>{const _0x56bed7=_0x322808;_0x22947b===L[_0x56bed7(0x17c)]?_0x4d742a[_0x56bed7(0x255)]({'area':_0x22947b,'subUnitIds':_0x339d09['map'](_0x1f0ef9=>_0x1f0ef9[_0x56bed7(0x191)]())}):_0x4d742a[_0x56bed7(0x255)]({'area':_0x22947b});},'options':[{'label':_0x5b512c['t'](_0x322808(0x27b)),'value':L[_0x322808(0x31d)]},{'label':_0x5b512c['t'](_0x322808(0x2a4)),'value':L[_0x322808(0x17c)]},{'label':_0x5b512c['t'](_0x322808(0x302)),'value':L['CurrentSelection']}]})),_0x2b6958['area']===L[_0x322808(0x17c)]?s[_0x322808(0x1d7)](p['FormLayout'],{'label':_0x5b512c['t'](_0x322808(0x24a))},s[_0x322808(0x1d7)](p[_0x322808(0x2cf)],{'style':{'width':_0x322808(0x219)},'value':_0x322808(0x280),'onChange':_0x34eb09=>{const _0x3e44c9=_0x322808;_0x4d742a[_0x3e44c9(0x255)]({'subUnitIds':_0x34eb09});},'options':[{'label':_0x2b6958['subUnitIds'][_0x322808(0x2e5)]===_0x339d09[_0x322808(0x2e5)]||_0x2b6958[_0x322808(0x23c)][_0x322808(0x2e5)]===0x0?_0x5b512c['t'](_0x322808(0x1b1)):''+_0x2b6958['subUnitIds'][_0x322808(0x2e5)]+_0x5b512c['t'](_0x322808(0x1fe)),'value':_0x322808(0x280)}],'dropdownRender':()=>s['createElement'](_0x322808(0x2e8),{'style':{'height':0xc8}},s[_0x322808(0x1d7)](p[_0x322808(0x1a1)],null,s[_0x322808(0x1d7)](p[_0x322808(0x31c)],{'value':_0x2b6958[_0x322808(0x23c)],'onChange':_0x5557d7=>{const _0x30cae8=_0x322808,_0x599bb4=new Set(_0x5557d7);if(_0x599bb4[_0x30cae8(0x1f6)]===0x0)_0x4d742a[_0x30cae8(0x255)]({'subUnitIds':_0x339d09['map'](_0x50c2a0=>_0x50c2a0[_0x30cae8(0x191)]())});else{const _0x596c1f=[];_0x339d09['forEach'](_0x154eab=>{const _0x6c433=_0x30cae8,_0x164835=_0x154eab[_0x6c433(0x191)]();_0x599bb4[_0x6c433(0x246)](_0x164835)&&_0x596c1f[_0x6c433(0x313)](_0x164835);}),_0x4d742a[_0x30cae8(0x255)]({'subUnitIds':_0x596c1f});}},'style':{'display':_0x322808(0x2a5),'flexDirection':_0x322808(0x294),'padding':0xc}},_0x339d09[_0x322808(0x1f8)](_0x51f053=>s['createElement'](p[_0x322808(0x265)],{'key':_0x51f053['getSheetId'](),'value':_0x51f053['getSheetId']()},_0x51f053[_0x322808(0x197)]())))))})):null,s['createElement'](p[_0x322808(0x17a)],{'label':_0x5b512c['t']('print.size.title')},s[_0x322808(0x1d7)](p['Select'],{'style':{'width':_0x322808(0x219)},'value':_0x2b6958[_0x322808(0x1a8)],'onChange':_0x2049ff=>{const _0x4cd30a=_0x322808;_0x4d742a[_0x4cd30a(0x255)]({'paperSize':_0x2049ff});},'options':[{'label':_0x5b512c['t'](_0x322808(0x25c)),'value':d[_0x322808(0x286)][_0x322808(0x251)]},{'label':_0x5b512c['t'](_0x322808(0x1a0)),'value':d[_0x322808(0x286)][_0x322808(0x279)]},{'label':_0x5b512c['t'](_0x322808(0x20e)),'value':d[_0x322808(0x286)][_0x322808(0x2d7)]},{'label':_0x5b512c['t']('print.size.statement'),'value':d[_0x322808(0x286)][_0x322808(0x292)]},{'label':_0x5b512c['t'](_0x322808(0x2a2)),'value':d[_0x322808(0x286)][_0x322808(0x1d5)]},{'label':_0x5b512c['t']('print.size.folio'),'value':d['PrintPaperSize'][_0x322808(0x33c)]},{'label':_0x5b512c['t'](_0x322808(0x2af)),'value':d[_0x322808(0x286)]['A3']},{'label':_0x5b512c['t']('print.size.a4'),'value':d[_0x322808(0x286)]['A4']},{'label':_0x5b512c['t'](_0x322808(0x1ad)),'value':d[_0x322808(0x286)]['A5']},{'label':_0x5b512c['t'](_0x322808(0x2de)),'value':d['PrintPaperSize']['B4']},{'label':_0x5b512c['t'](_0x322808(0x212)),'value':d['PrintPaperSize']['B5']}]})),s[_0x322808(0x1d7)](p[_0x322808(0x17a)],{'label':_0x5b512c['t']('print.margin.title')},s[_0x322808(0x1d7)](p[_0x322808(0x2cf)],{'style':{'width':'100%'},'value':_0x2b6958['margin'],'onChange':_0x2c7408=>{const _0x1f67ed=_0x322808;_0x4d742a[_0x1f67ed(0x255)]({'margin':_0x2c7408});},'options':[{'label':_0x5b512c['t'](_0x322808(0x1cc)),'value':d[_0x322808(0x233)]['Normal']},{'label':_0x5b512c['t'](_0x322808(0x1a9)),'value':d[_0x322808(0x233)]['Narrow']},{'label':_0x5b512c['t'](_0x322808(0x2d3)),'value':d[_0x322808(0x233)][_0x322808(0x1a6)]}]})),s['createElement'](p[_0x322808(0x17a)],{'label':_0x5b512c['t']('print.orientation.title')},s[_0x322808(0x1d7)](p[_0x322808(0x19c)],{'value':_0x2b6958[_0x322808(0x1bf)],'onChange':_0x1a855e=>{const _0x4eb416=_0x322808;_0x4d742a[_0x4eb416(0x255)]({'direction':_0x1a855e});}},s[_0x322808(0x1d7)](p[_0x322808(0x2d4)],{'value':d[_0x322808(0x1ab)][_0x322808(0x33b)]},_0x5b512c['t']('print.orientation.portrait')),s[_0x322808(0x1d7)](p['Radio'],{'value':d[_0x322808(0x1ab)][_0x322808(0x274)]},_0x5b512c['t'](_0x322808(0x25a))))),s[_0x322808(0x1d7)](p[_0x322808(0x17a)],{'label':_0x5b512c['t']('print.scale.title')},s[_0x322808(0x1d7)](p[_0x322808(0x2cf)],{'style':{'width':_0x322808(0x219)},'value':_0x2b6958[_0x322808(0x20f)],'onChange':_0x1e4f4e=>{const _0xe50d22=_0x322808;_0x4d742a[_0xe50d22(0x255)]({'scale':_0x1e4f4e});},'options':[{'label':_0x5b512c['t']('print.scale.normal'),'value':d[_0x322808(0x285)][_0x322808(0x2f0)]},{'label':_0x5b512c['t']('print.scale.fitWidth'),'value':d['PrintScale']['FitWidth']},{'label':_0x5b512c['t'](_0x322808(0x24e)),'value':d[_0x322808(0x285)][_0x322808(0x30b)]},{'label':_0x5b512c['t']('print.scale.fitPage'),'value':d[_0x322808(0x285)][_0x322808(0x336)]}]})),s['createElement'](p[_0x322808(0x17a)],{'label':_0x5b512c['t'](_0x322808(0x28c))},s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'checked':_0x51dace[_0x322808(0x1e8)],'onChange':_0x4b668a=>{const _0x122c8e=_0x322808;_0x4d742a[_0x122c8e(0x24c)]({'gridlines':_0x4b668a});}},_0x5b512c['t'](_0x322808(0x271)))),s['createElement'](p[_0x322808(0x17a)],{'label':_0x5b512c['t'](_0x322808(0x1ec))},s[_0x322808(0x1d7)](_0x322808(0x2e8),{'style':{'width':_0x322808(0x219),'display':_0x322808(0x2a5)}},s['createElement'](p[_0x322808(0x2cf)],{'style':{'marginRight':0x4,'flex':0x1},'value':_0x51dace[_0x322808(0x2cd)],'onChange':_0x29ca3e=>{_0x4d742a['updateRenderConfig']({'hAlign':_0x29ca3e});},'options':[{'label':_0x5b512c['t'](_0x322808(0x211)),'value':d[_0x322808(0x2d1)][_0x322808(0x305)]},{'label':_0x5b512c['t'](_0x322808(0x23e)),'value':d[_0x322808(0x2d1)]['Start']},{'label':_0x5b512c['t'](_0x322808(0x289)),'value':d['PrintAlign'][_0x322808(0x2ad)]}]}),s['createElement'](p[_0x322808(0x2cf)],{'style':{'marginLeft':0x4,'flex':0x1},'value':_0x51dace[_0x322808(0x2b6)],'onChange':_0x3879c6=>{const _0x21cd9d=_0x322808;_0x4d742a[_0x21cd9d(0x24c)]({'vAlign':_0x3879c6});},'options':[{'label':_0x5b512c['t'](_0x322808(0x2b3)),'value':d[_0x322808(0x2d1)][_0x322808(0x248)]},{'label':_0x5b512c['t'](_0x322808(0x2ec)),'value':d[_0x322808(0x2d1)]['End']},{'label':_0x5b512c['t'](_0x322808(0x2a8)),'value':d['PrintAlign'][_0x322808(0x305)]}]}))),s['createElement'](p['FormLayout'],{'label':_0x5b512c['t'](_0x322808(0x298))},s[_0x322808(0x1d7)](p[_0x322808(0x31c)],{'value':_0x51dace['headerFooter'],'onChange':_0x3f9286=>{const _0x2d02b6=_0x322808;_0x4d742a[_0x2d02b6(0x24c)]({'headerFooter':_0x3f9286});},'style':{'display':'flex','flexDirection':'column'}},s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'value':N[_0x322808(0x179)]},_0x5b512c['t']('print.headerFooter.page')),s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'value':N[_0x322808(0x22c)]},_0x5b512c['t'](_0x322808(0x210))),s['createElement'](p[_0x322808(0x265)],{'value':N[_0x322808(0x27a)]},_0x5b512c['t']('print.headerFooter.sheet')),s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'value':N[_0x322808(0x19a)]},_0x5b512c['t'](_0x322808(0x2b7))),s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'value':N[_0x322808(0x2c2)]},_0x5b512c['t'](_0x322808(0x2a9))))),s['createElement'](p['FormLayout'],{'label':_0x5b512c['t'](_0x322808(0x189))},s[_0x322808(0x1d7)](p[_0x322808(0x31c)],{'value':_0x2b6958[_0x322808(0x2b9)],'onChange':_0x120711=>{const _0x56cd0e=_0x322808;_0x4d742a[_0x56cd0e(0x255)]({'freeze':_0x120711});},'style':{'display':_0x322808(0x2a5),'flexDirection':_0x322808(0x294)}},s['createElement'](p['Checkbox'],{'disabled':_0x3db3c1,'value':B['Row']},_0x5b512c['t']('print.freeze.row')),s[_0x322808(0x1d7)](p[_0x322808(0x265)],{'disabled':_0x542b72,'value':B[_0x322808(0x2f4)]},_0x5b512c['t'](_0x322808(0x23a)))))));}),se=0.1,Qe=0.5,Je=0x2,et=()=>{const _0x10e9b7=_0x2b8db7,_0x2fe63b=D[_0x10e9b7(0x208)](j),_0x410a61=D[_0x10e9b7(0x208)](m['ICommandService']),_0x45a374=R[_0x10e9b7(0x20d)](_0x2fe63b[_0x10e9b7(0x272)],[]),[_0x46683a,_0x11f49e]=s['useState'](0x1),_0x34ed36=s[_0x10e9b7(0x26d)](0x0),_0x322d08=D[_0x10e9b7(0x208)](m[_0x10e9b7(0x262)]),_0x44b0db=D[_0x10e9b7(0x208)](m[_0x10e9b7(0x1d3)]),_0x354076=D[_0x10e9b7(0x208)](W[_0x10e9b7(0x192)]),_0x176ea9=He(import(_0x10e9b7(0x19f))[_0x10e9b7(0x214)](_0x440470=>_0x440470[_0x10e9b7(0x215)]));s[_0x10e9b7(0x22b)](()=>{const _0x3d8a30=_0x10e9b7;var _0x1d5d35;if(!_0x176ea9)return;const _0x116421=_0x322d08[_0x3d8a30(0x28e)](m[_0x3d8a30(0x1e2)]['UNIVER_SHEET'])['getUnitId'](),_0x1bdb15=_0x354076[_0x3d8a30(0x2ed)](_0x176ea9,W[_0x3d8a30(0x29c)][_0x3d8a30(0x1bc)]),_0x218ed2=(_0x1d5d35=_0x1bdb15==null?void 0x0:_0x1bdb15[_0x3d8a30(0x1c7)](_0x116421))==null?void 0x0:_0x1d5d35['pauseCollaboration']();return()=>{const _0x1d4089=_0x3d8a30;_0x218ed2==null||_0x218ed2[_0x1d4089(0x2ae)]();};},[_0x176ea9,_0x354076,_0x322d08]);const _0x44c328=s['useMemo'](()=>{const _0x3fd915=_0x10e9b7;let _0x2ead7c=0x1;return _0x34ed36[_0x3fd915(0x319)]++,_0x45a374[_0x3fd915(0x1f8)](_0x103036=>_0x103036[_0x3fd915(0x1da)][_0x3fd915(0x1f8)]((_0xedcdf7,_0x4a456e)=>({'page':_0x2ead7c++,..._0x103036,'range':_0xedcdf7,'subPage':_0x4a456e})))[_0x3fd915(0x306)]();},[_0x45a374])[_0x10e9b7(0x22a)](0x0,0x3),_0x445e8d=()=>{const _0x8ea00c=_0x10e9b7;_0x410a61[_0x8ea00c(0x31b)](oe['id']);},_0x112842=()=>{_0x410a61['executeCommand'](J['id']);};return s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O['sheetsPrint']},s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O['sheetsPrintHeader']},s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x1ee)]},_0x44b0db['t']('print.header.total'),_0x44c328[_0x10e9b7(0x2e5)],_0x44b0db['t']('print.header.pages')),s['createElement'](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x2c8)]},s[_0x10e9b7(0x1d7)](p[_0x10e9b7(0x27c)],{'onClick':_0x445e8d},_0x44b0db['t'](_0x10e9b7(0x29e))),s[_0x10e9b7(0x1d7)](p[_0x10e9b7(0x27c)],{'type':_0x10e9b7(0x17b),'onClick':_0x112842},_0x44b0db['t'](_0x10e9b7(0x202))))),s['createElement'](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x308)]},s['createElement']('div',{'className':O[_0x10e9b7(0x1a3)]},s['createElement'](p[_0x10e9b7(0x1a1)],null,_0x44c328[_0x10e9b7(0x1f8)](_0x73132c=>s[_0x10e9b7(0x1d7)](qe,{'key':_0x73132c[_0x10e9b7(0x18c)]+'-'+_0x73132c[_0x10e9b7(0x190)]+'-'+_0x73132c[_0x10e9b7(0x1db)],'config':_0x73132c,'page':_0x73132c[_0x10e9b7(0x22e)],'previewScale':_0x46683a})),s[_0x10e9b7(0x1d7)]('div',{'className':O[_0x10e9b7(0x209)]},s['createElement']('a',{'href':_0x44b0db['t']('print.limit.link'),'target':_0x10e9b7(0x264)},_0x44b0db['t'](_0x10e9b7(0x1d1))))),s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x220)]},s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x318)],'onClick':()=>{const _0x7030b0=_0x10e9b7;_0x11f49e(Math[_0x7030b0(0x240)](_0x46683a+se,Je));}},s[_0x10e9b7(0x1d7)](he,null)),s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O['sheetsPrintContentPreviewControlItem'],'onClick':()=>{const _0xd9f949=_0x10e9b7;_0x11f49e(Math[_0xd9f949(0x256)](_0x46683a-se,Qe));}},s[_0x10e9b7(0x1d7)](ue,null)))),s[_0x10e9b7(0x1d7)](_0x10e9b7(0x2e8),{'className':O[_0x10e9b7(0x1cf)]},s[_0x10e9b7(0x1d7)](Ke,null))));};var tt=Object['defineProperty'],nt=Object[_0x2b8db7(0x26c)],it=(_0x1ba584,_0x877035,_0x816866,_0x882132)=>{const _0x15e9b5=_0x2b8db7;for(var _0x2a7be1=_0x882132>0x1?void 0x0:_0x882132?nt(_0x877035,_0x816866):_0x877035,_0x1a52dd=_0x1ba584[_0x15e9b5(0x2e5)]-0x1,_0x7c9cbd;_0x1a52dd>=0x0;_0x1a52dd--)(_0x7c9cbd=_0x1ba584[_0x1a52dd])&&(_0x2a7be1=(_0x882132?_0x7c9cbd(_0x877035,_0x816866,_0x2a7be1):_0x7c9cbd(_0x2a7be1))||_0x2a7be1);return _0x882132&&_0x2a7be1&&tt(_0x877035,_0x816866,_0x2a7be1),_0x2a7be1;},Z=(_0x52dbc3,_0x5556d6)=>(_0x3b184c,_0x29fc59)=>_0x5556d6(_0x3b184c,_0x29fc59,_0x52dbc3);let K=class extends m[_0x2b8db7(0x18e)]{constructor(_0x3a9fd2,_0x34df5b,_0x27e2d5,_0x282388){const _0x3c2f18=_0x2b8db7;super(),this[_0x3c2f18(0x323)]=_0x3a9fd2,this['_commandService']=_0x34df5b,this['_injector']=_0x27e2d5,this[_0x3c2f18(0x307)]=_0x282388,this[_0x3c2f18(0x226)]();}[_0x2b8db7(0x226)](){const _0x32428b=_0x2b8db7;this[_0x32428b(0x185)](),this[_0x32428b(0x1e0)](),this[_0x32428b(0x30a)]();}[_0x2b8db7(0x185)](){const _0x10d701=_0x2b8db7;this['_printService'][_0x10d701(0x2b5)](Oe,et);}[_0x2b8db7(0x30a)](){const _0xa0440b=_0x2b8db7;this[_0xa0440b(0x25f)](this['_printService'][_0xa0440b(0x2a7)][_0xa0440b(0x259)](_0x4891ee=>{const _0x3b0f19=_0xa0440b;_0x4891ee&&this[_0x3b0f19(0x307)][_0x3b0f19(0x2bb)]();}));}['_print'](){const _0x2a4d7e=_0x2b8db7;let _0x521cd5=this['_sheetPrintManagerService'][_0x2a4d7e(0x31e)][_0x2a4d7e(0x1f8)](_0x211fef=>_0x211fef[_0x2a4d7e(0x1da)]['map'](_0x4c937b=>({..._0x211fef,'range':_0x4c937b})))[_0x2a4d7e(0x306)]()['map']((_0x16eef5,_0x2530dc)=>({..._0x16eef5,'page':_0x2530dc+0x1}));_0x521cd5=_0x521cd5['slice'](0x0,0x3);const _0x30f99a=document[_0x2a4d7e(0x1d7)](_0x2a4d7e(0x2e8));_0x30f99a[_0x2a4d7e(0x254)]=d[_0x2a4d7e(0x1ce)];const _0x1c6098=_0x521cd5['map'](_0x5b64d6=>{const _0x1478d2=_0x2a4d7e,_0x7dd5c8=new de(this[_0x1478d2(0x178)],_0x5b64d6,!0x1);return _0x7dd5c8[_0x1478d2(0x2ce)][_0x1478d2(0x254)]=d[_0x1478d2(0x296)],_0x7dd5c8;});_0x1c6098['forEach'](_0x1c7eeb=>{const _0x34ac06=_0x2a4d7e;_0x30f99a[_0x34ac06(0x2cc)](_0x1c7eeb['container']);});const _0x3b1348=this[_0x2a4d7e(0x307)]['layoutConfig'],_0x121946=d[_0x2a4d7e(0x276)](_0x3b1348[_0x2a4d7e(0x1a8)],_0x3b1348[_0x2a4d7e(0x1bf)]);document['body'][_0x2a4d7e(0x2cc)](_0x121946),document[_0x2a4d7e(0x33e)][_0x2a4d7e(0x2cc)](_0x30f99a),setTimeout(()=>{const _0x12deb1=_0x2a4d7e;window[_0x12deb1(0x2f8)]=()=>{const _0x254473=_0x12deb1;_0x1c6098[_0x254473(0x1be)](_0x4b0fcc=>{const _0xf008c6=_0x254473;_0x4b0fcc[_0xf008c6(0x33a)]();});},window[_0x12deb1(0x242)]=()=>{const _0x9bf29=_0x12deb1;_0x1c6098[_0x9bf29(0x1be)](_0x46c607=>{_0x46c607['dispose']();}),document[_0x9bf29(0x33e)][_0x9bf29(0x1c2)](_0x30f99a),document[_0x9bf29(0x33e)][_0x9bf29(0x1c2)](_0x121946),this[_0x9bf29(0x323)][_0x9bf29(0x1c1)](),this[_0x9bf29(0x307)]['reset']();},window[_0x12deb1(0x1de)]();},0x64);}[_0x2b8db7(0x1e0)](){const _0x13594d=_0x2b8db7;this['disposeWithMe'](this[_0x13594d(0x24f)][_0x13594d(0x30e)](_0x38860f=>{const _0x7ac05a=_0x13594d;_0x38860f['id']===J['id']&&this[_0x7ac05a(0x2fa)]();})),this[_0x13594d(0x25f)](this[_0x13594d(0x24f)][_0x13594d(0x30e)](_0x1957fd=>{const _0x355d47=_0x13594d;_0x1957fd['id']===X['id']&&this[_0x355d47(0x323)]['open']();}));}};K=it([m[_0x2b8db7(0x2ef)](m[_0x2b8db7(0x21c)][_0x2b8db7(0x229)],K),Z(0x0,R[_0x2b8db7(0x27d)]),Z(0x1,m[_0x2b8db7(0x223)]),Z(0x2,W[_0x2b8db7(0x337)](W['Injector'])),Z(0x3,j)],K);const rt={'id':X['id'],'binding':R[_0x2b8db7(0x1eb)]['P']|R[_0x2b8db7(0x32a)][_0x2b8db7(0x1df)],'preconditions':H[_0x2b8db7(0x338)]};function ot(_0x1089ff){const _0x436418=_0x2b8db7;return{'id':X['id'],'type':R['MenuItemType'][_0x436418(0x311)],'group':R[_0x436418(0x284)][_0x436418(0x26e)],'positions':[R[_0x436418(0x253)][_0x436418(0x238)]],'title':'print.menu','icon':_0x436418(0x2c7),'tooltip':_0x436418(0x275),'hidden$':R[_0x436418(0x237)](_0x1089ff,m[_0x436418(0x1e2)][_0x436418(0x231)]),'disabled$':H[_0x436418(0x227)](_0x1089ff,{'workbookTypes':[re[_0x436418(0x2f3)]]})};}var at=Object['defineProperty'],st=Object[_0x2b8db7(0x26c)],ct=(_0x24ef9b,_0x29e66a,_0xc28c0c,_0x373c52)=>{const _0x291af4=_0x2b8db7;for(var _0x519cbf=_0x373c52>0x1?void 0x0:_0x373c52?st(_0x29e66a,_0xc28c0c):_0x29e66a,_0x2a3444=_0x24ef9b[_0x291af4(0x2e5)]-0x1,_0x16832d;_0x2a3444>=0x0;_0x2a3444--)(_0x16832d=_0x24ef9b[_0x2a3444])&&(_0x519cbf=(_0x373c52?_0x16832d(_0x29e66a,_0xc28c0c,_0x519cbf):_0x16832d(_0x519cbf))||_0x519cbf);return _0x373c52&&_0x519cbf&&at(_0x29e66a,_0xc28c0c,_0x519cbf),_0x519cbf;},Y=(_0x12224a,_0x41afd7)=>(_0x573218,_0x83deb8)=>_0x41afd7(_0x573218,_0x83deb8,_0x12224a);const lt={};var q;exports[_0x2b8db7(0x1b3)]=(q=class extends m[_0x2b8db7(0x325)]{constructor(_0x2e12c0={},_0x292623,_0x3effd5,_0x307780,_0x12d2ab,_0x10845e,_0x4b1a90){const _0x2ba0a1=_0x2b8db7;super(),this[_0x2ba0a1(0x1ba)]=_0x2e12c0,this['_injector']=_0x292623,this[_0x2ba0a1(0x24f)]=_0x3effd5,this['_localeService']=_0x307780,this[_0x2ba0a1(0x187)]=_0x12d2ab,this[_0x2ba0a1(0x252)]=_0x10845e,this[_0x2ba0a1(0x2b8)]=_0x4b1a90,this['_config']=m[_0x2ba0a1(0x1e9)][_0x2ba0a1(0x21d)]({},lt,this['_config']);}['onReady'](){const _0x4e4a00=_0x2b8db7;[X,oe,J][_0x4e4a00(0x1be)](_0x25883b=>this[_0x4e4a00(0x24f)]['registerCommand'](_0x25883b)),[[j,{'useClass':ie}],[K]][_0x4e4a00(0x1be)](_0x19d92e=>this[_0x4e4a00(0x178)][_0x4e4a00(0x1f1)](_0x19d92e)),[rt][_0x4e4a00(0x1be)](_0xff8de6=>{const _0x177075=_0x4e4a00;this[_0x177075(0x187)][_0x177075(0x314)](_0xff8de6);}),[[_0x4e4a00(0x2c7),le]][_0x4e4a00(0x1be)](([_0x35c40d,_0x2ef0b4])=>{const _0x2e8af9=_0x4e4a00;this[_0x2e8af9(0x2b8)][_0x2e8af9(0x204)](_0x35c40d,_0x2ef0b4);});const {menu:_0x26a148={}}=this[_0x4e4a00(0x1ba)];[ot][_0x4e4a00(0x1be)](_0x56c1b6=>{const _0x58387a=_0x4e4a00;this[_0x58387a(0x252)][_0x58387a(0x291)](_0x56c1b6(this[_0x58387a(0x178)]),_0x26a148);});}},P(q,_0x2b8db7(0x19d),Le),P(q,_0x2b8db7(0x1d2),m[_0x2b8db7(0x1e2)]['UNIVER_SHEET']),q),exports[_0x2b8db7(0x1b3)]=ct([Y(0x1,W[_0x2b8db7(0x337)](W[_0x2b8db7(0x192)])),Y(0x2,m['ICommandService']),Y(0x3,W[_0x2b8db7(0x337)](m['LocaleService'])),Y(0x4,R['IShortcutService']),Y(0x5,R[_0x2b8db7(0x201)]),Y(0x6,W[_0x2b8db7(0x337)](R[_0x2b8db7(0x213)]))],exports[_0x2b8db7(0x1b3)]),exports[_0x2b8db7(0x315)]=oe,exports[_0x2b8db7(0x216)]=J,exports['SheetPrintOpenOperation']=X;