vue-office/examples/dist/assets/PptxDemo-d8a3d35a.js
2024-11-24 10:51:47 +08:00

3 lines
117 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{o as Ie}from"./jszip.min-316f7f6c.js";import{l as u}from"./lodash-6c527883.js";import{d as Re,_ as Te,r as Me,o as Be,w as Oe,a as Ae,c as Ee,b as Ne,e as Fe,f as Ze,g as De,u as ze}from"./index-f961547d.js";import{P as Ue,u as de}from"./PreviewWrapper-75ba324f.js";import"./_commonjs-dynamic-modules-302442b1.js";var ce=function(o,a){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])},ce(o,a)};function ie(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");ce(o,a);function i(){this.constructor=o}o.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var C=function(){return C=Object.assign||function(a){for(var i,r=1,s=arguments.length;r<s;r++){i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=i[l])}return a},C.apply(this,arguments)};function q(o,a,i,r){function s(l){return l instanceof i?l:new i(function(d){d(l)})}return new(i||(i=Promise))(function(l,d){function v(y){try{x(r.next(y))}catch(b){d(b)}}function f(y){try{x(r.throw(y))}catch(b){d(b)}}function x(y){y.done?l(y.value):s(y.value).then(v,f)}x((r=r.apply(o,a||[])).next())})}function Y(o,a){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,s,l,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=v(0),d.throw=v(1),d.return=v(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function v(x){return function(y){return f([x,y])}}function f(x){if(r)throw new TypeError("Generator is already executing.");for(;d&&(d=0,x[0]&&(i=0)),i;)try{if(r=1,s&&(l=x[0]&2?s.return:x[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,x[1])).done)return l;switch(s=0,l&&(x=[x[0]&2,l.value]),x[0]){case 0:case 1:l=x;break;case 4:return i.label++,{value:x[1],done:!1};case 5:i.label++,s=x[1],x=[0];continue;case 7:x=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(x[0]===6||x[0]===2)){i=0;continue}if(x[0]===3&&(!l||x[1]>l[0]&&x[1]<l[3])){i.label=x[1];break}if(x[0]===6&&i.label<l[1]){i.label=l[1],l=x;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(x);break}l[2]&&i.ops.pop(),i.trys.pop();continue}x=a.call(o,i)}catch(y){x=[6,y],s=0}finally{r=l=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}}function Kt(o,a,i){if(i||arguments.length===2)for(var r=0,s=a.length,l;r<s;r++)(l||!(r in a))&&(l||(l=Array.prototype.slice.call(a,0,r)),l[r]=a[r]);return o.concat(l||Array.prototype.slice.call(a))}var X=[];for(var te=0;te<256;++te)X.push((te+256).toString(16).slice(1));function He(o,a=0){return(X[o[a+0]]+X[o[a+1]]+X[o[a+2]]+X[o[a+3]]+"-"+X[o[a+4]]+X[o[a+5]]+"-"+X[o[a+6]]+X[o[a+7]]+"-"+X[o[a+8]]+X[o[a+9]]+"-"+X[o[a+10]]+X[o[a+11]]+X[o[a+12]]+X[o[a+13]]+X[o[a+14]]+X[o[a+15]]).toLowerCase()}var ft,Qe=new Uint8Array(16);function Ve(){if(!ft&&(ft=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ft))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ft(Qe)}var We=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const pe={randomUUID:We};function Ge(o,a,i){if(pe.randomUUID&&!a&&!o)return pe.randomUUID();o=o||{};var r=o.random||(o.rng||Ve)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,a){i=i||0;for(var s=0;s<16;++s)a[i+s]=r[s];return a}return He(r)}var wt=1;function $(o){var a="<".charCodeAt(0),i=">".charCodeAt(0),r="-".charCodeAt(0),s="/".charCodeAt(0),l="!".charCodeAt(0),d="'".charCodeAt(0),v='"'.charCodeAt(0),f="?".charCodeAt(0),x=`\r
>/= `,y=0;return wt=1,je(function b(){for(var j=[];o[y];){if(o.charCodeAt(y)==a){if(o.charCodeAt(y+1)===s)return y=o.indexOf(">",y),j;if(o.charCodeAt(y+1)===l){if(o.charCodeAt(y+2)==r){for(;o.charCodeAt(y)!==i||o.charCodeAt(y-1)!=r||o.charCodeAt(y-2)!=r||y==-1;)y=o.indexOf(">",y+1);y===-1&&(y=o.length)}else for(y+=2;o.charCodeAt(y)!==i;y++);y++;continue}if(o.charCodeAt(y+1)===f){y=o.indexOf(">",y),y++;continue}for(var L=++y;x.indexOf(o[y])===-1;y++);for(var _=o.slice(L,y),S=!1,k={};o.charCodeAt(y)!==i;y++){var c=o.charCodeAt(y);if(c>64&&c<91||c>96&&c<123){for(L=y;x.indexOf(o[y])===-1;y++);for(var t=o.slice(L,y),n=o.charCodeAt(y);n!==d&&n!==v;)y++,n=o.charCodeAt(y);var e=o[y],h=++y;y=o.indexOf(e,h);var p=o.slice(h,y);S||(k={},S=!0),k[t]=p}}var w=[];o.charCodeAt(y-1)!==s&&(y++,w=b()),j.push({children:w,tagName:_,attrs:k})}else{var m=y;(y=o.indexOf("<",y)-1)===-2&&(y=o.length);var g=o.slice(m,y+1);g.length>0&&j.push(g)}y++}return j}())}function je(o){var a={};if(o===void 0)return{};if(o.length===1&&typeof o[0]=="string")return o[0];for(var i in o.forEach(function(r){if(a[r.tagName]||(a[r.tagName]=[]),typeof r=="object"){var s=je(r.children);typeof s=="object"&&(r.attrs&&(s.attrs=r.attrs),s.attrs===void 0?s.attrs={order:wt}:s.attrs.order=wt),wt++,a[r.tagName].push(s)}}),a)a[i].length==1&&(a[i]=a[i][0]);return a}function E(o){return o/12700}function bt(o){return o/100}function xt(o){return o/6e4}function rt(o){return o/1e5}function ee(o){var a=Math.ceil(o/26),i=(o%26||26)-1+65;return String.fromCharCode(i).repeat(a)}function W(o,a,i){var r={type:"solidFill"};if(o["a:srgbClr"])r.color="#"+o["a:srgbClr"].attrs.val;else if(o["a:schemeClr"]){var s=o["a:schemeClr"].attrs.val;i&&(s=i.getColorThemeName(s)),r.color=a.getColor(s)}else o["a:sysClr"]&&(r.color="#"+o["a:sysClr"].attrs.lastClr);var l=o["a:srgbClr"]||o["a:schemeClr"]||o["a:sysClr"],d=u.get(l,["a:alpha","attrs","val"],1e5);r.alpha=d/1e5;var v=u.get(l,["a:shade","attrs","val"]);v&&(r.shade=v/1e5);var f=u.get(l,["a:lumMod","attrs","val"]);f&&(r.lumMod=f/1e5);var x=u.get(l,["a:lumOff","attrs","val"]);x&&(r.lumOff=x/1e5);var y=u.get(l,["a:tint","attrs","val"]);return y&&(r.tint=y/1e5),r}function pt(o,a,i){var r,s={type:"blipFill"},l=u.get(o,["a:blip","attrs","r:embed"]);if(l){var d=(r=i.rels[l])===null||r===void 0?void 0:r.target;d&&(s.base64=a.getMedia(d))}var v=u.get(o,["a:blip","a:alphaModFix","attrs","amt"]);v&&(s.alpha=v/1e5);var f=u.get(o,["a:stretch","a:fillRect","attrs"]);return f&&(s.fillRect={},f.b&&(s.fillRect.b=f.b/1e5),f.t&&(s.fillRect.t=f.t/1e5),f.r&&(s.fillRect.r=f.r/1e5),f.l&&(s.fillRect.l=f.l/1e5)),s}function ut(o,a,i){var r={type:"gradFill",tileRect:{},lin:{},gsList:[]};r.flip=o.attrs.flip,r.path=u.get(o,["a:path","attrs","path"])||"linear",r.rotWithShape=o.attrs.rotWithShape==="1",u.get(o,["a:lin","attrs","ang"])&&(r.lin.ang=xt(o["a:lin"].attrs.ang)),u.get(o,["a:lin","attrs","scaled"])&&(r.lin.scaled=o["a:lin"].attrs.scaled==="1");var s=u.get(o,["a:gsLst","a:gs"])||[];return r.gsList=s.map(function(l){return{color:W(l,a,i),pos:rt(l.attrs.pos)}}),u.get(o,["a:tileRect","attrs","l"])&&(r.tileRect.l=rt(o["a:tileRect"].attrs.l)),u.get(o,["a:tileRect","attrs","t"])&&(r.tileRect.t=rt(o["a:tileRect"].attrs.t)),u.get(o,["a:tileRect","attrs","r"])&&(r.tileRect.r=rt(o["a:tileRect"].attrs.r)),u.get(o,["a:tileRect","attrs","b"])&&(r.tileRect.b=rt(o["a:tileRect"].attrs.b)),r}function ae(o){return o<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function ne(o){return o<.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055}function ue(o,a){var i=o[0],r=o[1],s=o[2],l=ae(i/255)*a,d=ae(r/255)*a,v=ae(s/255)*a;return[Math.round(255*ne(l)),Math.round(255*ne(d)),Math.round(255*ne(v))]}function re(o,a,i){var r=o/255,s=a/255,l=i/255,d=Math.max(r,s,l),v=Math.min(r,s,l),f=d-v,x=0,y=(d+v)/2;return f===0?x=0:d===r?x=(s-l)/f%6:d===s?x=(l-r)/f+2:d===l&&(x=(r-s)/f+4),(x=Math.round(60*x))<0&&(x+=360),{h:x,s:f===0||y===0||y===1?0:f/(1-Math.abs(2*y-1)),l:y}}function oe(o,a,i){var r,s,l,d=(1-Math.abs(2*i-1))*a,v=d*(1-Math.abs(o/60%2-1)),f=i-d/2;return o<60?(r=d,s=v,l=0):o<120?(r=v,s=d,l=0):o<180?(r=0,s=d,l=v):o<240?(r=0,s=v,l=d):o<300?(r=v,s=0,l=d):(r=d,s=0,l=v),[r=Math.round(255*(r+f)),s=Math.round(255*(s+f)),l=Math.round(255*(l+f))]}function D(o,a){if(!o||o.type==="none")return"";if(o.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(o.color)){var i=parseInt(o.color.substr(1,2),16),r=parseInt(o.color.substr(3,2),16),s=parseInt(o.color.substr(5,2),16);if(o.shade){var l=ue([i,r,s],o.shade);i=l[0],r=l[1],s=l[2]}if(o.lumMod){var d=function(y,b,j,L){var _=re(y,b,j),S=_.h,k=_.l*L;return k>=1&&(k=1),oe(S,_.s,k)}(i,r,s,o.lumMod);i=d[0],r=d[1],s=d[2]}if(o.lumOff&&(d=function(y,b,j,L){var _=re(y,b,j),S=_.h,k=L+_.l;return k>1&&(k=1),oe(S,_.s,k)}(i,r,s,o.lumOff),i=d[0],r=d[1],s=d[2]),o.tint||a!=null&&a.light){var v=function(y,b,j,L){var _=re(y,b,j),S=_.h,k=_.l;return L>=1&&(L=1),oe(S,_.s,k*L+(1-L))}(i,r,s,o.tint||(a==null?void 0:a.light));i=v[0],r=v[1],s=v[2]}if(a!=null&&a.dark){var f=ue([i,r,s],a==null?void 0:a.dark);i=f[0],r=f[1],s=f[2]}var x=o.alpha;return"rgba(".concat(i,",").concat(r,",").concat(s,",").concat(x,")")}}var se=function(){function o(a,i,r){this.uuid=Ge(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=a,this.ctx=i,this.group=r;var s=u.get(a,["p:nvSpPr","p:nvPr"]);if(s){var l=u.get(s,"p:ph");l&&l.attrs&&(this.idx=l.attrs.idx,this.type=l.attrs.type),u.get(s,["attrs","userDrawn"])&&(this.userDrawn=u.get(s,["attrs","userDrawn"])==="1")}if(this.order=u.get(a,"attrs.order",0),this.source["p:spPr"])(d=this.getXfrm())&&(this.offset={x:Math.round(E(parseInt(d["a:off"].attrs.x))),y:Math.round(E(parseInt(d["a:off"].attrs.y)))},this.extend={w:Math.round(E(parseInt(d["a:ext"].attrs.cx))),h:Math.round(E(parseInt(d["a:ext"].attrs.cy)))},this.rotate=xt(parseInt(u.get(d,"attrs.rot",0))),this.flipV=u.get(d,"attrs.flipV")==="1",this.flipH=u.get(d,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var d=this.source["p:xfrm"];this.offset={x:Math.round(E(parseInt(d["a:off"].attrs.x))),y:Math.round(E(parseInt(d["a:off"].attrs.y)))},this.extend={w:Math.round(E(parseInt(d["a:ext"].attrs.cx))),h:Math.round(E(parseInt(d["a:ext"].attrs.cy)))}}}return Object.defineProperty(o.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),o.prototype.getColorThemeName=function(a){return this.ctx.getColorThemeName(a)},o.prototype.getXfrm=function(){var a=this.source["p:spPr"]["a:xfrm"];return a||(this.idx?a=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(a=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),a},o}(),Xe=function(){function o(a,i){this.props={},this.inheritProps={},this.source=a,this.node=i,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return o.prototype._getInheritBodyProps=function(){var a,i=this.node.ctx,r=this.node.type,s=this.node.idx;if(r||s)switch(i.slideType){case"slideMaster":break;case"slideLayout":(a=r?i.slideMaster.getNodeByType(r):i.slideMaster.getNodeByIdx(s))&&(this.inheritProps=u.get(a,["textBody","props"])||{});break;case"slide":(a=r?i.slideLayout.slideMaster.getNodeByType(r):i.slideLayout.slideMaster.getNodeByIdx(s))&&Object.assign(this.inheritProps,u.get(a,["textBody","props"])||{}),(a=r?i.slideLayout.getNodeByType(r):i.slideLayout.getNodeByIdx(s))&&Object.assign(this.inheritProps,u.get(a,["textBody","props"])||{})}},o.prototype._parseBodyProps=function(){var a=this,i=u.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(i).forEach(function(d){switch(d){case"anchor":a.props.anchor=i[d];break;case"rtlCol":a.props.rtlCol=i[d]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":a.props[d]=E(parseInt(i[d]));break;case"order":break;default:a.props[d]=i[d]}});var r=u.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(r){this.props.normAutofit={};var s=r.fontScale;s&&(this.props.normAutofit.fontScale=rt(parseInt(s)));var l=r.lnSpcReduction;l&&(this.props.normAutofit.lnSpcReduction=rt(parseInt(l)))}},o.prototype._parseLstStyle=function(){var a=this,i={},r=u.get(this.source,"a:lstStyle")||{};Object.keys(r).forEach(function(s){if(s.startsWith("a:")&&s.endsWith("pPr")){var l=s.substr(2,s.length-5);i[l]={props:a._formatPPr(r[s])};var d=u.get(r[s],["a:defRPr"]);i[l].defRPr=a._formatRPr(d)}}),this.lstStyle=i},o.prototype._parseText=function(){var a=this,i=u.get(this.source,["a:p"])||[];Array.isArray(i)||(i=[i]),this.paragraphs=i.map(function(r){return a._parseParagraph(r)})},o.prototype._parseParagraph=function(a){var i=this,r={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},s=u.get(a,["a:pPr"])||{};r.props=this._formatPPr(s);var l=u.get(a,["a:endParaRPr"]);r.endParaRProps=this._formatRPr(l);var d=u.get(a,["a:r"])||[];Array.isArray(d)||(d=[d]);var v=u.get(a,["a:br"])||[];return Array.isArray(v)||(v=[v]),(d=d.concat(v.map(function(f){return C({isBr:!0},f)}))).sort(function(f,x){return u.get(f,["attrs","order"])-u.get(x,["attrs","order"])}),r.rows=d.map(function(f){return i._parseRow(f)}),r.inheritProps=this._getInheritPProps(r.props.level),r.inheritRProps=this._getInheritRProps(r.props.level),r},o.prototype._getInheritPProps=function(a){a===void 0&&(a="0");var i,r={},s=this.node.ctx,l=this.node.type,d=this.node.idx;switch(s.slideType){case"slideMaster":this.node.isTextBox?Object.assign(r,u.get(s.defaultTextStyle,["lvl".concat(a?+a+1:1),"props"])||{}):Object.assign(r,u.get(s,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(r,u.get(s.slideMaster.defaultTextStyle,["lvl".concat(a?+a+1:1),"props"])||{}):Object.assign(r,u.get(s.slideMaster,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"props"])||{}),(l||d)&&(i=l?s.slideMaster.getNodeByType(l):s.slideMaster.getNodeByIdx(d))&&Object.assign(r,u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(r,u.get(s.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(a?+a+1:1),"props"])||{}):Object.assign(r,u.get(s.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"props"])||{}),(l||d)&&(["subTitle","ctrTitle","title"].includes(l)&&Object.assign(r,u.get(s.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(a?+a+1:1),"props"])||{}),(i=l?s.slideLayout.slideMaster.getNodeByType(l):s.slideLayout.slideMaster.getNodeByIdx(d))&&Object.assign(r,u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"props"])||{}),(i=l?s.slideLayout.getNodeByType(l):s.slideLayout.getNodeByIdx(d))&&Object.assign(r,u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"props"])||{}))}return r},o.prototype._getInheritRProps=function(a){a===void 0&&(a="0");var i,r={},s=this.node.ctx,l=this.node.type,d=this.node.idx;switch(s.slideType){case"slideMaster":this.node.isTextBox?Object.assign(r,u.get(s.defaultTextStyle,["lvl".concat(a?+a+1:1),"defRPr"])||{}):Object.assign(r,u.get(s,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(r,u.get(s.slideMaster.defaultTextStyle,["lvl".concat(a?+a+1:1),"defRPr"])||{}):Object.assign(r,u.get(s.slideMaster,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"defRPr"])||{}),(l||d)&&(i=l?s.slideMaster.getNodeByType(l):s.slideMaster.getNodeByIdx(d))&&(r=u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(r,u.get(s.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(a?+a+1:1),"defRPr"])||{}):Object.assign(r,u.get(s.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(a?+a+1:1),"defRPr"])||{}),(l||d)&&(["subTitle","ctrTitle","title"].includes(l)&&Object.assign(r,u.get(s.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(a?+a+1:1),"defRPr"])||{}),(i=l?s.slideLayout.slideMaster.getNodeByType(l):s.slideLayout.slideMaster.getNodeByIdx(d))&&Object.assign(r,u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"defRPr"])||{}),(i=l?s.slideLayout.getNodeByType(l):s.slideLayout.getNodeByIdx(d))&&Object.assign(r,u.get(i,["textBody","lstStyle","lvl".concat(a?+a+1:1),"defRPr"])||{}))}var v=u.get(this.node.source,["p:style","a:fontRef"]);return u.get(v,"a:schemeClr")&&(r.color=W(v,this.node.theme,this.node)),u.get(this.lstStyle,["lvl".concat(a?+a+1:1),"defRPr"])&&Object.assign(r,u.get(this.lstStyle,["lvl".concat(a?+a+1:1),"defRPr"])),r},o.prototype._formatPPr=function(a){var i={},r=u.get(a,"attrs")||{};return Object.keys(r).forEach(function(s){switch(s){case"algn":i.align=r[s];break;case"marL":i.marginLeft=E(parseInt(r[s]));break;case"indent":i.indent=E(parseInt(r[s]));break;case"lvl":i.level=r[s]}}),u.get(a,["a:lnSpc","a:spcPct","attrs","val"])&&(i.lineHeight=parseInt(a["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),u.get(a,["a:buAutoNum","attrs","type"])&&(i.buAutoNum=a["a:buAutoNum"].attrs.type),u.get(a,["a:buChar","attrs","char"])&&(i.buChar=a["a:buChar"].attrs.char),u.get(a,["a:spcBef","a:spcPts","attrs","val"])&&(i.spaceBefore=bt(parseInt(a["a:spcBef"]["a:spcPts"].attrs.val))),u.get(a,["a:spcAft","a:spcPts","attrs","val"])&&(i.spaceAfter=bt(parseInt(a["a:spcAft"]["a:spcPts"].attrs.val))),i},o.prototype._parseRow=function(a){if(a.isBr)return{isBr:!0};var i={props:{},text:""},r=u.get(a,["a:rPr"])||{};return i.props=this._formatRPr(r),i.text=u.get(a,"a:t")||"",i},o.prototype._formatRPr=function(a){var i={},r=u.get(a,"attrs")||{};Object.keys(r).forEach(function(d){switch(d){case"sz":i.size=parseInt(r[d])/100;break;case"b":i.bold=r[d]==="1";break;case"i":i.italic=r[d]==="1";break;case"u":i.underline=r[d];break;case"strike":i.strike=r[d];break;case"order":case"dirty":break;default:i[d]=r[d]}});var s=u.get(a,"a:solidFill");s&&(i.color=W(s,this.node.theme,this.node));var l=u.get(a,"a:highlight");return l&&(i.background=W(l,this.node.theme,this.node)),i.typeface=u.get(a,["a:ea","attrs","typeface"]),i},o}();function it(o,a,i){var r={};if(!u.get(o,"a:noFill")){u.get(o,"attrs.w")&&(r.width=E(parseInt(u.get(o,"attrs.w"))));var s=u.get(o,"a:solidFill");s&&(r.color=W(s,a,i));var l=u.get(o,"a:prstDash");if(l&&(r.type=l.attrs.val),u.get(o,["a:miter"])&&(r.lineJoin="miter"),u.get(o,["a:bevel"])&&(r.lineJoin="bevel"),u.get(o,["a:round"])&&(r.lineJoin="round"),u.get(o,["a:miter","attrs","lim"])&&(r.miterLim=E(parseInt(u.get(o,["a:miter","attrs","lim"])))),u.get(o,["a:headEnd"])){var d=u.get(o,["a:headEnd","attrs"]);r.headEnd={type:d.type,len:d.len,w:d.w}}if(u.get(o,["a:tailEnd"])){var v=u.get(o,["a:tailEnd","attrs"]);r.tailEnd={type:v.type,len:v.len,w:v.w}}return r}}var gt=function(o){function a(i,r,s,l){var d=o.call(this,i,s,l)||this;return d.border={},d.prstGeom={},d.isTextBox=!1,d.pptx=r,d._parseShape(),d._parIsTextBox(),d._parsePrstGeom(),d._parseBackground(),d._parseBorder(),d._parseTxt(),d}return ie(a,o),a.prototype._parseShape=function(){if(this.shape=u.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&u.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var i=u.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),r=[],s=[],l=function(v){switch(v){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":s=Array.isArray(i[v])?i[v]:[i[v]],r=r.concat(s.map(function(f){return{order:f.attrs.order,type:v.split(":")[1],points:(Array.isArray(f["a:pt"])?f["a:pt"]:[f["a:pt"]]).map(function(x){return[E(parseInt(u.get(x,["attrs","x"]))),E(parseInt(u.get(x,["attrs","y"])))]})}}));break;case"a:close":s=Array.isArray(i[v])?i[v]:[i[v]],r=r.concat(s.map(function(f){return{order:f.attrs.order,type:v.split(":")[1]}}))}};for(var d in i)l(d);r.sort(function(v,f){return v.order-f.order}),this.prstGeom.pathList=r}},a.prototype._parIsTextBox=function(){this.isTextBox=u.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},a.prototype._parsePrstGeom=function(){var i=this,r=u.get(this.source,["p:spPr","a:prstGeom"]),s=u.get(r,["a:avLst","a:gd"]);s&&(Array.isArray(s)||(s=[s]),this.prstGeom.gd=s.map(function(l){var d=["pie","chord","arc"].includes(i.shape)?xt(parseInt(l.attrs.fmla.split(" ")[1])):rt(parseInt(l.attrs.fmla.split(" ")[1]));return{name:l.attrs.name,fmla:d}}))},a.prototype._parseBackground=function(){if(!u.get(this.source,["p:spPr","a:noFill"]))if(u.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var i=u.get(this.source,["p:spPr","a:solidFill"]);if(i)this.background=W(i,this.theme,this);else{var r=u.get(this.source,["p:spPr","a:gradFill"]);if(r)this.background=ut(r,this.theme,this);else{var s=u.get(this.source,["p:spPr","a:blipFill"]);if(s)this.background=pt(s,this.pptx,this.ctx);else{var l=u.get(this.source,["p:style","a:fillRef"]);l&&(this.background=W(l,this.theme,this))}}}}},a.prototype._parseBorder=function(){var i=u.get(this.source,["p:style","a:lnRef"]);if(i){var r=parseInt(i.attrs.idx),s=this.theme.getLineStyle(r);this.border=C(C({},s),this.border),this.border.color&&this.border.color.color||(this.border.color=W(i,this.theme,this))}var l=u.get(this.source,["p:spPr","a:ln"]);l&&Object.assign(this.border,it(l,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=a.defaultBorderWidth)},a.prototype._parseTxt=function(){this.textBody=new Xe(u.get(this.source,["p:txBody"]),this)},a.defaultBorderWidth=.75,a}(se),he=function(o){function a(i,r,s,l){var d,v,f=o.call(this,r,l)||this;f.userDrawn=!0,f.pptx=s,f.path=i;var x=u.get(f.source,["p:blipFill","a:srcRect"]);x&&(f.clip={},x.attrs.b&&(f.clip.b=parseInt(x.attrs.b)/1e5),x.attrs.t&&(f.clip.t=parseInt(x.attrs.t)/1e5),x.attrs.l&&(f.clip.l=parseInt(x.attrs.l)/1e5),x.attrs.r&&(f.clip.r=parseInt(x.attrs.r)/1e5));var y=u.get(r,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(y){var b=(d=f.ctx.rels[y])===null||d===void 0?void 0:d.target;f.audioFile=f.pptx.getMedia(b)}var j=u.get(r,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(j){var L=(v=f.ctx.rels[j])===null||v===void 0?void 0:v.target;f.videoFile=f.pptx.getMedia(L)}return f}return ie(a,o),Object.defineProperty(a.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),a}(se),ke=function(o){function a(i,r,s,l){var d=o.call(this,i,s,l)||this;return d.userDrawn=!0,d.props={tableStyleId:""},d.tableGrid={gridCol:[]},d.tr=[],d.tableStyles={},d.pptx=r,d._parseTableProps(),d._parseTableGrid(),d._parseTr(),d._parseInheritStyles(),d}return ie(a,o),Object.defineProperty(a.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),a.prototype._parseTableProps=function(){var i=u.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=u.get(i,"a:tableStyleId"),this.tableStyles=u.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},u.get(i,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),u.get(i,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),u.get(i,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),u.get(i,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),u.get(i,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),u.get(i,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},a.prototype._parseTableGrid=function(){var i=u.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(i)for(var r=0;r<i.length;r++){var s=u.get(i[r],["attrs","w"]);this.tableGrid.gridCol.push({width:E(parseInt(s))})}},a.prototype._parseTr=function(){var i=[],r=u.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(r)||(r=[r]);for(var s=0;s<r.length;s++){var l={props:{},td:[]},d=r[s];l.props.height=E(parseInt(u.get(d,["attrs","h"])));var v=u.get(d,["a:tc"]);Array.isArray(v)||(v=[v]);for(var f=0;f<v.length;f++)l.td.push(this._parseTd(v[f]));i.push(l)}this.tr=i},a.prototype._parseTd=function(i){var r,s,l,d,v=this,f={props:{border:{}},paragraphs:[]},x=u.get(i,["a:tcPr","attrs"]);x!=null&&x.marB&&(f.props.marB=E(parseInt(x==null?void 0:x.marB))),x!=null&&x.marT&&(f.props.marT=E(parseInt(x==null?void 0:x.marT))),x!=null&&x.marL&&(f.props.marL=E(parseInt(x==null?void 0:x.marL))),x!=null&&x.marR&&(f.props.marR=E(parseInt(x==null?void 0:x.marR))),x!=null&&x.anchor&&(f.props.anchor=x==null?void 0:x.anchor);var y=u.get(i,["a:tcPr"]);u.get(y,["a:lnR"])&&(f.props.border.right=it(u.get(y,["a:lnR"]),this.theme,this.ctx)),u.get(y,["a:lnL"])&&(f.props.border.left=it(u.get(y,["a:lnL"]),this.theme,this.ctx)),u.get(y,["a:lnT"])&&(f.props.border.top=it(u.get(y,["a:lnT"]),this.theme,this.ctx)),u.get(y,["a:lnB"])&&(f.props.border.bottom=it(u.get(y,["a:lnB"]),this.theme,this.ctx)),!((r=i==null?void 0:i.attrs)===null||r===void 0)&&r.rowSpan&&(f.props.rowSpan=parseInt(i.attrs.rowSpan)),!((s=i==null?void 0:i.attrs)===null||s===void 0)&&s.gridSpan&&(f.props.gridSpan=parseInt(i.attrs.gridSpan)),!((l=i==null?void 0:i.attrs)===null||l===void 0)&&l.vMerge&&(f.props.vMerge=i.attrs.vMerge==="1"),!((d=i==null?void 0:i.attrs)===null||d===void 0)&&d.hMerge&&(f.props.hMerge=i.attrs.hMerge==="1");var b=u.get(i,["a:tcPr","a:solidFill"]);b&&(f.props.background=W(b,this.theme,this.ctx));var j=u.get(i,["a:txBody"]),L=u.get(j,["a:p"]);return Array.isArray(L)||(L=[L]),f.paragraphs=L.map(function(_){return v._parseParagraph(_)}),f},a.prototype._parseParagraph=function(i){var r=this,s={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},l=u.get(i,["a:pPr"])||{};s.props=this._formatPPr(l);var d=u.get(i,["a:endParaRPr"]);s.endParaRProps=this._formatRPr(d);var v=u.get(i,["a:r"])||[];Array.isArray(v)||(v=[v]);var f=u.get(i,["a:br"])||[];return Array.isArray(f)||(f=[f]),(v=v.concat(f.map(function(x){return C({isBr:!0},x)}))).sort(function(x,y){return u.get(x,["attrs","order"])-u.get(y,["attrs","order"])}),s.rows=v.map(function(x){return r._parseRow(x)}),s},a.prototype._parseRow=function(i){if(i.isBr)return{isBr:!0};var r={props:{},text:""},s=u.get(i,["a:rPr"])||{};return r.props=this._formatRPr(s),r.text=u.get(i,"a:t")||"",r},a.prototype._formatPPr=function(i){var r={},s=u.get(i,"attrs")||{};return Object.keys(s).forEach(function(l){l==="algn"&&(r.align=s[l])}),u.get(i,["a:lnSpc","a:spcPct","attrs","val"])&&(r.lineHeight=parseInt(i["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),u.get(i,["a:buAutoNum","attrs","type"])&&(r.buAutoNum=i["a:buAutoNum"].attrs.type),u.get(i,["a:buChar","attrs","char"])&&(r.buChar=i["a:buChar"].attrs.char),u.get(i,["a:spcBef","a:spcPts","attrs","val"])&&(r.spaceBefore=bt(parseInt(i["a:spcBef"]["a:spcPts"].attrs.val))),u.get(i,["a:spcAft","a:spcPts","attrs","val"])&&(r.spaceAfter=bt(parseInt(i["a:spcAft"]["a:spcPts"].attrs.val))),r},a.prototype._formatRPr=function(i){var r={},s=u.get(i,"attrs")||{};Object.keys(s).forEach(function(v){switch(v){case"sz":r.size=parseInt(s[v])/100;break;case"b":r.bold=s[v]==="1";break;case"i":r.italic=s[v]==="1";break;case"u":r.underline=s[v];break;case"strike":r.strike=s[v];break;case"order":case"dirty":break;default:r[v]=s[v]}});var l=u.get(i,"a:solidFill");l&&(r.color=W(l,this.theme,this.ctx));var d=u.get(i,"a:highlight");return d&&(r.background=W(d,this.theme,this.ctx)),r.typeface=u.get(i,["a:ea","attrs","typeface"]),r},a.prototype._isLastCol=function(i,r){var s,l;if(r===i.length-1)return!0;for(var d=r+1;d<i.length;d++)if(!(!((s=i[d].props)===null||s===void 0)&&s.hMerge)&&!(!((l=i[d].props)===null||l===void 0)&&l.vMerge))return!1;return!0},a.prototype._isBandRow=function(i){var r;return!((r=this.props)===null||r===void 0)&&r.firstRow?i%2==1:i%2==0},a.prototype._isBandCol=function(i){var r;return!((r=this.props)===null||r===void 0)&&r.firstCol?i%2==1:i%2==0},a.prototype._parseInheritStyles=function(){var i,r,s,l,d,v,f,x,y=this,b=(r=(i=this.tableStyles)===null||i===void 0?void 0:i.wholeTbl)===null||r===void 0?void 0:r.tcStyle,j=(l=(s=this.tableStyles)===null||s===void 0?void 0:s.wholeTbl)===null||l===void 0?void 0:l.tcTxStyle,L=(v=(d=this.slideMaster.defaultTextStyle)===null||d===void 0?void 0:d.lvl1)===null||v===void 0?void 0:v.props,_=(x=(f=this.slideMaster.defaultTextStyle)===null||f===void 0?void 0:f.lvl1)===null||x===void 0?void 0:x.defRPr;this.tr.forEach(function(S,k){S.td.forEach(function(c,t){var n,e,h,p,w,m,g,I,P,R,B,O,z,F,H,N,U,Q,V,J,et,at,ot,ct,st,ht,Mt,At,jt,kt,Pt,St,Ct,_t,It,Rt,Tt,Bt,Ot,Et,Nt,Ft,Zt,Dt,zt,Ut,Ht,Qt,Vt,Wt,Gt,Xt,qt,Yt,Jt,$t,Z=C(C({},L),b),G=C(C({},_),j);y.props.firstRow&&k===0?(Z=C(C(C({},Z),(e=(n=y.tableStyles)===null||n===void 0?void 0:n.firstRow)===null||e===void 0?void 0:e.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(w=(p=(h=y.tableStyles)===null||h===void 0?void 0:h.firstRow)===null||p===void 0?void 0:p.tcStyle)===null||w===void 0?void 0:w.border)}),G=C(C({},G),(g=(m=y.tableStyles)===null||m===void 0?void 0:m.firstRow)===null||g===void 0?void 0:g.tcTxStyle)):y.props.lastRow&&k===y.tr.length-1?(Z=C(C(C({},Z),(P=(I=y.tableStyles)===null||I===void 0?void 0:I.lastRow)===null||P===void 0?void 0:P.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(O=(B=(R=y.tableStyles)===null||R===void 0?void 0:R.lastRow)===null||B===void 0?void 0:B.tcStyle)===null||O===void 0?void 0:O.border)}),G=C(C({},G),(F=(z=y.tableStyles)===null||z===void 0?void 0:z.lastRow)===null||F===void 0?void 0:F.tcTxStyle)):y.props.firstCol&&t===0?(Z=C(C(C({},Z),(N=(H=y.tableStyles)===null||H===void 0?void 0:H.firstCol)===null||N===void 0?void 0:N.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(V=(Q=(U=y.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||Q===void 0?void 0:Q.tcStyle)===null||V===void 0?void 0:V.border)}),G=C(C({},G),(et=(J=y.tableStyles)===null||J===void 0?void 0:J.firstCol)===null||et===void 0?void 0:et.tcTxStyle)):y.props.lastCol&&y._isLastCol(S.td,t)?(Z=C(C(C({},Z),(ot=(at=y.tableStyles)===null||at===void 0?void 0:at.lastCol)===null||ot===void 0?void 0:ot.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(ht=(st=(ct=y.tableStyles)===null||ct===void 0?void 0:ct.lastCol)===null||st===void 0?void 0:st.tcStyle)===null||ht===void 0?void 0:ht.border)}),G=C(C({},G),(At=(Mt=y.tableStyles)===null||Mt===void 0?void 0:Mt.lastCol)===null||At===void 0?void 0:At.tcTxStyle)):(y.props.bandRow&&(y._isBandRow(k)?(Z=C(C(C({},Z),(kt=(jt=y.tableStyles)===null||jt===void 0?void 0:jt.band1H)===null||kt===void 0?void 0:kt.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(Ct=(St=(Pt=y.tableStyles)===null||Pt===void 0?void 0:Pt.band1H)===null||St===void 0?void 0:St.tcStyle)===null||Ct===void 0?void 0:Ct.border)}),G=C(C({},G),(It=(_t=y.tableStyles)===null||_t===void 0?void 0:_t.band1H)===null||It===void 0?void 0:It.tcTxStyle)):(Z=C(C(C({},Z),(Tt=(Rt=y.tableStyles)===null||Rt===void 0?void 0:Rt.band2V)===null||Tt===void 0?void 0:Tt.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(Et=(Ot=(Bt=y.tableStyles)===null||Bt===void 0?void 0:Bt.band2V)===null||Ot===void 0?void 0:Ot.tcStyle)===null||Et===void 0?void 0:Et.border)}),G=C(C({},G),(Ft=(Nt=y.tableStyles)===null||Nt===void 0?void 0:Nt.band2V)===null||Ft===void 0?void 0:Ft.tcTxStyle))),y.props.bandCol&&(y._isBandCol(t)?(Z=C(C(C({},Z),(Dt=(Zt=y.tableStyles)===null||Zt===void 0?void 0:Zt.band1V)===null||Dt===void 0?void 0:Dt.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(Ht=(Ut=(zt=y.tableStyles)===null||zt===void 0?void 0:zt.band1V)===null||Ut===void 0?void 0:Ut.tcStyle)===null||Ht===void 0?void 0:Ht.border)}),G=C(C({},G),(Vt=(Qt=y.tableStyles)===null||Qt===void 0?void 0:Qt.band1V)===null||Vt===void 0?void 0:Vt.tcTxStyle)):(Z=C(C(C({},Z),(Gt=(Wt=y.tableStyles)===null||Wt===void 0?void 0:Wt.band2H)===null||Gt===void 0?void 0:Gt.tcStyle),{border:C(C({},Z==null?void 0:Z.border),(Yt=(qt=(Xt=y.tableStyles)===null||Xt===void 0?void 0:Xt.band2H)===null||qt===void 0?void 0:qt.tcStyle)===null||Yt===void 0?void 0:Yt.border)}),G=C(C({},G),($t=(Jt=y.tableStyles)===null||Jt===void 0?void 0:Jt.band2H)===null||$t===void 0?void 0:$t.tcTxStyle)))),c.inheritTcStyle=Z,c.inheritTcTxStyle=G})})},a}(se),le=function(){function o(a,i,r,s){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=u.get(a,["attrs","order"]),this.pptx=i,this.ctx=r,this.source=a,this.group=s,this.source["p:grpSpPr"]){var l=u.get(this.source,["p:grpSpPr","a:xfrm"]);l&&(this.offset={x:Math.round(E(parseInt(l["a:off"].attrs.x))),y:Math.round(E(parseInt(l["a:off"].attrs.y)))},this.chOffset={x:Math.round(E(parseInt(l["a:chOff"].attrs.x))),y:Math.round(E(parseInt(l["a:chOff"].attrs.y)))},this.extend={w:Math.round(E(parseInt(l["a:ext"].attrs.cx))),h:Math.round(E(parseInt(l["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(E(parseInt(l["a:chExt"].attrs.cx))),h:Math.round(E(parseInt(l["a:chExt"].attrs.cy)))},this.rotate=xt(parseInt(u.get(l,"attrs.rot",0))),this.flipV=u.get(l,"attrs.flipV")==="1",this.flipH=u.get(l,"attrs.flipH")==="1")}this._parseBackground(),this._parseNodes()}return o.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},o.prototype._parseBackground=function(){var a=u.get(this.source,["p:grpSpPr"]);a&&a["a:solidFill"]?this.background=W(a["a:solidFill"],this.ctx.theme,this.ctx):a&&a["a:gradFill"]?this.background=ut(a["a:gradFill"],this.ctx.theme,this.ctx):a&&a["a:blipFill"]&&(this.background=pt(a["a:blipFill"],this.pptx,this.ctx))},o.prototype._parseNodes=function(){var a=this.source;Lt(this.nodes,a,this.pptx,this.ctx,this)},o}();function fe(o){var a={},i=u.get(o,"attrs")||{};return Object.keys(i).forEach(function(r){switch(r){case"algn":a.align=i[r];break;case"marL":a.marginLeft=E(parseInt(i[r]));break;case"indent":a.indent=E(parseInt(i[r]));break;case"lvl":a.level=i[r]}}),u.get(o,["a:lnSpc","a:spcPct","attrs","val"])&&(a.lineHeight=parseInt(o["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),a}function ve(o,a,i){var r={},s=u.get(o,"attrs")||{};Object.keys(s).forEach(function(d){switch(d){case"sz":r.size=parseInt(s[d])/100;break;case"b":r.bold=s[d]==="1";break;case"i":r.italic=s[d]==="1";break;case"u":r.underline=s[d];break;case"strike":r.strike=s[d];break;case"order":case"dirty":break;default:r[d]=s[d]}});var l=u.get(o,"a:solidFill");return l&&(r.color=W(l,a,i)),r}function Lt(o,a,i,r,s){for(var l in a)switch(l){case"p:sp":for(var d=Array.isArray(a[l])?a[l]:[a[l]],v=0;v<d.length;v++){var f=d[v];o.push(new gt(f,i,r,s))}break;case"p:pic":var x=Array.isArray(a[l])?a[l]:[a[l]];for(v=0;v<x.length;v++){var y=x[v],b=y["p:blipFill"]["a:blip"].attrs["r:embed"],j=r.rels[b].target,L=new he(j,y,i,r);o.push(L)}break;case"p:cxnSp":var _=Array.isArray(a[l])?a[l]:[a[l]];for(v=0;v<_.length;v++)f=_[v],o.push(new gt(f,i,r,s));break;case"p:graphicFrame":var S=Array.isArray(a[l])?a[l]:[a[l]];for(v=0;v<S.length;v++){var k=S[v];u.get(k,["a:graphic","a:graphicData","attrs","uri"])==="http://schemas.openxmlformats.org/drawingml/2006/table"&&o.push(new ke(k,i,r,s))}break;case"p:grpSp":var c=Array.isArray(a[l])?a[l]:[a[l]];for(v=0;v<c.length;v++){var t=c[v];o.push(new le(t,i,r,s))}}}var qe=function(){function o(a,i,r){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=a,this.source=i,this.pptx=r}return Object.defineProperty(o.prototype,"index",{get:function(){if(!this.name)return 0;var a=this.name.match(/(\d+)/);return a?parseInt(a[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),o.prototype.load=function(){return q(this,void 0,void 0,function(){return Y(this,function(a){switch(a.label){case 0:return[4,this._loadRels()];case 1:return a.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return a.sent(),[2]}})})},o.prototype._loadRels=function(){return q(this,void 0,void 0,function(){var a,i,r,s=this;return Y(this,function(l){switch(l.label){case 0:return i=$,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return a=i.apply(void 0,[l.sent()]),r=u.get(a,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(d){switch(u.get(d,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var v=d.attrs.Target.replace("../","ppt/");s.slideLayout=s.pptx.getSlideLayout(v);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":s.rels[d.attrs.Id]={type:d.attrs.Type.split("/").pop(),target:d.attrs.Target.replace("../","ppt/")}}}),[2]}})})},o.prototype._loadBackground=function(){var a=u.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);a&&a["a:solidFill"]?this.background=W(a["a:solidFill"],this.theme,this):a&&a["a:gradFill"]?this.background=ut(a["a:gradFill"],this.theme,this):a&&a["a:blipFill"]&&(this.background=pt(a["a:blipFill"],this.pptx,this))},o.prototype._loadNodes=function(){return q(this,void 0,void 0,function(){var a;return Y(this,function(i){return a=u.get(this.source,["p:sld","p:cSld","p:spTree"]),Lt(this.nodes,a,this.pptx,this),[2]})})},o.prototype.getColorThemeName=function(a){return this.slideLayout.getColorThemeName(a)},o.prototype.getNodeInheritAttrsByType=function(a,i){var r=this.slideLayout.getNodeByType(a),s=u.get(r.source,i);return s||this.slideLayout.getNodeInheritAttrsByType(a,i)},o.prototype.getNodeInheritAttrsByIdx=function(a,i){var r=this.slideLayout.getNodeByIdx(a),s=u.get(r.source,i);return s||this.slideLayout.getNodeInheritAttrsByIdx(a,i)},o}(),Ye=function(){function o(a,i,r){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=a,this.source=i,this.pptx=r}return Object.defineProperty(o.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),o.prototype.load=function(){return q(this,void 0,void 0,function(){return Y(this,function(a){switch(a.label){case 0:return[4,this._loadRels()];case 1:return a.sent(),[4,this._loadBackground()];case 2:return a.sent(),[4,this._loadNodes()];case 3:return a.sent(),[2]}})})},o.prototype._loadRels=function(){return q(this,void 0,void 0,function(){var a,i,r,s=this;return Y(this,function(l){switch(l.label){case 0:return i=$,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return a=i.apply(void 0,[l.sent()]),r=u.get(a,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(d){switch(u.get(d,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var v=d.attrs.Target.replace("../","ppt/");s.slideMaster=s.pptx.getSlideMaster(v);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":s.rels[d.attrs.Id]={type:d.attrs.Type.split("/").pop(),target:d.attrs.Target.replace("../","ppt/")}}}),[2]}})})},o.prototype._loadBackground=function(){return q(this,void 0,void 0,function(){var a;return Y(this,function(i){return(a=u.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&a["a:solidFill"]?this.background=W(a["a:solidFill"],this.theme):a&&a["a:gradFill"]?this.background=ut(a["a:gradFill"],this.theme,this):a&&a["a:blipFill"]&&(this.background=pt(a["a:blipFill"],this.pptx,this)),[2]})})},o.prototype._loadNodes=function(){return q(this,void 0,void 0,function(){var a;return Y(this,function(i){return a=u.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Lt(this.nodes,a,this.pptx,this),[2]})})},o.prototype.getColorThemeName=function(a){return this.slideMaster.getColorThemeName(a)},o.prototype.getNodeByType=function(a){return this.nodes.find(function(i){return i.type===a})},o.prototype.getNodeByIdx=function(a){return this.nodes.find(function(i){return i.idx===a})},o.prototype.getNodeInheritAttrsByType=function(a,i){var r=this.slideMaster.getNodeByType(a);return r&&u.get(r.source,i)},o.prototype.getNodeInheritAttrsByIdx=function(a,i){var r=this.slideMaster.getNodeByIdx(a);return r&&u.get(r.source,i)},o}(),Je=function(){function o(a,i,r){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=a,this.source=i,this.pptx=r,this.load()}return Object.defineProperty(o.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),o.prototype.load=function(){return q(this,void 0,void 0,function(){return Y(this,function(a){switch(a.label){case 0:return[4,this._parseRels()];case 1:return a.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},o.prototype._parseRels=function(){return q(this,void 0,void 0,function(){var a,i,r,s=this;return Y(this,function(l){switch(l.label){case 0:return i=$,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return a=i.apply(void 0,[l.sent()]),r=u.get(a,["Relationships","Relationship"])||[],Array.isArray(r)||(r=[r]),r.forEach(function(d){switch(u.get(d,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var v=d.attrs.Target.replace("../","ppt/");s.theme=s.pptx.getTheme(v);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":s.rels[d.attrs.Id]={type:d.attrs.Type.split("/").pop(),target:d.attrs.Target.replace("../","ppt/")}}}),[2]}})})},o.prototype._parseColorMap=function(){this.colorMap=u.omit(u.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},o.prototype.getColorThemeName=function(a){return this.colorMap[a]||a},o.prototype._parseBackground=function(){var a=u.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),i=u.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);a&&a["a:solidFill"]?this.background=W(a["a:solidFill"],this.theme,this):a&&a["a:gradFill"]?this.background=ut(a["a:gradFill"],this.theme,this):a&&a["a:blipFill"]?this.background=pt(a["a:blipFill"],this.pptx,this):i&&(this.background=W(i,this.theme,this))},o.prototype._parseDefaultTextStyle=function(){var a=this,i=this.pptx.defaultTextStyleSource;Object.keys(i).forEach(function(r){if(r.startsWith("a:")&&r.endsWith("pPr")){var s=r.substr(2,r.length-5),l=u.get(i[r],["a:defRPr"]);a.defaultTextStyle[s]={props:fe(i[r]),defRPr:ve(l,a.theme,a)}}})},o.prototype._parseTextStyles=function(){var a=this,i=u.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(r){var s=a.textStyles[r],l=u.get(i,"p:".concat(r))||{};Object.keys(l).forEach(function(d){if(d.startsWith("a:")&&d.endsWith("pPr")){var v=d.substr(2,d.length-5);s[v]={},s[v].props=fe(l[d]);var f=u.get(l[d],["a:defRPr"]);s[v].defRPr=ve(f,a.theme,a)}})})},o.prototype._parseTableStyles=function(){var a=this,i={},r=u.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"]);Array.isArray(r)||(r=[r]),r.forEach(function(s){var l=u.get(s,["attrs","styleId"]);i[l]={},Object.keys(s).forEach(function(d){if(d.startsWith("a:")){var v=d.substr(2);i[l][v]={};var f=u.get(s[d],["a:tcStyle"]);if(f){var x={};u.get(f,["a:fill","a:solidFill"])&&(x.background=W(u.get(f,["a:fill","a:solidFill"]),a.theme,a));var y=u.get(f,"a:tcBdr");y&&(x.border={},Object.keys(y).forEach(function(L){if(L.startsWith("a:")){var _=L.substr(2),S=u.get(y[L],["a:ln"]);x.border[_]=it(S,a.theme,a)}})),i[l][v].tcStyle=x}var b=u.get(s[d],["a:tcTxStyle"]);if(b){var j={};j.color=W(b,a.theme,a),u.get(b,["attrs","b"])==="on"&&(j.bold=!0),i[l][v].tcTxStyle=j}}})}),this.tableStyles=i},o.prototype._loadNodes=function(){return q(this,void 0,void 0,function(){var a;return Y(this,function(i){return a=u.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Lt(this.nodes,a,this.pptx,this),[2]})})},o.prototype.getNodeByType=function(a){return this.nodes.find(function(i){return i.type===a})},o.prototype.getNodeByIdx=function(a){return this.nodes.find(function(i){return i.idx===a})},o.prototype.getNodeInheritAttrsByType=function(a,i){},o.prototype.getNodeInheritAttrsByIdx=function(a,i){},o}(),$e=function(){function o(a,i,r){this.clrScheme={},this.borderScheme=[],this.name=a,this.source=i,this.pptx=r,this._parseClrScheme(),this._parseLineStyleLst()}return o.prototype._parseClrScheme=function(){var a=u.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var i in a)if(i.startsWith("a:")){var r=i.substring(2),s=u.get(a[i],["a:sysClr","attrs","lastClr"])||u.get(a[i],["a:srgbClr","attrs","val"]);this.clrScheme[r]="#"+s}},o.prototype._parseLineStyleLst=function(){var a=this,i=u.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=i.map(function(r){var s={color:{}};return u.get(r,["attrs","w"])&&(s.width=E(parseInt(u.get(r,["attrs","w"])))),u.get(r,["attrs","algn"])&&(s.algn=u.get(r,["attrs","algn"])),u.get(r,["attrs","cap"])&&(s.cap=u.get(r,["attrs","cap"])),u.get(r,["attrs","cmpd"])&&(s.cmpd=u.get(r,["attrs","cmpd"])),u.get(r,["a:miter","attrs","lim"])&&(s.miterLim=E(parseInt(u.get(r,["a:miter","attrs","lim"])))),u.get(r,["a:prstDash","attrs","val"])&&(s.type=u.get(r,["a:prstDash","attrs","val"])),u.get(r,["a:solidFill"])&&(s.color=W(u.get(r,["a:solidFill"]),a)),s})},o.prototype.getColor=function(a){if(a!=="phClr")return this.clrScheme[a]||this.defaultColor},o.prototype.getLineStyle=function(a){return this.borderScheme[a-1]},o}(),Ke=function(){function o(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return o.prototype.load=function(a){return q(this,void 0,void 0,function(){var i,r;return Y(this,function(s){switch(s.label){case 0:return i=new Ie,r=this,[4,i.loadAsync(a)];case 1:return r._zipContents=s.sent(),[4,this._loadThumbnail()];case 2:return s.sent(),[4,this._loadMedia()];case 3:return s.sent(),[4,this._loadPresentation()];case 4:return s.sent(),[4,this._loadContentTypes()];case 5:return s.sent(),[2]}})})},o.prototype._loadThumbnail=function(){return q(this,void 0,void 0,function(){var a;return Y(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:a=i.sent(),this.thumbnail="data:image/jpeg;base64,"+a,i.label=2;case 2:return[3,4];case 3:return i.sent(),[3,4];case 4:return[2]}})})},o.prototype._loadPresentation=function(){return q(this,void 0,void 0,function(){var a,i,r;return Y(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return a=s.sent(),i=$(a),r=i["p:presentation"]["p:sldSz"].attrs,this.width=E(parseInt(r.cx)),this.height=E(parseInt(r.cy)),this.defaultTextStyleSource=u.get(i,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return s.sent(),[3,3];case 3:return[2]}})})},o.prototype._loadContentTypes=function(){return q(this,void 0,void 0,function(){var a,i,r,s,l,d,v,f,x,y,b,j,L,_,S,k,c,t,n,e,h;return Y(this,function(p){switch(p.label){case 0:return p.trys.push([0,22,,23]),i=$,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(a=i.apply(void 0,[p.sent()]),r=a.Types.Override,!(s=r.filter(function(w){return w.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];l=0,d=s,p.label=2;case 2:return l<d.length?(v=d[l],t=v.attrs.PartName.substr(1),f=$,[4,this._zipContents.files[t].async("text")]):[3,5];case 3:n=f.apply(void 0,[p.sent()]),this.themes.push(new $e(t,n,this)),p.label=4;case 4:return l++,[3,2];case 5:return(x=r.find(function(w){return w.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(t=x.attrs.PartName.substr(1),y=$,[4,this._zipContents.files[t].async("text")]):[3,7];case 6:n=y.apply(void 0,[p.sent()]),this.tableStyles=n,p.label=7;case 7:b=r.filter(function(w){return w.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),c=0,p.label=8;case 8:return c<b.length?(t=b[c].attrs.PartName.substr(1),j=$,[4,this._zipContents.files[t].async("text")]):[3,11];case 9:n=j.apply(void 0,[p.sent()]),this.slideMaster.push(new Je(t,n,this)),p.label=10;case 10:return c++,[3,8];case 11:L=r.filter(function(w){return w.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),c=0,p.label=12;case 12:return c<L.length?(t=L[c].attrs.PartName.substr(1),_=$,[4,this._zipContents.files[t].async("text")]):[3,16];case 13:return n=_.apply(void 0,[p.sent()]),[4,(S=new Ye(t,n,this)).load()];case 14:p.sent(),this.slideLayouts.push(S),p.label=15;case 15:return c++,[3,12];case 16:k=r.filter(function(w){return w.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),c=0,p.label=17;case 17:return c<k.length?(t=k[c].attrs.PartName.substr(1),e=$,[4,this._zipContents.files[t].async("text")]):[3,21];case 18:return n=e.apply(void 0,[p.sent()]),[4,(h=new qe(t,n,this)).load()];case 19:p.sent(),this.slides.push(h),p.label=20;case 20:return c++,[3,17];case 21:return this.slides.sort(function(w,m){return w.index-m.index}),[3,23];case 22:return p.sent(),[3,23];case 23:return[2]}})})},o.prototype._loadMedia=function(){return q(this,void 0,void 0,function(){var a,i,r,s,l,d,v,f,x,y,b,j=this;return Y(this,function(L){switch(L.label){case 0:a=Object.keys(this._zipContents.files).filter(function(S){return S.startsWith("ppt/media/image")}).map(function(S){return j._zipContents.files[S]}),i=0,r=a,L.label=1;case 1:return i<r.length?(s=r[i],l=function(S){var k;switch(S){case"jpg":case"jpeg":k="image/jpeg";break;case"png":k="image/png";break;case"gif":k="image/gif";break;case"emf":k="image/x-emf";break;case"wmf":k="image/x-wmf";break;default:k="image/*"}return k}((_=s.name).substr(2+(~-_.lastIndexOf(".")>>>0))),[4,s.async("base64")]):[3,4];case 2:d=L.sent(),this.medias[s.name]="data:".concat(l,";base64,").concat(d),L.label=3;case 3:return i++,[3,1];case 4:v=Object.keys(this._zipContents.files).filter(function(S){return S.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(S.split(".").pop().toLowerCase())}).map(function(S){return j._zipContents.files[S]}),f=0,x=v,L.label=5;case 5:return f<x.length?[4,(y=x[f]).async("blob")]:[3,8];case 6:b=L.sent(),this.medias[y.name]=URL.createObjectURL(b),L.label=7;case 7:return f++,[3,5];case 8:return[2]}var _})})},o.prototype.getXmlByPath=function(a){return q(this,void 0,void 0,function(){return Y(this,function(i){switch(i.label){case 0:if(!this._zipContents.files[a])throw new Error("文件不存在");return[4,this._zipContents.files[a].async("text")];case 1:return[2,i.sent()]}})})},o.prototype.getSlideLayout=function(a){return this.slideLayouts.find(function(i){return i.name===a})},o.prototype.getSlideMaster=function(a){return this.slideMaster.find(function(i){return i.name===a})},o.prototype.getTheme=function(a){return this.themes.find(function(i){return i.name===a})},o.prototype.getMedia=function(a){return this.medias[a]},o}();function Pe(o){var a=o.extend,i=o.offset,r=o.clip,s=o.base64,l=o.audioFile,d=o.videoFile,v=document.createElement("div");v.style.setProperty("position","absolute"),v.style.setProperty("left",i.x+"px"),v.style.setProperty("top",i.y+"px");var f,x,y,b,j=document.createElement("div");j.style.setProperty("position","absolute"),j.style.setProperty("left","0"),j.style.setProperty("top","0"),j.style.setProperty("width",a.w+"px"),j.style.setProperty("height",a.h+"px"),j.style.setProperty("overflow","hidden"),r?(f=a.w/(1-(r.l===void 0?0:r.l)-(r.r===void 0?0:r.r)),x=a.h/(1-(r.t===void 0?0:r.t)-(r.b===void 0?0:r.b)),y=-1*f*(r.l===void 0?0:r.l),b=-1*x*(r.t===void 0?0:r.t)):(f=a.w,x=a.h,y=0);var L=document.createElement("img");if(L.src=s,L.width=f,L.height=x,L.style.setProperty("position","absolute"),L.style.setProperty("left",y+"px"),L.style.setProperty("top",b+"px"),j.append(L),v.append(j),l){var _=document.createElement("audio");_.style.position="absolute",_.style.left="0",_.style.top="0",_.src=l,_.controls=!0,_.style.transform="translate(-50%)",v.append(_)}if(d){var S=document.createElement("video");S.style.position="absolute",S.style.left="0",S.style.top="0",S.width=a.w,S.height=a.h,S.src=d,S.controls=!0,v.append(S)}return v}function ta(o,a,i){var r,s=o.props,l=o.text,d=C(C({},a),s),v=document.createElement("span");v.innerHTML=l,d.size&&(!((r=i==null?void 0:i.normAutofit)===null||r===void 0)&&r.fontScale?v.style.fontSize=d.size*i.normAutofit.fontScale+"px":v.style.fontSize=d.size+"px");var f=D(d.color);return f&&(v.style.color=f),d.typeface&&(v.style.fontFamily=d.typeface),d.bold&&(v.style.fontWeight="bold"),d.italic&&(v.style.fontStyle="italic"),d.underline&&(v.style.textDecoration="underline"),d.background&&(v.style.backgroundColor=D(d.background)),v}function ea(o,a,i){var r=document.createElement("span"),s=o.firstElementChild;switch(r.style.fontSize=s.style.fontSize,r.style.color=s.style.color,r.style.fontWeight=s.style.fontWeight,r.style.fontStyle=s.style.fontStyle,r.style.marginRight="10px",a.buAutoNum){case"arabicPeriod":default:r.textContent=i+".";break;case"circleNumDbPlain":r.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][i-1]||i+"";break;case"romanUcPeriod":r.textContent=function(l){var d=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof l!="number"||l<1||l>3999)throw new Error("Input must be a number between 1 and 3999.");for(var v="",f=0;f<d.length;f++)for(;l>=d[f].value;)v+=d[f].numeral,l-=d[f].value;return v}(i)+".";break;case"alphaUcPeriod":r.textContent=ee(i)+".";break;case"alphaLcPeriod":r.textContent=ee(i).toLowerCase()+".";break;case"alphaLcParenR":r.textContent=ee(i).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":r.textContent=function(l){var d=["","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(l)||l<0)return"";for(var v="",f=l.toString(),x=0;x<f.length;x++)v+=d[parseInt(f[x],10)];return v}(i)+"."}o.prepend(r)}function mt(o,a,i){var r,s,l,d;a===void 0&&(a=0),i===void 0&&(i={});var v=o.inheritProps,f=o.inheritRProps,x=o.props,y=o.rows,b=C(C({},v),x),j=document.createElement("div"),L=i.isFirst?0:b.spaceBefore||0,_=i.isLast?0:b.spaceAfter||0;j.style.margin="0px",j.style.padding="".concat(L,"px 0px ").concat(_,"px 0px");var S=document.createElement("p");S.style.margin="0px",S.style.padding="0px",S.style.wordBreak="break-word",S.style.textAlign=b.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[b.align]||"center",b.align==="dist"&&(S.style.textAlignLast="justify");var k=b.hasOwnProperty("lineHeight")?1.2*b.lineHeight:1.2;if(!((s=(r=i.bodyProps)===null||r===void 0?void 0:r.normAutofit)===null||s===void 0)&&s.lnSpcReduction&&(k*=1-((d=(l=i.bodyProps)===null||l===void 0?void 0:l.normAutofit)===null||d===void 0?void 0:d.lnSpcReduction)),S.style.lineHeight=k+"",y.length){for(var c=0,t=y;c<t.length;c++){var n=t[c];S.appendChild(ta(n,f,i.bodyProps))}b.buAutoNum?ea(S,b,a):b.buChar&&function(h,p){var w=document.createElement("span"),m=h.firstElementChild;w.style.color=m.style.color,w.style.fontSize=m.style.fontSize,w.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[p.buChar]||"■",w.style.marginRight="10px",h.prepend(w)}(S,b),S.style.paddingLeft=(b.marginLeft||0)+(b.indent||0)+"px"}else{var e=document.createElement("span");e.innerHTML="&nbsp;",e.style.fontSize=f.size+"px",S.appendChild(e)}return j.appendChild(S),j}var Se="http://www.w3.org/2000/svg";function A(o){return document.createElementNS(Se,o)}function tt(o){var a=o.extend;return .16667*Math.min(a.w,a.h)}function T(o,a,i){i===void 0&&(i=0);var r=a.prstGeom,s=((r==null?void 0:r.gd)||[]).find(function(l){return l.name===o});return s?s.fmla:i}function M(o,a,i){i===void 0&&(i=0);var r=a.extend,s=a.prstGeom,l=((s==null?void 0:s.gd)||[]).find(function(d){return d.name===o});return l?Math.min(r.w,r.h)*l.fmla:i}function we(o,a,i){i===void 0&&(i=0);var r=a.extend,s=a.prstGeom,l=((s==null?void 0:s.gd)||[]).find(function(d){return d.name===o});return l?Math.max(r.w,r.h)*l.fmla:i}function K(o,a){var i=0;switch(o){case"sm":i=1*a;break;case"med":i=1.5*a;break;case"lg":i=2.5*a}return Math.max(i,2)}function ye(o,a,i,r){r===void 0&&(r=!1);var s=o.border,l=s===void 0?{}:s,d=o.uuid,v=l.headEnd,f=l.width,x=l.color,y=l.tailEnd,b=r?v:y,j=b.len,L=j===void 0?"med":j,_=b.w,S=_===void 0?"med":_,k=K(L,f),c=K(S,f),t=A("defs"),n=A("marker"),e="marker-".concat(d,"-").concat(r?"start":"end");n.setAttribute("id",e),n.setAttribute("viewBox","0 0 ".concat(2*k," ").concat(2*c)),n.setAttribute("refX",k+"px"),n.setAttribute("refY",c+"px"),n.setAttribute("markerWidth",2*k+"px"),n.setAttribute("markerHeight",2*c+"px"),n.setAttribute("orient","auto"),n.setAttribute("markerUnits","userSpaceOnUse");var h=A("ellipse");h.setAttribute("cx",k+"px"),h.setAttribute("cy",c+"px"),h.setAttribute("rx",k+"px"),h.setAttribute("ry",c+"px"),h.setAttribute("fill",D(x)||"transparent"),n.appendChild(h),t.appendChild(n),a.appendChild(t),i.setAttribute(r?"marker-start":"marker-end","url(#".concat(e,")"))}function be(o,a,i,r){r===void 0&&(r=!1);var s=o.border,l=s===void 0?{}:s,d=o.uuid,v=l.headEnd,f=l.width,x=l.color,y=l.tailEnd,b=r?v:y,j=b.len,L=j===void 0?"med":j,_=b.w,S=_===void 0?"med":_,k=K(L,f),c=K(S,f),t=A("defs"),n=A("marker"),e="marker-".concat(d,"-").concat(r?"start":"end");n.setAttribute("id",e),n.setAttribute("viewBox","0 0 ".concat(2*k," ").concat(2*c)),n.setAttribute("refX",(r?.9*k:1.1*k)+"px"),n.setAttribute("refY",c+"px"),n.setAttribute("markerWidth",2*k+"px"),n.setAttribute("markerHeight",2*c+"px"),n.setAttribute("orient","auto"),n.setAttribute("markerUnits","userSpaceOnUse");var h=A("path"),p=r?["M ".concat(2*k,",0"),"L 0,".concat(c),"L ".concat(2*k,",").concat(2*c),"Z"].join(" "):["M 0,0","L ".concat(2*k,",").concat(c),"L 0,".concat(2*c),"Z"].join(" ");h.setAttribute("d",p),h.setAttribute("fill",D(x)||"transparent"),n.appendChild(h),t.appendChild(n),a.appendChild(t),i.setAttribute(r?"marker-start":"marker-end","url(#".concat(e,")"))}function ge(o,a,i,r){r===void 0&&(r=!1);var s=o.border,l=s===void 0?{}:s,d=o.uuid,v=l.headEnd,f=l.width,x=l.color,y=l.tailEnd,b=r?v:y,j=b.len,L=j===void 0?"med":j,_=b.w,S=_===void 0?"med":_,k=K(L,f),c=K(S,f),t=A("defs"),n=A("marker"),e="marker-".concat(d,"-").concat(r?"start":"end");n.setAttribute("id",e),n.setAttribute("viewBox","0 0 ".concat(2*k," ").concat(2*c)),n.setAttribute("refX",k+"px"),n.setAttribute("refY",c+"px"),n.setAttribute("markerWidth",2*k+"px"),n.setAttribute("markerHeight",2*c+"px"),n.setAttribute("orient","auto"),n.setAttribute("markerUnits","userSpaceOnUse");var h=A("path"),p=["M 0,".concat(c),"L ".concat(k,",0"),"L ".concat(2*k,",").concat(c),"L ".concat(k,",").concat(2*c),"Z"].join(" ");h.setAttribute("d",p),h.setAttribute("fill",D(x)||"transparent"),n.appendChild(h),t.appendChild(n),a.appendChild(t),i.setAttribute(r?"marker-start":"marker-end","url(#".concat(e,")"))}function me(o,a,i,r){r===void 0&&(r=!1);var s=o.border,l=s===void 0?{}:s,d=o.uuid,v=l.headEnd,f=l.width,x=l.color,y=l.tailEnd,b=r?v:y,j=b.len,L=j===void 0?"med":j,_=b.w,S=_===void 0?"med":_,k=K(L,f),c=K(S,f),t=A("defs"),n=A("marker"),e="marker-".concat(d,"-").concat(r?"start":"end");n.setAttribute("id",e),n.setAttribute("viewBox","0 0 ".concat(2*k+2*f," ").concat(2*c+2*f));var h=r?S==="lg"?2*f:3*f:S==="lg"?2*k:2*k-f;n.setAttribute("refX",h+"px"),n.setAttribute("refY",c+f+"px"),n.setAttribute("markerWidth",2*k+"px"),n.setAttribute("markerHeight",2*c+"px"),n.setAttribute("orient","auto"),n.setAttribute("markerUnits","userSpaceOnUse");var p=A("path"),w=r?["M ".concat(2*k+f,", ").concat(f),"L ".concat(f,",").concat(c+f),"L ".concat(2*k+f,",").concat(2*c+f)].join(" "):["M ".concat(f,", ").concat(f),"L ".concat(2*k+f,",").concat(c+f),"L ".concat(f,",").concat(2*c+f)].join(" ");p.setAttribute("d",w),p.setAttribute("stroke-width",f+"px"),p.setAttribute("stroke",D(x)||"transparent"),p.setAttribute("fill","transparent"),p.setAttribute("stroke-linecap","round"),p.setAttribute("stroke-linejoin","miter"),p.style.overflow="visible",n.appendChild(p),t.appendChild(n),a.appendChild(t),i.setAttribute(r?"marker-start":"marker-end","url(#".concat(e,")"))}function xe(o,a,i,r){r===void 0&&(r=!1);var s=o.border,l=s===void 0?{}:s,d=o.uuid,v=l.headEnd,f=l.width,x=l.color,y=l.tailEnd,b=r?v:y,j=b.len,L=j===void 0?"med":j,_=b.w,S=_===void 0?"med":_,k=K(L,f),c=K(S,f),t=A("defs"),n=A("marker"),e="marker-".concat(d,"-").concat(r?"start":"end");n.setAttribute("id",e),n.setAttribute("viewBox","0 0 ".concat(2*k," ").concat(2*c));var h=r?S==="sm"?1.5*f:2*f:S==="sm"?2*k-1.5*f:2*k-2*f;n.setAttribute("refX",h+"px"),n.setAttribute("refY",c+"px"),n.setAttribute("markerWidth",2*k+"px"),n.setAttribute("markerHeight",2*c+"px"),n.setAttribute("orient","auto"),n.setAttribute("markerUnits","userSpaceOnUse");var p=A("path"),w=r?["M 0, ".concat(c),"L ".concat(2*k,",0"),"L ".concat(k,",").concat(c),"L ".concat(2*k,",").concat(2*c),"Z"].join(" "):["M 0,0","L ".concat(2*k,",").concat(c),"L 0,".concat(2*c),"L ".concat(k,",").concat(c),"Z"].join(" ");p.setAttribute("d",w),p.setAttribute("fill",D(x)||"transparent"),p.style.overflow="visible",n.appendChild(p),t.appendChild(n),a.appendChild(t),i.setAttribute(r?"marker-start":"marker-end","url(#".concat(e,")"))}function lt(o,a,i){var r=o.border,s=r===void 0?{}:r;o.extend;var l=s.headEnd,d=s.tailEnd;if(l&&l.type!=="none")switch(l.type){case"triangle":be(o,a,i,!0);break;case"oval":ye(o,a,i,!0);break;case"diamond":ge(o,a,i,!0);break;case"arrow":me(o,a,i,!0);break;case"stealth":xe(o,a,i,!0)}if(d&&d.type!=="none")switch(d.type){case"triangle":be(o,a,i,!1);break;case"oval":ye(o,a,i,!1);break;case"diamond":ge(o,a,i,!1);break;case"arrow":me(o,a,i,!1);break;case"stealth":xe(o,a,i,!1)}}function Le(o){var a=o.extend,i=A("rect");return i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("width",a.w+"px"),i.setAttribute("height",a.h+"px"),i}function nt(o,a,i,r,s){var l=o*Math.PI/180;return[l===0||l===2*Math.PI?a+r:l===Math.PI?a-r:l===Math.PI/2||l===3*Math.PI/2?a:l>0&&l<Math.PI/2||l>3*Math.PI/2&&l<2*Math.PI?a+Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(l),2)/Math.pow(s,2))):a-Math.sqrt(1/(1/Math.pow(r,2)+Math.pow(Math.tan(l),2)/Math.pow(s,2))),l===0||l===2*Math.PI||l===Math.PI?i:l===Math.PI/2?i+s:l===3*Math.PI/2?i-s:l>Math.PI&&l<2*Math.PI?i-Math.sqrt(1/(1/Math.pow(s,2)+Math.pow(1/Math.tan(l),2)/Math.pow(r,2))):i+Math.sqrt(1/(1/Math.pow(s,2)+Math.pow(1/Math.tan(l),2)/Math.pow(r,2)))]}function vt(o,a){var i=0;return(a>o&&a-o>180||a<o&&o-a<180)&&(i=1),i}function dt(o){var a=o.extend,i=.146*a.w,r=.146*a.h;return{top:r,bottom:r,left:i,right:i,w:a.w-2*i,h:a.h-2*r}}function Ce(o){var a=o.extend,i=o.offset,r=o.border,s=o.background,l=o.rotate,d=o.flipH,v=o.flipV,f=document.createElement("div"),x=i.x,y=i.y;f.className="shape-wrapper shape-".concat(o.shape),f.style.setProperty("position","absolute"),f.style.setProperty("width",(a.w||1)+"px"),f.style.setProperty("height",(a.h||1)+"px"),f.style.setProperty("left",x+"px"),f.style.setProperty("top",y+"px");var b,j=document.createElementNS(Se,"svg");j.style.setProperty("position","absolute"),j.setAttribute("width","100%"),j.setAttribute("height","100%"),j.style.setProperty("left","0"),j.style.setProperty("top","0"),j.style.overflow="visible";var L={left:0,top:0,right:0,bottom:0,w:a.w,h:a.h},_=!0;switch(o.shape){case"customGeom":b=function(c){var t=c.prstGeom,n=(t===void 0?{}:t).pathList,e=A("path"),h={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},p=n.map(function(w){var m=h[w.type],g=Array.isArray(w.points)?w.points.map(function(I){return"".concat(I[0],",").concat(I[1])}).join(" "):"";return g?"".concat(m," ").concat(g):"".concat(m)}).join(" ");return e.setAttribute("d",p),e}(o),lt(o,j,b);break;case"flowChartProcess":case"rect":b=Le(o);break;case"snip1Rect":b=function(c){var t=c.extend,n=A("polygon"),e=M("adj",c,tt(c)),h=["0,0","".concat(t.w-e,",0"),"".concat(t.w,",").concat(e),"".concat(t.w,",").concat(t.h),"0,".concat(t.h)].join(" ");return n.setAttribute("points",h),n}(o);break;case"snip2SameRect":b=function(c){var t=c.extend,n=A("polygon"),e=M("adj1",c,tt(c)),h=M("adj2",c,0),p=[[e,0],[t.w-e,0],[t.w,e],[t.w,t.h-h],[t.w-h,t.h],[h,t.h],[0,t.h-h],[0,e]].map(function(w){return"".concat(w[0],",").concat(w[1])}).join(" ");return n.setAttribute("points",p),n}(o);break;case"snip2DiagRect":b=function(c){var t=c.extend,n=A("polygon"),e=M("adj1",c,0),h=M("adj2",c,tt(c)),p=[[e,0],[t.w-h,0],[t.w,h],[t.w,t.h-e],[t.w-e,t.h],[h,t.h],[0,t.h-h],[0,e]].map(function(w){return"".concat(w[0],",").concat(w[1])}).join(" ");return n.setAttribute("points",p),n}(o);break;case"snipRoundRect":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,tt(c)),h=M("adj2",c,tt(c)),p=["M ".concat(e,",0"),"L ".concat(t.w-h,",0"),"L ".concat(t.w,",").concat(h),"L ".concat(t.w,",").concat(t.h),"L 0,".concat(t.h),"L 0,".concat(e),"Q 0,0 ".concat(e,",0"),"Z"].join(" ");return n.setAttribute("d",p),n}(o);break;case"roundRect":b=function(c){var t=Le(c),n=M("adj",c,tt(c));return t.setAttribute("rx",n+"px"),t.setAttribute("ry",n+"px"),t}(o);break;case"round1Rect":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,tt(c)),h=["M 0,0","L ".concat(t.w-e,",0"),"Q ".concat(t.w,",0 ").concat(t.w,",").concat(e),"L ".concat(t.w,",").concat(t.h),"L 0,".concat(t.h),"Z"].join(" ");return n.setAttribute("d",h),n}(o);break;case"round2SameRect":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,tt(c)),h=M("adj2",c,0),p=["M ".concat(e,",0"),"L ".concat(t.w-e,",0"),"Q ".concat(t.w,",0 ").concat(t.w,",").concat(e),"L ".concat(t.w,",").concat(t.h-h),"Q ".concat(t.w,",").concat(t.h," ").concat(t.w-h,",").concat(t.h),"L ".concat(h,",").concat(t.h),"Q 0,".concat(t.h," 0,").concat(t.h-h),"L 0,".concat(e),"Q 0,0 ".concat(e,",0"),"Z"].join(" ");return n.setAttribute("d",p),n}(o);break;case"round2DiagRect":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,tt(c)),h=M("adj2",c,0),p=["M ".concat(e,",0"),"L ".concat(t.w-h,",0"),"Q ".concat(t.w,",0 ").concat(t.w,",").concat(h),"L ".concat(t.w,",").concat(t.h-e),"Q ".concat(t.w,",").concat(t.h," ").concat(t.w-e,",").concat(t.h),"L ".concat(h,",").concat(t.h),"Q 0,".concat(t.h," 0,").concat(t.h-h),"L 0,".concat(e),"Q 0,0 ".concat(e,",0"),"Z"].join(" ");return n.setAttribute("d",p),n}(o);break;case"triangle":b=function(c){var t=c.extend,n=A("polygon"),e=["".concat(t.w/2,",0"),"0,".concat(t.h),"".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("points",e),n}(o);break;case"rtTriangle":b=function(c){var t=c.extend,n=A("polygon"),e=["0,".concat(t.h),"0,0","".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("points",e),n}(o);break;case"ellipse":b=function(c){var t=c.extend,n=A("ellipse"),e=t.w/2,h=t.h/2,p=e,w=h;return n.setAttribute("cx",e+"px"),n.setAttribute("cy",h+"px"),n.setAttribute("rx",p+"px"),n.setAttribute("ry",w+"px"),n}(o);break;case"line":b=function(c){var t=c.extend,n=A("path"),e=["M 0,0","L ".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("d",e),n}(o),lt(o,j,b),_=!1;break;case"straightConnector1":b=function(c){var t=c.extend,n=A("path"),e=["M 0,0","L ".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("d",e),n}(o),lt(o,j,b),_=!1;break;case"bentConnector3":b=function(c){var t=c.extend,n=A("path"),e=we("adj1",c,.5*Math.max(t.w,t.h)),h=["M 0,0","L ".concat(e,",0"),"L ".concat(e,",").concat(t.h),"L ".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("d",h),n}(o),lt(o,j,b),_=!1;break;case"curvedConnector3":b=function(c){var t=c.extend,n=A("path"),e=we("adj1",c,.5*Math.max(t.w,t.h)),h=["M0,0","Q".concat(e,",0 ").concat(e,",").concat(t.h/2),"T".concat(t.w,",").concat(t.h)].join(" ");return n.setAttribute("d",h),n}(o),lt(o,j,b),_=!1;break;case"parallelogram":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.5*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w,",0"),"L".concat(t.w-e,",").concat(t.h),"L0,".concat(t.h),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.5*Math.min(t.w,t.h)),e=.84*(t.w-n),h=.08*t.h+n/t.w*t.h*.42;return{top:h,bottom:h,left:(t.w-e)/2,right:(t.w-e)/2,w:e,h:t.h-2*h}}(o);break;case"trapezoid":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.25*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(t.h),"L0,".concat(t.h),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.5*Math.min(t.w,t.h)),e=n/t.w*.66*t.h,h=.66*n;return{top:e,bottom:0,left:h,right:h,w:t.w-2*h,h:t.h-e}}(o);break;case"diamond":b=function(c){var t=c.extend,n=A("path"),e=["M".concat(t.w/2,",0"),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w/2,",").concat(t.h),"L0,".concat(t.h/2),"Z"].join(" ");return n.setAttribute("d",e),n}(o),L=function(c){var t=c.extend,n=.25*t.h,e=.25*t.w;return{top:n,bottom:n,left:e,right:e,w:.5*t.w,h:.5*t.h}}(o);break;case"pentagon":b=function(c){var t=c.extend,n=A("path"),e=["M".concat(t.w/2,",0"),"L".concat(t.w,",").concat(.3771*t.h),"L".concat(.808*t.w,",").concat(t.h),"L".concat(.192*t.w,",").concat(t.h),"L0,".concat(.3771*t.h),"Z"].join(" ");return n.setAttribute("d",e),n}(o),L=function(c){var t=c.extend,n=.227*t.h,e=.192*t.w;return{top:n,bottom:0,left:e,right:e,w:.616*t.w,h:.773*t.h}}(o);break;case"hexagon":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.25*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-e,",").concat(t.h),"L".concat(e,",").concat(t.h),"L0,".concat(t.h/2),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h)),e=.098*t.h+n/t.w*.38*t.h,h=.088*t.w+.422*n;return{top:e,bottom:e,left:h,right:h,w:t.w-2*h,h:t.h-2*e}}(o);break;case"heptagon":b=function(c){var t=c.extend,n=A("path"),e=["M".concat(t.w/2,",0"),"L".concat(.9*t.w,",").concat(.2*t.h),"L".concat(t.w,",").concat(.642*t.h),"L".concat(.722*t.w,",").concat(t.h),"L".concat(.278*t.w,",").concat(t.h),"L0,".concat(.642*t.h),"L".concat(.1*t.w,",").concat(.2*t.h),"Z"].join(" ");return n.setAttribute("d",e),n}(o),L=function(c){var t=c.extend;return{top:.2*t.h,bottom:.2*t.h,left:.1*t.w,right:.1*t.w,w:.8*t.w,h:.6*t.h}}(o);break;case"octagon":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.29*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(e),"L".concat(t.w,",").concat(t.h-e),"L".concat(t.w-e,",").concat(t.h),"L".concat(e,",").concat(t.h),"L0,".concat(t.h-e),"L0,".concat(e),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.29*Math.min(t.w,t.h));return{top:.5*n,bottom:.5*n,left:.5*n,right:.5*n,w:t.w-n,h:t.h-n}}(o);break;case"decagon":b=function(c){var t=c.extend,n=A("path"),e=.344,h=.117,p=.19,w=["M".concat(t.w*e,",0"),"L".concat(.656*t.w,",0"),"L".concat(.883*t.w,",").concat(t.h*p),"L".concat(t.w,",").concat(.5*t.h),"L".concat(.883*t.w,",").concat(.81*t.h),"L".concat(.656*t.w,",").concat(t.h),"L".concat(t.w*e,",").concat(t.h),"L".concat(t.w*h,",").concat(.81*t.h),"L0,".concat(.5*t.h),"L".concat(t.w*h,",").concat(t.h*p),"Z"].join(" ");return n.setAttribute("d",w),n}(o),L=function(c){var t=c.extend,n=.117,e=.19;return{top:t.h*e,bottom:t.h*e,left:t.w*n,right:t.w*n,w:.766*t.w,h:.62*t.h}}(o);break;case"dodecagon":b=function(c){var t=c.extend,n=A("path"),e=.364,h=.133,p=.135,w=["M".concat(t.w*e,",0"),"L".concat(.636*t.w,",0"),"L".concat(.867*t.w,",").concat(t.h*p),"L".concat(t.w,",").concat(t.h*e),"L".concat(t.w,",").concat(.636*t.h),"L".concat(.867*t.w,",").concat(.865*t.h),"L".concat(.636*t.w,",").concat(t.h),"L".concat(t.w*e,",").concat(t.h),"L".concat(t.w*h,",").concat(.865*t.h),"L0,".concat(.636*t.h),"L0,".concat(t.h*e),"L".concat(t.w*h,",").concat(t.h*p),"Z"].join(" ");return n.setAttribute("d",w),n}(o),L=function(c){var t=c.extend,n=.133,e=.135;return{top:t.h*e,bottom:t.h*e,left:t.w*n,right:t.w*n,w:.734*t.w,h:.73*t.h}}(o);break;case"pie":b=function(c){var t=c.extend,n=A("path"),e=T("adj1",c,360),h=T("adj2",c,270),p=t.w/2,w=t.h/2,m=t.w/2,g=t.h/2,I=nt(e,m,g,p,w),P=I[0],R=I[1],B=nt(h,m,g,p,w),O=B[0],z=B[1],F=vt(e,h),H="M".concat(m,",").concat(g,", L").concat(P," ").concat(R," A ").concat(p," ").concat(w," 0 ").concat(F," ").concat(1," ").concat(O," ").concat(z," Z");return n.setAttribute("d",H),n}(o),L=dt(o);break;case"arc":b=function(c){var t=c.extend,n=A("path"),e=T("adj1",c,270),h=T("adj2",c,0),p=t.w/2,w=t.h/2,m=t.w/2,g=t.h/2,I=nt(e,m,g,p,w),P=I[0],R=I[1],B=nt(h,m,g,p,w),O=B[0],z=B[1],F=vt(e,h),H="M".concat(P,",").concat(R," A ").concat(p," ").concat(w," 0 ").concat(F," ").concat(1," ").concat(O," ").concat(z);return n.setAttribute("d",H),n}(o),_=!1;break;case"bracketPair":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.16667*Math.min(t.w,t.h)),h=["M".concat(e,",").concat(t.h),"Q".concat(0,",").concat(t.h," ").concat(0,",").concat(t.h-e),"L".concat(0,",").concat(e),"Q".concat(0,",").concat(0," ").concat(e,",").concat(0),"M".concat(t.w-e,",").concat(0),"Q".concat(t.w,",").concat(0," ").concat(t.w,",").concat(e),"L".concat(t.w,",").concat(t.h-e),"Q".concat(t.w,",").concat(t.h," ").concat(t.w-e,",").concat(t.h)].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=.285*M("adj",c,.16667*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(o),_=!1;break;case"bracePair":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.083335*Math.min(t.w,t.h)),h=["M".concat(2*e,",").concat(t.h),"Q".concat(e,",").concat(t.h," ").concat(e,",").concat(t.h-e),"L".concat(e,",").concat(t.h/2+e),"Q".concat(e,",").concat(t.h/2," ").concat(0,",").concat(t.h/2),"Q".concat(e,",").concat(t.h/2," ").concat(e,",").concat(t.h/2-e),"L".concat(e,",").concat(e),"Q".concat(e,",").concat(0," ").concat(2*e,",").concat(0),"M".concat(t.w-2*e,",").concat(0),"Q".concat(t.w-e,",").concat(0," ").concat(t.w-e,",").concat(e),"L".concat(t.w-e,",").concat(t.h/2-e),"Q".concat(t.w-e,",").concat(t.h/2," ").concat(t.w,",").concat(t.h/2),"Q".concat(t.w-e,",").concat(t.h/2," ").concat(t.w-e,",").concat(t.h/2+e),"L".concat(t.w-e,",").concat(t.h-e),"Q".concat(t.w-e,",").concat(t.h," ").concat(t.w-2*e,",").concat(t.h)].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=.285*M("adj",c,.16667*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(o),_=!1;break;case"chord":b=function(c){var t=c.extend,n=A("path"),e=T("adj1",c,45),h=T("adj2",c,270),p=t.w/2,w=t.h/2,m=t.w/2,g=t.h/2,I=nt(e,m,g,p,w),P=I[0],R=I[1],B=nt(h,m,g,p,w),O=B[0],z=B[1],F=vt(e,h),H="M".concat(P," ").concat(R," A ").concat(p," ").concat(w," 0 ").concat(F," ").concat(1," ").concat(O," ").concat(z," Z");return n.setAttribute("d",H),n}(o),L=dt(o);break;case"teardrop":b=function(c){var t=c.extend,n=A("path"),e=T("adj",c,1),h=t.w/2,p=t.h/2,w=t.w/2,m=t.h/2,g=nt(0,w,m,h,p),I=g[0],P=g[1],R=nt(270,w,m,h,p),B=R[0],O=R[1],z=vt(0,270),F="M".concat(I," ").concat(P," A ").concat(h," ").concat(p," 0 ").concat(z," ").concat(1," ").concat(B," ").concat(O),H=h*e,N=w+H,U=m-p*H/(t.w/2),Q=(t.w/2+N)/2,V=(t.h/2+U)/2;return F+=" Q".concat(Q,",0 ").concat(N,",").concat(U),F+=" Q".concat(t.w,",").concat(V," ").concat(w+h,",").concat(m),n.setAttribute("d",F),n}(o),L=dt(o);break;case"frame":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,.12*Math.min(t.w,t.h)),h=["M0,0","L".concat(t.w,",0"),"L".concat(t.w,",").concat(t.h),"L0,".concat(t.h),"Z","M".concat(e,",").concat(e),"L".concat(e,",").concat(t.h-e),"L".concat(t.w-e,",").concat(t.h-e),"L".concat(t.w-e,",").concat(e),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj1",c,.12*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(o);break;case"halfFrame":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,.333*Math.min(t.w,t.h)),h=Math.min(M("adj2",c,.333*Math.min(t.w,t.h)),t.w*(1-e/t.h)),p=["M0,0","L".concat(t.w,",0"),"L".concat(t.w*(1-e/t.h),",").concat(e),"L".concat(h,",").concat(e),"L".concat(h,",").concat(t.h*(1-h/t.w)),"L0,".concat(t.h),"Z"].join(" ");return n.setAttribute("d",p),n}(o);break;case"corner":b=function(c){var t=c.extend,n=A("path"),e=M("adj1",c,.5*Math.min(t.w,t.h)),h=M("adj2",c,.5*Math.min(t.w,t.h)),p=["M0,0","L".concat(h,",0"),"L".concat(h,",").concat(t.h-e),"L".concat(t.w,",").concat(t.h-e),"L".concat(t.w,",").concat(t.h),"L0,".concat(t.h),"Z"].join(" ");return n.setAttribute("d",p),n}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h));return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(o);break;case"diagStripe":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.5*Math.min(t.w,t.h)),h=t.w*e/t.h,p=["M".concat(h,",0"),"L".concat(t.w,",0"),"L0,".concat(t.h),"L0,".concat(e),"Z"].join(" ");return n.setAttribute("d",p),n}(o),L=function(c){var t=c.extend,n=T("adj",c,.5),e=.5*(1-n)*t.h,h=.5*(1-n)*t.w;return{top:0,bottom:e,left:0,right:h,w:t.w-h,h:t.h-e}}(o);break;case"plus":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.25*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w-e,",0"),"L".concat(t.w-e,",").concat(e),"L".concat(t.w,",").concat(e),"L".concat(t.w,",").concat(t.h-e),"L".concat(t.w-e,",").concat(t.h-e),"L".concat(t.w-e,",").concat(t.h),"L".concat(e,",").concat(t.h),"L".concat(e,",").concat(t.h-e),"L0,".concat(t.h-e),"L0,".concat(e),"L".concat(e,",").concat(e),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h));return{top:n,bottom:n,left:0,right:0,w:t.w,h:t.h-2*n}}(o);break;case"plaque":b=function(c){var t=c.extend,n=A("path"),e=M("adj",c,.16667*Math.min(t.w,t.h)),h=["M".concat(e,",0"),"L".concat(t.w-e,",0"),"Q".concat(t.w-e,",").concat(e," ").concat(t.w,",").concat(e),"L".concat(t.w,",").concat(t.h-e),"Q".concat(t.w-e,",").concat(t.h-e," ").concat(t.w-e,",").concat(t.h),"L".concat(e,",").concat(t.h),"Q".concat(e,",").concat(t.h-e," 0,").concat(t.h-e),"L0,".concat(e),"Q".concat(e,",").concat(e," ").concat(e,",0"),"Z"].join(" ");return n.setAttribute("d",h),n}(o),L=function(c){var t=c.extend,n=M("adj",c,.16667*Math.min(t.w,t.h));return{top:.72*n,bottom:.72*n,left:.72*n,right:.72*n,w:t.w-1.44*n,h:t.w-1.44*n}}(o);break;case"can":b=function(c){var t=c.extend,n=c.background,e=A("g"),h=A("path"),p=M("adj",c,.25*Math.min(t.w,t.h)),w=["M0,".concat(p/2),"L0,".concat(t.h-p/2),"A".concat(t.w/2,",").concat(p/2," 0 0 0 ").concat(t.w,",").concat(t.h-p/2),"L".concat(t.w,",").concat(p/2),"A".concat(t.w/2,",").concat(p/2," 0 0 1 0,").concat(p/2),"Z"].join(" ");h.setAttribute("d",w);var m=A("ellipse"),g=t.w/2,I=p/2,P=t.w/2,R=p/2;return m.setAttribute("cx",g+"px"),m.setAttribute("cy",I+"px"),m.setAttribute("rx",P+"px"),m.setAttribute("ry",R+"px"),(n==null?void 0:n.type)==="solidFill"&&m.setAttribute("fill",D(n,{light:.5})||"transparent"),e.appendChild(h),e.appendChild(m),e}(o),L=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h));return{top:n,bottom:0,left:0,right:0,w:t.w,h:t.h-n}}(o);break;case"cube":b=function(c){var t=c.extend,n=c.background,e=M("adj",c,.25*Math.min(t.w,t.h)),h=A("g"),p=A("path"),w=["M0,".concat(e),"L".concat(t.w-e,",").concat(e),"L".concat(t.w-e,",").concat(t.h),"L0,".concat(t.h),"Z"].join(" ");p.setAttribute("d",w);var m=A("path"),g=["M0,".concat(e),"L".concat(e,",0"),"L".concat(t.w,",0"),"L".concat(t.w-e,",").concat(e),"Z"].join(" ");m.setAttribute("d",g),(n==null?void 0:n.type)==="solidFill"&&m.setAttribute("fill",D(n,{light:.8})||"transparent");var I=A("path"),P=["M".concat(t.w,",0"),"L".concat(t.w-e,",").concat(e),"L".concat(t.w-e,",").concat(t.h),"L".concat(t.w,",").concat(t.h-e),"Z"].join(" ");return I.setAttribute("d",P),(n==null?void 0:n.type)==="solidFill"&&I.setAttribute("fill",D(n,{dark:.6})||"transparent"),h.appendChild(p),h.appendChild(m),h.appendChild(I),h}(o),L=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h));return{top:n,bottom:0,left:0,right:n,w:t.w-n,h:t.h-n}}(o);break;case"bevel":b=function(c){var t=c.extend,n=c.background,e=M("adj",c,.125*Math.min(t.w,t.h)),h=A("g"),p=A("path"),w=["M".concat(e,",").concat(e),"L".concat(t.w-e,",").concat(e),"L".concat(t.w-e,",").concat(t.h-e),"L".concat(e,",").concat(t.h-e),"Z"].join(" ");p.setAttribute("d",w);var m=A("path"),g=["M0,0","L".concat(e,",").concat(e),"L".concat(t.w-e,",").concat(e),"L".concat(t.w,",0"),"Z"].join(" ");m.setAttribute("d",g),(n==null?void 0:n.type)==="solidFill"&&m.setAttribute("fill",D(n,{light:.8})||"transparent");var I=A("path"),P=["M".concat(t.w,",0"),"L".concat(t.w-e,",").concat(e),"L".concat(t.w-e,",").concat(t.h-e),"L".concat(t.w,",").concat(t.h),"Z"].join(" ");I.setAttribute("d",P),(n==null?void 0:n.type)==="solidFill"&&I.setAttribute("fill",D(n,{dark:.6})||"transparent");var R=A("path"),B=["M".concat(t.w,",").concat(t.h),"L".concat(t.w-e,",").concat(t.h-e),"L".concat(e,",").concat(t.h-e),"L0,".concat(t.h),"Z"].join(" ");R.setAttribute("d",B),(n==null?void 0:n.type)==="solidFill"&&R.setAttribute("fill",D(n,{dark:.625})||"transparent");var O=A("path"),z=["M0,".concat(t.h),"L".concat(e,",").concat(t.h-e),"L".concat(e,",").concat(e),"L0,0","Z"].join(" ");return O.setAttribute("d",z),(n==null?void 0:n.type)==="solidFill"&&O.setAttribute("fill",D(n,{light:.6})||"transparent"),h.appendChild(p),h.appendChild(m),h.appendChild(I),h.appendChild(R),h.appendChild(O),h}(o),L=function(c){var t=c.extend,n=M("adj",c,.125*Math.min(t.w,t.h));return{top:n,bottom:n,left:n,right:n,w:t.w-2*n,h:t.h-2*n}}(o);break;case"donut":b=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h)),e=A("path"),h=["M0,".concat(t.h/2),"A".concat(t.w/2,",").concat(t.h/2," 0 1,1 0,").concat(t.h/2+1),"Z","M".concat(t.w-n,",").concat(t.h/2),"A".concat(t.w/2-n,",").concat(t.h/2-n," 0 1,0 ").concat(t.w-n,",").concat(t.h/2+1),"Z"].join(" ");return e.setAttribute("d",h),e}(o),L=dt(o);break;case"noSmoking":b=function(c){var t=c.extend,n=M("adj",c,.25*Math.min(t.w,t.h)),e=A("path"),h=Math.atan(t.h/t.w),p=n/2/Math.sin(h),w=t.w/2,m=t.h/2,g=-1*t.h/t.w,I=t.h*p/t.w,P=t.w/2-n,R=t.h/2-n,B=-2*P*P*g*I,O=Math.sqrt(Math.pow(2*P*P*g*I,2)-4*(R*R+P*P*g*g)*P*P*(I*I-R*R)),z=2*(R*R+P*P*g*g),F=(B-O)/z,H=g*F+I,N=(B+O)/z,U=g*N+I,Q=-t.h*p/t.w,V=-2*P*P*g*Q,J=Math.sqrt(Math.pow(2*P*P*g*Q,2)-4*(R*R+P*P*g*g)*P*P*(Q*Q-R*R)),et=2*(R*R+P*P*g*g),at=(V-J)/et,ot=g*at+Q,ct=(V+J)/et,st=g*ct+Q,ht=["M0,".concat(t.h/2),"A".concat(t.w/2,",").concat(t.h/2," 0 1,1 0,").concat(t.h/2+1),"Z","M".concat(w+N,",").concat(m-U),"A".concat(P,",").concat(R," 0 0 0 ").concat(w+F,",").concat(m-H),"Z","M".concat(w+at,",").concat(m-ot),"A".concat(P,",").concat(R," 0 0 0 ").concat(w+ct,",").concat(m-st),"Z"].join(" ");return e.setAttribute("d",ht),e}(o),L=dt(o);break;case"rightArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M0,".concat(t.h/2-n/2),"L".concat(t.w-e,",").concat(t.h/2-n/2),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-e,",").concat(t.h),"L".concat(t.w-e,",").concat(t.h/2+n/2),"L0,".concat(t.h/2+n/2),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:0,right:e,w:t.w-e,h:n}}(o);break;case"leftArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M0,".concat(t.h/2),"L".concat(e,",0"),"L".concat(e,",").concat(t.h/2-n/2),"L".concat(t.w,",").concat(t.h/2-n/2),"L".concat(t.w,",").concat(t.h/2+n/2),"L".concat(e,",").concat(t.h/2+n/2),"L".concat(e,",").concat(t.h),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:e,right:0,w:t.w-e,h:n}}(o);break;case"upArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M".concat(t.w/2,",0"),"L".concat(t.w,",").concat(e),"L".concat(t.w/2+n/2,",").concat(e),"L".concat(t.w/2+n/2,",").concat(t.h),"L".concat(t.w/2-n/2,",").concat(t.h),"L".concat(t.w/2-n/2,",").concat(e),"L0,".concat(e),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.w;return{top:e,bottom:0,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-e}}(o);break;case"downArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M".concat(t.w/2,",").concat(t.h),"L0,".concat(t.h-e),"L".concat(t.w/2-n/2,",").concat(t.h-e),"L".concat(t.w/2-n/2,",0"),"L".concat(t.w/2+n/2,",0"),"L".concat(t.w/2+n/2,",").concat(t.h-e),"L".concat(t.w,",").concat(t.h-e),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.w;return{top:0,bottom:e,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-e}}(o);break;case"leftRightArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M0,".concat(t.h/2),"L".concat(e,",0"),"L".concat(e,",").concat(t.h/2-n/2),"L".concat(t.w-e,",").concat(t.h/2-n/2),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-e,",").concat(t.h),"L".concat(t.w-e,",").concat(t.h/2+n/2),"L".concat(e,",").concat(t.h/2+n/2),"L".concat(e,",").concat(t.h),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.h;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:e,right:e,w:t.w-2*e,h:n}}(o);break;case"upDownArrow":b=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=M("adj2",c,.5*Math.min(t.w,t.h)),h=A("path"),p=["M".concat(t.w/2,",").concat(t.h),"L0,".concat(t.h-e),"L".concat(t.w/2-n/2,",").concat(t.h-e),"L".concat(t.w/2-n/2,",").concat(e),"L0,".concat(e),"L".concat(t.w/2,",0"),"L".concat(t.w,",").concat(e),"L".concat(t.w/2+n/2,",").concat(e),"L".concat(t.w/2+n/2,",").concat(t.h-e),"L".concat(t.w,",").concat(t.h-e),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=M("adj1",c,.5*Math.min(t.w,t.h)),e=n*M("adj2",c,.5*Math.min(t.w,t.h))/t.w;return{top:e,bottom:e,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h-2*e}}(o);break;case"quadArrow":b=function(c){var t=c.extend,n=M("adj1",c,.225*Math.min(t.w,t.h)),e=M("adj2",c,.225*Math.min(t.w,t.h)),h=M("adj3",c,.225*Math.min(t.w,t.h)),p=A("path"),w=["M0,".concat(t.h/2),"L".concat(h,",").concat(t.h/2-e),"L".concat(h,",").concat(t.h/2-n/2),"L".concat(t.w/2-n/2,",").concat(t.h/2-n/2),"L".concat(t.w/2-n/2,",").concat(h),"L".concat(t.w/2-e,",").concat(h),"L".concat(t.w/2,",0"),"L".concat(t.w/2+e,",").concat(h),"L".concat(t.w/2+n/2,",").concat(h),"L".concat(t.w/2+n/2,",").concat(t.h/2-n/2),"L".concat(t.w-h,",").concat(t.h/2-n/2),"L".concat(t.w-h,",").concat(t.h/2-e),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-h,",").concat(t.h/2+e),"L".concat(t.w-h,",").concat(t.h/2+n/2),"L".concat(t.w/2+n/2,",").concat(t.h/2+n/2),"L".concat(t.w/2+n/2,",").concat(t.h-h),"L".concat(t.w/2+e,",").concat(t.h-h),"L".concat(t.w/2,",").concat(t.h),"L".concat(t.w/2-e,",").concat(t.h-h),"L".concat(t.w/2-n/2,",").concat(t.h-h),"L".concat(t.w/2-n/2,",").concat(t.h/2+n/2),"L".concat(h,",").concat(t.h/2+n/2),"L".concat(h,",").concat(t.h/2+e),"Z"].join(" ");return p.setAttribute("d",w),p}(o),L=function(c){var t=c.extend,n=M("adj1",c,.225*Math.min(t.w,t.h)),e=M("adj2",c,.225*Math.min(t.w,t.h)),h=M("adj3",c,.225*Math.min(t.w,t.h)),p=e===0?0:n*h/e/2;return{top:t.h/2-n/2,bottom:t.h/2-n/2,left:p,right:p,w:t.w-2*p,h:n}}(o);break;case"leftRightUpArrow":b=function(c){var t=c.extend,n=M("adj1",c,.225*Math.min(t.w,t.h)),e=M("adj2",c,.225*Math.min(t.w,t.h)),h=M("adj3",c,.225*Math.min(t.w,t.h)),p=A("path");n>2*e&&(n=2*e);var w=["M0,".concat(t.h-e),"L".concat(h,",").concat(t.h-2*e),"L".concat(h,",").concat(t.h-e-n/2),"L".concat(t.w/2-n/2,",").concat(t.h-e-n/2),"L".concat(t.w/2-n/2,",").concat(h),"L".concat(t.w/2-e,",").concat(h),"L".concat(t.w/2,",0"),"L".concat(t.w/2+e,",").concat(h),"L".concat(t.w/2+n/2,",").concat(h),"L".concat(t.w/2+n/2,",").concat(t.h-e-n/2),"L".concat(t.w-h,",").concat(t.h-e-n/2),"L".concat(t.w-h,",").concat(t.h-2*e),"L".concat(t.w,",").concat(t.h-e),"L".concat(t.w-h,",").concat(t.h),"L".concat(t.w-h,",").concat(t.h-e+n/2),"L".concat(h,",").concat(t.h-e+n/2),"L".concat(h,",").concat(t.h),"Z"].join(" ");return p.setAttribute("d",w),p}(o),L=function(c){var t=c.extend,n=M("adj1",c,.225*Math.min(t.w,t.h)),e=M("adj2",c,.225*Math.min(t.w,t.h)),h=M("adj3",c,.225*Math.min(t.w,t.h)),p=e===0?0:n*h/e/2;return{top:t.h-e-n/2,bottom:e-n/2,left:p,right:p,w:t.w-2*p,h:n}}(o);break;case"bentArrow":b=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h)),e=M("adj2",c,.25*Math.min(t.w,t.h)),h=M("adj3",c,.25*Math.min(t.w,t.h)),p=M("adj4",c,.4375*Math.min(t.w,t.h)),w=A("path");n>2*e&&(n=2*e);var m=p-n;m<0&&(m=0);var g=["M0,".concat(t.h),"L0,".concat(e-n/2+p),"A".concat(p," ").concat(p," 0 0 1 ").concat(p," ").concat(e-n/2),"L".concat(t.w-h,",").concat(e-n/2),"L".concat(t.w-h,",0"),"L".concat(t.w,",").concat(e),"L".concat(t.w-h,",").concat(2*e),"L".concat(t.w-h,",").concat(e+n/2),"L".concat(n+m,",").concat(e+n/2),"A".concat(m," ").concat(m," 0 0 0 ").concat(n," ").concat(e+n/2+m),"L".concat(n,",").concat(t.h),"Z"].join(" ");return w.setAttribute("d",g),w}(o);break;case"uturnArrow":b=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h)),e=M("adj2",c,.25*Math.min(t.w,t.h)),h=M("adj3",c,.25*Math.min(t.w,t.h)),p=M("adj4",c,.4375*Math.min(t.w,t.h)),w=M("adj5",c,.75*Math.min(t.w,t.h)),m=A("path");n>2*e&&(n=2*e),w<h&&(w=h+n),p>w-h&&(p=w-h);var g=p-n;g>w-h-n&&(g=w-h-n),g<0&&(g=0);var I=e-n/2,P=["M0,".concat(t.h),"L0,".concat(p),"A".concat(p," ").concat(p," 0 0 1 ").concat(p," 0"),"L".concat(t.w-p-I,",0"),"A".concat(p," ").concat(p," 0 0 1 ").concat(t.w-I," ").concat(p),"L".concat(t.w-I,",").concat(w-h),"L".concat(t.w,",").concat(w-h),"L".concat(t.w-e,",").concat(w),"L".concat(t.w-2*e,",").concat(w-h),"L".concat(t.w-e-n/2,",").concat(w-h),"L".concat(t.w-e-n/2,",").concat(n+g),"A".concat(g," ").concat(g," 0 0 0 ").concat(t.w-g-e-n/2," ").concat(n),"L".concat(n+g,",").concat(n),"A".concat(g," ").concat(g," 0 0 0 ").concat(n," ").concat(n+g),"L".concat(n,",").concat(t.h),"Z"].join(" ");return m.setAttribute("d",P),m}(o);break;case"leftUpArrow":b=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h)),e=M("adj2",c,.25*Math.min(t.w,t.h)),h=M("adj3",c,.25*Math.min(t.w,t.h));n>2*e&&(n=2*e);var p=Math.min(t.w,t.h)-2*e;h>p&&(h=p),h<0&&(h=0);var w=e-n/2,m=A("path"),g=["M0,".concat(t.h-e),"L".concat(h,",").concat(t.h-2*e),"L".concat(h,",").concat(t.h-e-n/2),"L".concat(t.w-e-n/2,",").concat(t.h-e-n/2),"L".concat(t.w-e-n/2,",").concat(h),"L".concat(t.w-2*e,",").concat(h),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(h),"L".concat(t.w-w,",").concat(h),"L".concat(t.w-w,",").concat(t.h-w),"L".concat(h,",").concat(t.h-w),"L".concat(h,",").concat(t.h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h)),e=M("adj2",c,.25*Math.min(t.w,t.h)),h=M("adj3",c,.25*Math.min(t.w,t.h));n>2*e&&(n=2*e);var p=Math.min(t.w,t.h)-2*e;h>p&&(h=p),h<0&&(h=0);var w=e===0?0:n*h/e/2;return{top:t.h-e-n/2,bottom:e-n/2,left:w,right:e,w:t.w-w-e,h:n}}(o);break;case"bentUpArrow":b=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h)),e=M("adj2",c,.25*Math.min(t.w,t.h)),h=M("adj3",c,.25*Math.min(t.w,t.h));n>2*e&&(n=2*e);var p=Math.min(t.w,t.h)-2*e;h>p&&(h=p),h<0&&(h=0);var w=e-n/2,m=A("path"),g=["M0,".concat(t.h),"L0,".concat(t.h-n),"L".concat(t.w-e-n/2,",").concat(t.h-n),"L".concat(t.w-e-n/2,",").concat(h),"L".concat(t.w-2*e,",").concat(h),"L".concat(t.w-e,",0"),"L".concat(t.w,",").concat(h),"L".concat(t.w-w,",").concat(h),"L".concat(t.w-w,",").concat(t.h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=M("adj1",c,.25*Math.min(t.w,t.h));return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(o);break;case"curvedRightArrow":b=function(c){var t=c.extend,n=c.background,e=M("adj1",c,.25*Math.min(t.w,t.h)),h=M("adj2",c,.5*Math.min(t.w,t.h)),p=M("adj3",c,.25*Math.min(t.w,t.h));e>h&&(e=h);var w=h/2-e/2,m=(t.h-h/2-e/2)/2,g=(t.h-w-e)/2,I=A("g"),P=A("path"),R=["M".concat(t.w,",0"),"A ".concat(t.w," ").concat(m," 0 0 0 ").concat(0," ").concat(m),"L0,".concat(g+e),"A ".concat(t.w," ").concat(g," 0 0 1 ").concat(t.w," ").concat(e),"Z"].join(" ");P.setAttribute("d",R),(n==null?void 0:n.type)==="solidFill"&&P.setAttribute("fill",D(n,{dark:.6})||"transparent");var B=A("path"),O=["M0,".concat(m),"A ".concat(t.w," ").concat(m," 0 0 0 ").concat(t.w-p," ").concat(t.h-h/2-e/2),"L".concat(t.w-p,",").concat(t.h-h),"L".concat(t.w,",").concat(t.h-h/2),"L".concat(t.w-p,",").concat(t.h),"L".concat(t.w-p,",").concat(t.h-w),"A ".concat(t.w," ").concat(g," 0 0 1 0 ").concat(e+g),"Z"].join(" ");return B.setAttribute("d",O),I.appendChild(P),I.appendChild(B),I}(o);break;case"curvedLeftArrow":b=function(c){var t=c.extend,n=c.background,e=M("adj1",c,.25*Math.min(t.w,t.h)),h=M("adj2",c,.5*Math.min(t.w,t.h)),p=M("adj3",c,.25*Math.min(t.w,t.h));e>h&&(e=h);var w=h/2-e/2,m=(t.h-h/2-e/2)/2,g=(t.h-w-e)/2,I=A("g"),P=A("path"),R=["M0,".concat(t.h-h/2),"L".concat(p,",").concat(t.h-h),"L".concat(p,",").concat(t.h-h/2-e/2),"A".concat(t.w," ").concat(m," 0 0 0 ").concat(t.w," ").concat(m),"L".concat(t.w,",").concat(g+e),"A ".concat(t.w," ").concat(g," 0 0 1 ").concat(p," ").concat(t.h-w),"L".concat(p,",").concat(t.h),"Z"].join(" ");P.setAttribute("d",R);var B=A("path"),O=["M0,0","A ".concat(t.w," ").concat(m," 0 0 1 ").concat(t.w," ").concat(m),"L".concat(t.w,",").concat(g+e),"A ".concat(t.w," ").concat(g," 0 0 0 ").concat(0," ").concat(e),"Z"].join(" ");return B.setAttribute("d",O),(n==null?void 0:n.type)==="solidFill"&&B.setAttribute("fill",D(n,{dark:.6})||"transparent"),I.appendChild(P),I.appendChild(B),I}(o);break;case"curvedUpArrow":b=function(c){var t=c.extend,n=c.background,e=M("adj1",c,.25*Math.min(t.w,t.h)),h=M("adj2",c,.5*Math.min(t.w,t.h)),p=M("adj3",c,.25*Math.min(t.w,t.h));e>h&&(e=h);var w=h/2-e/2,m=(t.w-h/2-e/2)/2,g=(t.w-w-e)/2,I=A("g"),P=A("path"),R=["M".concat(t.w-h/2,",").concat(0),"L".concat(t.w-h,",").concat(p),"L".concat(t.w-h/2-e/2,",").concat(p),"A".concat(m," ").concat(t.h," 0 0 1 ").concat(m," ").concat(t.h),"L".concat(m+e,",").concat(t.h),"A".concat(g," ").concat(t.h," 0 0 0 ").concat(t.w-w," ").concat(p),"L".concat(t.w,",").concat(p),"Z"].join(" ");P.setAttribute("d",R);var B=A("path"),O=["M".concat(e,",0"),"L".concat(0,",").concat(0),"A ".concat(m," ").concat(t.h," 0 0 0 ").concat(m," ").concat(t.h),"L".concat(m+e,",").concat(t.h),"A ".concat(g," ").concat(t.h," 0 0 1 ").concat(e," ").concat(0),"Z"].join(" ");return B.setAttribute("d",O),(n==null?void 0:n.type)==="solidFill"&&B.setAttribute("fill",D(n,{dark:.6})||"transparent"),I.appendChild(P),I.appendChild(B),I}(o);break;case"curvedDownArrow":b=function(c){var t=c.extend,n=c.background,e=M("adj1",c,.25*Math.min(t.w,t.h)),h=M("adj2",c,.5*Math.min(t.w,t.h)),p=M("adj3",c,.25*Math.min(t.w,t.h));e>h&&(e=h);var w=h/2-e/2,m=(t.w-h/2-e/2)/2,g=(t.w-w-e)/2,I=A("g"),P=A("path"),R=["M".concat(0,",").concat(t.h),"L".concat(e,",").concat(t.h),"A".concat(g," ").concat(t.h," 0 0 1 ").concat(g+e," ").concat(0),"L".concat(m,",").concat(0),"A".concat(m," ").concat(t.h," 0 0 0 ").concat(0," ").concat(t.h),"Z"].join(" ");P.setAttribute("d",R),(n==null?void 0:n.type)==="solidFill"&&P.setAttribute("fill",D(n,{dark:.6})||"transparent");var B=A("path"),O=["M".concat(t.w-h/2,",").concat(t.h),"L".concat(t.w-h,",").concat(t.h-p),"L".concat(t.w-h/2-e/2,",").concat(t.h-p),"A ".concat(m," ").concat(t.h," 0 0 0 ").concat(m," ").concat(0),"L".concat(m+e,",").concat(0),"A ".concat(g," ").concat(t.h," 0 0 1 ").concat(t.w-w," ").concat(t.h-p),"L".concat(t.w,",").concat(t.h-p),"Z"].join(" ");return B.setAttribute("d",O),I.appendChild(P),I.appendChild(B),I}(o);break;case"stripedRightArrow":b=function(c){var t=c.extend,n=A("g"),e=Math.min(t.w,t.h),h=T("adj1",c,.5)*t.h,p=T("adj2",c,.5)*e,w=e/8,m=e/16,g=e/32,I=5*e/32,P=t.h/2-h/2,R=t.h/2+h/2,B=A("path");B.setAttribute("d",["M".concat(0,",").concat(P),"L".concat(g,",").concat(P),"L".concat(g,",").concat(R),"L".concat(0,",").concat(R),"Z"].join(" "));var O=A("path");O.setAttribute("d",["M".concat(m,",").concat(P),"L".concat(w,",").concat(P),"L".concat(w,",").concat(R),"L".concat(m,",").concat(R),"Z"].join(" "));var z=A("path"),F=["M".concat(I,",").concat(P),"L".concat(t.w-p,",").concat(P),"L".concat(t.w-p,",").concat(0),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-p,",").concat(t.h),"L".concat(t.w-p,",").concat(R),"L".concat(I,",").concat(R),"Z"].join(" ");return z.setAttribute("d",F),n.appendChild(z),n.appendChild(B),n.appendChild(O),n}(o),L=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.5)*t.h,h=e*(T("adj2",c,.5)*n)/t.h;return{top:t.h/2-e/2,bottom:t.h/2-e/2,left:0,right:h,w:t.w-h,h:e}}(o);break;case"notchedRightArrow":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.5)*t.h,h=T("adj2",c,.5)*n,p=e*h/t.h,w=t.h/2-e/2,m=t.h/2+e/2,g=A("path"),I=["M".concat(0,",").concat(w),"L".concat(t.w-h,",").concat(w),"L".concat(t.w-h,",").concat(0),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-h,",").concat(t.h),"L".concat(t.w-h,",").concat(m),"L".concat(0,",").concat(m),"L".concat(p,",").concat(t.h/2),"Z"].join(" ");return g.setAttribute("d",I),g}(o),L=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.5)*t.h,h=T("adj2",c,.5)*n,p=e*h/t.h,w=e*h/t.h;return{top:t.h/2-e/2,bottom:t.h/2-e/2,left:p,right:w,w:t.w-p-w,h:e}}(o);break;case"homePlate":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj",c,.5)*n,h=A("path"),p=["M".concat(0,",").concat(0),"L".concat(t.w-e,",").concat(0),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-e,",").concat(t.h),"L".concat(0,",").concat(t.h),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj",c,.5)*n;return{top:0,bottom:0,left:0,right:e/2,w:t.w-e/2,h:t.h}}(o);break;case"chevron":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj",c,.5)*n,h=A("path"),p=["M".concat(0,",").concat(0),"L".concat(t.w-e,",").concat(0),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-e,",").concat(t.h),"L".concat(0,",").concat(t.h),"L".concat(e,",").concat(t.h/2),"Z"].join(" ");return h.setAttribute("d",p),h}(o),L=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj",c,.5)*n;return{top:0,bottom:0,left:e,right:e,w:t.w-2*e,h:t.h}}(o);break;case"rightArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.25)*n,h=T("adj2",c,.25)*n,p=T("adj3",c,.25)*n,w=T("adj4",c,.64977)*t.w,m=A("path"),g=["M".concat(0,",").concat(0),"L".concat(w,",").concat(0),"L".concat(w,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-h),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-p,",").concat(t.h/2+h),"L".concat(t.w-p,",").concat(t.h/2+e/2),"L".concat(w,",").concat(t.h/2+e/2),"L".concat(w,",").concat(t.h),"L".concat(0,",").concat(t.h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=T("adj4",c,.64977)*t.w;return{top:0,bottom:0,left:0,right:t.w-n,w:n,h:t.h}}(o);break;case"leftArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.25)*n,h=T("adj2",c,.25)*n,p=T("adj3",c,.25)*n,w=T("adj4",c,.64977)*t.w,m=A("path"),g=["M".concat(0,",").concat(t.h/2),"L".concat(p,",").concat(t.h/2-h),"L".concat(p,",").concat(t.h/2-e/2),"L".concat(t.w-w,",").concat(t.h/2-e/2),"L".concat(t.w-w,",").concat(0),"L".concat(t.w,",").concat(0),"L".concat(t.w,",").concat(t.h),"L".concat(t.w-w,",").concat(t.h),"L".concat(t.w-w,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=T("adj4",c,.64977)*t.w;return{top:0,bottom:0,left:t.w-n,right:0,w:n,h:t.h}}(o);break;case"upArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.25)*n,h=T("adj2",c,.25)*n,p=T("adj3",c,.25)*n,w=T("adj4",c,.64977)*t.h,m=A("path"),g=["M".concat(0,",").concat(t.h-w),"L".concat(t.w/2-e/2,",").concat(t.h-w),"L".concat(t.w/2-e/2,",").concat(p),"L".concat(t.w/2-h,",").concat(p),"L".concat(t.w/2,",").concat(0),"L".concat(t.w/2+h,",").concat(p),"L".concat(t.w/2+e/2,",").concat(p),"L".concat(t.w/2+e/2,",").concat(t.h-w),"L".concat(t.w,",").concat(t.h-w),"L".concat(t.w,",").concat(t.h),"L".concat(0,",").concat(t.h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=T("adj4",c,.64977)*t.h;return{top:t.h-n,bottom:0,left:0,right:0,w:t.w,h:n}}(o);break;case"downArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.25)*n,h=T("adj2",c,.25)*n,p=T("adj3",c,.25)*n,w=T("adj4",c,.64977)*t.h,m=A("path"),g=["M".concat(0,",").concat(0),"L".concat(t.w,",").concat(0),"L".concat(t.w,",").concat(w),"L".concat(t.w/2+e/2,",").concat(w),"L".concat(t.w/2+e/2,",").concat(t.h-p),"L".concat(t.w/2+h,",").concat(t.h-p),"L".concat(t.w/2,",").concat(t.h),"L".concat(t.w/2-h,",").concat(t.h-p),"L".concat(t.w/2-e/2,",").concat(t.h-p),"L".concat(t.w/2-e/2,",").concat(w),"L".concat(0,",").concat(w),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=T("adj4",c,.64977)*t.h;return{top:0,bottom:t.h-n,left:0,right:0,w:t.w,h:n}}(o);break;case"leftRightArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.25)*n,h=T("adj2",c,.25)*n,p=T("adj3",c,.25)*n,w=T("adj4",c,.48123)*t.w,m=A("path"),g=["M".concat(0,",").concat(t.h/2),"L".concat(p,",").concat(t.h/2-h),"L".concat(p,",").concat(t.h/2-e/2),"L".concat(t.w/2-w/2,",").concat(t.h/2-e/2),"L".concat(t.w/2-w/2,",").concat(0),"L".concat(t.w/2+w/2,",").concat(0),"L".concat(t.w/2+w/2,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-h),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-p,",").concat(t.h/2+h),"L".concat(t.w-p,",").concat(t.h/2+e/2),"L".concat(t.w/2+w/2,",").concat(t.h/2+e/2),"L".concat(t.w/2+w/2,",").concat(t.h),"L".concat(t.w/2-w/2,",").concat(t.h),"L".concat(t.w/2-w/2,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+h),"Z"].join(" ");return m.setAttribute("d",g),m}(o),L=function(c){var t=c.extend,n=T("adj4",c,.48123)*t.w;return{top:0,bottom:0,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:t.h}}(o);break;case"quadArrowCallout":b=function(c){var t=c.extend,n=Math.min(t.w,t.h),e=T("adj1",c,.18515)*n,h=T("adj2",c,.18515)*n,p=T("adj3",c,.18515)*n,w=T("adj4",c,.48123)*t.w,m=T("adj4",c,.48123)*t.h,g=A("path"),I=["M".concat(0,",").concat(t.h/2),"L".concat(p,",").concat(t.h/2-h),"L".concat(p,",").concat(t.h/2-e/2),"L".concat(t.w/2-w/2,",").concat(t.h/2-e/2),"L".concat(t.w/2-w/2,",").concat(t.h/2-m/2),"L".concat(t.w/2-e/2,",").concat(t.h/2-m/2),"L".concat(t.w/2-e/2,",").concat(p),"L".concat(t.w/2-h,",").concat(p),"L".concat(t.w/2,",").concat(0),"L".concat(t.w/2+h,",").concat(p),"L".concat(t.w/2+e/2,",").concat(p),"L".concat(t.w/2+e/2,",").concat(t.h/2-m/2),"L".concat(t.w/2+w/2,",").concat(t.h/2-m/2),"L".concat(t.w/2+w/2,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-e/2),"L".concat(t.w-p,",").concat(t.h/2-h),"L".concat(t.w,",").concat(t.h/2),"L".concat(t.w-p,",").concat(t.h/2+h),"L".concat(t.w-p,",").concat(t.h/2+e/2),"L".concat(t.w/2+w/2,",").concat(t.h/2+e/2),"L".concat(t.w/2+w/2,",").concat(t.h/2+m/2),"L".concat(t.w/2+e/2,",").concat(t.h/2+m/2),"L".concat(t.w/2+e/2,",").concat(t.h-p),"L".concat(t.w/2+h,",").concat(t.h-p),"L".concat(t.w/2,",").concat(t.h),"L".concat(t.w/2-h,",").concat(t.h-p),"L".concat(t.w/2-e/2,",").concat(t.h-p),"L".concat(t.w/2-e/2,",").concat(t.h/2+m/2),"L".concat(t.w/2-w/2,",").concat(t.h/2+m/2),"L".concat(t.w/2-w/2,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+e/2),"L".concat(p,",").concat(t.h/2+h),"Z"].join(" ");return g.setAttribute("d",I),g}(o),L=function(c){var t=c.extend,n=T("adj4",c,.48123)*t.w,e=T("adj4",c,.48123)*t.h;return{top:t.h/2-e/2,bottom:t.h/2-e/2,left:t.w/2-n/2,right:t.w/2-n/2,w:n,h:e}}(o)}b&&(_?(s==null?void 0:s.type)==="blipFill"?function(c,t,n){var e=c.background,h=e===void 0?{}:e,p=c.extend,w=h.base64,m=h.alpha,g=h.fillRect,I=g===void 0?{}:g,P=I.b,R=P===void 0?0:P,B=I.t,O=B===void 0?0:B,z=I.l,F=z===void 0?0:z,H=I.r,N=H===void 0?0:H,U=A("defs"),Q=A("pattern");Q.setAttribute("id","background_"+c.uuid),Q.setAttribute("patternUnits","userSpaceOnUse"),Q.setAttribute("width",p.w+""),Q.setAttribute("height",p.h+"");var V=A("image");V.setAttribute("href",w),V.setAttribute("preserveAspectRatio","none");var J=p.w*F,et=p.h*O,at=p.w*(1-F-N),ot=p.h*(1-O-R);V.setAttribute("width",at+""),V.setAttribute("height",ot+""),V.setAttribute("x",J+""),V.setAttribute("y",et+""),typeof m=="number"&&V.setAttribute("opacity",m+""),Q.appendChild(V),U.appendChild(Q),t.appendChild(U),n.setAttribute("fill","url(#background_".concat(c.uuid,")"))}(o,j,b):(s==null?void 0:s.type)==="gradFill"?function(c,t,n){var e=c.background,h=e===void 0?{}:e;c.extend;var p=h.gsList,w=h.lin,m=h.path,g=h.tileRect,I=g===void 0?{}:g,P=A("defs"),R=A(m==="circle"?"radialGradient":"linearGradient");R.setAttribute("id","background_grad_fill_"+c.uuid);var B=p||[];if(B.sort(function(N,U){return N.pos-U.pos}),B.forEach(function(N){var U=A("stop");U.setAttribute("offset","".concat(100*N.pos,"%")),U.setAttribute("stop-color",D(N.color)),R.appendChild(U)}),m==="circle"){var O=I.r,z=I.l,F=I.t,H=I.b;O===-1?R.setAttribute("cx","100%"):z===-1&&R.setAttribute("cx","0%"),F===-1?R.setAttribute("cy","0%"):H===-1&&R.setAttribute("cy","100%")}else w!=null&&w.ang&&R.setAttribute("gradientTransform","rotate(".concat(w.ang,")"));P.appendChild(R),t.appendChild(P),n.setAttribute("fill","url(#background_grad_fill_".concat(c.uuid,")"))}(o,j,b):b.setAttribute("fill",D(s)||"transparent"):b.setAttribute("fill","transparent"),r.width?(b.setAttribute("stroke-width",r.width+"px"),b.setAttribute("stroke",D(r.color)||"transparent")):b.setAttribute("stroke-width","0"),b.setAttribute("stroke-dasharray",function(c){return c&&c.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[c.type]||[]).map(function(t){return t*c.width}).join(","):""}(r)),b.setAttribute("stroke-linecap",r.cap&&{sq:"square",rnd:"round",flat:"butt"}[r.cap]||"square"),b.setAttribute("stroke-linejoin",r.lineJoin||"round"),r.lineJoin==="miter"&&b.setAttribute("stroke-miterlimit",r.miterLim+""),j.appendChild(b));var S=[];d&&S.push("scaleX(-1)"),v&&S.push("scaleY(-1)"),j.style.setProperty("transform",S.join(" ")),f.appendChild(j);var k=function(c,t,n){var e;n===void 0&&(n=!1);var h=c.inheritProps,p=c.props,w=c.paragraphs;if(!w||w.length===0)return null;var m=C(C({},h),p),g=document.createElement("div");switch(g.className="text-wrapper",g.style.boxSizing="border-box",g.style.position="absolute",g.style.left=t.left+"px",m.vert==="eaVert"?(g.style.writingMode="vertical-rl",g.style.height=t.h+"px"):g.style.width=t.w+"px",m.anchor){case"b":g.style.bottom=t.bottom+"px";break;case"t":g.style.top=t.top+"px";break;case"ctr":g.style.top=t.top+t.h/2+"px",g.style.transform="translateY(-50%)";break;default:n?g.style.top=t.top+"px":(g.style.top=t.top+t.h/2+"px",g.style.transform="translateY(-50%)")}var I=[m.hasOwnProperty("tIns")?m.tIns+"px":"3px",m.hasOwnProperty("rIns")?m.rIns+"px":"6px",m.hasOwnProperty("bIns")?m.bIns+"px":"3px",m.hasOwnProperty("lIns")?m.lIns+"px":"6px"];g.style.padding=I.join(" ");for(var P={},R=0,B=function(F){var H=C(C({},F.inheritProps),F.props),N=void 0;if(H.buAutoNum){var U=H.level?+H.level:0;P[U]||(P[U]=0),!((e=F.rows)===null||e===void 0)&&e.length&&P[U]++,Object.keys(P).forEach(function(Q){+Q>U&&(P[Q]=0)}),N=mt(F,P[U],{isFirst:R===0,isLast:w.length-1===R,bodyProps:m})}else N=mt(F,0,{isFirst:R===0,isLast:w.length-1===R,bodyProps:m});g.appendChild(N),R++},O=0,z=w;O<z.length;O++)B(z[O]);return g}(o.textBody,L,o.isTextBox);return k&&f.appendChild(k),l&&f.style.setProperty("transform","rotate(".concat(l,"deg)")),f}function _e(o){var a=document.createElement("div"),i=o.extend;o.chExtend;var r=o.offset,s=o.chOffset,l=o.flipV,d=o.flipH,v=o.rotate,f=r.x,x=r.y,y=i.w,b=i.h;a.className="group",a.style.position="absolute",a.style.left=f+"px",a.style.top=x+"px",a.style.width=y+"px",a.style.height=b+"px";var j=[];d&&j.push("scaleX(-1)"),l&&j.push("scaleY(-1)"),v&&j.push("rotate(".concat(v,"deg)")),a.style.transformOrigin="center center",a.style.transform=j.join(" ");for(var L=0;L<o.nodes.length;L++){var _=o.nodes[L],S=void 0;_ instanceof he?S=Pe(_):_ instanceof gt?S=Ce(_):_ instanceof le&&(S=_e(_)),S.style.left=parseInt(S.style.left)-s.x+"px",S.style.top=parseInt(S.style.top)-s.y+"px",a.appendChild(S)}return a}var aa=function(){function o(a,i,r){this.scale=1,this.wrapper=a,this.pptx=i,this.options=r,this._calcScaleAndRenderPort()}return o.prototype._calcScaleAndRenderPort=function(){var a=this.options.viewPort.width/this.pptx.width,i=this.options.viewPort.height/this.pptx.height;if(this.scale=Math.min(a,i),a<i){var r=this.options.viewPort.width,s=this.pptx.height*this.scale;this.renderPort={width:r,height:s,left:0,top:(this.options.viewPort.height-s)/2}}else r=this.pptx.width*this.scale,s=this.options.viewPort.height,this.renderPort={width:r,height:s,left:(this.options.viewPort.width-r)/2,top:0}},o.prototype.renderSlide=function(a){var i=this.pptx.slides[a],r=document.createElement("div");r.classList.add("pptx-preview-slide-wrapper"),r.style.setProperty("width",this.renderPort.width+"px"),r.style.setProperty("height",this.renderPort.height+"px"),r.style.setProperty("position","relative"),r.style.margin="0 auto 10px",r.style.setProperty("background","#fff"),r.style.setProperty("overflow","hidden"),this._renderBackground(i,r),this._renderSlideMaster(i.slideMaster,r),this._renderSlideLayout(i.slideLayout,r),this._renderSlide(i,r),this.wrapper.append(r)},o.prototype._renderSlideMaster=function(a,i){var r=document.createElement("div");r.classList.add("slide-master-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var s=Kt([],a.nodes,!0).filter(function(v){return v.userDrawn});s.sort(function(v,f){return v.order>f.order?1:-1});for(var l=0;l<s.length;l++){var d=this._renderNode(s[l]);d&&r.append(d)}i.append(r)},o.prototype._renderSlideLayout=function(a,i){var r=document.createElement("div");r.classList.add("slide-layout-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var s=Kt([],a.nodes,!0).filter(function(v){return v.userDrawn});s.sort(function(v,f){return v.order>f.order?1:-1});for(var l=0;l<s.length;l++){var d=this._renderNode(s[l]);d&&r.append(d)}i.append(r)},o.prototype._renderSlide=function(a,i){var r=document.createElement("div");r.classList.add("slide-wrapper"),r.style.setProperty("position","absolute"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("width",this.pptx.width+"px"),r.style.setProperty("height",this.pptx.height+"px"),r.style.setProperty("transform","scale(".concat(this.scale,")")),r.style.setProperty("transform-origin","0 0");var s=Kt([],a.nodes,!0);s.sort(function(v,f){return v.order>f.order?1:-1});for(var l=0;l<s.length;l++){var d=this._renderNode(s[l]);d&&r.append(d)}i.append(r)},o.prototype._renderNode=function(a){return a instanceof he?Pe(a):a instanceof gt?Ce(a):a instanceof le?_e(a):a instanceof ke?function(i){var r=i.extend,s=i.offset,l=i.tr,d=i.tableGrid.gridCol,v=document.createElement("div");v.style.position="absolute",v.style.left=s.x+"px",v.style.top=s.y+"px",v.style.width=r.w+"px",v.style.height=r.h+"px";var f=document.createElement("table");return f.style.borderCollapse="collapse",l.forEach(function(x){var y=x.props,b=x.td,j=y.height,L=document.createElement("tr");L.style.height=j+"px",b.forEach(function(_,S){var k,c=_.props,t=_.inheritTcStyle,n=_.inheritTcTxStyle,e=_.paragraphs;if(!c.vMerge&&!c.hMerge){var h=document.createElement("td");h.style.width=d[S].width+"px",c.rowSpan&&h.setAttribute("rowspan",c.rowSpan+""),c.gridSpan&&h.setAttribute("colspan",c.gridSpan+"");var p=c.background||t.background;p&&(h.style.background=D(p));var w=C(C({},t.border),c.border),m=function(N){return N?N.toLowerCase().includes("dash")?"dashed":N.toLowerCase().includes("dot")?"dotted":"solid":"solid"};w.bottom&&(h.style.borderBottom="".concat(w.bottom.width,"px ").concat(m(w.bottom.type)," ").concat(D(w.bottom.color))),w.top&&(h.style.borderTop="".concat(w.top.width,"px ").concat(m(w.top.type)," ").concat(D(w.top.color))),w.left&&(h.style.borderLeft="".concat(w.left.width,"px ").concat(m(w.left.type)," ").concat(D(w.left.color))),w.right&&(h.style.borderRight="".concat(w.right.width,"px ").concat(m(w.right.type)," ").concat(D(w.right.color)));var g=document.createElement("div");switch(g.className="text-wrapper",g.style.boxSizing="border-box",g.style.width="100%",g.style.height="100%",g.style.overflow="hidden",g.style.display="flex",g.style.flexDirection="column",c.anchor){case"b":g.style.justifyContent="flex-end";break;case"t":g.style.justifyContent="flex-start";break;case"ctr":g.style.justifyContent="center"}var I=[c.hasOwnProperty("marT")?c.marT+"px":"3px",c.hasOwnProperty("marR")?c.marR+"px":"6px",c.hasOwnProperty("marB")?c.marB+"px":"3px",c.hasOwnProperty("marL")?c.marL+"px":"6px"];g.style.padding=I.join(" ");for(var P=C({},c),R={},B=e.map(function(N){return C(C({},N),{props:C({align:"l"},N.props),inheritRProps:C(C({},N.inheritRProps),n)})}),O=0,z=function(N){var U=C(C({},N.inheritProps),N.props),Q=void 0;if(U.buAutoNum){var V=U.level?+U.level:0;R[V]||(R[V]=0),!((k=N.rows)===null||k===void 0)&&k.length&&R[V]++,Object.keys(R).forEach(function(J){+J>V&&(R[J]=0)}),Q=mt(N,R[V],{isFirst:O===0,isLast:e.length-1===O,bodyProps:P})}else Q=mt(N,0,{isFirst:O===0,isLast:e.length-1===O,bodyProps:P});g.appendChild(Q),O++},F=0,H=B;F<H.length;F++)z(H[F]);h.append(g),L.append(h)}}),f.append(L)}),v.append(f),v}(a):void 0},o.prototype._renderBackground=function(a,i){var r,s=document.createElement("div");s.classList.add("slide-background"),s.style.setProperty("position","absolute"),s.style.setProperty("left","0"),s.style.setProperty("top","0"),s.style.setProperty("width","100%"),s.style.setProperty("height","100%");var l=a.background;if(l.type==="none"&&(l=a.slideLayout.background),l.type==="none"&&(l=a.slideMaster.background),l.type==="blipFill"){var d=l,v=d.base64,f=d.alpha,x=d.fillRect,y=x===void 0?{}:x,b=y.b,j=b===void 0?0:b,L=y.t,_=L===void 0?0:L,S=y.l,k=S===void 0?0:S,c=y.r,t=c===void 0?0:c,n=this.renderPort.width*k,e=this.renderPort.height*_,h=this.renderPort.width*(1-k-t),p=this.renderPort.height*(1-_-j);s.style.backgroundImage="url(".concat(v,")"),s.style.backgroundSize="".concat(h," ").concat(p),s.style.backgroundPosition="".concat(n,"px ").concat(e,"px"),f&&(s.style.opacity=f+""),s.style.backgroundRepeat="no-repeat"}else if(l.type==="solidFill"){var w=D(a.background)||D(a.slideLayout.background)||D(a.slideMaster.background);w?s.style.setProperty("background",w):s.style.setProperty("background","#fff")}else if(l.type==="gradFill")if(l.path==="circle"){var m=l.tileRect||{},g=(j=m.b,_=m.t,k=m.l,"radial-gradient(circle at ");(t=m.r)===-1?g+=" right":k===-1&&(g+=" left"),_===-1?g+=" top":j===-1&&(g+=" bottom"),j||_||k||t||(g+=" center"),g+=",",g+=l.gsList.map(function(P){return"".concat(D(P.color)," ").concat(100*P.pos+"%")}).join(","),s.style.setProperty("background",g)}else{var I=((r=l==null?void 0:l.lin)===null||r===void 0?void 0:r.ang)||0;g="linear-gradient(".concat(I+90,"deg,"),g+=l.gsList.map(function(P){return"".concat(D(P.color)," ").concat(100*P.pos+"%")}).join(","),s.style.setProperty("background",g)}i.append(s)},o}(),na=function(){function o(a,i){this.dom=a,this.options=i,this._renderWrapper()}return o.prototype._renderWrapper=function(){var a=document.createElement("div");a.classList.add("pptx-preview-wrapper"),a.style.setProperty("background","#000"),a.style.setProperty("width",this.options.width+"px"),this.options.height&&a.style.setProperty("height",this.options.height+"px"),a.style.setProperty("position","relative"),this.options.height&&a.style.setProperty("overflow-y","auto"),this.dom.append(a),this.wrapper=a},o.prototype.preview=function(a){var i=this;return new Promise(function(r,s){i.wrapper.innerHTML="";var l=new Ke;l.load(a).then(function(){try{for(var d=new aa(i.wrapper,l,{viewPort:{width:i.options.width,height:i.options.height}}),v=0;v<l.slides.length;v++)d.renderSlide(v);r(l)}catch(f){s(f)}}).catch(function(d){s(d)})})},o}();function ra(o,a){return new na(o,a)}const oa=Re({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(o,{emit:a}){let i=null;const r=Me(null);function s(){let v=r.value,f=o.options.width||v.getBoundingClientRect().width||960,x=o.options.height||v.getBoundingClientRect().height||540;i=ra(v,{width:f,height:x})}function l(v){if(typeof v=="string")return fetch(v,o.requestOptions).then(f=>f.arrayBuffer());if(v instanceof ArrayBuffer)return Promise.resolve(v)}function d(){o.src&&l(o.src).then(v=>{i.preview(v).then(f=>{a("rendered",f)}).catch(f=>{a("error",f)})}).catch(v=>{a("error",v)})}return Be(()=>{s(),d()}),Oe(()=>o.src,()=>{d()}),{rootRef:r}}}),ca={class:"vue-office-pptx"},ia={class:"vue-office-pptx-main",ref:"rootRef"};function sa(o,a,i,r,s,l){return Ae(),Ee("div",ca,[Ne("div",ia,null,512)])}const yt=Te(oa,[["render",sa]]);yt.install=function(o){o.component(yt.name,yt)};const fa={__name:"PptxDemo",setup(o){function a(){de.hideLoading()}function i(d){console.log("出差",d),de.hideLoading()}const r=location.origin+(location.pathname+"/").replace("//","/")+"static/test-files/test.pptx",s=Me(),l={headers:{}};return(d,v)=>(Ae(),Fe(Ue,{accept:".pptx",placeholder:"请输入pptx文件地址","default-src":r},{default:Ze(f=>[De(ze(yt),{ref_key:"docxRef",ref:s,src:f.src,style:{flex:"1",height:"0"},"request-options":l,onRendered:a,onError:i},null,8,["src"])]),_:1}))}};export{fa as default};