template-designer 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22328,7 +22328,7 @@ function(e) {
|
|
|
22328
22328
|
*/
|
|
22329
22329
|
function(e) {
|
|
22330
22330
|
function A() {
|
|
22331
|
-
return (ge.canvg ? Promise.resolve(ge.canvg) : import("./index.es-
|
|
22331
|
+
return (ge.canvg ? Promise.resolve(ge.canvg) : import("./index.es-71cdb4be.mjs")).catch(function(t) {
|
|
22332
22332
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
22333
22333
|
}).then(function(t) {
|
|
22334
22334
|
return t.default ? t.default : t;
|
|
@@ -23274,7 +23274,7 @@ async function eV(e, A, t = {}) {
|
|
|
23274
23274
|
config: l = {},
|
|
23275
23275
|
format: u = "pdf"
|
|
23276
23276
|
// 'pdf' | 'png'(png 支持透明背景)
|
|
23277
|
-
} = t, f = qx(e, A), { default: d } = await Promise.resolve().then(() => Jg), B = (n == null ? void 0 : n.widthMm) || f.printWidth || f.
|
|
23277
|
+
} = t, f = qx(e, A), { default: d } = await Promise.resolve().then(() => Jg), B = (n == null ? void 0 : n.widthMm) || f.printWidth || f.print_width || 100, p = (n == null ? void 0 : n.heightMm) || f.printHeight || f.print_height || 100, U = Math.max(1, Math.floor(Ya(B))), v = Math.max(1, Math.floor(Ya(p))), C = document.createElement("div");
|
|
23278
23278
|
C.style.position = "fixed", C.style.left = "-10000px", C.style.top = "0", C.style.width = U + "px", C.style.height = v + "px", C.style.overflow = "hidden", C.style.opacity = "1", C.style.pointerEvents = "none", document.body.appendChild(C);
|
|
23279
23279
|
const m = im({
|
|
23280
23280
|
render() {
|
|
@@ -298,7 +298,7 @@ endbfchar
|
|
|
298
298
|
CMapName currentdict /CMap defineresource pop
|
|
299
299
|
end
|
|
300
300
|
end`};e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i.newObject,u=i.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="Identity-H"){for(var d=o.metadata.Unicode.widths,g=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),h="",y=0;y<g.length;y++)h+=String.fromCharCode(g[y]);var w=l();u({data:h,addLength1:!0,objectId:w}),s("endobj");var b=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:b}),s("endobj");var B=l();s("<<"),s("/Type /FontDescriptor"),s("/FontName /"+So(o.fontName)),s("/FontFile2 "+w+" 0 R"),s("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),s("/Flags "+o.metadata.flags),s("/StemV "+o.metadata.stemV),s("/ItalicAngle "+o.metadata.italicAngle),s("/Ascent "+o.metadata.ascender),s("/Descent "+o.metadata.decender),s("/CapHeight "+o.metadata.capHeight),s(">>"),s("endobj");var E=l();s("<<"),s("/Type /Font"),s("/BaseFont /"+So(o.fontName)),s("/FontDescriptor "+B+" 0 R"),s("/W "+t.API.PDFObject.convert(d)),s("/CIDToGIDMap /Identity"),s("/DW 1000"),s("/Subtype /CIDFontType2"),s("/CIDSystemInfo"),s("<<"),s("/Supplement 0"),s("/Registry (Adobe)"),s("/Ordering ("+o.encoding+")"),s(">>"),s(">>"),s("endobj"),o.objectNumber=l(),s("<<"),s("/Type /Font"),s("/Subtype /Type0"),s("/ToUnicode "+b+" 0 R"),s("/BaseFont /"+So(o.fontName)),s("/Encoding /"+o.encoding),s("/DescendantFonts ["+E+" 0 R]"),s(">>"),s("endobj"),o.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i.newObject,u=i.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var d=o.metadata.rawData,g="",h=0;h<d.length;h++)g+=String.fromCharCode(d[h]);var y=l();u({data:g,addLength1:!0,objectId:y}),s("endobj");var w=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:w}),s("endobj");var b=l();s("<<"),s("/Descent "+o.metadata.decender),s("/CapHeight "+o.metadata.capHeight),s("/StemV "+o.metadata.stemV),s("/Type /FontDescriptor"),s("/FontFile2 "+y+" 0 R"),s("/Flags 96"),s("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),s("/FontName /"+So(o.fontName)),s("/ItalicAngle "+o.metadata.italicAngle),s("/Ascent "+o.metadata.ascender),s(">>"),s("endobj"),o.objectNumber=l();for(var B=0;B<o.metadata.hmtx.widths.length;B++)o.metadata.hmtx.widths[B]=parseInt(o.metadata.hmtx.widths[B]*(1e3/o.metadata.head.unitsPerEm));s("<</Subtype/TrueType/Type/Font/ToUnicode "+w+" 0 R/BaseFont/"+So(o.fontName)+"/FontDescriptor "+b+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),s("endobj"),o.isAlreadyPutted=!0}})(a)}]);var n=function(a){var i,o=a.text||"",s=a.x,l=a.y,u=a.options||{},d=a.mutex||{},g=d.pdfEscape,h=d.activeFontKey,y=d.fonts,w=h,b="",B=0,E="",N=y[w].encoding;if(y[w].encoding!=="Identity-H")return{text:o,x:s,y:l,options:u,mutex:d};for(E=o,w=h,Array.isArray(o)&&(E=o[0]),B=0;B<E.length;B+=1)y[w].metadata.hasOwnProperty("cmap")&&(i=y[w].metadata.cmap.unicode.codeMap[E[B].charCodeAt(0)]),i||E[B].charCodeAt(0)<256&&y[w].metadata.hasOwnProperty("Unicode")?b+=E[B]:b+="";var T="";return parseInt(w.slice(1))<14||N==="WinAnsiEncoding"?T=g(b,w).split("").map(function(M){return M.charCodeAt(0).toString(16)}).join(""):N==="Identity-H"&&(T=A(b,y[w])),d.isHex=!0,{text:T,x:s,y:l,options:u,mutex:d}};e.events.push(["postProcessText",function(a){var i=a.text||"",o=[],s={text:i,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(i)){var l=0;for(l=0;l<i.length;l+=1)Array.isArray(i[l])&&i[l].length===3?o.push([n(Object.assign({},s,{text:i[l][0]})).text,i[l][1],i[l][2]]):o.push(n(Object.assign({},s,{text:i[l]})).text);a.text=o}else a.text=n(Object.assign({},s,{text:i})).text}])}(vt),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0},t.addFileToVFS=function(A,r){return e.call(this),this.internal.vFS[A]=r,this},t.getFileFromVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}}(vt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,a,i,o,s,l,u,d=e,g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},w={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},b=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],B=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),E=!1,N=0;this.__bidiEngine__={};var T=function(F){var Q=F.charCodeAt(),O=Q>>8,W=w[O];return W!==void 0?d[256*W+(255&Q)]:O===252||O===253?"AL":B.test(O)?"L":O===8?"R":"N"},M=function(F){for(var Q,O=0;O<F.length;O++){if((Q=T(F.charAt(O)))==="L")return!1;if(Q==="R")return!0}return!1},H=function(F,Q,O,W){var te,K,re,X,oe=Q[W];switch(oe){case"L":case"R":E=!1;break;case"N":case"AN":break;case"EN":E&&(oe="AN");break;case"AL":E=!0,oe="R";break;case"WS":oe="N";break;case"CS":W<1||W+1>=Q.length||(te=O[W-1])!=="EN"&&te!=="AN"||(K=Q[W+1])!=="EN"&&K!=="AN"?oe="N":E&&(K="AN"),oe=K===te?K:"N";break;case"ES":oe=(te=W>0?O[W-1]:"B")==="EN"&&W+1<Q.length&&Q[W+1]==="EN"?"EN":"N";break;case"ET":if(W>0&&O[W-1]==="EN"){oe="EN";break}if(E){oe="N";break}for(re=W+1,X=Q.length;re<X&&Q[re]==="ET";)re++;oe=re<X&&Q[re]==="EN"?"EN":"N";break;case"NSM":if(i&&!o){for(X=Q.length,re=W+1;re<X&&Q[re]==="NSM";)re++;if(re<X){var $=F[W],ce=$>=1425&&$<=2303||$===64286;if(te=Q[re],ce&&(te==="R"||te==="AL")){oe="R";break}}}oe=W<1||(te=Q[W-1])==="B"?"N":O[W-1];break;case"B":E=!1,n=!0,oe=N;break;case"S":a=!0,oe="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":E=!1;break;case"BN":oe="N"}return oe},I=function(F,Q,O){var W=F.split("");return O&&L(W,O,{hiLevel:N}),W.reverse(),Q&&Q.reverse(),W.join("")},L=function(F,Q,O){var W,te,K,re,X,oe=-1,$=F.length,ce=0,U=[],k=N?h:g,Z=[];for(E=!1,n=!1,a=!1,te=0;te<$;te++)Z[te]=T(F[te]);for(K=0;K<$;K++){if(X=ce,U[K]=H(F,Z,U,K),W=240&(ce=k[X][y[U[K]]]),ce&=15,Q[K]=re=k[ce][5],W>0)if(W===16){for(te=oe;te<K;te++)Q[te]=1;oe=-1}else oe=-1;if(k[ce][6])oe===-1&&(oe=K);else if(oe>-1){for(te=oe;te<K;te++)Q[te]=re;oe=-1}Z[K]==="B"&&(Q[K]=0),O.hiLevel|=re}a&&function(G,ee,Ae){for(var he=0;he<Ae;he++)if(G[he]==="S"){ee[he]=N;for(var pe=he-1;pe>=0&&G[pe]==="WS";pe--)ee[pe]=N}}(Z,Q,$)},P=function(F,Q,O,W,te){if(!(te.hiLevel<F)){if(F===1&&N===1&&!n)return Q.reverse(),void(O&&O.reverse());for(var K,re,X,oe,$=Q.length,ce=0;ce<$;){if(W[ce]>=F){for(X=ce+1;X<$&&W[X]>=F;)X++;for(oe=ce,re=X-1;oe<re;oe++,re--)K=Q[oe],Q[oe]=Q[re],Q[re]=K,O&&(K=O[oe],O[oe]=O[re],O[re]=K);ce=X}ce++}}},J=function(F,Q,O){var W=F.split(""),te={hiLevel:N};return O||(O=[]),L(W,O,te),function(K,re,X){if(X.hiLevel!==0&&u)for(var oe,$=0;$<K.length;$++)re[$]===1&&(oe=b.indexOf(K[$]))>=0&&(K[$]=b[oe+1])}(W,O,te),P(2,W,Q,O,te),P(1,W,Q,O,te),W.join("")};return this.__bidiEngine__.doBidiReorder=function(F,Q,O){if(function(te,K){if(K)for(var re=0;re<te.length;re++)K[re]=re;o===void 0&&(o=M(te)),l===void 0&&(l=M(te))}(F,Q),i||!s||l)if(i&&s&&o^l)N=o?1:0,F=I(F,Q,O);else if(!i&&s&&l)N=o?1:0,F=J(F,Q,O),F=I(F,Q);else if(!i||o||s||l){if(i&&!s&&o^l)F=I(F,Q),o?(N=0,F=J(F,Q,O)):(N=1,F=J(F,Q,O),F=I(F,Q));else if(i&&o&&!s&&l)N=1,F=J(F,Q,O),F=I(F,Q);else if(!i&&!s&&o^l){var W=u;o?(N=1,F=J(F,Q,O),N=0,u=!1,F=J(F,Q,O),u=W):(N=0,F=J(F,Q,O),F=I(F,Q),N=1,u=!1,F=J(F,Q,O),u=W,F=I(F,Q))}}else N=0,F=J(F,Q,O);else N=o?1:0,F=J(F,Q,O);return F},this.__bidiEngine__.setOptions=function(F){F&&(i=F.isInputVisual,s=F.isOutputVisual,o=F.isInputRtl,l=F.isOutputRtl,u=F.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],A=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text,a=(r.x,r.y,r.options||{}),i=(r.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,A.setOptions(a),Object.prototype.toString.call(n)==="[object Array]"){var o=0;for(i=[],o=0;o<n.length;o+=1)Object.prototype.toString.call(n[o])==="[object Array]"?i.push([A.doBidiReorder(n[o][0]),n[o][1],n[o][2]]):i.push([A.doBidiReorder(n[o])]);r.text=i}else r.text=A.doBidiReorder(n);A.setOptions({isInputVisual:!0})}])}(vt),vt.API.TTFFont=function(){function t(e){var A;if(this.rawData=e,A=this.contents=new La(e),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new QD(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new dD(this.contents),this.head=new gD(this),this.name=new yD(this),this.cmap=new Vy(this),this.toUnicode={},this.hhea=new mD(this),this.maxp=new bD(this),this.hmtx=new ED(this),this.post=new BD(this),this.os2=new vD(this),this.loca=new ND(this),this.glyf=new CD(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,A,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var i,o,s,l;for(l=[],i=0,o=(s=this.bbox).length;i<o;i++)e=s[i],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(A=n>>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var A;return((A=this.cmap.unicode)!=null?A.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*A},t.prototype.widthOfString=function(e,A,r){var n,a,i,o;for(i=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)n=e.charCodeAt(a),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/A)||0;return i*(A/1e3)},t.prototype.lineHeight=function(e,A){var r;return A==null&&(A=!1),r=A?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t}();var gn,La=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var A,r;for(r=[],A=0;0<=e?A<e:A>e;A=0<=e?++A:--A)r[A]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var A,r,n;for(n=[],A=0,r=e.length;0<=r?A<r:A>r;A=0<=r?++A:--A)n.push(this.writeByte(e.charCodeAt(A)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,A,r,n,a,i,o,s;return e=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^A)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*A+1099511627776*r+4294967296*n+16777216*a+65536*i+256*o+s},t.prototype.writeLongLong=function(e){var A,r;return A=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var A,r;for(A=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)A.push(this.readByte());return A},t.prototype.write=function(e){var A,r,n,a;for(a=[],r=0,n=e.length;r<n;r++)A=e[r],a.push(this.writeByte(A));return a},t}(),dD=function(){var t;function e(A){var r,n,a;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)r={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(A){var r,n,a,i,o,s,l,u,d,g,h,y,w;for(w in h=Object.keys(A).length,s=Math.log(2),d=16*Math.floor(Math.log(h)/s),i=Math.floor(d/s),u=16*h-d,(n=new La).writeInt(this.scalarType),n.writeShort(h),n.writeShort(d),n.writeShort(i),n.writeShort(u),a=16*h,l=n.pos+a,o=null,y=[],A)for(g=A[w],n.writeString(w),n.writeInt(t(g)),n.writeInt(l),n.writeInt(g.length),y=y.concat(g),w==="head"&&(o=l),l+=g.length;l%4;)y.push(0),l++;return n.write(y),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(A){var r,n,a,i;for(A=My.call(A);A.length%4;)A.push(0);for(a=new La(A),n=0,r=0,i=A.length;r<i;r=r+=4)n+=a.readUInt32();return 4294967295&n},e}(),pD={}.hasOwnProperty,Hn=function(t,e){for(var A in e)pD.call(e,A)&&(t[A]=e[A]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};gn=function(){function t(e){var A;this.file=e,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var gD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="head",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},e.prototype.encode=function(A){var r;return(r=new La).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(A),r.writeShort(this.glyphDataFormat),r.data},e}(),Iy=function(){function t(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,w,b,B,E,N;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=A+e.readInt(),d=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),g=h/2,e.pos+=6,a=function(){var T,M;for(M=[],s=T=0;0<=g?T<g:T>g;s=0<=g?++T:--T)M.push(e.readUInt16());return M}(),e.pos+=2,w=function(){var T,M;for(M=[],s=T=0;0<=g?T<g:T>g;s=0<=g?++T:--T)M.push(e.readUInt16());return M}(),l=function(){var T,M;for(M=[],s=T=0;0<=g?T<g:T>g;s=0<=g?++T:--T)M.push(e.readUInt16());return M}(),u=function(){var T,M;for(M=[],s=T=0;0<=g?T<g:T>g;s=0<=g?++T:--T)M.push(e.readUInt16());return M}(),n=(this.length-e.pos+this.offset)/2,o=function(){var T,M;for(M=[],s=T=0;0<=n?T<n:T>n;s=0<=n?++T:--T)M.push(e.readUInt16());return M}(),s=B=0,N=a.length;B<N;s=++B)for(b=a[s],r=E=y=w[s];y<=b?E<=b:E>=b;r=y<=b?++E:--E)u[s]===0?i=r+l[s]:(i=o[u[s]/2+(r-y)-(g-s)]||0)!==0&&(i+=l[s]),this.codeMap[r]=65535&i}e.pos=d}return t.encode=function(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,w,b,B,E,N,T,M,H,I,L,P,J,F,Q,O,W,te,K,re,X,oe,$,ce,U,k,Z,G,ee,Ae,he,pe,Re,Se,De;switch(W=new La,i=Object.keys(e).sort(function(He,nt){return He-nt}),A){case"macroman":for(w=0,b=function(){var He=[];for(y=0;y<256;++y)He.push(0);return He}(),E={0:0},a={},te=0,oe=i.length;te<oe;te++)E[pe=e[n=i[te]]]==null&&(E[pe]=++w),a[n]={old:e[n],new:E[e[n]]},b[n]=E[e[n]];return W.writeUInt16(1),W.writeUInt16(0),W.writeUInt32(12),W.writeUInt16(0),W.writeUInt16(262),W.writeUInt16(0),W.write(b),{charMap:a,subtable:W.data,maxGlyphID:w+1};case"unicode":for(Q=[],d=[],N=0,E={},r={},B=l=null,K=0,$=i.length;K<$;K++)E[M=e[n=i[K]]]==null&&(E[M]=++N),r[n]={old:M,new:E[M]},o=E[M]-n,B!=null&&o===l||(B&&d.push(B),Q.push(n),l=o),B=n;for(B&&d.push(B),d.push(65535),Q.push(65535),J=2*(P=Q.length),L=2*Math.pow(Math.log(P)/Math.LN2,2),g=Math.log(L/2)/Math.LN2,I=2*P-L,s=[],H=[],h=[],y=re=0,ce=Q.length;re<ce;y=++re){if(F=Q[y],u=d[y],F===65535){s.push(0),H.push(0);break}if(F-(O=r[F].new)>=32768)for(s.push(0),H.push(2*(h.length+P-y)),n=X=F;F<=u?X<=u:X>=u;n=F<=u?++X:--X)h.push(r[n].new);else s.push(O-F),H.push(0)}for(W.writeUInt16(3),W.writeUInt16(1),W.writeUInt32(12),W.writeUInt16(4),W.writeUInt16(16+8*P+2*h.length),W.writeUInt16(0),W.writeUInt16(J),W.writeUInt16(L),W.writeUInt16(g),W.writeUInt16(I),Ae=0,U=d.length;Ae<U;Ae++)n=d[Ae],W.writeUInt16(n);for(W.writeUInt16(0),he=0,k=Q.length;he<k;he++)n=Q[he],W.writeUInt16(n);for(Re=0,Z=s.length;Re<Z;Re++)o=s[Re],W.writeUInt16(o);for(Se=0,G=H.length;Se<G;Se++)T=H[Se],W.writeUInt16(T);for(De=0,ee=h.length;De<ee;De++)w=h[De],W.writeUInt16(w);return{charMap:r,subtable:W.data,maxGlyphID:N+1}}},t}(),Vy=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="cmap",e.prototype.parse=function(A){var r,n,a;for(A.pos=this.offset,this.version=A.readUInt16(),a=A.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)r=new Iy(A,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(A,r){var n,a;return r==null&&(r="macroman"),n=Iy.encode(A,r),(a=new La).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},e}(),mD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="hhea",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},e}(),vD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="OS/2",e.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(A.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(A.readInt());return n}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(A.readInt());return n}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},e}(),BD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="post",e.prototype.parse=function(A){var r,n,a;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:break;case 131072:var i;for(n=A.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],a=[];A.pos<this.offset+this.length;)r=A.readByte(),a.push(this.names.push(A.readString(r)));return a;case 151552:return n=A.readUInt16(),this.offsets=A.read(n);case 196608:break;case 262144:return this.map=(function(){var o,s,l;for(l=[],i=o=0,s=this.file.maxp.numGlyphs;0<=s?o<s:o>s;i=0<=s?++o:--o)l.push(A.readUInt32());return l}).call(this)}},e}(),wD=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},yD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="name",e.prototype.parse=function(A){var r,n,a,i,o,s,l,u,d,g,h;for(A.pos=this.offset,A.readShort(),r=A.readShort(),s=A.readShort(),n=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)n.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+s+A.readShort()});for(l={},i=d=0,g=n.length;d<g;i=++d)a=n[i],A.pos=a.offset,u=A.readString(a.length),o=new wD(u,a),l[h=a.nameID]==null&&(l[h]=[]),l[a.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),bD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="maxp",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},e}(),ED=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="hmtx",e.prototype.parse=function(A){var r,n,a,i,o,s,l;for(A.pos=this.offset,this.metrics=[],r=0,s=this.file.hhea.numberOfMetrics;0<=s?r<s:r>s;r=0<=s?++r:--r)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=a?u<a:u>a;r=0<=a?++u:--u)d.push(A.readInt16());return d}(),this.widths=(function(){var u,d,g,h;for(h=[],u=0,d=(g=this.metrics).length;u<d;u++)i=g[u],h.push(i.advance);return h}).call(this),n=this.widths[this.widths.length-1],l=[],r=o=0;0<=a?o<a:o>a;r=0<=a?++o:--o)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},e}(),My=[].slice,CD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(A){var r,n,a,i,o,s,l,u,d,g;return A in this.cache?this.cache[A]:(i=this.file.loca,r=this.file.contents,n=i.indexOf(A),(a=i.lengthOf(A))===0?this.cache[A]=null:(r.pos=this.offset+n,o=(s=new La(r.read(a))).readShort(),u=s.readShort(),g=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[A]=o===-1?new FD(s,u,g,l,d):new UD(s,o,u,g,l,d),this.cache[A]))},e.prototype.encode=function(A,r,n){var a,i,o,s,l;for(o=[],i=[],s=0,l=r.length;s<l;s++)a=A[r[s]],i.push(o.length),a&&(o=o.concat(a.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),UD=function(){function t(e,A,r,n,a,i){this.raw=e,this.numberOfContours=A,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),FD=function(){function t(e,A,r,n,a){var i,o;for(this.raw=e,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var e,A,r;for(A=new La(My.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)A.pos=this.glyphOffsets[e];return A.data},t}(),ND=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Hn(e,gn),e.prototype.tag="loca",e.prototype.parse=function(A){var r,n;return A.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=2)i.push(2*A.readUInt16());return i}).call(this):(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=4)i.push(A.readUInt32());return i}).call(this)},e.prototype.indexOf=function(A){return this.offsets[A]},e.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},e.prototype.encode=function(A,r){for(var n=new Uint32Array(this.offsets.length),a=0,i=0,o=0;o<n.length;++o)if(n[o]=a,i<r.length&&r[i]==o){++i,n[o]=a;var s=this.offsets[o],l=this.offsets[o+1]-s;l>0&&(a+=l)}for(var u=new Array(4*n.length),d=0;d<n.length;++d)u[4*d+3]=255&n[d],u[4*d+2]=(65280&n[d])>>8,u[4*d+1]=(16711680&n[d])>>16,u[4*d]=(4278190080&n[d])>>24;return u},e}(),QD=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,A,r,n,a;for(A in n=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[A],e[A]=n[r];return e},t.prototype.glyphsFor=function(e){var A,r,n,a,i,o,s;for(n={},i=0,o=e.length;i<o;i++)n[a=e[i]]=this.font.glyf.glyphFor(a);for(a in A=[],n)(r=n[a])!=null&&r.compound&&A.push.apply(A,r.glyphIDs);if(A.length>0)for(a in s=this.glyphsFor(A))r=s[a],n[a]=r;return n},t.prototype.encode=function(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,w,b,B;for(n in r=Vy.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),h={0:0},B=r.charMap)h[(s=B[n]).old]=s.new;for(y in g=r.maxGlyphID,i)y in h||(h[y]=g++);return u=function(E){var N,T;for(N in T={},E)T[E[N]]=N;return T}(h),d=Object.keys(u).sort(function(E,N){return E-N}),w=function(){var E,N,T;for(T=[],E=0,N=d.length;E<N;E++)o=d[E],T.push(u[o]);return T}(),a=this.font.glyf.encode(i,w,h),l=this.font.loca.encode(a.offsets,w),b={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(A)},this.font.os2.exists&&(b["OS/2"]=this.font.os2.raw()),this.font.directory.encode(b)},t}();vt.API.PDFObject=function(){var t;function e(){}return t=function(A,r){return(Array(r+1).join("0")+A).slice(-r)},e.convert=function(A){var r,n,a,i;if(Array.isArray(A))return"["+function(){var o,s,l;for(l=[],o=0,s=A.length;o<s;o++)r=A[o],l.push(e.convert(r));return l}().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A!=null&&A.isString)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(n in a=["<<"],A)i=A[n],a.push("/"+n+" "+e.convert(i));return a.push(">>"),a.join(`
|
|
301
|
-
`)}return""+A},e}();const SD=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete?Promise.resolve():new Promise(n=>{r.onload=r.onerror=n}));return Promise.all(A)},TD=(t,e)=>{const A=JSON.parse(JSON.stringify(t||{})),r=A.items||[],n=(a,i)=>{if(Array.isArray(a)){const s=typeof i=="string"?i:" ";return a.map(u=>e&&e[u]!=null?String(e[u]):"").filter(u=>u!=="").join(s)}const o=a;return o&&e&&e[o]!=null?String(e[o]):""};return r.forEach(a=>{const i=a.props||{},o=i.FieldName,s=i.FieldConnector;if(o)switch(a.type){case"text":{const l=n(o,s),u=i.Title||"";i.Text=u?`${u}${l}`:l;break}case"barcode":{i.BarcodeValue=n(o,s);break}case"qrcode":{i.QRCodeValue=n(o,s);break}}}),A.items=r,A};async function xD(t,e,A={}){const{page:r,dpi:n,scale:a,pdf:i,returnType:o="base64",config:s={},format:l="pdf"}=A,u=TD(t,e),{default:d}=await Promise.resolve().then(()=>Gw),g=(r==null?void 0:r.widthMm)||u.printWidth||u.width||100,h=(r==null?void 0:r.heightMm)||u.printHeight||u.height||100,y=Math.max(1,Math.floor(lo(g))),w=Math.max(1,Math.floor(lo(h))),b=document.createElement("div");b.style.position="fixed",b.style.left="-10000px",b.style.top="0",b.style.width=y+"px",b.style.height=w+"px",b.style.overflow="hidden",b.style.opacity="1",b.style.pointerEvents="none",document.body.appendChild(b);const B=f.createApp({render(){return f.h(ll,{templateData:u})}});B.mount(b);try{await f.nextTick(),await new Promise(re=>setTimeout(re,200));const E=b.querySelector("#design")||b;if(!E)throw new Error("未找到设计画布元素 #design");await SD(E);const N=Math.max(window.devicePixelRatio||1,2),T=Number(a)>0?Number(a):(i==null?void 0:i.scale)||N*2,M=Math.min(2.5,Math.max(1.5,T)),H=!!(i!=null&&i.transparent),I=await d(E,{scale:M,useCORS:!0,allowTaint:!0,backgroundColor:H?null:"#ffffff",imageTimeout:15e3,logging:!1,removeContainer:!1,windowWidth:y,windowHeight:w}),L=H?"image/png":"image/jpeg",P=typeof(i==null?void 0:i.quality)=="number"?i.quality:.85,J=I.toDataURL(L,P);if(l==="png"){const re=J,X=re.split(",")[1]||"";return o==="dataUrl"?re:X}const F=(i==null?void 0:i.orientation)||(g>=h?"landscape":"portrait"),Q=(i==null?void 0:i.compress)!==void 0?i.compress:!0,O=new vt({orientation:F,unit:"mm",format:[g,h],compress:Q}),W=H?"PNG":"JPEG";O.addImage(J,W,0,0,g,h);const te=O.output("datauristring"),K=te.split(",")[1]||"";return o==="dataUrl"?te:K}finally{try{B.unmount()}catch{}b&&b.parentNode&&b.parentNode.removeChild(b)}}ll.install=t=>{t.component(ll.name||"TemplateDesigner",ll)};const Ly=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:4.2,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:10,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行&省略",value:2},{label:"不换行&隐藏",value:3}],default:2,hide:!0},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-GOLD"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,x1:0,y1:0,x2:15,y2:0,propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]}]}}},Symbol.toStringTag,{value:"Module"})),RD=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:4.2,rotation:0,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:10,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:10,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",LockAspectRatio:!0,lockAspectRatio:!0,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-GOLD"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function Oa(t){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(t)}function Np(t,e){return Np=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Np(t,e)}function ID(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(t,e,A){return ID()?Yu=Reflect.construct:Yu=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Np(l,i.prototype),l},Yu.apply(null,arguments)}function mn(t){return VD(t)||MD(t)||LD(t)||OD()}function VD(t){if(Array.isArray(t))return Qp(t)}function MD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LD(t,e){if(t){if(typeof t=="string")return Qp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return Qp(t,e)}}function Qp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function OD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
301
|
+
`)}return""+A},e}();const SD=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete?Promise.resolve():new Promise(n=>{r.onload=r.onerror=n}));return Promise.all(A)},TD=(t,e)=>{const A=JSON.parse(JSON.stringify(t||{})),r=A.items||[],n=(a,i)=>{if(Array.isArray(a)){const s=typeof i=="string"?i:" ";return a.map(u=>e&&e[u]!=null?String(e[u]):"").filter(u=>u!=="").join(s)}const o=a;return o&&e&&e[o]!=null?String(e[o]):""};return r.forEach(a=>{const i=a.props||{},o=i.FieldName,s=i.FieldConnector;if(o)switch(a.type){case"text":{const l=n(o,s),u=i.Title||"";i.Text=u?`${u}${l}`:l;break}case"barcode":{i.BarcodeValue=n(o,s);break}case"qrcode":{i.QRCodeValue=n(o,s);break}}}),A.items=r,A};async function xD(t,e,A={}){const{page:r,dpi:n,scale:a,pdf:i,returnType:o="base64",config:s={},format:l="pdf"}=A,u=TD(t,e),{default:d}=await Promise.resolve().then(()=>Gw),g=(r==null?void 0:r.widthMm)||u.printWidth||u.print_width||100,h=(r==null?void 0:r.heightMm)||u.printHeight||u.print_height||100,y=Math.max(1,Math.floor(lo(g))),w=Math.max(1,Math.floor(lo(h))),b=document.createElement("div");b.style.position="fixed",b.style.left="-10000px",b.style.top="0",b.style.width=y+"px",b.style.height=w+"px",b.style.overflow="hidden",b.style.opacity="1",b.style.pointerEvents="none",document.body.appendChild(b);const B=f.createApp({render(){return f.h(ll,{templateData:u})}});B.mount(b);try{await f.nextTick(),await new Promise(re=>setTimeout(re,200));const E=b.querySelector("#design")||b;if(!E)throw new Error("未找到设计画布元素 #design");await SD(E);const N=Math.max(window.devicePixelRatio||1,2),T=Number(a)>0?Number(a):(i==null?void 0:i.scale)||N*2,M=Math.min(2.5,Math.max(1.5,T)),H=!!(i!=null&&i.transparent),I=await d(E,{scale:M,useCORS:!0,allowTaint:!0,backgroundColor:H?null:"#ffffff",imageTimeout:15e3,logging:!1,removeContainer:!1,windowWidth:y,windowHeight:w}),L=H?"image/png":"image/jpeg",P=typeof(i==null?void 0:i.quality)=="number"?i.quality:.85,J=I.toDataURL(L,P);if(l==="png"){const re=J,X=re.split(",")[1]||"";return o==="dataUrl"?re:X}const F=(i==null?void 0:i.orientation)||(g>=h?"landscape":"portrait"),Q=(i==null?void 0:i.compress)!==void 0?i.compress:!0,O=new vt({orientation:F,unit:"mm",format:[g,h],compress:Q}),W=H?"PNG":"JPEG";O.addImage(J,W,0,0,g,h);const te=O.output("datauristring"),K=te.split(",")[1]||"";return o==="dataUrl"?te:K}finally{try{B.unmount()}catch{}b&&b.parentNode&&b.parentNode.removeChild(b)}}ll.install=t=>{t.component(ll.name||"TemplateDesigner",ll)};const Ly=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:4.2,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:10,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行&省略",value:2},{label:"不换行&隐藏",value:3}],default:2,hide:!0},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-GOLD"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,x1:0,y1:0,x2:15,y2:0,propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]}]}}},Symbol.toStringTag,{value:"Module"})),RD=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:4.2,rotation:0,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:10,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:10,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",LockAspectRatio:!0,lockAspectRatio:!0,propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-GOLD"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function Oa(t){"@babel/helpers - typeof";return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oa(t)}function Np(t,e){return Np=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Np(t,e)}function ID(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(t,e,A){return ID()?Yu=Reflect.construct:Yu=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Np(l,i.prototype),l},Yu.apply(null,arguments)}function mn(t){return VD(t)||MD(t)||LD(t)||OD()}function VD(t){if(Array.isArray(t))return Qp(t)}function MD(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LD(t,e){if(t){if(typeof t=="string")return Qp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return Qp(t,e)}}function Qp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function OD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
302
302
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var kD=Object.hasOwnProperty,Oy=Object.setPrototypeOf,HD=Object.isFrozen,DD=Object.getPrototypeOf,PD=Object.getOwnPropertyDescriptor,mr=Object.freeze,qr=Object.seal,WD=Object.create,ky=typeof Reflect<"u"&&Reflect,Xu=ky.apply,Sp=ky.construct;Xu||(Xu=function(e,A,r){return e.apply(A,r)}),mr||(mr=function(e){return e}),qr||(qr=function(e){return e}),Sp||(Sp=function(e,A){return Yu(e,mn(A))});var _D=$r(Array.prototype.forEach),Hy=$r(Array.prototype.pop),dl=$r(Array.prototype.push),qu=$r(String.prototype.toLowerCase),Tp=$r(String.prototype.toString),Dy=$r(String.prototype.match),vn=$r(String.prototype.replace),ZD=$r(String.prototype.indexOf),jD=$r(String.prototype.trim),$A=$r(RegExp.prototype.test),xp=JD(TypeError);function $r(t){return function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return Xu(t,e,r)}}function JD(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return Sp(t,A)}}function Nt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:qu,Oy&&Oy(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(HD(e)||(e[n]=i),a=i)}t[a]=!0}return t}function bi(t){var e=WD(null),A;for(A in t)Xu(kD,t,[A])===!0&&(e[A]=t[A]);return e}function $u(t,e){for(;t!==null;){var A=PD(t,e);if(A){if(A.get)return $r(A.get);if(typeof A.value=="function")return $r(A.value)}t=DD(t)}function r(n){return console.warn("fallback value for",n),null}return r}var Py=mr(["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","section","select","shadow","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"]),Rp=mr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ip=mr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),KD=mr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vp=mr(["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"]),GD=mr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wy=mr(["#text"]),_y=mr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Mp=mr(["accent-height","accumulate","additive","alignment-baseline","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","dur","edgemode","elevation","end","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","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","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","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","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","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"]),Zy=mr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),ef=mr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zD=qr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YD=qr(/<%[\w\W]*|[\w\W]*%>/gm),XD=qr(/\${[\w\W]*}/gm),qD=qr(/^data-[\-\w.\u00B7-\uFFFF]+$/),$D=qr(/^aria-[\-\w]+$/),eP=qr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tP=qr(/^(?:\w+script|data):/i),AP=qr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rP=qr(/^html$/i),nP=qr(/^[a-z][.\w]*(-[.\w]+)+$/i),aP=function(){return typeof window>"u"?null:window},iP=function(e,A){if(Oa(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";A.currentScript&&A.currentScript.hasAttribute(n)&&(r=A.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(o){return o},createScriptURL:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function jy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aP(),e=function(ae){return jy(ae)};if(e.version="2.5.8",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var A=t.document,r=t.document,n=t.DocumentFragment,a=t.HTMLTemplateElement,i=t.Node,o=t.Element,s=t.NodeFilter,l=t.NamedNodeMap,u=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,d=t.HTMLFormElement,g=t.DOMParser,h=t.trustedTypes,y=o.prototype,w=$u(y,"cloneNode"),b=$u(y,"nextSibling"),B=$u(y,"childNodes"),E=$u(y,"parentNode");if(typeof a=="function"){var N=r.createElement("template");N.content&&N.content.ownerDocument&&(r=N.content.ownerDocument)}var T=iP(h,A),M=T?T.createHTML(""):"",H=r,I=H.implementation,L=H.createNodeIterator,P=H.createDocumentFragment,J=H.getElementsByTagName,F=A.importNode,Q={};try{Q=bi(r).documentMode?r.documentMode:{}}catch{}var O={};e.isSupported=typeof E=="function"&&I&&I.createHTMLDocument!==void 0&&Q!==9;var W=zD,te=YD,K=XD,re=qD,X=$D,oe=tP,$=AP,ce=nP,U=eP,k=null,Z=Nt({},[].concat(mn(Py),mn(Rp),mn(Ip),mn(Vp),mn(Wy))),G=null,ee=Nt({},[].concat(mn(_y),mn(Mp),mn(Zy),mn(ef))),Ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,pe=null,Re=!0,Se=!0,De=!1,He=!0,nt=!1,Be=!0,Y=!1,it=!1,Je=!1,Fe=!1,Ve=!1,ke=!1,Oe=!0,We=!1,at="user-content-",rt=!0,lt=!1,dt={},Bt=null,ct=Nt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),gt=null,Pe=Nt({},["audio","video","img","source","image","track"]),Yt=null,Ft=Nt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",q="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",qe=be,Ye=!1,ze=null,Ke=Nt({},[ue,q,be],Tp),_e,ve=["application/xhtml+xml","text/html"],Me="text/html",Qe,ut=null,Tt=r.createElement("form"),Qt=function(ae){return ae instanceof RegExp||ae instanceof Function},Vt=function(ae){ut&&ut===ae||((!ae||Oa(ae)!=="object")&&(ae={}),ae=bi(ae),_e=ve.indexOf(ae.PARSER_MEDIA_TYPE)===-1?_e=Me:_e=ae.PARSER_MEDIA_TYPE,Qe=_e==="application/xhtml+xml"?Tp:qu,k="ALLOWED_TAGS"in ae?Nt({},ae.ALLOWED_TAGS,Qe):Z,G="ALLOWED_ATTR"in ae?Nt({},ae.ALLOWED_ATTR,Qe):ee,ze="ALLOWED_NAMESPACES"in ae?Nt({},ae.ALLOWED_NAMESPACES,Tp):Ke,Yt="ADD_URI_SAFE_ATTR"in ae?Nt(bi(Ft),ae.ADD_URI_SAFE_ATTR,Qe):Ft,gt="ADD_DATA_URI_TAGS"in ae?Nt(bi(Pe),ae.ADD_DATA_URI_TAGS,Qe):Pe,Bt="FORBID_CONTENTS"in ae?Nt({},ae.FORBID_CONTENTS,Qe):ct,he="FORBID_TAGS"in ae?Nt({},ae.FORBID_TAGS,Qe):{},pe="FORBID_ATTR"in ae?Nt({},ae.FORBID_ATTR,Qe):{},dt="USE_PROFILES"in ae?ae.USE_PROFILES:!1,Re=ae.ALLOW_ARIA_ATTR!==!1,Se=ae.ALLOW_DATA_ATTR!==!1,De=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,He=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nt=ae.SAFE_FOR_TEMPLATES||!1,Be=ae.SAFE_FOR_XML!==!1,Y=ae.WHOLE_DOCUMENT||!1,Fe=ae.RETURN_DOM||!1,Ve=ae.RETURN_DOM_FRAGMENT||!1,ke=ae.RETURN_TRUSTED_TYPE||!1,Je=ae.FORCE_BODY||!1,Oe=ae.SANITIZE_DOM!==!1,We=ae.SANITIZE_NAMED_PROPS||!1,rt=ae.KEEP_CONTENT!==!1,lt=ae.IN_PLACE||!1,U=ae.ALLOWED_URI_REGEXP||U,qe=ae.NAMESPACE||be,Ae=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&Qt(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&Qt(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ae.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),nt&&(Se=!1),Ve&&(Fe=!0),dt&&(k=Nt({},mn(Wy)),G=[],dt.html===!0&&(Nt(k,Py),Nt(G,_y)),dt.svg===!0&&(Nt(k,Rp),Nt(G,Mp),Nt(G,ef)),dt.svgFilters===!0&&(Nt(k,Ip),Nt(G,Mp),Nt(G,ef)),dt.mathMl===!0&&(Nt(k,Vp),Nt(G,Zy),Nt(G,ef))),ae.ADD_TAGS&&(k===Z&&(k=bi(k)),Nt(k,ae.ADD_TAGS,Qe)),ae.ADD_ATTR&&(G===ee&&(G=bi(G)),Nt(G,ae.ADD_ATTR,Qe)),ae.ADD_URI_SAFE_ATTR&&Nt(Yt,ae.ADD_URI_SAFE_ATTR,Qe),ae.FORBID_CONTENTS&&(Bt===ct&&(Bt=bi(Bt)),Nt(Bt,ae.FORBID_CONTENTS,Qe)),rt&&(k["#text"]=!0),Y&&Nt(k,["html","head","body"]),k.table&&(Nt(k,["tbody"]),delete he.tbody),mr&&mr(ae),ut=ae)},Lt=Nt({},["mi","mo","mn","ms","mtext"]),$e=Nt({},["annotation-xml"]),Ht=Nt({},["title","style","font","a","script"]),_t=Nt({},Rp);Nt(_t,Ip),Nt(_t,KD);var tA=Nt({},Vp);Nt(tA,GD);var Xt=function(ae){var Ie=E(ae);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:qe,tagName:"template"});var Ze=qu(ae.tagName),It=qu(Ie.tagName);return ze[ae.namespaceURI]?ae.namespaceURI===q?Ie.namespaceURI===be?Ze==="svg":Ie.namespaceURI===ue?Ze==="svg"&&(It==="annotation-xml"||Lt[It]):!!_t[Ze]:ae.namespaceURI===ue?Ie.namespaceURI===be?Ze==="math":Ie.namespaceURI===q?Ze==="math"&&$e[It]:!!tA[Ze]:ae.namespaceURI===be?Ie.namespaceURI===q&&!$e[It]||Ie.namespaceURI===ue&&!Lt[It]?!1:!tA[Ze]&&(Ht[Ze]||!_t[Ze]):!!(_e==="application/xhtml+xml"&&ze[ae.namespaceURI]):!1},St=function(ae){dl(e.removed,{element:ae});try{ae.parentNode.removeChild(ae)}catch{try{ae.outerHTML=M}catch{ae.remove()}}},Kt=function(ae,Ie){try{dl(e.removed,{attribute:Ie.getAttributeNode(ae),from:Ie})}catch{dl(e.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(ae),ae==="is"&&!G[ae])if(Fe||Ve)try{St(Ie)}catch{}else try{Ie.setAttribute(ae,"")}catch{}},Pr=function(ae){var Ie,Ze;if(Je)ae="<remove></remove>"+ae;else{var It=Dy(ae,/^[\r\n\t ]+/);Ze=It&&It[0]}_e==="application/xhtml+xml"&&qe===be&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");var KA=T?T.createHTML(ae):ae;if(qe===be)try{Ie=new g().parseFromString(KA,_e)}catch{}if(!Ie||!Ie.documentElement){Ie=I.createDocument(qe,"template",null);try{Ie.documentElement.innerHTML=Ye?M:KA}catch{}}var cA=Ie.body||Ie.documentElement;return ae&&Ze&&cA.insertBefore(r.createTextNode(Ze),cA.childNodes[0]||null),qe===be?J.call(Ie,Y?"html":"body")[0]:Y?Ie.documentElement:cA},kA=function(ae){return L.call(ae.ownerDocument||ae,ae,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},RA=function(ae){return ae instanceof d&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof u)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},HA=function(ae){return Oa(i)==="object"?ae instanceof i:ae&&Oa(ae)==="object"&&typeof ae.nodeType=="number"&&typeof ae.nodeName=="string"},qt=function(ae,Ie,Ze){O[ae]&&_D(O[ae],function(It){It.call(e,Ie,Ze,ut)})},DA=function(ae){var Ie;if(qt("beforeSanitizeElements",ae,null),RA(ae)||$A(/[\u0080-\uFFFF]/,ae.nodeName))return St(ae),!0;var Ze=Qe(ae.nodeName);if(qt("uponSanitizeElement",ae,{tagName:Ze,allowedTags:k}),ae.hasChildNodes()&&!HA(ae.firstElementChild)&&(!HA(ae.content)||!HA(ae.content.firstElementChild))&&$A(/<[/\w]/g,ae.innerHTML)&&$A(/<[/\w]/g,ae.textContent)||Ze==="select"&&$A(/<template/i,ae.innerHTML)||ae.nodeType===7||Be&&ae.nodeType===8&&$A(/<[/\w]/g,ae.data))return St(ae),!0;if(!k[Ze]||he[Ze]){if(!he[Ze]&&JA(Ze)&&(Ae.tagNameCheck instanceof RegExp&&$A(Ae.tagNameCheck,Ze)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(Ze)))return!1;if(rt&&!Bt[Ze]){var It=E(ae)||ae.parentNode,KA=B(ae)||ae.childNodes;if(KA&&It)for(var cA=KA.length,gA=cA-1;gA>=0;--gA){var Un=w(KA[gA],!0);Un.__removalCount=(ae.__removalCount||0)+1,It.insertBefore(Un,b(ae))}}return St(ae),!0}return ae instanceof o&&!Xt(ae)||(Ze==="noscript"||Ze==="noembed"||Ze==="noframes")&&$A(/<\/no(script|embed|frames)/i,ae.innerHTML)?(St(ae),!0):(nt&&ae.nodeType===3&&(Ie=ae.textContent,Ie=vn(Ie,W," "),Ie=vn(Ie,te," "),Ie=vn(Ie,K," "),ae.textContent!==Ie&&(dl(e.removed,{element:ae.cloneNode()}),ae.textContent=Ie)),qt("afterSanitizeElements",ae,null),!1)},IA=function(ae,Ie,Ze){if(Oe&&(Ie==="id"||Ie==="name")&&(Ze in r||Ze in Tt))return!1;if(!(Se&&!pe[Ie]&&$A(re,Ie))){if(!(Re&&$A(X,Ie))){if(!G[Ie]||pe[Ie]){if(!(JA(ae)&&(Ae.tagNameCheck instanceof RegExp&&$A(Ae.tagNameCheck,ae)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(ae))&&(Ae.attributeNameCheck instanceof RegExp&&$A(Ae.attributeNameCheck,Ie)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(Ie))||Ie==="is"&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&$A(Ae.tagNameCheck,Ze)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(Ze))))return!1}else if(!Yt[Ie]){if(!$A(U,vn(Ze,$,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&ae!=="script"&&ZD(Ze,"data:")===0&>[ae])){if(!(De&&!$A(oe,vn(Ze,$,"")))){if(Ze)return!1}}}}}}return!0},JA=function(ae){return ae!=="annotation-xml"&&Dy(ae,ce)},Sr=function(ae){var Ie,Ze,It,KA;qt("beforeSanitizeAttributes",ae,null);var cA=ae.attributes;if(!(!cA||RA(ae))){var gA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(KA=cA.length;KA--;){Ie=cA[KA];var Un=Ie,iA=Un.name,Li=Un.namespaceURI;if(Ze=iA==="value"?Ie.value:jD(Ie.value),It=Qe(iA),gA.attrName=It,gA.attrValue=Ze,gA.keepAttr=!0,gA.forceKeepAttr=void 0,qt("uponSanitizeAttribute",ae,gA),Ze=gA.attrValue,!gA.forceKeepAttr&&(Kt(iA,ae),!!gA.keepAttr)){if(!He&&$A(/\/>/i,Ze)){Kt(iA,ae);continue}nt&&(Ze=vn(Ze,W," "),Ze=vn(Ze,te," "),Ze=vn(Ze,K," "));var Oi=Qe(ae.nodeName);if(IA(Oi,It,Ze)){if(We&&(It==="id"||It==="name")&&(Kt(iA,ae),Ze=at+Ze),Be&&$A(/((--!?|])>)|<\/(style|title)/i,Ze)){Kt(iA,ae);continue}if(T&&Oa(h)==="object"&&typeof h.getAttributeType=="function"&&!Li)switch(h.getAttributeType(Oi,It)){case"TrustedHTML":{Ze=T.createHTML(Ze);break}case"TrustedScriptURL":{Ze=T.createScriptURL(Ze);break}}try{Li?ae.setAttributeNS(Li,iA,Ze):ae.setAttribute(iA,Ze),RA(ae)?St(ae):Hy(e.removed)}catch{}}}}qt("afterSanitizeAttributes",ae,null)}},Wn=function ot(ae){var Ie,Ze=kA(ae);for(qt("beforeSanitizeShadowDOM",ae,null);Ie=Ze.nextNode();)qt("uponSanitizeShadowNode",Ie,null),DA(Ie),Sr(Ie),Ie.content instanceof n&&ot(Ie.content);qt("afterSanitizeShadowDOM",ae,null)};return e.sanitize=function(ot){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie,Ze,It,KA,cA;if(Ye=!ot,Ye&&(ot="<!-->"),typeof ot!="string"&&!HA(ot))if(typeof ot.toString=="function"){if(ot=ot.toString(),typeof ot!="string")throw xp("dirty is not a string, aborting")}else throw xp("toString is not a function");if(!e.isSupported){if(Oa(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof ot=="string")return t.toStaticHTML(ot);if(HA(ot))return t.toStaticHTML(ot.outerHTML)}return ot}if(it||Vt(ae),e.removed=[],typeof ot=="string"&&(lt=!1),lt){if(ot.nodeName){var gA=Qe(ot.nodeName);if(!k[gA]||he[gA])throw xp("root node is forbidden and cannot be sanitized in-place")}}else if(ot instanceof i)Ie=Pr("<!---->"),Ze=Ie.ownerDocument.importNode(ot,!0),Ze.nodeType===1&&Ze.nodeName==="BODY"||Ze.nodeName==="HTML"?Ie=Ze:Ie.appendChild(Ze);else{if(!Fe&&!nt&&!Y&&ot.indexOf("<")===-1)return T&&ke?T.createHTML(ot):ot;if(Ie=Pr(ot),!Ie)return Fe?null:ke?M:""}Ie&&Je&&St(Ie.firstChild);for(var Un=kA(lt?ot:Ie);It=Un.nextNode();)It.nodeType===3&&It===KA||(DA(It),Sr(It),It.content instanceof n&&Wn(It.content),KA=It);if(KA=null,lt)return ot;if(Fe){if(Ve)for(cA=P.call(Ie.ownerDocument);Ie.firstChild;)cA.appendChild(Ie.firstChild);else cA=Ie;return(G.shadowroot||G.shadowrootmod)&&(cA=F.call(A,cA,!0)),cA}var iA=Y?Ie.outerHTML:Ie.innerHTML;return Y&&k["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&$A(rP,Ie.ownerDocument.doctype.name)&&(iA="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
|
|
303
303
|
`+iA),nt&&(iA=vn(iA,W," "),iA=vn(iA,te," "),iA=vn(iA,K," ")),T&&ke?T.createHTML(iA):iA},e.setConfig=function(ot){Vt(ot),it=!0},e.clearConfig=function(){ut=null,it=!1},e.isValidAttribute=function(ot,ae,Ie){ut||Vt({});var Ze=Qe(ot),It=Qe(ae);return IA(Ze,It,Ie)},e.addHook=function(ot,ae){typeof ae=="function"&&(O[ot]=O[ot]||[],dl(O[ot],ae))},e.removeHook=function(ot){if(O[ot])return Hy(O[ot])},e.removeHooks=function(ot){O[ot]&&(O[ot]=[])},e.removeAllHooks=function(){O={}},e}var oP=jy();const sP=Object.freeze(Object.defineProperty({__proto__:null,default:oP},Symbol.toStringTag,{value:"Module"}));var pl=function(t){return t&&t.Math===Math&&t},sA=pl(typeof globalThis=="object"&&globalThis)||pl(typeof window=="object"&&window)||pl(typeof self=="object"&&self)||pl(typeof Xi=="object"&&Xi)||pl(typeof Xi=="object"&&Xi)||function(){return this}()||Function("return this")(),gl={},hA=function(t){try{return!!t()}catch{return!0}},lP=hA,Bn=!lP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),cP=hA,tf=!cP(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),uP=tf,Af=Function.prototype.call,er=uP?Af.bind(Af):function(){return Af.apply(Af,arguments)},Jy={},Ky={}.propertyIsEnumerable,Gy=Object.getOwnPropertyDescriptor,fP=Gy&&!Ky.call({1:2},1);Jy.f=fP?function(e){var A=Gy(this,e);return!!A&&A.enumerable}:Ky;var Lp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},zy=tf,Yy=Function.prototype,Op=Yy.call,hP=zy&&Yy.bind.bind(Op,Op),dA=zy?hP:function(t){return function(){return Op.apply(t,arguments)}},Xy=dA,dP=Xy({}.toString),pP=Xy("".slice),Ei=function(t){return pP(dP(t),8,-1)},gP=dA,mP=hA,vP=Ei,kp=Object,BP=gP("".split),qy=mP(function(){return!kp("z").propertyIsEnumerable(0)})?function(t){return vP(t)==="String"?BP(t,""):kp(t)}:kp,rf=function(t){return t==null},wP=rf,yP=TypeError,wn=function(t){if(wP(t))throw new yP("Can't call method on "+t);return t},bP=qy,EP=wn,ml=function(t){return bP(EP(t))},Hp=typeof document=="object"&&document.all,UA=typeof Hp>"u"&&Hp!==void 0?function(t){return typeof t=="function"||t===Hp}:function(t){return typeof t=="function"},CP=UA,Nr=function(t){return typeof t=="object"?t!==null:CP(t)},Dp=sA,UP=UA,FP=function(t){return UP(t)?t:void 0},Ci=function(t,e){return arguments.length<2?FP(Dp[t]):Dp[t]&&Dp[t][e]},NP=dA,nf=NP({}.isPrototypeOf),QP=sA,$y=QP.navigator,e5=$y&&$y.userAgent,vl=e5?String(e5):"",t5=sA,Pp=vl,A5=t5.process,r5=t5.Deno,n5=A5&&A5.versions||r5&&r5.version,a5=n5&&n5.v8,yn,af;a5&&(yn=a5.split("."),af=yn[0]>0&&yn[0]<4?1:+(yn[0]+yn[1])),!af&&Pp&&(yn=Pp.match(/Edge\/(\d+)/),(!yn||yn[1]>=74)&&(yn=Pp.match(/Chrome\/(\d+)/),yn&&(af=+yn[1])));var Wp=af,i5=Wp,SP=hA,TP=sA,xP=TP.String,o5=!!Object.getOwnPropertySymbols&&!SP(function(){var t=Symbol("symbol detection");return!xP(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i5&&i5<41}),RP=o5,s5=RP&&!Symbol.sham&&typeof Symbol.iterator=="symbol",IP=Ci,VP=UA,MP=nf,LP=s5,OP=Object,l5=LP?function(t){return typeof t=="symbol"}:function(t){var e=IP("Symbol");return VP(e)&&MP(e.prototype,OP(t))},kP=String,of=function(t){try{return kP(t)}catch{return"Object"}},HP=UA,DP=of,PP=TypeError,ea=function(t){if(HP(t))return t;throw new PP(DP(t)+" is not a function")},WP=ea,_P=rf,Oo=function(t,e){var A=t[e];return _P(A)?void 0:WP(A)},_p=er,Zp=UA,jp=Nr,ZP=TypeError,jP=function(t,e){var A,r;if(e==="string"&&Zp(A=t.toString)&&!jp(r=_p(A,t))||Zp(A=t.valueOf)&&!jp(r=_p(A,t))||e!=="string"&&Zp(A=t.toString)&&!jp(r=_p(A,t)))return r;throw new ZP("Can't convert object to primitive value")},c5={exports:{}},u5=sA,JP=Object.defineProperty,Jp=function(t,e){try{JP(u5,t,{value:e,configurable:!0,writable:!0})}catch{u5[t]=e}return e},KP=sA,GP=Jp,f5="__core-js_shared__",h5=c5.exports=KP[f5]||GP(f5,{});(h5.versions||(h5.versions=[])).push({version:"3.45.1",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Kp=c5.exports,d5=Kp,Gp=function(t,e){return d5[t]||(d5[t]=e||{})},zP=wn,YP=Object,sf=function(t){return YP(zP(t))},XP=dA,qP=sf,$P=XP({}.hasOwnProperty),bn=Object.hasOwn||function(e,A){return $P(qP(e),A)},eW=dA,tW=0,AW=Math.random(),rW=eW(1.1.toString),p5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+rW(++tW+AW,36)},nW=sA,aW=Gp,g5=bn,iW=p5,oW=o5,sW=s5,ko=nW.Symbol,zp=aW("wks"),lW=sW?ko.for||ko:ko&&ko.withoutSetter||iW,jA=function(t){return g5(zp,t)||(zp[t]=oW&&g5(ko,t)?ko[t]:lW("Symbol."+t)),zp[t]},cW=er,m5=Nr,v5=l5,uW=Oo,fW=jP,hW=jA,dW=TypeError,pW=hW("toPrimitive"),gW=function(t,e){if(!m5(t)||v5(t))return t;var A=uW(t,pW),r;if(A){if(e===void 0&&(e="default"),r=cW(A,t,e),!m5(r)||v5(r))return r;throw new dW("Can't convert object to primitive value")}return e===void 0&&(e="number"),fW(t,e)},mW=gW,vW=l5,B5=function(t){var e=mW(t,"string");return vW(e)?e:e+""},BW=sA,w5=Nr,Yp=BW.document,wW=w5(Yp)&&w5(Yp.createElement),lf=function(t){return wW?Yp.createElement(t):{}},yW=Bn,bW=hA,EW=lf,y5=!yW&&!bW(function(){return Object.defineProperty(EW("div"),"a",{get:function(){return 7}}).a!==7}),CW=Bn,UW=er,FW=Jy,NW=Lp,QW=ml,SW=B5,TW=bn,xW=y5,b5=Object.getOwnPropertyDescriptor;gl.f=CW?b5:function(e,A){if(e=QW(e),A=SW(A),xW)try{return b5(e,A)}catch{}if(TW(e,A))return NW(!UW(FW.f,e,A),e[A])};var ta={},RW=Bn,IW=hA,E5=RW&&IW(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),VW=Nr,MW=String,LW=TypeError,vr=function(t){if(VW(t))return t;throw new LW(MW(t)+" is not an object")},OW=Bn,kW=y5,HW=E5,cf=vr,C5=B5,DW=TypeError,Xp=Object.defineProperty,PW=Object.getOwnPropertyDescriptor,qp="enumerable",$p="configurable",e1="writable";ta.f=OW?HW?function(e,A,r){if(cf(e),A=C5(A),cf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&e1 in r&&!r[e1]){var n=PW(e,A);n&&n[e1]&&(e[A]=r.value,r={configurable:$p in r?r[$p]:n[$p],enumerable:qp in r?r[qp]:n[qp],writable:!1})}return Xp(e,A,r)}:Xp:function(e,A,r){if(cf(e),A=C5(A),cf(r),kW)try{return Xp(e,A,r)}catch{}if("get"in r||"set"in r)throw new DW("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var WW=Bn,_W=ta,ZW=Lp,Bl=WW?function(t,e,A){return _W.f(t,e,ZW(1,A))}:function(t,e,A){return t[e]=A,t},U5={exports:{}},t1=Bn,jW=bn,F5=Function.prototype,JW=t1&&Object.getOwnPropertyDescriptor,A1=jW(F5,"name"),KW=A1&&(function(){}).name==="something",GW=A1&&(!t1||t1&&JW(F5,"name").configurable),uf={EXISTS:A1,PROPER:KW,CONFIGURABLE:GW},zW=dA,YW=UA,r1=Kp,XW=zW(Function.toString);YW(r1.inspectSource)||(r1.inspectSource=function(t){return XW(t)});var n1=r1.inspectSource,qW=sA,$W=UA,N5=qW.WeakMap,e_=$W(N5)&&/native code/.test(String(N5)),t_=Gp,A_=p5,Q5=t_("keys"),a1=function(t){return Q5[t]||(Q5[t]=A_(t))},i1={},r_=e_,S5=sA,n_=Nr,a_=Bl,o1=bn,s1=Kp,i_=a1,o_=i1,T5="Object already initialized",l1=S5.TypeError,s_=S5.WeakMap,ff,wl,hf,l_=function(t){return hf(t)?wl(t):ff(t,{})},c_=function(t){return function(e){var A;if(!n_(e)||(A=wl(e)).type!==t)throw new l1("Incompatible receiver, "+t+" required");return A}};if(r_||s1.state){var Dn=s1.state||(s1.state=new s_);Dn.get=Dn.get,Dn.has=Dn.has,Dn.set=Dn.set,ff=function(t,e){if(Dn.has(t))throw new l1(T5);return e.facade=t,Dn.set(t,e),e},wl=function(t){return Dn.get(t)||{}},hf=function(t){return Dn.has(t)}}else{var Ho=i_("state");o_[Ho]=!0,ff=function(t,e){if(o1(t,Ho))throw new l1(T5);return e.facade=t,a_(t,Ho,e),e},wl=function(t){return o1(t,Ho)?t[Ho]:{}},hf=function(t){return o1(t,Ho)}}var df={set:ff,get:wl,has:hf,enforce:l_,getterFor:c_},c1=dA,u_=hA,f_=UA,pf=bn,u1=Bn,h_=uf.CONFIGURABLE,d_=n1,x5=df,p_=x5.enforce,g_=x5.get,R5=String,gf=Object.defineProperty,m_=c1("".slice),v_=c1("".replace),B_=c1([].join),w_=u1&&!u_(function(){return gf(function(){},"length",{value:8}).length!==8}),y_=String(String).split("String"),b_=U5.exports=function(t,e,A){m_(R5(e),0,7)==="Symbol("&&(e="["+v_(R5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!pf(t,"name")||h_&&t.name!==e)&&(u1?gf(t,"name",{value:e,configurable:!0}):t.name=e),w_&&A&&pf(A,"arity")&&t.length!==A.arity&&gf(t,"length",{value:A.arity});try{A&&pf(A,"constructor")&&A.constructor?u1&&gf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=p_(t);return pf(r,"source")||(r.source=B_(y_,typeof e=="string"?e:"")),t};Function.prototype.toString=b_(function(){return f_(this)&&g_(this).source||d_(this)},"toString");var I5=U5.exports,E_=UA,C_=ta,U_=I5,F_=Jp,Ui=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(E_(A)&&U_(A,a,r),r.global)n?t[e]=A:F_(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:C_.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},V5={},N_=Math.ceil,Q_=Math.floor,S_=Math.trunc||function(e){var A=+e;return(A>0?Q_:N_)(A)},T_=S_,mf=function(t){var e=+t;return e!==e||e===0?0:T_(e)},x_=mf,R_=Math.max,I_=Math.min,V_=function(t,e){var A=x_(t);return A<0?R_(A+e,0):I_(A,e)},M_=mf,L_=Math.min,Do=function(t){var e=M_(t);return e>0?L_(e,9007199254740991):0},O_=Do,f1=function(t){return O_(t.length)},k_=ml,H_=V_,D_=f1,M5=function(t){return function(e,A,r){var n=k_(e),a=D_(n);if(a===0)return!t&&-1;var i=H_(r,a),o;if(t&&A!==A){for(;a>i;)if(o=n[i++],o!==o)return!0}else for(;a>i;i++)if((t||i in n)&&n[i]===A)return t||i||0;return!t&&-1}},L5={includes:M5(!0),indexOf:M5(!1)},P_=dA,h1=bn,W_=ml,__=L5.indexOf,Z_=i1,O5=P_([].push),k5=function(t,e){var A=W_(t),r=0,n=[],a;for(a in A)!h1(Z_,a)&&h1(A,a)&&O5(n,a);for(;e.length>r;)h1(A,a=e[r++])&&(~__(n,a)||O5(n,a));return n},d1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],j_=k5,J_=d1,K_=J_.concat("length","prototype");V5.f=Object.getOwnPropertyNames||function(e){return j_(e,K_)};var H5={};H5.f=Object.getOwnPropertySymbols;var G_=Ci,z_=dA,Y_=V5,X_=H5,q_=vr,$_=z_([].concat),e7=G_("Reflect","ownKeys")||function(e){var A=Y_.f(q_(e)),r=X_.f;return r?$_(A,r(e)):A},D5=bn,t7=e7,A7=gl,r7=ta,n7=function(t,e,A){for(var r=t7(e),n=r7.f,a=A7.f,i=0;i<r.length;i++){var o=r[i];!D5(t,o)&&!(A&&D5(A,o))&&n(t,o,a(e,o))}},a7=hA,i7=UA,o7=/#|\.prototype\./,yl=function(t,e){var A=l7[s7(t)];return A===u7?!0:A===c7?!1:i7(e)?a7(e):!!e},s7=yl.normalize=function(t){return String(t).replace(o7,".").toLowerCase()},l7=yl.data={},c7=yl.NATIVE="N",u7=yl.POLYFILL="P",P5=yl,vf=sA,f7=gl.f,h7=Bl,d7=Ui,p7=Jp,g7=n7,m7=P5,Br=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=vf:n?i=vf[A]||p7(A,{}):i=vf[A]&&vf[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=f7(i,o),s=u&&u.value):s=i[o],a=m7(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;g7(l,s)}(t.sham||s&&s.sham)&&h7(l,"sham",!0),d7(i,o,l,t)}},bl=sA,v7=vl,B7=Ei,Bf=function(t){return v7.slice(0,t.length)===t},W5=function(){return Bf("Bun/")?"BUN":Bf("Cloudflare-Workers")?"CLOUDFLARE":Bf("Deno/")?"DENO":Bf("Node.js/")?"NODE":bl.Bun&&typeof Bun.version=="string"?"BUN":bl.Deno&&typeof Deno.version=="object"?"DENO":B7(bl.process)==="process"?"NODE":bl.window&&bl.document?"BROWSER":"REST"}(),w7=W5,wf=w7==="NODE",y7=sA,b7=y7,E7=dA,C7=ea,U7=function(t,e,A){try{return E7(C7(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},F7=Nr,N7=function(t){return F7(t)||t===null},Q7=N7,S7=String,T7=TypeError,x7=function(t){if(Q7(t))return t;throw new T7("Can't set "+S7(t)+" as a prototype")},R7=U7,I7=Nr,V7=wn,M7=x7,_5=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=R7(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return V7(n),M7(a),I7(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),L7=ta.f,O7=bn,k7=jA,Z5=k7("toStringTag"),yf=function(t,e,A){t&&!A&&(t=t.prototype),t&&!O7(t,Z5)&&L7(t,Z5,{configurable:!0,value:e})},j5=I5,H7=ta,D7=function(t,e,A){return A.get&&j5(A.get,e,{getter:!0}),A.set&&j5(A.set,e,{setter:!0}),H7.f(t,e,A)},P7=Ci,W7=D7,_7=jA,Z7=Bn,J5=_7("species"),j7=function(t){var e=P7(t);Z7&&e&&!e[J5]&&W7(e,J5,{configurable:!0,get:function(){return this}})},J7=nf,K7=TypeError,G7=function(t,e){if(J7(e,t))return t;throw new K7("Incorrect invocation")},z7=jA,Y7=z7("toStringTag"),K5={};K5[Y7]="z";var X7=String(K5)==="[object z]",q7=X7,$7=UA,bf=Ei,eZ=jA,tZ=eZ("toStringTag"),AZ=Object,rZ=bf(function(){return arguments}())==="Arguments",nZ=function(t,e){try{return t[e]}catch{}},p1=q7?bf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=nZ(e=AZ(t),tZ))=="string"?A:rZ?bf(e):(r=bf(e))==="Object"&&$7(e.callee)?"Arguments":r},aZ=dA,iZ=hA,G5=UA,oZ=p1,sZ=Ci,lZ=n1,z5=function(){},Y5=sZ("Reflect","construct"),g1=/^\s*(?:class|function)\b/,cZ=aZ(g1.exec),uZ=!g1.test(z5),El=function(e){if(!G5(e))return!1;try{return Y5(z5,[],e),!0}catch{return!1}},X5=function(e){if(!G5(e))return!1;switch(oZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return uZ||!!cZ(g1,lZ(e))}catch{return!0}};X5.sham=!0;var fZ=!Y5||iZ(function(){var t;return El(El.call)||!El(Object)||!El(function(){t=!0})||t})?X5:El,hZ=fZ,dZ=of,pZ=TypeError,gZ=function(t){if(hZ(t))return t;throw new pZ(dZ(t)+" is not a constructor")},q5=vr,mZ=gZ,vZ=rf,BZ=jA,wZ=BZ("species"),$5=function(t,e){var A=q5(t).constructor,r;return A===void 0||vZ(r=q5(A)[wZ])?e:mZ(r)},yZ=tf,eb=Function.prototype,tb=eb.apply,Ab=eb.call,rb=typeof Reflect=="object"&&Reflect.apply||(yZ?Ab.bind(tb):function(){return Ab.apply(tb,arguments)}),bZ=Ei,EZ=dA,Ef=function(t){if(bZ(t)==="Function")return EZ(t)},nb=Ef,CZ=ea,UZ=tf,FZ=nb(nb.bind),m1=function(t,e){return CZ(t),e===void 0?t:UZ?FZ(t,e):function(){return t.apply(e,arguments)}},NZ=Ci,ab=NZ("document","documentElement"),QZ=dA,SZ=QZ([].slice),TZ=TypeError,xZ=function(t,e){if(t<e)throw new TZ("Not enough arguments");return t},RZ=vl,ib=/(?:ipad|iphone|ipod).*applewebkit/i.test(RZ),Dr=sA,IZ=rb,VZ=m1,ob=UA,MZ=bn,sb=hA,lb=ab,LZ=SZ,cb=lf,OZ=xZ,kZ=ib,HZ=wf,v1=Dr.setImmediate,B1=Dr.clearImmediate,DZ=Dr.process,w1=Dr.Dispatch,PZ=Dr.Function,ub=Dr.MessageChannel,WZ=Dr.String,y1=0,Cl={},fb="onreadystatechange",Ul,Fi,b1,E1;sb(function(){Ul=Dr.location});var C1=function(t){if(MZ(Cl,t)){var e=Cl[t];delete Cl[t],e()}},U1=function(t){return function(){C1(t)}},hb=function(t){C1(t.data)},db=function(t){Dr.postMessage(WZ(t),Ul.protocol+"//"+Ul.host)};(!v1||!B1)&&(v1=function(e){OZ(arguments.length,1);var A=ob(e)?e:PZ(e),r=LZ(arguments,1);return Cl[++y1]=function(){IZ(A,void 0,r)},Fi(y1),y1},B1=function(e){delete Cl[e]},HZ?Fi=function(t){DZ.nextTick(U1(t))}:w1&&w1.now?Fi=function(t){w1.now(U1(t))}:ub&&!kZ?(b1=new ub,E1=b1.port2,b1.port1.onmessage=hb,Fi=VZ(E1.postMessage,E1)):Dr.addEventListener&&ob(Dr.postMessage)&&!Dr.importScripts&&Ul&&Ul.protocol!=="file:"&&!sb(db)?(Fi=db,Dr.addEventListener("message",hb,!1)):fb in cb("script")?Fi=function(t){lb.appendChild(cb("script"))[fb]=function(){lb.removeChild(this),C1(t)}}:Fi=function(t){setTimeout(U1(t),0)});var pb={set:v1,clear:B1},gb=sA,_Z=Bn,ZZ=Object.getOwnPropertyDescriptor,jZ=function(t){if(!_Z)return gb[t];var e=ZZ(gb,t);return e&&e.value},mb=function(){this.head=null,this.tail=null};mb.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var vb=mb,JZ=vl,KZ=/ipad|iphone|ipod/i.test(JZ)&&typeof Pebble<"u",GZ=vl,zZ=/web0s(?!.*chrome)/i.test(GZ),Po=sA,YZ=jZ,Bb=m1,F1=pb.set,XZ=vb,qZ=ib,$Z=KZ,e9=zZ,N1=wf,wb=Po.MutationObserver||Po.WebKitMutationObserver,yb=Po.document,bb=Po.process,Cf=Po.Promise,Q1=YZ("queueMicrotask"),Wo,S1,T1,Uf,Eb;if(!Q1){var Ff=new XZ,Nf=function(){var t,e;for(N1&&(t=bb.domain)&&t.exit();e=Ff.get();)try{e()}catch(A){throw Ff.head&&Wo(),A}t&&t.enter()};!qZ&&!N1&&!e9&&wb&&yb?(S1=!0,T1=yb.createTextNode(""),new wb(Nf).observe(T1,{characterData:!0}),Wo=function(){T1.data=S1=!S1}):!$Z&&Cf&&Cf.resolve?(Uf=Cf.resolve(void 0),Uf.constructor=Cf,Eb=Bb(Uf.then,Uf),Wo=function(){Eb(Nf)}):N1?Wo=function(){bb.nextTick(Nf)}:(F1=Bb(F1,Po),Wo=function(){F1(Nf)}),Q1=function(t){Ff.head||Wo(),Ff.add(t)}}var t9=Q1,A9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},x1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},r9=sA,Qf=r9.Promise,n9=sA,Fl=Qf,a9=UA,i9=P5,o9=n1,s9=jA,Cb=W5,R1=Wp;Fl&&Fl.prototype;var l9=s9("species"),I1=!1,Ub=a9(n9.PromiseRejectionEvent),c9=i9("Promise",function(){var t=o9(Fl),e=t!==String(Fl);if(!e&&R1===66)return!0;if(!R1||R1<51||!/native code/.test(t)){var A=new Fl(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[l9]=r,I1=A.then(function(){})instanceof r,!I1)return!0}return!e&&(Cb==="BROWSER"||Cb==="DENO")&&!Ub}),Nl={CONSTRUCTOR:c9,REJECTION_EVENT:Ub,SUBCLASSING:I1},_o={},Fb=ea,u9=TypeError,f9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new u9("Bad Promise constructor");e=r,A=n}),this.resolve=Fb(e),this.reject=Fb(A)};_o.f=function(t){return new f9(t)};var h9=Br,Sf=wf,ka=sA,d9=b7,Zo=er,Nb=Ui,Qb=_5,p9=yf,g9=j7,m9=ea,Tf=UA,v9=Nr,B9=G7,w9=$5,Sb=pb.set,V1=t9,y9=A9,b9=x1,E9=vb,Tb=df,xf=Qf,M1=Nl,xb=_o,Rf="Promise",Rb=M1.CONSTRUCTOR,C9=M1.REJECTION_EVENT,U9=M1.SUBCLASSING,L1=Tb.getterFor(Rf),F9=Tb.set,jo=xf&&xf.prototype,Ni=xf,If=jo,Ib=ka.TypeError,O1=ka.document,k1=ka.process,H1=xb.f,N9=H1,Q9=!!(O1&&O1.createEvent&&ka.dispatchEvent),Vb="unhandledrejection",S9="rejectionhandled",Mb=0,Lb=1,T9=2,D1=1,Ob=2,Vf,kb,Hb,Db,Pb=function(t){var e;return v9(t)&&Tf(e=t.then)?e:!1},Wb=function(t,e){var A=e.value,r=e.state===Lb,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===Ob&&R9(e),e.rejection=D1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new Ib("Promise-chain cycle")):(l=Pb(s))?Zo(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},_b=function(t,e){t.notified||(t.notified=!0,V1(function(){for(var A=t.reactions,r;r=A.get();)Wb(r,t);t.notified=!1,e&&!t.rejection&&x9(t)}))},Zb=function(t,e,A){var r,n;Q9?(r=O1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),ka.dispatchEvent(r)):r={promise:e,reason:A},!C9&&(n=ka["on"+t])?n(r):t===Vb&&y9("Unhandled promise rejection",A)},x9=function(t){Zo(Sb,ka,function(){var e=t.facade,A=t.value,r=jb(t),n;if(r&&(n=b9(function(){Sf?k1.emit("unhandledRejection",A,e):Zb(Vb,e,A)}),t.rejection=Sf||jb(t)?Ob:D1,n.error))throw n.value})},jb=function(t){return t.rejection!==D1&&!t.parent},R9=function(t){Zo(Sb,ka,function(){var e=t.facade;Sf?k1.emit("rejectionHandled",e):Zb(S9,e,t.value)})},Jo=function(t,e,A){return function(r){t(e,r,A)}},Ko=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=T9,_b(t,!0))},P1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new Ib("Promise can't be resolved itself");var r=Pb(e);r?V1(function(){var n={done:!1};try{Zo(r,e,Jo(P1,n,t),Jo(Ko,n,t))}catch(a){Ko(n,a,t)}}):(t.value=e,t.state=Lb,_b(t,!1))}catch(n){Ko({done:!1},n,t)}}};if(Rb&&(Ni=function(e){B9(this,If),m9(e),Zo(Vf,this);var A=L1(this);try{e(Jo(P1,A),Jo(Ko,A))}catch(r){Ko(A,r)}},If=Ni.prototype,Vf=function(e){F9(this,{type:Rf,done:!1,notified:!1,parent:!1,reactions:new E9,rejection:!1,state:Mb,value:null})},Vf.prototype=Nb(If,"then",function(e,A){var r=L1(this),n=H1(w9(this,Ni));return r.parent=!0,n.ok=Tf(e)?e:!0,n.fail=Tf(A)&&A,n.domain=Sf?k1.domain:void 0,r.state===Mb?r.reactions.add(n):V1(function(){Wb(n,r)}),n.promise}),kb=function(){var t=new Vf,e=L1(t);this.promise=t,this.resolve=Jo(P1,e),this.reject=Jo(Ko,e)},xb.f=H1=function(t){return t===Ni||t===Hb?new kb(t):N9(t)},Tf(xf)&&jo!==Object.prototype)){Db=jo.then,U9||Nb(jo,"then",function(e,A){var r=this;return new Ni(function(n,a){Zo(Db,r,n,a)}).then(e,A)},{unsafe:!0});try{delete jo.constructor}catch{}Qb&&Qb(jo,If)}h9({global:!0,constructor:!0,wrap:!0,forced:Rb},{Promise:Ni}),Hb=d9.Promise,p9(Ni,Rf,!1),g9(Rf);var Ql={},I9=jA,V9=Ql,M9=I9("iterator"),L9=Array.prototype,O9=function(t){return t!==void 0&&(V9.Array===t||L9[M9]===t)},k9=p1,Jb=Oo,H9=rf,D9=Ql,P9=jA,W9=P9("iterator"),Kb=function(t){if(!H9(t))return Jb(t,W9)||Jb(t,"@@iterator")||D9[k9(t)]},_9=er,Z9=ea,j9=vr,J9=of,K9=Kb,G9=TypeError,z9=function(t,e){var A=arguments.length<2?K9(t):e;if(Z9(A))return j9(_9(A,t));throw new G9(J9(t)+" is not iterable")},Y9=er,Gb=vr,X9=Oo,q9=function(t,e,A){var r,n;Gb(t);try{if(r=X9(t,"return"),!r){if(e==="throw")throw A;return A}r=Y9(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return Gb(r),A},$9=m1,ej=er,tj=vr,Aj=of,rj=O9,nj=f1,zb=nf,aj=z9,ij=Kb,Yb=q9,oj=TypeError,Mf=function(t,e){this.stopped=t,this.result=e},Xb=Mf.prototype,qb=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),a=!!(A&&A.IS_RECORD),i=!!(A&&A.IS_ITERATOR),o=!!(A&&A.INTERRUPTED),s=$9(e,r),l,u,d,g,h,y,w,b=function(E){return l&&Yb(l,"normal"),new Mf(!0,E)},B=function(E){return n?(tj(E),o?s(E[0],E[1],b):s(E[0],E[1])):o?s(E,b):s(E)};if(a)l=t.iterator;else if(i)l=t;else{if(u=ij(t),!u)throw new oj(Aj(t)+" is not iterable");if(rj(u)){for(d=0,g=nj(t);g>d;d++)if(h=B(t[d]),h&&zb(Xb,h))return h;return new Mf(!1)}l=aj(t,u)}for(y=a?t.next:l.next;!(w=ej(y,l)).done;){try{h=B(w.value)}catch(E){Yb(l,"throw",E)}if(typeof h=="object"&&h&&zb(Xb,h))return h}return new Mf(!1)},sj=jA,$b=sj("iterator"),eE=!1;try{var lj=0,tE={next:function(){return{done:!!lj++}},return:function(){eE=!0}};tE[$b]=function(){return this},Array.from(tE,function(){throw 2})}catch{}var cj=function(t,e){try{if(!e&&!eE)return!1}catch{return!1}var A=!1;try{var r={};r[$b]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},uj=Qf,fj=cj,hj=Nl.CONSTRUCTOR,AE=hj||!fj(function(t){uj.all(t).then(void 0,function(){})}),dj=Br,pj=er,gj=ea,mj=_o,vj=x1,Bj=qb,wj=AE;dj({target:"Promise",stat:!0,forced:wj},{all:function(e){var A=this,r=mj.f(A),n=r.resolve,a=r.reject,i=vj(function(){var o=gj(A.resolve),s=[],l=0,u=1;Bj(e,function(d){var g=l++,h=!1;u++,pj(o,A,d).then(function(y){h||(h=!0,s[g]=y,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var yj=Br,bj=Nl.CONSTRUCTOR,W1=Qf,Ej=Ci,Cj=UA,Uj=Ui,rE=W1&&W1.prototype;if(yj({target:"Promise",proto:!0,forced:bj,real:!0},{catch:function(t){return this.then(void 0,t)}}),Cj(W1)){var nE=Ej("Promise").prototype.catch;rE.catch!==nE&&Uj(rE,"catch",nE,{unsafe:!0})}var Fj=Br,Nj=er,Qj=ea,Sj=_o,Tj=x1,xj=qb,Rj=AE;Fj({target:"Promise",stat:!0,forced:Rj},{race:function(e){var A=this,r=Sj.f(A),n=r.reject,a=Tj(function(){var i=Qj(A.resolve);xj(e,function(o){Nj(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var Ij=Br,Vj=_o,Mj=Nl.CONSTRUCTOR;Ij({target:"Promise",stat:!0,forced:Mj},{reject:function(e){var A=Vj.f(this),r=A.reject;return r(e),A.promise}});var Lj=vr,Oj=Nr,kj=_o,Hj=function(t,e){if(Lj(t),Oj(e)&&e.constructor===t)return e;var A=kj.f(t),r=A.resolve;return r(e),A.promise},Dj=Br,Pj=Ci,Wj=Nl.CONSTRUCTOR,_j=Hj;Pj("Promise"),Dj({target:"Promise",stat:!0,forced:Wj},{resolve:function(e){return _j(this,e)}});function aE(t,e,A,r,n,a,i){try{var o=t[a](i),s=o.value}catch(l){return void A(l)}o.done?e(s):Promise.resolve(s).then(r,n)}function Aa(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var a=t.apply(e,A);function i(s){aE(a,r,n,i,o,"next",s)}function o(s){aE(a,r,n,i,o,"throw",s)}i(void 0)})}}var Zj=p1,jj=String,Pn=function(t){if(Zj(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return jj(t)},Jj=vr,iE=function(){var t=Jj(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},_1=hA,Kj=sA,Z1=Kj.RegExp,j1=_1(function(){var t=Z1("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),Gj=j1||_1(function(){return!Z1("a","y").sticky}),zj=j1||_1(function(){var t=Z1("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),oE={BROKEN_CARET:zj,MISSED_STICKY:Gj,UNSUPPORTED_Y:j1},sE={},Yj=k5,Xj=d1,qj=Object.keys||function(e){return Yj(e,Xj)},$j=Bn,eJ=E5,tJ=ta,AJ=vr,rJ=ml,nJ=qj;sE.f=$j&&!eJ?Object.defineProperties:function(e,A){AJ(e);for(var r=rJ(A),n=nJ(A),a=n.length,i=0,o;a>i;)tJ.f(e,o=n[i++],r[o]);return e};var aJ=vr,iJ=sE,lE=d1,oJ=i1,sJ=ab,lJ=lf,cJ=a1,cE=">",uE="<",J1="prototype",K1="script",fE=cJ("IE_PROTO"),G1=function(){},hE=function(t){return uE+K1+cE+t+uE+"/"+K1+cE},dE=function(t){t.write(hE("")),t.close();var e=t.parentWindow.Object;return t=null,e},uJ=function(){var t=lJ("iframe"),e="java"+K1+":",A;return t.style.display="none",sJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(hE("document.F=Object")),A.close(),A.F},Lf,Of=function(){try{Lf=new ActiveXObject("htmlfile")}catch{}Of=typeof document<"u"?document.domain&&Lf?dE(Lf):uJ():dE(Lf);for(var t=lE.length;t--;)delete Of[J1][lE[t]];return Of()};oJ[fE]=!0;var z1=Object.create||function(e,A){var r;return e!==null?(G1[J1]=aJ(e),r=new G1,G1[J1]=null,r[fE]=e):r=Of(),A===void 0?r:iJ.f(r,A)},fJ=hA,hJ=sA,dJ=hJ.RegExp,pJ=fJ(function(){var t=dJ(".","s");return!(t.dotAll&&t.test(`
|
|
304
304
|
`)&&t.flags==="s")}),gJ=hA,mJ=sA,vJ=mJ.RegExp,BJ=gJ(function(){var t=vJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Go=er,kf=dA,wJ=Pn,yJ=iE,bJ=oE,EJ=Gp,CJ=z1,UJ=df.get,FJ=pJ,NJ=BJ,QJ=EJ("native-string-replace",String.prototype.replace),Hf=RegExp.prototype.exec,Y1=Hf,SJ=kf("".charAt),TJ=kf("".indexOf),xJ=kf("".replace),X1=kf("".slice),q1=function(){var t=/a/,e=/b*/g;return Go(Hf,t,"a"),Go(Hf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),pE=bJ.BROKEN_CARET,$1=/()??/.exec("")[1]!==void 0,RJ=q1||$1||pE||FJ||NJ;RJ&&(Y1=function(e){var A=this,r=UJ(A),n=wJ(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=Go(Y1,a,n),A.lastIndex=a.lastIndex,i;var h=r.groups,y=pE&&A.sticky,w=Go(yJ,A),b=A.source,B=0,E=n;if(y&&(w=xJ(w,"y",""),TJ(w,"g")===-1&&(w+="g"),E=X1(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&SJ(n,A.lastIndex-1)!==`
|