(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1774a3c1"],{2396:function(t,e,n){"use strict";t.exports={getImageXml:function(t,e){return('<w:drawing>\n\t\t<wp:inline distT="0" distB="0" distL="0" distR="0">\n\t\t\t<wp:extent cx="'+e[0]+'" cy="'+e[1]+'"/>\n\t\t\t<wp:effectExtent l="0" t="0" r="0" b="0"/>\n\t\t\t<wp:docPr id="2" name="Image 2" descr="image"/>\n\t\t\t<wp:cNvGraphicFramePr>\n\t\t\t\t<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>\n\t\t\t</wp:cNvGraphicFramePr>\n\t\t\t<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">\n\t\t\t\t<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">\n\t\t\t\t\t<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">\n\t\t\t\t\t\t<pic:nvPicPr>\n\t\t\t\t\t\t\t<pic:cNvPr id="0" name="Picture 1" descr="image"/>\n\t\t\t\t\t\t\t<pic:cNvPicPr>\n\t\t\t\t\t\t\t\t<a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>\n\t\t\t\t\t\t\t</pic:cNvPicPr>\n\t\t\t\t\t\t</pic:nvPicPr>\n\t\t\t\t\t\t<pic:blipFill>\n\t\t\t\t\t\t\t<a:blip r:embed="rId'+t+'">\n\t\t\t\t\t\t\t\t<a:extLst>\n\t\t\t\t\t\t\t\t\t<a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">\n\t\t\t\t\t\t\t\t\t\t<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>\n\t\t\t\t\t\t\t\t\t</a:ext>\n\t\t\t\t\t\t\t\t</a:extLst>\n\t\t\t\t\t\t\t</a:blip>\n\t\t\t\t\t\t\t<a:srcRect/>\n\t\t\t\t\t\t\t<a:stretch>\n\t\t\t\t\t\t\t\t<a:fillRect/>\n\t\t\t\t\t\t\t</a:stretch>\n\t\t\t\t\t\t</pic:blipFill>\n\t\t\t\t\t\t<pic:spPr bwMode="auto">\n\t\t\t\t\t\t\t<a:xfrm>\n\t\t\t\t\t\t\t\t<a:off x="0" y="0"/>\n\t\t\t\t\t\t\t\t<a:ext cx="'+e[0]+'" cy="'+e[1]+'"/>\n\t\t\t\t\t\t\t</a:xfrm>\n\t\t\t\t\t\t\t<a:prstGeom prst="rect">\n\t\t\t\t\t\t\t\t<a:avLst/>\n\t\t\t\t\t\t\t</a:prstGeom>\n\t\t\t\t\t\t\t<a:noFill/>\n\t\t\t\t\t\t\t<a:ln>\n\t\t\t\t\t\t\t\t<a:noFill/>\n\t\t\t\t\t\t\t</a:ln>\n\t\t\t\t\t\t</pic:spPr>\n\t\t\t\t\t</pic:pic>\n\t\t\t\t</a:graphicData>\n\t\t\t</a:graphic>\n\t\t</wp:inline>\n\t</w:drawing>\n\t\t').replace(/\t|\n/g,"")},getImageXmlCentered:function(t,e){return('<w:p>\n\t\t\t<w:pPr>\n\t\t\t\t<w:jc w:val="center"/>\n\t\t\t</w:pPr>\n\t\t\t<w:r>\n\t\t\t\t<w:rPr/>\n\t\t\t\t<w:drawing>\n\t\t\t\t\t<wp:inline distT="0" distB="0" distL="0" distR="0">\n\t\t\t\t\t<wp:extent cx="'+e[0]+'" cy="'+e[1]+'"/>\n\t\t\t\t\t<wp:docPr id="0" name="Picture" descr=""/>\n\t\t\t\t\t<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">\n\t\t\t\t\t\t<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">\n\t\t\t\t\t\t<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">\n\t\t\t\t\t\t\t<pic:nvPicPr>\n\t\t\t\t\t\t\t<pic:cNvPr id="0" name="Picture" descr=""/>\n\t\t\t\t\t\t\t<pic:cNvPicPr>\n\t\t\t\t\t\t\t\t<a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>\n\t\t\t\t\t\t\t</pic:cNvPicPr>\n\t\t\t\t\t\t\t</pic:nvPicPr>\n\t\t\t\t\t\t\t<pic:blipFill>\n\t\t\t\t\t\t\t<a:blip r:embed="rId'+t+'"/>\n\t\t\t\t\t\t\t<a:stretch>\n\t\t\t\t\t\t\t\t<a:fillRect/>\n\t\t\t\t\t\t\t</a:stretch>\n\t\t\t\t\t\t\t</pic:blipFill>\n\t\t\t\t\t\t\t<pic:spPr bwMode="auto">\n\t\t\t\t\t\t\t<a:xfrm>\n\t\t\t\t\t\t\t\t<a:off x="0" y="0"/>\n\t\t\t\t\t\t\t\t<a:ext cx="'+e[0]+'" cy="'+e[1]+'"/>\n\t\t\t\t\t\t\t</a:xfrm>\n\t\t\t\t\t\t\t<a:prstGeom prst="rect">\n\t\t\t\t\t\t\t\t<a:avLst/>\n\t\t\t\t\t\t\t</a:prstGeom>\n\t\t\t\t\t\t\t<a:noFill/>\n\t\t\t\t\t\t\t<a:ln w="9525">\n\t\t\t\t\t\t\t\t<a:noFill/>\n\t\t\t\t\t\t\t\t<a:miter lim="800000"/>\n\t\t\t\t\t\t\t\t<a:headEnd/>\n\t\t\t\t\t\t\t\t<a:tailEnd/>\n\t\t\t\t\t\t\t</a:ln>\n\t\t\t\t\t\t\t</pic:spPr>\n\t\t\t\t\t\t</pic:pic>\n\t\t\t\t\t\t</a:graphicData>\n\t\t\t\t\t</a:graphic>\n\t\t\t\t\t</wp:inline>\n\t\t\t\t</w:drawing>\n\t\t\t</w:r>\n\t\t</w:p>\n\t\t').replace(/\t|\n/g,"")},getPptxImageXml:function(t,e,n){return('<p:pic>\n\t\t\t<p:nvPicPr>\n\t\t\t\t<p:cNvPr id="6" name="Picture 2"/>\n\t\t\t\t<p:cNvPicPr>\n\t\t\t\t\t<a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>\n\t\t\t\t</p:cNvPicPr>\n\t\t\t\t<p:nvPr/>\n\t\t\t</p:nvPicPr>\n\t\t\t<p:blipFill>\n\t\t\t\t<a:blip r:embed="rId'+t+'" cstate="print">\n\t\t\t\t\t<a:extLst>\n\t\t\t\t\t\t<a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">\n\t\t\t\t\t\t\t<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0"/>\n\t\t\t\t\t\t</a:ext>\n\t\t\t\t\t</a:extLst>\n\t\t\t\t</a:blip>\n\t\t\t\t<a:srcRect/>\n\t\t\t\t<a:stretch>\n\t\t\t\t\t<a:fillRect/>\n\t\t\t\t</a:stretch>\n\t\t\t</p:blipFill>\n\t\t\t<p:spPr bwMode="auto">\n\t\t\t\t<a:xfrm>\n\t\t\t\t\t<a:off x="'+n.x+'" y="'+n.y+'"/>\n\t\t\t\t\t<a:ext cx="'+e[0]+'" cy="'+e[1]+'"/>\n\t\t\t\t</a:xfrm>\n\t\t\t\t<a:prstGeom prst="rect">\n\t\t\t\t\t<a:avLst/>\n\t\t\t\t</a:prstGeom>\n\t\t\t\t<a:noFill/>\n\t\t\t\t<a:ln>\n\t\t\t\t\t<a:noFill/>\n\t\t\t\t</a:ln>\n\t\t\t\t<a:effectLst/>\n\t\t\t\t<a:extLst>\n\t\t\t\t\t<a:ext uri="{909E8E84-426E-40DD-AFC4-6F175D3DCCD1}">\n\t\t\t\t\t\t<a14:hiddenFill xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">\n\t\t\t\t\t\t\t<a:solidFill>\n\t\t\t\t\t\t\t\t<a:schemeClr val="accent1"/>\n\t\t\t\t\t\t\t</a:solidFill>\n\t\t\t\t\t\t</a14:hiddenFill>\n\t\t\t\t\t</a:ext>\n\t\t\t\t\t<a:ext uri="{91240B29-F687-4F45-9708-019B960494DF}">\n\t\t\t\t\t\t<a14:hiddenLine xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" w="9525">\n\t\t\t\t\t\t\t<a:solidFill>\n\t\t\t\t\t\t\t\t<a:schemeClr val="tx1"/>\n\t\t\t\t\t\t\t</a:solidFill>\n\t\t\t\t\t\t\t<a:miter lim="800000"/>\n\t\t\t\t\t\t\t<a:headEnd/>\n\t\t\t\t\t\t\t<a:tailEnd/>\n\t\t\t\t\t\t</a14:hiddenLine>\n\t\t\t\t\t</a:ext>\n\t\t\t\t\t<a:ext uri="{AF507438-7753-43E0-B8FC-AC1667EBCBE1}">\n\t\t\t\t\t\t<a14:hiddenEffects xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">\n\t\t\t\t\t\t\t<a:effectLst>\n\t\t\t\t\t\t\t\t<a:outerShdw dist="35921" dir="2700000" algn="ctr" rotWithShape="0">\n\t\t\t\t\t\t\t\t\t<a:schemeClr val="bg2"/>\n\t\t\t\t\t\t\t\t</a:outerShdw>\n\t\t\t\t\t\t\t</a:effectLst>\n\t\t\t\t\t\t</a14:hiddenEffects>\n\t\t\t\t\t</a:ext>\n\t\t\t\t</a:extLst>\n\t\t\t</p:spPr>\n\t\t</p:pic>\n\t\t').replace(/\t|\n/g,"")}}},"29d8":function(t,e,n){function r(t){this.options=t||{locator:{}}}function i(t,e,n){if(!t){if(e instanceof a)return e;t=e}var r={},i=t instanceof Function;function o(e){var a=t[e];!a&&i&&(a=2==t.length?function(n){t(e,n)}:t),r[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+s(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}function a(){this.cdata=!1}function o(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function s(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function c(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function l(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}r.prototype.parseFromString=function(t,e){var n=this.options,r=new u,o=n.domBuilder||new a,s=n.errorHandler,c=n.locator,l=n.xmlns||{},p={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=i(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(e)&&(p.nbsp=" ",p.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,l,p):r.errorHandler.error("invalid doc source"),o.doc},a.prototype={startDocument:function(){this.doc=(new p).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,a=i.createElementNS(t,n||e),s=r.length;l(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var c=0;c<s;c++){t=r.getURI(c);var u=r.getValue(c),p=(n=r.getQName(c),i.createAttributeNS(t,n));this.locator&&o(r.getLocator(c),p),p.value=p.nodeValue=u,a.setAttributeNode(p)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&o(this.locator,n),l(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=c.apply(this,arguments),t){if(this.cdata)var r=this.doc.createCDATASection(t);else r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=c.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&o(this.locator,r),l(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(t,e,n);this.locator&&o(this.locator,i),l(this,i)}},warning:function(t){console.warn("[xmldom warning]\t"+t,s(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,s(this.locator))},fatalError:function(t){throw console.error("[xmldom fatalError]\t"+t,s(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){a.prototype[t]=function(){return null}}));var u=n("d61d").XMLReader,p=e.DOMImplementation=n("749c").DOMImplementation;e.XMLSerializer=n("749c").XMLSerializer,e.DOMParser=r},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(t){return i(r(t))}}))},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),a=n("0390"),o=n("5f1b");n("214f")("match",1,(function(t,e,n,s){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=r(t),l=String(this);if(!c.global)return o(c,l);var u=c.unicode;c.lastIndex=0;var p,m=[],f=0;while(null!==(p=o(c,l))){var h=String(p[0]);m[f]=h,""===h&&(c.lastIndex=a(l,i(c.lastIndex),u)),f++}return 0===f?null:m}]}))},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),a=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],o={};o[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},"654f":function(t,e,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n("2396"),s=n("fbf9").DocUtils,c=n("29d8").DOMParser;function l(t){return!(t===t)}var u=n("e9a3"),p="open-xml-templating/docxtemplater-image-module";function m(t){var e=t.part;return e}function f(t){var e=t.part,n=t.left,r=t.right,i=t.postparsed,a=i.slice(n+1,r).reduce((function(t,e){return t+e.value}),""),o=(new c).parseFromString("<xml>"+a+"</xml>");e.offset={x:0,y:0},e.ext={cx:0,cy:0};var s=o.getElementsByTagName("a:off"),l=o.getElementsByTagName("a:ext");return l.length>0&&(e.ext.cx=parseInt(l[l.length-1].getAttribute("cx"),10),e.ext.cy=parseInt(l[l.length-1].getAttribute("cy"),10)),s.length>0&&(e.offset.x=parseInt(s[s.length-1].getAttribute("x"),10),e.offset.y=parseInt(s[s.length-1].getAttribute("y"),10)),e}var h=function(){function t(e){if(a(this,t),this.name="ImageModule",this.options=e||{},this.imgManagers={},null==this.options.centered&&(this.options.centered=!1),null==this.options.getImage)throw new Error("You should pass getImage");if(null==this.options.getSize)throw new Error("You should pass getSize");this.imageNumber=1}return i(t,[{key:"optionsTransformer",value:function(t,e){var n=e.zip.file(/\.xml\.rels/).concat(e.zip.file(/\[Content_Types\].xml/)).map((function(t){return t.name}));return this.fileTypeConfig=e.fileTypeConfig,this.fileType=e.fileType,this.zip=e.zip,t.xmlFileNames=t.xmlFileNames.concat(n),t}},{key:"set",value:function(t){t.zip&&(this.zip=t.zip),t.xmlDocuments&&(this.xmlDocuments=t.xmlDocuments)}},{key:"parse",value:function(t){var e=p,n="placeholder";return this.options.setParser?this.options.setParser(t):"%%"===t.substring(0,2)?{type:n,value:t.substr(2),module:e,centered:!0}:"%"===t.substring(0,1)?{type:n,value:t.substr(1),module:e,centered:!1}:null}},{key:"postparse",value:function(t){var e=void 0,n=void 0;return"pptx"===this.fileType?(e="p:sp",n=f):(e=this.options.centered?"w:p":"w:t",n=m),s.traits.expandToOne(t,{moduleName:p,getInner:n,expandTo:e})}},{key:"render",value:function(t,e){if("placeholder"===!t.type||t.module!==p)return null;var n=e.scopeManager.getValue(t.value,{part:t});if(!n)return{value:this.fileTypeConfig.tagTextXml};if("object"===("undefined"===typeof n?"undefined":r(n)))return this.getRenderedPart(t,n.rId,n.sizePixel);var i=new u(this.zip,e.filePath,this.xmlDocuments,this.fileType),a=this.options.getImage(n,t.value),o=i.addImageRels(this.getNextImageName(),a),s=this.options.getSize(a,n,t.value);return this.getRenderedPart(t,o,s)}},{key:"resolve",value:function(t,e){var n=this,r=new u(this.zip,e.filePath,this.xmlDocuments,this.fileType);if("placeholder"===!t.type||t.module!==p)return null;var i=e.scopeManager.getValue(t.value,{part:t});return i?new Promise((function(e){var r=n.options.getImage(i,t.value);e(r)})).then((function(e){var a=r.addImageRels(n.getNextImageName(),e);return new Promise((function(r){var a=n.options.getSize(e,i,t.value);r(a)})).then((function(t){return{rId:a,sizePixel:t}}))})):{value:this.fileTypeConfig.tagTextXml}}},{key:"getRenderedPart",value:function(t,e,n){if(l(e))throw new Error("rId is NaN, aborting");var r=[s.convertPixelsToEmus(n[0]),s.convertPixelsToEmus(n[1])],i=this.options.centered||t.centered,a=void 0;return a="pptx"===this.fileType?this.getRenderedPartPptx(t,e,r,i):this.getRenderedPartDocx(e,r,i),{value:a}}},{key:"getRenderedPartPptx",value:function(t,e,n,r){var i={x:parseInt(t.offset.x,10),y:parseInt(t.offset.y,10)},a=parseInt(t.ext.cx,10)||1,s=parseInt(t.ext.cy,10)||1,c=parseInt(n[0],10)||1,l=parseInt(n[1],10)||1;return r&&(i.x=Math.round(i.x+a/2-c/2),i.y=Math.round(i.y+s/2-l/2)),o.getPptxImageXml(e,[c,l],i)}},{key:"getRenderedPartDocx",value:function(t,e,n){return n?o.getImageXmlCentered(t,e):o.getImageXml(t,e)}},{key:"getNextImageName",value:function(){var t="image_generated_"+this.imageNumber+".png";return this.imageNumber++,t}}]),t}();t.exports=h},"749c":function(t,e){function n(t,e){for(var n in t)e[n]=t[n]}function r(t,e){var r=t.prototype;if(Object.create){var i=Object.create(e.prototype);r.__proto__=i}if(!(r instanceof e)){function a(){}a.prototype=e.prototype,a=new a,n(r,a),t.prototype=r=a}r.constructor!=t&&("function"!=typeof t&&console.error("unknow Class:"+t),r.constructor=t)}var i="http://www.w3.org/1999/xhtml",a={},o=a.ELEMENT_NODE=1,s=a.ATTRIBUTE_NODE=2,c=a.TEXT_NODE=3,l=a.CDATA_SECTION_NODE=4,u=a.ENTITY_REFERENCE_NODE=5,p=a.ENTITY_NODE=6,m=a.PROCESSING_INSTRUCTION_NODE=7,f=a.COMMENT_NODE=8,h=a.DOCUMENT_NODE=9,d=a.DOCUMENT_TYPE_NODE=10,g=a.DOCUMENT_FRAGMENT_NODE=11,v=a.NOTATION_NODE=12,w={},N={},x=(w.INDEX_SIZE_ERR=(N[1]="Index size error",1),w.DOMSTRING_SIZE_ERR=(N[2]="DOMString size error",2),w.HIERARCHY_REQUEST_ERR=(N[3]="Hierarchy request error",3)),b=(w.WRONG_DOCUMENT_ERR=(N[4]="Wrong document",4),w.INVALID_CHARACTER_ERR=(N[5]="Invalid character",5),w.NO_DATA_ALLOWED_ERR=(N[6]="No data allowed",6),w.NO_MODIFICATION_ALLOWED_ERR=(N[7]="No modification allowed",7),w.NOT_FOUND_ERR=(N[8]="Not found",8)),y=(w.NOT_SUPPORTED_ERR=(N[9]="Not supported",9),w.INUSE_ATTRIBUTE_ERR=(N[10]="Attribute in use",10));w.INVALID_STATE_ERR=(N[11]="Invalid state",11),w.SYNTAX_ERR=(N[12]="Syntax error",12),w.INVALID_MODIFICATION_ERR=(N[13]="Invalid modification",13),w.NAMESPACE_ERR=(N[14]="Invalid namespace",14),w.INVALID_ACCESS_ERR=(N[15]="Invalid access",15);function E(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,N[t]),this.message=N[t],Error.captureStackTrace&&Error.captureStackTrace(this,E);return n.code=t,e&&(this.message=this.message+": "+e),n}function I(){}function T(t,e){this._node=t,this._refresh=e,D(this)}function D(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var r=t._refresh(t._node);ot(t,"length",r.length),n(r,t),t._inc=e}}function C(){}function S(t,e){var n=t.length;while(n--)if(t[n]===e)return n}function A(t,e,n,r){if(r?e[S(e,r)]=n:e[e.length++]=n,t){n.ownerElement=t;var i=t.ownerDocument;i&&(r&&L(i,t,r),k(i,t,n))}}function R(t,e,n){var r=S(e,n);if(!(r>=0))throw E(b,new Error(t.tagName+"@"+n));var i=e.length-1;while(r<i)e[r]=e[++r];if(e.length=i,t){var a=t.ownerDocument;a&&(L(a,t,n),n.ownerElement=null)}}function _(t){if(this._features={},t)for(var e in t)this._features=t[e]}function P(){}function F(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function O(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(O(t,e))return!0}while(t=t.nextSibling)}function M(){}function k(t,e,n){t&&t._inc++;var r=n.namespaceURI;"http://www.w3.org/2000/xmlns/"==r&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function L(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;"http://www.w3.org/2000/xmlns/"==i&&delete e._nsMap[n.prefix?n.localName:""]}function B(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{var i=e.firstChild,a=0;while(i)r[a++]=i,i=i.nextSibling;r.length=a}}}function U(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,B(t.ownerDocument,t),e}function z(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===g){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=n?n.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=n,o?o.nextSibling=i:t.firstChild=i,null==n?t.lastChild=a:n.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return B(t.ownerDocument||t,t),e.nodeType==g&&(e.firstChild=e.lastChild=null),e}function $(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e);r=t.lastChild}r=t.lastChild;return e.parentNode=t,e.previousSibling=r,e.nextSibling=null,r?r.nextSibling=e:t.firstChild=e,t.lastChild=e,B(t.ownerDocument,t,e),e}function V(){this._nsMap={}}function X(){}function j(){}function G(){}function q(){}function Y(){}function H(){}function W(){}function Z(){}function Q(){}function J(){}function K(){}function tt(){}function et(t,e){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,a=r.namespaceURI;if(a&&null==i){i=r.lookupPrefix(a);if(null==i)var o=[{namespace:a,prefix:null}]}return rt(this,n,t,e,o),n.join("")}function nt(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;var a=n.length;while(a--){var o=n[a];if(o.prefix==r)return o.namespace!=i}return!0}function rt(t,e,n,r,a){if(r){if(t=r(t),!t)return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case o:a||(a=[]);a.length;var p=t.attributes,v=p.length,w=t.firstChild,N=t.tagName;n=i===t.namespaceURI||n,e.push("<",N);for(var x=0;x<v;x++){var b=p.item(x);"xmlns"==b.prefix?a.push({prefix:b.localName,namespace:b.value}):"xmlns"==b.nodeName&&a.push({prefix:"",namespace:b.value})}for(x=0;x<v;x++){b=p.item(x);if(nt(b,n,a)){var y=b.prefix||"",E=b.namespaceURI,I=y?" xmlns:"+y:" xmlns";e.push(I,'="',E,'"'),a.push({prefix:y,namespace:E})}rt(b,e,n,r,a)}if(nt(t,n,a)){y=t.prefix||"",E=t.namespaceURI,I=y?" xmlns:"+y:" xmlns";e.push(I,'="',E,'"'),a.push({prefix:y,namespace:E})}if(w||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(N)){if(e.push(">"),n&&/^script$/i.test(N))while(w)w.data?e.push(w.data):rt(w,e,n,r,a),w=w.nextSibling;else while(w)rt(w,e,n,r,a),w=w.nextSibling;e.push("</",N,">")}else e.push("/>");return;case h:case g:w=t.firstChild;while(w)rt(w,e,n,r,a),w=w.nextSibling;return;case s:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,F),'"');case c:return e.push(t.data.replace(/[<&]/g,F));case l:return e.push("<![CDATA[",t.data,"]]>");case f:return e.push("\x3c!--",t.data,"--\x3e");case d:var T=t.publicId,D=t.systemId;if(e.push("<!DOCTYPE ",t.name),T)e.push(' PUBLIC "',T),D&&"."!=D&&e.push('" "',D),e.push('">');else if(D&&"."!=D)e.push(' SYSTEM "',D,'">');else{var C=t.internalSubset;C&&e.push(" [",C,"]"),e.push(">")}return;case m:return e.push("<?",t.target," ",t.data,"?>");case u:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function it(t,e,n){var r;switch(e.nodeType){case o:r=e.cloneNode(!1),r.ownerDocument=t;case g:break;case s:n=!0;break}if(r||(r=e.cloneNode(!1)),r.ownerDocument=t,r.parentNode=null,n){var i=e.firstChild;while(i)r.appendChild(it(t,i,n)),i=i.nextSibling}return r}function at(t,e,n){var r=new e.constructor;for(var i in e){var a=e[i];"object"!=typeof a&&a!=r[i]&&(r[i]=a)}switch(e.childNodes&&(r.childNodes=new I),r.ownerDocument=t,r.nodeType){case o:var c=e.attributes,l=r.attributes=new C,u=c.length;l._ownerElement=r;for(var p=0;p<u;p++)r.setAttributeNode(at(t,c.item(p),!0));break;case s:n=!0}if(n){var m=e.firstChild;while(m)r.appendChild(at(t,m,n)),m=m.nextSibling}return r}function ot(t,e,n){t[e]=n}E.prototype=Error.prototype,n(w,E),I.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],r=0;r<this.length;r++)rt(this[r],n,t,e);return n.join("")}},T.prototype.item=function(t){return D(this),this[t]},r(T,I),C.prototype={length:0,item:I.prototype.item,getNamedItem:function(t){var e=this.length;while(e--){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new E(y);var n=this.getNamedItem(t.nodeName);return A(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new E(y);return e=this.getNamedItemNS(t.namespaceURI,t.localName),A(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return R(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return R(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){var n=this.length;while(n--){var r=this[n];if(r.localName==e&&r.namespaceURI==t)return r}return null}},_.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var r=new M;if(r.implementation=this,r.childNodes=new I,r.doctype=n,n&&r.appendChild(n),e){var i=r.createElementNS(t,e);r.appendChild(i)}return r},createDocumentType:function(t,e,n){var r=new H;return r.name=t,r.nodeName=t,r.publicId=e,r.systemId=n,r}},P.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return z(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return U(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return at(this.ownerDocument||this,this,t)},normalize:function(){var t=this.firstChild;while(t){var e=t.nextSibling;e&&e.nodeType==c&&t.nodeType==c?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){var e=this;while(e){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=e.nodeType==s?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){var e=this;while(e){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==s?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return null==e}},n(a,P),n(a,P.prototype),M.prototype={nodeName:"#document",nodeType:h,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==g){var n=t.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return null==this.documentElement&&t.nodeType==o&&(this.documentElement=t),z(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),U(this,t)},importNode:function(t,e){return it(this,t,e)},getElementById:function(t){var e=null;return O(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new V;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new I;var n=e.attributes=new C;return n._ownerElement=e,e},createDocumentFragment:function(){var t=new J;return t.ownerDocument=this,t.childNodes=new I,t},createTextNode:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new q;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new K;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new X;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new V,r=e.split(":"),i=n.attributes=new C;return n.childNodes=new I,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new X,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},r(M,P),V.prototype={nodeType:o,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===g?this.insertBefore(t,null):$(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new T(this,(function(e){var n=[];return O(e,(function(r){r===e||r.nodeType!=o||"*"!==t&&r.tagName!=t||n.push(r)})),n}))},getElementsByTagNameNS:function(t,e){return new T(this,(function(n){var r=[];return O(n,(function(i){i===n||i.nodeType!==o||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||r.push(i)})),r}))}},M.prototype.getElementsByTagName=V.prototype.getElementsByTagName,M.prototype.getElementsByTagNameNS=V.prototype.getElementsByTagNameNS,r(V,P),X.prototype.nodeType=s,r(X,P),j.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(N[x])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){var r=this.data.substring(0,t),i=this.data.substring(t+e);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},r(j,P),G.prototype={nodeName:"#text",nodeType:c,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(G,j),q.prototype={nodeName:"#comment",nodeType:f},r(q,j),Y.prototype={nodeName:"#cdata-section",nodeType:l},r(Y,j),H.prototype.nodeType=d,r(H,P),W.prototype.nodeType=v,r(W,P),Z.prototype.nodeType=p,r(Z,P),Q.prototype.nodeType=u,r(Q,P),J.prototype.nodeName="#document-fragment",J.prototype.nodeType=g,r(J,P),K.prototype.nodeType=m,r(K,P),tt.prototype.serializeToString=function(t,e,n){return et.call(t,e,n)},P.prototype.toString=et;try{if(Object.defineProperty){function st(t){switch(t.nodeType){case o:case g:var e=[];t=t.firstChild;while(t)7!==t.nodeType&&8!==t.nodeType&&e.push(st(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(T.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return st(this)},set:function(t){switch(this.nodeType){case o:case g:while(this.firstChild)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ot=function(t,e,n){t["$$"+e]=n}}}catch(ct){}e.DOMImplementation=_,e.XMLSerializer=tt},"99fa":function(t,e,n){"use strict";var r=n("fbf9").DocUtils;r.convertPixelsToEmus=function(t){return Math.round(9525*t)},t.exports=r},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),a=n("79e5"),o=n("fdef"),s="["+o+"]",c="
",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),p=function(t,e,n){var i={},s=a((function(){return!!o[t]()||c[t]()!=c})),l=i[t]=s?e(m):o[t];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},m=p.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=p},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),a=n("2d95"),o=n("5dbc"),s=n("6a99"),c=n("79e5"),l=n("9093").f,u=n("11e9").f,p=n("86cc").f,m=n("aa77").trim,f="Number",h=r[f],d=h,g=h.prototype,v=a(n("2aeb")(g))==f,w="trim"in String.prototype,N=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=w?e.trim():m(e,3);var n,r,i,a=e.charCodeAt(0);if(43===a||45===a){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var o,c=e.slice(2),l=0,u=c.length;l<u;l++)if(o=c.charCodeAt(l),o<48||o>i)return NaN;return parseInt(c,r)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(v?c((function(){g.valueOf.call(n)})):a(n)!=f)?o(new d(N(e)),n,h):N(e)};for(var x,b=n("9e1e")?l(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;b.length>y;y++)i(d,x=b[y])&&!i(h,x)&&p(h,x,u(d,x));h.prototype=g,g.constructor=h,n("2aba")(r,f,h)}},d61d:function(t,e){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),a=0,o=1,s=2,c=3,l=4,u=5,p=6,m=7;function f(){}function h(t,e,n,r,i){function a(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function o(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?a(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function s(e){if(e>x){var n=t.substring(x,e).replace(/&#?\w+;/g,o);m&&c(x),r.characters(n,0,e-x),x=e}}function c(e,n){while(e>=u&&(n=p.exec(t)))l=n.index,u=l+n[0].length,m.lineNumber++;m.columnNumber=e-l+1}var l=0,u=0,p=/.*(?:\r\n?|\n)|.*$/g,m=r.locator,f=[{currentNSMap:e}],h={},x=0;while(1){try{var I=t.indexOf("<",x);if(I<0){if(!t.substr(x).match(/^\s*$/)){var T=r.doc,D=T.createTextNode(t.substr(x));T.appendChild(D),r.currentElement=D}return}switch(I>x&&s(I),t.charAt(I+1)){case"/":var C=t.indexOf(">",I+3),S=t.substring(I+2,C),A=f.pop();C<0?(S=t.substring(I+2).replace(/[\s<].*/,""),i.error("end tag name: "+S+" is not complete:"+A.tagName),C=I+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),i.error("end tag name: "+S+" maybe not complete"),C=I+1+S.length);var R=A.localNSMap,_=A.tagName==S,P=_||A.tagName&&A.tagName.toLowerCase()==S.toLowerCase();if(P){if(r.endElement(A.uri,A.localName,S),R)for(var F in R)r.endPrefixMapping(F);_||i.fatalError("end tag name: "+S+" is not match the current start tagName:"+A.tagName)}else f.push(A);C++;break;case"?":m&&c(I),C=y(t,I,r);break;case"!":m&&c(I),C=b(t,I,r,i);break;default:m&&c(I);var O=new E,M=f[f.length-1].currentNSMap,k=(C=g(t,I,O,M,o,i),O.length);if(!O.closed&&N(t,C,O.tagName,h)&&(O.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),m&&k){for(var L=d(m,{}),B=0;B<k;B++){var U=O[B];c(U.offset),U.locator=d(m,{})}r.locator=L,v(O,r,M)&&f.push(O),r.locator=m}else v(O,r,M)&&f.push(O);"http://www.w3.org/1999/xhtml"!==O.uri||O.closed?C++:C=w(t,C,O.tagName,o,r)}}catch(z){i.error("element parse error: "+z),C=-1}C>x?x=C:s(Math.max(I,x)+1)}}function d(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function g(t,e,n,r,i,f){var h,d=++e,g=a;while(1){var v=t.charAt(d);switch(v){case"=":if(g===o)h=t.slice(e,d),g=c;else{if(g!==s)throw new Error("attribute equal must after attrName");g=c}break;case"'":case'"':if(g===c||g===o){if(g===o&&(f.warning('attribute value must after "="'),h=t.slice(e,d)),e=d+1,d=t.indexOf(v,e),!(d>0))throw new Error("attribute value no end '"+v+"' match");w=t.slice(e,d).replace(/&#?\w+;/g,i),n.add(h,w,e-1),g=u}else{if(g!=l)throw new Error('attribute value must after "="');w=t.slice(e,d).replace(/&#?\w+;/g,i),n.add(h,w,e),f.warning('attribute "'+h+'" missed start quot('+v+")!!"),e=d+1,g=u}break;case"/":switch(g){case a:n.setTagName(t.slice(e,d));case u:case p:case m:g=m,n.closed=!0;case l:case o:case s:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return f.error("unexpected end of input"),g==a&&n.setTagName(t.slice(e,d)),d;case">":switch(g){case a:n.setTagName(t.slice(e,d));case u:case p:case m:break;case l:case o:w=t.slice(e,d),"/"===w.slice(-1)&&(n.closed=!0,w=w.slice(0,-1));case s:g===s&&(w=h),g==l?(f.warning('attribute "'+w+'" missed quot(")!!'),n.add(h,w.replace(/&#?\w+;/g,i),e)):("http://www.w3.org/1999/xhtml"===r[""]&&w.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+w+'" missed value!! "'+w+'" instead!!'),n.add(w,w,e));break;case c:throw new Error("attribute value missed!!")}return d;case"":v=" ";default:if(v<=" ")switch(g){case a:n.setTagName(t.slice(e,d)),g=p;break;case o:h=t.slice(e,d),g=s;break;case l:var w=t.slice(e,d).replace(/&#?\w+;/g,i);f.warning('attribute "'+w+'" missed quot(")!!'),n.add(h,w,e);case u:g=p;break}else switch(g){case s:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&h.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+h+'" missed value!! "'+h+'" instead2!!'),n.add(h,h,e),e=d,g=o;break;case u:f.warning('attribute space is required"'+h+'"!!');case p:g=o,e=d;break;case c:g=l,e=d;break;case m:throw new Error("elements closed character '/' and '>' must be connected to")}}d++}}function v(t,e,n){var r=t.tagName,i=null,a=t.length;while(a--){var o=t[a],s=o.qName,c=o.value,l=s.indexOf(":");if(l>0)var u=o.prefix=s.slice(0,l),p=s.slice(l+1),m="xmlns"===u&&p;else p=s,u=null,m="xmlns"===s&&"";o.localName=p,!1!==m&&(null==i&&(i={},x(n,n={})),n[m]=i[m]=c,o.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(m,c))}a=t.length;while(a--){o=t[a];u=o.prefix;u&&("xml"===u&&(o.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(o.uri=n[u||""]))}l=r.indexOf(":");l>0?(u=t.prefix=r.slice(0,l),p=t.localName=r.slice(l+1)):(u=null,p=t.localName=r);var f=t.uri=n[u||""];if(e.startElement(f,p,r,t),!t.closed)return t.currentNSMap=n,t.localNSMap=i,!0;if(e.endElement(f,p,r),i)for(u in i)e.endPrefixMapping(u)}function w(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=t.indexOf("</"+n+">",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),a)}return e+1}function N(t,e,n,r){var i=r[n];return null==i&&(i=t.lastIndexOf("</"+n+">"),i<e&&(i=t.lastIndexOf("</"+n)),r[n]=i),i<e}function x(t,e){for(var n in t)e[n]=t[n]}function b(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if("-"===t.charAt(e+3)){var a=t.indexOf("--\x3e",e+4);return a>e?(n.comment(t,e+4,a-e-4),a+3):(r.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==t.substr(e+3,6)){a=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,a-e-9),n.endCDATA(),a+3}var o=T(t,e),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var c=o[1][0],l=s>3&&/^public$/i.test(o[2][0])&&o[3][0],u=s>4&&o[4][0],p=o[s-1];return n.startDTD(c,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),p.index+p[0].length}}return-1}function y(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function E(t){}function I(t,e){return t.__proto__=e,t}function T(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);while(n=i.exec(t))if(r.push(n),n[1])return r}f.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),x(e,e={}),h(t,e,n,r,this.errorHandler),r.endDocument()}},E.prototype={setTagName:function(t){if(!i.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!i.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},I({},I.prototype)instanceof I||(I=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n}),e.XMLReader=f},e9a3:function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n("99fa"),o=/[^.]+\.([^.]+)/,s={getPrefix:function(t){return"docx"===t?"word":"ppt"},getFileTypeName:function(t){return"docx"===t?"document":"presentation"},getRelsFileName:function(t){return t.replace(/^.*?([a-zA-Z0-9]+)\.xml$/,"$1")+".xml.rels"},getRelsFilePath:function(t,e){var n=s.getRelsFileName(t),r="pptx"===e?"ppt/slides":"word";return r+"/_rels/"+n}};t.exports=function(){function t(e,n,r,a){i(this,t),this.fileName=n,this.prefix=s.getPrefix(a),this.zip=e,this.xmlDocuments=r,this.fileTypeName=s.getFileTypeName(a),this.mediaPrefix="pptx"===a?"../media":"media";var o=s.getRelsFilePath(n,a);this.relsDoc=r[o]||this.createEmptyRelsDoc(r,o)}return r(t,[{key:"createEmptyRelsDoc",value:function(t,e){var n=this.prefix+"/_rels/"+this.fileTypeName+".xml.rels",r=t[n];if(!r){var i=new Error("Could not copy from empty relsdoc");throw i.properties={mainRels:n,relsFileName:e,files:Object.keys(this.zip.files)},i}for(var o=a.str2xml(a.xml2str(r)),s=o.getElementsByTagName("Relationships")[0],c=s.getElementsByTagName("Relationship"),l=0,u=c.length;l<u;l++)s.removeChild(c[l]);return t[e]=o,o}},{key:"loadImageRels",value:function(){var t=this.relsDoc.getElementsByTagName("Relationship");return Array.prototype.reduce.call(t,(function(t,e){var n=e.getAttribute("Id");return/^rId[0-9]+$/.test(n)?Math.max(t,parseInt(n.substr(3),10)):t}),0)}},{key:"addExtensionRels",value:function(t,e){var n=this.xmlDocuments["[Content_Types].xml"],r=n.getElementsByTagName("Default"),i=Array.prototype.some.call(r,(function(t){return t.getAttribute("Extension")===e}));if(!i){var a=n.getElementsByTagName("Types")[0],o=n.createElement("Default");o.namespaceURI=null,o.setAttribute("ContentType",t),o.setAttribute("Extension",e),a.appendChild(o)}}},{key:"addImageRels",value:function(t,e,n){null==n&&(n=0);var r=0===n?t:t+"("+n+")",i=this.prefix+"/media/"+r;if(null!=this.zip.files[i])return this.addImageRels(t,e,n+1);var a={name:i,data:e,options:{binary:!0}};this.zip.file(a.name,a.data,a.options);var s=r.replace(o,"$1");this.addExtensionRels("image/"+s,s);var c=this.relsDoc.getElementsByTagName("Relationships")[0],l=this.relsDoc.createElement("Relationship");l.namespaceURI=null;var u=this.loadImageRels()+1;return l.setAttribute("Id","rId"+u),l.setAttribute("Type","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"),l.setAttribute("Target",this.mediaPrefix+"/"+r),c.appendChild(l),u}}]),t}()},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]);
|