@file-viewer/vue3 3.0.2 → 3.0.3
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/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/components/export.js +158 -1
- package/dist/components/export2.js +1165 -1
- package/dist/components/fit.js +486 -1
- package/dist/components/image.js +175 -1
- package/dist/components/messages.js +1888 -1
- package/dist/components/objectSpread2.js +88 -0
- package/dist/components/print-mask.js +214 -1
- package/dist/components/printMask.js +129 -1
- package/dist/index.mjs +7618 -1
- package/dist/src/package/components/FileViewer/hooks/useViewerPreviewLifecycle.d.ts +2 -1
- package/dist/src/package/components/FileViewer/hooks/useViewerRenderSurface.d.ts +2 -1
- package/dist/vue3.css +1 -1
- package/package.json +2 -2
- package/dist/components/asyncToGenerator.js +0 -1
|
@@ -1 +1,1165 @@
|
|
|
1
|
-
const cT=X;(function(ab,ac){const cO=X,ad=ab();while(!![]){try{const af=parseInt(cO(0x21d))/0x1+parseInt(cO(0x203))/0x2*(-parseInt(cO(0x1f5))/0x3)+parseInt(cO(0x20f))/0x4*(parseInt(cO(0x1f3))/0x5)+parseInt(cO(0x1c5))/0x6+parseInt(cO(0x206))/0x7*(parseInt(cO(0x219))/0x8)+parseInt(cO(0x231))/0x9*(-parseInt(cO(0x225))/0xa)+-parseInt(cO(0x1bf))/0xb*(parseInt(cO(0x204))/0xc);if(af===ac)break;else ad['push'](ad['shift']());}catch(ag){ad['push'](ad['shift']());}}}(Q,0x4293f));import{n as Y,t}from'./asyncToGenerator.js';import{a as Z,c as a0,i,l as a1,n as a2,o as a3,r as a4,s as a5,t as a6}from'./export.js';import{i as a7,n as a8,r as a9,t as aa}from'./printMask.js';function f(ab,ac){const cP=X;(ac==null||ac>ab[cP(0x228)])&&(ac=ab['length']);for(var ad=0x0,af=Array(ac);ad<ac;ad++)af[ad]=ab[ad];return af;}function p(ab){const cQ=X;if(Array[cQ(0x1f6)](ab))return ab;}function re(ab,ac){const cR=X;var ad=ab==null?null:typeof Symbol<'u'&&ab[Symbol['iterator']]||ab['@@iterator'];if(ad!=null){var af,ag,ah,ai,aj=[],ak=!0x0,al=!0x1;try{if(ah=(ad=ad['call'](ab))[cR(0x224)],ac!==0x0){for(;!(ak=(af=ah['call'](ad))[cR(0x218)])&&(aj['push'](af['value']),aj[cR(0x228)]!==ac);ak=!0x0);}}catch(am){al=!0x0,ag=am;}finally{try{if(!ak&&ad['return']!=null&&(ai=ad['return'](),Object(ai)!==ai))return;}finally{if(al)throw ag;}}return aj;}}function ie(){throw TypeError('Invalid\x20attempt\x20to\x20destructure\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.');}function m(ab,ac){return p(ab)||re(ab,ac)||h(ab,ac)||ie();}function X(a,b){a=a-0x1b5;const c=Q();let d=c[a];return d;}function h(ab,ac){const cS=X;if(ab){if(typeof ab=='string')return f(ab,ac);var ad={}[cS(0x1f8)]['call'](ab)['slice'](0x8,-0x1);return ad==='Object'&&ab['constructor']&&(ad=ab['constructor']['name']),ad==='Map'||ad==='Set'?Array['from'](ab):ad==='Arguments'||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/['test'](ad)?f(ab,ac):void 0x0;}}function Q(){const dH=['indexOf','allowCustomizedBuiltInElements','afterSanitizeElements','done','96LehGnd','animate','accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns','<!-->','314906BXHGiQ','unknown','removeAttribute','font-face-src','tbody','mscarry','</style>\x0a\x20\x20','next','284080BmjlRJ','createNodeIterator','innerHTML','length','script','object','string','feFuncA','test','iframe','getAttribute','mstack','117hEJxlT','documentElement','pageIndex','<head>','setAttribute','match','ADD_ATTR','application/xhtml+xml','meta[name=\x22viewport\x22]','maction','html','HTMLFormElement','semantics','afterSanitizeAttributes','feFuncG','href','587191IWJRVn','document','name','getAttributeType','title','rel','2543544gXGoeb','nextSibling','ADD_TAGS','call','uponSanitizeElement','meta[charset]','SANITIZE_NAMED_PROPS','feMorphology','split','map','MATHML_TEXT_INTEGRATION_POINTS','removeHooks','style','trim','element','NAMESPACE','parseInt','slice','toLowerCase','function','viewport','source','doctype','embed','startsWith','replace','attributeNameCheck','TRUSTED_TYPES_POLICY\x20configuration\x20option\x20must\x20provide\x20a\x20\x22createHTML\x22\x20hook.','normalize','apply','cssRules','xlink:href','video','text/html','tagNameCheck','attributename','value','<style\x20data-viewer-print-mask-style>','prototype','TRUSTED_TYPES_POLICY','\x0a\x20\x20<style>','createElement','plaintext','TrustedScriptURL','exec','charCodeAt','2450715VVNzTo','import','195EsAbcw','isArray','feDisplacementMap','toString','namespaceURI','RETURN_DOM','insertBefore','</style>','feImage','image','noembed','localName','nodeName','regions','15034QGkULS','108CNTlPY','textContent','222873QtFsUj','ownerDocument','importNode','documentRef','feSpotLight','isSupported','remove','bigint','xmlns:xlink','4rbdyJl','target','content','getPrototypeOf','cloneNode','beforeSanitizeAttributes'];Q=function(){return dH;};return Q();}var ae=Object['entries'],g=Object['setPrototypeOf'],_=Object['isFrozen'],oe=Object[cT(0x212)],v=Object['getOwnPropertyDescriptor'],y=Object['freeze'],b=Object['seal'],x=Object['create'],S=typeof Reflect<'u'&&Reflect,C=S['apply'],se=S['construct'];y||(y=function(ab){return ab;}),b||(b=function(ab){return ab;}),C||(C=function(ab,ac){var ad=[...arguments]['slice'](0x2);return ab['apply'](ac,ad);}),se||(se=function(ab){return new ab(...[...arguments]['slice'](0x1));});var w=A(Array['prototype']['forEach']),ce=A(Array['prototype']['lastIndexOf']),le=A(Array['prototype']['pop']),ue=A(Array['prototype']['push']),de=A(Array['prototype']['splice']),fe=Array[cT(0x1f6)],pe=A(String['prototype']['toLowerCase']),me=A(String['prototype']['toString']),he=A(String['prototype'][cT(0x236)]),ge=A(String['prototype']['replace']),_e=A(String['prototype']['indexOf']),ve=A(String[cT(0x1eb)]['trim']),T=A(Number['prototype']['toString']),ye=A(Boolean['prototype']['toString']),E=typeof BigInt>'u'?null:A(BigInt['prototype']['toString']),be=typeof Symbol>'u'?null:A(Symbol['prototype'][cT(0x1f8)]),D=A(Object['prototype']['hasOwnProperty']),xe=A(Object[cT(0x1eb)]['toString']),O=A(RegExp['prototype']['test']),k=Se(TypeError);function A(ab){return function(ac){ac instanceof RegExp&&(ac['lastIndex']=0x0);var ad=[...arguments]['slice'](0x1);return C(ab,ac,ad);};}function Se(ab){return function(){return se(ab,[...arguments]);};}function j(ab,ac){let ad=arguments['length']>0x2&&arguments[0x2]!==void 0x0?arguments[0x2]:pe;if(g&&g(ab,null),!fe(ac))return ab;let af=ac['length'];for(;af--;){let ag=ac[af];if(typeof ag=='string'){let ah=ad(ag);ah!==ag&&(_(ac)||(ac[af]=ah),ag=ah);}ab[ag]=!0x0;}return ab;}function Ce(ab){for(let ac=0x0;ac<ab['length'];ac++)D(ab,ac)||(ab[ac]=null);return ab;}function M(ab){const cU=cT;let ac=x(null);for(let af of ae(ab)){var ad=m(af,0x2);let ag=ad[0x0],ah=ad[0x1];D(ab,ag)&&(ac[ag]=fe(ah)?Ce(ah):ah&&typeof ah==cU(0x22a)&&ah['constructor']===Object?M(ah):ah);}return ac;}function we(ab){const cV=cT;switch(typeof ab){case'string':return ab;case'number':return T(ab);case'boolean':return ye(ab);case cV(0x20d):return E?E(ab):'0';case'symbol':return be?be(ab):'Symbol()';case'undefined':return xe(ab);case'function':case'object':{if(ab===null)return xe(ab);let ac=ab,ad=N(ac,'toString');if(typeof ad=='function'){let af=ad(ac);return typeof af=='string'?af:xe(af);}return xe(ab);}default:return xe(ab);}}function N(ab,ac){const cW=cT;for(;ab!==null;){let af=v(ab,ac);if(af){if(af['get'])return A(af['get']);if(typeof af['value']==cW(0x1d8))return A(af['value']);}ab=oe(ab);}function ad(){return null;}return ad;}function Te(ab){try{return O(ab,''),!0x0;}catch(ac){return!0x1;}}var Ee=y('a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr'['split']('.')),De=y('svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern'['split']('.')),Oe=y(['feBlend','feColorMatrix','feComponentTransfer','feComposite','feConvolveMatrix','feDiffuseLighting',cT(0x1f7),'feDistantLight','feDropShadow','feFlood',cT(0x22c),'feFuncB',cT(0x1bd),'feFuncR','feGaussianBlur',cT(0x1fd),'feMerge','feMergeNode',cT(0x1cc),'feOffset','fePointLight','feSpecularLighting',cT(0x20a),'feTile','feTurbulence']),ke=y([cT(0x21a),'color-profile','cursor','discard','font-face','font-face-format','font-face-name',cT(0x220),'font-face-uri','foreignobject','hatch','hatchpath','mesh','meshgradient','meshpatch','meshrow','missing-glyph',cT(0x229),'set','solidcolor',cT(0x21e),'use']),Ae=y('math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts'['split']('.')),je=y([cT(0x1b8),'maligngroup','malignmark','mlongdiv','mscarries',cT(0x222),'msgroup',cT(0x230),'msline','msrow',cT(0x1bb),'annotation','annotation-xml','mprescripts','none']),Me=y(['#text']),Ne=y('accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns'[cT(0x1cd)]('.')),Pe=y('accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan'['split']('.')),Fe=y(cT(0x21b)['split']('.')),Ie=y(['xlink:href','xml:id','xlink:title','xml:space',cT(0x20e)]),Le=b(/{{[\w\W]*|^[\w\W]*}}/g),Re=b(/<%[\w\W]*|^[\w\W]*%>/g),ze=b(/\${[\w\W]*/g),Be=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ve=b(/^aria-[\-\w]+$/),He=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ue=b(/^(?:\w+script|data):/i),We=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ge=b(/^html$/i),Ke=b(/^[a-z][.\w]*(-[.\w]+)+$/i),qe=b(/<[/\w!]/g),Je=b(/<[/\w]/g),Ye=b(/<\/no(script|embed|frames)/i),Xe=b(/\/>/i),P={'element':0x1,'attribute':0x2,'text':0x3,'cdataSection':0x4,'entityReference':0x5,'entityNode':0x6,'processingInstruction':0x7,'comment':0x8,'document':0x9,'documentType':0xa,'documentFragment':0xb,'notation':0xc},Ze=['style',cT(0x229),'xmp','iframe',cT(0x1ff),'noframes',cT(0x1ef),'noscript'],Qe=y(j({},Ze)),$e=(function(){let ab={};return w(Ze,ac=>{ab[ac]=b(RegExp('</'+ac+'(?=[\x5ct\x5cn\x5cf\x5cr\x20/>])','i'));}),y(ab);}()),et=function(){return typeof window>'u'?null:window;},tt=function(ab,ac){if(typeof ab!='object'||typeof ab['createPolicy']!='function')return null;let ad=null,af='data-tt-policy-suffix';ac&&ac['hasAttribute'](af)&&(ad=ac['getAttribute'](af));let ag='dompurify'+(ad?'#'+ad:'');try{return ab['createPolicy'](ag,{'createHTML'(ah){return ah;},'createScriptURL'(ah){return ah;}});}catch(ah){return console['warn']('TrustedTypes\x20policy\x20'+ag+'\x20could\x20not\x20be\x20created.'),null;}},nt=function(){return{'afterSanitizeAttributes':[],'afterSanitizeElements':[],'afterSanitizeShadowDOM':[],'beforeSanitizeAttributes':[],'beforeSanitizeElements':[],'beforeSanitizeShadowDOM':[],'uponSanitizeAttribute':[],'uponSanitizeElement':[],'uponSanitizeShadowNode':[]};},F=function(ab,ac,ad,af){return D(ab,ac)&&fe(ab[ac])?j(af['base']?M(af['base']):{},ab[ac],af['transform']):ad;},rt=function(ab,ac,ad){let af=D(ab,ac)?ab[ac]:void 0x0;return af&&typeof af=='object'?M(af):ad();};function it(){const cX=cT;let ab=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:et(),ac=cy=>it(cy);if(ac['version']='3.4.14',ac['removed']=[],!ab||!ab['document']||ab['document']['nodeType']!==P[cX(0x1c0)]||!ab['Element'])return ac['isSupported']=!0x1,ac;let ad=ab['document'],af=ad,ag=af['currentScript'];ab['DocumentFragment'];let ah=ab['HTMLTemplateElement'],ai=ab['Node'],aj=ab['Element'],ak=ab['NodeFilter'];ab['NamedNodeMap']===void 0x0&&(ab['NamedNodeMap']||ab['MozNamedAttrMap']),ab[cX(0x1ba)];let al=ab['DOMParser'],am=ab['trustedTypes'],ao=aj['prototype'],ap=N(ao,'cloneNode'),aq=N(ao,'remove'),ar=N(ao,cX(0x1c6)),as=N(ao,'childNodes'),au=N(ao,'parentNode'),av=N(ao,'shadowRoot'),aw=N(ao,'attributes'),ax=ai&&ai[cX(0x1eb)]?N(ai['prototype'],'nodeType'):null,ay=ai&&ai['prototype']?N(ai[cX(0x1eb)],'nodeName'):null,az=ai&&ai['prototype']?N(ai[cX(0x1eb)],'ownerDocument'):null,aA=function(cy){return ax?ax(cy):cy['nodeType'];},aB=function(cy){return ay?ay(cy):cy['nodeName'];};if(typeof ah=='function'){let cy=ad['createElement']('template');cy['content']&&cy['content']['ownerDocument']&&(ad=cy['content']['ownerDocument']);}let aC,aD='',aE,aF=!0x1,aG=0x0,aH=function(){if(aG>0x0)throw k('A\x20configured\x20TRUSTED_TYPES_POLICY\x20callback\x20(createHTML\x20or\x20createScriptURL)\x20must\x20not\x20call\x20DOMPurify.sanitize,\x20as\x20that\x20causes\x20infinite\x20recursion.\x20Do\x20not\x20pass\x20a\x20policy\x20whose\x20callbacks\x20wrap\x20DOMPurify\x20as\x20TRUSTED_TYPES_POLICY;\x20see\x20the\x20\x22DOMPurify\x20and\x20Trusted\x20Types\x22\x20section\x20of\x20the\x20README.');},aI=function(cz){aH(),aG++;try{return aC['createHTML'](cz);}finally{aG--;}},aJ=function(cz){aH(),aG++;try{return aC['createScriptURL'](cz);}finally{aG--;}},aK=function(){return aF||(aE=tt(am,ag),aF=!0x0),aE;},aL=ad,aM=aL['implementation'],aN=aL[cX(0x226)],aO=aL['createDocumentFragment'],aP=aL['getElementsByTagName'],aQ=af[cX(0x208)],aR=nt();ac['isSupported']=typeof ae=='function'&&typeof au=='function'&&aM&&aM['createHTMLDocument']!==void 0x0;let aS=Le,aT=Re,aU=ze,aV=Be,aW=Ve,aX=Ue,aY=We,aZ=Ke,b0=He,b1=null,b2=j({},[...Ee,...De,...Oe,...Ae,...Me]),b3=null,b4=j({},[...Ne,...Pe,...Fe,...Ie]),b5=Object['seal'](x(null,{'tagNameCheck':{'writable':!0x0,'configurable':!0x1,'enumerable':!0x0,'value':null},'attributeNameCheck':{'writable':!0x0,'configurable':!0x1,'enumerable':!0x0,'value':null},'allowCustomizedBuiltInElements':{'writable':!0x0,'configurable':!0x1,'enumerable':!0x0,'value':!0x1}})),b6=null,b7=null,b8=Object['seal'](x(null,{'tagCheck':{'writable':!0x0,'configurable':!0x1,'enumerable':!0x0,'value':null},'attributeCheck':{'writable':!0x0,'configurable':!0x1,'enumerable':!0x0,'value':null}})),b9=!0x0,ba=!0x0,bb=!0x1,bc=!0x0,bd=!0x1,bf=!0x0,bg=!0x1,bh=!0x1,bi=null,bj=null,bk=!0x1,bl=!0x1,bm=!0x1,bo=!0x1,bp=!0x0,bq=!0x1,br='user-content-',bs=!0x0,bu=!0x1,bv={},bw=null,bx=j({},'annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp'[cX(0x1cd)]('.')),by=null,bz=j({},['audio','video','img','source',cX(0x1fe),'track']),bA=null,bB=j({},['alt','class','for','id','label','name','pattern','placeholder','role','summary',cX(0x1c3),'value',cX(0x1d1),'xmlns']),bC='http://www.w3.org/1998/Math/MathML',bD='http://www.w3.org/2000/svg',bE='http://www.w3.org/1999/xhtml',bF=bE,bG=!0x1,bH=null,bI=j({},[bC,bD,bE],me),bJ=y(['mi','mo','mn','ms','mtext']),bK=j({},bJ),bL=y(['annotation-xml']),bM=j({},bL),bN=j({},[cX(0x1c3),cX(0x1d1),'font','a',cX(0x229)]),bO=null,bP=['application/xhtml+xml',cX(0x1e6)],bQ=null,bR=null,bS=ad['createElement']('form'),bT=function(cz){return cz instanceof RegExp||cz instanceof Function;},bU=function(){const cY=cX;let cz=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:{};if(bR&&bR===cz)return;(!cz||typeof cz!=cY(0x22a))&&(cz={}),cz=M(cz),bO=bP['indexOf'](cz['PARSER_MEDIA_TYPE'])===-0x1?'text/html':cz['PARSER_MEDIA_TYPE'],bQ=bO===cY(0x1b6)?me:pe,b1=F(cz,'ALLOWED_TAGS',b2,{'transform':bQ}),b3=F(cz,'ALLOWED_ATTR',b4,{'transform':bQ}),bH=F(cz,'ALLOWED_NAMESPACES',bI,{'transform':me}),bA=F(cz,'ADD_URI_SAFE_ATTR',bB,{'transform':bQ,'base':bB}),by=F(cz,'ADD_DATA_URI_TAGS',bz,{'transform':bQ,'base':bz}),bw=F(cz,'FORBID_CONTENTS',bx,{'transform':bQ}),b6=F(cz,'FORBID_TAGS',M({}),{'transform':bQ}),b7=F(cz,'FORBID_ATTR',M({}),{'transform':bQ}),bv=D(cz,'USE_PROFILES')?cz['USE_PROFILES']&&typeof cz['USE_PROFILES']=='object'?M(cz['USE_PROFILES']):cz['USE_PROFILES']:!0x1,b9=cz['ALLOW_ARIA_ATTR']!==!0x1,ba=cz['ALLOW_DATA_ATTR']!==!0x1,bb=cz['ALLOW_UNKNOWN_PROTOCOLS']||!0x1,bc=cz['ALLOW_SELF_CLOSE_IN_ATTR']!==!0x1,bd=cz['SAFE_FOR_TEMPLATES']||!0x1,bf=cz['SAFE_FOR_XML']!==!0x1,bg=cz['WHOLE_DOCUMENT']||!0x1,bl=cz[cY(0x1fa)]||!0x1,bm=cz['RETURN_DOM_FRAGMENT']||!0x1,bo=cz['RETURN_TRUSTED_TYPE']||!0x1,bk=cz['FORCE_BODY']||!0x1,bp=cz['SANITIZE_DOM']!==!0x1,bq=cz[cY(0x1cb)]||!0x1,bs=cz['KEEP_CONTENT']!==!0x1,bu=cz['IN_PLACE']||!0x1,b0=Te(cz['ALLOWED_URI_REGEXP'])?cz['ALLOWED_URI_REGEXP']:He,bF=typeof cz[cY(0x1d4)]==cY(0x22b)?cz['NAMESPACE']:bE,bK=rt(cz,cY(0x1cf),()=>j({},bJ)),bM=rt(cz,'HTML_INTEGRATION_POINTS',()=>j({},bL));let cA=rt(cz,'CUSTOM_ELEMENT_HANDLING',()=>x(null));if(b5=x(null),D(cA,'tagNameCheck')&&bT(cA[cY(0x1e7)])&&(b5['tagNameCheck']=cA['tagNameCheck']),D(cA,'attributeNameCheck')&&bT(cA[cY(0x1df)])&&(b5[cY(0x1df)]=cA[cY(0x1df)]),D(cA,cY(0x216))&&typeof cA['allowCustomizedBuiltInElements']=='boolean'&&(b5['allowCustomizedBuiltInElements']=cA['allowCustomizedBuiltInElements']),b(b5),bd&&(ba=!0x1),bm&&(bl=!0x0),bv&&(b1=j({},Me),b3=x(null),bv['html']===!0x0&&(j(b1,Ee),j(b3,Ne)),bv['svg']===!0x0&&(j(b1,De),j(b3,Pe),j(b3,Ie)),bv['svgFilters']===!0x0&&(j(b1,Oe),j(b3,Pe),j(b3,Ie)),bv['mathMl']===!0x0&&(j(b1,Ae),j(b3,Fe),j(b3,Ie))),b8['tagCheck']=null,b8['attributeCheck']=null,D(cz,'ADD_TAGS')&&(typeof cz['ADD_TAGS']=='function'?b8['tagCheck']=cz['ADD_TAGS']:fe(cz['ADD_TAGS'])&&(b1===b2&&(b1=M(b1)),j(b1,cz[cY(0x1c7)],bQ))),D(cz,cY(0x1b5))&&(typeof cz['ADD_ATTR']=='function'?b8['attributeCheck']=cz['ADD_ATTR']:fe(cz['ADD_ATTR'])&&(b3===b4&&(b3=M(b3)),j(b3,cz[cY(0x1b5)],bQ))),D(cz,'ADD_FORBID_CONTENTS')&&fe(cz['ADD_FORBID_CONTENTS'])&&(bw===bx&&(bw=M(bw)),j(bw,cz['ADD_FORBID_CONTENTS'],bQ)),bs&&(b1['#text']=!0x0),bg&&j(b1,['html','head','body']),b1['table']&&(j(b1,[cY(0x221)]),delete b6['tbody']),cz['TRUSTED_TYPES_POLICY']){if(typeof cz['TRUSTED_TYPES_POLICY']['createHTML']!='function')throw k(cY(0x1e0));if(typeof cz[cY(0x1ec)]['createScriptURL']!='function')throw k('TRUSTED_TYPES_POLICY\x20configuration\x20option\x20must\x20provide\x20a\x20\x22createScriptURL\x22\x20hook.');let cB=aC;aC=cz['TRUSTED_TYPES_POLICY'];try{aD=aI('');}catch(cC){throw aC=cB,cC;}}else cz['TRUSTED_TYPES_POLICY']===null?(aC=void 0x0,aD=''):(aC===void 0x0&&(aC=aK()),aC&&typeof aD=='string'&&(aD=aI('')));y&&y(cz),bR=cz;},bV=j({},[...De,...Oe,...ke]),bW=j({},[...Ae,...je]),bX=function(cz,cA,cB){const cZ=cX;return cA[cZ(0x1f9)]===bE?cz==='svg':cA['namespaceURI']===bC?cz==='svg'&&(cB==='annotation-xml'||bK[cB]):!!bV[cz];},bY=function(cz,cA,cB){const d0=cX;return cA[d0(0x1f9)]===bE?cz==='math':cA['namespaceURI']===bD?cz==='math'&&bM[cB]:!!bW[cz];},bZ=function(cz,cA,cB){return cA['namespaceURI']===bD&&!bM[cB]||cA['namespaceURI']===bC&&!bK[cB]?!0x1:!bW[cz]&&(bN[cz]||!bV[cz]);},c0=function(cz){const d1=cX;let cA=au(cz);(!cA||!cA['tagName'])&&(cA={'namespaceURI':bF,'tagName':'template'});let cB=pe(cz['tagName']),cC=pe(cA['tagName']);return bH[cz[d1(0x1f9)]]?cz[d1(0x1f9)]===bD?bX(cB,cA,cC):cz['namespaceURI']===bC?bY(cB,cA,cC):cz['namespaceURI']===bE?bZ(cB,cA,cC):!!(bO==='application/xhtml+xml'&&bH[cz['namespaceURI']]):!0x1;},c1=function(cz){ue(ac['removed'],{'element':cz});try{au(cz)['removeChild'](cz);}catch(cA){if(aq(cz),!au(cz))throw k('a\x20node\x20selected\x20for\x20removal\x20could\x20not\x20be\x20detached\x20from\x20its\x20tree\x20and\x20cannot\x20be\x20safely\x20returned;\x20refusing\x20to\x20sanitize\x20in\x20place');}},c2=function(cz,cA,cB){try{cz['removeAttributeNode'](cA);}catch(cC){try{cz['removeAttribute'](cB);}catch(cD){}}},c3=function(cz){const d2=cX;c6(cz);let cA=as(cz);if(cA){let cC=[];w(cA,cD=>{ue(cC,cD);}),w(cC,cD=>{try{aq(cD);}catch(cE){}});}let cB=aw(cz);if(cB)for(let cD=cB[d2(0x228)]-0x1;cD>=0x0;--cD){let cE=cB[cD],cF=cE&&cE['name'];typeof cF==d2(0x22b)&&c2(cz,cE,cF);}},c4=function(cz,cA,cB){const d3=cX;if(!cB)try{cB=cA['getAttributeNode'](cz);}catch(cC){cB=null;}ue(ac['removed'],{'attribute':cB||null,'from':cA});try{cB?cA['removeAttributeNode'](cB):cA[d3(0x21f)](cz);}catch(cD){try{cA['removeAttribute'](cz);}catch(cE){}}if(cz==='is'){if(bl||bm)try{c1(cA);}catch(cF){}else try{cA[d3(0x235)](cz,'');}catch(cG){}}},c5=function(cz){const d4=cX;let cA=aw(cz);if(cA)for(let cB=cA['length']-0x1;cB>=0x0;--cB){let cC=cA[cB],cD=cC&&cC[d4(0x1c1)];typeof cD!=d4(0x22b)||b3[bQ(cD)]||c2(cz,cC,cD);}},c6=function(cz){let cA=[cz];for(;cA['length']>0x0;){let cB=cA['pop']();aA(cB)===P['element']&&c5(cB);let cC=as(cB);if(cC){for(let cD=cC['length']-0x1;cD>=0x0;--cD)cA['push'](cC[cD]);}}},c7=function(cz,cA){return bf?cz==='patchsrc'||cz==='for'&&cA!=='label'&&cA!=='output':!0x1;},c8=function(cz){if(!bf)return;let cA=[cz];for(;cA['length']>0x0;){let cB=cA['pop'](),cC=aA(cB);if(cC===P['processingInstruction']||cC===P['comment']&&O(Je,cB['data'])){try{aq(cB);}catch(cE){}continue;}if(cC===P['element']){let cF=cB,cG=bQ(aB(cB));try{cF['hasAttribute']&&cF['hasAttribute']('patchsrc')&&cF['removeAttribute']('patchsrc'),cF['hasAttribute']&&cF['hasAttribute']('for')&&c7('for',cG)&&cF['removeAttribute']('for');}catch(cH){}}let cD=as(cB);if(cD){for(let cI=cD['length']-0x1;cI>=0x0;--cI)cA['push'](cD[cI]);}}},c9=function(cz){const d5=cX;let cA=null,cB=null;if(bk)cz='<remove></remove>'+cz;else{let cE=he(cz,/^[\r\n\t ]+/);cB=cE&&cE[0x0];}bO==='application/xhtml+xml'&&bF===bE&&(cz='<html\x20xmlns=\x22http://www.w3.org/1999/xhtml\x22><head></head><body>'+cz+'</body></html>');let cC=aC?aI(cz):cz;if(bF===bE)try{cA=new al()['parseFromString'](cC,bO);}catch(cF){}if(!cA||!cA['documentElement']){cA=aM['createDocument'](bF,'template',null);try{cA[d5(0x232)]['innerHTML']=bG?aD:cC;}catch(cG){}}let cD=cA['body']||cA['documentElement'];return cz&&cB&&cD['insertBefore'](ad['createTextNode'](cB),cD['childNodes'][0x0]||null),bF===bE?aP['call'](cA,bg?d5(0x1b9):'body')[0x0]:bg?cA['documentElement']:cD;},ca=function(cz){const d6=cX;let cA=az?az(cz):cz[d6(0x207)];return aN[d6(0x1c8)](cA||cz,cz,ak['SHOW_ELEMENT']|ak['SHOW_COMMENT']|ak['SHOW_TEXT']|ak['SHOW_PROCESSING_INSTRUCTION']|ak['SHOW_CDATA_SECTION'],null);},cb=function(cz){return cz=ge(cz,aS,'\x20'),cz=ge(cz,aT,'\x20'),cz=ge(cz,aU,'\x20'),cz;},cc=function(cz){const d7=cX;var cA;cz[d7(0x1e1)]();let cB=az?az(cz):cz['ownerDocument'],cC=aN[d7(0x1c8)](cB||cz,cz,ak['SHOW_TEXT']|ak['SHOW_COMMENT']|ak['SHOW_CDATA_SECTION']|ak['SHOW_PROCESSING_INSTRUCTION'],null),cD=cC['nextNode']();for(;cD;)cD['data']=cb(cD['data']),cD=cC['nextNode']();let cE=(cA=cz['querySelectorAll'])==null?void 0x0:cA['call'](cz,'template');cE&&w(cE,cF=>{const d8=d7;cf(cF['content'])&&cc(cF[d8(0x211)]);});},cd=function(cz){const d9=cX;let cA=ay?ay(cz):null;return typeof cA!=d9(0x22b)||bQ(cA)!=='form'?!0x1:typeof cz['nodeName']!=d9(0x22b)||typeof cz['textContent']!='string'||typeof cz['removeChild']!='function'||cz['attributes']!==aw(cz)||typeof cz['removeAttribute']!='function'||typeof cz[d9(0x235)]!='function'||typeof cz['namespaceURI']!='string'||typeof cz['insertBefore']!='function'||typeof cz['hasChildNodes']!='function'||cz['nodeType']!==ax(cz)||cz['childNodes']!==as(cz);},cf=function(cz){if(!ax||typeof cz!='object'||!cz)return!0x1;try{return ax(cz)===P['documentFragment'];}catch(cA){return!0x1;}},cg=function(cz){const da=cX;if(!ax||typeof cz!=da(0x22a)||!cz)return!0x1;try{return typeof ax(cz)=='number';}catch(cA){return!0x1;}};function ch(cz,cA,cB){cz['length']!==0x0&&w(cz,cC=>{cC['call'](ac,cA,cB,bR);});}let ci=function(cz,cA){const db=cX;return!!(bf&&cz['hasChildNodes']()&&!cg(cz['firstElementChild'])&&O(qe,cz['textContent'])&&O(qe,cz['innerHTML'])||bf&&cz['namespaceURI']===bE&&Qe[cA]&&(cg(cz['firstElementChild'])||typeof cz[db(0x205)]==db(0x22b)&&O($e[cA],cz[db(0x205)]))||cz['nodeType']===P['processingInstruction']||bf&&cz['nodeType']===P['comment']&&O(Je,cz['data']));},cj=function(cz,cA){return cz instanceof RegExp?O(cz,cA):cz instanceof Function&&!!cz(cA,...[...arguments]['slice'](0x2));},ck=function(cz,cA,cB){const dc=cX;if(!b6[cA]&&cr(cA)&&cj(b5['tagNameCheck'],cA))return!0x1;if(bs&&!bw[cA]){let cC=au(cz),cD=as(cz);if(cD&&cC){let cE=cD['length'];for(let cF=cE-0x1;cF>=0x0;--cF){let cG=cz===cB?ap(cD[cF],!0x0):cD[cF];cC[dc(0x1fb)](cG,ar(cz));}}}return c1(cz),!0x0;},cl=function(cz,cA,cB,cC){return cz['length']===0x0?cA:cA===cB||cA===cC?M(cA):cA;},cm=function(cz,cA){return cz===cA||au(cz)!==null?!0x1:(bu&&c6(cz),!0x0);},co=function(cz,cA){const dd=cX;if(ch(aR['beforeSanitizeElements'],cz,null),cm(cz,cA))return!0x0;if(cd(cz))return c1(cz),!0x0;let cB=bQ(aB(cz));if(b1=cl(aR[dd(0x1c9)],b1,b2,bi),ch(aR['uponSanitizeElement'],cz,{'tagName':cB,'allowedTags':b1}),cm(cz,cA))return!0x0;if(ci(cz,cB))return c1(cz),!0x0;if(b6[cB]||!(b8['tagCheck']instanceof Function&&b8['tagCheck'](cB))&&!b1[cB]){let cC=ck(cz,cB,cA);return cC===!0x1&&ch(aR['afterSanitizeElements'],cz,null),cC;}if(aA(cz)===P[dd(0x1d3)]&&!c0(cz)||(cB==='noscript'||cB===dd(0x1ff)||cB==='noframes')&&O(Ye,cz[dd(0x227)]))return c1(cz),!0x0;if(bd&&cz['nodeType']===P['text']){let cD=cb(cz[dd(0x205)]);cz[dd(0x205)]!==cD&&(ue(ac['removed'],{'element':cz['cloneNode']()}),cz['textContent']=cD);}return ch(aR[dd(0x217)],cz,null),!0x1;},cp=function(cz,cA,cB){const df=cX;if(b7[cA]||c7(cA,cz)||bp&&(cA==='id'||cA==='name')&&(cB in ad||cB in bS))return!0x1;let cC=b3[cA]||b8['attributeCheck']instanceof Function&&b8['attributeCheck'](cA,cz);return ba&&O(aV,cA)||b9&&O(aW,cA)?!0x0:cC?bA[cA]||O(b0,ge(cB,aY,''))||(cA==='src'||cA===df(0x1e4)||cA==='href')&&cz!=='script'&&_e(cB,'data:')===0x0&&by[cz]||bb&&!O(aX,ge(cB,aY,''))?!0x0:!cB:cr(cz)&&cj(b5['tagNameCheck'],cz)&&cj(b5['attributeNameCheck'],cA,cz)||cA==='is'&&b5['allowCustomizedBuiltInElements']&&cj(b5['tagNameCheck'],cB);},cq=j({},['annotation-xml','color-profile','font-face','font-face-format','font-face-name','font-face-src','font-face-uri','missing-glyph']),cr=function(cz){return!cq[pe(cz)]&&O(aZ,cz);},cs=function(cz,cA,cB,cC){const dg=cX;if(aC&&typeof am=='object'&&typeof am['getAttributeType']=='function'&&!cB)switch(am[dg(0x1c2)](cz,cA)){case'TrustedHTML':return aI(cC);case dg(0x1f0):return aJ(cC);}return cC;},cu=function(cz,cA,cB,cC){try{cB?cz['setAttributeNS'](cB,cA,cC):cz['setAttribute'](cA,cC),cd(cz)?c1(cz):le(ac['removed']);}catch(cD){c4(cA,cz);}},cv=function(cz){const dh=cX;ch(aR[dh(0x214)],cz,null);let cA=cz['attributes'];if(!cA||cd(cz))return;b3=cl(aR['uponSanitizeAttribute'],b3,b4,bj);let cB={'attrName':'','attrValue':'','keepAttr':!0x0,'allowedAttributes':b3,'forceKeepAttr':void 0x0},cC=cA['length'],cD=bQ(cz[dh(0x201)]);for(;cC--;){let cE=cA[cC],cF=cE['name'],cG=cE['namespaceURI'],cH=cE['value'],cI=bQ(cF),cJ=cH,cK=cF===dh(0x1e9)?cJ:ve(cJ);if(cB['attrName']=cI,cB['attrValue']=cK,cB['keepAttr']=!0x0,cB['forceKeepAttr']=void 0x0,ch(aR['uponSanitizeAttribute'],cz,cB),cK=cB['attrValue'],bq&&(cI==='id'||cI==='name')&&_e(cK,br)!==0x0&&(c4(cF,cz,cE),cK=br+cK),bf&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,cK)){c4(cF,cz,cE);continue;}if(cI===dh(0x1e8)&&he(cK,'href')){c4(cF,cz,cE);continue;}if(!cB['forceKeepAttr']){if(!cB['keepAttr']){c4(cF,cz,cE);continue;}if(!bc&&O(Xe,cK)){c4(cF,cz,cE);continue;}if(bd&&(cK=cb(cK)),!cp(cD,cI,cK)){c4(cF,cz,cE);continue;}cK=cs(cD,cI,cG,cK),cK!==cJ&&cu(cz,cF,cG,cK);}}ch(aR['afterSanitizeAttributes'],cz,null);},cw=function(cz){const di=cX;let cA=null,cB=ca(cz);for(ch(aR['beforeSanitizeShadowDOM'],cz,null);cA=cB['nextNode']();)if(ch(aR['uponSanitizeShadowNode'],cA,null),co(cA,cz),cv(cA),cf(cA['content'])&&cw(cA[di(0x211)]),aA(cA)===P['element']){let cC=av(cA);cf(cC)&&(cx(cC),cw(cC));}ch(aR['afterSanitizeShadowDOM'],cz,null);},cx=function(cz){let cA=[{'node':cz,'shadow':null}];for(;cA['length']>0x0;){let cB=cA['pop']();if(cB['shadow']){cw(cB['shadow']);continue;}let cC=cB['node'],cD=aA(cC)===P['element'],cE=as(cC);if(cE){for(let cF=cE['length']-0x1;cF>=0x0;--cF)cA['push']({'node':cE[cF],'shadow':null});}if(cD){let cG=ay?ay(cC):null;if(typeof cG=='string'&&bQ(cG)==='template'){let cH=cC['content'];cf(cH)&&cA['push']({'node':cH,'shadow':null});}}if(cD){let cI=av(cC);cf(cI)&&cA['push']({'node':null,'shadow':cI},{'node':cI,'shadow':null});}}};return ac['sanitize']=function(cz){const dj=cX;let cA=arguments['length']>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:{},cB=null,cC=null,cD=null,cE=null;if(bG=!cz,bG&&(cz=dj(0x21c)),typeof cz!='string'&&!cg(cz)&&(cz=we(cz),typeof cz!='string'))throw k('dirty\x20is\x20not\x20a\x20string,\x20aborting');if(!ac['isSupported'])return cz;bh?(b1=bi,b3=bj):bU(cA),(aR['uponSanitizeElement'][dj(0x228)]>0x0||aR['uponSanitizeAttribute']['length']>0x0)&&(b1=M(b1)),aR['uponSanitizeAttribute']['length']>0x0&&(b3=M(b3)),ac['removed']=[];let cF=bu&&typeof cz!='string'&&cg(cz);if(cF){c8(cz);let cI=aB(cz);if(typeof cI=='string'){let cJ=bQ(cI);if(!b1[cJ]||b6[cJ])throw c3(cz),k('root\x20node\x20is\x20forbidden\x20and\x20cannot\x20be\x20sanitized\x20in-place');}if(cd(cz))throw c3(cz),k('root\x20node\x20is\x20clobbered\x20and\x20cannot\x20be\x20sanitized\x20in-place');try{cx(cz);}catch(cK){throw c3(cz),cK;}}else{if(cg(cz))cB=c9('<!---->'),cC=cB['ownerDocument'][dj(0x208)](cz,!0x0),cC['nodeType']===P['element']&&cC[dj(0x201)]==='BODY'||cC['nodeName']==='HTML'?cB=cC:cB['appendChild'](cC),cx(cC);else{if(!bl&&!bd&&!bg&&cz['indexOf']('<')===-0x1)return aC&&bo?aI(cz):cz;if(cB=c9(cz),!cB)return bl?null:bo?aD:'';}}cB&&bk&&c1(cB['firstChild']);let cG=cF?cz:cB;try{let cL=ca(cG);for(;cD=cL['nextNode']();)co(cD,cG),cv(cD),cf(cD['content'])&&cw(cD['content']);}catch(cM){throw cF&&(c3(cz),w(ac['removed'],cN=>{const dk=dj;cN['element']&&c6(cN[dk(0x1d3)]);})),cM;}if(cF)return w(ac['removed'],cN=>{cN['element']&&c6(cN['element']);}),bd&&cc(cz),cz;if(bl){if(bd&&cc(cB),bm){for(cE=aO[dj(0x1c8)](cB['ownerDocument']);cB['firstChild'];)cE['appendChild'](cB['firstChild']);}else cE=cB;return(b3['shadowroot']||b3['shadowrootmode'])&&(cE=aQ['call'](af,cE,!0x0)),cE;}let cH=bg?cB['outerHTML']:cB[dj(0x227)];return bg&&b1['!doctype']&&cB['ownerDocument']&&cB['ownerDocument']['doctype']&&cB['ownerDocument']['doctype']['name']&&O(Ge,cB[dj(0x207)][dj(0x1db)]['name'])&&(cH='<!DOCTYPE\x20'+cB['ownerDocument']['doctype']['name']+'>\x0a'+cH),bd&&(cH=cb(cH)),aC&&bo?aI(cH):cH;},ac['setConfig']=function(){let cz=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:{};bU(cz),bh=!0x0,bi=b1,bj=b3;},ac['clearConfig']=function(){bR=null,bh=!0x1,bi=null,bj=null,aC=aE,aD='';},ac['isValidAttribute']=function(cz,cA,cB){bR||bU({});let cC=bQ(cz),cD=bQ(cA);return cp(cC,cD,cB);},ac['addHook']=function(cz,cA){typeof cA=='function'&&D(aR,cz)&&ue(aR[cz],cA);},ac['removeHook']=function(cz,cA){if(D(aR,cz)){if(cA!==void 0x0){let cB=ce(aR[cz],cA);return cB===-0x1?void 0x0:de(aR[cz],cB,0x1)[0x0];}return le(aR[cz]);}},ac[cX(0x1d0)]=function(cz){D(aR,cz)&&(aR[cz]=[]);},ac['removeAllHooks']=function(){aR=nt();},ac;}var at=it(),ot=ab=>ab[cT(0x1de)](/&/g,'&')['replace'](/"/g,'"')[cT(0x1de)](/</g,'<')['replace'](/>/g,'>'),I={'WHOLE_DOCUMENT':!0x0,'USE_PROFILES':{'html':!0x0,'svg':!0x0,'svgFilters':!0x0,'mathMl':!0x0},'ADD_TAGS':['use'],'ADD_ATTR':['target','rel','download'],'FORBID_TAGS':['script',cT(0x22e),'object',cT(0x1dc),'base','form','link'],'FORBID_ATTR':['srcdoc']},st=ab=>ab||globalThis['document']||null,ct=ab=>/[A-Za-z0-9_-]/['test'](ab),lt=(ab,ac)=>{const dl=cT;let ad=ac+0x1,af=ab[ad]||'';if(!af)return{'value':'','nextIndex':ad};if(af==='\x0d'||af==='\x0a'||af==='\x0c')return af==='\x0d'&&ab[ad+0x1]==='\x0a'&&(ad+=0x1),{'value':'','nextIndex':ad+0x1};let ag='';for(;ad<ab['length']&&ag['length']<0x6&&/[0-9a-f]/i['test'](ab[ad]||'');)ag+=ab[ad],ad+=0x1;if(ag){/\s/[dl(0x22d)](ab[ad]||'')&&(ad+=0x1);let ah=Number[dl(0x1d5)](ag,0x10);return{'value':ah===0x0||ah>0x10ffff?'�':String['fromCodePoint'](ah),'nextIndex':ad};}return{'value':af,'nextIndex':ad+0x1};},ut=ab=>{const dm=cT;let ac='',ad='',af=0x0;for(;af<ab['length'];){let ag=ab[af]||'';if(ad){if(ac+=ag,ag==='\x5c'){ac+=ab[af+0x1]||'',af+=0x2;continue;}ag===ad&&(ad=''),af+=0x1;continue;}if(ag==='/'&&ab[af+0x1]==='*'){let ai=ab['indexOf']('*/',af+0x2);af=ai<0x0?ab[dm(0x228)]:ai+0x2;continue;}if(ag==='\x22'||ag==='\x27'){ad=ag,ac+=ag,af+=0x1;continue;}if(ag==='\x5c'){let aj=lt(ab,af);ac+=aj['value'],af=aj['nextIndex'];continue;}let ah=ag['charCodeAt'](0x0);ac+=ah<0x20&&ag!=='\x09'&&ag!=='\x0a'&&ag!=='\x0d'?'\x20':ag,af+=0x1;}return ac;},dt=/^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|font\/(?:collection|otf|sfnt|ttf|woff2?)|application\/(?:font-sfnt|font-woff|vnd\.ms-fontobject|x-font-opentype|x-font-ttf|x-font-woff));/i,ft=ab=>{const dn=cT;let ac=/^data:image\/svg\+xml(?:;charset=[A-Za-z0-9._-]+)?,([\s\S]*)$/i[dn(0x1f1)](ab);if(!ac||ac[0x1]['length']>0x100000)return!0x1;let ad;try{ad=decodeURIComponent(ac[0x1]);}catch(af){return!0x1;}if(!/^\s*<svg(?:\s|>)/i['test'](ad)||/<\/?(?:script|style|foreignObject|iframe|object|embed|form|link)\b/i['test'](ad)||/<!\s*(?:doctype|entity)\b/i['test'](ad)||/\son[a-z0-9_-]+\s*=/i['test'](ad)||/@import\b/i['test'](ad)||/url\s*\(\s*(?!["']?#)/i['test'](ad))return!0x1;for(let ag of ad['matchAll'](/\s(?:href|xlink:href|src)\s*=\s*(["'])([\s\S]*?)\1/gi)){let ah=mt(ag[0x2]||'');if(!/^#[A-Za-z0-9_.:-]+$/['test'](ah)&&!dt['test'](ah))return!0x1;}return!0x0;},pt=ab=>{const dp=cT;let ac='';for(let ad of ab){let af=ad[dp(0x1f2)](0x0);af<=0x20||af>=0x7f&&af<=0x9f||(ac+=ad);}return ac['trim']();},mt=pt,ht=/^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|audio\/[a-z0-9.+-]+|video\/[a-z0-9.+-]+|text\/vtt)(?:;[^,]*)?,/i,L=ab=>{const dq=cT;let ac=pt(ab);return ac?ac[dq(0x1dd)]('#')||/^blob:/i['test'](ac)?!0x0:ht['test'](ac):!0x1;},R=(ab,ac,ad={})=>{const dr=cT;if(!ab['hasAttribute'](ac))return;let af=pt(ab['getAttribute'](ac)||'');(ad['fragmentOnly']?/^#[A-Za-z0-9_.:-]+$/['test'](af):L(af))?ab[dr(0x235)](ac,af):ab['removeAttribute'](ac);},z=ab=>{const ds=cT;let ac=ab[ds(0x1d2)](),ad=ac[0x0];return(ad==='\x22'||ad==='\x27')&&ac[ac['length']-0x1]===ad&&(ac=ac['slice'](0x1,-0x1)[ds(0x1d2)]()),pt(ac);},gt=ab=>{const du=cT;let ac=z(ab);return ac?ac[du(0x1dd)]('#')||/^blob:/i['test'](ac)?!0x0:dt['test'](ac)||ft(ac):!0x1;},B=(ab,ac)=>{let ad='';for(let af=ac;af<ab['length'];af+=0x1){let ag=ab[af]||'';if(ad){ag==='\x5c'?af+=0x1:ag===ad&&(ad='');continue;}if(ag==='\x22'||ag==='\x27')ad=ag;else{if(ag===')')return af;}}return-0x1;},V=ab=>{const dv=cT;let ac=!0x1,ad=!0x1,af='',ag=0x0;for(;ag<ab['length'];){let ah=ab[ag]||'';if(af){if(ah==='\x5c'){ag+=0x2;continue;}ah===af&&(af=''),ag+=0x1;continue;}if(ah==='/'&&ab[ag+0x1]==='*'){let ai=ab[dv(0x215)]('*/',ag+0x2);ag=ai<0x0?ab['length']:ai+0x2;continue;}if(ah==='\x22'||ah==='\x27'){af=ah,ag+=0x1;continue;}if(ah==='\x5c'){ag+=0x2;continue;}if(ah==='@'&&ab['slice'](ag+0x1,ag+0x7)['toLowerCase']()===dv(0x1f4)){let aj=ab[ag+0x7]||'';(!aj||!ct(aj))&&(ac=!0x0);}if(ab['slice'](ag,ag+0x3)['toLowerCase']()==='url'&&!ct(ab[ag-0x1]||'')){let ak=ag+0x3;for(;/\s/['test'](ab[ak]||'');)ak+=0x1;ab[ak]==='('&&(ad=!0x0);}ag+=0x1;}return{'hasImport':ac,'hasUrl':ad};},_t=ab=>{const dw=cT;let ac=V(ut(ab)),ad=V(ab);if(ac['hasImport']||ac['hasUrl']&&!ad['hasUrl'])return'';if(!ad['hasUrl'])return ab;let af='',ag='',ah=0x0;for(;ah<ab['length'];){let ai=ab[ah]||'';if(ag){if(af+=ai,ai==='\x5c'){af+=ab[ah+0x1]||'',ah+=0x2;continue;}ai===ag&&(ag=''),ah+=0x1;continue;}if(ai==='\x22'||ai==='\x27'){ag=ai,af+=ai,ah+=0x1;continue;}if(ai==='/'&&ab[ah+0x1]==='*'){let aj=ab[dw(0x215)]('*/',ah+0x2);if(aj<0x0){af+=ab['slice'](ah);break;}af+=ab['slice'](ah,aj+0x2),ah=aj+0x2;continue;}if(ai==='\x5c'){af+=ai,af+=ab[ah+0x1]||'',ah+=0x2;continue;}if(ab['slice'](ah,ah+0x3)[dw(0x1d7)]()==='url'&&!ct(ab[ah-0x1]||'')){let ak=ah+0x3;for(;/\s/['test'](ab[ak]||'');)ak+=0x1;if(ab[ak]==='('){let al=B(ab,ak+0x1);if(al<0x0)return'';let am=ab['slice'](ak+0x1,al);af+=gt(am)?ab[dw(0x1d6)](ah,al+0x1):'none',ah=al+0x1;continue;}}af+=ai,ah+=0x1;}return af;},H=ab=>{const dx=cT;let ac=ab['defaultView'];if(!ac)return null;let ad=at(ac);return ad[dx(0x20b)]?(ad['addHook'](dx(0x217),af=>{const dy=dx;var ag;let ah=af;if(((ag=ah[dy(0x200)])==null?void 0x0:ag['toLowerCase']())!=='style')return;let ai=_t(ah['textContent']||'');ai?ah['textContent']=ai:ah['remove']();}),ad['addHook'](dx(0x1bc),af=>{const dz=dx;var ag;let ah=af,ai=(ag=ah['localName'])==null?void 0x0:ag[dz(0x1d7)]();if(ai==='a'&&(ah[dz(0x22f)](dz(0x210))||'')['trim']()[dz(0x1d7)]()==='_blank'&&ah['setAttribute'](dz(0x1c4),'noopener\x20noreferrer'),(ai==='a'||ai==='area')&&ah[dz(0x21f)]('ping'),ah['hasAttribute']('srcset')&&ah['removeAttribute']('srcset'),['img','audio',dz(0x1e5),dz(0x1da),'track','input']['includes'](ai||'')&&R(ah,'src'),ai==='video'&&R(ah,'poster'),ah['hasAttribute']('background')&&R(ah,'background'),ah['namespaceURI']==='http://www.w3.org/2000/svg'&&ai!=='a'){let aj=ai==='use'||ai==='mpath';R(ah,dz(0x1be),{'fragmentOnly':aj}),R(ah,'xlink:href',{'fragmentOnly':aj});}if(ah['hasAttribute'](dz(0x1d1))){let ak=_t(ah['getAttribute']('style')||'');ak?ah['setAttribute']('style',ak):ah['removeAttribute']('style');}}),ad):null;},vt=['<meta\x20charset=\x22utf-8\x22\x20/>','<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,initial-scale=1\x22\x20/>']['join']('\x0a\x20\x20'),yt=(ab,ac)=>{const dA=cT;let ad=st(ac),af=ad?H(ad):null;return af?'<!doctype\x20html>\x0a'+String(af['sanitize'](ab,I))[dA(0x1de)](dA(0x234),'<head>\x0a\x20\x20'+vt):'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22><head><meta\x20charset=\x22utf-8\x22\x20/></head><body></body></html>';},bt=ab=>{let ac=ab['createElement']('html');ac['lang']='en';let ad=ab['createElement']('head'),af=ab['createElement']('meta');return af['setAttribute']('charset','utf-8'),ad['append'](af),ac['append'](ad,ab['createElement']('body')),ac;},xt=ab=>{const dB=cT;let ac=ab['querySelector'](':scope\x20>\x20head');if(!ac)return ab;if(!ac['querySelector'](dB(0x1ca))){let ad=ab['ownerDocument']['createElement']('meta');ad['setAttribute']('charset','utf-8'),ac['prepend'](ad);}if(!ac['querySelector'](dB(0x1b7))){let af=ab['ownerDocument'][dB(0x1ee)]('meta');af[dB(0x235)](dB(0x1c1),dB(0x1d9)),af['setAttribute']('content','width=device-width,initial-scale=1');let ag=ac['querySelector']('meta[charset]');ag==null||ag['after'](af);}return ab;},U=(ab,ac)=>{const dC=cT;let ad=st(ac);if(!ad)throw Error('A\x20browser\x20document\x20is\x20required\x20to\x20build\x20printable\x20DOM.');let af=H(ad);if(!af)return bt(ad);let ag=af['sanitize'](ab,Y(Y({},I),{},{'RETURN_DOM':!0x0}));return!ag||ag['nodeType']!==0x1||ag['localName'][dC(0x1d7)]()!=='html'?bt(ad):xt(ag);},W='\x0a\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20html,\x20body\x20{\x20margin:\x200;\x20min-height:\x20100%;\x20background:\x20#f2f4f7;\x20color:\x20#172033;\x20font-family:\x20Aptos,\x20\x22Segoe\x20UI\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x20print-color-adjust:\x20exact;\x20-webkit-print-color-adjust:\x20exact;\x20}\x0a\x20\x20body\x20{\x20padding:\x2024px;\x20}\x0a\x20\x20.viewer-export-shell\x20{\x20position:\x20relative;\x20min-height:\x20calc(100vh\x20-\x2048px);\x20overflow:\x20visible;\x20background:\x20#f2f4f7;\x20}\x0a\x20\x20.viewer-export-content\x20{\x20position:\x20relative;\x20z-index:\x201;\x20contain:\x20none;\x20width:\x20100%;\x20min-height:\x20100%;\x20overflow:\x20visible;\x20}\x0a\x20\x20.viewer-export-watermark\x20{\x20position:\x20absolute;\x20inset:\x200;\x20pointer-events:\x20none;\x20z-index:\x2020;\x20background-repeat:\x20repeat;\x20print-color-adjust:\x20exact;\x20-webkit-print-color-adjust:\x20exact;\x20}\x0a\x20\x20.viewer-export-content\x20.file-render,\x0a\x20\x20.viewer-export-content\x20.file-viewer,\x0a\x20\x20.viewer-export-content\x20.viewer-stage,\x0a\x20\x20.viewer-export-content\x20.content,\x0a\x20\x20.viewer-export-content\x20.pdf-shell,\x0a\x20\x20.viewer-export-content\x20.pdf-content,\x0a\x20\x20.viewer-export-content\x20.pdf-viewport,\x0a\x20\x20.viewer-export-content\x20.pdf-wrapper,\x0a\x20\x20.viewer-export-content\x20.docx-fit-viewer,\x0a\x20\x20.viewer-export-content\x20.docx-wrapper,\x0a\x20\x20.viewer-export-content\x20.docx-canvas-wrapper,\x0a\x20\x20.viewer-export-content\x20.msdoc-stage,\x0a\x20\x20.viewer-export-content\x20.msdoc-paged-view,\x0a\x20\x20.viewer-export-content\x20.code-viewer,\x0a\x20\x20.viewer-export-content\x20.markdown-viewer,\x0a\x20\x20.viewer-export-content\x20.email-shell,\x0a\x20\x20.viewer-export-content\x20.archive-shell,\x0a\x20\x20.viewer-export-content\x20.eda-shell,\x0a\x20\x20.viewer-export-content\x20.ebook-shell,\x0a\x20\x20.viewer-export-content\x20.umd-shell,\x0a\x20\x20.viewer-export-content\x20.drawing-shell,\x0a\x20\x20.viewer-export-content\x20.audio-shell,\x0a\x20\x20.viewer-export-content\x20.cad-shell,\x0a\x20\x20.viewer-export-content\x20.cad-body,\x0a\x20\x20.viewer-export-content\x20.cad-canvas-wrap,\x0a\x20\x20.viewer-export-content\x20.dwg-preview-frame\x20{\x0a\x20\x20\x20\x20position:\x20relative\x20!important;\x0a\x20\x20\x20\x20inset:\x20auto\x20!important;\x0a\x20\x20\x20\x20contain:\x20none\x20!important;\x0a\x20\x20\x20\x20width:\x20100%\x20!important;\x0a\x20\x20\x20\x20height:\x20auto\x20!important;\x0a\x20\x20\x20\x20min-height:\x200\x20!important;\x0a\x20\x20\x20\x20max-height:\x20none\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-wrapper\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20padding:\x200\x20!important;\x0a\x20\x20\x20\x20background:\x20transparent\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-canvas-wrapper\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20padding:\x200\x20!important;\x0a\x20\x20\x20\x20background:\x20transparent\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-print-document\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20width:\x20fit-content\x20!important;\x0a\x20\x20\x20\x20max-width:\x20100%\x20!important;\x0a\x20\x20\x20\x20height:\x20auto\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20margin:\x200\x20auto\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-page-frame\x20{\x0a\x20\x20\x20\x20position:\x20relative\x20!important;\x0a\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20fit-content)\x20!important;\x0a\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x20auto)\x20!important;\x0a\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x200)\x20!important;\x0a\x20\x20\x20\x20max-width:\x20100%\x20!important;\x0a\x20\x20\x20\x20margin:\x200\x20auto\x2018px\x20!important;\x0a\x20\x20\x20\x20overflow:\x20hidden\x20!important;\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-canvas-sheet\x20{\x0a\x20\x20\x20\x20position:\x20relative\x20!important;\x0a\x20\x20\x20\x20contain:\x20none\x20!important;\x0a\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20794px)\x20!important;\x0a\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20max-width:\x20100%\x20!important;\x0a\x20\x20\x20\x20margin:\x200\x20auto\x2018px\x20!important;\x0a\x20\x20\x20\x20overflow:\x20hidden\x20!important;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-canvas-sheet\x20>\x20img\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20width:\x20100%\x20!important;\x0a\x20\x20\x20\x20height:\x20100%\x20!important;\x0a\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20object-fit:\x20fill;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.msdoc-page\x20{\x0a\x20\x20\x20\x20position:\x20relative\x20!important;\x0a\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20794px)\x20!important;\x0a\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20max-width:\x20100%\x20!important;\x0a\x20\x20\x20\x20height:\x20auto\x20!important;\x0a\x20\x20\x20\x20margin:\x200\x20auto\x2018px\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-page-frame:last-child,\x0a\x20\x20.viewer-export-content\x20.docx-canvas-sheet:last-child,\x0a\x20\x20.viewer-export-content\x20.msdoc-page:last-child\x20{\x0a\x20\x20\x20\x20break-after:\x20auto;\x0a\x20\x20\x20\x20page-break-after:\x20auto;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.docx-page-frame\x20>\x20section.docx\x20{\x0a\x20\x20\x20\x20position:\x20relative\x20!important;\x0a\x20\x20\x20\x20top:\x20auto\x20!important;\x0a\x20\x20\x20\x20left:\x20auto\x20!important;\x0a\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20auto)\x20!important;\x0a\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x20auto)\x20!important;\x0a\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20margin:\x200\x20auto\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20transform:\x20none\x20!important;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.msdoc-stage\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20padding:\x200\x20!important;\x0a\x20\x20\x20\x20background:\x20transparent\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.msdoc-paged-view\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20gap:\x200\x20!important;\x0a\x20\x20\x20\x20padding:\x200\x20!important;\x0a\x20\x20\x20\x20background:\x20transparent\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.msdoc-page\x20>\x20.msdoc-root\x20{\x0a\x20\x20\x20\x20margin:\x200\x20auto\x20!important;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-toolbar,\x0a\x20\x20.viewer-export-content\x20.pdf-nav-pane,\x0a\x20\x20.viewer-export-content\x20.viewer-actions,\x0a\x20\x20.viewer-export-content\x20.code-toolbar,\x0a\x20\x20.viewer-export-content\x20.umd-toolbar,\x0a\x20\x20.viewer-export-content\x20.drawing-toolbar,\x0a\x20\x20.viewer-export-content\x20.cad-toolbar\x20{\x0a\x20\x20\x20\x20display:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-content,\x0a\x20\x20.viewer-export-content\x20.pdf-shell--nav-hidden\x20.pdf-content,\x0a\x20\x20.viewer-export-content\x20.cad-body.without-layers\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20grid-template-columns:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdfViewer\x20{\x20padding:\x200\x20!important;\x20}\x0a\x20\x20.viewer-export-content\x20.pdfViewer\x20.page\x20{\x0a\x20\x20\x20\x20margin:\x200\x20auto\x2016px\x20!important;\x0a\x20\x20\x20\x20border:\x200\x20!important;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdfViewer\x20.page:last-child\x20{\x0a\x20\x20\x20\x20break-after:\x20auto;\x0a\x20\x20\x20\x20page-break-after:\x20auto;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-export-document\x20{\x0a\x20\x20\x20\x20display:\x20grid;\x0a\x20\x20\x20\x20justify-items:\x20center;\x0a\x20\x20\x20\x20gap:\x2018px;\x0a\x20\x20\x20\x20padding:\x204px\x200;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-export-page\x20{\x0a\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20auto);\x0a\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x20auto);\x0a\x20\x20\x20\x20max-width:\x20100%;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20background:\x20#ffffff;\x0a\x20\x20\x20\x20box-shadow:\x200\x2012px\x2032px\x20rgba(15,\x2023,\x2042,\x200.12);\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-export-page:last-child\x20{\x0a\x20\x20\x20\x20break-after:\x20auto;\x0a\x20\x20\x20\x20page-break-after:\x20auto;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pdf-export-page\x20img\x20{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20height:\x20100%;\x0a\x20\x20\x20\x20object-fit:\x20contain;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pptx-wrapper\x20{\x0a\x20\x20\x20\x20width:\x20100%\x20!important;\x0a\x20\x20\x20\x20max-width:\x20100%\x20!important;\x0a\x20\x20\x20\x20height:\x20auto\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20transform:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pptx-wrapper\x20.slide\x20{\x0a\x20\x20\x20\x20margin:\x200\x20auto\x2018px\x20!important;\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.pptx-wrapper\x20.slide:last-child\x20{\x0a\x20\x20\x20\x20break-after:\x20auto;\x0a\x20\x20\x20\x20page-break-after:\x20auto;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.ofd-stage\x20{\x0a\x20\x20\x20\x20padding:\x200\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.ofd-page,\x0a\x20\x20.viewer-export-content\x20.drawing-svg,\x0a\x20\x20.viewer-export-content\x20.cad-canvas-wrap,\x0a\x20\x20.viewer-export-content\x20.dwg-preview-frame\x20{\x0a\x20\x20\x20\x20break-inside:\x20avoid;\x0a\x20\x20\x20\x20page-break-inside:\x20avoid;\x0a\x20\x20\x20\x20break-after:\x20page;\x0a\x20\x20\x20\x20page-break-after:\x20always;\x0a\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.ofd-page:last-child,\x0a\x20\x20.viewer-export-content\x20.drawing-svg:last-child,\x0a\x20\x20.viewer-export-content\x20.cad-canvas-wrap:last-child,\x0a\x20\x20.viewer-export-content\x20.dwg-preview-frame:last-child\x20{\x0a\x20\x20\x20\x20break-after:\x20auto;\x0a\x20\x20\x20\x20page-break-after:\x20auto;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.code-area\x20{\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20white-space:\x20pre-wrap\x20!important;\x0a\x20\x20\x20\x20word-break:\x20break-word\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.umd-body,\x0a\x20\x20.viewer-export-content\x20.umd-stage-wrap,\x0a\x20\x20.viewer-export-content\x20.umd-stage\x20{\x0a\x20\x20\x20\x20display:\x20block\x20!important;\x0a\x20\x20\x20\x20height:\x20auto\x20!important;\x0a\x20\x20\x20\x20max-height:\x20none\x20!important;\x0a\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20}\x0a\x20\x20.viewer-export-content\x20.umd-toc\x20{\x0a\x20\x20\x20\x20display:\x20none\x20!important;\x0a\x20\x20}\x0a\x20\x20img,\x20canvas,\x20svg,\x20video\x20{\x20max-width:\x20100%;\x20}\x0a\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20@page\x20{\x20margin:\x2012mm;\x20}\x0a\x20\x20\x20\x20html,\x20body\x20{\x20min-height:\x20auto;\x20background:\x20#ffffff;\x20}\x0a\x20\x20\x20\x20body\x20{\x20padding:\x200;\x20}\x0a\x20\x20\x20\x20.viewer-export-shell,\x0a\x20\x20\x20\x20.viewer-export-content\x20{\x0a\x20\x20\x20\x20\x20\x20min-height:\x200;\x0a\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20background:\x20#ffffff;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.pdf-export-document\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.pdf-export-page\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20auto)\x20!important;\x0a\x20\x20\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x20auto)\x20!important;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20none;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.docx-page-frame\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20auto)\x20!important;\x0a\x20\x20\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x20auto)\x20!important;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x200)\x20!important;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20!important;\x0a\x20\x20\x20\x20\x20\x20overflow:\x20hidden\x20!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.docx-canvas-sheet\x20{\x0a\x20\x20\x20\x20\x20\x20contain:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20794px)\x20!important;\x0a\x20\x20\x20\x20\x20\x20height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20!important;\x0a\x20\x20\x20\x20\x20\x20overflow:\x20hidden\x20!important;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.msdoc-page\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20794px)\x20!important;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20var(--viewer-print-page-height,\x201123px)\x20!important;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20!important;\x0a\x20\x20\x20\x20\x20\x20overflow:\x20visible\x20!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.docx-page-frame\x20>\x20section.docx,\x0a\x20\x20\x20\x20.viewer-export-content\x20.msdoc-page\x20>\x20.msdoc-root\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20var(--viewer-print-page-width,\x20100%)\x20!important;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20none\x20!important;\x0a\x20\x20\x20\x20\x20\x20border:\x200\x20!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.viewer-export-content\x20.pptx-wrapper\x20.slide,\x0a\x20\x20\x20\x20.viewer-export-content\x20.ofd-page,\x0a\x20\x20\x20\x20.viewer-export-content\x20.drawing-svg,\x0a\x20\x20\x20\x20.viewer-export-content\x20.cad-canvas-wrap,\x0a\x20\x20\x20\x20.viewer-export-content\x20.dwg-preview-frame\x20{\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20none\x20!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a',G=ab=>{let ac=st(ab);return ac?Array['from'](ac['querySelectorAll']('style,\x20link[rel=\x22stylesheet\x22]'))['map'](ad=>{const dD=X;var af;if(ad['localName']['toLowerCase']()==='style')return'<style>'+(ad[dD(0x205)]||'')+'</style>';let ag=ad;try{let ah=Array['from'](((af=ag['sheet'])==null?void 0x0:af[dD(0x1e3)])||[])[dD(0x1ce)](ai=>ai['cssText'])['join']('\x0a');return ah?'<style\x20data-viewer-inlined-stylesheet>'+ah+'</style>':'';}catch(ai){return'';}})['filter'](Boolean)['join']('\x0a'):'';},St=({contentHtml:ab,includeDocumentStyles:ac=!0x0,printStyle:ad='',title:af,watermarkInlineStyle:ag='',mask:ah=null,documentRef:ai})=>{const dE=cT;var aj,ak;let al=ag?'<div\x20class=\x22viewer-export-watermark\x22\x20style=\x22'+ot(ag)+'\x22></div>':'',am=a7(ah),an=am?Y(Y({},am),{},{'regions':(aj=am[dE(0x202)])==null?void 0x0:aj['filter'](au=>au[dE(0x233)]===void 0x0),'stamps':(ak=am['stamps'])==null?void 0x0:ak['filter'](au=>au[dE(0x233)]===void 0x0)}):null,ao=a9(an),ap=a8(ab,am),aq=ac?G(ai):'',ar=ad?'<style\x20data-viewer-print-style>'+ad+dE(0x1fc):'',as=am?dE(0x1ea)+aa+'</style>':'';return'<!doctype\x20html>\x0a<html\x20lang=\x22zh-CN\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22\x20/>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,initial-scale=1\x22\x20/>\x0a\x20\x20<title>'+ot(af)+'</title>\x0a\x20\x20'+aq+dE(0x1ed)+W+dE(0x223)+as+'\x0a</head>\x0a<body>\x0a\x20\x20<main\x20class=\x22viewer-export-shell\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22viewer-export-content\x22>'+ap+'</div>\x0a\x20\x20\x20\x20'+ao+'\x0a\x20\x20\x20\x20'+al+'\x0a\x20\x20</main>\x0a\x20\x20'+ar+'\x0a</body>\x0a</html>';},K=ab=>yt(St(ab),ab[cT(0x209)]),q=ab=>U(St(ab),ab['documentRef']),Ct=(function(){var ab=t(function*({source:ac,mode:ad='export',title:af,adapter:ag=null,watermarkInlineStyle:ah='',mask:ai=null}){const dF=X;let aj={'mode':ad,'title':af},ak=ag==null?void 0x0:ag['toHtml'],al=a7(ai);if(ak){yield a2(ac,ag);let ao=yield a6(yield ak(aj)),ap=yield i(ag,aj);return{'contentHtml':ao,'includeDocumentStyles':ag['includeDocumentStyles']!==!0x1,'printStyle':ap,'title':af,'watermarkInlineStyle':ah,'mask':al,'documentRef':ac[dF(0x207)]};}yield a2(ac,ag);let am=ac[dF(0x213)](!0x0);am['querySelectorAll']('.viewer-watermark')['forEach'](aq=>aq[dF(0x20c)]()),a4(ac,am);let an=yield i(ag,aj);return{'contentHtml':yield a6(am['innerHTML']),'printStyle':an,'title':af,'watermarkInlineStyle':ah,'mask':al,'documentRef':ac['ownerDocument']};});return function(ac){const dG=X;return ab[dG(0x1e2)](this,arguments);};}()),J=(function(){var ab=t(function*(ac){return K(yield Ct(ac));});return function(ac){return ab['apply'](this,arguments);};}()),wt=(function(){var ab=t(function*(ac){return q(yield Ct(ac));});return function(ac){return ab['apply'](this,arguments);};}());export{q as buildExportDomDocument,K as buildExportHtmlDocument,wt as buildFileViewerRenderedDomDocument,J as buildFileViewerRenderedHtmlDocument,G as collectDocumentStyles,a6 as inlineFileViewerBlobUrlsInHtml,a2 as prepareFileViewerRenderedContentForSnapshot,a4 as replaceFileViewerCanvasWithImages,i as resolveFileViewerPrintStyle,U as sanitizeFileViewerExportDocumentDom,yt as sanitizeFileViewerExportDocumentHtml,Z as triggerFileViewerBlobDownload,a3 as triggerFileViewerUrlDownload,a5 as waitForFileViewerImages,a0 as waitForFileViewerNextPaint,a1 as waitForFileViewerPrintWindowReady};
|
|
1
|
+
import { r as e, t } from "./objectSpread2.js";
|
|
2
|
+
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u } from "./export.js";
|
|
3
|
+
import { i as d, n as f, r as p, t as m } from "./printMask.js";
|
|
4
|
+
//#region ../../../node_modules/.pnpm/dompurify@3.4.15/node_modules/dompurify/dist/purify.es.mjs
|
|
5
|
+
function h(e, t) {
|
|
6
|
+
(t == null || t > e.length) && (t = e.length);
|
|
7
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
function g(e) {
|
|
11
|
+
if (Array.isArray(e)) return e;
|
|
12
|
+
}
|
|
13
|
+
function _(e, t) {
|
|
14
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
15
|
+
if (n != null) {
|
|
16
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
17
|
+
try {
|
|
18
|
+
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
19
|
+
} catch (e) {
|
|
20
|
+
l = !0, i = e;
|
|
21
|
+
} finally {
|
|
22
|
+
try {
|
|
23
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
24
|
+
} finally {
|
|
25
|
+
if (l) throw i;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return s;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function ee() {
|
|
32
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
|
+
}
|
|
34
|
+
function te(e, t) {
|
|
35
|
+
return g(e) || _(e, t) || v(e, t) || ee();
|
|
36
|
+
}
|
|
37
|
+
function v(e, t) {
|
|
38
|
+
if (e) {
|
|
39
|
+
if (typeof e == "string") return h(e, t);
|
|
40
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
41
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? h(e, t) : void 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var ne = Object.entries, y = Object.setPrototypeOf, re = Object.isFrozen, b = Object.getPrototypeOf, ie = Object.getOwnPropertyDescriptor, x = Object.freeze, S = Object.seal, C = Object.create, w = typeof Reflect < "u" && Reflect, T = w.apply, E = w.construct;
|
|
45
|
+
x || (x = function(e) {
|
|
46
|
+
return e;
|
|
47
|
+
}), S || (S = function(e) {
|
|
48
|
+
return e;
|
|
49
|
+
}), T || (T = function(e, t) {
|
|
50
|
+
var n = [...arguments].slice(2);
|
|
51
|
+
return e.apply(t, n);
|
|
52
|
+
}), E || (E = function(e) {
|
|
53
|
+
return new e(...[...arguments].slice(1));
|
|
54
|
+
});
|
|
55
|
+
var D = N(Array.prototype.forEach), ae = N(Array.prototype.lastIndexOf), oe = N(Array.prototype.pop), se = N(Array.prototype.push), ce = N(Array.prototype.splice), O = Array.isArray, le = N(String.prototype.toLowerCase), ue = N(String.prototype.toString), de = N(String.prototype.match), fe = N(String.prototype.replace), pe = N(String.prototype.indexOf), me = N(String.prototype.trim), he = N(Number.prototype.toString), ge = N(Boolean.prototype.toString), _e = typeof BigInt > "u" ? null : N(BigInt.prototype.toString), k = typeof Symbol > "u" ? null : N(Symbol.prototype.toString), A = N(Object.prototype.hasOwnProperty), ve = N(Object.prototype.toString), j = N(RegExp.prototype.test), M = ye(TypeError);
|
|
56
|
+
function N(e) {
|
|
57
|
+
return function(t) {
|
|
58
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
59
|
+
var n = [...arguments].slice(1);
|
|
60
|
+
return T(e, t, n);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ye(e) {
|
|
64
|
+
return function() {
|
|
65
|
+
return E(e, [...arguments]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function P(e, t) {
|
|
69
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
|
|
70
|
+
if (y && y(e, null), !O(t)) return e;
|
|
71
|
+
let r = t.length;
|
|
72
|
+
for (; r--;) {
|
|
73
|
+
let i = t[r];
|
|
74
|
+
if (typeof i == "string") {
|
|
75
|
+
let e = n(i);
|
|
76
|
+
e !== i && (re(t) || (t[r] = e), i = e);
|
|
77
|
+
}
|
|
78
|
+
e[i] = !0;
|
|
79
|
+
}
|
|
80
|
+
return e;
|
|
81
|
+
}
|
|
82
|
+
function be(e) {
|
|
83
|
+
for (let t = 0; t < e.length; t++) A(e, t) || (e[t] = null);
|
|
84
|
+
return e;
|
|
85
|
+
}
|
|
86
|
+
function F(e) {
|
|
87
|
+
let t = C(null);
|
|
88
|
+
for (let r of ne(e)) {
|
|
89
|
+
var n = te(r, 2);
|
|
90
|
+
let i = n[0], a = n[1];
|
|
91
|
+
A(e, i) && (t[i] = O(a) ? be(a) : a && typeof a == "object" && a.constructor === Object ? F(a) : a);
|
|
92
|
+
}
|
|
93
|
+
return t;
|
|
94
|
+
}
|
|
95
|
+
function xe(e) {
|
|
96
|
+
switch (typeof e) {
|
|
97
|
+
case "string": return e;
|
|
98
|
+
case "number": return he(e);
|
|
99
|
+
case "boolean": return ge(e);
|
|
100
|
+
case "bigint": return _e ? _e(e) : "0";
|
|
101
|
+
case "symbol": return k ? k(e) : "Symbol()";
|
|
102
|
+
case "undefined": return ve(e);
|
|
103
|
+
case "function":
|
|
104
|
+
case "object": {
|
|
105
|
+
if (e === null) return ve(e);
|
|
106
|
+
let t = e, n = I(t, "toString");
|
|
107
|
+
if (typeof n == "function") {
|
|
108
|
+
let e = n(t);
|
|
109
|
+
return typeof e == "string" ? e : ve(e);
|
|
110
|
+
}
|
|
111
|
+
return ve(e);
|
|
112
|
+
}
|
|
113
|
+
default: return ve(e);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function I(e, t) {
|
|
117
|
+
for (; e !== null;) {
|
|
118
|
+
let n = ie(e, t);
|
|
119
|
+
if (n) {
|
|
120
|
+
if (n.get) return N(n.get);
|
|
121
|
+
if (typeof n.value == "function") return N(n.value);
|
|
122
|
+
}
|
|
123
|
+
e = b(e);
|
|
124
|
+
}
|
|
125
|
+
function n() {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
return n;
|
|
129
|
+
}
|
|
130
|
+
function Se(e) {
|
|
131
|
+
try {
|
|
132
|
+
return j(e, ""), !0;
|
|
133
|
+
} catch (e) {
|
|
134
|
+
return !1;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
var Ce = x(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), we = x(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Te = x([
|
|
138
|
+
"feBlend",
|
|
139
|
+
"feColorMatrix",
|
|
140
|
+
"feComponentTransfer",
|
|
141
|
+
"feComposite",
|
|
142
|
+
"feConvolveMatrix",
|
|
143
|
+
"feDiffuseLighting",
|
|
144
|
+
"feDisplacementMap",
|
|
145
|
+
"feDistantLight",
|
|
146
|
+
"feDropShadow",
|
|
147
|
+
"feFlood",
|
|
148
|
+
"feFuncA",
|
|
149
|
+
"feFuncB",
|
|
150
|
+
"feFuncG",
|
|
151
|
+
"feFuncR",
|
|
152
|
+
"feGaussianBlur",
|
|
153
|
+
"feImage",
|
|
154
|
+
"feMerge",
|
|
155
|
+
"feMergeNode",
|
|
156
|
+
"feMorphology",
|
|
157
|
+
"feOffset",
|
|
158
|
+
"fePointLight",
|
|
159
|
+
"feSpecularLighting",
|
|
160
|
+
"feSpotLight",
|
|
161
|
+
"feTile",
|
|
162
|
+
"feTurbulence"
|
|
163
|
+
]), Ee = x([
|
|
164
|
+
"animate",
|
|
165
|
+
"color-profile",
|
|
166
|
+
"cursor",
|
|
167
|
+
"discard",
|
|
168
|
+
"font-face",
|
|
169
|
+
"font-face-format",
|
|
170
|
+
"font-face-name",
|
|
171
|
+
"font-face-src",
|
|
172
|
+
"font-face-uri",
|
|
173
|
+
"foreignobject",
|
|
174
|
+
"hatch",
|
|
175
|
+
"hatchpath",
|
|
176
|
+
"mesh",
|
|
177
|
+
"meshgradient",
|
|
178
|
+
"meshpatch",
|
|
179
|
+
"meshrow",
|
|
180
|
+
"missing-glyph",
|
|
181
|
+
"script",
|
|
182
|
+
"set",
|
|
183
|
+
"solidcolor",
|
|
184
|
+
"unknown",
|
|
185
|
+
"use"
|
|
186
|
+
]), De = x(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Oe = x([
|
|
187
|
+
"maction",
|
|
188
|
+
"maligngroup",
|
|
189
|
+
"malignmark",
|
|
190
|
+
"mlongdiv",
|
|
191
|
+
"mscarries",
|
|
192
|
+
"mscarry",
|
|
193
|
+
"msgroup",
|
|
194
|
+
"mstack",
|
|
195
|
+
"msline",
|
|
196
|
+
"msrow",
|
|
197
|
+
"semantics",
|
|
198
|
+
"annotation",
|
|
199
|
+
"annotation-xml",
|
|
200
|
+
"mprescripts",
|
|
201
|
+
"none"
|
|
202
|
+
]), ke = x(["#text"]), Ae = x(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), je = x(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Me = x(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ne = x([
|
|
203
|
+
"xlink:href",
|
|
204
|
+
"xml:id",
|
|
205
|
+
"xlink:title",
|
|
206
|
+
"xml:space",
|
|
207
|
+
"xmlns:xlink"
|
|
208
|
+
]), Pe = S(/{{[\w\W]*|^[\w\W]*}}/g), Fe = S(/<%[\w\W]*|^[\w\W]*%>/g), Ie = S(/\${[\w\W]*/g), Le = S(/^data-[\-\w.\u00B7-\uFFFF]+$/), Re = S(/^aria-[\-\w]+$/), ze = S(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Be = S(/^(?:\w+script|data):/i), Ve = S(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), He = S(/^html$/i), Ue = S(/^[a-z][.\w]*(-[.\w]+)+$/i), We = S(/<[/\w!]/g), Ge = S(/<[/\w]/g), Ke = S(/<\/no(script|embed|frames)/i), qe = S(/\/>/i), L = {
|
|
209
|
+
element: 1,
|
|
210
|
+
attribute: 2,
|
|
211
|
+
text: 3,
|
|
212
|
+
cdataSection: 4,
|
|
213
|
+
entityReference: 5,
|
|
214
|
+
entityNode: 6,
|
|
215
|
+
processingInstruction: 7,
|
|
216
|
+
comment: 8,
|
|
217
|
+
document: 9,
|
|
218
|
+
documentType: 10,
|
|
219
|
+
documentFragment: 11,
|
|
220
|
+
notation: 12
|
|
221
|
+
}, Je = [
|
|
222
|
+
"style",
|
|
223
|
+
"script",
|
|
224
|
+
"xmp",
|
|
225
|
+
"iframe",
|
|
226
|
+
"noembed",
|
|
227
|
+
"noframes",
|
|
228
|
+
"plaintext",
|
|
229
|
+
"noscript"
|
|
230
|
+
], Ye = x(P({}, Je)), Xe = function() {
|
|
231
|
+
let e = {};
|
|
232
|
+
return D(Je, (t) => {
|
|
233
|
+
e[t] = S(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
234
|
+
}), x(e);
|
|
235
|
+
}(), Ze = function() {
|
|
236
|
+
return typeof window > "u" ? null : window;
|
|
237
|
+
}, Qe = function(e, t) {
|
|
238
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
239
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
240
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
241
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
242
|
+
try {
|
|
243
|
+
return e.createPolicy(i, {
|
|
244
|
+
createHTML(e) {
|
|
245
|
+
return e;
|
|
246
|
+
},
|
|
247
|
+
createScriptURL(e) {
|
|
248
|
+
return e;
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
} catch (e) {
|
|
252
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
253
|
+
}
|
|
254
|
+
}, $e = function() {
|
|
255
|
+
return {
|
|
256
|
+
afterSanitizeAttributes: [],
|
|
257
|
+
afterSanitizeElements: [],
|
|
258
|
+
afterSanitizeShadowDOM: [],
|
|
259
|
+
beforeSanitizeAttributes: [],
|
|
260
|
+
beforeSanitizeElements: [],
|
|
261
|
+
beforeSanitizeShadowDOM: [],
|
|
262
|
+
uponSanitizeAttribute: [],
|
|
263
|
+
uponSanitizeElement: [],
|
|
264
|
+
uponSanitizeShadowNode: []
|
|
265
|
+
};
|
|
266
|
+
}, R = function(e, t, n, r) {
|
|
267
|
+
return A(e, t) && O(e[t]) ? P(r.base ? F(r.base) : {}, e[t], r.transform) : n;
|
|
268
|
+
}, et = function(e, t, n) {
|
|
269
|
+
let r = A(e, t) ? e[t] : void 0;
|
|
270
|
+
return r && typeof r == "object" ? F(r) : n();
|
|
271
|
+
};
|
|
272
|
+
function tt() {
|
|
273
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze(), t = (e) => tt(e);
|
|
274
|
+
if (t.version = "3.4.15", t.removed = [], !e || !e.document || e.document.nodeType !== L.document || !e.Element) return t.isSupported = !1, t;
|
|
275
|
+
let n = e.document, r = n, i = r.currentScript;
|
|
276
|
+
e.DocumentFragment;
|
|
277
|
+
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
278
|
+
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
279
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = I(d, "cloneNode"), p = I(d, "remove"), m = I(d, "removeAttributeNode"), h = I(d, "nextSibling"), g = I(d, "childNodes"), _ = I(d, "parentNode"), ee = I(d, "shadowRoot"), te = I(d, "attributes"), v = o && o.prototype ? I(o.prototype, "nodeType") : null, y = o && o.prototype ? I(o.prototype, "nodeName") : null, re = o && o.prototype ? I(o.prototype, "ownerDocument") : null, b = function(e) {
|
|
280
|
+
return v ? v(e) : e.nodeType;
|
|
281
|
+
}, ie = function(e) {
|
|
282
|
+
return y ? y(e) : e.nodeName;
|
|
283
|
+
};
|
|
284
|
+
if (typeof a == "function") {
|
|
285
|
+
let e = n.createElement("template");
|
|
286
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
287
|
+
}
|
|
288
|
+
let w, T = "", E, he = !1, ge = 0, _e = function() {
|
|
289
|
+
if (ge > 0) throw M("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
290
|
+
}, k = function(e) {
|
|
291
|
+
_e(), ge++;
|
|
292
|
+
try {
|
|
293
|
+
return w.createHTML(e);
|
|
294
|
+
} finally {
|
|
295
|
+
ge--;
|
|
296
|
+
}
|
|
297
|
+
}, ve = function(e) {
|
|
298
|
+
_e(), ge++;
|
|
299
|
+
try {
|
|
300
|
+
return w.createScriptURL(e);
|
|
301
|
+
} finally {
|
|
302
|
+
ge--;
|
|
303
|
+
}
|
|
304
|
+
}, N = function() {
|
|
305
|
+
return he || (E = Qe(u, i), he = !0), E;
|
|
306
|
+
}, ye = n, be = ye.implementation, Je = ye.createNodeIterator, nt = ye.createDocumentFragment, rt = ye.getElementsByTagName, it = r.importNode, z = $e();
|
|
307
|
+
t.isSupported = typeof ne == "function" && typeof _ == "function" && be && be.createHTMLDocument !== void 0;
|
|
308
|
+
let at = Pe, ot = Fe, st = Ie, ct = Le, lt = Re, ut = Be, dt = Ve, ft = Ue, pt = ze, B = null, mt = P({}, [
|
|
309
|
+
...Ce,
|
|
310
|
+
...we,
|
|
311
|
+
...Te,
|
|
312
|
+
...De,
|
|
313
|
+
...ke
|
|
314
|
+
]), V = null, ht = P({}, [
|
|
315
|
+
...Ae,
|
|
316
|
+
...je,
|
|
317
|
+
...Me,
|
|
318
|
+
...Ne
|
|
319
|
+
]), H = Object.seal(C(null, {
|
|
320
|
+
tagNameCheck: {
|
|
321
|
+
writable: !0,
|
|
322
|
+
configurable: !1,
|
|
323
|
+
enumerable: !0,
|
|
324
|
+
value: null
|
|
325
|
+
},
|
|
326
|
+
attributeNameCheck: {
|
|
327
|
+
writable: !0,
|
|
328
|
+
configurable: !1,
|
|
329
|
+
enumerable: !0,
|
|
330
|
+
value: null
|
|
331
|
+
},
|
|
332
|
+
allowCustomizedBuiltInElements: {
|
|
333
|
+
writable: !0,
|
|
334
|
+
configurable: !1,
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
value: !1
|
|
337
|
+
}
|
|
338
|
+
})), U = null, gt = null, W = Object.seal(C(null, {
|
|
339
|
+
tagCheck: {
|
|
340
|
+
writable: !0,
|
|
341
|
+
configurable: !1,
|
|
342
|
+
enumerable: !0,
|
|
343
|
+
value: null
|
|
344
|
+
},
|
|
345
|
+
attributeCheck: {
|
|
346
|
+
writable: !0,
|
|
347
|
+
configurable: !1,
|
|
348
|
+
enumerable: !0,
|
|
349
|
+
value: null
|
|
350
|
+
}
|
|
351
|
+
})), _t = !0, vt = !0, yt = !1, bt = !0, G = !1, K = !0, q = !1, xt = !1, St = null, Ct = null, wt = !1, J = !1, Tt = !1, Et = !1, Dt = !0, Ot = !1, kt = "user-content-", At = !0, jt = !1, Mt = {}, Nt = null, Pt = P({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ft = null, It = P({}, [
|
|
352
|
+
"audio",
|
|
353
|
+
"video",
|
|
354
|
+
"img",
|
|
355
|
+
"source",
|
|
356
|
+
"image",
|
|
357
|
+
"track"
|
|
358
|
+
]), Lt = null, Rt = P({}, [
|
|
359
|
+
"alt",
|
|
360
|
+
"class",
|
|
361
|
+
"for",
|
|
362
|
+
"id",
|
|
363
|
+
"label",
|
|
364
|
+
"name",
|
|
365
|
+
"pattern",
|
|
366
|
+
"placeholder",
|
|
367
|
+
"role",
|
|
368
|
+
"summary",
|
|
369
|
+
"title",
|
|
370
|
+
"value",
|
|
371
|
+
"style",
|
|
372
|
+
"xmlns"
|
|
373
|
+
]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Vt = Y, Ht = !1, Ut = null, Wt = P({}, [
|
|
374
|
+
zt,
|
|
375
|
+
Bt,
|
|
376
|
+
Y
|
|
377
|
+
], ue), Gt = x([
|
|
378
|
+
"mi",
|
|
379
|
+
"mo",
|
|
380
|
+
"mn",
|
|
381
|
+
"ms",
|
|
382
|
+
"mtext"
|
|
383
|
+
]), Kt = P({}, Gt), qt = x(["annotation-xml"]), Jt = P({}, qt), Yt = P({}, [
|
|
384
|
+
"title",
|
|
385
|
+
"style",
|
|
386
|
+
"font",
|
|
387
|
+
"a",
|
|
388
|
+
"script"
|
|
389
|
+
]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], X = null, Qt = null, $t = n.createElement("form"), en = function(e) {
|
|
390
|
+
return e instanceof RegExp || e instanceof Function;
|
|
391
|
+
}, tn = function() {
|
|
392
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
393
|
+
if (Qt && Qt === e) return;
|
|
394
|
+
(!e || typeof e != "object") && (e = {}), e = F(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Xt === "application/xhtml+xml" ? ue : le, B = R(e, "ALLOWED_TAGS", mt, { transform: X }), V = R(e, "ALLOWED_ATTR", ht, { transform: X }), Ut = R(e, "ALLOWED_NAMESPACES", Wt, { transform: ue }), Lt = R(e, "ADD_URI_SAFE_ATTR", Rt, {
|
|
395
|
+
transform: X,
|
|
396
|
+
base: Rt
|
|
397
|
+
}), Ft = R(e, "ADD_DATA_URI_TAGS", It, {
|
|
398
|
+
transform: X,
|
|
399
|
+
base: It
|
|
400
|
+
}), Nt = R(e, "FORBID_CONTENTS", Pt, { transform: X }), U = R(e, "FORBID_TAGS", F({}), { transform: X }), gt = R(e, "FORBID_ATTR", F({}), { transform: X }), Mt = A(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? F(e.USE_PROFILES) : e.USE_PROFILES : !1, _t = e.ALLOW_ARIA_ATTR !== !1, vt = e.ALLOW_DATA_ATTR !== !1, yt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, bt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = e.SAFE_FOR_TEMPLATES || !1, K = e.SAFE_FOR_XML !== !1, q = e.WHOLE_DOCUMENT || !1, J = e.RETURN_DOM || !1, Tt = e.RETURN_DOM_FRAGMENT || !1, Et = e.RETURN_TRUSTED_TYPE || !1, wt = e.FORCE_BODY || !1, Dt = e.SANITIZE_DOM !== !1, Ot = e.SANITIZE_NAMED_PROPS || !1, At = e.KEEP_CONTENT !== !1, jt = e.IN_PLACE || !1, pt = Se(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ze, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Kt = et(e, "MATHML_TEXT_INTEGRATION_POINTS", () => P({}, Gt)), Jt = et(e, "HTML_INTEGRATION_POINTS", () => P({}, qt));
|
|
401
|
+
let t = et(e, "CUSTOM_ELEMENT_HANDLING", () => C(null));
|
|
402
|
+
if (H = C(null), A(t, "tagNameCheck") && en(t.tagNameCheck) && (H.tagNameCheck = t.tagNameCheck), A(t, "attributeNameCheck") && en(t.attributeNameCheck) && (H.attributeNameCheck = t.attributeNameCheck), A(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), S(H), G && (vt = !1), Tt && (J = !0), Mt && (B = P({}, ke), V = C(null), Mt.html === !0 && (P(B, Ce), P(V, Ae)), Mt.svg === !0 && (P(B, we), P(V, je), P(V, Ne)), Mt.svgFilters === !0 && (P(B, Te), P(V, je), P(V, Ne)), Mt.mathMl === !0 && (P(B, De), P(V, Me), P(V, Ne))), W.tagCheck = null, W.attributeCheck = null, A(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? W.tagCheck = e.ADD_TAGS : O(e.ADD_TAGS) && (B === mt && (B = F(B)), P(B, e.ADD_TAGS, X))), A(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? W.attributeCheck = e.ADD_ATTR : O(e.ADD_ATTR) && (V === ht && (V = F(V)), P(V, e.ADD_ATTR, X))), A(e, "ADD_FORBID_CONTENTS") && O(e.ADD_FORBID_CONTENTS) && (Nt === Pt && (Nt = F(Nt)), P(Nt, e.ADD_FORBID_CONTENTS, X)), At && (B["#text"] = !0), q && P(B, [
|
|
403
|
+
"html",
|
|
404
|
+
"head",
|
|
405
|
+
"body"
|
|
406
|
+
]), B.table && (P(B, ["tbody"]), delete U.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
407
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw M("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
408
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw M("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
409
|
+
let t = w;
|
|
410
|
+
w = e.TRUSTED_TYPES_POLICY;
|
|
411
|
+
try {
|
|
412
|
+
T = k("");
|
|
413
|
+
} catch (e) {
|
|
414
|
+
throw w = t, e;
|
|
415
|
+
}
|
|
416
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (w = void 0, T = "") : (w === void 0 && (w = N()), w && typeof T == "string" && (T = k("")));
|
|
417
|
+
x && x(e), Qt = e;
|
|
418
|
+
}, nn = P({}, [
|
|
419
|
+
...we,
|
|
420
|
+
...Te,
|
|
421
|
+
...Ee
|
|
422
|
+
]), rn = P({}, [...De, ...Oe]), an = function(e, t, n) {
|
|
423
|
+
return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
|
|
424
|
+
}, on = function(e, t, n) {
|
|
425
|
+
return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
|
|
426
|
+
}, sn = function(e, t, n) {
|
|
427
|
+
return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
|
|
428
|
+
}, cn = function(e) {
|
|
429
|
+
let t = _(e);
|
|
430
|
+
(!t || !t.tagName) && (t = {
|
|
431
|
+
namespaceURI: Vt,
|
|
432
|
+
tagName: "template"
|
|
433
|
+
});
|
|
434
|
+
let n = le(e.tagName), r = le(t.tagName);
|
|
435
|
+
return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === Y ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
|
|
436
|
+
}, Z = function(e) {
|
|
437
|
+
se(t.removed, { element: e });
|
|
438
|
+
try {
|
|
439
|
+
_(e).removeChild(e);
|
|
440
|
+
} catch (t) {
|
|
441
|
+
if (p(e), !_(e)) throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
442
|
+
}
|
|
443
|
+
}, ln = function(e, t, n) {
|
|
444
|
+
try {
|
|
445
|
+
m(e, t);
|
|
446
|
+
} catch (t) {
|
|
447
|
+
try {
|
|
448
|
+
e.removeAttribute(n);
|
|
449
|
+
} catch (e) {}
|
|
450
|
+
}
|
|
451
|
+
}, un = function(e) {
|
|
452
|
+
fn(e);
|
|
453
|
+
let t = g(e);
|
|
454
|
+
if (t) {
|
|
455
|
+
let e = [];
|
|
456
|
+
D(t, (t) => {
|
|
457
|
+
se(e, t);
|
|
458
|
+
}), D(e, (e) => {
|
|
459
|
+
try {
|
|
460
|
+
p(e);
|
|
461
|
+
} catch (e) {}
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
let n = te(e);
|
|
465
|
+
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
466
|
+
let r = n[t], i = r && r.name;
|
|
467
|
+
typeof i == "string" && ln(e, r, i);
|
|
468
|
+
}
|
|
469
|
+
}, Q = function(e, n, r) {
|
|
470
|
+
if (!r) try {
|
|
471
|
+
r = n.getAttributeNode(e);
|
|
472
|
+
} catch (e) {
|
|
473
|
+
r = null;
|
|
474
|
+
}
|
|
475
|
+
se(t.removed, {
|
|
476
|
+
attribute: r || null,
|
|
477
|
+
from: n
|
|
478
|
+
});
|
|
479
|
+
try {
|
|
480
|
+
r ? m(n, r) : n.removeAttribute(e);
|
|
481
|
+
} catch (t) {
|
|
482
|
+
try {
|
|
483
|
+
n.removeAttribute(e);
|
|
484
|
+
} catch (e) {}
|
|
485
|
+
}
|
|
486
|
+
if (e === "is") {
|
|
487
|
+
if (J || Tt) try {
|
|
488
|
+
Z(n);
|
|
489
|
+
} catch (e) {}
|
|
490
|
+
else try {
|
|
491
|
+
n.setAttribute(e, "");
|
|
492
|
+
} catch (e) {}
|
|
493
|
+
}
|
|
494
|
+
}, dn = function(e) {
|
|
495
|
+
let t = te(e);
|
|
496
|
+
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
497
|
+
let r = t[n], i = r && r.name;
|
|
498
|
+
typeof i != "string" || V[X(i)] || ln(e, r, i);
|
|
499
|
+
}
|
|
500
|
+
}, fn = function(e) {
|
|
501
|
+
let t = [e];
|
|
502
|
+
for (; t.length > 0;) {
|
|
503
|
+
let e = t.pop();
|
|
504
|
+
b(e) === L.element && dn(e);
|
|
505
|
+
let n = g(e);
|
|
506
|
+
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
507
|
+
}
|
|
508
|
+
}, pn = function(e, t) {
|
|
509
|
+
return K ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
510
|
+
}, mn = function(e) {
|
|
511
|
+
if (!K) return;
|
|
512
|
+
let t = [e];
|
|
513
|
+
for (; t.length > 0;) {
|
|
514
|
+
let e = t.pop(), n = b(e);
|
|
515
|
+
if (n === L.processingInstruction || n === L.comment && j(Ge, e.data)) {
|
|
516
|
+
try {
|
|
517
|
+
p(e);
|
|
518
|
+
} catch (e) {}
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
if (n === L.element) {
|
|
522
|
+
let t = e, n = X(ie(e));
|
|
523
|
+
try {
|
|
524
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
|
|
525
|
+
} catch (e) {}
|
|
526
|
+
}
|
|
527
|
+
let r = g(e);
|
|
528
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
529
|
+
}
|
|
530
|
+
}, hn = function(e) {
|
|
531
|
+
let t = null, r = null;
|
|
532
|
+
if (wt) e = "<remove></remove>" + e;
|
|
533
|
+
else {
|
|
534
|
+
let t = de(e, /^[\r\n\t ]+/);
|
|
535
|
+
r = t && t[0];
|
|
536
|
+
}
|
|
537
|
+
Xt === "application/xhtml+xml" && Vt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
538
|
+
let i = w ? k(e) : e;
|
|
539
|
+
if (Vt === Y) try {
|
|
540
|
+
t = new l().parseFromString(i, Xt);
|
|
541
|
+
} catch (e) {}
|
|
542
|
+
if (!t || !t.documentElement) {
|
|
543
|
+
t = be.createDocument(Vt, "template", null);
|
|
544
|
+
try {
|
|
545
|
+
t.documentElement.innerHTML = Ht ? T : i;
|
|
546
|
+
} catch (e) {}
|
|
547
|
+
}
|
|
548
|
+
let a = t.body || t.documentElement;
|
|
549
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === Y ? rt.call(t, q ? "html" : "body")[0] : q ? t.documentElement : a;
|
|
550
|
+
}, gn = function(e) {
|
|
551
|
+
let t = re ? re(e) : e.ownerDocument;
|
|
552
|
+
return Je.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
553
|
+
}, _n = function(e) {
|
|
554
|
+
return e = fe(e, at, " "), e = fe(e, ot, " "), e = fe(e, st, " "), e;
|
|
555
|
+
}, vn = function(e) {
|
|
556
|
+
var t;
|
|
557
|
+
e.normalize();
|
|
558
|
+
let n = re ? re(e) : e.ownerDocument, r = Je.call(n || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), i = r.nextNode();
|
|
559
|
+
for (; i;) i.data = _n(i.data), i = r.nextNode();
|
|
560
|
+
let a = (t = e.querySelectorAll) == null ? void 0 : t.call(e, "template");
|
|
561
|
+
a && D(a, (e) => {
|
|
562
|
+
bn(e.content) && vn(e.content);
|
|
563
|
+
});
|
|
564
|
+
}, yn = function(e) {
|
|
565
|
+
let t = y ? y(e) : null;
|
|
566
|
+
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== te(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== v(e) || e.childNodes !== g(e);
|
|
567
|
+
}, bn = function(e) {
|
|
568
|
+
if (!v || typeof e != "object" || !e) return !1;
|
|
569
|
+
try {
|
|
570
|
+
return v(e) === L.documentFragment;
|
|
571
|
+
} catch (e) {
|
|
572
|
+
return !1;
|
|
573
|
+
}
|
|
574
|
+
}, xn = function(e) {
|
|
575
|
+
if (!v || typeof e != "object" || !e) return !1;
|
|
576
|
+
try {
|
|
577
|
+
return typeof v(e) == "number";
|
|
578
|
+
} catch (e) {
|
|
579
|
+
return !1;
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
function $(e, n, r) {
|
|
583
|
+
e.length !== 0 && D(e, (e) => {
|
|
584
|
+
e.call(t, n, r, Qt);
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
let Sn = function(e, t) {
|
|
588
|
+
return !!(K && e.hasChildNodes() && !xn(e.firstElementChild) && j(We, e.textContent) && j(We, e.innerHTML) || K && e.namespaceURI === Y && Ye[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && j(Xe[t], e.textContent)) || e.nodeType === L.processingInstruction || K && e.nodeType === L.comment && j(Ge, e.data));
|
|
589
|
+
}, Cn = function(e, t) {
|
|
590
|
+
return e instanceof RegExp ? j(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
591
|
+
}, wn = function(e, t, n) {
|
|
592
|
+
if (!U[t] && An(t) && Cn(H.tagNameCheck, t)) return !1;
|
|
593
|
+
if (At && !Nt[t]) {
|
|
594
|
+
let t = _(e), r = g(e);
|
|
595
|
+
if (r && t) {
|
|
596
|
+
let i = r.length;
|
|
597
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
598
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
599
|
+
t.insertBefore(i, h(e));
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
return Z(e), !0;
|
|
604
|
+
}, Tn = function(e, t, n, r) {
|
|
605
|
+
return e.length === 0 ? t : t === n || t === r ? F(t) : t;
|
|
606
|
+
}, En = function(e, t) {
|
|
607
|
+
return e === t || _(e) !== null ? !1 : (jt && fn(e), !0);
|
|
608
|
+
}, Dn = function(e, n) {
|
|
609
|
+
if ($(z.beforeSanitizeElements, e, null), En(e, n)) return !0;
|
|
610
|
+
if (yn(e)) return Z(e), !0;
|
|
611
|
+
let r = X(ie(e));
|
|
612
|
+
if (B = Tn(z.uponSanitizeElement, B, mt, St), $(z.uponSanitizeElement, e, {
|
|
613
|
+
tagName: r,
|
|
614
|
+
allowedTags: B
|
|
615
|
+
}), En(e, n)) return !0;
|
|
616
|
+
if (Sn(e, r)) return Z(e), !0;
|
|
617
|
+
if (U[r] || !(W.tagCheck instanceof Function && W.tagCheck(r)) && !B[r]) {
|
|
618
|
+
let t = wn(e, r, n);
|
|
619
|
+
return t === !1 && $(z.afterSanitizeElements, e, null), t;
|
|
620
|
+
}
|
|
621
|
+
if (b(e) === L.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && j(Ke, e.innerHTML)) return Z(e), !0;
|
|
622
|
+
if (G && e.nodeType === L.text) {
|
|
623
|
+
let n = _n(e.textContent);
|
|
624
|
+
e.textContent !== n && (se(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
625
|
+
}
|
|
626
|
+
return $(z.afterSanitizeElements, e, null), !1;
|
|
627
|
+
}, On = function(e, t, r) {
|
|
628
|
+
if (gt[t] || pn(t, e) || Dt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
|
|
629
|
+
let i = V[t] || W.attributeCheck instanceof Function && W.attributeCheck(t, e);
|
|
630
|
+
return vt && j(ct, t) || _t && j(lt, t) ? !0 : i ? Lt[t] || j(pt, fe(r, dt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && pe(r, "data:") === 0 && Ft[e] || yt && !j(ut, fe(r, dt, "")) ? !0 : !r : An(e) && Cn(H.tagNameCheck, e) && Cn(H.attributeNameCheck, t, e) || t === "is" && H.allowCustomizedBuiltInElements && Cn(H.tagNameCheck, r);
|
|
631
|
+
}, kn = P({}, [
|
|
632
|
+
"annotation-xml",
|
|
633
|
+
"color-profile",
|
|
634
|
+
"font-face",
|
|
635
|
+
"font-face-format",
|
|
636
|
+
"font-face-name",
|
|
637
|
+
"font-face-src",
|
|
638
|
+
"font-face-uri",
|
|
639
|
+
"missing-glyph"
|
|
640
|
+
]), An = function(e) {
|
|
641
|
+
return !kn[le(e)] && j(ft, e);
|
|
642
|
+
}, jn = function(e, t, n, r) {
|
|
643
|
+
if (w && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
644
|
+
case "TrustedHTML": return k(r);
|
|
645
|
+
case "TrustedScriptURL": return ve(r);
|
|
646
|
+
}
|
|
647
|
+
return r;
|
|
648
|
+
}, Mn = function(e, t, n, r) {
|
|
649
|
+
try {
|
|
650
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Z(e), !1);
|
|
651
|
+
} catch (n) {
|
|
652
|
+
return Q(t, e), !1;
|
|
653
|
+
}
|
|
654
|
+
}, Nn = function(e) {
|
|
655
|
+
$(z.beforeSanitizeAttributes, e, null);
|
|
656
|
+
let n = e.attributes;
|
|
657
|
+
if (!n || yn(e)) return;
|
|
658
|
+
V = Tn(z.uponSanitizeAttribute, V, ht, Ct);
|
|
659
|
+
let r = {
|
|
660
|
+
attrName: "",
|
|
661
|
+
attrValue: "",
|
|
662
|
+
keepAttr: !0,
|
|
663
|
+
allowedAttributes: V,
|
|
664
|
+
forceKeepAttr: void 0
|
|
665
|
+
}, i = n.length, a = X(e.nodeName);
|
|
666
|
+
for (; i--;) {
|
|
667
|
+
let o = n[i], s = o.name, c = o.namespaceURI, l = o.value, u = X(s), d = l, f = s === "value" ? d : me(d), p = !1;
|
|
668
|
+
if (r.attrName = u, r.attrValue = f, r.keepAttr = !0, r.forceKeepAttr = void 0, $(z.uponSanitizeAttribute, e, r), f = r.attrValue, Ot && (u === "id" || u === "name") && pe(f, kt) !== 0 && (Q(s, e, o), f = kt + f, p = !0), K && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
669
|
+
Q(s, e, o);
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
672
|
+
if (u === "attributename" && de(f, "href")) {
|
|
673
|
+
Q(s, e, o);
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
if (!r.forceKeepAttr) {
|
|
677
|
+
if (!r.keepAttr) {
|
|
678
|
+
Q(s, e, o);
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
if (!bt && j(qe, f)) {
|
|
682
|
+
Q(s, e, o);
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
if (G && (f = _n(f)), !On(a, u, f)) {
|
|
686
|
+
Q(s, e, o);
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && oe(t.removed);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
$(z.afterSanitizeAttributes, e, null);
|
|
693
|
+
}, Pn = function(e) {
|
|
694
|
+
let t = null, n = gn(e);
|
|
695
|
+
for ($(z.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(z.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), bn(t.content) && Pn(t.content), b(t) === L.element) {
|
|
696
|
+
let e = ee(t);
|
|
697
|
+
bn(e) && (Fn(e), Pn(e));
|
|
698
|
+
}
|
|
699
|
+
$(z.afterSanitizeShadowDOM, e, null);
|
|
700
|
+
}, Fn = function(e) {
|
|
701
|
+
let t = [{
|
|
702
|
+
node: e,
|
|
703
|
+
shadow: null
|
|
704
|
+
}];
|
|
705
|
+
for (; t.length > 0;) {
|
|
706
|
+
let e = t.pop();
|
|
707
|
+
if (e.shadow) {
|
|
708
|
+
Pn(e.shadow);
|
|
709
|
+
continue;
|
|
710
|
+
}
|
|
711
|
+
let n = e.node, r = b(n) === L.element, i = g(n);
|
|
712
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
713
|
+
node: i[e],
|
|
714
|
+
shadow: null
|
|
715
|
+
});
|
|
716
|
+
if (r) {
|
|
717
|
+
let e = y ? y(n) : null;
|
|
718
|
+
if (typeof e == "string" && X(e) === "template") {
|
|
719
|
+
let e = n.content;
|
|
720
|
+
bn(e) && t.push({
|
|
721
|
+
node: e,
|
|
722
|
+
shadow: null
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
if (r) {
|
|
727
|
+
let e = ee(n);
|
|
728
|
+
bn(e) && t.push({
|
|
729
|
+
node: null,
|
|
730
|
+
shadow: e
|
|
731
|
+
}, {
|
|
732
|
+
node: e,
|
|
733
|
+
shadow: null
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
return t.sanitize = function(e) {
|
|
739
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
740
|
+
if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = xe(e), typeof e != "string")) throw M("dirty is not a string, aborting");
|
|
741
|
+
if (!t.isSupported) return e;
|
|
742
|
+
xt ? (B = St, V = Ct) : tn(n), (z.uponSanitizeElement.length > 0 || z.uponSanitizeAttribute.length > 0) && (B = F(B)), z.uponSanitizeAttribute.length > 0 && (V = F(V)), t.removed = [];
|
|
743
|
+
let c = jt && typeof e != "string" && xn(e);
|
|
744
|
+
if (c) {
|
|
745
|
+
mn(e);
|
|
746
|
+
let t = ie(e);
|
|
747
|
+
if (typeof t == "string") {
|
|
748
|
+
let n = X(t);
|
|
749
|
+
if (!B[n] || U[n]) throw un(e), M("root node is forbidden and cannot be sanitized in-place");
|
|
750
|
+
}
|
|
751
|
+
if (yn(e)) throw un(e), M("root node is clobbered and cannot be sanitized in-place");
|
|
752
|
+
try {
|
|
753
|
+
Fn(e);
|
|
754
|
+
} catch (t) {
|
|
755
|
+
throw un(e), t;
|
|
756
|
+
}
|
|
757
|
+
} else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === L.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
|
|
758
|
+
else {
|
|
759
|
+
if (!J && !G && !q && e.indexOf("<") === -1) return w && Et ? k(e) : e;
|
|
760
|
+
if (i = hn(e), !i) return J ? null : Et ? T : "";
|
|
761
|
+
}
|
|
762
|
+
i && wt && Z(i.firstChild);
|
|
763
|
+
let l = c ? e : i;
|
|
764
|
+
try {
|
|
765
|
+
let e = gn(l);
|
|
766
|
+
for (; o = e.nextNode();) Dn(o, l), Nn(o), bn(o.content) && Pn(o.content);
|
|
767
|
+
} catch (n) {
|
|
768
|
+
throw c && (un(e), D(t.removed, (e) => {
|
|
769
|
+
e.element && fn(e.element);
|
|
770
|
+
})), n;
|
|
771
|
+
}
|
|
772
|
+
if (c) return D(t.removed, (e) => {
|
|
773
|
+
e.element && fn(e.element);
|
|
774
|
+
}), G && vn(e), e;
|
|
775
|
+
if (J) {
|
|
776
|
+
if (G && vn(i), Tt) for (s = nt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
777
|
+
else s = i;
|
|
778
|
+
return (V.shadowroot || V.shadowrootmode) && (s = it.call(r, s, !0)), s;
|
|
779
|
+
}
|
|
780
|
+
let u = q ? i.outerHTML : i.innerHTML;
|
|
781
|
+
return q && B["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && j(He, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), G && (u = _n(u)), w && Et ? k(u) : u;
|
|
782
|
+
}, t.setConfig = function() {
|
|
783
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
784
|
+
tn(e), xt = !0, St = B, Ct = V;
|
|
785
|
+
}, t.clearConfig = function() {
|
|
786
|
+
Qt = null, xt = !1, St = null, Ct = null, w = E, T = "";
|
|
787
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
788
|
+
Qt || tn({});
|
|
789
|
+
let r = X(e), i = X(t);
|
|
790
|
+
return On(r, i, n);
|
|
791
|
+
}, t.addHook = function(e, t) {
|
|
792
|
+
typeof t == "function" && A(z, e) && se(z[e], t);
|
|
793
|
+
}, t.removeHook = function(e, t) {
|
|
794
|
+
if (A(z, e)) {
|
|
795
|
+
if (t !== void 0) {
|
|
796
|
+
let n = ae(z[e], t);
|
|
797
|
+
return n === -1 ? void 0 : ce(z[e], n, 1)[0];
|
|
798
|
+
}
|
|
799
|
+
return oe(z[e]);
|
|
800
|
+
}
|
|
801
|
+
}, t.removeHooks = function(e) {
|
|
802
|
+
A(z, e) && (z[e] = []);
|
|
803
|
+
}, t.removeAllHooks = function() {
|
|
804
|
+
z = $e();
|
|
805
|
+
}, t;
|
|
806
|
+
}
|
|
807
|
+
var nt = tt(), rt = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), it = {
|
|
808
|
+
WHOLE_DOCUMENT: !0,
|
|
809
|
+
USE_PROFILES: {
|
|
810
|
+
html: !0,
|
|
811
|
+
svg: !0,
|
|
812
|
+
svgFilters: !0,
|
|
813
|
+
mathMl: !0
|
|
814
|
+
},
|
|
815
|
+
ADD_TAGS: ["use"],
|
|
816
|
+
ADD_ATTR: [
|
|
817
|
+
"target",
|
|
818
|
+
"rel",
|
|
819
|
+
"download"
|
|
820
|
+
],
|
|
821
|
+
FORBID_TAGS: [
|
|
822
|
+
"script",
|
|
823
|
+
"iframe",
|
|
824
|
+
"object",
|
|
825
|
+
"embed",
|
|
826
|
+
"base",
|
|
827
|
+
"form",
|
|
828
|
+
"link"
|
|
829
|
+
],
|
|
830
|
+
FORBID_ATTR: ["srcdoc"]
|
|
831
|
+
}, z = (e) => e || globalThis.document || null, at = (e) => /[A-Za-z0-9_-]/.test(e), ot = (e, t) => {
|
|
832
|
+
let n = t + 1, r = e[n] || "";
|
|
833
|
+
if (!r) return {
|
|
834
|
+
value: "",
|
|
835
|
+
nextIndex: n
|
|
836
|
+
};
|
|
837
|
+
if (r === "\r" || r === "\n" || r === "\f") return r === "\r" && e[n + 1] === "\n" && (n += 1), {
|
|
838
|
+
value: "",
|
|
839
|
+
nextIndex: n + 1
|
|
840
|
+
};
|
|
841
|
+
let i = "";
|
|
842
|
+
for (; n < e.length && i.length < 6 && /[0-9a-f]/i.test(e[n] || "");) i += e[n], n += 1;
|
|
843
|
+
if (i) {
|
|
844
|
+
/\s/.test(e[n] || "") && (n += 1);
|
|
845
|
+
let t = Number.parseInt(i, 16);
|
|
846
|
+
return {
|
|
847
|
+
value: t === 0 || t > 1114111 ? "�" : String.fromCodePoint(t),
|
|
848
|
+
nextIndex: n
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
return {
|
|
852
|
+
value: r,
|
|
853
|
+
nextIndex: n + 1
|
|
854
|
+
};
|
|
855
|
+
}, st = (e) => {
|
|
856
|
+
let t = "", n = "", r = 0;
|
|
857
|
+
for (; r < e.length;) {
|
|
858
|
+
let i = e[r] || "";
|
|
859
|
+
if (n) {
|
|
860
|
+
if (t += i, i === "\\") {
|
|
861
|
+
t += e[r + 1] || "", r += 2;
|
|
862
|
+
continue;
|
|
863
|
+
}
|
|
864
|
+
i === n && (n = ""), r += 1;
|
|
865
|
+
continue;
|
|
866
|
+
}
|
|
867
|
+
if (i === "/" && e[r + 1] === "*") {
|
|
868
|
+
let t = e.indexOf("*/", r + 2);
|
|
869
|
+
r = t < 0 ? e.length : t + 2;
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
if (i === "\"" || i === "'") {
|
|
873
|
+
n = i, t += i, r += 1;
|
|
874
|
+
continue;
|
|
875
|
+
}
|
|
876
|
+
if (i === "\\") {
|
|
877
|
+
let n = ot(e, r);
|
|
878
|
+
t += n.value, r = n.nextIndex;
|
|
879
|
+
continue;
|
|
880
|
+
}
|
|
881
|
+
let a = i.charCodeAt(0);
|
|
882
|
+
t += a < 32 && i !== " " && i !== "\n" && i !== "\r" ? " " : i, r += 1;
|
|
883
|
+
}
|
|
884
|
+
return t;
|
|
885
|
+
}, ct = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|font\/(?:collection|otf|sfnt|ttf|woff2?)|application\/(?:font-sfnt|font-woff|vnd\.ms-fontobject|x-font-opentype|x-font-ttf|x-font-woff));/i, lt = (e) => {
|
|
886
|
+
let t = /^data:image\/svg\+xml(?:;charset=[A-Za-z0-9._-]+)?,([\s\S]*)$/i.exec(e);
|
|
887
|
+
if (!t || t[1].length > 1048576) return !1;
|
|
888
|
+
let n;
|
|
889
|
+
try {
|
|
890
|
+
n = decodeURIComponent(t[1]);
|
|
891
|
+
} catch (e) {
|
|
892
|
+
return !1;
|
|
893
|
+
}
|
|
894
|
+
if (!/^\s*<svg(?:\s|>)/i.test(n) || /<\/?(?:script|style|foreignObject|iframe|object|embed|form|link)\b/i.test(n) || /<!\s*(?:doctype|entity)\b/i.test(n) || /\son[a-z0-9_-]+\s*=/i.test(n) || /@import\b/i.test(n) || /url\s*\(\s*(?!["']?#)/i.test(n)) return !1;
|
|
895
|
+
for (let e of n.matchAll(/\s(?:href|xlink:href|src)\s*=\s*(["'])([\s\S]*?)\1/gi)) {
|
|
896
|
+
let t = dt(e[2] || "");
|
|
897
|
+
if (!/^#[A-Za-z0-9_.:-]+$/.test(t) && !ct.test(t)) return !1;
|
|
898
|
+
}
|
|
899
|
+
return !0;
|
|
900
|
+
}, ut = (e) => {
|
|
901
|
+
let t = "";
|
|
902
|
+
for (let n of e) {
|
|
903
|
+
let e = n.charCodeAt(0);
|
|
904
|
+
e <= 32 || e >= 127 && e <= 159 || (t += n);
|
|
905
|
+
}
|
|
906
|
+
return t.trim();
|
|
907
|
+
}, dt = ut, ft = /^data:(?:image\/(?:avif|bmp|gif|jpeg|png|webp|x-icon)|audio\/[a-z0-9.+-]+|video\/[a-z0-9.+-]+|text\/vtt)(?:;[^,]*)?,/i, pt = (e) => {
|
|
908
|
+
let t = ut(e);
|
|
909
|
+
return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : ft.test(t) : !1;
|
|
910
|
+
}, B = (e, t, n = {}) => {
|
|
911
|
+
if (!e.hasAttribute(t)) return;
|
|
912
|
+
let r = ut(e.getAttribute(t) || "");
|
|
913
|
+
(n.fragmentOnly ? /^#[A-Za-z0-9_.:-]+$/.test(r) : pt(r)) ? e.setAttribute(t, r) : e.removeAttribute(t);
|
|
914
|
+
}, mt = (e) => {
|
|
915
|
+
let t = e.trim(), n = t[0];
|
|
916
|
+
return (n === "\"" || n === "'") && t[t.length - 1] === n && (t = t.slice(1, -1).trim()), ut(t);
|
|
917
|
+
}, V = (e) => {
|
|
918
|
+
let t = mt(e);
|
|
919
|
+
return t ? t.startsWith("#") || /^blob:/i.test(t) ? !0 : ct.test(t) || lt(t) : !1;
|
|
920
|
+
}, ht = (e, t) => {
|
|
921
|
+
let n = "";
|
|
922
|
+
for (let r = t; r < e.length; r += 1) {
|
|
923
|
+
let t = e[r] || "";
|
|
924
|
+
if (n) {
|
|
925
|
+
t === "\\" ? r += 1 : t === n && (n = "");
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
if (t === "\"" || t === "'") n = t;
|
|
929
|
+
else if (t === ")") return r;
|
|
930
|
+
}
|
|
931
|
+
return -1;
|
|
932
|
+
}, H = (e) => {
|
|
933
|
+
let t = !1, n = !1, r = "", i = 0;
|
|
934
|
+
for (; i < e.length;) {
|
|
935
|
+
let a = e[i] || "";
|
|
936
|
+
if (r) {
|
|
937
|
+
if (a === "\\") {
|
|
938
|
+
i += 2;
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
a === r && (r = ""), i += 1;
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
if (a === "/" && e[i + 1] === "*") {
|
|
945
|
+
let t = e.indexOf("*/", i + 2);
|
|
946
|
+
i = t < 0 ? e.length : t + 2;
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
if (a === "\"" || a === "'") {
|
|
950
|
+
r = a, i += 1;
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
if (a === "\\") {
|
|
954
|
+
i += 2;
|
|
955
|
+
continue;
|
|
956
|
+
}
|
|
957
|
+
if (a === "@" && e.slice(i + 1, i + 7).toLowerCase() === "import") {
|
|
958
|
+
let n = e[i + 7] || "";
|
|
959
|
+
(!n || !at(n)) && (t = !0);
|
|
960
|
+
}
|
|
961
|
+
if (e.slice(i, i + 3).toLowerCase() === "url" && !at(e[i - 1] || "")) {
|
|
962
|
+
let t = i + 3;
|
|
963
|
+
for (; /\s/.test(e[t] || "");) t += 1;
|
|
964
|
+
e[t] === "(" && (n = !0);
|
|
965
|
+
}
|
|
966
|
+
i += 1;
|
|
967
|
+
}
|
|
968
|
+
return {
|
|
969
|
+
hasImport: t,
|
|
970
|
+
hasUrl: n
|
|
971
|
+
};
|
|
972
|
+
}, U = (e) => {
|
|
973
|
+
let t = H(st(e)), n = H(e);
|
|
974
|
+
if (t.hasImport || t.hasUrl && !n.hasUrl) return "";
|
|
975
|
+
if (!n.hasUrl) return e;
|
|
976
|
+
let r = "", i = "", a = 0;
|
|
977
|
+
for (; a < e.length;) {
|
|
978
|
+
let t = e[a] || "";
|
|
979
|
+
if (i) {
|
|
980
|
+
if (r += t, t === "\\") {
|
|
981
|
+
r += e[a + 1] || "", a += 2;
|
|
982
|
+
continue;
|
|
983
|
+
}
|
|
984
|
+
t === i && (i = ""), a += 1;
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
if (t === "\"" || t === "'") {
|
|
988
|
+
i = t, r += t, a += 1;
|
|
989
|
+
continue;
|
|
990
|
+
}
|
|
991
|
+
if (t === "/" && e[a + 1] === "*") {
|
|
992
|
+
let t = e.indexOf("*/", a + 2);
|
|
993
|
+
if (t < 0) {
|
|
994
|
+
r += e.slice(a);
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
r += e.slice(a, t + 2), a = t + 2;
|
|
998
|
+
continue;
|
|
999
|
+
}
|
|
1000
|
+
if (t === "\\") {
|
|
1001
|
+
r += t, r += e[a + 1] || "", a += 2;
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
1004
|
+
if (e.slice(a, a + 3).toLowerCase() === "url" && !at(e[a - 1] || "")) {
|
|
1005
|
+
let t = a + 3;
|
|
1006
|
+
for (; /\s/.test(e[t] || "");) t += 1;
|
|
1007
|
+
if (e[t] === "(") {
|
|
1008
|
+
let n = ht(e, t + 1);
|
|
1009
|
+
if (n < 0) return "";
|
|
1010
|
+
let i = e.slice(t + 1, n);
|
|
1011
|
+
r += V(i) ? e.slice(a, n + 1) : "none", a = n + 1;
|
|
1012
|
+
continue;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
r += t, a += 1;
|
|
1016
|
+
}
|
|
1017
|
+
return r;
|
|
1018
|
+
}, gt = (e) => {
|
|
1019
|
+
let t = e.defaultView;
|
|
1020
|
+
if (!t) return null;
|
|
1021
|
+
let n = nt(t);
|
|
1022
|
+
return n.isSupported ? (n.addHook("afterSanitizeElements", (e) => {
|
|
1023
|
+
var t;
|
|
1024
|
+
let n = e;
|
|
1025
|
+
if (((t = n.localName) == null ? void 0 : t.toLowerCase()) !== "style") return;
|
|
1026
|
+
let r = U(n.textContent || "");
|
|
1027
|
+
r ? n.textContent = r : n.remove();
|
|
1028
|
+
}), n.addHook("afterSanitizeAttributes", (e) => {
|
|
1029
|
+
var t;
|
|
1030
|
+
let n = e, r = (t = n.localName) == null ? void 0 : t.toLowerCase();
|
|
1031
|
+
if (r === "a" && (n.getAttribute("target") || "").trim().toLowerCase() === "_blank" && n.setAttribute("rel", "noopener noreferrer"), (r === "a" || r === "area") && n.removeAttribute("ping"), n.hasAttribute("srcset") && n.removeAttribute("srcset"), [
|
|
1032
|
+
"img",
|
|
1033
|
+
"audio",
|
|
1034
|
+
"video",
|
|
1035
|
+
"source",
|
|
1036
|
+
"track",
|
|
1037
|
+
"input"
|
|
1038
|
+
].includes(r || "") && B(n, "src"), r === "video" && B(n, "poster"), n.hasAttribute("background") && B(n, "background"), n.namespaceURI === "http://www.w3.org/2000/svg" && r !== "a") {
|
|
1039
|
+
let e = r === "use" || r === "mpath";
|
|
1040
|
+
B(n, "href", { fragmentOnly: e }), B(n, "xlink:href", { fragmentOnly: e });
|
|
1041
|
+
}
|
|
1042
|
+
if (n.hasAttribute("style")) {
|
|
1043
|
+
let e = U(n.getAttribute("style") || "");
|
|
1044
|
+
e ? n.setAttribute("style", e) : n.removeAttribute("style");
|
|
1045
|
+
}
|
|
1046
|
+
}), n) : null;
|
|
1047
|
+
}, W = ["<meta charset=\"utf-8\" />", "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />"].join("\n "), _t = (e, t) => {
|
|
1048
|
+
let n = z(t), r = n ? gt(n) : null;
|
|
1049
|
+
return r ? `<!doctype html>\n${String(r.sanitize(e, it)).replace("<head>", `<head>\n ${W}`)}` : "<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\" /></head><body></body></html>";
|
|
1050
|
+
}, vt = (e) => {
|
|
1051
|
+
let t = e.createElement("html");
|
|
1052
|
+
t.lang = "en";
|
|
1053
|
+
let n = e.createElement("head"), r = e.createElement("meta");
|
|
1054
|
+
return r.setAttribute("charset", "utf-8"), n.append(r), t.append(n, e.createElement("body")), t;
|
|
1055
|
+
}, yt = (e) => {
|
|
1056
|
+
let t = e.querySelector(":scope > head");
|
|
1057
|
+
if (!t) return e;
|
|
1058
|
+
if (!t.querySelector("meta[charset]")) {
|
|
1059
|
+
let n = e.ownerDocument.createElement("meta");
|
|
1060
|
+
n.setAttribute("charset", "utf-8"), t.prepend(n);
|
|
1061
|
+
}
|
|
1062
|
+
if (!t.querySelector("meta[name=\"viewport\"]")) {
|
|
1063
|
+
let n = e.ownerDocument.createElement("meta");
|
|
1064
|
+
n.setAttribute("name", "viewport"), n.setAttribute("content", "width=device-width,initial-scale=1");
|
|
1065
|
+
let r = t.querySelector("meta[charset]");
|
|
1066
|
+
r == null || r.after(n);
|
|
1067
|
+
}
|
|
1068
|
+
return e;
|
|
1069
|
+
}, bt = (e, n) => {
|
|
1070
|
+
let r = z(n);
|
|
1071
|
+
if (!r) throw Error("A browser document is required to build printable DOM.");
|
|
1072
|
+
let i = gt(r);
|
|
1073
|
+
if (!i) return vt(r);
|
|
1074
|
+
let a = i.sanitize(e, t(t({}, it), {}, { RETURN_DOM: !0 }));
|
|
1075
|
+
return !a || a.nodeType !== 1 || a.localName.toLowerCase() !== "html" ? vt(r) : yt(a);
|
|
1076
|
+
}, G = "\n * { box-sizing: border-box; }\n html, body { margin: 0; min-height: 100%; background: #f2f4f7; color: #172033; font-family: Aptos, \"Segoe UI\", \"PingFang SC\", \"Microsoft YaHei\", sans-serif; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n body { padding: 24px; }\n .viewer-export-shell { position: relative; min-height: calc(100vh - 48px); overflow: visible; background: #f2f4f7; }\n .viewer-export-content { position: relative; z-index: 1; contain: none; width: 100%; min-height: 100%; overflow: visible; }\n .viewer-export-watermark { position: absolute; inset: 0; pointer-events: none; z-index: 20; background-repeat: repeat; print-color-adjust: exact; -webkit-print-color-adjust: exact; }\n .viewer-export-content .file-render,\n .viewer-export-content .file-viewer,\n .viewer-export-content .viewer-stage,\n .viewer-export-content .content,\n .viewer-export-content .pdf-shell,\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-viewport,\n .viewer-export-content .pdf-wrapper,\n .viewer-export-content .docx-fit-viewer,\n .viewer-export-content .docx-wrapper,\n .viewer-export-content .docx-canvas-wrapper,\n .viewer-export-content .msdoc-stage,\n .viewer-export-content .msdoc-paged-view,\n .viewer-export-content .code-viewer,\n .viewer-export-content .markdown-viewer,\n .viewer-export-content .email-shell,\n .viewer-export-content .archive-shell,\n .viewer-export-content .eda-shell,\n .viewer-export-content .ebook-shell,\n .viewer-export-content .umd-shell,\n .viewer-export-content .drawing-shell,\n .viewer-export-content .audio-shell,\n .viewer-export-content .cad-shell,\n .viewer-export-content .cad-body,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n position: relative !important;\n inset: auto !important;\n contain: none !important;\n width: 100% !important;\n height: auto !important;\n min-height: 0 !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-canvas-wrapper {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .docx-print-document {\n display: block !important;\n width: fit-content !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n margin: 0 auto !important;\n }\n .viewer-export-content .docx-page-frame {\n position: relative !important;\n width: var(--viewer-print-page-width, fit-content) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet {\n position: relative !important;\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n margin: 0 auto 18px !important;\n overflow: hidden !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-canvas-sheet > img {\n display: block !important;\n width: 100% !important;\n height: 100% !important;\n max-width: none !important;\n object-fit: fill;\n }\n .viewer-export-content .msdoc-page {\n position: relative !important;\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: 100% !important;\n height: auto !important;\n margin: 0 auto 18px !important;\n overflow: visible !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .docx-page-frame:last-child,\n .viewer-export-content .docx-canvas-sheet:last-child,\n .viewer-export-content .msdoc-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .docx-page-frame > section.docx {\n position: relative !important;\n top: auto !important;\n left: auto !important;\n width: var(--viewer-print-page-width, auto) !important;\n min-height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0 auto !important;\n overflow: visible !important;\n transform: none !important;\n box-shadow: none !important;\n break-inside: avoid;\n page-break-inside: avoid;\n }\n .viewer-export-content .msdoc-stage {\n display: block !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-paged-view {\n display: block !important;\n gap: 0 !important;\n padding: 0 !important;\n background: transparent !important;\n }\n .viewer-export-content .msdoc-page > .msdoc-root {\n margin: 0 auto !important;\n box-shadow: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .pdf-toolbar,\n .viewer-export-content .pdf-nav-pane,\n .viewer-export-content .viewer-actions,\n .viewer-export-content .code-toolbar,\n .viewer-export-content .umd-toolbar,\n .viewer-export-content .drawing-toolbar,\n .viewer-export-content .cad-toolbar {\n display: none !important;\n }\n .viewer-export-content .pdf-content,\n .viewer-export-content .pdf-shell--nav-hidden .pdf-content,\n .viewer-export-content .cad-body.without-layers {\n display: block !important;\n grid-template-columns: none !important;\n }\n .viewer-export-content .pdfViewer { padding: 0 !important; }\n .viewer-export-content .pdfViewer .page {\n margin: 0 auto 16px !important;\n border: 0 !important;\n box-shadow: none !important;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdfViewer .page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-document {\n display: grid;\n justify-items: center;\n gap: 18px;\n padding: 4px 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto);\n height: var(--viewer-print-page-height, auto);\n max-width: 100%;\n overflow: hidden;\n background: #ffffff;\n box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n }\n .viewer-export-content .pdf-export-page:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .pdf-export-page img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .viewer-export-content .pptx-wrapper {\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n overflow: visible !important;\n transform: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide {\n margin: 0 auto 18px !important;\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .pptx-wrapper .slide:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .ofd-stage {\n padding: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n break-inside: avoid;\n page-break-inside: avoid;\n break-after: page;\n page-break-after: always;\n box-shadow: none !important;\n }\n .viewer-export-content .ofd-page:last-child,\n .viewer-export-content .drawing-svg:last-child,\n .viewer-export-content .cad-canvas-wrap:last-child,\n .viewer-export-content .dwg-preview-frame:last-child {\n break-after: auto;\n page-break-after: auto;\n }\n .viewer-export-content .code-area {\n overflow: visible !important;\n white-space: pre-wrap !important;\n word-break: break-word !important;\n }\n .viewer-export-content .umd-body,\n .viewer-export-content .umd-stage-wrap,\n .viewer-export-content .umd-stage {\n display: block !important;\n height: auto !important;\n max-height: none !important;\n overflow: visible !important;\n }\n .viewer-export-content .umd-toc {\n display: none !important;\n }\n img, canvas, svg, video { max-width: 100%; }\n @media print {\n @page { margin: 12mm; }\n html, body { min-height: auto; background: #ffffff; }\n body { padding: 0; }\n .viewer-export-shell,\n .viewer-export-content {\n min-height: 0;\n overflow: visible;\n background: #ffffff;\n }\n .viewer-export-content .pdf-export-document {\n display: block;\n padding: 0;\n }\n .viewer-export-content .pdf-export-page {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n max-width: none !important;\n margin: 0;\n overflow: hidden;\n box-shadow: none;\n }\n .viewer-export-content .docx-page-frame {\n width: var(--viewer-print-page-width, auto) !important;\n height: var(--viewer-print-page-height, auto) !important;\n min-height: var(--viewer-print-page-height, 0) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n }\n .viewer-export-content .docx-canvas-sheet {\n contain: none !important;\n width: var(--viewer-print-page-width, 794px) !important;\n height: var(--viewer-print-page-height, 1123px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: hidden !important;\n box-shadow: none !important;\n }\n .viewer-export-content .msdoc-page {\n width: var(--viewer-print-page-width, 794px) !important;\n min-height: var(--viewer-print-page-height, 1123px) !important;\n max-width: none !important;\n margin: 0 !important;\n overflow: visible !important;\n }\n .viewer-export-content .docx-page-frame > section.docx,\n .viewer-export-content .msdoc-page > .msdoc-root {\n width: var(--viewer-print-page-width, 100%) !important;\n max-width: none !important;\n border: 0 !important;\n }\n .viewer-export-content .pptx-wrapper .slide,\n .viewer-export-content .ofd-page,\n .viewer-export-content .drawing-svg,\n .viewer-export-content .cad-canvas-wrap,\n .viewer-export-content .dwg-preview-frame {\n box-shadow: none !important;\n }\n }\n", K = (e) => {
|
|
1077
|
+
let t = z(e);
|
|
1078
|
+
return t ? Array.from(t.querySelectorAll("style, link[rel=\"stylesheet\"]")).map((e) => {
|
|
1079
|
+
var t;
|
|
1080
|
+
if (e.localName.toLowerCase() === "style") return `<style>${e.textContent || ""}</style>`;
|
|
1081
|
+
let n = e;
|
|
1082
|
+
try {
|
|
1083
|
+
let e = Array.from(((t = n.sheet) == null ? void 0 : t.cssRules) || []).map((e) => e.cssText).join("\n");
|
|
1084
|
+
return e ? `<style data-viewer-inlined-stylesheet>${e}</style>` : "";
|
|
1085
|
+
} catch (e) {
|
|
1086
|
+
return "";
|
|
1087
|
+
}
|
|
1088
|
+
}).filter(Boolean).join("\n") : "";
|
|
1089
|
+
}, q = ({ contentHtml: e, includeDocumentStyles: n = !0, printStyle: r = "", title: i, watermarkInlineStyle: a = "", mask: o = null, documentRef: s }) => {
|
|
1090
|
+
var c, l;
|
|
1091
|
+
let u = a ? `<div class="viewer-export-watermark" style="${rt(a)}"></div>` : "", h = d(o), g = h ? t(t({}, h), {}, {
|
|
1092
|
+
regions: (c = h.regions) == null ? void 0 : c.filter((e) => e.pageIndex === void 0),
|
|
1093
|
+
stamps: (l = h.stamps) == null ? void 0 : l.filter((e) => e.pageIndex === void 0)
|
|
1094
|
+
}) : null, _ = p(g), ee = f(e, h), te = n ? K(s) : "", v = r ? `<style data-viewer-print-style>${r}</style>` : "", ne = h ? `<style data-viewer-print-mask-style>${m}</style>` : "";
|
|
1095
|
+
return `<!doctype html>
|
|
1096
|
+
<html lang="zh-CN">
|
|
1097
|
+
<head>
|
|
1098
|
+
<meta charset="utf-8" />
|
|
1099
|
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
1100
|
+
<title>${rt(i)}</title>
|
|
1101
|
+
${te}
|
|
1102
|
+
<style>${G}</style>
|
|
1103
|
+
${ne}
|
|
1104
|
+
</head>
|
|
1105
|
+
<body>
|
|
1106
|
+
<main class="viewer-export-shell">
|
|
1107
|
+
<div class="viewer-export-content">${ee}</div>
|
|
1108
|
+
${_}
|
|
1109
|
+
${u}
|
|
1110
|
+
</main>
|
|
1111
|
+
${v}
|
|
1112
|
+
</body>
|
|
1113
|
+
</html>`;
|
|
1114
|
+
}, xt = (e) => _t(q(e), e.documentRef), St = (e) => bt(q(e), e.documentRef), Ct = function() {
|
|
1115
|
+
var t = e(function* ({ source: e, mode: t = "export", title: n, adapter: r = null, watermarkInlineStyle: a = "", mask: s = null }) {
|
|
1116
|
+
let l = {
|
|
1117
|
+
mode: t,
|
|
1118
|
+
title: n
|
|
1119
|
+
}, f = r == null ? void 0 : r.toHtml, p = d(s);
|
|
1120
|
+
if (f) {
|
|
1121
|
+
yield o(e, r);
|
|
1122
|
+
let t = yield u(yield f(l)), s = yield i(r, l);
|
|
1123
|
+
return {
|
|
1124
|
+
contentHtml: t,
|
|
1125
|
+
includeDocumentStyles: r.includeDocumentStyles !== !1,
|
|
1126
|
+
printStyle: s,
|
|
1127
|
+
title: n,
|
|
1128
|
+
watermarkInlineStyle: a,
|
|
1129
|
+
mask: p,
|
|
1130
|
+
documentRef: e.ownerDocument
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
yield o(e, r);
|
|
1134
|
+
let m = e.cloneNode(!0);
|
|
1135
|
+
m.querySelectorAll(".viewer-watermark").forEach((e) => e.remove()), c(e, m);
|
|
1136
|
+
let h = yield i(r, l);
|
|
1137
|
+
return {
|
|
1138
|
+
contentHtml: yield u(m.innerHTML),
|
|
1139
|
+
printStyle: h,
|
|
1140
|
+
title: n,
|
|
1141
|
+
watermarkInlineStyle: a,
|
|
1142
|
+
mask: p,
|
|
1143
|
+
documentRef: e.ownerDocument
|
|
1144
|
+
};
|
|
1145
|
+
});
|
|
1146
|
+
return function(e) {
|
|
1147
|
+
return t.apply(this, arguments);
|
|
1148
|
+
};
|
|
1149
|
+
}(), wt = function() {
|
|
1150
|
+
var t = e(function* (e) {
|
|
1151
|
+
return xt(yield Ct(e));
|
|
1152
|
+
});
|
|
1153
|
+
return function(e) {
|
|
1154
|
+
return t.apply(this, arguments);
|
|
1155
|
+
};
|
|
1156
|
+
}(), J = function() {
|
|
1157
|
+
var t = e(function* (e) {
|
|
1158
|
+
return St(yield Ct(e));
|
|
1159
|
+
});
|
|
1160
|
+
return function(e) {
|
|
1161
|
+
return t.apply(this, arguments);
|
|
1162
|
+
};
|
|
1163
|
+
}();
|
|
1164
|
+
//#endregion
|
|
1165
|
+
export { St as buildExportDomDocument, xt as buildExportHtmlDocument, J as buildFileViewerRenderedDomDocument, wt as buildFileViewerRenderedHtmlDocument, K as collectDocumentStyles, u as inlineFileViewerBlobUrlsInHtml, o as prepareFileViewerRenderedContentForSnapshot, c as replaceFileViewerCanvasWithImages, i as resolveFileViewerPrintStyle, bt as sanitizeFileViewerExportDocumentDom, _t as sanitizeFileViewerExportDocumentHtml, n as triggerFileViewerBlobDownload, s as triggerFileViewerUrlDownload, l as waitForFileViewerImages, r as waitForFileViewerNextPaint, a as waitForFileViewerPrintWindowReady };
|