import"./pinia.js";import{M as fn,H as mn,v as bn,z as _r,a4 as gn,ah as vn,ai as yn,aj as wn,O as Cr,G as Sr}from"./vue.js";/*! 
*  @plugin tinymce-plugin
*  @version 0.0.5-bate.3 (2022-7-6)
*  @description tinymce-plugin
*  @copyright (2022) Five(Li Hailong) . All rights reserved. https://github.com/tinymce-plugintinymce-plugin
*/(function(Y){let re=tinymce,ie=re.util.Tools,ye=re.html.Node;re.html.Schema;let fe=re.util.XHR,Ce=re.util.I18n,Me=re.html.Serializer().serialize,oe=re.html.DomParser().parse,de={};window.tp$State=de;let we=(s,C)=>{let P=C?C.match(new RegExp(s+':(.+?)"?[;}]')):"";return P?P[1]:!1};function Ve(s,C,P,S){s.tp$Style.mapping&&s.tp$Style.mapping[""+C.getAttribute("data-id")]&&(s.tp$Style.mapping[""+C.getAttribute("data-id")].specialStyle[""+P]=S)}let Oe={customTags:{}},Ke=Object.keys,He=function(){return He=Object.assign||function(C){for(var P,S=1,I=arguments.length;S<I;S++){P=arguments[S];for(var G in P)Object.prototype.hasOwnProperty.call(P,G)&&(C[G]=P[G])}return C},He.apply(this,arguments)},Je=Object.hasOwnProperty;var T=function(s){return s==null},Le=function(s){return!T(s)};const Xe=s=>{if(typeof s=="object")return JSON.stringify(s).replace(/"([-A-Za-z]+?)":""[,}]/g,"").replace(/,/gi,";").replace(/{/gi,"").replace(/}/gi,"").replace(/"/gi,"")},Fe=s=>typeof s=="string"&&s!=="{}"?(s=JSON.stringify(s),JSON.parse(("{"+s.replace(/:/g,'": "').replace(/;\s*/g,'","')+"}").replace(/,\"\"\}$/,"}"))):s,ze=(s,C)=>{const P=C.match(new RegExp(`.${s}\\s*\\{([\\s\\S]+)\\}`));return P&&P[1]?P[1].replace(/\}([\s\S]+)/,"").trim():""};var $e=function(s,C){return Je.call(s,C)},dt=function(s,C,P,S){S===void 0&&(S=null);var I=s.attr(P);return Le(I)?I:$e(C,P)?null:S};const Qe=s=>s.replace(/[-|\_](\w)/g,function(C,P){return P.toUpperCase()}),at=s=>s.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/\-/g,"_"),Ct=s=>s.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/\_/g,"-");var Vt=function(s,C){let P="";if(!s)return"";for(C=Qe(C);s.nodeName!=="P"&&s.nodeName!=="LI"&&s.nodeName!=="DIV"&&s.nodeName!=="BODY";){if(s.style[C]){P=s.style[C];break}s=s.parentNode}return P};let qe=(s,C)=>{let P="";return P+=s["tp-buttons"]?'.tp-buttons[data-tp-style="'+C+'"] {'+s["tp-buttons"]+`}
`:"",P+=s["tp-buttons:hover"]?'.tp-buttons[data-tp-style="'+C+'"]:hover {'+s["tp-buttons:hover"]+`}
`:"",P+=s["tp-buttons::before"]?'.tp-buttons[data-tp-style="'+C+'"]::before {'+s["tp-buttons::before"]+`}
`:"",P+=s["tp-buttons::after"]?'.tp-buttons[data-tp-style="'+C+'"]::after {'+s["tp-buttons::after"]+`}
`:"",P};const pt=(s,C,P)=>{!P&&(P=C*100);let S={id:null,outTime:P,outId:null};S.id=setInterval(I=>{s(()=>{clearTimeout(I.outId),clearInterval(I.id)})},C,S),S.outId=setTimeout(()=>{S.id&&clearInterval(S.id)},S.outTime)};let tt=function(s,C){return typeof s[C]=="function"?s[C]:typeof Oe.customTags[s.name][C]=="function"?Oe.customTags[s.name][C]:function(){}};const Wt=(s,C)=>C?typeof s=="string"&&!s.match(/\s/)&&s.length>0?parseInt(s)+"px":s:typeof s=="string"&&s.length>0&&s.match(/^[0-9]{1,8}$/)?s+"px":s,it=s=>{let C=s.split("_");return C.length>1?Ce.translate([C[0]+" {0}",C[1]]):Ce.translate(s)};tinymce.tp$HtmlPanelFn=window.tp$HtmlPanelFn=function(s,C,P){de.buttonsStyle&&(de.buttonsStyle[C]=P),document.querySelector("#"+C+"_StyleID").innerHTML=s.nextElementSibling.innerHTML};const ot={count:0},$t=s=>{let C=new Date().getTime()+"-"+ot.count++,P=`
  <div id="${C}" class="skt skt-loading" data-v-e3347e98=""><div class="skt-tox-tinymce" data-v-e3347e98="" style="height: 200px;"><div class="skt-tox-editor-container" data-v-e3347e98=""><div class="skt-tox-editor-header" data-v-e3347e98=""><div class="skt-tox-menubar" data-v-e3347e98=""><button class="skt-tox-mbtn skt-tox-mbtn--select" data-v-e3347e98=""><span class="skt-tox-mbtn__select-label skeleton" data-v-e3347e98="">File</span></button><button class="skt-tox-mbtn skt-tox-mbtn--select" data-v-e3347e98=""><span class="skt-tox-mbtn__select-label skeleton" data-v-e3347e98="">Edit</span></button><button class="skt-tox-mbtn skt-tox-mbtn--select" data-v-e3347e98=""><span class="skt-tox-mbtn__select-label skeleton" data-v-e3347e98="">View</span></button><button class="skt-tox-mbtn skt-tox-mbtn--select" data-v-e3347e98=""><span class="skt-tox-mbtn__select-label skeleton" data-v-e3347e98="">Format</span></button><button class="skt-tox-mbtn skt-tox-mbtn--select" data-v-e3347e98=""><span class="skt-tox-mbtn__select-label skeleton" data-v-e3347e98="">Tools</span></button></div><div class="skt-tox-toolbar-overlord" data-v-e3347e98=""><div class="skt-tox-toolbar" data-v-e3347e98=""><div class="skt-tox-toolbar__group" data-v-e3347e98=""><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn skt-tox-tbtn--select skt-tox-tbtn--bespoke" data-v-e3347e98=""><span class="skt-tox-tbtn__select-label skt-tox-tbtn--select skt-tox-tbtn--bespoke skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn skt-tox-tbtn--select skt-tox-tbtn--bespoke" data-v-e3347e98=""><span class="skt-tox-tbtn__select-label skt-tox-tbtn--select skt-tox-tbtn--bespoke skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn skt-tox-tbtn--select skt-tox-tbtn--bespoke" data-v-e3347e98=""><span class="skt-tox-tbtn__select-label skt-tox-tbtn--select skt-tox-tbtn--bespoke skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn skt-tox-split-button" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn skt-tox-split-button" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn skt-tox-split-button" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn skt-tox-split-button" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn skt-tox-split-button" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><div class="skt-tox-tbtn__select-chevron skeleton" data-v-e3347e98=""></div></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button></div><div class="skt-tox-toolbar__group" data-v-e3347e98=""><button class="skt-tox-tbtn" data-v-e3347e98=""><span class="skt-tox-icon tox-tbtn__icon-wrap skeleton" data-v-e3347e98="">4</span><!--v-if--></button></div></div></div><div class="skt-tox-anchorbar" data-v-e3347e98=""></div></div><div class="skt-tox-sidebar-wrap-box" data-v-e3347e98=""><p class="skeleton" data-v-e3347e98=""> &nbsp; </p><p class="skeleton" data-v-e3347e98="">&nbsp; </p><p class="skeleton" data-v-e3347e98=""></p></div></div><div class="skt-tox-statusbar" data-v-e3347e98=""><div class="skeleton" data-v-e3347e98=""> PP </div><span class="skeleton" data-v-e3347e98="" style="margin-left: calc(100% - 120px);">Powered by Five </span></div></div></div>
`;return document.querySelector(s.selector).outerHTML=P+document.querySelector(s.selector).outerHTML,C},Zt=(s,C,P)=>{let S="";S=de.buttonsStyle&&de.buttonsStyle[C],P||(P=Ke(s.tp$CustomTags.buttons.styleSheetList)),S||(S=de.buttonsStyle&&(de.buttonsStyle[C]=P[0]));let I="",G="",te="";return P.forEach((se,ue)=>{se===S&&(G=`<span class="tp-buttons" data-tp-style="${se}">${it(se)}</span>`),I+=`<li ><input id="${C+"_"+ue}" type="radio" name="${C}" ${S===se?" checked ":""}  onclick="tinymce.tp$HtmlPanelFn(this,'${C}','${se}')"> <label for="${C+"_"+ue}" > <span class="tp-buttons" data-tp-style="${se}">${it(se)}</span></label></li>
`,te+=qe(s.tp$CustomTags.buttons.styleSheetList[se],se)}),`<div style="width: 100%; position: relative; " >
 
  <style>
  .tox .tox-dialog__body-content ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    max-height:160px;
    overflow: auto;
    border-top: 1px solid #ccc;

  }
  .tox .tox-dialog__body-content ul input{
    display: none;
  }
  .tox .tox-dialog__body-content ul label{
    border: 2px solid transparent;
    display: inline-block;
    position: relative;
    padding: 2px;
    cursor: pointer;
    
  }
  .tox .tox-dialog__body-content ul label::after{
    content:"\u2714";
    font-size: 20px;
    border-radius: 15px;
    width: 22px;
    height: 22px;
    display: none;
    color:  #fff;
    background:  #1C6CA1;
    border: 2px solid #1C6CA1;
    position: absolute;
    text-align: center;
    line-height: 20px;
    z-index: 9;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    
  }
  .tox .tox-dialog__body-content ul input:checked + label::after{
    display: block;
  }
  .tox .tox-dialog__body-content ul input:checked + label{
  
    pointer-events: none;
   
  }
  .tox .tox-dialog__body-content ul input:checked + label>span{
    opacity: 0.5;
  }
  .tox .tox-dialog__body-content .showStyle{
    display: block;
    position: absolute;
    right: 20px;
    top: 30px;
    -webkit-transform: translatY(-50%);
    transform: translateY(-50%);

  }
  .tox .tox-dialog__body-content .tox-form__group h2.title_h2{
    margin: 0;
    padding: 0;
    margin-top: -20px;
    min-height: 60px;
    line-height:60px;
  }
  .tox .tox-dialog__body-content li{
    line-style:none;
    display: inline-block;
    margin: 0 4px;
    margin-top: 5px;
  }
    ${te.replace(/.tp-buttons/g,".tox .tox-dialog__body-content .tp-buttons")}
     </style>
     <div class="showStyle" id="${C+"_StyleID"}">${G}</div>
     <h2 class="title_h2">${Ce.translate("Select tmplate")}:</h2>
     <ul>
      ${I}
     </ul>
     </div>
     `};let St=(s,C)=>{let P="";if(!s)return"";for(C=Qe(C);s.nodeName&&s.nodeName.toLowerCase()!=="#text";)P=s.style[C],s=s.firstChild;return P};const et=(s,C,P)=>{P=P||s.selection.getSelectedBlocks(),ie.each(P,function(S){if(s.dom.getStyle(S,"text-indent")||C){let I="",G="";C==="remove"?(-parseInt(s.dom.getStyle(S,"text-indent"))==parseInt(s.dom.getStyle(S,"margin-left"))&&s.dom.setStyle(S,"margin-left",null),s.dom.setStyle(S,"text-indent",null)):(C=parseInt(C)||2,S&&S.firstChild&&(I=St(S,"font-size"),G=St(S,"letter-spacing"),I?I=(parseInt(I)+parseInt(G||0))*C+"px":I=(parseInt(G||0)+16)*C+"px"),C>0&&-parseInt(s.dom.getStyle(S,"text-indent"))==parseInt(s.dom.getStyle(S,"margin-left"))&&s.dom.setStyle(S,"margin-left",null),s.dom.setStyle(S,"text-indent",I||C+"em"),C<0&&s.dom.setStyle(S,"margin-left",I?I.replace(/^-/,""):-C+"em"))}})},Gt=s=>{var C=function(P){return function(){return s.execCommand(P)}};s.addCommand("tpLetterspacing",function(P,S){s.formatter.apply("tpLetterspacing",{value:S}),et(s)}),s.addCommand("tpLineheight",function(P,S){s.formatter.apply("tpLineheight",{value:S})}),s.addCommand("tpIndent",function(P,S){et(s,S||2)}),s.addCommand("mceTpAlignleft",function(P,S){let I=s.dom.getParent(s.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");s.dom.setStyle(I,"float","left")}),s.addCommand("mceTpAlignright",function(P,S){let I=s.dom.getParent(s.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");s.dom.setStyle(I,"float","right")}),s.addCommand("mceTpAligncenter",function(P,S){let I=s.dom.getParent(s.selection.getNode(),"tp-tabs,tp-buttons,tp-collapse");s.dom.setStyle(I,"float",null),s.dom.setStyle(I,"margin-left","auto"),s.dom.setStyle(I,"margin-right","auto")}),s.ui.registry.addButton("tpalignleft",{tooltip:"Align left",onAction:C("mceTpAlignleft"),icon:"align-left"}),s.ui.registry.addButton("tpalignright",{tooltip:"Align right",onAction:C("mceTpAlignright"),icon:"align-right"}),s.ui.registry.addButton("tpaligncenter",{tooltip:"Align center",onAction:C("mceTpAligncenter"),icon:"align-center"})},Et=s=>{s.formatter.register({alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video,tp-buttons,tp-tabs",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table,tp-buttons,tp-tabs",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video,tp-buttons,tp-tabs",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],afterParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"margin-bottom":"%value"}},beforeParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"margin-top":"%value"}},borderParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{"border-width":"%valueW","border-style":"%valueS","border-color":"%valueC"}},paddingParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{padding:"%value"}},tpParagraph:{selector:"p,ul,ol,dl,li,table",defaultBlock:"p",deep:!1,styles:{background:"%background","text-indent":"%indent"}},tpLetterspacing:{inline:"span",remove_similar:!0,styles:{"letter-spacing":"%value"}},tpLineheight:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table",styles:{"line-height":"%value"}}}),s.on("ExecCommand",function(C){C.command==="FontSize"&&et(s)})};let st=function(s,C,P,S){s.tp$Style.mapping||(s.tp$Style.mapping={}),s.tp$Style.mapping[""+C.getAttribute("data-id")]?He(s.tp$Style.mapping[""+C.getAttribute("data-id")],{styleTemplate:C.getAttribute("data-tp-style")||"default",quantity:C.children.length-1}):s.tp$Style.mapping[""+C.getAttribute("data-id")]={styleCustomTags:S.name,stylePath:S.name==="buttons"?"styleSheetList":"styleSheetLoadList",styleTemplate:C.getAttribute("data-style")||"default",quantity:C.children.length-1,specialStyle:{}}};const Kt=(s,C,P,S,I)=>{const G=C.createElement("template"),te=document.createElement("style"),se=document.createElement("style");te.textContent=`body{
      padding: 0;
      margin: 0;
  }
  :host {
      overflow: hidden;
      display: block; 
  }`,G.innerHTML=S.template.innerHTML;class ue extends s.HTMLElement{constructor(){super(),this.setAttribute("contenteditable",!1),this.setAttribute("data-mce-tp-component",I),this.attachShadow({mode:"open"}),this.tp$state=typeof S.state=="object"?JSON.parse(JSON.stringify(S.state)):{},st(P,this,"init",S),this.tpComponentDelete=typeof S.tpComponentDelete=="function"?S.tpComponentDelete.bind(this):()=>{this.remove()},this.tpComponentCmd=typeof S.tpComponentCmdFn=="object"?JSON.stringify(S.tpComponentCmdFn)!=="{}"?(Ae,Ne)=>{S.tpComponentCmdFn[Ae](this,Ne),st(P,this,Ae,S)}:(Ae,Ne)=>{Oe.customTags[I].tpComponentCmdFn[Ae](this,Ne),st(P,this,Ae,S)}:()=>{console.log("\u65E0\u53EF\u7528cmd")},se.id="tpComponentStyle_"+this.getAttribute("data-id"),I=="tabs"&&(se.textContent=S.styleSheetLoadList&&S.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"]?S.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"].replace(/.tp-tabs\s*\{/g,":host   {").replace(/.tp-tabs_label\b\s/g,"::slotted(.tp-tabs_label)   ").replace(/.tp-tabs_label:hover\b\s/g,"::slotted(.tp-tabs_label:hover)   ").replace(/.tp-tabs_label.checked\b\s/g,"::slotted(.tp-tabs_label.checked)   "):""),I=="collapse"&&(se.textContent=S.styleSheetLoadList&&S.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"]?S.styleSheetLoadList[this.getAttribute("data-tp-style")||"default"].replace(/>/g," ").replace(/.tp-collapse\s*\{/g,":host   {").replace(/label.tp-collapse_label\b\s/g,"::slotted(.tp-collapse_label)   ").replace(/label.tp-collapse_label::/g,"::slotted(.tp-collapse_label)::").replace(/.tp-tabs_label:hover\b\s/g,"::slotted(.tp-tabs_label:hover)   ").replace(/.tp-tabs_label.checked\b\s/g,"::slotted(.tp-tabs_label.checked)   "):""),I=="buttons"&&(se.textContent=S.styleSheetList&&S.styleSheetList[this.getAttribute("data-tp-style")||"default"]?qe(S.styleSheetList[this.getAttribute("data-tp-style")||"default"],this.getAttribute("data-tp-style")||"default").replace(/\[data-tp-style=(.*?)\]/g,"").replace(/>/g," ").replace(/.tp-buttons\s*\{/g,":host   {").replace(/.tp-buttons:hover\s*\{/g,":host(:hover)   {").replace(/.tp-buttons::before\s*\{/g,":host(.tp-buttons)::before   {").replace(/.tp-buttons::after\s*\{/g,":host(.tp-buttons)::after   {"):""),G.content.prepend(se),G.content.prepend(te),this.shadowRoot.appendChild(G.content.cloneNode(!0))}connectedCallback(){tt(S,"headerEditableFn")(this,S.isHeaderEditable,I,P),tt(S,"contentEditableFn")(this,S.isContentEditable,I,P),tt(S,"connectedCallback")(this.shadowRoot,this)}static get observedAttributes(){return["data-top-bg","data-mce-tp-component","data-value"]}static tp$Delete(){console.log(this)}}try{s.customElements.define("tp-"+I,ue)}catch{}},Jt=s=>{const C=s.getWin(),P=s.getDoc();let S=s.toolbar,I=s.baseURI.source;typeof S=="object"&&(S=S.jion(" ")),/tpIconlists/.test(S)&&fe.send({url:I+"plugins/tpIconlists/tpIconlists.css",async:!1,dataType:"text",success:function(se){s.dom.addStyle(se)}}),Et(s),Gt(s);const G=`.mce-content-body [data-mce-tp-component][contenteditable=false][data-mce-selected] {
      outline: none;
      cursor: default;
      box-shadow: 0 0 0 2px #b4d7ff;
      position: relative;
      z-index:999;
      border-color: #B4D7FF;
      border-style: solid;
  }
  .mce-content-body .tp-partition[contentEditable=false],
  .mce-content-body .tp-partition[contentEditable=false]:focus,
  .mce-content-body .tp-partition[contentEditable=false]:hover{
    outline: none!important;
    box-shadow: none!important;
  }
  .mce-content-body tp-buttons .tp-component_inline>a{
       color: inherit;
       font:inherit;
       text-decoration: none;
       
  }
  .mce-content-body .tp-collapse .tp-collapse_label>p:first-child{
      display: inline-block;
  }
  .mce-content-body .tp-component_inline{display: table-cell; margin: 0 }
  .mce-content-body *[contentEditable=false] *[contentEditable=true]:focus {
      outline: none!important;
  }
  .mce-content-body tp-buttons{
    display: inline-block;
    vertical-align: middle;
  }
  .mce-content-body img{
      max-width: 100%;
  }
  .mce-content-body [data-mce-tp-component]{
      border: 1px dashed #bbb;
  }
  .mce-content-body *[contentEditable=false] *[contentEditable=true]:hover {
      outline: none!important;
  }`;s.dom.addStyle(G),s.tp$Style={},s.getTpStyle=se=>"<style>"+s.tp$OutputStyle+" </style>";let te=s.tp$CustomTags||Oe.customTags;ie.each(te,function(se,ue){Kt(C,P,s,se,ue)}),s.parser.addAttributeFilter("data-tp-component",se=>{se&&se.forEach(ue=>{let be=ue.attr("data-tp-component");te[be]&&tt(te[be],"parserFn")(ue,be,s)})}),s.serializer.addAttributeFilter("data-mce-tp-component",se=>{se&&se.forEach(ue=>{let be=ue.attr("data-mce-tp-component");te[be]&&tt(te[be],"serializerFn")(ue,be,s)})}),s.setContent(s.getContent({source_view:!0}))},ht=(s,C,P,S,I)=>{S?(!S.tp$CustomTags&&(S.tp$CustomTags=JSON.parse(JSON.stringify(Oe.customTags))),I?He(S.tp$CustomTags[s][C],P):S.tp$CustomTags[s][C]=P):I?He(Oe.customTags[s][C],P):Oe.customTags[s][C]=P},Pt={custom_elements:"",setCustomTags:ht,createCustomTags:(s,C,P)=>{P?(!P.tp$CustomTags&&(P.tp$CustomTags=JSON.parse(JSON.stringify(Oe.customTags))),P.tp$CustomTags[s]=C):Oe.customTags[s]=C},setStyleSheetList:(s,C,P,S)=>{ht("buttons","styleSheetList",{[C]:{"tp-buttons":ze("tp-buttons",P),"tp-buttons:hover":ze("tp-buttons:hover",P),"tp-buttons::before":ze("tp-buttons::before",P),"tp-buttons::after":ze("tp-buttons::after",P)}},S,!0)},createHtmlPanel:Zt};var ft={name:"tabs",styleSheet:{selector:"default",styleSheetList:{default:{"tp-tabs":"","tp-tabs_top":"","tp-tabs_label.checked":" ","tp-tabs_main":" ","tp-tab_main.checked":" "}}},styleSheetLoadList:{},styleFn:()=>{},state:{count:0},tpComponentDeleteFn:function(){console.log(this)},tpComponentMonitorCmd:()=>{},tpComponentCmdFn:{tabAdd:(s,C)=>{let P=document.createElement("div");P.setAttribute("contenteditable",!1),P.setAttribute("class","tp-partition tp-tabs_label"),P.setAttribute("data-idx",s.tp$state.count);let S=document.createElement("p");S.setAttribute("class","tp-component_inline"),S.setAttribute("data-idx",s.tp$state.count),S.setAttribute("contenteditable",!0),S.innerHTML=C.title,P.appendChild(S),s.insertBefore(P,s.lastChild);let I=document.createElement("div");I.setAttribute("class","tp-tab_main"),I.setAttribute("style","overflow: hidden; max-height: 0; transition: all 0s"),I.innerHTML=C.content,s.lastChild.appendChild(I),s.tp$state.count++},tabDelete:(s,C)=>{s.children[--s.tp$state.count].remove(),s.lastChild.lastChild.remove()},delete:(s,C)=>{s.remove()},getStyle:(s,C)=>{},setStyle:(s,C)=>{console.log(s.querySelector(".tp-tabs_top")),s.setAttribute("data-top-style",C["tp-tabs_top"]),s.shadowRoot.querySelector(".tp-tabs_top").setAttribute("style",C["tp-tabs_top"])}},template:{innerHTML:`
<div class="tp-tabs">
  <div class="tp-tabs_top" id="headerID">
      <slot></slot>
  </div>
  <div class="tp-tabs_main">
      <slot name="content" ></slot>
  </div>
</div>
    `},connectedCallback:(s,C)=>{let P=S=>S.className&&S.className.indexOf("tp-partition tp-tabs_label")!==-1||S.parentNode&&(S.parentNode.className&&S.parentNode.className.indexOf("tp-partition tp-tabs_label")!==-1||S.parentNode.parentNode&&S.parentNode.parentNode.className&&S.parentNode.parentNode.className.indexOf("tp-partition tp-tabs_label")!==-1);s.getElementById("headerID").addEventListener("click",function(S){if(P(S.target)){let I=S.target.getAttribute("data-idx")||S.target.parentNode.getAttribute("data-idx")||"0",G=C.querySelectorAll("div.tp-partition.tp-tabs_label"),te=C.querySelector("div.tp-partition.tp-tabs_label.checked");te&&te.setAttribute("class","tp-partition tp-tabs_label");let se=G[I];se&&se.setAttribute("class","tp-partition tp-tabs_label checked");let ue=C.querySelectorAll("div.tp-tab_main"),be=C.querySelector("div.tp-tab_main[contenteditable=true]");be&&(be.setAttribute("contenteditable",!1)||(be.style.maxHeight="0px"));let Ae=ue[I];Ae&&(Ae.setAttribute("contenteditable",!0)||(Ae.style.maxHeight="10000px"))}})},isContentEditable:!0,contentEditableFn:(s,C,P)=>{if(s.lastChild&&s.lastChild.className==="tp-"+P+"_main"){const S=document.createElement("div");for(S.setAttribute("contenteditable",!1),S.setAttribute("class","tp-partition tp-tabs_main"),S.setAttribute("slot","content"),s.lastChild.firstChild&&(s.lastChild.firstChild.setAttribute("class","tp-tab_main"),s.lastChild.firstChild.setAttribute("style","overflow: hidden; max-height: 10000px; transition: all 0s"),C&&s.lastChild.firstChild.setAttribute("contenteditable",!0),S.setAttribute("style",s.lastChild.getAttribute("style")),S.appendChild(s.lastChild.firstChild));s.lastChild.firstChild;)s.lastChild.firstChild.setAttribute("class","tp-tab_main"),s.lastChild.firstChild.setAttribute("style","overflow: hidden; max-height: 0; transition: all 0s"),S.appendChild(s.lastChild.firstChild);s.removeChild(s.lastChild),s.appendChild(S)}},isHeaderEditable:!0,headerEditableFn:(s,C,P)=>{let S=s.children.length;s.getAttribute("data-id"),s.shadowRoot.querySelector("#headerID.tp-tabs_top").setAttribute("style",s.getAttribute("data-top-style")?s.getAttribute("data-top-style"):"");for(let I=S-2;I>=0;I--)s.tp$state.count++,s.children[I].setAttribute("contenteditable",!1),s.children[I].setAttribute("class","tp-partition tp-"+P+"_label"+(I===0?" checked":"")),s.children[I].setAttribute("data-idx",I),s.children[I].firstChild.setAttribute("class","tp-component_inline"),s.children[I].firstChild.setAttribute("data-idx",I),C&&s.children[I].firstChild.setAttribute("contenteditable",!0)},parserFn:(s,C)=>{for(s.attr({"data-tp-component":null,"data-mce-tp-component":C,"data-top-style":s.firstChild.attr("style")});s.firstChild.name==="input";)s.firstChild.remove();let P=s.firstChild.firstChild;for(;P&&P.name==="label";){let I=P.next,G=new ye("div",1);P.name="p",P.wrap(G),P=I}let S=s.lastChild.firstChild;for(;S&&S.name==="label";){let I=S.next.next;S.remove(),S=I}s.firstChild.unwrap(),s.type=1,s.name="tp-"+C},serializerFn:(s,C)=>{s.attr({"data-mce-tp-component":null,"data-tp-component":C,contenteditable:null,class:"tp-"+C});let P=new ye("div",1);P.attr("class","tp-tabs_top"),P.attr("style",s.attr("data-top-style")),s.attr("data-top-style",null);let S=s.firstChild,I=[];for(;S.attr("data-idx");){let se=S.next;S.firstChild.name="label",S.firstChild.attr({contenteditable:null,"data-idx":null,class:"tp-"+C+"_label",for:s.attr("data-id")+"tab"+S.attr("data-idx")}),I.push(Me(S.firstChild)),P.append(S.firstChild),S.remove(),S=se}let G=s.lastChild.firstChild,te=0;for(;G&&G.attr("class")==="tp-tab_main";){let se=G.next,ue=new ye("input",1);ue.shortEnded=!0,ue.attr({id:s.attr("data-id")+"tab"+te,type:"radio",name:s.attr("data-id")}),te==0&&ue.attr("checked",""),s.append(ue),G.attr({contenteditable:null,style:null,class:"tp-tab_main tp-tab_main_"+te}),I[te]&&(s.lastChild.insert(oe(I[te]),G,!0),te++),G=se}s.append(P),s.firstChild.attr({contenteditable:null,class:"tp-tabs_main"}),s.append(s.firstChild),s.type=1,s.name="div"}},mt={name:"buttons",template:{innerHTML:`
<div class="tp-buttons">
<div class="tp-buttons_main">
    <slot></slot>
</div>
</div>
    `},styleSheetList:{default:{"tp-buttons":`

          display: inline-block;
          background: rgb(179, 70, 70);
          padding: 14px 25px;
          color: #333;
          border-radius: 8px;
          -webkit-transition: all .2s ease-in-out;
          transition: all .2s ease-in-out;
          border: 1px solid transparent;
          box-sizing: border-box;
          word-wrap: break-word;
          cursor: pointer;
          text-decoration: none;`,"tp-buttons:hover":`
           color: rgb(179, 70, 70) ;
           background: transparent;
           border-color: rgb(179, 70, 70) ;
           `,"tp-buttons::before":" ","tp-buttons::after":" "}},isContentEditable:!0,connectedCallback:()=>{},tpComponentCmdFn:{upData:(s,C)=>{s.shadowRoot.children[1].textContent=qe(C.editor.tp$CustomTags.buttons.styleSheetList[C.styleName],C.styleName).replace(/\[data-tp-style=(.*?)\]/g,"").replace(/>/g," ").replace(/.tp-buttons\s*\{/g,":host   {").replace(/.tp-buttons:hover\s*\{/g,":host(:hover)   {").replace(/.tp-buttons::before\s*\{/g,":host(::before)   {").replace(/.tp-buttons::after\s*\{/g,":host(::after)   {")}},contentEditableFn:(s,C,P,S)=>{if(s.firstChild&&s.firstChild.tagName==="A"){const I=document.createElement("p");I.setAttribute("contenteditable",!0),I.setAttribute("class","tp-component_inline"),s.firstChild.innerHTML="<span>"+s.firstChild.innerHTML+"</span>",s.firstChild.setAttribute("href","javascript:;"),I.appendChild(s.firstChild),s.appendChild(I)}},isHeaderEditable:!0,parserFn:(s,C,P)=>{s.attr({"data-tp-component":null});let S=s.attr("style"),I={},G="";G=we("margin",S),G&&(I.margin=G),G=we("padding",S),G&&(I.padding=G),G=we("border",S),G&&(I.border=G),G=we("background",S),G&&(I.background=G),G=we("border-radius",S),G&&(I["border-radius"]=G),G=we("border-width",S),G&&(I["border-width"]=G),G=we("border-style",S),G&&(I["border-style"]=G),G=we("border-color",S),G&&(I["border-color"]=G);let te=new ye("div",1);te.type=1,te.attr({"data-mce-tp-component":C,"data-tp-style":s.attr("data-tp-style")||"default",style:Xe(I)||null,"data-id":s.attr("data-id")}),s.attr("class")&&te.attr("class",s.attr("class")),P.tp$Style.mapping||(P.tp$Style.mapping={}),P.tp$Style.mapping[""+s.attr("data-id")]?He(P.tp$Style.mapping[""+s.attr("data-id")],{styleTemplate:s.attr("data-tp-style")||"default"}):P.tp$Style.mapping[""+s.attr("data-id")]={styleCustomTags:"buttons",stylePath:"styleSheetList",styleTemplate:s.attr("data-tp-style")||"default",specialStyle:{}},s.attr("style",Xe(He(Fe(s.attr("style"))||{},{margin:"",padding:"",background:"","border-style":"","border-color":"","border-width":"","border-radius":"",border:""}))||null),s.attr("data-id",null),s.attr("data-mce-style",null),s.wrap(te),te.name="tp-"+C},serializerFn:(s,C)=>{let P=s;for(;P.name!=="a"&&P.firstChild.name!=="#text";)P=P.firstChild;s.attr({"data-mce-tp-component":null,"data-tp-component":C,contenteditable:null,"data-tp-style":s.attr("data-tp-style")||"default",href:P&&P.attr("href")?P.attr("href"):null,style:P&&P.attr("style")?Xe(He(Fe(s.attr("style"))||{},Fe(P.attr("style"))||{})):s.attr("style"),target:P&&P.attr("target")?P.attr("target"):null,rel:P&&P.attr("rel")?P.attr("rel"):null,title:P&&P.attr("title")?P.attr("title"):null}),s.firstChild.unwrap(),P&&P.unwrap(),s.name="a"}},Bt={name:"collapse",template:{innerHTML:`
<div class="tp-collapse">
<div class="header" id="headerID">
  <slot name="header"></slot>
</div>
<div class="tp-collapse_mainBox">
    <slot></slot>
