file-viewer-demo/public/dist/assets/pptx.worker-a9caaa79.js

22 lines
433 KiB
JavaScript
Raw Permalink Normal View History

2024-01-30 00:54:29 +00:00
(function(){"use strict";var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function Zo(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qh={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(a,c){(function(t){a.exports=t()})(function(){return function t(l,s,i){function f(p,L){if(!s[p]){if(!l[p]){var x=typeof Zo=="function"&&Zo;if(!L&&x)return x(p,!0);if(d)return d(p,!0);var k=new Error("Cannot find module '"+p+"'");throw k.code="MODULE_NOT_FOUND",k}var v=s[p]={exports:{}};l[p][0].call(v.exports,function(T){var u=l[p][1][T];return f(u||T)},v,v.exports,t,l,s,i)}return s[p].exports}for(var d=typeof Zo=="function"&&Zo,h=0;h<i.length;h++)f(i[h]);return f}({1:[function(t,l,s){var i=t("./utils"),f=t("./support"),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(h){for(var p,L,x,k,v,T,u,D=[],g=0,o=h.length,_=o,O=i.getTypeOf(h)!=="string";g<h.length;)_=o-g,x=O?(p=h[g++],L=g<o?h[g++]:0,g<o?h[g++]:0):(p=h.charCodeAt(g++),L=g<o?h.charCodeAt(g++):0,g<o?h.charCodeAt(g++):0),k=p>>2,v=(3&p)<<4|L>>4,T=1<_?(15&L)<<2|x>>6:64,u=2<_?63&x:64,D.push(d.charAt(k)+d.charAt(v)+d.charAt(T)+d.charAt(u));return D.join("")},s.decode=function(h){var p,L,x,k,v,T,u=0,D=0,g="data:";if(h.substr(0,g.length)===g)throw new Error("Invalid base64 input, it looks like a data url.");var o,_=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===d.charAt(64)&&_--,h.charAt(h.length-2)===d.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(o=f.uint8array?new Uint8Array(0|_):new Array(0|_);u<h.length;)p=d.indexOf(h.charAt(u++))<<2|(k=d.indexOf(h.charAt(u++)))>>4,L=(15&k)<<4|(v=d.indexOf(h.charAt(u++)))>>2,x=(3&v)<<6|(T=d.indexOf(h.charAt(u++))),o[D++]=p,v!==64&&(o[D++]=L),T!==64&&(o[D++]=x);return o}},{"./support":30,"./utils":32}],2:[function(t,l,s){var i=t("./external"),f=t("./stream/DataWorker"),d=t("./stream/Crc32Probe"),h=t("./stream/DataLengthProbe");function p(L,x,k,v,T){this.compressedSize=L,this.uncompressedSize=x,this.crc32=k,this.compression=v,this.compressedContent=T}p.prototype={getContentWorker:function(){var L=new f(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),x=this;return L.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),L},getCompressedWorker:function(){return new f(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(L,x,k){return L.pipe(new d).pipe(new h("uncompressedSize")).pipe(x.compressWorker(k)).pipe(new h("compressedSize")).withStreamInfo("compression",x)},l.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,l,s){var i=t("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},s.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,l,s){var i=t("./utils"),f=function(){for(var d,h=[],p=0;p<256;p++){d=p;for(var L=0;L<8;L++)d=1&d?3988292384^d>>>1:d>>>1;h[p]=d}return h}();l.exports=function(d,h){return d!==void 0&&d.length?i.getTypeOf(d)!=="string"?function(p,L,x,k){var v=f,T=k+x;p^=-1;for(var u=k;u<T;u++)p=p>>>8^v[255&(p^L[u])];return-1^p}(0|h,d,d.length,0):function(p,L,x,k){var v=f,T=k+x;p^=-1;for(var u=k;u<T;u++)p=p>>>8^v[255&(p^L.charCodeAt(u))];return-1^p}(0|h,d,d.length,0):0}},{"./utils":32}],5:[function(t,l,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(t,l,s){var i=null;i=typeof Promise<"u"?Promise:t("lie"),l.exports={Promise:i}},{lie:37}],7:[function(t,l,s){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",f=t("pako"),d=t("./utils"),h=t("./stream/GenericWorker"),p=i?"uint8array":"array";function L(x,k){h.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=k,t
\0`,Pe+=i(V,2),Pe+=se.magic,Pe+=i(_,2),Pe+=i(O,2),Pe+=i(Y.crc32,4),Pe+=i(Y.compressedSize,4),Pe+=i(Y.uncompressedSize,4),Pe+=i(A.length,2),Pe+=i(n.length,2),{fileRecord:x.LOCAL_FILE_HEADER+Pe+A+n,dirRecord:x.CENTRAL_FILE_HEADER+i(He,2)+Pe+i(ke.length,2)+"\0\0\0\0"+i(J,4)+i(D,4)+A+n+ke}}var d=t("../utils"),h=t("../stream/GenericWorker"),p=t("../utf8"),L=t("../crc32"),x=t("../signature");function k(v,T,u,D){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=u,this.encodeFileName=D,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(k,h),k.prototype.push=function(v){var T=v.meta.percent||0,u=this.entriesCount,D=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,h.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:u?(T+100*(u-D-1))/u:100}}))},k.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var T=this.streamFiles&&!v.file.dir;if(T){var u=f(v,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(v){this.accumulate=!1;var T=this.streamFiles&&!v.file.dir,u=f(v,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),T)this.push({data:function(D){return x.DATA_DESCRIPTOR+i(D.crc32,4)+i(D.compressedSize,4)+i(D.uncompressedSize,4)}(v),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var v=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var u=this.bytesWritten-v,D=function(g,o,_,O,Z){var se=d.transformTo("string",Z(O));return x.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(g,2)+i(g,2)+i(o,4)+i(_,4)+i(se.length,2)+se}(this.dirRecords.length,u,v,this.zipComment,this.encodeFileName);this.push({data:D,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(v){this._sources.push(v);var T=this;return v.on("data",function(u){T.processChunk(u)}),v.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),v.on("error",function(u){T.error(u)}),this},k.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(v){var T=this._sources;if(!h.prototype.error.call(this,v))return!1;for(var u=0;u<T.length;u++)try{T[u].error(v)}catch{}return!0},k.prototype.lock=function(){h.prototype.lock.call(this);for(var v=this._sources,T=0;T<v.length;T++)v[T].lock()},l.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,l,s){var i=t("../compressions"),f=t("./ZipFileWorker");s.generateWorker=function(d,h,p){var L=new f(h.streamFiles,p,h.platform,h.encodeFileName),x=0;try{d.forEach(function(k,v){x++;var T=function(o,_){var O=o||_,Z=i[O];if(!Z)throw new Error(O+" is not a valid compression method !");return Z}(v.options.compression,h.compression),u=v.options.compressionOptions||h.compressionOptions||{},D=v.dir,g=v.date;v._compressWorker(T,u).withStreamInfo("file",{name:k,dir:D,date:g,comment:v.comment||"",unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions}).pipe(L)}),L.entriesCount=x}catch(k){L.error(k)}return L}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,l,s){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, pleas
`);throw new Error(`Unexpected close tag
Line: `+(oe.length-1)+`
Column: `+(oe[oe.length-1].length+1)+`
Char: `+a[t])}return t+1&&(t+=1),fe}else if(a.charCodeAt(t+1)===x){if(a.charCodeAt(t+2)==p){const R=t;for(;t!==-1&&!(a.charCodeAt(t)===h&&a.charCodeAt(t-1)==p&&a.charCodeAt(t-2)==p&&t!=-1);)t=a.indexOf(d,t+1);t===-1&&(t=a.length),l&&fe.push(a.substring(R,t+1))}else if(a.charCodeAt(t+2)===T&&a.charCodeAt(t+8)===T&&a.substr(t+3,5).toLowerCase()==="cdata"){var e=a.indexOf("]]>",t);e==-1?(fe.push(a.substr(t+9)),t=a.length):(fe.push(a.substring(t+9,e)),t=e+3);continue}else{const R=t+1;t+=2;for(var n=!1;(a.charCodeAt(t)!==h||n===!0)&&a[t];)a.charCodeAt(t)===T?n=!0:n===!0&&a.charCodeAt(t)===u&&(n=!1),t++;fe.push(a.substring(R,t))}t++;continue}var le=Z();fe.push(le),le.tagName[0]==="?"&&(fe.push(...le.children),le.children=[])}else{var he=g();if(s)he.length>0&&fe.push(he);else{var N=he.trim();N.length>0&&fe.push(N)}t++}return fe}function g(){var H=t;return t=a.indexOf(i,t)-1,t===-2&&(t=a.length),a.slice(H,t+1)}var o=`\r
>/= `;function _(){for(var H=t;o.indexOf(a[t])===-1&&a[t];)t++;return a.slice(H,t)}var O=c.noChildNodes||["img","br","input","meta","link","hr"];function Z(){t++;const H=_(),fe={};let ke=[];for(;a.charCodeAt(t)!==h&&a[t];){var F=a.charCodeAt(t);if(F>64&&F<91||F>96&&F<123){for(var oe=_(),e=a.charCodeAt(t);e&&e!==k&&e!==v&&!(e>64&&e<91||e>96&&e<123)&&e!==h;)t++,e=a.charCodeAt(t);if(e===k||e===v){var n=se();if(t===-1)return{tagName:H,attributes:fe,children:ke}}else n=null,t--;fe[oe]=n}t++}if(a.charCodeAt(t-1)!==L)if(H=="script"){var le=t+1;t=a.indexOf("<\/script>",t),ke=[a.slice(le,t)],t+=9}else if(H=="style"){var le=t+1;t=a.indexOf("</style>",t),ke=[a.slice(le,t)],t+=8}else O.indexOf(H)===-1?(t++,ke=D(H)):t++;else t++;return{tagName:H,attributes:fe,children:ke}}function se(){var H=a[t],fe=t+1;return t=a.indexOf(H,fe),a.slice(fe,t)}function ne(){var H=new RegExp("\\s"+c.attrName+`\\s*=['"]`+c.attrValue+`['"]`).exec(a);return H?H.index:-1}var A=null;if(c.attrValue!==void 0){c.attrName=c.attrName||"id";for(var A=[];(t=ne())!==-1;)t=a.lastIndexOf("<",t),t!==-1&&A.push(Z()),a=a.substr(t),t=0}else c.parseNode?A=Z():A=D("");return c.filter&&(A=filter(A,c.filter)),c.simplify?Vh(Array.isArray(A)?A:[A]):(c.setPos&&(A.pos=t),A)}let $u=1;function Vh(a){const c={};if(!a||!a.length)return{};if(a.length===1&&typeof a[0]=="string")return a[0];a.forEach(function(l){if(typeof l!="object")return;c[l.tagName]||(c[l.tagName]=[]);const s=Vh(l.children);c[l.tagName].push(s),typeof s!="string"&&(Object.keys(l.attributes).length&&(s.attrs=l.attributes),s.attrs||(s.attrs={}),s.attrs.order=$u++)});for(var t in c)c[t].length==1&&(c[t]=c[t][0]);return c}var Qr={},Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});var Ku=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Uni
`}return a}async function up(a,c){var t=a.attrs.order,l=r(a,["a:graphic","a:graphicData","a:tbl"]),s=r(a,["p:xfrm"]),i=r(a,["a:graphic","a:graphicData","a:tbl","a:tblPr"]),f=r(a,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]),d="";if(i!==void 0){var h=i.attrs.rtl;d=h==1?"dir=rtl":"dir=ltr"}var p=i.attrs.firstRow,L=i.attrs.firstCol,x=i.attrs.lastRow,k=i.attrs.lastCol,v=i.attrs.bandRow,T=i.attrs.bandCol,u={isFrstRowAttr:p!==void 0&&p=="1"?1:0,isFrstColAttr:L!==void 0&&L=="1"?1:0,isLstRowAttr:x!==void 0&&x=="1"?1:0,isLstColAttr:k!==void 0&&k=="1"?1:0,isBandRowAttr:v!==void 0&&v=="1"?1:0,isBandColAttr:T!==void 0&&T=="1"?1:0},D,g=i["a:tableStyleId"];if(g!==void 0){var o=cl["a:tblStyleLst"]["a:tblStyle"];if(o!==void 0)if(o.constructor===Array)for(var _=0;_<o.length;_++)o[_].attrs.styleId==g&&(D=o[_]);else o.attrs.styleId==g&&(D=o)}D!==void 0&&(D.tblStylAttrObj=u,c.thisTbiStyle=D);var O=r(D,["a:wholeTbl","a:tcStyle"]),Z=r(O,["a:tcBdr"]),se="";Z!==void 0&&(se=Js(Z,c));var ne="",A=r(D,["a:tblBg","a:fillRef"]);A!==void 0&&(ne=Un(A,void 0,void 0,c)),A===void 0&&(A=r(D,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]),ne=Un(A,void 0,void 0,c)),ne!==""&&(ne="background-color: #"+ne+";");var H="<table "+d+" style='border-collapse: collapse;"+er(s,a,void 0,void 0)+nr(s,void 0,void 0)+" z-index: "+t+";"+se+";"+ne+"'>",fe=l["a:tr"];fe.constructor!==Array&&(fe=[fe]);for(var ke=[],F=0;F<fe.length;F++){var oe=fe[F].attrs.h,e=0,n="";oe!==void 0&&(e=parseInt(oe)*U,n+="height:"+e+"px;");var le="",he="",N="",R="";if(D!==void 0&&D["a:wholeTbl"]!==void 0){var Y=r(D,["a:wholeTbl","a:tcStyle","a:fill","a:solidFill"]);if(Y!==void 0){var V=Un(Y,void 0,void 0,c);V!==void 0&&(le=V)}var J=r(D,["a:wholeTbl","a:tcTxStyle"]);if(J!==void 0){var He=Un(J,void 0,void 0,c);He!==void 0&&(N=He);var Pe=r(J,["attrs","b"])=="on"?"bold":"";Pe!=""&&(R=Pe)}}if(F==0&&u.isFrstRowAttr==1&&D!==void 0){var Y=r(D,["a:firstRow","a:tcStyle","a:fill","a:solidFill"]);if(Y!==void 0){var V=Un(Y,void 0,void 0,c);V!==void 0&&(le=V)}var ye=r(D,["a:firstRow","a:tcStyle","a:tcBdr"]);if(ye!==void 0){var Dn=Js(ye,c);Dn!=""&&(he=Dn)}var J=r(D,["a:firstRow","a:tcTxStyle"]);if(J!==void 0){var b=Un(J,void 0,void 0,c);b!==void 0&&(N=b);var Pe=r(J,["attrs","b"])=="on"?"bold":"";Pe!==""&&(R=Pe)}}else if(F>0&&u.isBandRowAttr==1&&D!==void 0){if(le="",he=void 0,F%2==0&&D["a:band2H"]!==void 0){var Y=r(D,["a:band2H","a:tcStyle","a:fill","a:solidFill"]);if(Y!==void 0){var V=Un(Y,void 0,void 0,c);V!==""&&(le=V)}var ye=r(D,["a:band2H","a:tcStyle","a:tcBdr"]);if(ye!==void 0){var Dn=Js(ye,c);Dn!=""&&(he=Dn)}var J=r(D,["a:band2H","a:tcTxStyle"]);if(J!==void 0){var b=Un(J,void 0,void 0,c);b!==void 0&&(N=b)}var Pe=r(J,["attrs","b"])=="on"?"bold":"";Pe!==""&&(R=Pe)}if(F%2!=0&&D["a:band1H"]!==void 0){var Y=r(D,["a:band1H","a:tcStyle","a:fill","a:solidFill"]);if(Y!==void 0){var V=Un(Y,void 0,void 0,c);V!==void 0&&(le=V)}var ye=r(D,["a:band1H","a:tcStyle","a:tcBdr"]);if(ye!==void 0){var Dn=Js(ye,c);Dn!=""&&(he=Dn)}var J=r(D,["a:band1H","a:tcTxStyle"]);if(J!==void 0){var b=Un(J,void 0,void 0,c);b!==void 0&&(N=b);var Pe=r(J,["attrs","b"])=="on"?"bold":"";Pe!=""&&(R=Pe)}}}if(F==fe.length-1&&u.isLstRowAttr==1&&D!==void 0){var Y=r(D,["a:lastRow","a:tcStyle","a:fill","a:solidFill"]);if(Y!==void 0){var V=Un(Y,void 0,void 0,c);V!==void 0&&(le=V)}var ye=r(D,["a:lastRow","a:tcStyle","a:tcBdr"]);if(ye!==void 0){var Dn=Js(ye,c);Dn!=""&&(he=Dn)}var J=r(D,["a:lastRow","a:tcTxStyle"]);if(J!==void 0){var b=Un(J,void 0,void 0,c);b!==void 0&&(N=b);var Pe=r(J,["attrs","b"])=="on"?"bold":"";Pe!==""&&(R=Pe)}}n+=he!==void 0?he:"",n+=N!==void 0?" color: #"+N+";":"",n+=R!=""?" font-weight:"+R+";":"",le!==void 0&&le!=""&&(n+="background-color: #"+le+";"),H+="<tr style='"+n+"'>";var hn=fe[F]["a:tc"];if(hn!==void 0)if(hn.constructor===Array){var je=0;ke.length==0&&(ke=Array.apply(null,Array(hn.length)).map(function(){return 0}));for(var Qn=0;je<hn.length;){if(ke[je]==0&&Qn==0){var Cn;if(je==0&&u.isFrstColAttr==1)Cn="a:firstCol",u.isLstRowAttr==1&&F==fe.length-1&&r(D,["a:seCell"])!==void 0?Cn="a:seCell":u.isFrstRowAttr==1
`,p+=f;for(var g=0;g<u;g++){var o=Ye("#"+l[g]),_=o.getAlpha();p+='<stop offset="'+Math.round(parseFloat(i[g])/100*D)/D+'" style="stop-color:'+o.toHexString()+"; stop-opacity:"+_+';"',p+=`/>
`}return p+=`</linearGradient>
`,p}function Gp(a){var c=["0%","100%"];if(a==0)return c;for(var t=a;t--;){var l=100-100/(a+1)*(t+1),s=l+"%";c.splice(-1,0,s)}return c}function Np(a,c,t){var l=parseFloat(t),s=parseFloat(c),i=parseFloat(a),f=2,d=2,h=l/2,p=s/2,u=2,D=2,g=2,o=2,L=(i%360+360)%360,x=(360-L)*Math.PI/180,k=Math.tan(x),v=p-k*h;L==0?(u=l,D=p,g=0,o=p):L<90?(d=l,f=0):L==90?(u=h,D=0,g=h,o=s):L<180?(d=0,f=0):L==180?(u=0,D=p,g=l,o=p):L<270?(d=0,f=s):L==270?(u=h,D=s,g=h,o=0):(d=l,f=s);var T=f+d/k,u=u==2?k*(T-v)/(Math.pow(k,2)+1):u,D=D==2?k*u+v:D,g=g==2?l-u:g,o=o==2?s-D:o,_=Math.round(g/l*100*100)/100,O=Math.round(o/s*100*100)/100,Z=Math.round(u/l*100*100)/100,se=Math.round(D/s*100*100)/100;return[_,O,Z,se]}async function Op(a,c,t,l){const[s,i]=await Zp(c);var f=a["p:spPr"]["a:blipFill"],d=r(f,["a:tile","attrs"]);if(d!==void 0&&d.sx!==void 0)var h=parseInt(d.sx)/1e5*s,p=parseInt(d.sy)/1e5*i;const L=a["p:spPr"]["a:blipFill"]["a:blip"];var x=r(L,["a:alphaModFix","attrs"]),k="";if(x!==void 0&&x.amt!==void 0&&x.amt!=""){var v=parseInt(x.amt)/1e5,T=v;k="opacity='"+T+"'"}if(h!==void 0&&h!=0)var u='<pattern id="imgPtrn_'+t+'" x="0" y="0" width="'+h+'" height="'+p+'" patternUnits="userSpaceOnUse">';else var u='<pattern id="imgPtrn_'+t+'" patternContentUnits="objectBoundingBox" width="1" height="1">';var D=r(L,["a:duotone"]),g="",o="";if(D!==void 0){var _=[];Object.keys(D).forEach(function(O){if(O!="attrs"){var Z={};Z[O]=D[O];var se=Un(Z,void 0,void 0,l),ne=Ye("#"+se);_.push(ne.toRgb())}}),_.length==2&&(g='<filter id="svg_image_duotone"> <feColorMatrix type="matrix" values=".33 .33 .33 0 0.33 .33 .33 0 0.33 .33 .33 0 00 0 0 1 0"></feColorMatrix><feComponentTransfer color-interpolation-filters="sRGB"><feFuncR type="table" tableValues="'+_[0].r/255+" "+_[1].r/255+'"></feFuncR><feFuncG type="table" tableValues="'+_[0].g/255+" "+_[1].g/255+'"></feFuncG><feFuncB type="table" tableValues="'+_[0].b/255+" "+_[1].b/255+'"></feFuncB></feComponentTransfer> </filter>'),o='filter="url(#svg_image_duotone)"',u+=g}return c=Vo(c),h!==void 0&&h!=0?u+='<image xlink:href="'+c+'" x="0" y="0" width="'+h+'" height="'+p+'" '+k+" "+o+"></image>":u+='<image xlink:href="'+c+'" preserveAspectRatio="none" width="1" height="1" '+k+" "+o+"></image>",u+="</pattern>",u}async function Zp(a){const c=await self.createImageBitmap(Hp(a));return[c.width,c.height]}function Hp(a){let c=a.split(","),t=c[0].match(/:(.*?);/)[1],l=atob(c[1]),s=l.length,i=new Uint8Array(s);for(;s--;)i[s]=l.charCodeAt(s);return new Blob([i],{type:t})}function ef(a){for(var c="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=new Uint8Array(a),s=l.byteLength,i=s%3,f=s-i,d,h,p,L,x,k=0;k<f;k=k+3)x=l[k]<<16|l[k+1]<<8|l[k+2],d=(x&16515072)>>18,h=(x&258048)>>12,p=(x&4032)>>6,L=x&63,c+=t[d]+t[h]+t[p]+t[L];return i==1?(x=l[f],d=(x&252)>>2,h=(x&3)<<4,c+=t[d]+t[h]+"=="):i==2&&(x=l[f]<<8|l[f+1],d=(x&64512)>>10,h=(x&1008)>>4,p=(x&15)<<2,c+=t[d]+t[h]+t[p]+"="),c}function Qp(a){var c=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return c.test(a)}function nf(a){return a.substr((~-a.lastIndexOf(".")>>>0)+2)}function Vo(a){var c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return a.replace(/[&<>"']/g,function(t){return c[t]})}function Yp(a,c){a(async({type:s,data:i,options:f,IE11:d})=>{if(s==="processPPTX")try{$o.settings=f,$o.processFullTheme=f.themeProcess,$o.IE11=d,await l(i)}catch(h){console.error("AN ERROR HAPPENED DURING processPPTX",h),c({type:"ERROR",data:h.toString()})}},s=>{c(s)});async function t(s){return s.byteLength<10?console.error("读取pptx文件失败"):vu.loadAsync(s)}async function l(s){const i=await t(s),f=new Date,d=T=>{h[T]&&p===T&&(c(h[p++]),delete h[T],d(p))},h={};let p=-1;if(i.file("docProps/thumbnail.jpeg")){const T=await i.file("docProps/thumbnail.jpeg").async("base64");c({type:"pptx-thumb",data:T,sl