</div>
</div>
    `},isContentEditable:!0,connectedCallback:()=>{},tpComponentCmdFn:{upData:(s,C)=>{let P=C.style,S=we("padding",P),I=we("border",P),G=we("border-width",P);Ve(C.editor,s,"tp-collapse_main",(S?"padding: "+S+"!important; ":"")+(I?"border: "+I+"!important;":"")+(G?"border-width: "+G+"!important;":""))}},contentEditableFn:(s,C,P,S)=>{const I=document.createElement("div");if(I.setAttribute("contenteditable",!1),I.setAttribute("class","tp-partition tp-collapse_main"),C&&s.lastChild.setAttribute("contenteditable",!0),s.lastChild.getAttribute("class")==="tp-collapse_main"){let G=s.lastChild.getAttribute("style"),te=we("padding",G),se=we("border",G),ue=we("border-width",G);Ve(S,s,"tp-collapse_main",(te?"padding: "+te+"!important; ":"")+(se?"border: "+se+"!important;":"")+(ue?"border-width: "+ue+"!important;":""))}I.appendChild(s.lastChild),s.appendChild(I)},isHeaderEditable:!0,headerEditableFn:(s,C,P,S)=>{if(s.firstChild.contenteditable!=="true"){const I=document.createElement("div");for(C&&I.setAttribute("contenteditable",!0),I.setAttribute("slot","header"),I.setAttribute("class","tp-collapse_label"),I.setAttribute("style","min-height: 20px; "+s.getAttribute("data-top-style"));s.firstChild&&s.firstChild.className!=="tp-"+P+"_main";)I.appendChild(s.firstChild);s.insertBefore(I,s.firstChild)}},parserFn:(s,C)=>{s.attr({"data-tp-component":null,"data-mce-tp-component":C}),s.attr("data-id",s.firstChild.attr("id")),s.firstChild.remove(),s.lastChild.attr("class","tp-"+C+"_main"),s.type=1,s.name="tp-"+C},serializerFn:(s,C)=>{s.attr({"data-mce-tp-component":null,"data-tp-component":C,contenteditable:null,class:"tp-"+C}),s.firstChild.type=1,s.firstChild.name="label",s.firstChild.attr({contenteditable:null,for:s.attr("data-id")});let P=s.lastChild.attr("style");s.lastChild.unwrap(),s.lastChild.attr({contenteditable:null,class:"tp-"+C+"_main",style:P});let S=new ye("input",1);S.shortEnded=!0,S.attr({id:s.attr("data-id"),type:"checkbox"}),s.insert(S,s.firstChild,!0),s.attr("data-id",null),s.type=1,s.name="div"}};const zt=s=>/select$/.test(s),Ot={forecolor:!0,backcolor:!0,tpLetterspacing:!0,tpIconlists:!0,tpColumns:!0,table:!0},lt={title:{file:{zh_CN:"\u6587\u4EF6",en_US:"File"},edit:{zh_CN:"\u7F16\u8F91",en_US:"Edit"},view:{zh_CN:"\u67E5\u770B",en_US:"View"},insert:{zh_CN:"\u63D2\u5165",en_US:"Insert"},format:{zh_CN:"\u683C\u5F0F",en_US:"Format"},table:{zh_CN:"\u8868\u683C",en_US:"Table"},tools:{zh_CN:"\u5DE5\u5177",en_US:"Tools"},help:{zh_CN:"\u5E2E\u52A9",en_US:"Help"}},items:{code:"tools",spellchecker:"tools",spellcheckerlanguage:"tools",wordcount:"tools",image:"insert",link:"insert",media:"insert",hr:"insert",template:"insert",codesample:"insert",charmap:"insert",inserttable:"table",emoticons:"insert",pagebreak:"insert",nonbreaking:"insert",anchor:"insert",toc:"insert",insertdatetime:"insert",bold:"format",italic:"format",underline:"format",strikethrough:"format",blockquote:"format",subscript:"format",superscript:"format",removeformat:"format",formatselect:"format",fontselect:"format",fontsizes:"format",forecolor:"format",backcolor:"format",fontformats:"format",blockformats:"format",codeformat:"format",align:"format",table:"table",lineheight:"format",help:"help"}},Ft={file:!0,view:!0,edit:!0},bt=s=>{let C=[];return s.split("|").forEach(S=>{let I=S.split(" "),G=[];I.forEach(te=>{te&&G.push({isSelect:zt(te),name:te}),te&&lt.items[te]&&(Ft[lt.items[te]]=!0)}),G.length>0&&C.push(G)}),C},qt=s=>{let C=[];return s.split("|").forEach(S=>{let I=S.split(" "),G=[];I.forEach(te=>{te&&G.push({isSelect:zt(te),name:te})}),C.push(G)}),C},Dt=()=>`.skt-tox-tinymce{

    border: 2px solid #eee;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    overflow: hidden;
    position: relative;
    visibility: inherit!important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background-color: #fff;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    vertical-align: initial;
    white-space: normal;
        height: 200px;
  }
  
  .skt-tox-editor-container{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }
  .skt-tox-editor-header{
    padding: 4px 0;
    box-shadow: 0 2px 2px -2px rgb(34 47 62 / 10%), 0 8px 8px -4px rgb(34 47 62 / 7%);
     transition: box-shadow .5s;
         z-index: 1;
  }
  .skt-tox-anchorbar{
    display: flex;
    flex: 0 0 auto;
  }
  .skt-tox-tinymce .skt-tox-statusbar{
    align-items: center;
    background-color: #fff;
    border-top: 1px solid #e3e3e3;
    color: rgba(34,47,62,.7);
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 400;
    height: 25px;
    overflow: hidden;
    padding: 0 8px;
    position: relative;
    text-transform: none;
  
  }
  .skt-tox-tinymce .skt-tox-toolbar,.skt-tox-tinymce .skt-tox-menubar{
    background: url(data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='transparent'/%3E%3C/svg%3E) left 0 top 0 #fff;
    background-color: #fff;
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    padding: 0 11px 0 12px;
   
  }
  .skt-tox-mbtn{
   align-items: center;
    background: 0 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #222f3e;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    height: 34px;
    justify-content: center;
    margin: 2px 0 3px 0;
    outline: 0;
    overflow: hidden;
    padding: 0 4px;
    text-transform: none;
    width: auto;
  }
  .skt-tox-mbtn__select-label {
    cursor: default;
    font-weight: 400;
    margin: 0 4px;
  }
  .skt-tox-tbtn.skt-tox-split-button{
    border: 0;
    border-radius: 3px;
    box-sizing: border-box;
    display: flex;
    width: 50px;
    margin: 2px 0 3px 0;
    overflow: hidden;
  }
  .skt-tox-split-button .skt-tox-tbtn__select-chevron{
    margin-left: 5px;
  
  }
  .skt-tox-toolbar__group{
    border-right:1px solid #ccc;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0;
    padding: 0 4px 0 4px;
  }
  .skt-tox-toolbar__group:last-child {
  border-right: 0px;
  }
  .skt-tox-sidebar-wrap-box{
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  .skt-tox-sidebar-wrap-box p{
     height: 16px;
     width: calc(100% - 40px);
     margin: 5px 20px;
  }
  .skt-tox-sidebar-wrap-box p:first-child{
    width: calc(100% - 74px)!important;
    margin-top: 20px;
    margin-left: 54px!important;
  }
  
  .skt-tox-sidebar-wrap-box p:nth-child(3n+2){
    width: 90%;
    margin-right:8%;
  }
  .skt-tox-sidebar-wrap-box p:nth-child(3n+3){
    width: calc(100% - 74px);
    margin-left: 54px
  }
  .skt-tox-sidebar-wrap-box p:nth-child(3n+1){
    width: 75%;
    margin-right:8%;
  }
  .skt-tox-sidebar-wrap-box p:last-child{
    width: 65%!important;
    margin-left: 20px;
  }
  .skt-tox-tbtn{
    align-items: center;
    background: 0 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #222f3e;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    height: 34px;
    justify-content: center;
    margin: 2px 0 3px 0;
    outline: 0;
    overflow: hidden;
    padding: 0;
    text-transform: none;
    width: 34px;
  }
  .skt-tox-tbtn--select{
    margin: 2px 0 3px 0;
    padding: 0 4px;
    padding-right: 3px;
    width: auto;
  }
  .skt-tox-tbtn__select-label{ 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 7em;
    font-weight: 400;
    margin: 0 4px;
  }
  .skt-tox-tbtn__select-chevron{
    align-items: center;
    display: flex;
    justify-content: center;
    width: 10px;
    height: 14px;
  }
  .skt-tox-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
  }
  
  @-webkit-keyframes skeleton-ani {
  0% {
    left: -90%
  }
  
  to {
    left: 120%
  }
  }
  
  @keyframes skeleton-ani {
  0% {
    left: -90%
  }
  
  to {
    left: 120%
  }
  }
  .skt{
    display: none;
    width: 100%;
    top: 0;
    position: absolute;
    z-index: 99;
  }
  .skt.skt-loading{
   display: block;
  }
  .skt-loading .skeleton {
  position: relative;
  overflow: hidden;
  border: none !important;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: none !important;
  pointer-events: none;
  }
  
  .skt-loading .skeleton:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  background-color: #ebf1f8;
  display: block
  }
  
  .skt-loading .skeleton:not(.not-round):after {
  border-radius: 4px
  }
  .skt-loading .tox-tbtn__select-chevron{
  display: inline-block;
  width: 8px;
  height: 18px;
  }
  .skt-loading .tox-icon { display: inline-block; width: 24px; height: 24px;}
  .skt-loading .skeleton:not(.not-before):before {
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  content: "";
  background: -webkit-gradient(linear, left top, right top, color-stop(0, hsla(0, 0%, 100%, 0)), color-stop(50%, hsla(0, 0%, 100%, .3)), to(hsla(0, 0%, 100%, 0)));
  background: -o-linear-gradient(left, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0) 100%);
  background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0));
  -webkit-transform: skewX(-45deg);
  -ms-transform: skewX(-45deg);
  transform: skewX(-45deg);
  z-index: 99;
  -webkit-animation: skeleton-ani 1s ease infinite;
  animation: skeleton-ani 1s ease infinite;
  display: block
  }
  .skt-loading .skeleton.badge:after {
  background-color: #f8fafc
  }`,Tt=()=>`[data-isdark] .skt-tox-tinymce{
    background-color: #222f3e;
    border: 2px solid #161f29;
    border-radius: 10px;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    overflow: hidden;
    position: relative;
    visibility: inherit!important;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    vertical-align: initial;
    white-space: normal;
        height: 200px;
  }
  
  [data-isdark] .skt-tox-editor-container{
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }
  [data-isdark] .skt-tox-editor-header{
    padding: 4px 0;
    background-color: #222f3e;
    border-bottom: 1px solid rgba(255,255,255,.15);
    box-shadow: none;
     transition: box-shadow .5s;
         z-index: 1;
  }
  [data-isdark] .skt-tox-anchorbar{
    display: flex;
    flex: 0 0 auto;
  }
  [data-isdark] .skt-tox-tinymce .skt-tox-statusbar{
    align-items: center;
    background-color: #222f3e;
    border-top: 1px solid rgba(255,255,255,.85);
    color: rgba(255,255,255,.75);
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 400;
    height: 25px;
    overflow: hidden;
    padding: 0 8px;
    position: relative;
    text-transform: none;
  
  }
  [data-isdark] .skt-tox-tinymce .skt-tox-toolbar,[data-isdark] .skt-tox-tinymce .skt-tox-menubar{
    background: url(data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='transparent'/%3E%3C/svg%3E) left 0 top 0 #222f3e;
    background-color: #222f3e;
    display: flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    padding: 0 11px 0 12px;
   
  }
  [data-isdark] .skt-tox-mbtn{
   align-items: center;
    background: 0 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    height: 34px;
    justify-content: center;
    margin: 2px 0 3px 0;
    outline: 0;
    overflow: hidden;
    padding: 0 4px;
    text-transform: none;
    width: auto;
  }
  [data-isdark] .skt-tox-mbtn__select-label {
    cursor: default;
    font-weight: 400;
    margin: 0 4px;
  }
  [data-isdark] .skt-tox-tbtn.skt-tox-split-button{
    border: 0;
    border-radius: 3px;
    box-sizing: border-box;
    display: flex;
    width: 50px;
    margin: 2px 0 3px 0;
    overflow: hidden;
  }
  [data-isdark] .skt-tox-split-button .skt-tox-tbtn__select-chevron{
    margin-left: 5px;
  
  }
  [data-isdark] .skt-tox-toolbar__group{
    border-right:1px solid #222f3e;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0;
    padding: 0 4px 0 4px;
  }
  [data-isdark] .skt-tox-toolbar__group:last-child {
  border-right: 0px;
  }
  [data-isdark] .skt-tox-sidebar-wrap-box{
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  [data-isdark] .skt-tox-sidebar-wrap-box p{
     height: 16px;
     width: calc(100% - 40px);
     margin: 5px 20px;
  }
  [data-isdark] .skt-tox-sidebar-wrap-box p:first-child{
    width: calc(100% - 74px)!important;
    margin-top: 20px;
    margin-left: 54px!important;
  }
  
  [data-isdark] .skt-tox-sidebar-wrap-box p:nth-child(3n+2){
    width: 90%;
    margin-right:8%;
  }
  [data-isdark] .skt-tox-sidebar-wrap-box p:nth-child(3n+3){
    width: calc(100% - 74px);
    margin-left: 54px
  }
  [data-isdark] .skt-tox-sidebar-wrap-box p:nth-child(3n+1){
    width: 75%;
    margin-right:8%;
  }
  [data-isdark] .skt-tox-sidebar-wrap-box p:last-child{
    width: 65%!important;
    margin-left: 20px;
  }
  [data-isdark] .skt-tox-tbtn{
    align-items: center;
    background: 0 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    height: 34px;
    justify-content: center;
    margin: 2px 0 3px 0;
    outline: 0;
    overflow: hidden;
    padding: 0;
    text-transform: none;
    width: 34px;
  }
  [data-isdark] .skt-tox-tbtn--select{
    margin: 2px 0 3px 0;
    padding: 0 4px;
    padding-right: 3px;
    width: auto;
  }
  [data-isdark] .skt-tox-tbtn__select-label{ 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 7em;
    font-weight: 400;
    margin: 0 4px;
  }
  [data-isdark] .skt-tox-tbtn__select-chevron{
    align-items: center;
    display: flex;
    justify-content: center;
    width: 10px;
    height: 14px;
  }
  [data-isdark] .skt-tox-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
  }
  
  @-webkit-keyframes skeleton-ani {
  0% {
    left: -90%
  }
  
  to {
    left: 120%
  }
  }
  
  @keyframes skeleton-ani {
  0% {
    left: -90%
  }
  
  to {
    left: 120%
  }
  }
  [data-isdark].skt{
    display: none;
    width: 100%;
    top: 0;
    position: absolute;
    z-index: 99;
  }
  [data-isdark].skt.skt-loading{
   display: block;
  }
  [data-isdark].skt-loading .skeleton {
  position: relative;
  overflow: hidden;
  border: none !important;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0) !important;
  background-image: none !important;
  pointer-events: none;
  }
  
.skt-loading .skeleton:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  background-color: #ebf1f8;
  display: block
  }
  
  .skt-loading .skeleton:not(.not-round):after {
  border-radius: 4px
  }
  .skt-loading .tox-tbtn__select-chevron{
  display: inline-block;
  width: 8px;
  height: 18px;
  }
  .skt-loading .tox-icon { display: inline-block; width: 24px; height: 24px;}
  .skt-loading .skeleton:not(.not-before):before {
  position: absolute;
  top: 0;
  width: 30%;
  height: 100%;
  content: "";
  background: -webkit-gradient(linear, left top, right top, color-stop(0, hsla(0, 0%, 100%, 0)), color-stop(50%, hsla(0, 0%, 100%, .3)), to(hsla(0, 0%, 100%, 0)));
  background: -o-linear-gradient(left, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0) 100%);
  background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .3) 50%, hsla(0, 0%, 100%, 0));
  -webkit-transform: skewX(-45deg);
  -ms-transform: skewX(-45deg);
  transform: skewX(-45deg);
  z-index: 99;
  -webkit-animation: skeleton-ani 1s ease infinite;
  animation: skeleton-ani 1s ease infinite;
  display: block
  }
  .skt-loading .skeleton.badge:after {
  background-color: #f8fafc
  }`,Yt=s=>{if(!document.querySelector("style#skt-tox-style")&&!/dark$/.test(s.skin)){let ue=document.createElement("style");ue.type="text/css",ue.id="skt-tox-style";try{ue.appendChild(document.createTextNode(Dt()))}catch{ue.styleSheet.cssText=Dt()}document.getElementsByTagName("head")[0].appendChild(ue)}if(!document.querySelector("style#skt-dark-tox-style")&&/dark$/.test(s.skin)){let ue=document.createElement("style");ue.type="text/css",ue.id="skt-dark-tox-style";try{ue.appendChild(document.createTextNode(Tt()))}catch{ue.styleSheet.cssText=Tt()}document.getElementsByTagName("head")[0].appendChild(ue)}let C=[];typeof s.toolbar=="string"?C=bt(s.toolbar):Array.isArray(s.toolbar)&&s.toolbar.forEach(ue=>{C.push(...bt(ue))});let P=[];if(s.menubar!==!1)if(typeof s.menubar=="string")P=qt(s.menubar);else for(let ue in lt.title)Ft[ue]&&P.push(lt.title[ue][s.language||"en_US"]);let S=s.min_height||s.height||380,I=[],G=S-150;for(let ue=0;ue<G;ue+=50)I.push("1");let te=s.selector?document.querySelector(s.selector).parentNode:s.target.parentNode,se=document.createElement("div");return se.className="skt skt-loading",/dark$/.test(s.skin)&&se.setAttribute("data-isdark","true"),se.innerHTML=It({selector:s.selector,toolbar:C,menubar:P,branding:s.branding!==!1,placeholderList:I,height:S}),te.style.position="relative",te.style.minHeight=S+"px",te.append(se),se},le=s=>{let C="";return s.forEach(P=>{typeof P=="object"?P.forEach(S=>{C+='<button  class="skt-tox-mbtn skt-tox-mbtn--select"><span class="skt-tox-mbtn__select-label skeleton">'+S+`</span></button>
`}):C+='<button  class="skt-tox-mbtn skt-tox-mbtn--select"><span class="skt-tox-mbtn__select-label skeleton">'+P+`</span></button>
`}),C},Xt=s=>{let C="";return s.forEach(P=>{C+=`<div class="skt-tox-toolbar__group">
`,P.forEach(S=>{C+='<button class="skt-tox-tbtn '+(S.isSelect?" skt-tox-tbtn--select":"")+(Ot[S.name]?" skt-tox-split-button":"")+'"><span class="'+(S.isSelect?"skt-tox-tbtn__select-label skt-tox-tbtn--select":"skt-tox-icon tox-tbtn__icon-wrap")+' skeleton">'+S.name+"</span>"+(S.isSelect||Ot[S.name]?'<div class="skt-tox-tbtn__select-chevron skeleton"></div>':"")+`</button>
`}),C+=`</div>
`}),C},Qt=s=>{let C="";return s.forEach(P=>{C+=`<p class="skeleton"></p>
`}),C},It=s=>`
<div class="skt-tox-tinymce"  style="height: ${s.height}px" >
<div class="skt-tox-editor-container">
    <div class="skt-tox-editor-header">
<div  class="skt-tox-menubar">
     ${le(s.menubar)} 
</div>
    <div class="skt-tox-toolbar-overlord">
    <div class="skt-tox-toolbar">
     ${Xt(s.toolbar)}
    </div>
    </div>
    <div class="skt-tox-anchorbar"></div>
</div>
<div class="skt-tox-sidebar-wrap-box">

    <p  class="skeleton"> &nbsp; </p>
      ${Qt(s.placeholderList)}
    <p class="skeleton"> </p>
</div>
</div> 
<div class="skt-tox-statusbar">
 <div class="skeleton">
      PP
  </div> 
  ${s.branding?'<span class="skeleton" style="margin-left: calc(100% - 120px)">Powered by Five </span>':""}
 </div>
</div>`;Oe.customTags[ft.name]=ft,Oe.customTags[mt.name]=mt,Oe.customTags[Bt.name]=Bt;let er=(s,C,P)=>{let S=`
`;for(let I=0;I<P;I++)S+=`.tp-${s} > input:nth-child(${I+1}):checked ~ .tp-${s}_top > .tp-${s}_label:nth-child(${I+1}){${C}}

               .tp-${s} > input:nth-child(${I+1}):checked ~ .tp-${s}_main  .tp-tab_main_${I}{ max-height: 10000px; }

            `;return S},tr=(s,C)=>{let P="";return Ke(s.specialStyle).forEach(S=>{P+=s.specialStyle[S]?`
 `+C[S]+" { "+s.specialStyle[S]+"} ":""}),P},rr=s=>{s.tp$OutputStyle="";let C=2,P="",S="",I="",G="",te={},se={},ue={};s.tp$Style&&s.tp$Style.mapping&&(!s.tp$CustomTags&&(s.tp$CustomTags=JSON.parse(JSON.stringify(Oe.customTags))),Ke(s.tp$Style.mapping).forEach(Ne=>{let Se=s.tp$Style.mapping[Ne];Se.styleCustomTags==="tabs"&&(te[Se.styleTemplate]||(P=s.tp$CustomTags[Se.styleCustomTags][Se.stylePath][Se.styleTemplate],te[Se.styleTemplate]=!0),C<Se.quantity&&(C=Se.quantity)),Se.styleCustomTags==="collapse"&&(se[Se.styleTemplate]||(I+=s.tp$CustomTags[Se.styleCustomTags][Se.stylePath][Se.styleTemplate],se[Se.styleTemplate]=!0),G+=Se.specialStyle?tr(Se,{"tp-collapse_main":'.tp-collapse > input[id="'+Ne+'"]:checked + .tp-collapse_label + .tp-collapse_main'}):""),Se.styleCustomTags==="buttons"&&!ue[Se.styleTemplate]&&(S+=qe(s.tp$CustomTags[Se.styleCustomTags][Se.stylePath][Se.styleTemplate],Se.styleTemplate),ue[Se.styleTemplate]=!0)}));let be="",Ae="";P&&(P=P.replace(/.tp-tabs\s*{/g,"div.tp-tabs[data-id] {").replace(/\n.tp-tabs\s/g,`
.tp-tabs[data-id] `)+`.tp-tabs[data-id] > input { display: none;} 
 .tp-tabs .tp-tabs_main .tp-tab_main { overflow: hidden;max-height: 0px;}`,be=P.match(/.tp-tabs_label.checked\s*{\n([\s\S]+)\n}/)[1],Ae=be?er("tabs",be,C):""),s.tp$OutputStyle=(S?`@font-face {
  font-family: "iconfont"; /* Project id 2627438 */
  src: url('//at.alicdn.com/t/font_2627438_tl87y8epxj.woff2?t=1630480852428') format('woff2'),
       url('//at.alicdn.com/t/font_2627438_tl87y8epxj.woff?t=1630480852428') format('woff'),
       url('//at.alicdn.com/t/font_2627438_tl87y8epxj.ttf?t=1630480852428') format('truetype');
}`:"")+S+I+G+P+Ae};const rt={iframeLayout:`
   <style>
   .iframeLayout .iframeLayout_margin {
      border: 1px dashed #333;
      background: #F9CC9D;
      position: relative;
      margin: 0;
      padding: 0;
      font-size: 0;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_border {
      margin: 39px;
      background: #FDDD9B;
      border: 1px solid #333;
      position: relative;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_border .iframeLayout_padding {
      margin: 39px;
      background: #c3d08b;
      border: 1px dashed #333;
      position: relative;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_border .iframeLayout_padding .iframeLayout_size{
      min-height: 40px;
      position: relative;
      text-align: center;
      line-height: 40px;
      margin: 39px;
      border: 1px solid #333;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_border .iframeLayout_padding .iframeLayout_size span {
      font-size: 20px;
      color: #666;
      display: inline-block;
      vertical-align: middle;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_border .iframeLayout_padding .iframeLayout_size input {
      position: relative;
      display: inline-block;
      vertical-align: middle;
    }
    .iframeLayout .iframeLayout_margin label {
      font-size: 20px;
      color: #000;
      position: absolute;
      top: 2px;
      left: 2px;
    }
    .iframeLayout .iframeLayout_margin input {
      position: absolute;
      width: 31px;
      height: 31px;
      display: block;
      margin: 0 auto;
      text-align: center;
      line-height: 31px;
      font-size: 12px;
      border: 1px solid #ccc;
      background: #fff;
      border-radius: 3px;
      overflow: hidden;
      padding: 1px;
    }
    .iframeLayout .iframeLayout_margin input:focus {
      outline: none;
      border-color: #1f81c3;
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_top {
      top: 2px;
      left: 50%;
      transform: translateX(-50%);
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_right {
      top: 50%;
      right: 2px;
      transform: translateY(-50%);
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_bottom {
      bottom: 2px;
      left: 50%;
      transform: translateX(-50%);
    }
    .iframeLayout .iframeLayout_margin .iframeLayout_left {
      top: 50%;
      left: 2px;
      transform: translateY(-50%);
    }
   
   </style>
  <div class="iframeLayout">
  <div class="iframeLayout_margin">
       <label for=""> margin </label>
          <input type="text" class="margin iframeLayout_top" placeholder="-" id="ifrLayoutMagrginTop" >
          <input type="text" class="margin iframeLayout_right" placeholder="-" id="ifrLayoutMagrginRight" >
          <input type="text" class="margin iframeLayout_bottom" placeholder="-" id="ifrLayoutMagrginBottom" >
          <input type="text" class="margin iframeLayout_left" placeholder="-" id="ifrLayoutMagrginLeft" >
       <div class="iframeLayout_border">
         <label for=""> border </label>
          <input type="text" class="border iframeLayout_top" placeholder="-" id="ifrLayoutBorderTop" >
          <input type="text" class="border iframeLayout_right" placeholder="-" id="ifrLayoutBorderRight" >
          <input type="text" class="border iframeLayout_bottom" placeholder="-" id="ifrLayoutBorderBottom" >
          <input type="text" class="border iframeLayout_left" placeholder="-" id="ifrLayoutBorderLeft" >
     
         <div class="iframeLayout_padding">
           <label for=""> padding </label>
              <input type="text" class="padding iframeLayout_top" placeholder="-" id="ifrLayoutPaddingTop" >
              <input type="text" class="padding iframeLayout_right" placeholder="-" id="ifrLayoutPaddingRight" >
              <input type="text" class="padding iframeLayout_bottom" placeholder="-" id="ifrLayoutPaddingBottom" >
              <input type="text" class="padding iframeLayout_left" placeholder="-" id="ifrLayoutPaddingLeft" >
              <div class="iframeLayout_size">
                  <input type="text" class="size"  id="ifrLayoutWidth" >
                  <span>X</span>
                  <input type="text" class="size"  id="ifrLayoutHeight" >
              </div>
         </div>
      </div>
  </div>
</div>
  <script>
   console.log(this)
  
  <\/script>
  
  `},nr=s=>rt[s];re.Editor.prototype.tp$={Components:Pt,Node:{getDimension:dt},I18n:{add:re.i18n.add},Tools:{getFormatStyle:Xe,autoToPX:Wt,getCurrentValue:Vt,namingFormat:{toHump:Qe,toLine:at,toHyphen:Ct},selection:{cell:function(s){let C=s,P=s,S=function(){return C};var I=function(){return P};return{get:S,set:function(te,se){C=te,se&&(P=se)},getAction:I}}}},PanelComponents:{getComponents:nr}};let Lt={default:{icons:{"tp-tab-add":'<svg t="1629385862141" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7236" width="24" height="24"><path d="M714.27370623 141.21142578h67.41385716c27.91277775 0 51.74690871 9.88762917 71.49250467 29.66288824C872.91577659 190.6396849 882.78363013 214.42932121 882.78363013 242.33221152V309.79550667c0 9.2696528-3.26291773 17.20447542-9.88762917 23.78963631-6.56044191 6.59010498-14.51504016 9.88762917-23.81435532 9.88762989-9.29931517 0-17.27368832-3.29752417-23.83413096-9.88762989-6.60493653-6.59010498-9.89751734-14.51998353-9.89751661-23.78963631V242.3371556c0-9.26470871-3.26291773-17.19458725-9.88762918-23.78469295-6.56538599-6.59010498-14.51504016-9.88762917-23.83907504-9.88762918H714.19954925c-9.29931517 0-17.24402596-3.29752417-23.82424278-9.88762915s-9.87774172-14.51998353-9.87774171-23.88851305c0-9.2696528 3.29752417-17.20447542 9.87774171-23.78963633 6.58021754-6.59010498 14.52492761-9.88762917 23.82918686-9.88762916h0.0692129zM444.60344607 141.21142578h134.80793941c9.31414671 0 17.23413778 3.29752417 23.8687374 9.98650588 6.55055444 6.49122901 9.87774172 14.52492761 9.87774171 23.78963633 0 9.2696528-3.32718727 17.20447542-9.87774171 23.78963632-6.63459962 6.59010498-14.55459069 9.88762917-23.8687374 9.88762916H444.60344607c-9.29931517 0-17.24402596-3.29752417-23.82424277-9.88762916-6.61482398-6.59010498-9.89751734-14.51998353-9.89751734-23.78963632 0-9.26470871 3.28269263-17.30335141 9.89751734-23.78469297C427.35942084 144.50894996 435.30413091 141.21142578 444.60344607 141.21142578z m404.47819957 269.60599063c9.29931517 0 17.25391343 3.39640089 23.81435532 9.88762917 6.62471144 6.59010498 9.88762917 14.51998353 9.88762917 23.88851303v134.80793942c0 9.26470871-3.26291773 17.19458725-9.88762917 23.78469223-6.56044191 6.59504907-14.51504016 9.88762917-23.81435532 9.88762916-9.29931517 0-17.27368832-3.29258081-23.83413096-9.88762916-6.60493653-6.59010498-9.89751734-14.51998353-9.89751661-23.78469223V444.59355861c0-9.36852878 3.29258081-17.29840732 9.89751661-23.88851303 6.56044191-6.49122901 14.53481506-9.88762917 23.82918687-9.88762918z m0 269.60599063c9.29931517 0 17.25391343 3.29752417 23.81435532 9.88762989 6.62471144 6.59010498 9.88762917 14.51998353 9.88762917 23.8934564v67.34958763c0 27.90783367-9.86785426 51.79634669-29.60356207 71.57160502-19.74559598 19.6664949-43.5797262 29.55412407-71.49250466 29.55412407h-67.41385717c-9.32403415 0-17.25391343-3.29258081-23.85390586-9.88762916-6.56538599-6.59010498-9.86785426-14.51998353-9.86785426-23.78469223 0-9.37347288 3.30246827-17.30335141 9.86785426-23.89345641 6.59999243-6.59010498 14.53481506-9.88762917 23.85390586-9.8876299h67.41385717c9.29931517 0 17.25391343-3.29258081 23.80446786-9.88762916 6.63459962-6.59010498 9.89751734-14.51998353 9.89751734-23.78469223V714.10067325c0-9.2696528 3.30741236-17.19953134 9.89751663-23.78963632 6.59504907-6.59010498 14.53481506-9.88762917 23.8440184-9.88762989h-0.04943799zM242.37670615 141.21142578H309.79550667c9.30920334 0 17.21930624 3.29752417 23.82918686 9.98650588 6.58516089 6.49122901 9.8826858 14.52492761 9.8826858 23.78963633 0 9.2696528-3.29752417 17.20447542-9.87774172 23.78963632-6.61482398 6.59010498-14.52492761 9.88762917-23.83413094 9.88762916H242.38164951c-9.31414671 0-17.27368832 3.29752417-23.83413023 9.88762918-6.61482398 6.59010498-9.90246071 14.51998353-9.9024607 23.88851303V309.79550667c0 9.37347288-3.28269263 17.20447542-9.89751736 23.8934564-6.56044191 6.48628492-14.52492761 9.88762917-23.82424277 9.88762989-9.30920334 0-17.25391343-3.40134426-23.8242435-9.88762989-6.6098799-6.69392507-9.88762917-14.51998353-9.88762917-23.8934564V242.44097568C141.21142578 214.42932121 151.07928004 190.64957307 170.83476348 170.97319c19.74559598-19.77525907 43.56983876-29.66288824 71.48756058-29.66288823l0.05932545-0.09887599z m202.22673992 674.01497657h134.80793941c9.31414671 0 17.23413778 3.29752417 23.86873739 9.8876299 6.55055444 6.59010498 9.87774172 14.51998353 9.87774172 23.89345641 0 9.26470871-3.32718727 17.19458725-9.87774172 23.78469223-6.63459962 6.59504907-14.55459069 9.88762917-23.86873739 9.88762916H444.60344607c-9.29931517 0-17.24402596-3.29258081-23.82424277-9.88762916-6.61482398-6.59010498-9.89751734-14.51998353-9.89751734-23.78469223 0-9.37347288 3.28269263-17.30335141 9.89751734-23.89345641 6.58021754-6.59010498 14.52492761-9.88762917 23.82424277-9.8876299z m-269.61587808-404.40404185c9.29931517 0 17.23908188 3.3914568 23.79952377 9.88268508 6.63459962 6.59010498 9.90246071 14.51998353 9.90246072 23.88851304v134.8079394c0 9.26470871-3.26291773 17.19458725-9.90246072 23.78469224-6.56044191 6.59504907-14.50020861 9.88762917-23.79952377 9.88762916-9.31414671 0-17.27368832-3.29258081-23.83413096-9.88762916C144.53861305 596.59608526 141.25097633 588.66620673 141.25097633 579.40149802V444.59355861c0-9.36852878 3.28763673-17.29840732 9.9024607-23.88851303 6.56044191-6.49122901 14.51998353-9.88762917 23.82918686-9.88762918z m0 269.60104654c9.29931517 0 17.23908188 3.29752417 23.79952377 9.88762989 6.63459962 6.59010498 9.90246071 14.51998353 9.90246072 23.8934564v67.34958763c0 9.36852878 3.29258081 17.30335141 9.89751734 23.88851231 6.59010498 6.59010498 14.53481506 9.88762917 23.83413024 9.88762917h67.41385715c9.31414671 0 17.25391343 3.29752417 23.85390586 9.88762989 6.56538599 6.59010498 9.87774172 14.51998353 9.87774243 23.78963633 0 9.36852878-3.31235572 17.19458725-9.87774243 23.8885123-6.59999243 6.49122901-14.53975915 9.88762917-23.85390587 9.88762917H242.42120006c-27.91277775 0-51.72713307-9.88762917-71.49250396-29.66288823-19.75548343-19.77031497-29.63322515-43.55500721-29.63322515-71.46284086V714.19954925c0-9.2696528 3.28269263-17.20447542 9.89751662-23.78963633 6.59010498-6.59010498 14.53481506-9.88762917 23.83413095-9.88762916l-0.03955053-0.09887672z m337.02973524-336.95557825c9.31414671 0 17.23413778 3.29752417 23.8687374 9.88762917 6.55055444 6.59010498 9.86291017 14.51998353 9.86291017 23.78963632v101.12572983h101.13067391c9.29931517 0 17.22919442 3.29752417 23.82918687 9.88762917 6.56538599 6.59010498 9.87279762 14.51998353 9.87279762 23.78963632 0 9.36852878-3.30741236 17.30335141-9.86785427 23.88851304-6.60493653 6.59010498-14.53481506 9.88762917-23.83413022 9.88762916H545.7489508v101.12572983c0 9.2696528-3.31235572 17.20447542-9.86291017 23.78963632-6.63459962 6.59010498-14.55459069 9.88762917-23.8687374 9.88762917-9.29931517 0-17.22919442-3.29752417-23.82424278-9.88762917-6.59010498-6.59010498-9.87774172-14.51998353-9.87774171-23.78963632V545.72423181H377.18958892c-9.30425926 0-17.22425033-3.29752417-23.85390588-9.88762918-6.56538599-6.59010498-9.87774172-14.51998353-9.87774171-23.88851303 0-9.2696528 3.31235572-17.20447542 9.87774171-23.78963632 6.62965553-6.59010498 14.5496466-9.88762917 23.85390588-9.88762917h101.12572982V377.14509429c0-9.2696528 3.28763673-17.20447542 9.8777417-23.78963633 6.59504907-6.59010498 14.52492761-9.88762917 23.82918688-9.88762918z" p-id="7237"></path></svg>',"tp-tab-delete":'<svg t="1629436983964" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17120" width="20" height="20"><path d="M950.857143 0H73.142857C31.695238 0 0 31.695238 0 73.142857v877.714286c0 41.447619 31.695238 73.142857 73.142857 73.142857h877.714286c41.447619 0 73.142857-31.695238 73.142857-73.142857V73.142857c0-41.447619-31.695238-73.142857-73.142857-73.142857z m-24.380953 926.47619H97.52381V97.52381h828.95238v828.95238z"  p-id="17121"></path><path d="M316.952381 560.761905h390.095238c26.819048 0 48.761905-21.942857 48.761905-48.761905s-21.942857-48.761905-48.761905-48.761905H316.952381c-26.819048 0-48.761905 21.942857-48.761905 48.761905s21.942857 48.761905 48.761905 48.761905z" p-id="17122"></path></svg>',tpButtons:'<svg t="1630068696978" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21708" width="28" height="28"><path d="M800 256h-64a32 32 0 0 0-31.84-32H159.84C142.4 224 128 238.432 128 256.224v415.552A32 32 0 0 0 159.84 704H160v64H128c-35.328 0-64-28.48-64-63.904V223.904C64 188.608 92.864 160 128 160h608c35.328 0 64 28.48 64 63.904V256zM192 351.84A64 64 0 0 1 256.16 288h639.68A64 64 0 0 1 960 351.84v448.32A64 64 0 0 1 895.84 864H256.16A64 64 0 0 1 192 800.16v-448.32z m64 32.384v383.552A31.968 31.968 0 0 0 287.744 800h576.512c17.184 0 31.744-14.4 31.744-32.224V384.224A31.968 31.968 0 0 0 864.256 352H287.744C270.56 352 256 366.4 256 384.224z" p-id="21709"></path><path  transform="scale(0.45) translate(280, 780)" d="M393.944329 226.04293h185.769284c115.432212 0 203.353552 33.325024 203.353552 137.979782 0 51.618335-28.361723 104.796566-76.576651 121.388173v3.828832c60.694087 14.180861 105.3638 56.723446 105.3638 132.732863 0 113.446891-94.019111 165.348844-217.676222 165.348844H393.944329zM571.488713 453.787564c70.904307 0 102.385819-28.361723 102.38582-73.59867 0-49.349398-33.466833-69.060795-100.967733-69.060795h-66.650049V453.787564z m12.904584 246.463371c76.576651 0 118.268384-27.227254 118.268384-85.085168 0-54.596316-40.982689-77.427503-118.268384-77.427504H506.256751v163.079906zM908.284171 638.138762V450.525966h-59.985043v-82.674422l65.231962-5.246919 12.904584-113.446891h93.310068v113.446891h104.796565v87.921341h-104.796565V638.138762c0 48.498546 19.711397 70.904307 57.716105 70.904307a124.366154 124.366154 0 0 0 41.691733-9.21756l18.151502 81.256336a276.101371 276.101371 0 0 1-89.481235 15.882564c-100.825924 0.99266-139.539676-62.679407-139.539676-158.825647zM1210.903753 362.604625h91.04113l7.657665 56.014403h2.977981c37.153857-36.303005 80.405484-66.650048 138.12159-66.650049 91.750173 0 131.172968 63.672068 131.172968 170.170337v265.182108h-111.461571v-251.001247c0-65.231962-18.151503-88.772192-59.985043-88.772192-34.884919 0-56.723446 16.591608-88.772193 47.789503v291.983936h-110.752527z"></path></svg>',tpIconlists:'<svg t="1630921705647" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8438" width="20" height="20"><path d="M944.384 591.36 375.36 591.36c-43.968 0-79.68-35.584-79.68-79.424 0-43.84 35.648-79.424 79.68-79.424l569.088 0C988.416 432.512 1024.064 468.096 1024.064 511.936 1024.064 555.776 988.416 591.36 944.384 591.36L944.384 591.36zM944.384 273.664 375.36 273.664c-43.968 0-79.68-35.584-79.68-79.424 0-43.84 35.648-79.424 79.68-79.424l569.088 0C988.416 114.816 1024.064 150.336 1024.064 194.24 1024.064 238.08 988.416 273.664 944.384 273.664L944.384 273.664zM166.464 861.376l12.032 60.416c0.064 0.576 0.128 1.344 0.128 2.432 0 1.728-0.384 3.136-1.28 4.288-0.896 1.152-2.176 1.792-3.968 1.792-1.664 0-3.392-0.448-5.248-1.408l-58.752-27.904-57.984 29.248c-1.92 0.96-3.648 1.472-5.184 1.536-1.856 0-3.2-0.576-4.096-1.728-0.96-1.152-1.408-2.624-1.408-4.288 0-0.512 0.064-1.28 0.256-2.432l10.368-60.672-47.936-42.304C1.216 818.24 0.064 816.384 0.064 814.656c-0.064-2.944 2.368-4.864 7.232-5.632l65.088-9.6 28.48-55.424c1.6-3.328 3.712-4.992 6.272-5.056 2.624-0.064 4.736 1.6 6.464 4.864l30.016 54.72 65.344 8.064c4.864 0.704 7.296 2.496 7.36 5.504l0 0c0 1.792-1.088 3.712-3.328 5.824L166.464 861.376 166.464 861.376zM166.464 532.352l12.032 60.416C178.56 593.28 178.624 594.112 178.624 595.2c0 1.728-0.384 3.136-1.28 4.288C176.448 600.64 175.104 601.28 173.376 601.28c-1.664 0-3.392-0.448-5.248-1.408L109.44 572.032 51.456 601.28C49.6 602.24 47.872 602.752 46.272 602.752c-1.856 0-3.2-0.512-4.096-1.728-0.96-1.152-1.408-2.56-1.408-4.288 0-0.448 0.064-1.28 0.256-2.432l10.368-60.672L3.392 491.392C1.216 489.216 0.064 487.296 0.064 485.632c-0.064-3.008 2.368-4.864 7.232-5.632l65.088-9.6 28.48-55.424C102.464 411.584 104.576 409.92 107.136 409.856c2.624-0.064 4.736 1.6 6.464 4.864l30.016 54.72 65.344 8.064c4.864 0.64 7.296 2.496 7.36 5.504l0 0c0 1.792-1.088 3.712-3.328 5.824L166.464 532.352 166.464 532.352zM166.464 214.656l12.032 60.416C178.56 275.584 178.624 276.416 178.624 277.44c0 1.664-0.384 3.136-1.28 4.288C176.448 282.944 175.104 283.584 173.376 283.584c-1.664 0-3.392-0.448-5.248-1.408L109.44 254.336 51.456 283.584c-1.92 0.96-3.648 1.472-5.184 1.536-1.856 0-3.2-0.576-4.096-1.728-0.96-1.152-1.408-2.56-1.408-4.288 0-0.512 0.064-1.28 0.256-2.432l10.368-60.672L3.392 173.696C1.216 171.52 0.064 169.6 0.064 167.872c-0.064-3.008 2.368-4.864 7.232-5.632l65.088-9.6 28.48-55.424C102.464 93.888 104.576 92.224 107.136 92.16c2.624 0 4.736 1.6 6.464 4.864l30.016 54.72 65.344 8.064c4.864 0.64 7.296 2.496 7.36 5.504l0 0c0 1.792-1.088 3.712-3.328 5.824L166.464 214.656 166.464 214.656zM375.36 761.536l569.088 0c43.968 0 79.68 35.584 79.68 79.424 0 43.84-35.648 79.424-79.68 79.424L375.36 920.384c-43.968 0-79.68-35.584-79.68-79.424C295.68 797.12 331.328 761.536 375.36 761.536L375.36 761.536zM375.36 761.536" p-id="8439"></path></svg>',"list-bull-tp-iconlists_tick":'<div style="width: 45px"><p style="height: 20px"><img style="width: 20px; height: 20px; display:inline-block; vertical-align: middle" src="/tinymce/icons/tp/tp-tick.png"/> <span style="display: inline-block;vertical-align: middle; width: 20px;background-color: #B9BCC1; height:5px" ></span><p  style="height: 20px" ><img style="width: 20px; height: 20px; display:inline-block; vertical-align: middle" src="/tinymce/icons/tp/tp-tick.png"/> <span style="display: inline-block;vertical-align: middle; width: 20px;background-color: #B9BCC1; height:5px" ></span></p></div>',tpParagraph:'<svg t="1631187903361" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1637" width="24" height="24"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" p-id="1638"></path><path d="M597.504 300.544h230.912v49.152h-230.912zM596.992 437.76h230.912v49.152h-230.912zM210.432 574.976h617.984v49.152H210.432zM210.432 712.192h617.984v49.152H210.432zM246.784 296.448h88.064V501.76h-29.184v29.184h117.248V501.76h-29.696V296.448H481.28v29.184h29.184V238.08H217.6v87.552h29.184z" p-id="1639"></path></svg>',tpColumns:'<svg t="1631064221790" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26578" width="20" height="20"><path d="M416 64H128c-35.2 0-64 28.8-64 64v768c0 35.2 28.8 64 64 64h288c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z m0 800c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V160c0-19.2 12.8-32 32-32h224c19.2 0 32 12.8 32 32v704zM896 64H608c-35.2 0-64 28.8-64 64v768c0 35.2 28.8 64 64 64h288c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z m0 800c0 19.2-12.8 32-32 32H640c-19.2 0-32-12.8-32-32V160c0-19.2 12.8-32 32-32h224c19.2 0 32 12.8 32 32v704z"></path></svg>',tpLetterspacing:'<svg t="1610616201691" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="969" width="24" height="24"><path d="M682.666667 704l128 106.666667-128 106.666666v-85.333333H341.333333v85.333333L213.333333 810.666667l128-106.666667v85.333333h341.333334v-85.333333zM170.666667 170.666667v682.666666H85.333333V170.666667h85.333334z m768 0v682.666666h-85.333334V170.666667h85.333334z m-394.666667 0l202.666667 469.333333h-89.6l-38.4-93.866667h-213.333334L366.933333 640H277.333333l202.666667-469.333333h64zM512 255.146667L432.213333 469.333333h159.573334L512 255.146667z" p-id="970" fill="#222f3e"></path></svg>',tpIndent2em:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M170.666667 563.2v-102.4H887.466667v102.4zM170.666667 836.266667v-102.4H887.466667v102.4zM512 290.133333v-102.4H887.466667v102.4zM238.933333 341.333333V136.533333l204.8 102.4z"  p-id="5210"></path></svg>',tpIconfont:'<svg t="1631797032825" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16487" width="30" height="30"><path d="M805.096727 186.810182H218.903273c-17.687273 0-32.116364 14.405818-32.116364 32.116363v586.170182c0 17.687273 14.429091 32.116364 32.116364 32.116364h586.193454c17.687273 0 32.116364-14.429091 32.116364-32.116364V218.903273c0-17.687273-14.429091-32.116364-32.116364-32.116364z m0-46.545455a78.685091 78.685091 0 0 1 78.661818 78.661818v586.170182a78.685091 78.685091 0 0 1-78.661818 78.661818H218.903273a78.685091 78.685091 0 0 1-78.661818-78.661818V218.903273a78.685091 78.685091 0 0 1 78.661818-78.661818h586.193454z"  p-id="16488"></path><path d="M581.818182 465.454545h162.909091v-162.90909h-162.909091v162.90909z m-23.272727-186.181818h209.454545v209.454546h-209.454545v-209.454546zM372.363636 744.727273c51.386182 0 93.090909-41.751273 93.090909-93.090909 0-51.386182-41.751273-93.090909-93.090909-93.090909-51.386182 0-93.090909 41.751273-93.090909 93.090909 0 51.386182 41.751273 93.090909 93.090909 93.090909z m0 23.272727c-64.116364 0-116.363636-52.037818-116.363636-116.363636 0-64.116364 52.037818-116.363636 116.363636-116.363637 64.116364 0 116.363636 52.037818 116.363637 116.363637 0 64.116364-52.037818 116.363636-116.363637 116.363636zM736.907636 721.454545l-80.663272-139.636363-80.663273 139.636363h161.326545zM535.272727 744.727273l120.971637-209.454546 120.971636 209.454546H535.272727zM417.093818 393.774545l44.776727-43.52-61.812363-8.96L372.363636 285.253818l-27.694545 56.040727-61.905455 8.983273 44.683637 43.52-10.519273 61.672727 55.226182-29.090909 55.458909 29.137455-10.519273-61.742546z m24.994909 8.145455l16.384 96.116364-86.318545-45.381819-86.109091 45.381819 16.407273-96.116364L232.727273 334.010182l96.488727-13.963637L372.363636 232.727273l43.147637 87.296 96.488727 13.963636-69.911273 67.956364z"  ></path></svg>',"tp-columns-default":'<svg t="1631071826197" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="27031" width="60" height="40"  style="transform: translateX(7px)"; ><path  d="M213.333333 341.333333H85.333333v384h128V341.333333m85.333334 0v384a85.333333 85.333333 0 0 1-85.333334 85.333334H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333334 85.333333z"  p-id="27032"></path><path d="M576 341.333333h-128v384h128V341.333333m85.333333 0v384a85.333333 85.333333 0 0 1-85.333333 85.333334h-128a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333333 85.333333z"  p-id="27033"></path></svg>',"tp-columns-columns-2":'<svg t="1631071826197" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="27031" width="60" height="40"  style="transform: translateX(7px)"; ><path  d="M213.333333 341.333333H85.333333v384h128V341.333333m85.333334 0v384a85.333333 85.333333 0 0 1-85.333334 85.333334H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333334 85.333333z"  p-id="27032"></path><path d="M576 341.333333h-128v384h128V341.333333m85.333333 0v384a85.333333 85.333333 0 0 1-85.333333 85.333334h-128a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333333 85.333333z"  p-id="27033"></path></svg>',"tp-columns-columns-3":'<svg t="1631071826197" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="27031" width="40" height="40"><path d="M213.333333 341.333333H85.333333v384h128V341.333333m85.333334 0v384a85.333333 85.333333 0 0 1-85.333334 85.333334H85.333333a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333334 85.333333z"  p-id="27032"></path><path d="M576 341.333333h-128v384h128V341.333333m85.333333 0v384a85.333333 85.333333 0 0 1-85.333333 85.333334h-128a85.333333 85.333333 0 0 1-85.333333-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h128a85.333333 85.333333 0 0 1 85.333333 85.333333z"  p-id="27033"></path><path d="M938.666667 341.333333h-128v384h128V341.333333m85.333333 0v384a85.333333 85.333333 0 0 1-85.333333 85.333334h-128a85.333333 85.333333 0 0 1-85.333334-85.333334V341.333333a85.333333 85.333333 0 0 1 85.333334-85.333333h128a85.333333 85.333333 0 0 1 85.333333 85.333333z" p-id="27034"></path></svg>',tpLineHeight:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.984 12.984v-1.969h12v1.969h-12zM9.984 18.984v-1.969h12v1.969h-12zM9.984 5.016h12v1.969h-12v-1.969zM6 6.984v10.031h2.484l-3.469 3.469-3.516-3.469h2.484v-10.031h-2.484l3.516-3.469 3.469 3.469h-2.484z"></path></svg>'}}},ar={en:{"Spacing before paragraph":"Spacing before paragraph","Icon Library":"Icon Library","Write here":"Write here","Picture background fill":"Picture background fill","Templates Style":"Templates Style",Collapse:"Folding Panel","Style {0}":"Style {0}","Icon List":"Icon List",Buttons:"Buttons","Hanging Indent":"Hanging Indent","Spacing after paragraph":"Spacing after paragraph","Iconfont Size":"Iconfont Size","Line Height":"Line Height",Tabs:"Tabs","Select tmplate":"Select Tmplate",Padding:"Padding","Iconfont Color":"Iconfont Color","Letter spacing":"Letter spacing","border Radius":"Rounded Border","Panel head":"Panel head","Panel main":"Panel main","Indent mode":"Indent mode",Margin:"Margin","Horizontal columns":"Horizontal columns","First line indent":"First line indent"},es:{"Line Height":"Altura de la l\xEDnea","Indent mode":"Modo de sangr\xEDa","Write here":"Escriba aqui","Hanging Indent":"Sangr\xEDa","Spacing before paragraph":"Espacio antes del p\xE1rrafo",Margin:"Margen","Horizontal columns":"Columnas horizontales",Collapse:"panel plegable","border Radius":"borde redondeado","Panel main":"Panel principal","Picture background fill":"Relleno de fondo de la imagen","Select tmplate":"Seleccione TMPLATE","Panel head":"Cabezal","First line indent":"Incidente de primera linea","Icon List":"Lista de iconos",Tabs:"Pesta\xF1as","Style {0}":"Estilo {0}","Templates Style":"Estilo de plantillas","Iconfont Size":"Tama\xF1o de \xEDcono",Padding:"Relleno","Icon Library":"Biblioteca de iconos","Letter spacing":"Espaciado de letras","Spacing after paragraph":"Espacio despu\xE9s del p\xE1rrafo",Buttons:"Botones","Iconfont Color":"Color de icono"},fr:{"Hanging Indent":"Retrait","Spacing after paragraph":"Espacement apr\xE8s paragraphe","Style {0}":"Style {0}",Margin:"Marge","First line indent":"Retrait de premi\xE8re ligne",Padding:"Rembourrage","Templates Style":"Style de mod\xE8les","Icon Library":"Biblioth\xE8que d'ic\xF4nes","border Radius":"fronti\xE8re arrondie","Line Height":"Hauteur de la ligne","Write here":"Ecrire ici","Icon List":"Liste d'ic\xF4nes","Picture background fill":"Boullage de l'arri\xE8re-plan de l'image","Letter spacing":"L'espacement des lettres","Spacing before paragraph":"Espacement avant le paragraphe",Collapse:"panneau de pliage","Panel head":"T\xEAte de panneau",Tabs:"Onglets","Panel main":"Panneau principal",Buttons:"Boutons","Horizontal columns":"Colonnes horizontales","Select tmplate":"S\xE9lectionnez TMPlate","Indent mode":"Mode de retrait","Iconfont Size":"Taille de l'ic\xF4ne","Iconfont Color":"Couleur ic\xF4ne"},de:{"Picture background fill":"Bildhintergrund","First line indent":"Erster Zeileneinzug","Hanging Indent":"H\xE4ngender Einzug","Icon Library":"Icon Library",Buttons:"Tasten","Panel head":"Panelkopf","Templates Style":"Vorlagen Stil","Indent mode":"Einzugsmodus",Padding:"Polsterung","Spacing before paragraph":"Abstand vor Absatz","Select tmplate":"W\xE4hlen Sie TMplate",Margin:"Rand",Tabs:"Registerkarten","Icon List":"Symbolliste","Style {0}":"Stil {0}","Spacing after paragraph":"Abstand nach Absatz","Write here":"Hier schreiben","border Radius":"abgerundete Grenze","Letter spacing":"Buchstaben-Abstand","Line Height":"Zeilenh\xF6he","Horizontal columns":"Horizontale Spalten","Panel main":"Panel Main",Collapse:"Klappfeld","Iconfont Size":"Symbolgr\xF6\xDFe","Iconfont Color":"Symbolfarbe"},zh_CN:{Collapse:"\u6298\u53E0\u9762\u677F","Write here":"\u5728\u8FD9\u91CC\u5199\u5165\u5185\u5BB9",Tabs:"\u6807\u7B7E\u9762\u677F","Panel head":"\u677F\u5934","Panel main":"\u677F\u4F53",Padding:"\u5185\u8FB9\u8DDD",Margin:"\u5916\u8FB9\u8DDD","border Radius":"\u8FB9\u6846\u5706\u89D2","Templates Style":"\u6A21\u677F\u6837\u5F0F",Buttons:"\u6309\u94AE\u7EC4\u4EF6","Icon List":"\u56FE\u6807\u5217\u8868","Icon Library":"\u56FE\u6807\u5E93","Horizontal columns":"\u6C34\u5E73\u5206\u5217","Style {0}":"\u6837\u5F0F {0}","Select tmplate":"\u9009\u62E9\u6A21\u677F\u6837\u5F0F","Letter spacing":"\u5B57\u6BCD\u95F4\u8DDD","Picture background fill":"\u56FE\u7247\u80CC\u666F\u586B\u5145","Spacing before paragraph":"\u6BB5\u524D\u8DDD","Spacing after paragraph":"\u6BB5\u540E\u8DDD","First line indent":"\u9996\u884C\u7F29\u8FDB","Hanging Indent":"\u60AC\u6302\u7F29\u8FDB","Indent mode":"\u60AC\u6302\u65B9\u5F0F","Iconfont Size":"\u56FE\u6807\u5927\u5C0F","Iconfont Color":"\u56FE\u6807\u989C\u8272","Line Height":"\u884C\u9AD8"},ja:{"Line Height":"\u884C\u306E\u9AD8\u3055",Collapse:"\u6298\u308A\u305F\u305F\u307F\u30D1\u30CD\u30EB","Panel head":"\u30D1\u30CD\u30EB\u30D8\u30C3\u30C9","Picture background fill":"\u753B\u50CF\u306E\u80CC\u666F\u5857\u308A\u3064\u3076\u3057","First line indent":"\u30D5\u30A1\u30FC\u30B9\u30C8\u30E9\u30A4\u30F3\u30A4\u30F3\u30C7\u30F3\u30C8","Spacing after paragraph":"\u6BB5\u843D\u5F8C\u306E\u9593\u9694",Padding:"\u30D1\u30C7\u30A3\u30F3\u30B0","Letter spacing":"\u6587\u5B57\u9593\u9694","border Radius":"\u4E38\u3044\u5883\u754C","Hanging Indent":"\u30CF\u30F3\u30AE\u30F3\u30B0\u30A4\u30F3\u30C7\u30F3\u30C8",Tabs:"\u30BF\u30D6","Iconfont Size":"\u30A2\u30A4\u30B3\u30F3\u30B5\u30A4\u30BA","Spacing before paragraph":"\u6BB5\u843D\u306E\u524D\u306E\u9593\u9694","Templates Style":"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30B9\u30BF\u30A4\u30EB","Style {0}":"\u30B9\u30BF\u30A4\u30EB{0}","Horizontal columns":"\u6C34\u5E73\u5217",Margin:"\u30DE\u30FC\u30B8\u30F3","Select tmplate":"tmplate\u3092\u9078\u629E\u3057\u307E\u3059","Panel main":"\u30D1\u30CD\u30EB\u30E1\u30A4\u30F3","Icon Library":"\u30A2\u30A4\u30B3\u30F3\u30E9\u30A4\u30D6\u30E9\u30EA","Write here":"\u3053\u3053\u306B\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",Buttons:"\u30DC\u30BF\u30F3","Icon List":"\u30A2\u30A4\u30B3\u30F3\u30EA\u30B9\u30C8","Indent mode":"\u30A4\u30F3\u30C7\u30F3\u30C8\u30E2\u30FC\u30C9","Iconfont Color":"\u30A2\u30A4\u30B3\u30F3\u306E\u8272"},ko:{Collapse:"\uC811\uB294 \uD328\uB110","Icon List":"\uC544\uC774\uCF58 \uBAA9\uB85D",Padding:"\uC2EC","Letter spacing":"\uBB38\uC790 \uAC04\uACA9","Templates Style":"\uD15C\uD50C\uB9BF \uC2A4\uD0C0\uC77C","Select tmplate":"tmplate\uB97C \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624","Spacing after paragraph":"\uB2E8\uB77D \uD6C4 \uAC04\uACA9",Tabs:"\uD0ED",Buttons:"\uBC84\uD2BC","Write here":"\uC5EC\uAE30 \uC4F0\uC2DC \uC624",Margin:"\uC5EC\uC720","Horizontal columns":"\uC218\uD3C9 \uC5F4","Panel main":"\uD328\uB110 \uBA54\uC778","Picture background fill":"\uC0AC\uC9C4 \uBC30\uACBD \uCC44\uC6B0\uAE30","Style {0}":"\uC2A4\uD0C0\uC77C {0}","Icon Library":"\uC544\uC774\uCF58 \uB77C\uC774\uBE0C\uB7EC\uB9AC","First line indent":"\uCCAB \uBC88\uC9F8 \uC904\uC758 \uB4E4\uC5EC \uC4F0\uAE30","Spacing before paragraph":"\uB2E8\uB77D \uC804\uC5D0 \uAC04\uACA9","Hanging Indent":"\uB0B4\uC5B4 \uC4F0\uAE30","border Radius":"\uB465\uADFC \uD14C\uB450\uB9AC","Iconfont Color":"\uC544\uC774\uCF58 \uC0C9\uC0C1","Panel head":"\uD328\uB110 \uD5E4\uB4DC","Line Height":"\uB77C\uC778 \uB192\uC774","Indent mode":"\uB4E4\uC5EC \uC4F0\uAE30 \uBAA8\uB4DC","Iconfont Size":"\uC544\uC774\uCF58 \uD06C\uAE30"},nl:{"Indent mode":"Inspringende modus","Panel head":"Paneelhoofd","Write here":"Schrijf hier","Panel main":"Paneelhoofd",Padding:"Vulling","Templates Style":"Sjablonenstijl","Spacing before paragraph":"Afstand v\xF3\xF3r paragraaf","Icon List":"Pictogramlijst","First line indent":"Eerste regel inspring",Tabs:"Tabbladen","Horizontal columns":"Horizontale kolommen",Collapse:"vouwpaneel","Spacing after paragraph":"Afstand na paragraaf","Hanging Indent":"Hangend inspring","Picture background fill":"Foto achtergrond vulling","border Radius":"afgeronde grens","Icon Library":"Icon bibliotheek","Iconfont Color":"Pictogramkleur",Buttons:"Toetsen","Letter spacing":"Letterafstand","Line Height":"Lijnhoogte","Style {0}":"Stijl {0}",Margin:"Marge","Select tmplate":"Selecteer TMPLATE","Iconfont Size":"Pictogramformaat"},hu:{"Templates Style":"Sablonok st\xEDlusa",Padding:"P\xE1rn\xE1z\xE1s","Select tmplate":"V\xE1lassza a Tmplate lehet\u0151s\xE9get","Write here":"\xCDrj ide","Horizontal columns":"V\xEDzszintes oszlopok","Spacing before paragraph":"T\xE1vols\xE1g a bekezd\xE9s el\u0151tt","First line indent":"Els\u0151 sor beh\xFAz\xE1s",Margin:"\xC1rr\xE9s","Spacing after paragraph":"T\xE1vols\xE1g a bekezd\xE9s ut\xE1n","Panel main":"Panel","Indent mode":"Beh\xFAz\xE1si m\xF3d","Icon Library":"Ikonk\xF6nyvt\xE1r","Panel head":"Panelfej","Style {0}":"St\xEDlus {0}","Picture background fill":"K\xE9p h\xE1tt\xE9r t\xF6lt\xE9se","Hanging Indent":"F\xFCgg\u0151leges beh\xFAz\xE1s","Line Height":"Vonalmagass\xE1g","Iconfont Color":"Ikonsz\xEDn",Buttons:"Gombok",Collapse:"\xF6sszecsukhat\xF3 panel",Tabs:"Lapok","Icon List":"Ikonlista","Letter spacing":"Bet\u0171t\xE1vols\xE1gok","border Radius":"lekerek\xEDtett hat\xE1r","Iconfont Size":"Ikonm\xE9ret"},pt:{"Panel head":"Cabe\xE7a do painel",Collapse:"painel dobr\xE1vel",Tabs:"Guias","Picture background fill":"Foto preenchimento de fundo","Letter spacing":"Espa\xE7amento de carta","Write here":"Escreva aqui","Spacing after paragraph":"Espa\xE7amento ap\xF3s o par\xE1grafo",Buttons:"Bot\xF5es","Hanging Indent":"Pendurar recuo","Templates Style":"Estilo de modelos","Panel main":"Main do painel","Line Height":"Altura da linha","Indent mode":"Modo de recuo","Horizontal columns":"Colunas horizontais","Style {0}":"Estilo {0}","First line indent":"Recado de primeira linha","Icon Library":"Icon Library","Select tmplate":"Selecione tmplate","Icon List":"Lista de \xEDcones",Padding:"Preenchimento",Margin:"Margem","Spacing before paragraph":"Espa\xE7amento antes do par\xE1grafo","Iconfont Color":"Cor do \xEDcone","border Radius":"borda arredondada","Iconfont Size":"Tamanho do \xEDcone"},cs:{"Letter spacing":"Mezera dopisu","First line indent":"Prvn\xED \u0159\xE1dek","Picture background fill":"Napln\u011Bn\xED pozad\xED obr\xE1zku",Margin:"Okraj","Line Height":"V\xFD\u0161ka \u0159\xE1dku",Buttons:"Tla\u010D\xEDtka","Indent mode":"Re\u017Eim odsazen\xED",Padding:"Polstrov\xE1n\xED","Iconfont Size":"Velikost ikony","border Radius":"zaoblen\xE1 hranice","Horizontal columns":"Horizont\xE1ln\xED sloupce","Panel main":"Hlavn\xED panel",Tabs:"Karty","Hanging Indent":"Vis\xEDc\xED odsazen\xED","Templates Style":"Styl \u0161ablon","Select tmplate":"Vyberte TMplate","Spacing after paragraph":"Rozestupy po odstavci","Write here":"Pi\u0161te zde","Style {0}":"Style {0}",Collapse:"Skl\xE1dac\xED panel","Icon List":"Seznam ikon","Icon Library":"Knihovna ikon","Panel head":"Hlava panelu","Iconfont Color":"Barva ikon","Spacing before paragraph":"Mezery p\u0159ed odstavcem"},vi:{"Select tmplate":"Ch\u1ECDn TMPLATE",Collapse:"B\u1EA3ng g\u1EA5p","Spacing after paragraph":"Kho\u1EA3ng c\xE1ch sau \u0111o\u1EA1n v\u0103n","Panel main":"B\u1EA3ng ch\xEDnh","Templates Style":"Ki\u1EC3u m\u1EABu",Margin:"L\u1EC1","Write here":"Vi\u1EBFt \u1EDF \u0111\xE2y","Panel head":"\u0110\u1EA7u b\u1EA3ng","Spacing before paragraph":"Kho\u1EA3ng c\xE1ch tr\u01B0\u1EDBc \u0111o\u1EA1n v\u0103n","Iconfont Size":"K\xEDch c\u1EE1 bi\u1EC3u t\u01B0\u1EE3ng",Padding:"\u0110\u1EC7m","Line Height":"Chi\u1EC1u cao gi\u1EEFa c\xE1c d\xF2ng","Indent mode":"Ch\u1EBF \u0111\u1ED9 th\u1EE5t l\u1EC1","Horizontal columns":"C\u1ED9t ngang","border Radius":"Bi\xEAn gi\u1EDBi tr\xF2n","First line indent":"D\xF2ng \u0111\u1EA7u ti\xEAn th\u1EE5t l\u1EC1","Style {0}":"Ki\u1EC3u {0}","Hanging Indent":"Treo th\u1EE5t",Tabs:"Tab",Buttons:"n\xFAt","Icon Library":"Th\u01B0 vi\u1EC7n bi\u1EC3u t\u01B0\u1EE3ng","Icon List":"Danh s\xE1ch bi\u1EC3u t\u01B0\u1EE3ng","Letter spacing":"Kho\u1EA3ng c\xE1ch ch\u1EEF c\xE1i","Picture background fill":"H\xECnh \u1EA3nh n\u1EC1n l\u1EA5p \u0111\u1EA7y","Iconfont Color":"M\xE0u bi\u1EC3u t\u01B0\u1EE3ng"}};re.addI18n=function(s){return function(){He(arguments[1],ar[arguments[0]]),s.apply(this,arguments)}}(re.addI18n),re.IconManager.add=function(s){return function(){He(arguments[1].icons,Lt[arguments[0]]?Lt[arguments[0]].icons:{}),s.apply(this,arguments)}}(re.IconManager.add);function jt(s,C){var P,S;if(s.on("BeforeGetContent",G=>{G.source_view||rr(G.target)}),C&&C.tp_dark_light_mode&&(s.options.register("tp_dark_light_mode",{processor:"boolean",default:!1}),s.addCommand("tpDarkLightMode",function(G,te){C.skin=(te==null?void 0:te.skin)||"oxide",C.content_css=(te==null?void 0:te.content_css)||"default",s.editorManager.execCommand("mceRemoveEditor",!1,{id:s.id}),s.editorManager.execCommand("mceAddEditor",!1,{id:s.id,options:C})})),C&&(C.tp_i18n||C.tp_i18n_langs)){if(C.tp_i18n_langs){const G={zh:{code:"zh_CN",title:"Chinese",name:"\u4E2D\u6587"},en:{code:"en",title:"Chinese",name:"English"},es:{code:"es",title:"Spanish",name:"Espa\xF1ol"},fr:{code:"fr",title:"French",name:"Fran\xE7ais"},de:{code:"de",title:"German",name:"Deutsch"},ko:{code:"ko",title:"Korean",name:"\uD55C\uAD6D \uC0AC\uB78C"},ja:{code:"ja",title:"Japanese",name:"\u65E5\u672C\u8A9E"},nl:{code:"nl",title:"Dutch",name:"Nederlands"},hu:{code:"hu",title:"Hungarian",name:"Magyar"},pt:{code:"pt",title:"Portuguese",name:"Portugu\xEAs"},cs:{code:"cs",title:"Czech",name:"\u010Ce\u0161tina"},vi:{code:"vi",title:"Vietnamese",name:"Vi\u1EC7tName"}};let te=[{title:"English",code:"en"},{title:"Chinese",code:"zh_CN",items:{English:"\u82F1\u8BED",Spanish:"\u897F\u73ED\u7259\u8BED",French:"\u6CD5\u8BED",German:"\u5FB7\u8BED",Chinese:"\u4E2D\u6587",Japanese:"\u65E5\u6587",Korean:"\u97E9\u8BED",Dutch:"\u8377\u5170",Hungarian:"\u5308\u7259\u5229\u8BED",Portuguese:"\u8461\u8404\u7259\u8BED",Czech:"\u6377\u514B\u8BED",Uyghur:"\u7EF4\u543E\u5C14\u8BED",Vietnamese:"\u8D8A\u5357\u8BED"}},{title:"Spanish",code:"es",items:{English:"Ingl\xE9s",Spanish:"Espa\xF1ol",French:"Franc\xE9s",German:"Alem\xE1n",Chinese:"Chino",Japanese:"Japon\xE9s",Korean:"Coreano",Dutch:"Holand\xE9s",Hungarian:"H\xFAngaro",Portuguese:"Portugu\xE9s",Czech:"Checo",Uyghur:"Uigur",Vietnamese:"Vietnamita"}},{title:"French",code:"fr",items:{English:"Anglais",Spanish:"Espagnol",French:"Fran\xE7ais",German:"Allemagne",Chinese:"Chinois",Japanese:"Japonais",Korean:"Cor\xE9ens",Dutch:"N\xE9erlandais",Hungarian:"Hongrois",Portuguese:"Portugais",Czech:"Tch\xE8que",Uyghur:"Ou\xEFghour",Vietnamese:"Vietnamien"}},{title:"German",code:"de",items:{English:"Englisch",Spanish:"Spanisch",French:"Franz\xF6sisch",German:"Deutsch",Chinese:"Chinesisch",Japanese:"Japanisch",Korean:"Koreanisch",Dutch:"Niederl\xE4ndisch",Hungarian:"Ungarisch",Portuguese:"Portugiesisch",Czech:"Tschechisch",Uyghur:"Uigurisch",Vietnamese:"Vietnamesisch"}},{title:"Korean",code:"ko",items:{English:"\uC740\uB9AC\uC2DC",Spanish:"\uC2A4\uD398\uC778\uC758",French:"\uD504\uB791\uC2A4\uC5B4",German:"\uB3C5\uC77C\uC758",Chinese:"\uC911\uAD6D \uC0AC\uB78C",Japanese:"\uC77C\uBCF8 \uC0AC\uB78C",Korean:"\uD55C\uAD6D \uC0AC\uB78C",Dutch:"\uB124\uB35C\uB780\uB4DC\uC758",Hungarian:"\uD5DD\uAC00\uB9AC\uC5B4",Portuguese:"\uD3EC\uB974\uD22C\uAC08\uC5B4",Czech:"\uCCB4\uCF54\uC758",Uyghur:"\uC704\uAD6C\uB974\uC5B4",Vietnamese:"\uBCA0\uD2B8\uB0A8\uC5B4"}},{title:"Japanese",code:"ja",items:{English:"\u30A4\u30F3\u30B0\u30EA\u30C3\u30B7\u30E5",Spanish:"\u30B9\u30DA\u30A4\u30F3\u8A9E",French:"\u30D5\u30E9\u30F3\u30B9\u8A9E",German:"\u30C9\u30A4\u30C4\u8A9E",Chinese:"\u4E2D\u56FD\u8A9E",Japanese:"\u65E5\u672C\u8A9E",Korean:"\u97D3\u56FD\u8A9E",Dutch:"\u30AA\u30E9\u30F3\u30C0\u8A9E",Hungarian:"\u30CF\u30F3\u30AC\u30EA\u30FC\u8A9E",Portuguese:"\u30DD\u30EB\u30C8\u30AC\u30EB\u8A9E",Czech:"\u30C1\u30A7\u30B3\u8A9E",Uyghur:"\u30A6\u30A4\u30B0\u30EB",Vietnamese:"\u30D9\u30C8\u30CA\u30E0\u4EBA"}},{title:"Dutch",code:"nl",items:{English:"Engels",Spanish:"Spaans",French:"Frans",German:"Duits",Chinese:"Chinees",Japanese:"Japans",Korean:"Koreaans",Dutch:"Nederlands",Hungarian:"Hongaars",Portuguese:"Portugees",Czech:"Tsjechisch",Uyghur:"OeigoerName",Vietnamese:"Vietnamees"}},{title:"Hungarian",code:"hu",items:{English:"Angol",Spanish:"Spanyol",French:"Francia",German:"N\xE9met",Chinese:"K\xEDnai",Japanese:"Jap\xE1n",Korean:"Koreai",Dutch:"Hollandia",Hungarian:"Magyar",Portuguese:"Portug\xE1l",Czech:"Cseh",Uyghur:"Ujgur",Vietnamese:"Vietn\xE1mi"}},{title:"Portuguese",code:"pt",items:{English:"Ingl\xEAs",Spanish:"spanhol",French:"Franc\xEAs",German:"Alem\xE3o",Chinese:"Chin\xEAs",Japanese:"Japon\xEAs",Korean:"Coreano",Dutch:"Holand\xEAs",Hungarian:"H\xFAngaro",Portuguese:"Portugu\xEAs",Czech:"Checo",Uyghur:"Uygur",Vietnamese:"Vietnamita"}},{title:"Czech",code:"cs",items:{English:"angli\u010Dtina",Spanish:"\u0160pan\u011Bl\u0161tina",French:"Francouz\u0161tina",German:"N\u011Bm\u010Dina",Chinese:"\u010C\xEDn\u0161tina",Japanese:"Japon\u0161tina",Korean:"Korej\u0161tina",Dutch:"Nizozem\u0161tina",Hungarian:"Ma\u010Far\u0161tina",Portuguese:"Portugal\u0161tina",Czech:"\u010Ce\u0161tina",Uyghur:"Ujgursk\xE1",Vietnamese:"Vietnam\u0161tina"}},{title:"Vietnamese",code:"vi",items:{English:"Comment",Spanish:"T\xE2y Ban",French:"Ph\xE1p",German:"\u0110\u1EE9c",Chinese:"Hoa",Japanese:"Nh\u1EADt",Korean:"H\xE0n",Dutch:"H\xE0",Hungarian:"Hungary",Portuguese:"PortugueName",Czech:"S\xE9c",Uyghur:"ch\xE0o.",Vietnamese:"Vi\u1EC7tName"}}];var I=navigator.language||navigator.userLanguage;if(I=I.substr(0,2),G[I]){let be={};be[""+G[I].title]=G[I].name,s.editorManager.i18n.add("en",be)}let se=C.tp_i18n_url||(!((P=s.options.get("baseURL"))===null||P===void 0)&&P.replace(/\/$/,"")?(S=s.options.get("baseURL"))===null||S===void 0?void 0:S.replace(/\/$/,""):"")+"/langs/"||"";te.map(be=>{if(be.items&&s.editorManager.i18n.add(be.code,be.items),be.code!=="en"&&s.editorManager.ScriptLoader.add(be.url||(se==null?void 0:se.replace(/\/$/,""))+"/"+be.code+".js"),be.code&&G[I]){let Ae={};Ae[""+G[I].title]=G[I].name,s.editorManager.i18n.add(""+be.code,Ae)}});let ue=[{title:"English",code:"en",items:{Extension:"Extension"}},{title:"Chinese",code:"zh_CN",items:{Extension:"\u6269\u5C55"}},{title:"Spanish",code:"es",items:{Extension:"Ampliaci\xF3n"}},{title:"French",code:"fr",items:{Extension:"\xC9largissement"}},{title:"German",code:"de",items:{Extension:"Erweiterung"}},{title:"Korean",code:"ko",items:{Extension:"\uD655\uB300"}},{title:"Japanese",code:"ja",items:{Extension:"\u62E1\u5F35"}},{title:"Dutch",code:"nl",items:{Extension:"Uitbreiding"}},{title:"Hungarian",code:"hu",items:{Extension:"Kiterjeszt\xE9s"}},{title:"Portuguese",code:"pt",items:{Extension:"Extens\xE3o"}},{title:"Czech",code:"cs",items:{Extension:"Roz\u0161\xED\u0159en\xED"}},{title:"Vietnamese",code:"vi",items:{Extension:"M\u1EDF"}}];s.options.register("tp_i18n_Locale",{processor:()=>!0,default:(be,Ae)=>{let Ne=C.language;try{Ne=JSON.parse(be).locale}catch{}/^zh/.test(Ne)&&(Ne="zh_CN"),Ae(Ne)}}),ue.map(be=>{be.items&&s.editorManager.i18n.add(be.code,be.items)}),s.addCommand("mceTpI18n",function(be,Ae){C.language=Ae,s.editorManager.execCommand("mceRemoveEditor",!1,{id:s.id}),s.editorManager.execCommand("mceAddEditor",!1,{id:s.id,options:C})}),s.ui.registry.getAll().icons.i18n||s.ui.registry.addIcon("i18n",'<svg t="1656142365638" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2658" width="24" height="24"><path d="M864 64a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h704z m0 64H160a32 32 0 0 0-32 32v704a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z m-322.4 256c0-31.456 40.64-44.032 58.4-18.08l133.6 195.168V384a32 32 0 0 1 64 0v280.48c0 31.456-40.64 44.032-58.4 18.08l-133.6-195.168v177.088a32 32 0 1 1-64 0z" fill="#1C1C1E" p-id="2659"></path><path d="M448 352a32 32 0 0 1 0 64H288v80h160a32 32 0 0 1 31.776 28.256L480 528a32 32 0 0 1-32 32H288v72.48h160a32 32 0 1 1 0 64H256a32 32 0 0 1-32-32V384a32 32 0 0 1 32-32z" fill="#1c1c05" p-id="2660" data-spm-anchor-id="a313x.7781069.0.i5" class="selected"></path></svg>'),s.ui.registry.addNestedMenuItem("tpI18n",{text:"i18n",icon:"i18n",getSubmenuItems:function(){let be=s.options.get("language")||s.options.get("tp_i18n")||"en",Ae=C.tp_i18n_langs&&C.tp_i18n_langs.length>0?C.tp_i18n_langs:te;return ie.map(Ae,function(Ne){return{type:"togglemenuitem",text:Ne.title,active:be===Ne.code,onAction:function(){s.execCommand("mceTpI18n",!1,Ne.code)}}})}})}s.on("init",G=>{Jt(s),s.getTpContent=te=>s.getTpStyle(te)+s.getContent(te),s.editorContainer.onmouseover=()=>{let te=s.options.get("language")||"en";s.editorManager.i18n.getCode()!=te&&s.editorManager.i18n.setCode(te)}})}}re.init=function(s){return function(){let C="",P=window.localStorage.getItem("responsive-locale"),S=window.localStorage.getItem("APPEARANCE_KEY");P&&(P=JSON.parse(P)),!arguments[0].tp_i18n_setCode&&P.locale&&!arguments[0].language&&(/^zh/.test(P.locale)?arguments[0].language="zh_CN":arguments[0].language=P.locale),!arguments[0].language&&(arguments[0].language="en"),!arguments[0].tp_i18n&&(arguments[0].tp_i18n=!0),!arguments[0].tp_dark_light_mode&&(arguments[0].tp_dark_light_mode=!0),arguments[0].tp_dark_light_mode&&S&&(arguments[0].skin="oxide"+(S=="dark"?"-dark":""),arguments[0].content_css=S=="dark"?"dark":"default");let I=arguments[0];typeof arguments[0].setup=="function"?arguments[0].setup=function(te){return function(se){jt(se,I),te.apply(this,arguments)}}(arguments[0].setup):arguments[0].setup=function(te){jt(te,I)},arguments[0].skeletonScreen&&(C=Yt(arguments[0])),arguments[0].custom_elements=(arguments[0].custom_elements?arguments[0].custom_elements+",":"")+"tp-collapse,tp-tabs,tp-buttons";const G=s.apply(this,arguments);return G.then(te=>{let se=()=>{var ue;if(C){let be=C.parentNode;C.remove(),(ue=be.querySelector(".skt.skt-loading"))===null||ue===void 0||ue.remove()}};te[0]?se():pt(ue=>{te[0]&&(ue(),se())},20)}),G}}(re.init),window.localStorage.setItem=function(s){return function(C,P){/locale$/.test(C)&&re.get().forEach(S=>{setTimeout(()=>{typeof S.options.get("tp_i18n_Locale")=="function"&&S.options.get("tp_i18n_Locale")(P,I=>{S.execCommand("mceTpI18n",!1,I)})},50)}),/APPEARANCE_KEY/.test(C)&&re.get().forEach(S=>{setTimeout(()=>{S.options.get("tp_dark_light_mode")&&S.execCommand("tpDarkLightMode",!1,{skin:"oxide"+(P=="dark"?"-dark":""),content_css:P=="dark"?"dark":""})},50)}),s.apply(this,arguments)}}(window.localStorage.__proto__.setItem);let ir=function(s){return new Promise((C,P)=>{let S=s.match(/<(style)\s*>([\s\S]+)<\/\1>/);C(S&&S[2]?S[2].trim():"")})};re.Editor.prototype.setTpContent=function(s,C){return ir(s).then(P=>{}),this.setContent(s,C)};const ut={global$1:tinymce.util.Tools,global$7:tinymce.html.Node,componentsApi:Pt,createSkt:$t};var or=function(s){if(typeof module=="object")try{module.exports=s}catch{}},Nt=function(s){window.tinymcePlugin=s,window.tinymce.tinymcePlugin=s,window.tinyMCE.tinymcePlugin=s};return Nt(ut),or(ut),Y.default=ut,Y.tinymcePlugin=ut,Object.defineProperties(Y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Y})({});var xn=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],kn=function(Y){return xn.map(function(re){return re.toLowerCase()}).indexOf(Y.toLowerCase())!==-1},_n=function(Y,re,ie){Object.keys(re).filter(kn).forEach(function(ye){var fe=re[ye];typeof fe=="function"&&(ye==="onInit"?fe(Y,ie):ie.on(ye.substring(2),function(Ce){return fe(Ce,ie)}))})},Cn=function(Y,re,ie,ye){var fe=Y.modelEvents?Y.modelEvents:null,Ce=Array.isArray(fe)?fe.join(" "):fe;ie.on(Ce||"input  focus focusin click focusout drop ObjectResized keydown paste ExecCommand ObjectSelected",function(){re.emit("update:modelValue",typeof ie.getTpContent=="function"?ie.getTpContent({format:Y.outputFormat}):ie.getContent({format:Y.outputFormat}))}),tinymce.tinymcePlugin&&Bn(function(Me){typeof ie.getTpContent=="function"&&(Me(),re.emit("update:modelValue",ie.getTpContent({format:Y.outputFormat})),re.emit("update:modelValue",ie.getTpContent({format:Y.outputFormat})))},50)},Sn=function(Y,re,ie,ye,fe,Ce){ye.setContent(Ce()),ie.attrs["onUpdate:modelValue"]&&Cn(re,ie,ye),_n(Y,ie.attrs,ye)},Er=0,Br=function(Y){var re=Date.now(),ie=Math.floor(Math.random()*1e9);return Er++,Y+"_"+ie+Er+String(re)},En=function(Y){return Y!==null&&Y.tagName.toLowerCase()==="textarea"},Ar=function(Y){return typeof Y=="undefined"||Y===""?[]:Array.isArray(Y)?Y:Y.split(" ")},An=function(Y,re){return Ar(Y).concat(Ar(re))},Pn=function(Y){return Y==null},Bn=function(Y,re,ie){!ie&&(ie=re*1e3);var ye={id:null,outTime:ie,outId:null};ye.id=setInterval(function(fe){Y(function(){clearTimeout(fe.outId),clearInterval(fe.id)})},re,ye),ye.outId=setTimeout(function(){ye.id&&clearInterval(ye.id)},ye.outTime)},Pr=function(){return{listeners:[],scriptId:Br("tiny-script"),scriptLoaded:!1}},zn=function(){var Y=Pr(),re=function(fe,Ce,Me,oe){var de=Ce.createElement("script");de.referrerPolicy="origin",de.type="application/javascript",de.id=fe,de.src=Me;var we=function(){de.removeEventListener("load",we),oe()};de.addEventListener("load",we),Ce.head&&Ce.head.appendChild(de)},ie=function(fe,Ce,Me){Y.scriptLoaded?Me():(Y.listeners.push(Me),fe.getElementById(Y.scriptId)||re(Y.scriptId,fe,Ce,function(){Y.listeners.forEach(function(oe){return oe()}),Y.scriptLoaded=!0}))},ye=function(){Y=Pr()};return{load:ie,reinitialize:ye}},On=zn(),Fn=function(){return typeof window!="undefined"?window:global},nt=function(){var Y=Fn();return Y&&Y.tinymce?Y.tinymce:null},Dn={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(Y){return Y==="html"||Y==="text"}}},ct=globalThis&&globalThis.__assign||function(){return ct=Object.assign||function(Y){for(var re,ie=1,ye=arguments.length;ie<ye;ie++){re=arguments[ie];for(var fe in re)Object.prototype.hasOwnProperty.call(re,fe)&&(Y[fe]=re[fe])}return Y},ct.apply(this,arguments)},Tn={min_height:300,plugins:["code hr"],toolbar:["code hr"],schema:"html5",table_default_attributes:{border:"1"},table_default_styles:{"border-collapse":"collapse",width:"100%"},table_header_type:"sectionCells",table_responsive_width:!0,file_picker_types:"file img media",fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px"},In=function(Y,re,ie,ye){return Y(ye||"div",{id:re,ref:ie})},Ln=function(Y,re,ie){return Y("textarea",{id:re,visibility:"hidden",ref:ie})},Rn=fn({props:Dn,setup:function(Y,re){var ie=Y.init?Object.assign(Tn,Y.init):{},ye=mn(Y),fe=ye.disabled,Ce=ye.modelValue,Me=ye.tagName,oe=bn(null),de=null,we=Y.id||Br("tiny-vue"),Ve=Y.init&&Y.init.inline||Y.inline,Oe=!!re.attrs["onUpdate:modelValue"],Ke=!0,He=Y.initialValue?Y.initialValue:"",Je="",T=function(Fe){return Oe?function(){return Ce!=null&&Ce.value?Ce.value:""}:function(){return Fe?He:Je}},Le=function(){var Fe=T(Ke),ze=ct(ct({},ie),{readonly:Y.disabled,selector:"#"+we,plugins:An(ie.plugins,Y.plugins),toolbar:Y.toolbar||ie.toolbar,inline:Ve,setup:function($e){de=$e,$e.on("init",function(dt){return Sn(dt,Y,re,$e,Ce,Fe)}),typeof ie.setup=="function"&&ie.setup($e)}});En(oe.value)&&(oe.value.style.visibility=""),nt().init(ze),Ke=!1};_r(fe,function(Fe){var ze;de!==null&&(typeof((ze=de.mode)===null||ze===void 0?void 0:ze.set)=="function"?de.mode.set(Fe?"readonly":"design"):de.setMode(Fe?"readonly":"design"))}),_r(Me,function(Fe){var ze;Oe||(Je=de.getContent()),(ze=nt())===null||ze===void 0||ze.remove(de),Sr(function(){return Le()})}),gn(function(){if(nt()!==null)Le();else if(oe.value&&oe.value.ownerDocument){var Fe=Y.cloudChannel?Y.cloudChannel:"6",ze=Y.apiKey?Y.apiKey:"no-api-key",$e=Pn(Y.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+ze+"/tinymce/"+Fe+"/tinymce.min.js":Y.tinymceScriptSrc;On.load(oe.value.ownerDocument,$e,Le)}}),vn(function(){nt()!==null&&nt().remove(de)}),Ve||(yn(function(){Ke||Le()}),wn(function(){var Fe;Oe||(Je=de.getContent()),(Fe=nt())===null||Fe===void 0||Fe.remove(de)}));var Xe=function(Fe){var ze;Je=de.getContent(),(ze=nt())===null||ze===void 0||ze.remove(de),ie=ct(ct({},ie),Fe),Sr(function(){return Le()})};return re.expose({rerender:Xe}),function(){return Ve?In(Cr,we,oe,Y.tagName):Ln(Cr,we,oe)}}});/*! 
*  @plugin @tinymce-plugin/tp-indent2em
*  @version 0.0.1 (2022-4-21)
*  @description 首行缩进
*  @copyright (2022) Five(Li Hailong) . All rights reserved. https://github.com/tinymce-plugin/tp-indent2em
*/(function(){var Y=function(oe,de){return function(we){return oe.selection.selectorChangedWithUnbind(de.join(","),function(Ve,Oe){we.setActive(parseInt(oe.dom.getStyle(oe.dom.getParent(Oe.node,"li,p,div"),"text-indent"))>0&&Ve)}).unbind}},re=function(oe,de){oe.undoManager.transact(function(){oe.focus();for(var we=oe.selection.getStart();we.nodeName!=="LI"&&we.nodeName!=="P"&&we.nodeName!=="DIV"&&we.nodeName!=="BODY";)we=we.parentNode;oe.dom.getStyle(we,"text-indent")?oe.execCommand("tpIndent",!1,"remove"):oe.execCommand("tpIndent")})},ie=function(oe,de){oe.ui.registry.getAll().icons[de.registryName]||oe.ui.registry.addIcon(de.registryName,de.icon),oe.ui.registry.addToggleButton(de.registryName,{icon:de.registryName,tooltip:de.title,onAction:function(){return re(oe)},onSetup:Y(oe,['*[style*="text-indent"]','*[data-mce-style*="text-indent"]'])}),oe.ui.registry.addMenuItem(de.registryName,{icon:de.registryName,text:de.title,onAction:function(){return re(oe)}})},ye=function(oe,de){oe.addCommand("mce".concat(de.registryName.substring(0,1).toUpperCase()+de.registryName.substring(1)),function(){re(oe)})},fe=function(oe){tinymce.PluginManager.add(oe.registryName,function(de,we){return ie(de,oe),ye(de,oe),{getMetadata:function(){return{name:oe.name,url:oe.repo}}}})},Ce={name:"Indent2em",registryName:"tpIndent2em",title:"First line indent",repo:"https://github.com/tinymce-plugin/tp-indent2em",icon:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M170.666667 563.2v-102.4H887.466667v102.4zM170.666667 836.266667v-102.4H887.466667v102.4zM512 290.133333v-102.4H887.466667v102.4zM238.933333 341.333333V136.533333l204.8 102.4z"  p-id="5210"></path></svg>'};fe(Ce);var Me={opt:Ce};return Me})();/*! 
*  @plugin @tinymce-plugin/tp-importword
*  @version 0.0.3-beta.4 (2022-7-27)
*  @description 导入word文档
*  @copyright (2022) Li Hailong . All rights reserved. https://github.com/tinymce-plugin/tp-importword
*/(function(){var Y=function(i,t){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Y(i,t)};function re(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Y(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var ie=function(){return ie=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a])}return i},ie.apply(this,arguments)};function ye(i,t,e){if(e||arguments.length===2)for(var n=0,a=t.length,r;n<a;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return i.concat(r||Array.prototype.slice.call(t))}var fe;(function(i){i.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",i.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",i.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",i.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",i.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",i.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",i.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",i.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",i.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",i.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",i.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",i.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",i.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",i.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",i.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",i.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",i.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties"})(fe||(fe={}));function Ce(i,t){return t.elements(i).map(function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}})}var Me={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006"},oe={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:null}};function de(i,t){var e;return t===void 0&&(t=oe.Dxa),i==null||/.+(p[xt]|[%])$/.test(i)?i:"".concat((parseInt(i)*t.mul).toFixed(2)).concat((e=t.unit)!==null&&e!==void 0?e:"")}function we(i,t){switch(t===void 0&&(t=!1),i){case"1":return!0;case"0":return!1;case"on":return!0;case"off":return!1;case"true":return!0;case"false":return!1;default:return t}}function Ve(i,t,e){if(i.namespaceURI!=Me.wordml)return!1;switch(i.localName){case"color":t.color=e.attr(i,"val");break;case"sz":t.fontSize=e.lengthAttr(i,"val",oe.FontSize);break;default:return!1}return!0}function Oe(i,t){t===void 0&&(t=!1),t&&(i=i.replace(/<[?].*[?]>/,""));var e=new DOMParser().parseFromString(i,"application/xml"),n=Ke(e);if(n)throw new Error(n);return e}function Ke(i){var t;return(t=i.getElementsByTagName("parsererror")[0])===null||t===void 0?void 0:t.textContent}function He(i){return new XMLSerializer().serializeToString(i)}var Je=function(){function i(){}return Object.defineProperty(i.prototype,"elements",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e===void 0&&(e=null);for(var n=[],a=0,r=t.childNodes.length;a<r;a++){var o=t.childNodes.item(a);o.nodeType==1&&(e==null||o.localName==e)&&n.push(o)}return n}}),Object.defineProperty(i.prototype,"element",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){for(var n=0,a=t.childNodes.length;n<a;n++){var r=t.childNodes.item(n);if(r.nodeType==1&&r.localName==e)return r}return null}}),Object.defineProperty(i.prototype,"elementAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){var a=this.element(t,e);return a?this.attr(a,n):void 0}}),Object.defineProperty(i.prototype,"attr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){for(var n=0,a=t.attributes.length;n<a;n++){var r=t.attributes.item(n);if(r.localName==e)return r.value}return null}}),Object.defineProperty(i.prototype,"intAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){n===void 0&&(n=null);var a=this.attr(t,e);return a?parseInt(a):n}}),Object.defineProperty(i.prototype,"hexAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){n===void 0&&(n=null);var a=this.attr(t,e);return a?parseInt(a,16):n}}),Object.defineProperty(i.prototype,"floatAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){n===void 0&&(n=null);var a=this.attr(t,e);return a?parseFloat(a):n}}),Object.defineProperty(i.prototype,"boolAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){return n===void 0&&(n=null),we(this.attr(t,e),n)}}),Object.defineProperty(i.prototype,"lengthAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){return n===void 0&&(n=oe.Dxa),de(this.attr(t,e),n)}}),i}(),T=new Je,Le=function(){function i(t,e){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_xmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(i.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;return Promise.all([this._package.loadRelationships(this.path).then(function(e){t.rels=e}),this._package.load(this.path).then(function(e){var n=t._package.parseXmlDocument(e);t._package.options.keepOrigin&&(t._xmlDocument=n),t.parseXml(n.firstElementChild)})])}}),Object.defineProperty(i.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._package.update(this.path,He(this._xmlDocument))}}),Object.defineProperty(i.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(t){}}),i}(),Xe={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function Fe(i,t){return t.elements(i).map(function(e){return ze(e,t)})}function ze(i,t){for(var e={name:t.attr(i,"name"),embedFontRefs:[]},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"family":e.family=t.attr(r,"val");break;case"altName":e.altName=t.attr(r,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":e.embedFontRefs.push($e(r,t));break}}return e}function $e(i,t){return{id:t.attr(i,"id"),key:t.attr(i,"fontKey"),type:Xe[i.localName]}}var dt=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"fonts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.fonts=Fe(e,this._package.xmlParser)}}),t}(Le),Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ct={exports:{}};(function(i,t){(function(e){i.exports=e()})(function(){return function e(n,a,r){function o(p,m){if(!a[p]){if(!n[p]){var v=typeof at=="function"&&at;if(!m&&v)return v(p,!0);if(c)return c(p,!0);var x=new Error("Cannot find module '"+p+"'");throw x.code="MODULE_NOT_FOUND",x}var h=a[p]={exports:{}};n[p][0].call(h.exports,function(g){var f=n[p][1][g];return o(f||g)},h,h.exports,e,n,a,r)}return a[p].exports}for(var c=typeof at=="function"&&at,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,n,a){var r=e("./utils"),o=e("./support"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.encode=function(u){for(var p,m,v,x,h,g,f,y=[],b=0,_=u.length,A=_,O=r.getTypeOf(u)!=="string";b<u.length;)A=_-b,v=O?(p=u[b++],m=b<_?u[b++]:0,b<_?u[b++]:0):(p=u.charCodeAt(b++),m=b<_?u.charCodeAt(b++):0,b<_?u.charCodeAt(b++):0),x=p>>2,h=(3&p)<<4|m>>4,g=1<A?(15&m)<<2|v>>6:64,f=2<A?63&v:64,y.push(c.charAt(x)+c.charAt(h)+c.charAt(g)+c.charAt(f));return y.join("")},a.decode=function(u){var p,m,v,x,h,g,f=0,y=0,b="data:";if(u.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var _,A=3*(u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(u.charAt(u.length-1)===c.charAt(64)&&A--,u.charAt(u.length-2)===c.charAt(64)&&A--,A%1!=0)throw new Error("Invalid base64 input, bad content length.");for(_=o.uint8array?new Uint8Array(0|A):new Array(0|A);f<u.length;)p=c.indexOf(u.charAt(f++))<<2|(x=c.indexOf(u.charAt(f++)))>>4,m=(15&x)<<4|(h=c.indexOf(u.charAt(f++)))>>2,v=(3&h)<<6|(g=c.indexOf(u.charAt(f++))),_[y++]=p,h!==64&&(_[y++]=m),g!==64&&(_[y++]=v);return _}},{"./support":30,"./utils":32}],2:[function(e,n,a){var r=e("./external"),o=e("./stream/DataWorker"),c=e("./stream/Crc32Probe"),u=e("./stream/DataLengthProbe");function p(m,v,x,h,g){this.compressedSize=m,this.uncompressedSize=v,this.crc32=x,this.compression=h,this.compressedContent=g}p.prototype={getContentWorker:function(){var m=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),v=this;return m.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(m,v,x){return m.pipe(new c).pipe(new u("uncompressedSize")).pipe(v.compressWorker(x)).pipe(new u("compressedSize")).withStreamInfo("compression",v)},n.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,n,a){var r=e("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(o){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},a.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,n,a){var r=e("./utils"),o=function(){for(var c,u=[],p=0;p<256;p++){c=p;for(var m=0;m<8;m++)c=1&c?3988292384^c>>>1:c>>>1;u[p]=c}return u}();n.exports=function(c,u){return c!==void 0&&c.length?r.getTypeOf(c)!=="string"?function(p,m,v,x){var h=o,g=x+v;p^=-1;for(var f=x;f<g;f++)p=p>>>8^h[255&(p^m[f])];return-1^p}(0|u,c,c.length,0):function(p,m,v,x){var h=o,g=x+v;p^=-1;for(var f=x;f<g;f++)p=p>>>8^h[255&(p^m.charCodeAt(f))];return-1^p}(0|u,c,c.length,0):0}},{"./utils":32}],5:[function(e,n,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(e,n,a){var r=null;r=typeof Promise<"u"?Promise:e("lie"),n.exports={Promise:r}},{lie:37}],7:[function(e,n,a){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=e("pako"),c=e("./utils"),u=e("./stream/GenericWorker"),p=r?"uint8array":"array";function m(v,x){u.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=x,this.meta={}}a.magic="\b\0",c.inherits(m,u),m.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(p,v.data),!1)},m.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},m.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},m.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(x){v.push({data:x,meta:v.meta})}},a.compressWorker=function(v){return new m("Deflate",v)},a.uncompressWorker=function(){return new m("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,n,a){function r(h,g){var f,y="";for(f=0;f<g;f++)y+=String.fromCharCode(255&h),h>>>=8;return y}function o(h,g,f,y,b,_){var A,O,z=h.file,H=h.compression,j=_!==p.utf8encode,V=c.transformTo("string",_(z.name)),R=c.transformTo("string",p.utf8encode(z.name)),Q=z.comment,he=c.transformTo("string",_(Q)),E=c.transformTo("string",p.utf8encode(Q)),M=R.length!==z.name.length,d=E.length!==Q.length,W="",ge="",K="",ve=z.dir,J=z.date,me={crc32:0,compressedSize:0,uncompressedSize:0};g&&!f||(me.crc32=h.crc32,me.compressedSize=h.compressedSize,me.uncompressedSize=h.uncompressedSize);var L=0;g&&(L|=8),j||!M&&!d||(L|=2048);var D=0,pe=0;ve&&(D|=16),b==="UNIX"?(pe=798,D|=function(ee,De){var Re=ee;return ee||(Re=De?16893:33204),(65535&Re)<<16}(z.unixPermissions,ve)):(pe=20,D|=function(ee){return 63&(ee||0)}(z.dosPermissions)),A=J.getUTCHours(),A<<=6,A|=J.getUTCMinutes(),A<<=5,A|=J.getUTCSeconds()/2,O=J.getUTCFullYear()-1980,O<<=4,O|=J.getUTCMonth()+1,O<<=5,O|=J.getUTCDate(),M&&(ge=r(1,1)+r(m(V),4)+R,W+="up"+r(ge.length,2)+ge),d&&(K=r(1,1)+r(m(he),4)+E,W+="uc"+r(K.length,2)+K);var ne="";return ne+=`
\0`,ne+=r(L,2),ne+=H.magic,ne+=r(A,2),ne+=r(O,2),ne+=r(me.crc32,4),ne+=r(me.compressedSize,4),ne+=r(me.uncompressedSize,4),ne+=r(V.length,2),ne+=r(W.length,2),{fileRecord:v.LOCAL_FILE_HEADER+ne+V+W,dirRecord:v.CENTRAL_FILE_HEADER+r(pe,2)+ne+r(he.length,2)+"\0\0\0\0"+r(D,4)+r(y,4)+V+W+he}}var c=e("../utils"),u=e("../stream/GenericWorker"),p=e("../utf8"),m=e("../crc32"),v=e("../signature");function x(h,g,f,y){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=f,this.encodeFileName=y,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c.inherits(x,u),x.prototype.push=function(h){var g=h.meta.percent||0,f=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,u.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:f?(g+100*(f-y-1))/f:100}}))},x.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var g=this.streamFiles&&!h.file.dir;if(g){var f=o(h,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},x.prototype.closedSource=function(h){this.accumulate=!1;var g=this.streamFiles&&!h.file.dir,f=o(h,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),g)this.push({data:function(y){return v.DATA_DESCRIPTOR+r(y.crc32,4)+r(y.compressedSize,4)+r(y.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},x.prototype.flush=function(){for(var h=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var f=this.bytesWritten-h,y=function(b,_,A,O,z){var H=c.transformTo("string",z(O));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(b,2)+r(b,2)+r(_,4)+r(A,4)+r(H.length,2)+H}(this.dirRecords.length,f,h,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},x.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},x.prototype.registerPrevious=function(h){this._sources.push(h);var g=this;return h.on("data",function(f){g.processChunk(f)}),h.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),h.on("error",function(f){g.error(f)}),this},x.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},x.prototype.error=function(h){var g=this._sources;if(!u.prototype.error.call(this,h))return!1;for(var f=0;f<g.length;f++)try{g[f].error(h)}catch{}return!0},x.prototype.lock=function(){u.prototype.lock.call(this);for(var h=this._sources,g=0;g<h.length;g++)h[g].lock()},n.exports=x},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,n,a){var r=e("../compressions"),o=e("./ZipFileWorker");a.generateWorker=function(c,u,p){var m=new o(u.streamFiles,p,u.platform,u.encodeFileName),v=0;try{c.forEach(function(x,h){v++;var g=function(_,A){var O=_||A,z=r[O];if(!z)throw new Error(O+" is not a valid compression method !");return z}(h.options.compression,u.compression),f=h.options.compressionOptions||u.compressionOptions||{},y=h.dir,b=h.date;h._compressWorker(g,f).withStreamInfo("file",{name:x,dir:y,date:b,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(m)}),m.entriesCount=v}catch(x){m.error(x)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,n,a){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new r;for(var c in this)typeof this[c]!="function"&&(o[c]=this[c]);return o}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.0",r.loadAsync=function(o,c){return new r().loadAsync(o,c)},r.external=e("./external"),n.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,n,a){var r=e("./utils"),o=e("./external"),c=e("./utf8"),u=e("./zipEntries"),p=e("./stream/Crc32Probe"),m=e("./nodejsUtils");function v(x){return new o.Promise(function(h,g){var f=x.decompressed.getContentWorker().pipe(new p);f.on("error",function(y){g(y)}).on("end",function(){f.streamInfo.crc32!==x.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}n.exports=function(x,h){var g=this;return h=r.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:c.utf8decode}),m.isNode&&m.isStream(x)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",x,!0,h.optimizedBinaryString,h.base64).then(function(f){var y=new u(h);return y.load(f),y}).then(function(f){var y=[o.Promise.resolve(f)],b=f.files;if(h.checkCRC32)for(var _=0;_<b.length;_++)y.push(v(b[_]));return o.Promise.all(y)}).then(function(f){for(var y=f.shift(),b=y.files,_=0;_<b.length;_++){var A=b[_],O=A.fileNameStr,z=r.resolve(A.fileNameStr);g.file(z,A.decompressed,{binary:!0,optimizedBinaryString:!0,date:A.date,dir:A.dir,comment:A.fileCommentStr.length?A.fileCommentStr:null,unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions,createFolders:h.createFolders}),A.dir||(g.file(z).unsafeOriginalName=O)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,n,a){var r=e("../utils"),o=e("../stream/GenericWorker");function c(u,p){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(p)}r.inherits(c,o),c.prototype._bindStream=function(u){var p=this;(this._stream=u).pause(),u.on("data",function(m){p.push({data:m,meta:{percent:0}})}).on("error",function(m){p.isPaused?this.generatedError=m:p.error(m)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},c.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=c},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,n,a){var r=e("readable-stream").Readable;function o(c,u,p){r.call(this,u),this._helper=c;var m=this;c.on("data",function(v,x){m.push(v)||m._helper.pause(),p&&p(x)}).on("error",function(v){m.emit("error",v)}).on("end",function(){m.push(null)})}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},n.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,n,a){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(r,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,o);if(typeof r=="number")throw new Error('The "data" argument must not be a number');return new Buffer(r,o)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var o=new Buffer(r);return o.fill(0),o},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on=="function"&&typeof r.pause=="function"&&typeof r.resume=="function"}}},{}],15:[function(e,n,a){function r(z,H,j){var V,R=c.getTypeOf(H),Q=c.extend(j||{},m);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(z=b(z)),Q.createFolders&&(V=y(z))&&_.call(this,V,!0);var he=R==="string"&&Q.binary===!1&&Q.base64===!1;j&&j.binary!==void 0||(Q.binary=!he),(H instanceof v&&H.uncompressedSize===0||Q.dir||!H||H.length===0)&&(Q.base64=!1,Q.binary=!0,H="",Q.compression="STORE",R="string");var E=null;E=H instanceof v||H instanceof u?H:g.isNode&&g.isStream(H)?new f(z,H):c.prepareContent(z,H,Q.binary,Q.optimizedBinaryString,Q.base64);var M=new x(z,E,Q);this.files[z]=M}var o=e("./utf8"),c=e("./utils"),u=e("./stream/GenericWorker"),p=e("./stream/StreamHelper"),m=e("./defaults"),v=e("./compressedObject"),x=e("./zipObject"),h=e("./generate"),g=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),y=function(z){z.slice(-1)==="/"&&(z=z.substring(0,z.length-1));var H=z.lastIndexOf("/");return 0<H?z.substring(0,H):""},b=function(z){return z.slice(-1)!=="/"&&(z+="/"),z},_=function(z,H){return H=H!==void 0?H:m.createFolders,z=b(z),this.files[z]||r.call(this,z,null,{dir:!0,createFolders:H}),this.files[z]};function A(z){return Object.prototype.toString.call(z)==="[object RegExp]"}var O={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(z){var H,j,V;for(H in this.files)V=this.files[H],(j=H.slice(this.root.length,H.length))&&H.slice(0,this.root.length)===this.root&&z(j,V)},filter:function(z){var H=[];return this.forEach(function(j,V){z(j,V)&&H.push(V)}),H},file:function(z,H,j){if(arguments.length!==1)return z=this.root+z,r.call(this,z,H,j),this;if(A(z)){var V=z;return this.filter(function(Q,he){return!he.dir&&V.test(Q)})}var R=this.files[this.root+z];return R&&!R.dir?R:null},folder:function(z){if(!z)return this;if(A(z))return this.filter(function(R,Q){return Q.dir&&z.test(R)});var H=this.root+z,j=_.call(this,H),V=this.clone();return V.root=j.name,V},remove:function(z){z=this.root+z;var H=this.files[z];if(H||(z.slice(-1)!=="/"&&(z+="/"),H=this.files[z]),H&&!H.dir)delete this.files[z];else for(var j=this.filter(function(R,Q){return Q.name.slice(0,z.length)===z}),V=0;V<j.length;V++)delete this.files[j[V].name];return this},generate:function(z){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(z){var H,j={};try{if((j=c.extend(z||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");c.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var V=j.comment||this.comment||"";H=h.generateWorker(this,j,V)}catch(R){(H=new u("error")).error(R)}return new p(H,j.type||"string",j.mimeType)},generateAsync:function(z,H){return this.generateInternalStream(z).accumulate(H)},generateNodeStream:function(z,H){return(z=z||{}).type||(z.type="nodebuffer"),this.generateInternalStream(z).toNodejsStream(H)}};n.exports=O},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,n,a){n.exports=e("stream")},{stream:void 0}],17:[function(e,n,a){var r=e("./DataReader");function o(c){r.call(this,c);for(var u=0;u<this.data.length;u++)c[u]=255&c[u]}e("../utils").inherits(o,r),o.prototype.byteAt=function(c){return this.data[this.zero+c]},o.prototype.lastIndexOfSignature=function(c){for(var u=c.charCodeAt(0),p=c.charCodeAt(1),m=c.charCodeAt(2),v=c.charCodeAt(3),x=this.length-4;0<=x;--x)if(this.data[x]===u&&this.data[x+1]===p&&this.data[x+2]===m&&this.data[x+3]===v)return x-this.zero;return-1},o.prototype.readAndCheckSignature=function(c){var u=c.charCodeAt(0),p=c.charCodeAt(1),m=c.charCodeAt(2),v=c.charCodeAt(3),x=this.readData(4);return u===x[0]&&p===x[1]&&m===x[2]&&v===x[3]},o.prototype.readData=function(c){if(this.checkOffset(c),c===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},n.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,n,a){var r=e("../utils");function o(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length<this.zero+c||c<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+c+"). Corrupted zip ?")},setIndex:function(c){this.checkIndex(c),this.index=c},skip:function(c){this.setIndex(this.index+c)},byteAt:function(c){},readInt:function(c){var u,p=0;for(this.checkOffset(c),u=this.index+c-1;u>=this.index;u--)p=(p<<8)+this.byteAt(u);return this.index+=c,p},readString:function(c){return r.transformTo("string",this.readData(c))},readData:function(c){},lastIndexOfSignature:function(c){},readAndCheckSignature:function(c){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC(1980+(c>>25&127),(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(31&c)<<1))}},n.exports=o},{"../utils":32}],19:[function(e,n,a){var r=e("./Uint8ArrayReader");function o(c){r.call(this,c)}e("../utils").inherits(o,r),o.prototype.readData=function(c){this.checkOffset(c);var u=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},n.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,n,a){var r=e("./DataReader");function o(c){r.call(this,c)}e("../utils").inherits(o,r),o.prototype.byteAt=function(c){return this.data.charCodeAt(this.zero+c)},o.prototype.lastIndexOfSignature=function(c){return this.data.lastIndexOf(c)-this.zero},o.prototype.readAndCheckSignature=function(c){return c===this.readData(4)},o.prototype.readData=function(c){this.checkOffset(c);var u=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},n.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,n,a){var r=e("./ArrayReader");function o(c){r.call(this,c)}e("../utils").inherits(o,r),o.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,u},n.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,n,a){var r=e("../utils"),o=e("../support"),c=e("./ArrayReader"),u=e("./StringReader"),p=e("./NodeBufferReader"),m=e("./Uint8ArrayReader");n.exports=function(v){var x=r.getTypeOf(v);return r.checkSupport(x),x!=="string"||o.uint8array?x==="nodebuffer"?new p(v):o.uint8array?new m(r.transformTo("uint8array",v)):new c(r.transformTo("array",v)):new u(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,n,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,n,a){var r=e("./GenericWorker"),o=e("../utils");function c(u){r.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(c,r),c.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},n.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(e,n,a){var r=e("./GenericWorker"),o=e("../crc32");function c(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(c,r),c.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},n.exports=c},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,n,a){var r=e("../utils"),o=e("./GenericWorker");function c(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}r.inherits(c,o),c.prototype.processChunk=function(u){if(u){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+u.data.length}o.prototype.processChunk.call(this,u)},n.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(e,n,a){var r=e("../utils"),o=e("./GenericWorker");function c(u){o.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(m){p.dataIsReady=!0,p.data=m,p.max=m&&m.length||0,p.type=r.getTypeOf(m),p.isPaused||p._tickAndRepeat()},function(m){p.error(m)})}r.inherits(c,o),c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},c.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},c.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,p);break;case"uint8array":u=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":u=this.data.slice(this.index,p)}return this.index=p,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=c},{"../utils":32,"./GenericWorker":28}],28:[function(e,n,a){function r(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,c){return this._listeners[o].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,c){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,c)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var c=this;return o.on("data",function(u){c.processChunk(u)}),o.on("end",function(){c.end()}),o.on("error",function(u){c.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,c){return this.extraStreamInfo[o]=c,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},n.exports=r},{}],29:[function(e,n,a){var r=e("../utils"),o=e("./ConvertWorker"),c=e("./GenericWorker"),u=e("../base64"),p=e("../support"),m=e("../external"),v=null;if(p.nodestream)try{v=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function x(g,f){return new m.Promise(function(y,b){var _=[],A=g._internalType,O=g._outputType,z=g._mimeType;g.on("data",function(H,j){_.push(H),f&&f(j)}).on("error",function(H){_=[],b(H)}).on("end",function(){try{var H=function(j,V,R){switch(j){case"blob":return r.newBlob(r.transformTo("arraybuffer",V),R);case"base64":return u.encode(V);default:return r.transformTo(j,V)}}(O,function(j,V){var R,Q=0,he=null,E=0;for(R=0;R<V.length;R++)E+=V[R].length;switch(j){case"string":return V.join("");case"array":return Array.prototype.concat.apply([],V);case"uint8array":for(he=new Uint8Array(E),R=0;R<V.length;R++)he.set(V[R],Q),Q+=V[R].length;return he;case"nodebuffer":return Buffer.concat(V);default:throw new Error("concat : unsupported type '"+j+"'")}}(A,_),z);y(H)}catch(j){b(j)}_=[]}).resume()})}function h(g,f,y){var b=f;switch(f){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=f,this._mimeType=y,r.checkSupport(b),this._worker=g.pipe(new o(b)),g.lock()}catch(_){this._worker=new c("error"),this._worker.error(_)}}h.prototype={accumulate:function(g){return x(this,g)},on:function(g,f){var y=this;return g==="data"?this._worker.on(g,function(b){f.call(y,b.data,b.meta)}):this._worker.on(g,function(){r.delay(f,arguments,y)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},g)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,n,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var r=new ArrayBuffer(0);try{a.blob=new Blob([r],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),a.blob=o.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!e("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(e,n,a){for(var r=e("./utils"),o=e("./support"),c=e("./nodejsUtils"),u=e("./stream/GenericWorker"),p=new Array(256),m=0;m<256;m++)p[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;p[254]=p[254]=1;function v(){u.call(this,"utf-8 decode"),this.leftOver=null}function x(){u.call(this,"utf-8 encode")}a.utf8encode=function(h){return o.nodebuffer?c.newBufferFrom(h,"utf-8"):function(g){var f,y,b,_,A,O=g.length,z=0;for(_=0;_<O;_++)(64512&(y=g.charCodeAt(_)))==55296&&_+1<O&&(64512&(b=g.charCodeAt(_+1)))==56320&&(y=65536+(y-55296<<10)+(b-56320),_++),z+=y<128?1:y<2048?2:y<65536?3:4;for(f=o.uint8array?new Uint8Array(z):new Array(z),_=A=0;A<z;_++)(64512&(y=g.charCodeAt(_)))==55296&&_+1<O&&(64512&(b=g.charCodeAt(_+1)))==56320&&(y=65536+(y-55296<<10)+(b-56320),_++),y<128?f[A++]=y:(y<2048?f[A++]=192|y>>>6:(y<65536?f[A++]=224|y>>>12:(f[A++]=240|y>>>18,f[A++]=128|y>>>12&63),f[A++]=128|y>>>6&63),f[A++]=128|63&y);return f}(h)},a.utf8decode=function(h){return o.nodebuffer?r.transformTo("nodebuffer",h).toString("utf-8"):function(g){var f,y,b,_,A=g.length,O=new Array(2*A);for(f=y=0;f<A;)if((b=g[f++])<128)O[y++]=b;else if(4<(_=p[b]))O[y++]=65533,f+=_-1;else{for(b&=_===2?31:_===3?15:7;1<_&&f<A;)b=b<<6|63&g[f++],_--;1<_?O[y++]=65533:b<65536?O[y++]=b:(b-=65536,O[y++]=55296|b>>10&1023,O[y++]=56320|1023&b)}return O.length!==y&&(O.subarray?O=O.subarray(0,y):O.length=y),r.applyFromCharCode(O)}(h=r.transformTo(o.uint8array?"uint8array":"array",h))},r.inherits(v,u),v.prototype.processChunk=function(h){var g=r.transformTo(o.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var f=g;(g=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),g.set(f,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=function(_,A){var O;for((A=A||_.length)>_.length&&(A=_.length),O=A-1;0<=O&&(192&_[O])==128;)O--;return O<0||O===0?A:O+p[_[O]]>A?O:A}(g),b=g;y!==g.length&&(o.uint8array?(b=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(b=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:a.utf8decode(b),meta:h.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=v,r.inherits(x,u),x.prototype.processChunk=function(h){this.push({data:a.utf8encode(h.data),meta:h.meta})},a.Utf8EncodeWorker=x},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,n,a){var r=e("./support"),o=e("./base64"),c=e("./nodejsUtils"),u=e("./external");function p(f){return f}function m(f,y){for(var b=0;b<f.length;++b)y[b]=255&f.charCodeAt(b);return y}e("setimmediate"),a.newBlob=function(f,y){a.checkSupport("blob");try{return new Blob([f],{type:y})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(f),b.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(f,y,b){var _=[],A=0,O=f.length;if(O<=b)return String.fromCharCode.apply(null,f);for(;A<O;)y==="array"||y==="nodebuffer"?_.push(String.fromCharCode.apply(null,f.slice(A,Math.min(A+b,O)))):_.push(String.fromCharCode.apply(null,f.subarray(A,Math.min(A+b,O)))),A+=b;return _.join("")},stringifyByChar:function(f){for(var y="",b=0;b<f.length;b++)y+=String.fromCharCode(f[b]);return y},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,c.allocBuffer(1)).length===1}catch{return!1}}()}};function x(f){var y=65536,b=a.getTypeOf(f),_=!0;if(b==="uint8array"?_=v.applyCanBeUsed.uint8array:b==="nodebuffer"&&(_=v.applyCanBeUsed.nodebuffer),_)for(;1<y;)try{return v.stringifyByChunk(f,b,y)}catch{y=Math.floor(y/2)}return v.stringifyByChar(f)}function h(f,y){for(var b=0;b<f.length;b++)y[b]=f[b];return y}a.applyFromCharCode=x;var g={};g.string={string:p,array:function(f){return m(f,new Array(f.length))},arraybuffer:function(f){return g.string.uint8array(f).buffer},uint8array:function(f){return m(f,new Uint8Array(f.length))},nodebuffer:function(f){return m(f,c.allocBuffer(f.length))}},g.array={string:x,array:p,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return c.newBufferFrom(f)}},g.arraybuffer={string:function(f){return x(new Uint8Array(f))},array:function(f){return h(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:p,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return c.newBufferFrom(new Uint8Array(f))}},g.uint8array={string:x,array:function(f){return h(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:p,nodebuffer:function(f){return c.newBufferFrom(f)}},g.nodebuffer={string:x,array:function(f){return h(f,new Array(f.length))},arraybuffer:function(f){return g.nodebuffer.uint8array(f).buffer},uint8array:function(f){return h(f,new Uint8Array(f.length))},nodebuffer:p},a.transformTo=function(f,y){if(y=y||"",!f)return y;a.checkSupport(f);var b=a.getTypeOf(y);return g[b][f](y)},a.resolve=function(f){for(var y=f.split("/"),b=[],_=0;_<y.length;_++){var A=y[_];A==="."||A===""&&_!==0&&_!==y.length-1||(A===".."?b.pop():b.push(A))}return b.join("/")},a.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":r.nodebuffer&&c.isBuffer(f)?"nodebuffer":r.uint8array&&f instanceof Uint8Array?"uint8array":r.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(f){if(!r[f.toLowerCase()])throw new Error(f+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(f){var y,b,_="";for(b=0;b<(f||"").length;b++)_+="\\x"+((y=f.charCodeAt(b))<16?"0":"")+y.toString(16).toUpperCase();return _},a.delay=function(f,y,b){setImmediate(function(){f.apply(b||null,y||[])})},a.inherits=function(f,y){function b(){}b.prototype=y.prototype,f.prototype=new b},a.extend=function(){var f,y,b={};for(f=0;f<arguments.length;f++)for(y in arguments[f])arguments[f].hasOwnProperty(y)&&b[y]===void 0&&(b[y]=arguments[f][y]);return b},a.prepareContent=function(f,y,b,_,A){return u.Promise.resolve(y).then(function(O){return r.blob&&(O instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(O))!==-1)&&typeof FileReader<"u"?new u.Promise(function(z,H){var j=new FileReader;j.onload=function(V){z(V.target.result)},j.onerror=function(V){H(V.target.error)},j.readAsArrayBuffer(O)}):O}).then(function(O){var z=a.getTypeOf(O);return z?(z==="arraybuffer"?O=a.transformTo("uint8array",O):z==="string"&&(A?O=o.decode(O):b&&_!==!0&&(O=function(H){return m(H,r.uint8array?new Uint8Array(H.length):new Array(H.length))}(O))),O):u.Promise.reject(new Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,n,a){var r=e("./reader/readerFor"),o=e("./utils"),c=e("./signature"),u=e("./zipEntry"),p=(e("./utf8"),e("./support"));function m(v){this.files=[],this.loadOptions=v}m.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var x=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(x)+", expected "+o.pretty(v)+")")}},isSignature:function(v,x){var h=this.reader.index;this.reader.setIndex(v);var g=this.reader.readString(4)===x;return this.reader.setIndex(h),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var v=this.reader.readData(this.zipCommentLength),x=p.uint8array?"uint8array":"array",h=o.transformTo(x,v);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var v,x,h,g=this.zip64EndOfCentralSize-44;0<g;)v=this.reader.readInt(2),x=this.reader.readInt(4),h=this.reader.readData(x),this.zip64ExtensibleData[v]={id:v,length:x,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var v,x;for(v=0;v<this.files.length;v++)x=this.files[v],this.reader.setIndex(x.localHeaderOffset),this.checkSignature(c.LOCAL_FILE_HEADER),x.readLocalPart(this.reader),x.handleUTF8(),x.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(c.CENTRAL_FILE_HEADER);)(v=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var v=this.reader.lastIndexOfSignature(c.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,c.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(v);var x=v;if(this.checkSignature(c.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(v),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,c.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var g=x-h;if(0<g)this.isSignature(x,c.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(v){this.reader=r(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=m},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,n,a){var r=e("./reader/readerFor"),o=e("./utils"),c=e("./compressedObject"),u=e("./crc32"),p=e("./utf8"),m=e("./compressions"),v=e("./support");function x(h,g){this.options=h,this.loadOptions=g}x.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var g,f;if(h.skip(22),this.fileNameLength=h.readInt(2),f=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(f),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=function(y){for(var b in m)if(m.hasOwnProperty(b)&&m[b].magic===y)return m[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,g,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var g=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(g),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(h){if(this.extraFields[1]){var g=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=g.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=g.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=g.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=g.readInt(4))}},readExtraFields:function(h){var g,f,y,b=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<b;)g=h.readInt(2),f=h.readInt(2),y=h.readData(f),this.extraFields[g]={id:g,length:f,value:y};h.setIndex(b)},handleUTF8:function(){var h=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var f=o.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var b=o.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var g=r(h.value);return g.readInt(1)!==1||u(this.fileName)!==g.readInt(4)?null:p.utf8decode(g.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var g=r(h.value);return g.readInt(1)!==1||u(this.fileComment)!==g.readInt(4)?null:p.utf8decode(g.readData(h.length-5))}return null}},n.exports=x},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,n,a){function r(g,f,y){this.name=g,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=f,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var o=e("./stream/StreamHelper"),c=e("./stream/DataWorker"),u=e("./utf8"),p=e("./compressedObject"),m=e("./stream/GenericWorker");r.prototype={internalStream:function(g){var f=null,y="string";try{if(!g)throw new Error("No output type specified.");var b=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),f=this._decompressWorker();var _=!this._dataBinary;_&&!b&&(f=f.pipe(new u.Utf8EncodeWorker)),!_&&b&&(f=f.pipe(new u.Utf8DecodeWorker))}catch(A){(f=new m("error")).error(A)}return new o(f,y,"")},async:function(g,f){return this.internalStream(g).accumulate(f)},nodeStream:function(g,f){return this.internalStream(g||"nodebuffer").toNodejsStream(f)},_compressWorker:function(g,f){if(this._data instanceof p&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new u.Utf8EncodeWorker)),p.createWorkerFrom(y,g,f)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof m?this._data:new c(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<v.length;h++)r.prototype[v[h]]=x;n.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,n,a){(function(r){var o,c,u=r.MutationObserver||r.WebKitMutationObserver;if(u){var p=0,m=new u(g),v=r.document.createTextNode("");m.observe(v,{characterData:!0}),o=function(){v.data=p=++p%2}}else if(r.setImmediate||r.MessageChannel===void 0)o="document"in r&&"onreadystatechange"in r.document.createElement("script")?function(){var f=r.document.createElement("script");f.onreadystatechange=function(){g(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},r.document.documentElement.appendChild(f)}:function(){setTimeout(g,0)};else{var x=new r.MessageChannel;x.port1.onmessage=g,o=function(){x.port2.postMessage(0)}}var h=[];function g(){var f,y;c=!0;for(var b=h.length;b;){for(y=h,h=[],f=-1;++f<b;)y[f]();b=h.length}c=!1}n.exports=function(f){h.push(f)!==1||c||o()}}).call(this,typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(e,n,a){var r=e("immediate");function o(){}var c={},u=["REJECTED"],p=["FULFILLED"],m=["PENDING"];function v(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,b!==o&&f(this,b)}function x(b,_,A){this.promise=b,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}function h(b,_,A){r(function(){var O;try{O=_(A)}catch(z){return c.reject(b,z)}O===b?c.reject(b,new TypeError("Cannot resolve promise with itself")):c.resolve(b,O)})}function g(b){var _=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof _=="function")return function(){_.apply(b,arguments)}}function f(b,_){var A=!1;function O(j){A||(A=!0,c.reject(b,j))}function z(j){A||(A=!0,c.resolve(b,j))}var H=y(function(){_(z,O)});H.status==="error"&&O(H.value)}function y(b,_){var A={};try{A.value=b(_),A.status="success"}catch(O){A.status="error",A.value=O}return A}(n.exports=v).prototype.finally=function(b){if(typeof b!="function")return this;var _=this.constructor;return this.then(function(A){return _.resolve(b()).then(function(){return A})},function(A){return _.resolve(b()).then(function(){throw A})})},v.prototype.catch=function(b){return this.then(null,b)},v.prototype.then=function(b,_){if(typeof b!="function"&&this.state===p||typeof _!="function"&&this.state===u)return this;var A=new this.constructor(o);return this.state!==m?h(A,this.state===p?b:_,this.outcome):this.queue.push(new x(A,b,_)),A},x.prototype.callFulfilled=function(b){c.resolve(this.promise,b)},x.prototype.otherCallFulfilled=function(b){h(this.promise,this.onFulfilled,b)},x.prototype.callRejected=function(b){c.reject(this.promise,b)},x.prototype.otherCallRejected=function(b){h(this.promise,this.onRejected,b)},c.resolve=function(b,_){var A=y(g,_);if(A.status==="error")return c.reject(b,A.value);var O=A.value;if(O)f(b,O);else{b.state=p,b.outcome=_;for(var z=-1,H=b.queue.length;++z<H;)b.queue[z].callFulfilled(_)}return b},c.reject=function(b,_){b.state=u,b.outcome=_;for(var A=-1,O=b.queue.length;++A<O;)b.queue[A].callRejected(_);return b},v.resolve=function(b){return b instanceof this?b:c.resolve(new this(o),b)},v.reject=function(b){var _=new this(o);return c.reject(_,b)},v.all=function(b){var _=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,O=!1;if(!A)return this.resolve([]);for(var z=new Array(A),H=0,j=-1,V=new this(o);++j<A;)R(b[j],j);return V;function R(Q,he){_.resolve(Q).then(function(E){z[he]=E,++H!==A||O||(O=!0,c.resolve(V,z))},function(E){O||(O=!0,c.reject(V,E))})}},v.race=function(b){var _=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=b.length,O=!1;if(!A)return this.resolve([]);for(var z=-1,H=new this(o);++z<A;)j=b[z],_.resolve(j).then(function(V){O||(O=!0,c.resolve(H,V))},function(V){O||(O=!0,c.reject(H,V))});var j;return H}},{immediate:36}],38:[function(e,n,a){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),n.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,n,a){var r=e("./zlib/deflate"),o=e("./utils/common"),c=e("./utils/strings"),u=e("./zlib/messages"),p=e("./zlib/zstream"),m=Object.prototype.toString,v=0,x=-1,h=0,g=8;function f(b){if(!(this instanceof f))return new f(b);this.options=o.assign({level:x,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},b||{});var _=this.options;_.raw&&0<_.windowBits?_.windowBits=-_.windowBits:_.gzip&&0<_.windowBits&&_.windowBits<16&&(_.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var A=r.deflateInit2(this.strm,_.level,_.method,_.windowBits,_.memLevel,_.strategy);if(A!==v)throw new Error(u[A]);if(_.header&&r.deflateSetHeader(this.strm,_.header),_.dictionary){var O;if(O=typeof _.dictionary=="string"?c.string2buf(_.dictionary):m.call(_.dictionary)==="[object ArrayBuffer]"?new Uint8Array(_.dictionary):_.dictionary,(A=r.deflateSetDictionary(this.strm,O))!==v)throw new Error(u[A]);this._dict_set=!0}}function y(b,_){var A=new f(_);if(A.push(b,!0),A.err)throw A.msg||u[A.err];return A.result}f.prototype.push=function(b,_){var A,O,z=this.strm,H=this.options.chunkSize;if(this.ended)return!1;O=_===~~_?_:_===!0?4:0,typeof b=="string"?z.input=c.string2buf(b):m.call(b)==="[object ArrayBuffer]"?z.input=new Uint8Array(b):z.input=b,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new o.Buf8(H),z.next_out=0,z.avail_out=H),(A=r.deflate(z,O))!==1&&A!==v)return this.onEnd(A),!(this.ended=!0);z.avail_out!==0&&(z.avail_in!==0||O!==4&&O!==2)||(this.options.to==="string"?this.onData(c.buf2binstring(o.shrinkBuf(z.output,z.next_out))):this.onData(o.shrinkBuf(z.output,z.next_out)))}while((0<z.avail_in||z.avail_out===0)&&A!==1);return O===4?(A=r.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===v):O!==2||(this.onEnd(v),!(z.avail_out=0))},f.prototype.onData=function(b){this.chunks.push(b)},f.prototype.onEnd=function(b){b===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},a.Deflate=f,a.deflate=y,a.deflateRaw=function(b,_){return(_=_||{}).raw=!0,y(b,_)},a.gzip=function(b,_){return(_=_||{}).gzip=!0,y(b,_)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,n,a){var r=e("./zlib/inflate"),o=e("./utils/common"),c=e("./utils/strings"),u=e("./zlib/constants"),p=e("./zlib/messages"),m=e("./zlib/zstream"),v=e("./zlib/gzheader"),x=Object.prototype.toString;function h(f){if(!(this instanceof h))return new h(f);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},f||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||f&&f.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var b=r.inflateInit2(this.strm,y.windowBits);if(b!==u.Z_OK)throw new Error(p[b]);this.header=new v,r.inflateGetHeader(this.strm,this.header)}function g(f,y){var b=new h(y);if(b.push(f,!0),b.err)throw b.msg||p[b.err];return b.result}h.prototype.push=function(f,y){var b,_,A,O,z,H,j=this.strm,V=this.options.chunkSize,R=this.options.dictionary,Q=!1;if(this.ended)return!1;_=y===~~y?y:y===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof f=="string"?j.input=c.binstring2buf(f):x.call(f)==="[object ArrayBuffer]"?j.input=new Uint8Array(f):j.input=f,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new o.Buf8(V),j.next_out=0,j.avail_out=V),(b=r.inflate(j,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&R&&(H=typeof R=="string"?c.string2buf(R):x.call(R)==="[object ArrayBuffer]"?new Uint8Array(R):R,b=r.inflateSetDictionary(this.strm,H)),b===u.Z_BUF_ERROR&&Q===!0&&(b=u.Z_OK,Q=!1),b!==u.Z_STREAM_END&&b!==u.Z_OK)return this.onEnd(b),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&b!==u.Z_STREAM_END&&(j.avail_in!==0||_!==u.Z_FINISH&&_!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(A=c.utf8border(j.output,j.next_out),O=j.next_out-A,z=c.buf2string(j.output,A),j.next_out=O,j.avail_out=V-O,O&&o.arraySet(j.output,j.output,A,O,0),this.onData(z)):this.onData(o.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(Q=!0)}while((0<j.avail_in||j.avail_out===0)&&b!==u.Z_STREAM_END);return b===u.Z_STREAM_END&&(_=u.Z_FINISH),_===u.Z_FINISH?(b=r.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===u.Z_OK):_!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(j.avail_out=0))},h.prototype.onData=function(f){this.chunks.push(f)},h.prototype.onEnd=function(f){f===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},a.Inflate=h,a.inflate=g,a.inflateRaw=function(f,y){return(y=y||{}).raw=!0,g(f,y)},a.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,n,a){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(u){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var m=p.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var v in m)m.hasOwnProperty(v)&&(u[v]=m[v])}}return u},a.shrinkBuf=function(u,p){return u.length===p?u:u.subarray?u.subarray(0,p):(u.length=p,u)};var o={arraySet:function(u,p,m,v,x){if(p.subarray&&u.subarray)u.set(p.subarray(m,m+v),x);else for(var h=0;h<v;h++)u[x+h]=p[m+h]},flattenChunks:function(u){var p,m,v,x,h,g;for(p=v=0,m=u.length;p<m;p++)v+=u[p].length;for(g=new Uint8Array(v),p=x=0,m=u.length;p<m;p++)h=u[p],g.set(h,x),x+=h.length;return g}},c={arraySet:function(u,p,m,v,x){for(var h=0;h<v;h++)u[x+h]=p[m+h]},flattenChunks:function(u){return[].concat.apply([],u)}};a.setTyped=function(u){u?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,o)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,c))},a.setTyped(r)},{}],42:[function(e,n,a){var r=e("./common"),o=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{c=!1}for(var u=new r.Buf8(256),p=0;p<256;p++)u[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function m(v,x){if(x<65537&&(v.subarray&&c||!v.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(v,x));for(var h="",g=0;g<x;g++)h+=String.fromCharCode(v[g]);return h}u[254]=u[254]=1,a.string2buf=function(v){var x,h,g,f,y,b=v.length,_=0;for(f=0;f<b;f++)(64512&(h=v.charCodeAt(f)))==55296&&f+1<b&&(64512&(g=v.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(g-56320),f++),_+=h<128?1:h<2048?2:h<65536?3:4;for(x=new r.Buf8(_),f=y=0;y<_;f++)(64512&(h=v.charCodeAt(f)))==55296&&f+1<b&&(64512&(g=v.charCodeAt(f+1)))==56320&&(h=65536+(h-55296<<10)+(g-56320),f++),h<128?x[y++]=h:(h<2048?x[y++]=192|h>>>6:(h<65536?x[y++]=224|h>>>12:(x[y++]=240|h>>>18,x[y++]=128|h>>>12&63),x[y++]=128|h>>>6&63),x[y++]=128|63&h);return x},a.buf2binstring=function(v){return m(v,v.length)},a.binstring2buf=function(v){for(var x=new r.Buf8(v.length),h=0,g=x.length;h<g;h++)x[h]=v.charCodeAt(h);return x},a.buf2string=function(v,x){var h,g,f,y,b=x||v.length,_=new Array(2*b);for(h=g=0;h<b;)if((f=v[h++])<128)_[g++]=f;else if(4<(y=u[f]))_[g++]=65533,h+=y-1;else{for(f&=y===2?31:y===3?15:7;1<y&&h<b;)f=f<<6|63&v[h++],y--;1<y?_[g++]=65533:f<65536?_[g++]=f:(f-=65536,_[g++]=55296|f>>10&1023,_[g++]=56320|1023&f)}return m(_,g)},a.utf8border=function(v,x){var h;for((x=x||v.length)>v.length&&(x=v.length),h=x-1;0<=h&&(192&v[h])==128;)h--;return h<0||h===0?x:h+u[v[h]]>x?h:x}},{"./common":41}],43:[function(e,n,a){n.exports=function(r,o,c,u){for(var p=65535&r|0,m=r>>>16&65535|0,v=0;c!==0;){for(c-=v=2e3<c?2e3:c;m=m+(p=p+o[u++]|0)|0,--v;);p%=65521,m%=65521}return p|m<<16|0}},{}],44:[function(e,n,a){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,n,a){var r=function(){for(var o,c=[],u=0;u<256;u++){o=u;for(var p=0;p<8;p++)o=1&o?3988292384^o>>>1:o>>>1;c[u]=o}return c}();n.exports=function(o,c,u,p){var m=r,v=p+u;o^=-1;for(var x=p;x<v;x++)o=o>>>8^m[255&(o^c[x])];return-1^o}},{}],46:[function(e,n,a){var r,o=e("../utils/common"),c=e("./trees"),u=e("./adler32"),p=e("./crc32"),m=e("./messages"),v=0,x=4,h=0,g=-2,f=-1,y=4,b=2,_=8,A=9,O=286,z=30,H=19,j=2*O+1,V=15,R=3,Q=258,he=Q+R+1,E=42,M=113,d=1,W=2,ge=3,K=4;function ve(l,U){return l.msg=m[U],U}function J(l){return(l<<1)-(4<l?9:0)}function me(l){for(var U=l.length;0<=--U;)l[U]=0}function L(l){var U=l.state,N=U.pending;N>l.avail_out&&(N=l.avail_out),N!==0&&(o.arraySet(l.output,U.pending_buf,U.pending_out,N,l.next_out),l.next_out+=N,U.pending_out+=N,l.total_out+=N,l.avail_out-=N,U.pending-=N,U.pending===0&&(U.pending_out=0))}function D(l,U){c._tr_flush_block(l,0<=l.block_start?l.block_start:-1,l.strstart-l.block_start,U),l.block_start=l.strstart,L(l.strm)}function pe(l,U){l.pending_buf[l.pending++]=U}function ne(l,U){l.pending_buf[l.pending++]=U>>>8&255,l.pending_buf[l.pending++]=255&U}function ee(l,U){var N,k,w=l.max_chain_length,B=l.strstart,$=l.prev_length,Z=l.nice_match,F=l.strstart>l.w_size-he?l.strstart-(l.w_size-he):0,q=l.window,ae=l.w_mask,X=l.prev,ce=l.strstart+Q,Ee=q[B+$-1],ke=q[B+$];l.prev_length>=l.good_match&&(w>>=2),Z>l.lookahead&&(Z=l.lookahead);do if(q[(N=U)+$]===ke&&q[N+$-1]===Ee&&q[N]===q[B]&&q[++N]===q[B+1]){B+=2,N++;do;while(q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&q[++B]===q[++N]&&B<ce);if(k=Q-(ce-B),B=ce-Q,$<k){if(l.match_start=U,Z<=($=k))break;Ee=q[B+$-1],ke=q[B+$]}}while((U=X[U&ae])>F&&--w!=0);return $<=l.lookahead?$:l.lookahead}function De(l){var U,N,k,w,B,$,Z,F,q,ae,X=l.w_size;do{if(w=l.window_size-l.lookahead-l.strstart,l.strstart>=X+(X-he)){for(o.arraySet(l.window,l.window,X,X,0),l.match_start-=X,l.strstart-=X,l.block_start-=X,U=N=l.hash_size;k=l.head[--U],l.head[U]=X<=k?k-X:0,--N;);for(U=N=X;k=l.prev[--U],l.prev[U]=X<=k?k-X:0,--N;);w+=X}if(l.strm.avail_in===0)break;if($=l.strm,Z=l.window,F=l.strstart+l.lookahead,q=w,ae=void 0,ae=$.avail_in,q<ae&&(ae=q),N=ae===0?0:($.avail_in-=ae,o.arraySet(Z,$.input,$.next_in,ae,F),$.state.wrap===1?$.adler=u($.adler,Z,ae,F):$.state.wrap===2&&($.adler=p($.adler,Z,ae,F)),$.next_in+=ae,$.total_in+=ae,ae),l.lookahead+=N,l.lookahead+l.insert>=R)for(B=l.strstart-l.insert,l.ins_h=l.window[B],l.ins_h=(l.ins_h<<l.hash_shift^l.window[B+1])&l.hash_mask;l.insert&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[B+R-1])&l.hash_mask,l.prev[B&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=B,B++,l.insert--,!(l.lookahead+l.insert<R)););}while(l.lookahead<he&&l.strm.avail_in!==0)}function Re(l,U){for(var N,k;;){if(l.lookahead<he){if(De(l),l.lookahead<he&&U===v)return d;if(l.lookahead===0)break}if(N=0,l.lookahead>=R&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+R-1])&l.hash_mask,N=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart),N!==0&&l.strstart-N<=l.w_size-he&&(l.match_length=ee(l,N)),l.match_length>=R)if(k=c._tr_tally(l,l.strstart-l.match_start,l.match_length-R),l.lookahead-=l.match_length,l.match_length<=l.max_lazy_match&&l.lookahead>=R){for(l.match_length--;l.strstart++,l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+R-1])&l.hash_mask,N=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart,--l.match_length!=0;);l.strstart++}else l.strstart+=l.match_length,l.match_length=0,l.ins_h=l.window[l.strstart],l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+1])&l.hash_mask;else k=c._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++;if(k&&(D(l,!1),l.strm.avail_out===0))return d}return l.insert=l.strstart<R-1?l.strstart:R-1,U===x?(D(l,!0),l.strm.avail_out===0?ge:K):l.last_lit&&(D(l,!1),l.strm.avail_out===0)?d:W}function xe(l,U){for(var N,k,w;;){if(l.lookahead<he){if(De(l),l.lookahead<he&&U===v)return d;if(l.lookahead===0)break}if(N=0,l.lookahead>=R&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+R-1])&l.hash_mask,N=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart),l.prev_length=l.match_length,l.prev_match=l.match_start,l.match_length=R-1,N!==0&&l.prev_length<l.max_lazy_match&&l.strstart-N<=l.w_size-he&&(l.match_length=ee(l,N),l.match_length<=5&&(l.strategy===1||l.match_length===R&&4096<l.strstart-l.match_start)&&(l.match_length=R-1)),l.prev_length>=R&&l.match_length<=l.prev_length){for(w=l.strstart+l.lookahead-R,k=c._tr_tally(l,l.strstart-1-l.prev_match,l.prev_length-R),l.lookahead-=l.prev_length-1,l.prev_length-=2;++l.strstart<=w&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+R-1])&l.hash_mask,N=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart),--l.prev_length!=0;);if(l.match_available=0,l.match_length=R-1,l.strstart++,k&&(D(l,!1),l.strm.avail_out===0))return d}else if(l.match_available){if((k=c._tr_tally(l,0,l.window[l.strstart-1]))&&D(l,!1),l.strstart++,l.lookahead--,l.strm.avail_out===0)return d}else l.match_available=1,l.strstart++,l.lookahead--}return l.match_available&&(k=c._tr_tally(l,0,l.window[l.strstart-1]),l.match_available=0),l.insert=l.strstart<R-1?l.strstart:R-1,U===x?(D(l,!0),l.strm.avail_out===0?ge:K):l.last_lit&&(D(l,!1),l.strm.avail_out===0)?d:W}function _e(l,U,N,k,w){this.good_length=l,this.max_lazy=U,this.nice_length=N,this.max_chain=k,this.func=w}function je(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*j),this.dyn_dtree=new o.Buf16(2*(2*z+1)),this.bl_tree=new o.Buf16(2*(2*H+1)),me(this.dyn_ltree),me(this.dyn_dtree),me(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(V+1),this.heap=new o.Buf16(2*O+1),me(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*O+1),me(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Te(l){var U;return l&&l.state?(l.total_in=l.total_out=0,l.data_type=b,(U=l.state).pending=0,U.pending_out=0,U.wrap<0&&(U.wrap=-U.wrap),U.status=U.wrap?E:M,l.adler=U.wrap===2?0:1,U.last_flush=v,c._tr_init(U),h):ve(l,g)}function Ze(l){var U=Te(l);return U===h&&function(N){N.window_size=2*N.w_size,me(N.head),N.max_lazy_match=r[N.level].max_lazy,N.good_match=r[N.level].good_length,N.nice_match=r[N.level].nice_length,N.max_chain_length=r[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=R-1,N.match_available=0,N.ins_h=0}(l.state),U}function We(l,U,N,k,w,B){if(!l)return g;var $=1;if(U===f&&(U=6),k<0?($=0,k=-k):15<k&&($=2,k-=16),w<1||A<w||N!==_||k<8||15<k||U<0||9<U||B<0||y<B)return ve(l,g);k===8&&(k=9);var Z=new je;return(l.state=Z).strm=l,Z.wrap=$,Z.gzhead=null,Z.w_bits=k,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=w+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+R-1)/R),Z.window=new o.Buf8(2*Z.w_size),Z.head=new o.Buf16(Z.hash_size),Z.prev=new o.Buf16(Z.w_size),Z.lit_bufsize=1<<w+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new o.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=U,Z.strategy=B,Z.method=N,Ze(l)}r=[new _e(0,0,0,0,function(l,U){var N=65535;for(N>l.pending_buf_size-5&&(N=l.pending_buf_size-5);;){if(l.lookahead<=1){if(De(l),l.lookahead===0&&U===v)return d;if(l.lookahead===0)break}l.strstart+=l.lookahead,l.lookahead=0;var k=l.block_start+N;if((l.strstart===0||l.strstart>=k)&&(l.lookahead=l.strstart-k,l.strstart=k,D(l,!1),l.strm.avail_out===0)||l.strstart-l.block_start>=l.w_size-he&&(D(l,!1),l.strm.avail_out===0))return d}return l.insert=0,U===x?(D(l,!0),l.strm.avail_out===0?ge:K):(l.strstart>l.block_start&&(D(l,!1),l.strm.avail_out),d)}),new _e(4,4,8,4,Re),new _e(4,5,16,8,Re),new _e(4,6,32,32,Re),new _e(4,4,16,16,xe),new _e(8,16,32,32,xe),new _e(8,16,128,128,xe),new _e(8,32,128,256,xe),new _e(32,128,258,1024,xe),new _e(32,258,258,4096,xe)],a.deflateInit=function(l,U){return We(l,U,_,15,8,0)},a.deflateInit2=We,a.deflateReset=Ze,a.deflateResetKeep=Te,a.deflateSetHeader=function(l,U){return l&&l.state?l.state.wrap!==2?g:(l.state.gzhead=U,h):g},a.deflate=function(l,U){var N,k,w,B;if(!l||!l.state||5<U||U<0)return l?ve(l,g):g;if(k=l.state,!l.output||!l.input&&l.avail_in!==0||k.status===666&&U!==x)return ve(l,l.avail_out===0?-5:g);if(k.strm=l,N=k.last_flush,k.last_flush=U,k.status===E)if(k.wrap===2)l.adler=0,pe(k,31),pe(k,139),pe(k,8),k.gzhead?(pe(k,(k.gzhead.text?1:0)+(k.gzhead.hcrc?2:0)+(k.gzhead.extra?4:0)+(k.gzhead.name?8:0)+(k.gzhead.comment?16:0)),pe(k,255&k.gzhead.time),pe(k,k.gzhead.time>>8&255),pe(k,k.gzhead.time>>16&255),pe(k,k.gzhead.time>>24&255),pe(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),pe(k,255&k.gzhead.os),k.gzhead.extra&&k.gzhead.extra.length&&(pe(k,255&k.gzhead.extra.length),pe(k,k.gzhead.extra.length>>8&255)),k.gzhead.hcrc&&(l.adler=p(l.adler,k.pending_buf,k.pending,0)),k.gzindex=0,k.status=69):(pe(k,0),pe(k,0),pe(k,0),pe(k,0),pe(k,0),pe(k,k.level===9?2:2<=k.strategy||k.level<2?4:0),pe(k,3),k.status=M);else{var $=_+(k.w_bits-8<<4)<<8;$|=(2<=k.strategy||k.level<2?0:k.level<6?1:k.level===6?2:3)<<6,k.strstart!==0&&($|=32),$+=31-$%31,k.status=M,ne(k,$),k.strstart!==0&&(ne(k,l.adler>>>16),ne(k,65535&l.adler)),l.adler=1}if(k.status===69)if(k.gzhead.extra){for(w=k.pending;k.gzindex<(65535&k.gzhead.extra.length)&&(k.pending!==k.pending_buf_size||(k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),L(l),w=k.pending,k.pending!==k.pending_buf_size));)pe(k,255&k.gzhead.extra[k.gzindex]),k.gzindex++;k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),k.gzindex===k.gzhead.extra.length&&(k.gzindex=0,k.status=73)}else k.status=73;if(k.status===73)if(k.gzhead.name){w=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),L(l),w=k.pending,k.pending===k.pending_buf_size)){B=1;break}B=k.gzindex<k.gzhead.name.length?255&k.gzhead.name.charCodeAt(k.gzindex++):0,pe(k,B)}while(B!==0);k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),B===0&&(k.gzindex=0,k.status=91)}else k.status=91;if(k.status===91)if(k.gzhead.comment){w=k.pending;do{if(k.pending===k.pending_buf_size&&(k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),L(l),w=k.pending,k.pending===k.pending_buf_size)){B=1;break}B=k.gzindex<k.gzhead.comment.length?255&k.gzhead.comment.charCodeAt(k.gzindex++):0,pe(k,B)}while(B!==0);k.gzhead.hcrc&&k.pending>w&&(l.adler=p(l.adler,k.pending_buf,k.pending-w,w)),B===0&&(k.status=103)}else k.status=103;if(k.status===103&&(k.gzhead.hcrc?(k.pending+2>k.pending_buf_size&&L(l),k.pending+2<=k.pending_buf_size&&(pe(k,255&l.adler),pe(k,l.adler>>8&255),l.adler=0,k.status=M)):k.status=M),k.pending!==0){if(L(l),l.avail_out===0)return k.last_flush=-1,h}else if(l.avail_in===0&&J(U)<=J(N)&&U!==x)return ve(l,-5);if(k.status===666&&l.avail_in!==0)return ve(l,-5);if(l.avail_in!==0||k.lookahead!==0||U!==v&&k.status!==666){var Z=k.strategy===2?function(F,q){for(var ae;;){if(F.lookahead===0&&(De(F),F.lookahead===0)){if(q===v)return d;break}if(F.match_length=0,ae=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++,ae&&(D(F,!1),F.strm.avail_out===0))return d}return F.insert=0,q===x?(D(F,!0),F.strm.avail_out===0?ge:K):F.last_lit&&(D(F,!1),F.strm.avail_out===0)?d:W}(k,U):k.strategy===3?function(F,q){for(var ae,X,ce,Ee,ke=F.window;;){if(F.lookahead<=Q){if(De(F),F.lookahead<=Q&&q===v)return d;if(F.lookahead===0)break}if(F.match_length=0,F.lookahead>=R&&0<F.strstart&&(X=ke[ce=F.strstart-1])===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]){Ee=F.strstart+Q;do;while(X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&X===ke[++ce]&&ce<Ee);F.match_length=Q-(Ee-ce),F.match_length>F.lookahead&&(F.match_length=F.lookahead)}if(F.match_length>=R?(ae=c._tr_tally(F,1,F.match_length-R),F.lookahead-=F.match_length,F.strstart+=F.match_length,F.match_length=0):(ae=c._tr_tally(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++),ae&&(D(F,!1),F.strm.avail_out===0))return d}return F.insert=0,q===x?(D(F,!0),F.strm.avail_out===0?ge:K):F.last_lit&&(D(F,!1),F.strm.avail_out===0)?d:W}(k,U):r[k.level].func(k,U);if(Z!==ge&&Z!==K||(k.status=666),Z===d||Z===ge)return l.avail_out===0&&(k.last_flush=-1),h;if(Z===W&&(U===1?c._tr_align(k):U!==5&&(c._tr_stored_block(k,0,0,!1),U===3&&(me(k.head),k.lookahead===0&&(k.strstart=0,k.block_start=0,k.insert=0))),L(l),l.avail_out===0))return k.last_flush=-1,h}return U!==x?h:k.wrap<=0?1:(k.wrap===2?(pe(k,255&l.adler),pe(k,l.adler>>8&255),pe(k,l.adler>>16&255),pe(k,l.adler>>24&255),pe(k,255&l.total_in),pe(k,l.total_in>>8&255),pe(k,l.total_in>>16&255),pe(k,l.total_in>>24&255)):(ne(k,l.adler>>>16),ne(k,65535&l.adler)),L(l),0<k.wrap&&(k.wrap=-k.wrap),k.pending!==0?h:1)},a.deflateEnd=function(l){var U;return l&&l.state?(U=l.state.status)!==E&&U!==69&&U!==73&&U!==91&&U!==103&&U!==M&&U!==666?ve(l,g):(l.state=null,U===M?ve(l,-3):h):g},a.deflateSetDictionary=function(l,U){var N,k,w,B,$,Z,F,q,ae=U.length;if(!l||!l.state||(B=(N=l.state).wrap)===2||B===1&&N.status!==E||N.lookahead)return g;for(B===1&&(l.adler=u(l.adler,U,ae,0)),N.wrap=0,ae>=N.w_size&&(B===0&&(me(N.head),N.strstart=0,N.block_start=0,N.insert=0),q=new o.Buf8(N.w_size),o.arraySet(q,U,ae-N.w_size,N.w_size,0),U=q,ae=N.w_size),$=l.avail_in,Z=l.next_in,F=l.input,l.avail_in=ae,l.next_in=0,l.input=U,De(N);N.lookahead>=R;){for(k=N.strstart,w=N.lookahead-(R-1);N.ins_h=(N.ins_h<<N.hash_shift^N.window[k+R-1])&N.hash_mask,N.prev[k&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=k,k++,--w;);N.strstart=k,N.lookahead=R-1,De(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=R-1,N.match_available=0,l.next_in=Z,l.input=F,l.avail_in=$,N.wrap=B,h},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,n,a){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,n,a){n.exports=function(r,o){var c,u,p,m,v,x,h,g,f,y,b,_,A,O,z,H,j,V,R,Q,he,E,M,d,W;c=r.state,u=r.next_in,d=r.input,p=u+(r.avail_in-5),m=r.next_out,W=r.output,v=m-(o-r.avail_out),x=m+(r.avail_out-257),h=c.dmax,g=c.wsize,f=c.whave,y=c.wnext,b=c.window,_=c.hold,A=c.bits,O=c.lencode,z=c.distcode,H=(1<<c.lenbits)-1,j=(1<<c.distbits)-1;e:do{A<15&&(_+=d[u++]<<A,A+=8,_+=d[u++]<<A,A+=8),V=O[_&H];t:for(;;){if(_>>>=R=V>>>24,A-=R,(R=V>>>16&255)===0)W[m++]=65535&V;else{if(!(16&R)){if((64&R)==0){V=O[(65535&V)+(_&(1<<R)-1)];continue t}if(32&R){c.mode=12;break e}r.msg="invalid literal/length code",c.mode=30;break e}Q=65535&V,(R&=15)&&(A<R&&(_+=d[u++]<<A,A+=8),Q+=_&(1<<R)-1,_>>>=R,A-=R),A<15&&(_+=d[u++]<<A,A+=8,_+=d[u++]<<A,A+=8),V=z[_&j];r:for(;;){if(_>>>=R=V>>>24,A-=R,!(16&(R=V>>>16&255))){if((64&R)==0){V=z[(65535&V)+(_&(1<<R)-1)];continue r}r.msg="invalid distance code",c.mode=30;break e}if(he=65535&V,A<(R&=15)&&(_+=d[u++]<<A,(A+=8)<R&&(_+=d[u++]<<A,A+=8)),h<(he+=_&(1<<R)-1)){r.msg="invalid distance too far back",c.mode=30;break e}if(_>>>=R,A-=R,(R=m-v)<he){if(f<(R=he-R)&&c.sane){r.msg="invalid distance too far back",c.mode=30;break e}if(M=b,(E=0)===y){if(E+=g-R,R<Q){for(Q-=R;W[m++]=b[E++],--R;);E=m-he,M=W}}else if(y<R){if(E+=g+y-R,(R-=y)<Q){for(Q-=R;W[m++]=b[E++],--R;);if(E=0,y<Q){for(Q-=R=y;W[m++]=b[E++],--R;);E=m-he,M=W}}}else if(E+=y-R,R<Q){for(Q-=R;W[m++]=b[E++],--R;);E=m-he,M=W}for(;2<Q;)W[m++]=M[E++],W[m++]=M[E++],W[m++]=M[E++],Q-=3;Q&&(W[m++]=M[E++],1<Q&&(W[m++]=M[E++]))}else{for(E=m-he;W[m++]=W[E++],W[m++]=W[E++],W[m++]=W[E++],2<(Q-=3););Q&&(W[m++]=W[E++],1<Q&&(W[m++]=W[E++]))}break}}break}}while(u<p&&m<x);u-=Q=A>>3,_&=(1<<(A-=Q<<3))-1,r.next_in=u,r.next_out=m,r.avail_in=u<p?p-u+5:5-(u-p),r.avail_out=m<x?x-m+257:257-(m-x),c.hold=_,c.bits=A}},{}],49:[function(e,n,a){var r=e("../utils/common"),o=e("./adler32"),c=e("./crc32"),u=e("./inffast"),p=e("./inftrees"),m=1,v=2,x=0,h=-2,g=1,f=852,y=592;function b(E){return(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function _(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(E){var M;return E&&E.state?(M=E.state,E.total_in=E.total_out=M.total=0,E.msg="",M.wrap&&(E.adler=1&M.wrap),M.mode=g,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new r.Buf32(f),M.distcode=M.distdyn=new r.Buf32(y),M.sane=1,M.back=-1,x):h}function O(E){var M;return E&&E.state?((M=E.state).wsize=0,M.whave=0,M.wnext=0,A(E)):h}function z(E,M){var d,W;return E&&E.state?(W=E.state,M<0?(d=0,M=-M):(d=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?h:(W.window!==null&&W.wbits!==M&&(W.window=null),W.wrap=d,W.wbits=M,O(E))):h}function H(E,M){var d,W;return E?(W=new _,(E.state=W).window=null,(d=z(E,M))!==x&&(E.state=null),d):h}var j,V,R=!0;function Q(E){if(R){var M;for(j=new r.Buf32(512),V=new r.Buf32(32),M=0;M<144;)E.lens[M++]=8;for(;M<256;)E.lens[M++]=9;for(;M<280;)E.lens[M++]=7;for(;M<288;)E.lens[M++]=8;for(p(m,E.lens,0,288,j,0,E.work,{bits:9}),M=0;M<32;)E.lens[M++]=5;p(v,E.lens,0,32,V,0,E.work,{bits:5}),R=!1}E.lencode=j,E.lenbits=9,E.distcode=V,E.distbits=5}function he(E,M,d,W){var ge,K=E.state;return K.window===null&&(K.wsize=1<<K.wbits,K.wnext=0,K.whave=0,K.window=new r.Buf8(K.wsize)),W>=K.wsize?(r.arraySet(K.window,M,d-K.wsize,K.wsize,0),K.wnext=0,K.whave=K.wsize):(W<(ge=K.wsize-K.wnext)&&(ge=W),r.arraySet(K.window,M,d-W,ge,K.wnext),(W-=ge)?(r.arraySet(K.window,M,d-W,W,0),K.wnext=W,K.whave=K.wsize):(K.wnext+=ge,K.wnext===K.wsize&&(K.wnext=0),K.whave<K.wsize&&(K.whave+=ge))),0}a.inflateReset=O,a.inflateReset2=z,a.inflateResetKeep=A,a.inflateInit=function(E){return H(E,15)},a.inflateInit2=H,a.inflate=function(E,M){var d,W,ge,K,ve,J,me,L,D,pe,ne,ee,De,Re,xe,_e,je,Te,Ze,We,l,U,N,k,w=0,B=new r.Buf8(4),$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return h;(d=E.state).mode===12&&(d.mode=13),ve=E.next_out,ge=E.output,me=E.avail_out,K=E.next_in,W=E.input,J=E.avail_in,L=d.hold,D=d.bits,pe=J,ne=me,U=x;e:for(;;)switch(d.mode){case g:if(d.wrap===0){d.mode=13;break}for(;D<16;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(2&d.wrap&&L===35615){B[d.check=0]=255&L,B[1]=L>>>8&255,d.check=c(d.check,B,2,0),D=L=0,d.mode=2;break}if(d.flags=0,d.head&&(d.head.done=!1),!(1&d.wrap)||(((255&L)<<8)+(L>>8))%31){E.msg="incorrect header check",d.mode=30;break}if((15&L)!=8){E.msg="unknown compression method",d.mode=30;break}if(D-=4,l=8+(15&(L>>>=4)),d.wbits===0)d.wbits=l;else if(l>d.wbits){E.msg="invalid window size",d.mode=30;break}d.dmax=1<<l,E.adler=d.check=1,d.mode=512&L?10:12,D=L=0;break;case 2:for(;D<16;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(d.flags=L,(255&d.flags)!=8){E.msg="unknown compression method",d.mode=30;break}if(57344&d.flags){E.msg="unknown header flags set",d.mode=30;break}d.head&&(d.head.text=L>>8&1),512&d.flags&&(B[0]=255&L,B[1]=L>>>8&255,d.check=c(d.check,B,2,0)),D=L=0,d.mode=3;case 3:for(;D<32;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.head&&(d.head.time=L),512&d.flags&&(B[0]=255&L,B[1]=L>>>8&255,B[2]=L>>>16&255,B[3]=L>>>24&255,d.check=c(d.check,B,4,0)),D=L=0,d.mode=4;case 4:for(;D<16;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.head&&(d.head.xflags=255&L,d.head.os=L>>8),512&d.flags&&(B[0]=255&L,B[1]=L>>>8&255,d.check=c(d.check,B,2,0)),D=L=0,d.mode=5;case 5:if(1024&d.flags){for(;D<16;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.length=L,d.head&&(d.head.extra_len=L),512&d.flags&&(B[0]=255&L,B[1]=L>>>8&255,d.check=c(d.check,B,2,0)),D=L=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(J<(ee=d.length)&&(ee=J),ee&&(d.head&&(l=d.head.extra_len-d.length,d.head.extra||(d.head.extra=new Array(d.head.extra_len)),r.arraySet(d.head.extra,W,K,ee,l)),512&d.flags&&(d.check=c(d.check,W,ee,K)),J-=ee,K+=ee,d.length-=ee),d.length))break e;d.length=0,d.mode=7;case 7:if(2048&d.flags){if(J===0)break e;for(ee=0;l=W[K+ee++],d.head&&l&&d.length<65536&&(d.head.name+=String.fromCharCode(l)),l&&ee<J;);if(512&d.flags&&(d.check=c(d.check,W,ee,K)),J-=ee,K+=ee,l)break e}else d.head&&(d.head.name=null);d.length=0,d.mode=8;case 8:if(4096&d.flags){if(J===0)break e;for(ee=0;l=W[K+ee++],d.head&&l&&d.length<65536&&(d.head.comment+=String.fromCharCode(l)),l&&ee<J;);if(512&d.flags&&(d.check=c(d.check,W,ee,K)),J-=ee,K+=ee,l)break e}else d.head&&(d.head.comment=null);d.mode=9;case 9:if(512&d.flags){for(;D<16;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(L!==(65535&d.check)){E.msg="header crc mismatch",d.mode=30;break}D=L=0}d.head&&(d.head.hcrc=d.flags>>9&1,d.head.done=!0),E.adler=d.check=0,d.mode=12;break;case 10:for(;D<32;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}E.adler=d.check=b(L),D=L=0,d.mode=11;case 11:if(d.havedict===0)return E.next_out=ve,E.avail_out=me,E.next_in=K,E.avail_in=J,d.hold=L,d.bits=D,2;E.adler=d.check=1,d.mode=12;case 12:if(M===5||M===6)break e;case 13:if(d.last){L>>>=7&D,D-=7&D,d.mode=27;break}for(;D<3;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}switch(d.last=1&L,D-=1,3&(L>>>=1)){case 0:d.mode=14;break;case 1:if(Q(d),d.mode=20,M!==6)break;L>>>=2,D-=2;break e;case 2:d.mode=17;break;case 3:E.msg="invalid block type",d.mode=30}L>>>=2,D-=2;break;case 14:for(L>>>=7&D,D-=7&D;D<32;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if((65535&L)!=(L>>>16^65535)){E.msg="invalid stored block lengths",d.mode=30;break}if(d.length=65535&L,D=L=0,d.mode=15,M===6)break e;case 15:d.mode=16;case 16:if(ee=d.length){if(J<ee&&(ee=J),me<ee&&(ee=me),ee===0)break e;r.arraySet(ge,W,K,ee,ve),J-=ee,K+=ee,me-=ee,ve+=ee,d.length-=ee;break}d.mode=12;break;case 17:for(;D<14;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(d.nlen=257+(31&L),L>>>=5,D-=5,d.ndist=1+(31&L),L>>>=5,D-=5,d.ncode=4+(15&L),L>>>=4,D-=4,286<d.nlen||30<d.ndist){E.msg="too many length or distance symbols",d.mode=30;break}d.have=0,d.mode=18;case 18:for(;d.have<d.ncode;){for(;D<3;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.lens[$[d.have++]]=7&L,L>>>=3,D-=3}for(;d.have<19;)d.lens[$[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,N={bits:d.lenbits},U=p(0,d.lens,0,19,d.lencode,0,d.work,N),d.lenbits=N.bits,U){E.msg="invalid code lengths set",d.mode=30;break}d.have=0,d.mode=19;case 19:for(;d.have<d.nlen+d.ndist;){for(;_e=(w=d.lencode[L&(1<<d.lenbits)-1])>>>16&255,je=65535&w,!((xe=w>>>24)<=D);){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(je<16)L>>>=xe,D-=xe,d.lens[d.have++]=je;else{if(je===16){for(k=xe+2;D<k;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(L>>>=xe,D-=xe,d.have===0){E.msg="invalid bit length repeat",d.mode=30;break}l=d.lens[d.have-1],ee=3+(3&L),L>>>=2,D-=2}else if(je===17){for(k=xe+3;D<k;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}D-=xe,l=0,ee=3+(7&(L>>>=xe)),L>>>=3,D-=3}else{for(k=xe+7;D<k;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}D-=xe,l=0,ee=11+(127&(L>>>=xe)),L>>>=7,D-=7}if(d.have+ee>d.nlen+d.ndist){E.msg="invalid bit length repeat",d.mode=30;break}for(;ee--;)d.lens[d.have++]=l}}if(d.mode===30)break;if(d.lens[256]===0){E.msg="invalid code -- missing end-of-block",d.mode=30;break}if(d.lenbits=9,N={bits:d.lenbits},U=p(m,d.lens,0,d.nlen,d.lencode,0,d.work,N),d.lenbits=N.bits,U){E.msg="invalid literal/lengths set",d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn,N={bits:d.distbits},U=p(v,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,N),d.distbits=N.bits,U){E.msg="invalid distances set",d.mode=30;break}if(d.mode=20,M===6)break e;case 20:d.mode=21;case 21:if(6<=J&&258<=me){E.next_out=ve,E.avail_out=me,E.next_in=K,E.avail_in=J,d.hold=L,d.bits=D,u(E,ne),ve=E.next_out,ge=E.output,me=E.avail_out,K=E.next_in,W=E.input,J=E.avail_in,L=d.hold,D=d.bits,d.mode===12&&(d.back=-1);break}for(d.back=0;_e=(w=d.lencode[L&(1<<d.lenbits)-1])>>>16&255,je=65535&w,!((xe=w>>>24)<=D);){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(_e&&(240&_e)==0){for(Te=xe,Ze=_e,We=je;_e=(w=d.lencode[We+((L&(1<<Te+Ze)-1)>>Te)])>>>16&255,je=65535&w,!(Te+(xe=w>>>24)<=D);){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}L>>>=Te,D-=Te,d.back+=Te}if(L>>>=xe,D-=xe,d.back+=xe,d.length=je,_e===0){d.mode=26;break}if(32&_e){d.back=-1,d.mode=12;break}if(64&_e){E.msg="invalid literal/length code",d.mode=30;break}d.extra=15&_e,d.mode=22;case 22:if(d.extra){for(k=d.extra;D<k;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.length+=L&(1<<d.extra)-1,L>>>=d.extra,D-=d.extra,d.back+=d.extra}d.was=d.length,d.mode=23;case 23:for(;_e=(w=d.distcode[L&(1<<d.distbits)-1])>>>16&255,je=65535&w,!((xe=w>>>24)<=D);){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if((240&_e)==0){for(Te=xe,Ze=_e,We=je;_e=(w=d.distcode[We+((L&(1<<Te+Ze)-1)>>Te)])>>>16&255,je=65535&w,!(Te+(xe=w>>>24)<=D);){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}L>>>=Te,D-=Te,d.back+=Te}if(L>>>=xe,D-=xe,d.back+=xe,64&_e){E.msg="invalid distance code",d.mode=30;break}d.offset=je,d.extra=15&_e,d.mode=24;case 24:if(d.extra){for(k=d.extra;D<k;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}d.offset+=L&(1<<d.extra)-1,L>>>=d.extra,D-=d.extra,d.back+=d.extra}if(d.offset>d.dmax){E.msg="invalid distance too far back",d.mode=30;break}d.mode=25;case 25:if(me===0)break e;if(ee=ne-me,d.offset>ee){if((ee=d.offset-ee)>d.whave&&d.sane){E.msg="invalid distance too far back",d.mode=30;break}De=ee>d.wnext?(ee-=d.wnext,d.wsize-ee):d.wnext-ee,ee>d.length&&(ee=d.length),Re=d.window}else Re=ge,De=ve-d.offset,ee=d.length;for(me<ee&&(ee=me),me-=ee,d.length-=ee;ge[ve++]=Re[De++],--ee;);d.length===0&&(d.mode=21);break;case 26:if(me===0)break e;ge[ve++]=d.length,me--,d.mode=21;break;case 27:if(d.wrap){for(;D<32;){if(J===0)break e;J--,L|=W[K++]<<D,D+=8}if(ne-=me,E.total_out+=ne,d.total+=ne,ne&&(E.adler=d.check=d.flags?c(d.check,ge,ne,ve-ne):o(d.check,ge,ne,ve-ne)),ne=me,(d.flags?L:b(L))!==d.check){E.msg="incorrect data check",d.mode=30;break}D=L=0}d.mode=28;case 28:if(d.wrap&&d.flags){for(;D<32;){if(J===0)break e;J--,L+=W[K++]<<D,D+=8}if(L!==(4294967295&d.total)){E.msg="incorrect length check",d.mode=30;break}D=L=0}d.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;case 32:default:return h}return E.next_out=ve,E.avail_out=me,E.next_in=K,E.avail_in=J,d.hold=L,d.bits=D,(d.wsize||ne!==E.avail_out&&d.mode<30&&(d.mode<27||M!==4))&&he(E,E.output,E.next_out,ne-E.avail_out)?(d.mode=31,-4):(pe-=E.avail_in,ne-=E.avail_out,E.total_in+=pe,E.total_out+=ne,d.total+=ne,d.wrap&&ne&&(E.adler=d.check=d.flags?c(d.check,ge,ne,E.next_out-ne):o(d.check,ge,ne,E.next_out-ne)),E.data_type=d.bits+(d.last?64:0)+(d.mode===12?128:0)+(d.mode===20||d.mode===15?256:0),(pe==0&&ne===0||M===4)&&U===x&&(U=-5),U)},a.inflateEnd=function(E){if(!E||!E.state)return h;var M=E.state;return M.window&&(M.window=null),E.state=null,x},a.inflateGetHeader=function(E,M){var d;return E&&E.state?(2&(d=E.state).wrap)==0?h:((d.head=M).done=!1,x):h},a.inflateSetDictionary=function(E,M){var d,W=M.length;return E&&E.state?(d=E.state).wrap!==0&&d.mode!==11?h:d.mode===11&&o(1,M,W,0)!==d.check?-3:he(E,M,W,W)?(d.mode=31,-4):(d.havedict=1,x):h},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,n,a){var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(m,v,x,h,g,f,y,b){var _,A,O,z,H,j,V,R,Q,he=b.bits,E=0,M=0,d=0,W=0,ge=0,K=0,ve=0,J=0,me=0,L=0,D=null,pe=0,ne=new r.Buf16(16),ee=new r.Buf16(16),De=null,Re=0;for(E=0;E<=15;E++)ne[E]=0;for(M=0;M<h;M++)ne[v[x+M]]++;for(ge=he,W=15;1<=W&&ne[W]===0;W--);if(W<ge&&(ge=W),W===0)return g[f++]=20971520,g[f++]=20971520,b.bits=1,0;for(d=1;d<W&&ne[d]===0;d++);for(ge<d&&(ge=d),E=J=1;E<=15;E++)if(J<<=1,(J-=ne[E])<0)return-1;if(0<J&&(m===0||W!==1))return-1;for(ee[1]=0,E=1;E<15;E++)ee[E+1]=ee[E]+ne[E];for(M=0;M<h;M++)v[x+M]!==0&&(y[ee[v[x+M]]++]=M);if(j=m===0?(D=De=y,19):m===1?(D=o,pe-=257,De=c,Re-=257,256):(D=u,De=p,-1),E=d,H=f,ve=M=L=0,O=-1,z=(me=1<<(K=ge))-1,m===1&&852<me||m===2&&592<me)return 1;for(;;){for(V=E-ve,Q=y[M]<j?(R=0,y[M]):y[M]>j?(R=De[Re+y[M]],D[pe+y[M]]):(R=96,0),_=1<<E-ve,d=A=1<<K;g[H+(L>>ve)+(A-=_)]=V<<24|R<<16|Q|0,A!==0;);for(_=1<<E-1;L&_;)_>>=1;if(_!==0?(L&=_-1,L+=_):L=0,M++,--ne[E]==0){if(E===W)break;E=v[x+y[M]]}if(ge<E&&(L&z)!==O){for(ve===0&&(ve=ge),H+=d,J=1<<(K=E-ve);K+ve<W&&!((J-=ne[K+ve])<=0);)K++,J<<=1;if(me+=1<<K,m===1&&852<me||m===2&&592<me)return 1;g[O=L&z]=ge<<24|K<<16|H-f|0}}return L!==0&&(g[H+L]=E-ve<<24|64<<16|0),b.bits=ge,0}},{"../utils/common":41}],51:[function(e,n,a){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,n,a){var r=e("../utils/common"),o=0,c=1;function u(w){for(var B=w.length;0<=--B;)w[B]=0}var p=0,m=29,v=256,x=v+1+m,h=30,g=19,f=2*x+1,y=15,b=16,_=7,A=256,O=16,z=17,H=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],V=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],he=new Array(2*(x+2));u(he);var E=new Array(2*h);u(E);var M=new Array(512);u(M);var d=new Array(256);u(d);var W=new Array(m);u(W);var ge,K,ve,J=new Array(h);function me(w,B,$,Z,F){this.static_tree=w,this.extra_bits=B,this.extra_base=$,this.elems=Z,this.max_length=F,this.has_stree=w&&w.length}function L(w,B){this.dyn_tree=w,this.max_code=0,this.stat_desc=B}function D(w){return w<256?M[w]:M[256+(w>>>7)]}function pe(w,B){w.pending_buf[w.pending++]=255&B,w.pending_buf[w.pending++]=B>>>8&255}function ne(w,B,$){w.bi_valid>b-$?(w.bi_buf|=B<<w.bi_valid&65535,pe(w,w.bi_buf),w.bi_buf=B>>b-w.bi_valid,w.bi_valid+=$-b):(w.bi_buf|=B<<w.bi_valid&65535,w.bi_valid+=$)}function ee(w,B,$){ne(w,$[2*B],$[2*B+1])}function De(w,B){for(var $=0;$|=1&w,w>>>=1,$<<=1,0<--B;);return $>>>1}function Re(w,B,$){var Z,F,q=new Array(y+1),ae=0;for(Z=1;Z<=y;Z++)q[Z]=ae=ae+$[Z-1]<<1;for(F=0;F<=B;F++){var X=w[2*F+1];X!==0&&(w[2*F]=De(q[X]++,X))}}function xe(w){var B;for(B=0;B<x;B++)w.dyn_ltree[2*B]=0;for(B=0;B<h;B++)w.dyn_dtree[2*B]=0;for(B=0;B<g;B++)w.bl_tree[2*B]=0;w.dyn_ltree[2*A]=1,w.opt_len=w.static_len=0,w.last_lit=w.matches=0}function _e(w){8<w.bi_valid?pe(w,w.bi_buf):0<w.bi_valid&&(w.pending_buf[w.pending++]=w.bi_buf),w.bi_buf=0,w.bi_valid=0}function je(w,B,$,Z){var F=2*B,q=2*$;return w[F]<w[q]||w[F]===w[q]&&Z[B]<=Z[$]}function Te(w,B,$){for(var Z=w.heap[$],F=$<<1;F<=w.heap_len&&(F<w.heap_len&&je(B,w.heap[F+1],w.heap[F],w.depth)&&F++,!je(B,Z,w.heap[F],w.depth));)w.heap[$]=w.heap[F],$=F,F<<=1;w.heap[$]=Z}function Ze(w,B,$){var Z,F,q,ae,X=0;if(w.last_lit!==0)for(;Z=w.pending_buf[w.d_buf+2*X]<<8|w.pending_buf[w.d_buf+2*X+1],F=w.pending_buf[w.l_buf+X],X++,Z===0?ee(w,F,B):(ee(w,(q=d[F])+v+1,B),(ae=j[q])!==0&&ne(w,F-=W[q],ae),ee(w,q=D(--Z),$),(ae=V[q])!==0&&ne(w,Z-=J[q],ae)),X<w.last_lit;);ee(w,A,B)}function We(w,B){var $,Z,F,q=B.dyn_tree,ae=B.stat_desc.static_tree,X=B.stat_desc.has_stree,ce=B.stat_desc.elems,Ee=-1;for(w.heap_len=0,w.heap_max=f,$=0;$<ce;$++)q[2*$]!==0?(w.heap[++w.heap_len]=Ee=$,w.depth[$]=0):q[2*$+1]=0;for(;w.heap_len<2;)q[2*(F=w.heap[++w.heap_len]=Ee<2?++Ee:0)]=1,w.depth[F]=0,w.opt_len--,X&&(w.static_len-=ae[2*F+1]);for(B.max_code=Ee,$=w.heap_len>>1;1<=$;$--)Te(w,q,$);for(F=ce;$=w.heap[1],w.heap[1]=w.heap[w.heap_len--],Te(w,q,1),Z=w.heap[1],w.heap[--w.heap_max]=$,w.heap[--w.heap_max]=Z,q[2*F]=q[2*$]+q[2*Z],w.depth[F]=(w.depth[$]>=w.depth[Z]?w.depth[$]:w.depth[Z])+1,q[2*$+1]=q[2*Z+1]=F,w.heap[1]=F++,Te(w,q,1),2<=w.heap_len;);w.heap[--w.heap_max]=w.heap[1],function(ke,Ue){var xt,Ge,kt,Ie,Ht,hr,Ye=Ue.dyn_tree,xr=Ue.max_code,dn=Ue.stat_desc.static_tree,pn=Ue.stat_desc.has_stree,hn=Ue.stat_desc.extra_bits,kr=Ue.stat_desc.extra_base,_t=Ue.stat_desc.max_length,Ut=0;for(Ie=0;Ie<=y;Ie++)ke.bl_count[Ie]=0;for(Ye[2*ke.heap[ke.heap_max]+1]=0,xt=ke.heap_max+1;xt<f;xt++)_t<(Ie=Ye[2*Ye[2*(Ge=ke.heap[xt])+1]+1]+1)&&(Ie=_t,Ut++),Ye[2*Ge+1]=Ie,xr<Ge||(ke.bl_count[Ie]++,Ht=0,kr<=Ge&&(Ht=hn[Ge-kr]),hr=Ye[2*Ge],ke.opt_len+=hr*(Ie+Ht),pn&&(ke.static_len+=hr*(dn[2*Ge+1]+Ht)));if(Ut!==0){do{for(Ie=_t-1;ke.bl_count[Ie]===0;)Ie--;ke.bl_count[Ie]--,ke.bl_count[Ie+1]+=2,ke.bl_count[_t]--,Ut-=2}while(0<Ut);for(Ie=_t;Ie!==0;Ie--)for(Ge=ke.bl_count[Ie];Ge!==0;)xr<(kt=ke.heap[--xt])||(Ye[2*kt+1]!==Ie&&(ke.opt_len+=(Ie-Ye[2*kt+1])*Ye[2*kt],Ye[2*kt+1]=Ie),Ge--)}}(w,B),Re(q,Ee,w.bl_count)}function l(w,B,$){var Z,F,q=-1,ae=B[1],X=0,ce=7,Ee=4;for(ae===0&&(ce=138,Ee=3),B[2*($+1)+1]=65535,Z=0;Z<=$;Z++)F=ae,ae=B[2*(Z+1)+1],++X<ce&&F===ae||(X<Ee?w.bl_tree[2*F]+=X:F!==0?(F!==q&&w.bl_tree[2*F]++,w.bl_tree[2*O]++):X<=10?w.bl_tree[2*z]++:w.bl_tree[2*H]++,q=F,Ee=(X=0)===ae?(ce=138,3):F===ae?(ce=6,3):(ce=7,4))}function U(w,B,$){var Z,F,q=-1,ae=B[1],X=0,ce=7,Ee=4;for(ae===0&&(ce=138,Ee=3),Z=0;Z<=$;Z++)if(F=ae,ae=B[2*(Z+1)+1],!(++X<ce&&F===ae)){if(X<Ee)for(;ee(w,F,w.bl_tree),--X!=0;);else F!==0?(F!==q&&(ee(w,F,w.bl_tree),X--),ee(w,O,w.bl_tree),ne(w,X-3,2)):X<=10?(ee(w,z,w.bl_tree),ne(w,X-3,3)):(ee(w,H,w.bl_tree),ne(w,X-11,7));q=F,Ee=(X=0)===ae?(ce=138,3):F===ae?(ce=6,3):(ce=7,4)}}u(J);var N=!1;function k(w,B,$,Z){ne(w,(p<<1)+(Z?1:0),3),function(F,q,ae,X){_e(F),X&&(pe(F,ae),pe(F,~ae)),r.arraySet(F.pending_buf,F.window,q,ae,F.pending),F.pending+=ae}(w,B,$,!0)}a._tr_init=function(w){N||(function(){var B,$,Z,F,q,ae=new Array(y+1);for(F=Z=0;F<m-1;F++)for(W[F]=Z,B=0;B<1<<j[F];B++)d[Z++]=F;for(d[Z-1]=F,F=q=0;F<16;F++)for(J[F]=q,B=0;B<1<<V[F];B++)M[q++]=F;for(q>>=7;F<h;F++)for(J[F]=q<<7,B=0;B<1<<V[F]-7;B++)M[256+q++]=F;for($=0;$<=y;$++)ae[$]=0;for(B=0;B<=143;)he[2*B+1]=8,B++,ae[8]++;for(;B<=255;)he[2*B+1]=9,B++,ae[9]++;for(;B<=279;)he[2*B+1]=7,B++,ae[7]++;for(;B<=287;)he[2*B+1]=8,B++,ae[8]++;for(Re(he,x+1,ae),B=0;B<h;B++)E[2*B+1]=5,E[2*B]=De(B,5);ge=new me(he,j,v+1,x,y),K=new me(E,V,0,h,y),ve=new me(new Array(0),R,0,g,_)}(),N=!0),w.l_desc=new L(w.dyn_ltree,ge),w.d_desc=new L(w.dyn_dtree,K),w.bl_desc=new L(w.bl_tree,ve),w.bi_buf=0,w.bi_valid=0,xe(w)},a._tr_stored_block=k,a._tr_flush_block=function(w,B,$,Z){var F,q,ae=0;0<w.level?(w.strm.data_type===2&&(w.strm.data_type=function(X){var ce,Ee=4093624447;for(ce=0;ce<=31;ce++,Ee>>>=1)if(1&Ee&&X.dyn_ltree[2*ce]!==0)return o;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return c;for(ce=32;ce<v;ce++)if(X.dyn_ltree[2*ce]!==0)return c;return o}(w)),We(w,w.l_desc),We(w,w.d_desc),ae=function(X){var ce;for(l(X,X.dyn_ltree,X.l_desc.max_code),l(X,X.dyn_dtree,X.d_desc.max_code),We(X,X.bl_desc),ce=g-1;3<=ce&&X.bl_tree[2*Q[ce]+1]===0;ce--);return X.opt_len+=3*(ce+1)+5+5+4,ce}(w),F=w.opt_len+3+7>>>3,(q=w.static_len+3+7>>>3)<=F&&(F=q)):F=q=$+5,$+4<=F&&B!==-1?k(w,B,$,Z):w.strategy===4||q===F?(ne(w,2+(Z?1:0),3),Ze(w,he,E)):(ne(w,4+(Z?1:0),3),function(X,ce,Ee,ke){var Ue;for(ne(X,ce-257,5),ne(X,Ee-1,5),ne(X,ke-4,4),Ue=0;Ue<ke;Ue++)ne(X,X.bl_tree[2*Q[Ue]+1],3);U(X,X.dyn_ltree,ce-1),U(X,X.dyn_dtree,Ee-1)}(w,w.l_desc.max_code+1,w.d_desc.max_code+1,ae+1),Ze(w,w.dyn_ltree,w.dyn_dtree)),xe(w),Z&&_e(w)},a._tr_tally=function(w,B,$){return w.pending_buf[w.d_buf+2*w.last_lit]=B>>>8&255,w.pending_buf[w.d_buf+2*w.last_lit+1]=255&B,w.pending_buf[w.l_buf+w.last_lit]=255&$,w.last_lit++,B===0?w.dyn_ltree[2*$]++:(w.matches++,B--,w.dyn_ltree[2*(d[$]+v+1)]++,w.dyn_dtree[2*D(B)]++),w.last_lit===w.lit_bufsize-1},a._tr_align=function(w){ne(w,2,3),ee(w,A,he),function(B){B.bi_valid===16?(pe(B,B.bi_buf),B.bi_buf=0,B.bi_valid=0):8<=B.bi_valid&&(B.pending_buf[B.pending++]=255&B.bi_buf,B.bi_buf>>=8,B.bi_valid-=8)}(w)}},{"../utils/common":41}],53:[function(e,n,a){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,n,a){(function(r){(function(o,c){if(!o.setImmediate){var u,p,m,v,x=1,h={},g=!1,f=o.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(o);y=y&&y.setTimeout?y:o,u={}.toString.call(o.process)==="[object process]"?function(O){process.nextTick(function(){_(O)})}:function(){if(o.postMessage&&!o.importScripts){var O=!0,z=o.onmessage;return o.onmessage=function(){O=!1},o.postMessage("","*"),o.onmessage=z,O}}()?(v="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",A,!1):o.attachEvent("onmessage",A),function(O){o.postMessage(v+O,"*")}):o.MessageChannel?((m=new MessageChannel).port1.onmessage=function(O){_(O.data)},function(O){m.port2.postMessage(O)}):f&&"onreadystatechange"in f.createElement("script")?(p=f.documentElement,function(O){var z=f.createElement("script");z.onreadystatechange=function(){_(O),z.onreadystatechange=null,p.removeChild(z),z=null},p.appendChild(z)}):function(O){setTimeout(_,0,O)},y.setImmediate=function(O){typeof O!="function"&&(O=new Function(""+O));for(var z=new Array(arguments.length-1),H=0;H<z.length;H++)z[H]=arguments[H+1];var j={callback:O,args:z};return h[x]=j,u(x),x++},y.clearImmediate=b}function b(O){delete h[O]}function _(O){if(g)setTimeout(_,0,O);else{var z=h[O];if(z){g=!0;try{(function(H){var j=H.callback,V=H.args;switch(V.length){case 0:j();break;case 1:j(V[0]);break;case 2:j(V[0],V[1]);break;case 3:j(V[0],V[1],V[2]);break;default:j.apply(c,V)}})(z)}finally{b(O),g=!1}}}}function A(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(v)===0&&_(+O.data.slice(v.length))}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ct);function Vt(i){return i==null?void 0:i.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function qe(i){var t=i.lastIndexOf("/")+1,e=t==0?"":i.substring(0,t),n=t==0?i:i.substring(t);return[e,n]}function pt(i,t){try{var e="http://docx/",n=new URL(i,e+t).toString();return n.substring(e.length)}catch{return"".concat(t).concat(i)}}function tt(i,t){return i.reduce(function(e,n){return e[t(n)]=n,e},{})}function Wt(i){return new Promise(function(t,e){var n=new FileReader;n.onloadend=function(){return t(n.result.replace(/application\/octet\-stream;/,"image/png;"))},n.readAsDataURL(i)})}function it(i){return i&&typeof i=="object"&&!Array.isArray(i)}function ot(i){for(var t,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length)return i;var a=e.shift();if(it(i)&&it(a))for(var r in a)if(it(a[r])){var o=(t=i[r])!==null&&t!==void 0?t:i[r]={};ot(o,a[r])}else i[r]=a[r];return ot.apply(void 0,ye([i],e,!1))}var $t=function(){function i(t,e){Object.defineProperty(this,"_zip",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"xmlParser",{enumerable:!0,configurable:!0,writable:!0,value:new Je})}return Object.defineProperty(i.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return this._zip.files[Zt(t)]}}),Object.defineProperty(i.prototype,"update",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){this._zip.file(t,e)}}),Object.defineProperty(i,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return Ct.exports.loadAsync(t).then(function(n){return new i(n,e)})}}),Object.defineProperty(i.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t===void 0&&(t="blob"),this._zip.generateAsync({type:t})}}),Object.defineProperty(i.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n,a;return e===void 0&&(e="string"),(a=(n=this.get(t))===null||n===void 0?void 0:n.async(e))!==null&&a!==void 0?a:Promise.resolve(null)}}),Object.defineProperty(i.prototype,"loadRelationships",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this;t===void 0&&(t=null);var n="_rels/.rels";if(t!=null){var a=qe(t),r=a[0],o=a[1];n="".concat(r,"_rels/").concat(o,".rels")}return this.load(n).then(function(c){return c?Ce(e.parseXmlDocument(c).firstElementChild,e.xmlParser):null})}}),Object.defineProperty(i.prototype,"parseXmlDocument",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return Oe(t,this.options.trimXmlDeclaration)}}),i}();function Zt(i){return i.startsWith("/")?i.substr(1):i}var St=function(i){re(t,i);function t(e,n,a){var r=i.call(this,e,n)||this;return Object.defineProperty(r,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._documentParser=a,r}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}),t}(Le);function et(i,t){return{type:t.attr(i,"val"),color:t.attr(i,"color"),size:t.lengthAttr(i,"sz",oe.Border),offset:t.lengthAttr(i,"space",oe.Point),frame:t.boolAttr(i,"frame"),shadow:t.boolAttr(i,"shadow")}}function Gt(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"left":e.left=et(r,t);break;case"top":e.top=et(r,t);break;case"right":e.right=et(r,t);break;case"bottom":e.bottom=et(r,t);break}}return e}var Et;(function(i){i.Continuous="continuous",i.NextPage="nextPage",i.NextColumn="nextColumn",i.EvenPage="evenPage",i.OddPage="oddPage"})(Et||(Et={}));function st(i,t){var e,n;t===void 0&&(t=T);for(var a={},r=0,o=t.elements(i);r<o.length;r++){var c=o[r];switch(c.localName){case"pgSz":a.pageSize={width:t.lengthAttr(c,"w"),height:t.lengthAttr(c,"h"),orientation:t.attr(c,"orient")};break;case"type":a.type=t.attr(c,"val");break;case"pgMar":a.pageMargins={left:t.lengthAttr(c,"left"),right:t.lengthAttr(c,"right"),top:t.lengthAttr(c,"top"),bottom:t.lengthAttr(c,"bottom"),header:t.lengthAttr(c,"header"),footer:t.lengthAttr(c,"footer"),gutter:t.lengthAttr(c,"gutter")};break;case"cols":a.columns=Kt(c,t);break;case"headerReference":((e=a.headerRefs)!==null&&e!==void 0?e:a.headerRefs=[]).push(ht(c,t));break;case"footerReference":((n=a.footerRefs)!==null&&n!==void 0?n:a.footerRefs=[]).push(ht(c,t));break;case"titlePg":a.titlePage=t.boolAttr(c,"val",!0);break;case"pgBorders":a.pageBorders=Gt(c,t);break;case"pgNumType":a.pageNumber=Jt(c,t);break}}return a}function Kt(i,t){return{numberOfColumns:t.intAttr(i,"num"),space:t.lengthAttr(i,"space"),separator:t.boolAttr(i,"sep"),equalWidth:t.boolAttr(i,"equalWidth",!0),columns:t.elements(i,"col").map(function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}})}}function Jt(i,t){return{chapSep:t.attr(i,"chapSep"),chapStyle:t.attr(i,"chapStyle"),format:t.attr(i,"fmt"),start:t.intAttr(i,"start")}}function ht(i,t){return{id:t.attr(i,"id"),type:t.attr(i,"type")}}function fr(i,t){return{before:t.lengthAttr(i,"before"),after:t.lengthAttr(i,"after"),line:t.intAttr(i,"line"),lineRule:t.attr(i,"lineRule")}}function At(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];Pt(r,e,t)}return e}function Pt(i,t,e){return!!Ve(i,t,e)}function ft(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];mt(r,e,t)}return e}function mt(i,t,e){if(i.namespaceURI!=Me.wordml)return!1;if(Ve(i,t,e))return!0;switch(i.localName){case"tabs":t.tabs=Bt(i,e);break;case"sectPr":t.sectionProps=st(i,e);break;case"numPr":t.numbering=zt(i,e);break;case"spacing":return t.lineSpacing=fr(i,e),!1;case"textAlignment":return t.textAlignment=e.attr(i,"val"),!1;case"keepNext":t.keepLines=e.boolAttr(i,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=e.boolAttr(i,"val",!0);break;case"outlineLvl":t.outlineLevel=e.intAttr(i,"val");break;case"pStyle":t.styleName=e.attr(i,"val");break;case"rPr":t.runProps=At(i,e);break;default:return!1}return!0}function Bt(i,t){return t.elements(i,"tab").map(function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}})}function zt(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"numId":e.id=t.attr(r,"val");break;case"ilvl":e.level=t.intAttr(r,"val");break}}return e}function Ot(i,t){for(var e={numberings:[],abstractNumberings:[],bulletPictures:[]},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"num":e.numberings.push(lt(r,t));break;case"abstractNum":e.abstractNumberings.push(Ft(r,t));break;case"numPicBullet":e.bulletPictures.push(Dt(r,t));break}}return e}function lt(i,t){for(var e={id:t.attr(i,"numId"),overrides:[]},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"abstractNumId":e.abstractId=t.attr(r,"val");break;case"lvlOverride":e.overrides.push(qt(r,t));break}}return e}function Ft(i,t){for(var e={id:t.attr(i,"abstractNumId"),levels:[]},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"name":e.name=t.attr(r,"val");break;case"multiLevelType":e.multiLevelType=t.attr(r,"val");break;case"numStyleLink":e.numberingStyleLink=t.attr(r,"val");break;case"styleLink":e.styleLink=t.attr(r,"val");break;case"lvl":e.levels.push(bt(r,t));break}}return e}function bt(i,t){for(var e={level:t.intAttr(i,"ilvl")},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"start":e.start=t.attr(r,"val");break;case"lvlRestart":e.restart=t.intAttr(r,"val");break;case"numFmt":e.format=t.attr(r,"val");break;case"lvlText":e.text=t.attr(r,"val");break;case"lvlJc":e.justification=t.attr(r,"val");break;case"lvlPicBulletId":e.bulletPictureId=t.attr(r,"val");break;case"pStyle":e.paragraphStyle=t.attr(r,"val");break;case"pPr":e.paragraphProps=ft(r,t);break;case"rPr":e.runProps=At(r,t);break}}return e}function qt(i,t){for(var e={level:t.intAttr(i,"ilvl")},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"startOverride":e.start=t.intAttr(r,"val");break;case"lvl":e.numberingLevel=bt(r,t);break}}return e}function Dt(i,t){var e=t.element(i,"pict"),n=e&&t.element(e,"shape"),a=n&&t.element(n,"imagedata");return a?{id:t.attr(i,"numPicBulletId"),referenceId:t.attr(a,"id"),style:t.attr(n,"style")}:null}var Tt=function(i){re(t,i);function t(e,n,a){var r=i.call(this,e,n)||this;return Object.defineProperty(r,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"numberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"abstractNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"bulletPictures",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._documentParser=a,r}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){Object.assign(this,Ot(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}),t}(Le),Yt=function(i){re(t,i);function t(e,n,a){var r=i.call(this,e,n)||this;return Object.defineProperty(r,"styles",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._documentParser=a,r}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}),t}(Le),le;(function(i){i.Document="document",i.Paragraph="paragraph",i.Run="run",i.Break="break",i.NoBreakHyphen="noBreakHyphen",i.Table="table",i.Row="row",i.Cell="cell",i.Hyperlink="hyperlink",i.Drawing="drawing",i.Image="image",i.Text="text",i.Tab="tab",i.Symbol="symbol",i.BookmarkStart="bookmarkStart",i.BookmarkEnd="bookmarkEnd",i.Footer="footer",i.Header="header",i.FootnoteReference="footnoteReference",i.EndnoteReference="endnoteReference",i.Footnote="footnote",i.Endnote="endnote",i.SimpleField="simpleField",i.ComplexField="complexField",i.Instruction="instruction"})(le||(le={}));var Xt=function(){function i(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:le.Header}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return i}(),Qt=function(){function i(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:le.Footer}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return i}(),It=function(i){re(t,i);function t(e,n,a){var r=i.call(this,e,n)||this;return Object.defineProperty(r,"rootElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._documentParser=a,r}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}),t}(Le),er=function(i){re(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new Xt}}),t}(It),tr=function(i){re(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new Qt}}),t}(It);function rr(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"Template":e.template=r.textContent;break;case"Pages":e.pages=rt(r.textContent);break;case"Words":e.words=rt(r.textContent);break;case"Characters":e.characters=rt(r.textContent);break;case"Application":e.application=r.textContent;break;case"Lines":e.lines=rt(r.textContent);break;case"Paragraphs":e.paragraphs=rt(r.textContent);break;case"Company":e.company=r.textContent;break;case"AppVersion":e.appVersion=r.textContent;break}}return e}function rt(i){if(!(typeof i>"u"))return parseInt(i)}var nr=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=rr(e,this._package.xmlParser)}}),t}(Le);function Lt(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"title":e.title=r.textContent;break;case"description":e.description=r.textContent;break;case"subject":e.subject=r.textContent;break;case"creator":e.creator=r.textContent;break;case"keywords":e.keywords=r.textContent;break;case"language":e.language=r.textContent;break;case"lastModifiedBy":e.lastModifiedBy=r.textContent;break;case"revision":r.textContent&&(e.revision=parseInt(r.textContent));break}}return e}var ar=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=Lt(e,this._package.xmlParser)}}),t}(Le),jt=function(){function i(){Object.defineProperty(this,"colorScheme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontScheme",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return i}();function ir(i,t){for(var e=new jt,n=t.element(i,"themeElements"),a=0,r=t.elements(n);a<r.length;a++){var o=r[a];switch(o.localName){case"clrScheme":e.colorScheme=ut(o,t);break;case"fontScheme":e.fontScheme=or(o,t);break}}return e}function ut(i,t){for(var e={name:t.attr(i,"name"),colors:{}},n=0,a=t.elements(i);n<a.length;n++){var r=a[n],o=t.element(r,"srgbClr"),c=t.element(r,"sysClr");o?e.colors[r.localName]=t.attr(o,"val"):c&&(e.colors[r.localName]=t.attr(c,"lastClr"))}return e}function or(i,t){for(var e={name:t.attr(i,"name")},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"majorFont":e.majorFont=Nt(r,t);break;case"minorFont":e.minorFont=Nt(r,t);break}}return e}function Nt(i,t){return{latinTypeface:t.elementAttr(i,"latin","typeface"),eaTypeface:t.elementAttr(i,"ea","typeface"),csTypeface:t.elementAttr(i,"cs","typeface")}}var s=function(i){re(t,i);function t(e,n){var a=i.call(this,e,n)||this;return Object.defineProperty(a,"theme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.theme=ir(e,this._package.xmlParser)}}),t}(Le),C=function(){function i(){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"noteType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return i}(),P=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"type",{enumerable:!0,configurable:!0,writable:!0,value:le.Footnote}),e}return t}(C),S=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"type",{enumerable:!0,configurable:!0,writable:!0,value:le.Endnote}),e}return t}(C),I=function(i){re(t,i);function t(e,n,a){var r=i.call(this,e,n)||this;return Object.defineProperty(r,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(r,"notes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r._documentParser=a,r}return t}(Le),G=function(i){re(t,i);function t(e,n,a){return i.call(this,e,n,a)||this}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",P)}}),t}(I),te=function(i){re(t,i);function t(e,n,a){return i.call(this,e,n,a)||this}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",S)}}),t}(I);function se(i,t){for(var e={},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"defaultTabStop":e.defaultTabStop=t.lengthAttr(r,"val");break;case"footnotePr":e.footnoteProps=ue(r,t);break;case"endnotePr":e.endnoteProps=ue(r,t);break;case"autoHyphenation":e.autoHyphenation=t.boolAttr(r,"val");break}}return e}function ue(i,t){for(var e={defaultNoteIds:[]},n=0,a=t.elements(i);n<a.length;n++){var r=a[n];switch(r.localName){case"numFmt":e.nummeringFormat=t.attr(r,"val");break;case"footnote":case"endnote":e.defaultNoteIds.push(t.attr(r,"id"));break}}return e}var be=function(i){re(t,i);function t(e,n){var a=i.call(this,e,n)||this;return Object.defineProperty(a,"settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.settings=se(e,this._package.xmlParser)}}),t}(Le);function Ae(i,t){return t.elements(i,"property").map(function(e){var n=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:n.nodeName,value:n.textContent}})}var Ne=function(i){re(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return Object.defineProperty(e,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e}return Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=Ae(e,this._package.xmlParser)}}),t}(Le),Se=[{type:fe.OfficeDocument,target:"word/document.xml"},{type:fe.ExtendedProperties,target:"docProps/app.xml"},{type:fe.CoreProperties,target:"docProps/core.xml"},{type:fe.CustomProperties,target:"docProps/custom.xml"}],zr=function(){function i(){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"partsMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"documentPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontTablePart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberingPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stylesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"footnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"themePart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"corePropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extendedPropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"settingsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(i,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){var a=new i;return a._options=n,a._parser=e,$t.load(t,n).then(function(r){return a._package=r,a._package.loadRelationships()}).then(function(r){a.rels=r;var o=Se.map(function(c){var u,p=(u=r.find(function(m){return m.type===c.type}))!==null&&u!==void 0?u:c;return a.loadRelationshipPart(p.target,p.type)});return Promise.all(o)}).then(function(){return a})}}),Object.defineProperty(i.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t===void 0&&(t="blob"),this._package.save(t)}}),Object.defineProperty(i.prototype,"loadRelationshipPart",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;if(this.partsMap[t])return Promise.resolve(this.partsMap[t]);if(!this._package.get(t))return Promise.resolve(null);var a=null;switch(e){case fe.OfficeDocument:this.documentPart=a=new St(this._package,t,this._parser);break;case fe.FontTable:this.fontTablePart=a=new dt(this._package,t);break;case fe.Numbering:this.numberingPart=a=new Tt(this._package,t,this._parser);break;case fe.Styles:this.stylesPart=a=new Yt(this._package,t,this._parser);break;case fe.Theme:this.themePart=a=new s(this._package,t);break;case fe.Footnotes:this.footnotesPart=a=new G(this._package,t,this._parser);break;case fe.Endnotes:this.endnotesPart=a=new te(this._package,t,this._parser);break;case fe.Footer:a=new tr(this._package,t,this._parser);break;case fe.Header:a=new er(this._package,t,this._parser);break;case fe.CoreProperties:this.corePropsPart=a=new ar(this._package,t);break;case fe.ExtendedProperties:this.extendedPropsPart=a=new nr(this._package,t);break;case fe.CustomProperties:a=new Ne(this._package,t);break;case fe.Settings:this.settingsPart=a=new be(this._package,t);break}return a==null?Promise.resolve(null):(this.partsMap[t]=a,this.parts.push(a),a.load().then(function(){if(a.rels==null||a.rels.length==0)return a;var r=qe(a.path)[0],o=a.rels.map(function(c){return n.loadRelationshipPart(pt(c.target,r),c.type)});return Promise.all(o).then(function(){return a})}))}}),Object.defineProperty(i.prototype,"loadDocumentImage",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;return this.loadResource(e!=null?e:this.documentPart,t,"blob").then(function(a){return n.blobToURL(a)})}}),Object.defineProperty(i.prototype,"loadNumberingImage",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this;return this.loadResource(this.numberingPart,t,"blob").then(function(n){return e.blobToURL(n)})}}),Object.defineProperty(i.prototype,"loadFont",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;return this.loadResource(this.fontTablePart,t,"uint8array").then(function(a){return a&&n.blobToURL(new Blob([Or(a,e)]))})}}),Object.defineProperty(i.prototype,"blobToURL",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t?this._options.useBase64URL?Wt(t):URL.createObjectURL(t):null}}),Object.defineProperty(i.prototype,"findPartByRelId",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n;e===void 0&&(e=null);var a=((n=e.rels)!==null&&n!==void 0?n:this.rels).find(function(o){return o.id==t}),r=e?qe(e.path)[0]:"";return a?this.partsMap[pt(a.target,r)]:null}}),Object.defineProperty(i.prototype,"getPathById",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=t.rels.find(function(r){return r.id==e}),a=qe(t.path)[0];return n?pt(n.target,a):null}}),Object.defineProperty(i.prototype,"loadResource",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){var a=this.getPathById(t,e);return a?this._package.load(a,n):Promise.resolve(null)}}),i}();function Or(i,t){for(var e=16,n=t.replace(/{|}|-/g,""),a=new Array(e),r=0;r<e;r++)a[e-r-1]=parseInt(n.substr(r*2,2),16);for(var r=0;r<32;r++)i[r]=i[r]^a[r%e];return i}function Fr(i,t){return{type:le.BookmarkStart,id:t.attr(i,"id"),name:t.attr(i,"name"),colFirst:t.intAttr(i,"colFirst"),colLast:t.intAttr(i,"colLast")}}function Dr(i,t){return{type:le.BookmarkEnd,id:t.attr(i,"id")}}var Rt={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"},Tr=function(){function i(t){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.options=ie({ignoreWidth:!1,debug:!1},t)}return Object.defineProperty(i.prototype,"parseNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){for(var a=[],r=0,o=T.elements(t,e);r<o.length;r++){var c=o[r],u=new n;u.id=T.attr(c,"id"),u.noteType=T.attr(c,"type"),u.children=this.parseBodyElements(c),a.push(u)}return a}}),Object.defineProperty(i.prototype,"parseDocumentFile",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.element(t,"body"),n=T.element(t,"background"),a=T.element(e,"sectPr");return{type:le.Document,children:this.parseBodyElements(e),props:a?st(a,T):null,cssStyle:n?this.parseBackground(n):{}}}}),Object.defineProperty(i.prototype,"parseBackground",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e={},n=Pe.colorAttr(t,"color");return n&&(e["background-color"]=n),e}}),Object.defineProperty(i.prototype,"parseBodyElements",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n=[];return Pe.foreach(t,function(a){switch(a.localName){case"p":n.push(e.parseParagraph(a));break;case"tbl":n.push(e.parseTable(a));break;case"sdt":e.parseSdt(a).forEach(function(r){return n.push(r)});break}}),n}}),Object.defineProperty(i.prototype,"parseStylesFile",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n=[];return Pe.foreach(t,function(a){switch(a.localName){case"style":n.push(e.parseStyle(a));break;case"docDefaults":n.push(e.parseDefaultStyles(a));break}}),n}}),Object.defineProperty(i.prototype,"parseDefaultStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={id:null,name:null,target:null,basedOn:null,styles:[]};return Pe.foreach(t,function(a){switch(a.localName){case"rPrDefault":var r=T.element(a,"rPr");r&&n.styles.push({target:"span",values:e.parseDefaultProperties(r,{})});break;case"pPrDefault":var o=T.element(a,"pPr");o&&n.styles.push({target:"p",values:e.parseDefaultProperties(o,{})});break}}),n}}),Object.defineProperty(i.prototype,"parseStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={id:T.attr(t,"styleId"),isDefault:T.boolAttr(t,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(T.attr(t,"type")){case"paragraph":n.target="p";break;case"table":n.target="table";break;case"character":n.target="span";break}return Pe.foreach(t,function(a){switch(a.localName){case"basedOn":n.basedOn=T.attr(a,"val");break;case"name":n.name=T.attr(a,"val");break;case"link":n.linked=T.attr(a,"val");break;case"next":n.next=T.attr(a,"val");break;case"aliases":n.aliases=T.attr(a,"val").split(",");break;case"pPr":n.styles.push({target:"p",values:e.parseDefaultProperties(a,{})}),n.paragraphProps=ft(a,T);break;case"rPr":n.styles.push({target:"span",values:e.parseDefaultProperties(a,{})}),n.runProps=At(a,T);break;case"tblPr":case"tcPr":n.styles.push({target:"td",values:e.parseDefaultProperties(a,{})});break;case"tblStylePr":for(var r=0,o=e.parseTableStyle(a);r<o.length;r++){var c=o[r];n.styles.push(c)}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:e.options.debug&&console.warn("DOCX: Unknown style element: ".concat(a.localName))}}),n}}),Object.defineProperty(i.prototype,"parseTableStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n=[],a=T.attr(t,"type"),r="",o="";switch(a){case"firstRow":o=".first-row",r="tr.first-row td";break;case"lastRow":o=".last-row",r="tr.last-row td";break;case"firstCol":o=".first-col",r="td.first-col";break;case"lastCol":o=".last-col",r="td.last-col";break;case"band1Vert":o=":not(.no-vband)",r="td.odd-col";break;case"band2Vert":o=":not(.no-vband)",r="td.even-col";break;case"band1Horz":o=":not(.no-hband)",r="tr.odd-row";break;case"band2Horz":o=":not(.no-hband)",r="tr.even-row";break;default:return[]}return Pe.foreach(t,function(c){switch(c.localName){case"pPr":n.push({target:"".concat(r," p"),mod:o,values:e.parseDefaultProperties(c,{})});break;case"rPr":n.push({target:"".concat(r," span"),mod:o,values:e.parseDefaultProperties(c,{})});break;case"tblPr":case"tcPr":n.push({target:r,mod:o,values:e.parseDefaultProperties(c,{})});break}}),n}}),Object.defineProperty(i.prototype,"parseNumberingFile",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n=[],a={},r=[];return Pe.foreach(t,function(o){switch(o.localName){case"abstractNum":e.parseAbstractNumbering(o,r).forEach(function(p){return n.push(p)});break;case"numPicBullet":r.push(e.parseNumberingPicBullet(o));break;case"num":var c=T.attr(o,"numId"),u=T.elementAttr(o,"abstractNumId","val");a[u]=c;break}}),n.forEach(function(o){return o.id=a[o.id]}),n}}),Object.defineProperty(i.prototype,"parseNumberingPicBullet",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.element(t,"pict"),n=e&&T.element(e,"shape"),a=n&&T.element(n,"imagedata");return a?{id:T.intAttr(t,"numPicBulletId"),src:T.attr(a,"id"),style:T.attr(n,"style")}:null}}),Object.defineProperty(i.prototype,"parseAbstractNumbering",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this,a=[],r=T.attr(t,"abstractNumId");return Pe.foreach(t,function(o){switch(o.localName){case"lvl":a.push(n.parseNumberingLevel(r,o,e));break}}),a}}),Object.defineProperty(i.prototype,"parseNumberingLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){var a=this,r={id:t,level:T.intAttr(e,"ilvl"),pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return Pe.foreach(e,function(o){switch(o.localName){case"pPr":a.parseDefaultProperties(o,r.pStyle);break;case"rPr":a.parseDefaultProperties(o,r.rStyle);break;case"lvlPicBulletId":var c=T.intAttr(o,"val");r.bullet=n.find(function(u){return u.id==c});break;case"lvlText":r.levelText=T.attr(o,"val");break;case"pStyle":r.pStyleName=T.attr(o,"val");break;case"numFmt":r.format=T.attr(o,"val");break;case"suff":r.suff=T.attr(o,"val");break}}),r}}),Object.defineProperty(i.prototype,"parseSdt",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.element(t,"sdtContent");return e?this.parseBodyElements(e):[]}}),Object.defineProperty(i.prototype,"parseParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={type:le.Paragraph,children:[]};return Pe.foreach(t,function(a){switch(a.localName){case"r":n.children.push(e.parseRun(a,n));break;case"hyperlink":n.children.push(e.parseHyperlink(a,n));break;case"bookmarkStart":n.children.push(Fr(a,T));break;case"bookmarkEnd":n.children.push(Dr(a,T));break;case"pPr":e.parseParagraphProperties(a,n);break}}),n}}),Object.defineProperty(i.prototype,"parseParagraphProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;this.parseDefaultProperties(t,e.cssStyle={},null,function(a){if(mt(a,e,T))return!0;switch(a.localName){case"pStyle":e.styleName=T.attr(a,"val");break;case"cnfStyle":e.className=Be.classNameOfCnfStyle(a);break;case"framePr":n.parseFrame(a,e);break;case"rPr":break;default:return!1}return!0})}}),Object.defineProperty(i.prototype,"parseFrame",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.attr(t,"dropCap");n=="drop"&&(e.cssStyle.float="left")}}),Object.defineProperty(i.prototype,"parseHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this,a={type:le.Hyperlink,parent:e,children:[]},r=T.attr(t,"anchor");return r&&(a.href="#"+r),Pe.foreach(t,function(o){switch(o.localName){case"r":a.children.push(n.parseRun(o,a));break}}),a}}),Object.defineProperty(i.prototype,"parseRun",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this,a={type:le.Run,parent:e,children:[]};return Pe.foreach(t,function(r){switch(r.localName){case"t":a.children.push({type:le.Text,text:r.textContent});break;case"fldSimple":a.children.push({type:le.SimpleField,instruction:T.attr(r,"instr"),lock:T.boolAttr(r,"lock",!1),dirty:T.boolAttr(r,"dirty",!1)});break;case"instrText":a.fieldRun=!0,a.children.push({type:le.Instruction,text:r.textContent});break;case"fldChar":a.fieldRun=!0,a.children.push({type:le.ComplexField,charType:T.attr(r,"fldCharType"),lock:T.boolAttr(r,"lock",!1),dirty:T.boolAttr(r,"dirty",!1)});break;case"noBreakHyphen":a.children.push({type:le.NoBreakHyphen});break;case"br":a.children.push({type:le.Break,break:T.attr(r,"type")||"textWrapping"});break;case"lastRenderedPageBreak":a.children.push({type:le.Break,break:"lastRenderedPageBreak"});break;case"sym":a.children.push({type:le.Symbol,font:T.attr(r,"font"),char:T.attr(r,"char")});break;case"tab":a.children.push({type:le.Tab});break;case"footnoteReference":a.children.push({type:le.FootnoteReference,id:T.attr(r,"id")});break;case"endnoteReference":a.children.push({type:le.EndnoteReference,id:T.attr(r,"id")});break;case"drawing":var o=n.parseDrawing(r);o&&(a.children=[o]);break;case"rPr":n.parseRunProperties(r,a);break}}),a}}),Object.defineProperty(i.prototype,"parseRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){this.parseDefaultProperties(t,e.cssStyle={},null,function(n){switch(n.localName){case"rStyle":e.styleName=T.attr(n,"val");break;case"vertAlign":e.verticalAlign=Be.valueOfVertAlign(n,!0);break;default:return!1}return!0})}}),Object.defineProperty(i.prototype,"parseDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=0,n=T.elements(t);e<n.length;e++){var a=n[e];switch(a.localName){case"inline":case"anchor":return this.parseDrawingWrapper(a)}}}}),Object.defineProperty(i.prototype,"parseDrawingWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e,n={type:le.Drawing,children:[],cssStyle:{}},a=t.localName=="anchor",r=null,o=T.boolAttr(t,"simplePos"),c={relative:"page",align:"left",offset:"0"},u={relative:"page",align:"top",offset:"0"},p=0,m=T.elements(t);p<m.length;p++){var v=m[p];switch(v.localName){case"simplePos":o&&(c.offset=T.lengthAttr(v,"x",oe.Emu),u.offset=T.lengthAttr(v,"y",oe.Emu));break;case"extent":n.cssStyle.width=T.lengthAttr(v,"cx",oe.Emu),n.cssStyle.height=T.lengthAttr(v,"cy",oe.Emu);break;case"positionH":case"positionV":if(!o){var x=v.localName=="positionH"?c:u,h=T.element(v,"align"),g=T.element(v,"posOffset");x.relative=(e=T.attr(v,"relativeFrom"))!==null&&e!==void 0?e:x.relative,h&&(x.align=h.textContent),g&&(x.offset=Pe.sizeValue(g,oe.Emu))}break;case"wrapTopAndBottom":r="wrapTopAndBottom";break;case"wrapNone":r="wrapNone";break;case"graphic":var f=this.parseGraphic(v);f&&n.children.push(f);break}}return r=="wrapTopAndBottom"?(n.cssStyle.display="block",c.align&&(n.cssStyle["text-align"]=c.align,n.cssStyle.width="100%")):r=="wrapNone"?(n.cssStyle.display="block",n.cssStyle.position="relative",n.cssStyle.width="0px",n.cssStyle.height="0px",c.offset&&(n.cssStyle.left=c.offset),u.offset&&(n.cssStyle.top=u.offset)):a&&(c.align=="left"||c.align=="right")&&(n.cssStyle.float=c.align),n}}),Object.defineProperty(i.prototype,"parseGraphic",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=T.element(t,"graphicData"),n=0,a=T.elements(e);n<a.length;n++){var r=a[n];switch(r.localName){case"pic":return this.parsePicture(r)}}return null}}),Object.defineProperty(i.prototype,"parsePicture",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e={type:le.Image,src:"",cssStyle:{}},n=T.element(t,"blipFill"),a=T.element(n,"blip");e.src=T.attr(a,"embed");var r=T.element(t,"spPr"),o=T.element(r,"xfrm");e.cssStyle.position="relative";for(var c=0,u=T.elements(o);c<u.length;c++){var p=u[c];switch(p.localName){case"ext":e.cssStyle.width=T.lengthAttr(p,"cx",oe.Emu),e.cssStyle.height=T.lengthAttr(p,"cy",oe.Emu);break;case"off":e.cssStyle.left=T.lengthAttr(p,"x",oe.Emu),e.cssStyle.top=T.lengthAttr(p,"y",oe.Emu);break}}return e}}),Object.defineProperty(i.prototype,"parseTable",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={type:le.Table,children:[]};return Pe.foreach(t,function(a){switch(a.localName){case"tr":n.children.push(e.parseTableRow(a));break;case"tblGrid":n.columns=e.parseTableColumns(a);break;case"tblPr":e.parseTableProperties(a,n);break}}),n}}),Object.defineProperty(i.prototype,"parseTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=[];return Pe.foreach(t,function(n){switch(n.localName){case"gridCol":e.push({width:T.lengthAttr(n,"w")});break}}),e}}),Object.defineProperty(i.prototype,"parseTableProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;switch(e.cssStyle={},e.cellStyle={},this.parseDefaultProperties(t,e.cssStyle,e.cellStyle,function(a){switch(a.localName){case"tblStyle":e.styleName=T.attr(a,"val");break;case"tblLook":e.className=Be.classNameOftblLook(a);break;case"tblpPr":n.parseTablePosition(a,e);break;case"tblStyleColBandSize":e.colBandSize=T.intAttr(a,"val");break;case"tblStyleRowBandSize":e.rowBandSize=T.intAttr(a,"val");break;default:return!1}return!0}),e.cssStyle["text-align"]){case"center":delete e.cssStyle["text-align"],e.cssStyle["margin-left"]="auto",e.cssStyle["margin-right"]="auto";break;case"right":delete e.cssStyle["text-align"],e.cssStyle["margin-left"]="auto";break}}}),Object.defineProperty(i.prototype,"parseTablePosition",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.lengthAttr(t,"topFromText"),a=T.lengthAttr(t,"bottomFromText"),r=T.lengthAttr(t,"rightFromText"),o=T.lengthAttr(t,"leftFromText");e.cssStyle.float="left",e.cssStyle["margin-bottom"]=Be.addSize(e.cssStyle["margin-bottom"],a),e.cssStyle["margin-left"]=Be.addSize(e.cssStyle["margin-left"],o),e.cssStyle["margin-right"]=Be.addSize(e.cssStyle["margin-right"],r),e.cssStyle["margin-top"]=Be.addSize(e.cssStyle["margin-top"],n)}}),Object.defineProperty(i.prototype,"parseTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={type:le.Row,children:[]};return Pe.foreach(t,function(a){switch(a.localName){case"tc":n.children.push(e.parseTableCell(a));break;case"trPr":e.parseTableRowProperties(a,n);break}}),n}}),Object.defineProperty(i.prototype,"parseTableRowProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e.cssStyle=this.parseDefaultProperties(t,{},null,function(n){switch(n.localName){case"cnfStyle":e.className=Be.classNameOfCnfStyle(n);break;case"tblHeader":e.isHeader=T.boolAttr(n,"val");break;default:return!1}return!0})}}),Object.defineProperty(i.prototype,"parseTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n={type:le.Cell,children:[]};return Pe.foreach(t,function(a){switch(a.localName){case"tbl":n.children.push(e.parseTable(a));break;case"p":n.children.push(e.parseParagraph(a));break;case"tcPr":e.parseTableCellProperties(a,n);break}}),n}}),Object.defineProperty(i.prototype,"parseTableCellProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e.cssStyle=this.parseDefaultProperties(t,{},null,function(n){var a;switch(n.localName){case"gridSpan":e.span=T.intAttr(n,"val",null);break;case"vMerge":e.verticalMerge=(a=T.attr(n,"val"))!==null&&a!==void 0?a:"continue";break;case"cnfStyle":e.className=Be.classNameOfCnfStyle(n);break;default:return!1}return!0})}}),Object.defineProperty(i.prototype,"parseDefaultProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n,a){var r=this;return e===void 0&&(e=null),n===void 0&&(n=null),a===void 0&&(a=null),e=e||{},Pe.foreach(t,function(o){if(!(a!=null&&a(o)))switch(o.localName){case"jc":e["text-align"]=Be.valueOfJc(o);break;case"textAlignment":e["vertical-align"]=Be.valueOfTextAlignment(o);break;case"color":e.color=Pe.colorAttr(o,"val",null,Rt.color);break;case"sz":e["font-size"]=e["min-height"]=T.lengthAttr(o,"val",oe.FontSize);break;case"shd":e["background-color"]=Pe.colorAttr(o,"fill",null,Rt.shd);break;case"highlight":e["background-color"]=Pe.colorAttr(o,"val",null,Rt.highlight);break;case"vertAlign":break;case"position":e.verticalAlign=T.lengthAttr(o,"val",oe.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":e.width=Be.valueOfSize(o,"w");break;case"trHeight":r.parseTrHeight(o,e);break;case"strike":e["text-decoration"]=T.boolAttr(o,"val",!0)?"line-through":"none";break;case"b":e["font-weight"]=T.boolAttr(o,"val",!0)?"bold":"normal";break;case"i":e["font-style"]=T.boolAttr(o,"val",!0)?"italic":"normal";break;case"caps":e["text-transform"]=T.boolAttr(o,"val",!0)?"uppercase":"none";break;case"smallCaps":e["text-transform"]=T.boolAttr(o,"val",!0)?"lowercase":"none";break;case"u":r.parseUnderline(o,e);break;case"ind":case"tblInd":r.parseIndentation(o,e);break;case"rFonts":r.parseFont(o,e);break;case"tblBorders":r.parseBorderProperties(o,n||e);break;case"tblCellSpacing":e["border-spacing"]=Be.valueOfMargin(o),e["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(o,e);break;case"bdr":e.border=Be.valueOfBorder(o);break;case"tcBorders":r.parseBorderProperties(o,e);break;case"vanish":T.boolAttr(o,"val",!0)&&(e.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(o,n||e);break;case"tblLayout":e["table-layout"]=Be.valueOfTblLayout(o);break;case"vAlign":e["vertical-align"]=Be.valueOfTextAlignment(o);break;case"spacing":t.localName=="pPr"&&r.parseSpacing(o,e);break;case"wordWrap":T.boolAttr(o,"val")&&(e["overflow-wrap"]="break-word");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"lang":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(t.localName,".").concat(o.localName));break}}),e}}),Object.defineProperty(i.prototype,"parseUnderline",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.attr(t,"val");if(n!=null){switch(n){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":e["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":e["text-decoration-style"]="dotted";break;case"double":e["text-decoration-style"]="double";break;case"single":case"thick":e["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":e["text-decoration-style"]="wavy";break;case"words":e["text-decoration"]="underline";break;case"none":e["text-decoration"]="none";break}var a=Pe.colorAttr(t,"color");a&&(e["text-decoration-color"]=a)}}}),Object.defineProperty(i.prototype,"parseFont",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.attr(t,"ascii"),a=Be.themeValue(t,"asciiTheme"),r=[n,a].filter(function(o){return o}).join(", ");r.length>0&&(e["font-family"]=r)}}),Object.defineProperty(i.prototype,"parseIndentation",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.lengthAttr(t,"firstLine"),a=T.lengthAttr(t,"hanging"),r=T.lengthAttr(t,"left"),o=T.lengthAttr(t,"start"),c=T.lengthAttr(t,"right"),u=T.lengthAttr(t,"end");n&&(e["text-indent"]=n),a&&(e["text-indent"]="-".concat(a)),(r||o)&&(e["margin-left"]=r||o),(c||u)&&(e["margin-right"]=c||u)}}),Object.defineProperty(i.prototype,"parseSpacing",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.lengthAttr(t,"before"),a=T.lengthAttr(t,"after"),r=T.intAttr(t,"line",null),o=T.attr(t,"lineRule");if(n&&(e["margin-top"]=n),a&&(e["margin-bottom"]=a),r!==null)switch(o){case"auto":e["line-height"]="".concat((r/240).toFixed(2));break;case"atLeast":e["line-height"]="calc(100% + ".concat(r/20,"pt)");break;default:e["line-height"]=e["min-height"]="".concat(r/20,"pt");break}}}),Object.defineProperty(i.prototype,"parseMarginProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){Pe.foreach(t,function(n){switch(n.localName){case"left":e["padding-left"]=Be.valueOfMargin(n);break;case"right":e["padding-right"]=Be.valueOfMargin(n);break;case"top":e["padding-top"]=Be.valueOfMargin(n);break;case"bottom":e["padding-bottom"]=Be.valueOfMargin(n);break}})}}),Object.defineProperty(i.prototype,"parseTrHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){switch(T.attr(t,"hRule")){case"exact":e.height=T.lengthAttr(t,"val");break;case"atLeast":default:e.height=T.lengthAttr(t,"val");break}}}),Object.defineProperty(i.prototype,"parseBorderProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){Pe.foreach(t,function(n){switch(n.localName){case"start":case"left":e["border-left"]=Be.valueOfBorder(n);break;case"end":case"right":e["border-right"]=Be.valueOfBorder(n);break;case"top":e["border-top"]=Be.valueOfBorder(n);break;case"bottom":e["border-bottom"]=Be.valueOfBorder(n);break}})}}),i}(),Ir=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],Pe=function(){function i(){}return Object.defineProperty(i,"foreach",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){for(var n=0;n<t.childNodes.length;n++){var a=t.childNodes[n];a.nodeType==Node.ELEMENT_NODE&&e(a)}}}),Object.defineProperty(i,"colorAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n,a){n===void 0&&(n=null),a===void 0&&(a="black");var r=T.attr(t,e);if(r)return r=="auto"?a:Ir.includes(r)?r:"#".concat(r);var o=T.attr(t,"themeColor");return o?"var(--docx-".concat(o,"-color)"):n}}),Object.defineProperty(i,"sizeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e===void 0&&(e=oe.Dxa),de(t.textContent,e)}}),i}(),Be=function(){function i(){}return Object.defineProperty(i,"themeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=T.attr(t,e);return n?"var(--docx-".concat(n,"-font)"):null}}),Object.defineProperty(i,"valueOfSize",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=oe.Dxa;switch(T.attr(t,"type")){case"dxa":break;case"pct":n=oe.Percent;break;case"auto":return"auto"}return T.lengthAttr(t,e,n)}}),Object.defineProperty(i,"valueOfMargin",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return T.lengthAttr(t,"w")}}),Object.defineProperty(i,"valueOfBorder",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.attr(t,"val");if(e=="nil")return"none";var n=Pe.colorAttr(t,"color"),a=T.lengthAttr(t,"sz",oe.Border);return"".concat(a," solid ").concat(n=="auto"?Rt.borderColor:n)}}),Object.defineProperty(i,"valueOfTblLayout",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.attr(t,"val");return e=="fixed"?"fixed":"auto"}}),Object.defineProperty(i,"classNameOfCnfStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.attr(t,"val"),n=["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"];return n.filter(function(a,r){return e[r]=="1"}).join(" ")}}),Object.defineProperty(i,"valueOfJc",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.attr(t,"val");switch(e){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return e}}),Object.defineProperty(i,"valueOfVertAlign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e===void 0&&(e=!1);var n=T.attr(t,"val");switch(n){case"subscript":return"sub";case"superscript":return e?"sup":"super"}return e?null:n}}),Object.defineProperty(i,"valueOfTextAlignment",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.attr(t,"val");switch(e){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return e}}),Object.defineProperty(i,"addSize",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return t==null?e:e==null?t:"calc(".concat(t," + ").concat(e,")")}}),Object.defineProperty(i,"classNameOftblLook",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=T.hexAttr(t,"val",0),n="";return(T.boolAttr(t,"firstRow")||e&32)&&(n+=" first-row"),(T.boolAttr(t,"lastRow")||e&64)&&(n+=" last-row"),(T.boolAttr(t,"firstColumn")||e&128)&&(n+=" first-col"),(T.boolAttr(t,"lastColumn")||e&256)&&(n+=" last-col"),(T.boolAttr(t,"noHBand")||e&512)&&(n+=" no-hband"),(T.boolAttr(t,"noVBand")||e&1024)&&(n+=" no-vband"),n.trim()}}),i}(),mr={pos:0,leader:"none",style:"left"},Lr=50;function jr(i){i===void 0&&(i=document.body);var t=document.createElement("div");t.style.width="100pt",i.appendChild(t);var e=100/t.offsetWidth;return i.removeChild(t),e}function Nr(i,t,e,n){n===void 0&&(n=72/96);var a=i.closest("p"),r=i.getBoundingClientRect(),o=a.getBoundingClientRect(),c=getComputedStyle(a),u=(t==null?void 0:t.length)>0?t.map(function(V){return{pos:br(V.position),leader:V.leader,style:V.style}}).sort(function(V,R){return V.pos-R.pos}):[mr],p=u[u.length-1],m=o.width*n,v=br(e),x=p.pos+v;if(x<m)for(;x<m&&u.length<Lr;x+=v)u.push(ie(ie({},mr),{pos:x}));var h=parseFloat(c.marginLeft),g=o.left+h,f=(r.left-g)*n,y=u.find(function(V){return V.style!="clear"&&V.pos>f});if(y!=null){var b=1;if(y.style=="right"||y.style=="center"){var _=Array.from(a.querySelectorAll(".".concat(i.className))),A=_.indexOf(i)+1,O=document.createRange();O.setStart(i,1),A<_.length?O.setEndBefore(_[A]):O.setEndAfter(a);var z=y.style=="center"?.5:1,H=O.getBoundingClientRect(),j=H.left+z*H.width-(o.left-h);b=y.pos-j*n}else b=y.pos-f;switch(i.innerHTML="&nbsp;",i.style.textDecoration="inherit",i.style.wordSpacing="".concat(b.toFixed(0),"pt"),y.leader){case"dot":case"middleDot":i.style.textDecoration="underline",i.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":i.style.textDecoration="underline";break}}}function br(i){return parseFloat(i)}var gr={exports:{}},sr={exports:{}},lr={exports:{}},gt=1e3,vt=gt*60,yt=vt*60,wt=yt*24,Rr=wt*365.25,Mr=function(i,t){t=t||{};var e=typeof i;if(e==="string"&&i.length>0)return Hr(i);if(e==="number"&&isNaN(i)===!1)return t.long?Vr(i):Ur(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function Hr(i){if(i=String(i),!(i.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(i);if(t){var e=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return e*Rr;case"days":case"day":case"d":return e*wt;case"hours":case"hour":case"hrs":case"hr":case"h":return e*yt;case"minutes":case"minute":case"mins":case"min":case"m":return e*vt;case"seconds":case"second":case"secs":case"sec":case"s":return e*gt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}function Ur(i){return i>=wt?Math.round(i/wt)+"d":i>=yt?Math.round(i/yt)+"h":i>=vt?Math.round(i/vt)+"m":i>=gt?Math.round(i/gt)+"s":i+"ms"}function Vr(i){return Mt(i,wt,"day")||Mt(i,yt,"hour")||Mt(i,vt,"minute")||Mt(i,gt,"second")||i+" ms"}function Mt(i,t,e){if(!(i<t))return i<t*1.5?Math.floor(i/t)+" "+e:Math.ceil(i/t)+" "+e+"s"}(function(i,t){t=i.exports=a.debug=a.default=a,t.coerce=u,t.disable=o,t.enable=r,t.enabled=c,t.humanize=Mr,t.names=[],t.skips=[],t.formatters={};var e;function n(p){var m=0,v;for(v in p)m=(m<<5)-m+p.charCodeAt(v),m|=0;return t.colors[Math.abs(m)%t.colors.length]}function a(p){function m(){if(m.enabled){var v=m,x=+new Date,h=x-(e||x);v.diff=h,v.prev=e,v.curr=x,e=x;for(var g=new Array(arguments.length),f=0;f<g.length;f++)g[f]=arguments[f];g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var y=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(_,A){if(_==="%%")return _;y++;var O=t.formatters[A];if(typeof O=="function"){var z=g[y];_=O.call(v,z),g.splice(y,1),y--}return _}),t.formatArgs.call(v,g);var b=m.log||t.log||console.log.bind(console);b.apply(v,g)}}return m.namespace=p,m.enabled=t.enabled(p),m.useColors=t.useColors(),m.color=n(p),typeof t.init=="function"&&t.init(m),m}function r(p){t.save(p),t.names=[],t.skips=[];for(var m=(typeof p=="string"?p:"").split(/[\s,]+/),v=m.length,x=0;x<v;x++)!m[x]||(p=m[x].replace(/\*/g,".*?"),p[0]==="-"?t.skips.push(new RegExp("^"+p.substr(1)+"$")):t.names.push(new RegExp("^"+p+"$")))}function o(){t.enable("")}function c(p){var m,v;for(m=0,v=t.skips.length;m<v;m++)if(t.skips[m].test(p))return!1;for(m=0,v=t.names.length;m<v;m++)if(t.names[m].test(p))return!0;return!1}function u(p){return p instanceof Error?p.stack||p.message:p}})(lr,lr.exports),function(i,t){t=i.exports=lr.exports,t.log=a,t.formatArgs=n,t.save=r,t.load=o,t.useColors=e,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:c(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function e(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}};function n(u){var p=this.useColors;if(u[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+u[0]+(p?"%c ":" ")+"+"+t.humanize(this.diff),!!p){var m="color: "+this.color;u.splice(1,0,m,"color: inherit");var v=0,x=0;u[0].replace(/%[a-zA-Z%]/g,function(h){h!=="%%"&&(v++,h==="%c"&&(x=v))}),u.splice(x,0,m)}}function a(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function o(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u={}.DEBUG),u}t.enable(o());function c(){try{return window.localStorage}catch{}}}(sr,sr.exports),function(i){(function(t,e){var n=i.exports;n?i.exports=e(sr.exports("eventproxy")):this[t]=e()})("EventProxy",function(t){t=t||function(){};var e=Array.prototype.slice,n=Array.prototype.concat,a="__all__",r=function(){if(!(this instanceof r))return new r;this._callbacks={},this._fired={}};r.prototype.addListener=function(u,p){return t("Add listener for %s",u),this._callbacks[u]=this._callbacks[u]||[],this._callbacks[u].push(p),this},r.prototype.bind=r.prototype.addListener,r.prototype.on=r.prototype.addListener,r.prototype.subscribe=r.prototype.addListener,r.prototype.headbind=function(u,p){return t("Add listener for %s",u),this._callbacks[u]=this._callbacks[u]||[],this._callbacks[u].unshift(p),this},r.prototype.removeListener=function(u,p){var m=this._callbacks;if(!u)t("Remove all listeners"),this._callbacks={};else if(!p)t("Remove all listeners of %s",u),m[u]=[];else{var v=m[u];if(v)for(var x=v.length,h=0;h<x;h++)p===v[h]&&(t("Remove a listener of %s",u),v[h]=null)}return this},r.prototype.unbind=r.prototype.removeListener,r.prototype.removeAllListeners=function(u){return this.unbind(u)},r.prototype.bindForAll=function(u){this.bind(a,u)},r.prototype.unbindForAll=function(u){this.unbind(a,u)},r.prototype.trigger=function(u,p){var m,v,x,h,g,f=2,y=this._callbacks;for(t("Emit event %s with data %j",u,p);f--;)if(v=f?u:a,m=y[v],m)for(h=0,g=m.length;h<g;h++)if(!(x=m[h]))m.splice(h,1),h--,g--;else{for(var b=[],_=f?1:0,A=_;A<arguments.length;A++)b.push(arguments[A]);x.apply(this,b)}return this},r.prototype.emit=r.prototype.trigger,r.prototype.fire=r.prototype.trigger,r.prototype.once=function(u,p){var m=this,v=function(){p.apply(m,arguments),m.unbind(u,v)};return this.bind(u,v),this};var o=typeof setImmediate<"u"&&setImmediate||typeof process<"u"&&process.nextTick||function(u){setTimeout(u,0)};r.prototype.emitLater=function(){var u=this,p=arguments;o(function(){u.trigger.apply(u,p)})},r.prototype.immediate=function(u,p,m){return this.bind(u,p),this.trigger(u,m),this},r.prototype.asap=r.prototype.immediate;var c=function(u,p,m,v){var x=this,h=arguments.length,g=0,f={};if(h<3)return this;var y=e.call(arguments,0,-2),b=arguments[h-2],_=arguments[h-1];if(typeof b!="function")return this;t("Assign listener for events %j, once is %s",y,!!_);for(var A=function(j){var V=_?"once":"bind";x[V](j,function(R){x._fired[j]=x._fired[j]||{},x._fired[j].data=R,f[j]||(f[j]=!0,g++)})},O=y.length,z=0;z<O;z++)A(y[z]);var H=function(j){if(!(g<O)&&!!f[j]){for(var V=[],R=0;R<O;R++)V.push(x._fired[y[R]].data);_&&x.unbindForAll(H),t("Events %j all emited with data %j",y,V),b.apply(null,V)}};x.bindForAll(H)};return r.prototype.all=function(u,p,m){var v=n.apply([],arguments);return v.push(!0),c.apply(this,v),this},r.prototype.assign=r.prototype.all,r.prototype.fail=function(u){var p=this;return p.once("error",function(){p.unbind(),u.apply(null,arguments)}),this},r.prototype.throw=function(){var u=this;u.emit.apply(u,["error"].concat(e.call(arguments)))},r.prototype.tail=function(){var u=n.apply([],arguments);return u.push(!1),c.apply(this,u),this},r.prototype.assignAll=r.prototype.tail,r.prototype.assignAlways=r.prototype.tail,r.prototype.after=function(u,p,m){if(p===0)return m.call(null,[]),this;var v=this,x=[];this._after=this._after||{};var h=u+"_group";this._after[h]={index:0,results:[]},t("After emit %s times, event %s's listenner will execute",p,u);var g=function(f,y){f===u&&(p--,x.push(y),p<1&&(t("Event %s was emit %s, and execute the listenner",u,p),v.unbindForAll(g),m.apply(null,[x]))),f===h&&(p--,v._after[h].results[y.index]=y.result,p<1&&(t("Event %s was emit %s, and execute the listenner",u,p),v.unbindForAll(g),m.call(null,v._after[h].results)))};return v.bindForAll(g),this},r.prototype.group=function(u,p){var m=this,v=u+"_group",x=m._after[v].index;return m._after[v].index++,function(h,g){if(h)return m.emit.apply(m,["error"].concat(e.call(arguments)));m.emit(v,{index:x,result:p?p.apply(null,e.call(arguments,1)):g})}},r.prototype.any=function(){var u=this,p=arguments[arguments.length-1],m=e.call(arguments,0,-1),v=m.join("_");t("Add listenner for Any of events %j emit",m),u.once(v,p);for(var x=function(g){u.bind(g,function(f){t("One of events %j emited, execute the listenner"),u.trigger(v,{data:f,eventName:g})})},h=0;h<m.length;h++)x(m[h])},r.prototype.not=function(u,p){var m=this;t("Add listenner for not event %s",u),m.bindForAll(function(v,x){v!==u&&(t("listenner execute of event %s emit, but not event %s.",v,u),p(x))})},r.prototype.done=function(u,p){var m=this;return function(v,x){if(v)return m.emit.apply(m,["error"].concat(e.call(arguments)));var h=e.call(arguments,1);if(typeof u=="string")return p?m.emit(u,p.apply(null,h)):m.emit.apply(m,[u].concat(h));if(arguments.length<=2)return u(x);u.apply(null,h)}},r.prototype.doneLater=function(u,p){var m=this.done(u,p);return function(v,x){var h=arguments;o(function(){m.apply(null,h)})}},r.create=function(){var u=new r,p=n.apply([],arguments);if(p.length){var m=p[p.length-1],v=p[p.length-2];typeof m=="function"&&typeof v=="function"&&(p.pop(),u.fail(m)),u.assign.apply(u,p)}return u},r.EventProxy=r,r})}(gr);var Wr=gr.exports,$r=function(){function i(t){Object.defineProperty(this,"htmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:"docx"}),Object.defineProperty(this,"document",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"styleMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentPart",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableVerticalMerges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentVerticalMerge",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableCellPositions",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentCellPosition",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"endnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentFootnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentEndnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"usedHederFooterParts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"renderImageCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"defaultTabSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"ep2",{enumerable:!0,configurable:!0,writable:!0,value:new Wr}),Object.defineProperty(this,"currentTabs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"tabsTimeout",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"createElement",{enumerable:!0,configurable:!0,writable:!0,value:vr})}return Object.defineProperty(i.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n,a){var r=this;return n===void 0&&(n=null),new Promise(function(o){var c;r.document=t,r.options=a,r.className=a.className,r.styleMap=null,r.renderImageCount=0,n=n||e,Zr(e),t.numberingPart&&(r.prodessNumberings(t.numberingPart.domNumberings),t.numberingPart.domNumberings.forEach(function(p){!r.domNumberings[p.id]&&(r.domNumberings[p.id]={}),r.domNumberings[p.id][p.level]=ie(ie({},p),{count:1,pCount:1})})),t.settingsPart&&(r.defaultTabSize=(c=t.settingsPart.settings)===null||c===void 0?void 0:c.defaultTabStop),!a.ignoreFonts&&t.fontTablePart&&r.renderFontTable(t.fontTablePart,n),r.countNum=100;var u=r.renderSections(t.documentPart.body);ur(e,u),r.refreshTabStops(),r.ep2.after("renderImage",r.renderImageCount,function(p){setTimeout(function(){o("ok")},200)})})}}),Object.defineProperty(i.prototype,"renderTheme",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n,a,r={},o=(n=t.theme)===null||n===void 0?void 0:n.fontScheme;o&&(o.majorFont&&(r["--docx-majorHAnsi-font"]=o.majorFont.latinTypeface),o.minorFont&&(r["--docx-minorHAnsi-font"]=o.minorFont.latinTypeface));var c=(a=t.theme)===null||a===void 0?void 0:a.colorScheme;if(c)for(var u=0,p=Object.entries(c.colors);u<p.length;u++){var m=p[u],v=m[0],x=m[1];r["--docx-".concat(v,"-color")]="#".concat(x)}var h=this.styleToString(".".concat(this.className),r);e.appendChild(cr(h))}}),Object.defineProperty(i.prototype,"renderFontTable",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){for(var n=this,a=function(p){for(var m=function(g){r.document.loadFont(g.id,g.key).then(function(f){var y={"font-family":p.name,src:"url(".concat(f,")")};(g.type=="bold"||g.type=="boldItalic")&&(y["font-weight"]="bold"),(g.type=="italic"||g.type=="boldItalic")&&(y["font-style"]="italic"),Gr(e,"docxjs ".concat(p.name," font"));var b=n.styleToString("@font-face",y);e.appendChild(cr(b)),n.refreshTabStops()})},v=0,x=p.embedFontRefs;v<x.length;v++){var h=x[v];m(h)}},r=this,o=0,c=t.fonts;o<c.length;o++){var u=c[o];a(u)}}}),Object.defineProperty(i.prototype,"processStyleName",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t?"".concat(this.className,"_").concat(Vt(t)):this.className}}),Object.defineProperty(i.prototype,"processStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=tt(t.filter(function(g){return g.id!=null}),function(g){return g.id}),n=0,a=t.filter(function(g){return g.basedOn});n<a.length;n++){var r=a[n],o=e[r.basedOn];if(o){r.paragraphProps=ot(r.paragraphProps,o.paragraphProps),r.runProps=ot(r.runProps,o.runProps);for(var c=function(g){var f=r.styles.find(function(y){return y.target==g.target});f?u.copyStyleProperties(g.values,f.values):r.styles.push(ie(ie({},g),{values:ie({},g.values)}))},u=this,p=0,m=o.styles;p<m.length;p++){var v=m[p];c(v)}}else this.options.debug&&console.warn("Can't find base style ".concat(r.basedOn))}for(var x=0,h=t;x<h.length;x++){var r=h[x];r.cssName=this.processStyleName(r.id)}return e}}),Object.defineProperty(i.prototype,"prodessNumberings",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e,n=0,a=t.filter(function(c){return c.pStyleName});n<a.length;n++){var r=a[n],o=this.findStyle(r.pStyleName);!((e=o==null?void 0:o.paragraphProps)===null||e===void 0)&&e.numbering&&(o.paragraphProps.numbering.level=r.level)}}}),Object.defineProperty(i.prototype,"processElement",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(t.children)for(var e=0,n=t.children;e<n.length;e++){var a=n[e];a.parent=t,a.type==le.Table?this.processTable(a):this.processElement(a)}}}),Object.defineProperty(i.prototype,"processTable",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=0,n=t.children;e<n.length;e++)for(var a=n[e],r=0,o=a.children;r<o.length;r++){var c=o[r];c.cssStyle=this.copyStyleProperties(t.cellStyle,c.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(c)}}}),Object.defineProperty(i.prototype,"copyStyleProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){if(n===void 0&&(n=null),!t)return e;e==null&&(e={}),n==null&&(n=Object.getOwnPropertyNames(t));for(var a=0,r=n;a<r.length;a++){var o=r[a];t.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(e[o]=t[o])}return e}}),Object.defineProperty(i.prototype,"createSection",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this.createElement("div",{className:t});return n}}),Object.defineProperty(i.prototype,"renderSections",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=[];this.processElement(t);for(var n=this.splitBySection(t.children),a=null,r=0,o=n.length;r<o;r++){this.currentFootnoteIds=[];var c=n[r],u=c.sectProps||t.props,p=this.createSection(this.className+"-centent-body",u);this.options.renderHeaders&&this.renderHeaderFooter(u.headerRefs,u,e.length,a!=u,p);var m=this.createElement("div");this.renderElements(c.elements,m),p.appendChild(m),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,p),this.options.renderEndnotes&&r==o-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,p),this.options.renderFooters&&this.renderHeaderFooter(u.footerRefs,u,e.length,a!=u,p),e.push(p),a=u}return e}}),Object.defineProperty(i.prototype,"renderHeaderFooter",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n,a,r){var o,c;if(t){var u=(c=(o=e.titlePage&&a?t.find(function(m){return m.type=="first"}):null)!==null&&o!==void 0?o:n%2==1?t.find(function(m){return m.type=="even"}):null)!==null&&c!==void 0?c:t.find(function(m){return m.type=="default"}),p=u&&this.document.findPartByRelId(u.id,this.document.documentPart);p&&(this.currentPart=p,this.usedHederFooterParts.includes(p.path)||(this.processElement(p.rootElement),this.usedHederFooterParts.push(p.path)),this.renderElements([p.rootElement],r),this.currentPart=null)}}}),Object.defineProperty(i.prototype,"isPageBreakElement",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t.type!=le.Break?!1:t.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:t.break=="page"}}),Object.defineProperty(i.prototype,"splitBySection",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=this,n,a={sectProps:null,elements:[]},r=[a],o=0,c=t;o<c.length;o++){var u=c[o];if(u.type==le.Paragraph){var p=this.findStyle(u.styleName);!((n=p==null?void 0:p.paragraphProps)===null||n===void 0)&&n.pageBreakBefore&&(a.sectProps=v,a={sectProps:null,elements:[]},r.push(a))}if(a.elements.push(u),u.type==le.Paragraph){var m=u,v=m.sectionProps,x=-1,h=-1;if(this.options.breakPages&&m.children&&(x=m.children.findIndex(function(H){var j,V;return h=(V=(j=H.children)===null||j===void 0?void 0:j.findIndex(e.isPageBreakElement.bind(e)))!==null&&V!==void 0?V:-1,h!=-1})),(v||x!=-1)&&(a.sectProps=v,a={sectProps:null,elements:[]},r.push(a)),x!=-1){var g=m.children[x],f=h<g.children.length-1;if(x<m.children.length-1||f){var y=u.children,b=ie(ie({},u),{children:y.slice(x)});if(u.children=y.slice(0,x),a.elements.push(b),f){var _=g.children,A=ie(ie({},g),{children:_.slice(0,h)});u.children.push(A),g.children=_.slice(h)}}}}}for(var O=null,z=r.length-1;z>=0;z--)r[z].sectProps==null?r[z].sectProps=O:O=r[z].sectProps;return r}}),Object.defineProperty(i.prototype,"renderWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},t)}}),Object.defineProperty(i.prototype,"renderDefaultStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this.className,e=`
.`.concat(t,`-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } 
.`).concat(t,"-wrapper>section.").concat(t,` { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }
.`).concat(t,` { color: black; }
section.`).concat(t,` { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
section.`).concat(t,`>article { margin-bottom: auto; }
.`).concat(t,` table { border-collapse: collapse; }
.`).concat(t," table td, .").concat(t,` table th { vertical-align: top; }
.`).concat(t,` p { margin: 0pt; min-height: 1em; }
.`).concat(t,` span { white-space: pre-wrap; overflow-wrap: break-word; }
.`).concat(t,` a { color: inherit; text-decoration: inherit; }
`);return cr(e)}}),Object.defineProperty(i.prototype,"renderNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){var a=t.map(function(o){return e[o]}).filter(function(o){return o});if(a.length>0){var r=this.createElement("ol",null,this.renderElements(a));n.appendChild(r)}}}),Object.defineProperty(i.prototype,"renderElement",{enumerable:!1,configurable:!0,writable:!0,value:function(t){switch(t.type){case le.Paragraph:return this.renderParagraph(t);case le.BookmarkStart:return this.renderBookmarkStart(t);case le.BookmarkEnd:return null;case le.Run:return this.renderRun(t);case le.Table:return this.renderTable(t);case le.Row:return this.renderTableRow(t);case le.Cell:return this.renderTableCell(t);case le.Hyperlink:return this.renderHyperlink(t);case le.Drawing:return this.renderDrawing(t);case le.Image:return this.renderImage(t);case le.Text:return this.renderText(t);case le.Tab:return this.renderTab(t);case le.Symbol:return this.renderSymbol(t);case le.Break:return this.renderBreak(t);case le.Footer:return this.renderContainer(t,"footer");case le.Header:return this.renderContainer(t,"header");case le.Footnote:case le.Endnote:return this.renderContainer(t,"li");case le.FootnoteReference:return this.renderFootnoteReference(t);case le.EndnoteReference:return this.renderEndnoteReference(t);case le.NoBreakHyphen:return this.createElement("wbr")}return null}}),Object.defineProperty(i.prototype,"renderChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return this.renderElements(t.children,e)}}),Object.defineProperty(i.prototype,"renderElements",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){var n=this;if(t==null)return null;var a=t.map(function(r){return n.renderElement(r)}).filter(function(r){return r!=null});return e&&ur(e,a),a}}),Object.defineProperty(i.prototype,"renderContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return this.createElement(e,null,this.renderChildren(t))}}),Object.defineProperty(i.prototype,"renderParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e,n,a,r,o=this.createElement("p"),c=this.findStyle(t.styleName);(e=t.tabs)!==null&&e!==void 0||(t.tabs=(n=c==null?void 0:c.paragraphProps)===null||n===void 0?void 0:n.tabs),this.renderClass(t,o),this.renderChildren(t,o),this.renderStyleValues(t.cssStyle,o),this.renderCommonProperties(o.style,t);var u=(a=t.numbering)!==null&&a!==void 0?a:(r=c==null?void 0:c.paragraphProps)===null||r===void 0?void 0:r.numbering;if(u){if(this.domNumberings[u.id]&&this.domNumberings[u.id][u.level]){var p=this.domNumberings[u.id][u.level];if(o.firstChild&&o.firstChild.innerHTML)o.firstChild.innerHTML=this.numLevelTextToContent(p)+o.firstChild.innerHTML;else{var m=this.createElement("span");m.innerHTML=this.numLevelTextToContent(p),o.appendChild(m)}}o.classList.add(this.numberingClass(u.id,u.level))}return o}}),Object.defineProperty(i.prototype,"renderRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){this.renderCommonProperties(t,e)}}),Object.defineProperty(i.prototype,"renderCommonProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e!=null&&(e.color&&(t.color=e.color),e.fontSize&&(t["font-size"]=e.fontSize))}}),Object.defineProperty(i.prototype,"renderHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("a");return this.renderChildren(t,e),this.renderStyleValues(t.cssStyle,e),t.href&&(e.href=t.href),e}}),Object.defineProperty(i.prototype,"renderDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e,n=this.createElement("p");return n.style.display="inline-block",t.children&&((e=t.children[0])===null||e===void 0?void 0:e.type)!=="image"&&(n.style.position="relative",n.style.textIndent="0px"),this.renderChildren(t,n),this.renderStyleValues(t.cssStyle,n),n}}),Object.defineProperty(i.prototype,"renderImage",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e,n,a=this.createElement("img");!t.cssStyle["max-width"]&&(t.cssStyle["max-width"]="100%"),t.cssStyle.width&&(t.cssStyle.width=parseFloat(t.cssStyle.width)*2+"pt"),t.cssStyle.height&&(t.cssStyle.height=parseFloat(t.cssStyle.height)*2+"pt");var r="";((n=(e=t.parent)===null||e===void 0?void 0:e.parent)===null||n===void 0?void 0:n.parent)&&t.parent.parent.parent.cssStyle&&(r=t.parent.parent.parent.cssStyle["text-align"]),r=="right"&&(t.cssStyle.float="right",t.cssStyle.height.replace(/pt$/,"px")),r=="center"&&(t.cssStyle.display="block",t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto"),this.renderStyleValues(t.cssStyle,a);var o=this;return o.renderImageCount++,a.setAttribute("data-tp-src",t.src),this.document&&this.document.loadDocumentImage(t.src,this.currentPart).then(function(c){o.ep2.emit("renderImage",{status:"ok",src:c,rId:t.src}),a.parentNode.style.width="100%",a.parentNode.style.height=null,a.parentNode.style.display="inline-block",a.src=c}),a}}),Object.defineProperty(i.prototype,"renderText",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return this.htmlDocument.createTextNode(t.text)}}),Object.defineProperty(i.prototype,"renderBreak",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return t.break=="textWrapping"?this.createElement("br"):null}}),Object.defineProperty(i.prototype,"renderSymbol",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("span");return e.style.fontFamily=t.font,e.innerHTML="&#x".concat(t.char,";"),e}}),Object.defineProperty(i.prototype,"renderFootnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("sup");return this.currentFootnoteIds.push(t.id),e.textContent="".concat(this.currentFootnoteIds.length),e}}),Object.defineProperty(i.prototype,"renderEndnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("sup");return this.currentEndnoteIds.push(t.id),e.textContent="".concat(this.currentEndnoteIds.length),e}}),Object.defineProperty(i.prototype,"renderTab",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e,n=this.createElement("span");if(n.innerHTML="&emsp;",this.options.experimental){n.className=this.tabStopClass();var a=(e=Kr(t,le.Paragraph))===null||e===void 0?void 0:e.tabs;this.currentTabs.push({stops:a,span:n})}return n}}),Object.defineProperty(i.prototype,"renderBookmarkStart",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("span");return e.id=t.name,e}}),Object.defineProperty(i.prototype,"renderRun",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(t.fieldRun)return null;var e=this.createElement("span");if(t.id&&(e.id=t.id),this.renderClass(t,e),this.renderStyleValues(t.cssStyle,e),t.verticalAlign){var n=this.createElement(t.verticalAlign);this.renderChildren(t,n),e.appendChild(n)}else this.renderChildren(t,e);return e}}),Object.defineProperty(i.prototype,"renderTable",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},t.columns&&e.appendChild(this.renderTableColumns(t.columns)),!t.cssStyle["border-collapse"]&&(t.cssStyle["border-collapse"]="collapse"),this.renderClass(t,e),this.renderChildren(t,e),this.renderStyleValues(t.cssStyle,e),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),e}}),Object.defineProperty(i.prototype,"renderTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(t){for(var e=this.createElement("colgroup"),n=0,a=t;n<a.length;n++){var r=a[n],o=this.createElement("col");r.width&&(o.style.width=r.width),e.appendChild(o)}return e}}),Object.defineProperty(i.prototype,"renderTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(t,e),this.renderChildren(t,e),this.renderStyleValues(t.cssStyle,e),this.currentCellPosition.row++,e}}),Object.defineProperty(i.prototype,"renderTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this.createElement("td");if(t.verticalMerge){var n=this.currentCellPosition.col;t.verticalMerge=="restart"?(this.currentVerticalMerge[n]=e,e.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,e.style.display="none")}return this.renderClass(t,e),this.renderChildren(t,e),this.renderStyleValues(t.cssStyle,e),t.span&&(e.colSpan=t.span),this.currentCellPosition.col++,e}}),Object.defineProperty(i.prototype,"renderStyleValues",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){t&&Object.keys(t).forEach(function(n){e.style[n]=typeof t[n]=="string"?t[n].replace(/pt/g,"px"):t[n]})}}),Object.defineProperty(i.prototype,"renderClass",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){t.className&&(e.className=t.className),t.styleName&&e.classList.add(this.processStyleName(t.styleName))}}),Object.defineProperty(i.prototype,"findStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e;return t&&((e=this.styleMap)===null||e===void 0?void 0:e[t])}}),Object.defineProperty(i.prototype,"numberingClass",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return"".concat(this.className,"-num-").concat(t,"-").concat(e)}}),Object.defineProperty(i.prototype,"tabStopClass",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"".concat(this.className,"-tab-stop")}}),Object.defineProperty(i.prototype,"styleToString",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n){n===void 0&&(n=null);var a="".concat(t,` {\r
`);for(var r in e)a+="  ".concat(r,": ").concat(e[r],`;\r
`);return n&&(a+=n),a+`}\r
`}}),Object.defineProperty(i.prototype,"styleInlineToString",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){e===void 0&&(e=null);var n='style="';!t["font-style"]&&(t["font-style"]="normal");for(var a in t)n+="".concat(a,": ").concat(t[a],"; ");return e&&(n+=e),n+'"'}}),Object.defineProperty(i.prototype,"numberingCounter",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return"".concat(this.className,"-num-").concat(t,"-").concat(e)}}),Object.defineProperty(i.prototype,"levelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e,n,a){var r=this,o,c={tab:"\\9",space:"\\a0"},u=t.replace(/%\d*/g,function(p){var m=parseInt(p.substring(1),10)-1;return'"counter('.concat(r.numberingCounter(n,m),", ").concat(a,')"')});return'"'.concat(u).concat((o=c[numberingData.suff])!==null&&o!==void 0?o:"",'"')}}),Object.defineProperty(i.prototype,"numLevelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e=this,n,a={tab:"&emsp;",space:"&nbsp;"},r={chineseCounting:["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],decimalEnclosedCircleChinese:["\u24EA","\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246A","\u246B","\u246C","\u246D","\u246E","\u246F","\u2470","\u2471","\u2472","\u2473","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325A","\u325B","\u325C","\u325D","\u325E","\u325F","\u32B1","\u32B2","\u32B3","\u32B4","\u32B5","\u32B6","\u32B7","\u32B8","\u32B9","\u32BA","\u32BB","\u32BC","\u32BD","\u32BE","\u32BF"],upperLetter:["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lowerLetter:["","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],test1:[" ","\u24B6","\u24B7","\u24B8","\u24B9","\u24BA","\u24BB","\u24BC","\u24BD","\u24BE","\u24BF","\u24C0","\u24C1","\u24C2","\u24C3","\u24C4","\u24C5","\u24C6","\u24C7","\u24C8","\u24C9","\u24CA","\u24CB","\u24CC","\u24CD","\u24CE","\u24CF"],test2:[" ","\u24D0","\u24D1","\u24D2","\u24D3","\u24D4","\u24D5","\u24D6","\u24D7","\u24D8","\u24D9","\u24DA","\u24DB","\u24DC","\u24DD","\u24DE","\u24DF","\u24E0","\u24E1","\u24E2","\u24E3","\u24E4","\u24E5","\u24E6","\u24E7","\u24E8","\u24E9"],test3:[" ","\u2776","\u2777","\u2778","\u2779","\u277A","\u277B","\u277C","\u277D","\u277E","\u277F","\u24EB","\u24EC","\u24ED","\u24EE","\u24EF","\u24F0","\u24F1","\u24F2","\u24F3","\u24F4"],test4:[" ","\u24F5","\u24F6","\u24F7","\u24F8","\u24F9","\u24FA","\u24FB","\u24FC","\u24FD","\u24FE"],test5:[" ","\u3280","\u3281","\u3282","\u3283","\u3284","\u3285","\u3286","\u3287","\u3288","\u3289"],upperRoman:[" ","\u2160","\u2161","\u2162","\u2163","\u2164","\u2165","\u2166","\u2167","\u2168","\u2169","\u216A","\u216B"],lowerRoman:["","\u2170","\u2171","\u2172","\u2173","\u2174","\u2175","\u2176","\u2177","\u2178","\u2179","\u217A","\u217B"]},o=t.levelText.replace(/%\d*/g,function(c){var u=parseInt(c.substring(1),10)-1,p=1;return u==t.level?(p=t.count,e.domNumberings[t.id][u].pCount=p,e.domNumberings[t.id][u+1]&&(e.domNumberings[t.id][u+1].count=1),t.count++):e.domNumberings[t.id]&&e.domNumberings[t.id][u]&&(p=e.domNumberings[t.id][u].count-1,p==0&&(p=1)),r[t.format]&&(p=r[t.format][p]),"".concat(p)});return t.format=="bullet"&&(o="<em "+this.styleInlineToString(t.rStyle)+'">'+t.levelText+"</em>"),"".concat(o).concat((n=a[t.suff])!==null&&n!==void 0?n:"")}}),Object.defineProperty(i.prototype,"numFormatToCssValue",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var e={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"};return e[t]||t}}),Object.defineProperty(i.prototype,"refreshTabStops",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;!this.options.experimental||(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(function(){for(var e=jr(),n=0,a=t.currentTabs;n<a.length;n++){var r=a[n];Nr(r.span,r.stops,t.defaultTabSize,e)}},500))}}),i}();function vr(i,t,e){t===void 0&&(t=void 0),e===void 0&&(e=void 0);var n=Object.assign(document.createElement(i),t);return e&&ur(n,e),n}function Zr(i){i.innerHTML=""}function ur(i,t){t.forEach(function(e){return i.appendChild(e)})}function cr(i){return vr("style",{innerHTML:i})}function Gr(i,t){i.appendChild(document.createComment(t))}function Kr(i,t){for(var e=i.parent;e!=null&&e.type!=t;)e=e.parent;return e}var Jr={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!0,className:"tp-importword",inWrapper:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!1,renderFooters:!1,renderFootnotes:!1,renderEndnotes:!1,useBase64URL:!1};function qr(i,t){t===void 0&&(t=null);var e=ie(ie({},Jr),t),n=window.document.createElement("div"),a=new $r(window.document);return new Promise(function(r){zr.load(i,new Tr(e),e).then(function(o){console.log(o),a.render(o,n,null,e).then(function(){r({html:n.innerHTML})})})})}var Yr=Promise,Xr=tinymce.util.Tools.resolve("tinymce.Env"),Qr=tinymce.util.Tools.resolve("tinymce.util.Delay"),en=function(i){return new Yr(function(t){var e=document.createElement("input");e.type="file",e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.opacity="0.001",document.body.appendChild(e);var n=function(r){t(Array.prototype.slice.call(r.target.files))};e.addEventListener("change",n);var a=function(r){var o=function(c){try{t(Array.prototype.slice.call(c.target?c.target.files:[]))}catch{}e.parentNode.removeChild(e)};Xr.os.isAndroid()&&r.type!=="remove"?Qr.setEditorTimeout(i,o,0):o(),i.off("focusin remove",a)};i.on("focusin remove",a),e.click()})},dr=null;function yr(i,t){rn(t,function(e){qr(e).then(function(n){tn(i,n)})})}function tn(i,t){var e=t.html;{i.insertContent(e.replace(/\s\s\s/gi,"&nbsp; "));try{top.tinymce.activeEditor.notificationManager.close();try{i.notificationManager.close()}catch{}}catch{try{i.notificationManager.close()}catch{}}i.notificationManager.open({text:"Import to Word succeeded",type:"success",timeout:2e3})}}function rn(i,t){var e=i[0],n=new FileReader;n.onload=function(a){var r=a.target.result;t(r)},n.readAsArrayBuffer(e)}var nn=function(i){i.options.register("tp_importword_handler",{processor:"function",default:void 0}),dr=i.options.get("tp_importword_handler")},pr=function(i,t){nn(i),en(i).then(function(e){if(typeof dr=="function"){var n=function(r){yr(i,r)};dr(i,e,n)}else{var a=e[0].name||"defule.docx";a.substr(a.lastIndexOf(".")+1)=="docx"?(i.notificationManager.open({text:"Converting...",type:"info",closeButton:!1}),yr(i,e)):i.notificationManager.open({text:"Currently only supports docx file format, if it is doc format, please convert it to docx",type:"warning"})}})},an=function(i,t){i.ui.registry.getAll().icons[t.registryName]||i.ui.registry.addIcon(t.registryName,t.icon),i.ui.registry.addButton(t.registryName,{icon:t.registryName,tooltip:t.title,onAction:function(){return pr(i)}}),i.ui.registry.addMenuItem(t.registryName,{icon:t.registryName,text:t.title,onAction:function(){return pr(i)}})},on=function(i,t){i.addCommand("mce".concat(t.registryName.substring(0,1).toUpperCase()+t.registryName.substring(1)),function(){pr(i)})},sn=window.__tp$dev__,ln=function(i,t){i.options.register("tp_importword_langs",{processor:"string",default:""}),fetch(sn?"/langs/"+(i.options.get("language")||"en")+".json":i.editorManager.PluginManager.urls[t.registryName]+"/langs/"+(i.options.get("language")||"en")+".json").then(function(e){e.text().then(function(n){try{i.tp$.I18n.add(i.options.get("language"),JSON.parse(n))}catch{}})})},un=function(i){tinymce.PluginManager.add(i.registryName,function(t,e){return t.tp$.I18n.add(t,i),ln(t,i),an(t,i),on(t,i),{getMetadata:function(){return{name:i.name,url:i.repo}}}})},wr={name:"Importword",registryName:"tpImportword",title:"import word document",repo:"https://github.com/Five-great/tinymce-plugin/tp-importword",icon:'<svg t="1604625110140" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14669" width="24" height="24"><path d="M546.21184 76.9024a30.72 30.72 0 0 1 21.70368 8.9856l248.22784 247.75168a30.72 30.72 0 0 1 9.0112 21.74464v163.3792a10.24 10.24 0 0 1-10.24 10.24h-51.712a10.24 10.24 0 0 1-10.24-10.24v-109.568h-232.448a30.72 30.72 0 0 1-30.72-30.72v-229.888h-330.752v726.016h438.272a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-478.72a30.72 30.72 0 0 1-30.72-30.72V107.6224a30.72 30.72 0 0 1 30.72-30.72h427.61728z m197.84192 531.712l-171.40736 141.43488a30.72 30.72 0 0 0 0 47.39072l171.40736 141.43488a10.24 10.24 0 0 0 14.2848-1.2288l36.01408-41.95328a10.24 10.24 0 0 0-1.6128-14.848l-94.68416-71.26016h232.43264a10.24 10.24 0 0 0 10.24-10.24v-51.2a10.24 10.24 0 0 0-10.24-10.24h-232.448l94.69952-71.26016a10.24 10.24 0 0 0 1.6128-14.848l-36.01408-41.95328a10.24 10.24 0 0 0-14.2848-1.2288z m-323.8912-224.512a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z m141.312-207.36v155.648a5.12 5.12 0 0 0 5.12 5.12h155.648l-160.768-160.768zM276.48 542.72l37.888 171.008 45.056-171.008h59.904l43.52 173.568 38.4-173.568h50.688l-60.928 248.832H437.76l-49.664-185.856-49.664 185.856H284.16L225.28 542.72h51.2z m143.68768-292.2496a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z" fill-rule="nonzero" ></path></svg>'};un(wr);var cn={opt:wr};return cn})();export{Rn as E};
